@hero-design/rn-work-uikit 1.12.5 → 1.13.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/CHANGELOG.md +15 -0
- package/es/index.js +2 -1
- package/lib/index.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @hero-design/rn-work-uikit
|
|
2
2
|
|
|
3
|
+
## 1.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#4992](https://github.com/Thinkei/hero-design/pull/4992) [`87bd2b334180c9908328a7cdd2e686694dae1d7d`](https://github.com/Thinkei/hero-design/commit/87bd2b334180c9908328a7cdd2e686694dae1d7d) Thanks [@haudao-eh](https://github.com/haudao-eh)! - [Avatar] Add `neutral` intent to Avatar. `neutral` is now the default intent, replacing `primary`.
|
|
8
|
+
|
|
9
|
+
**Note:** Any Avatar rendered without an explicit `intent` prop will now
|
|
10
|
+
display a teal-grey background instead of dark purple. Add `intent="primary"`
|
|
11
|
+
to preserve the previous appearance.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`87bd2b334180c9908328a7cdd2e686694dae1d7d`](https://github.com/Thinkei/hero-design/commit/87bd2b334180c9908328a7cdd2e686694dae1d7d)]:
|
|
16
|
+
- @hero-design/rn@8.122.0
|
|
17
|
+
|
|
3
18
|
## 1.12.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/es/index.js
CHANGED
|
@@ -5924,6 +5924,7 @@ var getAttachmentTheme = function getAttachmentTheme(theme) {
|
|
|
5924
5924
|
|
|
5925
5925
|
var getAvatarTheme = function getAvatarTheme(theme) {
|
|
5926
5926
|
var colors = {
|
|
5927
|
+
neutral: palette$8.maasstrichtBlueLight25,
|
|
5927
5928
|
primary: theme.colors.primary,
|
|
5928
5929
|
info: theme.colors.info,
|
|
5929
5930
|
danger: theme.colors.error,
|
|
@@ -16263,7 +16264,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
16263
16264
|
_ref$size = _ref.size,
|
|
16264
16265
|
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
16265
16266
|
_ref$intent = _ref.intent,
|
|
16266
|
-
intent = _ref$intent === void 0 ? '
|
|
16267
|
+
intent = _ref$intent === void 0 ? 'neutral' : _ref$intent;
|
|
16267
16268
|
var _useState = useState(false),
|
|
16268
16269
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16269
16270
|
hasImageError = _useState2[0],
|
package/lib/index.js
CHANGED
|
@@ -5954,6 +5954,7 @@ var getAttachmentTheme = function getAttachmentTheme(theme) {
|
|
|
5954
5954
|
|
|
5955
5955
|
var getAvatarTheme = function getAvatarTheme(theme) {
|
|
5956
5956
|
var colors = {
|
|
5957
|
+
neutral: palette$8.maasstrichtBlueLight25,
|
|
5957
5958
|
primary: theme.colors.primary,
|
|
5958
5959
|
info: theme.colors.info,
|
|
5959
5960
|
danger: theme.colors.error,
|
|
@@ -16293,7 +16294,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
16293
16294
|
_ref$size = _ref.size,
|
|
16294
16295
|
size = _ref$size === void 0 ? 'small' : _ref$size,
|
|
16295
16296
|
_ref$intent = _ref.intent,
|
|
16296
|
-
intent = _ref$intent === void 0 ? '
|
|
16297
|
+
intent = _ref$intent === void 0 ? 'neutral' : _ref$intent;
|
|
16297
16298
|
var _useState = React.useState(false),
|
|
16298
16299
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16299
16300
|
hasImageError = _useState2[0],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn-work-uikit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@emotion/native": "^11.9.3",
|
|
25
25
|
"@emotion/react": "^11.9.3",
|
|
26
|
-
"@hero-design/rn": "8.
|
|
26
|
+
"@hero-design/rn": "8.122.0",
|
|
27
27
|
"hero-editor": "^1.17.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|