@krelborn/stylesui 0.8.1 → 0.9.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 (323) hide show
  1. package/README.md +2 -2
  2. package/dist/accessibility/idSegment.js +1 -2
  3. package/dist/collections/index.d.ts +3 -0
  4. package/dist/collections/optionId.js +6 -0
  5. package/dist/{components/Listbox → collections}/renderedOptions.d.ts +7 -0
  6. package/dist/{components/Listbox → collections}/renderedOptions.js +6 -4
  7. package/dist/collections/targetIndexForKey.js +1 -2
  8. package/dist/collections/typeAhead.js +0 -1
  9. package/dist/components/Accordion/Accordion.css +1 -0
  10. package/dist/components/Accordion/Accordion.d.ts +90 -0
  11. package/dist/components/Accordion/Accordion.js +47 -0
  12. package/dist/components/Accordion/Accordion.module.js +19 -0
  13. package/dist/components/Accordion/AccordionContext.d.ts +40 -0
  14. package/dist/components/Accordion/AccordionContext.js +4 -0
  15. package/dist/components/Accordion/AccordionItem.d.ts +51 -0
  16. package/dist/components/Accordion/AccordionItem.js +69 -0
  17. package/dist/components/Accordion/AccordionToggleContent.d.ts +30 -0
  18. package/dist/components/Accordion/AccordionToggleContent.js +44 -0
  19. package/dist/components/Accordion/accordionIds.d.ts +24 -0
  20. package/dist/components/Accordion/accordionIds.js +12 -0
  21. package/dist/components/Accordion/index.d.ts +4 -0
  22. package/dist/components/Accordion/useAccordionContext.d.ts +9 -0
  23. package/dist/components/Accordion/useAccordionContext.js +10 -0
  24. package/dist/components/Accordion/useFindablePanel.d.ts +25 -0
  25. package/dist/components/Accordion/useFindablePanel.js +36 -0
  26. package/dist/components/Accordion/useFragmentTargetReveal.d.ts +27 -0
  27. package/dist/components/Accordion/useFragmentTargetReveal.js +36 -0
  28. package/dist/components/Accordion/useHasOpened.d.ts +7 -0
  29. package/dist/components/Accordion/useHasOpened.js +7 -0
  30. package/dist/components/Alert/Alert.js +1 -2
  31. package/dist/components/Alert/Alert.module.js +1 -2
  32. package/dist/components/Alert/AlertIcon.js +1 -2
  33. package/dist/components/Avatar/Avatar.js +1 -2
  34. package/dist/components/Avatar/Avatar.module.js +1 -2
  35. package/dist/components/Avatar/initialsOf.js +1 -2
  36. package/dist/components/AvatarGroup/AvatarGroup.js +1 -2
  37. package/dist/components/AvatarGroup/AvatarGroup.module.js +1 -2
  38. package/dist/components/Badge/Badge.js +1 -2
  39. package/dist/components/Badge/Badge.module.js +1 -2
  40. package/dist/components/Box/Box.js +1 -2
  41. package/dist/components/Box/Box.module.js +1 -2
  42. package/dist/components/Button/Button.js +2 -7
  43. package/dist/components/Button/Button.module.js +1 -2
  44. package/dist/components/Card/Card.js +1 -2
  45. package/dist/components/Card/Card.module.js +1 -2
  46. package/dist/components/Center/Center.js +6 -7
  47. package/dist/components/Center/Center.module.js +1 -2
  48. package/dist/components/Checkbox/Checkbox.js +1 -2
  49. package/dist/components/ChoiceControl/ChoiceControl.js +1 -2
  50. package/dist/components/ChoiceControl/ChoiceControl.module.js +1 -2
  51. package/dist/components/Cluster/Cluster.js +1 -2
  52. package/dist/components/Code/Code.js +1 -2
  53. package/dist/components/Code/Code.module.js +1 -2
  54. package/dist/components/Combobox/Autocomplete.d.ts +83 -0
  55. package/dist/components/Combobox/Autocomplete.js +102 -0
  56. package/dist/components/Combobox/Combobox.css +1 -0
  57. package/dist/components/Combobox/Combobox.d.ts +59 -0
  58. package/dist/components/Combobox/Combobox.js +82 -0
  59. package/dist/components/Combobox/Combobox.module.js +17 -0
  60. package/dist/components/Combobox/ComboboxContext.d.ts +88 -0
  61. package/dist/components/Combobox/ComboboxContext.js +4 -0
  62. package/dist/components/Combobox/ComboboxFieldValue.d.ts +17 -0
  63. package/dist/components/Combobox/ComboboxFieldValue.js +33 -0
  64. package/dist/components/Combobox/ComboboxOption.d.ts +51 -0
  65. package/dist/components/Combobox/ComboboxOption.js +74 -0
  66. package/dist/components/Combobox/ComboboxOptionContent.d.ts +32 -0
  67. package/dist/components/Combobox/ComboboxOptionContent.js +51 -0
  68. package/dist/components/Combobox/ComboboxPopup.d.ts +50 -0
  69. package/dist/components/Combobox/ComboboxPopup.js +59 -0
  70. package/dist/components/Combobox/autocompleteKeys.d.ts +31 -0
  71. package/dist/components/Combobox/autocompleteKeys.js +25 -0
  72. package/dist/components/Combobox/comboboxKeys.d.ts +10 -0
  73. package/dist/components/Combobox/comboboxKeys.js +22 -0
  74. package/dist/components/Combobox/containsText.d.ts +9 -0
  75. package/dist/components/Combobox/containsText.js +8 -0
  76. package/dist/components/Combobox/index.d.ts +6 -0
  77. package/dist/components/Combobox/isAltArrow.d.ts +9 -0
  78. package/dist/components/Combobox/isAltArrow.js +5 -0
  79. package/dist/components/Combobox/isOptionShown.d.ts +10 -0
  80. package/dist/components/Combobox/isOptionShown.js +5 -0
  81. package/dist/components/Combobox/useAutocompleteText.d.ts +56 -0
  82. package/dist/components/Combobox/useAutocompleteText.js +27 -0
  83. package/dist/components/Combobox/useComboboxContext.d.ts +9 -0
  84. package/dist/components/Combobox/useComboboxContext.js +10 -0
  85. package/dist/components/Combobox/useComboboxList.d.ts +129 -0
  86. package/dist/components/Combobox/useComboboxList.js +138 -0
  87. package/dist/components/Combobox/useComboboxOption.d.ts +35 -0
  88. package/dist/components/Combobox/useComboboxOption.js +46 -0
  89. package/dist/components/Combobox/useComboboxSelection.d.ts +45 -0
  90. package/dist/components/Combobox/useComboboxSelection.js +17 -0
  91. package/dist/components/Combobox/useResultsAnnouncement.d.ts +23 -0
  92. package/dist/components/Combobox/useResultsAnnouncement.js +24 -0
  93. package/dist/components/ContextMenu/index.d.ts +2 -0
  94. package/dist/components/ContextMenu/useContextMenu.d.ts +112 -0
  95. package/dist/components/ContextMenu/useContextMenu.js +202 -0
  96. package/dist/components/ContextMenu/watchLongPress.d.ts +35 -0
  97. package/dist/components/ContextMenu/watchLongPress.js +38 -0
  98. package/dist/components/Counter/Counter.js +5 -6
  99. package/dist/components/Counter/Counter.module.js +1 -2
  100. package/dist/components/Cover/Cover.js +8 -9
  101. package/dist/components/Cover/Cover.module.js +1 -2
  102. package/dist/components/Divider/Divider.js +1 -2
  103. package/dist/components/Divider/Divider.module.js +1 -2
  104. package/dist/components/Field/Field.js +11 -10
  105. package/dist/components/Field/Field.module.js +1 -2
  106. package/dist/components/Fieldset/Fieldset.js +1 -2
  107. package/dist/components/Fieldset/Fieldset.module.js +1 -2
  108. package/dist/components/Frame/Frame.js +5 -6
  109. package/dist/components/Frame/Frame.module.js +1 -2
  110. package/dist/components/Grid/Grid.js +9 -10
  111. package/dist/components/Grid/Grid.module.js +1 -2
  112. package/dist/components/Heading/Heading.js +1 -2
  113. package/dist/components/Heading/Heading.module.js +1 -2
  114. package/dist/components/HorizontalFlow/HorizontalFlow.js +6 -7
  115. package/dist/components/HorizontalFlow/HorizontalFlow.module.js +1 -2
  116. package/dist/components/Icon/AddIcon.js +1 -2
  117. package/dist/components/Icon/CheckIcon.d.ts +11 -0
  118. package/dist/components/Icon/CheckIcon.js +18 -0
  119. package/dist/components/Icon/ChevronDownIcon.js +1 -2
  120. package/dist/components/Icon/ChevronRightIcon.d.ts +11 -0
  121. package/dist/components/Icon/ChevronRightIcon.js +19 -0
  122. package/dist/components/Icon/CloseIcon.js +1 -2
  123. package/dist/components/Icon/ColorModeIcon.js +1 -2
  124. package/dist/components/Icon/DeleteIcon.js +1 -2
  125. package/dist/components/Icon/Icon.js +1 -2
  126. package/dist/components/Icon/Icon.module.js +1 -2
  127. package/dist/components/Icon/InfoIcon.js +1 -2
  128. package/dist/components/Icon/MenuIcon.d.ts +12 -0
  129. package/dist/components/Icon/MenuIcon.js +28 -0
  130. package/dist/components/Icon/MoreHorizontalIcon.js +1 -2
  131. package/dist/components/Icon/MoreVerticalIcon.js +1 -2
  132. package/dist/components/Icon/PaletteIcon.js +1 -2
  133. package/dist/components/Icon/RefreshIcon.js +1 -2
  134. package/dist/components/Icon/RemoveIcon.js +1 -2
  135. package/dist/components/Icon/SendIcon.js +1 -2
  136. package/dist/components/Icon/index.d.ts +3 -0
  137. package/dist/components/IconButton/IconButton.js +1 -2
  138. package/dist/components/IconButton/IconButton.module.js +1 -2
  139. package/dist/components/Kbd/Kbd.js +1 -2
  140. package/dist/components/Kbd/Kbd.module.js +1 -2
  141. package/dist/components/Link/Link.js +1 -2
  142. package/dist/components/Link/Link.module.js +1 -2
  143. package/dist/components/Listbox/Listbox.js +9 -10
  144. package/dist/components/Listbox/Listbox.module.js +1 -2
  145. package/dist/components/Listbox/ListboxContext.js +1 -2
  146. package/dist/components/Listbox/ListboxOption.js +7 -8
  147. package/dist/components/Listbox/useListbox.js +22 -23
  148. package/dist/components/Listbox/useListboxContext.js +1 -2
  149. package/dist/components/Menu/Menu.d.ts +70 -0
  150. package/dist/components/Menu/Menu.js +76 -0
  151. package/dist/components/Menu/MenuContext.d.ts +29 -0
  152. package/dist/components/Menu/MenuContext.js +4 -0
  153. package/dist/components/Menu/MenuGroup.d.ts +22 -0
  154. package/dist/components/Menu/MenuGroup.js +32 -0
  155. package/dist/components/Menu/MenuItem.d.ts +77 -0
  156. package/dist/components/Menu/MenuItem.js +54 -0
  157. package/dist/components/Menu/MenuItemCheckbox.d.ts +61 -0
  158. package/dist/components/Menu/MenuItemCheckbox.js +37 -0
  159. package/dist/components/Menu/MenuItemRadio.d.ts +47 -0
  160. package/dist/components/Menu/MenuItemRadio.js +39 -0
  161. package/dist/components/Menu/MenuRadioGroup.d.ts +34 -0
  162. package/dist/components/Menu/MenuRadioGroup.js +27 -0
  163. package/dist/components/Menu/MenuRadioGroupContext.d.ts +17 -0
  164. package/dist/components/Menu/MenuRadioGroupContext.js +4 -0
  165. package/dist/components/Menu/MenuSeparator.d.ts +16 -0
  166. package/dist/components/Menu/MenuSeparator.js +20 -0
  167. package/dist/components/Menu/Submenu.d.ts +36 -0
  168. package/dist/components/Menu/Submenu.js +122 -0
  169. package/dist/components/Menu/index.d.ts +18 -0
  170. package/dist/components/Menu/useMenu.d.ts +18 -0
  171. package/dist/components/Menu/useMenu.js +20 -0
  172. package/dist/components/Menu/useMenuButton.d.ts +124 -0
  173. package/dist/components/Menu/useMenuButton.js +92 -0
  174. package/dist/components/Menu/useMenuContext.d.ts +9 -0
  175. package/dist/components/Menu/useMenuContext.js +10 -0
  176. package/dist/components/Menu/useMenuItemContent.d.ts +55 -0
  177. package/dist/components/Menu/useMenuItemContent.js +66 -0
  178. package/dist/components/Menu/useMenuPointer.d.ts +27 -0
  179. package/dist/components/Menu/useMenuPointer.js +56 -0
  180. package/dist/components/Menu/useMenuRadioGroupContext.d.ts +9 -0
  181. package/dist/components/Menu/useMenuRadioGroupContext.js +10 -0
  182. package/dist/components/MenuSurface/MenuSurface.css +1 -0
  183. package/dist/components/MenuSurface/MenuSurface.module.js +16 -0
  184. package/dist/components/Menubar/Menubar.css +1 -0
  185. package/dist/components/Menubar/Menubar.d.ts +23 -0
  186. package/dist/components/Menubar/Menubar.js +67 -0
  187. package/dist/components/Menubar/Menubar.module.js +7 -0
  188. package/dist/components/Menubar/MenubarContext.d.ts +29 -0
  189. package/dist/components/Menubar/MenubarContext.js +4 -0
  190. package/dist/components/Menubar/MenubarMenu.d.ts +26 -0
  191. package/dist/components/Menubar/MenubarMenu.js +88 -0
  192. package/dist/components/Menubar/findOpenMenubarItem.d.ts +7 -0
  193. package/dist/components/Menubar/findOpenMenubarItem.js +6 -0
  194. package/dist/components/Menubar/index.d.ts +4 -0
  195. package/dist/components/Menubar/menubarItems.d.ts +7 -0
  196. package/dist/components/Menubar/menubarItems.js +5 -0
  197. package/dist/components/Menubar/useMenubarContext.d.ts +9 -0
  198. package/dist/components/Menubar/useMenubarContext.js +10 -0
  199. package/dist/components/NavBar/NavBar.css +1 -0
  200. package/dist/components/NavBar/NavBar.d.ts +53 -0
  201. package/dist/components/NavBar/NavBar.js +97 -0
  202. package/dist/components/NavBar/NavBar.module.js +22 -0
  203. package/dist/components/NavBar/NavBarContext.d.ts +21 -0
  204. package/dist/components/NavBar/NavBarContext.js +4 -0
  205. package/dist/components/NavBar/NavBarItem.d.ts +32 -0
  206. package/dist/components/NavBar/NavBarItem.js +18 -0
  207. package/dist/components/NavBar/NavBarMenu.d.ts +32 -0
  208. package/dist/components/NavBar/NavBarMenu.js +84 -0
  209. package/dist/components/NavBar/NavBarMenuGroup.d.ts +25 -0
  210. package/dist/components/NavBar/NavBarMenuGroup.js +40 -0
  211. package/dist/components/NavBar/NavBarMenuItem.d.ts +36 -0
  212. package/dist/components/NavBar/NavBarMenuItem.js +49 -0
  213. package/dist/components/NavBar/index.d.ts +10 -0
  214. package/dist/components/NavBar/isNavBarCollapsed.d.ts +8 -0
  215. package/dist/components/NavBar/isNavBarCollapsed.js +5 -0
  216. package/dist/components/NavBar/leavesPageInPlace.d.ts +12 -0
  217. package/dist/components/NavBar/leavesPageInPlace.js +29 -0
  218. package/dist/components/NavBar/renderNavBarLink.d.ts +12 -0
  219. package/dist/components/NavBar/renderNavBarLink.js +16 -0
  220. package/dist/components/NavBar/useLayoutSwitch.d.ts +26 -0
  221. package/dist/components/NavBar/useLayoutSwitch.js +25 -0
  222. package/dist/components/NavBar/useNavBarContext.d.ts +9 -0
  223. package/dist/components/NavBar/useNavBarContext.js +10 -0
  224. package/dist/components/NavList/NavList.js +1 -2
  225. package/dist/components/NavList/NavList.module.js +1 -2
  226. package/dist/components/NavList/NavListGroup.js +1 -2
  227. package/dist/components/NavList/NavListItem.d.ts +4 -8
  228. package/dist/components/NavList/NavListItem.js +1 -2
  229. package/dist/components/Overlay/Overlay.js +6 -7
  230. package/dist/components/Overlay/Overlay.module.js +1 -2
  231. package/dist/components/PageLayout/PageLayout.js +6 -7
  232. package/dist/components/PageLayout/PageLayout.module.js +1 -2
  233. package/dist/components/Popover/Popover.js +1 -2
  234. package/dist/components/Popover/Popover.module.js +1 -2
  235. package/dist/components/Popover/usePopover.js +44 -39
  236. package/dist/components/Prose/Prose.js +1 -2
  237. package/dist/components/Prose/Prose.module.js +1 -2
  238. package/dist/components/Radio/Radio.js +1 -2
  239. package/dist/components/RadioGroup/RadioGroup.js +5 -6
  240. package/dist/components/RadioGroup/RadioGroup.module.js +1 -2
  241. package/dist/components/RequiredIndicator/RequiredIndicator.js +1 -2
  242. package/dist/components/RequiredIndicator/RequiredIndicator.module.js +1 -2
  243. package/dist/components/Row/Row.js +1 -2
  244. package/dist/components/SegmentedControl/Segment.js +1 -2
  245. package/dist/components/SegmentedControl/SegmentedControl.js +1 -2
  246. package/dist/components/SegmentedControl/SegmentedControl.module.js +1 -2
  247. package/dist/components/Select/Select.js +1 -2
  248. package/dist/components/Sidebar/Sidebar.js +7 -8
  249. package/dist/components/Sidebar/Sidebar.module.js +1 -2
  250. package/dist/components/SkipLink/SkipLink.js +1 -2
  251. package/dist/components/SkipLink/SkipLink.module.js +1 -2
  252. package/dist/components/Spinner/Spinner.js +1 -2
  253. package/dist/components/Spinner/Spinner.module.js +1 -2
  254. package/dist/components/Stack/Stack.js +8 -9
  255. package/dist/components/Stack/Stack.module.js +1 -2
  256. package/dist/components/StatusDot/StatusDot.js +1 -2
  257. package/dist/components/StatusDot/StatusDot.module.js +1 -2
  258. package/dist/components/Switch/Switch.js +1 -2
  259. package/dist/components/Switcher/Switcher.js +9 -10
  260. package/dist/components/Switcher/Switcher.module.js +1 -2
  261. package/dist/components/Tabs/Tab.js +12 -13
  262. package/dist/components/Tabs/TabList.js +1 -2
  263. package/dist/components/Tabs/TabPanel.js +1 -2
  264. package/dist/components/Tabs/Tabs.js +1 -2
  265. package/dist/components/Tabs/Tabs.module.js +1 -2
  266. package/dist/components/Tabs/TabsContext.js +1 -2
  267. package/dist/components/Tabs/tabIds.js +1 -2
  268. package/dist/components/Tabs/useTabsContext.js +1 -2
  269. package/dist/components/Text/Text.js +1 -2
  270. package/dist/components/Text/Text.module.js +1 -2
  271. package/dist/components/TextControl/TextControl.d.ts +3 -3
  272. package/dist/components/TextControl/TextControl.js +14 -10
  273. package/dist/components/TextControl/TextControl.module.js +1 -2
  274. package/dist/components/TextInput/TextInput.js +1 -2
  275. package/dist/components/Textarea/Textarea.js +1 -2
  276. package/dist/components/Theme/Theme.js +1 -2
  277. package/dist/components/Tooltip/Tooltip.js +1 -2
  278. package/dist/components/Tooltip/Tooltip.module.js +1 -2
  279. package/dist/components/Tooltip/tooltipCoordinator.js +1 -2
  280. package/dist/components/Tooltip/useTooltip.js +1 -2
  281. package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -2
  282. package/dist/components/VisuallyHidden/VisuallyHidden.module.js +1 -2
  283. package/dist/errors/MissingContextError.js +1 -2
  284. package/dist/errors/PopoverRefusedError.js +1 -2
  285. package/dist/forms/FieldContext.d.ts +5 -0
  286. package/dist/forms/FieldContext.js +1 -2
  287. package/dist/forms/RadioGroupContext.js +1 -2
  288. package/dist/forms/hasContent.js +1 -2
  289. package/dist/forms/useFieldControl.js +1 -2
  290. package/dist/forms/useRadioGroupItem.js +1 -2
  291. package/dist/index.d.ts +13 -1
  292. package/dist/index.js +90 -65
  293. package/dist/layout/listRole.js +1 -2
  294. package/dist/layout/spaceValue.js +1 -2
  295. package/dist/layout/withCustomProperties.js +1 -2
  296. package/dist/links/LinkOrButtonProps.d.ts +17 -0
  297. package/dist/links/index.d.ts +1 -0
  298. package/dist/menus/closeWhenFocusLeaves.d.ts +9 -0
  299. package/dist/menus/closeWhenFocusLeaves.js +11 -0
  300. package/dist/menus/focusItem.d.ts +6 -0
  301. package/dist/menus/focusItem.js +9 -0
  302. package/dist/menus/focusOnOpening.d.ts +11 -0
  303. package/dist/menus/focusOnOpening.js +11 -0
  304. package/dist/menus/hasModifier.d.ts +7 -0
  305. package/dist/menus/hasModifier.js +5 -0
  306. package/dist/menus/index.d.ts +11 -0
  307. package/dist/menus/itemText.d.ts +8 -0
  308. package/dist/menus/itemText.js +6 -0
  309. package/dist/menus/leaveMenuOnTab.d.ts +9 -0
  310. package/dist/menus/leaveMenuOnTab.js +6 -0
  311. package/dist/menus/pointerIntent.d.ts +36 -0
  312. package/dist/menus/pointerIntent.js +68 -0
  313. package/dist/menus/renderedItems.d.ts +8 -0
  314. package/dist/menus/renderedItems.js +4 -0
  315. package/dist/menus/watchRemovals.d.ts +8 -0
  316. package/dist/menus/watchRemovals.js +23 -0
  317. package/dist/overlays/anchorNameFor.js +1 -2
  318. package/dist/overlays/mergeProps.js +1 -2
  319. package/dist/overlays/syncPopover.js +1 -2
  320. package/dist/overlays/useOverlay.js +2 -9
  321. package/package.json +10 -10
  322. package/dist/components/Listbox/optionId.js +0 -7
  323. /package/dist/{components/Listbox → collections}/optionId.d.ts +0 -0
