@pedidopago/ui 1.9.2 → 1.9.4

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 (81) hide show
  1. package/dist/components/CollapseCard/ExpandButton/styles.d.ts +59 -59
  2. package/dist/components/CollapseCard/styles.d.ts +57 -57
  3. package/dist/components/DateInput/components/ModalWrapper/styles.d.ts +57 -57
  4. package/dist/components/Dropzone/styles.d.ts +5 -5
  5. package/dist/components/EmojiPicker/styles.d.ts +94 -94
  6. package/dist/components/Flex/styles.d.ts +7 -7
  7. package/dist/components/Modal/index.d.ts +1 -1
  8. package/dist/components/Modal/index.d.ts.map +1 -1
  9. package/dist/components/Modal/index.js +1 -1
  10. package/dist/components/Modal/styles.d.ts +98 -98
  11. package/dist/components/Modal/types.d.ts +1 -0
  12. package/dist/components/Modal/types.d.ts.map +1 -1
  13. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +57 -57
  14. package/dist/components/MultipleSelect/index.d.ts.map +1 -1
  15. package/dist/components/MultipleSelect/index.js +1 -1
  16. package/dist/components/NewSelect/components/OptionsSelect/styles.d.ts +57 -57
  17. package/dist/components/Slider/components/SliderSelector.d.ts +3 -3
  18. package/dist/components/Slider/index.d.ts +3 -3
  19. package/dist/components/Slider/styles.d.ts +1 -1
  20. package/dist/components/Tabs/styles.d.ts +2 -2
  21. package/dist/components/Timeline/styles.d.ts +1 -1
  22. package/dist/components/Toast/EventManager/index.d.ts +3 -0
  23. package/dist/components/Toast/EventManager/index.d.ts.map +1 -0
  24. package/dist/components/Toast/EventManager/index.js +1 -0
  25. package/dist/components/Toast/EventManager/types.d.ts +18 -0
  26. package/dist/components/Toast/EventManager/types.d.ts.map +1 -0
  27. package/dist/components/Toast/EventManager/types.js +1 -0
  28. package/dist/components/Toast/Example/index.d.ts +5 -0
  29. package/dist/components/Toast/Example/index.d.ts.map +1 -0
  30. package/dist/components/Toast/Example/index.js +1 -0
  31. package/dist/components/Toast/ToastContainer/index.d.ts +4 -0
  32. package/dist/components/Toast/ToastContainer/index.d.ts.map +1 -0
  33. package/dist/components/Toast/ToastContainer/index.js +1 -0
  34. package/dist/components/Toast/ToastContainer/styles.d.ts +6 -0
  35. package/dist/components/Toast/ToastContainer/styles.d.ts.map +1 -0
  36. package/dist/components/Toast/ToastContainer/styles.js +1 -0
  37. package/dist/components/Toast/ToastItem/animations.d.ts +12 -0
  38. package/dist/components/Toast/ToastItem/animations.d.ts.map +1 -0
  39. package/dist/components/Toast/ToastItem/animations.js +2 -0
  40. package/dist/components/Toast/ToastItem/index.d.ts +4 -0
  41. package/dist/components/Toast/ToastItem/index.d.ts.map +1 -0
  42. package/dist/components/Toast/ToastItem/index.js +1 -0
  43. package/dist/components/Toast/ToastItem/styles.d.ts +12 -0
  44. package/dist/components/Toast/ToastItem/styles.d.ts.map +1 -0
  45. package/dist/components/Toast/ToastItem/styles.js +1 -0
  46. package/dist/components/Toast/ToastItem/types.d.ts +7 -0
  47. package/dist/components/Toast/ToastItem/types.d.ts.map +1 -0
  48. package/dist/components/Toast/ToastItem/types.js +1 -0
  49. package/dist/components/Toast/ToastItem/utils.d.ts +4 -0
  50. package/dist/components/Toast/ToastItem/utils.d.ts.map +1 -0
  51. package/dist/components/Toast/ToastItem/utils.js +1 -0
  52. package/dist/components/Toast/contexts/ToastProvider.d.ts.map +1 -1
  53. package/dist/components/Toast/contexts/ToastProvider.js +1 -1
  54. package/dist/components/Toast/hooks/useToast.d.ts +11 -1
  55. package/dist/components/Toast/hooks/useToast.d.ts.map +1 -1
  56. package/dist/components/Toast/hooks/useToast.js +10 -1
  57. package/dist/components/Toast/index.d.ts +5 -3
  58. package/dist/components/Toast/index.d.ts.map +1 -1
  59. package/dist/components/Toast/index.js +1 -1
  60. package/dist/components/Toast/toast-handler.d.ts +11 -0
  61. package/dist/components/Toast/toast-handler.d.ts.map +1 -0
  62. package/dist/components/Toast/toast-handler.js +1 -0
  63. package/dist/components/Toast/types.d.ts +26 -13
  64. package/dist/components/Toast/types.d.ts.map +1 -1
  65. package/dist/components/Typography/styles.d.ts +5 -5
  66. package/dist/index.d.ts +1 -1
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +1 -1
  69. package/package.json +4 -4
  70. package/dist/components/Toast/button-example.d.ts +0 -7
  71. package/dist/components/Toast/button-example.d.ts.map +0 -1
  72. package/dist/components/Toast/button-example.js +0 -1
  73. package/dist/components/Toast/components/Toast.d.ts +0 -5
  74. package/dist/components/Toast/components/Toast.d.ts.map +0 -1
  75. package/dist/components/Toast/components/Toast.js +0 -1
  76. package/dist/components/Toast/styles.d.ts +0 -23
  77. package/dist/components/Toast/styles.d.ts.map +0 -1
  78. package/dist/components/Toast/styles.js +0 -1
  79. package/dist/components/Toast/toast.test.d.ts +0 -2
  80. package/dist/components/Toast/toast.test.d.ts.map +0 -1
  81. package/dist/components/Toast/toast.test.js +0 -1
