tandd-ui 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/README.md +5 -1
  3. package/dist/components/_shared/nextFrame.d.ts +11 -0
  4. package/dist/components/_shared/useFieldValidation.d.ts +2 -1
  5. package/dist/components/alert/DTAlert.vue.d.ts +2 -2
  6. package/dist/components/autocomplete/DTAutocomplete.vue.d.ts +4 -0
  7. package/dist/components/card/DTCard.vue.d.ts +1 -1
  8. package/dist/components/card/DTCardMedia.vue.d.ts +1 -1
  9. package/dist/components/checkbox/DTCheckbox.vue.d.ts +11 -2
  10. package/dist/components/date-picker/DTDateInput.vue.d.ts +7 -0
  11. package/dist/components/date-picker/DTDatePicker.vue.d.ts +7 -4
  12. package/dist/components/date-time-picker/DTDateTimeInput.vue.d.ts +4 -0
  13. package/dist/components/file-input/DTFileInput.vue.d.ts +4 -0
  14. package/dist/components/form/DTForm.vue.d.ts +67 -0
  15. package/dist/components/form/formContext.d.ts +24 -0
  16. package/dist/components/form/useFormField.d.ts +42 -0
  17. package/dist/components/list/DTListGroup.vue.d.ts +35 -0
  18. package/dist/components/mention/DTMention.vue.d.ts +4 -0
  19. package/dist/components/modal/modalStack.d.ts +6 -0
  20. package/dist/components/number-input/DTNumberInput.vue.d.ts +4 -0
  21. package/dist/components/radio/DTRadioGroup.vue.d.ts +11 -2
  22. package/dist/components/select/DTSelect.vue.d.ts +8 -0
  23. package/dist/components/sortable/DTSortable.vue.d.ts +70 -0
  24. package/dist/components/sortable/sortableGroups.d.ts +41 -0
  25. package/dist/components/splitter/DTSplitter.vue.d.ts +48 -0
  26. package/dist/components/switch/DTSwitch.vue.d.ts +11 -0
  27. package/dist/components/text-field/DTInput.vue.d.ts +6 -2
  28. package/dist/components/text-field/fieldShared.d.ts +18 -3
  29. package/dist/components/textarea/DTTextarea.vue.d.ts +6 -2
  30. package/dist/components/time-picker/DTTimeInput.vue.d.ts +4 -0
  31. package/dist/components/toast/toastStore.d.ts +1 -1
  32. package/dist/components/virtual-scroll/DTVirtualScroll.vue.d.ts +58 -0
  33. package/dist/index.d.ts +10 -0
  34. package/dist/locale/en.d.ts +17 -0
  35. package/dist/locale/en.js +3 -0
  36. package/dist/locale/messages.d.ts +17 -0
  37. package/dist/locale/vi.d.ts +17 -0
  38. package/dist/locale/vi.js +3 -0
  39. package/dist/styles/accordion.css +177 -0
  40. package/dist/styles/alert.css +750 -0
  41. package/dist/styles/anchor.css +120 -0
  42. package/dist/styles/app-bar.css +1333 -0
  43. package/dist/styles/autocomplete.css +2100 -0
  44. package/dist/styles/avatar.css +153 -0
  45. package/dist/styles/badge.css +862 -0
  46. package/dist/styles/base.css +383 -0
  47. package/dist/styles/border-beam.css +57 -0
  48. package/dist/styles/breadcrumb.css +120 -0
  49. package/dist/styles/button-group.css +517 -0
  50. package/dist/styles/button.css +517 -0
  51. package/dist/styles/card.css +365 -0
  52. package/dist/styles/carousel.css +272 -0
  53. package/dist/styles/checkbox.css +457 -0
  54. package/dist/styles/chip.css +784 -0
  55. package/dist/styles/code.css +10 -0
  56. package/dist/styles/col.css +128 -0
  57. package/dist/styles/color-input.css +1818 -0
  58. package/dist/styles/color-picker.css +1818 -0
  59. package/dist/styles/combobox.css +2100 -0
  60. package/dist/styles/container.css +20 -0
  61. package/dist/styles/data-table.css +2692 -0
  62. package/dist/styles/date-picker.css +1309 -0
  63. package/dist/styles/date-time-picker.css +1574 -0
  64. package/dist/styles/divider.css +61 -0
  65. package/dist/styles/empty-state.css +183 -0
  66. package/dist/styles/field-control.css +293 -0
  67. package/dist/styles/field.css +69 -0
  68. package/dist/styles/file-input.css +1427 -0
  69. package/dist/styles/file-upload.css +1794 -0
  70. package/dist/styles/form.css +62 -0
  71. package/dist/styles/grid.css +330 -0
  72. package/dist/styles/heading.css +9 -0
  73. package/dist/styles/icon.css +62 -0
  74. package/dist/styles/infinite-scroll.css +589 -0
  75. package/dist/styles/inline.css +17 -0
  76. package/dist/styles/kbd.css +17 -0
  77. package/dist/styles/layout-app.css +56 -0
  78. package/dist/styles/link.css +34 -0
  79. package/dist/styles/list.css +369 -0
  80. package/dist/styles/manifest.json +350 -0
  81. package/dist/styles/mention.css +2041 -0
  82. package/dist/styles/menu.css +305 -0
  83. package/dist/styles/modal.css +275 -0
  84. package/dist/styles/navigation-drawer.css +2006 -0
  85. package/dist/styles/number-input.css +709 -0
  86. package/dist/styles/otp-input.css +187 -0
  87. package/dist/styles/pagination.css +165 -0
  88. package/dist/styles/popover.css +419 -0
  89. package/dist/styles/progress.css +196 -0
  90. package/dist/styles/pull-refresh.css +674 -0
  91. package/dist/styles/radio.css +457 -0
  92. package/dist/styles/rating.css +211 -0
  93. package/dist/styles/row.css +71 -0
  94. package/dist/styles/select.css +1540 -0
  95. package/dist/styles/sheet.css +601 -0
  96. package/dist/styles/skeleton.css +65 -0
  97. package/dist/styles/skip-link.css +131 -0
  98. package/dist/styles/slider.css +633 -0
  99. package/dist/styles/sortable.css +249 -0
  100. package/dist/styles/spinner.css +115 -0
  101. package/dist/styles/splitter.css +127 -0
  102. package/dist/styles/stack.css +8 -0
  103. package/dist/styles/statistic.css +49 -0
  104. package/dist/styles/stepper.css +324 -0
  105. package/dist/styles/surface.css +95 -0
  106. package/dist/styles/switch.css +857 -0
  107. package/dist/styles/table.css +260 -0
  108. package/dist/styles/tabs.css +663 -0
  109. package/dist/styles/text-field.css +602 -0
  110. package/dist/styles/text.css +9 -0
  111. package/dist/styles/textarea.css +602 -0
  112. package/dist/styles/time-picker.css +1446 -0
  113. package/dist/styles/timeline.css +376 -0
  114. package/dist/styles/toast.css +542 -0
  115. package/dist/styles/tooltip.css +179 -0
  116. package/dist/styles/tour.css +1130 -0
  117. package/dist/styles/tree-select.css +1803 -0
  118. package/dist/styles/treeview.css +365 -0
  119. package/dist/styles/virtual-scroll.css +33 -0
  120. package/dist/styles/watermark.css +3 -0
  121. package/dist/tandd-ui.css +684 -91
  122. package/dist/tandd-ui.js +7517 -6407
  123. package/package.json +20 -7
  124. package/src/components/_index.scss +4 -0
  125. package/src/components/alert/DTAlert.scss +29 -45
  126. package/src/components/border-beam/DTBorderBeam.scss +4 -3
  127. package/src/components/card/DTCard.scss +6 -5
  128. package/src/components/checkbox/DTChoice.scss +28 -0
  129. package/src/components/date-picker/DTDatePicker.scss +30 -0
  130. package/src/components/date-time-picker/DTDateTimePicker.scss +2 -1
  131. package/src/components/form/DTForm.scss +66 -0
  132. package/src/components/list/DTList.scss +79 -0
  133. package/src/components/menu/DTMenu.scss +0 -15
  134. package/src/components/modal/DTModal.scss +11 -1
  135. package/src/components/navigation-drawer/DTNavigationDrawer.scss +20 -0
  136. package/src/components/sheet/DTSheet.scss +12 -1
  137. package/src/components/sortable/DTSortable.scss +196 -0
  138. package/src/components/splitter/DTSplitter.scss +133 -0
  139. package/src/components/switch/DTSwitch.scss +19 -0
  140. package/src/components/time-picker/DTTimePicker.scss +37 -6
  141. package/src/components/toast/DTToast.scss +35 -22
  142. package/src/components/tour/DTTour.scss +2 -1
  143. package/src/components/virtual-scroll/DTVirtualScroll.scss +35 -0
  144. package/src/styles/foundation/_motion.scss +19 -0
