@ornikar/kitt-universal 27.9.0 → 27.9.1-canary.51004cd27185355acc481c9933556ade7509bc80.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 +14 -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 +4 -8
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +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 +154 -276
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +154 -276
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +152 -266
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +143 -252
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +153 -267
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +144 -253
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +160 -282
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +220 -336
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +3 -3
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +3 -3
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +3 -3
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +3 -3
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +3 -3
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +3 -3
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +3 -3
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +3 -3
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -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: {
|
|
@@ -2643,8 +2643,8 @@ var theme = {
|
|
|
2643
2643
|
forms: forms,
|
|
2644
2644
|
highlight: highlight,
|
|
2645
2645
|
icon: icon,
|
|
2646
|
-
buttonBadge: buttonBadge,
|
|
2647
2646
|
iconButton: iconButton,
|
|
2647
|
+
buttonBadge: buttonBadge,
|
|
2648
2648
|
listItem: listItem,
|
|
2649
2649
|
pageLoader: pageLoader,
|
|
2650
2650
|
picker: picker,
|
|
@@ -2751,7 +2751,7 @@ function ActionCardDisabled(_ref) {
|
|
|
2751
2751
|
});
|
|
2752
2752
|
}
|
|
2753
2753
|
|
|
2754
|
-
var _excluded$
|
|
2754
|
+
var _excluded$Q = ["children", "variant", "borderVariant", "borderRadius", "disabled", "isHovered", "isPressed", "isFocused"];
|
|
2755
2755
|
function ActionCard(_ref) {
|
|
2756
2756
|
var children = _ref.children,
|
|
2757
2757
|
_ref$variant = _ref.variant,
|
|
@@ -2764,7 +2764,7 @@ function ActionCard(_ref) {
|
|
|
2764
2764
|
isHovered = _ref.isHovered,
|
|
2765
2765
|
isPressed = _ref.isPressed,
|
|
2766
2766
|
isFocused = _ref.isFocused,
|
|
2767
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2767
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
2768
2768
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
2769
2769
|
children: disabled ? /*#__PURE__*/jsx(ActionCardDisabled, {
|
|
2770
2770
|
borderRadius: borderRadius,
|
|
@@ -3096,7 +3096,7 @@ var getTypographyTypeWithAncestorValue = function (type, typographyTypeInContext
|
|
|
3096
3096
|
return !!isAllValuesUndefined && !!typographyTypeInContext ? typographyTypeInContext : type;
|
|
3097
3097
|
};
|
|
3098
3098
|
|
|
3099
|
-
var _excluded$
|
|
3099
|
+
var _excluded$P = ["accessibilityRole", "base", "small", "medium", "large", "wide", "type", "variant", "color"];
|
|
3100
3100
|
var TypographyFamilyContext = /*#__PURE__*/createContext(null);
|
|
3101
3101
|
var TypographyTypeContext = /*#__PURE__*/createContext(null);
|
|
3102
3102
|
var TypographyColorContext = /*#__PURE__*/createContext('black');
|
|
@@ -3220,7 +3220,7 @@ function Typography(_ref2) {
|
|
|
3220
3220
|
} : _ref2$type,
|
|
3221
3221
|
variant = _ref2.variant,
|
|
3222
3222
|
color = _ref2.color,
|
|
3223
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
3223
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$P);
|
|
3224
3224
|
var sx = useSx();
|
|
3225
3225
|
var typographyFamilyInContext = useContext(TypographyFamilyContext);
|
|
3226
3226
|
var typographyTypeInContext = useContext(TypographyTypeContext);
|
|
@@ -3362,12 +3362,12 @@ function Icon(_ref) {
|
|
|
3362
3362
|
});
|
|
3363
3363
|
}
|
|
3364
3364
|
|
|
3365
|
-
var _excluded$
|
|
3365
|
+
var _excluded$O = ["color", "size"],
|
|
3366
3366
|
_excluded2$6 = ["color"];
|
|
3367
3367
|
function TypographyIconSpecifiedColor(_ref) {
|
|
3368
3368
|
var color = _ref.color,
|
|
3369
3369
|
size = _ref.size,
|
|
3370
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3370
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
3371
3371
|
var colorValue = getTypographyColorValue(color);
|
|
3372
3372
|
var sx = useSx();
|
|
3373
3373
|
var _sx = sx({
|
|
@@ -3407,7 +3407,7 @@ var getButtonTextColorByType = function (type, variant, isHovered, isPressed, is
|
|
|
3407
3407
|
return "".concat(baseKey, ".default");
|
|
3408
3408
|
};
|
|
3409
3409
|
|
|
3410
|
-
var _excluded$
|
|
3410
|
+
var _excluded$N = ["type", "variant", "isDisabled", "icon", "children", "isHovered", "isPressed", "isFocused", "innerSpacing", "size"];
|
|
3411
3411
|
function ButtonContentChildren(_ref) {
|
|
3412
3412
|
var type = _ref.type,
|
|
3413
3413
|
icon = _ref.icon,
|
|
@@ -3507,7 +3507,7 @@ function ButtonContent(_ref2) {
|
|
|
3507
3507
|
_ref2.isFocused;
|
|
3508
3508
|
var innerSpacing = _ref2.innerSpacing,
|
|
3509
3509
|
size = _ref2.size,
|
|
3510
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3510
|
+
props = _objectWithoutProperties(_ref2, _excluded$N);
|
|
3511
3511
|
var color = getButtonTextColorByType(type, variant, isHovered, isPressed, isDisabled);
|
|
3512
3512
|
return /*#__PURE__*/jsx(View, {
|
|
3513
3513
|
_web: {
|
|
@@ -3706,7 +3706,7 @@ function LoaderIcon(_ref) {
|
|
|
3706
3706
|
});
|
|
3707
3707
|
}
|
|
3708
3708
|
|
|
3709
|
-
var _excluded$
|
|
3709
|
+
var _excluded$M = ["as", "onPress", "disabled", "icon", "stretch"];
|
|
3710
3710
|
var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3711
3711
|
var as = _ref.as,
|
|
3712
3712
|
onPress = _ref.onPress,
|
|
@@ -3717,7 +3717,7 @@ var ActionsItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3717
3717
|
base: true,
|
|
3718
3718
|
medium: false
|
|
3719
3719
|
} : _ref$stretch,
|
|
3720
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3720
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
3721
3721
|
var _useState = useState(false),
|
|
3722
3722
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3723
3723
|
isLoading = _useState2[0],
|
|
@@ -3795,7 +3795,7 @@ function ActionsButton(_ref) {
|
|
|
3795
3795
|
}, props));
|
|
3796
3796
|
}
|
|
3797
3797
|
|
|
3798
|
-
var _excluded$
|
|
3798
|
+
var _excluded$L = ["children", "layout", "reversed"];
|
|
3799
3799
|
function getCurrentLayout(layout) {
|
|
3800
3800
|
if (!layout) return {
|
|
3801
3801
|
base: 'stretch',
|
|
@@ -3827,7 +3827,7 @@ function Actions(_ref) {
|
|
|
3827
3827
|
reversed = _ref$reversed === void 0 ? {
|
|
3828
3828
|
base: false
|
|
3829
3829
|
} : _ref$reversed,
|
|
3830
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3830
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
3831
3831
|
var shouldReverse = typeof reversed === 'boolean' ? {
|
|
3832
3832
|
base: !!reversed
|
|
3833
3833
|
} : createResponsiveStyleFromProp(reversed, true, false);
|
|
@@ -3880,7 +3880,7 @@ function getInitials(firstname, lastname) {
|
|
|
3880
3880
|
return "".concat(firstname[0]).concat(lastname[0]).toUpperCase();
|
|
3881
3881
|
}
|
|
3882
3882
|
|
|
3883
|
-
var _excluded$
|
|
3883
|
+
var _excluded$K = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
3884
3884
|
function AvatarContent(_ref) {
|
|
3885
3885
|
var size = _ref.size,
|
|
3886
3886
|
src = _ref.src,
|
|
@@ -3943,7 +3943,7 @@ function Avatar(_ref2) {
|
|
|
3943
3943
|
height = _ref2.height,
|
|
3944
3944
|
dark = _ref2.dark,
|
|
3945
3945
|
disabled = _ref2.disabled,
|
|
3946
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
3946
|
+
props = _objectWithoutProperties(_ref2, _excluded$K);
|
|
3947
3947
|
var currentSize = getCurrentSize({
|
|
3948
3948
|
size: size,
|
|
3949
3949
|
sizeVariant: sizeVariant
|
|
@@ -4126,7 +4126,7 @@ function CardModalRotationContainer(props) {
|
|
|
4126
4126
|
}, props));
|
|
4127
4127
|
}
|
|
4128
4128
|
|
|
4129
|
-
var _excluded$
|
|
4129
|
+
var _excluded$J = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4130
4130
|
var contentAnimationEnter$1 = "kitt-u_contentAnimationEnter_c11xxy4r";
|
|
4131
4131
|
var contentAnimatioEnterActive$1 = "kitt-u_contentAnimatioEnterActive_cl52117";
|
|
4132
4132
|
var contentAnimatioExit$1 = "kitt-u_contentAnimatioExit_cyjczep";
|
|
@@ -4165,7 +4165,7 @@ function CardModalAnimation(_ref) {
|
|
|
4165
4165
|
onExit = _ref.onExit,
|
|
4166
4166
|
onExited = _ref.onExited,
|
|
4167
4167
|
onClose = _ref.onClose,
|
|
4168
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4168
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4169
4169
|
var theme = useTheme();
|
|
4170
4170
|
var animation = theme.kitt.cardModal.animation;
|
|
4171
4171
|
var sharedProps = {
|
|
@@ -4198,13 +4198,13 @@ function CardModalAnimation(_ref) {
|
|
|
4198
4198
|
}));
|
|
4199
4199
|
}
|
|
4200
4200
|
|
|
4201
|
-
var _excluded$
|
|
4201
|
+
var _excluded$I = ["children", "visible", "onClose", "onExited"];
|
|
4202
4202
|
function CardModalBehaviour(_ref) {
|
|
4203
4203
|
var children = _ref.children,
|
|
4204
4204
|
visible = _ref.visible,
|
|
4205
4205
|
onClose = _ref.onClose,
|
|
4206
4206
|
onExited = _ref.onExited,
|
|
4207
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4207
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4208
4208
|
var _useState = useState(visible),
|
|
4209
4209
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4210
4210
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4229,32 +4229,23 @@ function CardModalBehaviour(_ref) {
|
|
|
4229
4229
|
});
|
|
4230
4230
|
}
|
|
4231
4231
|
|
|
4232
|
-
var _excluded$
|
|
4232
|
+
var _excluded$H = ["children", "padding"];
|
|
4233
4233
|
function CardModalBody(_ref) {
|
|
4234
4234
|
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);
|
|
4235
|
+
_ref$padding = _ref.padding,
|
|
4236
|
+
padding = _ref$padding === void 0 ? 'kitt.4' : _ref$padding,
|
|
4237
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4246
4238
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4247
4239
|
showsVerticalScrollIndicator: false,
|
|
4248
4240
|
_contentContainerStyle: {
|
|
4249
|
-
|
|
4250
|
-
paddingY: paddingY
|
|
4241
|
+
padding: padding
|
|
4251
4242
|
}
|
|
4252
4243
|
}, props), {}, {
|
|
4253
4244
|
children: children
|
|
4254
4245
|
}));
|
|
4255
4246
|
}
|
|
4256
4247
|
|
|
4257
|
-
var _excluded$
|
|
4248
|
+
var _excluded$G = ["children", "padding", "hasSeparator"];
|
|
4258
4249
|
function CardModalFooter(_ref) {
|
|
4259
4250
|
var children = _ref.children,
|
|
4260
4251
|
_ref$padding = _ref.padding,
|
|
@@ -4264,7 +4255,7 @@ function CardModalFooter(_ref) {
|
|
|
4264
4255
|
} : _ref$padding,
|
|
4265
4256
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4266
4257
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4267
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4258
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4268
4259
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4269
4260
|
marginTop: "kitt.2",
|
|
4270
4261
|
padding: padding,
|
|
@@ -4278,58 +4269,148 @@ function CardModalFooter(_ref) {
|
|
|
4278
4269
|
}));
|
|
4279
4270
|
}
|
|
4280
4271
|
|
|
4281
|
-
var
|
|
4282
|
-
|
|
4283
|
-
|
|
4272
|
+
var getButtonTypeAndVariant = function (iconColor) {
|
|
4273
|
+
switch (iconColor) {
|
|
4274
|
+
case 'black':
|
|
4275
|
+
return {
|
|
4276
|
+
type: 'tertiary'
|
|
4277
|
+
};
|
|
4278
|
+
case 'secondary':
|
|
4279
|
+
return {
|
|
4280
|
+
type: 'secondary'
|
|
4281
|
+
};
|
|
4282
|
+
case 'primary':
|
|
4283
|
+
return {
|
|
4284
|
+
type: 'primary'
|
|
4285
|
+
};
|
|
4286
|
+
case 'primary-plain':
|
|
4287
|
+
return {
|
|
4288
|
+
type: 'primary'
|
|
4289
|
+
};
|
|
4290
|
+
case 'ghost':
|
|
4291
|
+
return {
|
|
4292
|
+
type: 'tertiary',
|
|
4293
|
+
variant: 'revert'
|
|
4294
|
+
};
|
|
4295
|
+
default:
|
|
4296
|
+
return {
|
|
4297
|
+
type: 'secondary'
|
|
4298
|
+
};
|
|
4299
|
+
}
|
|
4300
|
+
};
|
|
4301
|
+
|
|
4302
|
+
var _excluded$F = ["color", "ariaLabel"];
|
|
4303
|
+
/**
|
|
4304
|
+
* @deprecated IconButton should only be used as a navigation button
|
|
4305
|
+
* Other use cases should use a <Button> component with an icon
|
|
4306
|
+
*/
|
|
4307
|
+
function IconButton(_ref) {
|
|
4308
|
+
var _ref$color = _ref.color,
|
|
4309
|
+
color = _ref$color === void 0 ? 'black' : _ref$color;
|
|
4310
|
+
_ref.ariaLabel;
|
|
4311
|
+
var props = _objectWithoutProperties(_ref, _excluded$F);
|
|
4312
|
+
var _getButtonTypeAndVari = getButtonTypeAndVariant(color),
|
|
4313
|
+
legacyColorToType = _getButtonTypeAndVari.type,
|
|
4314
|
+
legacyColorToVariant = _getButtonTypeAndVari.variant;
|
|
4315
|
+
return /*#__PURE__*/jsx(Button, _objectSpread({
|
|
4316
|
+
variant: legacyColorToVariant,
|
|
4317
|
+
type: legacyColorToType
|
|
4318
|
+
}, props));
|
|
4319
|
+
}
|
|
4320
|
+
function CloseIconButton(props) {
|
|
4321
|
+
return /*#__PURE__*/jsx(IconButton, _objectSpread({
|
|
4322
|
+
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
4323
|
+
}, props));
|
|
4324
|
+
}
|
|
4325
|
+
|
|
4326
|
+
function TopNavBar(_ref) {
|
|
4327
|
+
var left = _ref.left,
|
|
4328
|
+
right = _ref.right,
|
|
4284
4329
|
title = _ref.title,
|
|
4285
|
-
_ref$
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4330
|
+
_ref$titleAlign = _ref.titleAlign,
|
|
4331
|
+
titleAlign = _ref$titleAlign === void 0 ? 'center' : _ref$titleAlign,
|
|
4332
|
+
stickers = _ref.stickers,
|
|
4333
|
+
_ref$mode = _ref.mode,
|
|
4334
|
+
mode = _ref$mode === void 0 ? 'default' : _ref$mode,
|
|
4290
4335
|
_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",
|
|
4336
|
+
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator;
|
|
4337
|
+
var isLargeTitleMode = mode === 'largeTitle';
|
|
4338
|
+
var leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
|
|
4339
|
+
width: "kitt.iconButton.width"
|
|
4340
|
+
});
|
|
4341
|
+
return /*#__PURE__*/jsxs(VStack, {
|
|
4342
|
+
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
4304
4343
|
width: "100%",
|
|
4305
|
-
height:
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4344
|
+
height: mode === 'default' ? 56 : undefined,
|
|
4345
|
+
justifyContent: "center",
|
|
4346
|
+
paddingX: "kitt.2",
|
|
4347
|
+
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
4348
|
+
paddingBottom: "kitt.3",
|
|
4349
|
+
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4350
|
+
borderColor: "kitt.separator",
|
|
4351
|
+
children: [/*#__PURE__*/jsxs(HStack, {
|
|
4309
4352
|
alignItems: "center",
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
children: [left ? /*#__PURE__*/jsx(View, {
|
|
4313
|
-
width: "kitt.iconButton.width",
|
|
4314
|
-
children: left
|
|
4315
|
-
}) : null, /*#__PURE__*/jsxs(View, {
|
|
4353
|
+
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
4354
|
+
children: [left !== null && left !== void 0 ? left : leftEmptySpace, mode === 'default' ? /*#__PURE__*/jsx(View, {
|
|
4316
4355
|
flexGrow: "1",
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4356
|
+
flexShrink: 1,
|
|
4357
|
+
paddingRight: "kitt.2",
|
|
4358
|
+
paddingLeft: "kitt.2",
|
|
4359
|
+
children: title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
4360
|
+
textAlign: titleAlign,
|
|
4321
4361
|
variant: "bold",
|
|
4362
|
+
ellipsizeMode: "tail",
|
|
4363
|
+
numberOfLines: 1,
|
|
4322
4364
|
children: title
|
|
4323
|
-
}) : null
|
|
4324
|
-
}), right ? /*#__PURE__*/jsx(View, {
|
|
4325
|
-
width: "kitt.iconButton.width"
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4365
|
+
}) : null
|
|
4366
|
+
}) : null, right !== null && right !== void 0 ? right : /*#__PURE__*/jsx(View, {
|
|
4367
|
+
width: "kitt.iconButton.width"
|
|
4368
|
+
})]
|
|
4369
|
+
}), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
|
|
4370
|
+
space: "kitt.4",
|
|
4371
|
+
paddingX: "kitt.2",
|
|
4372
|
+
children: [stickers ? /*#__PURE__*/jsx(HStack, {
|
|
4373
|
+
width: "100%",
|
|
4374
|
+
space: "kitt.1",
|
|
4375
|
+
flexShrink: 1,
|
|
4376
|
+
flexWrap: "wrap",
|
|
4377
|
+
style: {
|
|
4378
|
+
rowGap: theme.getSpacing(1)
|
|
4379
|
+
},
|
|
4380
|
+
children: stickers.map(function (sticker, index) {
|
|
4381
|
+
return (
|
|
4382
|
+
/*#__PURE__*/
|
|
4383
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
4384
|
+
jsx(View, {
|
|
4385
|
+
children: sticker
|
|
4386
|
+
}, index)
|
|
4387
|
+
);
|
|
4388
|
+
})
|
|
4389
|
+
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
4390
|
+
base: "heading-m",
|
|
4391
|
+
children: title
|
|
4392
|
+
})]
|
|
4393
|
+
}) : null]
|
|
4394
|
+
});
|
|
4330
4395
|
}
|
|
4396
|
+
function CloseButton(props) {
|
|
4397
|
+
return /*#__PURE__*/jsx(IconButton, _objectSpread({
|
|
4398
|
+
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
4399
|
+
}, props));
|
|
4400
|
+
}
|
|
4401
|
+
function BackButton(props) {
|
|
4402
|
+
return /*#__PURE__*/jsx(IconButton, _objectSpread({
|
|
4403
|
+
icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {})
|
|
4404
|
+
}, props));
|
|
4405
|
+
}
|
|
4406
|
+
TopNavBar.CloseButton = CloseButton;
|
|
4407
|
+
TopNavBar.BackButton = BackButton;
|
|
4331
4408
|
|
|
4332
|
-
|
|
4409
|
+
function CardModalHeader(props) {
|
|
4410
|
+
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
var _excluded$E = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4333
4414
|
function CardModal(_ref) {
|
|
4334
4415
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4335
4416
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4340,7 +4421,7 @@ function CardModal(_ref) {
|
|
|
4340
4421
|
header = _ref.header,
|
|
4341
4422
|
body = _ref.body,
|
|
4342
4423
|
footer = _ref.footer,
|
|
4343
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4424
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
4344
4425
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4345
4426
|
overflow: "hidden",
|
|
4346
4427
|
backgroundColor: backgroundColor,
|
|
@@ -4555,11 +4636,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4555
4636
|
}));
|
|
4556
4637
|
}
|
|
4557
4638
|
|
|
4558
|
-
var _excluded$
|
|
4639
|
+
var _excluded$D = ["direction", "contentContainerStyle"];
|
|
4559
4640
|
function ChoicesContainer(_ref) {
|
|
4560
4641
|
var direction = _ref.direction,
|
|
4561
4642
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4562
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4643
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
4563
4644
|
if (direction === 'row') {
|
|
4564
4645
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4565
4646
|
horizontal: true,
|
|
@@ -4634,7 +4715,7 @@ var ChoicesElements = {
|
|
|
4634
4715
|
ButtonChoices: ButtonChoices
|
|
4635
4716
|
};
|
|
4636
4717
|
|
|
4637
|
-
var _excluded$
|
|
4718
|
+
var _excluded$C = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4638
4719
|
var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
|
|
4639
4720
|
var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
|
|
4640
4721
|
var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
|
|
@@ -4673,7 +4754,7 @@ function DialogModalAnimation(_ref) {
|
|
|
4673
4754
|
onExit = _ref.onExit,
|
|
4674
4755
|
onExited = _ref.onExited,
|
|
4675
4756
|
onClose = _ref.onClose,
|
|
4676
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4757
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
4677
4758
|
var theme = useTheme();
|
|
4678
4759
|
var animation = theme.kitt.dialogModal.animation;
|
|
4679
4760
|
var sharedProps = {
|
|
@@ -4708,13 +4789,13 @@ function DialogModalAnimation(_ref) {
|
|
|
4708
4789
|
}));
|
|
4709
4790
|
}
|
|
4710
4791
|
|
|
4711
|
-
var _excluded$
|
|
4792
|
+
var _excluded$B = ["children", "visible", "onClose", "onExited"];
|
|
4712
4793
|
function DialogModalBehaviour(_ref) {
|
|
4713
4794
|
var children = _ref.children,
|
|
4714
4795
|
visible = _ref.visible,
|
|
4715
4796
|
onClose = _ref.onClose,
|
|
4716
4797
|
onExited = _ref.onExited,
|
|
4717
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4798
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
4718
4799
|
var _useState = useState(visible),
|
|
4719
4800
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4720
4801
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4745,7 +4826,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
4745
4826
|
});
|
|
4746
4827
|
}
|
|
4747
4828
|
|
|
4748
|
-
var _excluded$
|
|
4829
|
+
var _excluded$A = ["stretch"];
|
|
4749
4830
|
function DialogModal(_ref) {
|
|
4750
4831
|
var illustration = _ref.illustration,
|
|
4751
4832
|
title = _ref.title,
|
|
@@ -4785,7 +4866,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
4785
4866
|
function DialogModalButton(_ref2) {
|
|
4786
4867
|
var _ref2$stretch = _ref2.stretch,
|
|
4787
4868
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
4788
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
4869
|
+
props = _objectWithoutProperties(_ref2, _excluded$A);
|
|
4789
4870
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
4790
4871
|
stretch: stretch
|
|
4791
4872
|
}, props));
|
|
@@ -4822,7 +4903,7 @@ function Emoji(_ref) {
|
|
|
4822
4903
|
});
|
|
4823
4904
|
}
|
|
4824
4905
|
|
|
4825
|
-
var _excluded$
|
|
4906
|
+
var _excluded$z = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
4826
4907
|
_excluded2$5 = ["phoneNumber", "children"],
|
|
4827
4908
|
_excluded3$4 = ["phoneNumber", "children"],
|
|
4828
4909
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -4832,7 +4913,7 @@ function ExternalAppLink(_ref) {
|
|
|
4832
4913
|
appValue = _ref.appValue,
|
|
4833
4914
|
onPress = _ref.onPress,
|
|
4834
4915
|
onOpenAppError = _ref.onOpenAppError,
|
|
4835
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4916
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
4836
4917
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
4837
4918
|
var handleOnPress = /*#__PURE__*/function () {
|
|
4838
4919
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -4927,14 +5008,14 @@ var defaultOpenLinkBehavior = {
|
|
|
4927
5008
|
web: 'targetBlank'
|
|
4928
5009
|
};
|
|
4929
5010
|
|
|
4930
|
-
var _excluded$
|
|
5011
|
+
var _excluded$y = ["as", "href", "openLinkBehavior", "onPress"];
|
|
4931
5012
|
function ExternalLink(_ref) {
|
|
4932
5013
|
var Component = _ref.as,
|
|
4933
5014
|
href = _ref.href,
|
|
4934
5015
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
4935
5016
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
4936
5017
|
onPress = _ref.onPress,
|
|
4937
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5018
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
4938
5019
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
4939
5020
|
accessibilityRole: "link",
|
|
4940
5021
|
href: href,
|
|
@@ -5010,7 +5091,7 @@ function InputTextContainer(props) {
|
|
|
5010
5091
|
}, props));
|
|
5011
5092
|
}
|
|
5012
5093
|
|
|
5013
|
-
var _excluded$
|
|
5094
|
+
var _excluded$x = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5014
5095
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5015
5096
|
var id = _ref.id,
|
|
5016
5097
|
right = _ref.right;
|
|
@@ -5031,7 +5112,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5031
5112
|
multiline = _ref.multiline,
|
|
5032
5113
|
height = _ref.height,
|
|
5033
5114
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5034
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5115
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5035
5116
|
var theme = useTheme();
|
|
5036
5117
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5037
5118
|
base: 'body-m'
|
|
@@ -5155,12 +5236,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5155
5236
|
});
|
|
5156
5237
|
}
|
|
5157
5238
|
|
|
5158
|
-
var _excluded$
|
|
5239
|
+
var _excluded$w = ["children", "testID"];
|
|
5159
5240
|
function AutocompleteOption(_ref) {
|
|
5160
5241
|
var children = _ref.children,
|
|
5161
5242
|
_ref$testID = _ref.testID,
|
|
5162
5243
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5163
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5244
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
5164
5245
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5165
5246
|
paddingX: {
|
|
5166
5247
|
base: 'kitt.2',
|
|
@@ -5173,7 +5254,7 @@ function AutocompleteOption(_ref) {
|
|
|
5173
5254
|
}));
|
|
5174
5255
|
}
|
|
5175
5256
|
|
|
5176
|
-
var _excluded$
|
|
5257
|
+
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
5258
|
_excluded2$4 = ["onClick", "onPress"],
|
|
5178
5259
|
_excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5179
5260
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5207,7 +5288,7 @@ function Autocomplete(_ref) {
|
|
|
5207
5288
|
_ref$zIndex = _ref.zIndex,
|
|
5208
5289
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5209
5290
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5210
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5291
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
5211
5292
|
var childrenArray = Children.toArray(_children);
|
|
5212
5293
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5213
5294
|
return {
|
|
@@ -5414,7 +5495,7 @@ function getBorderColor$1(_ref) {
|
|
|
5414
5495
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5415
5496
|
}
|
|
5416
5497
|
|
|
5417
|
-
var _excluded$
|
|
5498
|
+
var _excluded$u = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5418
5499
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5419
5500
|
var checked = _ref.checked,
|
|
5420
5501
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5424,7 +5505,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5424
5505
|
onChange = _ref.onChange,
|
|
5425
5506
|
onBlur = _ref.onBlur,
|
|
5426
5507
|
onFocus = _ref.onFocus,
|
|
5427
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5508
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
5428
5509
|
var theme = useTheme();
|
|
5429
5510
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5430
5511
|
hitSlop: hitSlop
|
|
@@ -5740,7 +5821,7 @@ function PartContainer(_ref) {
|
|
|
5740
5821
|
});
|
|
5741
5822
|
}
|
|
5742
5823
|
|
|
5743
|
-
var _excluded$
|
|
5824
|
+
var _excluded$t = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
5744
5825
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5745
5826
|
var id = _ref.id,
|
|
5746
5827
|
value = _ref.value,
|
|
@@ -5758,7 +5839,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5758
5839
|
onBlur = _ref.onBlur,
|
|
5759
5840
|
onFocus = _ref.onFocus,
|
|
5760
5841
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
5761
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
5842
|
+
_objectWithoutProperties(_ref, _excluded$t);
|
|
5762
5843
|
var monthRef = useRef(null);
|
|
5763
5844
|
var yearRef = useRef(null);
|
|
5764
5845
|
var defaultValue = value;
|
|
@@ -5898,10 +5979,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5898
5979
|
});
|
|
5899
5980
|
});
|
|
5900
5981
|
|
|
5901
|
-
var _excluded$
|
|
5982
|
+
var _excluded$s = ["value"];
|
|
5902
5983
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5903
5984
|
var value = _ref.value,
|
|
5904
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5985
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
5905
5986
|
// in apps, final-form can give a string value that will break the component
|
|
5906
5987
|
var currentValue = value || undefined;
|
|
5907
5988
|
return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
|
|
@@ -6485,7 +6566,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
6485
6566
|
};
|
|
6486
6567
|
}
|
|
6487
6568
|
|
|
6488
|
-
var _excluded$
|
|
6569
|
+
var _excluded$r = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
6489
6570
|
function InputAddress(_ref) {
|
|
6490
6571
|
var initialValue = _ref.initialValue,
|
|
6491
6572
|
_ref$itemToString = _ref.itemToString,
|
|
@@ -6493,7 +6574,7 @@ function InputAddress(_ref) {
|
|
|
6493
6574
|
errorElement = _ref.errorElement,
|
|
6494
6575
|
emptyResultsElement = _ref.emptyResultsElement,
|
|
6495
6576
|
_onChange = _ref.onChange,
|
|
6496
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6577
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
6497
6578
|
var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
|
|
6498
6579
|
state = _useGoogleMapsAutocom.state,
|
|
6499
6580
|
_onInputChange = _useGoogleMapsAutocom.onInputChange,
|
|
@@ -6590,10 +6671,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6590
6671
|
}, props));
|
|
6591
6672
|
});
|
|
6592
6673
|
|
|
6593
|
-
var _excluded$
|
|
6674
|
+
var _excluded$q = ["onChange"];
|
|
6594
6675
|
var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6595
6676
|
var onChange = _ref.onChange,
|
|
6596
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6677
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
6597
6678
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
6598
6679
|
ref: ref
|
|
6599
6680
|
}, props), {}, {
|
|
@@ -6610,11 +6691,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6610
6691
|
}));
|
|
6611
6692
|
});
|
|
6612
6693
|
|
|
6613
|
-
var _excluded$
|
|
6694
|
+
var _excluded$p = ["isPasswordDefaultVisible", "right"];
|
|
6614
6695
|
var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6615
6696
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
6616
6697
|
right = _ref.right,
|
|
6617
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6698
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
6618
6699
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
6619
6700
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6620
6701
|
isVisible = _useState2[0],
|
|
@@ -6642,7 +6723,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6642
6723
|
}));
|
|
6643
6724
|
});
|
|
6644
6725
|
|
|
6645
|
-
var _excluded$
|
|
6726
|
+
var _excluded$o = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
|
|
6646
6727
|
function isPhoneNumberValid(number) {
|
|
6647
6728
|
return isValidNumber(number);
|
|
6648
6729
|
}
|
|
@@ -6656,7 +6737,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6656
6737
|
_ref$phoneNumberLengt = _ref.phoneNumberLength,
|
|
6657
6738
|
phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
|
|
6658
6739
|
onChange = _ref.onChange,
|
|
6659
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6740
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
6660
6741
|
var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
6661
6742
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
6662
6743
|
ref: ref
|
|
@@ -7092,7 +7173,7 @@ function RadioButton(_ref) {
|
|
|
7092
7173
|
});
|
|
7093
7174
|
}
|
|
7094
7175
|
|
|
7095
|
-
var _excluded$
|
|
7176
|
+
var _excluded$n = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
7096
7177
|
function RadioButtonGroupItem(_ref) {
|
|
7097
7178
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
7098
7179
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -7105,7 +7186,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
7105
7186
|
onFocus = _ref2.onFocus,
|
|
7106
7187
|
onBlur = _ref2.onBlur,
|
|
7107
7188
|
onChange = _ref2.onChange,
|
|
7108
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7189
|
+
props = _objectWithoutProperties(_ref2, _excluded$n);
|
|
7109
7190
|
var _useState = useState(value),
|
|
7110
7191
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7111
7192
|
currentValue = _useState2[0],
|
|
@@ -7137,12 +7218,12 @@ function RadioButtonGroup(_ref2) {
|
|
|
7137
7218
|
}
|
|
7138
7219
|
RadioButtonGroup.RadioButton = RadioButtonGroupItem;
|
|
7139
7220
|
|
|
7140
|
-
var _excluded$
|
|
7221
|
+
var _excluded$m = ["helper", "limit"];
|
|
7141
7222
|
var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7142
7223
|
var _props$value, _props$value2;
|
|
7143
7224
|
var helper = _ref.helper,
|
|
7144
7225
|
limit = _ref.limit,
|
|
7145
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7226
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
7146
7227
|
var shouldDisplayLimit = limit && limit > 0;
|
|
7147
7228
|
var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
|
|
7148
7229
|
var limitContainerAnimatedStyle = useAnimatedStyle(function () {
|
|
@@ -7301,7 +7382,7 @@ function ToggleAnimated(_ref) {
|
|
|
7301
7382
|
});
|
|
7302
7383
|
}
|
|
7303
7384
|
|
|
7304
|
-
var _excluded$
|
|
7385
|
+
var _excluded$l = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
7305
7386
|
var getLabelTypographyType = function (size) {
|
|
7306
7387
|
return size === 'medium' ? 'body-m' : 'body-l';
|
|
7307
7388
|
};
|
|
@@ -7323,7 +7404,7 @@ function Toggle(_ref) {
|
|
|
7323
7404
|
value = _ref$value === void 0 ? false : _ref$value,
|
|
7324
7405
|
_ref$onChange = _ref.onChange,
|
|
7325
7406
|
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
7326
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7407
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7327
7408
|
var theme = useKittTheme();
|
|
7328
7409
|
return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
|
|
7329
7410
|
alignItems: "center"
|
|
@@ -7362,13 +7443,13 @@ function Toggle(_ref) {
|
|
|
7362
7443
|
}));
|
|
7363
7444
|
}
|
|
7364
7445
|
|
|
7365
|
-
var _excluded$
|
|
7446
|
+
var _excluded$k = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
7366
7447
|
function FullscreenModalBody(_ref) {
|
|
7367
7448
|
var children = _ref.children,
|
|
7368
7449
|
shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
|
|
7369
7450
|
style = _ref.style,
|
|
7370
7451
|
shouldHandleTopNotch = _ref.shouldHandleTopNotch,
|
|
7371
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7452
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7372
7453
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7373
7454
|
bottom = _useSafeAreaInsets.bottom,
|
|
7374
7455
|
top = _useSafeAreaInsets.top;
|
|
@@ -7388,14 +7469,14 @@ function FullscreenModalBody(_ref) {
|
|
|
7388
7469
|
}));
|
|
7389
7470
|
}
|
|
7390
7471
|
|
|
7391
|
-
var _excluded$
|
|
7472
|
+
var _excluded$j = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
7392
7473
|
function FullscreenModalFooter(_ref) {
|
|
7393
7474
|
var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
|
|
7394
7475
|
shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
|
|
7395
7476
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
7396
7477
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
7397
7478
|
children = _ref.children,
|
|
7398
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7479
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7399
7480
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7400
7481
|
bottom = _useSafeAreaInsets.bottom;
|
|
7401
7482
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
@@ -7412,7 +7493,7 @@ function FullscreenModalFooter(_ref) {
|
|
|
7412
7493
|
}));
|
|
7413
7494
|
}
|
|
7414
7495
|
|
|
7415
|
-
var _excluded$
|
|
7496
|
+
var _excluded$i = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
7416
7497
|
var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
|
|
7417
7498
|
var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
|
|
7418
7499
|
var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
|
|
@@ -7451,7 +7532,7 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7451
7532
|
onExit = _ref.onExit,
|
|
7452
7533
|
onExited = _ref.onExited,
|
|
7453
7534
|
onClose = _ref.onClose,
|
|
7454
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7535
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
7455
7536
|
var theme = useTheme();
|
|
7456
7537
|
var animation = theme.kitt.fullscreenModal.animation;
|
|
7457
7538
|
var sharedProps = {
|
|
@@ -7478,13 +7559,13 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7478
7559
|
}));
|
|
7479
7560
|
}
|
|
7480
7561
|
|
|
7481
|
-
var _excluded$
|
|
7562
|
+
var _excluded$h = ["children", "visible", "onClose", "onExited"];
|
|
7482
7563
|
function FullscreenModalBehaviour(_ref) {
|
|
7483
7564
|
var children = _ref.children,
|
|
7484
7565
|
visible = _ref.visible,
|
|
7485
7566
|
onClose = _ref.onClose,
|
|
7486
7567
|
onExited = _ref.onExited,
|
|
7487
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7568
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
7488
7569
|
var _useState = useState(visible),
|
|
7489
7570
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7490
7571
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -7531,64 +7612,17 @@ function FullscreenModalContainer(_ref) {
|
|
|
7531
7612
|
});
|
|
7532
7613
|
}
|
|
7533
7614
|
|
|
7534
|
-
var _excluded$
|
|
7615
|
+
var _excluded$g = ["shouldHandleTopNotch"];
|
|
7535
7616
|
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,
|
|
7617
|
+
var _ref$shouldHandleTopN = _ref.shouldHandleTopNotch,
|
|
7544
7618
|
shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
|
|
7545
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7619
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
7546
7620
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7547
7621
|
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",
|
|
7622
|
+
return /*#__PURE__*/jsx(View, {
|
|
7556
7623
|
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
|
-
}));
|
|
7624
|
+
children: /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props))
|
|
7625
|
+
});
|
|
7592
7626
|
}
|
|
7593
7627
|
|
|
7594
7628
|
function FullscreenModal(_ref) {
|
|
@@ -7858,60 +7892,6 @@ function Highlight(_ref) {
|
|
|
7858
7892
|
});
|
|
7859
7893
|
}
|
|
7860
7894
|
|
|
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
7895
|
function InfoCard(_ref) {
|
|
7916
7896
|
var title = _ref.title,
|
|
7917
7897
|
action = _ref.action,
|
|
@@ -9722,9 +9702,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9722
9702
|
},
|
|
9723
9703
|
icon: theme.icon,
|
|
9724
9704
|
cardModal: {
|
|
9725
|
-
header: {
|
|
9726
|
-
height: theme.cardModal.header.height
|
|
9727
|
-
},
|
|
9728
9705
|
maxWidth: theme.cardModal.maxWidth,
|
|
9729
9706
|
maxWidthWithPadding: theme.cardModal.maxWidthWithPadding,
|
|
9730
9707
|
minHeight: theme.cardModal.minHeight
|
|
@@ -10029,11 +10006,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10029
10006
|
width: theme.iconButton.width,
|
|
10030
10007
|
height: theme.iconButton.height
|
|
10031
10008
|
},
|
|
10032
|
-
fullscreenModal: {
|
|
10033
|
-
header: {
|
|
10034
|
-
height: theme.fullscreenModal.header.height
|
|
10035
|
-
}
|
|
10036
|
-
},
|
|
10037
10009
|
pageLoader: {
|
|
10038
10010
|
size: theme.pageLoader.size
|
|
10039
10011
|
},
|
|
@@ -10128,7 +10100,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10128
10100
|
}
|
|
10129
10101
|
},
|
|
10130
10102
|
fullscreenModal: {
|
|
10131
|
-
horizontalPadding: theme.fullscreenModal.
|
|
10103
|
+
horizontalPadding: theme.fullscreenModal.horizontalPadding,
|
|
10132
10104
|
body: {
|
|
10133
10105
|
verticalPadding: theme.fullscreenModal.body.verticalPadding
|
|
10134
10106
|
},
|
|
@@ -11108,18 +11080,12 @@ function NavigationBottomSheet(_ref) {
|
|
|
11108
11080
|
})
|
|
11109
11081
|
});
|
|
11110
11082
|
}
|
|
11111
|
-
function NavigationBottomSheetHeader(
|
|
11112
|
-
|
|
11113
|
-
left = _ref2.left;
|
|
11114
|
-
return /*#__PURE__*/jsx(NavigationModal.Header, {
|
|
11115
|
-
title: children,
|
|
11116
|
-
left: left,
|
|
11083
|
+
function NavigationBottomSheetHeader(props) {
|
|
11084
|
+
return /*#__PURE__*/jsx(NavigationModal.Header, _objectSpread(_objectSpread({}, props), {}, {
|
|
11117
11085
|
right: /*#__PURE__*/jsx(ModalBehaviour.CloseButton, {
|
|
11118
|
-
children: /*#__PURE__*/jsx(
|
|
11119
|
-
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
11120
|
-
})
|
|
11086
|
+
children: /*#__PURE__*/jsx(TopNavBar.CloseButton, {})
|
|
11121
11087
|
})
|
|
11122
|
-
});
|
|
11088
|
+
}));
|
|
11123
11089
|
}
|
|
11124
11090
|
function NavigationBottomSheetBody(props) {
|
|
11125
11091
|
return /*#__PURE__*/jsx(NavigationModal.Body, _objectSpread({
|
|
@@ -12872,88 +12838,6 @@ function Tooltip(_ref) {
|
|
|
12872
12838
|
Tooltip.Arrow = Arrow;
|
|
12873
12839
|
Tooltip.Content = TooltipContent;
|
|
12874
12840
|
|
|
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
12841
|
function getTypographyTypeConfig(type, theme) {
|
|
12958
12842
|
var configs = theme.kitt.typography.types[getTypographyFamily(type)].configs;
|
|
12959
12843
|
return configs[type];
|