@gemologic/sheen 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES.md +1 -1
  3. package/dist/ai.d.ts +8 -0
  4. package/dist/ai.js +5 -0
  5. package/dist/core.d.ts +11 -4
  6. package/dist/core.js +32 -28
  7. package/dist/formisch.js +1 -2
  8. package/dist/forms.d.ts +2 -0
  9. package/dist/forms.js +16 -15
  10. package/dist/index.d.ts +25 -5
  11. package/dist/index.js +86 -76
  12. package/dist/layout/Layout.js +1 -2
  13. package/dist/metadata.js +1 -2
  14. package/dist/navigation.d.ts +2 -1
  15. package/dist/navigation.js +16 -16
  16. package/dist/primitives/Accordion.js +9 -9
  17. package/dist/primitives/ActivityTimeline.js +57 -49
  18. package/dist/primitives/AlertDialog.js +1 -2
  19. package/dist/primitives/Avatar.js +16 -17
  20. package/dist/primitives/Board.d.ts +39 -0
  21. package/dist/primitives/Board.js +471 -0
  22. package/dist/primitives/Breadcrumb.js +1 -2
  23. package/dist/primitives/Button.js +38 -27
  24. package/dist/primitives/ButtonGroup.js +1 -2
  25. package/dist/primitives/Checkbox.js +1 -2
  26. package/dist/primitives/CheckboxGroup.js +11 -12
  27. package/dist/primitives/Collapsible.js +6 -6
  28. package/dist/primitives/Combobox.js +203 -201
  29. package/dist/primitives/CommandPalette.js +2 -4
  30. package/dist/primitives/ConfirmDialog.js +5 -6
  31. package/dist/primitives/ContextMenu.js +7 -8
  32. package/dist/primitives/Conversation.d.ts +17 -0
  33. package/dist/primitives/Conversation.js +107 -0
  34. package/dist/primitives/DescriptionList.js +1 -2
  35. package/dist/primitives/Dialog.js +101 -68
  36. package/dist/primitives/Drawer.js +12 -13
  37. package/dist/primitives/DropdownMenu.js +163 -157
  38. package/dist/primitives/EditableTextField.js +3 -8
  39. package/dist/primitives/EmptyState.js +1 -2
  40. package/dist/primitives/Field.js +1 -2
  41. package/dist/primitives/FileDropzone.js +19 -18
  42. package/dist/primitives/Form.d.ts +23 -0
  43. package/dist/primitives/Form.js +76 -0
  44. package/dist/primitives/Glyph.d.ts +40 -0
  45. package/dist/primitives/Glyph.js +65 -0
  46. package/dist/primitives/IconButton.js +5 -6
  47. package/dist/primitives/Input.js +1 -2
  48. package/dist/primitives/InputGroup.js +8 -9
  49. package/dist/primitives/Link.d.ts +9 -1
  50. package/dist/primitives/Link.js +23 -17
  51. package/dist/primitives/LinkTooltip.js +6 -7
  52. package/dist/primitives/List.d.ts +34 -0
  53. package/dist/primitives/List.js +135 -0
  54. package/dist/primitives/Message.d.ts +13 -0
  55. package/dist/primitives/Message.js +75 -0
  56. package/dist/primitives/NavList.js +15 -16
  57. package/dist/primitives/Notice.d.ts +15 -1
  58. package/dist/primitives/Notice.js +91 -43
  59. package/dist/primitives/NumberField.js +81 -81
  60. package/dist/primitives/NumberText.d.ts +4 -0
  61. package/dist/primitives/NumberText.js +50 -25
  62. package/dist/primitives/Pagination.js +81 -60
  63. package/dist/primitives/Popover.js +57 -57
  64. package/dist/primitives/Progress.js +1 -2
  65. package/dist/primitives/PromptInput.d.ts +23 -0
  66. package/dist/primitives/PromptInput.js +135 -0
  67. package/dist/primitives/RadioGroup.js +12 -17
  68. package/dist/primitives/Resizable.js +1 -2
  69. package/dist/primitives/ScrollArea.js +1 -2
  70. package/dist/primitives/SearchInput.js +45 -38
  71. package/dist/primitives/SegmentedControl.d.ts +2 -0
  72. package/dist/primitives/SegmentedControl.js +92 -78
  73. package/dist/primitives/Select.js +105 -100
  74. package/dist/primitives/Separator.js +1 -2
  75. package/dist/primitives/ShortcutPending.js +11 -12
  76. package/dist/primitives/ShortcutProvider.d.ts +5 -0
  77. package/dist/primitives/ShortcutProvider.js +71 -65
  78. package/dist/primitives/ShortcutScope.js +8 -9
  79. package/dist/primitives/ShortcutSheet.js +30 -24
  80. package/dist/primitives/Skeleton.js +1 -2
  81. package/dist/primitives/Slider.js +1 -2
  82. package/dist/primitives/SortableList.d.ts +19 -0
  83. package/dist/primitives/SortableList.js +235 -0
  84. package/dist/primitives/Spinner.js +1 -2
  85. package/dist/primitives/Status.js +14 -14
  86. package/dist/primitives/Stepper.js +54 -52
  87. package/dist/primitives/StreamingText.d.ts +12 -0
  88. package/dist/primitives/StreamingText.js +42 -0
  89. package/dist/primitives/Surface.js +1 -2
  90. package/dist/primitives/Switch.js +1 -2
  91. package/dist/primitives/Table.js +1 -2
  92. package/dist/primitives/Tabs.js +20 -17
  93. package/dist/primitives/TagInput.js +6 -9
  94. package/dist/primitives/Textarea.js +37 -63
  95. package/dist/primitives/Toast.js +42 -41
  96. package/dist/primitives/Toaster.js +27 -28
  97. package/dist/primitives/Tooltip.js +32 -32
  98. package/dist/primitives/Tree.js +1 -2
  99. package/dist/primitives/Typography.d.ts +6 -2
  100. package/dist/primitives/Typography.js +20 -12
  101. package/dist/primitives/boolean-input-state.js +3 -8
  102. package/dist/primitives/button-variants.js +2 -3
  103. package/dist/primitives/choice-options.js +1 -2
  104. package/dist/primitives/create-confirm.js +1 -2
  105. package/dist/primitives/create-toaster.js +1 -2
  106. package/dist/primitives/link-focus.js +1 -2
  107. package/dist/primitives/menu-focus.js +1 -2
  108. package/dist/primitives/sortable-core.d.ts +70 -0
  109. package/dist/primitives/sortable-core.js +109 -0
  110. package/dist/primitives/sortable-drag.d.ts +29 -0
  111. package/dist/primitives/sortable-drag.js +50 -0
  112. package/dist/primitives/tooltip-layer.js +26 -27
  113. package/dist/sortable.d.ts +6 -0
  114. package/dist/sortable.js +4 -0
  115. package/dist/theme/ThemeProvider.d.ts +6 -1
  116. package/dist/theme/ThemeProvider.js +65 -58
  117. package/dist/theme/intl.js +1 -2
  118. package/dist/theme/keyboard-script.js +1 -2
  119. package/dist/theme/layers.js +1 -2
  120. package/dist/theme/messages.d.ts +26 -0
  121. package/dist/theme/messages.js +9 -2
  122. package/dist/theme/number-format-cache.js +1 -2
  123. package/dist/theme/script.d.ts +1 -0
  124. package/dist/theme/script.js +3 -3
  125. package/dist/theme/state.d.ts +4 -4
  126. package/dist/theme/state.js +12 -13
  127. package/dist/utils/auto-resize.d.ts +6 -0
  128. package/dist/utils/auto-resize.js +31 -0
  129. package/dist/utils/browser-status.js +1 -2
  130. package/dist/utils/change-motion.d.ts +8 -0
  131. package/dist/utils/change-motion.js +19 -0
  132. package/dist/utils/cn.js +1 -2
  133. package/dist/utils/media-query.d.ts +10 -0
  134. package/dist/utils/media-query.js +16 -0
  135. package/dist/utils/optimistic.js +1 -2
  136. package/dist/utils/shortcut-platform.js +1 -2
  137. package/dist/utils/shortcut-registry.d.ts +5 -0
  138. package/dist/utils/shortcut-registry.js +61 -51
  139. package/dist/vite.js +3 -4
  140. package/package.json +23 -5
  141. package/src/ai.ts +8 -0
  142. package/src/core.ts +11 -4
  143. package/src/forms.ts +2 -0
  144. package/src/index.ts +25 -5
  145. package/src/navigation.ts +2 -1
  146. package/src/primitives/Accordion.tsx +1 -1
  147. package/src/primitives/ActivityTimeline.tsx +12 -7
  148. package/src/primitives/Board.tsx +406 -0
  149. package/src/primitives/Button.tsx +15 -4
  150. package/src/primitives/Collapsible.tsx +1 -1
  151. package/src/primitives/Combobox.tsx +2 -1
  152. package/src/primitives/CommandPalette.tsx +2 -2
  153. package/src/primitives/Conversation.tsx +108 -0
  154. package/src/primitives/Dialog.tsx +5 -1
  155. package/src/primitives/DropdownMenu.tsx +12 -6
  156. package/src/primitives/FileDropzone.tsx +2 -2
  157. package/src/primitives/Form.tsx +58 -0
  158. package/src/primitives/Glyph.tsx +55 -0
  159. package/src/primitives/Link.tsx +15 -6
  160. package/src/primitives/List.tsx +68 -0
  161. package/src/primitives/Message.tsx +40 -0
  162. package/src/primitives/Notice.tsx +45 -12
  163. package/src/primitives/NumberField.tsx +3 -2
  164. package/src/primitives/NumberText.tsx +31 -4
  165. package/src/primitives/Pagination.tsx +6 -5
  166. package/src/primitives/Popover.tsx +2 -1
  167. package/src/primitives/PromptInput.tsx +116 -0
  168. package/src/primitives/SearchInput.tsx +4 -3
  169. package/src/primitives/SegmentedControl.tsx +29 -4
  170. package/src/primitives/Select.tsx +3 -2
  171. package/src/primitives/ShortcutProvider.tsx +14 -1
  172. package/src/primitives/ShortcutSheet.tsx +1 -1
  173. package/src/primitives/SortableList.tsx +208 -0
  174. package/src/primitives/Status.tsx +1 -1
  175. package/src/primitives/Stepper.tsx +7 -7
  176. package/src/primitives/StreamingText.tsx +32 -0
  177. package/src/primitives/Tabs.tsx +2 -1
  178. package/src/primitives/TagInput.tsx +1 -1
  179. package/src/primitives/Textarea.tsx +3 -47
  180. package/src/primitives/Toast.tsx +2 -1
  181. package/src/primitives/Tooltip.tsx +4 -2
  182. package/src/primitives/Typography.tsx +11 -2
  183. package/src/primitives/button-variants.ts +1 -1
  184. package/src/primitives/sortable-core.ts +139 -0
  185. package/src/primitives/sortable-drag.ts +75 -0
  186. package/src/sortable.ts +6 -0
  187. package/src/styles/ai.css +57 -0
  188. package/src/styles/core.css +321 -0
  189. package/src/styles/forms.css +261 -0
  190. package/src/styles/navigation.css +137 -0
  191. package/src/styles/overlays.css +104 -0
  192. package/src/styles/sortable.css +87 -0
  193. package/src/styles.css +5 -658
  194. package/src/theme/ThemeProvider.tsx +20 -8
  195. package/src/theme/messages.ts +20 -1
  196. package/src/theme/script.ts +2 -2
  197. package/src/theme/state.ts +5 -5
  198. package/src/utils/auto-resize.ts +58 -0
  199. package/src/utils/change-motion.ts +28 -0
  200. package/src/utils/media-query.ts +26 -0
  201. package/src/utils/shortcut-registry.ts +19 -2
  202. package/src/vite.ts +3 -3
  203. package/vendor/integrity.json +13 -13
  204. package/vendor/kobalte-core/chunk/3D6FM2PJ.js +7 -1
  205. package/vendor/kobalte-core/chunk/G3KI2B4X.js +2 -1
  206. package/vendor/kobalte-core/chunk/KEL2LLJM.jsx +2 -1
  207. package/vendor/kobalte-core/chunk/RFN6X5VH.jsx +7 -1
  208. package/vendor/origins.json +4 -4
  209. package/vendor/solid-web/dev.cjs +21 -17
  210. package/vendor/solid-web/dev.js +21 -17
  211. package/vendor/solid-web/server.cjs +1 -1
  212. package/vendor/solid-web/server.js +1 -1
  213. package/vendor/solid-web/web.cjs +21 -17
  214. package/vendor/solid-web/web.js +21 -17