@@ -1,23 +1,22 @@
1
- import { Box as e } from "../Box/Box.js";
2
- import { listRole as t } from "../../layout/listRole.js";
3
- import { spaceValue as n } from "../../layout/spaceValue.js";
4
- import { withCustomProperties as r } from "../../layout/withCustomProperties.js";
1
+ import { listRole as e } from "../../layout/listRole.js";
2
+ import { spaceValue as t } from "../../layout/spaceValue.js";
3
+ import { withCustomProperties as n } from "../../layout/withCustomProperties.js";
4
+ import { Box as r } from "../Box/Box.js";
5
5
  import i from "./Grid.module.js";
6
6
  import { clsx as a } from "clsx";
7
7
  import { jsx as o } from "react/jsx-runtime";
8
- //#region src/components/Grid/Grid.tsx
8
+ // src/components/Grid/Grid.tsx
9
9
  function s({ as: s, className: c, gap: l = 4, minimumItemWidth: u = "16rem", ...d }) {
10
10
  let { role: f, style: p, ...m } = d, h = s ?? "div";
11
- return /* @__PURE__ */ o(e, {
11
+ return /* @__PURE__ */ o(r, {
12
12
  ...m,
13
13
  as: h,
14
14
  className: a(i.grid, c),
15
- role: t(h, f),
16
- style: r({
17
- "--sui-grid-gap": n(l),
15
+ role: e(h, f),
16
+ style: n({
17
+ "--sui-grid-gap": t(l),
18
18
  "--sui-grid-minimum-item-width": u
19
19
  }, p)
20
20
  });
21
21
  }
22
- //#endregion
23
22
  export { s as Grid };
@@ -1,4 +1,3 @@
1
- import './Grid.css';//#region src/components/Grid/Grid.module.css
1
+ import './Grid.css';// src/components/Grid/Grid.module.css
2
2
  var e = "sui-grid-h49fk", t = { grid: e };
3
- //#endregion
4
3
  export { t as default, e as grid };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import t from "./Heading.module.js";
3
3
  import { clsx as n } from "clsx";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
- //#region src/components/Heading/Heading.tsx
5
+ // src/components/Heading/Heading.tsx
6
6
  var i = {
7
7
  1: "3xl",
8
8
  2: "2xl",
@@ -20,5 +20,4 @@ function a({ className: a, level: o, size: s, tone: c = "default", ...l }) {
20
20
  "data-tone": c
21
21
  });
22
22
  }
23
- //#endregion
24
23
  export { a as Heading };
@@ -1,4 +1,3 @@
1
- import './Heading.css';//#region src/components/Heading/Heading.module.css
1
+ import './Heading.css';// src/components/Heading/Heading.module.css
2
2
  var e = "sui-heading-2pnHW", t = { heading: e };
3
- //#endregion
4
3
  export { t as default, e as heading };
@@ -1,19 +1,19 @@
1
- import { Box as e } from "../Box/Box.js";
2
- import { listRole as t } from "../../layout/listRole.js";
3
- import { spaceValue as n } from "../../layout/spaceValue.js";
4
- import { withCustomProperties as r } from "../../layout/withCustomProperties.js";
1
+ import { listRole as e } from "../../layout/listRole.js";
2
+ import { spaceValue as t } from "../../layout/spaceValue.js";
3
+ import { withCustomProperties as n } from "../../layout/withCustomProperties.js";
4
+ import { Box as r } from "../Box/Box.js";
5
5
  import i from "./HorizontalFlow.module.js";
6
6
  import { clsx as a } from "clsx";
7
7
  import { c as o } from "react/compiler-runtime";
8
8
  import { jsx as s } from "react/jsx-runtime";
9
- //#region src/components/HorizontalFlow/HorizontalFlow.tsx
9
+ // src/components/HorizontalFlow/HorizontalFlow.tsx
10
10
  function c(c) {
11
11
  let l = o(22), u, d, f, p, m, h, g, _, v;
12
12
  if (l[0] !== c) {
13
13
  let { align: o, as: s, className: y, gap: b, justify: x, wrap: S, ...C } = c;
14
14
  d = o, f = x, v = S;
15
15
  let { role: w, style: T, ...E } = C, D = s ?? "div";
16
- u = e, p = E, m = D, l[10] === y ? h = l[11] : (h = a(i.horizontalFlow, y), l[10] = y, l[11] = h), g = t(D, w), _ = r({ "--sui-horizontal-flow-gap": n(b) }, T), l[0] = c, l[1] = u, l[2] = d, l[3] = f, l[4] = p, l[5] = m, l[6] = h, l[7] = g, l[8] = _, l[9] = v;
16
+ u = r, p = E, m = D, l[10] === y ? h = l[11] : (h = a(i.horizontalFlow, y), l[10] = y, l[11] = h), g = e(D, w), _ = n({ "--sui-horizontal-flow-gap": t(b) }, T), l[0] = c, l[1] = u, l[2] = d, l[3] = f, l[4] = p, l[5] = m, l[6] = h, l[7] = g, l[8] = _, l[9] = v;
17
17
  } else u = l[1], d = l[2], f = l[3], p = l[4], m = l[5], h = l[6], g = l[7], _ = l[8], v = l[9];
18
18
  let y = v ? "" : void 0, b;
19
19
  return l[12] !== u || l[13] !== d || l[14] !== f || l[15] !== p || l[16] !== m || l[17] !== h || l[18] !== g || l[19] !== _ || l[20] !== y ? (b = /* @__PURE__ */ s(u, {
@@ -27,5 +27,4 @@ function c(c) {
27
27
  "data-wrap": y
28
28
  }), l[12] = u, l[13] = d, l[14] = f, l[15] = p, l[16] = m, l[17] = h, l[18] = g, l[19] = _, l[20] = y, l[21] = b) : b = l[21], b;
29
29
  }
30
- //#endregion
31
30
  export { c as HorizontalFlow };
@@ -1,4 +1,3 @@
1
- import './HorizontalFlow.css';//#region src/components/HorizontalFlow/HorizontalFlow.module.css
1
+ import './HorizontalFlow.css';// src/components/HorizontalFlow/HorizontalFlow.module.css
2
2
  var e = "sui-horizontalFlow-E7MYC", t = { horizontalFlow: e };
3
- //#endregion
4
3
  export { t as default, e as horizontalFlow };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/AddIcon.tsx
5
+ // src/components/Icon/AddIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(4), s, c;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -18,5 +18,4 @@ function a(a) {
18
18
  children: [s, c]
19
19
  }), o[2] = a, o[3] = l), l;
20
20
  }
