@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.
Files changed (45) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts +2 -3
  3. package/dist/definitions/NavigationBottomSheet/NavigationBottomSheet.d.ts.map +1 -1
  4. package/dist/definitions/TopNavBar/TopNavBar.d.ts +4 -2
  5. package/dist/definitions/TopNavBar/TopNavBar.d.ts.map +1 -1
  6. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +8 -14
  7. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  8. package/dist/definitions/themes/default.d.ts +1 -0
  9. package/dist/definitions/themes/default.d.ts.map +1 -1
  10. package/dist/definitions/themes/late-ocean/iconButton.d.ts +6 -0
  11. package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -0
  12. package/dist/index-metro.es.android.js +108 -92
  13. package/dist/index-metro.es.android.js.map +1 -1
  14. package/dist/index-metro.es.ios.js +108 -92
  15. package/dist/index-metro.es.ios.js.map +1 -1
  16. package/dist/index-node-22.17.cjs.js +21 -4
  17. package/dist/index-node-22.17.cjs.js.map +1 -1
  18. package/dist/index-node-22.17.cjs.web.js +17 -3
  19. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  20. package/dist/index-node-22.17.es.mjs +21 -4
  21. package/dist/index-node-22.17.es.mjs.map +1 -1
  22. package/dist/index-node-22.17.es.web.mjs +17 -3
  23. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  24. package/dist/index.es.js +109 -92
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.es.web.js +17 -3
  27. package/dist/index.es.web.js.map +1 -1
  28. package/dist/linaria-themes-metro.es.android.js +6 -0
  29. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  30. package/dist/linaria-themes-metro.es.ios.js +6 -0
  31. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  32. package/dist/linaria-themes-node-22.17.cjs.js +6 -0
  33. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  34. package/dist/linaria-themes-node-22.17.cjs.web.js +6 -0
  35. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  36. package/dist/linaria-themes-node-22.17.es.mjs +6 -0
  37. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  38. package/dist/linaria-themes-node-22.17.es.web.mjs +6 -0
  39. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  40. package/dist/linaria-themes.es.js +6 -0
  41. package/dist/linaria-themes.es.js.map +1 -1
  42. package/dist/linaria-themes.es.web.js +6 -0
  43. package/dist/linaria-themes.es.web.js.map +1 -1
  44. package/dist/tsbuildinfo +1 -1
  45. package/package.json +1 -1
@@ -1890,6 +1890,11 @@ const icon = {
1890
1890
  defaultSize: 20
1891
1891
  };
1892
1892
 
1893
+ const iconButton = {
1894
+ width: button.height.default,
1895
+ height: button.height.default
1896
+ };
1897
+
1893
1898
  const listItem = {
1894
1899
  padding: '12px 16px',
1895
1900
  verticalPadding: 12,
@@ -2618,6 +2623,7 @@ const theme = {
2618
2623
  forms,
2619
2624
  highlight,
2620
2625
  icon,
2626
+ iconButton,
2621
2627
  buttonBadge,
2622
2628
  listItem,
2623
2629
  pageLoader,
@@ -4285,11 +4291,13 @@ function TopNavBar({
4285
4291
  titleAlign = 'center',
4286
4292
  stickers,
4287
4293
  mode = 'default',
4288
- hasSeparator = true
4294
+ hasSeparator = true,
4295
+ backgroundColor,
4296
+ testID
4289
4297
  }) {
4290
4298
  const isLargeTitleMode = mode === 'largeTitle';
4291
4299
  const leftEmptySpace = !left && titleAlign === 'left' ? null : /*#__PURE__*/jsx(View, {
4292
- width: "kitt.button.minWidth"
4300
+ width: "kitt.iconButton.width"
4293
4301
  });
4294
4302
  return /*#__PURE__*/jsxs(VStack, {
4295
4303
  space: isLargeTitleMode ? 'kitt.2' : undefined,
@@ -4299,8 +4307,10 @@ function TopNavBar({
4299
4307
  paddingX: "kitt.2",
4300
4308
  paddingTop: isLargeTitleMode ? 'kitt.2' : 'kitt.3',
4301
4309
  paddingBottom: "kitt.3",
4310
+ backgroundColor: backgroundColor,
4302
4311
  borderBottomWidth: hasSeparator && mode === 'default' ? 1 : 0,
4303
4312
  borderColor: "kitt.separator",
4313
+ testID: testID,
4304
4314
  children: [/*#__PURE__*/jsxs(HStack, {
4305
4315
  alignItems: "center",
4306
4316
  justifyContent: !title && !left ? 'flex-end' : 'space-between',
@@ -4317,7 +4327,7 @@ function TopNavBar({
4317
4327
  children: title
4318
4328
  }) : null
4319
4329
  }) : null, right ?? /*#__PURE__*/jsx(View, {
4320
- width: "kitt.button.minWidth"
4330
+ width: "kitt.iconButton.width"
4321
4331
  })]
4322
4332
  }), mode === 'largeTitle' ? /*#__PURE__*/jsxs(VStack, {
4323
4333
  space: "kitt.4",
@@ -9806,6 +9816,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9806
9816
  }
9807
9817
  }
9808
9818
  },
9819
+ iconButton: {
9820
+ width: theme.iconButton.width,
9821
+ height: theme.iconButton.height
9822
+ },
9809
9823
  pageLoader: {
9810
9824
  size: theme.pageLoader.size
9811
9825
  },