@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
@@ -671,6 +671,10 @@ const button = {
671
671
  default: 40,
672
672
  medium: 48
673
673
  },
674
+ minHeight: {
675
+ default: 40,
676
+ medium: 48
677
+ },
674
678
  maxHeight: 48,
675
679
  icon: {
676
680
  medium: {
@@ -2124,8 +2128,8 @@ const typography = {
2124
2128
  allowedFontWeights: ['semibold']
2125
2129
  },
2126
2130
  'heading-l': {
2127
- fontSize: 40,
2128
- lineHeight: 48,
2131
+ fontSize: 38,
2132
+ lineHeight: 44,
2129
2133
  allowedFontWeights: ['semibold']
2130
2134
  },
2131
2135
  'heading-m': {
@@ -2134,14 +2138,19 @@ const typography = {
2134
2138
  allowedFontWeights: ['semibold']
2135
2139
  },
2136
2140
  'heading-s': {
2137
- fontSize: 18,
2138
- lineHeight: 20,
2139
- allowedFontWeights: ['regular', 'bold']
2141
+ fontSize: 24,
2142
+ lineHeight: 28,
2143
+ allowedFontWeights: ['semibold']
2140
2144
  },
2141
2145
  'heading-xs': {
2146
+ fontSize: 20,
2147
+ lineHeight: 24,
2148
+ allowedFontWeights: ['semibold']
2149
+ },
2150
+ 'heading-xxs': {
2142
2151
  fontSize: 16,
2143
- lineHeight: 18,
2144
- allowedFontWeights: ['regular', 'bold']
2152
+ lineHeight: 20,
2153
+ allowedFontWeights: ['semibold']
2145
2154
  }
2146
2155
  }
2147
2156
  },
@@ -2208,17 +2217,17 @@ const typography = {
2208
2217
  configs: {
2209
2218
  'label-large': {
2210
2219
  fontSize: 16,
2211
- lineHeight: 24,
2220
+ lineHeight: 20,
2212
2221
  allowedFontWeights: ['semibold']
2213
2222
  },
2214
2223
  'label-medium': {
2215
2224
  fontSize: 14,
2216
- lineHeight: 20,
2225
+ lineHeight: 18,
2217
2226
  allowedFontWeights: ['semibold']
2218
2227
  },
2219
2228
  'label-small': {
2220
2229
  fontSize: 12,
2221
- lineHeight: 16,
2230
+ lineHeight: 14,
2222
2231
  allowedFontWeights: ['semibold']
2223
2232
  }
2224
2233
  }
@@ -3136,7 +3145,9 @@ function AnimatedContainer$2({
3136
3145
  },
3137
3146
  width: width,
3138
3147
  height: height,
3148
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3139
3149
  alignSelf: "baseline",
3150
+ justifyContent: "center",
3140
3151
  borderRadius: "kitt.button.borderRadius",
3141
3152
  backgroundColor: currentBackgroundColor,
3142
3153
  children: children
@@ -3832,6 +3843,7 @@ const Button = /*#__PURE__*/forwardRef(({
3832
3843
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3833
3844
  minWidth: "kitt.button.minWidth",
3834
3845
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3846
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3835
3847
  maxHeight: "kitt.button.maxHeight",
3836
3848
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3837
3849
  onPress: onPress,
@@ -9912,6 +9924,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9912
9924
  button: {
9913
9925
  minWidth: theme.button.minWidth,
9914
9926
  maxWidth: theme.button.maxWidth,
9927
+ minHeight: {
9928
+ default: theme.button.minHeight.default,
9929
+ medium: theme.button.minHeight.medium
9930
+ },
9915
9931
  maxHeight: theme.button.maxHeight,
9916
9932
  height: {
9917
9933
  default: theme.button.height.default,
@@ -10533,6 +10549,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10533
10549
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10534
10550
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10535
10551
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10552
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10536
10553
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10537
10554
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10538
10555
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10556,6 +10573,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10556
10573
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10557
10574
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10558
10575
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10576
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10559
10577
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10560
10578
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10561
10579
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -12383,7 +12401,7 @@ function StoryTitleLevel4({
12383
12401
  return /*#__PURE__*/jsx(View, {
12384
12402
  marginBottom: 10,
12385
12403
  children: /*#__PURE__*/jsx(Typography.Header4, {
12386
- base: "heading-s",
12404
+ base: "body-l",
12387
12405
  color: useStoryBlockColor(color),
12388
12406
  numberOfLines: numberOfLines,
12389
12407
  children: children
@@ -12932,7 +12950,7 @@ function ToastContent({
12932
12950
  flexGrow: 1,
12933
12951
  flexShrink: 1,
12934
12952
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
12935
- base: "heading-xs",
12953
+ base: "body-m",
12936
12954
  color: "white",
12937
12955
  children: title
12938
12956
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -12948,7 +12966,7 @@ function ToastContent({
12948
12966
  borderColor: "white",
12949
12967
  onPress: onPress,
12950
12968
  children: /*#__PURE__*/jsx(Typography.Text, {
12951
- base: "heading-xs",
12969
+ base: "body-m",
12952
12970
  color: "white",
12953
12971
  children: actionLabel
12954
12972
  })