@@ -3,10 +3,17 @@
3
3
  // rounded inner corners.
4
4
  .dt-sheet-scrim {
5
5
  position: fixed;
6
- z-index: var(--dt-z-index-modal);
6
+ // Opening order among open modals, sheets, and tours (modalStack sets --dt-modal-layer).
7
+ z-index: calc(var(--dt-z-index-modal) + var(--dt-modal-layer, 0));
7
8
  inset: 0;
8
9
  display: flex;
9
10
  background: var(--dt-color-backdrop);
11
+ transition: background-color var(--dt-duration-base) var(--dt-ease-standard);
12
+ }
13
+
14
+ // Under a newer modal, sheet, or tour: one tint for the whole stack (see DTModal).
15
+ .dt-sheet-scrim[data-dt-modal-covered] {
16
+ background-color: transparent;
10
17
  }
11
18
 
12
19
  .dt-sheet-scrim--start { justify-content: flex-start; }
@@ -220,6 +227,10 @@
220
227
  }
221
228
 
222
229
  @media (prefers-reduced-motion: reduce) {
230
+ .dt-sheet-scrim {
231
+ transition: none;
232
+ }
233
+
223
234
  [class*="dt-sheet-"][class*="-enter-active"] .dt-sheet,
224
235
  [class*="dt-sheet-"][class*="-leave-active"] .dt-sheet {
225
236
  transition: none;
@@ -0,0 +1,196 @@
1
+ // Sortable (owner 2026-12-01: drag and drop). No HTML reference page: rows reuse the DTList row
2
+ // metrics (40 px, 12 px padding) and the DTCard surface; the lifted row gets the menu shadow.
3
+ @use "../../styles/foundation/visually-hidden" as *;
4
+
5
+ .dt-sortable {
6
+ --dt-sortable-gap: 8px;
7
+ --dt-sortable-row-height: 44px;
8
+
9
+ color: var(--dt-color-text);
10
+ font-size: var(--dt-font-size-md);
11
+ }
12
+
13
+ .dt-sortable__list {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: var(--dt-sortable-gap);
17
+ margin: 0;
18
+ padding: 0;
19
+ list-style: none;
20
+ }
21
+
22
+ // A list a row is being dragged over grows by one slot, so the gap opened at its end has room.
23
+ .dt-sortable--vertical .dt-sortable__list {
24
+ padding-block-end: var(--dt-sortable-room, 0px);
25
+ transition: padding var(--dt-duration-base) var(--dt-ease-emphasized);
26
+ }
27
+
28
+ .dt-sortable--horizontal .dt-sortable__list {
29
+ flex-direction: row;
30
+ flex-wrap: nowrap;
31
+ overflow-x: auto;
32
+ }
33
+
34
+ .dt-sortable__item {
35
+ position: relative;
36
+ display: flex;
37
+ box-sizing: border-box;
38
+ align-items: center;
39
+ gap: 4px;
40
+ min-height: var(--dt-sortable-row-height);
41
+ margin: 0;
42
+ padding: 0 12px 0 4px;
43
+ transition:
44
+ transform var(--dt-duration-base) var(--dt-ease-emphasized),
45
+ box-shadow var(--dt-duration-fast) var(--dt-ease-standard),
46
+ background var(--dt-duration-fast) var(--dt-ease-standard);
47
+ }
48
+
49
+ .dt-sortable--horizontal .dt-sortable__item {
50
+ flex: 0 0 auto;
51
+ }
52
+
53
+ .dt-sortable--card .dt-sortable__item {
54
+ border: 1px solid var(--dt-color-border);
55
+ border-radius: var(--dt-radius-md);
56
+ background: var(--dt-color-surface);
57
+ }
58
+
59
+ .dt-sortable--plain .dt-sortable__list {
60
+ gap: 0;
61
+ }
62
+
63
+ .dt-sortable--plain .dt-sortable__item {
64
+ border-radius: var(--dt-radius-sm);
65
+ background: var(--dt-color-surface);
66
+ }
67
+
68
+ .dt-sortable__content {
69
+ flex: 1 1 auto;
70
+ min-width: 0;
71
+ padding-block: 8px;
72
+ }
73
+
74
+ .dt-sortable__handle {
75
+ display: inline-flex;
76
+ flex: 0 0 auto;
77
+ align-items: center;
78
+ justify-content: center;
79
+ width: 32px;
80
+ height: 32px;
81
+ margin: 0;
82
+ padding: 0;
83
+ border: 0;
84
+ border-radius: var(--dt-radius-sm);
85
+ color: var(--dt-color-text-muted);
86
+ background: transparent;
87
+ cursor: grab;
88
+ // The grip owns its gestures: a touch on it drags instead of scrolling the page.
89
+ touch-action: none;
90
+ transition: background var(--dt-duration-fast) var(--dt-ease-standard), color var(--dt-duration-fast);
91
+ }
92
+
93
+ .dt-sortable__handle:hover:not(:disabled) {
94
+ color: var(--dt-color-text);
95
+ background: var(--dt-color-surface-hover);
96
+ }
97
+
98
+ .dt-sortable__handle:focus-visible {
99
+ outline: var(--dt-focus-ring-width) solid var(--dt-focus-ring-color);
100
+ outline-offset: 0;
101
+ }
102
+
103
+ .dt-sortable--drag-item .dt-sortable__item {
104
+ cursor: grab;
105
+ }
106
+
107
+ // Picked up (pointer or keyboard): raised above the others.
108
+ .dt-sortable__item.is-dragging {
109
+ z-index: 2;
110
+ border-color: var(--dt-color-primary);
111
+ background: var(--dt-color-surface-raised, var(--dt-color-surface));
112
+ box-shadow: var(--dt-shadow-lg);
113
+ }
114
+
115
+ .dt-sortable__item.is-dragging .dt-sortable__handle {
116
+ color: var(--dt-color-primary);
117
+ }
118
+
119
+ // Following the pointer: no transform transition, or the row would lag behind it.
120
+ .dt-sortable__item.is-lifted {
121
+ transition: box-shadow var(--dt-duration-fast) var(--dt-ease-standard);
122
+ scale: 1.02;
123
+ }
124
+
125
+ .dt-sortable.is-sorting,
126
+ .dt-sortable.is-sorting .dt-sortable__item,
127
+ .dt-sortable.is-sorting .dt-sortable__handle {
128
+ cursor: grabbing;
129
+ }
130
+
131
+ .dt-sortable.is-disabled .dt-sortable__handle {
132
+ color: var(--dt-color-text-disabled);
133
+ cursor: not-allowed;
134
+ }
135
+
136
+ .dt-sortable.is-disabled .dt-sortable__item {
137
+ cursor: default;
138
+ }
139
+
140
+ // An empty list keeps a drop area, so a row can be dragged into it.
141
+ .dt-sortable__empty {
142
+ display: flex;
143
+ box-sizing: border-box;
144
+ align-items: center;
145
+ justify-content: center;
146
+ min-height: var(--dt-sortable-row-height);
147
+ padding: 8px 12px;
148
+ border: 1px dashed var(--dt-color-border-strong);
149
+ border-radius: var(--dt-radius-md);
150
+ color: var(--dt-color-text-muted);
151
+ font-size: var(--dt-font-size-sm);
152
+ transition: border-color var(--dt-duration-fast), background var(--dt-duration-fast);
153
+ }
154
+
155
+ .dt-sortable.is-drop-target.is-empty .dt-sortable__list {
156
+ padding-block-end: 0;
157
+ }
158
+
159
+ .dt-sortable.is-drop-target .dt-sortable__empty {
160
+ border-color: var(--dt-color-primary);
161
+ color: var(--dt-color-text);
162
+ background: var(--dt-color-primary-subtle);
163
+ }
164
+
165
+ .dt-sortable__status {
166
+ @include dt-visually-hidden;
167
+ }
168
+
169
+ @media (prefers-reduced-motion: reduce) {
170
+ .dt-sortable__item {
171
+ transition: none;
172
+ }
173
+
174
+ .dt-sortable__item.is-lifted {
175
+ scale: none;
176
+ }
177
+
178
+ .dt-sortable--vertical .dt-sortable__list {
179
+ transition: none;
180
+ }
181
+ }
182
+
183
+ @media (forced-colors: active) {
184
+ .dt-sortable__item.is-dragging {
185
+ border-color: Highlight;
186
+ outline: 2px solid Highlight;
187
+ }
188
+
189
+ .dt-sortable__handle:focus-visible {
190
+ outline-color: Highlight;
191
+ }
192
+
193
+ .dt-sortable.is-drop-target .dt-sortable__empty {
194
+ border-color: Highlight;
195
+ }
196
+ }
@@ -0,0 +1,133 @@
1
+ // Splitter (owner 2026-12-02, audit step 6). Two flex panes and a 12 px handle whose 1 px line and
2
+ // grip mark the divider; the whole handle takes the pointer, so it is easy to grab.
3
+ .dt-splitter {
4
+ display: flex;
5
+ box-sizing: border-box;
6
+ min-width: 0;
7
+ min-height: 0;
8
+ overflow: hidden;
9
+ }
10
+
11
+ .dt-splitter--vertical {
12
+ flex-direction: column;
13
+ }
14
+
15
+ .dt-splitter__pane {
16
+ min-width: 0;
17
+ min-height: 0;
18
+ overflow: auto;
19
+ }
20
+
21
+ .dt-splitter__pane--start {
22
+ flex: 0 0 auto;
23
+ }
24
+
25
+ .dt-splitter__pane--end {
26
+ flex: 1 1 0;
27
+ }
28
+
29
+ .dt-splitter__handle {
30
+ position: relative;
31
+ display: flex;
32
+ flex: 0 0 12px;
33
+ align-items: center;
34
+ justify-content: center;
35
+ margin: 0;
36
+ outline: none;
37
+ cursor: col-resize;
38
+ touch-action: none;
39
+ }
40
+
41
+ .dt-splitter--vertical .dt-splitter__handle {
42
+ cursor: row-resize;
43
+ }
44
+
45
+ // The line: centred in the handle, accent while hovered, focused, or dragged.
46
+ .dt-splitter__handle::before {
47
+ position: absolute;
48
+ content: "";
49
+ background: var(--dt-color-border);
50
+ transition: background var(--dt-duration-fast) var(--dt-ease-standard);
51
+ }
52
+
53
+ .dt-splitter--horizontal .dt-splitter__handle::before {
54
+ inset-block: 0;
55
+ inset-inline-start: 50%;
56
+ width: 1px;
57
+ }
58
+
59
+ .dt-splitter--vertical .dt-splitter__handle::before {
60
+ inset-inline: 0;
61
+ top: 50%;
62
+ height: 1px;
63
+ }
64
+
65
+ .dt-splitter__grip {
66
+ position: relative;
67
+ z-index: 1;
68
+ border-radius: var(--dt-radius-full);
69
+ background: var(--dt-color-border-strong);
70
+ transition: background var(--dt-duration-fast) var(--dt-ease-standard);
71
+ }
72
+
73
+ .dt-splitter--horizontal .dt-splitter__grip {
74
+ width: 4px;
75
+ height: 28px;
76
+ }
77
+
78
+ .dt-splitter--vertical .dt-splitter__grip {
79
+ width: 28px;
80
+ height: 4px;
81
+ }
82
+
83
+ .dt-splitter__handle:hover::before,
84
+ .dt-splitter__handle:focus-visible::before,
85
+ .dt-splitter.is-dragging .dt-splitter__handle::before,
86
+ .dt-splitter__handle:hover .dt-splitter__grip,
87
+ .dt-splitter__handle:focus-visible .dt-splitter__grip,
88
+ .dt-splitter.is-dragging .dt-splitter__grip {
89
+ background: var(--dt-color-primary);
90
+ }
91
+
92
+ .dt-splitter__handle:focus-visible {
93
+ border-radius: var(--dt-radius-sm);
94
+ box-shadow: inset 0 0 0 var(--dt-focus-ring-width) var(--dt-focus-ring-color);
95
+ }
96
+
97
+ // While dragging, the panes do not select text or catch the pointer.
98
+ .dt-splitter.is-dragging {
99
+ cursor: col-resize;
100
+ user-select: none;
101
+ }
102
+
103
+ .dt-splitter--vertical.is-dragging {
104
+ cursor: row-resize;
105
+ }
106
+
107
+ .dt-splitter.is-dragging .dt-splitter__pane {
108
+ pointer-events: none;
109
+ }
110
+
111
+ .dt-splitter.is-disabled .dt-splitter__handle {
112
+ cursor: default;
113
+ }
114
+
115
+ .dt-splitter.is-disabled .dt-splitter__grip {
116
+ background: var(--dt-color-border);
117
+ }
118
+
119
+ @media (forced-colors: active) {
120
+ .dt-splitter__handle::before,
121
+ .dt-splitter__grip {
122
+ background: CanvasText;
123
+ }
124
+
125
+ .dt-splitter__handle:focus-visible::before,
126
+ .dt-splitter__handle:focus-visible .dt-splitter__grip {
127
+ background: Highlight;
128
+ }
129
+
130
+ .dt-splitter__handle:focus-visible {
131
+ outline: 2px solid Highlight;
132
+ }
133
+ }
@@ -304,3 +304,22 @@
304
304
  transition: none;
305
305
  }
306
306
  }