package/README.md CHANGED
@@ -5,7 +5,7 @@ Accessible, themeable SolidJS components for application interfaces. Import the
5
5
  ## Install
6
6
 
7
7
  ```sh
8
- pnpm add @gemologic/sheen @gemologic/sheen-tokens solid-js@1.9.15
8
+ pnpm add @gemologic/sheen @gemologic/sheen-tokens solid-js@1.9.19
9
9
  ```
10
10
 
11
11
  Add the runtime setup plugin to Vite 8 or SolidStart's Vite configuration:
@@ -6,7 +6,7 @@ Sheen contains modified copies of these third-party packages. Sheen's MIT licens
6
6
  | --- | --- | --- |
7
7
  | Kobalte core | 0.13.13 | `vendor/kobalte-core/LICENSE.md` and `NOTICE.txt` |
8
8
  | Kobalte utils | 0.9.2 | `vendor/kobalte-utils/LICENSE.md` and `NOTICE.txt`, retained from the shared Kobalte repository |
9
- | Solid DOM renderer, not its reactive core | 1.9.15 | `vendor/solid-web/LICENSE` |
9
+ | Solid DOM renderer, not its reactive core | 1.9.19 | `vendor/solid-web/LICENSE` |
10
10
  | CMDK Solid adapter | 1.2.0 | `vendor/cmdk-solid/LICENSE`, including the original CMDK attribution |
11
11
 
12
12
  Gemologic Sheen modifies Kobalte's scroll traversal, locale/direction handling, retained layer ordering, focus restoration, dismissal ownership, and deferred autofocus. It modifies Solid's delegated event replay and pending-lazy hydration guard; its renderer's JSX declarations reference the shared Solid peer instead of the original package-relative path. Kobalte references in the vendored backend and CMDK adapter are rewritten to package-private imports. Runtime source-map references are removed because upstream source maps are not distributed.
