@ornikar/kitt-universal 7.1.1 → 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 (32) hide show
  1. package/dist/definitions/themes/default.d.ts +2 -0
  2. package/dist/definitions/themes/default.d.ts.map +1 -1
  3. package/dist/definitions/themes/late-ocean/colors.d.ts +2 -0
  4. package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
  5. package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
  6. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  7. package/dist/index-browser-all.es.android.js +14 -11
  8. package/dist/index-browser-all.es.android.js.map +1 -1
  9. package/dist/index-browser-all.es.ios.js +14 -11
  10. package/dist/index-browser-all.es.ios.js.map +1 -1
  11. package/dist/index-browser-all.es.js +14 -11
  12. package/dist/index-browser-all.es.js.map +1 -1
  13. package/dist/index-browser-all.es.web.js +14 -11
  14. package/dist/index-browser-all.es.web.js.map +1 -1
  15. package/dist/index-node-14.17.cjs.js +15 -13
  16. package/dist/index-node-14.17.cjs.js.map +1 -1
  17. package/dist/index-node-14.17.cjs.web.js +15 -13
  18. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  19. package/dist/linaria-themes-browser-all.es.android.js +11 -9
  20. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  21. package/dist/linaria-themes-browser-all.es.ios.js +11 -9
  22. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  23. package/dist/linaria-themes-browser-all.es.js +11 -9
  24. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  25. package/dist/linaria-themes-browser-all.es.web.js +11 -9
  26. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  27. package/dist/linaria-themes-node-14.17.cjs.js +11 -9
  28. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  29. package/dist/linaria-themes-node-14.17.cjs.web.js +11 -9
  30. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  31. package/dist/tsbuildinfo +1 -1
  32. package/package.json +2 -2
@@ -4,7 +4,7 @@ import { View, Text as Text$1, useWindowDimensions, Image, Pressable, TextInput,
4
4
  export { useWindowDimensions as useWindowSize } from 'react-native';
5
5
  import { UserIcon, CheckboxMark, EyeOffIcon, EyeIcon, ArcIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon, XIcon, TooltipArrowIcon } from '@ornikar/kitt-icons';
6
6
  export * from '@ornikar/kitt-icons';
7
- import styled, { useTheme, css, ThemeProvider } from 'styled-components/native';
7
+ import styled, { css, useTheme, ThemeProvider } from 'styled-components/native';
8
8
  import { cloneElement, useContext, createContext, forwardRef, useMemo, useState, Fragment, Children, useEffect } from 'react';
9
9
  import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
10
10
  import { styled as styled$1 } from '@linaria/react';
@@ -144,7 +144,8 @@ var StyledTypography = /*#__PURE__*/styled(Text$1).withConfig({
144
144
  }, function (_ref2) {
145
145
  var theme = _ref2.theme,
146
146
  $color = _ref2.$color;
147
- return !$color ? '' : "\n color: ".concat(theme.kitt.typography.colors[$color], ";\n text-decoration-color: ").concat(theme.kitt.typography.colors[$color], ";\n ");
147
+ if (!$color) return '';
148
+ return css(["color:", ";text-decoration-color:", ";"], theme.kitt.typography.colors[$color], theme.kitt.typography.colors[$color]);
148
149
  });
149
150
  function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
150
151
  var _useWindowDimensions = useWindowDimensions(),
@@ -925,7 +926,9 @@ var colors = {
925
926
  warning: lateOceanColorPalette.goldCrayola,
926
927
  separator: lateOceanColorPalette.black100,
927
928
  hover: lateOceanColorPalette.black100,
929
+ white: lateOceanColorPalette.white,
928
930
  black: lateOceanColorPalette.black1000,
931
+ blackAnthracite: lateOceanColorPalette.black800,
929
932
  uiBackground: lateOceanColorPalette.black25,
930
933
  uiBackgroundLight: lateOceanColorPalette.white,
931
934
  transparent: lateOceanColorPalette.transparent,
@@ -1118,16 +1121,16 @@ var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFon
1118
1121
  };
1119
1122
  var typography = {
1120
1123
  colors: {
1121
- black: lateOceanColorPalette.black1000,
1122
- 'black-anthracite': lateOceanColorPalette.black800,
1124
+ black: colors.black,
1125
+ 'black-anthracite': colors.blackAnthracite,
1123
1126
  'black-light': lateOceanColorPalette.black555,
1124
- white: lateOceanColorPalette.white,
1125
- 'white-light': lateOceanColorPalette.white,
1126
- primary: lateOceanColorPalette.lateOcean,
1127
- 'primary-light': lateOceanColorPalette.lateOceanLight1,
1128
- accent: lateOceanColorPalette.warmEmbrace,
1129
- success: lateOceanColorPalette.viride,
1130
- danger: lateOceanColorPalette.englishVermillon
1127
+ white: colors.white,
1128
+ 'white-light': colors.white,
1129
+ primary: colors.primary,
1130
+ 'primary-light': colors.primaryLight,
1131
+ accent: colors.accent,
1132
+ success: colors.success,
1133
+ danger: colors.danger
1131
1134
  },
1132
1135
  types: {
1133
1136
  headers: {