@ornikar/kitt-universal 32.0.0 → 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 +20 -0
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts +1 -1
- package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts.map +1 -1
- 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 +39 -11
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +39 -11
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +39 -11
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +39 -11
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +39 -11
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +39 -11
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +39 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +39 -11
- 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
|
}
|
|
@@ -5037,7 +5055,8 @@ function DialogModalAnimation({
|
|
|
5037
5055
|
onEntered,
|
|
5038
5056
|
onExit,
|
|
5039
5057
|
onExited,
|
|
5040
|
-
onClose
|
|
5058
|
+
onClose,
|
|
5059
|
+
testID
|
|
5041
5060
|
}) {
|
|
5042
5061
|
const [isModalVisible, setIsModalVisible] = useState(visible);
|
|
5043
5062
|
const [isContentVisible, setIsContentVisible] = useState(false);
|
|
@@ -5071,6 +5090,7 @@ function DialogModalAnimation({
|
|
|
5071
5090
|
flexGrow: 1,
|
|
5072
5091
|
justifyContent: "center",
|
|
5073
5092
|
alignItems: "center",
|
|
5093
|
+
testID: testID,
|
|
5074
5094
|
children: [/*#__PURE__*/jsx(NativeOpacityAnimation, {
|
|
5075
5095
|
visible: isContentVisible,
|
|
5076
5096
|
onExited: handleAnimationExited,
|
|
@@ -7977,6 +7997,9 @@ function useNativeAnimation$1() {
|
|
|
7977
7997
|
};
|
|
7978
7998
|
}
|
|
7979
7999
|
|
|
8000
|
+
const getTitleTypographyType = size => {
|
|
8001
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8002
|
+
};
|
|
7980
8003
|
function Highlight({
|
|
7981
8004
|
variant = 'primary',
|
|
7982
8005
|
canCollapse = false,
|
|
@@ -7991,6 +8014,11 @@ function Highlight({
|
|
|
7991
8014
|
const [contentHeight, setContentHeight] = useState(0);
|
|
7992
8015
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
7993
8016
|
const highlightStyle = {
|
|
8017
|
+
small: {
|
|
8018
|
+
marginBottom: 'kitt.1',
|
|
8019
|
+
spaceBetween: 'kitt.2',
|
|
8020
|
+
contentMarginY: 8
|
|
8021
|
+
},
|
|
7994
8022
|
medium: {
|
|
7995
8023
|
marginBottom: 'kitt.1',
|
|
7996
8024
|
spaceBetween: 'kitt.2',
|
|
@@ -8033,8 +8061,8 @@ function Highlight({
|
|
|
8033
8061
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8034
8062
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8035
8063
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8036
|
-
variant: "
|
|
8037
|
-
base:
|
|
8064
|
+
variant: "semibold",
|
|
8065
|
+
base: getTitleTypographyType(size),
|
|
8038
8066
|
ellipsizeMode: "clip",
|
|
8039
8067
|
children: title
|
|
8040
8068
|
})
|
|
@@ -8069,8 +8097,8 @@ function Highlight({
|
|
|
8069
8097
|
flexShrink: 1,
|
|
8070
8098
|
width: "100%",
|
|
8071
8099
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8072
|
-
variant: "
|
|
8073
|
-
base:
|
|
8100
|
+
variant: "semibold",
|
|
8101
|
+
base: getTitleTypographyType(size),
|
|
8074
8102
|
ellipsizeMode: "clip",
|
|
8075
8103
|
children: title
|
|
8076
8104
|
})
|