@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
@@ -3,7 +3,7 @@ import t from "./NavList.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/NavList/NavList.tsx
6
+ // src/components/NavList/NavList.tsx
7
7
  function a(a) {
8
8
  let o = r(12), s, c, l;
9
9
  o[0] === a ? (s = o[1], c = o[2], l = o[3]) : ({children: s, className: c, ...l} = a, o[0] = a, o[1] = s, o[2] = c, o[3] = l);
@@ -24,5 +24,4 @@ function a(a) {
24
24
  children: d
25
25
  }), o[8] = l, o[9] = u, o[10] = d, o[11] = f) : f = o[11], f;
26
26
  }
27
- //#endregion
28
27
  export { a as NavList };
@@ -1,4 +1,4 @@
1
- import './NavList.css';//#region src/components/NavList/NavList.module.css
1
+ import './NavList.css';// src/components/NavList/NavList.module.css
2
2
  var e = "sui-navList-MII8M", t = "sui-list-oNLze", n = "sui-group-18cks", r = "sui-groupTitle-Ftg7C", i = "sui-item-2Rc1V", a = "sui-label-WQWVq", o = "sui-trailing-g7A1F", s = {
3
3
  navList: e,
4
4
  list: t,
@@ -8,5 +8,4 @@ var e = "sui-navList-MII8M", t = "sui-list-oNLze", n = "sui-group-18cks", r = "s
8
8
  label: a,
9
9
  trailing: o
10
10
  };
11
- //#endregion
12
11
  export { s as default, n as group, r as groupTitle, i as item, a as label, t as list, e as navList, o as trailing };
@@ -5,7 +5,7 @@ import { clsx as r } from "clsx";
5
5
  import { useId as i } from "react";
6
6
  import { c as a } from "react/compiler-runtime";
7
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- //#region src/components/NavList/NavListGroup.tsx
8
+ // src/components/NavList/NavListGroup.tsx
9
9
  function c(c) {
10
10
  let l = a(20), u, d, f, p, m;
11
11
  l[0] === c ? (u = l[1], d = l[2], f = l[3], p = l[4], m = l[5]) : ({children: u, className: d, headingLevel: f, title: m, ...p} = c, l[0] = c, l[1] = u, l[2] = d, l[3] = f, l[4] = p, l[5] = m);
@@ -36,5 +36,4 @@ function c(c) {
36
36
  children: [_, v]
37
37
  }), l[15] = p, l[16] = g, l[17] = _, l[18] = v, l[19] = y) : y = l[19], y;
38
38
  }
39
- //#endregion
40
39
  export { c as NavListGroup };
@@ -1,9 +1,10 @@
1
- import type { ComponentPropsWithRef, JSX, JSXElementConstructor, ReactNode } from "react";
1
+ import type { JSX, ReactNode } from "react";
2
+ import type { LinkOrButtonElement, LinkOrButtonProps } from "../../links";
2
3
  /**
3
4
  * What a `NavListItem` can render: a link, a button for switching views, or a component that renders an anchor, such
4
5
  * as a router's link
5
6
  */
6
- export type NavListItemElement = "a" | "button" | JSXElementConstructor<never>;
7
+ export type NavListItemElement = LinkOrButtonElement;
7
8
  interface NavListItemOwnProps {
8
9
  /**
9
10
  * The label. It is never a render function, even when the component given in `as` takes one, because the item
@@ -25,18 +26,13 @@ interface NavListItemElementOwnProps<E extends NavListItemElement> {
25
26
  */
26
27
  className?: string;
27
28
  }
28
- type PropsOnlyOn<Element extends "a" | "button", Other extends "a" | "button"> = {
29
- [Name in Exclude<keyof ComponentPropsWithRef<Element>, keyof ComponentPropsWithRef<Other>>]?: never;
30
- };
31
- type NavListItemElementProps<E extends NavListItemElement> = E extends JSXElementConstructor<infer Props> ? Props : E extends "button" ? ComponentPropsWithRef<"button"> & PropsOnlyOn<"a", "button"> : ComponentPropsWithRef<"a"> & PropsOnlyOn<"button", "a">;
32
- type OmitFromEach<Props, Name extends PropertyKey> = Props extends unknown ? Omit<Props, Name> : never;
33
29
  /**
34
30
  * Props for `NavListItem`: `children` and `trailing` plus every other prop of the link, button or component given in
35
31
  * `as`, except `dangerouslySetInnerHTML`. When `as` may be either a link or a button, only props both accept are
36
32
  * allowed.
37
33
  */
