@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
|
@@ -157,10 +157,10 @@ const StyledTypography = /*#__PURE__*/styled__default.Text.withConfig({
|
|
|
157
157
|
}, ({
|
|
158
158
|
theme,
|
|
159
159
|
$color
|
|
160
|
-
}) =>
|
|
161
|
-
color
|
|
162
|
-
text-decoration-color: $
|
|
163
|
-
|
|
160
|
+
}) => {
|
|
161
|
+
if (!$color) return '';
|
|
162
|
+
return styled.css(["color:", ";text-decoration-color:", ";"], theme.kitt.typography.colors[$color], theme.kitt.typography.colors[$color]);
|
|
163
|
+
});
|
|
164
164
|
function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
|
|
165
165
|
const {
|
|
166
166
|
width
|
|
@@ -922,7 +922,9 @@ const colors = {
|
|
|
922
922
|
warning: lateOceanColorPalette.goldCrayola,
|
|
923
923
|
separator: lateOceanColorPalette.black100,
|
|
924
924
|
hover: lateOceanColorPalette.black100,
|
|
925
|
+
white: lateOceanColorPalette.white,
|
|
925
926
|
black: lateOceanColorPalette.black1000,
|
|
927
|
+
blackAnthracite: lateOceanColorPalette.black800,
|
|
926
928
|
uiBackground: lateOceanColorPalette.black25,
|
|
927
929
|
uiBackgroundLight: lateOceanColorPalette.white,
|
|
928
930
|
transparent: lateOceanColorPalette.transparent,
|
|
@@ -1111,16 +1113,16 @@ const createTypographyTypeConfig = (lineHeightMultiplier, baseAndSmallFontSize,
|
|
|
1111
1113
|
});
|
|
1112
1114
|
const typography = {
|
|
1113
1115
|
colors: {
|
|
1114
|
-
black:
|
|
1115
|
-
'black-anthracite':
|
|
1116
|
+
black: colors.black,
|
|
1117
|
+
'black-anthracite': colors.blackAnthracite,
|
|
1116
1118
|
'black-light': lateOceanColorPalette.black555,
|
|
1117
|
-
white:
|
|
1118
|
-
'white-light':
|
|
1119
|
-
primary:
|
|
1120
|
-
'primary-light':
|
|
1121
|
-
accent:
|
|
1122
|
-
success:
|
|
1123
|
-
danger:
|
|
1119
|
+
white: colors.white,
|
|
1120
|
+
'white-light': colors.white,
|
|
1121
|
+
primary: colors.primary,
|
|
1122
|
+
'primary-light': colors.primaryLight,
|
|
1123
|
+
accent: colors.accent,
|
|
1124
|
+
success: colors.success,
|
|
1125
|
+
danger: colors.danger
|
|
1124
1126
|
},
|
|
1125
1127
|
types: {
|
|
1126
1128
|
headers: {
|