@plexui/styles 0.1.32 → 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 +214 -49
  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 +44 -4
  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 +10 -10
  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 +280 -57
  48. package/dist/es/styles/variables-components.css +60 -0
  49. package/package.json +1 -1
  50. package/postcss/mixins.mjs +1 -1
@@ -3,12 +3,15 @@
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  justify-content: center;
6
+ justify-content: safe center;
7
+ box-sizing: border-box;
6
8
  min-width: min(20rem, 100%);
7
9
  }
8
10
 
9
11
  .EmptyMessage[data-fill="static"] {
10
12
  width: 100%;
11
13
  height: 100%;
14
+ flex: 1 0 auto;
12
15
  }
13
16
 
14
17
  .EmptyMessage[data-fill="absolute"] {
@@ -16,6 +19,13 @@
16
19
  inset: 0;
17
20
  }
18
21
 
22
+ .EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) {
23
+ min-block-size: -moz-min-content;
24
+ min-block-size: min-content;
25
+ padding-inline: var(--empty-message-padding-inline, 0px);
26
+ padding-bottom: var(--empty-message-padding-bottom, 0px);
27
+ }
28
+
19
29
  /* Compact: a panel, a card section or an empty list */
20
30
  .EmptyMessage[data-size="sm"] {
21
31
  min-width: 0;
@@ -33,10 +43,19 @@
33
43
  font-size: var(--font-text-sm-size);
34
44
  line-height: var(--font-text-sm-line-height);
35
45
  letter-spacing: normal;
46
+ font-weight: var(--font-weight-semibold);
47
+ }
48
+
49
+ .EmptyMessage[data-size="sm"] .Description {
50
+ color: var(--color-text-tertiary);
51
+ font-size: var(--empty-message-compact-description-size, var(--font-text-sm-size));
52
+ line-height: var(--empty-message-compact-description-leading, var(--font-text-sm-line-height));
53
+ letter-spacing: normal;
36
54
  }
37
55
 
38
56
  .EmptyMessage[data-size="sm"] .ActionRow {
39
57
  margin-top: calc(var(--spacing) * 3);
58
+ gap: calc(var(--spacing) * 2);
40
59
  }
41
60
 
42
61
  /* Left-aligned, under a section heading */
@@ -53,16 +72,16 @@
53
72
  .EmptyMessage[data-align="start"] .ActionRow {
54
73
  justify-content: flex-start;
55
74
  }.IconBadge {
56
- --badge-size: 40px;
57
- --icon-size: 24px;
75
+ --badge-size: var(--empty-message-icon-badge-size, 40px);
76
+ --icon-size: var(--empty-message-icon-size, 24px);
58
77
 
59
78
  display: flex;
60
79
  align-items: center;
61
80
  justify-content: center;
62
81
  width: var(--badge-size);
63
82
  height: var(--badge-size);
64
- border-radius: var(--radius-md);
65
- margin: 0 0 12px;
83
+ border-radius: var(--empty-message-icon-radius, var(--radius-md));
84
+ margin: 0 0 var(--empty-message-icon-gap, 12px);
66
85
  background: var(--badge-background-color);
67
86
  color: var(--badge-text-color);
68
87
  }
@@ -91,16 +110,20 @@
91
110
  --badge-background-color: var(--color-background-danger-soft);
92
111
  --badge-text-color: var(--color-text-danger-soft);
93
112
  }.Title {
94
- margin: 0 0 calc(var(--spacing) * 2);
113
+ margin: 0 0 var(--empty-message-title-gap, calc(var(--spacing) * 2));
95
114
  color: var(--color-text);
96
- font-size: var(--font-heading-xs-size);
97
- font-weight: var(--font-weight-semibold);
98
- line-height: 1.25;
99
- letter-spacing: var(--font-heading-xs-tracking);
115
+ font-size: var(--empty-message-title-size, var(--font-heading-xs-size));
116
+ font-weight: var(--empty-message-title-weight, var(--font-weight-semibold));
117
+ line-height: var(--empty-message-title-leading, 1.25);
118
+ letter-spacing: var(--empty-message-title-tracking, var(--font-heading-xs-tracking));
100
119
  text-align: center;
101
120
  text-wrap: balance;
102
121
  }
