@ornikar/kitt-universal 7.0.4 → 7.2.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 (35) hide show
  1. package/dist/definitions/Overlay/Overlay.d.ts +1 -2
  2. package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
  3. package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
  4. package/dist/definitions/themes/default.d.ts +2 -0
  5. package/dist/definitions/themes/default.d.ts.map +1 -1
  6. package/dist/definitions/themes/late-ocean/colors.d.ts +2 -0
  7. package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
  8. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  9. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  10. package/dist/index-browser-all.es.android.js +22 -13
  11. package/dist/index-browser-all.es.android.js.map +1 -1
  12. package/dist/index-browser-all.es.ios.js +22 -13
  13. package/dist/index-browser-all.es.ios.js.map +1 -1
  14. package/dist/index-browser-all.es.js +22 -13
  15. package/dist/index-browser-all.es.js.map +1 -1
  16. package/dist/index-browser-all.es.web.js +22 -13
  17. package/dist/index-browser-all.es.web.js.map +1 -1
  18. package/dist/index-node-14.17.cjs.js +20 -14
  19. package/dist/index-node-14.17.cjs.js.map +1 -1
  20. package/dist/index-node-14.17.cjs.web.js +20 -14
  21. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  22. package/dist/linaria-themes-browser-all.es.android.js +11 -9
  23. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  24. package/dist/linaria-themes-browser-all.es.ios.js +11 -9
  25. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  26. package/dist/linaria-themes-browser-all.es.js +11 -9
  27. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  28. package/dist/linaria-themes-browser-all.es.web.js +11 -9
  29. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  30. package/dist/linaria-themes-node-14.17.cjs.js +11 -9
  31. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  32. package/dist/linaria-themes-node-14.17.cjs.web.js +11 -9
  33. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  34. package/dist/tsbuildinfo +1 -1
  35. package/package.json +2 -2
@@ -150,10 +150,10 @@ const StyledTypography = /*#__PURE__*/styled__default(BabelPluginStyledComponent
150
150
  }, ({
151
151
  theme,
152
152
  $color
153
- }) => !$color ? '' : `
154
- color: ${theme.kitt.typography.colors[$color]};
155
- text-decoration-color: ${theme.kitt.typography.colors[$color]};
156
- `);
153
+ }) => {
154
+ if (!$color) return '';
155
+ return styled.css(["color:", ";text-decoration-color:", ";"], theme.kitt.typography.colors[$color], theme.kitt.typography.colors[$color]);
156
+ });
157
157
  function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
158
158
  const {
159
159
  width
@@ -911,7 +911,9 @@ const colors = {
911
911
  warning: lateOceanColorPalette.goldCrayola,
912
912
  separator: lateOceanColorPalette.black100,
913
913
  hover: lateOceanColorPalette.black100,
914
+ white: lateOceanColorPalette.white,
914
915
  black: lateOceanColorPalette.black1000,
916
+ blackAnthracite: lateOceanColorPalette.black800,
915
917
  uiBackground: lateOceanColorPalette.black25,
916
918
  uiBackgroundLight: lateOceanColorPalette.white,
917
919
  transparent: lateOceanColorPalette.transparent,
@@ -1100,16 +1102,16 @@ const createTypographyTypeConfig = (lineHeightMultiplier, baseAndSmallFontSize,
1100
1102
  });
1101
1103
  const typography = {
1102
1104
  colors: {
1103
- black: lateOceanColorPalette.black1000,
1104
- 'black-anthracite': lateOceanColorPalette.black800,
1105
+ black: colors.black,
1106
+ 'black-anthracite': colors.blackAnthracite,
1105
1107
  'black-light': lateOceanColorPalette.black555,
1106
- white: lateOceanColorPalette.white,
1107
- 'white-light': lateOceanColorPalette.white,
1108
- primary: lateOceanColorPalette.lateOcean,
1109
- 'primary-light': lateOceanColorPalette.lateOceanLight1,
1110
- accent: lateOceanColorPalette.warmEmbrace,
1111
- success: lateOceanColorPalette.viride,
1112
- danger: lateOceanColorPalette.englishVermillon
1108
+ white: colors.white,
1109
+ 'white-light': colors.white,
1110
+ primary: colors.primary,
1111
+ 'primary-light': colors.primaryLight,
1112
+ accent: colors.accent,
1113
+ success: colors.success,
1114
+ danger: colors.danger
1113
1115
  },
1114
1116
  types: {
1115
1117
  headers: {
@@ -1795,6 +1797,8 @@ const InputText = /*#__PURE__*/react.forwardRef(({
1795
1797
  textContentType = 'none',
1796
1798
  autoCompleteType = 'off',
1797
1799
  keyboardType = 'default',
1800
+ multiline,
1801
+ onSubmitEditing,
1798
1802
  onFocus,
1799
1803
  onBlur,
1800
1804
  ...props
@@ -1810,6 +1814,7 @@ const InputText = /*#__PURE__*/react.forwardRef(({
1810
1814
  $isDisabled: disabled,
1811
1815
  children: [/*#__PURE__*/jsxRuntime.jsx(StyledTextInput, {
1812
1816
  ref: ref,
1817
+ multiline: multiline,
1813
1818
  nativeID: id,
1814
1819
  editable: !disabled,
1815
1820
  keyboardType: keyboardType,
@@ -1828,7 +1833,8 @@ const InputText = /*#__PURE__*/react.forwardRef(({
1828
1833
  onBlur: e => {
1829
1834
  setIsFocused(false);
1830
1835
  if (onBlur) onBlur(e);
1831
- }
1836
+ },
1837
+ onSubmitEditing: multiline ? () => null : onSubmitEditing
1832
1838
  }), right ? /*#__PURE__*/jsxRuntime.jsx(RightInputContainer, {
1833
1839
  children: right
1834
1840
  }) : null]