@ornikar/kitt-universal 32.4.0 → 32.5.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/CHANGELOG.md +10 -0
- package/dist/definitions/Highlight/Highlight.d.ts +1 -1
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/highlight.d.ts +1 -0
- package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +17 -8
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +17 -8
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +17 -8
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +17 -8
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +17 -8
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +17 -8
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +17 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +17 -8
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +5 -4
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +5 -4
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +5 -4
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +5 -4
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +5 -4
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +5 -4
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +5 -4
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +5 -4
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1061,10 +1061,10 @@ const autocomplete = {
|
|
|
1061
1061
|
};
|
|
1062
1062
|
|
|
1063
1063
|
const checkbox = {
|
|
1064
|
-
borderWidth:
|
|
1065
|
-
borderRadius:
|
|
1066
|
-
height:
|
|
1067
|
-
width:
|
|
1064
|
+
borderWidth: 1,
|
|
1065
|
+
borderRadius: 4,
|
|
1066
|
+
height: 24,
|
|
1067
|
+
width: 24,
|
|
1068
1068
|
iconSize: 14,
|
|
1069
1069
|
markColor: colors.uiBackgroundLight,
|
|
1070
1070
|
textSpacing: 10,
|
|
@@ -2009,6 +2009,7 @@ const highlight = {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
},
|
|
2011
2011
|
padding: {
|
|
2012
|
+
small: spacing * 2,
|
|
2012
2013
|
medium: spacing * 4,
|
|
2013
2014
|
large: spacing * 6
|
|
2014
2015
|
}
|
|
@@ -8036,6 +8037,9 @@ function useNativeAnimation$1() {
|
|
|
8036
8037
|
};
|
|
8037
8038
|
}
|
|
8038
8039
|
|
|
8040
|
+
const getTitleTypographyType = size => {
|
|
8041
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8042
|
+
};
|
|
8039
8043
|
function Highlight({
|
|
8040
8044
|
variant = 'primary',
|
|
8041
8045
|
canCollapse = false,
|
|
@@ -8050,6 +8054,11 @@ function Highlight({
|
|
|
8050
8054
|
const [contentHeight, setContentHeight] = react.useState(0);
|
|
8051
8055
|
const [isInitialRender, setIsInitialRender] = react.useState(true);
|
|
8052
8056
|
const highlightStyle = {
|
|
8057
|
+
small: {
|
|
8058
|
+
marginBottom: 'kitt.1',
|
|
8059
|
+
spaceBetween: 'kitt.2',
|
|
8060
|
+
contentMarginY: 8
|
|
8061
|
+
},
|
|
8053
8062
|
medium: {
|
|
8054
8063
|
marginBottom: 'kitt.1',
|
|
8055
8064
|
spaceBetween: 'kitt.2',
|
|
@@ -8092,8 +8101,8 @@ function Highlight({
|
|
|
8092
8101
|
children: [title && /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8093
8102
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8094
8103
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8095
|
-
variant: "
|
|
8096
|
-
base:
|
|
8104
|
+
variant: "semibold",
|
|
8105
|
+
base: getTitleTypographyType(size),
|
|
8097
8106
|
ellipsizeMode: "clip",
|
|
8098
8107
|
children: title
|
|
8099
8108
|
})
|
|
@@ -8128,8 +8137,8 @@ function Highlight({
|
|
|
8128
8137
|
flexShrink: 1,
|
|
8129
8138
|
width: "100%",
|
|
8130
8139
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8131
|
-
variant: "
|
|
8132
|
-
base:
|
|
8140
|
+
variant: "semibold",
|
|
8141
|
+
base: getTitleTypographyType(size),
|
|
8133
8142
|
ellipsizeMode: "clip",
|
|
8134
8143
|
children: title
|
|
8135
8144
|
})
|