package/dist/ai.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export { PromptInput } from "./primitives/PromptInput.tsx";
2
+ export type { PromptInputProps, PromptInputStatus } from "./primitives/PromptInput.tsx";
3
+ export { Message } from "./primitives/Message.tsx";
4
+ export type { MessageProps, MessageFrom } from "./primitives/Message.tsx";
5
+ export { Conversation } from "./primitives/Conversation.tsx";
6
+ export type { ConversationProps, ConversationItem } from "./primitives/Conversation.tsx";
7
+ export { StreamingText } from "./primitives/StreamingText.tsx";
8
+ export type { StreamingTextProps } from "./primitives/StreamingText.tsx";
package/dist/ai.js ADDED
@@ -0,0 +1,5 @@
1
+ import { PromptInput as e } from "./primitives/PromptInput.js";
2
+ import { Message as t } from "./primitives/Message.js";
3
+ import { Conversation as n } from "./primitives/Conversation.js";
4
+ import { StreamingText as r } from "./primitives/StreamingText.js";
5
+ export { n as Conversation, t as Message, e as PromptInput, r as StreamingText };
package/dist/core.d.ts CHANGED
@@ -24,16 +24,23 @@ export { optimistic } from "./utils/optimistic.ts";
24
24
  export type { OptimisticRevert } from "./utils/optimistic.ts";
25
25
  export { Stack, Row, Row as Cluster, Grid, Container, Center, Spacer } from "./layout/Layout.tsx";
26
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";
27
+ export { Text, Heading, Code, Kbd, Prose } from "./primitives/Typography.tsx";
28
+ export { Glyph, glyphNames } from "./primitives/Glyph.tsx";
29
+ export { createMediaQuery, useBreakpoint } from "./utils/media-query.ts";
30
+ export { breakpointNames, breakpointQuery, breakpoints } from "@gemologic/sheen-tokens/catalog";
31
+ export type { BreakpointName } from "@gemologic/sheen-tokens/catalog";
32
+ export { List, ListItem } from "./primitives/List.tsx";
33
+ export type { ListProps, ListItemProps } from "./primitives/List.tsx";
34
+ export type { GlyphName, GlyphProps } from "./primitives/Glyph.tsx";
35
+ export type { TextProps, HeadingProps, CodeProps, KbdProps, ProseProps } from "./primitives/Typography.tsx";
29
36
  export { Badge, Tag } from "./primitives/Status.tsx";
30
37
  export type { BadgeProps, TagProps, StatusTone } from "./primitives/Status.tsx";
31
38
  export { Surface, Card } from "./primitives/Surface.tsx";
32
39
  export type { SurfaceProps, CardProps } from "./primitives/Surface.tsx";
33
40
  export { Separator } from "./primitives/Separator.tsx";
34
41
  export type { SeparatorProps } from "./primitives/Separator.tsx";
35
- export { Alert, Callout } from "./primitives/Notice.tsx";
36
- export type { AlertProps, CalloutProps } from "./primitives/Notice.tsx";
42
+ export { Alert, Banner, Callout } from "./primitives/Notice.tsx";
43
+ export type { AlertProps, BannerProps, CalloutProps, NoticeTone } from "./primitives/Notice.tsx";
37
44
  export { DescriptionList, DescriptionTerm, DescriptionDetails } from "./primitives/DescriptionList.tsx";
38
45
  export type { DescriptionListProps, DescriptionTermProps, DescriptionDetailsProps } from "./primitives/DescriptionList.tsx";
39
46
  export { Skeleton } from "./primitives/Skeleton.tsx";
package/dist/core.js CHANGED
@@ -1,29 +1,33 @@
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";
1
+ import { ThemeProvider as e, ThemeScope as t, useTheme as n } from "./theme/ThemeProvider.js";
2
+ import { defaultThemeState as r, readThemeState as i, resolveThemeState as a } from "./theme/state.js";
3
+ import { createThemeScript as o } from "./theme/script.js";
4
+ import { createKeyboardHydrationScript as s } from "./theme/keyboard-script.js";
5
+ import { englishMessages as c } from "./theme/messages.js";
6
+ import { useDateFormatter as l, useNumberFormatter as u } from "./theme/intl.js";
8
7
  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 };
8
+ import { buttonVariants as f } from "./primitives/button-variants.js";
9
+ import { ButtonGroup as p } from "./primitives/ButtonGroup.js";
10
+ import { IconButton as m } from "./primitives/IconButton.js";
11
+ import { Link as h } from "./primitives/Link.js";
12
+ import { cn as g } from "./utils/cn.js";
13
+ import { useIsWindowFocused as _, useOnlineStatus as v } from "./utils/browser-status.js";
14
+ import { optimistic as y } from "./utils/optimistic.js";
15
+ import { Center as b, Container as x, Grid as S, Row as C, Spacer as w, Stack as T } from "./layout/Layout.js";
16
+ import { Code as E, Heading as D, Kbd as O, Prose as k, Text as A } from "./primitives/Typography.js";
17
+ import { Glyph as j, glyphNames as M } from "./primitives/Glyph.js";
18
+ import { createMediaQuery as N, useBreakpoint as P } from "./utils/media-query.js";
19
+ import { List as F, ListItem as I } from "./primitives/List.js";
20
+ import { Badge as L, Tag as ee } from "./primitives/Status.js";
21
+ import { Card as R, Surface as z } from "./primitives/Surface.js";
22
+ import { Separator as B } from "./primitives/Separator.js";
23
+ import { Alert as V, Banner as H, Callout as U } from "./primitives/Notice.js";
24
+ import { DescriptionDetails as W, DescriptionList as G, DescriptionTerm as K } from "./primitives/DescriptionList.js";
25
+ import { Skeleton as q } from "./primitives/Skeleton.js";
26
+ import { EmptyState as J } from "./primitives/EmptyState.js";
27
+ import { Spinner as Y } from "./primitives/Spinner.js";
28
+ import { Table as X, TableBody as Z, TableCaption as Q, TableCell as $, TableFoot as te, TableHead as ne, TableHeaderCell as re, TableRow as ie } from "./primitives/Table.js";
29
+ import { Avatar as ae, AvatarGroup as oe } from "./primitives/Avatar.js";
30
+ import { Meter as se, Progress as ce } from "./primitives/Progress.js";
31
+ import { ActivityTimeline as le } from "./primitives/ActivityTimeline.js";
32
+ import { breakpointNames as ue, breakpointQuery as de, breakpoints as fe } from "@gemologic/sheen-tokens/catalog";
33
+ export { le as ActivityTimeline, V as Alert, ae as Avatar, oe as AvatarGroup, L as Badge, H as Banner, d as Button, p as ButtonGroup, U as Callout, R as Card, b as Center, C as Cluster, E as Code, x as Container, W as DescriptionDetails, G as DescriptionList, K as DescriptionTerm, J as EmptyState, j as Glyph, S as Grid, D as Heading, m as IconButton, O as Kbd, h as Link, F as List, I as ListItem, se as Meter, ce as Progress, k as Prose, C as Row, B as Separator, q as Skeleton, w as Spacer, Y as Spinner, T as Stack, z as Surface, X as Table, Z as TableBody, Q as TableCaption, $ as TableCell, te as TableFoot, ne as TableHead, re as TableHeaderCell, ie as TableRow, ee as Tag, A as Text, e as ThemeProvider, t as ThemeScope, ue as breakpointNames, de as breakpointQuery, fe as breakpoints, f as buttonVariants, g as cn, s as createKeyboardHydrationScript, N as createMediaQuery, o as createThemeScript, r as defaultThemeState, c as englishMessages, M as glyphNames, y as optimistic, i as readThemeState, a as resolveThemeState, P as useBreakpoint, l as useDateFormatter, _ as useIsWindowFocused, u as useNumberFormatter, v as useOnlineStatus, n as useTheme };
package/dist/formisch.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/formisch.ts
1
+ // src/formisch.ts
2
2
  function e(e) {
3
3
  if (e == null) return "";
4
4
  if (typeof e == "string" || typeof e == "number" && Number.isFinite(e)) return e;
@@ -18,5 +18,4 @@ function t(t) {
18
18
  onBlur: () => t.props.onBlur()
19
19
  };
20
20
  }
