@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 { UserIcon, CheckboxMark, XIcon, EyeOffIcon, EyeIcon, ArcIcon, InfoIcon,
4
4
  export * from '@ornikar/kitt-icons';
5
5
  import { useWindowDimensions, Platform, Image, Linking, Pressable, StyleSheet, ScrollView, Modal as Modal$1, Text as Text$1, TextInput, View, Animated as Animated$1, Easing, ActivityIndicator } from 'react-native';
6
6
  export { useWindowDimensions as useWindowSize } from 'react-native';
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, useRef, useEffect, Fragment as Fragment$1, Children } from 'react';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
10
  import Animated, { useSharedValue, useAnimatedStyle, interpolateColor, withSpring, withRepeat, withTiming, Easing as Easing$1, interpolate } from 'react-native-reanimated';
@@ -145,7 +145,8 @@ var StyledTypography = /*#__PURE__*/styled.Text.withConfig({
145
145
  }, function (_ref2) {
146
146
  var theme = _ref2.theme,
147
147
  $color = _ref2.$color;
148
- return !$color ? '' : "\n color: ".concat(theme.kitt.typography.colors[$color], ";\n text-decoration-color: ").concat(theme.kitt.typography.colors[$color], ";\n ");
148
+ if (!$color) return '';
149
+ return css(["color:", ";text-decoration-color:", ";"], theme.kitt.typography.colors[$color], theme.kitt.typography.colors[$color]);
149
150
  });
150
151
  function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
151
152
  var _useWindowDimensions = useWindowDimensions(),
@@ -909,7 +910,9 @@ var colors = {
909
910
  warning: lateOceanColorPalette.goldCrayola,
910
911
  separator: lateOceanColorPalette.black100,
911
912
  hover: lateOceanColorPalette.black100,
913
+ white: lateOceanColorPalette.white,
912
914
  black: lateOceanColorPalette.black1000,
915
+ blackAnthracite: lateOceanColorPalette.black800,
913
916
  uiBackground: lateOceanColorPalette.black25,
914
917
  uiBackgroundLight: lateOceanColorPalette.white,
915
918
  transparent: lateOceanColorPalette.transparent,
@@ -1102,16 +1105,16 @@ var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFon
1102
1105
  };
1103
1106
  var typography = {
1104
1107
  colors: {
1105
- black: lateOceanColorPalette.black1000,
1106
- 'black-anthracite': lateOceanColorPalette.black800,
1108
+ black: colors.black,
1109
+ 'black-anthracite': colors.blackAnthracite,
1107
1110
  'black-light': lateOceanColorPalette.black555,
1108
- white: lateOceanColorPalette.white,
1109
- 'white-light': lateOceanColorPalette.white,
1110
- primary: lateOceanColorPalette.lateOcean,
1111
- 'primary-light': lateOceanColorPalette.lateOceanLight1,
1112
- accent: lateOceanColorPalette.warmEmbrace,
1113
- success: lateOceanColorPalette.viride,
1114
- danger: lateOceanColorPalette.englishVermillon
1111
+ white: colors.white,
1112
+ 'white-light': colors.white,
1113
+ primary: colors.primary,
1114
+ 'primary-light': colors.primaryLight,
1115
+ accent: colors.accent,
1116
+ success: colors.success,
1117
+ danger: colors.danger
1115
1118
  },
1116
1119
  types: {
1117
1120
  headers: {