38
34
  export type NavListItemProps<E extends NavListItemElement = "a"> = E extends NavListItemElement ? NavListItemPropsFor<E> : never;
39
- type NavListItemPropsFor<E extends NavListItemElement> = NavListItemOwnProps & NavListItemElementOwnProps<E> & OmitFromEach<NavListItemElementProps<E>, "dangerouslySetInnerHTML" | keyof NavListItemOwnProps | keyof NavListItemElementOwnProps<E>>;
35
+ type NavListItemPropsFor<E extends NavListItemElement> = NavListItemOwnProps & NavListItemElementOwnProps<E> & LinkOrButtonProps<E, "dangerouslySetInnerHTML" | keyof NavListItemOwnProps | keyof NavListItemElementOwnProps<E>>;
40
36
  /**
41
37
  * One item in a `NavList`. Every prop but `children` and `trailing` goes to the link, button or component given in
42
38
  * `as`, not the list item around it. A component given in `as` must pass the `className` it is given on to its anchor,
@@ -4,7 +4,7 @@ import n from "./NavList.module.js";
4
4
  import { clsx as r } from "clsx";
5
5
  import { c as i } from "react/compiler-runtime";
6
6
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
- //#region src/components/NavList/NavListItem.tsx
7
+ // src/components/NavList/NavListItem.tsx
8
8
  function c(c) {
9
9
  let u = i(15), d, f, p;
10
10
  if (u[0] !== c) {
@@ -53,5 +53,4 @@ function l(e, n, r, i) {
53
53
  children: r
54
54
  });
55
55
  }
56
- //#endregion
57
56
  export { c as NavListItem };
@@ -1,18 +1,18 @@
1
- import { Box as e } from "../Box/Box.js";
2
- import { syncPopover as t } from "../../overlays/syncPopover.js";
1
+ import { syncPopover as e } from "../../overlays/syncPopover.js";
2
+ import { Box as t } from "../Box/Box.js";
3
3
  import n from "./Overlay.module.js";
4
4
  import { clsx as r } from "clsx";
5
5
  import { useEffect as i, useRef as a } from "react";
6
6
  import { c as o } from "react/compiler-runtime";
7
7
  import { jsx as s } from "react/jsx-runtime";
8
- //#region src/components/Overlay/Overlay.tsx
8
+ // src/components/Overlay/Overlay.tsx
9
9
  function c(c) {
10
10
  let l = o(24), u, d, f, p, m, h, g, _;
11
11
  l[0] === c ? (u = l[1], d = l[2], f = l[3], p = l[4], m = l[5], h = l[6], g = l[7], _ = l[8]) : ({anchorName: u, as: d, className: f, open: p, placement: m, popover: h, style: _, ...g} = c, 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] = _);
12
12
  let v = a(null), y, b;
13
13
  l[9] === p ? (y = l[10], b = l[11]) : (y = () => {
14
- let e = v.current;
15
- if (e !== null && "showPopover" in e) return t(e, p);
14
+ let t = v.current;
15
+ if (t !== null && "showPopover" in t) return e(t, p);
16
16
  }, b = [p], l[9] = p, l[10] = y, l[11] = b), i(y, b);
17
17
  let x = d, S;
18
18
  l[12] === f ? S = l[13] : (S = r(n.overlay, f), l[12] = f, l[13] = S);
@@ -22,7 +22,7 @@ function c(c) {
22
22
  positionAnchor: u
23
23
  }, l[14] = u, l[15] = _, l[16] = C) : C = l[16];
24
24
  let w;
25
- return l[17] !== m || l[18] !== h || l[19] !== g || l[20] !== x || l[21] !== S || l[22] !== C ? (w = /* @__PURE__ */ s(e, {
25
+ return l[17] !== m || l[18] !== h || l[19] !== g || l[20] !== x || l[21] !== S || l[22] !== C ? (w = /* @__PURE__ */ s(t, {
26
26
  ...g,
27
27
  as: x,
28
28
  className: S,
@@ -32,5 +32,4 @@ function c(c) {
32
32
  "data-placement": m
33
33
  }), l[17] = m, l[18] = h, l[19] = g, l[20] = x, l[21] = S, l[22] = C, l[23] = w) : w = l[23], w;
34
34
  }
35
- //#endregion
36
35
  export { c as Overlay };
@@ -1,4 +1,3 @@
1
- import './Overlay.css';//#region src/components/Overlay/Overlay.module.css
1
+ import './Overlay.css';// src/components/Overlay/Overlay.module.css
2
2
  var e = "sui-overlay-EkbfA", t = { overlay: e };
3
- //#endregion
4
3
  export { t as default, e as overlay };
@@ -1,18 +1,17 @@
1
- import { Box as e } from "../Box/Box.js";
2
- import { spaceValue as t } from "../../layout/spaceValue.js";
3
- import { withCustomProperties as n } from "../../layout/withCustomProperties.js";
1
+ import { spaceValue as e } from "../../layout/spaceValue.js";
2
+ import { withCustomProperties as t } from "../../layout/withCustomProperties.js";
3
+ import { Box as n } from "../Box/Box.js";
4
4
  import r from "./PageLayout.module.js";
5
5
  import { clsx as i } from "clsx";
6
6
  import { jsx as a } from "react/jsx-runtime";
7
- //#region src/components/PageLayout/PageLayout.tsx
7
+ // src/components/PageLayout/PageLayout.tsx
8
8
  function o({ as: o, className: s, gap: c = 0, ...l }) {
9
9
  let { style: u, ...d } = l;
10
- return /* @__PURE__ */ a(e, {
10
+ return /* @__PURE__ */ a(n, {
11
11
  ...d,
12
12
  as: o,
13
13
  className: i(r.pageLayout, s),
14
- style: n({ "--sui-page-layout-gap": t(c) }, u)
14
+ style: t({ "--sui-page-layout-gap": e(c) }, u)
15
15
  });
16
16
  }
17
- //#endregion
18
17
  export { o as PageLayout };
@@ -1,4 +1,3 @@
1
- import './PageLayout.css';//#region src/components/PageLayout/PageLayout.module.css
1
+ import './PageLayout.css';// src/components/PageLayout/PageLayout.module.css
2
2
  var e = "sui-pageLayout-5SkLH", t = { pageLayout: e };
3
- //#endregion
4
3
  export { t as default, e as pageLayout };
@@ -3,7 +3,7 @@ import t from "./Popover.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/Popover/Popover.tsx
6
+ // src/components/Popover/Popover.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);
@@ -17,5 +17,4 @@ function a(a) {
17
17
  popover: "auto"
18
18
  }), o[5] = c, o[6] = l, o[7] = u) : u = o[7], u;
19
19
  }
20
- //#endregion
21
20
  export { a as Popover };
@@ -1,4 +1,3 @@
1
- import './Popover.css';//#region src/components/Popover/Popover.module.css
1
+ import './Popover.css';// src/components/Popover/Popover.module.css
2
2
  var e = "sui-popover-E9K9X", t = { popover: e };
3
- //#endregion
4
3
  export { t as default, e as popover };
@@ -2,65 +2,70 @@ import { anchorNameFor as e } from "../../overlays/anchorNameFor.js";
2
2
  import { mergeProps as t } from "../../overlays/mergeProps.js";
3
3
  import { syncPopover as n } from "../../overlays/syncPopover.js";
4
4
  import { useEffect as r, useId as i, useRef as a, useState as o } from "react";
5
- //#region src/components/Popover/usePopover.ts
6
- function s({ defaultOpen: s = !1, initialFocus: u, onOpenChange: d, open: f, placement: p = "bottom" } = {}) {
7
- let m = i(), [h, g] = o(s), [_, v] = o(0), y = a(null), b = a(!1), x = a(!1), S = f !== void 0, C = f ?? h, w = e(m);
5
+ // src/components/Popover/usePopover.ts
6
+ function s({ defaultOpen: s = !1, initialFocus: d, onOpenChange: f, open: p, placement: m = "bottom" } = {}) {
7
+ let h = i(), [g, _] = o(s), [v, y] = o(0), b = a(null), x = a(!1), S = a(!1), C = p !== void 0, w = p ?? g, T = e(h);
8
8
  r(() => {
9
- let e = y.current;
10
- if (_ !== 0 && C && e !== null && e.isConnected) return n(e, !0);
11
- }, [C, _]);
12
- function T(e) {
13
- S || g(e), d?.(e);
14
- }
9
+ let e = b.current;
10
+ if (v !== 0 && w && e !== null && e.isConnected) return n(e, !0);
11
+ }, [w, v]);
15
12
  function E(e) {
16
- if (e.newState === "closed") {
17
- let t = e.currentTarget;
18
- b.current = t.contains(t.ownerDocument.activeElement) || x.current && l(t.ownerDocument), x.current = !1;
19
- }
20
- S && !C && e.newState === "open" && (e.preventDefault(), d?.(!0));
13
+ C || _(e), f?.(e);
21
14
  }
22
15
  function D(e) {
16
+ if (!c(e)) {
17
+ if (e.newState === "closed") {
18
+ let t = e.currentTarget;
19
+ x.current = t.contains(t.ownerDocument.activeElement) || S.current && u(t.ownerDocument);
20
+ }
21
+ S.current = !1, C && !w && e.newState === "open" && (e.preventDefault(), f?.(!0));
22
+ }
23
+ }
24
+ function O(e) {
25
+ if (c(e)) return;
23
26
  let t = e.newState === "open";
24
- t ? u?.current?.focus() : b.current && (b.current = !1, c(e.currentTarget)), t !== C && (T(t), S && (y.current = e.currentTarget, v((e) => e + 1)));
27
+ t ? d?.current?.focus() : x.current && (x.current = !1, l(e.currentTarget)), t !== w && (E(t), C && (b.current = e.currentTarget, y((e) => e + 1)));
25
28
  }
26
- function O() {
27
- C && (x.current = !0, T(!1));
29
+ function k() {
30
+ w && (S.current = !0, E(!1));
28
31
  }
29
- let k = {
30
- anchorName: w,
31
- id: m,
32
- onBeforeToggle: E,
33
- onToggle: D,
34
- open: C,
35
- placement: p
36
- }, A = {
37
- "aria-controls": m,
38
- "aria-expanded": C,
39
- popoverTarget: m,
40
- style: { anchorName: w }
32
+ let A = {
33
+ anchorName: T,
34
+ id: h,
35
+ onBeforeToggle: D,
36
+ onToggle: O,
37
+ open: w,
38
+ placement: m
39
+ }, j = {
40
+ "aria-controls": h,
41
+ "aria-expanded": w,
42
+ popoverTarget: h,
43
+ style: { anchorName: T }
41
44
  };
42
- function j(e) {
43
- return t(e, k);
44
- }
45
45
  function M(e) {
46
46
  return t(e, A);
47
47
  }
48
+ function N(e) {
49
+ return t(e, j);
50
+ }
48
51
  return {
49
- close: O,
50
- getOverlayProps: j,
51
- getTriggerProps: M,
52
- open: C
52
+ close: k,
53
+ getOverlayProps: M,
54
+ getTriggerProps: N,
55
+ open: w
53
56
  };
54
57
  }
55
58
  function c(e) {
56
- (l(e.ownerDocument) || e.contains(e.ownerDocument.activeElement)) && u(e)?.focus();
59
+ return e.target !== e.currentTarget;
57
60
  }
58
61
  function l(e) {
59
- return e.activeElement === null || e.activeElement === e.body;
62
+ (u(e.ownerDocument) || e.contains(e.ownerDocument.activeElement)) && d(e)?.focus();
60
63
  }
61
64
  function u(e) {
65
+ return e.activeElement === null || e.activeElement === e.body;
66
+ }
67
+ function d(e) {
62
68
  let t = e.ownerDocument.querySelectorAll("[popovertarget]");
63
69
  return Array.from(t).find((t) => t.getAttribute("popovertarget") === e.id && !e.contains(t)) ?? null;
64
70
  }
65
- //#endregion
66
71
  export { s as usePopover };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import t from "./Prose.module.js";
3
3
  import { clsx as n } from "clsx";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
- //#region src/components/Prose/Prose.tsx
5
+ // src/components/Prose/Prose.tsx
6
6
  function i({ as: i, className: a, codeOverflow: o = "wrap", size: s = "md", ...c }) {
7
7
  return /* @__PURE__ */ r(e, {
8
8
  ...c,
@@ -12,5 +12,4 @@ function i({ as: i, className: a, codeOverflow: o = "wrap", size: s = "md", ...c
12
12
  "data-size": s
13
13
  });
14
14
  }
15
- //#endregion
16
15
  export { i as Prose };
@@ -1,4 +1,3 @@
1
- import './Prose.css';//#region src/components/Prose/Prose.module.css
1
+ import './Prose.css';// src/components/Prose/Prose.module.css
2
2
  var e = "sui-prose-Obc4t", t = { prose: e };
3
- //#endregion
4
3
  export { t as default, e as prose };
@@ -2,7 +2,7 @@ import { useRadioGroupItem as e } from "../../forms/useRadioGroupItem.js";
2
2
  import { ChoiceControl as t } from "../ChoiceControl/ChoiceControl.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/Radio/Radio.tsx
5
+ // src/components/Radio/Radio.tsx
6
6
  function i(i) {
7
7
  let a = n(13), o, s, c, l;
8
8
  a[0] === i ? (o = a[1], s = a[2], c = a[3], l = a[4]) : ({children: o, onChange: s, value: l, ...c} = i, a[0] = i, a[1] = o, a[2] = s, a[3] = c, a[4] = l);
@@ -20,5 +20,4 @@ function i(i) {
20
20
  children: o
21
21
  }), a[8] = o, a[9] = d, a[10] = c, a[11] = l, a[12] = f) : f = a[12], f;
22
22
  }
23
- //#endregion
24
23
  export { i as Radio };
@@ -1,12 +1,12 @@
1
1
  import { hasContent as e } from "../../forms/hasContent.js";
2
2
  import { RadioGroupContext as t } from "../../forms/RadioGroupContext.js";
3
3
  import { Box as n } from "../Box/Box.js";
4
- import { RequiredIndicator as r } from "../RequiredIndicator/RequiredIndicator.js";
5
- import { Fieldset as i } from "../Fieldset/Fieldset.js";
4
+ import { Fieldset as r } from "../Fieldset/Fieldset.js";
5
+ import { RequiredIndicator as i } from "../RequiredIndicator/RequiredIndicator.js";
6
6
  import a from "./RadioGroup.module.js";
7
7
  import { useId as o } from "react";
8
8
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
9
- //#region src/components/RadioGroup/RadioGroup.tsx
9
+ // src/components/RadioGroup/RadioGroup.tsx
10
10
  function u({ children: u, defaultValue: d, error: f, label: p, name: m, onValueChange: h, orientation: g = "vertical", required: _ = !1, value: v, ...y }) {
11
11
  let b = o(), x = e(f);
12
12
  return /* @__PURE__ */ c(t.Provider, {
@@ -18,10 +18,10 @@ function u({ children: u, defaultValue: d, error: f, label: p, name: m, onValueC
18
18
  required: _,
19
19
  value: v
20
20
  },
21
- children: /* @__PURE__ */ c(i, {
21
+ children: /* @__PURE__ */ c(r, {
22
22
  ...y,
23
23
  error: f,
24
- label: _ ? /* @__PURE__ */ l(s, { children: [p, /* @__PURE__ */ c(r, {})] }) : p,
24
+ label: _ ? /* @__PURE__ */ l(s, { children: [p, /* @__PURE__ */ c(i, {})] }) : p,
25
25
  role: "radiogroup",
26
26
  "aria-invalid": x ? !0 : void 0,
27
27
  "aria-required": _ ? !0 : void 0,
@@ -33,5 +33,4 @@ function u({ children: u, defaultValue: d, error: f, label: p, name: m, onValueC
33
33
  })
34
34
  });
35
35
  }
36
- //#endregion
37
36
  export { u as RadioGroup };
@@ -1,4 +1,3 @@
1
- import './RadioGroup.css';//#region src/components/RadioGroup/RadioGroup.module.css
1
+ import './RadioGroup.css';// src/components/RadioGroup/RadioGroup.module.css
2
2
  var e = "sui-radioGroup-pO2pz", t = { radioGroup: e };
3
- //#endregion
4
3
  export { t as default, e as radioGroup };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import t from "./RequiredIndicator.module.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/RequiredIndicator/RequiredIndicator.tsx
5
+ // src/components/RequiredIndicator/RequiredIndicator.tsx
6
6
  function i() {
7
7
  let i = n(1), a;
8
8
  return i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ r(e, {
@@ -12,5 +12,4 @@ function i() {
12
12
  children: "*"
13
13
  }), i[0] = a) : a = i[0], a;
14
14
  }
15
- //#endregion
16
15
  export { i as RequiredIndicator };
@@ -1,4 +1,3 @@
1
- import './RequiredIndicator.css';//#region src/components/RequiredIndicator/RequiredIndicator.module.css
1
+ import './RequiredIndicator.css';// src/components/RequiredIndicator/RequiredIndicator.module.css
2
2
  var e = "sui-requiredIndicator-11-gH", t = { requiredIndicator: e };
3
- //#endregion
4
3
  export { t as default, e as requiredIndicator };
@@ -1,6 +1,6 @@
1
1
  import { HorizontalFlow as e } from "../HorizontalFlow/HorizontalFlow.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- //#region src/components/Row/Row.tsx
3
+ // src/components/Row/Row.tsx
4
4
  function n({ align: n = "center", gap: r = 2, justify: i = "start", ...a }) {
5
5
  return /* @__PURE__ */ t(e, {
6
6
  ...a,
@@ -10,5 +10,4 @@ function n({ align: n = "center", gap: r = 2, justify: i = "start", ...a }) {
10
10
  wrap: !1
11
11
  });
12
12
  }
13
- //#endregion
14
13
  export { n as Row };
@@ -4,7 +4,7 @@ import n from "./SegmentedControl.module.js";
4
4
  import { clsx as r } from "clsx";
5
5
  import { c as i } from "react/compiler-runtime";
6
6
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
- //#region src/components/SegmentedControl/Segment.tsx
7
+ // src/components/SegmentedControl/Segment.tsx
8
8
  function s(s) {
9
9
  let c = i(23), l, u, d, f, p, m;
10
10
  c[0] === s ? (l = c[1], u = c[2], d = c[3], f = c[4], p = c[5], m = c[6]) : ({children: l, className: u, onChange: d, style: p, value: m, ...f} = s, c[0] = s, c[1] = l, c[2] = u, c[3] = d, c[4] = f, c[5] = p, c[6] = m);
@@ -38,5 +38,4 @@ function s(s) {
38
38
  children: [v, y]
39
39
  }), c[18] = p, c[19] = _, c[20] = v, c[21] = y, c[22] = b) : b = c[22], b;
40
40
  }
41
- //#endregion
42
41
  export { s as Segment };
@@ -3,7 +3,7 @@ import { RadioGroup as t } from "../RadioGroup/RadioGroup.js";
3
3
  import n from "./SegmentedControl.module.js";
4
4
  import { clsx as r } from "clsx";
5
5
  import { jsx as i } from "react/jsx-runtime";
6
- //#region src/components/SegmentedControl/SegmentedControl.tsx
6
+ // src/components/SegmentedControl/SegmentedControl.tsx
7
7
  function a({ children: a, className: o, size: s = "md", ...c }) {
8
8
  return /* @__PURE__ */ i(t, {
9
9
  ...c,
@@ -16,5 +16,4 @@ function a({ children: a, className: o, size: s = "md", ...c }) {
16
16
  })
17
17
  });
18
18
  }
19
- //#endregion
20
19
  export { a as SegmentedControl };
@@ -1,4 +1,4 @@
1
- import './SegmentedControl.css';//#region src/components/SegmentedControl/SegmentedControl.module.css
1
+ import './SegmentedControl.css';// src/components/SegmentedControl/SegmentedControl.module.css
2
2
  var e = "sui-track-wz5iS", t = "sui-segmentedControl-ocGwO", n = "sui-segment-cu-EL", r = "sui-input-IEP3u", i = "sui-text-5WlQL", a = {
3
3
  track: e,
4
4
  segmentedControl: t,
@@ -6,5 +6,4 @@ var e = "sui-track-wz5iS", t = "sui-segmentedControl-ocGwO", n = "sui-segment-cu
6
6
  input: r,
7
7
  text: i
8
8
  };
9
- //#endregion
10
9
  export { a as default, r as input, n as segment, t as segmentedControl, i as text, e as track };
@@ -1,6 +1,6 @@
1
1
  import { TextControl as e } from "../TextControl/TextControl.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- //#region src/components/Select/Select.tsx
3
+ // src/components/Select/Select.tsx
4
4
  function n({ size: n = "md", ...r }) {
5
5
  return /* @__PURE__ */ t(e, {
6
6
  ...r,
@@ -8,5 +8,4 @@ function n({ size: n = "md", ...r }) {
8
8
  size: n
9
9
  });
10
10
  }
11
- //#endregion
12
11
  export { n as Select };
@@ -1,24 +1,23 @@
1
- import { Box as e } from "../Box/Box.js";
2
- import { spaceValue as t } from "../../layout/spaceValue.js";
3
- import { withCustomProperties as n } from "../../layout/withCustomProperties.js";
1
+ import { spaceValue as e } from "../../layout/spaceValue.js";
2
+ import { withCustomProperties as t } from "../../layout/withCustomProperties.js";
3
+ import { Box as n } from "../Box/Box.js";
4
4
  import r from "./Sidebar.module.js";
5
5
  import { clsx as i } from "clsx";
6
6
  import { jsx as a } from "react/jsx-runtime";
7
- //#region src/components/Sidebar/Sidebar.tsx
7
+ // src/components/Sidebar/Sidebar.tsx
8
8
  function o({ align: o = "stretch", as: s, className: c, contentMinimumWidth: l = "50%", gap: u = 4, side: d = "end", sideWidth: f, ...p }) {
9
9
  let { style: m, ...h } = p;
10
- return /* @__PURE__ */ a(e, {
10
+ return /* @__PURE__ */ a(n, {
11
11
  ...h,
12
12
  as: s,
13
13
  className: i(r.sidebar, c),
14
- style: n({
14
+ style: t({
15
15
  "--sui-sidebar-content-minimum-width": l,
16
- "--sui-sidebar-gap": t(u),
16
+ "--sui-sidebar-gap": e(u),
17
17
  "--sui-sidebar-side-width": f ?? "auto"
18
18
  }, m),
19
19
  "data-align": o,
20
20
  "data-side": d
21
21
  });
22
22
  }
23
- //#endregion
24
23
  export { o as Sidebar };
@@ -1,4 +1,3 @@
1
- import './Sidebar.css';//#region src/components/Sidebar/Sidebar.module.css
1
+ import './Sidebar.css';// src/components/Sidebar/Sidebar.module.css
2
2
  var e = "sui-sidebar-UB1qz", t = { sidebar: e };
3
- //#endregion
4
3
  export { t as default, e as sidebar };
@@ -3,7 +3,7 @@ import t from "./SkipLink.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/SkipLink/SkipLink.tsx
6
+ // src/components/SkipLink/SkipLink.tsx
7
7
  function a(a) {
8
8
  let o = r(10), s, c, l;
9
9
  o[0] === a ? (s = o[1], c = o[2], l = o[3]) : ({children: s, className: c, ...l} = a, o[0] = a, o[1] = s, o[2] = c, o[3] = l);
@@ -17,5 +17,4 @@ function a(a) {
17
17
  children: s
18
18
  }), o[6] = s, o[7] = l, o[8] = u, o[9] = d) : d = o[9], d;
19
19
  }
20
- //#endregion
21
20
  export { a as SkipLink };
@@ -1,4 +1,3 @@
1
- import './SkipLink.css';//#region src/components/SkipLink/SkipLink.module.css
1
+ import './SkipLink.css';// src/components/SkipLink/SkipLink.module.css
2
2
  var e = "sui-skipLink-lRGho", t = { skipLink: e };
3
- //#endregion
4
3
  export { t as default, e as skipLink };
@@ -3,7 +3,7 @@ import t from "./Spinner.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/Spinner/Spinner.tsx
6
+ // src/components/Spinner/Spinner.tsx
7
7
  function a(a) {
8
8
  let o = r(5), { className: s } = a, c;
9
9
  o[0] === s ? c = o[1] : (c = n(t.spinner, s), o[0] = s, o[1] = c);
@@ -29,5 +29,4 @@ function a(a) {
29
29
  children: l
30
30
  }), o[3] = c, o[4] = u), u;
31
31
  }
32
- //#endregion
33
32
  export { a as Spinner };
@@ -1,8 +1,7 @@
1
- import './Spinner.css';//#region src/components/Spinner/Spinner.module.css
1
+ import './Spinner.css';// src/components/Spinner/Spinner.module.css
2
2
  var e = "sui-spinner-GpFZS", t = "sui-rotate-RRVpi", n = "sui-pulse-ZOhFR", r = {
3
3
  spinner: e,
4
4
  rotate: t,
5
5
  pulse: n
6
6
  };
7
- //#endregion
8
7
  export { r as default, n as pulse, t as rotate, e as spinner };
@@ -1,21 +1,20 @@
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 "./Stack.module.js";
6
6
  import { clsx as a } from "clsx";
7
7
  import { jsx as o } from "react/jsx-runtime";
8
- //#region src/components/Stack/Stack.tsx
8
+ // src/components/Stack/Stack.tsx
9
9
  function s({ align: s = "stretch", as: c, className: l, gap: u = 4, ...d }) {
10
10
  let { role: f, style: p, ...m } = d, h = c ?? "div";
11
- return /* @__PURE__ */ o(e, {
11
+ return /* @__PURE__ */ o(r, {
12
12
  ...m,
13
13
  as: h,
14
14
  className: a(i.stack, l),
15
- role: t(h, f),
16
- style: r({ "--sui-stack-gap": n(u) }, p),
15
+ role: e(h, f),
16
+ style: n({ "--sui-stack-gap": t(u) }, p),
17
17
  "data-align": s
18
18
  });
19
19
  }
20
- //#endregion
21
20
  export { s as Stack };
@@ -1,4 +1,3 @@
1
- import './Stack.css';//#region src/components/Stack/Stack.module.css
1
+ import './Stack.css';// src/components/Stack/Stack.module.css
2
2
  var e = "sui-stack-yUU-B", t = { stack: e };
3
- //#endregion
4
3
  export { t as default, e as stack };
@@ -2,7 +2,7 @@ import { Box as e } from "../Box/Box.js";
2
2
  import t from "./StatusDot.module.js";
3
3
  import { clsx as n } from "clsx";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
- //#region src/components/StatusDot/StatusDot.tsx
5
+ // src/components/StatusDot/StatusDot.tsx
6
6
  function i({ className: i, label: a, size: o = "md", tone: s = "neutral", variant: c = "solid", ...l }) {
7
7
  let u = !a;
8
8
  return /* @__PURE__ */ r(e, {
@@ -17,5 +17,4 @@ function i({ className: i, label: a, size: o = "md", tone: s = "neutral", varian
17
17
  "data-variant": c
18
18
  });
19
19
  }
20
- //#endregion
21
20
  export { i as StatusDot };