@vinyasa/feedback 1.0.21 → 1.0.23

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 (61) hide show
  1. package/dist/cjs/alert.cjs +72 -32
  2. package/dist/cjs/banner.cjs +31 -14
  3. package/dist/cjs/circular-progress.cjs +74 -37
  4. package/dist/cjs/empty-state.cjs +47 -23
  5. package/dist/cjs/error-boundary.cjs +72 -32
  6. package/dist/cjs/index.cjs +593 -269
  7. package/dist/cjs/index.css +54 -32
  8. package/dist/cjs/inline-message.cjs +32 -15
  9. package/dist/cjs/loading-overlay.cjs +41 -17
  10. package/dist/cjs/progress-bar.cjs +143 -48
  11. package/dist/cjs/progress-bar.css +7 -2
  12. package/dist/cjs/toaster.cjs +202 -87
  13. package/dist/cjs/toaster.css +47 -30
  14. package/dist/esm/147.css +47 -30
  15. package/dist/esm/147.js +103 -89
  16. package/dist/esm/158.js +31 -19
  17. package/dist/esm/266.js +67 -37
  18. package/dist/esm/277.js +5 -1
  19. package/dist/esm/288.js +25 -20
  20. package/dist/esm/516.js +24 -17
  21. package/dist/esm/872.css +4 -2
  22. package/dist/esm/872.js +54 -19
  23. package/dist/esm/880.js +32 -13
  24. package/dist/esm/903.js +41 -31
  25. package/dist/esm/989.js +23 -16
  26. package/dist/esm/alert.js +1 -1
  27. package/dist/esm/banner.js +1 -1
  28. package/dist/esm/circular-progress.js +1 -1
  29. package/dist/esm/components/alert/Alert.d.ts +23 -7
  30. package/dist/esm/components/alert/index.d.ts +1 -1
  31. package/dist/esm/components/banner/Banner.d.ts +8 -5
  32. package/dist/esm/components/banner/index.d.ts +1 -1
  33. package/dist/esm/components/circular-progress/CircularProgress.d.ts +11 -3
  34. package/dist/esm/components/circular-progress/index.d.ts +1 -1
  35. package/dist/esm/components/empty-state/EmptyState.d.ts +24 -13
  36. package/dist/esm/components/empty-state/index.d.ts +1 -1
  37. package/dist/esm/components/error-boundary/ErrorBoundary.d.ts +16 -9
  38. package/dist/esm/components/error-boundary/index.d.ts +1 -1
  39. package/dist/esm/components/inline-message/InlineMessage.d.ts +5 -0
  40. package/dist/esm/components/inline-message/index.d.ts +1 -1
  41. package/dist/esm/components/loading-overlay/LoadingOverlay.d.ts +11 -1
  42. package/dist/esm/components/loading-overlay/index.d.ts +1 -1
  43. package/dist/esm/components/progress-bar/ProgressBar.d.ts +11 -4
  44. package/dist/esm/components/progress-bar/index.d.ts +1 -1
  45. package/dist/esm/components/spinner/Spinner.d.ts +1 -1
  46. package/dist/esm/components/toaster/Toaster.css.d.ts +2 -5
  47. package/dist/esm/components/toaster/Toaster.d.ts +3 -0
  48. package/dist/esm/components/toaster/ToasterItem.d.ts +18 -0
  49. package/dist/esm/components/toaster/index.d.ts +1 -1
  50. package/dist/esm/components/toaster/toastStore.d.ts +2 -2
  51. package/dist/esm/empty-state.js +1 -1
  52. package/dist/esm/error-boundary.js +1 -1
  53. package/dist/esm/index.d.ts +9 -9
  54. package/dist/esm/index.js +9 -9
  55. package/dist/esm/inline-message.js +1 -1
  56. package/dist/esm/loading-overlay.js +1 -1
  57. package/dist/esm/progress-bar.js +1 -1
  58. package/dist/esm/status.d.ts +3 -1
  59. package/dist/esm/toaster.js +1 -1
  60. package/package.json +15 -11
  61. package/dist/esm/components/toaster/ToastItemView.d.ts +0 -7
@@ -28,10 +28,15 @@ var __webpack_require__ = {};
28
28
  var __webpack_exports__ = {};
