@ornikar/kitt-universal 32.5.4-canary.9a20239c7f70ea30ccc58f4e866b2322585529c6.0 → 32.6.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 +2 -13
  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 +20 -9
  6. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  7. package/dist/definitions/themes/default.d.ts +0 -5
  8. package/dist/definitions/themes/default.d.ts.map +1 -1
  9. package/dist/definitions/themes/late-ocean/button.d.ts +0 -3
  10. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  11. package/dist/definitions/themes/late-ocean/typography.d.ts +0 -5
  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 +47 -31
  16. package/dist/index-metro.es.android.js.map +1 -1
  17. package/dist/index-metro.es.ios.js +47 -31
  18. package/dist/index-metro.es.ios.js.map +1 -1
  19. package/dist/index-node-22.17.cjs.js +47 -31
  20. package/dist/index-node-22.17.cjs.js.map +1 -1
  21. package/dist/index-node-22.17.cjs.web.js +46 -31
  22. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  23. package/dist/index-node-22.17.es.mjs +47 -31
  24. package/dist/index-node-22.17.es.mjs.map +1 -1
  25. package/dist/index-node-22.17.es.web.mjs +46 -31
  26. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  27. package/dist/index.es.js +47 -31
  28. package/dist/index.es.js.map +1 -1
  29. package/dist/index.es.web.js +46 -31
  30. package/dist/index.es.web.js.map +1 -1
  31. package/dist/linaria-themes-metro.es.android.js +10 -19
  32. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  33. package/dist/linaria-themes-metro.es.ios.js +10 -19
  34. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  35. package/dist/linaria-themes-node-22.17.cjs.js +10 -19
  36. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  37. package/dist/linaria-themes-node-22.17.cjs.web.js +10 -19
  38. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  39. package/dist/linaria-themes-node-22.17.es.mjs +10 -19
  40. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  41. package/dist/linaria-themes-node-22.17.es.web.mjs +10 -19
  42. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  43. package/dist/linaria-themes.es.js +10 -19
  44. package/dist/linaria-themes.es.js.map +1 -1
  45. package/dist/linaria-themes.es.web.js +10 -19
  46. package/dist/linaria-themes.es.web.js.map +1 -1
  47. package/dist/tsbuildinfo +1 -1
  48. package/package.json +2 -2
@@ -680,10 +680,6 @@ const button = {
680
680
  default: 40,
681
681
  medium: 48
682
682
  },
683
- minHeight: {
684
- default: 40,
685
- medium: 48
686
- },
687
683
  maxHeight: 48,
