@pimolu/web-styles 0.1.0-beta.1 → 0.1.0-beta.10
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/code-block.css
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
tab-size: 2;
|
|
67
67
|
}
|
|
68
68
|
.pimolu-codeblock__code {
|
|
69
|
-
display:
|
|
69
|
+
display: grid;
|
|
70
70
|
box-sizing: border-box;
|
|
71
71
|
min-width: max-content;
|
|
72
72
|
background: transparent;
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
color: color-mix(in srgb, var(--pimolu-success, #15803d) 78%, var(--pimolu-foreground, #0f172a));
|
|
116
116
|
}
|
|
117
117
|
.pimolu-codeblock__token--number {
|
|
118
|
-
color: color-mix(in srgb, var(--pimolu-warning, #b45309)
|
|
118
|
+
color: color-mix(in srgb, var(--pimolu-warning, #b45309) 55%, var(--pimolu-foreground, #0f172a));
|
|
119
119
|
}
|
|
120
120
|
.pimolu-codeblock__token--keyword {
|
|
121
121
|
color: var(--pimolu-primary, #4f46e5);
|
package/dist/color-picker.css
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
min-width: 9rem;
|
|
27
27
|
min-height: 40px;
|
|
28
28
|
padding: 0 12px;
|
|
29
|
-
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #d4d4d8);
|
|
29
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #d4d4d8));
|
|
30
30
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
31
31
|
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
32
32
|
color: var(--pimolu-foreground);
|
package/dist/combobox.css
CHANGED
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
padding-inline-end: calc(var(--pimolu-combobox-padding-x) + 28px);
|
|
97
97
|
background: var(--pimolu-combobox-surface);
|
|
98
98
|
color: var(--pimolu-foreground);
|
|
99
|
-
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
99
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
|
|
100
100
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
101
101
|
font-family: inherit;
|
|
102
102
|
font-size: var(--pimolu-combobox-font-size);
|
package/dist/command.css
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
:where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
|
|
21
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
/* src/command.css */
|
|
2
39
|
.pimolu-command {
|
|
3
40
|
display: flex;
|
|
@@ -0,0 +1,251 @@
|
|
|
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/coverflow-carousel.css */
|
|
235
|
+
.pimolu-coverflow-carousel .pimolu-carousel__viewport {
|
|
236
|
+
height: clamp(240px, 42vw, 380px);
|
|
237
|
+
perspective: 1200px;
|
|
238
|
+
transform-style: preserve-3d;
|
|
239
|
+
}
|
|
240
|
+
.pimolu-coverflow-carousel .pimolu-carousel__slide {
|
|
241
|
+
position: absolute;
|
|
242
|
+
inset-block: 0;
|
|
243
|
+
inset-inline-start: 50%;
|
|
244
|
+
width: min(62%, 520px);
|
|
245
|
+
margin-inline-start: calc(min(62%, 520px) / -2);
|
|
246
|
+
transform-origin: center center;
|
|
247
|
+
backface-visibility: hidden;
|
|
248
|
+
}
|
|
249
|
+
.pimolu-coverflow-carousel .pimolu-carousel__slide[data-active=true] {
|
|
250
|
+
z-index: 10;
|
|
251
|
+
}
|
package/dist/currency-input.css
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
min-height: var(--pimolu-currency-input-height);
|
|
37
37
|
padding-inline: var(--pimolu-currency-input-padding);
|
|
38
38
|
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
39
|
-
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
|
|
39
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
|
|
40
40
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
41
41
|
box-shadow: var(--pimolu-currency-input-elevation);
|
|
42
42
|
transition:
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/* src/dashboard-layout.css */
|
|
2
2
|
.pimolu-dashboard-layout {
|
|
3
3
|
--pimolu-dashboard-sidebar-width: 16rem;
|
|
4
|
+
--pimolu-dashboard-sidebar-track: var(--pimolu-dashboard-sidebar-width);
|
|
4
5
|
--pimolu-dashboard-aside-width: 20rem;
|
|
5
6
|
display: grid;
|
|
6
|
-
grid-template-columns: var(--pimolu-dashboard-sidebar-
|
|
7
|
+
grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
|
|
7
8
|
grid-template-areas: "sidebar main";
|
|
8
9
|
box-sizing: border-box;
|
|
10
|
+
min-width: 0;
|
|
9
11
|
min-height: 100dvh;
|
|
10
12
|
background: var(--pimolu-background);
|
|
11
13
|
color: var(--pimolu-foreground);
|
|
@@ -16,28 +18,21 @@
|
|
|
16
18
|
grid-template-areas: "main";
|
|
17
19
|
}
|
|
18
20
|
.pimolu-dashboard-layout[data-aside=true] {
|
|
19
|
-
grid-template-columns: var(--pimolu-dashboard-sidebar-
|
|
21
|
+
grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
|
|
20
22
|
grid-template-areas: "sidebar main aside";
|
|
21
23
|
}
|
|
22
24
|
.pimolu-dashboard-layout[data-sidebar=false][data-aside=true] {
|
|
23
25
|
grid-template-columns: minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
|
|
24
26
|
grid-template-areas: "main aside";
|
|
25
27
|
}
|
|
26
|
-
.pimolu-dashboard-layout:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
27
|
-
--pimolu-dashboard-sidebar-
|
|
28
|
-
grid-template-columns: 3.75rem minmax(0, 1fr);
|
|
29
|
-
}
|
|
30
|
-
.pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
31
|
-
grid-template-columns: 3.75rem minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
|
|
28
|
+
.pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
|
|
29
|
+
--pimolu-dashboard-sidebar-track: 3.75rem;
|
|
32
30
|
}
|
|
33
|
-
@container (max-width:
|
|
31
|
+
@container (max-width: 900px) {
|
|
34
32
|
.pimolu-dashboard-layout[data-aside=true] {
|
|
35
|
-
grid-template-columns: var(--pimolu-dashboard-sidebar-
|
|
33
|
+
grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
|
|
36
34
|
grid-template-areas: "sidebar main" "aside aside";
|
|
37
35
|
}
|
|
38
|
-
.pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
39
|
-
grid-template-columns: 3.75rem minmax(0, 1fr);
|
|
40
|
-
}
|
|
41
36
|
.pimolu-dashboard-layout[data-sidebar=false][data-aside=true] {
|
|
42
37
|
grid-template-columns: minmax(0, 1fr);
|
|
43
38
|
grid-template-areas: "main" "aside";
|
|
@@ -48,11 +43,38 @@
|
|
|
48
43
|
}
|
|
49
44
|
}
|
|
50
45
|
@container (max-width: 720px) {
|
|
51
|
-
.pimolu-dashboard-layout {
|
|
46
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
|
|
47
|
+
display: flex;
|
|
48
|
+
min-height: 40px;
|
|
49
|
+
padding-block: 0;
|
|
50
|
+
}
|
|
51
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
|
|
52
|
+
position: absolute;
|
|
53
|
+
}
|
|
54
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar,
|
|
55
|
+
.pimolu-dashboard-layout[data-sticky-sidebar=true] > .pimolu-dashboard-layout__sidebar {
|
|
56
|
+
position: static;
|
|
57
|
+
max-height: none;
|
|
58
|
+
overflow: visible;
|
|
59
|
+
border-inline-end: 0;
|
|
60
|
+
border-block-end: 1px solid var(--pimolu-border);
|
|
61
|
+
}
|
|
62
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar > .pimolu-sidebar {
|
|
63
|
+
width: 100%;
|
|
64
|
+
min-height: auto;
|
|
65
|
+
border-inline-end: 0;
|
|
66
|
+
}
|
|
67
|
+
.pimolu-dashboard-layout__content,
|
|
68
|
+
.pimolu-dashboard-layout__aside {
|
|
69
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
70
|
+
}
|
|
71
|
+
.pimolu-dashboard-layout,
|
|
72
|
+
.pimolu-dashboard-layout[data-aside],
|
|
73
|
+
.pimolu-dashboard-layout[data-sidebar][data-aside] {
|
|
52
74
|
grid-template-columns: minmax(0, 1fr);
|
|
53
75
|
grid-template-areas: "sidebar" "main";
|
|
54
76
|
}
|
|
55
|
-
.pimolu-dashboard-layout[data-aside=true] {
|
|
77
|
+
.pimolu-dashboard-layout[data-sidebar][data-aside=true] {
|
|
56
78
|
grid-template-areas: "sidebar" "main" "aside";
|
|
57
79
|
}
|
|
58
80
|
.pimolu-dashboard-layout[data-sidebar=false] {
|
|
@@ -106,9 +128,9 @@
|
|
|
106
128
|
border-inline-start: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
107
129
|
background: var(--pimolu-surface);
|
|
108
130
|
}
|
|
109
|
-
@media (max-width:
|
|
131
|
+
@media (max-width: 900px) {
|
|
110
132
|
.pimolu-dashboard-layout[data-aside=true] {
|
|
111
|
-
grid-template-columns: var(--pimolu-dashboard-sidebar-
|
|
133
|
+
grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
|
|
112
134
|
grid-template-areas: "sidebar main" "aside aside";
|
|
113
135
|
}
|
|
114
136
|
.pimolu-dashboard-layout[data-sidebar=false][data-aside=true] {
|
|
@@ -120,23 +142,43 @@
|
|
|
120
142
|
border-block-start: 1px solid var(--pimolu-border);
|
|
121
143
|
}
|
|
122
144
|
}
|
|
123
|
-
@media (max-width:
|
|
124
|
-
.pimolu-dashboard-layout {
|
|
145
|
+
@media (max-width: 720px) {
|
|
146
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
|
|
147
|
+
display: flex;
|
|
148
|
+
min-height: 40px;
|
|
149
|
+
padding-block: 0;
|
|
150
|
+
}
|
|
151
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
|
|
152
|
+
position: absolute;
|
|
153
|
+
}
|
|
154
|
+
.pimolu-dashboard-layout[data-sticky-sidebar=true] > .pimolu-dashboard-layout__sidebar {
|
|
155
|
+
position: static;
|
|
156
|
+
max-height: none;
|
|
157
|
+
overflow: visible;
|
|
158
|
+
}
|
|
159
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar > .pimolu-sidebar {
|
|
160
|
+
width: 100%;
|
|
161
|
+
min-height: auto;
|
|
162
|
+
border-inline-end: 0;
|
|
163
|
+
}
|
|
164
|
+
.pimolu-dashboard-layout,
|
|
165
|
+
.pimolu-dashboard-layout[data-aside],
|
|
166
|
+
.pimolu-dashboard-layout[data-sidebar][data-aside] {
|
|
125
167
|
grid-template-columns: minmax(0, 1fr);
|
|
126
168
|
grid-template-areas: "sidebar" "main";
|
|
127
169
|
}
|
|
128
|
-
.pimolu-dashboard-layout[data-aside=true] {
|
|
170
|
+
.pimolu-dashboard-layout[data-sidebar][data-aside=true] {
|
|
129
171
|
grid-template-areas: "sidebar" "main" "aside";
|
|
130
172
|
}
|
|
131
|
-
.pimolu-dashboard-layout:has(.pimolu-sidebar[data-collapsed=true]),
|
|
132
|
-
.pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
173
|
+
.pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]),
|
|
174
|
+
.pimolu-dashboard-layout[data-aside=true]:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
|
|
133
175
|
grid-template-columns: minmax(0, 1fr);
|
|
134
176
|
}
|
|
135
|
-
.pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] {
|
|
177
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] {
|
|
136
178
|
width: 100%;
|
|
137
179
|
min-height: 60px;
|
|
138
180
|
}
|
|
139
|
-
.pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
|
|
181
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
|
|
140
182
|
display: none;
|
|
141
183
|
}
|
|
142
184
|
.pimolu-dashboard-layout[data-sidebar=false] {
|
|
@@ -166,15 +208,37 @@
|
|
|
166
208
|
}
|
|
167
209
|
}
|
|
168
210
|
@container (max-width: 720px) {
|
|
169
|
-
.pimolu-dashboard-layout:has(.pimolu-sidebar[data-collapsed=true]),
|
|
170
|
-
.pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
211
|
+
.pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]),
|
|
212
|
+
.pimolu-dashboard-layout[data-aside=true]:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
|
|
171
213
|
grid-template-columns: minmax(0, 1fr);
|
|
172
214
|
}
|
|
173
|
-
.pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] {
|
|
215
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] {
|
|
174
216
|
width: 100%;
|
|
175
217
|
min-height: 60px;
|
|
176
218
|
}
|
|
177
|
-
.pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
|
|
219
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
|
|
220
|
+
display: none;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
@container (max-width: 720px) {
|
|
224
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__expanded {
|
|
225
|
+
display: contents;
|
|
226
|
+
}
|
|
227
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__compact {
|
|
178
228
|
display: none;
|
|
179
229
|
}
|
|
230
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header[data-has-collapsed-content] {
|
|
231
|
+
justify-content: flex-start;
|
|
232
|
+
padding-inline: 8px 100px;
|
|
233
|
+
}
|
|
234
|
+
.pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer[data-has-collapsed-content] {
|
|
235
|
+
position: absolute;
|
|
236
|
+
inset-inline-end: 64px;
|
|
237
|
+
inset-block-start: 12px;
|
|
238
|
+
margin: 0;
|
|
239
|
+
padding: 0;
|
|
240
|
+
border: 0;
|
|
241
|
+
height: 40px;
|
|
242
|
+
align-items: center;
|
|
243
|
+
}
|
|
180
244
|
}
|
package/dist/date-picker.css
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
|
|
45
45
|
color: var(--pimolu-foreground, #0f172a);
|
|
46
46
|
text-align: start;
|
|
47
|
-
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
|
|
47
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
|
|
48
48
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
49
49
|
font: inherit;
|
|
50
50
|
font-size: 0.875rem;
|
package/dist/docs-layout.css
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
font-family: var(--pimolu-font-body, inherit);
|
|
14
14
|
}
|
|
15
15
|
.pimolu-docs-layout__skip-link {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
pointer-events: none;
|
|
16
18
|
position: fixed;
|
|
17
19
|
inset-block-start: var(--pimolu-spacing-3, 12px);
|
|
18
20
|
inset-inline-start: var(--pimolu-spacing-3, 12px);
|
|
@@ -30,6 +32,8 @@
|
|
|
30
32
|
transition: transform 150ms ease;
|
|
31
33
|
}
|
|
32
34
|
.pimolu-docs-layout__skip-link:focus-visible {
|
|
35
|
+
opacity: 1;
|
|
36
|
+
pointer-events: auto;
|
|
33
37
|
transform: translateY(0);
|
|
34
38
|
outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary));
|
|
35
39
|
outline-offset: 2px;
|
|
@@ -103,6 +107,11 @@
|
|
|
103
107
|
scrollbar-gutter: stable;
|
|
104
108
|
}
|
|
105
109
|
@media (max-width: 1180px) {
|
|
110
|
+
.pimolu-docs-layout[data-sticky=true][data-toc=true] > .pimolu-docs-layout__body > .pimolu-docs-layout__sidebar {
|
|
111
|
+
position: static;
|
|
112
|
+
max-height: none;
|
|
113
|
+
overflow: visible;
|
|
114
|
+
}
|
|
106
115
|
.pimolu-docs-layout__body {
|
|
107
116
|
grid-template-columns: var(--pimolu-docs-sidebar-width) minmax(0, 1fr);
|
|
108
117
|
grid-template-areas: "sidebar main" "toc toc";
|
package/dist/form-field.css
CHANGED
|
@@ -1,4 +1,54 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
:where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
|
|
21
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
/* src/form-field.css */
|
|
39
|
+
.pimolu-form-message--error {
|
|
40
|
+
animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
41
|
+
}
|
|
42
|
+
@keyframes pimolu-field-feedback-in {
|
|
43
|
+
from {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transform: translateY(-3px);
|
|
46
|
+
}
|
|
47
|
+
to {
|
|
48
|
+
opacity: 1;
|
|
49
|
+
transform: translateY(0);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
2
52
|
.pimolu-form-field {
|
|
3
53
|
display: grid;
|
|
4
54
|
gap: 6px;
|
package/dist/form.css
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
:where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
|
|
21
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
/* src/form.css */
|
|
2
39
|
.pimolu-form {
|
|
3
40
|
display: grid;
|
|
@@ -11,12 +48,23 @@
|
|
|
11
48
|
justify-self: start;
|
|
12
49
|
}
|
|
13
50
|
.pimolu-form__error {
|
|
51
|
+
animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
14
52
|
margin: 0;
|
|
15
53
|
color: var(--pimolu-danger, #dc2626);
|
|
16
54
|
font-size: 0.8125rem;
|
|
17
55
|
line-height: 1.4;
|
|
18
56
|
overflow-wrap: anywhere;
|
|
19
57
|
}
|
|
58
|
+
@keyframes pimolu-form-feedback-in {
|
|
59
|
+
from {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
transform: translateY(-3px);
|
|
62
|
+
}
|
|
63
|
+
to {
|
|
64
|
+
opacity: 1;
|
|
65
|
+
transform: translateY(0);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
20
68
|
@media (forced-colors: active) {
|
|
21
69
|
.pimolu-form__error {
|
|
22
70
|
color: LinkText;
|