@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
|
@@ -1057,10 +1057,10 @@ const autocomplete = {
|
|
|
1057
1057
|
};
|
|
1058
1058
|
|
|
1059
1059
|
const checkbox = {
|
|
1060
|
-
borderWidth:
|
|
1061
|
-
borderRadius:
|
|
1062
|
-
height:
|
|
1063
|
-
width:
|
|
1060
|
+
borderWidth: 1,
|
|
1061
|
+
borderRadius: 4,
|
|
1062
|
+
height: 24,
|
|
1063
|
+
width: 24,
|
|
1064
1064
|
iconSize: 14,
|
|
1065
1065
|
markColor: colors.uiBackgroundLight,
|
|
1066
1066
|
textSpacing: 10,
|
|
@@ -2005,6 +2005,7 @@ const highlight = {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
},
|
|
2007
2007
|
padding: {
|
|
2008
|
+
small: spacing * 2,
|
|
2008
2009
|
medium: spacing * 4,
|
|
2009
2010
|
large: spacing * 6
|
|
2010
2011
|
}
|
|
@@ -2284,6 +2285,10 @@ const typography = {
|
|
|
2284
2285
|
|
|
2285
2286
|
const picker = {
|
|
2286
2287
|
maxWidthFixed: 320,
|
|
2288
|
+
animation: {
|
|
2289
|
+
duration: 300,
|
|
2290
|
+
timingFunction: 'ease-in-out'
|
|
2291
|
+
},
|
|
2287
2292
|
ios: {
|
|
2288
2293
|
default: _objectSpread(_objectSpread({
|
|
2289
2294
|
fontFamily: typography.types.bodies.fontFamily.native.regular
|
|
@@ -8811,6 +8816,9 @@ const useNativeAnimation$1 = ({
|
|
|
8811
8816
|
};
|
|
8812
8817
|
};
|
|
8813
8818
|
|
|
8819
|
+
const getTitleTypographyType = size => {
|
|
8820
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8821
|
+
};
|
|
8814
8822
|
function Highlight({
|
|
8815
8823
|
variant = 'primary',
|
|
8816
8824
|
canCollapse = false,
|
|
@@ -8825,6 +8833,11 @@ function Highlight({
|
|
|
8825
8833
|
const [contentHeight, setContentHeight] = useState(0);
|
|
8826
8834
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
8827
8835
|
const highlightStyle = {
|
|
8836
|
+
small: {
|
|
8837
|
+
marginBottom: 'kitt.1',
|
|
8838
|
+
spaceBetween: 'kitt.2',
|
|
8839
|
+
contentMarginY: 8
|
|
8840
|
+
},
|
|
8828
8841
|
medium: {
|
|
8829
8842
|
marginBottom: 'kitt.1',
|
|
8830
8843
|
spaceBetween: 'kitt.2',
|
|
@@ -8872,8 +8885,8 @@ function Highlight({
|
|
|
8872
8885
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8873
8886
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8874
8887
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8875
|
-
variant: "
|
|
8876
|
-
base:
|
|
8888
|
+
variant: "semibold",
|
|
8889
|
+
base: getTitleTypographyType(size),
|
|
8877
8890
|
ellipsizeMode: "clip",
|
|
8878
8891
|
children: title
|
|
8879
8892
|
})
|
|
@@ -8908,8 +8921,8 @@ function Highlight({
|
|
|
8908
8921
|
flexShrink: 1,
|
|
8909
8922
|
width: "100%",
|
|
8910
8923
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8911
|
-
variant: "
|
|
8912
|
-
base:
|
|
8924
|
+
variant: "semibold",
|
|
8925
|
+
base: getTitleTypographyType(size),
|
|
8913
8926
|
ellipsizeMode: "clip",
|
|
8914
8927
|
children: title
|
|
8915
8928
|
})
|