@ornikar/kitt-universal 27.9.1-canary.b005d681364bb7e16454f696f46b5af55d721a97.0 → 27.9.1-canary.f58d71b1dad7167039ee1fbddbcf093a87688e98.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 +5 -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 +2 -1
- 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 +106 -92
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +106 -92
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +19 -4
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +15 -3
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +19 -4
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +15 -3
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +107 -92
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +15 -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,11 @@ 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
|
+
testID = _ref.testID;
|
|
4481
4488
|
var isLargeTitleMode = mode === 'largeTitle';
|
|
4482
4489
|
var leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
|
|
4483
|
-
width: "kitt.
|
|
4490
|
+
width: "kitt.iconButton.width"
|
|
4484
4491
|
});
|
|
4485
4492
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4486
4493
|
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
@@ -4492,6 +4499,7 @@ function TopNavBar(_ref) {
|
|
|
4492
4499
|
paddingBottom: "kitt.3",
|
|
4493
4500
|
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4494
4501
|
borderColor: "kitt.separator",
|
|
4502
|
+
testID: testID,
|
|
4495
4503
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
4496
4504
|
alignItems: "center",
|
|
4497
4505
|
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
@@ -4508,7 +4516,7 @@ function TopNavBar(_ref) {
|
|
|
4508
4516
|
children: title
|
|
4509
4517
|
}) : null
|
|
4510
4518
|
}) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
|
|
4511
|
-
width: "kitt.
|
|
4519
|
+
width: "kitt.iconButton.width"
|
|
4512
4520
|
})]
|
|
4513
4521
|
}), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
|
|
4514
4522
|
space: "kitt.4",
|
|
@@ -4554,7 +4562,7 @@ function CardModalHeader(props) {
|
|
|
4554
4562
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4555
4563
|
}
|
|
4556
4564
|
|
|
4557
|
-
var _excluded$
|
|
4565
|
+
var _excluded$G = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4558
4566
|
function CardModal(_ref) {
|
|
4559
4567
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4560
4568
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4565,7 +4573,7 @@ function CardModal(_ref) {
|
|
|
4565
4573
|
header = _ref.header,
|
|
4566
4574
|
body = _ref.body,
|
|
4567
4575
|
footer = _ref.footer,
|
|
4568
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4576
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4569
4577
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4570
4578
|
overflow: "hidden",
|
|
4571
4579
|
backgroundColor: backgroundColor,
|
|
@@ -4811,11 +4819,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4811
4819
|
}));
|
|
4812
4820
|
}
|
|
4813
4821
|
|
|
4814
|
-
var _excluded$
|
|
4822
|
+
var _excluded$F = ["direction", "contentContainerStyle"];
|
|
4815
4823
|
function ChoicesContainer(_ref) {
|
|
4816
4824
|
var direction = _ref.direction,
|
|
4817
4825
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4818
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4826
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
4819
4827
|
if (direction === 'row') {
|
|
4820
4828
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4821
4829
|
horizontal: true,
|
|
@@ -5041,13 +5049,13 @@ function DialogModalAnimation(_ref) {
|
|
|
5041
5049
|
});
|
|
5042
5050
|
}
|
|
5043
5051
|
|
|
5044
|
-
var _excluded$
|
|
5052
|
+
var _excluded$E = ["children", "visible", "onClose", "onExited"];
|
|
5045
5053
|
function DialogModalBehaviour(_ref) {
|
|
5046
5054
|
var children = _ref.children,
|
|
5047
5055
|
visible = _ref.visible,
|
|
5048
5056
|
onClose = _ref.onClose,
|
|
5049
5057
|
onExited = _ref.onExited,
|
|
5050
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5058
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
5051
5059
|
var _useState = useState(visible),
|
|
5052
5060
|
_useState2 = _slicedToArray(_useState, 2),
|
|
5053
5061
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -5078,7 +5086,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
5078
5086
|
});
|
|
5079
5087
|
}
|
|
5080
5088
|
|
|
5081
|
-
var _excluded$
|
|
5089
|
+
var _excluded$D = ["stretch"];
|
|
5082
5090
|
function DialogModal(_ref) {
|
|
5083
5091
|
var illustration = _ref.illustration,
|
|
5084
5092
|
title = _ref.title,
|
|
@@ -5118,7 +5126,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
5118
5126
|
function DialogModalButton(_ref2) {
|
|
5119
5127
|
var _ref2$stretch = _ref2.stretch,
|
|
5120
5128
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
5121
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
5129
|
+
props = _objectWithoutProperties(_ref2, _excluded$D);
|
|
5122
5130
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
5123
5131
|
stretch: stretch
|
|
5124
5132
|
}, props));
|
|
@@ -5155,7 +5163,7 @@ function Emoji(_ref) {
|
|
|
5155
5163
|
});
|
|
5156
5164
|
}
|
|
5157
5165
|
|
|
5158
|
-
var _excluded$
|
|
5166
|
+
var _excluded$C = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
5159
5167
|
_excluded2$4 = ["phoneNumber", "children"],
|
|
5160
5168
|
_excluded3$3 = ["phoneNumber", "children"],
|
|
5161
5169
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -5165,7 +5173,7 @@ function ExternalAppLink(_ref) {
|
|
|
5165
5173
|
appValue = _ref.appValue,
|
|
5166
5174
|
onPress = _ref.onPress,
|
|
5167
5175
|
onOpenAppError = _ref.onOpenAppError,
|
|
5168
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5176
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
5169
5177
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
5170
5178
|
var handleOnPress = /*#__PURE__*/function () {
|
|
5171
5179
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -5317,7 +5325,7 @@ function useOpenExternalLink(errorHandler) {
|
|
|
5317
5325
|
}();
|
|
5318
5326
|
}
|
|
5319
5327
|
|
|
5320
|
-
var _excluded$
|
|
5328
|
+
var _excluded$B = ["as", "href", "openLinkBehavior", "onPress", "onOpenLinkError"];
|
|
5321
5329
|
function ExternalLink(_ref) {
|
|
5322
5330
|
var Component = _ref.as,
|
|
5323
5331
|
href = _ref.href,
|
|
@@ -5326,7 +5334,7 @@ function ExternalLink(_ref) {
|
|
|
5326
5334
|
onPress = _ref.onPress,
|
|
5327
5335
|
_ref$onOpenLinkError = _ref.onOpenLinkError,
|
|
5328
5336
|
onOpenLinkError = _ref$onOpenLinkError === void 0 ? console.error : _ref$onOpenLinkError,
|
|
5329
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5337
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
5330
5338
|
var openExternalLink = useOpenExternalLink();
|
|
5331
5339
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5332
5340
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
@@ -5383,7 +5391,7 @@ function InputTextContainer(_ref) {
|
|
|
5383
5391
|
});
|
|
5384
5392
|
}
|
|
5385
5393
|
|
|
5386
|
-
var _excluded$
|
|
5394
|
+
var _excluded$A = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5387
5395
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5388
5396
|
var id = _ref.id,
|
|
5389
5397
|
right = _ref.right;
|
|
@@ -5404,7 +5412,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5404
5412
|
multiline = _ref.multiline,
|
|
5405
5413
|
height = _ref.height,
|
|
5406
5414
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5407
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5415
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5408
5416
|
var theme = useTheme();
|
|
5409
5417
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5410
5418
|
base: 'body-m'
|
|
@@ -5529,12 +5537,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5529
5537
|
});
|
|
5530
5538
|
}
|
|
5531
5539
|
|
|
5532
|
-
var _excluded$
|
|
5540
|
+
var _excluded$z = ["children", "testID"];
|
|
5533
5541
|
function AutocompleteOption(_ref) {
|
|
5534
5542
|
var children = _ref.children,
|
|
5535
5543
|
_ref$testID = _ref.testID,
|
|
5536
5544
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5537
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5545
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5538
5546
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5539
5547
|
paddingX: {
|
|
5540
5548
|
base: 'kitt.2',
|
|
@@ -5547,7 +5555,7 @@ function AutocompleteOption(_ref) {
|
|
|
5547
5555
|
}));
|
|
5548
5556
|
}
|
|
5549
5557
|
|
|
5550
|
-
var _excluded$
|
|
5558
|
+
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
5559
|
_excluded2$3 = ["onClick", "onPress"],
|
|
5552
5560
|
_excluded3$2 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5553
5561
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5587,7 +5595,7 @@ function Autocomplete(_ref) {
|
|
|
5587
5595
|
_ref$zIndex = _ref.zIndex,
|
|
5588
5596
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5589
5597
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5590
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5598
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5591
5599
|
var childrenArray = Children.toArray(_children);
|
|
5592
5600
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5593
5601
|
return {
|
|
@@ -5802,7 +5810,7 @@ function getBorderColor$1(_ref) {
|
|
|
5802
5810
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5803
5811
|
}
|
|
5804
5812
|
|
|
5805
|
-
var _excluded$
|
|
5813
|
+
var _excluded$x = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5806
5814
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5807
5815
|
var checked = _ref.checked,
|
|
5808
5816
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5812,7 +5820,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5812
5820
|
onChange = _ref.onChange,
|
|
5813
5821
|
onBlur = _ref.onBlur,
|
|
5814
5822
|
onFocus = _ref.onFocus,
|
|
5815
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5823
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5816
5824
|
var theme = useTheme();
|
|
5817
5825
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5818
5826
|
hitSlop: hitSlop
|
|
@@ -6130,7 +6138,7 @@ function PartContainer(_ref) {
|
|
|
6130
6138
|
});
|
|
6131
6139
|
}
|
|
6132
6140
|
|
|
6133
|
-
var _excluded$
|
|
6141
|
+
var _excluded$w = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
6134
6142
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6135
6143
|
var id = _ref.id,
|
|
6136
6144
|
value = _ref.value,
|
|
@@ -6148,7 +6156,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6148
6156
|
onBlur = _ref.onBlur,
|
|
6149
6157
|
onFocus = _ref.onFocus,
|
|
6150
6158
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
6151
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
6159
|
+
_objectWithoutProperties(_ref, _excluded$w);
|
|
6152
6160
|
var monthRef = useRef(null);
|
|
6153
6161
|
var yearRef = useRef(null);
|
|
6154
6162
|
var defaultValue = value;
|
|
@@ -6357,7 +6365,7 @@ var PressableDateInputs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6357
6365
|
});
|
|
6358
6366
|
});
|
|
6359
6367
|
|
|
6360
|
-
var _excluded$
|
|
6368
|
+
var _excluded$v = ["onBlur", "onFocus", "pickerDefaultDate", "pickerUITestID", "isDefaultVisible", "value", "onChange"];
|
|
6361
6369
|
var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6362
6370
|
var onBlur = _ref.onBlur,
|
|
6363
6371
|
onFocus = _ref.onFocus,
|
|
@@ -6366,7 +6374,7 @@ var DatePickerAndroid = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6366
6374
|
isDefaultVisible = _ref.isDefaultVisible,
|
|
6367
6375
|
value = _ref.value,
|
|
6368
6376
|
_onChange = _ref.onChange,
|
|
6369
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6377
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6370
6378
|
var _useState = useState(false),
|
|
6371
6379
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6372
6380
|
isFocused = _useState2[0],
|
|
@@ -6442,7 +6450,7 @@ function PlatformDateTimePicker(_ref) {
|
|
|
6442
6450
|
}));
|
|
6443
6451
|
}
|
|
6444
6452
|
|
|
6445
|
-
var _excluded$
|
|
6453
|
+
var _excluded$u = ["title", "isVisible", "value", "validateButtonLabel", "onClose", "onChange"];
|
|
6446
6454
|
function ModalTitle(_ref) {
|
|
6447
6455
|
var children = _ref.children;
|
|
6448
6456
|
return /*#__PURE__*/jsx(CardModal.Header, {
|
|
@@ -6456,7 +6464,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6456
6464
|
validateButtonLabel = _ref2.validateButtonLabel,
|
|
6457
6465
|
onClose = _ref2.onClose,
|
|
6458
6466
|
onChange = _ref2.onChange,
|
|
6459
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6467
|
+
props = _objectWithoutProperties(_ref2, _excluded$u);
|
|
6460
6468
|
var _useState = useState(value),
|
|
6461
6469
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6462
6470
|
currentValue = _useState2[0],
|
|
@@ -6502,7 +6510,7 @@ function ModalPlatformDateTimePicker(_ref2) {
|
|
|
6502
6510
|
});
|
|
6503
6511
|
}
|
|
6504
6512
|
|
|
6505
|
-
var _excluded$
|
|
6513
|
+
var _excluded$t = ["value", "pickerUITestID", "pickerUITitle", "pickerUIValidateButtonLabel", "isDefaultVisible", "pickerDefaultDate", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "onChange", "onFocus", "onBlur"];
|
|
6506
6514
|
var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6507
6515
|
var value = _ref.value,
|
|
6508
6516
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6516,7 +6524,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6516
6524
|
onChange = _ref.onChange,
|
|
6517
6525
|
onFocus = _ref.onFocus,
|
|
6518
6526
|
onBlur = _ref.onBlur,
|
|
6519
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6527
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6520
6528
|
var _useState = useState(isDefaultVisible),
|
|
6521
6529
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6522
6530
|
isPickerUIVisible = _useState2[0],
|
|
@@ -6563,7 +6571,7 @@ var DefaultNativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6563
6571
|
});
|
|
6564
6572
|
});
|
|
6565
6573
|
|
|
6566
|
-
var _excluded$
|
|
6574
|
+
var _excluded$s = ["value", "pickerUITestID", "isDefaultVisible", "pickerDefaultDate", "onChange", "onBlur"];
|
|
6567
6575
|
var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6568
6576
|
var value = _ref.value,
|
|
6569
6577
|
pickerUITestID = _ref.pickerUITestID,
|
|
@@ -6571,7 +6579,7 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6571
6579
|
pickerDefaultDate = _ref.pickerDefaultDate,
|
|
6572
6580
|
onChange = _ref.onChange,
|
|
6573
6581
|
onBlur = _ref.onBlur,
|
|
6574
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6582
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6575
6583
|
if (Platform.OS === 'android') {
|
|
6576
6584
|
return /*#__PURE__*/jsx(DatePickerAndroid, _objectSpread({
|
|
6577
6585
|
ref: ref,
|
|
@@ -6593,14 +6601,14 @@ var NativeUIDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6593
6601
|
}, props));
|
|
6594
6602
|
});
|
|
6595
6603
|
|
|
6596
|
-
var _excluded$
|
|
6604
|
+
var _excluded$r = ["fillMode", "enterKeyHint", "value", "onSubmitEditing"];
|
|
6597
6605
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6598
6606
|
var _ref$fillMode = _ref.fillMode,
|
|
6599
6607
|
fillMode = _ref$fillMode === void 0 ? 'native' : _ref$fillMode,
|
|
6600
6608
|
enterKeyHint = _ref.enterKeyHint,
|
|
6601
6609
|
value = _ref.value,
|
|
6602
6610
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
6603
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6611
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
6604
6612
|
// in apps, final-form can give a string value that will break the component
|
|
6605
6613
|
var currentValue = value || undefined;
|
|
6606
6614
|
if (fillMode === 'keyboard') {
|
|
@@ -6716,10 +6724,10 @@ function ImagePicker(_ref) {
|
|
|
6716
6724
|
});
|
|
6717
6725
|
}
|
|
6718
6726
|
|
|
6719
|
-
var _excluded$
|
|
6727
|
+
var _excluded$q = ["children"];
|
|
6720
6728
|
function ListItemContent(_ref) {
|
|
6721
6729
|
var children = _ref.children,
|
|
6722
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6730
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
6723
6731
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6724
6732
|
alignSelf: "center",
|
|
6725
6733
|
flexBasis: "0%",
|
|
@@ -6730,14 +6738,14 @@ function ListItemContent(_ref) {
|
|
|
6730
6738
|
}));
|
|
6731
6739
|
}
|
|
6732
6740
|
|
|
6733
|
-
var _excluded$
|
|
6741
|
+
var _excluded$p = ["children", "side"],
|
|
6734
6742
|
_excluded2$2 = ["children", "align"];
|
|
6735
6743
|
// Handles the vertical alignment of the side elements of the list item
|
|
6736
6744
|
function ListItemSideContainer(_ref) {
|
|
6737
6745
|
var children = _ref.children,
|
|
6738
6746
|
_ref$side = _ref.side,
|
|
6739
6747
|
side = _ref$side === void 0 ? 'left' : _ref$side,
|
|
6740
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6748
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
6741
6749
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
6742
6750
|
flexDirection: "row",
|
|
6743
6751
|
marginLeft: side === 'right' ? 'kitt.2' : undefined,
|
|
@@ -6758,7 +6766,7 @@ function ListItemSideContent(_ref2) {
|
|
|
6758
6766
|
}));
|
|
6759
6767
|
}
|
|
6760
6768
|
|
|
6761
|
-
var _excluded$
|
|
6769
|
+
var _excluded$o = ["children", "withPadding", "borders", "left", "right", "onPress"];
|
|
6762
6770
|
function ListItem(_ref) {
|
|
6763
6771
|
var children = _ref.children,
|
|
6764
6772
|
withPadding = _ref.withPadding,
|
|
@@ -6766,7 +6774,7 @@ function ListItem(_ref) {
|
|
|
6766
6774
|
left = _ref.left,
|
|
6767
6775
|
right = _ref.right,
|
|
6768
6776
|
onPress = _ref.onPress,
|
|
6769
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6777
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
6770
6778
|
var Wrapper = onPress ? Pressable$2 : Fragment$1;
|
|
6771
6779
|
var wrapperProps = onPress ? _objectSpread({
|
|
6772
6780
|
accessibilityRole: 'button',
|
|
@@ -6799,10 +6807,10 @@ ListItem.Content = ListItemContent;
|
|
|
6799
6807
|
ListItem.SideContent = ListItemSideContent;
|
|
6800
6808
|
ListItem.SideContainer = ListItemSideContainer;
|
|
6801
6809
|
|
|
6802
|
-
var _excluded$
|
|
6810
|
+
var _excluded$n = ["title"];
|
|
6803
6811
|
function BottomSheetActionsItem(_ref) {
|
|
6804
6812
|
var title = _ref.title,
|
|
6805
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6813
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
6806
6814
|
return /*#__PURE__*/jsx(Pressable$2, _objectSpread(_objectSpread({}, props), {}, {
|
|
6807
6815
|
children: /*#__PURE__*/jsx(ListItem, {
|
|
6808
6816
|
withPadding: true,
|
|
@@ -7406,7 +7414,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
7406
7414
|
};
|
|
7407
7415
|
}
|
|
7408
7416
|
|
|
7409
|
-
var _excluded$
|
|
7417
|
+
var _excluded$m = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
7410
7418
|
function InputAddress(_ref) {
|
|
7411
7419
|
var initialValue = _ref.initialValue,
|
|
7412
7420
|
_ref$itemToString = _ref.itemToString,
|
|
@@ -7414,7 +7422,7 @@ function InputAddress(_ref) {
|
|
|
7414
7422
|
errorElement = _ref.errorElement,
|
|
7415
7423
|
emptyResultsElement = _ref.emptyResultsElement,
|
|
7416
7424
|
_onChange = _ref.onChange,
|
|
7417
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7425
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
7418
7426
|
var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
|
|
7419
7427
|
state = _useGoogleMapsAutocom.state,
|
|
7420
7428
|
_onInputChange = _useGoogleMapsAutocom.onInputChange,
|
|
@@ -7511,10 +7519,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
7511
7519
|
}, props));
|
|
7512
7520
|
});
|
|
7513
7521
|
|
|
7514
|
-
var _excluded$
|
|
7522
|
+
var _excluded$l = ["onChange"];
|
|
7515
7523
|
var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7516
7524
|
var onChange = _ref.onChange,
|
|
7517
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7525
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7518
7526
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7519
7527
|
ref: ref
|
|
7520
7528
|
}, props), {}, {
|
|
@@ -7531,11 +7539,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7531
7539
|
}));
|
|
7532
7540
|
});
|
|
7533
7541
|
|
|
7534
|
-
var _excluded$
|
|
7542
|
+
var _excluded$k = ["isPasswordDefaultVisible", "right"];
|
|
7535
7543
|
var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7536
7544
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
7537
7545
|
right = _ref.right,
|
|
7538
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7546
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7539
7547
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
7540
7548
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7541
7549
|
isVisible = _useState2[0],
|
|
@@ -7563,7 +7571,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7563
7571
|
}));
|
|
7564
7572
|
});
|
|
7565
7573
|
|
|
7566
|
-
var _excluded$
|
|
7574
|
+
var _excluded$j = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
|
|
7567
7575
|
function isPhoneNumberValid(number) {
|
|
7568
7576
|
return isValidNumber(number);
|
|
7569
7577
|
}
|
|
@@ -7577,7 +7585,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7577
7585
|
_ref$phoneNumberLengt = _ref.phoneNumberLength,
|
|
7578
7586
|
phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
|
|
7579
7587
|
onChange = _ref.onChange,
|
|
7580
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7588
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7581
7589
|
var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
7582
7590
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
7583
7591
|
ref: ref
|
|
@@ -8014,7 +8022,7 @@ function RadioButton(_ref) {
|
|
|
8014
8022
|
});
|
|
8015
8023
|
}
|
|
8016
8024
|
|
|
8017
|
-
var _excluded$
|
|
8025
|
+
var _excluded$i = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
8018
8026
|
function RadioButtonGroupItem(_ref) {
|
|
8019
8027
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
8020
8028
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -8027,7 +8035,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
8027
8035
|
onFocus = _ref2.onFocus,
|
|
8028
8036
|
onBlur = _ref2.onBlur,
|
|
8029
8037
|
onChange = _ref2.onChange,
|
|
8030
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
8038
|
+
props = _objectWithoutProperties(_ref2, _excluded$i);
|
|
8031
8039
|
var _useState = useState(value),
|
|
8032
8040
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8033
8041
|
currentValue = _useState2[0],
|
|
@@ -8059,12 +8067,12 @@ function RadioButtonGroup(_ref2) {
|
|
|
8059
8067
|
}
|
|
8060
8068
|
RadioButtonGroup.RadioButton = RadioButtonGroupItem;
|
|
8061
8069
|
|
|
8062
|
-
var _excluded$
|
|
8070
|
+
var _excluded$h = ["helper", "limit"];
|
|
8063
8071
|
var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
8064
8072
|
var _props$value, _props$value2;
|
|
8065
8073
|
var helper = _ref.helper,
|
|
8066
8074
|
limit = _ref.limit,
|
|
8067
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8075
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
8068
8076
|
var shouldDisplayLimit = limit && limit > 0;
|
|
8069
8077
|
var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
|
|
8070
8078
|
var limitContainerAnimatedStyle = useAnimatedStyle(function () {
|
|
@@ -8223,7 +8231,7 @@ function ToggleAnimated(_ref) {
|
|
|
8223
8231
|
});
|
|
8224
8232
|
}
|
|
8225
8233
|
|
|
8226
|
-
var _excluded$
|
|
8234
|
+
var _excluded$g = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
8227
8235
|
var getLabelTypographyType = function (size) {
|
|
8228
8236
|
return size === 'medium' ? 'body-m' : 'body-l';
|
|
8229
8237
|
};
|
|
@@ -8245,7 +8253,7 @@ function Toggle(_ref) {
|
|
|
8245
8253
|
value = _ref$value === void 0 ? false : _ref$value,
|
|
8246
8254
|
_ref$onChange = _ref.onChange,
|
|
8247
8255
|
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
8248
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8256
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
8249
8257
|
var theme = useKittTheme();
|
|
8250
8258
|
return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
|
|
8251
8259
|
alignItems: "center"
|
|
@@ -8284,13 +8292,13 @@ function Toggle(_ref) {
|
|
|
8284
8292
|
}));
|
|
8285
8293
|
}
|
|
8286
8294
|
|
|
8287
|
-
var _excluded$
|
|
8295
|
+
var _excluded$f = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
8288
8296
|
function FullscreenModalBody(_ref) {
|
|
8289
8297
|
var children = _ref.children,
|
|
8290
8298
|
shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
|
|
8291
8299
|
style = _ref.style,
|
|
8292
8300
|
shouldHandleTopNotch = _ref.shouldHandleTopNotch,
|
|
8293
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8301
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
8294
8302
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
8295
8303
|
bottom = _useSafeAreaInsets.bottom,
|
|
8296
8304
|
top = _useSafeAreaInsets.top;
|
|
@@ -8310,14 +8318,14 @@ function FullscreenModalBody(_ref) {
|
|
|
8310
8318
|
}));
|
|
8311
8319
|
}
|
|
8312
8320
|
|
|
8313
|
-
var _excluded$
|
|
8321
|
+
var _excluded$e = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
8314
8322
|
function FullscreenModalFooter(_ref) {
|
|
8315
8323
|
var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
|
|
8316
8324
|
shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
|
|
8317
8325
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
8318
8326
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
8319
8327
|
children = _ref.children,
|
|
8320
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8328
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
8321
8329
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
8322
8330
|
bottom = _useSafeAreaInsets.bottom;
|
|
8323
8331
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
@@ -8473,13 +8481,13 @@ function FullscreenModalAnimation(_ref) {
|
|
|
8473
8481
|
});
|
|
8474
8482
|
}
|
|
8475
8483
|
|
|
8476
|
-
var _excluded$
|
|
8484
|
+
var _excluded$d = ["children", "visible", "onClose", "onExited"];
|
|
8477
8485
|
function FullscreenModalBehaviour(_ref) {
|
|
8478
8486
|
var children = _ref.children,
|
|
8479
8487
|
visible = _ref.visible,
|
|
8480
8488
|
onClose = _ref.onClose,
|
|
8481
8489
|
onExited = _ref.onExited,
|
|
8482
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8490
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
8483
8491
|
var _useState = useState(visible),
|
|
8484
8492
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8485
8493
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -8526,11 +8534,11 @@ function FullscreenModalContainer(_ref) {
|
|
|
8526
8534
|
});
|
|
8527
8535
|
}
|
|
8528
8536
|
|
|
8529
|
-
var _excluded$
|
|
8537
|
+
var _excluded$c = ["shouldHandleTopNotch"];
|
|
8530
8538
|
function FullscreenModalHeader(_ref) {
|
|
8531
8539
|
var _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
|
|
8532
8540
|
shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
|
|
8533
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8541
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
8534
8542
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
8535
8543
|
top = _useSafeAreaInsets.top;
|
|
8536
8544
|
return /*#__PURE__*/jsx(View, {
|
|
@@ -9056,7 +9064,7 @@ var getBackgroundColor = function (_ref) {
|
|
|
9056
9064
|
return isSelected || isHovered ? theme.mapMarker.meetingPoint.selected : theme.mapMarker.meetingPoint["default"];
|
|
9057
9065
|
};
|
|
9058
9066
|
|
|
9059
|
-
var _excluded$
|
|
9067
|
+
var _excluded$b = ["onPress", "testID"];
|
|
9060
9068
|
function StaticMapMarker$1(_ref) {
|
|
9061
9069
|
var variant = _ref.variant,
|
|
9062
9070
|
isHovered = _ref.isHovered,
|
|
@@ -9115,7 +9123,7 @@ function StaticMapMarker$1(_ref) {
|
|
|
9115
9123
|
function MapMarker(_ref2) {
|
|
9116
9124
|
var onPress = _ref2.onPress,
|
|
9117
9125
|
testID = _ref2.testID,
|
|
9118
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
9126
|
+
props = _objectWithoutProperties(_ref2, _excluded$b);
|
|
9119
9127
|
return /*#__PURE__*/jsx(Pressable$1, {
|
|
9120
9128
|
testID: testID,
|
|
9121
9129
|
onPress: onPress,
|
|
@@ -10862,6 +10870,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10862
10870
|
}
|
|
10863
10871
|
}
|
|
10864
10872
|
},
|
|
10873
|
+
iconButton: {
|
|
10874
|
+
width: theme.iconButton.width,
|
|
10875
|
+
height: theme.iconButton.height
|
|
10876
|
+
},
|
|
10865
10877
|
pageLoader: {
|
|
10866
10878
|
size: theme.pageLoader.size
|
|
10867
10879
|
},
|
|
@@ -11777,6 +11789,7 @@ function KittNativeBaseProvider(_ref) {
|
|
|
11777
11789
|
});
|
|
11778
11790
|
}
|
|
11779
11791
|
|
|
11792
|
+
var _excluded$a = ["right"];
|
|
11780
11793
|
function NavigationBottomSheet(_ref) {
|
|
11781
11794
|
var children = _ref.children,
|
|
11782
11795
|
hasScrollView = _ref.hasScrollView,
|
|
@@ -11820,7 +11833,9 @@ function NavigationBottomSheet(_ref) {
|
|
|
11820
11833
|
* Web only: display right CloseButton
|
|
11821
11834
|
*/
|
|
11822
11835
|
|
|
11823
|
-
function NavigationBottomSheetHeader(
|
|
11836
|
+
function NavigationBottomSheetHeader(_ref2) {
|
|
11837
|
+
_ref2.right;
|
|
11838
|
+
var props = _objectWithoutProperties(_ref2, _excluded$a);
|
|
11824
11839
|
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
11825
11840
|
}
|
|
11826
11841
|
function NavigationBottomSheetBody(props) {
|