@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
@@ -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,
@@ -9994,6 +10006,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9994
10006
  button: {
9995
10007
  minWidth: theme.button.minWidth,
9996
10008
  maxWidth: theme.button.maxWidth,
10009
+ minHeight: {
10010
+ default: theme.button.minHeight.default,
10011
+ medium: theme.button.minHeight.medium
10012
+ },
9997
10013
  maxHeight: theme.button.maxHeight,
9998
10014
  height: {
9999
10015
  default: theme.button.height.default,
@@ -10615,6 +10631,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10615
10631
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10616
10632
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10617
10633
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10634
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10618
10635
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10619
10636
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10620
10637
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10638,6 +10655,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10638
10655
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10639
10656
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10640
10657
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10658
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10641
10659
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10642
10660
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10643
10661
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -12468,7 +12486,7 @@ function StoryTitleLevel4({
12468
12486
  return /*#__PURE__*/jsxRuntime.jsx(View, {
12469
12487
  marginBottom: 10,
12470
12488
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
12471
- base: "heading-s",
12489
+ base: "body-l",
12472
12490
  color: useStoryBlockColor(color),
12473
12491
  numberOfLines: numberOfLines,
12474
12492
  children: children
@@ -13017,7 +13035,7 @@ function ToastContent({
13017
13035
  flexGrow: 1,
13018
13036
  flexShrink: 1,
13019
13037
  children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
13020
- base: "heading-xs",
13038
+ base: "body-m",
13021
13039
  color: "white",
13022
13040
  children: title
13023
13041
  }) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
@@ -13033,7 +13051,7 @@ function ToastContent({
13033
13051
  borderColor: "white",
13034
13052
  onPress: onPress,
13035
13053
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
13036
- base: "heading-xs",
13054
+ base: "body-m",
13037
13055
  color: "white",
13038
13056
  children: actionLabel
13039
13057
  })