@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
package/dist/index.es.js CHANGED
@@ -54,6 +54,9 @@ var hex2rgba = function (hex) {
54
54
  var createColorScale = function (colorScale) {
55
55
  return colorScale;
56
56
  };
57
+
58
+ // WARNING
59
+ // If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
57
60
  var colorScales = {
58
61
  deepPurple: createColorScale({
59
62
  5: '#936C93',
@@ -118,9 +121,15 @@ var colorScales = {
118
121
  red: createColorScale({
119
122
  1: '#FDE4E3',
120
123
  2: '#FAB8B8',
121
- 6: '#F14847',
124
+ 6: '#E2483D',
122
125
  7: '#BD100F'
123
126
  }),
127
+ mauve: createColorScale({
128
+ 1: '#F8E7FF',
129
+ 2: '#F1D0FB',
130
+ 3: '#E4A4F9',
131
+ 4: '#D283EC'
132
+ }),
124
133
  'beige-alpha': createColorScale({
125
134
  '25': '#C1B59F40',
126
135
  '40': '#C1B59F66',
@@ -235,8 +244,14 @@ var colors = {
235
244
  }
236
245
  },
237
246
  highlight: {
238
- "default": deepPurpleColorPalette['blue.1'],
239
- pressed: deepPurpleColorPalette['blue.2']
247
+ mid: {
248
+ "default": deepPurpleColorPalette['mauve.1'],
249
+ pressed: deepPurpleColorPalette['mauve.2']
250
+ },
251
+ hi: {
252
+ "default": deepPurpleColorPalette['mauve.3'],
253
+ pressed: deepPurpleColorPalette['mauve.4']
254
+ }
240
255
  },
241
256
  info: {
242
257
  hi: deepPurpleColorPalette['blue.6'],
@@ -264,17 +279,19 @@ var colors = {
264
279
  base: {
265
280
  hi: deepPurpleColorPalette['grey.9'],
266
281
  mid: deepPurpleColorPalette['beige.3'],
282
+ low: deepPurpleColorPalette['beige.2'],
267
283
  onContrasted: {
268
284
  hi: deepPurpleColorPalette['grey.0'],
269
285
  mid: deepPurpleColorPalette['white-alpha.20']
270
- }
286
+ },
287
+ accent: deepPurpleColorPalette['deepPurple.8']
271
288
  },
272
- accent: deepPurpleColorPalette['deepPurple.8'],
273
289
  info: deepPurpleColorPalette['blue.6'],
274
290
  success: deepPurpleColorPalette['green.6'],
275
291
  warning: deepPurpleColorPalette['yellow.6'],
276
292
  danger: deepPurpleColorPalette['red.6'],
277
- disabled: deepPurpleColorPalette['grey.2']
293
+ disabled: deepPurpleColorPalette['grey.2'],
294
+ highlight: deepPurpleColorPalette['mauve.3']
278
295
  }
279
296
  }
280
297
  };
@@ -2007,6 +2024,7 @@ var highlight = {
2007
2024
  }
2008
2025
  },
2009
2026
  padding: {
2027
+ small: spacing * 2,
2010
2028
  medium: spacing * 4,
2011
2029
  large: spacing * 6
2012
2030
  }
@@ -5214,7 +5232,8 @@ function DialogModalAnimation(_ref) {
5214
5232
  onEntered = _ref.onEntered,
5215
5233
  onExit = _ref.onExit,
5216
5234
  onExited = _ref.onExited,
5217
- onClose = _ref.onClose;
5235
+ onClose = _ref.onClose,
5236
+ testID = _ref.testID;
5218
5237
  var _useState = useState(visible),
5219
5238
  _useState2 = _slicedToArray(_useState, 2),
5220
5239
  isModalVisible = _useState2[0],
@@ -5254,6 +5273,7 @@ function DialogModalAnimation(_ref) {
5254
5273
  flexGrow: 1,
5255
5274
  justifyContent: "center",
5256
5275
  alignItems: "center",
5276
+ testID: testID,
5257
5277
  children: [/*#__PURE__*/jsx(NativeOpacityAnimation$1, {
5258
5278
  visible: isContentVisible,
5259
5279
  onExited: handleAnimationExited,
@@ -8984,6 +9004,9 @@ var useNativeAnimation$1 = function (_ref) {
8984
9004
  };
8985
9005
  };
8986
9006
 
9007
+ var getTitleTypographyType = function (size) {
9008
+ return size === 'small' ? 'label-medium' : 'label-large';
9009
+ };
8987
9010
  function Highlight(_ref) {
8988
9011
  var _ref$variant = _ref.variant,
8989
9012
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
@@ -9011,6 +9034,11 @@ function Highlight(_ref) {
9011
9034
  isInitialRender = _useState6[0],
9012
9035
  setIsInitialRender = _useState6[1];
9013
9036
  var highlightStyle = {
9037
+ small: {
9038
+ marginBottom: 'kitt.1',
9039
+ spaceBetween: 'kitt.2',
9040
+ contentMarginY: 8
9041
+ },
9014
9042
  medium: {
9015
9043
  marginBottom: 'kitt.1',
9016
9044
  spaceBetween: 'kitt.2',
@@ -9057,8 +9085,8 @@ function Highlight(_ref) {
9057
9085
  children: [title && /*#__PURE__*/jsx(View, {
9058
9086
  marginBottom: highlightStyle[size].marginBottom,
9059
9087
  children: /*#__PURE__*/jsx(Typography.Text, {
9060
- variant: "bold",
9061
- base: "body-m",
9088
+ variant: "semibold",
9089
+ base: getTitleTypographyType(size),
9062
9090
  ellipsizeMode: "clip",
9063
9091
  children: title
9064
9092
  })
@@ -9092,8 +9120,8 @@ function Highlight(_ref) {
9092
9120
  flexShrink: 1,
9093
9121
  width: "100%",
9094
9122
  children: /*#__PURE__*/jsx(Typography.Text, {
9095
- variant: "bold",
9096
- base: "body-m",
9123
+ variant: "semibold",
9124
+ base: getTitleTypographyType(size),
9097
9125
  ellipsizeMode: "clip",
9098
9126
  children: title
9099
9127
  })