@ornikar/kitt-universal 9.8.0 → 9.9.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 (42) hide show
  1. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  2. package/dist/definitions/forms/InputText/InputTextContainer.web.d.ts.map +1 -1
  3. package/dist/definitions/forms/styledTextInputMixin.d.ts +1 -0
  4. package/dist/definitions/forms/styledTextInputMixin.d.ts.map +1 -1
  5. package/dist/definitions/forms/utils.d.ts +1 -0
  6. package/dist/definitions/forms/utils.d.ts.map +1 -1
  7. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +72 -0
  8. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  9. package/dist/definitions/themes/default.d.ts +1 -0
  10. package/dist/definitions/themes/default.d.ts.map +1 -1
  11. package/dist/definitions/themes/late-ocean/colors.d.ts +1 -0
  12. package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
  13. package/dist/definitions/themes/late-ocean/input.d.ts +4 -2
  14. package/dist/definitions/themes/late-ocean/input.d.ts.map +1 -1
  15. package/dist/index-browser-all.es.android.js +131 -85
  16. package/dist/index-browser-all.es.android.js.map +1 -1
  17. package/dist/index-browser-all.es.ios.js +131 -85
  18. package/dist/index-browser-all.es.ios.js.map +1 -1
  19. package/dist/index-browser-all.es.js +131 -85
  20. package/dist/index-browser-all.es.js.map +1 -1
  21. package/dist/index-browser-all.es.web.js +131 -97
  22. package/dist/index-browser-all.es.web.js.map +1 -1
  23. package/dist/index-node-14.17.cjs.js +108 -59
  24. package/dist/index-node-14.17.cjs.js.map +1 -1
  25. package/dist/index-node-14.17.cjs.web.css +1 -1
  26. package/dist/index-node-14.17.cjs.web.js +107 -69
  27. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  28. package/dist/linaria-themes-browser-all.es.android.js +11 -7
  29. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  30. package/dist/linaria-themes-browser-all.es.ios.js +11 -7
  31. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  32. package/dist/linaria-themes-browser-all.es.js +11 -7
  33. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  34. package/dist/linaria-themes-browser-all.es.web.js +11 -7
  35. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  36. package/dist/linaria-themes-node-14.17.cjs.js +11 -7
  37. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  38. package/dist/linaria-themes-node-14.17.cjs.web.js +11 -7
  39. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  40. package/dist/styles.css +1 -1
  41. package/dist/tsbuildinfo +1 -1
  42. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh{width:auto;display:var(--a1vkj3mh-0);-webkit-align-self:var(--a1vkj3mh-1);-ms-flex-item-align:var(--a1vkj3mh-1);align-self:var(--a1vkj3mh-1);outline:none;}@media (min-width:768px){.kitt-hover .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:hover > * > *{-webkit-transform:scale(var(--a1vkj3mh-3));-ms-transform:scale(var(--a1vkj3mh-3));transform:scale(var(--a1vkj3mh-3));}}.kitt-active .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:active > * > *{-webkit-transform:var(--a1vkj3mh-4);-ms-transform:var(--a1vkj3mh-4);transform:var(--a1vkj3mh-4);}.kitt-active .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:active > * > *,.kitt-hover .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:hover > * > *{background:var(--a1vkj3mh-5);}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *{-webkit-transform:scale(1) translateZ(0);-ms-transform:scale(1) translateZ(0);transform:scale(1) translateZ(0);display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:var(--a1vkj3mh-6);transition:var(--a1vkj3mh-6);}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::after,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before{content:'';position:absolute;border-radius:var(--a1vkj3mh-7);-webkit-transition:var(--a1vkj3mh-8);transition:var(--a1vkj3mh-8);}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::after{opacity:var(--a1vkj3mh-9);top:var(--a1vkj3mh-10);left:var(--a1vkj3mh-10);width:var(--a1vkj3mh-12);height:var(--a1vkj3mh-12);border:var(--a1vkj3mh-14);}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before{opacity:0;border:var(--a1vkj3mh-15);width:100%;height:100%;top:var(--a1vkj3mh-16);left:var(--a1vkj3mh-16);}.kitt-focus .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:focus > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > [data-focusvisible-polyfill]{outline:none;}.kitt-focus .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:focus > * > *::before,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > [data-focusvisible-polyfill] > *::before{opacity:1;}.kitt-hover .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:hover > * > *::before,.kitt-active .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > * > *::before,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:active > * > *::before{opacity:0;}.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > *{color:var(--a1vkj3mh-18);}.kitt-hover .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:hover > *{color:var(--a1vkj3mh-19);}.kitt-active .kitt-u_AnimatedButtonPressableContainer_a1vkj3mh > *,.kitt-u_AnimatedButtonPressableContainer_a1vkj3mh:active > *{color:var(--a1vkj3mh-20);}
