@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
|
@@ -48,6 +48,9 @@ const hex2rgba = (hex, alpha = 1) => {
|
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
const createColorScale = colorScale => colorScale;
|
|
51
|
+
|
|
52
|
+
// WARNING
|
|
53
|
+
// If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
|
|
51
54
|
const colorScales = {
|
|
52
55
|
deepPurple: createColorScale({
|
|
53
56
|
5: '#936C93',
|
|
@@ -112,9 +115,15 @@ const colorScales = {
|
|
|
112
115
|
red: createColorScale({
|
|
113
116
|
1: '#FDE4E3',
|
|
114
117
|
2: '#FAB8B8',
|
|
115
|
-
6: '#
|
|
118
|
+
6: '#E2483D',
|
|
116
119
|
7: '#BD100F'
|
|
117
120
|
}),
|
|
121
|
+
mauve: createColorScale({
|
|
122
|
+
1: '#F8E7FF',
|
|
123
|
+
2: '#F1D0FB',
|
|
124
|
+
3: '#E4A4F9',
|
|
125
|
+
4: '#D283EC'
|
|
126
|
+
}),
|
|
118
127
|
'beige-alpha': createColorScale({
|
|
119
128
|
'25': '#C1B59F40',
|
|
120
129
|
'40': '#C1B59F66',
|
|
@@ -224,8 +233,14 @@ const colors = {
|
|
|
224
233
|
}
|
|
225
234
|
},
|
|
226
235
|
highlight: {
|
|
227
|
-
|
|
228
|
-
|
|
236
|
+
mid: {
|
|
237
|
+
default: deepPurpleColorPalette['mauve.1'],
|
|
238
|
+
pressed: deepPurpleColorPalette['mauve.2']
|
|
239
|
+
},
|
|
240
|
+
hi: {
|
|
241
|
+
default: deepPurpleColorPalette['mauve.3'],
|
|
242
|
+
pressed: deepPurpleColorPalette['mauve.4']
|
|
243
|
+
}
|
|
229
244
|
},
|
|
230
245
|
info: {
|
|
231
246
|
hi: deepPurpleColorPalette['blue.6'],
|
|
@@ -253,17 +268,19 @@ const colors = {
|
|
|
253
268
|
base: {
|
|
254
269
|
hi: deepPurpleColorPalette['grey.9'],
|
|
255
270
|
mid: deepPurpleColorPalette['beige.3'],
|
|
271
|
+
low: deepPurpleColorPalette['beige.2'],
|
|
256
272
|
onContrasted: {
|
|
257
273
|
hi: deepPurpleColorPalette['grey.0'],
|
|
258
274
|
mid: deepPurpleColorPalette['white-alpha.20']
|
|
259
|
-
}
|
|
275
|
+
},
|
|
276
|
+
accent: deepPurpleColorPalette['deepPurple.8']
|
|
260
277
|
},
|
|
261
|
-
accent: deepPurpleColorPalette['deepPurple.8'],
|
|
262
278
|
info: deepPurpleColorPalette['blue.6'],
|
|
263
279
|
success: deepPurpleColorPalette['green.6'],
|
|
264
280
|
warning: deepPurpleColorPalette['yellow.6'],
|
|
265
281
|
danger: deepPurpleColorPalette['red.6'],
|
|
266
|
-
disabled: deepPurpleColorPalette['grey.2']
|
|
282
|
+
disabled: deepPurpleColorPalette['grey.2'],
|
|
283
|
+
highlight: deepPurpleColorPalette['mauve.3']
|
|
267
284
|
}
|
|
268
285
|
}
|
|
269
286
|
};
|
|
@@ -1996,6 +2013,7 @@ const highlight = {
|
|
|
1996
2013
|
}
|
|
1997
2014
|
},
|
|
1998
2015
|
padding: {
|
|
2016
|
+
small: spacing * 2,
|
|
1999
2017
|
medium: spacing * 4,
|
|
2000
2018
|
large: spacing * 6
|
|
2001
2019
|
}
|
|
@@ -5046,7 +5064,8 @@ function DialogModalAnimation({
|
|
|
5046
5064
|
onEntered,
|
|
5047
5065
|
onExit,
|
|
5048
5066
|
onExited,
|
|
5049
|
-
onClose
|
|
5067
|
+
onClose,
|
|
5068
|
+
testID
|
|
5050
5069
|
}) {
|
|
5051
5070
|
const [isModalVisible, setIsModalVisible] = react.useState(visible);
|
|
5052
5071
|
const [isContentVisible, setIsContentVisible] = react.useState(false);
|
|
@@ -5080,6 +5099,7 @@ function DialogModalAnimation({
|
|
|
5080
5099
|
flexGrow: 1,
|
|
5081
5100
|
justifyContent: "center",
|
|
5082
5101
|
alignItems: "center",
|
|
5102
|
+
testID: testID,
|
|
5083
5103
|
children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation, {
|
|
5084
5104
|
visible: isContentVisible,
|
|
5085
5105
|
onExited: handleAnimationExited,
|
|
@@ -7986,6 +8006,9 @@ function useNativeAnimation$1() {
|
|
|
7986
8006
|
};
|
|
7987
8007
|
}
|
|
7988
8008
|
|
|
8009
|
+
const getTitleTypographyType = size => {
|
|
8010
|
+
return size === 'small' ? 'label-medium' : 'label-large';
|
|
8011
|
+
};
|
|
7989
8012
|
function Highlight({
|
|
7990
8013
|
variant = 'primary',
|
|
7991
8014
|
canCollapse = false,
|
|
@@ -8000,6 +8023,11 @@ function Highlight({
|
|
|
8000
8023
|
const [contentHeight, setContentHeight] = react.useState(0);
|
|
8001
8024
|
const [isInitialRender, setIsInitialRender] = react.useState(true);
|
|
8002
8025
|
const highlightStyle = {
|
|
8026
|
+
small: {
|
|
8027
|
+
marginBottom: 'kitt.1',
|
|
8028
|
+
spaceBetween: 'kitt.2',
|
|
8029
|
+
contentMarginY: 8
|
|
8030
|
+
},
|
|
8003
8031
|
medium: {
|
|
8004
8032
|
marginBottom: 'kitt.1',
|
|
8005
8033
|
spaceBetween: 'kitt.2',
|
|
@@ -8042,8 +8070,8 @@ function Highlight({
|
|
|
8042
8070
|
children: [title && /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
8043
8071
|
marginBottom: highlightStyle[size].marginBottom,
|
|
8044
8072
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8045
|
-
variant: "
|
|
8046
|
-
base:
|
|
8073
|
+
variant: "semibold",
|
|
8074
|
+
base: getTitleTypographyType(size),
|
|
8047
8075
|
ellipsizeMode: "clip",
|
|
8048
8076
|
children: title
|
|
8049
8077
|
})
|
|
@@ -8078,8 +8106,8 @@ function Highlight({
|
|
|
8078
8106
|
flexShrink: 1,
|
|
8079
8107
|
width: "100%",
|
|
8080
8108
|
children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
|
|
8081
|
-
variant: "
|
|
8082
|
-
base:
|
|
8109
|
+
variant: "semibold",
|
|
8110
|
+
base: getTitleTypographyType(size),
|
|
8083
8111
|
ellipsizeMode: "clip",
|
|
8084
8112
|
children: title
|
|
8085
8113
|
})
|