@ornikar/kitt-universal 27.9.1-canary.b005d681364bb7e16454f696f46b5af55d721a97.0 → 27.9.1-canary.f2c8ce09203150f3f2cb65aacb7c85ea25435b9f.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 +6 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +2 -3
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
- package/dist/definitions/TopNavBar/TopNavBar.d.ts +4 -2
- package/dist/definitions/TopNavBar/TopNavBar.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +8 -14
- 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/iconButton.d.ts +6 -0
- package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -0
- package/dist/index-metro.es.android.js +108 -92
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +108 -92
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +21 -4
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +17 -3
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +21 -4
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +17 -3
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +109 -92
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +17 -3
- 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/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1897,6 +1897,11 @@ const icon = {
|
|
|
1897
1897
|
defaultSize: 20
|
|
1898
1898
|
};
|
|
1899
1899
|
|
|
1900
|
+
const iconButton = {
|
|
1901
|
+
width: button.height.default,
|
|
1902
|
+
height: button.height.default
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1900
1905
|
const listItem = {
|
|
1901
1906
|
padding: '12px 16px',
|
|
1902
1907
|
verticalPadding: 12,
|
|
@@ -2625,6 +2630,7 @@ const theme = {
|
|
|
2625
2630
|
forms,
|
|
2626
2631
|
highlight,
|
|
2627
2632
|
icon,
|
|
2633
|
+
iconButton,
|
|
2628
2634
|
buttonBadge,
|
|
2629
2635
|
listItem,
|
|
2630
2636
|
pageLoader,
|
|
@@ -2733,7 +2739,7 @@ function ActionCardDisabled({
|
|
|
2733
2739
|
});
|
|
2734
2740
|
}
|
|
2735
2741
|
|
|
2736
|
-
const _excluded$
|
|
2742
|
+
const _excluded$S = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2737
2743
|
function ActionCard(_ref) {
|
|
2738
2744
|
let {
|
|
2739
2745
|
children,
|
|
@@ -2745,7 +2751,7 @@ function ActionCard(_ref) {
|
|
|
2745
2751
|
isPressed,
|
|
2746
2752
|
isFocused
|
|
2747
2753
|
} = _ref,
|
|
2748
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2754
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
2749
2755
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2750
2756
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2751
2757
|
borderRadius: borderRadius,
|
|
@@ -3054,7 +3060,7 @@ const getTypographyTypeWithAncestorValue = (type, typographyTypeInContext) => {
|
|
|
3054
3060
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3055
3061
|
};
|
|
3056
3062
|
|
|
3057
|
-
const _excluded$
|
|
3063
|
+
const _excluded$R = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3058
3064
|
const TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3059
3065
|
const TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3060
3066
|
const TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -3181,7 +3187,7 @@ function Typography(_ref) {
|
|
|
3181
3187
|
variant,
|
|
3182
3188
|
color
|
|
3183
3189
|
} = _ref,
|
|
3184
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
3190
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$R);
|
|
3185
3191
|
const sx = useSx();
|
|
3186
3192
|
const typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
3187
3193
|
const typographyTypeInContext = useContext(TypographyTypeContext);
|
|
@@ -3322,14 +3328,14 @@ function Icon({
|
|
|
3322
3328
|
});
|
|
3323
3329
|
}
|
|
3324
3330
|
|
|
3325
|
-
const _excluded$
|
|
3331
|
+
const _excluded$Q = ["color", "size"],
|
|
3326
3332
|
_excluded2$5 = ["color"];
|
|
3327
3333
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3328
3334
|
let {
|
|
3329
3335
|
color,
|
|
3330
3336
|
size
|
|
3331
3337
|
} = _ref,
|
|
3332
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3338
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
3333
3339
|
const colorValue = getTypographyColorValue(color);
|
|
3334
3340
|
const sx = useSx();
|
|
3335
3341
|
const {
|
|
@@ -3372,7 +3378,7 @@ const getButtonTextColorByType = (type, variant, isHovered, isPressed, isDisable
|
|
|
3372
3378
|
return `${baseKey}.default`;
|
|
3373
3379
|
};
|
|
3374
3380
|
|
|
3375
|
-
const _excluded$
|
|
3381
|
+
const _excluded$P = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3376
3382
|
function ButtonContentChildren({
|
|
3377
3383
|
type,
|
|
3378
3384
|
icon,
|
|
@@ -3472,7 +3478,7 @@ function ButtonContent(_ref) {
|
|
|
3472
3478
|
innerSpacing,
|
|
3473
3479
|
size
|
|
3474
3480
|
} = _ref,
|
|
3475
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3481
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
3476
3482
|
const color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3477
3483
|
return /*#__PURE__*/jsx(View, {
|
|
3478
3484
|
_web: {
|
|
@@ -3720,7 +3726,7 @@ function LoaderIcon({
|
|
|
3720
3726
|
});
|
|
3721
3727
|
}
|
|
3722
3728
|
|
|
3723
|
-
const _excluded$
|
|
3729
|
+
const _excluded$O = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3724
3730
|
const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
3725
3731
|
let {
|
|
3726
3732
|
as,
|
|
@@ -3732,7 +3738,7 @@ const ActionsItem = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3732
3738
|
medium: false
|
|
3733
3739
|
}
|
|
3734
3740
|
} = _ref,
|
|
3735
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3741
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
3736
3742
|
const [isLoading, setIsLoading] = useState(false);
|
|
3737
3743
|
const mountedRef = useRef(false);
|
|
3738
3744
|
// securing the loading state with a ref to avoid user action between rerenders
|
|
@@ -3783,7 +3789,7 @@ function ActionsButton(_ref) {
|
|
|
3783
3789
|
}, props));
|
|
3784
3790
|
}
|
|
3785
3791
|
|
|
3786
|
-
const _excluded$
|
|
3792
|
+
const _excluded$N = ["children", "layout", "reversed"];
|
|
3787
3793
|
function getCurrentLayout(layout) {
|
|
3788
3794
|
if (!layout) return {
|
|
3789
3795
|
base: 'stretch',
|
|
@@ -3816,7 +3822,7 @@ function Actions(_ref) {
|
|
|
3816
3822
|
base: false
|
|
3817
3823
|
}
|
|
3818
3824
|
} = _ref,
|
|
3819
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3825
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
3820
3826
|
const shouldReverse = typeof reversed === 'boolean' ? {
|
|
3821
3827
|
base: !!reversed
|
|
3822
3828
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -3871,7 +3877,7 @@ function getInitials(firstname, lastname) {
|
|
|
3871
3877
|
return `${firstname[0]}${lastname[0]}`.toUpperCase();
|
|
3872
3878
|
}
|
|
3873
3879
|
|
|
3874
|
-
const _excluded$
|
|
3880
|
+
const _excluded$M = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
3875
3881
|
function AvatarContent({
|
|
3876
3882
|
size,
|
|
3877
3883
|
src,
|
|
@@ -3937,7 +3943,7 @@ function Avatar(_ref) {
|
|
|
3937
3943
|
dark,
|
|
3938
3944
|
disabled
|
|
3939
3945
|
} = _ref,
|
|
3940
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3946
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
3941
3947
|
const currentSize = getCurrentSize({
|
|
3942
3948
|
size,
|
|
3943
3949
|
sizeVariant
|
|
@@ -3975,7 +3981,7 @@ function Avatar(_ref) {
|
|
|
3975
3981
|
});
|
|
3976
3982
|
}
|
|
3977
3983
|
|
|
3978
|
-
const _excluded$
|
|
3984
|
+
const _excluded$L = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
3979
3985
|
function BottomSheetComp(_ref, ref) {
|
|
3980
3986
|
let {
|
|
3981
3987
|
children: Content,
|
|
@@ -3985,7 +3991,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
3985
3991
|
enableDynamicSizing = true,
|
|
3986
3992
|
snapPoints = ['100%']
|
|
3987
3993
|
} = _ref,
|
|
3988
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
3994
|
+
rest = _objectWithoutProperties(_ref, _excluded$L);
|
|
3989
3995
|
const {
|
|
3990
3996
|
top
|
|
3991
3997
|
} = useSafeAreaInsets();
|
|
@@ -4296,7 +4302,7 @@ function CardModalAnimation({
|
|
|
4296
4302
|
});
|
|
4297
4303
|
}
|
|
4298
4304
|
|
|
4299
|
-
const _excluded$
|
|
4305
|
+
const _excluded$K = ["children", "visible", "onClose", "onExited"];
|
|
4300
4306
|
function CardModalBehaviour(_ref) {
|
|
4301
4307
|
let {
|
|
4302
4308
|
children,
|
|
@@ -4304,7 +4310,7 @@ function CardModalBehaviour(_ref) {
|
|
|
4304
4310
|
onClose,
|
|
4305
4311
|
onExited
|
|
4306
4312
|
} = _ref,
|
|
4307
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4313
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4308
4314
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
4309
4315
|
useEffect(() => {
|
|
4310
4316
|
if (visible === true) {
|
|
@@ -4326,13 +4332,13 @@ function CardModalBehaviour(_ref) {
|
|
|
4326
4332
|
});
|
|
4327
4333
|
}
|
|
4328
4334
|
|
|
4329
|
-
const _excluded$
|
|
4335
|
+
const _excluded$J = ["children", "padding"];
|
|
4330
4336
|
function CardModalBody(_ref) {
|
|
4331
4337
|
let {
|
|
4332
4338
|
children,
|
|
4333
4339
|
padding = 'kitt.4'
|
|
4334
4340
|
} = _ref,
|
|
4335
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4341
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4336
4342
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4337
4343
|
showsVerticalScrollIndicator: false,
|
|
4338
4344
|
_contentContainerStyle: {
|
|
@@ -4343,7 +4349,7 @@ function CardModalBody(_ref) {
|
|
|
4343
4349
|
}));
|
|
4344
4350
|
}
|
|
4345
4351
|
|
|
4346
|
-
const _excluded$
|
|
4352
|
+
const _excluded$I = ["children", "padding", "hasSeparator"];
|
|
4347
4353
|
function CardModalFooter(_ref) {
|
|
4348
4354
|
let {
|
|
4349
4355
|
children,
|
|
@@ -4353,7 +4359,7 @@ function CardModalFooter(_ref) {
|
|
|
4353
4359
|
},
|
|
4354
4360
|
hasSeparator = true
|
|
4355
4361
|
} = _ref,
|
|
4356
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4362
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4357
4363
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4358
4364
|
marginTop: "kitt.2",
|
|
4359
4365
|
padding: padding,
|
|
@@ -4397,7 +4403,7 @@ const getButtonTypeAndVariant = iconColor => {
|
|
|
4397
4403
|
}
|
|
4398
4404
|
};
|
|
4399
4405
|
|
|
4400
|
-
const _excluded$
|
|
4406
|
+
const _excluded$H = ["color", "ariaLabel"];
|
|
4401
4407
|
/**
|
|
4402
4408
|
* @deprecated IconButton should only be used as a navigation button
|
|
4403
4409
|
* Other use cases should use a <Button> component with an icon
|
|
@@ -4407,7 +4413,7 @@ function IconButton(_ref) {
|
|
|
4407
4413
|
color = 'black',
|
|
4408
4414
|
ariaLabel
|
|
4409
4415
|
} = _ref,
|
|
4410
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4416
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4411
4417
|
const {
|
|
4412
4418
|
type: legacyColorToType,
|
|
4413
4419
|
variant: legacyColorToVariant
|
|
@@ -4430,11 +4436,13 @@ function TopNavBar({
|
|
|
4430
4436
|
titleAlign = 'center',
|
|
4431
4437
|
stickers,
|
|
4432
4438
|
mode = 'default',
|
|
4433
|
-
hasSeparator = true
|
|
4439
|
+
hasSeparator = true,
|
|
4440
|
+
backgroundColor,
|
|
4441
|
+
testID
|
|
4434
4442
|
}) {
|
|
4435
4443
|
const isLargeTitleMode = mode === 'largeTitle';
|
|
4436
4444
|
const leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
|
|
4437
|
-
width: "kitt.
|
|
4445
|
+
width: "kitt.iconButton.width"
|
|
4438
4446
|
});
|
|
4439
4447
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4440
4448
|
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
@@ -4444,8 +4452,10 @@ function TopNavBar({
|
|
|
4444
4452
|
paddingX: "kitt.2",
|
|
4445
4453
|
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
4446
4454
|
paddingBottom: "kitt.3",
|
|
4455
|
+
backgroundColor: backgroundColor,
|
|
4447
4456
|
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4448
4457
|
borderColor: "kitt.separator",
|
|
4458
|
+
testID: testID,
|
|
4449
4459
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
4450
4460
|
alignItems: "center",
|
|
4451
4461
|
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
@@ -4462,7 +4472,7 @@ function TopNavBar({
|
|
|
4462
4472
|
children: title
|
|
4463
4473
|
}) : null
|
|
4464
4474
|
}) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
|
|
4465
|
-
width: "kitt.
|
|
4475
|
+
width: "kitt.iconButton.width"
|
|
4466
4476
|
})]
|
|
4467
4477
|
}), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
|
|
4468
4478
|
space: "kitt.4",
|
|
@@ -4505,7 +4515,7 @@ function CardModalHeader(props) {
|
|
|
4505
4515
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4506
4516
|
}
|
|
4507
4517
|
|
|
4508
|
-
const _excluded$
|
|
4518
|
+
const _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4509
4519
|
function CardModal(_ref) {
|
|
4510
4520
|
let {
|
|
4511
4521
|
backgroundColor = 'kitt.uiBackgroundLight',
|
|
@@ -4516,7 +4526,7 @@ function CardModal(_ref) {
|
|
|
4516
4526
|
body,
|
|
4517
4527
|
footer
|
|
4518
4528
|
} = _ref,
|
|
4519
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4529
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4520
4530
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4521
4531
|
overflow: "hidden",
|
|
4522
4532
|
backgroundColor: backgroundColor,
|
|
@@ -4770,13 +4780,13 @@ function ChoiceItemContainer({
|
|
|
4770
4780
|
}));
|
|
4771
4781
|
}
|
|
4772
4782
|
|
|
4773
|
-
const _excluded$
|
|
4783
|
+
const _excluded$F = ["direction", "contentContainerStyle"];
|
|
4774
4784
|
function ChoicesContainer(_ref) {
|
|
4775
4785
|
let {
|
|
4776
4786
|
direction,
|
|
4777
4787
|
contentContainerStyle
|
|
4778
4788
|
} = _ref,
|
|
4779
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4789
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
4780
4790
|
if (direction === 'row') {
|
|
4781
4791
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4782
4792
|
horizontal: true,
|
|
@@ -5002,7 +5012,7 @@ function DialogModalAnimation({
|
|
|
5002
5012
|
});
|
|
5003
5013
|
}
|
|
5004
5014
|
|
|
5005
|
-
const _excluded$
|
|
5015
|
+
const _excluded$E = ["children", "visible", "onClose", "onExited"];
|
|
5006
5016
|
function DialogModalBehaviour(_ref) {
|
|
5007
5017
|
let {
|
|
5008
5018
|
children,
|
|
@@ -5010,7 +5020,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5010
5020
|
onClose,
|
|
5011
5021
|
onExited
|
|
5012
5022
|
} = _ref,
|
|
5013
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5023
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
5014
5024
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
5015
5025
|
useEffect(() => {
|
|
5016
5026
|
if (visible === true) {
|
|
@@ -5038,7 +5048,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5038
5048
|
});
|
|
5039
5049
|
}
|
|
5040
5050
|
|
|
5041
|
-
const _excluded$
|
|
5051
|
+
const _excluded$D = ["stretch"];
|
|
5042
5052
|
function DialogModal({
|
|
5043
5053
|
illustration,
|
|
5044
5054
|
title,
|
|
@@ -5080,7 +5090,7 @@ function DialogModalButton(_ref) {
|
|
|
5080
5090
|
let {
|
|
5081
5091
|
stretch = true
|
|
5082
5092
|
} = _ref,
|
|
5083
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5093
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
5084
5094
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5085
5095
|
stretch: stretch
|
|
5086
5096
|
}, props));
|
|
@@ -5114,7 +5124,7 @@ function Emoji({
|
|
|
5114
5124
|
});
|
|
5115
5125
|
}
|
|
5116
5126
|
|
|
5117
|
-
const _excluded$
|
|
5127
|
+
const _excluded$C = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5118
5128
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
5119
5129
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
5120
5130
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5126,7 +5136,7 @@ function ExternalAppLink(_ref) {
|
|
|
5126
5136
|
onPress,
|
|
5127
5137
|
onOpenAppError
|
|
5128
5138
|
} = _ref,
|
|
5129
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5139
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5130
5140
|
const href = `${appScheme}:${appValue}`;
|
|
5131
5141
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({
|
|
5132
5142
|
href: href
|
|
@@ -5220,7 +5230,7 @@ function useOpenExternalLink(errorHandler) {
|
|
|
5220
5230
|
};
|
|
5221
5231
|
}
|
|
5222
5232
|
|
|
5223
|
-
const _excluded$
|
|
5233
|
+
const _excluded$B = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
5224
5234
|
function ExternalLink(_ref) {
|
|
5225
5235
|
let {
|
|
5226
5236
|
as: Component,
|
|
@@ -5230,7 +5240,7 @@ function ExternalLink(_ref) {
|
|
|
5230
5240
|
// eslint-disable-next-line no-console
|
|
5231
5241
|
onOpenLinkError = console.error
|
|
5232
5242
|
} = _ref,
|
|
5233
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5243
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
5234
5244
|
const openExternalLink = useOpenExternalLink();
|
|
5235
5245
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5236
5246
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -5289,7 +5299,7 @@ function InputTextContainer({
|
|
|
5289
5299
|
});
|
|
5290
5300
|
}
|
|
5291
5301
|
|
|
5292
|
-
const _excluded$
|
|
5302
|
+
const _excluded$A = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5293
5303
|
const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5294
5304
|
let {
|
|
5295
5305
|
id,
|
|
@@ -5306,7 +5316,7 @@ const InputText = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5306
5316
|
height,
|
|
5307
5317
|
onSubmitEditing
|
|
5308
5318
|
} = _ref,
|
|
5309
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5319
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5310
5320
|
const theme = useTheme();
|
|
5311
5321
|
const fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5312
5322
|
base: 'body-m'
|
|
@@ -5431,13 +5441,13 @@ function AutocompleteItemsListContainer({
|
|
|
5431
5441
|
});
|
|
5432
5442
|
}
|
|
5433
5443
|
|
|
5434
|
-
const _excluded$
|
|
5444
|
+
const _excluded$z = ["children", "testID"];
|
|
5435
5445
|
function AutocompleteOption(_ref) {
|
|
5436
5446
|
let {
|
|
5437
5447
|
children,
|
|
5438
5448
|
testID = 'kitt.Autocomplete.option'
|
|
5439
5449
|
} = _ref,
|
|
5440
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5450
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5441
5451
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5442
5452
|
paddingX: {
|
|
5443
5453
|
base: 'kitt.2',
|
|
@@ -5450,7 +5460,7 @@ function AutocompleteOption(_ref) {
|
|
|
5450
5460
|
}));
|
|
5451
5461
|
}
|
|
5452
5462
|
|
|
5453
|
-
const _excluded$
|
|
5463
|
+
const _excluded$y = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
|
|
5454
5464
|
_excluded2$3 = ["onClick", "onPress"],
|
|
5455
5465
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5456
5466
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5492,7 +5502,7 @@ function Autocomplete(_ref) {
|
|
|
5492
5502
|
zIndex = 1000,
|
|
5493
5503
|
maxItemContainerHeight
|
|
5494
5504
|
} = _ref,
|
|
5495
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5505
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5496
5506
|
const childrenArray = Children.toArray(children);
|
|
5497
5507
|
const items = childrenArray.filter(isReactElement).map(child => ({
|
|
5498
5508
|
child,
|
|
@@ -5713,7 +5723,7 @@ function getBorderColor$1({
|
|
|
5713
5723
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5714
5724
|
}
|
|
5715
5725
|
|
|
5716
|
-
const _excluded$
|
|
5726
|
+
const _excluded$x = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5717
5727
|
const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
5718
5728
|
let {
|
|
5719
5729
|
checked,
|
|
@@ -5724,7 +5734,7 @@ const Checkbox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
5724
5734
|
onBlur,
|
|
5725
5735
|
onFocus
|
|
5726
5736
|
} = _ref,
|
|
5727
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5737
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5728
5738
|
const theme = useTheme();
|
|
5729
5739
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5730
5740
|
hitSlop: hitSlop
|
|
@@ -6053,7 +6063,7 @@ function PartContainer({
|
|
|
6053
6063
|
});
|
|
6054
6064
|
}
|
|
6055
6065
|
|
|
6056
|
-
const _excluded$
|
|
6066
|
+
const _excluded$w = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6057
6067
|
const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6058
6068
|
let {
|
|
6059
6069
|
id,
|
|
@@ -6073,7 +6083,7 @@ const KeyboardDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6073
6083
|
onFocus,
|
|
6074
6084
|
onSubmitEditing
|
|
6075
6085
|
} = _ref;
|
|
6076
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6086
|
+
_objectWithoutProperties(_ref, _excluded$w);
|
|
6077
6087
|
const monthRef = useRef(null);
|
|
6078
6088
|
const yearRef = useRef(null);
|
|
6079
6089
|
const defaultValue = value;
|
|
@@ -6274,7 +6284,7 @@ const PressableDateInputs = /*#__PURE__*/forwardRef(({
|
|
|
6274
6284
|
});
|
|
6275
6285
|
});
|
|
6276
6286
|
|
|
6277
|
-
const _excluded$
|
|
6287
|
+
const _excluded$v = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
6278
6288
|
const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6279
6289
|
let {
|
|
6280
6290
|
onBlur,
|
|
@@ -6285,7 +6295,7 @@ const DatePickerAndroid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6285
6295
|
value,
|
|
6286
6296
|
onChange
|
|
6287
6297
|
} = _ref,
|
|
6288
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6298
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6289
6299
|
const [isFocused, setIsFocused] = useState(false);
|
|
6290
6300
|
const [currentValue, setCurrentValue] = useState(value);
|
|
6291
6301
|
const handleClose = () => {
|
|
@@ -6355,7 +6365,7 @@ function PlatformDateTimePicker({
|
|
|
6355
6365
|
}));
|
|
6356
6366
|
}
|
|
6357
6367
|
|
|
6358
|
-
const _excluded$
|
|
6368
|
+
const _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
6359
6369
|
function ModalTitle({
|
|
6360
6370
|
children
|
|
6361
6371
|
}) {
|
|
@@ -6372,7 +6382,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
6372
6382
|
onClose,
|
|
6373
6383
|
onChange
|
|
6374
6384
|
} = _ref,
|
|
6375
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6385
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
6376
6386
|
const [currentValue, setCurrentValue] = useState(value);
|
|
6377
6387
|
|
|
6378
6388
|
// Prevent unsynced value between the modal and its parent state
|
|
@@ -6415,7 +6425,7 @@ function ModalPlatformDateTimePicker(_ref) {
|
|
|
6415
6425
|
});
|
|
6416
6426
|
}
|
|
6417
6427
|
|
|
6418
|
-
const _excluded$
|
|
6428
|
+
const _excluded$t = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
6419
6429
|
const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6420
6430
|
let {
|
|
6421
6431
|
value,
|
|
@@ -6431,7 +6441,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6431
6441
|
onFocus,
|
|
6432
6442
|
onBlur
|
|
6433
6443
|
} = _ref,
|
|
6434
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6444
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6435
6445
|
const [isPickerUIVisible, setIsPickerUIVisible] = useState(isDefaultVisible);
|
|
6436
6446
|
const [isFocused, setIsFocused] = useState(false);
|
|
6437
6447
|
const [currentValue, setCurrentValue] = useState(value);
|
|
@@ -6469,7 +6479,7 @@ const DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6469
6479
|
});
|
|
6470
6480
|
});
|
|
6471
6481
|
|
|
6472
|
-
const _excluded$
|
|
6482
|
+
const _excluded$s = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
6473
6483
|
const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6474
6484
|
let {
|
|
6475
6485
|
value,
|
|
@@ -6479,7 +6489,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6479
6489
|
onChange,
|
|
6480
6490
|
onBlur
|
|
6481
6491
|
} = _ref,
|
|
6482
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6492
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6483
6493
|
if (Platform.OS === 'android') {
|
|
6484
6494
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
6485
6495
|
ref: ref,
|
|
@@ -6501,7 +6511,7 @@ const NativeUIDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6501
6511
|
}, props));
|
|
6502
6512
|
});
|
|
6503
6513
|
|
|
6504
|
-
const _excluded$
|
|
6514
|
+
const _excluded$r = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
6505
6515
|
const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
6506
6516
|
let {
|
|
6507
6517
|
fillMode = 'native',
|
|
@@ -6509,7 +6519,7 @@ const DatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
6509
6519
|
value,
|
|
6510
6520
|
onSubmitEditing
|
|
6511
6521
|
} = _ref,
|
|
6512
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6522
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
6513
6523
|
// in apps, final-form can give a string value that will break the component
|
|
6514
6524
|
const currentValue = value || undefined;
|
|
6515
6525
|
if (fillMode === 'keyboard') {
|
|
@@ -6581,12 +6591,12 @@ function ImagePicker({
|
|
|
6581
6591
|
});
|
|
6582
6592
|
}
|
|
6583
6593
|
|
|
6584
|
-
const _excluded$
|
|
6594
|
+
const _excluded$q = ["children"];
|
|
6585
6595
|
function ListItemContent(_ref) {
|
|
6586
6596
|
let {
|
|
6587
6597
|
children
|
|
6588
6598
|
} = _ref,
|
|
6589
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6599
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
6590
6600
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6591
6601
|
alignSelf: "center",
|
|
6592
6602
|
flexBasis: "0%",
|
|
@@ -6597,7 +6607,7 @@ function ListItemContent(_ref) {
|
|
|
6597
6607
|
}));
|
|
6598
6608
|
}
|
|
6599
6609
|
|
|
6600
|
-
const _excluded$
|
|
6610
|
+
const _excluded$p = ["children", "side"],
|
|
6601
6611
|
_excluded2$2 = ["children", "align"];
|
|
6602
6612
|
// Handles the vertical alignment of the side elements of the list item
|
|
6603
6613
|
function ListItemSideContainer(_ref) {
|
|
@@ -6605,7 +6615,7 @@ function ListItemSideContainer(_ref) {
|
|
|
6605
6615
|
children,
|
|
6606
6616
|
side = 'left'
|
|
6607
6617
|
} = _ref,
|
|
6608
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6618
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
6609
6619
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6610
6620
|
flexDirection: "row",
|
|
6611
6621
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -6627,7 +6637,7 @@ function ListItemSideContent(_ref2) {
|
|
|
6627
6637
|
}));
|
|
6628
6638
|
}
|
|
6629
6639
|
|
|
6630
|
-
const _excluded$
|
|
6640
|
+
const _excluded$o = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
6631
6641
|
function ListItem(_ref) {
|
|
6632
6642
|
let {
|
|
6633
6643
|
children,
|
|
@@ -6637,7 +6647,7 @@ function ListItem(_ref) {
|
|
|
6637
6647
|
right,
|
|
6638
6648
|
onPress
|
|
6639
6649
|
} = _ref,
|
|
6640
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6650
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
6641
6651
|
const Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
6642
6652
|
const wrapperProps = onPress ? _objectSpread({
|
|
6643
6653
|
accessibilityRole: 'button',
|
|
@@ -6670,12 +6680,12 @@ ListItem.Content = ListItemContent;
|
|
|
6670
6680
|
ListItem.SideContent = ListItemSideContent;
|
|
6671
6681
|
ListItem.SideContainer = ListItemSideContainer;
|
|
6672
6682
|
|
|
6673
|
-
const _excluded$
|
|
6683
|
+
const _excluded$n = ["title"];
|
|
6674
6684
|
function BottomSheetActionsItem(_ref) {
|
|
6675
6685
|
let {
|
|
6676
6686
|
title
|
|
6677
6687
|
} = _ref,
|
|
6678
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6688
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
6679
6689
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
6680
6690
|
children: /*#__PURE__*/jsx(ListItem, {
|
|
6681
6691
|
withPadding: true,
|
|
@@ -7171,7 +7181,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7171
7181
|
};
|
|
7172
7182
|
}
|
|
7173
7183
|
|
|
7174
|
-
const _excluded$
|
|
7184
|
+
const _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
7175
7185
|
function InputAddress(_ref) {
|
|
7176
7186
|
let {
|
|
7177
7187
|
initialValue,
|
|
@@ -7180,7 +7190,7 @@ function InputAddress(_ref) {
|
|
|
7180
7190
|
emptyResultsElement,
|
|
7181
7191
|
onChange
|
|
7182
7192
|
} = _ref,
|
|
7183
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7193
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
7184
7194
|
const {
|
|
7185
7195
|
state,
|
|
7186
7196
|
onInputChange,
|
|
@@ -7276,12 +7286,12 @@ const InputIban = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7276
7286
|
}, props));
|
|
7277
7287
|
});
|
|
7278
7288
|
|
|
7279
|
-
const _excluded$
|
|
7289
|
+
const _excluded$l = ["onChange"];
|
|
7280
7290
|
const InputNumber = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
7281
7291
|
let {
|
|
7282
7292
|
onChange
|
|
7283
7293
|
} = _ref,
|
|
7284
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7294
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7285
7295
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7286
7296
|
ref: ref
|
|
7287
7297
|
}, props), {}, {
|
|
@@ -7298,13 +7308,13 @@ const InputNumber = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
7298
7308
|
}));
|
|
7299
7309
|
});
|
|
7300
7310
|
|
|
7301
|
-
const _excluded$
|
|
7311
|
+
const _excluded$k = ["isPasswordDefaultVisible", "right"];
|
|
7302
7312
|
const InputPassword = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
7303
7313
|
let {
|
|
7304
7314
|
isPasswordDefaultVisible,
|
|
7305
7315
|
right
|
|
7306
7316
|
} = _ref,
|
|
7307
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7317
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7308
7318
|
const [isVisible, setIsVisible] = useState(Boolean(isPasswordDefaultVisible));
|
|
7309
7319
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7310
7320
|
ref: ref
|
|
@@ -7325,7 +7335,7 @@ const InputPassword = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
7325
7335
|
}));
|
|
7326
7336
|
});
|
|
7327
7337
|
|
|
7328
|
-
const _excluded$
|
|
7338
|
+
const _excluded$j = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
|
|
7329
7339
|
function isPhoneNumberValid(number) {
|
|
7330
7340
|
return isValidNumber(number);
|
|
7331
7341
|
}
|
|
@@ -7339,7 +7349,7 @@ const InputPhone = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
7339
7349
|
phoneNumberLength = 10,
|
|
7340
7350
|
onChange
|
|
7341
7351
|
} = _ref,
|
|
7342
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7352
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7343
7353
|
const currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
7344
7354
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7345
7355
|
ref: ref
|
|
@@ -7791,7 +7801,7 @@ function RadioButton({
|
|
|
7791
7801
|
});
|
|
7792
7802
|
}
|
|
7793
7803
|
|
|
7794
|
-
const _excluded$
|
|
7804
|
+
const _excluded$i = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
7795
7805
|
function RadioButtonGroupItem(_ref) {
|
|
7796
7806
|
let props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
7797
7807
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -7806,7 +7816,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
7806
7816
|
onBlur,
|
|
7807
7817
|
onChange
|
|
7808
7818
|
} = _ref2,
|
|
7809
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7819
|
+
props = _objectWithoutProperties(_ref2, _excluded$i);
|
|
7810
7820
|
const [currentValue, setCurrentValue] = useState(value);
|
|
7811
7821
|
const handleChange = newValue => {
|
|
7812
7822
|
if (disabled) return;
|
|
@@ -7835,14 +7845,14 @@ function RadioButtonGroup(_ref2) {
|
|
|
7835
7845
|
}
|
|
7836
7846
|
RadioButtonGroup.RadioButton = RadioButtonGroupItem;
|
|
7837
7847
|
|
|
7838
|
-
const _excluded$
|
|
7848
|
+
const _excluded$h = ["helper", "limit"];
|
|
7839
7849
|
const TextArea = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
7840
7850
|
var _props$value, _props$value2;
|
|
7841
7851
|
let {
|
|
7842
7852
|
helper,
|
|
7843
7853
|
limit
|
|
7844
7854
|
} = _ref,
|
|
7845
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7855
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
7846
7856
|
const shouldDisplayLimit = limit && limit > 0;
|
|
7847
7857
|
const isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
|
|
7848
7858
|
const limitContainerAnimatedStyle = useAnimatedStyle(() => ({
|
|
@@ -7998,7 +8008,7 @@ function ToggleAnimated({
|
|
|
7998
8008
|
});
|
|
7999
8009
|
}
|
|
8000
8010
|
|
|
8001
|
-
const _excluded$
|
|
8011
|
+
const _excluded$g = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
8002
8012
|
const getLabelTypographyType = size => {
|
|
8003
8013
|
return size === 'medium' ? 'body-m' : 'body-l';
|
|
8004
8014
|
};
|
|
@@ -8014,7 +8024,7 @@ function Toggle(_ref) {
|
|
|
8014
8024
|
value = false,
|
|
8015
8025
|
onChange = () => {}
|
|
8016
8026
|
} = _ref,
|
|
8017
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8027
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
8018
8028
|
const theme = useKittTheme();
|
|
8019
8029
|
return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
|
|
8020
8030
|
alignItems: "center"
|
|
@@ -8052,7 +8062,7 @@ function Toggle(_ref) {
|
|
|
8052
8062
|
}));
|
|
8053
8063
|
}
|
|
8054
8064
|
|
|
8055
|
-
const _excluded$
|
|
8065
|
+
const _excluded$f = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
8056
8066
|
function FullscreenModalBody(_ref) {
|
|
8057
8067
|
let {
|
|
8058
8068
|
children,
|
|
@@ -8060,7 +8070,7 @@ function FullscreenModalBody(_ref) {
|
|
|
8060
8070
|
style,
|
|
8061
8071
|
shouldHandleTopNotch
|
|
8062
8072
|
} = _ref,
|
|
8063
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8073
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
8064
8074
|
const {
|
|
8065
8075
|
bottom,
|
|
8066
8076
|
top
|
|
@@ -8088,14 +8098,14 @@ function FullscreenModalBody(_ref) {
|
|
|
8088
8098
|
}));
|
|
8089
8099
|
}
|
|
8090
8100
|
|
|
8091
|
-
const _excluded$
|
|
8101
|
+
const _excluded$e = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
8092
8102
|
function FullscreenModalFooter(_ref) {
|
|
8093
8103
|
let {
|
|
8094
8104
|
shouldHandleBottomNotch = true,
|
|
8095
8105
|
hasSeparator = true,
|
|
8096
8106
|
children
|
|
8097
8107
|
} = _ref,
|
|
8098
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8108
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
8099
8109
|
const {
|
|
8100
8110
|
bottom
|
|
8101
8111
|
} = useSafeAreaInsets();
|
|
@@ -8256,7 +8266,7 @@ function FullscreenModalAnimation({
|
|
|
8256
8266
|
});
|
|
8257
8267
|
}
|
|
8258
8268
|
|
|
8259
|
-
const _excluded$
|
|
8269
|
+
const _excluded$d = ["children", "visible", "onClose", "onExited"];
|
|
8260
8270
|
function FullscreenModalBehaviour(_ref) {
|
|
8261
8271
|
let {
|
|
8262
8272
|
children,
|
|
@@ -8264,7 +8274,7 @@ function FullscreenModalBehaviour(_ref) {
|
|
|
8264
8274
|
onClose,
|
|
8265
8275
|
onExited
|
|
8266
8276
|
} = _ref,
|
|
8267
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8277
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
8268
8278
|
const [isModalBehaviourVisible, setIsModalBehaviourVisible] = useState(visible);
|
|
8269
8279
|
useEffect(() => {
|
|
8270
8280
|
if (visible === true) {
|
|
@@ -8309,12 +8319,12 @@ function FullscreenModalContainer({
|
|
|
8309
8319
|
});
|
|
8310
8320
|
}
|
|
8311
8321
|
|
|
8312
|
-
const _excluded$
|
|
8322
|
+
const _excluded$c = ["shouldHandleTopNotch"];
|
|
8313
8323
|
function FullscreenModalHeader(_ref) {
|
|
8314
8324
|
let {
|
|
8315
8325
|
shouldHandleTopNotch = true
|
|
8316
8326
|
} = _ref,
|
|
8317
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8327
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
8318
8328
|
const {
|
|
8319
8329
|
top
|
|
8320
8330
|
} = useSafeAreaInsets();
|
|
@@ -8829,7 +8839,7 @@ const getBackgroundColor = ({
|
|
|
8829
8839
|
return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint.default;
|
|
8830
8840
|
};
|
|
8831
8841
|
|
|
8832
|
-
const _excluded$
|
|
8842
|
+
const _excluded$b = ["onPress", "testID"];
|
|
8833
8843
|
function StaticMapMarker$1({
|
|
8834
8844
|
variant,
|
|
8835
8845
|
isHovered,
|
|
@@ -8892,7 +8902,7 @@ function MapMarker(_ref) {
|
|
|
8892
8902
|
onPress,
|
|
8893
8903
|
testID
|
|
8894
8904
|
} = _ref,
|
|
8895
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8905
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
8896
8906
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
8897
8907
|
testID: testID,
|
|
8898
8908
|
onPress: onPress,
|
|
@@ -10637,6 +10647,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10637
10647
|
}
|
|
10638
10648
|
}
|
|
10639
10649
|
},
|
|
10650
|
+
iconButton: {
|
|
10651
|
+
width: theme.iconButton.width,
|
|
10652
|
+
height: theme.iconButton.height
|
|
10653
|
+
},
|
|
10640
10654
|
pageLoader: {
|
|
10641
10655
|
size: theme.pageLoader.size
|
|
10642
10656
|
},
|
|
@@ -11549,6 +11563,7 @@ function KittNativeBaseProvider({
|
|
|
11549
11563
|
});
|
|
11550
11564
|
}
|
|
11551
11565
|
|
|
11566
|
+
const _excluded$a = ["right"];
|
|
11552
11567
|
function NavigationBottomSheet({
|
|
11553
11568
|
children,
|
|
11554
11569
|
hasScrollView,
|
|
@@ -11593,7 +11608,8 @@ function NavigationBottomSheet({
|
|
|
11593
11608
|
* Web only: display right CloseButton
|
|
11594
11609
|
*/
|
|
11595
11610
|
|
|
11596
|
-
function NavigationBottomSheetHeader(
|
|
11611
|
+
function NavigationBottomSheetHeader(_ref) {
|
|
11612
|
+
let props = _objectWithoutProperties(_ref, _excluded$a);
|
|
11597
11613
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
11598
11614
|
}
|
|
11599
11615
|
function NavigationBottomSheetBody(props) {
|