@getloopscale/ui 0.0.0-stage → 0.38.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/LICENSE +201 -0
- package/README.md +91 -2
- package/dist/base.css +110 -0
- package/dist/components/composites/account-menu/account-menu.d.ts +43 -0
- package/dist/components/composites/account-menu/index.d.ts +1 -0
- package/dist/components/composites/annotation-input/annotation-input.d.ts +38 -0
- package/dist/components/composites/annotation-input/index.d.ts +4 -0
- package/dist/components/composites/annotation-input/types.d.ts +31 -0
- package/dist/components/composites/annotation-summary-group/annotation-summary-group.d.ts +28 -0
- package/dist/components/composites/annotation-summary-group/index.d.ts +1 -0
- package/dist/components/composites/attributes-table/attributes-table.d.ts +20 -0
- package/dist/components/composites/attributes-table/index.d.ts +1 -0
- package/dist/components/composites/chat-message-card/chat-message-card.d.ts +14 -0
- package/dist/components/composites/chat-message-card/index.d.ts +1 -0
- package/dist/components/composites/code-block/code-block.d.ts +29 -0
- package/dist/components/composites/code-block/index.d.ts +1 -0
- package/dist/components/composites/command-palette/command-palette.d.ts +41 -0
- package/dist/components/composites/command-palette/index.d.ts +1 -0
- package/dist/components/composites/comment-thread/comment-thread.d.ts +24 -0
- package/dist/components/composites/comment-thread/index.d.ts +2 -0
- package/dist/components/composites/confirm-dialog/confirm-dialog.d.ts +41 -0
- package/dist/components/composites/confirm-dialog/index.d.ts +1 -0
- package/dist/components/composites/data-table/compare-values.d.ts +2 -0
- package/dist/components/composites/data-table/data-table-loading.d.ts +10 -0
- package/dist/components/composites/data-table/data-table-parts.d.ts +16 -0
- package/dist/components/composites/data-table/data-table-virtualized.d.ts +32 -0
- package/dist/components/composites/data-table/data-table.d.ts +82 -0
- package/dist/components/composites/data-table/index.d.ts +2 -0
- package/dist/components/composites/data-table/use-data-table-sort.d.ts +19 -0
- package/dist/components/composites/dataset-item-diff/dataset-item-diff.d.ts +19 -0
- package/dist/components/composites/dataset-item-diff/index.d.ts +4 -0
- package/dist/components/composites/dataset-item-diff/to-diff-text.d.ts +22 -0
- package/dist/components/composites/deployment-row/deployment-row.d.ts +28 -0
- package/dist/components/composites/deployment-row/index.d.ts +1 -0
- package/dist/components/composites/diff-view/diff-section.d.ts +19 -0
- package/dist/components/composites/diff-view/diff-view.d.ts +39 -0
- package/dist/components/composites/diff-view/index.d.ts +2 -0
- package/dist/components/composites/domain-config/domain-config.d.ts +34 -0
- package/dist/components/composites/domain-config/index.d.ts +1 -0
- package/dist/components/composites/env-var-editor/env-var-editor.d.ts +35 -0
- package/dist/components/composites/env-var-editor/index.d.ts +1 -0
- package/dist/components/composites/evaluator-form/evaluator-form.d.ts +25 -0
- package/dist/components/composites/evaluator-form/index.d.ts +3 -0
- package/dist/components/composites/evaluator-form/types.d.ts +41 -0
- package/dist/components/composites/histogram/histogram.d.ts +19 -0
- package/dist/components/composites/histogram/index.d.ts +2 -0
- package/dist/components/composites/io-cards/index.d.ts +2 -0
- package/dist/components/composites/io-cards/io-cards.d.ts +17 -0
- package/dist/components/composites/io-cards/message-card.d.ts +21 -0
- package/dist/components/composites/message-branch-selector/index.d.ts +1 -0
- package/dist/components/composites/message-branch-selector/message-branch-selector.d.ts +27 -0
- package/dist/components/composites/metric-card/index.d.ts +2 -0
- package/dist/components/composites/metric-card/metric-card.d.ts +46 -0
- package/dist/components/composites/page-shell/index.d.ts +1 -0
- package/dist/components/composites/page-shell/page-shell.d.ts +68 -0
- package/dist/components/composites/percentile-chart/index.d.ts +2 -0
- package/dist/components/composites/percentile-chart/percentile-chart.d.ts +37 -0
- package/dist/components/composites/preview-env-card/index.d.ts +1 -0
- package/dist/components/composites/preview-env-card/preview-env-card.d.ts +36 -0
- package/dist/components/composites/price-breakdown/index.d.ts +2 -0
- package/dist/components/composites/price-breakdown/price-breakdown.d.ts +21 -0
- package/dist/components/composites/project-card/index.d.ts +1 -0
- package/dist/components/composites/project-card/project-card.d.ts +32 -0
- package/dist/components/composites/prompt-template-editor/extract-vars.d.ts +1 -0
- package/dist/components/composites/prompt-template-editor/index.d.ts +2 -0
- package/dist/components/composites/prompt-template-editor/prompt-template-editor.d.ts +24 -0
- package/dist/components/composites/prompt-version-diff/index.d.ts +4 -0
- package/dist/components/composites/prompt-version-diff/prompt-version-diff.d.ts +20 -0
- package/dist/components/composites/prompt-version-diff/to-diff-text.d.ts +26 -0
- package/dist/components/composites/rollback-ui/index.d.ts +1 -0
- package/dist/components/composites/rollback-ui/rollback-ui.d.ts +32 -0
- package/dist/components/composites/session-summary/index.d.ts +1 -0
- package/dist/components/composites/session-summary/session-summary.d.ts +18 -0
- package/dist/components/composites/session-timeline/index.d.ts +1 -0
- package/dist/components/composites/session-timeline/session-timeline.d.ts +22 -0
- package/dist/components/composites/severity-badge/index.d.ts +2 -0
- package/dist/components/composites/severity-badge/severity-badge.d.ts +33 -0
- package/dist/components/composites/span-graph/index.d.ts +1 -0
- package/dist/components/composites/span-graph/span-graph.d.ts +19 -0
- package/dist/components/composites/span-tree/index.d.ts +2 -0
- package/dist/components/composites/span-tree/span-tree-row.d.ts +22 -0
- package/dist/components/composites/span-tree/span-tree-virtual.d.ts +7 -0
- package/dist/components/composites/span-tree/span-tree.d.ts +34 -0
- package/dist/components/composites/span-waterfall/index.d.ts +1 -0
- package/dist/components/composites/span-waterfall/span-waterfall.d.ts +28 -0
- package/dist/components/composites/status-indicator/index.d.ts +2 -0
- package/dist/components/composites/status-indicator/status-indicator.d.ts +31 -0
- package/dist/components/composites/stepper/index.d.ts +1 -0
- package/dist/components/composites/stepper/stepper.d.ts +53 -0
- package/dist/components/composites/tag-input/index.d.ts +2 -0
- package/dist/components/composites/tag-input/tag-input.d.ts +32 -0
- package/dist/components/composites/task-header/index.d.ts +1 -0
- package/dist/components/composites/task-header/task-header.d.ts +20 -0
- package/dist/components/composites/token-cost-breakdown/index.d.ts +2 -0
- package/dist/components/composites/token-cost-breakdown/token-cost-breakdown.d.ts +26 -0
- package/dist/components/composites/trace-compare/index.d.ts +1 -0
- package/dist/components/composites/trace-compare/trace-compare.d.ts +27 -0
- package/dist/components/composites/trace-transcript/index.d.ts +1 -0
- package/dist/components/composites/trace-transcript/trace-transcript.d.ts +26 -0
- package/dist/components/composites/trend-chart/index.d.ts +1 -0
- package/dist/components/composites/trend-chart/trend-chart.d.ts +117 -0
- package/dist/components/primitives/action-bar/action-bar.d.ts +36 -0
- package/dist/components/primitives/action-bar/index.d.ts +1 -0
- package/dist/components/primitives/alert/alert.d.ts +31 -0
- package/dist/components/primitives/alert/index.d.ts +1 -0
- package/dist/components/primitives/avatar/avatar.d.ts +26 -0
- package/dist/components/primitives/avatar/index.d.ts +1 -0
- package/dist/components/primitives/badge/badge.d.ts +33 -0
- package/dist/components/primitives/badge/index.d.ts +1 -0
- package/dist/components/primitives/breadcrumb/breadcrumb.d.ts +15 -0
- package/dist/components/primitives/breadcrumb/index.d.ts +1 -0
- package/dist/components/primitives/button/button.d.ts +26 -0
- package/dist/components/primitives/button/index.d.ts +1 -0
- package/dist/components/primitives/card/card.d.ts +59 -0
- package/dist/components/primitives/card/index.d.ts +1 -0
- package/dist/components/primitives/checkbox/checkbox.d.ts +20 -0
- package/dist/components/primitives/checkbox/index.d.ts +1 -0
- package/dist/components/primitives/combobox/combobox.d.ts +53 -0
- package/dist/components/primitives/combobox/index.d.ts +1 -0
- package/dist/components/primitives/copy-button/copy-button.d.ts +17 -0
- package/dist/components/primitives/copy-button/index.d.ts +1 -0
- package/dist/components/primitives/danger-zone/danger-zone.d.ts +40 -0
- package/dist/components/primitives/danger-zone/index.d.ts +1 -0
- package/dist/components/primitives/description-list/description-list.d.ts +33 -0
- package/dist/components/primitives/description-list/index.d.ts +1 -0
- package/dist/components/primitives/dialog/dialog.d.ts +31 -0
- package/dist/components/primitives/dialog/index.d.ts +1 -0
- package/dist/components/primitives/dropdown-menu/dropdown-menu.d.ts +68 -0
- package/dist/components/primitives/dropdown-menu/index.d.ts +1 -0
- package/dist/components/primitives/empty-state/empty-state.d.ts +22 -0
- package/dist/components/primitives/empty-state/index.d.ts +1 -0
- package/dist/components/primitives/file-dropzone/file-dropzone.d.ts +26 -0
- package/dist/components/primitives/file-dropzone/index.d.ts +1 -0
- package/dist/components/primitives/file-dropzone/validate.d.ts +40 -0
- package/dist/components/primitives/form-field/form-field.d.ts +44 -0
- package/dist/components/primitives/form-field/index.d.ts +1 -0
- package/dist/components/primitives/input/index.d.ts +1 -0
- package/dist/components/primitives/input/input.d.ts +24 -0
- package/dist/components/primitives/json-viewer/index.d.ts +1 -0
- package/dist/components/primitives/json-viewer/json-viewer.d.ts +32 -0
- package/dist/components/primitives/label/index.d.ts +1 -0
- package/dist/components/primitives/label/label.d.ts +15 -0
- package/dist/components/primitives/login-split/index.d.ts +1 -0
- package/dist/components/primitives/login-split/login-split.d.ts +24 -0
- package/dist/components/primitives/metrics-panel/index.d.ts +1 -0
- package/dist/components/primitives/metrics-panel/metrics-panel.d.ts +62 -0
- package/dist/components/primitives/pagination/index.d.ts +1 -0
- package/dist/components/primitives/pagination/pagination.d.ts +44 -0
- package/dist/components/primitives/pin-input/index.d.ts +1 -0
- package/dist/components/primitives/pin-input/pin-input.d.ts +41 -0
- package/dist/components/primitives/plan-badge/index.d.ts +1 -0
- package/dist/components/primitives/plan-badge/plan-badge.d.ts +35 -0
- package/dist/components/primitives/progress/index.d.ts +1 -0
- package/dist/components/primitives/progress/progress.d.ts +44 -0
- package/dist/components/primitives/radio-group/index.d.ts +1 -0
- package/dist/components/primitives/radio-group/radio-group.d.ts +5 -0
- package/dist/components/primitives/scroll-area/index.d.ts +2 -0
- package/dist/components/primitives/scroll-area/scroll-area.d.ts +40 -0
- package/dist/components/primitives/scroll-area/use-stick-to-bottom.d.ts +20 -0
- package/dist/components/primitives/select/index.d.ts +1 -0
- package/dist/components/primitives/select/select.d.ts +50 -0
- package/dist/components/primitives/sheet/index.d.ts +1 -0
- package/dist/components/primitives/sheet/sheet.d.ts +33 -0
- package/dist/components/primitives/sidebar/index.d.ts +1 -0
- package/dist/components/primitives/sidebar/sidebar.d.ts +76 -0
- package/dist/components/primitives/skeleton/index.d.ts +1 -0
- package/dist/components/primitives/skeleton/skeleton.d.ts +21 -0
- package/dist/components/primitives/slider/index.d.ts +1 -0
- package/dist/components/primitives/slider/slider.d.ts +24 -0
- package/dist/components/primitives/social-auth-row/index.d.ts +1 -0
- package/dist/components/primitives/social-auth-row/social-auth-row.d.ts +24 -0
- package/dist/components/primitives/stat-tile/index.d.ts +1 -0
- package/dist/components/primitives/stat-tile/stat-tile.d.ts +28 -0
- package/dist/components/primitives/status-dot/index.d.ts +1 -0
- package/dist/components/primitives/status-dot/status-dot.d.ts +31 -0
- package/dist/components/primitives/switch/index.d.ts +1 -0
- package/dist/components/primitives/switch/switch.d.ts +20 -0
- package/dist/components/primitives/table/index.d.ts +1 -0
- package/dist/components/primitives/table/table.d.ts +61 -0
- package/dist/components/primitives/tabs/index.d.ts +1 -0
- package/dist/components/primitives/tabs/tabs.d.ts +7 -0
- package/dist/components/primitives/textarea/index.d.ts +1 -0
- package/dist/components/primitives/textarea/textarea.d.ts +20 -0
- package/dist/components/primitives/timestamp/index.d.ts +1 -0
- package/dist/components/primitives/timestamp/timestamp.d.ts +34 -0
- package/dist/components/primitives/toast/index.d.ts +2 -0
- package/dist/components/primitives/toast/toast.d.ts +34 -0
- package/dist/components/primitives/toast/toaster.d.ts +38 -0
- package/dist/components/primitives/tooltip/index.d.ts +1 -0
- package/dist/components/primitives/tooltip/tooltip.d.ts +33 -0
- package/dist/components/primitives/topnav/index.d.ts +1 -0
- package/dist/components/primitives/topnav/topnav.d.ts +29 -0
- package/dist/components/primitives/update-banner/index.d.ts +1 -0
- package/dist/components/primitives/update-banner/update-banner.d.ts +16 -0
- package/dist/components.css +2 -0
- package/dist/fonts/LICENSE-hanken-grotesk.txt +93 -0
- package/dist/fonts/LICENSE-jetbrains-mono.txt +93 -0
- package/dist/fonts/hanken-grotesk-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/hanken-grotesk-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/dist/fonts-cdn.css +16 -0
- package/dist/fonts.css +59 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.js +9271 -0
- package/dist/lib/chart/histogram.d.ts +21 -0
- package/dist/lib/chart/index.d.ts +1 -0
- package/dist/lib/cn.d.ts +6 -0
- package/dist/lib/diff/diff-lines.d.ts +23 -0
- package/dist/lib/diff/index.d.ts +1 -0
- package/dist/lib/env.d.ts +55 -0
- package/dist/lib/live-region-context.d.ts +2 -0
- package/dist/lib/safe-href.d.ts +27 -0
- package/dist/lib/session/aggregate.d.ts +18 -0
- package/dist/lib/session/index.d.ts +2 -0
- package/dist/lib/session/types.d.ts +30 -0
- package/dist/lib/trace/align.d.ts +41 -0
- package/dist/lib/trace/attributes.d.ts +11 -0
- package/dist/lib/trace/bar-layout.d.ts +52 -0
- package/dist/lib/trace/chat.d.ts +14 -0
- package/dist/lib/trace/cost.d.ts +24 -0
- package/dist/lib/trace/duration.d.ts +18 -0
- package/dist/lib/trace/flatten.d.ts +28 -0
- package/dist/lib/trace/graph-layout.d.ts +52 -0
- package/dist/lib/trace/index.d.ts +9 -0
- package/dist/lib/trace/types.d.ts +85 -0
- package/dist/lib/types.d.ts +10 -0
- package/dist/preset.css +13 -0
- package/dist/styles/tailwind-preset.d.ts +29 -0
- package/dist/styles-v3-legacy.css +85 -0
- package/dist/styles.css +23 -0
- package/dist/tailwind-preset.js +166 -0
- package/dist/test/a11y.d.ts +13 -0
- package/dist/test/fixtures/trace.d.ts +19 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/tokens-v4.css +222 -0
- package/dist/tokens.css +288 -0
- package/dist/types/task.d.ts +9 -0
- package/package.json +127 -4
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/* LoopScale UI — design tokens.
|
|
2
|
+
*
|
|
3
|
+
* The values are the LoopScale brand: ink and paper neutrals and one brand color, lime.
|
|
4
|
+
* Ink is a very dark gray pulled toward green and the text is a slightly warm bone, so the
|
|
5
|
+
* dark theme sits at 14.8:1 where pure white on pure black would be 21:1.
|
|
6
|
+
*
|
|
7
|
+
* - Every color, scale and duration is a CSS custom property.
|
|
8
|
+
* - Light is the default. The `.dark` class on an ancestor switches to dark.
|
|
9
|
+
* - Values are plain colors, so alpha goes through `color-mix()` or Tailwind's `/50`
|
|
10
|
+
* modifiers. Never wrap a token in `hsl()`.
|
|
11
|
+
*
|
|
12
|
+
* `tests/brand-tokens.test.ts` holds these values and their contrast ratios in place.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/* `:root` and `.dark` are intentionally NOT wrapped in `@layer base`, so they apply at the
|
|
16
|
+
* document level whether or not the consumer's CSS pipeline runs Tailwind's preflight. The
|
|
17
|
+
* texture utilities below stay in `@layer utilities` because that layer only affects ordering.
|
|
18
|
+
*/
|
|
19
|
+
:root {
|
|
20
|
+
color-scheme: light;
|
|
21
|
+
|
|
22
|
+
/* Neutrals: paper ---------------------------------------------------- */
|
|
23
|
+
--background: #f4f3ef; /* paper */
|
|
24
|
+
--foreground: #16191a; /* ink, 15.9:1 */
|
|
25
|
+
|
|
26
|
+
--card: #fbfaf7; /* paper-raised */
|
|
27
|
+
--card-foreground: #16191a;
|
|
28
|
+
|
|
29
|
+
--popover: #fbfaf7;
|
|
30
|
+
--popover-foreground: #16191a;
|
|
31
|
+
|
|
32
|
+
/* Primary: the brand color where it has to work as text ------------- *
|
|
33
|
+
* Lime itself has no contrast on paper, so the light theme uses its dark
|
|
34
|
+
* olive for links, focus and filled controls. `-deep` and `-glow` are derived
|
|
35
|
+
* with OKLCH relative-color syntax; the clamps keep L inside the gamut.
|
|
36
|
+
*/
|
|
37
|
+
--primary: #556b00; /* lime-text, 5.4:1 */
|
|
38
|
+
--primary-deep: oklch(from var(--primary) max(0.05, calc(l - 0.08)) c h);
|
|
39
|
+
--primary-glow: oklch(from var(--primary) min(0.95, calc(l + 0.18)) c h);
|
|
40
|
+
--primary-foreground: #fbfaf7;
|
|
41
|
+
|
|
42
|
+
/* Secondary and muted: one step below paper -------------------------- */
|
|
43
|
+
--secondary: #eae8e2;
|
|
44
|
+
--secondary-foreground: #16191a;
|
|
45
|
+
--muted: #eae8e2;
|
|
46
|
+
--muted-foreground: #5a615f; /* ink-muted, 5.7:1 */
|
|
47
|
+
|
|
48
|
+
/* Accent: lime as a fill, always with ink on top --------------------- *
|
|
49
|
+
* Reserved for the one highlighted action on a screen. Never use it as a
|
|
50
|
+
* text color: on paper it fails contrast.
|
|
51
|
+
*/
|
|
52
|
+
--accent: #c4e34f; /* lime-fill */
|
|
53
|
+
--accent-deep: oklch(from var(--accent) max(0.05, calc(l - 0.06)) c h);
|
|
54
|
+
--accent-foreground: #111415; /* 12.7:1 */
|
|
55
|
+
|
|
56
|
+
/* Borders, inputs, focus -------------------------------------------- */
|
|
57
|
+
--border: #dcdad3; /* paper-line */
|
|
58
|
+
--input: #dcdad3;
|
|
59
|
+
--ring: #556b00;
|
|
60
|
+
|
|
61
|
+
/* Semantics --------------------------------------------------------- */
|
|
62
|
+
--success: #1f7a4f;
|
|
63
|
+
--success-foreground: #fbfaf7;
|
|
64
|
+
--warning: #7a6200;
|
|
65
|
+
--warning-foreground: #fbfaf7;
|
|
66
|
+
--destructive: #b3372a;
|
|
67
|
+
--destructive-foreground: #fbfaf7;
|
|
68
|
+
--info: #2c5e99;
|
|
69
|
+
--info-foreground: #fbfaf7;
|
|
70
|
+
|
|
71
|
+
/* Status: liveness of a component, as opposed to the result of an action.
|
|
72
|
+
* Lime sits between the warning yellow and the success green, so a status
|
|
73
|
+
* always carries a text label next to its color.
|
|
74
|
+
*/
|
|
75
|
+
--status-online: #1f7a4f;
|
|
76
|
+
--status-online-foreground: #fbfaf7;
|
|
77
|
+
--status-offline: #b3372a;
|
|
78
|
+
--status-offline-foreground: #fbfaf7;
|
|
79
|
+
--status-degraded: #7a6200;
|
|
80
|
+
--status-degraded-foreground: #fbfaf7;
|
|
81
|
+
--status-info: #2c5e99;
|
|
82
|
+
--status-info-foreground: #fbfaf7;
|
|
83
|
+
|
|
84
|
+
/* Radii ------------------------------------------------------------- */
|
|
85
|
+
--radius-none: 0px;
|
|
86
|
+
--radius-sm: 4px;
|
|
87
|
+
--radius-md: 6px;
|
|
88
|
+
--radius-lg: 10px;
|
|
89
|
+
--radius-xl: 14px;
|
|
90
|
+
--radius-2xl: 20px;
|
|
91
|
+
--radius-full: 9999px;
|
|
92
|
+
/* shadcn compat */
|
|
93
|
+
--radius: 14px;
|
|
94
|
+
|
|
95
|
+
/* Spacing scale (4px base) ------------------------------------------ */
|
|
96
|
+
--space-1: 4px;
|
|
97
|
+
--space-2: 8px;
|
|
98
|
+
--space-3: 12px;
|
|
99
|
+
--space-4: 16px;
|
|
100
|
+
--space-5: 20px;
|
|
101
|
+
--space-6: 24px;
|
|
102
|
+
--space-8: 32px;
|
|
103
|
+
--space-10: 40px;
|
|
104
|
+
--space-12: 48px;
|
|
105
|
+
--space-16: 64px;
|
|
106
|
+
--space-20: 80px;
|
|
107
|
+
--space-24: 96px;
|
|
108
|
+
--space-32: 128px;
|
|
109
|
+
|
|
110
|
+
/* Elevation. Shadows take their ink from --foreground and the glow from --primary. */
|
|
111
|
+
--shadow-sm: 0 1px 2px 0 color-mix(in oklch, var(--foreground) 6%, transparent);
|
|
112
|
+
--shadow-md: 0 2px 8px -2px color-mix(in oklch, var(--foreground) 8%, transparent), 0 1px 3px
|
|
113
|
+
color-mix(in oklch, var(--foreground) 6%, transparent);
|
|
114
|
+
--shadow-lg: 0 12px 32px -8px color-mix(in oklch, var(--foreground) 12%, transparent), 0 4px 12px
|
|
115
|
+
color-mix(in oklch, var(--foreground) 8%, transparent);
|
|
116
|
+
--shadow-glow: 0 0 24px color-mix(in oklch, var(--primary) 25%, transparent);
|
|
117
|
+
--shadow-glow-strong: 0 0 32px color-mix(in oklch, var(--primary) 40%, transparent);
|
|
118
|
+
|
|
119
|
+
/* Motion ------------------------------------------------------------ */
|
|
120
|
+
--ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
|
|
121
|
+
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
122
|
+
--ease-snap: cubic-bezier(0.85, 0, 0.15, 1);
|
|
123
|
+
--duration-fast: 120ms;
|
|
124
|
+
--duration-base: 200ms;
|
|
125
|
+
--duration-slow: 360ms;
|
|
126
|
+
--stagger: 60ms;
|
|
127
|
+
|
|
128
|
+
/* Typography: Hanken Grotesk for text, JetBrains Mono for code, labels and numbers. */
|
|
129
|
+
--font-display: "Hanken Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
|
|
130
|
+
--font-body: "Hanken Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
|
|
131
|
+
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Dark theme. Activated by the `.dark` class on an ancestor, usually `<html>`. */
|
|
135
|
+
.dark {
|
|
136
|
+
color-scheme: dark;
|
|
137
|
+
|
|
138
|
+
/* Neutrals: ink ------------------------------------------------------ */
|
|
139
|
+
--background: #111415; /* ink */
|
|
140
|
+
--foreground: #e7e6e0; /* bone, 14.8:1 */
|
|
141
|
+
|
|
142
|
+
--card: #181c1d; /* ink-raised */
|
|
143
|
+
--card-foreground: #e7e6e0;
|
|
144
|
+
|
|
145
|
+
--popover: #1d2223;
|
|
146
|
+
--popover-foreground: #e7e6e0;
|
|
147
|
+
|
|
148
|
+
--primary: #c4e34f; /* lime, 12.7:1 */
|
|
149
|
+
--primary-deep: oklch(from var(--primary) max(0.05, calc(l - 0.08)) c h);
|
|
150
|
+
--primary-glow: oklch(from var(--primary) min(0.95, calc(l + 0.08)) c h);
|
|
151
|
+
--primary-foreground: #111415;
|
|
152
|
+
|
|
153
|
+
--secondary: #202526;
|
|
154
|
+
--secondary-foreground: #e7e6e0;
|
|
155
|
+
--muted: #202526;
|
|
156
|
+
--muted-foreground: #9ba29f; /* bone-muted, 7.1:1 */
|
|
157
|
+
|
|
158
|
+
--accent: #c4e34f;
|
|
159
|
+
--accent-deep: oklch(from var(--accent) max(0.05, calc(l - 0.06)) c h);
|
|
160
|
+
--accent-foreground: #111415;
|
|
161
|
+
|
|
162
|
+
--border: #2a3032; /* ink-line */
|
|
163
|
+
--input: #2a3032;
|
|
164
|
+
--ring: #c4e34f;
|
|
165
|
+
|
|
166
|
+
--success: #5db98a;
|
|
167
|
+
--success-foreground: #111415;
|
|
168
|
+
--warning: #e6c84f;
|
|
169
|
+
--warning-foreground: #111415;
|
|
170
|
+
--destructive: #e8705f;
|
|
171
|
+
--destructive-foreground: #111415;
|
|
172
|
+
--info: #7fa8d9;
|
|
173
|
+
--info-foreground: #111415;
|
|
174
|
+
|
|
175
|
+
--status-online: #5db98a;
|
|
176
|
+
--status-online-foreground: #111415;
|
|
177
|
+
--status-offline: #e8705f;
|
|
178
|
+
--status-offline-foreground: #111415;
|
|
179
|
+
--status-degraded: #e6c84f;
|
|
180
|
+
--status-degraded-foreground: #111415;
|
|
181
|
+
--status-info: #7fa8d9;
|
|
182
|
+
--status-info-foreground: #111415;
|
|
183
|
+
|
|
184
|
+
/* Shadows are heavier ink against the dark surface. */
|
|
185
|
+
--shadow-sm: 0 1px 2px 0 oklch(0 0 0 / 0.4);
|
|
186
|
+
--shadow-md: 0 2px 8px -2px oklch(0 0 0 / 0.5), 0 1px 3px oklch(0 0 0 / 0.4);
|
|
187
|
+
--shadow-lg: 0 12px 32px -8px oklch(0 0 0 / 0.6), 0 4px 12px oklch(0 0 0 / 0.4);
|
|
188
|
+
--shadow-glow: 0 0 24px color-mix(in oklch, var(--primary-glow) 40%, transparent);
|
|
189
|
+
--shadow-glow-strong: 0 0 36px color-mix(in oklch, var(--primary-glow) 60%, transparent);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Forced colors (Windows High Contrast Mode) — D7 / ADR-0008 ----------- *
|
|
193
|
+
* Maps the semantic tokens to system colors so the UI remains usable
|
|
194
|
+
* (and required by WCAG 1.4.1) when the OS forces a high-contrast palette.
|
|
195
|
+
* Decorative textures opt out via `forced-color-adjust: none` (the dotted
|
|
196
|
+
* patterns and hero glow would invert into solid blocks otherwise).
|
|
197
|
+
*
|
|
198
|
+
* Reference: MDN forced-colors media query, WCAG 2.2 SC 1.4.1.
|
|
199
|
+
*/
|
|
200
|
+
@media (forced-colors: active) {
|
|
201
|
+
:root,
|
|
202
|
+
.dark {
|
|
203
|
+
--background: Canvas;
|
|
204
|
+
--foreground: CanvasText;
|
|
205
|
+
--card: Canvas;
|
|
206
|
+
--card-foreground: CanvasText;
|
|
207
|
+
--popover: Canvas;
|
|
208
|
+
--popover-foreground: CanvasText;
|
|
209
|
+
--primary: Highlight;
|
|
210
|
+
--primary-foreground: HighlightText;
|
|
211
|
+
--secondary: ButtonFace;
|
|
212
|
+
--secondary-foreground: ButtonText;
|
|
213
|
+
--accent: Highlight;
|
|
214
|
+
--accent-foreground: HighlightText;
|
|
215
|
+
--muted: ButtonFace;
|
|
216
|
+
--muted-foreground: GrayText;
|
|
217
|
+
--border: ButtonBorder;
|
|
218
|
+
--input: ButtonBorder;
|
|
219
|
+
--ring: Highlight;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* Texture utilities are decorative — keep them out of the system-color map. */
|
|
223
|
+
.bg-dotted-brand,
|
|
224
|
+
.bg-dotted-brand-strong,
|
|
225
|
+
.bg-hero-glow,
|
|
226
|
+
.bg-paper-grain {
|
|
227
|
+
forced-color-adjust: none;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Reduced motion — neutralizes durations and transitions for users who
|
|
232
|
+
* request prefers-reduced-motion: reduce. Components that use animation as
|
|
233
|
+
* semantic state (e.g. a spinner on a running step) can opt back in with
|
|
234
|
+
* Tailwind's `motion-safe:` prefix.
|
|
235
|
+
*
|
|
236
|
+
* Reference: WCAG 2.3.3 Animation from Interactions (Level AAA).
|
|
237
|
+
*/
|
|
238
|
+
@media (prefers-reduced-motion: reduce) {
|
|
239
|
+
:root {
|
|
240
|
+
--duration-fast: 0ms;
|
|
241
|
+
--duration-base: 0ms;
|
|
242
|
+
--duration-slow: 0ms;
|
|
243
|
+
--stagger: 0ms;
|
|
244
|
+
}
|
|
245
|
+
*,
|
|
246
|
+
*::before,
|
|
247
|
+
*::after {
|
|
248
|
+
animation-duration: 0.001ms !important;
|
|
249
|
+
animation-iteration-count: 1 !important;
|
|
250
|
+
transition-duration: 0.001ms !important;
|
|
251
|
+
scroll-behavior: auto !important;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* Texture utilities. */
|
|
256
|
+
@layer utilities {
|
|
257
|
+
.bg-dotted-brand {
|
|
258
|
+
background-image: radial-gradient(
|
|
259
|
+
color-mix(in oklch, var(--primary) 8%, transparent) 1px,
|
|
260
|
+
transparent 1px
|
|
261
|
+
);
|
|
262
|
+
background-size: 20px 20px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.bg-dotted-brand-strong {
|
|
266
|
+
background-image: radial-gradient(
|
|
267
|
+
color-mix(in oklch, var(--primary) 16%, transparent) 1px,
|
|
268
|
+
transparent 1px
|
|
269
|
+
);
|
|
270
|
+
background-size: 20px 20px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.bg-hero-glow {
|
|
274
|
+
background-image: radial-gradient(
|
|
275
|
+
ellipse 60% 50% at 70% 0%,
|
|
276
|
+
color-mix(in oklch, var(--primary) 18%, transparent) 0%,
|
|
277
|
+
transparent 60%
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.bg-paper-grain {
|
|
282
|
+
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.04 0 0 0 0 0.08 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.text-balance {
|
|
286
|
+
text-wrap: balance;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type TaskStatus = "idle" | "permission_required" | "starting" | "running" | "verifying" | "completed" | "failed";
|
|
2
|
+
export type TaskStepStatus = "pending" | "running" | "done" | "skipped";
|
|
3
|
+
export interface TaskStep {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
status: TaskStepStatus;
|
|
7
|
+
/** 0..1 progress for in-flight steps. */
|
|
8
|
+
progress?: number;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,129 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getloopscale/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.38.0",
|
|
4
|
+
"packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"description": "LoopScale design system: React components, primitives and the brand tokens.",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"react",
|
|
10
|
+
"design-system",
|
|
11
|
+
"components",
|
|
12
|
+
"ui",
|
|
13
|
+
"tailwind",
|
|
14
|
+
"radix",
|
|
15
|
+
"primitives",
|
|
16
|
+
"dashboard",
|
|
17
|
+
"loopscale",
|
|
18
|
+
"loopscale"
|
|
19
|
+
],
|
|
20
|
+
"homepage": "https://github.com/getloopscale/ui#readme",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/getloopscale/ui/issues"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/getloopscale/ui.git"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public",
|
|
30
|
+
"provenance": true
|
|
31
|
+
},
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"exports": {
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"import": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./preset": {
|
|
42
|
+
"types": "./dist/styles/tailwind-preset.d.ts",
|
|
43
|
+
"import": "./dist/tailwind-preset.js"
|
|
44
|
+
},
|
|
45
|
+
"./styles.css": "./dist/styles.css",
|
|
46
|
+
"./styles-v3-legacy.css": "./dist/styles-v3-legacy.css",
|
|
47
|
+
"./components.css": "./dist/components.css",
|
|
48
|
+
"./tokens.css": "./dist/tokens.css",
|
|
49
|
+
"./tokens-v4.css": "./dist/tokens-v4.css",
|
|
50
|
+
"./preset.css": "./dist/preset.css",
|
|
51
|
+
"./fonts.css": "./dist/fonts.css",
|
|
52
|
+
"./fonts-cdn.css": "./dist/fonts-cdn.css",
|
|
53
|
+
"./dist/fonts/*": "./dist/fonts/*"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=20"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"dev": "ladle serve",
|
|
60
|
+
"typecheck": "tsc --noEmit",
|
|
61
|
+
"lint": "biome check src",
|
|
62
|
+
"lint:ci": "biome check src",
|
|
63
|
+
"format:check": "biome format src",
|
|
64
|
+
"test": "vitest run",
|
|
65
|
+
"test:run": "vitest run",
|
|
66
|
+
"build": "tsup && tsc -p tsconfig.dts.json && pnpm run build:css",
|
|
67
|
+
"prepublishOnly": "npm run build",
|
|
68
|
+
"registry:build": "tsx scripts/build-registry.ts",
|
|
69
|
+
"registry:validate": "tsx scripts/validate-registry.ts",
|
|
70
|
+
"changeset": "changeset",
|
|
71
|
+
"version-packages": "changeset version && pnpm run sync:readme",
|
|
72
|
+
"release": "pnpm run build && changeset publish",
|
|
73
|
+
"sync:readme": "tsx scripts/sync-readme.ts",
|
|
74
|
+
"prepare": "git config core.hooksPath .githooks 2>/dev/null || true",
|
|
75
|
+
"build:css": "tsx scripts/build-css.ts"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"react": ">=18",
|
|
79
|
+
"react-dom": ">=18"
|
|
80
|
+
},
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
83
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
84
|
+
"@radix-ui/react-dialog": "^1.1.6",
|
|
85
|
+
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
|
86
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
87
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
88
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
89
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
90
|
+
"@radix-ui/react-slider": "^1.4.3",
|
|
91
|
+
"@radix-ui/react-slot": "^1.1.2",
|
|
92
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
93
|
+
"@radix-ui/react-tabs": "^1.1.3",
|
|
94
|
+
"@radix-ui/react-toast": "^1.2.15",
|
|
95
|
+
"@radix-ui/react-tooltip": "^1.1.8",
|
|
96
|
+
"@tanstack/react-virtual": "^3.14.6",
|
|
97
|
+
"class-variance-authority": "^0.7.1",
|
|
98
|
+
"clsx": "^2.1.1",
|
|
99
|
+
"cmdk": "^1.1.1",
|
|
100
|
+
"lucide-react": "^0.471.0",
|
|
101
|
+
"tailwind-merge": "^2.5.5",
|
|
102
|
+
"tailwindcss-animate": "^1.0.7"
|
|
103
|
+
},
|
|
104
|
+
"devDependencies": {
|
|
105
|
+
"@biomejs/biome": "^1.9.4",
|
|
106
|
+
"@changesets/cli": "^2.31.1",
|
|
107
|
+
"@ladle/react": "^4.1.2",
|
|
108
|
+
"@tailwindcss/cli": "^4.3.3",
|
|
109
|
+
"@tailwindcss/vite": "^4.3.2",
|
|
110
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
111
|
+
"@testing-library/react": "^16.1.0",
|
|
112
|
+
"@testing-library/user-event": "^14.5.2",
|
|
113
|
+
"@types/react": "^18.3.18",
|
|
114
|
+
"@types/react-dom": "^18.3.5",
|
|
115
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
116
|
+
"happy-dom": "^20.9.0",
|
|
117
|
+
"react": ">=18.2.0 <20",
|
|
118
|
+
"react-dom": ">=18.2.0 <20",
|
|
119
|
+
"tailwindcss": "^4.0.0",
|
|
120
|
+
"ts-prune": "^0.10.3",
|
|
121
|
+
"tsup": "^8.3.5",
|
|
122
|
+
"tsx": "^4.19.2",
|
|
123
|
+
"typescript": "^5.7.3",
|
|
124
|
+
"vite": "^6.0.0 || ^7.0.0",
|
|
125
|
+
"vitest": "^4.1.8",
|
|
126
|
+
"vitest-axe": "^0.1.0"
|
|
127
|
+
},
|
|
128
|
+
"_provenance": "seeded from loopscale-ui @ 2b46eca (2026-07-03, pivot M-B)"
|
|
129
|
+
}
|