2
2
  .kitt-u_StyledSpinningIconContainer_ssn8o83{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}.kitt-u_StyledSpinningIconContainer_ssn8o83 > svg{-webkit-animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;animation:spin-kitt-u_StyledSpinningIconContainer_ssn8o83 1.1s infinite linear;}@-webkit-keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}@keyframes spin-kitt-u_StyledSpinningIconContainer_ssn8o83{0%{-webkit-transform:rotate(-1deg);-ms-transform:rotate(-1deg);transform:rotate(-1deg);}100%{-webkit-transform:rotate(359deg);-ms-transform:rotate(359deg);transform:rotate(359deg);}}
3
- .kitt-u_InputTextContainer_i1encr9g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;}.kitt-u_InputTextContainer_i1encr9g > [data-focusvisible-polyfill]{outline:none;}.kitt-u_InputTextContainer_i1encr9g > *::-ms-clear,.kitt-u_InputTextContainer_i1encr9g > *::-ms-reveal{display:none;}.kitt-u_InputTextContainer_i1encr9g,.kitt-u_InputTextContainer_i1encr9g > *{cursor:var(--i1encr9g-0);}.kitt-u_InputTextContainer_i1encr9g > *{-webkit-transition:var(--i1encr9g-1);transition:var(--i1encr9g-1);}.kitt-u_InputTextContainer_i1encr9g:hover > *,.kitt-hover .kitt-u_InputTextContainer_i1encr9g > *{border-color:var(--i1encr9g-2);}.kitt-u_InputTextContainer_i1encr9g:focus > *,.kitt-u_InputTextContainer_i1encr9g > *:focus,.kitt-focus .kitt-u_InputTextContainer_i1encr9g > *{border-color:var(--i1encr9g-3);}
3
+ .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:var(--i1encr9g-0);transition:var(--i1encr9g-0);}
4
4
  @media (hover:none) and (pointer:coarse){.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-0));-ms-transform:scale(var(--p1nlccvg-0));transform:scale(var(--p1nlccvg-0));}}@media (min-width:768px){.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-2));-ms-transform:scale(var(--p1nlccvg-2));transform:scale(var(--p1nlccvg-2));}}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:active,.kitt-active .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{-webkit-transform:scale(var(--p1nlccvg-3));-ms-transform:scale(var(--p1nlccvg-3));transform:scale(var(--p1nlccvg-3));}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > [data-focusvisible-polyfill]{outline:none;}.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:hover,.kitt-hover .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:focus,.kitt-focus .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *,.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > [data-focusvisible-polyfill],.kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *:active,.kitt-active .kitt-u_PressableIconButtonWebWrapper_p1nlccvg > *{background-color:var(--p1nlccvg-4);}
5
5
  .kitt-u_overflowHidden_otm3u3{overflow:hidden;}