103
122
 
123
+ .Title:not(:has(+ .Description)) {
124
+ margin-bottom: var(--empty-message-title-only-gap, var(--empty-message-title-gap, calc(var(--spacing) * 2)));
125
+ }
126
+
104
127
  .Title:where([data-color="danger"]) {
105
128
  color: var(--color-text-danger);
106
129
  }
@@ -109,16 +132,37 @@
109
132
  color: var(--color-text-warning);
110
133
  }.Description {
111
134
  margin: 0;
112
- color: var(--color-text-tertiary);
113
- font-size: var(--font-text-sm-size);
114
- line-height: var(--font-text-sm-line-height);
135
+ color: var(--empty-message-description-color, var(--color-text-tertiary));
136
+ font-size: var(--empty-message-description-size, var(--font-text-sm-size));
137
+ line-height: var(--empty-message-description-leading, var(--font-text-sm-line-height));
138
+ letter-spacing: var(--empty-message-description-tracking, normal);
115
139
  text-align: center;
116
140
  text-wrap: pretty;
117
141
  }.ActionRow {
118
142
  display: flex;
119
143
  flex-wrap: wrap;
120
144
  justify-content: center;
121
- gap: calc(var(--spacing) * 2);
122
- margin-top: calc(var(--spacing) * 4);
145
+ gap: var(--empty-message-action-gap, calc(var(--spacing) * 2));
146
+ margin-top: var(--empty-message-action-spacing, calc(var(--spacing) * 4));
147
+ }/* Default actions use the same family; compact messages retain caller sizing. */.EmptyMessage:not([data-size="sm"]) .ActionRow {
148
+ --button-size-md: var(--empty-message-action-size, var(--control-size-md));
149
+ --button-font-size-md: var(--empty-message-action-font-size, var(--control-font-size-md));
150
+ --button-line-height-md: var(--empty-message-action-line-height, 1);
151
+ --button-gutter-md: var(--empty-message-action-gutter, var(--control-gutter-md));
152
+ --button-size-lg: var(--empty-message-action-size, var(--control-size-lg));
153
+ --button-font-size-lg: var(--empty-message-action-font-size, var(--control-font-size-md));
154
+ --button-line-height-lg: var(--empty-message-action-line-height, 1);
155
+ --button-gutter-lg: var(--empty-message-action-gutter, var(--control-gutter-md));
156
+ --button-size-xl: var(--empty-message-action-size, var(--control-size-xl));
157
+ --button-font-size-xl: var(--empty-message-action-font-size, var(--control-font-size-md));
158
+ --button-line-height-xl: var(--empty-message-action-line-height, 1);
159
+ --button-gutter-xl: var(--empty-message-action-gutter, var(--control-gutter-lg));
160
+ }.EmptyMessage:not([data-size="sm"]) .ActionRow:has(> :nth-child(2)) {
161
+ flex-direction: var(--empty-message-multi-direction, row);
162
+ align-self: var(--empty-message-multi-align, auto);
123
163
  }
164
+
165
+ .EmptyMessage:not([data-size="sm"]) .ActionRow:has(> :nth-child(2)) > :where(button, a) {
166
+ width: var(--empty-message-multi-action-width, auto);
167
+ }
124
168
  }
