@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
@@ -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"]) {
@@ -29,8 +29,9 @@
29
29
  width: var(--field-horizontal-label-width);
30
30
  padding-top: var(--field-label-horizontal-offset);
31
31
  }.Field:where([data-orientation="horizontal"]) .Content {
32
- flex-shrink: 0;
32
+ flex: var(--field-horizontal-control-flex, 0 0 auto);
33
33
  width: var(--field-horizontal-control-width);
34
+ min-width: 0;
34
35
  }/* =============================================
35
36
  Sizes — shared properties (grouped)
36
37
  ============================================= */.Field:where([data-size="3xs"]),
@@ -141,7 +142,7 @@
141
142
  }/* =============================================
142
143
  Description
143
144
  ============================================= */.Description {
144
- color: var(--color-text-secondary);
145
+ color: var(--field-description-color, var(--color-text-secondary));
145
146
  font-size: var(--field-description-font-size);
146
147
  line-height: var(--field-description-line-height);
147
148
  }/* =============================================
@@ -170,6 +171,7 @@
170
171
  min-height: var(--field-row-min-height);
171
172
  padding: var(--field-row-padding-block) var(--field-row-padding-inline);
172
173
  }.Field:where([data-row]):has(.Description, .Content > :not(.Control)) {
174
+ min-height: var(--field-row-description-min-height, var(--field-row-min-height));
173
175
  padding-block: var(--field-row-text-padding-block);
174
176
  }/* Touch sizes set `contents`: the description then runs under the control too */.Field:where([data-row]) .LabelGroup {
175
177
  display: var(--field-row-text-display);
@@ -213,6 +215,14 @@
213
215
  grid-column: 1;
214
216
  grid-row: auto;
215
217
  justify-self: stretch;
218
+ }/* A row with a hidden label (`hideLabel`) holds its value alone, from the row's edge. A frameless
219
+ value, a ghost field, has its first line centered in the row's height, as an iOS cell that shows
220
+ only its placeholder or value; more lines grow the row downwards. With a description or an error
221
+ under the value the row keeps the insets of a row with text under its label, so hiding the label
222
+ moves nothing. */.Field:where([data-row][data-label-hidden][data-orientation="vertical"]) {
223
+ padding-block: var(--field-row-padding-block);
224
+ }.Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant="ghost"] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
225
+ padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
216
226
  }/* A control that fills the row, such as a list of tags: it starts after the label
217
227
  and ends at the row's edge, on one line for all the rows of a group. A list can
218
228
  wrap: the label and the action stay on its first line. */.Field:where([data-row][data-fill]:not([data-orientation="vertical"])) {
@@ -238,6 +248,9 @@
238
248
  display: flex;
239
249
  grid-column: 3;
240
250
  grid-row: 1;
251
+ }/* Set on the buttons too: a phone gives a filled button its own weight (touch.css), which the inherited value
252
+ would not outweigh. */.Action :where(button, a, [role="link"]) {
253
+ --button-font-weight: var(--field-row-action-font-weight);
241
254
  }/* A framed field in a row: its width cannot follow what is typed, so it has one,
242
255
  wider for words than for a number. A ghost has the row for its frame, a Select
243
256
  follows its value, and fields set out by a wrapper of their own size themselves. */.Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
@@ -274,6 +287,9 @@
274
287
  box-shadow: none;
275
288
  }.Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="ghost"] > input {
276
289
  text-align: end;
290
+ }/* A start text in a row is a prefix of the value, such as https:// or a currency: the value follows it with no gap
291
+ ("$0.00"), as iOS writes a prefix. An icon keeps the gap, and so does a trailing adornment. */.Field:where([data-row]) .Control > [data-variant="ghost"] > :first-child:not(input, textarea, svg, :has(svg)) + :is(input, textarea) {
292
+ margin-inline-start: calc(-1 * var(--input-gap));
277
293
  }/* A FieldGroup with `columns`: every value starts at one column, as in an iOS form of
278
294
  typed details. A field keeps its width, a ghost takes the rest of the line, a switch
279
295
  and an action stay at the end. */[data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Action))),
@@ -299,12 +315,124 @@
299
315
  grid-template-columns: var(--field-row-column-width) minmax(0, 1fr) auto;
