@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
|
@@ -41,6 +41,9 @@ const hex2rgba = (hex, alpha = 1) => {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
const createColorScale = colorScale => colorScale;
|
|
44
|
+
|
|
45
|
+
// WARNING
|
|
46
|
+
// If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
|
|
44
47
|
const colorScales = {
|
|
45
48
|
deepPurple: createColorScale({
|
|
46
49
|
5: '#936C93',
|
|
@@ -105,9 +108,15 @@ const colorScales = {
|
|
|
105
108
|
red: createColorScale({
|
|
106
109
|
1: '#FDE4E3',
|
|
107
110
|
2: '#FAB8B8',
|
|
108
|
-
6: '#
|
|
111
|
+
6: '#E2483D',
|
|
109
112
|
7: '#BD100F'
|
|
110
113
|
}),
|
|
114
|
+
mauve: createColorScale({
|
|
115
|
+
1: '#F8E7FF',
|
|
116
|
+
2: '#F1D0FB',
|
|
117
|
+
3: '#E4A4F9',
|
|
118
|
+
4: '#D283EC'
|
|
119
|
+
}),
|
|
111
120
|
'beige-alpha': createColorScale({
|
|
112
121
|
'25': '#C1B59F40',
|
|
113
122
|
'40': '#C1B59F66',
|
|
@@ -217,8 +226,14 @@ const colors = {
|
|
|
217
226
|
}
|
|
218
227
|
},
|
|
219
228
|
highlight: {
|
|
220
|
-
|
|
221
|
-
|
|
229
|
+
mid: {
|
|
230
|
+
default: deepPurpleColorPalette['mauve.1'],
|
|
231
|
+
pressed: deepPurpleColorPalette['mauve.2']
|
|
232
|
+
},
|
|
233
|
+
hi: {
|
|
234
|
+
default: deepPurpleColorPalette['mauve.3'],
|
|
235
|
+
pressed: deepPurpleColorPalette['mauve.4']
|
|
236
|
+
}
|
|
222
237
|
},
|
|
223
238
|
info: {
|
|
224
239
|
hi: deepPurpleColorPalette['blue.6'],
|
|
@@ -246,17 +261,19 @@ const colors = {
|
|
|
246
261
|
base: {
|
|
247
262
|
hi: deepPurpleColorPalette['grey.9'],
|
|
248
263
|
mid: deepPurpleColorPalette['beige.3'],
|
|
264
|
+
low: deepPurpleColorPalette['beige.2'],
|
|
249
265
|
onContrasted: {
|
|
250
266
|
hi: deepPurpleColorPalette['grey.0'],
|
|
251
267
|
mid: deepPurpleColorPalette['white-alpha.20']
|
|
252
|
-
}
|
|
268
|
+
},
|
|
269
|
+
accent: deepPurpleColorPalette['deepPurple.8']
|
|
253
270
|
},
|
|
254
|
-
accent: deepPurpleColorPalette['deepPurple.8'],
|
|
255
271
|
info: deepPurpleColorPalette['blue.6'],
|
|
256
272
|
success: deepPurpleColorPalette['green.6'],
|
|
257
273
|
warning: deepPurpleColorPalette['yellow.6'],
|
|
258
274
|
danger: deepPurpleColorPalette['red.6'],
|
|
259
|
-
disabled: deepPurpleColorPalette['grey.2']
|
|
275
|
+
disabled: deepPurpleColorPalette['grey.2'],
|
|
276
|
+
highlight: deepPurpleColorPalette['mauve.3']
|
|
260
277
|
}
|
|
261
278
|
}
|
|
262
279
|
};
|
|
@@ -1989,6 +2006,7 @@ const highlight = {
|
|
|
1989
2006
|
}
|
|
1990
2007
|
},
|
|
1991
2008
|
padding: {
|
|
2009
|
+
small: spacing * 2,
|
|
1992
2010
|
medium: spacing * 4,
|
|
1993
2011
|
large: spacing * 6
|
|
1994
2012
|
}
|
|
@@ -8751,6 +8769,9 @@ const useNativeAnimation$1 = ({
|
|
|
8751
8769
|
};
|
|
8752
8770
|
};
|
|
8753
8771
|
|
|
8772
|
+
const getTitleTypographyType = size => {
|
|
8773
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8774
|
+
};
|
|
8754
8775
|
function Highlight({
|
|
8755
8776
|
variant = 'primary',
|
|
8756
8777
|
canCollapse = false,
|
|
@@ -8765,6 +8786,11 @@ function Highlight({
|
|
|
8765
8786
|
const [contentHeight, setContentHeight] = useState(0);
|
|
8766
8787
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
8767
8788
|
const highlightStyle = {
|
|
8789
|
+
small: {
|
|
8790
|
+
marginBottom: 'kitt.1',
|
|
8791
|
+
spaceBetween: 'kitt.2',
|
|
8792
|
+
contentMarginY: 8
|
|
8793
|
+
},
|
|
8768
8794
|
medium: {
|
|
8769
8795
|
marginBottom: 'kitt.1',
|
|
8770
8796
|
spaceBetween: 'kitt.2',
|
|
@@ -8812,8 +8838,8 @@ function Highlight({
|
|
|
8812
8838
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8813
8839
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8814
8840
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8815
|
-
variant: "
|
|
8816
|
-
base:
|
|
8841
|
+
variant: "semibold",
|
|
8842
|
+
base: getTitleTypographyType(size),
|
|
8817
8843
|
ellipsizeMode: "clip",
|
|
8818
8844
|
children: title
|
|
8819
8845
|
})
|
|
@@ -8848,8 +8874,8 @@ function Highlight({
|
|
|
8848
8874
|
flexShrink: 1,
|
|
8849
8875
|
width: "100%",
|
|
8850
8876
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8851
|
-
variant: "
|
|
8852
|
-
base:
|
|
8877
|
+
variant: "semibold",
|
|
8878
|
+
base: getTitleTypographyType(size),
|
|
8853
8879
|
ellipsizeMode: "clip",
|
|
8854
8880
|
children: title
|
|
8855
8881
|
})
|