@hero-design/rn 8.103.2 → 8.103.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +15 -0
- package/es/index.js +144 -106
- package/eslint.config.js +1 -0
- package/lib/index.js +144 -106
- package/package.json +3 -3
- package/src/components/DatePicker/DatePicker.tsx +38 -0
- package/src/components/DatePicker/DatePickerAndroid.tsx +6 -3
- package/src/components/DatePicker/DatePickerCalendar.tsx +6 -3
- package/src/components/DatePicker/DatePickerIOS.tsx +6 -3
- package/src/components/DatePicker/Dialog/IOSDialog.tsx +6 -1
- package/src/components/DatePicker/Dialog.tsx +15 -0
- package/src/components/DatePicker/StyledDatePicker.tsx +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -0
- package/src/components/DatePicker/index.internal.tsx +10 -0
- package/src/components/DatePicker/index.tsx +6 -29
- package/src/components/DatePicker/types.ts +6 -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/TimePicker.tsx +15 -0
- package/src/components/TimePicker/TimePickerAndroid.tsx +6 -3
- package/src/components/TimePicker/TimePickerIOS.tsx +6 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -0
- package/src/components/TimePicker/index.internal.tsx +9 -0
- package/src/components/TimePicker/index.tsx +4 -13
- package/src/components/TimePicker/types.ts +6 -0
- package/src/index.internal.ts +7 -0
- package/src/types.internal.ts +16 -0
- package/src/types.ts +4 -0
- package/stats/8.103.2/rn-stats.html +3 -1
- package/stats/8.103.3/rn-stats.html +4842 -0
- package/stats/8.103.4/rn-stats.html +4844 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +1 -1
- package/types/components/Checkbox/index.d.ts +1 -1
- package/types/components/DatePicker/DatePicker.d.ts +4 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +3 -3
- package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -2
- package/types/components/DatePicker/DatePickerIOS.d.ts +3 -3
- package/types/components/DatePicker/Dialog.d.ts +4 -0
- package/types/components/DatePicker/index.d.ts +4 -5
- package/types/components/DatePicker/index.internal.d.ts +7 -0
- package/types/components/DatePicker/types.d.ts +4 -0
- 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/components/TimePicker/TimePicker.d.ts +4 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -2
- package/types/components/TimePicker/TimePickerIOS.d.ts +2 -2
- package/types/components/TimePicker/index.d.ts +3 -3
- package/types/components/TimePicker/index.internal.d.ts +5 -0
- package/types/components/TimePicker/types.d.ts +4 -0
- package/types/index.internal.d.ts +6 -0
- package/types/types.d.ts +3 -1
- package/types/types.internal.d.ts +5 -0
package/lib/index.js
CHANGED
|
@@ -7661,7 +7661,7 @@ var StyledText$3 = index$b(reactNative.Text)(function (_ref) {
|
|
|
7661
7661
|
});
|
|
7662
7662
|
});
|
|
7663
7663
|
|
|
7664
|
-
var _excluded$
|
|
7664
|
+
var _excluded$O = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
7665
7665
|
var Text = function Text(_ref) {
|
|
7666
7666
|
var children = _ref.children,
|
|
7667
7667
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -7674,7 +7674,7 @@ var Text = function Text(_ref) {
|
|
|
7674
7674
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7675
7675
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7676
7676
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7677
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7677
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
7678
7678
|
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.');
|
|
7679
7679
|
return /*#__PURE__*/React__namespace.default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
7680
7680
|
themeFontSize: fontSize,
|
|
@@ -7704,7 +7704,7 @@ var StyledCaption = index$b(reactNative.Text)(function (_ref) {
|
|
|
7704
7704
|
};
|
|
7705
7705
|
});
|
|
7706
7706
|
|
|
7707
|
-
var _excluded$
|
|
7707
|
+
var _excluded$N = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
7708
7708
|
var Caption = function Caption(_ref) {
|
|
7709
7709
|
var children = _ref.children,
|
|
7710
7710
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -7713,7 +7713,7 @@ var Caption = function Caption(_ref) {
|
|
|
7713
7713
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7714
7714
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7715
7715
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7716
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7716
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
7717
7717
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
7718
7718
|
themeFontWeight: fontWeight,
|
|
7719
7719
|
themeIntent: intent,
|
|
@@ -7732,14 +7732,14 @@ var StyledLabel$1 = index$b(reactNative.Text)(function (_ref) {
|
|
|
7732
7732
|
};
|
|
7733
7733
|
});
|
|
7734
7734
|
|
|
7735
|
-
var _excluded$
|
|
7735
|
+
var _excluded$M = ["children", "intent", "allowFontScaling"];
|
|
7736
7736
|
var Label = function Label(_ref) {
|
|
7737
7737
|
var children = _ref.children,
|
|
7738
7738
|
_ref$intent = _ref.intent,
|
|
7739
7739
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7740
7740
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7741
7741
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7742
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7742
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
7743
7743
|
return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
7744
7744
|
themeIntent: intent,
|
|
7745
7745
|
allowFontScaling: allowFontScaling
|
|
@@ -7760,7 +7760,7 @@ var StyledTitle$1 = index$b(reactNative.Text)(function (_ref) {
|
|
|
7760
7760
|
};
|
|
7761
7761
|
});
|
|
7762
7762
|
|
|
7763
|
-
var _excluded$
|
|
7763
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
7764
7764
|
var Title = function Title(_ref) {
|
|
7765
7765
|
var children = _ref.children,
|
|
7766
7766
|
_ref$intent = _ref.intent,
|
|
@@ -7771,7 +7771,7 @@ var Title = function Title(_ref) {
|
|
|
7771
7771
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
7772
7772
|
_ref$typeface = _ref.typeface,
|
|
7773
7773
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7774
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7774
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
7775
7775
|
return /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
7776
7776
|
themeLevel: level,
|
|
7777
7777
|
themeTypeface: typeface,
|
|
@@ -7806,7 +7806,7 @@ var StyledBody$2 = index$b(reactNative.Text)(function (_ref) {
|
|
|
7806
7806
|
};
|
|
7807
7807
|
});
|
|
7808
7808
|
|
|
7809
|
-
var _excluded$
|
|
7809
|
+
var _excluded$K = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
7810
7810
|
var Body = function Body(_ref) {
|
|
7811
7811
|
var children = _ref.children,
|
|
7812
7812
|
_ref$intent = _ref.intent,
|
|
@@ -7817,7 +7817,7 @@ var Body = function Body(_ref) {
|
|
|
7817
7817
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7818
7818
|
_ref$variant = _ref.variant,
|
|
7819
7819
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
7820
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7820
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
7821
7821
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
7822
7822
|
themeTypeface: typeface,
|
|
7823
7823
|
themeIntent: intent,
|
|
@@ -8418,10 +8418,10 @@ var StyledHeroIcon = index$b(HeroIcon)(function (_ref) {
|
|
|
8418
8418
|
};
|
|
8419
8419
|
});
|
|
8420
8420
|
|
|
8421
|
-
var _excluded$
|
|
8421
|
+
var _excluded$J = ["style"];
|
|
8422
8422
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
8423
8423
|
var style = _ref.style,
|
|
8424
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8424
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
8425
8425
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
8426
8426
|
React.useEffect(function () {
|
|
8427
8427
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -8526,7 +8526,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
8526
8526
|
}, content));
|
|
8527
8527
|
};
|
|
8528
8528
|
|
|
8529
|
-
var _excluded$
|
|
8529
|
+
var _excluded$I = ["key"];
|
|
8530
8530
|
var Accordion = function Accordion(_ref) {
|
|
8531
8531
|
var items = _ref.items,
|
|
8532
8532
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -8547,7 +8547,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
8547
8547
|
testID: testID
|
|
8548
8548
|
}, items.map(function (_ref2, index) {
|
|
8549
8549
|
var key = _ref2.key,
|
|
8550
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
8550
|
+
props = _objectWithoutProperties(_ref2, _excluded$I);
|
|
8551
8551
|
var open = _activeItemKey === key;
|
|
8552
8552
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
8553
8553
|
key: key
|
|
@@ -9470,7 +9470,7 @@ var borderWidths = {
|
|
|
9470
9470
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
9471
9471
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
9472
9472
|
|
|
9473
|
-
var _excluded$
|
|
9473
|
+
var _excluded$H = ["theme"];
|
|
9474
9474
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
9475
9475
|
var propConfig = config[key];
|
|
9476
9476
|
var propValue = props[key];
|
|
@@ -9497,18 +9497,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
9497
9497
|
var configKeys = Object.keys(config);
|
|
9498
9498
|
var StyledBox = index$b(reactNative.View)(function (_ref5) {
|
|
9499
9499
|
var theme = _ref5.theme,
|
|
9500
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
9500
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$H);
|
|
9501
9501
|
var styleProps = pick(configKeys, otherProps);
|
|
9502
9502
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
9503
9503
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
9504
9504
|
});
|
|
9505
9505
|
|
|
9506
|
-
var _excluded$
|
|
9506
|
+
var _excluded$G = ["children", "style", "testID"];
|
|
9507
9507
|
var Box = function Box(_ref) {
|
|
9508
9508
|
var children = _ref.children,
|
|
9509
9509
|
style = _ref.style,
|
|
9510
9510
|
testID = _ref.testID,
|
|
9511
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
9511
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$G);
|
|
9512
9512
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
9513
9513
|
style: style,
|
|
9514
9514
|
testID: testID
|
|
@@ -9775,7 +9775,7 @@ var StyledIcon$4 = index$b(Icon)(function (_ref6) {
|
|
|
9775
9775
|
};
|
|
9776
9776
|
});
|
|
9777
9777
|
|
|
9778
|
-
var _excluded$
|
|
9778
|
+
var _excluded$F = ["children", "visible", "intent", "style", "testID"];
|
|
9779
9779
|
var Status$1 = function Status(_ref) {
|
|
9780
9780
|
var children = _ref.children,
|
|
9781
9781
|
_ref$visible = _ref.visible,
|
|
@@ -9784,7 +9784,7 @@ var Status$1 = function Status(_ref) {
|
|
|
9784
9784
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
9785
9785
|
style = _ref.style,
|
|
9786
9786
|
testID = _ref.testID,
|
|
9787
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9787
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$F);
|
|
9788
9788
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
9789
9789
|
opacity = _React$useRef.current;
|
|
9790
9790
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -9820,7 +9820,7 @@ var Status$1 = function Status(_ref) {
|
|
|
9820
9820
|
|
|
9821
9821
|
var DEFAULT_MAX_NUMBER = 99;
|
|
9822
9822
|
|
|
9823
|
-
var _excluded$
|
|
9823
|
+
var _excluded$E = ["children", "visible", "style", "max", "testID", "content"];
|
|
9824
9824
|
var Status = function Status(_ref) {
|
|
9825
9825
|
var children = _ref.children,
|
|
9826
9826
|
_ref$visible = _ref.visible,
|
|
@@ -9830,7 +9830,7 @@ var Status = function Status(_ref) {
|
|
|
9830
9830
|
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
9831
9831
|
testID = _ref.testID,
|
|
9832
9832
|
originalContent = _ref.content,
|
|
9833
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9833
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
9834
9834
|
var content = React.useMemo(function () {
|
|
9835
9835
|
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
9836
9836
|
}, [originalContent, max]);
|
|
@@ -9842,7 +9842,7 @@ var Status = function Status(_ref) {
|
|
|
9842
9842
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCountText, null, content)));
|
|
9843
9843
|
};
|
|
9844
9844
|
|
|
9845
|
-
var _excluded$
|
|
9845
|
+
var _excluded$D = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
9846
9846
|
var getPaddingState = function getPaddingState(content) {
|
|
9847
9847
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
9848
9848
|
};
|
|
@@ -9861,7 +9861,7 @@ var Badge = function Badge(_ref) {
|
|
|
9861
9861
|
_ref$variant = _ref.variant,
|
|
9862
9862
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
9863
9863
|
icon = _ref.icon,
|
|
9864
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9864
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
9865
9865
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
9866
9866
|
opacity = _React$useRef.current;
|
|
9867
9867
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -9960,7 +9960,7 @@ var StyledBottomBarText = index$b(Typography.Caption)(function (_ref3) {
|
|
|
9960
9960
|
};
|
|
9961
9961
|
});
|
|
9962
9962
|
|
|
9963
|
-
var _excluded$
|
|
9963
|
+
var _excluded$C = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
9964
9964
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
9965
9965
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
9966
9966
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -9971,7 +9971,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
9971
9971
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
9972
9972
|
selectedTabKey = _ref.selectedTabKey,
|
|
9973
9973
|
tabs = _ref.tabs,
|
|
9974
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9974
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
9975
9975
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
9976
9976
|
/**
|
|
9977
9977
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -10057,13 +10057,13 @@ var StyledDivider = index$b(reactNative.View)(function (_ref) {
|
|
|
10057
10057
|
}, horizontalMargin), verticalMargin);
|
|
10058
10058
|
});
|
|
10059
10059
|
|
|
10060
|
-
var _excluded$
|
|
10060
|
+
var _excluded$B = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10061
10061
|
var Divider = function Divider(_ref) {
|
|
10062
10062
|
var marginHorizontal = _ref.marginHorizontal,
|
|
10063
10063
|
marginVertical = _ref.marginVertical,
|
|
10064
10064
|
style = _ref.style,
|
|
10065
10065
|
testID = _ref.testID,
|
|
10066
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10066
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
10067
10067
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10068
10068
|
themeMarginHorizontal: marginHorizontal,
|
|
10069
10069
|
themeMarginVertical: marginVertical,
|
|
@@ -10212,7 +10212,7 @@ var StyledLoadingDot = index$b(reactNative.View)(function (_ref) {
|
|
|
10212
10212
|
}, themeStyling());
|
|
10213
10213
|
});
|
|
10214
10214
|
|
|
10215
|
-
var _excluded$
|
|
10215
|
+
var _excluded$A = ["count", "size", "testID", "themeVariant"];
|
|
10216
10216
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
10217
10217
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
10218
10218
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -10244,7 +10244,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
10244
10244
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
10245
10245
|
testID = _ref2.testID,
|
|
10246
10246
|
themeVariant = _ref2.themeVariant,
|
|
10247
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
10247
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$A);
|
|
10248
10248
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
10249
10249
|
React.useEffect(function () {
|
|
10250
10250
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -10871,11 +10871,11 @@ var Header = function Header(_ref) {
|
|
|
10871
10871
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
10872
10872
|
};
|
|
10873
10873
|
|
|
10874
|
-
var _excluded$
|
|
10874
|
+
var _excluded$z = ["scrollEventThrottle"];
|
|
10875
10875
|
var BottomSheetScrollView = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10876
10876
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
10877
10877
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
10878
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10878
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
10879
10879
|
var _useContext = React.useContext(BottomSheetContext),
|
|
10880
10880
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
10881
10881
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -13953,12 +13953,12 @@ var Indicator = index$b(reactNative.View)(function (_ref2) {
|
|
|
13953
13953
|
};
|
|
13954
13954
|
});
|
|
13955
13955
|
|
|
13956
|
-
var _excluded$
|
|
13956
|
+
var _excluded$y = ["intent", "children"];
|
|
13957
13957
|
var DataCard = function DataCard(_ref) {
|
|
13958
13958
|
var _ref$intent = _ref.intent,
|
|
13959
13959
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
13960
13960
|
children = _ref.children,
|
|
13961
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
13961
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
13962
13962
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
13963
13963
|
themeIntent: intent,
|
|
13964
13964
|
testID: "data-card-indicator"
|
|
@@ -13977,13 +13977,13 @@ var StyledCard$1 = index$b(reactNative.View)(function (_ref) {
|
|
|
13977
13977
|
});
|
|
13978
13978
|
});
|
|
13979
13979
|
|
|
13980
|
-
var _excluded$
|
|
13980
|
+
var _excluded$x = ["intent", "children", "variant"];
|
|
13981
13981
|
var Card = function Card(_ref) {
|
|
13982
13982
|
var intent = _ref.intent,
|
|
13983
13983
|
children = _ref.children,
|
|
13984
13984
|
_ref$variant = _ref.variant,
|
|
13985
13985
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
13986
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
13986
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
13987
13987
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
13988
13988
|
themeIntent: intent,
|
|
13989
13989
|
themeVariant: variant
|
|
@@ -14249,7 +14249,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14249
14249
|
});
|
|
14250
14250
|
CardCarousel.displayName = 'CardCarousel';
|
|
14251
14251
|
|
|
14252
|
-
var _excluded$
|
|
14252
|
+
var _excluded$w = ["rounded", "size", "testID", "style"];
|
|
14253
14253
|
var Image = function Image(_ref) {
|
|
14254
14254
|
var _ref$rounded = _ref.rounded,
|
|
14255
14255
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -14257,7 +14257,7 @@ var Image = function Image(_ref) {
|
|
|
14257
14257
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
14258
14258
|
testID = _ref.testID,
|
|
14259
14259
|
style = _ref.style,
|
|
14260
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14260
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
14261
14261
|
useDeprecation('Image component will soon be deprecated. Please use `Image` from `react-native` instead.');
|
|
14262
14262
|
var theme = useTheme();
|
|
14263
14263
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
@@ -14392,7 +14392,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
14392
14392
|
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
14393
14393
|
};
|
|
14394
14394
|
|
|
14395
|
-
var _excluded$
|
|
14395
|
+
var _excluded$v = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
14396
14396
|
function useStateFromProp(initialValue) {
|
|
14397
14397
|
var _useState = React.useState(initialValue),
|
|
14398
14398
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -14419,7 +14419,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
14419
14419
|
testID = _ref.testID,
|
|
14420
14420
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
14421
14421
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
14422
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14422
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
14423
14423
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$1);
|
|
14424
14424
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
14425
14425
|
var theme = useTheme();
|
|
@@ -19690,7 +19690,7 @@ var StyledChipIcon = index$b(Icon)(function (_ref2) {
|
|
|
19690
19690
|
};
|
|
19691
19691
|
});
|
|
19692
19692
|
|
|
19693
|
-
var _excluded$
|
|
19693
|
+
var _excluded$u = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
|
|
19694
19694
|
var getChipLabel = function getChipLabel(label) {
|
|
19695
19695
|
if (typeof label === 'string') {
|
|
19696
19696
|
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
@@ -19723,7 +19723,7 @@ var Chip = function Chip(_ref) {
|
|
|
19723
19723
|
onPress = _ref.onPress,
|
|
19724
19724
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
19725
19725
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
19726
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
19726
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
19727
19727
|
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
19728
19728
|
var renamedVariant = getChipVariant(variant);
|
|
19729
19729
|
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
@@ -19973,7 +19973,7 @@ var StyledErrorAndMaxLengthContainer = index$b(reactNative.View)(function () {
|
|
|
19973
19973
|
};
|
|
19974
19974
|
});
|
|
19975
19975
|
|
|
19976
|
-
var _excluded$
|
|
19976
|
+
var _excluded$t = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
19977
19977
|
var getState$3 = function getState(_ref) {
|
|
19978
19978
|
var disabled = _ref.disabled,
|
|
19979
19979
|
error = _ref.error,
|
|
@@ -20087,7 +20087,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
20087
20087
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
20088
20088
|
_ref8$variant = _ref8.variant,
|
|
20089
20089
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
20090
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
20090
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$t);
|
|
20091
20091
|
var displayText = getDisplayText(value, defaultValue);
|
|
20092
20092
|
var isEmptyValue = displayText.length === 0;
|
|
20093
20093
|
var _React$useState = React__namespace.default.useState({
|
|
@@ -20458,7 +20458,8 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
20458
20458
|
_ref$variant = _ref.variant,
|
|
20459
20459
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
20460
20460
|
renderSelectedValue = _ref.renderSelectedValue,
|
|
20461
|
-
locale = _ref.locale
|
|
20461
|
+
locale = _ref.locale,
|
|
20462
|
+
TextInputComponent = _ref.TextInputComponent;
|
|
20462
20463
|
var _useState = React.useState(false),
|
|
20463
20464
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20464
20465
|
open = _useState2[0],
|
|
@@ -20476,6 +20477,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
20476
20477
|
onChange: onChange,
|
|
20477
20478
|
value: value
|
|
20478
20479
|
});
|
|
20480
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
20479
20481
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
20480
20482
|
onPress: function onPress() {
|
|
20481
20483
|
return setOpen(true);
|
|
@@ -20484,7 +20486,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
20484
20486
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
20485
20487
|
pointerEvents: "none",
|
|
20486
20488
|
testID: "datePickerInputAndroid"
|
|
20487
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
20489
|
+
}, /*#__PURE__*/React__namespace.default.createElement(InputComponent, {
|
|
20488
20490
|
label: label,
|
|
20489
20491
|
value: displayValue,
|
|
20490
20492
|
suffix: "calendar-dates-outlined",
|
|
@@ -20579,7 +20581,8 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
20579
20581
|
_ref2$supportedOrient = _ref2.supportedOrientations,
|
|
20580
20582
|
supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient,
|
|
20581
20583
|
renderSelectedValue = _ref2.renderSelectedValue,
|
|
20582
|
-
locale = _ref2.locale
|
|
20584
|
+
locale = _ref2.locale,
|
|
20585
|
+
TextInputComponent = _ref2.TextInputComponent;
|
|
20583
20586
|
var _useState5 = React.useState(false),
|
|
20584
20587
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
20585
20588
|
open = _useState6[0],
|
|
@@ -20605,6 +20608,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
20605
20608
|
onChange: onChange,
|
|
20606
20609
|
value: value
|
|
20607
20610
|
});
|
|
20611
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
20608
20612
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
20609
20613
|
onPress: function onPress() {
|
|
20610
20614
|
return setOpen(true);
|
|
@@ -20613,7 +20617,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
20613
20617
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
20614
20618
|
pointerEvents: "none",
|
|
20615
20619
|
testID: "datePickerCalendar"
|
|
20616
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
20620
|
+
}, /*#__PURE__*/React__namespace.default.createElement(InputComponent, {
|
|
20617
20621
|
label: label,
|
|
20618
20622
|
value: displayValue,
|
|
20619
20623
|
suffix: "calendar-dates-outlined",
|
|
@@ -20663,7 +20667,8 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
20663
20667
|
var StyledPickerWrapper$1 = index$b(reactNative.View)(function (_ref) {
|
|
20664
20668
|
var theme = _ref.theme;
|
|
20665
20669
|
return {
|
|
20666
|
-
height: theme.__hd__.datePicker.sizes.height
|
|
20670
|
+
height: theme.__hd__.datePicker.sizes.height,
|
|
20671
|
+
alignItems: 'center'
|
|
20667
20672
|
};
|
|
20668
20673
|
});
|
|
20669
20674
|
|
|
@@ -20709,13 +20714,14 @@ var IOSDatePickerDialog = function IOSDatePickerDialog(_ref) {
|
|
|
20709
20714
|
minimumDate: minDate,
|
|
20710
20715
|
textColor: theme.colors.onDefaultGlobalSurface,
|
|
20711
20716
|
maximumDate: maxDate,
|
|
20717
|
+
style: {
|
|
20718
|
+
height: '100%',
|
|
20719
|
+
width: '100%'
|
|
20720
|
+
},
|
|
20712
20721
|
onChange: function onChange(date) {
|
|
20713
20722
|
if (date) {
|
|
20714
20723
|
setSelectingDate(date);
|
|
20715
20724
|
}
|
|
20716
|
-
},
|
|
20717
|
-
style: {
|
|
20718
|
-
flex: 1
|
|
20719
20725
|
}
|
|
20720
20726
|
}) : null, variant === 'default' ? /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
20721
20727
|
locale: locale,
|
|
@@ -20758,7 +20764,8 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
20758
20764
|
_ref$variant = _ref.variant,
|
|
20759
20765
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
20760
20766
|
locale = _ref.locale,
|
|
20761
|
-
renderSelectedValue = _ref.renderSelectedValue
|
|
20767
|
+
renderSelectedValue = _ref.renderSelectedValue,
|
|
20768
|
+
TextInputComponent = _ref.TextInputComponent;
|
|
20762
20769
|
var _useState = React.useState(false),
|
|
20763
20770
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20764
20771
|
open = _useState2[0],
|
|
@@ -20778,6 +20785,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
20778
20785
|
onChange: onChange,
|
|
20779
20786
|
value: value
|
|
20780
20787
|
});
|
|
20788
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
20781
20789
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
20782
20790
|
onPress: function onPress() {
|
|
20783
20791
|
return setOpen(true);
|
|
@@ -20786,7 +20794,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
20786
20794
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
20787
20795
|
pointerEvents: "none",
|
|
20788
20796
|
testID: "datePickerInputIOS"
|
|
20789
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
20797
|
+
}, /*#__PURE__*/React__namespace.default.createElement(InputComponent, {
|
|
20790
20798
|
label: label,
|
|
20791
20799
|
value: displayValue,
|
|
20792
20800
|
suffix: "calendar-dates-outlined",
|
|
@@ -20820,31 +20828,40 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
20820
20828
|
}));
|
|
20821
20829
|
};
|
|
20822
20830
|
|
|
20823
|
-
var _excluded$
|
|
20831
|
+
var _excluded$s = ["variant", "TextInputComponent"];
|
|
20824
20832
|
var DatePicker = function DatePicker(_ref) {
|
|
20825
20833
|
var _ref$variant = _ref.variant,
|
|
20826
20834
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
20827
|
-
|
|
20835
|
+
_ref$TextInputCompone = _ref.TextInputComponent,
|
|
20836
|
+
TextInputComponent = _ref$TextInputCompone === void 0 ? TextInput : _ref$TextInputCompone,
|
|
20837
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
20828
20838
|
if (variant === 'calendar') {
|
|
20829
|
-
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props
|
|
20839
|
+
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, _extends$1({}, props, {
|
|
20840
|
+
TextInputComponent: TextInputComponent
|
|
20841
|
+
}));
|
|
20830
20842
|
}
|
|
20831
20843
|
if (reactNative.Platform.OS === 'ios') {
|
|
20832
20844
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerIOS, _extends$1({}, props, {
|
|
20833
|
-
variant: variant
|
|
20845
|
+
variant: variant,
|
|
20846
|
+
TextInputComponent: TextInputComponent
|
|
20834
20847
|
}));
|
|
20835
20848
|
}
|
|
20836
20849
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerAndroid, _extends$1({}, props, {
|
|
20837
|
-
variant: variant
|
|
20850
|
+
variant: variant,
|
|
20851
|
+
TextInputComponent: TextInputComponent
|
|
20838
20852
|
}));
|
|
20839
20853
|
};
|
|
20840
|
-
|
|
20841
|
-
|
|
20854
|
+
|
|
20855
|
+
var Dialog = function Dialog(_ref) {
|
|
20856
|
+
var props = _extends$1({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
20842
20857
|
if (reactNative.Platform.OS === 'ios') {
|
|
20843
20858
|
return /*#__PURE__*/React__namespace.default.createElement(IOSDatePickerDialog, props);
|
|
20844
20859
|
}
|
|
20845
20860
|
return /*#__PURE__*/React__namespace.default.createElement(AndroidDatePickerDialog, props);
|
|
20846
20861
|
};
|
|
20847
|
-
|
|
20862
|
+
|
|
20863
|
+
var PublicDatePicker = DatePicker;
|
|
20864
|
+
var index$8 = Object.assign(PublicDatePicker, {
|
|
20848
20865
|
Dialog: Dialog
|
|
20849
20866
|
});
|
|
20850
20867
|
|
|
@@ -22108,7 +22125,7 @@ var Portal$1 = Object.assign(Portal, {
|
|
|
22108
22125
|
Host: PortalHost
|
|
22109
22126
|
});
|
|
22110
22127
|
|
|
22111
|
-
var _excluded$
|
|
22128
|
+
var _excluded$r = ["visible"];
|
|
22112
22129
|
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
22113
22130
|
var DEFAULT_ANIMATION_CONFIG = {
|
|
22114
22131
|
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
@@ -22204,7 +22221,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
22204
22221
|
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
22205
22222
|
var _ref3$visible = _ref3.visible,
|
|
22206
22223
|
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
22207
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
22224
|
+
props = _objectWithoutProperties(_ref3, _excluded$r);
|
|
22208
22225
|
var modalRef = React.useRef(null);
|
|
22209
22226
|
var _useState = React.useState(visible),
|
|
22210
22227
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22315,7 +22332,7 @@ var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
|
|
|
22315
22332
|
};
|
|
22316
22333
|
});
|
|
22317
22334
|
|
|
22318
|
-
var _excluded$
|
|
22335
|
+
var _excluded$q = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
|
|
22319
22336
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
22320
22337
|
var renderImage$1 = function renderImage(image) {
|
|
22321
22338
|
if (/*#__PURE__*/React.isValidElement(image)) {
|
|
@@ -22356,7 +22373,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
22356
22373
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
22357
22374
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
22358
22375
|
icon = _ref2.icon,
|
|
22359
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
22376
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$q);
|
|
22360
22377
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
22361
22378
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
22362
22379
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -22582,13 +22599,13 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
22582
22599
|
})), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
|
|
22583
22600
|
};
|
|
22584
22601
|
|
|
22585
|
-
var _excluded$
|
|
22602
|
+
var _excluded$p = ["active"];
|
|
22586
22603
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(/*#__PURE__*/React__namespace.default.forwardRef(function (props, _) {
|
|
22587
22604
|
return /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, props);
|
|
22588
22605
|
}));
|
|
22589
22606
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
22590
22607
|
var active = _ref.active,
|
|
22591
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
22608
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
22592
22609
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
22593
22610
|
React.useEffect(function () {
|
|
22594
22611
|
var animation = reactNative.Animated.spring(rotateAnimation.current, {
|
|
@@ -22953,11 +22970,11 @@ var StyledFAB = index$b(FAB$1)(function (_ref) {
|
|
|
22953
22970
|
};
|
|
22954
22971
|
});
|
|
22955
22972
|
|
|
22956
|
-
var _excluded$
|
|
22973
|
+
var _excluded$o = ["fabConfig", "onCancel"];
|
|
22957
22974
|
var Pair = function Pair(_ref) {
|
|
22958
22975
|
var fabConfig = _ref.fabConfig,
|
|
22959
22976
|
onCancel = _ref.onCancel,
|
|
22960
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22977
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
22961
22978
|
var icon = fabConfig.icon,
|
|
22962
22979
|
title = fabConfig.title,
|
|
22963
22980
|
onPress = fabConfig.onPress,
|
|
@@ -23687,11 +23704,11 @@ var StyledFocusIcon = index$b(Icon)(function (_ref7) {
|
|
|
23687
23704
|
};
|
|
23688
23705
|
});
|
|
23689
23706
|
|
|
23690
|
-
var _excluded$
|
|
23707
|
+
var _excluded$n = ["style", "testID"];
|
|
23691
23708
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
23692
23709
|
var style = _ref.style,
|
|
23693
23710
|
testID = _ref.testID,
|
|
23694
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
23711
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
23695
23712
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
23696
23713
|
style: style,
|
|
23697
23714
|
testID: testID
|
|
@@ -23701,7 +23718,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
23701
23718
|
}));
|
|
23702
23719
|
};
|
|
23703
23720
|
|
|
23704
|
-
var _excluded$
|
|
23721
|
+
var _excluded$m = ["style", "testID", "state", "image", "icon"];
|
|
23705
23722
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
23706
23723
|
var iconMap = {
|
|
23707
23724
|
idle: undefined,
|
|
@@ -23717,7 +23734,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
23717
23734
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
23718
23735
|
image = _ref.image,
|
|
23719
23736
|
icon = _ref.icon,
|
|
23720
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
23737
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
23721
23738
|
var badgeIcon = getBadgeIconName(state);
|
|
23722
23739
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
23723
23740
|
style: style,
|
|
@@ -23746,7 +23763,7 @@ var StyledWrapper$6 = index$b(reactNative.View)(function () {
|
|
|
23746
23763
|
alignContent: 'flex-start'
|
|
23747
23764
|
};
|
|
23748
23765
|
});
|
|
23749
|
-
var StyledPinWrapper = index$b(reactNative.
|
|
23766
|
+
var StyledPinWrapper = index$b(reactNative.Pressable)(function () {
|
|
23750
23767
|
return {
|
|
23751
23768
|
flexDirection: 'row'
|
|
23752
23769
|
};
|
|
@@ -23845,7 +23862,11 @@ function PinCell(_ref) {
|
|
|
23845
23862
|
state = _ref$state === void 0 ? 'default' : _ref$state;
|
|
23846
23863
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCell, {
|
|
23847
23864
|
themeFocused: focused,
|
|
23848
|
-
themeState: state
|
|
23865
|
+
themeState: state,
|
|
23866
|
+
accessibilityState: {
|
|
23867
|
+
selected: focused
|
|
23868
|
+
},
|
|
23869
|
+
testID: "pin-cell"
|
|
23849
23870
|
}, value === '' && /*#__PURE__*/React__namespace.default.createElement(StyledMask, {
|
|
23850
23871
|
themeState: state,
|
|
23851
23872
|
testID: "pin-cell-mask"
|
|
@@ -23953,7 +23974,11 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
23953
23974
|
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$6, {
|
|
23954
23975
|
style: style,
|
|
23955
23976
|
testID: testID
|
|
23956
|
-
}, /*#__PURE__*/React__namespace.default.createElement(StyledPinWrapper,
|
|
23977
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledPinWrapper, {
|
|
23978
|
+
onPress: focus,
|
|
23979
|
+
disabled: disabled,
|
|
23980
|
+
testID: "pin-wrapper"
|
|
23981
|
+
}, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
23957
23982
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
23958
23983
|
key: index
|
|
23959
23984
|
}, index !== 0 && /*#__PURE__*/React__namespace.default.createElement(StyledSpacer, null), /*#__PURE__*/React__namespace.default.createElement(PinCell, {
|
|
@@ -23977,7 +24002,7 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
23977
24002
|
autoFocus: autoFocus,
|
|
23978
24003
|
onFocus: focus,
|
|
23979
24004
|
onBlur: blur,
|
|
23980
|
-
pointerEvents: "
|
|
24005
|
+
pointerEvents: "none",
|
|
23981
24006
|
keyboardType: "numeric",
|
|
23982
24007
|
testID: "pin-hidden-input",
|
|
23983
24008
|
textContentType: textContentType,
|
|
@@ -24025,7 +24050,7 @@ var THEME_INTENT_MAP = {
|
|
|
24025
24050
|
'archived-inverted': 'archivedInverted'
|
|
24026
24051
|
};
|
|
24027
24052
|
|
|
24028
|
-
var _excluded$
|
|
24053
|
+
var _excluded$l = ["value", "renderValue", "intent", "style", "testID"];
|
|
24029
24054
|
var defaultRenderValue = function defaultRenderValue(value) {
|
|
24030
24055
|
return "".concat(value, "%");
|
|
24031
24056
|
};
|
|
@@ -24038,7 +24063,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
|
|
|
24038
24063
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
24039
24064
|
style = _ref.style,
|
|
24040
24065
|
testID = _ref.testID,
|
|
24041
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24066
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
24042
24067
|
var theme = useTheme$1();
|
|
24043
24068
|
var size = theme.__hd__.progress.sizes.circleDiameter;
|
|
24044
24069
|
var strokeWidth = theme.__hd__.progress.sizes.circleCompletenessHeight;
|
|
@@ -24108,14 +24133,14 @@ var StyledInner = index$b(reactNative.Animated.View)(function (_ref2) {
|
|
|
24108
24133
|
};
|
|
24109
24134
|
});
|
|
24110
24135
|
|
|
24111
|
-
var _excluded$
|
|
24136
|
+
var _excluded$k = ["value", "intent", "style", "testID"];
|
|
24112
24137
|
var ProgressBar = function ProgressBar(_ref) {
|
|
24113
24138
|
var value = _ref.value,
|
|
24114
24139
|
_ref$intent = _ref.intent,
|
|
24115
24140
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
24116
24141
|
style = _ref.style,
|
|
24117
24142
|
testID = _ref.testID,
|
|
24118
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24143
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
24119
24144
|
var _useState = React.useState(0),
|
|
24120
24145
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24121
24146
|
width = _useState2[0],
|
|
@@ -24205,7 +24230,7 @@ var StyledSingleStep = index$b(Box)(function (_ref3) {
|
|
|
24205
24230
|
};
|
|
24206
24231
|
});
|
|
24207
24232
|
|
|
24208
|
-
var _excluded$
|
|
24233
|
+
var _excluded$j = ["steps", "current", "onLayout"];
|
|
24209
24234
|
var getStepState = function getStepState(current, index) {
|
|
24210
24235
|
if (index < current) {
|
|
24211
24236
|
return 'complete';
|
|
@@ -24219,7 +24244,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
24219
24244
|
var steps = _ref.steps,
|
|
24220
24245
|
current = _ref.current,
|
|
24221
24246
|
onLayout = _ref.onLayout,
|
|
24222
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
24247
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
24223
24248
|
var theme = useTheme$1();
|
|
24224
24249
|
var _React$useState = React__namespace.default.useState(0),
|
|
24225
24250
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -24528,14 +24553,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
24528
24553
|
}, dotProps))));
|
|
24529
24554
|
};
|
|
24530
24555
|
|
|
24531
|
-
var _excluded$
|
|
24556
|
+
var _excluded$i = ["testID", "size", "intent"];
|
|
24532
24557
|
var Spinner = function Spinner(_ref) {
|
|
24533
24558
|
var testID = _ref.testID,
|
|
24534
24559
|
_ref$size = _ref.size,
|
|
24535
24560
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
24536
24561
|
_ref$intent = _ref.intent,
|
|
24537
24562
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
24538
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24563
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
24539
24564
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
|
|
24540
24565
|
testID: testID
|
|
24541
24566
|
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
|
|
@@ -24568,7 +24593,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
24568
24593
|
}, children);
|
|
24569
24594
|
};
|
|
24570
24595
|
|
|
24571
|
-
var _excluded$
|
|
24596
|
+
var _excluded$h = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
24572
24597
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
24573
24598
|
var trans = progress.interpolate({
|
|
24574
24599
|
inputRange: [0, 1],
|
|
@@ -24597,7 +24622,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
24597
24622
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
24598
24623
|
_ref$variant = _ref.variant,
|
|
24599
24624
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
24600
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
24625
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
24601
24626
|
var theme = useTheme();
|
|
24602
24627
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
24603
24628
|
width = _useWindowDimensions.width;
|
|
@@ -24924,7 +24949,7 @@ var StyledSectionList = index$b(reactNative.SectionList)(function (_ref4) {
|
|
|
24924
24949
|
};
|
|
24925
24950
|
});
|
|
24926
24951
|
|
|
24927
|
-
var _excluded$
|
|
24952
|
+
var _excluded$g = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
24928
24953
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
24929
24954
|
var keyExtractor = _ref.keyExtractor,
|
|
24930
24955
|
loading = _ref.loading,
|
|
@@ -24933,7 +24958,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
24933
24958
|
sections = _ref.sections,
|
|
24934
24959
|
renderItem = _ref.renderItem,
|
|
24935
24960
|
sectionListRef = _ref.sectionListRef,
|
|
24936
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
24961
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
24937
24962
|
var theme = useTheme$1();
|
|
24938
24963
|
var _useState = React.useState(false),
|
|
24939
24964
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -25015,7 +25040,7 @@ var isOptionSelected = function isOptionSelected(value, option) {
|
|
|
25015
25040
|
});
|
|
25016
25041
|
};
|
|
25017
25042
|
|
|
25018
|
-
var _excluded$
|
|
25043
|
+
var _excluded$f = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
25019
25044
|
var OptionList$1 = function OptionList(_ref) {
|
|
25020
25045
|
var keyExtractor = _ref.keyExtractor,
|
|
25021
25046
|
loading = _ref.loading,
|
|
@@ -25026,7 +25051,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
25026
25051
|
renderOption = _ref.renderOption,
|
|
25027
25052
|
value = _ref.value,
|
|
25028
25053
|
sectionListRef = _ref.sectionListRef,
|
|
25029
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25054
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
25030
25055
|
var renderItem = function renderItem(info) {
|
|
25031
25056
|
var item = info.item;
|
|
25032
25057
|
var selected = isOptionSelected(value, item);
|
|
@@ -25061,6 +25086,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
25061
25086
|
}, rest));
|
|
25062
25087
|
};
|
|
25063
25088
|
|
|
25089
|
+
var _excluded$e = ["footerLabel", "label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig"];
|
|
25064
25090
|
function MultiSelect(_ref) {
|
|
25065
25091
|
var footerLabel = _ref.footerLabel,
|
|
25066
25092
|
label = _ref.label,
|
|
@@ -25087,7 +25113,8 @@ function MultiSelect(_ref) {
|
|
|
25087
25113
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
25088
25114
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
25089
25115
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
25090
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
25116
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
25117
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
25091
25118
|
var _useKeyboard = useKeyboard(),
|
|
25092
25119
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
25093
25120
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -25110,6 +25137,7 @@ function MultiSelect(_ref) {
|
|
|
25110
25137
|
var rawValue = value.length > 0 ? value.join(', ') : '';
|
|
25111
25138
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
25112
25139
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
25140
|
+
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
25113
25141
|
React.useEffect(function () {
|
|
25114
25142
|
setSelectingValue(value);
|
|
25115
25143
|
}, [open, value]);
|
|
@@ -25121,7 +25149,7 @@ function MultiSelect(_ref) {
|
|
|
25121
25149
|
}
|
|
25122
25150
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
25123
25151
|
pointerEvents: "none"
|
|
25124
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
25152
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInputComponent, _extends$1({}, inputProps, {
|
|
25125
25153
|
label: label,
|
|
25126
25154
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
25127
25155
|
suffix: "arrow-down",
|
|
@@ -25171,7 +25199,7 @@ function MultiSelect(_ref) {
|
|
|
25171
25199
|
}
|
|
25172
25200
|
},
|
|
25173
25201
|
supportedOrientations: supportedOrientations
|
|
25174
|
-
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(
|
|
25202
|
+
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(TextInputComponent, {
|
|
25175
25203
|
editable: true,
|
|
25176
25204
|
placeholder: "Search",
|
|
25177
25205
|
suffix: "search-outlined",
|
|
@@ -25222,7 +25250,7 @@ var StyledOptionList = index$b(BaseOptionList)(function (_ref) {
|
|
|
25222
25250
|
};
|
|
25223
25251
|
});
|
|
25224
25252
|
|
|
25225
|
-
var _excluded$
|
|
25253
|
+
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
25226
25254
|
var OptionList = function OptionList(_ref) {
|
|
25227
25255
|
var keyExtractor = _ref.keyExtractor,
|
|
25228
25256
|
loading = _ref.loading,
|
|
@@ -25233,7 +25261,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
25233
25261
|
renderOption = _ref.renderOption,
|
|
25234
25262
|
value = _ref.value,
|
|
25235
25263
|
sectionListRef = _ref.sectionListRef,
|
|
25236
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25264
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
25237
25265
|
var renderItem = function renderItem(info) {
|
|
25238
25266
|
var item = info.item;
|
|
25239
25267
|
var selected = _deepCompareValue(item.value, value);
|
|
@@ -25269,6 +25297,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
25269
25297
|
}, rest));
|
|
25270
25298
|
};
|
|
25271
25299
|
|
|
25300
|
+
var _excluded$c = ["label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig"];
|
|
25272
25301
|
var SingleSelect = function SingleSelect(_ref) {
|
|
25273
25302
|
var _flatOptions$find;
|
|
25274
25303
|
var label = _ref.label,
|
|
@@ -25295,7 +25324,8 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25295
25324
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
25296
25325
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
25297
25326
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
25298
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
25327
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
25328
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
25299
25329
|
var _useKeyboard = useKeyboard(),
|
|
25300
25330
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
25301
25331
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -25312,6 +25342,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25312
25342
|
var rawValue = value ? String(value) : undefined;
|
|
25313
25343
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
25314
25344
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
25345
|
+
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
25315
25346
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
25316
25347
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
25317
25348
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
@@ -25320,7 +25351,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25320
25351
|
}
|
|
25321
25352
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
25322
25353
|
pointerEvents: "none"
|
|
25323
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
25354
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInputComponent, _extends$1({}, inputProps, {
|
|
25324
25355
|
label: label,
|
|
25325
25356
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
25326
25357
|
suffix: "arrow-down",
|
|
@@ -25354,7 +25385,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25354
25385
|
}
|
|
25355
25386
|
},
|
|
25356
25387
|
supportedOrientations: supportedOrientations
|
|
25357
|
-
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(
|
|
25388
|
+
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(TextInputComponent, {
|
|
25358
25389
|
editable: true,
|
|
25359
25390
|
placeholder: "Search",
|
|
25360
25391
|
suffix: "search-outlined",
|
|
@@ -26675,7 +26706,8 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
26675
26706
|
style = _ref.style,
|
|
26676
26707
|
testID = _ref.testID,
|
|
26677
26708
|
_ref$showSuffix = _ref.showSuffix,
|
|
26678
|
-
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix
|
|
26709
|
+
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix,
|
|
26710
|
+
TextInputComponent = _ref.TextInputComponent;
|
|
26679
26711
|
var _useState = React.useState(false),
|
|
26680
26712
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26681
26713
|
open = _useState2[0],
|
|
@@ -26683,6 +26715,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
26683
26715
|
var is12Hour = displayFormat.includes('hh');
|
|
26684
26716
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
26685
26717
|
var pickerInitValue = value || new Date();
|
|
26718
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
26686
26719
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
26687
26720
|
onPress: function onPress() {
|
|
26688
26721
|
return setOpen(true);
|
|
@@ -26691,7 +26724,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
26691
26724
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
26692
26725
|
pointerEvents: "none",
|
|
26693
26726
|
testID: "timePickerInputAndroid"
|
|
26694
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
26727
|
+
}, /*#__PURE__*/React__namespace.default.createElement(InputComponent, {
|
|
26695
26728
|
label: label,
|
|
26696
26729
|
value: displayValue,
|
|
26697
26730
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -26720,7 +26753,8 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
26720
26753
|
var StyledPickerWrapper = index$b(reactNative.View)(function (_ref) {
|
|
26721
26754
|
var theme = _ref.theme;
|
|
26722
26755
|
return {
|
|
26723
|
-
height: theme.__hd__.timePicker.sizes.height
|
|
26756
|
+
height: theme.__hd__.timePicker.sizes.height,
|
|
26757
|
+
alignItems: 'center'
|
|
26724
26758
|
};
|
|
26725
26759
|
});
|
|
26726
26760
|
|
|
@@ -26742,7 +26776,8 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
26742
26776
|
_ref$showSuffix = _ref.showSuffix,
|
|
26743
26777
|
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix,
|
|
26744
26778
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
26745
|
-
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta
|
|
26779
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
26780
|
+
TextInputComponent = _ref.TextInputComponent;
|
|
26746
26781
|
var _useState = React.useState(value || new Date()),
|
|
26747
26782
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26748
26783
|
selectingDate = _useState2[0],
|
|
@@ -26754,6 +26789,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
26754
26789
|
var is12Hour = displayFormat.includes('hh');
|
|
26755
26790
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
26756
26791
|
var theme = useTheme();
|
|
26792
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
26757
26793
|
React.useEffect(function () {
|
|
26758
26794
|
setSelectingDate(value || new Date());
|
|
26759
26795
|
}, [value]);
|
|
@@ -26765,7 +26801,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
26765
26801
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
26766
26802
|
pointerEvents: "none",
|
|
26767
26803
|
testID: "timePickerInputIOS"
|
|
26768
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
26804
|
+
}, /*#__PURE__*/React__namespace.default.createElement(InputComponent, {
|
|
26769
26805
|
label: label,
|
|
26770
26806
|
value: displayValue,
|
|
26771
26807
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -26821,6 +26857,8 @@ var TimePicker = function TimePicker(props) {
|
|
|
26821
26857
|
return /*#__PURE__*/React__namespace.default.createElement(TimePickerAndroid, props);
|
|
26822
26858
|
};
|
|
26823
26859
|
|
|
26860
|
+
var PublicTimePicker = TimePicker;
|
|
26861
|
+
|
|
26824
26862
|
var ToolbarWrapper = index$b(reactNative.View)(function (_ref) {
|
|
26825
26863
|
var theme = _ref.theme;
|
|
26826
26864
|
return {
|
|
@@ -46840,7 +46878,7 @@ exports.Tag = Tag;
|
|
|
46840
46878
|
exports.TextInput = TextInput;
|
|
46841
46879
|
exports.ThemeProvider = ThemeProvider;
|
|
46842
46880
|
exports.ThemeSwitcher = ThemeSwitcher;
|
|
46843
|
-
exports.TimePicker =
|
|
46881
|
+
exports.TimePicker = PublicTimePicker;
|
|
46844
46882
|
exports.Toast = Toast;
|
|
46845
46883
|
exports.Toolbar = index$1;
|
|
46846
46884
|
exports.Typography = Typography;
|