300
316
  }
301
317
  }/* On a phone a list takes the width of its own line under the label and the action.
302
- The row is the frame of every field, as on iOS: the framed fields of the web read
303
- as the ghost above, with nothing for the author to change. */@media (max-width: 767px) {
318
+ The row is the frame of every field, as on iOS: the framed and the filled (soft) fields
319
+ of the web read as the ghost above, with nothing for the author to change. */@media (max-width: 767px) {
320
+ .Field:where([data-row]) {
321
+ --field-description-color: var(--mobile-label-secondary, var(--color-text-secondary));
322
+ --field-row-above-color: var(--mobile-label-secondary, var(--color-text-tertiary));
323
+ --input-placeholder-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
324
+ --mobile-field-error-icon-display: block;
325
+ }
326
+
327
+ .Field:where([data-row]):has(> .Content > [role="alert"]) {
328
+ row-gap: var(--mobile-field-error-offset, var(--field-row-row-gap));
329
+ }
330
+
331
+ /* Choice and popup rows forward non-interactive clicks to their control. */
332
+ .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"])),
333
+ .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"])) {
334
+ cursor: pointer;
335
+ }
336
+
337
+ /* The same rows, with their control disabled, read as disabled: the row is that control's
338
+ target, as a disabled row action of the kit is gray (Lists, Row - Button, Value=Disabled
339
+ 550:49735), and an item's own label dims with it outside a row. Without this, an option
340
+ that is neither selected nor available looked like any other row. A row whose control
341
+ still has an enabled option (a segmented control with one disabled segment) stays as it
342
+ is. The label takes the tertiary label and the description the quaternary one, as a
343
+ disabled menu item does on a phone (touch.css). */
344
+ .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"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(: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"]))),
345
+ .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) {
346
+ --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
347
+ }
348
+
349
+ .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"]):is([disabled], [data-disabled], [aria-disabled="true"])):not(: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"]))) > .LabelGroup .Label, .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is(button, [role="button"])[aria-haspopup]:not([aria-haspopup="false"]):is([disabled], [data-disabled], [aria-disabled="true"])) > .LabelGroup .Label {
350
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
351
+ }
352
+
353
+ /* A disabled text field in a row reads as disabled as a whole, as an unavailable row of iOS Settings
354
+ is gray: its label dims with its value. (A Select's hidden form input does not count.) */
355
+ .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) {
356
+ --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
357
+ }
358
+
359
+ .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) > .LabelGroup .Label {
360
+ color: var(--mobile-label-tertiary, var(--color-text-disabled));
361
+ }
362
+
363
+ /* Every text field of a phone row is frameless, so a row with a hidden label centers its first line */
364
+ .Field:where([data-row][data-label-hidden][data-orientation="vertical"]):has(> .Content > .Control > [data-variant] > :is(input, textarea)):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control))) {
365
+ padding-block: calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2);
366
+ }
367
+
368
+ /* Mobile choice rows keep keyboard focus and activation without a drawn ring. */
369
+ .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 {
370
+ outline: none;
371
+ }
372
+
373
+ /* Each extra label line grows a regular row by one line-height. Pad the label,
374
+ not LabelRow, so an adjacent label action keeps its independent target size. */
375
+ .Field:where([data-row]:not([data-fill], [data-orientation="vertical"]):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control)))) > .LabelGroup > .Label,
376
+ .Field:where([data-row]:not([data-fill], [data-orientation="vertical"]):not(:has(> .LabelGroup > .Description, > .Content > :not(.Control)))) > .LabelGroup > .LabelRow > .Label {
377
+ min-width: 0;
378
+ max-width: 100%;
379
+ padding-block: max(0px, calc((var(--field-row-min-height) - var(--field-row-label-line-height)) / 2 - var(--field-row-padding-block)));
380
+ overflow-wrap: anywhere;
381
+ }
382
+
383
+ /* A grouped row uses one body-text role for every value, including editable
384
+ text and inherited text adornments. Standalone TextFields keep their own typography. */
385
+ .Field:where([data-row]) .Control [data-slot="input"],
386
+ .Field:where([data-row]) .Control [data-slot="input"] > input,
387
+ .Field:where([data-row]) .Control textarea,
388
+ .Field:where([data-row]) .Control [data-slot="input-group-control"],
389
+ .Field:where([data-row]) .Control [data-variant][role="button"] {
390
+ font-size: var(--field-row-label-font-size);
391
+ font-weight: var(--font-weight-normal);
392
+ line-height: var(--field-row-label-line-height);
393
+ }
394
+
395
+ /* A value the person cannot edit (a read-only field) is the secondary label, as iOS
396
+ shows the values of a row that only informs, such as Settings, General, About. */
397
+ .Field:where([data-row]) .Control [data-slot="input"] > input[readonly],
398
+ .Field:where([data-row]) .Control [data-slot="input-group-control"][readonly] {
399
+ color: var(--mobile-label-secondary, var(--color-text-secondary));
400
+ }
401
+
402
+ /* A value or placeholder longer than its room ends in an ellipsis while it is not
403
+ being edited, as a text field of an iOS form does. */
404
+ .Field:where([data-row]) .Control [data-slot="input"] > input,
405
+ .Field:where([data-row]) .Control [data-slot="input-group-control"] {
406
+ text-overflow: ellipsis;
407
+ }
408
+
409
+ /* Keep textarea row measurement consistent with the visible line box. */
410
+ .Field:where([data-row]) .Control > [data-variant]:has(> textarea) {
411
+ --textarea-line-height: var(--field-row-label-line-height);
412
+ }
413
+
414
+ .Field:where([data-row]) .Control [data-slot="input-group"] {
415
+ --input-group-line-height: var(--field-row-label-line-height);
416
+ }
417
+
304
418
  .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) {
305
419
  grid-template-columns: minmax(0, 1fr) auto;
306
420
  }
