@plexui/styles 0.1.32 → 0.1.34

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 (81) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +30 -0
  2. package/dist/es/components/Alert/Alert.module.css +112 -1
  3. package/dist/es/components/Badge/Badge.module.css +41 -8
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +35 -1
  5. package/dist/es/components/Button/Button.module.css +178 -77
  6. package/dist/es/components/Button/NavigationButton.module.css +27 -0
  7. package/dist/es/components/Card/Card.module.css +27 -9
  8. package/dist/es/components/Checkbox/Checkbox.module.css +83 -90
  9. package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
  10. package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
  11. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  12. package/dist/es/components/DataTable/DataTable.module.css +35 -5
  13. package/dist/es/components/DatePicker/Calendar.module.css +280 -3
  14. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
  15. package/dist/es/components/DateRangePicker/Calendar.module.css +223 -3
  16. package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
  17. package/dist/es/components/Dialog/Dialog.module.css +386 -86
  18. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +89 -14
  19. package/dist/es/components/Field/Field.module.css +346 -19
  20. package/dist/es/components/FieldError/FieldError.module.css +13 -10
  21. package/dist/es/components/FieldGroup/FieldGroup.module.css +103 -4
  22. package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
  23. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +46 -14
  24. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +36 -14
  25. package/dist/es/components/Indicator/LoadingIndicator.module.css +48 -6
  26. package/dist/es/components/Input/Input.module.css +195 -25
  27. package/dist/es/components/InputGroup/InputGroup.module.css +5 -1
  28. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
  29. package/dist/es/components/Menu/Menu.module.css +425 -33
  30. package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
  31. package/dist/es/components/Page/Page.module.css +217 -20
  32. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  33. package/dist/es/components/Popover/Popover.module.css +10 -1
  34. package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
  35. package/dist/es/components/Select/Select.module.css +162 -13
  36. package/dist/es/components/SelectControl/SelectControl.module.css +118 -11
  37. package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
  38. package/dist/es/components/Sidebar/Sidebar.module.css +347 -72
  39. package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
  40. package/dist/es/components/Slider/Slider.module.css +96 -52
  41. package/dist/es/components/Sortable/Sortable.module.css +20 -7
  42. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  43. package/dist/es/components/Switch/Switch.module.css +16 -7
  44. package/dist/es/components/TabBar/TabBar.module.css +233 -0
  45. package/dist/es/components/Table/Table.module.css +4 -2
  46. package/dist/es/components/Tabs/Tabs.module.css +186 -6
  47. package/dist/es/components/TagInput/TagInput.module.css +64 -19
  48. package/dist/es/components/TextLink/TextLink.module.css +4 -4
  49. package/dist/es/components/Textarea/Textarea.module.css +1 -1
  50. package/dist/es/components/Toast/Toast.module.css +120 -5
  51. package/dist/es/components/Toolbar/Toolbar.module.css +579 -0
  52. package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
  53. package/dist/es/styles/base.css +1 -1
  54. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  58. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  59. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  60. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  61. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  62. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  63. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  64. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  65. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  66. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  67. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  68. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  69. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  70. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  71. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  72. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  73. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  74. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  75. package/dist/es/styles/katex.min.css +666 -730
  76. package/dist/es/styles/mobile-materials.css +69 -0
  77. package/dist/es/styles/mobile-surfaces.css +46 -0
  78. package/dist/es/styles/touch.css +524 -63
  79. package/dist/es/styles/variables-components.css +286 -7
  80. package/package.json +1 -1
  81. package/postcss/mixins.mjs +1 -1
@@ -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);
@@ -171,6 +177,8 @@
171
177
  --dialog-panel-radius: var(--dialog-panel-corner);
172
178
  --dialog-panel-padding-bottom: 1.25rem;
173
179
  --dialog-panel-hidden-transform: scale(0.95) translateY(8px);
180
+ /* A centered panel scales in with a fade, even when its desktop placement slides in opaque. */
181
+ --dialog-panel-hidden-opacity: 0;
174
182
  --dialog-enter-duration: var(--motion-enter);
