@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/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({
|
|
@@ -20429,7 +20429,8 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
20429
20429
|
_ref$variant = _ref.variant,
|
|
20430
20430
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
20431
20431
|
renderSelectedValue = _ref.renderSelectedValue,
|
|
20432
|
-
locale = _ref.locale
|
|
20432
|
+
locale = _ref.locale,
|
|
20433
|
+
TextInputComponent = _ref.TextInputComponent;
|
|
20433
20434
|
var _useState = useState(false),
|
|
20434
20435
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20435
20436
|
open = _useState2[0],
|
|
@@ -20447,6 +20448,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
20447
20448
|
onChange: onChange,
|
|
20448
20449
|
value: value
|
|
20449
20450
|
});
|
|
20451
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
20450
20452
|
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
20451
20453
|
onPress: function onPress() {
|
|
20452
20454
|
return setOpen(true);
|
|
@@ -20455,7 +20457,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
20455
20457
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
20456
20458
|
pointerEvents: "none",
|
|
20457
20459
|
testID: "datePickerInputAndroid"
|
|
20458
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
20460
|
+
}, /*#__PURE__*/React__default.createElement(InputComponent, {
|
|
20459
20461
|
label: label,
|
|
20460
20462
|
value: displayValue,
|
|
20461
20463
|
suffix: "calendar-dates-outlined",
|
|
@@ -20550,7 +20552,8 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
20550
20552
|
_ref2$supportedOrient = _ref2.supportedOrientations,
|
|
20551
20553
|
supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient,
|
|
20552
20554
|
renderSelectedValue = _ref2.renderSelectedValue,
|
|
20553
|
-
locale = _ref2.locale
|
|
20555
|
+
locale = _ref2.locale,
|
|
20556
|
+
TextInputComponent = _ref2.TextInputComponent;
|
|
20554
20557
|
var _useState5 = useState(false),
|
|
20555
20558
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
20556
20559
|
open = _useState6[0],
|
|
@@ -20576,6 +20579,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
20576
20579
|
onChange: onChange,
|
|
20577
20580
|
value: value
|
|
20578
20581
|
});
|
|
20582
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
20579
20583
|
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
20580
20584
|
onPress: function onPress() {
|
|
20581
20585
|
return setOpen(true);
|
|
@@ -20584,7 +20588,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
20584
20588
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
20585
20589
|
pointerEvents: "none",
|
|
20586
20590
|
testID: "datePickerCalendar"
|
|
20587
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
20591
|
+
}, /*#__PURE__*/React__default.createElement(InputComponent, {
|
|
20588
20592
|
label: label,
|
|
20589
20593
|
value: displayValue,
|
|
20590
20594
|
suffix: "calendar-dates-outlined",
|
|
@@ -20634,7 +20638,8 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
20634
20638
|
var StyledPickerWrapper$1 = index$b(View)(function (_ref) {
|
|
20635
20639
|
var theme = _ref.theme;
|
|
20636
20640
|
return {
|
|
20637
|
-
height: theme.__hd__.datePicker.sizes.height
|
|
20641
|
+
height: theme.__hd__.datePicker.sizes.height,
|
|
20642
|
+
alignItems: 'center'
|
|
20638
20643
|
};
|
|
20639
20644
|
});
|
|
20640
20645
|
|
|
@@ -20680,13 +20685,14 @@ var IOSDatePickerDialog = function IOSDatePickerDialog(_ref) {
|
|
|
20680
20685
|
minimumDate: minDate,
|
|
20681
20686
|
textColor: theme.colors.onDefaultGlobalSurface,
|
|
20682
20687
|
maximumDate: maxDate,
|
|
20688
|
+
style: {
|
|
20689
|
+
height: '100%',
|
|
20690
|
+
width: '100%'
|
|
20691
|
+
},
|
|
20683
20692
|
onChange: function onChange(date) {
|
|
20684
20693
|
if (date) {
|
|
20685
20694
|
setSelectingDate(date);
|
|
20686
20695
|
}
|
|
20687
|
-
},
|
|
20688
|
-
style: {
|
|
20689
|
-
flex: 1
|
|
20690
20696
|
}
|
|
20691
20697
|
}) : null, variant === 'default' ? /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
20692
20698
|
locale: locale,
|
|
@@ -20729,7 +20735,8 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
20729
20735
|
_ref$variant = _ref.variant,
|
|
20730
20736
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
20731
20737
|
locale = _ref.locale,
|
|
20732
|
-
renderSelectedValue = _ref.renderSelectedValue
|
|
20738
|
+
renderSelectedValue = _ref.renderSelectedValue,
|
|
20739
|
+
TextInputComponent = _ref.TextInputComponent;
|
|
20733
20740
|
var _useState = useState(false),
|
|
20734
20741
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20735
20742
|
open = _useState2[0],
|
|
@@ -20749,6 +20756,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
20749
20756
|
onChange: onChange,
|
|
20750
20757
|
value: value
|
|
20751
20758
|
});
|
|
20759
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
20752
20760
|
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
20753
20761
|
onPress: function onPress() {
|
|
20754
20762
|
return setOpen(true);
|
|
@@ -20757,7 +20765,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
20757
20765
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
20758
20766
|
pointerEvents: "none",
|
|
20759
20767
|
testID: "datePickerInputIOS"
|
|
20760
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
20768
|
+
}, /*#__PURE__*/React__default.createElement(InputComponent, {
|
|
20761
20769
|
label: label,
|
|
20762
20770
|
value: displayValue,
|
|
20763
20771
|
suffix: "calendar-dates-outlined",
|
|
@@ -20791,31 +20799,40 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
20791
20799
|
}));
|
|
20792
20800
|
};
|
|
20793
20801
|
|
|
20794
|
-
var _excluded$
|
|
20802
|
+
var _excluded$s = ["variant", "TextInputComponent"];
|
|
20795
20803
|
var DatePicker = function DatePicker(_ref) {
|
|
20796
20804
|
var _ref$variant = _ref.variant,
|
|
20797
20805
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
20798
|
-
|
|
20806
|
+
_ref$TextInputCompone = _ref.TextInputComponent,
|
|
20807
|
+
TextInputComponent = _ref$TextInputCompone === void 0 ? TextInput : _ref$TextInputCompone,
|
|
20808
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
20799
20809
|
if (variant === 'calendar') {
|
|
20800
|
-
return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props
|
|
20810
|
+
return /*#__PURE__*/React__default.createElement(DatePickerCalendar, _extends$1({}, props, {
|
|
20811
|
+
TextInputComponent: TextInputComponent
|
|
20812
|
+
}));
|
|
20801
20813
|
}
|
|
20802
20814
|
if (Platform.OS === 'ios') {
|
|
20803
20815
|
return /*#__PURE__*/React__default.createElement(DatePickerIOS, _extends$1({}, props, {
|
|
20804
|
-
variant: variant
|
|
20816
|
+
variant: variant,
|
|
20817
|
+
TextInputComponent: TextInputComponent
|
|
20805
20818
|
}));
|
|
20806
20819
|
}
|
|
20807
20820
|
return /*#__PURE__*/React__default.createElement(DatePickerAndroid, _extends$1({}, props, {
|
|
20808
|
-
variant: variant
|
|
20821
|
+
variant: variant,
|
|
20822
|
+
TextInputComponent: TextInputComponent
|
|
20809
20823
|
}));
|
|
20810
20824
|
};
|
|
20811
|
-
|
|
20812
|
-
|
|
20825
|
+
|
|
20826
|
+
var Dialog = function Dialog(_ref) {
|
|
20827
|
+
var props = _extends$1({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
20813
20828
|
if (Platform.OS === 'ios') {
|
|
20814
20829
|
return /*#__PURE__*/React__default.createElement(IOSDatePickerDialog, props);
|
|
20815
20830
|
}
|
|
20816
20831
|
return /*#__PURE__*/React__default.createElement(AndroidDatePickerDialog, props);
|
|
20817
20832
|
};
|
|
20818
|
-
|
|
20833
|
+
|
|
20834
|
+
var PublicDatePicker = DatePicker;
|
|
20835
|
+
var index$8 = Object.assign(PublicDatePicker, {
|
|
20819
20836
|
Dialog: Dialog
|
|
20820
20837
|
});
|
|
20821
20838
|
|
|
@@ -22079,7 +22096,7 @@ var Portal$1 = Object.assign(Portal, {
|
|
|
22079
22096
|
Host: PortalHost
|
|
22080
22097
|
});
|
|
22081
22098
|
|
|
22082
|
-
var _excluded$
|
|
22099
|
+
var _excluded$r = ["visible"];
|
|
22083
22100
|
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
22084
22101
|
var DEFAULT_ANIMATION_CONFIG = {
|
|
22085
22102
|
easing: Easing.inOut(Easing.cubic),
|
|
@@ -22175,7 +22192,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
22175
22192
|
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
22176
22193
|
var _ref3$visible = _ref3.visible,
|
|
22177
22194
|
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
22178
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
22195
|
+
props = _objectWithoutProperties(_ref3, _excluded$r);
|
|
22179
22196
|
var modalRef = useRef(null);
|
|
22180
22197
|
var _useState = useState(visible),
|
|
22181
22198
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -22286,7 +22303,7 @@ var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
|
|
|
22286
22303
|
};
|
|
22287
22304
|
});
|
|
22288
22305
|
|
|
22289
|
-
var _excluded$
|
|
22306
|
+
var _excluded$q = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
|
|
22290
22307
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
22291
22308
|
var renderImage$1 = function renderImage(image) {
|
|
22292
22309
|
if (/*#__PURE__*/isValidElement(image)) {
|
|
@@ -22327,7 +22344,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
22327
22344
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
22328
22345
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
22329
22346
|
icon = _ref2.icon,
|
|
22330
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
22347
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$q);
|
|
22331
22348
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
22332
22349
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
22333
22350
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -22553,13 +22570,13 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
22553
22570
|
})), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
|
|
22554
22571
|
};
|
|
22555
22572
|
|
|
22556
|
-
var _excluded$
|
|
22573
|
+
var _excluded$p = ["active"];
|
|
22557
22574
|
var AnimatedIcons = Animated.createAnimatedComponent(/*#__PURE__*/React__default.forwardRef(function (props, _) {
|
|
22558
22575
|
return /*#__PURE__*/React__default.createElement(StyledFABIcon, props);
|
|
22559
22576
|
}));
|
|
22560
22577
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
22561
22578
|
var active = _ref.active,
|
|
22562
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
22579
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
22563
22580
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
22564
22581
|
useEffect(function () {
|
|
22565
22582
|
var animation = Animated.spring(rotateAnimation.current, {
|
|
@@ -22924,11 +22941,11 @@ var StyledFAB = index$b(FAB$1)(function (_ref) {
|
|
|
22924
22941
|
};
|
|
22925
22942
|
});
|
|
22926
22943
|
|
|
22927
|
-
var _excluded$
|
|
22944
|
+
var _excluded$o = ["fabConfig", "onCancel"];
|
|
22928
22945
|
var Pair = function Pair(_ref) {
|
|
22929
22946
|
var fabConfig = _ref.fabConfig,
|
|
22930
22947
|
onCancel = _ref.onCancel,
|
|
22931
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22948
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
22932
22949
|
var icon = fabConfig.icon,
|
|
22933
22950
|
title = fabConfig.title,
|
|
22934
22951
|
onPress = fabConfig.onPress,
|
|
@@ -23658,11 +23675,11 @@ var StyledFocusIcon = index$b(Icon)(function (_ref7) {
|
|
|
23658
23675
|
};
|
|
23659
23676
|
});
|
|
23660
23677
|
|
|
23661
|
-
var _excluded$
|
|
23678
|
+
var _excluded$n = ["style", "testID"];
|
|
23662
23679
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
23663
23680
|
var style = _ref.style,
|
|
23664
23681
|
testID = _ref.testID,
|
|
23665
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
23682
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
23666
23683
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
23667
23684
|
style: style,
|
|
23668
23685
|
testID: testID
|
|
@@ -23672,7 +23689,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
23672
23689
|
}));
|
|
23673
23690
|
};
|
|
23674
23691
|
|
|
23675
|
-
var _excluded$
|
|
23692
|
+
var _excluded$m = ["style", "testID", "state", "image", "icon"];
|
|
23676
23693
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
23677
23694
|
var iconMap = {
|
|
23678
23695
|
idle: undefined,
|
|
@@ -23688,7 +23705,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
23688
23705
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
23689
23706
|
image = _ref.image,
|
|
23690
23707
|
icon = _ref.icon,
|
|
23691
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
23708
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
23692
23709
|
var badgeIcon = getBadgeIconName(state);
|
|
23693
23710
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
23694
23711
|
style: style,
|
|
@@ -23717,7 +23734,7 @@ var StyledWrapper$6 = index$b(View)(function () {
|
|
|
23717
23734
|
alignContent: 'flex-start'
|
|
23718
23735
|
};
|
|
23719
23736
|
});
|
|
23720
|
-
var StyledPinWrapper = index$b(
|
|
23737
|
+
var StyledPinWrapper = index$b(Pressable)(function () {
|
|
23721
23738
|
return {
|
|
23722
23739
|
flexDirection: 'row'
|
|
23723
23740
|
};
|
|
@@ -23816,7 +23833,11 @@ function PinCell(_ref) {
|
|
|
23816
23833
|
state = _ref$state === void 0 ? 'default' : _ref$state;
|
|
23817
23834
|
return /*#__PURE__*/React__default.createElement(StyledCell, {
|
|
23818
23835
|
themeFocused: focused,
|
|
23819
|
-
themeState: state
|
|
23836
|
+
themeState: state,
|
|
23837
|
+
accessibilityState: {
|
|
23838
|
+
selected: focused
|
|
23839
|
+
},
|
|
23840
|
+
testID: "pin-cell"
|
|
23820
23841
|
}, value === '' && /*#__PURE__*/React__default.createElement(StyledMask, {
|
|
23821
23842
|
themeState: state,
|
|
23822
23843
|
testID: "pin-cell-mask"
|
|
@@ -23924,7 +23945,11 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
23924
23945
|
return /*#__PURE__*/React__default.createElement(StyledWrapper$6, {
|
|
23925
23946
|
style: style,
|
|
23926
23947
|
testID: testID
|
|
23927
|
-
}, /*#__PURE__*/React__default.createElement(StyledPinWrapper,
|
|
23948
|
+
}, /*#__PURE__*/React__default.createElement(StyledPinWrapper, {
|
|
23949
|
+
onPress: focus,
|
|
23950
|
+
disabled: disabled,
|
|
23951
|
+
testID: "pin-wrapper"
|
|
23952
|
+
}, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
23928
23953
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
23929
23954
|
key: index
|
|
23930
23955
|
}, index !== 0 && /*#__PURE__*/React__default.createElement(StyledSpacer, null), /*#__PURE__*/React__default.createElement(PinCell, {
|
|
@@ -23948,7 +23973,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
23948
23973
|
autoFocus: autoFocus,
|
|
23949
23974
|
onFocus: focus,
|
|
23950
23975
|
onBlur: blur,
|
|
23951
|
-
pointerEvents: "
|
|
23976
|
+
pointerEvents: "none",
|
|
23952
23977
|
keyboardType: "numeric",
|
|
23953
23978
|
testID: "pin-hidden-input",
|
|
23954
23979
|
textContentType: textContentType,
|
|
@@ -23996,7 +24021,7 @@ var THEME_INTENT_MAP = {
|
|
|
23996
24021
|
'archived-inverted': 'archivedInverted'
|
|
23997
24022
|
};
|
|
23998
24023
|
|
|
23999
|
-
var _excluded$
|
|
24024
|
+
var _excluded$l = ["value", "renderValue", "intent", "style", "testID"];
|
|
24000
24025
|
var defaultRenderValue = function defaultRenderValue(value) {
|
|
24001
24026
|
return "".concat(value, "%");
|
|
24002
24027
|
};
|
|
@@ -24009,7 +24034,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
|
|
|
24009
24034
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
24010
24035
|
style = _ref.style,
|
|
24011
24036
|
testID = _ref.testID,
|
|
24012
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24037
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
24013
24038
|
var theme = useTheme$1();
|
|
24014
24039
|
var size = theme.__hd__.progress.sizes.circleDiameter;
|
|
24015
24040
|
var strokeWidth = theme.__hd__.progress.sizes.circleCompletenessHeight;
|
|
@@ -24079,14 +24104,14 @@ var StyledInner = index$b(Animated.View)(function (_ref2) {
|
|
|
24079
24104
|
};
|
|
24080
24105
|
});
|
|
24081
24106
|
|
|
24082
|
-
var _excluded$
|
|
24107
|
+
var _excluded$k = ["value", "intent", "style", "testID"];
|
|
24083
24108
|
var ProgressBar = function ProgressBar(_ref) {
|
|
24084
24109
|
var value = _ref.value,
|
|
24085
24110
|
_ref$intent = _ref.intent,
|
|
24086
24111
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
24087
24112
|
style = _ref.style,
|
|
24088
24113
|
testID = _ref.testID,
|
|
24089
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24114
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
24090
24115
|
var _useState = useState(0),
|
|
24091
24116
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24092
24117
|
width = _useState2[0],
|
|
@@ -24176,7 +24201,7 @@ var StyledSingleStep = index$b(Box)(function (_ref3) {
|
|
|
24176
24201
|
};
|
|
24177
24202
|
});
|
|
24178
24203
|
|
|
24179
|
-
var _excluded$
|
|
24204
|
+
var _excluded$j = ["steps", "current", "onLayout"];
|
|
24180
24205
|
var getStepState = function getStepState(current, index) {
|
|
24181
24206
|
if (index < current) {
|
|
24182
24207
|
return 'complete';
|
|
@@ -24190,7 +24215,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
24190
24215
|
var steps = _ref.steps,
|
|
24191
24216
|
current = _ref.current,
|
|
24192
24217
|
onLayout = _ref.onLayout,
|
|
24193
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
24218
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
24194
24219
|
var theme = useTheme$1();
|
|
24195
24220
|
var _React$useState = React__default.useState(0),
|
|
24196
24221
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -24499,14 +24524,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
24499
24524
|
}, dotProps))));
|
|
24500
24525
|
};
|
|
24501
24526
|
|
|
24502
|
-
var _excluded$
|
|
24527
|
+
var _excluded$i = ["testID", "size", "intent"];
|
|
24503
24528
|
var Spinner = function Spinner(_ref) {
|
|
24504
24529
|
var testID = _ref.testID,
|
|
24505
24530
|
_ref$size = _ref.size,
|
|
24506
24531
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
24507
24532
|
_ref$intent = _ref.intent,
|
|
24508
24533
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
24509
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24534
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
24510
24535
|
return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
|
|
24511
24536
|
testID: testID
|
|
24512
24537
|
}, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
|
|
@@ -24539,7 +24564,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
24539
24564
|
}, children);
|
|
24540
24565
|
};
|
|
24541
24566
|
|
|
24542
|
-
var _excluded$
|
|
24567
|
+
var _excluded$h = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
24543
24568
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
24544
24569
|
var trans = progress.interpolate({
|
|
24545
24570
|
inputRange: [0, 1],
|
|
@@ -24568,7 +24593,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
24568
24593
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
24569
24594
|
_ref$variant = _ref.variant,
|
|
24570
24595
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
24571
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
24596
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
24572
24597
|
var theme = useTheme();
|
|
24573
24598
|
var _useWindowDimensions = useWindowDimensions(),
|
|
24574
24599
|
width = _useWindowDimensions.width;
|
|
@@ -24895,7 +24920,7 @@ var StyledSectionList = index$b(SectionList)(function (_ref4) {
|
|
|
24895
24920
|
};
|
|
24896
24921
|
});
|
|
24897
24922
|
|
|
24898
|
-
var _excluded$
|
|
24923
|
+
var _excluded$g = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
24899
24924
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
24900
24925
|
var keyExtractor = _ref.keyExtractor,
|
|
24901
24926
|
loading = _ref.loading,
|
|
@@ -24904,7 +24929,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
24904
24929
|
sections = _ref.sections,
|
|
24905
24930
|
renderItem = _ref.renderItem,
|
|
24906
24931
|
sectionListRef = _ref.sectionListRef,
|
|
24907
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
24932
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
24908
24933
|
var theme = useTheme$1();
|
|
24909
24934
|
var _useState = useState(false),
|
|
24910
24935
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24986,7 +25011,7 @@ var isOptionSelected = function isOptionSelected(value, option) {
|
|
|
24986
25011
|
});
|
|
24987
25012
|
};
|
|
24988
25013
|
|
|
24989
|
-
var _excluded$
|
|
25014
|
+
var _excluded$f = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
24990
25015
|
var OptionList$1 = function OptionList(_ref) {
|
|
24991
25016
|
var keyExtractor = _ref.keyExtractor,
|
|
24992
25017
|
loading = _ref.loading,
|
|
@@ -24997,7 +25022,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
24997
25022
|
renderOption = _ref.renderOption,
|
|
24998
25023
|
value = _ref.value,
|
|
24999
25024
|
sectionListRef = _ref.sectionListRef,
|
|
25000
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25025
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
25001
25026
|
var renderItem = function renderItem(info) {
|
|
25002
25027
|
var item = info.item;
|
|
25003
25028
|
var selected = isOptionSelected(value, item);
|
|
@@ -25032,6 +25057,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
25032
25057
|
}, rest));
|
|
25033
25058
|
};
|
|
25034
25059
|
|
|
25060
|
+
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
25061
|
function MultiSelect(_ref) {
|
|
25036
25062
|
var footerLabel = _ref.footerLabel,
|
|
25037
25063
|
label = _ref.label,
|
|
@@ -25058,7 +25084,8 @@ function MultiSelect(_ref) {
|
|
|
25058
25084
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
25059
25085
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
25060
25086
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
25061
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
25087
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
25088
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
25062
25089
|
var _useKeyboard = useKeyboard(),
|
|
25063
25090
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
25064
25091
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -25081,6 +25108,7 @@ function MultiSelect(_ref) {
|
|
|
25081
25108
|
var rawValue = value.length > 0 ? value.join(', ') : '';
|
|
25082
25109
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
25083
25110
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
25111
|
+
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
25084
25112
|
useEffect(function () {
|
|
25085
25113
|
setSelectingValue(value);
|
|
25086
25114
|
}, [open, value]);
|
|
@@ -25092,7 +25120,7 @@ function MultiSelect(_ref) {
|
|
|
25092
25120
|
}
|
|
25093
25121
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
25094
25122
|
pointerEvents: "none"
|
|
25095
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
25123
|
+
}, /*#__PURE__*/React__default.createElement(TextInputComponent, _extends$1({}, inputProps, {
|
|
25096
25124
|
label: label,
|
|
25097
25125
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
25098
25126
|
suffix: "arrow-down",
|
|
@@ -25142,7 +25170,7 @@ function MultiSelect(_ref) {
|
|
|
25142
25170
|
}
|
|
25143
25171
|
},
|
|
25144
25172
|
supportedOrientations: supportedOrientations
|
|
25145
|
-
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(
|
|
25173
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInputComponent, {
|
|
25146
25174
|
editable: true,
|
|
25147
25175
|
placeholder: "Search",
|
|
25148
25176
|
suffix: "search-outlined",
|
|
@@ -25193,7 +25221,7 @@ var StyledOptionList = index$b(BaseOptionList)(function (_ref) {
|
|
|
25193
25221
|
};
|
|
25194
25222
|
});
|
|
25195
25223
|
|
|
25196
|
-
var _excluded$
|
|
25224
|
+
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
25197
25225
|
var OptionList = function OptionList(_ref) {
|
|
25198
25226
|
var keyExtractor = _ref.keyExtractor,
|
|
25199
25227
|
loading = _ref.loading,
|
|
@@ -25204,7 +25232,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
25204
25232
|
renderOption = _ref.renderOption,
|
|
25205
25233
|
value = _ref.value,
|
|
25206
25234
|
sectionListRef = _ref.sectionListRef,
|
|
25207
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25235
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
25208
25236
|
var renderItem = function renderItem(info) {
|
|
25209
25237
|
var item = info.item;
|
|
25210
25238
|
var selected = _deepCompareValue(item.value, value);
|
|
@@ -25240,6 +25268,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
25240
25268
|
}, rest));
|
|
25241
25269
|
};
|
|
25242
25270
|
|
|
25271
|
+
var _excluded$c = ["label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig"];
|
|
25243
25272
|
var SingleSelect = function SingleSelect(_ref) {
|
|
25244
25273
|
var _flatOptions$find;
|
|
25245
25274
|
var label = _ref.label,
|
|
@@ -25266,7 +25295,8 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25266
25295
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
25267
25296
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
25268
25297
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
25269
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
25298
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
25299
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
25270
25300
|
var _useKeyboard = useKeyboard(),
|
|
25271
25301
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
25272
25302
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -25283,6 +25313,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25283
25313
|
var rawValue = value ? String(value) : undefined;
|
|
25284
25314
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
25285
25315
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
25316
|
+
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
25286
25317
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(View, {
|
|
25287
25318
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
25288
25319
|
}, /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
@@ -25291,7 +25322,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25291
25322
|
}
|
|
25292
25323
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
25293
25324
|
pointerEvents: "none"
|
|
25294
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
25325
|
+
}, /*#__PURE__*/React__default.createElement(TextInputComponent, _extends$1({}, inputProps, {
|
|
25295
25326
|
label: label,
|
|
25296
25327
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
25297
25328
|
suffix: "arrow-down",
|
|
@@ -25325,7 +25356,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
25325
25356
|
}
|
|
25326
25357
|
},
|
|
25327
25358
|
supportedOrientations: supportedOrientations
|
|
25328
|
-
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(
|
|
25359
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInputComponent, {
|
|
25329
25360
|
editable: true,
|
|
25330
25361
|
placeholder: "Search",
|
|
25331
25362
|
suffix: "search-outlined",
|
|
@@ -26646,7 +26677,8 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
26646
26677
|
style = _ref.style,
|
|
26647
26678
|
testID = _ref.testID,
|
|
26648
26679
|
_ref$showSuffix = _ref.showSuffix,
|
|
26649
|
-
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix
|
|
26680
|
+
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix,
|
|
26681
|
+
TextInputComponent = _ref.TextInputComponent;
|
|
26650
26682
|
var _useState = useState(false),
|
|
26651
26683
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26652
26684
|
open = _useState2[0],
|
|
@@ -26654,6 +26686,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
26654
26686
|
var is12Hour = displayFormat.includes('hh');
|
|
26655
26687
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
26656
26688
|
var pickerInitValue = value || new Date();
|
|
26689
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
26657
26690
|
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
26658
26691
|
onPress: function onPress() {
|
|
26659
26692
|
return setOpen(true);
|
|
@@ -26662,7 +26695,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
26662
26695
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
26663
26696
|
pointerEvents: "none",
|
|
26664
26697
|
testID: "timePickerInputAndroid"
|
|
26665
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
26698
|
+
}, /*#__PURE__*/React__default.createElement(InputComponent, {
|
|
26666
26699
|
label: label,
|
|
26667
26700
|
value: displayValue,
|
|
26668
26701
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -26691,7 +26724,8 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
26691
26724
|
var StyledPickerWrapper = index$b(View)(function (_ref) {
|
|
26692
26725
|
var theme = _ref.theme;
|
|
26693
26726
|
return {
|
|
26694
|
-
height: theme.__hd__.timePicker.sizes.height
|
|
26727
|
+
height: theme.__hd__.timePicker.sizes.height,
|
|
26728
|
+
alignItems: 'center'
|
|
26695
26729
|
};
|
|
26696
26730
|
});
|
|
26697
26731
|
|
|
@@ -26713,7 +26747,8 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
26713
26747
|
_ref$showSuffix = _ref.showSuffix,
|
|
26714
26748
|
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix,
|
|
26715
26749
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
26716
|
-
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta
|
|
26750
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
26751
|
+
TextInputComponent = _ref.TextInputComponent;
|
|
26717
26752
|
var _useState = useState(value || new Date()),
|
|
26718
26753
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26719
26754
|
selectingDate = _useState2[0],
|
|
@@ -26725,6 +26760,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
26725
26760
|
var is12Hour = displayFormat.includes('hh');
|
|
26726
26761
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
26727
26762
|
var theme = useTheme();
|
|
26763
|
+
var InputComponent = TextInputComponent || TextInput;
|
|
26728
26764
|
useEffect(function () {
|
|
26729
26765
|
setSelectingDate(value || new Date());
|
|
26730
26766
|
}, [value]);
|
|
@@ -26736,7 +26772,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
26736
26772
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
26737
26773
|
pointerEvents: "none",
|
|
26738
26774
|
testID: "timePickerInputIOS"
|
|
26739
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
26775
|
+
}, /*#__PURE__*/React__default.createElement(InputComponent, {
|
|
26740
26776
|
label: label,
|
|
26741
26777
|
value: displayValue,
|
|
26742
26778
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -26792,6 +26828,8 @@ var TimePicker = function TimePicker(props) {
|
|
|
26792
26828
|
return /*#__PURE__*/React__default.createElement(TimePickerAndroid, props);
|
|
26793
26829
|
};
|
|
26794
26830
|
|
|
26831
|
+
var PublicTimePicker = TimePicker;
|
|
26832
|
+
|
|
26795
26833
|
var ToolbarWrapper = index$b(View)(function (_ref) {
|
|
26796
26834
|
var theme = _ref.theme;
|
|
26797
26835
|
return {
|
|
@@ -46755,4 +46793,4 @@ var FloatingIsland = function FloatingIsland(_ref2) {
|
|
|
46755
46793
|
}));
|
|
46756
46794
|
};
|
|
46757
46795
|
|
|
46758
|
-
export { Accordion, Alert, AppCue, Attachment, index$a as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$9 as Carousel, Chart, Checkbox, Chip, Collapse, ContentNavigator, index$8 as DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List$1 as List, LocaleProvider, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, ehJobsSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, getTheme, jobsSystemPalette, scale, index$b as styled, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette$1 as swagLightSystemPalette, swagSystemPalette$2 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|
|
46796
|
+
export { Accordion, Alert, AppCue, Attachment, index$a as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar$1 as Calendar, Card$1 as Card, index$9 as Carousel, Chart, Checkbox, Chip, Collapse, ContentNavigator, index$8 as DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List$1 as List, LocaleProvider, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, PublicTimePicker as TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, ehJobsSystemPalette, ehWorkDarkSystemPalette, ehWorkSystemPalette, getTheme, jobsSystemPalette, scale, index$b as styled, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette$1 as swagLightSystemPalette, swagSystemPalette$2 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|