@slotted/styles 0.0.0-stage → 0.1.0-beta.0
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/LICENSE +21 -0
- package/README.md +10 -2
- package/package.json +276 -3
- package/src/accordion/accordion.css +96 -0
- package/src/accordion/accordion.tokens.json +14 -0
- package/src/action-bar/action-bar.css +455 -0
- package/src/action-bar/action-bar.tokens.json +50 -0
- package/src/action-sheet/action-sheet.css +462 -0
- package/src/action-sheet/action-sheet.tokens.json +59 -0
- package/src/alert/alert.css +764 -0
- package/src/alert/alert.tokens.json +77 -0
- package/src/app-shell/app-shell.css +1899 -0
- package/src/app-shell/app-shell.tokens.json +88 -0
- package/src/aspect-ratio/aspect-ratio.css +131 -0
- package/src/aspect-ratio/aspect-ratio.tokens.json +1 -0
- package/src/attachment/attachment.css +906 -0
- package/src/attachment/attachment.tokens.json +85 -0
- package/src/avatar/avatar.css +598 -0
- package/src/avatar/avatar.tokens.json +64 -0
- package/src/avatar-group/avatar-group.css +268 -0
- package/src/avatar-group/avatar-group.tokens.json +16 -0
- package/src/badge/badge.css +462 -0
- package/src/badge/badge.tokens.json +58 -0
- package/src/breadcrumb/breadcrumb.css +441 -0
- package/src/breadcrumb/breadcrumb.tokens.json +50 -0
- package/src/button/button.css +754 -0
- package/src/button/button.tokens.json +72 -0
- package/src/button-group/button-group.css +455 -0
- package/src/button-group/button-group.tokens.json +11 -0
- package/src/calendar/calendar.css +846 -0
- package/src/calendar/calendar.tokens.json +67 -0
- package/src/card/card.css +602 -0
- package/src/card/card.tokens.json +68 -0
- package/src/carousel/carousel.css +860 -0
- package/src/carousel/carousel.tokens.json +62 -0
- package/src/cascader/cascader.css +1320 -0
- package/src/cascader/cascader.tokens.json +103 -0
- package/src/chart/chart.css +1473 -0
- package/src/chart/chart.tokens.json +107 -0
- package/src/checkbox/checkbox.css +1011 -0
- package/src/checkbox/checkbox.tokens.json +102 -0
- package/src/checkbox-group/checkbox-group.css +70 -0
- package/src/checkbox-group/checkbox-group.tokens.json +6 -0
- package/src/code-block/code-block.css +555 -0
- package/src/code-block/code-block.tokens.json +69 -0
- package/src/collapsible/collapsible.css +546 -0
- package/src/collapsible/collapsible.tokens.json +55 -0
- package/src/color-picker/color-picker.css +607 -0
- package/src/color-picker/color-picker.tokens.json +58 -0
- package/src/column-manager/column-manager.css +452 -0
- package/src/column-manager/column-manager.tokens.json +43 -0
- package/src/combobox/combobox.css +1048 -0
- package/src/combobox/combobox.tokens.json +112 -0
- package/src/command-palette/command-palette.css +1000 -0
- package/src/command-palette/command-palette.tokens.json +75 -0
- package/src/container/container.css +198 -0
- package/src/container/container.tokens.json +18 -0
- package/src/context-menu/context-menu.css +104 -0
- package/src/context-menu/context-menu.tokens.json +11 -0
- package/src/currency-field/currency-field.css +787 -0
- package/src/currency-field/currency-field.tokens.json +80 -0
- package/src/dashboard-grid/dashboard-grid.css +748 -0
- package/src/dashboard-grid/dashboard-grid.tokens.json +67 -0
- package/src/data-grid/data-grid.css +2484 -0
- package/src/data-grid/data-grid.tokens.json +100 -0
- package/src/data-list/data-list.css +455 -0
- package/src/data-list/data-list.tokens.json +35 -0
- package/src/date-field/date-field.css +560 -0
- package/src/date-field/date-field.tokens.json +80 -0
- package/src/date-picker/date-picker.css +420 -0
- package/src/date-picker/date-picker.tokens.json +49 -0
- package/src/date-range-picker/date-range-picker.css +983 -0
- package/src/date-range-picker/date-range-picker.tokens.json +109 -0
- package/src/datetime-field/datetime-field.css +850 -0
- package/src/datetime-field/datetime-field.tokens.json +91 -0
- package/src/datetime-picker/datetime-picker.css +843 -0
- package/src/datetime-picker/datetime-picker.tokens.json +78 -0
- package/src/datetime-range-picker/datetime-range-picker.css +1375 -0
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +135 -0
- package/src/description-list/description-list.css +675 -0
- package/src/description-list/description-list.tokens.json +66 -0
- package/src/detail-panel/detail-panel.css +329 -0
- package/src/detail-panel/detail-panel.tokens.json +33 -0
- package/src/dialog/dialog.css +968 -0
- package/src/dialog/dialog.tokens.json +66 -0
- package/src/divider/divider.css +131 -0
- package/src/divider/divider.tokens.json +18 -0
- package/src/drawer/drawer.css +1303 -0
- package/src/drawer/drawer.tokens.json +75 -0
- package/src/entity-picker/entity-picker.css +1367 -0
- package/src/entity-picker/entity-picker.tokens.json +118 -0
- package/src/event-calendar/event-calendar.css +2148 -0
- package/src/event-calendar/event-calendar.tokens.json +87 -0
- package/src/field/field.css +707 -0
- package/src/field/field.tokens.json +58 -0
- package/src/field-group/field-group.css +226 -0
- package/src/field-group/field-group.tokens.json +33 -0
- package/src/filter-bar/filter-bar.css +1306 -0
- package/src/filter-bar/filter-bar.tokens.json +78 -0
- package/src/form/form.css +218 -0
- package/src/form/form.tokens.json +32 -0
- package/src/fullscreen/fullscreen.css +376 -0
- package/src/fullscreen/fullscreen.tokens.json +50 -0
- package/src/grid/grid.css +173 -0
- package/src/grid/grid.tokens.json +20 -0
- package/src/highlight/highlight.css +135 -0
- package/src/highlight/highlight.tokens.json +16 -0
- package/src/hover-card/hover-card.css +93 -0
- package/src/hover-card/hover-card.tokens.json +17 -0
- package/src/icon/icon.css +136 -0
- package/src/icon/icon.tokens.json +14 -0
- package/src/image/image.css +449 -0
- package/src/image/image.tokens.json +27 -0
- package/src/import-export-center/import-export-center.css +1175 -0
- package/src/import-export-center/import-export-center.tokens.json +84 -0
- package/src/inline/inline.css +149 -0
- package/src/inline/inline.tokens.json +14 -0
- package/src/inline-message/inline-message.css +396 -0
- package/src/inline-message/inline-message.tokens.json +19 -0
- package/src/kbd/kbd.css +490 -0
- package/src/kbd/kbd.tokens.json +40 -0
- package/src/link/link.css +237 -0
- package/src/link/link.tokens.json +25 -0
- package/src/list/list.css +240 -0
- package/src/list/list.tokens.json +42 -0
- package/src/list-item/list-item.css +937 -0
- package/src/list-item/list-item.tokens.json +114 -0
- package/src/listbox/listbox.css +674 -0
- package/src/listbox/listbox.tokens.json +72 -0
- package/src/loading-overlay/loading-overlay.css +730 -0
- package/src/loading-overlay/loading-overlay.tokens.json +48 -0
- package/src/markdown/markdown.css +168 -0
- package/src/markdown/markdown.tokens.json +18 -0
- package/src/menu/menu.css +817 -0
- package/src/menu/menu.tokens.json +78 -0
- package/src/menubar/menubar.css +170 -0
- package/src/menubar/menubar.tokens.json +32 -0
- package/src/message/message.css +1453 -0
- package/src/message/message.tokens.json +85 -0
- package/src/message-scroller/message-scroller.css +371 -0
- package/src/message-scroller/message-scroller.tokens.json +47 -0
- package/src/multi-select/multi-select.css +1427 -0
- package/src/multi-select/multi-select.tokens.json +114 -0
- package/src/navigation-menu/navigation-menu.css +1029 -0
- package/src/navigation-menu/navigation-menu.tokens.json +70 -0
- package/src/notification-center/notification-center.css +856 -0
- package/src/notification-center/notification-center.tokens.json +84 -0
- package/src/number-field/number-field.css +794 -0
- package/src/number-field/number-field.tokens.json +80 -0
- package/src/otp-input/otp-input.css +525 -0
- package/src/otp-input/otp-input.tokens.json +69 -0
- package/src/page/page.css +179 -0
- package/src/page/page.tokens.json +20 -0
- package/src/page-header/page-header.css +1181 -0
- package/src/page-header/page-header.tokens.json +71 -0
- package/src/pagination/pagination.css +500 -0
- package/src/pagination/pagination.tokens.json +56 -0
- package/src/popover/popover.css +526 -0
- package/src/popover/popover.tokens.json +60 -0
- package/src/progress-indicator/progress-indicator.css +1584 -0
- package/src/progress-indicator/progress-indicator.tokens.json +50 -0
- package/src/prompt-composer/prompt-composer.css +680 -0
- package/src/prompt-composer/prompt-composer.tokens.json +99 -0
- package/src/prose/prose.css +733 -0
- package/src/prose/prose.tokens.json +79 -0
- package/src/radio-group/radio-group.css +778 -0
- package/src/radio-group/radio-group.tokens.json +103 -0
- package/src/rating/rating.css +1071 -0
- package/src/rating/rating.tokens.json +88 -0
- package/src/result-state/result-state.css +980 -0
- package/src/result-state/result-state.tokens.json +63 -0
- package/src/runtime-properties.mjs +321 -0
- package/src/saved-views/saved-views.css +394 -0
- package/src/saved-views/saved-views.tokens.json +41 -0
- package/src/scroll-area/scroll-area.css +481 -0
- package/src/scroll-area/scroll-area.tokens.json +15 -0
- package/src/section/section.css +177 -0
- package/src/section/section.tokens.json +39 -0
- package/src/segmented-control/segmented-control.css +564 -0
- package/src/segmented-control/segmented-control.tokens.json +67 -0
- package/src/select/select.css +1593 -0
- package/src/select/select.tokens.json +110 -0
- package/src/side-navigation/side-navigation.css +1096 -0
- package/src/side-navigation/side-navigation.tokens.json +87 -0
- package/src/skeleton/skeleton.css +431 -0
- package/src/skeleton/skeleton.tokens.json +29 -0
- package/src/slider/slider.css +792 -0
- package/src/slider/slider.tokens.json +75 -0
- package/src/sparkline/sparkline.css +282 -0
- package/src/sparkline/sparkline.tokens.json +45 -0
- package/src/spinner/spinner.css +224 -0
- package/src/spinner/spinner.tokens.json +8 -0
- package/src/split-button/split-button.css +253 -0
- package/src/split-button/split-button.tokens.json +12 -0
- package/src/splitter/splitter.css +336 -0
- package/src/splitter/splitter.tokens.json +24 -0
- package/src/stack/stack.css +128 -0
- package/src/stack/stack.tokens.json +14 -0
- package/src/stat-card/stat-card.css +641 -0
- package/src/stat-card/stat-card.tokens.json +95 -0
- package/src/status-indicator/status-indicator.css +481 -0
- package/src/status-indicator/status-indicator.tokens.json +38 -0
- package/src/stepper/stepper.css +629 -0
- package/src/stepper/stepper.tokens.json +72 -0
- package/src/switch/switch.css +703 -0
- package/src/switch/switch.tokens.json +75 -0
- package/src/table/table.css +1482 -0
- package/src/table/table.tokens.json +69 -0
- package/src/table-of-contents/table-of-contents.css +533 -0
- package/src/table-of-contents/table-of-contents.tokens.json +53 -0
- package/src/tabs/tabs.css +998 -0
- package/src/tabs/tabs.tokens.json +82 -0
- package/src/tag/tag.css +768 -0
- package/src/tag/tag.tokens.json +85 -0
- package/src/tags-input/tags-input.css +757 -0
- package/src/tags-input/tags-input.tokens.json +84 -0
- package/src/text-field/text-field.css +900 -0
- package/src/text-field/text-field.tokens.json +87 -0
- package/src/textarea/textarea.css +365 -0
- package/src/textarea/textarea.tokens.json +59 -0
- package/src/time-field/time-field.css +719 -0
- package/src/time-field/time-field.tokens.json +86 -0
- package/src/time-picker/time-picker.css +665 -0
- package/src/time-picker/time-picker.tokens.json +66 -0
- package/src/time-range-picker/time-range-picker.css +1287 -0
- package/src/time-range-picker/time-range-picker.tokens.json +134 -0
- package/src/timeline/timeline.css +1596 -0
- package/src/timeline/timeline.tokens.json +96 -0
- package/src/toast/toast.css +943 -0
- package/src/toast/toast.tokens.json +90 -0
- package/src/toggle/toggle.css +290 -0
- package/src/toggle/toggle.tokens.json +54 -0
- package/src/toggle-group/toggle-group.css +463 -0
- package/src/toggle-group/toggle-group.tokens.json +54 -0
- package/src/toolbar/toolbar.css +434 -0
- package/src/toolbar/toolbar.tokens.json +49 -0
- package/src/tooltip/tooltip.css +368 -0
- package/src/tooltip/tooltip.tokens.json +39 -0
- package/src/top-navigation/top-navigation.css +1287 -0
- package/src/top-navigation/top-navigation.tokens.json +91 -0
- package/src/tour/tour.css +680 -0
- package/src/tour/tour.tokens.json +67 -0
- package/src/transfer/transfer.css +571 -0
- package/src/transfer/transfer.tokens.json +49 -0
- package/src/tree/tree.css +1000 -0
- package/src/tree/tree.tokens.json +80 -0
- package/src/typography/typography.css +211 -0
- package/src/typography/typography.tokens.json +31 -0
- package/src/upload/upload.css +1706 -0
- package/src/upload/upload.tokens.json +123 -0
- package/src/visually-hidden/visually-hidden.css +52 -0
- package/src/visually-hidden/visually-hidden.tokens.json +1 -0
- package/src/wizard/wizard.css +740 -0
- package/src/wizard/wizard.tokens.json +63 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
[
|
|
2
|
+
"--slotted-border-subtle",
|
|
3
|
+
"--slotted-border-width-thick",
|
|
4
|
+
"--slotted-border-width-thin",
|
|
5
|
+
"--slotted-control-font-family",
|
|
6
|
+
"--slotted-control-icon-size-lg",
|
|
7
|
+
"--slotted-control-inner-size-lg",
|
|
8
|
+
"--slotted-control-radius",
|
|
9
|
+
"--slotted-control-transition-duration",
|
|
10
|
+
"--slotted-control-transition-easing",
|
|
11
|
+
"--slotted-dialog-body-color",
|
|
12
|
+
"--slotted-dialog-border-color",
|
|
13
|
+
"--slotted-dialog-close-active-background",
|
|
14
|
+
"--slotted-dialog-close-color",
|
|
15
|
+
"--slotted-dialog-close-hover-background",
|
|
16
|
+
"--slotted-dialog-color",
|
|
17
|
+
"--slotted-dialog-description-color",
|
|
18
|
+
"--slotted-dialog-footer-surface",
|
|
19
|
+
"--slotted-dialog-measure",
|
|
20
|
+
"--slotted-dialog-radius",
|
|
21
|
+
"--slotted-dialog-rule-color",
|
|
22
|
+
"--slotted-dialog-scrim",
|
|
23
|
+
"--slotted-dialog-surface",
|
|
24
|
+
"--slotted-dialog-title-color",
|
|
25
|
+
"--slotted-dialog-title-font-family",
|
|
26
|
+
"--slotted-duration-long",
|
|
27
|
+
"--slotted-duration-medium",
|
|
28
|
+
"--slotted-duration-short",
|
|
29
|
+
"--slotted-easing-exit",
|
|
30
|
+
"--slotted-easing-standard",
|
|
31
|
+
"--slotted-focus-ring-color",
|
|
32
|
+
"--slotted-focus-ring-offset",
|
|
33
|
+
"--slotted-focus-ring-width",
|
|
34
|
+
"--slotted-font-family-heading",
|
|
35
|
+
"--slotted-font-family-sans",
|
|
36
|
+
"--slotted-font-size-lg",
|
|
37
|
+
"--slotted-font-size-md",
|
|
38
|
+
"--slotted-font-size-xl",
|
|
39
|
+
"--slotted-font-weight-semibold",
|
|
40
|
+
"--slotted-line-height-md",
|
|
41
|
+
"--slotted-radius-lg",
|
|
42
|
+
"--slotted-radius-sm",
|
|
43
|
+
"--slotted-scrim",
|
|
44
|
+
"--slotted-shadow-lg",
|
|
45
|
+
"--slotted-space-12",
|
|
46
|
+
"--slotted-space-2",
|
|
47
|
+
"--slotted-space-4",
|
|
48
|
+
"--slotted-space-5",
|
|
49
|
+
"--slotted-space-6",
|
|
50
|
+
"--slotted-space-7",
|
|
51
|
+
"--slotted-space-8",
|
|
52
|
+
"--slotted-surface-raised",
|
|
53
|
+
"--slotted-surface-sunken",
|
|
54
|
+
"--slotted-target-comfortable",
|
|
55
|
+
"--slotted-target-min",
|
|
56
|
+
"--slotted-text",
|
|
57
|
+
"--slotted-text-muted",
|
|
58
|
+
"--slotted-tone-accent-text",
|
|
59
|
+
"--slotted-tone-danger-text",
|
|
60
|
+
"--slotted-tone-secondary-subtle-active",
|
|
61
|
+
"--slotted-tone-secondary-subtle-hover",
|
|
62
|
+
"--slotted-tone-secondary-text",
|
|
63
|
+
"--slotted-tone-success-text",
|
|
64
|
+
"--slotted-tone-warning-text",
|
|
65
|
+
"--slotted-z-index-overlay"
|
|
66
|
+
]
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@layer slotted.components {
|
|
2
|
+
/**
|
|
3
|
+
* The rule is a border, never a painted box. A box would give the element a
|
|
4
|
+
* size on the axis it divides, and the whole point of a separator is that it
|
|
5
|
+
* occupies the thickness it draws and nothing else.
|
|
6
|
+
*
|
|
7
|
+
* Its length comes from the container, and both axes have to be claimed to
|
|
8
|
+
* get it: a flex container hands the cross size over through `align-self`,
|
|
9
|
+
* and a grid hands the inline size over through `justify-self`. A container
|
|
10
|
+
* that packs its children instead of stretching them — `justify-items:
|
|
11
|
+
* start` is the common one — otherwise sizes the rule from its content,
|
|
12
|
+
* which for a rule is nothing at all.
|
|
13
|
+
*/
|
|
14
|
+
[data-ui='divider'] {
|
|
15
|
+
align-self: stretch;
|
|
16
|
+
border: 0;
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
justify-self: stretch;
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Each orientation keeps a floor for the container that gives it no length
|
|
24
|
+
* on the axis it runs along. The floor is one line of the surrounding text:
|
|
25
|
+
* a taller one would grow the row a vertical rule stands in, and no scale
|
|
26
|
+
* holds a length that has to follow the type size at the point of use. A
|
|
27
|
+
* theme that wants a fixed floor sets the token.
|
|
28
|
+
*/
|
|
29
|
+
[data-ui='divider']:not([data-labelled])[data-orientation='horizontal'] {
|
|
30
|
+
block-size: 0;
|
|
31
|
+
border-block-start: var(--slotted-divider-thickness, var(--slotted-border-width-thin, 1px))
|
|
32
|
+
solid var(--slotted-divider-color, var(--slotted-border-subtle, ButtonBorder));
|
|
33
|
+
min-inline-size: var(--slotted-divider-min-length, 1em);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[data-ui='divider']:not([data-labelled])[data-orientation='vertical'] {
|
|
37
|
+
border-inline-start: var(--slotted-divider-thickness, var(--slotted-border-width-thin, 1px))
|
|
38
|
+
solid var(--slotted-divider-color, var(--slotted-border-subtle, ButtonBorder));
|
|
39
|
+
inline-size: 0;
|
|
40
|
+
min-block-size: var(--slotted-divider-min-length, 1em);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A rule that stops short of both ends of its container. The default is the
|
|
45
|
+
* inline padding of a control, because the rule that needs an inset is
|
|
46
|
+
* almost always the one inside a menu or a list built from controls, and it
|
|
47
|
+
* has to line up with their text at every density.
|
|
48
|
+
*/
|
|
49
|
+
[data-ui='divider'][data-inset][data-orientation='horizontal'] {
|
|
50
|
+
margin-inline: var(--slotted-divider-inset, var(--slotted-control-padding-inline-md, 13px));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-ui='divider'][data-inset][data-orientation='vertical'] {
|
|
54
|
+
margin-block: var(--slotted-divider-inset, var(--slotted-control-padding-inline-md, 13px));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A labelled rule is the same separator with its line interrupted. The two
|
|
59
|
+
* halves are drawn by the element itself rather than by two more elements,
|
|
60
|
+
* so the DOM a consumer reads is the root and the label, and nothing else
|
|
61
|
+
* becomes an accidental promise.
|
|
62
|
+
*/
|
|
63
|
+
[data-ui='divider'][data-labelled] {
|
|
64
|
+
align-items: center;
|
|
65
|
+
display: flex;
|
|
66
|
+
gap: var(--slotted-divider-gap, var(--slotted-space-4, 0.5rem));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[data-ui='divider'][data-labelled][data-orientation='vertical'] {
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
min-block-size: var(--slotted-divider-min-length, 1em);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* The halves grow into whatever the label leaves and never shrink past a
|
|
76
|
+
* stub: in a narrow container the label wraps and the rule still reads as a
|
|
77
|
+
* rule. Unthemed, they disappear rather than reaching for a system colour,
|
|
78
|
+
* which is the right failure for decoration.
|
|
79
|
+
*/
|
|
80
|
+
[data-ui='divider'][data-labelled]::before,
|
|
81
|
+
[data-ui='divider'][data-labelled]::after {
|
|
82
|
+
content: '';
|
|
83
|
+
flex: 1 0 var(--slotted-space-5, 0.75rem);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-ui='divider'][data-labelled][data-orientation='horizontal']::before,
|
|
87
|
+
[data-ui='divider'][data-labelled][data-orientation='horizontal']::after {
|
|
88
|
+
block-size: 0;
|
|
89
|
+
border-block-start: var(--slotted-divider-thickness, var(--slotted-border-width-thin, 1px))
|
|
90
|
+
solid var(--slotted-divider-color, var(--slotted-border-subtle));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[data-ui='divider'][data-labelled][data-orientation='vertical']::before,
|
|
94
|
+
[data-ui='divider'][data-labelled][data-orientation='vertical']::after {
|
|
95
|
+
border-inline-start: var(--slotted-divider-thickness, var(--slotted-border-width-thin, 1px))
|
|
96
|
+
solid var(--slotted-divider-color, var(--slotted-border-subtle));
|
|
97
|
+
inline-size: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* A label at one end keeps one half of the rule, not a stub of the other. */
|
|
101
|
+
[data-ui='divider'][data-labelled][data-align='start']::before,
|
|
102
|
+
[data-ui='divider'][data-labelled][data-align='end']::after {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The label reads as metadata about the division, not as content of the
|
|
108
|
+
* section below it, so it takes the smallest step of the type scale and the
|
|
109
|
+
* muted text colour. It wraps before it overflows, and a single token longer
|
|
110
|
+
* than the container breaks rather than pushing the rule out of the layout.
|
|
111
|
+
*/
|
|
112
|
+
[data-ui='divider'] [data-part='label'] {
|
|
113
|
+
color: var(--slotted-divider-label-color, var(--slotted-text-muted, GrayText));
|
|
114
|
+
font-family: var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);
|
|
115
|
+
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
116
|
+
font-weight: var(--slotted-font-weight-medium, 500);
|
|
117
|
+
line-height: var(--slotted-line-height-xs, 1.4);
|
|
118
|
+
min-inline-size: 0;
|
|
119
|
+
overflow-wrap: anywhere;
|
|
120
|
+
text-align: center;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* A label that wraps keeps the edge it was placed against. */
|
|
124
|
+
[data-ui='divider'][data-align='start'] [data-part='label'] {
|
|
125
|
+
text-align: start;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-ui='divider'][data-align='end'] [data-part='label'] {
|
|
129
|
+
text-align: end;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[
|
|
2
|
+
"--slotted-border-subtle",
|
|
3
|
+
"--slotted-border-width-thin",
|
|
4
|
+
"--slotted-control-padding-inline-md",
|
|
5
|
+
"--slotted-divider-color",
|
|
6
|
+
"--slotted-divider-gap",
|
|
7
|
+
"--slotted-divider-inset",
|
|
8
|
+
"--slotted-divider-label-color",
|
|
9
|
+
"--slotted-divider-min-length",
|
|
10
|
+
"--slotted-divider-thickness",
|
|
11
|
+
"--slotted-font-family-sans",
|
|
12
|
+
"--slotted-font-size-xs",
|
|
13
|
+
"--slotted-font-weight-medium",
|
|
14
|
+
"--slotted-line-height-xs",
|
|
15
|
+
"--slotted-space-4",
|
|
16
|
+
"--slotted-space-5",
|
|
17
|
+
"--slotted-text-muted"
|
|
18
|
+
]
|