@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
@@ -676,6 +676,10 @@ const button = {
676
676
  default: 40,
677
677
  medium: 48
678
678
  },
679
+ minHeight: {
680
+ default: 40,
681
+ medium: 48
682
+ },
679
683
  maxHeight: 48,
680
684
  icon: {
681
685
  medium: {
@@ -2129,8 +2133,8 @@ const typography = {
2129
2133
  allowedFontWeights: ['semibold']
2130
2134
  },
2131
2135
  'heading-l': {
2132
- fontSize: 40,
2133
- lineHeight: 48,
2136
+ fontSize: 38,
2137
+ lineHeight: 44,
2134
2138
  allowedFontWeights: ['semibold']
2135
2139
  },
2136
2140
  'heading-m': {
@@ -2139,14 +2143,19 @@ const typography = {
2139
2143
  allowedFontWeights: ['semibold']
2140
2144
  },
2141
2145
  'heading-s': {
2142
- fontSize: 18,
2143
- lineHeight: 20,
2144
- allowedFontWeights: ['regular', 'bold']
2146
+ fontSize: 24,
2147
+ lineHeight: 28,
2148
+ allowedFontWeights: ['semibold']
2145
2149
  },
2146
2150
  'heading-xs': {
2151
+ fontSize: 20,
2152
+ lineHeight: 24,
2153
+ allowedFontWeights: ['semibold']
2154
+ },
2155
+ 'heading-xxs': {
2147
2156
  fontSize: 16,
2148
- lineHeight: 18,
2149
- allowedFontWeights: ['regular', 'bold']
2157
+ lineHeight: 20,
2158
+ allowedFontWeights: ['semibold']
2150
2159
  }
2151
2160
  }
2152
2161
  },
@@ -2213,17 +2222,17 @@ const typography = {
2213
2222
  configs: {
2214
2223
  'label-large': {
2215
2224
  fontSize: 16,
2216
- lineHeight: 24,
2225
+ lineHeight: 20,
2217
2226
  allowedFontWeights: ['semibold']
2218
2227
  },
2219
2228
  'label-medium': {
2220
2229
  fontSize: 14,
2221
- lineHeight: 20,
2230
+ lineHeight: 18,
2222
2231
  allowedFontWeights: ['semibold']
2223
2232
  },
2224
2233
  'label-small': {
2225
2234
  fontSize: 12,
2226
- lineHeight: 16,
2235
+ lineHeight: 14,
2227
2236
  allowedFontWeights: ['semibold']
2228
2237
  }
2229
2238
  }
@@ -3131,7 +3140,8 @@ function AnimatedContainer$2({
3131
3140
  borderRadius: 'kitt.button.borderRadius',
3132
3141
  backgroundColor: currentBackgroundColor,
3133
3142
  width,
3134
- height
3143
+ height,
3144
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
3135
3145
  });
3136
3146
  return /*#__PURE__*/jsx(Animated.View, {
3137
3147
  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,
@@ -10618,6 +10629,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10618
10629
  button: {
10619
10630
  minWidth: theme.button.minWidth,
10620
10631
  maxWidth: theme.button.maxWidth,
10632
+ minHeight: {
10633
+ default: theme.button.minHeight.default,
10634
+ medium: theme.button.minHeight.medium
10635
+ },
10621
10636
  maxHeight: theme.button.maxHeight,
10622
10637
  height: {
10623
10638
  default: theme.button.height.default,
@@ -11234,6 +11249,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11234
11249
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
11235
11250
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
11236
11251
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
11252
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
11237
11253
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
11238
11254
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
11239
11255
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -11257,6 +11273,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11257
11273
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
11258
11274
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
11259
11275
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
11276
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
11260
11277
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
11261
11278
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
11262
11279
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -13023,7 +13040,7 @@ function StoryTitleLevel4({
13023
13040
  return /*#__PURE__*/jsx(View, {
13024
13041
  marginBottom: 10,
13025
13042
  children: /*#__PURE__*/jsx(Typography.Header4, {
13026
- base: "heading-s",
13043
+ base: "body-l",
13027
13044
  color: useStoryBlockColor(color),
13028
13045
  numberOfLines: numberOfLines,
13029
13046
  children: children
@@ -13639,7 +13656,7 @@ function ToastContent({
13639
13656
  flexGrow: 1,
13640
13657
  flexShrink: 1,
13641
13658
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
13642
- base: "heading-xs",
13659
+ base: "body-m",
13643
13660
  color: "white",
13644
13661
  children: title
13645
13662
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -13655,7 +13672,7 @@ function ToastContent({
13655
13672
  borderColor: "white",
13656
13673
  onPress: onPress,
13657
13674
  children: /*#__PURE__*/jsx(Typography.Text, {
13658
- base: "heading-xs",
13675
+ base: "body-m",
13659
13676
  color: "white",
13660
13677
  children: actionLabel
13661
13678
  })