@hero-design/rn 8.105.2 → 8.105.3
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 +10 -0
- package/es/index.js +99 -3
- package/lib/index.js +99 -3
- package/package.json +1 -1
- package/src/components/Alert/index.tsx +2 -0
- package/src/components/Button/Button.tsx +2 -0
- package/src/components/Carousel/index.tsx +4 -1
- package/src/components/Checkbox/index.tsx +2 -1
- package/src/components/Chip/index.tsx +3 -1
- package/src/components/FAB/ActionGroup/index.tsx +2 -1
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Icon/index.tsx +2 -0
- package/src/components/Image/index.tsx +3 -0
- package/src/components/StatusScreens/StatusIcon/__tests__/index.spec.tsx +3 -0
- package/src/components/StatusScreens/StatusIcon/assets/Lock.tsx +31 -0
- package/src/components/StatusScreens/StatusIcon/assets/NoResult.tsx +35 -0
- package/src/components/StatusScreens/StatusIcon/assets/Unlock.tsx +31 -0
- package/src/components/StatusScreens/StatusIcon/index.tsx +6 -0
- package/src/components/Tag/index.tsx +1 -0
- package/src/components/Toast/types.ts +2 -0
- package/src/components/Toolbar/ToolbarGroup.tsx +7 -1
- package/src/components/Typography/Text/index.tsx +3 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +1 -1
- package/src/theme/components/icon.ts +1 -1
- package/stats/8.105.2/rn-stats.html +1 -3
- package/stats/8.105.3/rn-stats.html +4844 -0
- package/types/components/Alert/index.d.ts +2 -0
- package/types/components/Button/Button.d.ts +2 -0
- package/types/components/Carousel/index.d.ts +3 -1
- package/types/components/Checkbox/index.d.ts +2 -1
- package/types/components/Chip/index.d.ts +3 -1
- package/types/components/FAB/ActionGroup/index.d.ts +2 -1
- package/types/components/Icon/index.d.ts +2 -0
- package/types/components/Image/index.d.ts +3 -0
- package/types/components/StatusScreens/StatusIcon/assets/Lock.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/NoResult.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/assets/Unlock.d.ts +4 -0
- package/types/components/StatusScreens/StatusIcon/index.d.ts +3 -0
- package/types/components/Tag/index.d.ts +1 -0
- package/types/components/Toast/types.d.ts +2 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +3 -0
- package/types/components/Typography/Text/index.d.ts +3 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:3368) 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 27s[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 [1m23.7s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.105.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4151](https://github.com/Thinkei/hero-design/pull/4151) [`5a19683ca57a274f39467f7d93b303f6ace3c1ef`](https://github.com/Thinkei/hero-design/commit/5a19683ca57a274f39467f7d93b303f6ace3c1ef) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Icon] Update info intent color
|
|
8
|
+
|
|
9
|
+
- [#4144](https://github.com/Thinkei/hero-design/pull/4144) [`156380111c911fff401d6a1ee1637c0ccb844029`](https://github.com/Thinkei/hero-design/commit/156380111c911fff401d6a1ee1637c0ccb844029) Thanks [@ngvuthanhnhan-eh-hi](https://github.com/ngvuthanhnhan-eh-hi)! - Add TypeScript deprecated comment for legacy component or prop
|
|
10
|
+
|
|
11
|
+
- [#4156](https://github.com/Thinkei/hero-design/pull/4156) [`e628ee9c9ebd82dbd63eaca8ce83c583f0d6ecc7`](https://github.com/Thinkei/hero-design/commit/e628ee9c9ebd82dbd63eaca8ce83c583f0d6ecc7) Thanks [@dathuynh-eh](https://github.com/dathuynh-eh)! - [Error][empty][Success] Add Lock, Unlock, NoResult illustration icons
|
|
12
|
+
|
|
3
13
|
## 8.105.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/es/index.js
CHANGED
|
@@ -6242,7 +6242,7 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
6242
6242
|
text: theme.colors.onDefaultGlobalSurface,
|
|
6243
6243
|
primary: theme.colors.primary,
|
|
6244
6244
|
secondary: theme.colors.secondary,
|
|
6245
|
-
info: theme.colors.
|
|
6245
|
+
info: theme.colors.onInfoSurface,
|
|
6246
6246
|
danger: theme.colors.onErrorSurface,
|
|
6247
6247
|
success: theme.colors.success,
|
|
6248
6248
|
warning: theme.colors.warning,
|
|
@@ -7772,6 +7772,9 @@ var StyledText$4 = index$b(Text$1)(function (_ref) {
|
|
|
7772
7772
|
});
|
|
7773
7773
|
|
|
7774
7774
|
var _excluded$O = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
7775
|
+
/**
|
|
7776
|
+
* @deprecated Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.
|
|
7777
|
+
*/
|
|
7775
7778
|
var Text = function Text(_ref) {
|
|
7776
7779
|
var children = _ref.children,
|
|
7777
7780
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -14406,6 +14409,9 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14406
14409
|
CardCarousel.displayName = 'CardCarousel';
|
|
14407
14410
|
|
|
14408
14411
|
var _excluded$w = ["rounded", "size", "testID", "style"];
|
|
14412
|
+
/**
|
|
14413
|
+
* @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
|
|
14414
|
+
*/
|
|
14409
14415
|
var Image = function Image(_ref) {
|
|
14410
14416
|
var _ref$rounded = _ref.rounded,
|
|
14411
14417
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -22014,6 +22020,93 @@ var Success$1 = function Success(_ref) {
|
|
|
22014
22020
|
}));
|
|
22015
22021
|
};
|
|
22016
22022
|
|
|
22023
|
+
var Lock = function Lock(_ref) {
|
|
22024
|
+
var stroke = _ref.stroke,
|
|
22025
|
+
fill = _ref.fill,
|
|
22026
|
+
testID = _ref.testID;
|
|
22027
|
+
return /*#__PURE__*/React__default.createElement(Svg, {
|
|
22028
|
+
width: "72",
|
|
22029
|
+
height: "72",
|
|
22030
|
+
viewBox: "0 0 72 72",
|
|
22031
|
+
testID: testID
|
|
22032
|
+
}, /*#__PURE__*/React__default.createElement(G, {
|
|
22033
|
+
clipPath: "url(#clip0_21932_5671)"
|
|
22034
|
+
}, /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22035
|
+
d: "M0 41.684c0-9.615 0-14.423 1.619-18.198a20 20 0 0110.499-10.499c3.775-1.619 8.582-1.619 18.198-1.619 9.615 0 14.423 0 18.198 1.62a20 20 0 0110.499 10.498c1.619 3.775 1.619 8.583 1.619 18.198 0 9.616 0 14.423-1.62 18.198a20 20 0 01-10.498 10.5C44.739 72 39.93 72 30.316 72c-9.616 0-14.423 0-18.198-1.619a20 20 0 01-10.5-10.499C0 56.107 0 51.3 0 41.684z",
|
|
22036
|
+
fill: fill
|
|
22037
|
+
}), /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22038
|
+
d: "M67.632 30.315c0-4.863-.002-8.305-.193-11.007-.187-2.666-.543-4.31-1.102-5.614a16 16 0 00-8.4-8.4c-1.303-.558-2.947-.914-5.613-1.102C49.621 4.002 46.18 4 41.315 4c-4.863 0-8.305.002-11.007.192-2.666.188-4.31.544-5.614 1.103a16.001 16.001 0 00-8.4 8.4c-.558 1.303-.914 2.947-1.102 5.613-.19 2.702-.192 6.144-.192 11.007 0 4.865.002 8.306.192 11.01.188 2.664.544 4.309 1.103 5.612a16.001 16.001 0 008.4 8.4c1.303.559 2.947.915 5.613 1.102 2.702.19 6.144.193 11.007.193v4l-3.387-.003c-7.149-.021-11.21-.187-14.453-1.469l-.357-.147a20 20 0 01-10.304-10.06l-.195-.44C11 44.74 11 39.932 11 30.316c0-9.314 0-14.117 1.472-17.84l.147-.357A20 20 0 0122.68 1.813l.44-.194C26.892 0 31.7 0 41.314 0c9.616 0 14.424 0 18.199 1.62a20 20 0 0110.499 10.498c1.618 3.775 1.619 8.583 1.619 18.197l-.003 3.388c-.022 7.414-.2 11.508-1.616 14.81a20 20 0 01-10.5 10.5c-3.774 1.618-8.582 1.619-18.198 1.619v-4c4.865 0 8.306-.002 11.01-.192 2.664-.188 4.309-.544 5.612-1.103a16 16 0 008.4-8.4c.56-1.303.915-2.947 1.102-5.613.19-2.703.193-6.144.193-11.009z",
|
|
22039
|
+
fill: stroke
|
|
22040
|
+
}), /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22041
|
+
d: "M51.316 25.816h-20a2.5 2.5 0 00-2.5 2.5v12.5a2.5 2.5 0 002.5 2.5h20a2.5 2.5 0 002.5-2.5v-12.5a2.5 2.5 0 00-2.5-2.5zm-10 11.25a2.5 2.5 0 11-.001-4.999 2.5 2.5 0 010 4.999zM48.816 23.316h-2.5v-2.5a4.948 4.948 0 00-4.889-5h-.052a4.972 4.972 0 00-5.06 4.885v2.615h-2.5V20.69a7.45 7.45 0 017.437-7.375h.076a7.474 7.474 0 017.488 7.46v2.54z",
|
|
22042
|
+
fill: stroke
|
|
22043
|
+
})), /*#__PURE__*/React__default.createElement(Defs, null, /*#__PURE__*/React__default.createElement(ClipPath, {
|
|
22044
|
+
id: "clip0_21932_5671"
|
|
22045
|
+
}, /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22046
|
+
fill: "#fff",
|
|
22047
|
+
d: "M0 0H72V72H0z"
|
|
22048
|
+
}))));
|
|
22049
|
+
};
|
|
22050
|
+
|
|
22051
|
+
var Unlock = function Unlock(_ref) {
|
|
22052
|
+
var stroke = _ref.stroke,
|
|
22053
|
+
fill = _ref.fill,
|
|
22054
|
+
testID = _ref.testID;
|
|
22055
|
+
return /*#__PURE__*/React__default.createElement(Svg, {
|
|
22056
|
+
width: "72",
|
|
22057
|
+
height: "72",
|
|
22058
|
+
viewBox: "0 0 72 72",
|
|
22059
|
+
testID: testID
|
|
22060
|
+
}, /*#__PURE__*/React__default.createElement(G, {
|
|
22061
|
+
clipPath: "url(#clip0_21932_5714)"
|
|
22062
|
+
}, /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22063
|
+
d: "M0 41.684c0-9.615 0-14.423 1.619-18.198a20 20 0 0110.499-10.499c3.775-1.619 8.582-1.619 18.198-1.619 9.615 0 14.423 0 18.198 1.62a20 20 0 0110.499 10.498c1.619 3.775 1.619 8.583 1.619 18.198 0 9.616 0 14.423-1.62 18.198a20 20 0 01-10.498 10.5C44.739 72 39.93 72 30.316 72c-9.616 0-14.423 0-18.198-1.619a20 20 0 01-10.5-10.499C0 56.107 0 51.3 0 41.684z",
|
|
22064
|
+
fill: fill
|
|
22065
|
+
}), /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22066
|
+
d: "M67.632 30.315c0-4.863-.002-8.305-.193-11.007-.187-2.666-.543-4.31-1.102-5.614a16 16 0 00-8.4-8.4c-1.303-.558-2.947-.914-5.613-1.102C49.621 4.002 46.18 4 41.315 4c-4.863 0-8.305.002-11.007.192-2.666.188-4.31.544-5.614 1.103a16.001 16.001 0 00-8.4 8.4c-.558 1.303-.914 2.947-1.102 5.613-.19 2.702-.192 6.144-.192 11.007 0 4.865.002 8.306.192 11.01.188 2.664.544 4.309 1.103 5.612a16.001 16.001 0 008.4 8.4c1.303.559 2.947.915 5.613 1.102 2.702.19 6.144.193 11.007.193v4l-3.387-.003c-7.149-.021-11.21-.187-14.453-1.469l-.357-.147a20 20 0 01-10.304-10.06l-.195-.44C11 44.74 11 39.932 11 30.316c0-9.314 0-14.117 1.472-17.84l.147-.357A20 20 0 0122.68 1.813l.44-.194C26.892 0 31.7 0 41.314 0c9.616 0 14.424 0 18.199 1.62a20 20 0 0110.499 10.498c1.618 3.775 1.619 8.583 1.619 18.197l-.003 3.388c-.022 7.414-.2 11.508-1.616 14.81a20 20 0 01-10.5 10.5c-3.774 1.618-8.582 1.619-18.198 1.619v-4c4.865 0 8.306-.002 11.01-.192 2.664-.188 4.309-.544 5.612-1.103a16 16 0 008.4-8.4c.56-1.303.915-2.947 1.102-5.613.19-2.703.193-6.144.193-11.009z",
|
|
22067
|
+
fill: stroke
|
|
22068
|
+
}), /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22069
|
+
d: "M51.316 25.816h-20a2.5 2.5 0 00-2.5 2.5v12.5a2.5 2.5 0 002.5 2.5h20a2.5 2.5 0 002.5-2.5v-12.5a2.5 2.5 0 00-2.5-2.5zm-10 11.25a2.5 2.5 0 11-.001-4.999 2.5 2.5 0 010 4.999zM47.313 16.27a7.398 7.398 0 00-5.86-2.954h-.2c-4.066 0-7.395 3.287-7.437 7.375v2.625h2.5v-2.611c.027-2.707 2.237-4.89 5.059-4.89h.052a4.908 4.908 0 013.891 1.963 1.25 1.25 0 001.995-1.508z",
|
|
22070
|
+
fill: stroke
|
|
22071
|
+
})), /*#__PURE__*/React__default.createElement(Defs, null, /*#__PURE__*/React__default.createElement(ClipPath, {
|
|
22072
|
+
id: "clip0_21932_5714"
|
|
22073
|
+
}, /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22074
|
+
fill: "#fff",
|
|
22075
|
+
d: "M0 0H72V72H0z"
|
|
22076
|
+
}))));
|
|
22077
|
+
};
|
|
22078
|
+
|
|
22079
|
+
var NoResult = function NoResult(_ref) {
|
|
22080
|
+
var stroke = _ref.stroke,
|
|
22081
|
+
fill = _ref.fill,
|
|
22082
|
+
testID = _ref.testID;
|
|
22083
|
+
return /*#__PURE__*/React__default.createElement(Svg, {
|
|
22084
|
+
width: "72",
|
|
22085
|
+
height: "72",
|
|
22086
|
+
viewBox: "0 0 72 72",
|
|
22087
|
+
testID: testID
|
|
22088
|
+
}, /*#__PURE__*/React__default.createElement(G, {
|
|
22089
|
+
clipPath: "url(#clip0_21888_4920)"
|
|
22090
|
+
}, /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22091
|
+
d: "M0 41.684c0-9.615 0-14.423 1.619-18.198a20 20 0 0110.499-10.499c3.775-1.619 8.582-1.619 18.198-1.619 9.615 0 14.423 0 18.198 1.62a20 20 0 0110.499 10.498c1.619 3.775 1.619 8.583 1.619 18.198 0 9.616 0 14.423-1.62 18.198a20 20 0 01-10.498 10.5C44.739 72 39.93 72 30.316 72c-9.616 0-14.423 0-18.198-1.619a20 20 0 01-10.5-10.499C0 56.107 0 51.3 0 41.684z",
|
|
22092
|
+
fill: fill
|
|
22093
|
+
}), /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22094
|
+
d: "M67.632 30.315c0-4.863-.002-8.305-.193-11.007-.187-2.666-.543-4.31-1.102-5.614a16 16 0 00-8.4-8.4c-1.303-.558-2.947-.914-5.613-1.102C49.621 4.002 46.18 4 41.315 4c-4.863 0-8.305.002-11.007.192-2.666.188-4.31.544-5.614 1.103a16.001 16.001 0 00-8.4 8.4c-.558 1.303-.914 2.947-1.102 5.613-.19 2.702-.192 6.144-.192 11.007 0 4.865.002 8.306.192 11.01.188 2.664.544 4.309 1.103 5.612a16.001 16.001 0 008.4 8.4c1.303.559 2.947.915 5.613 1.102 2.702.19 6.144.193 11.007.193v4l-3.387-.003c-7.149-.021-11.21-.187-14.453-1.469l-.357-.147a20 20 0 01-10.304-10.06l-.195-.44C11 44.74 11 39.932 11 30.316c0-9.314 0-14.117 1.472-17.84l.147-.357A20 20 0 0122.68 1.813l.44-.194C26.892 0 31.7 0 41.314 0c9.616 0 14.424 0 18.199 1.62a20 20 0 0110.499 10.498c1.618 3.775 1.619 8.583 1.619 18.197l-.003 3.388c-.022 7.414-.2 11.508-1.616 14.81a20 20 0 01-10.5 10.5c-3.774 1.618-8.582 1.619-18.198 1.619v-4c4.865 0 8.306-.002 11.01-.192 2.664-.188 4.309-.544 5.612-1.103a16 16 0 008.4-8.4c.56-1.303.915-2.947 1.102-5.613.19-2.703.193-6.144.193-11.009z",
|
|
22095
|
+
fill: stroke
|
|
22096
|
+
}), /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22097
|
+
d: "M55.06 39.357l-7.79-7.79a10.273 10.273 0 00.434-8.244l-2.887 2.887c.038.243.063.488.075.733a6.949 6.949 0 01-6.949 6.949 6.748 6.748 0 01-.733-.075l-2.887 2.887a10.273 10.273 0 008.245-.434l7.789 7.79a.868.868 0 001.23 0l3.474-3.473a.87.87 0 000-1.23zM33.033 31.854a6.948 6.948 0 119.821-9.821l2.456-2.457a10.421 10.421 0 00-17.228 3.241 10.423 10.423 0 002.494 11.493l2.457-2.456z",
|
|
22098
|
+
fill: stroke
|
|
22099
|
+
}), /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22100
|
+
d: "M29.258 37.366a1.737 1.737 0 01-1.228-2.965L45.4 17.03a1.737 1.737 0 012.457 2.456l-17.37 17.371a1.737 1.737 0 01-1.229.509z",
|
|
22101
|
+
fill: stroke
|
|
22102
|
+
})), /*#__PURE__*/React__default.createElement(Defs, null, /*#__PURE__*/React__default.createElement(ClipPath, {
|
|
22103
|
+
id: "clip0_21888_4920"
|
|
22104
|
+
}, /*#__PURE__*/React__default.createElement(Path$1, {
|
|
22105
|
+
fill: "#fff",
|
|
22106
|
+
d: "M0 0H72V72H0z"
|
|
22107
|
+
}))));
|
|
22108
|
+
};
|
|
22109
|
+
|
|
22017
22110
|
var StatusIcons = {
|
|
22018
22111
|
add: Add,
|
|
22019
22112
|
boom: Boom,
|
|
@@ -22030,7 +22123,10 @@ var StatusIcons = {
|
|
|
22030
22123
|
confetti: Confetti,
|
|
22031
22124
|
error: ErrorIcon,
|
|
22032
22125
|
info: Info,
|
|
22033
|
-
success: Success$1
|
|
22126
|
+
success: Success$1,
|
|
22127
|
+
lock: Lock,
|
|
22128
|
+
unlock: Unlock,
|
|
22129
|
+
'no-result': NoResult
|
|
22034
22130
|
};
|
|
22035
22131
|
var StatusIcon = function StatusIcon(_ref) {
|
|
22036
22132
|
var icon = _ref.icon,
|
|
@@ -27300,7 +27396,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
27300
27396
|
align = _ref$align === void 0 ? 'right' : _ref$align,
|
|
27301
27397
|
_ref$items = _ref.items,
|
|
27302
27398
|
items = _ref$items === void 0 ? [] : _ref$items;
|
|
27303
|
-
useDeprecation("Toolbar's align prop is deprecated", align !== 'right');
|
|
27399
|
+
useDeprecation("Toolbar's align prop is deprecated for 'left' and 'center' alignment. Please use 'right' instead.", align !== 'right');
|
|
27304
27400
|
return /*#__PURE__*/React__default.createElement(ToolbarGroupWrapper, {
|
|
27305
27401
|
align: align
|
|
27306
27402
|
}, items.map(function (_ref2) {
|
package/lib/index.js
CHANGED
|
@@ -6271,7 +6271,7 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
6271
6271
|
text: theme.colors.onDefaultGlobalSurface,
|
|
6272
6272
|
primary: theme.colors.primary,
|
|
6273
6273
|
secondary: theme.colors.secondary,
|
|
6274
|
-
info: theme.colors.
|
|
6274
|
+
info: theme.colors.onInfoSurface,
|
|
6275
6275
|
danger: theme.colors.onErrorSurface,
|
|
6276
6276
|
success: theme.colors.success,
|
|
6277
6277
|
warning: theme.colors.warning,
|
|
@@ -7801,6 +7801,9 @@ var StyledText$4 = index$b(reactNative.Text)(function (_ref) {
|
|
|
7801
7801
|
});
|
|
7802
7802
|
|
|
7803
7803
|
var _excluded$O = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
7804
|
+
/**
|
|
7805
|
+
* @deprecated Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.
|
|
7806
|
+
*/
|
|
7804
7807
|
var Text = function Text(_ref) {
|
|
7805
7808
|
var children = _ref.children,
|
|
7806
7809
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -14435,6 +14438,9 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14435
14438
|
CardCarousel.displayName = 'CardCarousel';
|
|
14436
14439
|
|
|
14437
14440
|
var _excluded$w = ["rounded", "size", "testID", "style"];
|
|
14441
|
+
/**
|
|
14442
|
+
* @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
|
|
14443
|
+
*/
|
|
14438
14444
|
var Image = function Image(_ref) {
|
|
14439
14445
|
var _ref$rounded = _ref.rounded,
|
|
14440
14446
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -22043,6 +22049,93 @@ var Success$1 = function Success(_ref) {
|
|
|
22043
22049
|
}));
|
|
22044
22050
|
};
|
|
22045
22051
|
|
|
22052
|
+
var Lock = function Lock(_ref) {
|
|
22053
|
+
var stroke = _ref.stroke,
|
|
22054
|
+
fill = _ref.fill,
|
|
22055
|
+
testID = _ref.testID;
|
|
22056
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
22057
|
+
width: "72",
|
|
22058
|
+
height: "72",
|
|
22059
|
+
viewBox: "0 0 72 72",
|
|
22060
|
+
testID: testID
|
|
22061
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
|
|
22062
|
+
clipPath: "url(#clip0_21932_5671)"
|
|
22063
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22064
|
+
d: "M0 41.684c0-9.615 0-14.423 1.619-18.198a20 20 0 0110.499-10.499c3.775-1.619 8.582-1.619 18.198-1.619 9.615 0 14.423 0 18.198 1.62a20 20 0 0110.499 10.498c1.619 3.775 1.619 8.583 1.619 18.198 0 9.616 0 14.423-1.62 18.198a20 20 0 01-10.498 10.5C44.739 72 39.93 72 30.316 72c-9.616 0-14.423 0-18.198-1.619a20 20 0 01-10.5-10.499C0 56.107 0 51.3 0 41.684z",
|
|
22065
|
+
fill: fill
|
|
22066
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22067
|
+
d: "M67.632 30.315c0-4.863-.002-8.305-.193-11.007-.187-2.666-.543-4.31-1.102-5.614a16 16 0 00-8.4-8.4c-1.303-.558-2.947-.914-5.613-1.102C49.621 4.002 46.18 4 41.315 4c-4.863 0-8.305.002-11.007.192-2.666.188-4.31.544-5.614 1.103a16.001 16.001 0 00-8.4 8.4c-.558 1.303-.914 2.947-1.102 5.613-.19 2.702-.192 6.144-.192 11.007 0 4.865.002 8.306.192 11.01.188 2.664.544 4.309 1.103 5.612a16.001 16.001 0 008.4 8.4c1.303.559 2.947.915 5.613 1.102 2.702.19 6.144.193 11.007.193v4l-3.387-.003c-7.149-.021-11.21-.187-14.453-1.469l-.357-.147a20 20 0 01-10.304-10.06l-.195-.44C11 44.74 11 39.932 11 30.316c0-9.314 0-14.117 1.472-17.84l.147-.357A20 20 0 0122.68 1.813l.44-.194C26.892 0 31.7 0 41.314 0c9.616 0 14.424 0 18.199 1.62a20 20 0 0110.499 10.498c1.618 3.775 1.619 8.583 1.619 18.197l-.003 3.388c-.022 7.414-.2 11.508-1.616 14.81a20 20 0 01-10.5 10.5c-3.774 1.618-8.582 1.619-18.198 1.619v-4c4.865 0 8.306-.002 11.01-.192 2.664-.188 4.309-.544 5.612-1.103a16 16 0 008.4-8.4c.56-1.303.915-2.947 1.102-5.613.19-2.703.193-6.144.193-11.009z",
|
|
22068
|
+
fill: stroke
|
|
22069
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22070
|
+
d: "M51.316 25.816h-20a2.5 2.5 0 00-2.5 2.5v12.5a2.5 2.5 0 002.5 2.5h20a2.5 2.5 0 002.5-2.5v-12.5a2.5 2.5 0 00-2.5-2.5zm-10 11.25a2.5 2.5 0 11-.001-4.999 2.5 2.5 0 010 4.999zM48.816 23.316h-2.5v-2.5a4.948 4.948 0 00-4.889-5h-.052a4.972 4.972 0 00-5.06 4.885v2.615h-2.5V20.69a7.45 7.45 0 017.437-7.375h.076a7.474 7.474 0 017.488 7.46v2.54z",
|
|
22071
|
+
fill: stroke
|
|
22072
|
+
})), /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
|
|
22073
|
+
id: "clip0_21932_5671"
|
|
22074
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22075
|
+
fill: "#fff",
|
|
22076
|
+
d: "M0 0H72V72H0z"
|
|
22077
|
+
}))));
|
|
22078
|
+
};
|
|
22079
|
+
|
|
22080
|
+
var Unlock = function Unlock(_ref) {
|
|
22081
|
+
var stroke = _ref.stroke,
|
|
22082
|
+
fill = _ref.fill,
|
|
22083
|
+
testID = _ref.testID;
|
|
22084
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
22085
|
+
width: "72",
|
|
22086
|
+
height: "72",
|
|
22087
|
+
viewBox: "0 0 72 72",
|
|
22088
|
+
testID: testID
|
|
22089
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
|
|
22090
|
+
clipPath: "url(#clip0_21932_5714)"
|
|
22091
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22092
|
+
d: "M0 41.684c0-9.615 0-14.423 1.619-18.198a20 20 0 0110.499-10.499c3.775-1.619 8.582-1.619 18.198-1.619 9.615 0 14.423 0 18.198 1.62a20 20 0 0110.499 10.498c1.619 3.775 1.619 8.583 1.619 18.198 0 9.616 0 14.423-1.62 18.198a20 20 0 01-10.498 10.5C44.739 72 39.93 72 30.316 72c-9.616 0-14.423 0-18.198-1.619a20 20 0 01-10.5-10.499C0 56.107 0 51.3 0 41.684z",
|
|
22093
|
+
fill: fill
|
|
22094
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22095
|
+
d: "M67.632 30.315c0-4.863-.002-8.305-.193-11.007-.187-2.666-.543-4.31-1.102-5.614a16 16 0 00-8.4-8.4c-1.303-.558-2.947-.914-5.613-1.102C49.621 4.002 46.18 4 41.315 4c-4.863 0-8.305.002-11.007.192-2.666.188-4.31.544-5.614 1.103a16.001 16.001 0 00-8.4 8.4c-.558 1.303-.914 2.947-1.102 5.613-.19 2.702-.192 6.144-.192 11.007 0 4.865.002 8.306.192 11.01.188 2.664.544 4.309 1.103 5.612a16.001 16.001 0 008.4 8.4c1.303.559 2.947.915 5.613 1.102 2.702.19 6.144.193 11.007.193v4l-3.387-.003c-7.149-.021-11.21-.187-14.453-1.469l-.357-.147a20 20 0 01-10.304-10.06l-.195-.44C11 44.74 11 39.932 11 30.316c0-9.314 0-14.117 1.472-17.84l.147-.357A20 20 0 0122.68 1.813l.44-.194C26.892 0 31.7 0 41.314 0c9.616 0 14.424 0 18.199 1.62a20 20 0 0110.499 10.498c1.618 3.775 1.619 8.583 1.619 18.197l-.003 3.388c-.022 7.414-.2 11.508-1.616 14.81a20 20 0 01-10.5 10.5c-3.774 1.618-8.582 1.619-18.198 1.619v-4c4.865 0 8.306-.002 11.01-.192 2.664-.188 4.309-.544 5.612-1.103a16 16 0 008.4-8.4c.56-1.303.915-2.947 1.102-5.613.19-2.703.193-6.144.193-11.009z",
|
|
22096
|
+
fill: stroke
|
|
22097
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22098
|
+
d: "M51.316 25.816h-20a2.5 2.5 0 00-2.5 2.5v12.5a2.5 2.5 0 002.5 2.5h20a2.5 2.5 0 002.5-2.5v-12.5a2.5 2.5 0 00-2.5-2.5zm-10 11.25a2.5 2.5 0 11-.001-4.999 2.5 2.5 0 010 4.999zM47.313 16.27a7.398 7.398 0 00-5.86-2.954h-.2c-4.066 0-7.395 3.287-7.437 7.375v2.625h2.5v-2.611c.027-2.707 2.237-4.89 5.059-4.89h.052a4.908 4.908 0 013.891 1.963 1.25 1.25 0 001.995-1.508z",
|
|
22099
|
+
fill: stroke
|
|
22100
|
+
})), /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
|
|
22101
|
+
id: "clip0_21932_5714"
|
|
22102
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22103
|
+
fill: "#fff",
|
|
22104
|
+
d: "M0 0H72V72H0z"
|
|
22105
|
+
}))));
|
|
22106
|
+
};
|
|
22107
|
+
|
|
22108
|
+
var NoResult = function NoResult(_ref) {
|
|
22109
|
+
var stroke = _ref.stroke,
|
|
22110
|
+
fill = _ref.fill,
|
|
22111
|
+
testID = _ref.testID;
|
|
22112
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
22113
|
+
width: "72",
|
|
22114
|
+
height: "72",
|
|
22115
|
+
viewBox: "0 0 72 72",
|
|
22116
|
+
testID: testID
|
|
22117
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
|
|
22118
|
+
clipPath: "url(#clip0_21888_4920)"
|
|
22119
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22120
|
+
d: "M0 41.684c0-9.615 0-14.423 1.619-18.198a20 20 0 0110.499-10.499c3.775-1.619 8.582-1.619 18.198-1.619 9.615 0 14.423 0 18.198 1.62a20 20 0 0110.499 10.498c1.619 3.775 1.619 8.583 1.619 18.198 0 9.616 0 14.423-1.62 18.198a20 20 0 01-10.498 10.5C44.739 72 39.93 72 30.316 72c-9.616 0-14.423 0-18.198-1.619a20 20 0 01-10.5-10.499C0 56.107 0 51.3 0 41.684z",
|
|
22121
|
+
fill: fill
|
|
22122
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22123
|
+
d: "M67.632 30.315c0-4.863-.002-8.305-.193-11.007-.187-2.666-.543-4.31-1.102-5.614a16 16 0 00-8.4-8.4c-1.303-.558-2.947-.914-5.613-1.102C49.621 4.002 46.18 4 41.315 4c-4.863 0-8.305.002-11.007.192-2.666.188-4.31.544-5.614 1.103a16.001 16.001 0 00-8.4 8.4c-.558 1.303-.914 2.947-1.102 5.613-.19 2.702-.192 6.144-.192 11.007 0 4.865.002 8.306.192 11.01.188 2.664.544 4.309 1.103 5.612a16.001 16.001 0 008.4 8.4c1.303.559 2.947.915 5.613 1.102 2.702.19 6.144.193 11.007.193v4l-3.387-.003c-7.149-.021-11.21-.187-14.453-1.469l-.357-.147a20 20 0 01-10.304-10.06l-.195-.44C11 44.74 11 39.932 11 30.316c0-9.314 0-14.117 1.472-17.84l.147-.357A20 20 0 0122.68 1.813l.44-.194C26.892 0 31.7 0 41.314 0c9.616 0 14.424 0 18.199 1.62a20 20 0 0110.499 10.498c1.618 3.775 1.619 8.583 1.619 18.197l-.003 3.388c-.022 7.414-.2 11.508-1.616 14.81a20 20 0 01-10.5 10.5c-3.774 1.618-8.582 1.619-18.198 1.619v-4c4.865 0 8.306-.002 11.01-.192 2.664-.188 4.309-.544 5.612-1.103a16 16 0 008.4-8.4c.56-1.303.915-2.947 1.102-5.613.19-2.703.193-6.144.193-11.009z",
|
|
22124
|
+
fill: stroke
|
|
22125
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22126
|
+
d: "M55.06 39.357l-7.79-7.79a10.273 10.273 0 00.434-8.244l-2.887 2.887c.038.243.063.488.075.733a6.949 6.949 0 01-6.949 6.949 6.748 6.748 0 01-.733-.075l-2.887 2.887a10.273 10.273 0 008.245-.434l7.789 7.79a.868.868 0 001.23 0l3.474-3.473a.87.87 0 000-1.23zM33.033 31.854a6.948 6.948 0 119.821-9.821l2.456-2.457a10.421 10.421 0 00-17.228 3.241 10.423 10.423 0 002.494 11.493l2.457-2.456z",
|
|
22127
|
+
fill: stroke
|
|
22128
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22129
|
+
d: "M29.258 37.366a1.737 1.737 0 01-1.228-2.965L45.4 17.03a1.737 1.737 0 012.457 2.456l-17.37 17.371a1.737 1.737 0 01-1.229.509z",
|
|
22130
|
+
fill: stroke
|
|
22131
|
+
})), /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
|
|
22132
|
+
id: "clip0_21888_4920"
|
|
22133
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22134
|
+
fill: "#fff",
|
|
22135
|
+
d: "M0 0H72V72H0z"
|
|
22136
|
+
}))));
|
|
22137
|
+
};
|
|
22138
|
+
|
|
22046
22139
|
var StatusIcons = {
|
|
22047
22140
|
add: Add,
|
|
22048
22141
|
boom: Boom,
|
|
@@ -22059,7 +22152,10 @@ var StatusIcons = {
|
|
|
22059
22152
|
confetti: Confetti,
|
|
22060
22153
|
error: ErrorIcon,
|
|
22061
22154
|
info: Info,
|
|
22062
|
-
success: Success$1
|
|
22155
|
+
success: Success$1,
|
|
22156
|
+
lock: Lock,
|
|
22157
|
+
unlock: Unlock,
|
|
22158
|
+
'no-result': NoResult
|
|
22063
22159
|
};
|
|
22064
22160
|
var StatusIcon = function StatusIcon(_ref) {
|
|
22065
22161
|
var icon = _ref.icon,
|
|
@@ -27329,7 +27425,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
27329
27425
|
align = _ref$align === void 0 ? 'right' : _ref$align,
|
|
27330
27426
|
_ref$items = _ref.items,
|
|
27331
27427
|
items = _ref$items === void 0 ? [] : _ref$items;
|
|
27332
|
-
useDeprecation("Toolbar's align prop is deprecated", align !== 'right');
|
|
27428
|
+
useDeprecation("Toolbar's align prop is deprecated for 'left' and 'center' alignment. Please use 'right' instead.", align !== 'right');
|
|
27333
27429
|
return /*#__PURE__*/React__namespace.default.createElement(ToolbarGroupWrapper, {
|
|
27334
27430
|
align: align
|
|
27335
27431
|
}, items.map(function (_ref2) {
|
package/package.json
CHANGED
|
@@ -56,6 +56,8 @@ interface BasicAlertProps {
|
|
|
56
56
|
icon?: null | IconName;
|
|
57
57
|
/**
|
|
58
58
|
* Visual intent color to apply to alert.
|
|
59
|
+
*
|
|
60
|
+
* intent['notification'] - @deprecated Will be removed in the next major release. Please use other intents instead.
|
|
59
61
|
*/
|
|
60
62
|
intent?: 'success' | 'info' | 'warning' | 'error' | 'notification';
|
|
61
63
|
/**
|
|
@@ -62,7 +62,9 @@ interface CarouselProps extends ViewProps {
|
|
|
62
62
|
*/
|
|
63
63
|
selectedItemIndex?: number;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Position of the page control
|
|
66
|
+
*
|
|
67
|
+
* pageControlPosition['bottom'] - @deprecated
|
|
66
68
|
*/
|
|
67
69
|
pageControlPosition?: 'top' | 'bottom';
|
|
68
70
|
}
|
|
@@ -80,6 +82,7 @@ export function useStateFromProp<T>(
|
|
|
80
82
|
const noop = (_: number): boolean => {
|
|
81
83
|
return true;
|
|
82
84
|
};
|
|
85
|
+
|
|
83
86
|
const Carousel = ({
|
|
84
87
|
items,
|
|
85
88
|
onItemIndexChange,
|
|
@@ -19,7 +19,8 @@ export interface CheckboxProps {
|
|
|
19
19
|
*/
|
|
20
20
|
description?: string;
|
|
21
21
|
/**
|
|
22
|
-
* @deprecated
|
|
22
|
+
* @deprecated `withBorder` prop will be removed in the next major release, all checkboxes will have border by default. Please remove it.
|
|
23
|
+
*
|
|
23
24
|
* Whether the border is shown.
|
|
24
25
|
*/
|
|
25
26
|
withBorder?: boolean;
|
|
@@ -12,7 +12,9 @@ export interface ChipProps extends ViewProps {
|
|
|
12
12
|
*/
|
|
13
13
|
label: string | ReactNode;
|
|
14
14
|
/**
|
|
15
|
-
* Variant of the chip.
|
|
15
|
+
* Variant of the chip.
|
|
16
|
+
*
|
|
17
|
+
* variant['outlined' | 'filled'] - @deprecated
|
|
16
18
|
*/
|
|
17
19
|
variant?:
|
|
18
20
|
| 'selection'
|
|
@@ -26,7 +26,8 @@ export type ActionGroupHandles = {
|
|
|
26
26
|
|
|
27
27
|
export interface ActionGroupProps {
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated headerTitle will be removed in the next major release.
|
|
29
|
+
* @deprecated FAB.ActionGroup's `headerTitle` prop will be removed in the next major release. Please remove it.
|
|
30
|
+
*
|
|
30
31
|
* Title of the action group header.
|
|
31
32
|
*/
|
|
32
33
|
headerTitle?: string;
|
|
@@ -10,6 +10,8 @@ export type IconName = typeof IconList[number];
|
|
|
10
10
|
export interface IconProps extends AccessibilityProps {
|
|
11
11
|
/**
|
|
12
12
|
* Name of the Icon.
|
|
13
|
+
*
|
|
14
|
+
* icon['carat-*'] - @deprecated Icons starting with 'carat' are deprecated and will be removed in the next major release, please use 'caret' instead.
|
|
13
15
|
*/
|
|
14
16
|
icon: IconName;
|
|
15
17
|
/**
|
|
@@ -19,6 +19,9 @@ export interface ImageProps extends RNImageProps {
|
|
|
19
19
|
testID?: string;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
|
|
24
|
+
*/
|
|
22
25
|
const Image = ({
|
|
23
26
|
rounded = false,
|
|
24
27
|
size = '6xlarge',
|
|
@@ -21,6 +21,9 @@ describe('StatusIcon', () => {
|
|
|
21
21
|
${'star'}
|
|
22
22
|
${'success'}
|
|
23
23
|
${'user'}
|
|
24
|
+
${'lock'}
|
|
25
|
+
${'unlock'}
|
|
26
|
+
${'no-result'}
|
|
24
27
|
`('should render correctly', ({ icon }) => {
|
|
25
28
|
const { getByTestId } = renderWithTheme(
|
|
26
29
|
<StatusIcon icon={icon as StatusIconName} testID={`${icon}-icon`} />
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { G, Path, Defs, ClipPath } from 'react-native-svg';
|
|
3
|
+
import { StatusSvgProps } from '../types';
|
|
4
|
+
|
|
5
|
+
const Lock = ({ stroke, fill, testID }: StatusSvgProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Svg width="72" height="72" viewBox="0 0 72 72" testID={testID}>
|
|
8
|
+
<G clipPath="url(#clip0_21932_5671)">
|
|
9
|
+
<Path
|
|
10
|
+
d="M0 41.684c0-9.615 0-14.423 1.619-18.198a20 20 0 0110.499-10.499c3.775-1.619 8.582-1.619 18.198-1.619 9.615 0 14.423 0 18.198 1.62a20 20 0 0110.499 10.498c1.619 3.775 1.619 8.583 1.619 18.198 0 9.616 0 14.423-1.62 18.198a20 20 0 01-10.498 10.5C44.739 72 39.93 72 30.316 72c-9.616 0-14.423 0-18.198-1.619a20 20 0 01-10.5-10.499C0 56.107 0 51.3 0 41.684z"
|
|
11
|
+
fill={fill}
|
|
12
|
+
/>
|
|
13
|
+
<Path
|
|
14
|
+
d="M67.632 30.315c0-4.863-.002-8.305-.193-11.007-.187-2.666-.543-4.31-1.102-5.614a16 16 0 00-8.4-8.4c-1.303-.558-2.947-.914-5.613-1.102C49.621 4.002 46.18 4 41.315 4c-4.863 0-8.305.002-11.007.192-2.666.188-4.31.544-5.614 1.103a16.001 16.001 0 00-8.4 8.4c-.558 1.303-.914 2.947-1.102 5.613-.19 2.702-.192 6.144-.192 11.007 0 4.865.002 8.306.192 11.01.188 2.664.544 4.309 1.103 5.612a16.001 16.001 0 008.4 8.4c1.303.559 2.947.915 5.613 1.102 2.702.19 6.144.193 11.007.193v4l-3.387-.003c-7.149-.021-11.21-.187-14.453-1.469l-.357-.147a20 20 0 01-10.304-10.06l-.195-.44C11 44.74 11 39.932 11 30.316c0-9.314 0-14.117 1.472-17.84l.147-.357A20 20 0 0122.68 1.813l.44-.194C26.892 0 31.7 0 41.314 0c9.616 0 14.424 0 18.199 1.62a20 20 0 0110.499 10.498c1.618 3.775 1.619 8.583 1.619 18.197l-.003 3.388c-.022 7.414-.2 11.508-1.616 14.81a20 20 0 01-10.5 10.5c-3.774 1.618-8.582 1.619-18.198 1.619v-4c4.865 0 8.306-.002 11.01-.192 2.664-.188 4.309-.544 5.612-1.103a16 16 0 008.4-8.4c.56-1.303.915-2.947 1.102-5.613.19-2.703.193-6.144.193-11.009z"
|
|
15
|
+
fill={stroke}
|
|
16
|
+
/>
|
|
17
|
+
<Path
|
|
18
|
+
d="M51.316 25.816h-20a2.5 2.5 0 00-2.5 2.5v12.5a2.5 2.5 0 002.5 2.5h20a2.5 2.5 0 002.5-2.5v-12.5a2.5 2.5 0 00-2.5-2.5zm-10 11.25a2.5 2.5 0 11-.001-4.999 2.5 2.5 0 010 4.999zM48.816 23.316h-2.5v-2.5a4.948 4.948 0 00-4.889-5h-.052a4.972 4.972 0 00-5.06 4.885v2.615h-2.5V20.69a7.45 7.45 0 017.437-7.375h.076a7.474 7.474 0 017.488 7.46v2.54z"
|
|
19
|
+
fill={stroke}
|
|
20
|
+
/>
|
|
21
|
+
</G>
|
|
22
|
+
<Defs>
|
|
23
|
+
<ClipPath id="clip0_21932_5671">
|
|
24
|
+
<Path fill="#fff" d="M0 0H72V72H0z" />
|
|
25
|
+
</ClipPath>
|
|
26
|
+
</Defs>
|
|
27
|
+
</Svg>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default Lock;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { G, Path, Defs, ClipPath } from 'react-native-svg';
|
|
3
|
+
import { StatusSvgProps } from '../types';
|
|
4
|
+
|
|
5
|
+
const NoResult = ({ stroke, fill, testID }: StatusSvgProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Svg width="72" height="72" viewBox="0 0 72 72" testID={testID}>
|
|
8
|
+
<G clipPath="url(#clip0_21888_4920)">
|
|
9
|
+
<Path
|
|
10
|
+
d="M0 41.684c0-9.615 0-14.423 1.619-18.198a20 20 0 0110.499-10.499c3.775-1.619 8.582-1.619 18.198-1.619 9.615 0 14.423 0 18.198 1.62a20 20 0 0110.499 10.498c1.619 3.775 1.619 8.583 1.619 18.198 0 9.616 0 14.423-1.62 18.198a20 20 0 01-10.498 10.5C44.739 72 39.93 72 30.316 72c-9.616 0-14.423 0-18.198-1.619a20 20 0 01-10.5-10.499C0 56.107 0 51.3 0 41.684z"
|
|
11
|
+
fill={fill}
|
|
12
|
+
/>
|
|
13
|
+
<Path
|
|
14
|
+
d="M67.632 30.315c0-4.863-.002-8.305-.193-11.007-.187-2.666-.543-4.31-1.102-5.614a16 16 0 00-8.4-8.4c-1.303-.558-2.947-.914-5.613-1.102C49.621 4.002 46.18 4 41.315 4c-4.863 0-8.305.002-11.007.192-2.666.188-4.31.544-5.614 1.103a16.001 16.001 0 00-8.4 8.4c-.558 1.303-.914 2.947-1.102 5.613-.19 2.702-.192 6.144-.192 11.007 0 4.865.002 8.306.192 11.01.188 2.664.544 4.309 1.103 5.612a16.001 16.001 0 008.4 8.4c1.303.559 2.947.915 5.613 1.102 2.702.19 6.144.193 11.007.193v4l-3.387-.003c-7.149-.021-11.21-.187-14.453-1.469l-.357-.147a20 20 0 01-10.304-10.06l-.195-.44C11 44.74 11 39.932 11 30.316c0-9.314 0-14.117 1.472-17.84l.147-.357A20 20 0 0122.68 1.813l.44-.194C26.892 0 31.7 0 41.314 0c9.616 0 14.424 0 18.199 1.62a20 20 0 0110.499 10.498c1.618 3.775 1.619 8.583 1.619 18.197l-.003 3.388c-.022 7.414-.2 11.508-1.616 14.81a20 20 0 01-10.5 10.5c-3.774 1.618-8.582 1.619-18.198 1.619v-4c4.865 0 8.306-.002 11.01-.192 2.664-.188 4.309-.544 5.612-1.103a16 16 0 008.4-8.4c.56-1.303.915-2.947 1.102-5.613.19-2.703.193-6.144.193-11.009z"
|
|
15
|
+
fill={stroke}
|
|
16
|
+
/>
|
|
17
|
+
<Path
|
|
18
|
+
d="M55.06 39.357l-7.79-7.79a10.273 10.273 0 00.434-8.244l-2.887 2.887c.038.243.063.488.075.733a6.949 6.949 0 01-6.949 6.949 6.748 6.748 0 01-.733-.075l-2.887 2.887a10.273 10.273 0 008.245-.434l7.789 7.79a.868.868 0 001.23 0l3.474-3.473a.87.87 0 000-1.23zM33.033 31.854a6.948 6.948 0 119.821-9.821l2.456-2.457a10.421 10.421 0 00-17.228 3.241 10.423 10.423 0 002.494 11.493l2.457-2.456z"
|
|
19
|
+
fill={stroke}
|
|
20
|
+
/>
|
|
21
|
+
<Path
|
|
22
|
+
d="M29.258 37.366a1.737 1.737 0 01-1.228-2.965L45.4 17.03a1.737 1.737 0 012.457 2.456l-17.37 17.371a1.737 1.737 0 01-1.229.509z"
|
|
23
|
+
fill={stroke}
|
|
24
|
+
/>
|
|
25
|
+
</G>
|
|
26
|
+
<Defs>
|
|
27
|
+
<ClipPath id="clip0_21888_4920">
|
|
28
|
+
<Path fill="#fff" d="M0 0H72V72H0z" />
|
|
29
|
+
</ClipPath>
|
|
30
|
+
</Defs>
|
|
31
|
+
</Svg>
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default NoResult;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Svg, { G, Path, Defs, ClipPath } from 'react-native-svg';
|
|
3
|
+
import { StatusSvgProps } from '../types';
|
|
4
|
+
|
|
5
|
+
const Unlock = ({ stroke, fill, testID }: StatusSvgProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Svg width="72" height="72" viewBox="0 0 72 72" testID={testID}>
|
|
8
|
+
<G clipPath="url(#clip0_21932_5714)">
|
|
9
|
+
<Path
|
|
10
|
+
d="M0 41.684c0-9.615 0-14.423 1.619-18.198a20 20 0 0110.499-10.499c3.775-1.619 8.582-1.619 18.198-1.619 9.615 0 14.423 0 18.198 1.62a20 20 0 0110.499 10.498c1.619 3.775 1.619 8.583 1.619 18.198 0 9.616 0 14.423-1.62 18.198a20 20 0 01-10.498 10.5C44.739 72 39.93 72 30.316 72c-9.616 0-14.423 0-18.198-1.619a20 20 0 01-10.5-10.499C0 56.107 0 51.3 0 41.684z"
|
|
11
|
+
fill={fill}
|
|
12
|
+
/>
|
|
13
|
+
<Path
|
|
14
|
+
d="M67.632 30.315c0-4.863-.002-8.305-.193-11.007-.187-2.666-.543-4.31-1.102-5.614a16 16 0 00-8.4-8.4c-1.303-.558-2.947-.914-5.613-1.102C49.621 4.002 46.18 4 41.315 4c-4.863 0-8.305.002-11.007.192-2.666.188-4.31.544-5.614 1.103a16.001 16.001 0 00-8.4 8.4c-.558 1.303-.914 2.947-1.102 5.613-.19 2.702-.192 6.144-.192 11.007 0 4.865.002 8.306.192 11.01.188 2.664.544 4.309 1.103 5.612a16.001 16.001 0 008.4 8.4c1.303.559 2.947.915 5.613 1.102 2.702.19 6.144.193 11.007.193v4l-3.387-.003c-7.149-.021-11.21-.187-14.453-1.469l-.357-.147a20 20 0 01-10.304-10.06l-.195-.44C11 44.74 11 39.932 11 30.316c0-9.314 0-14.117 1.472-17.84l.147-.357A20 20 0 0122.68 1.813l.44-.194C26.892 0 31.7 0 41.314 0c9.616 0 14.424 0 18.199 1.62a20 20 0 0110.499 10.498c1.618 3.775 1.619 8.583 1.619 18.197l-.003 3.388c-.022 7.414-.2 11.508-1.616 14.81a20 20 0 01-10.5 10.5c-3.774 1.618-8.582 1.619-18.198 1.619v-4c4.865 0 8.306-.002 11.01-.192 2.664-.188 4.309-.544 5.612-1.103a16 16 0 008.4-8.4c.56-1.303.915-2.947 1.102-5.613.19-2.703.193-6.144.193-11.009z"
|
|
15
|
+
fill={stroke}
|
|
16
|
+
/>
|
|
17
|
+
<Path
|
|
18
|
+
d="M51.316 25.816h-20a2.5 2.5 0 00-2.5 2.5v12.5a2.5 2.5 0 002.5 2.5h20a2.5 2.5 0 002.5-2.5v-12.5a2.5 2.5 0 00-2.5-2.5zm-10 11.25a2.5 2.5 0 11-.001-4.999 2.5 2.5 0 010 4.999zM47.313 16.27a7.398 7.398 0 00-5.86-2.954h-.2c-4.066 0-7.395 3.287-7.437 7.375v2.625h2.5v-2.611c.027-2.707 2.237-4.89 5.059-4.89h.052a4.908 4.908 0 013.891 1.963 1.25 1.25 0 001.995-1.508z"
|
|
19
|
+
fill={stroke}
|
|
20
|
+
/>
|
|
21
|
+
</G>
|
|
22
|
+
<Defs>
|
|
23
|
+
<ClipPath id="clip0_21932_5714">
|
|
24
|
+
<Path fill="#fff" d="M0 0H72V72H0z" />
|
|
25
|
+
</ClipPath>
|
|
26
|
+
</Defs>
|
|
27
|
+
</Svg>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default Unlock;
|
|
@@ -16,6 +16,9 @@ import search from './assets/Search';
|
|
|
16
16
|
import star from './assets/Star';
|
|
17
17
|
import user from './assets/User';
|
|
18
18
|
import success from './assets/Success';
|
|
19
|
+
import lock from './assets/Lock';
|
|
20
|
+
import unlock from './assets/Unlock';
|
|
21
|
+
import NoResult from './assets/NoResult';
|
|
19
22
|
|
|
20
23
|
import { useTheme } from '../../../theme';
|
|
21
24
|
|
|
@@ -36,6 +39,9 @@ export const StatusIcons = {
|
|
|
36
39
|
error,
|
|
37
40
|
info,
|
|
38
41
|
success,
|
|
42
|
+
lock,
|
|
43
|
+
unlock,
|
|
44
|
+
'no-result': NoResult,
|
|
39
45
|
} as const;
|
|
40
46
|
|
|
41
47
|
export type StatusIconName = keyof typeof StatusIcons;
|
|
@@ -14,6 +14,7 @@ interface TagProps extends ViewProps {
|
|
|
14
14
|
intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
|
|
15
15
|
/**
|
|
16
16
|
* @deprecated Tag variant prop is deprecated and will be removed in the next major release. Please remove it.
|
|
17
|
+
*
|
|
17
18
|
* Tag variant.
|
|
18
19
|
*/
|
|
19
20
|
variant?: 'filled' | 'outlined';
|
|
@@ -74,6 +74,8 @@ export interface ToastContainerProps {
|
|
|
74
74
|
displayType?: 'single' | 'stack';
|
|
75
75
|
/**
|
|
76
76
|
* Position that the toast message will appear on the screen.
|
|
77
|
+
*
|
|
78
|
+
* @deprecated position is deprecated and will be removed in the next major release.
|
|
77
79
|
*/
|
|
78
80
|
position?: 'top' | 'bottom';
|
|
79
81
|
/**
|
|
@@ -12,11 +12,17 @@ export interface ToolbarGroupProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* Alignment of the items in the group.
|
|
14
14
|
*/
|
|
15
|
+
/**
|
|
16
|
+
* align['left' | 'center'] - @deprecated Use align['right'] instead.
|
|
17
|
+
*/
|
|
15
18
|
align: 'left' | 'center' | 'right';
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
const ToolbarGroup = ({ align = 'right', items = [] }: ToolbarGroupProps) => {
|
|
19
|
-
useDeprecation(
|
|
22
|
+
useDeprecation(
|
|
23
|
+
"Toolbar's align prop is deprecated for 'left' and 'center' alignment. Please use 'right' instead.",
|
|
24
|
+
align !== 'right'
|
|
25
|
+
);
|
|
20
26
|
|
|
21
27
|
return (
|
|
22
28
|
<ToolbarGroupWrapper align={align}>
|
|
@@ -62,6 +62,9 @@ export interface TextProps extends NativeTextProps {
|
|
|
62
62
|
typeface?: 'neutral' | 'playful';
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.
|
|
67
|
+
*/
|
|
65
68
|
const Text = ({
|
|
66
69
|
children,
|
|
67
70
|
fontSize = 'medium',
|
|
@@ -807,7 +807,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
807
807
|
"danger": "#cb300a",
|
|
808
808
|
"disabledText": "#bfc1c5",
|
|
809
809
|
"inactive": "#808f91",
|
|
810
|
-
"info": "#
|
|
810
|
+
"info": "#355bfb",
|
|
811
811
|
"invertedText": "#ffffff",
|
|
812
812
|
"muted": "#4d6265",
|
|
813
813
|
"primary": "#401960",
|