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,542 @@
|
|
|
1
|
+
.dt-icon {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
flex: 0 0 auto;
|
|
4
|
+
inline-size: var(--dt-icon-size, 1em);
|
|
5
|
+
block-size: var(--dt-icon-size, 1em);
|
|
6
|
+
overflow: visible;
|
|
7
|
+
color: currentColor;
|
|
8
|
+
vertical-align: -0.125em;
|
|
9
|
+
fill: none;
|
|
10
|
+
stroke: currentColor;
|
|
11
|
+
stroke-width: var(--dt-icon-stroke, 1.5);
|
|
12
|
+
stroke-linecap: round;
|
|
13
|
+
stroke-linejoin: round;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dt-icon--text {
|
|
17
|
+
color: var(--dt-color-text);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dt-icon--muted {
|
|
21
|
+
color: var(--dt-color-text-muted);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dt-icon--subtle {
|
|
25
|
+
color: var(--dt-color-text-subtle);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dt-icon--primary {
|
|
29
|
+
color: var(--dt-color-primary);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dt-icon--danger {
|
|
33
|
+
color: var(--dt-color-danger);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dt-icon--info {
|
|
37
|
+
color: var(--dt-color-info);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dt-icon--warning {
|
|
41
|
+
color: var(--dt-color-warning);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dt-icon--size-xs {
|
|
45
|
+
--dt-icon-size: var(--dt-icon-xs);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.dt-icon--size-sm {
|
|
49
|
+
--dt-icon-size: var(--dt-icon-sm);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dt-icon--size-md {
|
|
53
|
+
--dt-icon-size: var(--dt-icon-md);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.dt-icon--size-lg {
|
|
57
|
+
--dt-icon-size: var(--dt-icon-lg);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dt-icon--size-xl {
|
|
61
|
+
--dt-icon-size: var(--dt-icon-xl);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dt-toast-region {
|
|
65
|
+
--dt-toast-enter-x: 16px;
|
|
66
|
+
--dt-toast-enter-y: 0px;
|
|
67
|
+
position: fixed;
|
|
68
|
+
z-index: var(--dt-z-index-toast);
|
|
69
|
+
right: var(--dt-space-4);
|
|
70
|
+
bottom: var(--dt-space-4);
|
|
71
|
+
display: grid;
|
|
72
|
+
gap: var(--dt-space-2);
|
|
73
|
+
width: min(340px, 100vw - var(--dt-space-8));
|
|
74
|
+
font-family: var(--dt-font-family-sans);
|
|
75
|
+
pointer-events: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dt-toast-region--bottom-start,
|
|
79
|
+
.dt-toast-region--top-start {
|
|
80
|
+
--dt-toast-enter-x: -16px;
|
|
81
|
+
right: auto;
|
|
82
|
+
left: var(--dt-space-4);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.dt-toast-region--top-start,
|
|
86
|
+
.dt-toast-region--top,
|
|
87
|
+
.dt-toast-region--top-end {
|
|
88
|
+
top: var(--dt-space-4);
|
|
89
|
+
bottom: auto;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dt-toast-region--top,
|
|
93
|
+
.dt-toast-region--bottom {
|
|
94
|
+
--dt-toast-enter-x: 0px;
|
|
95
|
+
--dt-toast-enter-y: 16px;
|
|
96
|
+
right: auto;
|
|
97
|
+
left: 50%;
|
|
98
|
+
transform: translateX(-50%);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.dt-toast-region--top {
|
|
102
|
+
--dt-toast-enter-y: -16px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[dir=rtl] .dt-toast-region--bottom-end,
|
|
106
|
+
[dir=rtl] .dt-toast-region--top-end {
|
|
107
|
+
--dt-toast-enter-x: -16px;
|
|
108
|
+
right: auto;
|
|
109
|
+
left: var(--dt-space-4);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[dir=rtl] .dt-toast-region--bottom-start,
|
|
113
|
+
[dir=rtl] .dt-toast-region--top-start {
|
|
114
|
+
--dt-toast-enter-x: 16px;
|
|
115
|
+
right: var(--dt-space-4);
|
|
116
|
+
left: auto;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.dt-toast {
|
|
120
|
+
--dt-toast-tone: var(--dt-color-info);
|
|
121
|
+
--dt-toast-on: var(--dt-color-info-on);
|
|
122
|
+
--dt-toast-tint: var(--dt-color-info-subtle);
|
|
123
|
+
--dt-toast-ink: var(--dt-color-info-on-subtle);
|
|
124
|
+
position: relative;
|
|
125
|
+
overflow: hidden;
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-wrap: wrap;
|
|
128
|
+
align-items: flex-start;
|
|
129
|
+
gap: var(--dt-space-3);
|
|
130
|
+
padding: var(--dt-space-3) var(--dt-space-3) var(--dt-space-3) var(--dt-space-4);
|
|
131
|
+
border: 1px solid color-mix(in srgb, var(--dt-toast-tone) 18%, transparent);
|
|
132
|
+
border-radius: var(--dt-radius-lg);
|
|
133
|
+
color: var(--dt-toast-ink);
|
|
134
|
+
background: var(--dt-toast-tint);
|
|
135
|
+
box-shadow: var(--dt-shadow-sm);
|
|
136
|
+
pointer-events: auto;
|
|
137
|
+
animation: dt-toast-in var(--dt-duration-moderate) var(--dt-ease-emphasized);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.dt-toast.is-leaving {
|
|
141
|
+
animation: dt-toast-out var(--dt-duration-base) var(--dt-ease-standard) forwards;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.dt-toast--success {
|
|
145
|
+
--dt-toast-tone: var(--dt-color-success);
|
|
146
|
+
--dt-toast-on: var(--dt-color-success-on);
|
|
147
|
+
--dt-toast-tint: var(--dt-color-success-subtle);
|
|
148
|
+
--dt-toast-ink: var(--dt-color-success-on-subtle);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.dt-toast--warning {
|
|
152
|
+
--dt-toast-tone: var(--dt-color-warning);
|
|
153
|
+
--dt-toast-on: var(--dt-color-warning-on);
|
|
154
|
+
--dt-toast-tint: var(--dt-color-warning-subtle);
|
|
155
|
+
--dt-toast-ink: var(--dt-color-warning-on-subtle);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.dt-toast--danger {
|
|
159
|
+
--dt-toast-tone: var(--dt-color-danger);
|
|
160
|
+
--dt-toast-on: var(--dt-color-danger-on);
|
|
161
|
+
--dt-toast-tint: var(--dt-color-danger-subtle);
|
|
162
|
+
--dt-toast-ink: var(--dt-color-danger-on-subtle);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.dt-toast--sm:not(.dt-toast--raised) {
|
|
166
|
+
gap: var(--dt-space-2);
|
|
167
|
+
padding: var(--dt-space-2) var(--dt-space-3);
|
|
168
|
+
}
|
|
169
|
+
.dt-toast--sm:not(.dt-toast--raised) .dt-toast__icon {
|
|
170
|
+
font-size: 16px;
|
|
171
|
+
}
|
|
172
|
+
.dt-toast--sm:not(.dt-toast--raised) .dt-toast__title {
|
|
173
|
+
font-size: var(--dt-font-size-xs);
|
|
174
|
+
}
|
|
175
|
+
.dt-toast--sm:not(.dt-toast--raised) .dt-toast__text {
|
|
176
|
+
font-size: var(--dt-font-size-2xs);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.dt-toast--lg:not(.dt-toast--raised) {
|
|
180
|
+
gap: var(--dt-space-4);
|
|
181
|
+
padding: var(--dt-space-4) var(--dt-space-5);
|
|
182
|
+
}
|
|
183
|
+
.dt-toast--lg:not(.dt-toast--raised) .dt-toast__icon {
|
|
184
|
+
font-size: 22px;
|
|
185
|
+
}
|
|
186
|
+
.dt-toast--lg:not(.dt-toast--raised) .dt-toast__title {
|
|
187
|
+
font-size: var(--dt-font-size-md);
|
|
188
|
+
}
|
|
189
|
+
.dt-toast--lg:not(.dt-toast--raised) .dt-toast__text {
|
|
190
|
+
font-size: var(--dt-font-size-sm);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.dt-toast--outlined {
|
|
194
|
+
border-color: var(--dt-toast-tone);
|
|
195
|
+
color: var(--dt-color-text);
|
|
196
|
+
background: var(--dt-color-surface);
|
|
197
|
+
}
|
|
198
|
+
.dt-toast--outlined .dt-toast__text {
|
|
199
|
+
color: var(--dt-color-text-muted);
|
|
200
|
+
}
|
|
201
|
+
.dt-toast--outlined .dt-toast__action {
|
|
202
|
+
color: var(--dt-color-primary);
|
|
203
|
+
}
|
|
204
|
+
.dt-toast--outlined .dt-toast__close {
|
|
205
|
+
color: var(--dt-color-text-subtle);
|
|
206
|
+
}
|
|
207
|
+
.dt-toast--outlined .dt-toast__icon {
|
|
208
|
+
color: var(--dt-toast-tone);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.dt-toast--solid {
|
|
212
|
+
--dt-focus-ring-color: var(--dt-toast-on);
|
|
213
|
+
border-color: var(--dt-toast-tone);
|
|
214
|
+
color: var(--dt-toast-on);
|
|
215
|
+
background: var(--dt-toast-tone);
|
|
216
|
+
}
|
|
217
|
+
.dt-toast--solid .dt-toast__icon,
|
|
218
|
+
.dt-toast--solid .dt-toast__text,
|
|
219
|
+
.dt-toast--solid .dt-toast__action,
|
|
220
|
+
.dt-toast--solid .dt-toast__close {
|
|
221
|
+
color: var(--dt-toast-on);
|
|
222
|
+
}
|
|
223
|
+
.dt-toast--solid .dt-toast__action {
|
|
224
|
+
text-decoration: underline;
|
|
225
|
+
}
|
|
226
|
+
.dt-toast--solid .dt-toast__action:hover,
|
|
227
|
+
.dt-toast--solid .dt-toast__close:hover {
|
|
228
|
+
color: var(--dt-toast-on);
|
|
229
|
+
background: color-mix(in srgb, var(--dt-toast-on) 16%, transparent);
|
|
230
|
+
}
|
|
231
|
+
.dt-toast--solid .dt-toast__action:focus-visible,
|
|
232
|
+
.dt-toast--solid .dt-toast__close:focus-visible {
|
|
233
|
+
box-shadow: 0 0 0 2px var(--dt-toast-on);
|
|
234
|
+
}
|
|
235
|
+
.dt-toast--solid .dt-toast__progress {
|
|
236
|
+
background: var(--dt-toast-on);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.dt-toast--raised {
|
|
240
|
+
--dt-toast-from: #47965c;
|
|
241
|
+
--dt-toast-to: #5aaf74;
|
|
242
|
+
--dt-toast-orb: rgba(255, 255, 255, 0.13);
|
|
243
|
+
--dt-focus-ring-color: #ffffff;
|
|
244
|
+
--dt-toast-raised-pad: 12px 14px 12px 12px;
|
|
245
|
+
--dt-toast-raised-gap: 14px;
|
|
246
|
+
--dt-toast-raised-radius: 12px;
|
|
247
|
+
--dt-toast-raised-tile: 36px;
|
|
248
|
+
--dt-toast-raised-tile-radius: 10px;
|
|
249
|
+
--dt-toast-raised-mark: 18px;
|
|
250
|
+
--dt-toast-raised-title: 14px;
|
|
251
|
+
--dt-toast-raised-text: 13px;
|
|
252
|
+
--dt-toast-raised-close: 28px;
|
|
253
|
+
--dt-toast-raised-orb-small: 21px;
|
|
254
|
+
--dt-toast-raised-orb-large: 72px;
|
|
255
|
+
isolation: isolate;
|
|
256
|
+
align-items: center;
|
|
257
|
+
gap: var(--dt-toast-raised-gap);
|
|
258
|
+
padding: var(--dt-toast-raised-pad);
|
|
259
|
+
border: 0;
|
|
260
|
+
border-radius: var(--dt-toast-raised-radius);
|
|
261
|
+
color: #ffffff;
|
|
262
|
+
background: linear-gradient(90deg, var(--dt-toast-from), var(--dt-toast-to));
|
|
263
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.1), 0 6px 14px -4px rgba(0, 0, 0, 0.28), 0 2px 4px rgba(0, 0, 0, 0.12);
|
|
264
|
+
}
|
|
265
|
+
.dt-toast--raised .dt-toast__content {
|
|
266
|
+
position: relative;
|
|
267
|
+
}
|
|
268
|
+
.dt-toast--raised .dt-toast__title {
|
|
269
|
+
font-size: var(--dt-toast-raised-title);
|
|
270
|
+
font-weight: 700;
|
|
271
|
+
line-height: 1.3;
|
|
272
|
+
}
|
|
273
|
+
.dt-toast--raised .dt-toast__text {
|
|
274
|
+
margin-top: 2px;
|
|
275
|
+
color: #ffffff;
|
|
276
|
+
font-size: var(--dt-toast-raised-text);
|
|
277
|
+
line-height: 1.35;
|
|
278
|
+
}
|
|
279
|
+
.dt-toast--raised .dt-toast__icon {
|
|
280
|
+
margin: 0;
|
|
281
|
+
color: #ffffff;
|
|
282
|
+
font-size: var(--dt-toast-raised-mark);
|
|
283
|
+
}
|
|
284
|
+
.dt-toast--raised .dt-toast__spinner {
|
|
285
|
+
width: var(--dt-toast-raised-mark);
|
|
286
|
+
height: var(--dt-toast-raised-mark);
|
|
287
|
+
margin: calc((var(--dt-toast-raised-tile) - var(--dt-toast-raised-mark)) / 2);
|
|
288
|
+
}
|
|
289
|
+
.dt-toast--raised .dt-toast__action {
|
|
290
|
+
position: relative;
|
|
291
|
+
color: #ffffff;
|
|
292
|
+
text-decoration: underline;
|
|
293
|
+
}
|
|
294
|
+
.dt-toast--raised .dt-toast__action:hover {
|
|
295
|
+
background: rgba(255, 255, 255, 0.16);
|
|
296
|
+
}
|
|
297
|
+
.dt-toast--raised .dt-toast__close {
|
|
298
|
+
position: relative;
|
|
299
|
+
width: var(--dt-toast-raised-close);
|
|
300
|
+
height: var(--dt-toast-raised-close);
|
|
301
|
+
margin: 0;
|
|
302
|
+
border-radius: 50%;
|
|
303
|
+
color: #ffffff;
|
|
304
|
+
background: rgba(255, 255, 255, 0.18);
|
|
305
|
+
--dt-icon-stroke: 2.75;
|
|
306
|
+
}
|
|
307
|
+
.dt-toast--raised .dt-toast__close:hover {
|
|
308
|
+
color: #ffffff;
|
|
309
|
+
background: rgba(255, 255, 255, 0.3);
|
|
310
|
+
}
|
|
311
|
+
.dt-toast--raised .dt-toast__action:focus-visible,
|
|
312
|
+
.dt-toast--raised .dt-toast__close:focus-visible {
|
|
313
|
+
box-shadow: 0 0 0 2px #ffffff;
|
|
314
|
+
}
|
|
315
|
+
.dt-toast--raised .dt-toast__progress {
|
|
316
|
+
background: #ffffff;
|
|
317
|
+
opacity: 0.55;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.dt-toast--raised.dt-toast--info {
|
|
321
|
+
--dt-toast-from: #3457cd;
|
|
322
|
+
--dt-toast-to: #4976e8;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.dt-toast--raised.dt-toast--warning {
|
|
326
|
+
--dt-toast-from: #b27027;
|
|
327
|
+
--dt-toast-to: #d69838;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.dt-toast--raised.dt-toast--sm {
|
|
331
|
+
--dt-toast-raised-pad: 8px 10px 8px 8px;
|
|
332
|
+
--dt-toast-raised-gap: 10px;
|
|
333
|
+
--dt-toast-raised-radius: 10px;
|
|
334
|
+
--dt-toast-raised-tile: 28px;
|
|
335
|
+
--dt-toast-raised-tile-radius: 8px;
|
|
336
|
+
--dt-toast-raised-mark: 14px;
|
|
337
|
+
--dt-toast-raised-title: 13px;
|
|
338
|
+
--dt-toast-raised-text: 12px;
|
|
339
|
+
--dt-toast-raised-close: 24px;
|
|
340
|
+
--dt-toast-raised-orb-small: 16px;
|
|
341
|
+
--dt-toast-raised-orb-large: 54px;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.dt-toast--raised.dt-toast--lg {
|
|
345
|
+
--dt-toast-raised-pad: 16px 18px 16px 16px;
|
|
346
|
+
--dt-toast-raised-gap: 18px;
|
|
347
|
+
--dt-toast-raised-radius: 14px;
|
|
348
|
+
--dt-toast-raised-tile: 46px;
|
|
349
|
+
--dt-toast-raised-tile-radius: 12px;
|
|
350
|
+
--dt-toast-raised-mark: 22px;
|
|
351
|
+
--dt-toast-raised-title: 16px;
|
|
352
|
+
--dt-toast-raised-text: 15px;
|
|
353
|
+
--dt-toast-raised-close: 32px;
|
|
354
|
+
--dt-toast-raised-orb-small: 27px;
|
|
355
|
+
--dt-toast-raised-orb-large: 92px;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.dt-toast--raised.dt-toast--danger {
|
|
359
|
+
--dt-toast-from: #c93a4d;
|
|
360
|
+
--dt-toast-to: #e5586b;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.dt-toast__tile {
|
|
364
|
+
position: relative;
|
|
365
|
+
display: grid;
|
|
366
|
+
flex: none;
|
|
367
|
+
place-items: center;
|
|
368
|
+
width: var(--dt-toast-raised-tile, 46px);
|
|
369
|
+
height: var(--dt-toast-raised-tile, 46px);
|
|
370
|
+
border-radius: var(--dt-toast-raised-tile-radius, 12px);
|
|
371
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.18));
|
|
372
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 8px rgba(0, 0, 0, 0.18);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.dt-toast__glyph {
|
|
376
|
+
width: var(--dt-toast-raised-mark, 22px);
|
|
377
|
+
height: var(--dt-toast-raised-mark, 22px);
|
|
378
|
+
fill: none;
|
|
379
|
+
stroke: currentColor;
|
|
380
|
+
stroke-width: 3;
|
|
381
|
+
stroke-linecap: round;
|
|
382
|
+
stroke-linejoin: round;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.dt-toast__orbs {
|
|
386
|
+
position: absolute;
|
|
387
|
+
z-index: -1;
|
|
388
|
+
inset: 0;
|
|
389
|
+
pointer-events: none;
|
|
390
|
+
background: radial-gradient(circle at calc(100% - 4 * var(--dt-toast-raised-orb-small)) 2px, var(--dt-toast-orb) 0 var(--dt-toast-raised-orb-small), transparent calc(var(--dt-toast-raised-orb-small) + 0.5px)), radial-gradient(circle at calc(100% + 10px) calc(100% + 16px), var(--dt-toast-orb) 0 var(--dt-toast-raised-orb-large), transparent calc(var(--dt-toast-raised-orb-large) + 0.5px));
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
@media (forced-colors: active) {
|
|
394
|
+
.dt-toast--raised {
|
|
395
|
+
border: 1px solid CanvasText;
|
|
396
|
+
}
|
|
397
|
+
.dt-toast__tile {
|
|
398
|
+
border: 1px solid CanvasText;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
@keyframes dt-toast-in {
|
|
402
|
+
from {
|
|
403
|
+
opacity: 0;
|
|
404
|
+
transform: translate(var(--dt-toast-enter-x), var(--dt-toast-enter-y));
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
@keyframes dt-toast-out {
|
|
408
|
+
to {
|
|
409
|
+
opacity: 0;
|
|
410
|
+
transform: translate(var(--dt-toast-enter-x), var(--dt-toast-enter-y));
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
.dt-toast__progress {
|
|
414
|
+
position: absolute;
|
|
415
|
+
right: 0;
|
|
416
|
+
bottom: 0;
|
|
417
|
+
left: 0;
|
|
418
|
+
height: 3px;
|
|
419
|
+
background: var(--dt-toast-tone);
|
|
420
|
+
opacity: 0.7;
|
|
421
|
+
pointer-events: none;
|
|
422
|
+
transform-origin: left center;
|
|
423
|
+
animation: dt-toast-progress linear forwards;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
[dir=rtl] .dt-toast__progress {
|
|
427
|
+
transform-origin: right center;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.dt-toast__progress.is-paused {
|
|
431
|
+
animation-play-state: paused;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
@keyframes dt-toast-progress {
|
|
435
|
+
to {
|
|
436
|
+
transform: scaleX(0);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
.dt-toast__spinner {
|
|
440
|
+
box-sizing: border-box;
|
|
441
|
+
width: 18px;
|
|
442
|
+
height: 18px;
|
|
443
|
+
border: 2px solid color-mix(in srgb, currentcolor 25%, transparent);
|
|
444
|
+
border-top-color: currentcolor;
|
|
445
|
+
border-radius: 50%;
|
|
446
|
+
animation: dt-toast-spin 0.8s linear infinite;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
@keyframes dt-toast-spin {
|
|
450
|
+
to {
|
|
451
|
+
transform: rotate(360deg);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
.dt-toast.is-updated:not(.is-leaving) {
|
|
455
|
+
animation: none;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.dt-toast__icon {
|
|
459
|
+
flex: none;
|
|
460
|
+
margin-top: 1px;
|
|
461
|
+
color: inherit;
|
|
462
|
+
font-size: 18px;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.dt-toast__content {
|
|
466
|
+
flex: 1 1 12rem;
|
|
467
|
+
min-width: 0;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.dt-toast__title {
|
|
471
|
+
font-size: var(--dt-font-size-sm);
|
|
472
|
+
font-weight: var(--dt-font-weight-medium);
|
|
473
|
+
line-height: 20px;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.dt-toast__text {
|
|
477
|
+
margin: 0;
|
|
478
|
+
line-height: 18px;
|
|
479
|
+
color: inherit;
|
|
480
|
+
font-size: var(--dt-font-size-xs);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.dt-toast__action {
|
|
484
|
+
flex: none;
|
|
485
|
+
margin-inline-start: auto;
|
|
486
|
+
align-self: center;
|
|
487
|
+
height: 28px;
|
|
488
|
+
padding: 0 var(--dt-space-2);
|
|
489
|
+
border: 0;
|
|
490
|
+
border-radius: var(--dt-radius-sm);
|
|
491
|
+
color: inherit;
|
|
492
|
+
background: transparent;
|
|
493
|
+
font-family: inherit;
|
|
494
|
+
text-decoration: underline;
|
|
495
|
+
text-underline-offset: 2px;
|
|
496
|
+
font-size: var(--dt-font-size-sm);
|
|
497
|
+
font-weight: var(--dt-font-weight-semibold);
|
|
498
|
+
line-height: 1;
|
|
499
|
+
white-space: nowrap;
|
|
500
|
+
cursor: pointer;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.dt-toast__action:hover,
|
|
504
|
+
.dt-toast__close:hover {
|
|
505
|
+
color: inherit;
|
|
506
|
+
background: color-mix(in srgb, var(--dt-toast-tone) 12%, transparent);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.dt-toast__action:focus-visible {
|
|
510
|
+
outline: none;
|
|
511
|
+
box-shadow: 0 0 0 2px var(--dt-color-primary);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.dt-toast__close {
|
|
515
|
+
display: grid;
|
|
516
|
+
flex: none;
|
|
517
|
+
place-items: center;
|
|
518
|
+
width: 24px;
|
|
519
|
+
height: 24px;
|
|
520
|
+
margin: -2px 0 0;
|
|
521
|
+
padding: 0;
|
|
522
|
+
border: 0;
|
|
523
|
+
border-radius: var(--dt-radius-sm);
|
|
524
|
+
color: inherit;
|
|
525
|
+
background: transparent;
|
|
526
|
+
cursor: pointer;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.dt-toast__close:focus-visible {
|
|
530
|
+
outline: none;
|
|
531
|
+
box-shadow: 0 0 0 2px var(--dt-color-primary);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
@media (prefers-reduced-motion: reduce) {
|
|
535
|
+
.dt-toast,
|
|
536
|
+
.dt-toast.is-leaving {
|
|
537
|
+
animation: none;
|
|
538
|
+
}
|
|
539
|
+
.dt-toast__spinner {
|
|
540
|
+
animation-duration: 2.4s;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
.dt-link {
|
|
2
|
+
color: var(--dt-color-primary);
|
|
3
|
+
font-family: inherit;
|
|
4
|
+
font-size: inherit;
|
|
5
|
+
font-weight: inherit;
|
|
6
|
+
text-decoration-line: underline;
|
|
7
|
+
text-decoration-thickness: var(--dt-border-width);
|
|
8
|
+
text-underline-offset: 0.18em;
|
|
9
|
+
transition: color var(--dt-duration-fast) var(--dt-ease-standard), text-decoration-thickness var(--dt-duration-fast) var(--dt-ease-standard);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dt-link:hover {
|
|
13
|
+
text-decoration-thickness: 2px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dt-link:visited {
|
|
17
|
+
color: var(--dt-color-primary);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dt-link--muted {
|
|
21
|
+
color: var(--dt-color-text-muted);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dt-link--muted:visited {
|
|
25
|
+
color: var(--dt-color-text-muted);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dt-link--plain {
|
|
29
|
+
text-decoration-line: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.dt-link--plain:hover {
|
|
33
|
+
text-decoration-line: underline;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dt-tooltip {
|
|
37
|
+
--dt-tooltip-bg: color-mix(in srgb, var(--dt-color-foreground) 94%, var(--dt-color-surface));
|
|
38
|
+
--dt-tooltip-color: var(--dt-color-surface);
|
|
39
|
+
position: relative;
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.dt-tooltip__bubble {
|
|
44
|
+
--dt-tooltip-shift: 0px;
|
|
45
|
+
position: absolute;
|
|
46
|
+
z-index: var(--dt-z-index-tooltip);
|
|
47
|
+
width: max-content;
|
|
48
|
+
max-width: min(240px, 100vw - 16px);
|
|
49
|
+
padding: 7px 10px;
|
|
50
|
+
border-radius: var(--dt-radius-sm);
|
|
51
|
+
color: var(--dt-tooltip-color);
|
|
52
|
+
background: var(--dt-tooltip-bg);
|
|
53
|
+
box-shadow: var(--dt-shadow-sm);
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
line-height: 1.4;
|
|
56
|
+
text-align: center;
|
|
57
|
+
visibility: hidden;
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transition: opacity var(--dt-duration-fast), transform var(--dt-duration-fast), visibility var(--dt-duration-fast);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.dt-tooltip__bubble::before {
|
|
63
|
+
content: "";
|
|
64
|
+
position: absolute;
|
|
65
|
+
z-index: -1;
|
|
66
|
+
inset: -12px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.dt-tooltip__bubble::after {
|
|
70
|
+
content: "";
|
|
71
|
+
position: absolute;
|
|
72
|
+
width: 8px;
|
|
73
|
+
height: 8px;
|
|
74
|
+
background: var(--dt-tooltip-bg);
|
|
75
|
+
transform: rotate(45deg);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dt-tooltip__bubble.is-open {
|
|
79
|
+
visibility: visible;
|
|
80
|
+
opacity: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.dt-tooltip__bubble:not(.is-open) {
|
|
84
|
+
max-width: 0;
|
|
85
|
+
max-height: 0;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
padding: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dt-tooltip__bubble--top {
|
|
91
|
+
bottom: calc(100% + 10px);
|
|
92
|
+
left: 50%;
|
|
93
|
+
transform: translate(-50%, 4px);
|
|
94
|
+
}
|
|
95
|
+
.dt-tooltip__bubble--top::after {
|
|
96
|
+
top: calc(100% - 4px);
|
|
97
|
+
left: calc(50% - 4px);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dt-tooltip__bubble--bottom {
|
|
101
|
+
top: calc(100% + 10px);
|
|
102
|
+
left: 50%;
|
|
103
|
+
transform: translate(-50%, -4px);
|
|
104
|
+
}
|
|
105
|
+
.dt-tooltip__bubble--bottom::after {
|
|
106
|
+
bottom: calc(100% - 4px);
|
|
107
|
+
left: calc(50% - 4px);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.dt-tooltip__bubble--left {
|
|
111
|
+
top: 50%;
|
|
112
|
+
right: calc(100% + 10px);
|
|
113
|
+
transform: translate(4px, -50%);
|
|
114
|
+
}
|
|
115
|
+
.dt-tooltip__bubble--left::after {
|
|
116
|
+
top: calc(50% - 4px);
|
|
117
|
+
left: calc(100% - 4px);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.dt-tooltip__bubble--right {
|
|
121
|
+
top: 50%;
|
|
122
|
+
left: calc(100% + 10px);
|
|
123
|
+
transform: translate(-4px, -50%);
|
|
124
|
+
}
|
|
125
|
+
.dt-tooltip__bubble--right::after {
|
|
126
|
+
top: calc(50% - 4px);
|
|
127
|
+
right: calc(100% - 4px);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.dt-tooltip__bubble--top.is-open,
|
|
131
|
+
.dt-tooltip__bubble--bottom.is-open {
|
|
132
|
+
transform: translate(calc(-50% + var(--dt-tooltip-shift)), 0);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.dt-tooltip__bubble--left.is-open,
|
|
136
|
+
.dt-tooltip__bubble--right.is-open {
|
|
137
|
+
transform: translate(var(--dt-tooltip-shift), -50%);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.dt-tooltip__bubble--top.is-open[style*=fixed] {
|
|
141
|
+
transform: translate(calc(-50% + var(--dt-tooltip-shift)), -100%);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.dt-tooltip__bubble--bottom.is-open[style*=fixed] {
|
|
145
|
+
transform: translate(calc(-50% + var(--dt-tooltip-shift)), 0);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.dt-tooltip__bubble--left.is-open[style*=fixed] {
|
|
149
|
+
transform: translate(-100%, -50%);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.dt-tooltip__bubble--right.is-open[style*=fixed] {
|
|
153
|
+
transform: translate(0, -50%);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.dt-tooltip__bubble--top.is-open::after,
|
|
157
|
+
.dt-tooltip__bubble--bottom.is-open::after {
|
|
158
|
+
margin-left: calc(-1 * var(--dt-tooltip-shift));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@media (prefers-reduced-motion: reduce) {
|
|
162
|
+
.dt-tooltip__bubble {
|
|
163
|
+
transition: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
.dt-tooltip__bubble--interactive {
|
|
167
|
+
text-align: start;
|
|
168
|
+
}
|
|
169
|
+
.dt-tooltip__bubble--interactive a[href],
|
|
170
|
+
.dt-tooltip__bubble--interactive a[href]:visited {
|
|
171
|
+
color: inherit;
|
|
172
|
+
text-decoration: underline;
|
|
173
|
+
text-underline-offset: 2px;
|
|
174
|
+
}
|
|
175
|
+
.dt-tooltip__bubble--interactive :focus-visible {
|
|
176
|
+
border-radius: 2px;
|
|
177
|
+
outline: 2px solid var(--dt-tooltip-color);
|
|
178
|
+
outline-offset: 2px;
|
|
179
|
+
}
|