@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
@@ -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: {
@@ -2126,8 +2130,8 @@ const typography = {
2126
2130
  allowedFontWeights: ['semibold']
2127
2131
  },
2128
2132
  'heading-l': {
2129
- fontSize: 40,
2130
- lineHeight: 48,
2133
+ fontSize: 38,
2134
+ lineHeight: 44,
2131
2135
  allowedFontWeights: ['semibold']
2132
2136
  },
2133
2137
  'heading-m': {
@@ -2136,14 +2140,19 @@ const typography = {
2136
2140
  allowedFontWeights: ['semibold']
2137
2141
  },
2138
2142
  'heading-s': {
2139
- fontSize: 18,
2140
- lineHeight: 20,
2141
- allowedFontWeights: ['regular', 'bold']
2143
+ fontSize: 24,
2144
+ lineHeight: 28,
2145
+ allowedFontWeights: ['semibold']
2142
2146
  },
2143
2147
  'heading-xs': {
2148
+ fontSize: 20,
2149
+ lineHeight: 24,
2150
+ allowedFontWeights: ['semibold']
2151
+ },
2152
+ 'heading-xxs': {
2144
2153
  fontSize: 16,
2145
- lineHeight: 18,
2146
- allowedFontWeights: ['regular', 'bold']
2154
+ lineHeight: 20,
2155
+ allowedFontWeights: ['semibold']
2147
2156
  }
2148
2157
  }
2149
2158
  },
@@ -2210,17 +2219,17 @@ const typography = {
2210
2219
  configs: {
2211
2220
  'label-large': {
2212
2221
  fontSize: 16,
2213
- lineHeight: 24,
2222
+ lineHeight: 20,
2214
2223
  allowedFontWeights: ['semibold']
2215
2224
  },
2216
2225
  'label-medium': {
2217
2226
  fontSize: 14,
2218
- lineHeight: 20,
2227
+ lineHeight: 18,
2219
2228
  allowedFontWeights: ['semibold']
2220
2229
  },
2221
2230
  'label-small': {
2222
2231
  fontSize: 12,
2223
- lineHeight: 16,
2232
+ lineHeight: 14,
2224
2233
  allowedFontWeights: ['semibold']
2225
2234
  }
2226
2235
  }
@@ -3126,7 +3135,8 @@ function AnimatedContainer$2({
3126
3135
  borderRadius: 'kitt.button.borderRadius',
3127
3136
  backgroundColor: currentBackgroundColor,
3128
3137
  width,
3129
- height
3138
+ height,
3139
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
3130
3140
  });
3131
3141
  return /*#__PURE__*/jsx(Animated.View, {
3132
3142
  style: disabled ? [styles] : [styles, animatedStyles],
@@ -3844,6 +3854,7 @@ const Button = /*#__PURE__*/forwardRef(({
3844
3854
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3845
3855
  minWidth: "kitt.button.minWidth",
3846
3856
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3857
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3847
3858
  maxHeight: "kitt.button.maxHeight",
3848
3859
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3849
3860
  onPress: onPress,
@@ -10599,6 +10610,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10599
10610
  button: {
10600
10611
  minWidth: theme.button.minWidth,
10601
10612
  maxWidth: theme.button.maxWidth,
10613
+ minHeight: {
10614
+ default: theme.button.minHeight.default,
10615
+ medium: theme.button.minHeight.medium
10616
+ },
10602
10617
  maxHeight: theme.button.maxHeight,
10603
10618
  height: {
10604
10619
  default: theme.button.height.default,
@@ -11220,6 +11235,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11220
11235
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
11221
11236
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
11222
11237
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
11238
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
11223
11239
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
11224
11240
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
11225
11241
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -11243,6 +11259,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11243
11259
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
11244
11260
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
11245
11261
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
11262
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
11246
11263
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
11247
11264
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
11248
11265
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -13014,7 +13031,7 @@ function StoryTitleLevel4({
13014
13031
  return /*#__PURE__*/jsx(View, {
13015
13032
  marginBottom: 10,
13016
13033
  children: /*#__PURE__*/jsx(Typography.Header4, {
13017
- base: "heading-s",
13034
+ base: "body-l",
13018
13035
  color: useStoryBlockColor(color),
13019
13036
  numberOfLines: numberOfLines,
13020
13037
  children: children
@@ -13622,7 +13639,7 @@ function ToastContent({
13622
13639
  flexGrow: 1,
13623
13640
  flexShrink: 1,
13624
13641
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
13625
- base: "heading-xs",
13642
+ base: "body-m",
13626
13643
  color: "white",
13627
13644
  children: title
13628
13645
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13638,7 +13655,7 @@ function ToastContent({
13638
13655
  borderColor: "white",
13639
13656
  onPress: onPress,
13640
13657
  children: /*#__PURE__*/jsx(Typography.Text, {
13641
- base: "heading-xs",
13658
+ base: "body-m",
13642
13659
  color: "white",
13643
13660
  children: actionLabel
13644
13661
  })