@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
|
@@ -210,13 +210,13 @@
|
|
|
210
210
|
color: var(--sprout-text);
|
|
211
211
|
box-shadow: var(--sprout-shadow-control);
|
|
212
212
|
}
|
|
213
|
-
.sprout-schema-table[data-state=
|
|
213
|
+
.sprout-schema-table[data-state='new'] {
|
|
214
214
|
border-top-color: var(--sprout-success);
|
|
215
215
|
}
|
|
216
|
-
.sprout-schema-table[data-state=
|
|
216
|
+
.sprout-schema-table[data-state='changed'] {
|
|
217
217
|
border-top-color: var(--sprout-warning);
|
|
218
218
|
}
|
|
219
|
-
.sprout-schema-table[data-state=
|
|
219
|
+
.sprout-schema-table[data-state='linked'] {
|
|
220
220
|
border-style: dashed;
|
|
221
221
|
border-top-color: var(--sprout-line);
|
|
222
222
|
}
|
|
@@ -232,11 +232,7 @@
|
|
|
232
232
|
height: 44px;
|
|
233
233
|
padding: 0 12px;
|
|
234
234
|
border-bottom: 1px solid var(--sprout-line);
|
|
235
|
-
background: color-mix(
|
|
236
|
-
in oklab,
|
|
237
|
-
var(--sprout-hover) 45%,
|
|
238
|
-
var(--sprout-surface)
|
|
239
|
-
);
|
|
235
|
+
background: color-mix(in oklab, var(--sprout-hover) 45%, var(--sprout-surface));
|
|
240
236
|
}
|
|
241
237
|
.sprout-schema-table-title {
|
|
242
238
|
flex: 1;
|
|
@@ -271,13 +267,13 @@
|
|
|
271
267
|
.sprout-schema-field:last-child {
|
|
272
268
|
border-bottom: 0;
|
|
273
269
|
}
|
|
274
|
-
.sprout-schema-field[data-change=
|
|
270
|
+
.sprout-schema-field[data-change='added'] {
|
|
275
271
|
background: var(--sprout-success-subtle);
|
|
276
272
|
}
|
|
277
|
-
.sprout-schema-field[data-change=
|
|
273
|
+
.sprout-schema-field[data-change='changed'] {
|
|
278
274
|
background: var(--sprout-warning-subtle);
|
|
279
275
|
}
|
|
280
|
-
.sprout-schema-field[data-change=
|
|
276
|
+
.sprout-schema-field[data-change='removed'] {
|
|
281
277
|
background: var(--sprout-danger-subtle);
|
|
282
278
|
}
|
|
283
279
|
.sprout-schema-field-line {
|
|
@@ -288,7 +284,7 @@
|
|
|
288
284
|
font-size: 0.8125rem;
|
|
289
285
|
line-height: 1.25rem;
|
|
290
286
|
}
|
|
291
|
-
.sprout-schema-field[data-change=
|
|
287
|
+
.sprout-schema-field[data-change='removed'] .sprout-schema-field-line {
|
|
292
288
|
text-decoration: line-through;
|
|
293
289
|
}
|
|
294
290
|
.sprout-schema-field-key {
|
|
@@ -382,15 +378,15 @@
|
|
|
382
378
|
height: 10px;
|
|
383
379
|
border-radius: 2px;
|
|
384
380
|
}
|
|
385
|
-
.sprout-schema-legend-swatch[data-change=
|
|
381
|
+
.sprout-schema-legend-swatch[data-change='added'] {
|
|
386
382
|
background: var(--sprout-success-subtle);
|
|
387
383
|
box-shadow: 0 0 0 1px var(--sprout-success);
|
|
388
384
|
}
|
|
389
|
-
.sprout-schema-legend-swatch[data-change=
|
|
385
|
+
.sprout-schema-legend-swatch[data-change='changed'] {
|
|
390
386
|
background: var(--sprout-warning-subtle);
|
|
391
387
|
box-shadow: 0 0 0 1px var(--sprout-warning);
|
|
392
388
|
}
|
|
393
|
-
.sprout-schema-legend-swatch[data-change=
|
|
389
|
+
.sprout-schema-legend-swatch[data-change='removed'] {
|
|
394
390
|
background: var(--sprout-danger-subtle);
|
|
395
391
|
box-shadow: 0 0 0 1px var(--sprout-danger);
|
|
396
392
|
}
|
|
@@ -409,8 +405,7 @@
|
|
|
409
405
|
|
|
410
406
|
@media (prefers-reduced-motion: no-preference) {
|
|
411
407
|
.sprout-schema-table {
|
|
412
|
-
transition: box-shadow var(--sprout-motion-normal)
|
|
413
|
-
var(--sprout-motion-ease);
|
|
408
|
+
transition: box-shadow var(--sprout-motion-normal) var(--sprout-motion-ease);
|
|
414
409
|
}
|
|
415
410
|
.sprout-schema-flow .react-flow__node {
|
|
416
411
|
transition: outline-color var(--sprout-motion-fast) ease-out;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
min-width: 0;
|
|
5
5
|
}
|
|
6
|
-
.sprout-scroll-area[data-size=
|
|
6
|
+
.sprout-scroll-area[data-size='sm'] {
|
|
7
7
|
height: 10rem;
|
|
8
8
|
}
|
|
9
|
-
.sprout-scroll-area[data-size=
|
|
9
|
+
.sprout-scroll-area[data-size='md'] {
|
|
10
10
|
height: 16rem;
|
|
11
11
|
}
|
|
12
|
-
.sprout-scroll-area[data-variant=
|
|
12
|
+
.sprout-scroll-area[data-variant='table'] {
|
|
13
13
|
width: 100%;
|
|
14
14
|
border: 1px solid var(--sprout-input);
|
|
15
15
|
border-radius: calc(var(--sprout-radius-control) + 2px);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
|
|
27
27
|
outline-offset: -1px;
|
|
28
28
|
}
|
|
29
|
-
.sprout-scroll-area[data-variant=
|
|
29
|
+
.sprout-scroll-area[data-variant='table'] > .sprout-scroll-area-viewport {
|
|
30
30
|
max-height: 60dvh;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
touch-action: none;
|
|
38
38
|
user-select: none;
|
|
39
39
|
}
|
|
40
|
-
.sprout-scroll-area-scrollbar[data-orientation=
|
|
40
|
+
.sprout-scroll-area-scrollbar[data-orientation='vertical'] {
|
|
41
41
|
width: 10px;
|
|
42
42
|
height: 100%;
|
|
43
43
|
border-left: 1px solid transparent;
|
|
44
44
|
}
|
|
45
|
-
.sprout-scroll-area-scrollbar[data-orientation=
|
|
45
|
+
.sprout-scroll-area-scrollbar[data-orientation='horizontal'] {
|
|
46
46
|
height: 10px;
|
|
47
47
|
flex-direction: column;
|
|
48
48
|
border-top: 1px solid transparent;
|
|
@@ -66,12 +66,10 @@
|
|
|
66
66
|
|
|
67
67
|
@media (prefers-reduced-motion: no-preference) {
|
|
68
68
|
.sprout-scroll-area-viewport {
|
|
69
|
-
transition: outline-color var(--sprout-motion-fast)
|
|
70
|
-
var(--sprout-motion-ease);
|
|
69
|
+
transition: outline-color var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
71
70
|
}
|
|
72
71
|
.sprout-scroll-area-thumb {
|
|
73
|
-
transition: background-color var(--sprout-motion-fast)
|
|
74
|
-
var(--sprout-motion-ease);
|
|
72
|
+
transition: background-color var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
}
|
|
@@ -253,11 +253,7 @@
|
|
|
253
253
|
height: 44px;
|
|
254
254
|
padding-inline: 16px;
|
|
255
255
|
border-top: 1px solid var(--sprout-line);
|
|
256
|
-
background: color-mix(
|
|
257
|
-
in oklab,
|
|
258
|
-
var(--sprout-canvas) 70%,
|
|
259
|
-
var(--sprout-surface)
|
|
260
|
-
);
|
|
256
|
+
background: color-mix(in oklab, var(--sprout-canvas) 70%, var(--sprout-surface));
|
|
261
257
|
color: var(--sprout-muted);
|
|
262
258
|
font-size: var(--sprout-text-xs);
|
|
263
259
|
line-height: 1rem;
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
}
|
|
5
5
|
@media (prefers-reduced-motion: no-preference) {
|
|
6
6
|
.sprout-search-field-clear {
|
|
7
|
-
animation: sprout-search-field-clear-in var(--sprout-motion-fast, 120ms)
|
|
8
|
-
var(--sprout-motion-ease, ease-out);
|
|
7
|
+
animation: sprout-search-field-clear-in var(--sprout-motion-fast, 120ms) var(--sprout-motion-ease, ease-out);
|
|
9
8
|
}
|
|
10
9
|
}
|
|
11
10
|
@keyframes sprout-search-field-clear-in {
|
package/dist/styles/select.css
CHANGED
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
cursor: not-allowed;
|
|
47
47
|
pointer-events: none;
|
|
48
48
|
}
|
|
49
|
-
.sprout-select-trigger[aria-busy=
|
|
49
|
+
.sprout-select-trigger[aria-busy='true'] {
|
|
50
50
|
cursor: progress;
|
|
51
51
|
}
|
|
52
|
-
.sprout-select-trigger[aria-invalid=
|
|
52
|
+
.sprout-select-trigger[aria-invalid='true'],
|
|
53
53
|
.sprout-select-trigger[data-invalid] {
|
|
54
54
|
border-color: var(--sprout-danger);
|
|
55
55
|
}
|
|
56
|
-
.sprout-select-trigger[aria-invalid=
|
|
56
|
+
.sprout-select-trigger[aria-invalid='true']:focus-visible,
|
|
57
57
|
.sprout-select-trigger[data-invalid]:focus-visible {
|
|
58
58
|
outline-color: var(--sprout-danger);
|
|
59
59
|
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
flex-shrink: 0;
|
|
62
62
|
pointer-events: none;
|
|
63
63
|
}
|
|
64
|
-
.sprout-select-trigger svg:not([class*=
|
|
64
|
+
.sprout-select-trigger svg:not([class*='size-']) {
|
|
65
65
|
width: var(--sprout-select-icon);
|
|
66
66
|
height: var(--sprout-select-icon);
|
|
67
67
|
}
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
flex-shrink: 0;
|
|
185
185
|
pointer-events: none;
|
|
186
186
|
}
|
|
187
|
-
.sprout-select-item svg:not([class*=
|
|
187
|
+
.sprout-select-item svg:not([class*='size-']) {
|
|
188
188
|
width: 16px;
|
|
189
189
|
height: 16px;
|
|
190
190
|
}
|
|
@@ -274,8 +274,8 @@
|
|
|
274
274
|
opacity: 0;
|
|
275
275
|
scale: 0.96;
|
|
276
276
|
}
|
|
277
|
-
.sprout-select-content[data-side=
|
|
278
|
-
.sprout-select-content[data-side=
|
|
277
|
+
.sprout-select-content[data-side='none'][data-starting-style],
|
|
278
|
+
.sprout-select-content[data-side='none'][data-ending-style] {
|
|
279
279
|
scale: 1;
|
|
280
280
|
}
|
|
281
281
|
.sprout-select-item {
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
/* The tools hide at once and the selection fades in, so they never overlap. */
|
|
18
18
|
@media (prefers-reduced-motion: no-preference) {
|
|
19
19
|
.sprout-selection-slot-selection {
|
|
20
|
-
animation: sprout-selection-slot-in var(--sprout-motion-normal)
|
|
21
|
-
var(--sprout-motion-ease);
|
|
20
|
+
animation: sprout-selection-slot-in var(--sprout-motion-normal) var(--sprout-motion-ease);
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
border: 0;
|
|
5
5
|
background: var(--sprout-line);
|
|
6
6
|
}
|
|
7
|
-
.sprout-separator[data-orientation=
|
|
7
|
+
.sprout-separator[data-orientation='horizontal'] {
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: 1px;
|
|
10
10
|
}
|
|
11
|
-
.sprout-separator[data-orientation=
|
|
11
|
+
.sprout-separator[data-orientation='vertical'] {
|
|
12
12
|
width: 1px;
|
|
13
13
|
min-height: 1rem;
|
|
14
14
|
align-self: stretch;
|
|
15
15
|
}
|
|
16
|
-
.sprout-separator[data-tone=
|
|
16
|
+
.sprout-separator[data-tone='input'] {
|
|
17
17
|
background: var(--sprout-input);
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -44,8 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
@media (prefers-reduced-motion: no-preference) {
|
|
46
46
|
.sprout-separator {
|
|
47
|
-
transition: background-color var(--sprout-motion-fast)
|
|
48
|
-
var(--sprout-motion-ease);
|
|
47
|
+
transition: background-color var(--sprout-motion-fast) var(--sprout-motion-ease);
|
|
49
48
|
}
|
|
50
49
|
}
|
|
51
50
|
|
|
@@ -67,7 +66,7 @@
|
|
|
67
66
|
.sprout-separator-fade::after,
|
|
68
67
|
.sprout-separator-fade-shine::before,
|
|
69
68
|
.sprout-separator-fade-shine::after {
|
|
70
|
-
content:
|
|
69
|
+
content: '';
|
|
71
70
|
flex: 1 1 0;
|
|
72
71
|
min-width: 12px;
|
|
73
72
|
height: 1px;
|
|
@@ -138,7 +137,7 @@
|
|
|
138
137
|
line-height: 1.25rem;
|
|
139
138
|
text-align: left;
|
|
140
139
|
}
|
|
141
|
-
.sprout-separator-marker :where(svg:not([class*=
|
|
140
|
+
.sprout-separator-marker :where(svg:not([class*='size-'])) {
|
|
142
141
|
width: 16px;
|
|
143
142
|
height: 16px;
|
|
144
143
|
}
|
|
@@ -156,7 +155,7 @@
|
|
|
156
155
|
width: 16px;
|
|
157
156
|
height: 16px;
|
|
158
157
|
}
|
|
159
|
-
.sprout-separator-icon :where(svg:not([class*=
|
|
158
|
+
.sprout-separator-icon :where(svg:not([class*='size-'])) {
|
|
160
159
|
width: 16px;
|
|
161
160
|
height: 16px;
|
|
162
161
|
}
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
flex-direction: column;
|
|
34
34
|
gap: 0.75rem;
|
|
35
35
|
min-width: 0;
|
|
36
|
-
padding: var(--sprout-settings-row-block, 0.75rem)
|
|
37
|
-
var(--sprout-settings-row-inline, 1rem);
|
|
36
|
+
padding: var(--sprout-settings-row-block, 0.75rem) var(--sprout-settings-row-inline, 1rem);
|
|
38
37
|
}
|
|
39
38
|
.sprout-settings-row-text {
|
|
40
39
|
display: grid;
|
package/dist/styles/sheet.css
CHANGED
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
outline: none;
|
|
36
36
|
pointer-events: auto;
|
|
37
37
|
}
|
|
38
|
-
.sprout-sheet-content:is([data-side=
|
|
38
|
+
.sprout-sheet-content:is([data-side='left'], [data-side='right']) {
|
|
39
39
|
transform: translate3d(var(--drawer-swipe-movement-x, 0px), 0, 0);
|
|
40
40
|
}
|
|
41
|
-
.sprout-sheet-content:is([data-side=
|
|
41
|
+
.sprout-sheet-content:is([data-side='top'], [data-side='bottom']) {
|
|
42
42
|
transform: translate3d(0, var(--drawer-swipe-movement-y, 0px), 0);
|
|
43
43
|
}
|
|
44
44
|
.sprout-sheet-content[data-swiping] {
|
|
@@ -53,40 +53,37 @@
|
|
|
53
53
|
display: none;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.sprout-sheet-content:is([data-side=
|
|
56
|
+
.sprout-sheet-content:is([data-side='left'], [data-side='right']) {
|
|
57
57
|
top: 0;
|
|
58
58
|
bottom: 0;
|
|
59
59
|
width: 75%;
|
|
60
60
|
height: 100dvh;
|
|
61
61
|
}
|
|
62
|
-
.sprout-sheet-content[data-side=
|
|
62
|
+
.sprout-sheet-content[data-side='right'] {
|
|
63
63
|
right: 0;
|
|
64
64
|
border-left: 1px solid var(--sprout-line);
|
|
65
65
|
}
|
|
66
|
-
.sprout-sheet-content[data-side=
|
|
66
|
+
.sprout-sheet-content[data-side='left'] {
|
|
67
67
|
left: 0;
|
|
68
68
|
border-right: 1px solid var(--sprout-line);
|
|
69
69
|
}
|
|
70
|
-
.sprout-sheet-content:is([data-side=
|
|
71
|
-
[data-size="lg"],
|
|
72
|
-
[data-size="xl"]
|
|
73
|
-
) {
|
|
70
|
+
.sprout-sheet-content:is([data-side='left'], [data-side='right']):is([data-size='lg'], [data-size='xl']) {
|
|
74
71
|
width: 100%;
|
|
75
72
|
}
|
|
76
73
|
|
|
77
|
-
.sprout-sheet-content:is([data-side=
|
|
74
|
+
.sprout-sheet-content:is([data-side='top'], [data-side='bottom']) {
|
|
78
75
|
left: 0;
|
|
79
76
|
right: 0;
|
|
80
77
|
max-height: 85dvh;
|
|
81
78
|
}
|
|
82
|
-
.sprout-sheet-content[data-side=
|
|
79
|
+
.sprout-sheet-content[data-side='top'] {
|
|
83
80
|
top: 0;
|
|
84
81
|
border-bottom: 1px solid var(--sprout-line);
|
|
85
82
|
border-end-start-radius: var(--sprout-radius-panel);
|
|
86
83
|
border-end-end-radius: var(--sprout-radius-panel);
|
|
87
84
|
padding-top: env(safe-area-inset-top);
|
|
88
85
|
}
|
|
89
|
-
.sprout-sheet-content[data-side=
|
|
86
|
+
.sprout-sheet-content[data-side='bottom'] {
|
|
90
87
|
bottom: 0;
|
|
91
88
|
border-top: 1px solid var(--sprout-line);
|
|
92
89
|
border-start-start-radius: var(--sprout-radius-panel);
|
|
@@ -94,7 +91,7 @@
|
|
|
94
91
|
padding-bottom: env(safe-area-inset-bottom);
|
|
95
92
|
}
|
|
96
93
|
|
|
97
|
-
.sprout-sheet-content[data-size=
|
|
94
|
+
.sprout-sheet-content[data-size='full'] {
|
|
98
95
|
inset: 0;
|
|
99
96
|
width: 100%;
|
|
100
97
|
max-width: none;
|
|
@@ -114,9 +111,7 @@
|
|
|
114
111
|
min-width: 0;
|
|
115
112
|
padding: 16px;
|
|
116
113
|
}
|
|
117
|
-
.sprout-sheet-content:has(> .sprout-sheet-close)
|
|
118
|
-
> .sprout-sheet-inner
|
|
119
|
-
> .sprout-sheet-header {
|
|
114
|
+
.sprout-sheet-content:has(> .sprout-sheet-close) > .sprout-sheet-inner > .sprout-sheet-header {
|
|
120
115
|
padding-inline-end: 48px;
|
|
121
116
|
}
|
|
122
117
|
|
|
@@ -129,16 +124,16 @@
|
|
|
129
124
|
letter-spacing: -0.005em;
|
|
130
125
|
overflow-wrap: anywhere;
|
|
131
126
|
}
|
|
132
|
-
.sprout-sheet-title[data-size=
|
|
127
|
+
.sprout-sheet-title[data-size='lg'] {
|
|
133
128
|
font-size: 1.25rem;
|
|
134
129
|
font-weight: 600;
|
|
135
130
|
line-height: 1.75rem;
|
|
136
131
|
letter-spacing: -0.015em;
|
|
137
132
|
}
|
|
138
|
-
.sprout-sheet-title[tabindex=
|
|
133
|
+
.sprout-sheet-title[tabindex='-1']:focus {
|
|
139
134
|
outline: none;
|
|
140
135
|
}
|
|
141
|
-
.sprout-sheet-title[tabindex=
|
|
136
|
+
.sprout-sheet-title[tabindex='-1']:focus-visible {
|
|
142
137
|
border-radius: 2px;
|
|
143
138
|
outline: var(--sprout-focus-width) solid var(--sprout-focus-ring);
|
|
144
139
|
outline-offset: 0;
|
|
@@ -187,46 +182,42 @@
|
|
|
187
182
|
cursor: grabbing;
|
|
188
183
|
}
|
|
189
184
|
.sprout-sheet-swipe-handle::after {
|
|
190
|
-
content:
|
|
185
|
+
content: '';
|
|
191
186
|
border-radius: 999px;
|
|
192
187
|
background: var(--sprout-input);
|
|
193
188
|
}
|
|
194
189
|
.sprout-sheet-swipe-handle:hover::after {
|
|
195
190
|
background: var(--sprout-border);
|
|
196
191
|
}
|
|
197
|
-
.sprout-sheet-content:is([data-side=
|
|
198
|
-
> .sprout-sheet-swipe-handle {
|
|
192
|
+
.sprout-sheet-content:is([data-side='top'], [data-side='bottom']) > .sprout-sheet-swipe-handle {
|
|
199
193
|
height: 20px;
|
|
200
194
|
}
|
|
201
|
-
.sprout-sheet-content:is([data-side=
|
|
202
|
-
> .sprout-sheet-swipe-handle::after {
|
|
195
|
+
.sprout-sheet-content:is([data-side='top'], [data-side='bottom']) > .sprout-sheet-swipe-handle::after {
|
|
203
196
|
width: 3rem;
|
|
204
197
|
height: 4px;
|
|
205
198
|
}
|
|
206
|
-
.sprout-sheet-content[data-side=
|
|
199
|
+
.sprout-sheet-content[data-side='bottom'] > .sprout-sheet-swipe-handle {
|
|
207
200
|
margin-bottom: -12px;
|
|
208
201
|
}
|
|
209
|
-
.sprout-sheet-content[data-side=
|
|
202
|
+
.sprout-sheet-content[data-side='top'] > .sprout-sheet-swipe-handle {
|
|
210
203
|
order: 1;
|
|
211
204
|
margin-top: -12px;
|
|
212
205
|
}
|
|
213
|
-
.sprout-sheet-content:is([data-side=
|
|
214
|
-
> .sprout-sheet-swipe-handle {
|
|
206
|
+
.sprout-sheet-content:is([data-side='left'], [data-side='right']) > .sprout-sheet-swipe-handle {
|
|
215
207
|
position: absolute;
|
|
216
208
|
top: 0;
|
|
217
209
|
bottom: 0;
|
|
218
210
|
z-index: 1;
|
|
219
211
|
width: 16px;
|
|
220
212
|
}
|
|
221
|
-
.sprout-sheet-content:is([data-side=
|
|
222
|
-
> .sprout-sheet-swipe-handle::after {
|
|
213
|
+
.sprout-sheet-content:is([data-side='left'], [data-side='right']) > .sprout-sheet-swipe-handle::after {
|
|
223
214
|
width: 4px;
|
|
224
215
|
height: 3rem;
|
|
225
216
|
}
|
|
226
|
-
.sprout-sheet-content[data-side=
|
|
217
|
+
.sprout-sheet-content[data-side='right'] > .sprout-sheet-swipe-handle {
|
|
227
218
|
left: 0;
|
|
228
219
|
}
|
|
229
|
-
.sprout-sheet-content[data-side=
|
|
220
|
+
.sprout-sheet-content[data-side='left'] > .sprout-sheet-swipe-handle {
|
|
230
221
|
right: 0;
|
|
231
222
|
}
|
|
232
223
|
|
|
@@ -235,32 +226,24 @@
|
|
|
235
226
|
top: 12px;
|
|
236
227
|
right: 12px;
|
|
237
228
|
}
|
|
238
|
-
.sprout-sheet-content[data-size=
|
|
229
|
+
.sprout-sheet-content[data-size='full'] > .sprout-sheet-close {
|
|
239
230
|
top: calc(12px + env(safe-area-inset-top));
|
|
240
231
|
}
|
|
241
232
|
|
|
242
233
|
@media (min-width: 40rem) {
|
|
243
|
-
.sprout-sheet-content:is([data-side=
|
|
234
|
+
.sprout-sheet-content:is([data-side='left'], [data-side='right']) {
|
|
244
235
|
max-width: 24rem;
|
|
245
236
|
}
|
|
246
|
-
.sprout-sheet-content:is(
|
|
247
|
-
[data-side="left"],
|
|
248
|
-
[data-side="right"]
|
|
249
|
-
)[data-size="lg"] {
|
|
237
|
+
.sprout-sheet-content:is([data-side='left'], [data-side='right'])[data-size='lg'] {
|
|
250
238
|
max-width: 32rem;
|
|
251
239
|
}
|
|
252
|
-
.sprout-sheet-content:is(
|
|
253
|
-
[data-side="left"],
|
|
254
|
-
[data-side="right"]
|
|
255
|
-
)[data-size="xl"] {
|
|
240
|
+
.sprout-sheet-content:is([data-side='left'], [data-side='right'])[data-size='xl'] {
|
|
256
241
|
max-width: 42rem;
|
|
257
242
|
}
|
|
258
|
-
.sprout-sheet-content[data-size=
|
|
243
|
+
.sprout-sheet-content[data-size='full'] {
|
|
259
244
|
max-width: none;
|
|
260
245
|
}
|
|
261
|
-
.sprout-sheet-content:is([data-side=
|
|
262
|
-
> .sprout-sheet-inner
|
|
263
|
-
> .sprout-sheet-footer {
|
|
246
|
+
.sprout-sheet-content:is([data-side='top'], [data-side='bottom']) > .sprout-sheet-inner > .sprout-sheet-footer {
|
|
264
247
|
flex-direction: row;
|
|
265
248
|
flex-wrap: wrap;
|
|
266
249
|
justify-content: flex-end;
|
|
@@ -293,54 +276,38 @@
|
|
|
293
276
|
.sprout-sheet-content[data-ending-style] {
|
|
294
277
|
opacity: 0;
|
|
295
278
|
}
|
|
296
|
-
.sprout-sheet-content[data-side=
|
|
297
|
-
[data-starting-style],
|
|
298
|
-
[data-ending-style]
|
|
299
|
-
) {
|
|
279
|
+
.sprout-sheet-content[data-side='right']:is([data-starting-style], [data-ending-style]) {
|
|
300
280
|
translate: 2.5rem 0;
|
|
301
281
|
}
|
|
302
|
-
.sprout-sheet-content[data-side=
|
|
303
|
-
[data-starting-style],
|
|
304
|
-
[data-ending-style]
|
|
305
|
-
) {
|
|
282
|
+
.sprout-sheet-content[data-side='left']:is([data-starting-style], [data-ending-style]) {
|
|
306
283
|
translate: -2.5rem 0;
|
|
307
284
|
}
|
|
308
|
-
.sprout-sheet-content[data-side=
|
|
309
|
-
[data-starting-style],
|
|
310
|
-
[data-ending-style]
|
|
311
|
-
) {
|
|
285
|
+
.sprout-sheet-content[data-side='bottom']:is([data-starting-style], [data-ending-style]) {
|
|
312
286
|
translate: 0 2.5rem;
|
|
313
287
|
}
|
|
314
|
-
.sprout-sheet-content[data-side=
|
|
315
|
-
[data-starting-style],
|
|
316
|
-
[data-ending-style]
|
|
317
|
-
) {
|
|
288
|
+
.sprout-sheet-content[data-side='top']:is([data-starting-style], [data-ending-style]) {
|
|
318
289
|
translate: 0 -2.5rem;
|
|
319
290
|
}
|
|
320
291
|
/* A swipe that closes the sheet carries it the rest of the way off screen. */
|
|
321
292
|
.sprout-sheet-content[data-swipe-dismiss][data-ending-style] {
|
|
322
293
|
opacity: 1;
|
|
323
|
-
transition-duration: calc(
|
|
324
|
-
var(--drawer-swipe-strength, 1) * var(--sprout-motion-normal)
|
|
325
|
-
);
|
|
294
|
+
transition-duration: calc(var(--drawer-swipe-strength, 1) * var(--sprout-motion-normal));
|
|
326
295
|
}
|
|
327
|
-
.sprout-sheet-content[data-swipe-dismiss][data-side=
|
|
296
|
+
.sprout-sheet-content[data-swipe-dismiss][data-side='right'][data-ending-style] {
|
|
328
297
|
translate: 100% 0;
|
|
329
298
|
}
|
|
330
|
-
.sprout-sheet-content[data-swipe-dismiss][data-side=
|
|
299
|
+
.sprout-sheet-content[data-swipe-dismiss][data-side='left'][data-ending-style] {
|
|
331
300
|
translate: -100% 0;
|
|
332
301
|
}
|
|
333
|
-
.sprout-sheet-content[data-swipe-dismiss][data-side=
|
|
302
|
+
.sprout-sheet-content[data-swipe-dismiss][data-side='bottom'][data-ending-style] {
|
|
334
303
|
translate: 0 100%;
|
|
335
304
|
}
|
|
336
|
-
.sprout-sheet-content[data-swipe-dismiss][data-side=
|
|
305
|
+
.sprout-sheet-content[data-swipe-dismiss][data-side='top'][data-ending-style] {
|
|
337
306
|
translate: 0 -100%;
|
|
338
307
|
}
|
|
339
308
|
/* Sections settle one after another while the panel slides in. */
|
|
340
|
-
.sprout-sheet-inner
|
|
341
|
-
|
|
342
|
-
animation: sprout-sheet-section-in var(--sprout-motion-normal)
|
|
343
|
-
var(--sprout-motion-ease) both;
|
|
309
|
+
.sprout-sheet-inner > :is(.sprout-sheet-header, .sprout-sheet-body, .sprout-sheet-footer) {
|
|
310
|
+
animation: sprout-sheet-section-in var(--sprout-motion-normal) var(--sprout-motion-ease) both;
|
|
344
311
|
}
|
|
345
312
|
.sprout-sheet-inner > .sprout-sheet-header {
|
|
346
313
|
animation-delay: 30ms;
|
package/dist/styles/sidebar.css
CHANGED
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
.sprout-sidebar-panel[hidden] {
|
|
17
17
|
display: none;
|
|
18
18
|
}
|
|
19
|
-
.sprout-sidebar-panel[data-side=
|
|
19
|
+
.sprout-sidebar-panel[data-side='right'] {
|
|
20
20
|
border-inline-end: 0;
|
|
21
21
|
border-inline-start: 1px solid var(--sprout-line);
|
|
22
22
|
}
|
|
23
|
-
.sprout-sidebar-panel[data-state=
|
|
23
|
+
.sprout-sidebar-panel[data-state='collapsed'] {
|
|
24
24
|
width: var(--sprout-sidebar-icon-width, 3.5rem);
|
|
25
25
|
}
|
|
26
|
-
.sprout-sidebar-panel[data-collapsible=
|
|
27
|
-
.sprout-sidebar-panel[data-collapsible=
|
|
26
|
+
.sprout-sidebar-panel[data-collapsible='icon'],
|
|
27
|
+
.sprout-sidebar-panel[data-collapsible='offcanvas'] {
|
|
28
28
|
overflow: clip;
|
|
29
29
|
}
|
|
30
30
|
.sprout-sidebar-panel[data-offcanvas] {
|
|
@@ -173,8 +173,7 @@
|
|
|
173
173
|
width: 28px;
|
|
174
174
|
height: 28px;
|
|
175
175
|
}
|
|
176
|
-
.sprout-sidebar-menu-item:has(.sprout-sidebar-menu-action)
|
|
177
|
-
> .sprout-sidebar-menu-button,
|
|
176
|
+
.sprout-sidebar-menu-item:has(.sprout-sidebar-menu-action) > .sprout-sidebar-menu-button,
|
|
178
177
|
.sprout-sidebar-section-heading > .sprout-sidebar-menu-button {
|
|
179
178
|
padding-inline-end: 36px;
|
|
180
179
|
}
|
|
@@ -206,13 +205,13 @@
|
|
|
206
205
|
height: 0;
|
|
207
206
|
opacity: 0;
|
|
208
207
|
}
|
|
209
|
-
.sprout-sidebar-panel[data-state=
|
|
210
|
-
.sprout-sidebar-panel[data-state=
|
|
211
|
-
.sprout-sidebar-panel[data-state=
|
|
212
|
-
.sprout-sidebar-panel[data-state=
|
|
208
|
+
.sprout-sidebar-panel[data-state='collapsed'] .sprout-sidebar-label,
|
|
209
|
+
.sprout-sidebar-panel[data-state='collapsed'] .sprout-sidebar-badge,
|
|
210
|
+
.sprout-sidebar-panel[data-state='collapsed'] .sprout-sidebar-group-label,
|
|
211
|
+
.sprout-sidebar-panel[data-state='collapsed'] .sprout-sidebar-menu-action {
|
|
213
212
|
display: none;
|
|
214
213
|
}
|
|
215
|
-
.sprout-sidebar-panel[data-state=
|
|
214
|
+
.sprout-sidebar-panel[data-state='collapsed'] .sprout-sidebar-menu-button {
|
|
216
215
|
justify-content: center;
|
|
217
216
|
padding-inline: 0;
|
|
218
217
|
}
|
|
@@ -247,9 +246,7 @@
|
|
|
247
246
|
.sprout-sidebar-skeleton span:last-child {
|
|
248
247
|
width: 65%;
|
|
249
248
|
}
|
|
250
|
-
.sprout-sidebar-panel[data-state=
|
|
251
|
-
.sprout-sidebar-skeleton
|
|
252
|
-
span:last-child {
|
|
249
|
+
.sprout-sidebar-panel[data-state='collapsed'] .sprout-sidebar-skeleton span:last-child {
|
|
253
250
|
display: none;
|
|
254
251
|
}
|
|
255
252
|
.sprout-sidebar-backdrop {
|
|
@@ -270,7 +267,7 @@
|
|
|
270
267
|
box-shadow: var(--sprout-shadow-overlay);
|
|
271
268
|
outline: none;
|
|
272
269
|
}
|
|
273
|
-
.sprout-sidebar-drawer[data-side=
|
|
270
|
+
.sprout-sidebar-drawer[data-side='right'] {
|
|
274
271
|
left: auto;
|
|
275
272
|
right: 0;
|
|
276
273
|
}
|
|
@@ -308,8 +305,8 @@
|
|
|
308
305
|
}
|
|
309
306
|
}
|
|
310
307
|
@media (prefers-reduced-motion: no-preference) {
|
|
311
|
-
.sprout-sidebar-panel[data-collapsible=
|
|
312
|
-
.sprout-sidebar-panel[data-collapsible=
|
|
308
|
+
.sprout-sidebar-panel[data-collapsible='icon'],
|
|
309
|
+
.sprout-sidebar-panel[data-collapsible='offcanvas'] {
|
|
313
310
|
transition:
|
|
314
311
|
width var(--sprout-motion-normal) var(--sprout-motion-ease),
|
|
315
312
|
opacity var(--sprout-motion-fast) ease-out,
|
|
@@ -338,8 +335,7 @@
|
|
|
338
335
|
color var(--sprout-motion-fast) ease-out;
|
|
339
336
|
}
|
|
340
337
|
.sprout-sidebar-drawer {
|
|
341
|
-
transition: transform var(--sprout-motion-normal)
|
|
342
|
-
var(--sprout-motion-ease);
|
|
338
|
+
transition: transform var(--sprout-motion-normal) var(--sprout-motion-ease);
|
|
343
339
|
}
|
|
344
340
|
.sprout-sidebar-drawer[data-ending-style] {
|
|
345
341
|
transition-duration: var(--sprout-motion-fast);
|
|
@@ -348,8 +344,8 @@
|
|
|
348
344
|
.sprout-sidebar-drawer[data-ending-style] {
|
|
349
345
|
transform: translateX(-100%);
|
|
350
346
|
}
|
|
351
|
-
.sprout-sidebar-drawer[data-side=
|
|
352
|
-
.sprout-sidebar-drawer[data-side=
|
|
347
|
+
.sprout-sidebar-drawer[data-side='right'][data-starting-style],
|
|
348
|
+
.sprout-sidebar-drawer[data-side='right'][data-ending-style] {
|
|
353
349
|
transform: translateX(100%);
|
|
354
350
|
}
|
|
355
351
|
.sprout-sidebar-backdrop {
|