@pimolu/web-styles 0.1.0-beta.1 → 0.1.0-beta.11
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.fr.md +109 -14
- package/README.md +125 -30
- package/dist/accordion.css +73 -1
- package/dist/alert.css +1 -1
- package/dist/api-table.css +6 -5
- package/dist/app-shell.css +87 -22
- package/dist/arc-carousel.css +261 -0
- package/dist/avatar.css +37 -0
- package/dist/badge.css +37 -0
- package/dist/button.css +8 -2
- package/dist/card.css +37 -0
- package/dist/carousel.css +25 -4
- package/dist/cascader.css +1 -1
- package/dist/chart.css +99 -2
- package/dist/chat.css +1 -0
- package/dist/checkbox.css +1 -1
- package/dist/circular-progress.css +23 -1
- package/dist/code-block.css +2 -2
- package/dist/color-picker.css +1 -1
- package/dist/combobox.css +1 -1
- package/dist/command.css +37 -0
- package/dist/coverflow-carousel.css +251 -0
- package/dist/currency-input.css +1 -1
- package/dist/dashboard-layout.css +92 -28
- package/dist/date-picker.css +1 -1
- package/dist/docs-layout.css +9 -0
- package/dist/form-field.css +50 -0
- package/dist/form.css +48 -0
- package/dist/gantt.css +19 -1
- package/dist/input-group.css +15 -3
- package/dist/input.css +14 -2
- package/dist/kanban.css +27 -2
- package/dist/layered.css +23822 -0
- package/dist/masked-input.css +1 -1
- package/dist/mentions.css +1 -1
- package/dist/modal.css +186 -0
- package/dist/motion.css +36 -0
- package/dist/multi-carousel.css +260 -0
- package/dist/multi-select.css +1 -1
- package/dist/navbar.css +343 -0
- package/dist/number-input.css +1 -1
- package/dist/page-header.css +29 -1
- package/dist/password-input.css +14 -2
- package/dist/peek-carousel.css +250 -0
- package/dist/phone-input.css +1 -1
- package/dist/pimolu.css +1990 -415
- package/dist/pimolu.min.css +1 -1
- package/dist/pin-input.css +1 -1
- package/dist/popover.css +4 -0
- package/dist/radio.css +1 -1
- package/dist/range-slider.css +8 -1
- package/dist/scheduler.css +19 -2
- package/dist/segmented-control.css +70 -3
- package/dist/select.css +3 -1
- package/dist/sidebar.css +116 -6
- package/dist/slider.css +71 -1
- package/dist/stack-carousel.css +250 -0
- package/dist/switch.css +1 -1
- package/dist/table.css +37 -0
- package/dist/tabs.css +129 -40
- package/dist/tags-input.css +9 -2
- package/dist/textarea.css +1 -1
- package/dist/themes.css +129 -0
- package/dist/thumbnail-carousel.css +244 -0
- package/dist/time-picker.css +1 -1
- package/dist/toast.css +225 -8
- package/dist/tokens.css +902 -0
- package/dist/toolbar.css +37 -0
- package/dist/tree-select.css +1 -1
- package/dist/tree-table.css +10 -0
- package/package.json +20 -8
- package/LICENSE +0 -21
package/dist/themes.css
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* ../themes/dist/styles.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-color-white: #FFFFFF;
|
|
4
|
+
--pimolu-color-black: #000000;
|
|
5
|
+
--pimolu-color-ink-25: #FAF8F5;
|
|
6
|
+
--pimolu-color-ink-50: #F6F2EF;
|
|
7
|
+
--pimolu-color-ink-100: #F4F0EC;
|
|
8
|
+
--pimolu-color-ink-200: #E7E0D9;
|
|
9
|
+
--pimolu-color-ink-400: #B8B0BD;
|
|
10
|
+
--pimolu-color-ink-500: #8E8490;
|
|
11
|
+
--pimolu-color-ink-550: #857D90;
|
|
12
|
+
--pimolu-color-ink-600: #706B73;
|
|
13
|
+
--pimolu-color-ink-700: #39343E;
|
|
14
|
+
--pimolu-color-ink-800: #26232D;
|
|
15
|
+
--pimolu-color-ink-900: #24212A;
|
|
16
|
+
--pimolu-color-ink-950: #18161D;
|
|
17
|
+
--pimolu-color-iris-50: #F0EBF9;
|
|
18
|
+
--pimolu-color-iris-300: #B9A5FA;
|
|
19
|
+
--pimolu-color-iris-400: #A48BEF;
|
|
20
|
+
--pimolu-color-iris-600: #6746C7;
|
|
21
|
+
--pimolu-color-iris-700: #5637B0;
|
|
22
|
+
--pimolu-color-iris-900: #30283E;
|
|
23
|
+
--pimolu-color-iris-950: #21172D;
|
|
24
|
+
--pimolu-color-indigo-400: #818CF8;
|
|
25
|
+
--pimolu-color-indigo-500: #6366F1;
|
|
26
|
+
--pimolu-color-indigo-600: #4F46E5;
|
|
27
|
+
--pimolu-color-indigo-700: #4338CA;
|
|
28
|
+
--pimolu-color-slate-50: #F8FAFC;
|
|
29
|
+
--pimolu-color-slate-100: #F1F5F9;
|
|
30
|
+
--pimolu-color-slate-200: #E2E8F0;
|
|
31
|
+
--pimolu-color-slate-400: #94A3B8;
|
|
32
|
+
--pimolu-color-slate-500: #64748B;
|
|
33
|
+
--pimolu-color-slate-550: #607087;
|
|
34
|
+
--pimolu-color-slate-800: #1E293B;
|
|
35
|
+
--pimolu-color-slate-900: #0F172A;
|
|
36
|
+
--pimolu-color-slate-950: #020617;
|
|
37
|
+
--pimolu-color-red-400: #F87171;
|
|
38
|
+
--pimolu-color-red-500: #EF4444;
|
|
39
|
+
--pimolu-color-red-600: #DC2626;
|
|
40
|
+
--pimolu-color-red-700: #B91C1C;
|
|
41
|
+
--pimolu-color-green-500: #22C55E;
|
|
42
|
+
--pimolu-color-green-600: #16A34A;
|
|
43
|
+
--pimolu-color-green-700: #15803D;
|
|
44
|
+
--pimolu-color-green-800: #166534;
|
|
45
|
+
--pimolu-color-amber-500: #F59E0B;
|
|
46
|
+
--pimolu-color-amber-600: #D97706;
|
|
47
|
+
--pimolu-spacing-0: 0px;
|
|
48
|
+
--pimolu-spacing-1: 4px;
|
|
49
|
+
--pimolu-spacing-2: 8px;
|
|
50
|
+
--pimolu-spacing-3: 12px;
|
|
51
|
+
--pimolu-spacing-4: 16px;
|
|
52
|
+
--pimolu-spacing-5: 20px;
|
|
53
|
+
--pimolu-spacing-6: 24px;
|
|
54
|
+
--pimolu-spacing-8: 32px;
|
|
55
|
+
--pimolu-spacing-10: 40px;
|
|
56
|
+
--pimolu-spacing-12: 48px;
|
|
57
|
+
--pimolu-radius-none: 0px;
|
|
58
|
+
--pimolu-radius-sm: 6px;
|
|
59
|
+
--pimolu-radius-md: 10px;
|
|
60
|
+
--pimolu-radius-lg: 14px;
|
|
61
|
+
--pimolu-radius-xl: 18px;
|
|
62
|
+
--pimolu-radius-full: 9999px;
|
|
63
|
+
--pimolu-font-size-xs: 12px;
|
|
64
|
+
--pimolu-font-size-sm: 14px;
|
|
65
|
+
--pimolu-font-size-md: 16px;
|
|
66
|
+
--pimolu-font-size-lg: 18px;
|
|
67
|
+
--pimolu-font-size-xl: 20px;
|
|
68
|
+
--pimolu-font-size-2xl: 24px;
|
|
69
|
+
--pimolu-font-size-3xl: 30px;
|
|
70
|
+
--pimolu-font-family-sans:
|
|
71
|
+
Inter,
|
|
72
|
+
system-ui,
|
|
73
|
+
sans-serif;
|
|
74
|
+
}
|
|
75
|
+
:root,
|
|
76
|
+
[data-pimolu-theme=light] {
|
|
77
|
+
color-scheme: light;
|
|
78
|
+
--pimolu-background: var(--pimolu-color-white);
|
|
79
|
+
--pimolu-foreground: var(--pimolu-color-slate-950);
|
|
80
|
+
--pimolu-surface: var(--pimolu-color-slate-50);
|
|
81
|
+
--pimolu-surface-foreground: var(--pimolu-color-slate-900);
|
|
82
|
+
--pimolu-muted: var(--pimolu-color-slate-100);
|
|
83
|
+
--pimolu-muted-foreground: var(--pimolu-color-slate-550);
|
|
84
|
+
--pimolu-border: var(--pimolu-color-slate-200);
|
|
85
|
+
--pimolu-primary: var(--pimolu-color-indigo-600);
|
|
86
|
+
--pimolu-primary-hover: var(--pimolu-color-indigo-700);
|
|
87
|
+
--pimolu-primary-foreground: var(--pimolu-color-white);
|
|
88
|
+
--pimolu-focus-ring: var(--pimolu-color-indigo-500);
|
|
89
|
+
--pimolu-success: var(--pimolu-color-green-700);
|
|
90
|
+
--pimolu-success-hover: var(--pimolu-color-green-800);
|
|
91
|
+
--pimolu-success-foreground: var(--pimolu-color-white);
|
|
92
|
+
--pimolu-warning: var(--pimolu-color-amber-500);
|
|
93
|
+
--pimolu-warning-hover: var(--pimolu-color-amber-600);
|
|
94
|
+
--pimolu-warning-foreground: var(--pimolu-color-slate-950);
|
|
95
|
+
--pimolu-danger: var(--pimolu-color-red-600);
|
|
96
|
+
--pimolu-danger-hover: var(--pimolu-color-red-700);
|
|
97
|
+
--pimolu-danger-foreground: var(--pimolu-color-white);
|
|
98
|
+
--pimolu-control-border: var(--pimolu-color-slate-500);
|
|
99
|
+
--pimolu-primary-soft: var(--pimolu-color-slate-100);
|
|
100
|
+
--pimolu-primary-soft-foreground: var(--pimolu-color-indigo-600);
|
|
101
|
+
}
|
|
102
|
+
[data-pimolu-theme=dark] {
|
|
103
|
+
color-scheme: dark;
|
|
104
|
+
--pimolu-background: var(--pimolu-color-slate-950);
|
|
105
|
+
--pimolu-foreground: var(--pimolu-color-slate-50);
|
|
106
|
+
--pimolu-surface: var(--pimolu-color-slate-900);
|
|
107
|
+
--pimolu-surface-foreground: var(--pimolu-color-slate-50);
|
|
108
|
+
--pimolu-muted: var(--pimolu-color-slate-800);
|
|
109
|
+
--pimolu-muted-foreground: var(--pimolu-color-slate-400);
|
|
110
|
+
--pimolu-border: var(--pimolu-color-slate-800);
|
|
111
|
+
--pimolu-primary: var(--pimolu-color-indigo-400);
|
|
112
|
+
--pimolu-primary-hover: var(--pimolu-color-indigo-500);
|
|
113
|
+
--pimolu-primary-foreground: var(--pimolu-color-slate-950);
|
|
114
|
+
--pimolu-focus-ring: var(--pimolu-color-indigo-400);
|
|
115
|
+
--pimolu-success: var(--pimolu-color-green-500);
|
|
116
|
+
--pimolu-success-hover: var(--pimolu-color-green-600);
|
|
117
|
+
--pimolu-success-foreground: var(--pimolu-color-slate-950);
|
|
118
|
+
--pimolu-warning: var(--pimolu-color-amber-500);
|
|
119
|
+
--pimolu-warning-hover: var(--pimolu-color-amber-600);
|
|
120
|
+
--pimolu-warning-foreground: var(--pimolu-color-slate-950);
|
|
121
|
+
--pimolu-danger: var(--pimolu-color-red-400);
|
|
122
|
+
--pimolu-danger-hover: var(--pimolu-color-red-500);
|
|
123
|
+
--pimolu-danger-foreground: var(--pimolu-color-slate-950);
|
|
124
|
+
--pimolu-control-border: var(--pimolu-color-slate-500);
|
|
125
|
+
--pimolu-primary-soft: var(--pimolu-color-slate-800);
|
|
126
|
+
--pimolu-primary-soft-foreground: var(--pimolu-color-indigo-400);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* src/themes.css */
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/* src/carousel-base.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-control-background: var(--pimolu-background);
|
|
4
|
+
--pimolu-control-foreground: var(--pimolu-foreground);
|
|
5
|
+
--pimolu-carousel-controls-center: 50%;
|
|
6
|
+
--pimolu-peek-slide-width: min(440px, 68vw);
|
|
7
|
+
--pimolu-carousel-thumbnail-aspect-ratio: 1 / 1;
|
|
8
|
+
}
|
|
9
|
+
.pimolu-carousel-root {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: grid;
|
|
12
|
+
gap: 12px;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
color: var(--pimolu-foreground);
|
|
17
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
18
|
+
--pimolu-carousel-gap: 16px;
|
|
19
|
+
--pimolu-carousel-per-view: 1;
|
|
20
|
+
}
|
|
21
|
+
.pimolu-carousel-root > .pimolu-carousel__viewport {
|
|
22
|
+
display: block;
|
|
23
|
+
overflow: visible;
|
|
24
|
+
border-radius: 0;
|
|
25
|
+
scroll-snap-type: none;
|
|
26
|
+
}
|
|
27
|
+
.pimolu-carousel-root > .pimolu-carousel__viewport[data-scroll=false] {
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
}
|
|
30
|
+
.pimolu-carousel__viewport {
|
|
31
|
+
position: relative;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
min-width: 0;
|
|
34
|
+
outline: none;
|
|
35
|
+
}
|
|
36
|
+
.pimolu-carousel__viewport:focus-visible {
|
|
37
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
38
|
+
outline-offset: 3px;
|
|
39
|
+
}
|
|
40
|
+
.pimolu-carousel__viewport[data-scroll=true] {
|
|
41
|
+
display: flex;
|
|
42
|
+
gap: var(--pimolu-carousel-gap, 16px);
|
|
43
|
+
overflow-x: auto;
|
|
44
|
+
overflow-y: hidden;
|
|
45
|
+
overscroll-behavior-x: contain;
|
|
46
|
+
scroll-behavior: smooth;
|
|
47
|
+
scroll-snap-type: x mandatory;
|
|
48
|
+
scrollbar-width: none;
|
|
49
|
+
}
|
|
50
|
+
.pimolu-carousel__viewport[data-scroll=true]::-webkit-scrollbar {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
.pimolu-carousel__slide {
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 480ms ease;
|
|
57
|
+
}
|
|
58
|
+
.pimolu-carousel__viewport[data-scroll=true] .pimolu-carousel__slide {
|
|
59
|
+
flex: 1 0 calc((100% - (var(--pimolu-carousel-per-view, 1) - 1) * var(--pimolu-carousel-gap, 16px)) / var(--pimolu-carousel-per-view, 1));
|
|
60
|
+
scroll-snap-align: start;
|
|
61
|
+
}
|
|
62
|
+
.pimolu-carousel__viewport[data-effect=peek] .pimolu-carousel__slide {
|
|
63
|
+
flex: 0 0 var(--pimolu-peek-slide-width, min(440px, 68vw));
|
|
64
|
+
scroll-snap-align: center;
|
|
65
|
+
}
|
|
66
|
+
.pimolu-carousel__control {
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: var(--pimolu-carousel-controls-center, 50%);
|
|
69
|
+
z-index: 20;
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
width: 2.5rem;
|
|
75
|
+
height: 2.5rem;
|
|
76
|
+
padding: 0;
|
|
77
|
+
border: 1px solid var(--pimolu-border, currentColor);
|
|
78
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
79
|
+
background: var(--pimolu-control-background, var(--pimolu-background, Canvas));
|
|
80
|
+
color: var(--pimolu-control-foreground, var(--pimolu-foreground));
|
|
81
|
+
box-shadow: var(--pimolu-shadow-raised, 0 2px 8px rgb(0 0 0 / 18%));
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
transform: translateY(-50%);
|
|
84
|
+
transition: background-color 150ms, opacity 150ms;
|
|
85
|
+
}
|
|
86
|
+
.pimolu-carousel__control--previous {
|
|
87
|
+
inset-inline-start: var(--pimolu-spacing-2, 8px);
|
|
88
|
+
}
|
|
89
|
+
.pimolu-carousel__control--next {
|
|
90
|
+
inset-inline-end: var(--pimolu-spacing-2, 8px);
|
|
91
|
+
}
|
|
92
|
+
.pimolu-carousel__control:hover:not(:disabled) {
|
|
93
|
+
background: var(--pimolu-muted, var(--pimolu-background, Canvas));
|
|
94
|
+
}
|
|
95
|
+
.pimolu-carousel__control:disabled {
|
|
96
|
+
opacity: 0.35;
|
|
97
|
+
cursor: default;
|
|
98
|
+
}
|
|
99
|
+
.pimolu-carousel__control:focus-visible {
|
|
100
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
101
|
+
outline-offset: 2px;
|
|
102
|
+
}
|
|
103
|
+
.pimolu-carousel__control svg {
|
|
104
|
+
display: block;
|
|
105
|
+
width: 1.25rem;
|
|
106
|
+
height: 1.25rem;
|
|
107
|
+
}
|
|
108
|
+
@media (max-width: 640px) {
|
|
109
|
+
[data-controls-mobile=hidden] .pimolu-carousel__control {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.pimolu-carousel__dots {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-wrap: wrap;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
gap: 2px;
|
|
119
|
+
min-width: 0;
|
|
120
|
+
}
|
|
121
|
+
.pimolu-carousel__dot {
|
|
122
|
+
display: inline-grid;
|
|
123
|
+
place-items: center;
|
|
124
|
+
box-sizing: border-box;
|
|
125
|
+
width: 1.5rem;
|
|
126
|
+
height: 1.5rem;
|
|
127
|
+
padding: 0;
|
|
128
|
+
border: 0;
|
|
129
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
130
|
+
background: transparent;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
.pimolu-carousel__dot::before {
|
|
134
|
+
content: "";
|
|
135
|
+
display: block;
|
|
136
|
+
width: 0.5rem;
|
|
137
|
+
height: 0.5rem;
|
|
138
|
+
border-radius: var(--pimolu-radius-full, 999px);
|
|
139
|
+
background: color-mix(in srgb, var(--pimolu-foreground, currentColor) 28%, transparent);
|
|
140
|
+
transition: width 150ms, background-color 150ms;
|
|
141
|
+
}
|
|
142
|
+
.pimolu-carousel__dot[data-active=true]::before {
|
|
143
|
+
width: 1.25rem;
|
|
144
|
+
background: var(--pimolu-primary, var(--pimolu-foreground, currentColor));
|
|
145
|
+
}
|
|
146
|
+
.pimolu-carousel__dot:focus-visible {
|
|
147
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
148
|
+
outline-offset: 2px;
|
|
149
|
+
}
|
|
150
|
+
.pimolu-carousel__thumbnails {
|
|
151
|
+
display: flex;
|
|
152
|
+
gap: 8px;
|
|
153
|
+
min-width: 0;
|
|
154
|
+
overflow-x: auto;
|
|
155
|
+
scrollbar-width: none;
|
|
156
|
+
}
|
|
157
|
+
.pimolu-carousel__thumbnails::-webkit-scrollbar {
|
|
158
|
+
display: none;
|
|
159
|
+
}
|
|
160
|
+
.pimolu-carousel__thumbnail {
|
|
161
|
+
flex: 0 0 auto;
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
width: 72px;
|
|
164
|
+
padding: 2px;
|
|
165
|
+
border: 2px solid transparent;
|
|
166
|
+
border-radius: calc(var(--pimolu-radius-sm, 6px) + 4px);
|
|
167
|
+
background: transparent;
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
opacity: 0.6;
|
|
170
|
+
transition: opacity 150ms, border-color 150ms;
|
|
171
|
+
}
|
|
172
|
+
.pimolu-carousel__thumbnail img {
|
|
173
|
+
display: block;
|
|
174
|
+
width: 100%;
|
|
175
|
+
height: auto;
|
|
176
|
+
aspect-ratio: var(--pimolu-carousel-thumbnail-aspect-ratio, 1 / 1);
|
|
177
|
+
border-radius: var(--pimolu-radius-sm, 6px);
|
|
178
|
+
object-fit: cover;
|
|
179
|
+
}
|
|
180
|
+
.pimolu-carousel__thumbnail[data-active=true] {
|
|
181
|
+
border-color: var(--pimolu-primary);
|
|
182
|
+
opacity: 1;
|
|
183
|
+
}
|
|
184
|
+
.pimolu-carousel__thumbnail:hover {
|
|
185
|
+
opacity: 1;
|
|
186
|
+
}
|
|
187
|
+
.pimolu-carousel__thumbnail:focus-visible {
|
|
188
|
+
outline: 2px solid var(--pimolu-focus-ring, currentColor);
|
|
189
|
+
outline-offset: 2px;
|
|
190
|
+
}
|
|
191
|
+
.pimolu-carousel__live {
|
|
192
|
+
position: absolute;
|
|
193
|
+
width: 1px;
|
|
194
|
+
height: 1px;
|
|
195
|
+
margin: -1px;
|
|
196
|
+
padding: 0;
|
|
197
|
+
overflow: hidden;
|
|
198
|
+
clip: rect(0 0 0 0);
|
|
199
|
+
white-space: nowrap;
|
|
200
|
+
border: 0;
|
|
201
|
+
}
|
|
202
|
+
@media (prefers-reduced-motion: reduce) {
|
|
203
|
+
.pimolu-carousel__viewport[data-scroll=true] {
|
|
204
|
+
scroll-behavior: auto;
|
|
205
|
+
}
|
|
206
|
+
.pimolu-carousel__slide,
|
|
207
|
+
.pimolu-carousel__control,
|
|
208
|
+
.pimolu-carousel__dot::before,
|
|
209
|
+
.pimolu-carousel__thumbnail {
|
|
210
|
+
transition: none;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
@media (forced-colors: active) {
|
|
214
|
+
.pimolu-carousel__control {
|
|
215
|
+
border-color: CanvasText;
|
|
216
|
+
background: Canvas;
|
|
217
|
+
color: CanvasText;
|
|
218
|
+
box-shadow: none;
|
|
219
|
+
}
|
|
220
|
+
.pimolu-carousel__dot::before {
|
|
221
|
+
background: CanvasText;
|
|
222
|
+
}
|
|
223
|
+
.pimolu-carousel__dot[data-active=true]::before {
|
|
224
|
+
background: Highlight;
|
|
225
|
+
}
|
|
226
|
+
.pimolu-carousel__thumbnail {
|
|
227
|
+
border-color: CanvasText;
|
|
228
|
+
}
|
|
229
|
+
.pimolu-carousel__thumbnail[data-active=true] {
|
|
230
|
+
border-color: Highlight;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* src/thumbnail-carousel.css */
|
|
235
|
+
.pimolu-thumbnail-carousel .pimolu-carousel__viewport {
|
|
236
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
237
|
+
overflow: hidden;
|
|
238
|
+
}
|
|
239
|
+
.pimolu-thumbnail-carousel .pimolu-carousel__slide img {
|
|
240
|
+
display: block;
|
|
241
|
+
width: 100%;
|
|
242
|
+
height: auto;
|
|
243
|
+
object-fit: cover;
|
|
244
|
+
}
|
package/dist/time-picker.css
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
min-height: var(--pimolu-time-picker-height);
|
|
33
33
|
padding-inline: var(--pimolu-time-picker-padding);
|
|
34
34
|
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
35
|
-
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
|
|
35
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
|
|
36
36
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
37
37
|
box-shadow: var(--pimolu-time-picker-elevation);
|
|
38
38
|
transition:
|
package/dist/toast.css
CHANGED
|
@@ -1,19 +1,200 @@
|
|
|
1
|
+
/* src/spinner.css */
|
|
2
|
+
.pimolu-spinner {
|
|
3
|
+
--pimolu-spinner-size: 20px;
|
|
4
|
+
--pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
|
|
5
|
+
--pimolu-spinner-color: currentColor;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
flex: 0 0 auto;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
color: var(--pimolu-spinner-color);
|
|
13
|
+
line-height: 1;
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
user-select: none;
|
|
16
|
+
}
|
|
17
|
+
.pimolu-spinner--xs {
|
|
18
|
+
--pimolu-spinner-size: 12px;
|
|
19
|
+
}
|
|
20
|
+
.pimolu-spinner--sm {
|
|
21
|
+
--pimolu-spinner-size: 16px;
|
|
22
|
+
}
|
|
23
|
+
.pimolu-spinner--md {
|
|
24
|
+
--pimolu-spinner-size: 20px;
|
|
25
|
+
}
|
|
26
|
+
.pimolu-spinner--lg {
|
|
27
|
+
--pimolu-spinner-size: 24px;
|
|
28
|
+
}
|
|
29
|
+
.pimolu-spinner--xl {
|
|
30
|
+
--pimolu-spinner-size: 32px;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-spinner--inherit {
|
|
33
|
+
--pimolu-spinner-color: currentColor;
|
|
34
|
+
}
|
|
35
|
+
.pimolu-spinner--neutral {
|
|
36
|
+
--pimolu-spinner-color: var(--pimolu-foreground, currentColor);
|
|
37
|
+
}
|
|
38
|
+
.pimolu-spinner--primary {
|
|
39
|
+
--pimolu-spinner-color: var(--pimolu-primary, currentColor);
|
|
40
|
+
}
|
|
41
|
+
.pimolu-spinner--secondary {
|
|
42
|
+
--pimolu-spinner-color: var(--pimolu-secondary, currentColor);
|
|
43
|
+
}
|
|
44
|
+
.pimolu-spinner--success {
|
|
45
|
+
--pimolu-spinner-color: var(--pimolu-success, currentColor);
|
|
46
|
+
}
|
|
47
|
+
.pimolu-spinner--warning {
|
|
48
|
+
--pimolu-spinner-color: var(--pimolu-warning, currentColor);
|
|
49
|
+
}
|
|
50
|
+
.pimolu-spinner--danger {
|
|
51
|
+
--pimolu-spinner-color: var(--pimolu-danger, currentColor);
|
|
52
|
+
}
|
|
53
|
+
.pimolu-spinner__visual {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
flex: 0 0 auto;
|
|
58
|
+
width: var(--pimolu-spinner-size);
|
|
59
|
+
height: var(--pimolu-spinner-size);
|
|
60
|
+
}
|
|
61
|
+
.pimolu-spinner__svg {
|
|
62
|
+
display: block;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
overflow: visible;
|
|
66
|
+
transform-origin: center;
|
|
67
|
+
animation: pimolu-spinner-rotate 1s linear infinite;
|
|
68
|
+
}
|
|
69
|
+
.pimolu-spinner__track,
|
|
70
|
+
.pimolu-spinner__indicator {
|
|
71
|
+
fill: none;
|
|
72
|
+
stroke: currentColor;
|
|
73
|
+
stroke-width: 2.5;
|
|
74
|
+
}
|
|
75
|
+
.pimolu-spinner__track {
|
|
76
|
+
opacity: 0.18;
|
|
77
|
+
}
|
|
78
|
+
.pimolu-spinner__indicator {
|
|
79
|
+
stroke-linecap: round;
|
|
80
|
+
}
|
|
81
|
+
.pimolu-spinner--circular .pimolu-spinner__indicator {
|
|
82
|
+
stroke-dasharray: 16 57;
|
|
83
|
+
}
|
|
84
|
+
.pimolu-spinner--arc .pimolu-spinner__indicator {
|
|
85
|
+
stroke-dasharray: 42 57;
|
|
86
|
+
}
|
|
87
|
+
.pimolu-spinner--arc .pimolu-spinner__track {
|
|
88
|
+
opacity: 0;
|
|
89
|
+
}
|
|
90
|
+
.pimolu-spinner--arc .pimolu-spinner__svg {
|
|
91
|
+
animation-duration: 1.3s;
|
|
92
|
+
}
|
|
93
|
+
@keyframes pimolu-spinner-rotate {
|
|
94
|
+
from {
|
|
95
|
+
transform: rotate(0deg);
|
|
96
|
+
}
|
|
97
|
+
to {
|
|
98
|
+
transform: rotate(360deg);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
.pimolu-spinner--dots .pimolu-spinner__visual {
|
|
102
|
+
width: calc(var(--pimolu-spinner-size) * 1.5);
|
|
103
|
+
gap: calc(var(--pimolu-spinner-size) * 0.14);
|
|
104
|
+
}
|
|
105
|
+
.pimolu-spinner__dot {
|
|
106
|
+
display: block;
|
|
107
|
+
flex: 0 0 auto;
|
|
108
|
+
width: var(--pimolu-spinner-dot-size);
|
|
109
|
+
height: var(--pimolu-spinner-dot-size);
|
|
110
|
+
border-radius: 50%;
|
|
111
|
+
background: currentColor;
|
|
112
|
+
animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
|
|
113
|
+
}
|
|
114
|
+
.pimolu-spinner__dot:nth-child(1) {
|
|
115
|
+
animation-delay: -0.32s;
|
|
116
|
+
}
|
|
117
|
+
.pimolu-spinner__dot:nth-child(2) {
|
|
118
|
+
animation-delay: -0.16s;
|
|
119
|
+
}
|
|
120
|
+
.pimolu-spinner__dot:nth-child(3) {
|
|
121
|
+
animation-delay: 0s;
|
|
122
|
+
}
|
|
123
|
+
@keyframes pimolu-spinner-dot {
|
|
124
|
+
0%, 80%, 100% {
|
|
125
|
+
opacity: 0.35;
|
|
126
|
+
transform: translateY(0);
|
|
127
|
+
}
|
|
128
|
+
40% {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
transform: translateY(-25%);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
.pimolu-spinner__label {
|
|
134
|
+
position: absolute;
|
|
135
|
+
width: 1px;
|
|
136
|
+
height: 1px;
|
|
137
|
+
padding: 0;
|
|
138
|
+
margin: -1px;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
clip: rect(0, 0, 0, 0);
|
|
141
|
+
clip-path: inset(50%);
|
|
142
|
+
white-space: nowrap;
|
|
143
|
+
border: 0;
|
|
144
|
+
}
|
|
145
|
+
@media (prefers-reduced-motion: reduce) {
|
|
146
|
+
.pimolu-spinner__svg,
|
|
147
|
+
.pimolu-spinner__dot {
|
|
148
|
+
animation: none;
|
|
149
|
+
}
|
|
150
|
+
.pimolu-spinner__dot {
|
|
151
|
+
opacity: 1;
|
|
152
|
+
transform: none;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
@media (forced-colors: active) {
|
|
156
|
+
.pimolu-spinner {
|
|
157
|
+
color: CanvasText;
|
|
158
|
+
}
|
|
159
|
+
.pimolu-spinner__track {
|
|
160
|
+
opacity: 0.4;
|
|
161
|
+
}
|
|
162
|
+
.pimolu-spinner__dot {
|
|
163
|
+
background: currentColor;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
1
167
|
/* src/toast.css */
|
|
2
168
|
.pimolu-toaster {
|
|
169
|
+
--pimolu-toast-width: 24rem;
|
|
170
|
+
--pimolu-toast-padding: 14px;
|
|
171
|
+
--pimolu-toast-duration: 180ms;
|
|
172
|
+
--pimolu-toast-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
3
173
|
position: fixed;
|
|
4
174
|
z-index: 60;
|
|
5
175
|
display: grid;
|
|
6
|
-
gap:
|
|
7
|
-
width: min(
|
|
176
|
+
gap: var(--pimolu-spacing-3, 12px);
|
|
177
|
+
width: min(var(--pimolu-toast-width, 24rem), calc(100vw - 32px));
|
|
178
|
+
max-height: calc(100dvh - 32px);
|
|
179
|
+
overflow-y: auto;
|
|
180
|
+
overscroll-behavior: contain;
|
|
8
181
|
pointer-events: none;
|
|
9
182
|
}
|
|
183
|
+
.pimolu-toaster[data-position=top-left] {
|
|
184
|
+
inset-block-start: 16px;
|
|
185
|
+
inset-inline-start: 16px;
|
|
186
|
+
}
|
|
187
|
+
.pimolu-toaster[data-position=bottom-left] {
|
|
188
|
+
inset-block-end: 16px;
|
|
189
|
+
inset-inline-start: 16px;
|
|
190
|
+
}
|
|
10
191
|
.pimolu-toaster[data-position=top-right] {
|
|
11
192
|
inset-block-start: 16px;
|
|
12
193
|
inset-inline-end: 16px;
|
|
13
194
|
}
|
|
14
195
|
.pimolu-toaster[data-position=top-center] {
|
|
15
196
|
inset-block-start: 16px;
|
|
16
|
-
|
|
197
|
+
left: 50%;
|
|
17
198
|
transform: translateX(-50%);
|
|
18
199
|
}
|
|
19
200
|
.pimolu-toaster[data-position=bottom-right] {
|
|
@@ -22,7 +203,7 @@
|
|
|
22
203
|
}
|
|
23
204
|
.pimolu-toaster[data-position=bottom-center] {
|
|
24
205
|
inset-block-end: 16px;
|
|
25
|
-
|
|
206
|
+
left: 50%;
|
|
26
207
|
transform: translateX(-50%);
|
|
27
208
|
}
|
|
28
209
|
.pimolu-toast {
|
|
@@ -32,7 +213,7 @@
|
|
|
32
213
|
justify-content: space-between;
|
|
33
214
|
gap: 12px;
|
|
34
215
|
box-sizing: border-box;
|
|
35
|
-
padding:
|
|
216
|
+
padding: var(--pimolu-toast-padding, 14px);
|
|
36
217
|
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
37
218
|
border-inline-start: 3px solid var(--pimolu-toast-tone);
|
|
38
219
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
@@ -41,7 +222,23 @@
|
|
|
41
222
|
box-shadow: var( --pimolu-shadow-raised, none );
|
|
42
223
|
font-family: var(--pimolu-font-body, inherit);
|
|
43
224
|
pointer-events: auto;
|
|
44
|
-
animation: pimolu-toast-in
|
|
225
|
+
animation: pimolu-toast-in var(--pimolu-toast-duration, 180ms) var(--pimolu-toast-easing, cubic-bezier(0.16, 1, 0.3, 1));
|
|
226
|
+
}
|
|
227
|
+
.pimolu-toast--info,
|
|
228
|
+
.pimolu-toast--loading {
|
|
229
|
+
--pimolu-toast-tone: var(--pimolu-primary);
|
|
230
|
+
}
|
|
231
|
+
.pimolu-toast__icon {
|
|
232
|
+
display: inline-grid;
|
|
233
|
+
place-items: center;
|
|
234
|
+
flex: none;
|
|
235
|
+
width: 20px;
|
|
236
|
+
height: 20px;
|
|
237
|
+
margin-block-start: 1px;
|
|
238
|
+
color: var(--pimolu-toast-tone);
|
|
239
|
+
}
|
|
240
|
+
.pimolu-toast--default .pimolu-toast__icon {
|
|
241
|
+
color: var(--pimolu-muted-foreground);
|
|
45
242
|
}
|
|
46
243
|
.pimolu-toast--success {
|
|
47
244
|
--pimolu-toast-tone: var(--pimolu-success, #15803d);
|
|
@@ -56,6 +253,7 @@
|
|
|
56
253
|
display: grid;
|
|
57
254
|
gap: 2px;
|
|
58
255
|
min-width: 0;
|
|
256
|
+
flex: 1;
|
|
59
257
|
}
|
|
60
258
|
.pimolu-toast__title {
|
|
61
259
|
margin: 0;
|
|
@@ -76,6 +274,9 @@
|
|
|
76
274
|
align-items: center;
|
|
77
275
|
gap: 4px;
|
|
78
276
|
flex: none;
|
|
277
|
+
flex-wrap: wrap;
|
|
278
|
+
justify-content: flex-end;
|
|
279
|
+
max-width: 45%;
|
|
79
280
|
}
|
|
80
281
|
.pimolu-toast__action {
|
|
81
282
|
padding: 2px 6px;
|
|
@@ -87,15 +288,21 @@
|
|
|
87
288
|
font-size: 0.8125rem;
|
|
88
289
|
font-weight: 600;
|
|
89
290
|
cursor: pointer;
|
|
291
|
+
overflow-wrap: anywhere;
|
|
90
292
|
}
|
|
91
293
|
.pimolu-toast__action:hover {
|
|
92
294
|
background: var(--pimolu-muted);
|
|
93
295
|
}
|
|
296
|
+
.pimolu-toast__action:disabled {
|
|
297
|
+
opacity: 0.5;
|
|
298
|
+
cursor: not-allowed;
|
|
299
|
+
}
|
|
94
300
|
.pimolu-toast__close {
|
|
95
301
|
display: inline-grid;
|
|
96
302
|
place-items: center;
|
|
97
|
-
width:
|
|
98
|
-
height:
|
|
303
|
+
width: 28px;
|
|
304
|
+
height: 28px;
|
|
305
|
+
flex: none;
|
|
99
306
|
padding: 0;
|
|
100
307
|
border: 0;
|
|
101
308
|
border-radius: var(--pimolu-radius-sm, 4px);
|
|
@@ -104,6 +311,16 @@
|
|
|
104
311
|
line-height: 0;
|
|
105
312
|
cursor: pointer;
|
|
106
313
|
}
|
|
314
|
+
@media (pointer: coarse) {
|
|
315
|
+
.pimolu-toast__action,
|
|
316
|
+
.pimolu-toast__close {
|
|
317
|
+
min-width: 44px;
|
|
318
|
+
min-height: 44px;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
.pimolu-toaster:empty {
|
|
322
|
+
pointer-events: none;
|
|
323
|
+
}
|
|
107
324
|
.pimolu-toast__close:hover {
|
|
108
325
|
background: var(--pimolu-muted);
|
|
109
326
|
color: var(--pimolu-foreground);
|