@ornikar/kitt-universal 23.2.7 → 23.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/CHANGELOG.md +18 -0
- package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts +3 -3
- package/dist/definitions/BottomSheet/useStaticBottomSheet.d.ts.map +1 -1
- package/dist/definitions/Tag/Tag.d.ts +10 -6
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts +15 -0
- package/dist/definitions/forms/DocumentPicker/DocumentPicker.d.ts.map +1 -0
- package/dist/definitions/forms/FilePicker/BottomSheetActions/BottomSheetActions.d.ts +13 -0
- package/dist/definitions/forms/FilePicker/BottomSheetActions/BottomSheetActions.d.ts.map +1 -0
- package/dist/definitions/forms/FilePicker/BottomSheetActions/BottomSheetActionsItem.d.ts +7 -0
- package/dist/definitions/forms/FilePicker/BottomSheetActions/BottomSheetActionsItem.d.ts.map +1 -0
- package/dist/definitions/forms/FilePicker/FilePicker.d.ts +17 -0
- package/dist/definitions/forms/FilePicker/FilePicker.d.ts.map +1 -0
- package/dist/definitions/forms/FilePicker/FilePicker.web.d.ts +4 -0
- package/dist/definitions/forms/FilePicker/FilePicker.web.d.ts.map +1 -0
- package/dist/definitions/forms/ImagePicker/ImagePicker.d.ts +15 -0
- package/dist/definitions/forms/ImagePicker/ImagePicker.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +7 -2
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +43 -78
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/tag.d.ts +22 -14
- package/dist/definitions/themes/late-ocean/tag.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +463 -319
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +463 -319
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +383 -238
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +214 -155
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +383 -241
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +212 -156
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +496 -314
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +257 -157
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +38 -44
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +38 -44
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js +38 -44
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js +38 -44
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs +38 -44
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs +38 -44
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +38 -44
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +38 -44
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +5 -2
- package/translations/fr-FR.json +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import React, { useContext, createContext, forwardRef, cloneElement, useRef, useEffect, useState, useMemo, Children, useReducer,
|
|
3
|
+
import React, { useContext, createContext, forwardRef, cloneElement, useRef, useEffect, useState, useMemo, Children, useReducer, Fragment as Fragment$1, useCallback, createElement } from 'react';
|
|
4
4
|
import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, Image as Image$1, FlatList as FlatList$1, SectionList as SectionList$1, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Center as Center$1, useSx, Text, Input, useBreakpointValue as useBreakpointValue$1, NativeBaseProvider, extendTheme, useMediaQuery } from 'native-base';
|
|
5
5
|
export { useClipboard, useMediaQuery, useSx, useToken } from 'native-base';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -11,7 +11,7 @@ import { Platform, Animated as Animated$1, Easing, StyleSheet, Modal, ScrollView
|
|
|
11
11
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
12
12
|
import { ArcIcon, UserIcon, MapPinIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, RotateCCWIcon } from '@ornikar/kitt-icons';
|
|
13
13
|
export * from '@ornikar/kitt-icons';
|
|
14
|
-
import { BottomSheetScrollView, BottomSheetView, useBottomSheetDynamicSnapPoints, BottomSheetModal, BottomSheetHandle, BottomSheetBackdrop } from '@gorhom/bottom-sheet';
|
|
14
|
+
import { BottomSheetScrollView, BottomSheetView, useBottomSheetDynamicSnapPoints, BottomSheetModal, BottomSheetHandle, BottomSheetBackdrop, useBottomSheetModal } from '@gorhom/bottom-sheet';
|
|
15
15
|
import { SafeAreaView, useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
16
16
|
import { parse } from 'twemoji-parser';
|
|
17
17
|
import * as WebBrowser from 'expo-web-browser';
|
|
@@ -20,6 +20,8 @@ import Downshift from 'downshift';
|
|
|
20
20
|
import Svg, { Path, LinearGradient, Stop, Mask, G, Defs, Circle as Circle$1 } from 'react-native-svg';
|
|
21
21
|
import DateTimePicker, { DateTimePickerAndroid } from '@react-native-community/datetimepicker';
|
|
22
22
|
import { FormattedMessage } from 'react-intl';
|
|
23
|
+
import { getDocumentAsync } from 'expo-document-picker';
|
|
24
|
+
import { launchImageLibraryAsync } from 'expo-image-picker';
|
|
23
25
|
import { useDebouncedCallback } from 'use-debounce';
|
|
24
26
|
import { parseNumber, getCountryCallingCode, isValidNumber } from 'libphonenumber-js';
|
|
25
27
|
import { Picker as Picker$1 } from '@react-native-picker/picker';
|
|
@@ -1638,57 +1640,51 @@ const skeleton = {
|
|
|
1638
1640
|
};
|
|
1639
1641
|
|
|
1640
1642
|
const tag = {
|
|
1641
|
-
borderRadius:
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
fill: {
|
|
1647
|
-
backgroundColor: lateOceanColorPalette.moonPurpleLight1,
|
|
1648
|
-
borderWidth: 0,
|
|
1649
|
-
borderColor: colors.transparent
|
|
1650
|
-
},
|
|
1651
|
-
outline: {
|
|
1652
|
-
backgroundColor: colors.transparent,
|
|
1653
|
-
borderWidth: 1,
|
|
1654
|
-
borderColor: colors.primary
|
|
1655
|
-
}
|
|
1643
|
+
borderRadius: 16,
|
|
1644
|
+
icon: {
|
|
1645
|
+
small: 16,
|
|
1646
|
+
medium: 16,
|
|
1647
|
+
large: 20
|
|
1656
1648
|
},
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1649
|
+
withIcon: {
|
|
1650
|
+
small: {
|
|
1651
|
+
paddingLeft: 2,
|
|
1652
|
+
paddingRight: 8,
|
|
1653
|
+
height: 20
|
|
1662
1654
|
},
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
}
|
|
1668
|
-
},
|
|
1669
|
-
danger: {
|
|
1670
|
-
fill: {
|
|
1671
|
-
backgroundColor: colors.danger,
|
|
1672
|
-
borderWidth: 0,
|
|
1673
|
-
borderColor: colors.transparent
|
|
1655
|
+
medium: {
|
|
1656
|
+
paddingLeft: 4,
|
|
1657
|
+
paddingRight: 8,
|
|
1658
|
+
height: 24
|
|
1674
1659
|
},
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1660
|
+
large: {
|
|
1661
|
+
paddingLeft: 6,
|
|
1662
|
+
paddingRight: 8,
|
|
1663
|
+
height: 32
|
|
1679
1664
|
}
|
|
1680
1665
|
},
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1666
|
+
withoutIcon: {
|
|
1667
|
+
small: {
|
|
1668
|
+
paddingLeft: 8,
|
|
1669
|
+
paddingRight: 8,
|
|
1670
|
+
height: 20
|
|
1686
1671
|
},
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1672
|
+
medium: {
|
|
1673
|
+
paddingLeft: 8,
|
|
1674
|
+
paddingRight: 8,
|
|
1675
|
+
height: 22
|
|
1676
|
+
},
|
|
1677
|
+
large: {
|
|
1678
|
+
paddingLeft: 8,
|
|
1679
|
+
paddingRight: 8,
|
|
1680
|
+
height: 28
|
|
1691
1681
|
}
|
|
1682
|
+
},
|
|
1683
|
+
fill: {
|
|
1684
|
+
borderWidth: 0
|
|
1685
|
+
},
|
|
1686
|
+
outline: {
|
|
1687
|
+
borderWidth: 1
|
|
1692
1688
|
}
|
|
1693
1689
|
};
|
|
1694
1690
|
|
|
@@ -1885,7 +1881,7 @@ function ActionCardDisabled({
|
|
|
1885
1881
|
});
|
|
1886
1882
|
}
|
|
1887
1883
|
|
|
1888
|
-
const _excluded$
|
|
1884
|
+
const _excluded$N = ["children", "variant", "borderVariant", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
1889
1885
|
function ActionCard(_ref) {
|
|
1890
1886
|
let {
|
|
1891
1887
|
children,
|
|
@@ -1896,7 +1892,7 @@ function ActionCard(_ref) {
|
|
|
1896
1892
|
isPressed,
|
|
1897
1893
|
isFocused
|
|
1898
1894
|
} = _ref,
|
|
1899
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1895
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
1900
1896
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
1901
1897
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
1902
1898
|
variant: variant,
|
|
@@ -2110,7 +2106,7 @@ const getTypographyFamilyWithAncestorValue = (type, typographyFamilyInContext) =
|
|
|
2110
2106
|
throw new Error('You must set a "base" prop or wrap this Typography in one that does.');
|
|
2111
2107
|
};
|
|
2112
2108
|
|
|
2113
|
-
const _excluded$
|
|
2109
|
+
const _excluded$M = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
2114
2110
|
const TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
2115
2111
|
const TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
2116
2112
|
const TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -2165,7 +2161,7 @@ function Typography(_ref) {
|
|
|
2165
2161
|
variant,
|
|
2166
2162
|
color
|
|
2167
2163
|
} = _ref,
|
|
2168
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
2164
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
2169
2165
|
const sx = useSx();
|
|
2170
2166
|
const typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
2171
2167
|
const defaultColor = useTypographyDefaultColor();
|
|
@@ -2272,7 +2268,7 @@ function Icon({
|
|
|
2272
2268
|
});
|
|
2273
2269
|
}
|
|
2274
2270
|
|
|
2275
|
-
const _excluded$
|
|
2271
|
+
const _excluded$L = ["color", "size"],
|
|
2276
2272
|
_excluded2$5 = ["color"];
|
|
2277
2273
|
function getIconSizeConfigKeyFromTypeName(breakpointName) {
|
|
2278
2274
|
return breakpointName === KittBreakpointNameEnum.BASE || breakpointName === KittBreakpointNameEnum.SMALL ? 'baseAndSmall' : 'mediumAndWide';
|
|
@@ -2295,7 +2291,7 @@ function TypographyIconSpecifiedColor(_ref) {
|
|
|
2295
2291
|
color,
|
|
2296
2292
|
size
|
|
2297
2293
|
} = _ref,
|
|
2298
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2294
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
2299
2295
|
const ancestorType = useTypographyAncestorType();
|
|
2300
2296
|
const iconSize = size || (ancestorType ? createNativeBaseIconSize(ancestorType) : undefined);
|
|
2301
2297
|
const colorValue = getTypographyColorValue(color);
|
|
@@ -2347,7 +2343,7 @@ const getButtonTextColorByType = (type, variant, isHovered, isPressed) => {
|
|
|
2347
2343
|
}
|
|
2348
2344
|
};
|
|
2349
2345
|
|
|
2350
|
-
const _excluded$
|
|
2346
|
+
const _excluded$K = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused"];
|
|
2351
2347
|
function ButtonIcon({
|
|
2352
2348
|
icon,
|
|
2353
2349
|
color,
|
|
@@ -2426,7 +2422,7 @@ function ButtonContent(_ref) {
|
|
|
2426
2422
|
isPressed,
|
|
2427
2423
|
isFocused
|
|
2428
2424
|
} = _ref,
|
|
2429
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2425
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
2430
2426
|
const color = isDisabled ? 'black-light' : getButtonTextColorByType(type, variant, isHovered, isPressed);
|
|
2431
2427
|
return /*#__PURE__*/jsx(View, {
|
|
2432
2428
|
_web: {
|
|
@@ -2729,7 +2725,7 @@ function LoaderIcon({
|
|
|
2729
2725
|
});
|
|
2730
2726
|
}
|
|
2731
2727
|
|
|
2732
|
-
const _excluded$
|
|
2728
|
+
const _excluded$J = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
2733
2729
|
const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
2734
2730
|
let {
|
|
2735
2731
|
as,
|
|
@@ -2741,7 +2737,7 @@ const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2741
2737
|
medium: false
|
|
2742
2738
|
}
|
|
2743
2739
|
} = _ref,
|
|
2744
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2740
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
2745
2741
|
const [isLoading, setIsLoading] = useState(false);
|
|
2746
2742
|
const mountedRef = useRef(false);
|
|
2747
2743
|
|
|
@@ -2787,7 +2783,7 @@ function ActionsButton(_ref) {
|
|
|
2787
2783
|
}, props));
|
|
2788
2784
|
}
|
|
2789
2785
|
|
|
2790
|
-
const _excluded$
|
|
2786
|
+
const _excluded$I = ["children", "layout", "reversed"];
|
|
2791
2787
|
function getCurrentLayout(layout) {
|
|
2792
2788
|
if (!layout) return {
|
|
2793
2789
|
base: 'stretch',
|
|
@@ -2818,7 +2814,7 @@ function Actions(_ref) {
|
|
|
2818
2814
|
layout,
|
|
2819
2815
|
reversed
|
|
2820
2816
|
} = _ref,
|
|
2821
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2817
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
2822
2818
|
const currentAlignItems = getCurrentLayout(layout);
|
|
2823
2819
|
const currentDirection = getCurrentDirection(layout);
|
|
2824
2820
|
const currentAlignSelf = getCurrentAlignSelf(layout);
|
|
@@ -2869,7 +2865,7 @@ function getInitials(firstname, lastname) {
|
|
|
2869
2865
|
return `${firstname[0]}${lastname[0]}`.toUpperCase();
|
|
2870
2866
|
}
|
|
2871
2867
|
|
|
2872
|
-
const _excluded$
|
|
2868
|
+
const _excluded$H = ["size", "round", "light", "sizeVariant"];
|
|
2873
2869
|
function AvatarContent({
|
|
2874
2870
|
size,
|
|
2875
2871
|
src,
|
|
@@ -2911,7 +2907,7 @@ function Avatar(_ref) {
|
|
|
2911
2907
|
light,
|
|
2912
2908
|
sizeVariant
|
|
2913
2909
|
} = _ref,
|
|
2914
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2910
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
2915
2911
|
const currentSize = getCurrentSize({
|
|
2916
2912
|
size,
|
|
2917
2913
|
sizeVariant
|
|
@@ -3241,7 +3237,7 @@ function CardModalAnimation({
|
|
|
3241
3237
|
});
|
|
3242
3238
|
}
|
|
3243
3239
|
|
|
3244
|
-
const _excluded$
|
|
3240
|
+
const _excluded$G = ["children", "visible", "onClose", "onExited"];
|
|
3245
3241
|
function CardModalBehaviour(_ref) {
|
|
3246
3242
|
let {
|
|
3247
3243
|
children,
|
|
@@ -3249,7 +3245,7 @@ function CardModalBehaviour(_ref) {
|
|
|
3249
3245
|
onClose,
|
|
3250
3246
|
onExited
|
|
3251
3247
|
} = _ref,
|
|
3252
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3248
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
3253
3249
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
3254
3250
|
useEffect(() => {
|
|
3255
3251
|
if (visible === true) {
|
|
@@ -3271,7 +3267,7 @@ function CardModalBehaviour(_ref) {
|
|
|
3271
3267
|
});
|
|
3272
3268
|
}
|
|
3273
3269
|
|
|
3274
|
-
const _excluded$
|
|
3270
|
+
const _excluded$F = ["children", "paddingX", "paddingY"];
|
|
3275
3271
|
function CardModalBody(_ref) {
|
|
3276
3272
|
let {
|
|
3277
3273
|
children,
|
|
@@ -3281,7 +3277,7 @@ function CardModalBody(_ref) {
|
|
|
3281
3277
|
},
|
|
3282
3278
|
paddingY = 'kitt.4'
|
|
3283
3279
|
} = _ref,
|
|
3284
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3280
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
3285
3281
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
3286
3282
|
showsVerticalScrollIndicator: false,
|
|
3287
3283
|
_contentContainerStyle: {
|
|
@@ -3293,7 +3289,7 @@ function CardModalBody(_ref) {
|
|
|
3293
3289
|
}));
|
|
3294
3290
|
}
|
|
3295
3291
|
|
|
3296
|
-
const _excluded$
|
|
3292
|
+
const _excluded$E = ["children", "padding", "hasSeparator"];
|
|
3297
3293
|
function CardModalFooter(_ref) {
|
|
3298
3294
|
let {
|
|
3299
3295
|
children,
|
|
@@ -3303,7 +3299,7 @@ function CardModalFooter(_ref) {
|
|
|
3303
3299
|
},
|
|
3304
3300
|
hasSeparator = true
|
|
3305
3301
|
} = _ref,
|
|
3306
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3302
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
3307
3303
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
3308
3304
|
marginTop: "kitt.2",
|
|
3309
3305
|
padding: padding,
|
|
@@ -3317,7 +3313,7 @@ function CardModalFooter(_ref) {
|
|
|
3317
3313
|
}));
|
|
3318
3314
|
}
|
|
3319
3315
|
|
|
3320
|
-
const _excluded$
|
|
3316
|
+
const _excluded$D = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
|
|
3321
3317
|
function CardModalHeader(_ref) {
|
|
3322
3318
|
let {
|
|
3323
3319
|
children,
|
|
@@ -3330,7 +3326,7 @@ function CardModalHeader(_ref) {
|
|
|
3330
3326
|
right,
|
|
3331
3327
|
left
|
|
3332
3328
|
} = _ref,
|
|
3333
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3329
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
3334
3330
|
const defaultContainerPadding = {
|
|
3335
3331
|
base: 'kitt.4',
|
|
3336
3332
|
medium: 'kitt.6'
|
|
@@ -3368,7 +3364,7 @@ function CardModalHeader(_ref) {
|
|
|
3368
3364
|
}));
|
|
3369
3365
|
}
|
|
3370
3366
|
|
|
3371
|
-
const _excluded$
|
|
3367
|
+
const _excluded$C = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
3372
3368
|
function CardModal(_ref) {
|
|
3373
3369
|
let {
|
|
3374
3370
|
backgroundColor = 'kitt.uiBackgroundLight',
|
|
@@ -3379,7 +3375,7 @@ function CardModal(_ref) {
|
|
|
3379
3375
|
body,
|
|
3380
3376
|
footer
|
|
3381
3377
|
} = _ref,
|
|
3382
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3378
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
3383
3379
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
3384
3380
|
overflow: "hidden",
|
|
3385
3381
|
backgroundColor: backgroundColor,
|
|
@@ -3602,12 +3598,12 @@ function ChoiceItemContainer({
|
|
|
3602
3598
|
});
|
|
3603
3599
|
}
|
|
3604
3600
|
|
|
3605
|
-
const _excluded$
|
|
3601
|
+
const _excluded$B = ["direction"];
|
|
3606
3602
|
function ChoicesContainer(_ref) {
|
|
3607
3603
|
let {
|
|
3608
3604
|
direction
|
|
3609
3605
|
} = _ref,
|
|
3610
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3606
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
3611
3607
|
if (direction === 'row') {
|
|
3612
3608
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
3613
3609
|
horizontal: true
|
|
@@ -3820,7 +3816,7 @@ function DialogModalAnimation({
|
|
|
3820
3816
|
});
|
|
3821
3817
|
}
|
|
3822
3818
|
|
|
3823
|
-
const _excluded$
|
|
3819
|
+
const _excluded$A = ["children", "visible", "onClose", "onExited"];
|
|
3824
3820
|
function DialogModalBehaviour(_ref) {
|
|
3825
3821
|
let {
|
|
3826
3822
|
children,
|
|
@@ -3828,7 +3824,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
3828
3824
|
onClose,
|
|
3829
3825
|
onExited
|
|
3830
3826
|
} = _ref,
|
|
3831
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3827
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
3832
3828
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
3833
3829
|
useEffect(() => {
|
|
3834
3830
|
if (visible === true) {
|
|
@@ -3856,7 +3852,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
3856
3852
|
});
|
|
3857
3853
|
}
|
|
3858
3854
|
|
|
3859
|
-
const _excluded$
|
|
3855
|
+
const _excluded$z = ["stretch"];
|
|
3860
3856
|
function DialogModal({
|
|
3861
3857
|
illustration,
|
|
3862
3858
|
title,
|
|
@@ -3898,7 +3894,7 @@ function DialogModalButton(_ref) {
|
|
|
3898
3894
|
let {
|
|
3899
3895
|
stretch = true
|
|
3900
3896
|
} = _ref,
|
|
3901
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3897
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
3902
3898
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
3903
3899
|
stretch: stretch
|
|
3904
3900
|
}, props));
|
|
@@ -3932,7 +3928,7 @@ function Emoji({
|
|
|
3932
3928
|
});
|
|
3933
3929
|
}
|
|
3934
3930
|
|
|
3935
|
-
const _excluded$
|
|
3931
|
+
const _excluded$y = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
3936
3932
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
3937
3933
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
3938
3934
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -3944,7 +3940,7 @@ function ExternalAppLink(_ref) {
|
|
|
3944
3940
|
onPress,
|
|
3945
3941
|
onOpenAppError
|
|
3946
3942
|
} = _ref,
|
|
3947
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
3943
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
3948
3944
|
const href = `${appScheme}:${appValue}`;
|
|
3949
3945
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({
|
|
3950
3946
|
href: href
|
|
@@ -4025,7 +4021,7 @@ function useOpenExternalLink() {
|
|
|
4025
4021
|
};
|
|
4026
4022
|
}
|
|
4027
4023
|
|
|
4028
|
-
const _excluded$
|
|
4024
|
+
const _excluded$x = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
4029
4025
|
function ExternalLink(_ref) {
|
|
4030
4026
|
let {
|
|
4031
4027
|
as: Component,
|
|
@@ -4035,7 +4031,7 @@ function ExternalLink(_ref) {
|
|
|
4035
4031
|
// eslint-disable-next-line no-console
|
|
4036
4032
|
onOpenLinkError = console.error
|
|
4037
4033
|
} = _ref,
|
|
4038
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4034
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
4039
4035
|
const openExternalLink = useOpenExternalLink();
|
|
4040
4036
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4041
4037
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -4094,7 +4090,7 @@ function InputTextContainer({
|
|
|
4094
4090
|
});
|
|
4095
4091
|
}
|
|
4096
4092
|
|
|
4097
|
-
const _excluded$
|
|
4093
|
+
const _excluded$w = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "onSubmitEditing"];
|
|
4098
4094
|
const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
4099
4095
|
let {
|
|
4100
4096
|
id,
|
|
@@ -4110,7 +4106,7 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4110
4106
|
multiline,
|
|
4111
4107
|
onSubmitEditing
|
|
4112
4108
|
} = _ref,
|
|
4113
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4109
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
4114
4110
|
const theme = useTheme();
|
|
4115
4111
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
4116
4112
|
base: 'body'
|
|
@@ -4227,12 +4223,12 @@ function AutocompleteItemsListContainer({
|
|
|
4227
4223
|
});
|
|
4228
4224
|
}
|
|
4229
4225
|
|
|
4230
|
-
const _excluded$
|
|
4226
|
+
const _excluded$v = ["children"];
|
|
4231
4227
|
function AutocompleteOption(_ref) {
|
|
4232
4228
|
let {
|
|
4233
4229
|
children
|
|
4234
4230
|
} = _ref,
|
|
4235
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4231
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
4236
4232
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
4237
4233
|
paddingX: {
|
|
4238
4234
|
base: 'kitt.2',
|
|
@@ -4244,7 +4240,7 @@ function AutocompleteOption(_ref) {
|
|
|
4244
4240
|
}));
|
|
4245
4241
|
}
|
|
4246
4242
|
|
|
4247
|
-
const _excluded$
|
|
4243
|
+
const _excluded$u = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex"],
|
|
4248
4244
|
_excluded2$3 = ["onClick", "onPress"],
|
|
4249
4245
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
4250
4246
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -4285,7 +4281,7 @@ function Autocomplete(_ref) {
|
|
|
4285
4281
|
listContainerTestID = 'kitt.Autocomplete.listContainer',
|
|
4286
4282
|
zIndex = 1000
|
|
4287
4283
|
} = _ref,
|
|
4288
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4284
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
4289
4285
|
const childrenArray = Children.toArray(children);
|
|
4290
4286
|
const items = childrenArray.filter(isReactElement).map(child => ({
|
|
4291
4287
|
child,
|
|
@@ -4839,7 +4835,7 @@ function PartContainer({
|
|
|
4839
4835
|
});
|
|
4840
4836
|
}
|
|
4841
4837
|
|
|
4842
|
-
const _excluded$
|
|
4838
|
+
const _excluded$t = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
4843
4839
|
const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
4844
4840
|
let {
|
|
4845
4841
|
id,
|
|
@@ -4859,7 +4855,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
4859
4855
|
onFocus,
|
|
4860
4856
|
onSubmitEditing
|
|
4861
4857
|
} = _ref;
|
|
4862
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
4858
|
+
_objectWithoutProperties(_ref, _excluded$t);
|
|
4863
4859
|
const monthRef = useRef(null);
|
|
4864
4860
|
const yearRef = useRef(null);
|
|
4865
4861
|
const defaultValue = value;
|
|
@@ -5063,7 +5059,7 @@ const PressableDateInputs = /*#__PURE__*/forwardRef(({
|
|
|
5063
5059
|
});
|
|
5064
5060
|
});
|
|
5065
5061
|
|
|
5066
|
-
const _excluded$
|
|
5062
|
+
const _excluded$s = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
5067
5063
|
const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5068
5064
|
let {
|
|
5069
5065
|
onBlur,
|
|
@@ -5074,7 +5070,7 @@ const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5074
5070
|
value,
|
|
5075
5071
|
onChange
|
|
5076
5072
|
} = _ref,
|
|
5077
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5073
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
5078
5074
|
const [isFocused, setIsFocused] = useState(false);
|
|
5079
5075
|
const [currentValue, setCurrentValue] = useState(value);
|
|
5080
5076
|
const handleClose = () => {
|
|
@@ -5144,7 +5140,7 @@ function PlatformDateTimePicker({
|
|
|
5144
5140
|
}));
|
|
5145
5141
|
}
|
|
5146
5142
|
|
|
5147
|
-
const _excluded$
|
|
5143
|
+
const _excluded$r = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
5148
5144
|
function ModalTitle({
|
|
5149
5145
|
children
|
|
5150
5146
|
}) {
|
|
@@ -5165,7 +5161,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
5165
5161
|
onClose,
|
|
5166
5162
|
onChange
|
|
5167
5163
|
} = _ref,
|
|
5168
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5164
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
5169
5165
|
const [currentValue, setCurrentValue] = useState(value);
|
|
5170
5166
|
|
|
5171
5167
|
// Prevent unsynced value between the modal and its parent state
|
|
@@ -5208,7 +5204,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
5208
5204
|
});
|
|
5209
5205
|
}
|
|
5210
5206
|
|
|
5211
|
-
const _excluded$
|
|
5207
|
+
const _excluded$q = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
5212
5208
|
const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5213
5209
|
let {
|
|
5214
5210
|
value,
|
|
@@ -5224,7 +5220,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5224
5220
|
onFocus,
|
|
5225
5221
|
onBlur
|
|
5226
5222
|
} = _ref,
|
|
5227
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5223
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
5228
5224
|
const [isPickerUIVisible, setIsPickerUIVisible] = useState(isDefaultVisible);
|
|
5229
5225
|
const [isFocused, setIsFocused] = useState(false);
|
|
5230
5226
|
const [currentValue, setCurrentValue] = useState(value);
|
|
@@ -5262,7 +5258,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5262
5258
|
});
|
|
5263
5259
|
});
|
|
5264
5260
|
|
|
5265
|
-
const _excluded$
|
|
5261
|
+
const _excluded$p = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
5266
5262
|
const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5267
5263
|
let {
|
|
5268
5264
|
value,
|
|
@@ -5272,7 +5268,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5272
5268
|
onChange,
|
|
5273
5269
|
onBlur
|
|
5274
5270
|
} = _ref,
|
|
5275
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5271
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
5276
5272
|
if (Platform.OS === 'android') {
|
|
5277
5273
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
5278
5274
|
ref: ref,
|
|
@@ -5294,7 +5290,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5294
5290
|
}, props));
|
|
5295
5291
|
});
|
|
5296
5292
|
|
|
5297
|
-
const _excluded$
|
|
5293
|
+
const _excluded$o = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
5298
5294
|
const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5299
5295
|
let {
|
|
5300
5296
|
fillMode = 'native',
|
|
@@ -5302,7 +5298,7 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5302
5298
|
value,
|
|
5303
5299
|
onSubmitEditing
|
|
5304
5300
|
} = _ref,
|
|
5305
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5301
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
5306
5302
|
// in apps, final-form can give a string value that will break the component
|
|
5307
5303
|
const currentValue = value || undefined;
|
|
5308
5304
|
if (fillMode === 'keyboard') {
|
|
@@ -5321,6 +5317,240 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5321
5317
|
}));
|
|
5322
5318
|
});
|
|
5323
5319
|
|
|
5320
|
+
function DocumentPicker({
|
|
5321
|
+
onDocumentUpload,
|
|
5322
|
+
children,
|
|
5323
|
+
disabled,
|
|
5324
|
+
documentPickerOptions
|
|
5325
|
+
}) {
|
|
5326
|
+
const childElement = Children.only(children);
|
|
5327
|
+
return /*#__PURE__*/cloneElement(childElement, {
|
|
5328
|
+
// ensure that the press event is not prevented by Button component
|
|
5329
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
5330
|
+
onPress: async () => {
|
|
5331
|
+
var _childElement$props$o, _childElement$props;
|
|
5332
|
+
if (disabled) return;
|
|
5333
|
+
(_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
|
|
5334
|
+
const result = await getDocumentAsync(_objectSpread(_objectSpread({}, documentPickerOptions), {}, {
|
|
5335
|
+
multiple: false
|
|
5336
|
+
}));
|
|
5337
|
+
if (!result.canceled && result.assets[0].file) {
|
|
5338
|
+
onDocumentUpload(result.assets[0].file);
|
|
5339
|
+
}
|
|
5340
|
+
},
|
|
5341
|
+
disabled
|
|
5342
|
+
});
|
|
5343
|
+
}
|
|
5344
|
+
|
|
5345
|
+
function ImagePicker({
|
|
5346
|
+
onImageSelected,
|
|
5347
|
+
children,
|
|
5348
|
+
disabled,
|
|
5349
|
+
imagePickerOptions
|
|
5350
|
+
}) {
|
|
5351
|
+
const childElement = Children.only(children);
|
|
5352
|
+
return /*#__PURE__*/jsx(View, {
|
|
5353
|
+
children: /*#__PURE__*/cloneElement(childElement, {
|
|
5354
|
+
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
5355
|
+
onPress: async () => {
|
|
5356
|
+
var _childElement$props$o, _childElement$props;
|
|
5357
|
+
if (disabled) return;
|
|
5358
|
+
(_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
|
|
5359
|
+
|
|
5360
|
+
// No permissions request is necessary for launching the image library
|
|
5361
|
+
const result = await launchImageLibraryAsync(_objectSpread(_objectSpread({}, imagePickerOptions), {}, {
|
|
5362
|
+
allowsMultipleSelection: false
|
|
5363
|
+
}));
|
|
5364
|
+
if (!result.canceled) {
|
|
5365
|
+
onImageSelected(result.assets[0]);
|
|
5366
|
+
}
|
|
5367
|
+
},
|
|
5368
|
+
disabled
|
|
5369
|
+
})
|
|
5370
|
+
});
|
|
5371
|
+
}
|
|
5372
|
+
|
|
5373
|
+
const _excluded$n = ["children"];
|
|
5374
|
+
function ListItemContent(_ref) {
|
|
5375
|
+
let {
|
|
5376
|
+
children
|
|
5377
|
+
} = _ref,
|
|
5378
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
5379
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5380
|
+
alignSelf: "center",
|
|
5381
|
+
flexBasis: "0%",
|
|
5382
|
+
flexGrow: 1,
|
|
5383
|
+
flexShrink: 0
|
|
5384
|
+
}, rest), {}, {
|
|
5385
|
+
children: children
|
|
5386
|
+
}));
|
|
5387
|
+
}
|
|
5388
|
+
|
|
5389
|
+
const _excluded$m = ["children", "side"],
|
|
5390
|
+
_excluded2$2 = ["children", "align"];
|
|
5391
|
+
// Handles the vertical alignment of the side elements of the list item
|
|
5392
|
+
function ListItemSideContainer(_ref) {
|
|
5393
|
+
let {
|
|
5394
|
+
children,
|
|
5395
|
+
side = 'left'
|
|
5396
|
+
} = _ref,
|
|
5397
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
5398
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5399
|
+
flexDirection: "row",
|
|
5400
|
+
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
5401
|
+
marginRight: side === 'left' ? 'kitt.2' : undefined
|
|
5402
|
+
}, rest), {}, {
|
|
5403
|
+
children: children
|
|
5404
|
+
}));
|
|
5405
|
+
}
|
|
5406
|
+
function ListItemSideContent(_ref2) {
|
|
5407
|
+
let {
|
|
5408
|
+
children,
|
|
5409
|
+
align = 'auto'
|
|
5410
|
+
} = _ref2,
|
|
5411
|
+
rest = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
5412
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5413
|
+
alignSelf: align
|
|
5414
|
+
}, rest), {}, {
|
|
5415
|
+
children: children
|
|
5416
|
+
}));
|
|
5417
|
+
}
|
|
5418
|
+
|
|
5419
|
+
const _excluded$l = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
5420
|
+
function ListItem(_ref) {
|
|
5421
|
+
let {
|
|
5422
|
+
children,
|
|
5423
|
+
withPadding,
|
|
5424
|
+
borders,
|
|
5425
|
+
left,
|
|
5426
|
+
right,
|
|
5427
|
+
onPress
|
|
5428
|
+
} = _ref,
|
|
5429
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
5430
|
+
const Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
5431
|
+
const wrapperProps = onPress ? _objectSpread({
|
|
5432
|
+
accessibilityRole: 'button',
|
|
5433
|
+
onPress
|
|
5434
|
+
}, rest) : undefined;
|
|
5435
|
+
const containerProps = onPress ? undefined : rest;
|
|
5436
|
+
return /*#__PURE__*/jsx(Wrapper, _objectSpread(_objectSpread({}, wrapperProps), {}, {
|
|
5437
|
+
children: /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
|
|
5438
|
+
flexDirection: "row",
|
|
5439
|
+
paddingX: withPadding ? 'kitt.listItem.horizontalPadding' : undefined,
|
|
5440
|
+
paddingY: withPadding ? 'kitt.listItem.verticalPadding' : undefined,
|
|
5441
|
+
borderColor: "kitt.listItem.borderColor",
|
|
5442
|
+
backgroundColor: "kitt.uiBackgroundLight",
|
|
5443
|
+
borderTopWidth: borders === 'top' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined,
|
|
5444
|
+
borderBottomWidth: borders === 'bottom' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined
|
|
5445
|
+
}, containerProps), {}, {
|
|
5446
|
+
children: [left ? /*#__PURE__*/jsx(ListItemSideContainer, {
|
|
5447
|
+
side: "left",
|
|
5448
|
+
children: left
|
|
5449
|
+
}) : null, /*#__PURE__*/jsx(ListItemContent, {
|
|
5450
|
+
children: children
|
|
5451
|
+
}), right ? /*#__PURE__*/jsx(ListItemSideContainer, {
|
|
5452
|
+
side: "right",
|
|
5453
|
+
children: right
|
|
5454
|
+
}) : null]
|
|
5455
|
+
}))
|
|
5456
|
+
}));
|
|
5457
|
+
}
|
|
5458
|
+
ListItem.Content = ListItemContent;
|
|
5459
|
+
ListItem.SideContent = ListItemSideContent;
|
|
5460
|
+
ListItem.SideContainer = ListItemSideContainer;
|
|
5461
|
+
|
|
5462
|
+
const _excluded$k = ["title"];
|
|
5463
|
+
function BottomSheetActionsItem(_ref) {
|
|
5464
|
+
let {
|
|
5465
|
+
title
|
|
5466
|
+
} = _ref,
|
|
5467
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
5468
|
+
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
5469
|
+
children: /*#__PURE__*/jsx(ListItem, {
|
|
5470
|
+
withPadding: true,
|
|
5471
|
+
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
5472
|
+
variant: "bold",
|
|
5473
|
+
base: "body",
|
|
5474
|
+
children: title
|
|
5475
|
+
})
|
|
5476
|
+
})
|
|
5477
|
+
}));
|
|
5478
|
+
}
|
|
5479
|
+
|
|
5480
|
+
function BottomSheetActions({
|
|
5481
|
+
onBottomSheetActionsChange,
|
|
5482
|
+
imagePickerOptions,
|
|
5483
|
+
documentPickerOptions,
|
|
5484
|
+
disabled
|
|
5485
|
+
}) {
|
|
5486
|
+
const isPlatformIOS = Platform.OS === 'ios';
|
|
5487
|
+
return /*#__PURE__*/jsxs(VStack, {
|
|
5488
|
+
marginBottom: "kitt.8",
|
|
5489
|
+
children: [/*#__PURE__*/jsx(ImagePicker, {
|
|
5490
|
+
imagePickerOptions: imagePickerOptions,
|
|
5491
|
+
disabled: disabled,
|
|
5492
|
+
onImageSelected: onBottomSheetActionsChange,
|
|
5493
|
+
children: /*#__PURE__*/jsx(BottomSheetActionsItem, {
|
|
5494
|
+
title: /*#__PURE__*/jsx(FormattedMessage, {
|
|
5495
|
+
id: "account.BottomSheetActions.openLibrary",
|
|
5496
|
+
values: {
|
|
5497
|
+
isPlatformIOS
|
|
5498
|
+
}
|
|
5499
|
+
})
|
|
5500
|
+
})
|
|
5501
|
+
}), /*#__PURE__*/jsx(DocumentPicker, {
|
|
5502
|
+
disabled: disabled,
|
|
5503
|
+
documentPickerOptions: documentPickerOptions,
|
|
5504
|
+
onDocumentUpload: onBottomSheetActionsChange,
|
|
5505
|
+
children: /*#__PURE__*/jsx(BottomSheetActionsItem, {
|
|
5506
|
+
title: /*#__PURE__*/jsx(FormattedMessage, {
|
|
5507
|
+
id: "account.BottomSheetActions.openFileExplorer",
|
|
5508
|
+
values: {
|
|
5509
|
+
isPlatformIOS
|
|
5510
|
+
}
|
|
5511
|
+
})
|
|
5512
|
+
})
|
|
5513
|
+
})]
|
|
5514
|
+
});
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5517
|
+
function FilePicker({
|
|
5518
|
+
onFileSelected,
|
|
5519
|
+
children,
|
|
5520
|
+
disabled,
|
|
5521
|
+
imagePickerOptions,
|
|
5522
|
+
documentPickerOptions
|
|
5523
|
+
}) {
|
|
5524
|
+
const childElement = Children.only(children);
|
|
5525
|
+
const {
|
|
5526
|
+
bottomSheetRef,
|
|
5527
|
+
BottomSheet
|
|
5528
|
+
} = useStaticBottomSheet(BottomSheetActions);
|
|
5529
|
+
const {
|
|
5530
|
+
dismissAll
|
|
5531
|
+
} = useBottomSheetModal();
|
|
5532
|
+
const handleBottomSheetActionsChange = file => {
|
|
5533
|
+
dismissAll();
|
|
5534
|
+
onFileSelected(file);
|
|
5535
|
+
};
|
|
5536
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
5537
|
+
children: [/*#__PURE__*/cloneElement(childElement, {
|
|
5538
|
+
// ensure that the press event is not prevented by Button component
|
|
5539
|
+
onPress: () => {
|
|
5540
|
+
var _childElement$props$o, _childElement$props, _bottomSheetRef$curre;
|
|
5541
|
+
if (disabled) return;
|
|
5542
|
+
(_childElement$props$o = (_childElement$props = childElement.props).onPress) === null || _childElement$props$o === void 0 || _childElement$props$o.call(_childElement$props);
|
|
5543
|
+
(_bottomSheetRef$curre = bottomSheetRef.current) === null || _bottomSheetRef$curre === void 0 || _bottomSheetRef$curre.present({
|
|
5544
|
+
onBottomSheetActionsChange: handleBottomSheetActionsChange,
|
|
5545
|
+
imagePickerOptions,
|
|
5546
|
+
documentPickerOptions
|
|
5547
|
+
});
|
|
5548
|
+
},
|
|
5549
|
+
disabled
|
|
5550
|
+
}), /*#__PURE__*/jsx(BottomSheet, {})]
|
|
5551
|
+
});
|
|
5552
|
+
}
|
|
5553
|
+
|
|
5324
5554
|
const GoogleMapsApiKeyContext = /*#__PURE__*/createContext(undefined);
|
|
5325
5555
|
function GoogleMapsApiKeyProvider({
|
|
5326
5556
|
children,
|
|
@@ -5668,7 +5898,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
5668
5898
|
};
|
|
5669
5899
|
}
|
|
5670
5900
|
|
|
5671
|
-
const _excluded$
|
|
5901
|
+
const _excluded$j = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
5672
5902
|
function InputAddress(_ref) {
|
|
5673
5903
|
let {
|
|
5674
5904
|
initialValue,
|
|
@@ -5677,7 +5907,7 @@ function InputAddress(_ref) {
|
|
|
5677
5907
|
emptyResultsElement,
|
|
5678
5908
|
onChange
|
|
5679
5909
|
} = _ref,
|
|
5680
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5910
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
5681
5911
|
const {
|
|
5682
5912
|
state,
|
|
5683
5913
|
onInputChange,
|
|
@@ -5766,12 +5996,12 @@ function InputField({
|
|
|
5766
5996
|
});
|
|
5767
5997
|
}
|
|
5768
5998
|
|
|
5769
|
-
const _excluded$
|
|
5999
|
+
const _excluded$i = ["onChange"];
|
|
5770
6000
|
const InputNumber = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5771
6001
|
let {
|
|
5772
6002
|
onChange
|
|
5773
6003
|
} = _ref,
|
|
5774
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6004
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
5775
6005
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
5776
6006
|
ref: ref
|
|
5777
6007
|
}, props), {}, {
|
|
@@ -5788,13 +6018,13 @@ const InputNumber = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5788
6018
|
}));
|
|
5789
6019
|
});
|
|
5790
6020
|
|
|
5791
|
-
const _excluded$
|
|
6021
|
+
const _excluded$h = ["isPasswordDefaultVisible", "right"];
|
|
5792
6022
|
const InputPassword = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5793
6023
|
let {
|
|
5794
6024
|
isPasswordDefaultVisible,
|
|
5795
6025
|
right
|
|
5796
6026
|
} = _ref,
|
|
5797
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6027
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
5798
6028
|
const [isVisible, setIsVisible] = useState(Boolean(isPasswordDefaultVisible));
|
|
5799
6029
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
5800
6030
|
ref: ref
|
|
@@ -5815,7 +6045,7 @@ const InputPassword = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5815
6045
|
}));
|
|
5816
6046
|
});
|
|
5817
6047
|
|
|
5818
|
-
const _excluded$
|
|
6048
|
+
const _excluded$g = ["enterKeyHint", "autoComplete", "phoneNumberLength", "value", "onChange"];
|
|
5819
6049
|
function isPhoneNumberValid(number) {
|
|
5820
6050
|
return isValidNumber(number);
|
|
5821
6051
|
}
|
|
@@ -5830,7 +6060,7 @@ const InputPhone = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5830
6060
|
value,
|
|
5831
6061
|
onChange
|
|
5832
6062
|
} = _ref,
|
|
5833
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6063
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
5834
6064
|
const [currentValue, setCurrentValue] = useState(value);
|
|
5835
6065
|
const currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
5836
6066
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
@@ -6277,7 +6507,7 @@ function RadioButton({
|
|
|
6277
6507
|
});
|
|
6278
6508
|
}
|
|
6279
6509
|
|
|
6280
|
-
const _excluded$
|
|
6510
|
+
const _excluded$f = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
6281
6511
|
function RadioButtonGroupItem(_ref) {
|
|
6282
6512
|
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
6283
6513
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -6292,7 +6522,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
6292
6522
|
onBlur,
|
|
6293
6523
|
onChange
|
|
6294
6524
|
} = _ref2,
|
|
6295
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6525
|
+
props = _objectWithoutProperties(_ref2, _excluded$f);
|
|
6296
6526
|
const [currentValue, setCurrentValue] = useState(value);
|
|
6297
6527
|
const handleChange = newValue => {
|
|
6298
6528
|
if (disabled) return;
|
|
@@ -6331,7 +6561,7 @@ const TextArea = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6331
6561
|
}, props));
|
|
6332
6562
|
});
|
|
6333
6563
|
|
|
6334
|
-
const _excluded$
|
|
6564
|
+
const _excluded$e = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
6335
6565
|
function FullscreenModalBody(_ref) {
|
|
6336
6566
|
let {
|
|
6337
6567
|
children,
|
|
@@ -6339,7 +6569,7 @@ function FullscreenModalBody(_ref) {
|
|
|
6339
6569
|
style,
|
|
6340
6570
|
shouldHandleTopNotch
|
|
6341
6571
|
} = _ref,
|
|
6342
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6572
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
6343
6573
|
const {
|
|
6344
6574
|
bottom,
|
|
6345
6575
|
top
|
|
@@ -6364,14 +6594,14 @@ function FullscreenModalBody(_ref) {
|
|
|
6364
6594
|
}));
|
|
6365
6595
|
}
|
|
6366
6596
|
|
|
6367
|
-
const _excluded$
|
|
6597
|
+
const _excluded$d = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
6368
6598
|
function FullscreenModalFooter(_ref) {
|
|
6369
6599
|
let {
|
|
6370
6600
|
shouldHandleBottomNotch = true,
|
|
6371
6601
|
hasSeparator = true,
|
|
6372
6602
|
children
|
|
6373
6603
|
} = _ref,
|
|
6374
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6604
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
6375
6605
|
const {
|
|
6376
6606
|
bottom
|
|
6377
6607
|
} = useSafeAreaInsets();
|
|
@@ -6522,7 +6752,7 @@ function FullscreenModalAnimation({
|
|
|
6522
6752
|
});
|
|
6523
6753
|
}
|
|
6524
6754
|
|
|
6525
|
-
const _excluded$
|
|
6755
|
+
const _excluded$c = ["children", "visible", "onClose", "onExited"];
|
|
6526
6756
|
function FullscreenModalBehaviour(_ref) {
|
|
6527
6757
|
let {
|
|
6528
6758
|
children,
|
|
@@ -6530,7 +6760,7 @@ function FullscreenModalBehaviour(_ref) {
|
|
|
6530
6760
|
onClose,
|
|
6531
6761
|
onExited
|
|
6532
6762
|
} = _ref,
|
|
6533
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6763
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
6534
6764
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
6535
6765
|
useEffect(() => {
|
|
6536
6766
|
if (visible === true) {
|
|
@@ -6575,7 +6805,7 @@ function FullscreenModalContainer({
|
|
|
6575
6805
|
});
|
|
6576
6806
|
}
|
|
6577
6807
|
|
|
6578
|
-
const _excluded$
|
|
6808
|
+
const _excluded$b = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
|
|
6579
6809
|
function FullscreenModalHeader(_ref) {
|
|
6580
6810
|
let {
|
|
6581
6811
|
hasSeparator = true,
|
|
@@ -6586,7 +6816,7 @@ function FullscreenModalHeader(_ref) {
|
|
|
6586
6816
|
left,
|
|
6587
6817
|
shouldHandleTopNotch = true
|
|
6588
6818
|
} = _ref,
|
|
6589
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6819
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
6590
6820
|
const {
|
|
6591
6821
|
top
|
|
6592
6822
|
} = useSafeAreaInsets();
|
|
@@ -6894,7 +7124,7 @@ function Highlight({
|
|
|
6894
7124
|
// eslint-disable-next-line no-restricted-imports
|
|
6895
7125
|
const useBreakpointValue = useBreakpointValue$1;
|
|
6896
7126
|
|
|
6897
|
-
const _excluded$
|
|
7127
|
+
const _excluded$a = ["color", "isDisabled"];
|
|
6898
7128
|
function getBackgroundColor(color, isDisabled) {
|
|
6899
7129
|
if (isDisabled) {
|
|
6900
7130
|
return 'kitt.iconButton.disabled.backgroundColor';
|
|
@@ -6914,7 +7144,7 @@ function Background(_ref) {
|
|
|
6914
7144
|
color,
|
|
6915
7145
|
isDisabled
|
|
6916
7146
|
} = _ref,
|
|
6917
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7147
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
6918
7148
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
6919
7149
|
width: "100%",
|
|
6920
7150
|
height: "100%",
|
|
@@ -7114,95 +7344,6 @@ function useKittMapConfig() {
|
|
|
7114
7344
|
return context;
|
|
7115
7345
|
}
|
|
7116
7346
|
|
|
7117
|
-
const _excluded$c = ["children"];
|
|
7118
|
-
function ListItemContent(_ref) {
|
|
7119
|
-
let {
|
|
7120
|
-
children
|
|
7121
|
-
} = _ref,
|
|
7122
|
-
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
7123
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7124
|
-
alignSelf: "center",
|
|
7125
|
-
flexBasis: "0%",
|
|
7126
|
-
flexGrow: 1,
|
|
7127
|
-
flexShrink: 0
|
|
7128
|
-
}, rest), {}, {
|
|
7129
|
-
children: children
|
|
7130
|
-
}));
|
|
7131
|
-
}
|
|
7132
|
-
|
|
7133
|
-
const _excluded$b = ["children", "side"],
|
|
7134
|
-
_excluded2$2 = ["children", "align"];
|
|
7135
|
-
// Handles the vertical alignment of the side elements of the list item
|
|
7136
|
-
function ListItemSideContainer(_ref) {
|
|
7137
|
-
let {
|
|
7138
|
-
children,
|
|
7139
|
-
side = 'left'
|
|
7140
|
-
} = _ref,
|
|
7141
|
-
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
7142
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7143
|
-
flexDirection: "row",
|
|
7144
|
-
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
7145
|
-
marginRight: side === 'left' ? 'kitt.2' : undefined
|
|
7146
|
-
}, rest), {}, {
|
|
7147
|
-
children: children
|
|
7148
|
-
}));
|
|
7149
|
-
}
|
|
7150
|
-
function ListItemSideContent(_ref2) {
|
|
7151
|
-
let {
|
|
7152
|
-
children,
|
|
7153
|
-
align = 'auto'
|
|
7154
|
-
} = _ref2,
|
|
7155
|
-
rest = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
7156
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7157
|
-
alignSelf: align
|
|
7158
|
-
}, rest), {}, {
|
|
7159
|
-
children: children
|
|
7160
|
-
}));
|
|
7161
|
-
}
|
|
7162
|
-
|
|
7163
|
-
const _excluded$a = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
7164
|
-
function ListItem(_ref) {
|
|
7165
|
-
let {
|
|
7166
|
-
children,
|
|
7167
|
-
withPadding,
|
|
7168
|
-
borders,
|
|
7169
|
-
left,
|
|
7170
|
-
right,
|
|
7171
|
-
onPress
|
|
7172
|
-
} = _ref,
|
|
7173
|
-
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
7174
|
-
const Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
7175
|
-
const wrapperProps = onPress ? _objectSpread({
|
|
7176
|
-
accessibilityRole: 'button',
|
|
7177
|
-
onPress
|
|
7178
|
-
}, rest) : undefined;
|
|
7179
|
-
const containerProps = onPress ? undefined : rest;
|
|
7180
|
-
return /*#__PURE__*/jsx(Wrapper, _objectSpread(_objectSpread({}, wrapperProps), {}, {
|
|
7181
|
-
children: /*#__PURE__*/jsxs(View, _objectSpread(_objectSpread({
|
|
7182
|
-
flexDirection: "row",
|
|
7183
|
-
paddingX: withPadding ? 'kitt.listItem.horizontalPadding' : undefined,
|
|
7184
|
-
paddingY: withPadding ? 'kitt.listItem.verticalPadding' : undefined,
|
|
7185
|
-
borderColor: "kitt.listItem.borderColor",
|
|
7186
|
-
backgroundColor: "kitt.uiBackgroundLight",
|
|
7187
|
-
borderTopWidth: borders === 'top' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined,
|
|
7188
|
-
borderBottomWidth: borders === 'bottom' || borders === 'both' ? 'kitt.listItem.borderWidth' : undefined
|
|
7189
|
-
}, containerProps), {}, {
|
|
7190
|
-
children: [left ? /*#__PURE__*/jsx(ListItemSideContainer, {
|
|
7191
|
-
side: "left",
|
|
7192
|
-
children: left
|
|
7193
|
-
}) : null, /*#__PURE__*/jsx(ListItemContent, {
|
|
7194
|
-
children: children
|
|
7195
|
-
}), right ? /*#__PURE__*/jsx(ListItemSideContainer, {
|
|
7196
|
-
side: "right",
|
|
7197
|
-
children: right
|
|
7198
|
-
}) : null]
|
|
7199
|
-
}))
|
|
7200
|
-
}));
|
|
7201
|
-
}
|
|
7202
|
-
ListItem.Content = ListItemContent;
|
|
7203
|
-
ListItem.SideContent = ListItemSideContent;
|
|
7204
|
-
ListItem.SideContainer = ListItemSideContainer;
|
|
7205
|
-
|
|
7206
7347
|
const SvgMarkerLargeinline = props => /*#__PURE__*/jsxs(Svg, _objectSpread(_objectSpread({
|
|
7207
7348
|
fill: "currentColor",
|
|
7208
7349
|
viewBox: "0 0 54 56",
|
|
@@ -7662,48 +7803,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7662
7803
|
}
|
|
7663
7804
|
}
|
|
7664
7805
|
},
|
|
7665
|
-
tag: {
|
|
7666
|
-
primary: {
|
|
7667
|
-
fill: {
|
|
7668
|
-
backgroundColor: theme.tag.primary.fill.backgroundColor,
|
|
7669
|
-
borderColor: theme.tag.primary.fill.borderColor
|
|
7670
|
-
},
|
|
7671
|
-
outline: {
|
|
7672
|
-
backgroundColor: theme.tag.primary.outline.backgroundColor,
|
|
7673
|
-
borderColor: theme.tag.primary.outline.borderColor
|
|
7674
|
-
}
|
|
7675
|
-
},
|
|
7676
|
-
default: {
|
|
7677
|
-
fill: {
|
|
7678
|
-
backgroundColor: theme.tag.default.fill.backgroundColor,
|
|
7679
|
-
borderColor: theme.tag.default.fill.borderColor
|
|
7680
|
-
},
|
|
7681
|
-
outline: {
|
|
7682
|
-
backgroundColor: theme.tag.default.outline.backgroundColor,
|
|
7683
|
-
borderColor: theme.tag.default.outline.borderColor
|
|
7684
|
-
}
|
|
7685
|
-
},
|
|
7686
|
-
danger: {
|
|
7687
|
-
fill: {
|
|
7688
|
-
backgroundColor: theme.tag.danger.fill.backgroundColor,
|
|
7689
|
-
borderColor: theme.tag.danger.fill.borderColor
|
|
7690
|
-
},
|
|
7691
|
-
outline: {
|
|
7692
|
-
backgroundColor: theme.tag.danger.outline.backgroundColor,
|
|
7693
|
-
borderColor: theme.tag.danger.outline.borderColor
|
|
7694
|
-
}
|
|
7695
|
-
},
|
|
7696
|
-
warn: {
|
|
7697
|
-
fill: {
|
|
7698
|
-
backgroundColor: theme.tag.warn.fill.backgroundColor,
|
|
7699
|
-
borderColor: theme.tag.warn.fill.borderColor
|
|
7700
|
-
},
|
|
7701
|
-
outline: {
|
|
7702
|
-
backgroundColor: theme.tag.warn.outline.backgroundColor,
|
|
7703
|
-
borderColor: theme.tag.warn.outline.borderColor
|
|
7704
|
-
}
|
|
7705
|
-
}
|
|
7706
|
-
},
|
|
7707
7806
|
tooltip: {
|
|
7708
7807
|
backgroundColor: theme.tooltip.backgroundColor
|
|
7709
7808
|
},
|
|
@@ -8191,37 +8290,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8191
8290
|
borderWidth: theme.listItem.borderWidth
|
|
8192
8291
|
},
|
|
8193
8292
|
tag: {
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
borderWidth: theme.tag.primary.fill.borderWidth
|
|
8197
|
-
},
|
|
8198
|
-
outline: {
|
|
8199
|
-
borderWidth: theme.tag.primary.outline.borderWidth
|
|
8200
|
-
}
|
|
8201
|
-
},
|
|
8202
|
-
default: {
|
|
8203
|
-
fill: {
|
|
8204
|
-
borderWidth: theme.tag.default.fill.borderWidth
|
|
8205
|
-
},
|
|
8206
|
-
outline: {
|
|
8207
|
-
borderWidth: theme.tag.default.outline.borderWidth
|
|
8208
|
-
}
|
|
8209
|
-
},
|
|
8210
|
-
danger: {
|
|
8211
|
-
fill: {
|
|
8212
|
-
borderWidth: theme.tag.danger.fill.borderWidth
|
|
8213
|
-
},
|
|
8214
|
-
outline: {
|
|
8215
|
-
borderWidth: theme.tag.danger.outline.borderWidth
|
|
8216
|
-
}
|
|
8293
|
+
fill: {
|
|
8294
|
+
borderWidth: theme.tag.fill.borderWidth
|
|
8217
8295
|
},
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
borderWidth: theme.tag.warn.fill.borderWidth
|
|
8221
|
-
},
|
|
8222
|
-
outline: {
|
|
8223
|
-
borderWidth: theme.tag.warn.outline.borderWidth
|
|
8224
|
-
}
|
|
8296
|
+
outline: {
|
|
8297
|
+
borderWidth: theme.tag.outline.borderWidth
|
|
8225
8298
|
}
|
|
8226
8299
|
}
|
|
8227
8300
|
},
|
|
@@ -8316,6 +8389,39 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8316
8389
|
pageLoader: {
|
|
8317
8390
|
size: theme.pageLoader.size
|
|
8318
8391
|
},
|
|
8392
|
+
tag: {
|
|
8393
|
+
small: {
|
|
8394
|
+
iconSize: theme.tag.icon.small
|
|
8395
|
+
},
|
|
8396
|
+
medium: {
|
|
8397
|
+
iconSize: theme.tag.icon.medium
|
|
8398
|
+
},
|
|
8399
|
+
large: {
|
|
8400
|
+
iconSize: theme.tag.icon.large
|
|
8401
|
+
},
|
|
8402
|
+
withIcon: {
|
|
8403
|
+
small: {
|
|
8404
|
+
height: theme.tag.withIcon.small.height
|
|
8405
|
+
},
|
|
8406
|
+
medium: {
|
|
8407
|
+
height: theme.tag.withIcon.medium.height
|
|
8408
|
+
},
|
|
8409
|
+
large: {
|
|
8410
|
+
height: theme.tag.withIcon.large.height
|
|
8411
|
+
}
|
|
8412
|
+
},
|
|
8413
|
+
withoutIcon: {
|
|
8414
|
+
small: {
|
|
8415
|
+
height: theme.tag.withoutIcon.small.height
|
|
8416
|
+
},
|
|
8417
|
+
medium: {
|
|
8418
|
+
height: theme.tag.withoutIcon.medium.height
|
|
8419
|
+
},
|
|
8420
|
+
large: {
|
|
8421
|
+
height: theme.tag.withoutIcon.large.height
|
|
8422
|
+
}
|
|
8423
|
+
}
|
|
8424
|
+
},
|
|
8319
8425
|
tooltip: {
|
|
8320
8426
|
maxWidth: theme.tooltip.maxWidth,
|
|
8321
8427
|
arrow: {
|
|
@@ -8405,8 +8511,34 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8405
8511
|
horizontalPadding: theme.listItem.horizontalPadding
|
|
8406
8512
|
},
|
|
8407
8513
|
tag: {
|
|
8408
|
-
|
|
8409
|
-
|
|
8514
|
+
withoutIcon: {
|
|
8515
|
+
small: {
|
|
8516
|
+
paddingLeft: theme.tag.withoutIcon.small.paddingLeft,
|
|
8517
|
+
paddingRight: theme.tag.withoutIcon.small.paddingRight
|
|
8518
|
+
},
|
|
8519
|
+
medium: {
|
|
8520
|
+
paddingLeft: theme.tag.withoutIcon.medium.paddingLeft,
|
|
8521
|
+
paddingRight: theme.tag.withoutIcon.medium.paddingRight
|
|
8522
|
+
},
|
|
8523
|
+
large: {
|
|
8524
|
+
paddingLeft: theme.tag.withoutIcon.large.paddingLeft,
|
|
8525
|
+
paddingRight: theme.tag.withoutIcon.large.paddingRight
|
|
8526
|
+
}
|
|
8527
|
+
},
|
|
8528
|
+
withIcon: {
|
|
8529
|
+
small: {
|
|
8530
|
+
paddingLeft: theme.tag.withIcon.small.paddingLeft,
|
|
8531
|
+
paddingRight: theme.tag.withIcon.small.paddingRight
|
|
8532
|
+
},
|
|
8533
|
+
medium: {
|
|
8534
|
+
paddingLeft: theme.tag.withIcon.medium.paddingLeft,
|
|
8535
|
+
paddingRight: theme.tag.withIcon.medium.paddingRight
|
|
8536
|
+
},
|
|
8537
|
+
large: {
|
|
8538
|
+
paddingLeft: theme.tag.withIcon.large.paddingLeft,
|
|
8539
|
+
paddingRight: theme.tag.withIcon.large.paddingRight
|
|
8540
|
+
}
|
|
8541
|
+
}
|
|
8410
8542
|
},
|
|
8411
8543
|
tooltip: {
|
|
8412
8544
|
horizontalPadding: theme.tooltip.horizontalPadding,
|
|
@@ -10390,48 +10522,68 @@ const StoryGrid = {
|
|
|
10390
10522
|
Col: StoryGridCol
|
|
10391
10523
|
};
|
|
10392
10524
|
|
|
10393
|
-
|
|
10525
|
+
function useKittTheme() {
|
|
10526
|
+
return useMemo(() => {
|
|
10527
|
+
return {
|
|
10528
|
+
kitt: theme
|
|
10529
|
+
};
|
|
10530
|
+
}, []);
|
|
10531
|
+
}
|
|
10532
|
+
|
|
10533
|
+
const getTypography = size => {
|
|
10534
|
+
switch (size) {
|
|
10535
|
+
case 'small':
|
|
10536
|
+
return 'body-xs';
|
|
10537
|
+
case 'medium':
|
|
10538
|
+
return 'body-s';
|
|
10539
|
+
case 'large':
|
|
10540
|
+
default:
|
|
10541
|
+
return 'body-m';
|
|
10542
|
+
}
|
|
10543
|
+
};
|
|
10544
|
+
const typeToColor = (color, type) => {
|
|
10545
|
+
if (color) return color;
|
|
10394
10546
|
switch (type) {
|
|
10395
|
-
case 'danger':
|
|
10396
|
-
{
|
|
10397
|
-
return variant === 'outline' ? 'danger' : 'black';
|
|
10398
|
-
}
|
|
10399
|
-
case 'warn':
|
|
10400
|
-
{
|
|
10401
|
-
return variant === 'outline' ? 'warning' : 'black';
|
|
10402
|
-
}
|
|
10403
10547
|
case 'primary':
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10548
|
+
return 'violine';
|
|
10549
|
+
case 'warn':
|
|
10550
|
+
return 'sun';
|
|
10551
|
+
case 'danger':
|
|
10552
|
+
return 'coral';
|
|
10407
10553
|
case 'default':
|
|
10408
|
-
{
|
|
10409
|
-
return 'black';
|
|
10410
|
-
}
|
|
10411
10554
|
default:
|
|
10412
|
-
|
|
10413
|
-
return 'black';
|
|
10414
|
-
}
|
|
10555
|
+
return 'eggshell';
|
|
10415
10556
|
}
|
|
10416
10557
|
};
|
|
10417
10558
|
function Tag({
|
|
10418
10559
|
label,
|
|
10419
|
-
|
|
10560
|
+
icon,
|
|
10561
|
+
color,
|
|
10562
|
+
type,
|
|
10563
|
+
size = 'medium',
|
|
10420
10564
|
variant = 'fill'
|
|
10421
10565
|
}) {
|
|
10422
|
-
|
|
10566
|
+
const kittTheme = useKittTheme();
|
|
10567
|
+
const tagColor = typeToColor(color, type);
|
|
10568
|
+
return /*#__PURE__*/jsxs(HStack, {
|
|
10423
10569
|
alignSelf: "flex-start",
|
|
10424
10570
|
borderRadius: "kitt.tag.borderRadius",
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10571
|
+
height: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.height`,
|
|
10572
|
+
paddingLeft: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingLeft`,
|
|
10573
|
+
paddingRight: `kitt.tag.${icon ? 'withIcon' : 'withoutIcon'}.${size}.paddingRight`,
|
|
10574
|
+
backgroundColor: variant === 'fill' ? kittTheme.kitt.palettes.lateOcean[`${tagColor}.4`] : 'kitt.transparent',
|
|
10575
|
+
borderColor: kittTheme.kitt.palettes.lateOcean[`${tagColor}.6`],
|
|
10576
|
+
borderWidth: `kitt.tag.${variant}.borderWidth`,
|
|
10577
|
+
space: "kitt.1",
|
|
10578
|
+
alignItems: "center",
|
|
10579
|
+
children: [icon ? /*#__PURE__*/jsx(TypographyIcon, {
|
|
10580
|
+
icon: icon,
|
|
10581
|
+
size: `kitt.tag.${size}.iconSize`
|
|
10582
|
+
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
10583
|
+
base: getTypography(size),
|
|
10584
|
+
color: "black",
|
|
10433
10585
|
children: label
|
|
10434
|
-
})
|
|
10586
|
+
})]
|
|
10435
10587
|
});
|
|
10436
10588
|
}
|
|
10437
10589
|
|
|
@@ -11003,14 +11155,6 @@ function TypographyLink(_ref) {
|
|
|
11003
11155
|
});
|
|
11004
11156
|
}
|
|
11005
11157
|
|
|
11006
|
-
function useKittTheme() {
|
|
11007
|
-
return useMemo(() => {
|
|
11008
|
-
return {
|
|
11009
|
-
kitt: theme
|
|
11010
|
-
};
|
|
11011
|
-
}, []);
|
|
11012
|
-
}
|
|
11013
|
-
|
|
11014
11158
|
function KittThemeProvider({
|
|
11015
11159
|
isSSR,
|
|
11016
11160
|
children,
|
|
@@ -11243,5 +11387,5 @@ function VerticalSteps(_ref) {
|
|
|
11243
11387
|
}
|
|
11244
11388
|
VerticalSteps.Step = ExternalStep;
|
|
11245
11389
|
|
|
11246
|
-
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, Emoji, ExternalAppLink, ExternalLink, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, HStack, Highlight, Icon, IconButton, Image, InputAddress, InputEmail, InputFeedback, InputField, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarkerLarge, MapMarkerPosition, MapMarkerSimple, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
11390
|
+
export { ActionCard, Actions, Autocomplete, Avatar, BottomSheet, Button, CardModal, Center, Checkbox, ChoicesElements, CloseIconButton, DatePicker, DialogModal, DocumentPicker, Emoji, ExternalAppLink, ExternalLink, FilePicker, FlatList, Flex, FullscreenModal, GoogleMapsApiKeyProvider, GoogleMapsAutocompleteProvider, HStack, Highlight, Icon, IconButton, Image, ImagePicker, InputAddress, InputEmail, InputFeedback, InputField, InputIcon, InputNumber, InputPassword, InputPhone, InputPressable, InputTag, InputText, KittBreakpointNameEnum, KittBreakpoints, KittBreakpointsMax, KittMapConfigProvider, KittNativeBaseProvider, KittThemeDecorator, KittThemeProvider, Label, ListItem, LoaderIcon, MapMarkerLarge, MapMarkerPosition, MapMarkerSimple, MatchWindowSize, Message, ModalBehaviour, FlatList as NativeOnlyFlatList, NavigationModal, Notification, Overlay, PageLoader, Picker, Pressable, Radio, RadioButtonGroup, ScrollView, DeprecatedSection as Section, SectionList, SegmentedProgressBar, Skeleton, SpinningIcon, Stack, StaticMap, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, StyleWebWrapper, SwitchBreakpoints, Tag, TextArea, TimePicker, Tooltip, Typography, TypographyEmoji, TypographyIcon, TypographyLink, VStack, VerticalSteps, View, createChoicesComponent, createResponsiveStyleFromProp, getStaticMapImageUrl, hex2rgba, matchWindowSize, storyPadding, theme, useBottomSheet, useBreakpointValue, useCurrentBreakpointName, useGetStaticMapImageUrl, useKittMapConfig, useKittTheme, useMatchWindowSize, useOpenExternalLink, useStaticBottomSheet, useStoryBlockColor, useTheme };
|
|
11247
11391
|
//# sourceMappingURL=index-metro.es.android.js.map
|