tandd-ui 0.2.3 → 0.2.6
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 +37 -0
- package/dist/components/date-picker/DTDateInput.vue.d.ts +7 -3
- package/dist/components/date-picker/isoDate.d.ts +34 -0
- package/dist/components/date-time-picker/DTDateTimeInput.vue.d.ts +7 -3
- package/dist/components/date-time-picker/isoDateTime.d.ts +15 -7
- package/dist/components/navigation-drawer/DTNavigationDrawer.vue.d.ts +6 -0
- package/dist/components/toast/toastStore.d.ts +10 -2
- package/dist/index.d.ts +1 -1
- package/dist/tandd-ui.css +294 -5
- package/dist/tandd-ui.js +6556 -6308
- package/package.json +1 -1
- package/src/components/navigation-drawer/DTNavigationDrawer.scss +89 -1
- package/src/components/select/DTSelect.scss +8 -4
- package/src/components/toast/DTToast.scss +219 -0
- package/src/components/tree-select/DTTreeSelect.scss +23 -0
- package/src/styles/foundation/_focus.scss +12 -0
- package/src/styles/foundation/_forced-colors.scss +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.6 (2026-11-27)
|
|
4
|
+
|
|
5
|
+
Also the first npm release of the 0.2.5 changes below (0.2.5 was tagged but not published).
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **DTToast `variant: "raised"`:** a 3D tone card with a lit gradient, the tone mark in a raised tile, soft circles, and a round dismiss button, in fixed design colours in light and dark themes. White text on the lighter side of the success and warning cards is below the 4.5:1 AA contrast ratio (down to about 2.6:1); use another variant where that matters.
|
|
10
|
+
- **DTToast `size`:** `sm`, `md` (default), or `lg`, on every variant. It scales padding, text, the icon, and the dismiss button; a `promise()` loading toast passes it to its result. `DTToastSize` is exported.
|
|
11
|
+
- **DTNavigationDrawer `glide`** (default `true`): one shared hover fill slides from row to row under the pointer, and the current row's fill slides to the new current row after a click or route change. Both are off under reduced motion and hidden in forced colors; `false` tints rows in place.
|
|
12
|
+
- **DTNavigationDrawer `railZoom`** (default `true`): in a rail without `expand-on-hover`, the hovered row's icon grows smoothly to 1.4×. Neighbours and the list's padding never zoom; mouse and pen only, off under reduced motion.
|
|
13
|
+
- **DTDateInput `format` and DTDateTimeInput `dateFormat`:** also take a token pattern (`YYYY YY MM M DD D`, `[literal]`) that sets the display, the order typed dates are read in, and the placeholder, whatever the locale. The model value stays ISO.
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- **DTNavigationDrawer:** the hover and current-row fills keep their place and size when an ancestor is zoomed or scaled.
|
|
18
|
+
|
|
19
|
+
### Docs
|
|
20
|
+
|
|
21
|
+
- **Sign in example:** five login designs (clean and minimal, dark modern, with illustration, split screen, glass).
|
|
22
|
+
|
|
23
|
+
## 0.2.5 (2026-11-17)
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- **DTSelect and DTTreeSelect error focus:** a field in the error state showed no change on focus, since its border is already red. Focus now thickens the red border inside the field (no outer ring), as DTInput does.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- **DTTreeSelect tree items:** a focused item in the panel shows a fill instead of the outline ring, like a DTSelect option. A selected item deepens its tint. Forced colors keep a `Highlight` outline.
|
|
32
|
+
|
|
33
|
+
## 0.2.4 (2026-11-17)
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- **Field focus:** plain `input`, `select`, and `textarea` elements focus like DTInput: the border turns primary and there is no outline ring. Checkbox, radio, range, colour, file, and button inputs keep the ring. Under forced colors the border uses `Highlight`.
|
|
38
|
+
- **DTSelect focus:** the trigger no longer shows a 3px focus halo; focus recolours the border only, like DTInput. Forced colors still draw a `Highlight` outline.
|
|
39
|
+
|
|
3
40
|
## 0.2.3 (2026-11-14)
|
|
4
41
|
|
|
5
42
|
### Fixed
|
|
@@ -14,8 +14,12 @@ interface DTDateInputProps extends Omit<DTTextFieldBaseProps, "modelValue" | "pr
|
|
|
14
14
|
locale?: string;
|
|
15
15
|
showAdjacentMonths?: boolean;
|
|
16
16
|
showWeekNumbers?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* How the date is shown in the field: Intl.DateTimeFormat options (display only; typing and the
|
|
19
|
+
* placeholder follow the locale), or a token pattern such as "DD/MM/YYYY" (D38) that drives the
|
|
20
|
+
* display, typing, and placeholder. Default: numeric day, month, year in the locale's order.
|
|
21
|
+
*/
|
|
22
|
+
format?: Intl.DateTimeFormatOptions | string;
|
|
19
23
|
clearable?: boolean;
|
|
20
24
|
/** Accessible name of the clear button (D32). */
|
|
21
25
|
clearLabel?: string;
|
|
@@ -80,7 +84,7 @@ declare const __VLS_base: import('vue').DefineComponent<DTDateInputProps, {}, {}
|
|
|
80
84
|
prependInnerIcon: string;
|
|
81
85
|
range: boolean;
|
|
82
86
|
min: IsoDate;
|
|
83
|
-
format: Intl.DateTimeFormatOptions;
|
|
87
|
+
format: Intl.DateTimeFormatOptions | string;
|
|
84
88
|
multiple: boolean;
|
|
85
89
|
allowedDates: (date: IsoDate) => boolean;
|
|
86
90
|
firstDayOfWeek: number | string;
|
|
@@ -36,3 +36,37 @@ export declare const formatIso: (iso: IsoDate, locale: string | undefined, optio
|
|
|
36
36
|
export declare const parseTyped: (text: string, locale: string | undefined) => IsoDate | null;
|
|
37
37
|
/** The order of day, month, and year in the locale's numeric date format. */
|
|
38
38
|
export declare const localeDateOrder: (locale: string | undefined) => ("day" | "month" | "year")[];
|
|
39
|
+
type PatternField = "year" | "month" | "day";
|
|
40
|
+
type PatternToken = {
|
|
41
|
+
field: PatternField;
|
|
42
|
+
width: 1 | 2 | 4;
|
|
43
|
+
text: string;
|
|
44
|
+
};
|
|
45
|
+
export type DatePatternPart = PatternToken | {
|
|
46
|
+
field: "literal";
|
|
47
|
+
text: string;
|
|
48
|
+
};
|
|
49
|
+
export interface DatePattern {
|
|
50
|
+
parts: DatePatternPart[];
|
|
51
|
+
/** The pattern as a hint: tokens as written, literals without their brackets. */
|
|
52
|
+
placeholder: string;
|
|
53
|
+
/** Every token has a fixed width (DD, MM, YY, YYYY), so digits without separators can be read. */
|
|
54
|
+
fixedWidth: boolean;
|
|
55
|
+
}
|
|
56
|
+
/** Compiles a pattern. Null when it is not one: a token of another length, or not exactly one day, month, and year. */
|
|
57
|
+
export declare const compileDatePattern: (pattern: string) => DatePattern | null;
|
|
58
|
+
/**
|
|
59
|
+
* The compiled pattern of a `format`-style prop. Null for Intl options, no value, or an invalid
|
|
60
|
+
* pattern; an invalid pattern warns once in development and the input keeps its default format.
|
|
61
|
+
*/
|
|
62
|
+
export declare const resolveDatePattern: (value: unknown, component: string, prop: string) => DatePattern | null;
|
|
63
|
+
/** Formats an ISO date by a pattern, in Latin digits whatever the locale. */
|
|
64
|
+
export declare const formatDatePattern: (iso: IsoDate, pattern: DatePattern) => string;
|
|
65
|
+
/**
|
|
66
|
+
* Reads typed text by a pattern: ISO "YYYY-MM-DD"; or the digit groups in the pattern's order,
|
|
67
|
+
* separated by the pattern's literals, "/", ".", "-", or spaces ("6/3/2026" and "06-03-2026" for
|
|
68
|
+
* DD/MM/YYYY); or, when every token is fixed width, the digits alone ("06032026"). A year of one
|
|
69
|
+
* or two digits means 2000–2099. Returns null for anything else or an impossible date.
|
|
70
|
+
*/
|
|
71
|
+
export declare const parseDatePattern: (text: string, pattern: DatePattern) => IsoDate | null;
|
|
72
|
+
export {};
|
|
@@ -18,8 +18,12 @@ interface DTDateTimeInputProps extends Omit<DTTextFieldBaseProps, "modelValue" |
|
|
|
18
18
|
showWeekNumbers?: boolean;
|
|
19
19
|
defaultTime?: string;
|
|
20
20
|
shortcuts?: readonly DTDateShortcut[];
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* How the date part is shown in the field: Intl.DateTimeFormat date options (display only), or a
|
|
23
|
+
* token pattern such as "DD-MM-YYYY" (D38) that drives the date part's display, typing, and
|
|
24
|
+
* placeholder. Default: numeric day, month, year in the locale's order.
|
|
25
|
+
*/
|
|
26
|
+
dateFormat?: Intl.DateTimeFormatOptions | string;
|
|
23
27
|
clearable?: boolean;
|
|
24
28
|
/** Icon inside the field before the text; "" for none. */
|
|
25
29
|
prependInnerIcon?: string;
|
|
@@ -95,7 +99,7 @@ declare const __VLS_base: import('vue').DefineComponent<DTDateTimeInputProps, {}
|
|
|
95
99
|
shortcuts: readonly DTDateShortcut[];
|
|
96
100
|
seconds: boolean;
|
|
97
101
|
defaultTime: string;
|
|
98
|
-
dateFormat: Intl.DateTimeFormatOptions;
|
|
102
|
+
dateFormat: Intl.DateTimeFormatOptions | string;
|
|
99
103
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
100
104
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
101
105
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsoDate } from '../date-picker/isoDate';
|
|
1
|
+
import { DatePattern, IsoDate } from '../date-picker/isoDate';
|
|
2
2
|
import { IsoTime } from '../time-picker/isoTime';
|
|
3
3
|
export type IsoDateTime = string;
|
|
4
4
|
export interface DateTimeParts {
|
|
@@ -16,15 +16,23 @@ export declare const toDateTime: (date: IsoDate, time: IsoTime, withSeconds?: bo
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const parseBound: (value: unknown, end: boolean) => DateTimeParts | null;
|
|
18
18
|
export declare const compareDateTime: (a: DateTimeParts, b: DateTimeParts) => number;
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Formats a date-time in a locale, in UTC so the wall-clock time never shifts. With a date pattern
|
|
21
|
+
* (D38) the date part follows the pattern and the time part the locale, joined by a space in the
|
|
22
|
+
* locale's date/time order ("06-11-2026 14:30").
|
|
23
|
+
*/
|
|
24
|
+
export declare const formatDateTime: (parts: DateTimeParts, locale: string | undefined, hour12: boolean, withSeconds: boolean, date?: Intl.DateTimeFormatOptions | DatePattern) => string;
|
|
21
25
|
/** True when the locale writes the time before the date in a numeric date-time ("14:30 06/11/2026"). */
|
|
22
26
|
export declare const localeTimeFirst: (locale: string | undefined) => boolean;
|
|
23
27
|
/**
|
|
24
28
|
* Reads a typed date-time: ISO ("2026-11-06T14:30", or with a space), or a date in the locale's
|
|
25
29
|
* order and a time in any form DTTimeInput reads, in either order, separated by spaces or a comma
|
|
26
|
-
* ("06/11/2026 14:30", "11/6/2026, 2:30 pm").
|
|
30
|
+
* ("06/11/2026 14:30", "11/6/2026, 2:30 pm"). With a date pattern (D38) the date part is read by
|
|
31
|
+
* the pattern instead of the locale's order. Returns null for anything else.
|
|
32
|
+
*/
|
|
33
|
+
export declare const parseTypedDateTime: (text: string, locale: string | undefined, pattern?: DatePattern | null) => DateTimeParts | null;
|
|
34
|
+
/**
|
|
35
|
+
* A placeholder in the locale's order, e.g. "MM/DD/YYYY hh:mm AM" or "DD.MM.YYYY hh:mm". With a
|
|
36
|
+
* date pattern (D38) the date part is the pattern ("DD-MM-YYYY hh:mm").
|
|
27
37
|
*/
|
|
28
|
-
export declare const
|
|
29
|
-
/** A placeholder in the locale's order, e.g. "MM/DD/YYYY hh:mm AM" or "DD.MM.YYYY hh:mm". */
|
|
30
|
-
export declare const dateTimePattern: (locale: string | undefined, hour12: boolean, withSeconds: boolean) => string;
|
|
38
|
+
export declare const dateTimePattern: (locale: string | undefined, hour12: boolean, withSeconds: boolean, pattern?: DatePattern | null) => string;
|
|
@@ -23,6 +23,10 @@ type __VLS_Props = {
|
|
|
23
23
|
* nudges, a gear turns). Any DTIcon `play` value; `false` turns it off.
|
|
24
24
|
*/
|
|
25
25
|
iconPlay?: DTIconPlay;
|
|
26
|
+
/** A rail without `expandOnHover` magnifies its icons around the pointer, dock style. */
|
|
27
|
+
railZoom?: boolean;
|
|
28
|
+
/** The hover fill and the current row's fill slide from row to row; `false` tints rows in place. */
|
|
29
|
+
glide?: boolean;
|
|
26
30
|
};
|
|
27
31
|
declare var __VLS_10: {
|
|
28
32
|
rail: boolean;
|
|
@@ -82,6 +86,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
82
86
|
expandOnHover: boolean;
|
|
83
87
|
breakpoint: number | "sm" | "md" | "lg";
|
|
84
88
|
iconPlay: DTIconPlay;
|
|
89
|
+
railZoom: boolean;
|
|
90
|
+
glide: boolean;
|
|
85
91
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
86
92
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
87
93
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
export type DTToastTone = "info" | "success" | "warning" | "danger";
|
|
2
|
-
/**
|
|
3
|
-
|
|
2
|
+
/**
|
|
3
|
+
* `tonal` is the reference look (raised surface, tone edge); `solid` fills with the tone; `outlined`
|
|
4
|
+
* draws a tone border; `raised` is a 3D tone card: a lit gradient, an icon tile, and soft circles.
|
|
5
|
+
*/
|
|
6
|
+
export type DTToastVariant = "tonal" | "solid" | "outlined" | "raised";
|
|
7
|
+
/** Scale of the toast: padding, text, the icon (and the raised tile), and the dismiss button. */
|
|
8
|
+
export type DTToastSize = "sm" | "md" | "lg";
|
|
4
9
|
/** A single button rendered inside the toast, e.g. "Undo". Clicking it runs `onClick`, then dismisses the toast. */
|
|
5
10
|
export interface DTToastAction {
|
|
6
11
|
label: string;
|
|
@@ -20,6 +25,8 @@ export interface DTToastOptions {
|
|
|
20
25
|
closable?: boolean;
|
|
21
26
|
action?: DTToastAction;
|
|
22
27
|
variant?: DTToastVariant;
|
|
28
|
+
/** `md` by default. For `raised`, `lg` is the design's full size. */
|
|
29
|
+
size?: DTToastSize;
|
|
23
30
|
/** Shows a thin bar with the time left before auto-dismiss; it pauses with the countdown. */
|
|
24
31
|
progress?: boolean;
|
|
25
32
|
}
|
|
@@ -63,6 +70,7 @@ export declare function useToast(): {
|
|
|
63
70
|
readonly paused: boolean;
|
|
64
71
|
readonly revision: number;
|
|
65
72
|
readonly variant: DTToastVariant;
|
|
73
|
+
readonly size: DTToastSize;
|
|
66
74
|
readonly progress: boolean;
|
|
67
75
|
readonly tone: DTToastTone;
|
|
68
76
|
readonly duration: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export { default as DTModal } from './components/modal/DTModal.vue';
|
|
|
68
68
|
export type { DTModalFullscreen, DTModalSize } from './components/modal/DTModal.vue';
|
|
69
69
|
export { default as DTToastRegion } from './components/toast/DTToastRegion.vue';
|
|
70
70
|
export { useToast } from './components/toast/toastStore';
|
|
71
|
-
export type { DTToastAction, DTToastItem, DTToastOptions, DTToastPromiseMessage, DTToastPromiseOptions, DTToastTone, DTToastVariant } from './components/toast/toastStore';
|
|
71
|
+
export type { DTToastAction, DTToastItem, DTToastOptions, DTToastPromiseMessage, DTToastPromiseOptions, DTToastSize, DTToastTone, DTToastVariant } from './components/toast/toastStore';
|
|
72
72
|
export type { DTToastLocation } from './components/toast/DTToastRegion.vue';
|
|
73
73
|
export { default as DTAlert } from './components/alert/DTAlert.vue';
|
|
74
74
|
export type { DTAlertBorder, DTAlertDensity, DTAlertTone, DTAlertVariant } from './components/alert/DTAlert.vue';
|
package/dist/tandd-ui.css
CHANGED
|
@@ -306,6 +306,13 @@ select {
|
|
|
306
306
|
outline-offset: var(--dt-focus-ring-offset);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
+
:where(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file], [type=button], [type=submit], [type=reset], [type=image]),
|
|
310
|
+
textarea,
|
|
311
|
+
select):focus {
|
|
312
|
+
outline: none;
|
|
313
|
+
border-color: var(--dt-color-primary);
|
|
314
|
+
}
|
|
315
|
+
|
|
309
316
|
@media (prefers-reduced-motion: reduce) {
|
|
310
317
|
*,
|
|
311
318
|
*::before,
|
|
@@ -352,6 +359,13 @@ select {
|
|
|
352
359
|
outline-color: Highlight;
|
|
353
360
|
}
|
|
354
361
|
}
|
|
362
|
+
@media (forced-colors: active) {
|
|
363
|
+
:where(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file], [type=button], [type=submit], [type=reset], [type=image]),
|
|
364
|
+
textarea,
|
|
365
|
+
select):focus {
|
|
366
|
+
border-color: Highlight;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
355
369
|
.dt-container {
|
|
356
370
|
width: 100%;
|
|
357
371
|
max-width: var(--dt-container-max-width, var(--dt-container-xl));
|
|
@@ -4861,10 +4875,6 @@ select {
|
|
|
4861
4875
|
border-color: var(--dt-color-primary);
|
|
4862
4876
|
}
|
|
4863
4877
|
|
|
4864
|
-
.dt-select__trigger:focus-visible {
|
|
4865
|
-
box-shadow: 0 0 0 3px color-mix(in srgb, var(--dt-color-focus) 23%, transparent);
|
|
4866
|
-
}
|
|
4867
|
-
|
|
4868
4878
|
.dt-select__trigger:disabled {
|
|
4869
4879
|
border-color: var(--dt-color-border);
|
|
4870
4880
|
color: var(--dt-color-text-disabled);
|
|
@@ -4890,6 +4900,11 @@ select {
|
|
|
4890
4900
|
border-color: var(--dt-color-danger);
|
|
4891
4901
|
}
|
|
4892
4902
|
|
|
4903
|
+
.dt-select.is-invalid:is(.dt-select--soft, .dt-select--filled) .dt-select__trigger:focus-visible,
|
|
4904
|
+
.dt-select.is-invalid:is(.dt-select--soft, .dt-select--filled).is-open .dt-select__trigger {
|
|
4905
|
+
box-shadow: inset 0 0 0 1px var(--dt-color-danger);
|
|
4906
|
+
}
|
|
4907
|
+
|
|
4893
4908
|
.dt-select__helper {
|
|
4894
4909
|
color: var(--dt-color-text-subtle);
|
|
4895
4910
|
font-size: 12px;
|
|
@@ -5562,6 +5577,34 @@ select {
|
|
|
5562
5577
|
--dt-toast-on: var(--dt-color-danger-on);
|
|
5563
5578
|
}
|
|
5564
5579
|
|
|
5580
|
+
.dt-toast--sm:not(.dt-toast--raised) {
|
|
5581
|
+
gap: var(--dt-space-2);
|
|
5582
|
+
padding: var(--dt-space-2) var(--dt-space-3);
|
|
5583
|
+
}
|
|
5584
|
+
.dt-toast--sm:not(.dt-toast--raised) .dt-toast__icon {
|
|
5585
|
+
font-size: 16px;
|
|
5586
|
+
}
|
|
5587
|
+
.dt-toast--sm:not(.dt-toast--raised) .dt-toast__title {
|
|
5588
|
+
font-size: var(--dt-font-size-xs);
|
|
5589
|
+
}
|
|
5590
|
+
.dt-toast--sm:not(.dt-toast--raised) .dt-toast__text {
|
|
5591
|
+
font-size: var(--dt-font-size-2xs);
|
|
5592
|
+
}
|
|
5593
|
+
|
|
5594
|
+
.dt-toast--lg:not(.dt-toast--raised) {
|
|
5595
|
+
gap: var(--dt-space-4);
|
|
5596
|
+
padding: var(--dt-space-4) var(--dt-space-5);
|
|
5597
|
+
}
|
|
5598
|
+
.dt-toast--lg:not(.dt-toast--raised) .dt-toast__icon {
|
|
5599
|
+
font-size: 22px;
|
|
5600
|
+
}
|
|
5601
|
+
.dt-toast--lg:not(.dt-toast--raised) .dt-toast__title {
|
|
5602
|
+
font-size: var(--dt-font-size-md);
|
|
5603
|
+
}
|
|
5604
|
+
.dt-toast--lg:not(.dt-toast--raised) .dt-toast__text {
|
|
5605
|
+
font-size: var(--dt-font-size-sm);
|
|
5606
|
+
}
|
|
5607
|
+
|
|
5565
5608
|
.dt-toast--outlined {
|
|
5566
5609
|
border-color: var(--dt-toast-tone);
|
|
5567
5610
|
border-left-width: 1px;
|
|
@@ -5596,6 +5639,168 @@ select {
|
|
|
5596
5639
|
background: var(--dt-toast-on);
|
|
5597
5640
|
}
|
|
5598
5641
|
|
|
5642
|
+
.dt-toast--raised {
|
|
5643
|
+
--dt-toast-from: #47965c;
|
|
5644
|
+
--dt-toast-to: #5aaf74;
|
|
5645
|
+
--dt-toast-orb: rgba(255, 255, 255, 0.13);
|
|
5646
|
+
--dt-focus-ring-color: #ffffff;
|
|
5647
|
+
--dt-toast-raised-pad: 12px 14px 12px 12px;
|
|
5648
|
+
--dt-toast-raised-gap: 14px;
|
|
5649
|
+
--dt-toast-raised-radius: 12px;
|
|
5650
|
+
--dt-toast-raised-tile: 36px;
|
|
5651
|
+
--dt-toast-raised-tile-radius: 10px;
|
|
5652
|
+
--dt-toast-raised-mark: 18px;
|
|
5653
|
+
--dt-toast-raised-title: 14px;
|
|
5654
|
+
--dt-toast-raised-text: 13px;
|
|
5655
|
+
--dt-toast-raised-close: 28px;
|
|
5656
|
+
--dt-toast-raised-orb-small: 21px;
|
|
5657
|
+
--dt-toast-raised-orb-large: 72px;
|
|
5658
|
+
isolation: isolate;
|
|
5659
|
+
align-items: center;
|
|
5660
|
+
gap: var(--dt-toast-raised-gap);
|
|
5661
|
+
padding: var(--dt-toast-raised-pad);
|
|
5662
|
+
border: 0;
|
|
5663
|
+
border-radius: var(--dt-toast-raised-radius);
|
|
5664
|
+
color: #ffffff;
|
|
5665
|
+
background: linear-gradient(90deg, var(--dt-toast-from), var(--dt-toast-to));
|
|
5666
|
+
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);
|
|
5667
|
+
}
|
|
5668
|
+
.dt-toast--raised .dt-toast__content {
|
|
5669
|
+
position: relative;
|
|
5670
|
+
}
|
|
5671
|
+
.dt-toast--raised .dt-toast__title {
|
|
5672
|
+
font-size: var(--dt-toast-raised-title);
|
|
5673
|
+
font-weight: 700;
|
|
5674
|
+
line-height: 1.3;
|
|
5675
|
+
}
|
|
5676
|
+
.dt-toast--raised .dt-toast__text {
|
|
5677
|
+
margin-top: 2px;
|
|
5678
|
+
color: #ffffff;
|
|
5679
|
+
font-size: var(--dt-toast-raised-text);
|
|
5680
|
+
line-height: 1.35;
|
|
5681
|
+
}
|
|
5682
|
+
.dt-toast--raised .dt-toast__icon {
|
|
5683
|
+
margin: 0;
|
|
5684
|
+
color: #ffffff;
|
|
5685
|
+
font-size: var(--dt-toast-raised-mark);
|
|
5686
|
+
}
|
|
5687
|
+
.dt-toast--raised .dt-toast__spinner {
|
|
5688
|
+
width: var(--dt-toast-raised-mark);
|
|
5689
|
+
height: var(--dt-toast-raised-mark);
|
|
5690
|
+
margin: calc((var(--dt-toast-raised-tile) - var(--dt-toast-raised-mark)) / 2);
|
|
5691
|
+
}
|
|
5692
|
+
.dt-toast--raised .dt-toast__action {
|
|
5693
|
+
position: relative;
|
|
5694
|
+
color: #ffffff;
|
|
5695
|
+
text-decoration: underline;
|
|
5696
|
+
}
|
|
5697
|
+
.dt-toast--raised .dt-toast__action:hover {
|
|
5698
|
+
background: rgba(255, 255, 255, 0.16);
|
|
5699
|
+
}
|
|
5700
|
+
.dt-toast--raised .dt-toast__close {
|
|
5701
|
+
position: relative;
|
|
5702
|
+
width: var(--dt-toast-raised-close);
|
|
5703
|
+
height: var(--dt-toast-raised-close);
|
|
5704
|
+
margin: 0;
|
|
5705
|
+
border-radius: 50%;
|
|
5706
|
+
color: #ffffff;
|
|
5707
|
+
background: rgba(255, 255, 255, 0.18);
|
|
5708
|
+
--dt-icon-stroke: 2.75;
|
|
5709
|
+
}
|
|
5710
|
+
.dt-toast--raised .dt-toast__close:hover {
|
|
5711
|
+
color: #ffffff;
|
|
5712
|
+
background: rgba(255, 255, 255, 0.3);
|
|
5713
|
+
}
|
|
5714
|
+
.dt-toast--raised .dt-toast__action:focus-visible,
|
|
5715
|
+
.dt-toast--raised .dt-toast__close:focus-visible {
|
|
5716
|
+
box-shadow: 0 0 0 2px #ffffff;
|
|
5717
|
+
}
|
|
5718
|
+
.dt-toast--raised .dt-toast__progress {
|
|
5719
|
+
background: #ffffff;
|
|
5720
|
+
opacity: 0.55;
|
|
5721
|
+
}
|
|
5722
|
+
|
|
5723
|
+
.dt-toast--raised.dt-toast--info {
|
|
5724
|
+
--dt-toast-from: #3457cd;
|
|
5725
|
+
--dt-toast-to: #4976e8;
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5728
|
+
.dt-toast--raised.dt-toast--warning {
|
|
5729
|
+
--dt-toast-from: #b27027;
|
|
5730
|
+
--dt-toast-to: #d69838;
|
|
5731
|
+
}
|
|
5732
|
+
|
|
5733
|
+
.dt-toast--raised.dt-toast--sm {
|
|
5734
|
+
--dt-toast-raised-pad: 8px 10px 8px 8px;
|
|
5735
|
+
--dt-toast-raised-gap: 10px;
|
|
5736
|
+
--dt-toast-raised-radius: 10px;
|
|
5737
|
+
--dt-toast-raised-tile: 28px;
|
|
5738
|
+
--dt-toast-raised-tile-radius: 8px;
|
|
5739
|
+
--dt-toast-raised-mark: 14px;
|
|
5740
|
+
--dt-toast-raised-title: 13px;
|
|
5741
|
+
--dt-toast-raised-text: 12px;
|
|
5742
|
+
--dt-toast-raised-close: 24px;
|
|
5743
|
+
--dt-toast-raised-orb-small: 16px;
|
|
5744
|
+
--dt-toast-raised-orb-large: 54px;
|
|
5745
|
+
}
|
|
5746
|
+
|
|
5747
|
+
.dt-toast--raised.dt-toast--lg {
|
|
5748
|
+
--dt-toast-raised-pad: 16px 18px 16px 16px;
|
|
5749
|
+
--dt-toast-raised-gap: 18px;
|
|
5750
|
+
--dt-toast-raised-radius: 14px;
|
|
5751
|
+
--dt-toast-raised-tile: 46px;
|
|
5752
|
+
--dt-toast-raised-tile-radius: 12px;
|
|
5753
|
+
--dt-toast-raised-mark: 22px;
|
|
5754
|
+
--dt-toast-raised-title: 16px;
|
|
5755
|
+
--dt-toast-raised-text: 15px;
|
|
5756
|
+
--dt-toast-raised-close: 32px;
|
|
5757
|
+
--dt-toast-raised-orb-small: 27px;
|
|
5758
|
+
--dt-toast-raised-orb-large: 92px;
|
|
5759
|
+
}
|
|
5760
|
+
|
|
5761
|
+
.dt-toast--raised.dt-toast--danger {
|
|
5762
|
+
--dt-toast-from: #c93a4d;
|
|
5763
|
+
--dt-toast-to: #e5586b;
|
|
5764
|
+
}
|
|
5765
|
+
|
|
5766
|
+
.dt-toast__tile {
|
|
5767
|
+
position: relative;
|
|
5768
|
+
display: grid;
|
|
5769
|
+
flex: none;
|
|
5770
|
+
place-items: center;
|
|
5771
|
+
width: var(--dt-toast-raised-tile, 46px);
|
|
5772
|
+
height: var(--dt-toast-raised-tile, 46px);
|
|
5773
|
+
border-radius: var(--dt-toast-raised-tile-radius, 12px);
|
|
5774
|
+
background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.18));
|
|
5775
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 8px rgba(0, 0, 0, 0.18);
|
|
5776
|
+
}
|
|
5777
|
+
|
|
5778
|
+
.dt-toast__glyph {
|
|
5779
|
+
width: var(--dt-toast-raised-mark, 22px);
|
|
5780
|
+
height: var(--dt-toast-raised-mark, 22px);
|
|
5781
|
+
fill: none;
|
|
5782
|
+
stroke: currentColor;
|
|
5783
|
+
stroke-width: 3;
|
|
5784
|
+
stroke-linecap: round;
|
|
5785
|
+
stroke-linejoin: round;
|
|
5786
|
+
}
|
|
5787
|
+
|
|
5788
|
+
.dt-toast__orbs {
|
|
5789
|
+
position: absolute;
|
|
5790
|
+
z-index: -1;
|
|
5791
|
+
inset: 0;
|
|
5792
|
+
pointer-events: none;
|
|
5793
|
+
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));
|
|
5794
|
+
}
|
|
5795
|
+
|
|
5796
|
+
@media (forced-colors: active) {
|
|
5797
|
+
.dt-toast--raised {
|
|
5798
|
+
border: 1px solid CanvasText;
|
|
5799
|
+
}
|
|
5800
|
+
.dt-toast__tile {
|
|
5801
|
+
border: 1px solid CanvasText;
|
|
5802
|
+
}
|
|
5803
|
+
}
|
|
5599
5804
|
@keyframes dt-toast-in {
|
|
5600
5805
|
from {
|
|
5601
5806
|
opacity: 0;
|
|
@@ -8566,6 +8771,65 @@ button.dt-stepper__header[aria-disabled=true] {
|
|
|
8566
8771
|
inset-inline: auto 0;
|
|
8567
8772
|
}
|
|
8568
8773
|
|
|
8774
|
+
.dt-navigation-drawer.is-rail:not(.expand-on-hover) .dt-list--nav .dt-list-item__prepend :is(.dt-icon, .dt-avatar):not(.dt-badge-marker *) {
|
|
8775
|
+
transform: scale(var(--dt-rail-zoom, 1));
|
|
8776
|
+
transform-origin: center;
|
|
8777
|
+
}
|
|
8778
|
+
|
|
8779
|
+
.dt-navigation-drawer__inner {
|
|
8780
|
+
position: relative;
|
|
8781
|
+
}
|
|
8782
|
+
|
|
8783
|
+
.dt-navigation-drawer__glide {
|
|
8784
|
+
position: absolute;
|
|
8785
|
+
top: 0;
|
|
8786
|
+
left: 0;
|
|
8787
|
+
pointer-events: none;
|
|
8788
|
+
background: var(--dt-color-surface-hover);
|
|
8789
|
+
opacity: 0;
|
|
8790
|
+
transition: transform var(--dt-duration-base) var(--dt-ease-emphasized), width var(--dt-duration-base) var(--dt-ease-emphasized), height var(--dt-duration-base) var(--dt-ease-emphasized), opacity var(--dt-duration-fast) var(--dt-ease-standard);
|
|
8791
|
+
}
|
|
8792
|
+
|
|
8793
|
+
.dt-navigation-drawer__glide.is-visible {
|
|
8794
|
+
opacity: 1;
|
|
8795
|
+
}
|
|
8796
|
+
|
|
8797
|
+
.dt-navigation-drawer__glide.is-instant {
|
|
8798
|
+
transition: opacity var(--dt-duration-fast) var(--dt-ease-standard);
|
|
8799
|
+
}
|
|
8800
|
+
|
|
8801
|
+
.dt-navigation-drawer__inner.has-glide .dt-list--nav .dt-list-item.is-interactive:not(.is-active, .is-disabled):hover {
|
|
8802
|
+
background: transparent;
|
|
8803
|
+
}
|
|
8804
|
+
|
|
8805
|
+
.dt-navigation-drawer__marker {
|
|
8806
|
+
position: absolute;
|
|
8807
|
+
top: 0;
|
|
8808
|
+
left: 0;
|
|
8809
|
+
pointer-events: none;
|
|
8810
|
+
background: var(--dt-color-primary-subtle);
|
|
8811
|
+
opacity: 0;
|
|
8812
|
+
transition: transform var(--dt-duration-base) var(--dt-ease-emphasized), width var(--dt-duration-base) var(--dt-ease-emphasized), height var(--dt-duration-base) var(--dt-ease-emphasized), background-color var(--dt-duration-fast) var(--dt-ease-standard), opacity var(--dt-duration-fast) var(--dt-ease-standard);
|
|
8813
|
+
}
|
|
8814
|
+
|
|
8815
|
+
.dt-navigation-drawer__marker.is-visible {
|
|
8816
|
+
opacity: 1;
|
|
8817
|
+
}
|
|
8818
|
+
|
|
8819
|
+
.dt-navigation-drawer__marker.is-hovered {
|
|
8820
|
+
background: color-mix(in srgb, var(--dt-color-primary) 18%, var(--dt-color-surface));
|
|
8821
|
+
}
|
|
8822
|
+
|
|
8823
|
+
.dt-navigation-drawer__marker.is-instant {
|
|
8824
|
+
transition: none;
|
|
8825
|
+
}
|
|
8826
|
+
|
|
8827
|
+
@media not (forced-colors: active) {
|
|
8828
|
+
.dt-navigation-drawer__inner.has-marker .dt-list--nav .dt-list-item.is-interactive.is-active,
|
|
8829
|
+
.dt-navigation-drawer__inner.has-marker .dt-list--nav .dt-list-item.is-interactive.is-active:hover:not(.is-disabled) {
|
|
8830
|
+
background: transparent;
|
|
8831
|
+
}
|
|
8832
|
+
}
|
|
8569
8833
|
.dt-navigation-drawer-sheet .dt-sheet {
|
|
8570
8834
|
--dt-sheet-size: var(--dt-drawer-width, 256px);
|
|
8571
8835
|
}
|
|
@@ -8581,11 +8845,17 @@ button.dt-stepper__header[aria-disabled=true] {
|
|
|
8581
8845
|
@media (prefers-reduced-motion: reduce) {
|
|
8582
8846
|
.dt-navigation-drawer,
|
|
8583
8847
|
.dt-navigation-drawer__inner,
|
|
8584
|
-
.dt-navigation-drawer :is(.dt-list-item__content, .dt-list-item__append, .dt-list-subheader)
|
|
8848
|
+
.dt-navigation-drawer :is(.dt-list-item__content, .dt-list-item__append, .dt-list-subheader),
|
|
8849
|
+
.dt-navigation-drawer__glide,
|
|
8850
|
+
.dt-navigation-drawer__marker {
|
|
8585
8851
|
transition: none !important;
|
|
8586
8852
|
}
|
|
8587
8853
|
}
|
|
8588
8854
|
@media (forced-colors: active) {
|
|
8855
|
+
.dt-navigation-drawer__glide,
|
|
8856
|
+
.dt-navigation-drawer__marker {
|
|
8857
|
+
display: none;
|
|
8858
|
+
}
|
|
8589
8859
|
.dt-navigation-drawer.is-rail.is-expanded .dt-navigation-drawer__inner {
|
|
8590
8860
|
border-inline-end: 1px solid CanvasText;
|
|
8591
8861
|
}
|
|
@@ -9724,6 +9994,25 @@ button.dt-stepper__header[aria-disabled=true] {
|
|
|
9724
9994
|
outline-offset: -2px;
|
|
9725
9995
|
}
|
|
9726
9996
|
}
|
|
9997
|
+
.dt-tree-select__tree .dt-treeview__item:focus-visible {
|
|
9998
|
+
outline: none;
|
|
9999
|
+
background: var(--dt-color-surface-hover);
|
|
10000
|
+
}
|
|
10001
|
+
|
|
10002
|
+
.dt-tree-select__tree .dt-treeview__item:focus-visible:is(.is-active, .is-selected) {
|
|
10003
|
+
background: color-mix(in srgb, var(--dt-color-primary-subtle) 80%, var(--dt-color-primary));
|
|
10004
|
+
}
|
|
10005
|
+
|
|
10006
|
+
.dt-tree-select__tree.is-multiple .dt-treeview__item:focus-visible.is-selected:not(.is-active) {
|
|
10007
|
+
background: var(--dt-color-surface-hover);
|
|
10008
|
+
}
|
|
10009
|
+
|
|
10010
|
+
@media (forced-colors: active) {
|
|
10011
|
+
.dt-tree-select__tree .dt-treeview__item:focus-visible {
|
|
10012
|
+
outline: 2px solid Highlight;
|
|
10013
|
+
outline-offset: -2px;
|
|
10014
|
+
}
|
|
10015
|
+
}
|
|
9727
10016
|
.dt-accordion {
|
|
9728
10017
|
display: grid;
|
|
9729
10018
|
overflow: hidden;
|