688
684
  icon: {
689
685
  medium: {
@@ -2138,8 +2134,8 @@ const typography = {
2138
2134
  allowedFontWeights: ['semibold']
2139
2135
  },
2140
2136
  'heading-l': {
2141
- fontSize: 38,
2142
- lineHeight: 44,
2137
+ fontSize: 40,
2138
+ lineHeight: 48,
2143
2139
  allowedFontWeights: ['semibold']
2144
2140
  },
2145
2141
  'heading-m': {
@@ -2148,19 +2144,14 @@ const typography = {
2148
2144
  allowedFontWeights: ['semibold']
2149
2145
  },
2150
2146
  'heading-s': {
2151
- fontSize: 24,
2152
- lineHeight: 28,
2153
- allowedFontWeights: ['semibold']
2147
+ fontSize: 18,
2148
+ lineHeight: 20,
2149
+ allowedFontWeights: ['regular', 'bold']
2154
2150
  },
2155
2151
  'heading-xs': {
2156
- fontSize: 20,
2157
- lineHeight: 24,
2158
- allowedFontWeights: ['semibold']
2159
- },
2160
- 'heading-xxs': {
2161
2152
  fontSize: 16,
2162
- lineHeight: 20,
2163
- allowedFontWeights: ['semibold']
2153
+ lineHeight: 18,
2154
+ allowedFontWeights: ['regular', 'bold']
2164
2155
  }
2165
2156
  }
2166
2157
  },
@@ -2227,17 +2218,17 @@ const typography = {
2227
2218
  configs: {
2228
2219
  'label-large': {
2229
2220
  fontSize: 16,
2230
- lineHeight: 20,
2221
+ lineHeight: 24,
2231
2222
  allowedFontWeights: ['semibold']
2232
2223
  },
2233
2224
  'label-medium': {
2234
2225
  fontSize: 14,
2235
- lineHeight: 18,
2226
+ lineHeight: 20,
2236
2227
  allowedFontWeights: ['semibold']
2237
2228
  },
2238
2229
  'label-small': {
2239
2230
  fontSize: 12,
2240
- lineHeight: 14,
2231
+ lineHeight: 16,
2241
2232
  allowedFontWeights: ['semibold']
2242
2233
  }
2243
2234
  }
@@ -3155,9 +3146,7 @@ function AnimatedContainer$2({
3155
3146
  },
3156
3147
  width: width,
3157
3148
  height: height,
3158
- minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3159
3149
  alignSelf: "baseline",
3160
- justifyContent: "center",
3161
3150
  borderRadius: "kitt.button.borderRadius",
3162
3151
  backgroundColor: currentBackgroundColor,
3163
3152
  children: children
@@ -3853,7 +3842,6 @@ const Button = /*#__PURE__*/react.forwardRef(({
3853
3842
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3854
3843
  minWidth: "kitt.button.minWidth",
3855
3844
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3856
- minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3857
3845
  maxHeight: "kitt.button.maxHeight",
3858
3846
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3859
3847
  onPress: onPress,
@@ -9588,6 +9576,12 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9588
9576
  xs: Number.MAX_SAFE_INTEGER,
9589
9577
  // Allow values like kitt.X
9590
9578
  ...spaces.positive,
9579
+ // Bumper retrofitting
9580
+ 'radius.none': 0,
9581
+ 'radius.s': 2,
9582
+ 'radius.m': 4,
9583
+ 'radius.l': 8,
9584
+ 'radius.circle': 1000,
9591
9585
  kitt: {
9592
9586
  actionCard: {
9593
9587
  borderRadius: theme.actionCard.borderRadius
@@ -9994,6 +9988,19 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9994
9988
  ...spaces.positive,
9995
9989
  ...spaces.negative,
9996
9990
  ...overridenNativeBaseSizeandSpaceScale,
9991
+ // Bumper retrofitting
9992
+ 'size.16': 16,
9993
+ 'size.20': 20,
9994
+ 'size.24': 24,
9995
+ 'size.32': 32,
9996
+ 'size.48': 48,
9997
+ 'size.64': 64,
9998
+ 'size.80': 80,
9999
+ 'size.96': 96,
10000
+ 'size.120': 120,
10001
+ 'size.144': 144,
10002
+ 'size.176': 176,
10003
+ 'size.208': 208,
9997
10004
  kitt: {
9998
10005
  avatar: {
9999
10006
  size: theme.avatar.size,
@@ -10006,10 +10013,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10006
10013
  button: {
10007
10014
  minWidth: theme.button.minWidth,
10008
10015
  maxWidth: theme.button.maxWidth,
10009
- minHeight: {
10010
- default: theme.button.minHeight.default,
10011
- medium: theme.button.minHeight.medium
10012
- },
10013
10016
  maxHeight: theme.button.maxHeight,
10014
10017
  height: {
10015
10018
  default: theme.button.height.default,
@@ -10402,6 +10405,20 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10402
10405
  ...spaces.positive,
10403
10406
  ...spaces.negative,
10404
10407
  ...overridenNativeBaseSizeandSpaceScale,
10408
+ // Bumper retrofitting
10409
+ 'space.none': 0,
10410
+ 'space.2': 2,
10411
+ 'space.4': 4,
10412
+ 'space.8': 8,
10413
+ 'space.12': 12,
10414
+ 'space.16': 16,
10415
+ 'space.24': 24,
10416
+ 'space.32': 32,
10417
+ 'space.40': 40,
10418
+ 'space.48': 48,
10419
+ 'space.56': 56,
10420
+ 'space.64': 64,
10421
+ 'space.80': 80,
10405
10422
  kitt: {
10406
10423
  bottomSheet: {
10407
10424
  container: {
@@ -10631,7 +10648,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10631
10648
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10632
10649
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10633
10650
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10634
- 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10635
10651
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10636
10652
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10637
10653
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10655,7 +10671,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10655
10671
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10656
10672
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10657
10673
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10658
- 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10659
10674
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10660
10675
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10661
10676
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -12486,7 +12501,7 @@ function StoryTitleLevel4({
12486
12501
  return /*#__PURE__*/jsxRuntime.jsx(View, {
12487
12502
  marginBottom: 10,
12488
12503
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
12489
- base: "body-l",
12504
+ base: "heading-s",
12490
12505
  color: useStoryBlockColor(color),
12491
12506
  numberOfLines: numberOfLines,
12492
12507
  children: children
@@ -13035,7 +13050,7 @@ function ToastContent({
13035
13050
  flexGrow: 1,
13036
13051
  flexShrink: 1,
13037
13052
  children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
13038
- base: "body-m",
13053
+ base: "heading-xs",
13039
13054
  color: "white",
13040
13055
  children: title
13041
13056
  }) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
@@ -13051,7 +13066,7 @@ function ToastContent({
13051
13066
  borderColor: "white",
13052
13067
  onPress: onPress,
13053
13068
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
13054
- base: "body-m",
13069
+ base: "heading-xs",
13055
13070
  color: "white",
13056
13071
  children: actionLabel
13057
13072
  })