@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
|
@@ -0,0 +1,261 @@
|
|
|
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/arc-carousel.css */
|
|
235
|
+
.pimolu-arc-carousel .pimolu-carousel__viewport {
|
|
236
|
+
height: clamp(260px, 44vw, 400px);
|
|
237
|
+
}
|
|
238
|
+
.pimolu-arc-carousel .pimolu-carousel__slide {
|
|
239
|
+
position: absolute;
|
|
240
|
+
inset-block-end: 0;
|
|
241
|
+
inset-inline-start: 50%;
|
|
242
|
+
width: min(42%, 340px);
|
|
243
|
+
height: 82%;
|
|
244
|
+
margin-inline-start: calc(min(42%, 340px) / -2);
|
|
245
|
+
border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
|
|
246
|
+
border: 1px solid var(--pimolu-border);
|
|
247
|
+
background: var(--pimolu-surface);
|
|
248
|
+
overflow: hidden;
|
|
249
|
+
transform-origin: center bottom;
|
|
250
|
+
}
|
|
251
|
+
@media (max-width: 640px) {
|
|
252
|
+
.pimolu-arc-carousel .pimolu-carousel__slide {
|
|
253
|
+
display: none;
|
|
254
|
+
width: min(60%, 340px);
|
|
255
|
+
margin-inline-start: calc(min(60%, 340px) / -2);
|
|
256
|
+
}
|
|
257
|
+
.pimolu-arc-carousel .pimolu-carousel__slide[data-active=true],
|
|
258
|
+
.pimolu-arc-carousel .pimolu-carousel__slide[data-distance="1"] {
|
|
259
|
+
display: block;
|
|
260
|
+
}
|
|
261
|
+
}
|
package/dist/avatar.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/avatar.css */
|
|
2
39
|
.pimolu-avatar {
|
|
3
40
|
--pimolu-avatar-size: 40px;
|
package/dist/badge.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/badge.css */
|
|
2
39
|
.pimolu-badge {
|
|
3
40
|
--pimolu-badge-height: 24px;
|
package/dist/button.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
font-weight: var(--pimolu-button-font-weight, 400);
|
|
10
10
|
border-radius: var(--pimolu-radius-md);
|
|
11
11
|
cursor: pointer;
|
|
12
|
-
transition: background-color 150ms, opacity 150ms;
|
|
12
|
+
transition: background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out), opacity var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
13
13
|
letter-spacing: var(--pimolu-button-letter-spacing, normal);
|
|
14
14
|
}
|
|
15
15
|
.pimolu-button--full-width {
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
.pimolu-button--outline {
|
|
109
109
|
background: transparent;
|
|
110
110
|
color: var(--pimolu-foreground);
|
|
111
|
-
border-color: var(--pimolu-border);
|
|
111
|
+
border-color: var(--pimolu-control-border, var(--pimolu-border));
|
|
112
112
|
}
|
|
113
113
|
.pimolu-button--outline:hover:not(:disabled) {
|
|
114
114
|
background: var(--pimolu-muted);
|
|
@@ -202,6 +202,12 @@
|
|
|
202
202
|
align-items: center;
|
|
203
203
|
justify-content: center;
|
|
204
204
|
}
|
|
205
|
+
.pimolu-button__loading-indicator {
|
|
206
|
+
display: inline-flex;
|
|
207
|
+
align-items: center;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
flex-shrink: 0;
|
|
210
|
+
}
|
|
205
211
|
.pimolu-button__spinner {
|
|
206
212
|
width: 1em;
|
|
207
213
|
height: 1em;
|
package/dist/card.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/card.css */
|
|
2
39
|
.pimolu-card {
|
|
3
40
|
--pimolu-card-padding: 16px;
|
package/dist/carousel.css
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
min-width: 0;
|
|
8
8
|
max-width: 100%;
|
|
9
|
+
--pimolu-carousel-control-reserve: 56px;
|
|
9
10
|
color: var(--pimolu-foreground);
|
|
10
11
|
font-family: var(--pimolu-font-body, inherit);
|
|
11
12
|
}
|
|
@@ -38,11 +39,11 @@
|
|
|
38
39
|
scroll-snap-stop: always;
|
|
39
40
|
}
|
|
40
41
|
.pimolu-carousel[data-controls=true] .pimolu-carousel__slide {
|
|
41
|
-
padding-inline: 56px;
|
|
42
|
+
padding-inline: var(--pimolu-carousel-control-reserve, 56px);
|
|
42
43
|
}
|
|
43
44
|
.pimolu-carousel__control {
|
|
44
45
|
position: absolute;
|
|
45
|
-
top: 50
|
|
46
|
+
top: var(--pimolu-carousel-controls-center, 50%);
|
|
46
47
|
z-index: 2;
|
|
47
48
|
display: inline-flex;
|
|
48
49
|
align-items: center;
|
|
@@ -53,8 +54,8 @@
|
|
|
53
54
|
padding: 0;
|
|
54
55
|
border: 1px solid var(--pimolu-border, currentColor);
|
|
55
56
|
border-radius: var(--pimolu-radius-full, 999px);
|
|
56
|
-
background: var( --pimolu-background, Canvas );
|
|
57
|
-
color: var(--pimolu-foreground);
|
|
57
|
+
background: var( --pimolu-control-background, var(--pimolu-background, Canvas) );
|
|
58
|
+
color: var(--pimolu-control-foreground, var(--pimolu-foreground));
|
|
58
59
|
box-shadow: var(--pimolu-shadow-raised, 0 2px 8px rgb(0 0 0 / 18%));
|
|
59
60
|
cursor: pointer;
|
|
60
61
|
transform: translateY(-50%);
|
|
@@ -88,6 +89,23 @@
|
|
|
88
89
|
width: 1.25rem;
|
|
89
90
|
height: 1.25rem;
|
|
90
91
|
}
|
|
92
|
+
[dir=rtl] {
|
|
93
|
+
--pimolu-carousel-arrow-direction: -1;
|
|
94
|
+
}
|
|
95
|
+
[dir=ltr] {
|
|
96
|
+
--pimolu-carousel-arrow-direction: 1;
|
|
97
|
+
}
|
|
98
|
+
.pimolu-carousel__control svg {
|
|
99
|
+
transform: scaleX(var(--pimolu-carousel-arrow-direction, 1));
|
|
100
|
+
}
|
|
101
|
+
@media (max-width: 640px) {
|
|
102
|
+
[data-controls-mobile=hidden] .pimolu-carousel__control {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
.pimolu-carousel[data-controls-mobile=hidden] .pimolu-carousel__slide {
|
|
106
|
+
padding-inline: 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
91
109
|
.pimolu-carousel__footer {
|
|
92
110
|
display: flex;
|
|
93
111
|
align-items: center;
|
|
@@ -168,6 +186,9 @@
|
|
|
168
186
|
height: 0.875rem;
|
|
169
187
|
}
|
|
170
188
|
@media (max-width: 600px) {
|
|
189
|
+
.pimolu-carousel {
|
|
190
|
+
--pimolu-carousel-control-reserve: 44px;
|
|
191
|
+
}
|
|
171
192
|
.pimolu-carousel__control {
|
|
172
193
|
width: 2rem;
|
|
173
194
|
height: 2rem;
|
package/dist/cascader.css
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
padding-inline-end: 64px;
|
|
43
43
|
background: var(--pimolu-cascader-surface);
|
|
44
44
|
color: var(--pimolu-foreground);
|
|
45
|
-
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
45
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
|
|
46
46
|
border-radius: var(--pimolu-radius-md, 8px);
|
|
47
47
|
font-family: inherit;
|
|
48
48
|
font-size: 0.875rem;
|
package/dist/chart.css
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/* src/chart.css */
|
|
2
2
|
.pimolu-chart {
|
|
3
|
+
position: relative;
|
|
3
4
|
--pimolu-chart-axis: var(--pimolu-muted-foreground, #6b7280);
|
|
4
5
|
--pimolu-chart-grid: var(--pimolu-border, rgba(0, 0, 0, 0.12));
|
|
5
6
|
--pimolu-chart-surface: var(--pimolu-surface, #ffffff);
|
|
6
7
|
--pimolu-chart-color: var(--pimolu-primary, #4f46e5);
|
|
8
|
+
--pimolu-chart-area-fill: var(--pimolu-chart-color);
|
|
9
|
+
--pimolu-chart-area-opacity: 0.16;
|
|
7
10
|
--pimolu-chart-label-size: 13px;
|
|
8
11
|
--pimolu-chart-axis-title-size: 13px;
|
|
9
12
|
--pimolu-chart-value-size: 12px;
|
|
@@ -21,6 +24,56 @@
|
|
|
21
24
|
position: relative;
|
|
22
25
|
width: 100%;
|
|
23
26
|
min-width: 0;
|
|
27
|
+
border-radius: var(--pimolu-radius-md, 8px);
|
|
28
|
+
touch-action: pan-y;
|
|
29
|
+
}
|
|
30
|
+
.pimolu-chart__canvas:focus-visible {
|
|
31
|
+
outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary, #4f46e5));
|
|
32
|
+
outline-offset: 4px;
|
|
33
|
+
}
|
|
34
|
+
.pimolu-chart__cursor {
|
|
35
|
+
position: absolute;
|
|
36
|
+
inset-block: 5% 12%;
|
|
37
|
+
border-inline-start: 1px dashed var(--pimolu-chart-axis);
|
|
38
|
+
opacity: 0.65;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
.pimolu-chart__tooltip {
|
|
42
|
+
position: absolute;
|
|
43
|
+
z-index: 2;
|
|
44
|
+
inset-block-start: 8px;
|
|
45
|
+
inset-inline-end: 8px;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
width: max-content;
|
|
48
|
+
max-width: calc(100% - 16px);
|
|
49
|
+
padding: 12px;
|
|
50
|
+
border: 1px solid var(--pimolu-chart-grid);
|
|
51
|
+
border-radius: var(--pimolu-radius-md, 8px);
|
|
52
|
+
background: var(--pimolu-chart-surface);
|
|
53
|
+
color: var(--pimolu-surface-foreground, var(--pimolu-foreground, #111827));
|
|
54
|
+
box-shadow: var(--pimolu-shadow-raised, none);
|
|
55
|
+
font-size: var(--pimolu-chart-legend-size);
|
|
56
|
+
line-height: 1.5;
|
|
57
|
+
overflow-wrap: anywhere;
|
|
58
|
+
}
|
|
59
|
+
.pimolu-chart__tooltip > strong {
|
|
60
|
+
display: block;
|
|
61
|
+
margin-block-end: 6px;
|
|
62
|
+
}
|
|
63
|
+
.pimolu-chart__tooltip-row {
|
|
64
|
+
display: grid;
|
|
65
|
+
grid-template-columns: 8px minmax(0, 1fr) auto;
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: 8px;
|
|
68
|
+
}
|
|
69
|
+
.pimolu-chart__tooltip-row b {
|
|
70
|
+
font-variant-numeric: tabular-nums;
|
|
71
|
+
text-align: end;
|
|
72
|
+
}
|
|
73
|
+
.pimolu-chart__tooltip-row .pimolu-chart__legend-swatch {
|
|
74
|
+
width: 8px;
|
|
75
|
+
height: 8px;
|
|
76
|
+
border-radius: 50%;
|
|
24
77
|
}
|
|
25
78
|
.pimolu-chart__svg {
|
|
26
79
|
display: block;
|
|
@@ -34,6 +87,8 @@
|
|
|
34
87
|
stroke-width: 1;
|
|
35
88
|
shape-rendering: crispEdges;
|
|
36
89
|
vector-effect: non-scaling-stroke;
|
|
90
|
+
stroke-dasharray: 3 5;
|
|
91
|
+
opacity: 0.7;
|
|
37
92
|
}
|
|
38
93
|
.pimolu-chart__axis {
|
|
39
94
|
stroke: var(--pimolu-chart-grid);
|
|
@@ -75,12 +130,13 @@
|
|
|
75
130
|
stroke-width: 2.5;
|
|
76
131
|
stroke-linecap: round;
|
|
77
132
|
stroke-linejoin: round;
|
|
133
|
+
vector-effect: non-scaling-stroke;
|
|
78
134
|
stroke-dasharray: 1;
|
|
79
135
|
animation: pimolu-chart-draw 650ms ease-out both;
|
|
80
136
|
}
|
|
81
137
|
.pimolu-chart__area {
|
|
82
|
-
fill: var( --pimolu-chart-color, var(--pimolu-primary, #4f46e5)
|
|
83
|
-
fill-opacity: 0.16;
|
|
138
|
+
fill: var(--pimolu-chart-area-fill, var(--pimolu-chart-color, var(--pimolu-primary, #4f46e5)));
|
|
139
|
+
fill-opacity: var(--pimolu-chart-area-opacity, 0.16);
|
|
84
140
|
stroke: none;
|
|
85
141
|
animation: pimolu-chart-fade 420ms ease-out both;
|
|
86
142
|
}
|
|
@@ -103,6 +159,36 @@
|
|
|
103
159
|
.pimolu-chart__donut-track {
|
|
104
160
|
stroke: var( --pimolu-muted, rgba(0, 0, 0, 0.08) );
|
|
105
161
|
}
|
|
162
|
+
.pimolu-chart--donut {
|
|
163
|
+
flex-flow: row wrap;
|
|
164
|
+
align-items: center;
|
|
165
|
+
gap: 20px;
|
|
166
|
+
}
|
|
167
|
+
.pimolu-chart--donut .pimolu-chart__canvas {
|
|
168
|
+
flex: 1 1 160px;
|
|
169
|
+
max-width: 260px;
|
|
170
|
+
margin-inline: auto;
|
|
171
|
+
}
|
|
172
|
+
.pimolu-chart--donut .pimolu-chart__legend {
|
|
173
|
+
flex: 1 1 120px;
|
|
174
|
+
flex-direction: column;
|
|
175
|
+
gap: 12px;
|
|
176
|
+
}
|
|
177
|
+
.pimolu-chart--donut .pimolu-chart__legend-item {
|
|
178
|
+
display: grid;
|
|
179
|
+
grid-template-columns: 10px minmax(0, 1fr);
|
|
180
|
+
}
|
|
181
|
+
.pimolu-chart--donut .pimolu-chart__legend-value {
|
|
182
|
+
grid-column: 2;
|
|
183
|
+
font-variant-numeric: tabular-nums;
|
|
184
|
+
}
|
|
185
|
+
.pimolu-chart--donut .pimolu-chart__tooltip-row {
|
|
186
|
+
grid-template-columns: 8px minmax(0, 1fr);
|
|
187
|
+
}
|
|
188
|
+
.pimolu-chart--donut .pimolu-chart__tooltip-row b {
|
|
189
|
+
grid-column: 2;
|
|
190
|
+
text-align: start;
|
|
191
|
+
}
|
|
106
192
|
.pimolu-chart__segment {
|
|
107
193
|
stroke: var( --pimolu-chart-color, var(--pimolu-primary, #4f46e5) );
|
|
108
194
|
transition: opacity 160ms ease;
|
|
@@ -240,10 +326,21 @@
|
|
|
240
326
|
}
|
|
241
327
|
}
|
|
242
328
|
@media (forced-colors: active) {
|
|
329
|
+
.pimolu-chart__tooltip {
|
|
330
|
+
background: Canvas;
|
|
331
|
+
color: CanvasText;
|
|
332
|
+
border-color: CanvasText;
|
|
333
|
+
}
|
|
334
|
+
.pimolu-chart__cursor {
|
|
335
|
+
border-color: CanvasText;
|
|
336
|
+
}
|
|
243
337
|
.pimolu-chart__bar,
|
|
244
338
|
.pimolu-chart__area {
|
|
245
339
|
fill: CanvasText;
|
|
246
340
|
}
|
|
341
|
+
.pimolu-chart__area {
|
|
342
|
+
fill-opacity: 0.1;
|
|
343
|
+
}
|
|
247
344
|
.pimolu-chart__line,
|
|
248
345
|
.pimolu-chart__segment {
|
|
249
346
|
stroke: CanvasText;
|
package/dist/chat.css
CHANGED
package/dist/checkbox.css
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
box-sizing: border-box;
|
|
82
82
|
background: var( --pimolu-surface, var(--pimolu-background) );
|
|
83
83
|
color: var(--pimolu-checkbox-active-foreground);
|
|
84
|
-
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
84
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
|
|
85
85
|
border-radius: var(--pimolu-radius-sm, 4px);
|
|
86
86
|
pointer-events: none;
|
|
87
87
|
transition:
|
|
@@ -49,10 +49,32 @@
|
|
|
49
49
|
}
|
|
50
50
|
.pimolu-circular-progress__value {
|
|
51
51
|
position: absolute;
|
|
52
|
-
font-size: max(0.625rem, calc(var(--pimolu-circular-progress-diameter) * 0.
|
|
52
|
+
font-size: max(0.625rem, calc(var(--pimolu-circular-progress-diameter) * 0.20));
|
|
53
53
|
font-variant-numeric: tabular-nums;
|
|
54
54
|
line-height: 1;
|
|
55
55
|
color: var(--pimolu-muted-foreground, currentColor);
|
|
56
|
+
max-width: 68%;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
}
|
|
62
|
+
.pimolu-circular-progress[data-empty=true] .pimolu-circular-progress__indicator {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
}
|
|
65
|
+
.pimolu-circular-progress--sm:has(.pimolu-circular-progress__value) {
|
|
66
|
+
width: auto;
|
|
67
|
+
gap: 8px;
|
|
68
|
+
}
|
|
69
|
+
.pimolu-circular-progress--sm .pimolu-circular-progress__svg {
|
|
70
|
+
width: var(--pimolu-circular-progress-diameter);
|
|
71
|
+
height: var(--pimolu-circular-progress-diameter);
|
|
72
|
+
flex: none;
|
|
73
|
+
}
|
|
74
|
+
.pimolu-circular-progress--sm .pimolu-circular-progress__value {
|
|
75
|
+
position: static;
|
|
76
|
+
max-width: none;
|
|
77
|
+
font-size: 0.75rem;
|
|
56
78
|
}
|
|
57
79
|
.pimolu-circular-progress--indeterminate .pimolu-circular-progress__svg {
|
|
58
80
|
animation: pimolu-circular-progress-rotate 1.4s linear infinite;
|