@ornikar/kitt-universal 32.3.0 → 32.3.1-canary.ddff29bdf3ffa500cf7658e5206d5069b23f4b45.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 (46) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/definitions/Button/AnimatedContainer.d.ts.map +1 -1
  3. package/dist/definitions/Button/AnimatedContainer.web.d.ts.map +1 -1
  4. package/dist/definitions/Button/Button.d.ts.map +1 -1
  5. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +9 -3
  6. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  7. package/dist/definitions/themes/default.d.ts +5 -0
  8. package/dist/definitions/themes/default.d.ts.map +1 -1
  9. package/dist/definitions/themes/late-ocean/button.d.ts +3 -0
  10. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  11. package/dist/definitions/themes/late-ocean/typography.d.ts +5 -0
  12. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  13. package/dist/index-metro.es.android.js +31 -14
  14. package/dist/index-metro.es.android.js.map +1 -1
  15. package/dist/index-metro.es.ios.js +31 -14
  16. package/dist/index-metro.es.ios.js.map +1 -1
  17. package/dist/index-node-22.17.cjs.js +31 -14
  18. package/dist/index-node-22.17.cjs.js.map +1 -1
  19. package/dist/index-node-22.17.cjs.web.js +31 -13
  20. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  21. package/dist/index-node-22.17.es.mjs +31 -14
  22. package/dist/index-node-22.17.es.mjs.map +1 -1
  23. package/dist/index-node-22.17.es.web.mjs +31 -13
  24. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  25. package/dist/index.es.js +31 -14
  26. package/dist/index.es.js.map +1 -1
  27. package/dist/index.es.web.js +31 -13
  28. package/dist/index.es.web.js.map +1 -1
  29. package/dist/linaria-themes-metro.es.android.js +19 -10
  30. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  31. package/dist/linaria-themes-metro.es.ios.js +19 -10
  32. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  33. package/dist/linaria-themes-node-22.17.cjs.js +19 -10
  34. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  35. package/dist/linaria-themes-node-22.17.cjs.web.js +19 -10
  36. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  37. package/dist/linaria-themes-node-22.17.es.mjs +19 -10
  38. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  39. package/dist/linaria-themes-node-22.17.es.web.mjs +19 -10
  40. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  41. package/dist/linaria-themes.es.js +19 -10
  42. package/dist/linaria-themes.es.js.map +1 -1
  43. package/dist/linaria-themes.es.web.js +19 -10
  44. package/dist/linaria-themes.es.web.js.map +1 -1
  45. package/dist/tsbuildinfo +1 -1
  46. package/package.json +1 -1
@@ -680,6 +680,10 @@ const button = {
680
680
  default: 40,
681
681
  medium: 48
682
682
  },
683
+ minHeight: {
684
+ default: 40,
685
+ medium: 48
686
+ },
683
687
  maxHeight: 48,
684
688
  icon: {
685
689
  medium: {
@@ -2133,8 +2137,8 @@ const typography = {
2133
2137
  allowedFontWeights: ['semibold']
2134
2138
  },
2135
2139
  'heading-l': {
2136
- fontSize: 40,
2137
- lineHeight: 48,
2140
+ fontSize: 38,
2141
+ lineHeight: 44,
2138
2142
  allowedFontWeights: ['semibold']
2139
2143
  },
2140
2144
  'heading-m': {
@@ -2143,14 +2147,19 @@ const typography = {
2143
2147
  allowedFontWeights: ['semibold']
2144
2148
  },
2145
2149
  'heading-s': {
2146
- fontSize: 18,
2147
- lineHeight: 20,
2148
- allowedFontWeights: ['regular', 'bold']
2150
+ fontSize: 24,
2151
+ lineHeight: 28,
2152
+ allowedFontWeights: ['semibold']
2149
2153
  },
2150
2154
  'heading-xs': {
2155
+ fontSize: 20,
2156
+ lineHeight: 24,
2157
+ allowedFontWeights: ['semibold']
2158
+ },
2159
+ 'heading-xxs': {
2151
2160
  fontSize: 16,
2152
- lineHeight: 18,
2153
- allowedFontWeights: ['regular', 'bold']
2161
+ lineHeight: 20,
2162
+ allowedFontWeights: ['semibold']
2154
2163
  }
2155
2164
  }
2156
2165
  },
@@ -2217,17 +2226,17 @@ const typography = {
2217
2226
  configs: {
2218
2227
  'label-large': {
2219
2228
  fontSize: 16,
2220
- lineHeight: 24,
2229
+ lineHeight: 20,
2221
2230
  allowedFontWeights: ['semibold']
2222
2231
  },
2223
2232
  'label-medium': {
2224
2233
  fontSize: 14,
2225
- lineHeight: 20,
2234
+ lineHeight: 18,
2226
2235
  allowedFontWeights: ['semibold']
2227
2236
  },
2228
2237
  'label-small': {
2229
2238
  fontSize: 12,
2230
- lineHeight: 16,
2239
+ lineHeight: 14,
2231
2240
  allowedFontWeights: ['semibold']
2232
2241
  }
2233
2242
  }
@@ -3145,7 +3154,9 @@ function AnimatedContainer$2({
3145
3154
  },
3146
3155
  width: width,
3147
3156
  height: height,
3157
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3148
3158
  alignSelf: "baseline",
3159
+ justifyContent: "center",
3149
3160
  borderRadius: "kitt.button.borderRadius",
3150
3161
  backgroundColor: currentBackgroundColor,
3151
3162
  children: children
@@ -3841,6 +3852,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
3841
3852
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3842
3853
  minWidth: "kitt.button.minWidth",
3843
3854
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3855
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3844
3856
  maxHeight: "kitt.button.maxHeight",
3845
3857
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3846
3858
  onPress: onPress,
@@ -9921,6 +9933,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9921
9933
  button: {
9922
9934
  minWidth: theme.button.minWidth,
9923
9935
  maxWidth: theme.button.maxWidth,
9936
+ minHeight: {
9937
+ default: theme.button.minHeight.default,
9938
+ medium: theme.button.minHeight.medium
9939
+ },
9924
9940
  maxHeight: theme.button.maxHeight,
9925
9941
  height: {
9926
9942
  default: theme.button.height.default,
@@ -10542,6 +10558,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10542
10558
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10543
10559
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10544
10560
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10561
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10545
10562
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10546
10563
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10547
10564
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10565,6 +10582,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10565
10582
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10566
10583
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10567
10584
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10585
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10568
10586
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10569
10587
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10570
10588
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -12392,7 +12410,7 @@ function StoryTitleLevel4({
12392
12410
  return /*#__PURE__*/jsxRuntime.jsx(View, {
12393
12411
  marginBottom: 10,
12394
12412
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
12395
- base: "heading-s",
12413
+ base: "body-l",
12396
12414
  color: useStoryBlockColor(color),
12397
12415
  numberOfLines: numberOfLines,
12398
12416
  children: children
@@ -12941,7 +12959,7 @@ function ToastContent({
12941
12959
  flexGrow: 1,
12942
12960
  flexShrink: 1,
12943
12961
  children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
12944
- base: "heading-xs",
12962
+ base: "body-m",
12945
12963
  color: "white",
12946
12964
  children: title
12947
12965
  }) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
@@ -12957,7 +12975,7 @@ function ToastContent({
12957
12975
  borderColor: "white",
12958
12976
  onPress: onPress,
12959
12977
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
12960
- base: "heading-xs",
12978
+ base: "body-m",
12961
12979
  color: "white",
12962
12980
  children: actionLabel
12963
12981
  })