@duro-app/ui 5.1.0 → 5.3.0

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 (233) hide show
  1. package/dist/Table-Cm5cCnZD.js +1524 -0
  2. package/dist/Table-Cm5cCnZD.js.map +1 -0
  3. package/dist/components/ActionBar/styles.css.d.ts +1 -1
  4. package/dist/components/ActionBar/styles.css.d.ts.map +1 -1
  5. package/dist/components/Badge/Badge.d.ts +1 -1
  6. package/dist/components/Badge/Badge.d.ts.map +1 -1
  7. package/dist/components/Badge/Badge.stories.d.ts +3 -0
  8. package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
  9. package/dist/components/Badge/styles.css.d.ts +4 -0
  10. package/dist/components/Badge/styles.css.d.ts.map +1 -1
  11. package/dist/components/Button/Button.d.ts +11 -2
  12. package/dist/components/Button/Button.d.ts.map +1 -1
  13. package/dist/components/Button/Button.stories.d.ts +1 -0
  14. package/dist/components/Button/Button.stories.d.ts.map +1 -1
  15. package/dist/components/ButtonGroup/ButtonGroup.d.ts +9 -2
  16. package/dist/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
  17. package/dist/components/ButtonGroup/ButtonGroup.meta.d.ts.map +1 -1
  18. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +19 -0
  19. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts.map +1 -1
  20. package/dist/components/ButtonGroup/ButtonGroupContext.d.ts +13 -0
  21. package/dist/components/ButtonGroup/ButtonGroupContext.d.ts.map +1 -0
  22. package/dist/components/ButtonGroup/attached.css.d.ts +34 -0
  23. package/dist/components/ButtonGroup/attached.css.d.ts.map +1 -0
  24. package/dist/components/ButtonGroup/styles.css.d.ts +7 -0
  25. package/dist/components/ButtonGroup/styles.css.d.ts.map +1 -1
  26. package/dist/components/ButtonGroup/useGroupedControl.d.ts +25 -0
  27. package/dist/components/ButtonGroup/useGroupedControl.d.ts.map +1 -0
  28. package/dist/components/Combobox/Combobox.d.ts +1 -1
  29. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  30. package/dist/components/Combobox/styles.css.d.ts +0 -64
  31. package/dist/components/Combobox/styles.css.d.ts.map +1 -1
  32. package/dist/components/Dialog/Dialog.d.ts +11 -3
  33. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  34. package/dist/components/Dialog/Dialog.stories.d.ts +4 -0
  35. package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
  36. package/dist/components/Dialog/styles.css.d.ts +3 -2
  37. package/dist/components/Dialog/styles.css.d.ts.map +1 -1
  38. package/dist/components/DragDrop/DragDrop.d.ts.map +1 -1
  39. package/dist/components/DragDrop/styles.css.d.ts +11 -3
  40. package/dist/components/DragDrop/styles.css.d.ts.map +1 -1
  41. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  42. package/dist/components/Drawer/styles.css.d.ts +2 -2
  43. package/dist/components/Drawer/styles.css.d.ts.map +1 -1
  44. package/dist/components/Grid/Grid.d.ts +11 -2
  45. package/dist/components/Grid/Grid.d.ts.map +1 -1
  46. package/dist/components/Grid/Grid.stories.d.ts +2 -0
  47. package/dist/components/Grid/Grid.stories.d.ts.map +1 -1
  48. package/dist/components/Input/Input.d.ts +6 -1
  49. package/dist/components/Input/Input.d.ts.map +1 -1
  50. package/dist/components/Input/Input.meta.d.ts.map +1 -1
  51. package/dist/components/Input/Input.stories.d.ts +1 -0
  52. package/dist/components/Input/Input.stories.d.ts.map +1 -1
  53. package/dist/components/Input/styles.css.d.ts +18 -0
  54. package/dist/components/Input/styles.css.d.ts.map +1 -1
  55. package/dist/components/InputGroup/InputGroup.d.ts +6 -1
  56. package/dist/components/InputGroup/InputGroup.d.ts.map +1 -1
  57. package/dist/components/InputGroup/InputGroup.stories.d.ts +1 -0
  58. package/dist/components/InputGroup/InputGroup.stories.d.ts.map +1 -1
  59. package/dist/components/Listbox/Listbox.d.ts +75 -0
  60. package/dist/components/Listbox/Listbox.d.ts.map +1 -0
  61. package/dist/components/Listbox/Listbox.meta.d.ts +3 -0
  62. package/dist/components/Listbox/Listbox.meta.d.ts.map +1 -0
  63. package/dist/components/Listbox/Listbox.stories.d.ts +7 -0
  64. package/dist/components/Listbox/Listbox.stories.d.ts.map +1 -0
  65. package/dist/components/Listbox/styles.css.d.ts +75 -0
  66. package/dist/components/Listbox/styles.css.d.ts.map +1 -0
  67. package/dist/components/Menu/Menu.d.ts +18 -5
  68. package/dist/components/Menu/Menu.d.ts.map +1 -1
  69. package/dist/components/Menu/Menu.meta.d.ts.map +1 -1
  70. package/dist/components/Menu/Menu.stories.d.ts +7 -0
  71. package/dist/components/Menu/Menu.stories.d.ts.map +1 -1
  72. package/dist/components/Menu/MenuContext.d.ts +3 -0
  73. package/dist/components/Menu/MenuContext.d.ts.map +1 -1
  74. package/dist/components/Menu/styles.css.d.ts +24 -15
  75. package/dist/components/Menu/styles.css.d.ts.map +1 -1
  76. package/dist/components/Menu/useMenuRoot.d.ts +14 -1
  77. package/dist/components/Menu/useMenuRoot.d.ts.map +1 -1
  78. package/dist/components/Popover/Popover.d.ts +7 -2
  79. package/dist/components/Popover/Popover.d.ts.map +1 -1
  80. package/dist/components/Popover/styles.css.d.ts +4 -1
  81. package/dist/components/Popover/styles.css.d.ts.map +1 -1
  82. package/dist/components/ScrollArea/styles.css.d.ts +1 -1
  83. package/dist/components/ScrollArea/styles.css.d.ts.map +1 -1
  84. package/dist/components/Select/Select.d.ts.map +1 -1
  85. package/dist/components/Select/Select.stories.d.ts +2 -0
  86. package/dist/components/Select/Select.stories.d.ts.map +1 -1
  87. package/dist/components/Select/styles.css.d.ts +2 -2
  88. package/dist/components/Select/styles.css.d.ts.map +1 -1
  89. package/dist/components/Select/useSelectRoot.d.ts.map +1 -1
  90. package/dist/components/TextLink/TextLink.d.ts +24 -0
  91. package/dist/components/TextLink/TextLink.d.ts.map +1 -0
  92. package/dist/components/TextLink/TextLink.meta.d.ts +3 -0
  93. package/dist/components/TextLink/TextLink.meta.d.ts.map +1 -0
  94. package/dist/components/TextLink/TextLink.stories.d.ts +9 -0
  95. package/dist/components/TextLink/TextLink.stories.d.ts.map +1 -0
  96. package/dist/components/TextLink/styles.css.d.ts +28 -0
  97. package/dist/components/TextLink/styles.css.d.ts.map +1 -0
  98. package/dist/components/ThemeProvider/Layers.stories.d.ts +24 -0
  99. package/dist/components/ThemeProvider/Layers.stories.d.ts.map +1 -0
  100. package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  101. package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts +1 -0
  102. package/dist/components/ThemeProvider/ThemeProvider.stories.d.ts.map +1 -1
  103. package/dist/components/Toast/styles.css.d.ts +1 -0
  104. package/dist/components/Toast/styles.css.d.ts.map +1 -1
  105. package/dist/components/Toggle/Toggle.d.ts.map +1 -1
  106. package/dist/components/Toggle/styles.css.d.ts +3 -0
  107. package/dist/components/Toggle/styles.css.d.ts.map +1 -1
  108. package/dist/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
  109. package/dist/components/ToggleGroup/styles.css.d.ts +5 -0
  110. package/dist/components/ToggleGroup/styles.css.d.ts.map +1 -1
  111. package/dist/components/Toolbar/ControlContextBoundary.d.ts +10 -0
  112. package/dist/components/Toolbar/ControlContextBoundary.d.ts.map +1 -0
  113. package/dist/components/Toolbar/Toolbar.d.ts +22 -0
  114. package/dist/components/Toolbar/Toolbar.d.ts.map +1 -0
  115. package/dist/components/Toolbar/Toolbar.meta.d.ts +3 -0
  116. package/dist/components/Toolbar/Toolbar.meta.d.ts.map +1 -0
  117. package/dist/components/Toolbar/Toolbar.stories.d.ts +28 -0
  118. package/dist/components/Toolbar/Toolbar.stories.d.ts.map +1 -0
  119. package/dist/components/Toolbar/ToolbarContext.d.ts +10 -0
  120. package/dist/components/Toolbar/ToolbarContext.d.ts.map +1 -0
  121. package/dist/components/Toolbar/styles.css.d.ts +16 -0
  122. package/dist/components/Toolbar/styles.css.d.ts.map +1 -0
  123. package/dist/components/Tooltip/styles.css.d.ts +1 -1
  124. package/dist/components/Tooltip/styles.css.d.ts.map +1 -1
  125. package/dist/components/VirtualTable/styles.css.d.ts +1 -1
  126. package/dist/components/VirtualTable/styles.css.d.ts.map +1 -1
  127. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +14 -0
  128. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
  129. package/dist/components/VisuallyHidden/VisuallyHidden.meta.d.ts +3 -0
  130. package/dist/components/VisuallyHidden/VisuallyHidden.meta.d.ts.map +1 -0
  131. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +7 -0
  132. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts.map +1 -0
  133. package/dist/docs/FlexGrow.stories.d.ts +7 -0
  134. package/dist/docs/FlexGrow.stories.d.ts.map +1 -0
  135. package/dist/index.css +1 -1
  136. package/dist/index.d.ts +7 -1
  137. package/dist/index.d.ts.map +1 -1
  138. package/dist/index.js +3768 -3356
  139. package/dist/index.js.map +1 -1
  140. package/dist/index.native.d.ts +1 -0
  141. package/dist/index.native.d.ts.map +1 -1
  142. package/dist/shared/ModalContext.d.ts +14 -0
  143. package/dist/shared/ModalContext.d.ts.map +1 -0
  144. package/dist/shared/mergeRefs.d.ts +4 -0
  145. package/dist/shared/mergeRefs.d.ts.map +1 -0
  146. package/dist/shared/useOrderedRegistry.d.ts +26 -0
  147. package/dist/shared/useOrderedRegistry.d.ts.map +1 -0
  148. package/dist/styles/visually-hidden.css.d.ts +6 -0
  149. package/dist/styles/visually-hidden.css.d.ts.map +1 -1
  150. package/dist/table.js +45 -45
  151. package/dist/table.js.map +1 -1
  152. package/package.json +2 -2
  153. package/src/components/ActionBar/styles.css.ts +2 -1
  154. package/src/components/Badge/Badge.stories.tsx +62 -1
  155. package/src/components/Badge/Badge.tsx +1 -1
  156. package/src/components/Badge/styles.css.ts +5 -0
  157. package/src/components/Button/Button.stories.tsx +41 -0
  158. package/src/components/Button/Button.tsx +22 -1
  159. package/src/components/ButtonGroup/ButtonGroup.meta.ts +14 -1
  160. package/src/components/ButtonGroup/ButtonGroup.stories.tsx +271 -1
  161. package/src/components/ButtonGroup/ButtonGroup.tsx +46 -14
  162. package/src/components/ButtonGroup/ButtonGroupContext.ts +19 -0
  163. package/src/components/ButtonGroup/attached.css.ts +44 -0
  164. package/src/components/ButtonGroup/styles.css.ts +8 -0
  165. package/src/components/ButtonGroup/useGroupedControl.ts +75 -0
  166. package/src/components/Combobox/Combobox.tsx +25 -79
  167. package/src/components/Combobox/styles.css.ts +0 -74
  168. package/src/components/Dialog/Dialog.meta.ts +1 -1
  169. package/src/components/Dialog/Dialog.stories.tsx +109 -3
  170. package/src/components/Dialog/Dialog.tsx +68 -10
  171. package/src/components/Dialog/styles.css.ts +5 -2
  172. package/src/components/DragDrop/DragDrop.tsx +15 -8
  173. package/src/components/DragDrop/styles.css.ts +20 -4
  174. package/src/components/Drawer/Drawer.tsx +5 -1
  175. package/src/components/Drawer/styles.css.ts +3 -2
  176. package/src/components/Grid/Grid.meta.ts +1 -1
  177. package/src/components/Grid/Grid.stories.tsx +53 -1
  178. package/src/components/Grid/Grid.tsx +23 -11
  179. package/src/components/Input/Input.meta.ts +10 -3
  180. package/src/components/Input/Input.stories.tsx +52 -2
  181. package/src/components/Input/Input.tsx +12 -3
  182. package/src/components/Input/styles.css.ts +29 -0
  183. package/src/components/InputGroup/InputGroup.stories.tsx +20 -0
  184. package/src/components/InputGroup/InputGroup.tsx +20 -2
  185. package/src/components/Listbox/Listbox.meta.ts +52 -0
  186. package/src/components/Listbox/Listbox.stories.tsx +170 -0
  187. package/src/components/Listbox/Listbox.tsx +278 -0
  188. package/src/components/Listbox/styles.css.ts +90 -0
  189. package/src/components/Menu/Menu.meta.ts +2 -1
  190. package/src/components/Menu/Menu.stories.tsx +289 -8
  191. package/src/components/Menu/Menu.tsx +107 -29
  192. package/src/components/Menu/MenuContext.ts +3 -0
  193. package/src/components/Menu/styles.css.ts +32 -15
  194. package/src/components/Menu/useMenuRoot.ts +105 -48
  195. package/src/components/Popover/Popover.tsx +26 -5
  196. package/src/components/Popover/styles.css.ts +9 -1
  197. package/src/components/ScrollArea/styles.css.ts +2 -1
  198. package/src/components/Select/Select.stories.tsx +20 -1
  199. package/src/components/Select/Select.tsx +9 -3
  200. package/src/components/Select/styles.css.ts +3 -2
  201. package/src/components/Select/useSelectRoot.ts +17 -0
  202. package/src/components/TextLink/TextLink.meta.ts +33 -0
  203. package/src/components/TextLink/TextLink.stories.tsx +63 -0
  204. package/src/components/TextLink/TextLink.tsx +46 -0
  205. package/src/components/TextLink/styles.css.ts +58 -0
  206. package/src/components/ThemeProvider/Layers.stories.tsx +379 -0
  207. package/src/components/ThemeProvider/ThemeProvider.stories.tsx +50 -0
  208. package/src/components/ThemeProvider/ThemeProvider.tsx +4 -2
  209. package/src/components/Toast/styles.css.ts +3 -0
  210. package/src/components/Toggle/Toggle.tsx +20 -4
  211. package/src/components/Toggle/styles.css.ts +6 -0
  212. package/src/components/ToggleGroup/ToggleGroup.tsx +16 -4
  213. package/src/components/ToggleGroup/styles.css.ts +7 -0
  214. package/src/components/Toolbar/ControlContextBoundary.tsx +16 -0
  215. package/src/components/Toolbar/Toolbar.meta.ts +48 -0
  216. package/src/components/Toolbar/Toolbar.stories.tsx +468 -0
  217. package/src/components/Toolbar/Toolbar.tsx +113 -0
  218. package/src/components/Toolbar/ToolbarContext.ts +15 -0
  219. package/src/components/Toolbar/styles.css.ts +17 -0
  220. package/src/components/Tooltip/styles.css.ts +2 -1
  221. package/src/components/VirtualTable/styles.css.ts +2 -1
  222. package/src/components/VisuallyHidden/VisuallyHidden.meta.ts +19 -0
  223. package/src/components/VisuallyHidden/VisuallyHidden.stories.tsx +30 -0
  224. package/src/components/VisuallyHidden/VisuallyHidden.tsx +22 -0
  225. package/src/docs/FlexGrow.stories.tsx +83 -0
  226. package/src/index.native.ts +1 -0
  227. package/src/index.ts +7 -1
  228. package/src/shared/ModalContext.ts +18 -0
  229. package/src/shared/mergeRefs.ts +11 -0
  230. package/src/shared/useOrderedRegistry.ts +57 -0
  231. package/src/styles/visually-hidden.css.ts +8 -0
  232. package/dist/Table-BkrgH0jb.js +0 -1199
  233. package/dist/Table-BkrgH0jb.js.map +0 -1
