@hero-design/rn 8.84.3 → 8.85.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.
@@ -1,7 +1,7 @@
1
- (node:3013) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
1
+ (node:2994) 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
5
  (!) [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
6
  (!) [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.
7
- created lib/index.js, es/index.js in 51.4s
7
+ created lib/index.js, es/index.js in 50s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.85.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#3605](https://github.com/Thinkei/hero-design/pull/3605) [`ab87bce2a285fbbe735eca30fa686f26eb2f2a97`](https://github.com/Thinkei/hero-design/commit/ab87bce2a285fbbe735eca30fa686f26eb2f2a97) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Box] Support gap property
8
+
3
9
  ## 8.84.3
4
10
 
5
11
  ### Patch Changes
package/es/index.js CHANGED
@@ -8831,6 +8831,10 @@ var space = {
8831
8831
  paddingVertical: {
8832
8832
  property: 'paddingVertical',
8833
8833
  scale: 'space'
8834
+ },
8835
+ gap: {
8836
+ property: 'gap',
8837
+ scale: 'space'
8834
8838
  }
8835
8839
  };
8836
8840
  var radii = {
package/lib/index.js CHANGED
@@ -8859,6 +8859,10 @@ var space = {
8859
8859
  paddingVertical: {
8860
8860
  property: 'paddingVertical',
8861
8861
  scale: 'space'
8862
+ },
8863
+ gap: {
8864
+ property: 'gap',
8865
+ scale: 'space'
8862
8866
  }
8863
8867
  };
8864
8868
  var radii = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.84.3",
3
+ "version": "8.85.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -567,6 +567,7 @@ exports[`Box map prop to valid property and correct space from theme 1`] = `
567
567
  }
568
568
  >
569
569
  <View
570
+ gap="large"
570
571
  margin="large"
571
572
  marginBottom="large"
572
573
  marginEnd="large"
@@ -588,6 +589,7 @@ exports[`Box map prop to valid property and correct space from theme 1`] = `
588
589
  style={
589
590
  [
590
591
  {
592
+ "gap": 24,
591
593
  "margin": 24,
592
594
  "marginBottom": 24,
593
595
  "marginEnd": 24,
@@ -643,6 +645,7 @@ exports[`Box map prop to valid property and correct space from theme 2`] = `
643
645
  }
644
646
  >
645
647
  <View
648
+ gap="medium"
646
649
  margin="medium"
647
650
  marginBottom="medium"
648
651
  marginEnd="medium"
@@ -664,6 +667,7 @@ exports[`Box map prop to valid property and correct space from theme 2`] = `
664
667
  style={
665
668
  [
666
669
  {
670
+ "gap": 16,
667
671
  "margin": 16,
668
672
  "marginBottom": 16,
669
673
  "marginEnd": 16,
@@ -719,6 +723,7 @@ exports[`Box map prop to valid property and correct space from theme 3`] = `
719
723
  }
720
724
  >
721
725
  <View
726
+ gap="small"
722
727
  margin="small"
723
728
  marginBottom="small"
724
729
  marginEnd="small"
@@ -740,6 +745,7 @@ exports[`Box map prop to valid property and correct space from theme 3`] = `
740
745
  style={
741
746
  [
742
747
  {
748
+ "gap": 8,
743
749
  "margin": 8,
744
750
  "marginBottom": 8,
745
751
  "marginEnd": 8,
@@ -795,6 +801,7 @@ exports[`Box map prop to valid property and correct space from theme 4`] = `
795
801
  }
796
802
  >
797
803
  <View
804
+ gap="xlarge"
798
805
  margin="xlarge"
799
806
  marginBottom="xlarge"
800
807
  marginEnd="xlarge"
@@ -816,6 +823,7 @@ exports[`Box map prop to valid property and correct space from theme 4`] = `
816
823
  style={
817
824
  [
818
825
  {
826
+ "gap": 32,
819
827
  "margin": 32,
820
828
  "marginBottom": 32,
821
829
  "marginEnd": 32,
@@ -81,6 +81,7 @@ describe('Box', () => {
81
81
  paddingStart={space}
82
82
  paddingTop={space}
83
83
  paddingVertical={space}
84
+ gap={space}
84
85
  />
85
86
  );
86
87
 
@@ -110,6 +110,10 @@ const space = {
110
110
  property: 'paddingVertical',
111
111
  scale: 'space',
112
112
  },
113
+ gap: {
114
+ property: 'gap',
115
+ scale: 'space',
116
+ },
113
117
  } as const;
114
118
 
115
119
  const radii = {