21
- //#endregion
22
21
  export { a as AddIcon };
@@ -0,0 +1,11 @@
1
+ import type { JSX } from "react";
2
+ import type { IconProps } from "./Icon";
3
+ /**
4
+ * A check mark, for something that is on, chosen or done, such as a checked item in a menu. It is hidden from assistive technology unless it has a `label`, so where the control it marks states its own value, such as a menu item's `aria-checked`, leave it without one.
5
+ *
6
+ * @example
7
+ * <Text>
8
+ * <CheckIcon label="Saved" /> Draft
9
+ * </Text>
10
+ */
11
+ export declare function CheckIcon(props: IconProps): JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { Box as e } from "../Box/Box.js";
2
+ import { Icon as t } from "./Icon.js";
3
+ import { c as n } from "react/compiler-runtime";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ // src/components/Icon/CheckIcon.tsx
6
+ function i(i) {
7
+ let a = n(3), o;
8
+ a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ r(e, {
9
+ as: "path",
10
+ d: "M20 6 9 17l-5-5"
11
+ }), a[0] = o) : o = a[0];
12
+ let s;
13
+ return a[1] === i ? s = a[2] : (s = /* @__PURE__ */ r(t, {
14
+ ...i,
15
+ children: o
16
+ }), a[1] = i, a[2] = s), s;
17
+ }
18
+ export { i as CheckIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
- //#region src/components/Icon/ChevronDownIcon.tsx
5
+ // src/components/Icon/ChevronDownIcon.tsx
6
6
  function i(i) {
7
7
  let a = n(3), o;
8
8
  a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ r(e, {
@@ -15,5 +15,4 @@ function i(i) {
15
15
  children: o
16
16
  }), a[1] = i, a[2] = s), s;
17
17
  }
18
- //#endregion
19
18
  export { i as ChevronDownIcon };
@@ -0,0 +1,11 @@
1
+ import type { JSX } from "react";
2
+ import type { IconProps } from "./Icon";
3
+ /**
4
+ * A chevron pointing along the line, for something that opens beside it, such as a submenu, or leads onward. It points the way the text runs, so it is mirrored in right-to-left text. It is hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
5
+ *
6
+ * @example
7
+ * <Button aria-haspopup="menu">
8
+ * Move to <ChevronRightIcon />
9
+ * </Button>
10
+ */
11
+ export declare function ChevronRightIcon(props: IconProps): JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { Box as e } from "../Box/Box.js";
2
+ import { Icon as t } from "./Icon.js";
3
+ import { c as n } from "react/compiler-runtime";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ // src/components/Icon/ChevronRightIcon.tsx
6
+ function i(i) {
7
+ let a = n(3), o;
8
+ a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ r(e, {
9
+ as: "path",
10
+ d: "m9 18 6-6-6-6"
11
+ }), a[0] = o) : o = a[0];
12
+ let s;
13
+ return a[1] === i ? s = a[2] : (s = /* @__PURE__ */ r(t, {
14
+ ...i,
15
+ mirrored: !0,
16
+ children: o
17
+ }), a[1] = i, a[2] = s), s;
18
+ }
19
+ export { i as ChevronRightIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/CloseIcon.tsx
5
+ // src/components/Icon/CloseIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(4), s, c;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -18,5 +18,4 @@ function a(a) {
18
18
  children: [s, c]
19
19
  }), o[2] = a, o[3] = l), l;
