@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
@@ -680,6 +680,10 @@ const button = {
680
680
  default: 40,
681
681
  medium: 48
682
682
  },
683
+ minHeight: {
684
+ default: 40,
685
+ medium: 48
686
+ },
683
687
  maxHeight: 48,
684
688
  icon: {
685
689
  medium: {
@@ -2134,8 +2138,8 @@ const typography = {
2134
2138
  allowedFontWeights: ['semibold']
2135
2139
  },
2136
2140
  'heading-l': {
2137
- fontSize: 40,
2138
- lineHeight: 48,
2141
+ fontSize: 38,
2142
+ lineHeight: 44,
2139
2143
  allowedFontWeights: ['semibold']
2140
2144
  },
2141
2145
  'heading-m': {
@@ -2144,14 +2148,19 @@ const typography = {
2144
2148
  allowedFontWeights: ['semibold']
2145
2149
  },
2146
2150
  'heading-s': {
2147
- fontSize: 18,
2148
- lineHeight: 20,
2149
- allowedFontWeights: ['regular', 'bold']
2151
+ fontSize: 24,
2152
+ lineHeight: 28,
2153
+ allowedFontWeights: ['semibold']
2150
2154
  },
2151
2155
  'heading-xs': {
2156
+ fontSize: 20,
2157
+ lineHeight: 24,
2158
+ allowedFontWeights: ['semibold']
2159
+ },
2160
+ 'heading-xxs': {
2152
2161
  fontSize: 16,
2153
- lineHeight: 18,
2154
- allowedFontWeights: ['regular', 'bold']
2162
+ lineHeight: 20,
2163
+ allowedFontWeights: ['semibold']
2155
2164
  }
2156
2165
  }
2157
2166
  },
@@ -2218,17 +2227,17 @@ const typography = {
2218
2227
  configs: {
2219
2228
  'label-large': {
2220
2229
  fontSize: 16,
2221
- lineHeight: 24,
2230
+ lineHeight: 20,
2222
2231
  allowedFontWeights: ['semibold']
2223
2232
  },
2224
2233
  'label-medium': {
2225
2234
  fontSize: 14,
2226
- lineHeight: 20,
2235
+ lineHeight: 18,
2227
2236
  allowedFontWeights: ['semibold']
2228
2237
  },
2229
2238
  'label-small': {
2230
2239
  fontSize: 12,
2231
- lineHeight: 16,
2240
+ lineHeight: 14,
2232
2241
  allowedFontWeights: ['semibold']
2233
2242
  }
2234
2243
  }
@@ -3146,7 +3155,9 @@ function AnimatedContainer$2({
3146
3155
  },
3147
3156
  width: width,
3148
3157
  height: height,
3158
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3149
3159
  alignSelf: "baseline",
3160
+ justifyContent: "center",
3150
3161
  borderRadius: "kitt.button.borderRadius",
3151
3162
  backgroundColor: currentBackgroundColor,
3152
3163
  children: children
@@ -3842,6 +3853,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
3842
3853
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3843
3854
  minWidth: "kitt.button.minWidth",
3844
3855
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3856
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3845
3857
  maxHeight: "kitt.button.maxHeight",
3846
3858
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3847
3859
  onPress: onPress,
@@ -9958,6 +9970,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9958
9970
  button: {
9959
9971
  minWidth: theme.button.minWidth,
9960
9972
  maxWidth: theme.button.maxWidth,
9973
+ minHeight: {
9974
+ default: theme.button.minHeight.default,
9975
+ medium: theme.button.minHeight.medium
9976
+ },
9961
9977
  maxHeight: theme.button.maxHeight,
9962
9978
  height: {
9963
9979
  default: theme.button.height.default,
@@ -10579,6 +10595,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10579
10595
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10580
10596
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10581
10597
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10598
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10582
10599
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10583
10600
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10584
10601
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10602,6 +10619,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10602
10619
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10603
10620
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10604
10621
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10622
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10605
10623
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10606
10624
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10607
10625
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -12429,7 +12447,7 @@ function StoryTitleLevel4({
12429
12447
  return /*#__PURE__*/jsxRuntime.jsx(View, {
12430
12448
  marginBottom: 10,
12431
12449
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
12432
- base: "heading-s",
12450
+ base: "body-l",
12433
12451
  color: useStoryBlockColor(color),
12434
12452
  numberOfLines: numberOfLines,
12435
12453
  children: children
@@ -12978,7 +12996,7 @@ function ToastContent({
12978
12996
  flexGrow: 1,
12979
12997
  flexShrink: 1,
12980
12998
  children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
12981
- base: "heading-xs",
12999
+ base: "body-m",
12982
13000
  color: "white",
12983
13001
  children: title
12984
13002
  }) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
@@ -12994,7 +13012,7 @@ function ToastContent({
12994
13012
  borderColor: "white",
12995
13013
  onPress: onPress,
12996
13014
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
12997
- base: "heading-xs",
13015
+ base: "body-m",
12998
13016
  color: "white",
12999
13017
  children: actionLabel
13000
13018
  })