307
+
308
+ // Validation message (owner 2026-12-02 audit): its own row under the label, lined up with the text.
309
+ .dt-switch:has(> .dt-switch__message) {
310
+ flex-wrap: wrap;
311
+ row-gap: 0;
312
+ }
313
+
314
+ .dt-switch__message {
315
+ flex: 1 0 100%;
316
+ padding-inline-start: calc(var(--dt-switch-w) + var(--dt-switch-gap));
317
+ color: var(--dt-color-danger);
318
+ font-size: 12px;
319
+ line-height: 1.4;
320
+ cursor: default;
321
+ }
322
+
323
+ .dt-switch.is-invalid .dt-switch__track {
324
+ box-shadow: 0 0 0 1px var(--dt-color-danger);
325
+ }
@@ -4,6 +4,8 @@
4
4
  --dt-time-option: 36px;
5
5
  --dt-time-rows: 5;
6
6
 
7
+ position: relative;
8
+ isolation: isolate;
7
9
  display: inline-flex;
8
10
  box-sizing: border-box;
9
11
  align-items: stretch;
@@ -23,6 +25,23 @@
23
25
  font-weight: var(--dt-font-weight-semibold);
24
26
  }
25
27
 
28
+ // iPhone-style selection band (owner 2026-11-30): one bar runs across every column at the middle
29
+ // row, behind the selected values, so hours, ":", minutes, and AM/PM read as one time. Flat since
30
+ // owner 2026-12-03 (the blur, highlight, and tick pop read as decoration): a plain muted fill, as
31
+ // the iOS wheel draws it. The other rows fade out
32
+ // towards the top and bottom edges, as on the iOS wheel.
33
+ .dt-time-picker__band {
34
+ position: absolute;
35
+ z-index: -1;
36
+ inset-inline: 8px;
37
+ top: 50%;
38
+ height: var(--dt-time-option);
39
+ border-radius: var(--dt-radius-md);
40
+ background: var(--dt-color-surface-active);
41
+ pointer-events: none;
42
+ transform: translateY(-50%);
43
+ }
44
+
26
45
  .dt-time-picker__column {
27
46
  position: relative;
28
47
  box-sizing: border-box;
@@ -35,7 +54,12 @@
35
54
  border-radius: var(--dt-radius-sm);
36
55
  outline: none;
37
56
  scrollbar-width: none;
38
- scroll-snap-type: y proximity;
57
+ // Mandatory: a column always comes to rest with one value in the band, never between two.
58
+ scroll-snap-type: y mandatory;
59
+ // Rows fade towards the top and bottom edges, but never below 55 %, which keeps every enabled value at 4.5:1 or more;
60
+ // the middle third stays fully opaque.
61
+ -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 55%), #000 35%, #000 65%, rgb(0 0 0 / 55%));
62
+ mask-image: linear-gradient(180deg, rgb(0 0 0 / 55%), #000 35%, #000 65%, rgb(0 0 0 / 55%));
39
63
  }