20
20
  }
21
- //#endregion
22
21
  export { a as CloseIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/ColorModeIcon.tsx
5
+ // src/components/Icon/ColorModeIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(7), s, c, l, u, d;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -33,5 +33,4 @@ function a(a) {
33
33
  ]
34
34
  }), o[5] = a, o[6] = f), f;
35
35
  }
36
- //#endregion
37
36
  export { a as ColorModeIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/DeleteIcon.tsx
5
+ // src/components/Icon/DeleteIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(7), s, c, l, u, d;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -33,5 +33,4 @@ function a(a) {
33
33
  ]
34
34
  }), o[5] = a, o[6] = f), f;
35
35
  }
36
- //#endregion
37
36
  export { a as DeleteIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import t from "./Icon.module.js";
3
3
  import { clsx as n } from "clsx";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
- //#region src/components/Icon/Icon.tsx
5
+ // src/components/Icon/Icon.tsx
6
6
  function i({ children: i, className: a, label: o, mirrored: s = !1, ...c }) {
7
7
  let l = !o;
8
8
  return /* @__PURE__ */ r(e, {
@@ -24,5 +24,4 @@ function i({ children: i, className: a, label: o, mirrored: s = !1, ...c }) {
24
24
  }) : i
25
25
  });
26
26
  }
