tandd-ui 0.0.0-stage → 0.2.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/CHANGELOG.md +96 -0
- package/LICENSE +21 -0
- package/README.md +96 -2
- package/dist/components/_shared/direction.d.ts +6 -0
- package/dist/components/_shared/escapeLayers.d.ts +21 -0
- package/dist/components/_shared/formatLabel.d.ts +5 -0
- package/dist/components/_shared/useDismissiblePopup.d.ts +4 -0
- package/dist/components/_shared/useFieldValidation.d.ts +34 -0
- package/dist/components/_shared/useFocusTrap.d.ts +16 -0
- package/dist/components/_shared/useMessages.d.ts +18 -0
- package/dist/components/_shared/usePopover.d.ts +122 -0
- package/dist/components/_shared/useRipple.d.ts +37 -0
- package/dist/components/_shared/useRovingFocus.d.ts +25 -0
- package/dist/components/accordion/DTAccordion.vue.d.ts +42 -0
- package/dist/components/accordion/DTAccordionItem.vue.d.ts +34 -0
- package/dist/components/accordion/accordionContext.d.ts +13 -0
- package/dist/components/alert/DTAlert.vue.d.ts +57 -0
- package/dist/components/anchor/DTAnchor.vue.d.ts +48 -0
- package/dist/components/anchor/DTAnchorLink.vue.d.ts +21 -0
- package/dist/components/anchor/anchorContext.d.ts +10 -0
- package/dist/components/app-bar/DTAppBar.vue.d.ts +56 -0
- package/dist/components/autocomplete/DTAutocomplete.vue.d.ts +131 -0
- package/dist/components/avatar/DTAvatar.vue.d.ts +37 -0
- package/dist/components/avatar/DTAvatarGroup.vue.d.ts +18 -0
- package/dist/components/badge/DTBadge.vue.d.ts +47 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/border-beam/DTBorderBeam.vue.d.ts +47 -0
- package/dist/components/breadcrumb/DTBreadcrumb.vue.d.ts +46 -0
- package/dist/components/button/DTButton.vue.d.ts +60 -0
- package/dist/components/button-group/DTButtonGroup.vue.d.ts +56 -0
- package/dist/components/button-group/buttonGroupContext.d.ts +16 -0
- package/dist/components/card/DTCard.vue.d.ts +38 -0
- package/dist/components/card/DTCardBody.vue.d.ts +13 -0
- package/dist/components/card/DTCardFooter.vue.d.ts +13 -0
- package/dist/components/card/DTCardHeader.vue.d.ts +17 -0
- package/dist/components/card/DTCardMedia.vue.d.ts +24 -0
- package/dist/components/card/DTCardSubtitle.vue.d.ts +13 -0
- package/dist/components/card/DTCardText.vue.d.ts +13 -0
- package/dist/components/card/DTCardTitle.vue.d.ts +24 -0
- package/dist/components/card/context.d.ts +6 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/carousel/DTCarousel.vue.d.ts +69 -0
- package/dist/components/carousel/DTCarouselItem.vue.d.ts +21 -0
- package/dist/components/carousel/carouselContext.d.ts +22 -0
- package/dist/components/checkbox/DTCheckbox.vue.d.ts +50 -0
- package/dist/components/chip/DTChip.vue.d.ts +62 -0
- package/dist/components/chip/DTChipGroup.vue.d.ts +36 -0
- package/dist/components/chip/chipGroupContext.d.ts +9 -0
- package/dist/components/code/DTCode.vue.d.ts +13 -0
- package/dist/components/col/DTCol.vue.d.ts +55 -0
- package/dist/components/color-input/DTColorInput.vue.d.ts +89 -0
- package/dist/components/color-input/colorMath.d.ts +36 -0
- package/dist/components/color-picker/DTColorPicker.vue.d.ts +66 -0
- package/dist/components/color-picker/context.d.ts +9 -0
- package/dist/components/combobox/DTCombobox.vue.d.ts +106 -0
- package/dist/components/container/DTContainer.vue.d.ts +29 -0
- package/dist/components/data-table/DTDataTable.vue.d.ts +112 -0
- package/dist/components/data-table/types.d.ts +70 -0
- package/dist/components/date-picker/DTDateInput.vue.d.ts +98 -0
- package/dist/components/date-picker/DTDatePicker.vue.d.ts +106 -0
- package/dist/components/date-picker/DTDateShortcuts.vue.d.ts +15 -0
- package/dist/components/date-picker/isoDate.d.ts +38 -0
- package/dist/components/date-picker/shortcuts.d.ts +11 -0
- package/dist/components/date-time-picker/DTDateTimeInput.vue.d.ts +107 -0
- package/dist/components/date-time-picker/DTDateTimePicker.vue.d.ts +94 -0
- package/dist/components/date-time-picker/isoDateTime.d.ts +30 -0
- package/dist/components/divider/DTDivider.vue.d.ts +19 -0
- package/dist/components/empty-state/DTEmptyState.vue.d.ts +51 -0
- package/dist/components/field/DTField.vue.d.ts +36 -0
- package/dist/components/field/fieldContext.d.ts +14 -0
- package/dist/components/field-control/DTFieldControl.vue.d.ts +135 -0
- package/dist/components/field-control/index.d.ts +1 -0
- package/dist/components/file-input/DTFileInput.vue.d.ts +142 -0
- package/dist/components/file-upload/DTFileUpload.vue.d.ts +132 -0
- package/dist/components/file-upload/icons.d.ts +1 -0
- package/dist/components/file-upload/types.d.ts +47 -0
- package/dist/components/grid/DTGrid.vue.d.ts +44 -0
- package/dist/components/grid/DTGridItem.vue.d.ts +42 -0
- package/dist/components/heading/DTHeading.vue.d.ts +31 -0
- package/dist/components/icon/DTIcon.vue.d.ts +43 -0
- package/dist/components/icon/play.d.ts +6 -0
- package/dist/components/icon/registry.d.ts +16 -0
- package/dist/components/infinite-scroll/DTInfiniteScroll.vue.d.ts +67 -0
- package/dist/components/infinite-scroll/icons.d.ts +1 -0
- package/dist/components/inline/DTInline.vue.d.ts +26 -0
- package/dist/components/kbd/DTKbd.vue.d.ts +13 -0
- package/dist/components/layout-app/DTLayout.vue.d.ts +18 -0
- package/dist/components/layout-app/DTMain.vue.d.ts +21 -0
- package/dist/components/layout-app/layoutContext.d.ts +33 -0
- package/dist/components/link/DTLink.vue.d.ts +26 -0
- package/dist/components/list/DTList.vue.d.ts +53 -0
- package/dist/components/list/DTListItem.vue.d.ts +61 -0
- package/dist/components/list/DTListSubheader.vue.d.ts +24 -0
- package/dist/components/list/listContext.d.ts +16 -0
- package/dist/components/mention/DTMention.vue.d.ts +93 -0
- package/dist/components/mention/caret.d.ts +7 -0
- package/dist/components/menu/DTMenu.vue.d.ts +66 -0
- package/dist/components/menu/DTMenuItem.vue.d.ts +45 -0
- package/dist/components/menu/DTMenuLabel.vue.d.ts +13 -0
- package/dist/components/menu/DTMenuSeparator.vue.d.ts +3 -0
- package/dist/components/menu/menuContext.d.ts +38 -0
- package/dist/components/modal/DTModal.vue.d.ts +52 -0
- package/dist/components/modal/modalStack.d.ts +20 -0
- package/dist/components/navigation-drawer/DTNavigationDrawer.vue.d.ts +93 -0
- package/dist/components/number-input/DTNumberInput.vue.d.ts +66 -0
- package/dist/components/otp-input/DTOtpInput.vue.d.ts +71 -0
- package/dist/components/pagination/DTPagination.vue.d.ts +55 -0
- package/dist/components/popover/DTPopover.vue.d.ts +67 -0
- package/dist/components/progress/DTProgress.vue.d.ts +48 -0
- package/dist/components/pull-refresh/DTPullRefresh.vue.d.ts +69 -0
- package/dist/components/radio/DTRadio.vue.d.ts +41 -0
- package/dist/components/radio/DTRadioGroup.vue.d.ts +35 -0
- package/dist/components/radio/radioGroupContext.d.ts +12 -0
- package/dist/components/rating/DTRating.vue.d.ts +65 -0
- package/dist/components/row/DTRow.vue.d.ts +38 -0
- package/dist/components/select/DTSelect.vue.d.ts +140 -0
- package/dist/components/sheet/DTSheet.vue.d.ts +57 -0
- package/dist/components/skeleton/DTSkeleton.vue.d.ts +34 -0
- package/dist/components/skip-link/DTSkipLink.vue.d.ts +33 -0
- package/dist/components/slider/DTSlider.vue.d.ts +88 -0
- package/dist/components/spinner/DTSpinner.vue.d.ts +34 -0
- package/dist/components/stack/DTStack.vue.d.ts +24 -0
- package/dist/components/statistic/DTCountdown.vue.d.ts +49 -0
- package/dist/components/statistic/DTStatistic.vue.d.ts +49 -0
- package/dist/components/statistic/format.d.ts +39 -0
- package/dist/components/stepper/DTStep.vue.d.ts +41 -0
- package/dist/components/stepper/DTStepHeader.vue.d.ts +8 -0
- package/dist/components/stepper/DTStepper.vue.d.ts +46 -0
- package/dist/components/stepper/stepperContext.d.ts +39 -0
- package/dist/components/surface/DTSurface.vue.d.ts +43 -0
- package/dist/components/surface/index.d.ts +2 -0
- package/dist/components/switch/DTSwitch.vue.d.ts +59 -0
- package/dist/components/table/DTTable.vue.d.ts +55 -0
- package/dist/components/table/DTTableScrollbars.vue.d.ts +9 -0
- package/dist/components/tabs/DTTab.vue.d.ts +23 -0
- package/dist/components/tabs/DTTabs.vue.d.ts +45 -0
- package/dist/components/tabs/tabsContext.d.ts +19 -0
- package/dist/components/text/DTText.vue.d.ts +32 -0
- package/dist/components/text-field/DTFieldShell.vue.d.ts +59 -0
- package/dist/components/text-field/DTInput.vue.d.ts +70 -0
- package/dist/components/text-field/fieldShared.d.ts +87 -0
- package/dist/components/textarea/DTTextarea.vue.d.ts +56 -0
- package/dist/components/time-picker/DTTimeInput.vue.d.ts +71 -0
- package/dist/components/time-picker/DTTimePicker.vue.d.ts +52 -0
- package/dist/components/time-picker/isoTime.d.ts +21 -0
- package/dist/components/timeline/DTTimeline.vue.d.ts +36 -0
- package/dist/components/timeline/DTTimelineItem.vue.d.ts +46 -0
- package/dist/components/timeline/timelineContext.d.ts +13 -0
- package/dist/components/toast/DTToastRegion.vue.d.ts +18 -0
- package/dist/components/toast/toastStore.d.ts +77 -0
- package/dist/components/tooltip/DTTooltip.vue.d.ts +45 -0
- package/dist/components/tour/DTTour.vue.d.ts +62 -0
- package/dist/components/tour/DTTourStep.vue.d.ts +31 -0
- package/dist/components/tour/tourContext.d.ts +20 -0
- package/dist/components/tree-select/DTTreeSelect.vue.d.ts +86 -0
- package/dist/components/treeview/DTTreeview.vue.d.ts +92 -0
- package/dist/components/watermark/DTWatermark.vue.d.ts +48 -0
- package/dist/config.d.ts +58 -0
- package/dist/index.d.ts +183 -0
- package/dist/locale/en.d.ts +311 -0
- package/dist/locale/en.js +192 -0
- package/dist/locale/messages.d.ts +295 -0
- package/dist/locale/vi.d.ts +309 -0
- package/dist/locale/vi.js +192 -0
- package/dist/plugin.d.ts +26 -0
- package/dist/tandd-ui.css +11585 -0
- package/dist/tandd-ui.js +13039 -0
- package/dist/theme/cssVariables.d.ts +14 -0
- package/dist/theme/defaultTheme.d.ts +5 -0
- package/dist/theme/index.d.ts +34 -0
- package/dist/useLocale.d.ts +15 -0
- package/dist/useTheme.d.ts +9 -0
- package/package.json +112 -4
- package/src/components/_index.scss +73 -0
- package/src/components/accordion/DTAccordion.scss +123 -0
- package/src/components/alert/DTAlert.scss +222 -0
- package/src/components/anchor/DTAnchor.scss +137 -0
- package/src/components/app-bar/DTAppBar.scss +151 -0
- package/src/components/autocomplete/DTAutocomplete.scss +89 -0
- package/src/components/avatar/DTAvatar.scss +67 -0
- package/src/components/badge/DTBadge.scss +218 -0
- package/src/components/border-beam/DTBorderBeam.scss +67 -0
- package/src/components/breadcrumb/DTBreadcrumb.scss +58 -0
- package/src/components/button/DTButton.scss +252 -0
- package/src/components/button-group/DTButtonGroup.scss +103 -0
- package/src/components/card/DTCard.scss +183 -0
- package/src/components/carousel/DTCarousel.scss +228 -0
- package/src/components/checkbox/DTChoice.scss +351 -0
- package/src/components/chip/DTChip.scss +280 -0
- package/src/components/code/DTCode.scss +10 -0
- package/src/components/col/DTCol.scss +124 -0
- package/src/components/color-input/DTColorInput.scss +118 -0
- package/src/components/color-picker/DTColorPicker.scss +334 -0
- package/src/components/container/DTContainer.scss +24 -0
- package/src/components/data-table/DTDataTable.scss +274 -0
- package/src/components/date-picker/DTDatePicker.scss +474 -0
- package/src/components/date-time-picker/DTDateTimePicker.scss +144 -0
- package/src/components/divider/DTDivider.scss +67 -0
- package/src/components/empty-state/DTEmptyState.scss +106 -0
- package/src/components/field/DTField.scss +69 -0
- package/src/components/field-control/DTFieldControl.scss +221 -0
- package/src/components/file-input/DTFileInput.scss +98 -0
- package/src/components/file-upload/DTFileUpload.scss +185 -0
- package/src/components/grid/DTGrid.scss +135 -0
- package/src/components/heading/DTHeading.scss +9 -0
- package/src/components/icon/DTIcon.scss +64 -0
- package/src/components/infinite-scroll/DTInfiniteScroll.scss +67 -0
- package/src/components/inline/DTInline.scss +19 -0
- package/src/components/kbd/DTKbd.scss +17 -0
- package/src/components/layout-app/DTLayout.scss +69 -0
- package/src/components/link/DTLink.scss +35 -0
- package/src/components/list/DTList.scss +261 -0
- package/src/components/mention/DTMention.scss +24 -0
- package/src/components/menu/DTMenu.scss +282 -0
- package/src/components/modal/DTModal.scss +178 -0
- package/src/components/navigation-drawer/DTNavigationDrawer.scss +172 -0
- package/src/components/number-input/DTNumberInput.scss +124 -0
- package/src/components/otp-input/DTOtpInput.scss +121 -0
- package/src/components/pagination/DTPagination.scss +115 -0
- package/src/components/popover/DTPopover.scss +119 -0
- package/src/components/progress/DTProgress.scss +227 -0
- package/src/components/pull-refresh/DTPullRefresh.scss +83 -0
- package/src/components/rating/DTRating.scss +153 -0
- package/src/components/row/DTRow.scss +73 -0
- package/src/components/select/DTSelect.scss +347 -0
- package/src/components/sheet/DTSheet.scss +256 -0
- package/src/components/skeleton/DTSkeleton.scss +74 -0
- package/src/components/skip-link/DTSkipLink.scss +76 -0
- package/src/components/slider/DTSlider.scss +652 -0
- package/src/components/spinner/DTSpinner.scss +123 -0
- package/src/components/stack/DTStack.scss +8 -0
- package/src/components/statistic/DTStatistic.scss +44 -0
- package/src/components/stepper/DTStepper.scss +268 -0
- package/src/components/surface/DTSurface.scss +99 -0
- package/src/components/switch/DTSwitch.scss +306 -0
- package/src/components/table/DTTable.scss +287 -0
- package/src/components/tabs/DTTabs.scss +402 -0
- package/src/components/text/DTText.scss +9 -0
- package/src/components/text-field/DTTextField.scss +452 -0
- package/src/components/time-picker/DTTimePicker.scss +131 -0
- package/src/components/timeline/DTTimeline.scss +322 -0
- package/src/components/toast/DTToast.scss +297 -0
- package/src/components/tooltip/DTTooltip.scss +168 -0
- package/src/components/tour/DTTour.scss +173 -0
- package/src/components/tree-select/DTTreeSelect.scss +60 -0
- package/src/components/treeview/DTTreeview.scss +205 -0
- package/src/components/watermark/DTWatermark.scss +8 -0
- package/src/styles/foundation/_direction.scss +6 -0
- package/src/styles/foundation/_focus.scss +12 -0
- package/src/styles/foundation/_forced-colors.scss +9 -0
- package/src/styles/foundation/_motion.scss +10 -0
- package/src/styles/foundation/_reset.scss +39 -0
- package/src/styles/foundation/_root.scss +112 -0
- package/src/styles/foundation/_state.scss +29 -0
- package/src/styles/foundation/_typography.scss +81 -0
- package/src/styles/foundation/_visually-hidden.scss +21 -0
- package/src/styles/index.scss +9 -0
- package/src/styles/tokens/_border.scss +2 -0
- package/src/styles/tokens/_breakpoint.scss +15 -0
- package/src/styles/tokens/_color.scss +56 -0
- package/src/styles/tokens/_index.scss +11 -0
- package/src/styles/tokens/_motion.scss +13 -0
- package/src/styles/tokens/_radius.scss +13 -0
- package/src/styles/tokens/_shadow.scss +18 -0
- package/src/styles/tokens/_spacing.scss +21 -0
- package/src/styles/tokens/_state.scss +30 -0
- package/src/styles/tokens/_surface.scss +33 -0
- package/src/styles/tokens/_typography.scss +40 -0
- package/src/styles/tokens/_z-index.scss +11 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@use "../../styles/foundation/visually-hidden" as *;
|
|
2
|
+
.dt-spinner {
|
|
3
|
+
--dt-spinner-size: 24px;
|
|
4
|
+
--dt-spinner-thickness: 2.5px;
|
|
5
|
+
--dt-spinner-track: var(--dt-color-border);
|
|
6
|
+
--dt-spinner-indicator: var(--dt-color-primary);
|
|
7
|
+
|
|
8
|
+
display: inline-block;
|
|
9
|
+
flex: 0 0 auto;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
inline-size: var(--dt-spinner-size);
|
|
12
|
+
block-size: var(--dt-spinner-size);
|
|
13
|
+
border: var(--dt-spinner-thickness) solid var(--dt-spinner-track);
|
|
14
|
+
border-block-start-color: var(--dt-spinner-indicator);
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
animation: dt-spinner-rotate 0.8s linear infinite;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dt-spinner--sm {
|
|
21
|
+
--dt-spinner-size: 16px;
|
|
22
|
+
--dt-spinner-thickness: 2px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dt-spinner--lg {
|
|
26
|
+
--dt-spinner-size: 36px;
|
|
27
|
+
--dt-spinner-thickness: 3px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dt-spinner--current {
|
|
31
|
+
--dt-spinner-track: color-mix(in srgb, currentColor 25%, transparent);
|
|
32
|
+
--dt-spinner-indicator: currentColor;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Determinate ring: a conic fill of the value, with the centre masked out to the stroke
|
|
36
|
+
// thickness. It does not turn; the arc length carries the value.
|
|
37
|
+
.dt-spinner.dt-spinner--determinate {
|
|
38
|
+
border: 0;
|
|
39
|
+
background: conic-gradient(
|
|
40
|
+
var(--dt-spinner-indicator) calc(var(--dt-spinner-value, 0) * 1%),
|
|
41
|
+
var(--dt-spinner-track) 0
|
|
42
|
+
);
|
|
43
|
+
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--dt-spinner-thickness)), #000 calc(100% - var(--dt-spinner-thickness)));
|
|
44
|
+
mask: radial-gradient(farthest-side, transparent calc(100% - var(--dt-spinner-thickness)), #000 calc(100% - var(--dt-spinner-thickness)));
|
|
45
|
+
animation: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Centre content: the wrapper only lays out; the ring moves to an absolutely placed layer that
|
|
49
|
+
// keeps the spinner's border/mask/animation rules, and the content sits above it, upright.
|
|
50
|
+
.dt-spinner.dt-spinner--has-content {
|
|
51
|
+
position: relative;
|
|
52
|
+
display: inline-grid;
|
|
53
|
+
place-items: center;
|
|
54
|
+
border: 0;
|
|
55
|
+
background: none;
|
|
56
|
+
-webkit-mask: none;
|
|
57
|
+
mask: none;
|
|
58
|
+
color: var(--dt-color-text);
|
|
59
|
+
font-size: calc(var(--dt-spinner-size) * 0.26);
|
|
60
|
+
font-weight: var(--dt-font-weight-semibold);
|
|
61
|
+
line-height: 1;
|
|
62
|
+
font-variant-numeric: tabular-nums;
|
|
63
|
+
animation: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.dt-spinner__ring {
|
|
67
|
+
position: absolute;
|
|
68
|
+
inset: 0;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
border: var(--dt-spinner-thickness) solid var(--dt-spinner-track);
|
|
71
|
+
border-block-start-color: var(--dt-spinner-indicator);
|
|
72
|
+
border-radius: 50%;
|
|
73
|
+
animation: dt-spinner-rotate 0.8s linear infinite;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.dt-spinner--determinate .dt-spinner__ring {
|
|
77
|
+
border: 0;
|
|
78
|
+
background: conic-gradient(
|
|
79
|
+
var(--dt-spinner-indicator) calc(var(--dt-spinner-value, 0) * 1%),
|
|
80
|
+
var(--dt-spinner-track) 0
|
|
81
|
+
);
|
|
82
|
+
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--dt-spinner-thickness)), #000 calc(100% - var(--dt-spinner-thickness)));
|
|
83
|
+
mask: radial-gradient(farthest-side, transparent calc(100% - var(--dt-spinner-thickness)), #000 calc(100% - var(--dt-spinner-thickness)));
|
|
84
|
+
animation: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.dt-spinner--current.dt-spinner--has-content {
|
|
88
|
+
color: inherit;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.dt-spinner__content {
|
|
92
|
+
position: relative;
|
|
93
|
+
display: inline-flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
max-width: calc(100% - 2 * var(--dt-spinner-thickness) - 4px);
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.dt-spinner__label {
|
|
102
|
+
@include dt-visually-hidden;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// A frozen spinner reads as "stuck", so it slows down instead of stopping. This must beat
|
|
106
|
+
// the foundation reduced-motion reset, which is also !important.
|
|
107
|
+
@media (prefers-reduced-motion: reduce) {
|
|
108
|
+
.dt-spinner.dt-spinner {
|
|
109
|
+
animation-duration: 2.4s !important;
|
|
110
|
+
animation-iteration-count: infinite !important;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.dt-spinner__ring.dt-spinner__ring {
|
|
114
|
+
animation-duration: 2.4s !important;
|
|
115
|
+
animation-iteration-count: infinite !important;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@keyframes dt-spinner-rotate {
|
|
120
|
+
to {
|
|
121
|
+
transform: rotate(360deg);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use "../../styles/foundation/visually-hidden" as *;
|
|
2
|
+
// Statistic and Countdown (D34 item 60). No HTML reference page: a muted title over a large
|
|
3
|
+
// tabular number, prefix and suffix on the same baseline.
|
|
4
|
+
.dt-statistic {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: grid;
|
|
7
|
+
gap: var(--dt-space-1);
|
|
8
|
+
min-width: 0;
|
|
9
|
+
color: var(--dt-color-text);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dt-statistic__title {
|
|
13
|
+
color: var(--dt-color-text-muted);
|
|
14
|
+
font-size: var(--dt-font-size-sm);
|
|
15
|
+
line-height: var(--dt-line-height-snug);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dt-statistic__content {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
align-items: baseline;
|
|
22
|
+
gap: var(--dt-space-1);
|
|
23
|
+
font-size: var(--dt-font-size-2xl);
|
|
24
|
+
font-weight: var(--dt-font-weight-semibold);
|
|
25
|
+
line-height: var(--dt-line-height-tight);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dt-statistic__number {
|
|
29
|
+
font-variant-numeric: tabular-nums;
|
|
30
|
+
overflow-wrap: anywhere;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dt-statistic__prefix,
|
|
34
|
+
.dt-statistic__suffix {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: var(--dt-space-1);
|
|
38
|
+
font-size: var(--dt-font-size-md);
|
|
39
|
+
font-weight: var(--dt-font-weight-medium);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.dt-statistic__sr {
|
|
43
|
+
@include dt-visually-hidden;
|
|
44
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
@use "../../styles/foundation/visually-hidden" as *;
|
|
2
|
+
// Stepper (D31 item 43). No HTML reference page. Numbered markers in circles joined by connectors;
|
|
3
|
+
// complete steps are filled with the accent, the current one ringed, errors in the danger tone.
|
|
4
|
+
.dt-stepper {
|
|
5
|
+
--dt-stepper-marker: 28px;
|
|
6
|
+
--dt-stepper-line: 2px;
|
|
7
|
+
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 20px;
|
|
11
|
+
color: var(--dt-color-text);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dt-stepper__steps {
|
|
15
|
+
display: flex;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
list-style: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dt-stepper__step {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex: 1 1 0;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.dt-stepper__step:last-child {
|
|
30
|
+
flex: 0 0 auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.dt-stepper__header {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
flex: none;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: 10px;
|
|
38
|
+
max-width: 100%;
|
|
39
|
+
margin: 0;
|
|
40
|
+
padding: 6px 8px;
|
|
41
|
+
border: 0;
|
|
42
|
+
border-radius: var(--dt-radius-md);
|
|
43
|
+
color: inherit;
|
|
44
|
+
background: transparent;
|
|
45
|
+
font: inherit;
|
|
46
|
+
text-align: start;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
button.dt-stepper__header {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
button.dt-stepper__header:hover:not([aria-disabled="true"]) {
|
|
54
|
+
background: var(--dt-color-surface-hover);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
button.dt-stepper__header:focus-visible {
|
|
58
|
+
outline: var(--dt-focus-ring-width) solid var(--dt-focus-ring-color);
|
|
59
|
+
outline-offset: 1px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
button.dt-stepper__header[aria-disabled="true"] {
|
|
63
|
+
cursor: not-allowed;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.dt-stepper__marker {
|
|
67
|
+
display: inline-grid;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
flex: none;
|
|
70
|
+
place-items: center;
|
|
71
|
+
width: var(--dt-stepper-marker);
|
|
72
|
+
height: var(--dt-stepper-marker);
|
|
73
|
+
border: 2px solid var(--dt-color-border-strong);
|
|
74
|
+
border-radius: var(--dt-radius-full);
|
|
75
|
+
color: var(--dt-color-text-muted);
|
|
76
|
+
background: var(--dt-color-surface);
|
|
77
|
+
font-size: var(--dt-font-size-sm);
|
|
78
|
+
font-weight: var(--dt-font-weight-semibold);
|
|
79
|
+
font-variant-numeric: tabular-nums;
|
|
80
|
+
|
|
81
|
+
.dt-icon {
|
|
82
|
+
width: 16px;
|
|
83
|
+
height: 16px;
|
|
84
|
+
max-width: none;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dt-stepper__header.is-current .dt-stepper__marker {
|
|
89
|
+
border-color: var(--dt-color-primary);
|
|
90
|
+
color: var(--dt-color-primary-on);
|
|
91
|
+
background: var(--dt-color-primary);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.dt-stepper__header.is-complete .dt-stepper__marker {
|
|
95
|
+
border-color: var(--dt-color-primary);
|
|
96
|
+
color: var(--dt-color-primary);
|
|
97
|
+
background: var(--dt-color-primary-subtle);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dt-stepper__header.is-error .dt-stepper__marker {
|
|
101
|
+
border-color: var(--dt-color-danger);
|
|
102
|
+
color: var(--dt-color-danger-on);
|
|
103
|
+
background: var(--dt-color-danger);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.dt-stepper__text {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dt-stepper__title {
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
font-size: var(--dt-font-size-sm);
|
|
115
|
+
font-weight: var(--dt-font-weight-medium);
|
|
116
|
+
line-height: 1.35;
|
|
117
|
+
text-overflow: ellipsis;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.dt-stepper__header.is-current .dt-stepper__title {
|
|
122
|
+
font-weight: var(--dt-font-weight-semibold);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.dt-stepper__header.is-upcoming .dt-stepper__title {
|
|
126
|
+
color: var(--dt-color-text-muted);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.dt-stepper__header.is-error .dt-stepper__title,
|
|
130
|
+
.dt-stepper__header.is-error .dt-stepper__subtitle {
|
|
131
|
+
color: var(--dt-color-danger);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.dt-stepper__header.is-blocked .dt-stepper__title {
|
|
135
|
+
color: var(--dt-color-text-subtle);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.dt-stepper__subtitle {
|
|
139
|
+
color: var(--dt-color-text-subtle);
|
|
140
|
+
font-size: var(--dt-font-size-xs);
|
|
141
|
+
line-height: 1.35;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.dt-stepper__sr {
|
|
145
|
+
@include dt-visually-hidden($reset-box: false);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.dt-stepper__connector {
|
|
149
|
+
flex: 1 1 24px;
|
|
150
|
+
min-width: 16px;
|
|
151
|
+
height: var(--dt-stepper-line);
|
|
152
|
+
border-radius: 1px;
|
|
153
|
+
background: var(--dt-color-border);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.dt-stepper__step.is-complete > .dt-stepper__connector {
|
|
157
|
+
background: var(--dt-color-primary);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.dt-stepper__panel:focus {
|
|
161
|
+
outline: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.dt-stepper__actions {
|
|
165
|
+
display: flex;
|
|
166
|
+
flex-wrap: wrap;
|
|
167
|
+
gap: 8px;
|
|
168
|
+
margin-top: 16px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// Labels under the markers.
|
|
172
|
+
.dt-stepper--alt-labels .dt-stepper__step {
|
|
173
|
+
position: relative;
|
|
174
|
+
align-items: flex-start;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.dt-stepper--alt-labels .dt-stepper__header {
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
align-items: center;
|
|
180
|
+
gap: 6px;
|
|
181
|
+
max-width: 140px;
|
|
182
|
+
text-align: center;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.dt-stepper--alt-labels .dt-stepper__text {
|
|
186
|
+
align-items: center;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.dt-stepper--alt-labels .dt-stepper__title {
|
|
190
|
+
white-space: normal;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.dt-stepper--alt-labels .dt-stepper__connector {
|
|
194
|
+
margin-top: calc(6px + var(--dt-stepper-marker) / 2 - var(--dt-stepper-line) / 2);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// Vertical: steps stacked; a rail under each marker holds the connector and the panel.
|
|
198
|
+
.dt-stepper--vertical .dt-stepper__steps {
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.dt-stepper--vertical .dt-stepper__step {
|
|
203
|
+
flex-direction: column;
|
|
204
|
+
align-items: stretch;
|
|
205
|
+
gap: 0;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.dt-stepper--vertical .dt-stepper__header {
|
|
209
|
+
align-self: flex-start;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.dt-stepper__rail {
|
|
213
|
+
position: relative;
|
|
214
|
+
min-height: 12px;
|
|
215
|
+
margin-inline-start: calc(8px + var(--dt-stepper-marker) / 2);
|
|
216
|
+
// Logical, so the panel keeps its gap from the connector in RTL (D32).
|
|
217
|
+
padding-block: 4px 8px;
|
|
218
|
+
padding-inline: calc(var(--dt-stepper-marker) / 2 + 10px) 0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.dt-stepper--vertical .dt-stepper__connector {
|
|
222
|
+
position: absolute;
|
|
223
|
+
inset-block: 0;
|
|
224
|
+
inset-inline-start: calc(var(--dt-stepper-line) / -2);
|
|
225
|
+
width: var(--dt-stepper-line);
|
|
226
|
+
height: auto;
|
|
227
|
+
min-width: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.dt-stepper--vertical .dt-stepper__step:last-child .dt-stepper__rail {
|
|
231
|
+
padding-bottom: 0;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Narrow screens: a horizontal stepper keeps only the current step's title.
|
|
235
|
+
@media (max-width: 600px) {
|
|
236
|
+
.dt-stepper--horizontal:not(.dt-stepper--alt-labels) .dt-stepper__header:not(.is-current) .dt-stepper__text {
|
|
237
|
+
@include dt-visually-hidden($reset-box: false);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.dt-stepper--horizontal .dt-stepper__step {
|
|
241
|
+
flex: 1 1 auto;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.dt-stepper--horizontal .dt-stepper__connector {
|
|
245
|
+
min-width: 8px;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@media (forced-colors: active) {
|
|
250
|
+
.dt-stepper__header.is-current .dt-stepper__marker,
|
|
251
|
+
.dt-stepper__header.is-complete .dt-stepper__marker {
|
|
252
|
+
border-color: Highlight;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// Connectors are a background fill, which forced colors turned Canvas: they vanished (D32).
|
|
256
|
+
.dt-stepper__connector {
|
|
257
|
+
background: CanvasText;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.dt-stepper__step.is-complete > .dt-stepper__connector {
|
|
261
|
+
background: Highlight;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// A step a linear stepper cannot open yet was told apart only by a lighter title colour.
|
|
265
|
+
.dt-stepper__header.is-blocked .dt-stepper__title {
|
|
266
|
+
color: GrayText;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
.dt-surface {
|
|
2
|
+
--dt-surface-padding-block: var(--dt-composition-inset-default);
|
|
3
|
+
--dt-surface-padding-inline: var(--dt-composition-inset-default);
|
|
4
|
+
--dt-surface-background: transparent;
|
|
5
|
+
--dt-surface-color: inherit;
|
|
6
|
+
--dt-surface-border-width: 0;
|
|
7
|
+
--dt-surface-border-color: transparent;
|
|
8
|
+
--dt-surface-radius: 0;
|
|
9
|
+
--dt-surface-shadow: var(--dt-elevation-flat);
|
|
10
|
+
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
padding-block: var(--dt-surface-padding-block);
|
|
15
|
+
padding-inline: var(--dt-surface-padding-inline);
|
|
16
|
+
border: var(--dt-surface-border-width) var(--dt-border-style) var(--dt-surface-border-color);
|
|
17
|
+
border-radius: var(--dt-surface-radius);
|
|
18
|
+
color: var(--dt-surface-color);
|
|
19
|
+
background: var(--dt-surface-background);
|
|
20
|
+
box-shadow: var(--dt-surface-shadow);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Tones (HTML reference .dt-surface-*). Every tone except plain is a visible plane.
|
|
24
|
+
// :where keeps this at the specificity of one class, so the variant rules below win.
|
|
25
|
+
.dt-surface:where(:not(.dt-surface--variant-plain)) {
|
|
26
|
+
--dt-surface-background: var(--dt-surface-default);
|
|
27
|
+
--dt-surface-color: var(--dt-surface-foreground);
|
|
28
|
+
--dt-surface-border-width: var(--dt-border-width);
|
|
29
|
+
--dt-surface-border-color: var(--dt-surface-border);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dt-surface--variant-muted {
|
|
33
|
+
--dt-surface-background: var(--dt-surface-subtle);
|
|
34
|
+
--dt-surface-border-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dt-surface--variant-raised {
|
|
38
|
+
--dt-surface-shadow: var(--dt-elevation-raised);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dt-surface--variant-overlay {
|
|
42
|
+
--dt-surface-shadow: var(--dt-shadow-lg);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.dt-surface--variant-sunken {
|
|
46
|
+
--dt-surface-background: var(--dt-color-background);
|
|
47
|
+
--dt-surface-shadow: inset 0 1px 3px var(--dt-color-overlay);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.dt-surface--variant-accent {
|
|
51
|
+
--dt-surface-background: var(--dt-color-primary-subtle);
|
|
52
|
+
--dt-surface-border-color: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dt-surface--variant-outline {
|
|
56
|
+
--dt-surface-background: transparent;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dt-surface--variant-flat {
|
|
60
|
+
--dt-surface-border-color: transparent;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Explicit overrides win over the tone.
|
|
64
|
+
.dt-surface.dt-surface--border {
|
|
65
|
+
--dt-surface-border-width: var(--dt-border-width);
|
|
66
|
+
--dt-surface-border-color: var(--dt-surface-border);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.dt-surface.dt-surface--borderless {
|
|
70
|
+
--dt-surface-border-width: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.dt-surface--radius-sm {
|
|
74
|
+
--dt-surface-radius: var(--dt-radius-sm);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dt-surface--radius-md {
|
|
78
|
+
--dt-surface-radius: var(--dt-radius-md);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.dt-surface--radius-lg {
|
|
82
|
+
--dt-surface-radius: var(--dt-radius-lg);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.dt-surface--radius-xl {
|
|
86
|
+
--dt-surface-radius: var(--dt-radius-xl);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dt-surface.dt-surface--elevation-flat {
|
|
90
|
+
--dt-surface-shadow: var(--dt-elevation-flat);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.dt-surface.dt-surface--elevation-raised {
|
|
94
|
+
--dt-surface-shadow: var(--dt-elevation-raised);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.dt-surface.dt-surface--elevation-floating {
|
|
98
|
+
--dt-surface-shadow: var(--dt-elevation-floating);
|
|
99
|
+
}
|