@utilitywarehouse/hearth-react-native 0.33.1 → 0.34.1

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 (38) hide show
  1. package/.storybook/preview.tsx +2 -4
  2. package/CHANGELOG.md +63 -0
  3. package/build/core/themes.d.ts +60 -500
  4. package/build/tokens/border-radius.d.ts +0 -1
  5. package/build/tokens/border-radius.js +0 -1
  6. package/build/tokens/color.d.ts +0 -182
  7. package/build/tokens/color.js +0 -91
  8. package/build/tokens/font.d.ts +0 -8
  9. package/build/tokens/font.js +0 -8
  10. package/build/tokens/letter-spacing.d.ts +0 -9
  11. package/build/tokens/letter-spacing.js +0 -9
  12. package/build/tokens/line-height.d.ts +0 -7
  13. package/build/tokens/line-height.js +0 -7
  14. package/build/tokens/primitive.d.ts +0 -26
  15. package/build/tokens/primitive.js +0 -26
  16. package/build/tokens/space.d.ts +0 -1
  17. package/build/tokens/space.js +0 -1
  18. package/build/tokens/typography.d.ts +30 -0
  19. package/build/tokens/typography.js +15 -0
  20. package/docs/changelog.mdx +63 -0
  21. package/docs/components/AllComponents.web.tsx +6 -6
  22. package/docs/introduction.mdx +0 -1
  23. package/docs/styling.mdx +14 -14
  24. package/docs/theme-tokens.mdx +1 -4
  25. package/eslint.config.js +2 -1
  26. package/package.json +6 -6
  27. package/src/components/Carousel/Carousel.stories.tsx +2 -2
  28. package/src/components/Container/Container.stories.tsx +3 -3
  29. package/src/components/IndicatorIconButton/IndicatorIconButton.docs.mdx +1 -1
  30. package/src/components/IndicatorIconButton/IndicatorIconButton.stories.tsx +1 -1
  31. package/src/tokens/border-radius.ts +0 -1
  32. package/src/tokens/color.ts +0 -91
  33. package/src/tokens/font.ts +0 -8
  34. package/src/tokens/letter-spacing.ts +0 -9
  35. package/src/tokens/line-height.ts +0 -7
  36. package/src/tokens/primitive.ts +0 -26
  37. package/src/tokens/space.ts +0 -1
  38. package/src/tokens/typography.ts +15 -0
@@ -48,8 +48,7 @@ const preview = {
48
48
  try {
49
49
  canAccessParent = window.parent.location.hostname === window.location.hostname;
50
50
  } catch {
51
- // CORS error, can't access parent domain
52
- canAccessParent = false;
51
+ // CORS error, can't access parent domain — canAccessParent stays false
53
52
  }
54
53
 
55
54
  if (canAccessParent) {
@@ -116,8 +115,7 @@ const preview = {
116
115
  try {
117
116
  canAccessParent = window.parent.location.hostname === window.location.hostname;
118
117
  } catch {
119
- // CORS error, can't access parent domain
120
- canAccessParent = false;
118
+ // CORS error, can't access parent domain — canAccessParent stays false
121
119
  }
122
120
 
123
121
  if (canAccessParent) {
package/CHANGELOG.md CHANGED
@@ -1,5 +1,68 @@
1
1
  # @utilitywarehouse/hearth-react-native
2
2
 
3
+ ## 0.34.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1341](https://github.com/utilitywarehouse/hearth/pull/1341) [`2165fd8`](https://github.com/utilitywarehouse/hearth/commit/2165fd820cc879fe169df878944b41e337a06c89) Thanks [@robphoenix](https://github.com/robphoenix)! - 🧹 [HOUSEKEEPING]: Make all packages public
8
+
9
+ - Updated dependencies [[`2165fd8`](https://github.com/utilitywarehouse/hearth/commit/2165fd820cc879fe169df878944b41e337a06c89)]:
10
+ - @utilitywarehouse/hearth-react-native-icons@0.8.3
11
+
12
+ ## 0.34.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#1338](https://github.com/utilitywarehouse/hearth/pull/1338) [`fe9767f`](https://github.com/utilitywarehouse/hearth/commit/fe9767f916975ba2e0ba8aea585858d8ea00a147) Thanks [@robphoenix](https://github.com/robphoenix)! - 💔 [BREAKING_CHANGE]: Remove pruned design tokens from React Native token exports
17
+
18
+ Several unused design tokens have been removed from the React Native token exports
19
+ to align with the updated design token set.
20
+
21
+ **Tokens removed**:
22
+
23
+ - `borderRadius.lg`
24
+ - `color`: multiple shades pruned across all colour palettes (`blue`, `broadbandGreen`, `cashbackLilac`, `energyBlue`, `green`, `insuranceOrange`, `mobileRose`, `orange`, `piggyPink`, `purple`, `red`, `warmWhite`, `yellow`)
25
+ - `font.size`: `50`, `75`, `600`, `700`, `800`, `900`, `1000`
26
+ - `font.weight.heavy`
27
+ - `letterSpacing`: `0`, `50`, `75`, `550`, `600`, `700`, `800`, `900`, `1000`
28
+ - `lineHeight`: `50`, `75`, `100`, `900`, `1000`, `1100`, `1200`
29
+ - `space['1000']`
30
+
31
+ **Developer changes**:
32
+
33
+ If you are referencing any of the removed tokens directly, replace them with the
34
+ nearest available equivalent or remove the usage.
35
+
36
+ For example:
37
+
38
+ ```diff
39
+ - borderRadius: tokens.borderRadius.lg,
40
+ + borderRadius: tokens.borderRadius.md,
41
+ ```
42
+
43
+ ```diff
44
+ - fontSize: tokens.font.size['50'],
45
+ + fontSize: tokens.font.size['90'],
46
+ ```
47
+
48
+ ```diff
49
+ - fontWeight: tokens.font.weight.heavy,
50
+ + fontWeight: tokens.font.weight.bold,
51
+ ```
52
+
53
+ ### Patch Changes
54
+
55
+ - [#1338](https://github.com/utilitywarehouse/hearth/pull/1338) [`fe9767f`](https://github.com/utilitywarehouse/hearth/commit/fe9767f916975ba2e0ba8aea585858d8ea00a147) Thanks [@robphoenix](https://github.com/robphoenix)! - 🌟 [FEATURE]: Add `xl` variant to `bodyText` typography tokens
56
+
57
+ The `bodyText` typography scale now includes an `xl` variant across mobile,
58
+ tablet, and desktop breakpoints.
59
+
60
+ | Property | Value |
61
+ | ------------------ | ----- |
62
+ | `fontSize` | `20` |
63
+ | `lineHeight` | `28` |
64
+ | `paragraphSpacing` | `20` |
65
+
3
66
  ## 0.33.1
4
67
 
5
68
  ### Patch Changes