@prom-ui/core 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/Avatar/cjs/index.development.js +99 -67
  2. package/Avatar/cjs/index.development.v2.js +99 -67
  3. package/Avatar/cjs/index.production.js +1 -1
  4. package/Avatar/cjs/index.production.v2.js +1 -1
  5. package/Avatar/index.d.ts +14 -14
  6. package/Avatar/package.json +1 -1
  7. package/Avatar/utils.d.ts +2 -2
  8. package/Backdrop/cjs/index.development.js +131 -77
  9. package/Backdrop/cjs/index.development.v2.js +131 -77
  10. package/Backdrop/cjs/index.production.js +1 -1
  11. package/Backdrop/cjs/index.production.v2.js +1 -1
  12. package/Backdrop/index.d.ts +25 -25
  13. package/Backdrop/package.json +1 -1
  14. package/Body/cjs/index.development.js +2 -0
  15. package/Body/cjs/index.development.v2.js +2 -0
  16. package/Body/index.d.ts +36 -36
  17. package/Body/package.json +1 -1
  18. package/BodyContext/cjs/index.development.js +6 -7
  19. package/BodyContext/cjs/index.development.v2.js +6 -7
  20. package/BodyContext/cjs/index.production.js +1 -1
  21. package/BodyContext/cjs/index.production.v2.js +1 -1
  22. package/BodyContext/index.d.ts +12 -12
  23. package/BodyContext/package.json +1 -1
  24. package/BodyProvider/cjs/index.development.js +7 -6
  25. package/BodyProvider/cjs/index.development.v2.js +7 -6
  26. package/BodyProvider/index.d.ts +10 -10
  27. package/BodyProvider/package.json +1 -1
  28. package/Box/cjs/index.development.js +4 -4
  29. package/Box/cjs/index.development.v2.js +4 -4
  30. package/Box/index.d.ts +106 -106
  31. package/Box/package.json +1 -1
  32. package/Button/cjs/index.development.js +67 -62
  33. package/Button/cjs/index.development.v2.js +67 -62
  34. package/Button/cjs/index.production.js +1 -1
  35. package/Button/cjs/index.production.v2.js +1 -1
  36. package/Button/index.d.ts +45 -45
  37. package/Button/package.json +1 -1
  38. package/ButtonPageUp/cjs/index.development.js +195 -85
  39. package/ButtonPageUp/cjs/index.development.v2.js +195 -85
  40. package/ButtonPageUp/cjs/index.production.js +1 -1
  41. package/ButtonPageUp/cjs/index.production.v2.js +1 -1
  42. package/ButtonPageUp/index.d.ts +18 -18
  43. package/ButtonPageUp/package.json +1 -1
  44. package/Checkbox/cjs/index.development.js +99 -67
  45. package/Checkbox/cjs/index.development.v2.js +99 -67
  46. package/Checkbox/cjs/index.production.js +1 -1
  47. package/Checkbox/cjs/index.production.v2.js +1 -1
  48. package/Checkbox/index.d.ts +8 -8
  49. package/Checkbox/package.json +1 -1
  50. package/Flex/index.d.ts +34 -34
  51. package/Flex/package.json +1 -1
  52. package/Grid/index.d.ts +46 -46
  53. package/Grid/package.json +1 -1
  54. package/Icon/index.d.ts +9 -9
  55. package/Icon/package.json +1 -1
  56. package/Image/index.d.ts +42 -42
  57. package/Image/package.json +1 -1
  58. package/ImageEmoji/cjs/index.development.js +70 -63
  59. package/ImageEmoji/cjs/index.development.v2.js +70 -63
  60. package/ImageEmoji/cjs/index.production.js +1 -1
  61. package/ImageEmoji/cjs/index.production.v2.js +1 -1
  62. package/ImageEmoji/index.d.ts +9 -9
  63. package/ImageEmoji/package.json +1 -1
  64. package/Input/index.d.ts +18 -18
  65. package/Input/package.json +1 -1
  66. package/InputField/addons/AfterClearValue.d.ts +3 -3
  67. package/InputField/addons/AfterCorrectValue.d.ts +2 -2
  68. package/InputField/addons/AfterLoading.d.ts +2 -2
  69. package/InputField/addons/AfterTogglePassword.d.ts +6 -6
  70. package/InputField/addons/ErrorText.d.ts +6 -6
  71. package/InputField/cjs/index.development.js +237 -173
  72. package/InputField/cjs/index.development.v2.js +237 -173
  73. package/InputField/cjs/index.production.js +1 -1
  74. package/InputField/cjs/index.production.v2.js +1 -1
  75. package/InputField/index.d.ts +18 -18
  76. package/InputField/package.json +1 -1
  77. package/InputField/utils.d.ts +10 -10
  78. package/KeyPress/cjs/index.development.js +13 -13
  79. package/KeyPress/cjs/index.development.v2.js +13 -13
  80. package/KeyPress/index.d.ts +14 -14
  81. package/KeyPress/package.json +1 -1
  82. package/Line/index.d.ts +13 -13
  83. package/Line/package.json +1 -1
  84. package/Link/cjs/index.development.js +5 -5
  85. package/Link/cjs/index.development.v2.js +5 -5
  86. package/Link/index.d.ts +28 -28
  87. package/Link/package.json +1 -1
  88. package/List/index.d.ts +23 -23
  89. package/List/package.json +1 -1
  90. package/Media/MediaProvider.d.ts +8 -8
  91. package/Media/cjs/index.development.js +70 -19
  92. package/Media/cjs/index.development.v2.js +70 -19
  93. package/Media/cjs/index.production.js +1 -1
  94. package/Media/cjs/index.production.v2.js +1 -1
  95. package/Media/index.d.ts +20 -20
  96. package/Media/package.json +1 -1
  97. package/OutsideClick/cjs/index.development.js +117 -61
  98. package/OutsideClick/cjs/index.development.v2.js +117 -61
  99. package/OutsideClick/cjs/index.production.js +1 -1
  100. package/OutsideClick/cjs/index.production.v2.js +1 -1
  101. package/OutsideClick/index.d.ts +12 -12
  102. package/OutsideClick/package.json +1 -1
  103. package/Overlay/cjs/index.development.js +197 -183
  104. package/Overlay/cjs/index.development.v2.js +197 -183
  105. package/Overlay/cjs/index.production.js +1 -1
  106. package/Overlay/cjs/index.production.v2.js +1 -1
  107. package/Overlay/components/OverlayHeader.d.ts +11 -11
  108. package/Overlay/components/SwipeClose.d.ts +11 -11
  109. package/Overlay/components/TouchScrollable.d.ts +8 -8
  110. package/Overlay/index.d.ts +76 -76
  111. package/Overlay/package.json +1 -1
  112. package/Overlay/utils.d.ts +10 -10
  113. package/Picture/index.d.ts +70 -70
  114. package/Picture/package.json +1 -1
  115. package/Portal/cjs/index.development.js +11 -11
  116. package/Portal/cjs/index.development.v2.js +11 -11
  117. package/Portal/index.d.ts +10 -10
  118. package/Portal/package.json +1 -1
  119. package/QRCode/cjs/index.development.js +11 -11
  120. package/QRCode/cjs/index.development.v2.js +11 -11
  121. package/QRCode/index.d.ts +17 -17
  122. package/QRCode/package.json +1 -1
  123. package/Rating/cjs/index.development.js +75 -69
  124. package/Rating/cjs/index.development.v2.js +75 -69
  125. package/Rating/cjs/index.production.js +1 -1
  126. package/Rating/cjs/index.production.v2.js +1 -1
  127. package/Rating/index.d.ts +17 -17
  128. package/Rating/package.json +1 -1
  129. package/RatingSelect/cjs/index.development.js +148 -68
  130. package/RatingSelect/cjs/index.development.v2.js +148 -68
  131. package/RatingSelect/cjs/index.production.js +1 -1
  132. package/RatingSelect/cjs/index.production.v2.js +1 -1
  133. package/RatingSelect/index.d.ts +22 -18
  134. package/RatingSelect/package.json +1 -1
  135. package/SafeQuery/cjs/index.development.js +158 -110
  136. package/SafeQuery/cjs/index.development.v2.js +158 -110
  137. package/SafeQuery/cjs/index.production.js +1 -1
  138. package/SafeQuery/cjs/index.production.v2.js +1 -1
  139. package/SafeQuery/components/Error.d.ts +7 -7
  140. package/SafeQuery/index.d.ts +10 -10
  141. package/SafeQuery/package.json +1 -1
  142. package/Scroll/index.d.ts +25 -25
  143. package/Scroll/package.json +1 -1
  144. package/ScrollControls/ScrollControlsButton.d.ts +11 -11
  145. package/ScrollControls/cjs/index.development.js +201 -113
  146. package/ScrollControls/cjs/index.development.v2.js +201 -113
  147. package/ScrollControls/cjs/index.production.js +1 -1
  148. package/ScrollControls/cjs/index.production.v2.js +1 -1
  149. package/ScrollControls/index.d.ts +16 -16
  150. package/ScrollControls/package.json +1 -1
  151. package/SimpleSlider/cjs/index.development.js +270 -158
  152. package/SimpleSlider/cjs/index.development.v2.js +270 -158
  153. package/SimpleSlider/cjs/index.production.js +1 -1
  154. package/SimpleSlider/cjs/index.production.v2.js +1 -1
  155. package/SimpleSlider/index.d.ts +41 -41
  156. package/SimpleSlider/package.json +1 -1
  157. package/SimpleSlider/useAutoPlay.d.ts +3 -3
  158. package/SimpleSlider/utils.d.ts +19 -19
  159. package/Skeleton/cjs/index.development.js +118 -64
  160. package/Skeleton/cjs/index.development.v2.js +118 -64
  161. package/Skeleton/cjs/index.production.js +1 -1
  162. package/Skeleton/cjs/index.production.v2.js +1 -1
  163. package/Skeleton/index.d.ts +37 -37
  164. package/Skeleton/package.json +1 -1
  165. package/Spinner/cjs/index.development.js +66 -61
  166. package/Spinner/cjs/index.development.v2.js +66 -61
  167. package/Spinner/cjs/index.production.js +1 -1
  168. package/Spinner/cjs/index.production.v2.js +1 -1
  169. package/Spinner/index.d.ts +29 -29
  170. package/Spinner/package.json +1 -1
  171. package/Text/index.d.ts +25 -25
  172. package/Text/package.json +1 -1
  173. package/TextEmoji/cjs/index.development.js +65 -60
  174. package/TextEmoji/cjs/index.development.v2.js +65 -60
  175. package/TextEmoji/cjs/index.production.js +1 -1
  176. package/TextEmoji/cjs/index.production.v2.js +1 -1
  177. package/TextEmoji/index.d.ts +9 -9
  178. package/TextEmoji/package.json +1 -1
  179. package/Tooltip/cjs/index.development.js +80 -91
  180. package/Tooltip/cjs/index.development.v2.js +80 -91
  181. package/Tooltip/cjs/index.production.js +1 -1
  182. package/Tooltip/cjs/index.production.v2.js +1 -1
  183. package/Tooltip/index.d.ts +87 -87
  184. package/Tooltip/package.json +1 -1
  185. package/Tumbler/cjs/index.development.js +98 -66
  186. package/Tumbler/cjs/index.development.v2.js +98 -66
  187. package/Tumbler/cjs/index.production.js +1 -1
  188. package/Tumbler/cjs/index.production.v2.js +1 -1
  189. package/Tumbler/index.d.ts +8 -8
  190. package/Tumbler/package.json +1 -1
  191. package/package.json +7 -5
  192. package/useBodyTTag/cjs/index.development.js +1 -1
  193. package/useBodyTTag/cjs/index.development.v2.js +1 -1
  194. package/useBodyTTag/index.d.ts +2 -2
  195. package/useBodyTTag/package.json +1 -1
  196. package/useDebounce/cjs/index.development.js +58 -6
  197. package/useDebounce/cjs/index.development.v2.js +58 -6
  198. package/useDebounce/cjs/index.production.js +1 -1
  199. package/useDebounce/cjs/index.production.v2.js +1 -1
  200. package/useDebounce/index.d.ts +4 -4
  201. package/useDebounce/package.json +1 -1
  202. package/useId/cjs/index.development.js +6 -7
  203. package/useId/cjs/index.development.v2.js +6 -7
  204. package/useId/cjs/index.production.js +1 -1
  205. package/useId/cjs/index.production.v2.js +1 -1
  206. package/useId/index.d.ts +4 -4
  207. package/useId/package.json +1 -1
  208. package/useIsMounted/cjs/index.development.js +3 -3
  209. package/useIsMounted/cjs/index.development.v2.js +3 -3
  210. package/useIsMounted/index.d.ts +4 -4
  211. package/useIsMounted/package.json +1 -1
  212. package/useKeyPress/cjs/index.development.js +76 -22
  213. package/useKeyPress/cjs/index.development.v2.js +76 -22
  214. package/useKeyPress/cjs/index.production.js +1 -1
  215. package/useKeyPress/cjs/index.production.v2.js +1 -1
  216. package/useKeyPress/index.d.ts +6 -6
  217. package/useKeyPress/package.json +1 -1
  218. package/useMedia/cjs/index.development.js +5 -5
  219. package/useMedia/cjs/index.development.v2.js +5 -5
  220. package/useMedia/index.d.ts +21 -21
  221. package/useMedia/package.json +1 -1
  222. package/useOutsideClick/cjs/index.development.js +2 -2
  223. package/useOutsideClick/cjs/index.development.v2.js +2 -2
  224. package/useOutsideClick/index.d.ts +5 -5
  225. package/useOutsideClick/package.json +1 -1
  226. package/usePortal/cjs/index.development.js +32 -27
  227. package/usePortal/cjs/index.development.v2.js +32 -27
  228. package/usePortal/index.d.ts +12 -12
  229. package/usePortal/package.json +1 -1
  230. package/useScrollPosition/cjs/index.development.js +2 -2
  231. package/useScrollPosition/cjs/index.development.v2.js +2 -2
  232. package/useScrollPosition/index.d.ts +5 -5
  233. package/useScrollPosition/package.json +1 -1
