@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [32.5.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@32.4.0...@ornikar/kitt-universal@32.5.0) (2025-12-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **kitt-universal/Checkbox:** update Checkbox style - OSE-21989 ([#2806](https://github.com/ornikar/kitt/issues/2806)) ([6166725](https://github.com/ornikar/kitt/commit/6166725a29b1d22c9744fe6d6751b16e6ca32813))
|
|
12
|
+
* **kitt-universal/Highlight:** add small size to Highlight - OSE-21970 ([#2803](https://github.com/ornikar/kitt/issues/2803)) ([e94181c](https://github.com/ornikar/kitt/commit/e94181ccce08e8e0f68bd64b690c27559c9afbd6))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [32.4.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@32.3.0...@ornikar/kitt-universal@32.4.0) (2025-12-15)
|
|
7
17
|
|
|
8
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
type DeprecatedHighlightVariant = 'regular';
|
|
3
|
-
export type HighlightSize = 'medium' | 'large';
|
|
3
|
+
export type HighlightSize = 'small' | 'medium' | 'large';
|
|
4
4
|
export type HighlightVariant = 'primary' | 'secondary' | 'dark' | DeprecatedHighlightVariant | 'ghost' | 'success' | 'warning';
|
|
5
5
|
export interface HighlightProps {
|
|
6
6
|
variant?: HighlightVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Highlight.d.ts","sourceRoot":"","sources":["../../../src/Highlight/Highlight.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Highlight.d.ts","sourceRoot":"","sources":["../../../src/Highlight/Highlight.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAajD,KAAK,0BAA0B,GAAG,SAAS,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACzD,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,WAAW,GACX,MAAM,GACN,0BAA0B,GAC1B,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAMD,wBAAgB,SAAS,CAAC,EACxB,OAAmB,EACnB,WAAmB,EACnB,kBAAyB,EACzB,KAAK,EACL,IAAW,EACX,IAAe,EACf,QAAQ,GACT,EAAE,cAAc,GAAG,SAAS,CAiH5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/highlight.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,KAAK,EAAE;QACL,eAAe,EAAE,MAAM,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AAO,EAAE,kBAAkB,CAAC;IAC5B,OAAO,EAAE,kBAAkB,CAAC;CAC7B;AAED,eAAO,MAAM,SAAS,EAAE,cAoEvB,CAAC"}
|
|
@@ -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
|
}
|
|
@@ -8811,6 +8812,9 @@ const useNativeAnimation$1 = ({
|
|
|
8811
8812
|
};
|
|
8812
8813
|
};
|
|
8813
8814
|
|
|
8815
|
+
const getTitleTypographyType = size => {
|
|
8816
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8817
|
+
};
|
|
8814
8818
|
function Highlight({
|
|
8815
8819
|
variant = 'primary',
|
|
8816
8820
|
canCollapse = false,
|
|
@@ -8825,6 +8829,11 @@ function Highlight({
|
|
|
8825
8829
|
const [contentHeight, setContentHeight] = useState(0);
|
|
8826
8830
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
8827
8831
|
const highlightStyle = {
|
|
8832
|
+
small: {
|
|
8833
|
+
marginBottom: 'kitt.1',
|
|
8834
|
+
spaceBetween: 'kitt.2',
|
|
8835
|
+
contentMarginY: 8
|
|
8836
|
+
},
|
|
8828
8837
|
medium: {
|
|
8829
8838
|
marginBottom: 'kitt.1',
|
|
8830
8839
|
spaceBetween: 'kitt.2',
|
|
@@ -8872,8 +8881,8 @@ function Highlight({
|
|
|
8872
8881
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8873
8882
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8874
8883
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8875
|
-
variant: "
|
|
8876
|
-
base:
|
|
8884
|
+
variant: "semibold",
|
|
8885
|
+
base: getTitleTypographyType(size),
|
|
8877
8886
|
ellipsizeMode: "clip",
|
|
8878
8887
|
children: title
|
|
8879
8888
|
})
|
|
@@ -8908,8 +8917,8 @@ function Highlight({
|
|
|
8908
8917
|
flexShrink: 1,
|
|
8909
8918
|
width: "100%",
|
|
8910
8919
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8911
|
-
variant: "
|
|
8912
|
-
base:
|
|
8920
|
+
variant: "semibold",
|
|
8921
|
+
base: getTitleTypographyType(size),
|
|
8913
8922
|
ellipsizeMode: "clip",
|
|
8914
8923
|
children: title
|
|
8915
8924
|
})
|