@ornikar/kitt-universal 32.0.1 → 32.0.2-canary.5684f2ea0c253c607f3c2621d6f37a8df3f39549.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 +11 -0
- package/dist/definitions/Highlight/Highlight.d.ts +1 -1
- package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +15 -3
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +15 -3
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/colors.d.ts +11 -3
- package/dist/definitions/themes/late-ocean/colors.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/palettes/deepPurpleColorPalette.d.ts +5 -0
- package/dist/definitions/themes/palettes/deepPurpleColorPalette.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +36 -10
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +36 -10
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +36 -10
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +36 -10
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +36 -10
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +36 -10
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +36 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +36 -10
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +24 -6
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +24 -6
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +24 -6
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +24 -6
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +24 -6
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +24 -6
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +24 -6
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +24 -6
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -45,6 +45,9 @@ const hex2rgba = (hex, alpha = 1) => {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
const createColorScale = colorScale => colorScale;
|
|
48
|
+
|
|
49
|
+
// WARNING
|
|
50
|
+
// If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
|
|
48
51
|
const colorScales = {
|
|
49
52
|
deepPurple: createColorScale({
|
|
50
53
|
5: '#936C93',
|
|
@@ -109,9 +112,15 @@ const colorScales = {
|
|
|
109
112
|
red: createColorScale({
|
|
110
113
|
1: '#FDE4E3',
|
|
111
114
|
2: '#FAB8B8',
|
|
112
|
-
6: '#
|
|
115
|
+
6: '#E2483D',
|
|
113
116
|
7: '#BD100F'
|
|
114
117
|
}),
|
|
118
|
+
mauve: createColorScale({
|
|
119
|
+
1: '#F8E7FF',
|
|
120
|
+
2: '#F1D0FB',
|
|
121
|
+
3: '#E4A4F9',
|
|
122
|
+
4: '#D283EC'
|
|
123
|
+
}),
|
|
115
124
|
'beige-alpha': createColorScale({
|
|
116
125
|
'25': '#C1B59F40',
|
|
117
126
|
'40': '#C1B59F66',
|
|
@@ -220,8 +229,14 @@ const colors = {
|
|
|
220
229
|
}
|
|
221
230
|
},
|
|
222
231
|
highlight: {
|
|
223
|
-
|
|
224
|
-
|
|
232
|
+
mid: {
|
|
233
|
+
default: deepPurpleColorPalette['mauve.1'],
|
|
234
|
+
pressed: deepPurpleColorPalette['mauve.2']
|
|
235
|
+
},
|
|
236
|
+
hi: {
|
|
237
|
+
default: deepPurpleColorPalette['mauve.3'],
|
|
238
|
+
pressed: deepPurpleColorPalette['mauve.4']
|
|
239
|
+
}
|
|
225
240
|
},
|
|
226
241
|
info: {
|
|
227
242
|
hi: deepPurpleColorPalette['blue.6'],
|
|
@@ -249,17 +264,19 @@ const colors = {
|
|
|
249
264
|
base: {
|
|
250
265
|
hi: deepPurpleColorPalette['grey.9'],
|
|
251
266
|
mid: deepPurpleColorPalette['beige.3'],
|
|
267
|
+
low: deepPurpleColorPalette['beige.2'],
|
|
252
268
|
onContrasted: {
|
|
253
269
|
hi: deepPurpleColorPalette['grey.0'],
|
|
254
270
|
mid: deepPurpleColorPalette['white-alpha.20']
|
|
255
|
-
}
|
|
271
|
+
},
|
|
272
|
+
accent: deepPurpleColorPalette['deepPurple.8']
|
|
256
273
|
},
|
|
257
|
-
accent: deepPurpleColorPalette['deepPurple.8'],
|
|
258
274
|
info: deepPurpleColorPalette['blue.6'],
|
|
259
275
|
success: deepPurpleColorPalette['green.6'],
|
|
260
276
|
warning: deepPurpleColorPalette['yellow.6'],
|
|
261
277
|
danger: deepPurpleColorPalette['red.6'],
|
|
262
|
-
disabled: deepPurpleColorPalette['grey.2']
|
|
278
|
+
disabled: deepPurpleColorPalette['grey.2'],
|
|
279
|
+
highlight: deepPurpleColorPalette['mauve.3']
|
|
263
280
|
}
|
|
264
281
|
}
|
|
265
282
|
};
|
|
@@ -1992,6 +2009,7 @@ const highlight = {
|
|
|
1992
2009
|
}
|
|
1993
2010
|
},
|
|
1994
2011
|
padding: {
|
|
2012
|
+
small: spacing * 2,
|
|
1995
2013
|
medium: spacing * 4,
|
|
1996
2014
|
large: spacing * 6
|
|
1997
2015
|
}
|
|
@@ -8773,6 +8791,9 @@ const useNativeAnimation$1 = ({
|
|
|
8773
8791
|
};
|
|
8774
8792
|
};
|
|
8775
8793
|
|
|
8794
|
+
const getTitleTypographyType = size => {
|
|
8795
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8796
|
+
};
|
|
8776
8797
|
function Highlight({
|
|
8777
8798
|
variant = 'primary',
|
|
8778
8799
|
canCollapse = false,
|
|
@@ -8787,6 +8808,11 @@ function Highlight({
|
|
|
8787
8808
|
const [contentHeight, setContentHeight] = useState(0);
|
|
8788
8809
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
8789
8810
|
const highlightStyle = {
|
|
8811
|
+
small: {
|
|
8812
|
+
marginBottom: 'kitt.1',
|
|
8813
|
+
spaceBetween: 'kitt.2',
|
|
8814
|
+
contentMarginY: 8
|
|
8815
|
+
},
|
|
8790
8816
|
medium: {
|
|
8791
8817
|
marginBottom: 'kitt.1',
|
|
8792
8818
|
spaceBetween: 'kitt.2',
|
|
@@ -8834,8 +8860,8 @@ function Highlight({
|
|
|
8834
8860
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8835
8861
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8836
8862
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8837
|
-
variant: "
|
|
8838
|
-
base:
|
|
8863
|
+
variant: "semibold",
|
|
8864
|
+
base: getTitleTypographyType(size),
|
|
8839
8865
|
ellipsizeMode: "clip",
|
|
8840
8866
|
children: title
|
|
8841
8867
|
})
|
|
@@ -8870,8 +8896,8 @@ function Highlight({
|
|
|
8870
8896
|
flexShrink: 1,
|
|
8871
8897
|
width: "100%",
|
|
8872
8898
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8873
|
-
variant: "
|
|
8874
|
-
base:
|
|
8899
|
+
variant: "semibold",
|
|
8900
|
+
base: getTitleTypographyType(size),
|
|
8875
8901
|
ellipsizeMode: "clip",
|
|
8876
8902
|
children: title
|
|
8877
8903
|
})
|