@ornikar/kitt-universal 32.5.0 → 32.5.1-canary.fa4369620bc01acac1d789322911d6bc321a3a45.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 (48) hide show
  1. package/CHANGELOG.md +20 -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/definitions/typography/Typography.d.ts +1 -1
  14. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  15. package/dist/index-metro.es.android.js +31 -14
  16. package/dist/index-metro.es.android.js.map +1 -1
  17. package/dist/index-metro.es.ios.js +31 -14
  18. package/dist/index-metro.es.ios.js.map +1 -1
  19. package/dist/index-node-22.17.cjs.js +31 -14
  20. package/dist/index-node-22.17.cjs.js.map +1 -1
  21. package/dist/index-node-22.17.cjs.web.js +31 -13
  22. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  23. package/dist/index-node-22.17.es.mjs +31 -14
  24. package/dist/index-node-22.17.es.mjs.map +1 -1
  25. package/dist/index-node-22.17.es.web.mjs +31 -13
  26. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  27. package/dist/index.es.js +31 -14
  28. package/dist/index.es.js.map +1 -1
  29. package/dist/index.es.web.js +31 -13
  30. package/dist/index.es.web.js.map +1 -1
  31. package/dist/linaria-themes-metro.es.android.js +19 -10
  32. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  33. package/dist/linaria-themes-metro.es.ios.js +19 -10
  34. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  35. package/dist/linaria-themes-node-22.17.cjs.js +19 -10
  36. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  37. package/dist/linaria-themes-node-22.17.cjs.web.js +19 -10
  38. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  39. package/dist/linaria-themes-node-22.17.es.mjs +19 -10
  40. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  41. package/dist/linaria-themes-node-22.17.es.web.mjs +19 -10
  42. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  43. package/dist/linaria-themes.es.js +19 -10
  44. package/dist/linaria-themes.es.js.map +1 -1
  45. package/dist/linaria-themes.es.web.js +19 -10
  46. package/dist/linaria-themes.es.web.js.map +1 -1
  47. package/dist/tsbuildinfo +1 -1
  48. package/package.json +2 -2
@@ -697,6 +697,10 @@ const button = {
697
697
  default: 40,
698
698
  medium: 48
699
699
  },
700
+ minHeight: {
701
+ default: 40,
702
+ medium: 48
703
+ },
700
704
  maxHeight: 48,
701
705
  icon: {
702
706
  medium: {
@@ -2151,8 +2155,8 @@ const typography = {
2151
2155
  allowedFontWeights: ['semibold']
2152
2156
  },
2153
2157
  'heading-l': {
2154
- fontSize: 40,
2155
- lineHeight: 48,
2158
+ fontSize: 38,
2159
+ lineHeight: 44,
2156
2160
  allowedFontWeights: ['semibold']
2157
2161
  },
2158
2162
  'heading-m': {
@@ -2161,14 +2165,19 @@ const typography = {
2161
2165
  allowedFontWeights: ['semibold']
2162
2166
  },
2163
2167
  'heading-s': {
2164
- fontSize: 18,
2165
- lineHeight: 20,
2166
- allowedFontWeights: ['regular', 'bold']
2168
+ fontSize: 24,
2169
+ lineHeight: 28,
2170
+ allowedFontWeights: ['semibold']
2167
2171
  },
2168
2172
  'heading-xs': {
2173
+ fontSize: 20,
2174
+ lineHeight: 24,
2175
+ allowedFontWeights: ['semibold']
2176
+ },
2177
+ 'heading-xxs': {
2169
2178
  fontSize: 16,
2170
- lineHeight: 18,
2171
- allowedFontWeights: ['regular', 'bold']
2179
+ lineHeight: 20,
2180
+ allowedFontWeights: ['semibold']
2172
2181
  }
2173
2182
  }
2174
2183
  },
@@ -2235,17 +2244,17 @@ const typography = {
2235
2244
  configs: {
2236
2245
  'label-large': {
2237
2246
  fontSize: 16,
2238
- lineHeight: 24,
2247
+ lineHeight: 20,
2239
2248
  allowedFontWeights: ['semibold']
2240
2249
  },
2241
2250
  'label-medium': {
2242
2251
  fontSize: 14,
2243
- lineHeight: 20,
2252
+ lineHeight: 18,
2244
2253
  allowedFontWeights: ['semibold']
2245
2254
  },
2246
2255
  'label-small': {
2247
2256
  fontSize: 12,
2248
- lineHeight: 16,
2257
+ lineHeight: 14,
2249
2258
  allowedFontWeights: ['semibold']
2250
2259
  }
2251
2260
  }
@@ -3151,7 +3160,8 @@ function AnimatedContainer$2({
3151
3160
  borderRadius: 'kitt.button.borderRadius',
3152
3161
  backgroundColor: currentBackgroundColor,
3153
3162
  width,
3154
- height
3163
+ height,
3164
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
3155
3165
  });
3156
3166
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
3157
3167
  style: disabled ? [styles] : [styles, animatedStyles],
@@ -3869,6 +3879,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
3869
3879
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3870
3880
  minWidth: "kitt.button.minWidth",
3871
3881
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3882
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3872
3883
  maxHeight: "kitt.button.maxHeight",
3873
3884
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3874
3885
  onPress: onPress,
@@ -10660,6 +10671,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10660
10671
  button: {
10661
10672
  minWidth: theme.button.minWidth,
10662
10673
  maxWidth: theme.button.maxWidth,
10674
+ minHeight: {
10675
+ default: theme.button.minHeight.default,
10676
+ medium: theme.button.minHeight.medium
10677
+ },
10663
10678
  maxHeight: theme.button.maxHeight,
10664
10679
  height: {
10665
10680
  default: theme.button.height.default,
@@ -11281,6 +11296,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11281
11296
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
11282
11297
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
11283
11298
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
11299
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
11284
11300
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
11285
11301
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
11286
11302
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -11304,6 +11320,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11304
11320
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
11305
11321
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
11306
11322
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
11323
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
11307
11324
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
11308
11325
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
11309
11326
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -13075,7 +13092,7 @@ function StoryTitleLevel4({
13075
13092
  return /*#__PURE__*/jsxRuntime.jsx(View, {
13076
13093
  marginBottom: 10,
13077
13094
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
13078
- base: "heading-s",
13095
+ base: "body-l",
13079
13096
  color: useStoryBlockColor(color),
13080
13097
  numberOfLines: numberOfLines,
13081
13098
  children: children
@@ -13683,7 +13700,7 @@ function ToastContent({
13683
13700
  flexGrow: 1,
13684
13701
  flexShrink: 1,
13685
13702
  children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
13686
- base: "heading-xs",
13703
+ base: "body-m",
13687
13704
  color: "white",
13688
13705
  children: title
13689
13706
  }) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
@@ -13699,7 +13716,7 @@ function ToastContent({
13699
13716
  borderColor: "white",
13700
13717
  onPress: onPress,
13701
13718
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
13702
- base: "heading-xs",
13719
+ base: "body-m",
13703
13720
  color: "white",
13704
13721
  children: actionLabel
13705
13722
  })