6
6
  .kitt-u_PageLoaderContainer_ptkwz2j{width:var(--ptkwz2j-3);height:var(--ptkwz2j-3);-webkit-transform:scale(-1) rotate(90deg);-ms-transform:scale(-1) rotate(90deg);transform:scale(-1) rotate(90deg);}@-webkit-keyframes PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:var(--ptkwz2j-0);}100%{stroke-dashoffset:0;}}@keyframes PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:var(--ptkwz2j-0);}100%{stroke-dashoffset:0;}}@-webkit-keyframes PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:var(--ptkwz2j-0);}100%{stroke-dashoffset:var(--ptkwz2j-2);}}@keyframes PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j{0%{stroke-dashoffset:var(--ptkwz2j-0);}100%{stroke-dashoffset:var(--ptkwz2j-2);}}@-webkit-keyframes PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}.kitt-u_PageLoaderContainer_ptkwz2j circle,.kitt-u_PageLoaderContainer_ptkwz2j g{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;}.kitt-u_PageLoaderContainer_ptkwz2j circle{stroke-width:var(--ptkwz2j-5);stroke-dasharray:var(--ptkwz2j-0);stroke-dashoffset:var(--ptkwz2j-0);stroke-linecap:round;}.kitt-u_PageLoaderContainer_ptkwz2j g[data-large-loader='base'] circle{stroke:var(--ptkwz2j-8);-webkit-animation:var(--ptkwz2j-9);animation:var(--ptkwz2j-9);-webkit-animation-name:PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j;animation-name:PageLoaderInit-kitt-u_PageLoaderContainer_ptkwz2j;}.kitt-u_PageLoaderContainer_ptkwz2j g[data-large-loader='fill']{-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;-webkit-animation:var(--ptkwz2j-10);animation:var(--ptkwz2j-10);-webkit-animation-name:PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j;animation-name:PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j;}.kitt-u_PageLoaderContainer_ptkwz2j g[data-large-loader='fill'] circle{stroke:var(--ptkwz2j-11);-webkit-animation:var(--ptkwz2j-12);animation:var(--ptkwz2j-12);-webkit-animation-name:PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j,PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j;animation-name:PageLoaderOffset-kitt-u_PageLoaderContainer_ptkwz2j,PageLoaderRotation-kitt-u_PageLoaderContainer_ptkwz2j;}