@@ -1,87 +1,87 @@
1
- import * as React from 'react';
2
- type TypeTrigger = 'click' | 'right-click' | 'hover' | 'focus';
3
- type TypePlacement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
4
- export type TooltipProps = {
5
- /** Элемент триггера DOM */
6
- children: React.ReactElement<any, any>;
7
- /** Содержимое тултипа */
8
- content: React.ReactNode;
9
- /**
10
- * Событие или события, вызывающие всплывающую подсказку. <br>
11
- * `'click' | 'right-click' | 'hover' | 'focus'` <br>
12
- */
13
- trigger?: TypeTrigger | TypeTrigger[];
14
- /**
15
- * Предпочтительное размещение всплывающей подсказки.
16
- * `'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';`
17
- */
18
- placement?: TypePlacement;
19
- /** Тема */
20
- theme?: 'white' | 'black';
21
- /** Внутренний отступ подсказки, принимаем значение как в CSS */
22
- padding?: string | number;
23
- /** Ширина подсказки, принимаем значение как в CSS. */
24
- width?: string | number;
25
- /** CSS-свойство z-index */
26
- zIndex?: string | number;
27
- /** Дополнительные классы */
28
- classes?: {
29
- root?: string;
30
- arrow?: string;
31
- animation?: string;
32
- content?: string;
33
- };
34
- /**
35
- * Если `true`, при наведении на всплывающую подсказку она останется открытой.
36
- * <br>
37
- * Это полезно, если вы хотите, чтобы пользователи могли взаимодействовать
38
- * с содержимым всплывающей подсказки (выбирать и копировать текст, щелкать ссылку и т. д.).
39
- * <br>
40
- * В этом случае вы можете увеличить `delayHide` значение, чтобы дать пользователю больше времени на реакцию.
41
- */
42
- isInteractive?: boolean;
43
- /** Начальное состояние видимости всплывающей подсказки при инициализации компонента. */
44
- isDefaultVisible?: boolean;
45
- /** Рендер в конец `<body>` */
46
- isRenderPortal?: boolean;
47
- /**
48
- * Если `true`, закрывает всплывающую подсказку, <br>
49
- * когда пользователь щелкает за пределами элемента триггера.
50
- */
51
- isCloseOnOutsideClick?: boolean;
52
- /** Закрывать ли всплывающую подсказку, когда ее триггер выходит за границы. */
53
- isCloseOnTriggerHidden?: boolean;
54
- /**
55
- * Состояние видимости всплывающей подсказки. <br>
56
- * Используйте этот реквизит, если хотите контролировать состояние всплывающей подсказки. <br>
57
- * Обратите внимание, что `delayShow` и `delayHide` не используются, <br>
58
- * если всплывающая подсказка управляется. <br>
59
- * Вы должны применить задержку к своему внешнему состоянию.
60
- */
61
- isVisible?: boolean;
62
- /**
63
- * Если `true`, всплывающая подсказка будет придерживаться позиции курсора.
64
- */
65
- isFollowCursor?: boolean;
66
- /**
67
- * Если `false`, элемент стрелки не будет отображаться.
68
- */
69
- isShowArrow?: boolean;
70
- /**
71
- * Вызывается с состоянием всплывающей подсказки, <br>
72
- * когда видимость всплывающей подсказки изменяется.
73
- */
74
- onVisibleChange?: (visible: boolean) => void;
75
- /** Задержка скрытия всплывающей подсказки `(мс)`. */
76
- delayHide?: number;
77
- /** Задержка показа всплывающей подсказки `(мс)`. */
78
- delayShow?: number;
79
- /**
80
- * Всплывающая подсказка будет размещена на расстоянии 12 пикселей от элемента триггера
81
- * <br>
82
- * (чтобы оставить достаточно места для элемента стрелки).
83
- */
84
- offset?: [number, number];
85
- };
86
- export declare const Tooltip: React.FC<TooltipProps>;
87
- export {};
1
+ import * as React from 'react';
2
+ type TypeTrigger = 'click' | 'right-click' | 'hover' | 'focus';
3
+ type TypePlacement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
4
+ export type TooltipProps = {
5
+ /** Элемент триггера DOM */
6
+ children: React.ReactElement<any, any>;
7
+ /** Содержимое тултипа */
8
+ content: React.ReactNode;
9
+ /**
10
+ * Событие или события, вызывающие всплывающую подсказку. <br>
11
+ * `'click' | 'right-click' | 'hover' | 'focus'` <br>
12
+ */
13
+ trigger?: TypeTrigger | TypeTrigger[];
14
+ /**
15
+ * Предпочтительное размещение всплывающей подсказки.
16
+ * `'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';`
17
+ */
18
+ placement?: TypePlacement;
19
+ /** Тема */
20
+ theme?: 'white' | 'black';
21
+ /** Внутренний отступ подсказки, принимаем значение как в CSS */
22
+ padding?: string | number;
23
+ /** Ширина подсказки, принимаем значение как в CSS. */
24
+ width?: string | number;
25
+ /** CSS-свойство z-index */
26
+ zIndex?: string | number;
27
+ /** Дополнительные классы */
28
+ classes?: {
29
+ root?: string;
30
+ arrow?: string;
31
+ animation?: string;
32
+ content?: string;
33
+ };
34
+ /**
35
+ * Если `true`, при наведении на всплывающую подсказку она останется открытой.
36
+ * <br>
37
+ * Это полезно, если вы хотите, чтобы пользователи могли взаимодействовать
38
+ * с содержимым всплывающей подсказки (выбирать и копировать текст, щелкать ссылку и т. д.).
39
+ * <br>
40
+ * В этом случае вы можете увеличить `delayHide` значение, чтобы дать пользователю больше времени на реакцию.
41
+ */
42
+ isInteractive?: boolean;
43
+ /** Начальное состояние видимости всплывающей подсказки при инициализации компонента. */
44
+ isDefaultVisible?: boolean;
45
+ /** Рендер в конец `<body>` */
46
+ isRenderPortal?: boolean;
47
+ /**
48
+ * Если `true`, закрывает всплывающую подсказку, <br>
49
+ * когда пользователь щелкает за пределами элемента триггера.
50
+ */
51
+ isCloseOnOutsideClick?: boolean;
52
+ /** Закрывать ли всплывающую подсказку, когда ее триггер выходит за границы. */
53
+ isCloseOnTriggerHidden?: boolean;
54
+ /**
55
+ * Состояние видимости всплывающей подсказки. <br>
56
+ * Используйте этот реквизит, если хотите контролировать состояние всплывающей подсказки. <br>
57
+ * Обратите внимание, что `delayShow` и `delayHide` не используются, <br>
58
+ * если всплывающая подсказка управляется. <br>
59
+ * Вы должны применить задержку к своему внешнему состоянию.
60
+ */
61
+ isVisible?: boolean;
62
+ /**
63
+ * Если `true`, всплывающая подсказка будет придерживаться позиции курсора.
64
+ */
65
+ isFollowCursor?: boolean;
66
+ /**
67
+ * Если `false`, элемент стрелки не будет отображаться.
68
+ */
69
+ isShowArrow?: boolean;
70
+ /**
71
+ * Вызывается с состоянием всплывающей подсказки, <br>
72
+ * когда видимость всплывающей подсказки изменяется.
73
+ */
74
+ onVisibleChange?: (visible: boolean) => void;
75
+ /** Задержка скрытия всплывающей подсказки `(мс)`. */
76
+ delayHide?: number;
77
+ /** Задержка показа всплывающей подсказки `(мс)`. */
78
+ delayShow?: number;
79
+ /**
80
+ * Всплывающая подсказка будет размещена на расстоянии 12 пикселей от элемента триггера
81
+ * <br>
82
+ * (чтобы оставить достаточно места для элемента стрелки).
83
+ */
84
+ offset?: [number, number];
85
+ };
86
+ export declare const Tooltip: React.FC<TooltipProps>;
87
+ export {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Tooltip",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -10,86 +10,118 @@ var Spinner = require('@prom-ui/core/Spinner');
10
10
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
11
 
12
12
  function _interopNamespaceCompat(e) {
13
- if (e && typeof e === 'object' && 'default' in e) return e;
14
- var n = Object.create(null);
15
- if (e) {
16
- Object.keys(e).forEach(function (k) {
17
- if (k !== 'default') {
18
- var d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: function () { return e[k]; }
22
- });
23
- }
13
+ if (e && typeof e === 'object' && 'default' in e) return e;
14
+ var n = Object.create(null);
15
+ if (e) {
16
+ Object.keys(e).forEach(function (k) {
17
+ if (k !== 'default') {
18
+ var d = Object.getOwnPropertyDescriptor(e, k);
19
+ Object.defineProperty(n, k, d.get ? d : {
20
+ enumerable: true,
21
+ get: function () { return e[k]; }
24
22
  });
25
- }
26
- n.default = e;
27
- return Object.freeze(n);
23
+ }
24
+ });
25
+ }
26
+ n.default = e;
27
+ return Object.freeze(n);
28
28
  }
29
29
 
30
30
  var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
31
31
  var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
32
32
 
33
- /******************************************************************************
34
- Copyright (c) Microsoft Corporation.
35
-
36
- Permission to use, copy, modify, and/or distribute this software for any
37
- purpose with or without fee is hereby granted.
38
-
39
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
- PERFORMANCE OF THIS SOFTWARE.
46
- ***************************************************************************** */
47
-
48
- var __assign = function() {
49
- __assign = Object.assign || function __assign(t) {
50
- for (var s, i = 1, n = arguments.length; i < n; i++) {
51
- s = arguments[i];
52
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
53
- }
54
- return t;
55
- };
56
- return __assign.apply(this, arguments);
57
- };
58
-
59
- function __rest(s, e) {
60
- var t = {};
61
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
62
- t[p] = s[p];
63
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
64
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
65
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
66
- t[p[i]] = s[p[i]];
67
- }
68
- return t;
33
+ function _defineProperty(obj, key, value) {
34
+ key = _toPropertyKey(key);
35
+ if (key in obj) {
36
+ Object.defineProperty(obj, key, {
37
+ value: value,
38
+ enumerable: true,
39
+ configurable: true,
40
+ writable: true
41
+ });
42
+ } else {
43
+ obj[key] = value;
44
+ }
45
+ return obj;
46
+ }
47
+ function _extends() {
48
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
49
+ for (var i = 1; i < arguments.length; i++) {
50
+ var source = arguments[i];
51
+ for (var key in source) {
52
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
53
+ target[key] = source[key];
54
+ }
55
+ }
56
+ }
57
+ return target;
58
+ };
59
+ return _extends.apply(this, arguments);
60
+ }
61
+ function _objectWithoutPropertiesLoose(source, excluded) {
62
+ if (source == null) return {};
63
+ var target = {};
64
+ var sourceKeys = Object.keys(source);
65
+ var key, i;
66
+ for (i = 0; i < sourceKeys.length; i++) {
67
+ key = sourceKeys[i];
68
+ if (excluded.indexOf(key) >= 0) continue;
69
+ target[key] = source[key];
70
+ }
71
+ return target;
72
+ }
73
+ function _objectWithoutProperties(source, excluded) {
74
+ if (source == null) return {};
75
+ var target = _objectWithoutPropertiesLoose(source, excluded);
76
+ var key, i;
77
+ if (Object.getOwnPropertySymbols) {
78
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
79
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
80
+ key = sourceSymbolKeys[i];
81
+ if (excluded.indexOf(key) >= 0) continue;
82
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
83
+ target[key] = source[key];
84
+ }
85
+ }
86
+ return target;
87
+ }
88
+ function _toPrimitive(input, hint) {
89
+ if (typeof input !== "object" || input === null) return input;
90
+ var prim = input[Symbol.toPrimitive];
91
+ if (prim !== undefined) {
92
+ var res = prim.call(input, hint || "default");
93
+ if (typeof res !== "object") return res;
94
+ throw new TypeError("@@toPrimitive must return a primitive value.");
95
+ }
96
+ return (hint === "string" ? String : Number)(input);
97
+ }
98
+ function _toPropertyKey(arg) {
99
+ var key = _toPrimitive(arg, "string");
100
+ return typeof key === "symbol" ? key : String(key);
69
101
  }
