@hero-design/rn 8.101.0 → 8.101.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.
@@ -1,4 +1,4 @@
1
- (node:3247) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
1
+ (node:3245) 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...
@@ -15,9 +15,9 @@ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/sr
15
15
     ~~~~~~~~~~~~~~~~~~~
16
16
  
17
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.
18
- created lib/index.js, es/index.js in 1m 10.6s
18
+ created lib/index.js, es/index.js in 1m 14s
19
19
  
20
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 → ., ....
21
21
  (!) Generated empty chunks
22
22
  "locales/types" and "locales/types"
23
- created ., . in 20.1s
23
+ created ., . in 22.7s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.101.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3951](https://github.com/Thinkei/hero-design/pull/3951) [`0145a0dd1ca1ad57ce1d4848821c937b236fb408`](https://github.com/Thinkei/hero-design/commit/0145a0dd1ca1ad57ce1d4848821c937b236fb408) Thanks [@ttkien](https://github.com/ttkien)! - [Empty] internal fix title, remove Typography-wrapper if React title is React Element
8
+
3
9
  ## 8.101.0
4
10
 
5
11
  ### Minor Changes
package/es/index.js CHANGED
@@ -21863,11 +21863,11 @@ var Empty = function Empty(_ref2) {
21863
21863
  }, renderImageOrIcon$2({
21864
21864
  image: image,
21865
21865
  icon: icon
21866
- }), /*#__PURE__*/React__default.createElement(StyledTitle, {
21866
+ }), typeof title === 'string' ? /*#__PURE__*/React__default.createElement(StyledTitle, {
21867
21867
  themeVariant: variant,
21868
21868
  level: "h4",
21869
21869
  typeface: "playful"
21870
- }, title), !!description && /*#__PURE__*/React__default.createElement(StyledDescription, {
21870
+ }, title) : title, !!description && /*#__PURE__*/React__default.createElement(StyledDescription, {
21871
21871
  variant: "small",
21872
21872
  themeVariant: variant
21873
21873
  }, description));
package/lib/index.js CHANGED
@@ -21892,11 +21892,11 @@ var Empty = function Empty(_ref2) {
21892
21892
  }, renderImageOrIcon$2({
21893
21893
  image: image,
21894
21894
  icon: icon
21895
- }), /*#__PURE__*/React__namespace.default.createElement(StyledTitle, {
21895
+ }), typeof title === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledTitle, {
21896
21896
  themeVariant: variant,
21897
21897
  level: "h4",
21898
21898
  typeface: "playful"
21899
- }, title), !!description && /*#__PURE__*/React__namespace.default.createElement(StyledDescription, {
21899
+ }, title) : title, !!description && /*#__PURE__*/React__namespace.default.createElement(StyledDescription, {
21900
21900
  variant: "small",
21901
21901
  themeVariant: variant
21902
21902
  }, description));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.101.0",
3
+ "version": "8.101.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -130,46 +130,19 @@ exports[`Empty renders empty state content correctly with title is a React Eleme
130
130
  [
131
131
  {
132
132
  "color": "#001f23",
133
- "fontFamily": "Saiga-Medium",
134
- "fontSize": 24,
135
- "letterSpacing": 0.24,
136
- "lineHeight": 32,
133
+ "fontFamily": "BeVietnamPro-Regular",
134
+ "fontSize": 42,
135
+ "letterSpacing": 0,
136
+ "lineHeight": 50,
137
137
  },
138
- [
139
- {
140
- "color": "#001f23",
141
- "marginBottom": 8,
142
- "textAlign": "center",
143
- },
144
- undefined,
145
- ],
138
+ undefined,
146
139
  ]
147
140
  }
148
141
  themeIntent="body"
149
- themeLevel="h4"
150
- themeTypeface="playful"
151
- themeVariant="light"
142
+ themeLevel="h1"
143
+ themeTypeface="neutral"
152
144
  >
153
- <Text
154
- allowFontScaling={false}
155
- style={
156
- [
157
- {
158
- "color": "#001f23",
159
- "fontFamily": "BeVietnamPro-Regular",
160
- "fontSize": 42,
161
- "letterSpacing": 0,
162
- "lineHeight": 50,
163
- },
164
- undefined,
165
- ]
166
- }
167
- themeIntent="body"
168
- themeLevel="h1"
169
- themeTypeface="neutral"
170
- >
171
- You have no notification at this time
172
- </Text>
145
+ You have no notification at this time
173
146
  </Text>
174
147
  <Text
175
148
  allowFontScaling={false}
@@ -83,9 +83,13 @@ const Empty = ({
83
83
  }: EmptyProps): ReactElement => (
84
84
  <StyledWrapper style={style} testID={testID}>
85
85
  {renderImageOrIcon({ image, icon })}
86
- <StyledTitle themeVariant={variant} level="h4" typeface="playful">
87
- {title}
88
- </StyledTitle>
86
+ {typeof title === 'string' ? (
87
+ <StyledTitle themeVariant={variant} level="h4" typeface="playful">
88
+ {title}
89
+ </StyledTitle>
90
+ ) : (
91
+ title
92
+ )}
89
93
  {!!description && (
90
94
  <StyledDescription variant="small" themeVariant={variant}>
91
95
  {description}