@ornikar/kitt-universal 27.9.1-canary.b005d681364bb7e16454f696f46b5af55d721a97.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 +5 -1
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +2 -3
- package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
- package/dist/definitions/TopNavBar/TopNavBar.d.ts +2 -1
- package/dist/definitions/TopNavBar/TopNavBar.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +8 -14
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +1 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts +6 -0
- package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -0
- package/dist/index-metro.es.android.js +106 -92
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +106 -92
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +19 -4
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +15 -3
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +19 -4
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +15 -3
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +107 -92
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +15 -3
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +6 -0
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +6 -0
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +6 -0
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +6 -0
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +6 -0
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +6 -0
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +6 -0
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +6 -0
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1894,6 +1894,11 @@ const icon = {
|
|
|
1894
1894
|
defaultSize: 20
|
|
1895
1895
|
};
|
|
1896
1896
|
|
|
1897
|
+
const iconButton = {
|
|
1898
|
+
width: button.height.default,
|
|
1899
|
+
height: button.height.default
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1897
1902
|
const listItem = {
|
|
1898
1903
|
padding: '12px 16px',
|
|
1899
1904
|
verticalPadding: 12,
|
|
@@ -2622,6 +2627,7 @@ const theme = {
|
|
|
2622
2627
|
forms,
|
|
2623
2628
|
highlight,
|
|
2624
2629
|
icon,
|
|
2630
|
+
iconButton,
|
|
2625
2631
|
buttonBadge,
|
|
2626
2632
|
listItem,
|
|
2627
2633
|
pageLoader,
|
|
@@ -4428,11 +4434,12 @@ function TopNavBar({
|
|
|
4428
4434
|
titleAlign = 'center',
|
|
4429
4435
|
stickers,
|
|
4430
4436
|
mode = 'default',
|
|
4431
|
-
hasSeparator = true
|
|
4437
|
+
hasSeparator = true,
|
|
4438
|
+
testID
|
|
4432
4439
|
}) {
|
|
4433
4440
|
const isLargeTitleMode = mode === 'largeTitle';
|
|
4434
4441
|
const leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
|
|
4435
|
-
width: "kitt.
|
|
4442
|
+
width: "kitt.iconButton.width"
|
|
4436
4443
|
});
|
|
4437
4444
|
return /*#__PURE__*/jsxs(VStack, {
|
|
4438
4445
|
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
@@ -4444,6 +4451,7 @@ function TopNavBar({
|
|
|
4444
4451
|
paddingBottom: "kitt.3",
|
|
4445
4452
|
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4446
4453
|
borderColor: "kitt.separator",
|
|
4454
|
+
testID: testID,
|
|
4447
4455
|
children: [/*#__PURE__*/jsxs(HStack, {
|
|
4448
4456
|
alignItems: "center",
|
|
4449
4457
|
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
@@ -4460,7 +4468,7 @@ function TopNavBar({
|
|
|
4460
4468
|
children: title
|
|
4461
4469
|
}) : null
|
|
4462
4470
|
}) : null, right ?? /*#__PURE__*/jsx(View, {
|
|
4463
|
-
width: "kitt.
|
|
4471
|
+
width: "kitt.iconButton.width"
|
|
4464
4472
|
})]
|
|
4465
4473
|
}), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
|
|
4466
4474
|
space: "kitt.4",
|
|
@@ -10617,6 +10625,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10617
10625
|
}
|
|
10618
10626
|
}
|
|
10619
10627
|
},
|
|
10628
|
+
iconButton: {
|
|
10629
|
+
width: theme.iconButton.width,
|
|
10630
|
+
height: theme.iconButton.height
|
|
10631
|
+
},
|
|
10620
10632
|
pageLoader: {
|
|
10621
10633
|
size: theme.pageLoader.size
|
|
10622
10634
|
},
|
|
@@ -11575,7 +11587,10 @@ function NavigationBottomSheet({
|
|
|
11575
11587
|
* Web only: display right CloseButton
|
|
11576
11588
|
*/
|
|
11577
11589
|
|
|
11578
|
-
function NavigationBottomSheetHeader(
|
|
11590
|
+
function NavigationBottomSheetHeader({
|
|
11591
|
+
right,
|
|
11592
|
+
...props
|
|
11593
|
+
}) {
|
|
11579
11594
|
return /*#__PURE__*/jsx(TopNavBar, {
|
|
11580
11595
|
...props
|
|
11581
11596
|
});
|