175
183
  --dialog-exit-duration: var(--motion-exit);
176
184
  --dialog-exit-easing: var(--cubic-exit-snappy);
@@ -186,6 +194,9 @@
186
194
  --dialog-panel-radius: var(--dialog-panel-corner) var(--dialog-panel-corner) 0 0;
187
195
  --dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
188
196
  --dialog-panel-hidden-transform: translateY(100%);
197
+ /* A bottom panel (a Sheet) slides up and back down opaque, as UIKit's default modal presentation
198
+ (coverVertical) does; only the scrim fades. A fading panel let the page show through it. */
199
+ --dialog-panel-hidden-opacity: 1;
189
200
  --dialog-enter-duration: var(--motion-enter-large);
190
201
  --dialog-exit-duration: var(--motion-exit-large);
191
202
  --dialog-exit-easing: var(--cubic-exit);
@@ -200,10 +211,11 @@
200
211
  --dialog-panel-max-height: none;
201
212
  --dialog-panel-radius: 0;
202
213
  --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);
214
+ --dialog-panel-hidden-transform: translateY(100%);
215
+ --dialog-panel-hidden-opacity: 1;
216
+ --dialog-enter-duration: var(--motion-enter-large);
217
+ --dialog-exit-duration: var(--motion-exit-large);
218
+ --dialog-exit-easing: var(--cubic-enter);
207
219
  }
208
220
  }.CloseButton {
209
221
  position: absolute;
@@ -222,18 +234,45 @@
222
234
  transition: background-color 0.2s var(--cubic-enter), color 0.2s var(--cubic-enter);
223
235
  }
224
236
 
