@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.
Files changed (49) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts +1 -1
  3. package/dist/definitions/DialogModal/DialogModalAnimation/DialogModalAnimation.d.ts.map +1 -1
  4. package/dist/definitions/Highlight/Highlight.d.ts +1 -1
  5. package/dist/definitions/Highlight/Highlight.d.ts.map +1 -1
  6. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +15 -3
  7. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  8. package/dist/definitions/themes/default.d.ts +15 -3
  9. package/dist/definitions/themes/default.d.ts.map +1 -1
  10. package/dist/definitions/themes/late-ocean/colors.d.ts +11 -3
  11. package/dist/definitions/themes/late-ocean/colors.d.ts.map +1 -1
  12. package/dist/definitions/themes/late-ocean/highlight.d.ts +1 -0
  13. package/dist/definitions/themes/late-ocean/highlight.d.ts.map +1 -1
  14. package/dist/definitions/themes/palettes/deepPurpleColorPalette.d.ts +5 -0
  15. package/dist/definitions/themes/palettes/deepPurpleColorPalette.d.ts.map +1 -1
  16. package/dist/index-metro.es.android.js +39 -11
  17. package/dist/index-metro.es.android.js.map +1 -1
  18. package/dist/index-metro.es.ios.js +39 -11
  19. package/dist/index-metro.es.ios.js.map +1 -1
  20. package/dist/index-node-22.17.cjs.js +39 -11
  21. package/dist/index-node-22.17.cjs.js.map +1 -1
  22. package/dist/index-node-22.17.cjs.web.js +39 -11
  23. package/dist/index-node-22.17.cjs.web.js.map +1 -1
  24. package/dist/index-node-22.17.es.mjs +39 -11
  25. package/dist/index-node-22.17.es.mjs.map +1 -1
  26. package/dist/index-node-22.17.es.web.mjs +39 -11
  27. package/dist/index-node-22.17.es.web.mjs.map +1 -1
  28. package/dist/index.es.js +39 -11
  29. package/dist/index.es.js.map +1 -1
  30. package/dist/index.es.web.js +39 -11
  31. package/dist/index.es.web.js.map +1 -1
  32. package/dist/linaria-themes-metro.es.android.js +24 -6
  33. package/dist/linaria-themes-metro.es.android.js.map +1 -1
  34. package/dist/linaria-themes-metro.es.ios.js +24 -6
  35. package/dist/linaria-themes-metro.es.ios.js.map +1 -1
  36. package/dist/linaria-themes-node-22.17.cjs.js +24 -6
  37. package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
  38. package/dist/linaria-themes-node-22.17.cjs.web.js +24 -6
  39. package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
  40. package/dist/linaria-themes-node-22.17.es.mjs +24 -6
  41. package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
  42. package/dist/linaria-themes-node-22.17.es.web.mjs +24 -6
  43. package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
  44. package/dist/linaria-themes.es.js +24 -6
  45. package/dist/linaria-themes.es.js.map +1 -1
  46. package/dist/linaria-themes.es.web.js +24 -6
  47. package/dist/linaria-themes.es.web.js.map +1 -1
  48. package/dist/tsbuildinfo +1 -1
  49. package/package.json +1 -1
@@ -45,6 +45,9 @@ const hex2rgba = (hex, alpha = 1) => {
45
45
  };
46
46
 
47
47
  const createColorScale = colorScale => colorScale;