21
- //#endregion
22
21
  export { t as formischInputProps };
package/dist/forms.d.ts CHANGED
@@ -3,6 +3,8 @@ export type { FieldProps, FieldControlProps } from "./primitives/Field.tsx";
3
3
  export { Input } from "./primitives/Input.tsx";
4
4
  export type { InputProps } from "./primitives/Input.tsx";
5
5
  export { InputGroup } from "./primitives/InputGroup.tsx";
6
+ export { Form, FormSection, FormActions } from "./primitives/Form.tsx";
7
+ export type { FormProps, FormSectionProps, FormActionsProps } from "./primitives/Form.tsx";
6
8
  export type { InputGroupProps } from "./primitives/InputGroup.tsx";
7
9
  export { SearchInput } from "./primitives/SearchInput.tsx";
8
10
  export type { SearchInputProps } from "./primitives/SearchInput.tsx";
package/dist/forms.js CHANGED
@@ -1,18 +1,19 @@
1
1
  import { Field as e } from "./primitives/Field.js";
2
2
  import { Input as t } from "./primitives/Input.js";
3
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 };
4
+ import { Form as r, FormActions as i, FormSection as a } from "./primitives/Form.js";
5
+ import { SearchInput as o } from "./primitives/SearchInput.js";
6
+ import { Textarea as s } from "./primitives/Textarea.js";
7
+ import { EditableTextField as c } from "./primitives/EditableTextField.js";
8
+ import { Checkbox as l } from "./primitives/Checkbox.js";
9
+ import { Switch as u } from "./primitives/Switch.js";
10
+ import { CheckboxGroup as d } from "./primitives/CheckboxGroup.js";
11
+ import { RadioGroup as f } from "./primitives/RadioGroup.js";
12
+ import { SegmentedControl as p } from "./primitives/SegmentedControl.js";
13
+ import { TagInput as m } from "./primitives/TagInput.js";
14
+ import { FileDropzone as h } from "./primitives/FileDropzone.js";
15
+ import { Select as g } from "./primitives/Select.js";
16
+ import { Combobox as _, MultiCombobox as v } from "./primitives/Combobox.js";
17
+ import { NumberField as y } from "./primitives/NumberField.js";
18
+ import { RangeSlider as b, Slider as x } from "./primitives/Slider.js";
19
+ export { l as Checkbox, d as CheckboxGroup, _ as Combobox, c as EditableTextField, e as Field, h as FileDropzone, r as Form, i as FormActions, a as FormSection, t as Input, n as InputGroup, v as MultiCombobox, y as NumberField, f as RadioGroup, b as RangeSlider, o as SearchInput, p as SegmentedControl, g as Select, x as Slider, u as Switch, m as TagInput, s as Textarea };
package/dist/index.d.ts CHANGED
@@ -23,7 +23,8 @@ export { createConfirm } from "./primitives/create-confirm.tsx";
23
23
  export type { ConfirmController, ConfirmOptions } from "./primitives/create-confirm.tsx";
24
24
  export { Tooltip } from "./primitives/Tooltip.tsx";
25
25
  export { createShortcutRegistry } from "./utils/shortcut-registry.ts";
26
- export { ShortcutProvider, useShortcut, usePendingShortcut, useShortcutBindings, useShortcutCommands } from "./primitives/ShortcutProvider.tsx";
26
+ export { ShortcutProvider, useShortcut, useShortcutLabel, usePendingShortcut, useShortcutBindings, useShortcutCommands } from "./primitives/ShortcutProvider.tsx";
27
+ export { formatShortcut } from "./utils/shortcut-registry.ts";
27
28
  export { ShortcutSheet } from "./primitives/ShortcutSheet.tsx";
28
29
  export { ShortcutPending } from "./primitives/ShortcutPending.tsx";
29
30
  export { ShortcutScope } from "./primitives/ShortcutScope.tsx";
@@ -44,6 +45,8 @@ export type { ContextMenuProps } from "./primitives/ContextMenu.tsx";
44
45
  export { CommandPalette, commandPaletteFilter } from "./primitives/CommandPalette.tsx";
45
46
  export type { CommandPaletteProps, CommandPaletteCommand, CommandPaletteSource, CommandPaletteStaticSource, CommandPaletteRemoteSource, CommandPaletteRecents } from "./primitives/CommandPalette.tsx";
46
47
  export { cn } from "./utils/cn.ts";
48
+ export { flashChange } from "./utils/change-motion.ts";
49
+ export type { ChangeDirection } from "./utils/change-motion.ts";
47
50
  export { useOnlineStatus, useIsWindowFocused } from "./utils/browser-status.ts";
48
51
  export { optimistic } from "./utils/optimistic.ts";
49
52
  export type { OptimisticRevert } from "./utils/optimistic.ts";
@@ -58,18 +61,25 @@ export type { Messages } from "./theme/messages.ts";
58
61
  export { useNumberFormatter, useDateFormatter } from "./theme/intl.ts";
59
62
  export { Stack, Row, Row as Cluster, Grid, Container, Center, Spacer } from "./layout/Layout.tsx";
60
63
  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";
64
+ export { Text, Heading, Code, Kbd, Prose } from "./primitives/Typography.tsx";
65
+ export { Glyph, glyphNames } from "./primitives/Glyph.tsx";
66
+ export { createMediaQuery, useBreakpoint } from "./utils/media-query.ts";
67
+ export { breakpointNames, breakpointQuery, breakpoints } from "@gemologic/sheen-tokens/catalog";
68
+ export type { BreakpointName } from "@gemologic/sheen-tokens/catalog";
69
+ export { List, ListItem } from "./primitives/List.tsx";
70
+ export type { ListProps, ListItemProps } from "./primitives/List.tsx";
71
+ export type { GlyphName, GlyphProps } from "./primitives/Glyph.tsx";
62
72
  export { NumberText } from "./primitives/NumberText.tsx";
63
73
  export type { NumberTextProps } from "./primitives/NumberText.tsx";