27
- //#endregion
28
27
  export { i as Icon };
@@ -1,7 +1,6 @@
1
- import './Icon.css';//#region src/components/Icon/Icon.module.css
1
+ import './Icon.css';// src/components/Icon/Icon.module.css
2
2
  var e = "sui-icon-szG-X", t = "sui-mirrored-H6BYE", n = {
3
3
  icon: e,
4
4
  mirrored: t
5
5
  };
6
- //#endregion
7
6
  export { n as default, e as icon, t as mirrored };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/InfoIcon.tsx
5
+ // src/components/Icon/InfoIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(5), s, c, l;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -27,5 +27,4 @@ function a(a) {
27
27
  ]
28
28
  }), o[3] = a, o[4] = u), u;
29
29
  }
30
- //#endregion
31
30
  export { a as InfoIcon };
@@ -0,0 +1,12 @@
1
+ import type { JSX } from "react";
2
+ import type { IconProps } from "./Icon";
3
+ /**
4
+ * Three horizontal lines, for the button that shows a site's navigation when it is collapsed on a narrow screen. It is
5
+ * hidden from assistive technology unless it has a `label`, so inside a button, name the button instead.
6
+ *
7
+ * @example
8
+ * <Button aria-expanded={open} onClick={toggle}>
9
+ * <MenuIcon /> Menu
10
+ * </Button>
11
+ */
12
+ export declare function MenuIcon(props: IconProps): JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { Box as e } from "../Box/Box.js";
2
+ import { Icon as t } from "./Icon.js";
3
+ import { c as n } from "react/compiler-runtime";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ // src/components/Icon/MenuIcon.tsx
6
+ function a(a) {
7
+ let o = n(5), s, c, l;
8
+ o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
9
+ as: "path",
10
+ d: "M4 5h16"
11
+ }), c = /* @__PURE__ */ r(e, {
12
+ as: "path",
13
+ d: "M4 12h16"
14
+ }), l = /* @__PURE__ */ r(e, {
15
+ as: "path",
16
+ d: "M4 19h16"
17
+ }), o[0] = s, o[1] = c, o[2] = l) : (s = o[0], c = o[1], l = o[2]);
18
+ let u;
19
+ return o[3] === a ? u = o[4] : (u = /* @__PURE__ */ i(t, {
20
+ ...a,
21
+ children: [
22
+ s,
23
+ c,
24
+ l
25
+ ]
26
+ }), o[3] = a, o[4] = u), u;
27
+ }
28
+ export { a as MenuIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/MoreHorizontalIcon.tsx
5
+ // src/components/Icon/MoreHorizontalIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(5), s, c, l;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -31,5 +31,4 @@ function a(a) {
31
31
  ]
