@ornikar/kitt-universal 5.0.0 → 6.0.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/dist/definitions/Button/Button.d.ts +0 -1
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/Icon/Icon.d.ts +10 -2
- package/dist/definitions/Icon/Icon.d.ts.map +1 -1
- package/dist/definitions/Icon/SpinningIcon.d.ts +4 -4
- package/dist/definitions/Icon/SpinningIcon.d.ts.map +1 -1
- package/dist/definitions/Icon/SpinningIcon.web.d.ts +1 -1
- package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
- package/dist/definitions/Loader/Loader.d.ts.map +1 -1
- package/dist/definitions/Loader/Loader.web.d.ts +3 -3
- package/dist/definitions/Loader/Loader.web.d.ts.map +1 -1
- package/dist/definitions/forms/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/DatePickerAndroid.d.ts +12 -0
- package/dist/definitions/forms/DatePicker/DatePickerAndroid.d.ts.map +1 -0
- package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +1 -1
- package/dist/definitions/index.d.ts +4 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/typography/TypographySpinningIcon.d.ts +9 -0
- package/dist/definitions/typography/TypographySpinningIcon.d.ts.map +1 -0
- package/dist/index-browser-all.es.android.js +877 -767
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +246 -247
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +246 -247
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +258 -312
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +161 -64
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.css +1 -1
- package/dist/index-node-14.17.cjs.web.js +102 -66
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +3 -3
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +3 -3
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +3 -3
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +3 -3
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +3 -3
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +3 -3
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +7 -6
- package/dist/definitions/forms/DatePicker/DatePicker.android.d.ts +0 -4
- package/dist/definitions/forms/DatePicker/DatePicker.android.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.kitt-u_StyledSpinningIconContainer_ssn8o83{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}.kitt-u_StyledSpinningIconContainer_ssn8o83 > svg{-webkit-animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;}@-webkit-keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}@keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}
|
|
2
1
|
.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh{width:auto;display:var(--a1vkj3mh-0);-webkit-align-self:var(--a1vkj3mh-1);-ms-flex-item-align:var(--a1vkj3mh-1);align-self:var(--a1vkj3mh-1);outline:none;}@media (min-width:768px){.kitt-hover .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:hover > * > *{-webkit-transform:scale(var(--a1vkj3mh-3));-ms-transform:scale(var(--a1vkj3mh-3));transform:scale(var(--a1vkj3mh-3));}}.kitt-active .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:active > * > *{-webkit-transform:var(--a1vkj3mh-4);-ms-transform:var(--a1vkj3mh-4);transform:var(--a1vkj3mh-4);}.kitt-active .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:active > * > *,.kitt-hover .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:hover > * > *{background:var(--a1vkj3mh-5);}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *{-webkit-transform:scale(1) translateZ(0);-ms-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:var(--a1vkj3mh-6);transition:var(--a1vkj3mh-6);}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::after,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before{content:'';position:absolute;border-radius:var(--a1vkj3mh-7);-webkit-transition:var(--a1vkj3mh-8);transition:var(--a1vkj3mh-8);}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::after{opacity:var(--a1vkj3mh-9);top:var(--a1vkj3mh-10);left:var(--a1vkj3mh-10);width:var(--a1vkj3mh-12);height:var(--a1vkj3mh-12);border:var(--a1vkj3mh-14);}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before{opacity:0;border:var(--a1vkj3mh-15);width:100%;height:100%;top:var(--a1vkj3mh-16);left:var(--a1vkj3mh-16);}.kitt-focus .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:focus > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > [data-focusvisible-polyfill]{outline:none;}.kitt-focus .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:focus > * > *::before,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > [data-focusvisible-polyfill] > *::before{opacity:1;}.kitt-hover .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:hover > * > *::before,.kitt-active .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:active > * > *::before{opacity:0;}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > *{color:var(--a1vkj3mh-18);}.kitt-hover .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:hover > *{color:var(--a1vkj3mh-19);}.kitt-active .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:active > *{color:var(--a1vkj3mh-20);}
|
|
3
2
|
.kitt-u_InputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_InputTextContainer_i1encr9g > [data-focusvisible-polyfill]{outline:none;}.kitt-u_InputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_InputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_InputTextContainer_i1encr9g,.kitt-u_InputTextContainer_i1encr9g > *{cursor:var(--i1encr9g-0);}.kitt-u_InputTextContainer_i1encr9g > *{-webkit-transition:var(--i1encr9g-1);transition:var(--i1encr9g-1);}.kitt-u_InputTextContainer_i1encr9g:hover > *,.kitt-hover .kitt-u_InputTextContainer_i1encr9g > *{border-color:var(--i1encr9g-2);}.kitt-u_InputTextContainer_i1encr9g:focus > *,.kitt-u_InputTextContainer_i1encr9g > *:focus,.kitt-focus .kitt-u_InputTextContainer_i1encr9g > *{border-color:var(--i1encr9g-3);}
|
|
3
|
+
.kitt-u_StyledSpinningIconContainer_ssn8o83{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}.kitt-u_StyledSpinningIconContainer_ssn8o83 > svg{-webkit-animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;}@-webkit-keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}@keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}
|
|
4
4
|
@media (hover:none) and (pointer:coarse){.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-0));-ms-transform:scale(var(--p1nlccvg-0));transform:scale(var(--p1nlccvg-0));}}@media (min-width:768px){.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-2));-ms-transform:scale(var(--p1nlccvg-2));transform:scale(var(--p1nlccvg-2));}}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:active,.kitt-active .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-3));-ms-transform:scale(var(--p1nlccvg-3));transform:scale(var(--p1nlccvg-3));}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > [data-focusvisible-polyfill]{outline:none;}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:focus,.kitt-focus .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > [data-focusvisible-polyfill],.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:active,.kitt-active .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{background-color:var(--p1nlccvg-4);}
|
|
5
5
|
.kitt-u_LargeLoaderContainer_l2im3sa{width:60px;height:60px;-webkit-transform:scale(-1) rotate(90deg);-ms-transform:scale(-1) rotate(90deg);transform:scale(-1) rotate(90deg);}@-webkit-keyframes LargeLoaderInit-kitt-u_LargeLoaderContainer_l2im3sa{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:0;}}@keyframes LargeLoaderInit-kitt-u_LargeLoaderContainer_l2im3sa{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:0;}}@-webkit-keyframes LargeLoaderOffset-kitt-u_LargeLoaderContainer_l2im3sa{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:34px;}}@keyframes LargeLoaderOffset-kitt-u_LargeLoaderContainer_l2im3sa{0%{stroke-dashoffset:169.64px;}100%{stroke-dashoffset:34px;}}@-webkit-keyframes LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}.kitt-u_LargeLoaderContainer_l2im3sa circle,.kitt-u_LargeLoaderContainer_l2im3sa g{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;}.kitt-u_LargeLoaderContainer_l2im3sa circle{stroke-width:3px;stroke-dasharray:169.64px;stroke-dashoffset:169.64px;stroke-linecap:round;}.kitt-u_LargeLoaderContainer_l2im3sa g[data-large-loader='base'] circle{stroke:var(--l2im3sa-0);-webkit-animation:LargeLoaderInit-kitt-u_LargeLoaderContainer_l2im3sa 1s cubic-bezier(0.39,0.575,0.565,1) 0.5s forwards;animation:LargeLoaderInit-kitt-u_LargeLoaderContainer_l2im3sa 1s cubic-bezier(0.39,0.575,0.565,1) 0.5s forwards;}.kitt-u_LargeLoaderContainer_l2im3sa g[data-large-loader='fill']{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;-webkit-animation:LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa 1.8s linear 0.5s infinite;animation:LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa 1.8s linear 0.5s infinite;}.kitt-u_LargeLoaderContainer_l2im3sa g[data-large-loader='fill'] circle{stroke:var(--l2im3sa-1);-webkit-animation:LargeLoaderOffset-kitt-u_LargeLoaderContainer_l2im3sa 1.8s cubic-bezier(0.39,0.575,0.565,1) 0.5s infinite alternate,LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa 2.16s linear 0.5s infinite;animation:LargeLoaderOffset-kitt-u_LargeLoaderContainer_l2im3sa 1.8s cubic-bezier(0.39,0.575,0.565,1) 0.5s infinite alternate,LargeLoaderRotation-kitt-u_LargeLoaderContainer_l2im3sa 2.16s linear 0.5s infinite;}
|
|
6
6
|
.kitt-u_StyledSkeleton_sc3upcl{background-color:var(--sc3upcl-0);position:relative;overflow:hidden;height:100%;width:100%;}@-webkit-keyframes flareTranslate-kitt-u_StyledSkeleton_sc3upcl{from{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);}to{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}}@keyframes flareTranslate-kitt-u_StyledSkeleton_sc3upcl{from{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);}to{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%);}}.kitt-u_StyledSkeleton_sc3upcl::after{content:'';position:absolute;width:100%;height:100%;top:0;left:0;background-image:var(--sc3upcl-1);-webkit-animation:var(--sc3upcl-2);animation:var(--sc3upcl-2);-webkit-animation-name:flareTranslate-kitt-u_StyledSkeleton_sc3upcl;animation-name:flareTranslate-kitt-u_StyledSkeleton_sc3upcl;}
|
|
@@ -6,8 +6,8 @@ const BabelPluginStyledComponentsReactNative = require('react-native');
|
|
|
6
6
|
const kittIcons = require('@ornikar/kitt-icons');
|
|
7
7
|
const styled = require('styled-components/native');
|
|
8
8
|
const react = require('react');
|
|
9
|
-
const react$1 = require('@linaria/react');
|
|
10
9
|
const jsxRuntime = require('react/jsx-runtime');
|
|
10
|
+
const react$1 = require('@linaria/react');
|
|
11
11
|
const twemojiParser = require('twemoji-parser');
|
|
12
12
|
const reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
13
13
|
const reactDom = require('@floating-ui/react-dom');
|
|
@@ -17,56 +17,22 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
17
17
|
|
|
18
18
|
const styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
22
|
-
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
23
|
-
// WrappedComponent: ComponentType<Props> & C,
|
|
24
|
-
// ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
|
|
25
|
-
// return function ThemedComponent(props) {
|
|
26
|
-
// const theme = useTheme();
|
|
27
|
-
// return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
|
|
28
|
-
// };
|
|
29
|
-
// }
|
|
30
|
-
function withTheme(WrappedComponent) {
|
|
31
|
-
// eslint-disable-next-line prefer-arrow-callback
|
|
32
|
-
return /*#__PURE__*/react.forwardRef(function (props, ref) {
|
|
33
|
-
const theme = /*#__PURE__*/styled.useTheme();
|
|
34
|
-
return /*#__PURE__*/jsxRuntime.jsx(WrappedComponent, {
|
|
35
|
-
ref: ref,
|
|
36
|
-
theme: theme,
|
|
37
|
-
...props
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const StyledSpinningIconContainer = withTheme( /*#__PURE__*/react$1.styled("div")({
|
|
43
|
-
name: "StyledSpinningIconContainer",
|
|
44
|
-
class: "kitt-u_StyledSpinningIconContainer_ssn8o83"
|
|
45
|
-
}));
|
|
46
|
-
function SpinningIcon({
|
|
47
|
-
children
|
|
48
|
-
}) {
|
|
49
|
-
return /*#__PURE__*/jsxRuntime.jsx(StyledSpinningIconContainer, {
|
|
50
|
-
children: children
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
20
|
+
const defaultIconSize = 20;
|
|
54
21
|
const IconContainer$1 = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
55
22
|
displayName: "Icon__IconContainer",
|
|
56
23
|
componentId: "kitt-universal__sc-usm0ol-0"
|
|
57
24
|
})(["color:", ";width:", "px;height:", "px;align-self:", ";"], ({
|
|
58
|
-
color
|
|
59
|
-
}) => color, ({
|
|
60
|
-
size
|
|
61
|
-
}) => size, ({
|
|
62
|
-
size
|
|
63
|
-
}) => size, ({
|
|
64
|
-
align = 'auto'
|
|
65
|
-
}) => align);
|
|
25
|
+
$color
|
|
26
|
+
}) => $color, ({
|
|
27
|
+
$size
|
|
28
|
+
}) => $size, ({
|
|
29
|
+
$size
|
|
30
|
+
}) => $size, ({
|
|
31
|
+
$align = 'auto'
|
|
32
|
+
}) => $align);
|
|
66
33
|
function Icon({
|
|
67
34
|
icon,
|
|
68
|
-
size =
|
|
69
|
-
spin,
|
|
35
|
+
size = defaultIconSize,
|
|
70
36
|
align,
|
|
71
37
|
color
|
|
72
38
|
}) {
|
|
@@ -74,12 +40,10 @@ function Icon({
|
|
|
74
40
|
color
|
|
75
41
|
});
|
|
76
42
|
return /*#__PURE__*/jsxRuntime.jsx(IconContainer$1, {
|
|
77
|
-
align: align,
|
|
78
|
-
size: size,
|
|
79
|
-
color: color,
|
|
80
|
-
children:
|
|
81
|
-
children: clonedIcon
|
|
82
|
-
}) : clonedIcon
|
|
43
|
+
$align: align,
|
|
44
|
+
$size: size,
|
|
45
|
+
$color: color,
|
|
46
|
+
children: clonedIcon
|
|
83
47
|
});
|
|
84
48
|
}
|
|
85
49
|
|
|
@@ -390,6 +354,28 @@ function Avatar({
|
|
|
390
354
|
});
|
|
391
355
|
}
|
|
392
356
|
|
|
357
|
+
// type $Without<T, K extends keyof any> = T extends any ? Pick<T, Exclude<keyof T, K>> : never;
|
|
358
|
+
// type $DeepPartial<T> = { [P in keyof T]?: $DeepPartial<T[P]> };
|
|
359
|
+
// export function withTheme<Props extends { theme: DefaultTheme }, C>(
|
|
360
|
+
// WrappedComponent: ComponentType<Props> & C,
|
|
361
|
+
// ): ComponentType<SetOptional<Props, 'theme'>> & hoistNonReactStatics.NonReactStatics<typeof WrappedComponent> {
|
|
362
|
+
// return function ThemedComponent(props) {
|
|
363
|
+
// const theme = useTheme();
|
|
364
|
+
// return (<WrappedComponent theme={theme} {...(props as any)} />) as any;
|
|
365
|
+
// };
|
|
366
|
+
// }
|
|
367
|
+
function withTheme(WrappedComponent) {
|
|
368
|
+
// eslint-disable-next-line prefer-arrow-callback
|
|
369
|
+
return /*#__PURE__*/react.forwardRef(function (props, ref) {
|
|
370
|
+
const theme = /*#__PURE__*/styled.useTheme();
|
|
371
|
+
return /*#__PURE__*/jsxRuntime.jsx(WrappedComponent, {
|
|
372
|
+
ref: ref,
|
|
373
|
+
theme: theme,
|
|
374
|
+
...props
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
|
|
393
379
|
function isSubtle(type) {
|
|
394
380
|
return type.startsWith('subtle');
|
|
395
381
|
}
|
|
@@ -625,7 +611,6 @@ const StyledIconContainer$1 = /*#__PURE__*/styled__default(BabelPluginStyledComp
|
|
|
625
611
|
function ButtonIcon({
|
|
626
612
|
icon,
|
|
627
613
|
color,
|
|
628
|
-
spin,
|
|
629
614
|
iconPosition,
|
|
630
615
|
testID
|
|
631
616
|
}) {
|
|
@@ -633,7 +618,6 @@ function ButtonIcon({
|
|
|
633
618
|
$iconPosition: iconPosition,
|
|
634
619
|
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
635
620
|
icon: icon,
|
|
636
|
-
spin: spin,
|
|
637
621
|
testID: testID,
|
|
638
622
|
color: color
|
|
639
623
|
})
|
|
@@ -648,7 +632,6 @@ function ButtonContentChildren({
|
|
|
648
632
|
type,
|
|
649
633
|
icon,
|
|
650
634
|
iconPosition,
|
|
651
|
-
iconSpin,
|
|
652
635
|
isDisabled,
|
|
653
636
|
color,
|
|
654
637
|
children
|
|
@@ -662,9 +645,8 @@ function ButtonContentChildren({
|
|
|
662
645
|
const isWebSubtle = isSubtle(type) && "web" === 'web' && !isDisabled;
|
|
663
646
|
|
|
664
647
|
if (!children) {
|
|
665
|
-
return /*#__PURE__*/jsxRuntime.jsx(TypographyIcon
|
|
666
|
-
|
|
667
|
-
,
|
|
648
|
+
return /*#__PURE__*/jsxRuntime.jsx(TypographyIcon // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
649
|
+
, {
|
|
668
650
|
icon: icon,
|
|
669
651
|
color: isWebSubtle ? 'inherit' : color
|
|
670
652
|
});
|
|
@@ -672,7 +654,6 @@ function ButtonContentChildren({
|
|
|
672
654
|
|
|
673
655
|
const buttonIconSharedProps = {
|
|
674
656
|
type,
|
|
675
|
-
spin: iconSpin,
|
|
676
657
|
iconPosition,
|
|
677
658
|
color: isWebSubtle ? 'inherit' : color
|
|
678
659
|
};
|
|
@@ -742,7 +723,6 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
742
723
|
large,
|
|
743
724
|
icon,
|
|
744
725
|
iconPosition = 'left',
|
|
745
|
-
iconSpin,
|
|
746
726
|
testID,
|
|
747
727
|
href,
|
|
748
728
|
hrefAttrs,
|
|
@@ -770,7 +750,6 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
770
750
|
isDisabled: disabled,
|
|
771
751
|
icon: icon,
|
|
772
752
|
iconPosition: iconPosition,
|
|
773
|
-
iconSpin: iconSpin,
|
|
774
753
|
children: children
|
|
775
754
|
}), null]
|
|
776
755
|
})
|
|
@@ -931,9 +910,9 @@ const button = {
|
|
|
931
910
|
}
|
|
932
911
|
},
|
|
933
912
|
contentPadding: {
|
|
934
|
-
default: '
|
|
935
|
-
large: '
|
|
936
|
-
disabled: '
|
|
913
|
+
default: '7px 16px 7px',
|
|
914
|
+
large: '11px 24px 11px',
|
|
915
|
+
disabled: '5px 14px 5px'
|
|
937
916
|
},
|
|
938
917
|
transition: {
|
|
939
918
|
duration: '200ms',
|
|
@@ -1441,7 +1420,7 @@ function useKittTheme() {
|
|
|
1441
1420
|
const CheckboxAndLabelPressableWrapper = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.Pressable).withConfig({
|
|
1442
1421
|
displayName: "Checkbox__CheckboxAndLabelPressableWrapper",
|
|
1443
1422
|
componentId: "kitt-universal__sc-1sav1n6-0"
|
|
1444
|
-
})(["display:flex;flex-direction:row;
|
|
1423
|
+
})(["display:flex;flex-direction:row;"]);
|
|
1445
1424
|
const CheckboxContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
|
|
1446
1425
|
displayName: "Checkbox__CheckboxContainer",
|
|
1447
1426
|
componentId: "kitt-universal__sc-1sav1n6-1"
|
|
@@ -2231,6 +2210,29 @@ function FullScreenModal({
|
|
|
2231
2210
|
FullScreenModal.Header = FullScreenModalHeader;
|
|
2232
2211
|
FullScreenModal.Body = FullScreenModalBody;
|
|
2233
2212
|
|
|
2213
|
+
const StyledSpinningIconContainer = withTheme( /*#__PURE__*/react$1.styled("div")({
|
|
2214
|
+
name: "StyledSpinningIconContainer",
|
|
2215
|
+
class: "kitt-u_StyledSpinningIconContainer_ssn8o83"
|
|
2216
|
+
}));
|
|
2217
|
+
function SpinningIcon({
|
|
2218
|
+
icon,
|
|
2219
|
+
size = defaultIconSize,
|
|
2220
|
+
align,
|
|
2221
|
+
color
|
|
2222
|
+
}) {
|
|
2223
|
+
const clonedIcon = /*#__PURE__*/react.cloneElement(icon, {
|
|
2224
|
+
color
|
|
2225
|
+
});
|
|
2226
|
+
return /*#__PURE__*/jsxRuntime.jsx(IconContainer$1, {
|
|
2227
|
+
$align: align,
|
|
2228
|
+
$size: size,
|
|
2229
|
+
$color: color,
|
|
2230
|
+
children: /*#__PURE__*/jsxRuntime.jsx(StyledSpinningIconContainer, {
|
|
2231
|
+
children: clonedIcon
|
|
2232
|
+
})
|
|
2233
|
+
});
|
|
2234
|
+
}
|
|
2235
|
+
|
|
2234
2236
|
function StyleWebWrapper({
|
|
2235
2237
|
as,
|
|
2236
2238
|
children,
|
|
@@ -2547,12 +2549,44 @@ function LargeLoader() {
|
|
|
2547
2549
|
});
|
|
2548
2550
|
}
|
|
2549
2551
|
|
|
2552
|
+
function TypographySpinningIconSpecifiedColor({
|
|
2553
|
+
color,
|
|
2554
|
+
...props
|
|
2555
|
+
}) {
|
|
2556
|
+
const theme = /*#__PURE__*/styled.useTheme();
|
|
2557
|
+
return /*#__PURE__*/jsxRuntime.jsx(SpinningIcon, { ...props,
|
|
2558
|
+
color: color === 'inherit' ? 'inherit' : theme.kitt.typography.colors[color]
|
|
2559
|
+
});
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
function TypographySpinningIconInheritColor(props) {
|
|
2563
|
+
const color = useTypographyColor();
|
|
2564
|
+
return /*#__PURE__*/jsxRuntime.jsx(TypographySpinningIconSpecifiedColor, {
|
|
2565
|
+
color: color,
|
|
2566
|
+
...props
|
|
2567
|
+
});
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
function TypographySpinningIcon({
|
|
2571
|
+
color,
|
|
2572
|
+
...props
|
|
2573
|
+
}) {
|
|
2574
|
+
if (color) {
|
|
2575
|
+
return /*#__PURE__*/jsxRuntime.jsx(TypographySpinningIconSpecifiedColor, {
|
|
2576
|
+
color: color,
|
|
2577
|
+
...props
|
|
2578
|
+
});
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
return /*#__PURE__*/jsxRuntime.jsx(TypographySpinningIconInheritColor, { ...props
|
|
2582
|
+
});
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2550
2585
|
function Loader({
|
|
2551
2586
|
color = 'primary',
|
|
2552
2587
|
size = 20
|
|
2553
2588
|
}) {
|
|
2554
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
2555
|
-
spin: true,
|
|
2589
|
+
return /*#__PURE__*/jsxRuntime.jsx(TypographySpinningIcon, {
|
|
2556
2590
|
color: color,
|
|
2557
2591
|
size: size,
|
|
2558
2592
|
icon: /*#__PURE__*/jsxRuntime.jsx(kittIcons.LoaderIcon, {})
|
|
@@ -3722,6 +3756,7 @@ exports.Notification = Notification;
|
|
|
3722
3756
|
exports.Radio = Radio;
|
|
3723
3757
|
exports.Section = DeprecatedSection;
|
|
3724
3758
|
exports.Skeleton = Skeleton;
|
|
3759
|
+
exports.SpinningIcon = SpinningIcon;
|
|
3725
3760
|
exports.Story = Story;
|
|
3726
3761
|
exports.StoryBlock = StoryBlock;
|
|
3727
3762
|
exports.StoryContainer = StoryContainer;
|
|
@@ -3738,6 +3773,7 @@ exports.Typography = Typography;
|
|
|
3738
3773
|
exports.TypographyEmoji = TypographyEmoji;
|
|
3739
3774
|
exports.TypographyIcon = TypographyIcon;
|
|
3740
3775
|
exports.TypographyLink = TypographyLink;
|
|
3776
|
+
exports.TypographySpinningIcon = TypographySpinningIcon;
|
|
3741
3777
|
exports.createWindowSizeHelper = createWindowSizeHelper;
|
|
3742
3778
|
exports.hex2rgba = hex2rgba;
|
|
3743
3779
|
exports.matchWindowSize = matchWindowSize;
|