@krelborn/stylesui 0.0.0-stage → 0.8.1

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 (359) hide show
  1. package/LICENSE +74 -0
  2. package/README.md +129 -2
  3. package/dist/accessibility/RequiredAccessibleName.d.ts +26 -0
  4. package/dist/accessibility/idSegment.d.ts +7 -0
  5. package/dist/accessibility/idSegment.js +6 -0
  6. package/dist/accessibility/index.d.ts +2 -0
  7. package/dist/collections/index.d.ts +4 -0
  8. package/dist/collections/targetIndexForKey.d.ts +45 -0
  9. package/dist/collections/targetIndexForKey.js +17 -0
  10. package/dist/collections/typeAhead.d.ts +43 -0
  11. package/dist/collections/typeAhead.js +19 -0
  12. package/dist/components/Alert/Alert.css +1 -0
  13. package/dist/components/Alert/Alert.d.ts +47 -0
  14. package/dist/components/Alert/Alert.js +28 -0
  15. package/dist/components/Alert/Alert.module.js +9 -0
  16. package/dist/components/Alert/AlertIcon.d.ts +14 -0
  17. package/dist/components/Alert/AlertIcon.js +43 -0
  18. package/dist/components/Alert/index.d.ts +2 -0
  19. package/dist/components/Avatar/Avatar.css +1 -0
  20. package/dist/components/Avatar/Avatar.d.ts +33 -0
  21. package/dist/components/Avatar/Avatar.js +27 -0
  22. package/dist/components/Avatar/Avatar.module.js +7 -0
  23. package/dist/components/Avatar/index.d.ts +2 -0
  24. package/dist/components/Avatar/initialsOf.d.ts +9 -0
  25. package/dist/components/Avatar/initialsOf.js +10 -0
  26. package/dist/components/AvatarGroup/AvatarGroup.css +1 -0
  27. package/dist/components/AvatarGroup/AvatarGroup.d.ts +30 -0
  28. package/dist/components/AvatarGroup/AvatarGroup.js +34 -0
  29. package/dist/components/AvatarGroup/AvatarGroup.module.js +7 -0
  30. package/dist/components/AvatarGroup/index.d.ts +2 -0
  31. package/dist/components/Badge/Badge.css +1 -0
  32. package/dist/components/Badge/Badge.d.ts +36 -0
  33. package/dist/components/Badge/Badge.js +16 -0
  34. package/dist/components/Badge/Badge.module.js +4 -0
  35. package/dist/components/Badge/index.d.ts +2 -0
  36. package/dist/components/Box/Box.css +1 -0
  37. package/dist/components/Box/Box.d.ts +31 -0
  38. package/dist/components/Box/Box.js +18 -0
  39. package/dist/components/Box/Box.module.js +4 -0
  40. package/dist/components/Box/index.d.ts +2 -0
  41. package/dist/components/Button/Button.css +1 -0
  42. package/dist/components/Button/Button.d.ts +42 -0
  43. package/dist/components/Button/Button.js +29 -0
  44. package/dist/components/Button/Button.module.js +7 -0
  45. package/dist/components/Button/index.d.ts +2 -0
  46. package/dist/components/Card/Card.css +1 -0
  47. package/dist/components/Card/Card.d.ts +24 -0
  48. package/dist/components/Card/Card.js +15 -0
  49. package/dist/components/Card/Card.module.js +4 -0
  50. package/dist/components/Card/index.d.ts +2 -0
  51. package/dist/components/Center/Center.css +1 -0
  52. package/dist/components/Center/Center.d.ts +34 -0
  53. package/dist/components/Center/Center.js +20 -0
  54. package/dist/components/Center/Center.module.js +4 -0
  55. package/dist/components/Center/index.d.ts +2 -0
  56. package/dist/components/Checkbox/Checkbox.d.ts +23 -0
  57. package/dist/components/Checkbox/Checkbox.js +13 -0
  58. package/dist/components/Checkbox/index.d.ts +2 -0
  59. package/dist/components/ChoiceControl/ChoiceControl.css +1 -0
  60. package/dist/components/ChoiceControl/ChoiceControl.d.ts +21 -0
  61. package/dist/components/ChoiceControl/ChoiceControl.js +40 -0
  62. package/dist/components/ChoiceControl/ChoiceControl.module.js +9 -0
  63. package/dist/components/ChoiceControl/index.d.ts +1 -0
  64. package/dist/components/Cluster/Cluster.d.ts +29 -0
  65. package/dist/components/Cluster/Cluster.js +14 -0
  66. package/dist/components/Cluster/index.d.ts +2 -0
  67. package/dist/components/Code/Code.css +1 -0
  68. package/dist/components/Code/Code.d.ts +13 -0
  69. package/dist/components/Code/Code.js +20 -0
  70. package/dist/components/Code/Code.module.js +4 -0
  71. package/dist/components/Code/index.d.ts +2 -0
  72. package/dist/components/Counter/Counter.css +1 -0
  73. package/dist/components/Counter/Counter.d.ts +39 -0
  74. package/dist/components/Counter/Counter.js +19 -0
  75. package/dist/components/Counter/Counter.module.js +4 -0
  76. package/dist/components/Counter/index.d.ts +2 -0
  77. package/dist/components/Cover/Cover.css +1 -0
  78. package/dist/components/Cover/Cover.d.ts +40 -0
  79. package/dist/components/Cover/Cover.js +30 -0
  80. package/dist/components/Cover/Cover.module.js +7 -0
  81. package/dist/components/Cover/index.d.ts +2 -0
  82. package/dist/components/Divider/Divider.css +1 -0
  83. package/dist/components/Divider/Divider.d.ts +25 -0
  84. package/dist/components/Divider/Divider.js +16 -0
  85. package/dist/components/Divider/Divider.module.js +4 -0
  86. package/dist/components/Divider/index.d.ts +2 -0
  87. package/dist/components/Field/Field.css +1 -0
  88. package/dist/components/Field/Field.d.ts +49 -0
  89. package/dist/components/Field/Field.js +48 -0
  90. package/dist/components/Field/Field.module.js +9 -0
  91. package/dist/components/Field/index.d.ts +2 -0
  92. package/dist/components/Fieldset/Fieldset.css +1 -0
  93. package/dist/components/Fieldset/Fieldset.d.ts +35 -0
  94. package/dist/components/Fieldset/Fieldset.js +65 -0
  95. package/dist/components/Fieldset/Fieldset.module.js +9 -0
  96. package/dist/components/Fieldset/index.d.ts +2 -0
  97. package/dist/components/Frame/Frame.css +1 -0
  98. package/dist/components/Frame/Frame.d.ts +23 -0
  99. package/dist/components/Frame/Frame.js +17 -0
  100. package/dist/components/Frame/Frame.module.js +4 -0
  101. package/dist/components/Frame/index.d.ts +2 -0
  102. package/dist/components/Grid/Grid.css +1 -0
  103. package/dist/components/Grid/Grid.d.ts +25 -0
  104. package/dist/components/Grid/Grid.js +23 -0
  105. package/dist/components/Grid/Grid.module.js +4 -0
  106. package/dist/components/Grid/index.d.ts +2 -0
  107. package/dist/components/Heading/Heading.css +1 -0
  108. package/dist/components/Heading/Heading.d.ts +39 -0
  109. package/dist/components/Heading/Heading.js +24 -0
  110. package/dist/components/Heading/Heading.module.js +4 -0
  111. package/dist/components/Heading/index.d.ts +2 -0
  112. package/dist/components/HorizontalFlow/HorizontalFlow.css +1 -0
  113. package/dist/components/HorizontalFlow/HorizontalFlow.d.ts +30 -0
  114. package/dist/components/HorizontalFlow/HorizontalFlow.js +31 -0
  115. package/dist/components/HorizontalFlow/HorizontalFlow.module.js +4 -0
  116. package/dist/components/HorizontalFlow/index.d.ts +2 -0
  117. package/dist/components/Icon/AddIcon.d.ts +11 -0
  118. package/dist/components/Icon/AddIcon.js +22 -0
  119. package/dist/components/Icon/ChevronDownIcon.d.ts +11 -0
  120. package/dist/components/Icon/ChevronDownIcon.js +19 -0
  121. package/dist/components/Icon/CloseIcon.d.ts +12 -0
  122. package/dist/components/Icon/CloseIcon.js +22 -0
  123. package/dist/components/Icon/ColorModeIcon.d.ts +12 -0
  124. package/dist/components/Icon/ColorModeIcon.js +37 -0
  125. package/dist/components/Icon/DeleteIcon.d.ts +11 -0
  126. package/dist/components/Icon/DeleteIcon.js +37 -0
  127. package/dist/components/Icon/Icon.css +1 -0
  128. package/dist/components/Icon/Icon.d.ts +40 -0
  129. package/dist/components/Icon/Icon.js +28 -0
  130. package/dist/components/Icon/Icon.module.js +7 -0
  131. package/dist/components/Icon/InfoIcon.d.ts +11 -0
  132. package/dist/components/Icon/InfoIcon.js +31 -0
  133. package/dist/components/Icon/MoreHorizontalIcon.d.ts +11 -0
  134. package/dist/components/Icon/MoreHorizontalIcon.js +35 -0
  135. package/dist/components/Icon/MoreVerticalIcon.d.ts +11 -0
  136. package/dist/components/Icon/MoreVerticalIcon.js +35 -0
  137. package/dist/components/Icon/PaletteIcon.d.ts +12 -0
  138. package/dist/components/Icon/PaletteIcon.js +49 -0
  139. package/dist/components/Icon/RefreshIcon.d.ts +13 -0
  140. package/dist/components/Icon/RefreshIcon.js +33 -0
  141. package/dist/components/Icon/RemoveIcon.d.ts +11 -0
  142. package/dist/components/Icon/RemoveIcon.js +19 -0
  143. package/dist/components/Icon/SendIcon.d.ts +11 -0
  144. package/dist/components/Icon/SendIcon.js +23 -0
  145. package/dist/components/Icon/index.d.ts +13 -0
  146. package/dist/components/IconButton/IconButton.css +1 -0
  147. package/dist/components/IconButton/IconButton.d.ts +45 -0
  148. package/dist/components/IconButton/IconButton.js +41 -0
  149. package/dist/components/IconButton/IconButton.module.js +8 -0
  150. package/dist/components/IconButton/index.d.ts +2 -0
  151. package/dist/components/Kbd/Kbd.css +1 -0
  152. package/dist/components/Kbd/Kbd.d.ts +13 -0
  153. package/dist/components/Kbd/Kbd.js +20 -0
  154. package/dist/components/Kbd/Kbd.module.js +4 -0
  155. package/dist/components/Kbd/index.d.ts +2 -0
  156. package/dist/components/Link/Link.css +1 -0
  157. package/dist/components/Link/Link.d.ts +52 -0
  158. package/dist/components/Link/Link.js +27 -0
  159. package/dist/components/Link/Link.module.js +4 -0
  160. package/dist/components/Link/index.d.ts +2 -0
  161. package/dist/components/Listbox/Listbox.css +1 -0
  162. package/dist/components/Listbox/Listbox.d.ts +46 -0
  163. package/dist/components/Listbox/Listbox.js +56 -0
  164. package/dist/components/Listbox/Listbox.module.js +7 -0
  165. package/dist/components/Listbox/ListboxContext.d.ts +38 -0
  166. package/dist/components/Listbox/ListboxContext.js +5 -0
  167. package/dist/components/Listbox/ListboxOption.d.ts +31 -0
  168. package/dist/components/Listbox/ListboxOption.js +43 -0
  169. package/dist/components/Listbox/index.d.ts +4 -0
  170. package/dist/components/Listbox/optionId.d.ts +8 -0
  171. package/dist/components/Listbox/optionId.js +7 -0
  172. package/dist/components/Listbox/renderedOptions.d.ts +30 -0
  173. package/dist/components/Listbox/renderedOptions.js +15 -0
  174. package/dist/components/Listbox/useListbox.d.ts +54 -0
  175. package/dist/components/Listbox/useListbox.js +104 -0
  176. package/dist/components/Listbox/useListboxContext.d.ts +9 -0
  177. package/dist/components/Listbox/useListboxContext.js +11 -0
  178. package/dist/components/NavList/NavList.css +1 -0
  179. package/dist/components/NavList/NavList.d.ts +20 -0
  180. package/dist/components/NavList/NavList.js +28 -0
  181. package/dist/components/NavList/NavList.module.js +12 -0
  182. package/dist/components/NavList/NavListGroup.d.ts +25 -0
  183. package/dist/components/NavList/NavListGroup.js +40 -0
  184. package/dist/components/NavList/NavListItem.d.ts +53 -0
  185. package/dist/components/NavList/NavListItem.js +57 -0
  186. package/dist/components/NavList/index.d.ts +6 -0
  187. package/dist/components/Overlay/Overlay.css +1 -0
  188. package/dist/components/Overlay/Overlay.d.ts +33 -0
  189. package/dist/components/Overlay/Overlay.js +36 -0
  190. package/dist/components/Overlay/Overlay.module.js +4 -0
  191. package/dist/components/Overlay/index.d.ts +1 -0
  192. package/dist/components/PageLayout/PageLayout.css +1 -0
  193. package/dist/components/PageLayout/PageLayout.d.ts +26 -0
  194. package/dist/components/PageLayout/PageLayout.js +18 -0
  195. package/dist/components/PageLayout/PageLayout.module.js +4 -0
  196. package/dist/components/PageLayout/index.d.ts +2 -0
  197. package/dist/components/Popover/Popover.css +1 -0
  198. package/dist/components/Popover/Popover.d.ts +52 -0
  199. package/dist/components/Popover/Popover.js +21 -0
  200. package/dist/components/Popover/Popover.module.js +4 -0
  201. package/dist/components/Popover/index.d.ts +4 -0
  202. package/dist/components/Popover/usePopover.d.ts +96 -0
  203. package/dist/components/Popover/usePopover.js +66 -0
  204. package/dist/components/Prose/Prose.css +1 -0
  205. package/dist/components/Prose/Prose.d.ts +50 -0
  206. package/dist/components/Prose/Prose.js +16 -0
  207. package/dist/components/Prose/Prose.module.js +4 -0
  208. package/dist/components/Prose/index.d.ts +2 -0
  209. package/dist/components/Radio/Radio.d.ts +29 -0
  210. package/dist/components/Radio/Radio.js +24 -0
  211. package/dist/components/Radio/index.d.ts +2 -0
  212. package/dist/components/RadioGroup/RadioGroup.css +1 -0
  213. package/dist/components/RadioGroup/RadioGroup.d.ts +58 -0
  214. package/dist/components/RadioGroup/RadioGroup.js +37 -0
  215. package/dist/components/RadioGroup/RadioGroup.module.js +4 -0
  216. package/dist/components/RadioGroup/index.d.ts +2 -0
  217. package/dist/components/RequiredIndicator/RequiredIndicator.css +1 -0
  218. package/dist/components/RequiredIndicator/RequiredIndicator.d.ts +6 -0
  219. package/dist/components/RequiredIndicator/RequiredIndicator.js +16 -0
  220. package/dist/components/RequiredIndicator/RequiredIndicator.module.js +4 -0
  221. package/dist/components/RequiredIndicator/index.d.ts +1 -0
  222. package/dist/components/Row/Row.d.ts +29 -0
  223. package/dist/components/Row/Row.js +14 -0
  224. package/dist/components/Row/index.d.ts +2 -0
  225. package/dist/components/SegmentedControl/Segment.d.ts +24 -0
  226. package/dist/components/SegmentedControl/Segment.js +42 -0
  227. package/dist/components/SegmentedControl/SegmentedControl.css +1 -0
  228. package/dist/components/SegmentedControl/SegmentedControl.d.ts +25 -0
  229. package/dist/components/SegmentedControl/SegmentedControl.js +20 -0
  230. package/dist/components/SegmentedControl/SegmentedControl.module.js +10 -0
  231. package/dist/components/SegmentedControl/index.d.ts +4 -0
  232. package/dist/components/Select/Select.d.ts +27 -0
  233. package/dist/components/Select/Select.js +12 -0
  234. package/dist/components/Select/index.d.ts +2 -0
  235. package/dist/components/Sidebar/Sidebar.css +1 -0
  236. package/dist/components/Sidebar/Sidebar.d.ts +42 -0
  237. package/dist/components/Sidebar/Sidebar.js +24 -0
  238. package/dist/components/Sidebar/Sidebar.module.js +4 -0
  239. package/dist/components/Sidebar/index.d.ts +2 -0
  240. package/dist/components/SkipLink/SkipLink.css +1 -0
  241. package/dist/components/SkipLink/SkipLink.d.ts +20 -0
  242. package/dist/components/SkipLink/SkipLink.js +21 -0
  243. package/dist/components/SkipLink/SkipLink.module.js +4 -0
  244. package/dist/components/SkipLink/index.d.ts +2 -0
  245. package/dist/components/Spinner/Spinner.css +1 -0
  246. package/dist/components/Spinner/Spinner.d.ts +13 -0
  247. package/dist/components/Spinner/Spinner.js +33 -0
  248. package/dist/components/Spinner/Spinner.module.js +8 -0
  249. package/dist/components/Spinner/index.d.ts +1 -0
  250. package/dist/components/Stack/Stack.css +1 -0
  251. package/dist/components/Stack/Stack.d.ts +25 -0
  252. package/dist/components/Stack/Stack.js +21 -0
  253. package/dist/components/Stack/Stack.module.js +4 -0
  254. package/dist/components/Stack/index.d.ts +2 -0
  255. package/dist/components/StatusDot/StatusDot.css +1 -0
  256. package/dist/components/StatusDot/StatusDot.d.ts +57 -0
  257. package/dist/components/StatusDot/StatusDot.js +21 -0
  258. package/dist/components/StatusDot/StatusDot.module.js +4 -0
  259. package/dist/components/StatusDot/index.d.ts +2 -0
  260. package/dist/components/Switch/Switch.d.ts +24 -0
  261. package/dist/components/Switch/Switch.js +13 -0
  262. package/dist/components/Switch/index.d.ts +2 -0
  263. package/dist/components/Switcher/Switcher.css +1 -0
  264. package/dist/components/Switcher/Switcher.d.ts +27 -0
  265. package/dist/components/Switcher/Switcher.js +23 -0
  266. package/dist/components/Switcher/Switcher.module.js +4 -0
  267. package/dist/components/Switcher/index.d.ts +2 -0
  268. package/dist/components/Tabs/Tab.d.ts +26 -0
  269. package/dist/components/Tabs/Tab.js +61 -0
  270. package/dist/components/Tabs/TabList.d.ts +16 -0
  271. package/dist/components/Tabs/TabList.js +23 -0
  272. package/dist/components/Tabs/TabPanel.d.ts +24 -0
  273. package/dist/components/Tabs/TabPanel.js +22 -0
  274. package/dist/components/Tabs/Tabs.css +1 -0
  275. package/dist/components/Tabs/Tabs.d.ts +81 -0
  276. package/dist/components/Tabs/Tabs.js +31 -0
  277. package/dist/components/Tabs/Tabs.module.js +9 -0
  278. package/dist/components/Tabs/TabsContext.d.ts +39 -0
  279. package/dist/components/Tabs/TabsContext.js +5 -0
  280. package/dist/components/Tabs/index.d.ts +8 -0
  281. package/dist/components/Tabs/tabIds.d.ts +16 -0
  282. package/dist/components/Tabs/tabIds.js +10 -0
  283. package/dist/components/Tabs/useTabsContext.d.ts +9 -0
  284. package/dist/components/Tabs/useTabsContext.js +11 -0
  285. package/dist/components/Text/Text.css +1 -0
  286. package/dist/components/Text/Text.d.ts +40 -0
  287. package/dist/components/Text/Text.js +17 -0
  288. package/dist/components/Text/Text.module.js +4 -0
  289. package/dist/components/Text/index.d.ts +2 -0
  290. package/dist/components/TextControl/TextControl.css +1 -0
  291. package/dist/components/TextControl/TextControl.d.ts +22 -0
  292. package/dist/components/TextControl/TextControl.js +23 -0
  293. package/dist/components/TextControl/TextControl.module.js +4 -0
  294. package/dist/components/TextControl/index.d.ts +1 -0
  295. package/dist/components/TextInput/TextInput.d.ts +31 -0
  296. package/dist/components/TextInput/TextInput.js +13 -0
  297. package/dist/components/TextInput/index.d.ts +2 -0
  298. package/dist/components/Textarea/Textarea.d.ts +24 -0
  299. package/dist/components/Textarea/Textarea.js +12 -0
  300. package/dist/components/Textarea/index.d.ts +2 -0
  301. package/dist/components/Theme/Theme.d.ts +46 -0
  302. package/dist/components/Theme/Theme.js +18 -0
  303. package/dist/components/Theme/index.d.ts +2 -0
  304. package/dist/components/Tooltip/Tooltip.css +1 -0
  305. package/dist/components/Tooltip/Tooltip.d.ts +49 -0
  306. package/dist/components/Tooltip/Tooltip.js +22 -0
  307. package/dist/components/Tooltip/Tooltip.module.js +4 -0
  308. package/dist/components/Tooltip/index.d.ts +4 -0
  309. package/dist/components/Tooltip/tooltipCoordinator.d.ts +14 -0
  310. package/dist/components/Tooltip/tooltipCoordinator.js +17 -0
  311. package/dist/components/Tooltip/useTooltip.d.ts +119 -0
  312. package/dist/components/Tooltip/useTooltip.js +74 -0
  313. package/dist/components/VisuallyHidden/VisuallyHidden.css +1 -0
  314. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +14 -0
  315. package/dist/components/VisuallyHidden/VisuallyHidden.js +20 -0
  316. package/dist/components/VisuallyHidden/VisuallyHidden.module.js +4 -0
  317. package/dist/components/VisuallyHidden/index.d.ts +2 -0
  318. package/dist/errors/MissingContextError.d.ts +11 -0
  319. package/dist/errors/MissingContextError.js +9 -0
  320. package/dist/errors/PopoverRefusedError.d.ts +12 -0
  321. package/dist/errors/PopoverRefusedError.js +9 -0
  322. package/dist/errors/index.d.ts +2 -0
  323. package/dist/forms/ControlSize.d.ts +4 -0
  324. package/dist/forms/FieldContext.d.ts +29 -0
  325. package/dist/forms/FieldContext.js +5 -0
  326. package/dist/forms/RadioGroupContext.d.ts +34 -0
  327. package/dist/forms/RadioGroupContext.js +5 -0
  328. package/dist/forms/hasContent.d.ts +10 -0
  329. package/dist/forms/hasContent.js +7 -0
  330. package/dist/forms/index.d.ts +8 -0
  331. package/dist/forms/useFieldControl.d.ts +36 -0
  332. package/dist/forms/useFieldControl.js +29 -0
  333. package/dist/forms/useRadioGroupItem.d.ts +50 -0
  334. package/dist/forms/useRadioGroupItem.js +27 -0
  335. package/dist/index.d.ts +95 -0
  336. package/dist/index.js +67 -0
  337. package/dist/layout/Space.d.ts +4 -0
  338. package/dist/layout/alignment.d.ts +8 -0
  339. package/dist/layout/index.d.ts +5 -0
  340. package/dist/layout/listRole.d.ts +11 -0
  341. package/dist/layout/listRole.js +6 -0
  342. package/dist/layout/spaceValue.d.ts +8 -0
  343. package/dist/layout/spaceValue.js +6 -0
  344. package/dist/layout/withCustomProperties.d.ts +9 -0
  345. package/dist/layout/withCustomProperties.js +9 -0
  346. package/dist/overlays/OverlayDelay.d.ts +13 -0
  347. package/dist/overlays/OverlayPlacement.d.ts +6 -0
  348. package/dist/overlays/anchorNameFor.d.ts +7 -0
  349. package/dist/overlays/anchorNameFor.js +6 -0
  350. package/dist/overlays/index.d.ts +6 -0
  351. package/dist/overlays/mergeProps.d.ts +13 -0
  352. package/dist/overlays/mergeProps.js +30 -0
  353. package/dist/overlays/syncPopover.d.ts +11 -0
  354. package/dist/overlays/syncPopover.js +25 -0
  355. package/dist/overlays/useOverlay.d.ts +71 -0
  356. package/dist/overlays/useOverlay.js +56 -0
  357. package/dist/styles.css +1 -0
  358. package/fonts/playful.css +3 -0
  359. package/package.json +103 -3
