@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
@@ -673,6 +673,10 @@ const button = {
673
673
  default: 40,
674
674
  medium: 48
675
675
  },
676
+ minHeight: {
677
+ default: 40,
678
+ medium: 48
679
+ },
676
680
  maxHeight: 48,
677
681
  icon: {
678
682
  medium: {
@@ -2127,8 +2131,8 @@ const typography = {
2127
2131
  allowedFontWeights: ['semibold']
2128
2132
  },
2129
2133
  'heading-l': {
2130
- fontSize: 40,
2131
- lineHeight: 48,
2134
+ fontSize: 38,
2135
+ lineHeight: 44,
2132
2136
  allowedFontWeights: ['semibold']
2133
2137
  },
2134
2138
  'heading-m': {
@@ -2137,14 +2141,19 @@ const typography = {
2137
2141
  allowedFontWeights: ['semibold']
2138
2142
  },
2139
2143
  'heading-s': {
2140
- fontSize: 18,
2141
- lineHeight: 20,
2142
- allowedFontWeights: ['regular', 'bold']
2144
+ fontSize: 24,
2145
+ lineHeight: 28,
2146
+ allowedFontWeights: ['semibold']
2143
2147
  },
2144
2148
  'heading-xs': {
2149
+ fontSize: 20,
2150
+ lineHeight: 24,
2151
+ allowedFontWeights: ['semibold']
2152
+ },
2153
+ 'heading-xxs': {
2145
2154
  fontSize: 16,
2146
- lineHeight: 18,
2147
- allowedFontWeights: ['regular', 'bold']
2155
+ lineHeight: 20,
2156
+ allowedFontWeights: ['semibold']
2148
2157
  }
2149
2158
  }
2150
2159
  },
@@ -2211,17 +2220,17 @@ const typography = {
2211
2220
  configs: {
2212
2221
  'label-large': {
2213
2222
  fontSize: 16,
2214
- lineHeight: 24,
2223
+ lineHeight: 20,
2215
2224
  allowedFontWeights: ['semibold']
2216
2225
  },
2217
2226
  'label-medium': {
2218
2227
  fontSize: 14,
2219
- lineHeight: 20,
2228
+ lineHeight: 18,
2220
2229
  allowedFontWeights: ['semibold']
2221
2230
  },
2222
2231
  'label-small': {
2223
2232
  fontSize: 12,
2224
- lineHeight: 16,
2233
+ lineHeight: 14,
2225
2234
  allowedFontWeights: ['semibold']
2226
2235
  }
2227
2236
  }
@@ -3127,7 +3136,8 @@ function AnimatedContainer$2({
3127
3136
  borderRadius: 'kitt.button.borderRadius',
3128
3137
  backgroundColor: currentBackgroundColor,
3129
3138
  width,
3130
- height
3139
+ height,
3140
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
3131
3141
  });
3132
3142
  return /*#__PURE__*/jsx(Animated.View, {
3133
3143
  style: disabled ? [styles] : [styles, animatedStyles],
@@ -3845,6 +3855,7 @@ const Button = /*#__PURE__*/forwardRef(({
3845
3855
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3846
3856
  minWidth: "kitt.button.minWidth",
3847
3857
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3858
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3848
3859
  maxHeight: "kitt.button.maxHeight",
3849
3860
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3850
3861
  onPress: onPress,
@@ -10636,6 +10647,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10636
10647
  button: {
10637
10648
  minWidth: theme.button.minWidth,
10638
10649
  maxWidth: theme.button.maxWidth,
10650
+ minHeight: {
10651
+ default: theme.button.minHeight.default,
10652
+ medium: theme.button.minHeight.medium
10653
+ },
10639
10654
  maxHeight: theme.button.maxHeight,
10640
10655
  height: {
10641
10656
  default: theme.button.height.default,
@@ -11257,6 +11272,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11257
11272
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
11258
11273
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
11259
11274
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
11275
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
11260
11276
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
11261
11277
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
11262
11278
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -11280,6 +11296,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11280
11296
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
11281
11297
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
11282
11298
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
11299
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
11283
11300
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
11284
11301
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
11285
11302
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -13051,7 +13068,7 @@ function StoryTitleLevel4({
13051
13068
  return /*#__PURE__*/jsx(View, {
13052
13069
  marginBottom: 10,
13053
13070
  children: /*#__PURE__*/jsx(Typography.Header4, {
13054
- base: "heading-s",
13071
+ base: "body-l",
13055
13072
  color: useStoryBlockColor(color),
13056
13073
  numberOfLines: numberOfLines,
13057
13074
  children: children
@@ -13659,7 +13676,7 @@ function ToastContent({
13659
13676
  flexGrow: 1,
13660
13677
  flexShrink: 1,
13661
13678
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
13662
- base: "heading-xs",
13679
+ base: "body-m",
13663
13680
  color: "white",
13664
13681
  children: title
13665
13682
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13675,7 +13692,7 @@ function ToastContent({
13675
13692
  borderColor: "white",
13676
13693
  onPress: onPress,
13677
13694
  children: /*#__PURE__*/jsx(Typography.Text, {
13678
- base: "heading-xs",
13695
+ base: "body-m",
13679
13696
  color: "white",
13680
13697
  children: actionLabel
13681
13698
  })