@@ -0,0 +1,75 @@
1
+ import { ReactNode, Ref } from 'react';
2
+ /**
3
+ * A headless-state popup list of options for an input that keeps focus: a
4
+ * Combobox's text field, or a rich-text editor's typeahead (mentions, slash
5
+ * commands). The anchor element owns focus and the keyboard; it moves the
6
+ * highlight by setting `highlightedId`, and wires itself to the list with
7
+ * `getAnchorProps()` (aria-controls / aria-expanded / aria-activedescendant).
8
+ * A press on an option never takes focus from the anchor.
9
+ */
10
+ export type ListboxMaxHeight = 'listMaxH' | 'listMaxHSm';
11
+ /** Default option id: the listbox id plus the value, made safe for an id. */
12
+ export declare function defaultOptionId(listboxId: string, value: string): string;
13
+ export interface ListboxAnchorProps {
14
+ role?: 'combobox';
15
+ 'aria-controls': string | undefined;
16
+ 'aria-expanded': boolean;
17
+ 'aria-activedescendant': string | undefined;
18
+ 'aria-autocomplete': 'list';
19
+ 'aria-haspopup': 'listbox';
20
+ }
21
+ /**
22
+ * ARIA for the element that keeps focus and drives the list. Spread it on an
23
+ * input, or set each attribute on a contenteditable root.
24
+ */
25
+ export declare function getAnchorProps({ id, open, highlightedId, }: {
26
+ id: string;
27
+ open: boolean;
28
+ highlightedId: string | null | undefined;
29
+ }): ListboxAnchorProps;
30
+ interface RootProps {
31
+ /** DOM id of the list; pass the same to getAnchorProps. */
32
+ id: string;
33
+ open: boolean;
34
+ /** The rect the list is placed against: the input, or the editor's caret. */
35
+ anchor: () => DOMRect | null | undefined;
36
+ /** Give the list the anchor's width (a Combobox under its input). */
37
+ matchAnchorWidth?: boolean;
38
+ /** Id of the highlighted option, controlled by the anchor's keyboard handling. */
39
+ highlightedId: string | null;
40
+ /** Pointer hover asks to move the highlight. */
41
+ onHighlight?: (id: string | null) => void;
42
+ /** A press on an option. */
43
+ onSelect?: (value: string) => void;
44
+ /** Option value → DOM id. Default: defaultOptionId(id, value). */
45
+ getOptionId?: (value: string) => string;
46
+ /** Accessible name of the list. */
47
+ 'aria-label'?: string;
48
+ /** Size-token key capping the list's height; longer lists scroll. Default: listMaxH. */
49
+ maxHeight?: ListboxMaxHeight;
50
+ children: ReactNode;
51
+ }
52
+ declare function Root({ id, open, anchor, matchAnchorWidth, highlightedId, onHighlight, onSelect, getOptionId, 'aria-label': ariaLabel, maxHeight, children, }: RootProps): import("react/jsx-runtime").JSX.Element | null;
53
+ interface OptionProps {
54
+ value: string;
55
+ /** DOM id. Default: Root's getOptionId(value). */
56
+ id?: string;
57
+ /** The committed choice (aria-selected). */
58
+ selected?: boolean;
59
+ disabled?: boolean;
60
+ children: ReactNode;
61
+ ref?: Ref<HTMLDivElement>;
62
+ }
63
+ declare function Option({ value, id: idProp, selected, disabled, children, ref, }: OptionProps): import("react/jsx-runtime").JSX.Element;
64
+ /** Shown in place of options when nothing matches. */
65
+ declare function Empty({ children }: {
66
+ children: ReactNode;
67
+ }): import("react/jsx-runtime").JSX.Element;
68
+ export declare const Listbox: {
69
+ Root: typeof Root;
70
+ Option: typeof Option;
71
+ Empty: typeof Empty;
72
+ getAnchorProps: typeof getAnchorProps;
73
+ };
74
+ export {};
75
+ //# sourceMappingURL=Listbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Listbox.d.ts","sourceRoot":"","sources":["../../../src/components/Listbox/Listbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,GAAG,EAQT,MAAM,OAAO,CAAA;AASd;;;;;;;GAOG;AAEH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAA;AAOxD,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB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,SAAsB,EACtB,QAAQ,GACT,EAAE,SAAS,kDA4FX;AAID,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC1B;AAED,iBAAS,MAAM,CAAC,EACd,KAAK,EACL,EAAE,EAAE,MAAM,EACV,QAAgB,EAChB,QAAgB,EAChB,QAAQ,EACR,GAAG,GACJ,EAAE,WAAW,2CAwBb;AAID,sDAAsD;AACtD,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,2CAG/C;AAED,eAAO,MAAM,OAAO;;;;;CAKnB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ComponentMeta } from '../component-meta';
2
+ export declare const meta: ComponentMeta;
3
+ //# sourceMappingURL=Listbox.meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Listbox.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Listbox/Listbox.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAiDlB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj;
5
+ export declare const EditorTypeahead: Story;
6
+ export declare const EmptyList: Story;
7
+ //# sourceMappingURL=Listbox.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Listbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Listbox/Listbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAUpD,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AA8GrB,eAAO,MAAM,eAAe,EAAE,KA2B7B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAevB,CAAA"}
@@ -0,0 +1,75 @@
1
+ import { css } from 'react-strict-dom';
2
+ export declare const styles: Readonly<{
3
+ readonly popup: Readonly<{
4
+ readonly position: css.StyleXClassNameFor<"position", "fixed">;
5
+ readonly top: css.StyleXClassNameFor<"top", 0>;
6
+ readonly left: css.StyleXClassNameFor<"left", 0>;
7
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
8
+ readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
9
+ readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
10
+ readonly borderColor: css.StyleXClassNameFor<"borderColor", string>;
11
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
12
+ readonly boxShadow: css.StyleXClassNameFor<"boxShadow", string>;
13
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
14
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
15
+ readonly overflowY: css.StyleXClassNameFor<"overflowY", "auto">;
16
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", number>;
17
+ readonly pointerEvents: css.StyleXClassNameFor<"pointerEvents", "auto">;
18
+ }>;
19
+ readonly ownWidth: Readonly<{
20
+ readonly minWidth: css.StyleXClassNameFor<"minWidth", string>;
21
+ }>;
22
+ readonly maxHeightListMaxH: Readonly<{
23
+ readonly maxHeight: css.StyleXClassNameFor<"maxHeight", string>;
24
+ }>;
25
+ readonly maxHeightListMaxHSm: Readonly<{
26
+ readonly maxHeight: css.StyleXClassNameFor<"maxHeight", string>;
27
+ }>;
28
+ readonly position: (top: number, left: number) => readonly [Readonly<{
29
+ top: css.StyleXClassNameFor<"top", number>;
30
+ left: css.StyleXClassNameFor<"left", number>;
31
+ }>, css.InlineStyles];
32
+ readonly width: (width: number) => readonly [Readonly<{
33
+ width: css.StyleXClassNameFor<"width", number>;
34
+ }>, css.InlineStyles];
35
+ readonly option: Readonly<{
36
+ readonly display: css.StyleXClassNameFor<"display", "flex">;
37
+ readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
38
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
39
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
40
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
41
+ readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
42
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
43
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
44
+ readonly color: css.StyleXClassNameFor<"color", string>;
45
+ readonly cursor: css.StyleXClassNameFor<"cursor", "pointer">;
46
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", "transparent">;
47
+ readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "background-color">;
48
+ readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
49
+ }>;
50
+ readonly optionSelected: Readonly<{
51
+ readonly color: css.StyleXClassNameFor<"color", string>;
52
+ readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
53
+ }>;
54
+ readonly optionHighlighted: Readonly<{
55
+ readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
56
+ readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "solid">;
57
+ readonly outlineWidth: css.StyleXClassNameFor<"outlineWidth", string>;
58
+ readonly outlineColor: css.StyleXClassNameFor<"outlineColor", "transparent">;
59
+ readonly outlineOffset: css.StyleXClassNameFor<"outlineOffset", `calc(-1 * ${css.StyleXVar<string>})`>;
60
+ }>;
61
+ readonly optionDisabled: Readonly<{
62
+ readonly color: css.StyleXClassNameFor<"color", string>;
63
+ readonly cursor: css.StyleXClassNameFor<"cursor", "default">;
64
+ }>;
65
+ readonly empty: Readonly<{
66
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
67
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
68
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
69
+ readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
70
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
71
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
72
+ readonly color: css.StyleXClassNameFor<"color", string>;
73
+ }>;
74
+ }>;
75
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Listbox/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAUpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+EjB,CAAA"}
@@ -1,16 +1,29 @@
1
- import { ReactNode } from 'react';
1
+ import { ReactNode, Ref } from 'react';
2
2
  interface RootProps {
3
3
  children: ReactNode;
4
+ /** Controlled open state. */
5
+ open?: boolean;
6
+ /** Initial open state (uncontrolled). */
7
+ defaultOpen?: boolean;
8
+ /** Called when the menu opens or closes. */
9
+ onOpenChange?: (open: boolean) => void;
4
10
  }
