@hero-design/rn 8.105.1 → 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 +16 -0
- package/es/index.js +102 -5
- package/lib/index.js +102 -5
- 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/PinInput/StyledPinInput.tsx +3 -1
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +5 -10
- package/src/components/PinInput/index.tsx +0 -1
- 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.1/rn-stats.html +0 -2
- package/stats/8.105.2/rn-stats.html +4842 -0
- 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 [1m23.
|
|
23
|
+
[32mcreated [1m., .[22m in [1m23.7s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
|
|
13
|
+
## 8.105.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#4153](https://github.com/Thinkei/hero-design/pull/4153) [`2ced09440248a05875fc34e278cff41680173f12`](https://github.com/Thinkei/hero-design/commit/2ced09440248a05875fc34e278cff41680173f12) Thanks [@ttkien](https://github.com/ttkien)! - [PinInput] fix issue cannot paste
|
|
18
|
+
|
|
3
19
|
## 8.105.1
|
|
4
20
|
|
|
5
21
|
### 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,
|
|
@@ -24022,7 +24118,9 @@ var StyledHiddenInput = index$b(TextInput$1)(function (_ref6) {
|
|
|
24022
24118
|
var spacerWidth = theme.__hd__.pinInput.space.spacer;
|
|
24023
24119
|
return {
|
|
24024
24120
|
position: 'absolute',
|
|
24025
|
-
|
|
24121
|
+
// Opacity must be > 0.01 to receive touch events on iOS in RN 0.76.7.
|
|
24122
|
+
// See https://github.com/facebook/react-native/issues/50465 for details.
|
|
24123
|
+
opacity: 0.01001,
|
|
24026
24124
|
left: 0,
|
|
24027
24125
|
top: 0,
|
|
24028
24126
|
right: 0,
|
|
@@ -24199,7 +24297,6 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
24199
24297
|
autoFocus: autoFocus,
|
|
24200
24298
|
onFocus: focus,
|
|
24201
24299
|
onBlur: blur,
|
|
24202
|
-
pointerEvents: "none",
|
|
24203
24300
|
inputMode: "numeric",
|
|
24204
24301
|
testID: "pin-hidden-input",
|
|
24205
24302
|
textContentType: textContentType,
|
|
@@ -27299,7 +27396,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
27299
27396
|
align = _ref$align === void 0 ? 'right' : _ref$align,
|
|
27300
27397
|
_ref$items = _ref.items,
|
|
27301
27398
|
items = _ref$items === void 0 ? [] : _ref$items;
|
|
27302
|
-
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');
|
|
27303
27400
|
return /*#__PURE__*/React__default.createElement(ToolbarGroupWrapper, {
|
|
27304
27401
|
align: align
|
|
27305
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,
|
|
@@ -24051,7 +24147,9 @@ var StyledHiddenInput = index$b(reactNative.TextInput)(function (_ref6) {
|
|
|
24051
24147
|
var spacerWidth = theme.__hd__.pinInput.space.spacer;
|
|
24052
24148
|
return {
|
|
24053
24149
|
position: 'absolute',
|
|
24054
|
-
|
|
24150
|
+
// Opacity must be > 0.01 to receive touch events on iOS in RN 0.76.7.
|
|
24151
|
+
// See https://github.com/facebook/react-native/issues/50465 for details.
|
|
24152
|
+
opacity: 0.01001,
|
|
24055
24153
|
left: 0,
|
|
24056
24154
|
top: 0,
|
|
24057
24155
|
right: 0,
|
|
@@ -24228,7 +24326,6 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
24228
24326
|
autoFocus: autoFocus,
|
|
24229
24327
|
onFocus: focus,
|
|
24230
24328
|
onBlur: blur,
|
|
24231
|
-
pointerEvents: "none",
|
|
24232
24329
|
inputMode: "numeric",
|
|
24233
24330
|
testID: "pin-hidden-input",
|
|
24234
24331
|
textContentType: textContentType,
|
|
@@ -27328,7 +27425,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
27328
27425
|
align = _ref$align === void 0 ? 'right' : _ref$align,
|
|
27329
27426
|
_ref$items = _ref.items,
|
|
27330
27427
|
items = _ref$items === void 0 ? [] : _ref$items;
|
|
27331
|
-
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');
|
|
27332
27429
|
return /*#__PURE__*/React__namespace.default.createElement(ToolbarGroupWrapper, {
|
|
27333
27430
|
align: align
|
|
27334
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',
|
|
@@ -65,7 +65,9 @@ export const StyledHiddenInput = styled(TextInput)<{ themePinLength: number }>(
|
|
|
65
65
|
|
|
66
66
|
return {
|
|
67
67
|
position: 'absolute',
|
|
68
|
-
|
|
68
|
+
// Opacity must be > 0.01 to receive touch events on iOS in RN 0.76.7.
|
|
69
|
+
// See https://github.com/facebook/react-native/issues/50465 for details.
|
|
70
|
+
opacity: 0.01001,
|
|
69
71
|
left: 0,
|
|
70
72
|
top: 0,
|
|
71
73
|
right: 0,
|
|
@@ -262,7 +262,6 @@ exports[`rendering renders correctly 1`] = `
|
|
|
262
262
|
onBlur={[Function]}
|
|
263
263
|
onChangeText={[Function]}
|
|
264
264
|
onFocus={[Function]}
|
|
265
|
-
pointerEvents="none"
|
|
266
265
|
secureTextEntry={true}
|
|
267
266
|
selectTextOnFocus={false}
|
|
268
267
|
selection={
|
|
@@ -277,7 +276,7 @@ exports[`rendering renders correctly 1`] = `
|
|
|
277
276
|
"height": "100%",
|
|
278
277
|
"left": 0,
|
|
279
278
|
"letterSpacing": 4,
|
|
280
|
-
"opacity": 0,
|
|
279
|
+
"opacity": 0.01001,
|
|
281
280
|
"paddingHorizontal": 8,
|
|
282
281
|
"position": "absolute",
|
|
283
282
|
"right": 0,
|
|
@@ -577,7 +576,6 @@ exports[`rendering renders correctly when disabled 1`] = `
|
|
|
577
576
|
onBlur={[Function]}
|
|
578
577
|
onChangeText={[Function]}
|
|
579
578
|
onFocus={[Function]}
|
|
580
|
-
pointerEvents="none"
|
|
581
579
|
secureTextEntry={true}
|
|
582
580
|
selectTextOnFocus={false}
|
|
583
581
|
selection={
|
|
@@ -592,7 +590,7 @@ exports[`rendering renders correctly when disabled 1`] = `
|
|
|
592
590
|
"height": "100%",
|
|
593
591
|
"left": 0,
|
|
594
592
|
"letterSpacing": 4,
|
|
595
|
-
"opacity": 0,
|
|
593
|
+
"opacity": 0.01001,
|
|
596
594
|
"paddingHorizontal": 8,
|
|
597
595
|
"position": "absolute",
|
|
598
596
|
"right": 0,
|
|
@@ -1022,7 +1020,6 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
|
|
|
1022
1020
|
onBlur={[Function]}
|
|
1023
1021
|
onChangeText={[Function]}
|
|
1024
1022
|
onFocus={[Function]}
|
|
1025
|
-
pointerEvents="none"
|
|
1026
1023
|
secureTextEntry={false}
|
|
1027
1024
|
selectTextOnFocus={false}
|
|
1028
1025
|
selection={
|
|
@@ -1037,7 +1034,7 @@ exports[`rendering renders correctly when length is 6 and secure is false 1`] =
|
|
|
1037
1034
|
"height": "100%",
|
|
1038
1035
|
"left": 0,
|
|
1039
1036
|
"letterSpacing": 4,
|
|
1040
|
-
"opacity": 0,
|
|
1037
|
+
"opacity": 0.01001,
|
|
1041
1038
|
"paddingHorizontal": 8,
|
|
1042
1039
|
"position": "absolute",
|
|
1043
1040
|
"right": 0,
|
|
@@ -1390,7 +1387,6 @@ exports[`rendering renders correctly when there is error 1`] = `
|
|
|
1390
1387
|
onBlur={[Function]}
|
|
1391
1388
|
onChangeText={[Function]}
|
|
1392
1389
|
onFocus={[Function]}
|
|
1393
|
-
pointerEvents="none"
|
|
1394
1390
|
secureTextEntry={true}
|
|
1395
1391
|
selectTextOnFocus={false}
|
|
1396
1392
|
selection={
|
|
@@ -1405,7 +1401,7 @@ exports[`rendering renders correctly when there is error 1`] = `
|
|
|
1405
1401
|
"height": "100%",
|
|
1406
1402
|
"left": 0,
|
|
1407
1403
|
"letterSpacing": 4,
|
|
1408
|
-
"opacity": 0,
|
|
1404
|
+
"opacity": 0.01001,
|
|
1409
1405
|
"paddingHorizontal": 8,
|
|
1410
1406
|
"position": "absolute",
|
|
1411
1407
|
"right": 0,
|
|
@@ -1706,7 +1702,6 @@ exports[`rendering renders correctly with textContentType and autoComplete 1`] =
|
|
|
1706
1702
|
onBlur={[Function]}
|
|
1707
1703
|
onChangeText={[Function]}
|
|
1708
1704
|
onFocus={[Function]}
|
|
1709
|
-
pointerEvents="none"
|
|
1710
1705
|
secureTextEntry={true}
|
|
1711
1706
|
selectTextOnFocus={false}
|
|
1712
1707
|
selection={
|
|
@@ -1721,7 +1716,7 @@ exports[`rendering renders correctly with textContentType and autoComplete 1`] =
|
|
|
1721
1716
|
"height": "100%",
|
|
1722
1717
|
"left": 0,
|
|
1723
1718
|
"letterSpacing": 4,
|
|
1724
|
-
"opacity": 0,
|
|
1719
|
+
"opacity": 0.01001,
|
|
1725
1720
|
"paddingHorizontal": 8,
|
|
1726
1721
|
"position": "absolute",
|
|
1727
1722
|
"right": 0,
|
|
@@ -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;
|