@@ -1407,6 +1407,7 @@ const colors = {
1407
1407
  hover: lateOceanColorPalette.black100,
1408
1408
  white: lateOceanColorPalette.white,
1409
1409
  black: lateOceanColorPalette.black1000,
1410
+ blackLight: lateOceanColorPalette.black555,
1410
1411
  blackAnthracite: lateOceanColorPalette.black800,
1411
1412
  uiBackground: lateOceanColorPalette.black25,
1412
1413
  uiBackgroundLight: lateOceanColorPalette.white,
@@ -1703,34 +1704,34 @@ const inputStatesStyle = {
1703
1704
  default: {
1704
1705
  backgroundColor: colors.uiBackgroundLight,
1705
1706
  borderColor: colors.separator,
1706
- color: 'black'
1707
+ color: colors.black
1707
1708
  },
1708
1709
  pending: {
1709
1710
  backgroundColor: colors.uiBackgroundLight,
1710
1711
  borderColor: colors.separator,
1711
- color: 'black'
1712
+ color: colors.black
1712
1713
  },
1713
1714
  valid: {
1714
1715
  backgroundColor: colors.uiBackgroundLight,
1715
1716
  borderColor: lateOceanColorPalette.black100,
1716
- color: 'black'
1717
+ color: colors.black
1717
1718
  },
1718
1719
  hover: {
1719
1720
  borderColor: lateOceanColorPalette.black200,
1720
- color: 'black'
1721
+ color: colors.black
1721
1722
  },
1722
1723
  focus: {
1723
1724
  borderColor: colors.primary,
1724
- color: 'black'
1725
+ color: colors.black
1725
1726
  },
1726
1727
  disabled: {
1727
1728
  backgroundColor: colors.disabled,
1728
1729
  borderColor: colors.separator,
1729
- color: 'black-light'
1730
+ color: colors.blackLight
1730
1731
  },
1731
1732
  invalid: {
1732
1733
  borderColor: colors.separator,
1733
- color: 'black'
1734
+ color: colors.black
1734
1735
  }
1735
1736
  };
1736
1737
  const input = {
@@ -1744,6 +1745,9 @@ const input = {
1744
1745
  icon: {
1745
1746
  size: 20
1746
1747
  },
1748
+ rightContainer: {
1749
+ padding: 10
1750
+ },
1747
1751
  padding: {
1748
1752
  horizontal: 16,
1749
1753
  vertical: 5
@@ -2146,6 +2150,7 @@ function Checkbox({
2146
2150
  });
2147
2151
  }
2148
2152
 
2153
+ /** @deprecated use native-base instead */
2149
2154
  function getInputUIState({
2150
2155
  isFocused,
2151
2156
  isDisabled,
@@ -2157,6 +2162,7 @@ function getInputUIState({
2157
2162
  return 'default';
2158
2163
  }
2159
2164
 
2165
+ /** @deprecated this mixin is not SSR compatible */
2160
2166
  const styledTextInputMixin = /*#__PURE__*/styled.css(["background-color:", ";border-width:", "px;border-radius:", "px;border-color:", ";font-size:", ";color:", ";font-family:", ";"], ({
2161
2167
  theme,
2162
2168
  $state
@@ -2175,7 +2181,7 @@ const styledTextInputMixin = /*#__PURE__*/styled.css(["background-color:", ";bor
2175
2181
  }, ({
2176
2182
  theme,
2177
2183
  $state
2178
- }) => theme.kitt.typography.colors[theme.kitt.forms.input.states[$state].color], ({
2184
+ }) => theme.kitt.forms.input.states[$state].color || theme.kitt.forms.input.states.default.color, ({
2179
2185
  theme
2180
2186
  }) => theme.kitt.typography.types.bodies.fontFamily.regular);
2181
2187
 
@@ -2314,9 +2320,6 @@ const InputTextContainer = withTheme( /*#__PURE__*/react$1.styled("div")({
2314
2320
  class: "kitt-u_InputTextContainer_i1encr9g",
2315
2321
  vars: {
2316
2322
  "i1encr9g-0": [({
2317
- $isDisabled
2318
- }) => $isDisabled ? 'not-allowed' : 'inherit'],
2319
- "i1encr9g-1": [({
2320
2323
  theme
2321
2324
  }) => {
2322
2325
  const {
@@ -2325,51 +2328,13 @@ const InputTextContainer = withTheme( /*#__PURE__*/react$1.styled("div")({
2325
2328
  timingFunction
2326
2329
  } = theme.kitt.forms.input.transition;
2327
2330
  return `${property} ${duration} ${timingFunction}`;
2328
- }],
2329
- "i1encr9g-2": [({
2330
- theme,
2331
- $isDisabled
2332
- }) => {
2333
- if ($isDisabled) return theme.kitt.forms.input.states.disabled.borderColor;
2334
- return theme.kitt.forms.input.states.hover.borderColor;
2335
- }],
2336
- "i1encr9g-3": [({
2337
- theme,
2338
- $isDisabled
2339
- }) => {
2340
- if ($isDisabled) return theme.kitt.forms.input.states.disabled.borderColor;
2341
- return theme.kitt.forms.input.states.focus.borderColor;
2342
2331
  }]
2343
2332
  }
2344
2333
  }));
2345
2334
 
2346
- const StyledTextInput = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.TextInput).withConfig({
2347
- displayName: "InputText__StyledTextInput",
2348
- componentId: "kitt-universal__sc-uke279-0"
2349
- })(["", " padding:", ";line-height:", ";width:100%;min-height:", "px;"], styledTextInputMixin, ({
2350
- theme,
2351
- multiline
2352
- }) => {
2353
- if (!multiline && "web" !== 'web') return `0 ${theme.kitt.forms.input.padding.horizontal}px`;
2354
- return `${theme.kitt.forms.input.padding.vertical}px ${theme.kitt.forms.input.padding.horizontal}px`;
2355
- }, ({
2356
- theme,
2357
- multiline
2358
- }) => {
2359
- const typeConfigKey = getTypographyTypeConfigKey(theme);
2360
- return `${theme.kitt.typography.types.bodies.configs.body[typeConfigKey].lineHeight}px`;
2361
- }, ({
2362
- theme,
2363
- $minHeight = theme.kitt.forms.input.minHeight
2364
- }) => $minHeight);
2365
- const RightInputContainer = /*#__PURE__*/styled__default(BabelPluginStyledComponentsReactNative.View).withConfig({
2366
- displayName: "InputText__RightInputContainer",
2367
- componentId: "kitt-universal__sc-uke279-1"
2368
- })(["position:absolute;right:0;top:0;bottom:0;justify-content:center;padding:10px;"]);
2369
2335
  const InputText = /*#__PURE__*/react.forwardRef(({
2370
2336
  id,
2371
2337
  right,
2372
- minHeight,
2373
2338
  state: formState,
2374
2339
  internalForceState,
2375
2340
  disabled = false,
@@ -2384,38 +2349,39 @@ const InputText = /*#__PURE__*/react.forwardRef(({
2384
2349
  ...props
2385
2350
  }, ref) => {
2386
2351
  const theme = /*#__PURE__*/styled.useTheme();
2387
- const [isFocused, setIsFocused] = react.useState(false);
2388
- const state = internalForceState || getInputUIState({
2389
- isFocused,
2390
- isDisabled: disabled,
2391
- formState
2352
+ const fontSizeForNativeBase = createNativeBaseFontSize({
2353
+ base: 'body'
2392
2354
  });
2393
2355
  return /*#__PURE__*/jsxRuntime.jsxs(InputTextContainer, {
2394
2356
  $isDisabled: disabled,
2395
- children: [/*#__PURE__*/jsxRuntime.jsx(StyledTextInput, {
2357
+ children: [/*#__PURE__*/jsxRuntime.jsx(nativeBase.Input, {
2396
2358
  ref: ref,
2397
2359
  multiline: multiline,
2398
2360
  nativeID: id,
2399
- editable: !disabled,
2361
+ isDisabled: internalForceState ? internalForceState === 'disabled' : disabled,
2362
+ isHovered: internalForceState ? internalForceState === 'hover' : undefined,
2363
+ isFocused: internalForceState ? internalForceState === 'focus' : undefined,
2400
2364
  keyboardType: keyboardType,
2401
2365
  autoComplete: autoComplete,
2402
2366
  autoCorrect: autoCorrect,
2403
- $minHeight: minHeight,
2404
2367
  textContentType: textContentType,
2405
- placeholderTextColor: theme.kitt.forms.input.color.placeholder,
2406
- selectionColor: theme.kitt.forms.input.color.selection,
2368
+ fontSize: fontSizeForNativeBase,
2369
+ lineHeight: // On basic text input, we set the line-height to zero for iOS to fix vertical text alignment
2370
+ // This is a iOS only fix since having 0 as a line-height value breaks text inputs on Android
2371
+ fontSizeForNativeBase,
2372
+ fontWeight: "bodies.regular",
2373
+ fontFamily: "bodies.regular",
2374
+ py: !multiline && "web" !== 'web' ? 0 : undefined,
2407
2375
  ...props,
2408
- $state: state,
2409
- onFocus: e => {
2410
- setIsFocused(true);
2411
- if (onFocus) onFocus(e);
2412
- },
2413
- onBlur: e => {
2414
- setIsFocused(false);
2415
- if (onBlur) onBlur(e);
2416
- },
2376
+ variant: "outline",
2417
2377
  onSubmitEditing: multiline ? () => null : onSubmitEditing
2418
- }), right ? /*#__PURE__*/jsxRuntime.jsx(RightInputContainer, {
2378
+ }), right ? /*#__PURE__*/jsxRuntime.jsx(View, {
2379
+ position: "absolute",
2380
+ right: 0,
2381
+ top: 0,
2382
+ bottom: 0,
2383
+ justifyContent: "center",
2384
+ padding: theme.kitt.forms.input.rightContainer.padding,
2419
2385
  children: right
2420
2386
  }) : null]
2421
2387
  });
@@ -3640,6 +3606,78 @@ const createKittNativeBaseCustomTheme = theme => {
3640
3606
  bodies: theme.typography.types.bodies.fontFamily
3641
3607
  },
3642
3608
  components: {
3609
+ Input: {
3610
+ baseStyle: {
3611
+ width: '100%',
3612
+ minHeight: theme.forms.input.minHeight,
3613
+ py: theme.forms.input.padding.vertical,
3614
+ px: theme.forms.input.padding.horizontal,
3615
+ borderRadius: theme.forms.input.borderRadius,
3616
+ _disabled: {
3617
+ opacity: 1 // override default native-base opacity
3618
+
3619
+ },
3620
+ _light: {
3621
+ color: theme.forms.input.states.default.color,
3622
+ placeholderTextColor: theme.forms.input.color.placeholder,
3623
+ borderColor: theme.forms.input.states.default.borderColor,
3624
+ bg: theme.forms.input.states.default.backgroundColor,
3625
+ _hover: {
3626
+ borderColor: theme.forms.input.states.hover.borderColor,
3627
+ color: theme.forms.input.states.hover.color,
3628
+ _focus: {
3629
+ borderColor: theme.forms.input.states.focus.borderColor,
3630
+ color: theme.forms.input.states.focus.color
3631
+ }
3632
+ },
3633
+ _focus: {
3634
+ borderColor: theme.forms.input.states.focus.borderColor,
3635
+ color: theme.forms.input.states.focus.color,
3636
+ _hover: {
3637
+ borderColor: theme.forms.input.states.focus.borderColor,
3638
+ color: theme.forms.input.states.focus.color
3639
+ },
3640
+ _stack: {
3641
+ style: {
3642
+ outlineWidth: 0
3643
+ }
3644
+ }
3645
+ },
3646
+ _invalid: {
3647
+ borderColor: theme.forms.input.states.invalid.borderColor,
3648
+ color: theme.forms.input.states.invalid.color,
3649
+ _hover: {
3650
+ borderColor: theme.forms.input.states.hover.borderColor,
3651
+ color: theme.forms.input.states.hover.color
3652
+ }
3653
+ },
3654
+ _ios: {
3655
+ selectionColor: theme.forms.input.color.selection
3656
+ },
3657
+ _android: {
3658
+ selectionColor: theme.forms.input.color.selection
3659
+ },
3660
+ _disabled: {
3661
+ placeholderTextColor: theme.forms.input.color.placeholder,
3662
+ color: theme.forms.input.states.disabled.color,
3663
+ borderColor: theme.forms.input.states.disabled.borderColor,
3664
+ bg: theme.forms.input.states.disabled.backgroundColor
3665
+ }
3666
+ }
3667
+ },
3668
+ variants: {
3669
+ outline: {
3670
+ borderWidth: theme.forms.input.borderWidth,
3671
+ _focus: {
3672
+ bg: theme.forms.input.states.default.backgroundColor
3673
+ }
3674
+ },
3675
+ underlined: {},
3676
+ rounded: {},
3677
+ filled: {},
3678
+ unstyled: {}
3679
+ }
3680
+ },
3643
3681
  Text: {
3644
3682
  baseStyle: {
3645
3683
  _light: {