@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';
|
|
@@ -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
|
-
|
|
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:
|
|
1106
|
-
'black-anthracite':
|
|
1108
|
+
black: colors.black,
|
|
1109
|
+
'black-anthracite': colors.blackAnthracite,
|
|
1107
1110
|
'black-light': lateOceanColorPalette.black555,
|
|
1108
|
-
white:
|
|
1109
|
-
'white-light':
|
|
1110
|
-
primary:
|
|
1111
|
-
'primary-light':
|
|
1112
|
-
accent:
|
|
1113
|
-
success:
|
|
1114
|
-
danger:
|
|
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: {
|