@plexui/styles 0.1.30 → 0.1.32
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/Dialog/Dialog.module.css +211 -0
- package/dist/es/components/FieldGroup/FieldGroup.module.css +20 -1
- package/dist/es/components/Page/Page.module.css +6 -1
- package/dist/es/components/RadioGroup/RadioGroup.module.css +9 -3
- package/dist/es/styles/touch.css +17 -7
- package/dist/es/styles/variables-components.css +10 -0
- package/package.json +1 -1
|
@@ -252,6 +252,18 @@
|
|
|
252
252
|
flex-shrink: 0;
|
|
253
253
|
justify-content: flex-end;
|
|
254
254
|
gap: 0.5rem;
|
|
255
|
+
}.HeaderAction {
|
|
256
|
+
position: absolute;
|
|
257
|
+
top: 0.75rem;
|
|
258
|
+
inset-inline-end: 3.25rem;
|
|
259
|
+
display: flex;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.HeaderAction > button {
|
|
263
|
+
--button-size: 2rem;
|
|
264
|
+
--button-radius: var(--radius-full);
|
|
265
|
+
}.Panel:has(.HeaderAction) > .Header {
|
|
266
|
+
padding-inline-end: 4.75rem;
|
|
255
267
|
}.Title {
|
|
256
268
|
margin: 0;
|
|
257
269
|
font-size: 1.125rem;
|
|
@@ -318,5 +330,204 @@
|
|
|
318
330
|
--button-font-size: var(--dialog-mobile-action-font-size);
|
|
319
331
|
--button-gutter: var(--control-gutter-xl);
|
|
320
332
|
}
|
|
333
|
+
}/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 640px) {
|
|
334
|
+
.Content[data-mobile-variant="alert"] {
|
|
335
|
+
--dialog-content-align: center;
|
|
336
|
+
--dialog-content-justify: center;
|
|
337
|
+
--dialog-content-padding: 1rem;
|
|
338
|
+
--dialog-panel-width: var(--dialog-alert-width);
|
|
339
|
+
--dialog-panel-height: auto;
|
|
340
|
+
--dialog-panel-max-height: calc(100dvh - 2rem);
|
|
341
|
+
--dialog-panel-radius: var(--dialog-alert-radius);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.Content[data-mobile-variant="alert"] .Panel {
|
|
345
|
+
gap: 10px;
|
|
346
|
+
padding: var(--dialog-alert-padding);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.Content[data-mobile-variant="alert"] .CloseButton,
|
|
350
|
+
.Content[data-mobile-variant="alert"] .HeaderAction {
|
|
351
|
+
display: none;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.Content[data-mobile-variant="alert"] .Header {
|
|
355
|
+
gap: 10px;
|
|
356
|
+
padding: 8px 8px 24px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.Content[data-mobile-variant="alert"] .Header > :first-child {
|
|
360
|
+
padding-inline-end: 0;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.Content[data-mobile-variant="alert"] .Title,
|
|
364
|
+
.Content[data-mobile-variant="alert"] .Description,
|
|
365
|
+
.Content[data-mobile-variant="sheet"] .Title,
|
|
366
|
+
.Content[data-mobile-variant="sheet"] .Description {
|
|
367
|
+
font-size: var(--dialog-mobile-type-size);
|
|
368
|
+
line-height: var(--dialog-mobile-type-leading);
|
|
369
|
+
/* System SF already applies optical tracking. Do not double the Figma adjustment. */
|
|
370
|
+
overflow-wrap: anywhere;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.Content[data-mobile-variant="alert"] .Description {
|
|
374
|
+
color: var(--color-text);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.Content[data-mobile-variant="alert"] .Body {
|
|
378
|
+
margin-inline: 0;
|
|
379
|
+
padding: 2px 8px;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.Content[data-mobile-variant] .Footer {
|
|
383
|
+
gap: 10px;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.Content[data-mobile-variant] .Footer > * {
|
|
387
|
+
--button-size: var(--dialog-alert-action-height);
|
|
388
|
+
--button-font-size: var(--dialog-mobile-type-size);
|
|
389
|
+
--button-gutter: 16px;
|
|
390
|
+
min-width: 0;
|
|
391
|
+
max-width: 100%;
|
|
392
|
+
min-height: var(--dialog-alert-action-height);
|
|
393
|
+
height: auto;
|
|
394
|
+
padding-block: 13px;
|
|
395
|
+
line-height: var(--dialog-mobile-type-leading);
|
|
396
|
+
white-space: normal;
|
|
397
|
+
overflow-wrap: anywhere;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]),
|
|
401
|
+
.Content .Footer[data-mobile-layout="inline"] {
|
|
402
|
+
flex-flow: row wrap;
|
|
403
|
+
gap: 10px 16px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > *, .Content .Footer[data-mobile-layout="inline"] > * {
|
|
407
|
+
flex: 1 0 auto;
|
|
408
|
+
width: auto;
|
|
409
|
+
min-width: calc(50% - 8px);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.Content .Footer[data-mobile-layout="inline"] > * {
|
|
413
|
+
max-width: 100%;
|
|
414
|
+
white-space: normal;
|
|
415
|
+
overflow-wrap: anywhere;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.Content[data-mobile-variant="sheet"] {
|
|
419
|
+
--field-group-radius: 26px;
|
|
420
|
+
--dialog-panel-max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 16px);
|
|
421
|
+
--dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] {
|
|
425
|
+
--dialog-panel-max-height: 100dvh;
|
|
426
|
+
--dialog-panel-radius: 0;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.Content[data-mobile-variant="sheet"] .Panel {
|
|
430
|
+
gap: 0;
|
|
431
|
+
padding: 0;
|
|
432
|
+
overflow: auto;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.Content[data-mobile-variant="sheet"] .Panel:has(> .Body) {
|
|
436
|
+
overflow: hidden;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.Content[data-mobile-variant="sheet"] .Header {
|
|
440
|
+
position: relative;
|
|
441
|
+
gap: 0;
|
|
442
|
+
min-height: 70px;
|
|
443
|
+
padding: 16px 68px 10px;
|
|
444
|
+
text-align: center;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.Content[data-mobile-variant="sheet"] .Header::before {
|
|
448
|
+
position: absolute;
|
|
449
|
+
top: 5px;
|
|
450
|
+
left: calc(50% - 18px);
|
|
451
|
+
width: 36px;
|
|
452
|
+
height: 5px;
|
|
453
|
+
border-radius: var(--radius-full);
|
|
454
|
+
background: var(--color-background-secondary-soft-alpha);
|
|
455
|
+
content: "";
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.Content[data-mobile-variant="sheet"] .Header > :first-child {
|
|
459
|
+
display: flex;
|
|
460
|
+
align-items: center;
|
|
461
|
+
justify-content: center;
|
|
462
|
+
min-height: 44px;
|
|
463
|
+
padding-inline-end: 0;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/* The reference title sits 13px into the 44px toolbar, 2px below its geometric center. */
|
|
467
|
+
.Content[data-mobile-variant="sheet"] .Title {
|
|
468
|
+
transform: translateY(2px);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.Content[data-mobile-variant="sheet"] .CloseButton {
|
|
472
|
+
z-index: 1;
|
|
473
|
+
top: 16px;
|
|
474
|
+
inset-inline-start: 16px;
|
|
475
|
+
inset-inline-end: auto;
|
|
476
|
+
width: var(--dialog-sheet-close-size);
|
|
477
|
+
height: var(--dialog-sheet-close-size);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.Content[data-mobile-variant="sheet"] .CloseButton::before {
|
|
481
|
+
inset: 0;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.Content[data-mobile-variant="sheet"] .HeaderAction {
|
|
485
|
+
top: 16px;
|
|
486
|
+
inset-inline-end: 16px;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.Content[data-mobile-variant="sheet"] .HeaderAction > button {
|
|
490
|
+
--button-size: var(--dialog-sheet-close-size);
|
|
491
|
+
--button-icon-size: 24px;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.Content[data-mobile-variant="sheet"] .CloseIcon {
|
|
495
|
+
width: var(--dialog-sheet-close-icon-size);
|
|
496
|
+
height: var(--dialog-sheet-close-icon-size);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.Content[data-mobile-variant="sheet"] .Body {
|
|
500
|
+
margin-inline: 0;
|
|
501
|
+
padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.Content[data-mobile-variant="sheet"] .Panel:has(> .Footer) > .Body {
|
|
505
|
+
padding-bottom: 16px;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.Content[data-mobile-variant="sheet"] .Footer {
|
|
509
|
+
padding: 16px 24px max(24px, env(safe-area-inset-bottom, 0px));
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.Content[data-mobile-variant="sheet"] .Footer > * {
|
|
513
|
+
--button-size: var(--dialog-sheet-action-height);
|
|
514
|
+
min-height: var(--dialog-sheet-action-height);
|
|
515
|
+
padding-block: 14px;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
|
|
519
|
+
min-height: calc(54px + env(safe-area-inset-top, 0px));
|
|
520
|
+
padding-top: env(safe-area-inset-top, 0px);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header::before {
|
|
524
|
+
display: none;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .CloseButton,
|
|
528
|
+
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .HeaderAction {
|
|
529
|
+
top: env(safe-area-inset-top, 0px);
|
|
530
|
+
}
|
|
531
|
+
|
|
321
532
|
}
|
|
322
533
|
}
|
|
@@ -30,8 +30,27 @@
|
|
|
30
30
|
border: var(--field-group-border-width) solid var(--color-border);
|
|
31
31
|
border-radius: var(--field-group-radius);
|
|
32
32
|
background: var(--field-group-background);
|
|
33
|
-
}.Body > [data-row] + [data-row],
|
|
33
|
+
}/* Desktop separators remain part of the row border. */.Body > [data-row] + [data-row],
|
|
34
34
|
.Body > [data-sortable] > [data-row] + [data-row] {
|
|
35
35
|
border-top: 1px solid var(--color-border);
|
|
36
|
+
}@media (max-width: 767px) {
|
|
37
|
+
.Body > [data-row] + [data-row],
|
|
38
|
+
.Body > [data-sortable] > [data-row] + [data-row] {
|
|
39
|
+
position: relative;
|
|
40
|
+
border-top-width: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Draw inside the row: 44px controls + 4px padding on each side stay 52px.
|
|
44
|
+
Sortable owns ::before for its drag placeholder, so use ::after here. */
|
|
45
|
+
.Body > [data-row] + [data-row]::after,
|
|
46
|
+
.Body > [data-sortable] > [data-row] + [data-row]::after {
|
|
47
|
+
content: "";
|
|
48
|
+
position: absolute;
|
|
49
|
+
inset-inline: var(--field-group-separator-inset, 0px);
|
|
50
|
+
top: 0;
|
|
51
|
+
height: 1px;
|
|
52
|
+
background: var(--color-border);
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
36
55
|
}
|
|
37
56
|
}
|
|
@@ -15,10 +15,15 @@
|
|
|
15
15
|
.Page[data-width="column"] {
|
|
16
16
|
--page-width: var(--page-width-column);
|
|
17
17
|
}/* Header and content read one width, so the line, the title, the buttons and the content are one column. */.Head,
|
|
18
|
-
.Column
|
|
18
|
+
.Column,
|
|
19
|
+
.FooterContent {
|
|
19
20
|
width: 100%;
|
|
20
21
|
max-width: var(--page-width, none);
|
|
21
22
|
margin-inline: auto;
|
|
23
|
+
}.Footer {
|
|
24
|
+
flex: none;
|
|
25
|
+
padding: 16px var(--page-footer-gutter, var(--page-gutter)) var(--page-footer-padding-bottom, max(16px, env(safe-area-inset-bottom, 0px)));
|
|
26
|
+
background: var(--page-background);
|
|
22
27
|
}.Header {
|
|
23
28
|
flex: none;
|
|
24
29
|
padding: var(--page-header-padding-top) var(--page-gutter) 0;
|
|
@@ -82,14 +82,14 @@
|
|
|
82
82
|
border: none;
|
|
83
83
|
border-radius: var(--radius-full);
|
|
84
84
|
background-color: transparent;
|
|
85
|
-
box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color) inset;
|
|
85
|
+
box-shadow: var(--radio-group-ring, 0 0 0 1px var(--radio-group-indicator-border-color) inset);
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
transition-duration: var(--transition-duration-basic);
|
|
88
88
|
transition-property: box-shadow;
|
|
89
89
|
transition-timing-function: var(--transition-ease-basic);
|
|
90
90
|
}
|
|
91
91
|
@media (hover: hover) and (pointer: fine) {.RadioItem:where(:not([data-disabled])):hover {
|
|
92
|
-
box-shadow: 0 0 0 1px var(--radio-group-indicator-border-color-hover) inset;
|
|
92
|
+
box-shadow: var(--radio-group-ring, 0 0 0 1px var(--radio-group-indicator-border-color-hover) inset);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
|
|
116
116
|
.RadioIndicator::before,
|
|
117
117
|
.RadioIndicator::after {
|
|
118
|
-
display: block;
|
|
118
|
+
display: var(--radio-group-dot-display, block);
|
|
119
119
|
content: "";
|
|
120
120
|
grid-column-start: 1;
|
|
121
121
|
grid-row-start: 1;
|
|
@@ -155,5 +155,11 @@
|
|
|
155
155
|
100% {
|
|
156
156
|
opacity: 1;
|
|
157
157
|
}
|
|
158
|
+
}/* The touch stylesheet reveals this only in grouped Field rows. */.Checkmark {
|
|
159
|
+
display: var(--radio-group-checkmark-display, none);
|
|
160
|
+
grid-area: 1 / 1;
|
|
161
|
+
width: 22px;
|
|
162
|
+
height: 22px;
|
|
163
|
+
color: var(--color-text);
|
|
158
164
|
}
|
|
159
165
|
}
|
package/dist/es/styles/touch.css
CHANGED
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
--floating-input-inside-value-shift: 18px;
|
|
74
74
|
--floating-input-inside-line-height: 22px;
|
|
75
75
|
|
|
76
|
-
--field-row-min-height:
|
|
77
|
-
--field-row-padding-block:
|
|
76
|
+
--field-row-min-height: 52px;
|
|
77
|
+
--field-row-padding-block: 4px;
|
|
78
78
|
--field-row-text-padding-block: 12px;
|
|
79
79
|
--field-row-gap: 16px;
|
|
80
|
-
--field-row-text-display:
|
|
80
|
+
--field-row-text-display: flex;
|
|
81
81
|
--field-row-label-font-size: 17px;
|
|
82
82
|
--field-row-label-line-height: 22px;
|
|
83
83
|
--field-row-label-font-weight: var(--font-weight-normal);
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
--field-row-above-font-size: 15px;
|
|
87
87
|
--field-row-above-line-height: 20px;
|
|
88
88
|
--field-row-above-font-weight: var(--font-weight-normal);
|
|
89
|
-
--field-row-above-gap:
|
|
89
|
+
--field-row-above-gap: 4px;
|
|
90
90
|
--field-row-above-padding-block: 12px;
|
|
91
91
|
--field-row-list-padding-block: 12px;
|
|
92
92
|
--field-row-list-row-gap: 6px;
|
|
@@ -97,7 +97,8 @@
|
|
|
97
97
|
--badge-size-xl: 36px;
|
|
98
98
|
|
|
99
99
|
--field-group-radius: 26px;
|
|
100
|
-
--field-group-
|
|
100
|
+
--field-group-separator-inset: 16px;
|
|
101
|
+
--field-group-border-width: 1px;
|
|
101
102
|
--field-group-background: var(--color-surface);
|
|
102
103
|
--field-group-title-color: var(--color-text-secondary);
|
|
103
104
|
--field-group-title-font-size: 17px;
|
|
@@ -108,16 +109,25 @@
|
|
|
108
109
|
--field-group-description-line-height: 18px;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
html [data-mobile-placement="bottom"] {
|
|
112
|
+
html [data-mobile-placement="bottom"]:not([data-mobile-variant]) {
|
|
112
113
|
--dialog-panel-radius: 38px 38px 0 0;
|
|
113
114
|
--dialog-panel-max-height: calc(100dvh - 10px);
|
|
114
115
|
}
|
|
115
116
|
|
|
116
|
-
html [data-mobile-placement="center"] {
|
|
117
|
+
html [data-mobile-placement="center"]:not([data-mobile-variant]) {
|
|
117
118
|
--dialog-panel-width: 300px;
|
|
118
119
|
--dialog-panel-radius: 34px;
|
|
119
120
|
}
|
|
120
121
|
|
|
122
|
+
/* List choices keep their radio semantics and keyboard behavior, with the
|
|
123
|
+
trailing checkmark used by iOS lists instead of the desktop radio dot. */
|
|
124
|
+
html [data-row] {
|
|
125
|
+
--radio-group-indicator-size: 22px;
|
|
126
|
+
--radio-group-ring: none;
|
|
127
|
+
--radio-group-dot-display: none;
|
|
128
|
+
--radio-group-checkmark-display: block;
|
|
129
|
+
}
|
|
130
|
+
|
|
121
131
|
html [role="radiogroup"] {
|
|
122
132
|
--segmented-control-font-size: 15px;
|
|
123
133
|
}
|
|
@@ -362,6 +362,16 @@
|
|
|
362
362
|
--dialog-max-width: 450px;
|
|
363
363
|
--dialog-container-inner-padding: calc(var(--spacing) * 5);
|
|
364
364
|
--dialog-backdrop-fade-background: color-mix(in oklab, var(--color-surface-elevated) 60%, transparent);
|
|
365
|
+
--dialog-alert-width: 300px;
|
|
366
|
+
--dialog-alert-radius: 34px;
|
|
367
|
+
--dialog-alert-padding: 14px;
|
|
368
|
+
--dialog-alert-action-height: 48px;
|
|
369
|
+
--dialog-sheet-action-height: 50px;
|
|
370
|
+
--dialog-sheet-radius: 38px;
|
|
371
|
+
--dialog-sheet-close-size: var(--control-size-2xl);
|
|
372
|
+
--dialog-sheet-close-icon-size: 34px;
|
|
373
|
+
--dialog-mobile-type-size: 17px;
|
|
374
|
+
--dialog-mobile-type-leading: 22px;
|
|
365
375
|
--dialog-mobile-close-size: var(--control-size-md);
|
|
366
376
|
--dialog-mobile-close-icon-size: var(--control-icon-size-2xl);
|
|
367
377
|
--dialog-mobile-close-background: var(--color-background-secondary-soft-alpha);
|