@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.
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/ai.d.ts +8 -0
- package/dist/ai.js +5 -0
- package/dist/core.d.ts +11 -4
- package/dist/core.js +32 -28
- package/dist/formisch.js +1 -2
- package/dist/forms.d.ts +2 -0
- package/dist/forms.js +16 -15
- package/dist/index.d.ts +25 -5
- package/dist/index.js +86 -76
- package/dist/layout/Layout.js +1 -2
- package/dist/metadata.js +1 -2
- package/dist/navigation.d.ts +2 -1
- package/dist/navigation.js +16 -16
- package/dist/primitives/Accordion.js +9 -9
- package/dist/primitives/ActivityTimeline.js +57 -49
- package/dist/primitives/AlertDialog.js +1 -2
- package/dist/primitives/Avatar.js +16 -17
- package/dist/primitives/Board.d.ts +39 -0
- package/dist/primitives/Board.js +471 -0
- package/dist/primitives/Breadcrumb.js +1 -2
- package/dist/primitives/Button.js +38 -27
- package/dist/primitives/ButtonGroup.js +1 -2
- package/dist/primitives/Checkbox.js +1 -2
- package/dist/primitives/CheckboxGroup.js +11 -12
- package/dist/primitives/Collapsible.js +6 -6
- package/dist/primitives/Combobox.js +203 -201
- package/dist/primitives/CommandPalette.js +2 -4
- package/dist/primitives/ConfirmDialog.js +5 -6
- package/dist/primitives/ContextMenu.js +7 -8
- package/dist/primitives/Conversation.d.ts +17 -0
- package/dist/primitives/Conversation.js +107 -0
- package/dist/primitives/DescriptionList.js +1 -2
- package/dist/primitives/Dialog.js +101 -68
- package/dist/primitives/Drawer.js +12 -13
- package/dist/primitives/DropdownMenu.js +163 -157
- package/dist/primitives/EditableTextField.js +3 -8
- package/dist/primitives/EmptyState.js +1 -2
- package/dist/primitives/Field.js +1 -2
- package/dist/primitives/FileDropzone.js +19 -18
- package/dist/primitives/Form.d.ts +23 -0
- package/dist/primitives/Form.js +76 -0
- package/dist/primitives/Glyph.d.ts +40 -0
- package/dist/primitives/Glyph.js +65 -0
- package/dist/primitives/IconButton.js +5 -6
- package/dist/primitives/Input.js +1 -2
- package/dist/primitives/InputGroup.js +8 -9
- package/dist/primitives/Link.d.ts +9 -1
- package/dist/primitives/Link.js +23 -17
- package/dist/primitives/LinkTooltip.js +6 -7
- package/dist/primitives/List.d.ts +34 -0
- package/dist/primitives/List.js +135 -0
- package/dist/primitives/Message.d.ts +13 -0
- package/dist/primitives/Message.js +75 -0
- package/dist/primitives/NavList.js +15 -16
- package/dist/primitives/Notice.d.ts +15 -1
- package/dist/primitives/Notice.js +91 -43
- package/dist/primitives/NumberField.js +81 -81
- package/dist/primitives/NumberText.d.ts +4 -0
- package/dist/primitives/NumberText.js +50 -25
- package/dist/primitives/Pagination.js +81 -60
- package/dist/primitives/Popover.js +57 -57
- package/dist/primitives/Progress.js +1 -2
- package/dist/primitives/PromptInput.d.ts +23 -0
- package/dist/primitives/PromptInput.js +135 -0
- package/dist/primitives/RadioGroup.js +12 -17
- package/dist/primitives/Resizable.js +1 -2
- package/dist/primitives/ScrollArea.js +1 -2
- package/dist/primitives/SearchInput.js +45 -38
- package/dist/primitives/SegmentedControl.d.ts +2 -0
- package/dist/primitives/SegmentedControl.js +92 -78
- package/dist/primitives/Select.js +105 -100
- package/dist/primitives/Separator.js +1 -2
- package/dist/primitives/ShortcutPending.js +11 -12
- package/dist/primitives/ShortcutProvider.d.ts +5 -0
- package/dist/primitives/ShortcutProvider.js +71 -65
- package/dist/primitives/ShortcutScope.js +8 -9
- package/dist/primitives/ShortcutSheet.js +30 -24
- package/dist/primitives/Skeleton.js +1 -2
- package/dist/primitives/Slider.js +1 -2
- package/dist/primitives/SortableList.d.ts +19 -0
- package/dist/primitives/SortableList.js +235 -0
- package/dist/primitives/Spinner.js +1 -2
- package/dist/primitives/Status.js +14 -14
- package/dist/primitives/Stepper.js +54 -52
- package/dist/primitives/StreamingText.d.ts +12 -0
- package/dist/primitives/StreamingText.js +42 -0
- package/dist/primitives/Surface.js +1 -2
- package/dist/primitives/Switch.js +1 -2
- package/dist/primitives/Table.js +1 -2
- package/dist/primitives/Tabs.js +20 -17
- package/dist/primitives/TagInput.js +6 -9
- package/dist/primitives/Textarea.js +37 -63
- package/dist/primitives/Toast.js +42 -41
- package/dist/primitives/Toaster.js +27 -28
- package/dist/primitives/Tooltip.js +32 -32
- package/dist/primitives/Tree.js +1 -2
- package/dist/primitives/Typography.d.ts +6 -2
- package/dist/primitives/Typography.js +20 -12
- package/dist/primitives/boolean-input-state.js +3 -8
- package/dist/primitives/button-variants.js +2 -3
- package/dist/primitives/choice-options.js +1 -2
- package/dist/primitives/create-confirm.js +1 -2
- package/dist/primitives/create-toaster.js +1 -2
- package/dist/primitives/link-focus.js +1 -2
- package/dist/primitives/menu-focus.js +1 -2
- package/dist/primitives/sortable-core.d.ts +70 -0
- package/dist/primitives/sortable-core.js +109 -0
- package/dist/primitives/sortable-drag.d.ts +29 -0
- package/dist/primitives/sortable-drag.js +50 -0
- package/dist/primitives/tooltip-layer.js +26 -27
- package/dist/sortable.d.ts +6 -0
- package/dist/sortable.js +4 -0
- package/dist/theme/ThemeProvider.d.ts +6 -1
- package/dist/theme/ThemeProvider.js +65 -58
- package/dist/theme/intl.js +1 -2
- package/dist/theme/keyboard-script.js +1 -2
- package/dist/theme/layers.js +1 -2
- package/dist/theme/messages.d.ts +26 -0
- package/dist/theme/messages.js +9 -2
- package/dist/theme/number-format-cache.js +1 -2
- package/dist/theme/script.d.ts +1 -0
- package/dist/theme/script.js +3 -3
- package/dist/theme/state.d.ts +4 -4
- package/dist/theme/state.js +12 -13
- package/dist/utils/auto-resize.d.ts +6 -0
- package/dist/utils/auto-resize.js +31 -0
- package/dist/utils/browser-status.js +1 -2
- package/dist/utils/change-motion.d.ts +8 -0
- package/dist/utils/change-motion.js +19 -0
- package/dist/utils/cn.js +1 -2
- package/dist/utils/media-query.d.ts +10 -0
- package/dist/utils/media-query.js +16 -0
- package/dist/utils/optimistic.js +1 -2
- package/dist/utils/shortcut-platform.js +1 -2
- package/dist/utils/shortcut-registry.d.ts +5 -0
- package/dist/utils/shortcut-registry.js +61 -51
- package/dist/vite.js +3 -4
- package/package.json +23 -5
- package/src/ai.ts +8 -0
- package/src/core.ts +11 -4
- package/src/forms.ts +2 -0
- package/src/index.ts +25 -5
- package/src/navigation.ts +2 -1
- package/src/primitives/Accordion.tsx +1 -1
- package/src/primitives/ActivityTimeline.tsx +12 -7
- package/src/primitives/Board.tsx +406 -0
- package/src/primitives/Button.tsx +15 -4
- package/src/primitives/Collapsible.tsx +1 -1
- package/src/primitives/Combobox.tsx +2 -1
- package/src/primitives/CommandPalette.tsx +2 -2
- package/src/primitives/Conversation.tsx +108 -0
- package/src/primitives/Dialog.tsx +5 -1
- package/src/primitives/DropdownMenu.tsx +12 -6
- package/src/primitives/FileDropzone.tsx +2 -2
- package/src/primitives/Form.tsx +58 -0
- package/src/primitives/Glyph.tsx +55 -0
- package/src/primitives/Link.tsx +15 -6
- package/src/primitives/List.tsx +68 -0
- package/src/primitives/Message.tsx +40 -0
- package/src/primitives/Notice.tsx +45 -12
- package/src/primitives/NumberField.tsx +3 -2
- package/src/primitives/NumberText.tsx +31 -4
- package/src/primitives/Pagination.tsx +6 -5
- package/src/primitives/Popover.tsx +2 -1
- package/src/primitives/PromptInput.tsx +116 -0
- package/src/primitives/SearchInput.tsx +4 -3
- package/src/primitives/SegmentedControl.tsx +29 -4
- package/src/primitives/Select.tsx +3 -2
- package/src/primitives/ShortcutProvider.tsx +14 -1
- package/src/primitives/ShortcutSheet.tsx +1 -1
- package/src/primitives/SortableList.tsx +208 -0
- package/src/primitives/Status.tsx +1 -1
- package/src/primitives/Stepper.tsx +7 -7
- package/src/primitives/StreamingText.tsx +32 -0
- package/src/primitives/Tabs.tsx +2 -1
- package/src/primitives/TagInput.tsx +1 -1
- package/src/primitives/Textarea.tsx +3 -47
- package/src/primitives/Toast.tsx +2 -1
- package/src/primitives/Tooltip.tsx +4 -2
- package/src/primitives/Typography.tsx +11 -2
- package/src/primitives/button-variants.ts +1 -1
- package/src/primitives/sortable-core.ts +139 -0
- package/src/primitives/sortable-drag.ts +75 -0
- package/src/sortable.ts +6 -0
- package/src/styles/ai.css +57 -0
- package/src/styles/core.css +321 -0
- package/src/styles/forms.css +261 -0
- package/src/styles/navigation.css +137 -0
- package/src/styles/overlays.css +104 -0
- package/src/styles/sortable.css +87 -0
- package/src/styles.css +5 -658
- package/src/theme/ThemeProvider.tsx +20 -8
- package/src/theme/messages.ts +20 -1
- package/src/theme/script.ts +2 -2
- package/src/theme/state.ts +5 -5
- package/src/utils/auto-resize.ts +58 -0
- package/src/utils/change-motion.ts +28 -0
- package/src/utils/media-query.ts +26 -0
- package/src/utils/shortcut-registry.ts +19 -2
- package/src/vite.ts +3 -3
- package/vendor/integrity.json +13 -13
- package/vendor/kobalte-core/chunk/3D6FM2PJ.js +7 -1
- package/vendor/kobalte-core/chunk/G3KI2B4X.js +2 -1
- package/vendor/kobalte-core/chunk/KEL2LLJM.jsx +2 -1
- package/vendor/kobalte-core/chunk/RFN6X5VH.jsx +7 -1
- package/vendor/origins.json +4 -4
- package/vendor/solid-web/dev.cjs +21 -17
- package/vendor/solid-web/dev.js +21 -17
- package/vendor/solid-web/server.cjs +1 -1
- package/vendor/solid-web/server.js +1 -1
- package/vendor/solid-web/web.cjs +21 -17
- 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.
|
|
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:
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -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.
|
|
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
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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 {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
|
|
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
|
-
|
|
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 {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
|
|
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 };
|
package/dist/layout/Layout.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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 };
|
package/dist/navigation.d.ts
CHANGED
|
@@ -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";
|
package/dist/navigation.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { createShortcutRegistry as e } from "./utils/shortcut-registry.js";
|
|
2
|
-
import { ShortcutProvider as
|
|
3
|
-
import { ShortcutSheet as
|
|
4
|
-
import { ShortcutPending as
|
|
5
|
-
import { ShortcutScope as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
export {
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
-
|
|
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(
|
|
81
|
-
let [r, i] = v(
|
|
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
|
|
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
|
|
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:
|
|
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 };
|