32
32
  }), o[3] = a, o[4] = u), u;
33
33
  }
34
- //#endregion
35
34
  export { a as MoreHorizontalIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/MoreVerticalIcon.tsx
5
+ // src/components/Icon/MoreVerticalIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(5), s, c, l;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -31,5 +31,4 @@ function a(a) {
31
31
  ]
32
32
  }), o[3] = a, o[4] = u), u;
33
33
  }
34
- //#endregion
35
34
  export { a as MoreVerticalIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/PaletteIcon.tsx
5
+ // src/components/Icon/PaletteIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(7), s, c, l, u, d;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -45,5 +45,4 @@ function a(a) {
45
45
  ]
46
46
  }), o[5] = a, o[6] = f), f;
47
47
  }
48
- //#endregion
49
48
  export { a as PaletteIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/RefreshIcon.tsx
5
+ // src/components/Icon/RefreshIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(6), s, c, l, u;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -29,5 +29,4 @@ function a(a) {
29
29
  ]
30
30
  }), o[4] = a, o[5] = d), d;
31
31
  }
32
- //#endregion
33
32
  export { a as RefreshIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
- //#region src/components/Icon/RemoveIcon.tsx
5
+ // src/components/Icon/RemoveIcon.tsx
6
6
  function i(i) {
7
7
  let a = n(3), o;
8
8
  a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ r(e, {
@@ -15,5 +15,4 @@ function i(i) {
15
15
  children: o
16
16
  }), a[1] = i, a[2] = s), s;
17
17
  }
18
- //#endregion
19
18
  export { i as RemoveIcon };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import { Icon as t } from "./Icon.js";
3
3
  import { c as n } from "react/compiler-runtime";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- //#region src/components/Icon/SendIcon.tsx
5
+ // src/components/Icon/SendIcon.tsx
6
6
  function a(a) {
7
7
  let o = n(4), s, c;
8
8
  o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ r(e, {
@@ -19,5 +19,4 @@ function a(a) {
19
19
  children: [s, c]
20
20
  }), o[2] = a, o[3] = l), l;
21
21
  }
22
- //#endregion
23
22
  export { a as SendIcon };
@@ -1,10 +1,13 @@
1
1
  export { AddIcon } from "./AddIcon";
2
+ export { CheckIcon } from "./CheckIcon";
2
3
  export { ChevronDownIcon } from "./ChevronDownIcon";
4
+ export { ChevronRightIcon } from "./ChevronRightIcon";
3
5
  export { CloseIcon } from "./CloseIcon";
4
6
  export { ColorModeIcon } from "./ColorModeIcon";
5
7
  export { DeleteIcon } from "./DeleteIcon";
6
8
  export type { IconProps } from "./Icon";
7
9
  export { InfoIcon } from "./InfoIcon";
10
+ export { MenuIcon } from "./MenuIcon";
8
11
  export { MoreHorizontalIcon } from "./MoreHorizontalIcon";
9
12
  export { MoreVerticalIcon } from "./MoreVerticalIcon";
10
13
  export { PaletteIcon } from "./PaletteIcon";
@@ -7,7 +7,7 @@ import a from "./IconButton.module.js";
7
7
  import { clsx as o } from "clsx";
8
8
  import { useId as s } from "react";
9
9
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
10
- //#region src/components/IconButton/IconButton.tsx
10
+ // src/components/IconButton/IconButton.tsx
11
11
  function d({ children: d, className: f, label: p, placement: m = "top", shortcut: h, variant: g = "ghost", ..._ }) {
12
12
  let v = i({
13
13
  placement: m,
@@ -37,5 +37,4 @@ function d({ children: d, className: f, label: p, placement: m = "top", shortcut
37
37
  })]
38
38
  })] });