@@ -0,0 +1 @@
1
+ .sui-code-arLxg{padding:0 var(--sui-space-1,.25rem);border-radius:var(--sui-radius-sm,2px);background-color:var(--sui-color-sunken,#f3f4f6);color:var(--sui-color-text,#111827);font-family:var(--sui-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);overflow-wrap:anywhere;font-size:.875em}
@@ -0,0 +1,13 @@
1
+ import type { JSX } from "react";
2
+ import type { BoxProps } from "../Box";
3
+ /**
4
+ * Props for `Code`: every native `code` prop
5
+ */
6
+ export type CodeProps = Omit<BoxProps<"code">, "as">;
7
+ /**
8
+ * Inline code, such as a command, a file name or a value, in the theme's monospace font on the sunken colour
9
+ *
10
+ * @example
11
+ * <Text as="p">Run <Code>pnpm install</Code> first.</Text>
12
+ */
13
+ export declare function Code({ className, ...rest }: CodeProps): JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { Box as e } from "../Box/Box.js";
2
+ import t from "./Code.module.js";
3
+ import { clsx as n } from "clsx";
4
+ import { c as r } from "react/compiler-runtime";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ //#region src/components/Code/Code.tsx
7
+ function a(a) {
8
+ let o = r(8), s, c;
9
+ o[0] === a ? (s = o[1], c = o[2]) : ({className: s, ...c} = a, o[0] = a, o[1] = s, o[2] = c);
10
+ let l;
11
+ o[3] === s ? l = o[4] : (l = n(t.code, s), o[3] = s, o[4] = l);
12
+ let u;
13
+ return o[5] !== c || o[6] !== l ? (u = /* @__PURE__ */ i(e, {
14
+ ...c,
15
+ as: "code",
16
+ className: l
17
+ }), o[5] = c, o[6] = l, o[7] = u) : u = o[7], u;
18
+ }
19
+ //#endregion
20
+ export { a as Code };
@@ -0,0 +1,4 @@
1
+ import './Code.css';//#region src/components/Code/Code.module.css
2
+ var e = "sui-code-arLxg", t = { code: e };
3
+ //#endregion
4
+ export { e as code, t as default };
@@ -0,0 +1,2 @@
1
+ export { Code } from "./Code";
2
+ export type { CodeProps } from "./Code";
@@ -0,0 +1 @@
1
+ .sui-counter-ESMMm[data-variant]{min-block-size:1.25rem;min-inline-size:1.25rem;padding:0 var(--sui-space-1,.25rem);border-radius:var(--sui-radius-full,9999px);font-variant-numeric:tabular-nums;white-space:nowrap;justify-content:center;line-height:1}
@@ -0,0 +1,39 @@
1
+ import type { JSX } from "react";
2
+ import type { BadgeTone, BadgeVariant } from "../Badge";
3
+ import type { BoxProps } from "../Box";
4
+ /**
5
+ * Props for `Counter`: its own props plus every `span` prop except `children`
6
+ */
7
+ export interface CounterProps extends Omit<BoxProps<"span">, "as" | "children" | "dangerouslySetInnerHTML"> {
8
+ /**
9
+ * Whether the count is only a lower bound, which adds "+" after it, as in "30+". Defaults to `false`.
10
+ */
11
+ capped?: boolean;
12
+ /**
13
+ * The number shown. Below 1 the counter renders nothing.
14
+ */
15
+ count: number;
16
+ /**
17
+ * Words screen readers read after the count, hidden on screen, so that "3" reads as "3 new"
18
+ */
19
+ hiddenSuffix?: string;
20
+ /**
21
+ * The largest count shown, at least 1. A count above it shows as the maximum followed by "+", as in "99+".
22
+ */
23
+ max?: number;
24
+ /**
25
+ * Colour, from Badge's tones. Defaults to `neutral`.
26
+ */
27
+ tone?: BadgeTone;
28
+ /**
29
+ * Style, from Badge's variants. Defaults to `subtle`.
30
+ */
31
+ variant?: BadgeVariant;
32
+ }
33
+ /**
34
+ * A small pill showing a count, such as the unread items in a list. It renders nothing for a count below 1.
35
+ *
36
+ * @example
37
+ * <Counter count={unread} hiddenSuffix="unread" max={99} tone="primary" variant="solid" />
38
+ */
39
+ export declare function Counter({ capped, className, count, hiddenSuffix, max, tone, variant, ...rest }: CounterProps): JSX.Element | null;
@@ -0,0 +1,19 @@
1
+ import { VisuallyHidden as e } from "../VisuallyHidden/VisuallyHidden.js";
2
+ import { Badge as t } from "../Badge/Badge.js";
3
+ import n from "./Counter.module.js";
4
+ import { clsx as r } from "clsx";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ //#region src/components/Counter/Counter.tsx
7
+ function o({ capped: o = !1, className: s, count: c, hiddenSuffix: l, max: u, tone: d = "neutral", variant: f = "subtle", ...p }) {
8
+ if (!(c >= 1)) return null;
9
+ let m = u !== void 0 && c > u, h = m ? u : c;
10
+ return /* @__PURE__ */ a(t, {
11
+ ...p,
12
+ className: r(n.counter, s),
13
+ tone: d,
14
+ variant: f,
15
+ children: [m || o ? `${h}+` : h, l !== void 0 && /* @__PURE__ */ i(e, { children: ` ${l}` })]
16
+ });
17
+ }
18
+ //#endregion
19
+ export { o as Counter };
@@ -0,0 +1,4 @@
1
+ import './Counter.css';//#region src/components/Counter/Counter.module.css
2
+ var e = "sui-counter-ESMMm", t = { counter: e };
3
+ //#endregion
4
+ export { e as counter, t as default };
@@ -0,0 +1,2 @@
1
+ export { Counter } from "./Counter";
2
+ export type { CounterProps } from "./Counter";
@@ -0,0 +1 @@
1
+ .sui-cover-qYwGB{gap:var(--sui-cover-gap);min-block-size:var(--sui-cover-minimum-height);padding:var(--sui-cover-padding);flex-direction:column;display:flex}.sui-principal-tixG4{margin-block:auto}
@@ -0,0 +1,40 @@
1
+ import type { JSX, ReactNode } from "react";
2
+ import type { Space } from "../../layout";
3
+ import type { BoxElement, BoxProps } from "../Box";
4
+ interface CoverOwnProps {
5
+ /**
6
+ * Content pinned to the bottom of the cover
7
+ */
8
+ bottom?: ReactNode;
9
+ /**
10
+ * Minimum space between the top, centred and bottom content. Defaults to `4`.
11
+ */
12
+ gap?: Space;
13
+ /**
14
+ * Minimum height of the cover, as a CSS length. Defaults to `100dvh`.
15
+ */
16
+ minimumHeight?: string;
17
+ /**
18
+ * Space inside the cover's edges. Defaults to `4`.
19
+ */
20
+ padding?: Space;
21
+ /**
22
+ * Content pinned to the top of the cover
23
+ */
24
+ top?: ReactNode;
25
+ }
26
+ /**
27
+ * Props for `Cover`: its own props plus every prop supported by the element given in `as`
28
+ */
29
+ export type CoverProps<E extends BoxElement = "div"> = CoverOwnProps & Omit<BoxProps<E>, keyof CoverOwnProps>;
30
+ /**
31
+ * Minimum-height area that vertically centres its children, with optional content pinned above
32
+ * and below. The children render inside a `div`.
33
+ *
34
+ * @example
35
+ * <Cover as="section" minimumHeight="60vh" top={<Text>Featured</Text>} aria-label="Welcome">
36
+ * <Heading level={1}>Notes on layout</Heading>
37
+ * </Cover>
38
+ */
39
+ export declare function Cover<E extends BoxElement = "div">({ as, bottom, className, gap, minimumHeight, padding, top, ...rest }: CoverProps<E>): JSX.Element;
40
+ export {};
@@ -0,0 +1,30 @@
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";
4
+ import r from "./Cover.module.js";
5
+ import { clsx as i } from "clsx";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ //#region src/components/Cover/Cover.tsx
8
+ function s({ as: s, bottom: c, className: l, gap: u = 4, minimumHeight: d = "100dvh", padding: f = 4, top: p, ...m }) {
9
+ let { children: h, style: g, ..._ } = m;
10
+ return /* @__PURE__ */ o(e, {
11
+ ..._,
12
+ as: s,
13
+ className: i(r.cover, l),
14
+ style: n({
15
+ "--sui-cover-gap": t(u),
16
+ "--sui-cover-minimum-height": d,
17
+ "--sui-cover-padding": t(f)
18
+ }, g),
19
+ children: [
20
+ p,
21
+ /* @__PURE__ */ a("div", {
22
+ className: r.principal,
23
+ children: h
24
+ }),
25
+ c
26
+ ]
27
+ });
28
+ }
29
+ //#endregion
30
+ export { s as Cover };
@@ -0,0 +1,7 @@
1
+ import './Cover.css';//#region src/components/Cover/Cover.module.css
2
+ var e = "sui-cover-qYwGB", t = "sui-principal-tixG4", n = {
3
+ cover: e,
4
+ principal: t
5
+ };
6
+ //#endregion
7
+ export { e as cover, n as default, t as principal };
@@ -0,0 +1,2 @@
1
+ export { Cover } from "./Cover";
2
+ export type { CoverProps } from "./Cover";
@@ -0,0 +1 @@
1
+ .sui-divider-KSGsi{--sui-divider-color:var(--sui-color-border,#d1d5db);--sui-divider-width:var(--sui-border-width,1px);border:0;margin:0}.sui-divider-KSGsi[data-orientation=horizontal]{border-block-start:var(--sui-divider-width) solid var(--sui-divider-color);inline-size:100%}.sui-divider-KSGsi[data-orientation=vertical]{border-inline-start:var(--sui-divider-width) solid var(--sui-divider-color);align-self:stretch;inline-size:0}
@@ -0,0 +1,25 @@
1
+ import type { JSX } from "react";
2
+ import type { BoxProps } from "../Box";
3
+ /**
4
+ * Direction a divider runs: `horizontal` between stacked content, `vertical` between items in a row
5
+ */
6
+ export type DividerOrientation = "horizontal" | "vertical";
7
+ /**
8
+ * Props for `Divider`: its own props plus every native hr prop
9
+ */
10
+ export interface DividerProps extends Omit<BoxProps<"hr">, "as" | "children" | "dangerouslySetInnerHTML"> {
11
+ /**
12
+ * Direction the divider runs. A vertical divider needs a flex row to stretch. Defaults to `horizontal`.
13
+ */
14
+ orientation?: DividerOrientation;
15
+ }
16
+ /**
17
+ * Thin rule that separates content, exposed to assistive technology as a separator
18
+ *
19
+ * The rule is decorative and its colour is not held to 3:1 contrast. Where it is the only visible sign of a break,
20
+ * set `--sui-divider-color: var(--sui-color-input-border)`.
21
+ *
22
+ * @example
23
+ * <Divider />
24
+ */
25
+ export declare function Divider({ className, orientation, ...rest }: DividerProps): JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { Box as e } from "../Box/Box.js";
2
+ import t from "./Divider.module.js";
3
+ import { clsx as n } from "clsx";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ //#region src/components/Divider/Divider.tsx
6
+ function i({ className: i, orientation: a = "horizontal", ...o }) {
7
+ return /* @__PURE__ */ r(e, {
8
+ ...o,
9
+ as: "hr",
10
+ className: n(t.divider, i),
11
+ "aria-orientation": a === "vertical" ? "vertical" : void 0,
12
+ "data-orientation": a
13
+ });
14
+ }
15
+ //#endregion
16
+ export { i as Divider };
@@ -0,0 +1,4 @@
1
+ import './Divider.css';//#region src/components/Divider/Divider.module.css
2
+ var e = "sui-divider-KSGsi", t = { divider: e };
3
+ //#endregion
4
+ export { t as default, e as divider };
@@ -0,0 +1,2 @@
1
+ export { Divider } from "./Divider";
2
+ export type { DividerOrientation, DividerProps } from "./Divider";
@@ -0,0 +1 @@
1
+ .sui-field-m7I4B{--sui-field-gap:var(--sui-space-1,.25rem);gap:var(--sui-field-gap);font-family:var(--sui-font-body,system-ui, sans-serif);line-height:var(--sui-line-height-normal,1.5);flex-direction:column;display:flex}.sui-label-LAQio{font-weight:var(--sui-font-weight-control,500)}.sui-field-m7I4B[data-disabled] .sui-label-LAQio,fieldset:disabled .sui-label-LAQio{opacity:.5}.sui-description-yqljW{color:var(--sui-color-text-muted,#4b5563);font-size:var(--sui-font-size-sm,.875rem)}.sui-error-m0uol{color:var(--sui-color-danger-text,#b91c1c);font-size:var(--sui-font-size-sm,.875rem)}
@@ -0,0 +1,49 @@
1
+ import type { JSX, ReactNode } from "react";
2
+ import type { BoxProps } from "../Box";
3
+ /**
4
+ * Elements a `Field` can render: block containers that can hold its label, description, control and error
5
+ */
6
+ export type FieldElement = "div" | "li" | "section";
7
+ interface FieldOwnProps {
8
+ /**
9
+ * `id` of the control, which the label points at. Wins over an `id` set on the control. Defaults to a
10
+ * generated id.
11
+ */
12
+ controlId?: string;
13
+ /**
14
+ * Supporting text shown between the label and the control, linked to the control with `aria-describedby`
15
+ */
16
+ description?: ReactNode;
17
+ /**
18
+ * Disables the control and dims the label. Defaults to `false`.
19
+ */
20
+ disabled?: boolean;
21
+ /**
22
+ * Error message shown below the control. Marks the control `aria-invalid` and is linked to it with
23
+ * `aria-describedby`. It is not a live region.
24
+ */
25
+ error?: ReactNode;
26
+ /**
27
+ * Label for the control. Omit only for a control that labels itself.
28
+ */
29
+ label?: ReactNode;
30
+ /**
31
+ * Sets `required` on the control and adds an `aria-hidden` asterisk to the label. Defaults to `false`.
32
+ */
33
+ required?: boolean;
34
+ }
35
+ /**
36
+ * Props for `Field`: its own props plus every prop supported by the element given in `as`
37
+ */
38
+ export type FieldProps<E extends FieldElement = "div"> = FieldOwnProps & Omit<BoxProps<E>, keyof FieldOwnProps>;
39
+ /**
40
+ * Wraps one form control with a label, a description and an error message, and links them to the control so the
41
+ * label and error association is written once. Renders the label, description, control and error in that order.
42
+ *
43
+ * @example
44
+ * <Field description="We only use it to send receipts" label="Email" required={true}>
45
+ * <TextInput />
46
+ * </Field>
47
+ */
48
+ export declare function Field<E extends FieldElement = "div">({ as, className, controlId, description, disabled, error, label, required, ...rest }: FieldProps<E>): JSX.Element;
49
+ export {};
@@ -0,0 +1,48 @@
1
+ import { FieldContext as e } from "../../forms/FieldContext.js";
2
+ import { hasContent as t } from "../../forms/hasContent.js";
3
+ import { Box as n } from "../Box/Box.js";
4
+ import { RequiredIndicator as r } from "../RequiredIndicator/RequiredIndicator.js";
5
+ import i from "./Field.module.js";
6
+ import { clsx as a } from "clsx";
7
+ import { useId as o } from "react";
8
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
+ //#region src/components/Field/Field.tsx
10
+ function l({ as: l, className: u, controlId: d, description: f, disabled: p = !1, error: m, label: h, required: g = !1, ..._ }) {
11
+ let { children: v, ...y } = _, b = o(), x = `${b}-description`, S = `${b}-error`, C = t(f), w = t(m), T = [C && x, w && S].filter(Boolean).join(" "), E = {
12
+ controlId: d ?? b,
13
+ describedBy: T === "" ? void 0 : T,
14
+ disabled: p,
15
+ invalid: w,
16
+ required: g
17
+ };
18
+ return /* @__PURE__ */ c(n, {
19
+ ...y,
20
+ as: l,
21
+ className: a(i.field, u),
22
+ "data-disabled": p ? "" : void 0,
23
+ children: [
24
+ t(h) && /* @__PURE__ */ c(n, {
25
+ as: "label",
26
+ className: i.label,
27
+ htmlFor: E.controlId,
28
+ children: [h, g && /* @__PURE__ */ s(r, {})]
29
+ }),
30
+ C && /* @__PURE__ */ s(n, {
31
+ className: i.description,
32
+ id: x,
33
+ children: f
34
+ }),
35
+ /* @__PURE__ */ s(e.Provider, {
36
+ value: E,
37
+ children: v
38
+ }),
39
+ w && /* @__PURE__ */ s(n, {
40
+ className: i.error,
41
+ id: S,
42
+ children: m
43
+ })
44
+ ]
45
+ });
46
+ }
47
+ //#endregion
48
+ export { l as Field };
@@ -0,0 +1,9 @@
1
+ import './Field.css';//#region src/components/Field/Field.module.css
2
+ var e = "sui-field-m7I4B", t = "sui-label-LAQio", n = "sui-description-yqljW", r = "sui-error-m0uol", i = {
3
+ field: e,
4
+ label: t,
5
+ description: n,
6
+ error: r
7
+ };
8
+ //#endregion
9
+ export { i as default, n as description, r as error, e as field, t as label };
@@ -0,0 +1,2 @@
1
+ export { Field } from "./Field";
2
+ export type { FieldElement, FieldProps } from "./Field";
@@ -0,0 +1 @@
1
+ .sui-fieldset-XI428{--sui-fieldset-gap:var(--sui-space-1,.25rem);gap:var(--sui-fieldset-gap);min-inline-size:0;font-family:var(--sui-font-body,system-ui, sans-serif);line-height:var(--sui-line-height-normal,1.5);border:0;flex-direction:column;padding:0;display:flex}.sui-legend-u9wBt{font-weight:var(--sui-font-weight-control,500);margin-block-end:var(--sui-fieldset-gap);padding:0}.sui-fieldset-XI428:disabled .sui-legend-u9wBt{opacity:.5}.sui-description-KGes-{color:var(--sui-color-text-muted,#4b5563);font-size:var(--sui-font-size-sm,.875rem)}.sui-error-Dionz{color:var(--sui-color-danger-text,#b91c1c);font-size:var(--sui-font-size-sm,.875rem)}
@@ -0,0 +1,35 @@
1
+ import type { JSX, ReactNode } from "react";
2
+ import type { BoxProps } from "../Box";
3
+ /**
4
+ * Props for `Fieldset`: its own props plus every native fieldset prop
5
+ */
6
+ export interface FieldsetProps extends Omit<BoxProps<"fieldset">, "aria-labelledby" | "as"> {
7
+ /**
8
+ * Not accepted: the `label` always names the group
9
+ */
10
+ "aria-labelledby"?: never;
11
+ /**
12
+ * Supporting text shown below the label, linked to the group with `aria-describedby`
13
+ */
14
+ description?: ReactNode;
15
+ /**
16
+ * Error message shown below the controls, linked to the group with `aria-describedby`. It is not a live region.
17
+ */
18
+ error?: ReactNode;
19
+ /**
20
+ * Label for the group, rendered as its `legend`, which names the group
21
+ */
22
+ label: ReactNode;
23
+ }
24
+ /**
25
+ * Groups related form controls under a legend, with an optional description and error for the group. The
26
+ * native `disabled` prop disables every control inside and dims the legend. Controls inside do not take the
27
+ * state of a surrounding `Field`.
28
+ *
29
+ * @example
30
+ * <Fieldset description="Choose how we reach you" label="Notifications">
31
+ * <Checkbox>Email</Checkbox>
32
+ * <Checkbox>Text message</Checkbox>
33
+ * </Fieldset>
34
+ */
35
+ export declare function Fieldset({ "aria-describedby": consumerDescribedBy, children, className, description, error, label, ...rest }: FieldsetProps): JSX.Element;
@@ -0,0 +1,65 @@
1
+ import { FieldContext as e } from "../../forms/FieldContext.js";
2
+ import { hasContent as t } from "../../forms/hasContent.js";
3
+ import { Box as n } from "../Box/Box.js";
4
+ import r from "./Fieldset.module.js";
5
+ import { clsx as i } from "clsx";
6
+ import { useId as a } from "react";
7
+ import { c as o } from "react/compiler-runtime";
8
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
+ //#region src/components/Fieldset/Fieldset.tsx
10
+ function l(l) {
11
+ let u = o(40), d, f, p, m, h, g, _;
12
+ u[0] === l ? (d = u[1], f = u[2], p = u[3], m = u[4], h = u[5], g = u[6], _ = u[7]) : ({"aria-describedby": p, children: d, className: f, description: m, error: h, label: g, ..._} = l, u[0] = l, u[1] = d, u[2] = f, u[3] = p, u[4] = m, u[5] = h, u[6] = g, u[7] = _);
13
+ let v = a(), y = `${v}-legend`, b = `${v}-description`, x = `${v}-error`, S;
14
+ u[8] === m ? S = u[9] : (S = t(m), u[8] = m, u[9] = S);
15
+ let C = S, w;
16
+ u[10] === h ? w = u[11] : (w = t(h), u[10] = h, u[11] = w);
17
+ let T = w, E = C && b, D = T && x, O;
18
+ u[12] !== p || u[13] !== E || u[14] !== D ? (O = [
19
+ E,
20
+ D,
21
+ p
22
+ ].filter(Boolean), u[12] = p, u[13] = E, u[14] = D, u[15] = O) : O = u[15];
23
+ let k = O.join(" "), A;
24
+ u[16] === f ? A = u[17] : (A = i(r.fieldset, f), u[16] = f, u[17] = A);
25
+ let j = k === "" ? void 0 : k, M;
26
+ u[18] !== g || u[19] !== y ? (M = /* @__PURE__ */ s(n, {
27
+ as: "legend",
28
+ className: r.legend,
29
+ id: y,
30
+ children: g
31
+ }), u[18] = g, u[19] = y, u[20] = M) : M = u[20];
32
+ let N;
33
+ u[21] !== m || u[22] !== b || u[23] !== C ? (N = C && /* @__PURE__ */ s(n, {
34
+ className: r.description,
35
+ id: b,
36
+ children: m
37
+ }), u[21] = m, u[22] = b, u[23] = C, u[24] = N) : N = u[24];
38
+ let P;
39
+ u[25] === d ? P = u[26] : (P = /* @__PURE__ */ s(e.Provider, {
40
+ value: null,
41
+ children: d
42
+ }), u[25] = d, u[26] = P);
43
+ let F;
44
+ u[27] !== h || u[28] !== x || u[29] !== T ? (F = T && /* @__PURE__ */ s(n, {
45
+ className: r.error,
46
+ id: x,
47
+ children: h
48
+ }), u[27] = h, u[28] = x, u[29] = T, u[30] = F) : F = u[30];
49
+ let I;
50
+ return u[31] !== y || u[32] !== _ || u[33] !== P || u[34] !== F || u[35] !== A || u[36] !== j || u[37] !== M || u[38] !== N ? (I = /* @__PURE__ */ c(n, {
51
+ ..._,
52
+ as: "fieldset",
53
+ className: A,
54
+ "aria-describedby": j,
55
+ "aria-labelledby": y,
56
+ children: [
57
+ M,
58
+ N,
59
+ P,
60
+ F
61
+ ]
62
+ }), u[31] = y, u[32] = _, u[33] = P, u[34] = F, u[35] = A, u[36] = j, u[37] = M, u[38] = N, u[39] = I) : I = u[39], I;
63
+ }
64
+ //#endregion
65
+ export { l as Fieldset };
@@ -0,0 +1,9 @@
1
+ import './Fieldset.css';//#region src/components/Fieldset/Fieldset.module.css
2
+ var e = "sui-fieldset-XI428", t = "sui-legend-u9wBt", n = "sui-description-KGes-", r = "sui-error-Dionz", i = {
3
+ fieldset: e,
4
+ legend: t,
5
+ description: n,
6
+ error: r
7
+ };
8
+ //#endregion
9
+ export { i as default, n as description, r as error, e as fieldset, t as legend };
@@ -0,0 +1,2 @@
1
+ export { Fieldset } from "./Fieldset";
2
+ export type { FieldsetProps } from "./Fieldset";
@@ -0,0 +1 @@
1
+ .sui-frame-S3Ved{aspect-ratio:var(--sui-frame-ratio);overflow:hidden}.sui-frame-S3Ved>:is(img,video,iframe){object-fit:cover;block-size:100%;inline-size:100%}
@@ -0,0 +1,23 @@
1
+ import type { JSX } from "react";
2
+ import type { BoxElement, BoxProps } from "../Box";
3
+ interface FrameOwnProps {
4
+ /**
5
+ * Width-to-height ratio, for example `"4 / 3"`. Defaults to `"16 / 9"`.
6
+ */
7
+ ratio?: `${number} / ${number}`;
8
+ }
9
+ /**
10
+ * Props for `Frame`: its own props plus every prop supported by the element given in `as`
11
+ */
12
+ export type FrameProps<E extends BoxElement = "div"> = FrameOwnProps & Omit<BoxProps<E>, keyof FrameOwnProps>;
13
+ /**
14
+ * Fixed aspect-ratio box that crops a single `img`, `video` or `iframe` child to fill it. For a
15
+ * captioned image, put the frame inside a `figure` beside the `figcaption`.
16
+ *
17
+ * @example
18
+ * <Frame ratio="4 / 3">
19
+ * <img alt="Mountain lake at dawn" src="lake.jpg" />
20
+ * </Frame>
21
+ */
22
+ export declare function Frame<E extends BoxElement = "div">({ as, className, ratio, ...rest }: FrameProps<E>): JSX.Element;
23
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Box as e } from "../Box/Box.js";
2
+ import { withCustomProperties as t } from "../../layout/withCustomProperties.js";
3
+ import n from "./Frame.module.js";
4
+ import { clsx as r } from "clsx";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ //#region src/components/Frame/Frame.tsx
7
+ function a({ as: a, className: o, ratio: s = "16 / 9", ...c }) {
8
+ let { style: l, ...u } = c;
9
+ return /* @__PURE__ */ i(e, {
10
+ ...u,
11
+ as: a,
12
+ className: r(n.frame, o),
13
+ style: t({ "--sui-frame-ratio": s }, l)
14
+ });
15
+ }
16
+ //#endregion
17
+ export { a as Frame };
@@ -0,0 +1,4 @@
1
+ import './Frame.css';//#region src/components/Frame/Frame.module.css
2
+ var e = "sui-frame-S3Ved", t = { frame: e };
3
+ //#endregion
4
+ export { t as default, e as frame };
@@ -0,0 +1,2 @@
1
+ export { Frame } from "./Frame";
2
+ export type { FrameProps } from "./Frame";
@@ -0,0 +1 @@
1
+ .sui-grid-h49fk{grid-template-columns:repeat(auto-fit, minmax(min(var(--sui-grid-minimum-item-width), 100%), 1fr));gap:var(--sui-grid-gap);display:grid}.sui-grid-h49fk:where(ul,ol){margin:0;padding:0;list-style:none}
@@ -0,0 +1,25 @@
1
+ import type { JSX } from "react";
2
+ import type { Space } from "../../layout";
3
+ import type { BoxElement, BoxProps } from "../Box";
4
+ interface GridOwnProps {
5
+ /**
6
+ * Space between items in both directions. Defaults to `4`.
7
+ */
8
+ gap?: Space;
9
+ /**
10
+ * Narrowest an item may get before the grid drops a column, as a CSS length. Defaults to `16rem`.
11
+ */
12
+ minimumItemWidth?: string;
13
+ }
14
+ /**
15
+ * Props for `Grid`: its own props plus every prop supported by the element given in `as`
16
+ */
17
+ export type GridProps<E extends BoxElement = "div"> = GridOwnProps & Omit<BoxProps<E>, keyof GridOwnProps>;
18
+ /**
19
+ * Responsive grid that fits as many equal columns as its width allows, without breakpoints
20
+ *
21
+ * @example
22
+ * <Grid as="ul" minimumItemWidth="18rem">...</Grid>
23
+ */
24
+ export declare function Grid<E extends BoxElement = "div">({ as, className, gap, minimumItemWidth, ...rest }: GridProps<E>): JSX.Element;
25
+ export {};
@@ -0,0 +1,23 @@
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";
5
+ import i from "./Grid.module.js";
6
+ import { clsx as a } from "clsx";
7
+ import { jsx as o } from "react/jsx-runtime";
8
+ //#region src/components/Grid/Grid.tsx
9
+ function s({ as: s, className: c, gap: l = 4, minimumItemWidth: u = "16rem", ...d }) {
10
+ let { role: f, style: p, ...m } = d, h = s ?? "div";
11
+ return /* @__PURE__ */ o(e, {
12
+ ...m,
13
+ as: h,
14
+ className: a(i.grid, c),
15
+ role: t(h, f),
16
+ style: r({
17
+ "--sui-grid-gap": n(l),
18
+ "--sui-grid-minimum-item-width": u
19
+ }, p)
20
+ });
21
+ }
22
+ //#endregion
23
+ export { s as Grid };
@@ -0,0 +1,4 @@
1
+ import './Grid.css';//#region src/components/Grid/Grid.module.css
2
+ var e = "sui-grid-h49fk", t = { grid: e };
3
+ //#endregion
4
+ export { t as default, e as grid };
@@ -0,0 +1,2 @@
1
+ export { Grid } from "./Grid";
2
+ export type { GridProps } from "./Grid";
@@ -0,0 +1 @@
1
+ .sui-heading-2pnHW{font-family:var(--sui-font-heading,system-ui, sans-serif);font-weight:var(--sui-font-weight-bold,700);line-height:var(--sui-line-height-tight,1.25);margin:0}.sui-heading-2pnHW[data-size=xs]{font-size:var(--sui-font-size-xs,.75rem)}.sui-heading-2pnHW[data-size=sm]{font-size:var(--sui-font-size-sm,.875rem)}.sui-heading-2pnHW[data-size=md]{font-size:var(--sui-font-size-md,1rem)}.sui-heading-2pnHW[data-size=lg]{font-size:var(--sui-font-size-lg,1.125rem)}.sui-heading-2pnHW[data-size=xl]{font-size:var(--sui-font-size-xl,1.25rem)}.sui-heading-2pnHW[data-size="2xl"]{font-size:var(--sui-font-size-2xl,1.5rem)}.sui-heading-2pnHW[data-size="3xl"]{font-size:var(--sui-font-size-3xl,1.875rem)}.sui-heading-2pnHW[data-tone=muted]{color:var(--sui-color-text-muted,#4b5563)}