64
- export type { TextProps, HeadingProps, CodeProps, KbdProps } from "./primitives/Typography.tsx";
74
+ export type { TextProps, HeadingProps, CodeProps, KbdProps, ProseProps } from "./primitives/Typography.tsx";
65
75
  export { Badge, Tag } from "./primitives/Status.tsx";
66
76
  export type { BadgeProps, TagProps, StatusTone } from "./primitives/Status.tsx";
67
77
  export { Surface, Card } from "./primitives/Surface.tsx";
68
78
  export type { SurfaceProps, CardProps } from "./primitives/Surface.tsx";
69
79
  export { Separator } from "./primitives/Separator.tsx";
70
80
  export type { SeparatorProps } from "./primitives/Separator.tsx";
71
- export { Alert, Callout } from "./primitives/Notice.tsx";
72
- export type { AlertProps, CalloutProps } from "./primitives/Notice.tsx";
81
+ export { Alert, Banner, Callout } from "./primitives/Notice.tsx";
82
+ export type { AlertProps, BannerProps, CalloutProps, NoticeTone } from "./primitives/Notice.tsx";
73
83
  export { DescriptionList, DescriptionTerm, DescriptionDetails } from "./primitives/DescriptionList.tsx";
74
84
  export type { DescriptionListProps, DescriptionTermProps, DescriptionDetailsProps } from "./primitives/DescriptionList.tsx";
75
85
  export { Skeleton } from "./primitives/Skeleton.tsx";
@@ -81,6 +91,8 @@ export type { SpinnerProps } from "./primitives/Spinner.tsx";
81
91
  export { Field } from "./primitives/Field.tsx";
82
92
  export type { FieldProps, FieldControlProps } from "./primitives/Field.tsx";
83
93
  export { InputGroup } from "./primitives/InputGroup.tsx";
94
+ export { Form, FormSection, FormActions } from "./primitives/Form.tsx";
95
+ export type { FormProps, FormSectionProps, FormActionsProps } from "./primitives/Form.tsx";
84
96
  export type { InputGroupProps } from "./primitives/InputGroup.tsx";
85
97
  export { SearchInput } from "./primitives/SearchInput.tsx";
86
98
  export type { SearchInputProps } from "./primitives/SearchInput.tsx";
@@ -144,3 +156,11 @@ export { Tree, TreeItem } from "./primitives/Tree.tsx";
144
156
  export type { TreeProps, TreeItemProps, TreeSelectionMode } from "./primitives/Tree.tsx";
145
157
  export { Resizable, ResizablePanel, ResizableHandle } from "./primitives/Resizable.tsx";
146
158
  export type { ResizableProps, ResizablePanelProps, ResizableHandleProps, ResizablePersistence } from "./primitives/Resizable.tsx";