70
102
 
71
103
  var css = {"root":"Tumbler__root___17yYC","view":"Tumbler__view___w66K2","viewCircle":"Tumbler__viewCircle___xvJqd","input":"Tumbler__input___Kg91O","inputLoading":"Tumbler__inputLoading___y1iJD","spinner":"Tumbler__spinner___CNMl7","spinnerEnterActive":"Tumbler__spinnerEnterActive___C2P5b","spinnerEnterDone":"Tumbler__spinnerEnterDone___cgEXP","spinnerExitActive":"Tumbler__spinnerExitActive___k-mzv","spinnerExitDone":"Tumbler__spinnerExitDone___XD0-8"};
72
104
 
73
- var Tumbler = React__namespace.forwardRef(function (_a, ref) {
74
- var _b;
75
- var className = _a.className,
76
- _c = _a.loading,
77
- loading = _c === void 0 ? false : _c,
78
- _d = _a.type,
79
- type = _d === void 0 ? 'checkbox' : _d,
80
- props = __rest(_a, ["className", "loading", "type"]);
81
- return React__namespace.createElement("div", {
105
+ var _excluded = ["className", "loading", "type"];
106
+ var Tumbler = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
107
+ var className = _ref.className,
108
+ _ref$loading = _ref.loading,
109
+ loading = _ref$loading === void 0 ? false : _ref$loading,
110
+ _ref$type = _ref.type,
111
+ type = _ref$type === void 0 ? 'checkbox' : _ref$type,
112
+ props = _objectWithoutProperties(_ref, _excluded);
113
+ return /*#__PURE__*/React__namespace.createElement("div", {
82
114
  className: classNames__default.default(css.root, className)
83
- }, React__namespace.createElement("input", __assign({
115
+ }, /*#__PURE__*/React__namespace.createElement("input", _extends({
84
116
  ref: ref,
85
- className: classNames__default.default(css.input, (_b = {}, _b[css.inputLoading] = loading, _b)),
117
+ className: classNames__default.default(css.input, _defineProperty({}, css.inputLoading, loading)),
86
118
  type: type
87
- }, props)), React__namespace.createElement("div", {
119
+ }, props)), /*#__PURE__*/React__namespace.createElement("div", {
88
120
  className: css.view
89
- }, React__namespace.createElement("div", {
121
+ }, /*#__PURE__*/React__namespace.createElement("div", {
90
122
  className: css.viewCircle
91
- }, React__namespace.createElement(reactTransitionGroup.CSSTransition, {
92
- in: loading,
123
+ }, /*#__PURE__*/React__namespace.createElement(reactTransitionGroup.CSSTransition, {
124
+ "in": loading,
93
125
  timeout: 100,
94
126
  classNames: {
95
127
  enterActive: css.spinnerEnterActive,
@@ -98,7 +130,7 @@ var Tumbler = React__namespace.forwardRef(function (_a, ref) {
98
130
  exitDone: css.spinnerExitDone
99
131
  },
100
132
  unmountOnExit: true
101
- }, React__namespace.createElement(Spinner.Spinner, {
133
+ }, /*#__PURE__*/React__namespace.createElement(Spinner.Spinner, {
102
134
  className: css.spinner
103
135
  })))));
104
136
  });
@@ -10,86 +10,118 @@ var Spinner = require('@prom-ui/core/Spinner');
10
10
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
11
 
12
12
  function _interopNamespaceCompat(e) {
13
- if (e && typeof e === 'object' && 'default' in e) return e;
14
- var n = Object.create(null);
15
- if (e) {
16
- Object.keys(e).forEach(function (k) {
17
- if (k !== 'default') {
18
- var d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: function () { return e[k]; }
22
- });
23
- }
13
+ if (e && typeof e === 'object' && 'default' in e) return e;
14
+ var n = Object.create(null);
15
+ if (e) {
16
+ Object.keys(e).forEach(function (k) {
17
+ if (k !== 'default') {
18
+ var d = Object.getOwnPropertyDescriptor(e, k);
19
+ Object.defineProperty(n, k, d.get ? d : {
20
+ enumerable: true,
21
+ get: function () { return e[k]; }
24
22
  });
25
- }
26
- n.default = e;
27
- return Object.freeze(n);
23
+ }
24
+ });
25
+ }
26
+ n.default = e;
27
+ return Object.freeze(n);
28
28
  }
29
29
 
30
30
  var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
31
31
  var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
32
32
 
33
- /******************************************************************************
34
- Copyright (c) Microsoft Corporation.
35
-
36
- Permission to use, copy, modify, and/or distribute this software for any
37
- purpose with or without fee is hereby granted.
38
-
39
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
- PERFORMANCE OF THIS SOFTWARE.
46
- ***************************************************************************** */
47
-
48
- var __assign = function() {
49
- __assign = Object.assign || function __assign(t) {
50
- for (var s, i = 1, n = arguments.length; i < n; i++) {
51
- s = arguments[i];
52
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
53
- }
54
- return t;
55
- };
56
- return __assign.apply(this, arguments);
57
- };
58
-
59
- function __rest(s, e) {
60
- var t = {};
61
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
62
- t[p] = s[p];
63
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
64
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
65
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
66
- t[p[i]] = s[p[i]];
67
- }
68
- return t;
33
+ function _defineProperty(obj, key, value) {
34
+ key = _toPropertyKey(key);
35
+ if (key in obj) {
36
+ Object.defineProperty(obj, key, {
37
+ value: value,
38
+ enumerable: true,
39
+ configurable: true,
40
+ writable: true
41
+ });
42
+ } else {
43
+ obj[key] = value;
44
+ }
45
+ return obj;
46
+ }
47
+ function _extends() {
48
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
49
+ for (var i = 1; i < arguments.length; i++) {
50
+ var source = arguments[i];
51
+ for (var key in source) {
52
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
53
+ target[key] = source[key];
54
+ }
55
+ }
56
+ }
57
+ return target;
58
+ };
59
+ return _extends.apply(this, arguments);
60
+ }
61
+ function _objectWithoutPropertiesLoose(source, excluded) {
62
+ if (source == null) return {};
63
+ var target = {};
64
+ var sourceKeys = Object.keys(source);
65
+ var key, i;
66
+ for (i = 0; i < sourceKeys.length; i++) {
67
+ key = sourceKeys[i];
68
+ if (excluded.indexOf(key) >= 0) continue;
69
+ target[key] = source[key];
70
+ }
71
+ return target;
72
+ }
73
+ function _objectWithoutProperties(source, excluded) {
74
+ if (source == null) return {};
75
+ var target = _objectWithoutPropertiesLoose(source, excluded);
76
+ var key, i;
77
+ if (Object.getOwnPropertySymbols) {
78
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
79
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
80
+ key = sourceSymbolKeys[i];
81
+ if (excluded.indexOf(key) >= 0) continue;
82
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
83
+ target[key] = source[key];
84
+ }
85
+ }
86
+ return target;
87
+ }
88
+ function _toPrimitive(input, hint) {
89
+ if (typeof input !== "object" || input === null) return input;
90
+ var prim = input[Symbol.toPrimitive];
91
+ if (prim !== undefined) {
92
+ var res = prim.call(input, hint || "default");
93
+ if (typeof res !== "object") return res;
94
+ throw new TypeError("@@toPrimitive must return a primitive value.");
95
+ }
96
+ return (hint === "string" ? String : Number)(input);
97
+ }
98
+ function _toPropertyKey(arg) {
99
+ var key = _toPrimitive(arg, "string");
100
+ return typeof key === "symbol" ? key : String(key);
69
101
  }
70
102
 
71
103
  var css = {"root":"Tumbler__root___tbqBR","view":"Tumbler__view___mdLlw","viewCircle":"Tumbler__viewCircle___2fnqc","input":"Tumbler__input___7lx3h","inputLoading":"Tumbler__inputLoading___KyFmD","spinner":"Tumbler__spinner___2VatE","spinnerEnterActive":"Tumbler__spinnerEnterActive___CL5Zt","spinnerEnterDone":"Tumbler__spinnerEnterDone___-3a-o","spinnerExitActive":"Tumbler__spinnerExitActive___MjHhx","spinnerExitDone":"Tumbler__spinnerExitDone___zzBA4"};
72
104
 
73
- var Tumbler = React__namespace.forwardRef(function (_a, ref) {
74
- var _b;
75
- var className = _a.className,
76
- _c = _a.loading,
77
- loading = _c === void 0 ? false : _c,
78
- _d = _a.type,
79
- type = _d === void 0 ? 'checkbox' : _d,
80
- props = __rest(_a, ["className", "loading", "type"]);
81
- return React__namespace.createElement("div", {
105
+ var _excluded = ["className", "loading", "type"];
106
+ var Tumbler = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
107
+ var className = _ref.className,
108
+ _ref$loading = _ref.loading,
109
+ loading = _ref$loading === void 0 ? false : _ref$loading,
110
+ _ref$type = _ref.type,
111
+ type = _ref$type === void 0 ? 'checkbox' : _ref$type,
112
+ props = _objectWithoutProperties(_ref, _excluded);
113
+ return /*#__PURE__*/React__namespace.createElement("div", {
82
114
  className: classNames__default.default(css.root, className)
83
- }, React__namespace.createElement("input", __assign({
115
+ }, /*#__PURE__*/React__namespace.createElement("input", _extends({
84
116
  ref: ref,
85
- className: classNames__default.default(css.input, (_b = {}, _b[css.inputLoading] = loading, _b)),
117
+ className: classNames__default.default(css.input, _defineProperty({}, css.inputLoading, loading)),
86
118
  type: type
87
- }, props)), React__namespace.createElement("div", {
119
+ }, props)), /*#__PURE__*/React__namespace.createElement("div", {
88
120
  className: css.view
89
- }, React__namespace.createElement("div", {
121
+ }, /*#__PURE__*/React__namespace.createElement("div", {
90
122
  className: css.viewCircle
91
- }, React__namespace.createElement(reactTransitionGroup.CSSTransition, {
92
- in: loading,
123
+ }, /*#__PURE__*/React__namespace.createElement(reactTransitionGroup.CSSTransition, {
124
+ "in": loading,
93
125
  timeout: 100,
94
126
  classNames: {
95
127
  enterActive: css.spinnerEnterActive,
@@ -98,7 +130,7 @@ var Tumbler = React__namespace.forwardRef(function (_a, ref) {
98
130
  exitDone: css.spinnerExitDone
99
131
  },
100
132
  unmountOnExit: true
101
- }, React__namespace.createElement(Spinner.Spinner, {
133
+ }, /*#__PURE__*/React__namespace.createElement(Spinner.Spinner, {
102
134
  className: css.spinner
103
135
  })))));
104
136
  });
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Spinner");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var c=o(e),i=a(r),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};var u="_17yYC",s="w66K2",f="xvJqd",p="Kg91O",m="y1iJD",y="CNMl7",d="C2P5b",b="cgEXP",v="k-mzv",O="XD0-8",j=c.forwardRef((function(e,r){var a,o=e.className,j=e.loading,g=void 0!==j&&j,E=e.type,x=void 0===E?"checkbox":E,N=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["className","loading","type"]);return c.createElement("div",{className:i.default(u,o)},c.createElement("input",l({ref:r,className:i.default(p,(a={},a[m]=g,a)),type:x},N)),c.createElement("div",{className:s},c.createElement("div",{className:f},c.createElement(t.CSSTransition,{in:g,timeout:100,classNames:{enterActive:d,enterDone:b,exitActive:v,exitDone:O},unmountOnExit:!0},c.createElement(n.Spinner,{className:y})))))}));exports.Tumbler=j,require("./style.production.css");
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Spinner");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=a(e),u=i(r);function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var s="_17yYC",p="w66K2",b="xvJqd",m="Kg91O",v="y1iJD",y="CNMl7",d="C2P5b",O="cgEXP",g="k-mzv",j="XD0-8",E=["className","loading","type"],P=o.forwardRef((function(e,r){var i=e.className,a=e.loading,P=void 0!==a&&a,N=e.type,w=void 0===N?"checkbox":N,x=f(e,E);return o.createElement("div",{className:u.default(s,i)},o.createElement("input",l({ref:r,className:u.default(m,c({},v,P)),type:w},x)),o.createElement("div",{className:p},o.createElement("div",{className:b},o.createElement(t.CSSTransition,{in:P,timeout:100,classNames:{enterActive:d,enterDone:O,exitActive:g,exitDone:j},unmountOnExit:!0},o.createElement(n.Spinner,{className:y})))))}));exports.Tumbler=P,require("./style.production.css");
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Spinner");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var c=o(e),i=a(r),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},l.apply(this,arguments)};var u="tbqBR",s="mdLlw",f="_2fnqc",p="_7lx3h",m="KyFmD",y="_2VatE",d="CL5Zt",b="_-3a-o",v="MjHhx",O="zzBA4",j=c.forwardRef((function(e,r){var a,o=e.className,j=e.loading,g=void 0!==j&&j,x=e.type,E=void 0===x?"checkbox":x,h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["className","loading","type"]);return c.createElement("div",{className:i.default(u,o)},c.createElement("input",l({ref:r,className:i.default(p,(a={},a[m]=g,a)),type:E},h)),c.createElement("div",{className:s},c.createElement("div",{className:f},c.createElement(t.CSSTransition,{in:g,timeout:100,classNames:{enterActive:d,enterDone:b,exitActive:v,exitDone:O},unmountOnExit:!0},c.createElement(n.Spinner,{className:y})))))}));exports.Tumbler=j,require("./style.production.v2.css");
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Spinner");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=a(e),u=i(r);function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var s="tbqBR",p="mdLlw",m="_2fnqc",b="_7lx3h",v="KyFmD",y="_2VatE",d="CL5Zt",O="_-3a-o",j="MjHhx",g="zzBA4",E=["className","loading","type"],h=o.forwardRef((function(e,r){var i=e.className,a=e.loading,h=void 0!==a&&a,x=e.type,w=void 0===x?"checkbox":x,N=f(e,E);return o.createElement("div",{className:u.default(s,i)},o.createElement("input",l({ref:r,className:u.default(b,c({},v,h)),type:w},N)),o.createElement("div",{className:p},o.createElement("div",{className:m},o.createElement(t.CSSTransition,{in:h,timeout:100,classNames:{enterActive:d,enterDone:O,exitActive:j,exitDone:g},unmountOnExit:!0},o.createElement(n.Spinner,{className:y})))))}));exports.Tumbler=h,require("./style.production.v2.css");
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- export type TumblerProps = React.ComponentPropsWithRef<'input'> & {
3
- type?: 'checkbox' | 'radio';
4
- className?: string;
5
- /** Спиннер */
6
- loading?: boolean;
7
- };
8
- export declare const Tumbler: React.ForwardRefExoticComponent<Omit<TumblerProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
1
+ import * as React from 'react';
2
+ export type TumblerProps = React.ComponentPropsWithRef<'input'> & {
3
+ type?: 'checkbox' | 'radio';
4
+ className?: string;
5
+ /** Спиннер */
6
+ loading?: boolean;
7
+ };
8
+ export declare const Tumbler: React.ForwardRefExoticComponent<Omit<TumblerProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Tumbler",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [