@ornikar/kitt-universal 32.3.1-canary.282229fbcb79b0e70662d8927eccac40f40e40d3.0 → 32.3.1-canary.ddff29bdf3ffa500cf7658e5206d5069b23f4b45.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 (55) hide show
  1. package/CHANGELOG.md +12 -4
  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/forms/InputText/InputText.d.ts.map +1 -1
  6. package/dist/definitions/forms/InputText/InputTextContainer.d.ts +1 -2
  7. package/dist/definitions/forms/InputText/InputTextContainer.d.ts.map +1 -1
  8. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts +4 -0
  9. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -0
  10. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +9 -3
  11. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  12. package/dist/definitions/themes/default.d.ts +5 -0
  13. package/dist/definitions/themes/default.d.ts.map +1 -1
  14. package/dist/definitions/themes/late-ocean/button.d.ts +3 -0
  15. package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
  16. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  17. package/dist/definitions/themes/late-ocean/typography.d.ts +5 -0
  18. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  19. package/dist/index-metro.es.android.js +69 -74
  20. package/dist/index-metro.es.android.js.map +1 -1
  21. package/dist/index-metro.es.ios.js +69 -74
  22. package/dist/index-metro.es.ios.js.map +1 -1
  23. package/dist/index-node-22.17.cjs.js +69 -74
  24. package/dist/index-node-22.17.cjs.js.map +1 -1
  25. package/dist/index-node-22.17.cjs.web.css +1 -0
  26. package/dist/index-node-22.17.cjs.web.js +70 -75
  27. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  28. package/dist/index-node-22.17.es.mjs +69 -74
  29. package/dist/index-node-22.17.es.mjs.map +1 -1
  30. package/dist/index-node-22.17.es.web.css +1 -0
  31. package/dist/index-node-22.17.es.web.mjs +70 -75
  32. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  33. package/dist/index.es.js +71 -77
  34. package/dist/index.es.js.map +1 -1
  35. package/dist/index.es.web.js +72 -78
  36. package/dist/index.es.web.js.map +1 -1
  37. package/dist/linaria-themes-metro.es.android.js +20 -10
  38. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  39. package/dist/linaria-themes-metro.es.ios.js +20 -10
  40. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  41. package/dist/linaria-themes-node-22.17.cjs.js +20 -10
  42. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  43. package/dist/linaria-themes-node-22.17.cjs.web.js +20 -10
  44. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  45. package/dist/linaria-themes-node-22.17.es.mjs +20 -10
  46. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  47. package/dist/linaria-themes-node-22.17.es.web.mjs +20 -10
  48. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  49. package/dist/linaria-themes.es.js +20 -10
  50. package/dist/linaria-themes.es.js.map +1 -1
  51. package/dist/linaria-themes.es.web.js +20 -10
  52. package/dist/linaria-themes.es.web.js.map +1 -1
  53. package/dist/styles.css +1 -0
  54. package/dist/tsbuildinfo +1 -1
  55. package/package.json +1 -1
