@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.
- package/dist/definitions/themes/default.d.ts +2 -0
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/colors.d.ts +2 -0
- package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typography.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +14 -11
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +14 -11
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +14 -11
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +14 -11
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +15 -13
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +15 -13
- package/dist/index-node-14.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.android.js +11 -9
- package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.ios.js +11 -9
- package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.js +11 -9
- package/dist/linaria-themes-browser-all.es.js.map +1 -1
- package/dist/linaria-themes-browser-all.es.web.js +11 -9
- package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.js +11 -9
- package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-14.17.cjs.web.js +11 -9
- package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- 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, {
|
|
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';
|
|
@@ -146,7 +146,8 @@ var StyledTypography = /*#__PURE__*/styled.Text.withConfig({
|
|
|
146
146
|
}, function (_ref2) {
|
|
147
147
|
var theme = _ref2.theme,
|
|
148
148
|
$color = _ref2.$color;
|
|
149
|
-
|
|
149
|
+
if (!$color) return '';
|
|
150
|
+
return css(["color:", ";text-decoration-color:", ";"], theme.kitt.typography.colors[$color], theme.kitt.typography.colors[$color]);
|
|
150
151
|
});
|
|
151
152
|
function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
|
|
152
153
|
var _useWindowDimensions = useWindowDimensions(),
|
|
@@ -910,7 +911,9 @@ var colors = {
|
|
|
910
911
|
warning: lateOceanColorPalette.goldCrayola,
|
|
911
912
|
separator: lateOceanColorPalette.black100,
|
|
912
913
|
hover: lateOceanColorPalette.black100,
|
|
914
|
+
white: lateOceanColorPalette.white,
|
|
913
915
|
black: lateOceanColorPalette.black1000,
|
|
916
|
+
blackAnthracite: lateOceanColorPalette.black800,
|
|
914
917
|
uiBackground: lateOceanColorPalette.black25,
|
|
915
918
|
uiBackgroundLight: lateOceanColorPalette.white,
|
|
916
919
|
transparent: lateOceanColorPalette.transparent,
|
|
@@ -1103,16 +1106,16 @@ var createTypographyTypeConfig = function (lineHeightMultiplier, baseAndSmallFon
|
|
|
1103
1106
|
};
|
|
1104
1107
|
var typography = {
|
|
1105
1108
|
colors: {
|
|
1106
|
-
black:
|
|
1107
|
-
'black-anthracite':
|
|
1109
|
+
black: colors.black,
|
|
1110
|
+
'black-anthracite': colors.blackAnthracite,
|
|
1108
1111
|
'black-light': lateOceanColorPalette.black555,
|
|
1109
|
-
white:
|
|
1110
|
-
'white-light':
|
|
1111
|
-
primary:
|
|
1112
|
-
'primary-light':
|
|
1113
|
-
accent:
|
|
1114
|
-
success:
|
|
1115
|
-
danger:
|
|
1112
|
+
white: colors.white,
|
|
1113
|
+
'white-light': colors.white,
|
|
1114
|
+
primary: colors.primary,
|
|
1115
|
+
'primary-light': colors.primaryLight,
|
|
1116
|
+
accent: colors.accent,
|
|
1117
|
+
success: colors.success,
|
|
1118
|
+
danger: colors.danger
|
|
1116
1119
|
},
|
|
1117
1120
|
types: {
|
|
1118
1121
|
headers: {
|