225
- .CloseButton:hover {
226
- background: var(--dialog-close-background-hover);
227
- color: var(--color-text);
237
+ @media (hover: hover) and (pointer: fine) {
238
+ .CloseButton:hover:where(:not(:root[data-input="touch"] *)) {
239
+ background: var(--dialog-close-background-hover);
240
+ color: var(--color-text);
241
+ }
228
242
  }
229
243
 
230
244
  .CloseButton:focus-visible {
231
245
  outline: 2px solid var(--color-text);
232
246
  outline-offset: 2px;
233
- }.Content[data-pill] .CloseButton {
247
+ }/* NavigationButton supplies behavior/glyphs; Dialog keeps its established close face. */.Content .CloseButton[data-navigation-action] {
248
+ --button-size: 2rem;
249
+ --button-uniform-size: 2rem;
250
+ --navigation-button-icon-size: 20px;
251
+ padding: 0;
252
+ border-radius: 0.5rem;
253
+ background: var(--dialog-close-background);
254
+ color: var(--color-text-tertiary);
255
+ transition: background-color 0.2s var(--cubic-enter), color 0.2s var(--cubic-enter);
256
+ }
257
+
258
+ @media (hover: hover) and (pointer: fine) {
259
+ .Content .CloseButton[data-navigation-action]:hover:where(:not(:root[data-input="touch"] *)) {
260
+ background: var(--dialog-close-background-hover);
261
+ color: var(--color-text);
262
+ }
263
+ }
264
+
265
+ .Content .CloseButton[data-navigation-action]::after { display: none; }
266
+
267
+ .Content .CloseButton[data-navigation-action]:focus-visible {
268
+ outline: 2px solid var(--color-text);
269
+ outline-offset: 2px;
270
+ }@media (min-width: 768px) {
271
+ .Content .CloseButton[data-navigation-action]::before {
272
+ display: none;
273
+ }
274
+ }.Content[data-pill] .CloseButton {
234
275
  border-radius: var(--radius-full);
235
- }.CloseIcon {
236
- display: block;
237
276
  }.Header {
238
277
  display: flex;
239
278
  flex-shrink: 0;
@@ -275,7 +314,16 @@
275
314
  font-size: 0.875rem;
276
315
  line-height: 1.5;
277
316
  color: var(--color-text-secondary);
278
- }@media (width <= 640px) {
317
+ }@media (width <= 767px) {
318
+ .Panel,
319
+ .Body {
320
+ scrollbar-width: none;
321
+ }
322
+
323
+ .Panel::-webkit-scrollbar, .Body::-webkit-scrollbar {
324
+ display: none;
325
+ }
326
+
279
327
  .CloseButton {
280
328
  top: 0.5rem;
281
329
  right: 0.5rem;
@@ -291,30 +339,51 @@
291
339
  position: absolute;
292
340
  inset: calc((var(--dialog-mobile-action-size) - var(--dialog-mobile-close-size)) / 2);
293
341
  border-radius: inherit;
294
- background: var(--dialog-mobile-close-background);
342
+ background: var(--mobile-glass-background, var(--dialog-mobile-close-background));
343
+ background-image: var(--mobile-glass-sheen, none);
344
+ box-shadow: var(--mobile-glass-shadow, 0 0 #00000000);
345
+ backdrop-filter: var(--mobile-glass-backdrop-filter, none);
295
346
  content: "";
296
347
  pointer-events: none;
297
348
  transition: background-color 0.2s var(--cubic-enter);
298
349
  }
299
350
 
300
- .CloseButton:hover {
301
- background: transparent;
351
+ @media (hover: hover) and (pointer: fine) {
352
+ .CloseButton:hover:where(:not(:root[data-input="touch"] *)) {
353
+ background: transparent;
354
+ }
355
+ }
356
+
357
+ @media (hover: hover) and (pointer: fine) {
358
+ .CloseButton:hover:where(:not(:root[data-input="touch"] *))::before {
359
+ background-color: var(--mobile-glass-background-hover, var(--color-background-secondary-soft-alpha-hover));
360
+ }
302
361
  }
303
362
 
304
- .CloseButton:hover::before {
305
- background: var(--color-background-secondary-soft-alpha-hover);
363
+ .CloseButton:active::before {
364
+ background-color: var(--mobile-glass-background-active, var(--color-background-secondary-soft-alpha-hover));
306
365
  }
307
366
 
308
367
  .CloseButton:focus-visible {
309
368
  outline-offset: -4px;
310
369
  }
311
370
 
312
- .CloseIcon {
313
- position: relative;
314
- width: var(--dialog-mobile-close-icon-size);
315
- height: var(--dialog-mobile-close-icon-size);
371
+ .Content .CloseButton[data-navigation-action] {
372
+ --button-size: var(--dialog-mobile-action-size);
373
+ --button-uniform-size: var(--dialog-mobile-action-size);
374
+ --navigation-button-icon-size: var(--dialog-mobile-close-icon-size);
375
+ border-radius: var(--radius-full);
376
+ background: transparent;
377
+ color: var(--color-text-secondary);
316
378
  }
317
379
 
380
+ @media (hover: hover) and (pointer: fine) {
381
+ .Content .CloseButton[data-navigation-action]:hover:where(:not(:root[data-input="touch"] *)) { background: transparent; }
382
+ }
383
+
384
+ .Content .CloseButton[data-navigation-action]:focus-visible { outline-offset: -4px; }
385
+
386
+
318
387
  .Panel:has(> .CloseButton) > .Header > :first-child {
319
388
  padding-inline-end: calc(var(--dialog-mobile-action-size) - 0.75rem);
320
389
  }
@@ -325,12 +394,20 @@
325
394
 
326
395
  .Footer > * {
327
396
  width: 100%;
397
+ }
398
+
399
+ .Footer > :where(button, a, [role="link"]) {
328
400
  --button-size: var(--dialog-mobile-action-size);
329
401
  --button-radius: var(--dialog-mobile-action-radius);
330
402
  --button-font-size: var(--dialog-mobile-action-font-size);
331
403
  --button-gutter: var(--control-gutter-xl);
332
404
  }
333
- }/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 640px) {
405
+ }/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 767px) {
406
+ /* A phone Sheet or Alert dims the page as iOS does: less than a desktop modal in light. */
407
+ .Overlay:has(+ .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"])) {
408
+ background: var(--dialog-mobile-scrim);
409
+ }
410
+
334
411
  .Content[data-mobile-variant="alert"] {
335
412
  --dialog-content-align: center;
336
413
  --dialog-content-justify: center;
@@ -341,9 +418,17 @@
341
418
  --dialog-panel-radius: var(--dialog-alert-radius);
342
419
  }
343
420
 
421
+ /* iOS 27 alerts (kit iOS 27, Alerts 65:57149, Side-by-Side): glass, fields and actions 14 from the edge, the
422
+ title 22 from the top and from the sides, the message 10 under the title, both 17/22 (the title semibold),
423
+ 24 from the text to a field or the actions, a field block of 52px rows, 19 under it to the actions, 8
424
+ between two actions. The colors follow native frames (mobile-materials.css): the message is the secondary
425
+ label, as in Files (owner 08.11); native iOS 26 frames (iOS2 IMG_5532, IMG_5533) also set it at 15/20. */
344
426
  .Content[data-mobile-variant="alert"] .Panel {
345
427
  gap: 10px;
346
428
  padding: var(--dialog-alert-padding);
429
+ background: var(--dialog-alert-background, var(--dialog-panel-background, var(--color-surface-elevated)));
430
+ box-shadow: var(--dialog-alert-shadow, var(--shadow-lg), var(--shadow-hairline));
431
+ backdrop-filter: var(--dialog-alert-backdrop-filter, none);
347
432
  }
348
433
 
349
434
  .Content[data-mobile-variant="alert"] .CloseButton,
@@ -352,8 +437,8 @@
352
437
  }
353
438
 
354
439
  .Content[data-mobile-variant="alert"] .Header {
355
- gap: 10px;
356
- padding: 8px 8px 24px;
440
+ gap: var(--dialog-alert-header-gap, 10px);
441
+ padding: var(--dialog-alert-header-padding, 8px 8px 14px);
357
442
  }
358
443
 
359
444
  .Content[data-mobile-variant="alert"] .Header > :first-child {
@@ -371,19 +456,38 @@
371
456
  }
372
457
 
373
458
  .Content[data-mobile-variant="alert"] .Description {
374
- color: var(--color-text);
459
+ color: var(--dialog-alert-message-color, var(--color-text));
460
+ font-size: var(--dialog-alert-message-size, 17px);
461
+ line-height: var(--dialog-alert-message-leading, 22px);
462
+ }
463
+
464
+ /* The message of an iOS alert is plain text: a code or a name in it reads as the rest of the message. A link
465
+ keeps its own color and underline, so it still reads as a link (WCAG 1.4.1). */
466
+ .Content[data-mobile-variant="alert"] .Description * {
467
+ padding: 0;
468
+ border: 0;
469
+ background: none;
470
+ font: inherit;
471
+ letter-spacing: inherit;
472
+ }
473
+
474
+ .Content[data-mobile-variant="alert"] .Description *:not(a, a *) {
475
+ color: inherit;
476
+ text-decoration: none;
375
477
  }
376
478
 
479
+ /* A text field fills the alert as its actions do: a 52px row with 26px corners, 19 above the actions. */
377
480
  .Content[data-mobile-variant="alert"] .Body {
481
+ --control-size-3xl: var(--dialog-alert-field-height, 52px);
378
482
  margin-inline: 0;
379
- padding: 2px 8px;
483
+ padding: 0 0 9px;
380
484
  }
381
485
 
382
486
  .Content[data-mobile-variant] .Footer {
383
487
  gap: 10px;
384
488
  }
385
489
 
386
- .Content[data-mobile-variant] .Footer > * {
490
+ .Content[data-mobile-variant] .Footer > :where(button, a, [role="link"]) {
387
491
  --button-size: var(--dialog-alert-action-height);
388
492
  --button-font-size: var(--dialog-mobile-type-size);
389
493
  --button-gutter: 16px;
@@ -415,9 +519,42 @@
415
519
  overflow-wrap: anywhere;
416
520
  }
417
521
 
522
+ /* Native alert actions are semibold, and a soft action and a field share the fill of the glass,
523
+ about 13% of the label color in both themes (light 202 on 232, dark 73 on 46). */
524
+ .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]) {
525
+ --button-font-weight: var(--dialog-alert-action-font-weight, 600);
526
+ }
527
+
528
+ .Content[data-mobile-variant="alert"] .Footer > [data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]) {
529
+ --button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
530
+ }
531
+
532
+ /* A destructive action is the fill of the other actions with a red label (kit iOS 27, Alerts _Buttons,
533
+ Role=Destructive) */
534
+ .Content[data-mobile-variant="alert"] .Footer > [data-color="danger"]:where([data-variant="solid"], [data-variant="soft"]) {
535
+ --button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
536
+ --button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
537
+ --button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
538
+ --button-text-color: var(--color-text-danger);
539
+ --button-text-color-hover: var(--color-text-danger);
540
+ }
541
+
542
+ .Content[data-mobile-variant="alert"] .Body {
543
+ --input-soft-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
544
+ }
545
+
546
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) {
547
+ -moz-column-gap: var(--dialog-alert-action-gap, 8px);
548
+ column-gap: var(--dialog-alert-action-gap, 8px);
549
+ }
550
+
551
+ .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > * {
552
+ min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
553
+ }
554
+
418
555
  .Content[data-mobile-variant="sheet"] {
419
556
  --field-group-radius: 26px;
420
- --dialog-panel-max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 16px);
557
+ --dialog-panel-max-height: calc(100dvh - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 16px);
421
558
  --dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
422
559
  }
423
560
 
@@ -436,42 +573,22 @@
436
573
  overflow: hidden;
437
574
  }
438
575
 
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;
576
+ /* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the grabber, the row of controls and
577
+ the title are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
578
+ row leaves it. */
579
+ .BarHeading > * {
580
+ max-width: 100%;
464
581
  }
465
582
 
466
- /* The reference title sits 13px into the 44px toolbar, 2px below its geometric center. */
583
+ .Content[data-mobile-variant="alert"] .Title,
467
584
  .Content[data-mobile-variant="sheet"] .Title {
468
- transform: translateY(2px);
585
+ font-weight: 590;
469
586
  }
470
587
 
471
588
  .Content[data-mobile-variant="sheet"] .CloseButton {
472
- z-index: 1;
473
- top: 16px;
474
- inset-inline-start: 16px;
589
+ z-index: 3;
590
+ top: var(--dialog-sheet-action-inset-block, 16px);
591
+ inset-inline-start: var(--dialog-sheet-action-inset-inline, var(--mobile-layout-margin, 16px));
475
592
  inset-inline-end: auto;
476
593
  width: var(--dialog-sheet-close-size);
477
594
  height: var(--dialog-sheet-close-size);
@@ -481,43 +598,201 @@
481
598
  inset: 0;
482
599
  }
483
600
 
484
- .Content[data-mobile-variant="sheet"] .HeaderAction {
485
- top: 16px;
486
- inset-inline-end: 16px;
601
+ .Content[data-mobile-variant="sheet"] .CloseButton[data-navigation-action] {
602
+ --button-size: var(--dialog-sheet-close-size);
603
+ --button-uniform-size: var(--dialog-sheet-close-size);
604
+ --navigation-button-icon-size: var(--dialog-sheet-close-icon-size);
605
+ /* The glass Close glyph uses the same label role as Page NavigationButton close (IMG_5453). */
606
+ color: var(--color-text);
487
607
  }
488
608
 
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
- }
609
+ /* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
610
+ control. Native iOS 26 sheets (Calendar, IMG_5433 light, iOS2 IMG_5522 dark) light the glass along both
611
+ edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom, rather
612
+ than darkening its top. In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
613
+ and a soft shadow at rest, 3 levels just under it and gone within 12pt; dark glass has neither.
614
+ The rim of light runs along the top and the bottom and fades out at the sides, where the outline is
615
+ darker instead: the disabled checkmark of Calendar (IMG_5433, 08.11) is white at 0.67pt top and
616
+ bottom, about 230 on the diagonals and none at the sides, with an outline of 194 top and bottom and
617
+ 155 at the sides. A rim on the top-left and bottom-right corners lit one diagonal only and made a
618
+ round button read as an oval (owner, 08.11). */
619
+ .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
620
+ --mobile-glass-sheen: linear-gradient(light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 6%)), transparent 6px, transparent calc(100% - 8px), light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 4%)));
621
+ }
622
+ .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton), :where([data-theme="light"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
623
+ --mobile-glass-shadow: 0 4px 12px rgb(0 0 0 / 2%), 0 0 0 0.5px rgb(0 0 0 / 12%), 1.25px 0 0 -0.75px rgb(0 0 0 / 16%), -1.25px 0 0 -0.75px rgb(0 0 0 / 16%), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
624
+ }
625
+ :where([data-theme="dark"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
626
+ --mobile-glass-shadow: 0 4px 12px transparent, 0 0 0 0.5px transparent, 1.25px 0 0 -0.75px transparent, -1.25px 0 0 -0.75px transparent, inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
627
+ }
498
628
 
629
+ /* With no footer, the content ends above the home indicator, as Files ends its View Options footnote about
630
+ 35pt above the sheet's edge (iOS-menu IMG_5686): the bottom safe area, at least 16px. */
499
631
  .Content[data-mobile-variant="sheet"] .Body {
500
632
  margin-inline: 0;
501
- padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
633
+ padding: 16px var(--mobile-layout-margin, 16px) max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
502
634
  }
503
635
 
504
- .Content[data-mobile-variant="sheet"] .Panel:has(> .Footer) > .Body {
505
- padding-bottom: 16px;
636
+ /* A phone Toolbar takes the place of the Sheet's bar. The header keeps naming the dialog. */
637
+ .Panel:has(> [data-toolbar][data-placement="top"]) > .Header {
638
+ position: absolute;
639
+ width: 1px;
640
+ height: 1px;
641
+ min-height: 0;
642
+ margin: -1px;
643
+ padding: 0;
644
+ overflow: hidden;
645
+ clip-path: inset(50%);
646
+ white-space: nowrap;
647
+ }
648
+
649
+ .Panel:has(> [data-toolbar][data-placement="top"]) > .CloseButton,
650
+ .Panel:has(> [data-toolbar][data-placement="bottom"]) > .Footer {
651
+ display: none;
652
+ }
653
+
654
+ /* A Toolbar the dialog places itself takes the place of the bar its header becomes: that bar keeps naming
655
+ the dialog, unseen, without a second Close. */
656
+ .Panel:has(> [data-toolbar][data-placement="top"]:not([data-dialog-bar])) > [data-dialog-bar] {
657
+ position: absolute;
658
+ width: 1px;
659
+ height: 1px;
660
+ min-height: 0;
661
+ margin: -1px;
662
+ padding: 0;
663
+ overflow: hidden;
664
+ clip-path: inset(50%);
665
+ white-space: nowrap;
666
+ }
667
+
668
+ .Panel:has(> [data-toolbar][data-placement="top"]:not([data-dialog-bar])) > [data-dialog-bar] > .BarClose {
669
+ display: none;
670
+ }
671
+
672
+ /* At rest the content starts where the bar's soft edge ends, so none of it lies under the edge: Files
673
+ View Options starts its first group 32.7pt under the bar (IMG_5686: 64.7pt below the centre of the row
674
+ of controls); 16px left the first group and the first line of text cut by the edge (owner 08.11). */
675
+ .Content[data-mobile-variant="sheet"] .Panel > .Body {
676
+ margin-top: calc(-1 * var(--dialog-header-height, 0px));
677
+ margin-bottom: calc(-1 * var(--dialog-footer-height, 0px));
678
+ padding-top: calc(var(--page-bar-soft-tail, 32px) + var(--dialog-header-height, 0px));
679
+ padding-bottom: calc(max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))) + var(--dialog-footer-height, 0px));
680
+ scroll-padding-top: calc(var(--page-bar-soft-tail, 32px) + var(--dialog-header-height, 0px));
681
+ scroll-padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
682
+ }
683
+
684
+ /* A footer keeps its actions above the home indicator itself: the content ends 16px above the footer. */
685
+ .Content[data-mobile-variant="sheet"] .Panel:has(> .Footer, > [data-toolbar][data-placement="bottom"]) > .Body {
686
+ padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
687
+ }
688
+
689
+ /* The bars of a Sheet meet the content scrolled under them by their `background`, as the bars of a
690
+ phone Toolbar do: by default the soft scroll edge of iOS 26. The material sits on a pseudo-element, so
691
+ Header does not become a backdrop root: HeaderAction and the sibling Close sample the same content.
692
+ Soft: under the header the panel color covers the content to its bottom and fades out past it, as a
693
+ Toolbar's soft edge does; over the
694
+ footer it starts 27px above the actions (IMG_5491) and covers the content fully from their top, so no text
695
+ shows through a soft action such as Decline (owner 07.11). */
696
+ .Content[data-mobile-variant="sheet"] .Header::after,
697
+ .Content[data-mobile-variant="sheet"] .Footer::before {
698
+ position: absolute;
699
+ z-index: -1;
700
+ background: var(--dialog-panel-background, var(--color-surface-elevated));
701
+ backdrop-filter: blur(var(--toolbar-edge-blur-small));
702
+ content: "";
703
+ pointer-events: none;
704
+ transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
705
+ }
706
+
707
+ .Content[data-mobile-variant="sheet"] .Header::after {
708
+ inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
709
+ border-radius: var(--dialog-panel-radius);
710
+ -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
711
+ mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
712
+ }
713
+
714
+ .Content[data-mobile-variant="sheet"] .Footer::before {
715
+ inset: -15px 0 0;
716
+ -webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
717
+ mask-image: linear-gradient(to bottom, transparent, #000 27px);
718
+ }
719
+
720
+ /* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar; hard
721
+ and glass then draw a line on the edge that faces the content. */
722
+ .Content[data-mobile-variant="sheet"] .Header:not([data-background="soft"])::after,
723
+ .Content[data-mobile-variant="sheet"] .Footer:not([data-background="soft"])::before {
724
+ inset: 0;
725
+ backdrop-filter: none;
726
+ -webkit-mask-image: none;
727
+ mask-image: none;
728
+ }
729
+
730
+ .Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after,
731
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
732
+ background: var(--page-bar-veil);
733
+ backdrop-filter: var(--page-bar-glass-filter);
734
+ opacity: 0;
735
+ }
736
+
737
+ .Content[data-mobile-variant="sheet"] .Header[data-background="hard"]::after {
738
+ border-bottom: 1px solid transparent;
739
+ }
740
+
741
+ .Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after {
742
+ border-bottom: 0.5px solid var(--page-bar-line);
743
+ }
744
+
745
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="hard"]::before {
746
+ border-top: 1px solid transparent;
747
+ }
748
+
749
+ .Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
750
+ border-top: 0.5px solid var(--page-bar-line);
751
+ }
752
+
753
+ .Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background="hard"]::after {
754
+ border-bottom-color: var(--page-bar-hard-line);
755
+ }
756
+
757
+ .Content[data-mobile-variant="sheet"] .Footer[data-content-below][data-background="hard"]::before {
758
+ border-top-color: var(--page-bar-hard-line);
759
+ }
760
+
761
+ .Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background="glass"]::after,
762
+ .Content[data-mobile-variant="sheet"] .Footer[data-content-below][data-background="glass"]::before {
763
+ opacity: 1;
506
764
  }
507
765
 
508
766
  .Content[data-mobile-variant="sheet"] .Footer {
509
- padding: 16px 24px max(24px, env(safe-area-inset-bottom, 0px));
767
+ position: relative;
768
+ z-index: 2;
769
+ padding: 12px 16px max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
510
770
  }
511
771
 
512
- .Content[data-mobile-variant="sheet"] .Footer > * {
772
+ .Content[data-mobile-variant="sheet"] .Footer > :where(button, a, [role="link"]) {
513
773
  --button-size: var(--dialog-sheet-action-height);
514
774
  min-height: var(--dialog-sheet-action-height);
515
775
  padding-block: 14px;
516
776
  }
517
777
 
778
+ /* The prominent action of a sheet's footer takes the accent and the edge of the glass, as a bar's does (see
779
+ the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
780
+ bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). */
781
+ .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
782
+ --button-background-color: var(--toolbar-prominent-background);
783
+ --button-background-color-hover: var(--toolbar-prominent-background-hover);
784
+ --button-background-color-active: var(--toolbar-prominent-background-active);
785
+ --button-text-color: var(--toolbar-prominent-color);
786
+ }
787
+
788
+ .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
789
+ background-image: var(--toolbar-prominent-sheen);
790
+ box-shadow: var(--toolbar-prominent-shadow);
791
+ }
792
+
518
793
  .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);
