@gemologic/sheen 0.1.0-rc.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 (271) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +32 -0
  3. package/dist/core.d.ts +52 -0
  4. package/dist/core.js +29 -0
  5. package/dist/formisch.d.ts +5 -0
  6. package/dist/formisch.js +22 -0
  7. package/dist/forms.d.ts +34 -0
  8. package/dist/forms.js +18 -0
  9. package/dist/index.d.ts +144 -0
  10. package/dist/index.js +75 -0
  11. package/dist/layout/Layout.d.ts +28 -0
  12. package/dist/layout/Layout.js +121 -0
  13. package/dist/metadata.d.ts +46 -0
  14. package/dist/metadata.js +47 -0
  15. package/dist/navigation.d.ts +30 -0
  16. package/dist/navigation.js +16 -0
  17. package/dist/overlays.d.ts +28 -0
  18. package/dist/overlays.js +15 -0
  19. package/dist/primitives/Accordion.d.ts +16 -0
  20. package/dist/primitives/Accordion.js +223 -0
  21. package/dist/primitives/ActivityTimeline.d.ts +20 -0
  22. package/dist/primitives/ActivityTimeline.js +104 -0
  23. package/dist/primitives/AlertDialog.d.ts +7 -0
  24. package/dist/primitives/AlertDialog.js +8 -0
  25. package/dist/primitives/Avatar.d.ts +22 -0
  26. package/dist/primitives/Avatar.js +115 -0
  27. package/dist/primitives/Breadcrumb.d.ts +11 -0
  28. package/dist/primitives/Breadcrumb.js +66 -0
  29. package/dist/primitives/Button.d.ts +11 -0
  30. package/dist/primitives/Button.js +59 -0
  31. package/dist/primitives/ButtonGroup.d.ts +7 -0
  32. package/dist/primitives/ButtonGroup.js +33 -0
  33. package/dist/primitives/Checkbox.d.ts +22 -0
  34. package/dist/primitives/Checkbox.js +93 -0
  35. package/dist/primitives/CheckboxGroup.d.ts +18 -0
  36. package/dist/primitives/CheckboxGroup.js +122 -0
  37. package/dist/primitives/Collapsible.d.ts +9 -0
  38. package/dist/primitives/Collapsible.js +72 -0
  39. package/dist/primitives/Combobox.d.ts +41 -0
  40. package/dist/primitives/Combobox.js +684 -0
  41. package/dist/primitives/CommandPalette.d.ts +42 -0
  42. package/dist/primitives/CommandPalette.js +319 -0
  43. package/dist/primitives/ConfirmDialog.d.ts +11 -0
  44. package/dist/primitives/ConfirmDialog.js +42 -0
  45. package/dist/primitives/ContextMenu.d.ts +16 -0
  46. package/dist/primitives/ContextMenu.js +132 -0
  47. package/dist/primitives/DescriptionList.d.ts +11 -0
  48. package/dist/primitives/DescriptionList.js +44 -0
  49. package/dist/primitives/Dialog.d.ts +21 -0
  50. package/dist/primitives/Dialog.js +141 -0
  51. package/dist/primitives/Drawer.d.ts +9 -0
  52. package/dist/primitives/Drawer.js +21 -0
  53. package/dist/primitives/DropdownMenu.d.ts +59 -0
  54. package/dist/primitives/DropdownMenu.js +441 -0
  55. package/dist/primitives/EditableTextField.d.ts +11 -0
  56. package/dist/primitives/EditableTextField.js +126 -0
  57. package/dist/primitives/EmptyState.d.ts +7 -0
  58. package/dist/primitives/EmptyState.js +45 -0
  59. package/dist/primitives/Field.d.ts +18 -0
  60. package/dist/primitives/Field.js +72 -0
  61. package/dist/primitives/FileDropzone.d.ts +40 -0
  62. package/dist/primitives/FileDropzone.js +261 -0
  63. package/dist/primitives/IconButton.d.ts +8 -0
  64. package/dist/primitives/IconButton.js +34 -0
  65. package/dist/primitives/Input.d.ts +7 -0
  66. package/dist/primitives/Input.js +55 -0
  67. package/dist/primitives/InputGroup.d.ts +7 -0
  68. package/dist/primitives/InputGroup.js +73 -0
  69. package/dist/primitives/Link.d.ts +7 -0
  70. package/dist/primitives/Link.js +35 -0
  71. package/dist/primitives/LinkTooltip.d.ts +11 -0
  72. package/dist/primitives/LinkTooltip.js +88 -0
  73. package/dist/primitives/NavList.d.ts +17 -0
  74. package/dist/primitives/NavList.js +143 -0
  75. package/dist/primitives/Notice.d.ts +8 -0
  76. package/dist/primitives/Notice.js +64 -0
  77. package/dist/primitives/NumberField.d.ts +22 -0
  78. package/dist/primitives/NumberField.js +177 -0
  79. package/dist/primitives/Pagination.d.ts +12 -0
  80. package/dist/primitives/Pagination.js +127 -0
  81. package/dist/primitives/Popover.d.ts +12 -0
  82. package/dist/primitives/Popover.js +103 -0
  83. package/dist/primitives/Progress.d.ts +17 -0
  84. package/dist/primitives/Progress.js +98 -0
  85. package/dist/primitives/RadioGroup.d.ts +19 -0
  86. package/dist/primitives/RadioGroup.js +173 -0
  87. package/dist/primitives/Resizable.d.ts +36 -0
  88. package/dist/primitives/Resizable.js +196 -0
  89. package/dist/primitives/ScrollArea.d.ts +6 -0
  90. package/dist/primitives/ScrollArea.js +178 -0
  91. package/dist/primitives/SearchInput.d.ts +12 -0
  92. package/dist/primitives/SearchInput.js +89 -0
  93. package/dist/primitives/SegmentedControl.d.ts +25 -0
  94. package/dist/primitives/SegmentedControl.js +188 -0
  95. package/dist/primitives/Select.d.ts +24 -0
  96. package/dist/primitives/Select.js +320 -0
  97. package/dist/primitives/Separator.d.ts +6 -0
  98. package/dist/primitives/Separator.js +31 -0
  99. package/dist/primitives/ShortcutPending.d.ts +6 -0
  100. package/dist/primitives/ShortcutPending.js +40 -0
  101. package/dist/primitives/ShortcutProvider.d.ts +32 -0
  102. package/dist/primitives/ShortcutProvider.js +172 -0
  103. package/dist/primitives/ShortcutScope.d.ts +6 -0
  104. package/dist/primitives/ShortcutScope.js +29 -0
  105. package/dist/primitives/ShortcutSheet.d.ts +5 -0
  106. package/dist/primitives/ShortcutSheet.js +87 -0
  107. package/dist/primitives/Skeleton.d.ts +5 -0
  108. package/dist/primitives/Skeleton.js +23 -0
  109. package/dist/primitives/Slider.d.ts +35 -0
  110. package/dist/primitives/Slider.js +210 -0
  111. package/dist/primitives/Spinner.d.ts +7 -0
  112. package/dist/primitives/Spinner.js +44 -0
  113. package/dist/primitives/Status.d.ts +15 -0
  114. package/dist/primitives/Status.js +78 -0
  115. package/dist/primitives/Stepper.d.ts +32 -0
  116. package/dist/primitives/Stepper.js +147 -0
  117. package/dist/primitives/Surface.d.ts +11 -0
  118. package/dist/primitives/Surface.js +58 -0
  119. package/dist/primitives/Switch.d.ts +4 -0
  120. package/dist/primitives/Switch.js +7 -0
  121. package/dist/primitives/Table.d.ts +23 -0
  122. package/dist/primitives/Table.js +101 -0
  123. package/dist/primitives/Tabs.d.ts +17 -0
  124. package/dist/primitives/Tabs.js +157 -0
  125. package/dist/primitives/TagInput.d.ts +33 -0
  126. package/dist/primitives/TagInput.js +288 -0
  127. package/dist/primitives/Textarea.d.ts +8 -0
  128. package/dist/primitives/Textarea.js +106 -0
  129. package/dist/primitives/Toast.d.ts +10 -0
  130. package/dist/primitives/Toast.js +78 -0
  131. package/dist/primitives/Toaster.d.ts +9 -0
  132. package/dist/primitives/Toaster.js +183 -0
  133. package/dist/primitives/Tooltip.d.ts +13 -0
  134. package/dist/primitives/Tooltip.js +84 -0
  135. package/dist/primitives/Tree.d.ts +23 -0
  136. package/dist/primitives/Tree.js +275 -0
  137. package/dist/primitives/Typography.d.ts +16 -0
  138. package/dist/primitives/Typography.js +82 -0
  139. package/dist/primitives/boolean-input-state.d.ts +14 -0
  140. package/dist/primitives/boolean-input-state.js +39 -0
  141. package/dist/primitives/button-variants.d.ts +9 -0
  142. package/dist/primitives/button-variants.js +7 -0
  143. package/dist/primitives/choice-options.d.ts +7 -0
  144. package/dist/primitives/choice-options.js +35 -0
  145. package/dist/primitives/create-confirm.d.ts +15 -0
  146. package/dist/primitives/create-confirm.js +49 -0
  147. package/dist/primitives/create-toaster.d.ts +51 -0
  148. package/dist/primitives/create-toaster.js +87 -0
  149. package/dist/primitives/link-focus.d.ts +2 -0
  150. package/dist/primitives/link-focus.js +38 -0
  151. package/dist/primitives/menu-focus.d.ts +3 -0
  152. package/dist/primitives/menu-focus.js +32 -0
  153. package/dist/primitives/tooltip-layer.d.ts +14 -0
  154. package/dist/primitives/tooltip-layer.js +84 -0
  155. package/dist/theme/ThemeProvider.d.ts +59 -0
  156. package/dist/theme/ThemeProvider.js +239 -0
  157. package/dist/theme/intl.d.ts +6 -0
  158. package/dist/theme/intl.js +13 -0
  159. package/dist/theme/keyboard-script.d.ts +2 -0
  160. package/dist/theme/keyboard-script.js +6 -0
  161. package/dist/theme/layers.d.ts +7 -0
  162. package/dist/theme/layers.js +23 -0
  163. package/dist/theme/messages.d.ts +235 -0
  164. package/dist/theme/messages.js +115 -0
  165. package/dist/theme/script.d.ts +9 -0
  166. package/dist/theme/script.js +49 -0
  167. package/dist/theme/state.d.ts +27 -0
  168. package/dist/theme/state.js +55 -0
  169. package/dist/utils/browser-status.d.ts +5 -0
  170. package/dist/utils/browser-status.js +22 -0
  171. package/dist/utils/cn.d.ts +3 -0
  172. package/dist/utils/cn.js +7 -0
  173. package/dist/utils/optimistic.d.ts +6 -0
  174. package/dist/utils/optimistic.js +16 -0
  175. package/dist/utils/polymorphic.d.ts +1 -0
  176. package/dist/utils/shortcut-platform.d.ts +2 -0
  177. package/dist/utils/shortcut-platform.js +10 -0
  178. package/dist/utils/shortcut-registry.d.ts +61 -0
  179. package/dist/utils/shortcut-registry.js +186 -0
  180. package/package.json +100 -0
  181. package/src/core.ts +55 -0
  182. package/src/formisch.ts +28 -0
  183. package/src/forms.ts +34 -0
  184. package/src/index.ts +144 -0
  185. package/src/layout/Layout.tsx +43 -0
  186. package/src/metadata.d.ts +46 -0
  187. package/src/metadata.ts +66 -0
  188. package/src/navigation.ts +30 -0
  189. package/src/overlays.ts +28 -0
  190. package/src/primitives/Accordion.tsx +145 -0
  191. package/src/primitives/ActivityTimeline.tsx +72 -0
  192. package/src/primitives/AlertDialog.tsx +8 -0
  193. package/src/primitives/Avatar.tsx +85 -0
  194. package/src/primitives/Breadcrumb.tsx +41 -0
  195. package/src/primitives/Button.tsx +27 -0
  196. package/src/primitives/ButtonGroup.tsx +18 -0
  197. package/src/primitives/Checkbox.tsx +51 -0
  198. package/src/primitives/CheckboxGroup.tsx +73 -0
  199. package/src/primitives/Collapsible.tsx +43 -0
  200. package/src/primitives/Combobox.tsx +402 -0
  201. package/src/primitives/CommandPalette.tsx +234 -0
  202. package/src/primitives/ConfirmDialog.tsx +25 -0
  203. package/src/primitives/ContextMenu.tsx +100 -0
  204. package/src/primitives/DescriptionList.tsx +26 -0
  205. package/src/primitives/Dialog.tsx +81 -0
  206. package/src/primitives/Drawer.tsx +26 -0
  207. package/src/primitives/DropdownMenu.tsx +221 -0
  208. package/src/primitives/EditableTextField.tsx +91 -0
  209. package/src/primitives/EmptyState.tsx +21 -0
  210. package/src/primitives/Field.tsx +38 -0
  211. package/src/primitives/FileDropzone.tsx +189 -0
  212. package/src/primitives/IconButton.tsx +22 -0
  213. package/src/primitives/Input.tsx +17 -0
  214. package/src/primitives/InputGroup.tsx +23 -0
  215. package/src/primitives/Link.tsx +19 -0
  216. package/src/primitives/LinkTooltip.tsx +31 -0
  217. package/src/primitives/NavList.tsx +58 -0
  218. package/src/primitives/Notice.tsx +25 -0
  219. package/src/primitives/NumberField.tsx +168 -0
  220. package/src/primitives/Pagination.tsx +64 -0
  221. package/src/primitives/Popover.tsx +44 -0
  222. package/src/primitives/Progress.tsx +62 -0
  223. package/src/primitives/RadioGroup.tsx +104 -0
  224. package/src/primitives/Resizable.tsx +170 -0
  225. package/src/primitives/ScrollArea.tsx +115 -0
  226. package/src/primitives/SearchInput.tsx +98 -0
  227. package/src/primitives/SegmentedControl.tsx +140 -0
  228. package/src/primitives/Select.tsx +171 -0
  229. package/src/primitives/Separator.tsx +13 -0
  230. package/src/primitives/ShortcutPending.tsx +21 -0
  231. package/src/primitives/ShortcutProvider.tsx +179 -0
  232. package/src/primitives/ShortcutScope.tsx +17 -0
  233. package/src/primitives/ShortcutSheet.tsx +35 -0
  234. package/src/primitives/Skeleton.tsx +12 -0
  235. package/src/primitives/Slider.tsx +153 -0
  236. package/src/primitives/Spinner.tsx +19 -0
  237. package/src/primitives/Status.tsx +33 -0
  238. package/src/primitives/Stepper.tsx +106 -0
  239. package/src/primitives/Surface.tsx +21 -0
  240. package/src/primitives/Switch.tsx +9 -0
  241. package/src/primitives/Table.tsx +57 -0
  242. package/src/primitives/Tabs.tsx +96 -0
  243. package/src/primitives/TagInput.tsx +282 -0
  244. package/src/primitives/Textarea.tsx +77 -0
  245. package/src/primitives/Toast.tsx +36 -0
  246. package/src/primitives/Toaster.tsx +175 -0
  247. package/src/primitives/Tooltip.tsx +41 -0
  248. package/src/primitives/Tree.tsx +256 -0
  249. package/src/primitives/Typography.tsx +39 -0
  250. package/src/primitives/boolean-input-state.ts +65 -0
  251. package/src/primitives/button-variants.ts +20 -0
  252. package/src/primitives/choice-options.ts +39 -0
  253. package/src/primitives/create-confirm.tsx +56 -0
  254. package/src/primitives/create-toaster.ts +128 -0
  255. package/src/primitives/link-focus.ts +38 -0
  256. package/src/primitives/menu-focus.ts +43 -0
  257. package/src/primitives/tooltip-layer.tsx +53 -0
  258. package/src/styles.css +655 -0
  259. package/src/theme/ThemeProvider.tsx +215 -0
  260. package/src/theme/intl.ts +14 -0
  261. package/src/theme/keyboard-script.ts +4 -0
  262. package/src/theme/layers.ts +16 -0
  263. package/src/theme/messages.ts +157 -0
  264. package/src/theme/script.ts +70 -0
  265. package/src/theme/state.ts +48 -0
  266. package/src/utils/browser-status.ts +36 -0
  267. package/src/utils/cn.ts +5 -0
  268. package/src/utils/optimistic.ts +22 -0
  269. package/src/utils/polymorphic.ts +1 -0
  270. package/src/utils/shortcut-platform.ts +4 -0
  271. package/src/utils/shortcut-registry.ts +216 -0
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2026 Gemologic
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @gemologic/sheen
2
+
3
+ Accessible, themeable SolidJS components for application interfaces. Import the component entry that matches the feature set you use, plus `@gemologic/sheen/styles.css` and the selected token CSS from `@gemologic/sheen-tokens`.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ pnpm add @gemologic/sheen @gemologic/sheen-tokens solid-js
9
+ ```
10
+
11
+ Load the styles once at the application root:
12
+
13
+ ```css
14
+ @import "@gemologic/sheen-tokens/fonts.css";
15
+ @import "@gemologic/sheen-tokens/themes.css";
16
+ @import "@gemologic/sheen-tokens/core.css";
17
+ @import "@gemologic/sheen/styles.css";
18
+ ```
19
+
20
+ ## Use
21
+
22
+ ```tsx
23
+ import { Button, ThemeProvider } from "@gemologic/sheen";
24
+
25
+ export function App() {
26
+ return <ThemeProvider><Button>Continue</Button></ThemeProvider>;
27
+ }
28
+ ```
29
+
30
+ Fresh providers default to dark Obsidian with a jade accent. Import `./core`, `./forms`, `./overlays`, or `./navigation` when an application needs a deliberately narrower entry. Server markup, hydration, contextual portals, focus, and retained-refresh behavior are public contracts, not client-only enhancements.
31
+
32
+ See the [Sheen repository](https://github.com/gemologic/sheen), [hydration guide](https://github.com/gemologic/sheen/blob/main/docs/hydration.md), and [component inventory](https://sheen.gemologic.dev/components) for complete examples and support policy.
package/dist/core.d.ts ADDED
@@ -0,0 +1,52 @@
1
+ export { ThemeProvider, ThemeScope, useTheme } from "./theme/ThemeProvider.tsx";
2
+ export type { ThemeProviderProps, ThemeScopeProps, ThemeContextValue } from "./theme/ThemeProvider.tsx";
3
+ export { defaultThemeState, resolveThemeState, readThemeState } from "./theme/state.ts";
4
+ export type { ThemeState, ThemeOverrides } from "./theme/state.ts";
5
+ export { createThemeScript } from "./theme/script.ts";
6
+ export { createKeyboardHydrationScript } from "./theme/keyboard-script.ts";
7
+ export { englishMessages } from "./theme/messages.ts";
8
+ export type { Messages } from "./theme/messages.ts";
9
+ export { useNumberFormatter, useDateFormatter } from "./theme/intl.ts";
10
+ export { Button } from "./primitives/Button.tsx";
11
+ export type { ButtonProps } from "./primitives/Button.tsx";
12
+ export { buttonVariants } from "./primitives/button-variants.ts";
13
+ export type { ButtonVariantProps } from "./primitives/button-variants.ts";
14
+ export { ButtonGroup } from "./primitives/ButtonGroup.tsx";
15
+ export type { ButtonGroupProps } from "./primitives/ButtonGroup.tsx";
16
+ export { IconButton } from "./primitives/IconButton.tsx";
17
+ export type { IconButtonProps } from "./primitives/IconButton.tsx";
18
+ export { Link } from "./primitives/Link.tsx";
19
+ export type { LinkProps } from "./primitives/Link.tsx";
20
+ export type { SheenPolymorphicProps } from "./utils/polymorphic.ts";
21
+ export { cn } from "./utils/cn.ts";
22
+ export { useOnlineStatus, useIsWindowFocused } from "./utils/browser-status.ts";
23
+ export { optimistic } from "./utils/optimistic.ts";
24
+ export type { OptimisticRevert } from "./utils/optimistic.ts";
25
+ export { Stack, Row, Row as Cluster, Grid, Container, Center, Spacer } from "./layout/Layout.tsx";
26
+ export type { StackProps, RowProps, GridProps, ContainerProps, CenterProps, SpacerProps, Spacing, Alignment, Justification } from "./layout/Layout.tsx";
27
+ export { Text, Heading, Code, Kbd } from "./primitives/Typography.tsx";
28
+ export type { TextProps, HeadingProps, CodeProps, KbdProps } from "./primitives/Typography.tsx";
29
+ export { Badge, Tag } from "./primitives/Status.tsx";
30
+ export type { BadgeProps, TagProps, StatusTone } from "./primitives/Status.tsx";
31
+ export { Surface, Card } from "./primitives/Surface.tsx";
32
+ export type { SurfaceProps, CardProps } from "./primitives/Surface.tsx";
33
+ export { Separator } from "./primitives/Separator.tsx";
34
+ export type { SeparatorProps } from "./primitives/Separator.tsx";
35
+ export { Alert, Callout } from "./primitives/Notice.tsx";
36
+ export type { AlertProps, CalloutProps } from "./primitives/Notice.tsx";
37
+ export { DescriptionList, DescriptionTerm, DescriptionDetails } from "./primitives/DescriptionList.tsx";
38
+ export type { DescriptionListProps, DescriptionTermProps, DescriptionDetailsProps } from "./primitives/DescriptionList.tsx";
39
+ export { Skeleton } from "./primitives/Skeleton.tsx";
40
+ export type { SkeletonProps } from "./primitives/Skeleton.tsx";
41
+ export { EmptyState } from "./primitives/EmptyState.tsx";
42
+ export type { EmptyStateProps } from "./primitives/EmptyState.tsx";
43
+ export { Spinner } from "./primitives/Spinner.tsx";
44
+ export type { SpinnerProps } from "./primitives/Spinner.tsx";
45
+ export { Table, TableCaption, TableHead, TableBody, TableFoot, TableRow, TableHeaderCell, TableCell } from "./primitives/Table.tsx";
46
+ export type { TableProps, TableCaptionProps, TableHeadProps, TableBodyProps, TableFootProps, TableRowProps, TableHeaderCellProps, TableCellProps } from "./primitives/Table.tsx";
47
+ export { Avatar, AvatarGroup } from "./primitives/Avatar.tsx";
48
+ export type { AvatarProps, AvatarGroupProps, AvatarItem, AvatarSize } from "./primitives/Avatar.tsx";
49
+ export { Progress, Meter } from "./primitives/Progress.tsx";
50
+ export type { ProgressProps, MeterProps } from "./primitives/Progress.tsx";
51
+ export { ActivityTimeline } from "./primitives/ActivityTimeline.tsx";
52
+ export type { ActivityTimelineProps, ActivityTimelineItem, WorkflowState } from "./primitives/ActivityTimeline.tsx";
package/dist/core.js ADDED
@@ -0,0 +1,29 @@
1
+ import { defaultThemeState as e, readThemeState as t, resolveThemeState as n } from "./theme/state.js";
2
+ import { createThemeScript as r } from "./theme/script.js";
3
+ import { englishMessages as i } from "./theme/messages.js";
4
+ import { ThemeProvider as a, ThemeScope as o, useTheme as s } from "./theme/ThemeProvider.js";
5
+ import { createKeyboardHydrationScript as c } from "./theme/keyboard-script.js";
6
+ import { cn as l } from "./utils/cn.js";
7
+ import { buttonVariants as u } from "./primitives/button-variants.js";
8
+ import { Button as d } from "./primitives/Button.js";
9
+ import { Code as f, Heading as p, Kbd as m, Text as h } from "./primitives/Typography.js";
10
+ import { useIsWindowFocused as g, useOnlineStatus as _ } from "./utils/browser-status.js";
11
+ import { optimistic as v } from "./utils/optimistic.js";
12
+ import { useDateFormatter as y, useNumberFormatter as b } from "./theme/intl.js";
13
+ import { Center as x, Container as S, Grid as C, Row as w, Spacer as T, Stack as ee } from "./layout/Layout.js";
14
+ import { Badge as E, Tag as D } from "./primitives/Status.js";
15
+ import { Card as O, Surface as k } from "./primitives/Surface.js";
16
+ import { Separator as A } from "./primitives/Separator.js";
17
+ import { Alert as j, Callout as M } from "./primitives/Notice.js";
18
+ import { DescriptionDetails as N, DescriptionList as P, DescriptionTerm as F } from "./primitives/DescriptionList.js";
19
+ import { Skeleton as I } from "./primitives/Skeleton.js";
20
+ import { EmptyState as L } from "./primitives/EmptyState.js";
21
+ import { Spinner as R } from "./primitives/Spinner.js";
22
+ import { Meter as z, Progress as B } from "./primitives/Progress.js";
23
+ import { ActivityTimeline as V } from "./primitives/ActivityTimeline.js";
24
+ import { Link as H } from "./primitives/Link.js";
25
+ import { Table as U, TableBody as W, TableCaption as G, TableCell as K, TableFoot as q, TableHead as J, TableHeaderCell as Y, TableRow as X } from "./primitives/Table.js";
26
+ import { ButtonGroup as Z } from "./primitives/ButtonGroup.js";
27
+ import { IconButton as Q } from "./primitives/IconButton.js";
28
+ import { Avatar as $, AvatarGroup as te } from "./primitives/Avatar.js";
29
+ export { V as ActivityTimeline, j as Alert, $ as Avatar, te as AvatarGroup, E as Badge, d as Button, Z as ButtonGroup, M as Callout, O as Card, x as Center, w as Cluster, f as Code, S as Container, N as DescriptionDetails, P as DescriptionList, F as DescriptionTerm, L as EmptyState, C as Grid, p as Heading, Q as IconButton, m as Kbd, H as Link, z as Meter, B as Progress, w as Row, A as Separator, I as Skeleton, T as Spacer, R as Spinner, ee as Stack, k as Surface, U as Table, W as TableBody, G as TableCaption, K as TableCell, q as TableFoot, J as TableHead, Y as TableHeaderCell, X as TableRow, D as Tag, h as Text, a as ThemeProvider, o as ThemeScope, u as buttonVariants, l as cn, c as createKeyboardHydrationScript, r as createThemeScript, e as defaultThemeState, i as englishMessages, v as optimistic, t as readThemeState, n as resolveThemeState, y as useDateFormatter, g as useIsWindowFocused, b as useNumberFormatter, _ as useOnlineStatus, s as useTheme };
@@ -0,0 +1,5 @@
1
+ import type { FieldStore, FormSchema, RequiredPath } from "@formisch/solid";
2
+ import type { InputProps } from "./primitives/Input.tsx";
3
+ export type FormischInputBinding = Pick<InputProps, "name" | "value" | "error" | "autofocus" | "ref" | "onFocus" | "onInput" | "onChange" | "onBlur">;
4
+ /** Maps a Formisch field store to the controlled attributes consumed by Sheen Input. */
5
+ export declare function formischInputProps<TSchema extends FormSchema, TFieldPath extends RequiredPath>(field: FieldStore<TSchema, TFieldPath>): FormischInputBinding;
@@ -0,0 +1,22 @@
1
+ //#region src/formisch.ts
2
+ function e(e) {
3
+ if (e == null) return "";
4
+ if (typeof e == "string" || typeof e == "number" && Number.isFinite(e)) return e;
5
+ throw Error("formischInputProps supports string and finite-number fields only");
6
+ }
7
+ function t(t) {
8
+ let n = (e) => t.props.onInput(e), r = (e) => t.props.onChange(e);
9
+ return {
10
+ name: t.props.name,
11
+ value: e(t.input),
12
+ ...t.errors?.[0] === void 0 ? {} : { error: t.errors[0] },
13
+ autofocus: t.props.autofocus,
14
+ ref: (e) => t.props.ref(e),
15
+ onFocus: () => t.props.onFocus(),
16
+ onInput: n,
17
+ onChange: r,
18
+ onBlur: () => t.props.onBlur()
19
+ };
20
+ }
21
+ //#endregion
22
+ export { t as formischInputProps };
@@ -0,0 +1,34 @@
1
+ export { Field } from "./primitives/Field.tsx";
2
+ export type { FieldProps, FieldControlProps } from "./primitives/Field.tsx";
3
+ export { Input } from "./primitives/Input.tsx";
4
+ export type { InputProps } from "./primitives/Input.tsx";
5
+ export { InputGroup } from "./primitives/InputGroup.tsx";
6
+ export type { InputGroupProps } from "./primitives/InputGroup.tsx";
7
+ export { SearchInput } from "./primitives/SearchInput.tsx";
8
+ export type { SearchInputProps } from "./primitives/SearchInput.tsx";
9
+ export { Textarea } from "./primitives/Textarea.tsx";
10
+ export type { TextareaProps } from "./primitives/Textarea.tsx";
11
+ export { EditableTextField } from "./primitives/EditableTextField.tsx";
12
+ export type { EditableTextFieldProps } from "./primitives/EditableTextField.tsx";
13
+ export { Checkbox } from "./primitives/Checkbox.tsx";
14
+ export type { CheckboxProps } from "./primitives/Checkbox.tsx";
15
+ export { Switch } from "./primitives/Switch.tsx";
16
+ export type { SwitchProps } from "./primitives/Switch.tsx";
17
+ export { CheckboxGroup } from "./primitives/CheckboxGroup.tsx";
18
+ export type { CheckboxGroupProps, CheckboxOption } from "./primitives/CheckboxGroup.tsx";
19
+ export { RadioGroup } from "./primitives/RadioGroup.tsx";
20
+ export type { RadioGroupProps, RadioOption } from "./primitives/RadioGroup.tsx";
21
+ export { SegmentedControl } from "./primitives/SegmentedControl.tsx";
22
+ export type { SegmentedControlProps, SegmentedControlOption } from "./primitives/SegmentedControl.tsx";
23
+ export { TagInput } from "./primitives/TagInput.tsx";
24
+ export type { TagInputProps, TagInputValidationContext, TagInputValidationResult } from "./primitives/TagInput.tsx";
25
+ export { FileDropzone } from "./primitives/FileDropzone.tsx";
26
+ export type { FileDropzoneProps, FileDropzoneItem, FileDropzoneStatus, FileDropzoneRejection, FileDropzoneRejectionReason } from "./primitives/FileDropzone.tsx";
27
+ export { Select } from "./primitives/Select.tsx";
28
+ export type { SelectProps, SelectOption } from "./primitives/Select.tsx";
29
+ export { Combobox, MultiCombobox } from "./primitives/Combobox.tsx";
30
+ export type { ComboboxProps, MultiComboboxProps, ComboboxOption, ComboboxFilter } from "./primitives/Combobox.tsx";
31
+ export { NumberField } from "./primitives/NumberField.tsx";
32
+ export type { NumberFieldProps } from "./primitives/NumberField.tsx";
33
+ export { Slider, RangeSlider } from "./primitives/Slider.tsx";
34
+ export type { SliderProps, RangeSliderProps } from "./primitives/Slider.tsx";
package/dist/forms.js ADDED
@@ -0,0 +1,18 @@
1
+ import { Field as e } from "./primitives/Field.js";
2
+ import { Input as t } from "./primitives/Input.js";
3
+ import { InputGroup as n } from "./primitives/InputGroup.js";
4
+ import { SearchInput as r } from "./primitives/SearchInput.js";
5
+ import { Textarea as i } from "./primitives/Textarea.js";
6
+ import { EditableTextField as a } from "./primitives/EditableTextField.js";
7
+ import { Checkbox as o } from "./primitives/Checkbox.js";
8
+ import { Switch as s } from "./primitives/Switch.js";
9
+ import { CheckboxGroup as c } from "./primitives/CheckboxGroup.js";
10
+ import { RadioGroup as l } from "./primitives/RadioGroup.js";
11
+ import { SegmentedControl as u } from "./primitives/SegmentedControl.js";
12
+ import { TagInput as d } from "./primitives/TagInput.js";
13
+ import { FileDropzone as f } from "./primitives/FileDropzone.js";
14
+ import { Select as p } from "./primitives/Select.js";
15
+ import { Combobox as m, MultiCombobox as h } from "./primitives/Combobox.js";
16
+ import { NumberField as g } from "./primitives/NumberField.js";
17
+ import { RangeSlider as _, Slider as v } from "./primitives/Slider.js";
18
+ export { o as Checkbox, c as CheckboxGroup, m as Combobox, a as EditableTextField, e as Field, f as FileDropzone, t as Input, n as InputGroup, h as MultiCombobox, g as NumberField, l as RadioGroup, _ as RangeSlider, r as SearchInput, u as SegmentedControl, p as Select, v as Slider, s as Switch, d as TagInput, i as Textarea };
@@ -0,0 +1,144 @@
1
+ export { ThemeProvider, ThemeScope, useTheme } from "./theme/ThemeProvider.tsx";
2
+ export type { ThemeProviderProps, ThemeScopeProps, ThemeContextValue } from "./theme/ThemeProvider.tsx";
3
+ export { defaultThemeState, resolveThemeState, readThemeState } from "./theme/state.ts";
4
+ export type { ThemeState, ThemeOverrides } from "./theme/state.ts";
5
+ export { createThemeScript } from "./theme/script.ts";
6
+ export { createKeyboardHydrationScript } from "./theme/keyboard-script.ts";
7
+ export { Button } from "./primitives/Button.tsx";
8
+ export type { ButtonProps } from "./primitives/Button.tsx";
9
+ export { buttonVariants } from "./primitives/button-variants.ts";
10
+ export type { ButtonVariantProps } from "./primitives/button-variants.ts";
11
+ export type { SheenPolymorphicProps } from "./utils/polymorphic.ts";
12
+ export { Input } from "./primitives/Input.tsx";
13
+ export type { InputProps } from "./primitives/Input.tsx";
14
+ export { Dialog } from "./primitives/Dialog.tsx";
15
+ export type { DialogProps } from "./primitives/Dialog.tsx";
16
+ export { Drawer, Sheet } from "./primitives/Drawer.tsx";
17
+ export type { DrawerProps, DrawerSide, SheetProps } from "./primitives/Drawer.tsx";
18
+ export { AlertDialog } from "./primitives/AlertDialog.tsx";
19
+ export type { AlertDialogProps } from "./primitives/AlertDialog.tsx";
20
+ export { ConfirmDialog } from "./primitives/ConfirmDialog.tsx";
21
+ export type { ConfirmDialogProps } from "./primitives/ConfirmDialog.tsx";
22
+ export { createConfirm } from "./primitives/create-confirm.tsx";
23
+ export type { ConfirmController, ConfirmOptions } from "./primitives/create-confirm.tsx";
24
+ export { Tooltip } from "./primitives/Tooltip.tsx";
25
+ export { createShortcutRegistry } from "./utils/shortcut-registry.ts";
26
+ export { ShortcutProvider, useShortcut, usePendingShortcut, useShortcutBindings, useShortcutCommands } from "./primitives/ShortcutProvider.tsx";
27
+ export { ShortcutSheet } from "./primitives/ShortcutSheet.tsx";
28
+ export { ShortcutPending } from "./primitives/ShortcutPending.tsx";
29
+ export { ShortcutScope } from "./primitives/ShortcutScope.tsx";
30
+ export type { ShortcutScopeProps } from "./primitives/ShortcutScope.tsx";
31
+ export type { ShortcutPendingProps } from "./primitives/ShortcutPending.tsx";
32
+ export type { ShortcutSheetProps } from "./primitives/ShortcutSheet.tsx";
33
+ export type { ShortcutProviderProps } from "./primitives/ShortcutProvider.tsx";
34
+ export type { PendingShortcut, ShortcutAction, ShortcutBinding, ShortcutDefinition, ShortcutInput, ShortcutRegistryOptions } from "./utils/shortcut-registry.ts";
35
+ export { LinkTooltip } from "./primitives/LinkTooltip.tsx";
36
+ export type { LinkTooltipProps } from "./primitives/LinkTooltip.tsx";
37
+ export type { TooltipProps } from "./primitives/Tooltip.tsx";
38
+ export { Popover } from "./primitives/Popover.tsx";
39
+ export type { PopoverProps } from "./primitives/Popover.tsx";
40
+ export { DropdownMenu } from "./primitives/DropdownMenu.tsx";
41
+ export type { DropdownMenuProps, DropdownMenuPlacement, MenuItem, MenuAction, MenuCheckbox, MenuRadioGroup, MenuRadioOption, MenuSubmenu, MenuSeparator } from "./primitives/DropdownMenu.tsx";
42
+ export { ContextMenu } from "./primitives/ContextMenu.tsx";
43
+ export type { ContextMenuProps } from "./primitives/ContextMenu.tsx";
44
+ export { CommandPalette, commandPaletteFilter } from "./primitives/CommandPalette.tsx";
45
+ export type { CommandPaletteProps, CommandPaletteCommand, CommandPaletteSource, CommandPaletteStaticSource, CommandPaletteRemoteSource, CommandPaletteRecents } from "./primitives/CommandPalette.tsx";
46
+ export { cn } from "./utils/cn.ts";
47
+ export { useOnlineStatus, useIsWindowFocused } from "./utils/browser-status.ts";
48
+ export { optimistic } from "./utils/optimistic.ts";
49
+ export type { OptimisticRevert } from "./utils/optimistic.ts";
50
+ export { createToaster } from "./primitives/create-toaster.ts";
51
+ export { Toast } from "./primitives/Toast.tsx";
52
+ export type { ToastProps } from "./primitives/Toast.tsx";
53
+ export { Toaster } from "./primitives/Toaster.tsx";
54
+ export type { ToasterProps } from "./primitives/Toaster.tsx";
55
+ export type { ToastId, ToastAction, ToastOptions, ToastNotification, ToastActionResult, ToastController } from "./primitives/create-toaster.ts";
56
+ export { englishMessages } from "./theme/messages.ts";
57
+ export type { Messages } from "./theme/messages.ts";
58
+ export { useNumberFormatter, useDateFormatter } from "./theme/intl.ts";
59
+ export { Stack, Row, Row as Cluster, Grid, Container, Center, Spacer } from "./layout/Layout.tsx";
60
+ export type { StackProps, RowProps, GridProps, ContainerProps, CenterProps, SpacerProps, Spacing, Alignment, Justification } from "./layout/Layout.tsx";
61
+ export { Text, Heading, Code, Kbd } from "./primitives/Typography.tsx";
62
+ export type { TextProps, HeadingProps, CodeProps, KbdProps } from "./primitives/Typography.tsx";
63
+ export { Badge, Tag } from "./primitives/Status.tsx";
64
+ export type { BadgeProps, TagProps, StatusTone } from "./primitives/Status.tsx";
65
+ export { Surface, Card } from "./primitives/Surface.tsx";
66
+ export type { SurfaceProps, CardProps } from "./primitives/Surface.tsx";
67
+ export { Separator } from "./primitives/Separator.tsx";
68
+ export type { SeparatorProps } from "./primitives/Separator.tsx";
69
+ export { Alert, Callout } from "./primitives/Notice.tsx";
70
+ export type { AlertProps, CalloutProps } from "./primitives/Notice.tsx";
71
+ export { DescriptionList, DescriptionTerm, DescriptionDetails } from "./primitives/DescriptionList.tsx";
72
+ export type { DescriptionListProps, DescriptionTermProps, DescriptionDetailsProps } from "./primitives/DescriptionList.tsx";
73
+ export { Skeleton } from "./primitives/Skeleton.tsx";
74
+ export type { SkeletonProps } from "./primitives/Skeleton.tsx";
75
+ export { EmptyState } from "./primitives/EmptyState.tsx";
76
+ export type { EmptyStateProps } from "./primitives/EmptyState.tsx";
77
+ export { Spinner } from "./primitives/Spinner.tsx";
78
+ export type { SpinnerProps } from "./primitives/Spinner.tsx";
79
+ export { Field } from "./primitives/Field.tsx";
80
+ export type { FieldProps, FieldControlProps } from "./primitives/Field.tsx";
81
+ export { InputGroup } from "./primitives/InputGroup.tsx";
82
+ export type { InputGroupProps } from "./primitives/InputGroup.tsx";
83
+ export { SearchInput } from "./primitives/SearchInput.tsx";
84
+ export type { SearchInputProps } from "./primitives/SearchInput.tsx";
85
+ export { Textarea } from "./primitives/Textarea.tsx";
86
+ export type { TextareaProps } from "./primitives/Textarea.tsx";
87
+ export { EditableTextField } from "./primitives/EditableTextField.tsx";
88
+ export type { EditableTextFieldProps } from "./primitives/EditableTextField.tsx";
89
+ export { Checkbox } from "./primitives/Checkbox.tsx";
90
+ export type { CheckboxProps } from "./primitives/Checkbox.tsx";
91
+ export { Switch } from "./primitives/Switch.tsx";
92
+ export type { SwitchProps } from "./primitives/Switch.tsx";
93
+ export { CheckboxGroup } from "./primitives/CheckboxGroup.tsx";
94
+ export type { CheckboxGroupProps, CheckboxOption } from "./primitives/CheckboxGroup.tsx";
95
+ export { RadioGroup } from "./primitives/RadioGroup.tsx";
96
+ export { SegmentedControl } from "./primitives/SegmentedControl.tsx";
97
+ export type { SegmentedControlProps, SegmentedControlOption } from "./primitives/SegmentedControl.tsx";
98
+ export { TagInput } from "./primitives/TagInput.tsx";
99
+ export type { TagInputProps, TagInputValidationContext, TagInputValidationResult } from "./primitives/TagInput.tsx";
100
+ export { FileDropzone } from "./primitives/FileDropzone.tsx";
101
+ export type { FileDropzoneProps, FileDropzoneItem, FileDropzoneStatus, FileDropzoneRejection, FileDropzoneRejectionReason } from "./primitives/FileDropzone.tsx";
102
+ export { ActivityTimeline } from "./primitives/ActivityTimeline.tsx";
103
+ export type { ActivityTimelineProps, ActivityTimelineItem, WorkflowState } from "./primitives/ActivityTimeline.tsx";
104
+ export { Stepper } from "./primitives/Stepper.tsx";
105
+ export type { StepperProps, StepperStep, StepperStatusStep, StepperLinkStep, StepperActionStep } from "./primitives/Stepper.tsx";
106
+ export { Select } from "./primitives/Select.tsx";
107
+ export type { SelectProps, SelectOption } from "./primitives/Select.tsx";
108
+ export { Combobox, MultiCombobox } from "./primitives/Combobox.tsx";
109
+ export type { ComboboxProps, MultiComboboxProps, ComboboxOption, ComboboxFilter } from "./primitives/Combobox.tsx";
110
+ export type { RadioGroupProps, RadioOption } from "./primitives/RadioGroup.tsx";
111
+ export { Table, TableCaption, TableHead, TableBody, TableFoot, TableRow, TableHeaderCell, TableCell } from "./primitives/Table.tsx";
112
+ export type { TableProps, TableCaptionProps, TableHeadProps, TableBodyProps, TableFootProps, TableRowProps, TableHeaderCellProps, TableCellProps } from "./primitives/Table.tsx";
113
+ export { Breadcrumb } from "./primitives/Breadcrumb.tsx";
114
+ export type { BreadcrumbProps, BreadcrumbEntry } from "./primitives/Breadcrumb.tsx";
115
+ export { Collapsible } from "./primitives/Collapsible.tsx";
116
+ export type { CollapsibleProps } from "./primitives/Collapsible.tsx";
117
+ export { Accordion, AccordionItem } from "./primitives/Accordion.tsx";
118
+ export type { AccordionProps, AccordionItemProps } from "./primitives/Accordion.tsx";
119
+ export { Tabs } from "./primitives/Tabs.tsx";
120
+ export type { TabsProps, TabOption } from "./primitives/Tabs.tsx";
121
+ export { NavList, NavItem } from "./primitives/NavList.tsx";
122
+ export type { NavListProps, NavItemProps } from "./primitives/NavList.tsx";
123
+ export { ScrollArea } from "./primitives/ScrollArea.tsx";
124
+ export type { ScrollAreaProps } from "./primitives/ScrollArea.tsx";
125
+ export { ButtonGroup } from "./primitives/ButtonGroup.tsx";
126
+ export type { ButtonGroupProps } from "./primitives/ButtonGroup.tsx";
127
+ export { IconButton } from "./primitives/IconButton.tsx";
128
+ export type { IconButtonProps } from "./primitives/IconButton.tsx";
129
+ export { Link } from "./primitives/Link.tsx";
130
+ export type { LinkProps } from "./primitives/Link.tsx";
131
+ export { Pagination } from "./primitives/Pagination.tsx";
132
+ export type { PaginationProps } from "./primitives/Pagination.tsx";
133
+ export { Avatar, AvatarGroup } from "./primitives/Avatar.tsx";
134
+ export type { AvatarProps, AvatarGroupProps, AvatarItem, AvatarSize } from "./primitives/Avatar.tsx";
135
+ export { Progress, Meter } from "./primitives/Progress.tsx";
136
+ export type { ProgressProps, MeterProps } from "./primitives/Progress.tsx";
137
+ export { NumberField } from "./primitives/NumberField.tsx";
138
+ export type { NumberFieldProps } from "./primitives/NumberField.tsx";
139
+ export { Slider, RangeSlider } from "./primitives/Slider.tsx";
140
+ export type { SliderProps, RangeSliderProps } from "./primitives/Slider.tsx";
141
+ export { Tree, TreeItem } from "./primitives/Tree.tsx";
142
+ export type { TreeProps, TreeItemProps, TreeSelectionMode } from "./primitives/Tree.tsx";
143
+ export { Resizable, ResizablePanel, ResizableHandle } from "./primitives/Resizable.tsx";
144
+ export type { ResizableProps, ResizablePanelProps, ResizableHandleProps, ResizablePersistence } from "./primitives/Resizable.tsx";
package/dist/index.js ADDED
@@ -0,0 +1,75 @@
1
+ import { defaultThemeState as ee, readThemeState as te, resolveThemeState as e } from "./theme/state.js";
2
+ import { createThemeScript as t } from "./theme/script.js";
3
+ import { englishMessages as n } from "./theme/messages.js";
4
+ import { ThemeProvider as r, ThemeScope as i, useTheme as a } from "./theme/ThemeProvider.js";
5
+ import { createKeyboardHydrationScript as o } from "./theme/keyboard-script.js";
6
+ import { cn as s } from "./utils/cn.js";
7
+ import { buttonVariants as c } from "./primitives/button-variants.js";
8
+ import { createShortcutRegistry as l } from "./utils/shortcut-registry.js";
9
+ import { ShortcutProvider as u, usePendingShortcut as d, useShortcut as f, useShortcutBindings as p, useShortcutCommands as m } from "./primitives/ShortcutProvider.js";
10
+ import { Button as h } from "./primitives/Button.js";
11
+ import { Field as g } from "./primitives/Field.js";
12
+ import { Input as _ } from "./primitives/Input.js";
13
+ import { Dialog as v } from "./primitives/Dialog.js";
14
+ import { Drawer as y, Sheet as b } from "./primitives/Drawer.js";
15
+ import { AlertDialog as x } from "./primitives/AlertDialog.js";
16
+ import { ConfirmDialog as S } from "./primitives/ConfirmDialog.js";
17
+ import { createConfirm as C } from "./primitives/create-confirm.js";
18
+ import { Code as w, Heading as T, Kbd as E, Text as D } from "./primitives/Typography.js";
19
+ import { Tooltip as O } from "./primitives/Tooltip.js";
20
+ import { ShortcutSheet as k } from "./primitives/ShortcutSheet.js";
21
+ import { ShortcutPending as A } from "./primitives/ShortcutPending.js";
22
+ import { ShortcutScope as j } from "./primitives/ShortcutScope.js";
23
+ import { LinkTooltip as M } from "./primitives/LinkTooltip.js";
24
+ import { Popover as N } from "./primitives/Popover.js";
25
+ import { DropdownMenu as P } from "./primitives/DropdownMenu.js";
26
+ import { ContextMenu as F } from "./primitives/ContextMenu.js";
27
+ import { CommandPalette as I, commandPaletteFilter as L } from "./primitives/CommandPalette.js";
28
+ import { useIsWindowFocused as R, useOnlineStatus as z } from "./utils/browser-status.js";
29
+ import { optimistic as B } from "./utils/optimistic.js";
30
+ import { createToaster as V } from "./primitives/create-toaster.js";
31
+ import { Toast as H } from "./primitives/Toast.js";
32
+ import { Toaster as U } from "./primitives/Toaster.js";
33
+ import { useDateFormatter as W, useNumberFormatter as G } from "./theme/intl.js";
34
+ import { Center as K, Container as q, Grid as J, Row as Y, Spacer as X, Stack as Z } from "./layout/Layout.js";
35
+ import { Badge as Q, Tag as ne } from "./primitives/Status.js";
36
+ import { Card as re, Surface as ie } from "./primitives/Surface.js";
37
+ import { Separator as ae } from "./primitives/Separator.js";
38
+ import { Alert as oe, Callout as $ } from "./primitives/Notice.js";
39
+ import { DescriptionDetails as se, DescriptionList as ce, DescriptionTerm as le } from "./primitives/DescriptionList.js";
40
+ import { Skeleton as ue } from "./primitives/Skeleton.js";
41
+ import { EmptyState as de } from "./primitives/EmptyState.js";
42
+ import { Spinner as fe } from "./primitives/Spinner.js";
43
+ import { InputGroup as pe } from "./primitives/InputGroup.js";
44
+ import { SearchInput as me } from "./primitives/SearchInput.js";
45
+ import { Textarea as he } from "./primitives/Textarea.js";
46
+ import { EditableTextField as ge } from "./primitives/EditableTextField.js";
47
+ import { Checkbox as _e } from "./primitives/Checkbox.js";
48
+ import { Switch as ve } from "./primitives/Switch.js";
49
+ import { CheckboxGroup as ye } from "./primitives/CheckboxGroup.js";
50
+ import { RadioGroup as be } from "./primitives/RadioGroup.js";
51
+ import { SegmentedControl as xe } from "./primitives/SegmentedControl.js";
52
+ import { TagInput as Se } from "./primitives/TagInput.js";
53
+ import { Meter as Ce, Progress as we } from "./primitives/Progress.js";
54
+ import { FileDropzone as Te } from "./primitives/FileDropzone.js";
55
+ import { ActivityTimeline as Ee } from "./primitives/ActivityTimeline.js";
56
+ import { Link as De } from "./primitives/Link.js";
57
+ import { Stepper as Oe } from "./primitives/Stepper.js";
58
+ import { Select as ke } from "./primitives/Select.js";
59
+ import { Combobox as Ae, MultiCombobox as je } from "./primitives/Combobox.js";
60
+ import { Table as Me, TableBody as Ne, TableCaption as Pe, TableCell as Fe, TableFoot as Ie, TableHead as Le, TableHeaderCell as Re, TableRow as ze } from "./primitives/Table.js";
61
+ import { Breadcrumb as Be } from "./primitives/Breadcrumb.js";
62
+ import { Collapsible as Ve } from "./primitives/Collapsible.js";
63
+ import { Accordion as He, AccordionItem as Ue } from "./primitives/Accordion.js";
64
+ import { Tabs as We } from "./primitives/Tabs.js";
65
+ import { NavItem as Ge, NavList as Ke } from "./primitives/NavList.js";
66
+ import { ScrollArea as qe } from "./primitives/ScrollArea.js";
67
+ import { ButtonGroup as Je } from "./primitives/ButtonGroup.js";
68
+ import { IconButton as Ye } from "./primitives/IconButton.js";
69
+ import { Pagination as Xe } from "./primitives/Pagination.js";
70
+ import { Avatar as Ze, AvatarGroup as Qe } from "./primitives/Avatar.js";
71
+ import { NumberField as $e } from "./primitives/NumberField.js";
72
+ import { RangeSlider as et, Slider as tt } from "./primitives/Slider.js";
73
+ import { Tree as nt, TreeItem as rt } from "./primitives/Tree.js";
74
+ import { Resizable as it, ResizableHandle as at, ResizablePanel as ot } from "./primitives/Resizable.js";
75
+ export { He as Accordion, Ue as AccordionItem, Ee as ActivityTimeline, oe as Alert, x as AlertDialog, Ze as Avatar, Qe as AvatarGroup, Q as Badge, Be as Breadcrumb, h as Button, Je as ButtonGroup, $ as Callout, re as Card, K as Center, _e as Checkbox, ye as CheckboxGroup, Y as Cluster, w as Code, Ve as Collapsible, Ae as Combobox, I as CommandPalette, S as ConfirmDialog, q as Container, F as ContextMenu, se as DescriptionDetails, ce as DescriptionList, le as DescriptionTerm, v as Dialog, y as Drawer, P as DropdownMenu, ge as EditableTextField, de as EmptyState, g as Field, Te as FileDropzone, J as Grid, T as Heading, Ye as IconButton, _ as Input, pe as InputGroup, E as Kbd, De as Link, M as LinkTooltip, Ce as Meter, je as MultiCombobox, Ge as NavItem, Ke as NavList, $e as NumberField, Xe as Pagination, N as Popover, we as Progress, be as RadioGroup, et as RangeSlider, it as Resizable, at as ResizableHandle, ot as ResizablePanel, Y as Row, qe as ScrollArea, me as SearchInput, xe as SegmentedControl, ke as Select, ae as Separator, b as Sheet, A as ShortcutPending, u as ShortcutProvider, j as ShortcutScope, k as ShortcutSheet, ue as Skeleton, tt as Slider, X as Spacer, fe as Spinner, Z as Stack, Oe as Stepper, ie as Surface, ve as Switch, Me as Table, Ne as TableBody, Pe as TableCaption, Fe as TableCell, Ie as TableFoot, Le as TableHead, Re as TableHeaderCell, ze as TableRow, We as Tabs, ne as Tag, Se as TagInput, D as Text, he as Textarea, r as ThemeProvider, i as ThemeScope, H as Toast, U as Toaster, O as Tooltip, nt as Tree, rt as TreeItem, c as buttonVariants, s as cn, L as commandPaletteFilter, C as createConfirm, o as createKeyboardHydrationScript, l as createShortcutRegistry, t as createThemeScript, V as createToaster, ee as defaultThemeState, n as englishMessages, B as optimistic, te as readThemeState, e as resolveThemeState, W as useDateFormatter, R as useIsWindowFocused, G as useNumberFormatter, z as useOnlineStatus, d as usePendingShortcut, f as useShortcut, p as useShortcutBindings, m as useShortcutCommands, a as useTheme };
@@ -0,0 +1,28 @@
1
+ import type { JSX } from "solid-js";
2
+ export type Spacing = "none" | "xs" | "sm" | "md" | "lg" | "xl";
3
+ export type Alignment = "start" | "center" | "end" | "stretch";
4
+ export type Justification = "start" | "center" | "end" | "between";
5
+ export interface StackProps extends JSX.HTMLAttributes<HTMLDivElement> {
6
+ gap?: Spacing;
7
+ align?: Alignment;
8
+ justify?: Justification;
9
+ }
10
+ export interface RowProps extends StackProps {
11
+ wrap?: boolean;
12
+ }
13
+ export interface GridProps extends JSX.HTMLAttributes<HTMLDivElement> {
14
+ columns?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
15
+ gap?: Spacing;
16
+ align?: Alignment;
17
+ }
18
+ export interface ContainerProps extends JSX.HTMLAttributes<HTMLDivElement> {
19
+ padding?: Spacing;
20
+ }
21
+ export type CenterProps = JSX.HTMLAttributes<HTMLDivElement>;
22
+ export type SpacerProps = JSX.HTMLAttributes<HTMLDivElement>;
23
+ export declare function Stack(props: StackProps): JSX.Element;
24
+ export declare function Row(props: RowProps): JSX.Element;
25
+ export declare function Grid(props: GridProps): JSX.Element;
26
+ export declare function Container(props: ContainerProps): JSX.Element;
27
+ export declare function Center(props: CenterProps): JSX.Element;
28
+ export declare function Spacer(props: SpacerProps): JSX.Element;
@@ -0,0 +1,121 @@
1
+ import { cn as e } from "../utils/cn.js";
2
+ import { mergeProps as t, spread as n, template as r } from "solid-js/web";
3
+ import { splitProps as i } from "solid-js";
4
+ //#region src/layout/Layout.tsx
5
+ var a = /*#__PURE__*/ r("<div>");
6
+ function o(r) {
7
+ let [o, s] = i(r, [
8
+ "class",
9
+ "gap",
10
+ "align",
11
+ "justify"
12
+ ]);
13
+ return (() => {
14
+ var r = a();
15
+ return n(r, t(s, {
16
+ get class() {
17
+ return e("sheen-layout sheen-stack", o.class);
18
+ },
19
+ get "data-gap"() {
20
+ return o.gap ?? "md";
21
+ },
22
+ get "data-align"() {
23
+ return o.align ?? "stretch";
24
+ },
25
+ get "data-justify"() {
26
+ return o.justify ?? "start";
27
+ }
28
+ }), !1, !1), r;
29
+ })();
30
+ }
31
+ function s(r) {
32
+ let [o, s] = i(r, [
33
+ "class",
34
+ "gap",
35
+ "align",
36
+ "justify",
37
+ "wrap"
38
+ ]);
39
+ return (() => {
40
+ var r = a();
41
+ return n(r, t(s, {
42
+ get class() {
43
+ return e("sheen-layout sheen-row", o.class);
44
+ },
45
+ get "data-gap"() {
46
+ return o.gap ?? "md";
47
+ },
48
+ get "data-align"() {
49
+ return o.align ?? "center";
50
+ },
51
+ get "data-justify"() {
52
+ return o.justify ?? "start";
53
+ },
54
+ get "data-wrap"() {
55
+ return o.wrap ?? !0;
56
+ }
57
+ }), !1, !1), r;
58
+ })();
59
+ }
60
+ function c(r) {
61
+ let [o, s] = i(r, [
62
+ "class",
63
+ "columns",
64
+ "gap",
65
+ "align"
66
+ ]);
67
+ return (() => {
68
+ var r = a();
69
+ return n(r, t(s, {
70
+ get class() {
71
+ return e("sheen-layout sheen-grid", o.class);
72
+ },
73
+ get "data-columns"() {
74
+ return o.columns ?? 1;
75
+ },
76
+ get "data-gap"() {
77
+ return o.gap ?? "md";
78
+ },
79
+ get "data-align"() {
80
+ return o.align ?? "stretch";
81
+ }
82
+ }), !1, !1), r;
83
+ })();
84
+ }
85
+ function l(r) {
86
+ let [o, s] = i(r, ["class", "padding"]);
87
+ return (() => {
88
+ var r = a();
89
+ return n(r, t(s, {
90
+ get class() {
91
+ return e("sheen-layout sheen-container", o.class);
92
+ },
93
+ get "data-gap"() {
94
+ return o.padding ?? "md";
95
+ }
96
+ }), !1, !1), r;
97
+ })();
98
+ }
99
+ function u(r) {
100
+ let [o, s] = i(r, ["class"]);
101
+ return (() => {
102
+ var r = a();
103
+ return n(r, t(s, { get class() {
104
+ return e("sheen-layout sheen-center", o.class);
105
+ } }), !1, !1), r;
106
+ })();
107
+ }
108
+ function d(r) {
109
+ let [o, s] = i(r, ["class"]);
110
+ return (() => {
111
+ var r = a();
112
+ return n(r, t(s, {
113
+ get class() {
114
+ return e("sheen-layout sheen-spacer", o.class);
115
+ },
116
+ "aria-hidden": "true"
117
+ }), !1, !1), r;
118
+ })();
119
+ }
120
+ //#endregion
121
+ export { u as Center, l as Container, c as Grid, s as Row, d as Spacer, o as Stack };