[{"data":1,"prerenderedAt":4137},["ShallowReactive",2],{"cmdk-index":3,"content:\u002Fcomponents\u002Fdrawer":260},[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256],{"path":5,"title":6,"description":7},"\u002Fcomponents\u002Faccordion","Accordion","A disclosure list built entirely on native \u003Cdetails>\u002F\u003Csummary> elements — zero JavaScript, zero\nARIA reinvention. The browser supplies the disclosure role, aria-expanded, Enter\u002FSpace toggling,\nfocus, and find-in-page expansion for free. Single-open (exclusive) mode uses the platform\nexclusive-accordion feature (Baseline 2024): every \u003Cdetails> shares one auto-generated name, so\nthe browser closes siblings when one opens. multiple drops the shared name so each item opens\nindependently.",{"path":9,"title":10,"description":11},"\u002Fcomponents\u002Falert","Alert","A styled, accessible notification banner. Its live-region politeness is derived from the color —\nurgent danger \u002F warning render role=\"alert\" (assertive), everything else role=\"status\" (polite) —\nso a non-urgent banner isn't announced assertively (override with the live prop). It supports an\noptional icon, a title, body text, an actions row, and a dismiss button.",{"path":13,"title":14,"description":15},"\u002Fcomponents\u002Favatar","Avatar","A data-display component that shows an image, or initials derived from name when there is no\nimage (or while it loads). Supports a title \u002F subtitle column for list and profile UIs.",{"path":17,"title":18,"description":19},"\u002Fcomponents\u002Fbadge","Badge","A small status or count indicator. Attach it to any element as a floating pip, drop it inline next\nto text, or render it standalone — all three modes share the same class surface.",{"path":21,"title":22,"description":23},"\u002Fcomponents\u002Fbutton","Button","A styled, accessible button. Dynamic state is expressed through real attributes — disabled becomes\na true disabled (or aria-disabled for link buttons), loading sets aria-busy, and it ships a\nvisible :focus-visible ring.",{"path":25,"title":26,"description":27},"\u002Fcomponents\u002Fcard","Card","A surface container for grouping related content — a header (prepend slot · title · subtitle ·\nappend slot), a body, and optional action rows. It is the most composed styled component, yet the\nstandalone markup is just nested .ori-card__* elements, so it works without Vue.",{"path":29,"title":30,"description":31},"\u002Fcomponents\u002Fcheckbox","Checkbox","A styled, accessible checkbox built on a real \u003Cinput type=\"checkbox\"> — kept in the DOM\n(visually hidden over a custom box) so keyboard, focus, and native form submission work for free.\nThe accent color and :focus-visible ring are driven by the ori-color token; invalid sets\naria-invalid; disabled is the native attribute.",{"path":33,"title":34,"description":35},"\u002Fcomponents\u002Fcolor-picker","Color picker","An accessible color picker: a 2D saturation × brightness area, a hue slider, a hex field, and\noptional preset swatches — an inline panel you compose into an OriPopover for a\nswatch-triggered flow. Behavior lives in the framework-agnostic useColorPicker (a zero-dependency sRGB +\n2D-area engine, no adapter or machine); the styled component reuses OriSlider for the\nhue channel and OriInput for the hex field. v-model carries a lowercase color\nstring; the internal working model is HSVA, so the hue survives when you drag into a corner and back.",{"path":37,"title":38,"description":39},"\u002Fcomponents\u002Fcombobox","Combobox","A filterable single-select listbox — type to filter, navigate with the keyboard, pick one. It is the\nfirst component driven end-to-end by @oriui\u002Fheadless: the state machine + prop-getters own the\nbehavior (open\u002Fclose, filtering, the active-descendant highlight, selection, and the full\nWAI-ARIA keyboard), and OriCombobox renders the styled shell on top. Unlike the pure-CSS\ncomponents, the behavior needs JavaScript — the standalone classes give you the look, and\nuseCombobox gives you the behavior for any UI.",{"path":41,"title":42,"description":43},"\u002Fcomponents\u002Fdialog","Dialog","A modal dialog — the library's first genuinely interactive component, built on the native\n\u003Cdialog> element. Unlike the styled-only components, a dialog needs behavior: focus trap, scroll\nlock, Esc-to-close, click-outside dismissal, and the full WAI-ARIA keyboard contract. All of it comes\nfrom the platform via showModal() — no state-machine dependency and no adapter to wire. The styled\nOriDialog supplies only the markup and tokens.",{"path":45,"title":46,"description":47},"\u002Fcomponents\u002Fdivider","Divider","A horizontal (default) or vertical rule that separates content. An optional centered label turns it\ninto a visual break like the classic \"OR\" between form sections. A pure layout\u002Fstructure primitive —\nno interactive behavior, no variants, no size scale.",{"path":49,"title":50,"description":51},"\u002Fcomponents\u002Fdrawer","Drawer","A panel docked to one edge of the viewport: a filter sheet, a settings pane, a cart, the navigation on a phone.\nIt runs on the same useDialog engine and the same native \u003Cdialog> element as OriDialog,\nso what a dialog gets from the platform, a drawer gets too. Opened modally (the default) it uses\nshowModal(): a backdrop, a focus trap, an inert page, Esc to close and focus returned to whatever opened it.\nOpened non-modally it is a manual popover, so it still sits in the top layer while the page behind stays\nlive. Swipe to dismiss, snap points and nested drawers are not in this version.",{"path":53,"title":54,"description":55},"\u002Fcomponents\u002Ffield","Field","The shared shell for form controls — one source of truth for the label \u002F hint \u002F error \u002F\nrequired contract that Input, Select,\nTextarea, Combobox, Slider,\nRadioGroup, SegmentedControl and\nColorPicker otherwise each wire\nby hand. Wrap a control in OriField and it adopts the field's id, aria-describedby,\naria-invalid, required, disabled, and size — and stops rendering its own label and helper, so\nthere is exactly one of each, wired identically every time. Group and composite controls (RadioGroup,\nSegmentedControl, Combobox's listbox, ColorPicker) name themselves via aria-labelledby pointing at the field's label.",{"path":57,"title":58,"description":59},"\u002Fcomponents\u002Ficon","Icon","A styled, accessible SVG icon. Decorative by default — renders with aria-hidden=\"true\" and no\nrole. Pass a label to expose it to assistive technology as an image: the icon switches to\nrole=\"img\" + aria-label automatically.",{"path":61,"title":62,"description":63},"\u002Fcomponents\u002Finput","Input","A labeled, accessible text field with v-model. State is expressed through real attributes — the\nnative disabled, aria-invalid when there is an error, and an aria-describedby that points at\nthe rendered hint or error. The label is wired to the field with for\u002Fid (auto-generated via\nuseId when you don't pass one), and arbitrary native attributes (name, autocomplete,\ninputmode, …) fall through to the underlying \u003Cinput>.",{"path":65,"title":66,"description":67},"\u002Fcomponents\u002Fjoin","Join","A thin wrapper that collapses the shared radii and borders of adjacent controls so they read as one\nsegmented unit — button groups, input+button combos, segmented toolbars. No visual styling of its\nown: all color, size, and variant tokens live on the children.",{"path":69,"title":70,"description":71},"\u002Fcomponents\u002Fkbd","Kbd","A keyboard-key chip — a semantic \u003Ckbd> element styled as a monospace bordered chip. Use it to\nrepresent individual keys, modifier keys, or multi-key shortcuts inline in prose or UI hints.",{"path":73,"title":74,"description":75},"\u002Fcomponents\u002Flink","Link","An inline prose link — the right choice when a destination lives in running text. Distinct from\nOriButton rendered as=\"a\": a button that navigates is still a button; a link in a sentence is\nOriLink. Underlined by default (the affordance survives without color), with a _hover mode that\nhides the underline at rest and reveals it on hover. A visible :focus-visible ring uses the same\ncolor as the text.",{"path":77,"title":78,"description":79},"\u002Fcomponents\u002Flist","List","A vertical list of rows for settings panels, action panels and navigation. Each row reads prepend → label →\nappend: an icon, a label with an optional subtitle, and at the end short meta text such as a shortcut, a\nchevron into a sub-panel, or a control of your own.",{"path":81,"title":82,"description":83},"\u002Fcomponents\u002Fmenu","Menu","A WAI-ARIA menu button: a trigger opens a roving-tabindex action list. Unlike the Popover, open\u002Fclose,\nfocus movement, and click-outside dismissal are driven entirely by the @oriui\u002Fheadless menu\nmachine in JavaScript. OriMenu still opens the panel in the top layer (popover=\"manual\" +\nshowPopover()), so an ancestor's transform, overflow or z-index cannot displace or clip it, and\nplaces it with the same CSS Anchor Positioning primitive as the Popover (ori-anchored), zero\npositioning JS. In your own markup, do the same; without popover the panel falls back to its z-index.",{"path":85,"title":86,"description":87},"\u002Fcomponents\u002Fpopover","Popover","A positioned overlay for supplementary content — a menu, a filter panel, a rich hint — tethered to a\ntrigger. It runs entirely on the platform: the trigger opens the panel through the Popover API\n(top-layer, light-dismiss, Esc — zero JS), and the panel is placed with CSS Anchor Positioning\n(anchor-name \u002F position-anchor + position-area, with a collision flip via\nposition-try-fallbacks) — zero positioning JS, no scroll\u002Fresize listeners. Baseline 2026, with\ngraceful degradation: an older engine still opens the panel and places it, just without the\ncollision-aware flip.",{"path":89,"title":90,"description":91},"\u002Fcomponents\u002Fprogress","Progress","A horizontal progress bar that communicates task completion. It supports a determinate mode (a\nknown value out of a max) and an indeterminate mode (animated sweep) for tasks with no\nmeasurable progress. State is expressed through ARIA attributes — aria-valuenow is omitted when\nindeterminate, giving screen readers the correct cue automatically.",{"path":93,"title":94,"description":95},"\u002Fcomponents\u002Fradio","Radio","A \"choose one\" compound control. A role=\"radiogroup\" container names the set via\naria-labelledby; each option is a real \u003Cinput type=\"radio\"> sharing a single name — so the\nbrowser enforces single-select and native form submission — visually hidden behind a styled circle.\nPass the options as an array; per-option disabled is supported.\nFor a short pick shown as one compact row of buttons (Light \u002F Dark \u002F Auto), use\nSegmentedControl: the same radio semantics, styled as segments.",{"path":97,"title":98,"description":99},"\u002Fcomponents\u002Fsegmented-control","Segmented control","A compact \"choose one\" row — Light \u002F Dark \u002F Auto. It is built like RadioGroup: a\nrole=\"radiogroup\" of real \u003Cinput type=\"radio\"> sharing one name, each input hidden over its segment.\nSo the browser gives you the behavior — arrow keys that move and select, a single Tab stop on the checked\nsegment, native form submission and RTL — and the CSS layer carries no JavaScript at all.",{"path":101,"title":102,"description":103},"\u002Fcomponents\u002Fselect","Select","A native-first styled select control with v-model. The browser owns the dropdown, full keyboard\ninteraction, type-ahead, and all ARIA semantics — oriUI only styles the closed control and draws a\ndecorative chevron. It shares the form-control contract of Input and\nTextarea: a built-in label, hint, error, and required asterisk, all\nwired for accessibility. State is expressed through real attributes — native disabled and\naria-invalid=\"true\" (not classes) — and arbitrary native attrs (name, autocomplete, …) fall\nthrough to the \u003Cselect> via inheritAttrs:false.",{"path":105,"title":106,"description":107},"\u002Fcomponents\u002Fskeleton","Skeleton","A loading placeholder that signals content is on its way. An animated shimmer sweep sweeps across the\nblock; on devices that request reduced motion the shimmer stops and the tinted block alone signals the\nloading state. Size it with an inline style or a utility class — the skeleton itself carries no\nintrinsic width or height beyond a 1em minimum height.",{"path":109,"title":110,"description":111},"\u002Fcomponents\u002Fslider","Slider","A styled, accessible range control built on a native \u003Cinput type=\"range\">. Because the\nunderlying element is real HTML, the browser supplies role=\"slider\", the full keyboard contract\n(arrow keys, Home\u002FEnd, PageUp\u002FPageDown), and screen-reader value announcements for free — no\nJavaScript bridge needed. Color and the filled-track portion are driven by CSS custom properties;\nv-model carries a number.",{"path":113,"title":114,"description":115},"\u002Fcomponents\u002Fspinner","Spinner","An accessible loading indicator — renders role=\"status\" with an aria-label (default \"Loading\")\nso assistive technology announces the busy state without any extra work. Use it standalone for a\npage-level or section-level loader, or embed it inline inside a button or label.",{"path":117,"title":118,"description":119},"\u002Fcomponents\u002Fstack","Stack","The workhorse layout primitive — two flex modes in one component. A stack (ori-stack) is a\nflex column: children flow top-to-bottom with a consistent gap. A cluster (ori-cluster) is a\nwrapping flex row: children flow left-to-right, wrap onto new lines, and are centered on the\ncross-axis — ideal for tag clouds, button groups, and badge sets.",{"path":121,"title":122,"description":123},"\u002Fcomponents\u002Fsurface","Surface","An elevated floating surface — a lifted panel with a surface background, an optional hairline, a\ncorner radius, and a mode-aware shadow, and nothing else. No padding, no header\u002Ftitle semantics: it\nis just the box, and the caller owns the layout inside. It's the building block for chrome that floats\nover content — a toolbar island, a zoom control, a side panel, a menu popout's container — and the\nelevation counterpart to Card, which is a content card (padding + header \u002F\ntitle \u002F body \u002F actions).",{"path":125,"title":126,"description":127},"\u002Fcomponents\u002Fswitch","Switch","An on\u002Foff toggle built on a real \u003Cinput type=\"checkbox\" role=\"switch\"> — kept in the DOM\n(visually hidden over a track + thumb) so keyboard, focus, and form submission work for free, and\nassistive technology announces it as a switch. v-model is a boolean. The \"on\" track color and the\n:focus-visible ring both come from the ori-color token; the track and thumb scale with\nori-font-size so size is a single prop.",{"path":129,"title":130,"description":131},"\u002Fcomponents\u002Ftable","Table","A styled native \u003Ctable>: a rule under the header row, hairlines between body rows, start-aligned cells, and a few\nmodifiers for stripes, a hover tint, a sticky header and cell density. The CSS layer works on any \u003Ctable> with\nno JavaScript; OriTable adds the caption and the accessibility of the box a wide table scrolls in.",{"path":133,"title":134,"description":135},"\u002Fcomponents\u002Ftabs","Tabs","An accessible tabs widget with automatic activation. The tablist holds a roving tabindex so\nTab \u002F Shift+Tab enter and leave the group as a single keyboard stop; arrow keys move between\ntabs and immediately select them. State is expressed through real ARIA attributes — aria-selected\ndrives both the active indicator and the label color; disabled is the native button attribute.",{"path":137,"title":138,"description":139},"\u002Fcomponents\u002Ftag","Tag","A compact label for categorizing, filtering, or annotating content — status chips, keyword\nbadges, and removable filter pills. State is expressed through real attributes: aria-disabled\ndisables the tag and its close button without removing it from the DOM.",{"path":141,"title":142,"description":143},"\u002Fcomponents\u002Ftextarea","Textarea","A labeled, accessible multiline text field with v-model. State is expressed through real\nattributes — the native disabled, aria-invalid when there is an error, and an aria-describedby\nthat points at the rendered hint or error. The label is wired to the field with for\u002Fid\n(auto-generated via useId when you don't pass one). Unlike a single-line input the field has no\nfixed height — it grows from a rows-based min-height and stays user-resizable.",{"path":145,"title":146,"description":147},"\u002Fcomponents\u002Ftoast","Toast","An imperative notification system. Push a toast from anywhere with useToast() and render\n\u003COriToaster \u002F> once near the app root to display the queue. No event bus, no Vuex, no provide\u002Finject —\njust a module-level reactive queue that every call site shares.",{"path":149,"title":150,"description":151},"\u002Fcomponents\u002Ftoolbar","Toolbar","A WAI-ARIA toolbar: a set of related controls that share a single Tab stop, navigated internally\nwith the arrow keys via roving tabindex (real DOM focus, not aria-activedescendant). Five\ncomponents make it up — OriToolbar (the root, role=\"toolbar\"), OriToolbarButton (an item —\ncomposes OriButton), OriToolbarSeparator (a perpendicular divider), and a paired\nOriToolbarToggleGroup \u002F OriToolbarToggleItem for a segmented single- or multi-select toggle.\nUnlike the data-driven OriMenu (an items array plus a machine), a toolbar is compositional —\nyou assemble it from slotted components in whatever order and combination you need — so the behavior\nunderneath, useToolbar from @oriui\u002Fheadless, is a provide\u002Finject\nroving-focus context rather than a state machine over an array.",{"path":153,"title":154,"description":155},"\u002Fcomponents\u002Ftooltip","Tooltip","A CSS-driven tooltip that shows additional context when a control is focused or hovered. The bubble\nis always in the DOM (so the aria-describedby reference is never dangling) and shown\u002Fhidden in CSS —\nno state machine, no positioning engine. Show is :focus-visible (keyboard focus) and :hover wrapped\nin @media (hover: hover) (pointer, without sticking open on touch); a click or a tap that focuses the\ntrigger does not show it. A press of the trigger hides it, the pointer can move onto the bubble, and\nEscape hides it without moving focus or the pointer (WCAG 1.4.13).",{"path":157,"title":158,"description":159},"\u002Fguides\u002Fcss","Using the CSS layer","The @oriui\u002Fcss package is oriUI's foundation: standalone .ori-* classes plus the token theming — no Vue, no build step, no Tailwind. You\nship the stylesheet and write classes. This is how oriUI works with htmx, Astro, or plain HTML —\nthe daisyUI niche, minus Tailwind.",{"path":161,"title":162,"description":163},"\u002Fguides\u002Fcustomization","Customization","Make it yours — without authoring a whole skin. Most products need one thing: their brand color and\ntheir corner radius on top of accessible, ready-made components. oriUI lets you do that by repointing\na handful of design tokens — a few CSS custom properties in your own stylesheet, no rewrite, no fork.\nThe same \u003COriButton> you shipped on day one becomes on-brand by the time you ship to users, and\nnothing about the component changes.",{"path":165,"title":166,"description":167},"\u002Fguides\u002Fdesign-tokens","Design tokens","Every oriUI package reads one set of design tokens. This page is the\ncatalog — every token, and the resolution model that turns a raw value into the color a component\npaints. The chain is short and deliberate: a primitive feeds a semantic role, a role feeds a\nper-instance alias, and components read only the alias. That indirection is what lets a single\nclass repoint a single token — the whole zero-runtime theming story rests on it.",{"path":169,"title":170,"description":171},"\u002Fguides\u002Frtl","Writing direction (RTL)","oriUI's style layer is written in logical properties — margin-inline, border-block,\ninset-inline-end, position-area — so it follows the writing direction the platform gives it. You\nturn RTL on the platform way, and the layer mirrors itself:",{"path":173,"title":174,"description":175},"\u002Fguides\u002Fskins","Skin gallery","A skin is a named palette — a set of token overrides applied with one attribute on \u003Chtml>\n(data-ori-skin). Every skin repoints only the four skinnable roles (primary · secondary ·\nsurface · background, each with a -light and -dark source); the status hues (success ·\nwarning · danger · info) stay shared, and every pairing targets WCAG AA for body text. Switching\na skin is a single attribute write — zero runtime, no recompute, no flash.",{"path":177,"title":178,"description":179},"\u002Fguides\u002Ftheming","Theming","A theme is a mode (light or dark) layered over a skin (a named palette). Both are pure\nattribute toggles on \u003Chtml> — flipping either repoints the active --ori-color-* aliases through\nCSS custom properties, so everything reskins at once with no JavaScript, no recompute, no flash.\nThis is the same zero-runtime story across every layer: a Vue app, the standalone @oriui\u002Fcss\nclasses, htmx fragments, or hand-written HTML all theme identically.",{"path":181,"title":182,"description":183},"\u002Fheadless\u002Fcore","Core","The framework-agnostic heart of the headless layer: a behavior contract plus a zero-dependency\nnative engine, written in vanilla TypeScript. Every framework binding consumes the same contract,\nso a primitive behaves identically wherever it runs — and the behavior stays swappable per primitive,\nwithout touching markup.",{"path":185,"title":186,"description":187},"\u002Fheadless\u002Fuse-color-picker","useColorPicker","A headless sRGB color picker — a 2D saturation × brightness area, a hue channel, an optional\nalpha channel, a hex field, and optional preset swatches, assembled from ready-to-bind\nprop-getters. It owns the working color as an internal HSVA object (so the hue survives a grayscale\nround-trip when you drag into a corner and back). Underneath is a zero-dependency sRGB engine — a loose\nparser and a lowercase formatter, hex \u002F rgb \u002F hsv \u002F hsl conversion, readable ink over a swatch by WCAG\nluminance — and the 2D-area math for pointer and keyboard. That engine is internal: it ships inside this\ncomposable, not as exports of its own.",{"path":189,"title":190,"description":191},"\u002Fheadless\u002Fuse-combobox","useCombobox","A headless combobox primitive — an editable text input paired with a popup listbox — implementing\nthe WAI-ARIA combobox with listbox popup pattern: type to filter, navigate with the keyboard via\nactive-descendant, and pick a single option. It owns the behavior (open\u002Fclose, filtering, the\nhighlight, selection, and the full keyboard) and the ARIA wiring as ready-to-bind prop bags; you own\nthe markup and styles.",{"path":193,"title":194,"description":195},"\u002Fheadless\u002Fuse-dialog","useDialog","A headless modal dialog primitive built on the native \u003Cdialog> element — focus trap, Escape to\nclose, focus return, and aria-modal semantics all come from the platform via showModal(). It owns the open state and the ARIA wiring as ready-to-bind prop bags; you own the\nmarkup and styles (you render the \u003Cdialog> and drive showModal() \u002F close() from open).",{"path":197,"title":198,"description":199},"\u002Fheadless\u002Fuse-disclosure","useDisclosure","A headless show \u002F hide primitive for disclosure widgets — expandable panels, accordions, menus,\nthe collapsible sidebar groups on this very site. It owns the open state, the WAI-ARIA wiring, and the\ntoggle handler; you own the markup and the styles.",{"path":201,"title":202,"description":203},"\u002Fheadless\u002Fuse-dismissable","useDismissable","A headless dismiss layer — the \"close the overlay on an outside interaction\" glue a non-platform\noverlay needs, the pattern Radix DismissableLayer \u002F Floating-UI useDismiss standardize. While\nenabled, it attaches document listeners and calls onDismiss() when an interaction lands outside\nthe overlay's own elements. Both triggers are on by default — a pointerdown outside\n(pointerDownOutside) and focus moving outside (focusOutside) — and an overlay turns off the one that\ndoes not fit it:",{"path":205,"title":206,"description":207},"\u002Fheadless\u002Fuse-menu","useMenu","A headless menu button primitive built on the WAI-ARIA menu-button pattern — a trigger that opens a\npopup menu of actions, with roving tabindex, arrow \u002F Home \u002F End navigation, and Enter \u002F Space\nactivation. It owns the open state and the highlighted item and exposes the ARIA wiring as ready-to-bind\nprop bags; you own the markup, the styles, and the DOM focus (roving needs real focus, and\nclick-outside \u002F focus-return are host concerns a state projection can't reach).",{"path":209,"title":210,"description":211},"\u002Fheadless\u002Fuse-tabs","useTabs","A headless WAI-ARIA tabs widget with automatic activation — a tablist of tabs behind a single\nTab stop, navigated with the arrow keys via roving tabindex (real DOM focus, not\naria-activedescendant), where moving focus also selects. It is data-driven: you pass the tabs\narray plus the selected value, and it returns the tablist prop bag plus per-tab and per-panel\nprop-getters (ids, aria-selected, aria-controls, aria-labelledby, roving tabindex, hidden).",{"path":213,"title":214,"description":215},"\u002Fheadless\u002Fuse-theme","useTheme","A headless light \u002F dark theme controller — it owns the mode setting, resolves auto against the OS\nscheme live, persists the choice, and applies it to the DOM. It applies through applyTheme, which sets\nthe ori-theme_{light,dark} class (removing the opposite — exactly one is on at a time) and works\naround a bug in current Chromium where a runtime theme toggle otherwise leaves styled components\npainting the previous theme's colors until they re-render.",{"path":217,"title":218,"description":219},"\u002Fheadless\u002Fuse-toast","useToast","A headless toast queue — an imperative notification store you call from anywhere (toast('Saved'))\nand render once near the app root. The behavior is a framework-agnostic engine (a plain array + a Set\nof listeners + auto-dismiss timers) projected into the host framework's reactivity (in Vue, a reactive\narray). It is a client-side singleton — every useToast() call shares the one queue, so a push from\nanywhere reaches the single renderer.",{"path":221,"title":222,"description":223},"\u002Fheadless\u002Fuse-token","useToken","A reactive token bridge — it resolves an --ori-* design token to its computed value in JS, for\ncanvas \u002F WebGL \u002F chart painters (Konva, ECharts, …) that draw outside the CSS cascade yet must follow the\nactive skin. It reads through a hidden probe, because the obvious API is a trap: getComputedStyle(el).getPropertyValue('--x') hands back the unresolved var() chain (oriUI aliases chain), not a color —\nsubstitution only happens at a real property's computed-value time.",{"path":225,"title":226,"description":227},"\u002Fheadless\u002Fuse-toolbar","useToolbar","A headless WAI-ARIA toolbar — a set of related controls behind a single Tab stop, navigated\ninternally with the arrow keys via roving tabindex (real DOM focus, not aria-activedescendant).\nThe root owns orientation \u002F loop \u002F direction and a single keydown handler; each item registers itself\nand receives its roving tabindex, so a toolbar is assembled from arbitrary slotted components\nrather than a fixed data array.",{"path":229,"title":230,"description":231},"\u002Foverview\u002Faccessibility","Accessibility","Accessibility in oriUI is structural, not a coat of polish on top. The same decisions that make\nthe components correct for assistive technology also make them themeable and framework-agnostic — they\nare the same source of truth, not a separate effort.",{"path":233,"title":234,"description":235},"\u002Foverview\u002Fapplicability","Applicability","Where each oriUI package runs. The CSS works everywhere, the components are Vue, and the headless\ncomposables have a Vue adapter.",{"path":237,"title":238,"description":239},"\u002Foverview\u002Fcheat-sheet","Cheat sheet","Everything in one page — install, the class model, every component, and the design tokens. For the\nmachine-readable version (e.g. to paste into an AI), fetch \u002Fllms.txt (index) or\n\u002Fllms-full.txt (every page concatenated).",{"path":241,"title":242,"description":243},"\u002Foverview\u002Fcomparisons","Comparisons","oriUI combines three things that usually come separately: a CSS design system that needs no JavaScript,\nstyled Vue components, and headless behavior. This page sets it next to the libraries it learns from.\nIt has fewer components than most of them: we add one when an app built on oriUI needs it.",{"path":245,"title":246,"description":247},"\u002Foverview\u002Fget-started","Get started","Install oriUI and put a component on screen. Use only the packages you need.",{"path":249,"title":250,"description":251},"\u002Foverview\u002Finstallation","Installation","oriUI is three layers, one package each. Install only the layer you need — they share one token\ncontract, so you can add another later without reworking what you built.",{"path":253,"title":254,"description":255},"\u002Foverview\u002Fintroduction","Introduction","oriUI (織り, ori, \"weaving\") is a design system in plain CSS, with accessible Vue 3 components built\non it. It is made for our own apps first, so a component is added when one of them needs it.",{"path":257,"title":258,"description":259},"\u002Foverview\u002Fshowcase","Showcase","Apps built with oriUI. Each entry says what the app does and which parts of oriUI it uses, so you can see the\nlibrary inside a whole product, not one component at a time.",{"id":261,"title":50,"body":262,"description":51,"extension":4132,"meta":4133,"navigation":512,"path":49,"seo":4134,"stem":4135,"__hash__":4136},"docs\u002Fcomponents\u002Fdrawer.md",{"type":263,"value":264,"toc":4112},"minimark",[265,269,303,340,345,351,355,388,392,395,405,422,426,432,1172,1186,1190,1219,1462,1466,1486,1590,1594,1599,1763,1767,1793,2125,2128,2252,2267,2278,2282,2314,2621,2625,2635,3072,3076,3086,3479,3483,3506,3517,3520,3531,3628,3678,3681,3690,3694,3869,3873,3918,3929,3968,3972,4055,4059,4103,4109],[266,267,50],"h1",{"id":268},"drawer",[270,271,272,273,276,277,280,281,285,286,290,291,294,295,298,299,302],"p",{},"A panel docked to one edge of the viewport: a filter sheet, a settings pane, a cart, the navigation on a phone.\nIt runs on the same ",[274,275,194],"code",{}," engine and the same native ",[274,278,279],{},"\u003Cdialog>"," element as ",[282,283,284],"a",{"href":41},"OriDialog",",\nso what a dialog gets from the platform, a drawer gets too. Opened ",[287,288,289],"strong",{},"modally"," (the default) it uses\n",[274,292,293],{},"showModal()",": a backdrop, a focus trap, an inert page, ",[274,296,297],{},"Esc"," to close and focus returned to whatever opened it.\nOpened ",[287,300,301],{},"non-modally"," it is a manual popover, so it still sits in the top layer while the page behind stays\nlive. Swipe to dismiss, snap points and nested drawers are not in this version.",[270,304,305,306,309,310,314,315,320,321,325,326,331,332,335,336,339],{},"The examples are organized by ",[287,307,308],{},"layer",": the ",[282,311,313],{"href":312},"#classes","class reference"," is the standalone\n",[287,316,317],{},[274,318,319],{},"@oriui\u002Fcss"," layer, and the ",[282,322,324],{"href":323},"#framework-api","Framework API"," is the ",[287,327,328],{},[274,329,330],{},"@oriui\u002Fvue"," component. Every\nexample is live — flip its code between ",[287,333,334],{},"HTML"," (the standalone classes, also your htmx \u002F Astro \u002F plain-HTML\nusage) and ",[287,337,338],{},"Vue",". HTML is the default.",[341,342,344],"h2",{"id":343},"classes","Classes",[270,346,347,348,350],{},"A drawer is a block class plus one side modifier, hung on a native ",[274,349,279],{}," element. Each part class maps to\na structural element produced by the component.",[352,353],"class-table",{":rows":354},"[{\"class\":\"ori-drawer\",\"type\":\"Block\",\"description\":\"The native \u003Ccode>dialog\u003C\u002Fcode> docked to a viewport edge: fixed, surface-colored, shadowed, and scrolling when its content is taller. Its \u003Ccode>::backdrop\u003C\u002Fcode> is the dimmed overlay; a modal drawer also locks the page scroll.\"},{\"class\":\"ori-drawer_start · ori-drawer_end\",\"type\":\"Modifier\",\"description\":\"Dock to the inline start or end edge, full height. Width is \u003Ccode>min(var(--ori-drawer-size), 100% - 3rem)\u003C\u002Fcode>, 20rem by default. Logical: they swap sides in RTL.\"},{\"class\":\"ori-drawer_top · ori-drawer_bottom\",\"type\":\"Modifier\",\"description\":\"Dock to the top or bottom edge. Height is the content height, up to \u003Ccode>--ori-drawer-size\u003C\u002Fcode> (85dvh by default); at most 40rem wide, centered.\"},{\"class\":\"--ori-drawer-size\",\"type\":\"Custom prop\",\"description\":\"Width of a side drawer, maximum height of a top or bottom one. Set it on the element.\"},{\"class\":\"ori-drawer__content\",\"type\":\"Layout\",\"description\":\"Flex column that fills the drawer: 24 px padding, 12 px gap, and extra padding for the safe-area insets on the edges the drawer touches.\"},{\"class\":\"ori-drawer__header\",\"type\":\"Part\",\"description\":\"Flex row: the title at the start, the close button at the end.\"},{\"class\":\"ori-drawer__title\",\"type\":\"Part\",\"description\":\"\u003Ccode>h2\u003C\u002Fcode> heading; its \u003Ccode>id\u003C\u002Fcode> is wired to \u003Ccode>aria-labelledby\u003C\u002Fcode> on the drawer.\"},{\"class\":\"ori-drawer__close\",\"type\":\"Part\",\"description\":\"Bare close button (\u003Ccode>aria-label=Close\u003C\u002Fcode>); styled via opacity.\"},{\"class\":\"ori-drawer__body\",\"type\":\"Part\",\"description\":\"Body region: fills the space between the header and the footer, and is the one part that scrolls.\"},{\"class\":\"ori-drawer__footer\",\"type\":\"Part\",\"description\":\"Actions row, end-aligned and wrapping, below the body.\"},{\"class\":\"open · popover\",\"type\":\"State\",\"description\":\"A modal drawer is a \u003Ccode>dialog\u003C\u002Fcode> opened with \u003Ccode>showModal()\u003C\u002Fcode>; a non-modal one carries \u003Ccode>popover=manual\u003C\u002Fcode> and is opened with \u003Ccode>showPopover()\u003C\u002Fcode>. Real attributes, not classes.\"}]",[270,356,357,360,361,364,365,368,369,372,373,376,377,380,381,383,384,387],{},[287,358,359],{},"À la carte:"," the classes above ship in ",[274,362,363],{},"@oriui\u002Fcss\u002Fcomponents\u002Fdrawer.css",". Import a foundation\n(",[274,366,367],{},"@oriui\u002Fcss\u002Fbase.css"," or ",[274,370,371],{},"@oriui\u002Fcss\u002Ftokens.css",") first — the tokens the drawer reads (",[274,374,375],{},"--ori-color-surface",",\n",[274,378,379],{},"--ori-shadow-lg",", the radius scale) live there, not in the component file. The full bundle ",[274,382,319],{}," is the\ndefault and already carries both; see ",[282,385,386],{"href":157},"à-la-carte imports",".",[341,389,391],{"id":390},"anatomy","Anatomy",[270,393,394],{},"The component renders its parts in this order:",[396,397,402],"pre",{"className":398,"code":400,"language":401},[399],"language-text","#trigger slot (caller-supplied toggle)\n  └─ \u003Cdialog class=\"ori-drawer ori-drawer_end\">   (native element; modal → showModal(), non-modal → popover=\"manual\")\n       └─ .ori-drawer__content                    (padded flex column)\n            ├─ .ori-drawer__header\n            │    ├─ .ori-drawer__title             (h2; #title slot or `title` prop — omitted when neither is set)\n            │    └─ .ori-drawer__close             (× button, aria-label=\"Close\")\n            ├─ .ori-drawer__body                   (default slot)\n            └─ .ori-drawer__footer                 (#footer slot — rendered only when provided)\n","text",[274,403,400],{"__ignoreMap":404},"",[270,406,407,408,410,411,368,414,417,418,421],{},"The ",[274,409,279],{}," is rendered inline; opening it promotes it to the browser's top layer, so it escapes any stacking\ncontext, ",[274,412,413],{},"transform",[274,415,416],{},"overflow"," of its ancestors without ",[274,419,420],{},"\u003CTeleport>",". A closed drawer is hidden, so SSR\nmarkup stays stable.",[341,423,425],{"id":424},"basic","Basic",[270,427,428,429,431],{},"Pick an edge, open the drawer, tab through its controls, press ",[274,430,297],{},", and observe that focus returns to the\ntrigger. Page scroll is locked while it is open.",[433,434,435,438,799],"example",{},[436,437],"drawer-demo",{},[439,440,441],"template",{"v-slot:vue":404},[396,442,446],{"className":443,"code":444,"language":445,"meta":404,"style":404},"language-vue shiki shiki-themes github-light github-dark","\u003Cscript setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { OriButton, OriDrawer } from '@oriui\u002Fvue'\n\nconst open = ref(false)\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n    \u003COriDrawer v-model:open=\"open\" title=\"Filters\">\n        \u003Ctemplate #trigger=\"{ props }\">\n            \u003COriButton v-bind=\"props\" label=\"Open drawer\" \u002F>\n        \u003C\u002Ftemplate>\n        \u003Cp>Narrow the list by status, owner or date.\u003C\u002Fp>\n        \u003Ctemplate #footer>\n            \u003COriButton label=\"Cancel\" variant=\"text\" @click=\"open = false\" \u002F>\n            \u003COriButton label=\"Apply\" @click=\"open = false\" \u002F>\n        \u003C\u002Ftemplate>\n    \u003C\u002FOriDrawer>\n\u003C\u002Ftemplate>\n","vue",[274,447,448,478,494,507,514,539,549,554,563,600,625,657,667,681,695,739,771,780,790],{"__ignoreMap":404},[449,450,453,457,461,465,468,471,475],"span",{"class":451,"line":452},"line",1,[449,454,456],{"class":455},"sVt8B","\u003C",[449,458,460],{"class":459},"s9eBZ","script",[449,462,464],{"class":463},"sScJk"," setup",[449,466,467],{"class":463}," lang",[449,469,470],{"class":455},"=",[449,472,474],{"class":473},"sZZnC","\"ts\"",[449,476,477],{"class":455},">\n",[449,479,481,485,488,491],{"class":451,"line":480},2,[449,482,484],{"class":483},"szBVR","import",[449,486,487],{"class":455}," { ref } ",[449,489,490],{"class":483},"from",[449,492,493],{"class":473}," 'vue'\n",[449,495,497,499,502,504],{"class":451,"line":496},3,[449,498,484],{"class":483},[449,500,501],{"class":455}," { OriButton, OriDrawer } ",[449,503,490],{"class":483},[449,505,506],{"class":473}," '@oriui\u002Fvue'\n",[449,508,510],{"class":451,"line":509},4,[449,511,513],{"emptyLinePlaceholder":512},true,"\n",[449,515,517,520,524,527,530,533,536],{"class":451,"line":516},5,[449,518,519],{"class":483},"const",[449,521,523],{"class":522},"sj4cs"," open",[449,525,526],{"class":483}," =",[449,528,529],{"class":463}," ref",[449,531,532],{"class":455},"(",[449,534,535],{"class":522},"false",[449,537,538],{"class":455},")\n",[449,540,542,545,547],{"class":451,"line":541},6,[449,543,544],{"class":455},"\u003C\u002F",[449,546,460],{"class":459},[449,548,477],{"class":455},[449,550,552],{"class":451,"line":551},7,[449,553,513],{"emptyLinePlaceholder":512},[449,555,557,559,561],{"class":451,"line":556},8,[449,558,456],{"class":455},[449,560,439],{"class":459},[449,562,477],{"class":455},[449,564,566,569,572,575,578,581,583,586,588,590,593,595,598],{"class":451,"line":565},9,[449,567,568],{"class":455},"    \u003C",[449,570,571],{"class":459},"OriDrawer",[449,573,574],{"class":463}," v-model",[449,576,577],{"class":455},":",[449,579,580],{"class":463},"open",[449,582,470],{"class":455},[449,584,585],{"class":473},"\"",[449,587,580],{"class":455},[449,589,585],{"class":473},[449,591,592],{"class":463}," title",[449,594,470],{"class":455},[449,596,597],{"class":473},"\"Filters\"",[449,599,477],{"class":455},[449,601,603,606,608,611,614,616,618,621,623],{"class":451,"line":602},10,[449,604,605],{"class":455},"        \u003C",[449,607,439],{"class":459},[449,609,610],{"class":455}," #",[449,612,613],{"class":463},"trigger",[449,615,470],{"class":455},[449,617,585],{"class":473},[449,619,620],{"class":455},"{ props }",[449,622,585],{"class":473},[449,624,477],{"class":455},[449,626,628,631,634,637,639,641,644,646,649,651,654],{"class":451,"line":627},11,[449,629,630],{"class":455},"            \u003C",[449,632,633],{"class":459},"OriButton",[449,635,636],{"class":463}," v-bind",[449,638,470],{"class":455},[449,640,585],{"class":473},[449,642,643],{"class":455},"props",[449,645,585],{"class":473},[449,647,648],{"class":463}," label",[449,650,470],{"class":455},[449,652,653],{"class":473},"\"Open drawer\"",[449,655,656],{"class":455}," \u002F>\n",[449,658,660,663,665],{"class":451,"line":659},12,[449,661,662],{"class":455},"        \u003C\u002F",[449,664,439],{"class":459},[449,666,477],{"class":455},[449,668,670,672,674,677,679],{"class":451,"line":669},13,[449,671,605],{"class":455},[449,673,270],{"class":459},[449,675,676],{"class":455},">Narrow the list by status, owner or date.\u003C\u002F",[449,678,270],{"class":459},[449,680,477],{"class":455},[449,682,684,686,688,690,693],{"class":451,"line":683},14,[449,685,605],{"class":455},[449,687,439],{"class":459},[449,689,610],{"class":455},[449,691,692],{"class":463},"footer",[449,694,477],{"class":455},[449,696,698,700,702,704,706,709,712,714,717,720,723,725,727,730,732,735,737],{"class":451,"line":697},15,[449,699,630],{"class":455},[449,701,633],{"class":459},[449,703,648],{"class":463},[449,705,470],{"class":455},[449,707,708],{"class":473},"\"Cancel\"",[449,710,711],{"class":463}," variant",[449,713,470],{"class":455},[449,715,716],{"class":473},"\"text\"",[449,718,719],{"class":455}," @",[449,721,722],{"class":463},"click",[449,724,470],{"class":455},[449,726,585],{"class":473},[449,728,729],{"class":455},"open ",[449,731,470],{"class":483},[449,733,734],{"class":522}," false",[449,736,585],{"class":473},[449,738,656],{"class":455},[449,740,742,744,746,748,750,753,755,757,759,761,763,765,767,769],{"class":451,"line":741},16,[449,743,630],{"class":455},[449,745,633],{"class":459},[449,747,648],{"class":463},[449,749,470],{"class":455},[449,751,752],{"class":473},"\"Apply\"",[449,754,719],{"class":455},[449,756,722],{"class":463},[449,758,470],{"class":455},[449,760,585],{"class":473},[449,762,729],{"class":455},[449,764,470],{"class":483},[449,766,734],{"class":522},[449,768,585],{"class":473},[449,770,656],{"class":455},[449,772,774,776,778],{"class":451,"line":773},17,[449,775,662],{"class":455},[449,777,439],{"class":459},[449,779,477],{"class":455},[449,781,783,786,788],{"class":451,"line":782},18,[449,784,785],{"class":455},"    \u003C\u002F",[449,787,571],{"class":459},[449,789,477],{"class":455},[449,791,793,795,797],{"class":451,"line":792},19,[449,794,544],{"class":455},[449,796,439],{"class":459},[449,798,477],{"class":455},[439,800,801],{"v-slot:html":404},[396,802,806],{"className":803,"code":804,"language":805,"meta":404,"style":404},"language-html shiki shiki-themes github-light github-dark","\u003C!-- Structure only — open it with dialog.showModal() to get the trap, the ::backdrop and the page scroll lock. -->\n\u003Cbutton class=\"ori-button\" onclick=\"document.getElementById('filters').showModal()\">Open drawer\u003C\u002Fbutton>\n\n\u003Cdialog id=\"filters\" class=\"ori-drawer ori-drawer_end\" aria-labelledby=\"filters-title\">\n    \u003Cdiv class=\"ori-drawer__content\">\n        \u003Cheader class=\"ori-drawer__header\">\n            \u003Ch2 id=\"filters-title\" class=\"ori-drawer__title\">Filters\u003C\u002Fh2>\n            \u003Cbutton class=\"ori-drawer__close\" aria-label=\"Close\" onclick=\"this.closest('dialog').close()\">×\u003C\u002Fbutton>\n        \u003C\u002Fheader>\n        \u003Cdiv class=\"ori-drawer__body\">\n            \u003Cp>Narrow the list by status, owner or date.\u003C\u002Fp>\n        \u003C\u002Fdiv>\n        \u003Cfooter class=\"ori-drawer__footer\">\n            \u003Cbutton class=\"ori-button ori-variant_text\" onclick=\"this.closest('dialog').close()\">Cancel\u003C\u002Fbutton>\n            \u003Cbutton class=\"ori-button ori-variant_solid ori-color_primary\" onclick=\"this.closest('dialog').close()\">\n                Apply\n            \u003C\u002Fbutton>\n        \u003C\u002Ffooter>\n    \u003C\u002Fdiv>\n\u003C\u002Fdialog>\n","html",[274,807,808,814,860,864,896,912,928,954,1004,1012,1027,1039,1047,1062,1100,1133,1138,1147,1155,1163],{"__ignoreMap":404},[449,809,810],{"class":451,"line":452},[449,811,813],{"class":812},"sJ8bj","\u003C!-- Structure only — open it with dialog.showModal() to get the trap, the ::backdrop and the page scroll lock. -->\n",[449,815,816,818,821,824,826,829,832,834,836,839,841,844,847,850,853,856,858],{"class":451,"line":480},[449,817,456],{"class":455},[449,819,820],{"class":459},"button",[449,822,823],{"class":463}," class",[449,825,470],{"class":455},[449,827,828],{"class":473},"\"ori-button\"",[449,830,831],{"class":463}," onclick",[449,833,470],{"class":455},[449,835,585],{"class":473},[449,837,838],{"class":455},"document",[449,840,387],{"class":473},[449,842,843],{"class":463},"getElementById",[449,845,846],{"class":473},"('filters').",[449,848,849],{"class":463},"showModal",[449,851,852],{"class":473},"()\"",[449,854,855],{"class":455},">Open drawer\u003C\u002F",[449,857,820],{"class":459},[449,859,477],{"class":455},[449,861,862],{"class":451,"line":496},[449,863,513],{"emptyLinePlaceholder":512},[449,865,866,868,871,874,876,879,881,883,886,889,891,894],{"class":451,"line":509},[449,867,456],{"class":455},[449,869,870],{"class":459},"dialog",[449,872,873],{"class":463}," id",[449,875,470],{"class":455},[449,877,878],{"class":473},"\"filters\"",[449,880,823],{"class":463},[449,882,470],{"class":455},[449,884,885],{"class":473},"\"ori-drawer ori-drawer_end\"",[449,887,888],{"class":463}," aria-labelledby",[449,890,470],{"class":455},[449,892,893],{"class":473},"\"filters-title\"",[449,895,477],{"class":455},[449,897,898,900,903,905,907,910],{"class":451,"line":516},[449,899,568],{"class":455},[449,901,902],{"class":459},"div",[449,904,823],{"class":463},[449,906,470],{"class":455},[449,908,909],{"class":473},"\"ori-drawer__content\"",[449,911,477],{"class":455},[449,913,914,916,919,921,923,926],{"class":451,"line":541},[449,915,605],{"class":455},[449,917,918],{"class":459},"header",[449,920,823],{"class":463},[449,922,470],{"class":455},[449,924,925],{"class":473},"\"ori-drawer__header\"",[449,927,477],{"class":455},[449,929,930,932,934,936,938,940,942,944,947,950,952],{"class":451,"line":551},[449,931,630],{"class":455},[449,933,341],{"class":459},[449,935,873],{"class":463},[449,937,470],{"class":455},[449,939,893],{"class":473},[449,941,823],{"class":463},[449,943,470],{"class":455},[449,945,946],{"class":473},"\"ori-drawer__title\"",[449,948,949],{"class":455},">Filters\u003C\u002F",[449,951,341],{"class":459},[449,953,477],{"class":455},[449,955,956,958,960,962,964,967,970,972,975,977,979,981,984,986,989,992,995,997,1000,1002],{"class":451,"line":556},[449,957,630],{"class":455},[449,959,820],{"class":459},[449,961,823],{"class":463},[449,963,470],{"class":455},[449,965,966],{"class":473},"\"ori-drawer__close\"",[449,968,969],{"class":463}," aria-label",[449,971,470],{"class":455},[449,973,974],{"class":473},"\"Close\"",[449,976,831],{"class":463},[449,978,470],{"class":455},[449,980,585],{"class":473},[449,982,983],{"class":522},"this",[449,985,387],{"class":473},[449,987,988],{"class":463},"closest",[449,990,991],{"class":473},"('dialog').",[449,993,994],{"class":463},"close",[449,996,852],{"class":473},[449,998,999],{"class":455},">×\u003C\u002F",[449,1001,820],{"class":459},[449,1003,477],{"class":455},[449,1005,1006,1008,1010],{"class":451,"line":565},[449,1007,662],{"class":455},[449,1009,918],{"class":459},[449,1011,477],{"class":455},[449,1013,1014,1016,1018,1020,1022,1025],{"class":451,"line":602},[449,1015,605],{"class":455},[449,1017,902],{"class":459},[449,1019,823],{"class":463},[449,1021,470],{"class":455},[449,1023,1024],{"class":473},"\"ori-drawer__body\"",[449,1026,477],{"class":455},[449,1028,1029,1031,1033,1035,1037],{"class":451,"line":627},[449,1030,630],{"class":455},[449,1032,270],{"class":459},[449,1034,676],{"class":455},[449,1036,270],{"class":459},[449,1038,477],{"class":455},[449,1040,1041,1043,1045],{"class":451,"line":659},[449,1042,662],{"class":455},[449,1044,902],{"class":459},[449,1046,477],{"class":455},[449,1048,1049,1051,1053,1055,1057,1060],{"class":451,"line":669},[449,1050,605],{"class":455},[449,1052,692],{"class":459},[449,1054,823],{"class":463},[449,1056,470],{"class":455},[449,1058,1059],{"class":473},"\"ori-drawer__footer\"",[449,1061,477],{"class":455},[449,1063,1064,1066,1068,1070,1072,1075,1077,1079,1081,1083,1085,1087,1089,1091,1093,1096,1098],{"class":451,"line":683},[449,1065,630],{"class":455},[449,1067,820],{"class":459},[449,1069,823],{"class":463},[449,1071,470],{"class":455},[449,1073,1074],{"class":473},"\"ori-button ori-variant_text\"",[449,1076,831],{"class":463},[449,1078,470],{"class":455},[449,1080,585],{"class":473},[449,1082,983],{"class":522},[449,1084,387],{"class":473},[449,1086,988],{"class":463},[449,1088,991],{"class":473},[449,1090,994],{"class":463},[449,1092,852],{"class":473},[449,1094,1095],{"class":455},">Cancel\u003C\u002F",[449,1097,820],{"class":459},[449,1099,477],{"class":455},[449,1101,1102,1104,1106,1108,1110,1113,1115,1117,1119,1121,1123,1125,1127,1129,1131],{"class":451,"line":697},[449,1103,630],{"class":455},[449,1105,820],{"class":459},[449,1107,823],{"class":463},[449,1109,470],{"class":455},[449,1111,1112],{"class":473},"\"ori-button ori-variant_solid ori-color_primary\"",[449,1114,831],{"class":463},[449,1116,470],{"class":455},[449,1118,585],{"class":473},[449,1120,983],{"class":522},[449,1122,387],{"class":473},[449,1124,988],{"class":463},[449,1126,991],{"class":473},[449,1128,994],{"class":463},[449,1130,852],{"class":473},[449,1132,477],{"class":455},[449,1134,1135],{"class":451,"line":741},[449,1136,1137],{"class":455},"                Apply\n",[449,1139,1140,1143,1145],{"class":451,"line":773},[449,1141,1142],{"class":455},"            \u003C\u002F",[449,1144,820],{"class":459},[449,1146,477],{"class":455},[449,1148,1149,1151,1153],{"class":451,"line":782},[449,1150,662],{"class":455},[449,1152,692],{"class":459},[449,1154,477],{"class":455},[449,1156,1157,1159,1161],{"class":451,"line":792},[449,1158,785],{"class":455},[449,1160,902],{"class":459},[449,1162,477],{"class":455},[449,1164,1166,1168,1170],{"class":451,"line":1165},20,[449,1167,544],{"class":455},[449,1169,870],{"class":459},[449,1171,477],{"class":455},[270,1173,1174,1175,1177,1178,1181,1182,1185],{},"A modal drawer needs the CSS layer for the page scroll lock: ",[274,1176,293],{}," makes the page inert but leaves it\nscrollable (a wheel over the backdrop still scrolls it), so ",[274,1179,1180],{},"drawer.css"," sets ",[274,1183,1184],{},"overflow: hidden"," on the root\nwhile a modal drawer is open. Where scrollbars take up space (Windows, most Linux desktops), the dimmed page\nshifts by the scrollbar's width while the drawer is open.",[341,1187,1189],{"id":1188},"sides","Sides",[270,1191,1192,1195,1196,1199,1200,1203,1204,368,1207,1210,1211,1214,1215,1218],{},[274,1193,1194],{},"side"," picks the edge: ",[274,1197,1198],{},"start",", ",[274,1201,1202],{},"end"," (the default), ",[274,1205,1206],{},"top",[274,1208,1209],{},"bottom",". Side drawers span the full height and are\n",[274,1212,1213],{},"min(var(--ori-drawer-size), 100% - 3rem)"," wide: 20rem by default, and never wider than the viewport minus 3rem,\nso on a phone a strip of the page stays in view. That strip is the backdrop, and tapping it closes the drawer.\nTop and bottom drawers take the height of their content, up to ",[274,1216,1217],{},"--ori-drawer-size"," (85dvh by default), and are at\nmost 40rem wide, centered.",[433,1220,1221,1224,1227,1230,1233,1351],{},[436,1222],{"label":1223,"side":1198},"Start",[436,1225],{"label":1226,"side":1202},"End",[436,1228],{"label":1229,"side":1206},"Top",[436,1231],{"label":1232,"side":1209},"Bottom",[439,1234,1235],{"v-slot:vue":404},[396,1236,1238],{"className":443,"code":1237,"language":445,"meta":404,"style":404},"\u003C!-- `end` is the default; `start` and `end` are logical and swap sides in RTL. -->\n\u003COriDrawer side=\"start\" title=\"Start\">…\u003C\u002FOriDrawer>\n\u003COriDrawer side=\"end\" title=\"End\">…\u003C\u002FOriDrawer>\n\u003COriDrawer side=\"top\" title=\"Top\">…\u003C\u002FOriDrawer>\n\u003COriDrawer side=\"bottom\" title=\"Bottom\">…\u003C\u002FOriDrawer>\n",[274,1239,1240,1245,1273,1299,1325],{"__ignoreMap":404},[449,1241,1242],{"class":451,"line":452},[449,1243,1244],{"class":812},"\u003C!-- `end` is the default; `start` and `end` are logical and swap sides in RTL. -->\n",[449,1246,1247,1249,1251,1254,1256,1259,1261,1263,1266,1269,1271],{"class":451,"line":480},[449,1248,456],{"class":455},[449,1250,571],{"class":459},[449,1252,1253],{"class":463}," side",[449,1255,470],{"class":455},[449,1257,1258],{"class":473},"\"start\"",[449,1260,592],{"class":463},[449,1262,470],{"class":455},[449,1264,1265],{"class":473},"\"Start\"",[449,1267,1268],{"class":455},">…\u003C\u002F",[449,1270,571],{"class":459},[449,1272,477],{"class":455},[449,1274,1275,1277,1279,1281,1283,1286,1288,1290,1293,1295,1297],{"class":451,"line":496},[449,1276,456],{"class":455},[449,1278,571],{"class":459},[449,1280,1253],{"class":463},[449,1282,470],{"class":455},[449,1284,1285],{"class":473},"\"end\"",[449,1287,592],{"class":463},[449,1289,470],{"class":455},[449,1291,1292],{"class":473},"\"End\"",[449,1294,1268],{"class":455},[449,1296,571],{"class":459},[449,1298,477],{"class":455},[449,1300,1301,1303,1305,1307,1309,1312,1314,1316,1319,1321,1323],{"class":451,"line":509},[449,1302,456],{"class":455},[449,1304,571],{"class":459},[449,1306,1253],{"class":463},[449,1308,470],{"class":455},[449,1310,1311],{"class":473},"\"top\"",[449,1313,592],{"class":463},[449,1315,470],{"class":455},[449,1317,1318],{"class":473},"\"Top\"",[449,1320,1268],{"class":455},[449,1322,571],{"class":459},[449,1324,477],{"class":455},[449,1326,1327,1329,1331,1333,1335,1338,1340,1342,1345,1347,1349],{"class":451,"line":516},[449,1328,456],{"class":455},[449,1330,571],{"class":459},[449,1332,1253],{"class":463},[449,1334,470],{"class":455},[449,1336,1337],{"class":473},"\"bottom\"",[449,1339,592],{"class":463},[449,1341,470],{"class":455},[449,1343,1344],{"class":473},"\"Bottom\"",[449,1346,1268],{"class":455},[449,1348,571],{"class":459},[449,1350,477],{"class":455},[439,1352,1353],{"v-slot:html":404},[396,1354,1356],{"className":803,"code":1355,"language":805,"meta":404,"style":404},"\u003C!-- Swap the side modifier: ori-drawer_start \u002F _end \u002F _top \u002F _bottom. -->\n\u003Cdialog class=\"ori-drawer ori-drawer_start\" aria-label=\"Start\">…\u003C\u002Fdialog>\n\u003Cdialog class=\"ori-drawer ori-drawer_end\" aria-label=\"End\">…\u003C\u002Fdialog>\n\u003Cdialog class=\"ori-drawer ori-drawer_top\" aria-label=\"Top\">…\u003C\u002Fdialog>\n\u003Cdialog class=\"ori-drawer ori-drawer_bottom\" aria-label=\"Bottom\">…\u003C\u002Fdialog>\n",[274,1357,1358,1363,1388,1412,1437],{"__ignoreMap":404},[449,1359,1360],{"class":451,"line":452},[449,1361,1362],{"class":812},"\u003C!-- Swap the side modifier: ori-drawer_start \u002F _end \u002F _top \u002F _bottom. -->\n",[449,1364,1365,1367,1369,1371,1373,1376,1378,1380,1382,1384,1386],{"class":451,"line":480},[449,1366,456],{"class":455},[449,1368,870],{"class":459},[449,1370,823],{"class":463},[449,1372,470],{"class":455},[449,1374,1375],{"class":473},"\"ori-drawer ori-drawer_start\"",[449,1377,969],{"class":463},[449,1379,470],{"class":455},[449,1381,1265],{"class":473},[449,1383,1268],{"class":455},[449,1385,870],{"class":459},[449,1387,477],{"class":455},[449,1389,1390,1392,1394,1396,1398,1400,1402,1404,1406,1408,1410],{"class":451,"line":496},[449,1391,456],{"class":455},[449,1393,870],{"class":459},[449,1395,823],{"class":463},[449,1397,470],{"class":455},[449,1399,885],{"class":473},[449,1401,969],{"class":463},[449,1403,470],{"class":455},[449,1405,1292],{"class":473},[449,1407,1268],{"class":455},[449,1409,870],{"class":459},[449,1411,477],{"class":455},[449,1413,1414,1416,1418,1420,1422,1425,1427,1429,1431,1433,1435],{"class":451,"line":509},[449,1415,456],{"class":455},[449,1417,870],{"class":459},[449,1419,823],{"class":463},[449,1421,470],{"class":455},[449,1423,1424],{"class":473},"\"ori-drawer ori-drawer_top\"",[449,1426,969],{"class":463},[449,1428,470],{"class":455},[449,1430,1318],{"class":473},[449,1432,1268],{"class":455},[449,1434,870],{"class":459},[449,1436,477],{"class":455},[449,1438,1439,1441,1443,1445,1447,1450,1452,1454,1456,1458,1460],{"class":451,"line":516},[449,1440,456],{"class":455},[449,1442,870],{"class":459},[449,1444,823],{"class":463},[449,1446,470],{"class":455},[449,1448,1449],{"class":473},"\"ori-drawer ori-drawer_bottom\"",[449,1451,969],{"class":463},[449,1453,470],{"class":455},[449,1455,1344],{"class":473},[449,1457,1268],{"class":455},[449,1459,870],{"class":459},[449,1461,477],{"class":455},[341,1463,1465],{"id":1464},"right-to-left","Right to left",[270,1467,1468,1470,1471,1473,1474,1476,1477,1470,1479,1481,1482,1485],{},[274,1469,1198],{}," and ",[274,1472,1202],{}," follow the writing direction, and the slide follows them: in a right-to-left layout ",[274,1475,1198],{},"\ndocks to the right edge and slides in from the right. ",[274,1478,1206],{},[274,1480,1209],{}," do not change. Nothing to configure —\nthe drawer reads the direction it inherits (see ",[282,1483,1484],{"href":169},"Right-to-left",").",[433,1487,1488,1492,1495,1536],{},[436,1489],{"label":1490,"side":1198,"dir":1491},"Start, in RTL","rtl",[436,1493],{"label":1494,"side":1202,"dir":1491},"End, in RTL",[439,1496,1497],{"v-slot:vue":404},[396,1498,1500],{"className":443,"code":1499,"language":445,"meta":404,"style":404},"\u003C!-- dir=\"rtl\" on any ancestor, usually \u003Chtml>: `start` is now the right edge. -->\n\u003Cdiv dir=\"rtl\">\n    \u003COriDrawer side=\"start\" title=\"القائمة\">…\u003C\u002FOriDrawer>\n\u003C\u002Fdiv>\n",[274,1501,1502,1507,1523,1528],{"__ignoreMap":404},[449,1503,1504],{"class":451,"line":452},[449,1505,1506],{"class":812},"\u003C!-- dir=\"rtl\" on any ancestor, usually \u003Chtml>: `start` is now the right edge. -->\n",[449,1508,1509,1511,1513,1516,1518,1521],{"class":451,"line":480},[449,1510,456],{"class":455},[449,1512,902],{"class":459},[449,1514,1515],{"class":463}," dir",[449,1517,470],{"class":455},[449,1519,1520],{"class":473},"\"rtl\"",[449,1522,477],{"class":455},[449,1524,1525],{"class":451,"line":496},[449,1526,1527],{"class":455},"    \u003COriDrawer side=\"start\" title=\"القائمة\">…\u003C\u002FOriDrawer>\n",[449,1529,1530,1532,1534],{"class":451,"line":509},[449,1531,544],{"class":455},[449,1533,902],{"class":459},[449,1535,477],{"class":455},[439,1537,1538],{"v-slot:html":404},[396,1539,1541],{"className":803,"code":1540,"language":805,"meta":404,"style":404},"\u003Cdiv dir=\"rtl\">\n    \u003Cdialog class=\"ori-drawer ori-drawer_start\" aria-label=\"القائمة\">…\u003C\u002Fdialog>\n\u003C\u002Fdiv>\n",[274,1542,1543,1557,1582],{"__ignoreMap":404},[449,1544,1545,1547,1549,1551,1553,1555],{"class":451,"line":452},[449,1546,456],{"class":455},[449,1548,902],{"class":459},[449,1550,1515],{"class":463},[449,1552,470],{"class":455},[449,1554,1520],{"class":473},[449,1556,477],{"class":455},[449,1558,1559,1561,1563,1565,1567,1569,1571,1573,1576,1578,1580],{"class":451,"line":480},[449,1560,568],{"class":455},[449,1562,870],{"class":459},[449,1564,823],{"class":463},[449,1566,470],{"class":455},[449,1568,1375],{"class":473},[449,1570,969],{"class":463},[449,1572,470],{"class":455},[449,1574,1575],{"class":473},"\"القائمة\"",[449,1577,1268],{"class":455},[449,1579,870],{"class":459},[449,1581,477],{"class":455},[449,1583,1584,1586,1588],{"class":451,"line":496},[449,1585,544],{"class":455},[449,1587,902],{"class":459},[449,1589,477],{"class":455},[341,1591,1593],{"id":1592},"sizing","Sizing",[270,1595,1596,1598],{},[274,1597,1217],{}," is the one size knob: the width of a side drawer, the maximum height of a top or bottom one.\nSet it on the element, inline or from a class of your own (an unlayered rule beats the layered default). A side\ndrawer is still capped at the viewport minus 3rem, so a wide value is safe on a phone.",[433,1600,1601,1605,1609,1725],{},[436,1602],{"label":1603,"side":1202,"size":1604},"32rem wide","32rem",[436,1606],{"label":1607,"side":1202,"size":1608},"14rem wide","14rem",[439,1610,1611,1690],{"v-slot:vue":404},[396,1612,1614],{"className":443,"code":1613,"language":445,"meta":404,"style":404},"\u003C!-- Stray attributes land on the \u003Cdialog>, so an inline custom property reaches it. -->\n\u003COriDrawer title=\"Details\" style=\"--ori-drawer-size: 32rem\">…\u003C\u002FOriDrawer>\n\n\u003COriDrawer title=\"Details\" class=\"details-drawer\">…\u003C\u002FOriDrawer>\n",[274,1615,1616,1621,1661,1665],{"__ignoreMap":404},[449,1617,1618],{"class":451,"line":452},[449,1619,1620],{"class":812},"\u003C!-- Stray attributes land on the \u003Cdialog>, so an inline custom property reaches it. -->\n",[449,1622,1623,1625,1627,1629,1631,1634,1637,1639,1641,1644,1647,1650,1653,1655,1657,1659],{"class":451,"line":480},[449,1624,456],{"class":455},[449,1626,571],{"class":459},[449,1628,592],{"class":463},[449,1630,470],{"class":455},[449,1632,1633],{"class":473},"\"Details\"",[449,1635,1636],{"class":463}," style",[449,1638,470],{"class":455},[449,1640,585],{"class":473},[449,1642,1217],{"class":1643},"s4XuR",[449,1645,1646],{"class":455},": ",[449,1648,1649],{"class":522},"32",[449,1651,1652],{"class":483},"rem",[449,1654,585],{"class":473},[449,1656,1268],{"class":455},[449,1658,571],{"class":459},[449,1660,477],{"class":455},[449,1662,1663],{"class":451,"line":496},[449,1664,513],{"emptyLinePlaceholder":512},[449,1666,1667,1669,1671,1673,1675,1677,1679,1681,1684,1686,1688],{"class":451,"line":509},[449,1668,456],{"class":455},[449,1670,571],{"class":459},[449,1672,592],{"class":463},[449,1674,470],{"class":455},[449,1676,1633],{"class":473},[449,1678,823],{"class":463},[449,1680,470],{"class":455},[449,1682,1683],{"class":473},"\"details-drawer\"",[449,1685,1268],{"class":455},[449,1687,571],{"class":459},[449,1689,477],{"class":455},[396,1691,1695],{"className":1692,"code":1693,"language":1694,"meta":404,"style":404},"language-css shiki shiki-themes github-light github-dark",".details-drawer {\n    --ori-drawer-size: 14rem;\n}\n","css",[274,1696,1697,1705,1720],{"__ignoreMap":404},[449,1698,1699,1702],{"class":451,"line":452},[449,1700,1701],{"class":463},".details-drawer",[449,1703,1704],{"class":455}," {\n",[449,1706,1707,1710,1712,1715,1717],{"class":451,"line":480},[449,1708,1709],{"class":1643},"    --ori-drawer-size",[449,1711,1646],{"class":455},[449,1713,1714],{"class":522},"14",[449,1716,1652],{"class":483},[449,1718,1719],{"class":455},";\n",[449,1721,1722],{"class":451,"line":496},[449,1723,1724],{"class":455},"}\n",[439,1726,1727],{"v-slot:html":404},[396,1728,1730],{"className":803,"code":1729,"language":805,"meta":404,"style":404},"\u003Cdialog class=\"ori-drawer ori-drawer_end\" style=\"--ori-drawer-size: 32rem\" aria-label=\"Details\">…\u003C\u002Fdialog>\n",[274,1731,1732],{"__ignoreMap":404},[449,1733,1734,1736,1738,1740,1742,1744,1746,1748,1751,1753,1755,1757,1759,1761],{"class":451,"line":452},[449,1735,456],{"class":455},[449,1737,870],{"class":459},[449,1739,823],{"class":463},[449,1741,470],{"class":455},[449,1743,885],{"class":473},[449,1745,1636],{"class":463},[449,1747,470],{"class":455},[449,1749,1750],{"class":473},"\"--ori-drawer-size: 32rem\"",[449,1752,969],{"class":463},[449,1754,470],{"class":455},[449,1756,1633],{"class":473},[449,1758,1268],{"class":455},[449,1760,870],{"class":459},[449,1762,477],{"class":455},[341,1764,1766],{"id":1765},"non-modal","Non-modal",[270,1768,1769,1770,1773,1774,1776,1777,1780,1781,368,1783,1785,1786,1788,1789,1792],{},"Set ",[274,1771,1772],{},"modal"," to ",[274,1775,535],{}," to leave the page live: nothing is dimmed, inert or scroll-locked, so the page behind\nkeeps scrolling and taking clicks. The drawer is opened as a ",[274,1778,1779],{},"popover=\"manual\"",", which still puts it in the top\nlayer (no clipping by a ",[274,1782,413],{},[274,1784,416],{}," ancestor). A manual popover closes on nothing by itself, so\nthe component wires the dismissals: ",[274,1787,297],{}," closes it, and so does a press outside it. The trigger is excepted,\nso pressing it again toggles the drawer instead of closing and reopening it. Focus moves in on open (the first\n",[274,1790,1791],{},"[autofocus]"," element, else the first focusable one) and, when the drawer closes with focus inside it, returns\nto where it was.",[433,1794,1795,1797,1866],{},[436,1796],{":modal":535},[439,1798,1799],{"v-slot:vue":404},[396,1800,1802],{"className":443,"code":1801,"language":445,"meta":404,"style":404},"\u003COriDrawer :modal=\"false\" side=\"start\" title=\"Layers\">\n    \u003Ctemplate #trigger=\"{ props }\">\n        \u003COriButton v-bind=\"props\" label=\"Layers\" variant=\"outline\" \u002F>\n    \u003C\u002Ftemplate>\n    \u003Cp>The canvas behind stays live while this is open.\u003C\u002Fp>\n\u003C\u002FOriDrawer>\n",[274,1803,1804,1838,1843,1848,1853,1858],{"__ignoreMap":404},[449,1805,1806,1808,1810,1813,1815,1817,1819,1821,1823,1825,1827,1829,1831,1833,1836],{"class":451,"line":452},[449,1807,456],{"class":455},[449,1809,571],{"class":459},[449,1811,1812],{"class":455}," :",[449,1814,1772],{"class":463},[449,1816,470],{"class":455},[449,1818,585],{"class":473},[449,1820,535],{"class":522},[449,1822,585],{"class":473},[449,1824,1253],{"class":463},[449,1826,470],{"class":455},[449,1828,1258],{"class":473},[449,1830,592],{"class":463},[449,1832,470],{"class":455},[449,1834,1835],{"class":473},"\"Layers\"",[449,1837,477],{"class":455},[449,1839,1840],{"class":451,"line":480},[449,1841,1842],{"class":455},"    \u003Ctemplate #trigger=\"{ props }\">\n",[449,1844,1845],{"class":451,"line":496},[449,1846,1847],{"class":455},"        \u003COriButton v-bind=\"props\" label=\"Layers\" variant=\"outline\" \u002F>\n",[449,1849,1850],{"class":451,"line":509},[449,1851,1852],{"class":455},"    \u003C\u002Ftemplate>\n",[449,1854,1855],{"class":451,"line":516},[449,1856,1857],{"class":455},"    \u003Cp>The canvas behind stays live while this is open.\u003C\u002Fp>\n",[449,1859,1860,1862,1864],{"class":451,"line":541},[449,1861,544],{"class":455},[449,1863,571],{"class":459},[449,1865,477],{"class":455},[439,1867,1868],{"v-slot:html":404},[396,1869,1871],{"className":803,"code":1870,"language":805,"meta":404,"style":404},"\u003C!-- popover=\"manual\" keeps it in the top layer but closes on nothing by itself: Esc, a press outside\n     and focus return are yours to wire (the component does it for you). -->\n\u003Cbutton class=\"ori-button\" onclick=\"document.getElementById('layers').togglePopover()\">Layers\u003C\u002Fbutton>\n\n\u003Cdialog id=\"layers\" class=\"ori-drawer ori-drawer_start\" popover=\"manual\" aria-labelledby=\"layers-title\">\n    \u003Cdiv class=\"ori-drawer__content\">\n        \u003Cheader class=\"ori-drawer__header\">\n            \u003Ch2 id=\"layers-title\" class=\"ori-drawer__title\">Layers\u003C\u002Fh2>\n            \u003Cbutton class=\"ori-drawer__close\" aria-label=\"Close\" onclick=\"this.closest('dialog').hidePopover()\">\n                ×\n            \u003C\u002Fbutton>\n        \u003C\u002Fheader>\n        \u003Cdiv class=\"ori-drawer__body\">\n            \u003Cp>The canvas behind stays live while this is open.\u003C\u002Fp>\n        \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n\u003C\u002Fdialog>\n",[274,1872,1873,1878,1883,1922,1926,1962,1976,1990,2014,2053,2058,2066,2074,2088,2101,2109,2117],{"__ignoreMap":404},[449,1874,1875],{"class":451,"line":452},[449,1876,1877],{"class":812},"\u003C!-- popover=\"manual\" keeps it in the top layer but closes on nothing by itself: Esc, a press outside\n",[449,1879,1880],{"class":451,"line":480},[449,1881,1882],{"class":812},"     and focus return are yours to wire (the component does it for you). -->\n",[449,1884,1885,1887,1889,1891,1893,1895,1897,1899,1901,1903,1905,1907,1910,1913,1915,1918,1920],{"class":451,"line":496},[449,1886,456],{"class":455},[449,1888,820],{"class":459},[449,1890,823],{"class":463},[449,1892,470],{"class":455},[449,1894,828],{"class":473},[449,1896,831],{"class":463},[449,1898,470],{"class":455},[449,1900,585],{"class":473},[449,1902,838],{"class":455},[449,1904,387],{"class":473},[449,1906,843],{"class":463},[449,1908,1909],{"class":473},"('layers').",[449,1911,1912],{"class":463},"togglePopover",[449,1914,852],{"class":473},[449,1916,1917],{"class":455},">Layers\u003C\u002F",[449,1919,820],{"class":459},[449,1921,477],{"class":455},[449,1923,1924],{"class":451,"line":509},[449,1925,513],{"emptyLinePlaceholder":512},[449,1927,1928,1930,1932,1934,1936,1939,1941,1943,1945,1948,1950,1953,1955,1957,1960],{"class":451,"line":516},[449,1929,456],{"class":455},[449,1931,870],{"class":459},[449,1933,873],{"class":463},[449,1935,470],{"class":455},[449,1937,1938],{"class":473},"\"layers\"",[449,1940,823],{"class":463},[449,1942,470],{"class":455},[449,1944,1375],{"class":473},[449,1946,1947],{"class":463}," popover",[449,1949,470],{"class":455},[449,1951,1952],{"class":473},"\"manual\"",[449,1954,888],{"class":463},[449,1956,470],{"class":455},[449,1958,1959],{"class":473},"\"layers-title\"",[449,1961,477],{"class":455},[449,1963,1964,1966,1968,1970,1972,1974],{"class":451,"line":541},[449,1965,568],{"class":455},[449,1967,902],{"class":459},[449,1969,823],{"class":463},[449,1971,470],{"class":455},[449,1973,909],{"class":473},[449,1975,477],{"class":455},[449,1977,1978,1980,1982,1984,1986,1988],{"class":451,"line":551},[449,1979,605],{"class":455},[449,1981,918],{"class":459},[449,1983,823],{"class":463},[449,1985,470],{"class":455},[449,1987,925],{"class":473},[449,1989,477],{"class":455},[449,1991,1992,1994,1996,1998,2000,2002,2004,2006,2008,2010,2012],{"class":451,"line":556},[449,1993,630],{"class":455},[449,1995,341],{"class":459},[449,1997,873],{"class":463},[449,1999,470],{"class":455},[449,2001,1959],{"class":473},[449,2003,823],{"class":463},[449,2005,470],{"class":455},[449,2007,946],{"class":473},[449,2009,1917],{"class":455},[449,2011,341],{"class":459},[449,2013,477],{"class":455},[449,2015,2016,2018,2020,2022,2024,2026,2028,2030,2032,2034,2036,2038,2040,2042,2044,2046,2049,2051],{"class":451,"line":565},[449,2017,630],{"class":455},[449,2019,820],{"class":459},[449,2021,823],{"class":463},[449,2023,470],{"class":455},[449,2025,966],{"class":473},[449,2027,969],{"class":463},[449,2029,470],{"class":455},[449,2031,974],{"class":473},[449,2033,831],{"class":463},[449,2035,470],{"class":455},[449,2037,585],{"class":473},[449,2039,983],{"class":522},[449,2041,387],{"class":473},[449,2043,988],{"class":463},[449,2045,991],{"class":473},[449,2047,2048],{"class":463},"hidePopover",[449,2050,852],{"class":473},[449,2052,477],{"class":455},[449,2054,2055],{"class":451,"line":602},[449,2056,2057],{"class":455},"                ×\n",[449,2059,2060,2062,2064],{"class":451,"line":627},[449,2061,1142],{"class":455},[449,2063,820],{"class":459},[449,2065,477],{"class":455},[449,2067,2068,2070,2072],{"class":451,"line":659},[449,2069,662],{"class":455},[449,2071,918],{"class":459},[449,2073,477],{"class":455},[449,2075,2076,2078,2080,2082,2084,2086],{"class":451,"line":669},[449,2077,605],{"class":455},[449,2079,902],{"class":459},[449,2081,823],{"class":463},[449,2083,470],{"class":455},[449,2085,1024],{"class":473},[449,2087,477],{"class":455},[449,2089,2090,2092,2094,2097,2099],{"class":451,"line":683},[449,2091,630],{"class":455},[449,2093,270],{"class":459},[449,2095,2096],{"class":455},">The canvas behind stays live while this is open.\u003C\u002F",[449,2098,270],{"class":459},[449,2100,477],{"class":455},[449,2102,2103,2105,2107],{"class":451,"line":697},[449,2104,662],{"class":455},[449,2106,902],{"class":459},[449,2108,477],{"class":455},[449,2110,2111,2113,2115],{"class":451,"line":741},[449,2112,785],{"class":455},[449,2114,902],{"class":459},[449,2116,477],{"class":455},[449,2118,2119,2121,2123],{"class":451,"line":773},[449,2120,544],{"class":455},[449,2122,870],{"class":459},[449,2124,477],{"class":455},[270,2126,2127],{},"The two modes side by side:",[2129,2130,2131,2150],"table",{},[2132,2133,2134],"thead",{},[2135,2136,2137,2140,2143],"tr",{},[2138,2139],"th",{},[2138,2141,2142],{},"Modal (default)",[2138,2144,2145,2146,2149],{},"Non-modal (",[274,2147,2148],{},":modal=\"false\"",")",[2151,2152,2153,2171,2181,2192,2203,2214,2226,2237],"tbody",{},[2135,2154,2155,2159,2163],{},[2156,2157,2158],"td",{},"Opened with",[2156,2160,2161],{},[274,2162,293],{},[2156,2164,2165,2168,2169],{},[274,2166,2167],{},"showPopover()"," on ",[274,2170,1779],{},[2135,2172,2173,2176,2179],{},[2156,2174,2175],{},"Top layer",[2156,2177,2178],{},"yes",[2156,2180,2178],{},[2135,2182,2183,2186,2189],{},[2156,2184,2185],{},"Backdrop",[2156,2187,2188],{},"dimmed",[2156,2190,2191],{},"none",[2135,2193,2194,2197,2200],{},[2156,2195,2196],{},"Page behind",[2156,2198,2199],{},"inert, scroll locked",[2156,2201,2202],{},"live: focus, clicks and scroll all work",[2135,2204,2205,2208,2211],{},[2156,2206,2207],{},"Focus",[2156,2209,2210],{},"trapped; moves in on open, returns to the opener",[2156,2212,2213],{},"moves in on open; not trapped; returns on close if it was inside",[2135,2215,2216,2220,2223],{},[2156,2217,2218],{},[274,2219,297],{},[2156,2221,2222],{},"closes (native)",[2156,2224,2225],{},"closes, unless a control inside (a menu, a combobox) took the key",[2135,2227,2228,2231,2234],{},[2156,2229,2230],{},"Press outside",[2156,2232,2233],{},"a click on the backdrop closes",[2156,2235,2236],{},"a press outside closes, the trigger excepted",[2135,2238,2239,2244,2249],{},[2156,2240,2241],{},[274,2242,2243],{},"aria-modal",[2156,2245,2246],{},[274,2247,2248],{},"\"true\"",[2156,2250,2251],{},"omitted",[270,2253,2254,1470,2257,2260,2261,2263,2264,2266],{},[274,2255,2256],{},"closeOnEscape",[274,2258,2259],{},"closeOnInteractOutside"," turn the ",[274,2262,297],{}," and the outside dismissals off in either mode.\nWhere the browser has no Popover API, a non-modal drawer still opens (as a plain non-modal ",[274,2265,279],{},"), but in\nthe page instead of the top layer.",[270,2268,2269,2270,2273,2274,2277],{},"Open a non-modal drawer from the ",[274,2271,2272],{},"#trigger"," slot. An outside control that merely sets ",[274,2275,2276],{},"open = true"," receives\nthe press-outside first, closes the drawer, then reopens it with its click.",[341,2279,2281],{"id":2280},"controlled-open","Controlled open",[270,2283,2284,2285,2288,2289,2291,2292,2295,2296,2299,2300,2303,2304,2306,2307,2309,2310,2313],{},"Bind ",[274,2286,2287],{},"v-model:open"," to drive the drawer from your own state — a cart opened by a host action, with no ",[274,2290,2272],{},"\nslot. It works exactly as in ",[282,2293,284],{"href":2294},"\u002Fcomponents\u002Fdialog#controlled-open",": the drawer emits ",[274,2297,2298],{},"update:open"," on\nevery open and close (keeping ",[274,2301,2302],{},"v-model"," in sync when the user closes it with ",[274,2305,297],{},", the backdrop or the ×) and\n",[274,2308,994],{}," for one-shot reactions. A user-initiated close always closes first and then emits, so mirror the event\ninto your state rather than trying to veto it. Pass ",[274,2311,2312],{},"defaultOpen"," for an uncontrolled drawer that starts open.",[396,2315,2317],{"className":443,"code":2316,"language":445,"meta":404,"style":404},"\u003Cscript setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { OriButton, OriDrawer } from '@oriui\u002Fvue'\n\nconst cartOpen = ref(false)\n\nfunction checkout() {\n    \u002F\u002F …start checkout…\n    cartOpen.value = false\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n    \u003COriButton label=\"Cart (3)\" variant=\"outline\" @click=\"cartOpen = true\" \u002F>\n\n    \u003COriDrawer v-model:open=\"cartOpen\" title=\"Your cart\">\n        \u003Cp>Three items, ready to check out.\u003C\u002Fp>\n        \u003Ctemplate #footer>\n            \u003COriButton label=\"Keep shopping\" variant=\"text\" @click=\"cartOpen = false\" \u002F>\n            \u003COriButton label=\"Check out\" @click=\"checkout\" \u002F>\n        \u003C\u002Ftemplate>\n    \u003C\u002FOriDrawer>\n\u003C\u002Ftemplate>\n",[274,2318,2319,2335,2345,2355,2359,2376,2380,2391,2396,2406,2410,2418,2422,2430,2470,2474,2504,2517,2529,2566,2594,2603,2612],{"__ignoreMap":404},[449,2320,2321,2323,2325,2327,2329,2331,2333],{"class":451,"line":452},[449,2322,456],{"class":455},[449,2324,460],{"class":459},[449,2326,464],{"class":463},[449,2328,467],{"class":463},[449,2330,470],{"class":455},[449,2332,474],{"class":473},[449,2334,477],{"class":455},[449,2336,2337,2339,2341,2343],{"class":451,"line":480},[449,2338,484],{"class":483},[449,2340,487],{"class":455},[449,2342,490],{"class":483},[449,2344,493],{"class":473},[449,2346,2347,2349,2351,2353],{"class":451,"line":496},[449,2348,484],{"class":483},[449,2350,501],{"class":455},[449,2352,490],{"class":483},[449,2354,506],{"class":473},[449,2356,2357],{"class":451,"line":509},[449,2358,513],{"emptyLinePlaceholder":512},[449,2360,2361,2363,2366,2368,2370,2372,2374],{"class":451,"line":516},[449,2362,519],{"class":483},[449,2364,2365],{"class":522}," cartOpen",[449,2367,526],{"class":483},[449,2369,529],{"class":463},[449,2371,532],{"class":455},[449,2373,535],{"class":522},[449,2375,538],{"class":455},[449,2377,2378],{"class":451,"line":541},[449,2379,513],{"emptyLinePlaceholder":512},[449,2381,2382,2385,2388],{"class":451,"line":551},[449,2383,2384],{"class":483},"function",[449,2386,2387],{"class":463}," checkout",[449,2389,2390],{"class":455},"() {\n",[449,2392,2393],{"class":451,"line":556},[449,2394,2395],{"class":812},"    \u002F\u002F …start checkout…\n",[449,2397,2398,2401,2403],{"class":451,"line":565},[449,2399,2400],{"class":455},"    cartOpen.value ",[449,2402,470],{"class":483},[449,2404,2405],{"class":522}," false\n",[449,2407,2408],{"class":451,"line":602},[449,2409,1724],{"class":455},[449,2411,2412,2414,2416],{"class":451,"line":627},[449,2413,544],{"class":455},[449,2415,460],{"class":459},[449,2417,477],{"class":455},[449,2419,2420],{"class":451,"line":659},[449,2421,513],{"emptyLinePlaceholder":512},[449,2423,2424,2426,2428],{"class":451,"line":669},[449,2425,456],{"class":455},[449,2427,439],{"class":459},[449,2429,477],{"class":455},[449,2431,2432,2434,2436,2438,2440,2443,2445,2447,2450,2452,2454,2456,2458,2461,2463,2466,2468],{"class":451,"line":683},[449,2433,568],{"class":455},[449,2435,633],{"class":459},[449,2437,648],{"class":463},[449,2439,470],{"class":455},[449,2441,2442],{"class":473},"\"Cart (3)\"",[449,2444,711],{"class":463},[449,2446,470],{"class":455},[449,2448,2449],{"class":473},"\"outline\"",[449,2451,719],{"class":455},[449,2453,722],{"class":463},[449,2455,470],{"class":455},[449,2457,585],{"class":473},[449,2459,2460],{"class":455},"cartOpen ",[449,2462,470],{"class":483},[449,2464,2465],{"class":522}," true",[449,2467,585],{"class":473},[449,2469,656],{"class":455},[449,2471,2472],{"class":451,"line":697},[449,2473,513],{"emptyLinePlaceholder":512},[449,2475,2476,2478,2480,2482,2484,2486,2488,2490,2493,2495,2497,2499,2502],{"class":451,"line":741},[449,2477,568],{"class":455},[449,2479,571],{"class":459},[449,2481,574],{"class":463},[449,2483,577],{"class":455},[449,2485,580],{"class":463},[449,2487,470],{"class":455},[449,2489,585],{"class":473},[449,2491,2492],{"class":455},"cartOpen",[449,2494,585],{"class":473},[449,2496,592],{"class":463},[449,2498,470],{"class":455},[449,2500,2501],{"class":473},"\"Your cart\"",[449,2503,477],{"class":455},[449,2505,2506,2508,2510,2513,2515],{"class":451,"line":773},[449,2507,605],{"class":455},[449,2509,270],{"class":459},[449,2511,2512],{"class":455},">Three items, ready to check out.\u003C\u002F",[449,2514,270],{"class":459},[449,2516,477],{"class":455},[449,2518,2519,2521,2523,2525,2527],{"class":451,"line":782},[449,2520,605],{"class":455},[449,2522,439],{"class":459},[449,2524,610],{"class":455},[449,2526,692],{"class":463},[449,2528,477],{"class":455},[449,2530,2531,2533,2535,2537,2539,2542,2544,2546,2548,2550,2552,2554,2556,2558,2560,2562,2564],{"class":451,"line":792},[449,2532,630],{"class":455},[449,2534,633],{"class":459},[449,2536,648],{"class":463},[449,2538,470],{"class":455},[449,2540,2541],{"class":473},"\"Keep shopping\"",[449,2543,711],{"class":463},[449,2545,470],{"class":455},[449,2547,716],{"class":473},[449,2549,719],{"class":455},[449,2551,722],{"class":463},[449,2553,470],{"class":455},[449,2555,585],{"class":473},[449,2557,2460],{"class":455},[449,2559,470],{"class":483},[449,2561,734],{"class":522},[449,2563,585],{"class":473},[449,2565,656],{"class":455},[449,2567,2568,2570,2572,2574,2576,2579,2581,2583,2585,2587,2590,2592],{"class":451,"line":1165},[449,2569,630],{"class":455},[449,2571,633],{"class":459},[449,2573,648],{"class":463},[449,2575,470],{"class":455},[449,2577,2578],{"class":473},"\"Check out\"",[449,2580,719],{"class":455},[449,2582,722],{"class":463},[449,2584,470],{"class":455},[449,2586,585],{"class":473},[449,2588,2589],{"class":455},"checkout",[449,2591,585],{"class":473},[449,2593,656],{"class":455},[449,2595,2597,2599,2601],{"class":451,"line":2596},21,[449,2598,662],{"class":455},[449,2600,439],{"class":459},[449,2602,477],{"class":455},[449,2604,2606,2608,2610],{"class":451,"line":2605},22,[449,2607,785],{"class":455},[449,2609,571],{"class":459},[449,2611,477],{"class":455},[449,2613,2615,2617,2619],{"class":451,"line":2614},23,[449,2616,544],{"class":455},[449,2618,439],{"class":459},[449,2620,477],{"class":455},[341,2622,2624],{"id":2623},"form-with-pinned-actions","Form with pinned actions",[270,2626,407,2627,2630,2631,2634],{},[274,2628,2629],{},"#footer"," slot renders below the body, outside it, and only the body scrolls, so the header and the actions\nstay put while a long form scrolls. A submit button in the footer reaches a form in the body through its ",[274,2632,2633],{},"form","\nattribute.",[396,2636,2638],{"className":443,"code":2637,"language":445,"meta":404,"style":404},"\u003Cscript setup lang=\"ts\">\nimport { ref } from 'vue'\nimport { OriButton, OriDrawer, OriSwitch } from '@oriui\u002Fvue'\n\nconst open = ref(false)\nconst email = ref(true)\nconst push = ref(false)\n\nfunction save() {\n    \u002F\u002F …persist the settings…\n    open.value = false\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n    \u003COriDrawer v-model:open=\"open\" title=\"Notifications\">\n        \u003Ctemplate #trigger=\"{ props }\">\n            \u003COriButton v-bind=\"props\" label=\"Notifications\" variant=\"outline\" \u002F>\n        \u003C\u002Ftemplate>\n\n        \u003Cform id=\"notifications\" @submit.prevent=\"save\">\n            \u003COriSwitch v-model=\"email\" label=\"Email digest\" \u002F>\n            \u003COriSwitch v-model=\"push\" label=\"Push alerts\" \u002F>\n        \u003C\u002Fform>\n\n        \u003Ctemplate #footer>\n            \u003COriButton label=\"Cancel\" variant=\"text\" @click=\"open = false\" \u002F>\n            \u003COriButton type=\"submit\" form=\"notifications\" label=\"Save\" \u002F>\n        \u003C\u002Ftemplate>\n    \u003C\u002FOriDrawer>\n\u003C\u002Ftemplate>\n",[274,2639,2640,2656,2666,2677,2681,2697,2715,2732,2736,2745,2750,2759,2763,2771,2775,2783,2812,2832,2862,2870,2874,2897,2924,2950,2959,2964,2977,3014,3045,3054,3063],{"__ignoreMap":404},[449,2641,2642,2644,2646,2648,2650,2652,2654],{"class":451,"line":452},[449,2643,456],{"class":455},[449,2645,460],{"class":459},[449,2647,464],{"class":463},[449,2649,467],{"class":463},[449,2651,470],{"class":455},[449,2653,474],{"class":473},[449,2655,477],{"class":455},[449,2657,2658,2660,2662,2664],{"class":451,"line":480},[449,2659,484],{"class":483},[449,2661,487],{"class":455},[449,2663,490],{"class":483},[449,2665,493],{"class":473},[449,2667,2668,2670,2673,2675],{"class":451,"line":496},[449,2669,484],{"class":483},[449,2671,2672],{"class":455}," { OriButton, OriDrawer, OriSwitch } ",[449,2674,490],{"class":483},[449,2676,506],{"class":473},[449,2678,2679],{"class":451,"line":509},[449,2680,513],{"emptyLinePlaceholder":512},[449,2682,2683,2685,2687,2689,2691,2693,2695],{"class":451,"line":516},[449,2684,519],{"class":483},[449,2686,523],{"class":522},[449,2688,526],{"class":483},[449,2690,529],{"class":463},[449,2692,532],{"class":455},[449,2694,535],{"class":522},[449,2696,538],{"class":455},[449,2698,2699,2701,2704,2706,2708,2710,2713],{"class":451,"line":541},[449,2700,519],{"class":483},[449,2702,2703],{"class":522}," email",[449,2705,526],{"class":483},[449,2707,529],{"class":463},[449,2709,532],{"class":455},[449,2711,2712],{"class":522},"true",[449,2714,538],{"class":455},[449,2716,2717,2719,2722,2724,2726,2728,2730],{"class":451,"line":551},[449,2718,519],{"class":483},[449,2720,2721],{"class":522}," push",[449,2723,526],{"class":483},[449,2725,529],{"class":463},[449,2727,532],{"class":455},[449,2729,535],{"class":522},[449,2731,538],{"class":455},[449,2733,2734],{"class":451,"line":556},[449,2735,513],{"emptyLinePlaceholder":512},[449,2737,2738,2740,2743],{"class":451,"line":565},[449,2739,2384],{"class":483},[449,2741,2742],{"class":463}," save",[449,2744,2390],{"class":455},[449,2746,2747],{"class":451,"line":602},[449,2748,2749],{"class":812},"    \u002F\u002F …persist the settings…\n",[449,2751,2752,2755,2757],{"class":451,"line":627},[449,2753,2754],{"class":455},"    open.value ",[449,2756,470],{"class":483},[449,2758,2405],{"class":522},[449,2760,2761],{"class":451,"line":659},[449,2762,1724],{"class":455},[449,2764,2765,2767,2769],{"class":451,"line":669},[449,2766,544],{"class":455},[449,2768,460],{"class":459},[449,2770,477],{"class":455},[449,2772,2773],{"class":451,"line":683},[449,2774,513],{"emptyLinePlaceholder":512},[449,2776,2777,2779,2781],{"class":451,"line":697},[449,2778,456],{"class":455},[449,2780,439],{"class":459},[449,2782,477],{"class":455},[449,2784,2785,2787,2789,2791,2793,2795,2797,2799,2801,2803,2805,2807,2810],{"class":451,"line":741},[449,2786,568],{"class":455},[449,2788,571],{"class":459},[449,2790,574],{"class":463},[449,2792,577],{"class":455},[449,2794,580],{"class":463},[449,2796,470],{"class":455},[449,2798,585],{"class":473},[449,2800,580],{"class":455},[449,2802,585],{"class":473},[449,2804,592],{"class":463},[449,2806,470],{"class":455},[449,2808,2809],{"class":473},"\"Notifications\"",[449,2811,477],{"class":455},[449,2813,2814,2816,2818,2820,2822,2824,2826,2828,2830],{"class":451,"line":773},[449,2815,605],{"class":455},[449,2817,439],{"class":459},[449,2819,610],{"class":455},[449,2821,613],{"class":463},[449,2823,470],{"class":455},[449,2825,585],{"class":473},[449,2827,620],{"class":455},[449,2829,585],{"class":473},[449,2831,477],{"class":455},[449,2833,2834,2836,2838,2840,2842,2844,2846,2848,2850,2852,2854,2856,2858,2860],{"class":451,"line":782},[449,2835,630],{"class":455},[449,2837,633],{"class":459},[449,2839,636],{"class":463},[449,2841,470],{"class":455},[449,2843,585],{"class":473},[449,2845,643],{"class":455},[449,2847,585],{"class":473},[449,2849,648],{"class":463},[449,2851,470],{"class":455},[449,2853,2809],{"class":473},[449,2855,711],{"class":463},[449,2857,470],{"class":455},[449,2859,2449],{"class":473},[449,2861,656],{"class":455},[449,2863,2864,2866,2868],{"class":451,"line":792},[449,2865,662],{"class":455},[449,2867,439],{"class":459},[449,2869,477],{"class":455},[449,2871,2872],{"class":451,"line":1165},[449,2873,513],{"emptyLinePlaceholder":512},[449,2875,2876,2878,2880,2882,2884,2887,2890,2892,2895],{"class":451,"line":2596},[449,2877,605],{"class":455},[449,2879,2633],{"class":459},[449,2881,873],{"class":463},[449,2883,470],{"class":455},[449,2885,2886],{"class":473},"\"notifications\"",[449,2888,2889],{"class":463}," @submit.prevent",[449,2891,470],{"class":455},[449,2893,2894],{"class":473},"\"save\"",[449,2896,477],{"class":455},[449,2898,2899,2901,2904,2906,2908,2910,2913,2915,2917,2919,2922],{"class":451,"line":2605},[449,2900,630],{"class":455},[449,2902,2903],{"class":459},"OriSwitch",[449,2905,574],{"class":463},[449,2907,470],{"class":455},[449,2909,585],{"class":473},[449,2911,2912],{"class":455},"email",[449,2914,585],{"class":473},[449,2916,648],{"class":463},[449,2918,470],{"class":455},[449,2920,2921],{"class":473},"\"Email digest\"",[449,2923,656],{"class":455},[449,2925,2926,2928,2930,2932,2934,2936,2939,2941,2943,2945,2948],{"class":451,"line":2614},[449,2927,630],{"class":455},[449,2929,2903],{"class":459},[449,2931,574],{"class":463},[449,2933,470],{"class":455},[449,2935,585],{"class":473},[449,2937,2938],{"class":455},"push",[449,2940,585],{"class":473},[449,2942,648],{"class":463},[449,2944,470],{"class":455},[449,2946,2947],{"class":473},"\"Push alerts\"",[449,2949,656],{"class":455},[449,2951,2953,2955,2957],{"class":451,"line":2952},24,[449,2954,662],{"class":455},[449,2956,2633],{"class":459},[449,2958,477],{"class":455},[449,2960,2962],{"class":451,"line":2961},25,[449,2963,513],{"emptyLinePlaceholder":512},[449,2965,2967,2969,2971,2973,2975],{"class":451,"line":2966},26,[449,2968,605],{"class":455},[449,2970,439],{"class":459},[449,2972,610],{"class":455},[449,2974,692],{"class":463},[449,2976,477],{"class":455},[449,2978,2980,2982,2984,2986,2988,2990,2992,2994,2996,2998,3000,3002,3004,3006,3008,3010,3012],{"class":451,"line":2979},27,[449,2981,630],{"class":455},[449,2983,633],{"class":459},[449,2985,648],{"class":463},[449,2987,470],{"class":455},[449,2989,708],{"class":473},[449,2991,711],{"class":463},[449,2993,470],{"class":455},[449,2995,716],{"class":473},[449,2997,719],{"class":455},[449,2999,722],{"class":463},[449,3001,470],{"class":455},[449,3003,585],{"class":473},[449,3005,729],{"class":455},[449,3007,470],{"class":483},[449,3009,734],{"class":522},[449,3011,585],{"class":473},[449,3013,656],{"class":455},[449,3015,3017,3019,3021,3024,3026,3029,3032,3034,3036,3038,3040,3043],{"class":451,"line":3016},28,[449,3018,630],{"class":455},[449,3020,633],{"class":459},[449,3022,3023],{"class":463}," type",[449,3025,470],{"class":455},[449,3027,3028],{"class":473},"\"submit\"",[449,3030,3031],{"class":463}," form",[449,3033,470],{"class":455},[449,3035,2886],{"class":473},[449,3037,648],{"class":463},[449,3039,470],{"class":455},[449,3041,3042],{"class":473},"\"Save\"",[449,3044,656],{"class":455},[449,3046,3048,3050,3052],{"class":451,"line":3047},29,[449,3049,662],{"class":455},[449,3051,439],{"class":459},[449,3053,477],{"class":455},[449,3055,3057,3059,3061],{"class":451,"line":3056},30,[449,3058,785],{"class":455},[449,3060,571],{"class":459},[449,3062,477],{"class":455},[449,3064,3066,3068,3070],{"class":451,"line":3065},31,[449,3067,544],{"class":455},[449,3069,439],{"class":459},[449,3071,477],{"class":455},[341,3073,3075],{"id":3074},"dialog-on-desktop-drawer-on-a-phone","Dialog on desktop, drawer on a phone",[270,3077,3078,3079,3082,3083,3085],{},"The same content reads better as a centered dialog on a wide screen and as a bottom drawer on a phone. The\ncomponents do not switch by themselves: your app chooses, from one ",[274,3080,3081],{},"matchMedia"," check, and shares the ",[274,3084,580],{},"\nstate between the two, so resizing the window with the panel open carries it across.",[396,3087,3089],{"className":443,"code":3088,"language":445,"meta":404,"style":404},"\u003Cscript setup lang=\"ts\">\nimport { onBeforeUnmount, onMounted, ref } from 'vue'\nimport { OriButton, OriDialog, OriDrawer } from '@oriui\u002Fvue'\n\nconst open = ref(false)\n\n\u002F\u002F Wide on the server and on first paint, so hydration matches; the real answer lands on mount.\nconst wide = ref(true)\nlet query: MediaQueryList | undefined\nconst sync = () => (wide.value = Boolean(query?.matches))\n\nonMounted(() => {\n    query = window.matchMedia('(min-width: 40rem)')\n    sync()\n    query.addEventListener('change', sync)\n})\nonBeforeUnmount(() => query?.removeEventListener('change', sync))\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n    \u003COriButton label=\"Edit profile\" @click=\"open = true\" \u002F>\n\n    \u003COriDialog v-if=\"wide\" v-model:open=\"open\" title=\"Edit profile\">\n        \u003CProfileForm \u002F>\n    \u003C\u002FOriDialog>\n    \u003COriDrawer v-else v-model:open=\"open\" side=\"bottom\" title=\"Edit profile\">\n        \u003CProfileForm \u002F>\n    \u003C\u002FOriDrawer>\n\u003C\u002Ftemplate>\n",[274,3090,3091,3107,3118,3129,3133,3149,3153,3158,3175,3194,3220,3224,3236,3255,3263,3279,3284,3306,3314,3318,3326,3357,3361,3401,3410,3418,3455,3463,3471],{"__ignoreMap":404},[449,3092,3093,3095,3097,3099,3101,3103,3105],{"class":451,"line":452},[449,3094,456],{"class":455},[449,3096,460],{"class":459},[449,3098,464],{"class":463},[449,3100,467],{"class":463},[449,3102,470],{"class":455},[449,3104,474],{"class":473},[449,3106,477],{"class":455},[449,3108,3109,3111,3114,3116],{"class":451,"line":480},[449,3110,484],{"class":483},[449,3112,3113],{"class":455}," { onBeforeUnmount, onMounted, ref } ",[449,3115,490],{"class":483},[449,3117,493],{"class":473},[449,3119,3120,3122,3125,3127],{"class":451,"line":496},[449,3121,484],{"class":483},[449,3123,3124],{"class":455}," { OriButton, OriDialog, OriDrawer } ",[449,3126,490],{"class":483},[449,3128,506],{"class":473},[449,3130,3131],{"class":451,"line":509},[449,3132,513],{"emptyLinePlaceholder":512},[449,3134,3135,3137,3139,3141,3143,3145,3147],{"class":451,"line":516},[449,3136,519],{"class":483},[449,3138,523],{"class":522},[449,3140,526],{"class":483},[449,3142,529],{"class":463},[449,3144,532],{"class":455},[449,3146,535],{"class":522},[449,3148,538],{"class":455},[449,3150,3151],{"class":451,"line":541},[449,3152,513],{"emptyLinePlaceholder":512},[449,3154,3155],{"class":451,"line":551},[449,3156,3157],{"class":812},"\u002F\u002F Wide on the server and on first paint, so hydration matches; the real answer lands on mount.\n",[449,3159,3160,3162,3165,3167,3169,3171,3173],{"class":451,"line":556},[449,3161,519],{"class":483},[449,3163,3164],{"class":522}," wide",[449,3166,526],{"class":483},[449,3168,529],{"class":463},[449,3170,532],{"class":455},[449,3172,2712],{"class":522},[449,3174,538],{"class":455},[449,3176,3177,3180,3183,3185,3188,3191],{"class":451,"line":565},[449,3178,3179],{"class":483},"let",[449,3181,3182],{"class":455}," query",[449,3184,577],{"class":483},[449,3186,3187],{"class":463}," MediaQueryList",[449,3189,3190],{"class":483}," |",[449,3192,3193],{"class":522}," undefined\n",[449,3195,3196,3198,3201,3203,3206,3209,3212,3214,3217],{"class":451,"line":602},[449,3197,519],{"class":483},[449,3199,3200],{"class":463}," sync",[449,3202,526],{"class":483},[449,3204,3205],{"class":455}," () ",[449,3207,3208],{"class":483},"=>",[449,3210,3211],{"class":455}," (wide.value ",[449,3213,470],{"class":483},[449,3215,3216],{"class":463}," Boolean",[449,3218,3219],{"class":455},"(query?.matches))\n",[449,3221,3222],{"class":451,"line":627},[449,3223,513],{"emptyLinePlaceholder":512},[449,3225,3226,3229,3232,3234],{"class":451,"line":659},[449,3227,3228],{"class":463},"onMounted",[449,3230,3231],{"class":455},"(() ",[449,3233,3208],{"class":483},[449,3235,1704],{"class":455},[449,3237,3238,3241,3243,3246,3248,3250,3253],{"class":451,"line":669},[449,3239,3240],{"class":455},"    query ",[449,3242,470],{"class":483},[449,3244,3245],{"class":455}," window.",[449,3247,3081],{"class":463},[449,3249,532],{"class":455},[449,3251,3252],{"class":473},"'(min-width: 40rem)'",[449,3254,538],{"class":455},[449,3256,3257,3260],{"class":451,"line":683},[449,3258,3259],{"class":463},"    sync",[449,3261,3262],{"class":455},"()\n",[449,3264,3265,3268,3271,3273,3276],{"class":451,"line":697},[449,3266,3267],{"class":455},"    query.",[449,3269,3270],{"class":463},"addEventListener",[449,3272,532],{"class":455},[449,3274,3275],{"class":473},"'change'",[449,3277,3278],{"class":455},", sync)\n",[449,3280,3281],{"class":451,"line":741},[449,3282,3283],{"class":455},"})\n",[449,3285,3286,3289,3291,3293,3296,3299,3301,3303],{"class":451,"line":773},[449,3287,3288],{"class":463},"onBeforeUnmount",[449,3290,3231],{"class":455},[449,3292,3208],{"class":483},[449,3294,3295],{"class":455}," query?.",[449,3297,3298],{"class":463},"removeEventListener",[449,3300,532],{"class":455},[449,3302,3275],{"class":473},[449,3304,3305],{"class":455},", sync))\n",[449,3307,3308,3310,3312],{"class":451,"line":782},[449,3309,544],{"class":455},[449,3311,460],{"class":459},[449,3313,477],{"class":455},[449,3315,3316],{"class":451,"line":792},[449,3317,513],{"emptyLinePlaceholder":512},[449,3319,3320,3322,3324],{"class":451,"line":1165},[449,3321,456],{"class":455},[449,3323,439],{"class":459},[449,3325,477],{"class":455},[449,3327,3328,3330,3332,3334,3336,3339,3341,3343,3345,3347,3349,3351,3353,3355],{"class":451,"line":2596},[449,3329,568],{"class":455},[449,3331,633],{"class":459},[449,3333,648],{"class":463},[449,3335,470],{"class":455},[449,3337,3338],{"class":473},"\"Edit profile\"",[449,3340,719],{"class":455},[449,3342,722],{"class":463},[449,3344,470],{"class":455},[449,3346,585],{"class":473},[449,3348,729],{"class":455},[449,3350,470],{"class":483},[449,3352,2465],{"class":522},[449,3354,585],{"class":473},[449,3356,656],{"class":455},[449,3358,3359],{"class":451,"line":2605},[449,3360,513],{"emptyLinePlaceholder":512},[449,3362,3363,3365,3367,3370,3372,3374,3377,3379,3381,3383,3385,3387,3389,3391,3393,3395,3397,3399],{"class":451,"line":2614},[449,3364,568],{"class":455},[449,3366,284],{"class":459},[449,3368,3369],{"class":483}," v-if",[449,3371,470],{"class":455},[449,3373,585],{"class":473},[449,3375,3376],{"class":455},"wide",[449,3378,585],{"class":473},[449,3380,574],{"class":463},[449,3382,577],{"class":455},[449,3384,580],{"class":463},[449,3386,470],{"class":455},[449,3388,585],{"class":473},[449,3390,580],{"class":455},[449,3392,585],{"class":473},[449,3394,592],{"class":463},[449,3396,470],{"class":455},[449,3398,3338],{"class":473},[449,3400,477],{"class":455},[449,3402,3403,3405,3408],{"class":451,"line":2952},[449,3404,605],{"class":455},[449,3406,3407],{"class":459},"ProfileForm",[449,3409,656],{"class":455},[449,3411,3412,3414,3416],{"class":451,"line":2961},[449,3413,785],{"class":455},[449,3415,284],{"class":459},[449,3417,477],{"class":455},[449,3419,3420,3422,3424,3427,3429,3431,3433,3435,3437,3439,3441,3443,3445,3447,3449,3451,3453],{"class":451,"line":2966},[449,3421,568],{"class":455},[449,3423,571],{"class":459},[449,3425,3426],{"class":483}," v-else",[449,3428,574],{"class":463},[449,3430,577],{"class":455},[449,3432,580],{"class":463},[449,3434,470],{"class":455},[449,3436,585],{"class":473},[449,3438,580],{"class":455},[449,3440,585],{"class":473},[449,3442,1253],{"class":463},[449,3444,470],{"class":455},[449,3446,1337],{"class":473},[449,3448,592],{"class":463},[449,3450,470],{"class":455},[449,3452,3338],{"class":473},[449,3454,477],{"class":455},[449,3456,3457,3459,3461],{"class":451,"line":2979},[449,3458,605],{"class":455},[449,3460,3407],{"class":459},[449,3462,656],{"class":455},[449,3464,3465,3467,3469],{"class":451,"line":3016},[449,3466,785],{"class":455},[449,3468,571],{"class":459},[449,3470,477],{"class":455},[449,3472,3473,3475,3477],{"class":451,"line":3047},[449,3474,544],{"class":455},[449,3476,439],{"class":459},[449,3478,477],{"class":455},[341,3480,3482],{"id":3481},"motion-and-safe-areas","Motion and safe areas",[270,3484,3485,3486,3489,3490,3493,3494,3497,3498,3501,3502,3505],{},"A drawer slides in from its edge — a 0.25 s ",[274,3487,3488],{},"translate"," transition from a ",[274,3491,3492],{},"@starting-style",", with ",[274,3495,3496],{},"display"," and\n",[274,3499,3500],{},"overlay"," transitioned too, so it stays in the top layer while it slides back out — and the backdrop fades.\nUnder ",[274,3503,3504],{},"prefers-reduced-motion: reduce"," nothing moves or fades: the drawer simply appears.",[270,3507,3508,3509,3512,3513,3516],{},"The content padding grows to clear ",[274,3510,3511],{},"env(safe-area-inset-*)"," on the edges a drawer touches: top and bottom for a\nside drawer, top for a top drawer, bottom for a bottom drawer (the insets are non-zero only when the page opts in\nwith ",[274,3514,3515],{},"viewport-fit=cover","). When the content is taller than the drawer, the body scrolls between the header and\nthe footer, and that scroll does not chain to the page.",[341,3518,230],{"id":3519},"accessibility",[270,3521,3522,3523,3525,3526,368,3528,3530],{},"The accessibility contract holds across both layers — the classes and the Vue component render the same\nattributes. The interactive behavior, however, must be driven by JavaScript: a static ",[274,3524,279],{}," is markup only\nuntil ",[274,3527,293],{},[274,3529,2167],{}," opens it.",[3532,3533,3534,3556,3565,3589,3601,3619,3625],"ul",{},[3535,3536,3537,3538,1646,3541,1199,3544,3547,3548,3551,3552,3555],"li",{},"A modal drawer is a WAI-ARIA ",[287,3539,3540],{},"modal dialog",[274,3542,3543],{},"role=\"dialog\"",[274,3545,3546],{},"aria-modal=\"true\"",", and labeled by the title\nelement through ",[274,3549,3550],{},"aria-labelledby",". The body is its description (",[274,3553,3554],{},"aria-describedby",") when there is body\ncontent and you have not set your own.",[3535,3557,3558,3559,3564],{},"A non-modal drawer has the same role and labeling but ",[287,3560,3561,3562],{},"no ",[274,3563,2243],{},": the page behind stays reachable and\nfocus is not trapped.",[3535,3566,3567,3570,3571,3574,3575,3578,3579,3582,3583,3585,3586,3588],{},[287,3568,3569],{},"Name it."," Pass ",[274,3572,3573],{},"title"," (or the ",[274,3576,3577],{},"#title"," slot), or give the drawer an ",[274,3580,3581],{},"aria-label"," \u002F ",[274,3584,3550],{},". The\ntitle element is rendered only when there is a title, so a drawer named by ",[274,3587,3581],{}," has no empty heading.\nIn development a drawer that opens without any name logs a warning.",[3535,3590,3591,3592,3595,3596,1199,3598,3600],{},"The close button is named by ",[274,3593,3594],{},"closeLabel"," (",[274,3597,3581],{},[274,3599,974],{}," by default).",[3535,3602,407,3603,3605,3606,3608,3609,1470,3612,3615,3616,387],{},[274,3604,2272],{}," slot's ",[274,3607,643],{}," carry ",[274,3610,3611],{},"aria-haspopup=\"dialog\"",[274,3613,3614],{},"aria-expanded","; bind them with\n",[274,3617,3618],{},"v-bind=\"props\"",[3535,3620,3621,3622,3624],{},"Focus moves into the drawer on open (the first ",[274,3623,1791],{}," element, else the first focusable one — the close\nbutton, unless you place something earlier). A modal drawer returns focus to the element that opened it; a\nnon-modal one does the same when it closes with focus inside it.",[3535,3626,3627],{},"A modal drawer makes the rest of the page inert, so assistive technology reaches only the drawer.",[2129,3629,3630,3640],{},[2132,3631,3632],{},[2135,3633,3634,3637],{},[2138,3635,3636],{},"Key",[2138,3638,3639],{},"Action",[2151,3641,3642,3655,3665],{},[2135,3643,3644,3652],{},[2156,3645,3646,3582,3649],{},[274,3647,3648],{},"Enter",[274,3650,3651],{},"Space",[2156,3653,3654],{},"On the trigger: opens the drawer; on a non-modal drawer, pressing it again closes it.",[2135,3656,3657,3662],{},[2156,3658,3659],{},[274,3660,3661],{},"Escape",[2156,3663,3664],{},"Closes the drawer and returns focus. Non-modal: not when a control inside it (an open menu) took the key first.",[2135,3666,3667,3675],{},[2156,3668,3669,3582,3672],{},[274,3670,3671],{},"Tab",[274,3673,3674],{},"Shift+Tab",[2156,3676,3677],{},"Modal: cycles through the drawer's controls (the platform's focus trap). Non-modal: follows the page's DOM order.",[341,3679,324],{"id":3680},"framework-api",[270,3682,3683,3684,3686,3687,3689],{},"The props, events, slots and headless wiring of the ",[287,3685,338],{}," component. The standalone CSS layer has no\ncomponent API — its surface is the ",[282,3688,343],{"href":312}," above, and the behavior is yours to wire.",[3691,3692,3693],"h3",{"id":643},"Props",[2129,3695,3696,3712],{},[2132,3697,3698],{},[2135,3699,3700,3703,3706,3709],{},[2138,3701,3702],{},"Prop",[2138,3704,3705],{},"Type",[2138,3707,3708],{},"Default",[2138,3710,3711],{},"Description",[2151,3713,3714,3733,3754,3771,3788,3808,3827,3851],{},[2135,3715,3716,3720,3725,3730],{},[2156,3717,3718],{},[274,3719,3594],{},[2156,3721,3722],{},[274,3723,3724],{},"string",[2156,3726,3727],{},[274,3728,3729],{},"'Close'",[2156,3731,3732],{},"The accessible name of the × button.",[2135,3734,3735,3739,3744,3748],{},[2156,3736,3737],{},[274,3738,2256],{},[2156,3740,3741],{},[274,3742,3743],{},"boolean",[2156,3745,3746],{},[274,3747,2712],{},[2156,3749,3750,3751,3753],{},"Whether ",[274,3752,297],{}," closes the drawer.",[2135,3755,3756,3760,3764,3768],{},[2156,3757,3758],{},[274,3759,2259],{},[2156,3761,3762],{},[274,3763,3743],{},[2156,3765,3766],{},[274,3767,2712],{},[2156,3769,3770],{},"Whether a click on the backdrop (modal) or a press outside (non-modal) closes the drawer.",[2135,3772,3773,3777,3781,3785],{},[2156,3774,3775],{},[274,3776,2312],{},[2156,3778,3779],{},[274,3780,3743],{},[2156,3782,3783],{},[274,3784,535],{},[2156,3786,3787],{},"Whether the drawer is open on first mount.",[2135,3789,3790,3794,3798,3802],{},[2156,3791,3792],{},[274,3793,1772],{},[2156,3795,3796],{},[274,3797,3743],{},[2156,3799,3800],{},[274,3801,2712],{},[2156,3803,3804,3805,3807],{},"Modal mode: ",[274,3806,293],{}," (trap, inert page, scroll lock, backdrop) vs a manual popover (page stays live).",[2135,3809,3810,3814,3818,3821],{},[2156,3811,3812],{},[274,3813,580],{},[2156,3815,3816],{},[274,3817,3743],{},[2156,3819,3820],{},"—",[2156,3822,3823,3824,3826],{},"Controlled open state for ",[274,3825,2287],{},". Omit for an uncontrolled drawer.",[2135,3828,3829,3833,3838,3843],{},[2156,3830,3831],{},[274,3832,1194],{},[2156,3834,3835],{},[274,3836,3837],{},"'start' | 'end' | 'top' | 'bottom'",[2156,3839,3840],{},[274,3841,3842],{},"'end'",[2156,3844,3845,3846,3582,3848,3850],{},"The viewport edge the drawer docks to; ",[274,3847,1198],{},[274,3849,1202],{}," swap sides in RTL.",[2135,3852,3853,3857,3861,3863],{},[2156,3854,3855],{},[274,3856,3573],{},[2156,3858,3859],{},[274,3860,3724],{},[2156,3862,3820],{},[2156,3864,3865,3866,3868],{},"Heading text. Overridden by the ",[274,3867,3577],{}," slot when provided.",[3691,3870,3872],{"id":3871},"events-attributes","Events & attributes",[2129,3874,3875,3887],{},[2132,3876,3877],{},[2135,3878,3879,3882,3885],{},[2138,3880,3881],{},"Event",[2138,3883,3884],{},"Payload",[2138,3886,3711],{},[2151,3888,3889,3904],{},[2135,3890,3891,3895,3899],{},[2156,3892,3893],{},[274,3894,2298],{},[2156,3896,3897],{},[274,3898,3743],{},[2156,3900,3901,3902,387],{},"Fires on every open\u002Fclose transition — enables ",[274,3903,2287],{},[2135,3905,3906,3910,3912],{},[2156,3907,3908],{},[274,3909,994],{},[2156,3911,3820],{},[2156,3913,3914,3915,3917],{},"Fires whenever the drawer closes (trigger, ",[274,3916,297],{},", backdrop, outside press, × or host).",[270,3919,3920,3921,3923,3924,3926,3927,387],{},"Both events fire in the uncontrolled (",[274,3922,2312],{}," + ",[274,3925,2272],{},") mode too, so a host can react to a close\nwithout owning the state. Controlled mode is notify-only, as in ",[282,3928,284],{"href":2294},[270,3930,3931,3933,3934,3936,3937,3941,3942,3944,3945,3947,3948,1199,3950,1199,3953,3956,3957,3959,3960,3963,3964,3605,3966,387],{},[274,3932,571],{}," renders a fragment (the ",[274,3935,2272],{}," slot ",[3938,3939,3940],"em",{},"plus"," the ",[274,3943,279],{},"), so stray attributes are forwarded to\nthe ",[274,3946,279],{},", not to the trigger: ",[274,3949,3581],{},[274,3951,3952],{},"class",[274,3954,3955],{},"style"," (including a ",[274,3958,1217],{}," custom\nproperty), ",[274,3961,3962],{},"data-*"," and listeners all land there. Put attributes meant for the trigger on the trigger element\nthrough the ",[274,3965,2272],{},[274,3967,643],{},[3691,3969,3971],{"id":3970},"slots","Slots",[2129,3973,3974,3986],{},[2132,3975,3976],{},[2135,3977,3978,3981,3984],{},[2138,3979,3980],{},"Slot",[2138,3982,3983],{},"Scope",[2138,3985,3711],{},[2151,3987,3988,4011,4025,4040],{},[2135,3989,3990,3994,3999],{},[2156,3991,3992],{},[274,3993,613],{},[2156,3995,3996],{},[274,3997,3998],{},"{ props: object, open: boolean }",[2156,4000,4001,4002,4004,4005,1199,4008,4010],{},"The control that toggles the drawer. Bind ",[274,4003,643],{}," on your trigger element: ",[274,4006,4007],{},"aria-haspopup",[274,4009,3614],{},", and a click handler that opens a closed drawer and closes an open one.",[2135,4012,4013,4017,4019],{},[2156,4014,4015],{},[274,4016,3573],{},[2156,4018,3820],{},[2156,4020,4021,4022,4024],{},"Replaces the heading text; receives no scope. Falls back to the ",[274,4023,3573],{}," prop when omitted.",[2135,4026,4027,4032,4034],{},[2156,4028,4029],{},[274,4030,4031],{},"default",[2156,4033,3820],{},[2156,4035,4036,4037,387],{},"Body content rendered inside ",[274,4038,4039],{},".ori-drawer__body",[2135,4041,4042,4046,4048],{},[2156,4043,4044],{},[274,4045,692],{},[2156,4047,3820],{},[2156,4049,4050,4051,4054],{},"Actions rendered inside ",[274,4052,4053],{},".ori-drawer__footer",", below the body. The footer is omitted when the slot is not provided.",[3691,4056,4058],{"id":4057},"headless-adapter","Headless & adapter",[270,4060,4061,4063,4064,4069,4070,4073,4074,4076,4077,4079,4080,1199,4082,4085,4086,4089,4090,4092,4093,4095,4096,4098,4099,4102],{},[274,4062,571],{}," calls ",[282,4065,4066],{"href":193},[274,4067,4068],{},"useDialog()"," from ",[274,4071,4072],{},"@oriui\u002Fheadless\u002Fvue",", the same engine as\n",[274,4075,284],{},", which defaults to the native ",[274,4078,279],{}," adapter: the focus trap, ",[274,4081,297],{},[274,4083,4084],{},"::backdrop"," and focus\nreturn are the platform's job, so ",[287,4087,4088],{},"no adapter and no extra dependency are required",". The engine owns only the\nopen state and the ARIA prop bags; the component shows and hides the element itself (",[274,4091,293],{}," or\n",[274,4094,2167],{},"). A custom engine registered for ",[274,4097,870],{}," with the ",[274,4100,4101],{},"OriHeadless"," plugin applies to both\ncomponents — the markup never changes.",[270,4104,4105,4106,4108],{},"See ",[282,4107,194],{"href":193}," for the full control contract.",[3955,4110,4111],{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}",{"title":404,"searchDepth":480,"depth":480,"links":4113},[4114,4115,4116,4117,4118,4119,4120,4121,4122,4123,4124,4125,4126],{"id":343,"depth":480,"text":344},{"id":390,"depth":480,"text":391},{"id":424,"depth":480,"text":425},{"id":1188,"depth":480,"text":1189},{"id":1464,"depth":480,"text":1465},{"id":1592,"depth":480,"text":1593},{"id":1765,"depth":480,"text":1766},{"id":2280,"depth":480,"text":2281},{"id":2623,"depth":480,"text":2624},{"id":3074,"depth":480,"text":3075},{"id":3481,"depth":480,"text":3482},{"id":3519,"depth":480,"text":230},{"id":3680,"depth":480,"text":324,"children":4127},[4128,4129,4130,4131],{"id":643,"depth":496,"text":3693},{"id":3871,"depth":496,"text":3872},{"id":3970,"depth":496,"text":3971},{"id":4057,"depth":496,"text":4058},"md",{},{"title":50,"description":51},"components\u002Fdrawer","JWlgjcrujIJJJfbsEhNF8yBafmxBNpVfENbqoDsPVQ0",1791706811476]