@ngx-ui-sdk/themes 0.0.0-stage → 0.2.1
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 +202 -0
- package/README.md +93 -2
- package/daisyui/accordion.css +101 -0
- package/daisyui/alert-dialog.css +85 -0
- package/daisyui/all.css +57 -0
- package/daisyui/autocomplete.css +216 -0
- package/daisyui/avatar.css +38 -0
- package/daisyui/base.css +5549 -0
- package/daisyui/button.css +8 -0
- package/daisyui/calendar.css +239 -0
- package/daisyui/carousel.css +159 -0
- package/daisyui/checkbox.css +143 -0
- package/daisyui/collapsible.css +202 -0
- package/daisyui/color-picker.css +187 -0
- package/daisyui/combobox.css +504 -0
- package/daisyui/command.css +198 -0
- package/daisyui/date-input.css +74 -0
- package/daisyui/date-picker.css +171 -0
- package/daisyui/dialog.css +175 -0
- package/daisyui/drawer.css +227 -0
- package/daisyui/field.css +73 -0
- package/daisyui/file-input.css +175 -0
- package/daisyui/hover-card.css +42 -0
- package/daisyui/image-cropper.css +153 -0
- package/daisyui/input.css +19 -0
- package/daisyui/label.css +9 -0
- package/daisyui/listbox.css +154 -0
- package/daisyui/menu.css +225 -0
- package/daisyui/menubar.css +58 -0
- package/daisyui/meter.css +42 -0
- package/daisyui/navigation-menu.css +292 -0
- package/daisyui/number-input.css +135 -0
- package/daisyui/otp-input.css +123 -0
- package/daisyui/pagination.css +81 -0
- package/daisyui/palettes/abyss.css +27 -0
- package/daisyui/palettes/acid.css +27 -0
- package/daisyui/palettes/aqua.css +27 -0
- package/daisyui/palettes/autumn.css +27 -0
- package/daisyui/palettes/black.css +27 -0
- package/daisyui/palettes/bumblebee.css +27 -0
- package/daisyui/palettes/business.css +27 -0
- package/daisyui/palettes/caramellatte.css +27 -0
- package/daisyui/palettes/cmyk.css +27 -0
- package/daisyui/palettes/coffee.css +27 -0
- package/daisyui/palettes/corporate.css +27 -0
- package/daisyui/palettes/cupcake.css +27 -0
- package/daisyui/palettes/cyberpunk.css +27 -0
- package/daisyui/palettes/dim.css +27 -0
- package/daisyui/palettes/dracula.css +27 -0
- package/daisyui/palettes/emerald.css +27 -0
- package/daisyui/palettes/fantasy.css +27 -0
- package/daisyui/palettes/forest.css +27 -0
- package/daisyui/palettes/garden.css +27 -0
- package/daisyui/palettes/halloween.css +27 -0
- package/daisyui/palettes/lemonade.css +27 -0
- package/daisyui/palettes/lofi.css +27 -0
- package/daisyui/palettes/luxury.css +27 -0
- package/daisyui/palettes/night.css +27 -0
- package/daisyui/palettes/nord.css +27 -0
- package/daisyui/palettes/pastel.css +27 -0
- package/daisyui/palettes/retro.css +27 -0
- package/daisyui/palettes/silk.css +27 -0
- package/daisyui/palettes/sunset.css +27 -0
- package/daisyui/palettes/synthwave.css +27 -0
- package/daisyui/palettes/valentine.css +27 -0
- package/daisyui/palettes/winter.css +27 -0
- package/daisyui/palettes/wireframe.css +27 -0
- package/daisyui/password-input.css +59 -0
- package/daisyui/popover.css +108 -0
- package/daisyui/preferences.css +61 -0
- package/daisyui/progress.css +68 -0
- package/daisyui/radio.css +180 -0
- package/daisyui/rating.css +56 -0
- package/daisyui/resizable.css +147 -0
- package/daisyui/scroll-area.css +220 -0
- package/daisyui/segmented-control.css +83 -0
- package/daisyui/select.css +351 -0
- package/daisyui/separator.css +59 -0
- package/daisyui/slider.css +184 -0
- package/daisyui/switch.css +124 -0
- package/daisyui/tabs.css +172 -0
- package/daisyui/textarea.css +8 -0
- package/daisyui/timeline.css +137 -0
- package/daisyui/toast.css +219 -0
- package/daisyui/toggle.css +153 -0
- package/daisyui/token-input.css +215 -0
- package/daisyui/tokens/base.json +359 -0
- package/daisyui/tokens/dark.json +171 -0
- package/daisyui/tokens/light.json +171 -0
- package/daisyui/tokens.css +60 -0
- package/daisyui/toolbar.css +219 -0
- package/daisyui/tooltip.css +166 -0
- package/daisyui/tree.css +241 -0
- package/daisyui/trigger-menu.css +99 -0
- package/daisyui/waterfall.css +221 -0
- package/default/accordion.css +101 -0
- package/default/alert-dialog.css +85 -0
- package/default/all.css +57 -0
- package/default/autocomplete.css +216 -0
- package/default/avatar.css +38 -0
- package/default/base.css +5357 -0
- package/default/button.css +8 -0
- package/default/calendar.css +239 -0
- package/default/carousel.css +159 -0
- package/default/checkbox.css +143 -0
- package/default/collapsible.css +202 -0
- package/default/color-picker.css +187 -0
- package/default/combobox.css +504 -0
- package/default/command.css +198 -0
- package/default/date-input.css +74 -0
- package/default/date-picker.css +171 -0
- package/default/dialog.css +175 -0
- package/default/drawer.css +227 -0
- package/default/field.css +73 -0
- package/default/file-input.css +175 -0
- package/default/hover-card.css +42 -0
- package/default/image-cropper.css +153 -0
- package/default/input.css +19 -0
- package/default/label.css +9 -0
- package/default/listbox.css +154 -0
- package/default/menu.css +225 -0
- package/default/menubar.css +58 -0
- package/default/meter.css +42 -0
- package/default/navigation-menu.css +292 -0
- package/default/number-input.css +135 -0
- package/default/otp-input.css +123 -0
- package/default/pagination.css +81 -0
- package/default/password-input.css +59 -0
- package/default/popover.css +108 -0
- package/default/preferences.css +61 -0
- package/default/progress.css +68 -0
- package/default/radio.css +180 -0
- package/default/rating.css +56 -0
- package/default/resizable.css +147 -0
- package/default/scroll-area.css +220 -0
- package/default/segmented-control.css +83 -0
- package/default/select.css +351 -0
- package/default/separator.css +59 -0
- package/default/slider.css +184 -0
- package/default/switch.css +124 -0
- package/default/tabs.css +172 -0
- package/default/textarea.css +8 -0
- package/default/timeline.css +137 -0
- package/default/toast.css +219 -0
- package/default/toggle.css +153 -0
- package/default/token-input.css +215 -0
- package/default/tokens/base.json +410 -0
- package/default/tokens/dark.json +151 -0
- package/default/tokens/light.json +151 -0
- package/default/tokens.css +63 -0
- package/default/toolbar.css +219 -0
- package/default/tooltip.css +166 -0
- package/default/tree.css +241 -0
- package/default/trigger-menu.css +99 -0
- package/default/waterfall.css +221 -0
- package/material/accordion.css +101 -0
- package/material/alert-dialog.css +92 -0
- package/material/all.css +57 -0
- package/material/autocomplete.css +216 -0
- package/material/avatar.css +38 -0
- package/material/base.css +5374 -0
- package/material/button.css +8 -0
- package/material/calendar.css +239 -0
- package/material/carousel.css +159 -0
- package/material/checkbox.css +143 -0
- package/material/collapsible.css +202 -0
- package/material/color-picker.css +187 -0
- package/material/combobox.css +504 -0
- package/material/command.css +198 -0
- package/material/date-input.css +74 -0
- package/material/date-picker.css +171 -0
- package/material/dialog.css +182 -0
- package/material/drawer.css +227 -0
- package/material/field.css +602 -0
- package/material/file-input.css +175 -0
- package/material/hover-card.css +42 -0
- package/material/image-cropper.css +153 -0
- package/material/input.css +19 -0
- package/material/label.css +9 -0
- package/material/listbox.css +154 -0
- package/material/menu.css +225 -0
- package/material/menubar.css +58 -0
- package/material/meter.css +42 -0
- package/material/navigation-menu.css +292 -0
- package/material/number-input.css +135 -0
- package/material/otp-input.css +123 -0
- package/material/pagination.css +81 -0
- package/material/palettes/amber.css +24 -0
- package/material/palettes/blue.css +24 -0
- package/material/palettes/green.css +24 -0
- package/material/palettes/indigo.css +24 -0
- package/material/palettes/orange.css +24 -0
- package/material/palettes/pink.css +24 -0
- package/material/palettes/red.css +24 -0
- package/material/palettes/teal.css +24 -0
- package/material/password-input.css +59 -0
- package/material/popover.css +108 -0
- package/material/preferences.css +61 -0
- package/material/progress.css +68 -0
- package/material/radio.css +180 -0
- package/material/rating.css +56 -0
- package/material/resizable.css +147 -0
- package/material/scroll-area.css +220 -0
- package/material/segmented-control.css +83 -0
- package/material/select.css +351 -0
- package/material/separator.css +59 -0
- package/material/slider.css +184 -0
- package/material/switch.css +124 -0
- package/material/tabs.css +195 -0
- package/material/textarea.css +8 -0
- package/material/timeline.css +137 -0
- package/material/toast.css +219 -0
- package/material/toggle.css +153 -0
- package/material/token-input.css +215 -0
- package/material/tokens/base.json +338 -0
- package/material/tokens/dark.json +184 -0
- package/material/tokens/light.json +184 -0
- package/material/tokens.css +62 -0
- package/material/toolbar.css +219 -0
- package/material/tooltip.css +166 -0
- package/material/tree.css +241 -0
- package/material/trigger-menu.css +99 -0
- package/material/waterfall.css +221 -0
- package/package.json +30 -4
- package/shadcn/accordion.css +101 -0
- package/shadcn/alert-dialog.css +85 -0
- package/shadcn/all.css +57 -0
- package/shadcn/autocomplete.css +216 -0
- package/shadcn/avatar.css +38 -0
- package/shadcn/base.css +5357 -0
- package/shadcn/button.css +8 -0
- package/shadcn/calendar.css +239 -0
- package/shadcn/carousel.css +159 -0
- package/shadcn/checkbox.css +143 -0
- package/shadcn/collapsible.css +202 -0
- package/shadcn/color-picker.css +187 -0
- package/shadcn/combobox.css +504 -0
- package/shadcn/command.css +198 -0
- package/shadcn/date-input.css +74 -0
- package/shadcn/date-picker.css +171 -0
- package/shadcn/dialog.css +175 -0
- package/shadcn/drawer.css +227 -0
- package/shadcn/field.css +73 -0
- package/shadcn/file-input.css +175 -0
- package/shadcn/hover-card.css +42 -0
- package/shadcn/image-cropper.css +153 -0
- package/shadcn/input.css +19 -0
- package/shadcn/label.css +9 -0
- package/shadcn/listbox.css +154 -0
- package/shadcn/menu.css +225 -0
- package/shadcn/menubar.css +58 -0
- package/shadcn/meter.css +42 -0
- package/shadcn/navigation-menu.css +292 -0
- package/shadcn/number-input.css +135 -0
- package/shadcn/otp-input.css +123 -0
- package/shadcn/pagination.css +81 -0
- package/shadcn/password-input.css +59 -0
- package/shadcn/popover.css +108 -0
- package/shadcn/preferences.css +61 -0
- package/shadcn/progress.css +68 -0
- package/shadcn/radio.css +180 -0
- package/shadcn/rating.css +56 -0
- package/shadcn/resizable.css +147 -0
- package/shadcn/scroll-area.css +220 -0
- package/shadcn/segmented-control.css +83 -0
- package/shadcn/select.css +351 -0
- package/shadcn/separator.css +59 -0
- package/shadcn/slider.css +184 -0
- package/shadcn/switch.css +124 -0
- package/shadcn/tabs.css +172 -0
- package/shadcn/textarea.css +8 -0
- package/shadcn/timeline.css +137 -0
- package/shadcn/toast.css +219 -0
- package/shadcn/toggle.css +153 -0
- package/shadcn/token-input.css +215 -0
- package/shadcn/tokens/base.json +395 -0
- package/shadcn/tokens/dark.json +177 -0
- package/shadcn/tokens/light.json +174 -0
- package/shadcn/tokens.css +61 -0
- package/shadcn/toolbar.css +219 -0
- package/shadcn/tooltip.css +166 -0
- package/shadcn/tree.css +241 -0
- package/shadcn/trigger-menu.css +99 -0
- package/shadcn/waterfall.css +221 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
[data-slot="date-input"], [data-slot="time-input"] {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
width: auto;
|
|
7
|
+
padding-inline: 8px;
|
|
8
|
+
font-variant-numeric: tabular-nums;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* A field around a date or time takes the input's width, so its description wraps under it. */
|
|
12
|
+
[data-slot="field"]:has(
|
|
13
|
+
> :is([data-slot="date-input"], [data-slot="time-input"])
|
|
14
|
+
) {
|
|
15
|
+
width: max-content
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-slot="field"]:has(
|
|
19
|
+
> :is([data-slot="date-input"], [data-slot="time-input"])
|
|
20
|
+
) > [data-slot="field-description"] {
|
|
21
|
+
contain: inline-size;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Stacks of date and time fields shrink to their fields, so they stay centered. */
|
|
25
|
+
:is([data-slot="date-input-segment"], [data-slot="time-input-segment"])[data-type="literal"] {
|
|
26
|
+
padding-inline: 1px;
|
|
27
|
+
color: var(--ui-muted-foreground);
|
|
28
|
+
white-space: pre;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-slot="date-input-segment"]:not([data-type="literal"]), [data-slot="time-input-segment"]:not([data-type="literal"]) {
|
|
32
|
+
box-sizing: content-box;
|
|
33
|
+
width: 2ch;
|
|
34
|
+
height: 22px;
|
|
35
|
+
padding: 0 2px;
|
|
36
|
+
border: 0;
|
|
37
|
+
border-radius: 4px;
|
|
38
|
+
background: transparent;
|
|
39
|
+
color: inherit;
|
|
40
|
+
font: inherit;
|
|
41
|
+
text-align: center;
|
|
42
|
+
caret-color: transparent;
|
|
43
|
+
outline: none
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-slot="date-input-segment"]:not([data-type="literal"])::placeholder, [data-slot="time-input-segment"]:not([data-type="literal"])::placeholder {
|
|
47
|
+
color: var(--ui-muted-foreground);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-slot="date-input-segment"]:not([data-type="literal"])::selection, [data-slot="time-input-segment"]:not([data-type="literal"])::selection {
|
|
51
|
+
background: transparent;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-slot="date-input-segment"]:not([data-type="literal"]):focus, [data-slot="time-input-segment"]:not([data-type="literal"]):focus {
|
|
55
|
+
background: var(--ui-primary);
|
|
56
|
+
color: var(--ui-primary-foreground)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-slot="date-input-segment"]:not([data-type="literal"]):focus::placeholder, [data-slot="time-input-segment"]:not([data-type="literal"]):focus::placeholder {
|
|
60
|
+
color: var(--ui-primary-foreground);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-slot="date-input-segment"]:not([data-type="literal"]):disabled, [data-slot="time-input-segment"]:not([data-type="literal"]):disabled {
|
|
64
|
+
color: inherit;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:is([data-slot="date-input-segment"], [data-slot="time-input-segment"])[data-type="year"] {
|
|
68
|
+
width: 4ch;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:is([data-slot="date-input-segment"], [data-slot="time-input-segment"])[data-type="dayPeriod"] {
|
|
72
|
+
width: 2.6ch;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
/* The field sits near the top, centered, with room below for the open calendar inside the preview. */
|
|
4
|
+
|
|
5
|
+
/* In a field, the picker takes the field's width. */
|
|
6
|
+
[data-slot="field"] > [data-slot="date-picker"] {
|
|
7
|
+
align-self: stretch
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-slot="field"] > [data-slot="date-picker"] > [data-slot="row"]:has(> [data-slot="date-picker-input"]) {
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* A picker inside a stack sits on the stack's center line. */
|
|
15
|
+
[data-slot="stack"]:has(> [data-slot="date-picker"]) {
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot="date-picker"] {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
gap: var(--ui-space-2);
|
|
24
|
+
max-width: 100%
|
|
25
|
+
|
|
26
|
+
/* The row around the inputs and trigger is the field. */
|
|
27
|
+
}
|
|
28
|
+
[data-slot="date-picker"] > [data-slot="row"]:has(> [data-slot="date-picker-input"]) {
|
|
29
|
+
flex-wrap: nowrap;
|
|
30
|
+
gap: var(--ui-space-1);
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
height: var(--ui-size-md);
|
|
33
|
+
padding-inline: 0 3px;
|
|
34
|
+
border-radius: var(--ui-radius-control);
|
|
35
|
+
background: var(--ui-surface-1);
|
|
36
|
+
box-shadow: inset 0 0 0 1px var(--ui-input)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-slot="date-picker"] > [data-slot="row"]:has(> [data-slot="date-picker-input"]):hover {
|
|
40
|
+
box-shadow: inset 0 0 0 1px
|
|
41
|
+
color-mix(in oklab, var(--ui-border-strong) 45%, var(--ui-surface-1));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
[data-slot="date-picker"] > [data-slot="row"]:has(> [data-slot="date-picker-input"]):has(input:focus-visible) {
|
|
45
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
46
|
+
outline: 3px solid var(--ui-ring);
|
|
47
|
+
outline-offset: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[data-slot="date-picker"]:has([aria-invalid="true"]) > [data-slot="row"] {
|
|
51
|
+
box-shadow: inset 0 0 0 1px var(--ui-destructive);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
[data-slot="date-picker"][data-disabled] > [data-slot="row"] {
|
|
55
|
+
box-shadow: inset 0 0 0 1px var(--ui-border);
|
|
56
|
+
color: var(--ui-border-disabled);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-slot="date-picker"][data-readonly] > [data-slot="row"] {
|
|
60
|
+
background: var(--ui-muted);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* The input reaches the field's start edge, so the calendar lines up with the field. */
|
|
64
|
+
[data-slot="date-picker-input"] {
|
|
65
|
+
flex: 1;
|
|
66
|
+
min-width: 0;
|
|
67
|
+
height: 100%;
|
|
68
|
+
padding: 0;
|
|
69
|
+
padding-inline-start: 10px;
|
|
70
|
+
border: 0;
|
|
71
|
+
background: transparent;
|
|
72
|
+
color: inherit;
|
|
73
|
+
font: inherit;
|
|
74
|
+
font-variant-numeric: tabular-nums;
|
|
75
|
+
outline: none
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[data-slot="date-picker-input"]::placeholder {
|
|
79
|
+
color: var(--ui-muted-foreground);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-slot="date-picker-input"][data-disabled]::placeholder {
|
|
83
|
+
color: var(--ui-border-disabled);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-slot="date-picker-trigger"], [data-slot="date-picker-clear"] {
|
|
87
|
+
width: var(--ui-size-sm);
|
|
88
|
+
height: var(--ui-size-sm);
|
|
89
|
+
padding: 0;
|
|
90
|
+
border-radius: var(--ui-radius-row);
|
|
91
|
+
color: var(--ui-muted-foreground)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-slot="date-picker-trigger"]:hover:not(:disabled, [data-disabled]), [data-slot="date-picker-clear"]:hover:not(:disabled, [data-disabled]) {
|
|
95
|
+
color: var(--ui-foreground);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-slot="date-picker-hint"] {
|
|
99
|
+
min-height: var(--ui-leading);
|
|
100
|
+
color: var(--ui-muted-foreground);
|
|
101
|
+
font-size: var(--ui-text-sm);
|
|
102
|
+
font-variant-numeric: tabular-nums
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[data-slot="date-picker-hint"][data-placeholder] {
|
|
106
|
+
font-size: var(--ui-text-xs);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
[data-slot="date-picker-clear"][data-empty] {
|
|
110
|
+
visibility: hidden;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
[data-slot="date-picker-content"] {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
gap: 6px;
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
max-width: var(--available-width);
|
|
119
|
+
max-height: var(--available-height);
|
|
120
|
+
overflow-y: auto;
|
|
121
|
+
padding: 10px;
|
|
122
|
+
border-radius: var(--ui-radius-popup);
|
|
123
|
+
background: var(--ui-surface-2);
|
|
124
|
+
box-shadow: var(--ui-shadow-md);
|
|
125
|
+
font-size: var(--ui-text-sm);
|
|
126
|
+
outline: none;
|
|
127
|
+
transform-origin: var(--transform-origin)
|
|
128
|
+
|
|
129
|
+
/* As in Calendar, the header takes the grid's width rather than widening the popup for a long heading. */
|
|
130
|
+
|
|
131
|
+
/* Messages wrap to the grid's width instead of widening the popup. */
|
|
132
|
+
}
|
|
133
|
+
[data-slot="date-picker-content"] > [data-slot="row"]:first-child {
|
|
134
|
+
flex-wrap: nowrap;
|
|
135
|
+
justify-content: space-between;
|
|
136
|
+
width: 0;
|
|
137
|
+
min-width: 100%;
|
|
138
|
+
padding-bottom: var(--ui-space-1);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[data-slot="date-picker-content"] > [data-slot="row"]:has(> [data-slot="date-picker-preset"]) {
|
|
142
|
+
gap: var(--ui-space-1);
|
|
143
|
+
padding-top: 6px;
|
|
144
|
+
border-top: 1px solid var(--ui-border);
|
|
145
|
+
}
|
|
146
|
+
[data-slot="date-picker-content"] > [data-slot="hint"] {
|
|
147
|
+
width: 0;
|
|
148
|
+
min-width: 100%;
|
|
149
|
+
margin: 0;
|
|
150
|
+
padding-top: var(--ui-space-2);
|
|
151
|
+
border-top: 1px solid var(--ui-border);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[data-slot="date-picker-content"] [data-slot="calendar"] {
|
|
155
|
+
padding: 0;
|
|
156
|
+
background: none;
|
|
157
|
+
box-shadow: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[data-slot="date-picker-preset"] {
|
|
161
|
+
height: var(--ui-size-sm);
|
|
162
|
+
padding-inline: 10px;
|
|
163
|
+
border-radius: var(--ui-radius-row);
|
|
164
|
+
font-size: var(--ui-text-sm)
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
[data-slot="date-picker-preset"][data-selected] {
|
|
168
|
+
background: var(--ui-muted);
|
|
169
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
/* Stacks and forms take the dialog's width, not the 20rem a stack with a field gets elsewhere. */
|
|
4
|
+
|
|
5
|
+
/* Fields, inputs and text areas take the dialog's width, in a popup or a sheet. */
|
|
6
|
+
|
|
7
|
+
[data-slot="dialog-content"] {
|
|
8
|
+
position: fixed;
|
|
9
|
+
inset: 0;
|
|
10
|
+
z-index: 50;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: var(--ui-space-4);
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
width: min(28rem, calc(100% - 2rem));
|
|
16
|
+
height: fit-content;
|
|
17
|
+
max-height: calc(100dvh - 2rem);
|
|
18
|
+
margin: auto;
|
|
19
|
+
padding: 18px;
|
|
20
|
+
border-radius: var(--ui-radius-popup);
|
|
21
|
+
background: var(--ui-surface-3);
|
|
22
|
+
box-shadow: var(--ui-shadow-lg);
|
|
23
|
+
color: var(--ui-foreground);
|
|
24
|
+
outline: none
|
|
25
|
+
|
|
26
|
+
/* A sheet spans a phone, and stays a readable width on a wider screen. */
|
|
27
|
+
|
|
28
|
+
/* The title and description sit close together; a form spaces its fields. */
|
|
29
|
+
|
|
30
|
+
/* A long middle section scrolls between a fixed header and actions. */
|
|
31
|
+
|
|
32
|
+
/* A question inside the dialog, with its answers at the end. */
|
|
33
|
+
|
|
34
|
+
/* A setting with its action, like a row in an account page. */
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-slot="dialog-content"][data-nested-open] {
|
|
38
|
+
translate: 0 -12px;
|
|
39
|
+
scale: 0.97;
|
|
40
|
+
}
|
|
41
|
+
[data-slot="dialog-content"][data-presentation="sheet"] {
|
|
42
|
+
position: relative;
|
|
43
|
+
inset: auto;
|
|
44
|
+
width: min(36rem, 100%);
|
|
45
|
+
max-height: none;
|
|
46
|
+
margin: 0 auto;
|
|
47
|
+
border-radius: var(--ui-radius-popup) var(--ui-radius-popup) 0 0;
|
|
48
|
+
--sheet-backdrop: var(--ui-overlay);
|
|
49
|
+
padding-bottom: max(18px, env(safe-area-inset-bottom));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[data-slot="dialog-content"] > [data-slot="stack"], [data-slot="dialog-content"] > form {
|
|
53
|
+
align-items: stretch;
|
|
54
|
+
}
|
|
55
|
+
[data-slot="dialog-content"] > [data-slot="stack"]:has(> [data-slot="dialog-title"]) {
|
|
56
|
+
gap: var(--ui-space-1);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-slot="dialog-content"] > [data-slot="row"] {
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
}
|
|
62
|
+
[data-slot="dialog-content"] > [data-slot="scroll"] {
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: var(--ui-space-3);
|
|
66
|
+
min-height: 0;
|
|
67
|
+
max-height: 15rem;
|
|
68
|
+
margin-inline: -18px;
|
|
69
|
+
padding: var(--ui-space-3) 18px;
|
|
70
|
+
overflow-y: auto;
|
|
71
|
+
border-block: 1px solid var(--ui-border);
|
|
72
|
+
color: var(--ui-muted-foreground);
|
|
73
|
+
font-size: var(--ui-text-sm)
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
[data-slot="dialog-content"] > [data-slot="scroll"] p {
|
|
77
|
+
margin: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slot="dialog-content"] textarea {
|
|
81
|
+
min-height: 6rem;
|
|
82
|
+
resize: vertical;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-slot="dialog-content"] > form {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
gap: var(--ui-space-3)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
[data-slot="dialog-content"] > form > [data-slot="row"] {
|
|
92
|
+
justify-content: flex-end;
|
|
93
|
+
margin-top: var(--ui-space-1);
|
|
94
|
+
}
|
|
95
|
+
[data-slot="dialog-content"] > [data-slot="row"][role="alert"] {
|
|
96
|
+
justify-content: space-between;
|
|
97
|
+
padding: var(--ui-space-2) var(--ui-space-2) var(--ui-space-2) var(--ui-space-3);
|
|
98
|
+
border-radius: var(--ui-radius-control);
|
|
99
|
+
background: var(--ui-muted);
|
|
100
|
+
font-size: var(--ui-text-sm);
|
|
101
|
+
}
|
|
102
|
+
[data-slot="dialog-content"] > [data-slot="card"] {
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
box-shadow: inset 0 0 0 1px var(--ui-border);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[data-slot="dialog-content"] > [data-slot="stack"] > [data-slot="dialog-close"] {
|
|
109
|
+
justify-content: flex-start;
|
|
110
|
+
height: 32px;
|
|
111
|
+
padding-inline: 10px;
|
|
112
|
+
border-radius: var(--ui-radius-row);
|
|
113
|
+
background: transparent;
|
|
114
|
+
box-shadow: none;
|
|
115
|
+
font-weight: 400
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[data-slot="dialog-content"] > [data-slot="stack"] > [data-slot="dialog-close"]:hover {
|
|
119
|
+
background: var(--ui-muted);
|
|
120
|
+
box-shadow: inset 0 0 0 1px var(--ui-border-strong);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[data-slot="dialog-content"] > [data-slot="stack"] > [data-slot="dialog-close"]:active {
|
|
124
|
+
scale: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-slot="dialog-content"] > [data-slot="stack"] > [data-slot="dialog-close"]:focus-visible {
|
|
128
|
+
outline-offset: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-slot="dialog-content"] > [data-slot="stack"] > [data-slot="dialog-close"] > svg {
|
|
132
|
+
width: 14px;
|
|
133
|
+
height: 14px;
|
|
134
|
+
color: var(--ui-muted-foreground);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[data-slot="dialog-content"] [data-slot="dialog-close"][aria-label] {
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: var(--ui-space-3);
|
|
140
|
+
inset-inline-end: var(--ui-space-3);
|
|
141
|
+
width: var(--ui-size-sm);
|
|
142
|
+
height: var(--ui-size-sm);
|
|
143
|
+
padding: 0;
|
|
144
|
+
background: transparent;
|
|
145
|
+
box-shadow: none;
|
|
146
|
+
color: var(--ui-muted-foreground)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
[data-slot="dialog-content"] [data-slot="dialog-close"][aria-label]:hover {
|
|
150
|
+
background: var(--ui-muted);
|
|
151
|
+
color: var(--ui-foreground);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[data-slot="dialog-title"] {
|
|
155
|
+
margin: 0;
|
|
156
|
+
font-size: 15px;
|
|
157
|
+
font-weight: 600;
|
|
158
|
+
line-height: 22px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[data-slot="dialog-description"] {
|
|
162
|
+
margin: 0;
|
|
163
|
+
color: var(--ui-muted-foreground);
|
|
164
|
+
font-size: var(--ui-text-md);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
[data-slot="dialog-shortcut"] {
|
|
168
|
+
margin-inline-start: var(--ui-space-1);
|
|
169
|
+
color: var(--ui-muted-foreground);
|
|
170
|
+
font-size: var(--ui-text-xs);
|
|
171
|
+
letter-spacing: 0.04em;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Only this demo animates the open and close. */
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@scope ([data-ui-theme]) {
|
|
178
|
+
/* Material's dialogs have its extra large corner. */
|
|
179
|
+
[data-slot="dialog-content"]:is(*, [data-slot]) {
|
|
180
|
+
border-radius: 28px;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/* Generated by `node scripts/build-theme.mjs` from ui-sdk's example styles. */
|
|
2
|
+
@scope ([data-ui-theme]) {
|
|
3
|
+
/* Stacks, forms and fields take the sheet's width, not the 20rem a stack with a field gets elsewhere. */
|
|
4
|
+
|
|
5
|
+
/* A goal between its decrease and increase buttons. */
|
|
6
|
+
[data-slot="drawer-backdrop"][data-hidden] {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[data-slot="drawer-content"] {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--ui-space-4);
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-height: 85dvh;
|
|
18
|
+
padding: 18px;
|
|
19
|
+
padding-bottom: max(18px, env(safe-area-inset-bottom));
|
|
20
|
+
background: var(--ui-surface-3);
|
|
21
|
+
box-shadow: var(--ui-shadow-lg);
|
|
22
|
+
color: var(--ui-foreground);
|
|
23
|
+
outline: none
|
|
24
|
+
|
|
25
|
+
/* The title and description sit close together; a form spaces its fields. */
|
|
26
|
+
|
|
27
|
+
/* A long middle section scrolls between a fixed header and actions. */
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-slot="drawer-content"]::after {
|
|
31
|
+
position: absolute;
|
|
32
|
+
background: inherit;
|
|
33
|
+
content: "";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-slot="drawer-content"]:is([data-side="bottom"], [data-side="top"]) {
|
|
37
|
+
max-width: 32rem;
|
|
38
|
+
height: fit-content;
|
|
39
|
+
margin-inline: auto;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
[data-slot="drawer-content"][data-side="bottom"] {
|
|
43
|
+
border-radius: var(--ui-radius-popup) var(--ui-radius-popup) 0 0
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-slot="drawer-content"][data-side="bottom"]::after {
|
|
47
|
+
inset-inline: 0;
|
|
48
|
+
top: 100%;
|
|
49
|
+
height: 6rem;
|
|
50
|
+
box-shadow:
|
|
51
|
+
-1px 0 0 var(--ui-input),
|
|
52
|
+
1px 0 0 var(--ui-input);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-slot="drawer-content"][data-side="top"] {
|
|
56
|
+
border-radius: 0 0 var(--ui-radius-popup) var(--ui-radius-popup)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
[data-slot="drawer-content"][data-side="top"]::after {
|
|
60
|
+
inset-inline: 0;
|
|
61
|
+
bottom: 100%;
|
|
62
|
+
height: 6rem;
|
|
63
|
+
box-shadow:
|
|
64
|
+
-1px 0 0 var(--ui-input),
|
|
65
|
+
1px 0 0 var(--ui-input);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
[data-slot="drawer-content"]:is([data-side="left"], [data-side="right"]) {
|
|
69
|
+
width: 20rem;
|
|
70
|
+
max-width: 85vw;
|
|
71
|
+
height: 100%;
|
|
72
|
+
max-height: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[data-slot="drawer-content"][data-side="left"] {
|
|
76
|
+
border-radius: 0 var(--ui-radius-popup) var(--ui-radius-popup) 0
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
[data-slot="drawer-content"][data-side="left"]::after {
|
|
80
|
+
inset-block: 0;
|
|
81
|
+
right: 100%;
|
|
82
|
+
width: 6rem;
|
|
83
|
+
box-shadow:
|
|
84
|
+
0 -1px 0 var(--ui-input),
|
|
85
|
+
0 1px 0 var(--ui-input);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
[data-slot="drawer-content"][data-side="right"] {
|
|
89
|
+
border-radius: var(--ui-radius-popup) 0 0 var(--ui-radius-popup)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
[data-slot="drawer-content"][data-side="right"]::after {
|
|
93
|
+
inset-block: 0;
|
|
94
|
+
left: 100%;
|
|
95
|
+
width: 6rem;
|
|
96
|
+
box-shadow:
|
|
97
|
+
0 -1px 0 var(--ui-input),
|
|
98
|
+
0 1px 0 var(--ui-input);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-slot="drawer-content"][data-snap-point]:not([data-snap-point="content"]) {
|
|
102
|
+
height: calc(100dvh - 3rem);
|
|
103
|
+
max-height: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[data-slot="drawer-content"][data-nested-open] {
|
|
107
|
+
scale: 0.97;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
[data-slot="drawer-content"][data-dragging] {
|
|
111
|
+
user-select: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
[data-slot="drawer-content"] > [data-slot="stack"], [data-slot="drawer-content"] > form {
|
|
115
|
+
align-items: stretch;
|
|
116
|
+
}
|
|
117
|
+
[data-slot="drawer-content"] > [data-slot="stack"]:has(> [data-slot="drawer-title"]) {
|
|
118
|
+
gap: var(--ui-space-1);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
[data-slot="drawer-content"] > form {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: column;
|
|
124
|
+
gap: var(--ui-space-3);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-slot="drawer-content"] > [data-slot="stack"]:last-child {
|
|
128
|
+
margin-top: auto;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[data-slot="drawer-content"] > [data-slot="stack"]:has([data-slot="drawer-close"]) {
|
|
132
|
+
gap: var(--ui-space-2);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
[data-slot="drawer-content"] > [data-slot="row"] {
|
|
136
|
+
justify-content: flex-end;
|
|
137
|
+
}
|
|
138
|
+
[data-slot="drawer-content"] > [data-slot="scroll"] {
|
|
139
|
+
flex: 1;
|
|
140
|
+
min-height: 0;
|
|
141
|
+
max-height: none;
|
|
142
|
+
margin: 0 -18px;
|
|
143
|
+
padding: 0 18px;
|
|
144
|
+
overflow-y: auto;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
[data-slot="drawer-content"] [data-slot="list"] {
|
|
148
|
+
width: auto;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
[data-slot="drawer-content"] [data-slot="drawer-close"][aria-label] {
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: var(--ui-space-3);
|
|
154
|
+
inset-inline-end: var(--ui-space-3);
|
|
155
|
+
width: var(--ui-size-sm);
|
|
156
|
+
height: var(--ui-size-sm);
|
|
157
|
+
padding: 0;
|
|
158
|
+
background: transparent;
|
|
159
|
+
box-shadow: none;
|
|
160
|
+
color: var(--ui-muted-foreground)
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
[data-slot="drawer-content"] [data-slot="drawer-close"][aria-label]:hover {
|
|
164
|
+
background: var(--ui-muted);
|
|
165
|
+
color: var(--ui-foreground);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[data-slot="drawer-title"] {
|
|
169
|
+
margin: 0;
|
|
170
|
+
font-size: 15px;
|
|
171
|
+
font-weight: 600;
|
|
172
|
+
line-height: 22px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
[data-slot="drawer-description"] {
|
|
176
|
+
margin: 0;
|
|
177
|
+
color: var(--ui-muted-foreground);
|
|
178
|
+
font-size: var(--ui-text-md);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[data-slot="drawer-handle"] {
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
flex-shrink: 0;
|
|
185
|
+
align-items: center;
|
|
186
|
+
gap: var(--ui-space-1);
|
|
187
|
+
margin-inline: auto;
|
|
188
|
+
padding: var(--ui-space-1) var(--ui-space-3);
|
|
189
|
+
border: 0;
|
|
190
|
+
border-radius: var(--ui-radius-row);
|
|
191
|
+
background: none;
|
|
192
|
+
color: var(--ui-muted-foreground);
|
|
193
|
+
font: inherit;
|
|
194
|
+
font-size: var(--ui-text-xs);
|
|
195
|
+
font-variant-numeric: tabular-nums;
|
|
196
|
+
cursor: default
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
[data-slot="drawer-handle"]:empty {
|
|
200
|
+
box-sizing: content-box;
|
|
201
|
+
width: 36px;
|
|
202
|
+
height: 4px;
|
|
203
|
+
padding: var(--ui-space-1);
|
|
204
|
+
background: var(--ui-border);
|
|
205
|
+
background-clip: content-box;
|
|
206
|
+
border-radius: 999px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[data-slot="drawer-handle"]:hover:empty {
|
|
210
|
+
background-color: var(--ui-input);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
[data-slot="drawer-handle"] svg[data-disabled] {
|
|
214
|
+
color: var(--ui-border-disabled);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Release notes long enough to scroll on any screen, between the header and the button. */
|
|
218
|
+
|
|
219
|
+
/* Places behind the directions sheet: whole rows to pick from, the chosen one marked. */
|
|
220
|
+
|
|
221
|
+
/* The inbox behind the compose sheet: a header the list's width, with its action at the end. */
|
|
222
|
+
|
|
223
|
+
[data-slot="drawer-outlet"] {
|
|
224
|
+
display: block;
|
|
225
|
+
transform-origin: top;
|
|
226
|
+
}
|
|
227
|
+
}
|