tailjng 0.1.6 → 0.1.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/README.md +27 -5
- package/cli/execute/init-app.js +5 -2
- package/cli/execute/sync-app.js +14 -2
- package/cli/settings/colors-config-utils.js +69 -11
- package/cli/settings/icons-config-utils.js +62 -0
- package/cli/settings/path-utils.js +32 -2
- package/cli/settings/project-utils.js +7 -1
- package/cli/templates/app.generator.js +8 -5
- package/fesm2022/tailjng.mjs +247 -80
- package/fesm2022/tailjng.mjs.map +1 -1
- package/lib/services/static/theme.service.d.ts +39 -1
- package/lib/utils/theme/theme-variables.util.d.ts +31 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/registry/components.json +41 -18
- package/src/colors.safelist.css +2 -2
- package/src/lib/components/.config/README.md +11 -0
- package/src/lib/components/.config/colors/README.md +40 -0
- package/src/lib/components/{colors-config → .config/colors}/colors.config.ts +5 -5
- package/src/lib/components/{colors-config → .config/colors}/colors.safelist.css +2 -2
- package/src/lib/components/.config/icons/README.md +26 -0
- package/src/lib/components/.config/icons/icons.lucide.ts +134 -0
- package/src/lib/components/.config/input/README.md +24 -0
- package/src/lib/components/.config/input/input.classes.ts +119 -0
- package/src/lib/components/alert/alert-dialog/dialog-alert.component.css +177 -6
- package/src/lib/components/alert/alert-dialog/dialog-alert.component.html +24 -37
- package/src/lib/components/alert/alert-dialog/dialog-alert.component.ts +66 -56
- package/src/lib/components/alert/alert-dialog/dialog-alert.types.ts +19 -0
- package/src/lib/components/alert/alert-toast/toast-alert.component.css +494 -14
- package/src/lib/components/alert/alert-toast/toast-alert.component.html +106 -102
- package/src/lib/components/alert/alert-toast/toast-alert.component.ts +485 -128
- package/src/lib/components/alert/alert-toast/toast-alert.types.ts +25 -0
- package/src/lib/components/badge/badge.component.html +34 -21
- package/src/lib/components/badge/badge.component.ts +140 -31
- package/src/lib/components/button/button.component.html +16 -10
- package/src/lib/components/button/button.component.ts +162 -22
- package/src/lib/components/card/card-complete/complete-card.component.html +2 -2
- package/src/lib/components/card/card-complete/complete-card.component.ts +26 -16
- package/src/lib/components/card/card-crud-complete/complete-crud-card.component.html +2 -2
- package/src/lib/components/card/card-crud-complete/complete-crud-card.component.ts +26 -16
- package/src/lib/components/checkbox/checkbox-input/input-checkbox.component.css +30 -0
- package/src/lib/components/checkbox/checkbox-input/input-checkbox.component.html +58 -46
- package/src/lib/components/checkbox/checkbox-input/input-checkbox.component.ts +135 -64
- package/src/lib/components/checkbox/checkbox-input/input-checkbox.types.ts +3 -0
- package/src/lib/components/checkbox/checkbox-switch/switch-checkbox.component.css +62 -0
- package/src/lib/components/checkbox/checkbox-switch/switch-checkbox.component.html +39 -25
- package/src/lib/components/checkbox/checkbox-switch/switch-checkbox.component.ts +74 -15
- package/src/lib/components/checkbox/checkbox-switch/switch-checkbox.types.ts +1 -0
- package/src/lib/components/coach-mark/coach-mark.component.html +6 -24
- package/src/lib/components/coach-mark/coach-mark.component.scss +1 -7
- package/src/lib/components/coach-mark/coach-mark.component.ts +51 -18
- package/src/lib/components/coach-mark/coach-mark.directive.ts +133 -78
- package/src/lib/components/coach-mark/coach-mark.types.ts +12 -0
- package/src/lib/components/dialog/dialog.component.css +1 -1
- package/src/lib/components/dialog/dialog.component.html +56 -65
- package/src/lib/components/dialog/dialog.component.ts +136 -110
- package/src/lib/components/dialog/dialog.types.ts +19 -0
- package/src/lib/components/filter/filter-complete/complete-filter.component.html +17 -20
- package/src/lib/components/filter/filter-complete/complete-filter.component.scss +25 -0
- package/src/lib/components/filter/filter-complete/complete-filter.component.ts +58 -34
- package/src/lib/components/filter/filter-complete/complete-filter.types.ts +7 -0
- package/src/lib/components/filter/filter-complete/complete-filter.util.ts +16 -0
- package/src/lib/components/form/form-container/container-form.component.css +4 -0
- package/src/lib/components/form/form-container/container-form.component.html +2 -2
- package/src/lib/components/form/form-container/container-form.component.ts +72 -16
- package/src/lib/components/form/form-container/container-form.types.ts +42 -0
- package/src/lib/components/form/form-container/form-col-span.directive.ts +25 -0
- package/src/lib/components/form/form-sidebar/sidebar-form.component.css +45 -0
- package/src/lib/components/form/form-sidebar/sidebar-form.component.html +128 -124
- package/src/lib/components/form/form-sidebar/sidebar-form.component.ts +114 -34
- package/src/lib/components/form/form-sidebar/sidebar-form.types.ts +3 -0
- package/src/lib/components/{toggle-radio/toggle-radio.component.css → form/form-validation/validation-form.component.css} +0 -1
- package/src/lib/components/form/form-validation/validation-form.component.html +10 -6
- package/src/lib/components/form/form-validation/validation-form.component.ts +99 -12
- package/src/lib/components/form/form-validation/validation-form.types.ts +33 -0
- package/src/lib/components/icon/icon.component.html +8 -5
- package/src/lib/components/icon/icon.component.ts +111 -9
- package/src/lib/components/input/input/input.component.css +0 -14
- package/src/lib/components/input/input/input.component.html +19 -16
- package/src/lib/components/input/input/input.component.ts +130 -53
- package/src/lib/components/input/input/input.types.ts +8 -0
- package/src/lib/components/input/input-file/file-input.component.html +65 -56
- package/src/lib/components/input/input-file/file-input.component.ts +276 -173
- package/src/lib/components/input/input-file/file-input.types.ts +2 -0
- package/src/lib/components/input/input-range/range-input.component.css +67 -0
- package/src/lib/components/input/input-range/range-input.component.html +50 -58
- package/src/lib/components/input/input-range/range-input.component.ts +148 -60
- package/src/lib/components/input/input-range/range-input.types.ts +7 -0
- package/src/lib/components/input/input-textarea/textarea-input.component.html +16 -7
- package/src/lib/components/input/input-textarea/textarea-input.component.ts +140 -50
- package/src/lib/components/input/input-textarea/textarea-input.types.ts +2 -0
- package/src/lib/components/label/label.component.html +17 -16
- package/src/lib/components/label/label.component.ts +94 -16
- package/src/lib/components/label/label.types.ts +2 -0
- package/src/lib/components/menu/menu-options-table/menu-options-defaults.ts +34 -0
- package/src/lib/components/menu/menu-options-table/options-table-menu.component.html +34 -20
- package/src/lib/components/menu/menu-options-table/options-table-menu.component.ts +211 -58
- package/src/lib/components/menu/menu-options-table/options-table-menu.types.ts +38 -0
- package/src/lib/components/menu/options-coach-menu/options-coach-menu.component.html +49 -52
- package/src/lib/components/menu/options-coach-menu/options-coach-menu.component.ts +112 -24
- package/src/lib/components/menu/options-coach-menu/options-coach-menu.types.ts +9 -0
- package/src/lib/components/mode-toggle/mode-toggle.component.html +11 -16
- package/src/lib/components/mode-toggle/mode-toggle.component.ts +69 -33
- package/src/lib/components/paginator/paginator-complete/complete-paginator.component.html +4 -4
- package/src/lib/components/paginator/paginator-complete/complete-paginator.component.ts +31 -7
- package/src/lib/components/paginator/paginator-complete/complete-paginator.types.ts +12 -0
- package/src/lib/components/paginator/paginator-complete/complete-paginator.util.ts +36 -0
- package/src/lib/components/progress-bar/progress-bar.component.html +41 -40
- package/src/lib/components/progress-bar/progress-bar.component.ts +95 -11
- package/src/lib/components/progress-bar/progress-bar.types.ts +2 -0
- package/src/lib/components/select/select-dropdown/dropdown-select.component.html +56 -46
- package/src/lib/components/select/select-dropdown/dropdown-select.component.ts +450 -509
- package/src/lib/components/select/select-dropdown/dropdown-select.types.ts +43 -0
- package/src/lib/components/select/select-dropdown/dropdown-select.util.ts +179 -0
- package/src/lib/components/select/select-multi-dropdown/multi-dropdown-select.component.html +131 -42
- package/src/lib/components/select/select-multi-dropdown/multi-dropdown-select.component.ts +491 -475
- package/src/lib/components/select/select-multi-dropdown/multi-dropdown-select.types.ts +22 -0
- package/src/lib/components/select/select-multi-dropdown/multi-dropdown-select.util.ts +20 -0
- package/src/lib/components/select/select-multi-table/multi-table-select.component.css +4 -0
- package/src/lib/components/select/select-multi-table/multi-table-select.component.html +76 -60
- package/src/lib/components/select/select-multi-table/multi-table-select.component.ts +250 -313
- package/src/lib/components/select/select-multi-table/multi-table-select.types.ts +10 -0
- package/src/lib/components/select/select-multi-table/multi-table-select.util.ts +5 -0
- package/src/lib/components/sidebar/sidebar-static/static-sidebar.component.css +155 -0
- package/src/lib/components/sidebar/sidebar-static/static-sidebar.component.html +72 -53
- package/src/lib/components/sidebar/sidebar-static/static-sidebar.component.ts +84 -27
- package/src/lib/components/sidebar/sidebar-static/static-sidebar.types.ts +2 -0
- package/src/lib/components/table/table-complete/complete-table.component.html +21 -23
- package/src/lib/components/table/table-complete/complete-table.component.ts +190 -338
- package/src/lib/components/table/table-complete/complete-table.types.ts +28 -0
- package/src/lib/components/table/table-complete/complete-table.util.ts +236 -0
- package/src/lib/components/table/table-complete/index.ts +2 -0
- package/src/lib/components/table/table-crud-complete/complete-crud-table.animations.ts +34 -0
- package/src/lib/components/table/table-crud-complete/complete-crud-table.component.html +87 -142
- package/src/lib/components/table/table-crud-complete/complete-crud-table.component.scss +0 -63
- package/src/lib/components/table/table-crud-complete/complete-crud-table.component.ts +544 -831
- package/src/lib/components/table/table-crud-complete/complete-crud-table.types.ts +57 -0
- package/src/lib/components/table/table-crud-complete/complete-crud-table.util.ts +723 -0
- package/src/lib/components/table/table-crud-complete/index.ts +3 -0
- package/src/lib/components/theme-generator/theme-generator.component.css +21 -0
- package/src/lib/components/theme-generator/theme-generator.component.html +141 -116
- package/src/lib/components/theme-generator/theme-generator.component.ts +44 -24
- package/src/lib/components/toggle-radio/shared/toggle-options.types.ts +8 -0
- package/src/lib/components/toggle-radio/shared/toggle-options.util.ts +62 -0
- package/src/lib/components/toggle-radio/toggle-radio/toggle-radio.component.css +22 -0
- package/src/lib/components/toggle-radio/toggle-radio/toggle-radio.component.html +65 -0
- package/src/lib/components/toggle-radio/toggle-radio/toggle-radio.component.ts +192 -0
- package/src/lib/components/toggle-radio/toggle-radio/toggle-radio.types.ts +1 -0
- package/src/lib/components/toggle-radio/toggle-segment/segment-toggle.component.css +34 -0
- package/src/lib/components/toggle-radio/toggle-segment/segment-toggle.component.html +47 -0
- package/src/lib/components/toggle-radio/toggle-segment/segment-toggle.component.ts +187 -0
- package/src/lib/components/toggle-radio/toggle-segment/segment-toggle.types.ts +1 -0
- package/src/lib/components/tooltip/tooltip.directive.ts +12 -9
- package/src/lib/components/tooltip/tooltip.service.ts +331 -133
- package/src/lib/components/tooltip/tooltip.types.ts +9 -0
- package/src/lib/components/viewer/viewer-image/image-viewer.component.css +14 -4
- package/src/lib/components/viewer/viewer-image/image-viewer.component.html +61 -95
- package/src/lib/components/viewer/viewer-image/image-viewer.component.ts +182 -177
- package/src/lib/components/viewer/viewer-image/image-viewer.types.ts +3 -0
- package/src/lib/components/viewer/viewer-pdf/pdf-viewer.component.css +25 -0
- package/src/lib/components/viewer/viewer-pdf/pdf-viewer.component.html +95 -24
- package/src/lib/components/viewer/viewer-pdf/pdf-viewer.component.ts +168 -15
- package/src/lib/components/viewer/viewer-pdf/pdf-viewer.types.ts +1 -0
- package/src/styles.css +2 -2
- package/lib/services/static/icons.service.d.ts +0 -65
- package/src/lib/components/colors-config/README.md +0 -38
- package/src/lib/components/form/form-sidebar/sidebar-form.component.scss +0 -0
- package/src/lib/components/form/form-validation/validation-form.component.scss +0 -0
- package/src/lib/components/menu/menu-options-table/options-table-menu.component.scss +0 -0
- package/src/lib/components/menu/options-coach-menu/options-coach-menu.component.scss +0 -12
- package/src/lib/components/sidebar/sidebar-static/static-sidebar.component.scss +0 -0
- package/src/lib/components/toggle-radio/toggle-radio.component.html +0 -51
- package/src/lib/components/toggle-radio/toggle-radio.component.ts +0 -222
- package/src/lib/components/viewer/viewer-pdf/pdf-viewer.component.scss +0 -0
- package/tailjng-0.1.6.tgz +0 -0
|
@@ -1,34 +1,508 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
:host {
|
|
2
|
+
display: contents;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.j-alert-toast-stack {
|
|
6
|
+
--j-toast-stack-peek: 0.625rem;
|
|
7
|
+
--j-toast-stack-card-min: 4.5rem;
|
|
8
|
+
--j-toast-stack-visible: 4;
|
|
9
|
+
--j-toast-stack-fade: 2.5rem;
|
|
10
|
+
--j-toast-stack-scrollbar: 2px;
|
|
11
|
+
--j-toast-stack-scrollbar-gutter: var(--j-toast-stack-scrollbar);
|
|
12
|
+
--j-toast-scrollbar-idle: color-mix(in srgb, var(--color-foreground) 7%, transparent);
|
|
13
|
+
--j-toast-scrollbar-active: color-mix(in srgb, var(--color-foreground) 28%, transparent);
|
|
14
|
+
--j-toast-stack-collapsed-height: calc(
|
|
15
|
+
var(--j-toast-stack-card-min) +
|
|
16
|
+
(var(--j-toast-stack-visible) - 1) * var(--j-toast-stack-peek)
|
|
17
|
+
);
|
|
18
|
+
--j-toast-timeline-height: 0.25rem;
|
|
19
|
+
|
|
20
|
+
position: fixed;
|
|
21
|
+
z-index: 1000;
|
|
22
|
+
width: 100%;
|
|
23
|
+
max-width: 22rem;
|
|
24
|
+
padding: 0.25rem;
|
|
25
|
+
pointer-events: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.j-alert-toast-stack--stackable {
|
|
29
|
+
pointer-events: auto;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.j-alert-toast-stack--stackable.j-alert-toast-stack--expanded.j-alert-toast-stack--has-scroll {
|
|
33
|
+
max-width: calc(22rem + var(--j-toast-stack-scrollbar-gutter));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.j-alert-toast-stack--bottom-right.j-alert-toast-stack--expanded.j-alert-toast-stack--has-scroll {
|
|
37
|
+
right: calc(1rem - var(--j-toast-stack-scrollbar-gutter));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.j-alert-toast-stack--top-right.j-alert-toast-stack--expanded.j-alert-toast-stack--has-scroll {
|
|
41
|
+
right: calc(0.75rem - var(--j-toast-stack-scrollbar-gutter));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media (hover: none) and (pointer: coarse) {
|
|
45
|
+
.j-alert-toast-stack--stackable.j-alert-toast-stack--expanded.j-alert-toast-stack--has-scroll {
|
|
46
|
+
max-width: 22rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.j-alert-toast-stack--bottom-right.j-alert-toast-stack--expanded.j-alert-toast-stack--has-scroll {
|
|
50
|
+
right: 1rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.j-alert-toast-stack--top-right.j-alert-toast-stack--expanded.j-alert-toast-stack--has-scroll {
|
|
54
|
+
right: 0.75rem;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.j-alert-toast-stack-inner {
|
|
59
|
+
position: relative;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: 0.75rem;
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.j-alert-toast-stack-inner--stackable {
|
|
67
|
+
min-height: var(--j-toast-stack-collapsed-height);
|
|
68
|
+
max-height: var(--j-toast-stack-collapsed-height);
|
|
69
|
+
overflow: visible;
|
|
70
|
+
transition:
|
|
71
|
+
max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
|
|
72
|
+
min-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
|
|
73
|
+
gap 0.24s ease,
|
|
74
|
+
overflow-y 0s linear 0.32s;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.j-alert-toast-scroll-shell--expanded {
|
|
78
|
+
max-height: min(70vh, 28rem);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded {
|
|
82
|
+
min-height: 0;
|
|
83
|
+
max-height: min(70vh, 28rem);
|
|
84
|
+
gap: 0.75rem;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
-webkit-mask-size: 100% 100%;
|
|
87
|
+
mask-size: 100% 100%;
|
|
88
|
+
transition:
|
|
89
|
+
max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
|
|
90
|
+
min-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
|
|
91
|
+
gap 0.24s ease,
|
|
92
|
+
mask-image 0.2s ease,
|
|
93
|
+
-webkit-mask-image 0.2s ease,
|
|
94
|
+
overflow 0s linear 0.32s;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scroll-ready {
|
|
98
|
+
overflow-x: hidden;
|
|
99
|
+
overflow-y: hidden;
|
|
100
|
+
scrollbar-gutter: auto;
|
|
101
|
+
transition:
|
|
102
|
+
max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
|
|
103
|
+
min-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
|
|
104
|
+
gap 0.24s ease,
|
|
105
|
+
mask-image 0.2s ease,
|
|
106
|
+
-webkit-mask-image 0.2s ease,
|
|
107
|
+
overflow 0s;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable {
|
|
111
|
+
overflow-y: auto;
|
|
112
|
+
-webkit-overflow-scrolling: touch;
|
|
113
|
+
scrollbar-width: thin;
|
|
114
|
+
scrollbar-color: var(--j-toast-scrollbar-idle) transparent;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable.j-alert-toast-stack-inner--scroll-active,
|
|
118
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable:hover {
|
|
119
|
+
scrollbar-color: var(--j-toast-scrollbar-active) transparent;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable::-webkit-scrollbar {
|
|
123
|
+
width: var(--j-toast-stack-scrollbar);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable::-webkit-scrollbar-track {
|
|
127
|
+
background: transparent;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable::-webkit-scrollbar-thumb {
|
|
131
|
+
border-radius: 999px;
|
|
132
|
+
min-height: 2.5rem;
|
|
133
|
+
background: var(--j-toast-scrollbar-idle);
|
|
134
|
+
transition: background 0.45s ease;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable.j-alert-toast-stack-inner--scroll-active::-webkit-scrollbar-thumb,
|
|
138
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable:hover::-webkit-scrollbar-thumb {
|
|
139
|
+
background: var(--j-toast-scrollbar-active);
|
|
140
|
+
transition: background 0.12s ease;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable::-webkit-scrollbar-button {
|
|
144
|
+
display: none;
|
|
145
|
+
width: 0;
|
|
146
|
+
height: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:host-context(.dark) .j-alert-toast-stack,
|
|
150
|
+
:host-context(html.dark) .j-alert-toast-stack {
|
|
151
|
+
--j-toast-scrollbar-idle: color-mix(in srgb, var(--color-dark-foreground) 10%, transparent);
|
|
152
|
+
--j-toast-scrollbar-active: color-mix(in srgb, var(--color-dark-foreground) 34%, transparent);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@media (hover: none) and (pointer: coarse) {
|
|
156
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable {
|
|
157
|
+
scrollbar-width: none;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.j-alert-toast-stack-inner--stackable.j-alert-toast-stack-inner--expanded.j-alert-toast-stack-inner--scrollable::-webkit-scrollbar {
|
|
161
|
+
display: none;
|
|
162
|
+
width: 0;
|
|
4
163
|
}
|
|
5
164
|
}
|
|
6
165
|
|
|
7
|
-
.j-toast {
|
|
8
|
-
|
|
166
|
+
.j-alert-toast-stack--stackable:not(.j-alert-toast-stack--expanded) .j-alert-toast-stack-inner--stackable .j-alert-toast-card--in-pile {
|
|
167
|
+
position: absolute;
|
|
168
|
+
left: 0;
|
|
169
|
+
right: 0;
|
|
170
|
+
width: 100%;
|
|
171
|
+
margin: 0;
|
|
172
|
+
transition:
|
|
173
|
+
top 0.28s cubic-bezier(0.16, 1, 0.3, 1),
|
|
174
|
+
bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1),
|
|
175
|
+
box-shadow 0.24s ease,
|
|
176
|
+
transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.j-alert-toast-stack--stackable:not(.j-alert-toast-stack--expanded) .j-alert-toast-stack-inner--stackable .j-alert-toast-card--in-pile:not(.j-alert-toast-card--pile-top) {
|
|
180
|
+
box-shadow: 0 -4px 14px rgb(0 0 0 / 0.08);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.j-alert-toast-stack--stackable:not(.j-alert-toast-stack--expanded) .j-alert-toast-card--pile-hidden {
|
|
184
|
+
position: absolute;
|
|
185
|
+
width: 0;
|
|
186
|
+
height: 0;
|
|
187
|
+
overflow: hidden;
|
|
188
|
+
visibility: hidden;
|
|
189
|
+
pointer-events: none;
|
|
190
|
+
opacity: 0;
|
|
191
|
+
transition: opacity 0.24s ease, visibility 0.24s ease;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.j-alert-toast-stack--stackable.j-alert-toast-stack--expanded .j-alert-toast-stack-inner--stackable .j-alert-toast-card {
|
|
195
|
+
position: relative;
|
|
196
|
+
top: auto !important;
|
|
197
|
+
bottom: auto !important;
|
|
198
|
+
transform: none;
|
|
199
|
+
transition:
|
|
200
|
+
top 0.28s cubic-bezier(0.16, 1, 0.3, 1),
|
|
201
|
+
bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1),
|
|
202
|
+
box-shadow 0.24s ease,
|
|
203
|
+
transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
|
|
204
|
+
opacity 0.24s ease;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.j-alert-toast-stack--bottom-left .j-alert-toast-stack-hint,
|
|
208
|
+
.j-alert-toast-stack--top-left .j-alert-toast-stack-hint {
|
|
209
|
+
right: auto;
|
|
210
|
+
left: -0.35rem;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.j-alert-toast-stack--stackable:not(.j-alert-toast-stack--expanded) .j-alert-toast-stack-hint {
|
|
214
|
+
opacity: 1;
|
|
215
|
+
transform: scale(1);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.j-alert-toast-stack--stackable.j-alert-toast-stack--expanded .j-alert-toast-stack-hint {
|
|
219
|
+
opacity: 0;
|
|
220
|
+
transform: scale(0.85);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.j-alert-toast-stack--top-left {
|
|
224
|
+
top: 4.5rem;
|
|
225
|
+
left: 0.75rem;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.j-alert-toast-stack--top-right {
|
|
229
|
+
top: 4.5rem;
|
|
230
|
+
right: 0.75rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.j-alert-toast-stack--bottom-left {
|
|
234
|
+
bottom: 1rem;
|
|
235
|
+
left: 1rem;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.j-alert-toast-stack--bottom-right {
|
|
239
|
+
bottom: 1rem;
|
|
240
|
+
right: 1rem;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.j-alert-toast-card {
|
|
244
|
+
border: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
|
|
245
|
+
background-color: color-mix(in srgb, var(--color-background) 92%, transparent);
|
|
246
|
+
box-shadow: 0 12px 32px rgb(0 0 0 / 0.1);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
:host-context(.dark) .j-alert-toast-card,
|
|
250
|
+
:host-context(html.dark) .j-alert-toast-card {
|
|
251
|
+
border-color: color-mix(in srgb, var(--color-dark-border) 70%, transparent);
|
|
252
|
+
background-color: color-mix(in srgb, var(--color-dark-background) 92%, transparent);
|
|
253
|
+
box-shadow: 0 16px 40px rgb(0 0 0 / 0.35);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.j-alert-toast-card--mono {
|
|
257
|
+
background-color: color-mix(in srgb, var(--color-background) 95%, transparent);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
:host-context(.dark) .j-alert-toast-card--mono,
|
|
261
|
+
:host-context(html.dark) .j-alert-toast-card--mono {
|
|
262
|
+
background-color: color-mix(in srgb, var(--color-dark-background) 95%, transparent);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.j-alert-toast-card--success {
|
|
266
|
+
background-color: color-mix(in srgb, #22c55e 9%, var(--color-background));
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.j-alert-toast-card--error {
|
|
270
|
+
background-color: color-mix(in srgb, #ef4444 9%, var(--color-background));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.j-alert-toast-card--warning {
|
|
274
|
+
background-color: color-mix(in srgb, #eab308 10%, var(--color-background));
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.j-alert-toast-card--info {
|
|
278
|
+
background-color: color-mix(in srgb, #3b82f6 9%, var(--color-background));
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.j-alert-toast-card--question {
|
|
282
|
+
background-color: color-mix(in srgb, #a855f7 9%, var(--color-background));
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.j-alert-toast-card--loading {
|
|
286
|
+
background-color: color-mix(in srgb, var(--color-muted) 22%, var(--color-background));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
:host-context(.dark) .j-alert-toast-card--success,
|
|
290
|
+
:host-context(html.dark) .j-alert-toast-card--success {
|
|
291
|
+
background-color: color-mix(in srgb, #22c55e 14%, var(--color-dark-background));
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
:host-context(.dark) .j-alert-toast-card--error,
|
|
295
|
+
:host-context(html.dark) .j-alert-toast-card--error {
|
|
296
|
+
background-color: color-mix(in srgb, #ef4444 14%, var(--color-dark-background));
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
:host-context(.dark) .j-alert-toast-card--warning,
|
|
300
|
+
:host-context(html.dark) .j-alert-toast-card--warning {
|
|
301
|
+
background-color: color-mix(in srgb, #eab308 14%, var(--color-dark-background));
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
:host-context(.dark) .j-alert-toast-card--info,
|
|
305
|
+
:host-context(html.dark) .j-alert-toast-card--info {
|
|
306
|
+
background-color: color-mix(in srgb, #3b82f6 14%, var(--color-dark-background));
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
:host-context(.dark) .j-alert-toast-card--question,
|
|
310
|
+
:host-context(html.dark) .j-alert-toast-card--question {
|
|
311
|
+
background-color: color-mix(in srgb, #a855f7 14%, var(--color-dark-background));
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
:host-context(.dark) .j-alert-toast-card--loading,
|
|
315
|
+
:host-context(html.dark) .j-alert-toast-card--loading {
|
|
316
|
+
background-color: color-mix(in srgb, var(--color-dark-muted) 28%, var(--color-dark-background));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.j-alert-toast-accent {
|
|
320
|
+
position: absolute;
|
|
321
|
+
top: 0;
|
|
322
|
+
bottom: 0;
|
|
323
|
+
left: 0;
|
|
324
|
+
z-index: 1;
|
|
325
|
+
width: 0.25rem;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.j-alert-toast-accent--with-timeline {
|
|
329
|
+
bottom: var(--j-toast-timeline-height);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.j-alert-toast-accent--mono {
|
|
333
|
+
background-color: var(--color-primary);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.j-alert-toast-accent--success {
|
|
337
|
+
background-color: #22c55e;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.j-alert-toast-accent--error {
|
|
341
|
+
background-color: #ef4444;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.j-alert-toast-accent--warning {
|
|
345
|
+
background-color: #eab308;
|
|
9
346
|
}
|
|
10
347
|
|
|
11
|
-
.j-toast-
|
|
348
|
+
.j-alert-toast-accent--info {
|
|
349
|
+
background-color: #3b82f6;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.j-alert-toast-accent--question {
|
|
353
|
+
background-color: #a855f7;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.j-alert-toast-accent--loading {
|
|
357
|
+
background-color: var(--color-muted-foreground);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.j-alert-toast-watermark {
|
|
361
|
+
position: absolute;
|
|
362
|
+
z-index: 0;
|
|
363
|
+
pointer-events: none;
|
|
364
|
+
user-select: none;
|
|
365
|
+
opacity: 0.22;
|
|
12
366
|
filter: blur(0.15px);
|
|
13
367
|
}
|
|
14
368
|
|
|
15
|
-
.j-toast-watermark--
|
|
369
|
+
.j-alert-toast-watermark--subtle {
|
|
370
|
+
opacity: 0.12;
|
|
16
371
|
filter: blur(0.1px);
|
|
17
372
|
}
|
|
18
373
|
|
|
19
|
-
.j-toast-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
374
|
+
.j-alert-toast-watermark--lg {
|
|
375
|
+
bottom: -2rem;
|
|
376
|
+
left: -1.25rem;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.j-alert-toast-watermark--sm {
|
|
380
|
+
top: 0.5rem;
|
|
381
|
+
right: 0.75rem;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.j-alert-toast-watermark--with-close {
|
|
385
|
+
right: 2.25rem;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.j-alert-toast-watermark--mono {
|
|
389
|
+
color: var(--color-primary);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.j-alert-toast-watermark--success {
|
|
393
|
+
color: #22c55e;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.j-alert-toast-watermark--error {
|
|
397
|
+
color: #ef4444;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.j-alert-toast-watermark--warning {
|
|
401
|
+
color: #eab308;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.j-alert-toast-watermark--info {
|
|
405
|
+
color: #3b82f6;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.j-alert-toast-watermark--question {
|
|
409
|
+
color: #a855f7;
|
|
23
410
|
}
|
|
24
411
|
|
|
25
|
-
.j-toast-
|
|
26
|
-
|
|
412
|
+
.j-alert-toast-watermark--loading {
|
|
413
|
+
color: var(--color-muted-foreground);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.j-alert-toast-watermark--spin {
|
|
417
|
+
animation: j-alert-toast-spin 1s linear infinite;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
@keyframes j-alert-toast-spin {
|
|
421
|
+
to {
|
|
422
|
+
transform: rotate(360deg);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.j-alert-toast-body {
|
|
427
|
+
position: relative;
|
|
428
|
+
z-index: 10;
|
|
429
|
+
padding: 0.875rem 1rem 0.875rem 1.25rem;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.j-alert-toast-body--closable {
|
|
433
|
+
padding-right: 2.5rem;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.j-alert-toast-body--with-actions {
|
|
437
|
+
padding-bottom: 0.5rem;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.j-alert-toast-body--with-timeline {
|
|
441
|
+
padding-bottom: calc(0.875rem + var(--j-toast-timeline-height));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.j-alert-toast-body--with-actions-timeline {
|
|
445
|
+
padding-bottom: calc(0.5rem + var(--j-toast-timeline-height));
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.j-alert-toast-description :is(b, strong) {
|
|
449
|
+
font-weight: 600;
|
|
450
|
+
color: var(--color-foreground);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
:host-context(.dark) .j-alert-toast-description :is(b, strong),
|
|
454
|
+
:host-context(html.dark) .j-alert-toast-description :is(b, strong) {
|
|
455
|
+
color: var(--color-dark-foreground);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.j-alert-toast-actions--with-timeline {
|
|
459
|
+
padding-bottom: calc(0.875rem + var(--j-toast-timeline-height));
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.j-alert-toast-timeline {
|
|
463
|
+
background-color: color-mix(in srgb, var(--color-muted) 35%, transparent);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
:host-context(.dark) .j-alert-toast-timeline,
|
|
467
|
+
:host-context(html.dark) .j-alert-toast-timeline {
|
|
468
|
+
background-color: color-mix(in srgb, var(--color-dark-muted) 40%, transparent);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.j-alert-toast-progress {
|
|
472
|
+
animation-name: j-alert-toast-progress-shrink;
|
|
27
473
|
animation-timing-function: linear;
|
|
28
474
|
animation-fill-mode: forwards;
|
|
29
475
|
}
|
|
30
476
|
|
|
31
|
-
|
|
477
|
+
.j-alert-toast-progress--mono {
|
|
478
|
+
background-color: var(--color-primary);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.j-alert-toast-progress--success {
|
|
482
|
+
background-color: #22c55e;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.j-alert-toast-progress--error {
|
|
486
|
+
background-color: #ef4444;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.j-alert-toast-progress--warning {
|
|
490
|
+
background-color: #eab308;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.j-alert-toast-progress--info {
|
|
494
|
+
background-color: #3b82f6;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.j-alert-toast-progress--question {
|
|
498
|
+
background-color: #a855f7;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.j-alert-toast-progress--loading {
|
|
502
|
+
background-color: var(--color-muted-foreground);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
@keyframes j-alert-toast-progress-shrink {
|
|
32
506
|
from {
|
|
33
507
|
transform: scaleX(1);
|
|
34
508
|
}
|
|
@@ -37,3 +511,9 @@
|
|
|
37
511
|
transform: scaleX(0);
|
|
38
512
|
}
|
|
39
513
|
}
|
|
514
|
+
|
|
515
|
+
@media (max-width: 450px) {
|
|
516
|
+
.j-alert-toast-stack {
|
|
517
|
+
max-width: calc(100vw - 2rem);
|
|
518
|
+
}
|
|
519
|
+
}
|