@pathscale/ui 1.2.10 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +132 -59
  3. package/dist/components/accordion/Accordion.css +158 -158
  4. package/dist/components/alert/Alert.css +116 -116
  5. package/dist/components/avatar/Avatar.css +124 -124
  6. package/dist/components/badge/Badge.css +164 -164
  7. package/dist/components/breadcrumbs/Breadcrumbs.css +63 -63
  8. package/dist/components/button/Button.css +194 -194
  9. package/dist/components/button-group/ButtonGroup.css +117 -117
  10. package/dist/components/calendar/Calendar.css +258 -258
  11. package/dist/components/card/Card.css +110 -110
  12. package/dist/components/chatbubble/ChatBubble.css +164 -164
  13. package/dist/components/checkbox/Checkbox.css +183 -183
  14. package/dist/components/checkbox-group/CheckboxGroup.css +10 -10
  15. package/dist/components/chip/Chip.css +197 -197
  16. package/dist/components/close-button/CloseButton.css +81 -81
  17. package/dist/components/color-area/ColorArea.css +54 -54
  18. package/dist/components/color-field/ColorField.css +88 -88
  19. package/dist/components/color-picker/ColorPicker.css +28 -28
  20. package/dist/components/color-slider/ColorSlider.css +57 -57
  21. package/dist/components/color-swatch/ColorSwatch.css +84 -84
  22. package/dist/components/color-swatch-picker/ColorSwatchPicker.css +12 -12
  23. package/dist/components/color-wheel-flower/ColorWheelFlower.css +147 -147
  24. package/dist/components/combo-box/ComboBox.css +344 -344
  25. package/dist/components/date-field/DateField.css +215 -215
  26. package/dist/components/date-picker/DatePicker.css +143 -143
  27. package/dist/components/date-range-picker/DateRangePicker.css +149 -149
  28. package/dist/components/description/Description.css +10 -10
  29. package/dist/components/disclosure/Disclosure.css +84 -84
  30. package/dist/components/disclosure-group/DisclosureGroup.css +9 -9
  31. package/dist/components/drawer/Drawer.css +463 -463
  32. package/dist/components/dropdown/Dropdown.css +211 -211
  33. package/dist/components/empty-state/EmptyState.css +39 -39
  34. package/dist/components/error-message/ErrorMessage.css +20 -20
  35. package/dist/components/field-error/FieldError.css +27 -27
  36. package/dist/components/fieldset/Fieldset.css +30 -30
  37. package/dist/components/flex/Flex.css +5 -5
  38. package/dist/components/floating-dock/FloatingDock.css +208 -208
  39. package/dist/components/footer/footer.css +51 -51
  40. package/dist/components/form/Form.css +5 -5
  41. package/dist/components/glass-panel/GlassPanel.css +359 -359
  42. package/dist/components/glow-card/GlowCard.css +100 -100
  43. package/dist/components/grid/Grid.css +5 -5
  44. package/dist/components/header/Header.css +13 -13
  45. package/dist/components/icon/Icon.css +10 -10
  46. package/dist/components/immersive-landing/ImmersiveLanding.css +565 -565
  47. package/dist/components/input/Input.css +155 -155
  48. package/dist/components/input-group/InputGroup.css +172 -172
  49. package/dist/components/input-otp/InputOTP.css +170 -170
  50. package/dist/components/kbd/Kbd.css +60 -60
  51. package/dist/components/label/Label.css +30 -30
  52. package/dist/components/language-switcher/LanguageSwitcher.css +56 -56
  53. package/dist/components/language-switcher/createI18n.d.ts +2 -1
  54. package/dist/components/link/Link.css +131 -131
  55. package/dist/components/list-box/ListBox.css +148 -148
  56. package/dist/components/live-chat/LiveChat.css +324 -324
  57. package/dist/components/menu/Menu.css +199 -199
  58. package/dist/components/metal-border/MetalBorder.classes.d.ts +26 -0
  59. package/dist/components/metal-border/MetalBorder.classes.js +27 -0
  60. package/dist/components/metal-border/MetalBorder.css +40 -0
  61. package/dist/components/metal-border/MetalBorder.d.ts +20 -0
  62. package/dist/components/metal-border/MetalBorder.js +322 -0
  63. package/dist/components/metal-border/engine/color.d.ts +4 -0
  64. package/dist/components/metal-border/engine/color.js +69 -0
  65. package/dist/components/metal-border/engine/glow/geometry.d.ts +35 -0
  66. package/dist/components/metal-border/engine/glow/geometry.js +176 -0
  67. package/dist/components/metal-border/engine/glow/glow.d.ts +38 -0
  68. package/dist/components/metal-border/engine/glow/glow.js +246 -0
  69. package/dist/components/metal-border/engine/index.d.ts +4 -0
  70. package/dist/components/metal-border/engine/index.js +2 -0
  71. package/dist/components/metal-border/engine/perfConfig.d.ts +9 -0
  72. package/dist/components/metal-border/engine/perfConfig.js +10 -0
  73. package/dist/components/metal-border/engine/presets.d.ts +57 -0
  74. package/dist/components/metal-border/engine/presets.js +214 -0
  75. package/dist/components/metal-border/engine/renderer/core.d.ts +69 -0
  76. package/dist/components/metal-border/engine/renderer/core.js +156 -0
  77. package/dist/components/metal-border/engine/renderer/loop.d.ts +30 -0
  78. package/dist/components/metal-border/engine/renderer/loop.js +248 -0
  79. package/dist/components/metal-border/engine/renderer/sampling.d.ts +14 -0
  80. package/dist/components/metal-border/engine/renderer/sampling.js +145 -0
  81. package/dist/components/metal-border/engine/shaders.d.ts +36 -0
  82. package/dist/components/metal-border/engine/shaders.js +215 -0
  83. package/dist/components/metal-border/engine/tween.d.ts +17 -0
  84. package/dist/components/metal-border/engine/tween.js +28 -0
  85. package/dist/components/metal-border/index.d.ts +2 -0
  86. package/dist/components/metal-border/index.js +1 -0
  87. package/dist/components/meter/Meter.css +89 -89
  88. package/dist/components/modal/Modal.css +320 -320
  89. package/dist/components/navbar/Navbar.css +110 -110
  90. package/dist/components/noise-background/NoiseBackground.css +66 -66
  91. package/dist/components/number-field/NumberField.css +198 -198
  92. package/dist/components/pagination/Pagination.css +121 -121
  93. package/dist/components/popover/Popover.css +117 -117
  94. package/dist/components/progress-bar/ProgressBar.css +104 -104
  95. package/dist/components/progress-circle/ProgressCircle.css +82 -82
  96. package/dist/components/radio/Radio.css +129 -129
  97. package/dist/components/radio-group/RadioGroup.css +58 -58
  98. package/dist/components/range-calendar/RangeCalendar.css +51 -51
  99. package/dist/components/scroll-shadow/ScrollShadow.css +93 -93
  100. package/dist/components/search-field/SearchField.css +183 -183
  101. package/dist/components/select/Select.css +284 -284
  102. package/dist/components/separator/Separator.css +35 -35
  103. package/dist/components/skeleton/Skeleton.css +95 -95
  104. package/dist/components/slider/Slider.css +122 -122
  105. package/dist/components/spinner/Spinner.css +131 -131
  106. package/dist/components/surface/Surface.css +37 -37
  107. package/dist/components/table/Table.css +426 -426
  108. package/dist/components/tabs/Tabs.css +203 -203
  109. package/dist/components/tag/Tag.css +121 -121
  110. package/dist/components/tag-group/TagGroup.css +22 -22
  111. package/dist/components/text/Text.css +66 -66
  112. package/dist/components/text-area/TextArea.css +95 -95
  113. package/dist/components/text-field/TextField.css +33 -33
  114. package/dist/components/time-field/TimeField.css +215 -215
  115. package/dist/components/toast/Toast.css +344 -344
  116. package/dist/components/toggle/Toggle.css +237 -237
  117. package/dist/components/toolbar/Toolbar.css +55 -55
  118. package/dist/components/tooltip/Tooltip.css +153 -153
  119. package/dist/index.css +74 -74
  120. package/dist/index.d.ts +2 -0
  121. package/dist/index.js +1 -0
  122. package/dist/purge-manifest.json +15836 -15583
  123. package/dist/styles/base/index.css +43 -43
  124. package/dist/styles/themes/dark.css +141 -141
  125. package/dist/styles/themes/light.css +143 -143
  126. package/package.json +17 -8
@@ -1,344 +1,344 @@
1
- @layer components {
2
- .toast-region {
3
- position: fixed;
4
- z-index: var(--z-overlay, 70);
5
- width: min(calc(100vw - 2rem), var(--toast-width, 28.75rem));
6
- pointer-events: none;
7
- outline: none;
8
- }
9
-
10
- .toast-region--bottom {
11
- bottom: 1rem;
12
- left: 50%;
13
- transform: translateX(-50%);
14
- }
15
-
16
- .toast-region--bottom-start {
17
- left: 1rem;
18
- bottom: 1rem;
19
- }
20
-
21
- .toast-region--bottom-end {
22
- right: 1rem;
23
- bottom: 1rem;
24
- }
25
-
26
- .toast-region--top {
27
- top: 1rem;
28
- left: 50%;
29
- transform: translateX(-50%);
30
- }
31
-
32
- .toast-region--top-start {
33
- top: 1rem;
34
- left: 1rem;
35
- }
36
-
37
- .toast-region--top-end {
38
- top: 1rem;
39
- right: 1rem;
40
- }
41
-
42
- .toast-region:focus-visible,
43
- .toast-region[data-focus-visible="true"] {
44
- outline: 2px solid var(--color-accent);
45
- outline-offset: 2px;
46
- }
47
-
48
- .toast-region__stack {
49
- position: relative;
50
- width: 100%;
51
- min-height: 0.125rem;
52
- }
53
-
54
- .toast-region__item {
55
- position: absolute;
56
- left: 0;
57
- right: 0;
58
- transition:
59
- transform 200ms var(--ease-out, ease),
60
- opacity 200ms var(--ease-out, ease);
61
- will-change: transform, opacity;
62
- }
63
-
64
- .toast-region__item--bottom,
65
- .toast-region__item--bottom-start,
66
- .toast-region__item--bottom-end {
67
- bottom: 0;
68
- }
69
-
70
- .toast-region__item--top,
71
- .toast-region__item--top-start,
72
- .toast-region__item--top-end {
73
- top: 0;
74
- }
75
-
76
- .toast-region__item--hidden {
77
- opacity: 0;
78
- pointer-events: none;
79
- }
80
-
81
- .toast {
82
- pointer-events: auto;
83
- display: flex;
84
- flex-direction: row;
85
- align-items: flex-start;
86
- gap: 0.5rem;
87
- width: 100%;
88
- border-radius: 1.5rem;
89
- padding: 0.75rem 1rem;
90
- background-color: var(--color-overlay, var(--color-base-100));
91
- color: var(--color-overlay-foreground, var(--color-base-content));
92
- box-shadow: var(
93
- --shadow-overlay,
94
- 0 24px 48px color-mix(in oklab, black 24%, transparent)
95
- );
96
- }
97
-
98
- .toast--hidden {
99
- opacity: 0;
100
- pointer-events: none;
101
- }
102
-
103
- .toast:not(.toast--frontmost) {
104
- pointer-events: none;
105
- height: var(--toast-front-height, auto);
106
- overflow: hidden;
107
- }
108
-
109
- .toast:not(.toast--frontmost) .toast__close {
110
- opacity: 0;
111
- pointer-events: none;
112
- }
113
-
114
- .toast--entering {
115
- animation-duration: 220ms;
116
- animation-timing-function: var(--ease-out, ease);
117
- animation-fill-mode: both;
118
- }
119
-
120
- .toast-region__item--bottom .toast--entering,
121
- .toast-region__item--bottom-start .toast--entering,
122
- .toast-region__item--bottom-end .toast--entering {
123
- animation-name: toast-slide-bottom-in;
124
- }
125
-
126
- .toast-region__item--top .toast--entering,
127
- .toast-region__item--top-start .toast--entering,
128
- .toast-region__item--top-end .toast--entering {
129
- animation-name: toast-slide-top-in;
130
- }
131
-
132
- .toast--exiting {
133
- pointer-events: none;
134
- animation-duration: 220ms;
135
- animation-timing-function: var(--ease-out, ease);
136
- animation-fill-mode: both;
137
- }
138
-
139
- .toast-region__item--bottom .toast--exiting,
140
- .toast-region__item--bottom-start .toast--exiting,
141
- .toast-region__item--bottom-end .toast--exiting {
142
- animation-name: toast-slide-bottom-out;
143
- }
144
-
145
- .toast-region__item--top .toast--exiting,
146
- .toast-region__item--top-start .toast--exiting,
147
- .toast-region__item--top-end .toast--exiting {
148
- animation-name: toast-slide-top-out;
149
- }
150
-
151
- .toast__content {
152
- display: flex;
153
- flex: 1;
154
- min-width: 0;
155
- flex-direction: column;
156
- gap: 0.125rem;
157
- align-items: flex-start;
158
- }
159
-
160
- .toast__indicator {
161
- display: inline-flex;
162
- width: 1.5rem;
163
- height: 1.5rem;
164
- align-items: center;
165
- justify-content: center;
166
- flex-shrink: 0;
167
- color: inherit;
168
- user-select: none;
169
- margin-top: 0.125rem;
170
- }
171
-
172
- .toast__icon {
173
- width: 1rem;
174
- height: 1rem;
175
- flex-shrink: 0;
176
- pointer-events: none;
177
- }
178
-
179
- .toast__spinner {
180
- width: 1rem;
181
- height: 1rem;
182
- border-radius: 9999px;
183
- border: 2px solid currentColor;
184
- border-top-color: transparent;
185
- animation: toast-spinner 600ms linear infinite;
186
- }
187
-
188
- .toast__title {
189
- margin: 0;
190
- font-size: 0.875rem;
191
- font-weight: 600;
192
- line-height: 1.25rem;
193
- color: inherit;
194
- }
195
-
196
- .toast__description {
197
- margin: 0;
198
- font-size: 0.8125rem;
199
- line-height: 1.2rem;
200
- color: color-mix(in oklab, currentColor 74%, transparent);
201
- }
202
-
203
- .toast__action {
204
- margin-top: 0.5rem;
205
- }
206
-
207
- .toast__close {
208
- margin-top: 0.125rem;
209
- opacity: 0;
210
- background-color: transparent;
211
- transition: opacity 150ms var(--ease-out, ease);
212
- }
213
-
214
- .toast__close-icon {
215
- width: 0.875rem;
216
- height: 0.875rem;
217
- flex-shrink: 0;
218
- pointer-events: none;
219
- }
220
-
221
- .toast--frontmost:hover .toast__close,
222
- .toast--frontmost .toast__close:focus-visible,
223
- .toast--frontmost .toast__close[data-focus-visible="true"] {
224
- opacity: 1;
225
- }
226
-
227
- .toast--accent {
228
- color: var(--color-accent);
229
- }
230
-
231
- .toast--success {
232
- color: var(--color-success);
233
- }
234
-
235
- .toast--warning {
236
- color: var(--color-warning);
237
- }
238
-
239
- .toast--danger {
240
- color: var(--color-error);
241
- }
242
-
243
- .toast--default .toast__title,
244
- .toast--default .toast__description {
245
- color: var(--color-overlay-foreground, var(--color-base-content));
246
- }
247
-
248
- .toast--default .toast__indicator {
249
- color: var(--color-overlay-foreground, var(--color-base-content));
250
- }
251
-
252
- .toast--default .toast__description {
253
- color: color-mix(
254
- in oklab,
255
- var(--color-overlay-foreground, var(--color-base-content)) 72%,
256
- transparent
257
- );
258
- }
259
-
260
- @media (hover: hover) {
261
- .toast--frontmost:hover .toast__close {
262
- opacity: 1;
263
- pointer-events: auto;
264
- }
265
- }
266
-
267
- @media (max-width: 640px) {
268
- .toast-region {
269
- width: calc(100vw - 2rem);
270
- }
271
-
272
- .toast__close {
273
- opacity: 1;
274
- pointer-events: auto;
275
- }
276
- }
277
-
278
- @media (prefers-reduced-motion: reduce) {
279
- .toast-region__item,
280
- .toast__close {
281
- transition: none;
282
- }
283
-
284
- .toast--entering,
285
- .toast--exiting,
286
- .toast__spinner {
287
- animation: none;
288
- }
289
- }
290
-
291
- @keyframes toast-slide-bottom-in {
292
- from {
293
- transform: translate3d(0, 0.75rem, 0);
294
- opacity: 0;
295
- }
296
-
297
- to {
298
- transform: translate3d(0, 0, 0);
299
- opacity: 1;
300
- }
301
- }
302
-
303
- @keyframes toast-slide-bottom-out {
304
- from {
305
- transform: translate3d(0, 0, 0);
306
- opacity: 1;
307
- }
308
-
309
- to {
310
- transform: translate3d(0, 0.75rem, 0);
311
- opacity: 0;
312
- }
313
- }
314
-
315
- @keyframes toast-slide-top-in {
316
- from {
317
- transform: translate3d(0, -0.75rem, 0);
318
- opacity: 0;
319
- }
320
-
321
- to {
322
- transform: translate3d(0, 0, 0);
323
- opacity: 1;
324
- }
325
- }
326
-
327
- @keyframes toast-slide-top-out {
328
- from {
329
- transform: translate3d(0, 0, 0);
330
- opacity: 1;
331
- }
332
-
333
- to {
334
- transform: translate3d(0, -0.75rem, 0);
335
- opacity: 0;
336
- }
337
- }
338
-
339
- @keyframes toast-spinner {
340
- to {
341
- transform: rotate(360deg);
342
- }
343
- }
344
- }
1
+ @layer components {
2
+ .toast-region {
3
+ position: fixed;
4
+ z-index: var(--z-overlay, 70);
5
+ width: min(calc(100vw - 2rem), var(--toast-width, 28.75rem));
6
+ pointer-events: none;
7
+ outline: none;
8
+ }
9
+
10
+ .toast-region--bottom {
11
+ bottom: 1rem;
12
+ left: 50%;
13
+ transform: translateX(-50%);
14
+ }
15
+
16
+ .toast-region--bottom-start {
17
+ left: 1rem;
18
+ bottom: 1rem;
19
+ }
20
+
21
+ .toast-region--bottom-end {
22
+ right: 1rem;
23
+ bottom: 1rem;
24
+ }
25
+
26
+ .toast-region--top {
27
+ top: 1rem;
28
+ left: 50%;
29
+ transform: translateX(-50%);
30
+ }
31
+
32
+ .toast-region--top-start {
33
+ top: 1rem;
34
+ left: 1rem;
35
+ }
36
+
37
+ .toast-region--top-end {
38
+ top: 1rem;
39
+ right: 1rem;
40
+ }
41
+
42
+ .toast-region:focus-visible,
43
+ .toast-region[data-focus-visible="true"] {
44
+ outline: 2px solid var(--color-accent);
45
+ outline-offset: 2px;
46
+ }
47
+
48
+ .toast-region__stack {
49
+ position: relative;
50
+ width: 100%;
51
+ min-height: 0.125rem;
52
+ }
53
+
54
+ .toast-region__item {
55
+ position: absolute;
56
+ left: 0;
57
+ right: 0;
58
+ transition:
59
+ transform 200ms var(--ease-out, ease),
60
+ opacity 200ms var(--ease-out, ease);
61
+ will-change: transform, opacity;
62
+ }
63
+
64
+ .toast-region__item--bottom,
65
+ .toast-region__item--bottom-start,
66
+ .toast-region__item--bottom-end {
67
+ bottom: 0;
68
+ }
69
+
70
+ .toast-region__item--top,
71
+ .toast-region__item--top-start,
72
+ .toast-region__item--top-end {
73
+ top: 0;
74
+ }
75
+
76
+ .toast-region__item--hidden {
77
+ opacity: 0;
78
+ pointer-events: none;
79
+ }
80
+
81
+ .toast {
82
+ pointer-events: auto;
83
+ display: flex;
84
+ flex-direction: row;
85
+ align-items: flex-start;
86
+ gap: 0.5rem;
87
+ width: 100%;
88
+ border-radius: 1.5rem;
89
+ padding: 0.75rem 1rem;
90
+ background-color: var(--color-overlay, var(--color-base-100));
91
+ color: var(--color-overlay-foreground, var(--color-base-content));
92
+ box-shadow: var(
93
+ --shadow-overlay,
94
+ 0 24px 48px color-mix(in oklab, black 24%, transparent)
95
+ );
96
+ }
97
+
98
+ .toast--hidden {
99
+ opacity: 0;
100
+ pointer-events: none;
101
+ }
102
+
103
+ .toast:not(.toast--frontmost) {
104
+ pointer-events: none;
105
+ height: var(--toast-front-height, auto);
106
+ overflow: hidden;
107
+ }
108
+
109
+ .toast:not(.toast--frontmost) .toast__close {
110
+ opacity: 0;
111
+ pointer-events: none;
112
+ }
113
+
114
+ .toast--entering {
115
+ animation-duration: 220ms;
116
+ animation-timing-function: var(--ease-out, ease);
117
+ animation-fill-mode: both;
118
+ }
119
+
120
+ .toast-region__item--bottom .toast--entering,
121
+ .toast-region__item--bottom-start .toast--entering,
122
+ .toast-region__item--bottom-end .toast--entering {
123
+ animation-name: toast-slide-bottom-in;
124
+ }
125
+
126
+ .toast-region__item--top .toast--entering,
127
+ .toast-region__item--top-start .toast--entering,
128
+ .toast-region__item--top-end .toast--entering {
129
+ animation-name: toast-slide-top-in;
130
+ }
131
+
132
+ .toast--exiting {
133
+ pointer-events: none;
134
+ animation-duration: 220ms;
135
+ animation-timing-function: var(--ease-out, ease);
136
+ animation-fill-mode: both;
137
+ }
138
+
139
+ .toast-region__item--bottom .toast--exiting,
140
+ .toast-region__item--bottom-start .toast--exiting,
141
+ .toast-region__item--bottom-end .toast--exiting {
142
+ animation-name: toast-slide-bottom-out;
143
+ }
144
+
145
+ .toast-region__item--top .toast--exiting,
146
+ .toast-region__item--top-start .toast--exiting,
147
+ .toast-region__item--top-end .toast--exiting {
148
+ animation-name: toast-slide-top-out;
149
+ }
150
+
151
+ .toast__content {
152
+ display: flex;
153
+ flex: 1;
154
+ min-width: 0;
155
+ flex-direction: column;
156
+ gap: 0.125rem;
157
+ align-items: flex-start;
158
+ }
159
+
160
+ .toast__indicator {
161
+ display: inline-flex;
162
+ width: 1.5rem;
163
+ height: 1.5rem;
164
+ align-items: center;
165
+ justify-content: center;
166
+ flex-shrink: 0;
167
+ color: inherit;
168
+ user-select: none;
169
+ margin-top: 0.125rem;
170
+ }
171
+
172
+ .toast__icon {
173
+ width: 1rem;
174
+ height: 1rem;
175
+ flex-shrink: 0;
176
+ pointer-events: none;
177
+ }
178
+
179
+ .toast__spinner {
180
+ width: 1rem;
181
+ height: 1rem;
182
+ border-radius: 9999px;
183
+ border: 2px solid currentColor;
184
+ border-top-color: transparent;
185
+ animation: toast-spinner 600ms linear infinite;
186
+ }
187
+
188
+ .toast__title {
189
+ margin: 0;
190
+ font-size: 0.875rem;
191
+ font-weight: 600;
192
+ line-height: 1.25rem;
193
+ color: inherit;
194
+ }
195
+
196
+ .toast__description {
197
+ margin: 0;
198
+ font-size: 0.8125rem;
199
+ line-height: 1.2rem;
200
+ color: color-mix(in oklab, currentColor 74%, transparent);
201
+ }
202
+
203
+ .toast__action {
204
+ margin-top: 0.5rem;
205
+ }
206
+
207
+ .toast__close {
208
+ margin-top: 0.125rem;
209
+ opacity: 0;
210
+ background-color: transparent;
211
+ transition: opacity 150ms var(--ease-out, ease);
212
+ }
213
+
214
+ .toast__close-icon {
215
+ width: 0.875rem;
216
+ height: 0.875rem;
217
+ flex-shrink: 0;
218
+ pointer-events: none;
219
+ }
220
+
221
+ .toast--frontmost:hover .toast__close,
222
+ .toast--frontmost .toast__close:focus-visible,
223
+ .toast--frontmost .toast__close[data-focus-visible="true"] {
224
+ opacity: 1;
225
+ }
226
+
227
+ .toast--accent {
228
+ color: var(--color-accent);
229
+ }
230
+
231
+ .toast--success {
232
+ color: var(--color-success);
233
+ }
234
+
235
+ .toast--warning {
236
+ color: var(--color-warning);
237
+ }
238
+
239
+ .toast--danger {
240
+ color: var(--color-error);
241
+ }
242
+
243
+ .toast--default .toast__title,
244
+ .toast--default .toast__description {
245
+ color: var(--color-overlay-foreground, var(--color-base-content));
246
+ }
247
+
248
+ .toast--default .toast__indicator {
249
+ color: var(--color-overlay-foreground, var(--color-base-content));
250
+ }
251
+
252
+ .toast--default .toast__description {
253
+ color: color-mix(
254
+ in oklab,
255
+ var(--color-overlay-foreground, var(--color-base-content)) 72%,
256
+ transparent
257
+ );
258
+ }
259
+
260
+ @media (hover: hover) {
261
+ .toast--frontmost:hover .toast__close {
262
+ opacity: 1;
263
+ pointer-events: auto;
264
+ }
265
+ }
266
+
267
+ @media (max-width: 640px) {
268
+ .toast-region {
269
+ width: calc(100vw - 2rem);
270
+ }
271
+
272
+ .toast__close {
273
+ opacity: 1;
274
+ pointer-events: auto;
275
+ }
276
+ }
277
+
278
+ @media (prefers-reduced-motion: reduce) {
279
+ .toast-region__item,
280
+ .toast__close {
281
+ transition: none;
282
+ }
283
+
284
+ .toast--entering,
285
+ .toast--exiting,
286
+ .toast__spinner {
287
+ animation: none;
288
+ }
289
+ }
290
+
291
+ @keyframes toast-slide-bottom-in {
292
+ from {
293
+ transform: translate3d(0, 0.75rem, 0);
294
+ opacity: 0;
295
+ }
296
+
297
+ to {
298
+ transform: translate3d(0, 0, 0);
299
+ opacity: 1;
300
+ }
301
+ }
302
+
303
+ @keyframes toast-slide-bottom-out {
304
+ from {
305
+ transform: translate3d(0, 0, 0);
306
+ opacity: 1;
307
+ }
308
+
309
+ to {
310
+ transform: translate3d(0, 0.75rem, 0);
311
+ opacity: 0;
312
+ }
313
+ }
314
+
315
+ @keyframes toast-slide-top-in {
316
+ from {
317
+ transform: translate3d(0, -0.75rem, 0);
318
+ opacity: 0;
319
+ }
320
+
321
+ to {
322
+ transform: translate3d(0, 0, 0);
323
+ opacity: 1;
324
+ }
325
+ }
326
+
327
+ @keyframes toast-slide-top-out {
328
+ from {
329
+ transform: translate3d(0, 0, 0);
330
+ opacity: 1;
331
+ }
332
+
333
+ to {
334
+ transform: translate3d(0, -0.75rem, 0);
335
+ opacity: 0;
336
+ }
337
+ }
338
+
339
+ @keyframes toast-spinner {
340
+ to {
341
+ transform: rotate(360deg);
342
+ }
343
+ }
344
+ }