@sparrowengg/integrations-templates-frontend 8.0.3 → 8.0.5

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 (41) hide show
  1. package/dist/cjs/contact-import/components/ContactImportHeader.js +2 -6
  2. package/dist/cjs/contact-import/components/ContactImportHeader.js.map +1 -1
  3. package/dist/cjs/contact-import/index.js +2 -1
  4. package/dist/cjs/contact-import/index.js.map +1 -1
  5. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/hooks/use-toast.js +38 -1
  6. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/hooks/use-toast.js.map +1 -1
  7. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +4 -0
  8. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
  9. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-toast/dist/index.js +731 -0
  10. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-toast/dist/index.js.map +1 -0
  11. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/alert-fill.js +66 -0
  12. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/alert-fill.js.map +1 -0
  13. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/info-fill.js +88 -0
  14. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/info-fill.js.map +1 -0
  15. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/tick-circle-fill.js +66 -0
  16. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/tick-circle-fill.js.map +1 -0
  17. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/toast/toast.js +507 -0
  18. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/toast/toast.js.map +1 -0
  19. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/toast/toastr.js +87 -0
  20. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/toast/toastr.js.map +1 -0
  21. package/dist/es/contact-import/components/ContactImportHeader.js +2 -6
  22. package/dist/es/contact-import/components/ContactImportHeader.js.map +1 -1
  23. package/dist/es/contact-import/index.js +2 -1
  24. package/dist/es/contact-import/index.js.map +1 -1
  25. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/hooks/use-toast.js +19 -2
  26. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/hooks/use-toast.js.map +1 -1
  27. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +3 -1
  28. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -1
  29. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-toast/dist/index.js +696 -0
  30. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-toast/dist/index.js.map +1 -0
  31. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/alert-fill.js +64 -0
  32. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/alert-fill.js.map +1 -0
  33. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/info-fill.js +86 -0
  34. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/info-fill.js.map +1 -0
  35. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/tick-circle-fill.js +64 -0
  36. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/tick-circle-fill.js.map +1 -0
  37. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/toast/toast.js +501 -0
  38. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/toast/toast.js.map +1 -0
  39. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/toast/toastr.js +85 -0
  40. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/toast/toastr.js.map +1 -0
  41. package/package.json +1 -1