@@ -6,6 +6,7 @@
6
6
  .kitt-u_opacityEnterActive_o1t4vl7b{opacity:1;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
7
7
  .kitt-u_opacityExit_ogyytm1{opacity:1;}
8
8
  .kitt-u_opacityExitActive_o18xvk52{opacity:0;-webkit-transition:opacity 250ms cubic-bezier(0.42,0,1,1);transition:opacity 250ms cubic-bezier(0.42,0,1,1);}
9
+ .kitt-u_inputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_inputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_inputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_inputTextContainer_i1encr9g > *{-webkit-transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;transition:border-color 200ms ease-in-out,background-color 200ms ease-in-out;}
9
10
  /* Overlay animation styles - uses CSS variables for theme values */
10
11
  .FullscreenModalAnimation-module_overlay-enter__L1J1X {
11
12
  opacity: 0;
@@ -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: {
@@ -1127,6 +1131,7 @@ const inputStatesStyle = {
1127
1131
  color: deepPurpleColorPalette.black
1128
1132
  },
1129
1133
  hover: {
1134
+ backgroundColor: deepPurpleColorPalette['beige.1'],
1130
1135
  borderColor: deepPurpleColorPalette['beige.4'],
1131
1136
  color: deepPurpleColorPalette.black
1132
1137
  },
@@ -2132,8 +2137,8 @@ const typography = {
2132
2137
  allowedFontWeights: ['semibold']
2133
2138
  },
2134
2139
  'heading-l': {
2135
- fontSize: 40,
2136
- lineHeight: 48,
2140
+ fontSize: 38,
2141
+ lineHeight: 44,
2137
2142
  allowedFontWeights: ['semibold']
2138
2143
  },
2139
2144
  'heading-m': {
@@ -2142,14 +2147,19 @@ const typography = {
2142
2147
  allowedFontWeights: ['semibold']
2143
2148
  },
2144
2149
  'heading-s': {
2145
- fontSize: 18,
2146
- lineHeight: 20,
2147
- allowedFontWeights: ['regular', 'bold']
2150
+ fontSize: 24,
2151
+ lineHeight: 28,
2152
+ allowedFontWeights: ['semibold']
2148
2153
  },
2149
2154
  'heading-xs': {
2155
+ fontSize: 20,
2156
+ lineHeight: 24,
2157
+ allowedFontWeights: ['semibold']
2158
+ },
2159
+ 'heading-xxs': {
2150
2160
  fontSize: 16,
2151
- lineHeight: 18,
2152
- allowedFontWeights: ['regular', 'bold']
2161
+ lineHeight: 20,
2162
+ allowedFontWeights: ['semibold']
2153
2163
  }
2154
2164
  }
2155
2165
  },
@@ -2216,17 +2226,17 @@ const typography = {
2216
2226
  configs: {
2217
2227
  'label-large': {
2218
2228
  fontSize: 16,
2219
- lineHeight: 24,
2229
+ lineHeight: 20,
2220
2230
  allowedFontWeights: ['semibold']
2221
2231
  },
2222
2232
  'label-medium': {
2223
2233
  fontSize: 14,
2224
- lineHeight: 20,
2234
+ lineHeight: 18,
2225
2235
  allowedFontWeights: ['semibold']
2226
2236
  },
2227
2237
  'label-small': {
2228
2238
  fontSize: 12,
2229
- lineHeight: 16,
2239
+ lineHeight: 14,
2230
2240
  allowedFontWeights: ['semibold']
2231
2241
  }
2232
2242
  }
@@ -3144,7 +3154,9 @@ function AnimatedContainer$2({
3144
3154
  },
3145
3155
  width: width,
3146
3156
  height: height,
3157
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3147
3158
  alignSelf: "baseline",
3159
+ justifyContent: "center",
3148
3160
  borderRadius: "kitt.button.borderRadius",
3149
3161
  backgroundColor: currentBackgroundColor,
3150
3162
  children: children
@@ -3840,6 +3852,7 @@ const Button = /*#__PURE__*/react.forwardRef(({
3840
3852
  alignSelf: createResponsiveStyleFromProp(stretch, undefined, 'flex-start'),
3841
3853
  minWidth: "kitt.button.minWidth",
3842
3854
  maxWidth: createResponsiveStyleFromProp(stretch, '100%', 'kitt.button.maxWidth'),
3855
+ minHeight: size === 'default' ? 'kitt.button.minHeight.default' : 'kitt.button.minHeight.medium',
3843
3856
  maxHeight: "kitt.button.maxHeight",
3844
3857
  width: createResponsiveStyleFromProp(stretch, '100%', 'auto'),
3845
3858
  onPress: onPress,
@@ -5368,30 +5381,11 @@ function InputPressable({
5368
5381
  });
5369
5382
  }
5370
5383
 
5371
- function InputTextContainer({
5372
- children,
5373
- isHovered
5374
- }) {
5375
- const theme = useTheme();
5376
- const sx = nativeBase.useSx();
5377
- const styles = sx({
5378
- borderRadius: input.borderRadius
5379
- });
5380
- const animatedBackground = Animated.useAnimatedStyle(() => {
5381
- const baseBackgroundColor = theme.kitt.palettes.deepPurple.white;
5382
- const hoverBackgroundColor = theme.kitt.palettes.deepPurple['beige.1'];
5383
- return {
5384
- backgroundColor: Animated.withTiming(isHovered ? hoverBackgroundColor : baseBackgroundColor, {
5385
- duration: 200
5386
- })
5387
- };
5388
- }, [isHovered, theme]);
5389
- return /*#__PURE__*/jsxRuntime.jsx(Animated__default.View, {
5390
- style: [styles, animatedBackground],
5391
- children: /*#__PURE__*/jsxRuntime.jsx(View, {
5392
- position: "relative",
5393
- children: children
5394
- })
5384
+ const inputTextContainer = "kitt-u_inputTextContainer_i1encr9g";
5385
+ function InputTextContainer(props) {
5386
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
5387
+ className: inputTextContainer,
5388
+ ...props
5395
5389
  });
5396
5390
  }
5397
5391
 
@@ -5415,44 +5409,39 @@ const InputText = /*#__PURE__*/react.forwardRef(({
5415
5409
  const fontSizeForNativeBase = createNativeBaseFontSize({
5416
5410
  base: 'body-m'
5417
5411
  });
5418
- return /*#__PURE__*/jsxRuntime.jsx(Pressable, {
5419
- children: ({
5420
- isHovered
5421
- }) => /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
5422
- isHovered: internalForceState ? internalForceState === 'hover' : isHovered,
5423
- children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
5424
- ref: ref,
5425
- multiline: multiline,
5426
- id: id,
5427
- isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5428
- isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5429
- isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5430
- inputMode: inputMode,
5431
- autoComplete: autoComplete,
5432
- autoCorrect: autoCorrect,
5433
- textContentType: textContentType,
5434
- fontSize: fontSizeForNativeBase,
5435
- lineHeight:
5436
- // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5437
- // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5438
- fontSizeForNativeBase,
5439
- fontWeight: "bodies.regular",
5440
- fontFamily: "bodies.regular",
5441
- py: !multiline && "web" !== 'web' ? 0 : undefined,
5442
- variant: variant,
5443
- ...props,
5444
- height: multiline ? height : 'kitt.forms.input.minHeight',
5445
- onSubmitEditing: multiline ? () => null : onSubmitEditing
5446
- }), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
5447
- position: "absolute",
5448
- right: 0,
5449
- top: 0,
5450
- bottom: 0,
5451
- justifyContent: "center",
5452
- padding: theme.kitt.forms.input.rightContainer.padding,
5453
- children: right
5454
- }) : null]
5455
- })
5412
+ return /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
5413
+ children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
5414
+ ref: ref,
5415
+ multiline: multiline,
5416
+ id: id,
5417
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
5418
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
5419
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
5420
+ inputMode: inputMode,
5421
+ autoComplete: autoComplete,
5422
+ autoCorrect: autoCorrect,
5423
+ textContentType: textContentType,
5424
+ fontSize: fontSizeForNativeBase,
5425
+ lineHeight:
5426
+ // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
5427
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
5428
+ fontSizeForNativeBase,
5429
+ fontWeight: "bodies.regular",
5430
+ fontFamily: "bodies.regular",
5431
+ py: !multiline && "web" !== 'web' ? 0 : undefined,
5432
+ variant: variant,
5433
+ ...props,
5434
+ height: multiline ? height : 'kitt.forms.input.minHeight',
5435
+ onSubmitEditing: multiline ? () => null : onSubmitEditing
5436
+ }), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
5437
+ position: "absolute",
5438
+ right: 0,
5439
+ top: 0,
5440
+ bottom: 0,
5441
+ justifyContent: "center",
5442
+ padding: theme.kitt.forms.input.rightContainer.padding,
5443
+ children: right
5444
+ }) : null]
5456
5445
  });
