@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.
- package/dist/es/components/Accordion/Accordion.module.css +30 -0
- package/dist/es/components/Alert/Alert.module.css +112 -1
- package/dist/es/components/Badge/Badge.module.css +41 -8
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +35 -1
- package/dist/es/components/Button/Button.module.css +178 -77
- package/dist/es/components/Button/NavigationButton.module.css +27 -0
- package/dist/es/components/Card/Card.module.css +27 -9
- package/dist/es/components/Checkbox/Checkbox.module.css +83 -90
- package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
- package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
- package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
- package/dist/es/components/DataTable/DataTable.module.css +35 -5
- package/dist/es/components/DatePicker/Calendar.module.css +280 -3
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +223 -3
- package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
- package/dist/es/components/Dialog/Dialog.module.css +386 -86
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +89 -14
- package/dist/es/components/Field/Field.module.css +346 -19
- package/dist/es/components/FieldError/FieldError.module.css +13 -10
- package/dist/es/components/FieldGroup/FieldGroup.module.css +103 -4
- package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +46 -14
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +36 -14
- package/dist/es/components/Indicator/LoadingIndicator.module.css +48 -6
- package/dist/es/components/Input/Input.module.css +195 -25
- package/dist/es/components/InputGroup/InputGroup.module.css +5 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
- package/dist/es/components/Menu/Menu.module.css +425 -33
- package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
- package/dist/es/components/Page/Page.module.css +217 -20
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/Popover/Popover.module.css +10 -1
- package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
- package/dist/es/components/Select/Select.module.css +162 -13
- package/dist/es/components/SelectControl/SelectControl.module.css +118 -11
- package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +347 -72
- package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
- package/dist/es/components/Slider/Slider.module.css +96 -52
- package/dist/es/components/Sortable/Sortable.module.css +20 -7
- package/dist/es/components/Stepper/Stepper.module.css +98 -0
- package/dist/es/components/Switch/Switch.module.css +16 -7
- package/dist/es/components/TabBar/TabBar.module.css +233 -0
- package/dist/es/components/Table/Table.module.css +4 -2
- package/dist/es/components/Tabs/Tabs.module.css +186 -6
- package/dist/es/components/TagInput/TagInput.module.css +64 -19
- package/dist/es/components/TextLink/TextLink.module.css +4 -4
- package/dist/es/components/Textarea/Textarea.module.css +1 -1
- package/dist/es/components/Toast/Toast.module.css +120 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +579 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
- package/dist/es/styles/base.css +1 -1
- package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/LICENSE +21 -0
- package/dist/es/styles/katex.min.css +666 -730
- package/dist/es/styles/mobile-materials.css +69 -0
- package/dist/es/styles/mobile-surfaces.css +46 -0
- package/dist/es/styles/touch.css +524 -63
- package/dist/es/styles/variables-components.css +286 -7
- package/package.json +1 -1
- package/postcss/mixins.mjs +1 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
max-width: var(--select-list-max-width, none);
|
|
17
17
|
border-radius: var(--menu-radius);
|
|
18
18
|
background: var(--color-surface-elevated);
|
|
19
|
-
box-shadow: var(--shadow), var(--shadow-hairline);
|
|
19
|
+
box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
|
|
20
20
|
font-size: var(--menu-font-size);
|
|
21
21
|
line-height: var(--menu-line-height);
|
|
22
22
|
/* The transform-origin computed from the content and arrow positions/offsets */
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
============================================= */.OptionsList {
|
|
72
72
|
overflow: auto;
|
|
73
73
|
flex: 1;
|
|
74
|
-
padding: var(--menu-gutter);
|
|
74
|
+
padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/* Focused without search: the highlighted option shows where the keys go */
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
background: var(--menu-item-background-color);
|
|
95
95
|
content: "";
|
|
96
96
|
opacity: 0;
|
|
97
|
-
transform: scale(var(--scale, 0.98));
|
|
97
|
+
transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
|
|
98
98
|
transition-duration: var(--transition-duration-basic);
|
|
99
99
|
transition-property: opacity, background-color, transform;
|
|
100
100
|
transition-timing-function: var(--cubic-enter);
|
|
@@ -114,12 +114,12 @@
|
|
|
114
114
|
font-weight: var(--font-weight-semibold);
|
|
115
115
|
}
|
|
116
116
|
.Option[data-highlight]::before {
|
|
117
|
-
opacity: 1;
|
|
117
|
+
opacity: var(--menu-item-highlight-opacity, 1);
|
|
118
118
|
transform: scale(1);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.Option[data-highlight]:active::before {
|
|
122
|
-
transform: scale(var(--scale, 0.98));
|
|
122
|
+
transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.Option[data-disabled] {
|
|
@@ -184,11 +184,11 @@
|
|
|
184
184
|
align-items: center;
|
|
185
185
|
justify-content: flex-start;
|
|
186
186
|
gap: var(--menu-item-gap);
|
|
187
|
-
padding: var(--menu-item-padding);
|
|
187
|
+
padding: var(--menu-label-padding, var(--menu-item-padding));
|
|
188
188
|
margin-top: calc(var(--spacing) * 2);
|
|
189
|
-
font-size: var(--font-text-xs-size);
|
|
190
|
-
line-height: var(--font-text-xs-line-height);
|
|
191
|
-
font-weight: var(--font-weight-semibold);
|
|
189
|
+
font-size: var(--menu-label-font-size, var(--font-text-xs-size));
|
|
190
|
+
line-height: var(--menu-label-line-height, var(--font-text-xs-line-height));
|
|
191
|
+
font-weight: var(--menu-label-font-weight, var(--font-weight-semibold));
|
|
192
192
|
color: var(--color-text-secondary);
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -257,7 +257,7 @@ background: var(--gray-25);
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
@media (hover: hover) and (pointer: fine) {
|
|
260
|
-
.Action:hover::before {
|
|
260
|
+
.Action:hover:where(:not(:root[data-input="touch"] *))::before {
|
|
261
261
|
opacity: 1;
|
|
262
262
|
transform: scale(1);
|
|
263
263
|
}
|
|
@@ -288,7 +288,7 @@ background: var(--gray-25);
|
|
|
288
288
|
gap: var(--menu-item-gap);
|
|
289
289
|
}.ActionsContainer {
|
|
290
290
|
position: relative;
|
|
291
|
-
padding: var(--menu-gutter);
|
|
291
|
+
padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter));
|
|
292
292
|
border-top: 1px solid var(--menu-separator-background-color);
|
|
293
293
|
}
|
|
294
294
|
|
|
@@ -314,7 +314,7 @@ background: var(--gray-25);
|
|
|
314
314
|
--control-gutter-md: var(--menu-search-gutter, 8px);
|
|
315
315
|
--control-gutter-lg: var(--menu-search-gutter, 8px);
|
|
316
316
|
position: relative;
|
|
317
|
-
padding: var(--menu-gutter) var(--menu-gutter) 0;
|
|
317
|
+
padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter)) 0;
|
|
318
318
|
}/* Override fill for Search icon to apply fill-secondary class correctly *//* Need !important to override fill="currentColor" attribute in SVG path *//* Target SVG with fill prop and its path children */.Search svg[fill],
|
|
319
319
|
.Search svg[fill] path {
|
|
320
320
|
fill: var(--color-text-secondary) !important;
|
|
@@ -322,7 +322,7 @@ background: var(--gray-25);
|
|
|
322
322
|
.Search svg.fill-secondary path {
|
|
323
323
|
fill: var(--color-text-secondary) !important;
|
|
324
324
|
}.SearchEmpty {
|
|
325
|
-
padding: var(--menu-gutter);
|
|
325
|
+
padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter));
|
|
326
326
|
margin: calc(var(--spacing) * 4) 0;
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -346,5 +346,154 @@ background: var(--gray-25);
|
|
|
346
346
|
clip-path: inset(50%);
|
|
347
347
|
white-space: nowrap;
|
|
348
348
|
pointer-events: none;
|
|
349
|
+
}/* iPhone menu selection geometry. Search and multiple selection keep their behavior. */@media (max-width: 767px) {
|
|
350
|
+
/* Dark lists are glass, as the Menu is (see --menu-mobile-background). */
|
|
351
|
+
.MenuList {
|
|
352
|
+
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
:where([data-theme="dark"]) .MenuList {
|
|
356
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.Option,
|
|
360
|
+
.Option[data-selected],
|
|
361
|
+
.Option:has(.OptionDescription) {
|
|
362
|
+
font-weight: var(--font-weight-normal);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.Option {
|
|
366
|
+
letter-spacing: var(--menu-letter-spacing, normal);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* The capsule is the press: Safari's gray tap rectangle would stack on it */
|
|
370
|
+
.Option,
|
|
371
|
+
.Action {
|
|
372
|
+
-webkit-tap-highlight-color: transparent;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.Search,
|
|
376
|
+
.ActionsContainer {
|
|
377
|
+
flex-shrink: 0;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.OptionsList {
|
|
381
|
+
min-height: 0;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* Text grows naturally; the pressed surface covers the complete 44px target. */
|
|
385
|
+
.Option:has(> .PressableInner > .OptionLeading) {
|
|
386
|
+
display: grid;
|
|
387
|
+
grid-template-columns: minmax(0, 1fr);
|
|
388
|
+
align-content: center;
|
|
389
|
+
min-height: 44px;
|
|
390
|
+
padding-block: 0;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/* The pressed capsule of a menu row (Menu.module.css, Files, the owner's shots of 08.11): 10px from the panel's
|
|
394
|
+
edges, not the option's 16, the whole row, round at its ends, in one even fill (--menu-press-background). It
|
|
395
|
+
shows the moment the finger lands and fades when it lifts. */
|
|
396
|
+
.Option::before {
|
|
397
|
+
position: absolute;
|
|
398
|
+
inset-block: 0;
|
|
399
|
+
inset-inline: calc(var(--menu-gutter) - var(--menu-padding-inline, var(--menu-gutter)));
|
|
400
|
+
background: var(--menu-press-background, var(--menu-item-background-color));
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.Option:active::before {
|
|
404
|
+
opacity: 1;
|
|
405
|
+
transition-duration: 0s;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.PressableInner:has(> .OptionLeading) {
|
|
409
|
+
grid-area: 1 / 1;
|
|
410
|
+
align-items: center;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.OptionLeading {
|
|
414
|
+
gap: 2px;
|
|
415
|
+
padding-block: 10px;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.OptionLeading > .OptionInner {
|
|
419
|
+
min-width: 0;
|
|
420
|
+
gap: 8px;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* The checkmark column of a native iOS 26 pop-up menu, as Menu draws it (iOS-menu IMG_5687 and IMG_5688 Files at
|
|
424
|
+
@3x): 10.3 to 10.7pt of ink centred 28pt from the panel's edge, labels from 43.5pt. A row's content starts 22px in,
|
|
425
|
+
so the column is 13px and the label follows 8.5px after it (touch.css tokens). The iOS 27 kit draws a 15pt
|
|
426
|
+
checkmark centred at 34 and labels from 52; the device wins. The checkmark leads every row, so the desktop end
|
|
427
|
+
position moves to the start on a phone. */
|
|
428
|
+
.OptionIndicatorSlot {
|
|
429
|
+
justify-content: center;
|
|
430
|
+
width: var(--menu-check-column, 13px);
|
|
431
|
+
height: 22px;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
:is(.PressableInner, .OptionHardLimitHeading):has(> .OptionIndicatorSlot) {
|
|
435
|
+
gap: var(--menu-check-gap, 8.5px);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/* In a list with checkmarks, section titles, the note under a long list, the row that shows more options and the
|
|
439
|
+
actions start where the labels do, as "Filter:" and New Folder in Files (IMG_5687). A list without them keeps its
|
|
440
|
+
labels, and these, at the row's start. */
|
|
441
|
+
.MenuList:has(.OptionIndicatorSlot[data-position]) :is(
|
|
442
|
+
.OptionGroupHeading,
|
|
443
|
+
.OptionHardLimitHeading:not(:has(> .OptionIndicatorSlot)),
|
|
444
|
+
.OptionsLimit > .PressableInner:not(:has(> .OptionIndicatorSlot)),
|
|
445
|
+
.ActionInner
|
|
446
|
+
) {
|
|
447
|
+
padding-inline-start: var(--menu-check-label-inset, calc(8px + 13px + 8.5px));
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.PressableInner > .OptionIndicatorSlot[data-position="end"] {
|
|
451
|
+
order: -1;
|
|
452
|
+
margin-left: 0;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/* The 18px Check icon draws 10.6 by 9.9, centred in its column with the overflow on both sides. */
|
|
456
|
+
.OptionCheck {
|
|
457
|
+
width: var(--menu-check-size, 18px);
|
|
458
|
+
height: var(--menu-check-size, 18px);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.OptionDescription {
|
|
462
|
+
font-size: 13px;
|
|
463
|
+
line-height: 18px;
|
|
464
|
+
letter-spacing: normal;
|
|
465
|
+
color: var(--menu-description-color, var(--color-text-secondary));
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* Rich descriptions may contain their own controls; only plain subtitles truncate. */
|
|
469
|
+
.OptionDescription:not(:has(*)) {
|
|
470
|
+
display: block;
|
|
471
|
+
overflow: hidden;
|
|
472
|
+
text-overflow: ellipsis;
|
|
473
|
+
white-space: nowrap;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.Option[data-disabled] {
|
|
477
|
+
color: var(--menu-disabled-label-color, var(--color-text-tertiary));
|
|
478
|
+
opacity: 1;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.Option[data-disabled] .OptionDescription {
|
|
482
|
+
color: var(--menu-disabled-description-color, var(--color-text-tertiary));
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.Option[data-disabled] .OptionIndicatorSlot {
|
|
486
|
+
color: var(--color-text);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.OptionGroupHeading {
|
|
490
|
+
margin-top: 21px;
|
|
491
|
+
color: var(--color-text-tertiary);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.OptionGroup:not(:first-child) > .OptionGroupHeading::before {
|
|
495
|
+
top: -11px;
|
|
496
|
+
inset-inline: 8px;
|
|
497
|
+
}
|
|
349
498
|
}
|
|
350
499
|
}
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
.SelectControl:focus {
|
|
76
76
|
outline: none;
|
|
77
77
|
}
|
|
78
|
-
.SelectControl:focus-visible::after {
|
|
78
|
+
.SelectControl:focus-visible:not([data-menu-pointer-focus])::after {
|
|
79
79
|
outline: 2px solid var(--button-ring-color, var(--color-ring));
|
|
80
80
|
outline-offset: var(--select-control-ring-offset, 2px);
|
|
81
81
|
}
|
|
@@ -347,11 +347,11 @@
|
|
|
347
347
|
transform: scale(var(--scale));
|
|
348
348
|
}
|
|
349
349
|
.SelectControl[data-variant="ghost"][aria-expanded="true"]::before, .SelectControl[data-variant="ghost"][data-state="open"]::before {
|
|
350
|
-
opacity: 0.6;
|
|
350
|
+
opacity: var(--select-control-ghost-state-opacity, 0.6);
|
|
351
351
|
transform: scale(1);
|
|
352
352
|
}
|
|
353
353
|
@media (hover: hover) and (pointer: fine) {
|
|
354
|
-
.SelectControl[data-variant="ghost"]:where(:not([data-disabled])):hover::before {
|
|
354
|
+
.SelectControl[data-variant="ghost"]:where(:not([data-disabled])):hover:where(:not(:root[data-input="touch"] *))::before {
|
|
355
355
|
opacity: 1;
|
|
356
356
|
transform: scale(1);
|
|
357
357
|
}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
.SelectControl[data-variant="ghost"]:where(:not([data-disabled])):not(:has(button:active)):active::before {
|
|
360
360
|
--select-control-background-color: var(--color-background-primary-ghost-active);
|
|
361
361
|
|
|
362
|
-
opacity: 1;
|
|
362
|
+
opacity: var(--select-control-ghost-state-opacity, 1);
|
|
363
363
|
transform: scale(var(--scale));
|
|
364
364
|
}
|
|
365
365
|
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
@media (hover: hover) and (pointer: fine) {
|
|
378
|
-
.SelectControl[data-variant="ghost"]:where(:not([data-disabled]))[data-invalid]:hover::before {
|
|
378
|
+
.SelectControl[data-variant="ghost"]:where(:not([data-disabled]))[data-invalid]:hover:where(:not(:root[data-input="touch"] *))::before {
|
|
379
379
|
--select-control-background-color: var(--color-background-primary-ghost-hover);
|
|
380
380
|
}
|
|
381
381
|
}
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
--select-control-background-color: var(--color-background-primary-soft-alpha-hover);
|
|
395
395
|
}
|
|
396
396
|
@media (hover: hover) and (pointer: fine) {
|
|
397
|
-
.SelectControl[data-variant="soft"]:where(:not([data-disabled])):hover::before {
|
|
397
|
+
.SelectControl[data-variant="soft"]:where(:not([data-disabled])):hover:where(:not(:root[data-input="touch"] *))::before {
|
|
398
398
|
--select-control-background-color: var(--color-background-primary-soft-alpha-hover);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
.SelectControl[data-variant="outline"][data-state="open"] {
|
|
429
429
|
--select-control-border-color: var(--input-outline-border-color-hover);
|
|
430
430
|
}
|
|
431
|
-
@media (hover: hover) and (pointer: fine) {.SelectControl[data-variant="outline"]:where(:not([data-disabled])):hover {
|
|
431
|
+
@media (hover: hover) and (pointer: fine) {.SelectControl[data-variant="outline"]:where(:not([data-disabled])):hover:where(:not(:root[data-input="touch"] *)) {
|
|
432
432
|
--select-control-border-color: var(--input-outline-border-color-hover);
|
|
433
433
|
}
|
|
434
434
|
}
|
|
@@ -455,8 +455,8 @@
|
|
|
455
455
|
Hover
|
|
456
456
|
============================================= */
|
|
457
457
|
@media (hover: hover) and (pointer: fine) {
|
|
458
|
-
.SelectControl:not([data-disabled]):hover .Clear,
|
|
459
|
-
.SelectControl:not([data-disabled]):hover .DropdownIcon {
|
|
458
|
+
.SelectControl:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) .Clear,
|
|
459
|
+
.SelectControl:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) .DropdownIcon {
|
|
460
460
|
opacity: 1;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
@@ -519,8 +519,13 @@
|
|
|
519
519
|
opacity: 0.75;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
+
.Clear[data-uniform] {
|
|
523
|
+
--button-uniform-size: var(--clear-size);
|
|
524
|
+
}
|
|
525
|
+
|
|
522
526
|
.Clear[data-variant="solid"] {
|
|
523
527
|
--button-size: var(--clear-iso-size);
|
|
528
|
+
--button-uniform-size: var(--clear-iso-size);
|
|
524
529
|
--button-icon-size: var(--clear-iso-icon-size);
|
|
525
530
|
}
|
|
526
531
|
|
|
@@ -535,8 +540,33 @@
|
|
|
535
540
|
|
|
536
541
|
:where(.SelectControl[data-pill]) .Clear[data-only-child] {
|
|
537
542
|
margin-right: var(--clear-iso-pill-offset);
|
|
538
|
-
}
|
|
543
|
+
}@media (max-width: 767px) {
|
|
544
|
+
.SelectControl:has(> .IndicatorWrapper > .Clear) {
|
|
545
|
+
min-height: 44px;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/* Keep the dropdown's own space. A wider clear slot reduces the text's
|
|
549
|
+
available width instead of extending an invisible target over the icon. */
|
|
550
|
+
.IndicatorWrapper:has(> .Clear) {
|
|
551
|
+
flex-shrink: 0;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.Clear {
|
|
555
|
+
min-width: 44px;
|
|
556
|
+
min-height: 44px;
|
|
557
|
+
|
|
558
|
+
/* Button's size token remains the face size, including the solid-only
|
|
559
|
+
variant. The background and ring stay compact inside the touch slot. */
|
|
560
|
+
}
|
|
561
|
+
.Clear::before,
|
|
562
|
+
.Clear::after {
|
|
563
|
+
width: var(--button-size);
|
|
564
|
+
height: var(--button-size);
|
|
565
|
+
margin: auto;
|
|
566
|
+
}
|
|
567
|
+
}.DropdownIcon {
|
|
539
568
|
position: relative;
|
|
569
|
+
display: inline-flex;
|
|
540
570
|
width: var(--dropdown-icon-width, 8px);
|
|
541
571
|
height: var(--dropdown-icon-height, 12px);
|
|
542
572
|
margin-right: var(--dropdown-icon-offset);
|
|
@@ -554,14 +584,91 @@
|
|
|
554
584
|
|
|
555
585
|
[data-state="open"] .DropdownIcon {
|
|
556
586
|
opacity: 1;
|
|
557
|
-
}.
|
|
587
|
+
}.DropdownIcon > svg {
|
|
588
|
+
display: block;
|
|
589
|
+
width: 100%;
|
|
590
|
+
height: 100%;
|
|
591
|
+
}.DropdownIcon > .MobileDropdownGlyph {
|
|
592
|
+
display: none;
|
|
593
|
+
}.DropdownIconChevron {
|
|
558
594
|
width: var(--dropdown-chevron-icon-width, 11px);
|
|
559
595
|
height: var(--dropdown-chevron-icon-height, 6px);
|
|
560
596
|
}/* Shares margin offset with dropdown indicator */.LoadingIndicator {
|
|
597
|
+
/* Embedded loading follows the control's text size, or the touch stylesheet's
|
|
598
|
+
field size; standalone touch indicators keep their larger default and explicit
|
|
599
|
+
sizes still win. */
|
|
600
|
+
--indicator-default-size: var(--control-indicator-size, 1em);
|
|
601
|
+
|
|
561
602
|
margin-right: var(--dropdown-icon-offset);
|
|
562
603
|
}
|
|
563
604
|
|
|
564
605
|
:where(.SelectControl[data-pill]) .LoadingIndicator {
|
|
565
606
|
margin-right: var(--dropdown-icon-pill-offset);
|
|
607
|
+
}/* Standalone native pop-up trigger. Field rows own their control geometry. */@media (max-width: 767px) {
|
|
608
|
+
:where([data-row]) .DropdownIcon:not(.DropdownIconChevron) {
|
|
609
|
+
align-items: center;
|
|
610
|
+
justify-content: center;
|
|
611
|
+
width: 10px;
|
|
612
|
+
height: 22px;
|
|
613
|
+
margin-inline: 0;
|
|
614
|
+
color: var(--mobile-accessory-secondary, var(--color-text-secondary));
|
|
615
|
+
opacity: 1;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
:where([data-row]) .DropdownIcon > .DropdownGlyph {
|
|
619
|
+
display: none;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* The compact date capsule of a row (Field) shows no pop-up chevrons, as in the iOS 26 kit. */
|
|
623
|
+
:where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .DropdownIcon {
|
|
624
|
+
display: none;
|
|
566
625
|
}
|
|
626
|
+
|
|
627
|
+
/* Without the chevrons its indicator wrapper is empty; the trigger's gap before it would leave the date 8px off
|
|
628
|
+
the capsule's center and the capsules 8px short of the row's edge. A clear button keeps the wrapper. Both rules
|
|
629
|
+
follow each other: wherever a row hides a date's chevrons, it hides the wrapper they leave empty. */
|
|
630
|
+
:where([data-row][data-orientation="horizontal"]) .SelectControl[data-date-picker] .IndicatorWrapper:not(:has(> :not(.DropdownIcon))) {
|
|
631
|
+
display: none;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
:where([data-row]) .DropdownIcon > .MobileDropdownGlyph {
|
|
635
|
+
display: block;
|
|
636
|
+
flex-shrink: 0;
|
|
637
|
+
width: 20px;
|
|
638
|
+
height: 20px;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
:where([data-row]) :is([disabled], [data-disabled], [aria-disabled="true"]) .DropdownIcon:not(.DropdownIconChevron) {
|
|
642
|
+
color: var(--color-text-disabled);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/* A pop-up at the end of a labeled row shows its value in the secondary label, as the option rows of
|
|
646
|
+
iOS 26 Reminders and Calendar do (iOS IMG_5442: the value and its chevrons at 138 on white; iOS2
|
|
647
|
+
IMG_5523). Files shows its View Options values in the primary label beside the same gray chevrons
|
|
648
|
+
(iOS-menu IMG_5686: the value at 3, the chevrons at 122 on 215): such a screen sets
|
|
649
|
+
--field-row-popup-value-color. In columns the value is the row's data and stays primary, as in an Apple
|
|
650
|
+
Account billing address (IMG_5489). Disabled, the value and the chevrons take the tertiary label. */
|
|
651
|
+
:where([data-row][data-orientation="horizontal"]:not([data-field-columns] *)) .SelectControl[data-selected="true"]:not([data-disabled]) {
|
|
652
|
+
color: var(--field-row-popup-value-color, var(--mobile-label-secondary, var(--color-text-secondary)));
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
:where([data-row][data-orientation="horizontal"]:not([data-field-columns] *)) .SelectControl[data-disabled][data-variant],
|
|
656
|
+
:where([data-row][data-orientation="horizontal"]:not([data-field-columns] *)) .SelectControl[data-disabled] .DropdownIcon:not(.DropdownIconChevron) {
|
|
657
|
+
color: var(--mobile-label-tertiary, var(--color-text-disabled));
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/* In columns the chevrons step back to the tertiary label next to the primary value, as in an Apple
|
|
661
|
+
Account billing address (iOS IMG_5489: the value at 0, its chevrons at 197 on white), enabled or not. */
|
|
662
|
+
:where([data-field-columns] [data-row][data-orientation="horizontal"]) .DropdownIcon:not(.DropdownIconChevron),
|
|
663
|
+
:where([data-field-columns] [data-row][data-orientation="horizontal"]) .SelectControl[data-disabled] .DropdownIcon:not(.DropdownIconChevron) {
|
|
664
|
+
color: var(--mobile-label-tertiary, var(--color-text-tertiary));
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.SelectControl[data-variant="ghost"]:not([data-row] *) {
|
|
668
|
+
--select-control-size: 44px;
|
|
669
|
+
--select-control-gutter: 0px;
|
|
670
|
+
--select-control-gap: 3px;
|
|
671
|
+
line-height: 18px;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
567
674
|
}
|