@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
package/dist/index.es.js
CHANGED
|
@@ -1912,6 +1912,11 @@ var icon = {
|
|
|
1912
1912
|
defaultSize: 20
|
|
1913
1913
|
};
|
|
1914
1914
|
|
|
1915
|
+
var iconButton = {
|
|
1916
|
+
width: button.height["default"],
|
|
1917
|
+
height: button.height["default"]
|
|
1918
|
+
};
|
|
1919
|
+
|
|
1915
1920
|
var listItem = {
|
|
1916
1921
|
padding: '12px 16px',
|
|
1917
1922
|
verticalPadding: 12,
|
|
@@ -2642,6 +2647,7 @@ var theme = {
|
|
|
2642
2647
|
forms: forms,
|
|
2643
2648
|
highlight: highlight,
|
|
2644
2649
|
icon: icon,
|
|
2650
|
+
iconButton: iconButton,
|
|
2645
2651
|
buttonBadge: buttonBadge,
|
|
2646
2652
|
listItem: listItem,
|
|
2647
2653
|
pageLoader: pageLoader,
|
|
@@ -2749,7 +2755,7 @@ function ActionCardDisabled(_ref) {
|
|
|
2749
2755
|
});
|
|
2750
2756
|
}
|
|
2751
2757
|
|
|
2752
|
-
var _excluded$
|
|
2758
|
+
var _excluded$S = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2753
2759
|
function ActionCard(_ref) {
|
|
2754
2760
|
var children = _ref.children,
|
|
2755
2761
|
_ref$variant = _ref.variant,
|
|
@@ -2762,7 +2768,7 @@ function ActionCard(_ref) {
|
|
|
2762
2768
|
isHovered = _ref.isHovered,
|
|
2763
2769
|
isPressed = _ref.isPressed,
|
|
2764
2770
|
isFocused = _ref.isFocused,
|
|
2765
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2771
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
2766
2772
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2767
2773
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2768
2774
|
borderRadius: borderRadius,
|
|
@@ -3086,7 +3092,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
|
|
|
3086
3092
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3087
3093
|
};
|
|
3088
3094
|
|
|
3089
|
-
var _excluded$
|
|
3095
|
+
var _excluded$R = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3090
3096
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3091
3097
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3092
3098
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -3210,7 +3216,7 @@ function Typography(_ref2) {
|
|
|
3210
3216
|
} : _ref2$type,
|
|
3211
3217
|
variant = _ref2.variant,
|
|
3212
3218
|
color = _ref2.color,
|
|
3213
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
3219
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$R);
|
|
3214
3220
|
var sx = useSx();
|
|
3215
3221
|
var typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
3216
3222
|
var typographyTypeInContext = useContext(TypographyTypeContext);
|
|
@@ -3352,12 +3358,12 @@ function Icon(_ref) {
|
|
|
3352
3358
|
});
|
|
3353
3359
|
}
|
|
3354
3360
|
|
|
3355
|
-
var _excluded$
|
|
3361
|
+
var _excluded$Q = ["color", "size"],
|
|
3356
3362
|
_excluded2$5 = ["color"];
|
|
3357
3363
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3358
3364
|
var color = _ref.color,
|
|
3359
3365
|
size = _ref.size,
|
|
3360
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3366
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
3361
3367
|
var colorValue = getTypographyColorValue(color);
|
|
3362
3368
|
var sx = useSx();
|
|
3363
3369
|
var _sx = sx({
|
|
@@ -3397,7 +3403,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
|
|
|
3397
3403
|
return "".concat(baseKey, ".default");
|
|
3398
3404
|
};
|
|
3399
3405
|
|
|
3400
|
-
var _excluded$
|
|
3406
|
+
var _excluded$P = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3401
3407
|
function ButtonContentChildren(_ref) {
|
|
3402
3408
|
var type = _ref.type,
|
|
3403
3409
|
icon = _ref.icon,
|
|
@@ -3497,7 +3503,7 @@ function ButtonContent(_ref2) {
|
|
|
3497
3503
|
_ref2.isFocused;
|
|
3498
3504
|
var innerSpacing = _ref2.innerSpacing,
|
|
3499
3505
|
size = _ref2.size,
|
|
3500
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3506
|
+
props = _objectWithoutProperties(_ref2, _excluded$P);
|
|
3501
3507
|
var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3502
3508
|
return /*#__PURE__*/jsx(View, {
|
|
3503
3509
|
_web: {
|
|
@@ -3742,7 +3748,7 @@ function LoaderIcon(_ref) {
|
|
|
3742
3748
|
});
|
|
3743
3749
|
}
|
|
3744
3750
|
|
|
3745
|
-
var _excluded$
|
|
3751
|
+
var _excluded$O = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3746
3752
|
var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3747
3753
|
var as = _ref.as,
|
|
3748
3754
|
onPress = _ref.onPress,
|
|
@@ -3753,7 +3759,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3753
3759
|
base: true,
|
|
3754
3760
|
medium: false
|
|
3755
3761
|
} : _ref$stretch,
|
|
3756
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3762
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
3757
3763
|
var _useState = useState(false),
|
|
3758
3764
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3759
3765
|
isLoading = _useState2[0],
|
|
@@ -3831,7 +3837,7 @@ function ActionsButton(_ref) {
|
|
|
3831
3837
|
}, props));
|
|
3832
3838
|
}
|
|
3833
3839
|
|
|
3834
|
-
var _excluded$
|
|
3840
|
+
var _excluded$N = ["children", "layout", "reversed"];
|
|
3835
3841
|
function getCurrentLayout(layout) {
|
|
3836
3842
|
if (!layout) return {
|
|
3837
3843
|
base: 'stretch',
|
|
@@ -3863,7 +3869,7 @@ function Actions(_ref) {
|
|
|
3863
3869
|
reversed = _ref$reversed === void 0 ? {
|
|
3864
3870
|
base: false
|
|
3865
3871
|
} : _ref$reversed,
|
|
3866
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3872
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
3867
3873
|
var shouldReverse = typeof reversed === 'boolean' ? {
|
|
3868
3874
|
base: !!reversed
|
|
3869
3875
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -3916,7 +3922,7 @@ function getInitials(firstname, lastname) {
|
|
|
3916
3922
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
3917
3923
|
}
|
|
3918
3924
|
|
|
3919
|
-
var _excluded$
|
|
3925
|
+
var _excluded$M = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
3920
3926
|
function AvatarContent(_ref) {
|
|
3921
3927
|
var size = _ref.size,
|
|
3922
3928
|
src = _ref.src,
|
|
@@ -3979,7 +3985,7 @@ function Avatar(_ref2) {
|
|
|
3979
3985
|
height = _ref2.height,
|
|
3980
3986
|
dark = _ref2.dark,
|
|
3981
3987
|
disabled = _ref2.disabled,
|
|
3982
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3988
|
+
props = _objectWithoutProperties(_ref2, _excluded$M);
|
|
3983
3989
|
var currentSize = getCurrentSize({
|
|
3984
3990
|
size: size,
|
|
3985
3991
|
sizeVariant: sizeVariant
|
|
@@ -4017,7 +4023,7 @@ function Avatar(_ref2) {
|
|
|
4017
4023
|
});
|
|
4018
4024
|
}
|
|
4019
4025
|
|
|
4020
|
-
var _excluded$
|
|
4026
|
+
var _excluded$L = ["children", "hasScrollView", "hasBackdrop", "hasHandle", "enableDynamicSizing", "snapPoints"];
|
|
4021
4027
|
function BottomSheetComp(_ref, ref) {
|
|
4022
4028
|
var Content = _ref.children,
|
|
4023
4029
|
_ref$hasScrollView = _ref.hasScrollView,
|
|
@@ -4030,7 +4036,7 @@ function BottomSheetComp(_ref, ref) {
|
|
|
4030
4036
|
enableDynamicSizing = _ref$enableDynamicSiz === void 0 ? true : _ref$enableDynamicSiz,
|
|
4031
4037
|
_ref$snapPoints = _ref.snapPoints,
|
|
4032
4038
|
snapPoints = _ref$snapPoints === void 0 ? ['100%'] : _ref$snapPoints,
|
|
4033
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4039
|
+
rest = _objectWithoutProperties(_ref, _excluded$L);
|
|
4034
4040
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
4035
4041
|
top = _useSafeAreaInsets.top;
|
|
4036
4042
|
var Wrapper = useMemo(function () {
|
|
@@ -4342,13 +4348,13 @@ function CardModalAnimation(_ref) {
|
|
|
4342
4348
|
});
|
|
4343
4349
|
}
|
|
4344
4350
|
|
|
4345
|
-
var _excluded$
|
|
4351
|
+
var _excluded$K = ["children", "visible", "onClose", "onExited"];
|
|
4346
4352
|
function CardModalBehaviour(_ref) {
|
|
4347
4353
|
var children = _ref.children,
|
|
4348
4354
|
visible = _ref.visible,
|
|
4349
4355
|
onClose = _ref.onClose,
|
|
4350
4356
|
onExited = _ref.onExited,
|
|
4351
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4357
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4352
4358
|
var _useState = useState(visible),
|
|
4353
4359
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4354
4360
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4373,12 +4379,12 @@ function CardModalBehaviour(_ref) {
|
|
|
4373
4379
|
});
|
|
4374
4380
|
}
|
|
4375
4381
|
|
|
4376
|
-
var _excluded$
|
|
4382
|
+
var _excluded$J = ["children", "padding"];
|
|
4377
4383
|
function CardModalBody(_ref) {
|
|
4378
4384
|
var children = _ref.children,
|
|
4379
4385
|
_ref$padding = _ref.padding,
|
|
4380
4386
|
padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
|
|
4381
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4387
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4382
4388
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4383
4389
|
showsVerticalScrollIndicator: false,
|
|
4384
4390
|
_contentContainerStyle: {
|
|
@@ -4389,7 +4395,7 @@ function CardModalBody(_ref) {
|
|
|
4389
4395
|
}));
|
|
4390
4396
|
}
|
|
4391
4397
|
|
|
4392
|
-
var _excluded$
|
|
4398
|
+
var _excluded$I = ["children", "padding", "hasSeparator"];
|
|
4393
4399
|
function CardModalFooter(_ref) {
|
|
4394
4400
|
var children = _ref.children,
|
|
4395
4401
|
_ref$padding = _ref.padding,
|
|
@@ -4399,7 +4405,7 @@ function CardModalFooter(_ref) {
|
|
|
4399
4405
|
} : _ref$padding,
|
|
4400
4406
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4401
4407
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4402
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4408
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4403
4409
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4404
4410
|
marginTop: "kitt.2",
|
|
4405
4411
|
padding: padding,
|
|
@@ -4443,7 +4449,7 @@ var getButtonTypeAndVariant = function (iconColor) {
|
|
|
4443
4449
|
}
|
|
4444
4450
|
};
|
|
4445
4451
|
|
|
4446
|
-
var _excluded$
|
|
4452
|
+
var _excluded$H = ["color", "ariaLabel"];
|
|
4447
4453
|
/**
|
|
4448
4454
|
* @deprecated IconButton should only be used as a navigation button
|
|
4449
4455
|
* Other use cases should use a <Button> component with an icon
|
|
@@ -4452,7 +4458,7 @@ function IconButton(_ref) {
|
|
|
4452
4458
|
var _ref$color = _ref.color,
|
|
4453
4459
|
color = _ref$color === void 0 ? 'black' : _ref$color;
|
|
4454
4460
|
_ref.ariaLabel;
|
|
4455
|
-
var props = _objectWithoutProperties(_ref, _excluded$
|
|
4461
|
+
var props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4456
4462
|
var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
|
|
4457
4463
|
legacyColorToType = _getButtonTypeAndVari.type,
|
|
4458
4464
|
legacyColorToVariant = _getButtonTypeAndVari.variant;
|
|
@@ -4477,10 +4483,12 @@ function TopNavBar(_ref) {
|
|
|
4477
4483
|
_ref$mode = _ref.mode,
|
|
4478
4484
|
mode = _ref$mode === void 0 ? 'default' : _ref$mode,
|
|
4479
4485
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4480
|
-
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator
|
|
4486
|
+
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4487
|
+
backgroundColor = _ref.backgroundColor,
|
|
4488
|
+
testID = _ref.testID;
|
|
4481
4489
|
var isLargeTitleMode = mode === 'largeTitle';
|
|
4482
4490
|
var leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
|
|
4483
|
-
width: "kitt.
|
|
4491
|
+
width: "kitt.iconButton.width"
|
|
4484
4492
|
});
|
|
4485
4493
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4486
4494
|
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
@@ -4490,8 +4498,10 @@ function TopNavBar(_ref) {
|
|
|
4490
4498
|
paddingX: "kitt.2",
|
|
4491
4499
|
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
4492
4500
|
paddingBottom: "kitt.3",
|
|
4501
|
+
backgroundColor: backgroundColor,
|
|
4493
4502
|
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4494
4503
|
borderColor: "kitt.separator",
|
|
4504
|
+
testID: testID,
|
|
4495
4505
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
4496
4506
|
alignItems: "center",
|
|
4497
4507
|
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
@@ -4508,7 +4518,7 @@ function TopNavBar(_ref) {
|
|
|
4508
4518
|
children: title
|
|
4509
4519
|
}) : null
|
|
4510
4520
|
}) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
|
|
4511
|
-
width: "kitt.
|
|
4521
|
+
width: "kitt.iconButton.width"
|
|
4512
4522
|
})]
|
|
4513
4523
|
}), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
|
|
4514
4524
|
space: "kitt.4",
|
|
@@ -4554,7 +4564,7 @@ function CardModalHeader(props) {
|
|
|
4554
4564
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4555
4565
|
}
|
|
4556
4566
|
|
|
4557
|
-
var _excluded$
|
|
4567
|
+
var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4558
4568
|
function CardModal(_ref) {
|
|
4559
4569
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4560
4570
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4565,7 +4575,7 @@ function CardModal(_ref) {
|
|
|
4565
4575
|
header = _ref.header,
|
|
4566
4576
|
body = _ref.body,
|
|
4567
4577
|
footer = _ref.footer,
|
|
4568
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4578
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4569
4579
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4570
4580
|
overflow: "hidden",
|
|
4571
4581
|
backgroundColor: backgroundColor,
|
|
@@ -4811,11 +4821,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4811
4821
|
}));
|
|
4812
4822
|
}
|
|
4813
4823
|
|
|
4814
|
-
var _excluded$
|
|
4824
|
+
var _excluded$F = ["direction", "contentContainerStyle"];
|
|
4815
4825
|
function ChoicesContainer(_ref) {
|
|
4816
4826
|
var direction = _ref.direction,
|
|
4817
4827
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4818
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4828
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
4819
4829
|
if (direction === 'row') {
|
|
4820
4830
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4821
4831
|
horizontal: true,
|
|
@@ -5041,13 +5051,13 @@ function DialogModalAnimation(_ref) {
|
|
|
5041
5051
|
});
|
|
5042
5052
|
}
|
|
5043
5053
|
|
|
5044
|
-
var _excluded$
|
|
5054
|
+
var _excluded$E = ["children", "visible", "onClose", "onExited"];
|
|
5045
5055
|
function DialogModalBehaviour(_ref) {
|
|
5046
5056
|
var children = _ref.children,
|
|
5047
5057
|
visible = _ref.visible,
|
|
5048
5058
|
onClose = _ref.onClose,
|
|
5049
5059
|
onExited = _ref.onExited,
|
|
5050
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5060
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
5051
5061
|
var _useState = useState(visible),
|
|
5052
5062
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5053
5063
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -5078,7 +5088,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5078
5088
|
});
|
|
5079
5089
|
}
|
|
5080
5090
|
|
|
5081
|
-
var _excluded$
|
|
5091
|
+
var _excluded$D = ["stretch"];
|
|
5082
5092
|
function DialogModal(_ref) {
|
|
5083
5093
|
var illustration = _ref.illustration,
|
|
5084
5094
|
title = _ref.title,
|
|
@@ -5118,7 +5128,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
5118
5128
|
function DialogModalButton(_ref2) {
|
|
5119
5129
|
var _ref2$stretch = _ref2.stretch,
|
|
5120
5130
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
5121
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
5131
|
+
props = _objectWithoutProperties(_ref2, _excluded$D);
|
|
5122
5132
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5123
5133
|
stretch: stretch
|
|
5124
5134
|
}, props));
|
|
@@ -5155,7 +5165,7 @@ function Emoji(_ref) {
|
|
|
5155
5165
|
});
|
|
5156
5166
|
}
|
|
5157
5167
|
|
|
5158
|
-
var _excluded$
|
|
5168
|
+
var _excluded$C = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5159
5169
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
5160
5170
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
5161
5171
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5165,7 +5175,7 @@ function ExternalAppLink(_ref) {
|
|
|
5165
5175
|
appValue = _ref.appValue,
|
|
5166
5176
|
onPress = _ref.onPress,
|
|
5167
5177
|
onOpenAppError = _ref.onOpenAppError,
|
|
5168
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5178
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5169
5179
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
5170
5180
|
var handleOnPress = /*#__PURE__*/function () {
|
|
5171
5181
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -5317,7 +5327,7 @@ function useOpenExternalLink(errorHandler) {
|
|
|
5317
5327
|
}();
|
|
5318
5328
|
}
|
|
5319
5329
|
|
|
5320
|
-
var _excluded$
|
|
5330
|
+
var _excluded$B = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
5321
5331
|
function ExternalLink(_ref) {
|
|
5322
5332
|
var Component = _ref.as,
|
|
5323
5333
|
href = _ref.href,
|
|
@@ -5326,7 +5336,7 @@ function ExternalLink(_ref) {
|
|
|
5326
5336
|
onPress = _ref.onPress,
|
|
5327
5337
|
_ref$onOpenLinkError = _ref.onOpenLinkError,
|
|
5328
5338
|
onOpenLinkError = _ref$onOpenLinkError === void 0 ? console.error : _ref$onOpenLinkError,
|
|
5329
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5339
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
5330
5340
|
var openExternalLink = useOpenExternalLink();
|
|
5331
5341
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5332
5342
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -5383,7 +5393,7 @@ function InputTextContainer(_ref) {
|
|
|
5383
5393
|
});
|
|
5384
5394
|
}
|
|
5385
5395
|
|
|
5386
|
-
var _excluded$
|
|
5396
|
+
var _excluded$A = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5387
5397
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5388
5398
|
var id = _ref.id,
|
|
5389
5399
|
right = _ref.right;
|
|
@@ -5404,7 +5414,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5404
5414
|
multiline = _ref.multiline,
|
|
5405
5415
|
height = _ref.height,
|
|
5406
5416
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5407
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5417
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5408
5418
|
var theme = useTheme();
|
|
5409
5419
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5410
5420
|
base: 'body-m'
|
|
@@ -5529,12 +5539,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5529
5539
|
});
|
|
5530
5540
|
}
|
|
5531
5541
|
|
|
5532
|
-
var _excluded$
|
|
5542
|
+
var _excluded$z = ["children", "testID"];
|
|
5533
5543
|
function AutocompleteOption(_ref) {
|
|
5534
5544
|
var children = _ref.children,
|
|
5535
5545
|
_ref$testID = _ref.testID,
|
|
5536
5546
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5537
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5547
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5538
5548
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5539
5549
|
paddingX: {
|
|
5540
5550
|
base: 'kitt.2',
|
|
@@ -5547,7 +5557,7 @@ function AutocompleteOption(_ref) {
|
|
|
5547
5557
|
}));
|
|
5548
5558
|
}
|
|
5549
5559
|
|
|
5550
|
-
var _excluded$
|
|
5560
|
+
var _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"],
|
|
5551
5561
|
_excluded2$3 = ["onClick", "onPress"],
|
|
5552
5562
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5553
5563
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5587,7 +5597,7 @@ function Autocomplete(_ref) {
|
|
|
5587
5597
|
_ref$zIndex = _ref.zIndex,
|
|
5588
5598
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5589
5599
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5590
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5600
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5591
5601
|
var childrenArray = Children.toArray(_children);
|
|
5592
5602
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5593
5603
|
return {
|
|
@@ -5802,7 +5812,7 @@ function getBorderColor$1(_ref) {
|
|
|
5802
5812
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5803
5813
|
}
|
|
5804
5814
|
|
|
5805
|
-
var _excluded$
|
|
5815
|
+
var _excluded$x = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5806
5816
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5807
5817
|
var checked = _ref.checked,
|
|
5808
5818
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5812,7 +5822,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5812
5822
|
onChange = _ref.onChange,
|
|
5813
5823
|
onBlur = _ref.onBlur,
|
|
5814
5824
|
onFocus = _ref.onFocus,
|
|
5815
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5825
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5816
5826
|
var theme = useTheme();
|
|
5817
5827
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5818
5828
|
hitSlop: hitSlop
|
|
@@ -6130,7 +6140,7 @@ function PartContainer(_ref) {
|
|
|
6130
6140
|
});
|
|
6131
6141
|
}
|
|
6132
6142
|
|
|
6133
|
-
var _excluded$
|
|
6143
|
+
var _excluded$w = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6134
6144
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6135
6145
|
var id = _ref.id,
|
|
6136
6146
|
value = _ref.value,
|
|
@@ -6148,7 +6158,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6148
6158
|
onBlur = _ref.onBlur,
|
|
6149
6159
|
onFocus = _ref.onFocus,
|
|
6150
6160
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
6151
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6161
|
+
_objectWithoutProperties(_ref, _excluded$w);
|
|
6152
6162
|
var monthRef = useRef(null);
|
|
6153
6163
|
var yearRef = useRef(null);
|
|
6154
6164
|
var defaultValue = value;
|
|
@@ -6357,7 +6367,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6357
6367
|
});
|
|
6358
6368
|
});
|
|
6359
6369
|
|
|
6360
|
-
var _excluded$
|
|
6370
|
+
var _excluded$v = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
6361
6371
|
var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6362
6372
|
var onBlur = _ref.onBlur,
|
|
6363
6373
|
onFocus = _ref.onFocus,
|
|
@@ -6366,7 +6376,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6366
6376
|
isDefaultVisible = _ref.isDefaultVisible,
|
|
6367
6377
|
value = _ref.value,
|
|
6368
6378
|
_onChange = _ref.onChange,
|
|
6369
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6379
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6370
6380
|
var _useState = useState(false),
|
|
6371
6381
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6372
6382
|
isFocused = _useState2[0],
|
|
@@ -6442,7 +6452,7 @@ function PlatformDateTimePicker(_ref) {
|
|
|
6442
6452
|
}));
|
|
6443
6453
|
}
|
|
6444
6454
|
|
|
6445
|
-
var _excluded$
|
|
6455
|
+
var _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
6446
6456
|
function ModalTitle(_ref) {
|
|
6447
6457
|
var children = _ref.children;
|
|
6448
6458
|
return /*#__PURE__*/jsx(CardModal.Header, {
|
|
@@ -6456,7 +6466,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6456
6466
|
validateButtonLabel = _ref2.validateButtonLabel,
|
|
6457
6467
|
onClose = _ref2.onClose,
|
|
6458
6468
|
onChange = _ref2.onChange,
|
|
6459
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6469
|
+
props = _objectWithoutProperties(_ref2, _excluded$u);
|
|
6460
6470
|
var _useState = useState(value),
|
|
6461
6471
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6462
6472
|
currentValue = _useState2[0],
|
|
@@ -6502,7 +6512,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6502
6512
|
});
|
|
6503
6513
|
}
|
|
6504
6514
|
|
|
6505
|
-
var _excluded$
|
|
6515
|
+
var _excluded$t = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
6506
6516
|
var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6507
6517
|
var value = _ref.value,
|
|
6508
6518
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6516,7 +6526,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6516
6526
|
onChange = _ref.onChange,
|
|
6517
6527
|
onFocus = _ref.onFocus,
|
|
6518
6528
|
onBlur = _ref.onBlur,
|
|
6519
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6529
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6520
6530
|
var _useState = useState(isDefaultVisible),
|
|
6521
6531
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6522
6532
|
isPickerUIVisible = _useState2[0],
|
|
@@ -6563,7 +6573,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6563
6573
|
});
|
|
6564
6574
|
});
|
|
6565
6575
|
|
|
6566
|
-
var _excluded$
|
|
6576
|
+
var _excluded$s = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
6567
6577
|
var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6568
6578
|
var value = _ref.value,
|
|
6569
6579
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6571,7 +6581,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6571
6581
|
pickerDefaultDate = _ref.pickerDefaultDate,
|
|
6572
6582
|
onChange = _ref.onChange,
|
|
6573
6583
|
onBlur = _ref.onBlur,
|
|
6574
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6584
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6575
6585
|
if (Platform.OS === 'android') {
|
|
6576
6586
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
6577
6587
|
ref: ref,
|
|
@@ -6593,14 +6603,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6593
6603
|
}, props));
|
|
6594
6604
|
});
|
|
6595
6605
|
|
|
6596
|
-
var _excluded$
|
|
6606
|
+
var _excluded$r = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
6597
6607
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6598
6608
|
var _ref$fillMode = _ref.fillMode,
|
|
6599
6609
|
fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
|
|
6600
6610
|
enterKeyHint = _ref.enterKeyHint,
|
|
6601
6611
|
value = _ref.value,
|
|
6602
6612
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
6603
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6613
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
6604
6614
|
// in apps, final-form can give a string value that will break the component
|
|
6605
6615
|
var currentValue = value || undefined;
|
|
6606
6616
|
if (fillMode === 'keyboard') {
|
|
@@ -6716,10 +6726,10 @@ function ImagePicker(_ref) {
|
|
|
6716
6726
|
});
|
|
6717
6727
|
}
|
|
6718
6728
|
|
|
6719
|
-
var _excluded$
|
|
6729
|
+
var _excluded$q = ["children"];
|
|
6720
6730
|
function ListItemContent(_ref) {
|
|
6721
6731
|
var children = _ref.children,
|
|
6722
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6732
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
6723
6733
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6724
6734
|
alignSelf: "center",
|
|
6725
6735
|
flexBasis: "0%",
|
|
@@ -6730,14 +6740,14 @@ function ListItemContent(_ref) {
|
|
|
6730
6740
|
}));
|
|
6731
6741
|
}
|
|
6732
6742
|
|
|
6733
|
-
var _excluded$
|
|
6743
|
+
var _excluded$p = ["children", "side"],
|
|
6734
6744
|
_excluded2$2 = ["children", "align"];
|
|
6735
6745
|
// Handles the vertical alignment of the side elements of the list item
|
|
6736
6746
|
function ListItemSideContainer(_ref) {
|
|
6737
6747
|
var children = _ref.children,
|
|
6738
6748
|
_ref$side = _ref.side,
|
|
6739
6749
|
side = _ref$side === void 0 ? 'left' : _ref$side,
|
|
6740
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6750
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
6741
6751
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6742
6752
|
flexDirection: "row",
|
|
6743
6753
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -6758,7 +6768,7 @@ function ListItemSideContent(_ref2) {
|
|
|
6758
6768
|
}));
|
|
6759
6769
|
}
|
|
6760
6770
|
|
|
6761
|
-
var _excluded$
|
|
6771
|
+
var _excluded$o = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
6762
6772
|
function ListItem(_ref) {
|
|
6763
6773
|
var children = _ref.children,
|
|
6764
6774
|
withPadding = _ref.withPadding,
|
|
@@ -6766,7 +6776,7 @@ function ListItem(_ref) {
|
|
|
6766
6776
|
left = _ref.left,
|
|
6767
6777
|
right = _ref.right,
|
|
6768
6778
|
onPress = _ref.onPress,
|
|
6769
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6779
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
6770
6780
|
var Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
6771
6781
|
var wrapperProps = onPress ? _objectSpread({
|
|
6772
6782
|
accessibilityRole: 'button',
|
|
@@ -6799,10 +6809,10 @@ ListItem.Content = ListItemContent;
|
|
|
6799
6809
|
ListItem.SideContent = ListItemSideContent;
|
|
6800
6810
|
ListItem.SideContainer = ListItemSideContainer;
|
|
6801
6811
|
|
|
6802
|
-
var _excluded$
|
|
6812
|
+
var _excluded$n = ["title"];
|
|
6803
6813
|
function BottomSheetActionsItem(_ref) {
|
|
6804
6814
|
var title = _ref.title,
|
|
6805
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6815
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
6806
6816
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
6807
6817
|
children: /*#__PURE__*/jsx(ListItem, {
|
|
6808
6818
|
withPadding: true,
|
|
@@ -7406,7 +7416,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7406
7416
|
};
|
|
7407
7417
|
}
|
|
7408
7418
|
|
|
7409
|
-
var _excluded$
|
|
7419
|
+
var _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
7410
7420
|
function InputAddress(_ref) {
|
|
7411
7421
|
var initialValue = _ref.initialValue,
|
|
7412
7422
|
_ref$itemToString = _ref.itemToString,
|
|
@@ -7414,7 +7424,7 @@ function InputAddress(_ref) {
|
|
|
7414
7424
|
errorElement = _ref.errorElement,
|
|
7415
7425
|
emptyResultsElement = _ref.emptyResultsElement,
|
|
7416
7426
|
_onChange = _ref.onChange,
|
|
7417
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7427
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
7418
7428
|
var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
|
|
7419
7429
|
state = _useGoogleMapsAutocom.state,
|
|
7420
7430
|
_onInputChange = _useGoogleMapsAutocom.onInputChange,
|
|
@@ -7511,10 +7521,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
7511
7521
|
}, props));
|
|
7512
7522
|
});
|
|
7513
7523
|
|
|
7514
|
-
var _excluded$
|
|
7524
|
+
var _excluded$l = ["onChange"];
|
|
7515
7525
|
var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7516
7526
|
var onChange = _ref.onChange,
|
|
7517
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7527
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7518
7528
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7519
7529
|
ref: ref
|
|
7520
7530
|
}, props), {}, {
|
|
@@ -7531,11 +7541,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7531
7541
|
}));
|
|
7532
7542
|
});
|
|
7533
7543
|
|
|
7534
|
-
var _excluded$
|
|
7544
|
+
var _excluded$k = ["isPasswordDefaultVisible", "right"];
|
|
7535
7545
|
var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7536
7546
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
7537
7547
|
right = _ref.right,
|
|
7538
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7548
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7539
7549
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
7540
7550
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7541
7551
|
isVisible = _useState2[0],
|
|
@@ -7563,7 +7573,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7563
7573
|
}));
|
|
7564
7574
|
});
|
|
7565
7575
|
|
|
7566
|
-
var _excluded$
|
|
7576
|
+
var _excluded$j = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
|
|
7567
7577
|
function isPhoneNumberValid(number) {
|
|
7568
7578
|
return isValidNumber(number);
|
|
7569
7579
|
}
|
|
@@ -7577,7 +7587,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7577
7587
|
_ref$phoneNumberLengt = _ref.phoneNumberLength,
|
|
7578
7588
|
phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
|
|
7579
7589
|
onChange = _ref.onChange,
|
|
7580
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7590
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7581
7591
|
var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
7582
7592
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7583
7593
|
ref: ref
|
|
@@ -8014,7 +8024,7 @@ function RadioButton(_ref) {
|
|
|
8014
8024
|
});
|
|
8015
8025
|
}
|
|
8016
8026
|
|
|
8017
|
-
var _excluded$
|
|
8027
|
+
var _excluded$i = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
8018
8028
|
function RadioButtonGroupItem(_ref) {
|
|
8019
8029
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
8020
8030
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -8027,7 +8037,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
8027
8037
|
onFocus = _ref2.onFocus,
|
|
8028
8038
|
onBlur = _ref2.onBlur,
|
|
8029
8039
|
onChange = _ref2.onChange,
|
|
8030
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
8040
|
+
props = _objectWithoutProperties(_ref2, _excluded$i);
|
|
8031
8041
|
var _useState = useState(value),
|
|
8032
8042
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8033
8043
|
currentValue = _useState2[0],
|
|
@@ -8059,12 +8069,12 @@ function RadioButtonGroup(_ref2) {
|
|
|
8059
8069
|
}
|
|
8060
8070
|
RadioButtonGroup.RadioButton = RadioButtonGroupItem;
|
|
8061
8071
|
|
|
8062
|
-
var _excluded$
|
|
8072
|
+
var _excluded$h = ["helper", "limit"];
|
|
8063
8073
|
var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8064
8074
|
var _props$value, _props$value2;
|
|
8065
8075
|
var helper = _ref.helper,
|
|
8066
8076
|
limit = _ref.limit,
|
|
8067
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8077
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
8068
8078
|
var shouldDisplayLimit = limit && limit > 0;
|
|
8069
8079
|
var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
|
|
8070
8080
|
var limitContainerAnimatedStyle = useAnimatedStyle(function () {
|
|
@@ -8223,7 +8233,7 @@ function ToggleAnimated(_ref) {
|
|
|
8223
8233
|
});
|
|
8224
8234
|
}
|
|
8225
8235
|
|
|
8226
|
-
var _excluded$
|
|
8236
|
+
var _excluded$g = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
8227
8237
|
var getLabelTypographyType = function (size) {
|
|
8228
8238
|
return size === 'medium' ? 'body-m' : 'body-l';
|
|
8229
8239
|
};
|
|
@@ -8245,7 +8255,7 @@ function Toggle(_ref) {
|
|
|
8245
8255
|
value = _ref$value === void 0 ? false : _ref$value,
|
|
8246
8256
|
_ref$onChange = _ref.onChange,
|
|
8247
8257
|
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
8248
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8258
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
8249
8259
|
var theme = useKittTheme();
|
|
8250
8260
|
return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
|
|
8251
8261
|
alignItems: "center"
|
|
@@ -8284,13 +8294,13 @@ function Toggle(_ref) {
|
|
|
8284
8294
|
}));
|
|
8285
8295
|
}
|
|
8286
8296
|
|
|
8287
|
-
var _excluded$
|
|
8297
|
+
var _excluded$f = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
8288
8298
|
function FullscreenModalBody(_ref) {
|
|
8289
8299
|
var children = _ref.children,
|
|
8290
8300
|
shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
|
|
8291
8301
|
style = _ref.style,
|
|
8292
8302
|
shouldHandleTopNotch = _ref.shouldHandleTopNotch,
|
|
8293
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8303
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
8294
8304
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
8295
8305
|
bottom = _useSafeAreaInsets.bottom,
|
|
8296
8306
|
top = _useSafeAreaInsets.top;
|
|
@@ -8310,14 +8320,14 @@ function FullscreenModalBody(_ref) {
|
|
|
8310
8320
|
}));
|
|
8311
8321
|
}
|
|
8312
8322
|
|
|
8313
|
-
var _excluded$
|
|
8323
|
+
var _excluded$e = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
8314
8324
|
function FullscreenModalFooter(_ref) {
|
|
8315
8325
|
var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
|
|
8316
8326
|
shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
|
|
8317
8327
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
8318
8328
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
8319
8329
|
children = _ref.children,
|
|
8320
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8330
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
8321
8331
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
8322
8332
|
bottom = _useSafeAreaInsets.bottom;
|
|
8323
8333
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
@@ -8473,13 +8483,13 @@ function FullscreenModalAnimation(_ref) {
|
|
|
8473
8483
|
});
|
|
8474
8484
|
}
|
|
8475
8485
|
|
|
8476
|
-
var _excluded$
|
|
8486
|
+
var _excluded$d = ["children", "visible", "onClose", "onExited"];
|
|
8477
8487
|
function FullscreenModalBehaviour(_ref) {
|
|
8478
8488
|
var children = _ref.children,
|
|
8479
8489
|
visible = _ref.visible,
|
|
8480
8490
|
onClose = _ref.onClose,
|
|
8481
8491
|
onExited = _ref.onExited,
|
|
8482
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8492
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
8483
8493
|
var _useState = useState(visible),
|
|
8484
8494
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8485
8495
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -8526,11 +8536,11 @@ function FullscreenModalContainer(_ref) {
|
|
|
8526
8536
|
});
|
|
8527
8537
|
}
|
|
8528
8538
|
|
|
8529
|
-
var _excluded$
|
|
8539
|
+
var _excluded$c = ["shouldHandleTopNotch"];
|
|
8530
8540
|
function FullscreenModalHeader(_ref) {
|
|
8531
8541
|
var _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
|
|
8532
8542
|
shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
|
|
8533
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8543
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
8534
8544
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
8535
8545
|
top = _useSafeAreaInsets.top;
|
|
8536
8546
|
return /*#__PURE__*/jsx(View, {
|
|
@@ -9056,7 +9066,7 @@ var getBackgroundColor = function (_ref) {
|
|
|
9056
9066
|
return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint["default"];
|
|
9057
9067
|
};
|
|
9058
9068
|
|
|
9059
|
-
var _excluded$
|
|
9069
|
+
var _excluded$b = ["onPress", "testID"];
|
|
9060
9070
|
function StaticMapMarker$1(_ref) {
|
|
9061
9071
|
var variant = _ref.variant,
|
|
9062
9072
|
isHovered = _ref.isHovered,
|
|
@@ -9115,7 +9125,7 @@ function StaticMapMarker$1(_ref) {
|
|
|
9115
9125
|
function MapMarker(_ref2) {
|
|
9116
9126
|
var onPress = _ref2.onPress,
|
|
9117
9127
|
testID = _ref2.testID,
|
|
9118
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
9128
|
+
props = _objectWithoutProperties(_ref2, _excluded$b);
|
|
9119
9129
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
9120
9130
|
testID: testID,
|
|
9121
9131
|
onPress: onPress,
|
|
@@ -10862,6 +10872,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10862
10872
|
}
|
|
10863
10873
|
}
|
|
10864
10874
|
},
|
|
10875
|
+
iconButton: {
|
|
10876
|
+
width: theme.iconButton.width,
|
|
10877
|
+
height: theme.iconButton.height
|
|
10878
|
+
},
|
|
10865
10879
|
pageLoader: {
|
|
10866
10880
|
size: theme.pageLoader.size
|
|
10867
10881
|
},
|
|
@@ -11777,6 +11791,7 @@ function KittNativeBaseProvider(_ref) {
|
|
|
11777
11791
|
});
|
|
11778
11792
|
}
|
|
11779
11793
|
|
|
11794
|
+
var _excluded$a = ["right"];
|
|
11780
11795
|
function NavigationBottomSheet(_ref) {
|
|
11781
11796
|
var children = _ref.children,
|
|
11782
11797
|
hasScrollView = _ref.hasScrollView,
|
|
@@ -11820,7 +11835,9 @@ function NavigationBottomSheet(_ref) {
|
|
|
11820
11835
|
* Web only: display right CloseButton
|
|
11821
11836
|
*/
|
|
11822
11837
|
|
|
11823
|
-
function NavigationBottomSheetHeader(
|
|
11838
|
+
function NavigationBottomSheetHeader(_ref2) {
|
|
11839
|
+
_ref2.right;
|
|
11840
|
+
var props = _objectWithoutProperties(_ref2, _excluded$a);
|
|
11824
11841
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
11825
11842
|
}
|
|
11826
11843
|
function NavigationBottomSheetBody(props) {
|