29
29
  __webpack_require__.r(__webpack_exports__);
30
30
  __webpack_require__.d(__webpack_exports__, {
31
+ ToastAction: ()=>ToastAction,
32
+ ToastClose: ()=>ToastClose,
33
+ ToastDescription: ()=>ToastDescription,
34
+ ToastTitle: ()=>ToastTitle,
31
35
  default: ()=>toaster_Toaster,
32
36
  toast: ()=>toast
33
37
  });
34
38
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
39
+ const react_toast_namespaceObject = require("@radix-ui/react-toast");
35
40
  const external_react_namespaceObject = require("react");
36
41
  function toPrimitive(t, r) {
37
42
  if ("object" != typeof t || !t) return t;
@@ -119,15 +124,28 @@ var createRuntimeFn = (config)=>{
119
124
  };
120
125
  return runtimeFn;
121
126
  };
122
- var body = '_1xil9gel';
123
- var closeButton = '_1xil9geo';
124
- var description = '_1xil9gen';
125
- var enterFromBottom = '_1xil9geh';
126
- var enterFromTop = '_1xil9geg';
127
- var exitToBottom = '_1xil9gej';
128
- var exitToTop = '_1xil9gei';
129
- var icon = '_1xil9gek';
130
- var stack = createRuntimeFn({
127
+ var action = '_1xil9gel';
128
+ var body = '_1xil9geh';
129
+ var closeButton = '_1xil9gek';
130
+ var description = '_1xil9gej';
131
+ var icon = '_1xil9geg';
132
+ var title = '_1xil9gei';
133
+ var toastCard = createRuntimeFn({
134
+ defaultClassName: '_1xil9geb',
135
+ variantClassNames: {
136
+ status: {
137
+ info: '_1xil9gec',
138
+ success: '_1xil9ged',
139
+ warning: '_1xil9gee',
140
+ error: '_1xil9gef'
141
+ }
142
+ },
143
+ defaultVariants: {
144
+ status: 'info'
145
+ },
146
+ compoundVariants: []
147
+ });
148
+ var viewport = createRuntimeFn({
131
149
  defaultClassName: '_1xil9ge0',
132
150
  variantClassNames: {
133
151
  position: {
@@ -144,22 +162,6 @@ var stack = createRuntimeFn({
144
162
  },
145
163
  compoundVariants: []
146
164
  });
147
- var title = '_1xil9gem';
148
- var toastCard = createRuntimeFn({
149
- defaultClassName: '_1xil9ge7',
150
- variantClassNames: {
151
- status: {
152
- info: '_1xil9ge8',
153
- success: '_1xil9ge9',
154
- warning: '_1xil9gea',
155
- error: '_1xil9geb'
156
- }
157
- },
158
- defaultVariants: {
159
- status: 'info'
160
- },
161
- compoundVariants: []
162
- });
163
165
  const icons_namespaceObject = require("@vinyasa/icons");
164
166
  const statusIcons = {
165
167
  info: icons_namespaceObject.InfoIcon,
@@ -167,6 +169,8 @@ const statusIcons = {
167
169
  warning: icons_namespaceObject.AlertTriangleIcon,
168
170
  error: icons_namespaceObject.XIcon
169
171
  };
172
+ const StatusContext = (0, external_react_namespaceObject.createContext)('info');
173
+ StatusContext.Provider;
170
174
  function _define_property(obj, key, value) {
171
175
  if (key in obj) Object.defineProperty(obj, key, {
172
176
  value: value,
@@ -190,6 +194,152 @@ function _object_spread(target) {
190
194
  }
191
195
  return target;
192
196
  }
197
+ function _object_without_properties(source, excluded) {
198
+ if (null == source) return {};
199
+ var target = {}, sourceKeys, key, i;
200
+ if ("u" > typeof Reflect && Reflect.ownKeys) {
201
+ sourceKeys = Reflect.ownKeys(Object(source));
202
+ for(i = 0; i < sourceKeys.length; i++){
203
+ key = sourceKeys[i];
204
+ if (!(excluded.indexOf(key) >= 0)) {
205
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
206
+ }
207
+ }
208
+ return target;
209
+ }
210
+ target = _object_without_properties_loose(source, excluded);
211
+ if (Object.getOwnPropertySymbols) {
212
+ sourceKeys = Object.getOwnPropertySymbols(source);
213
+ for(i = 0; i < sourceKeys.length; i++){
214
+ key = sourceKeys[i];
215
+ if (!(excluded.indexOf(key) >= 0)) {
216
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
217
+ }
218
+ }
219
+ }
220
+ return target;
221
+ }
222
+ function _object_without_properties_loose(source, excluded) {
223
+ if (null == source) return {};
224
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
225
+ for(i = 0; i < sourceKeys.length; i++){
226
+ key = sourceKeys[i];
227
+ if (!(excluded.indexOf(key) >= 0)) {
228
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
229
+ }
230
+ }
231
+ return target;
232
+ }
233
+ const ToastTitle = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
234
+ let _ref = [
235
+ _0,
236
+ _1
237
+ ], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = _object_without_properties(_ref1, [
238
+ "className"
239
+ ]), [ref] = _rest;
240
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toast_namespaceObject.Title, _object_spread({
241
+ ref: ref,
242
+ className: className ? `${title} ${className}` : title
243
+ }, rest));
244
+ });
245
+ ToastTitle.displayName = 'ToastTitle';
246
+ const ToastDescription = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
247
+ let _ref = [
248
+ _0,
249
+ _1
250
+ ], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = _object_without_properties(_ref1, [
251
+ "className"
252
+ ]), [ref] = _rest;
253
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toast_namespaceObject.Description, _object_spread({
254
+ ref: ref,
255
+ className: className ? `${description} ${className}` : description
256
+ }, rest));
257
+ });
258
+ ToastDescription.displayName = "ToastDescription";
259
+ const ToastAction = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
260
+ let _ref = [
261
+ _0,
262
+ _1
263
+ ], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = _object_without_properties(_ref1, [
264
+ "className"
265
+ ]), [ref] = _rest;
266
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toast_namespaceObject.Action, _object_spread({
267
+ ref: ref,
268
+ className: className ? `${action} ${className}` : action
269
+ }, rest));
270
+ });
271
+ ToastAction.displayName = 'ToastAction';
272
+ const ToastClose = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
273
+ let _ref = [
274
+ _0,
275
+ _1
276
+ ], [_ref1, ..._rest] = _ref, { className } = _ref1, rest = _object_without_properties(_ref1, [
277
+ "className"
278
+ ]), [ref] = _rest;
279
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toast_namespaceObject.Close, _object_spread({
280
+ ref: ref,
281
+ className: className ? `${closeButton} ${className}` : closeButton
282
+ }, rest));
283
+ });
284
+ ToastClose.displayName = 'ToastClose';
285
+ const ToasterItem = ({ status, title: itemTitle, description: itemDescription, duration, open, edge, onOpenChange })=>{
286
+ const Icon = statusIcons[status];
287
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_toast_namespaceObject.Root, {
288
+ className: toastCard({
289
+ status
290
+ }),
291
+ "data-edge": edge,
292
+ open: open,
293
+ duration: 0 === duration ? 1 / 0 : duration,
294
+ onOpenChange: onOpenChange,
295
+ forceMount: true,
296
+ children: [
297
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Icon, {
298
+ className: icon,
299
+ "aria-hidden": "true"
300
+ }),
301
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
302
+ className: body,
303
+ children: [
304
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToastTitle, {
305
+ children: itemTitle
306
+ }),
307
+ itemDescription ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToastDescription, {
308
+ children: itemDescription
309
+ }) : null
310
+ ]
311
+ }),
312
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ToastClose, {
313
+ "aria-label": "Dismiss",
314
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.XIcon, {})
315
+ })
316
+ ]
317
+ });
318
+ };
319
+ const toaster_ToasterItem = ToasterItem;
320
+ function toastStore_define_property(obj, key, value) {
321
+ if (key in obj) Object.defineProperty(obj, key, {
322
+ value: value,
323
+ enumerable: true,
324
+ configurable: true,
325
+ writable: true
326
+ });
327
+ else obj[key] = value;
328
+ return obj;
329
+ }
330
+ function toastStore_object_spread(target) {
331
+ for(var i = 1; i < arguments.length; i++){
332
+ var source = null != arguments[i] ? arguments[i] : {};
333
+ var ownKeys = Object.keys(source);
334
+ if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
335
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
336
+ }));
337
+ ownKeys.forEach(function(key) {
338
+ toastStore_define_property(target, key, source[key]);
339
+ });
340
+ }
341
+ return target;
342
+ }
193
343
  function toastStore_ownKeys(object, enumerableOnly) {
194
344
  var keys = Object.keys(object);
195
345
  if (Object.getOwnPropertySymbols) {
@@ -233,7 +383,7 @@ const show = (options)=>{
233
383
  title: options.title,
234
384
  description: options.description,
235
385
  duration: null != (_options_duration = options.duration) ? _options_duration : 4000,
236
- exiting: false
386
+ open: true
237
387
  };
238
388
  toasts = [
239
389
  ...toasts,
@@ -244,9 +394,9 @@ const show = (options)=>{
244
394
  };
245
395
  const dismiss = (id)=>{
246
396
  const target = toasts.find((item)=>item.id === id);
247
- if (!target || target.exiting) return;
248
- toasts = toasts.map((item)=>item.id === id ? _object_spread_props(_object_spread({}, item), {
249
- exiting: true
397
+ if (!(null == target ? void 0 : target.open)) return;
398
+ toasts = toasts.map((item)=>item.id === id ? _object_spread_props(toastStore_object_spread({}, item), {
399
+ open: false
250
400
  }) : item);
251
401
  notify();
252
402
  setTimeout(()=>{
@@ -258,57 +408,6 @@ const toast = {
258
408
  show,
259
409
  dismiss
260
410
  };
261
- const ToastItemView = ({ id, status, title: itemTitle, description: itemDescription, duration, exiting, edge })=>{
262
- (0, external_react_namespaceObject.useEffect)(()=>{
263
- if (duration <= 0) return;
264
- const timer = setTimeout(()=>{
265
- dismiss(id);
266
- }, duration);
267
- return ()=>{
268
- clearTimeout(timer);
269
- };
270
- }, [
271
- id,
272
- duration
273
- ]);
274
- const Icon = statusIcons[status];
275
- const animationClass = exiting ? 'top' === edge ? exitToTop : exitToBottom : 'top' === edge ? enterFromTop : enterFromBottom;
276
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
277
- className: `${toastCard({
278
- status
279
- })} ${animationClass}`,
280
- role: "status",
281
- children: [
282
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Icon, {
283
- className: icon,
284
- "aria-hidden": "true"
285
- }),
286
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
287
- className: body,
288
- children: [
289
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
290
- className: title,
291
- children: itemTitle
292
- }),
293
- itemDescription ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
294
- className: description,
295
- children: itemDescription
296
- }) : null
297
- ]
298
- }),
299
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", {
300
- type: "button",
301
- className: closeButton,
302
- onClick: ()=>{
303
- dismiss(id);
304
- },
305
- "aria-label": "Dismiss",
306
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.XIcon, {})
307
- })
308
- ]
309
- });
310
- };
311
- const toaster_ToastItemView = ToastItemView;
312
411
  function Toaster_define_property(obj, key, value) {
313
412
  if (key in obj) Object.defineProperty(obj, key, {
314
413
  value: value,
@@ -355,20 +454,36 @@ const emptySnapshot = [];
355
454
  const Toaster = ({ position = 'bottom-right' })=>{
356
455
  const items = (0, external_react_namespaceObject.useSyncExternalStore)(subscribe, getSnapshot, ()=>emptySnapshot);
357
456
  const edge = position.startsWith('top') ? 'top' : 'bottom';
358
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
359
- className: stack({
360
- position
361
- }),
362
- children: items.map((item)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(toaster_ToastItemView, Toaster_object_spread_props(Toaster_object_spread({}, item), {
363
- edge: edge
364
- }), item.id))
457
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(react_toast_namespaceObject.Provider, {
458
+ duration: 4000,
459
+ children: [
460
+ items.map((item)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(toaster_ToasterItem, Toaster_object_spread_props(Toaster_object_spread({}, item), {
461
+ edge: edge,
462
+ onOpenChange: (open)=>{
463
+ if (!open) dismiss(item.id);
464
+ }
465
+ }), item.id)),
466
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_toast_namespaceObject.Viewport, {
467
+ className: viewport({
468
+ position
469
+ })
470
+ })
471
+ ]
365
472
  });
366
473
  };
367
474
  Toaster.displayName = 'Toaster';
368
475
  const toaster_Toaster = Toaster;
476
+ exports.ToastAction = __webpack_exports__.ToastAction;
477
+ exports.ToastClose = __webpack_exports__.ToastClose;
478
+ exports.ToastDescription = __webpack_exports__.ToastDescription;
479
+ exports.ToastTitle = __webpack_exports__.ToastTitle;
369
480
  exports["default"] = __webpack_exports__["default"];
370
481
  exports.toast = __webpack_exports__.toast;
371
482
  for(var __rspack_i in __webpack_exports__)if (-1 === [
483
+ "ToastAction",
484
+ "ToastClose",
485
+ "ToastDescription",
486
+ "ToastTitle",
372
487
  "default",
373
488
  "toast"
374
489
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
@@ -1,4 +1,4 @@
1
- @keyframes _1xil9gec {
1
+ @keyframes _1xil9ge7 {
2
2
  from {
3
3
  opacity: 0;
4
4
  transform: translateY(-.5rem);
@@ -10,7 +10,7 @@
10
10
  }
11
11
  }
12
12
 
13
- @keyframes _1xil9ged {
13
+ @keyframes _1xil9ge8 {
14
14
  from {
15
15
  opacity: 1;
16
16
  transform: translateY(0);
@@ -22,7 +22,7 @@
22
22
  }
23
23
  }
24
24
 
25
- @keyframes _1xil9gee {
25
+ @keyframes _1xil9ge9 {
26
26
  from {
27
27
  opacity: 0;
28
28
  transform: translateY(.5rem);
@@ -34,7 +34,7 @@
34
34
  }
35
35
  }
36
36
 
37
- @keyframes _1xil9gef {
37
+ @keyframes _1xil9gea {
38
38
  from {
39
39
  opacity: 1;
40
40
  transform: translateY(0);
@@ -50,7 +50,11 @@
50
50
  z-index: var(--vinyasa-z-index-toast);
51
51
  gap: var(--vinyasa-space2);
52
52
  pointer-events: none;
53
+ outline: none;
53
54
  flex-direction: column;
55
+ margin: 0;
56
+ padding: 0;
57
+ list-style: none;
54
58
  display: flex;
55
59
  position: fixed;
56
60
  }
@@ -87,7 +91,7 @@
87
91
  right: var(--vinyasa-space4);
88
92
  }
89
93
 
90
- ._1xil9ge7 {
94
+ ._1xil9geb {
91
95
  align-items: flex-start;
92
96
  gap: var(--vinyasa-space2);
93
97
  padding: var(--vinyasa-space3);
@@ -100,66 +104,66 @@
100
104
  display: flex;
101
105
  }
102
106
 
103
- ._1xil9ge8 {
107
+ ._1xil9geb[data-edge="top"][data-state="open"] {
108
+ animation: .2s ease-out _1xil9ge7;
109
+ }
110
+
111
+ ._1xil9geb[data-edge="top"][data-state="closed"] {
112
+ animation: .15s ease-in forwards _1xil9ge8;
113
+ }
114
+
115
+ ._1xil9geb[data-edge="bottom"][data-state="open"] {
116
+ animation: .2s ease-out _1xil9ge9;
117
+ }
118
+
119
+ ._1xil9geb[data-edge="bottom"][data-state="closed"] {
120
+ animation: .15s ease-in forwards _1xil9gea;
121
+ }
122
+
123
+ ._1xil9gec {
104
124
  background-color: var(--vinyasa-status-info-bg);
105
125
  color: var(--vinyasa-status-info-text);
106
126
  }
107
127
 
108
- ._1xil9ge9 {
128
+ ._1xil9ged {
109
129
  background-color: var(--vinyasa-status-success-bg);
110
130
  color: var(--vinyasa-status-success-text);
111
131
  }
112
132
 
113
- ._1xil9gea {
133
+ ._1xil9gee {
114
134
  background-color: var(--vinyasa-status-warning-bg);
115
135
  color: var(--vinyasa-status-warning-text);
116
136
  }
117
137
 
118
- ._1xil9geb {
138
+ ._1xil9gef {
119
139
  background-color: var(--vinyasa-status-error-bg);
120
140
  color: var(--vinyasa-status-error-text);
121
141
  }
122
142
 
123
143
  ._1xil9geg {
124
- animation: .2s ease-out _1xil9gec;
125
- }
126
-
127
- ._1xil9geh {
128
- animation: .2s ease-out _1xil9gee;
129
- }
130
-
131
- ._1xil9gei {
132
- animation: .15s ease-in forwards _1xil9ged;
133
- }
134
-
135
- ._1xil9gej {
136
- animation: .15s ease-in forwards _1xil9gef;
137
- }
138
-
139
- ._1xil9gek {
140
144
  flex-shrink: 0;
141
145
  margin-top: .125em;
142
146
  }
143
147
 
144
- ._1xil9gel {
148
+ ._1xil9geh {
145
149
  gap: var(--vinyasa-space1);
146
150
  flex-direction: column;
147
151
  flex-grow: 1;
148
152
  display: flex;
149
153
  }
150
154
 
151
- ._1xil9gem {
155
+ ._1xil9gei {
152
156
  font-size: var(--vinyasa-font-size-sm);
153
157
  font-weight: var(--vinyasa-font-weight-semibold);
154
158
  margin: 0;
155
159
  }
156
160
 
157
- ._1xil9gen {
161
+ ._1xil9gej {
158
162
  font-size: var(--vinyasa-font-size-sm);
159
163
  margin: 0;
160
164
  }
161
165
 
162
- ._1xil9geo {
166
+ ._1xil9gek {
163
167
  color: inherit;
164
168
  cursor: pointer;
165
169
  opacity: .6;
@@ -170,7 +174,20 @@
170
174
  display: inline-flex;
171
175
  }
172
176
 
173
- ._1xil9geo:hover {
177
+ ._1xil9gek:hover {
174
178
  opacity: 1;
175
179
  }
176
180
 
181
+ ._1xil9gel {
182
+ color: inherit;
183
+ cursor: pointer;
184
+ font-size: var(--vinyasa-font-size-sm);
185
+ font-weight: var(--vinyasa-font-weight-semibold);
186
+ text-underline-offset: .15em;
187
+ background: none;
188
+ border: none;
189
+ flex-shrink: 0;
190
+ padding: 0;
191
+ text-decoration: underline;
192
+ }
193
+
package/dist/esm/147.css CHANGED
@@ -1,4 +1,4 @@
1
- @keyframes _1xil9gec {
1
+ @keyframes _1xil9ge7 {
2
2
  from {
3
3
  opacity: 0;
4
4
  transform: translateY(-.5rem);
@@ -10,7 +10,7 @@
10
10
  }
11
11
  }
12
12
 
13
- @keyframes _1xil9ged {
13
+ @keyframes _1xil9ge8 {
14
14
  from {
15
15
  opacity: 1;
16
16
  transform: translateY(0);
@@ -22,7 +22,7 @@
22
22
  }
23
23
  }
24
24
 
25
- @keyframes _1xil9gee {
25
+ @keyframes _1xil9ge9 {
26
26
  from {
27
27
  opacity: 0;
28
28
  transform: translateY(.5rem);
@@ -34,7 +34,7 @@
34
34
  }
35
35
  }
36
36
 
37
- @keyframes _1xil9gef {
37
+ @keyframes _1xil9gea {
38
38
  from {
39
39
  opacity: 1;
40
40
  transform: translateY(0);
@@ -50,7 +50,11 @@
50
50
  z-index: var(--vinyasa-z-index-toast);
51
51
  gap: var(--vinyasa-space2);
52
52
  pointer-events: none;
53
+ outline: none;
53
54
  flex-direction: column;
55
+ margin: 0;
56
+ padding: 0;
57
+ list-style: none;
54
58
  display: flex;
55
59
  position: fixed;
56
60
  }
@@ -87,7 +91,7 @@
87
91
  right: var(--vinyasa-space4);
88
92
  }
89
93
 
90
- ._1xil9ge7 {
94
+ ._1xil9geb {
91
95
  align-items: flex-start;
92
96
  gap: var(--vinyasa-space2);
93
97
  padding: var(--vinyasa-space3);
@@ -100,66 +104,66 @@
100
104
  display: flex;
101
105
  }
102
106
 
103
- ._1xil9ge8 {
107
+ ._1xil9geb[data-edge="top"][data-state="open"] {
108
+ animation: .2s ease-out _1xil9ge7;
109
+ }
110
+
111
+ ._1xil9geb[data-edge="top"][data-state="closed"] {
112
+ animation: .15s ease-in forwards _1xil9ge8;
113
+ }
114
+
115
+ ._1xil9geb[data-edge="bottom"][data-state="open"] {
116
+ animation: .2s ease-out _1xil9ge9;
117
+ }
118
+
119
+ ._1xil9geb[data-edge="bottom"][data-state="closed"] {
120
+ animation: .15s ease-in forwards _1xil9gea;
121
+ }
122
+
123
+ ._1xil9gec {
104
124
  background-color: var(--vinyasa-status-info-bg);
105
125
  color: var(--vinyasa-status-info-text);
106
126
  }
107
127
 
108
- ._1xil9ge9 {
128
+ ._1xil9ged {
109
129
  background-color: var(--vinyasa-status-success-bg);
110
130
  color: var(--vinyasa-status-success-text);
111
131
  }
112
132
 
113
- ._1xil9gea {
133
+ ._1xil9gee {
114
134
  background-color: var(--vinyasa-status-warning-bg);
115
135
  color: var(--vinyasa-status-warning-text);
116
136
  }
117
137
 
118
- ._1xil9geb {
138
+ ._1xil9gef {
119
139
  background-color: var(--vinyasa-status-error-bg);
120
140
  color: var(--vinyasa-status-error-text);
121
141
  }
122
142
 
123
143
  ._1xil9geg {
124
- animation: .2s ease-out _1xil9gec;
125
- }
126
-
127
- ._1xil9geh {
128
- animation: .2s ease-out _1xil9gee;
129
- }
130
-
131
- ._1xil9gei {
132
- animation: .15s ease-in forwards _1xil9ged;
133
- }
134
-
135
- ._1xil9gej {
136
- animation: .15s ease-in forwards _1xil9gef;
137
- }
138
-
139
- ._1xil9gek {
140
144
  flex-shrink: 0;
141
145
  margin-top: .125em;
142
146
  }
143
147
 
144
- ._1xil9gel {
148
+ ._1xil9geh {
145
149
  gap: var(--vinyasa-space1);
146
150
  flex-direction: column;
147
151
  flex-grow: 1;
148
152
  display: flex;
149
153
  }
150
154
 
151
- ._1xil9gem {
155
+ ._1xil9gei {
152
156
  font-size: var(--vinyasa-font-size-sm);
153
157
  font-weight: var(--vinyasa-font-weight-semibold);
154
158
  margin: 0;
155
159
  }
156
160
 
157
- ._1xil9gen {
161
+ ._1xil9gej {
158
162
  font-size: var(--vinyasa-font-size-sm);
159
163
  margin: 0;
160
164
  }
161
165
 
162
- ._1xil9geo {
166
+ ._1xil9gek {
163
167
  color: inherit;
164
168
  cursor: pointer;
165
169
  opacity: .6;
@@ -170,7 +174,20 @@
170
174
  display: inline-flex;
171
175
  }
172
176
 
173
- ._1xil9geo:hover {
177
+ ._1xil9gek:hover {
174
178
  opacity: 1;
175
179
  }
176
180
 
181
+ ._1xil9gel {
182
+ color: inherit;
183
+ cursor: pointer;
184
+ font-size: var(--vinyasa-font-size-sm);
185
+ font-weight: var(--vinyasa-font-weight-semibold);
186
+ text-underline-offset: .15em;
187
+ background: none;
188
+ border: none;
189
+ flex-shrink: 0;
190
+ padding: 0;
191
+ text-decoration: underline;
192
+ }
193
+