@hero-design/rn 8.99.4-alpha.0 → 8.100.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 (122) hide show
  1. package/.turbo/turbo-build.log +8 -3
  2. package/CHANGELOG.md +19 -2
  3. package/es/index.js +5622 -691
  4. package/jest.config.js +1 -1
  5. package/lib/index.js +5546 -614
  6. package/package.json +4 -2
  7. package/src/components/Avatar/AvatarStack/utils.ts +6 -4
  8. package/src/components/Badge/Status.tsx +1 -1
  9. package/src/components/Badge/__tests__/Status.spec.tsx +20 -0
  10. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -0
  11. package/src/components/Chart/ChartSelect/StyledChartSelect.tsx +9 -0
  12. package/src/components/Chart/ChartSelect/__tests__/StyledChartSelect.spec.tsx +15 -0
  13. package/src/components/Chart/ChartSelect/__tests__/__snapshots__/StyledChartSelect.spec.tsx.snap +20 -0
  14. package/src/components/Chart/ChartSelect/__tests__/index.spec.tsx +111 -0
  15. package/src/components/Chart/ChartSelect/index.tsx +137 -0
  16. package/src/components/Chart/ColumnChart/ColumnChartContent.tsx +84 -0
  17. package/src/components/Chart/ColumnChart/Segment.tsx +66 -0
  18. package/src/components/Chart/ColumnChart/StackedSegment.tsx +99 -0
  19. package/src/components/Chart/ColumnChart/StyledColumnChart.tsx +9 -0
  20. package/src/components/Chart/ColumnChart/__tests__/ColumnChartContent.spec.tsx +68 -0
  21. package/src/components/Chart/ColumnChart/__tests__/Segment.spec.tsx +99 -0
  22. package/src/components/Chart/ColumnChart/__tests__/StackedSegment.spec.tsx +115 -0
  23. package/src/components/Chart/ColumnChart/__tests__/__snapshots__/StackedSegment.spec.tsx.snap +120 -0
  24. package/src/components/Chart/ColumnChart/__tests__/__snapshots__/index.spec.tsx.snap +1405 -0
  25. package/src/components/Chart/ColumnChart/__tests__/index.spec.tsx +134 -0
  26. package/src/components/Chart/ColumnChart/index.tsx +216 -0
  27. package/src/components/Chart/Line/Line.tsx +81 -0
  28. package/src/components/Chart/Line/__tests__/Line.spec.tsx +148 -0
  29. package/src/components/Chart/Line/__tests__/__snapshots__/Line.spec.tsx.snap +56 -0
  30. package/src/components/Chart/Line/__tests__/__snapshots__/index.spec.tsx.snap +1461 -0
  31. package/src/components/Chart/Line/__tests__/index.spec.tsx +112 -0
  32. package/src/components/Chart/Line/index.tsx +143 -0
  33. package/src/components/Chart/StyledChart.tsx +16 -0
  34. package/src/components/Chart/index.tsx +13 -0
  35. package/src/components/Chart/shared/AxisLabel.tsx +25 -0
  36. package/src/components/Chart/shared/ChartFrame.tsx +131 -0
  37. package/src/components/Chart/shared/ChartHeader.tsx +19 -0
  38. package/src/components/Chart/shared/EmptyState.tsx +83 -0
  39. package/src/components/Chart/shared/XAxis.tsx +69 -0
  40. package/src/components/Chart/shared/XAxisGrid.tsx +42 -0
  41. package/src/components/Chart/shared/YAxis.tsx +104 -0
  42. package/src/components/Chart/shared/YAxisGrid.tsx +58 -0
  43. package/src/components/Chart/shared/__tests__/ChartFrame.spec.tsx +125 -0
  44. package/src/components/Chart/shared/__tests__/ChartHeader.spec.tsx +22 -0
  45. package/src/components/Chart/shared/__tests__/EmptyState.spec.tsx +29 -0
  46. package/src/components/Chart/shared/__tests__/XAXisGrid.spec.tsx +30 -0
  47. package/src/components/Chart/shared/__tests__/XAxis.spec.tsx +42 -0
  48. package/src/components/Chart/shared/__tests__/YAxis.spec.tsx +72 -0
  49. package/src/components/Chart/shared/__tests__/YAxisGrid.spec.tsx +35 -0
  50. package/src/components/Chart/shared/__tests__/__snapshots__/ChartFrame.spec.tsx.snap +3058 -0
  51. package/src/components/Chart/shared/__tests__/__snapshots__/ChartHeader.spec.tsx.snap +160 -0
  52. package/src/components/Chart/shared/__tests__/__snapshots__/EmptyState.spec.tsx.snap +155 -0
  53. package/src/components/Chart/shared/__tests__/__snapshots__/XAXisGrid.spec.tsx.snap +197 -0
  54. package/src/components/Chart/shared/__tests__/__snapshots__/XAxis.spec.tsx.snap +369 -0
  55. package/src/components/Chart/shared/__tests__/__snapshots__/YAxis.spec.tsx.snap +1013 -0
  56. package/src/components/Chart/shared/__tests__/__snapshots__/YAxisGrid.spec.tsx.snap +228 -0
  57. package/src/components/Chart/shared/__tests__/niceNumbers.spec.tsx +127 -0
  58. package/src/components/Chart/shared/constants.ts +2 -0
  59. package/src/components/Chart/shared/hooks/useColorScale.ts +25 -0
  60. package/src/components/Chart/shared/hooks/useGenerateTicks.ts +27 -0
  61. package/src/components/Chart/shared/hooks/useScaleBandX.ts +17 -0
  62. package/src/components/Chart/shared/hooks/useScaleLinearY.ts +30 -0
  63. package/src/components/Chart/shared/niceNumbers.ts +68 -0
  64. package/src/components/Chart/types.ts +100 -0
  65. package/src/components/Select/MultiSelect/OptionList.tsx +1 -1
  66. package/src/components/Select/MultiSelect/index.tsx +2 -6
  67. package/src/components/Select/MultiSelect/utils.ts +1 -1
  68. package/src/components/Select/SingleSelect/OptionList.tsx +1 -1
  69. package/src/components/Select/SingleSelect/index.tsx +2 -7
  70. package/src/components/Select/__tests__/helpers.spec.tsx +0 -36
  71. package/src/components/Select/helpers.tsx +0 -75
  72. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -0
  73. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
  74. package/src/components/Tabs/StyledScrollableTabs.tsx +1 -1
  75. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
  76. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +2 -0
  77. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +1 -0
  78. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
  79. package/src/index.ts +2 -0
  80. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +28 -0
  81. package/src/theme/components/chart.ts +28 -0
  82. package/src/theme/components/columnChart.ts +15 -0
  83. package/src/theme/getTheme.ts +6 -0
  84. package/src/types.ts +4 -0
  85. package/src/utils/__tests__/helpers.spec.ts +36 -1
  86. package/src/utils/helpers.ts +76 -1
  87. package/stats/8.100.0/rn-stats.html +4842 -0
  88. package/stats/8.99.4/rn-stats.html +4842 -0
  89. package/types/components/Badge/Status.d.ts +0 -1
  90. package/types/components/Chart/ChartSelect/StyledChartSelect.d.ts +8 -0
  91. package/types/components/Chart/ChartSelect/index.d.ts +63 -0
  92. package/types/components/Chart/ColumnChart/ColumnChartContent.d.ts +25 -0
  93. package/types/components/Chart/ColumnChart/Segment.d.ts +14 -0
  94. package/types/components/Chart/ColumnChart/StackedSegment.d.ts +28 -0
  95. package/types/components/Chart/ColumnChart/StyledColumnChart.d.ts +8 -0
  96. package/types/components/Chart/ColumnChart/index.d.ts +80 -0
  97. package/types/components/Chart/Line/Line.d.ts +21 -0
  98. package/types/components/Chart/Line/index.d.ts +35 -0
  99. package/types/components/Chart/StyledChart.d.ts +9 -0
  100. package/types/components/Chart/index.d.ts +9 -0
  101. package/types/components/Chart/shared/AxisLabel.d.ts +7 -0
  102. package/types/components/Chart/shared/ChartFrame.d.ts +30 -0
  103. package/types/components/Chart/shared/ChartHeader.d.ts +8 -0
  104. package/types/components/Chart/shared/EmptyState.d.ts +8 -0
  105. package/types/components/Chart/shared/XAxis.d.ts +8 -0
  106. package/types/components/Chart/shared/XAxisGrid.d.ts +8 -0
  107. package/types/components/Chart/shared/YAxis.d.ts +10 -0
  108. package/types/components/Chart/shared/YAxisGrid.d.ts +10 -0
  109. package/types/components/Chart/shared/constants.d.ts +2 -0
  110. package/types/components/Chart/shared/hooks/useColorScale.d.ts +7 -0
  111. package/types/components/Chart/shared/hooks/useGenerateTicks.d.ts +6 -0
  112. package/types/components/Chart/shared/hooks/useScaleBandX.d.ts +8 -0
  113. package/types/components/Chart/shared/hooks/useScaleLinearY.d.ts +9 -0
  114. package/types/components/Chart/shared/niceNumbers.d.ts +12 -0
  115. package/types/components/Chart/types.d.ts +84 -0
  116. package/types/components/Select/helpers.d.ts +0 -5
  117. package/types/index.d.ts +2 -1
  118. package/types/theme/components/chart.d.ts +22 -0
  119. package/types/theme/components/columnChart.d.ts +10 -0
  120. package/types/theme/getTheme.d.ts +4 -0
  121. package/types/types.d.ts +3 -1
  122. package/types/utils/helpers.d.ts +5 -0
