tandd-ui 0.2.7 → 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.
- package/CHANGELOG.md +27 -0
- package/README.md +5 -1
- package/dist/components/_shared/nextFrame.d.ts +11 -0
- package/dist/components/_shared/useFieldValidation.d.ts +2 -1
- package/dist/components/alert/DTAlert.vue.d.ts +2 -2
- package/dist/components/autocomplete/DTAutocomplete.vue.d.ts +4 -0
- package/dist/components/card/DTCard.vue.d.ts +1 -1
- package/dist/components/card/DTCardMedia.vue.d.ts +1 -1
- package/dist/components/checkbox/DTCheckbox.vue.d.ts +11 -2
- package/dist/components/date-picker/DTDateInput.vue.d.ts +7 -0
- package/dist/components/date-picker/DTDatePicker.vue.d.ts +7 -4
- package/dist/components/date-time-picker/DTDateTimeInput.vue.d.ts +4 -0
- package/dist/components/file-input/DTFileInput.vue.d.ts +4 -0
- package/dist/components/form/DTForm.vue.d.ts +67 -0
- package/dist/components/form/formContext.d.ts +24 -0
- package/dist/components/form/useFormField.d.ts +42 -0
- package/dist/components/mention/DTMention.vue.d.ts +4 -0
- package/dist/components/modal/modalStack.d.ts +6 -0
- package/dist/components/number-input/DTNumberInput.vue.d.ts +4 -0
- package/dist/components/radio/DTRadioGroup.vue.d.ts +11 -2
- package/dist/components/select/DTSelect.vue.d.ts +8 -0
- package/dist/components/sortable/DTSortable.vue.d.ts +70 -0
- package/dist/components/sortable/sortableGroups.d.ts +41 -0
- package/dist/components/splitter/DTSplitter.vue.d.ts +48 -0
- package/dist/components/switch/DTSwitch.vue.d.ts +11 -0
- package/dist/components/text-field/DTInput.vue.d.ts +6 -2
- package/dist/components/text-field/fieldShared.d.ts +18 -3
- package/dist/components/textarea/DTTextarea.vue.d.ts +6 -2
- package/dist/components/time-picker/DTTimeInput.vue.d.ts +4 -0
- package/dist/components/toast/toastStore.d.ts +1 -1
- package/dist/components/virtual-scroll/DTVirtualScroll.vue.d.ts +58 -0
- package/dist/index.d.ts +9 -0
- package/dist/locale/en.d.ts +17 -0
- package/dist/locale/en.js +3 -0
- package/dist/locale/messages.d.ts +17 -0
- package/dist/locale/vi.d.ts +17 -0
- package/dist/locale/vi.js +3 -0
- package/dist/styles/accordion.css +177 -0
- package/dist/styles/alert.css +750 -0
- package/dist/styles/anchor.css +120 -0
- package/dist/styles/app-bar.css +1333 -0
- package/dist/styles/autocomplete.css +2100 -0
- package/dist/styles/avatar.css +153 -0
- package/dist/styles/badge.css +862 -0
- package/dist/styles/base.css +383 -0
- package/dist/styles/border-beam.css +57 -0
- package/dist/styles/breadcrumb.css +120 -0
- package/dist/styles/button-group.css +517 -0
- package/dist/styles/button.css +517 -0
- package/dist/styles/card.css +365 -0
- package/dist/styles/carousel.css +272 -0
- package/dist/styles/checkbox.css +457 -0
- package/dist/styles/chip.css +784 -0
- package/dist/styles/code.css +10 -0
- package/dist/styles/col.css +128 -0
- package/dist/styles/color-input.css +1818 -0
- package/dist/styles/color-picker.css +1818 -0
- package/dist/styles/combobox.css +2100 -0
- package/dist/styles/container.css +20 -0
- package/dist/styles/data-table.css +2692 -0
- package/dist/styles/date-picker.css +1309 -0
- package/dist/styles/date-time-picker.css +1574 -0
- package/dist/styles/divider.css +61 -0
- package/dist/styles/empty-state.css +183 -0
- package/dist/styles/field-control.css +293 -0
- package/dist/styles/field.css +69 -0
- package/dist/styles/file-input.css +1427 -0
- package/dist/styles/file-upload.css +1794 -0
- package/dist/styles/form.css +62 -0
- package/dist/styles/grid.css +330 -0
- package/dist/styles/heading.css +9 -0
- package/dist/styles/icon.css +62 -0
- package/dist/styles/infinite-scroll.css +589 -0
- package/dist/styles/inline.css +17 -0
- package/dist/styles/kbd.css +17 -0
- package/dist/styles/layout-app.css +56 -0
- package/dist/styles/link.css +34 -0
- package/dist/styles/list.css +369 -0
- package/dist/styles/manifest.json +350 -0
- package/dist/styles/mention.css +2041 -0
- package/dist/styles/menu.css +305 -0
- package/dist/styles/modal.css +275 -0
- package/dist/styles/navigation-drawer.css +2006 -0
- package/dist/styles/number-input.css +709 -0
- package/dist/styles/otp-input.css +187 -0
- package/dist/styles/pagination.css +165 -0
- package/dist/styles/popover.css +419 -0
- package/dist/styles/progress.css +196 -0
- package/dist/styles/pull-refresh.css +674 -0
- package/dist/styles/radio.css +457 -0
- package/dist/styles/rating.css +211 -0
- package/dist/styles/row.css +71 -0
- package/dist/styles/select.css +1540 -0
- package/dist/styles/sheet.css +601 -0
- package/dist/styles/skeleton.css +65 -0
- package/dist/styles/skip-link.css +131 -0
- package/dist/styles/slider.css +633 -0
- package/dist/styles/sortable.css +249 -0
- package/dist/styles/spinner.css +115 -0
- package/dist/styles/splitter.css +127 -0
- package/dist/styles/stack.css +8 -0
- package/dist/styles/statistic.css +49 -0
- package/dist/styles/stepper.css +324 -0
- package/dist/styles/surface.css +95 -0
- package/dist/styles/switch.css +857 -0
- package/dist/styles/table.css +260 -0
- package/dist/styles/tabs.css +663 -0
- package/dist/styles/text-field.css +602 -0
- package/dist/styles/text.css +9 -0
- package/dist/styles/textarea.css +602 -0
- package/dist/styles/time-picker.css +1446 -0
- package/dist/styles/timeline.css +376 -0
- package/dist/styles/toast.css +542 -0
- package/dist/styles/tooltip.css +179 -0
- package/dist/styles/tour.css +1130 -0
- package/dist/styles/tree-select.css +1803 -0
- package/dist/styles/treeview.css +365 -0
- package/dist/styles/virtual-scroll.css +33 -0
- package/dist/styles/watermark.css +3 -0
- package/dist/tandd-ui.css +607 -91
- package/dist/tandd-ui.js +7647 -6647
- package/package.json +18 -7
- package/src/components/_index.scss +4 -0
- package/src/components/alert/DTAlert.scss +29 -45
- package/src/components/border-beam/DTBorderBeam.scss +4 -3
- package/src/components/card/DTCard.scss +6 -5
- package/src/components/checkbox/DTChoice.scss +28 -0
- package/src/components/date-picker/DTDatePicker.scss +30 -0
- package/src/components/date-time-picker/DTDateTimePicker.scss +2 -1
- package/src/components/form/DTForm.scss +66 -0
- package/src/components/menu/DTMenu.scss +0 -15
- package/src/components/modal/DTModal.scss +11 -1
- package/src/components/sheet/DTSheet.scss +12 -1
- package/src/components/sortable/DTSortable.scss +196 -0
- package/src/components/splitter/DTSplitter.scss +133 -0
- package/src/components/switch/DTSwitch.scss +19 -0
- package/src/components/time-picker/DTTimePicker.scss +37 -6
- package/src/components/toast/DTToast.scss +35 -22
- package/src/components/tour/DTTour.scss +2 -1
- package/src/components/virtual-scroll/DTVirtualScroll.scss +35 -0
- package/src/styles/foundation/_motion.scss +19 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
.dt-table-wrap {
|
|
2
|
+
width: 100%;
|
|
3
|
+
max-height: var(--dt-table-max-height, none);
|
|
4
|
+
overflow: auto;
|
|
5
|
+
overscroll-behavior-x: contain;
|
|
6
|
+
border: 1px solid var(--dt-color-border);
|
|
7
|
+
border-radius: var(--dt-radius-md);
|
|
8
|
+
background: var(--dt-color-surface);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dt-table-wrap--fixed-height {
|
|
12
|
+
height: var(--dt-table-height);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.dt-table-wrap:focus-visible {
|
|
16
|
+
outline: 2px solid var(--dt-color-primary);
|
|
17
|
+
outline-offset: 2px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dt-table {
|
|
21
|
+
--dt-table-row-bg: var(--dt-color-surface);
|
|
22
|
+
--dt-table-head-bg: var(--dt-color-surface-muted);
|
|
23
|
+
width: 100%;
|
|
24
|
+
border-collapse: separate;
|
|
25
|
+
border-spacing: 0;
|
|
26
|
+
color: var(--dt-color-text);
|
|
27
|
+
font-size: var(--dt-font-size-sm);
|
|
28
|
+
}
|
|
29
|
+
.dt-table th,
|
|
30
|
+
.dt-table td {
|
|
31
|
+
padding: var(--dt-space-3) var(--dt-space-4);
|
|
32
|
+
border-bottom: 1px solid var(--dt-color-border);
|
|
33
|
+
text-align: left;
|
|
34
|
+
vertical-align: middle;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
.dt-table thead th {
|
|
38
|
+
color: var(--dt-color-text-muted);
|
|
39
|
+
background: var(--dt-table-head-bg);
|
|
40
|
+
font-size: var(--dt-font-size-xs);
|
|
41
|
+
font-weight: var(--dt-font-weight-semibold);
|
|
42
|
+
letter-spacing: var(--dt-letter-spacing-wide);
|
|
43
|
+
text-transform: uppercase;
|
|
44
|
+
}
|
|
45
|
+
.dt-table tbody tr:last-child > * {
|
|
46
|
+
border-bottom: 0;
|
|
47
|
+
}
|
|
48
|
+
.dt-table caption {
|
|
49
|
+
padding: var(--dt-space-3) var(--dt-space-4);
|
|
50
|
+
color: var(--dt-color-text-muted);
|
|
51
|
+
font-size: var(--dt-font-size-xs);
|
|
52
|
+
text-align: left;
|
|
53
|
+
caption-side: bottom;
|
|
54
|
+
}
|
|
55
|
+
.dt-table :is(th, td).dt-table-num {
|
|
56
|
+
font-variant-numeric: tabular-nums;
|
|
57
|
+
text-align: right;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dt-table tbody tr {
|
|
61
|
+
background: var(--dt-table-row-bg);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dt-table--striped tbody tr:nth-child(even) {
|
|
65
|
+
--dt-table-row-bg: var(--dt-color-surface-muted);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dt-table--hover tbody tr:hover {
|
|
69
|
+
--dt-table-row-bg: var(--dt-color-surface-hover);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.dt-table tfoot :is(th, td) {
|
|
73
|
+
border-top: 1px solid var(--dt-color-border);
|
|
74
|
+
border-bottom: 0;
|
|
75
|
+
background: var(--dt-table-head-bg);
|
|
76
|
+
font-weight: var(--dt-font-weight-semibold);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.dt-table--fixed-header thead :is(th, td) {
|
|
80
|
+
position: sticky;
|
|
81
|
+
z-index: 2;
|
|
82
|
+
top: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.dt-table--fixed-footer tfoot :is(th, td) {
|
|
86
|
+
position: sticky;
|
|
87
|
+
z-index: 2;
|
|
88
|
+
bottom: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.dt-table--fixed-column tr > :first-child {
|
|
92
|
+
position: sticky;
|
|
93
|
+
z-index: 1;
|
|
94
|
+
inset-inline-start: 0;
|
|
95
|
+
background: var(--dt-table-row-bg);
|
|
96
|
+
transition: box-shadow var(--dt-duration-fast);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dt-table--fixed-column :is(thead, tfoot) tr > :first-child {
|
|
100
|
+
z-index: 3;
|
|
101
|
+
background: var(--dt-table-head-bg);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.is-scrolled-x > .dt-table--fixed-column tr > :first-child {
|
|
105
|
+
box-shadow: 6px 0 6px -4px color-mix(in srgb, var(--dt-color-foreground) 18%, transparent);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
[dir=rtl] .is-scrolled-x > .dt-table--fixed-column tr > :first-child {
|
|
109
|
+
box-shadow: -6px 0 6px -4px color-mix(in srgb, var(--dt-color-foreground) 18%, transparent);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dt-table .dt-table__spacer > td {
|
|
113
|
+
padding: 0;
|
|
114
|
+
border: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.dt-table--virtual.dt-table--striped tbody tr:nth-child(even) {
|
|
118
|
+
--dt-table-row-bg: var(--dt-color-surface);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.dt-table--virtual.dt-table--striped tbody tr:nth-child(even of :not(.dt-table__spacer)) {
|
|
122
|
+
--dt-table-row-bg: var(--dt-color-surface-muted);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.dt-table--virtual.dt-table--striped.dt-table--hover tbody tr:not(.dt-table__spacer):hover {
|
|
126
|
+
--dt-table-row-bg: var(--dt-color-surface-hover);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.dt-table--virtual.dt-table--hover tbody tr.dt-table__spacer:hover {
|
|
130
|
+
--dt-table-row-bg: var(--dt-color-surface);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.dt-table--compact :is(th, td) {
|
|
134
|
+
padding: var(--dt-space-2) var(--dt-space-3);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media (prefers-reduced-motion: reduce) {
|
|
138
|
+
.dt-table--fixed-column tr > :first-child {
|
|
139
|
+
transition: none;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
.dt-table-wrap--body-scroll {
|
|
143
|
+
display: grid;
|
|
144
|
+
grid-template: auto/auto;
|
|
145
|
+
scrollbar-width: none;
|
|
146
|
+
}
|
|
147
|
+
.dt-table-wrap--body-scroll::-webkit-scrollbar {
|
|
148
|
+
display: none;
|
|
149
|
+
}
|
|
150
|
+
.dt-table-wrap--body-scroll > .dt-table,
|
|
151
|
+
.dt-table-wrap--body-scroll > .dt-table-scrollbars {
|
|
152
|
+
grid-area: 1/1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.dt-table-scrollbars {
|
|
156
|
+
position: sticky;
|
|
157
|
+
z-index: 4;
|
|
158
|
+
top: 0;
|
|
159
|
+
left: 0;
|
|
160
|
+
align-self: start;
|
|
161
|
+
justify-self: start;
|
|
162
|
+
width: var(--dt-scrollbars-width, 100%);
|
|
163
|
+
height: 0;
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.dt-table-scrollbars__track {
|
|
168
|
+
position: absolute;
|
|
169
|
+
pointer-events: auto;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.dt-table-scrollbars__track--y {
|
|
173
|
+
right: 2px;
|
|
174
|
+
width: 10px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.dt-table-scrollbars__track--x {
|
|
178
|
+
top: calc(var(--dt-scrollbars-height, 0px) - 12px);
|
|
179
|
+
left: 2px;
|
|
180
|
+
height: 10px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.dt-table-scrollbars__thumb {
|
|
184
|
+
position: absolute;
|
|
185
|
+
border-radius: var(--dt-radius-full);
|
|
186
|
+
background: color-mix(in srgb, var(--dt-color-foreground) 28%, transparent);
|
|
187
|
+
transition: background var(--dt-duration-fast), width var(--dt-duration-fast), height var(--dt-duration-fast), inset var(--dt-duration-fast);
|
|
188
|
+
touch-action: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.dt-table-scrollbars__track--y .dt-table-scrollbars__thumb {
|
|
192
|
+
top: 0;
|
|
193
|
+
right: 2px;
|
|
194
|
+
width: 6px;
|
|
195
|
+
transform: translateY(var(--dt-scrollbar-offset, 0px));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.dt-table-scrollbars__track--x .dt-table-scrollbars__thumb {
|
|
199
|
+
bottom: 2px;
|
|
200
|
+
left: 0;
|
|
201
|
+
height: 6px;
|
|
202
|
+
transform: translateX(var(--dt-scrollbar-offset, 0px));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.dt-table-scrollbars__track--y:hover .dt-table-scrollbars__thumb,
|
|
206
|
+
.dt-table-scrollbars__track--y.is-active .dt-table-scrollbars__thumb {
|
|
207
|
+
right: 1px;
|
|
208
|
+
width: 8px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.dt-table-scrollbars__track--x:hover .dt-table-scrollbars__thumb,
|
|
212
|
+
.dt-table-scrollbars__track--x.is-active .dt-table-scrollbars__thumb {
|
|
213
|
+
bottom: 1px;
|
|
214
|
+
height: 8px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.dt-table-scrollbars__track:hover .dt-table-scrollbars__thumb {
|
|
218
|
+
background: color-mix(in srgb, var(--dt-color-foreground) 42%, transparent);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.dt-table-scrollbars__track.is-active .dt-table-scrollbars__thumb {
|
|
222
|
+
background: color-mix(in srgb, var(--dt-color-foreground) 55%, transparent);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.dt-table-scrollbars.is-dragging {
|
|
226
|
+
user-select: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
[dir=rtl] .dt-table-scrollbars {
|
|
230
|
+
right: 0;
|
|
231
|
+
left: auto;
|
|
232
|
+
justify-self: end;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
[dir=rtl] .dt-table-scrollbars__track--y {
|
|
236
|
+
right: auto;
|
|
237
|
+
left: 2px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
[dir=rtl] .dt-table-scrollbars__track--y .dt-table-scrollbars__thumb {
|
|
241
|
+
right: auto;
|
|
242
|
+
left: 2px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
[dir=rtl] .dt-table-scrollbars__track--x {
|
|
246
|
+
right: 2px;
|
|
247
|
+
left: auto;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
[dir=rtl] .dt-table-scrollbars__track--x .dt-table-scrollbars__thumb {
|
|
251
|
+
right: 0;
|
|
252
|
+
left: auto;
|
|
253
|
+
transform: translateX(calc(-1 * var(--dt-scrollbar-offset, 0px)));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@media (prefers-reduced-motion: reduce) {
|
|
257
|
+
.dt-table-scrollbars__thumb {
|
|
258
|
+
transition: none;
|
|
259
|
+
}
|
|
260
|
+
}
|