@@ -3,55 +3,90 @@ export declare const EmotePickerDesktopContainer: import("@emotion/styled").Styl
3
3
  slot?: string | undefined;
4
4
  title?: string | undefined;
5
5
  color?: string | undefined;
6
- translate?: "no" | "yes" | undefined;
7
- id?: string | undefined;
8
- hidden?: boolean | undefined;
6
+ translate?: "yes" | "no" | undefined;
7
+ defaultChecked?: boolean | undefined;
8
+ defaultValue?: string | number | readonly string[] | undefined;
9
+ suppressContentEditableWarning?: boolean | undefined;
10
+ suppressHydrationWarning?: boolean | undefined;
11
+ accessKey?: string | undefined;
12
+ autoFocus?: boolean | undefined;
9
13
  className?: string | undefined;
14
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
15
+ contextMenu?: string | undefined;
16
+ dir?: string | undefined;
17
+ draggable?: (boolean | "true" | "false") | undefined;
18
+ hidden?: boolean | undefined;
19
+ id?: string | undefined;
10
20
  lang?: string | undefined;
11
- role?: import("react").AriaRole | undefined;
21
+ nonce?: string | undefined;
22
+ placeholder?: string | undefined;
23
+ spellCheck?: (boolean | "true" | "false") | undefined;
12
24
  tabIndex?: number | undefined;
25
+ radioGroup?: string | undefined;
26
+ role?: import("react").AriaRole | undefined;
27
+ about?: string | undefined;
28
+ datatype?: string | undefined;
29
+ inlist?: any;
30
+ prefix?: string | undefined;
31
+ property?: string | undefined;
32
+ resource?: string | undefined;
33
+ typeof?: string | undefined;
34
+ vocab?: string | undefined;
35
+ autoCapitalize?: string | undefined;
36
+ autoCorrect?: string | undefined;
37
+ autoSave?: string | undefined;
38
+ itemProp?: string | undefined;
39
+ itemScope?: boolean | undefined;
40
+ itemType?: string | undefined;
41
+ itemID?: string | undefined;
42
+ itemRef?: string | undefined;
43
+ results?: number | undefined;
44
+ security?: string | undefined;
45
+ unselectable?: "on" | "off" | undefined;
46
+ inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
47
+ is?: string | undefined;
13
48
  "aria-activedescendant"?: string | undefined;
14
- "aria-atomic"?: (boolean | "false" | "true") | undefined;
15
- "aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
16
- "aria-busy"?: (boolean | "false" | "true") | undefined;
17
- "aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
49
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
50
+ "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
51
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
52
+ "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
18
53
  "aria-colcount"?: number | undefined;
19
54
  "aria-colindex"?: number | undefined;
20
55
  "aria-colspan"?: number | undefined;
