@plexui/styles 0.1.46 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/Accordion/Accordion.module.css +54 -1
- package/dist/es/components/Alert/Alert.module.css +75 -37
- package/dist/es/components/Button/Button.module.css +36 -28
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +15 -3
- package/dist/es/components/ColorPicker/ColorPicker.module.css +42 -70
- package/dist/es/components/ContextMenu/ContextMenu.module.css +1 -1
- package/dist/es/components/DatePicker/Calendar.module.css +17 -15
- package/dist/es/components/DateRangePicker/Calendar.module.css +17 -69
- package/dist/es/components/Dialog/Dialog.module.css +169 -70
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +12 -8
- package/dist/es/components/Field/Field.module.css +56 -22
- package/dist/es/components/FieldGroup/FieldGroup.module.css +5 -5
- package/dist/es/components/FileUpload/FileUpload.module.css +2 -2
- package/dist/es/components/Input/Input.module.css +100 -18
- package/dist/es/components/Menu/Menu.module.css +38 -42
- package/dist/es/components/Page/Page.module.css +38 -0
- package/dist/es/components/Popover/Popover.module.css +10 -11
- package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
- package/dist/es/components/Select/Select.module.css +304 -42
- package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
- package/dist/es/components/Sidebar/Sidebar.module.css +6 -4
- package/dist/es/components/Slider/Slider.module.css +46 -2
- package/dist/es/components/Sortable/Sortable.module.css +3 -2
- package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
- package/dist/es/components/Stepper/Stepper.module.css +7 -4
- package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
- package/dist/es/components/Switch/Switch.module.css +6 -5
- package/dist/es/components/TabBar/TabBar.module.css +128 -12
- package/dist/es/components/Tabs/Tabs.module.css +240 -45
- package/dist/es/components/Toast/Toast.module.css +47 -24
- package/dist/es/components/Toolbar/Toolbar.module.css +120 -62
- package/dist/es/styles/geist-mono-fonts/LICENSE +93 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-cyrillic-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-latin-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-symbols2-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-italic.woff2 +0 -0
- package/dist/es/styles/geist-mono-fonts/geist-mono-vietnamese-wght-normal.woff2 +0 -0
- package/dist/es/styles/geist-mono.css +124 -0
- package/dist/es/styles/index.css +3 -0
- package/dist/es/styles/inter-fonts/LICENSE +93 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-cyrillic-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-greek-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-latin-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-italic.woff2 +0 -0
- package/dist/es/styles/inter-fonts/inter-vietnamese-opsz-normal.woff2 +0 -0
- package/dist/es/styles/inter.css +142 -0
- package/dist/es/styles/mobile-materials.css +65 -24
- package/dist/es/styles/tailwind-utilities.css +8 -0
- package/dist/es/styles/touch.css +357 -169
- package/dist/es/styles/variables-components.css +255 -138
- package/dist/es/styles/variables-semantic.css +30 -5
- package/dist/es/styles/variables-tailwind-theme.css +2 -4
- package/dist/es/styles/variables-tokens-root.css +70 -4
- package/package.json +1 -1
- package/dist/es/components/StatCard/StatCard.module.css +0 -234
|
@@ -126,9 +126,10 @@
|
|
|
126
126
|
|
|
127
127
|
[data-disabled] .Description {
|
|
128
128
|
cursor: not-allowed;
|
|
129
|
-
}/* A phone switch after
|
|
130
|
-
(
|
|
131
|
-
Disabled, the switch keeps its colors and shows
|
|
129
|
+
}/* A phone switch after native iOS 27.2 (its 63 x 28 track and 37 x 24 knob are in touch.css) and the iOS 27 kit
|
|
130
|
+
(Toggles 29:56814). Held down, the knob turns into the lens of glass (mobile-materials.css) over the track, on
|
|
131
|
+
the knob's centre; without touch.css the knob stays as it is. Disabled, the switch keeps its colors and shows
|
|
132
|
+
at half opacity (Is Enabled=False). */@media (max-width: 767px) {
|
|
132
133
|
.Thumb {
|
|
133
134
|
transition:
|
|
134
135
|
translate 200ms var(--cubic-enter),
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
.Track:active:not([data-disabled]) > .Thumb {
|
|
141
|
-
scale: var(--mobile-knob-lens-scale, none);
|
|
142
|
+
scale: var(--mobile-switch-knob-lens-scale, none);
|
|
142
143
|
background-color: var(--mobile-knob-lens-background, var(--switch-thumb-color));
|
|
143
144
|
box-shadow: var(--mobile-knob-lens-shadow, var(--switch-thumb-shadow));
|
|
144
145
|
}
|
|
@@ -165,7 +166,7 @@
|
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
:where([data-plex-layout="phone"]) .Track:active:not([data-disabled]) > .Thumb {
|
|
168
|
-
scale: var(--mobile-knob-lens-scale, none);
|
|
169
|
+
scale: var(--mobile-switch-knob-lens-scale, none);
|
|
169
170
|
background-color: var(--mobile-knob-lens-background, var(--switch-thumb-color));
|
|
170
171
|
box-shadow: var(--mobile-knob-lens-shadow, var(--switch-thumb-shadow));
|
|
171
172
|
}
|
|
@@ -14,9 +14,6 @@
|
|
|
14
14
|
min-width: 0;
|
|
15
15
|
padding: var(--tab-bar-padding-top) var(--tab-bar-gutter) var(--tab-bar-padding-bottom);
|
|
16
16
|
color: var(--color-text);
|
|
17
|
-
|
|
18
|
-
/* With a search or a prominent tab, or minimized, the capsule keeps to the leading edge and the circle of
|
|
19
|
-
its own to the trailing one. */
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
/* The soft scroll edge of a bottom Toolbar: the canvas fades out over content under the bar. */
|
|
@@ -67,6 +64,9 @@
|
|
|
67
64
|
.TabBar[data-background="soft"]::before {
|
|
68
65
|
display: none;
|
|
69
66
|
}
|
|
67
|
+
|
|
68
|
+
/* With a search or a prominent tab, or minimized, the capsule keeps to the leading edge and the circle of
|
|
69
|
+
its own to the trailing one. */
|
|
70
70
|
.TabBar[data-search],
|
|
71
71
|
.TabBar[data-prominent],
|
|
72
72
|
.TabBar[data-minimized] {
|
|
@@ -77,10 +77,23 @@
|
|
|
77
77
|
padding: var(--tab-bar-minimized-padding-top) var(--tab-bar-minimized-gutter) var(--tab-bar-minimized-padding-bottom);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
/* A bottom accessory stands above the capsule, so the bar grows by its height and gap (151 in all). */
|
|
81
|
+
.TabBar[data-accessory] {
|
|
82
|
+
padding-top: calc(var(--tab-bar-padding-top) + var(--tab-bar-accessory-height) + var(--tab-bar-accessory-gap));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Minimized, it moves between the circles and the bar keeps its height. */
|
|
86
|
+
.TabBar[data-accessory][data-minimized] {
|
|
87
|
+
gap: var(--tab-bar-minimized-accessory-gap);
|
|
88
|
+
padding-top: calc(var(--tab-bar-minimized-padding-top) + var(--tab-bar-accessory-height) + var(--tab-bar-accessory-gap));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* The glass capsule (Liquid Glass Regular, the shared mobile glass with its raised shadow). Tabs are 85px
|
|
92
|
+
apart at most and share the width when there are more: four or five fill 360px, three take 275, as iOS 27.2
|
|
93
|
+
sets them. The search and prominent circles name both classes to outrank the reset of
|
|
94
|
+
`.Item`; the accessory is the same glass. */
|
|
83
95
|
.Tabs,
|
|
96
|
+
.Accessory,
|
|
84
97
|
.Item:is(.Search, .Prominent) {
|
|
85
98
|
border-radius: var(--radius-full);
|
|
86
99
|
background-color: var(--mobile-glass-background);
|
|
@@ -174,6 +187,38 @@
|
|
|
174
187
|
height: var(--tab-bar-icon-size);
|
|
175
188
|
}
|
|
176
189
|
|
|
190
|
+
/* The bottom accessory: the app's own content, a now playing row or a status, in a capsule across the bar
|
|
191
|
+
above the tabs. */
|
|
192
|
+
.Accessory {
|
|
193
|
+
position: absolute;
|
|
194
|
+
top: var(--tab-bar-padding-top);
|
|
195
|
+
right: var(--tab-bar-gutter);
|
|
196
|
+
left: var(--tab-bar-gutter);
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
min-width: 0;
|
|
200
|
+
height: var(--tab-bar-accessory-height);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* A count or a word on a tab: a red capsule over the symbol's trailing top corner, kept to the tab's middle. */
|
|
204
|
+
.Badge {
|
|
205
|
+
position: absolute;
|
|
206
|
+
top: var(--tab-bar-badge-top);
|
|
207
|
+
left: calc(50% + var(--tab-bar-badge-start));
|
|
208
|
+
min-width: var(--tab-bar-badge-size);
|
|
209
|
+
height: var(--tab-bar-badge-size);
|
|
210
|
+
padding: 0 var(--tab-bar-badge-padding-inline);
|
|
211
|
+
border-radius: var(--radius-full);
|
|
212
|
+
background: var(--tab-bar-badge-background);
|
|
213
|
+
color: var(--tab-bar-badge-color);
|
|
214
|
+
font-size: var(--tab-bar-badge-font-size);
|
|
215
|
+
font-weight: var(--tab-bar-badge-font-weight);
|
|
216
|
+
line-height: var(--tab-bar-badge-size);
|
|
217
|
+
text-align: center;
|
|
218
|
+
white-space: nowrap;
|
|
219
|
+
pointer-events: none;
|
|
220
|
+
}
|
|
221
|
+
|
|
177
222
|
.Label {
|
|
178
223
|
max-width: 100%;
|
|
179
224
|
overflow: hidden;
|
|
@@ -224,6 +269,12 @@
|
|
|
224
269
|
background: transparent;
|
|
225
270
|
}
|
|
226
271
|
|
|
272
|
+
/* The badge stays on the circle, measured from the circle rather than the tab inside it. */
|
|
273
|
+
.TabBar[data-minimized] .Tabs .Badge {
|
|
274
|
+
top: calc(var(--tab-bar-minimized-badge-top) - var(--tab-bar-capsule-padding-block));
|
|
275
|
+
left: calc(50% + var(--tab-bar-minimized-badge-start));
|
|
276
|
+
}
|
|
277
|
+
|
|
227
278
|
/* The label still names the tab for assistive technology. */
|
|
228
279
|
.TabBar[data-minimized] .Tabs .Label {
|
|
229
280
|
position: absolute;
|
|
@@ -238,6 +289,13 @@
|
|
|
238
289
|
width: var(--tab-bar-minimized-size);
|
|
239
290
|
height: var(--tab-bar-minimized-size);
|
|
240
291
|
}
|
|
292
|
+
|
|
293
|
+
/* The accessory between the circles, as tall as they are: the bar puts it there in its order. */
|
|
294
|
+
.TabBar[data-minimized] .Accessory {
|
|
295
|
+
position: static;
|
|
296
|
+
flex: 1 1 0;
|
|
297
|
+
height: var(--tab-bar-minimized-size);
|
|
298
|
+
}
|
|
241
299
|
}
|
|
242
300
|
/* 402 x 95: the capsule 62 tall, 21px from the sides and the bottom, 12px below the top of the bar. */
|
|
243
301
|
:where([data-plex-layout="phone"]) .TabBar {
|
|
@@ -251,9 +309,6 @@
|
|
|
251
309
|
min-width: 0;
|
|
252
310
|
padding: var(--tab-bar-padding-top) var(--tab-bar-gutter) var(--tab-bar-padding-bottom);
|
|
253
311
|
color: var(--color-text);
|
|
254
|
-
|
|
255
|
-
/* With a search or a prominent tab, or minimized, the capsule keeps to the leading edge and the circle of
|
|
256
|
-
its own to the trailing one. */
|
|
257
312
|
}
|
|
258
313
|
|
|
259
314
|
/* The soft scroll edge of a bottom Toolbar: the canvas fades out over content under the bar. */
|
|
@@ -304,6 +359,9 @@
|
|
|
304
359
|
:where([data-plex-layout="phone"]) .TabBar[data-background="soft"]::before {
|
|
305
360
|
display: none;
|
|
306
361
|
}
|
|
362
|
+
|
|
363
|
+
/* With a search or a prominent tab, or minimized, the capsule keeps to the leading edge and the circle of
|
|
364
|
+
its own to the trailing one. */
|
|
307
365
|
:where([data-plex-layout="phone"]) .TabBar[data-search],
|
|
308
366
|
:where([data-plex-layout="phone"]) .TabBar[data-prominent],
|
|
309
367
|
:where([data-plex-layout="phone"]) .TabBar[data-minimized] {
|
|
@@ -314,10 +372,23 @@
|
|
|
314
372
|
padding: var(--tab-bar-minimized-padding-top) var(--tab-bar-minimized-gutter) var(--tab-bar-minimized-padding-bottom);
|
|
315
373
|
}
|
|
316
374
|
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
375
|
+
/* A bottom accessory stands above the capsule, so the bar grows by its height and gap (151 in all). */
|
|
376
|
+
:where([data-plex-layout="phone"]) .TabBar[data-accessory] {
|
|
377
|
+
padding-top: calc(var(--tab-bar-padding-top) + var(--tab-bar-accessory-height) + var(--tab-bar-accessory-gap));
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* Minimized, it moves between the circles and the bar keeps its height. */
|
|
381
|
+
:where([data-plex-layout="phone"]) .TabBar[data-accessory][data-minimized] {
|
|
382
|
+
gap: var(--tab-bar-minimized-accessory-gap);
|
|
383
|
+
padding-top: calc(var(--tab-bar-minimized-padding-top) + var(--tab-bar-accessory-height) + var(--tab-bar-accessory-gap));
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/* The glass capsule (Liquid Glass Regular, the shared mobile glass with its raised shadow). Tabs are 85px
|
|
387
|
+
apart at most and share the width when there are more: four or five fill 360px, three take 275, as iOS 27.2
|
|
388
|
+
sets them. The search and prominent circles name both classes to outrank the reset of
|
|
389
|
+
`.Item`; the accessory is the same glass. */
|
|
320
390
|
:where([data-plex-layout="phone"]) .Tabs,
|
|
391
|
+
:where([data-plex-layout="phone"]) .Accessory,
|
|
321
392
|
:where([data-plex-layout="phone"]) .Item:is(.Search, .Prominent) {
|
|
322
393
|
border-radius: var(--radius-full);
|
|
323
394
|
background-color: var(--mobile-glass-background);
|
|
@@ -411,6 +482,38 @@
|
|
|
411
482
|
height: var(--tab-bar-icon-size);
|
|
412
483
|
}
|
|
413
484
|
|
|
485
|
+
/* The bottom accessory: the app's own content, a now playing row or a status, in a capsule across the bar
|
|
486
|
+
above the tabs. */
|
|
487
|
+
:where([data-plex-layout="phone"]) .Accessory {
|
|
488
|
+
position: absolute;
|
|
489
|
+
top: var(--tab-bar-padding-top);
|
|
490
|
+
right: var(--tab-bar-gutter);
|
|
491
|
+
left: var(--tab-bar-gutter);
|
|
492
|
+
display: flex;
|
|
493
|
+
align-items: center;
|
|
494
|
+
min-width: 0;
|
|
495
|
+
height: var(--tab-bar-accessory-height);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/* A count or a word on a tab: a red capsule over the symbol's trailing top corner, kept to the tab's middle. */
|
|
499
|
+
:where([data-plex-layout="phone"]) .Badge {
|
|
500
|
+
position: absolute;
|
|
501
|
+
top: var(--tab-bar-badge-top);
|
|
502
|
+
left: calc(50% + var(--tab-bar-badge-start));
|
|
503
|
+
min-width: var(--tab-bar-badge-size);
|
|
504
|
+
height: var(--tab-bar-badge-size);
|
|
505
|
+
padding: 0 var(--tab-bar-badge-padding-inline);
|
|
506
|
+
border-radius: var(--radius-full);
|
|
507
|
+
background: var(--tab-bar-badge-background);
|
|
508
|
+
color: var(--tab-bar-badge-color);
|
|
509
|
+
font-size: var(--tab-bar-badge-font-size);
|
|
510
|
+
font-weight: var(--tab-bar-badge-font-weight);
|
|
511
|
+
line-height: var(--tab-bar-badge-size);
|
|
512
|
+
text-align: center;
|
|
513
|
+
white-space: nowrap;
|
|
514
|
+
pointer-events: none;
|
|
515
|
+
}
|
|
516
|
+
|
|
414
517
|
:where([data-plex-layout="phone"]) .Label {
|
|
415
518
|
max-width: 100%;
|
|
416
519
|
overflow: hidden;
|
|
@@ -461,6 +564,12 @@
|
|
|
461
564
|
background: transparent;
|
|
462
565
|
}
|
|
463
566
|
|
|
567
|
+
/* The badge stays on the circle, measured from the circle rather than the tab inside it. */
|
|
568
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs .Badge {
|
|
569
|
+
top: calc(var(--tab-bar-minimized-badge-top) - var(--tab-bar-capsule-padding-block));
|
|
570
|
+
left: calc(50% + var(--tab-bar-minimized-badge-start));
|
|
571
|
+
}
|
|
572
|
+
|
|
464
573
|
/* The label still names the tab for assistive technology. */
|
|
465
574
|
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Tabs .Label {
|
|
466
575
|
position: absolute;
|
|
@@ -475,4 +584,11 @@
|
|
|
475
584
|
width: var(--tab-bar-minimized-size);
|
|
476
585
|
height: var(--tab-bar-minimized-size);
|
|
477
586
|
}
|
|
587
|
+
|
|
588
|
+
/* The accessory between the circles, as tall as they are: the bar puts it there in its order. */
|
|
589
|
+
:where([data-plex-layout="phone"]) .TabBar[data-minimized] .Accessory {
|
|
590
|
+
position: static;
|
|
591
|
+
flex: 1 1 0;
|
|
592
|
+
height: var(--tab-bar-minimized-size);
|
|
593
|
+
}
|
|
478
594
|
}
|