@ornikar/kitt-universal 27.9.0 → 27.9.1-canary.4b911192ae095bb2eb65643367ed285b3f849cd8.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 +13 -0
- package/dist/definitions/CardModal/CardModalBody.d.ts +1 -1
- package/dist/definitions/CardModal/CardModalBody.d.ts.map +1 -1
- package/dist/definitions/CardModal/CardModalHeader.d.ts +3 -17
- package/dist/definitions/CardModal/CardModalHeader.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/Header.d.ts +3 -18
- package/dist/definitions/FullscreenModal/Header.d.ts.map +1 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +6 -7
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts +1 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.web.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.d.ts.map +1 -1
- package/dist/definitions/TopNavBar/TopNavBar.d.ts +1 -1
- package/dist/definitions/TopNavBar/TopNavBar.d.ts.map +1 -1
- package/dist/definitions/forms/DatePicker/components/NativeUIDatePicker/ModalPlatformDateTimePicker.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +14 -12
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +0 -1
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts +1 -1
- package/dist/definitions/themes/late-ocean/fullscreenModal.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +153 -285
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +153 -285
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +151 -275
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +142 -261
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +152 -276
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +143 -262
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +159 -291
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +219 -345
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +2 -8
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +2 -8
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +2 -8
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +2 -8
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +2 -8
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +2 -8
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +2 -8
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +2 -8
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts +0 -6
- package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +0 -1
package/dist/index.es.web.js
CHANGED
|
@@ -10,7 +10,7 @@ import _extends from '@babel/runtime/helpers/extends';
|
|
|
10
10
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
11
11
|
import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
|
|
12
12
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
13
|
-
import { SpinnerGapRegularIcon, UserRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon,
|
|
13
|
+
import { SpinnerGapRegularIcon, UserRegularIcon, XRegularIcon, ArrowLeftRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon } from '@ornikar/kitt-icons/phosphor';
|
|
14
14
|
import { createPortal } from 'react-dom';
|
|
15
15
|
import { CSSTransition } from 'react-transition-group';
|
|
16
16
|
import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
|
|
@@ -1816,12 +1816,12 @@ var fullscreenModal = {
|
|
|
1816
1816
|
header: {
|
|
1817
1817
|
height: 56
|
|
1818
1818
|
},
|
|
1819
|
-
|
|
1819
|
+
horizontalPadding: 16,
|
|
1820
1820
|
footer: {
|
|
1821
1821
|
verticalPadding: 12
|
|
1822
1822
|
},
|
|
1823
1823
|
body: {
|
|
1824
|
-
verticalPadding:
|
|
1824
|
+
verticalPadding: 16
|
|
1825
1825
|
},
|
|
1826
1826
|
animation: {
|
|
1827
1827
|
overlay: {
|
|
@@ -1908,11 +1908,6 @@ var icon = {
|
|
|
1908
1908
|
defaultSize: 20
|
|
1909
1909
|
};
|
|
1910
1910
|
|
|
1911
|
-
var iconButton = {
|
|
1912
|
-
width: button.height.medium,
|
|
1913
|
-
height: button.height.medium
|
|
1914
|
-
};
|
|
1915
|
-
|
|
1916
1911
|
var listItem = {
|
|
1917
1912
|
padding: '12px 16px',
|
|
1918
1913
|
verticalPadding: 12,
|
|
@@ -2644,7 +2639,6 @@ var theme = {
|
|
|
2644
2639
|
highlight: highlight,
|
|
2645
2640
|
icon: icon,
|
|
2646
2641
|
buttonBadge: buttonBadge,
|
|
2647
|
-
iconButton: iconButton,
|
|
2648
2642
|
listItem: listItem,
|
|
2649
2643
|
pageLoader: pageLoader,
|
|
2650
2644
|
picker: picker,
|
|
@@ -2751,7 +2745,7 @@ function ActionCardDisabled(_ref) {
|
|
|
2751
2745
|
});
|
|
2752
2746
|
}
|
|
2753
2747
|
|
|
2754
|
-
var _excluded$
|
|
2748
|
+
var _excluded$Q = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2755
2749
|
function ActionCard(_ref) {
|
|
2756
2750
|
var children = _ref.children,
|
|
2757
2751
|
_ref$variant = _ref.variant,
|
|
@@ -2764,7 +2758,7 @@ function ActionCard(_ref) {
|
|
|
2764
2758
|
isHovered = _ref.isHovered,
|
|
2765
2759
|
isPressed = _ref.isPressed,
|
|
2766
2760
|
isFocused = _ref.isFocused,
|
|
2767
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2761
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
2768
2762
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2769
2763
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2770
2764
|
borderRadius: borderRadius,
|
|
@@ -3096,7 +3090,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
|
|
|
3096
3090
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3097
3091
|
};
|
|
3098
3092
|
|
|
3099
|
-
var _excluded$
|
|
3093
|
+
var _excluded$P = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3100
3094
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3101
3095
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3102
3096
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -3220,7 +3214,7 @@ function Typography(_ref2) {
|
|
|
3220
3214
|
} : _ref2$type,
|
|
3221
3215
|
variant = _ref2.variant,
|
|
3222
3216
|
color = _ref2.color,
|
|
3223
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
3217
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$P);
|
|
3224
3218
|
var sx = useSx();
|
|
3225
3219
|
var typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
3226
3220
|
var typographyTypeInContext = useContext(TypographyTypeContext);
|
|
@@ -3362,12 +3356,12 @@ function Icon(_ref) {
|
|
|
3362
3356
|
});
|
|
3363
3357
|
}
|
|
3364
3358
|
|
|
3365
|
-
var _excluded$
|
|
3359
|
+
var _excluded$O = ["color", "size"],
|
|
3366
3360
|
_excluded2$6 = ["color"];
|
|
3367
3361
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3368
3362
|
var color = _ref.color,
|
|
3369
3363
|
size = _ref.size,
|
|
3370
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3364
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
3371
3365
|
var colorValue = getTypographyColorValue(color);
|
|
3372
3366
|
var sx = useSx();
|
|
3373
3367
|
var _sx = sx({
|
|
@@ -3407,7 +3401,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
|
|
|
3407
3401
|
return "".concat(baseKey, ".default");
|
|
3408
3402
|
};
|
|
3409
3403
|
|
|
3410
|
-
var _excluded$
|
|
3404
|
+
var _excluded$N = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3411
3405
|
function ButtonContentChildren(_ref) {
|
|
3412
3406
|
var type = _ref.type,
|
|
3413
3407
|
icon = _ref.icon,
|
|
@@ -3507,7 +3501,7 @@ function ButtonContent(_ref2) {
|
|
|
3507
3501
|
_ref2.isFocused;
|
|
3508
3502
|
var innerSpacing = _ref2.innerSpacing,
|
|
3509
3503
|
size = _ref2.size,
|
|
3510
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3504
|
+
props = _objectWithoutProperties(_ref2, _excluded$N);
|
|
3511
3505
|
var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3512
3506
|
return /*#__PURE__*/jsx(View, {
|
|
3513
3507
|
_web: {
|
|
@@ -3706,7 +3700,7 @@ function LoaderIcon(_ref) {
|
|
|
3706
3700
|
});
|
|
3707
3701
|
}
|
|
3708
3702
|
|
|
3709
|
-
var _excluded$
|
|
3703
|
+
var _excluded$M = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3710
3704
|
var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3711
3705
|
var as = _ref.as,
|
|
3712
3706
|
onPress = _ref.onPress,
|
|
@@ -3717,7 +3711,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3717
3711
|
base: true,
|
|
3718
3712
|
medium: false
|
|
3719
3713
|
} : _ref$stretch,
|
|
3720
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3714
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
3721
3715
|
var _useState = useState(false),
|
|
3722
3716
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3723
3717
|
isLoading = _useState2[0],
|
|
@@ -3795,7 +3789,7 @@ function ActionsButton(_ref) {
|
|
|
3795
3789
|
}, props));
|
|
3796
3790
|
}
|
|
3797
3791
|
|
|
3798
|
-
var _excluded$
|
|
3792
|
+
var _excluded$L = ["children", "layout", "reversed"];
|
|
3799
3793
|
function getCurrentLayout(layout) {
|
|
3800
3794
|
if (!layout) return {
|
|
3801
3795
|
base: 'stretch',
|
|
@@ -3827,7 +3821,7 @@ function Actions(_ref) {
|
|
|
3827
3821
|
reversed = _ref$reversed === void 0 ? {
|
|
3828
3822
|
base: false
|
|
3829
3823
|
} : _ref$reversed,
|
|
3830
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3824
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
3831
3825
|
var shouldReverse = typeof reversed === 'boolean' ? {
|
|
3832
3826
|
base: !!reversed
|
|
3833
3827
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -3880,7 +3874,7 @@ function getInitials(firstname, lastname) {
|
|
|
3880
3874
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
3881
3875
|
}
|
|
3882
3876
|
|
|
3883
|
-
var _excluded$
|
|
3877
|
+
var _excluded$K = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
3884
3878
|
function AvatarContent(_ref) {
|
|
3885
3879
|
var size = _ref.size,
|
|
3886
3880
|
src = _ref.src,
|
|
@@ -3943,7 +3937,7 @@ function Avatar(_ref2) {
|
|
|
3943
3937
|
height = _ref2.height,
|
|
3944
3938
|
dark = _ref2.dark,
|
|
3945
3939
|
disabled = _ref2.disabled,
|
|
3946
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3940
|
+
props = _objectWithoutProperties(_ref2, _excluded$K);
|
|
3947
3941
|
var currentSize = getCurrentSize({
|
|
3948
3942
|
size: size,
|
|
3949
3943
|
sizeVariant: sizeVariant
|
|
@@ -4126,7 +4120,7 @@ function CardModalRotationContainer(props) {
|
|
|
4126
4120
|
}, props));
|
|
4127
4121
|
}
|
|
4128
4122
|
|
|
4129
|
-
var _excluded$
|
|
4123
|
+
var _excluded$J = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4130
4124
|
var contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
|
|
4131
4125
|
var contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
|
|
4132
4126
|
var contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
|
|
@@ -4165,7 +4159,7 @@ function CardModalAnimation(_ref) {
|
|
|
4165
4159
|
onExit = _ref.onExit,
|
|
4166
4160
|
onExited = _ref.onExited,
|
|
4167
4161
|
onClose = _ref.onClose,
|
|
4168
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4162
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4169
4163
|
var theme = useTheme();
|
|
4170
4164
|
var animation = theme.kitt.cardModal.animation;
|
|
4171
4165
|
var sharedProps = {
|
|
@@ -4198,13 +4192,13 @@ function CardModalAnimation(_ref) {
|
|
|
4198
4192
|
}));
|
|
4199
4193
|
}
|
|
4200
4194
|
|
|
4201
|
-
var _excluded$
|
|
4195
|
+
var _excluded$I = ["children", "visible", "onClose", "onExited"];
|
|
4202
4196
|
function CardModalBehaviour(_ref) {
|
|
4203
4197
|
var children = _ref.children,
|
|
4204
4198
|
visible = _ref.visible,
|
|
4205
4199
|
onClose = _ref.onClose,
|
|
4206
4200
|
onExited = _ref.onExited,
|
|
4207
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4201
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4208
4202
|
var _useState = useState(visible),
|
|
4209
4203
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4210
4204
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4229,32 +4223,23 @@ function CardModalBehaviour(_ref) {
|
|
|
4229
4223
|
});
|
|
4230
4224
|
}
|
|
4231
4225
|
|
|
4232
|
-
var _excluded$
|
|
4226
|
+
var _excluded$H = ["children", "padding"];
|
|
4233
4227
|
function CardModalBody(_ref) {
|
|
4234
4228
|
var children = _ref.children,
|
|
4235
|
-
_ref$
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
medium: 'kitt.6'
|
|
4239
|
-
} : _ref$paddingX,
|
|
4240
|
-
_ref$paddingY = _ref.paddingY,
|
|
4241
|
-
paddingY = _ref$paddingY === void 0 ? {
|
|
4242
|
-
base: 'kitt.4',
|
|
4243
|
-
medium: 'kitt.6'
|
|
4244
|
-
} : _ref$paddingY,
|
|
4245
|
-
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4229
|
+
_ref$padding = _ref.padding,
|
|
4230
|
+
padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
|
|
4231
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4246
4232
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4247
4233
|
showsVerticalScrollIndicator: false,
|
|
4248
4234
|
_contentContainerStyle: {
|
|
4249
|
-
|
|
4250
|
-
paddingY: paddingY
|
|
4235
|
+
padding: padding
|
|
4251
4236
|
}
|
|
4252
4237
|
}, props), {}, {
|
|
4253
4238
|
children: children
|
|
4254
4239
|
}));
|
|
4255
4240
|
}
|
|
4256
4241
|
|
|
4257
|
-
var _excluded$
|
|
4242
|
+
var _excluded$G = ["children", "padding", "hasSeparator"];
|
|
4258
4243
|
function CardModalFooter(_ref) {
|
|
4259
4244
|
var children = _ref.children,
|
|
4260
4245
|
_ref$padding = _ref.padding,
|
|
@@ -4264,7 +4249,7 @@ function CardModalFooter(_ref) {
|
|
|
4264
4249
|
} : _ref$padding,
|
|
4265
4250
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4266
4251
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4267
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4252
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4268
4253
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4269
4254
|
marginTop: "kitt.2",
|
|
4270
4255
|
padding: padding,
|
|
@@ -4278,58 +4263,148 @@ function CardModalFooter(_ref) {
|
|
|
4278
4263
|
}));
|
|
4279
4264
|
}
|
|
4280
4265
|
|
|
4281
|
-
var
|
|
4282
|
-
|
|
4283
|
-
|
|
4266
|
+
var getButtonTypeAndVariant = function (iconColor) {
|
|
4267
|
+
switch (iconColor) {
|
|
4268
|
+
case 'black':
|
|
4269
|
+
return {
|
|
4270
|
+
type: 'tertiary'
|
|
4271
|
+
};
|
|
4272
|
+
case 'secondary':
|
|
4273
|
+
return {
|
|
4274
|
+
type: 'secondary'
|
|
4275
|
+
};
|
|
4276
|
+
case 'primary':
|
|
4277
|
+
return {
|
|
4278
|
+
type: 'primary'
|
|
4279
|
+
};
|
|
4280
|
+
case 'primary-plain':
|
|
4281
|
+
return {
|
|
4282
|
+
type: 'primary'
|
|
4283
|
+
};
|
|
4284
|
+
case 'ghost':
|
|
4285
|
+
return {
|
|
4286
|
+
type: 'tertiary',
|
|
4287
|
+
variant: 'revert'
|
|
4288
|
+
};
|
|
4289
|
+
default:
|
|
4290
|
+
return {
|
|
4291
|
+
type: 'secondary'
|
|
4292
|
+
};
|
|
4293
|
+
}
|
|
4294
|
+
};
|
|
4295
|
+
|
|
4296
|
+
var _excluded$F = ["color", "ariaLabel"];
|
|
4297
|
+
/**
|
|
4298
|
+
* @deprecated IconButton should only be used as a navigation button
|
|
4299
|
+
* Other use cases should use a <Button> component with an icon
|
|
4300
|
+
*/
|
|
4301
|
+
function IconButton(_ref) {
|
|
4302
|
+
var _ref$color = _ref.color,
|
|
4303
|
+
color = _ref$color === void 0 ? 'black' : _ref$color;
|
|
4304
|
+
_ref.ariaLabel;
|
|
4305
|
+
var props = _objectWithoutProperties(_ref, _excluded$F);
|
|
4306
|
+
var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
|
|
4307
|
+
legacyColorToType = _getButtonTypeAndVari.type,
|
|
4308
|
+
legacyColorToVariant = _getButtonTypeAndVari.variant;
|
|
4309
|
+
return /*#__PURE__*/jsx(Button, _objectSpread({
|
|
4310
|
+
variant: legacyColorToVariant,
|
|
4311
|
+
type: legacyColorToType
|
|
4312
|
+
}, props));
|
|
4313
|
+
}
|
|
4314
|
+
function CloseIconButton(props) {
|
|
4315
|
+
return /*#__PURE__*/jsx(IconButton, _objectSpread({
|
|
4316
|
+
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
4317
|
+
}, props));
|
|
4318
|
+
}
|
|
4319
|
+
|
|
4320
|
+
function TopNavBar(_ref) {
|
|
4321
|
+
var left = _ref.left,
|
|
4322
|
+
right = _ref.right,
|
|
4284
4323
|
title = _ref.title,
|
|
4285
|
-
_ref$
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4324
|
+
_ref$titleAlign = _ref.titleAlign,
|
|
4325
|
+
titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
|
|
4326
|
+
stickers = _ref.stickers,
|
|
4327
|
+
_ref$mode = _ref.mode,
|
|
4328
|
+
mode = _ref$mode === void 0 ? 'default' : _ref$mode,
|
|
4290
4329
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4291
|
-
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
};
|
|
4299
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4300
|
-
padding: paddingBottom,
|
|
4301
|
-
borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4302
|
-
borderColor: "kitt.separator",
|
|
4303
|
-
justifyContent: "center",
|
|
4330
|
+
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator;
|
|
4331
|
+
var isLargeTitleMode = mode === 'largeTitle';
|
|
4332
|
+
var leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
|
|
4333
|
+
width: "kitt.button.minWidth"
|
|
4334
|
+
});
|
|
4335
|
+
return /*#__PURE__*/jsxs(VStack, {
|
|
4336
|
+
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
4304
4337
|
width: "100%",
|
|
4305
|
-
height:
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4338
|
+
height: mode === 'default' ? 56 : undefined,
|
|
4339
|
+
justifyContent: "center",
|
|
4340
|
+
paddingX: "kitt.2",
|
|
4341
|
+
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
4342
|
+
paddingBottom: "kitt.3",
|
|
4343
|
+
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4344
|
+
borderColor: "kitt.separator",
|
|
4345
|
+
children: [/*#__PURE__*/jsxs(HStack, {
|
|
4309
4346
|
alignItems: "center",
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
children: [left ? /*#__PURE__*/jsx(View, {
|
|
4313
|
-
width: "kitt.iconButton.width",
|
|
4314
|
-
children: left
|
|
4315
|
-
}) : null, /*#__PURE__*/jsxs(View, {
|
|
4347
|
+
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
4348
|
+
children: [left !== null && left !== void 0 ? left : leftEmptySpace, mode === 'default' ? /*#__PURE__*/jsx(View, {
|
|
4316
4349
|
flexGrow: "1",
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4350
|
+
flexShrink: 1,
|
|
4351
|
+
paddingRight: "kitt.2",
|
|
4352
|
+
paddingLeft: "kitt.2",
|
|
4353
|
+
children: title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
4354
|
+
textAlign: titleAlign,
|
|
4321
4355
|
variant: "bold",
|
|
4356
|
+
ellipsizeMode: "tail",
|
|
4357
|
+
numberOfLines: 1,
|
|
4322
4358
|
children: title
|
|
4323
|
-
}) : null
|
|
4324
|
-
}), right ? /*#__PURE__*/jsx(View, {
|
|
4325
|
-
width: "kitt.
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4359
|
+
}) : null
|
|
4360
|
+
}) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
|
|
4361
|
+
width: "kitt.button.minWidth"
|
|
4362
|
+
})]
|
|
4363
|
+
}), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
|
|
4364
|
+
space: "kitt.4",
|
|
4365
|
+
paddingX: "kitt.2",
|
|
4366
|
+
children: [stickers ? /*#__PURE__*/jsx(HStack, {
|
|
4367
|
+
width: "100%",
|
|
4368
|
+
space: "kitt.1",
|
|
4369
|
+
flexShrink: 1,
|
|
4370
|
+
flexWrap: "wrap",
|
|
4371
|
+
style: {
|
|
4372
|
+
rowGap: theme.getSpacing(1)
|
|
4373
|
+
},
|
|
4374
|
+
children: stickers.map(function (sticker, index) {
|
|
4375
|
+
return (
|
|
4376
|
+
/*#__PURE__*/
|
|
4377
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
4378
|
+
jsx(View, {
|
|
4379
|
+
children: sticker
|
|
4380
|
+
}, index)
|
|
4381
|
+
);
|
|
4382
|
+
})
|
|
4383
|
+
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
4384
|
+
base: "heading-m",
|
|
4385
|
+
children: title
|
|
4386
|
+
})]
|
|
4387
|
+
}) : null]
|
|
4388
|
+
});
|
|
4389
|
+
}
|
|
4390
|
+
function CloseButton(props) {
|
|
4391
|
+
return /*#__PURE__*/jsx(IconButton, _objectSpread({
|
|
4392
|
+
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
4393
|
+
}, props));
|
|
4394
|
+
}
|
|
4395
|
+
function BackButton(props) {
|
|
4396
|
+
return /*#__PURE__*/jsx(IconButton, _objectSpread({
|
|
4397
|
+
icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
|
|
4398
|
+
}, props));
|
|
4399
|
+
}
|
|
4400
|
+
TopNavBar.CloseButton = CloseButton;
|
|
4401
|
+
TopNavBar.BackButton = BackButton;
|
|
4402
|
+
|
|
4403
|
+
function CardModalHeader(props) {
|
|
4404
|
+
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4330
4405
|
}
|
|
4331
4406
|
|
|
4332
|
-
var _excluded$
|
|
4407
|
+
var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4333
4408
|
function CardModal(_ref) {
|
|
4334
4409
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4335
4410
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4340,7 +4415,7 @@ function CardModal(_ref) {
|
|
|
4340
4415
|
header = _ref.header,
|
|
4341
4416
|
body = _ref.body,
|
|
4342
4417
|
footer = _ref.footer,
|
|
4343
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4418
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
4344
4419
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4345
4420
|
overflow: "hidden",
|
|
4346
4421
|
backgroundColor: backgroundColor,
|
|
@@ -4555,11 +4630,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4555
4630
|
}));
|
|
4556
4631
|
}
|
|
4557
4632
|
|
|
4558
|
-
var _excluded$
|
|
4633
|
+
var _excluded$D = ["direction", "contentContainerStyle"];
|
|
4559
4634
|
function ChoicesContainer(_ref) {
|
|
4560
4635
|
var direction = _ref.direction,
|
|
4561
4636
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4562
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4637
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
4563
4638
|
if (direction === 'row') {
|
|
4564
4639
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4565
4640
|
horizontal: true,
|
|
@@ -4634,7 +4709,7 @@ var ChoicesElements = {
|
|
|
4634
4709
|
ButtonChoices: ButtonChoices
|
|
4635
4710
|
};
|
|
4636
4711
|
|
|
4637
|
-
var _excluded$
|
|
4712
|
+
var _excluded$C = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4638
4713
|
var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
|
|
4639
4714
|
var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
|
|
4640
4715
|
var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
|
|
@@ -4673,7 +4748,7 @@ function DialogModalAnimation(_ref) {
|
|
|
4673
4748
|
onExit = _ref.onExit,
|
|
4674
4749
|
onExited = _ref.onExited,
|
|
4675
4750
|
onClose = _ref.onClose,
|
|
4676
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4751
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
4677
4752
|
var theme = useTheme();
|
|
4678
4753
|
var animation = theme.kitt.dialogModal.animation;
|
|
4679
4754
|
var sharedProps = {
|
|
@@ -4708,13 +4783,13 @@ function DialogModalAnimation(_ref) {
|
|
|
4708
4783
|
}));
|
|
4709
4784
|
}
|
|
4710
4785
|
|
|
4711
|
-
var _excluded$
|
|
4786
|
+
var _excluded$B = ["children", "visible", "onClose", "onExited"];
|
|
4712
4787
|
function DialogModalBehaviour(_ref) {
|
|
4713
4788
|
var children = _ref.children,
|
|
4714
4789
|
visible = _ref.visible,
|
|
4715
4790
|
onClose = _ref.onClose,
|
|
4716
4791
|
onExited = _ref.onExited,
|
|
4717
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4792
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
4718
4793
|
var _useState = useState(visible),
|
|
4719
4794
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4720
4795
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4745,7 +4820,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
4745
4820
|
});
|
|
4746
4821
|
}
|
|
4747
4822
|
|
|
4748
|
-
var _excluded$
|
|
4823
|
+
var _excluded$A = ["stretch"];
|
|
4749
4824
|
function DialogModal(_ref) {
|
|
4750
4825
|
var illustration = _ref.illustration,
|
|
4751
4826
|
title = _ref.title,
|
|
@@ -4785,7 +4860,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
4785
4860
|
function DialogModalButton(_ref2) {
|
|
4786
4861
|
var _ref2$stretch = _ref2.stretch,
|
|
4787
4862
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
4788
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
4863
|
+
props = _objectWithoutProperties(_ref2, _excluded$A);
|
|
4789
4864
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
4790
4865
|
stretch: stretch
|
|
4791
4866
|
}, props));
|
|
@@ -4822,7 +4897,7 @@ function Emoji(_ref) {
|
|
|
4822
4897
|
});
|
|
4823
4898
|
}
|
|
4824
4899
|
|
|
4825
|
-
var _excluded$
|
|
4900
|
+
var _excluded$z = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
4826
4901
|
_excluded2$5 = ["phoneNumber", "children"],
|
|
4827
4902
|
_excluded3$4 = ["phoneNumber", "children"],
|
|
4828
4903
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -4832,7 +4907,7 @@ function ExternalAppLink(_ref) {
|
|
|
4832
4907
|
appValue = _ref.appValue,
|
|
4833
4908
|
onPress = _ref.onPress,
|
|
4834
4909
|
onOpenAppError = _ref.onOpenAppError,
|
|
4835
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4910
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
4836
4911
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
4837
4912
|
var handleOnPress = /*#__PURE__*/function () {
|
|
4838
4913
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -4927,14 +5002,14 @@ var defaultOpenLinkBehavior = {
|
|
|
4927
5002
|
web: 'targetBlank'
|
|
4928
5003
|
};
|
|
4929
5004
|
|
|
4930
|
-
var _excluded$
|
|
5005
|
+
var _excluded$y = ["as", "href", "openLinkBehavior", "onPress"];
|
|
4931
5006
|
function ExternalLink(_ref) {
|
|
4932
5007
|
var Component = _ref.as,
|
|
4933
5008
|
href = _ref.href,
|
|
4934
5009
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
4935
5010
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
4936
5011
|
onPress = _ref.onPress,
|
|
4937
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5012
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
4938
5013
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
4939
5014
|
accessibilityRole: "link",
|
|
4940
5015
|
href: href,
|
|
@@ -5010,7 +5085,7 @@ function InputTextContainer(props) {
|
|
|
5010
5085
|
}, props));
|
|
5011
5086
|
}
|
|
5012
5087
|
|
|
5013
|
-
var _excluded$
|
|
5088
|
+
var _excluded$x = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5014
5089
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5015
5090
|
var id = _ref.id,
|
|
5016
5091
|
right = _ref.right;
|
|
@@ -5031,7 +5106,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5031
5106
|
multiline = _ref.multiline,
|
|
5032
5107
|
height = _ref.height,
|
|
5033
5108
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5034
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5109
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5035
5110
|
var theme = useTheme();
|
|
5036
5111
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5037
5112
|
base: 'body-m'
|
|
@@ -5155,12 +5230,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5155
5230
|
});
|
|
5156
5231
|
}
|
|
5157
5232
|
|
|
5158
|
-
var _excluded$
|
|
5233
|
+
var _excluded$w = ["children", "testID"];
|
|
5159
5234
|
function AutocompleteOption(_ref) {
|
|
5160
5235
|
var children = _ref.children,
|
|
5161
5236
|
_ref$testID = _ref.testID,
|
|
5162
5237
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5163
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5238
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
5164
5239
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5165
5240
|
paddingX: {
|
|
5166
5241
|
base: 'kitt.2',
|
|
@@ -5173,7 +5248,7 @@ function AutocompleteOption(_ref) {
|
|
|
5173
5248
|
}));
|
|
5174
5249
|
}
|
|
5175
5250
|
|
|
5176
|
-
var _excluded$
|
|
5251
|
+
var _excluded$v = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
|
|
5177
5252
|
_excluded2$4 = ["onClick", "onPress"],
|
|
5178
5253
|
_excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5179
5254
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5207,7 +5282,7 @@ function Autocomplete(_ref) {
|
|
|
5207
5282
|
_ref$zIndex = _ref.zIndex,
|
|
5208
5283
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5209
5284
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5210
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5285
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
5211
5286
|
var childrenArray = Children.toArray(_children);
|
|
5212
5287
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5213
5288
|
return {
|
|
@@ -5414,7 +5489,7 @@ function getBorderColor$1(_ref) {
|
|
|
5414
5489
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5415
5490
|
}
|
|
5416
5491
|
|
|
5417
|
-
var _excluded$
|
|
5492
|
+
var _excluded$u = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5418
5493
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5419
5494
|
var checked = _ref.checked,
|
|
5420
5495
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5424,7 +5499,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5424
5499
|
onChange = _ref.onChange,
|
|
5425
5500
|
onBlur = _ref.onBlur,
|
|
5426
5501
|
onFocus = _ref.onFocus,
|
|
5427
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5502
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
5428
5503
|
var theme = useTheme();
|
|
5429
5504
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5430
5505
|
hitSlop: hitSlop
|
|
@@ -5740,7 +5815,7 @@ function PartContainer(_ref) {
|
|
|
5740
5815
|
});
|
|
5741
5816
|
}
|
|
5742
5817
|
|
|
5743
|
-
var _excluded$
|
|
5818
|
+
var _excluded$t = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
5744
5819
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5745
5820
|
var id = _ref.id,
|
|
5746
5821
|
value = _ref.value,
|
|
@@ -5758,7 +5833,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5758
5833
|
onBlur = _ref.onBlur,
|
|
5759
5834
|
onFocus = _ref.onFocus,
|
|
5760
5835
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
5761
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
5836
|
+
_objectWithoutProperties(_ref, _excluded$t);
|
|
5762
5837
|
var monthRef = useRef(null);
|
|
5763
5838
|
var yearRef = useRef(null);
|
|
5764
5839
|
var defaultValue = value;
|
|
@@ -5898,10 +5973,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5898
5973
|
});
|
|
5899
5974
|
});
|
|
5900
5975
|
|
|
5901
|
-
var _excluded$
|
|
5976
|
+
var _excluded$s = ["value"];
|
|
5902
5977
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5903
5978
|
var value = _ref.value,
|
|
5904
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5979
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
5905
5980
|
// in apps, final-form can give a string value that will break the component
|
|
5906
5981
|
var currentValue = value || undefined;
|
|
5907
5982
|
return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
|
|
@@ -6485,7 +6560,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
6485
6560
|
};
|
|
6486
6561
|
}
|
|
6487
6562
|
|
|
6488
|
-
var _excluded$
|
|
6563
|
+
var _excluded$r = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
6489
6564
|
function InputAddress(_ref) {
|
|
6490
6565
|
var initialValue = _ref.initialValue,
|
|
6491
6566
|
_ref$itemToString = _ref.itemToString,
|
|
@@ -6493,7 +6568,7 @@ function InputAddress(_ref) {
|
|
|
6493
6568
|
errorElement = _ref.errorElement,
|
|
6494
6569
|
emptyResultsElement = _ref.emptyResultsElement,
|
|
6495
6570
|
_onChange = _ref.onChange,
|
|
6496
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6571
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
6497
6572
|
var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
|
|
6498
6573
|
state = _useGoogleMapsAutocom.state,
|
|
6499
6574
|
_onInputChange = _useGoogleMapsAutocom.onInputChange,
|
|
@@ -6590,10 +6665,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6590
6665
|
}, props));
|
|
6591
6666
|
});
|
|
6592
6667
|
|
|
6593
|
-
var _excluded$
|
|
6668
|
+
var _excluded$q = ["onChange"];
|
|
6594
6669
|
var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6595
6670
|
var onChange = _ref.onChange,
|
|
6596
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6671
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
6597
6672
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
6598
6673
|
ref: ref
|
|
6599
6674
|
}, props), {}, {
|
|
@@ -6610,11 +6685,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6610
6685
|
}));
|
|
6611
6686
|
});
|
|
6612
6687
|
|
|
6613
|
-
var _excluded$
|
|
6688
|
+
var _excluded$p = ["isPasswordDefaultVisible", "right"];
|
|
6614
6689
|
var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6615
6690
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
6616
6691
|
right = _ref.right,
|
|
6617
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6692
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
6618
6693
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
6619
6694
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6620
6695
|
isVisible = _useState2[0],
|
|
@@ -6642,7 +6717,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6642
6717
|
}));
|
|
6643
6718
|
});
|
|
6644
6719
|
|
|
6645
|
-
var _excluded$
|
|
6720
|
+
var _excluded$o = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
|
|
6646
6721
|
function isPhoneNumberValid(number) {
|
|
6647
6722
|
return isValidNumber(number);
|
|
6648
6723
|
}
|
|
@@ -6656,7 +6731,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6656
6731
|
_ref$phoneNumberLengt = _ref.phoneNumberLength,
|
|
6657
6732
|
phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
|
|
6658
6733
|
onChange = _ref.onChange,
|
|
6659
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6734
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
6660
6735
|
var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
6661
6736
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
6662
6737
|
ref: ref
|
|
@@ -7092,7 +7167,7 @@ function RadioButton(_ref) {
|
|
|
7092
7167
|
});
|
|
7093
7168
|
}
|
|
7094
7169
|
|
|
7095
|
-
var _excluded$
|
|
7170
|
+
var _excluded$n = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
7096
7171
|
function RadioButtonGroupItem(_ref) {
|
|
7097
7172
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
7098
7173
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -7105,7 +7180,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
7105
7180
|
onFocus = _ref2.onFocus,
|
|
7106
7181
|
onBlur = _ref2.onBlur,
|
|
7107
7182
|
onChange = _ref2.onChange,
|
|
7108
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7183
|
+
props = _objectWithoutProperties(_ref2, _excluded$n);
|
|
7109
7184
|
var _useState = useState(value),
|
|
7110
7185
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7111
7186
|
currentValue = _useState2[0],
|
|
@@ -7137,12 +7212,12 @@ function RadioButtonGroup(_ref2) {
|
|
|
7137
7212
|
}
|
|
7138
7213
|
RadioButtonGroup.RadioButton = RadioButtonGroupItem;
|
|
7139
7214
|
|
|
7140
|
-
var _excluded$
|
|
7215
|
+
var _excluded$m = ["helper", "limit"];
|
|
7141
7216
|
var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7142
7217
|
var _props$value, _props$value2;
|
|
7143
7218
|
var helper = _ref.helper,
|
|
7144
7219
|
limit = _ref.limit,
|
|
7145
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7220
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
7146
7221
|
var shouldDisplayLimit = limit && limit > 0;
|
|
7147
7222
|
var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
|
|
7148
7223
|
var limitContainerAnimatedStyle = useAnimatedStyle(function () {
|
|
@@ -7301,7 +7376,7 @@ function ToggleAnimated(_ref) {
|
|
|
7301
7376
|
});
|
|
7302
7377
|
}
|
|
7303
7378
|
|
|
7304
|
-
var _excluded$
|
|
7379
|
+
var _excluded$l = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
7305
7380
|
var getLabelTypographyType = function (size) {
|
|
7306
7381
|
return size === 'medium' ? 'body-m' : 'body-l';
|
|
7307
7382
|
};
|
|
@@ -7323,7 +7398,7 @@ function Toggle(_ref) {
|
|
|
7323
7398
|
value = _ref$value === void 0 ? false : _ref$value,
|
|
7324
7399
|
_ref$onChange = _ref.onChange,
|
|
7325
7400
|
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
7326
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7401
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7327
7402
|
var theme = useKittTheme();
|
|
7328
7403
|
return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
|
|
7329
7404
|
alignItems: "center"
|
|
@@ -7362,13 +7437,13 @@ function Toggle(_ref) {
|
|
|
7362
7437
|
}));
|
|
7363
7438
|
}
|
|
7364
7439
|
|
|
7365
|
-
var _excluded$
|
|
7440
|
+
var _excluded$k = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
7366
7441
|
function FullscreenModalBody(_ref) {
|
|
7367
7442
|
var children = _ref.children,
|
|
7368
7443
|
shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
|
|
7369
7444
|
style = _ref.style,
|
|
7370
7445
|
shouldHandleTopNotch = _ref.shouldHandleTopNotch,
|
|
7371
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7446
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7372
7447
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7373
7448
|
bottom = _useSafeAreaInsets.bottom,
|
|
7374
7449
|
top = _useSafeAreaInsets.top;
|
|
@@ -7388,14 +7463,14 @@ function FullscreenModalBody(_ref) {
|
|
|
7388
7463
|
}));
|
|
7389
7464
|
}
|
|
7390
7465
|
|
|
7391
|
-
var _excluded$
|
|
7466
|
+
var _excluded$j = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
7392
7467
|
function FullscreenModalFooter(_ref) {
|
|
7393
7468
|
var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
|
|
7394
7469
|
shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
|
|
7395
7470
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
7396
7471
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
7397
7472
|
children = _ref.children,
|
|
7398
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7473
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7399
7474
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7400
7475
|
bottom = _useSafeAreaInsets.bottom;
|
|
7401
7476
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
@@ -7412,7 +7487,7 @@ function FullscreenModalFooter(_ref) {
|
|
|
7412
7487
|
}));
|
|
7413
7488
|
}
|
|
7414
7489
|
|
|
7415
|
-
var _excluded$
|
|
7490
|
+
var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
7416
7491
|
var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
|
|
7417
7492
|
var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
|
|
7418
7493
|
var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
|
|
@@ -7451,7 +7526,7 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7451
7526
|
onExit = _ref.onExit,
|
|
7452
7527
|
onExited = _ref.onExited,
|
|
7453
7528
|
onClose = _ref.onClose,
|
|
7454
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7529
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
7455
7530
|
var theme = useTheme();
|
|
7456
7531
|
var animation = theme.kitt.fullscreenModal.animation;
|
|
7457
7532
|
var sharedProps = {
|
|
@@ -7478,13 +7553,13 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7478
7553
|
}));
|
|
7479
7554
|
}
|
|
7480
7555
|
|
|
7481
|
-
var _excluded$
|
|
7556
|
+
var _excluded$h = ["children", "visible", "onClose", "onExited"];
|
|
7482
7557
|
function FullscreenModalBehaviour(_ref) {
|
|
7483
7558
|
var children = _ref.children,
|
|
7484
7559
|
visible = _ref.visible,
|
|
7485
7560
|
onClose = _ref.onClose,
|
|
7486
7561
|
onExited = _ref.onExited,
|
|
7487
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7562
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
7488
7563
|
var _useState = useState(visible),
|
|
7489
7564
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7490
7565
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -7531,64 +7606,17 @@ function FullscreenModalContainer(_ref) {
|
|
|
7531
7606
|
});
|
|
7532
7607
|
}
|
|
7533
7608
|
|
|
7534
|
-
var _excluded$
|
|
7609
|
+
var _excluded$g = ["shouldHandleTopNotch"];
|
|
7535
7610
|
function FullscreenModalHeader(_ref) {
|
|
7536
|
-
var _ref$
|
|
7537
|
-
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
7538
|
-
isTransparent = _ref.isTransparent,
|
|
7539
|
-
title = _ref.title,
|
|
7540
|
-
children = _ref.children,
|
|
7541
|
-
right = _ref.right,
|
|
7542
|
-
left = _ref.left,
|
|
7543
|
-
_ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
|
|
7611
|
+
var _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
|
|
7544
7612
|
shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
|
|
7545
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7613
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
7546
7614
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7547
7615
|
top = _useSafeAreaInsets.top;
|
|
7548
|
-
|
|
7549
|
-
var hasLeft = Boolean(left);
|
|
7550
|
-
var hasContent = Boolean(title || children);
|
|
7551
|
-
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
7552
|
-
backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
|
|
7553
|
-
minHeight: "kitt.fullscreenModal.header.height",
|
|
7554
|
-
width: "100%",
|
|
7555
|
-
justifyContent: "center",
|
|
7616
|
+
return /*#__PURE__*/jsx(View, {
|
|
7556
7617
|
paddingTop: shouldHandleTopNotch ? top : undefined,
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
borderBottomColor: "kitt.separator",
|
|
7560
|
-
borderBottomWidth: hasSeparator ? 1 : undefined
|
|
7561
|
-
}, props), {}, {
|
|
7562
|
-
children: /*#__PURE__*/jsxs(View, {
|
|
7563
|
-
flexDirection: "row",
|
|
7564
|
-
alignItems: "center",
|
|
7565
|
-
justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
|
|
7566
|
-
children: [left ? /*#__PURE__*/jsx(View, {
|
|
7567
|
-
width: "kitt.iconButton.width",
|
|
7568
|
-
children: left
|
|
7569
|
-
}) : null, title ? /*#__PURE__*/jsx(View, {
|
|
7570
|
-
flexGrow: 1,
|
|
7571
|
-
flexShrink: 1,
|
|
7572
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
7573
|
-
paddingRight: hasRight ? 'kitt.2' : 0,
|
|
7574
|
-
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7575
|
-
variant: "bold",
|
|
7576
|
-
textAlign: !hasLeft && hasRight ? 'left' : 'center',
|
|
7577
|
-
children: title
|
|
7578
|
-
})
|
|
7579
|
-
}) : null, children ? /*#__PURE__*/jsx(View, {
|
|
7580
|
-
flexGrow: 1,
|
|
7581
|
-
flexShrink: 1,
|
|
7582
|
-
alignItems: "center",
|
|
7583
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
7584
|
-
paddingRight: hasRight ? 'kitt.2' : undefined,
|
|
7585
|
-
children: children
|
|
7586
|
-
}) : null, right || left ? /*#__PURE__*/jsx(View, {
|
|
7587
|
-
width: "kitt.iconButton.width",
|
|
7588
|
-
children: right
|
|
7589
|
-
}) : null]
|
|
7590
|
-
})
|
|
7591
|
-
}));
|
|
7618
|
+
children: /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props))
|
|
7619
|
+
});
|
|
7592
7620
|
}
|
|
7593
7621
|
|
|
7594
7622
|
function FullscreenModal(_ref) {
|
|
@@ -7858,60 +7886,6 @@ function Highlight(_ref) {
|
|
|
7858
7886
|
});
|
|
7859
7887
|
}
|
|
7860
7888
|
|
|
7861
|
-
var getButtonTypeAndVariant = function (iconColor) {
|
|
7862
|
-
switch (iconColor) {
|
|
7863
|
-
case 'black':
|
|
7864
|
-
return {
|
|
7865
|
-
type: 'tertiary'
|
|
7866
|
-
};
|
|
7867
|
-
case 'secondary':
|
|
7868
|
-
return {
|
|
7869
|
-
type: 'secondary'
|
|
7870
|
-
};
|
|
7871
|
-
case 'primary':
|
|
7872
|
-
return {
|
|
7873
|
-
type: 'primary'
|
|
7874
|
-
};
|
|
7875
|
-
case 'primary-plain':
|
|
7876
|
-
return {
|
|
7877
|
-
type: 'primary'
|
|
7878
|
-
};
|
|
7879
|
-
case 'ghost':
|
|
7880
|
-
return {
|
|
7881
|
-
type: 'tertiary',
|
|
7882
|
-
variant: 'revert'
|
|
7883
|
-
};
|
|
7884
|
-
default:
|
|
7885
|
-
return {
|
|
7886
|
-
type: 'secondary'
|
|
7887
|
-
};
|
|
7888
|
-
}
|
|
7889
|
-
};
|
|
7890
|
-
|
|
7891
|
-
var _excluded$g = ["color", "ariaLabel"];
|
|
7892
|
-
/**
|
|
7893
|
-
* @deprecated IconButton should only be used as a navigation button
|
|
7894
|
-
* Other use cases should use a <Button> component with an icon
|
|
7895
|
-
*/
|
|
7896
|
-
function IconButton(_ref) {
|
|
7897
|
-
var _ref$color = _ref.color,
|
|
7898
|
-
color = _ref$color === void 0 ? 'black' : _ref$color;
|
|
7899
|
-
_ref.ariaLabel;
|
|
7900
|
-
var props = _objectWithoutProperties(_ref, _excluded$g);
|
|
7901
|
-
var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
|
|
7902
|
-
legacyColorToType = _getButtonTypeAndVari.type,
|
|
7903
|
-
legacyColorToVariant = _getButtonTypeAndVari.variant;
|
|
7904
|
-
return /*#__PURE__*/jsx(Button, _objectSpread({
|
|
7905
|
-
variant: legacyColorToVariant,
|
|
7906
|
-
type: legacyColorToType
|
|
7907
|
-
}, props));
|
|
7908
|
-
}
|
|
7909
|
-
function CloseIconButton(props) {
|
|
7910
|
-
return /*#__PURE__*/jsx(IconButton, _objectSpread({
|
|
7911
|
-
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
7912
|
-
}, props));
|
|
7913
|
-
}
|
|
7914
|
-
|
|
7915
7889
|
function InfoCard(_ref) {
|
|
7916
7890
|
var title = _ref.title,
|
|
7917
7891
|
action = _ref.action,
|
|
@@ -9722,9 +9696,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9722
9696
|
},
|
|
9723
9697
|
icon: theme.icon,
|
|
9724
9698
|
cardModal: {
|
|
9725
|
-
header: {
|
|
9726
|
-
height: theme.cardModal.header.height
|
|
9727
|
-
},
|
|
9728
9699
|
maxWidth: theme.cardModal.maxWidth,
|
|
9729
9700
|
maxWidthWithPadding: theme.cardModal.maxWidthWithPadding,
|
|
9730
9701
|
minHeight: theme.cardModal.minHeight
|
|
@@ -10025,15 +9996,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10025
9996
|
}
|
|
10026
9997
|
}
|
|
10027
9998
|
},
|
|
10028
|
-
iconButton: {
|
|
10029
|
-
width: theme.iconButton.width,
|
|
10030
|
-
height: theme.iconButton.height
|
|
10031
|
-
},
|
|
10032
|
-
fullscreenModal: {
|
|
10033
|
-
header: {
|
|
10034
|
-
height: theme.fullscreenModal.header.height
|
|
10035
|
-
}
|
|
10036
|
-
},
|
|
10037
9999
|
pageLoader: {
|
|
10038
10000
|
size: theme.pageLoader.size
|
|
10039
10001
|
},
|
|
@@ -10128,7 +10090,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10128
10090
|
}
|
|
10129
10091
|
},
|
|
10130
10092
|
fullscreenModal: {
|
|
10131
|
-
horizontalPadding: theme.fullscreenModal.
|
|
10093
|
+
horizontalPadding: theme.fullscreenModal.horizontalPadding,
|
|
10132
10094
|
body: {
|
|
10133
10095
|
verticalPadding: theme.fullscreenModal.body.verticalPadding
|
|
10134
10096
|
},
|
|
@@ -11108,18 +11070,12 @@ function NavigationBottomSheet(_ref) {
|
|
|
11108
11070
|
})
|
|
11109
11071
|
});
|
|
11110
11072
|
}
|
|
11111
|
-
function NavigationBottomSheetHeader(
|
|
11112
|
-
|
|
11113
|
-
left = _ref2.left;
|
|
11114
|
-
return /*#__PURE__*/jsx(NavigationModal.Header, {
|
|
11115
|
-
title: children,
|
|
11116
|
-
left: left,
|
|
11073
|
+
function NavigationBottomSheetHeader(props) {
|
|
11074
|
+
return /*#__PURE__*/jsx(NavigationModal.Header, _objectSpread(_objectSpread({}, props), {}, {
|
|
11117
11075
|
right: /*#__PURE__*/jsx(ModalBehaviour.CloseButton, {
|
|
11118
|
-
children: /*#__PURE__*/jsx(
|
|
11119
|
-
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
11120
|
-
})
|
|
11076
|
+
children: /*#__PURE__*/jsx(TopNavBar.CloseButton, {})
|
|
11121
11077
|
})
|
|
11122
|
-
});
|
|
11078
|
+
}));
|
|
11123
11079
|
}
|
|
11124
11080
|
function NavigationBottomSheetBody(props) {
|
|
11125
11081
|
return /*#__PURE__*/jsx(NavigationModal.Body, _objectSpread({
|
|
@@ -12872,88 +12828,6 @@ function Tooltip(_ref) {
|
|
|
12872
12828
|
Tooltip.Arrow = Arrow;
|
|
12873
12829
|
Tooltip.Content = TooltipContent;
|
|
12874
12830
|
|
|
12875
|
-
function TopNavBar(_ref) {
|
|
12876
|
-
var left = _ref.left,
|
|
12877
|
-
right = _ref.right,
|
|
12878
|
-
title = _ref.title,
|
|
12879
|
-
_ref$titleAlign = _ref.titleAlign,
|
|
12880
|
-
titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
|
|
12881
|
-
stickers = _ref.stickers,
|
|
12882
|
-
_ref$mode = _ref.mode,
|
|
12883
|
-
mode = _ref$mode === void 0 ? 'default' : _ref$mode,
|
|
12884
|
-
_ref$hasSeparator = _ref.hasSeparator,
|
|
12885
|
-
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator;
|
|
12886
|
-
var isLargeTitleMode = mode === 'largeTitle';
|
|
12887
|
-
return /*#__PURE__*/jsxs(VStack, {
|
|
12888
|
-
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
12889
|
-
width: "100%",
|
|
12890
|
-
height: mode === 'default' ? 56 : undefined,
|
|
12891
|
-
justifyContent: "center",
|
|
12892
|
-
paddingX: "kitt.2",
|
|
12893
|
-
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
12894
|
-
paddingBottom: "kitt.3",
|
|
12895
|
-
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
12896
|
-
borderColor: "kitt.separator",
|
|
12897
|
-
children: [/*#__PURE__*/jsxs(HStack, {
|
|
12898
|
-
alignItems: "center",
|
|
12899
|
-
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
12900
|
-
children: [left !== null && left !== void 0 ? left : /*#__PURE__*/jsx(View, {
|
|
12901
|
-
width: "kitt.button.minWidth"
|
|
12902
|
-
}), mode === 'default' ? /*#__PURE__*/jsx(View, {
|
|
12903
|
-
flexGrow: "1",
|
|
12904
|
-
flexShrink: 1,
|
|
12905
|
-
paddingRight: "kitt.2",
|
|
12906
|
-
paddingLeft: "kitt.2",
|
|
12907
|
-
children: title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
12908
|
-
textAlign: titleAlign,
|
|
12909
|
-
variant: "bold",
|
|
12910
|
-
ellipsizeMode: "tail",
|
|
12911
|
-
numberOfLines: 1,
|
|
12912
|
-
children: title
|
|
12913
|
-
}) : null
|
|
12914
|
-
}) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
|
|
12915
|
-
width: "kitt.button.minWidth"
|
|
12916
|
-
})]
|
|
12917
|
-
}), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
|
|
12918
|
-
space: "kitt.4",
|
|
12919
|
-
paddingX: "kitt.2",
|
|
12920
|
-
children: [stickers ? /*#__PURE__*/jsx(HStack, {
|
|
12921
|
-
width: "100%",
|
|
12922
|
-
space: "kitt.1",
|
|
12923
|
-
flexShrink: 1,
|
|
12924
|
-
flexWrap: "wrap",
|
|
12925
|
-
style: {
|
|
12926
|
-
rowGap: theme.getSpacing(1)
|
|
12927
|
-
},
|
|
12928
|
-
children: stickers.map(function (sticker, index) {
|
|
12929
|
-
return (
|
|
12930
|
-
/*#__PURE__*/
|
|
12931
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
12932
|
-
jsx(View, {
|
|
12933
|
-
children: sticker
|
|
12934
|
-
}, index)
|
|
12935
|
-
);
|
|
12936
|
-
})
|
|
12937
|
-
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
12938
|
-
base: "heading-m",
|
|
12939
|
-
children: title
|
|
12940
|
-
})]
|
|
12941
|
-
}) : null]
|
|
12942
|
-
});
|
|
12943
|
-
}
|
|
12944
|
-
function CloseButton(props) {
|
|
12945
|
-
return /*#__PURE__*/jsx(IconButton, _objectSpread({
|
|
12946
|
-
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
12947
|
-
}, props));
|
|
12948
|
-
}
|
|
12949
|
-
function BackButton(props) {
|
|
12950
|
-
return /*#__PURE__*/jsx(IconButton, _objectSpread({
|
|
12951
|
-
icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
|
|
12952
|
-
}, props));
|
|
12953
|
-
}
|
|
12954
|
-
TopNavBar.CloseButton = CloseButton;
|
|
12955
|
-
TopNavBar.BackButton = BackButton;
|
|
12956
|
-
|
|
12957
12831
|
function getTypographyTypeConfig(type, theme) {
|
|
12958
12832
|
var configs = theme.kitt.typography.types[getTypographyFamily(type)].configs;
|
|
12959
12833
|
return configs[type];
|