307
421
 
422
+ /* The label shares the action's first grid row, independently of list wrapping. */
423
+ .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) > .LabelGroup {
424
+ align-self: center;
425
+ }
426
+
427
+ .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action) > .LabelGroup > :is(.Label, .LabelRow) {
428
+ padding-block: 0;
429
+ }
430
+
431
+ /* With no list, center the action in a regular row; populated lists keep their wrapping space. */
432
+ .Field:where([data-row][data-fill]:not([data-orientation="vertical"])):has(> .Action):has(.Control:empty, .Control > div:empty:only-child) {
433
+ padding-block: max(0px, calc((var(--field-row-min-height) - var(--field-row-action-layout-size, var(--field-row-action-size))) / 2));
434
+ }
435
+
308
436
  .Field:where([data-row][data-fill]:has(> .Action)) .Control {
309
437
  grid-column: 1 / -1;
310
438
  grid-row: 2;
@@ -314,34 +442,76 @@
314
442
  grid-column: 2;
315
443
  }
316
444
 
445
+ /* Text actions share the row's body role and trailing edge while retaining
446
+ the action's full target. Filled and uniform icon buttons keep their shape. */
447
+ .Field:where([data-row]:not([data-orientation="vertical"]):has(> .Action > button[data-variant="ghost"]:not([data-uniform]))) {
448
+ --field-row-action-layout-size: max(var(--field-row-action-size), var(--field-row-text-action-size));
449
+ }
450
+
451
+ .Field:where([data-row]:not([data-orientation="vertical"]):has(> .Action > button[data-variant="ghost"]:not([data-uniform]))) > .Action {
452
+ align-items: center;
453
+ }
454
+
455
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Action > button[data-variant="ghost"]:not([data-uniform]) {
456
+ --button-size: var(--field-row-text-action-size);
457
+ --button-gutter: 0px;
458
+ --button-font-size: var(--field-row-label-font-size);
459
+ --button-line-height: var(--field-row-label-line-height);
460
+ --button-font-weight: var(--field-row-label-font-weight);
461
+ --button-justify-content: flex-end;
462
+ --button-background-color: transparent;
463
+ --button-background-color-active: transparent;
464
+ --button-mobile-material-background: transparent;
465
+ --button-mobile-material-hover: transparent;
466
+ --button-mobile-material-active: transparent;
467
+ --button-mobile-material-shadow: none;
468
+ --button-mobile-material-backdrop-filter: none;
469
+
470
+ min-width: var(--field-row-text-action-size);
471
+ }
472
+
473
+ /* Reserve the indicator's visible width at the row edge. Its centered target
474
+ and focus ring keep their full size, extending into the row's side padding. */
475
+ .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"]))) {
476
+ margin-inline: calc((var(--checkbox-indicator-size) - var(--checkbox-target-size, var(--checkbox-indicator-size))) / 2);
477
+ }
478
+
479
+ .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"]))) {
480
+ margin-inline: calc((var(--radio-group-indicator-size) - var(--radio-group-target-size, var(--radio-group-indicator-size))) / 2);
481
+ }
482
+
317
483
  .Field:where([data-row]:not([data-orientation="vertical"])) {
318
484
  --field-row-control-width: auto;
319
485
  --field-row-text-width: auto;
320
486
  }
