@hero-design/rn-work-uikit 1.6.2 → 1.6.4

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @hero-design/rn-work-uikit
2
2
 
3
+ ## 1.6.4
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
+ - Updated dependencies [[`5a19683ca57a274f39467f7d93b303f6ace3c1ef`](https://github.com/Thinkei/hero-design/commit/5a19683ca57a274f39467f7d93b303f6ace3c1ef), [`156380111c911fff401d6a1ee1637c0ccb844029`](https://github.com/Thinkei/hero-design/commit/156380111c911fff401d6a1ee1637c0ccb844029), [`e628ee9c9ebd82dbd63eaca8ce83c583f0d6ecc7`](https://github.com/Thinkei/hero-design/commit/e628ee9c9ebd82dbd63eaca8ce83c583f0d6ecc7)]:
10
+ - @hero-design/rn@8.105.3
11
+
12
+ ## 1.6.3
13
+
14
+ ### Patch Changes
15
+
16
+ - [#4133](https://github.com/Thinkei/hero-design/pull/4133) [`8e945d988d61e6417e05b1c3c2aa6dc381dfd723`](https://github.com/Thinkei/hero-design/commit/8e945d988d61e6417e05b1c3c2aa6dc381dfd723) Thanks [@ttkien](https://github.com/ttkien)! - [Badge] Fix mis-alignment Badge Count on iOS
17
+
18
+ - Updated dependencies [[`8e945d988d61e6417e05b1c3c2aa6dc381dfd723`](https://github.com/Thinkei/hero-design/commit/8e945d988d61e6417e05b1c3c2aa6dc381dfd723), [`bdfe001823336624c8738fe07caf0fa1eba1cd86`](https://github.com/Thinkei/hero-design/commit/bdfe001823336624c8738fe07caf0fa1eba1cd86)]:
19
+ - @hero-design/rn@8.105.1
20
+
3
21
  ## 1.6.2
4
22
 
5
23
  ### Patch Changes
Binary file
package/lib/index.js CHANGED
@@ -5839,7 +5839,7 @@ var getBadgeTheme = function getBadgeTheme(theme) {
5839
5839
  count: reactNative.Platform.select({
5840
5840
  android: 14,
5841
5841
  // vertical alignment
5842
- "default": 18
5842
+ "default": theme.lineHeights.small
5843
5843
  })
5844
5844
  };
5845
5845
  var radii = {
@@ -6501,7 +6501,7 @@ var getIconTheme = function getIconTheme(theme) {
6501
6501
  text: theme.colors.onDefaultGlobalSurface,
6502
6502
  primary: theme.colors.primary,
6503
6503
  secondary: theme.colors.secondary,
6504
- info: theme.colors.info,
6504
+ info: theme.colors.onInfoSurface,
6505
6505
  danger: theme.colors.onErrorSurface,
6506
6506
  success: theme.colors.success,
6507
6507
  warning: theme.colors.warning,
@@ -8670,6 +8670,9 @@ var StyledText$4 = index$b(reactNative.Text)(function (_ref) {
8670
8670
  });
8671
8671
 
8672
8672
  var _excluded$O = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
8673
+ /**
8674
+ * @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.
8675
+ */
8673
8676
  var Text = function Text(_ref) {
8674
8677
  var children = _ref.children,
8675
8678
  _ref$fontSize = _ref.fontSize,
@@ -16647,6 +16650,9 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
16647
16650
  CardCarousel.displayName = 'CardCarousel';
16648
16651
 
16649
16652
  var _excluded$r = ["rounded", "size", "testID", "style"];
16653
+ /**
16654
+ * @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
16655
+ */
16650
16656
  var Image = function Image(_ref) {
16651
16657
  var _ref$rounded = _ref.rounded,
16652
16658
  rounded = _ref$rounded === void 0 ? false : _ref$rounded,
@@ -23072,6 +23078,93 @@ var Success$1 = function Success(_ref) {
23072
23078
  }));
23073
23079
  };
23074
23080
 
23081
+ var Lock = function Lock(_ref) {
23082
+ var stroke = _ref.stroke,
23083
+ fill = _ref.fill,
23084
+ testID = _ref.testID;
23085
+ return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
23086
+ width: "72",
23087
+ height: "72",
23088
+ viewBox: "0 0 72 72",
23089
+ testID: testID
23090
+ }, /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
23091
+ clipPath: "url(#clip0_21932_5671)"
23092
+ }, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23093
+ 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",
23094
+ fill: fill
23095
+ }), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23096
+ 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",
23097
+ fill: stroke
23098
+ }), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23099
+ 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",
23100
+ fill: stroke
23101
+ })), /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
23102
+ id: "clip0_21932_5671"
23103
+ }, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23104
+ fill: "#fff",
23105
+ d: "M0 0H72V72H0z"
23106
+ }))));
23107
+ };
23108
+
23109
+ var Unlock = function Unlock(_ref) {
23110
+ var stroke = _ref.stroke,
23111
+ fill = _ref.fill,
23112
+ testID = _ref.testID;
23113
+ return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
23114
+ width: "72",
23115
+ height: "72",
23116
+ viewBox: "0 0 72 72",
23117
+ testID: testID
23118
+ }, /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
23119
+ clipPath: "url(#clip0_21932_5714)"
23120
+ }, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23121
+ 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",
23122
+ fill: fill
23123
+ }), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23124
+ 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",
23125
+ fill: stroke
23126
+ }), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23127
+ 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",
23128
+ fill: stroke
23129
+ })), /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
23130
+ id: "clip0_21932_5714"
23131
+ }, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23132
+ fill: "#fff",
23133
+ d: "M0 0H72V72H0z"
23134
+ }))));
23135
+ };
23136
+
23137
+ var NoResult = function NoResult(_ref) {
23138
+ var stroke = _ref.stroke,
23139
+ fill = _ref.fill,
23140
+ testID = _ref.testID;
23141
+ return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
23142
+ width: "72",
23143
+ height: "72",
23144
+ viewBox: "0 0 72 72",
23145
+ testID: testID
23146
+ }, /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
23147
+ clipPath: "url(#clip0_21888_4920)"
23148
+ }, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23149
+ 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",
23150
+ fill: fill
23151
+ }), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23152
+ 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",
23153
+ fill: stroke
23154
+ }), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23155
+ 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",
23156
+ fill: stroke
23157
+ }), /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23158
+ 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",
23159
+ fill: stroke
23160
+ })), /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
23161
+ id: "clip0_21888_4920"
23162
+ }, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
23163
+ fill: "#fff",
23164
+ d: "M0 0H72V72H0z"
23165
+ }))));
23166
+ };
23167
+
23075
23168
  var StatusIcons = {
23076
23169
  add: Add,
23077
23170
  boom: Boom,
@@ -23088,7 +23181,10 @@ var StatusIcons = {
23088
23181
  confetti: Confetti,
23089
23182
  error: ErrorIcon,
23090
23183
  info: Info,
23091
- success: Success$1
23184
+ success: Success$1,
23185
+ lock: Lock,
23186
+ unlock: Unlock,
23187
+ 'no-result': NoResult
23092
23188
  };
23093
23189
  var StatusIcon = function StatusIcon(_ref) {
23094
23190
  var icon = _ref.icon,
@@ -25084,7 +25180,9 @@ var StyledHiddenInput = index$b(reactNative.TextInput)(function (_ref6) {
25084
25180
  var spacerWidth = theme.__hd__.pinInput.space.spacer;
25085
25181
  return {
25086
25182
  position: 'absolute',
25087
- opacity: 0,
25183
+ // Opacity must be > 0.01 to receive touch events on iOS in RN 0.76.7.
25184
+ // See https://github.com/facebook/react-native/issues/50465 for details.
25185
+ opacity: 0.01001,
25088
25186
  left: 0,
25089
25187
  top: 0,
25090
25188
  right: 0,
@@ -25262,7 +25360,6 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
25262
25360
  autoFocus: autoFocus,
25263
25361
  onFocus: focus,
25264
25362
  onBlur: blur,
25265
- pointerEvents: "none",
25266
25363
  inputMode: "numeric",
25267
25364
  testID: "pin-hidden-input",
25268
25365
  textContentType: textContentType,
@@ -27416,7 +27513,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
27416
27513
  align = _ref$align === void 0 ? 'right' : _ref$align,
27417
27514
  _ref$items = _ref.items,
27418
27515
  items = _ref$items === void 0 ? [] : _ref$items;
27419
- useDeprecation("Toolbar's align prop is deprecated", align !== 'right');
27516
+ useDeprecation("Toolbar's align prop is deprecated for 'left' and 'center' alignment. Please use 'right' instead.", align !== 'right');
27420
27517
  return /*#__PURE__*/React__namespace.default.createElement(ToolbarGroupWrapper, {
27421
27518
  align: align
27422
27519
  }, items.map(function (_ref2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn-work-uikit",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -23,7 +23,7 @@
23
23
  "@emotion/native": "^11.9.3",
24
24
  "@emotion/primitives-core": "11.0.0",
25
25
  "@emotion/react": "^11.9.3",
26
- "@hero-design/rn": "^8.105.0",
26
+ "@hero-design/rn": "^8.105.3",
27
27
  "hero-editor": "^1.15.5"
28
28
  },
29
29
  "peerDependencies": {
@@ -170,7 +170,7 @@ exports[`theme returns correct theme object 1`] = `
170
170
  "small": "BeVietnamPro-SemiBold",
171
171
  },
172
172
  "lineHeights": {
173
- "count": 18,
173
+ "count": 15.76923076923077,
174
174
  "medium": 15.76923076923077,
175
175
  "small": 10,
176
176
  },
@@ -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": "#b5c3fd",
810
+ "info": "#355bfb",
811
811
  "invertedText": "#ffffff",
812
812
  "muted": "#4d6265",
813
813
  "primary": "#401960",