@ornikar/kitt-universal 29.0.0 → 29.2.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 +19 -0
- package/dist/definitions/Sticker/Sticker.d.ts +10 -0
- package/dist/definitions/Sticker/Sticker.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +1 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +7 -4
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- 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/sticker.d.ts +9 -0
- package/dist/definitions/themes/late-ocean/sticker.d.ts.map +1 -0
- package/dist/index-metro.es.android.js +107 -3
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +107 -3
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +107 -2
- 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 +251 -33
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +107 -3
- 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 +252 -36
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +108 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +250 -35
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +6 -0
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +6 -0
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +6 -0
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +6 -0
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +6 -0
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +6 -0
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +6 -0
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +6 -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 +3 -3
- package/dist/definitions/PageLoader/PageLoader.web.d.ts +0 -3
- package/dist/definitions/PageLoader/PageLoader.web.d.ts.map +0 -1
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
.kitt-u_opacityEnterActive_o2w8t0i{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,1,0,1);transition:opacity 250ms cubic-bezier(0.42,1,0,1);}
|
|
26
26
|
.kitt-u_opacityExit_o14r8iix{opacity:1;}
|
|
27
27
|
.kitt-u_opacityExitActive_oim72y2{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,1,0,1);transition:opacity 250ms cubic-bezier(0.42,1,0,1);}
|
|
28
|
-
.kitt-u_pageLoaderContainer_ptkwz2j{width:60px;height:60px;-webkit-transform:scale(-1) rotate(90deg);-ms-transform:scale(-1) rotate(90deg);transform:scale(-1) rotate(90deg);}@-webkit-keyframes PageLoaderInit-kitt-u_pageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64600329384882px;}100%{stroke-dashoffset:0;}}@keyframes PageLoaderInit-kitt-u_pageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64600329384882px;}100%{stroke-dashoffset:0;}}@-webkit-keyframes PageLoaderOffset-kitt-u_pageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64600329384882px;}100%{stroke-dashoffset:33.929200658769766px;}}@keyframes PageLoaderOffset-kitt-u_pageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:169.64600329384882px;}100%{stroke-dashoffset:33.929200658769766px;}}@-webkit-keyframes PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j{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 PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j{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_pageLoaderContainer_ptkwz2j circle,.kitt-u_pageLoaderContainer_ptkwz2j g{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;}.kitt-u_pageLoaderContainer_ptkwz2j g[data-large-loader='base'] circle{-webkit-animation:1000ms cubic-bezier(0.39,0.575,0.565,1) 500ms forwards;animation:1000ms cubic-bezier(0.39,0.575,0.565,1) 500ms forwards;-webkit-animation-name:PageLoaderInit-kitt-u_pageLoaderContainer_ptkwz2j;animation-name:PageLoaderInit-kitt-u_pageLoaderContainer_ptkwz2j;}.kitt-u_pageLoaderContainer_ptkwz2j g[data-large-loader='fill']{-webkit-animation:1800ms linear 500ms infinite;animation:1800ms linear 500ms infinite;-webkit-animation-name:PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j;animation-name:PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j;}.kitt-u_pageLoaderContainer_ptkwz2j g[data-large-loader='fill'] circle{-webkit-animation:1800ms cubic-bezier(0.39,0.575,0.565,1) 500ms infinite alternate,2160ms linear 500ms infinite;animation:1800ms cubic-bezier(0.39,0.575,0.565,1) 500ms infinite alternate,2160ms linear 500ms infinite;-webkit-animation-name:PageLoaderOffset-kitt-u_pageLoaderContainer_ptkwz2j,PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j;animation-name:PageLoaderOffset-kitt-u_pageLoaderContainer_ptkwz2j,PageLoaderRotation-kitt-u_pageLoaderContainer_ptkwz2j;}
|
|
29
28
|
.kitt-u_enter_ereraf{-webkit-transform:translateY(8px);-ms-transform:translateY(8px);transform:translateY(8px);opacity:0;}
|
|
30
29
|
.kitt-u_enterActive_e1jmsjrm{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;-webkit-transition:all 300ms ease-in-out;transition:all 300ms ease-in-out;}
|
|
31
30
|
.kitt-u_exit_e1mwnccz{-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0);opacity:1;}
|
|
@@ -5,7 +5,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
5
5
|
import { SpinnerGapRegularIcon, UserRegularIcon, XRegularIcon, ArrowLeftRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon } from '@ornikar/kitt-icons/phosphor';
|
|
6
6
|
import { createPortal } from 'react-dom';
|
|
7
7
|
import { CSSTransition } from 'react-transition-group';
|
|
8
|
-
import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
|
|
8
|
+
import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, StyleSheet, useWindowDimensions } from 'react-native';
|
|
9
9
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
10
10
|
import { parse } from '@twemoji/parser';
|
|
11
11
|
import Downshift, { useSelect } from 'downshift';
|
|
@@ -14,8 +14,9 @@ import { launchImageLibraryAsync } from 'expo-image-picker';
|
|
|
14
14
|
import { useDebouncedCallback } from 'use-debounce';
|
|
15
15
|
import { Loader } from '@googlemaps/js-api-loader';
|
|
16
16
|
import { parseNumber, getCountryCallingCode, isValidNumber } from 'libphonenumber-js';
|
|
17
|
-
import Animated, { useAnimatedStyle, withSpring, withTiming, useSharedValue, interpolateColor, Easing,
|
|
17
|
+
import Animated, { useAnimatedStyle, withSpring, withTiming, useSharedValue, interpolateColor, Easing, useAnimatedProps, withDelay, withRepeat, runOnJS, interpolate } from 'react-native-reanimated';
|
|
18
18
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
19
|
+
import Svg, { Circle as Circle$1 } from 'react-native-svg';
|
|
19
20
|
import { useFloating, autoUpdate, offset, autoPlacement, shift, arrow } from '@floating-ui/react-dom';
|
|
20
21
|
import { makeDecorator } from '@storybook/addons';
|
|
21
22
|
|
|
@@ -2314,6 +2315,11 @@ const skeleton$1 = {
|
|
|
2314
2315
|
}
|
|
2315
2316
|
};
|
|
2316
2317
|
|
|
2318
|
+
const sticker = {
|
|
2319
|
+
borderRadius: 2,
|
|
2320
|
+
padding: 4
|
|
2321
|
+
};
|
|
2322
|
+
|
|
2317
2323
|
const tabBar = {
|
|
2318
2324
|
underline: {
|
|
2319
2325
|
default: {
|
|
@@ -2632,6 +2638,7 @@ const theme = {
|
|
|
2632
2638
|
skeleton: skeleton$1,
|
|
2633
2639
|
tabBar,
|
|
2634
2640
|
tag,
|
|
2641
|
+
sticker,
|
|
2635
2642
|
tooltip,
|
|
2636
2643
|
typography,
|
|
2637
2644
|
fullscreenModal,
|
|
@@ -9181,6 +9188,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9181
9188
|
tag: {
|
|
9182
9189
|
borderRadius: theme.tag.borderRadius
|
|
9183
9190
|
},
|
|
9191
|
+
sticker: {
|
|
9192
|
+
borderRadius: theme.sticker.borderRadius
|
|
9193
|
+
},
|
|
9184
9194
|
tooltip: {
|
|
9185
9195
|
borderRadius: theme.tooltip.borderRadius
|
|
9186
9196
|
},
|
|
@@ -9973,6 +9983,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9973
9983
|
}
|
|
9974
9984
|
}
|
|
9975
9985
|
},
|
|
9986
|
+
sticker: {
|
|
9987
|
+
padding: theme.sticker.padding
|
|
9988
|
+
},
|
|
9976
9989
|
toggle: {
|
|
9977
9990
|
primary: {
|
|
9978
9991
|
enabled: {
|
|
@@ -10940,49 +10953,160 @@ function Notification({
|
|
|
10940
10953
|
});
|
|
10941
10954
|
}
|
|
10942
10955
|
|
|
10943
|
-
const
|
|
10944
|
-
function
|
|
10956
|
+
const AnimatedCircle = Animated.createAnimatedComponent(Circle$1);
|
|
10957
|
+
function AnimatedLoaderCircle({
|
|
10958
|
+
color,
|
|
10959
|
+
progress
|
|
10960
|
+
}) {
|
|
10945
10961
|
const theme = useTheme();
|
|
10946
10962
|
const {
|
|
10963
|
+
strokeWidth,
|
|
10964
|
+
size
|
|
10965
|
+
} = theme.kitt.pageLoader;
|
|
10966
|
+
const centerCoord = size * 0.5;
|
|
10967
|
+
const circlePerimeter = 2 * Math.PI * (size * 0.5 - strokeWidth);
|
|
10968
|
+
const strokeAnimation = useAnimatedProps(() => {
|
|
10969
|
+
return {
|
|
10970
|
+
strokeDashoffset: circlePerimeter - circlePerimeter * progress.value
|
|
10971
|
+
};
|
|
10972
|
+
}, [progress, circlePerimeter]);
|
|
10973
|
+
return /*#__PURE__*/jsx(AnimatedCircle, {
|
|
10974
|
+
"transform-origin": "center center",
|
|
10975
|
+
strokeWidth: strokeWidth,
|
|
10976
|
+
stroke: color,
|
|
10977
|
+
strokeLinecap: "round",
|
|
10978
|
+
cx: centerCoord,
|
|
10979
|
+
cy: centerCoord,
|
|
10980
|
+
r: centerCoord - strokeWidth,
|
|
10981
|
+
fill: "none",
|
|
10982
|
+
strokeDasharray: circlePerimeter,
|
|
10983
|
+
animatedProps: strokeAnimation
|
|
10984
|
+
});
|
|
10985
|
+
}
|
|
10986
|
+
|
|
10987
|
+
function AnimatedBackgroundCircle() {
|
|
10988
|
+
const theme = useTheme();
|
|
10989
|
+
const progress = useSharedValue(0);
|
|
10990
|
+
const {
|
|
10991
|
+
animation,
|
|
10947
10992
|
colors,
|
|
10993
|
+
size
|
|
10994
|
+
} = theme.kitt.pageLoader;
|
|
10995
|
+
useEffect(() => {
|
|
10996
|
+
const {
|
|
10997
|
+
delay,
|
|
10998
|
+
circleBackgroundFillDuration,
|
|
10999
|
+
fillEasingFunction
|
|
11000
|
+
} = animation;
|
|
11001
|
+
const [x1, y1, x2, y2] = fillEasingFunction;
|
|
11002
|
+
progress.value = withDelay(delay, withTiming(1, {
|
|
11003
|
+
duration: circleBackgroundFillDuration,
|
|
11004
|
+
easing: Easing.bezier(x1, y1, x2, y2)
|
|
11005
|
+
}));
|
|
11006
|
+
}, [progress, animation]);
|
|
11007
|
+
return /*#__PURE__*/jsx(Svg, {
|
|
11008
|
+
width: size,
|
|
11009
|
+
height: size,
|
|
11010
|
+
viewBox: `0 0 ${size} ${size}`,
|
|
11011
|
+
children: /*#__PURE__*/jsx(AnimatedLoaderCircle, {
|
|
11012
|
+
color: colors.base,
|
|
11013
|
+
progress: progress
|
|
11014
|
+
})
|
|
11015
|
+
});
|
|
11016
|
+
}
|
|
11017
|
+
|
|
11018
|
+
const isInfinitAnimation$1 = -1;
|
|
11019
|
+
function AnimatedFillCircleContainer({
|
|
11020
|
+
children,
|
|
11021
|
+
duration
|
|
11022
|
+
}) {
|
|
11023
|
+
const theme = useTheme();
|
|
11024
|
+
const progress = useSharedValue(0);
|
|
11025
|
+
const {
|
|
11026
|
+
animation
|
|
11027
|
+
} = theme.kitt.pageLoader;
|
|
11028
|
+
useEffect(() => {
|
|
11029
|
+
const {
|
|
11030
|
+
delay
|
|
11031
|
+
} = animation;
|
|
11032
|
+
progress.value = withDelay(delay, withRepeat(withTiming(1, {
|
|
11033
|
+
duration,
|
|
11034
|
+
easing: Easing.linear
|
|
11035
|
+
}), isInfinitAnimation$1));
|
|
11036
|
+
}, [progress, animation, duration]);
|
|
11037
|
+
const rotationStyles = useAnimatedStyle(() => {
|
|
11038
|
+
return {
|
|
11039
|
+
transform: [{
|
|
11040
|
+
rotate: `${360 * progress.value}deg`
|
|
11041
|
+
}]
|
|
11042
|
+
};
|
|
11043
|
+
}, [progress]);
|
|
11044
|
+
return /*#__PURE__*/jsx(Animated.View, {
|
|
11045
|
+
style: [StyleSheet.absoluteFill, rotationStyles],
|
|
11046
|
+
children: children
|
|
11047
|
+
});
|
|
11048
|
+
}
|
|
11049
|
+
|
|
11050
|
+
const isInfinitAnimation = -1;
|
|
11051
|
+
const shouldReverse = true;
|
|
11052
|
+
function AnimatedFilledCircle() {
|
|
11053
|
+
const theme = useTheme();
|
|
11054
|
+
const progress = useSharedValue(0);
|
|
11055
|
+
const {
|
|
10948
11056
|
size,
|
|
10949
|
-
|
|
11057
|
+
animation,
|
|
11058
|
+
colors
|
|
10950
11059
|
} = theme.kitt.pageLoader;
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
children: /*#__PURE__*/jsx(
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
})
|
|
10975
|
-
}), /*#__PURE__*/jsx("g", {
|
|
10976
|
-
"data-large-loader": "fill",
|
|
10977
|
-
children: /*#__PURE__*/jsx("circle", {
|
|
10978
|
-
...sharedProps,
|
|
10979
|
-
stroke: colors.fill
|
|
11060
|
+
useEffect(() => {
|
|
11061
|
+
const {
|
|
11062
|
+
delay,
|
|
11063
|
+
filledCircleFillDuration,
|
|
11064
|
+
fillEasingFunction
|
|
11065
|
+
} = animation;
|
|
11066
|
+
const [x1, y1, x2, y2] = fillEasingFunction;
|
|
11067
|
+
progress.value = withDelay(delay, withRepeat(withTiming(0.8, {
|
|
11068
|
+
duration: filledCircleFillDuration,
|
|
11069
|
+
easing: Easing.bezier(x1, y1, x2, y2)
|
|
11070
|
+
}), isInfinitAnimation, shouldReverse));
|
|
11071
|
+
}, [progress, animation]);
|
|
11072
|
+
return /*#__PURE__*/jsx(AnimatedFillCircleContainer, {
|
|
11073
|
+
duration: animation.groupFilledCircleRotationDuration,
|
|
11074
|
+
children: /*#__PURE__*/jsx(AnimatedFillCircleContainer, {
|
|
11075
|
+
duration: animation.filledCircleRotationDuration,
|
|
11076
|
+
children: /*#__PURE__*/jsx(Svg, {
|
|
11077
|
+
width: size,
|
|
11078
|
+
height: size,
|
|
11079
|
+
viewBox: `0 0 ${size} ${size}`,
|
|
11080
|
+
children: /*#__PURE__*/jsx(AnimatedLoaderCircle, {
|
|
11081
|
+
color: colors.fill,
|
|
11082
|
+
progress: progress
|
|
10980
11083
|
})
|
|
10981
|
-
})
|
|
11084
|
+
})
|
|
10982
11085
|
})
|
|
10983
11086
|
});
|
|
10984
11087
|
}
|
|
10985
11088
|
|
|
11089
|
+
function PageLoader() {
|
|
11090
|
+
const sharedTransformStyle = {
|
|
11091
|
+
style: {
|
|
11092
|
+
/* Needed to make the animation starting from the top of the circles */
|
|
11093
|
+
transform: [{
|
|
11094
|
+
rotate: '90deg'
|
|
11095
|
+
}, {
|
|
11096
|
+
scale: -1
|
|
11097
|
+
}]
|
|
11098
|
+
}
|
|
11099
|
+
};
|
|
11100
|
+
return /*#__PURE__*/jsxs(View, {
|
|
11101
|
+
position: "relative",
|
|
11102
|
+
height: "kitt.pageLoader.size",
|
|
11103
|
+
width: "kitt.pageLoader.size",
|
|
11104
|
+
_ios: sharedTransformStyle,
|
|
11105
|
+
_android: sharedTransformStyle,
|
|
11106
|
+
children: [/*#__PURE__*/jsx(AnimatedBackgroundCircle, {}), /*#__PURE__*/jsx(AnimatedFilledCircle, {})]
|
|
11107
|
+
});
|
|
11108
|
+
}
|
|
11109
|
+
|
|
10986
11110
|
function getBackgroundColor({
|
|
10987
11111
|
isSelected,
|
|
10988
11112
|
isHighlighted,
|
|
@@ -11604,6 +11728,98 @@ StaticMap.Loader = StaticMapLoader;
|
|
|
11604
11728
|
StaticMap.Error = StaticMapError;
|
|
11605
11729
|
StaticMap.Marker = StaticMapMarker;
|
|
11606
11730
|
|
|
11731
|
+
const getTypographySize = size => {
|
|
11732
|
+
switch (size) {
|
|
11733
|
+
case 'small':
|
|
11734
|
+
return 'content-caps-xs';
|
|
11735
|
+
case 'medium':
|
|
11736
|
+
return 'content-caps-m';
|
|
11737
|
+
case 'large':
|
|
11738
|
+
default:
|
|
11739
|
+
return 'content-caps-l';
|
|
11740
|
+
}
|
|
11741
|
+
};
|
|
11742
|
+
function Sticker({
|
|
11743
|
+
label,
|
|
11744
|
+
color = 'linen',
|
|
11745
|
+
size = 'medium'
|
|
11746
|
+
}) {
|
|
11747
|
+
const kittTheme = useKittTheme();
|
|
11748
|
+
const colorMatching = {
|
|
11749
|
+
green: {
|
|
11750
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.green-grass'],
|
|
11751
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.green-apple']
|
|
11752
|
+
},
|
|
11753
|
+
darkGreen: {
|
|
11754
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.green-pine'],
|
|
11755
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.blue-sky']
|
|
11756
|
+
},
|
|
11757
|
+
blue: {
|
|
11758
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.blue-sky'],
|
|
11759
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.green-pine']
|
|
11760
|
+
},
|
|
11761
|
+
darkBlue: {
|
|
11762
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.blue-electric'],
|
|
11763
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.3']
|
|
11764
|
+
},
|
|
11765
|
+
red: {
|
|
11766
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.brick'],
|
|
11767
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.sun']
|
|
11768
|
+
},
|
|
11769
|
+
orange: {
|
|
11770
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.orange'],
|
|
11771
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.2']
|
|
11772
|
+
},
|
|
11773
|
+
pink: {
|
|
11774
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.pink'],
|
|
11775
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.brick']
|
|
11776
|
+
},
|
|
11777
|
+
gold: {
|
|
11778
|
+
background: kittTheme.kitt.palettes.deepPurple['rainbow.gold'],
|
|
11779
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.1']
|
|
11780
|
+
},
|
|
11781
|
+
cream: {
|
|
11782
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.1'],
|
|
11783
|
+
font: kittTheme.kitt.palettes.deepPurple['rainbow.brick']
|
|
11784
|
+
},
|
|
11785
|
+
linen: {
|
|
11786
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.3'],
|
|
11787
|
+
font: kittTheme.kitt.palettes.deepPurple['deepPurple.8']
|
|
11788
|
+
},
|
|
11789
|
+
promo: {
|
|
11790
|
+
background: kittTheme.kitt.palettes.deepPurple['lightning.5'],
|
|
11791
|
+
font: kittTheme.kitt.palettes.deepPurple['lightning.7']
|
|
11792
|
+
},
|
|
11793
|
+
darkPromo: {
|
|
11794
|
+
background: kittTheme.kitt.palettes.deepPurple['lightning.7'],
|
|
11795
|
+
font: kittTheme.kitt.palettes.deepPurple['lightning.5']
|
|
11796
|
+
},
|
|
11797
|
+
disabled: {
|
|
11798
|
+
background: kittTheme.kitt.palettes.deepPurple['beige.6'],
|
|
11799
|
+
font: kittTheme.kitt.palettes.deepPurple['beige.2']
|
|
11800
|
+
}
|
|
11801
|
+
};
|
|
11802
|
+
return /*#__PURE__*/jsx(HStack, {
|
|
11803
|
+
alignSelf: "flex-start",
|
|
11804
|
+
borderRadius: "kitt.sticker.borderRadius",
|
|
11805
|
+
padding: "kitt.sticker.padding",
|
|
11806
|
+
backgroundColor: colorMatching[color].background,
|
|
11807
|
+
space: "kitt.1",
|
|
11808
|
+
alignItems: "center",
|
|
11809
|
+
maxWidth: "100%",
|
|
11810
|
+
children: /*#__PURE__*/jsx(View, {
|
|
11811
|
+
flexShrink: 1,
|
|
11812
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
11813
|
+
base: getTypographySize(size),
|
|
11814
|
+
color: colorMatching[color].font,
|
|
11815
|
+
numberOfLines: 1,
|
|
11816
|
+
ellipsizeMode: "tail",
|
|
11817
|
+
children: label
|
|
11818
|
+
})
|
|
11819
|
+
})
|
|
11820
|
+
});
|
|
11821
|
+
}
|
|
11822
|
+
|
|
11607
11823
|
function Flex({
|
|
11608
11824
|
direction,
|
|
11609
11825
|
wrap = 'wrap',
|
|
@@ -13144,5 +13360,5 @@ function VerticalSteps({
|
|
|
13144
13360
|
VerticalSteps.Step = Step;
|
|
13145
13361
|
VerticalSteps.BorderlessStep = BorderlessStep;
|
|
13146
13362
|
|
|
13147
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13363
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, ButtonBadge, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, GroupTags, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InfoCard, InputAddress, InputEmail, InputFeedback, InputField, InputIban, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarker, MapMarkerVariantEnum, MatchWindowSize, Message, ModalBehaviour, NativeOnlyFlatList, NavigationBottomSheet, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, RadioWithRef as Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Sticker, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, TabBar, Tag, TextArea, TimePicker, ToastComponent, Toggle, Tooltip, TopNavBar, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, getValueForBreakpoint, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
13148
13364
|
//# sourceMappingURL=index-node-22.17.es.web.mjs.map
|