@@ -18,7 +18,7 @@
18
18
  ============================================= */.Content {
19
19
  display: flex;
20
20
  flex-direction: column;
21
- gap: var(--field-gap);
21
+ gap: var(--mobile-field-error-offset, var(--field-gap));
22
22
  }/* =============================================
23
23
  Horizontal orientation
24
24
  ============================================= */.Field:where([data-orientation="horizontal"]) {
@@ -141,7 +141,7 @@
141
141
  }/* =============================================
142
142
  Description
143
143
  ============================================= */.Description {
144
- color: var(--color-text-secondary);
144
+ color: var(--field-description-color, var(--color-text-secondary));
145
145
  font-size: var(--field-description-font-size);
146
146
  line-height: var(--field-description-line-height);
147
147
  }/* =============================================
@@ -170,6 +170,7 @@
170
170
  min-height: var(--field-row-min-height);
171
171
  padding: var(--field-row-padding-block) var(--field-row-padding-inline);
172
172
  }.Field:where([data-row]):has(.Description, .Content > :not(.Control)) {
173
+ min-height: var(--field-row-description-min-height, var(--field-row-min-height));
173
174
  padding-block: var(--field-row-text-padding-block);
174
175
  }/* Touch sizes set `contents`: the description then runs under the control too */.Field:where([data-row]) .LabelGroup {
175
176
  display: var(--field-row-text-display);
@@ -301,10 +302,77 @@
301
302
  }/* On a phone a list takes the width of its own line under the label and the action.
302
303
  The row is the frame of every field, as on iOS: the framed fields of the web read
303
304
  as the ghost above, with nothing for the author to change. */@media (max-width: 767px) {
305
+ .Field:where([data-row]) {
306
+ --field-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
307
+ --field-row-above-color: var(--mobile-label-secondary, var(--color-text-tertiary));
308
+ --input-placeholder-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
309
+ --mobile-field-error-icon-display: block;
310
+ }
311
+
312
+ .Field:where([data-row]):has(> .Content > [role="alert"]) {
313
+ row-gap: var(--mobile-field-error-offset, var(--field-row-row-gap));
314
+ }
315
+
316
+ /* Choice and popup rows forward non-interactive clicks to their control. */
317
+ .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Content > .Control [data-row]))):has(> .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):not([disabled], [data-disabled], [aria-disabled="true"], [aria-hidden="true"])),
318
+ .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
319
+ cursor: pointer;
320
+ }
321
+
322
+ /* Mobile choice rows keep keyboard focus and activation without a drawn ring. */
323
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control :is(button[role="checkbox"], button[role="radio"], button[role="switch"], input[type="checkbox"], input[type="radio"]):focus-visible {
324
+ outline: none;
325
+ }
326
+
327
+ /* Each extra label line grows a regular row by one line-height. Pad the label,
328
+ not LabelRow, so an adjacent label action keeps its independent target size. */
329
+ .Field:where([data-row]:not([data-fill], [data-orientation="vertical"]):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control)))) > .LabelGroup > .Label,
330
+ .Field:where([data-row]:not([data-fill], [data-orientation="vertical"]):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control)))) > .LabelGroup > .LabelRow > .Label {
331
+ min-width: 0;
332
+ max-width: 100%;
333
+ padding-block: max(0px, calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2 - var(--field-row-padding-block)));
334
+ overflow-wrap: anywhere;
335
+ }
336
+
337
+ /* A grouped row uses one body-text role for every value, including editable
338
+ text and inherited text adornments. Standalone TextFields keep their own typography. */
339
+ .Field:where([data-row]) .Control [data-slot="input"],
340
+ .Field:where([data-row]) .Control [data-slot="input"] > input,
341
+ .Field:where([data-row]) .Control textarea,
342
+ .Field:where([data-row]) .Control [data-slot="input-group-control"],
343
+ .Field:where([data-row]) .Control [data-variant][role="button"] {
344
+ font-size: var(--field-row-label-font-size);
345
+ font-weight: var(--font-weight-normal);
346
+ line-height: var(--field-row-label-line-height);
347
+ }
348
+
349
+ /* Keep textarea row measurement consistent with the visible line box. */
350
+ .Field:where([data-row]) .Control > [data-variant]:has(> textarea) {
351
+ --textarea-line-height: var(--field-row-label-line-height);
352
+ }
353
+
354
+ .Field:where([data-row]) .Control [data-slot="input-group"] {
355
+ --input-group-line-height: var(--field-row-label-line-height);
356
+ }
357
+
304
358
  .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) {
305
359
  grid-template-columns: minmax(0, 1fr) auto;
306
360
  }