321
487
 
322
488
  .Field:where([data-row]:not([data-orientation="vertical"])):has(
323
- .Control > [data-variant="outline"] > input,
324
- .Control > [data-variant="outline"] > textarea
489
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
490
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
325
491
  ) {
326
492
  grid-template-columns: auto minmax(0, 1fr);
327
493
  }
328
494
 
329
495
  .Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
330
- > [data-variant="outline"] > input,
331
- > [data-variant="outline"] > textarea
496
+ > :is([data-variant="outline"], [data-variant="soft"]) > input,
497
+ > :is([data-variant="outline"], [data-variant="soft"]) > textarea
332
498
  ) {
333
499
  justify-self: stretch;
334
500
  }
335
501
 
336
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"]:is(:has(> input), :has(> textarea)),
337
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control [data-variant="outline"][role="button"] {
502
+ /* Under its label too, a value is the row's text (kit Lists, a value under its title; Contacts' fields):
503
+ the frames and the gutters of the web go, so the value starts where the label does. */
504
+ .Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)),
505
+ .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
338
506
  --input-outline-border-color: transparent;
339
507
  --input-outline-border-color-hover: transparent;
340
508
  --input-outline-border-color-focus: transparent;
341
509
  --input-border-color-invalid: transparent;
510
+ --input-soft-background-color: transparent;
511
+ --input-soft-border-color-focus: transparent;
342
512
  }
343
513
 
344
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"]:is(:has(> input), :has(> textarea)) {
514
+ .Field:where([data-row]) .Control > :is([data-variant="outline"], [data-variant="soft"]):is(:has(> input), :has(> textarea)) {
345
515
  --input-size: var(--field-row-label-line-height);
346
516
  --input-gutter: 0px;
347
517
  --input-adornment-offset: 0px;
@@ -351,23 +521,137 @@
351
521
  border-radius: 0;
352
522
  }
353
523
 
354
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"] > input {
524
+ .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
355
525
  text-align: end;
356
526
  }
357
527
 
528
+ /* A disabled Select or date in a row keeps the row's surface: the disabled frame and fill of a
529
+ standalone control would draw a box around the value */
530
+ .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"][data-disabled] {
531
+ --select-control-background-color: transparent;
532
+ --select-control-border-color: transparent;
533
+ }
534
+
358
535
  /* 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
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control [data-variant="outline"][role="button"] {
536
+ .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
360
537
  --dropdown-icon-pill-offset: 0px;
538
+ }
539
+
540
+ .Field:where([data-row]) .Control :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"] {
541
+ padding-inline: 0;
542
+ }
543
+
544
+ /* The Field already delegates its non-interactive area to this linked popup.
545
+ Keep one row surface; the trigger remains its only keyboard stop. */
546
+ .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
547
+ --select-control-size: var(--field-row-label-line-height);
548
+ border-radius: 0;
549
+ }
550
+
551
+ .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
552
+ background-color: transparent;
553
+ box-shadow: none;
554
+ transform: none;
555
+ }
556
+
557
+ .Field:where([data-row]) > .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"])::after {
558
+ outline: none;
559
+ transform: none;
560
+ }
561
+
562
+ .Field:where([data-row]:not([data-orientation="vertical"])):has(> .Content > .Control > :is([data-variant="outline"], [data-variant="soft"], [data-variant="ghost"])[role="button"][aria-haspopup]:not([aria-haspopup="false"], [disabled], [data-disabled], [aria-disabled="true"], [data-loading], [aria-busy="true"])) {
563
+ cursor: pointer;
564
+ }
565
+
566
+ /* A date in a row is the compact date picker of iOS 26 (kit Date and time - Collapsed 30:53803): a 34px
567
+ capsule with 11px insets on the fill of the calendar's time pill, the date in the primary label and in
568
+ the accent text while its calendar is open. It keeps the 52px row; the row stays its target. */
569
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]) {
570
+ --select-control-size: 34px;
571
+
572
+ margin-block: calc((var(--field-row-label-line-height) - 34px) / 2);
573
+ padding-inline: 11px;
574
+ border-radius: var(--radius-full);
575
+ color: var(--color-text);
576
+ }
577
+
578
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])::before {
579
+ background-color: var(--color-background-secondary-soft-alpha);
580
+ }
361
581
 
