@tulipfarm/sprout 0.3.0 → 0.4.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 +45 -40
- package/dist/components/accordion.d.ts +2 -2
- package/dist/components/accordion.js +9 -9
- package/dist/components/agent-fanout.d.ts +2 -2
- package/dist/components/agent-fanout.js +65 -87
- package/dist/components/alert-dialog.d.ts +6 -6
- package/dist/components/alert-dialog.js +20 -20
- package/dist/components/alert.d.ts +6 -6
- package/dist/components/alert.js +13 -13
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/aspect-ratio.js +2 -2
- package/dist/components/attachment.d.ts +17 -17
- package/dist/components/attachment.js +82 -115
- package/dist/components/avatar.d.ts +10 -10
- package/dist/components/avatar.js +14 -14
- package/dist/components/badge.d.ts +4 -4
- package/dist/components/badge.js +18 -18
- package/dist/components/board.d.ts +107 -0
- package/dist/components/board.js +640 -0
- package/dist/components/brand-icon.d.ts +6 -6
- package/dist/components/brand-icon.js +55 -63
- package/dist/components/breadcrumb.d.ts +11 -11
- package/dist/components/breadcrumb.js +16 -18
- package/dist/components/button-group.d.ts +6 -6
- package/dist/components/button-group.js +14 -14
- package/dist/components/button.d.ts +11 -11
- package/dist/components/button.js +46 -56
- package/dist/components/calendar.d.ts +5 -5
- package/dist/components/calendar.js +44 -53
- package/dist/components/canvas.d.ts +4 -4
- package/dist/components/canvas.js +39 -46
- package/dist/components/card.d.ts +6 -6
- package/dist/components/card.js +17 -17
- package/dist/components/carousel.d.ts +7 -7
- package/dist/components/carousel.js +57 -75
- package/dist/components/chart.d.ts +5 -112
- package/dist/components/chart.js +5 -172
- package/dist/components/chat-confirmation.d.ts +13 -11
- package/dist/components/chat-confirmation.js +32 -38
- package/dist/components/chat-input.d.ts +4 -4
- package/dist/components/chat-input.js +74 -81
- package/dist/components/chat-plan.d.ts +2 -2
- package/dist/components/chat-plan.js +15 -20
- package/dist/components/chat-sources.d.ts +8 -8
- package/dist/components/chat-sources.js +18 -27
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +9 -9
- package/dist/components/choice-list.d.ts +2 -2
- package/dist/components/choice-list.js +16 -18
- package/dist/components/code-block.d.ts +5 -5
- package/dist/components/code-block.js +26 -26
- package/dist/components/collapsible.d.ts +1 -1
- package/dist/components/collapsible.js +7 -11
- package/dist/components/combobox.d.ts +3 -3
- package/dist/components/combobox.js +24 -24
- package/dist/components/command.d.ts +13 -13
- package/dist/components/command.js +61 -73
- package/dist/components/context-menu.d.ts +5 -5
- package/dist/components/context-menu.js +22 -22
- package/dist/components/dialog.d.ts +6 -6
- package/dist/components/dialog.js +23 -28
- package/dist/components/direction.d.ts +1 -1
- package/dist/components/direction.js +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -5
- package/dist/components/dropdown-menu.js +20 -20
- package/dist/components/field.d.ts +11 -11
- package/dist/components/field.js +41 -61
- package/dist/components/file-explorer.d.ts +2 -2
- package/dist/components/file-explorer.js +89 -105
- package/dist/components/file-viewer.d.ts +10 -10
- package/dist/components/file-viewer.js +112 -140
- package/dist/components/form.d.ts +7 -7
- package/dist/components/form.js +24 -28
- package/dist/components/glass-banner.d.ts +3 -3
- package/dist/components/glass-banner.js +21 -24
- package/dist/components/gradient-banner.d.ts +5 -5
- package/dist/components/gradient-banner.js +13 -22
- package/dist/components/hover-card.d.ts +4 -4
- package/dist/components/hover-card.js +6 -6
- package/dist/components/input-group.d.ts +11 -11
- package/dist/components/input-group.js +22 -36
- package/dist/components/input-otp.d.ts +10 -10
- package/dist/components/input-otp.js +13 -15
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +7 -7
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +5 -5
- package/dist/components/label.d.ts +2 -2
- package/dist/components/label.js +2 -2
- package/dist/components/mention-list.d.ts +3 -3
- package/dist/components/mention-list.js +10 -10
- package/dist/components/menubar.d.ts +6 -6
- package/dist/components/menubar.js +22 -22
- package/dist/components/message-actions.d.ts +2 -2
- package/dist/components/message-actions.js +29 -31
- package/dist/components/message-response.d.ts +3 -3
- package/dist/components/message-response.js +18 -18
- package/dist/components/message-scroller.d.ts +12 -12
- package/dist/components/message-scroller.js +44 -56
- package/dist/components/message.d.ts +11 -11
- package/dist/components/message.js +25 -25
- package/dist/components/navigation-menu.d.ts +2 -2
- package/dist/components/navigation-menu.js +15 -15
- package/dist/components/notice-banner.d.ts +2 -2
- package/dist/components/notice-banner.js +2 -2
- package/dist/components/page-content.d.ts +2 -2
- package/dist/components/page-content.js +2 -2
- package/dist/components/page-header.d.ts +1 -1
- package/dist/components/page-header.js +16 -16
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/pagination.js +17 -17
- package/dist/components/plan-outline.d.ts +2 -2
- package/dist/components/plan-outline.js +43 -60
- package/dist/components/popover.d.ts +6 -6
- package/dist/components/popover.js +15 -15
- package/dist/components/presence-cursor.d.ts +2 -2
- package/dist/components/presence-cursor.js +3 -3
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +8 -8
- package/dist/components/prompt-list.d.ts +3 -3
- package/dist/components/prompt-list.js +6 -6
- package/dist/components/questionnaire.d.ts +19 -19
- package/dist/components/questionnaire.js +183 -242
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +6 -6
- package/dist/components/reasoning-effort.d.ts +3 -3
- package/dist/components/reasoning-effort.js +9 -12
- package/dist/components/record-list.d.ts +66 -0
- package/dist/components/record-list.js +151 -0
- package/dist/components/resizable.d.ts +5 -5
- package/dist/components/resizable.js +76 -102
- package/dist/components/result-card.d.ts +10 -5
- package/dist/components/result-card.js +42 -53
- package/dist/components/result-notice.d.ts +18 -0
- package/dist/components/result-notice.js +29 -0
- package/dist/components/review-card.d.ts +6 -6
- package/dist/components/review-card.js +18 -18
- package/dist/components/rich-text-editor.d.ts +2 -2
- package/dist/components/rich-text-editor.js +56 -72
- package/dist/components/schema-diagram.d.ts +3 -3
- package/dist/components/schema-diagram.js +39 -53
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area.js +10 -14
- package/dist/components/search-dialog.d.ts +6 -6
- package/dist/components/search-dialog.js +16 -16
- package/dist/components/search-field.d.ts +1 -1
- package/dist/components/search-field.js +11 -11
- package/dist/components/select.d.ts +3 -3
- package/dist/components/select.js +20 -20
- package/dist/components/selection-slot.d.ts +2 -2
- package/dist/components/selection-slot.js +6 -9
- package/dist/components/separator.d.ts +15 -15
- package/dist/components/separator.js +22 -27
- package/dist/components/settings-list.d.ts +3 -3
- package/dist/components/settings-list.js +5 -5
- package/dist/components/sheet.d.ts +6 -6
- package/dist/components/sheet.js +27 -27
- package/dist/components/sidebar.d.ts +22 -22
- package/dist/components/sidebar.js +57 -58
- package/dist/components/skeleton.d.ts +5 -5
- package/dist/components/skeleton.js +14 -21
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +6 -6
- package/dist/components/spinner.d.ts +5 -5
- package/dist/components/spinner.js +22 -26
- package/dist/components/sql-viewer.d.ts +14 -14
- package/dist/components/sql-viewer.js +99 -128
- package/dist/components/state-panel-samples.d.ts +2 -2
- package/dist/components/state-panel-samples.js +209 -245
- package/dist/components/state-panel.d.ts +2 -35
- package/dist/components/state-panel.js +2 -29
- package/dist/components/state-sample.d.ts +7 -7
- package/dist/components/state-sample.js +18 -31
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +7 -7
- package/dist/components/table-nuqs.d.ts +2 -2
- package/dist/components/table-nuqs.js +11 -12
- package/dist/components/table.d.ts +4 -4
- package/dist/components/table.js +166 -235
- package/dist/components/tabs.d.ts +2 -2
- package/dist/components/tabs.js +12 -12
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +6 -8
- package/dist/components/timeline.d.ts +3 -0
- package/dist/components/timeline.js +3 -0
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +19 -25
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +18 -20
- package/dist/components/toggle.d.ts +2 -2
- package/dist/components/toggle.js +8 -8
- package/dist/components/tool-activity.d.ts +1 -1
- package/dist/components/tool-activity.js +83 -110
- package/dist/components/toolbar-status.d.ts +2 -2
- package/dist/components/toolbar-status.js +7 -7
- package/dist/components/tooltip.d.ts +5 -5
- package/dist/components/tooltip.js +12 -11
- package/dist/components/typed-text.d.ts +2 -2
- package/dist/components/typed-text.js +10 -12
- package/dist/components/view-switcher.d.ts +51 -0
- package/dist/components/view-switcher.js +114 -0
- package/dist/index.d.ts +98 -93
- package/dist/index.js +98 -93
- package/dist/internal/chart-kit.d.ts +142 -0
- package/dist/internal/chart-kit.js +200 -0
- package/dist/internal/charts/bars.d.ts +61 -0
- package/dist/internal/charts/bars.js +86 -0
- package/dist/internal/charts/lines.d.ts +67 -0
- package/dist/internal/charts/lines.js +70 -0
- package/dist/internal/charts/more.d.ts +77 -0
- package/dist/internal/charts/more.js +68 -0
- package/dist/internal/charts/parts.d.ts +54 -0
- package/dist/internal/charts/parts.js +82 -0
- package/dist/internal/charts/timeline-dates.d.ts +38 -0
- package/dist/internal/charts/timeline-dates.js +113 -0
- package/dist/internal/charts/timeline-window.d.ts +31 -0
- package/dist/internal/charts/timeline-window.js +26 -0
- package/dist/internal/charts/timeline.d.ts +72 -0
- package/dist/internal/charts/timeline.js +287 -0
- package/dist/internal/classes.d.ts +1 -1
- package/dist/internal/classes.js +7 -9
- package/dist/internal/code-tokens.d.ts +2 -2
- package/dist/internal/code-tokens.js +12 -12
- package/dist/internal/fieldset.d.ts +1 -1
- package/dist/internal/fieldset.js +6 -6
- package/dist/internal/file-kind.d.ts +1 -1
- package/dist/internal/file-kind.js +43 -51
- package/dist/internal/flow.d.ts +4 -4
- package/dist/internal/flow.js +20 -23
- package/dist/internal/languages.js +999 -999
- package/dist/internal/message-scroller.d.ts +3 -3
- package/dist/internal/message-scroller.js +64 -112
- package/dist/internal/pressable.d.ts +1 -1
- package/dist/internal/pressable.js +7 -7
- package/dist/internal/state-panel.d.ts +35 -0
- package/dist/internal/state-panel.js +22 -0
- package/dist/internal/syntax.d.ts +2 -2
- package/dist/internal/syntax.js +36 -47
- package/dist/styles/accordion.css +3 -5
- package/dist/styles/agent-fanout.css +64 -60
- package/dist/styles/alert-dialog.css +12 -26
- package/dist/styles/alert.css +10 -15
- package/dist/styles/attachment.css +51 -93
- package/dist/styles/avatar.css +17 -24
- package/dist/styles/badge.css +11 -36
- package/dist/styles/board.css +571 -0
- package/dist/styles/brand-icon.css +7 -8
- package/dist/styles/breadcrumb.css +4 -7
- package/dist/styles/button-group.css +8 -14
- package/dist/styles/button.css +22 -27
- package/dist/styles/calendar.css +24 -36
- package/dist/styles/canvas.css +2 -3
- package/dist/styles/card.css +7 -23
- package/dist/styles/carousel.css +11 -12
- package/dist/styles/chart.css +215 -31
- package/dist/styles/chat-input.css +15 -39
- package/dist/styles/chat-plan.css +3 -4
- package/dist/styles/chat-sources.css +3 -6
- package/dist/styles/checkbox.css +11 -25
- package/dist/styles/choice-list.css +17 -31
- package/dist/styles/code-block.css +11 -25
- package/dist/styles/collapsible.css +10 -15
- package/dist/styles/combobox.css +11 -15
- package/dist/styles/command.css +5 -8
- package/dist/styles/context-menu.css +2 -2
- package/dist/styles/dialog.css +5 -16
- package/dist/styles/dropdown-menu.css +2 -2
- package/dist/styles/field.css +15 -21
- package/dist/styles/file-explorer.css +19 -33
- package/dist/styles/file-viewer.css +13 -17
- package/dist/styles/form.css +3 -3
- package/dist/styles/glass-banner.css +12 -47
- package/dist/styles/gradient-banner.css +17 -35
- package/dist/styles/hover-card.css +9 -15
- package/dist/styles/index.css +116 -108
- package/dist/styles/input-group.css +25 -41
- package/dist/styles/input-otp.css +5 -6
- package/dist/styles/input.css +5 -5
- package/dist/styles/kbd.css +1 -1
- package/dist/styles/label.css +9 -30
- package/dist/styles/mention-list.css +6 -8
- package/dist/styles/menubar.css +5 -6
- package/dist/styles/message-actions.css +1 -1
- package/dist/styles/message-response.css +3 -5
- package/dist/styles/message-scroller.css +14 -21
- package/dist/styles/message.css +23 -60
- package/dist/styles/navigation-menu.css +14 -29
- package/dist/styles/notice-banner.css +1 -2
- package/dist/styles/page-header.css +7 -10
- package/dist/styles/pagination.css +1 -4
- package/dist/styles/plan-outline.css +20 -37
- package/dist/styles/popover.css +10 -19
- package/dist/styles/presence-cursor.css +1 -2
- package/dist/styles/progress.css +2 -4
- package/dist/styles/prompt-list.css +6 -17
- package/dist/styles/questionnaire.css +16 -40
- package/dist/styles/radio-group.css +12 -23
- package/dist/styles/reasoning-effort.css +8 -15
- package/dist/styles/record-list.css +243 -0
- package/dist/styles/resizable.css +10 -11
- package/dist/styles/result-card.css +17 -3
- package/dist/styles/result-notice.css +80 -0
- package/dist/styles/review-card.css +2 -3
- package/dist/styles/rich-text-editor.css +1 -2
- package/dist/styles/schema-diagram.css +12 -17
- package/dist/styles/scroll-area.css +8 -10
- package/dist/styles/search-dialog.css +1 -5
- package/dist/styles/search-field.css +1 -2
- package/dist/styles/select.css +7 -7
- package/dist/styles/selection-slot.css +1 -2
- package/dist/styles/separator.css +7 -8
- package/dist/styles/settings-list.css +1 -2
- package/dist/styles/sheet.css +40 -73
- package/dist/styles/sidebar.css +17 -21
- package/dist/styles/skeleton.css +9 -11
- package/dist/styles/slider.css +11 -21
- package/dist/styles/spinner.css +2 -2
- package/dist/styles/sql-viewer.css +29 -29
- package/dist/styles/state-panel.css +8 -9
- package/dist/styles/state-sample.css +20 -33
- package/dist/styles/switch.css +11 -18
- package/dist/styles/table.css +51 -77
- package/dist/styles/tabs.css +12 -16
- package/dist/styles/textarea.css +3 -3
- package/dist/styles/themes/chatgpt.css +11 -23
- package/dist/styles/themes/claude.css +12 -24
- package/dist/styles/themes/cloudflare.css +11 -23
- package/dist/styles/themes/discord.css +11 -23
- package/dist/styles/themes/github.css +11 -23
- package/dist/styles/themes/grok.css +11 -23
- package/dist/styles/themes/linear.css +12 -25
- package/dist/styles/themes/neutral.css +11 -23
- package/dist/styles/themes/notion.css +11 -23
- package/dist/styles/themes/perplexity.css +11 -23
- package/dist/styles/themes/raycast.css +11 -23
- package/dist/styles/themes/spotify.css +11 -23
- package/dist/styles/themes/stripe.css +11 -23
- package/dist/styles/themes/supabase.css +11 -23
- package/dist/styles/themes/tulipfarm.css +9 -10
- package/dist/styles/themes/vercel.css +12 -25
- package/dist/styles/timeline.css +276 -0
- package/dist/styles/toast.css +13 -20
- package/dist/styles/toggle-group.css +17 -23
- package/dist/styles/toggle.css +8 -8
- package/dist/styles/tool-activity.css +7 -13
- package/dist/styles/toolbar-status.css +2 -7
- package/dist/styles/tooltip.css +15 -21
- package/dist/styles/view-switcher.css +279 -0
- package/package.json +21 -1
package/dist/styles/skeleton.css
CHANGED
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
pointer-events: none;
|
|
11
11
|
user-select: none;
|
|
12
12
|
}
|
|
13
|
-
.sprout-skeleton[data-shape=
|
|
13
|
+
.sprout-skeleton[data-shape='title'] {
|
|
14
14
|
width: 66.6667%;
|
|
15
15
|
height: 24px;
|
|
16
16
|
}
|
|
17
|
-
.sprout-skeleton[data-shape=
|
|
17
|
+
.sprout-skeleton[data-shape='avatar'] {
|
|
18
18
|
width: 32px;
|
|
19
19
|
height: 32px;
|
|
20
20
|
border-radius: 9999px;
|
|
21
21
|
}
|
|
22
|
-
.sprout-skeleton[data-shape=
|
|
22
|
+
.sprout-skeleton[data-shape='panel'] {
|
|
23
23
|
height: 128px;
|
|
24
24
|
border-radius: var(--sprout-radius-control);
|
|
25
25
|
}
|
|
26
|
-
.sprout-skeleton[data-shape=
|
|
26
|
+
.sprout-skeleton[data-shape='checkbox'] {
|
|
27
27
|
width: 16px;
|
|
28
28
|
height: 16px;
|
|
29
29
|
border-radius: 4px;
|
|
30
30
|
}
|
|
31
|
-
.sprout-skeleton[data-shape=
|
|
31
|
+
.sprout-skeleton[data-shape='action'] {
|
|
32
32
|
width: 28px;
|
|
33
33
|
height: 28px;
|
|
34
34
|
}
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
gap: 12px;
|
|
40
40
|
min-width: 0;
|
|
41
41
|
}
|
|
42
|
-
.sprout-skeleton-group[data-gap=
|
|
42
|
+
.sprout-skeleton-group[data-gap='sm'] {
|
|
43
43
|
gap: 8px;
|
|
44
44
|
}
|
|
45
|
-
.sprout-skeleton-group[data-gap=
|
|
45
|
+
.sprout-skeleton-group[data-gap='lg'] {
|
|
46
46
|
gap: 16px;
|
|
47
47
|
}
|
|
48
48
|
.sprout-skeleton-group-label {
|
|
@@ -58,10 +58,8 @@
|
|
|
58
58
|
|
|
59
59
|
@media (prefers-reduced-motion: no-preference) {
|
|
60
60
|
.sprout-skeleton {
|
|
61
|
-
animation: sprout-skeleton-pulse 1.6s cubic-bezier(0.4, 0, 0.6, 1)
|
|
62
|
-
|
|
63
|
-
transition: background-color var(--sprout-motion-fast)
|
|
64
|
-
var(--sprout-motion-ease);
|
|
61
|
+
animation: sprout-skeleton-pulse 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
62
|
+
transition: background-color var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
65
63
|
}
|
|
66
64
|
}
|
|
67
65
|
|
package/dist/styles/slider.css
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.sprout-slider {
|
|
3
3
|
--sprout-slider-thumb: #fff;
|
|
4
|
-
--sprout-slider-ring: color-mix(
|
|
5
|
-
in oklab,
|
|
6
|
-
var(--sprout-focus) 50%,
|
|
7
|
-
transparent
|
|
8
|
-
);
|
|
4
|
+
--sprout-slider-ring: color-mix(in oklab, var(--sprout-focus) 50%, transparent);
|
|
9
5
|
display: block;
|
|
10
6
|
width: 100%;
|
|
11
7
|
}
|
|
12
|
-
.sprout-slider[data-orientation=
|
|
8
|
+
.sprout-slider[data-orientation='vertical'] {
|
|
13
9
|
width: auto;
|
|
14
10
|
height: 100%;
|
|
15
11
|
}
|
|
@@ -26,7 +22,7 @@
|
|
|
26
22
|
user-select: none;
|
|
27
23
|
cursor: pointer;
|
|
28
24
|
}
|
|
29
|
-
.sprout-slider-control[data-orientation=
|
|
25
|
+
.sprout-slider-control[data-orientation='vertical'] {
|
|
30
26
|
flex-direction: column;
|
|
31
27
|
width: auto;
|
|
32
28
|
height: 100%;
|
|
@@ -48,11 +44,11 @@
|
|
|
48
44
|
background-color: var(--sprout-input);
|
|
49
45
|
user-select: none;
|
|
50
46
|
}
|
|
51
|
-
.sprout-slider-track[data-orientation=
|
|
47
|
+
.sprout-slider-track[data-orientation='horizontal'] {
|
|
52
48
|
width: 100%;
|
|
53
49
|
height: 4px;
|
|
54
50
|
}
|
|
55
|
-
.sprout-slider-track[data-orientation=
|
|
51
|
+
.sprout-slider-track[data-orientation='vertical'] {
|
|
56
52
|
width: 4px;
|
|
57
53
|
height: 100%;
|
|
58
54
|
}
|
|
@@ -61,10 +57,10 @@
|
|
|
61
57
|
background-color: var(--sprout-primary);
|
|
62
58
|
user-select: none;
|
|
63
59
|
}
|
|
64
|
-
.sprout-slider-range[data-orientation=
|
|
60
|
+
.sprout-slider-range[data-orientation='horizontal'] {
|
|
65
61
|
height: 100%;
|
|
66
62
|
}
|
|
67
|
-
.sprout-slider-range[data-orientation=
|
|
63
|
+
.sprout-slider-range[data-orientation='vertical'] {
|
|
68
64
|
width: 100%;
|
|
69
65
|
}
|
|
70
66
|
|
|
@@ -84,7 +80,7 @@
|
|
|
84
80
|
}
|
|
85
81
|
/* A 28px hit area around the thumb. */
|
|
86
82
|
.sprout-slider-thumb::after {
|
|
87
|
-
content:
|
|
83
|
+
content: '';
|
|
88
84
|
position: absolute;
|
|
89
85
|
inset: -8px;
|
|
90
86
|
}
|
|
@@ -96,11 +92,7 @@
|
|
|
96
92
|
0 0 0 3px var(--sprout-slider-ring);
|
|
97
93
|
}
|
|
98
94
|
.sprout-slider-thumb[data-invalid] {
|
|
99
|
-
--sprout-slider-ring: color-mix(
|
|
100
|
-
in oklab,
|
|
101
|
-
var(--sprout-danger) 30%,
|
|
102
|
-
transparent
|
|
103
|
-
);
|
|
95
|
+
--sprout-slider-ring: color-mix(in oklab, var(--sprout-danger) 30%, transparent);
|
|
104
96
|
border-color: var(--sprout-danger);
|
|
105
97
|
}
|
|
106
98
|
.sprout-slider-thumb[data-disabled],
|
|
@@ -112,10 +104,8 @@
|
|
|
112
104
|
@media (prefers-reduced-motion: no-preference) {
|
|
113
105
|
.sprout-slider-thumb {
|
|
114
106
|
transition:
|
|
115
|
-
box-shadow var(--sprout-motion-fast, 120ms)
|
|
116
|
-
|
|
117
|
-
border-color var(--sprout-motion-fast, 120ms)
|
|
118
|
-
var(--sprout-motion-ease, ease-out);
|
|
107
|
+
box-shadow var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
108
|
+
border-color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
119
109
|
}
|
|
120
110
|
}
|
|
121
111
|
|
package/dist/styles/spinner.css
CHANGED
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
width: 64px;
|
|
22
22
|
height: 64px;
|
|
23
23
|
}
|
|
24
|
-
.sprout-spinner[data-variant=
|
|
24
|
+
.sprout-spinner[data-variant='thinking'] {
|
|
25
25
|
vertical-align: middle;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
@media (prefers-reduced-motion: no-preference) {
|
|
29
|
-
.sprout-spinner[data-variant=
|
|
29
|
+
.sprout-spinner[data-variant='default'] {
|
|
30
30
|
animation: sprout-spinner-spin 1s linear infinite;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -19,29 +19,44 @@
|
|
|
19
19
|
|
|
20
20
|
.sprout-sql-flow.light,
|
|
21
21
|
.sprout-sql-flow.dark {
|
|
22
|
+
--sprout-indigo: inherit;
|
|
23
|
+
--sprout-green: inherit;
|
|
24
|
+
--sprout-orange: inherit;
|
|
25
|
+
--sprout-red: inherit;
|
|
26
|
+
--sprout-sky: inherit;
|
|
27
|
+
--sprout-purple: inherit;
|
|
28
|
+
--sprout-yellow: inherit;
|
|
29
|
+
--sprout-teal: inherit;
|
|
30
|
+
--sprout-blue: inherit;
|
|
31
|
+
--sprout-tan: inherit;
|
|
22
32
|
--sprout-chart-1: inherit;
|
|
23
33
|
--sprout-chart-2: inherit;
|
|
24
34
|
--sprout-chart-3: inherit;
|
|
25
35
|
--sprout-chart-4: inherit;
|
|
26
36
|
--sprout-chart-5: inherit;
|
|
37
|
+
--sprout-chart-6: inherit;
|
|
38
|
+
--sprout-chart-7: inherit;
|
|
39
|
+
--sprout-chart-8: inherit;
|
|
40
|
+
--sprout-chart-9: inherit;
|
|
41
|
+
--sprout-chart-10: inherit;
|
|
27
42
|
}
|
|
28
43
|
|
|
29
44
|
.sprout-sql-viewer [data-tone] {
|
|
30
45
|
--sprout-sql-tone: var(--sprout-primary);
|
|
31
46
|
}
|
|
32
|
-
.sprout-sql-viewer [data-tone=
|
|
47
|
+
.sprout-sql-viewer [data-tone='1'] {
|
|
33
48
|
--sprout-sql-tone: var(--sprout-chart-1);
|
|
34
49
|
}
|
|
35
|
-
.sprout-sql-viewer [data-tone=
|
|
50
|
+
.sprout-sql-viewer [data-tone='2'] {
|
|
36
51
|
--sprout-sql-tone: var(--sprout-chart-2);
|
|
37
52
|
}
|
|
38
|
-
.sprout-sql-viewer [data-tone=
|
|
53
|
+
.sprout-sql-viewer [data-tone='3'] {
|
|
39
54
|
--sprout-sql-tone: var(--sprout-chart-3);
|
|
40
55
|
}
|
|
41
|
-
.sprout-sql-viewer [data-tone=
|
|
56
|
+
.sprout-sql-viewer [data-tone='4'] {
|
|
42
57
|
--sprout-sql-tone: var(--sprout-chart-4);
|
|
43
58
|
}
|
|
44
|
-
.sprout-sql-viewer [data-tone=
|
|
59
|
+
.sprout-sql-viewer [data-tone='5'] {
|
|
45
60
|
--sprout-sql-tone: var(--sprout-chart-5);
|
|
46
61
|
}
|
|
47
62
|
|
|
@@ -73,8 +88,7 @@
|
|
|
73
88
|
box-sizing: border-box;
|
|
74
89
|
width: 100%;
|
|
75
90
|
height: 100%;
|
|
76
|
-
border: 1px solid
|
|
77
|
-
color-mix(in oklab, var(--sprout-sql-tone) 45%, var(--sprout-line));
|
|
91
|
+
border: 1px solid color-mix(in oklab, var(--sprout-sql-tone) 45%, var(--sprout-line));
|
|
78
92
|
border-radius: 14px;
|
|
79
93
|
background: color-mix(in oklab, var(--sprout-sql-tone) 6%, transparent);
|
|
80
94
|
}
|
|
@@ -126,11 +140,7 @@
|
|
|
126
140
|
box-shadow: var(--sprout-shadow-panel);
|
|
127
141
|
}
|
|
128
142
|
.sprout-sql-table[data-active] {
|
|
129
|
-
border-color: color-mix(
|
|
130
|
-
in oklab,
|
|
131
|
-
var(--sprout-sql-tone) 55%,
|
|
132
|
-
var(--sprout-line)
|
|
133
|
-
);
|
|
143
|
+
border-color: color-mix(in oklab, var(--sprout-sql-tone) 55%, var(--sprout-line));
|
|
134
144
|
}
|
|
135
145
|
|
|
136
146
|
.sprout-sql-table-header {
|
|
@@ -141,11 +151,7 @@
|
|
|
141
151
|
height: 40px;
|
|
142
152
|
padding: 0 12px;
|
|
143
153
|
border-bottom: 1px solid var(--sprout-line);
|
|
144
|
-
background: color-mix(
|
|
145
|
-
in oklab,
|
|
146
|
-
var(--sprout-sql-tone) 9%,
|
|
147
|
-
var(--sprout-surface)
|
|
148
|
-
);
|
|
154
|
+
background: color-mix(in oklab, var(--sprout-sql-tone) 9%, var(--sprout-surface));
|
|
149
155
|
}
|
|
150
156
|
.sprout-sql-table-title {
|
|
151
157
|
min-width: 0;
|
|
@@ -177,8 +183,7 @@
|
|
|
177
183
|
line-height: 1.25rem;
|
|
178
184
|
}
|
|
179
185
|
.sprout-sql-column + .sprout-sql-column {
|
|
180
|
-
box-shadow: inset 0 1px 0
|
|
181
|
-
color-mix(in oklab, var(--sprout-line) 60%, transparent);
|
|
186
|
+
box-shadow: inset 0 1px 0 color-mix(in oklab, var(--sprout-line) 60%, transparent);
|
|
182
187
|
}
|
|
183
188
|
.sprout-sql-column[data-join] {
|
|
184
189
|
cursor: pointer;
|
|
@@ -194,7 +199,7 @@
|
|
|
194
199
|
width: 12px;
|
|
195
200
|
color: var(--sprout-muted);
|
|
196
201
|
}
|
|
197
|
-
.sprout-sql-column[data-key=
|
|
202
|
+
.sprout-sql-column[data-key='primary'] .sprout-sql-column-icon {
|
|
198
203
|
color: var(--sprout-warning);
|
|
199
204
|
}
|
|
200
205
|
.sprout-sql-column[data-join] .sprout-sql-column-icon {
|
|
@@ -207,7 +212,7 @@
|
|
|
207
212
|
text-overflow: ellipsis;
|
|
208
213
|
white-space: nowrap;
|
|
209
214
|
}
|
|
210
|
-
.sprout-sql-column[data-key=
|
|
215
|
+
.sprout-sql-column[data-key='primary'] .sprout-sql-column-name {
|
|
211
216
|
font-weight: 600;
|
|
212
217
|
}
|
|
213
218
|
.sprout-sql-column-type {
|
|
@@ -223,11 +228,7 @@
|
|
|
223
228
|
|
|
224
229
|
.sprout-sql-keys {
|
|
225
230
|
border-top: 1px solid var(--sprout-line);
|
|
226
|
-
background: color-mix(
|
|
227
|
-
in oklab,
|
|
228
|
-
var(--sprout-hover) 40%,
|
|
229
|
-
var(--sprout-surface)
|
|
230
|
-
);
|
|
231
|
+
background: color-mix(in oklab, var(--sprout-hover) 40%, var(--sprout-surface));
|
|
231
232
|
}
|
|
232
233
|
.sprout-sql-keys-title {
|
|
233
234
|
box-sizing: border-box;
|
|
@@ -277,14 +278,13 @@
|
|
|
277
278
|
box-sizing: border-box;
|
|
278
279
|
max-width: calc(100% - 88px);
|
|
279
280
|
padding: 8px 10px;
|
|
280
|
-
border: 1px solid
|
|
281
|
-
color-mix(in oklab, var(--sprout-primary) 40%, var(--sprout-line));
|
|
281
|
+
border: 1px solid color-mix(in oklab, var(--sprout-primary) 40%, var(--sprout-line));
|
|
282
282
|
border-radius: 8px;
|
|
283
283
|
background: var(--sprout-surface);
|
|
284
284
|
box-shadow: var(--sprout-shadow-control);
|
|
285
285
|
pointer-events: none;
|
|
286
286
|
}
|
|
287
|
-
.sprout-sql-viewer[data-layout=
|
|
287
|
+
.sprout-sql-viewer[data-layout='vertical'] .sprout-sql-joins {
|
|
288
288
|
max-width: calc(100% - 24px);
|
|
289
289
|
}
|
|
290
290
|
.sprout-sql-join-text {
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
font-family: var(--sprout-font);
|
|
4
4
|
color: var(--sprout-text);
|
|
5
5
|
overflow-wrap: anywhere;
|
|
6
|
-
animation: sprout-state-panel-in var(--sprout-motion-normal, 180ms)
|
|
7
|
-
var(--sprout-motion-ease, ease) both;
|
|
6
|
+
animation: sprout-state-panel-in var(--sprout-motion-normal, 180ms) var(--sprout-motion-ease, ease) both;
|
|
8
7
|
}
|
|
9
|
-
.sprout-state-panel[data-layout=
|
|
8
|
+
.sprout-state-panel[data-layout='centered'] {
|
|
10
9
|
display: flex;
|
|
11
10
|
flex-direction: column;
|
|
12
11
|
align-items: center;
|
|
@@ -71,7 +70,7 @@
|
|
|
71
70
|
display: none;
|
|
72
71
|
}
|
|
73
72
|
|
|
74
|
-
.sprout-state-panel[data-layout=
|
|
73
|
+
.sprout-state-panel[data-layout='sample'] {
|
|
75
74
|
container-type: inline-size;
|
|
76
75
|
width: 100%;
|
|
77
76
|
}
|
|
@@ -92,17 +91,17 @@
|
|
|
92
91
|
gap: 1.5rem;
|
|
93
92
|
padding: 1.5rem;
|
|
94
93
|
}
|
|
95
|
-
[data-layout=
|
|
94
|
+
[data-layout='sample'] .sprout-state-panel-text {
|
|
96
95
|
max-width: 28rem;
|
|
97
96
|
}
|
|
98
|
-
[data-layout=
|
|
97
|
+
[data-layout='sample'] .sprout-state-panel-title {
|
|
99
98
|
font-size: 1.25rem;
|
|
100
99
|
line-height: 1.4;
|
|
101
100
|
}
|
|
102
|
-
[data-layout=
|
|
101
|
+
[data-layout='sample'] .sprout-state-panel-description {
|
|
103
102
|
font-size: var(--sprout-text-base);
|
|
104
103
|
}
|
|
105
|
-
[data-layout=
|
|
104
|
+
[data-layout='sample'] .sprout-state-panel-actions {
|
|
106
105
|
align-items: stretch;
|
|
107
106
|
gap: 0.5rem;
|
|
108
107
|
}
|
|
@@ -127,7 +126,7 @@
|
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
@container (min-width: 24rem) {
|
|
130
|
-
[data-layout=
|
|
129
|
+
[data-layout='sample'] .sprout-state-panel-actions {
|
|
131
130
|
flex-direction: row;
|
|
132
131
|
flex-wrap: wrap;
|
|
133
132
|
align-items: center;
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
--sprout-state-sample-document: #2b67d1;
|
|
7
7
|
--sprout-state-sample-slides: #d9622b;
|
|
8
8
|
--sprout-state-sample-image: #a8d4f7;
|
|
9
|
-
--sprout-state-sample-chart-1: #188038;
|
|
10
|
-
--sprout-state-sample-chart-2: #245cba;
|
|
11
|
-
--sprout-state-sample-chart-4: #7c4eb0;
|
|
12
9
|
}
|
|
13
10
|
.sprout-state-sample {
|
|
14
11
|
display: flex;
|
|
@@ -23,17 +20,11 @@
|
|
|
23
20
|
.dark.sprout-state-sample,
|
|
24
21
|
.dark .sprout-state-sample-mark {
|
|
25
22
|
--sprout-state-sample-image: #4d7ea8;
|
|
26
|
-
--sprout-state-sample-chart-1: #75ce8e;
|
|
27
|
-
--sprout-state-sample-chart-2: #9cbdff;
|
|
28
|
-
--sprout-state-sample-chart-4: #c6a4ed;
|
|
29
23
|
}
|
|
30
24
|
@media (prefers-color-scheme: dark) {
|
|
31
25
|
:root:not(.light):not(.dark) .sprout-state-sample,
|
|
32
26
|
:root:not(.light):not(.dark) .sprout-state-sample-mark {
|
|
33
27
|
--sprout-state-sample-image: #4d7ea8;
|
|
34
|
-
--sprout-state-sample-chart-1: #75ce8e;
|
|
35
|
-
--sprout-state-sample-chart-2: #9cbdff;
|
|
36
|
-
--sprout-state-sample-chart-4: #c6a4ed;
|
|
37
28
|
}
|
|
38
29
|
}
|
|
39
30
|
|
|
@@ -139,10 +130,10 @@
|
|
|
139
130
|
font-weight: 500;
|
|
140
131
|
text-overflow: ellipsis;
|
|
141
132
|
}
|
|
142
|
-
.sprout-state-sample-cell[data-size=
|
|
133
|
+
.sprout-state-sample-cell[data-size='wide'] {
|
|
143
134
|
flex: 1.6 1 0%;
|
|
144
135
|
}
|
|
145
|
-
.sprout-state-sample-cell[data-size=
|
|
136
|
+
.sprout-state-sample-cell[data-size='narrow'] {
|
|
146
137
|
flex: none;
|
|
147
138
|
width: 6rem;
|
|
148
139
|
}
|
|
@@ -190,57 +181,53 @@
|
|
|
190
181
|
color: var(--sprout-muted);
|
|
191
182
|
}
|
|
192
183
|
|
|
193
|
-
.sprout-state-sample-text[data-tone=
|
|
184
|
+
.sprout-state-sample-text[data-tone='strong'] {
|
|
194
185
|
font-weight: 500;
|
|
195
186
|
color: var(--sprout-text);
|
|
196
187
|
}
|
|
197
|
-
.sprout-state-sample-text[data-tone=
|
|
188
|
+
.sprout-state-sample-text[data-tone='muted'] {
|
|
198
189
|
color: var(--sprout-muted);
|
|
199
190
|
}
|
|
200
|
-
.sprout-state-sample-text[data-tone=
|
|
191
|
+
.sprout-state-sample-text[data-tone='link'] {
|
|
201
192
|
color: var(--sprout-info);
|
|
202
193
|
}
|
|
203
|
-
.sprout-state-sample-text[data-tone=
|
|
194
|
+
.sprout-state-sample-text[data-tone='mono'] {
|
|
204
195
|
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
205
196
|
color: var(--sprout-muted);
|
|
206
197
|
}
|
|
207
198
|
|
|
208
199
|
.sprout-state-sample-mark {
|
|
209
200
|
--sprout-state-sample-from: var(--sprout-state-sample-pdf);
|
|
210
|
-
--sprout-state-sample-to: var(--sprout-
|
|
201
|
+
--sprout-state-sample-to: var(--sprout-purple);
|
|
211
202
|
flex-shrink: 0;
|
|
212
203
|
width: 0.875rem;
|
|
213
204
|
height: 0.875rem;
|
|
214
205
|
border-radius: 0.125rem;
|
|
215
|
-
background: linear-gradient(
|
|
216
|
-
to bottom right,
|
|
217
|
-
var(--sprout-state-sample-from),
|
|
218
|
-
var(--sprout-state-sample-to)
|
|
219
|
-
);
|
|
206
|
+
background: linear-gradient(to bottom right, var(--sprout-state-sample-from), var(--sprout-state-sample-to));
|
|
220
207
|
}
|
|
221
|
-
.sprout-state-sample-mark[data-size=
|
|
208
|
+
.sprout-state-sample-mark[data-size='md'] {
|
|
222
209
|
width: 1.75rem;
|
|
223
210
|
height: 1.75rem;
|
|
224
211
|
border-radius: var(--sprout-radius-control);
|
|
225
212
|
}
|
|
226
|
-
.sprout-state-sample-mark[data-tone=
|
|
213
|
+
.sprout-state-sample-mark[data-tone='orange'] {
|
|
227
214
|
--sprout-state-sample-from: var(--sprout-state-sample-slides);
|
|
228
215
|
--sprout-state-sample-to: var(--sprout-state-sample-pdf);
|
|
229
216
|
}
|
|
230
|
-
.sprout-state-sample-mark[data-tone=
|
|
217
|
+
.sprout-state-sample-mark[data-tone='green'] {
|
|
231
218
|
--sprout-state-sample-from: var(--sprout-state-sample-sheet);
|
|
232
|
-
--sprout-state-sample-to: var(--sprout-
|
|
219
|
+
--sprout-state-sample-to: var(--sprout-blue);
|
|
233
220
|
}
|
|
234
|
-
.sprout-state-sample-mark[data-tone=
|
|
221
|
+
.sprout-state-sample-mark[data-tone='blue'] {
|
|
235
222
|
--sprout-state-sample-from: var(--sprout-state-sample-document);
|
|
236
|
-
--sprout-state-sample-to: var(--sprout-
|
|
223
|
+
--sprout-state-sample-to: var(--sprout-purple);
|
|
237
224
|
}
|
|
238
|
-
.sprout-state-sample-mark[data-tone=
|
|
239
|
-
--sprout-state-sample-from: var(--sprout-
|
|
225
|
+
.sprout-state-sample-mark[data-tone='violet'] {
|
|
226
|
+
--sprout-state-sample-from: var(--sprout-purple);
|
|
240
227
|
--sprout-state-sample-to: var(--sprout-state-sample-pdf);
|
|
241
228
|
}
|
|
242
|
-
.sprout-state-sample-mark[data-tone=
|
|
243
|
-
--sprout-state-sample-from: var(--sprout-
|
|
229
|
+
.sprout-state-sample-mark[data-tone='teal'] {
|
|
230
|
+
--sprout-state-sample-from: var(--sprout-green);
|
|
244
231
|
--sprout-state-sample-to: var(--sprout-state-sample-image);
|
|
245
232
|
}
|
|
246
233
|
|
|
@@ -251,10 +238,10 @@
|
|
|
251
238
|
border-radius: 9999px;
|
|
252
239
|
background: var(--sprout-active);
|
|
253
240
|
}
|
|
254
|
-
.sprout-state-sample-placeholder[data-width=
|
|
241
|
+
.sprout-state-sample-placeholder[data-width='sm'] {
|
|
255
242
|
width: 33.333%;
|
|
256
243
|
}
|
|
257
|
-
.sprout-state-sample-placeholder[data-width=
|
|
244
|
+
.sprout-state-sample-placeholder[data-width='lg'] {
|
|
258
245
|
width: 75%;
|
|
259
246
|
}
|
|
260
247
|
|
package/dist/styles/switch.css
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
/* A 56 x 34px hit area around the default track. */
|
|
29
29
|
.sprout-switch::after {
|
|
30
|
-
content:
|
|
30
|
+
content: '';
|
|
31
31
|
position: absolute;
|
|
32
32
|
inset: -8px -12px;
|
|
33
33
|
}
|
|
@@ -45,12 +45,11 @@
|
|
|
45
45
|
.sprout-switch[data-checked] {
|
|
46
46
|
background-color: var(--sprout-primary);
|
|
47
47
|
}
|
|
48
|
-
.sprout-switch[aria-invalid=
|
|
48
|
+
.sprout-switch[aria-invalid='true'] {
|
|
49
49
|
border-color: var(--sprout-danger);
|
|
50
|
-
box-shadow: 0 0 0 3px
|
|
51
|
-
color-mix(in oklab, var(--sprout-danger) 20%, transparent);
|
|
50
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--sprout-danger) 20%, transparent);
|
|
52
51
|
}
|
|
53
|
-
.sprout-switch[aria-invalid=
|
|
52
|
+
.sprout-switch[aria-invalid='true']:focus-visible {
|
|
54
53
|
outline-color: var(--sprout-danger);
|
|
55
54
|
}
|
|
56
55
|
.sprout-switch[data-readonly] {
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
cursor: not-allowed;
|
|
61
60
|
opacity: 0.5;
|
|
62
61
|
}
|
|
63
|
-
.sprout-switch[aria-busy=
|
|
62
|
+
.sprout-switch[aria-busy='true'] {
|
|
64
63
|
cursor: progress;
|
|
65
64
|
}
|
|
66
65
|
|
|
@@ -88,21 +87,15 @@
|
|
|
88
87
|
@media (prefers-reduced-motion: no-preference) {
|
|
89
88
|
.sprout-switch {
|
|
90
89
|
transition:
|
|
91
|
-
background-color var(--sprout-motion-fast, 120ms)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
box-shadow var(--sprout-motion-fast, 120ms)
|
|
96
|
-
var(--sprout-motion-ease, ease-out),
|
|
97
|
-
opacity var(--sprout-motion-fast, 120ms)
|
|
98
|
-
var(--sprout-motion-ease, ease-out);
|
|
90
|
+
background-color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
91
|
+
border-color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
92
|
+
box-shadow var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out),
|
|
93
|
+
opacity var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
99
94
|
}
|
|
100
95
|
.sprout-switch-thumb {
|
|
101
96
|
transition:
|
|
102
|
-
transform var(--sprout-motion-normal, 180ms)
|
|
103
|
-
|
|
104
|
-
background-color var(--sprout-motion-fast, 120ms)
|
|
105
|
-
var(--sprout-motion-ease, ease-out);
|
|
97
|
+
transform var(--sprout-motion-normal, 180ms) var(--sprout-motion-ease, ease-out),
|
|
98
|
+
background-color var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
106
99
|
}
|
|
107
100
|
}
|
|
108
101
|
|