@astryxdesign/core 0.7.2-canary.3f45fc2 → 0.7.2-canary.405bb94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/CheckboxInput/CheckboxInput.d.ts +1 -1
  2. package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
  3. package/dist/CheckboxInput/CheckboxInput.js +3 -1
  4. package/dist/CheckboxList/CheckboxListItem.d.ts +9 -1
  5. package/dist/CheckboxList/CheckboxListItem.d.ts.map +1 -1
  6. package/dist/CheckboxList/CheckboxListItem.js +4 -2
  7. package/dist/Dialog/Dialog.d.ts.map +1 -1
  8. package/dist/Dialog/Dialog.js +20 -8
  9. package/dist/Drawer/Drawer.d.ts +191 -0
  10. package/dist/Drawer/Drawer.d.ts.map +1 -0
  11. package/dist/Drawer/Drawer.js +382 -0
  12. package/dist/Drawer/DrawerHeader.d.ts +85 -0
  13. package/dist/Drawer/DrawerHeader.d.ts.map +1 -0
  14. package/dist/Drawer/DrawerHeader.js +134 -0
  15. package/dist/Drawer/index.d.ts +11 -0
  16. package/dist/Drawer/index.d.ts.map +1 -0
  17. package/dist/Drawer/index.js +11 -0
  18. package/dist/Drawer/useDrawerDialogPresence.d.ts +42 -0
  19. package/dist/Drawer/useDrawerDialogPresence.d.ts.map +1 -0
  20. package/dist/Drawer/useDrawerDialogPresence.js +236 -0
  21. package/dist/DropdownMenu/DropdownMenuDivider.d.ts +5 -3
  22. package/dist/DropdownMenu/DropdownMenuDivider.d.ts.map +1 -1
  23. package/dist/DropdownMenu/DropdownMenuDivider.js +7 -3
  24. package/dist/Item/Item.d.ts +6 -2
  25. package/dist/Item/Item.d.ts.map +1 -1
  26. package/dist/Item/Item.js +19 -4
  27. package/dist/Layer/useLayerDismissal.d.ts +1 -1
  28. package/dist/Layer/useLayerDismissal.js +1 -1
  29. package/dist/Layout/container.stylex.d.ts +5 -5
  30. package/dist/Layout/container.stylex.js +4 -4
  31. package/dist/List/List.d.ts +46 -19
  32. package/dist/List/List.d.ts.map +1 -1
  33. package/dist/List/List.js +28 -10
  34. package/dist/List/ListContext.d.ts +8 -3
  35. package/dist/List/ListContext.d.ts.map +1 -1
  36. package/dist/List/ListContext.js +7 -2
  37. package/dist/List/ListItem.d.ts +13 -5
  38. package/dist/List/ListItem.d.ts.map +1 -1
  39. package/dist/List/ListItem.js +21 -8
  40. package/dist/List/index.d.ts +1 -1
  41. package/dist/List/index.d.ts.map +1 -1
  42. package/dist/Markdown/Markdown.d.ts.map +1 -1
  43. package/dist/Markdown/Markdown.js +8 -1
  44. package/dist/RadioList/RadioListItem.d.ts +9 -1
  45. package/dist/RadioList/RadioListItem.d.ts.map +1 -1
  46. package/dist/RadioList/RadioListItem.js +2 -0
  47. package/dist/TabList/TabMenu.d.ts +2 -2
  48. package/dist/TabList/TabMenu.d.ts.map +1 -1
  49. package/dist/TabList/TabMenu.js +6 -3
  50. package/dist/astryx.css +20 -2
  51. package/dist/hooks/useEntryAnimation.d.ts +2 -1
  52. package/dist/hooks/useEntryAnimation.d.ts.map +1 -1
  53. package/dist/hooks/useEntryAnimation.js +14 -12
  54. package/dist/hooks/useIsHydrating.d.ts +6 -0
  55. package/dist/hooks/useIsHydrating.d.ts.map +1 -0
  56. package/dist/hooks/useIsHydrating.js +30 -0
  57. package/dist/index.d.ts +1 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +1 -0
  60. package/dist/theme/derivedVarRegistry.d.ts.map +1 -1
  61. package/dist/theme/derivedVarRegistry.js +0 -3
  62. package/dist/utils/plainDate.d.ts.map +1 -1
  63. package/dist/utils/plainDate.js +15 -9
  64. package/package.json +8 -3
  65. package/src/CheckboxInput/CheckboxInput.test.tsx +34 -0
  66. package/src/CheckboxInput/CheckboxInput.tsx +3 -1
  67. package/src/CheckboxList/CheckboxList.test.tsx +22 -0
  68. package/src/CheckboxList/CheckboxListItem.doc.mjs +16 -0
  69. package/src/CheckboxList/CheckboxListItem.tsx +10 -0
  70. package/src/Dialog/Dialog.test.tsx +46 -0
  71. package/src/Dialog/Dialog.tsx +20 -7
  72. package/src/Dialog/__tests__/Dialog.a11y.known-failures.ts +0 -14
  73. package/src/Drawer/Drawer.doc.mjs +472 -0
  74. package/src/Drawer/Drawer.spec.md +357 -0
  75. package/src/Drawer/Drawer.test.tsx +1300 -0
  76. package/src/Drawer/Drawer.tsx +613 -0
  77. package/src/Drawer/DrawerDirection.test.tsx +127 -0
  78. package/src/Drawer/DrawerHeader.doc.mjs +293 -0
  79. package/src/Drawer/DrawerHeader.test.tsx +102 -0
  80. package/src/Drawer/DrawerHeader.tsx +235 -0
  81. package/src/Drawer/__tests__/DrawerAudit.a11y.chromium.spec.ts +401 -0
  82. package/src/Drawer/__tests__/DrawerHeaderAudit.a11y.chromium.spec.ts +297 -0
  83. package/src/Drawer/index.ts +13 -0
  84. package/src/Drawer/useDrawerDialogPresence.ts +284 -0
  85. package/src/DropdownMenu/DropdownMenu.test.tsx +21 -12
  86. package/src/DropdownMenu/DropdownMenuDivider.doc.mjs +2 -2
  87. package/src/DropdownMenu/DropdownMenuDivider.tsx +9 -5
  88. package/src/DropdownMenu/__tests__/Menu.a11y.chromium.spec.ts +145 -0
  89. package/src/DropdownMenu/__tests__/Menu.a11y.known-failures.ts +26 -0
  90. package/src/DropdownMenu/__tests__/Menu.a11y.renders.tsx +65 -0
  91. package/src/DropdownMenu/__tests__/Menu.a11y.states.ts +138 -0
  92. package/src/DropdownMenu/__tests__/Menu.a11y.test.tsx +136 -0
  93. package/src/Item/Item.doc.mjs +12 -8
  94. package/src/Item/Item.spec.md +226 -0
  95. package/src/Item/Item.test.tsx +61 -0
  96. package/src/Item/Item.tsx +40 -4
  97. package/src/Layer/layerViewportInset.test.ts +1 -0
  98. package/src/Layer/useLayerDismissal.ts +1 -1
  99. package/src/Layout/container.stylex.ts +6 -6
  100. package/src/List/List.doc.mjs +14 -1
  101. package/src/List/List.spec.md +129 -77
  102. package/src/List/List.test.tsx +163 -94
  103. package/src/List/List.tsx +74 -18
  104. package/src/List/ListContext.tsx +9 -3
  105. package/src/List/ListItem.doc.mjs +16 -0
  106. package/src/List/ListItem.tsx +56 -27
  107. package/src/List/index.ts +1 -1
  108. package/src/Markdown/Markdown.tsx +14 -1
  109. package/src/RadioList/RadioList.test.tsx +22 -0
  110. package/src/RadioList/RadioListItem.doc.mjs +16 -0
  111. package/src/RadioList/RadioListItem.tsx +10 -1
  112. package/src/TabList/TabList.spec.md +57 -44
  113. package/src/TabList/TabList.test.tsx +67 -0
  114. package/src/TabList/TabMenu.doc.mjs +4 -3
  115. package/src/TabList/TabMenu.tsx +7 -4
  116. package/src/TreeList/TreeList.spec.md +29 -17
  117. package/src/hooks/useEntryAnimation.doc.mjs +4 -4
  118. package/src/hooks/useEntryAnimation.ssr.test.tsx +143 -0
  119. package/src/hooks/useEntryAnimation.ts +15 -16
  120. package/src/hooks/useIsHydrating.test.tsx +70 -0
  121. package/src/hooks/useIsHydrating.ts +31 -0
  122. package/src/index.ts +1 -0
  123. package/src/theme/derivedVarRegistry.test.ts +3 -3
  124. package/src/theme/derivedVarRegistry.ts +0 -3
  125. package/src/utils/plainDate.test.ts +37 -1
  126. package/src/utils/plainDate.ts +15 -5
