@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
|
@@ -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
|
}
|
|
@@ -5182,7 +5200,8 @@ function DialogModalAnimation({
|
|
|
5182
5200
|
onEntered,
|
|
5183
5201
|
onExit,
|
|
5184
5202
|
onExited,
|
|
5185
|
-
onClose
|
|
5203
|
+
onClose,
|
|
5204
|
+
testID
|
|
5186
5205
|
}) {
|
|
5187
5206
|
const [isModalVisible, setIsModalVisible] = useState(visible);
|
|
5188
5207
|
const [isContentVisible, setIsContentVisible] = useState(false);
|
|
@@ -5217,6 +5236,7 @@ function DialogModalAnimation({
|
|
|
5217
5236
|
flexGrow: 1,
|
|
5218
5237
|
justifyContent: "center",
|
|
5219
5238
|
alignItems: "center",
|
|
5239
|
+
testID: testID,
|
|
5220
5240
|
children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
|
|
5221
5241
|
visible: isContentVisible,
|
|
5222
5242
|
onExited: handleAnimationExited,
|
|
@@ -8749,6 +8769,9 @@ const useNativeAnimation$1 = ({
|
|
|
8749
8769
|
};
|
|
8750
8770
|
};
|
|
8751
8771
|
|
|
8772
|
+
const getTitleTypographyType = size => {
|
|
8773
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8774
|
+
};
|
|
8752
8775
|
function Highlight({
|
|
8753
8776
|
variant = 'primary',
|
|
8754
8777
|
canCollapse = false,
|
|
@@ -8763,6 +8786,11 @@ function Highlight({
|
|
|
8763
8786
|
const [contentHeight, setContentHeight] = useState(0);
|
|
8764
8787
|
const [isInitialRender, setIsInitialRender] = useState(true);
|
|
8765
8788
|
const highlightStyle = {
|
|
8789
|
+
small: {
|
|
8790
|
+
marginBottom: 'kitt.1',
|
|
8791
|
+
spaceBetween: 'kitt.2',
|
|
8792
|
+
contentMarginY: 8
|
|
8793
|
+
},
|
|
8766
8794
|
medium: {
|
|
8767
8795
|
marginBottom: 'kitt.1',
|
|
8768
8796
|
spaceBetween: 'kitt.2',
|
|
@@ -8810,8 +8838,8 @@ function Highlight({
|
|
|
8810
8838
|
children: [title && /*#__PURE__*/jsx(View, {
|
|
8811
8839
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8812
8840
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8813
|
-
variant: "
|
|
8814
|
-
base:
|
|
8841
|
+
variant: "semibold",
|
|
8842
|
+
base: getTitleTypographyType(size),
|
|
8815
8843
|
ellipsizeMode: "clip",
|
|
8816
8844
|
children: title
|
|
8817
8845
|
})
|
|
@@ -8846,8 +8874,8 @@ function Highlight({
|
|
|
8846
8874
|
flexShrink: 1,
|
|
8847
8875
|
width: "100%",
|
|
8848
8876
|
children: /*#__PURE__*/jsx(Typography.Text, {
|
|
8849
|
-
variant: "
|
|
8850
|
-
base:
|
|
8877
|
+
variant: "semibold",
|
|
8878
|
+
base: getTitleTypographyType(size),
|
|
8851
8879
|
ellipsizeMode: "clip",
|
|
8852
8880
|
children: title
|
|
8853
8881
|
})
|