21
56
  "aria-controls"?: string | undefined;
22
- "aria-current"?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
57
+ "aria-current"?: boolean | "time" | "true" | "false" | "date" | "step" | "page" | "location" | undefined;
23
58
  "aria-describedby"?: string | undefined;
24
59
  "aria-details"?: string | undefined;
25
- "aria-disabled"?: (boolean | "false" | "true") | undefined;
60
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
26
61
  "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
27
62
  "aria-errormessage"?: string | undefined;
28
- "aria-expanded"?: (boolean | "false" | "true") | undefined;
63
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
29
64
  "aria-flowto"?: string | undefined;
30
- "aria-grabbed"?: (boolean | "false" | "true") | undefined;
31
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
32
- "aria-hidden"?: (boolean | "false" | "true") | undefined;
33
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
65
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
66
+ "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "true" | "false" | "listbox" | "tree" | undefined;
67
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
68
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
34
69
  "aria-keyshortcuts"?: string | undefined;
35
70
  "aria-label"?: string | undefined;
36
71
  "aria-labelledby"?: string | undefined;
37
72
  "aria-level"?: number | undefined;
38
73
  "aria-live"?: "off" | "assertive" | "polite" | undefined;
39
- "aria-modal"?: (boolean | "false" | "true") | undefined;
40
- "aria-multiline"?: (boolean | "false" | "true") | undefined;
41
- "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
74
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
75
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
76
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
42
77
  "aria-orientation"?: "horizontal" | "vertical" | undefined;
43
78
  "aria-owns"?: string | undefined;
44
79
  "aria-placeholder"?: string | undefined;
45
80
  "aria-posinset"?: number | undefined;
46
- "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
47
- "aria-readonly"?: (boolean | "false" | "true") | undefined;
81
+ "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
82
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
48
83
  "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
49
- "aria-required"?: (boolean | "false" | "true") | undefined;
84
+ "aria-required"?: (boolean | "true" | "false") | undefined;
50
85
  "aria-roledescription"?: string | undefined;
51
86
  "aria-rowcount"?: number | undefined;
52
87
  "aria-rowindex"?: number | undefined;
53
88
  "aria-rowspan"?: number | undefined;
54
- "aria-selected"?: (boolean | "false" | "true") | undefined;
89
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
55
90
  "aria-setsize"?: number | undefined;
56
91
  "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
57
92
  "aria-valuemax"?: number | undefined;
