@tasteee/zest 0.1.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 +204 -0
- package/custom-elements.json +15982 -0
- package/dist/components/z-accordion.d.ts +13 -0
- package/dist/components/z-alert-dialog.d.ts +19 -0
- package/dist/components/z-alert.d.ts +19 -0
- package/dist/components/z-attachment-chip.d.ts +36 -0
- package/dist/components/z-attachment-tray.d.ts +32 -0
- package/dist/components/z-aura.d.ts +17 -0
- package/dist/components/z-avatar-stack.d.ts +15 -0
- package/dist/components/z-avatar.d.ts +28 -0
- package/dist/components/z-badge.d.ts +50 -0
- package/dist/components/z-bento-grid.d.ts +12 -0
- package/dist/components/z-bento-item.d.ts +13 -0
- package/dist/components/z-box.d.ts +130 -0
- package/dist/components/z-breadcrumbs.d.ts +23 -0
- package/dist/components/z-button-group.d.ts +9 -0
- package/dist/components/z-button.d.ts +35 -0
- package/dist/components/z-callout.d.ts +25 -0
- package/dist/components/z-card.d.ts +26 -0
- package/dist/components/z-carousel.d.ts +23 -0
- package/dist/components/z-center.d.ts +28 -0
- package/dist/components/z-chart.d.ts +29 -0
- package/dist/components/z-chassis.d.ts +33 -0
- package/dist/components/z-chat-header.d.ts +29 -0
- package/dist/components/z-chat-shell.d.ts +25 -0
- package/dist/components/z-checkbox.d.ts +39 -0
- package/dist/components/z-citation.d.ts +25 -0
- package/dist/components/z-cluster.d.ts +19 -0
- package/dist/components/z-code-block.d.ts +25 -0
- package/dist/components/z-collapsible.d.ts +30 -0
- package/dist/components/z-color-picker.d.ts +27 -0
- package/dist/components/z-combobox.d.ts +32 -0
- package/dist/components/z-command.d.ts +19 -0
- package/dist/components/z-composer.d.ts +35 -0
- package/dist/components/z-container.d.ts +15 -0
- package/dist/components/z-context-menu.d.ts +19 -0
- package/dist/components/z-conversation-item.d.ts +56 -0
- package/dist/components/z-conversation-list.d.ts +9 -0
- package/dist/components/z-date-divider.d.ts +13 -0
- package/dist/components/z-delivery-status.d.ts +13 -0
- package/dist/components/z-dialog.d.ts +33 -0
- package/dist/components/z-display.d.ts +22 -0
- package/dist/components/z-dock-item.d.ts +16 -0
- package/dist/components/z-dock.d.ts +17 -0
- package/dist/components/z-drag-drop.d.ts +63 -0
- package/dist/components/z-drawer.d.ts +25 -0
- package/dist/components/z-dropzone.d.ts +32 -0
- package/dist/components/z-editor-canvas.d.ts +90 -0
- package/dist/components/z-emoji-picker.d.ts +11 -0
- package/dist/components/z-empty-state.d.ts +19 -0
- package/dist/components/z-eyebrow.d.ts +22 -0
- package/dist/components/z-file-attachment.d.ts +25 -0
- package/dist/components/z-filter.d.ts +30 -0
- package/dist/components/z-grid.d.ts +19 -0
- package/dist/components/z-hover-card.d.ts +26 -0
- package/dist/components/z-image-message.d.ts +24 -0
- package/dist/components/z-input-otp.d.ts +43 -0
- package/dist/components/z-input.d.ts +56 -0
- package/dist/components/z-kbd.d.ts +14 -0
- package/dist/components/z-line.d.ts +13 -0
- package/dist/components/z-link.d.ts +36 -0
- package/dist/components/z-list-row.d.ts +13 -0
- package/dist/components/z-list.d.ts +14 -0
- package/dist/components/z-markdown.d.ts +34 -0
- package/dist/components/z-marquee.d.ts +27 -0
- package/dist/components/z-menu.d.ts +23 -0
- package/dist/components/z-message-actions.d.ts +31 -0
- package/dist/components/z-message-bubble.d.ts +21 -0
- package/dist/components/z-message-group.d.ts +41 -0
- package/dist/components/z-message-list.d.ts +20 -0
- package/dist/components/z-model-picker.d.ts +31 -0
- package/dist/components/z-nav-menu.d.ts +23 -0
- package/dist/components/z-pagination.d.ts +28 -0
- package/dist/components/z-panel.d.ts +33 -0
- package/dist/components/z-pattern-roll.d.ts +74 -0
- package/dist/components/z-piano-roll.d.ts +82 -0
- package/dist/components/z-pointer-follow.d.ts +18 -0
- package/dist/components/z-popover.d.ts +27 -0
- package/dist/components/z-post-meta.d.ts +14 -0
- package/dist/components/z-progress.d.ts +29 -0
- package/dist/components/z-progressive-blur.d.ts +19 -0
- package/dist/components/z-quoted-message.d.ts +32 -0
- package/dist/components/z-radio-group.d.ts +21 -0
- package/dist/components/z-radio.d.ts +25 -0
- package/dist/components/z-range-handle.d.ts +26 -0
- package/dist/components/z-range.d.ts +39 -0
- package/dist/components/z-reactions.d.ts +21 -0
- package/dist/components/z-read-receipt.d.ts +20 -0
- package/dist/components/z-relative-time.d.ts +25 -0
- package/dist/components/z-resizable-panels.d.ts +36 -0
- package/dist/components/z-scroll-area.d.ts +15 -0
- package/dist/components/z-scroll.d.ts +22 -0
- package/dist/components/z-section.d.ts +10 -0
- package/dist/components/z-select.d.ts +40 -0
- package/dist/components/z-send-button.d.ts +23 -0
- package/dist/components/z-separator.d.ts +14 -0
- package/dist/components/z-sheet.d.ts +33 -0
- package/dist/components/z-sidebar.d.ts +31 -0
- package/dist/components/z-skeleton.d.ts +23 -0
- package/dist/components/z-slider.d.ts +47 -0
- package/dist/components/z-sortable.d.ts +31 -0
- package/dist/components/z-sources.d.ts +24 -0
- package/dist/components/z-spacer.d.ts +10 -0
- package/dist/components/z-stack.d.ts +31 -0
- package/dist/components/z-stat.d.ts +37 -0
- package/dist/components/z-status-dot.d.ts +25 -0
- package/dist/components/z-streaming-text.d.ts +28 -0
- package/dist/components/z-suggestion-chips.d.ts +20 -0
- package/dist/components/z-surface.d.ts +37 -0
- package/dist/components/z-swap.d.ts +33 -0
- package/dist/components/z-switch.d.ts +35 -0
- package/dist/components/z-system-message.d.ts +13 -0
- package/dist/components/z-table.d.ts +32 -0
- package/dist/components/z-tabs.d.ts +27 -0
- package/dist/components/z-terminal.d.ts +48 -0
- package/dist/components/z-text.d.ts +166 -0
- package/dist/components/z-textarea.d.ts +54 -0
- package/dist/components/z-thinking.d.ts +28 -0
- package/dist/components/z-toast.d.ts +12 -0
- package/dist/components/z-toggle-group-item.d.ts +58 -0
- package/dist/components/z-toggle-group.d.ts +56 -0
- package/dist/components/z-toggle.d.ts +36 -0
- package/dist/components/z-tool-call.d.ts +31 -0
- package/dist/components/z-toolbar-group.d.ts +13 -0
- package/dist/components/z-toolbar.d.ts +21 -0
- package/dist/components/z-tooltip.d.ts +28 -0
- package/dist/components/z-tree.d.ts +50 -0
- package/dist/components/z-typing-indicator.d.ts +17 -0
- package/dist/components/z-unread-divider.d.ts +17 -0
- package/dist/components/z-virtual-list.d.ts +38 -0
- package/dist/index.d.ts +129 -0
- package/dist/ink.css +1 -0
- package/dist/shared/box-schema.d.ts +261 -0
- package/dist/shared/box-styles.d.ts +6 -0
- package/dist/shared/highlight.d.ts +6 -0
- package/dist/shared/layout-schema.d.ts +20 -0
- package/dist/shared/overlay-styles.d.ts +2 -0
- package/dist/shared/overlay.d.ts +50 -0
- package/dist/shared/toggle-schema.d.ts +52 -0
- package/dist/shared/toggle-styles.d.ts +12 -0
- package/dist/zest.js +24695 -0
- package/package.json +85 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import './ink.css';
|
|
2
|
+
export * from './components/z-box';
|
|
3
|
+
export * from './components/z-text';
|
|
4
|
+
export * from './components/z-display';
|
|
5
|
+
export * from './components/z-eyebrow';
|
|
6
|
+
export * from './components/z-card';
|
|
7
|
+
export * from './components/z-line';
|
|
8
|
+
export * from './components/z-separator';
|
|
9
|
+
export * from './components/z-stack';
|
|
10
|
+
export * from './components/z-grid';
|
|
11
|
+
export * from './components/z-bento-grid';
|
|
12
|
+
export * from './components/z-bento-item';
|
|
13
|
+
export * from './components/z-cluster';
|
|
14
|
+
export * from './components/z-center';
|
|
15
|
+
export * from './components/z-container';
|
|
16
|
+
export * from './components/z-section';
|
|
17
|
+
export * from './components/z-surface';
|
|
18
|
+
export * from './components/z-scroll';
|
|
19
|
+
export * from './components/z-spacer';
|
|
20
|
+
export * from './components/z-resizable-panels';
|
|
21
|
+
export * from './components/z-panel';
|
|
22
|
+
export * from './components/z-editor-canvas';
|
|
23
|
+
export * from './components/z-chassis';
|
|
24
|
+
export * from './components/z-drag-drop';
|
|
25
|
+
export * from './components/z-sortable';
|
|
26
|
+
export * from './components/z-dropzone';
|
|
27
|
+
export * from './components/z-virtual-list';
|
|
28
|
+
export * from './components/z-tree';
|
|
29
|
+
export * from './components/z-button';
|
|
30
|
+
export * from './components/z-button-group';
|
|
31
|
+
export * from './components/z-toggle';
|
|
32
|
+
export * from './components/z-toggle-group';
|
|
33
|
+
export * from './components/z-toggle-group-item';
|
|
34
|
+
export * from './components/z-toolbar';
|
|
35
|
+
export * from './components/z-toolbar-group';
|
|
36
|
+
export * from './components/z-swap';
|
|
37
|
+
export * from './components/z-link';
|
|
38
|
+
export * from './components/z-input';
|
|
39
|
+
export * from './components/z-textarea';
|
|
40
|
+
export * from './components/z-checkbox';
|
|
41
|
+
export * from './components/z-switch';
|
|
42
|
+
export * from './components/z-radio';
|
|
43
|
+
export * from './components/z-radio-group';
|
|
44
|
+
export * from './components/z-slider';
|
|
45
|
+
export * from './components/z-range';
|
|
46
|
+
export * from './components/z-range-handle';
|
|
47
|
+
export * from './components/z-select';
|
|
48
|
+
export * from './components/z-combobox';
|
|
49
|
+
export * from './components/z-filter';
|
|
50
|
+
export * from './components/z-color-picker';
|
|
51
|
+
export * from './components/z-input-otp';
|
|
52
|
+
export * from './components/z-badge';
|
|
53
|
+
export * from './components/z-avatar';
|
|
54
|
+
export * from './components/z-avatar-stack';
|
|
55
|
+
export * from './components/z-progress';
|
|
56
|
+
export * from './components/z-skeleton';
|
|
57
|
+
export * from './components/z-table';
|
|
58
|
+
export * from './components/z-pagination';
|
|
59
|
+
export * from './components/z-stat';
|
|
60
|
+
export * from './components/z-relative-time';
|
|
61
|
+
export * from './components/z-status-dot';
|
|
62
|
+
export * from './components/z-kbd';
|
|
63
|
+
export * from './components/z-list';
|
|
64
|
+
export * from './components/z-list-row';
|
|
65
|
+
export * from './components/z-breadcrumbs';
|
|
66
|
+
export * from './components/z-tabs';
|
|
67
|
+
export * from './components/z-collapsible';
|
|
68
|
+
export * from './components/z-accordion';
|
|
69
|
+
export * from './components/z-menu';
|
|
70
|
+
export * from './components/z-nav-menu';
|
|
71
|
+
export * from './components/z-sidebar';
|
|
72
|
+
export * from './components/z-dock';
|
|
73
|
+
export * from './components/z-dock-item';
|
|
74
|
+
export * from './components/z-tooltip';
|
|
75
|
+
export * from './components/z-popover';
|
|
76
|
+
export * from './components/z-hover-card';
|
|
77
|
+
export * from './components/z-dialog';
|
|
78
|
+
export * from './components/z-alert-dialog';
|
|
79
|
+
export * from './components/z-alert';
|
|
80
|
+
export * from './components/z-sheet';
|
|
81
|
+
export * from './components/z-drawer';
|
|
82
|
+
export * from './components/z-context-menu';
|
|
83
|
+
export * from './components/z-toast';
|
|
84
|
+
export * from './components/z-command';
|
|
85
|
+
export * from './components/z-chat-shell';
|
|
86
|
+
export * from './components/z-chat-header';
|
|
87
|
+
export * from './components/z-conversation-list';
|
|
88
|
+
export * from './components/z-conversation-item';
|
|
89
|
+
export * from './components/z-message-list';
|
|
90
|
+
export * from './components/z-message-group';
|
|
91
|
+
export * from './components/z-message-bubble';
|
|
92
|
+
export * from './components/z-message-actions';
|
|
93
|
+
export * from './components/z-reactions';
|
|
94
|
+
export * from './components/z-emoji-picker';
|
|
95
|
+
export * from './components/z-date-divider';
|
|
96
|
+
export * from './components/z-unread-divider';
|
|
97
|
+
export * from './components/z-system-message';
|
|
98
|
+
export * from './components/z-delivery-status';
|
|
99
|
+
export * from './components/z-read-receipt';
|
|
100
|
+
export * from './components/z-quoted-message';
|
|
101
|
+
export * from './components/z-file-attachment';
|
|
102
|
+
export * from './components/z-image-message';
|
|
103
|
+
export * from './components/z-attachment-chip';
|
|
104
|
+
export * from './components/z-attachment-tray';
|
|
105
|
+
export * from './components/z-typing-indicator';
|
|
106
|
+
export * from './components/z-composer';
|
|
107
|
+
export * from './components/z-send-button';
|
|
108
|
+
export * from './components/z-streaming-text';
|
|
109
|
+
export * from './components/z-thinking';
|
|
110
|
+
export * from './components/z-tool-call';
|
|
111
|
+
export * from './components/z-citation';
|
|
112
|
+
export * from './components/z-sources';
|
|
113
|
+
export * from './components/z-suggestion-chips';
|
|
114
|
+
export * from './components/z-model-picker';
|
|
115
|
+
export * from './components/z-callout';
|
|
116
|
+
export * from './components/z-empty-state';
|
|
117
|
+
export * from './components/z-scroll-area';
|
|
118
|
+
export * from './components/z-code-block';
|
|
119
|
+
export * from './components/z-markdown';
|
|
120
|
+
export * from './components/z-terminal';
|
|
121
|
+
export * from './components/z-post-meta';
|
|
122
|
+
export * from './components/z-carousel';
|
|
123
|
+
export * from './components/z-chart';
|
|
124
|
+
export * from './components/z-aura';
|
|
125
|
+
export * from './components/z-marquee';
|
|
126
|
+
export * from './components/z-progressive-blur';
|
|
127
|
+
export * from './components/z-pointer-follow';
|
|
128
|
+
export * from './components/z-piano-roll';
|
|
129
|
+
export * from './components/z-pattern-roll';
|
package/dist/ink.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap";@property --aura-angle{syntax: "<angle>"; inherits: false; initial-value: 0deg;}:root{--base-accent-color-0: lch(62.44 70.29 .86 / 1);--base-accent-color-1: lab(60 40.17 -57.68);--base-success-color: lab(52.2 -46.61 31.61 / 1);--base-warning-color: lch(62.44 70.29 54.86 / 1);--base-danger-color: lch(59.5 75.52 35.8 / 1);--base-success-color: lch(62 58 145 / 1);--base-warning-color: lch(72 78 76 / 1);--base-danger-color: lch(58 72 37 / 1);--base-neutral-color-light: #fff;--base-neutral-color-dark: #0a0f0a;--base-sans-font-family: "DM Sans";--base-mono-font-family: "DM Mono";--base-spacing: .25rem;--base-radius: .625rem;--base-font-size: 16px;--font-size-0: calc(.579rem * var(--base-font-size) / 16);--font-size-1: calc(.694rem * var(--base-font-size) / 16);--font-size-2: calc(.833rem * var(--base-font-size) / 16);--font-size-3: calc(1rem * var(--base-font-size) / 16);--font-size-4: calc(1.25rem * var(--base-font-size) / 16);--font-size-5: calc(1.563rem * var(--base-font-size) / 16);--font-size-6: calc(1.953rem * var(--base-font-size) / 16);--font-size-7: calc(2.441rem * var(--base-font-size) / 16);--font-size-8: calc(3.052rem * var(--base-font-size) / 16);--color-primary-0: oklch(from var(--base-accent-color-0) .18 .1 h);--color-primary-1: oklch(from var(--base-accent-color-0) .28 .14 h);--color-primary-2: oklch(from var(--base-accent-color-0) .38 .18 h);--color-primary-3: oklch(from var(--base-accent-color-0) .52 .22 h);--color-primary-4: var(--base-accent-color-0);--color-primary-5: oklch(from var(--base-accent-color-0) .82 .21 h);--color-primary-6: oklch(from var(--base-accent-color-0) .87 .16 h);--color-primary-7: oklch(from var(--base-accent-color-0) .91 .11 h);--color-primary-8: oklch(from var(--base-accent-color-0) .94 .06 h);--color-primary-9: oklch(from var(--base-accent-color-0) .97 .02 h);--color-secondary-0: oklch(from var(--base-accent-color-1) .15 .1 h);--color-secondary-1: oklch(from var(--base-accent-color-1) .25 .14 h);--color-secondary-2: oklch(from var(--base-accent-color-1) .35 .18 h);--color-secondary-3: oklch(from var(--base-accent-color-1) .5 .22 h);--color-secondary-4: var(--base-accent-color-1);--color-secondary-5: oklch(from var(--base-accent-color-1) .78 .21 h);--color-secondary-6: oklch(from var(--base-accent-color-1) .84 .16 h);--color-secondary-7: oklch(from var(--base-accent-color-1) .89 .1 h);--color-secondary-8: oklch(from var(--base-accent-color-1) .93 .05 h);--color-secondary-9: oklch(from var(--base-accent-color-1) .97 .02 h);--color-neutral-0: oklch(from var(--base-neutral-color-dark) l c h);--color-neutral-1: oklch(from var(--base-neutral-color-dark) .21 c h);--color-neutral-2: oklch(from var(--base-neutral-color-dark) .25 c h);--color-neutral-3: oklch(from var(--base-neutral-color-dark) .31 c h);--color-neutral-4: oklch(from var(--base-neutral-color-dark) .4 c h);--color-neutral-5: oklch(from var(--base-neutral-color-dark) .55 c h);--color-neutral-6: oklch(from var(--base-neutral-color-dark) .68 c h);--color-neutral-7: oklch(from var(--base-neutral-color-dark) .8 c h);--color-neutral-8: oklch(from var(--base-neutral-color-dark) .9 c h);--color-neutral-9: oklch(from var(--base-neutral-color-light) l c h);--spacing-0: 0;--spacing-1: calc(var(--base-spacing) * 1);--spacing-2: calc(var(--base-spacing) * 2);--spacing-3: calc(var(--base-spacing) * 3);--spacing-4: calc(var(--base-spacing) * 4);--spacing-5: calc(var(--base-spacing) * 5);--spacing-6: calc(var(--base-spacing) * 6);--spacing-7: calc(var(--base-spacing) * 7);--spacing-8: calc(var(--base-spacing) * 8);--spacing-9: calc(var(--base-spacing) * 9);--spacing-10: calc(var(--base-spacing) * 10);--spacing-11: calc(var(--base-spacing) * 11);--spacing-12: calc(var(--base-spacing) * 12);--spacing-14: calc(var(--base-spacing) * 14);--spacing-16: calc(var(--base-spacing) * 16);--spacing-20: calc(var(--base-spacing) * 20);--spacing-24: calc(var(--base-spacing) * 24);--spacing-28: calc(var(--base-spacing) * 28);--spacing-32: calc(var(--base-spacing) * 32);--spacing-36: calc(var(--base-spacing) * 36);--spacing-40: calc(var(--base-spacing) * 40)}@supports (color: lab(0% 0 0)){:root{--base-neutral-color-dark: lab(3.87% -2.29438 1.63959)}}:root{--color-pink: var(--color-primary-4);--color-purple: var(--color-secondary-4);--bg: var(--color-neutral-0);--paper: var(--color-neutral-1);--paper-soft: var(--color-neutral-2);--line: var(--color-neutral-3);--primary: var(--color-neutral-8);--foreground: var(--color-neutral-8);--muted: var(--color-neutral-6);--secondary: var(--color-neutral-5);--accent: var(--color-purple);--accent-alt: var(--color-pink);--purple: var(--base-accent-color-1);--pink: var(--base-accent-color-0);--success: var(--base-success-color);--warning: var(--base-warning-color);--background: var(--bg);--background-light: var(--paper-soft);--card: var(--paper);--card-foreground: var(--primary);--popover: var(--paper);--popover-foreground: var(--primary);--primary-foreground: var(--bg);--secondary-foreground: var(--primary);--muted-foreground: var(--muted);--skeleton: var(--color-neutral-3);--accent-foreground: var(--primary);--destructive: var(--base-danger-color);--border: var(--line);--input: var(--line);--ring: var(--color-neutral-4);--chart-1: var(--color-purple);--chart-2: var(--color-pink);--chart-3: var(--color-neutral-7);--chart-4: var(--color-neutral-5);--chart-5: var(--color-neutral-4);--sidebar: var(--paper);--sidebar-foreground: var(--primary);--sidebar-primary: var(--accent);--sidebar-primary-foreground: var(--primary);--sidebar-accent: var(--paper-soft);--sidebar-accent-foreground: var(--primary);--sidebar-border: var(--line);--sidebar-ring: var(--ring);--page-gradient-from: var(--color-neutral-0);--page-gradient-via: var(--color-neutral-1);--page-gradient-to: var(--color-neutral-2);--page-gradient-min-height: 2000px;--page-gradient: none;--font-sans: var(--base-sans-font-family), "DM Sans Fallback", system-ui, sans-serif;--font-mono: var(--base-mono-font-family), "Geist Mono", "Fira Code", monospace;--radius: var(--base-radius);--radius-sm: calc(var(--radius) - 4px);--radius-md: calc(var(--radius) - 2px);--radius-lg: var(--radius);--radius-xl: calc(var(--radius) + 4px);--small-button-radius: 4px;--medium-button-radius: 5px;--large-button-radius: 6px;--color-background: var(--background);--color-background-light: var(--background-light);--color-foreground: var(--foreground);--color-card: var(--card);--color-card-foreground: var(--card-foreground);--color-popover: var(--popover);--color-popover-foreground: var(--popover-foreground);--color-primary: var(--primary);--color-primary-foreground: var(--primary-foreground);--color-secondary: var(--secondary);--color-secondary-foreground: var(--secondary-foreground);--color-muted: var(--muted);--color-muted-foreground: var(--muted-foreground);--color-skeleton: var(--skeleton);--color-accent: var(--accent);--color-accent-foreground: var(--accent-foreground);--color-destructive: var(--destructive);--color-success: var(--success);--color-border: var(--border);--color-input: var(--input);--color-ring: var(--ring);--color-chart-1: var(--chart-1);--color-chart-2: var(--chart-2);--color-chart-3: var(--chart-3);--color-chart-4: var(--chart-4);--color-chart-5: var(--chart-5);--color-neon-pink: var(--color-pink);--color-neon-purple: var(--color-purple);--color-sidebar: var(--sidebar);--color-sidebar-foreground: var(--sidebar-foreground);--color-sidebar-primary: var(--sidebar-primary);--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);--color-sidebar-accent: var(--sidebar-accent);--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);--color-sidebar-border: var(--sidebar-border);--color-sidebar-ring: var(--sidebar-ring)}:root{--neon-purple: var(--color-neon-purple);--neon-pink: var(--color-neon-pink);--space-xs: var(--spacing-1);--space-sm: var(--spacing-2);--space-md: var(--spacing-3);--space-base: var(--spacing-4);--space-lg: var(--spacing-6);--space-xl: var(--spacing-8);--space-2xl: var(--spacing-12);--space-3xl: var(--spacing-16);--font-size-display: 4.5rem;--font-size-h1: 3rem;--font-size-h2: 2.25rem;--font-size-h3: 1.5rem;--font-size-h4: 1.25rem;--font-size-body: 1rem;--font-size-small: .875rem;--font-size-caption: .75rem;--line-height-display: .9;--line-height-h1: 1;--line-height-h2: 1.1;--line-height-h3: 1.2;--line-height-h4: 1.3;--line-height-body: 1.6;--line-height-small: 1.5;--line-height-caption: 1.4;--font-weight-regular: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--duration-fast: .14s;--easing-standard: ease-out}:root{--syntax-comment: var(--color-neutral-5);--syntax-keyword: var(--color-secondary-6);--syntax-string: oklch(.79 .13 152);--syntax-number: oklch(.82 .12 78);--syntax-constant: oklch(.76 .16 48);--syntax-function: var(--color-primary-6);--syntax-class: oklch(.83 .11 200);--syntax-property: oklch(.86 .07 222);--syntax-operator: var(--color-neutral-6);--syntax-punctuation: var(--color-neutral-6);--syntax-tag: var(--color-primary-6);--syntax-attr: oklch(.82 .12 78);--syntax-variable: var(--color-neutral-8);--syntax-regex: oklch(.79 .13 168);--syntax-plain: var(--color-neutral-8)}:root{--selection-background: var(--color-neutral-7);--selection-foreground: var(--color-neutral-1)}html,body{margin:0;font-family:var(--font-sans);background-color:var(--background);color:var(--foreground);user-select:text;-webkit-user-select:text}::selection{user-select:text;-webkit-user-select:text;color:var(--selection-foreground);background-color:var(--selection-background)}input,textarea,[contenteditable]:not([contenteditable=false]){user-select:text;-webkit-user-select:text}::selection{background:var(--selection-background);color:var(--selection-foreground)}::-moz-selection{background:var(--selection-background);color:var(--selection-foreground)}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
export declare const boxBooleanProps: {
|
|
2
|
+
readonly isRow: {
|
|
3
|
+
readonly type: BooleanConstructor;
|
|
4
|
+
readonly reflect: true;
|
|
5
|
+
};
|
|
6
|
+
readonly isColumn: {
|
|
7
|
+
readonly type: BooleanConstructor;
|
|
8
|
+
readonly reflect: true;
|
|
9
|
+
};
|
|
10
|
+
readonly isFlex: {
|
|
11
|
+
readonly type: BooleanConstructor;
|
|
12
|
+
readonly reflect: true;
|
|
13
|
+
};
|
|
14
|
+
readonly isInlineFlex: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly reflect: true;
|
|
17
|
+
};
|
|
18
|
+
readonly isGrid: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly reflect: true;
|
|
21
|
+
};
|
|
22
|
+
readonly isInlineGrid: {
|
|
23
|
+
readonly type: BooleanConstructor;
|
|
24
|
+
readonly reflect: true;
|
|
25
|
+
};
|
|
26
|
+
readonly isBlock: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly reflect: true;
|
|
29
|
+
};
|
|
30
|
+
readonly isInlineBlock: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly reflect: true;
|
|
33
|
+
};
|
|
34
|
+
readonly isInline: {
|
|
35
|
+
readonly type: BooleanConstructor;
|
|
36
|
+
readonly reflect: true;
|
|
37
|
+
};
|
|
38
|
+
readonly doesWrap: {
|
|
39
|
+
readonly type: BooleanConstructor;
|
|
40
|
+
readonly reflect: true;
|
|
41
|
+
};
|
|
42
|
+
readonly doesWrapText: {
|
|
43
|
+
readonly type: BooleanConstructor;
|
|
44
|
+
readonly reflect: true;
|
|
45
|
+
};
|
|
46
|
+
readonly xStart: {
|
|
47
|
+
readonly type: BooleanConstructor;
|
|
48
|
+
readonly reflect: true;
|
|
49
|
+
};
|
|
50
|
+
readonly xCenter: {
|
|
51
|
+
readonly type: BooleanConstructor;
|
|
52
|
+
readonly reflect: true;
|
|
53
|
+
};
|
|
54
|
+
readonly xEnd: {
|
|
55
|
+
readonly type: BooleanConstructor;
|
|
56
|
+
readonly reflect: true;
|
|
57
|
+
};
|
|
58
|
+
readonly xBetween: {
|
|
59
|
+
readonly type: BooleanConstructor;
|
|
60
|
+
readonly reflect: true;
|
|
61
|
+
};
|
|
62
|
+
readonly xAround: {
|
|
63
|
+
readonly type: BooleanConstructor;
|
|
64
|
+
readonly reflect: true;
|
|
65
|
+
};
|
|
66
|
+
readonly xEvenly: {
|
|
67
|
+
readonly type: BooleanConstructor;
|
|
68
|
+
readonly reflect: true;
|
|
69
|
+
};
|
|
70
|
+
readonly xStretch: {
|
|
71
|
+
readonly type: BooleanConstructor;
|
|
72
|
+
readonly reflect: true;
|
|
73
|
+
};
|
|
74
|
+
readonly yStart: {
|
|
75
|
+
readonly type: BooleanConstructor;
|
|
76
|
+
readonly reflect: true;
|
|
77
|
+
};
|
|
78
|
+
readonly yCenter: {
|
|
79
|
+
readonly type: BooleanConstructor;
|
|
80
|
+
readonly reflect: true;
|
|
81
|
+
};
|
|
82
|
+
readonly yEnd: {
|
|
83
|
+
readonly type: BooleanConstructor;
|
|
84
|
+
readonly reflect: true;
|
|
85
|
+
};
|
|
86
|
+
readonly yBetween: {
|
|
87
|
+
readonly type: BooleanConstructor;
|
|
88
|
+
readonly reflect: true;
|
|
89
|
+
};
|
|
90
|
+
readonly yAround: {
|
|
91
|
+
readonly type: BooleanConstructor;
|
|
92
|
+
readonly reflect: true;
|
|
93
|
+
};
|
|
94
|
+
readonly yEvenly: {
|
|
95
|
+
readonly type: BooleanConstructor;
|
|
96
|
+
readonly reflect: true;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
export declare const boxValueProps: {
|
|
100
|
+
readonly gap: StringConstructor;
|
|
101
|
+
readonly rowGap: StringConstructor;
|
|
102
|
+
readonly columnGap: StringConstructor;
|
|
103
|
+
readonly margin: StringConstructor;
|
|
104
|
+
readonly marginTop: StringConstructor;
|
|
105
|
+
readonly marginRight: StringConstructor;
|
|
106
|
+
readonly marginBottom: StringConstructor;
|
|
107
|
+
readonly marginLeft: StringConstructor;
|
|
108
|
+
readonly marginX: StringConstructor;
|
|
109
|
+
readonly marginY: StringConstructor;
|
|
110
|
+
readonly padding: StringConstructor;
|
|
111
|
+
readonly paddingTop: StringConstructor;
|
|
112
|
+
readonly paddingRight: StringConstructor;
|
|
113
|
+
readonly paddingBottom: StringConstructor;
|
|
114
|
+
readonly paddingLeft: StringConstructor;
|
|
115
|
+
readonly paddingX: StringConstructor;
|
|
116
|
+
readonly paddingY: StringConstructor;
|
|
117
|
+
readonly width: StringConstructor;
|
|
118
|
+
readonly minWidth: StringConstructor;
|
|
119
|
+
readonly maxWidth: StringConstructor;
|
|
120
|
+
readonly height: StringConstructor;
|
|
121
|
+
readonly minHeight: StringConstructor;
|
|
122
|
+
readonly maxHeight: StringConstructor;
|
|
123
|
+
readonly columns: StringConstructor;
|
|
124
|
+
readonly rows: StringConstructor;
|
|
125
|
+
readonly smallColumns: StringConstructor;
|
|
126
|
+
readonly mediumColumns: StringConstructor;
|
|
127
|
+
readonly largeColumns: StringConstructor;
|
|
128
|
+
readonly extraLargeColumns: StringConstructor;
|
|
129
|
+
};
|
|
130
|
+
export declare const boxProps: {
|
|
131
|
+
gap: StringConstructor;
|
|
132
|
+
rowGap: StringConstructor;
|
|
133
|
+
columnGap: StringConstructor;
|
|
134
|
+
margin: StringConstructor;
|
|
135
|
+
marginTop: StringConstructor;
|
|
136
|
+
marginRight: StringConstructor;
|
|
137
|
+
marginBottom: StringConstructor;
|
|
138
|
+
marginLeft: StringConstructor;
|
|
139
|
+
marginX: StringConstructor;
|
|
140
|
+
marginY: StringConstructor;
|
|
141
|
+
padding: StringConstructor;
|
|
142
|
+
paddingTop: StringConstructor;
|
|
143
|
+
paddingRight: StringConstructor;
|
|
144
|
+
paddingBottom: StringConstructor;
|
|
145
|
+
paddingLeft: StringConstructor;
|
|
146
|
+
paddingX: StringConstructor;
|
|
147
|
+
paddingY: StringConstructor;
|
|
148
|
+
width: StringConstructor;
|
|
149
|
+
minWidth: StringConstructor;
|
|
150
|
+
maxWidth: StringConstructor;
|
|
151
|
+
height: StringConstructor;
|
|
152
|
+
minHeight: StringConstructor;
|
|
153
|
+
maxHeight: StringConstructor;
|
|
154
|
+
columns: StringConstructor;
|
|
155
|
+
rows: StringConstructor;
|
|
156
|
+
smallColumns: StringConstructor;
|
|
157
|
+
mediumColumns: StringConstructor;
|
|
158
|
+
largeColumns: StringConstructor;
|
|
159
|
+
extraLargeColumns: StringConstructor;
|
|
160
|
+
isRow: {
|
|
161
|
+
readonly type: BooleanConstructor;
|
|
162
|
+
readonly reflect: true;
|
|
163
|
+
};
|
|
164
|
+
isColumn: {
|
|
165
|
+
readonly type: BooleanConstructor;
|
|
166
|
+
readonly reflect: true;
|
|
167
|
+
};
|
|
168
|
+
isFlex: {
|
|
169
|
+
readonly type: BooleanConstructor;
|
|
170
|
+
readonly reflect: true;
|
|
171
|
+
};
|
|
172
|
+
isInlineFlex: {
|
|
173
|
+
readonly type: BooleanConstructor;
|
|
174
|
+
readonly reflect: true;
|
|
175
|
+
};
|
|
176
|
+
isGrid: {
|
|
177
|
+
readonly type: BooleanConstructor;
|
|
178
|
+
readonly reflect: true;
|
|
179
|
+
};
|
|
180
|
+
isInlineGrid: {
|
|
181
|
+
readonly type: BooleanConstructor;
|
|
182
|
+
readonly reflect: true;
|
|
183
|
+
};
|
|
184
|
+
isBlock: {
|
|
185
|
+
readonly type: BooleanConstructor;
|
|
186
|
+
readonly reflect: true;
|
|
187
|
+
};
|
|
188
|
+
isInlineBlock: {
|
|
189
|
+
readonly type: BooleanConstructor;
|
|
190
|
+
readonly reflect: true;
|
|
191
|
+
};
|
|
192
|
+
isInline: {
|
|
193
|
+
readonly type: BooleanConstructor;
|
|
194
|
+
readonly reflect: true;
|
|
195
|
+
};
|
|
196
|
+
doesWrap: {
|
|
197
|
+
readonly type: BooleanConstructor;
|
|
198
|
+
readonly reflect: true;
|
|
199
|
+
};
|
|
200
|
+
doesWrapText: {
|
|
201
|
+
readonly type: BooleanConstructor;
|
|
202
|
+
readonly reflect: true;
|
|
203
|
+
};
|
|
204
|
+
xStart: {
|
|
205
|
+
readonly type: BooleanConstructor;
|
|
206
|
+
readonly reflect: true;
|
|
207
|
+
};
|
|
208
|
+
xCenter: {
|
|
209
|
+
readonly type: BooleanConstructor;
|
|
210
|
+
readonly reflect: true;
|
|
211
|
+
};
|
|
212
|
+
xEnd: {
|
|
213
|
+
readonly type: BooleanConstructor;
|
|
214
|
+
readonly reflect: true;
|
|
215
|
+
};
|
|
216
|
+
xBetween: {
|
|
217
|
+
readonly type: BooleanConstructor;
|
|
218
|
+
readonly reflect: true;
|
|
219
|
+
};
|
|
220
|
+
xAround: {
|
|
221
|
+
readonly type: BooleanConstructor;
|
|
222
|
+
readonly reflect: true;
|
|
223
|
+
};
|
|
224
|
+
xEvenly: {
|
|
225
|
+
readonly type: BooleanConstructor;
|
|
226
|
+
readonly reflect: true;
|
|
227
|
+
};
|
|
228
|
+
xStretch: {
|
|
229
|
+
readonly type: BooleanConstructor;
|
|
230
|
+
readonly reflect: true;
|
|
231
|
+
};
|
|
232
|
+
yStart: {
|
|
233
|
+
readonly type: BooleanConstructor;
|
|
234
|
+
readonly reflect: true;
|
|
235
|
+
};
|
|
236
|
+
yCenter: {
|
|
237
|
+
readonly type: BooleanConstructor;
|
|
238
|
+
readonly reflect: true;
|
|
239
|
+
};
|
|
240
|
+
yEnd: {
|
|
241
|
+
readonly type: BooleanConstructor;
|
|
242
|
+
readonly reflect: true;
|
|
243
|
+
};
|
|
244
|
+
yBetween: {
|
|
245
|
+
readonly type: BooleanConstructor;
|
|
246
|
+
readonly reflect: true;
|
|
247
|
+
};
|
|
248
|
+
yAround: {
|
|
249
|
+
readonly type: BooleanConstructor;
|
|
250
|
+
readonly reflect: true;
|
|
251
|
+
};
|
|
252
|
+
yEvenly: {
|
|
253
|
+
readonly type: BooleanConstructor;
|
|
254
|
+
readonly reflect: true;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
type BoxValuePropsT = {
|
|
258
|
+
[K in keyof typeof boxValueProps]?: string;
|
|
259
|
+
};
|
|
260
|
+
export declare const getBoxHostStyle: (props: BoxValuePropsT) => Record<string, string>;
|
|
261
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared flex/grid layout rules, used by both <z-box> and <z-card>.
|
|
3
|
+
* Direct attribute-selector translation of the React design system's
|
|
4
|
+
* z-box.css (.isFlex -> [is-flex], .xCenter -> [x-center], etc).
|
|
5
|
+
*/
|
|
6
|
+
export declare const boxLayoutStyles: CSSStyleSheet;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const resolveSize: (value?: string) => string | undefined;
|
|
2
|
+
export declare const resolveWidth: (value?: string) => string | undefined;
|
|
3
|
+
export declare const resolveRadius: (value?: string) => string | undefined;
|
|
4
|
+
export declare const resolveJustify: (value?: string) => string | undefined;
|
|
5
|
+
export declare const resolveAlign: (value?: string) => string | undefined;
|
|
6
|
+
export declare const resolveGridAlign: (value?: string) => string | undefined;
|
|
7
|
+
export declare const resolveEdge: (value?: string) => string | undefined;
|
|
8
|
+
type InsetPropsT = {
|
|
9
|
+
inset?: string;
|
|
10
|
+
insetX?: string;
|
|
11
|
+
insetY?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const insetVars: (props: InsetPropsT, prefix: string) => Record<string, string>;
|
|
14
|
+
export declare const insetProps: {
|
|
15
|
+
readonly inset: StringConstructor;
|
|
16
|
+
readonly insetX: StringConstructor;
|
|
17
|
+
readonly insetY: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
export declare const baseStyles: CSSStyleSheet;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type Side = 'top' | 'bottom' | 'left' | 'right';
|
|
2
|
+
export type Align = 'start' | 'center' | 'end';
|
|
3
|
+
export type Placement = Side | `${Side}-${Align}`;
|
|
4
|
+
export interface PositionOptions {
|
|
5
|
+
placement?: Placement;
|
|
6
|
+
/** gap in px between the anchor edge and the floating element */
|
|
7
|
+
offset?: number;
|
|
8
|
+
/** min distance in px the floating element keeps from the viewport edges */
|
|
9
|
+
padding?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface PositionResult {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
side: Side;
|
|
15
|
+
placement: Placement;
|
|
16
|
+
}
|
|
17
|
+
export declare const computePosition: (anchor: Element, floating: HTMLElement, opts?: PositionOptions) => PositionResult;
|
|
18
|
+
/**
|
|
19
|
+
* Keep `update` in sync while the overlay is open: reposition on scroll
|
|
20
|
+
* (capture, so nested scrollers count), resize, and any size change of the
|
|
21
|
+
* anchor or floating element. Returns a teardown to call when it closes.
|
|
22
|
+
*/
|
|
23
|
+
export declare const autoUpdate: (anchor: Element, floating: HTMLElement, update: () => void) => (() => void);
|
|
24
|
+
/**
|
|
25
|
+
* Guarded Popover API toggles — showPopover/hidePopover throw if the element is
|
|
26
|
+
* already in the requested state, so every caller would need the same matches()
|
|
27
|
+
* check. Centralize it here.
|
|
28
|
+
*/
|
|
29
|
+
export declare const showFloating: (el: HTMLElement) => void;
|
|
30
|
+
export declare const hideFloating: (el: HTMLElement) => void;
|
|
31
|
+
/** Apply a PositionResult to a fixed-positioned floating element. */
|
|
32
|
+
export declare const applyPosition: (floating: HTMLElement, pos: PositionResult) => void;
|
|
33
|
+
/** Shared prop surface for anchored overlays (placement / offset / tone). */
|
|
34
|
+
export declare const overlayPositionProps: {
|
|
35
|
+
placement: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
reflect: boolean;
|
|
38
|
+
};
|
|
39
|
+
offset: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
};
|
|
42
|
+
tone: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
reflect: boolean;
|
|
45
|
+
};
|
|
46
|
+
isHidden: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
reflect: boolean;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const toggleVariantProps: {
|
|
2
|
+
readonly isPurple: {
|
|
3
|
+
readonly type: BooleanConstructor;
|
|
4
|
+
readonly reflect: true;
|
|
5
|
+
};
|
|
6
|
+
readonly isPink: {
|
|
7
|
+
readonly type: BooleanConstructor;
|
|
8
|
+
readonly reflect: true;
|
|
9
|
+
};
|
|
10
|
+
readonly isNeutral: {
|
|
11
|
+
readonly type: BooleanConstructor;
|
|
12
|
+
readonly reflect: true;
|
|
13
|
+
};
|
|
14
|
+
readonly isSmall: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly reflect: true;
|
|
17
|
+
};
|
|
18
|
+
readonly isMedium: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly reflect: true;
|
|
21
|
+
};
|
|
22
|
+
readonly isLarge: {
|
|
23
|
+
readonly type: BooleanConstructor;
|
|
24
|
+
readonly reflect: true;
|
|
25
|
+
};
|
|
26
|
+
readonly isIcon: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly reflect: true;
|
|
29
|
+
};
|
|
30
|
+
readonly isGhost: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly reflect: true;
|
|
33
|
+
};
|
|
34
|
+
readonly isOutlined: {
|
|
35
|
+
readonly type: BooleanConstructor;
|
|
36
|
+
readonly reflect: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
type ToggleVariantPropsT = {
|
|
40
|
+
[K in keyof typeof toggleVariantProps]?: boolean;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Unlike z-button's resolvers, these only return a class when the consumer
|
|
44
|
+
* explicitly set the flag - absence means "defer to whatever the CSS
|
|
45
|
+
* var() fallback chain resolves to" (an inherited z-toggle-group value, or
|
|
46
|
+
* the built-in ghost/neutral/medium default baked into toggle-styles.ts).
|
|
47
|
+
*/
|
|
48
|
+
export declare const resolveOwnToggleColorClass: (props: ToggleVariantPropsT) => string | undefined;
|
|
49
|
+
export declare const resolveOwnToggleSizeClass: (props: ToggleVariantPropsT) => string | undefined;
|
|
50
|
+
export declare const resolveOwnToggleKindClass: (props: ToggleVariantPropsT) => string | undefined;
|
|
51
|
+
export declare const resolveToggleButtonClass: (props: ToggleVariantPropsT) => string;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every visual value is parked behind a --z-toggle-* custom property with a
|
|
3
|
+
* literal default fallback (ghost + neutral + medium, matching the original
|
|
4
|
+
* z-toggle.css defaults). A <z-toggle-group> can set these same properties on
|
|
5
|
+
* its own :host; since they pierce the slot boundary via normal CSS custom
|
|
6
|
+
* property inheritance, a <z-toggle-group-item> that doesn't declare its own
|
|
7
|
+
* .is-* override class inherits the group's resolved variant for free. Nested
|
|
8
|
+
* var() references (e.g. --z-toggle-hover-bg using var(--z-toggle-accent))
|
|
9
|
+
* re-resolve against whichever element finally consumes them, so an item can
|
|
10
|
+
* override just the color while inheriting kind from the group, or vice versa.
|
|
11
|
+
*/
|
|
12
|
+
export declare const toggleStyles: CSSStyleSheet;
|