@plexui/styles 0.1.31 → 0.1.33

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.
Files changed (50) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +16 -0
  2. package/dist/es/components/Badge/Badge.module.css +41 -8
  3. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +1 -1
  4. package/dist/es/components/Button/Button.module.css +117 -64
  5. package/dist/es/components/Button/NavigationButton.module.css +27 -0
  6. package/dist/es/components/Card/Card.module.css +5 -3
  7. package/dist/es/components/Checkbox/Checkbox.module.css +80 -41
  8. package/dist/es/components/DataTable/DataTable.module.css +31 -5
  9. package/dist/es/components/DatePicker/Calendar.module.css +267 -3
  10. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
  11. package/dist/es/components/DateRangePicker/Calendar.module.css +205 -3
  12. package/dist/es/components/Dialog/Dialog.module.css +227 -50
  13. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +58 -14
  14. package/dist/es/components/Field/Field.module.css +164 -2
  15. package/dist/es/components/FieldError/FieldError.module.css +13 -10
  16. package/dist/es/components/FieldGroup/FieldGroup.module.css +64 -5
  17. package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
  18. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +25 -14
  19. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +20 -14
  20. package/dist/es/components/Indicator/LoadingIndicator.module.css +41 -6
  21. package/dist/es/components/Input/Input.module.css +126 -25
  22. package/dist/es/components/InputGroup/InputGroup.module.css +1 -1
  23. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
  24. package/dist/es/components/Menu/Menu.module.css +162 -20
  25. package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
  26. package/dist/es/components/Page/Page.module.css +140 -11
  27. package/dist/es/components/RadioGroup/RadioGroup.module.css +17 -11
  28. package/dist/es/components/Select/Select.module.css +118 -13
  29. package/dist/es/components/SelectControl/SelectControl.module.css +83 -11
  30. package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
  31. package/dist/es/components/Sidebar/Sidebar.module.css +74 -18
  32. package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
  33. package/dist/es/components/Slider/Slider.module.css +53 -16
  34. package/dist/es/components/Sortable/Sortable.module.css +13 -4
  35. package/dist/es/components/Switch/Switch.module.css +16 -7
  36. package/dist/es/components/Table/Table.module.css +4 -2
  37. package/dist/es/components/Tabs/Tabs.module.css +39 -6
  38. package/dist/es/components/TagInput/TagInput.module.css +64 -19
  39. package/dist/es/components/TextLink/TextLink.module.css +4 -4
  40. package/dist/es/components/Textarea/Textarea.module.css +1 -1
  41. package/dist/es/components/Toast/Toast.module.css +72 -2
  42. package/dist/es/components/Toolbar/Toolbar.module.css +389 -0
  43. package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
  44. package/dist/es/styles/base.css +1 -1
  45. package/dist/es/styles/mobile-materials.css +27 -0
  46. package/dist/es/styles/mobile-surfaces.css +39 -0
  47. package/dist/es/styles/touch.css +287 -54
  48. package/dist/es/styles/variables-components.css +61 -0
  49. package/package.json +1 -1
  50. package/postcss/mixins.mjs +1 -1
@@ -12,7 +12,7 @@
12
12
  height: 224px;
13
13
  }
14
14
 
15
- @media (min-width: 576px) {.CalendarContainer {
15
+ @media (min-width: 768px) {.CalendarContainer {
16
16
  width: calc(var(--calendar-width) * 2 + 32px);
17
17
  }
18
18
  }.Previous {
@@ -85,6 +85,8 @@
85
85
  }.CalendarWrapper {
86
86
  overflow: hidden;
87
87
  padding: 10px 12px 12px;
88
+ }.CalendarViewport {
89
+ display: contents;
88
90
  }.CalendarRange {
89
91
  transition: transform 0.25s var(--cubic-move);
90
92
  }.ButtonText {
@@ -257,8 +259,10 @@ background-color: var(--alpha-08);
257
259
  opacity 0.15s var(--cubic-enter);
258
260
  }
259
261
 
260
- .InteractiveDay:hover::before {
261
- opacity: 1;
262
+ @media (hover: hover) and (pointer: fine) {
263
+ .InteractiveDay:hover:where(:not(:root[data-input="touch"] *))::before {
264
+ opacity: 1;
265
+ }
262
266
  }
263
267
 
264
268
  .InteractiveDay[disabled] {
@@ -294,5 +298,203 @@ background-color: var(--alpha-08);
294
298
  width: 150px;
295
299
  padding: calc(var(--spacing) * 2);
296
300
  border-right: 1px solid var(--color-border);
301
+ }/* The caption keeps its compact desktop abbreviations. */.LongDayLabel {
302
+ display: none;
303
+ }/* Keep 44px edge circles concentric with the popup corners. */@media (max-width: 767px) {
304
+ .Popover[role="dialog"],
305
+ .CalendarWrapper {
306
+ --calendar-gutter: clamp(3px, calc((100vw - 308px) / 4), 16px);
307
+ --calendar-inner-padding: min(max(0px, calc(var(--menu-radius, 32px) - 22px)), var(--calendar-gutter));
308
+ --calendar-header-height: calc(44px + 2 * var(--calendar-inner-padding));
309
+ --calendar-caption-inset: 96px;
310
+ }
311
+
312
+ .Popover[role="dialog"] {
313
+ /* The narrow-screen radius follows the available inset; it is a fit
314
+ constraint, not a separate measured native corner radius. */
315
+ --popover-radius: calc(22px + var(--calendar-inner-padding));
316
+
317
+ background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
318
+ box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
319
+ backdrop-filter: blur(50px);
320
+ }
321
+
322
+ .CalendarWrapper {
323
+ /* Preserve the outer collision gutter; the inner inset follows the
324
+ corner geometry while seven 44px targets still fit at 320px. */
325
+ box-sizing: border-box;
326
+ width: min(370px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 370px));
327
+ padding: 0 var(--calendar-inner-padding);
328
+ }
329
+
330
+ .CalendarContainer {
331
+ --cell-size: 44px;
332
+ --cell-vertical-gutter: 7px;
333
+ --calendar-width: min(350px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 370px) - 2 * var(--calendar-inner-padding)));
334
+
335
+ width: var(--calendar-width);
336
+ }
337
+
338
+ /* The month slides inside a stationary viewport. Only the title band
339
+ reserves the navigation area; weekday labels and days keep the full width. */
340
+ .CalendarViewport {
341
+ position: absolute;
342
+ inset: 0;
343
+ display: block;
344
+ clip-path: polygon(
345
+ 0 0,
346
+ calc(100% - var(--calendar-caption-inset)) 0,
347
+ calc(100% - var(--calendar-caption-inset)) var(--calendar-header-height),
348
+ 100% var(--calendar-header-height),
349
+ 100% 100%,
350
+ 0 100%
351
+ );
352
+ }
353
+
354
+ .Calendar {
355
+ --cell-size: 44px;
356
+ --cell-vertical-gutter: 7px;
357
+
358
+ box-sizing: border-box;
359
+ padding-bottom: var(--calendar-inner-padding);
360
+ }
361
+
362
+ .Previous,
363
+ .Next {
364
+ top: var(--calendar-inner-padding);
365
+ left: auto;
366
+ background: none;
367
+ }
368
+
369
+ .Previous {
370
+ right: 44px;
371
+ }
372
+
373
+ .Next {
374
+ right: 0;
375
+ }
376
+
377
+ .Previous::before,
378
+ .Previous::after,
379
+ .Next::before,
380
+ .Next::after {
381
+ display: none;
382
+ }
383
+
384
+ /* Base Button supplies the active circle. Idle and hover remain
385
+ transparent; the navigation target stays 44px throughout. */
386
+ .Previous button[type="button"],
387
+ .Next button[type="button"] {
388
+ --button-size: 44px;
389
+ --button-gutter: 0px;
390
+ --button-icon-size: 24px;
391
+ --button-text-color: var(--color-text-primary);
392
+ --button-text-color-hover: var(--color-text-primary);
393
+ --button-radius: var(--radius-full);
394
+ --button-mobile-material-background: transparent;
395
+ --button-mobile-material-hover: transparent;
396
+ --button-mobile-material-active: var(--button-background-color-active);
397
+ --button-mobile-material-shadow: none;
398
+ --button-mobile-material-backdrop-filter: none;
399
+ --button-mobile-material-opacity: 0;
400
+ --button-mobile-material-scale: 1;
401
+
402
+ width: 44px;
403
+ padding: 0;
404
+ }
405
+
406
+ /* Keep the agreed Phone focus treatment: real keyboard focus, no drawn ring. */
407
+ .Previous button[type="button"]::after,
408
+ .Next button[type="button"]::after {
409
+ display: none;
410
+ }
411
+
412
+ /* Equal insets above and below the 44px navigation targets. */
413
+ .MonthLabel {
414
+ box-sizing: border-box;
415
+ justify-content: flex-start;
416
+ height: var(--calendar-header-height);
417
+ padding: 0 var(--calendar-caption-inset) 0 max(0px, calc(var(--field-row-padding-inline, 16px) - var(--calendar-inner-padding)));
418
+ margin: 0;
419
+ font-size: 17px;
420
+ font-weight: 590;
421
+ line-height: 22px;
422
+ letter-spacing: -0.43px;
423
+ }
424
+
425
+ .Week {
426
+ display: grid;
427
+ grid-template-columns: repeat(7, var(--cell-size));
428
+ justify-content: space-between;
429
+ }
430
+
431
+ .WeekdayHeader {
432
+ align-items: center;
433
+ height: 20px;
434
+ margin-bottom: 3px;
435
+ }
436
+
437
+ .DayLabel {
438
+ width: var(--cell-size);
439
+ height: 18px;
440
+ color: var(--color-text-tertiary);
441
+ font-size: 13px;
442
+ font-weight: 590;
443
+ line-height: 18px;
444
+ text-transform: uppercase;
445
+ }
446
+
447
+ .ShortDayLabel {
448
+ display: none;
449
+ }
450
+
451
+ .LongDayLabel {
452
+ display: inline;
453
+ }
454
+
455
+ .InteractiveDay {
456
+ padding: 0;
457
+ font-size: 17px;
458
+ line-height: 22px;
459
+ }
460
+
461
+ .TodayDot {
462
+ display: none;
463
+ }
464
+ }@media (max-width: 767px) {
465
+ .CalendarContainer {
466
+ --calendar-day-gap: max(0px, calc((var(--calendar-width) - 7 * var(--cell-size)) / 6));
467
+ }
468
+
469
+ /* Keep the same 44px columns as DatePicker. Paint only the gap between
470
+ cells, so the translucent range fill never stacks over a day. */
471
+ .Day::after {
472
+ position: absolute;
473
+ top: 0;
474
+ bottom: 0;
475
+ left: 100%;
476
+ width: var(--calendar-day-gap);
477
+ background-color: transparent;
478
+ content: "";
479
+ pointer-events: none;
480
+ transition: background-color 0.15s var(--cubic-enter);
481
+ }
482
+
483
+ /* A first-month trail fades to the left and still needs its right bridge.
484
+ The last-month trail already paints a right fade, so do not overlap it. */
485
+ .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after, :where([data-theme="light"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
486
+ background-color: var(--alpha-06);
487
+ }
488
+ :where([data-theme="dark"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
489
+ background-color: var(--alpha-08);
490
+ }
491
+ }@media (prefers-reduced-motion: reduce) {
492
+ .CalendarContainer {
493
+ --calendar-height-duration: 0ms;
494
+ }
495
+
496
+ .CalendarRange {
497
+ transition: none;
498
+ }
297
499
  }
298
500
  }
@@ -69,10 +69,12 @@
69
69
  max-height: var(--dialog-panel-max-height);
70
70
  overflow: auto;
71
71
  border-radius: var(--dialog-panel-radius);
72
- background: var(--color-surface-elevated);
72
+ background: var(--dialog-panel-background, var(--color-surface-elevated));
73
73
  box-shadow: var(--shadow-lg), var(--shadow-hairline);
74
74
  padding: 1.25rem 1.25rem var(--dialog-panel-padding-bottom);
75
75
  pointer-events: auto;
76
+ /* A released drag holds here until the owner starts exit or returns to rest. */
77
+ transform: var(--dialog-panel-drag-transform, none);
76
78
  }
