@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
@@ -65,6 +65,9 @@ const hex2rgba = (hex, alpha = 1) => {
65
65
  };
66
66
 
67
67
  const createColorScale = colorScale => colorScale;
68
+
69
+ // WARNING
70
+ // If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
68
71
  const colorScales = {
69
72
  deepPurple: createColorScale({
70
73
  5: '#936C93',
@@ -129,9 +132,15 @@ const colorScales = {
129
132
  red: createColorScale({
130
133
  1: '#FDE4E3',
131
134
  2: '#FAB8B8',
132
- 6: '#F14847',
135
+ 6: '#E2483D',
133
136
  7: '#BD100F'
134
137
  }),
138
+ mauve: createColorScale({
139
+ 1: '#F8E7FF',
140
+ 2: '#F1D0FB',
141
+ 3: '#E4A4F9',
142
+ 4: '#D283EC'
143
+ }),
135
144
  'beige-alpha': createColorScale({
136
145
  '25': '#C1B59F40',
137
146
  '40': '#C1B59F66',
@@ -241,8 +250,14 @@ const colors = {
241
250
  }
242
251
  },
243
252
  highlight: {
244
- default: deepPurpleColorPalette['blue.1'],
245
- pressed: deepPurpleColorPalette['blue.2']
253
+ mid: {
254
+ default: deepPurpleColorPalette['mauve.1'],
255
+ pressed: deepPurpleColorPalette['mauve.2']
256
+ },
257
+ hi: {
258
+ default: deepPurpleColorPalette['mauve.3'],
259
+ pressed: deepPurpleColorPalette['mauve.4']
260
+ }
246
261
  },
247
262
  info: {
248
263
  hi: deepPurpleColorPalette['blue.6'],
@@ -270,17 +285,19 @@ const colors = {
270
285
  base: {
271
286
  hi: deepPurpleColorPalette['grey.9'],
272
287
  mid: deepPurpleColorPalette['beige.3'],
288
+ low: deepPurpleColorPalette['beige.2'],
273
289
  onContrasted: {
274
290
  hi: deepPurpleColorPalette['grey.0'],
275
291
  mid: deepPurpleColorPalette['white-alpha.20']
276
- }
292
+ },
293
+ accent: deepPurpleColorPalette['deepPurple.8']
277
294
  },
278
- accent: deepPurpleColorPalette['deepPurple.8'],
279
295
  info: deepPurpleColorPalette['blue.6'],
280
296
  success: deepPurpleColorPalette['green.6'],
281
297
  warning: deepPurpleColorPalette['yellow.6'],
282
298
  danger: deepPurpleColorPalette['red.6'],
283
- disabled: deepPurpleColorPalette['grey.2']
299
+ disabled: deepPurpleColorPalette['grey.2'],
300
+ highlight: deepPurpleColorPalette['mauve.3']
284
301
  }
285
302
  }
286
303
  };
@@ -2013,6 +2030,7 @@ const highlight = {
2013
2030
  }
2014
2031
  },
2015
2032
  padding: {
2033
+ small: spacing * 2,
2016
2034
  medium: spacing * 4,
2017
2035
  large: spacing * 6
2018
2036
  }
@@ -5206,7 +5224,8 @@ function DialogModalAnimation({
5206
5224
  onEntered,
5207
5225
  onExit,
5208
5226
  onExited,
5209
- onClose
5227
+ onClose,
5228
+ testID
5210
5229
  }) {
5211
5230
  const [isModalVisible, setIsModalVisible] = React.useState(visible);
5212
5231
  const [isContentVisible, setIsContentVisible] = React.useState(false);
@@ -5241,6 +5260,7 @@ function DialogModalAnimation({
5241
5260
  flexGrow: 1,
5242
5261
  justifyContent: "center",
5243
5262
  alignItems: "center",
5263
+ testID: testID,
5244
5264
  children: [/*#__PURE__*/jsxRuntime.jsx(NativeOpacityAnimation$1, {
5245
5265
  visible: isContentVisible,
5246
5266
  onExited: handleAnimationExited,
@@ -8773,6 +8793,9 @@ const useNativeAnimation$1 = ({
8773
8793
  };
8774
8794
  };
8775
8795
 
8796
+ const getTitleTypographyType = size => {
8797
+ return size === 'small' ? 'label-medium' : 'label-large';
8798
+ };
8776
8799
  function Highlight({
8777
8800
  variant = 'primary',
8778
8801
  canCollapse = false,
@@ -8787,6 +8810,11 @@ function Highlight({
8787
8810
  const [contentHeight, setContentHeight] = React.useState(0);
8788
8811
  const [isInitialRender, setIsInitialRender] = React.useState(true);
8789
8812
  const highlightStyle = {
8813
+ small: {
8814
+ marginBottom: 'kitt.1',
8815
+ spaceBetween: 'kitt.2',
8816
+ contentMarginY: 8
8817
+ },
8790
8818
  medium: {
8791
8819
  marginBottom: 'kitt.1',
8792
8820
  spaceBetween: 'kitt.2',
@@ -8834,8 +8862,8 @@ function Highlight({
8834
8862
  children: [title && /*#__PURE__*/jsxRuntime.jsx(View, {
8835
8863
  marginBottom: highlightStyle[size].marginBottom,
8836
8864
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
8837
- variant: "bold",
8838
- base: "body-m",
8865
+ variant: "semibold",
8866
+ base: getTitleTypographyType(size),
8839
8867
  ellipsizeMode: "clip",
8840
8868
  children: title
8841
8869
  })
@@ -8870,8 +8898,8 @@ function Highlight({
8870
8898
  flexShrink: 1,
8871
8899
  width: "100%",
8872
8900
  children: /*#__PURE__*/jsxRuntime.jsx(Typography.Text, {
8873
- variant: "bold",
8874
- base: "body-m",
8901
+ variant: "semibold",
8902
+ base: getTitleTypographyType(size),
8875
8903
  ellipsizeMode: "clip",
8876
8904
  children: title
8877
8905
  })