@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.
- package/Avatar/cjs/index.development.js +99 -67
- package/Avatar/cjs/index.development.v2.js +99 -67
- package/Avatar/cjs/index.production.js +1 -1
- package/Avatar/cjs/index.production.v2.js +1 -1
- package/Avatar/index.d.ts +14 -14
- package/Avatar/package.json +1 -1
- package/Avatar/utils.d.ts +2 -2
- package/Backdrop/cjs/index.development.js +131 -77
- package/Backdrop/cjs/index.development.v2.js +131 -77
- package/Backdrop/cjs/index.production.js +1 -1
- package/Backdrop/cjs/index.production.v2.js +1 -1
- package/Backdrop/index.d.ts +25 -25
- package/Backdrop/package.json +1 -1
- package/Body/cjs/index.development.js +2 -0
- package/Body/cjs/index.development.v2.js +2 -0
- package/Body/index.d.ts +36 -36
- package/Body/package.json +1 -1
- package/BodyContext/cjs/index.development.js +6 -7
- package/BodyContext/cjs/index.development.v2.js +6 -7
- package/BodyContext/cjs/index.production.js +1 -1
- package/BodyContext/cjs/index.production.v2.js +1 -1
- package/BodyContext/index.d.ts +12 -12
- package/BodyContext/package.json +1 -1
- package/BodyProvider/cjs/index.development.js +7 -6
- package/BodyProvider/cjs/index.development.v2.js +7 -6
- package/BodyProvider/index.d.ts +10 -10
- package/BodyProvider/package.json +1 -1
- package/Box/cjs/index.development.js +4 -4
- package/Box/cjs/index.development.v2.js +4 -4
- package/Box/index.d.ts +106 -106
- package/Box/package.json +1 -1
- package/Button/cjs/index.development.js +67 -62
- package/Button/cjs/index.development.v2.js +67 -62
- package/Button/cjs/index.production.js +1 -1
- package/Button/cjs/index.production.v2.js +1 -1
- package/Button/index.d.ts +45 -45
- package/Button/package.json +1 -1
- package/ButtonPageUp/cjs/index.development.js +195 -85
- package/ButtonPageUp/cjs/index.development.v2.js +195 -85
- package/ButtonPageUp/cjs/index.production.js +1 -1
- package/ButtonPageUp/cjs/index.production.v2.js +1 -1
- package/ButtonPageUp/index.d.ts +18 -18
- package/ButtonPageUp/package.json +1 -1
- package/Checkbox/cjs/index.development.js +99 -67
- package/Checkbox/cjs/index.development.v2.js +99 -67
- package/Checkbox/cjs/index.production.js +1 -1
- package/Checkbox/cjs/index.production.v2.js +1 -1
- package/Checkbox/index.d.ts +8 -8
- package/Checkbox/package.json +1 -1
- package/Flex/index.d.ts +34 -34
- package/Flex/package.json +1 -1
- package/Grid/index.d.ts +46 -46
- package/Grid/package.json +1 -1
- package/Icon/index.d.ts +9 -9
- package/Icon/package.json +1 -1
- package/Image/index.d.ts +42 -42
- package/Image/package.json +1 -1
- package/ImageEmoji/cjs/index.development.js +70 -63
- package/ImageEmoji/cjs/index.development.v2.js +70 -63
- package/ImageEmoji/cjs/index.production.js +1 -1
- package/ImageEmoji/cjs/index.production.v2.js +1 -1
- package/ImageEmoji/index.d.ts +9 -9
- package/ImageEmoji/package.json +1 -1
- package/Input/index.d.ts +18 -18
- package/Input/package.json +1 -1
- package/InputField/addons/AfterClearValue.d.ts +3 -3
- package/InputField/addons/AfterCorrectValue.d.ts +2 -2
- package/InputField/addons/AfterLoading.d.ts +2 -2
- package/InputField/addons/AfterTogglePassword.d.ts +6 -6
- package/InputField/addons/ErrorText.d.ts +6 -6
- package/InputField/cjs/index.development.js +237 -173
- package/InputField/cjs/index.development.v2.js +237 -173
- package/InputField/cjs/index.production.js +1 -1
- package/InputField/cjs/index.production.v2.js +1 -1
- package/InputField/index.d.ts +18 -18
- package/InputField/package.json +1 -1
- package/InputField/utils.d.ts +10 -10
- package/KeyPress/cjs/index.development.js +13 -13
- package/KeyPress/cjs/index.development.v2.js +13 -13
- package/KeyPress/index.d.ts +14 -14
- package/KeyPress/package.json +1 -1
- package/Line/index.d.ts +13 -13
- package/Line/package.json +1 -1
- package/Link/cjs/index.development.js +5 -5
- package/Link/cjs/index.development.v2.js +5 -5
- package/Link/index.d.ts +28 -28
- package/Link/package.json +1 -1
- package/List/index.d.ts +23 -23
- package/List/package.json +1 -1
- package/Media/MediaProvider.d.ts +8 -8
- package/Media/cjs/index.development.js +70 -19
- package/Media/cjs/index.development.v2.js +70 -19
- package/Media/cjs/index.production.js +1 -1
- package/Media/cjs/index.production.v2.js +1 -1
- package/Media/index.d.ts +20 -20
- package/Media/package.json +1 -1
- package/OutsideClick/cjs/index.development.js +117 -61
- package/OutsideClick/cjs/index.development.v2.js +117 -61
- package/OutsideClick/cjs/index.production.js +1 -1
- package/OutsideClick/cjs/index.production.v2.js +1 -1
- package/OutsideClick/index.d.ts +12 -12
- package/OutsideClick/package.json +1 -1
- package/Overlay/cjs/index.development.js +197 -183
- package/Overlay/cjs/index.development.v2.js +197 -183
- package/Overlay/cjs/index.production.js +1 -1
- package/Overlay/cjs/index.production.v2.js +1 -1
- package/Overlay/components/OverlayHeader.d.ts +11 -11
- package/Overlay/components/SwipeClose.d.ts +11 -11
- package/Overlay/components/TouchScrollable.d.ts +8 -8
- package/Overlay/index.d.ts +76 -76
- package/Overlay/package.json +1 -1
- package/Overlay/utils.d.ts +10 -10
- package/Picture/index.d.ts +70 -70
- package/Picture/package.json +1 -1
- package/Portal/cjs/index.development.js +11 -11
- package/Portal/cjs/index.development.v2.js +11 -11
- package/Portal/index.d.ts +10 -10
- package/Portal/package.json +1 -1
- package/QRCode/cjs/index.development.js +11 -11
- package/QRCode/cjs/index.development.v2.js +11 -11
- package/QRCode/index.d.ts +17 -17
- package/QRCode/package.json +1 -1
- package/Rating/cjs/index.development.js +75 -69
- package/Rating/cjs/index.development.v2.js +75 -69
- package/Rating/cjs/index.production.js +1 -1
- package/Rating/cjs/index.production.v2.js +1 -1
- package/Rating/index.d.ts +17 -17
- package/Rating/package.json +1 -1
- package/RatingSelect/cjs/index.development.js +148 -68
- package/RatingSelect/cjs/index.development.v2.js +148 -68
- package/RatingSelect/cjs/index.production.js +1 -1
- package/RatingSelect/cjs/index.production.v2.js +1 -1
- package/RatingSelect/index.d.ts +22 -18
- package/RatingSelect/package.json +1 -1
- package/SafeQuery/cjs/index.development.js +158 -110
- package/SafeQuery/cjs/index.development.v2.js +158 -110
- package/SafeQuery/cjs/index.production.js +1 -1
- package/SafeQuery/cjs/index.production.v2.js +1 -1
- package/SafeQuery/components/Error.d.ts +7 -7
- package/SafeQuery/index.d.ts +10 -10
- package/SafeQuery/package.json +1 -1
- package/Scroll/index.d.ts +25 -25
- package/Scroll/package.json +1 -1
- package/ScrollControls/ScrollControlsButton.d.ts +11 -11
- package/ScrollControls/cjs/index.development.js +201 -113
- package/ScrollControls/cjs/index.development.v2.js +201 -113
- package/ScrollControls/cjs/index.production.js +1 -1
- package/ScrollControls/cjs/index.production.v2.js +1 -1
- package/ScrollControls/index.d.ts +16 -16
- package/ScrollControls/package.json +1 -1
- package/SimpleSlider/cjs/index.development.js +270 -158
- package/SimpleSlider/cjs/index.development.v2.js +270 -158
- package/SimpleSlider/cjs/index.production.js +1 -1
- package/SimpleSlider/cjs/index.production.v2.js +1 -1
- package/SimpleSlider/index.d.ts +41 -41
- package/SimpleSlider/package.json +1 -1
- package/SimpleSlider/useAutoPlay.d.ts +3 -3
- package/SimpleSlider/utils.d.ts +19 -19
- package/Skeleton/cjs/index.development.js +118 -64
- package/Skeleton/cjs/index.development.v2.js +118 -64
- package/Skeleton/cjs/index.production.js +1 -1
- package/Skeleton/cjs/index.production.v2.js +1 -1
- package/Skeleton/index.d.ts +37 -37
- package/Skeleton/package.json +1 -1
- package/Spinner/cjs/index.development.js +66 -61
- package/Spinner/cjs/index.development.v2.js +66 -61
- package/Spinner/cjs/index.production.js +1 -1
- package/Spinner/cjs/index.production.v2.js +1 -1
- package/Spinner/index.d.ts +29 -29
- package/Spinner/package.json +1 -1
- package/Text/index.d.ts +25 -25
- package/Text/package.json +1 -1
- package/TextEmoji/cjs/index.development.js +65 -60
- package/TextEmoji/cjs/index.development.v2.js +65 -60
- package/TextEmoji/cjs/index.production.js +1 -1
- package/TextEmoji/cjs/index.production.v2.js +1 -1
- package/TextEmoji/index.d.ts +9 -9
- package/TextEmoji/package.json +1 -1
- package/Tooltip/cjs/index.development.js +80 -91
- package/Tooltip/cjs/index.development.v2.js +80 -91
- package/Tooltip/cjs/index.production.js +1 -1
- package/Tooltip/cjs/index.production.v2.js +1 -1
- package/Tooltip/index.d.ts +87 -87
- package/Tooltip/package.json +1 -1
- package/Tumbler/cjs/index.development.js +98 -66
- package/Tumbler/cjs/index.development.v2.js +98 -66
- package/Tumbler/cjs/index.production.js +1 -1
- package/Tumbler/cjs/index.production.v2.js +1 -1
- package/Tumbler/index.d.ts +8 -8
- package/Tumbler/package.json +1 -1
- package/package.json +7 -5
- package/useBodyTTag/cjs/index.development.js +1 -1
- package/useBodyTTag/cjs/index.development.v2.js +1 -1
- package/useBodyTTag/index.d.ts +2 -2
- package/useBodyTTag/package.json +1 -1
- package/useDebounce/cjs/index.development.js +58 -6
- package/useDebounce/cjs/index.development.v2.js +58 -6
- package/useDebounce/cjs/index.production.js +1 -1
- package/useDebounce/cjs/index.production.v2.js +1 -1
- package/useDebounce/index.d.ts +4 -4
- package/useDebounce/package.json +1 -1
- package/useId/cjs/index.development.js +6 -7
- package/useId/cjs/index.development.v2.js +6 -7
- package/useId/cjs/index.production.js +1 -1
- package/useId/cjs/index.production.v2.js +1 -1
- package/useId/index.d.ts +4 -4
- package/useId/package.json +1 -1
- package/useIsMounted/cjs/index.development.js +3 -3
- package/useIsMounted/cjs/index.development.v2.js +3 -3
- package/useIsMounted/index.d.ts +4 -4
- package/useIsMounted/package.json +1 -1
- package/useKeyPress/cjs/index.development.js +76 -22
- package/useKeyPress/cjs/index.development.v2.js +76 -22
- package/useKeyPress/cjs/index.production.js +1 -1
- package/useKeyPress/cjs/index.production.v2.js +1 -1
- package/useKeyPress/index.d.ts +6 -6
- package/useKeyPress/package.json +1 -1
- package/useMedia/cjs/index.development.js +5 -5
- package/useMedia/cjs/index.development.v2.js +5 -5
- package/useMedia/index.d.ts +21 -21
- package/useMedia/package.json +1 -1
- package/useOutsideClick/cjs/index.development.js +2 -2
- package/useOutsideClick/cjs/index.development.v2.js +2 -2
- package/useOutsideClick/index.d.ts +5 -5
- package/useOutsideClick/package.json +1 -1
- package/usePortal/cjs/index.development.js +32 -27
- package/usePortal/cjs/index.development.v2.js +32 -27
- package/usePortal/index.d.ts +12 -12
- package/usePortal/package.json +1 -1
- package/useScrollPosition/cjs/index.development.js +2 -2
- package/useScrollPosition/cjs/index.development.v2.js +2 -2
- package/useScrollPosition/index.d.ts +5 -5
- package/useScrollPosition/package.json +1 -1
package/Tooltip/index.d.ts
CHANGED
|
@@ -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 {};
|
package/Tooltip/package.json
CHANGED
|
@@ -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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
27
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
|
74
|
-
|
|
75
|
-
var className =
|
|
76
|
-
|
|
77
|
-
loading =
|
|
78
|
-
|
|
79
|
-
type =
|
|
80
|
-
props =
|
|
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",
|
|
115
|
+
}, /*#__PURE__*/React__namespace.createElement("input", _extends({
|
|
84
116
|
ref: ref,
|
|
85
|
-
className: classNames__default.default(css.input, (
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
|
|
27
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
|
74
|
-
|
|
75
|
-
var className =
|
|
76
|
-
|
|
77
|
-
loading =
|
|
78
|
-
|
|
79
|
-
type =
|
|
80
|
-
props =
|
|
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",
|
|
115
|
+
}, /*#__PURE__*/React__namespace.createElement("input", _extends({
|
|
84
116
|
ref: ref,
|
|
85
|
-
className: classNames__default.default(css.input, (
|
|
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
|
|
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
|
|
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");
|
package/Tumbler/index.d.ts
CHANGED
|
@@ -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>>;
|