794
+ min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
795
+ padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
521
796
  }
522
797
 
523
798
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header::before {
@@ -526,8 +801,33 @@
526
801
 
527
802
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .CloseButton,
528
803
  .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .HeaderAction {
529
- top: env(safe-area-inset-top, 0px);
804
+ top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
805
+ }
806
+
807
+ }/* Surface roles are independent of alert/sheet geometry and bar materials. */@media (max-width: 767px) {
808
+ .Content {
809
+ --mobile-surface-primary: var(--mobile-surface-elevated-plain-primary, var(--color-surface-elevated));
810
+ --mobile-surface-secondary: var(--mobile-surface-elevated-plain-secondary, var(--color-background-secondary-soft-alpha));
811
+ --mobile-surface-tertiary: var(--mobile-surface-elevated-plain-tertiary, var(--color-surface-elevated-secondary));
812
+ --dialog-panel-background: var(--mobile-surface-primary);
813
+ --field-group-background: var(--mobile-surface-secondary);
814
+ --file-upload-list-background: transparent;
815
+ --file-upload-list-border-width: 1px;
816
+ --mobile-neutral-outline-background: initial;
817
+ --mobile-neutral-outline-hover: initial;
818
+ --mobile-neutral-outline-active: initial;
819
+ --page-bar-veil: color-mix(in srgb, var(--dialog-panel-background) var(--page-bar-veil-opacity), transparent);
820
+ }
821
+
822
+ .Content[data-surface="grouped"] {
823
+ --mobile-surface-primary: var(--mobile-surface-elevated-grouped-primary, var(--color-surface-elevated-secondary));
824
+ --mobile-surface-secondary: var(--mobile-surface-elevated-grouped-secondary, var(--color-surface-elevated));
825
+ --mobile-surface-tertiary: var(--mobile-surface-elevated-grouped-tertiary, var(--color-surface-elevated-secondary));
826
+ --file-upload-list-background: var(--mobile-surface-secondary);
827
+ --file-upload-list-border-width: 0px;
828
+ --mobile-neutral-outline-background: var(--mobile-surface-secondary);
829
+ --mobile-neutral-outline-hover: color-mix(in srgb, var(--mobile-surface-secondary) 96%, var(--color-text));
830
+ --mobile-neutral-outline-active: color-mix(in srgb, var(--mobile-surface-secondary) 94%, var(--color-text));
530
831
  }
531
-
532
832
  }
533
833
  }