582
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-selected="false"],
583
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[data-disabled] {
584
+ color: var(--mobile-label-tertiary, var(--color-text-tertiary));
585
+ }
586
+
587
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"])[aria-expanded="true"]:not([data-disabled]) {
588
+ color: var(--link-primary-text-color);
589
+ }
590
+
591
+ /* A date and a time (showTime with a triggerTimeFormat) are two capsules 6px apart, as the kit draws them (Date and
592
+ time - Collapsed 30:53803) and iOS Calendar shows an event's start. Either opens the calendar, whose time
593
+ fields set the time; the trigger stays the row's target and takes the accent while the calendar is open. */
594
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) {
362
595
  padding-inline: 0;
363
596
  }
364
597
 
598
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts])::before {
599
+ background-color: transparent;
600
+ }
601
+
602
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-parts] {
603
+ display: flex;
604
+ gap: 6px;
605
+ min-width: 0;
606
+ }
607
+
608
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part] {
609
+ padding: 6px 11px;
610
+ border-radius: var(--radius-full);
611
+ background-color: var(--color-background-secondary-soft-alpha);
612
+ }
613
+
614
+ /* Short of room, the date ends in an ellipsis inside its capsule; the time keeps its width */
615
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="date"] {
616
+ min-width: 0;
617
+ overflow: hidden;
618
+ text-overflow: ellipsis;
619
+ }
620
+
621
+ .Field:where([data-row]:not([data-orientation="vertical"])) > .Content > .Control > [data-date-picker][data-variant][role="button"][aria-haspopup]:not([aria-haspopup="false"]):has([data-date-parts]) [data-date-part="time"] {
622
+ flex-shrink: 0;
623
+ }
624
+
625
+ /* Trailing units share the accessory tone; the input and the button keep their own disabled states.
626
+ An InputGroup's inline addons (a prefix, a unit, an icon, an indicator) take it too, as Input's
627
+ prefix and unit do; the kit's indicator is Labels/Secondary. */
628
+ .Field:where([data-row]) .Control > [data-slot="input"]:not([data-disabled]) > span:global(.text-secondary):last-child,
629
+ .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"]:not([data-disabled]) > [data-align^="inline"],
630
+ .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"]) {
631
+ color: var(--mobile-accessory-secondary, var(--color-text-secondary));
632
+ }
633
+
634
+ .Field:where([data-row]) .Control > [data-slot="input"][data-disabled] > span:global(.text-secondary):last-child {
635
+ color: var(--color-text-disabled);
636
+ }
637
+
365
638
  /* An InputGroup: its value and its unit end at the row's edge too. A button at the end
366
639
  reads as the row's text, as a Select's value does: no gutter and no fill */
367
- .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"][data-variant="outline"] {
640
+ .Field:where([data-row]) .Control > [data-slot="input-group"]:is([data-variant="outline"], [data-variant="soft"]) {
368
641
  --input-group-gutter: 0px;
369
642
  }
370
643
 
