@ornikar/kitt-universal 27.9.1-canary.51004cd27185355acc481c9933556ade7509bc80.0 → 27.9.1-canary.7887d5a9313c31fdf8e4d5a4b645a75389e9e991.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 +3 -8
- 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 +17 -3
- package/dist/definitions/CardModal/CardModalHeader.d.ts.map +1 -1
- package/dist/definitions/FullscreenModal/Header.d.ts +18 -3
- package/dist/definitions/FullscreenModal/Header.d.ts.map +1 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +7 -6
- 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 +8 -4
- 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 +276 -154
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +276 -154
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +266 -152
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +252 -143
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +267 -153
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +253 -144
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +282 -160
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +336 -220
- 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 +3 -3
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,
|
|
13
|
+
import { SpinnerGapRegularIcon, UserRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon, XRegularIcon, CaretRightRegularIcon, InfoRegularIcon, WarningRegularIcon, CheckRegularIcon, WarningCircleRegularIcon, ArrowCounterClockwiseRegularIcon, InfoFillIcon, WarningCircleFillIcon, WarningFillIcon, ArrowLeftRegularIcon } 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
|
+
sharedHorizontalPadding: 16,
|
|
1820
1820
|
footer: {
|
|
1821
1821
|
verticalPadding: 12
|
|
1822
1822
|
},
|
|
1823
1823
|
body: {
|
|
1824
|
-
verticalPadding:
|
|
1824
|
+
verticalPadding: 24
|
|
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
|
-
iconButton: iconButton,
|
|
2647
2646
|
buttonBadge: buttonBadge,
|
|
2647
|
+
iconButton: iconButton,
|
|
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$R = ["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$R);
|
|
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$Q = ["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$Q);
|
|
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$P = ["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$P);
|
|
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$O = ["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$O);
|
|
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$N = ["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$N);
|
|
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$M = ["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$M);
|
|
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$L = ["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$L);
|
|
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$K = ["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$K);
|
|
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$J = ["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$J);
|
|
4208
4208
|
var _useState = useState(visible),
|
|
4209
4209
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4210
4210
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4229,23 +4229,32 @@ function CardModalBehaviour(_ref) {
|
|
|
4229
4229
|
});
|
|
4230
4230
|
}
|
|
4231
4231
|
|
|
4232
|
-
var _excluded$
|
|
4232
|
+
var _excluded$I = ["children", "paddingX", "paddingY"];
|
|
4233
4233
|
function CardModalBody(_ref) {
|
|
4234
4234
|
var children = _ref.children,
|
|
4235
|
-
_ref$
|
|
4236
|
-
|
|
4237
|
-
|
|
4235
|
+
_ref$paddingX = _ref.paddingX,
|
|
4236
|
+
paddingX = _ref$paddingX === void 0 ? {
|
|
4237
|
+
base: 'kitt.4',
|
|
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);
|
|
4238
4246
|
return /*#__PURE__*/jsx(ScrollView, _objectSpread(_objectSpread({
|
|
4239
4247
|
showsVerticalScrollIndicator: false,
|
|
4240
4248
|
_contentContainerStyle: {
|
|
4241
|
-
|
|
4249
|
+
paddingX: paddingX,
|
|
4250
|
+
paddingY: paddingY
|
|
4242
4251
|
}
|
|
4243
4252
|
}, props), {}, {
|
|
4244
4253
|
children: children
|
|
4245
4254
|
}));
|
|
4246
4255
|
}
|
|
4247
4256
|
|
|
4248
|
-
var _excluded$
|
|
4257
|
+
var _excluded$H = ["children", "padding", "hasSeparator"];
|
|
4249
4258
|
function CardModalFooter(_ref) {
|
|
4250
4259
|
var children = _ref.children,
|
|
4251
4260
|
_ref$padding = _ref.padding,
|
|
@@ -4255,7 +4264,7 @@ function CardModalFooter(_ref) {
|
|
|
4255
4264
|
} : _ref$padding,
|
|
4256
4265
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4257
4266
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4258
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4267
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4259
4268
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4260
4269
|
marginTop: "kitt.2",
|
|
4261
4270
|
padding: padding,
|
|
@@ -4269,148 +4278,58 @@ function CardModalFooter(_ref) {
|
|
|
4269
4278
|
}));
|
|
4270
4279
|
}
|
|
4271
4280
|
|
|
4272
|
-
var
|
|
4273
|
-
|
|
4274
|
-
|
|
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,
|
|
4281
|
+
var _excluded$G = ["children", "title", "paddingBottom", "hasSeparator", "right", "left"];
|
|
4282
|
+
function CardModalHeader(_ref) {
|
|
4283
|
+
var children = _ref.children,
|
|
4329
4284
|
title = _ref.title,
|
|
4330
|
-
_ref$
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4285
|
+
_ref$paddingBottom = _ref.paddingBottom,
|
|
4286
|
+
paddingBottom = _ref$paddingBottom === void 0 ? {
|
|
4287
|
+
base: 'kitt.4',
|
|
4288
|
+
medium: 'kitt.2'
|
|
4289
|
+
} : _ref$paddingBottom,
|
|
4335
4290
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
4336
|
-
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
4348
|
-
paddingBottom: "kitt.3",
|
|
4349
|
-
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4291
|
+
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
4292
|
+
right = _ref.right,
|
|
4293
|
+
left = _ref.left,
|
|
4294
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4295
|
+
var defaultContainerPadding = {
|
|
4296
|
+
base: 'kitt.4',
|
|
4297
|
+
medium: 'kitt.6'
|
|
4298
|
+
};
|
|
4299
|
+
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4300
|
+
padding: paddingBottom,
|
|
4301
|
+
borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4350
4302
|
borderColor: "kitt.separator",
|
|
4351
|
-
|
|
4303
|
+
justifyContent: "center",
|
|
4304
|
+
width: "100%",
|
|
4305
|
+
height: "kitt.cardModal.header.height",
|
|
4306
|
+
paddingRight: right ? 'kitt.2' : defaultContainerPadding,
|
|
4307
|
+
paddingLeft: left ? 'kitt.2' : defaultContainerPadding,
|
|
4308
|
+
children: /*#__PURE__*/jsxs(View, {
|
|
4352
4309
|
alignItems: "center",
|
|
4353
|
-
|
|
4354
|
-
|
|
4310
|
+
flexDirection: "row",
|
|
4311
|
+
justifyContent: !children && !left ? 'flex-end' : 'space-between',
|
|
4312
|
+
children: [left ? /*#__PURE__*/jsx(View, {
|
|
4313
|
+
width: "kitt.iconButton.width",
|
|
4314
|
+
children: left
|
|
4315
|
+
}) : null, /*#__PURE__*/jsxs(View, {
|
|
4355
4316
|
flexGrow: "1",
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
textAlign: titleAlign,
|
|
4317
|
+
paddingRight: right ? 'kitt.2' : 0,
|
|
4318
|
+
paddingLeft: left ? 'kitt.2' : 0,
|
|
4319
|
+
children: [title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
4320
|
+
textAlign: !left && right ? 'left' : 'center',
|
|
4361
4321
|
variant: "bold",
|
|
4362
|
-
ellipsizeMode: "tail",
|
|
4363
|
-
numberOfLines: 1,
|
|
4364
4322
|
children: title
|
|
4365
|
-
}) : null
|
|
4366
|
-
})
|
|
4367
|
-
width: "kitt.iconButton.width"
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
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
|
-
});
|
|
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;
|
|
4408
|
-
|
|
4409
|
-
function CardModalHeader(props) {
|
|
4410
|
-
return /*#__PURE__*/jsx(TopNavBar, _objectSpread({}, props));
|
|
4323
|
+
}) : null, children]
|
|
4324
|
+
}), right ? /*#__PURE__*/jsx(View, {
|
|
4325
|
+
width: "kitt.iconButton.width",
|
|
4326
|
+
children: right
|
|
4327
|
+
}) : null]
|
|
4328
|
+
})
|
|
4329
|
+
}));
|
|
4411
4330
|
}
|
|
4412
4331
|
|
|
4413
|
-
var _excluded$
|
|
4332
|
+
var _excluded$F = ["backgroundColor", "maxWidth", "withoutShadow", "children", "header", "body", "footer"];
|
|
4414
4333
|
function CardModal(_ref) {
|
|
4415
4334
|
var _ref$backgroundColor = _ref.backgroundColor,
|
|
4416
4335
|
backgroundColor = _ref$backgroundColor === void 0 ? 'kitt.uiBackgroundLight' : _ref$backgroundColor,
|
|
@@ -4421,7 +4340,7 @@ function CardModal(_ref) {
|
|
|
4421
4340
|
header = _ref.header,
|
|
4422
4341
|
body = _ref.body,
|
|
4423
4342
|
footer = _ref.footer,
|
|
4424
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4343
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
4425
4344
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({}, props), {}, {
|
|
4426
4345
|
overflow: "hidden",
|
|
4427
4346
|
backgroundColor: backgroundColor,
|
|
@@ -4636,11 +4555,11 @@ function ChoiceItemContainer(_ref) {
|
|
|
4636
4555
|
}));
|
|
4637
4556
|
}
|
|
4638
4557
|
|
|
4639
|
-
var _excluded$
|
|
4558
|
+
var _excluded$E = ["direction", "contentContainerStyle"];
|
|
4640
4559
|
function ChoicesContainer(_ref) {
|
|
4641
4560
|
var direction = _ref.direction,
|
|
4642
4561
|
contentContainerStyle = _ref.contentContainerStyle,
|
|
4643
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4562
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
4644
4563
|
if (direction === 'row') {
|
|
4645
4564
|
return /*#__PURE__*/jsx(ScrollView$2, _objectSpread({
|
|
4646
4565
|
horizontal: true,
|
|
@@ -4715,7 +4634,7 @@ var ChoicesElements = {
|
|
|
4715
4634
|
ButtonChoices: ButtonChoices
|
|
4716
4635
|
};
|
|
4717
4636
|
|
|
4718
|
-
var _excluded$
|
|
4637
|
+
var _excluded$D = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
4719
4638
|
var contentAnimationEnter = "kitt-u_contentAnimationEnter_c1i0gle8";
|
|
4720
4639
|
var contentAnimatioEnterActive = "kitt-u_contentAnimatioEnterActive_c1jmfkjw";
|
|
4721
4640
|
var contentAnimatioExit = "kitt-u_contentAnimatioExit_cwjstxl";
|
|
@@ -4754,7 +4673,7 @@ function DialogModalAnimation(_ref) {
|
|
|
4754
4673
|
onExit = _ref.onExit,
|
|
4755
4674
|
onExited = _ref.onExited,
|
|
4756
4675
|
onClose = _ref.onClose,
|
|
4757
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4676
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
4758
4677
|
var theme = useTheme();
|
|
4759
4678
|
var animation = theme.kitt.dialogModal.animation;
|
|
4760
4679
|
var sharedProps = {
|
|
@@ -4789,13 +4708,13 @@ function DialogModalAnimation(_ref) {
|
|
|
4789
4708
|
}));
|
|
4790
4709
|
}
|
|
4791
4710
|
|
|
4792
|
-
var _excluded$
|
|
4711
|
+
var _excluded$C = ["children", "visible", "onClose", "onExited"];
|
|
4793
4712
|
function DialogModalBehaviour(_ref) {
|
|
4794
4713
|
var children = _ref.children,
|
|
4795
4714
|
visible = _ref.visible,
|
|
4796
4715
|
onClose = _ref.onClose,
|
|
4797
4716
|
onExited = _ref.onExited,
|
|
4798
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4717
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
4799
4718
|
var _useState = useState(visible),
|
|
4800
4719
|
_useState2 = _slicedToArray(_useState, 2),
|
|
4801
4720
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -4826,7 +4745,7 @@ function DialogModalBehaviour(_ref) {
|
|
|
4826
4745
|
});
|
|
4827
4746
|
}
|
|
4828
4747
|
|
|
4829
|
-
var _excluded$
|
|
4748
|
+
var _excluded$B = ["stretch"];
|
|
4830
4749
|
function DialogModal(_ref) {
|
|
4831
4750
|
var illustration = _ref.illustration,
|
|
4832
4751
|
title = _ref.title,
|
|
@@ -4866,7 +4785,7 @@ DialogModal.ModalBehaviour = DialogModalBehaviour;
|
|
|
4866
4785
|
function DialogModalButton(_ref2) {
|
|
4867
4786
|
var _ref2$stretch = _ref2.stretch,
|
|
4868
4787
|
stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
|
|
4869
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
4788
|
+
props = _objectWithoutProperties(_ref2, _excluded$B);
|
|
4870
4789
|
return /*#__PURE__*/jsx(Actions.Button, _objectSpread({
|
|
4871
4790
|
stretch: stretch
|
|
4872
4791
|
}, props));
|
|
@@ -4903,7 +4822,7 @@ function Emoji(_ref) {
|
|
|
4903
4822
|
});
|
|
4904
4823
|
}
|
|
4905
4824
|
|
|
4906
|
-
var _excluded$
|
|
4825
|
+
var _excluded$A = ["as", "appScheme", "appValue", "onPress", "onOpenAppError"],
|
|
4907
4826
|
_excluded2$5 = ["phoneNumber", "children"],
|
|
4908
4827
|
_excluded3$4 = ["phoneNumber", "children"],
|
|
4909
4828
|
_excluded4$3 = ["emailAddress", "children"];
|
|
@@ -4913,7 +4832,7 @@ function ExternalAppLink(_ref) {
|
|
|
4913
4832
|
appValue = _ref.appValue,
|
|
4914
4833
|
onPress = _ref.onPress,
|
|
4915
4834
|
onOpenAppError = _ref.onOpenAppError,
|
|
4916
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4835
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
4917
4836
|
var href = "".concat(appScheme, ":").concat(appValue);
|
|
4918
4837
|
var handleOnPress = /*#__PURE__*/function () {
|
|
4919
4838
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
|
@@ -5008,14 +4927,14 @@ var defaultOpenLinkBehavior = {
|
|
|
5008
4927
|
web: 'targetBlank'
|
|
5009
4928
|
};
|
|
5010
4929
|
|
|
5011
|
-
var _excluded$
|
|
4930
|
+
var _excluded$z = ["as", "href", "openLinkBehavior", "onPress"];
|
|
5012
4931
|
function ExternalLink(_ref) {
|
|
5013
4932
|
var Component = _ref.as,
|
|
5014
4933
|
href = _ref.href,
|
|
5015
4934
|
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
5016
4935
|
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
5017
4936
|
onPress = _ref.onPress,
|
|
5018
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4937
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
5019
4938
|
return /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, rest), {}, {
|
|
5020
4939
|
accessibilityRole: "link",
|
|
5021
4940
|
href: href,
|
|
@@ -5091,7 +5010,7 @@ function InputTextContainer(props) {
|
|
|
5091
5010
|
}, props));
|
|
5092
5011
|
}
|
|
5093
5012
|
|
|
5094
|
-
var _excluded$
|
|
5013
|
+
var _excluded$y = ["id", "right", "state", "variant", "internalForceState", "disabled", "autoCorrect", "textContentType", "autoComplete", "inputMode", "multiline", "height", "onSubmitEditing"];
|
|
5095
5014
|
var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5096
5015
|
var id = _ref.id,
|
|
5097
5016
|
right = _ref.right;
|
|
@@ -5112,7 +5031,7 @@ var InputText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5112
5031
|
multiline = _ref.multiline,
|
|
5113
5032
|
height = _ref.height,
|
|
5114
5033
|
onSubmitEditing = _ref.onSubmitEditing,
|
|
5115
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5034
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5116
5035
|
var theme = useTheme();
|
|
5117
5036
|
var fontSizeForNativeBase = createNativeBaseFontSize({
|
|
5118
5037
|
base: 'body-m'
|
|
@@ -5236,12 +5155,12 @@ function AutocompleteItemsListContainer(_ref) {
|
|
|
5236
5155
|
});
|
|
5237
5156
|
}
|
|
5238
5157
|
|
|
5239
|
-
var _excluded$
|
|
5158
|
+
var _excluded$x = ["children", "testID"];
|
|
5240
5159
|
function AutocompleteOption(_ref) {
|
|
5241
5160
|
var children = _ref.children,
|
|
5242
5161
|
_ref$testID = _ref.testID,
|
|
5243
5162
|
testID = _ref$testID === void 0 ? 'kitt.Autocomplete.option' : _ref$testID,
|
|
5244
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5163
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5245
5164
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
5246
5165
|
paddingX: {
|
|
5247
5166
|
base: 'kitt.2',
|
|
@@ -5254,7 +5173,7 @@ function AutocompleteOption(_ref) {
|
|
|
5254
5173
|
}));
|
|
5255
5174
|
}
|
|
5256
5175
|
|
|
5257
|
-
var _excluded$
|
|
5176
|
+
var _excluded$w = ["children", "name", "disabled", "placeholder", "isInitialOpen", "initialValue", "containerProps", "filterItemBasedOnCurrentInputValue", "checkSelectedItem", "itemToString", "right", "onChange", "onFocus", "onBlur", "onInputChange", "onSelectItem", "onOuterPress", "errorElement", "emptyResultsElement", "inputTestID", "listContainerTestID", "zIndex", "maxItemContainerHeight"],
|
|
5258
5177
|
_excluded2$4 = ["onClick", "onPress"],
|
|
5259
5178
|
_excluded3$3 = ["onKeyDown", "onFocus", "onBlur", "onChange"],
|
|
5260
5179
|
_excluded4$2 = ["onClick", "onPress", "role", "aria-selected"];
|
|
@@ -5288,7 +5207,7 @@ function Autocomplete(_ref) {
|
|
|
5288
5207
|
_ref$zIndex = _ref.zIndex,
|
|
5289
5208
|
zIndex = _ref$zIndex === void 0 ? 1000 : _ref$zIndex,
|
|
5290
5209
|
maxItemContainerHeight = _ref.maxItemContainerHeight,
|
|
5291
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5210
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
5292
5211
|
var childrenArray = Children.toArray(_children);
|
|
5293
5212
|
var items = childrenArray.filter(isReactElement).map(function (child) {
|
|
5294
5213
|
return {
|
|
@@ -5495,7 +5414,7 @@ function getBorderColor$1(_ref) {
|
|
|
5495
5414
|
return 'kitt.forms.checkbox.default.borderColor';
|
|
5496
5415
|
}
|
|
5497
5416
|
|
|
5498
|
-
var _excluded$
|
|
5417
|
+
var _excluded$v = ["checked", "hitSlop", "children", "disabled", "onChange", "onBlur", "onFocus"];
|
|
5499
5418
|
var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5500
5419
|
var checked = _ref.checked,
|
|
5501
5420
|
_ref$hitSlop = _ref.hitSlop,
|
|
@@ -5505,7 +5424,7 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5505
5424
|
onChange = _ref.onChange,
|
|
5506
5425
|
onBlur = _ref.onBlur,
|
|
5507
5426
|
onFocus = _ref.onFocus,
|
|
5508
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5427
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
5509
5428
|
var theme = useTheme();
|
|
5510
5429
|
return /*#__PURE__*/jsx(Pressable, _objectSpread(_objectSpread({
|
|
5511
5430
|
hitSlop: hitSlop
|
|
@@ -5821,7 +5740,7 @@ function PartContainer(_ref) {
|
|
|
5821
5740
|
});
|
|
5822
5741
|
}
|
|
5823
5742
|
|
|
5824
|
-
var _excluded$
|
|
5743
|
+
var _excluded$u = ["id", "value", "testID", "stretch", "placeholder", "minDate", "maxDate", "disabled", "isFocusedInternal", "isHoveredInternal", "isPressedInternal", "enterKeyHint", "onChange", "onBlur", "onFocus", "onSubmitEditing"];
|
|
5825
5744
|
var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5826
5745
|
var id = _ref.id,
|
|
5827
5746
|
value = _ref.value,
|
|
@@ -5839,7 +5758,7 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5839
5758
|
onBlur = _ref.onBlur,
|
|
5840
5759
|
onFocus = _ref.onFocus,
|
|
5841
5760
|
onSubmitEditing = _ref.onSubmitEditing;
|
|
5842
|
-
_objectWithoutProperties(_ref, _excluded$
|
|
5761
|
+
_objectWithoutProperties(_ref, _excluded$u);
|
|
5843
5762
|
var monthRef = useRef(null);
|
|
5844
5763
|
var yearRef = useRef(null);
|
|
5845
5764
|
var defaultValue = value;
|
|
@@ -5979,10 +5898,10 @@ var KeyboardDatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
5979
5898
|
});
|
|
5980
5899
|
});
|
|
5981
5900
|
|
|
5982
|
-
var _excluded$
|
|
5901
|
+
var _excluded$t = ["value"];
|
|
5983
5902
|
var DatePicker = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5984
5903
|
var value = _ref.value,
|
|
5985
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5904
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
5986
5905
|
// in apps, final-form can give a string value that will break the component
|
|
5987
5906
|
var currentValue = value || undefined;
|
|
5988
5907
|
return /*#__PURE__*/jsx(KeyboardDatePicker, _objectSpread(_objectSpread({
|
|
@@ -6566,7 +6485,7 @@ function formatInitialValueToAutocompletePrediction(address, placeId) {
|
|
|
6566
6485
|
};
|
|
6567
6486
|
}
|
|
6568
6487
|
|
|
6569
|
-
var _excluded$
|
|
6488
|
+
var _excluded$s = ["initialValue", "itemToString", "errorElement", "emptyResultsElement", "onChange"];
|
|
6570
6489
|
function InputAddress(_ref) {
|
|
6571
6490
|
var initialValue = _ref.initialValue,
|
|
6572
6491
|
_ref$itemToString = _ref.itemToString,
|
|
@@ -6574,7 +6493,7 @@ function InputAddress(_ref) {
|
|
|
6574
6493
|
errorElement = _ref.errorElement,
|
|
6575
6494
|
emptyResultsElement = _ref.emptyResultsElement,
|
|
6576
6495
|
_onChange = _ref.onChange,
|
|
6577
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6496
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6578
6497
|
var _useGoogleMapsAutocom = useGoogleMapsAutocomplete(),
|
|
6579
6498
|
state = _useGoogleMapsAutocom.state,
|
|
6580
6499
|
_onInputChange = _useGoogleMapsAutocom.onInputChange,
|
|
@@ -6671,10 +6590,10 @@ var InputIban = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
6671
6590
|
}, props));
|
|
6672
6591
|
});
|
|
6673
6592
|
|
|
6674
|
-
var _excluded$
|
|
6593
|
+
var _excluded$r = ["onChange"];
|
|
6675
6594
|
var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6676
6595
|
var onChange = _ref.onChange,
|
|
6677
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6596
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
6678
6597
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
6679
6598
|
ref: ref
|
|
6680
6599
|
}, props), {}, {
|
|
@@ -6691,11 +6610,11 @@ var InputNumber = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6691
6610
|
}));
|
|
6692
6611
|
});
|
|
6693
6612
|
|
|
6694
|
-
var _excluded$
|
|
6613
|
+
var _excluded$q = ["isPasswordDefaultVisible", "right"];
|
|
6695
6614
|
var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6696
6615
|
var isPasswordDefaultVisible = _ref.isPasswordDefaultVisible,
|
|
6697
6616
|
right = _ref.right,
|
|
6698
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6617
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
6699
6618
|
var _useState = useState(Boolean(isPasswordDefaultVisible)),
|
|
6700
6619
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6701
6620
|
isVisible = _useState2[0],
|
|
@@ -6723,7 +6642,7 @@ var InputPassword = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6723
6642
|
}));
|
|
6724
6643
|
});
|
|
6725
6644
|
|
|
6726
|
-
var _excluded$
|
|
6645
|
+
var _excluded$p = ["enterKeyHint", "autoComplete", "phoneNumberLength", "onChange"];
|
|
6727
6646
|
function isPhoneNumberValid(number) {
|
|
6728
6647
|
return isValidNumber(number);
|
|
6729
6648
|
}
|
|
@@ -6737,7 +6656,7 @@ var InputPhone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
6737
6656
|
_ref$phoneNumberLengt = _ref.phoneNumberLength,
|
|
6738
6657
|
phoneNumberLength = _ref$phoneNumberLengt === void 0 ? 10 : _ref$phoneNumberLengt,
|
|
6739
6658
|
onChange = _ref.onChange,
|
|
6740
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6659
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
6741
6660
|
var currentEnterKeyHint = enterKeyHint ? getEnterKeyHintForNumericInput(enterKeyHint) : undefined;
|
|
6742
6661
|
return /*#__PURE__*/jsx(InputText, _objectSpread(_objectSpread({
|
|
6743
6662
|
ref: ref
|
|
@@ -7173,7 +7092,7 @@ function RadioButton(_ref) {
|
|
|
7173
7092
|
});
|
|
7174
7093
|
}
|
|
7175
7094
|
|
|
7176
|
-
var _excluded$
|
|
7095
|
+
var _excluded$o = ["children", "stretch", "value", "disabled", "onFocus", "onBlur", "onChange"];
|
|
7177
7096
|
function RadioButtonGroupItem(_ref) {
|
|
7178
7097
|
var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
7179
7098
|
return /*#__PURE__*/jsx(RadioButton, _objectSpread({}, props));
|
|
@@ -7186,7 +7105,7 @@ function RadioButtonGroup(_ref2) {
|
|
|
7186
7105
|
onFocus = _ref2.onFocus,
|
|
7187
7106
|
onBlur = _ref2.onBlur,
|
|
7188
7107
|
onChange = _ref2.onChange,
|
|
7189
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7108
|
+
props = _objectWithoutProperties(_ref2, _excluded$o);
|
|
7190
7109
|
var _useState = useState(value),
|
|
7191
7110
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7192
7111
|
currentValue = _useState2[0],
|
|
@@ -7218,12 +7137,12 @@ function RadioButtonGroup(_ref2) {
|
|
|
7218
7137
|
}
|
|
7219
7138
|
RadioButtonGroup.RadioButton = RadioButtonGroupItem;
|
|
7220
7139
|
|
|
7221
|
-
var _excluded$
|
|
7140
|
+
var _excluded$n = ["helper", "limit"];
|
|
7222
7141
|
var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7223
7142
|
var _props$value, _props$value2;
|
|
7224
7143
|
var helper = _ref.helper,
|
|
7225
7144
|
limit = _ref.limit,
|
|
7226
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7145
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
7227
7146
|
var shouldDisplayLimit = limit && limit > 0;
|
|
7228
7147
|
var isLimitReached = ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.length) === limit;
|
|
7229
7148
|
var limitContainerAnimatedStyle = useAnimatedStyle(function () {
|
|
@@ -7382,7 +7301,7 @@ function ToggleAnimated(_ref) {
|
|
|
7382
7301
|
});
|
|
7383
7302
|
}
|
|
7384
7303
|
|
|
7385
|
-
var _excluded$
|
|
7304
|
+
var _excluded$m = ["isDisabled", "isHoveredInternal", "isFocusedInternal", "isPressedInternal", "label", "variant", "size", "value", "onChange"];
|
|
7386
7305
|
var getLabelTypographyType = function (size) {
|
|
7387
7306
|
return size === 'medium' ? 'body-m' : 'body-l';
|
|
7388
7307
|
};
|
|
@@ -7404,7 +7323,7 @@ function Toggle(_ref) {
|
|
|
7404
7323
|
value = _ref$value === void 0 ? false : _ref$value,
|
|
7405
7324
|
_ref$onChange = _ref.onChange,
|
|
7406
7325
|
onChange = _ref$onChange === void 0 ? function () {} : _ref$onChange,
|
|
7407
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7326
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
7408
7327
|
var theme = useKittTheme();
|
|
7409
7328
|
return /*#__PURE__*/jsxs(HStack, _objectSpread(_objectSpread({
|
|
7410
7329
|
alignItems: "center"
|
|
@@ -7443,13 +7362,13 @@ function Toggle(_ref) {
|
|
|
7443
7362
|
}));
|
|
7444
7363
|
}
|
|
7445
7364
|
|
|
7446
|
-
var _excluded$
|
|
7365
|
+
var _excluded$l = ["children", "shouldHandleBottomNotch", "style", "shouldHandleTopNotch"];
|
|
7447
7366
|
function FullscreenModalBody(_ref) {
|
|
7448
7367
|
var children = _ref.children,
|
|
7449
7368
|
shouldHandleBottomNotch = _ref.shouldHandleBottomNotch,
|
|
7450
7369
|
style = _ref.style,
|
|
7451
7370
|
shouldHandleTopNotch = _ref.shouldHandleTopNotch,
|
|
7452
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7371
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7453
7372
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7454
7373
|
bottom = _useSafeAreaInsets.bottom,
|
|
7455
7374
|
top = _useSafeAreaInsets.top;
|
|
@@ -7469,14 +7388,14 @@ function FullscreenModalBody(_ref) {
|
|
|
7469
7388
|
}));
|
|
7470
7389
|
}
|
|
7471
7390
|
|
|
7472
|
-
var _excluded$
|
|
7391
|
+
var _excluded$k = ["shouldHandleBottomNotch", "hasSeparator", "children"];
|
|
7473
7392
|
function FullscreenModalFooter(_ref) {
|
|
7474
7393
|
var _ref$shouldHandleBott = _ref.shouldHandleBottomNotch,
|
|
7475
7394
|
shouldHandleBottomNotch = _ref$shouldHandleBott === void 0 ? true : _ref$shouldHandleBott,
|
|
7476
7395
|
_ref$hasSeparator = _ref.hasSeparator,
|
|
7477
7396
|
hasSeparator = _ref$hasSeparator === void 0 ? true : _ref$hasSeparator,
|
|
7478
7397
|
children = _ref.children,
|
|
7479
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7398
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7480
7399
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7481
7400
|
bottom = _useSafeAreaInsets.bottom;
|
|
7482
7401
|
return /*#__PURE__*/jsx(View, _objectSpread(_objectSpread({
|
|
@@ -7493,7 +7412,7 @@ function FullscreenModalFooter(_ref) {
|
|
|
7493
7412
|
}));
|
|
7494
7413
|
}
|
|
7495
7414
|
|
|
7496
|
-
var _excluded$
|
|
7415
|
+
var _excluded$j = ["children", "appear", "visible", "unmountOnExit", "isAnimationEnabled", "onEnter", "onEntered", "onExit", "onExited", "onClose"];
|
|
7497
7416
|
var slideInFromBottomEnter = "kitt-u_slideInFromBottomEnter_s1717rto";
|
|
7498
7417
|
var slideInFromBottomEnterActive = "kitt-u_slideInFromBottomEnterActive_sux6xgc";
|
|
7499
7418
|
var slideInFromBottomExit = "kitt-u_slideInFromBottomExit_sl0lsxt";
|
|
@@ -7532,7 +7451,7 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7532
7451
|
onExit = _ref.onExit,
|
|
7533
7452
|
onExited = _ref.onExited,
|
|
7534
7453
|
onClose = _ref.onClose,
|
|
7535
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7454
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7536
7455
|
var theme = useTheme();
|
|
7537
7456
|
var animation = theme.kitt.fullscreenModal.animation;
|
|
7538
7457
|
var sharedProps = {
|
|
@@ -7559,13 +7478,13 @@ function FullscreenModalAnimation(_ref) {
|
|
|
7559
7478
|
}));
|
|
7560
7479
|
}
|
|
7561
7480
|
|
|
7562
|
-
var _excluded$
|
|
7481
|
+
var _excluded$i = ["children", "visible", "onClose", "onExited"];
|
|
7563
7482
|
function FullscreenModalBehaviour(_ref) {
|
|
7564
7483
|
var children = _ref.children,
|
|
7565
7484
|
visible = _ref.visible,
|
|
7566
7485
|
onClose = _ref.onClose,
|
|
7567
7486
|
onExited = _ref.onExited,
|
|
7568
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7487
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
7569
7488
|
var _useState = useState(visible),
|
|
7570
7489
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7571
7490
|
isModalBehaviourVisible = _useState2[0],
|
|
@@ -7612,17 +7531,64 @@ function FullscreenModalContainer(_ref) {
|
|
|
7612
7531
|
});
|
|
7613
7532
|
}
|
|
7614
7533
|
|
|
7615
|
-
var _excluded$
|
|
7534
|
+
var _excluded$h = ["hasSeparator", "isTransparent", "title", "children", "right", "left", "shouldHandleTopNotch"];
|
|
7616
7535
|
function FullscreenModalHeader(_ref) {
|
|
7617
|
-
var _ref$
|
|
7536
|
+
var _ref$hasSeparator = _ref.hasSeparator,
|
|
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,
|
|
7618
7544
|
shouldHandleTopNotch = _ref$shouldHandleTopN === void 0 ? true : _ref$shouldHandleTopN,
|
|
7619
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7545
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
7620
7546
|
var _useSafeAreaInsets = useSafeAreaInsets(),
|
|
7621
7547
|
top = _useSafeAreaInsets.top;
|
|
7622
|
-
|
|
7548
|
+
var hasRight = Boolean(right);
|
|
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",
|
|
7623
7556
|
paddingTop: shouldHandleTopNotch ? top : undefined,
|
|
7624
|
-
|
|
7625
|
-
|
|
7557
|
+
paddingRight: hasRight ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
|
|
7558
|
+
paddingLeft: hasLeft ? 'kitt.2' : 'kitt.fullscreenModal.horizontalPadding',
|
|
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
|
+
}));
|
|
7626
7592
|
}
|
|
7627
7593
|
|
|
7628
7594
|
function FullscreenModal(_ref) {
|
|
@@ -7892,6 +7858,60 @@ function Highlight(_ref) {
|
|
|
7892
7858
|
});
|
|
7893
7859
|
}
|
|
7894
7860
|
|
|
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
|
+
|
|
7895
7915
|
function InfoCard(_ref) {
|
|
7896
7916
|
var title = _ref.title,
|
|
7897
7917
|
action = _ref.action,
|
|
@@ -9702,6 +9722,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9702
9722
|
},
|
|
9703
9723
|
icon: theme.icon,
|
|
9704
9724
|
cardModal: {
|
|
9725
|
+
header: {
|
|
9726
|
+
height: theme.cardModal.header.height
|
|
9727
|
+
},
|
|
9705
9728
|
maxWidth: theme.cardModal.maxWidth,
|
|
9706
9729
|
maxWidthWithPadding: theme.cardModal.maxWidthWithPadding,
|
|
9707
9730
|
minHeight: theme.cardModal.minHeight
|
|
@@ -10006,6 +10029,11 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10006
10029
|
width: theme.iconButton.width,
|
|
10007
10030
|
height: theme.iconButton.height
|
|
10008
10031
|
},
|
|
10032
|
+
fullscreenModal: {
|
|
10033
|
+
header: {
|
|
10034
|
+
height: theme.fullscreenModal.header.height
|
|
10035
|
+
}
|
|
10036
|
+
},
|
|
10009
10037
|
pageLoader: {
|
|
10010
10038
|
size: theme.pageLoader.size
|
|
10011
10039
|
},
|
|
@@ -10100,7 +10128,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10100
10128
|
}
|
|
10101
10129
|
},
|
|
10102
10130
|
fullscreenModal: {
|
|
10103
|
-
horizontalPadding: theme.fullscreenModal.
|
|
10131
|
+
horizontalPadding: theme.fullscreenModal.sharedHorizontalPadding,
|
|
10104
10132
|
body: {
|
|
10105
10133
|
verticalPadding: theme.fullscreenModal.body.verticalPadding
|
|
10106
10134
|
},
|
|
@@ -11080,12 +11108,18 @@ function NavigationBottomSheet(_ref) {
|
|
|
11080
11108
|
})
|
|
11081
11109
|
});
|
|
11082
11110
|
}
|
|
11083
|
-
function NavigationBottomSheetHeader(
|
|
11084
|
-
|
|
11111
|
+
function NavigationBottomSheetHeader(_ref2) {
|
|
11112
|
+
var children = _ref2.children,
|
|
11113
|
+
left = _ref2.left;
|
|
11114
|
+
return /*#__PURE__*/jsx(NavigationModal.Header, {
|
|
11115
|
+
title: children,
|
|
11116
|
+
left: left,
|
|
11085
11117
|
right: /*#__PURE__*/jsx(ModalBehaviour.CloseButton, {
|
|
11086
|
-
children: /*#__PURE__*/jsx(
|
|
11118
|
+
children: /*#__PURE__*/jsx(IconButton, {
|
|
11119
|
+
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
11120
|
+
})
|
|
11087
11121
|
})
|
|
11088
|
-
})
|
|
11122
|
+
});
|
|
11089
11123
|
}
|
|
11090
11124
|
function NavigationBottomSheetBody(props) {
|
|
11091
11125
|
return /*#__PURE__*/jsx(NavigationModal.Body, _objectSpread({
|
|
@@ -12838,6 +12872,88 @@ function Tooltip(_ref) {
|
|
|
12838
12872
|
Tooltip.Arrow = Arrow;
|
|
12839
12873
|
Tooltip.Content = TooltipContent;
|
|
12840
12874
|
|
|
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
|
+
|
|
12841
12957
|
function getTypographyTypeConfig(type, theme) {
|
|
12842
12958
|
var configs = theme.kitt.typography.types[getTypographyFamily(type)].configs;
|
|
12843
12959
|
return configs[type];
|