@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
@@ -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: {
@@ -2125,8 +2129,8 @@ const typography = {
2125
2129
  allowedFontWeights: ['semibold']
2126
2130
  },
2127
2131
  'heading-l': {
2128
- fontSize: 40,
2129
- lineHeight: 48,
2132
+ fontSize: 38,
2133
+ lineHeight: 44,
2130
2134
  allowedFontWeights: ['semibold']
2131
2135
  },
2132
2136
  'heading-m': {
@@ -2135,14 +2139,19 @@ const typography = {
2135
2139
  allowedFontWeights: ['semibold']
2136
2140
  },
2137
2141
  'heading-s': {
2138
- fontSize: 18,
2139
- lineHeight: 20,
2140
- allowedFontWeights: ['regular', 'bold']
2142
+ fontSize: 24,
2143
+ lineHeight: 28,
2144
+ allowedFontWeights: ['semibold']
2141
2145
  },
2142
2146
  'heading-xs': {
2147
+ fontSize: 20,
2148
+ lineHeight: 24,
2149
+ allowedFontWeights: ['semibold']
2150
+ },
2151
+ 'heading-xxs': {
2143
2152
  fontSize: 16,
2144
- lineHeight: 18,
2145
- allowedFontWeights: ['regular', 'bold']
2153
+ lineHeight: 20,
2154
+ allowedFontWeights: ['semibold']
2146
2155
  }
2147
2156
  }
2148
2157
  },
@@ -2209,17 +2218,17 @@ const typography = {
2209
2218
  configs: {
2210
2219
  'label-large': {
2211
2220
  fontSize: 16,
2212
- lineHeight: 24,
2221
+ lineHeight: 20,
2213
2222
  allowedFontWeights: ['semibold']
2214
2223
  },
2215
2224
  'label-medium': {
2216
2225
  fontSize: 14,
2217
- lineHeight: 20,
2226
+ lineHeight: 18,
2218
2227
  allowedFontWeights: ['semibold']
2219
2228
  },
2220
2229
  'label-small': {
2221
2230
  fontSize: 12,
2222
- lineHeight: 16,
2231
+ lineHeight: 14,
2223
2232
  allowedFontWeights: ['semibold']
2224
2233
  }
2225
2234
  }
@@ -3137,7 +3146,9 @@ function AnimatedContainer$2({
3137
3146
  },
3138
3147
  width: width,
3139
3148
  height: height,
3149
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3140
3150
  alignSelf: "baseline",
3151
+ justifyContent: "center",
3141
3152
  borderRadius: "kitt.button.borderRadius",
3142
3153
  backgroundColor: currentBackgroundColor,
3143
3154
  children: children
@@ -3833,6 +3844,7 @@ const Button = /*#__PURE__*/forwardRef(({
3833
3844
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3834
3845
  minWidth: "kitt.button.minWidth",
3835
3846
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3847
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3836
3848
  maxHeight: "kitt.button.maxHeight",
3837
3849
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3838
3850
  onPress: onPress,
@@ -9949,6 +9961,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9949
9961
  button: {
9950
9962
  minWidth: theme.button.minWidth,
9951
9963
  maxWidth: theme.button.maxWidth,
9964
+ minHeight: {
9965
+ default: theme.button.minHeight.default,
9966
+ medium: theme.button.minHeight.medium
9967
+ },
9952
9968
  maxHeight: theme.button.maxHeight,
9953
9969
  height: {
9954
9970
  default: theme.button.height.default,
@@ -10570,6 +10586,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10570
10586
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10571
10587
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10572
10588
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10589
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10573
10590
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10574
10591
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10575
10592
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10593,6 +10610,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10593
10610
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10594
10611
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10595
10612
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10613
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10596
10614
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10597
10615
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10598
10616
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -12420,7 +12438,7 @@ function StoryTitleLevel4({
12420
12438
  return /*#__PURE__*/jsx(View, {
12421
12439
  marginBottom: 10,
12422
12440
  children: /*#__PURE__*/jsx(Typography.Header4, {
12423
- base: "heading-s",
12441
+ base: "body-l",
12424
12442
  color: useStoryBlockColor(color),
12425
12443
  numberOfLines: numberOfLines,
12426
12444
  children: children
@@ -12969,7 +12987,7 @@ function ToastContent({
12969
12987
  flexGrow: 1,
12970
12988
  flexShrink: 1,
12971
12989
  children: [title ? /*#__PURE__*/jsx(Typography.Text, {
12972
- base: "heading-xs",
12990
+ base: "body-m",
12973
12991
  color: "white",
12974
12992
  children: title
12975
12993
  }) : null, description ? /*#__PURE__*/jsx(Typography.Text, {
@@ -12985,7 +13003,7 @@ function ToastContent({
12985
13003
  borderColor: "white",
12986
13004
  onPress: onPress,
12987
13005
  children: /*#__PURE__*/jsx(Typography.Text, {
12988
- base: "heading-xs",
13006
+ base: "body-m",
12989
13007
  color: "white",
12990
13008
  children: actionLabel
12991
13009
  })