159
+ export { PromptInput } from "./primitives/PromptInput.tsx";
160
+ export type { PromptInputProps, PromptInputStatus } from "./primitives/PromptInput.tsx";
161
+ export { Message } from "./primitives/Message.tsx";
162
+ export type { MessageProps, MessageFrom } from "./primitives/Message.tsx";
163
+ export { Conversation } from "./primitives/Conversation.tsx";
164
+ export type { ConversationProps, ConversationItem } from "./primitives/Conversation.tsx";
165
+ export { StreamingText } from "./primitives/StreamingText.tsx";
166
+ export type { StreamingTextProps } from "./primitives/StreamingText.tsx";
package/dist/index.js CHANGED
@@ -1,76 +1,86 @@
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 { NumberText as Q } from "./primitives/NumberText.js";
36
- import { Badge as ne, Tag as re } from "./primitives/Status.js";
37
- import { Card as ie, Surface as ae } from "./primitives/Surface.js";
38
- import { Separator as oe } from "./primitives/Separator.js";
39
- import { Alert as $, Callout as se } from "./primitives/Notice.js";
40
- import { DescriptionDetails as ce, DescriptionList as le, DescriptionTerm as ue } from "./primitives/DescriptionList.js";
41
- import { Skeleton as de } from "./primitives/Skeleton.js";
42
- import { EmptyState as fe } from "./primitives/EmptyState.js";
43
- import { Spinner as pe } from "./primitives/Spinner.js";
44
- import { InputGroup as me } from "./primitives/InputGroup.js";
45
- import { SearchInput as he } from "./primitives/SearchInput.js";
46
- import { Textarea as ge } from "./primitives/Textarea.js";
47
- import { EditableTextField as _e } from "./primitives/EditableTextField.js";
48
- import { Checkbox as ve } from "./primitives/Checkbox.js";
49
- import { Switch as ye } from "./primitives/Switch.js";
50
- import { CheckboxGroup as be } from "./primitives/CheckboxGroup.js";
51
- import { RadioGroup as xe } from "./primitives/RadioGroup.js";
52
- import { SegmentedControl as Se } from "./primitives/SegmentedControl.js";
53
- import { TagInput as Ce } from "./primitives/TagInput.js";
54
- import { Meter as we, Progress as Te } from "./primitives/Progress.js";
55
- import { FileDropzone as Ee } from "./primitives/FileDropzone.js";
56
- import { ActivityTimeline as De } from "./primitives/ActivityTimeline.js";
57
- import { Link as Oe } from "./primitives/Link.js";
58
- import { Stepper as ke } from "./primitives/Stepper.js";
59
- import { Select as Ae } from "./primitives/Select.js";
60
- import { Combobox as je, MultiCombobox as Me } from "./primitives/Combobox.js";
61
- import { Table as Ne, TableBody as Pe, TableCaption as Fe, TableCell as Ie, TableFoot as Le, TableHead as Re, TableHeaderCell as ze, TableRow as Be } from "./primitives/Table.js";
62
- import { Breadcrumb as Ve } from "./primitives/Breadcrumb.js";
63
- import { Collapsible as He } from "./primitives/Collapsible.js";
64
- import { Accordion as Ue, AccordionItem as We } from "./primitives/Accordion.js";
65
- import { Tabs as Ge } from "./primitives/Tabs.js";
66
- import { NavItem as Ke, NavList as qe } from "./primitives/NavList.js";
67
- import { ScrollArea as Je } from "./primitives/ScrollArea.js";
68
- import { ButtonGroup as Ye } from "./primitives/ButtonGroup.js";
69
- import { IconButton as Xe } from "./primitives/IconButton.js";
70
- import { Pagination as Ze } from "./primitives/Pagination.js";
71
- import { Avatar as Qe, AvatarGroup as $e } from "./primitives/Avatar.js";
72
- import { NumberField as et } from "./primitives/NumberField.js";
73
- import { RangeSlider as tt, Slider as nt } from "./primitives/Slider.js";
74
- import { Tree as rt, TreeItem as it } from "./primitives/Tree.js";
75
- import { Resizable as at, ResizableHandle as ot, ResizablePanel as st } from "./primitives/Resizable.js";
76
- export { Ue as Accordion, We as AccordionItem, De as ActivityTimeline, $ as Alert, x as AlertDialog, Qe as Avatar, $e as AvatarGroup, ne as Badge, Ve as Breadcrumb, h as Button, Ye as ButtonGroup, se as Callout, ie as Card, K as Center, ve as Checkbox, be as CheckboxGroup, Y as Cluster, w as Code, He as Collapsible, je as Combobox, I as CommandPalette, S as ConfirmDialog, q as Container, F as ContextMenu, ce as DescriptionDetails, le as DescriptionList, ue as DescriptionTerm, v as Dialog, y as Drawer, P as DropdownMenu, _e as EditableTextField, fe as EmptyState, g as Field, Ee as FileDropzone, J as Grid, T as Heading, Xe as IconButton, _ as Input, me as InputGroup, E as Kbd, Oe as Link, M as LinkTooltip, we as Meter, Me as MultiCombobox, Ke as NavItem, qe as NavList, et as NumberField, Q as NumberText, Ze as Pagination, N as Popover, Te as Progress, xe as RadioGroup, tt as RangeSlider, at as Resizable, ot as ResizableHandle, st as ResizablePanel, Y as Row, Je as ScrollArea, he as SearchInput, Se as SegmentedControl, Ae as Select, oe as Separator, b as Sheet, A as ShortcutPending, u as ShortcutProvider, j as ShortcutScope, k as ShortcutSheet, de as Skeleton, nt as Slider, X as Spacer, pe as Spinner, Z as Stack, ke as Stepper, ae as Surface, ye as Switch, Ne as Table, Pe as TableBody, Fe as TableCaption, Ie as TableCell, Le as TableFoot, Re as TableHead, ze as TableHeaderCell, Be as TableRow, Ge as Tabs, re as Tag, Ce as TagInput, D as Text, ge as Textarea, r as ThemeProvider, i as ThemeScope, H as Toast, U as Toaster, O as Tooltip, rt as Tree, it 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 };
1
+ import { ThemeProvider as ee, ThemeScope as te, useTheme as e } from "./theme/ThemeProvider.js";
2
+ import { defaultThemeState as t, readThemeState as n, resolveThemeState as r } from "./theme/state.js";
3
+ import { createThemeScript as i } from "./theme/script.js";
4
+ import { createKeyboardHydrationScript as a } from "./theme/keyboard-script.js";
5
+ import { Button as o } from "./primitives/Button.js";
6
+ import { buttonVariants as s } from "./primitives/button-variants.js";
7
+ import { Input as c } from "./primitives/Input.js";
8
+ import { Dialog as l } from "./primitives/Dialog.js";
9
+ import { Drawer as u, Sheet as d } from "./primitives/Drawer.js";
10
+ import { AlertDialog as f } from "./primitives/AlertDialog.js";
11
+ import { ConfirmDialog as p } from "./primitives/ConfirmDialog.js";
12
+ import { createConfirm as m } from "./primitives/create-confirm.js";
13
+ import { Tooltip as h } from "./primitives/Tooltip.js";
14
+ import { createShortcutRegistry as g, formatShortcut as _ } from "./utils/shortcut-registry.js";
15
+ import { ShortcutProvider as v, usePendingShortcut as y, useShortcut as b, useShortcutBindings as x, useShortcutCommands as S, useShortcutLabel as C } from "./primitives/ShortcutProvider.js";
16
+ import { ShortcutSheet as w } from "./primitives/ShortcutSheet.js";
17
+ import { ShortcutPending as T } from "./primitives/ShortcutPending.js";
18
+ import { ShortcutScope as E } from "./primitives/ShortcutScope.js";
19
+ import { LinkTooltip as D } from "./primitives/LinkTooltip.js";
20
+ import { Popover as O } from "./primitives/Popover.js";
21
+ import { DropdownMenu as k } from "./primitives/DropdownMenu.js";
22
+ import { ContextMenu as A } from "./primitives/ContextMenu.js";
23
+ import { CommandPalette as j, commandPaletteFilter as M } from "./primitives/CommandPalette.js";
24
+ import { cn as N } from "./utils/cn.js";
25
+ import { flashChange as P } from "./utils/change-motion.js";
26
+ import { useIsWindowFocused as F, useOnlineStatus as I } from "./utils/browser-status.js";
27
+ import { optimistic as L } from "./utils/optimistic.js";
28
+ import { createToaster as R } from "./primitives/create-toaster.js";
29
+ import { Toast as z } from "./primitives/Toast.js";
30
+ import { Toaster as B } from "./primitives/Toaster.js";
31
+ import { englishMessages as V } from "./theme/messages.js";
32
+ import { useDateFormatter as H, useNumberFormatter as U } from "./theme/intl.js";
33
+ import { Center as W, Container as G, Grid as K, Row as q, Spacer as J, Stack as Y } from "./layout/Layout.js";
34
+ import { Code as X, Heading as Z, Kbd as Q, Prose as ne, Text as re } from "./primitives/Typography.js";
35
+ import { Glyph as ie, glyphNames as ae } from "./primitives/Glyph.js";
36
+ import { createMediaQuery as oe, useBreakpoint as se } from "./utils/media-query.js";
37
+ import { List as ce, ListItem as le } from "./primitives/List.js";
38
+ import { NumberText as ue } from "./primitives/NumberText.js";
39
+ import { Badge as de, Tag as fe } from "./primitives/Status.js";
40
+ import { Card as pe, Surface as me } from "./primitives/Surface.js";
41
+ import { Separator as he } from "./primitives/Separator.js";
42
+ import { Alert as ge, Banner as _e, Callout as ve } from "./primitives/Notice.js";
43
+ import { DescriptionDetails as ye, DescriptionList as be, DescriptionTerm as xe } from "./primitives/DescriptionList.js";
44
+ import { Skeleton as Se } from "./primitives/Skeleton.js";
45
+ import { EmptyState as $ } from "./primitives/EmptyState.js";
46
+ import { Spinner as Ce } from "./primitives/Spinner.js";
47
+ import { Field as we } from "./primitives/Field.js";
48
+ import { InputGroup as Te } from "./primitives/InputGroup.js";
49
+ import { Form as Ee, FormActions as De, FormSection as Oe } from "./primitives/Form.js";
50
+ import { SearchInput as ke } from "./primitives/SearchInput.js";
51
+ import { Textarea as Ae } from "./primitives/Textarea.js";
52
+ import { EditableTextField as je } from "./primitives/EditableTextField.js";
53
+ import { Checkbox as Me } from "./primitives/Checkbox.js";
54
+ import { Switch as Ne } from "./primitives/Switch.js";
55
+ import { CheckboxGroup as Pe } from "./primitives/CheckboxGroup.js";
56
+ import { RadioGroup as Fe } from "./primitives/RadioGroup.js";
57
+ import { SegmentedControl as Ie } from "./primitives/SegmentedControl.js";
58
+ import { TagInput as Le } from "./primitives/TagInput.js";
59
+ import { FileDropzone as Re } from "./primitives/FileDropzone.js";
60
+ import { ActivityTimeline as ze } from "./primitives/ActivityTimeline.js";
61
+ import { Stepper as Be } from "./primitives/Stepper.js";
62
+ import { Select as Ve } from "./primitives/Select.js";
63
+ import { Combobox as He, MultiCombobox as Ue } from "./primitives/Combobox.js";
64
+ import { Table as We, TableBody as Ge, TableCaption as Ke, TableCell as qe, TableFoot as Je, TableHead as Ye, TableHeaderCell as Xe, TableRow as Ze } from "./primitives/Table.js";
65
+ import { Breadcrumb as Qe } from "./primitives/Breadcrumb.js";
66
+ import { Collapsible as $e } from "./primitives/Collapsible.js";
67
+ import { Accordion as et, AccordionItem as tt } from "./primitives/Accordion.js";
68
+ import { Tabs as nt } from "./primitives/Tabs.js";
69
+ import { NavItem as rt, NavList as it } from "./primitives/NavList.js";
70
+ import { ScrollArea as at } from "./primitives/ScrollArea.js";
71
+ import { ButtonGroup as ot } from "./primitives/ButtonGroup.js";
72
+ import { IconButton as st } from "./primitives/IconButton.js";
73
+ import { Link as ct } from "./primitives/Link.js";
74
+ import { Pagination as lt } from "./primitives/Pagination.js";
75
+ import { Avatar as ut, AvatarGroup as dt } from "./primitives/Avatar.js";
76
+ import { Meter as ft, Progress as pt } from "./primitives/Progress.js";
77
+ import { NumberField as mt } from "./primitives/NumberField.js";
78
+ import { RangeSlider as ht, Slider as gt } from "./primitives/Slider.js";
79
+ import { Tree as _t, TreeItem as vt } from "./primitives/Tree.js";
80
+ import { Resizable as yt, ResizableHandle as bt, ResizablePanel as xt } from "./primitives/Resizable.js";
81
+ import { PromptInput as St } from "./primitives/PromptInput.js";
82
+ import { Message as Ct } from "./primitives/Message.js";
83
+ import { Conversation as wt } from "./primitives/Conversation.js";
84
+ import { StreamingText as Tt } from "./primitives/StreamingText.js";
85
+ import { breakpointNames as Et, breakpointQuery as Dt, breakpoints as Ot } from "@gemologic/sheen-tokens/catalog";
86
+ export { et as Accordion, tt as AccordionItem, ze as ActivityTimeline, ge as Alert, f as AlertDialog, ut as Avatar, dt as AvatarGroup, de as Badge, _e as Banner, Qe as Breadcrumb, o as Button, ot as ButtonGroup, ve as Callout, pe as Card, W as Center, Me as Checkbox, Pe as CheckboxGroup, q as Cluster, X as Code, $e as Collapsible, He as Combobox, j as CommandPalette, p as ConfirmDialog, G as Container, A as ContextMenu, wt as Conversation, ye as DescriptionDetails, be as DescriptionList, xe as DescriptionTerm, l as Dialog, u as Drawer, k as DropdownMenu, je as EditableTextField, $ as EmptyState, we as Field, Re as FileDropzone, Ee as Form, De as FormActions, Oe as FormSection, ie as Glyph, K as Grid, Z as Heading, st as IconButton, c as Input, Te as InputGroup, Q as Kbd, ct as Link, D as LinkTooltip, ce as List, le as ListItem, Ct as Message, ft as Meter, Ue as MultiCombobox, rt as NavItem, it as NavList, mt as NumberField, ue as NumberText, lt as Pagination, O as Popover, pt as Progress, St as PromptInput, ne as Prose, Fe as RadioGroup, ht as RangeSlider, yt as Resizable, bt as ResizableHandle, xt as ResizablePanel, q as Row, at as ScrollArea, ke as SearchInput, Ie as SegmentedControl, Ve as Select, he as Separator, d as Sheet, T as ShortcutPending, v as ShortcutProvider, E as ShortcutScope, w as ShortcutSheet, Se as Skeleton, gt as Slider, J as Spacer, Ce as Spinner, Y as Stack, Be as Stepper, Tt as StreamingText, me as Surface, Ne as Switch, We as Table, Ge as TableBody, Ke as TableCaption, qe as TableCell, Je as TableFoot, Ye as TableHead, Xe as TableHeaderCell, Ze as TableRow, nt as Tabs, fe as Tag, Le as TagInput, re as Text, Ae as Textarea, ee as ThemeProvider, te as ThemeScope, z as Toast, B as Toaster, h as Tooltip, _t as Tree, vt as TreeItem, Et as breakpointNames, Dt as breakpointQuery, Ot as breakpoints, s as buttonVariants, N as cn, M as commandPaletteFilter, m as createConfirm, a as createKeyboardHydrationScript, oe as createMediaQuery, g as createShortcutRegistry, i as createThemeScript, R as createToaster, t as defaultThemeState, V as englishMessages, P as flashChange, _ as formatShortcut, ae as glyphNames, L as optimistic, n as readThemeState, r as resolveThemeState, se as useBreakpoint, H as useDateFormatter, F as useIsWindowFocused, U as useNumberFormatter, I as useOnlineStatus, y as usePendingShortcut, b as useShortcut, x as useShortcutBindings, S as useShortcutCommands, C as useShortcutLabel, e as useTheme };
@@ -1,7 +1,7 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { mergeProps as t, spread as n, template as r } from "solid-js/web";
3
3
  import { splitProps as i } from "solid-js";
