tandd-ui 0.0.0-stage → 0.2.1
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 +106 -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 +145 -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 +89 -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 +11716 -0
- package/dist/tandd-ui.js +13041 -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 +497 -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,112 @@
|
|
|
1
|
+
@use "../tokens" as tokens;
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
@each $name, $value in tokens.$dt-colors {
|
|
5
|
+
--dt-color-#{$name}: #{$value};
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@each $name, $value in tokens.$dt-derived-colors {
|
|
9
|
+
--dt-color-#{$name}: #{$value};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@each $name, $value in tokens.$dt-intent-colors {
|
|
13
|
+
--dt-color-#{$name}: #{$value};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
--dt-font-family-sans: #{tokens.$dt-font-family-sans};
|
|
17
|
+
--dt-font-family-mono: #{tokens.$dt-font-family-mono};
|
|
18
|
+
|
|
19
|
+
@each $name, $value in tokens.$dt-font-sizes {
|
|
20
|
+
--dt-font-size-#{$name}: #{$value};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@each $name, $value in tokens.$dt-font-weights {
|
|
24
|
+
--dt-font-weight-#{$name}: #{$value};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@each $name, $value in tokens.$dt-line-heights {
|
|
28
|
+
--dt-line-height-#{$name}: #{$value};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@each $name, $value in tokens.$dt-letter-spacings {
|
|
32
|
+
--dt-letter-spacing-#{$name}: #{$value};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@each $name, $value in tokens.$dt-spaces {
|
|
36
|
+
--dt-space-#{$name}: #{$value};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@each $name, $value in tokens.$dt-radii {
|
|
40
|
+
--dt-radius-#{$name}: #{$value};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
--dt-border-width: #{tokens.$dt-border-width};
|
|
44
|
+
--dt-border-style: #{tokens.$dt-border-style};
|
|
45
|
+
|
|
46
|
+
@each $name, $value in tokens.$dt-shadows {
|
|
47
|
+
--dt-shadow-#{$name}: #{$value};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@each $name, $value in tokens.$dt-surfaces {
|
|
51
|
+
--dt-surface-#{$name}: #{$value};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@each $name, $value in tokens.$dt-surface-content {
|
|
55
|
+
--dt-surface-#{$name}: #{$value};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@each $name, $value in tokens.$dt-elevations {
|
|
59
|
+
--dt-elevation-#{$name}: #{$value};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@each $name, $value in tokens.$dt-composition-insets {
|
|
63
|
+
--dt-composition-inset-#{$name}: #{$value};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@each $name, $value in tokens.$dt-composition-gaps {
|
|
67
|
+
--dt-composition-gap-#{$name}: #{$value};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@each $name, $value in tokens.$dt-durations {
|
|
71
|
+
--dt-duration-#{$name}: #{$value};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@each $name, $value in tokens.$dt-easings {
|
|
75
|
+
--dt-ease-#{$name}: #{$value};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
--dt-focus-ring-color: var(--dt-color-focus);
|
|
79
|
+
--dt-focus-ring-width: #{tokens.$dt-focus-ring-width};
|
|
80
|
+
--dt-focus-ring-offset: #{tokens.$dt-focus-ring-offset};
|
|
81
|
+
|
|
82
|
+
@each $name, $value in tokens.$dt-state-opacities {
|
|
83
|
+
--dt-state-#{$name}-opacity: #{$value};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@each $name, $value in tokens.$dt-state-colors {
|
|
87
|
+
--dt-state-#{$name}: #{$value};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@each $name, $value in tokens.$dt-transition-properties {
|
|
91
|
+
--dt-transition-property-#{$name}: #{$value};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
--dt-transition-duration-interaction: var(--dt-duration-fast);
|
|
95
|
+
--dt-transition-timing-interaction: var(--dt-ease-standard);
|
|
96
|
+
|
|
97
|
+
@each $name, $value in tokens.$dt-breakpoints {
|
|
98
|
+
--dt-breakpoint-#{$name}: #{$value};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@each $name, $value in tokens.$dt-container-widths {
|
|
102
|
+
--dt-container-#{$name}: #{$value};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@each $name, $value in tokens.$dt-icon-sizes {
|
|
106
|
+
--dt-icon-#{$name}: #{$value};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@each $name, $value in tokens.$dt-z-indexes {
|
|
110
|
+
--dt-z-index-#{$name}: #{$value};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
:disabled,
|
|
2
|
+
[aria-disabled="true"] {
|
|
3
|
+
cursor: not-allowed;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:disabled {
|
|
7
|
+
color: var(--dt-state-disabled-content);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
[aria-busy="true"] {
|
|
11
|
+
cursor: progress;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[aria-invalid="true"],
|
|
15
|
+
:invalid {
|
|
16
|
+
border-color: var(--dt-state-invalid-border);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Read-only text fields only. A bare :read-only also matches every non-editable element
|
|
20
|
+
// (span, svg, label, …), which overrode the cursor that children inherit from interactive
|
|
21
|
+
// parents such as checkbox, radio, and switch labels.
|
|
22
|
+
:is(input, textarea):read-only {
|
|
23
|
+
cursor: default;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[aria-current]:not([aria-current="false"]) {
|
|
27
|
+
color: var(--dt-state-current-content);
|
|
28
|
+
font-weight: var(--dt-font-weight-semibold);
|
|
29
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
html {
|
|
2
|
+
font-family: var(--dt-font-family-sans);
|
|
3
|
+
font-size: var(--dt-font-size-base);
|
|
4
|
+
line-height: var(--dt-line-height-base);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
color: var(--dt-color-text);
|
|
9
|
+
background: var(--dt-color-background);
|
|
10
|
+
font-family: var(--dt-font-family-sans);
|
|
11
|
+
font-size: var(--dt-font-size-base);
|
|
12
|
+
font-weight: var(--dt-font-weight-regular);
|
|
13
|
+
line-height: var(--dt-line-height-base);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
h1,
|
|
17
|
+
h2,
|
|
18
|
+
h3,
|
|
19
|
+
h4,
|
|
20
|
+
h5,
|
|
21
|
+
h6,
|
|
22
|
+
p {
|
|
23
|
+
margin-block: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h1,
|
|
27
|
+
h2,
|
|
28
|
+
h3,
|
|
29
|
+
h4,
|
|
30
|
+
h5,
|
|
31
|
+
h6 {
|
|
32
|
+
color: var(--dt-color-text);
|
|
33
|
+
font-weight: var(--dt-font-weight-bold);
|
|
34
|
+
line-height: 1.2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h1 {
|
|
38
|
+
font-size: var(--dt-font-size-5xl);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
h2 {
|
|
42
|
+
font-size: var(--dt-font-size-4xl);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
h3 {
|
|
46
|
+
font-size: var(--dt-font-size-3xl);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
h4 {
|
|
50
|
+
font-size: var(--dt-font-size-2xl);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
h5 {
|
|
54
|
+
font-size: var(--dt-font-size-xl);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
h6 {
|
|
58
|
+
font-size: var(--dt-font-size-lg);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
p {
|
|
62
|
+
font-size: var(--dt-font-size-md);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
a {
|
|
66
|
+
color: var(--dt-color-primary);
|
|
67
|
+
text-decoration-thickness: var(--dt-border-width);
|
|
68
|
+
text-underline-offset: 0.18em;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
a:hover {
|
|
72
|
+
text-decoration-thickness: 2px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
button,
|
|
76
|
+
input,
|
|
77
|
+
textarea,
|
|
78
|
+
select {
|
|
79
|
+
color: inherit;
|
|
80
|
+
letter-spacing: inherit;
|
|
81
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Visually hidden, still read by screen readers and still in the Tab order (D37.6). Internal: a
|
|
2
|
+
// mixin only, no utility class and no CSS output of its own; components `@include` it.
|
|
3
|
+
//
|
|
4
|
+
// $reset-box: true is the full rule (margin -1px, padding 0, border 0) for an element that may
|
|
5
|
+
// have a box of its own. false is the short form most components used, without those three. Both
|
|
6
|
+
// forms are the declarations the components had before, so the built CSS computes the same.
|
|
7
|
+
@mixin dt-visually-hidden($reset-box: true) {
|
|
8
|
+
position: absolute;
|
|
9
|
+
width: 1px;
|
|
10
|
+
height: 1px;
|
|
11
|
+
@if $reset-box {
|
|
12
|
+
margin: -1px;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
clip: rect(0 0 0 0);
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
@if $reset-box {
|
|
19
|
+
border: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Breakpoints and container widths from the HTML reference.
|
|
2
|
+
$dt-breakpoints: (
|
|
3
|
+
"sm": 640px,
|
|
4
|
+
"md": 768px,
|
|
5
|
+
"lg": 1024px,
|
|
6
|
+
"xl": 1280px
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
$dt-container-widths: (
|
|
10
|
+
"sm": 640px,
|
|
11
|
+
"md": 768px,
|
|
12
|
+
"lg": 1024px,
|
|
13
|
+
"xl": 1280px,
|
|
14
|
+
"2xl": 1440px
|
|
15
|
+
);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
$dt-colors: (
|
|
4
|
+
"white": #ffffff,
|
|
5
|
+
"primary": #dc3248,
|
|
6
|
+
"background": #f5f7fa,
|
|
7
|
+
"surface": #ffffff,
|
|
8
|
+
"foreground": #202936,
|
|
9
|
+
"border": #dfe4ea,
|
|
10
|
+
"success": #17683a,
|
|
11
|
+
"info": #145a9e,
|
|
12
|
+
"warning": #805400,
|
|
13
|
+
"danger": #c43c20,
|
|
14
|
+
"focus": #dc3248
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
// Derived roles mix the runtime-owned roles (foreground, surface, border), so a theme
|
|
18
|
+
// switch through the Theme Runtime recolors them too. Ratios are fitted to the HTML
|
|
19
|
+
// reference palette in both its light and dark themes (within a few percent per channel).
|
|
20
|
+
$dt-derived-colors: (
|
|
21
|
+
"text": var(--dt-color-foreground),
|
|
22
|
+
"text-muted": color-mix(in srgb, var(--dt-color-foreground) 73%, var(--dt-color-surface)),
|
|
23
|
+
// Round 8 (owner decision, 2026-11-01): 67% instead of the reference's 59% so helper text,
|
|
24
|
+
// placeholders, captions, and breadcrumb/divider labels reach WCAG 4.5:1 in light mode
|
|
25
|
+
// (3.94 → 5.02 on the surface, 4.58 on muted fills). Dark mode only gets lighter (6.05 → 7.43).
|
|
26
|
+
"text-subtle": color-mix(in srgb, var(--dt-color-foreground) 67%, var(--dt-color-surface)),
|
|
27
|
+
// Disabled text keeps the reference's lighter value: WCAG exempts inactive controls, and it must
|
|
28
|
+
// still look different from enabled helper text.
|
|
29
|
+
"text-disabled": color-mix(in srgb, var(--dt-color-foreground) 59%, var(--dt-color-surface)),
|
|
30
|
+
"surface-muted": color-mix(in srgb, var(--dt-color-foreground) 5%, var(--dt-color-surface)),
|
|
31
|
+
"border-strong": color-mix(in srgb, var(--dt-color-foreground) 38%, var(--dt-color-border)),
|
|
32
|
+
"surface-hover": color-mix(in srgb, var(--dt-color-foreground) 5%, var(--dt-color-surface)),
|
|
33
|
+
"surface-active": color-mix(in srgb, var(--dt-color-foreground) 9%, var(--dt-color-surface)),
|
|
34
|
+
// Menus, toasts: the reference lifts these over the page in dark mode (#1d232c on #171b22).
|
|
35
|
+
"surface-raised": color-mix(in srgb, var(--dt-color-foreground) 3%, var(--dt-color-surface)),
|
|
36
|
+
"overlay": color-mix(in srgb, var(--dt-color-foreground) 12%, transparent),
|
|
37
|
+
"backdrop": color-mix(in srgb, #0f1720 55%, transparent)
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
// Intent tints for badges, alerts, chips, toasts: a subtle fill, readable text on that fill,
|
|
41
|
+
// and the contrast color on a solid intent fill. Derived so runtime intent colors drive them.
|
|
42
|
+
$dt-intents: ("primary", "info", "success", "warning", "danger");
|
|
43
|
+
|
|
44
|
+
$dt-intent-colors: ();
|
|
45
|
+
@each $intent in $dt-intents {
|
|
46
|
+
$dt-intent-colors: map.merge($dt-intent-colors, (
|
|
47
|
+
"#{$intent}-subtle": color-mix(in srgb, var(--dt-color-#{$intent}) 12%, var(--dt-color-surface)),
|
|
48
|
+
// 70% (was 80%, round 8): intent text on its own tint, including hover and pressed tints, passes
|
|
49
|
+
// 4.5:1 in light mode (primary: 4.65 on the strongest tint); every state passes in dark mode.
|
|
50
|
+
"#{$intent}-on-subtle": color-mix(in srgb, var(--dt-color-#{$intent}) 70%, var(--dt-color-foreground)),
|
|
51
|
+
"#{$intent}-on": var(--dt-color-surface)
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Success matches the runtime default theme; the HTML reference defines a success intent.
|
|
56
|
+
// Focus is provisional because the source specification marks it as proposed.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Radius scale from the HTML reference; `pill` and `round` stay as aliases used by components.
|
|
2
|
+
$dt-radii: (
|
|
3
|
+
"none": 0,
|
|
4
|
+
"xs": 3px,
|
|
5
|
+
"sm": 6px,
|
|
6
|
+
"md": 8px,
|
|
7
|
+
"lg": 12px,
|
|
8
|
+
"xl": 16px,
|
|
9
|
+
"2xl": 20px,
|
|
10
|
+
"full": 999px,
|
|
11
|
+
"pill": 999px,
|
|
12
|
+
"round": 50%
|
|
13
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Shadow scale from the HTML reference. The tint follows the foreground role, so the
|
|
2
|
+
// same shadows deepen on dark themes without a separate dark table.
|
|
3
|
+
$dt-shadow-tint: "color-mix(in srgb, var(--dt-color-foreground) 14%, transparent)";
|
|
4
|
+
|
|
5
|
+
$dt-shadows: (
|
|
6
|
+
"xs": 0 1px 2px #{$dt-shadow-tint},
|
|
7
|
+
"sm": 0 3px 10px #{$dt-shadow-tint},
|
|
8
|
+
"md": 0 8px 24px #{$dt-shadow-tint},
|
|
9
|
+
"lg": 0 16px 40px #{$dt-shadow-tint}
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
$dt-icon-sizes: (
|
|
13
|
+
"xs": 12px,
|
|
14
|
+
"sm": 16px,
|
|
15
|
+
"md": 20px,
|
|
16
|
+
"lg": 24px,
|
|
17
|
+
"xl": 32px
|
|
18
|
+
);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// 4px scale from the HTML reference (tokens.css). Half steps cover tight control padding.
|
|
2
|
+
$dt-spaces: (
|
|
3
|
+
"unit": 4px,
|
|
4
|
+
"0": 0,
|
|
5
|
+
"0-5": 2px,
|
|
6
|
+
"1": 4px,
|
|
7
|
+
"1-5": 6px,
|
|
8
|
+
"2": 8px,
|
|
9
|
+
"3": 12px,
|
|
10
|
+
"4": 16px,
|
|
11
|
+
"5": 20px,
|
|
12
|
+
"6": 24px,
|
|
13
|
+
"7": 28px,
|
|
14
|
+
"8": 32px,
|
|
15
|
+
"9": 36px,
|
|
16
|
+
"10": 40px,
|
|
17
|
+
"11": 44px,
|
|
18
|
+
"12": 48px,
|
|
19
|
+
"14": 56px,
|
|
20
|
+
"16": 64px
|
|
21
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
$dt-focus-ring-width: 3px;
|
|
2
|
+
$dt-focus-ring-offset: 2px;
|
|
3
|
+
|
|
4
|
+
$dt-state-opacities: (
|
|
5
|
+
"hover": 0.88,
|
|
6
|
+
"active": 0.76,
|
|
7
|
+
"disabled": 0.56,
|
|
8
|
+
"loading": 0.72
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
$dt-state-colors: (
|
|
12
|
+
"disabled-content": var(--dt-color-text-muted),
|
|
13
|
+
"disabled-surface": var(--dt-color-surface-muted),
|
|
14
|
+
"disabled-border": var(--dt-color-border),
|
|
15
|
+
"selected-content": var(--dt-color-primary),
|
|
16
|
+
"selected-surface": var(--dt-color-surface-muted),
|
|
17
|
+
"selected-border": var(--dt-color-primary),
|
|
18
|
+
"checked-content": var(--dt-color-primary),
|
|
19
|
+
"checked-surface": var(--dt-color-surface-muted),
|
|
20
|
+
"checked-border": var(--dt-color-primary),
|
|
21
|
+
"invalid-content": var(--dt-color-danger),
|
|
22
|
+
"invalid-border": var(--dt-color-danger),
|
|
23
|
+
"readonly-surface": var(--dt-color-surface-muted),
|
|
24
|
+
// On-subtle, not raw primary: `aria-current` links sit on tinted rows too (round 8: 3.86 → 4.65+).
|
|
25
|
+
"current-content": var(--dt-color-primary-on-subtle)
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
$dt-transition-properties: (
|
|
29
|
+
"interaction": (color, background-color, border-color, box-shadow, opacity, transform)
|
|
30
|
+
);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
$dt-surfaces: (
|
|
2
|
+
"default": var(--dt-color-surface),
|
|
3
|
+
"subtle": var(--dt-color-surface-muted),
|
|
4
|
+
"elevated": var(--dt-color-surface)
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
$dt-surface-content: (
|
|
8
|
+
"foreground": var(--dt-color-text),
|
|
9
|
+
"foreground-muted": var(--dt-color-text-muted),
|
|
10
|
+
"foreground-subtle": var(--dt-color-text-subtle),
|
|
11
|
+
"foreground-inverse": var(--dt-color-surface),
|
|
12
|
+
"border": var(--dt-color-border),
|
|
13
|
+
"border-strong": var(--dt-color-border-strong),
|
|
14
|
+
"divider": var(--dt-color-border)
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
$dt-elevations: (
|
|
18
|
+
"flat": none,
|
|
19
|
+
"raised": var(--dt-shadow-sm),
|
|
20
|
+
"floating": var(--dt-shadow-md)
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
$dt-composition-insets: (
|
|
24
|
+
"compact": var(--dt-space-3),
|
|
25
|
+
"default": var(--dt-space-4),
|
|
26
|
+
"spacious": var(--dt-space-6)
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
$dt-composition-gaps: (
|
|
30
|
+
"compact": var(--dt-space-2),
|
|
31
|
+
"default": var(--dt-space-4),
|
|
32
|
+
"spacious": var(--dt-space-6)
|
|
33
|
+
);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
$dt-font-family-sans: 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif';
|
|
2
|
+
$dt-font-family-mono: 'ui-monospace, SFMono-Regular, Menlo, monospace';
|
|
3
|
+
|
|
4
|
+
// Type scale from the HTML reference; body text is 14px (`md`), exposed as `base`.
|
|
5
|
+
$dt-font-sizes: (
|
|
6
|
+
"2xs": 10px,
|
|
7
|
+
"xs": 12px,
|
|
8
|
+
"sm": 13px,
|
|
9
|
+
"md": 14px,
|
|
10
|
+
"lg": 16px,
|
|
11
|
+
"xl": 18px,
|
|
12
|
+
"2xl": 20px,
|
|
13
|
+
"3xl": 24px,
|
|
14
|
+
"4xl": 30px,
|
|
15
|
+
"5xl": 36px,
|
|
16
|
+
"base": 14px
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
$dt-font-weights: (
|
|
20
|
+
"regular": 400,
|
|
21
|
+
"medium": 500,
|
|
22
|
+
"semibold": 600,
|
|
23
|
+
"bold": 700,
|
|
24
|
+
"extrabold": 800
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
$dt-line-heights: (
|
|
28
|
+
"tight": 1.2,
|
|
29
|
+
"snug": 1.35,
|
|
30
|
+
"normal": 1.55,
|
|
31
|
+
"relaxed": 1.7,
|
|
32
|
+
"base": 1.55
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
$dt-letter-spacings: (
|
|
36
|
+
"tight": -0.035em,
|
|
37
|
+
"normal": 0,
|
|
38
|
+
"wide": 0.04em,
|
|
39
|
+
"wider": 0.08em
|
|
40
|
+
);
|