@ornikar/kitt-universal 7.0.4 → 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/Overlay/Overlay.d.ts +1 -2
- package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- 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 +22 -13
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +22 -13
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +22 -13
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +22 -13
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +20 -14
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/index-node-14.17.cjs.web.js +20 -14
- 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
|
@@ -150,10 +150,10 @@ const StyledTypography = /*#__PURE__*/styled__default(BabelPluginStyledComponent
|
|
|
150
150
|
}, ({
|
|
151
151
|
theme,
|
|
152
152
|
$color
|
|
153
|
-
}) =>
|
|
154
|
-
color
|
|
155
|
-
text-decoration-color: $
|
|
156
|
-
|
|
153
|
+
}) => {
|
|
154
|
+
if (!$color) return '';
|
|
155
|
+
return styled.css(["color:", ";text-decoration-color:", ";"], theme.kitt.typography.colors[$color], theme.kitt.typography.colors[$color]);
|
|
156
|
+
});
|
|
157
157
|
function useTypographyTypeForCurrentWindowSize(base, small, medium, large) {
|
|
158
158
|
const {
|
|
159
159
|
width
|
|
@@ -911,7 +911,9 @@ const colors = {
|
|
|
911
911
|
warning: lateOceanColorPalette.goldCrayola,
|
|
912
912
|
separator: lateOceanColorPalette.black100,
|
|
913
913
|
hover: lateOceanColorPalette.black100,
|
|
914
|
+
white: lateOceanColorPalette.white,
|
|
914
915
|
black: lateOceanColorPalette.black1000,
|
|
916
|
+
blackAnthracite: lateOceanColorPalette.black800,
|
|
915
917
|
uiBackground: lateOceanColorPalette.black25,
|
|
916
918
|
uiBackgroundLight: lateOceanColorPalette.white,
|
|
917
919
|
transparent: lateOceanColorPalette.transparent,
|
|
@@ -1100,16 +1102,16 @@ const createTypographyTypeConfig = (lineHeightMultiplier, baseAndSmallFontSize,
|
|
|
1100
1102
|
});
|
|
1101
1103
|
const typography = {
|
|
1102
1104
|
colors: {
|
|
1103
|
-
black:
|
|
1104
|
-
'black-anthracite':
|
|
1105
|
+
black: colors.black,
|
|
1106
|
+
'black-anthracite': colors.blackAnthracite,
|
|
1105
1107
|
'black-light': lateOceanColorPalette.black555,
|
|
1106
|
-
white:
|
|
1107
|
-
'white-light':
|
|
1108
|
-
primary:
|
|
1109
|
-
'primary-light':
|
|
1110
|
-
accent:
|
|
1111
|
-
success:
|
|
1112
|
-
danger:
|
|
1108
|
+
white: colors.white,
|
|
1109
|
+
'white-light': colors.white,
|
|
1110
|
+
primary: colors.primary,
|
|
1111
|
+
'primary-light': colors.primaryLight,
|
|
1112
|
+
accent: colors.accent,
|
|
1113
|
+
success: colors.success,
|
|
1114
|
+
danger: colors.danger
|
|
1113
1115
|
},
|
|
1114
1116
|
types: {
|
|
1115
1117
|
headers: {
|
|
@@ -1795,6 +1797,8 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
1795
1797
|
textContentType = 'none',
|
|
1796
1798
|
autoCompleteType = 'off',
|
|
1797
1799
|
keyboardType = 'default',
|
|
1800
|
+
multiline,
|
|
1801
|
+
onSubmitEditing,
|
|
1798
1802
|
onFocus,
|
|
1799
1803
|
onBlur,
|
|
1800
1804
|
...props
|
|
@@ -1810,6 +1814,7 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
1810
1814
|
$isDisabled: disabled,
|
|
1811
1815
|
children: [/*#__PURE__*/jsxRuntime.jsx(StyledTextInput, {
|
|
1812
1816
|
ref: ref,
|
|
1817
|
+
multiline: multiline,
|
|
1813
1818
|
nativeID: id,
|
|
1814
1819
|
editable: !disabled,
|
|
1815
1820
|
keyboardType: keyboardType,
|
|
@@ -1828,7 +1833,8 @@ const InputText = /*#__PURE__*/react.forwardRef(({
|
|
|
1828
1833
|
onBlur: e => {
|
|
1829
1834
|
setIsFocused(false);
|
|
1830
1835
|
if (onBlur) onBlur(e);
|
|
1831
|
-
}
|
|
1836
|
+
},
|
|
1837
|
+
onSubmitEditing: multiline ? () => null : onSubmitEditing
|
|
1832
1838
|
}), right ? /*#__PURE__*/jsxRuntime.jsx(RightInputContainer, {
|
|
1833
1839
|
children: right
|
|
1834
1840
|
}) : null]
|