@ornikar/kitt-universal 29.3.2 → 29.4.1-canary.2269ca599b5583fc6238639eb399d62b3abcf0a1.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/CHANGELOG.md +18 -0
- package/dist/definitions/themes/default.d.ts +1 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +2 -1
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +2 -1
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +2 -1
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +0 -1
- package/dist/index-node-22.17.cjs.web.js +31 -4
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +2 -1
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +0 -1
- package/dist/index-node-22.17.es.web.mjs +55 -28
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +2 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +55 -28
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +1 -0
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +1 -0
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +1 -0
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +1 -0
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +1 -0
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +1 -0
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +1 -0
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +1 -0
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +0 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/Icon/SpinningIcon.web.d.ts +0 -4
- package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
.kitt-u_spinningIcon_ssn8o83 > svg{-webkit-animation:spin-kitt-u_spinningIcon_ssn8o83 1.1s infinite linear;animation:spin-kitt-u_spinningIcon_ssn8o83 1.1s infinite linear;}@-webkit-keyframes spin-kitt-u_spinningIcon_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_spinningIcon_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_overflowHidden_otm3u3{overflow:hidden;}
|
|
3
2
|
.kitt-u_contentAnimationEnter_c11xxy4r{opacity:0;-webkit-transform:rotateZ(5deg) scale(0.8);-ms-transform:rotateZ(5deg) scale(0.8);transform:rotateZ(5deg) scale(0.8);}
|
|
4
3
|
.kitt-u_contentAnimatioEnterActive_cl52117{opacity:1;-webkit-transform:rotateZ(0) scale(1);-ms-transform:rotateZ(0) scale(1);transform:rotateZ(0) scale(1);-webkit-transition:all 400ms cubic-bezier(0.77,0,0.175,1);transition:all 400ms cubic-bezier(0.77,0,0.175,1);}
|
|
@@ -6,9 +6,9 @@ const react = require('react');
|
|
|
6
6
|
const nativeBase = require('native-base');
|
|
7
7
|
const jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
const phosphor = require('@ornikar/kitt-icons/phosphor');
|
|
9
|
+
const reactNative = require('react-native');
|
|
9
10
|
const reactDom = require('react-dom');
|
|
10
11
|
const reactTransitionGroup = require('react-transition-group');
|
|
11
|
-
const reactNative = require('react-native');
|
|
12
12
|
const parser = require('@twemoji/parser');
|
|
13
13
|
const Downshift = require('downshift');
|
|
14
14
|
const expoDocumentPicker = require('expo-document-picker');
|
|
@@ -2117,6 +2117,7 @@ const typography = {
|
|
|
2117
2117
|
contentCaps: {
|
|
2118
2118
|
fontFamily: {
|
|
2119
2119
|
native: {
|
|
2120
|
+
regular: 'GTStandardNarrow',
|
|
2120
2121
|
bold: 'GTStandardNarrowBold'
|
|
2121
2122
|
},
|
|
2122
2123
|
web: {
|
|
@@ -3683,16 +3684,42 @@ const Button = /*#__PURE__*/react.forwardRef(({
|
|
|
3683
3684
|
});
|
|
3684
3685
|
});
|
|
3685
3686
|
|
|
3686
|
-
const spinningIcon = "kitt-u_spinningIcon_ssn8o83";
|
|
3687
3687
|
function SpinningIcon({
|
|
3688
3688
|
icon,
|
|
3689
3689
|
color
|
|
3690
3690
|
}) {
|
|
3691
|
+
if (process.env.NODE_ENV !== 'production' && !color) {
|
|
3692
|
+
throw new Error(`Invalid color passed to SpinningIcon: ${String(color)}`);
|
|
3693
|
+
}
|
|
3691
3694
|
const clonedIcon = /*#__PURE__*/react.cloneElement(icon, {
|
|
3692
3695
|
color
|
|
3693
3696
|
});
|
|
3694
|
-
|
|
3695
|
-
|
|
3697
|
+
const animationRef = react.useRef(new reactNative.Animated.Value(0));
|
|
3698
|
+
const rotation = animationRef.current.interpolate({
|
|
3699
|
+
inputRange: [0, 1],
|
|
3700
|
+
outputRange: ['0deg', '360deg']
|
|
3701
|
+
});
|
|
3702
|
+
react.useEffect(() => {
|
|
3703
|
+
if (process.env.NODE_ENV === 'test') return undefined;
|
|
3704
|
+
const animation = reactNative.Animated.loop(reactNative.Animated.timing(animationRef.current, {
|
|
3705
|
+
toValue: 1,
|
|
3706
|
+
duration: 1100,
|
|
3707
|
+
easing: reactNative.Easing.linear,
|
|
3708
|
+
useNativeDriver: "web" !== 'web'
|
|
3709
|
+
}));
|
|
3710
|
+
animation.start();
|
|
3711
|
+
return () => {
|
|
3712
|
+
if (process.env.NODE_ENV === 'test') return undefined;
|
|
3713
|
+
animation.stop();
|
|
3714
|
+
return undefined;
|
|
3715
|
+
};
|
|
3716
|
+
}, []);
|
|
3717
|
+
return /*#__PURE__*/jsxRuntime.jsx(reactNative.Animated.View, {
|
|
3718
|
+
style: {
|
|
3719
|
+
transform: [{
|
|
3720
|
+
rotate: rotation
|
|
3721
|
+
}]
|
|
3722
|
+
},
|
|
3696
3723
|
children: clonedIcon
|
|
3697
3724
|
});
|
|
3698
3725
|
}
|