@@ -0,0 +1,501 @@
1
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import React__default from 'react';
3
+ import { Provider as Provider$1, Title, Description, Viewport, Root as Root2, Close, Action } from '../node_modules/@radix-ui/react-toast/dist/index.js';
4
+ import { CircleLoader } from '../loader/circle.js';
5
+ import { styled, keyframes, hexToRgba } from '../stitches.config.js';
6
+ import { Flex } from '../flex/flex.js';
7
+ import { Box } from '../box/box.js';
8
+ import { TooltipProvider, Tooltip } from '../tooltip/tooltip.js';
9
+ import { TickCircleFillIcon } from '../packages/react-icons/dist/es/icons/tick-circle-fill.js';
10
+ import { AlertFillIcon } from '../packages/react-icons/dist/es/icons/alert-fill.js';
11
+ import { InfoFillIcon } from '../packages/react-icons/dist/es/icons/info-fill.js';
12
+ import { CloseIcon } from '../packages/react-icons/dist/es/icons/close.js';
13
+
14
+ var __defProp = Object.defineProperty;
15
+ var __defProps = Object.defineProperties;
16
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
17
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
18
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
19
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
20
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21
+ var __spreadValues = (a, b) => {
22
+ for (var prop in b || (b = {}))
23
+ if (__hasOwnProp.call(b, prop))
24
+ __defNormalProp(a, prop, b[prop]);
25
+ if (__getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(b)) {
27
+ if (__propIsEnum.call(b, prop))
28
+ __defNormalProp(a, prop, b[prop]);
29
+ }
30
+ return a;
31
+ };
32
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
33
+ var __objRest = (source, exclude) => {
34
+ var target = {};
35
+ for (var prop in source)
36
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
37
+ target[prop] = source[prop];
38
+ if (source != null && __getOwnPropSymbols)
39
+ for (var prop of __getOwnPropSymbols(source)) {
40
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
41
+ target[prop] = source[prop];
42
+ }
43
+ return target;
44
+ };
45
+ const StyledTickIcon = styled(TickCircleFillIcon);
46
+ const StyledErrorIcon = styled(AlertFillIcon);
47
+ const StyledWarningIcon = styled(InfoFillIcon);
48
+ const hide = keyframes({
49
+ "0%": { opacity: 1 },
50
+ "100%": { opacity: 0 }
51
+ });
52
+ const slideInFromRight = keyframes({
53
+ from: { transform: "translateX(calc(100% + $space$12))" },
54
+ to: { transform: "translateX(0)" }
55
+ });
56
+ const slideInFromLeft = keyframes({
57
+ from: { transform: "translateX(calc(-100% + $space$12))" },
58
+ to: { transform: "translateX(0)" }
59
+ });
60
+ const slideInFromTop = keyframes({
61
+ from: { transform: "translateY(calc(-100% + $space$12))" },
62
+ to: { transform: "translateY(0)" }
63
+ });
64
+ const slideInFromBottom = keyframes({
65
+ from: { transform: "translateY(calc(100% + $space$12))" },
66
+ to: { transform: "translateY(0)" }
67
+ });
68
+ const swipeOutToRight = keyframes({
69
+ from: { transform: "translateX(var(--radix-toast-swipe-end-x))" },
70
+ to: { transform: "translateX(100vw)" }
71
+ });
72
+ const swipeOutToLeft = keyframes({
73
+ from: { transform: "translateX(var(--radix-toast-swipe-end-x))" },
74
+ to: { transform: "translateX(-100vw)" }
75
+ });
76
+ const swipeOutToTop = keyframes({
77
+ from: { transform: "translateY(var(--radix-toast-swipe-end-y))" },
78
+ to: { transform: "translateY(-100vh)" }
79
+ });
80
+ const swipeOutToBottom = keyframes({
81
+ from: { transform: "translateY(var(--radix-toast-swipe-end-y))" },
82
+ to: { transform: "translateY(100vh)" }
83
+ });
84
+ const StyledViewport = styled(Viewport, {
85
+ position: "fixed",
86
+ display: "flex",
87
+ flexDirection: "column",
88
+ gap: "$space$5",
89
+ minWidth: 400,
90
+ maxWidth: "100vw",
91
+ margin: 0,
92
+ listStyle: "none",
93
+ zIndex: 99999999,
94
+ outline: "none",
95
+ "& li": {
96
+ "@media (prefers-reduced-motion: no-preference)": {
97
+ '&[data-swipe-direction="up"], &[data-swipe-direction="down"]': {
98
+ '&[data-swipe="move"]': {
99
+ transform: "translateY(var(--radix-toast-swipe-move-y))"
100
+ },
101
+ '&[data-swipe="cancel"]': {
102
+ transform: "translateY(0)",
103
+ transition: "transform 200ms ease-out"
104
+ }
105
+ },
106
+ '&[data-swipe-direction="up"]': {
107
+ '&[data-swipe="end"]': {
108
+ animation: `${swipeOutToTop} 150ms ease-out`
109
+ }
110
+ },
111
+ '&[data-swipe-direction="down"]': {
112
+ '&[data-swipe="end"]': {
113
+ animation: `${swipeOutToBottom} 150ms ease-out`
114
+ }
115
+ },
116
+ '&[data-swipe-direction="left"], &[data-swipe-direction="right"]': {
117
+ '&[data-swipe="move"]': {
118
+ transform: "translateX(var(--radix-toast-swipe-move-x))"
119
+ },
120
+ '&[data-swipe="cancel"]': {
121
+ transform: "translateX(0)",
122
+ transition: "transform 200ms ease-out"
123
+ }
124
+ },
125
+ '&[data-swipe-direction="left"]': {
126
+ '&[data-swipe="end"]': {
127
+ animation: `${swipeOutToLeft} 300ms ease-out`
128
+ }
129
+ },
130
+ '&[data-swipe-direction="right"]': {
131
+ '&[data-swipe="end"]': {
132
+ animation: `${swipeOutToRight} 300ms ease-out`
133
+ }
134
+ }
135
+ }
136
+ },
137
+ variants: {
138
+ position: {
139
+ "top-left": {
140
+ top: "0",
141
+ left: "0",
142
+ paddingTop: "$12",
143
+ paddingLeft: "$12",
144
+ "& li": {
145
+ "@media (prefers-reduced-motion: no-preference)": {
146
+ '&[data-state="open"]': {
147
+ animation: `${slideInFromLeft} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
148
+ }
149
+ }
150
+ }
151
+ },
152
+ "top-center": {
153
+ top: "0",
154
+ left: "50%",
155
+ transform: "translateX(-50%)",
156
+ paddingTop: "$12",
157
+ "& li": {
158
+ "@media (prefers-reduced-motion: no-preference)": {
159
+ '&[data-state="open"]': {
160
+ animation: `${slideInFromTop} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
161
+ }
162
+ }
163
+ }
164
+ },
165
+ "top-right": {
166
+ top: "0",
167
+ right: "0",
168
+ paddingTop: "$12",
169
+ paddingRight: "$12",
170
+ "& li": {
171
+ "@media (prefers-reduced-motion: no-preference)": {
172
+ '&[data-state="open"]': {
173
+ animation: `${slideInFromRight} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
174
+ }
175
+ }
176
+ }
177
+ },
178
+ "bottom-left": {
179
+ bottom: "0",
180
+ left: "0",
181
+ paddingBottom: "$12",
182
+ paddingLeft: "$12",
183
+ "& li": {
184
+ "@media (prefers-reduced-motion: no-preference)": {
185
+ '&[data-state="open"]': {
186
+ animation: `${slideInFromLeft} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
187
+ }
188
+ }
189
+ }
190
+ },
191
+ "bottom-center": {
192
+ bottom: "0",
193
+ left: "50%",
194
+ paddingBottom: "$12",
195
+ transform: "translateX(-50%)",
196
+ "& li": {
197
+ "@media (prefers-reduced-motion: no-preference)": {
198
+ '&[data-state="open"]': {
199
+ animation: `${slideInFromBottom} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
200
+ }
201
+ }
202
+ }
203
+ },
204
+ "bottom-right": {
205
+ bottom: "0",
206
+ right: "0",
207
+ paddingBottom: "$12",
208
+ paddingRight: "$12",
209
+ "& li": {
210
+ "@media (prefers-reduced-motion: no-preference)": {
211
+ '&[data-state="open"]': {
212
+ animation: `${slideInFromRight} 150ms cubic-bezier(0.16, 1, 0.3, 1)`
213
+ }
214
+ }
215
+ }
216
+ }
217
+ }
218
+ },
219
+ defaultVariants: {
220
+ position: "bottom-center"
221
+ }
222
+ });
223
+ const StyledIcon = styled(Flex, {
224
+ gridArea: "icon",
225
+ width: "$6",
226
+ height: "$6",
227
+ alignItems: "center",
228
+ justifyContent: "center"
229
+ });
230
+ const Icon = (_a) => {
231
+ var _b = _a, { children, variant = "success" } = _b, props = __objRest(_b, ["children", "variant"]);
232
+ const iconMap = {
233
+ default: () => /* @__PURE__ */ jsx(StyledTickIcon, { size: 24 }),
234
+ success: () => /* @__PURE__ */ jsx(StyledTickIcon, { size: 24 }),
235
+ error: () => /* @__PURE__ */ jsx(StyledErrorIcon, { size: 24 }),
236
+ warning: () => /* @__PURE__ */ jsx(StyledWarningIcon, { size: 24 })
237
+ };
238
+ return variant === "loading" ? children || /* @__PURE__ */ jsx(StyledIcon, { children: /* @__PURE__ */ jsx(CircleLoader, { size: "xl", color: "accent" }) }) : /* @__PURE__ */ jsx(StyledIcon, __spreadProps(__spreadValues({}, props), { children: children || /* @__PURE__ */ jsx(Fragment, { children: iconMap[variant]() }) }));
239
+ };
240
+ const StyledTitle = styled(Title, {
241
+ fontWeight: "$7",
242
+ lineHeight: "$sm",
243
+ fontSize: "$sm"
244
+ });
245
+ const StyledDescription = styled(Description, {
246
+ gridArea: "description",
247
+ margin: 0,
248
+ color: "$white900",
249
+ fontSize: "$sm"
250
+ });
251
+ const defaultBoxShadow = `0px 56px 70px 30px ${hexToRgba("$white900", 0.4)}, 0px 10px 20px 0px ${hexToRgba("$accent500", 0.15)}, 0px 2px 5px 0px ${hexToRgba("$accent500", 0.06)}, 0px 1px 1px 0px ${hexToRgba("$accent500", 0.06)}`;
252
+ const successBoxShadow = `0px 56px 70px 30px ${hexToRgba("$white900", 0.4)}, 0px 10px 20px 0px ${hexToRgba("$accent700", 0.15)}, 0px 2px 5px 0px ${hexToRgba("$accent700", 0.06)}, 0px 1px 1px 0px ${hexToRgba("$accent700", 0.06)}`;
253
+ const errorBoxShadow = `0px 56px 70px 30px ${hexToRgba("$white900", 0.4)}, 0px 10px 20px 0px ${hexToRgba("$negative700", 0.15)}, 0px 2px 5px 0px ${hexToRgba("$negative700", 0.06)}, 0px 1px 1px 0px ${hexToRgba("$negative700", 0.06)}`;
254
+ const warningBoxShadow = `0px 56px 70px 30px ${hexToRgba("$white900", 0.4)}, 0px 10px 20px 0px ${hexToRgba("$warning700", 0.15)}, 0px 2px 5px 0px ${hexToRgba("$warning700", 0.06)}, 0px 1px 1px 0px ${hexToRgba("$warning700", 0.06)}`;
255
+ const StyledToast = styled(Root2, {
256
+ backgroundColor: "$neutral900",
257
+ borderRadius: "$xl",
258
+ display: "flex",
259
+ borderWidth: ".5px",
260
+ borderStyle: "solid",
261
+ borderColorOpacity: ["$secondary500", 0.4],
262
+ padding: "$7 $8",
263
+ overflow: "hidden",
264
+ "&:focus, &:active": {
265
+ outline: "none"
266
+ },
267
+ "&:focus-visible": {
268
+ $$shadowColor: "$colors$primary300",
269
+ boxShadow: "rgb(255, 255, 255) 0px 0px 0px 2px, $$shadowColor 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px"
270
+ },
271
+ variants: {
272
+ variant: {
273
+ default: {
274
+ background: "$accent50",
275
+ boxShadow: defaultBoxShadow,
276
+ [`& ${StyledIcon} svg`]: {
277
+ color: "$accent500"
278
+ },
279
+ [`& ${StyledTitle}`]: {
280
+ color: "$black900"
281
+ },
282
+ [`& ${StyledDescription}`]: {
283
+ color: "$black800"
284
+ }
285
+ },
286
+ success: {
287
+ background: "$accent500",
288
+ boxShadow: successBoxShadow,
289
+ [`& ${StyledIcon} svg`]: {
290
+ color: "$accent100"
291
+ },
292
+ [`& ${StyledTitle}`]: {
293
+ color: "$white900"
294
+ },
295
+ [`& ${StyledDescription}`]: {
296
+ color: "$white800"
297
+ }
298
+ },
299
+ error: {
300
+ background: "$negative600",
301
+ boxShadow: errorBoxShadow,
302
+ [`& ${StyledIcon} svg`]: {
303
+ color: "$white900"
304
+ },
305
+ [`& ${StyledTitle}`]: {
306
+ color: "$white900"
307
+ },
308
+ [`& ${StyledDescription}`]: {
309
+ color: "$white800"
310
+ }
311
+ },
312
+ warning: {
313
+ background: "$warning200",
314
+ boxShadow: warningBoxShadow,
315
+ [`& ${StyledIcon} svg`]: {
316
+ color: "$black700"
317
+ },
318
+ [`& ${StyledTitle}`]: {
319
+ color: "$black900"
320
+ },
321
+ [`& ${StyledDescription}`]: {
322
+ color: "$black800"
323
+ }
324
+ },
325
+ loading: {
326
+ backgroundColorOpacity: ["$accent500", 0.04],
327
+ borderColorOpacity: ["$accent500", 0.2],
328
+ borderRadius: "$xl",
329
+ [`& ${StyledTitle}`]: {
330
+ color: "$neutral900"
331
+ },
332
+ [`& ${StyledDescription}`]: {
333
+ color: "$black800"
334
+ }
335
+ }
336
+ }
337
+ },
338
+ "@media (prefers-reduced-motion: no-preference)": {
339
+ '&[data-state="closed"]': {
340
+ animation: `${hide} 100ms ease-in`
341
+ },
342
+ '&[data-swipe="move"]': {
343
+ transform: "translateX(var(--radix-toast-swipe-move-x))"
344
+ },
345
+ '&[data-swipe="cancel"]': {
346
+ transform: "translateX(0)",
347
+ transition: "transform 200ms ease-out"
348
+ }
349
+ },
350
+ defaultVariants: {
351
+ variant: "default"
352
+ }
353
+ });
354
+ const StyledToastWrapper = styled(Box, {
355
+ display: "grid",
356
+ minWidth: "100%",
357
+ gridTemplateAreas: '"icon content action" "icon content action"',
358
+ gridTemplateColumns: "max-content auto max-content",
359
+ columnGap: "$4",
360
+ alignItems: "center"
361
+ });
362
+ const ToastWrapper = (_c) => {
363
+ var _d = _c, {
364
+ children,
365
+ icon,
366
+ variant = "default",
367
+ showCloseButton
368
+ } = _d, props = __objRest(_d, [
369
+ "children",
370
+ "icon",
371
+ "variant",
372
+ "showCloseButton"
373
+ ]);
374
+ return /* @__PURE__ */ jsx(StyledToast, __spreadProps(__spreadValues({ "data-testid": "toast", variant }, props), { children: /* @__PURE__ */ jsxs(StyledToastWrapper, { children: [
375
+ /* @__PURE__ */ jsx(Icon, { variant, children: icon && React__default.cloneElement(icon) }),
376
+ children,
377
+ showCloseButton && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(
378
+ Tooltip,
379
+ {
380
+ content: "Close",
381
+ css: { zIndex: 1e8 },
382
+ sideOffset: 4,
383
+ delayDuration: 0,
384
+ children: /* @__PURE__ */ jsx(StyledClose, { "aria-label": "Close", variant, children: /* @__PURE__ */ jsx(CloseIcon, { size: 20 }) })
385
+ }
386
+ ) })
387
+ ] }) }));
388
+ };
389
+ const Provider = (_e) => {
390
+ var _f = _e, {
391
+ duration,
392
+ label,
393
+ swipeDirection,
394
+ swipeThreshold,
395
+ children
396
+ } = _f, rest = __objRest(_f, [
397
+ "duration",
398
+ "label",
399
+ "swipeDirection",
400
+ "swipeThreshold",
401
+ "children"
402
+ ]);
403
+ return /* @__PURE__ */ jsxs(
404
+ Provider$1,
405
+ {
406
+ duration,
407
+ label,
408
+ swipeDirection,
409
+ swipeThreshold,
410
+ children: [
411
+ children,
412
+ /* @__PURE__ */ jsx(StyledViewport, __spreadValues({}, rest))
413
+ ]
414
+ }
415
+ );
416
+ };
417
+ const StyledContent = styled(Flex, {
418
+ gridArea: "content",
419
+ height: "100%",
420
+ flexDirection: "column",
421
+ justifyContent: "center",
422
+ gap: "$2",
423
+ overflow: "hidden"
424
+ });
425
+ const Content = (_g) => {
426
+ var _h = _g, { children } = _h, props = __objRest(_h, ["children"]);
427
+ return /* @__PURE__ */ jsx(StyledContent, __spreadProps(__spreadValues({}, props), { children }));
428
+ };
429
+ styled(Action, {
430
+ gridArea: "action",
431
+ padding: "0 $6",
432
+ display: "flex",
433
+ alignItems: "center",
434
+ justifyContent: "center",
435
+ position: "relative"
436
+ });
437
+ const StyledClose = styled(Close, {
438
+ gridArea: "action",
439
+ display: "flex",
440
+ padding: "$1",
441
+ border: "none",
442
+ cursor: "pointer",
443
+ borderRadius: "$sm",
444
+ "&:focus, &:active": {
445
+ outline: "none"
446
+ },
447
+ "&:focus-visible": {
448
+ $$shadowColor: "$colors$primary300",
449
+ boxShadow: "rgb(255, 255, 255) 0px 0px 0px 2px, $$shadowColor 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px"
450
+ },
451
+ variants: {
452
+ variant: {
453
+ default: {
454
+ color: "$secondary500",
455
+ backgroundColorOpacity: ["$secondary500", 0.08],
456
+ "&:hover": {
457
+ backgroundColorOpacity: ["$secondary500", 0.15]
458
+ }
459
+ },
460
+ success: {
461
+ color: "$white900",
462
+ backgroundColorOpacity: ["$white200", 0.1],
463
+ "&:hover": {
464
+ backgroundColorOpacity: ["$white200", 0.15]
465
+ }
466
+ },
467
+ error: {
468
+ color: "$white900",
469
+ backgroundColorOpacity: ["$white200", 0.1],
470
+ "&:hover": {
471
+ backgroundColorOpacity: ["$white200", 0.15]
472
+ }
473
+ },
474
+ warning: {
475
+ color: "$secondary600",
476
+ backgroundColorOpacity: ["$secondary500", 0.08],
477
+ "&:hover": {
478
+ backgroundColorOpacity: ["$secondary500", 0.15]
479
+ }
480
+ },
481
+ loading: {
482
+ color: "$secondary500",
483
+ backgroundColorOpacity: ["$secondary500", 0.08],
484
+ "&:hover": {
485
+ backgroundColorOpacity: ["$secondary500", 0.15]
486
+ }
487
+ }
488
+ }
489
+ },
490
+ defaultVariants: {
491
+ variant: "default"
492
+ }
493
+ });
494
+ const ToastProvider = Provider;
495
+ const Toast = ToastWrapper;
496
+ const ToastContent = Content;
497
+ const ToastTitle = StyledTitle;
498
+ const ToastDescription = StyledDescription;
499
+
500
+ export { Toast, ToastContent, ToastDescription, ToastProvider, ToastTitle };
501
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.js","sources":["../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/toast/toast.js"],"sourcesContent":["import { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport React__default from 'react';\nimport { Viewport, Title, Description, Root as Root2, Action as Action$1, Close, Provider as Provider$1 } from '../node_modules/@radix-ui/react-toast/dist/index.js';\nimport { CircleLoader } from '../loader/circle.js';\nimport { styled, keyframes, hexToRgba } from '../stitches.config.js';\nimport { Flex } from '../flex/flex.js';\nimport { Box } from '../box/box.js';\nimport { TooltipProvider, Tooltip } from '../tooltip/tooltip.js';\nimport { TickCircleFillIcon } from '../packages/react-icons/dist/es/icons/tick-circle-fill.js';\nimport { AlertFillIcon } from '../packages/react-icons/dist/es/icons/alert-fill.js';\nimport { InfoFillIcon } from '../packages/react-icons/dist/es/icons/info-fill.js';\nimport { CloseIcon } from '../packages/react-icons/dist/es/icons/close.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nconst StyledTickIcon = styled(TickCircleFillIcon);\nconst StyledErrorIcon = styled(AlertFillIcon);\nconst StyledWarningIcon = styled(InfoFillIcon);\nconst hide = keyframes({\n \"0%\": { opacity: 1 },\n \"100%\": { opacity: 0 }\n});\nconst slideInFromRight = keyframes({\n from: { transform: \"translateX(calc(100% + $space$12))\" },\n to: { transform: \"translateX(0)\" }\n});\nconst slideInFromLeft = keyframes({\n from: { transform: \"translateX(calc(-100% + $space$12))\" },\n to: { transform: \"translateX(0)\" }\n});\nconst slideInFromTop = keyframes({\n from: { transform: \"translateY(calc(-100% + $space$12))\" },\n to: { transform: \"translateY(0)\" }\n});\nconst slideInFromBottom = keyframes({\n from: { transform: \"translateY(calc(100% + $space$12))\" },\n to: { transform: \"translateY(0)\" }\n});\nconst swipeOutToRight = keyframes({\n from: { transform: \"translateX(var(--radix-toast-swipe-end-x))\" },\n to: { transform: \"translateX(100vw)\" }\n});\nconst swipeOutToLeft = keyframes({\n from: { transform: \"translateX(var(--radix-toast-swipe-end-x))\" },\n to: { transform: \"translateX(-100vw)\" }\n});\nconst swipeOutToTop = keyframes({\n from: { transform: \"translateY(var(--radix-toast-swipe-end-y))\" },\n to: { transform: \"translateY(-100vh)\" }\n});\nconst swipeOutToBottom = keyframes({\n from: { transform: \"translateY(var(--radix-toast-swipe-end-y))\" },\n to: { transform: \"translateY(100vh)\" }\n});\nconst StyledViewport = styled(Viewport, {\n position: \"fixed\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"$space$5\",\n minWidth: 400,\n maxWidth: \"100vw\",\n margin: 0,\n listStyle: \"none\",\n zIndex: 99999999,\n outline: \"none\",\n \"& li\": {\n \"@media (prefers-reduced-motion: no-preference)\": {\n '&[data-swipe-direction=\"up\"], &[data-swipe-direction=\"down\"]': {\n '&[data-swipe=\"move\"]': {\n transform: \"translateY(var(--radix-toast-swipe-move-y))\"\n },\n '&[data-swipe=\"cancel\"]': {\n transform: \"translateY(0)\",\n transition: \"transform 200ms ease-out\"\n }\n },\n '&[data-swipe-direction=\"up\"]': {\n '&[data-swipe=\"end\"]': {\n animation: `${swipeOutToTop} 150ms ease-out`\n }\n },\n '&[data-swipe-direction=\"down\"]': {\n '&[data-swipe=\"end\"]': {\n animation: `${swipeOutToBottom} 150ms ease-out`\n }\n },\n '&[data-swipe-direction=\"left\"], &[data-swipe-direction=\"right\"]': {\n '&[data-swipe=\"move\"]': {\n transform: \"translateX(var(--radix-toast-swipe-move-x))\"\n },\n '&[data-swipe=\"cancel\"]': {\n transform: \"translateX(0)\",\n transition: \"transform 200ms ease-out\"\n }\n },\n '&[data-swipe-direction=\"left\"]': {\n '&[data-swipe=\"end\"]': {\n animation: `${swipeOutToLeft} 300ms ease-out`\n }\n },\n '&[data-swipe-direction=\"right\"]': {\n '&[data-swipe=\"end\"]': {\n animation: `${swipeOutToRight} 300ms ease-out`\n }\n }\n }\n },\n variants: {\n position: {\n \"top-left\": {\n top: \"0\",\n left: \"0\",\n paddingTop: \"$12\",\n paddingLeft: \"$12\",\n \"& li\": {\n \"@media (prefers-reduced-motion: no-preference)\": {\n '&[data-state=\"open\"]': {\n animation: `${slideInFromLeft} 150ms cubic-bezier(0.16, 1, 0.3, 1)`\n }\n }\n }\n },\n \"top-center\": {\n top: \"0\",\n left: \"50%\",\n transform: \"translateX(-50%)\",\n paddingTop: \"$12\",\n \"& li\": {\n \"@media (prefers-reduced-motion: no-preference)\": {\n '&[data-state=\"open\"]': {\n animation: `${slideInFromTop} 150ms cubic-bezier(0.16, 1, 0.3, 1)`\n }\n }\n }\n },\n \"top-right\": {\n top: \"0\",\n right: \"0\",\n paddingTop: \"$12\",\n paddingRight: \"$12\",\n \"& li\": {\n \"@media (prefers-reduced-motion: no-preference)\": {\n '&[data-state=\"open\"]': {\n animation: `${slideInFromRight} 150ms cubic-bezier(0.16, 1, 0.3, 1)`\n }\n }\n }\n },\n \"bottom-left\": {\n bottom: \"0\",\n left: \"0\",\n paddingBottom: \"$12\",\n paddingLeft: \"$12\",\n \"& li\": {\n \"@media (prefers-reduced-motion: no-preference)\": {\n '&[data-state=\"open\"]': {\n animation: `${slideInFromLeft} 150ms cubic-bezier(0.16, 1, 0.3, 1)`\n }\n }\n }\n },\n \"bottom-center\": {\n bottom: \"0\",\n left: \"50%\",\n paddingBottom: \"$12\",\n transform: \"translateX(-50%)\",\n \"& li\": {\n \"@media (prefers-reduced-motion: no-preference)\": {\n '&[data-state=\"open\"]': {\n animation: `${slideInFromBottom} 150ms cubic-bezier(0.16, 1, 0.3, 1)`\n }\n }\n }\n },\n \"bottom-right\": {\n bottom: \"0\",\n right: \"0\",\n paddingBottom: \"$12\",\n paddingRight: \"$12\",\n \"& li\": {\n \"@media (prefers-reduced-motion: no-preference)\": {\n '&[data-state=\"open\"]': {\n animation: `${slideInFromRight} 150ms cubic-bezier(0.16, 1, 0.3, 1)`\n }\n }\n }\n }\n }\n },\n defaultVariants: {\n position: \"bottom-center\"\n }\n});\nconst StyledIcon = styled(Flex, {\n gridArea: \"icon\",\n width: \"$6\",\n height: \"$6\",\n alignItems: \"center\",\n justifyContent: \"center\"\n});\nconst Icon = (_a) => {\n var _b = _a, { children, variant = \"success\" } = _b, props = __objRest(_b, [\"children\", \"variant\"]);\n const iconMap = {\n default: () => /* @__PURE__ */ jsx(StyledTickIcon, { size: 24 }),\n success: () => /* @__PURE__ */ jsx(StyledTickIcon, { size: 24 }),\n error: () => /* @__PURE__ */ jsx(StyledErrorIcon, { size: 24 }),\n warning: () => /* @__PURE__ */ jsx(StyledWarningIcon, { size: 24 })\n };\n return variant === \"loading\" ? children || /* @__PURE__ */ jsx(StyledIcon, { children: /* @__PURE__ */ jsx(CircleLoader, { size: \"xl\", color: \"accent\" }) }) : /* @__PURE__ */ jsx(StyledIcon, __spreadProps(__spreadValues({}, props), { children: children || /* @__PURE__ */ jsx(Fragment, { children: iconMap[variant]() }) }));\n};\nconst StyledTitle = styled(Title, {\n fontWeight: \"$7\",\n lineHeight: \"$sm\",\n fontSize: \"$sm\"\n});\nconst StyledDescription = styled(Description, {\n gridArea: \"description\",\n margin: 0,\n color: \"$white900\",\n fontSize: \"$sm\"\n});\nconst defaultBoxShadow = `0px 56px 70px 30px ${hexToRgba(\"$white900\", 0.4)}, 0px 10px 20px 0px ${hexToRgba(\"$accent500\", 0.15)}, 0px 2px 5px 0px ${hexToRgba(\"$accent500\", 0.06)}, 0px 1px 1px 0px ${hexToRgba(\"$accent500\", 0.06)}`;\nconst successBoxShadow = `0px 56px 70px 30px ${hexToRgba(\"$white900\", 0.4)}, 0px 10px 20px 0px ${hexToRgba(\"$accent700\", 0.15)}, 0px 2px 5px 0px ${hexToRgba(\"$accent700\", 0.06)}, 0px 1px 1px 0px ${hexToRgba(\"$accent700\", 0.06)}`;\nconst errorBoxShadow = `0px 56px 70px 30px ${hexToRgba(\"$white900\", 0.4)}, 0px 10px 20px 0px ${hexToRgba(\"$negative700\", 0.15)}, 0px 2px 5px 0px ${hexToRgba(\"$negative700\", 0.06)}, 0px 1px 1px 0px ${hexToRgba(\"$negative700\", 0.06)}`;\nconst warningBoxShadow = `0px 56px 70px 30px ${hexToRgba(\"$white900\", 0.4)}, 0px 10px 20px 0px ${hexToRgba(\"$warning700\", 0.15)}, 0px 2px 5px 0px ${hexToRgba(\"$warning700\", 0.06)}, 0px 1px 1px 0px ${hexToRgba(\"$warning700\", 0.06)}`;\nconst StyledToast = styled(Root2, {\n backgroundColor: \"$neutral900\",\n borderRadius: \"$xl\",\n display: \"flex\",\n borderWidth: \".5px\",\n borderStyle: \"solid\",\n borderColorOpacity: [\"$secondary500\", 0.4],\n padding: \"$7 $8\",\n overflow: \"hidden\",\n \"&:focus, &:active\": {\n outline: \"none\"\n },\n \"&:focus-visible\": {\n $$shadowColor: \"$colors$primary300\",\n boxShadow: \"rgb(255, 255, 255) 0px 0px 0px 2px, $$shadowColor 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px\"\n },\n variants: {\n variant: {\n default: {\n background: \"$accent50\",\n boxShadow: defaultBoxShadow,\n [`& ${StyledIcon} svg`]: {\n color: \"$accent500\"\n },\n [`& ${StyledTitle}`]: {\n color: \"$black900\"\n },\n [`& ${StyledDescription}`]: {\n color: \"$black800\"\n }\n },\n success: {\n background: \"$accent500\",\n boxShadow: successBoxShadow,\n [`& ${StyledIcon} svg`]: {\n color: \"$accent100\"\n },\n [`& ${StyledTitle}`]: {\n color: \"$white900\"\n },\n [`& ${StyledDescription}`]: {\n color: \"$white800\"\n }\n },\n error: {\n background: \"$negative600\",\n boxShadow: errorBoxShadow,\n [`& ${StyledIcon} svg`]: {\n color: \"$white900\"\n },\n [`& ${StyledTitle}`]: {\n color: \"$white900\"\n },\n [`& ${StyledDescription}`]: {\n color: \"$white800\"\n }\n },\n warning: {\n background: \"$warning200\",\n boxShadow: warningBoxShadow,\n [`& ${StyledIcon} svg`]: {\n color: \"$black700\"\n },\n [`& ${StyledTitle}`]: {\n color: \"$black900\"\n },\n [`& ${StyledDescription}`]: {\n color: \"$black800\"\n }\n },\n loading: {\n backgroundColorOpacity: [\"$accent500\", 0.04],\n borderColorOpacity: [\"$accent500\", 0.2],\n borderRadius: \"$xl\",\n [`& ${StyledTitle}`]: {\n color: \"$neutral900\"\n },\n [`& ${StyledDescription}`]: {\n color: \"$black800\"\n }\n }\n }\n },\n \"@media (prefers-reduced-motion: no-preference)\": {\n '&[data-state=\"closed\"]': {\n animation: `${hide} 100ms ease-in`\n },\n '&[data-swipe=\"move\"]': {\n transform: \"translateX(var(--radix-toast-swipe-move-x))\"\n },\n '&[data-swipe=\"cancel\"]': {\n transform: \"translateX(0)\",\n transition: \"transform 200ms ease-out\"\n }\n },\n defaultVariants: {\n variant: \"default\"\n }\n});\nconst StyledToastWrapper = styled(Box, {\n display: \"grid\",\n minWidth: \"100%\",\n gridTemplateAreas: '\"icon content action\" \"icon content action\"',\n gridTemplateColumns: \"max-content auto max-content\",\n columnGap: \"$4\",\n alignItems: \"center\"\n});\nconst ToastWrapper = (_c) => {\n var _d = _c, {\n children,\n icon,\n variant = \"default\",\n showCloseButton\n } = _d, props = __objRest(_d, [\n \"children\",\n \"icon\",\n \"variant\",\n \"showCloseButton\"\n ]);\n return /* @__PURE__ */ jsx(StyledToast, __spreadProps(__spreadValues({ \"data-testid\": \"toast\", variant }, props), { children: /* @__PURE__ */ jsxs(StyledToastWrapper, { children: [\n /* @__PURE__ */ jsx(Icon, { variant, children: icon && React__default.cloneElement(icon) }),\n children,\n showCloseButton && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(\n Tooltip,\n {\n content: \"Close\",\n css: { zIndex: 1e8 },\n sideOffset: 4,\n delayDuration: 0,\n children: /* @__PURE__ */ jsx(StyledClose, { \"aria-label\": \"Close\", variant, children: /* @__PURE__ */ jsx(CloseIcon, { size: 20 }) })\n }\n ) })\n ] }) }));\n};\nconst Provider = (_e) => {\n var _f = _e, {\n duration,\n label,\n swipeDirection,\n swipeThreshold,\n children\n } = _f, rest = __objRest(_f, [\n \"duration\",\n \"label\",\n \"swipeDirection\",\n \"swipeThreshold\",\n \"children\"\n ]);\n return /* @__PURE__ */ jsxs(\n Provider$1,\n {\n duration,\n label,\n swipeDirection,\n swipeThreshold,\n children: [\n children,\n /* @__PURE__ */ jsx(StyledViewport, __spreadValues({}, rest))\n ]\n }\n );\n};\nconst StyledContent = styled(Flex, {\n gridArea: \"content\",\n height: \"100%\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n gap: \"$2\",\n overflow: \"hidden\"\n});\nconst Content = (_g) => {\n var _h = _g, { children } = _h, props = __objRest(_h, [\"children\"]);\n return /* @__PURE__ */ jsx(StyledContent, __spreadProps(__spreadValues({}, props), { children }));\n};\nconst StyledAction = styled(Action$1, {\n gridArea: \"action\",\n padding: \"0 $6\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"relative\"\n});\nconst Action = (_i) => {\n var _j = _i, { children } = _j, props = __objRest(_j, [\"children\"]);\n return /* @__PURE__ */ jsx(StyledAction, __spreadProps(__spreadValues({ className: \"toast-actions\" }, props), { children }));\n};\nconst StyledClose = styled(Close, {\n gridArea: \"action\",\n display: \"flex\",\n padding: \"$1\",\n border: \"none\",\n cursor: \"pointer\",\n borderRadius: \"$sm\",\n \"&:focus, &:active\": {\n outline: \"none\"\n },\n \"&:focus-visible\": {\n $$shadowColor: \"$colors$primary300\",\n boxShadow: \"rgb(255, 255, 255) 0px 0px 0px 2px, $$shadowColor 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px\"\n },\n variants: {\n variant: {\n default: {\n color: \"$secondary500\",\n backgroundColorOpacity: [\"$secondary500\", 0.08],\n \"&:hover\": {\n backgroundColorOpacity: [\"$secondary500\", 0.15]\n }\n },\n success: {\n color: \"$white900\",\n backgroundColorOpacity: [\"$white200\", 0.1],\n \"&:hover\": {\n backgroundColorOpacity: [\"$white200\", 0.15]\n }\n },\n error: {\n color: \"$white900\",\n backgroundColorOpacity: [\"$white200\", 0.1],\n \"&:hover\": {\n backgroundColorOpacity: [\"$white200\", 0.15]\n }\n },\n warning: {\n color: \"$secondary600\",\n backgroundColorOpacity: [\"$secondary500\", 0.08],\n \"&:hover\": {\n backgroundColorOpacity: [\"$secondary500\", 0.15]\n }\n },\n loading: {\n color: \"$secondary500\",\n backgroundColorOpacity: [\"$secondary500\", 0.08],\n \"&:hover\": {\n backgroundColorOpacity: [\"$secondary500\", 0.15]\n }\n }\n }\n },\n defaultVariants: {\n variant: \"default\"\n }\n});\nconst ToastProvider = Provider;\nconst ToastViewport = StyledViewport;\nconst Toast = ToastWrapper;\nconst ToastContent = Content;\nconst ToastTitle = StyledTitle;\nconst ToastDescription = StyledDescription;\nconst ToastAction = Action;\nconst ToastClose = StyledClose;\n\nexport { Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastProvider, ToastTitle, ToastViewport };\n//# sourceMappingURL=toast.js.map\n"],"names":["Action$1"],"mappings":";;;;;;;;;;;;;AAaA,IAAI,YA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AiB,IAAI;AAAA;AAChD,OACF;AAAA,MACA,OAAA,EAAS;AAAA,QACP,KAAA,EAAO,WAAA;AAAA,QACP,sBAAA,EAAwB,CAAC,WAAA,EAAa,GAAG,CAAA;AAAA,QACzC,SAAA,EAAW;AAAA,UACT,sBAAA,EAAwB,CAAC,WAAA,EAAa,IAAI;AAAA;AAC5C,OACF;AAAA,MACA,KAAA,EAAO;AAAA,QACL,KAAA,EAAO,WAAA;AAAA,QACP,sBAAA,EAAwB,CAAC,WAAA,EAAa,GAAG,CAAA;AAAA,QACzC,SAAA,EAAW;AAAA,UACT,sBAAA,EAAwB,CAAC,WAAA,EAAa,IAAI;AAAA;AAC5C,OACF;AAAA,MACA,OAAA,EAAS;AAAA,QACP,KAAA,EAAO,eAAA;AAAA,QACP,sBAAA,EAAwB,CAAC,eAAA,EAAiB,IAAI,CAAA;AAAA,QAC9C,SAAA,EAAW;AAAA,UACT,sBAAA,EAAwB,CAAC,eAAA,EAAiB,IAAI;AAAA;AAChD,OACF;AAAA,MACA,OAAA,EAAS;AAAA,QACP,KAAA,EAAO,eAAA;AAAA,QACP,sBAAA,EAAwB,CAAC,eAAA,EAAiB,IAAI,CAAA;AAAA,QAC9C,SAAA,EAAW;AAAA,UACT,sBAAA,EAAwB,CAAC,eAAA,EAAiB,IAAI;AAAA;AAChD;AACF;AACF,GACF;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,OAAA,EAAS;AAAA;AAEb,CAAC,CAAA;AACD,MAAM,aAAA,GAAgB;AAEtB,MAAM,KAAA,GAAQ;AACd,MAAM,YAAA,GAAe;AACrB,MAAM,UAAA,GAAa;AACnB,MAAM,gBAAA,GAAmB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,85 @@
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { ToastProvider, Toast, ToastContent, ToastTitle, ToastDescription } from './toast.js';
3
+ import { useToast } from '../hooks/use-toast.js';
4
+
5
+ var __defProp = Object.defineProperty;
6
+ var __defProps = Object.defineProperties;
7
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __objRest = (source, exclude) => {
25
+ var target = {};
26
+ for (var prop in source)
27
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
+ target[prop] = source[prop];
29
+ if (source != null && __getOwnPropSymbols)
30
+ for (var prop of __getOwnPropSymbols(source)) {
31
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
+ target[prop] = source[prop];
33
+ }
34
+ return target;
35
+ };
36
+ const Toastr = (_a) => {
37
+ var _b = _a, {
38
+ duration,
39
+ swipeDirection,
40
+ swipeThreshold,
41
+ maxToasts
42
+ } = _b, rest = __objRest(_b, [
43
+ "duration",
44
+ "swipeDirection",
45
+ "swipeThreshold",
46
+ "maxToasts"
47
+ ]);
48
+ const { toasts } = useToast({
49
+ maxToasts
50
+ });
51
+ return /* @__PURE__ */ jsx(
52
+ ToastProvider,
53
+ __spreadProps(__spreadValues({
54
+ duration,
55
+ swipeDirection,
56
+ swipeThreshold
57
+ }, rest), {
58
+ children: toasts.map((_a2) => {
59
+ var _b2 = _a2, {
60
+ id,
61
+ title,
62
+ description,
63
+ action,
64
+ showCloseButton
65
+ } = _b2, props = __objRest(_b2, [
66
+ "id",
67
+ "title",
68
+ "description",
69
+ "action",
70
+ "showCloseButton"
71
+ ]);
72
+ return /* @__PURE__ */ jsx(Toast, __spreadProps(__spreadValues({}, props), { showCloseButton: action ? false : showCloseButton, children: /* @__PURE__ */ jsxs(Fragment, { children: [
73
+ /* @__PURE__ */ jsxs(ToastContent, { children: [
74
+ title && /* @__PURE__ */ jsx(ToastTitle, { children: title }),
75
+ description && /* @__PURE__ */ jsx(ToastDescription, { children: description })
76
+ ] }),
77
+ action
78
+ ] }) }), id);
79
+ })
80
+ })
81
+ );
82
+ };
83
+
84
+ export { Toastr };
85
+ //# sourceMappingURL=toastr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toastr.js","sources":["../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/toast/toastr.js"],"sourcesContent":["import { jsx, jsxs, Fragment } from 'react/jsx-runtime';\nimport { ToastProvider, Toast, ToastContent, ToastTitle, ToastDescription } from './toast.js';\nimport { useToast } from '../hooks/use-toast.js';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nconst Toastr = (_a) => {\n var _b = _a, {\n duration,\n swipeDirection,\n swipeThreshold,\n maxToasts\n } = _b, rest = __objRest(_b, [\n \"duration\",\n \"swipeDirection\",\n \"swipeThreshold\",\n \"maxToasts\"\n ]);\n const { toasts } = useToast({\n maxToasts\n });\n return /* @__PURE__ */ jsx(\n ToastProvider,\n __spreadProps(__spreadValues({\n duration,\n swipeDirection,\n swipeThreshold\n }, rest), {\n children: toasts.map((_a2) => {\n var _b2 = _a2, {\n id,\n title,\n description,\n action,\n showCloseButton\n } = _b2, props = __objRest(_b2, [\n \"id\",\n \"title\",\n \"description\",\n \"action\",\n \"showCloseButton\"\n ]);\n return /* @__PURE__ */ jsx(Toast, __spreadProps(__spreadValues({}, props), { showCloseButton: action ? false : showCloseButton, children: /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsxs(ToastContent, { children: [\n title && /* @__PURE__ */ jsx(ToastTitle, { children: title }),\n description && /* @__PURE__ */ jsx(ToastDescription, { children: description })\n ] }),\n action\n ] }) }), id);\n })\n })\n );\n};\n\nexport { Toastr };\n//# sourceMappingURL=toastr.js.map\n"],"names":[],"mappings":";;;;AAIA,IAAI,YAAY,MAAA,CAAO,cAAA;AACvB,IAAI,aAAa,MAAA,CAAO,gBAAA;AACxB,IAAI,oBAAoB,MAAA,CAAO,yBAAA;AAC/B,IAAI,sBAAsB,MAAA,CAAO,qBAAA;AACjC,IAAI,YAAA,GAAe,OAAO,SAAA,CAAU,cAAA;AACpC,IAAI,YAAA,GAAe,OAAO,SAAA,CAAU,oBAAA;AACpC,IAAI,eAAA,GAAkB,CAAC,GAAA,EAAK,GAAA,EAAK,UAAU,GAAA,IAAO,GAAA,GAAM,SA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