39
39
  }
40
- //#endregion
41
40
  export { d as IconButton };
@@ -1,8 +1,7 @@
1
- import './IconButton.css';//#region src/components/IconButton/IconButton.module.css
1
+ import './IconButton.css';// src/components/IconButton/IconButton.module.css
2
2
  var e = "sui-iconButton-JAF-a", t = "sui-icon-2DDWy", n = "sui-shortcut-LCwpq", r = {
3
3
  iconButton: e,
4
4
  icon: t,
5
5
  shortcut: n
6
6
  };
7
- //#endregion
8
7
  export { r as default, t as icon, e as iconButton, n as shortcut };
@@ -3,7 +3,7 @@ import t from "./Kbd.module.js";
3
3
  import { clsx as n } from "clsx";
4
4
  import { c as r } from "react/compiler-runtime";
5
5
  import { jsx as i } from "react/jsx-runtime";
6
- //#region src/components/Kbd/Kbd.tsx
6
+ // src/components/Kbd/Kbd.tsx
7
7
  function a(a) {
8
8
  let o = r(8), s, c;
9
9
  o[0] === a ? (s = o[1], c = o[2]) : ({className: s, ...c} = a, o[0] = a, o[1] = s, o[2] = c);
@@ -16,5 +16,4 @@ function a(a) {
16
16
  className: l
17
17
  }), o[5] = c, o[6] = l, o[7] = u) : u = o[7], u;
18
18
  }
19
- //#endregion
20
19
  export { a as Kbd };
@@ -1,4 +1,3 @@
1
- import './Kbd.css';//#region src/components/Kbd/Kbd.module.css
1
+ import './Kbd.css';// src/components/Kbd/Kbd.module.css
2
2
  var e = "sui-kbd-jgbYx", t = { kbd: e };
3
- //#endregion
4
3
  export { t as default, e as kbd };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import t from "./Link.module.js";