5
- declare function Root({ children }: RootProps): import("react/jsx-runtime").JSX.Element;
6
- declare function Trigger({ children }: {
11
+ declare function Root({ children, open, defaultOpen, onOpenChange }: RootProps): import("react/jsx-runtime").JSX.Element;
12
+ export type MenuTriggerVariant = 'default' | 'ghost';
13
+ interface TriggerProps {
7
14
  children: ReactNode;
8
- }): import("react/jsx-runtime").JSX.Element;
15
+ /** Accessible name — required when the label is an icon only. */
16
+ 'aria-label'?: string;
17
+ /** `ghost`: no border or fill until hover, for toolbars. Default: `default`. */
18
+ variant?: MenuTriggerVariant;
19
+ ref?: Ref<HTMLButtonElement>;
20
+ }
21
+ declare function Trigger({ children, 'aria-label': ariaLabel, variant, ref }: TriggerProps): import("react/jsx-runtime").JSX.Element;
9
22
  interface PopupProps {
10
23
  children: ReactNode;
11
24
  align?: 'start' | 'end';
12
25
  }
13
- declare function Popup({ children, align }: PopupProps): import("react/jsx-runtime").JSX.Element | null;
26
+ declare function Popup({ children, align }: PopupProps): import('react').ReactPortal | null;
14
27
  interface ItemProps {
15
28
  onClick?: () => void;
16
29
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAA2B,MAAM,OAAO,CAAA;AAQ9D,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAC,EAAE,SAAS,2CAUlC;AAQD,iBAAS,OAAO,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,2CAiCjD;AAGD,UAAU,UAAU;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CACxB;AAED,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAE,KAAe,EAAC,EAAE,UAAU,kDAkBrD;AAGD,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAC,EAAE,SAAS,2CA6B3C;AAGD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,QAAQ,CAAC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M,IAAI,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAC,EAAE,SAAS,2CA6B3C;AAGD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,QAAQ,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,EAAE,aAAa,2CAyBhD;AAMD,iBAAS,SAAS,4CAEjB;AAED,eAAO,MAAM,IAAI;;;;;;;CAOhB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAuClB,CAAA"}
1
+ {"version":3,"file":"Menu.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aAwClB,CAAA"}
@@ -8,4 +8,11 @@ export declare const KeyboardNavigation: Story;
8
8
  export declare const WithLinks: Story;
9
9
  export declare const WithSeparator: Story;
10
10
  export declare const NestedControlWarns: Story;
11
+ export declare const InStickyOverflowToolbar: Story;
12
+ export declare const FocusAndActiveDescendant: Story;
13
+ export declare const EscapeInsideDialog: Story;
14
+ export declare const TypingElsewhereIsNotIntercepted: Story;
15
+ export declare const GhostIconTrigger: Story;
16
+ export declare const EnterActivatesOnce: Story;
17
+ export declare const TabInsideDialog: Story;
11
18
  //# sourceMappingURL=Menu.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,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D,eAAO,MAAM,eAAe,EAAE,KAmC7B,CAAA"}
@@ -1,12 +1,15 @@
1
1
  export interface MenuContextValue {
2
2
  open: boolean;
3
3
  toggle: () => void;
4
+ /** Close the menu and put focus back on the trigger. */
4
5
  close: () => void;
5
6
  menuId: string;
7
+ triggerId: string;
6
8
  highlightedId: string | null;
7
9
  setHighlightedId: (id: string | null) => void;
8
10
  registerItem: (id: string, element: HTMLElement) => () => void;
9
11
  triggerRef: React.RefObject<HTMLButtonElement | null>;
12
+ popupRef: React.RefObject<HTMLDivElement | null>;
10
13
  }
11
14
  export declare const MenuContext: import('react').Context<MenuContextValue | null>;
12
15
  export declare function useMenu(): MenuContextValue;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuContext.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,KAAK,MAAM,IAAI,CAAA;IAC9D,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;CACtD;AAED,eAAO,MAAM,WAAW,kDAA+C,CAAA;AAEvE,wBAAgB,OAAO,qBAItB"}
1
+ {"version":3,"file":"MenuContext.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,wDAAwD;IACxD,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC7C,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,KAAK,MAAM,IAAI,CAAA;IAC9D,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CACjD;AAED,eAAO,MAAM,WAAW,kDAA+C,CAAA;AAEvE,wBAAgB,OAAO,qBAItB"}
@@ -24,19 +24,20 @@ export declare const styles: Readonly<{
24
24
  readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "background-color, border-color">;
25
25
  readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
26
26
  }>;
27
- readonly backdrop: Readonly<{
28
- readonly position: css.StyleXClassNameFor<"position", "fixed">;
29
- readonly top: css.StyleXClassNameFor<"top", 0>;
30
- readonly left: css.StyleXClassNameFor<"left", 0>;
31
- readonly right: css.StyleXClassNameFor<"right", 0>;
32
- readonly bottom: css.StyleXClassNameFor<"bottom", 0>;
33
- readonly zIndex: css.StyleXClassNameFor<"zIndex", 49>;
27
+ readonly triggerGhost: Readonly<{
28
+ readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "center">;
29
+ readonly minWidth: css.StyleXClassNameFor<"minWidth", string>;
30
+ readonly minHeight: css.StyleXClassNameFor<"minHeight", string>;
31
+ readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
32
+ readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
33
+ readonly paddingLeft: css.StyleXClassNameFor<"paddingLeft", string>;
34
+ readonly paddingRight: css.StyleXClassNameFor<"paddingRight", string>;
35
+ readonly borderColor: css.StyleXClassNameFor<"borderColor", "transparent">;
34
36
  }>;
35
37
  readonly popup: Readonly<{
36
- readonly position: css.StyleXClassNameFor<"position", "absolute">;
37
- readonly top: css.StyleXClassNameFor<"top", "100%">;
38
+ readonly position: css.StyleXClassNameFor<"position", "fixed">;
39
+ readonly top: css.StyleXClassNameFor<"top", 0>;
38
40
  readonly left: css.StyleXClassNameFor<"left", 0>;
39
- readonly marginTop: css.StyleXClassNameFor<"marginTop", string>;
40
41
  readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
41
42
  readonly borderWidth: css.StyleXClassNameFor<"borderWidth", string>;
42
43
  readonly borderStyle: css.StyleXClassNameFor<"borderStyle", "solid">;
@@ -46,12 +47,16 @@ export declare const styles: Readonly<{
46
47
  readonly paddingTop: css.StyleXClassNameFor<"paddingTop", string>;
47
48
  readonly paddingBottom: css.StyleXClassNameFor<"paddingBottom", string>;
48
49
  readonly minWidth: css.StyleXClassNameFor<"minWidth", string>;
49
- readonly zIndex: css.StyleXClassNameFor<"zIndex", 50>;
50
- }>;
51
- readonly popupEnd: Readonly<{
52
- readonly left: css.StyleXClassNameFor<"left", "auto">;
53
- readonly right: css.StyleXClassNameFor<"right", 0>;
50
+ readonly maxHeight: css.StyleXClassNameFor<"maxHeight", string>;
51
+ readonly overflowY: css.StyleXClassNameFor<"overflowY", "auto">;
52
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", number>;
53
+ readonly pointerEvents: css.StyleXClassNameFor<"pointerEvents", "auto">;
54
+ readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "none">;
54
55
  }>;
56
+ readonly popupPosition: (top: number, left: number) => readonly [Readonly<{
57
+ top: css.StyleXClassNameFor<"top", number>;
58
+ left: css.StyleXClassNameFor<"left", number>;
59
+ }>, css.InlineStyles];
55
60
  readonly item: Readonly<{
56
61
  readonly display: css.StyleXClassNameFor<"display", "flex">;
57
62
  readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
@@ -70,6 +75,10 @@ export declare const styles: Readonly<{
70
75
  }>;
71
76
  readonly itemHighlighted: Readonly<{
72
77
  readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
78
+ readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "solid">;
79
+ readonly outlineWidth: css.StyleXClassNameFor<"outlineWidth", string>;
80
+ readonly outlineColor: css.StyleXClassNameFor<"outlineColor", "transparent">;
81
+ readonly outlineOffset: css.StyleXClassNameFor<"outlineOffset", `calc(-1 * ${css.StyleXVar<string>})`>;
73
82
  }>;
74
83
  readonly separator: Readonly<{
75
84
  readonly height: css.StyleXClassNameFor<"height", 0>;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AASpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0FjB,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAUpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0GjB,CAAA"}
@@ -1,5 +1,18 @@
1
1
  import { MenuContextValue } from './MenuContext';
2
- export declare function useMenuRoot(): {
2
+ export interface MenuRootOptions {
3
+ open?: boolean;
4
+ defaultOpen?: boolean;
5
+ onOpenChange?: (open: boolean) => void;
6
+ }
7
+ /**
8
+ * The menu-button pattern (WAI-ARIA APG): on open, focus moves to the
9
+ * `role="menu"` popup, which carries `aria-activedescendant`; arrows move the
10
+ * highlight; Escape closes and focus returns to the trigger. The keydown
11
+ * handler sits on the popup itself, never on `document`, so keys typed
12
+ * elsewhere (an editor) are never intercepted, and Escape stops there so an
13
+ * enclosing Popover or Dialog stays open.
14
+ */
15
+ export declare function useMenuRoot({ open: openProp, defaultOpen, onOpenChange }: MenuRootOptions): {
3
16
  ctx: MenuContextValue;
4
17
  rootRef: import('react').RefObject<HTMLDivElement | null>;
5
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useMenuRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/useMenuRoot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAA;AAEnD,wBAAgB,WAAW;;;EAwI1B"}
1
+ {"version":3,"file":"useMenuRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/useMenuRoot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAA;AAGnD,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CACvC;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,WAAmB,EAAE,YAAY,EAAC,EAAE,eAAe;;;EAkL/F"}
@@ -19,9 +19,14 @@ interface RootProps {
19
19
  ref?: Ref<PopoverHandle>;
20
20
  }
21
21
  declare function Root({ children, open: openProp, defaultOpen, onOpenChange, side, align, anchor, ignore, ref, }: RootProps): import("react/jsx-runtime").JSX.Element;
22
- declare function Trigger({ children }: {
22
+ interface TriggerProps {
23
23
  children: ReactNode;
24
- }): import("react/jsx-runtime").JSX.Element;
24
+ /** Accessible name: required when the label is an icon only. */
25
+ 'aria-label'?: string;
26
+ /** The trigger <button>, e.g. to measure it or return focus to it. */
27
+ ref?: Ref<HTMLButtonElement>;
28
+ }
29
+ declare function Trigger({ children, 'aria-label': ariaLabel, ref }: TriggerProps): import("react/jsx-runtime").JSX.Element;
25
30
  interface PopupProps {
26
31
  children: ReactNode;
27
32
  /** Accessible name for the dialog. */
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,GAAG,EAWT,MAAM,OAAO,CAAA;AAKd,OAAO,EAAyB,KAAK,YAAY,EAAE,KAAK,WAAW,EAAC,MAAM,YAAY,CAAA;AAMtF,KAAK,WAAW,GAAG,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAA;AA6B1D,MAAM,WAAW,aAAa;IAC5B,oDAAoD;IACpD,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,UAAU,SAAS;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,KAAK,CAAC,EAAE,YAAY,CAAA;IACpB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,OAAO,CAAA;IACtB,kFAAkF;IAClF,MAAM,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;IACnC,GAAG,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC,CAAA;CACzB;AAED,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,IAAI,EAAE,QAAQ,EACd,WAAmB,EACnB,YAAY,EACZ,IAAe,EACf,KAAe,EACf,MAAM,EACN,MAAM,EACN,GAAG,GACJ,EAAE,SAAS,2CA4GX;AAKD,iBAAS,OAAO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ACzB;AAED,iBAAS,IAAI,CAAC,EACZ,QAAQ,EACR,IAAI,EAAE,QAAQ,EACd,WAAmB,EACnB,YAAY,EACZ,IAAe,EACf,KAAe,EACf,MAAM,EACN,MAAM,EACN,GAAG,GACJ,EAAE,SAAS,2CA4GX;AAKD,UAAU,YAAY;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAC7B;AAED,iBAAS,OAAO,CAAC,EAAC,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAC,EAAE,YAAY,2CAoBtE;AAID,UAAU,UAAU;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAC,EAAE,UAAU,sCA+D3C;AAID,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,2CAQ/C;AAED,eAAO,MAAM,OAAO;;;;;CAKnB,CAAA"}
@@ -20,6 +20,9 @@ export declare const styles: Readonly<{
20
20
  readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "background-color, border-color">;
21
21
  readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
22
22
  }>;
23
+ readonly popupInModal: Readonly<{
24
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", number>;
25
+ }>;
23
26
  readonly popup: Readonly<{
24
27
  readonly position: css.StyleXClassNameFor<"position", "fixed">;
25
28
  readonly top: css.StyleXClassNameFor<"top", 0>;
@@ -35,7 +38,7 @@ export declare const styles: Readonly<{
35
38
  readonly fontFamily: css.StyleXClassNameFor<"fontFamily", string>;
36
39
  readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
37
40
  readonly color: css.StyleXClassNameFor<"color", string>;
38
- readonly zIndex: css.StyleXClassNameFor<"zIndex", 50>;
41
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", number>;
39
42
  readonly pointerEvents: css.StyleXClassNameFor<"pointerEvents", "auto">;
40
43
  }>;
41
44
  readonly close: Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEjB,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AASpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0EjB,CAAA"}
@@ -17,7 +17,7 @@ export declare const styles: Readonly<{
17
17
  }>;
18
18
  readonly scrollbar: Readonly<{
19
19
  readonly position: css.StyleXClassNameFor<"position", "absolute">;
20
- readonly zIndex: css.StyleXClassNameFor<"zIndex", 1>;
20
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", number>;
21
21
  readonly display: css.StyleXClassNameFor<"display", "flex">;
22
22
  readonly touchAction: css.StyleXClassNameFor<"touchAction", "none">;
23
23
  readonly userSelect: css.StyleXClassNameFor<"userSelect", "none">;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollArea/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAMpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4EjB,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollArea/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAOpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4EjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,SAAS,EAAsD,MAAM,OAAO,CAAA;AAWzF,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtC,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAC,EAAE,SAAS,2CAW3F;AAGD,iBAAS,OAAO,CAAC,EACf,QAAQ,EACR,YAAY,EAAE,SAAS,GACxB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,2CAmCA;AAGD,iBAAS,KAAK,CAAC,EAAC,WAAW,EAAC,EAAE;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAC,2CASnD;AAGD,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,CAAC,EAAE,SAAS,CAA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;CAAC,2CASnD;AAGD,iBAAS,IAAI,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAC,2CAoB/C;AAQD,iBAAS,KAAK,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,2CAqD/C;AAGD,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,IAAI,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAC,EAAE,SAAS,2CAmDpD;AAGD,iBAAS,QAAQ,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,2CAElD;AAED,eAAO,MAAM,MAAM;;;;;;;;CAQlB,CAAA"}
@@ -7,4 +7,6 @@ export declare const OpenAndSelect: Story;
7
7
  export declare const WithPlaceholder: Story;
8
8
  export declare const KeyboardNavigation: Story;
9
9
  export declare const InsideDialog: Story;
10
+ /** Closed, the trigger opens on ArrowDown or ArrowUp, on the selected option (5.3). */
11
+ export declare const ArrowKeysOpen: Story;
10
12
  //# sourceMappingURL=Select.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAKpD,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAErB,eAAO,MAAM,OAAO,EAAE,KA0BrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAoC3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAyBhC,CAAA;AAMD,eAAO,MAAM,YAAY,EAAE,KA0C1B,CAAA"}
1
+ {"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAKpD,QAAA,MAAM,IAAI,EAAE,IAEX,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAErB,eAAO,MAAM,OAAO,EAAE,KA0BrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAoC3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KA0C7B,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAyBhC,CAAA;AAMD,eAAO,MAAM,YAAY,EAAE,KA0C1B,CAAA;AAED,uFAAuF;AACvF,eAAO,MAAM,aAAa,EAAE,KAgB3B,CAAA"}
@@ -42,7 +42,7 @@ export declare const styles: Readonly<{
42
42
  readonly left: css.StyleXClassNameFor<"left", 0>;
43
43
  readonly right: css.StyleXClassNameFor<"right", 0>;
44
44
  readonly bottom: css.StyleXClassNameFor<"bottom", 0>;
45
- readonly zIndex: css.StyleXClassNameFor<"zIndex", 1049>;
45
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", number>;
46
46
  readonly pointerEvents: css.StyleXClassNameFor<"pointerEvents", "auto">;
47
47
  }>;
48
48
  readonly popup: Readonly<{
@@ -58,7 +58,7 @@ export declare const styles: Readonly<{
58
58
  readonly minWidth: css.StyleXClassNameFor<"minWidth", string>;
59
59
  readonly maxHeight: css.StyleXClassNameFor<"maxHeight", string>;
60
60
  readonly overflowY: css.StyleXClassNameFor<"overflowY", "auto">;
61
- readonly zIndex: css.StyleXClassNameFor<"zIndex", 1050>;
61
+ readonly zIndex: css.StyleXClassNameFor<"zIndex", number>;
62
62
  readonly pointerEvents: css.StyleXClassNameFor<"pointerEvents", "auto">;
63
63
  }>;
64
64
  readonly popupPosition: (top: number, left: number, minWidth: number) => readonly [Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AASpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwGjB,CAAA"}
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAUpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwGjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSelectRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Select/useSelectRoot.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAA;AAEvD,UAAU,oBAAoB;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;AAED,wBAAgB,aAAa,CAAC,EAC5B,YAAY,EACZ,KAAK,EAAE,eAAe,EACtB,aAAa,EACb,aAAa,GACd,EAAE,oBAAoB;;;EAqKtB"}
1
+ {"version":3,"file":"useSelectRoot.d.ts","sourceRoot":"","sources":["../../../src/components/Select/useSelectRoot.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAA;AAEvD,UAAU,oBAAoB;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;AAED,wBAAgB,aAAa,CAAC,EAC5B,YAAY,EACZ,KAAK,EAAE,eAAe,EACtB,aAAa,EACb,aAAa,GACd,EAAE,oBAAoB;;;EAsLtB"}
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from 'react';
2
+ export type TextLinkVariant = 'default' | 'subtle';
3
+ interface TextLinkProps {
4
+ href: string;
5
+ /** `_blank` opens a new tab; `rel` then defaults to `noopener noreferrer`. */
6
+ target?: '_blank' | '_self';
7
+ rel?: string;
8
+ /**
9
+ * `default`: accent text with an accent underline. `subtle`: the
10
+ * surrounding text colour with a muted underline, accent on hover. Both
11
+ * stay underlined, so colour is never the only cue in running text.
12
+ */
13
+ variant?: TextLinkVariant;
14
+ /** Accessible name, when the visible text alone does not say where it goes. */
15
+ 'aria-label'?: string;
16
+ children: ReactNode;
17
+ }
18
+ /**
19
+ * An inline hyperlink in running text or a standalone "View all" link. For a
20
+ * link that looks like a button, use LinkButton.
21
+ */
22
+ export declare function TextLink({ href, target, rel, variant, 'aria-label': ariaLabel, children, }: TextLinkProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
24
+ //# sourceMappingURL=TextLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextLink.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/TextLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAA;AAIpC,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,CAAA;AAElD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,8EAA8E;IAC9E,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,MAAM,EACN,GAAG,EACH,OAAmB,EACnB,YAAY,EAAE,SAAS,EACvB,QAAQ,GACT,EAAE,aAAa,2CAYf"}
@@ -0,0 +1,3 @@
1
+ import { ComponentMeta } from '../component-meta';
2
+ export declare const meta: ComponentMeta;
3
+ //# sourceMappingURL=TextLink.meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextLink.meta.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/TextLink.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aA8BlB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { TextLink } from './TextLink';
3
+ declare const meta: Meta<typeof TextLink>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TextLink>;
6
+ export declare const InRunningText: Story;
7
+ export declare const Standalone: Story;
8
+ export declare const KeyboardFocus: Story;
9
+ //# sourceMappingURL=TextLink.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextLink.stories.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/TextLink.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAEpD,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AAInC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAI/B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAA;AAEtC,eAAO,MAAM,aAAa,EAAE,KAkB3B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAiBxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAQ3B,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { css } from 'react-strict-dom';
2
+ export declare const styles: Readonly<{
3
+ readonly base: Readonly<{
4
+ readonly fontFamily: css.StyleXClassNameFor<"fontFamily", "inherit">;
5
+ readonly fontSize: css.StyleXClassNameFor<"fontSize", "inherit">;
6
+ readonly lineHeight: css.StyleXClassNameFor<"lineHeight", "inherit">;
7
+ readonly cursor: css.StyleXClassNameFor<"cursor", "pointer">;
8
+ readonly textDecorationLine: css.StyleXClassNameFor<"textDecorationLine", "underline">;
9
+ readonly textDecorationStyle: css.StyleXClassNameFor<"textDecorationStyle", "solid">;
10
+ readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
11
+ readonly transitionProperty: css.StyleXClassNameFor<"transitionProperty", "color, text-decoration-color">;
12
+ readonly transitionDuration: css.StyleXClassNameFor<"transitionDuration", string>;
13
+ readonly transitionTimingFunction: css.StyleXClassNameFor<"transitionTimingFunction", string>;
14
+ readonly outlineWidth: css.StyleXClassNameFor<"outlineWidth", string | 0>;
15
+ readonly outlineStyle: css.StyleXClassNameFor<"outlineStyle", "none" | "solid">;
16
+ readonly outlineColor: css.StyleXClassNameFor<"outlineColor", string>;
17
+ readonly outlineOffset: css.StyleXClassNameFor<"outlineOffset", string | 0>;
18
+ }>;
19
+ readonly default: Readonly<{
20
+ readonly color: css.StyleXClassNameFor<"color", string>;
21
+ readonly textDecorationColor: css.StyleXClassNameFor<"textDecorationColor", string>;
22
+ }>;
23
+ readonly subtle: Readonly<{
24
+ readonly color: css.StyleXClassNameFor<"color", string>;
25
+ readonly textDecorationColor: css.StyleXClassNameFor<"textDecorationColor", string>;
26
+ }>;
27
+ }>;
28
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/TextLink/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAQpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;EAiDjB,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ /**
3
+ * What stacks above what. Dialog, Drawer, the popups and the toast region all
4
+ * portal into the ThemeProvider mount, so their `layers` values order them in
5
+ * one stacking context: a popup or a toast opened over a modal must be the
6
+ * topmost element where it is drawn.
7
+ */
8
+ declare const meta: Meta;
9
+ export default meta;
10
+ type Story = StoryObj;
11
+ export declare const PopoverInDialog: Story;
12
+ export declare const PopoverInDrawer: Story;
13
+ export declare const ToastOverDialog: Story;
14
+ export declare const DragDropInDialog: Story;
15
+ /** A Select opened inside a Popover: its listbox (mounted before the Popover
16
+ * opens) and click-catcher stack above the Popover. */
17
+ export declare const SelectInPopover: Story;
18
+ /** A Dialog opened from a button inside an open Popover: the Dialog is on
19
+ * top, and the Popover does not stay drawn over it. */
20
+ export declare const DialogFromPopover: Story;
21
+ /** DragDrop inside a Dialog whose body is scrolled: the ghost stays under the
22
+ * pointer and on top. */
23
+ export declare const DragDropInScrolledDialog: Story;
24
+ //# sourceMappingURL=Layers.stories.d.ts.map