@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
|
@@ -1054,10 +1054,10 @@ const autocomplete = {
|
|
|
1054
1054
|
};
|
|
1055
1055
|
|
|
1056
1056
|
const checkbox = {
|
|
1057
|
-
borderWidth:
|
|
1058
|
-
borderRadius:
|
|
1059
|
-
height:
|
|
1060
|
-
width:
|
|
1057
|
+
borderWidth: 1,
|
|
1058
|
+
borderRadius: 4,
|
|
1059
|
+
height: 24,
|
|
1060
|
+
width: 24,
|
|
1061
1061
|
iconSize: 14,
|
|
1062
1062
|
markColor: colors.uiBackgroundLight,
|
|
1063
1063
|
textSpacing: 10,
|
|
@@ -2002,6 +2002,7 @@ const highlight = {
|
|
|
2002
2002
|
}
|
|
2003
2003
|
},
|
|
2004
2004
|
padding: {
|
|
2005
|
+
small: spacing * 2,
|
|
2005
2006
|
medium: spacing * 4,
|
|
2006
2007
|
large: spacing * 6
|
|
2007
2008
|
}
|
|
@@ -8792,6 +8793,9 @@ const useNativeAnimation$1 = ({
|
|
|
8792
8793
|
};
|
|
8793
8794
|
};
|
|
8794
8795
|
|
|
8796
|
+
const getTitleTypographyType = size => {
|
|
8797
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8798
|
+
};
|
|
8795
8799
|
function Highlight({
|
|
8796
8800
|
variant = 'primary',
|
|
8797
8801
|
canCollapse = false,
|
|
@@ -8806,6 +8810,11 @@ function Highlight({
|
|
|
8806
8810
|
const [contentHeight, setContentHeight] = useState(0);
|
|
8807
8811
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
8808
8812
|
const highlightStyle = {
|
|
8813
|
+
small: {
|
|
8814
|
+
marginBottom: 'kitt.1',
|
|
8815
|
+
spaceBetween: 'kitt.2',
|
|
8816
|
+
contentMarginY: 8
|
|
8817
|
+
},
|
|
8809
8818
|
medium: {
|
|
8810
8819
|
marginBottom: 'kitt.1',
|
|
8811
8820
|
spaceBetween: 'kitt.2',
|
|
@@ -8853,8 +8862,8 @@ function Highlight({
|
|
|
8853
8862
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8854
8863
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8855
8864
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8856
|
-
variant: "
|
|
8857
|
-
base:
|
|
8865
|
+
variant: "semibold",
|
|
8866
|
+
base: getTitleTypographyType(size),
|
|
8858
8867
|
ellipsizeMode: "clip",
|
|
8859
8868
|
children: title
|
|
8860
8869
|
})
|
|
@@ -8889,8 +8898,8 @@ function Highlight({
|
|
|
8889
8898
|
flexShrink: 1,
|
|
8890
8899
|
width: "100%",
|
|
8891
8900
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8892
|
-
variant: "
|
|
8893
|
-
base:
|
|
8901
|
+
variant: "semibold",
|
|
8902
|
+
base: getTitleTypographyType(size),
|
|
8894
8903
|
ellipsizeMode: "clip",
|
|
8895
8904
|
children: title
|
|
8896
8905
|
})
|