@hero-design/rn 8.85.0 → 8.86.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 (25) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +6 -0
  3. package/es/index.js +108 -27
  4. package/lib/index.js +108 -27
  5. package/package.json +1 -1
  6. package/src/components/Button/Button.tsx +22 -6
  7. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +8 -2
  8. package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +3 -0
  9. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +139 -1
  10. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +408 -3
  11. package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +3 -0
  12. package/src/components/Button/LoadingIndicator/index.tsx +4 -1
  13. package/src/components/Button/StyledButton.tsx +95 -5
  14. package/src/components/Button/__tests__/Button.spec.tsx +12 -0
  15. package/src/components/Button/__tests__/StyledButton.spec.tsx +10 -0
  16. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1240 -90
  17. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +630 -40
  18. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +5 -0
  19. package/src/theme/components/button.ts +5 -0
  20. package/stats/8.86.0/rn-stats.html +4842 -0
  21. package/types/components/Button/Button.d.ts +1 -1
  22. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
  23. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  24. package/types/components/Button/StyledButton.d.ts +3 -3
  25. package/types/theme/components/button.d.ts +5 -0
@@ -254,22 +254,27 @@ exports[`theme returns correct theme object 1`] = `
254
254
  "filledDanger": "#fcebe7",
255
255
  "filledPrimary": "#33144d",
256
256
  "filledSecondary": "#33144d",
257
+ "filledWhite": "#ece8ef",
257
258
  "outlineDanger": "#fcebe7",
259
+ "outlineWhite": "#33144d",
258
260
  "outlinedPrimary": "#ece8ef",
259
261
  "outlinedSecondary": "#ece8ef",
260
262
  "textDanger": "#fcebe7",
261
263
  "textPrimary": "#ece8ef",
262
264
  "textSecondary": "#f6f6f7",
265
+ "textWhite": "#33144d",
263
266
  },
264
267
  "pressedText": {
265
268
  "danger": "#f68282",
266
269
  "primary": "#33144d",
267
270
  "secondary": "#001f23",
271
+ "white": "#33144d",
268
272
  },
269
273
  "primary": "#401960",
270
274
  "secondary": "#4d6265",
271
275
  "textLoadingBackground": "#ece8ef",
272
276
  "utilityBackground": "#ffffff",
277
+ "white": "#ffffff",
273
278
  },
274
279
  "fontSize": {
275
280
  "default": 18,
@@ -47,6 +47,7 @@ const getButtonTheme = (theme: GlobalTheme) => {
47
47
  primary: theme.colors.primary,
48
48
  secondary: theme.colors.mutedOnDefaultGlobalSurface,
49
49
  danger: theme.colors.onErrorSurface,
50
+ white: theme.colors.defaultGlobalSurface,
50
51
  defaultText: theme.colors.onDefaultGlobalSurface,
51
52
  disabledText: theme.colors.disabledOnDefaultGlobalSurface,
52
53
  disabledBorder: theme.colors.disabledOnDefaultGlobalSurface,
@@ -58,17 +59,21 @@ const getButtonTheme = (theme: GlobalTheme) => {
58
59
  filledPrimary: theme.colors.pressedSurface,
59
60
  filledSecondary: theme.colors.pressedSurface,
60
61
  filledDanger: theme.colors.errorSurface,
62
+ filledWhite: theme.colors.highlightedSurface,
61
63
  outlinedPrimary: theme.colors.highlightedSurface,
62
64
  outlinedSecondary: theme.colors.highlightedSurface,
63
65
  outlineDanger: theme.colors.errorSurface,
66
+ outlineWhite: theme.colors.pressedSurface,
64
67
  textPrimary: theme.colors.highlightedSurface,
65
68
  textSecondary: theme.colors.neutralGlobalSurface,
66
69
  textDanger: theme.colors.errorSurface,
70
+ textWhite: theme.colors.pressedSurface,
67
71
  },
68
72
  pressedText: {
69
73
  primary: theme.colors.pressedSurface,
70
74
  secondary: theme.colors.onDefaultGlobalSurface,
71
75
  danger: theme.colors.mutedError,
76
+ white: theme.colors.pressedSurface,
72
77
  },
73
78
  };
74
79