@hero-design/rn 8.101.0 → 8.101.2-alpha.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.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +12 -0
- package/es/index.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
- package/src/components/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +8 -35
- package/src/components/StatusScreens/Empty/index.tsx +7 -3
- package/stats/8.101.0/rn-stats.html +1 -3
- package/stats/8.101.1/rn-stats.html +4842 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:4123) 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
|
[36m
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
@@ -15,9 +15,9 @@ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/sr
|
|
|
15
15
|
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
16
16
|
[39m
|
|
17
17
|
[1m[33m(!) [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.[39m[22m
|
|
18
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m
|
|
18
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m 11.4s[22m[39m
|
|
19
19
|
[36m
|
|
20
20
|
[1m/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[22m → [1m., .[22m...[39m
|
|
21
21
|
[1m[33m(!) Generated empty chunks[39m[22m
|
|
22
22
|
"locales/types" and "locales/types"
|
|
23
|
-
[32mcreated [1m., .[22m in [
|
|
23
|
+
[32mcreated [1m., .[22m in [1m21.4s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.101.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3497](https://github.com/Thinkei/hero-design/pull/3497) [`e92d1dab57316441e7b5054debe823328e1a1083`](https://github.com/Thinkei/hero-design/commit/e92d1dab57316441e7b5054debe823328e1a1083) Thanks [@luanlai2201](https://github.com/luanlai2201)! - [Font] replace playful font to Saiga
|
|
8
|
+
|
|
9
|
+
## 8.101.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
|
|
3
15
|
## 8.101.0
|
|
4
16
|
|
|
5
17
|
### 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
|
@@ -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": "
|
|
134
|
-
"fontSize":
|
|
135
|
-
"letterSpacing": 0
|
|
136
|
-
"lineHeight":
|
|
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="
|
|
150
|
-
themeTypeface="
|
|
151
|
-
themeVariant="light"
|
|
142
|
+
themeLevel="h1"
|
|
143
|
+
themeTypeface="neutral"
|
|
152
144
|
>
|
|
153
|
-
|
|
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
|
-
|
|
87
|
-
{
|
|
88
|
-
|
|
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}
|