@hero-design/rn-work-uikit 1.13.0 → 1.13.2-test-dispatch-downstream.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,35 +1,44 @@
1
1
  # @hero-design/rn-work-uikit
2
2
 
3
- ## 1.13.0
3
+ ## 1.13.2-test-dispatch-downstream.0
4
4
 
5
- ### Minor Changes
5
+ ### Patch Changes
6
+
7
+ - test
6
8
 
7
- - [#4992](https://github.com/Thinkei/hero-design/pull/4992) [`87bd2b334180c9908328a7cdd2e686694dae1d7d`](https://github.com/Thinkei/hero-design/commit/87bd2b334180c9908328a7cdd2e686694dae1d7d) Thanks [@haudao-eh](https://github.com/haudao-eh)! - [Avatar] Add `neutral` intent to Avatar. `neutral` is now the default intent, replacing `primary`.
9
+ - Updated dependencies []:
10
+ - @hero-design/react-native-month-year-picker@8.45.3-test-dispatch-downstream.0
11
+ - @hero-design/rn@8.123.1-test-dispatch-downstream.0
8
12
 
9
- **Note:** Any Avatar rendered without an explicit `intent` prop will now
10
- display a teal-grey background instead of dark purple. Add `intent="primary"`
11
- to preserve the previous appearance.
13
+ ## 1.12.4-test-dispatch-downstream.2
12
14
 
13
15
  ### Patch Changes
14
16
 
15
- - Updated dependencies [[`87bd2b334180c9908328a7cdd2e686694dae1d7d`](https://github.com/Thinkei/hero-design/commit/87bd2b334180c9908328a7cdd2e686694dae1d7d)]:
16
- - @hero-design/rn@8.122.0
17
+ - test dispatch workflow
17
18
 
18
- ## 1.12.5
19
+ - Updated dependencies []:
20
+ - @hero-design/react-native-month-year-picker@8.45.3-test-dispatch-downstream.2
21
+ - @hero-design/rn@8.120.2-test-dispatch-downstream.2
22
+
23
+ ## 1.12.4-test-dispatch-downstream.1
19
24
 
20
25
  ### Patch Changes
21
26
 
22
- - [#4963](https://github.com/Thinkei/hero-design/pull/4963) [`8921509e3c0271abe2c0df377316fc5ded154a05`](https://github.com/Thinkei/hero-design/commit/8921509e3c0271abe2c0df377316fc5ded154a05) Thanks [@ttkien](https://github.com/ttkien)! - [Icon] add 'ai' intent
27
+ - test
23
28
 
24
- - Updated dependencies [[`4caa323ce232ef982bab8e3845aadc6b493a3804`](https://github.com/Thinkei/hero-design/commit/4caa323ce232ef982bab8e3845aadc6b493a3804), [`8921509e3c0271abe2c0df377316fc5ded154a05`](https://github.com/Thinkei/hero-design/commit/8921509e3c0271abe2c0df377316fc5ded154a05), [`654135e5178e2ab74dc6e9d80edb7bdab60275d7`](https://github.com/Thinkei/hero-design/commit/654135e5178e2ab74dc6e9d80edb7bdab60275d7)]:
25
- - @hero-design/rn@8.121.0
29
+ - Updated dependencies []:
30
+ - @hero-design/react-native-month-year-picker@8.45.3-test-dispatch-downstream.1
31
+ - @hero-design/rn@8.120.2-test-dispatch-downstream.1
26
32
 
27
- ## 1.12.4
33
+ ## 1.12.4-test-dispatch-downstream.0
28
34
 
29
35
  ### Patch Changes
30
36
 
31
- - Updated dependencies [[`78197ad0e210611eedab518bf088e7ee1c872fc3`](https://github.com/Thinkei/hero-design/commit/78197ad0e210611eedab518bf088e7ee1c872fc3)]:
32
- - @hero-design/rn@8.120.2
37
+ - bump test version
38
+
39
+ - Updated dependencies []:
40
+ - @hero-design/react-native-month-year-picker@8.45.3-test-dispatch-downstream.0
41
+ - @hero-design/rn@8.120.2-test-dispatch-downstream.0
33
42
 
34
43
  ## 1.12.3
35
44
 
package/es/index.js CHANGED
@@ -8038,6 +8038,23 @@ var getSegmentedControlTheme = function getSegmentedControlTheme(theme) {
8038
8038
  };
8039
8039
  };
8040
8040
 
8041
+ var getInlineLoaderTheme = function getInlineLoaderTheme(theme) {
8042
+ return {
8043
+ space: {
8044
+ gap: theme.space.small
8045
+ },
8046
+ icon: {
8047
+ lineHeights: {
8048
+ xsmall: theme.lineHeights.xsmall,
8049
+ small: theme.lineHeights.small,
8050
+ medium: theme.lineHeights.medium,
8051
+ large: theme.lineHeights.large,
8052
+ xlarge: theme.lineHeights.xlarge
8053
+ }
8054
+ }
8055
+ };
8056
+ };
8057
+
8041
8058
  var getTheme$1 = function getTheme() {
8042
8059
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
8043
8060
  var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$2;
@@ -8099,6 +8116,7 @@ var getTheme$1 = function getTheme() {
8099
8116
  toolbar: getToolbarTheme(globalTheme),
8100
8117
  typography: getTypographyTheme(globalTheme),
8101
8118
  floatingIsland: getFloatingIslandTheme(globalTheme),
8119
+ inlineLoader: getInlineLoaderTheme(globalTheme),
8102
8120
  segmentedControl: getSegmentedControlTheme(globalTheme)
8103
8121
  }
8104
8122
  });
@@ -10287,7 +10305,7 @@ var Box = function Box(_ref) {
10287
10305
  }), children);
10288
10306
  };
10289
10307
 
10290
- var StyledContainer$a = index$c(View)(function (_ref) {
10308
+ var StyledContainer$b = index$c(View)(function (_ref) {
10291
10309
  var theme = _ref.theme;
10292
10310
  return {
10293
10311
  width: '100%',
@@ -10676,7 +10694,7 @@ var TextInput$1 = /*#__PURE__*/forwardRef(function (_ref8, ref) {
10676
10694
  defaultValue: defaultValue,
10677
10695
  placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE$1
10678
10696
  });
10679
- return /*#__PURE__*/React__default.createElement(StyledContainer$a, {
10697
+ return /*#__PURE__*/React__default.createElement(StyledContainer$b, {
10680
10698
  style: styleWithoutBackgroundColor,
10681
10699
  pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
10682
10700
  testID: testID
@@ -14228,7 +14246,7 @@ function ContentNavigator(_ref) {
14228
14246
  }));
14229
14247
  }
14230
14248
 
14231
- var StyledContainer$9 = index$c(View)(function (_ref) {
14249
+ var StyledContainer$a = index$c(View)(function (_ref) {
14232
14250
  var theme = _ref.theme;
14233
14251
  return {
14234
14252
  backgroundColor: theme.__hd__.calendar.colors.background
@@ -14670,7 +14688,7 @@ var CalendarRange = function CalendarRange(_ref) {
14670
14688
  textIntent: isCurrentMonth ? undefined : 'subdued'
14671
14689
  });
14672
14690
  };
14673
- return /*#__PURE__*/React__default.createElement(StyledContainer$9, {
14691
+ return /*#__PURE__*/React__default.createElement(StyledContainer$a, {
14674
14692
  testID: testID
14675
14693
  }, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
14676
14694
  value: !shouldShowMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
@@ -14804,7 +14822,7 @@ var Calendar$1 = function Calendar(_ref) {
14804
14822
  monthPickerVisible = _useState2[0],
14805
14823
  setMonthPickerVisible = _useState2[1];
14806
14824
  var now = new Date();
14807
- return /*#__PURE__*/React__default.createElement(StyledContainer$9, {
14825
+ return /*#__PURE__*/React__default.createElement(StyledContainer$a, {
14808
14826
  testID: testID
14809
14827
  }, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
14810
14828
  value: !shouldShowMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
@@ -15786,7 +15804,7 @@ var StyledContent$1 = index$c(View)(function (_ref) {
15786
15804
  alignSelf: 'center'
15787
15805
  };
15788
15806
  });
15789
- var StyledContainer$8 = index$c(View)(function (_ref2) {
15807
+ var StyledContainer$9 = index$c(View)(function (_ref2) {
15790
15808
  var theme = _ref2.theme;
15791
15809
  return {
15792
15810
  width: '100%',
@@ -15794,7 +15812,7 @@ var StyledContainer$8 = index$c(View)(function (_ref2) {
15794
15812
  backgroundColor: theme.__hd__.appCue.colors.backdropColor
15795
15813
  };
15796
15814
  });
15797
- var StyledIconContainer$1 = index$c(Animated.View)(function (_ref3) {
15815
+ var StyledIconContainer$2 = index$c(Animated.View)(function (_ref3) {
15798
15816
  var theme = _ref3.theme,
15799
15817
  themePlacement = _ref3.themePlacement;
15800
15818
  return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
@@ -16110,7 +16128,7 @@ var AppCue = function AppCue(_ref) {
16110
16128
  onPress: function onPress() {
16111
16129
  return setVisible(false);
16112
16130
  }
16113
- }, /*#__PURE__*/React__default.createElement(StyledContainer$8, null, /*#__PURE__*/React__default.createElement(View, {
16131
+ }, /*#__PURE__*/React__default.createElement(StyledContainer$9, null, /*#__PURE__*/React__default.createElement(View, {
16114
16132
  style: StyleSheet$1.flatten([{
16115
16133
  position: 'absolute',
16116
16134
  top: pos.top,
@@ -16125,7 +16143,7 @@ var AppCue = function AppCue(_ref) {
16125
16143
  maxWidth: maxWidth
16126
16144
  },
16127
16145
  testID: testID && "".concat(testID, "-content")
16128
- }, renderContent()), /*#__PURE__*/React__default.createElement(StyledIconContainer$1, {
16146
+ }, renderContent()), /*#__PURE__*/React__default.createElement(StyledIconContainer$2, {
16129
16147
  themePlacement: placement,
16130
16148
  testID: testID && "".concat(testID, "-arrow")
16131
16149
  }, /*#__PURE__*/React__default.createElement(Icon, {
@@ -16134,7 +16152,7 @@ var AppCue = function AppCue(_ref) {
16134
16152
  })))))));
16135
16153
  };
16136
16154
 
16137
- var StyledContainer$7 = index$c(View)({
16155
+ var StyledContainer$8 = index$c(View)({
16138
16156
  alignItems: 'center',
16139
16157
  flexDirection: 'row'
16140
16158
  });
@@ -16176,7 +16194,7 @@ var Attachment = function Attachment(_ref) {
16176
16194
  backgroundHighlighted = _ref$backgroundHighli === void 0 ? false : _ref$backgroundHighli,
16177
16195
  style = _ref.style,
16178
16196
  testID = _ref.testID;
16179
- return /*#__PURE__*/React__default.createElement(StyledContainer$7, {
16197
+ return /*#__PURE__*/React__default.createElement(StyledContainer$8, {
16180
16198
  testID: testID,
16181
16199
  style: style
16182
16200
  }, /*#__PURE__*/React__default.createElement(StyledContentContainer, {
@@ -22757,7 +22775,7 @@ Object.assign(PublicDatePicker, {
22757
22775
  });
22758
22776
 
22759
22777
  var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
22760
- var StyledContainer$6 = index$c(View)(function (_ref) {
22778
+ var StyledContainer$7 = index$c(View)(function (_ref) {
22761
22779
  var theme = _ref.theme,
22762
22780
  enableShadow = _ref.enableShadow;
22763
22781
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
@@ -23022,7 +23040,7 @@ var Drawer = function Drawer(_ref) {
23022
23040
  return animation.stop();
23023
23041
  };
23024
23042
  }, [visible]);
23025
- return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
23043
+ return /*#__PURE__*/React__default.createElement(StyledContainer$7, {
23026
23044
  testID: testID,
23027
23045
  enableShadow: enableShadow,
23028
23046
  pointerEvents: "box-none"
@@ -25016,7 +25034,7 @@ var StyledFABText = index$c(Typography.Body)(function (_ref3) {
25016
25034
  marginHorizontal: theme.__hd__.fab.space.titleMarginHorizontal
25017
25035
  };
25018
25036
  });
25019
- var StyledIconContainer = index$c(Box)(function (_ref4) {
25037
+ var StyledIconContainer$1 = index$c(Box)(function (_ref4) {
25020
25038
  var theme = _ref4.theme;
25021
25039
  return {
25022
25040
  width: theme.__hd__.fab.sizes.iconContainerWidth,
@@ -25060,7 +25078,7 @@ var ActionItem = function ActionItem(_ref) {
25060
25078
  style: style,
25061
25079
  onPress: onPress,
25062
25080
  testID: testID
25063
- }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledIcon$3, {
25081
+ }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__default.createElement(StyledIcon$3, {
25064
25082
  size: "xsmall",
25065
25083
  icon: icon
25066
25084
  })), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
@@ -25109,14 +25127,14 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
25109
25127
  animated = _ref.animated,
25110
25128
  active = _ref.active;
25111
25129
  if (animated) {
25112
- return /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(AnimatedFABIcon, {
25130
+ return /*#__PURE__*/React__default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__default.createElement(AnimatedFABIcon, {
25113
25131
  active: active,
25114
25132
  icon: icon,
25115
25133
  testID: "animated-fab-icon",
25116
25134
  size: "xsmall"
25117
25135
  }));
25118
25136
  }
25119
- return /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledFABIcon, {
25137
+ return /*#__PURE__*/React__default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__default.createElement(StyledFABIcon, {
25120
25138
  size: "xsmall",
25121
25139
  icon: icon,
25122
25140
  testID: "styled-fab-icon"
@@ -25125,7 +25143,7 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
25125
25143
  var IconWithTextContent = function IconWithTextContent(_ref2) {
25126
25144
  var icon = _ref2.icon,
25127
25145
  title = _ref2.title;
25128
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledFABIcon, {
25146
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__default.createElement(StyledFABIcon, {
25129
25147
  size: "xsmall",
25130
25148
  icon: icon,
25131
25149
  testID: "styled-fab-icon"
@@ -25283,7 +25301,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
25283
25301
  });
25284
25302
  FAB$1.displayName = 'FAB';
25285
25303
 
25286
- var StyledContainer$5 = index$c(View)({
25304
+ var StyledContainer$6 = index$c(View)({
25287
25305
  position: 'absolute',
25288
25306
  left: 0,
25289
25307
  right: 0,
@@ -25390,7 +25408,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
25390
25408
  inputRange: [0, 1],
25391
25409
  outputRange: [0, 1]
25392
25410
  });
25393
- return /*#__PURE__*/React__default.createElement(StyledContainer$5, {
25411
+ return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
25394
25412
  testID: testID,
25395
25413
  pointerEvents: "box-none",
25396
25414
  style: style
@@ -26121,7 +26139,7 @@ var HeroDesignProvider = function HeroDesignProvider(_ref) {
26121
26139
  }, /*#__PURE__*/React__default.createElement(Toast.Provider, null, /*#__PURE__*/React__default.createElement(Portal.Provider, null, children))));
26122
26140
  };
26123
26141
 
26124
- var StyledContainer$4 = index$c(View)(function (_ref) {
26142
+ var StyledContainer$5 = index$c(View)(function (_ref) {
26125
26143
  var theme = _ref.theme;
26126
26144
  return {
26127
26145
  width: theme.__hd__.mapPin.sizes["default"],
@@ -26201,7 +26219,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
26201
26219
  var style = _ref.style,
26202
26220
  testID = _ref.testID,
26203
26221
  nativeProps = _objectWithoutProperties(_ref, _excluded$l);
26204
- return /*#__PURE__*/React__default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
26222
+ return /*#__PURE__*/React__default.createElement(StyledContainer$5, _extends$1({}, nativeProps, {
26205
26223
  style: style,
26206
26224
  testID: testID
26207
26225
  }), /*#__PURE__*/React__default.createElement(StyledFocusIcon, {
@@ -26228,7 +26246,7 @@ var MapPin = function MapPin(_ref) {
26228
26246
  icon = _ref.icon,
26229
26247
  nativeProps = _objectWithoutProperties(_ref, _excluded$k);
26230
26248
  var badgeIcon = getBadgeIconName(state);
26231
- return /*#__PURE__*/React__default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
26249
+ return /*#__PURE__*/React__default.createElement(StyledContainer$5, _extends$1({}, nativeProps, {
26232
26250
  style: style,
26233
26251
  testID: testID
26234
26252
  }), /*#__PURE__*/React__default.createElement(StyledContent, {
@@ -26511,7 +26529,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
26511
26529
  });
26512
26530
  PinInput.displayName = 'PinInput';
26513
26531
 
26514
- var StyledContainer$3 = index$c(View)(function (_ref) {
26532
+ var StyledContainer$4 = index$c(View)(function (_ref) {
26515
26533
  var theme = _ref.theme;
26516
26534
  return {
26517
26535
  flexDirection: 'row',
@@ -26584,7 +26602,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
26584
26602
  return /*#__PURE__*/React__default.createElement(View, _extends$1({}, nativeProps, {
26585
26603
  testID: testID,
26586
26604
  style: style
26587
- }), /*#__PURE__*/React__default.createElement(StyledContainer$3, null, /*#__PURE__*/React__default.createElement(Svg, {
26605
+ }), /*#__PURE__*/React__default.createElement(StyledContainer$4, null, /*#__PURE__*/React__default.createElement(Svg, {
26588
26606
  width: size,
26589
26607
  height: size,
26590
26608
  viewBox: "0 0 ".concat(size, " ").concat(size)
@@ -27567,7 +27585,7 @@ Object.assign(SingleSelect$1, {
27567
27585
  Multi: MultiSelect$1
27568
27586
  });
27569
27587
 
27570
- var StyledContainer$2 = index$c(Box)(function (_ref) {
27588
+ var StyledContainer$3 = index$c(Box)(function (_ref) {
27571
27589
  var theme = _ref.theme,
27572
27590
  themeIntent = _ref.themeIntent,
27573
27591
  themeVariant = _ref.themeVariant;
@@ -27653,7 +27671,7 @@ var Skeleton = function Skeleton(_ref) {
27653
27671
  }
27654
27672
  onLayout === null || onLayout === void 0 || onLayout(e);
27655
27673
  }, []);
27656
- return /*#__PURE__*/React__default.createElement(StyledContainer$2, _extends$1({
27674
+ return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({
27657
27675
  style: style,
27658
27676
  themeVariant: variant,
27659
27677
  themeIntent: intent,
@@ -41439,7 +41457,7 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41439
41457
  onBlur === null || onBlur === void 0 || onBlur();
41440
41458
  setIsFocused(false);
41441
41459
  }, [onBlur]);
41442
- return /*#__PURE__*/React__default.createElement(StyledContainer$a, {
41460
+ return /*#__PURE__*/React__default.createElement(StyledContainer$b, {
41443
41461
  testID: testID
41444
41462
  }, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
41445
41463
  themeHasPrefix: false,
@@ -41701,7 +41719,7 @@ function SectionListWithFAB(_ref) {
41701
41719
  });
41702
41720
  }
41703
41721
 
41704
- var StyledContainer$1 = index$c(View)(function () {
41722
+ var StyledContainer$2 = index$c(View)(function () {
41705
41723
  return {
41706
41724
  width: '100%'
41707
41725
  };
@@ -41806,7 +41824,7 @@ var SearchTwoLine = function SearchTwoLine(props) {
41806
41824
  _props$variant = props.variant,
41807
41825
  variant = _props$variant === void 0 ? 'basic' : _props$variant,
41808
41826
  accessible = props.accessible;
41809
- return /*#__PURE__*/React__default.createElement(StyledContainer$1, {
41827
+ return /*#__PURE__*/React__default.createElement(StyledContainer$2, {
41810
41828
  style: style,
41811
41829
  testID: testID,
41812
41830
  accessible: accessible
@@ -41923,7 +41941,7 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
41923
41941
  }));
41924
41942
  };
41925
41943
  var shouldShowClearButton = clearable && (state === 'filled' || isFocused) && !isEmptyValue;
41926
- return /*#__PURE__*/React__default.createElement(StyledContainer$1, {
41944
+ return /*#__PURE__*/React__default.createElement(StyledContainer$2, {
41927
41945
  pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
41928
41946
  testID: testID,
41929
41947
  style: style,
@@ -42380,6 +42398,238 @@ var FilterTrigger = function FilterTrigger(_ref) {
42380
42398
  })));
42381
42399
  };
42382
42400
 
42401
+ var ANIMATION_DURATION_MS = 2000;
42402
+ var AnimatedGradientText = function AnimatedGradientText(_ref) {
42403
+ var children = _ref.children,
42404
+ fontSize = _ref.fontSize,
42405
+ lineHeight = _ref.lineHeight;
42406
+ var theme = useTheme();
42407
+ var gradient = theme.colors.gradients.aiHorizontal;
42408
+ var _useState = useState(null),
42409
+ _useState2 = _slicedToArray(_useState, 2),
42410
+ size = _useState2[0],
42411
+ setSize = _useState2[1];
42412
+ var animatedValue = useRef(new Animated.Value(0));
42413
+ var onLayout = useCallback(function (event) {
42414
+ var _event$nativeEvent$la = event.nativeEvent.layout,
42415
+ width = _event$nativeEvent$la.width,
42416
+ height = _event$nativeEvent$la.height;
42417
+ setSize(function (prev) {
42418
+ if ((prev === null || prev === void 0 ? void 0 : prev.width) === width && (prev === null || prev === void 0 ? void 0 : prev.height) === height) return prev;
42419
+ return {
42420
+ width: width,
42421
+ height: height
42422
+ };
42423
+ });
42424
+ }, []);
42425
+ useEffect(function () {
42426
+ if (!size) return;
42427
+ animatedValue.current.setValue(0);
42428
+ var animation = Animated.loop(Animated.timing(animatedValue.current, {
42429
+ toValue: 1,
42430
+ duration: ANIMATION_DURATION_MS,
42431
+ easing: Easing.linear,
42432
+ useNativeDriver: Platform.OS !== 'web'
42433
+ }));
42434
+ animation.start();
42435
+ return function () {
42436
+ return animation.stop();
42437
+ };
42438
+ }, [size]);
42439
+
42440
+ // Slide left by one full text-width per loop cycle.
42441
+ // Starting at 0 keeps the gradient visible from the first frame.
42442
+ var translateX = size ? animatedValue.current.interpolate({
42443
+ inputRange: [0, 1],
42444
+ outputRange: [0, -size.width]
42445
+ }) : animatedValue.current;
42446
+ return /*#__PURE__*/React__default.createElement(View, null, /*#__PURE__*/React__default.createElement(MaskedView, {
42447
+ accessibilityElementsHidden: true,
42448
+ importantForAccessibility: "no-hide-descendants",
42449
+ maskElement: /*#__PURE__*/React__default.createElement(View, {
42450
+ onLayout: onLayout,
42451
+ style: {
42452
+ backgroundColor: 'transparent'
42453
+ },
42454
+ testID: "animated-gradient-text-mask"
42455
+ }, /*#__PURE__*/React__default.createElement(Typography.Body, {
42456
+ intent: "body",
42457
+ style: {
42458
+ fontSize: fontSize,
42459
+ lineHeight: lineHeight
42460
+ }
42461
+ }, children))
42462
+ }, size ? /*#__PURE__*/React__default.createElement(View, {
42463
+ style: {
42464
+ width: size.width,
42465
+ height: size.height,
42466
+ overflow: 'hidden'
42467
+ }
42468
+ }, /*#__PURE__*/React__default.createElement(Animated.View, {
42469
+ style: {
42470
+ width: size.width * 2,
42471
+ height: size.height,
42472
+ transform: [{
42473
+ translateX: translateX
42474
+ }]
42475
+ }
42476
+ }, /*#__PURE__*/React__default.createElement(LinearGradient, {
42477
+ start: gradient.start,
42478
+ end: gradient.end,
42479
+ colors: [gradient.colors[0], gradient.colors[1], gradient.colors[2], gradient.colors[1], gradient.colors[0]],
42480
+ locations: [0, 0.25, 0.5, 0.75, 1.0],
42481
+ style: {
42482
+ width: '100%',
42483
+ height: '100%'
42484
+ }
42485
+ }))) : /*#__PURE__*/React__default.createElement(Typography.Body, {
42486
+ intent: "body",
42487
+ style: {
42488
+ fontSize: fontSize,
42489
+ lineHeight: lineHeight
42490
+ }
42491
+ }, children)), /*#__PURE__*/React__default.createElement(View, {
42492
+ style: {
42493
+ position: 'absolute',
42494
+ opacity: 0
42495
+ },
42496
+ importantForAccessibility: "yes",
42497
+ accessibilityElementsHidden: false
42498
+ }, /*#__PURE__*/React__default.createElement(Typography.Body, {
42499
+ intent: "body",
42500
+ style: {
42501
+ fontSize: fontSize,
42502
+ lineHeight: lineHeight
42503
+ }
42504
+ }, children)));
42505
+ };
42506
+
42507
+ var TEXT_SIZE_NAMES = {
42508
+ 10: 'xsmall',
42509
+ 12: 'small',
42510
+ 14: 'medium',
42511
+ 16: 'large',
42512
+ 18: 'xlarge'
42513
+ };
42514
+ var getTextSizeName = function getTextSizeName(size) {
42515
+ return TEXT_SIZE_NAMES[size];
42516
+ };
42517
+ var getIconName = function getIconName(state) {
42518
+ switch (state) {
42519
+ case 'idle':
42520
+ return 'circle-ok-outlined';
42521
+ case 'loading':
42522
+ return 'loading';
42523
+ case 'success':
42524
+ return 'circle-check';
42525
+ case 'error':
42526
+ return 'circle-cancel-outlined';
42527
+ }
42528
+ };
42529
+ var getIconIntent = function getIconIntent(state, intent) {
42530
+ switch (state) {
42531
+ case 'idle':
42532
+ return 'inactive';
42533
+ case 'loading':
42534
+ return intent === 'ai' ? 'ai' : 'primary';
42535
+ case 'success':
42536
+ return 'success';
42537
+ case 'error':
42538
+ return 'danger';
42539
+ }
42540
+ };
42541
+ var getIconSize = function getIconSize(textSize) {
42542
+ switch (textSize) {
42543
+ case 10:
42544
+ return {
42545
+ size: 'xxxsmall'
42546
+ };
42547
+ case 12:
42548
+ return {
42549
+ size: 'xxxsmall',
42550
+ styleFontSize: 14
42551
+ };
42552
+ case 14:
42553
+ return {
42554
+ size: 'xxxsmall',
42555
+ styleFontSize: 14
42556
+ };
42557
+ case 16:
42558
+ return {
42559
+ size: 'xsmall'
42560
+ };
42561
+ case 18:
42562
+ return {
42563
+ size: 'small'
42564
+ };
42565
+ }
42566
+ };
42567
+
42568
+ var StyledContainer$1 = index$c(View)(function (_ref) {
42569
+ var theme = _ref.theme;
42570
+ return {
42571
+ flexDirection: 'row',
42572
+ alignItems: 'flex-start',
42573
+ gap: theme.__hd__.inlineLoader.space.gap
42574
+ };
42575
+ });
42576
+ var StyledIconContainer = index$c(View)(function (_ref2) {
42577
+ var themeSize = _ref2.themeSize,
42578
+ theme = _ref2.theme;
42579
+ return {
42580
+ height: theme.__hd__.inlineLoader.icon.lineHeights[themeSize],
42581
+ justifyContent: 'center'
42582
+ };
42583
+ });
42584
+
42585
+ var InlineLoader = function InlineLoader(_ref) {
42586
+ var text = _ref.text,
42587
+ _ref$state = _ref.state,
42588
+ state = _ref$state === void 0 ? 'idle' : _ref$state,
42589
+ _ref$intent = _ref.intent,
42590
+ intent = _ref$intent === void 0 ? 'neutral' : _ref$intent,
42591
+ _ref$size = _ref.size,
42592
+ size = _ref$size === void 0 ? 14 : _ref$size,
42593
+ style = _ref.style,
42594
+ testID = _ref.testID;
42595
+ var theme = useTheme();
42596
+ var textSizeName = getTextSizeName(size);
42597
+ var lineHeight = theme.__hd__.inlineLoader.icon.lineHeights[textSizeName];
42598
+ var iconName = getIconName(state);
42599
+ var iconIntent = getIconIntent(state, intent);
42600
+ var _getIconSize = getIconSize(size),
42601
+ iconSize = _getIconSize.size,
42602
+ styleFontSize = _getIconSize.styleFontSize;
42603
+ var iconStyle = styleFontSize ? {
42604
+ fontSize: styleFontSize
42605
+ } : undefined;
42606
+ var isAiLoading = state === 'loading' && intent === 'ai';
42607
+ return /*#__PURE__*/React__default.createElement(StyledContainer$1, {
42608
+ testID: testID,
42609
+ style: style
42610
+ }, /*#__PURE__*/React__default.createElement(StyledIconContainer, {
42611
+ themeSize: textSizeName
42612
+ }, /*#__PURE__*/React__default.createElement(Icon, {
42613
+ icon: iconName,
42614
+ intent: iconIntent,
42615
+ size: iconSize,
42616
+ spin: state === 'loading',
42617
+ style: iconStyle,
42618
+ accessible: false,
42619
+ accessibilityElementsHidden: true,
42620
+ importantForAccessibility: "no-hide-descendants"
42621
+ })), isAiLoading ? /*#__PURE__*/React__default.createElement(AnimatedGradientText, {
42622
+ fontSize: size,
42623
+ lineHeight: lineHeight
42624
+ }, text) : /*#__PURE__*/React__default.createElement(Typography.Body, {
42625
+ intent: "body",
42626
+ style: {
42627
+ fontSize: size,
42628
+ lineHeight: lineHeight
42629
+ }
42630
+ }, text));
42631
+ };
42632
+
42383
42633
  var getZIndexByState = function getZIndexByState(_ref) {
42384
42634
  var themeFocused = _ref.themeFocused,
42385
42635
  themeHasError = _ref.themeHasError;
@@ -55659,4 +55909,4 @@ var index = Object.assign(RichTextEditorWithRef, {
55659
55909
  Base: RichTextEditorInput
55660
55910
  });
55661
55911
 
55662
- export { Accordion, Alert, AppCue, Attachment, index$b as Avatar, Badge, BottomNavigation, BottomSheet, Box, CompoundButton as Button, Calendar, Card, index$a as Carousel, Chart, index$9 as Checkbox, Chip, Collapse, ContentNavigator, index$1 as DatePicker, Divider, index$8 as Drawer, Empty, ErrorComponent as Error, FAB, FilterTrigger, FlatListWithFAB, FloatingIsland, FormGroup, HeroDesignProvider, Icon, Illustration, IllustrationList, Image, List$1 as List, LocaleProvider, index$7 as MapPin, PageControl, PinInput, Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, SegmentedControl, index$2 as Select, Skeleton, Slider, Spinner, Success, index$6 as Swipeable, index$5 as Switch, index$4 as Tabs, Tag, TextInput, WorkThemeProvider as ThemeProvider, WorkThemeSwitcher as ThemeSwitcher, TimePicker, Toast, index$3 as Toolbar, Typography, eBensSystemPalette, ehJobsSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, getTheme, jobsSystemPalette, scale, index$c as styled, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette$1 as swagLightSystemPalette, swagSystemPalette$2 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useWorkTheme as useTheme, walletSystemPalette, withWorkTheme as withTheme, workSystemPalette };
55912
+ export { Accordion, Alert, AppCue, Attachment, index$b as Avatar, Badge, BottomNavigation, BottomSheet, Box, CompoundButton as Button, Calendar, Card, index$a as Carousel, Chart, index$9 as Checkbox, Chip, Collapse, ContentNavigator, index$1 as DatePicker, Divider, index$8 as Drawer, Empty, ErrorComponent as Error, FAB, FilterTrigger, FlatListWithFAB, FloatingIsland, FormGroup, HeroDesignProvider, Icon, Illustration, IllustrationList, Image, InlineLoader, List$1 as List, LocaleProvider, index$7 as MapPin, PageControl, PinInput, Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, SegmentedControl, index$2 as Select, Skeleton, Slider, Spinner, Success, index$6 as Swipeable, index$5 as Switch, index$4 as Tabs, Tag, TextInput, WorkThemeProvider as ThemeProvider, WorkThemeSwitcher as ThemeSwitcher, TimePicker, Toast, index$3 as Toolbar, Typography, eBensSystemPalette, ehJobsSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, getTheme, jobsSystemPalette, scale, index$c as styled, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette$1 as swagLightSystemPalette, swagSystemPalette$2 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useWorkTheme as useTheme, walletSystemPalette, withWorkTheme as withTheme, workSystemPalette };
package/lib/index.js CHANGED
@@ -8068,6 +8068,23 @@ var getSegmentedControlTheme = function getSegmentedControlTheme(theme) {
8068
8068
  };
8069
8069
  };
8070
8070
 
8071
+ var getInlineLoaderTheme = function getInlineLoaderTheme(theme) {
8072
+ return {
8073
+ space: {
8074
+ gap: theme.space.small
8075
+ },
8076
+ icon: {
8077
+ lineHeights: {
8078
+ xsmall: theme.lineHeights.xsmall,
8079
+ small: theme.lineHeights.small,
8080
+ medium: theme.lineHeights.medium,
8081
+ large: theme.lineHeights.large,
8082
+ xlarge: theme.lineHeights.xlarge
8083
+ }
8084
+ }
8085
+ };
8086
+ };
8087
+
8071
8088
  var getTheme$1 = function getTheme() {
8072
8089
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
8073
8090
  var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$2;
@@ -8129,6 +8146,7 @@ var getTheme$1 = function getTheme() {
8129
8146
  toolbar: getToolbarTheme(globalTheme),
8130
8147
  typography: getTypographyTheme(globalTheme),
8131
8148
  floatingIsland: getFloatingIslandTheme(globalTheme),
8149
+ inlineLoader: getInlineLoaderTheme(globalTheme),
8132
8150
  segmentedControl: getSegmentedControlTheme(globalTheme)
8133
8151
  }
8134
8152
  });
@@ -10317,7 +10335,7 @@ var Box = function Box(_ref) {
10317
10335
  }), children);
10318
10336
  };
10319
10337
 
10320
- var StyledContainer$a = index$c(reactNative.View)(function (_ref) {
10338
+ var StyledContainer$b = index$c(reactNative.View)(function (_ref) {
10321
10339
  var theme = _ref.theme;
10322
10340
  return {
10323
10341
  width: '100%',
@@ -10706,7 +10724,7 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
10706
10724
  defaultValue: defaultValue,
10707
10725
  placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE$1
10708
10726
  });
10709
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$a, {
10727
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$b, {
10710
10728
  style: styleWithoutBackgroundColor,
10711
10729
  pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
10712
10730
  testID: testID
@@ -14258,7 +14276,7 @@ function ContentNavigator(_ref) {
14258
14276
  }));
14259
14277
  }
14260
14278
 
14261
- var StyledContainer$9 = index$c(reactNative.View)(function (_ref) {
14279
+ var StyledContainer$a = index$c(reactNative.View)(function (_ref) {
14262
14280
  var theme = _ref.theme;
14263
14281
  return {
14264
14282
  backgroundColor: theme.__hd__.calendar.colors.background
@@ -14700,7 +14718,7 @@ var CalendarRange = function CalendarRange(_ref) {
14700
14718
  textIntent: isCurrentMonth ? undefined : 'subdued'
14701
14719
  });
14702
14720
  };
14703
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$9, {
14721
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$a, {
14704
14722
  testID: testID
14705
14723
  }, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__namespace.default.createElement(ContentNavigator, {
14706
14724
  value: !shouldShowMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
@@ -14834,7 +14852,7 @@ var Calendar = function Calendar(_ref) {
14834
14852
  monthPickerVisible = _useState2[0],
14835
14853
  setMonthPickerVisible = _useState2[1];
14836
14854
  var now = new Date();
14837
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$9, {
14855
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$a, {
14838
14856
  testID: testID
14839
14857
  }, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__namespace.default.createElement(ContentNavigator, {
14840
14858
  value: !shouldShowMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
@@ -15816,7 +15834,7 @@ var StyledContent$1 = index$c(reactNative.View)(function (_ref) {
15816
15834
  alignSelf: 'center'
15817
15835
  };
15818
15836
  });
15819
- var StyledContainer$8 = index$c(reactNative.View)(function (_ref2) {
15837
+ var StyledContainer$9 = index$c(reactNative.View)(function (_ref2) {
15820
15838
  var theme = _ref2.theme;
15821
15839
  return {
15822
15840
  width: '100%',
@@ -15824,7 +15842,7 @@ var StyledContainer$8 = index$c(reactNative.View)(function (_ref2) {
15824
15842
  backgroundColor: theme.__hd__.appCue.colors.backdropColor
15825
15843
  };
15826
15844
  });
15827
- var StyledIconContainer$1 = index$c(reactNative.Animated.View)(function (_ref3) {
15845
+ var StyledIconContainer$2 = index$c(reactNative.Animated.View)(function (_ref3) {
15828
15846
  var theme = _ref3.theme,
15829
15847
  themePlacement = _ref3.themePlacement;
15830
15848
  return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
@@ -16140,7 +16158,7 @@ var AppCue = function AppCue(_ref) {
16140
16158
  onPress: function onPress() {
16141
16159
  return setVisible(false);
16142
16160
  }
16143
- }, /*#__PURE__*/React__namespace.default.createElement(StyledContainer$8, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
16161
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledContainer$9, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
16144
16162
  style: reactNative.StyleSheet.flatten([{
16145
16163
  position: 'absolute',
16146
16164
  top: pos.top,
@@ -16155,7 +16173,7 @@ var AppCue = function AppCue(_ref) {
16155
16173
  maxWidth: maxWidth
16156
16174
  },
16157
16175
  testID: testID && "".concat(testID, "-content")
16158
- }, renderContent()), /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer$1, {
16176
+ }, renderContent()), /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer$2, {
16159
16177
  themePlacement: placement,
16160
16178
  testID: testID && "".concat(testID, "-arrow")
16161
16179
  }, /*#__PURE__*/React__namespace.default.createElement(Icon, {
@@ -16164,7 +16182,7 @@ var AppCue = function AppCue(_ref) {
16164
16182
  })))))));
16165
16183
  };
16166
16184
 
16167
- var StyledContainer$7 = index$c(reactNative.View)({
16185
+ var StyledContainer$8 = index$c(reactNative.View)({
16168
16186
  alignItems: 'center',
16169
16187
  flexDirection: 'row'
16170
16188
  });
@@ -16206,7 +16224,7 @@ var Attachment = function Attachment(_ref) {
16206
16224
  backgroundHighlighted = _ref$backgroundHighli === void 0 ? false : _ref$backgroundHighli,
16207
16225
  style = _ref.style,
16208
16226
  testID = _ref.testID;
16209
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$7, {
16227
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$8, {
16210
16228
  testID: testID,
16211
16229
  style: style
16212
16230
  }, /*#__PURE__*/React__namespace.default.createElement(StyledContentContainer, {
@@ -22787,7 +22805,7 @@ Object.assign(PublicDatePicker, {
22787
22805
  });
22788
22806
 
22789
22807
  var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
22790
- var StyledContainer$6 = index$c(reactNative.View)(function (_ref) {
22808
+ var StyledContainer$7 = index$c(reactNative.View)(function (_ref) {
22791
22809
  var theme = _ref.theme,
22792
22810
  enableShadow = _ref.enableShadow;
22793
22811
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
@@ -23052,7 +23070,7 @@ var Drawer = function Drawer(_ref) {
23052
23070
  return animation.stop();
23053
23071
  };
23054
23072
  }, [visible]);
23055
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$6, {
23073
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$7, {
23056
23074
  testID: testID,
23057
23075
  enableShadow: enableShadow,
23058
23076
  pointerEvents: "box-none"
@@ -25046,7 +25064,7 @@ var StyledFABText = index$c(Typography.Body)(function (_ref3) {
25046
25064
  marginHorizontal: theme.__hd__.fab.space.titleMarginHorizontal
25047
25065
  };
25048
25066
  });
25049
- var StyledIconContainer = index$c(Box)(function (_ref4) {
25067
+ var StyledIconContainer$1 = index$c(Box)(function (_ref4) {
25050
25068
  var theme = _ref4.theme;
25051
25069
  return {
25052
25070
  width: theme.__hd__.fab.sizes.iconContainerWidth,
@@ -25090,7 +25108,7 @@ var ActionItem = function ActionItem(_ref) {
25090
25108
  style: style,
25091
25109
  onPress: onPress,
25092
25110
  testID: testID
25093
- }, /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledIcon$3, {
25111
+ }, /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledIcon$3, {
25094
25112
  size: "xsmall",
25095
25113
  icon: icon
25096
25114
  })), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
@@ -25139,14 +25157,14 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
25139
25157
  animated = _ref.animated,
25140
25158
  active = _ref.active;
25141
25159
  if (animated) {
25142
- return /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(AnimatedFABIcon, {
25160
+ return /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__namespace.default.createElement(AnimatedFABIcon, {
25143
25161
  active: active,
25144
25162
  icon: icon,
25145
25163
  testID: "animated-fab-icon",
25146
25164
  size: "xsmall"
25147
25165
  }));
25148
25166
  }
25149
- return /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
25167
+ return /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
25150
25168
  size: "xsmall",
25151
25169
  icon: icon,
25152
25170
  testID: "styled-fab-icon"
@@ -25155,7 +25173,7 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
25155
25173
  var IconWithTextContent = function IconWithTextContent(_ref2) {
25156
25174
  var icon = _ref2.icon,
25157
25175
  title = _ref2.title;
25158
- return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
25176
+ return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
25159
25177
  size: "xsmall",
25160
25178
  icon: icon,
25161
25179
  testID: "styled-fab-icon"
@@ -25313,7 +25331,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
25313
25331
  });
25314
25332
  FAB$1.displayName = 'FAB';
25315
25333
 
25316
- var StyledContainer$5 = index$c(reactNative.View)({
25334
+ var StyledContainer$6 = index$c(reactNative.View)({
25317
25335
  position: 'absolute',
25318
25336
  left: 0,
25319
25337
  right: 0,
@@ -25420,7 +25438,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
25420
25438
  inputRange: [0, 1],
25421
25439
  outputRange: [0, 1]
25422
25440
  });
25423
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$5, {
25441
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$6, {
25424
25442
  testID: testID,
25425
25443
  pointerEvents: "box-none",
25426
25444
  style: style
@@ -26151,7 +26169,7 @@ var HeroDesignProvider = function HeroDesignProvider(_ref) {
26151
26169
  }, /*#__PURE__*/React__namespace.default.createElement(Toast.Provider, null, /*#__PURE__*/React__namespace.default.createElement(Portal$1.Provider, null, children))));
26152
26170
  };
26153
26171
 
26154
- var StyledContainer$4 = index$c(reactNative.View)(function (_ref) {
26172
+ var StyledContainer$5 = index$c(reactNative.View)(function (_ref) {
26155
26173
  var theme = _ref.theme;
26156
26174
  return {
26157
26175
  width: theme.__hd__.mapPin.sizes["default"],
@@ -26231,7 +26249,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
26231
26249
  var style = _ref.style,
26232
26250
  testID = _ref.testID,
26233
26251
  nativeProps = _objectWithoutProperties(_ref, _excluded$l);
26234
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
26252
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$5, _extends$1({}, nativeProps, {
26235
26253
  style: style,
26236
26254
  testID: testID
26237
26255
  }), /*#__PURE__*/React__namespace.default.createElement(StyledFocusIcon, {
@@ -26258,7 +26276,7 @@ var MapPin = function MapPin(_ref) {
26258
26276
  icon = _ref.icon,
26259
26277
  nativeProps = _objectWithoutProperties(_ref, _excluded$k);
26260
26278
  var badgeIcon = getBadgeIconName(state);
26261
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
26279
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$5, _extends$1({}, nativeProps, {
26262
26280
  style: style,
26263
26281
  testID: testID
26264
26282
  }), /*#__PURE__*/React__namespace.default.createElement(StyledContent, {
@@ -26541,7 +26559,7 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
26541
26559
  });
26542
26560
  PinInput.displayName = 'PinInput';
26543
26561
 
26544
- var StyledContainer$3 = index$c(reactNative.View)(function (_ref) {
26562
+ var StyledContainer$4 = index$c(reactNative.View)(function (_ref) {
26545
26563
  var theme = _ref.theme;
26546
26564
  return {
26547
26565
  flexDirection: 'row',
@@ -26614,7 +26632,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
26614
26632
  return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, _extends$1({}, nativeProps, {
26615
26633
  testID: testID,
26616
26634
  style: style
26617
- }), /*#__PURE__*/React__namespace.default.createElement(StyledContainer$3, null, /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
26635
+ }), /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, null, /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
26618
26636
  width: size,
26619
26637
  height: size,
26620
26638
  viewBox: "0 0 ".concat(size, " ").concat(size)
@@ -27597,7 +27615,7 @@ Object.assign(SingleSelect$1, {
27597
27615
  Multi: MultiSelect$1
27598
27616
  });
27599
27617
 
27600
- var StyledContainer$2 = index$c(Box)(function (_ref) {
27618
+ var StyledContainer$3 = index$c(Box)(function (_ref) {
27601
27619
  var theme = _ref.theme,
27602
27620
  themeIntent = _ref.themeIntent,
27603
27621
  themeVariant = _ref.themeVariant;
@@ -27683,7 +27701,7 @@ var Skeleton = function Skeleton(_ref) {
27683
27701
  }
27684
27702
  onLayout === null || onLayout === void 0 || onLayout(e);
27685
27703
  }, []);
27686
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$2, _extends$1({
27704
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$3, _extends$1({
27687
27705
  style: style,
27688
27706
  themeVariant: variant,
27689
27707
  themeIntent: intent,
@@ -41469,7 +41487,7 @@ var RichTextEditor$1 = function RichTextEditor(_ref) {
41469
41487
  onBlur === null || onBlur === void 0 || onBlur();
41470
41488
  setIsFocused(false);
41471
41489
  }, [onBlur]);
41472
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$a, {
41490
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$b, {
41473
41491
  testID: testID
41474
41492
  }, /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
41475
41493
  themeHasPrefix: false,
@@ -41731,7 +41749,7 @@ function SectionListWithFAB(_ref) {
41731
41749
  });
41732
41750
  }
41733
41751
 
41734
- var StyledContainer$1 = index$c(reactNative.View)(function () {
41752
+ var StyledContainer$2 = index$c(reactNative.View)(function () {
41735
41753
  return {
41736
41754
  width: '100%'
41737
41755
  };
@@ -41836,7 +41854,7 @@ var SearchTwoLine = function SearchTwoLine(props) {
41836
41854
  _props$variant = props.variant,
41837
41855
  variant = _props$variant === void 0 ? 'basic' : _props$variant,
41838
41856
  accessible = props.accessible;
41839
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$1, {
41857
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$2, {
41840
41858
  style: style,
41841
41859
  testID: testID,
41842
41860
  accessible: accessible
@@ -41953,7 +41971,7 @@ var SearchOneLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
41953
41971
  }));
41954
41972
  };
41955
41973
  var shouldShowClearButton = clearable && (state === 'filled' || isFocused) && !isEmptyValue;
41956
- return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$1, {
41974
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$2, {
41957
41975
  pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
41958
41976
  testID: testID,
41959
41977
  style: style,
@@ -42410,6 +42428,238 @@ var FilterTrigger = function FilterTrigger(_ref) {
42410
42428
  })));
42411
42429
  };
42412
42430
 
42431
+ var ANIMATION_DURATION_MS = 2000;
42432
+ var AnimatedGradientText = function AnimatedGradientText(_ref) {
42433
+ var children = _ref.children,
42434
+ fontSize = _ref.fontSize,
42435
+ lineHeight = _ref.lineHeight;
42436
+ var theme = useTheme();
42437
+ var gradient = theme.colors.gradients.aiHorizontal;
42438
+ var _useState = React.useState(null),
42439
+ _useState2 = _slicedToArray(_useState, 2),
42440
+ size = _useState2[0],
42441
+ setSize = _useState2[1];
42442
+ var animatedValue = React.useRef(new reactNative.Animated.Value(0));
42443
+ var onLayout = React.useCallback(function (event) {
42444
+ var _event$nativeEvent$la = event.nativeEvent.layout,
42445
+ width = _event$nativeEvent$la.width,
42446
+ height = _event$nativeEvent$la.height;
42447
+ setSize(function (prev) {
42448
+ if ((prev === null || prev === void 0 ? void 0 : prev.width) === width && (prev === null || prev === void 0 ? void 0 : prev.height) === height) return prev;
42449
+ return {
42450
+ width: width,
42451
+ height: height
42452
+ };
42453
+ });
42454
+ }, []);
42455
+ React.useEffect(function () {
42456
+ if (!size) return;
42457
+ animatedValue.current.setValue(0);
42458
+ var animation = reactNative.Animated.loop(reactNative.Animated.timing(animatedValue.current, {
42459
+ toValue: 1,
42460
+ duration: ANIMATION_DURATION_MS,
42461
+ easing: reactNative.Easing.linear,
42462
+ useNativeDriver: reactNative.Platform.OS !== 'web'
42463
+ }));
42464
+ animation.start();
42465
+ return function () {
42466
+ return animation.stop();
42467
+ };
42468
+ }, [size]);
42469
+
42470
+ // Slide left by one full text-width per loop cycle.
42471
+ // Starting at 0 keeps the gradient visible from the first frame.
42472
+ var translateX = size ? animatedValue.current.interpolate({
42473
+ inputRange: [0, 1],
42474
+ outputRange: [0, -size.width]
42475
+ }) : animatedValue.current;
42476
+ return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, /*#__PURE__*/React__namespace.default.createElement(MaskedView__default.default, {
42477
+ accessibilityElementsHidden: true,
42478
+ importantForAccessibility: "no-hide-descendants",
42479
+ maskElement: /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
42480
+ onLayout: onLayout,
42481
+ style: {
42482
+ backgroundColor: 'transparent'
42483
+ },
42484
+ testID: "animated-gradient-text-mask"
42485
+ }, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
42486
+ intent: "body",
42487
+ style: {
42488
+ fontSize: fontSize,
42489
+ lineHeight: lineHeight
42490
+ }
42491
+ }, children))
42492
+ }, size ? /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
42493
+ style: {
42494
+ width: size.width,
42495
+ height: size.height,
42496
+ overflow: 'hidden'
42497
+ }
42498
+ }, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
42499
+ style: {
42500
+ width: size.width * 2,
42501
+ height: size.height,
42502
+ transform: [{
42503
+ translateX: translateX
42504
+ }]
42505
+ }
42506
+ }, /*#__PURE__*/React__namespace.default.createElement(expoLinearGradient.LinearGradient, {
42507
+ start: gradient.start,
42508
+ end: gradient.end,
42509
+ colors: [gradient.colors[0], gradient.colors[1], gradient.colors[2], gradient.colors[1], gradient.colors[0]],
42510
+ locations: [0, 0.25, 0.5, 0.75, 1.0],
42511
+ style: {
42512
+ width: '100%',
42513
+ height: '100%'
42514
+ }
42515
+ }))) : /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
42516
+ intent: "body",
42517
+ style: {
42518
+ fontSize: fontSize,
42519
+ lineHeight: lineHeight
42520
+ }
42521
+ }, children)), /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
42522
+ style: {
42523
+ position: 'absolute',
42524
+ opacity: 0
42525
+ },
42526
+ importantForAccessibility: "yes",
42527
+ accessibilityElementsHidden: false
42528
+ }, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
42529
+ intent: "body",
42530
+ style: {
42531
+ fontSize: fontSize,
42532
+ lineHeight: lineHeight
42533
+ }
42534
+ }, children)));
42535
+ };
42536
+
42537
+ var TEXT_SIZE_NAMES = {
42538
+ 10: 'xsmall',
42539
+ 12: 'small',
42540
+ 14: 'medium',
42541
+ 16: 'large',
42542
+ 18: 'xlarge'
42543
+ };
42544
+ var getTextSizeName = function getTextSizeName(size) {
42545
+ return TEXT_SIZE_NAMES[size];
42546
+ };
42547
+ var getIconName = function getIconName(state) {
42548
+ switch (state) {
42549
+ case 'idle':
42550
+ return 'circle-ok-outlined';
42551
+ case 'loading':
42552
+ return 'loading';
42553
+ case 'success':
42554
+ return 'circle-check';
42555
+ case 'error':
42556
+ return 'circle-cancel-outlined';
42557
+ }
42558
+ };
42559
+ var getIconIntent = function getIconIntent(state, intent) {
42560
+ switch (state) {
42561
+ case 'idle':
42562
+ return 'inactive';
42563
+ case 'loading':
42564
+ return intent === 'ai' ? 'ai' : 'primary';
42565
+ case 'success':
42566
+ return 'success';
42567
+ case 'error':
42568
+ return 'danger';
42569
+ }
42570
+ };
42571
+ var getIconSize = function getIconSize(textSize) {
42572
+ switch (textSize) {
42573
+ case 10:
42574
+ return {
42575
+ size: 'xxxsmall'
42576
+ };
42577
+ case 12:
42578
+ return {
42579
+ size: 'xxxsmall',
42580
+ styleFontSize: 14
42581
+ };
42582
+ case 14:
42583
+ return {
42584
+ size: 'xxxsmall',
42585
+ styleFontSize: 14
42586
+ };
42587
+ case 16:
42588
+ return {
42589
+ size: 'xsmall'
42590
+ };
42591
+ case 18:
42592
+ return {
42593
+ size: 'small'
42594
+ };
42595
+ }
42596
+ };
42597
+
42598
+ var StyledContainer$1 = index$c(reactNative.View)(function (_ref) {
42599
+ var theme = _ref.theme;
42600
+ return {
42601
+ flexDirection: 'row',
42602
+ alignItems: 'flex-start',
42603
+ gap: theme.__hd__.inlineLoader.space.gap
42604
+ };
42605
+ });
42606
+ var StyledIconContainer = index$c(reactNative.View)(function (_ref2) {
42607
+ var themeSize = _ref2.themeSize,
42608
+ theme = _ref2.theme;
42609
+ return {
42610
+ height: theme.__hd__.inlineLoader.icon.lineHeights[themeSize],
42611
+ justifyContent: 'center'
42612
+ };
42613
+ });
42614
+
42615
+ var InlineLoader = function InlineLoader(_ref) {
42616
+ var text = _ref.text,
42617
+ _ref$state = _ref.state,
42618
+ state = _ref$state === void 0 ? 'idle' : _ref$state,
42619
+ _ref$intent = _ref.intent,
42620
+ intent = _ref$intent === void 0 ? 'neutral' : _ref$intent,
42621
+ _ref$size = _ref.size,
42622
+ size = _ref$size === void 0 ? 14 : _ref$size,
42623
+ style = _ref.style,
42624
+ testID = _ref.testID;
42625
+ var theme = useTheme();
42626
+ var textSizeName = getTextSizeName(size);
42627
+ var lineHeight = theme.__hd__.inlineLoader.icon.lineHeights[textSizeName];
42628
+ var iconName = getIconName(state);
42629
+ var iconIntent = getIconIntent(state, intent);
42630
+ var _getIconSize = getIconSize(size),
42631
+ iconSize = _getIconSize.size,
42632
+ styleFontSize = _getIconSize.styleFontSize;
42633
+ var iconStyle = styleFontSize ? {
42634
+ fontSize: styleFontSize
42635
+ } : undefined;
42636
+ var isAiLoading = state === 'loading' && intent === 'ai';
42637
+ return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$1, {
42638
+ testID: testID,
42639
+ style: style
42640
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, {
42641
+ themeSize: textSizeName
42642
+ }, /*#__PURE__*/React__namespace.default.createElement(Icon, {
42643
+ icon: iconName,
42644
+ intent: iconIntent,
42645
+ size: iconSize,
42646
+ spin: state === 'loading',
42647
+ style: iconStyle,
42648
+ accessible: false,
42649
+ accessibilityElementsHidden: true,
42650
+ importantForAccessibility: "no-hide-descendants"
42651
+ })), isAiLoading ? /*#__PURE__*/React__namespace.default.createElement(AnimatedGradientText, {
42652
+ fontSize: size,
42653
+ lineHeight: lineHeight
42654
+ }, text) : /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
42655
+ intent: "body",
42656
+ style: {
42657
+ fontSize: size,
42658
+ lineHeight: lineHeight
42659
+ }
42660
+ }, text));
42661
+ };
42662
+
42413
42663
  var getZIndexByState = function getZIndexByState(_ref) {
42414
42664
  var themeFocused = _ref.themeFocused,
42415
42665
  themeHasError = _ref.themeHasError;
@@ -55722,6 +55972,7 @@ exports.Icon = Icon;
55722
55972
  exports.Illustration = Illustration;
55723
55973
  exports.IllustrationList = IllustrationList;
55724
55974
  exports.Image = Image;
55975
+ exports.InlineLoader = InlineLoader;
55725
55976
  exports.List = List$1;
55726
55977
  exports.LocaleProvider = LocaleProvider;
55727
55978
  exports.MapPin = index$7;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn-work-uikit",
3
- "version": "1.13.0",
3
+ "version": "1.13.2-test-dispatch-downstream.0",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -23,11 +23,11 @@
23
23
  "dependencies": {
24
24
  "@emotion/native": "^11.9.3",
25
25
  "@emotion/react": "^11.9.3",
26
- "@hero-design/rn": "8.122.0",
26
+ "@hero-design/rn": "8.123.1-test-dispatch-downstream.0",
27
27
  "hero-editor": "^1.17.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@hero-design/react-native-month-year-picker": "^8.45.2",
30
+ "@hero-design/react-native-month-year-picker": "^8.45.3-test-dispatch-downstream.0",
31
31
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
32
32
  "@react-native-community/datetimepicker": "^8.4.4",
33
33
  "@react-native-community/slider": " ^5.0.1",
@@ -55,8 +55,8 @@
55
55
  "@eslint/compat": "^1.1.1",
56
56
  "@eslint/eslintrc": "^3.1.0",
57
57
  "@eslint/js": "^9.8.0",
58
- "@hero-design/eslint-plugin": "9.2.3",
59
- "@hero-design/react-native-month-year-picker": "^8.45.2",
58
+ "@hero-design/eslint-plugin": "9.2.4-test-dispatch-downstream.0",
59
+ "@hero-design/react-native-month-year-picker": "^8.45.3-test-dispatch-downstream.0",
60
60
  "@ptomasroos/react-native-multi-slider": "^2.2.2",
61
61
  "@react-native-community/datetimepicker": "8.4.4",
62
62
  "@react-native-community/slider": "^5.0.1",
@@ -80,12 +80,12 @@
80
80
  "babel-plugin-module-resolver": "^5.0.2",
81
81
  "core-js": "^3.33.0",
82
82
  "eslint": "^8.56.0",
83
- "eslint-config-hd": "8.42.5",
83
+ "eslint-config-hd": "8.42.6-test-dispatch-downstream.0",
84
84
  "expo-linear-gradient": "55.0.9",
85
85
  "jest": "^29.2.1",
86
86
  "jest-environment-jsdom": "^29.2.1",
87
87
  "jest-junit": "^16.0.0",
88
- "prettier-config-hd": "8.42.4",
88
+ "prettier-config-hd": "8.42.5-test-dispatch-downstream.0",
89
89
  "react": "19.1.0",
90
90
  "react-dom": "19.1.0",
91
91
  "react-native": "0.81.5",