@hero-design/rn 8.128.1 → 8.128.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/es/index.js +135 -238
- package/lib/index.js +135 -238
- package/package.json +8 -1
- package/src/components/DatePicker/DatePicker.tsx +5 -24
- package/src/components/DatePicker/DatePickerAndroid.tsx +8 -17
- package/src/components/DatePicker/DatePickerCalendar.tsx +8 -17
- package/src/components/DatePicker/DatePickerIOS.tsx +8 -17
- package/src/components/DatePicker/StyledDatePicker.tsx +2 -19
- package/src/components/DatePicker/types.ts +0 -17
- package/src/components/Select/MultiSelect/index.tsx +9 -23
- package/src/components/Select/SingleSelect/index.tsx +9 -23
- package/src/components/Select/StyledSelect.tsx +2 -25
- package/src/components/Select/index.tsx +2 -8
- package/src/components/Select/types.ts +0 -4
- package/src/components/TimePicker/StyledTimePicker.tsx +2 -19
- package/src/components/TimePicker/TimePicker.tsx +2 -2
- package/src/components/TimePicker/TimePickerAndroid.tsx +6 -15
- package/src/components/TimePicker/TimePickerIOS.tsx +7 -18
- package/src/components/TimePicker/types.ts +0 -17
- package/types/components/Checkbox/StyledInlineCheckBox.d.ts +1 -1
- package/types/components/Checkbox/utils.d.ts +1 -1
- package/types/components/DatePicker/DatePicker.d.ts +2 -2
- 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/StyledDatePicker.d.ts +1 -8
- package/types/components/DatePicker/types.d.ts +0 -15
- package/types/components/Select/MultiSelect/index.d.ts +1 -6
- package/types/components/Select/SingleSelect/index.d.ts +1 -6
- package/types/components/Select/StyledSelect.d.ts +1 -8
- package/types/components/Select/index.d.ts +2 -2
- package/types/components/Select/types.d.ts +0 -4
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/TimePicker/StyledTimePicker.d.ts +1 -8
- package/types/components/TimePicker/TimePicker.d.ts +2 -2
- package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -2
- package/types/components/TimePicker/TimePickerIOS.d.ts +2 -2
- package/types/components/TimePicker/types.d.ts +0 -15
- package/src/components/DatePicker/index.internal.tsx +0 -10
- package/src/components/Select/index.internal.tsx +0 -26
- package/src/components/TimePicker/index.internal.tsx +0 -9
- package/src/index.internal.ts +0 -26
- package/src/types.internal.ts +0 -28
- package/types/components/DatePicker/index.internal.d.ts +0 -7
- package/types/components/Select/index.internal.d.ts +0 -21
- package/types/components/TimePicker/index.internal.d.ts +0 -5
- package/types/index.internal.d.ts +0 -19
- package/types/types.internal.d.ts +0 -18
package/lib/index.js
CHANGED
|
@@ -8215,7 +8215,7 @@ var StyledText$4 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8215
8215
|
});
|
|
8216
8216
|
});
|
|
8217
8217
|
|
|
8218
|
-
var _excluded$
|
|
8218
|
+
var _excluded$O = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
8219
8219
|
/**
|
|
8220
8220
|
* @deprecated 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.
|
|
8221
8221
|
*/
|
|
@@ -8231,7 +8231,7 @@ var Text = function Text(_ref) {
|
|
|
8231
8231
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8232
8232
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8233
8233
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8234
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8234
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
8235
8235
|
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.');
|
|
8236
8236
|
return /*#__PURE__*/React__namespace.default.createElement(StyledText$4, _extends$1({}, nativeProps, {
|
|
8237
8237
|
themeFontSize: fontSize,
|
|
@@ -8284,10 +8284,10 @@ var pickAccessibilityProps = function pickAccessibilityProps(props) {
|
|
|
8284
8284
|
}, {});
|
|
8285
8285
|
};
|
|
8286
8286
|
|
|
8287
|
-
var _excluded$
|
|
8287
|
+
var _excluded$N = ["children"];
|
|
8288
8288
|
var GradientText = function GradientText(_ref) {
|
|
8289
8289
|
var children = _ref.children,
|
|
8290
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
8290
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
8291
8291
|
var theme = useTheme();
|
|
8292
8292
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
8293
8293
|
var _useState = React.useState(null),
|
|
@@ -8343,7 +8343,7 @@ var GradientText = function GradientText(_ref) {
|
|
|
8343
8343
|
}, children));
|
|
8344
8344
|
};
|
|
8345
8345
|
|
|
8346
|
-
var _excluded$
|
|
8346
|
+
var _excluded$M = ["children", "fontWeight", "intent", "allowFontScaling", "fontStyle", "style", "testID"];
|
|
8347
8347
|
var Caption = function Caption(_ref) {
|
|
8348
8348
|
var children = _ref.children,
|
|
8349
8349
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -8356,7 +8356,7 @@ var Caption = function Caption(_ref) {
|
|
|
8356
8356
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8357
8357
|
style = _ref.style,
|
|
8358
8358
|
testID = _ref.testID,
|
|
8359
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8359
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
8360
8360
|
var isAi = intent === 'ai';
|
|
8361
8361
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
8362
8362
|
themeFontWeight: fontWeight,
|
|
@@ -8388,7 +8388,7 @@ var StyledLabel$1 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8388
8388
|
};
|
|
8389
8389
|
});
|
|
8390
8390
|
|
|
8391
|
-
var _excluded$
|
|
8391
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "fontStyle", "fontWeight", "style", "testID"];
|
|
8392
8392
|
var Label = function Label(_ref) {
|
|
8393
8393
|
var children = _ref.children,
|
|
8394
8394
|
_ref$intent = _ref.intent,
|
|
@@ -8401,7 +8401,7 @@ var Label = function Label(_ref) {
|
|
|
8401
8401
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
8402
8402
|
style = _ref.style,
|
|
8403
8403
|
testID = _ref.testID,
|
|
8404
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8404
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
8405
8405
|
var isAi = intent === 'ai';
|
|
8406
8406
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
8407
8407
|
themeIntent: isAi ? 'body' : intent,
|
|
@@ -8432,7 +8432,7 @@ var StyledTitle$1 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8432
8432
|
};
|
|
8433
8433
|
});
|
|
8434
8434
|
|
|
8435
|
-
var _excluded$
|
|
8435
|
+
var _excluded$K = ["children", "intent", "allowFontScaling", "level", "typeface", "fontStyle", "style", "testID"];
|
|
8436
8436
|
var Title = function Title(_ref) {
|
|
8437
8437
|
var children = _ref.children,
|
|
8438
8438
|
_ref$intent = _ref.intent,
|
|
@@ -8447,7 +8447,7 @@ var Title = function Title(_ref) {
|
|
|
8447
8447
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8448
8448
|
style = _ref.style,
|
|
8449
8449
|
testID = _ref.testID,
|
|
8450
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8450
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
8451
8451
|
var isAi = intent === 'ai';
|
|
8452
8452
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
8453
8453
|
themeLevel: level,
|
|
@@ -8497,7 +8497,7 @@ var StyledBody$2 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8497
8497
|
};
|
|
8498
8498
|
});
|
|
8499
8499
|
|
|
8500
|
-
var _excluded$
|
|
8500
|
+
var _excluded$J = ["children", "intent", "allowFontScaling", "typeface", "variant", "fontStyle", "style", "testID"];
|
|
8501
8501
|
var Body = function Body(_ref) {
|
|
8502
8502
|
var children = _ref.children,
|
|
8503
8503
|
_ref$intent = _ref.intent,
|
|
@@ -8512,7 +8512,7 @@ var Body = function Body(_ref) {
|
|
|
8512
8512
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8513
8513
|
style = _ref.style,
|
|
8514
8514
|
testID = _ref.testID,
|
|
8515
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8515
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
8516
8516
|
var isAi = intent === 'ai';
|
|
8517
8517
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
8518
8518
|
themeTypeface: typeface,
|
|
@@ -9176,22 +9176,22 @@ var SpinWrapper = function SpinWrapper(_ref) {
|
|
|
9176
9176
|
}, children);
|
|
9177
9177
|
};
|
|
9178
9178
|
|
|
9179
|
-
var _excluded$
|
|
9179
|
+
var _excluded$I = ["style"];
|
|
9180
9180
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
9181
9181
|
var style = _ref.style,
|
|
9182
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
9182
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$I);
|
|
9183
9183
|
return /*#__PURE__*/React__namespace.default.createElement(SpinWrapper, {
|
|
9184
9184
|
style: style
|
|
9185
9185
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledHeroIcon, otherProps));
|
|
9186
9186
|
};
|
|
9187
9187
|
|
|
9188
|
-
var _excluded$
|
|
9188
|
+
var _excluded$H = ["name", "themeSize", "testID", "style"];
|
|
9189
9189
|
var GradientIcon = function GradientIcon(_ref) {
|
|
9190
9190
|
var name = _ref.name,
|
|
9191
9191
|
themeSize = _ref.themeSize,
|
|
9192
9192
|
testID = _ref.testID,
|
|
9193
9193
|
style = _ref.style,
|
|
9194
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
9194
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$H);
|
|
9195
9195
|
var theme = useTheme();
|
|
9196
9196
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
9197
9197
|
var size = theme.__hd__.icon.sizes[themeSize];
|
|
@@ -9319,7 +9319,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
9319
9319
|
}, content));
|
|
9320
9320
|
};
|
|
9321
9321
|
|
|
9322
|
-
var _excluded$
|
|
9322
|
+
var _excluded$G = ["key"];
|
|
9323
9323
|
var Accordion = function Accordion(_ref) {
|
|
9324
9324
|
var items = _ref.items,
|
|
9325
9325
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -9342,7 +9342,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
9342
9342
|
accessible: accessible
|
|
9343
9343
|
}, items.map(function (_ref2, index) {
|
|
9344
9344
|
var key = _ref2.key,
|
|
9345
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
9345
|
+
props = _objectWithoutProperties(_ref2, _excluded$G);
|
|
9346
9346
|
var open = _activeItemKey === key;
|
|
9347
9347
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
9348
9348
|
key: key
|
|
@@ -10178,7 +10178,7 @@ var borderWidths = {
|
|
|
10178
10178
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
10179
10179
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
10180
10180
|
|
|
10181
|
-
var _excluded$
|
|
10181
|
+
var _excluded$F = ["theme"];
|
|
10182
10182
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
10183
10183
|
var propConfig = config[key];
|
|
10184
10184
|
var propValue = props[key];
|
|
@@ -10205,18 +10205,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
10205
10205
|
var configKeys = Object.keys(config);
|
|
10206
10206
|
var StyledBox = index$c(reactNative.View)(function (_ref5) {
|
|
10207
10207
|
var theme = _ref5.theme,
|
|
10208
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
10208
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$F);
|
|
10209
10209
|
var styleProps = pick(configKeys, otherProps);
|
|
10210
10210
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
10211
10211
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
10212
10212
|
});
|
|
10213
10213
|
|
|
10214
|
-
var _excluded$
|
|
10214
|
+
var _excluded$E = ["children", "style", "testID"];
|
|
10215
10215
|
var Box = function Box(_ref) {
|
|
10216
10216
|
var children = _ref.children,
|
|
10217
10217
|
style = _ref.style,
|
|
10218
10218
|
testID = _ref.testID,
|
|
10219
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
10219
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
10220
10220
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
10221
10221
|
style: style,
|
|
10222
10222
|
testID: testID
|
|
@@ -10487,7 +10487,7 @@ var StyledIcon$4 = index$c(Icon)(function (_ref6) {
|
|
|
10487
10487
|
};
|
|
10488
10488
|
});
|
|
10489
10489
|
|
|
10490
|
-
var _excluded$
|
|
10490
|
+
var _excluded$D = ["children", "visible", "intent", "style", "testID"];
|
|
10491
10491
|
var Status$1 = function Status(_ref) {
|
|
10492
10492
|
var children = _ref.children,
|
|
10493
10493
|
_ref$visible = _ref.visible,
|
|
@@ -10496,7 +10496,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10496
10496
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
10497
10497
|
style = _ref.style,
|
|
10498
10498
|
testID = _ref.testID,
|
|
10499
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10499
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
10500
10500
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
10501
10501
|
opacity = _React$useRef.current;
|
|
10502
10502
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -10532,7 +10532,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10532
10532
|
|
|
10533
10533
|
var DEFAULT_MAX_NUMBER = 99;
|
|
10534
10534
|
|
|
10535
|
-
var _excluded$
|
|
10535
|
+
var _excluded$C = ["children", "visible", "style", "max", "testID", "content"];
|
|
10536
10536
|
var Status = function Status(_ref) {
|
|
10537
10537
|
var children = _ref.children,
|
|
10538
10538
|
_ref$visible = _ref.visible,
|
|
@@ -10542,7 +10542,7 @@ var Status = function Status(_ref) {
|
|
|
10542
10542
|
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
10543
10543
|
testID = _ref.testID,
|
|
10544
10544
|
originalContent = _ref.content,
|
|
10545
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10545
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
10546
10546
|
var content = React.useMemo(function () {
|
|
10547
10547
|
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
10548
10548
|
}, [originalContent, max]);
|
|
@@ -10554,7 +10554,7 @@ var Status = function Status(_ref) {
|
|
|
10554
10554
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCountText, null, content)));
|
|
10555
10555
|
};
|
|
10556
10556
|
|
|
10557
|
-
var _excluded$
|
|
10557
|
+
var _excluded$B = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
10558
10558
|
var getPaddingState = function getPaddingState(content) {
|
|
10559
10559
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
10560
10560
|
};
|
|
@@ -10573,7 +10573,7 @@ var Badge = function Badge(_ref) {
|
|
|
10573
10573
|
_ref$variant = _ref.variant,
|
|
10574
10574
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
10575
10575
|
icon = _ref.icon,
|
|
10576
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10576
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
10577
10577
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
10578
10578
|
opacity = _React$useRef.current;
|
|
10579
10579
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -10691,7 +10691,7 @@ var StyledBottomBarText = index$c(Typography.Label)(function (_ref4) {
|
|
|
10691
10691
|
};
|
|
10692
10692
|
});
|
|
10693
10693
|
|
|
10694
|
-
var _excluded$
|
|
10694
|
+
var _excluded$A = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
10695
10695
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
10696
10696
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
10697
10697
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -10702,7 +10702,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
10702
10702
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
10703
10703
|
selectedTabKey = _ref.selectedTabKey,
|
|
10704
10704
|
tabs = _ref.tabs,
|
|
10705
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10705
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
10706
10706
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
10707
10707
|
/**
|
|
10708
10708
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -10794,13 +10794,13 @@ var StyledDivider = index$c(reactNative.View)(function (_ref) {
|
|
|
10794
10794
|
}, horizontalMargin), verticalMargin);
|
|
10795
10795
|
});
|
|
10796
10796
|
|
|
10797
|
-
var _excluded$
|
|
10797
|
+
var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10798
10798
|
var Divider = function Divider(_ref) {
|
|
10799
10799
|
var marginHorizontal = _ref.marginHorizontal,
|
|
10800
10800
|
marginVertical = _ref.marginVertical,
|
|
10801
10801
|
style = _ref.style,
|
|
10802
10802
|
testID = _ref.testID,
|
|
10803
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10803
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
10804
10804
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10805
10805
|
themeMarginHorizontal: marginHorizontal,
|
|
10806
10806
|
themeMarginVertical: marginVertical,
|
|
@@ -10931,7 +10931,7 @@ var StyledLoadingDot = index$c(reactNative.View)(function (_ref) {
|
|
|
10931
10931
|
}, themeStyling());
|
|
10932
10932
|
});
|
|
10933
10933
|
|
|
10934
|
-
var _excluded$
|
|
10934
|
+
var _excluded$y = ["count", "size", "testID", "themeVariant"];
|
|
10935
10935
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
10936
10936
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
10937
10937
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -10963,7 +10963,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
10963
10963
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
10964
10964
|
testID = _ref2.testID,
|
|
10965
10965
|
themeVariant = _ref2.themeVariant,
|
|
10966
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
10966
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$y);
|
|
10967
10967
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
10968
10968
|
React.useEffect(function () {
|
|
10969
10969
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -11595,11 +11595,11 @@ var Header = function Header(_ref) {
|
|
|
11595
11595
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
11596
11596
|
};
|
|
11597
11597
|
|
|
11598
|
-
var _excluded$
|
|
11598
|
+
var _excluded$x = ["scrollEventThrottle"];
|
|
11599
11599
|
var BottomSheetScrollView = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11600
11600
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
11601
11601
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
11602
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11602
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
11603
11603
|
var _useContext = React.useContext(BottomSheetContext),
|
|
11604
11604
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
11605
11605
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -14721,12 +14721,12 @@ var Indicator = index$c(reactNative.View)(function (_ref3) {
|
|
|
14721
14721
|
};
|
|
14722
14722
|
});
|
|
14723
14723
|
|
|
14724
|
-
var _excluded$
|
|
14724
|
+
var _excluded$w = ["intent", "children"];
|
|
14725
14725
|
var DataCard = function DataCard(_ref) {
|
|
14726
14726
|
var _ref$intent = _ref.intent,
|
|
14727
14727
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
14728
14728
|
children = _ref.children,
|
|
14729
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14729
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
14730
14730
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
14731
14731
|
themeIntent: intent,
|
|
14732
14732
|
testID: "data-card-indicator"
|
|
@@ -14745,13 +14745,13 @@ var StyledCard$1 = index$c(reactNative.View)(function (_ref) {
|
|
|
14745
14745
|
});
|
|
14746
14746
|
});
|
|
14747
14747
|
|
|
14748
|
-
var _excluded$
|
|
14748
|
+
var _excluded$v = ["intent", "children", "variant"];
|
|
14749
14749
|
var Card = function Card(_ref) {
|
|
14750
14750
|
var intent = _ref.intent,
|
|
14751
14751
|
children = _ref.children,
|
|
14752
14752
|
_ref$variant = _ref.variant,
|
|
14753
14753
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
14754
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14754
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
14755
14755
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
14756
14756
|
themeIntent: intent,
|
|
14757
14757
|
themeVariant: variant
|
|
@@ -15018,7 +15018,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15018
15018
|
});
|
|
15019
15019
|
CardCarousel.displayName = 'CardCarousel';
|
|
15020
15020
|
|
|
15021
|
-
var _excluded$
|
|
15021
|
+
var _excluded$u = ["rounded", "size", "testID", "style"];
|
|
15022
15022
|
/**
|
|
15023
15023
|
* @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
|
|
15024
15024
|
*/
|
|
@@ -15029,7 +15029,7 @@ var Image = function Image(_ref) {
|
|
|
15029
15029
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
15030
15030
|
testID = _ref.testID,
|
|
15031
15031
|
style = _ref.style,
|
|
15032
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15032
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
15033
15033
|
useDeprecation('Image component will soon be deprecated. Please use `Image` from `react-native` instead.');
|
|
15034
15034
|
var theme = useTheme();
|
|
15035
15035
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
@@ -15164,7 +15164,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
15164
15164
|
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
15165
15165
|
};
|
|
15166
15166
|
|
|
15167
|
-
var _excluded$
|
|
15167
|
+
var _excluded$t = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
15168
15168
|
function useStateFromProp(initialValue) {
|
|
15169
15169
|
var _useState = React.useState(initialValue),
|
|
15170
15170
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15191,7 +15191,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
15191
15191
|
testID = _ref.testID,
|
|
15192
15192
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
15193
15193
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
15194
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15194
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
15195
15195
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$1);
|
|
15196
15196
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
15197
15197
|
var theme = useTheme();
|
|
@@ -20462,7 +20462,7 @@ var StyledChipIcon = index$c(Icon)(function (_ref2) {
|
|
|
20462
20462
|
};
|
|
20463
20463
|
});
|
|
20464
20464
|
|
|
20465
|
-
var _excluded$
|
|
20465
|
+
var _excluded$s = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon", "accessible", "onBlur", "onFocus"];
|
|
20466
20466
|
var getChipLabel = function getChipLabel(label) {
|
|
20467
20467
|
if (typeof label === 'string') {
|
|
20468
20468
|
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
@@ -20498,7 +20498,7 @@ var Chip = function Chip(_ref) {
|
|
|
20498
20498
|
accessible = _ref.accessible,
|
|
20499
20499
|
onBlur = _ref.onBlur,
|
|
20500
20500
|
onFocus = _ref.onFocus,
|
|
20501
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
20501
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
20502
20502
|
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
20503
20503
|
var renamedVariant = getChipVariant(variant);
|
|
20504
20504
|
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
@@ -20889,7 +20889,7 @@ var StyledErrorAndMaxLengthContainer = index$c(reactNative.View)(function (_ref1
|
|
|
20889
20889
|
};
|
|
20890
20890
|
});
|
|
20891
20891
|
|
|
20892
|
-
var _excluded$
|
|
20892
|
+
var _excluded$r = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
20893
20893
|
var getState$3 = function getState(_ref) {
|
|
20894
20894
|
var disabled = _ref.disabled,
|
|
20895
20895
|
error = _ref.error,
|
|
@@ -21005,7 +21005,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
21005
21005
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
21006
21006
|
_ref8$variant = _ref8.variant,
|
|
21007
21007
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
21008
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
21008
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$r);
|
|
21009
21009
|
var displayText = getDisplayText(value, defaultValue);
|
|
21010
21010
|
var isEmptyValue = displayText.length === 0;
|
|
21011
21011
|
var _React$useState = React__namespace.default.useState(0),
|
|
@@ -21364,30 +21364,6 @@ var useFormatDate = function useFormatDate(_ref) {
|
|
|
21364
21364
|
};
|
|
21365
21365
|
};
|
|
21366
21366
|
|
|
21367
|
-
var StyledPickerWrapper$1 = index$c(reactNative.View)(function (_ref) {
|
|
21368
|
-
var theme = _ref.theme;
|
|
21369
|
-
return {
|
|
21370
|
-
height: theme.__hd__.datePicker.sizes.height,
|
|
21371
|
-
alignItems: 'center'
|
|
21372
|
-
};
|
|
21373
|
-
});
|
|
21374
|
-
var getZIndexByState$2 = function getZIndexByState(_ref2) {
|
|
21375
|
-
var themeHasError = _ref2.themeHasError;
|
|
21376
|
-
if (themeHasError) {
|
|
21377
|
-
return 1;
|
|
21378
|
-
}
|
|
21379
|
-
return 0;
|
|
21380
|
-
};
|
|
21381
|
-
var StyledTouchableOpacity$2 = index$c(reactNative.TouchableOpacity)(function (_ref3) {
|
|
21382
|
-
var themeGroupStyleEnabled = _ref3.themeGroupStyleEnabled,
|
|
21383
|
-
themeHasError = _ref3.themeHasError;
|
|
21384
|
-
return _objectSpread2({}, themeGroupStyleEnabled && {
|
|
21385
|
-
zIndex: getZIndexByState$2({
|
|
21386
|
-
themeHasError: themeHasError
|
|
21387
|
-
})
|
|
21388
|
-
});
|
|
21389
|
-
});
|
|
21390
|
-
|
|
21391
21367
|
var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
21392
21368
|
var value = _ref.value,
|
|
21393
21369
|
minDate = _ref.minDate,
|
|
@@ -21406,11 +21382,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
21406
21382
|
_ref$variant = _ref.variant,
|
|
21407
21383
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21408
21384
|
renderSelectedValue = _ref.renderSelectedValue,
|
|
21409
|
-
locale = _ref.locale
|
|
21410
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
21411
|
-
inputProps = _ref.inputProps,
|
|
21412
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
21413
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
21385
|
+
locale = _ref.locale;
|
|
21414
21386
|
var _useState = React.useState(false),
|
|
21415
21387
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21416
21388
|
open = _useState2[0],
|
|
@@ -21428,20 +21400,17 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
21428
21400
|
onChange: onChange,
|
|
21429
21401
|
value: value
|
|
21430
21402
|
});
|
|
21431
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
21432
21403
|
var onPress = React.useCallback(function () {
|
|
21433
21404
|
setOpen(true);
|
|
21434
21405
|
}, []);
|
|
21435
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
21406
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
21436
21407
|
onPress: onPress,
|
|
21437
21408
|
disabled: disabled,
|
|
21438
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
21439
|
-
themeHasError: !!error,
|
|
21440
21409
|
testID: "date-picker-android-touchable-opacity"
|
|
21441
21410
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
21442
21411
|
pointerEvents: "none",
|
|
21443
21412
|
testID: "datePickerInputAndroid"
|
|
21444
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
21413
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
21445
21414
|
label: label,
|
|
21446
21415
|
value: displayValue,
|
|
21447
21416
|
suffix: "calendar-dates-outlined",
|
|
@@ -21452,13 +21421,13 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
21452
21421
|
helpText: helpText,
|
|
21453
21422
|
style: style,
|
|
21454
21423
|
testID: testID,
|
|
21455
|
-
renderInputValue: renderSelectedValue !== undefined && !!value ? function (
|
|
21424
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (inputProps) {
|
|
21456
21425
|
return renderSelectedValue({
|
|
21457
21426
|
date: value,
|
|
21458
21427
|
formattedDateString: displayValue
|
|
21459
|
-
},
|
|
21428
|
+
}, inputProps);
|
|
21460
21429
|
} : undefined
|
|
21461
|
-
}))
|
|
21430
|
+
})), /*#__PURE__*/React__namespace.default.createElement(AndroidDatePickerDialog, {
|
|
21462
21431
|
open: open,
|
|
21463
21432
|
onClose: function onClose() {
|
|
21464
21433
|
return setOpen(false);
|
|
@@ -21536,11 +21505,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21536
21505
|
_ref2$supportedOrient = _ref2.supportedOrientations,
|
|
21537
21506
|
supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient,
|
|
21538
21507
|
renderSelectedValue = _ref2.renderSelectedValue,
|
|
21539
|
-
locale = _ref2.locale
|
|
21540
|
-
TextInputComponent = _ref2.TextInputComponent,
|
|
21541
|
-
inputProps = _ref2.inputProps,
|
|
21542
|
-
_ref2$groupStyleEnabl = _ref2.groupStyleEnabled,
|
|
21543
|
-
groupStyleEnabled = _ref2$groupStyleEnabl === void 0 ? false : _ref2$groupStyleEnabl;
|
|
21508
|
+
locale = _ref2.locale;
|
|
21544
21509
|
var _useState5 = React.useState(false),
|
|
21545
21510
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
21546
21511
|
open = _useState6[0],
|
|
@@ -21566,20 +21531,17 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21566
21531
|
onChange: onChange,
|
|
21567
21532
|
value: value
|
|
21568
21533
|
});
|
|
21569
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
21570
21534
|
var onPress = React.useCallback(function () {
|
|
21571
21535
|
setOpen(true);
|
|
21572
21536
|
}, []);
|
|
21573
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
21537
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
21574
21538
|
onPress: onPress,
|
|
21575
21539
|
disabled: disabled,
|
|
21576
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
21577
|
-
themeHasError: !!error,
|
|
21578
21540
|
testID: "date-picker-calendar-touchable-opacity"
|
|
21579
21541
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
21580
21542
|
pointerEvents: "none",
|
|
21581
21543
|
testID: "datePickerCalendar"
|
|
21582
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
21544
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
21583
21545
|
label: label,
|
|
21584
21546
|
value: displayValue,
|
|
21585
21547
|
suffix: "calendar-dates-outlined",
|
|
@@ -21590,13 +21552,13 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21590
21552
|
helpText: helpText,
|
|
21591
21553
|
testID: testID,
|
|
21592
21554
|
style: style,
|
|
21593
|
-
renderInputValue: renderSelectedValue !== undefined && !!value ? function (
|
|
21555
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (inputProps) {
|
|
21594
21556
|
return renderSelectedValue({
|
|
21595
21557
|
date: value,
|
|
21596
21558
|
formattedDateString: displayValue
|
|
21597
|
-
},
|
|
21559
|
+
}, inputProps);
|
|
21598
21560
|
} : undefined
|
|
21599
|
-
}))
|
|
21561
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
21600
21562
|
open: open,
|
|
21601
21563
|
onRequestClose: function onRequestClose() {
|
|
21602
21564
|
return setOpen(false);
|
|
@@ -21626,6 +21588,14 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21626
21588
|
}))));
|
|
21627
21589
|
};
|
|
21628
21590
|
|
|
21591
|
+
var StyledPickerWrapper$1 = index$c(reactNative.View)(function (_ref) {
|
|
21592
|
+
var theme = _ref.theme;
|
|
21593
|
+
return {
|
|
21594
|
+
height: theme.__hd__.datePicker.sizes.height,
|
|
21595
|
+
alignItems: 'center'
|
|
21596
|
+
};
|
|
21597
|
+
});
|
|
21598
|
+
|
|
21629
21599
|
var IOSDatePickerDialog = function IOSDatePickerDialog(_ref) {
|
|
21630
21600
|
var label = _ref.label,
|
|
21631
21601
|
open = _ref.open,
|
|
@@ -21718,11 +21688,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21718
21688
|
_ref$variant = _ref.variant,
|
|
21719
21689
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21720
21690
|
locale = _ref.locale,
|
|
21721
|
-
renderSelectedValue = _ref.renderSelectedValue
|
|
21722
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
21723
|
-
inputProps = _ref.inputProps,
|
|
21724
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
21725
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
21691
|
+
renderSelectedValue = _ref.renderSelectedValue;
|
|
21726
21692
|
var _useState = React.useState(false),
|
|
21727
21693
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21728
21694
|
open = _useState2[0],
|
|
@@ -21742,20 +21708,17 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21742
21708
|
onChange: onChange,
|
|
21743
21709
|
value: value
|
|
21744
21710
|
});
|
|
21745
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
21746
21711
|
var onPress = React.useCallback(function () {
|
|
21747
21712
|
setOpen(true);
|
|
21748
21713
|
}, []);
|
|
21749
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
21714
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
21750
21715
|
onPress: onPress,
|
|
21751
21716
|
disabled: disabled,
|
|
21752
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
21753
|
-
themeHasError: !!error,
|
|
21754
21717
|
testID: "date-picker-ios-touchable-opacity"
|
|
21755
21718
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
21756
21719
|
pointerEvents: "none",
|
|
21757
21720
|
testID: "datePickerInputIOS"
|
|
21758
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
21721
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
21759
21722
|
label: label,
|
|
21760
21723
|
value: displayValue,
|
|
21761
21724
|
suffix: "calendar-dates-outlined",
|
|
@@ -21766,13 +21729,13 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21766
21729
|
helpText: helpText,
|
|
21767
21730
|
testID: testID,
|
|
21768
21731
|
style: style,
|
|
21769
|
-
renderInputValue: renderSelectedValue !== undefined && !!value ? function (
|
|
21732
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (inputProps) {
|
|
21770
21733
|
return renderSelectedValue({
|
|
21771
21734
|
date: value,
|
|
21772
21735
|
formattedDateString: displayValue
|
|
21773
|
-
},
|
|
21736
|
+
}, inputProps);
|
|
21774
21737
|
} : undefined
|
|
21775
|
-
}))
|
|
21738
|
+
})), /*#__PURE__*/React__namespace.default.createElement(IOSDatePickerDialog, {
|
|
21776
21739
|
value: value,
|
|
21777
21740
|
onChange: onChange,
|
|
21778
21741
|
open: open,
|
|
@@ -21789,27 +21752,21 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21789
21752
|
}));
|
|
21790
21753
|
};
|
|
21791
21754
|
|
|
21792
|
-
var _excluded$
|
|
21755
|
+
var _excluded$q = ["variant"];
|
|
21793
21756
|
var DatePicker = function DatePicker(_ref) {
|
|
21794
21757
|
var _ref$variant = _ref.variant,
|
|
21795
21758
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21796
|
-
|
|
21797
|
-
TextInputComponent = _ref$TextInputCompone === void 0 ? TextInput : _ref$TextInputCompone,
|
|
21798
|
-
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
21759
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
21799
21760
|
if (variant === 'calendar') {
|
|
21800
|
-
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar,
|
|
21801
|
-
TextInputComponent: TextInputComponent
|
|
21802
|
-
}));
|
|
21761
|
+
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props);
|
|
21803
21762
|
}
|
|
21804
21763
|
if (reactNative.Platform.OS === 'ios') {
|
|
21805
21764
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerIOS, _extends$1({}, props, {
|
|
21806
|
-
variant: variant
|
|
21807
|
-
TextInputComponent: TextInputComponent
|
|
21765
|
+
variant: variant
|
|
21808
21766
|
}));
|
|
21809
21767
|
}
|
|
21810
21768
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerAndroid, _extends$1({}, props, {
|
|
21811
|
-
variant: variant
|
|
21812
|
-
TextInputComponent: TextInputComponent
|
|
21769
|
+
variant: variant
|
|
21813
21770
|
}));
|
|
21814
21771
|
};
|
|
21815
21772
|
|
|
@@ -23854,7 +23811,7 @@ var StyledErrorDescription = index$c(Typography.Body)(function (_ref9) {
|
|
|
23854
23811
|
};
|
|
23855
23812
|
});
|
|
23856
23813
|
|
|
23857
|
-
var _excluded$
|
|
23814
|
+
var _excluded$p = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
|
|
23858
23815
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
23859
23816
|
var renderImage$1 = function renderImage(image) {
|
|
23860
23817
|
if (/*#__PURE__*/React.isValidElement(image)) {
|
|
@@ -23895,7 +23852,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
23895
23852
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
23896
23853
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
23897
23854
|
icon = _ref2.icon,
|
|
23898
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
23855
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$p);
|
|
23899
23856
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
23900
23857
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
23901
23858
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -24124,13 +24081,13 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
24124
24081
|
})), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
|
|
24125
24082
|
};
|
|
24126
24083
|
|
|
24127
|
-
var _excluded$
|
|
24084
|
+
var _excluded$o = ["active"];
|
|
24128
24085
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(/*#__PURE__*/React__namespace.default.forwardRef(function (props, _) {
|
|
24129
24086
|
return /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, props);
|
|
24130
24087
|
}));
|
|
24131
24088
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
24132
24089
|
var active = _ref.active,
|
|
24133
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
24090
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
24134
24091
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
24135
24092
|
React.useEffect(function () {
|
|
24136
24093
|
var animation = reactNative.Animated.spring(rotateAnimation.current, {
|
|
@@ -24536,11 +24493,11 @@ var StyledFAB = index$c(FABWithTitleStyle)(function (_ref) {
|
|
|
24536
24493
|
};
|
|
24537
24494
|
});
|
|
24538
24495
|
|
|
24539
|
-
var _excluded$
|
|
24496
|
+
var _excluded$n = ["fabConfig", "onCancel"];
|
|
24540
24497
|
var Pair = function Pair(_ref) {
|
|
24541
24498
|
var fabConfig = _ref.fabConfig,
|
|
24542
24499
|
onCancel = _ref.onCancel,
|
|
24543
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
24500
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
24544
24501
|
var icon = fabConfig.icon,
|
|
24545
24502
|
title = fabConfig.title,
|
|
24546
24503
|
onPress = fabConfig.onPress,
|
|
@@ -25275,11 +25232,11 @@ var StyledFocusIcon = index$c(Icon)(function (_ref7) {
|
|
|
25275
25232
|
};
|
|
25276
25233
|
});
|
|
25277
25234
|
|
|
25278
|
-
var _excluded$
|
|
25235
|
+
var _excluded$m = ["style", "testID"];
|
|
25279
25236
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
25280
25237
|
var style = _ref.style,
|
|
25281
25238
|
testID = _ref.testID,
|
|
25282
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25239
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
25283
25240
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
25284
25241
|
style: style,
|
|
25285
25242
|
testID: testID
|
|
@@ -25289,7 +25246,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
25289
25246
|
}));
|
|
25290
25247
|
};
|
|
25291
25248
|
|
|
25292
|
-
var _excluded$
|
|
25249
|
+
var _excluded$l = ["style", "testID", "state", "image", "icon"];
|
|
25293
25250
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
25294
25251
|
var iconMap = {
|
|
25295
25252
|
idle: undefined,
|
|
@@ -25305,7 +25262,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
25305
25262
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
25306
25263
|
image = _ref.image,
|
|
25307
25264
|
icon = _ref.icon,
|
|
25308
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25265
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
25309
25266
|
var badgeIcon = getBadgeIconName(state);
|
|
25310
25267
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
25311
25268
|
style: style,
|
|
@@ -25626,7 +25583,7 @@ var THEME_INTENT_MAP = {
|
|
|
25626
25583
|
'archived-inverted': 'archivedInverted'
|
|
25627
25584
|
};
|
|
25628
25585
|
|
|
25629
|
-
var _excluded$
|
|
25586
|
+
var _excluded$k = ["value", "renderValue", "intent", "style", "testID"];
|
|
25630
25587
|
var defaultRenderValue = function defaultRenderValue(value) {
|
|
25631
25588
|
return "".concat(value, "%");
|
|
25632
25589
|
};
|
|
@@ -25639,7 +25596,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
|
|
|
25639
25596
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25640
25597
|
style = _ref.style,
|
|
25641
25598
|
testID = _ref.testID,
|
|
25642
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25599
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
25643
25600
|
var theme = useTheme$1();
|
|
25644
25601
|
var size = theme.__hd__.progress.sizes.circleDiameter;
|
|
25645
25602
|
var strokeWidth = theme.__hd__.progress.sizes.circleCompletenessHeight;
|
|
@@ -25709,14 +25666,14 @@ var StyledInner = index$c(reactNative.Animated.View)(function (_ref2) {
|
|
|
25709
25666
|
};
|
|
25710
25667
|
});
|
|
25711
25668
|
|
|
25712
|
-
var _excluded$
|
|
25669
|
+
var _excluded$j = ["value", "intent", "style", "testID"];
|
|
25713
25670
|
var ProgressBar = function ProgressBar(_ref) {
|
|
25714
25671
|
var value = _ref.value,
|
|
25715
25672
|
_ref$intent = _ref.intent,
|
|
25716
25673
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25717
25674
|
style = _ref.style,
|
|
25718
25675
|
testID = _ref.testID,
|
|
25719
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25676
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
25720
25677
|
var _useState = React.useState(0),
|
|
25721
25678
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25722
25679
|
width = _useState2[0],
|
|
@@ -25806,7 +25763,7 @@ var StyledSingleStep = index$c(Box)(function (_ref3) {
|
|
|
25806
25763
|
};
|
|
25807
25764
|
});
|
|
25808
25765
|
|
|
25809
|
-
var _excluded$
|
|
25766
|
+
var _excluded$i = ["steps", "current", "onLayout"];
|
|
25810
25767
|
var getStepState = function getStepState(current, index) {
|
|
25811
25768
|
if (index < current) {
|
|
25812
25769
|
return 'complete';
|
|
@@ -25820,7 +25777,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
25820
25777
|
var steps = _ref.steps,
|
|
25821
25778
|
current = _ref.current,
|
|
25822
25779
|
onLayout = _ref.onLayout,
|
|
25823
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
25780
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
25824
25781
|
var theme = useTheme$1();
|
|
25825
25782
|
var _React$useState = React__namespace.default.useState(0),
|
|
25826
25783
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -26117,7 +26074,7 @@ var StyledEmptyText = index$c(Typography.Caption)(function (_ref4) {
|
|
|
26117
26074
|
};
|
|
26118
26075
|
});
|
|
26119
26076
|
|
|
26120
|
-
var _excluded$
|
|
26077
|
+
var _excluded$h = ["data", "headerConfig", "emptyText", "legendConfig", "styleConfig", "style", "testID", "collapsable"];
|
|
26121
26078
|
var ProgressSegmentedBar = function ProgressSegmentedBar(_ref) {
|
|
26122
26079
|
var data = _ref.data,
|
|
26123
26080
|
headerConfig = _ref.headerConfig,
|
|
@@ -26127,7 +26084,7 @@ var ProgressSegmentedBar = function ProgressSegmentedBar(_ref) {
|
|
|
26127
26084
|
style = _ref.style,
|
|
26128
26085
|
testID = _ref.testID,
|
|
26129
26086
|
collapsable = _ref.collapsable,
|
|
26130
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
26087
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
26131
26088
|
var values = React__namespace.default.useMemo(function () {
|
|
26132
26089
|
return data.map(function (s) {
|
|
26133
26090
|
return s.data;
|
|
@@ -26497,14 +26454,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
26497
26454
|
}, dotProps))));
|
|
26498
26455
|
};
|
|
26499
26456
|
|
|
26500
|
-
var _excluded$
|
|
26457
|
+
var _excluded$g = ["testID", "size", "intent"];
|
|
26501
26458
|
var Spinner = function Spinner(_ref) {
|
|
26502
26459
|
var testID = _ref.testID,
|
|
26503
26460
|
_ref$size = _ref.size,
|
|
26504
26461
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
26505
26462
|
_ref$intent = _ref.intent,
|
|
26506
26463
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
26507
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
26464
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
26508
26465
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
|
|
26509
26466
|
testID: testID
|
|
26510
26467
|
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
|
|
@@ -26537,7 +26494,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
26537
26494
|
}, children);
|
|
26538
26495
|
};
|
|
26539
26496
|
|
|
26540
|
-
var _excluded$
|
|
26497
|
+
var _excluded$f = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
26541
26498
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
26542
26499
|
var trans = progress.interpolate({
|
|
26543
26500
|
inputRange: [0, 1],
|
|
@@ -26566,7 +26523,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
26566
26523
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
26567
26524
|
_ref$variant = _ref.variant,
|
|
26568
26525
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
26569
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
26526
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
26570
26527
|
var theme = useTheme();
|
|
26571
26528
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
26572
26529
|
width = _useWindowDimensions.width;
|
|
@@ -26894,24 +26851,8 @@ var StyledSectionList = index$c(reactNative.SectionList)(function (_ref4) {
|
|
|
26894
26851
|
paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
|
|
26895
26852
|
};
|
|
26896
26853
|
});
|
|
26897
|
-
var getZIndexByState$1 = function getZIndexByState(_ref5) {
|
|
26898
|
-
var themeHasError = _ref5.themeHasError;
|
|
26899
|
-
if (themeHasError) {
|
|
26900
|
-
return 1;
|
|
26901
|
-
}
|
|
26902
|
-
return 0;
|
|
26903
|
-
};
|
|
26904
|
-
var StyledTouchableOpacity$1 = index$c(reactNative.TouchableOpacity)(function (_ref6) {
|
|
26905
|
-
var themeGroupStyleEnabled = _ref6.themeGroupStyleEnabled,
|
|
26906
|
-
themeHasError = _ref6.themeHasError;
|
|
26907
|
-
return _objectSpread2({}, themeGroupStyleEnabled && {
|
|
26908
|
-
zIndex: getZIndexByState$1({
|
|
26909
|
-
themeHasError: themeHasError
|
|
26910
|
-
})
|
|
26911
|
-
});
|
|
26912
|
-
});
|
|
26913
26854
|
|
|
26914
|
-
var _excluded$
|
|
26855
|
+
var _excluded$e = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
26915
26856
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
26916
26857
|
var keyExtractor = _ref.keyExtractor,
|
|
26917
26858
|
loading = _ref.loading,
|
|
@@ -26920,7 +26861,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
26920
26861
|
sections = _ref.sections,
|
|
26921
26862
|
renderItem = _ref.renderItem,
|
|
26922
26863
|
sectionListRef = _ref.sectionListRef,
|
|
26923
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26864
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
26924
26865
|
var theme = useTheme$1();
|
|
26925
26866
|
var _useState = React.useState(false),
|
|
26926
26867
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -27004,7 +26945,7 @@ var isOptionSelected = function isOptionSelected(value, option) {
|
|
|
27004
26945
|
});
|
|
27005
26946
|
};
|
|
27006
26947
|
|
|
27007
|
-
var _excluded$
|
|
26948
|
+
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
27008
26949
|
var OptionList$1 = function OptionList(_ref) {
|
|
27009
26950
|
var keyExtractor = _ref.keyExtractor,
|
|
27010
26951
|
loading = _ref.loading,
|
|
@@ -27015,7 +26956,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
27015
26956
|
renderOption = _ref.renderOption,
|
|
27016
26957
|
value = _ref.value,
|
|
27017
26958
|
sectionListRef = _ref.sectionListRef,
|
|
27018
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26959
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
27019
26960
|
var renderItem = function renderItem(info) {
|
|
27020
26961
|
var item = info.item;
|
|
27021
26962
|
var selected = isOptionSelected(value, item);
|
|
@@ -27050,7 +26991,6 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
27050
26991
|
}, rest));
|
|
27051
26992
|
};
|
|
27052
26993
|
|
|
27053
|
-
var _excluded$e = ["footerLabel", "label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig", "groupStyleEnabled"];
|
|
27054
26994
|
function MultiSelect(_ref) {
|
|
27055
26995
|
var footerLabel = _ref.footerLabel,
|
|
27056
26996
|
label = _ref.label,
|
|
@@ -27077,10 +27017,7 @@ function MultiSelect(_ref) {
|
|
|
27077
27017
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
27078
27018
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
27079
27019
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
27080
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
27081
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
27082
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
27083
|
-
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
27020
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi;
|
|
27084
27021
|
var _useKeyboard = useKeyboard(),
|
|
27085
27022
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
27086
27023
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -27103,7 +27040,6 @@ function MultiSelect(_ref) {
|
|
|
27103
27040
|
var rawValue = value.length > 0 ? value.join(', ') : '';
|
|
27104
27041
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
27105
27042
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
27106
|
-
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
27107
27043
|
var onPress = React.useCallback(function () {
|
|
27108
27044
|
setOpen(true);
|
|
27109
27045
|
}, []);
|
|
@@ -27116,14 +27052,12 @@ function MultiSelect(_ref) {
|
|
|
27116
27052
|
}, [open, value]);
|
|
27117
27053
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
27118
27054
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
27119
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
27055
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
27120
27056
|
onPress: onPress,
|
|
27121
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
27122
|
-
themeHasError: !!error,
|
|
27123
27057
|
testID: "multi-select-touchable-opacity"
|
|
27124
27058
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
27125
27059
|
pointerEvents: "none"
|
|
27126
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
27060
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
27127
27061
|
label: label,
|
|
27128
27062
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
27129
27063
|
suffix: selectSuffix,
|
|
@@ -27135,8 +27069,8 @@ function MultiSelect(_ref) {
|
|
|
27135
27069
|
pointerEvents: "none",
|
|
27136
27070
|
style: style,
|
|
27137
27071
|
testID: testID,
|
|
27138
|
-
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (
|
|
27139
|
-
return renderSelectedValue(value,
|
|
27072
|
+
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (nativeInputProps) {
|
|
27073
|
+
return renderSelectedValue(value, nativeInputProps);
|
|
27140
27074
|
} : undefined
|
|
27141
27075
|
}))))), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
27142
27076
|
variant: bottomSheetVariant || 'fixed',
|
|
@@ -27173,7 +27107,7 @@ function MultiSelect(_ref) {
|
|
|
27173
27107
|
}
|
|
27174
27108
|
},
|
|
27175
27109
|
supportedOrientations: supportedOrientations
|
|
27176
|
-
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(
|
|
27110
|
+
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
27177
27111
|
editable: true,
|
|
27178
27112
|
placeholder: "Search",
|
|
27179
27113
|
suffix: "search-outlined",
|
|
@@ -27224,7 +27158,7 @@ var StyledOptionList = index$c(BaseOptionList)(function (_ref) {
|
|
|
27224
27158
|
};
|
|
27225
27159
|
});
|
|
27226
27160
|
|
|
27227
|
-
var _excluded$
|
|
27161
|
+
var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
27228
27162
|
var OptionList = function OptionList(_ref) {
|
|
27229
27163
|
var keyExtractor = _ref.keyExtractor,
|
|
27230
27164
|
loading = _ref.loading,
|
|
@@ -27235,7 +27169,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
27235
27169
|
renderOption = _ref.renderOption,
|
|
27236
27170
|
value = _ref.value,
|
|
27237
27171
|
sectionListRef = _ref.sectionListRef,
|
|
27238
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27172
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
27239
27173
|
var renderItem = function renderItem(info) {
|
|
27240
27174
|
var item = info.item;
|
|
27241
27175
|
var selected = _deepCompareValue(item.value, value);
|
|
@@ -27271,7 +27205,6 @@ var OptionList = function OptionList(_ref) {
|
|
|
27271
27205
|
}, rest));
|
|
27272
27206
|
};
|
|
27273
27207
|
|
|
27274
|
-
var _excluded$c = ["label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig", "groupStyleEnabled"];
|
|
27275
27208
|
var SingleSelect = function SingleSelect(_ref) {
|
|
27276
27209
|
var _flatOptions$find;
|
|
27277
27210
|
var label = _ref.label,
|
|
@@ -27298,10 +27231,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27298
27231
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
27299
27232
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
27300
27233
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
27301
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
27302
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
27303
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
27304
|
-
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
27234
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi;
|
|
27305
27235
|
var _useKeyboard = useKeyboard(),
|
|
27306
27236
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
27307
27237
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -27318,7 +27248,6 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27318
27248
|
var rawValue = value ? String(value) : undefined;
|
|
27319
27249
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
27320
27250
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
27321
|
-
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
27322
27251
|
var onPress = React.useCallback(function () {
|
|
27323
27252
|
setOpen(true);
|
|
27324
27253
|
}, []);
|
|
@@ -27330,14 +27259,12 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27330
27259
|
}, [editable, disabled, open]);
|
|
27331
27260
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
27332
27261
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
27333
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
27262
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
27334
27263
|
onPress: onPress,
|
|
27335
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
27336
|
-
themeHasError: !!error,
|
|
27337
27264
|
testID: "single-select-touchable-opacity"
|
|
27338
27265
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
27339
27266
|
pointerEvents: "none"
|
|
27340
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
27267
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
27341
27268
|
label: label,
|
|
27342
27269
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
27343
27270
|
suffix: selectSuffix,
|
|
@@ -27349,8 +27276,8 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27349
27276
|
pointerEvents: "none",
|
|
27350
27277
|
style: style,
|
|
27351
27278
|
testID: testID,
|
|
27352
|
-
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (
|
|
27353
|
-
return renderSelectedValue(value,
|
|
27279
|
+
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (nativeInputProps) {
|
|
27280
|
+
return renderSelectedValue(value, nativeInputProps);
|
|
27354
27281
|
} : undefined
|
|
27355
27282
|
}))))), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
27356
27283
|
variant: bottomSheetVariant || 'fixed',
|
|
@@ -27371,7 +27298,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27371
27298
|
}
|
|
27372
27299
|
},
|
|
27373
27300
|
supportedOrientations: supportedOrientations
|
|
27374
|
-
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(
|
|
27301
|
+
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
27375
27302
|
editable: true,
|
|
27376
27303
|
placeholder: "Search",
|
|
27377
27304
|
suffix: "search-outlined",
|
|
@@ -28744,30 +28671,6 @@ var Tag = function Tag(_ref) {
|
|
|
28744
28671
|
}));
|
|
28745
28672
|
};
|
|
28746
28673
|
|
|
28747
|
-
var StyledPickerWrapper = index$c(reactNative.View)(function (_ref) {
|
|
28748
|
-
var theme = _ref.theme;
|
|
28749
|
-
return {
|
|
28750
|
-
height: theme.__hd__.timePicker.sizes.height,
|
|
28751
|
-
alignItems: 'center'
|
|
28752
|
-
};
|
|
28753
|
-
});
|
|
28754
|
-
var getZIndexByState = function getZIndexByState(_ref2) {
|
|
28755
|
-
var themeHasError = _ref2.themeHasError;
|
|
28756
|
-
if (themeHasError) {
|
|
28757
|
-
return 1;
|
|
28758
|
-
}
|
|
28759
|
-
return 0;
|
|
28760
|
-
};
|
|
28761
|
-
var StyledTouchableOpacity = index$c(reactNative.TouchableOpacity)(function (_ref3) {
|
|
28762
|
-
var themeGroupStyleEnabled = _ref3.themeGroupStyleEnabled,
|
|
28763
|
-
themeHasError = _ref3.themeHasError;
|
|
28764
|
-
return _objectSpread2({}, themeGroupStyleEnabled && {
|
|
28765
|
-
zIndex: getZIndexByState({
|
|
28766
|
-
themeHasError: themeHasError
|
|
28767
|
-
})
|
|
28768
|
-
});
|
|
28769
|
-
});
|
|
28770
|
-
|
|
28771
28674
|
var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
28772
28675
|
var value = _ref.value,
|
|
28773
28676
|
label = _ref.label,
|
|
@@ -28783,11 +28686,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28783
28686
|
style = _ref.style,
|
|
28784
28687
|
testID = _ref.testID,
|
|
28785
28688
|
_ref$showSuffix = _ref.showSuffix,
|
|
28786
|
-
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix
|
|
28787
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
28788
|
-
inputProps = _ref.inputProps,
|
|
28789
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
28790
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
28689
|
+
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix;
|
|
28791
28690
|
var _useState = React.useState(false),
|
|
28792
28691
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28793
28692
|
open = _useState2[0],
|
|
@@ -28795,20 +28694,17 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28795
28694
|
var is12Hour = displayFormat.includes('hh');
|
|
28796
28695
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
28797
28696
|
var pickerInitValue = value || new Date();
|
|
28798
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
28799
28697
|
var onPress = React.useCallback(function () {
|
|
28800
28698
|
setOpen(true);
|
|
28801
28699
|
}, []);
|
|
28802
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
28700
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
28803
28701
|
onPress: onPress,
|
|
28804
28702
|
disabled: disabled,
|
|
28805
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
28806
|
-
themeHasError: !!error,
|
|
28807
28703
|
testID: "time-picker-android-touchable-opacity"
|
|
28808
28704
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
28809
28705
|
pointerEvents: "none",
|
|
28810
28706
|
testID: "timePickerInputAndroid"
|
|
28811
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
28707
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
28812
28708
|
label: label,
|
|
28813
28709
|
value: displayValue,
|
|
28814
28710
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -28819,7 +28715,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28819
28715
|
helpText: helpText,
|
|
28820
28716
|
style: style,
|
|
28821
28717
|
testID: testID
|
|
28822
|
-
}))
|
|
28718
|
+
})), open ? /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
28823
28719
|
testID: "timePickerAndroid",
|
|
28824
28720
|
mode: "time",
|
|
28825
28721
|
value: pickerInitValue,
|
|
@@ -28834,6 +28730,14 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28834
28730
|
}) : null);
|
|
28835
28731
|
};
|
|
28836
28732
|
|
|
28733
|
+
var StyledPickerWrapper = index$c(reactNative.View)(function (_ref) {
|
|
28734
|
+
var theme = _ref.theme;
|
|
28735
|
+
return {
|
|
28736
|
+
height: theme.__hd__.timePicker.sizes.height,
|
|
28737
|
+
alignItems: 'center'
|
|
28738
|
+
};
|
|
28739
|
+
});
|
|
28740
|
+
|
|
28837
28741
|
var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
28838
28742
|
var value = _ref.value,
|
|
28839
28743
|
label = _ref.label,
|
|
@@ -28852,11 +28756,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28852
28756
|
_ref$showSuffix = _ref.showSuffix,
|
|
28853
28757
|
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix,
|
|
28854
28758
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
28855
|
-
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta
|
|
28856
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
28857
|
-
inputProps = _ref.inputProps,
|
|
28858
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
28859
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
28759
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
28860
28760
|
var _useState = React.useState(value || new Date()),
|
|
28861
28761
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28862
28762
|
selectingDate = _useState2[0],
|
|
@@ -28872,23 +28772,20 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28872
28772
|
// For 12-hour format: use en-US locale to ensure 12-hour display regardless of device settings
|
|
28873
28773
|
// For 24-hour format: use en-GB for consistent 24-hour display
|
|
28874
28774
|
var pickerLocale = is12Hour ? 'en-US' : 'en-GB';
|
|
28875
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
28876
28775
|
React.useEffect(function () {
|
|
28877
28776
|
setSelectingDate(value || new Date());
|
|
28878
28777
|
}, [value]);
|
|
28879
28778
|
var onPress = React.useCallback(function () {
|
|
28880
28779
|
setOpen(true);
|
|
28881
28780
|
}, []);
|
|
28882
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
28781
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
28883
28782
|
onPress: onPress,
|
|
28884
28783
|
disabled: disabled,
|
|
28885
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
28886
|
-
themeHasError: !!error,
|
|
28887
28784
|
testID: "time-picker-ios-touchable-opacity"
|
|
28888
28785
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
28889
28786
|
pointerEvents: "none",
|
|
28890
28787
|
testID: "timePickerInputIOS"
|
|
28891
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
28788
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
28892
28789
|
label: label,
|
|
28893
28790
|
value: displayValue,
|
|
28894
28791
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -28899,7 +28796,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28899
28796
|
helpText: helpText,
|
|
28900
28797
|
testID: testID,
|
|
28901
28798
|
style: style
|
|
28902
|
-
}))
|
|
28799
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
28903
28800
|
open: open,
|
|
28904
28801
|
onRequestClose: function onRequestClose() {
|
|
28905
28802
|
return setOpen(false);
|