4
- //#region src/layout/Layout.tsx
4
+ // src/layout/Layout.tsx
5
5
  var a = /*#__PURE__*/ r("<div>");
6
6
  function o(r) {
7
7
  let [o, s] = i(r, [
@@ -117,5 +117,4 @@ function d(r) {
117
117
  }), !1, !1), r;
118
118
  })();
119
119
  }
120
- //#endregion
121
120
  export { u as Center, l as Container, c as Grid, s as Row, d as Spacer, o as Stack };
package/dist/metadata.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/metadata.ts
1
+ // src/metadata.ts
2
2
  var e = [
3
3
  "root",
4
4
  "topbar",
@@ -43,5 +43,4 @@ function s(e) {
43
43
  let n = e.composer;
44
44
  return (n === void 0 || r(n) && t(n.allowedParentRegions) && n.allowedParentRegions.length > 0 && a(n.acceptedChildRegions) && a(n.editableSafeProps) && i(n.fixtureFactory) && i(n.codeGenerationAdapter)) && a(e.tokens) && r(e.a11y) && i(e.a11y.role) && a(e.a11y.keyboard) && Array.isArray(e.examples) && e.examples.length > 0 && e.examples.every((e) => r(e) && i(e.title) && i(e.code) && (e.imports === void 0 || typeof e.imports == "string") && (e.setup === void 0 || typeof e.setup == "string")) && r(e.guidance) && a(e.guidance.do) && a(e.guidance.dont);
45
45
  }
46
- //#endregion
47
46
  export { n as defineMeta, s as isComponentMetadata };
@@ -1,6 +1,7 @@
1
1
  export { createShortcutRegistry } from "./utils/shortcut-registry.ts";
2
2
  export type { PendingShortcut, ShortcutAction, ShortcutBinding, ShortcutDefinition, ShortcutInput, ShortcutRegistryOptions } from "./utils/shortcut-registry.ts";
3
- export { ShortcutProvider, useShortcut, usePendingShortcut, useShortcutBindings, useShortcutCommands } from "./primitives/ShortcutProvider.tsx";
3
+ export { ShortcutProvider, useShortcut, useShortcutLabel, usePendingShortcut, useShortcutBindings, useShortcutCommands } from "./primitives/ShortcutProvider.tsx";
4
+ export { formatShortcut } from "./utils/shortcut-registry.ts";
4
5
  export type { ShortcutProviderProps } from "./primitives/ShortcutProvider.tsx";
5
6
  export { ShortcutSheet } from "./primitives/ShortcutSheet.tsx";
6
7
  export type { ShortcutSheetProps } from "./primitives/ShortcutSheet.tsx";
@@ -1,16 +1,16 @@
1
- import { createShortcutRegistry as e } from "./utils/shortcut-registry.js";
2
- import { ShortcutProvider as t, usePendingShortcut as n, useShortcut as r, useShortcutBindings as i, useShortcutCommands as a } from "./primitives/ShortcutProvider.js";
3
- import { ShortcutSheet as o } from "./primitives/ShortcutSheet.js";
4
- import { ShortcutPending as s } from "./primitives/ShortcutPending.js";
5
- import { ShortcutScope as c } from "./primitives/ShortcutScope.js";
6
- import { Stepper as l } from "./primitives/Stepper.js";
7
- import { Breadcrumb as u } from "./primitives/Breadcrumb.js";
8
- import { Collapsible as d } from "./primitives/Collapsible.js";
9
- import { Accordion as f, AccordionItem as p } from "./primitives/Accordion.js";
10
- import { Tabs as m } from "./primitives/Tabs.js";
11
- import { NavItem as h, NavList as g } from "./primitives/NavList.js";
12
- import { ScrollArea as _ } from "./primitives/ScrollArea.js";
13
- import { Pagination as v } from "./primitives/Pagination.js";
14
- import { Tree as y, TreeItem as b } from "./primitives/Tree.js";
15
- import { Resizable as x, ResizableHandle as S, ResizablePanel as C } from "./primitives/Resizable.js";
16
- export { f as Accordion, p as AccordionItem, u as Breadcrumb, d as Collapsible, h as NavItem, g as NavList, v as Pagination, x as Resizable, S as ResizableHandle, C as ResizablePanel, _ as ScrollArea, s as ShortcutPending, t as ShortcutProvider, c as ShortcutScope, o as ShortcutSheet, l as Stepper, m as Tabs, y as Tree, b as TreeItem, e as createShortcutRegistry, n as usePendingShortcut, r as useShortcut, i as useShortcutBindings, a as useShortcutCommands };
1
+ import { createShortcutRegistry as e, formatShortcut as t } from "./utils/shortcut-registry.js";
2
+ import { ShortcutProvider as n, usePendingShortcut as r, useShortcut as i, useShortcutBindings as a, useShortcutCommands as o, useShortcutLabel as s } from "./primitives/ShortcutProvider.js";
3
+ import { ShortcutSheet as c } from "./primitives/ShortcutSheet.js";
4
+ import { ShortcutPending as l } from "./primitives/ShortcutPending.js";
5
+ import { ShortcutScope as u } from "./primitives/ShortcutScope.js";
6
+ import { Breadcrumb as d } from "./primitives/Breadcrumb.js";
7
+ import { Collapsible as f } from "./primitives/Collapsible.js";
8
+ import { Accordion as p, AccordionItem as m } from "./primitives/Accordion.js";
9
+ import { Tabs as h } from "./primitives/Tabs.js";
10
+ import { NavItem as g, NavList as _ } from "./primitives/NavList.js";
11
+ import { ScrollArea as v } from "./primitives/ScrollArea.js";
12
+ import { Pagination as y } from "./primitives/Pagination.js";
13
+ import { Tree as b, TreeItem as x } from "./primitives/Tree.js";
14
+ import { Resizable as S, ResizableHandle as C, ResizablePanel as w } from "./primitives/Resizable.js";
15
+ import { Stepper as T } from "./primitives/Stepper.js";
16
+ export { p as Accordion, m as AccordionItem, d as Breadcrumb, f as Collapsible, g as NavItem, _ as NavList, y as Pagination, S as Resizable, C as ResizableHandle, w as ResizablePanel, v as ScrollArea, l as ShortcutPending, n as ShortcutProvider, u as ShortcutScope, c as ShortcutSheet, T as Stepper, h as Tabs, b as Tree, x as TreeItem, e as createShortcutRegistry, t as formatShortcut, r as usePendingShortcut, i as useShortcut, a as useShortcutBindings, o as useShortcutCommands, s as useShortcutLabel };
@@ -1,9 +1,9 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { Button as t } from "./Button.js";
1
+ import { Button as e } from "./Button.js";
2
+ import { cn as t } from "../utils/cn.js";
3
3
  import { createComponent as n, effect as r, insert as i, memo as a, mergeProps as o, setAttribute as s, spread as c, template as l, use as u } from "solid-js/web";
4
4
  import { createContext as d, createEffect as f, createMemo as p, createSignal as m, createUniqueId as h, onCleanup as g, onMount as _, splitProps as v, useContext as y } from "solid-js";
5
5
  import * as b from "#sheen-kobalte/accordion";
6
- //#region src/primitives/Accordion.tsx
6
+ // src/primitives/Accordion.tsx
7
7
  var x = /*#__PURE__*/ l("<div>"), S = /*#__PURE__*/ l("<span class=sheen-collapsible-indicator aria-hidden=true>"), C = /*#__PURE__*/ l("<div class=sheen-collapsible-content><div class=sheen-collapsible-clip><div class=sheen-collapsible-body>"), w = d();
8
8
  function T(e) {
9
9
  let t = y(w), [n, r] = v(e, ["onKeyDown", "ref"]), i, a = (e) => [...e.querySelectorAll("[data-sheen-accordion-trigger]")].filter((t) => t.closest("[data-sheen-accordion]") === e);
@@ -77,8 +77,8 @@ function T(e) {
77
77
  }), !1, !1), e;