5457
5446
  });
5458
5447
 
@@ -9944,6 +9933,10 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
9944
9933
  button: {
9945
9934
  minWidth: theme.button.minWidth,
9946
9935
  maxWidth: theme.button.maxWidth,
9936
+ minHeight: {
9937
+ default: theme.button.minHeight.default,
9938
+ medium: theme.button.minHeight.medium
9939
+ },
9947
9940
  maxHeight: theme.button.maxHeight,
9948
9941
  height: {
9949
9942
  default: theme.button.height.default,
@@ -10565,6 +10558,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10565
10558
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].fontSize}px`,
10566
10559
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].fontSize}px`,
10567
10560
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].fontSize}px`,
10561
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].fontSize}px`,
10568
10562
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].fontSize}px`,
10569
10563
  'body-l': `${theme.typography.types.bodies.configs['body-l'].fontSize}px`,
10570
10564
  'body-m': `${theme.typography.types.bodies.configs['body-m'].fontSize}px`,
@@ -10588,6 +10582,7 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
10588
10582
  'heading-m': `${theme.typography.types.headings.configs['heading-m'].lineHeight}px`,
10589
10583
  'heading-s': `${theme.typography.types.headings.configs['heading-s'].lineHeight}px`,
10590
10584
  'heading-xs': `${theme.typography.types.headings.configs['heading-xs'].lineHeight}px`,
10585
+ 'heading-xxs': `${theme.typography.types.headings.configs['heading-xxs'].lineHeight}px`,
10591
10586
  'body-xl': `${theme.typography.types.bodies.configs['body-xl'].lineHeight}px`,
10592
10587
  'body-l': `${theme.typography.types.bodies.configs['body-l'].lineHeight}px`,
10593
10588
  'body-m': `${theme.typography.types.bodies.configs['body-m'].lineHeight}px`,
@@ -12415,7 +12410,7 @@ function StoryTitleLevel4({
12415
12410
  return /*#__PURE__*/jsxRuntime.jsx(View, {
12416
12411
  marginBottom: 10,
12417
12412
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Header4, {
12418
- base: "heading-s",
12413
+ base: "body-l",
12419
12414
  color: useStoryBlockColor(color),
12420
12415
  numberOfLines: numberOfLines,
12421
12416
  children: children
@@ -12964,7 +12959,7 @@ function ToastContent({
12964
12959
  flexGrow: 1,
12965
12960
  flexShrink: 1,
12966
12961
  children: [title ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
12967
- base: "heading-xs",
12962
+ base: "body-m",
12968
12963
  color: "white",
12969
12964
  children: title
12970
12965
  }) : null, description ? /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
@@ -12980,7 +12975,7 @@ function ToastContent({
12980
12975
  borderColor: "white",
12981
12976
  onPress: onPress,
12982
12977
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
12983
- base: "heading-xs",
12978
+ base: "body-m",
12984
12979
  color: "white",
12985
12980
  children: actionLabel
12986
12981
  })