@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
|
@@ -39,6 +39,9 @@ const hex2rgba = (hex, alpha = 1) => {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
const createColorScale = colorScale => colorScale;
|
|
42
|
+
|
|
43
|
+
// WARNING
|
|
44
|
+
// If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
|
|
42
45
|
const colorScales = {
|
|
43
46
|
deepPurple: createColorScale({
|
|
44
47
|
5: '#936C93',
|
|
@@ -103,9 +106,15 @@ const colorScales = {
|
|
|
103
106
|
red: createColorScale({
|
|
104
107
|
1: '#FDE4E3',
|
|
105
108
|
2: '#FAB8B8',
|
|
106
|
-
6: '#
|
|
109
|
+
6: '#E2483D',
|
|
107
110
|
7: '#BD100F'
|
|
108
111
|
}),
|
|
112
|
+
mauve: createColorScale({
|
|
113
|
+
1: '#F8E7FF',
|
|
114
|
+
2: '#F1D0FB',
|
|
115
|
+
3: '#E4A4F9',
|
|
116
|
+
4: '#D283EC'
|
|
117
|
+
}),
|
|
109
118
|
'beige-alpha': createColorScale({
|
|
110
119
|
'25': '#C1B59F40',
|
|
111
120
|
'40': '#C1B59F66',
|
|
@@ -215,8 +224,14 @@ const colors = {
|
|
|
215
224
|
}
|
|
216
225
|
},
|
|
217
226
|
highlight: {
|
|
218
|
-
|
|
219
|
-
|
|
227
|
+
mid: {
|
|
228
|
+
default: deepPurpleColorPalette['mauve.1'],
|
|
229
|
+
pressed: deepPurpleColorPalette['mauve.2']
|
|
230
|
+
},
|
|
231
|
+
hi: {
|
|
232
|
+
default: deepPurpleColorPalette['mauve.3'],
|
|
233
|
+
pressed: deepPurpleColorPalette['mauve.4']
|
|
234
|
+
}
|
|
220
235
|
},
|
|
221
236
|
info: {
|
|
222
237
|
hi: deepPurpleColorPalette['blue.6'],
|
|
@@ -244,17 +259,19 @@ const colors = {
|
|
|
244
259
|
base: {
|
|
245
260
|
hi: deepPurpleColorPalette['grey.9'],
|
|
246
261
|
mid: deepPurpleColorPalette['beige.3'],
|
|
262
|
+
low: deepPurpleColorPalette['beige.2'],
|
|
247
263
|
onContrasted: {
|
|
248
264
|
hi: deepPurpleColorPalette['grey.0'],
|
|
249
265
|
mid: deepPurpleColorPalette['white-alpha.20']
|
|
250
|
-
}
|
|
266
|
+
},
|
|
267
|
+
accent: deepPurpleColorPalette['deepPurple.8']
|
|
251
268
|
},
|
|
252
|
-
accent: deepPurpleColorPalette['deepPurple.8'],
|
|
253
269
|
info: deepPurpleColorPalette['blue.6'],
|
|
254
270
|
success: deepPurpleColorPalette['green.6'],
|
|
255
271
|
warning: deepPurpleColorPalette['yellow.6'],
|
|
256
272
|
danger: deepPurpleColorPalette['red.6'],
|
|
257
|
-
disabled: deepPurpleColorPalette['grey.2']
|
|
273
|
+
disabled: deepPurpleColorPalette['grey.2'],
|
|
274
|
+
highlight: deepPurpleColorPalette['mauve.3']
|
|
258
275
|
}
|
|
259
276
|
}
|
|
260
277
|
};
|
|
@@ -1987,6 +2004,7 @@ const highlight = {
|
|
|
1987
2004
|
}
|
|
1988
2005
|
},
|
|
1989
2006
|
padding: {
|
|
2007
|
+
small: spacing * 2,
|
|
1990
2008
|
medium: spacing * 4,
|
|
1991
2009
|
large: spacing * 6
|
|
1992
2010
|
}
|
|
@@ -7979,6 +7997,9 @@ function useNativeAnimation$1() {
|
|
|
7979
7997
|
};
|
|
7980
7998
|
}
|
|
7981
7999
|
|
|
8000
|
+
const getTitleTypographyType = size => {
|
|
8001
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8002
|
+
};
|
|
7982
8003
|
function Highlight({
|
|
7983
8004
|
variant = 'primary',
|
|
7984
8005
|
canCollapse = false,
|
|
@@ -7993,6 +8014,11 @@ function Highlight({
|
|
|
7993
8014
|
const [contentHeight, setContentHeight] = useState(0);
|
|
7994
8015
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
7995
8016
|
const highlightStyle = {
|
|
8017
|
+
small: {
|
|
8018
|
+
marginBottom: 'kitt.1',
|
|
8019
|
+
spaceBetween: 'kitt.2',
|
|
8020
|
+
contentMarginY: 8
|
|
8021
|
+
},
|
|
7996
8022
|
medium: {
|
|
7997
8023
|
marginBottom: 'kitt.1',
|
|
7998
8024
|
spaceBetween: 'kitt.2',
|
|
@@ -8035,8 +8061,8 @@ function Highlight({
|
|
|
8035
8061
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8036
8062
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8037
8063
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8038
|
-
variant: "
|
|
8039
|
-
base:
|
|
8064
|
+
variant: "semibold",
|
|
8065
|
+
base: getTitleTypographyType(size),
|
|
8040
8066
|
ellipsizeMode: "clip",
|
|
8041
8067
|
children: title
|
|
8042
8068
|
})
|
|
@@ -8071,8 +8097,8 @@ function Highlight({
|
|
|
8071
8097
|
flexShrink: 1,
|
|
8072
8098
|
width: "100%",
|
|
8073
8099
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8074
|
-
variant: "
|
|
8075
|
-
base:
|
|
8100
|
+
variant: "semibold",
|
|
8101
|
+
base: getTitleTypographyType(size),
|
|
8076
8102
|
ellipsizeMode: "clip",
|
|
8077
8103
|
children: title
|
|
8078
8104
|
})
|