@plexui/styles 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/Alert/Alert.module.css +14 -0
- package/dist/es/components/DatePicker/Calendar.module.css +18 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +18 -0
- package/dist/es/components/Dialog/Dialog.module.css +10 -0
- package/dist/es/components/Page/Page.module.css +12 -0
- package/dist/es/components/SelectControl/SelectControl.module.css +8 -8
- package/dist/es/components/SwipeActions/SwipeActions.module.css +17 -0
- package/package.json +1 -1
|
@@ -260,6 +260,13 @@
|
|
|
260
260
|
content: none;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
/* With a description under it the title's first line stands on the middle of the icon too, as an iOS row centres
|
|
264
|
+
its icon on its first line (owner 15.11: TipKit's lower image read as off centre); the 10px under the icon keep
|
|
265
|
+
the card as tall */
|
|
266
|
+
.Indicator:has(+ .Content > .Message > .Title ~ .Description) {
|
|
267
|
+
margin-block: 0 10px;
|
|
268
|
+
}
|
|
269
|
+
|
|
263
270
|
/* A title alone stands on the middle of the image, as TipKit centres it, 20 from the top and the bottom */
|
|
264
271
|
.Indicator + .Content > .Message:not(:has(> .Description)) {
|
|
265
272
|
align-self: center;
|
|
@@ -389,6 +396,13 @@
|
|
|
389
396
|
content: none;
|
|
390
397
|
}
|
|
391
398
|
|
|
399
|
+
/* With a description under it the title's first line stands on the middle of the icon too, as an iOS row centres
|
|
400
|
+
its icon on its first line (owner 15.11: TipKit's lower image read as off centre); the 10px under the icon keep
|
|
401
|
+
the card as tall */
|
|
402
|
+
:where([data-plex-layout="phone"]) .Indicator:has(+ .Content > .Message > .Title ~ .Description) {
|
|
403
|
+
margin-block: 0 10px;
|
|
404
|
+
}
|
|
405
|
+
|
|
392
406
|
/* A title alone stands on the middle of the image, as TipKit centres it, 20 from the top and the bottom */
|
|
393
407
|
:where([data-plex-layout="phone"]) .Indicator + .Content > .Message:not(:has(> .Description)) {
|
|
394
408
|
align-self: center;
|
|
@@ -287,12 +287,21 @@ background-color: var(--alpha-08);
|
|
|
287
287
|
/* The narrow-screen radius follows the available inset; it is a fit
|
|
288
288
|
constraint, not a separate measured native corner radius. */
|
|
289
289
|
--popover-radius: calc(22px + var(--calendar-inner-padding));
|
|
290
|
+
/* Never squeezed to the room on one side: at its whole height it flips to the side with room, as the compact
|
|
291
|
+
date picker of iOS opens above a trigger with no room below (console 15.11). The popover's own cap would make
|
|
292
|
+
it fit below and stop the flip. */
|
|
293
|
+
max-height: none;
|
|
290
294
|
|
|
291
295
|
background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
|
|
292
296
|
box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
|
|
293
297
|
backdrop-filter: blur(50px);
|
|
294
298
|
}
|
|
295
299
|
|
|
300
|
+
/* Neither side has room for the whole calendar: it takes the room of its side and scrolls (lib/calendarFit) */
|
|
301
|
+
.Popover[role="dialog"][data-calendar-squeezed] {
|
|
302
|
+
max-height: var(--radix-popover-content-available-height);
|
|
303
|
+
}
|
|
304
|
+
|
|
296
305
|
.CalendarWrapper {
|
|
297
306
|
/* The compact date picker's calendar of iOS 27.2 is a 321pt panel of seven 42.7pt columns and 38pt rows
|
|
298
307
|
(UIKit and Calendar on an iPhone 17). PlexUI keeps its seven 44px targets (owner 06.11), side by side
|
|
@@ -454,12 +463,21 @@ background-color: var(--alpha-08);
|
|
|
454
463
|
/* The narrow-screen radius follows the available inset; it is a fit
|
|
455
464
|
constraint, not a separate measured native corner radius. */
|
|
456
465
|
--popover-radius: calc(22px + var(--calendar-inner-padding));
|
|
466
|
+
/* Never squeezed to the room on one side: at its whole height it flips to the side with room, as the compact
|
|
467
|
+
date picker of iOS opens above a trigger with no room below (console 15.11). The popover's own cap would make
|
|
468
|
+
it fit below and stop the flip. */
|
|
469
|
+
max-height: none;
|
|
457
470
|
|
|
458
471
|
background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
|
|
459
472
|
box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
|
|
460
473
|
backdrop-filter: blur(50px);
|
|
461
474
|
}
|
|
462
475
|
|
|
476
|
+
/* Neither side has room for the whole calendar: it takes the room of its side and scrolls (lib/calendarFit) */
|
|
477
|
+
:where([data-plex-layout="phone"]) .Popover[role="dialog"][data-calendar-squeezed] {
|
|
478
|
+
max-height: var(--radix-popover-content-available-height);
|
|
479
|
+
}
|
|
480
|
+
|
|
463
481
|
:where([data-plex-layout="phone"]) .CalendarWrapper {
|
|
464
482
|
/* The compact date picker's calendar of iOS 27.2 is a 321pt panel of seven 42.7pt columns and 38pt rows
|
|
465
483
|
(UIKit and Calendar on an iPhone 17). PlexUI keeps its seven 44px targets (owner 06.11), side by side
|
|
@@ -313,12 +313,21 @@ background-color: var(--alpha-08);
|
|
|
313
313
|
/* The narrow-screen radius follows the available inset; it is a fit
|
|
314
314
|
constraint, not a separate measured native corner radius. */
|
|
315
315
|
--popover-radius: calc(22px + var(--calendar-inner-padding));
|
|
316
|
+
/* Never squeezed to the room on one side: at its whole height it flips to the side with room, as the compact
|
|
317
|
+
date picker of iOS opens above a trigger with no room below (console 15.11). The popover's own cap would make
|
|
318
|
+
it fit below and stop the flip. */
|
|
319
|
+
max-height: none;
|
|
316
320
|
|
|
317
321
|
background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
|
|
318
322
|
box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
|
|
319
323
|
backdrop-filter: blur(50px);
|
|
320
324
|
}
|
|
321
325
|
|
|
326
|
+
/* Neither side has room for the whole calendar: it takes the room of its side and scrolls (lib/calendarFit) */
|
|
327
|
+
.Popover[role="dialog"][data-calendar-squeezed] {
|
|
328
|
+
max-height: var(--radix-popover-content-available-height);
|
|
329
|
+
}
|
|
330
|
+
|
|
322
331
|
.CalendarWrapper {
|
|
323
332
|
/* The compact date picker's calendar of iOS 27.2 is a 321pt panel of seven 42.7pt columns and 38pt rows
|
|
324
333
|
(UIKit and Calendar on an iPhone 17). PlexUI keeps its seven 44px targets (owner 06.11), side by side
|
|
@@ -480,12 +489,21 @@ background-color: var(--alpha-08);
|
|
|
480
489
|
/* The narrow-screen radius follows the available inset; it is a fit
|
|
481
490
|
constraint, not a separate measured native corner radius. */
|
|
482
491
|
--popover-radius: calc(22px + var(--calendar-inner-padding));
|
|
492
|
+
/* Never squeezed to the room on one side: at its whole height it flips to the side with room, as the compact
|
|
493
|
+
date picker of iOS opens above a trigger with no room below (console 15.11). The popover's own cap would make
|
|
494
|
+
it fit below and stop the flip. */
|
|
495
|
+
max-height: none;
|
|
483
496
|
|
|
484
497
|
background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
|
|
485
498
|
box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
|
|
486
499
|
backdrop-filter: blur(50px);
|
|
487
500
|
}
|
|
488
501
|
|
|
502
|
+
/* Neither side has room for the whole calendar: it takes the room of its side and scrolls (lib/calendarFit) */
|
|
503
|
+
:where([data-plex-layout="phone"]) .Popover[role="dialog"][data-calendar-squeezed] {
|
|
504
|
+
max-height: var(--radix-popover-content-available-height);
|
|
505
|
+
}
|
|
506
|
+
|
|
489
507
|
:where([data-plex-layout="phone"]) .CalendarWrapper {
|
|
490
508
|
/* The compact date picker's calendar of iOS 27.2 is a 321pt panel of seven 42.7pt columns and 38pt rows
|
|
491
509
|
(UIKit and Calendar on an iPhone 17). PlexUI keeps its seven 44px targets (owner 06.11), side by side
|
|
@@ -929,6 +929,11 @@
|
|
|
929
929
|
margin-bottom: 16px;
|
|
930
930
|
}
|
|
931
931
|
|
|
932
|
+
/* A search field as the last row: the body starts 10 under it, as on a page */
|
|
933
|
+
.LargeTitleRows:has(> :last-child input) {
|
|
934
|
+
margin-bottom: var(--toolbar-row-gap);
|
|
935
|
+
}
|
|
936
|
+
|
|
932
937
|
.LargeTitleRows:empty {
|
|
933
938
|
display: none;
|
|
934
939
|
}
|
|
@@ -1511,6 +1516,11 @@
|
|
|
1511
1516
|
margin-bottom: 16px;
|
|
1512
1517
|
}
|
|
1513
1518
|
|
|
1519
|
+
/* A search field as the last row: the body starts 10 under it, as on a page */
|
|
1520
|
+
:where([data-plex-layout="phone"]) .LargeTitleRows:has(> :last-child input) {
|
|
1521
|
+
margin-bottom: var(--toolbar-row-gap);
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1514
1524
|
:where([data-plex-layout="phone"]) .LargeTitleRows:empty {
|
|
1515
1525
|
display: none;
|
|
1516
1526
|
}
|
|
@@ -522,6 +522,12 @@
|
|
|
522
522
|
margin-bottom: var(--page-content-padding-top, 16px);
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
+
/* A search field as the last row: the content starts 10 under it, as iOS 27.2 starts a list under the search
|
|
526
|
+
field of a large title (UISearchController .stacked and SwiftUI .searchable; ref-app searchstack-s0) */
|
|
527
|
+
.LargeTitleRows:has(> :last-child input) {
|
|
528
|
+
margin-bottom: var(--toolbar-row-gap);
|
|
529
|
+
}
|
|
530
|
+
|
|
525
531
|
.LargeTitleRows:empty {
|
|
526
532
|
display: none;
|
|
527
533
|
}
|
|
@@ -945,6 +951,12 @@
|
|
|
945
951
|
margin-bottom: var(--page-content-padding-top, 16px);
|
|
946
952
|
}
|
|
947
953
|
|
|
954
|
+
/* A search field as the last row: the content starts 10 under it, as iOS 27.2 starts a list under the search
|
|
955
|
+
field of a large title (UISearchController .stacked and SwiftUI .searchable; ref-app searchstack-s0) */
|
|
956
|
+
:where([data-plex-layout="phone"]) .LargeTitleRows:has(> :last-child input) {
|
|
957
|
+
margin-bottom: var(--toolbar-row-gap);
|
|
958
|
+
}
|
|
959
|
+
|
|
948
960
|
:where([data-plex-layout="phone"]) .LargeTitleRows:empty {
|
|
949
961
|
display: none;
|
|
950
962
|
}
|
|
@@ -692,10 +692,10 @@
|
|
|
692
692
|
display: none;
|
|
693
693
|
}
|
|
694
694
|
|
|
695
|
-
/*
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
:where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .IndicatorWrapper
|
|
695
|
+
/* The compact date picker of iOS has no clear button (owner 15.11 «есть такое у iOS???»): an optional date is
|
|
696
|
+
turned off with a Switch row, as Reminders and Calendar do. A clearable date in a phone row hides its ×, and with
|
|
697
|
+
it the wrapper (else empty without the chevrons), so the date sits centred in its capsule. */
|
|
698
|
+
:where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .IndicatorWrapper {
|
|
699
699
|
display: none;
|
|
700
700
|
}
|
|
701
701
|
|
|
@@ -761,10 +761,10 @@
|
|
|
761
761
|
display: none;
|
|
762
762
|
}
|
|
763
763
|
|
|
764
|
-
/*
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
:where([data-plex-layout="phone"]) :where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .IndicatorWrapper
|
|
764
|
+
/* The compact date picker of iOS has no clear button (owner 15.11 «есть такое у iOS???»): an optional date is
|
|
765
|
+
turned off with a Switch row, as Reminders and Calendar do. A clearable date in a phone row hides its ×, and with
|
|
766
|
+
it the wrapper (else empty without the chevrons), so the date sits centred in its capsule. */
|
|
767
|
+
:where([data-plex-layout="phone"]) :where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .IndicatorWrapper {
|
|
768
768
|
display: none;
|
|
769
769
|
}
|
|
770
770
|
|
|
@@ -46,6 +46,19 @@
|
|
|
46
46
|
-moz-user-select: none;
|
|
47
47
|
user-select: none;
|
|
48
48
|
-webkit-user-select: none;
|
|
49
|
+
}/* A destructive action removes the row: the content slides out and the row collapses from the height it had
|
|
50
|
+
(--swipe-actions-row-height, set by the row) before the list drops it, as iOS deletes a row. Nothing in it takes a
|
|
51
|
+
press meanwhile. */.SwipeActions[data-removing] {
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
animation: swipe-actions-collapse var(--swipe-actions-duration) var(--ease-cubic-move, ease) forwards;
|
|
54
|
+
}@keyframes swipe-actions-collapse {
|
|
55
|
+
from {
|
|
56
|
+
height: var(--swipe-actions-row-height);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
to {
|
|
60
|
+
height: 0;
|
|
61
|
+
}
|
|
49
62
|
}.Actions {
|
|
50
63
|
position: absolute;
|
|
51
64
|
inset-block: 0;
|
|
@@ -177,5 +190,9 @@
|
|
|
177
190
|
.Content {
|
|
178
191
|
transition: none;
|
|
179
192
|
}
|
|
193
|
+
|
|
194
|
+
.SwipeActions[data-removing] {
|
|
195
|
+
animation: none;
|
|
196
|
+
}
|
|
180
197
|
}
|
|
181
198
|
}
|