@ornikar/kitt-universal 32.5.3 → 32.5.4-canary.9a20239c7f70ea30ccc58f4e866b2322585529c6.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 +1 -1
@@ -697,6 +697,10 @@ const button = {
697
697
  default: 40,
698
698
  medium: 48
699
699
  },
700
+ minHeight: {
701
+ default: 40,
702
+ medium: 48
703
+ },
700
704
  maxHeight: 48,
701
705
  icon: {
702
706
  medium: {
@@ -2151,8 +2155,8 @@ const typography = {
2151
2155
  allowedFontWeights: ['semibold']
2152
2156
  },
2153
2157
  'heading-l': {
2154
- fontSize: 40,
2155
- lineHeight: 48,
2158
+ fontSize: 38,
2159
+ lineHeight: 44,
2156
2160
  allowedFontWeights: ['semibold']
2157
2161
  },
2158
2162
  'heading-m': {
@@ -2161,14 +2165,19 @@ const typography = {
2161
2165
  allowedFontWeights: ['semibold']
2162
2166
  },
2163
2167
  'heading-s': {
2164
- fontSize: 18,
2165
- lineHeight: 20,
2166
- allowedFontWeights: ['regular', 'bold']
2168
+ fontSize: 24,
2169
+ lineHeight: 28,
2170
+ allowedFontWeights: ['semibold']
2167
2171
  },
2168
2172
  'heading-xs': {
2173
+ fontSize: 20,
2174
+ lineHeight: 24,
2175
+ allowedFontWeights: ['semibold']
2176
+ },
2177
+ 'heading-xxs': {
2169
2178
  fontSize: 16,
2170
- lineHeight: 18,
2171
- allowedFontWeights: ['regular', 'bold']
2179
+ lineHeight: 20,
2180
+ allowedFontWeights: ['semibold']
2172
2181
  }
2173
2182
  }
2174
2183
  },
@@ -2235,17 +2244,17 @@ const typography = {
2235
2244
  configs: {
2236
2245
  'label-large': {
2237
2246
  fontSize: 16,
2238
- lineHeight: 24,
2247
+ lineHeight: 20,
2239
2248
  allowedFontWeights: ['semibold']
2240
2249
  },
2241
2250
  'label-medium': {
2242
2251
  fontSize: 14,
2243
- lineHeight: 20,
2252
+ lineHeight: 18,
2244
2253
  allowedFontWeights: ['semibold']
2245
2254
  },
2246
2255
  'label-small': {
2247
2256
  fontSize: 12,
2248
- lineHeight: 16,
2257
+ lineHeight: 14,
2249
2258
  allowedFontWeights: ['semibold']
2250
2259
  }
2251
2260
  }
@@ -3151,7 +3160,8 @@ function AnimatedContainer$2({
3151
3160
  borderRadius: 'kitt.button.borderRadius',
3152
3161
  backgroundColor: currentBackgroundColor,
3153
3162
  width,
3154
- height
3163
+ height,
3164
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium'
3155
3165
  });
3156
3166
  return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
3157
3167
  style: disabled ? [styles] : [styles, animatedStyles],
@@ -3869,6 +3879,7 @@ const Button = /*#__PURE__*/React.forwardRef(({
3869
3879
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3870
3880
  minWidth: "kitt.button.minWidth",
3871
3881
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3882
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3872
3883
  maxHeight: "kitt.button.maxHeight",
3873
3884
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3874
3885
  onPress: onPress,
@@ -10671,6 +10682,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10671
10682
  button: {
10672
10683
  minWidth: theme.button.minWidth,
10673
10684
  maxWidth: theme.button.maxWidth,
10685
+ minHeight: {
10686
+ default: theme.button.minHeight.default,
10687
+ medium: theme.button.minHeight.medium
10688
+ },
10674
10689
  maxHeight: theme.button.maxHeight,
10675
10690
  height: {
10676
10691
  default: theme.button.height.default,
@@ -11292,6 +11307,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11292
11307
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
11293
11308
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
11294
11309
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
11310
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
11295
11311
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
11296
11312
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
11297
11313
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -11315,6 +11331,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
11315
11331
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
11316
11332
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
11317
11333
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
11334
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
11318
11335
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
11319
11336
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
11320
11337
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -13086,7 +13103,7 @@ function StoryTitleLevel4({
13086
13103
  return /*#__PURE__*/jsxRuntime.jsx(View, {
13087
13104
  marginBottom: 10,
13088
13105
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
13089
- base: "heading-s",
13106
+ base: "body-l",
13090
13107
  color: useStoryBlockColor(color),
13091
13108
  numberOfLines: numberOfLines,
13092
13109
  children: children
@@ -13694,7 +13711,7 @@ function ToastContent({
13694
13711
  flexGrow: 1,
13695
13712
  flexShrink: 1,
13696
13713
  children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
13697
- base: "heading-xs",
13714
+ base: "body-m",
13698
13715
  color: "white",
13699
13716
  children: title
13700
13717
  }) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
@@ -13710,7 +13727,7 @@ function ToastContent({
13710
13727
  borderColor: "white",
13711
13728
  onPress: onPress,
13712
13729
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
13713
- base: "heading-xs",
13730
+ base: "body-m",
13714
13731
  color: "white",
13715
13732
  children: actionLabel
13716
13733
  })