@@ -219,20 +254,34 @@ export declare const EmotePickerDesktopContainer: import("@emotion/styled").Styl
219
254
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
220
255
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
221
256
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
257
+ } & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLDivElement> & {
258
+ theme?: import("@emotion/react").Theme | undefined;
259
+ }, {}, {}>;
260
+ export declare const EmotePickerMobileContainer: import("@emotion/styled").StyledComponent<{
261
+ slot?: string | undefined;
262
+ title?: string | undefined;
263
+ color?: string | undefined;
264
+ translate?: "yes" | "no" | undefined;
222
265
  defaultChecked?: boolean | undefined;
223
266
  defaultValue?: string | number | readonly string[] | undefined;
224
267
  suppressContentEditableWarning?: boolean | undefined;
225
268
  suppressHydrationWarning?: boolean | undefined;
226
269
  accessKey?: string | undefined;
227
270
  autoFocus?: boolean | undefined;
228
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
271
+ className?: string | undefined;
272
+ contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
229
273
  contextMenu?: string | undefined;
230
274
  dir?: string | undefined;
231
- draggable?: (boolean | "false" | "true") | undefined;
275
+ draggable?: (boolean | "true" | "false") | undefined;
276
+ hidden?: boolean | undefined;
277
+ id?: string | undefined;
278
+ lang?: string | undefined;
232
279
  nonce?: string | undefined;
233
280
  placeholder?: string | undefined;
234
- spellCheck?: (boolean | "false" | "true") | undefined;
281
+ spellCheck?: (boolean | "true" | "false") | undefined;
282
+ tabIndex?: number | undefined;
235
283
  radioGroup?: string | undefined;
284
+ role?: import("react").AriaRole | undefined;
236
285
  about?: string | undefined;
237
286
  datatype?: string | undefined;
238
287
  inlist?: any;
@@ -251,65 +300,51 @@ export declare const EmotePickerDesktopContainer: import("@emotion/styled").Styl
251
300
  itemRef?: string | undefined;
252
301
  results?: number | undefined;
253
302
  security?: string | undefined;
254
- unselectable?: "off" | "on" | undefined;
255
- inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
303
+ unselectable?: "on" | "off" | undefined;
304
+ inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
256
305
  is?: string | undefined;
257
- } & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLDivElement> & {
258
- theme?: import("@emotion/react").Theme | undefined;
259
- }, {}, {}>;
260
- export declare const EmotePickerMobileContainer: import("@emotion/styled").StyledComponent<{
261
- slot?: string | undefined;
262
- title?: string | undefined;
263
- color?: string | undefined;
264
- translate?: "no" | "yes" | undefined;
265
- id?: string | undefined;
266
- hidden?: boolean | undefined;
267
- className?: string | undefined;
268
- lang?: string | undefined;
269
- role?: import("react").AriaRole | undefined;
270
- tabIndex?: number | undefined;
271
306
  "aria-activedescendant"?: string | undefined;
272
- "aria-atomic"?: (boolean | "false" | "true") | undefined;
273
- "aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
274
- "aria-busy"?: (boolean | "false" | "true") | undefined;
275
- "aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
307
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
308
+ "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
309
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
310
+ "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
276
311
  "aria-colcount"?: number | undefined;
277
312
  "aria-colindex"?: number | undefined;
278
313
  "aria-colspan"?: number | undefined;
279
314
  "aria-controls"?: string | undefined;
280
- "aria-current"?: boolean | "time" | "page" | "false" | "true" | "step" | "location" | "date" | undefined;
315
+ "aria-current"?: boolean | "time" | "true" | "false" | "date" | "step" | "page" | "location" | undefined;
281
316
  "aria-describedby"?: string | undefined;
282
317
  "aria-details"?: string | undefined;
283
- "aria-disabled"?: (boolean | "false" | "true") | undefined;
318
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
284
319
  "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
285
320
  "aria-errormessage"?: string | undefined;
286
- "aria-expanded"?: (boolean | "false" | "true") | undefined;
321
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
287
322
  "aria-flowto"?: string | undefined;
288
- "aria-grabbed"?: (boolean | "false" | "true") | undefined;
289
- "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
290
- "aria-hidden"?: (boolean | "false" | "true") | undefined;
291
- "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
323
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
324
+ "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "true" | "false" | "listbox" | "tree" | undefined;
325
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
326
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
292
327
  "aria-keyshortcuts"?: string | undefined;
293
328
  "aria-label"?: string | undefined;
294
329
  "aria-labelledby"?: string | undefined;
295
330
  "aria-level"?: number | undefined;
296
331
  "aria-live"?: "off" | "assertive" | "polite" | undefined;
297
- "aria-modal"?: (boolean | "false" | "true") | undefined;
298
- "aria-multiline"?: (boolean | "false" | "true") | undefined;
299
- "aria-multiselectable"?: (boolean | "false" | "true") | undefined;
332
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
333
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
334
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
300
335
  "aria-orientation"?: "horizontal" | "vertical" | undefined;
301
336
  "aria-owns"?: string | undefined;
302
337
  "aria-placeholder"?: string | undefined;
303
338
  "aria-posinset"?: number | undefined;
304
- "aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
305
- "aria-readonly"?: (boolean | "false" | "true") | undefined;
339
+ "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
340
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
306
341
  "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
307
- "aria-required"?: (boolean | "false" | "true") | undefined;
342
+ "aria-required"?: (boolean | "true" | "false") | undefined;
308
343
  "aria-roledescription"?: string | undefined;
309
344
  "aria-rowcount"?: number | undefined;
310
345
  "aria-rowindex"?: number | undefined;
311
346
  "aria-rowspan"?: number | undefined;
312
- "aria-selected"?: (boolean | "false" | "true") | undefined;
347
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
313
348
  "aria-setsize"?: number | undefined;
314
349
  "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
315
350
  "aria-valuemax"?: number | undefined;
@@ -477,41 +512,6 @@ export declare const EmotePickerMobileContainer: import("@emotion/styled").Style
477
512
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
478
513
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
479
514
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
480
- defaultChecked?: boolean | undefined;
481
- defaultValue?: string | number | readonly string[] | undefined;
482
- suppressContentEditableWarning?: boolean | undefined;
483
- suppressHydrationWarning?: boolean | undefined;
484
- accessKey?: string | undefined;
485
- autoFocus?: boolean | undefined;
486
- contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
487
- contextMenu?: string | undefined;
488
- dir?: string | undefined;
489
- draggable?: (boolean | "false" | "true") | undefined;
490
- nonce?: string | undefined;
491
- placeholder?: string | undefined;
492
- spellCheck?: (boolean | "false" | "true") | undefined;
493
- radioGroup?: string | undefined;
494
- about?: string | undefined;
495
- datatype?: string | undefined;
496
- inlist?: any;
497
- prefix?: string | undefined;
498
- property?: string | undefined;
499
- resource?: string | undefined;
500
- typeof?: string | undefined;
501
- vocab?: string | undefined;
502
- autoCapitalize?: string | undefined;
503
- autoCorrect?: string | undefined;
504
- autoSave?: string | undefined;
505
- itemProp?: string | undefined;
506
- itemScope?: boolean | undefined;
507
- itemType?: string | undefined;
508
- itemID?: string | undefined;
509
- itemRef?: string | undefined;
510
- results?: number | undefined;
511
- security?: string | undefined;
512
- unselectable?: "off" | "on" | undefined;
513
- inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
514
- is?: string | undefined;
515
515
  } & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLDivElement> & {
516
516
  theme?: import("@emotion/react").Theme | undefined;
517
517
  }, {}, {}>;
