@ornikar/kitt-universal 27.9.1-canary.e79ce5a70db58d281f30a0e111ad7cf70d64cdb1.0 → 27.9.1-canary.f2c8ce09203150f3f2cb65aacb7c85ea25435b9f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -17
- 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 +5 -3
- 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/definitions/typography/Typography.d.ts +6 -18
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +160 -278
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +160 -278
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +157 -267
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +148 -253
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +158 -268
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +149 -254
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +255 -373
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +286 -398
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +5 -5
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +5 -5
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +5 -5
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +5 -5
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +5 -5
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +5 -5
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +6 -6
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +6 -6
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +28 -28
|
@@ -2,7 +2,7 @@ import { useContext, createContext, forwardRef, useMemo, cloneElement, useState,
|
|
|
2
2
|
import { View as View$1, ScrollView as ScrollView$1, Pressable as Pressable$1, Image as Image$1, FlatList as FlatList$1, SectionList as SectionList$1, Stack as Stack$1, VStack as VStack$1, HStack as HStack$1, Center as Center$1, useBreakpointValue as useBreakpointValue$1, useSx, Text, Input, NativeBaseProvider, extendTheme } from 'native-base';
|
|
3
3
|
export { useClipboard, useContrastText, useMediaQuery, useSx, useToken } from 'native-base';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
|
-
import { SpinnerGapRegularIcon, UserRegularIcon, CaretUpFillIcon, CaretDownFillIcon, MapPinRegularIcon, EyeClosedRegularIcon, EyeRegularIcon, CheckCircleFillIcon, CaretDownRegularIcon,
|
|
5
|
+
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';
|
|
6
6
|
import { createPortal } from 'react-dom';
|
|
7
7
|
import { CSSTransition } from 'react-transition-group';
|
|
8
8
|
import { ScrollView as ScrollView$2, View as View$2, Linking, Pressable as Pressable$2, useWindowDimensions } from 'react-native';
|
|
@@ -1798,12 +1798,12 @@ const fullscreenModal = {
|
|
|
1798
1798
|
header: {
|
|
1799
1799
|
height: 56
|
|
1800
1800
|
},
|
|
1801
|
-
|
|
1801
|
+
horizontalPadding: 16,
|
|
1802
1802
|
footer: {
|
|
1803
1803
|
verticalPadding: 12
|
|
1804
1804
|
},
|
|
1805
1805
|
body: {
|
|
1806
|
-
verticalPadding:
|
|
1806
|
+
verticalPadding: 16
|
|
1807
1807
|
},
|
|
1808
1808
|
animation: {
|
|
1809
1809
|
overlay: {
|
|
@@ -1891,8 +1891,8 @@ const icon = {
|
|
|
1891
1891
|
};
|
|
1892
1892
|
|
|
1893
1893
|
const iconButton = {
|
|
1894
|
-
width: button.height.
|
|
1895
|
-
height: button.height.
|
|
1894
|
+
width: button.height.default,
|
|
1895
|
+
height: button.height.default
|
|
1896
1896
|
};
|
|
1897
1897
|
|
|
1898
1898
|
const listItem = {
|
|
@@ -2623,8 +2623,8 @@ const theme = {
|
|
|
2623
2623
|
forms,
|
|
2624
2624
|
highlight,
|
|
2625
2625
|
icon,
|
|
2626
|
-
buttonBadge,
|
|
2627
2626
|
iconButton,
|
|
2627
|
+
buttonBadge,
|
|
2628
2628
|
listItem,
|
|
2629
2629
|
pageLoader,
|
|
2630
2630
|
picker,
|
|
@@ -4192,21 +4192,13 @@ function CardModalBehaviour({
|
|
|
4192
4192
|
|
|
4193
4193
|
function CardModalBody({
|
|
4194
4194
|
children,
|
|
4195
|
-
|
|
4196
|
-
base: 'kitt.4',
|
|
4197
|
-
medium: 'kitt.6'
|
|
4198
|
-
},
|
|
4199
|
-
paddingY = {
|
|
4200
|
-
base: 'kitt.4',
|
|
4201
|
-
medium: 'kitt.6'
|
|
4202
|
-
},
|
|
4195
|
+
padding = 'kitt.4',
|
|
4203
4196
|
...props
|
|
4204
4197
|
}) {
|
|
4205
4198
|
return /*#__PURE__*/jsx(ScrollView, {
|
|
4206
4199
|
showsVerticalScrollIndicator: false,
|
|
4207
4200
|
_contentContainerStyle: {
|
|
4208
|
-
|
|
4209
|
-
paddingY
|
|
4201
|
+
padding
|
|
4210
4202
|
},
|
|
4211
4203
|
...props,
|
|
4212
4204
|
children: children
|
|
@@ -4236,53 +4228,149 @@ function CardModalFooter({
|
|
|
4236
4228
|
});
|
|
4237
4229
|
}
|
|
4238
4230
|
|
|
4239
|
-
|
|
4240
|
-
|
|
4231
|
+
const getButtonTypeAndVariant = iconColor => {
|
|
4232
|
+
switch (iconColor) {
|
|
4233
|
+
case 'black':
|
|
4234
|
+
return {
|
|
4235
|
+
type: 'tertiary'
|
|
4236
|
+
};
|
|
4237
|
+
case 'secondary':
|
|
4238
|
+
return {
|
|
4239
|
+
type: 'secondary'
|
|
4240
|
+
};
|
|
4241
|
+
case 'primary':
|
|
4242
|
+
return {
|
|
4243
|
+
type: 'primary'
|
|
4244
|
+
};
|
|
4245
|
+
case 'primary-plain':
|
|
4246
|
+
return {
|
|
4247
|
+
type: 'primary'
|
|
4248
|
+
};
|
|
4249
|
+
case 'ghost':
|
|
4250
|
+
return {
|
|
4251
|
+
type: 'tertiary',
|
|
4252
|
+
variant: 'revert'
|
|
4253
|
+
};
|
|
4254
|
+
default:
|
|
4255
|
+
return {
|
|
4256
|
+
type: 'secondary'
|
|
4257
|
+
};
|
|
4258
|
+
}
|
|
4259
|
+
};
|
|
4260
|
+
|
|
4261
|
+
/**
|
|
4262
|
+
* @deprecated IconButton should only be used as a navigation button
|
|
4263
|
+
* Other use cases should use a <Button> component with an icon
|
|
4264
|
+
*/
|
|
4265
|
+
function IconButton({
|
|
4266
|
+
color = 'black',
|
|
4267
|
+
ariaLabel,
|
|
4268
|
+
...props
|
|
4269
|
+
}) {
|
|
4270
|
+
const {
|
|
4271
|
+
type: legacyColorToType,
|
|
4272
|
+
variant: legacyColorToVariant
|
|
4273
|
+
} = getButtonTypeAndVariant(color);
|
|
4274
|
+
return /*#__PURE__*/jsx(Button, {
|
|
4275
|
+
variant: legacyColorToVariant,
|
|
4276
|
+
type: legacyColorToType,
|
|
4277
|
+
...props
|
|
4278
|
+
});
|
|
4279
|
+
}
|
|
4280
|
+
function CloseIconButton(props) {
|
|
4281
|
+
return /*#__PURE__*/jsx(IconButton, {
|
|
4282
|
+
icon: /*#__PURE__*/jsx(XRegularIcon, {}),
|
|
4283
|
+
...props
|
|
4284
|
+
});
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
function TopNavBar({
|
|
4288
|
+
left,
|
|
4289
|
+
right,
|
|
4241
4290
|
title,
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
},
|
|
4291
|
+
titleAlign = 'center',
|
|
4292
|
+
stickers,
|
|
4293
|
+
mode = 'default',
|
|
4246
4294
|
hasSeparator = true,
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
...props
|
|
4295
|
+
backgroundColor,
|
|
4296
|
+
testID
|
|
4250
4297
|
}) {
|
|
4251
|
-
const
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
};
|
|
4255
|
-
return /*#__PURE__*/
|
|
4256
|
-
|
|
4257
|
-
padding: paddingBottom,
|
|
4258
|
-
borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4259
|
-
borderColor: "kitt.separator",
|
|
4260
|
-
justifyContent: "center",
|
|
4298
|
+
const isLargeTitleMode = mode === 'largeTitle';
|
|
4299
|
+
const leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
|
|
4300
|
+
width: "kitt.iconButton.width"
|
|
4301
|
+
});
|
|
4302
|
+
return /*#__PURE__*/jsxs(VStack, {
|
|
4303
|
+
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
4261
4304
|
width: "100%",
|
|
4262
|
-
height:
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4305
|
+
height: mode === 'default' ? 56 : undefined,
|
|
4306
|
+
justifyContent: "center",
|
|
4307
|
+
paddingX: "kitt.2",
|
|
4308
|
+
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
4309
|
+
paddingBottom: "kitt.3",
|
|
4310
|
+
backgroundColor: backgroundColor,
|
|
4311
|
+
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4312
|
+
borderColor: "kitt.separator",
|
|
4313
|
+
testID: testID,
|
|
4314
|
+
children: [/*#__PURE__*/jsxs(HStack, {
|
|
4266
4315
|
alignItems: "center",
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
children: [left ? /*#__PURE__*/jsx(View, {
|
|
4270
|
-
width: "kitt.iconButton.width",
|
|
4271
|
-
children: left
|
|
4272
|
-
}) : null, /*#__PURE__*/jsxs(View, {
|
|
4316
|
+
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
4317
|
+
children: [left ?? leftEmptySpace, mode === 'default' ? /*#__PURE__*/jsx(View, {
|
|
4273
4318
|
flexGrow: "1",
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4319
|
+
flexShrink: 1,
|
|
4320
|
+
paddingRight: "kitt.2",
|
|
4321
|
+
paddingLeft: "kitt.2",
|
|
4322
|
+
children: title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
4323
|
+
textAlign: titleAlign,
|
|
4278
4324
|
variant: "bold",
|
|
4325
|
+
ellipsizeMode: "tail",
|
|
4326
|
+
numberOfLines: 1,
|
|
4279
4327
|
children: title
|
|
4280
|
-
}) : null
|
|
4281
|
-
}), right
|
|
4282
|
-
width: "kitt.iconButton.width"
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4328
|
+
}) : null
|
|
4329
|
+
}) : null, right ?? /*#__PURE__*/jsx(View, {
|
|
4330
|
+
width: "kitt.iconButton.width"
|
|
4331
|
+
})]
|
|
4332
|
+
}), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
|
|
4333
|
+
space: "kitt.4",
|
|
4334
|
+
paddingX: "kitt.2",
|
|
4335
|
+
children: [stickers ? /*#__PURE__*/jsx(HStack, {
|
|
4336
|
+
width: "100%",
|
|
4337
|
+
space: "kitt.1",
|
|
4338
|
+
flexShrink: 1,
|
|
4339
|
+
flexWrap: "wrap",
|
|
4340
|
+
style: {
|
|
4341
|
+
rowGap: theme.getSpacing(1)
|
|
4342
|
+
},
|
|
4343
|
+
children: stickers.map((sticker, index) =>
|
|
4344
|
+
/*#__PURE__*/
|
|
4345
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
4346
|
+
jsx(View, {
|
|
4347
|
+
children: sticker
|
|
4348
|
+
}, index))
|
|
4349
|
+
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
4350
|
+
base: "heading-m",
|
|
4351
|
+
children: title
|
|
4352
|
+
})]
|
|
4353
|
+
}) : null]
|
|
4354
|
+
});
|
|
4355
|
+
}
|
|
4356
|
+
function CloseButton(props) {
|
|
4357
|
+
return /*#__PURE__*/jsx(IconButton, {
|
|
4358
|
+
icon: /*#__PURE__*/jsx(XRegularIcon, {}),
|
|
4359
|
+
...props
|
|
4360
|
+
});
|
|
4361
|
+
}
|
|
4362
|
+
function BackButton(props) {
|
|
4363
|
+
return /*#__PURE__*/jsx(IconButton, {
|
|
4364
|
+
icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {}),
|
|
4365
|
+
...props
|
|
4366
|
+
});
|
|
4367
|
+
}
|
|
4368
|
+
TopNavBar.CloseButton = CloseButton;
|
|
4369
|
+
TopNavBar.BackButton = BackButton;
|
|
4370
|
+
|
|
4371
|
+
function CardModalHeader(props) {
|
|
4372
|
+
return /*#__PURE__*/jsx(TopNavBar, {
|
|
4373
|
+
...props
|
|
4286
4374
|
});
|
|
4287
4375
|
}
|
|
4288
4376
|
|
|
@@ -7345,60 +7433,16 @@ function FullscreenModalContainer({
|
|
|
7345
7433
|
}
|
|
7346
7434
|
|
|
7347
7435
|
function FullscreenModalHeader({
|
|
7348
|
-
hasSeparator = true,
|
|
7349
|
-
isTransparent,
|
|
7350
|
-
title,
|
|
7351
|
-
children,
|
|
7352
|
-
right,
|
|
7353
|
-
left,
|
|
7354
7436
|
shouldHandleTopNotch = true,
|
|
7355
7437
|
...props
|
|
7356
7438
|
}) {
|
|
7357
7439
|
const {
|
|
7358
7440
|
top
|
|
7359
7441
|
} = useSafeAreaInsets();
|
|
7360
|
-
const hasRight = Boolean(right);
|
|
7361
|
-
const hasLeft = Boolean(left);
|
|
7362
|
-
const hasContent = Boolean(title || children);
|
|
7363
7442
|
return /*#__PURE__*/jsx(View, {
|
|
7364
|
-
backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
|
|
7365
|
-
minHeight: "kitt.fullscreenModal.header.height",
|
|
7366
|
-
width: "100%",
|
|
7367
|
-
justifyContent: "center",
|
|
7368
7443
|
paddingTop: shouldHandleTopNotch ? top : undefined,
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
borderBottomColor: "kitt.separator",
|
|
7372
|
-
borderBottomWidth: hasSeparator ? 1 : undefined,
|
|
7373
|
-
...props,
|
|
7374
|
-
children: /*#__PURE__*/jsxs(View, {
|
|
7375
|
-
flexDirection: "row",
|
|
7376
|
-
alignItems: "center",
|
|
7377
|
-
justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
|
|
7378
|
-
children: [left ? /*#__PURE__*/jsx(View, {
|
|
7379
|
-
width: "kitt.iconButton.width",
|
|
7380
|
-
children: left
|
|
7381
|
-
}) : null, title ? /*#__PURE__*/jsx(View, {
|
|
7382
|
-
flexGrow: 1,
|
|
7383
|
-
flexShrink: 1,
|
|
7384
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
7385
|
-
paddingRight: hasRight ? 'kitt.2' : 0,
|
|
7386
|
-
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
7387
|
-
variant: "bold",
|
|
7388
|
-
textAlign: !hasLeft && hasRight ? 'left' : 'center',
|
|
7389
|
-
children: title
|
|
7390
|
-
})
|
|
7391
|
-
}) : null, children ? /*#__PURE__*/jsx(View, {
|
|
7392
|
-
flexGrow: 1,
|
|
7393
|
-
flexShrink: 1,
|
|
7394
|
-
alignItems: "center",
|
|
7395
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
7396
|
-
paddingRight: hasRight ? 'kitt.2' : undefined,
|
|
7397
|
-
children: children
|
|
7398
|
-
}) : null, right || left ? /*#__PURE__*/jsx(View, {
|
|
7399
|
-
width: "kitt.iconButton.width",
|
|
7400
|
-
children: right
|
|
7401
|
-
}) : null]
|
|
7444
|
+
children: /*#__PURE__*/jsx(TopNavBar, {
|
|
7445
|
+
...props
|
|
7402
7446
|
})
|
|
7403
7447
|
});
|
|
7404
7448
|
}
|
|
@@ -7664,62 +7708,6 @@ function Highlight({
|
|
|
7664
7708
|
});
|
|
7665
7709
|
}
|
|
7666
7710
|
|
|
7667
|
-
const getButtonTypeAndVariant = iconColor => {
|
|
7668
|
-
switch (iconColor) {
|
|
7669
|
-
case 'black':
|
|
7670
|
-
return {
|
|
7671
|
-
type: 'tertiary'
|
|
7672
|
-
};
|
|
7673
|
-
case 'secondary':
|
|
7674
|
-
return {
|
|
7675
|
-
type: 'secondary'
|
|
7676
|
-
};
|
|
7677
|
-
case 'primary':
|
|
7678
|
-
return {
|
|
7679
|
-
type: 'primary'
|
|
7680
|
-
};
|
|
7681
|
-
case 'primary-plain':
|
|
7682
|
-
return {
|
|
7683
|
-
type: 'primary'
|
|
7684
|
-
};
|
|
7685
|
-
case 'ghost':
|
|
7686
|
-
return {
|
|
7687
|
-
type: 'tertiary',
|
|
7688
|
-
variant: 'revert'
|
|
7689
|
-
};
|
|
7690
|
-
default:
|
|
7691
|
-
return {
|
|
7692
|
-
type: 'secondary'
|
|
7693
|
-
};
|
|
7694
|
-
}
|
|
7695
|
-
};
|
|
7696
|
-
|
|
7697
|
-
/**
|
|
7698
|
-
* @deprecated IconButton should only be used as a navigation button
|
|
7699
|
-
* Other use cases should use a <Button> component with an icon
|
|
7700
|
-
*/
|
|
7701
|
-
function IconButton({
|
|
7702
|
-
color = 'black',
|
|
7703
|
-
ariaLabel,
|
|
7704
|
-
...props
|
|
7705
|
-
}) {
|
|
7706
|
-
const {
|
|
7707
|
-
type: legacyColorToType,
|
|
7708
|
-
variant: legacyColorToVariant
|
|
7709
|
-
} = getButtonTypeAndVariant(color);
|
|
7710
|
-
return /*#__PURE__*/jsx(Button, {
|
|
7711
|
-
variant: legacyColorToVariant,
|
|
7712
|
-
type: legacyColorToType,
|
|
7713
|
-
...props
|
|
7714
|
-
});
|
|
7715
|
-
}
|
|
7716
|
-
function CloseIconButton(props) {
|
|
7717
|
-
return /*#__PURE__*/jsx(IconButton, {
|
|
7718
|
-
icon: /*#__PURE__*/jsx(XRegularIcon, {}),
|
|
7719
|
-
...props
|
|
7720
|
-
});
|
|
7721
|
-
}
|
|
7722
|
-
|
|
7723
7711
|
function InfoCard({
|
|
7724
7712
|
title,
|
|
7725
7713
|
action,
|
|
@@ -9528,9 +9516,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9528
9516
|
},
|
|
9529
9517
|
icon: theme.icon,
|
|
9530
9518
|
cardModal: {
|
|
9531
|
-
header: {
|
|
9532
|
-
height: theme.cardModal.header.height
|
|
9533
|
-
},
|
|
9534
9519
|
maxWidth: theme.cardModal.maxWidth,
|
|
9535
9520
|
maxWidthWithPadding: theme.cardModal.maxWidthWithPadding,
|
|
9536
9521
|
minHeight: theme.cardModal.minHeight
|
|
@@ -9835,11 +9820,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9835
9820
|
width: theme.iconButton.width,
|
|
9836
9821
|
height: theme.iconButton.height
|
|
9837
9822
|
},
|
|
9838
|
-
fullscreenModal: {
|
|
9839
|
-
header: {
|
|
9840
|
-
height: theme.fullscreenModal.header.height
|
|
9841
|
-
}
|
|
9842
|
-
},
|
|
9843
9823
|
pageLoader: {
|
|
9844
9824
|
size: theme.pageLoader.size
|
|
9845
9825
|
},
|
|
@@ -9937,7 +9917,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9937
9917
|
}
|
|
9938
9918
|
},
|
|
9939
9919
|
fullscreenModal: {
|
|
9940
|
-
horizontalPadding: theme.fullscreenModal.
|
|
9920
|
+
horizontalPadding: theme.fullscreenModal.horizontalPadding,
|
|
9941
9921
|
body: {
|
|
9942
9922
|
verticalPadding: theme.fullscreenModal.body.verticalPadding
|
|
9943
9923
|
},
|
|
@@ -10914,17 +10894,11 @@ function NavigationBottomSheet({
|
|
|
10914
10894
|
})
|
|
10915
10895
|
});
|
|
10916
10896
|
}
|
|
10917
|
-
function NavigationBottomSheetHeader({
|
|
10918
|
-
children,
|
|
10919
|
-
left
|
|
10920
|
-
}) {
|
|
10897
|
+
function NavigationBottomSheetHeader(props) {
|
|
10921
10898
|
return /*#__PURE__*/jsx(NavigationModal.Header, {
|
|
10922
|
-
|
|
10923
|
-
left: left,
|
|
10899
|
+
...props,
|
|
10924
10900
|
right: /*#__PURE__*/jsx(ModalBehaviour.CloseButton, {
|
|
10925
|
-
children: /*#__PURE__*/jsx(
|
|
10926
|
-
icon: /*#__PURE__*/jsx(XRegularIcon, {})
|
|
10927
|
-
})
|
|
10901
|
+
children: /*#__PURE__*/jsx(TopNavBar.CloseButton, {})
|
|
10928
10902
|
})
|
|
10929
10903
|
});
|
|
10930
10904
|
}
|
|
@@ -12669,85 +12643,6 @@ function Tooltip({
|
|
|
12669
12643
|
Tooltip.Arrow = Arrow;
|
|
12670
12644
|
Tooltip.Content = TooltipContent;
|
|
12671
12645
|
|
|
12672
|
-
function TopNavBar({
|
|
12673
|
-
left,
|
|
12674
|
-
right,
|
|
12675
|
-
title,
|
|
12676
|
-
titleAlign = 'center',
|
|
12677
|
-
stickers,
|
|
12678
|
-
mode = 'default',
|
|
12679
|
-
hasSeparator = true
|
|
12680
|
-
}) {
|
|
12681
|
-
const isLargeTitleMode = mode === 'largeTitle';
|
|
12682
|
-
return /*#__PURE__*/jsxs(VStack, {
|
|
12683
|
-
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
12684
|
-
width: "100%",
|
|
12685
|
-
height: mode === 'default' ? 56 : undefined,
|
|
12686
|
-
justifyContent: "center",
|
|
12687
|
-
paddingX: "kitt.2",
|
|
12688
|
-
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
12689
|
-
paddingBottom: "kitt.3",
|
|
12690
|
-
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
12691
|
-
borderColor: "kitt.separator",
|
|
12692
|
-
children: [/*#__PURE__*/jsxs(HStack, {
|
|
12693
|
-
alignItems: "center",
|
|
12694
|
-
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
12695
|
-
children: [left ?? /*#__PURE__*/jsx(View, {
|
|
12696
|
-
width: "kitt.button.minWidth"
|
|
12697
|
-
}), mode === 'default' ? /*#__PURE__*/jsx(View, {
|
|
12698
|
-
flexGrow: "1",
|
|
12699
|
-
flexShrink: 1,
|
|
12700
|
-
paddingRight: "kitt.2",
|
|
12701
|
-
paddingLeft: "kitt.2",
|
|
12702
|
-
children: title ? /*#__PURE__*/jsx(Typography.Text, {
|
|
12703
|
-
textAlign: titleAlign,
|
|
12704
|
-
variant: "bold",
|
|
12705
|
-
ellipsizeMode: "tail",
|
|
12706
|
-
numberOfLines: 1,
|
|
12707
|
-
children: title
|
|
12708
|
-
}) : null
|
|
12709
|
-
}) : null, right ?? /*#__PURE__*/jsx(View, {
|
|
12710
|
-
width: "kitt.button.minWidth"
|
|
12711
|
-
})]
|
|
12712
|
-
}), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
|
|
12713
|
-
space: "kitt.4",
|
|
12714
|
-
paddingX: "kitt.2",
|
|
12715
|
-
children: [stickers ? /*#__PURE__*/jsx(HStack, {
|
|
12716
|
-
width: "100%",
|
|
12717
|
-
space: "kitt.1",
|
|
12718
|
-
flexShrink: 1,
|
|
12719
|
-
flexWrap: "wrap",
|
|
12720
|
-
style: {
|
|
12721
|
-
rowGap: theme.getSpacing(1)
|
|
12722
|
-
},
|
|
12723
|
-
children: stickers.map((sticker, index) =>
|
|
12724
|
-
/*#__PURE__*/
|
|
12725
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
12726
|
-
jsx(View, {
|
|
12727
|
-
children: sticker
|
|
12728
|
-
}, index))
|
|
12729
|
-
}) : null, /*#__PURE__*/jsx(Typography.Text, {
|
|
12730
|
-
base: "heading-m",
|
|
12731
|
-
children: title
|
|
12732
|
-
})]
|
|
12733
|
-
}) : null]
|
|
12734
|
-
});
|
|
12735
|
-
}
|
|
12736
|
-
function CloseButton(props) {
|
|
12737
|
-
return /*#__PURE__*/jsx(IconButton, {
|
|
12738
|
-
icon: /*#__PURE__*/jsx(XRegularIcon, {}),
|
|
12739
|
-
...props
|
|
12740
|
-
});
|
|
12741
|
-
}
|
|
12742
|
-
function BackButton(props) {
|
|
12743
|
-
return /*#__PURE__*/jsx(IconButton, {
|
|
12744
|
-
icon: /*#__PURE__*/jsx(ArrowLeftRegularIcon, {}),
|
|
12745
|
-
...props
|
|
12746
|
-
});
|
|
12747
|
-
}
|
|
12748
|
-
TopNavBar.CloseButton = CloseButton;
|
|
12749
|
-
TopNavBar.BackButton = BackButton;
|
|
12750
|
-
|
|
12751
12646
|
function getTypographyTypeConfig(type, theme) {
|
|
12752
12647
|
const {
|
|
12753
12648
|
configs
|