@ornikar/kitt-universal 27.9.1-canary.e79ce5a70db58d281f30a0e111ad7cf70d64cdb1.0 → 27.9.1-canary.f58d71b1dad7167039ee1fbddbcf093a87688e98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -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 +3 -2
- 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 +158 -278
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +158 -278
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +155 -267
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +146 -253
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +156 -268
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +147 -254
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +253 -373
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +284 -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
|
@@ -1825,12 +1825,12 @@ const fullscreenModal = {
|
|
|
1825
1825
|
header: {
|
|
1826
1826
|
height: 56
|
|
1827
1827
|
},
|
|
1828
|
-
|
|
1828
|
+
horizontalPadding: 16,
|
|
1829
1829
|
footer: {
|
|
1830
1830
|
verticalPadding: 12
|
|
1831
1831
|
},
|
|
1832
1832
|
body: {
|
|
1833
|
-
verticalPadding:
|
|
1833
|
+
verticalPadding: 16
|
|
1834
1834
|
},
|
|
1835
1835
|
animation: {
|
|
1836
1836
|
overlay: {
|
|
@@ -1918,8 +1918,8 @@ const icon = {
|
|
|
1918
1918
|
};
|
|
1919
1919
|
|
|
1920
1920
|
const iconButton = {
|
|
1921
|
-
width: button.height.
|
|
1922
|
-
height: button.height.
|
|
1921
|
+
width: button.height.default,
|
|
1922
|
+
height: button.height.default
|
|
1923
1923
|
};
|
|
1924
1924
|
|
|
1925
1925
|
const listItem = {
|
|
@@ -2650,8 +2650,8 @@ const theme = {
|
|
|
2650
2650
|
forms,
|
|
2651
2651
|
highlight,
|
|
2652
2652
|
icon,
|
|
2653
|
-
buttonBadge,
|
|
2654
2653
|
iconButton,
|
|
2654
|
+
buttonBadge,
|
|
2655
2655
|
listItem,
|
|
2656
2656
|
pageLoader,
|
|
2657
2657
|
picker,
|
|
@@ -4358,21 +4358,13 @@ function CardModalBehaviour({
|
|
|
4358
4358
|
|
|
4359
4359
|
function CardModalBody({
|
|
4360
4360
|
children,
|
|
4361
|
-
|
|
4362
|
-
base: 'kitt.4',
|
|
4363
|
-
medium: 'kitt.6'
|
|
4364
|
-
},
|
|
4365
|
-
paddingY = {
|
|
4366
|
-
base: 'kitt.4',
|
|
4367
|
-
medium: 'kitt.6'
|
|
4368
|
-
},
|
|
4361
|
+
padding = 'kitt.4',
|
|
4369
4362
|
...props
|
|
4370
4363
|
}) {
|
|
4371
4364
|
return /*#__PURE__*/jsxRuntime.jsx(ScrollView, {
|
|
4372
4365
|
showsVerticalScrollIndicator: false,
|
|
4373
4366
|
_contentContainerStyle: {
|
|
4374
|
-
|
|
4375
|
-
paddingY
|
|
4367
|
+
padding
|
|
4376
4368
|
},
|
|
4377
4369
|
...props,
|
|
4378
4370
|
children: children
|
|
@@ -4402,53 +4394,147 @@ function CardModalFooter({
|
|
|
4402
4394
|
});
|
|
4403
4395
|
}
|
|
4404
4396
|
|
|
4405
|
-
|
|
4406
|
-
|
|
4397
|
+
const getButtonTypeAndVariant = iconColor => {
|
|
4398
|
+
switch (iconColor) {
|
|
4399
|
+
case 'black':
|
|
4400
|
+
return {
|
|
4401
|
+
type: 'tertiary'
|
|
4402
|
+
};
|
|
4403
|
+
case 'secondary':
|
|
4404
|
+
return {
|
|
4405
|
+
type: 'secondary'
|
|
4406
|
+
};
|
|
4407
|
+
case 'primary':
|
|
4408
|
+
return {
|
|
4409
|
+
type: 'primary'
|
|
4410
|
+
};
|
|
4411
|
+
case 'primary-plain':
|
|
4412
|
+
return {
|
|
4413
|
+
type: 'primary'
|
|
4414
|
+
};
|
|
4415
|
+
case 'ghost':
|
|
4416
|
+
return {
|
|
4417
|
+
type: 'tertiary',
|
|
4418
|
+
variant: 'revert'
|
|
4419
|
+
};
|
|
4420
|
+
default:
|
|
4421
|
+
return {
|
|
4422
|
+
type: 'secondary'
|
|
4423
|
+
};
|
|
4424
|
+
}
|
|
4425
|
+
};
|
|
4426
|
+
|
|
4427
|
+
/**
|
|
4428
|
+
* @deprecated IconButton should only be used as a navigation button
|
|
4429
|
+
* Other use cases should use a <Button> component with an icon
|
|
4430
|
+
*/
|
|
4431
|
+
function IconButton({
|
|
4432
|
+
color = 'black',
|
|
4433
|
+
ariaLabel,
|
|
4434
|
+
...props
|
|
4435
|
+
}) {
|
|
4436
|
+
const {
|
|
4437
|
+
type: legacyColorToType,
|
|
4438
|
+
variant: legacyColorToVariant
|
|
4439
|
+
} = getButtonTypeAndVariant(color);
|
|
4440
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
4441
|
+
variant: legacyColorToVariant,
|
|
4442
|
+
type: legacyColorToType,
|
|
4443
|
+
...props
|
|
4444
|
+
});
|
|
4445
|
+
}
|
|
4446
|
+
function CloseIconButton(props) {
|
|
4447
|
+
return /*#__PURE__*/jsxRuntime.jsx(IconButton, {
|
|
4448
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.XRegularIcon, {}),
|
|
4449
|
+
...props
|
|
4450
|
+
});
|
|
4451
|
+
}
|
|
4452
|
+
|
|
4453
|
+
function TopNavBar({
|
|
4454
|
+
left,
|
|
4455
|
+
right,
|
|
4407
4456
|
title,
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
},
|
|
4457
|
+
titleAlign = 'center',
|
|
4458
|
+
stickers,
|
|
4459
|
+
mode = 'default',
|
|
4412
4460
|
hasSeparator = true,
|
|
4413
|
-
|
|
4414
|
-
left,
|
|
4415
|
-
...props
|
|
4461
|
+
testID
|
|
4416
4462
|
}) {
|
|
4417
|
-
const
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
};
|
|
4421
|
-
return /*#__PURE__*/jsxRuntime.
|
|
4422
|
-
|
|
4423
|
-
padding: paddingBottom,
|
|
4424
|
-
borderBottomWidth: hasSeparator ? 'kitt.cardModal.footer.borderWidth' : 0,
|
|
4425
|
-
borderColor: "kitt.separator",
|
|
4426
|
-
justifyContent: "center",
|
|
4463
|
+
const isLargeTitleMode = mode === 'largeTitle';
|
|
4464
|
+
const leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4465
|
+
width: "kitt.iconButton.width"
|
|
4466
|
+
});
|
|
4467
|
+
return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4468
|
+
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
4427
4469
|
width: "100%",
|
|
4428
|
-
height:
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4470
|
+
height: mode === 'default' ? 56 : undefined,
|
|
4471
|
+
justifyContent: "center",
|
|
4472
|
+
paddingX: "kitt.2",
|
|
4473
|
+
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
4474
|
+
paddingBottom: "kitt.3",
|
|
4475
|
+
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4476
|
+
borderColor: "kitt.separator",
|
|
4477
|
+
testID: testID,
|
|
4478
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
4432
4479
|
alignItems: "center",
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
children: [left ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4436
|
-
width: "kitt.iconButton.width",
|
|
4437
|
-
children: left
|
|
4438
|
-
}) : null, /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
4480
|
+
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
4481
|
+
children: [left ?? leftEmptySpace, mode === 'default' ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4439
4482
|
flexGrow: "1",
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4483
|
+
flexShrink: 1,
|
|
4484
|
+
paddingRight: "kitt.2",
|
|
4485
|
+
paddingLeft: "kitt.2",
|
|
4486
|
+
children: title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
4487
|
+
textAlign: titleAlign,
|
|
4444
4488
|
variant: "bold",
|
|
4489
|
+
ellipsizeMode: "tail",
|
|
4490
|
+
numberOfLines: 1,
|
|
4445
4491
|
children: title
|
|
4446
|
-
}) : null
|
|
4447
|
-
}), right
|
|
4448
|
-
width: "kitt.iconButton.width"
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4492
|
+
}) : null
|
|
4493
|
+
}) : null, right ?? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4494
|
+
width: "kitt.iconButton.width"
|
|
4495
|
+
})]
|
|
4496
|
+
}), mode === 'largeTitle' ? /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4497
|
+
space: "kitt.4",
|
|
4498
|
+
paddingX: "kitt.2",
|
|
4499
|
+
children: [stickers ? /*#__PURE__*/jsxRuntime.jsx(HStack, {
|
|
4500
|
+
width: "100%",
|
|
4501
|
+
space: "kitt.1",
|
|
4502
|
+
flexShrink: 1,
|
|
4503
|
+
flexWrap: "wrap",
|
|
4504
|
+
style: {
|
|
4505
|
+
rowGap: theme.getSpacing(1)
|
|
4506
|
+
},
|
|
4507
|
+
children: stickers.map((sticker, index) =>
|
|
4508
|
+
/*#__PURE__*/
|
|
4509
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
4510
|
+
jsxRuntime.jsx(View, {
|
|
4511
|
+
children: sticker
|
|
4512
|
+
}, index))
|
|
4513
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
4514
|
+
base: "heading-m",
|
|
4515
|
+
children: title
|
|
4516
|
+
})]
|
|
4517
|
+
}) : null]
|
|
4518
|
+
});
|
|
4519
|
+
}
|
|
4520
|
+
function CloseButton(props) {
|
|
4521
|
+
return /*#__PURE__*/jsxRuntime.jsx(IconButton, {
|
|
4522
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.XRegularIcon, {}),
|
|
4523
|
+
...props
|
|
4524
|
+
});
|
|
4525
|
+
}
|
|
4526
|
+
function BackButton(props) {
|
|
4527
|
+
return /*#__PURE__*/jsxRuntime.jsx(IconButton, {
|
|
4528
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.ArrowLeftRegularIcon, {}),
|
|
4529
|
+
...props
|
|
4530
|
+
});
|
|
4531
|
+
}
|
|
4532
|
+
TopNavBar.CloseButton = CloseButton;
|
|
4533
|
+
TopNavBar.BackButton = BackButton;
|
|
4534
|
+
|
|
4535
|
+
function CardModalHeader(props) {
|
|
4536
|
+
return /*#__PURE__*/jsxRuntime.jsx(TopNavBar, {
|
|
4537
|
+
...props
|
|
4452
4538
|
});
|
|
4453
4539
|
}
|
|
4454
4540
|
|
|
@@ -6300,11 +6386,7 @@ function ModalTitle({
|
|
|
6300
6386
|
children
|
|
6301
6387
|
}) {
|
|
6302
6388
|
return /*#__PURE__*/jsxRuntime.jsx(CardModal.Header, {
|
|
6303
|
-
|
|
6304
|
-
base: "body-m",
|
|
6305
|
-
variant: "bold",
|
|
6306
|
-
children: children
|
|
6307
|
-
})
|
|
6389
|
+
title: children
|
|
6308
6390
|
});
|
|
6309
6391
|
}
|
|
6310
6392
|
function ModalPlatformDateTimePicker({
|
|
@@ -8236,60 +8318,16 @@ function FullscreenModalContainer({
|
|
|
8236
8318
|
}
|
|
8237
8319
|
|
|
8238
8320
|
function FullscreenModalHeader({
|
|
8239
|
-
hasSeparator = true,
|
|
8240
|
-
isTransparent,
|
|
8241
|
-
title,
|
|
8242
|
-
children,
|
|
8243
|
-
right,
|
|
8244
|
-
left,
|
|
8245
8321
|
shouldHandleTopNotch = true,
|
|
8246
8322
|
...props
|
|
8247
8323
|
}) {
|
|
8248
8324
|
const {
|
|
8249
8325
|
top
|
|
8250
8326
|
} = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
8251
|
-
const hasRight = Boolean(right);
|
|
8252
|
-
const hasLeft = Boolean(left);
|
|
8253
|
-
const hasContent = Boolean(title || children);
|
|
8254
8327
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8255
|
-
backgroundColor: isTransparent ? 'kitt.transparent' : 'kitt.uiBackgroundLight',
|
|
8256
|
-
minHeight: "kitt.fullscreenModal.header.height",
|
|
8257
|
-
width: "100%",
|
|
8258
|
-
justifyContent: "center",
|
|
8259
8328
|
paddingTop: shouldHandleTopNotch ? top : undefined,
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
borderBottomColor: "kitt.separator",
|
|
8263
|
-
borderBottomWidth: hasSeparator ? 1 : undefined,
|
|
8264
|
-
...props,
|
|
8265
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(View, {
|
|
8266
|
-
flexDirection: "row",
|
|
8267
|
-
alignItems: "center",
|
|
8268
|
-
justifyContent: !hasContent && !hasLeft ? 'flex-end' : 'space-between',
|
|
8269
|
-
children: [left ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8270
|
-
width: "kitt.iconButton.width",
|
|
8271
|
-
children: left
|
|
8272
|
-
}) : null, title ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8273
|
-
flexGrow: 1,
|
|
8274
|
-
flexShrink: 1,
|
|
8275
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
8276
|
-
paddingRight: hasRight ? 'kitt.2' : 0,
|
|
8277
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8278
|
-
variant: "bold",
|
|
8279
|
-
textAlign: !hasLeft && hasRight ? 'left' : 'center',
|
|
8280
|
-
children: title
|
|
8281
|
-
})
|
|
8282
|
-
}) : null, children ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8283
|
-
flexGrow: 1,
|
|
8284
|
-
flexShrink: 1,
|
|
8285
|
-
alignItems: "center",
|
|
8286
|
-
paddingLeft: hasLeft ? 'kitt.2' : undefined,
|
|
8287
|
-
paddingRight: hasRight ? 'kitt.2' : undefined,
|
|
8288
|
-
children: children
|
|
8289
|
-
}) : null, right || left ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8290
|
-
width: "kitt.iconButton.width",
|
|
8291
|
-
children: right
|
|
8292
|
-
}) : null]
|
|
8329
|
+
children: /*#__PURE__*/jsxRuntime.jsx(TopNavBar, {
|
|
8330
|
+
...props
|
|
8293
8331
|
})
|
|
8294
8332
|
});
|
|
8295
8333
|
}
|
|
@@ -8585,62 +8623,6 @@ function Highlight({
|
|
|
8585
8623
|
});
|
|
8586
8624
|
}
|
|
8587
8625
|
|
|
8588
|
-
const getButtonTypeAndVariant = iconColor => {
|
|
8589
|
-
switch (iconColor) {
|
|
8590
|
-
case 'black':
|
|
8591
|
-
return {
|
|
8592
|
-
type: 'tertiary'
|
|
8593
|
-
};
|
|
8594
|
-
case 'secondary':
|
|
8595
|
-
return {
|
|
8596
|
-
type: 'secondary'
|
|
8597
|
-
};
|
|
8598
|
-
case 'primary':
|
|
8599
|
-
return {
|
|
8600
|
-
type: 'primary'
|
|
8601
|
-
};
|
|
8602
|
-
case 'primary-plain':
|
|
8603
|
-
return {
|
|
8604
|
-
type: 'primary'
|
|
8605
|
-
};
|
|
8606
|
-
case 'ghost':
|
|
8607
|
-
return {
|
|
8608
|
-
type: 'tertiary',
|
|
8609
|
-
variant: 'revert'
|
|
8610
|
-
};
|
|
8611
|
-
default:
|
|
8612
|
-
return {
|
|
8613
|
-
type: 'secondary'
|
|
8614
|
-
};
|
|
8615
|
-
}
|
|
8616
|
-
};
|
|
8617
|
-
|
|
8618
|
-
/**
|
|
8619
|
-
* @deprecated IconButton should only be used as a navigation button
|
|
8620
|
-
* Other use cases should use a <Button> component with an icon
|
|
8621
|
-
*/
|
|
8622
|
-
function IconButton({
|
|
8623
|
-
color = 'black',
|
|
8624
|
-
ariaLabel,
|
|
8625
|
-
...props
|
|
8626
|
-
}) {
|
|
8627
|
-
const {
|
|
8628
|
-
type: legacyColorToType,
|
|
8629
|
-
variant: legacyColorToVariant
|
|
8630
|
-
} = getButtonTypeAndVariant(color);
|
|
8631
|
-
return /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
8632
|
-
variant: legacyColorToVariant,
|
|
8633
|
-
type: legacyColorToType,
|
|
8634
|
-
...props
|
|
8635
|
-
});
|
|
8636
|
-
}
|
|
8637
|
-
function CloseIconButton(props) {
|
|
8638
|
-
return /*#__PURE__*/jsxRuntime.jsx(IconButton, {
|
|
8639
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.XRegularIcon, {}),
|
|
8640
|
-
...props
|
|
8641
|
-
});
|
|
8642
|
-
}
|
|
8643
|
-
|
|
8644
8626
|
function InfoCard({
|
|
8645
8627
|
title,
|
|
8646
8628
|
action,
|
|
@@ -10366,9 +10348,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10366
10348
|
},
|
|
10367
10349
|
icon: theme.icon,
|
|
10368
10350
|
cardModal: {
|
|
10369
|
-
header: {
|
|
10370
|
-
height: theme.cardModal.header.height
|
|
10371
|
-
},
|
|
10372
10351
|
maxWidth: theme.cardModal.maxWidth,
|
|
10373
10352
|
maxWidthWithPadding: theme.cardModal.maxWidthWithPadding,
|
|
10374
10353
|
minHeight: theme.cardModal.minHeight
|
|
@@ -10673,11 +10652,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10673
10652
|
width: theme.iconButton.width,
|
|
10674
10653
|
height: theme.iconButton.height
|
|
10675
10654
|
},
|
|
10676
|
-
fullscreenModal: {
|
|
10677
|
-
header: {
|
|
10678
|
-
height: theme.fullscreenModal.header.height
|
|
10679
|
-
}
|
|
10680
|
-
},
|
|
10681
10655
|
pageLoader: {
|
|
10682
10656
|
size: theme.pageLoader.size
|
|
10683
10657
|
},
|
|
@@ -10775,7 +10749,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10775
10749
|
}
|
|
10776
10750
|
},
|
|
10777
10751
|
fullscreenModal: {
|
|
10778
|
-
horizontalPadding: theme.fullscreenModal.
|
|
10752
|
+
horizontalPadding: theme.fullscreenModal.horizontalPadding,
|
|
10779
10753
|
body: {
|
|
10780
10754
|
verticalPadding: theme.fullscreenModal.body.verticalPadding
|
|
10781
10755
|
},
|
|
@@ -11631,19 +11605,17 @@ function NavigationBottomSheet({
|
|
|
11631
11605
|
})
|
|
11632
11606
|
});
|
|
11633
11607
|
}
|
|
11608
|
+
|
|
11609
|
+
/**
|
|
11610
|
+
* Web only: display right CloseButton
|
|
11611
|
+
*/
|
|
11612
|
+
|
|
11634
11613
|
function NavigationBottomSheetHeader({
|
|
11635
|
-
|
|
11636
|
-
|
|
11614
|
+
right,
|
|
11615
|
+
...props
|
|
11637
11616
|
}) {
|
|
11638
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
11639
|
-
|
|
11640
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
11641
|
-
flexGrow: 1,
|
|
11642
|
-
flexShrink: 1,
|
|
11643
|
-
variant: "bold",
|
|
11644
|
-
textAlign: "center",
|
|
11645
|
-
children: children
|
|
11646
|
-
})
|
|
11617
|
+
return /*#__PURE__*/jsxRuntime.jsx(TopNavBar, {
|
|
11618
|
+
...props
|
|
11647
11619
|
});
|
|
11648
11620
|
}
|
|
11649
11621
|
function NavigationBottomSheetBody(props) {
|
|
@@ -12098,14 +12070,9 @@ function Picker({
|
|
|
12098
12070
|
onClose: handleClose,
|
|
12099
12071
|
children: /*#__PURE__*/jsxRuntime.jsxs(CardModal, {
|
|
12100
12072
|
children: [/*#__PURE__*/jsxRuntime.jsx(CardModal.Header, {
|
|
12101
|
-
|
|
12102
|
-
|
|
12073
|
+
title: title,
|
|
12074
|
+
right: /*#__PURE__*/jsxRuntime.jsx(TopNavBar.CloseButton, {
|
|
12103
12075
|
onPress: handleClose
|
|
12104
|
-
}),
|
|
12105
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
12106
|
-
base: "body-m",
|
|
12107
|
-
variant: "bold",
|
|
12108
|
-
children: title
|
|
12109
12076
|
})
|
|
12110
12077
|
}), reactNative.Platform.OS === 'ios' && shouldDisplayNativePickerOnIOS ? /*#__PURE__*/jsxRuntime.jsx(picker$1.Picker, {
|
|
12111
12078
|
testID: testID,
|
|
@@ -13649,85 +13616,6 @@ function Tooltip({
|
|
|
13649
13616
|
Tooltip.Arrow = Arrow;
|
|
13650
13617
|
Tooltip.Content = TooltipContent;
|
|
13651
13618
|
|
|
13652
|
-
function TopNavBar({
|
|
13653
|
-
left,
|
|
13654
|
-
right,
|
|
13655
|
-
title,
|
|
13656
|
-
titleAlign = 'center',
|
|
13657
|
-
stickers,
|
|
13658
|
-
mode = 'default',
|
|
13659
|
-
hasSeparator = true
|
|
13660
|
-
}) {
|
|
13661
|
-
const isLargeTitleMode = mode === 'largeTitle';
|
|
13662
|
-
return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
13663
|
-
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
13664
|
-
width: "100%",
|
|
13665
|
-
height: mode === 'default' ? 56 : undefined,
|
|
13666
|
-
justifyContent: "center",
|
|
13667
|
-
paddingX: "kitt.2",
|
|
13668
|
-
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
13669
|
-
paddingBottom: "kitt.3",
|
|
13670
|
-
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
13671
|
-
borderColor: "kitt.separator",
|
|
13672
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
13673
|
-
alignItems: "center",
|
|
13674
|
-
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
13675
|
-
children: [left ?? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
13676
|
-
width: "kitt.button.minWidth"
|
|
13677
|
-
}), mode === 'default' ? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
13678
|
-
flexGrow: "1",
|
|
13679
|
-
flexShrink: 1,
|
|
13680
|
-
paddingRight: "kitt.2",
|
|
13681
|
-
paddingLeft: "kitt.2",
|
|
13682
|
-
children: title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13683
|
-
textAlign: titleAlign,
|
|
13684
|
-
variant: "bold",
|
|
13685
|
-
ellipsizeMode: "tail",
|
|
13686
|
-
numberOfLines: 1,
|
|
13687
|
-
children: title
|
|
13688
|
-
}) : null
|
|
13689
|
-
}) : null, right ?? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
13690
|
-
width: "kitt.button.minWidth"
|
|
13691
|
-
})]
|
|
13692
|
-
}), mode === 'largeTitle' ? /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
13693
|
-
space: "kitt.4",
|
|
13694
|
-
paddingX: "kitt.2",
|
|
13695
|
-
children: [stickers ? /*#__PURE__*/jsxRuntime.jsx(HStack, {
|
|
13696
|
-
width: "100%",
|
|
13697
|
-
space: "kitt.1",
|
|
13698
|
-
flexShrink: 1,
|
|
13699
|
-
flexWrap: "wrap",
|
|
13700
|
-
style: {
|
|
13701
|
-
rowGap: theme.getSpacing(1)
|
|
13702
|
-
},
|
|
13703
|
-
children: stickers.map((sticker, index) =>
|
|
13704
|
-
/*#__PURE__*/
|
|
13705
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
13706
|
-
jsxRuntime.jsx(View, {
|
|
13707
|
-
children: sticker
|
|
13708
|
-
}, index))
|
|
13709
|
-
}) : null, /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
13710
|
-
base: "heading-m",
|
|
13711
|
-
children: title
|
|
13712
|
-
})]
|
|
13713
|
-
}) : null]
|
|
13714
|
-
});
|
|
13715
|
-
}
|
|
13716
|
-
function CloseButton(props) {
|
|
13717
|
-
return /*#__PURE__*/jsxRuntime.jsx(IconButton, {
|
|
13718
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.XRegularIcon, {}),
|
|
13719
|
-
...props
|
|
13720
|
-
});
|
|
13721
|
-
}
|
|
13722
|
-
function BackButton(props) {
|
|
13723
|
-
return /*#__PURE__*/jsxRuntime.jsx(IconButton, {
|
|
13724
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(phosphor.ArrowLeftRegularIcon, {}),
|
|
13725
|
-
...props
|
|
13726
|
-
});
|
|
13727
|
-
}
|
|
13728
|
-
TopNavBar.CloseButton = CloseButton;
|
|
13729
|
-
TopNavBar.BackButton = BackButton;
|
|
13730
|
-
|
|
13731
13619
|
function getTypographyTypeConfig(type, theme) {
|
|
13732
13620
|
const {
|
|
13733
13621
|
configs
|