@@ -453,13 +453,13 @@ export declare const StyledFlexContainer: import("@emotion/styled").StyledCompon
453
453
  level48: string;
454
454
  };
455
455
  } | undefined;
456
- flexDirection?: ("column" | "column-reverse" | "row" | "row-reverse") | {
457
- base?: ("column" | "column-reverse" | "row" | "row-reverse") | undefined;
458
- sm?: ("column" | "column-reverse" | "row" | "row-reverse") | undefined;
459
- md?: ("column" | "column-reverse" | "row" | "row-reverse") | undefined;
460
- lg?: ("column" | "column-reverse" | "row" | "row-reverse") | undefined;
461
- xl?: ("column" | "column-reverse" | "row" | "row-reverse") | undefined;
462
- xxl?: ("column" | "column-reverse" | "row" | "row-reverse") | undefined;
456
+ flexDirection?: ("row" | "row-reverse" | "column" | "column-reverse") | {
457
+ base?: ("row" | "row-reverse" | "column" | "column-reverse") | undefined;
458
+ sm?: ("row" | "row-reverse" | "column" | "column-reverse") | undefined;
459
+ md?: ("row" | "row-reverse" | "column" | "column-reverse") | undefined;
460
+ lg?: ("row" | "row-reverse" | "column" | "column-reverse") | undefined;
461
+ xl?: ("row" | "row-reverse" | "column" | "column-reverse") | undefined;
462
+ xxl?: ("row" | "row-reverse" | "column" | "column-reverse") | undefined;
463
463
  } | undefined;
464
464
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
465
465
  //# sourceMappingURL=styles.d.ts.map
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ModalProps } from './types';
3
- export declare const Modal: import("react").MemoExoticComponent<({ open, left, top, anchorX, anchorY, offsetX, offsetY, hideScrollBar, disableScrollOnOpen, maxWidth, maxHeight, onClose, hideOverlay, blurOverlay, ...rest }: ModalProps) => JSX.Element>;
3
+ export declare const Modal: import("react").MemoExoticComponent<({ open, left, top, anchorX, anchorY, offsetX, offsetY, hideScrollBar, disableScrollOnOpen, maxWidth, maxHeight, onClose, hideOverlay, blurOverlay, portalNameId, ...rest }: ModalProps) => JSX.Element>;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAgHrC,eAAO,MAAM,KAAK,qMA9Ff,UAAU,iBA8F4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAiHrC,eAAO,MAAM,KAAK,mNA9Ff,UAAU,iBA8F4B,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Modal=void 0;var _framerMotion=require("framer-motion"),_react=require("react"),_useDisableBodyScroll=require("../../shared/hooks/useDisableBodyScroll"),_useKeyPress=require("../../shared/hooks/useKeyPress"),_ReactPortal=require("../ReactPortal"),_styles=require("./styles"),_jsxRuntime=require("react/jsx-runtime"),_excluded=["open","left","top","anchorX","anchorY","offsetX","offsetY","hideScrollBar","disableScrollOnOpen","maxWidth","maxHeight","onClose","hideOverlay","blurOverlay"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],0<=excluded.indexOf(key)||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],0<=excluded.indexOf(key)||(target[key]=source[key]);return target}var ModalComponent=function(_ref){var open=_ref.open,_ref$left=_ref.left,left=void 0===_ref$left?"50vw":_ref$left,_ref$top=_ref.top,top=void 0===_ref$top?"50vh":_ref$top,_ref$anchorX=_ref.anchorX,anchorX=void 0===_ref$anchorX?"center":_ref$anchorX,_ref$anchorY=_ref.anchorY,anchorY=void 0===_ref$anchorY?"center":_ref$anchorY,_ref$offsetX=_ref.offsetX,offsetX=void 0===_ref$offsetX?"0px":_ref$offsetX,_ref$offsetY=_ref.offsetY,offsetY=void 0===_ref$offsetY?"0px":_ref$offsetY,_ref$hideScrollBar=_ref.hideScrollBar,_ref$disableScrollOnO=_ref.disableScrollOnOpen,maxWidth=_ref.maxWidth,maxHeight=_ref.maxHeight,onClose=_ref.onClose,hideOverlay=_ref.hideOverlay,blurOverlay=_ref.blurOverlay,rest=_objectWithoutProperties(_ref,_excluded),containerRef=(0,_react.useRef)(null);return(0,_useKeyPress.useKeyPress)("Escape",function(){return open&&onClose&&onClose()}),(0,_useDisableBodyScroll.useDisableBodyScroll)(open&&(void 0===_ref$disableScrollOnO||_ref$disableScrollOnO),"modal"),/*#__PURE__*/(0,_jsxRuntime.jsx)(_ReactPortal.ReactPortal,{wrapperId:"portal-root",children:/*#__PURE__*/(0,_jsxRuntime.jsx)(_framerMotion.AnimatePresence,{mode:"wait",children:open&&/*#__PURE__*/(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[/*#__PURE__*/(0,_jsxRuntime.jsx)(_styles.Overlay,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:blurOverlay?1:.5},transition:{duration:.2},isOpen:open,blur:blurOverlay,onClick:function onClick(){return onClose()},hidden:hideOverlay}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_styles.ModalContainer,{ref:containerRef,open:open,maxWidth:"number"==typeof maxWidth?"".concat(maxWidth,"px"):maxWidth,maxHeight:"number"==typeof maxHeight?"".concat(maxHeight,"px"):maxHeight,left:"calc(".concat(left," + ").concat(offsetX,")"),top:"calc(".concat(top," + ").concat(offsetY,")"),anchorTranslate:function(){var percentageX=0,percentageY=0;if("number"==typeof anchorX)percentageX=anchorX;else switch(anchorX){case"left":percentageX=0;break;case"center":percentageX=-50;break;case"right":percentageX=-100;break;default:throw new Error("\"".concat(anchorX,"\" is not a valid horizontal anchor."));}if("number"==typeof anchorY)percentageY=anchorY;else switch(anchorY){case"top":percentageY=0;break;case"center":percentageY=-50;break;case"bottom":percentageY=-100;break;default:throw new Error("\"".concat(anchorY,"\" is not a valid vertical anchor."));}return"translate(".concat(percentageX,"%, ").concat(percentageY,"%)")}(),children:/*#__PURE__*/(0,_jsxRuntime.jsx)(_styles.ModalElement,{"data-scroll":"dispatch-scroll",open:open,maxHeight:"number"==typeof maxHeight?"".concat(maxHeight,"px"):maxHeight,hideScrollBar:void 0!==_ref$hideScrollBar&&_ref$hideScrollBar,initial:{scale:.8,opacity:0},exit:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.1},children:rest.children})})]})})})},Modal=/*#__PURE__*/(0,_react.memo)(ModalComponent);exports.Modal=Modal;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Modal=void 0;var _framerMotion=require("framer-motion"),_react=require("react"),_useDisableBodyScroll=require("../../shared/hooks/useDisableBodyScroll"),_useKeyPress=require("../../shared/hooks/useKeyPress"),_ReactPortal=require("../ReactPortal"),_styles=require("./styles"),_jsxRuntime=require("react/jsx-runtime"),_excluded=["open","left","top","anchorX","anchorY","offsetX","offsetY","hideScrollBar","disableScrollOnOpen","maxWidth","maxHeight","onClose","hideOverlay","blurOverlay","portalNameId"];function _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=_objectWithoutPropertiesLoose(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],0<=excluded.indexOf(key)||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],0<=excluded.indexOf(key)||(target[key]=source[key]);return target}var ModalComponent=function(_ref){var open=_ref.open,_ref$left=_ref.left,left=void 0===_ref$left?"50vw":_ref$left,_ref$top=_ref.top,top=void 0===_ref$top?"50vh":_ref$top,_ref$anchorX=_ref.anchorX,anchorX=void 0===_ref$anchorX?"center":_ref$anchorX,_ref$anchorY=_ref.anchorY,anchorY=void 0===_ref$anchorY?"center":_ref$anchorY,_ref$offsetX=_ref.offsetX,offsetX=void 0===_ref$offsetX?"0px":_ref$offsetX,_ref$offsetY=_ref.offsetY,offsetY=void 0===_ref$offsetY?"0px":_ref$offsetY,_ref$hideScrollBar=_ref.hideScrollBar,_ref$disableScrollOnO=_ref.disableScrollOnOpen,maxWidth=_ref.maxWidth,maxHeight=_ref.maxHeight,onClose=_ref.onClose,hideOverlay=_ref.hideOverlay,blurOverlay=_ref.blurOverlay,_ref$portalNameId=_ref.portalNameId,portalNameId=void 0===_ref$portalNameId?"portal-root":_ref$portalNameId,rest=_objectWithoutProperties(_ref,_excluded),containerRef=(0,_react.useRef)(null);return(0,_useKeyPress.useKeyPress)("Escape",function(){return open&&onClose&&onClose()}),(0,_useDisableBodyScroll.useDisableBodyScroll)(open&&(void 0===_ref$disableScrollOnO||_ref$disableScrollOnO),"modal"),/*#__PURE__*/(0,_jsxRuntime.jsx)(_ReactPortal.ReactPortal,{wrapperId:portalNameId,children:/*#__PURE__*/(0,_jsxRuntime.jsx)(_framerMotion.AnimatePresence,{mode:"wait",children:open&&/*#__PURE__*/(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[/*#__PURE__*/(0,_jsxRuntime.jsx)(_styles.Overlay,{initial:{opacity:0},exit:{opacity:0},animate:{opacity:blurOverlay?1:.5},transition:{duration:.2},isOpen:open,blur:blurOverlay,onClick:function onClick(){return onClose()},hidden:hideOverlay}),/*#__PURE__*/(0,_jsxRuntime.jsx)(_styles.ModalContainer,{ref:containerRef,open:open,maxWidth:"number"==typeof maxWidth?"".concat(maxWidth,"px"):maxWidth,maxHeight:"number"==typeof maxHeight?"".concat(maxHeight,"px"):maxHeight,left:"calc(".concat(left," + ").concat(offsetX,")"),top:"calc(".concat(top," + ").concat(offsetY,")"),anchorTranslate:function(){var percentageX=0,percentageY=0;if("number"==typeof anchorX)percentageX=anchorX;else switch(anchorX){case"left":percentageX=0;break;case"center":percentageX=-50;break;case"right":percentageX=-100;break;default:throw new Error("\"".concat(anchorX,"\" is not a valid horizontal anchor."));}if("number"==typeof anchorY)percentageY=anchorY;else switch(anchorY){case"top":percentageY=0;break;case"center":percentageY=-50;break;case"bottom":percentageY=-100;break;default:throw new Error("\"".concat(anchorY,"\" is not a valid vertical anchor."));}return"translate(".concat(percentageX,"%, ").concat(percentageY,"%)")}(),children:/*#__PURE__*/(0,_jsxRuntime.jsx)(_styles.ModalElement,{"data-scroll":"dispatch-scroll",open:open,maxHeight:"number"==typeof maxHeight?"".concat(maxHeight,"px"):maxHeight,hideScrollBar:void 0!==_ref$hideScrollBar&&_ref$hideScrollBar,initial:{scale:.8,opacity:0},exit:{scale:.8,opacity:0},animate:{scale:1,opacity:1},transition:{duration:.1},children:rest.children})})]})})})},Modal=/*#__PURE__*/(0,_react.memo)(ModalComponent);exports.Modal=Modal;