644
+ /* A leading text or text addon is a prefix of the value (https://, $): the value follows it with no gap, as iOS
645
+ writes "$0.00". An icon or a button keeps the gap, and so does a trailing unit. (`:has()` cannot nest, so the
646
+ addon is matched by its only child, an InputGroup.Text.) */
647
+ .Field:where([data-row]) .Control > [data-slot="input"] > :first-child:not(input, textarea, svg, :has(svg)) + input {
648
+ margin-inline-start: calc(-1 * var(--input-gap));
649
+ }
650
+
651
+ .Field:where([data-row]) .Control > [data-slot="input-group"]:has(> [data-align="inline-start"] > [data-slot="input-group-text"]:only-child) > [data-slot="input-group-control"] {
652
+ padding-inline-start: 0;
653
+ }
654
+
371
655
  .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child {
372
656
  --button-gutter: 0px;
373
657
  --button-background-color: transparent;
@@ -376,11 +660,33 @@
376
660
  margin-inline-end: 0;
377
661
  }
378
662
 
663
+ .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-slot="input-group"] > [data-align="inline-end"] > button:last-child:not([data-uniform]) {
664
+ --button-font-size: var(--field-row-label-font-size);
665
+ --button-line-height: var(--field-row-label-line-height);
666
+ --button-font-weight: var(--field-row-label-font-weight);
667
+
668
+ font-size: var(--field-row-label-font-size);
669
+ font-weight: var(--field-row-label-font-weight);
670
+ line-height: var(--field-row-label-line-height);
671
+ }
672
+
673
+ .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]) {
674
+ --button-size: var(--field-row-text-action-size);
675
+ --button-justify-content: flex-end;
676
+ --button-mobile-material-background: transparent;
677
+ --button-mobile-material-hover: transparent;
678
+ --button-mobile-material-active: transparent;
679
+ --button-mobile-material-shadow: none;
680
+ --button-mobile-material-backdrop-filter: none;
681
+
682
+ min-width: var(--field-row-text-action-size);
683
+ }
684
+
379
685
  /* With `columns` the value starts at the column and takes the rest of the row: a unit,
380
686
  a Select's mark and an icon end at its edge, as on iOS */
381
687
  [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"]):not(:has(> .Action))):has(
382
- .Control > [data-variant="outline"] > input,
383
- .Control > [data-variant="outline"] > textarea
688
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > input,
689
+ .Control > :is([data-variant="outline"], [data-variant="soft"]) > textarea
384
690
  ) {
385
691
  grid-template-columns: var(--field-row-column-width) minmax(0, 1fr);
386
692
  }
@@ -393,12 +699,33 @@
393
699
  justify-self: stretch;
394
700
  }
395
701
 
396
- [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"] > input {
702
+ [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"]) > input {
397
703
  text-align: start;
398
704
  }
399
705
 
400
- [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > [data-variant="outline"][role="button"] {
706
+ [data-field-columns] .Field:where([data-row]:not([data-orientation="vertical"])) .Control > :is([data-variant="outline"], [data-variant="soft"])[role="button"] {
401
707
  width: 100%;
402
708
  }
709
+ }/* =============================================
710
+ Hidden label (hideLabel)
711
+ The label still names the control for assistive
712
+ technology. Last in the file, so it outranks the
713
+ label's own padding in a row.
714
+ ============================================= */.Field:where([data-label-hidden]) > .LabelGroup:not(:has(> .Description, > .LabelRow)),
715
+ .Field:where([data-label-hidden]) > .LabelGroup > .Label,
716
+ .Field:where([data-label-hidden]) > .LabelGroup > .LabelRow > .Label {
717
+ position: absolute;
718
+ width: 1px;
719
+ height: 1px;
720
+ margin: -1px;
721
+ padding: 0;
722
+ border: 0;
723
+ overflow: hidden;
724
+ clip-path: inset(50%);
725
+ white-space: nowrap;
726
+ }/* Words that describe a field with a hidden label follow the field: above it they would read as its label */.Field:where([data-label-hidden]:not([data-orientation="horizontal"])) > .LabelGroup:has(> .Description) {
727
+ order: 1;
728
+ }.Field:where([data-row][data-label-hidden][data-orientation="vertical"]) > .LabelGroup {
729
+ grid-row: auto;
403
730
  }
404
731
  }
@@ -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);