48
+
49
+ // WARNING
50
+ // If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
48
51
  const colorScales = {
49
52
  deepPurple: createColorScale({
50
53
  5: '#936C93',
@@ -109,9 +112,15 @@ const colorScales = {
109
112
  red: createColorScale({
110
113
  1: '#FDE4E3',
111
114
  2: '#FAB8B8',
112
- 6: '#F14847',
115
+ 6: '#E2483D',
113
116
  7: '#BD100F'
114
117
  }),
118
+ mauve: createColorScale({
119
+ 1: '#F8E7FF',
120
+ 2: '#F1D0FB',
121
+ 3: '#E4A4F9',
122
+ 4: '#D283EC'
123
+ }),
115
124
  'beige-alpha': createColorScale({
116
125
  '25': '#C1B59F40',
117
126
  '40': '#C1B59F66',
@@ -220,8 +229,14 @@ const colors = {
220
229
  }
221
230
  },
222
231
  highlight: {
223
- default: deepPurpleColorPalette['blue.1'],
224
- pressed: deepPurpleColorPalette['blue.2']
232
+ mid: {
233
+ default: deepPurpleColorPalette['mauve.1'],
234
+ pressed: deepPurpleColorPalette['mauve.2']
235
+ },
236
+ hi: {
237
+ default: deepPurpleColorPalette['mauve.3'],
238
+ pressed: deepPurpleColorPalette['mauve.4']
239
+ }
225
240
  },
226
241
  info: {
227
242
  hi: deepPurpleColorPalette['blue.6'],
@@ -249,17 +264,19 @@ const colors = {
249
264
  base: {
250
265
  hi: deepPurpleColorPalette['grey.9'],
251
266
  mid: deepPurpleColorPalette['beige.3'],
267
+ low: deepPurpleColorPalette['beige.2'],
252
268
  onContrasted: {
253
269
  hi: deepPurpleColorPalette['grey.0'],
254
270
  mid: deepPurpleColorPalette['white-alpha.20']
255
- }
271
+ },
272
+ accent: deepPurpleColorPalette['deepPurple.8']
256
273
  },
257
- accent: deepPurpleColorPalette['deepPurple.8'],
258
274
  info: deepPurpleColorPalette['blue.6'],
259
275
  success: deepPurpleColorPalette['green.6'],
260
276
  warning: deepPurpleColorPalette['yellow.6'],
261
277
  danger: deepPurpleColorPalette['red.6'],
262
- disabled: deepPurpleColorPalette['grey.2']
278
+ disabled: deepPurpleColorPalette['grey.2'],
279
+ highlight: deepPurpleColorPalette['mauve.3']
263
280
  }
264
281
  }
265
282
  };
@@ -1992,6 +2009,7 @@ const highlight = {
1992
2009
  }
1993
2010
  },
1994
2011
  padding: {
2012
+ small: spacing * 2,
1995
2013
  medium: spacing * 4,
1996
2014
  large: spacing * 6
1997
2015
  }
@@ -5177,7 +5195,8 @@ function DialogModalAnimation({
5177
5195
  onEntered,
5178
5196
  onExit,
5179
5197
  onExited,
5180
- onClose
5198
+ onClose,
5199
+ testID
5181
5200
  }) {
5182
5201
  const [isModalVisible, setIsModalVisible] = useState(visible);
5183
5202
  const [isContentVisible, setIsContentVisible] = useState(false);
@@ -5212,6 +5231,7 @@ function DialogModalAnimation({
5212
5231
  flexGrow: 1,
5213
5232
  justifyContent: "center",
5214
5233
  alignItems: "center",
5234
+ testID: testID,
5215
5235
  children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
5216
5236
  visible: isContentVisible,
5217
5237
  onExited: handleAnimationExited,
@@ -8771,6 +8791,9 @@ const useNativeAnimation$1 = ({
8771
8791
  };
8772
8792
  };
8773
8793
 
8794
+ const getTitleTypographyType = size => {
8795
+ return size === 'small' ? 'label-medium' : 'label-large';
8796
+ };
8774
8797
  function Highlight({
8775
8798
  variant = 'primary',
8776
8799
  canCollapse = false,
@@ -8785,6 +8808,11 @@ function Highlight({
8785
8808
  const [contentHeight, setContentHeight] = useState(0);
8786
8809
  const [isInitialRender, setIsInitialRender] = useState(true);
8787
8810
  const highlightStyle = {
8811
+ small: {
8812
+ marginBottom: 'kitt.1',
8813
+ spaceBetween: 'kitt.2',
8814
+ contentMarginY: 8
8815
+ },
8788
8816
  medium: {
8789
8817
  marginBottom: 'kitt.1',
8790
8818
  spaceBetween: 'kitt.2',
@@ -8832,8 +8860,8 @@ function Highlight({
8832
8860
  children: [title && /*#__PURE__*/jsx(View, {
8833
8861
  marginBottom: highlightStyle[size].marginBottom,
8834
8862
  children: /*#__PURE__*/jsx(Typography.Text, {
8835
- variant: "bold",
8836
- base: "body-m",
8863
+ variant: "semibold",
8864
+ base: getTitleTypographyType(size),
8837
8865
  ellipsizeMode: "clip",
8838
8866
  children: title
8839
8867
  })
@@ -8868,8 +8896,8 @@ function Highlight({
8868
8896
  flexShrink: 1,
8869
8897
  width: "100%",
8870
8898
  children: /*#__PURE__*/jsx(Typography.Text, {
8871
- variant: "bold",
8872
- base: "body-m",
8899
+ variant: "semibold",
8900
+ base: getTitleTypographyType(size),
8873
8901
  ellipsizeMode: "clip",
8874
8902
  children: title
8875
8903
  })