@hero-design/rn 8.124.2 → 8.126.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 (39) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/assets/fonts/BeVietnamPro-Medium.ttf +0 -0
  3. package/assets/fonts/BeVietnamPro-MediumItalic.ttf +0 -0
  4. package/es/index.js +207 -140
  5. package/lib/index.js +207 -140
  6. package/package.json +2 -2
  7. package/src/components/Badge/Status.tsx +8 -1
  8. package/src/components/Badge/StyledBadge.tsx +2 -1
  9. package/src/components/Badge/types.ts +8 -1
  10. package/src/components/RichTextEditor/RichTextEditor.tsx +88 -74
  11. package/src/components/Search/StyledSearch.tsx +1 -1
  12. package/src/components/TextInput/StyledTextInput.tsx +74 -24
  13. package/src/components/TextInput/index.tsx +126 -103
  14. package/src/components/Typography/Body/StyledBody.tsx +16 -8
  15. package/src/components/Typography/Body/index.tsx +12 -3
  16. package/src/components/Typography/Caption/StyledCaption.tsx +10 -2
  17. package/src/components/Typography/Caption/index.tsx +1 -1
  18. package/src/components/Typography/Label/StyledLabel.tsx +4 -5
  19. package/src/components/Typography/Label/index.tsx +7 -0
  20. package/src/components/Typography/types.ts +1 -0
  21. package/src/theme/components/badge.ts +5 -2
  22. package/src/theme/components/textInput.ts +32 -19
  23. package/src/theme/components/typography.ts +2 -0
  24. package/src/theme/global/typography.ts +6 -0
  25. package/types/components/Badge/Status.d.ts +1 -1
  26. package/types/components/Badge/StyledBadge.d.ts +1 -1
  27. package/types/components/Badge/types.d.ts +1 -1
  28. package/types/components/TextInput/StyledTextInput.d.ts +29 -15
  29. package/types/components/Typography/Body/StyledBody.d.ts +1 -1
  30. package/types/components/Typography/Body/index.d.ts +6 -3
  31. package/types/components/Typography/Caption/StyledCaption.d.ts +1 -1
  32. package/types/components/Typography/Caption/index.d.ts +1 -1
  33. package/types/components/Typography/Label/StyledLabel.d.ts +1 -0
  34. package/types/components/Typography/Label/index.d.ts +6 -1
  35. package/types/components/Typography/types.d.ts +1 -0
  36. package/types/theme/components/badge.d.ts +3 -0
  37. package/types/theme/components/textInput.d.ts +17 -5
  38. package/types/theme/components/typography.d.ts +2 -0
  39. package/types/theme/global/typography.d.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.126.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#5059](https://github.com/Thinkei/hero-design/pull/5059) [`9f52a1a805000630192556c35dede41fbd91cc0a`](https://github.com/Thinkei/hero-design/commit/9f52a1a805000630192556c35dede41fbd91cc0a) Thanks [@phucdph](https://github.com/phucdph)! - **Badge:** standardise font weight to Medium (500) across all sizes; add `neutral` intent
8
+
9
+ - Both `medium` and `small` badge sizes now use `BeVietnamPro-Medium` (weight 500). Previously `medium` used Regular (400) and `small` used SemiBold (600).
10
+ - New `intent="neutral"` renders a light grey background (`neutralGlobalSurface`) with near-black text (`onDefaultGlobalSurface`), suitable for inactive or default-state labels.
11
+ - `Badge.Status` with `intent="neutral"` renders with `mutedOnDefaultGlobalSurface` as the dot color.
12
+
13
+ ## 8.125.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#5056](https://github.com/Thinkei/hero-design/pull/5056) [`cfcde1b64b7e5d5c7fff9cde859b238b3f85b8e3`](https://github.com/Thinkei/hero-design/commit/cfcde1b64b7e5d5c7fff9cde859b238b3f85b8e3) Thanks [@phucdph](https://github.com/phucdph)! - Add medium weight (BeVietnamPro-Medium) support to Typography components
18
+
19
+ - `Typography.Body`: new `variant="regular-medium"` and `variant="small-medium"` (neutral typeface only)
20
+ - `Typography.Caption`: new `fontWeight="medium"` option
21
+ - `Typography.Label`: new `fontWeight="medium"` option (default: `"regular"`)
22
+ - Playful typeface gracefully falls back to regular when medium variant is used
23
+
24
+ ### Patch Changes
25
+
26
+ - [#5039](https://github.com/Thinkei/hero-design/pull/5039) [`dec68a38346ab7c64e92ed24f385a65ea079a86b`](https://github.com/Thinkei/hero-design/commit/dec68a38346ab7c64e92ed24f385a65ea079a86b) Thanks [@ttkien](https://github.com/ttkien)! - [TextInput][richtexteditor] Redesign TextInput and RichTextEditor components
27
+
3
28
  ## 8.124.2
4
29
 
5
30
  ### Patch Changes