3
3
  import { clsx as n } from "clsx";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
- //#region src/components/Link/Link.tsx
5
+ // src/components/Link/Link.tsx
6
6
  function i({ as: i, className: a, tone: o = "primary", underline: s = "always", ...c }) {
7
7
  let l = {
8
8
  className: n(t.link, a),
@@ -23,5 +23,4 @@ function i({ as: i, className: a, tone: o = "primary", underline: s = "always",
23
23
  ...l
24
24
  });
25
25
  }
26
- //#endregion
27
26
  export { i as Link };
@@ -1,4 +1,3 @@
1
- import './Link.css';//#region src/components/Link/Link.module.css
1
+ import './Link.css';// src/components/Link/Link.module.css
2
2
  var e = "sui-link-Ly-e3", t = { link: e };
3
- //#endregion
4
3
  export { t as default, e as link };
@@ -1,11 +1,11 @@
1
- import { Box as e } from "../Box/Box.js";
2
- import t from "./Listbox.module.js";
3
- import { ListboxContext as n } from "./ListboxContext.js";
4
- import { optionId as r } from "./optionId.js";
1
+ import { optionId as e } from "../../collections/optionId.js";
2
+ import { Box as t } from "../Box/Box.js";
3
+ import n from "./Listbox.module.js";
4
+ import { ListboxContext as r } from "./ListboxContext.js";
5
5
  import { useListbox as i } from "./useListbox.js";
6
6
  import { clsx as a } from "clsx";
7
7
  import { jsx as o } from "react/jsx-runtime";
8
- //#region src/components/Listbox/Listbox.tsx
8
+ // src/components/Listbox/Listbox.tsx
9
9
  function s({ className: s, defaultValue: c = null, onAction: l, onBlur: u, onFocus: d, onKeyDown: f, onPointerCancel: p, onPointerDown: m, onValueChange: h, value: g, ..._ }) {
10
10
  let v = i({
11
11
  defaultValue: c,
@@ -28,7 +28,7 @@ function s({ className: s, defaultValue: c = null, onAction: l, onBlur: u, onFoc
28
28
  function A(e) {
29
29
  m?.(e), v.handlePointerDown();
30
30
  }
31
- return /* @__PURE__ */ o(n.Provider, {
31
+ return /* @__PURE__ */ o(r.Provider, {
32
32
  value: {
33
33
  act: y,
34
34
  activeValue: b,
@@ -38,9 +38,9 @@ function s({ className: s, defaultValue: c = null, onAction: l, onBlur: u, onFoc
38
38
  selectedValue: w,
39
39
  setActiveValue: T
40
40
  },
41
- children: /* @__PURE__ */ o(e, {
41
+ children: /* @__PURE__ */ o(t, {
42
42
  ..._,
43
- className: a(t.listbox, s),
43
+ className: a(n.listbox, s),
44
44
  onBlur: E,
45
45
  onFocus: D,
46
46
  onKeyDown: O,
@@ -48,9 +48,8 @@ function s({ className: s, defaultValue: c = null, onAction: l, onBlur: u, onFoc
48
48
  onPointerDown: A,
49
49
  role: "listbox",
50
50
  tabIndex: 0,
51
- "aria-activedescendant": b === null ? void 0 : r(x, b)
51
+ "aria-activedescendant": b === null ? void 0 : e(x, b)
52
52
  })
53
53
  });
54
54
  }
55
- //#endregion
56
55
  export { s as Listbox };
@@ -1,7 +1,6 @@
1
- import './Listbox.css';//#region src/components/Listbox/Listbox.module.css
1
+ import './Listbox.css';// src/components/Listbox/Listbox.module.css
2
2
  var e = "sui-listbox-lSHQo", t = "sui-option-sCJLx", n = {
3
3
  listbox: e,
4
4
  option: t
5
5
  };
6
- //#endregion
7
6
  export { n as default, e as listbox, t as option };
@@ -1,5 +1,4 @@
1
1
  import { createContext as e } from "react";
2
- //#region src/components/Listbox/ListboxContext.ts
2
+ // src/components/Listbox/ListboxContext.ts
3
3
  var t = e(null);
4
- //#endregion
5
4
  export { t as ListboxContext };
@@ -1,11 +1,11 @@
1
- import { Box as e } from "../Box/Box.js";
2
- import t from "./Listbox.module.js";
3
- import { optionId as n } from "./optionId.js";
1
+ import { optionId as e } from "../../collections/optionId.js";
2
+ import { Box as t } from "../Box/Box.js";
3
+ import n from "./Listbox.module.js";
4
4
  import { useListboxContext as r } from "./useListboxContext.js";
5
5
  import { clsx as i } from "clsx";
6
6
  import { useEffectEvent as a, useLayoutEffect as o } from "react";
7
7
  import { jsx as s } from "react/jsx-runtime";
8
- //#region src/components/Listbox/ListboxOption.tsx
8
+ // src/components/Listbox/ListboxOption.tsx
9
9
  function c({ className: c, disabled: l = !1, onClick: u, onDoubleClick: d, textValue: f, value: p, ...m }) {
10
10
  let h = r("ListboxOption"), { setActiveValue: g } = h, _ = h.activeValue === p, v = h.selectedValue === p, y = a(h.claim);
11
11
  o(() => {
@@ -25,10 +25,10 @@ function c({ className: c, disabled: l = !1, onClick: u, onDoubleClick: d, textV
25
25
  function x(e) {
26
26
  d?.(e), !e.defaultPrevented && !l && h.act(p);
27
27
  }
28
- return /* @__PURE__ */ s(e, {
28
+ return /* @__PURE__ */ s(t, {
29
29
  ...m,
30
- className: i(t.option, c),
31
- id: n(h.baseId, p),
30
+ className: i(n.option, c),
31
+ id: e(h.baseId, p),
32
32
  onClick: b,
33
33
  onDoubleClick: x,
34
34
  role: "option",
@@ -39,5 +39,4 @@ function c({ className: c, disabled: l = !1, onClick: u, onDoubleClick: d, textV
39
39
  "data-value": p
40
40
  });
41
41
  }
42
- //#endregion
43
42
  export { c as ListboxOption };