@@ -158,7 +158,7 @@ export interface CheckboxInputProps extends Omit<BaseProps, 'onChange'> {
158
158
  * />
159
159
  * ```
160
160
  */
161
- export declare function CheckboxInput({ label, isLabelHidden, description, onChange, changeAction, isLoading, value, isDisabled, htmlName, disabledMessage, isReadOnly, isOptional, isRequired, size, onFocus, onBlur, labelIcon, status, width, xstyle, className, style, ref, 'aria-describedby': ariaDescribedByProp, ...rest }: CheckboxInputProps): import("react").JSX.Element;
161
+ export declare function CheckboxInput({ id: idProp, label, isLabelHidden, description, onChange, changeAction, isLoading, value, isDisabled, htmlName, disabledMessage, isReadOnly, isOptional, isRequired, size, onFocus, onBlur, labelIcon, status, width, xstyle, className, style, ref, 'aria-describedby': ariaDescribedByProp, ...rest }: CheckboxInputProps): import("react").JSX.Element;
162
162
  export declare namespace CheckboxInput {
163
163
  var displayName: string;
164
164
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxInput.d.ts","sourceRoot":"","sources":["../../src/CheckboxInput/CheckboxInput.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAOL,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAS3C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAG9C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAoHhD,QAAA,MAAM,iBAAiB;;;;;;;;;EASrB,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAE/D,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACrE,wDAAwD;IACxD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxE;;OAEG;IACH,YAAY,CAAC,EAAE,CACb,OAAO,EAAE,OAAO,EAChB,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAC7B,IAAI,GAAG,OAAO,CAAC,IAAI,CAA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7Pe,aAAa"}
@@ -132,6 +132,7 @@ const dynamicWidthStyles = {
132
132
  * ```
133
133
  */
134
134
  export function CheckboxInput({
135
+ id: idProp,
135
136
  label,
136
137
  isLabelHidden = false,
137
138
  description,
@@ -161,7 +162,8 @@ export function CheckboxInput({
161
162
  // The row is the pressable: the overlay's pressed arm reads the row's
162
163
  // scope marker, the way the indicator's hover tint does.
163
164
  const pressable = usePressFeedback();
164
- const id = useId();
165
+ const generatedId = useId();
166
+ const id = idProp || generatedId;
165
167
  const descriptionID = useId();
166
168
  const statusMessageID = useId();
167
169
  // Announce the effective required state (form default included) while the
@@ -14,7 +14,15 @@
14
14
  */
15
15
  import { type ReactNode } from 'react';
16
16
  import type { BaseProps } from '../BaseProps';
17
+ import type { ItemAlign } from '../Item';
17
18
  export interface CheckboxListItemProps extends BaseProps<HTMLLIElement> {
19
+ /**
20
+ * Vertical alignment of the start and end content against the label,
21
+ * forwarded to Item. Use `first-line` to keep the checkbox level with the
22
+ * first line of a wrapped label.
23
+ * @default 'center'
24
+ */
25
+ align?: ItemAlign;
18
26
  /**
19
27
  * Primary text label for the item.
20
28
  *
@@ -120,7 +128,7 @@ export interface CheckboxListItemProps extends BaseProps<HTMLLIElement> {
120
128
  * />
121
129
  * ```
122
130
  */
123
- export declare function CheckboxListItem({ label, 'aria-label': ariaLabel, value, description, endContent, isDisabled: isItemDisabled, isLoading: isItemLoading, isChecked, onCheck, ref, xstyle, className, style, onClick: onClickProp, ...restProps }: CheckboxListItemProps): import("react").JSX.Element;
131
+ export declare function CheckboxListItem({ label, 'aria-label': ariaLabel, value, description, endContent, isDisabled: isItemDisabled, isLoading: isItemLoading, isChecked, onCheck, ref, xstyle, className, style, onClick: onClickProp, align, ...restProps }: CheckboxListItemProps): import("react").JSX.Element;
124
132
  export declare namespace CheckboxListItem {
125
133
  var displayName: string;
126
134
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxListItem.d.ts","sourceRoot":"","sources":["../../src/CheckboxList/CheckboxList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ACL,GAAG,SAAS,EACb,EAAE,qBAAqB,+BA6IvB;yBA9Je,gBAAgB"}
@@ -26,11 +26,11 @@ import { ListContext } from "../List/ListContext.js";
26
26
  import { CheckboxListContext } from "./CheckboxListContext.js";
27
27
  import { useTranslator } from "../i18n/index.js";
28
28
  import { ItemDescriptionContext } from "../Item/ItemDescriptionContext.js";
29
-
29
+ import { jsx as _jsx } from "react/jsx-runtime";
30
30
  // =============================================================================
31
31
  // Styles
32
32
  // =============================================================================
33
- import { jsx as _jsx } from "react/jsx-runtime";
33
+
34
34
  const styles = {
35
35
  selected: {
36
36
  kWkggS: "xgcxg3y",
@@ -103,6 +103,7 @@ export function CheckboxListItem({
103
103
  className,
104
104
  style,
105
105
  onClick: onClickProp,
106
+ align,
106
107
  ...restProps
107
108
  }) {
108
109
  const t = useTranslator();
@@ -193,6 +194,7 @@ export function CheckboxListItem({
193
194
  }) : label,
194
195
  description: description,
195
196
  endContent: endContent,
197
+ align: align,
196
198
  isDisabled: effectiveDisabled
197
199
  // Delegate row clicks to the checkbox instead of wiring onClick (which
198
200
  // would add an invisible row button = a second tab stop). The checkbox
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA2B5C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAMhD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAyB9C;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,gBAAgB,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzD,4EAA4E;AAC5E,UAAU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AAQ,SAAS,CAAC,iBAAiB,CAAC;IAC/D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;OAOG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC;IAE3C;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IAEpC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,QAAgB,EAChB,YAAY,EACZ,KAAW,EACX,SAAmB,EACnB,QAAQ,EACR,OAAoB,EACpB,OAAgB,EAChB,OAAO,EACP,QAAQ,EACR,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,KAAK,EACT,EAAE,WAAW,sCAuVb;yBAvWe,MAAM"}
@@ -27,7 +27,7 @@
27
27
  * - /apps/storybook/stories/Dialog.stories.tsx (storybook stories)
28
28
  * - /packages/cli/assets/templates/blocks/components/Dialog/ (showcase blocks)
29
29
  */
30
- import { useCallback, useEffect, useId, useMemo, useRef } from 'react';
30
+ import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef } from 'react';
31
31
  import * as stylex from '@stylexjs/stylex';
32
32
  import { useScrollLock } from "../hooks/useScrollLock.js";
33
33
  import { layerTextReset } from "../Layer/layerTextReset.stylex.js";
@@ -348,11 +348,25 @@ export function Dialog({
348
348
  }, [titleId, hasConsumerName]);
349
349
  const mergedDialogRef = useMergedRefs(ref, attachDialog);
350
350
 
351
- // Capture the element that was focused when the dialog opened,
352
- // for directional animation origin and focus restoration on close.
351
+ // Capture the element that was focused when the dialog opened, for
352
+ // directional animation origin and focus restoration on close.
353
353
  const triggerElementRef = useRef(null);
354
354
  useInteractionModalityTracking();
355
355
 
356
+ // This runs in a layout effect so the capture lands before any descendant's
357
+ // passive mount effect: all layout effects run before any passive effect,
358
+ // while a child's passive effect runs before this parent's passive effect.
359
+ // Content that mounts in the open commit — e.g. a DialogHeader focusing its
360
+ // own title on mount — would otherwise move document.activeElement inside
361
+ // the dialog before the capture ran, and closing would then restore focus
362
+ // to a detached node, stranding the user's focus on <body>.
363
+ useLayoutEffect(() => {
364
+ if (isInline || !isOpen) {
365
+ return;
366
+ }
367
+ triggerElementRef.current = document.activeElement;
368
+ }, [isOpen, isInline]);
369
+
356
370
  // Derive dismissal behavior from purpose
357
371
  const allowEscape = purpose !== 'required';
358
372
  const allowBackdropClick = purpose === 'info';
@@ -367,11 +381,9 @@ export function Dialog({
367
381
  return;
368
382
  }
369
383
  if (isOpen) {
370
- // Capture the currently focused element as the trigger — used for
371
- // directional animation origin and focus restoration on close.
372
- triggerElementRef.current = document.activeElement;
373
-
374
- // Set directional CSS custom properties before opening
384
+ // Set directional CSS custom properties before opening. The trigger was
385
+ // captured by the layout effect above, before any descendant effect
386
+ // could move focus.
375
387
  const trigger = triggerElementRef.current;
376
388
  if (trigger && trigger !== document.body) {
377
389
  const dir = getDialogDirection(trigger);
@@ -0,0 +1,191 @@
1
+ /**
2
+ * @file Drawer.tsx
3
+ * @input Uses React, StyleX, theme tokens, the shared layer text/structure resets and content boundary, the Dialog purpose type, shared focus/dismissal/depth primitives, container padding lowering, scroll locking/dialog presence, BaseProps, merged refs/props, themeProps
4
+ * @output Exports Drawer component and DrawerProps
5
+ * @position Core implementation; consumed by index.ts, tested by Drawer.test.tsx, demonstrated in Storybook
6
+ *
7
+ * Overlay panel for inspectors and detail views — the "click a table row,
8
+ * see its details" pattern. Slides in from the inline start or end edge and
9
+ * floats above the page content: unlike a docked panel it never reflows the
10
+ * layout underneath, it overlays it (with or without a scrim).
11
+ *
12
+ * Inline axis only (start/end). Block-axis sheets are BottomSheet's job;
13
+ * a drawer is always a full-height side panel.
14
+ *
15
+ * Sizing is viewport-aware: `width` is the desktop budget, and below
16
+ * the mobile breakpoint it preserves a 56px reveal of the page behind, capped
17
+ * by the requested width (or fills the viewport with the experimental
18
+ * `experimental.isFullWidthOnMobile` option).
19
+ *
20
+ * Uses the native `<dialog>` element (same precedent as Dialog/MobileNav):
21
+ * - `showModal()` when `hasScrim` (default) — top-layer rendering, focus
22
+ * trapping, `::backdrop`, no z-index management.
23
+ * - `showPopover()` when `hasScrim={false}` — non-modal top-layer overlay;
24
+ * the page behind stays interactive (e.g. master-detail inspectors).
25
+ *
26
+ * Entry animation uses `@starting-style`; exit slides out before the active
27
+ * modal-dialog or manual-popover host releases the top layer and focus returns
28
+ * to the element that opened the drawer. React owns `display` for both legs
29
+ * rather than a discrete `display` transition, so the panel stops painting in
30
+ * the same commit as the host closes — see the `rendered` style for why.
31
+ *
32
+ * Sibling drawers use the shared layer dismissal stack for topmost-only Escape
33
+ * handling and the browser top layer's chronological paint order.
34
+ *
35
+ * Dismissal follows Dialog: `purpose` decides whether Escape and a scrim click
36
+ * request close, and Drawer renders no close button of its own. Compose
37
+ * `DrawerHeader` with `onOpenChange` for a visible close action, as with
38
+ * `DialogHeader`.
39
+ *
40
+ * The scrolling content area is the drawer's container, like Dialog's inner
41
+ * box: the `padding` prop, else the theme's `padding` on `drawer`, insets it
42
+ * through container tokens, defaulting to `--spacing-4` like Dialog, and the
43
+ * applied inset is published so a lone Section child escapes it and a Layout
44
+ * redistributes it to its regions. Compose `DrawerHeader` inside a `Layout`, as
45
+ * `DialogHeader` is composed in Dialog, so the header is not padded twice. The
46
+ * root dialog stays the overlay boundary (`overlayPaddingReset`).
47
+ *
48
+ * SYNC: When modified, update these files to stay in sync:
49
+ * - /packages/core/src/Drawer/Drawer.doc.mjs (props table, features, usage)
50
+ * - /packages/core/src/Drawer/Drawer.test.tsx (tests for new/changed behavior)
51
+ * - /packages/core/src/Drawer/Drawer.spec.md (component contract)
52
+ * - /packages/core/src/Drawer/index.ts (exports if types change)
53
+ * - /packages/cli/assets/templates/blocks/components/Drawer/ (showcase blocks)
54
+ * - /apps/storybook/stories/Drawer.stories.tsx (examples and visual coverage)
55
+ */
56
+ import { type ReactNode } from 'react';
57
+ import type { BaseProps } from '../BaseProps';
58
+ import type { DialogPurpose } from '../Dialog';
59
+ import type { SpacingStep } from '../Layout';
60
+ export interface DrawerProps extends BaseProps<HTMLDialogElement> {
61
+ /** Ref forwarded to the root <dialog> element */
62
+ ref?: React.Ref<HTMLDialogElement>;
63
+ /**
64
+ * Whether the drawer is open. Fully controlled — pair with `onOpenChange`.
65
+ */
66
+ isOpen: boolean;
67
+ /**
68
+ * Called when the drawer requests an open-state change. Escape and a scrim
69
+ * click call it with `false` as `purpose` allows; a `DrawerHeader` close
70
+ * button calls it when you pass the same callback to the header. The caller
71
+ * owns the open state. When sibling drawers are open, Escape only closes the
72
+ * top (last-opened) drawer.
73
+ */
74
+ onOpenChange: (isOpen: boolean) => void;
75
+ /**
76
+ * Which edge the drawer slides from.
77
+ * - `'end'` — inline-end edge (right in LTR) — the inspector convention
78
+ * - `'start'` — inline-start edge (left in LTR)
79
+ * @default 'end'
80
+ */
81
+ side?: 'start' | 'end';
82
+ /**
83
+ * Desktop width budget. A number is pixels; a string is any CSS length
84
+ * (`'50%'`, `'32rem'`). Below the mobile breakpoint (640px), this
85
+ * remains the maximum while the drawer preserves a 56px reveal of the page
86
+ * behind — see `experimental.isFullWidthOnMobile`.
87
+ * @default 400
88
+ */
89
+ width?: number | string;
90
+ /**
91
+ * Experimental options, outside the stable compatibility promise: anything
92
+ * in this object may change or be removed in a patch release. Omit it for
93
+ * the stable behavior.
94
+ * @experimental
95
+ */
96
+ experimental?: {
97
+ /**
98
+ * Cover the full viewport width on mobile (below 640px) instead of
99
+ * preserving the default 56px reveal of the page behind. The reveal makes
100
+ * the drawer read as an overlay rather than a navigation.
101
+ * @experimental
102
+ * @default false
103
+ */
104
+ isFullWidthOnMobile?: boolean;
105
+ };
106
+ /**
107
+ * Accessible label for the drawer (required — the drawer has no
108
+ * built-in heading to derive a name from).
109
+ */
110
+ label: string;
111
+ /**
112
+ * Whether to render a modal scrim behind the drawer.
113
+ * - `true` (default) — `showModal()`: top layer, focus trap, body scroll
114
+ * lock, click-outside-to-close.
115
+ * - `false` — `showPopover()`: non-modal top-layer overlay; the page behind
116
+ * stays interactive. Escape still closes through the shared layer stack.
117
+ * @default true
118
+ */
119
+ hasScrim?: boolean;
120
+ /**
121
+ * Configures how the drawer enables dismissals, matching Dialog.
122
+ * - required: Disables Escape and scrim click (for mandatory flows); a
123
+ * modal required drawer is exposed as an `alertdialog`
124
+ * - form: Prevents scrim click, allows the Escape key
125
+ * - info: Allows Escape and scrim click
126
+ *
127
+ * A non-modal drawer has no scrim, so `form` and `info` behave the same.
128
+ * @default 'info'
129
+ */
130
+ purpose?: DialogPurpose;
131
+ /**
132
+ * Internal padding of the drawer content using the spacing scale, matching
133
+ * Dialog. Accepts numeric spacing steps: 0, 0.5, 1, 1.5, 2, 3, 4, 5, 6, 8,
134
+ * 10. When omitted, uses the theme default for drawers (`--spacing-4`, 16px,
135
+ * unless the theme sets `padding` on `drawer`), as Dialog does. Pass `0` for
136
+ * a full-bleed content area. The content area is a container: a Section that
137
+ * is its only child escapes the padding, bleed children such as Table and
138
+ * Divider compensate against it, and a Layout picks it up for its regions.
139
+ */
140
+ padding?: SpacingStep;
141
+ /**
142
+ * Drawer content. Rendered inside a full-height scrollable area.
143
+ * Focus the element with `data-autofocus` on open, if present.
144
+ */
145
+ children: ReactNode;
146
+ /**
147
+ * Test ID for the root element.
148
+ */
149
+ 'data-testid'?: string;
150
+ }
151
+ /**
152
+ * An overlay panel for inspectors and detail views.
153
+ *
154
+ * Slides in from the logical start or end edge and floats above the page
155
+ * using the native `<dialog>` element: modal with a scrim by default, or a
156
+ * non-modal overlay with `hasScrim={false}` that leaves the page behind
157
+ * interactive. `width` is the desktop budget; below 640px the panel preserves
158
+ * a 56px page reveal without exceeding that budget (or fills the viewport
159
+ * with the experimental `experimental.isFullWidthOnMobile`). Escape
160
+ * closes the top-most open drawer; focus returns to the element that
161
+ * opened it.
162
+ *
163
+ * Dismissal matches Dialog: `purpose` decides whether Escape and a scrim click
164
+ * close the drawer, and `DrawerHeader` renders a close button when given
165
+ * `onOpenChange`.
166
+ *
167
+ * Like Dialog, the drawer is a container: `padding` (or a theme's `padding`
168
+ * on `drawer`) insets the content area, a lone Section child escapes that
169
+ * inset, and a Layout inside picks it up for its header, content, and footer
170
+ * regions. The default inset is `--spacing-4`, matching Dialog.
171
+ *
172
+ * @example
173
+ * ```
174
+ * const [selected, setSelected] = useState(null);
175
+ * const handleOpenChange = isOpen => !isOpen && setSelected(null);
176
+ * <Drawer
177
+ * isOpen={selected != null}
178
+ * onOpenChange={handleOpenChange}
179
+ * label={`Details: ${selected?.name}`}>
180
+ * <Layout
181
+ * header={<DrawerHeader title={selected?.name} onOpenChange={handleOpenChange} />}
182
+ * content={<LayoutContent><HostDetails host={selected} /></LayoutContent>}
183
+ * />
184
+ * </Drawer>
185
+ * ```
186
+ */
187
+ export declare function Drawer({ isOpen, onOpenChange, side, width, experimental, label, hasScrim, purpose, padding, children, xstyle, className, style, onClick: onClickProp, onKeyDown: onKeyDownProp, ref, ...props }: DrawerProps): import("react").JSX.Element;
188
+ export declare namespace Drawer {
189
+ var displayName: string;
190
+ }
191
+ //# sourceMappingURL=Drawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Drawer.d.ts","source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