@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
@@ -52,6 +52,9 @@ var hex2rgba = function (hex) {
52
52
  var createColorScale = function (colorScale) {
53
53
  return colorScale;
54
54
  };
55
+
56
+ // WARNING
57
+ // If you update this palette, don't forget to update the palette in @ornikar/bumper as well.
55
58
  var colorScales = {
56
59
  deepPurple: createColorScale({
57
60
  5: '#936C93',
@@ -116,9 +119,15 @@ var colorScales = {
116
119
  red: createColorScale({
117
120
  1: '#FDE4E3',
118
121
  2: '#FAB8B8',
119
- 6: '#F14847',
122
+ 6: '#E2483D',
120
123
  7: '#BD100F'
121
124
  }),
125
+ mauve: createColorScale({
126
+ 1: '#F8E7FF',
127
+ 2: '#F1D0FB',
128
+ 3: '#E4A4F9',
129
+ 4: '#D283EC'
130
+ }),
122
131
  'beige-alpha': createColorScale({
123
132
  '25': '#C1B59F40',
124
133
  '40': '#C1B59F66',
@@ -233,8 +242,14 @@ var colors = {
233
242
  }
234
243
  },
235
244
  highlight: {
236
- "default": deepPurpleColorPalette['blue.1'],
237
- pressed: deepPurpleColorPalette['blue.2']
245
+ mid: {
246
+ "default": deepPurpleColorPalette['mauve.1'],
247
+ pressed: deepPurpleColorPalette['mauve.2']
248
+ },
249
+ hi: {
250
+ "default": deepPurpleColorPalette['mauve.3'],
251
+ pressed: deepPurpleColorPalette['mauve.4']
252
+ }
238
253
  },
239
254
  info: {
240
255
  hi: deepPurpleColorPalette['blue.6'],
@@ -262,17 +277,19 @@ var colors = {
262
277
  base: {
263
278
  hi: deepPurpleColorPalette['grey.9'],
264
279
  mid: deepPurpleColorPalette['beige.3'],
280
+ low: deepPurpleColorPalette['beige.2'],
265
281
  onContrasted: {
266
282
  hi: deepPurpleColorPalette['grey.0'],
267
283
  mid: deepPurpleColorPalette['white-alpha.20']
268
- }
284
+ },
285
+ accent: deepPurpleColorPalette['deepPurple.8']
269
286
  },
270
- accent: deepPurpleColorPalette['deepPurple.8'],
271
287
  info: deepPurpleColorPalette['blue.6'],
272
288
  success: deepPurpleColorPalette['green.6'],
273
289
  warning: deepPurpleColorPalette['yellow.6'],
274
290
  danger: deepPurpleColorPalette['red.6'],
275
- disabled: deepPurpleColorPalette['grey.2']
291
+ disabled: deepPurpleColorPalette['grey.2'],
292
+ highlight: deepPurpleColorPalette['mauve.3']
276
293
  }
277
294
  }
278
295
  };
@@ -2005,6 +2022,7 @@ var highlight = {
2005
2022
  }
2006
2023
  },
2007
2024
  padding: {
2025
+ small: spacing * 2,
2008
2026
  medium: spacing * 4,
2009
2027
  large: spacing * 6
2010
2028
  }
@@ -5065,7 +5083,8 @@ function DialogModalAnimation(_ref) {
5065
5083
  onEntered = _ref.onEntered,
5066
5084
  onExit = _ref.onExit,
5067
5085
  onExited = _ref.onExited,
5068
- onClose = _ref.onClose;
5086
+ onClose = _ref.onClose,
5087
+ testID = _ref.testID;
5069
5088
  var _useState = useState(visible),
5070
5089
  _useState2 = _slicedToArray(_useState, 2),
5071
5090
  isModalVisible = _useState2[0],
@@ -5104,6 +5123,7 @@ function DialogModalAnimation(_ref) {
5104
5123
  flexGrow: 1,
5105
5124
  justifyContent: "center",
5106
5125
  alignItems: "center",
5126
+ testID: testID,
5107
5127
  children: [/*#__PURE__*/jsx(NativeOpacityAnimation, {
5108
5128
  visible: isContentVisible,
5109
5129
  onExited: handleAnimationExited,
@@ -8157,6 +8177,9 @@ function useNativeAnimation$1() {
8157
8177
  };
8158
8178
  }
8159
8179
 
8180
+ var getTitleTypographyType = function (size) {
8181
+ return size === 'small' ? 'label-medium' : 'label-large';
8182
+ };
8160
8183
  function Highlight(_ref) {
8161
8184
  var _ref$variant = _ref.variant,
8162
8185
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
@@ -8184,6 +8207,11 @@ function Highlight(_ref) {
8184
8207
  isInitialRender = _useState6[0],
8185
8208
  setIsInitialRender = _useState6[1];
8186
8209
  var highlightStyle = {
8210
+ small: {
8211
+ marginBottom: 'kitt.1',
8212
+ spaceBetween: 'kitt.2',
8213
+ contentMarginY: 8
8214
+ },
8187
8215
  medium: {
8188
8216
  marginBottom: 'kitt.1',
8189
8217
  spaceBetween: 'kitt.2',
@@ -8225,8 +8253,8 @@ function Highlight(_ref) {
8225
8253
  children: [title && /*#__PURE__*/jsx(View, {
8226
8254
  marginBottom: highlightStyle[size].marginBottom,
8227
8255
  children: /*#__PURE__*/jsx(Typography.Text, {
8228
- variant: "bold",
8229
- base: "body-m",
8256
+ variant: "semibold",
8257
+ base: getTitleTypographyType(size),
8230
8258
  ellipsizeMode: "clip",
8231
8259
  children: title
8232
8260
  })
@@ -8260,8 +8288,8 @@ function Highlight(_ref) {
8260
8288
  flexShrink: 1,
8261
8289
  width: "100%",
8262
8290
  children: /*#__PURE__*/jsx(Typography.Text, {
8263
- variant: "bold",
8264
- base: "body-m",
8291
+ variant: "semibold",
8292
+ base: getTitleTypographyType(size),
8265
8293
  ellipsizeMode: "clip",
8266
8294
  children: title
8267
8295
  })