@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 { 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, {
|
|
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
|
-
|
|
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:
|
|
1122
|
-
'black-anthracite':
|
|
1124
|
+
black: colors.black,
|
|
1125
|
+
'black-anthracite': colors.blackAnthracite,
|
|
1123
1126
|
'black-light': lateOceanColorPalette.black555,
|
|
1124
|
-
white:
|
|
1125
|
-
'white-light':
|
|
1126
|
-
primary:
|
|
1127
|
-
'primary-light':
|
|
1128
|
-
accent:
|
|
1129
|
-
success:
|
|
1130
|
-
danger:
|
|
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: {
|