@ornikar/kitt-universal 32.4.0 → 32.5.1-canary.69cd09143dd992620decf0a9f846b68e573511e3.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 +18 -0
- package/dist/definitions/Highlight/Highlight.d.ts +1 -1
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
- package/dist/definitions/Picker/Picker.web.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/definitions/themes/late-ocean/picker.d.ts +4 -0
- package/dist/definitions/themes/late-ocean/picker.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +21 -8
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +21 -8
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +21 -8
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.css +22 -4
- package/dist/index-node-22.17.cjs.web.js +96 -71
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +21 -8
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.css +22 -4
- package/dist/index-node-22.17.es.web.mjs +96 -71
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +21 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +91 -68
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +9 -4
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +9 -4
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +9 -4
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +9 -4
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +9 -4
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +9 -4
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +9 -4
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +9 -4
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/styles.css +22 -4
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1078,10 +1078,10 @@ const autocomplete = {
|
|
|
1078
1078
|
};
|
|
1079
1079
|
|
|
1080
1080
|
const checkbox = {
|
|
1081
|
-
borderWidth:
|
|
1082
|
-
borderRadius:
|
|
1083
|
-
height:
|
|
1084
|
-
width:
|
|
1081
|
+
borderWidth: 1,
|
|
1082
|
+
borderRadius: 4,
|
|
1083
|
+
height: 24,
|
|
1084
|
+
width: 24,
|
|
1085
1085
|
iconSize: 14,
|
|
1086
1086
|
markColor: colors.uiBackgroundLight,
|
|
1087
1087
|
textSpacing: 10,
|
|
@@ -2026,6 +2026,7 @@ const highlight = {
|
|
|
2026
2026
|
}
|
|
2027
2027
|
},
|
|
2028
2028
|
padding: {
|
|
2029
|
+
small: spacing * 2,
|
|
2029
2030
|
medium: spacing * 4,
|
|
2030
2031
|
large: spacing * 6
|
|
2031
2032
|
}
|
|
@@ -2305,6 +2306,10 @@ const typography = {
|
|
|
2305
2306
|
|
|
2306
2307
|
const picker = {
|
|
2307
2308
|
maxWidthFixed: 320,
|
|
2309
|
+
animation: {
|
|
2310
|
+
duration: 300,
|
|
2311
|
+
timingFunction: 'ease-in-out'
|
|
2312
|
+
},
|
|
2308
2313
|
ios: {
|
|
2309
2314
|
default: {
|
|
2310
2315
|
fontFamily: typography.types.bodies.fontFamily.native.regular,
|
|
@@ -8816,6 +8821,9 @@ const useNativeAnimation$1 = ({
|
|
|
8816
8821
|
};
|
|
8817
8822
|
};
|
|
8818
8823
|
|
|
8824
|
+
const getTitleTypographyType = size => {
|
|
8825
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8826
|
+
};
|
|
8819
8827
|
function Highlight({
|
|
8820
8828
|
variant = 'primary',
|
|
8821
8829
|
canCollapse = false,
|
|
@@ -8830,6 +8838,11 @@ function Highlight({
|
|
|
8830
8838
|
const [contentHeight, setContentHeight] = React.useState(0);
|
|
8831
8839
|
const [isInitialRender, setIsInitialRender] = React.useState(true);
|
|
8832
8840
|
const highlightStyle = {
|
|
8841
|
+
small: {
|
|
8842
|
+
marginBottom: 'kitt.1',
|
|
8843
|
+
spaceBetween: 'kitt.2',
|
|
8844
|
+
contentMarginY: 8
|
|
8845
|
+
},
|
|
8833
8846
|
medium: {
|
|
8834
8847
|
marginBottom: 'kitt.1',
|
|
8835
8848
|
spaceBetween: 'kitt.2',
|
|
@@ -8877,8 +8890,8 @@ function Highlight({
|
|
|
8877
8890
|
children: [title && /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8878
8891
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8879
8892
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8880
|
-
variant: "
|
|
8881
|
-
base:
|
|
8893
|
+
variant: "semibold",
|
|
8894
|
+
base: getTitleTypographyType(size),
|
|
8882
8895
|
ellipsizeMode: "clip",
|
|
8883
8896
|
children: title
|
|
8884
8897
|
})
|
|
@@ -8913,8 +8926,8 @@ function Highlight({
|
|
|
8913
8926
|
flexShrink: 1,
|
|
8914
8927
|
width: "100%",
|
|
8915
8928
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8916
|
-
variant: "
|
|
8917
|
-
base:
|
|
8929
|
+
variant: "semibold",
|
|
8930
|
+
base: getTitleTypographyType(size),
|
|
8918
8931
|
ellipsizeMode: "clip",
|
|
8919
8932
|
children: title
|
|
8920
8933
|
})
|