40
64
 
41
65
  .dt-time-picker__column::-webkit-scrollbar {
@@ -58,16 +82,18 @@
58
82
  border-radius: var(--dt-radius-sm);
59
83
  cursor: pointer;
60
84
  scroll-snap-align: center;
85
+ // One value per stop: a fast flick still stops on the next value or a few, not freely.
86
+ scroll-snap-stop: always;
61
87
  user-select: none;
62
88
  }
63
89
 
64
- .dt-time-picker__option:hover:not([aria-disabled="true"], .is-selected) {
65
- background: var(--dt-color-surface-hover);
66
- }
90
+ // No hover fill: the band marks the value, as on iOS (owner 2026-11-30: "ko cần hover-bg").
67
91
 
92
+ // The selected value sits in the band: bold, in the text colour (not a filled pill), larger
93
+ // than the rows around it, as on the iOS wheel.
68
94
  .dt-time-picker__option.is-selected {
69
- color: var(--dt-color-primary-on);
70
- background: var(--dt-color-primary);
95
+ color: var(--dt-color-text);
96
+ font-size: var(--dt-font-size-md);
71
97
  font-weight: var(--dt-font-weight-semibold);
72
98
  }
73
99
 
@@ -92,6 +118,11 @@
92
118
  }
93
119
 
