@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
|
@@ -1052,10 +1052,10 @@ const autocomplete = {
|
|
|
1052
1052
|
};
|
|
1053
1053
|
|
|
1054
1054
|
const checkbox = {
|
|
1055
|
-
borderWidth:
|
|
1056
|
-
borderRadius:
|
|
1057
|
-
height:
|
|
1058
|
-
width:
|
|
1055
|
+
borderWidth: 1,
|
|
1056
|
+
borderRadius: 4,
|
|
1057
|
+
height: 24,
|
|
1058
|
+
width: 24,
|
|
1059
1059
|
iconSize: 14,
|
|
1060
1060
|
markColor: colors.uiBackgroundLight,
|
|
1061
1061
|
textSpacing: 10,
|
|
@@ -2000,6 +2000,7 @@ const highlight = {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
},
|
|
2002
2002
|
padding: {
|
|
2003
|
+
small: spacing * 2,
|
|
2003
2004
|
medium: spacing * 4,
|
|
2004
2005
|
large: spacing * 6
|
|
2005
2006
|
}
|
|
@@ -8027,6 +8028,9 @@ function useNativeAnimation$1() {
|
|
|
8027
8028
|
};
|
|
8028
8029
|
}
|
|
8029
8030
|
|
|
8031
|
+
const getTitleTypographyType = size => {
|
|
8032
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8033
|
+
};
|
|
8030
8034
|
function Highlight({
|
|
8031
8035
|
variant = 'primary',
|
|
8032
8036
|
canCollapse = false,
|
|
@@ -8041,6 +8045,11 @@ function Highlight({
|
|
|
8041
8045
|
const [contentHeight, setContentHeight] = useState(0);
|
|
8042
8046
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
8043
8047
|
const highlightStyle = {
|
|
8048
|
+
small: {
|
|
8049
|
+
marginBottom: 'kitt.1',
|
|
8050
|
+
spaceBetween: 'kitt.2',
|
|
8051
|
+
contentMarginY: 8
|
|
8052
|
+
},
|
|
8044
8053
|
medium: {
|
|
8045
8054
|
marginBottom: 'kitt.1',
|
|
8046
8055
|
spaceBetween: 'kitt.2',
|
|
@@ -8083,8 +8092,8 @@ function Highlight({
|
|
|
8083
8092
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8084
8093
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8085
8094
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8086
|
-
variant: "
|
|
8087
|
-
base:
|
|
8095
|
+
variant: "semibold",
|
|
8096
|
+
base: getTitleTypographyType(size),
|
|
8088
8097
|
ellipsizeMode: "clip",
|
|
8089
8098
|
children: title
|
|
8090
8099
|
})
|
|
@@ -8119,8 +8128,8 @@ function Highlight({
|
|
|
8119
8128
|
flexShrink: 1,
|
|
8120
8129
|
width: "100%",
|
|
8121
8130
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8122
|
-
variant: "
|
|
8123
|
-
base:
|
|
8131
|
+
variant: "semibold",
|
|
8132
|
+
base: getTitleTypographyType(size),
|
|
8124
8133
|
ellipsizeMode: "clip",
|
|
8125
8134
|
children: title
|
|
8126
8135
|
})
|