78
78
  })();
79
79
  }
80
- function E(t) {
81
- let [r, i] = v(t, [
80
+ function E(e) {
81
+ let [r, i] = v(e, [
82
82
  "value",
83
83
  "defaultValue",
84
84
  "onValueChange",
@@ -115,7 +115,7 @@ function E(t) {
115
115
  return r.id ?? `sheen-accordion-${a}`;
116
116
  },
117
117
  get class() {
118
- return e("sheen-accordion", r.class);
118
+ return t("sheen-accordion", r.class);
119
119
  },
120
120
  get value() {
121
121
  return l();
@@ -173,7 +173,7 @@ function D(c) {
173
173
  return m.disabled ?? !1;
174
174
  },
175
175
  get class() {
176
- return e("sheen-accordion-item", m.class);
176
+ return t("sheen-accordion-item", m.class);
177
177
  },
178
178
  get children() {
179
179
  return [n(b.Header, {
@@ -183,7 +183,8 @@ function D(c) {
183
183
  class: "sheen-accordion-heading",
184
184
  get children() {
185
185
  return n(b.Trigger, {
186
- as: t,
186
+ as: e,
187
+ variant: "ghost",
187
188
  ref(e) {
188
189
  var t = D;
189
190
  typeof t == "function" ? t(e) : D = e;
@@ -219,5 +220,4 @@ function D(c) {
219
220
  }
220
221
  }));
221
222
  }
222
- //#endregion
223
223
  export { E as Accordion, D as AccordionItem };