@hero-design/rn-work-uikit 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @hero-design/rn-work-uikit
2
2
 
3
+ ## 1.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#4287](https://github.com/Thinkei/hero-design/pull/4287) [`e7d09c0d84402f39f49d9de984b435de75fda538`](https://github.com/Thinkei/hero-design/commit/e7d09c0d84402f39f49d9de984b435de75fda538) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Typography.Body][typography.caption][Typography.Label] Support italic style prop
8
+
9
+ - [#4277](https://github.com/Thinkei/hero-design/pull/4277) [`41d0eb39bb03540a9c2d47c40c79846739ebedcf`](https://github.com/Thinkei/hero-design/commit/41d0eb39bb03540a9c2d47c40c79846739ebedcf) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Typography.Title] Support italic style
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [[`52f1ccb86d7c307f93aa95ccf7b9e11ff97e542a`](https://github.com/Thinkei/hero-design/commit/52f1ccb86d7c307f93aa95ccf7b9e11ff97e542a), [`e7d09c0d84402f39f49d9de984b435de75fda538`](https://github.com/Thinkei/hero-design/commit/e7d09c0d84402f39f49d9de984b435de75fda538), [`41d0eb39bb03540a9c2d47c40c79846739ebedcf`](https://github.com/Thinkei/hero-design/commit/41d0eb39bb03540a9c2d47c40c79846739ebedcf)]:
14
+ - @hero-design/rn@8.111.0
15
+
16
+ ## 1.8.1
17
+
18
+ ### Patch Changes
19
+
20
+ - [#4262](https://github.com/Thinkei/hero-design/pull/4262) [`7fbdf8736b42b9a9cb1c7ee203c69192b6d12a1f`](https://github.com/Thinkei/hero-design/commit/7fbdf8736b42b9a9cb1c7ee203c69192b6d12a1f) Thanks [@ttkien](https://github.com/ttkien)! - Upgrade react-native 0.77.3
21
+
22
+ - Updated dependencies [[`7fbdf8736b42b9a9cb1c7ee203c69192b6d12a1f`](https://github.com/Thinkei/hero-design/commit/7fbdf8736b42b9a9cb1c7ee203c69192b6d12a1f)]:
23
+ - @hero-design/rn@8.110.1
24
+
3
25
  ## 1.8.0
4
26
 
5
27
  ### Minor Changes
package/lib/index.js CHANGED
@@ -5504,13 +5504,19 @@ var getFonts = function getFonts(_ref) {
5504
5504
  return {
5505
5505
  neutral: {
5506
5506
  light: "".concat(neutral, "-Light"),
5507
+ lightItalic: "".concat(neutral, "-LightItalic"),
5507
5508
  regular: "".concat(neutral, "-Regular"),
5508
- semiBold: "".concat(neutral, "-SemiBold")
5509
+ regularItalic: "".concat(neutral, "-RegularItalic"),
5510
+ semiBold: "".concat(neutral, "-SemiBold"),
5511
+ semiBoldItalic: "".concat(neutral, "-SemiBoldItalic")
5509
5512
  },
5510
5513
  playful: {
5511
5514
  light: "".concat(playful, "-Light"),
5515
+ lightItalic: "".concat(playful, "-LightItalic"),
5512
5516
  regular: "".concat(playful, "-Regular"),
5513
- semiBold: "".concat(playful, "-Medium")
5517
+ regularItalic: "".concat(playful, "-RegularItalic"),
5518
+ semiBold: "".concat(playful, "-Medium"),
5519
+ semiBoldItalic: "".concat(playful, "-MediumItalic")
5514
5520
  }
5515
5521
  };
5516
5522
  };
@@ -7622,29 +7628,31 @@ var getTypographyTheme = function getTypographyTheme(theme) {
7622
7628
  titles: {
7623
7629
  neutral: {
7624
7630
  h1: theme.fonts.neutral.regular,
7631
+ h1Italic: theme.fonts.neutral.regularItalic,
7625
7632
  h2: theme.fonts.neutral.semiBold,
7633
+ h2Italic: theme.fonts.neutral.semiBoldItalic,
7626
7634
  h3: theme.fonts.neutral.semiBold,
7635
+ h3Italic: theme.fonts.neutral.semiBoldItalic,
7627
7636
  h4: theme.fonts.neutral.semiBold,
7637
+ h4Italic: theme.fonts.neutral.semiBoldItalic,
7628
7638
  h5: theme.fonts.neutral.semiBold,
7629
- h6: theme.fonts.neutral.regular
7639
+ h5Italic: theme.fonts.neutral.semiBoldItalic,
7640
+ h6: theme.fonts.neutral.regular,
7641
+ h6Italic: theme.fonts.neutral.regularItalic
7630
7642
  },
7631
7643
  playful: {
7632
7644
  h1: theme.fonts.playful.semiBold,
7645
+ h1Italic: theme.fonts.playful.semiBoldItalic,
7633
7646
  h2: theme.fonts.playful.semiBold,
7647
+ h2Italic: theme.fonts.playful.semiBoldItalic,
7634
7648
  h3: theme.fonts.playful.semiBold,
7649
+ h3Italic: theme.fonts.playful.semiBoldItalic,
7635
7650
  h4: theme.fonts.playful.semiBold,
7651
+ h4Italic: theme.fonts.playful.semiBoldItalic,
7636
7652
  h5: theme.fonts.playful.semiBold,
7637
- h6: theme.fonts.playful.regular
7638
- }
7639
- },
7640
- body: {
7641
- neutral: {
7642
- semiBold: theme.fonts.neutral.semiBold,
7643
- regular: theme.fonts.neutral.regular
7644
- },
7645
- playful: {
7646
- semiBold: theme.fonts.playful.semiBold,
7647
- regular: theme.fonts.playful.regular
7653
+ h5Italic: theme.fonts.playful.semiBoldItalic,
7654
+ h6: theme.fonts.playful.regular,
7655
+ h6Italic: theme.fonts.playful.regularItalic
7648
7656
  }
7649
7657
  }
7650
7658
  };
@@ -8860,17 +8868,20 @@ var FONTWEIGHT_MAP$1 = {
8860
8868
  var StyledCaption = index$c(reactNative.Text)(function (_ref) {
8861
8869
  var themeFontWeight = _ref.themeFontWeight,
8862
8870
  themeIntent = _ref.themeIntent,
8863
- theme = _ref.theme;
8871
+ theme = _ref.theme,
8872
+ themeIsItalic = _ref.themeIsItalic;
8873
+ var baseFontWeight = FONTWEIGHT_MAP$1[themeFontWeight];
8874
+ var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[baseFontWeight];
8864
8875
  return {
8865
8876
  fontSize: theme.__hd__.typography.fontSizes.caption,
8866
8877
  lineHeight: theme.__hd__.typography.lineHeights.caption,
8867
8878
  letterSpacing: themeFontWeight === 'regular' ? 0.36 : 0.24,
8868
8879
  color: theme.__hd__.typography.colors[themeIntent],
8869
- fontFamily: theme.__hd__.typography.fonts.neutral[FONTWEIGHT_MAP$1[themeFontWeight]]
8880
+ fontFamily: fontFamily
8870
8881
  };
8871
8882
  });
8872
8883
 
8873
- var _excluded$N = ["children", "fontWeight", "intent", "allowFontScaling"];
8884
+ var _excluded$N = ["children", "fontWeight", "intent", "allowFontScaling", "fontStyle"];
8874
8885
  var Caption = function Caption(_ref) {
8875
8886
  var children = _ref.children,
8876
8887
  _ref$fontWeight = _ref.fontWeight,
@@ -8879,35 +8890,46 @@ var Caption = function Caption(_ref) {
8879
8890
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
8880
8891
  _ref$allowFontScaling = _ref.allowFontScaling,
8881
8892
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
8893
+ _ref$fontStyle = _ref.fontStyle,
8894
+ fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
8882
8895
  nativeProps = _objectWithoutProperties(_ref, _excluded$N);
8883
8896
  return /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
8884
8897
  themeFontWeight: fontWeight,
8885
8898
  themeIntent: intent,
8899
+ themeIsItalic: fontStyle === 'italic',
8886
8900
  allowFontScaling: allowFontScaling
8887
8901
  }), children);
8888
8902
  };
8889
8903
 
8890
8904
  var StyledLabel$2 = index$c(reactNative.Text)(function (_ref) {
8891
8905
  var themeIntent = _ref.themeIntent,
8892
- theme = _ref.theme;
8906
+ theme = _ref.theme,
8907
+ themeIsItalic = _ref.themeIsItalic;
8908
+ // For Label, we assume 'regular' weight for base font family
8909
+ var baseFontWeight = 'regular';
8910
+ var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[baseFontWeight];
8893
8911
  return {
8894
8912
  fontSize: theme.__hd__.typography.fontSizes.label,
8895
8913
  lineHeight: theme.__hd__.typography.lineHeights.label,
8896
8914
  letterSpacing: 0,
8897
- color: theme.__hd__.typography.colors[themeIntent]
8915
+ color: theme.__hd__.typography.colors[themeIntent],
8916
+ fontFamily: fontFamily
8898
8917
  };
8899
8918
  });
8900
8919
 
8901
- var _excluded$M = ["children", "intent", "allowFontScaling"];
8920
+ var _excluded$M = ["children", "intent", "allowFontScaling", "fontStyle"];
8902
8921
  var Label = function Label(_ref) {
8903
8922
  var children = _ref.children,
8904
8923
  _ref$intent = _ref.intent,
8905
8924
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
8906
8925
  _ref$allowFontScaling = _ref.allowFontScaling,
8907
8926
  allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
8927
+ _ref$fontStyle = _ref.fontStyle,
8928
+ fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
8908
8929
  nativeProps = _objectWithoutProperties(_ref, _excluded$M);
8909
8930
  return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$2, _extends$1({}, nativeProps, {
8910
8931
  themeIntent: intent,
8932
+ themeIsItalic: fontStyle === 'italic',
8911
8933
  allowFontScaling: allowFontScaling
8912
8934
  }), children);
8913
8935
  };
@@ -8916,17 +8938,18 @@ var StyledTitle$1 = index$c(reactNative.Text)(function (_ref) {
8916
8938
  var themeIntent = _ref.themeIntent,
8917
8939
  themeLevel = _ref.themeLevel,
8918
8940
  theme = _ref.theme,
8919
- typeface = _ref.themeTypeface;
8941
+ typeface = _ref.themeTypeface,
8942
+ themeIsItalic = _ref.themeIsItalic;
8920
8943
  return {
8921
8944
  fontSize: theme.__hd__.typography.fontSizes.titles[typeface][themeLevel],
8922
8945
  lineHeight: theme.__hd__.typography.lineHeights.titles[typeface][themeLevel],
8923
8946
  letterSpacing: theme.__hd__.typography.letterSpacings.titles[typeface][themeLevel],
8924
- fontFamily: theme.__hd__.typography.fontWeights.titles[typeface][themeLevel],
8925
- color: theme.__hd__.typography.colors[themeIntent]
8947
+ color: theme.__hd__.typography.colors[themeIntent],
8948
+ fontFamily: themeIsItalic ? theme.__hd__.typography.fontWeights.titles[typeface]["".concat(themeLevel, "Italic")] : theme.__hd__.typography.fontWeights.titles[typeface][themeLevel]
8926
8949
  };
8927
8950
  });
8928
8951
 
8929
- var _excluded$L = ["children", "intent", "allowFontScaling", "level", "typeface"];
8952
+ var _excluded$L = ["children", "intent", "allowFontScaling", "level", "typeface", "fontStyle"];
8930
8953
  var Title = function Title(_ref) {
8931
8954
  var children = _ref.children,
8932
8955
  _ref$intent = _ref.intent,
@@ -8937,11 +8960,14 @@ var Title = function Title(_ref) {
8937
8960
  level = _ref$level === void 0 ? 'h1' : _ref$level,
8938
8961
  _ref$typeface = _ref.typeface,
8939
8962
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
8963
+ _ref$fontStyle = _ref.fontStyle,
8964
+ fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
8940
8965
  nativeProps = _objectWithoutProperties(_ref, _excluded$L);
8941
8966
  return /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
8942
8967
  themeLevel: level,
8943
8968
  themeTypeface: typeface,
8944
8969
  themeIntent: intent,
8970
+ themeIsItalic: fontStyle === 'italic',
8945
8971
  allowFontScaling: allowFontScaling
8946
8972
  }), children);
8947
8973
  };
@@ -8962,17 +8988,20 @@ var StyledBody$2 = index$c(reactNative.Text)(function (_ref) {
8962
8988
  var themeIntent = _ref.themeIntent,
8963
8989
  theme = _ref.theme,
8964
8990
  themeTypeface = _ref.themeTypeface,
8965
- themeVariant = _ref.themeVariant;
8991
+ themeVariant = _ref.themeVariant,
8992
+ themeIsItalic = _ref.themeIsItalic;
8993
+ var baseFontWeight = FONTWEIGHT_MAP[themeVariant];
8994
+ var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts[themeTypeface]["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts[themeTypeface][baseFontWeight];
8966
8995
  return {
8967
8996
  fontSize: theme.__hd__.typography.fontSizes.body[themeTypeface][FONTSIZE_MAP[themeVariant]],
8968
8997
  lineHeight: theme.__hd__.typography.lineHeights.body[themeTypeface][FONTSIZE_MAP[themeVariant]],
8969
8998
  letterSpacing: theme.__hd__.typography.letterSpacings.body[themeTypeface][FONTWEIGHT_MAP[themeVariant]],
8970
- fontFamily: theme.__hd__.typography.fontWeights.body[themeTypeface][FONTWEIGHT_MAP[themeVariant]],
8999
+ fontFamily: fontFamily,
8971
9000
  color: theme.__hd__.typography.colors[themeIntent]
8972
9001
  };
8973
9002
  });
8974
9003
 
8975
- var _excluded$K = ["children", "intent", "allowFontScaling", "typeface", "variant"];
9004
+ var _excluded$K = ["children", "intent", "allowFontScaling", "typeface", "variant", "fontStyle"];
8976
9005
  var Body = function Body(_ref) {
8977
9006
  var children = _ref.children,
8978
9007
  _ref$intent = _ref.intent,
@@ -8983,11 +9012,14 @@ var Body = function Body(_ref) {
8983
9012
  typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
8984
9013
  _ref$variant = _ref.variant,
8985
9014
  variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
9015
+ _ref$fontStyle = _ref.fontStyle,
9016
+ fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
8986
9017
  nativeProps = _objectWithoutProperties(_ref, _excluded$K);
8987
9018
  return /*#__PURE__*/React__namespace.default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
8988
9019
  themeTypeface: typeface,
8989
9020
  themeIntent: intent,
8990
9021
  themeVariant: variant,
9022
+ themeIsItalic: fontStyle === 'italic',
8991
9023
  allowFontScaling: allowFontScaling
8992
9024
  }), children);
8993
9025
  };
@@ -9316,6 +9348,10 @@ var StyledButtonIcon = index$c(Icon)(function (_ref6) {
9316
9348
  }, themeStyling());
9317
9349
  });
