@hero-design/rn 8.103.2 → 8.103.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +7 -0
- package/es/index.js +102 -86
- package/eslint.config.js +1 -0
- package/lib/index.js +102 -86
- package/package.json +1 -1
- package/src/components/DatePicker/StyledDatePicker.tsx +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -0
- package/src/components/PinInput/PinCell.tsx +6 -1
- package/src/components/PinInput/StyledPinInput.tsx +2 -2
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +30 -0
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +287 -5
- package/src/components/PinInput/__tests__/index.spec.tsx +33 -0
- package/src/components/PinInput/index.tsx +6 -2
- package/src/components/Select/MultiSelect/index.tsx +15 -4
- package/src/components/Select/SingleSelect/index.tsx +15 -4
- package/src/components/Select/index.internal.tsx +13 -0
- package/src/components/Select/index.tsx +14 -2
- package/src/components/Select/types.ts +4 -0
- package/src/components/TimePicker/StyledTimePicker.tsx +1 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -0
- package/src/index.internal.ts +5 -0
- package/src/types.internal.ts +8 -0
- package/stats/8.103.2/rn-stats.html +3 -1
- package/stats/8.103.3/rn-stats.html +4844 -0
- package/types/components/Checkbox/index.d.ts +1 -1
- package/types/components/PinInput/StyledPinInput.d.ts +2 -4
- package/types/components/Select/MultiSelect/index.d.ts +5 -1
- package/types/components/Select/SingleSelect/index.d.ts +5 -1
- package/types/components/Select/index.d.ts +5 -3
- package/types/components/Select/index.internal.d.ts +8 -0
- package/types/components/Select/types.d.ts +4 -0
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/index.internal.d.ts +4 -0
- package/types/types.internal.d.ts +3 -0
package/es/index.js
CHANGED
|
@@ -7632,7 +7632,7 @@ var StyledText$3 = index$b(Text$1)(function (_ref) {
|
|
|
7632
7632
|
});
|
|
7633
7633
|
});
|
|
7634
7634
|
|
|
7635
|
-
var _excluded$
|
|
7635
|
+
var _excluded$O = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
7636
7636
|
var Text = function Text(_ref) {
|
|
7637
7637
|
var children = _ref.children,
|
|
7638
7638
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -7645,7 +7645,7 @@ var Text = function Text(_ref) {
|
|
|
7645
7645
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7646
7646
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7647
7647
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7648
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7648
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
7649
7649
|
useDeprecation('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.');
|
|
7650
7650
|
return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
7651
7651
|
themeFontSize: fontSize,
|
|
@@ -7675,7 +7675,7 @@ var StyledCaption = index$b(Text$1)(function (_ref) {
|
|
|
7675
7675
|
};
|
|
7676
7676
|
});
|
|
7677
7677
|
|
|
7678
|
-
var _excluded$
|
|
7678
|
+
var _excluded$N = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
7679
7679
|
var Caption = function Caption(_ref) {
|
|
7680
7680
|
var children = _ref.children,
|
|
7681
7681
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -7684,7 +7684,7 @@ var Caption = function Caption(_ref) {
|
|
|
7684
7684
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7685
7685
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7686
7686
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7687
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7687
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
7688
7688
|
return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
7689
7689
|
themeFontWeight: fontWeight,
|
|
7690
7690
|
themeIntent: intent,
|
|
@@ -7703,14 +7703,14 @@ var StyledLabel$1 = index$b(Text$1)(function (_ref) {
|
|
|
7703
7703
|
};
|
|
7704
7704
|
});
|
|
7705
7705
|
|
|
7706
|
-
var _excluded$
|
|
7706
|
+
var _excluded$M = ["children", "intent", "allowFontScaling"];
|
|
7707
7707
|
var Label = function Label(_ref) {
|
|
7708
7708
|
var children = _ref.children,
|
|
7709
7709
|
_ref$intent = _ref.intent,
|
|
7710
7710
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7711
7711
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7712
7712
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7713
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7713
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
7714
7714
|
return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
7715
7715
|
themeIntent: intent,
|
|
7716
7716
|
allowFontScaling: allowFontScaling
|
|
@@ -7731,7 +7731,7 @@ var StyledTitle$1 = index$b(Text$1)(function (_ref) {
|
|
|
7731
7731
|
};
|
|
7732
7732
|
});
|
|
7733
7733
|
|
|
7734
|
-
var _excluded$
|
|
7734
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
7735
7735
|
var Title = function Title(_ref) {
|
|
7736
7736
|
var children = _ref.children,
|
|
7737
7737
|
_ref$intent = _ref.intent,
|
|
@@ -7742,7 +7742,7 @@ var Title = function Title(_ref) {
|
|
|
7742
7742
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
7743
7743
|
_ref$typeface = _ref.typeface,
|
|
7744
7744
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7745
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7745
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
7746
7746
|
return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
7747
7747
|
themeLevel: level,
|
|
7748
7748
|
themeTypeface: typeface,
|
|
@@ -7777,7 +7777,7 @@ var StyledBody$2 = index$b(Text$1)(function (_ref) {
|
|
|
7777
7777
|
};
|
|
7778
7778
|
});
|
|
7779
7779
|
|
|
7780
|
-
var _excluded$
|
|
7780
|
+
var _excluded$K = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
7781
7781
|
var Body = function Body(_ref) {
|
|
7782
7782
|
var children = _ref.children,
|
|
7783
7783
|
_ref$intent = _ref.intent,
|
|
@@ -7788,7 +7788,7 @@ var Body = function Body(_ref) {
|
|
|
7788
7788
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7789
7789
|
_ref$variant = _ref.variant,
|
|
7790
7790
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
7791
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7791
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
7792
7792
|
return /*#__PURE__*/React__default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
7793
7793
|
themeTypeface: typeface,
|
|
7794
7794
|
themeIntent: intent,
|
|
@@ -8389,10 +8389,10 @@ var StyledHeroIcon = index$b(HeroIcon)(function (_ref) {
|
|
|
8389
8389
|
};
|
|
8390
8390
|
});
|
|
8391
8391
|
|
|
8392
|
-
var _excluded$
|
|
8392
|
+
var _excluded$J = ["style"];
|
|
8393
8393
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
8394
8394
|
var style = _ref.style,
|
|
8395
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8395
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
8396
8396
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
8397
8397
|
useEffect(function () {
|
|
8398
8398
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -8497,7 +8497,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
8497
8497
|
}, content));
|
|
8498
8498
|
};
|
|
8499
8499
|
|
|
8500
|
-
var _excluded$
|
|
8500
|
+
var _excluded$I = ["key"];
|
|
8501
8501
|
var Accordion = function Accordion(_ref) {
|
|
8502
8502
|
var items = _ref.items,
|
|
8503
8503
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -8518,7 +8518,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
8518
8518
|
testID: testID
|
|
8519
8519
|
}, items.map(function (_ref2, index) {
|
|
8520
8520
|
var key = _ref2.key,
|
|
8521
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
8521
|
+
props = _objectWithoutProperties(_ref2, _excluded$I);
|
|
8522
8522
|
var open = _activeItemKey === key;
|
|
8523
8523
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
8524
8524
|
key: key
|
|
@@ -9441,7 +9441,7 @@ var borderWidths = {
|
|
|
9441
9441
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
9442
9442
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
9443
9443
|
|
|
9444
|
-
var _excluded$
|
|
9444
|
+
var _excluded$H = ["theme"];
|
|
9445
9445
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
9446
9446
|
var propConfig = config[key];
|
|
9447
9447
|
var propValue = props[key];
|
|
@@ -9468,18 +9468,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
9468
9468
|
var configKeys = Object.keys(config);
|
|
9469
9469
|
var StyledBox = index$b(View)(function (_ref5) {
|
|
9470
9470
|
var theme = _ref5.theme,
|
|
9471
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
9471
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$H);
|
|
9472
9472
|
var styleProps = pick(configKeys, otherProps);
|
|
9473
9473
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
9474
9474
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
9475
9475
|
});
|
|
9476
9476
|
|
|
9477
|
-
var _excluded$
|
|
9477
|
+
var _excluded$G = ["children", "style", "testID"];
|
|
9478
9478
|
var Box = function Box(_ref) {
|
|
9479
9479
|
var children = _ref.children,
|
|
9480
9480
|
style = _ref.style,
|
|
9481
9481
|
testID = _ref.testID,
|
|
9482
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
9482
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$G);
|
|
9483
9483
|
return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
9484
9484
|
style: style,
|
|
9485
9485
|
testID: testID
|
|
@@ -9746,7 +9746,7 @@ var StyledIcon$4 = index$b(Icon)(function (_ref6) {
|
|
|
9746
9746
|
};
|
|
9747
9747
|
});
|
|
9748
9748
|
|
|
9749
|
-
var _excluded$
|
|
9749
|
+
var _excluded$F = ["children", "visible", "intent", "style", "testID"];
|
|
9750
9750
|
var Status$1 = function Status(_ref) {
|
|
9751
9751
|
var children = _ref.children,
|
|
9752
9752
|
_ref$visible = _ref.visible,
|
|
@@ -9755,7 +9755,7 @@ var Status$1 = function Status(_ref) {
|
|
|
9755
9755
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
9756
9756
|
style = _ref.style,
|
|
9757
9757
|
testID = _ref.testID,
|
|
9758
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9758
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$F);
|
|
9759
9759
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
9760
9760
|
opacity = _React$useRef.current;
|
|
9761
9761
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -9791,7 +9791,7 @@ var Status$1 = function Status(_ref) {
|
|
|
9791
9791
|
|
|
9792
9792
|
var DEFAULT_MAX_NUMBER = 99;
|
|
9793
9793
|
|
|
9794
|
-
var _excluded$
|
|
9794
|
+
var _excluded$E = ["children", "visible", "style", "max", "testID", "content"];
|
|
9795
9795
|
var Status = function Status(_ref) {
|
|
9796
9796
|
var children = _ref.children,
|
|
9797
9797
|
_ref$visible = _ref.visible,
|
|
@@ -9801,7 +9801,7 @@ var Status = function Status(_ref) {
|
|
|
9801
9801
|
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
9802
9802
|
testID = _ref.testID,
|
|
9803
9803
|
originalContent = _ref.content,
|
|
9804
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9804
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
9805
9805
|
var content = useMemo(function () {
|
|
9806
9806
|
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
9807
9807
|
}, [originalContent, max]);
|
|
@@ -9813,7 +9813,7 @@ var Status = function Status(_ref) {
|
|
|
9813
9813
|
}, /*#__PURE__*/React__default.createElement(StyledCountText, null, content)));
|
|
9814
9814
|
};
|
|
9815
9815
|
|
|
9816
|
-
var _excluded$
|
|
9816
|
+
var _excluded$D = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
9817
9817
|
var getPaddingState = function getPaddingState(content) {
|
|
9818
9818
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
9819
9819
|
};
|
|
@@ -9832,7 +9832,7 @@ var Badge = function Badge(_ref) {
|
|
|
9832
9832
|
_ref$variant = _ref.variant,
|
|
9833
9833
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
9834
9834
|
icon = _ref.icon,
|
|
9835
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9835
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
9836
9836
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
9837
9837
|
opacity = _React$useRef.current;
|
|
9838
9838
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -9931,7 +9931,7 @@ var StyledBottomBarText = index$b(Typography.Caption)(function (_ref3) {
|
|
|
9931
9931
|
};
|
|
9932
9932
|
});
|
|
9933
9933
|
|
|
9934
|
-
var _excluded$
|
|
9934
|
+
var _excluded$C = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
9935
9935
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
9936
9936
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
9937
9937
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -9942,7 +9942,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
9942
9942
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
9943
9943
|
selectedTabKey = _ref.selectedTabKey,
|
|
9944
9944
|
tabs = _ref.tabs,
|
|
9945
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9945
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
9946
9946
|
var insets = useSafeAreaInsets();
|
|
9947
9947
|
/**
|
|
9948
9948
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -10028,13 +10028,13 @@ var StyledDivider = index$b(View)(function (_ref) {
|
|
|
10028
10028
|
}, horizontalMargin), verticalMargin);
|
|
10029
10029
|
});
|
|
10030
10030
|
|
|
10031
|
-
var _excluded$
|
|
10031
|
+
var _excluded$B = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10032
10032
|
var Divider = function Divider(_ref) {
|
|
10033
10033
|
var marginHorizontal = _ref.marginHorizontal,
|
|
10034
10034
|
marginVertical = _ref.marginVertical,
|
|
10035
10035
|
style = _ref.style,
|
|
10036
10036
|
testID = _ref.testID,
|
|
10037
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10037
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
10038
10038
|
return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10039
10039
|
themeMarginHorizontal: marginHorizontal,
|
|
10040
10040
|
themeMarginVertical: marginVertical,
|
|
@@ -10183,7 +10183,7 @@ var StyledLoadingDot = index$b(View)(function (_ref) {
|
|
|
10183
10183
|
}, themeStyling());
|
|
10184
10184
|
});
|
|
10185
10185
|
|
|
10186
|
-
var _excluded$
|
|
10186
|
+
var _excluded$A = ["count", "size", "testID", "themeVariant"];
|
|
10187
10187
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
10188
10188
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
10189
10189
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -10215,7 +10215,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
10215
10215
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
10216
10216
|
testID = _ref2.testID,
|
|
10217
10217
|
themeVariant = _ref2.themeVariant,
|
|
10218
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
10218
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$A);
|
|
10219
10219
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
10220
10220
|
useEffect(function () {
|
|
10221
10221
|
var animation = Animated.loop(Animated.timing(progressAnimation.current, {
|
|
@@ -10842,11 +10842,11 @@ var Header = function Header(_ref) {
|
|
|
10842
10842
|
}))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
|
|
10843
10843
|
};
|
|
10844
10844
|
|
|
10845
|
-
var _excluded$
|
|
10845
|
+
var _excluded$z = ["scrollEventThrottle"];
|
|
10846
10846
|
var BottomSheetScrollView = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
10847
10847
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
10848
10848
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
10849
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10849
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
10850
10850
|
var _useContext = useContext(BottomSheetContext),
|
|
10851
10851
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
10852
10852
|
var onScrollBeginDrag = useCallback(function (e) {
|
|
@@ -13924,12 +13924,12 @@ var Indicator = index$b(View)(function (_ref2) {
|
|
|
13924
13924
|
};
|
|
13925
13925
|
});
|
|
13926
13926
|
|
|
13927
|
-
var _excluded$
|
|
13927
|
+
var _excluded$y = ["intent", "children"];
|
|
13928
13928
|
var DataCard = function DataCard(_ref) {
|
|
13929
13929
|
var _ref$intent = _ref.intent,
|
|
13930
13930
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
13931
13931
|
children = _ref.children,
|
|
13932
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
13932
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
13933
13933
|
return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
|
|
13934
13934
|
themeIntent: intent,
|
|
13935
13935
|
testID: "data-card-indicator"
|
|
@@ -13948,13 +13948,13 @@ var StyledCard$1 = index$b(View)(function (_ref) {
|
|
|
13948
13948
|
});
|
|
13949
13949
|
});
|
|
13950
13950
|
|
|
13951
|
-
var _excluded$
|
|
13951
|
+
var _excluded$x = ["intent", "children", "variant"];
|
|
13952
13952
|
var Card = function Card(_ref) {
|
|
13953
13953
|
var intent = _ref.intent,
|
|
13954
13954
|
children = _ref.children,
|
|
13955
13955
|
_ref$variant = _ref.variant,
|
|
13956
13956
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
13957
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
13957
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
13958
13958
|
return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
13959
13959
|
themeIntent: intent,
|
|
13960
13960
|
themeVariant: variant
|
|
@@ -14220,7 +14220,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14220
14220
|
});
|
|
14221
14221
|
CardCarousel.displayName = 'CardCarousel';
|
|
14222
14222
|
|
|
14223
|
-
var _excluded$
|
|
14223
|
+
var _excluded$w = ["rounded", "size", "testID", "style"];
|
|
14224
14224
|
var Image = function Image(_ref) {
|
|
14225
14225
|
var _ref$rounded = _ref.rounded,
|
|
14226
14226
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -14228,7 +14228,7 @@ var Image = function Image(_ref) {
|
|
|
14228
14228
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
14229
14229
|
testID = _ref.testID,
|
|
14230
14230
|
style = _ref.style,
|
|
14231
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14231
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
14232
14232
|
useDeprecation('Image component will soon be deprecated. Please use `Image` from `react-native` instead.');
|
|
14233
14233
|
var theme = useTheme();
|
|
14234
14234
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
@@ -14363,7 +14363,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
14363
14363
|
}, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
|
|
14364
14364
|
};
|
|
14365
14365
|
|
|
14366
|
-
var _excluded$
|
|
14366
|
+
var _excluded$v = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
14367
14367
|
function useStateFromProp(initialValue) {
|
|
14368
14368
|
var _useState = useState(initialValue),
|
|
14369
14369
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -14390,7 +14390,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
14390
14390
|
testID = _ref.testID,
|
|
14391
14391
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
14392
14392
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
14393
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14393
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
14394
14394
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$1);
|
|
14395
14395
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
14396
14396
|
var theme = useTheme();
|
|
@@ -19661,7 +19661,7 @@ var StyledChipIcon = index$b(Icon)(function (_ref2) {
|
|
|
19661
19661
|
};
|
|
19662
19662
|
});
|
|
19663
19663
|
|
|
19664
|
-
var _excluded$
|
|
19664
|
+
var _excluded$u = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
|
|
19665
19665
|
var getChipLabel = function getChipLabel(label) {
|
|
19666
19666
|
if (typeof label === 'string') {
|
|
19667
19667
|
return /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
@@ -19694,7 +19694,7 @@ var Chip = function Chip(_ref) {
|
|
|
19694
19694
|
onPress = _ref.onPress,
|
|
19695
19695
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
19696
19696
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
19697
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
19697
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
19698
19698
|
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
19699
19699
|
var renamedVariant = getChipVariant(variant);
|
|
19700
19700
|
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
@@ -19944,7 +19944,7 @@ var StyledErrorAndMaxLengthContainer = index$b(View)(function () {
|
|
|
19944
19944
|
};
|
|
19945
19945
|
});
|
|
19946
19946
|
|
|
19947
|
-
var _excluded$
|
|
19947
|
+
var _excluded$t = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
19948
19948
|
var getState$3 = function getState(_ref) {
|
|
19949
19949
|
var disabled = _ref.disabled,
|
|
19950
19950
|
error = _ref.error,
|
|
@@ -20058,7 +20058,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
20058
20058
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
20059
20059
|
_ref8$variant = _ref8.variant,
|
|
20060
20060
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
20061
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
20061
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$t);
|
|
20062
20062
|
var displayText = getDisplayText(value, defaultValue);
|
|
20063
20063
|
var isEmptyValue = displayText.length === 0;
|
|
20064
20064
|
var _React$useState = React__default.useState({
|
|
@@ -20634,7 +20634,8 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
20634
20634
|
var StyledPickerWrapper$1 = index$b(View)(function (_ref) {
|
|
20635
20635
|
var theme = _ref.theme;
|
|
20636
20636
|
return {
|
|
20637
|
-
height: theme.__hd__.datePicker.sizes.height
|
|
20637
|
+
height: theme.__hd__.datePicker.sizes.height,
|
|
20638
|
+
alignItems: 'center'
|
|
20638
20639
|
};
|
|
20639
20640
|
});
|
|
20640
20641
|
|
|
@@ -20791,11 +20792,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
20791
20792
|
}));
|
|
20792
20793
|
};
|
|
20793
20794
|
|
|
20794
|
-
var _excluded$
|
|
20795
|
+
var _excluded$s = ["variant"];
|
|
20795
20796
|
var DatePicker = function DatePicker(_ref) {
|
|
20796
20797
|
var _ref$variant = _ref.variant,
|
|
20797
20798
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
20798
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
20799
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
20799
20800
|
if (variant === 'calendar') {
|
|
20800
20801
|
return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
|
|
20801
20802
|
}
|
|
@@ -22079,7 +22080,7 @@ var Portal$1 = Object.assign(Portal, {
|
|
|
22079
22080
|
Host: PortalHost
|
|
22080
22081
|
});
|
|
22081
22082
|
|
|
22082
|
-
var _excluded$
|
|
22083
|
+
var _excluded$r = ["visible"];
|
|
22083
22084
|
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
22084
22085
|
var DEFAULT_ANIMATION_CONFIG = {
|
|
22085
22086
|
easing: Easing.inOut(Easing.cubic),
|
|
@@ -22175,7 +22176,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
22175
22176
|
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
22176
22177
|
var _ref3$visible = _ref3.visible,
|
|
22177
22178
|
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
22178
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
22179
|
+
props = _objectWithoutProperties(_ref3, _excluded$r);
|
|
22179
22180
|
var modalRef = useRef(null);
|
|
22180
22181
|
var _useState = useState(visible),
|
|
22181
22182
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22286,7 +22287,7 @@ var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
|
|
|
22286
22287
|
};
|
|
22287
22288
|
});
|
|
22288
22289
|
|
|
22289
|
-
var _excluded$
|
|
22290
|
+
var _excluded$q = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
|
|
22290
22291
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
22291
22292
|
var renderImage$1 = function renderImage(image) {
|
|
22292
22293
|
if (/*#__PURE__*/isValidElement(image)) {
|
|
@@ -22327,7 +22328,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
22327
22328
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
22328
22329
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
22329
22330
|
icon = _ref2.icon,
|
|
22330
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
22331
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$q);
|
|
22331
22332
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
22332
22333
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
22333
22334
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -22553,13 +22554,13 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
22553
22554
|
})), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
|
|
22554
22555
|
};
|
|
22555
22556
|
|
|
22556
|
-
var _excluded$
|
|
22557
|
+
var _excluded$p = ["active"];
|
|
22557
22558
|
var AnimatedIcons = Animated.createAnimatedComponent(/*#__PURE__*/React__default.forwardRef(function (props, _) {
|
|
22558
22559
|
return /*#__PURE__*/React__default.createElement(StyledFABIcon, props);
|
|
22559
22560
|
}));
|
|
22560
22561
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
22561
22562
|
var active = _ref.active,
|
|
22562
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
22563
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
22563
22564
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
22564
22565
|
useEffect(function () {
|
|
22565
22566
|
var animation = Animated.spring(rotateAnimation.current, {
|
|
@@ -22924,11 +22925,11 @@ var StyledFAB = index$b(FAB$1)(function (_ref) {
|
|
|
22924
22925
|
};
|
|
22925
22926
|
});
|
|
22926
22927
|
|
|
22927
|
-
var _excluded$
|
|
22928
|
+
var _excluded$o = ["fabConfig", "onCancel"];
|
|
22928
22929
|
var Pair = function Pair(_ref) {
|
|
22929
22930
|
var fabConfig = _ref.fabConfig,
|
|
22930
22931
|
onCancel = _ref.onCancel,
|
|
22931
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22932
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
22932
22933
|
var icon = fabConfig.icon,
|
|
22933
22934
|
title = fabConfig.title,
|
|
22934
22935
|
onPress = fabConfig.onPress,
|
|
@@ -23658,11 +23659,11 @@ var StyledFocusIcon = index$b(Icon)(function (_ref7) {
|
|
|
23658
23659
|
};
|
|
23659
23660
|
});
|
|
23660
23661
|
|
|
23661
|
-
var _excluded$
|
|
23662
|
+
var _excluded$n = ["style", "testID"];
|
|
23662
23663
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
23663
23664
|
var style = _ref.style,
|
|
23664
23665
|
testID = _ref.testID,
|
|
23665
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
23666
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
23666
23667
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
23667
23668
|
style: style,
|
|
23668
23669
|
testID: testID
|
|
@@ -23672,7 +23673,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
23672
23673
|
}));
|
|
23673
23674
|
};
|
|
23674
23675
|
|
|
23675
|
-
var _excluded$
|
|
23676
|
+
var _excluded$m = ["style", "testID", "state", "image", "icon"];
|
|
23676
23677
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
23677
23678
|
var iconMap = {
|
|
23678
23679
|
idle: undefined,
|
|
@@ -23688,7 +23689,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
23688
23689
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
23689
23690
|
image = _ref.image,
|
|
23690
23691
|
icon = _ref.icon,
|
|
23691
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
23692
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
23692
23693
|
var badgeIcon = getBadgeIconName(state);
|
|
23693
23694
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
23694
23695
|
style: style,
|
|
@@ -23717,7 +23718,7 @@ var StyledWrapper$6 = index$b(View)(function () {
|
|
|
23717
23718
|
alignContent: 'flex-start'
|
|
23718
23719
|
};
|
|
23719
23720
|
});
|
|
23720
|
-
var StyledPinWrapper = index$b(
|
|
23721
|
+
var StyledPinWrapper = index$b(Pressable)(function () {
|
|
23721
23722
|
return {
|
|
23722
23723
|
flexDirection: 'row'
|
|
23723
23724
|
};
|
|
@@ -23816,7 +23817,11 @@ function PinCell(_ref) {
|
|
|
23816
23817
|
state = _ref$state === void 0 ? 'default' : _ref$state;
|
|
23817
23818
|
return /*#__PURE__*/React__default.createElement(StyledCell, {
|
|
23818
23819
|
themeFocused: focused,
|
|
23819
|
-
themeState: state
|
|
23820
|
+
themeState: state,
|
|
23821
|
+
accessibilityState: {
|
|
23822
|
+
selected: focused
|
|
23823
|
+
},
|
|
23824
|
+
testID: "pin-cell"
|
|
23820
23825
|
}, value === '' && /*#__PURE__*/React__default.createElement(StyledMask, {
|
|
23821
23826
|
themeState: state,
|
|
23822
23827
|
testID: "pin-cell-mask"
|
|
@@ -23924,7 +23929,11 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
23924
23929
|
return /*#__PURE__*/React__default.createElement(StyledWrapper$6, {
|
|
23925
23930
|
style: style,
|
|
23926
23931
|
testID: testID
|
|
23927
|
-
}, /*#__PURE__*/React__default.createElement(StyledPinWrapper,
|
|
23932
|
+
}, /*#__PURE__*/React__default.createElement(StyledPinWrapper, {
|
|
23933
|
+
onPress: focus,
|
|
23934
|
+
disabled: disabled,
|
|
23935
|
+
testID: "pin-wrapper"
|
|
23936
|
+
}, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
23928
23937
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
23929
23938
|
key: index
|
|
23930
23939
|
}, index !== 0 && /*#__PURE__*/React__default.createElement(StyledSpacer, null), /*#__PURE__*/React__default.createElement(PinCell, {
|
|
@@ -23948,7 +23957,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
23948
23957
|
autoFocus: autoFocus,
|
|
23949
23958
|
onFocus: focus,
|
|
23950
23959
|
onBlur: blur,
|
|
23951
|
-
pointerEvents: "
|
|
23960
|
+
pointerEvents: "none",
|
|
23952
23961
|
keyboardType: "numeric",
|
|
23953
23962
|
testID: "pin-hidden-input",
|
|
23954
23963
|
textContentType: textContentType,
|
|
@@ -23996,7 +24005,7 @@ var THEME_INTENT_MAP = {
|
|
|
23996
24005
|
'archived-inverted': 'archivedInverted'
|
|
23997
24006
|
};
|
|
23998
24007
|
|
|
23999
|
-
var _excluded$
|
|
24008
|
+
var _excluded$l = ["value", "renderValue", "intent", "style", "testID"];
|
|
24000
24009
|
var defaultRenderValue = function defaultRenderValue(value) {
|
|
24001
24010
|
return "".concat(value, "%");
|
|
24002
24011
|
};
|
|
@@ -24009,7 +24018,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
|
|
|
24009
24018
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
24010
24019
|
style = _ref.style,
|
|
24011
24020
|
testID = _ref.testID,
|
|
24012
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24021
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
24013
24022
|
var theme = useTheme$1();
|
|
24014
24023
|
var size = theme.__hd__.progress.sizes.circleDiameter;
|
|
24015
24024
|
var strokeWidth = theme.__hd__.progress.sizes.circleCompletenessHeight;
|
|
@@ -24079,14 +24088,14 @@ var StyledInner = index$b(Animated.View)(function (_ref2) {
|
|
|
24079
24088
|
};
|
|
24080
24089
|
});
|
|
24081
24090
|
|
|
24082
|
-
var _excluded$
|
|
24091
|
+
var _excluded$k = ["value", "intent", "style", "testID"];
|
|
24083
24092
|
var ProgressBar = function ProgressBar(_ref) {
|
|
24084
24093
|
var value = _ref.value,
|
|
24085
24094
|
_ref$intent = _ref.intent,
|
|
24086
24095
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
24087
24096
|
style = _ref.style,
|
|
24088
24097
|
testID = _ref.testID,
|
|
24089
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24098
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
24090
24099
|
var _useState = useState(0),
|
|
24091
24100
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24092
24101
|
width = _useState2[0],
|
|
@@ -24176,7 +24185,7 @@ var StyledSingleStep = index$b(Box)(function (_ref3) {
|
|
|
24176
24185
|
};
|
|
24177
24186
|
});
|
|
24178
24187
|
|
|
24179
|
-
var _excluded$
|
|
24188
|
+
var _excluded$j = ["steps", "current", "onLayout"];
|
|
24180
24189
|
var getStepState = function getStepState(current, index) {
|
|
24181
24190
|
if (index < current) {
|
|
24182
24191
|
return 'complete';
|
|
@@ -24190,7 +24199,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
24190
24199
|
var steps = _ref.steps,
|
|
24191
24200
|
current = _ref.current,
|
|
24192
24201
|
onLayout = _ref.onLayout,
|
|
24193
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
24202
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
24194
24203
|
var theme = useTheme$1();
|
|
24195
24204
|
var _React$useState = React__default.useState(0),
|
|
24196
24205
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -24499,14 +24508,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
24499
24508
|
}, dotProps))));
|
|
24500
24509
|
};
|
|
24501
24510
|
|
|
24502
|
-
var _excluded$
|
|
24511
|
+
var _excluded$i = ["testID", "size", "intent"];
|
|
24503
24512
|
var Spinner = function Spinner(_ref) {
|
|
24504
24513
|
var testID = _ref.testID,
|
|
24505
24514
|
_ref$size = _ref.size,
|
|
24506
24515
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
24507
24516
|
_ref$intent = _ref.intent,
|
|
24508
24517
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
24509
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24518
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
24510
24519
|
return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
|
|
24511
24520
|
testID: testID
|
|
24512
24521
|
}, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
|
|
@@ -24539,7 +24548,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
24539
24548
|
}, children);
|
|
24540
24549
|
};
|
|
24541
24550
|
|
|
24542
|
-
var _excluded$
|
|
24551
|
+
var _excluded$h = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
24543
24552
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
24544
24553
|
var trans = progress.interpolate({
|
|
24545
24554
|
inputRange: [0, 1],
|
|
@@ -24568,7 +24577,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
24568
24577
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
24569
24578
|
_ref$variant = _ref.variant,
|
|
24570
24579
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
24571
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
24580
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
24572
24581
|
var theme = useTheme();
|
|
24573
24582
|
var _useWindowDimensions = useWindowDimensions(),
|
|
24574
24583
|
width = _useWindowDimensions.width;
|
|
@@ -24895,7 +24904,7 @@ var StyledSectionList = index$b(SectionList)(function (_ref4) {
|
|
|
24895
24904
|
};
|
|
24896
24905
|
});
|
|
24897
24906
|
|
|
24898
|
-
var _excluded$
|
|
24907
|
+
var _excluded$g = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
24899
24908
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
24900
24909
|
var keyExtractor = _ref.keyExtractor,
|
|
24901
24910
|
loading = _ref.loading,
|
|
@@ -24904,7 +24913,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
24904
24913
|
sections = _ref.sections,
|
|
24905
24914
|
renderItem = _ref.renderItem,
|
|
24906
24915
|
sectionListRef = _ref.sectionListRef,
|
|
24907
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
24916
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
24908
24917
|
var theme = useTheme$1();
|
|
24909
24918
|
var _useState = useState(false),
|
|
24910
24919
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24986,7 +24995,7 @@ var isOptionSelected = function isOptionSelected(value, option) {
|
|
|
24986
24995
|
});
|
|
24987
24996
|
};
|
|
24988
24997
|
|
|
24989
|
-
var _excluded$
|
|
24998
|
+
var _excluded$f = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
24990
24999
|
var OptionList$1 = function OptionList(_ref) {
|
|
24991
25000
|
var keyExtractor = _ref.keyExtractor,
|
|
24992
25001
|
loading = _ref.loading,
|
|
@@ -24997,7 +25006,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
24997
25006
|
renderOption = _ref.renderOption,
|
|
24998
25007
|
value = _ref.value,
|
|
24999
25008
|
sectionListRef = _ref.sectionListRef,
|
|
25000
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25009
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
25001
25010
|
var renderItem = function renderItem(info) {
|
|
25002
25011
|
var item = info.item;
|
|
25003
25012
|
var selected = isOptionSelected(value, item);
|
|
@@ -25032,6 +25041,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
25032
25041
|
}, rest));
|
|
25033
25042
|
};
|
|
25034
25043
|
|
|
25044
|
+
var _excluded$e = ["footerLabel", "label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig"];
|
|
25035
25045
|
function MultiSelect(_ref) {
|
|
25036
25046
|
var footerLabel = _ref.footerLabel,
|
|
25037
25047
|
label = _ref.label,
|
|
@@ -25058,7 +25068,8 @@ function MultiSelect(_ref) {
|
|
|
25058
25068
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
25059
25069
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
25060
25070
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
25061
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
25071
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
25072
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
25062
25073
|
var _useKeyboard = useKeyboard(),
|
|
25063
25074
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
25064
25075
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -25081,6 +25092,7 @@ function MultiSelect(_ref) {
|
|
|
25081
25092
|
var rawValue = value.length > 0 ? value.join(', ') : '';
|
|
25082
25093
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
25083
25094
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
25095
|
+
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
25084
25096
|
useEffect(function () {
|
|
25085
25097
|
setSelectingValue(value);
|
|
25086
25098
|
}, [open, value]);
|
|
@@ -25092,7 +25104,7 @@ function MultiSelect(_ref) {
|
|
|
25092
25104
|
}
|
|
25093
25105
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
25094
25106
|
pointerEvents: "none"
|
|
25095
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
25107
|
+
}, /*#__PURE__*/React__default.createElement(TextInputComponent, _extends$1({}, inputProps, {
|
|
25096
25108
|
label: label,
|
|
25097
25109
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
25098
25110
|
suffix: "arrow-down",
|
|
@@ -25142,7 +25154,7 @@ function MultiSelect(_ref) {
|
|
|
25142
25154
|
}
|
|
25143
25155
|
},
|
|
25144
25156
|
supportedOrientations: supportedOrientations
|
|
25145
|
-
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(
|
|
25157
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInputComponent, {
|
|
25146
25158
|
editable: true,
|
|
25147
25159
|
placeholder: "Search",
|
|
25148
25160
|
suffix: "search-outlined",
|
|
@@ -25193,7 +25205,7 @@ var StyledOptionList = index$b(BaseOptionList)(function (_ref) {
|
|
|
25193
25205
|
};
|
|
25194
25206
|
});
|
|
25195
25207
|
|
|
25196
|
-
var _excluded$
|
|
25208
|
+
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
25197
25209
|
var OptionList = function OptionList(_ref) {
|
|
25198
25210
|
var keyExtractor = _ref.keyExtractor,
|
|
25199
25211
|
loading = _ref.loading,
|
|
@@ -25204,7 +25216,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
25204
25216
|
renderOption = _ref.renderOption,
|
|
25205
25217
|
value = _ref.value,
|
|
25206
25218
|
sectionListRef = _ref.sectionListRef,
|
|
25207
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25219
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
25208
25220
|
var renderItem = function renderItem(info) {
|
|
25209
25221
|
var item = info.item;
|
|
25210
25222
|
var selected = _deepCompareValue(item.value, value);
|
|
@@ -25240,6 +25252,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
25240
25252
|
}, rest));
|
|
25241
25253
|
};
|
|
25242
25254
|
|
|
25255
|
+
var _excluded$c = ["label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig"];
|
|
25243
25256
|
var SingleSelect = function SingleSelect(_ref) {
|
|
25244
25257
|
var _flatOptions$find;
|
|
25245
25258
|
var label = _ref.label,
|
|
@@ -25266,7 +25279,8 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25266
25279
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
25267
25280
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
25268
25281
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
25269
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
25282
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
25283
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
25270
25284
|
var _useKeyboard = useKeyboard(),
|
|
25271
25285
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
25272
25286
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -25283,6 +25297,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25283
25297
|
var rawValue = value ? String(value) : undefined;
|
|
25284
25298
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
25285
25299
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
25300
|
+
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
25286
25301
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(View, {
|
|
25287
25302
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
25288
25303
|
}, /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
@@ -25291,7 +25306,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25291
25306
|
}
|
|
25292
25307
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
25293
25308
|
pointerEvents: "none"
|
|
25294
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
25309
|
+
}, /*#__PURE__*/React__default.createElement(TextInputComponent, _extends$1({}, inputProps, {
|
|
25295
25310
|
label: label,
|
|
25296
25311
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
25297
25312
|
suffix: "arrow-down",
|
|
@@ -25325,7 +25340,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25325
25340
|
}
|
|
25326
25341
|
},
|
|
25327
25342
|
supportedOrientations: supportedOrientations
|
|
25328
|
-
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(
|
|
25343
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInputComponent, {
|
|
25329
25344
|
editable: true,
|
|
25330
25345
|
placeholder: "Search",
|
|
25331
25346
|
suffix: "search-outlined",
|
|
@@ -26691,7 +26706,8 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
26691
26706
|
var StyledPickerWrapper = index$b(View)(function (_ref) {
|
|
26692
26707
|
var theme = _ref.theme;
|
|
26693
26708
|
return {
|
|
26694
|
-
height: theme.__hd__.timePicker.sizes.height
|
|
26709
|
+
height: theme.__hd__.timePicker.sizes.height,
|
|
26710
|
+
alignItems: 'center'
|
|
26695
26711
|
};
|
|
26696
26712
|
});
|
|
26697
26713
|
|