307
361
 
362
+ /* The label shares the action's first grid row, independently of list wrapping. */
363
+ .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) > .LabelGroup {
364
+ align-self: center;
365
+ }
366
+
367
+ .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) > .LabelGroup > :is(.Label, .LabelRow) {
368
+ padding-block: 0;
369
+ }
370
+
371
+ /* With no list, center the action in a regular row; populated lists keep their wrapping space. */
372
+ .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action):has(.Control:empty, .Control > div:empty:only-child) {
373
+ padding-block: max(0px, calc((var(--field-row-min-height) - var(--field-row-action-layout-size, var(--field-row-action-size))) / 2));
374
+ }
375
+
308
376
  .Field:where([data-row][data-fill]:has(> .Action)) .Control {
309
377
  grid-column: 1 / -1;
310
378
  grid-row: 2;
@@ -314,6 +382,44 @@
314
382
  grid-column: 2;
315
383
  }
316
384
 
385
+ /* Text actions share the row's body role and trailing edge while retaining
386
+ the action's full target. Filled and uniform icon buttons keep their shape. */
387
+ .Field:where([data-row]:not([data-orientation="vertical"]):has(> .Action > button[data-variant="ghost"]:not([data-uniform]))) {
388
+ --field-row-action-layout-size: max(var(--field-row-action-size), var(--field-row-text-action-size));
389
+ }
390
+
391
+ .Field:where([data-row]:not([data-orientation="vertical"]):has(> .Action > button[data-variant="ghost"]:not([data-uniform]))) > .Action {
392
+ align-items: center;
393
+ }
394
+
395
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Action > button[data-variant="ghost"]:not([data-uniform]) {
396
+ --button-size: var(--field-row-text-action-size);
397
+ --button-gutter: 0px;
398
+ --button-font-size: var(--field-row-label-font-size);
399
+ --button-line-height: var(--field-row-label-line-height);
400
+ --button-font-weight: var(--field-row-label-font-weight);
401
+ --button-justify-content: flex-end;
402
+ --button-background-color: transparent;
403
+ --button-background-color-active: transparent;
404
+ --button-mobile-material-background: transparent;
405
+ --button-mobile-material-hover: transparent;
406
+ --button-mobile-material-active: transparent;
407
+ --button-mobile-material-shadow: none;
408
+ --button-mobile-material-backdrop-filter: none;
409
+
410
+ min-width: var(--field-row-text-action-size);
411
+ }
412
+
413
+ /* Reserve the indicator's visible width at the row edge. Its centered target
414
+ and focus ring keep their full size, extending into the row's side padding. */
415
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child:not([data-has-label]):has(> [role="checkbox"]):not(:has(> [role="checkbox"] ~ [role="checkbox"], > :not([role="checkbox"], input[type="checkbox"][aria-hidden="true"]))) {
416
+ margin-inline: calc((var(--checkbox-indicator-size) - var(--checkbox-target-size, var(--checkbox-indicator-size))) / 2);
417
+ }
418
+
419
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :only-child > label:only-child:not([data-has-label]) > :only-child:has(> [role="radio"]):not(:has(> [role="radio"] ~ [role="radio"], > :not([role="radio"], input[type="radio"][aria-hidden="true"]))) {
420
+ margin-inline: calc((var(--radio-group-indicator-size) - var(--radio-group-target-size, var(--radio-group-indicator-size))) / 2);
421
+ }
422
+
317
423
  .Field:where([data-row]:not([data-orientation="vertical"])) {
318
424
  --field-row-control-width: auto;
319
425
  --field-row-text-width: auto;
@@ -358,10 +464,44 @@
358
464
  /* A Select or a date: its value ends at the row's edge, its mark too, as the row has no pill to sit in */
359
465
  .Field:where([data-row]:not([data-orientation="vertical"])) .Control [data-variant="outline"][role="button"] {
360
466
  --dropdown-icon-pill-offset: 0px;
467
+ }
361
468
 
469
+ .Field:where([data-row]:not([data-orientation="vertical"])) .Control :is([data-variant="outline"], [data-variant="ghost"])[role="button"] {
362
470
  padding-inline: 0;
363
471
  }
364
472
 
473
+ /* The Field already delegates its non-interactive area to this linked popup.
474
+ Keep one row surface; the trigger remains its only keyboard stop. */
475
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :is([data-variant="outline"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
476
+ --select-control-size: var(--field-row-label-line-height);
477
+ border-radius: 0;
478
+ }
479
+
480
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :is([data-variant="outline"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
481
+ background-color: transparent;
482
+ box-shadow: none;
483
+ transform: none;
484
+ }
485
+
486
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > :is([data-variant="outline"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::after {
487
+ outline: none;
488
+ transform: none;
489
+ }
490
+
491
+ .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is([data-variant="outline"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
492
+ cursor: pointer;
493
+ }
494
+
495
+ /* Trailing units share the accessory tone; the input and the button keep their own disabled states. */
496
+ .Field:where([data-row]) .Control > [data-slot="input"]:not([data-disabled]) > span:global(.text-secondary):last-child,
497
+ .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child:not([data-uniform], [disabled], [data-disabled], [aria-disabled="true"]) {
498
+ color: var(--mobile-accessory-secondary, var(--color-text-secondary));
499
+ }
500
+
501
+ .Field:where([data-row]) .Control > [data-slot="input"][data-disabled] > span:global(.text-secondary):last-child {
502
+ color: var(--color-text-disabled);
503
+ }
504
+
365
505
  /* An InputGroup: its value and its unit end at the row's edge too. A button at the end
366
506
  reads as the row's text, as a Select's value does: no gutter and no fill */
367
507
  .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"][data-variant="outline"] {
@@ -376,6 +516,28 @@
376
516
  margin-inline-end: 0;
377
517
  }
378
518
 
519
+ .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child:not([data-uniform]) {
520
+ --button-font-size: var(--field-row-label-font-size);
521
+ --button-line-height: var(--field-row-label-line-height);
522
+ --button-font-weight: var(--field-row-label-font-weight);
523
+
524
+ font-size: var(--field-row-label-font-size);
525
+ font-weight: var(--field-row-label-font-weight);
526
+ line-height: var(--field-row-label-line-height);
527
+ }
528
+
529
+ .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child[data-variant="ghost"]:not([data-uniform]) {
530
+ --button-size: var(--field-row-text-action-size);
531
+ --button-justify-content: flex-end;
532
+ --button-mobile-material-background: transparent;
533
+ --button-mobile-material-hover: transparent;
534
+ --button-mobile-material-active: transparent;
535
+ --button-mobile-material-shadow: none;
536
+ --button-mobile-material-backdrop-filter: none;
537
+
538
+ min-width: var(--field-row-text-action-size);
539
+ }
540
+
379
541
  /* With `columns` the value starts at the column and takes the rest of the row: a unit,
380
542
  a Select's mark and an icon end at its edge, as on iOS */
381
543
  [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Action))):has(
@@ -3,17 +3,20 @@
3
3
  grid-template-rows: 1fr;
4
4
  padding-inline-start: var(--field-error-padding-inline);
5
5
  color: var(--field-error-color);
6
- font-size: var(--field-error-font-size);
7
- line-height: var(--field-error-line-height);
8
- text-align: left;
6
+ font-size: var(--mobile-field-error-font-size, var(--field-error-font-size));
7
+ line-height: var(--mobile-field-error-line-height, var(--field-error-line-height));
8
+ font-weight: var(--mobile-field-error-font-weight, inherit);
9
+ letter-spacing: var(--mobile-field-error-letter-spacing, inherit);
10
+ text-align: var(--field-error-text-align, left);
9
11
  }.FieldError:first-of-type {
10
- margin-top: var(--field-error-margin-top);
12
+ margin-top: var(--mobile-field-error-offset, var(--field-error-margin-top));
11
13
  }.FieldError:last-of-type {
12
- margin-bottom: var(--field-error-margin-bottom);
14
+ margin-bottom: var(--mobile-field-error-margin-bottom, var(--field-error-margin-bottom));
13
15
  }.Inner {
14
16
  display: flex;
15
17
  align-items: flex-start;
16
- gap: var(--field-error-gap);
18
+ justify-content: var(--field-error-content-justify, flex-start);
19
+ gap: var(--mobile-field-error-icon-gap, var(--field-error-gap));
17
20
  min-height: 0;
18
21
  overflow: hidden;
19
22
  }/* The icon keeps its size and sits on the first line; the text wraps, also
@@ -24,11 +27,11 @@
24
27
  min-width: 0;
25
28
  overflow-wrap: anywhere;
26
29
  }.Icon {
27
- width: var(--field-error-icon-size);
28
- height: var(--field-error-icon-size);
29
- display: block;
30
+ width: var(--mobile-field-error-icon-size, var(--field-error-icon-size));
31
+ height: var(--mobile-field-error-icon-size, var(--field-error-icon-size));
32
+ display: var(--mobile-field-error-icon-display, var(--field-error-icon-display, block));
30
33
  align-self: flex-start;
31
- margin-block-start: calc((var(--field-error-line-height) - var(--field-error-icon-size)) / 2);
34
+ margin-block-start: calc((var(--mobile-field-error-line-height, var(--field-error-line-height)) - var(--mobile-field-error-icon-size, var(--field-error-icon-size))) / 2);
32
35
  }/* The room opens first, so what stands below slides down instead of dropping. */@media (prefers-reduced-motion: no-preference) {
33
36
  .FieldError {
34
37
  animation: open 200ms var(--cubic-enter);
@@ -4,11 +4,11 @@
4
4
  Header (title + description, action at the end)
5
5
  ============================================= */.Header {
6
6
  display: flex;
7
- align-items: center;
7
+ align-items: var(--field-group-header-align, center);
8
8
  justify-content: space-between;
9
9
  gap: calc(var(--spacing) * 4);
10
- min-height: calc(var(--spacing) * 8);
11
- padding-bottom: calc(var(--spacing) * 2);
10
+ min-height: var(--field-group-header-min-height, calc(var(--spacing) * 8));
11
+ padding-bottom: var(--field-group-header-padding-bottom, calc(var(--spacing) * 2));
12
12
  }.HeaderText {
13
13
  min-width: 0;
14
14
  }.Title {
@@ -21,7 +21,7 @@
21
21
  }.Description {
22
22
  margin: 0;
23
23
  padding-inline: var(--field-group-title-padding-inline);
24
- color: var(--color-text-secondary);
24
+ color: var(--field-group-description-color, var(--color-text-secondary));
25
25
  font-size: var(--field-group-description-font-size);
26
26
  line-height: var(--field-group-description-line-height);
27
27
  }/* =============================================
@@ -34,12 +34,43 @@
34
34
  .Body > [data-sortable] > [data-row] + [data-row] {
35
35
  border-top: 1px solid var(--color-border);
36
36
  }@media (max-width: 767px) {
37
+ .FieldGroup {
38
+ --field-group-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
39
+ --field-group-title-color: var(--mobile-label-secondary, var(--color-text-secondary));
40
+ }
41
+
37
42
  .Body > [data-row] + [data-row],
38
43
  .Body > [data-sortable] > [data-row] + [data-row] {
39
44
  position: relative;
40
45
  border-top-width: 0;
41
46
  }
42
47
 
48
+ /* Full-row actions share the cell's bounds. Only their text and accessories
49
+ sit inside the row padding; the pressed surface must not shrink inward. */
50
+ .Body > [data-row] > button[data-block][data-variant="ghost"],
51
+ .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"] {
52
+ --button-mobile-material-scale: 1;
53
+ }
54
+
55
+ .Body > [data-row]:first-child > button[data-block][data-variant="ghost"]::before,
56
+ .Body > [data-sortable] > [data-row]:first-child > button[data-block][data-variant="ghost"]::before {
57
+ border-start-start-radius: var(--field-group-radius);
58
+ border-start-end-radius: var(--field-group-radius);
59
+ }
60
+
61
+ .Body > [data-row]:last-child > button[data-block][data-variant="ghost"]::before,
62
+ .Body > [data-sortable] > [data-row]:last-child > button[data-block][data-variant="ghost"]::before {
63
+ border-end-start-radius: var(--field-group-radius);
64
+ border-end-end-radius: var(--field-group-radius);
65
+ }
66
+
67
+ /* An open popup is not a held press. Keep selection and explicit glass
68
+ surfaces independent; the trigger remains focusable and expanded. */
69
+ .Body > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before,
70
+ .Body > [data-sortable] > [data-row] > button[data-block][data-variant="ghost"]:is([aria-expanded="true"], [data-state="open"]):not(:active, [data-selected], [data-mobile-material="glass"])::before {
71
+ opacity: 0;
72
+ }
73
+
43
74
  /* Draw inside the row: 44px controls + 4px padding on each side stay 52px.
44
75
  Sortable owns ::before for its drag placeholder, so use ::after here. */
45
76
  .Body > [data-row] + [data-row]::after,
@@ -52,5 +83,14 @@
52
83
  background: var(--color-border);
53
84
  pointer-events: none;
54
85
  }
86
+ }/* Explanations belong below the group, with the list's own text insets. */.Footer {
87
+ padding: var(--field-group-footer-padding, 8px 0 0);
88
+ color: var(--field-group-description-color, var(--color-text-secondary));
89
+ font-size: var(--field-group-footer-font-size, var(--field-group-description-font-size));
90
+ line-height: var(--field-group-footer-line-height, var(--field-group-description-line-height));
55
91
  }
92
+
93
+ .Footer > p {
94
+ margin: 0;
95
+ }
56
96
  }
@@ -1,4 +1,6 @@
1
1
  @layer components {.Root {
2
+ --button-size-3xl: var(--file-upload-height);
3
+
2
4
  position: relative;
3
5
  --field-error-padding-inline: 0;
4
6
  --field-error-margin-top: 0.25rem;
@@ -18,8 +20,10 @@
18
20
  font-size: 1rem;
19
21
  cursor: pointer;
20
22
  transition: border-color var(--floating-input-transition-duration) ease-in-out;
21
- }.AreaTrigger:hover:not(:disabled) {
22
- border-color: var(--floating-input-border-color-hover);
23
+ }@media (hover: hover) and (pointer: fine) {
24
+ .AreaTrigger:hover:where(:not(:root[data-input="touch"] *)):not(:disabled) {
25
+ border-color: var(--floating-input-border-color-hover);
26
+ }
23
27
  }.AreaTrigger[data-invalid] {
24
28
  border-color: var(--floating-input-border-color-invalid);
25
29
  }.AreaTrigger:disabled {
@@ -57,13 +61,13 @@
57
61
  }.FileIcon {
58
62
  display: flex;
59
63
  flex-shrink: 0;
60
- width: 16px;
61
- height: 16px;
64
+ width: 24px;
65
+ height: 24px;
62
66
  margin-left: -4px;
63
67
  color: var(--input-text-color);
64
68
  }.FileIcon svg {
65
- width: 16px;
66
- height: 16px;
69
+ width: 100%;
70
+ height: 100%;
67
71
  }.FileInfo {
68
72
  flex: 1;
69
73
  min-width: 0;
@@ -91,6 +95,9 @@
91
95
  line-height: 1.5;
92
96
  color: var(--color-text-tertiary);
93
97
  }.FileRemove {
98
+ --file-remove-background: var(--color-background-secondary-soft-alpha);
99
+
100
+ position: relative;
94
101
  display: flex;
95
102
  align-items: center;
96
103
  justify-content: center;
@@ -100,19 +107,105 @@
100
107
  margin: 0 -7px 0 0;
101
108
  border: none;
102
109
  border-radius: var(--radius-full);
103
- background-color: var(--color-background-secondary-soft-alpha);
110
+ background-color: transparent;
104
111
  cursor: pointer;
105
112
  color: var(--color-text-secondary-soft);
106
113
  flex-shrink: 0;
114
+ }.FileRemove::before {
115
+ content: "";
116
+ position: absolute;
117
+ width: 20px;
118
+ height: 20px;
119
+ border-radius: inherit;
120
+ background-color: var(--file-remove-background);
121
+ pointer-events: none;
107
122
  }.FileRemove svg {
123
+ position: relative;
108
124
  width: 15px;
109
125
  height: 15px;
110
- }.FileRemove:hover {
111
- background-color: var(--color-background-secondary-soft-alpha-hover);
126
+ }@media (hover: hover) and (pointer: fine) {
127
+ .FileRemove:hover:where(:not(:root[data-input="touch"] *)) {
128
+ --file-remove-background: var(--color-background-secondary-soft-alpha-hover);
129
+ }
112
130
  }.FileRemove:active {
113
- background-color: var(--color-background-secondary-soft-alpha-active);
131
+ --file-remove-background: var(--color-background-secondary-soft-alpha-active);
114
132
  }.FileRemove:disabled {
115
133
  pointer-events: none;
134
+ }/* File cards use the phone's two-line list role. The remove target occupies
135
+ its own space; the visible circle stays inside the 44px touch target. */@media (max-width: 767px) {
136
+ .Root {
137
+ --button-size-3xl: var(--control-size-3xl);
138
+ }
139
+
140
+ .FileList,
141
+ .FileCardGroup {
142
+ border-width: var(--file-upload-list-border-width, 1px);
143
+ background-color: var(--file-upload-list-background, transparent);
144
+ }
145
+
146
+ .FileItem {
147
+ position: relative;
148
+ min-height: 68px;
149
+ gap: 12px;
150
+ padding: 12px 16px;
151
+ }
152
+
153
+ .FileItem + .FileItem,
154
+ .FileList li + li > .FileItem {
155
+ border-top: 0;
156
+ }
157
+
158
+ .FileItem + .FileItem::after,
159
+ .FileList li + li > .FileItem::after {
160
+ content: "";
161
+ position: absolute;
162
+ top: 0;
163
+ inset-inline: 52px 16px;
164
+ height: 1px;
165
+ background-color: var(--color-border-primary-outline);
166
+ pointer-events: none;
167
+ }
168
+
169
+ .FileIcon {
170
+ margin-left: 0;
171
+ }
172
+
173
+ .FileNameStem,
174
+ .FileNameExt {
175
+ font-size: 17px;
176
+ line-height: 22px;
177
+ letter-spacing: normal;
178
+ }
179
+
180
+ .FileSize {
181
+ font-size: 15px;
182
+ line-height: 20px;
183
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
184
+ }
185
+
186
+ .FileRemove {
187
+ width: 44px;
188
+ height: 44px;
189
+ margin: 0;
190
+ /* Align the visible 28px circle with the row's 16px content inset.
191
+ The transparent half-gutter still belongs to the 44px target. */
192
+ margin-inline-end: -8px;
193
+ }
194
+
195
+ .FileRemove::before {
196
+ width: 28px;
197
+ height: 28px;
198
+ }
199
+
200
+ .FileRemove svg {
201
+ width: 16px;
202
+ height: 16px;
203
+ }
204
+
205
+ .FileRemove:disabled {
206
+ --file-remove-background: var(--color-background-disabled);
207
+ color: var(--color-text-disabled);
208
+ }
116
209
  }.HiddenInput {
117
210
  position: absolute;
118
211
  width: 1px;