77
79
 
78
80
  /* With a Body, only the body scrolls: the header and footer stay in view */
@@ -81,14 +83,14 @@
81
83
  }
82
84
 
83
85
  .Transition[data-entering] .Panel {
84
- opacity: 0;
86
+ opacity: var(--dialog-panel-hidden-opacity, 0);
85
87
  transform: var(--dialog-panel-hidden-transform);
86
88
  }
87
89
 
88
90
  .Transition[data-entering-active] .Panel,
89
91
  .Transition[data-entering][data-interrupted] .Panel {
90
92
  opacity: 1;
91
- transform: scale(1) translateY(0);
93
+ transform: var(--dialog-panel-drag-transform, scale(1) translateY(0));
92
94
  transition:
93
95
  opacity var(--dialog-enter-duration) var(--cubic-enter),
94
96
  transform var(--dialog-enter-duration) var(--cubic-enter);
@@ -96,12 +98,12 @@
96
98
 
97
99
  .Transition[data-exiting] .Panel {
98
100
  opacity: 1;
99
- transform: scale(1) translateY(0);
101
+ transform: var(--dialog-panel-drag-transform, scale(1) translateY(0));
100
102
  }
101
103
 
102
104
  .Transition[data-exiting-active] .Panel,
103
105
  .Transition[data-exiting][data-interrupted] .Panel {
104
- opacity: 0;
106
+ opacity: var(--dialog-panel-hidden-opacity, 0);
105
107
  transform: var(--dialog-panel-hidden-transform);
106
108
  transition:
107
109
  opacity var(--dialog-exit-duration) var(--dialog-exit-easing),
@@ -111,7 +113,7 @@
111
113
  scrollbar-width: thin;
112
114
  scrollbar-color: var(--scrollbar-color) transparent;
113
115
  }/* =============================================
114
- Placement: `placement` everywhere, `mobilePlacement` at 640px and below
116
+ Placement: `placement` everywhere, `mobilePlacement` at 767px and below
115
117
  ============================================= */.Content:where([data-placement="top"]) {
116
118
  --dialog-content-align: flex-start;
117
119
  --dialog-content-padding: min(12vh, 6rem) 1rem 1rem;
@@ -154,8 +156,12 @@
154
156
  --dialog-panel-max-height: none;
155
157
  --dialog-panel-radius: 0;
156
158
  --dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
157
- --dialog-panel-hidden-transform: translateY(8px);
158
- }@media (width <= 640px) {
159
+ --dialog-panel-hidden-transform: translateY(100%);
160
+ --dialog-panel-hidden-opacity: 1;
161
+ --dialog-enter-duration: var(--motion-enter-large);
162
+ --dialog-exit-duration: var(--motion-exit-large);
163
+ --dialog-exit-easing: var(--cubic-enter);
164
+ }@media (width <= 767px) {
159
165
  .Content,
160
166
  .Content[data-pill] {
161
167
  --dialog-panel-corner: var(--dialog-mobile-radius);
@@ -200,10 +206,11 @@
200
206
  --dialog-panel-max-height: none;
201
207
  --dialog-panel-radius: 0;
202
208
  --dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
203
- --dialog-panel-hidden-transform: translateY(8px);
204
- --dialog-enter-duration: var(--motion-enter);
205
- --dialog-exit-duration: var(--motion-exit);
206
- --dialog-exit-easing: var(--cubic-exit-snappy);
209
+ --dialog-panel-hidden-transform: translateY(100%);
210
+ --dialog-panel-hidden-opacity: 1;
211
+ --dialog-enter-duration: var(--motion-enter-large);
212
+ --dialog-exit-duration: var(--motion-exit-large);
213
+ --dialog-exit-easing: var(--cubic-enter);
207
214
  }
208
215
  }.CloseButton {
209
216
  position: absolute;
@@ -222,18 +229,45 @@
222
229
  transition: background-color 0.2s var(--cubic-enter), color 0.2s var(--cubic-enter);
223
230
  }
224
231
 
225
- .CloseButton:hover {
226
- background: var(--dialog-close-background-hover);
227
- color: var(--color-text);
232
+ @media (hover: hover) and (pointer: fine) {
233
+ .CloseButton:hover:where(:not(:root[data-input="touch"] *)) {
234
+ background: var(--dialog-close-background-hover);
235
+ color: var(--color-text);
236
+ }
228
237
  }
229
238
 
230
239
  .CloseButton:focus-visible {
231
240
  outline: 2px solid var(--color-text);
232
241
  outline-offset: 2px;
233
- }.Content[data-pill] .CloseButton {
242
+ }/* NavigationButton supplies behavior/glyphs; Dialog keeps its established close face. */.Content .CloseButton[data-navigation-action] {
243
+ --button-size: 2rem;
244
+ --button-uniform-size: 2rem;
245
+ --navigation-button-icon-size: 20px;
246
+ padding: 0;
247
+ border-radius: 0.5rem;
248
+ background: var(--dialog-close-background);
249
+ color: var(--color-text-tertiary);
250
+ transition: background-color 0.2s var(--cubic-enter), color 0.2s var(--cubic-enter);
251
+ }
252
+
253
+ @media (hover: hover) and (pointer: fine) {
254
+ .Content .CloseButton[data-navigation-action]:hover:where(:not(:root[data-input="touch"] *)) {
255
+ background: var(--dialog-close-background-hover);
256
+ color: var(--color-text);
257
+ }
258
+ }
259
+
260
+ .Content .CloseButton[data-navigation-action]::after { display: none; }
261
+
262
+ .Content .CloseButton[data-navigation-action]:focus-visible {
263
+ outline: 2px solid var(--color-text);
264
+ outline-offset: 2px;
265
+ }@media (min-width: 768px) {
266
+ .Content .CloseButton[data-navigation-action]::before {
267
+ display: none;
268
+ }
269
+ }.Content[data-pill] .CloseButton {
234
270
  border-radius: var(--radius-full);
235
- }.CloseIcon {
236
- display: block;
237
271
  }.Header {
238
272
  display: flex;
239
273
  flex-shrink: 0;
@@ -275,7 +309,16 @@
275
309
  font-size: 0.875rem;
276
310
  line-height: 1.5;
277
311
  color: var(--color-text-secondary);
278
- }@media (width <= 640px) {
312
+ }@media (width <= 767px) {
313
+ .Panel,
314
+ .Body {
315
+ scrollbar-width: none;
316
+ }
317
+
318
+ .Panel::-webkit-scrollbar, .Body::-webkit-scrollbar {
319
+ display: none;
320
+ }
321
+
279
322
  .CloseButton {
280
323
  top: 0.5rem;
281
324
  right: 0.5rem;
@@ -291,30 +334,51 @@
291
334
  position: absolute;
292
335
  inset: calc((var(--dialog-mobile-action-size) - var(--dialog-mobile-close-size)) / 2);
293
336
  border-radius: inherit;
294
- background: var(--dialog-mobile-close-background);
337
+ background: var(--mobile-glass-background, var(--dialog-mobile-close-background));
338
+ background-image: var(--mobile-glass-sheen, none);
339
+ box-shadow: var(--mobile-glass-shadow, 0 0 #00000000);
340
+ backdrop-filter: var(--mobile-glass-backdrop-filter, none);
295
341
  content: "";
296
342
  pointer-events: none;
297
343
  transition: background-color 0.2s var(--cubic-enter);
298
344
  }
299
345
 
300
- .CloseButton:hover {
301
- background: transparent;
346
+ @media (hover: hover) and (pointer: fine) {
347
+ .CloseButton:hover:where(:not(:root[data-input="touch"] *)) {
348
+ background: transparent;
349
+ }
302
350
  }
303
351
 
304
- .CloseButton:hover::before {
305
- background: var(--color-background-secondary-soft-alpha-hover);
352
+ @media (hover: hover) and (pointer: fine) {
353
+ .CloseButton:hover:where(:not(:root[data-input="touch"] *))::before {
354
+ background-color: var(--mobile-glass-background-hover, var(--color-background-secondary-soft-alpha-hover));
355
+ }
356
+ }
357
+
358
+ .CloseButton:active::before {
359
+ background-color: var(--mobile-glass-background-active, var(--color-background-secondary-soft-alpha-hover));
306
360
  }
307
361
 
308
362
  .CloseButton:focus-visible {
309
363
  outline-offset: -4px;
310
364
  }
311
365
 
312
- .CloseIcon {
313
- position: relative;
314
- width: var(--dialog-mobile-close-icon-size);
315
- height: var(--dialog-mobile-close-icon-size);
366
+ .Content .CloseButton[data-navigation-action] {
367
+ --button-size: var(--dialog-mobile-action-size);
368
+ --button-uniform-size: var(--dialog-mobile-action-size);
369
+ --navigation-button-icon-size: var(--dialog-mobile-close-icon-size);
370
+ border-radius: var(--radius-full);
371
+ background: transparent;
372
+ color: var(--color-text-secondary);
316
373
  }
317
374
 
375
+ @media (hover: hover) and (pointer: fine) {
376
+ .Content .CloseButton[data-navigation-action]:hover:where(:not(:root[data-input="touch"] *)) { background: transparent; }
377
+ }
378
+
379
+ .Content .CloseButton[data-navigation-action]:focus-visible { outline-offset: -4px; }
380
+
381
+
318
382
  .Panel:has(> .CloseButton) > .Header > :first-child {
319
383
  padding-inline-end: calc(var(--dialog-mobile-action-size) - 0.75rem);
320
384
  }
@@ -325,12 +389,15 @@
325
389
 
326
390
  .Footer > * {
327
391
  width: 100%;
392
+ }
393
+
394
+ .Footer > :where(button, a, [role="link"]) {
328
395
  --button-size: var(--dialog-mobile-action-size);
329
396
  --button-radius: var(--dialog-mobile-action-radius);
330
397
  --button-font-size: var(--dialog-mobile-action-font-size);
331
398
  --button-gutter: var(--control-gutter-xl);
332
399
  }
333
- }/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 640px) {
400
+ }/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 767px) {
334
401
  .Content[data-mobile-variant="alert"] {
335
402
  --dialog-content-align: center;
336
403
  --dialog-content-justify: center;
@@ -362,10 +429,11 @@
362
429
 
363
430
  .Content[data-mobile-variant="alert"] .Title,
364
431
  .Content[data-mobile-variant="alert"] .Description,
365
- .Content[data-mobile-variant="sheet"] .Title {
432
+ .Content[data-mobile-variant="sheet"] .Title,
433
+ .Content[data-mobile-variant="sheet"] .Description {
366
434
  font-size: var(--dialog-mobile-type-size);
367
435
  line-height: var(--dialog-mobile-type-leading);
368
- letter-spacing: -0.43px;
436
+ /* System SF already applies optical tracking. Do not double the Figma adjustment. */
369
437
  overflow-wrap: anywhere;
370
438
  }
371
439
 
@@ -382,7 +450,7 @@
382
450
  gap: 10px;
383
451
  }
384
452
 
385
- .Content[data-mobile-variant] .Footer > * {
453
+ .Content[data-mobile-variant] .Footer > :where(button, a, [role="link"]) {
386
454
  --button-size: var(--dialog-alert-action-height);
387
455
  --button-font-size: var(--dialog-mobile-type-size);
388
456
  --button-gutter: 16px;
@@ -416,7 +484,7 @@
416
484
 
417
485
  .Content[data-mobile-variant="sheet"] {
418
486
  --field-group-radius: 26px;
419
- --dialog-panel-max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 16px);
487
+ --dialog-panel-max-height: calc(100dvh - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 16px);
420
488
  --dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
421
489
  }
422
490
 
@@ -437,6 +505,7 @@
437
505
 
438
506
  .Content[data-mobile-variant="sheet"] .Header {
439
507
  position: relative;
508
+ z-index: 2;
440
509
  gap: 0;
441
510
  min-height: 70px;
442
511
  padding: 16px 68px 10px;
@@ -450,7 +519,7 @@
450
519
  width: 36px;
451
520
  height: 5px;
452
521
  border-radius: var(--radius-full);
453
- background: var(--color-background-secondary-soft-alpha);
522
+ background: var(--mobile-grabber-color, var(--color-background-secondary-soft-alpha));
454
523
  content: "";
455
524
  }
456
525
 
@@ -462,10 +531,20 @@
462
531
  padding-inline-end: 0;
463
532
  }
464
533
 
534
+ /* The reference title sits 13px into the 44px toolbar, 2px below its geometric center. */
535
+ .Content[data-mobile-variant="alert"] .Title,
536
+ .Content[data-mobile-variant="sheet"] .Title {
537
+ font-weight: 590;
538
+ }
539
+
540
+ .Content[data-mobile-variant="sheet"] .Title {
541
+ transform: translateY(2px);
542
+ }
543
+
465
544
  .Content[data-mobile-variant="sheet"] .CloseButton {
466
- z-index: 1;
467
- top: 16px;
468
- inset-inline-start: 16px;
545
+ z-index: 3;
546
+ top: var(--dialog-sheet-action-inset-block, 16px);
547
+ inset-inline-start: var(--dialog-sheet-action-inset-inline, 16px);
469
548
  inset-inline-end: auto;
470
549
  width: var(--dialog-sheet-close-size);
471
550
  height: var(--dialog-sheet-close-size);
@@ -475,37 +554,110 @@
475
554
  inset: 0;
476
555
  }
477
556
 
557
+ .Content[data-mobile-variant="sheet"] .CloseButton[data-navigation-action] {
558
+ --button-size: var(--dialog-sheet-close-size);
559
+ --button-uniform-size: var(--dialog-sheet-close-size);
560
+ --navigation-button-icon-size: var(--dialog-sheet-close-icon-size);
561
+ /* The glass Close glyph uses the same label role as Page NavigationButton close (IMG_5453). */
562
+ color: var(--color-text);
563
+ }
564
+
478
565
  .Content[data-mobile-variant="sheet"] .HeaderAction {
479
- top: 16px;
480
- inset-inline-end: 16px;
566
+ z-index: 3;
567
+ top: var(--dialog-sheet-action-inset-block, 16px);
568
+ inset-inline-end: var(--dialog-sheet-action-inset-inline, 16px);
481
569
  }
482
570
 
483
571
  .Content[data-mobile-variant="sheet"] .HeaderAction > button {
484
572
  --button-size: var(--dialog-sheet-close-size);
485
- --button-icon-size: 24px;
486
573
  }
487
574
 
488
- .Content[data-mobile-variant="sheet"] .CloseIcon {
489
- width: var(--dialog-sheet-close-icon-size);
490
- height: var(--dialog-sheet-close-icon-size);
575
+ .Content[data-mobile-variant="sheet"] .HeaderAction > button:not([data-navigation-action]) {
576
+ --button-icon-size: 24px;
577
+ }
578
+
579
+ .Content[data-mobile-variant="sheet"] .HeaderAction > button:where(:not([data-disabled], [data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
580
+ --button-mobile-material-background: var(--mobile-glass-background);
581
+ --button-mobile-material-hover: var(--mobile-glass-background-hover);
582
+ --button-mobile-material-active: var(--mobile-glass-background-active);
583
+ --button-mobile-material-sheen: var(--mobile-glass-sheen);
584
+ --button-mobile-material-shadow: var(--mobile-glass-shadow);
585
+ --button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
586
+ --button-mobile-material-opacity: 1;
587
+ --button-mobile-material-scale: 1;
491
588
  }
492
589
 
590
+
493
591
  .Content[data-mobile-variant="sheet"] .Body {
494
592
  margin-inline: 0;
495
593
  padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
496
594
  }
497
595
 
498
- .Content[data-mobile-variant="sheet"] .Panel:has(> .Footer) > .Body {
499
- padding-bottom: 16px;
596
+ /* A phone Toolbar takes the place of the Sheet's bar. The header keeps naming the dialog. */
597
+ .Panel:has(> [data-toolbar][data-placement="top"]) > .Header {
598
+ position: absolute;
599
+ width: 1px;
600
+ height: 1px;
601
+ min-height: 0;
602
+ margin: -1px;
603
+ padding: 0;
604
+ overflow: hidden;
605
+ clip-path: inset(50%);
606
+ white-space: nowrap;
607
+ }
608
+
609
+ .Panel:has(> [data-toolbar][data-placement="top"]) > .CloseButton,
610
+ .Panel:has(> [data-toolbar][data-placement="bottom"]) > .Footer {
611
+ display: none;
500
612
  }
501
613
 
614
+ .Content[data-mobile-variant="sheet"] .Panel > .Body {
615
+ margin-top: calc(-1 * var(--dialog-header-height, 0px));
616
+ margin-bottom: calc(-1 * var(--dialog-footer-height, 0px));
617
+ padding-top: calc(16px + var(--dialog-header-height, 0px));
618
+ padding-bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + var(--dialog-footer-height, 0px));
619
+ scroll-padding-top: calc(16px + var(--dialog-header-height, 0px));
620
+ scroll-padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
621
+ }
622
+
623
+ /* Keep the bar material behind its controls without making Header a
624
+ backdrop root: HeaderAction and the sibling Close sample the same content. */
625
+ .Content[data-mobile-variant="sheet"] .Header::after {
626
+ position: absolute;
627
+ z-index: -1;
628
+ inset: 0;
629
+ border-radius: var(--dialog-panel-radius);
630
+ content: "";
631
+ pointer-events: none;
632
+ }
633
+
634
+ .Content[data-mobile-variant="sheet"] .Header::after,
502
635
  .Content[data-mobile-variant="sheet"] .Footer {
503
- padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
636
+ background: var(--page-bar-veil);
637
+ backdrop-filter: blur(20px) saturate(180%);
638
+ }
639
+
640
+ .Content[data-mobile-variant="sheet"] .Header[data-background="solid"]::after,
641
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="solid"] {
642
+ background: var(--dialog-panel-background, var(--color-surface-elevated));
643
+ backdrop-filter: none;
644
+ }
645
+
646
+ .Content[data-mobile-variant="sheet"] .Footer {
647
+ position: relative;
648
+ z-index: 2;
649
+ padding: 12px 16px max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
650
+ }
651
+
652
+ .Content[data-mobile-variant="sheet"] .Footer > :where(button, a, [role="link"]) {
653
+ --button-size: var(--dialog-sheet-action-height);
654
+ min-height: var(--dialog-sheet-action-height);
655
+ padding-block: 14px;
504
656
  }
505
657
 
506
658
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
507
- min-height: calc(54px + env(safe-area-inset-top, 0px));
508
- padding-top: env(safe-area-inset-top, 0px);
659
+ min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
660
+ padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
509
661
  }
510
662
 
511
663
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header::before {
@@ -514,8 +666,33 @@
514
666
 
515
667
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .CloseButton,
516
668
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .HeaderAction {
517
- top: env(safe-area-inset-top, 0px);
669
+ top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
670
+ }
671
+
672
+ }/* Surface roles are independent of alert/sheet geometry and bar materials. */@media (max-width: 767px) {
673
+ .Content {
674
+ --mobile-surface-primary: var(--mobile-surface-elevated-plain-primary, var(--color-surface-elevated));
675
+ --mobile-surface-secondary: var(--mobile-surface-elevated-plain-secondary, var(--color-background-secondary-soft-alpha));
676
+ --mobile-surface-tertiary: var(--mobile-surface-elevated-plain-tertiary, var(--color-surface-elevated-secondary));
677
+ --dialog-panel-background: var(--mobile-surface-primary);
678
+ --field-group-background: var(--mobile-surface-secondary);
679
+ --file-upload-list-background: transparent;
680
+ --file-upload-list-border-width: 1px;
681
+ --mobile-neutral-outline-background: initial;
682
+ --mobile-neutral-outline-hover: initial;
683
+ --mobile-neutral-outline-active: initial;
684
+ --page-bar-veil: color-mix(in srgb, var(--dialog-panel-background) var(--page-bar-veil-opacity), transparent);
685
+ }
686
+
687
+ .Content[data-surface="grouped"] {
688
+ --mobile-surface-primary: var(--mobile-surface-elevated-grouped-primary, var(--color-surface-elevated-secondary));
689
+ --mobile-surface-secondary: var(--mobile-surface-elevated-grouped-secondary, var(--color-surface-elevated));
690
+ --mobile-surface-tertiary: var(--mobile-surface-elevated-grouped-tertiary, var(--color-surface-elevated-secondary));
691
+ --file-upload-list-background: var(--mobile-surface-secondary);
692
+ --file-upload-list-border-width: 0px;
693
+ --mobile-neutral-outline-background: var(--mobile-surface-secondary);
694
+ --mobile-neutral-outline-hover: color-mix(in srgb, var(--mobile-surface-secondary) 96%, var(--color-text));
695
+ --mobile-neutral-outline-active: color-mix(in srgb, var(--mobile-surface-secondary) 94%, var(--color-text));
518
696
  }
519
-
520
697
  }
521
698
  }