@@ -1,7 +1,12 @@
1
- (node:4110) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
1
+ (node:3207) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
2
2
  (Use `node --trace-warnings ...` to show where the warning was created)
3
3
  
4
4
  src/index.ts → lib/index.js, es/index.js...
5
+ (!) Circular dependencies
6
+ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/src/selection/select.js -> node_modules/d3-selection/src/selection/index.js
7
+ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/src/selection/selectAll.js -> node_modules/d3-selection/src/selection/index.js
8
+ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/src/selection/filter.js -> node_modules/d3-selection/src/selection/index.js
9
+ ...and 12 more
5
10
  (!) [plugin replace] @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
6
11
  (!) [plugin typescript] src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx (61:35): @rollup/plugin-typescript TS2307: Cannot find module '../../../../types' or its corresponding type declarations.
7
12
  /home/runner/work/hero-design/hero-design/packages/rn/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx:61:35
@@ -10,9 +15,9 @@
10
15
     ~~~~~~~~~~~~~~~~~~~
11
16
  
12
17
  (!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.
13
- created lib/index.js, es/index.js in 55.1s
18
+ created lib/index.js, es/index.js in 1m 17.5s
14
19
  
15
20
  /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_AU.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_CA.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/index.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/types.ts → ., ....
16
21
  (!) Generated empty chunks
17
22
  "locales/types" and "locales/types"
18
- created ., . in 19.6s
23
+ created ., . in 22.3s
package/CHANGELOG.md CHANGED
@@ -1,10 +1,27 @@
1
1
  # @hero-design/rn
2
2
 
3
- ## 8.99.4-alpha.0
3
+ ## 8.100.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3905](https://github.com/Thinkei/hero-design/pull/3905) [`7e8634f5c26d24299f5caccfc4920fcac8d95bbf`](https://github.com/Thinkei/hero-design/commit/7e8634f5c26d24299f5caccfc4920fcac8d95bbf) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Chart.Line] Add component
8
+
9
+ - [#3907](https://github.com/Thinkei/hero-design/pull/3907) [`8b6414c8554a061255e3554829ba0a41d5fb969a`](https://github.com/Thinkei/hero-design/commit/8b6414c8554a061255e3554829ba0a41d5fb969a) Thanks [@ttkien](https://github.com/ttkien)! - [Chart.Column] add component
10
+
11
+ ### Patch Changes
12
+
13
+ - [#3911](https://github.com/Thinkei/hero-design/pull/3911) [`c7b09353a06721ac2d9b73535e59ac1c691af2c6`](https://github.com/Thinkei/hero-design/commit/c7b09353a06721ac2d9b73535e59ac1c691af2c6) Thanks [@ttkien](https://github.com/ttkien)! - [Badge.Status] add testID for status dot
14
+
15
+ - [#3908](https://github.com/Thinkei/hero-design/pull/3908) [`32719fc28aeaf03226d57724382a421790e230ba`](https://github.com/Thinkei/hero-design/commit/32719fc28aeaf03226d57724382a421790e230ba) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - Add new mobile visualization colors
16
+
17
+ - Updated dependencies [[`32719fc28aeaf03226d57724382a421790e230ba`](https://github.com/Thinkei/hero-design/commit/32719fc28aeaf03226d57724382a421790e230ba)]:
18
+ - @hero-design/colors@8.46.1
19
+
20
+ ## 8.99.4
4
21
 
5
22
  ### Patch Changes
6
23
 
7
- - [`53585546fb22f193a31fb7c9eaf48039cfe85061`](https://github.com/Thinkei/hero-design/commit/53585546fb22f193a31fb7c9eaf48039cfe85061) Thanks [@ttkien](https://github.com/ttkien)! - [Tab.Scroll] change the logic to workround fix android layout issue <= 27
24
+ - [#3869](https://github.com/Thinkei/hero-design/pull/3869) [`462eaeacfd5d72708a0ef90bd3374cf4317ee807`](https://github.com/Thinkei/hero-design/commit/462eaeacfd5d72708a0ef90bd3374cf4317ee807) Thanks [@ttkien](https://github.com/ttkien)! - [Tab.Scroll] change the logic to workaround fix android layout issue android 7 and 8
8
25
 
9
26
  ## 8.99.3
10
27