9318
9350
 
9351
+ /**
9352
+ * @deprecated Use 'primary' | 'secondary' | 'danger' | 'inverted' instead.
9353
+ */
9354
+
9319
9355
  var isIconName = function isIconName(icon) {
9320
9356
  return typeof icon === 'string';
9321
9357
  };
@@ -15299,7 +15335,8 @@ var Accordion = function Accordion(_ref) {
15299
15335
  _ref$variant = _ref.variant,
15300
15336
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
15301
15337
  style = _ref.style,
15302
- testID = _ref.testID;
15338
+ testID = _ref.testID,
15339
+ accessible = _ref.accessible;
15303
15340
  var defaultValue = React.useMemo(function () {
15304
15341
  return typeof activeItemKey === 'number' ? NaN : '';
15305
15342
  }, [activeItemKey]);
@@ -15309,7 +15346,8 @@ var Accordion = function Accordion(_ref) {
15309
15346
  _onItemPress = _usePropsOrInternalSt2[1];
15310
15347
  return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$c, {
15311
15348
  style: style,
15312
- testID: testID
15349
+ testID: testID,
15350
+ accessible: accessible
15313
15351
  }, items.map(function (_ref2, index) {
15314
15352
  var key = _ref2.key,
15315
15353
  props = _objectWithoutProperties(_ref2, _excluded$y);
@@ -15412,6 +15450,11 @@ var AlertIcon = function AlertIcon(_ref) {
15412
15450
  themeIntent: intent
15413
15451
  })) : null;
15414
15452
  };
15453
+
15454
+ /**
15455
+ * @deprecated Use 'success' | 'info' | 'warning' | 'error' instead.
15456
+ */
15457
+
15415
15458
  var Alert = function Alert(_ref2) {
15416
15459
  var content = _ref2.content,
15417
15460
  icon = _ref2.icon,
@@ -22134,7 +22177,12 @@ var StyledChipIcon = index$c(Icon)(function (_ref2) {
22134
22177
  };
22135
22178
  });
22136
22179
 
22137
- var _excluded$p = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
22180
+ var _excluded$p = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon", "accessible"];
22181
+
22182
+ /**
22183
+ * @deprecated Use 'selection' | 'filter' | 'compact' | 'compact-outlined' instead.
22184
+ */
22185
+
22138
22186
  var getChipLabel = function getChipLabel(label) {
22139
22187
  if (typeof label === 'string') {
22140
22188
  return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
@@ -22167,6 +22215,7 @@ var Chip = function Chip(_ref) {
22167
22215
  onPress = _ref.onPress,
22168
22216
  _ref$showSelectedIcon = _ref.showSelectedIcon,
22169
22217
  showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
22218
+ accessible = _ref.accessible,
22170
22219
  otherProps = _objectWithoutProperties(_ref, _excluded$p);
22171
22220
  useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
22172
22221
  var renamedVariant = getChipVariant(variant);
@@ -22177,7 +22226,8 @@ var Chip = function Chip(_ref) {
22177
22226
  return /*#__PURE__*/React__namespace.default.createElement(StyledChipWrapper, _extends$1({
22178
22227
  onPress: onPress,
22179
22228
  themeVariant: renamedVariant,
22180
- themeSelected: selected
22229
+ themeSelected: selected,
22230
+ accessible: accessible
22181
22231
  }, otherProps), icon && /*#__PURE__*/React__namespace.default.createElement(Box, {
22182
22232
  marginRight: "small"
22183
22233
  }, /*#__PURE__*/React__namespace.default.createElement(StyledChipIcon, {
@@ -26028,7 +26078,8 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
26028
26078
  style = _ref2.style,
26029
26079
  testID = _ref2.testID,
26030
26080
  textContentType = _ref2.textContentType,
26031
- autoComplete = _ref2.autoComplete;
26081
+ autoComplete = _ref2.autoComplete,
26082
+ accessible = _ref2.accessible;
26032
26083
  var inputRef = React.useRef(null);
26033
26084
  var _useState = React.useState(autoFocus),
26034
26085
  _useState2 = _slicedToArray(_useState, 2),
@@ -26090,7 +26141,8 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
26090
26141
  }, [trimmedValue]);
26091
26142
  return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$5, {
26092
26143
  style: style,
26093
- testID: testID
26144
+ testID: testID,
26145
+ accessible: accessible
26094
26146
  }, /*#__PURE__*/React__namespace.default.createElement(StyledPinWrapper, {
26095
26147
  onPress: focus,
26096
26148
  disabled: disabled,
@@ -26786,11 +26838,13 @@ var RadioGroup = function RadioGroup(_ref) {
26786
26838
  keyExtractor = _ref.keyExtractor,
26787
26839
  style = _ref.style,
26788
26840
  testID = _ref.testID,
26841
+ accessible = _ref.accessible,
26789
26842
  _ref$inactiveIntent = _ref.inactiveIntent,
26790
26843
  inactiveIntent = _ref$inactiveIntent === void 0 ? 'light' : _ref$inactiveIntent;
26791
26844
  return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
26792
26845
  style: style,
26793
- testID: testID
26846
+ testID: testID,
26847
+ accessible: accessible
26794
26848
  }, options.map(function (option, index) {
26795
26849
  return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
26796
26850
  key: getKey(option, index, keyExtractor)
@@ -28289,14 +28343,20 @@ var ToolbarItem = function ToolbarItem(_ref3) {
28289
28343
  }));
28290
28344
  };
28291
28345
 
28346
+ /**
28347
+ * @deprecated Use 'right' instead.
28348
+ */
28349
+
28292
28350
  var ToolbarGroup = function ToolbarGroup(_ref) {
28293
28351
  var _ref$align = _ref.align,
28294
28352
  align = _ref$align === void 0 ? 'right' : _ref$align,
28295
28353
  _ref$items = _ref.items,
28296
- items = _ref$items === void 0 ? [] : _ref$items;
28354
+ items = _ref$items === void 0 ? [] : _ref$items,
28355
+ accessible = _ref.accessible;
28297
28356
  useDeprecation("Toolbar's align prop is deprecated for 'left' and 'center' alignment. Please use 'right' instead.", align !== 'right');
28298
28357
  return /*#__PURE__*/React__namespace.default.createElement(ToolbarGroupWrapper, {
28299
- align: align
28358
+ align: align,
28359
+ accessible: accessible
28300
28360
  }, items.map(function (_ref2) {
28301
28361
  var label = _ref2.label,
28302
28362
  icon = _ref2.icon,
@@ -48277,10 +48337,12 @@ var SearchTwoLine = function SearchTwoLine(props) {
48277
48337
  content = props.content,
48278
48338
  testID = props.testID,
48279
48339
  _props$variant = props.variant,
48280
- variant = _props$variant === void 0 ? 'basic' : _props$variant;
48340
+ variant = _props$variant === void 0 ? 'basic' : _props$variant,
48341
+ accessible = props.accessible;
48281
48342
  return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$1, {
48282
48343
  style: style,
48283
- testID: testID
48344
+ testID: testID,
48345
+ accessible: accessible
48284
48346
  }, /*#__PURE__*/React__namespace.default.createElement(StyledInputContainer, {
48285
48347
  themeVariant: variant
48286
48348
  }, renderPrefix({
@@ -48292,7 +48354,7 @@ var SearchTwoLine = function SearchTwoLine(props) {
48292
48354
  })));
48293
48355
  };
48294
48356
 
48295
- var _excluded$5 = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID", "variant", "clearable"];
48357
+ var _excluded$5 = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID", "variant", "clearable", "accessible"];
48296
48358
  var getState$1 = function getState(_ref) {
48297
48359
  var disabled = _ref.disabled,
48298
48360
  editable = _ref.editable,
@@ -48336,6 +48398,7 @@ var SearchOneLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
48336
48398
  variant = _props$variant === void 0 ? 'basic' : _props$variant,
48337
48399
  _props$clearable = props.clearable,
48338
48400
  clearable = _props$clearable === void 0 ? false : _props$clearable,
48401
+ accessible = props.accessible,
48339
48402
  nativeProps = _objectWithoutProperties(props, _excluded$5);
48340
48403
  var _React$useState = React__namespace.default.useState(false),
48341
48404
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -48397,7 +48460,8 @@ var SearchOneLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
48397
48460
  return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$1, {
48398
48461
  pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
48399
48462
  testID: testID,
48400
- style: style
48463
+ style: style,
48464
+ accessible: accessible
48401
48465
  }, /*#__PURE__*/React__namespace.default.createElement(StyledInputContainer, {
48402
48466
  themeVariant: variant
48403
48467
  }, renderPrefix({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn-work-uikit",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
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.110.0",
26
+ "@hero-design/rn": "^8.111.0",
27
27
  "hero-editor": "^1.17.0"
28
28
  },
29
29
  "peerDependencies": {
@@ -32,7 +32,7 @@
32
32
  "@react-native-community/datetimepicker": "^3.5.2 || ^7.6.1",
33
33
  "@react-native-community/slider": "^4.5.1",
34
34
  "react": "18.3.1",
35
- "react-native": "0.76.9",
35
+ "react-native": "0.77.3",
36
36
  "react-native-gesture-handler": "~2.20.2",
37
37
  "react-native-linear-gradient": "^2.8.3",
38
38
  "react-native-pager-view": "^6.7.0",
@@ -61,10 +61,10 @@
61
61
  "@react-native-community/cli-platform-ios": "15.0.1",
62
62
  "@react-native-community/datetimepicker": "8.2.0",
63
63
  "@react-native-community/slider": "^4.5.1",
64
- "@react-native/babel-preset": "0.76.9",
65
- "@react-native/eslint-config": "0.76.9",
66
- "@react-native/metro-config": "0.76.9",
67
- "@react-native/typescript-config": "0.76.9",
64
+ "@react-native/babel-preset": "0.77.3",
65
+ "@react-native/eslint-config": "0.77.3",
66
+ "@react-native/metro-config": "0.77.3",
67
+ "@react-native/typescript-config": "0.77.3",
68
68
  "@rollup/plugin-alias": "^5.1.1",
69
69
  "@rollup/plugin-babel": "^6.0.4",
70
70
  "@rollup/plugin-commonjs": "^28.0.1",
@@ -102,7 +102,7 @@
102
102
  "prettier-config-hd": "8.42.4",
103
103
  "react": "18.3.1",
104
104
  "react-dom": "^18.2.0",
105
- "react-native": "0.76.9",
105
+ "react-native": "0.77.3",
106
106
  "react-native-gesture-handler": "~2.20.2",
107
107
  "react-native-linear-gradient": "2.8.3",
108
108
  "react-native-pager-view": "6.5.1",
@@ -161,6 +161,7 @@ exports[`DatePicker renders correctly (snapshot) 1`] = `
161
161
  testID="input-label-text"
162
162
  themeFontWeight="regular"
163
163
  themeIntent="body"
164
+ themeIsItalic={false}
164
165
  themeState="filled"
165
166
  >
166
167
  Start date
@@ -190,6 +191,7 @@ exports[`DatePicker renders correctly (snapshot) 1`] = `
190
191
  }
191
192
  themeFontWeight="regular"
192
193
  themeIntent="body"
194
+ themeIsItalic={false}
193
195
  themeState="filled"
194
196
  >
195
197
  (Optional)
@@ -464,6 +466,7 @@ exports[`DatePicker renders correctly (snapshot) 1`] = `
464
466
  ]
465
467
  }
466
468
  themeIntent="body"
469
+ themeIsItalic={false}
467
470
  themeTypeface="neutral"
468
471
  themeVariant="regular-bold"
469
472
  >
@@ -636,6 +639,7 @@ exports[`DatePicker renders correctly (snapshot) 1`] = `
636
639
  themeButtonVariant="text-primary"
637
640
  themeIntent="body"
638
641
  themeIsCompact={false}
642
+ themeIsItalic={false}
639
643
  themeIsPressed={false}
640
644
  themeTypeface="neutral"
641
645
  themeVariant="regular-bold"
@@ -813,6 +817,7 @@ exports[`Dialog renders DatePickerAndroid when OS is android 1`] = `
813
817
  testID="input-label-text"
814
818
  themeFontWeight="regular"
815
819
  themeIntent="body"
820
+ themeIsItalic={false}
816
821
  themeState="filled"
817
822
  >
818
823
  Start date
@@ -842,6 +847,7 @@ exports[`Dialog renders DatePickerAndroid when OS is android 1`] = `
842
847
  }
843
848
  themeFontWeight="regular"
844
849
  themeIntent="body"
850
+ themeIsItalic={false}
845
851
  themeState="filled"
846
852
  >
847
853
  (Optional)
@@ -1147,6 +1153,7 @@ exports[`Dialog renders DatePickerIOS when OS is iOS 1`] = `
1147
1153
  testID="input-label-text"
1148
1154
  themeFontWeight="regular"
1149
1155
  themeIntent="body"
1156
+ themeIsItalic={false}
1150
1157
  themeState="filled"
1151
1158
  >
1152
1159
  Start date
@@ -1176,6 +1183,7 @@ exports[`Dialog renders DatePickerIOS when OS is iOS 1`] = `
1176
1183
  }
1177
1184
  themeFontWeight="regular"
1178
1185
  themeIntent="body"
1186
+ themeIsItalic={false}
1179
1187
  themeState="filled"
1180
1188
  >
1181
1189
  (Optional)
@@ -1450,6 +1458,7 @@ exports[`Dialog renders DatePickerIOS when OS is iOS 1`] = `
1450
1458
  ]
1451
1459
  }
1452
1460
  themeIntent="body"
1461
+ themeIsItalic={false}
1453
1462
  themeTypeface="neutral"
1454
1463
  themeVariant="regular-bold"
1455
1464
  >
@@ -1622,6 +1631,7 @@ exports[`Dialog renders DatePickerIOS when OS is iOS 1`] = `
1622
1631
  themeButtonVariant="text-primary"
1623
1632
  themeIntent="body"
1624
1633
  themeIsCompact={false}
1634
+ themeIsItalic={false}
1625
1635
  themeIsPressed={false}
1626
1636
  themeTypeface="neutral"
1627
1637
  themeVariant="regular-bold"
@@ -158,6 +158,7 @@ exports[`FormGroup should render: xxx 1`] = `
158
158
  testID="input-label-text"
159
159
  themeFontWeight="regular"
160
160
  themeIntent="body"
161
+ themeIsItalic={false}
161
162
  themeState="filled"
162
163
  >
163
164
  Text Input 1
@@ -418,6 +419,7 @@ exports[`FormGroup should render: xxx 1`] = `
418
419
  testID="input-label-text-text-input-2"
419
420
  themeFontWeight="regular"
420
421
  themeIntent="body"
422
+ themeIsItalic={false}
421
423
  themeState="error"
422
424
  >
423
425
  Text Input 2
@@ -447,6 +449,7 @@ exports[`FormGroup should render: xxx 1`] = `
447
449
  }
448
450
  themeFontWeight="regular"
449
451
  themeIntent="body"
452
+ themeIsItalic={false}
450
453
  themeState="error"
451
454
  >
452
455
  (Optional)
@@ -618,6 +621,7 @@ exports[`FormGroup should render: xxx 1`] = `
618
621
  testID="input-error-message"
619
622
  themeFontWeight="regular"
620
623
  themeIntent="body"
624
+ themeIsItalic={false}
621
625
  >
622
626
  This is an error
623
627
  </Text>
@@ -786,6 +790,7 @@ exports[`FormGroup should render: xxx 1`] = `
786
790
  testID="input-label-text"
787
791
  themeFontWeight="regular"
788
792
  themeIntent="body"
793
+ themeIsItalic={false}
789
794
  themeState="filled"
790
795
  >
791
796
  Text Input 3
@@ -163,6 +163,7 @@ exports[`MultiSelect renders correctly (snapshot) 1`] = `
163
163
  testID="input-label-text"
164
164
  themeFontWeight="regular"
165
165
  themeIntent="body"
166
+ themeIsItalic={false}
166
167
  themeState="filled"
167
168
  >
168
169
  Select Label
@@ -192,6 +193,7 @@ exports[`MultiSelect renders correctly (snapshot) 1`] = `
192
193
  }
193
194
  themeFontWeight="regular"
194
195
  themeIntent="body"
196
+ themeIsItalic={false}
195
197
  themeState="filled"
196
198
  >
197
199
  (Optional)
@@ -472,6 +474,7 @@ exports[`MultiSelect renders correctly (snapshot) 1`] = `
472
474
  ]
473
475
  }
474
476
  themeIntent="body"
477
+ themeIsItalic={false}
475
478
  themeTypeface="neutral"
476
479
  themeVariant="regular-bold"
477
480
  >
@@ -683,6 +686,7 @@ exports[`MultiSelect renders correctly (snapshot) 1`] = `
683
686
  themeButtonVariant="text-primary"
684
687
  themeIntent="body"
685
688
  themeIsCompact={false}
689
+ themeIsItalic={false}
686
690
  themeIsPressed={false}
687
691
  themeTypeface="neutral"
688
692
  themeVariant="regular-bold"
@@ -862,6 +866,7 @@ exports[`Select renders correctly (snapshot) 1`] = `
862
866
  testID="input-label-text"
863
867
  themeFontWeight="regular"
864
868
  themeIntent="body"
869
+ themeIsItalic={false}
865
870
  themeState="filled"
866
871
  >
867
872
  Select Label
@@ -891,6 +896,7 @@ exports[`Select renders correctly (snapshot) 1`] = `
891
896
  }
892
897
  themeFontWeight="regular"
893
898
  themeIntent="body"
899
+ themeIsItalic={false}
894
900
  themeState="filled"
895
901
  >
896
902
  (Optional)
@@ -1171,6 +1177,7 @@ exports[`Select renders correctly (snapshot) 1`] = `
1171
1177
  ]
1172
1178
  }
1173
1179
  themeIntent="body"
1180
+ themeIsItalic={false}
1174
1181
  themeTypeface="neutral"
1175
1182
  themeVariant="regular-bold"
1176
1183
  >