94
120
  @media (forced-colors: active) {
121
+ // Backgrounds are dropped: the band keeps an outline, and each selected value its own.
122
+ .dt-time-picker__band {
123
+ border-color: CanvasText;
124
+ }
125
+
95
126
  .dt-time-picker__option.is-selected {
96
127
  outline: 2px solid Highlight;
97
128
  }
@@ -65,6 +65,8 @@
65
65
  .dt-toast {
66
66
  --dt-toast-tone: var(--dt-color-info);
67
67
  --dt-toast-on: var(--dt-color-info-on);
68
+ --dt-toast-tint: var(--dt-color-info-subtle);
69
+ --dt-toast-ink: var(--dt-color-info-on-subtle);
68
70
 
69
71
  position: relative;
70
72
  overflow: hidden;
@@ -75,13 +77,15 @@
75
77
  flex-wrap: wrap;
76
78
  align-items: flex-start;
77
79
  gap: var(--dt-space-3);
78
- padding: var(--dt-space-3) var(--dt-space-4);
79
- border: 1px solid var(--dt-color-border);
80
- border-left: 3px solid var(--dt-toast-tone);
81
- border-radius: var(--dt-radius-md);
82
- color: var(--dt-color-text);
83
- background: var(--dt-color-surface-raised);
84
- box-shadow: var(--dt-shadow-md);
80
+ padding: var(--dt-space-3) var(--dt-space-3) var(--dt-space-3) var(--dt-space-4);
81
+ // Tonal (owner 2026-12-03, reference ui/toast.png): a soft tint of the tone, the text in the
82
+ // tone's readable shade, no coloured edge. The intent tokens keep 4.5:1 in light and dark. A
83
+ // faint tone border and a low shadow keep the card apart from the page it floats over.
84
+ border: 1px solid color-mix(in srgb, var(--dt-toast-tone) 18%, transparent);
85
+ border-radius: var(--dt-radius-lg);
86
+ color: var(--dt-toast-ink);
87
+ background: var(--dt-toast-tint);
88
+ box-shadow: var(--dt-shadow-sm);
85
89
  pointer-events: auto;
86
90
  animation: dt-toast-in var(--dt-duration-moderate) var(--dt-ease-emphasized);
87
91
  }
@@ -94,6 +98,8 @@
94
98
  .dt-toast--#{$tone} {
95
99
  --dt-toast-tone: var(--dt-color-#{$tone});
96
100
  --dt-toast-on: var(--dt-color-#{$tone}-on);
101
+ --dt-toast-tint: var(--dt-color-#{$tone}-subtle);
102
+ --dt-toast-ink: var(--dt-color-#{$tone}-on-subtle);
97
103
  }
98
104
  }
99
105
 
@@ -119,8 +125,13 @@
119
125
  // Outlined: the tone draws the whole border on the plain surface.
120
126
  .dt-toast--outlined {
121
127
  border-color: var(--dt-toast-tone);
122
- border-left-width: 1px;
128
+ color: var(--dt-color-text);
123
129
  background: var(--dt-color-surface);
130
+
131
+ .dt-toast__text { color: var(--dt-color-text-muted); }
132
+ .dt-toast__action { color: var(--dt-color-primary); }
133
+ .dt-toast__close { color: var(--dt-color-text-subtle); }
134
+ .dt-toast__icon { color: var(--dt-toast-tone); }
124
135
  }
125
136
 
126
137
  // Solid: the tone fill with its -on colour. Every text part uses -on at full strength (the muted
@@ -427,8 +438,9 @@
427
438
 
428
439
  .dt-toast__icon {
429
440
  flex: none;
441
+ // Centred on the title's first line (20 px line box, 18 px icon).
430
442
  margin-top: 1px;
431
- color: var(--dt-toast-tone);
443
+ color: inherit;
432
444
  font-size: 18px;
433
445
  }
434
446
 
@@ -440,12 +452,14 @@
440
452
 
441
453
  .dt-toast__title {
442
454
  font-size: var(--dt-font-size-sm);
443
- font-weight: var(--dt-font-weight-semibold);
455
+ font-weight: var(--dt-font-weight-medium);
456
+ line-height: 20px;
444
457
  }
445
458
 
446
459
  .dt-toast__text {
447
- margin: 2px 0 0;
448
- color: var(--dt-color-text-muted);
460
+ margin: 0;
461
+ line-height: 18px;
462
+ color: inherit;
449
463
  font-size: var(--dt-font-size-xs);
450
464
  }
451
465
 
@@ -459,9 +473,11 @@
459
473
  padding: 0 var(--dt-space-2);
460
474
  border: 0;
461
475
  border-radius: var(--dt-radius-sm);
462
- color: var(--dt-color-primary);
476
+ color: inherit;
463
477
  background: transparent;
464
478
  font-family: inherit;
479
+ text-decoration: underline;
480
+ text-underline-offset: 2px;
465
481
  font-size: var(--dt-font-size-sm);
466
482
  font-weight: var(--dt-font-weight-semibold);
467
483
  line-height: 1;
@@ -469,8 +485,10 @@
469
485
  cursor: pointer;
470
486
  }
471
487
 
472
- .dt-toast__action:hover {
473
- background: var(--dt-color-surface-hover);
488
+ .dt-toast__action:hover,
489
+ .dt-toast__close:hover {
490
+ color: inherit;
491
+ background: color-mix(in srgb, var(--dt-toast-tone) 12%, transparent);
474
492
  }
475
493
 
476
494
  .dt-toast__action:focus-visible {
@@ -484,20 +502,15 @@
484
502
  place-items: center;
485
503
  width: 24px;
486
504
  height: 24px;
487
- margin: -3px -6px 0 0;
505
+ margin: -2px 0 0;
488
506
  padding: 0;
489
507
  border: 0;
490
508
  border-radius: var(--dt-radius-sm);
491
- color: var(--dt-color-text-subtle);
509
+ color: inherit;
492
510
  background: transparent;
493
511
  cursor: pointer;
494
512
  }
495
513
 
496
- .dt-toast__close:hover {
497
- color: var(--dt-color-text);
498
- background: var(--dt-color-surface-hover);
499
- }
500
-
501
514
  .dt-toast__close:focus-visible {
502
515
  outline: none;
503
516
  box-shadow: 0 0 0 2px var(--dt-color-primary);
@@ -6,7 +6,8 @@
6
6
 
7
7
  .dt-tour {
8
8
  position: fixed;
9
- z-index: var(--dt-z-index-modal);
9
+ // Opening order among open modals, sheets, and tours (modalStack sets --dt-modal-layer).
10
+ z-index: calc(var(--dt-z-index-modal) + var(--dt-modal-layer, 0));
10
11
  inset: 0;
11
12
  // The non-modal tour leaves the page usable: only the panel takes the pointer.
12
13
  pointer-events: none;
@@ -0,0 +1,35 @@
1
+ // Virtual scroll (owner 2026-12-02, audit step 6). A scroll box; rows are absolutely placed inside
2
+ // a spacer as tall as every row together, so the scrollbar reflects the whole list.
3
+ .dt-virtual-scroll {
4
+ position: relative;
5
+ box-sizing: border-box;
6
+ overflow-y: auto;
7
+ overscroll-behavior: contain;
8
+ contain: strict;
9
+ min-height: 0;
10
+ }
11
+
12
+ .dt-virtual-scroll:focus-visible {
13
+ outline: var(--dt-focus-ring-width) solid var(--dt-focus-ring-color);
14
+ outline-offset: calc(-1 * var(--dt-focus-ring-width));
15
+ }
16
+
17
+ .dt-virtual-scroll__spacer {
18
+ position: relative;
19
+ width: 100%;
20
+ }
21
+
22
+ .dt-virtual-scroll__row {
23
+ position: absolute;
24
+ top: 0;
25
+ right: 0;
26
+ left: 0;
27
+ box-sizing: border-box;
28
+ will-change: transform;
29
+ }
30
+
31
+ @media (forced-colors: active) {
32
+ .dt-virtual-scroll:focus-visible {
33
+ outline-color: Highlight;
34
+ }
35
+ }
@@ -8,3 +8,22 @@
8
8
  transition-duration: 1ms !important;
9
9
  }
10
10
  }
11
+
12
+ // Chevron flips in 3D when its trigger opens. Shared by DTButton, DTMenu, DTSelect, and the date
13
+ // picker, so it lives here with the motion foundation rather than in one component's file (moved
14
+ // from DTMenu.scss for the per-component stylesheets, audit step 5).
15
+ .dt-chevron {
16
+ flex: none;
17
+ transition: transform var(--dt-duration-slow) var(--dt-ease-standard);
18
+ transform: perspective(100px) rotateX(0deg);
19
+ }
20
+
21
+ [aria-expanded="true"] .dt-chevron {
22
+ transform: perspective(100px) rotateX(180deg);
23
+ }
24
+
25
+ @media (prefers-reduced-motion: reduce) {
26
+ .dt-chevron {
27
+ transition: none;
28
+ }
29
+ }