@ornikar/kitt-universal 27.9.1-canary.b005d681364bb7e16454f696f46b5af55d721a97.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 +6 -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 +4 -2
- 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 +108 -92
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +108 -92
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +21 -4
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +17 -3
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +21 -4
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +17 -3
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +109 -92
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +17 -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
|
@@ -1917,6 +1917,11 @@ const icon = {
|
|
|
1917
1917
|
defaultSize: 20
|
|
1918
1918
|
};
|
|
1919
1919
|
|
|
1920
|
+
const iconButton = {
|
|
1921
|
+
width: button.height.default,
|
|
1922
|
+
height: button.height.default
|
|
1923
|
+
};
|
|
1924
|
+
|
|
1920
1925
|
const listItem = {
|
|
1921
1926
|
padding: '12px 16px',
|
|
1922
1927
|
verticalPadding: 12,
|
|
@@ -2645,6 +2650,7 @@ const theme = {
|
|
|
2645
2650
|
forms,
|
|
2646
2651
|
highlight,
|
|
2647
2652
|
icon,
|
|
2653
|
+
iconButton,
|
|
2648
2654
|
buttonBadge,
|
|
2649
2655
|
listItem,
|
|
2650
2656
|
pageLoader,
|
|
@@ -4451,11 +4457,13 @@ function TopNavBar({
|
|
|
4451
4457
|
titleAlign = 'center',
|
|
4452
4458
|
stickers,
|
|
4453
4459
|
mode = 'default',
|
|
4454
|
-
hasSeparator = true
|
|
4460
|
+
hasSeparator = true,
|
|
4461
|
+
backgroundColor,
|
|
4462
|
+
testID
|
|
4455
4463
|
}) {
|
|
4456
4464
|
const isLargeTitleMode = mode === 'largeTitle';
|
|
4457
4465
|
const leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4458
|
-
width: "kitt.
|
|
4466
|
+
width: "kitt.iconButton.width"
|
|
4459
4467
|
});
|
|
4460
4468
|
return /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4461
4469
|
space: isLargeTitleMode ? 'kitt.2' : undefined,
|
|
@@ -4465,8 +4473,10 @@ function TopNavBar({
|
|
|
4465
4473
|
paddingX: "kitt.2",
|
|
4466
4474
|
paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
|
|
4467
4475
|
paddingBottom: "kitt.3",
|
|
4476
|
+
backgroundColor: backgroundColor,
|
|
4468
4477
|
borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
|
|
4469
4478
|
borderColor: "kitt.separator",
|
|
4479
|
+
testID: testID,
|
|
4470
4480
|
children: [/*#__PURE__*/jsxRuntime.jsxs(HStack, {
|
|
4471
4481
|
alignItems: "center",
|
|
4472
4482
|
justifyContent: !title && !left ? 'flex-end' : 'space-between',
|
|
@@ -4483,7 +4493,7 @@ function TopNavBar({
|
|
|
4483
4493
|
children: title
|
|
4484
4494
|
}) : null
|
|
4485
4495
|
}) : null, right ?? /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
4486
|
-
width: "kitt.
|
|
4496
|
+
width: "kitt.iconButton.width"
|
|
4487
4497
|
})]
|
|
4488
4498
|
}), mode === 'largeTitle' ? /*#__PURE__*/jsxRuntime.jsxs(VStack, {
|
|
4489
4499
|
space: "kitt.4",
|
|
@@ -10640,6 +10650,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
10640
10650
|
}
|
|
10641
10651
|
}
|
|
10642
10652
|
},
|
|
10653
|
+
iconButton: {
|
|
10654
|
+
width: theme.iconButton.width,
|
|
10655
|
+
height: theme.iconButton.height
|
|
10656
|
+
},
|
|
10643
10657
|
pageLoader: {
|
|
10644
10658
|
size: theme.pageLoader.size
|
|
10645
10659
|
},
|
|
@@ -11598,7 +11612,10 @@ function NavigationBottomSheet({
|
|
|
11598
11612
|
* Web only: display right CloseButton
|
|
11599
11613
|
*/
|
|
11600
11614
|
|
|
11601
|
-
function NavigationBottomSheetHeader(
|
|
11615
|
+
function NavigationBottomSheetHeader({
|
|
11616
|
+
right,
|
|
11617
|
+
...props
|
|
11618
|
+
}) {
|
|
11602
11619
|
return /*#__PURE__*/jsxRuntime.jsx(TopNavBar, {
|
|
11603
11620
|
...props
|
|
11604
11621
|
});
|