@hero-design/rn 8.128.0 → 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 +21 -0
- package/CLAUDE.md +1 -1
- package/es/index.js +196 -288
- package/lib/index.js +196 -288
- 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/FAB/FAB.tsx +37 -5
- package/src/components/FAB/Pair/StyledFAB.tsx +2 -2
- package/src/components/FAB/Pair/index.tsx +6 -0
- package/src/components/FAB/StyledFAB.tsx +3 -1
- 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/StatusScreens/Error/StyledError.tsx +0 -6
- package/src/components/StatusScreens/Error/index.tsx +2 -6
- package/src/components/StatusScreens/Success/StyledSuccess.tsx +0 -6
- package/src/components/StatusScreens/Success/index.tsx +2 -2
- 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/src/theme/components/fab.ts +12 -11
- package/src/theme/global/colors/ehJobs.ts +1 -0
- package/src/theme/global/colors/ehWork.ts +1 -1
- 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/FAB/FAB.d.ts +5 -1
- package/types/components/FAB/Pair/StyledFAB.d.ts +3 -1
- package/types/components/FAB/StyledFAB.d.ts +1 -0
- 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/StatusScreens/Error/StyledError.d.ts +1 -5
- package/types/components/StatusScreens/Success/StyledSuccess.d.ts +1 -5
- 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
|
@@ -5008,7 +5008,7 @@ var swagLightGlobalPalette = _objectSpread2(_objectSpread2({}, globalPalette$1),
|
|
|
5008
5008
|
});
|
|
5009
5009
|
|
|
5010
5010
|
var ehWorkBrandSystemPalette = {
|
|
5011
|
-
primary: '#
|
|
5011
|
+
primary: '#7622d7',
|
|
5012
5012
|
onPrimary: '#fdfbff',
|
|
5013
5013
|
secondary: '#b382fd',
|
|
5014
5014
|
onSecondary: palette$4.white,
|
|
@@ -5037,6 +5037,7 @@ var swagSystemPalette = _objectSpread2(_objectSpread2({}, ehWorkSystemPalette),
|
|
|
5037
5037
|
|
|
5038
5038
|
var ehJobsSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
|
|
5039
5039
|
name: 'ehJobs',
|
|
5040
|
+
primary: '#7622d7',
|
|
5040
5041
|
secondary: '#40d1ff',
|
|
5041
5042
|
onSecondary: '#460078',
|
|
5042
5043
|
secondaryHighlightedSurface: '#ecfaff',
|
|
@@ -6403,19 +6404,19 @@ var getErrorTheme = function getErrorTheme(theme) {
|
|
|
6403
6404
|
|
|
6404
6405
|
var getFABTheme = function getFABTheme(theme) {
|
|
6405
6406
|
var colors = {
|
|
6406
|
-
buttonBackground: theme.colors.
|
|
6407
|
-
buttonPressedBackground: theme.colors.
|
|
6408
|
-
buttonActiveBackground: theme.colors.
|
|
6407
|
+
buttonBackground: theme.colors.primary,
|
|
6408
|
+
buttonPressedBackground: theme.colors.primary,
|
|
6409
|
+
buttonActiveBackground: theme.colors.primary,
|
|
6409
6410
|
icon: theme.colors.onDarkGlobalSurface,
|
|
6410
|
-
actionItemBackground: theme.colors.
|
|
6411
|
-
actionItemPressedBackground: theme.colors.
|
|
6411
|
+
actionItemBackground: theme.colors.defaultGlobalSurface,
|
|
6412
|
+
actionItemPressedBackground: theme.colors.defaultGlobalSurface,
|
|
6412
6413
|
backdropBackground: theme.colors.black,
|
|
6413
6414
|
titleText: theme.colors.onDarkGlobalSurface,
|
|
6414
|
-
actionItemText: theme.colors.
|
|
6415
|
+
actionItemText: theme.colors.onDefaultGlobalSurface
|
|
6415
6416
|
};
|
|
6416
6417
|
var sizes = {
|
|
6417
|
-
width: theme.sizes.
|
|
6418
|
-
height: theme.sizes.
|
|
6418
|
+
width: theme.sizes.xxxlarge,
|
|
6419
|
+
height: theme.sizes.xxxlarge,
|
|
6419
6420
|
iconContainerWidth: theme.sizes.large,
|
|
6420
6421
|
iconContainerHeight: theme.sizes.large,
|
|
6421
6422
|
fabPairHeight: theme.sizes.xxxlarge,
|
|
@@ -6423,11 +6424,11 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
6423
6424
|
};
|
|
6424
6425
|
var fonts = {
|
|
6425
6426
|
actionItemText: theme.fonts.neutral.regular,
|
|
6426
|
-
title: theme.fonts.neutral.
|
|
6427
|
+
title: theme.fonts.neutral.regular
|
|
6427
6428
|
};
|
|
6428
6429
|
var fontSizes = {
|
|
6429
6430
|
actionItemText: theme.fontSizes.large,
|
|
6430
|
-
title: theme.fontSizes.
|
|
6431
|
+
title: theme.fontSizes.medium
|
|
6431
6432
|
};
|
|
6432
6433
|
var lineHeights = {
|
|
6433
6434
|
actionItemText: theme.lineHeights.medium,
|
|
@@ -6444,7 +6445,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
6444
6445
|
actionItemTextPaddingLeft: theme.space.xsmall,
|
|
6445
6446
|
buttonMarginTop: theme.space.large,
|
|
6446
6447
|
buttonMarginRight: theme.space.large,
|
|
6447
|
-
containerPadding: theme.space.
|
|
6448
|
+
containerPadding: theme.space.smallMedium,
|
|
6448
6449
|
titleMarginHorizontal: theme.space.small,
|
|
6449
6450
|
fabPairMarginRight: theme.space.small
|
|
6450
6451
|
};
|
|
@@ -8214,7 +8215,7 @@ var StyledText$4 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8214
8215
|
});
|
|
8215
8216
|
});
|
|
8216
8217
|
|
|
8217
|
-
var _excluded$
|
|
8218
|
+
var _excluded$O = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
8218
8219
|
/**
|
|
8219
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.
|
|
8220
8221
|
*/
|
|
@@ -8230,7 +8231,7 @@ var Text = function Text(_ref) {
|
|
|
8230
8231
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8231
8232
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8232
8233
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8233
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8234
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
8234
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.');
|
|
8235
8236
|
return /*#__PURE__*/React__namespace.default.createElement(StyledText$4, _extends$1({}, nativeProps, {
|
|
8236
8237
|
themeFontSize: fontSize,
|
|
@@ -8283,10 +8284,10 @@ var pickAccessibilityProps = function pickAccessibilityProps(props) {
|
|
|
8283
8284
|
}, {});
|
|
8284
8285
|
};
|
|
8285
8286
|
|
|
8286
|
-
var _excluded$
|
|
8287
|
+
var _excluded$N = ["children"];
|
|
8287
8288
|
var GradientText = function GradientText(_ref) {
|
|
8288
8289
|
var children = _ref.children,
|
|
8289
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
8290
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
8290
8291
|
var theme = useTheme();
|
|
8291
8292
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
8292
8293
|
var _useState = React.useState(null),
|
|
@@ -8342,7 +8343,7 @@ var GradientText = function GradientText(_ref) {
|
|
|
8342
8343
|
}, children));
|
|
8343
8344
|
};
|
|
8344
8345
|
|
|
8345
|
-
var _excluded$
|
|
8346
|
+
var _excluded$M = ["children", "fontWeight", "intent", "allowFontScaling", "fontStyle", "style", "testID"];
|
|
8346
8347
|
var Caption = function Caption(_ref) {
|
|
8347
8348
|
var children = _ref.children,
|
|
8348
8349
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -8355,7 +8356,7 @@ var Caption = function Caption(_ref) {
|
|
|
8355
8356
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8356
8357
|
style = _ref.style,
|
|
8357
8358
|
testID = _ref.testID,
|
|
8358
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8359
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
8359
8360
|
var isAi = intent === 'ai';
|
|
8360
8361
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
8361
8362
|
themeFontWeight: fontWeight,
|
|
@@ -8387,7 +8388,7 @@ var StyledLabel$1 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8387
8388
|
};
|
|
8388
8389
|
});
|
|
8389
8390
|
|
|
8390
|
-
var _excluded$
|
|
8391
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "fontStyle", "fontWeight", "style", "testID"];
|
|
8391
8392
|
var Label = function Label(_ref) {
|
|
8392
8393
|
var children = _ref.children,
|
|
8393
8394
|
_ref$intent = _ref.intent,
|
|
@@ -8400,7 +8401,7 @@ var Label = function Label(_ref) {
|
|
|
8400
8401
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
8401
8402
|
style = _ref.style,
|
|
8402
8403
|
testID = _ref.testID,
|
|
8403
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8404
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
8404
8405
|
var isAi = intent === 'ai';
|
|
8405
8406
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
8406
8407
|
themeIntent: isAi ? 'body' : intent,
|
|
@@ -8431,7 +8432,7 @@ var StyledTitle$1 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8431
8432
|
};
|
|
8432
8433
|
});
|
|
8433
8434
|
|
|
8434
|
-
var _excluded$
|
|
8435
|
+
var _excluded$K = ["children", "intent", "allowFontScaling", "level", "typeface", "fontStyle", "style", "testID"];
|
|
8435
8436
|
var Title = function Title(_ref) {
|
|
8436
8437
|
var children = _ref.children,
|
|
8437
8438
|
_ref$intent = _ref.intent,
|
|
@@ -8446,7 +8447,7 @@ var Title = function Title(_ref) {
|
|
|
8446
8447
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8447
8448
|
style = _ref.style,
|
|
8448
8449
|
testID = _ref.testID,
|
|
8449
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8450
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
8450
8451
|
var isAi = intent === 'ai';
|
|
8451
8452
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
8452
8453
|
themeLevel: level,
|
|
@@ -8496,7 +8497,7 @@ var StyledBody$2 = index$c(reactNative.Text)(function (_ref) {
|
|
|
8496
8497
|
};
|
|
8497
8498
|
});
|
|
8498
8499
|
|
|
8499
|
-
var _excluded$
|
|
8500
|
+
var _excluded$J = ["children", "intent", "allowFontScaling", "typeface", "variant", "fontStyle", "style", "testID"];
|
|
8500
8501
|
var Body = function Body(_ref) {
|
|
8501
8502
|
var children = _ref.children,
|
|
8502
8503
|
_ref$intent = _ref.intent,
|
|
@@ -8511,7 +8512,7 @@ var Body = function Body(_ref) {
|
|
|
8511
8512
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8512
8513
|
style = _ref.style,
|
|
8513
8514
|
testID = _ref.testID,
|
|
8514
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8515
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
8515
8516
|
var isAi = intent === 'ai';
|
|
8516
8517
|
var styledText = /*#__PURE__*/React__namespace.default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
8517
8518
|
themeTypeface: typeface,
|
|
@@ -9175,22 +9176,22 @@ var SpinWrapper = function SpinWrapper(_ref) {
|
|
|
9175
9176
|
}, children);
|
|
9176
9177
|
};
|
|
9177
9178
|
|
|
9178
|
-
var _excluded$
|
|
9179
|
+
var _excluded$I = ["style"];
|
|
9179
9180
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
9180
9181
|
var style = _ref.style,
|
|
9181
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
9182
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$I);
|
|
9182
9183
|
return /*#__PURE__*/React__namespace.default.createElement(SpinWrapper, {
|
|
9183
9184
|
style: style
|
|
9184
9185
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledHeroIcon, otherProps));
|
|
9185
9186
|
};
|
|
9186
9187
|
|
|
9187
|
-
var _excluded$
|
|
9188
|
+
var _excluded$H = ["name", "themeSize", "testID", "style"];
|
|
9188
9189
|
var GradientIcon = function GradientIcon(_ref) {
|
|
9189
9190
|
var name = _ref.name,
|
|
9190
9191
|
themeSize = _ref.themeSize,
|
|
9191
9192
|
testID = _ref.testID,
|
|
9192
9193
|
style = _ref.style,
|
|
9193
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
9194
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$H);
|
|
9194
9195
|
var theme = useTheme();
|
|
9195
9196
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
9196
9197
|
var size = theme.__hd__.icon.sizes[themeSize];
|
|
@@ -9318,7 +9319,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
9318
9319
|
}, content));
|
|
9319
9320
|
};
|
|
9320
9321
|
|
|
9321
|
-
var _excluded$
|
|
9322
|
+
var _excluded$G = ["key"];
|
|
9322
9323
|
var Accordion = function Accordion(_ref) {
|
|
9323
9324
|
var items = _ref.items,
|
|
9324
9325
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -9341,7 +9342,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
9341
9342
|
accessible: accessible
|
|
9342
9343
|
}, items.map(function (_ref2, index) {
|
|
9343
9344
|
var key = _ref2.key,
|
|
9344
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
9345
|
+
props = _objectWithoutProperties(_ref2, _excluded$G);
|
|
9345
9346
|
var open = _activeItemKey === key;
|
|
9346
9347
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
9347
9348
|
key: key
|
|
@@ -10177,7 +10178,7 @@ var borderWidths = {
|
|
|
10177
10178
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
10178
10179
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
10179
10180
|
|
|
10180
|
-
var _excluded$
|
|
10181
|
+
var _excluded$F = ["theme"];
|
|
10181
10182
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
10182
10183
|
var propConfig = config[key];
|
|
10183
10184
|
var propValue = props[key];
|
|
@@ -10204,18 +10205,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
10204
10205
|
var configKeys = Object.keys(config);
|
|
10205
10206
|
var StyledBox = index$c(reactNative.View)(function (_ref5) {
|
|
10206
10207
|
var theme = _ref5.theme,
|
|
10207
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
10208
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$F);
|
|
10208
10209
|
var styleProps = pick(configKeys, otherProps);
|
|
10209
10210
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
10210
10211
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
10211
10212
|
});
|
|
10212
10213
|
|
|
10213
|
-
var _excluded$
|
|
10214
|
+
var _excluded$E = ["children", "style", "testID"];
|
|
10214
10215
|
var Box = function Box(_ref) {
|
|
10215
10216
|
var children = _ref.children,
|
|
10216
10217
|
style = _ref.style,
|
|
10217
10218
|
testID = _ref.testID,
|
|
10218
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
10219
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
10219
10220
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
10220
10221
|
style: style,
|
|
10221
10222
|
testID: testID
|
|
@@ -10486,7 +10487,7 @@ var StyledIcon$4 = index$c(Icon)(function (_ref6) {
|
|
|
10486
10487
|
};
|
|
10487
10488
|
});
|
|
10488
10489
|
|
|
10489
|
-
var _excluded$
|
|
10490
|
+
var _excluded$D = ["children", "visible", "intent", "style", "testID"];
|
|
10490
10491
|
var Status$1 = function Status(_ref) {
|
|
10491
10492
|
var children = _ref.children,
|
|
10492
10493
|
_ref$visible = _ref.visible,
|
|
@@ -10495,7 +10496,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10495
10496
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
10496
10497
|
style = _ref.style,
|
|
10497
10498
|
testID = _ref.testID,
|
|
10498
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10499
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
10499
10500
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
10500
10501
|
opacity = _React$useRef.current;
|
|
10501
10502
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -10531,7 +10532,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10531
10532
|
|
|
10532
10533
|
var DEFAULT_MAX_NUMBER = 99;
|
|
10533
10534
|
|
|
10534
|
-
var _excluded$
|
|
10535
|
+
var _excluded$C = ["children", "visible", "style", "max", "testID", "content"];
|
|
10535
10536
|
var Status = function Status(_ref) {
|
|
10536
10537
|
var children = _ref.children,
|
|
10537
10538
|
_ref$visible = _ref.visible,
|
|
@@ -10541,7 +10542,7 @@ var Status = function Status(_ref) {
|
|
|
10541
10542
|
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
10542
10543
|
testID = _ref.testID,
|
|
10543
10544
|
originalContent = _ref.content,
|
|
10544
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10545
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
10545
10546
|
var content = React.useMemo(function () {
|
|
10546
10547
|
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
10547
10548
|
}, [originalContent, max]);
|
|
@@ -10553,7 +10554,7 @@ var Status = function Status(_ref) {
|
|
|
10553
10554
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCountText, null, content)));
|
|
10554
10555
|
};
|
|
10555
10556
|
|
|
10556
|
-
var _excluded$
|
|
10557
|
+
var _excluded$B = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
10557
10558
|
var getPaddingState = function getPaddingState(content) {
|
|
10558
10559
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
10559
10560
|
};
|
|
@@ -10572,7 +10573,7 @@ var Badge = function Badge(_ref) {
|
|
|
10572
10573
|
_ref$variant = _ref.variant,
|
|
10573
10574
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
10574
10575
|
icon = _ref.icon,
|
|
10575
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10576
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
10576
10577
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
10577
10578
|
opacity = _React$useRef.current;
|
|
10578
10579
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -10690,7 +10691,7 @@ var StyledBottomBarText = index$c(Typography.Label)(function (_ref4) {
|
|
|
10690
10691
|
};
|
|
10691
10692
|
});
|
|
10692
10693
|
|
|
10693
|
-
var _excluded$
|
|
10694
|
+
var _excluded$A = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
10694
10695
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
10695
10696
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
10696
10697
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -10701,7 +10702,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
10701
10702
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
10702
10703
|
selectedTabKey = _ref.selectedTabKey,
|
|
10703
10704
|
tabs = _ref.tabs,
|
|
10704
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10705
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
10705
10706
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
10706
10707
|
/**
|
|
10707
10708
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -10793,13 +10794,13 @@ var StyledDivider = index$c(reactNative.View)(function (_ref) {
|
|
|
10793
10794
|
}, horizontalMargin), verticalMargin);
|
|
10794
10795
|
});
|
|
10795
10796
|
|
|
10796
|
-
var _excluded$
|
|
10797
|
+
var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10797
10798
|
var Divider = function Divider(_ref) {
|
|
10798
10799
|
var marginHorizontal = _ref.marginHorizontal,
|
|
10799
10800
|
marginVertical = _ref.marginVertical,
|
|
10800
10801
|
style = _ref.style,
|
|
10801
10802
|
testID = _ref.testID,
|
|
10802
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10803
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
10803
10804
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10804
10805
|
themeMarginHorizontal: marginHorizontal,
|
|
10805
10806
|
themeMarginVertical: marginVertical,
|
|
@@ -10930,7 +10931,7 @@ var StyledLoadingDot = index$c(reactNative.View)(function (_ref) {
|
|
|
10930
10931
|
}, themeStyling());
|
|
10931
10932
|
});
|
|
10932
10933
|
|
|
10933
|
-
var _excluded$
|
|
10934
|
+
var _excluded$y = ["count", "size", "testID", "themeVariant"];
|
|
10934
10935
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
10935
10936
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
10936
10937
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -10962,7 +10963,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
10962
10963
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
10963
10964
|
testID = _ref2.testID,
|
|
10964
10965
|
themeVariant = _ref2.themeVariant,
|
|
10965
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
10966
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$y);
|
|
10966
10967
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
10967
10968
|
React.useEffect(function () {
|
|
10968
10969
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -11594,11 +11595,11 @@ var Header = function Header(_ref) {
|
|
|
11594
11595
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
11595
11596
|
};
|
|
11596
11597
|
|
|
11597
|
-
var _excluded$
|
|
11598
|
+
var _excluded$x = ["scrollEventThrottle"];
|
|
11598
11599
|
var BottomSheetScrollView = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11599
11600
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
11600
11601
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
11601
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11602
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
11602
11603
|
var _useContext = React.useContext(BottomSheetContext),
|
|
11603
11604
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
11604
11605
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -14720,12 +14721,12 @@ var Indicator = index$c(reactNative.View)(function (_ref3) {
|
|
|
14720
14721
|
};
|
|
14721
14722
|
});
|
|
14722
14723
|
|
|
14723
|
-
var _excluded$
|
|
14724
|
+
var _excluded$w = ["intent", "children"];
|
|
14724
14725
|
var DataCard = function DataCard(_ref) {
|
|
14725
14726
|
var _ref$intent = _ref.intent,
|
|
14726
14727
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
14727
14728
|
children = _ref.children,
|
|
14728
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14729
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
14729
14730
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
14730
14731
|
themeIntent: intent,
|
|
14731
14732
|
testID: "data-card-indicator"
|
|
@@ -14744,13 +14745,13 @@ var StyledCard$1 = index$c(reactNative.View)(function (_ref) {
|
|
|
14744
14745
|
});
|
|
14745
14746
|
});
|
|
14746
14747
|
|
|
14747
|
-
var _excluded$
|
|
14748
|
+
var _excluded$v = ["intent", "children", "variant"];
|
|
14748
14749
|
var Card = function Card(_ref) {
|
|
14749
14750
|
var intent = _ref.intent,
|
|
14750
14751
|
children = _ref.children,
|
|
14751
14752
|
_ref$variant = _ref.variant,
|
|
14752
14753
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
14753
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14754
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
14754
14755
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
14755
14756
|
themeIntent: intent,
|
|
14756
14757
|
themeVariant: variant
|
|
@@ -15017,7 +15018,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15017
15018
|
});
|
|
15018
15019
|
CardCarousel.displayName = 'CardCarousel';
|
|
15019
15020
|
|
|
15020
|
-
var _excluded$
|
|
15021
|
+
var _excluded$u = ["rounded", "size", "testID", "style"];
|
|
15021
15022
|
/**
|
|
15022
15023
|
* @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
|
|
15023
15024
|
*/
|
|
@@ -15028,7 +15029,7 @@ var Image = function Image(_ref) {
|
|
|
15028
15029
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
15029
15030
|
testID = _ref.testID,
|
|
15030
15031
|
style = _ref.style,
|
|
15031
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15032
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
15032
15033
|
useDeprecation('Image component will soon be deprecated. Please use `Image` from `react-native` instead.');
|
|
15033
15034
|
var theme = useTheme();
|
|
15034
15035
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
@@ -15163,7 +15164,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
15163
15164
|
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
15164
15165
|
};
|
|
15165
15166
|
|
|
15166
|
-
var _excluded$
|
|
15167
|
+
var _excluded$t = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
15167
15168
|
function useStateFromProp(initialValue) {
|
|
15168
15169
|
var _useState = React.useState(initialValue),
|
|
15169
15170
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15190,7 +15191,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
15190
15191
|
testID = _ref.testID,
|
|
15191
15192
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
15192
15193
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
15193
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15194
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
15194
15195
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$1);
|
|
15195
15196
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
15196
15197
|
var theme = useTheme();
|
|
@@ -20461,7 +20462,7 @@ var StyledChipIcon = index$c(Icon)(function (_ref2) {
|
|
|
20461
20462
|
};
|
|
20462
20463
|
});
|
|
20463
20464
|
|
|
20464
|
-
var _excluded$
|
|
20465
|
+
var _excluded$s = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon", "accessible", "onBlur", "onFocus"];
|
|
20465
20466
|
var getChipLabel = function getChipLabel(label) {
|
|
20466
20467
|
if (typeof label === 'string') {
|
|
20467
20468
|
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
@@ -20497,7 +20498,7 @@ var Chip = function Chip(_ref) {
|
|
|
20497
20498
|
accessible = _ref.accessible,
|
|
20498
20499
|
onBlur = _ref.onBlur,
|
|
20499
20500
|
onFocus = _ref.onFocus,
|
|
20500
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
20501
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
20501
20502
|
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
20502
20503
|
var renamedVariant = getChipVariant(variant);
|
|
20503
20504
|
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
@@ -20888,7 +20889,7 @@ var StyledErrorAndMaxLengthContainer = index$c(reactNative.View)(function (_ref1
|
|
|
20888
20889
|
};
|
|
20889
20890
|
});
|
|
20890
20891
|
|
|
20891
|
-
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"];
|
|
20892
20893
|
var getState$3 = function getState(_ref) {
|
|
20893
20894
|
var disabled = _ref.disabled,
|
|
20894
20895
|
error = _ref.error,
|
|
@@ -21004,7 +21005,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
21004
21005
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
21005
21006
|
_ref8$variant = _ref8.variant,
|
|
21006
21007
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
21007
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
21008
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$r);
|
|
21008
21009
|
var displayText = getDisplayText(value, defaultValue);
|
|
21009
21010
|
var isEmptyValue = displayText.length === 0;
|
|
21010
21011
|
var _React$useState = React__namespace.default.useState(0),
|
|
@@ -21363,30 +21364,6 @@ var useFormatDate = function useFormatDate(_ref) {
|
|
|
21363
21364
|
};
|
|
21364
21365
|
};
|
|
21365
21366
|
|
|
21366
|
-
var StyledPickerWrapper$1 = index$c(reactNative.View)(function (_ref) {
|
|
21367
|
-
var theme = _ref.theme;
|
|
21368
|
-
return {
|
|
21369
|
-
height: theme.__hd__.datePicker.sizes.height,
|
|
21370
|
-
alignItems: 'center'
|
|
21371
|
-
};
|
|
21372
|
-
});
|
|
21373
|
-
var getZIndexByState$2 = function getZIndexByState(_ref2) {
|
|
21374
|
-
var themeHasError = _ref2.themeHasError;
|
|
21375
|
-
if (themeHasError) {
|
|
21376
|
-
return 1;
|
|
21377
|
-
}
|
|
21378
|
-
return 0;
|
|
21379
|
-
};
|
|
21380
|
-
var StyledTouchableOpacity$2 = index$c(reactNative.TouchableOpacity)(function (_ref3) {
|
|
21381
|
-
var themeGroupStyleEnabled = _ref3.themeGroupStyleEnabled,
|
|
21382
|
-
themeHasError = _ref3.themeHasError;
|
|
21383
|
-
return _objectSpread2({}, themeGroupStyleEnabled && {
|
|
21384
|
-
zIndex: getZIndexByState$2({
|
|
21385
|
-
themeHasError: themeHasError
|
|
21386
|
-
})
|
|
21387
|
-
});
|
|
21388
|
-
});
|
|
21389
|
-
|
|
21390
21367
|
var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
21391
21368
|
var value = _ref.value,
|
|
21392
21369
|
minDate = _ref.minDate,
|
|
@@ -21405,11 +21382,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
21405
21382
|
_ref$variant = _ref.variant,
|
|
21406
21383
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21407
21384
|
renderSelectedValue = _ref.renderSelectedValue,
|
|
21408
|
-
locale = _ref.locale
|
|
21409
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
21410
|
-
inputProps = _ref.inputProps,
|
|
21411
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
21412
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
21385
|
+
locale = _ref.locale;
|
|
21413
21386
|
var _useState = React.useState(false),
|
|
21414
21387
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21415
21388
|
open = _useState2[0],
|
|
@@ -21427,20 +21400,17 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
21427
21400
|
onChange: onChange,
|
|
21428
21401
|
value: value
|
|
21429
21402
|
});
|
|
21430
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
21431
21403
|
var onPress = React.useCallback(function () {
|
|
21432
21404
|
setOpen(true);
|
|
21433
21405
|
}, []);
|
|
21434
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
21406
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
21435
21407
|
onPress: onPress,
|
|
21436
21408
|
disabled: disabled,
|
|
21437
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
21438
|
-
themeHasError: !!error,
|
|
21439
21409
|
testID: "date-picker-android-touchable-opacity"
|
|
21440
21410
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
21441
21411
|
pointerEvents: "none",
|
|
21442
21412
|
testID: "datePickerInputAndroid"
|
|
21443
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
21413
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
21444
21414
|
label: label,
|
|
21445
21415
|
value: displayValue,
|
|
21446
21416
|
suffix: "calendar-dates-outlined",
|
|
@@ -21451,13 +21421,13 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
21451
21421
|
helpText: helpText,
|
|
21452
21422
|
style: style,
|
|
21453
21423
|
testID: testID,
|
|
21454
|
-
renderInputValue: renderSelectedValue !== undefined && !!value ? function (
|
|
21424
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (inputProps) {
|
|
21455
21425
|
return renderSelectedValue({
|
|
21456
21426
|
date: value,
|
|
21457
21427
|
formattedDateString: displayValue
|
|
21458
|
-
},
|
|
21428
|
+
}, inputProps);
|
|
21459
21429
|
} : undefined
|
|
21460
|
-
}))
|
|
21430
|
+
})), /*#__PURE__*/React__namespace.default.createElement(AndroidDatePickerDialog, {
|
|
21461
21431
|
open: open,
|
|
21462
21432
|
onClose: function onClose() {
|
|
21463
21433
|
return setOpen(false);
|
|
@@ -21535,11 +21505,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21535
21505
|
_ref2$supportedOrient = _ref2.supportedOrientations,
|
|
21536
21506
|
supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient,
|
|
21537
21507
|
renderSelectedValue = _ref2.renderSelectedValue,
|
|
21538
|
-
locale = _ref2.locale
|
|
21539
|
-
TextInputComponent = _ref2.TextInputComponent,
|
|
21540
|
-
inputProps = _ref2.inputProps,
|
|
21541
|
-
_ref2$groupStyleEnabl = _ref2.groupStyleEnabled,
|
|
21542
|
-
groupStyleEnabled = _ref2$groupStyleEnabl === void 0 ? false : _ref2$groupStyleEnabl;
|
|
21508
|
+
locale = _ref2.locale;
|
|
21543
21509
|
var _useState5 = React.useState(false),
|
|
21544
21510
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
21545
21511
|
open = _useState6[0],
|
|
@@ -21565,20 +21531,17 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21565
21531
|
onChange: onChange,
|
|
21566
21532
|
value: value
|
|
21567
21533
|
});
|
|
21568
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
21569
21534
|
var onPress = React.useCallback(function () {
|
|
21570
21535
|
setOpen(true);
|
|
21571
21536
|
}, []);
|
|
21572
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
21537
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
21573
21538
|
onPress: onPress,
|
|
21574
21539
|
disabled: disabled,
|
|
21575
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
21576
|
-
themeHasError: !!error,
|
|
21577
21540
|
testID: "date-picker-calendar-touchable-opacity"
|
|
21578
21541
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
21579
21542
|
pointerEvents: "none",
|
|
21580
21543
|
testID: "datePickerCalendar"
|
|
21581
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
21544
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
21582
21545
|
label: label,
|
|
21583
21546
|
value: displayValue,
|
|
21584
21547
|
suffix: "calendar-dates-outlined",
|
|
@@ -21589,13 +21552,13 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21589
21552
|
helpText: helpText,
|
|
21590
21553
|
testID: testID,
|
|
21591
21554
|
style: style,
|
|
21592
|
-
renderInputValue: renderSelectedValue !== undefined && !!value ? function (
|
|
21555
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (inputProps) {
|
|
21593
21556
|
return renderSelectedValue({
|
|
21594
21557
|
date: value,
|
|
21595
21558
|
formattedDateString: displayValue
|
|
21596
|
-
},
|
|
21559
|
+
}, inputProps);
|
|
21597
21560
|
} : undefined
|
|
21598
|
-
}))
|
|
21561
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
21599
21562
|
open: open,
|
|
21600
21563
|
onRequestClose: function onRequestClose() {
|
|
21601
21564
|
return setOpen(false);
|
|
@@ -21625,6 +21588,14 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21625
21588
|
}))));
|
|
21626
21589
|
};
|
|
21627
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
|
+
|
|
21628
21599
|
var IOSDatePickerDialog = function IOSDatePickerDialog(_ref) {
|
|
21629
21600
|
var label = _ref.label,
|
|
21630
21601
|
open = _ref.open,
|
|
@@ -21717,11 +21688,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21717
21688
|
_ref$variant = _ref.variant,
|
|
21718
21689
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21719
21690
|
locale = _ref.locale,
|
|
21720
|
-
renderSelectedValue = _ref.renderSelectedValue
|
|
21721
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
21722
|
-
inputProps = _ref.inputProps,
|
|
21723
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
21724
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
21691
|
+
renderSelectedValue = _ref.renderSelectedValue;
|
|
21725
21692
|
var _useState = React.useState(false),
|
|
21726
21693
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21727
21694
|
open = _useState2[0],
|
|
@@ -21741,20 +21708,17 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21741
21708
|
onChange: onChange,
|
|
21742
21709
|
value: value
|
|
21743
21710
|
});
|
|
21744
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
21745
21711
|
var onPress = React.useCallback(function () {
|
|
21746
21712
|
setOpen(true);
|
|
21747
21713
|
}, []);
|
|
21748
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
21714
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
21749
21715
|
onPress: onPress,
|
|
21750
21716
|
disabled: disabled,
|
|
21751
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
21752
|
-
themeHasError: !!error,
|
|
21753
21717
|
testID: "date-picker-ios-touchable-opacity"
|
|
21754
21718
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
21755
21719
|
pointerEvents: "none",
|
|
21756
21720
|
testID: "datePickerInputIOS"
|
|
21757
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
21721
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
21758
21722
|
label: label,
|
|
21759
21723
|
value: displayValue,
|
|
21760
21724
|
suffix: "calendar-dates-outlined",
|
|
@@ -21765,13 +21729,13 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21765
21729
|
helpText: helpText,
|
|
21766
21730
|
testID: testID,
|
|
21767
21731
|
style: style,
|
|
21768
|
-
renderInputValue: renderSelectedValue !== undefined && !!value ? function (
|
|
21732
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (inputProps) {
|
|
21769
21733
|
return renderSelectedValue({
|
|
21770
21734
|
date: value,
|
|
21771
21735
|
formattedDateString: displayValue
|
|
21772
|
-
},
|
|
21736
|
+
}, inputProps);
|
|
21773
21737
|
} : undefined
|
|
21774
|
-
}))
|
|
21738
|
+
})), /*#__PURE__*/React__namespace.default.createElement(IOSDatePickerDialog, {
|
|
21775
21739
|
value: value,
|
|
21776
21740
|
onChange: onChange,
|
|
21777
21741
|
open: open,
|
|
@@ -21788,27 +21752,21 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21788
21752
|
}));
|
|
21789
21753
|
};
|
|
21790
21754
|
|
|
21791
|
-
var _excluded$
|
|
21755
|
+
var _excluded$q = ["variant"];
|
|
21792
21756
|
var DatePicker = function DatePicker(_ref) {
|
|
21793
21757
|
var _ref$variant = _ref.variant,
|
|
21794
21758
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21795
|
-
|
|
21796
|
-
TextInputComponent = _ref$TextInputCompone === void 0 ? TextInput : _ref$TextInputCompone,
|
|
21797
|
-
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
21759
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
21798
21760
|
if (variant === 'calendar') {
|
|
21799
|
-
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar,
|
|
21800
|
-
TextInputComponent: TextInputComponent
|
|
21801
|
-
}));
|
|
21761
|
+
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props);
|
|
21802
21762
|
}
|
|
21803
21763
|
if (reactNative.Platform.OS === 'ios') {
|
|
21804
21764
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerIOS, _extends$1({}, props, {
|
|
21805
|
-
variant: variant
|
|
21806
|
-
TextInputComponent: TextInputComponent
|
|
21765
|
+
variant: variant
|
|
21807
21766
|
}));
|
|
21808
21767
|
}
|
|
21809
21768
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerAndroid, _extends$1({}, props, {
|
|
21810
|
-
variant: variant
|
|
21811
|
-
TextInputComponent: TextInputComponent
|
|
21769
|
+
variant: variant
|
|
21812
21770
|
}));
|
|
21813
21771
|
};
|
|
21814
21772
|
|
|
@@ -23804,21 +23762,14 @@ var StyledErrorButtonContainer = index$c(reactNative.View)(function (_ref3) {
|
|
|
23804
23762
|
paddingVertical: theme.__hd__.error.space.button.wrapperVerticalPadding
|
|
23805
23763
|
};
|
|
23806
23764
|
});
|
|
23807
|
-
var
|
|
23765
|
+
var StyledErrorButtonSecondary = index$c(CompoundButton)(function (_ref4) {
|
|
23808
23766
|
var theme = _ref4.theme;
|
|
23809
23767
|
return {
|
|
23810
|
-
|
|
23768
|
+
marginTop: theme.__hd__.error.space.button.margin
|
|
23811
23769
|
};
|
|
23812
23770
|
});
|
|
23813
|
-
var
|
|
23771
|
+
var StyledErrorImageContainer = index$c(reactNative.View)(function (_ref5) {
|
|
23814
23772
|
var theme = _ref5.theme;
|
|
23815
|
-
return {
|
|
23816
|
-
marginTop: theme.__hd__.error.space.button.margin,
|
|
23817
|
-
padding: theme.__hd__.error.space.button.padding
|
|
23818
|
-
};
|
|
23819
|
-
});
|
|
23820
|
-
var StyledErrorImageContainer = index$c(reactNative.View)(function (_ref6) {
|
|
23821
|
-
var theme = _ref6.theme;
|
|
23822
23773
|
return {
|
|
23823
23774
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
23824
23775
|
width: theme.__hd__.error.sizes.image,
|
|
@@ -23826,8 +23777,8 @@ var StyledErrorImageContainer = index$c(reactNative.View)(function (_ref6) {
|
|
|
23826
23777
|
alignItems: 'center'
|
|
23827
23778
|
};
|
|
23828
23779
|
});
|
|
23829
|
-
var StyledErrorIconContainer = index$c(reactNative.View)(function (
|
|
23830
|
-
var theme =
|
|
23780
|
+
var StyledErrorIconContainer = index$c(reactNative.View)(function (_ref6) {
|
|
23781
|
+
var theme = _ref6.theme;
|
|
23831
23782
|
return {
|
|
23832
23783
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
23833
23784
|
width: theme.__hd__.error.sizes.icon,
|
|
@@ -23835,8 +23786,8 @@ var StyledErrorIconContainer = index$c(reactNative.View)(function (_ref7) {
|
|
|
23835
23786
|
alignItems: 'center'
|
|
23836
23787
|
};
|
|
23837
23788
|
});
|
|
23838
|
-
var StyledErrorImage = index$c(Image)(function (
|
|
23839
|
-
var theme =
|
|
23789
|
+
var StyledErrorImage = index$c(Image)(function (_ref7) {
|
|
23790
|
+
var theme = _ref7.theme;
|
|
23840
23791
|
return {
|
|
23841
23792
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
23842
23793
|
width: theme.__hd__.error.sizes.image,
|
|
@@ -23844,23 +23795,23 @@ var StyledErrorImage = index$c(Image)(function (_ref8) {
|
|
|
23844
23795
|
resizeMode: 'contain'
|
|
23845
23796
|
};
|
|
23846
23797
|
});
|
|
23847
|
-
var StyledErrorTitle = index$c(Typography.Title)(function (
|
|
23848
|
-
var theme =
|
|
23798
|
+
var StyledErrorTitle = index$c(Typography.Title)(function (_ref8) {
|
|
23799
|
+
var theme = _ref8.theme;
|
|
23849
23800
|
return {
|
|
23850
23801
|
textAlign: 'center',
|
|
23851
23802
|
marginBottom: theme.__hd__.error.space.titleMarginBottom,
|
|
23852
23803
|
color: theme.__hd__.error.colors.title
|
|
23853
23804
|
};
|
|
23854
23805
|
});
|
|
23855
|
-
var StyledErrorDescription = index$c(Typography.Body)(function (
|
|
23856
|
-
var theme =
|
|
23806
|
+
var StyledErrorDescription = index$c(Typography.Body)(function (_ref9) {
|
|
23807
|
+
var theme = _ref9.theme;
|
|
23857
23808
|
return {
|
|
23858
23809
|
textAlign: 'center',
|
|
23859
23810
|
color: theme.__hd__.error.colors.description
|
|
23860
23811
|
};
|
|
23861
23812
|
});
|
|
23862
23813
|
|
|
23863
|
-
var _excluded$
|
|
23814
|
+
var _excluded$p = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
|
|
23864
23815
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
23865
23816
|
var renderImage$1 = function renderImage(image) {
|
|
23866
23817
|
if (/*#__PURE__*/React.isValidElement(image)) {
|
|
@@ -23901,7 +23852,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
23901
23852
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
23902
23853
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
23903
23854
|
icon = _ref2.icon,
|
|
23904
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
23855
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$p);
|
|
23905
23856
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
23906
23857
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
23907
23858
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -23916,7 +23867,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
23916
23867
|
typeface: "playful"
|
|
23917
23868
|
}, title), description && /*#__PURE__*/React__namespace.default.createElement(StyledErrorDescription, {
|
|
23918
23869
|
typeface: "playful"
|
|
23919
|
-
}, description)), showButtonContainer && /*#__PURE__*/React__namespace.default.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React__namespace.default.createElement(
|
|
23870
|
+
}, description)), showButtonContainer && /*#__PURE__*/React__namespace.default.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
23920
23871
|
variant: "filled",
|
|
23921
23872
|
text: ctaText,
|
|
23922
23873
|
onPress: onCtaPress
|
|
@@ -24047,8 +23998,9 @@ var StyledIcon$3 = index$c(Icon)(function (_ref3) {
|
|
|
24047
23998
|
var AnimatedTouchableHighlight = reactNative.Animated.createAnimatedComponent(reactNative.TouchableOpacity);
|
|
24048
23999
|
var StyledFAB$2 = index$c(AnimatedTouchableHighlight)(function (_ref) {
|
|
24049
24000
|
var theme = _ref.theme,
|
|
24050
|
-
themeActive = _ref.themeActive
|
|
24051
|
-
|
|
24001
|
+
themeActive = _ref.themeActive,
|
|
24002
|
+
themeIconOnly = _ref.themeIconOnly;
|
|
24003
|
+
return _objectSpread2(_objectSpread2({
|
|
24052
24004
|
backgroundColor: themeActive ? theme.__hd__.fab.colors.buttonActiveBackground : theme.__hd__.fab.colors.buttonBackground,
|
|
24053
24005
|
borderRadius: theme.radii.rounded,
|
|
24054
24006
|
alignItems: 'center',
|
|
@@ -24057,7 +24009,9 @@ var StyledFAB$2 = index$c(AnimatedTouchableHighlight)(function (_ref) {
|
|
|
24057
24009
|
padding: theme.__hd__.fab.space.containerPadding,
|
|
24058
24010
|
flexDirection: 'row',
|
|
24059
24011
|
height: theme.__hd__.fab.sizes.height
|
|
24060
|
-
},
|
|
24012
|
+
}, themeIconOnly && {
|
|
24013
|
+
width: theme.__hd__.fab.sizes.width
|
|
24014
|
+
}), theme.__hd__.fab.shadows["default"]);
|
|
24061
24015
|
});
|
|
24062
24016
|
var StyledFABIcon = index$c(Icon)(function (_ref2) {
|
|
24063
24017
|
var theme = _ref2.theme;
|
|
@@ -24127,13 +24081,13 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
24127
24081
|
})), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
|
|
24128
24082
|
};
|
|
24129
24083
|
|
|
24130
|
-
var _excluded$
|
|
24084
|
+
var _excluded$o = ["active"];
|
|
24131
24085
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(/*#__PURE__*/React__namespace.default.forwardRef(function (props, _) {
|
|
24132
24086
|
return /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, props);
|
|
24133
24087
|
}));
|
|
24134
24088
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
24135
24089
|
var active = _ref.active,
|
|
24136
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
24090
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
24137
24091
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
24138
24092
|
React.useEffect(function () {
|
|
24139
24093
|
var animation = reactNative.Animated.spring(rotateAnimation.current, {
|
|
@@ -24185,12 +24139,15 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
24185
24139
|
};
|
|
24186
24140
|
var IconWithTextContent = function IconWithTextContent(_ref2) {
|
|
24187
24141
|
var icon = _ref2.icon,
|
|
24188
|
-
title = _ref2.title
|
|
24142
|
+
title = _ref2.title,
|
|
24143
|
+
titleStyle = _ref2.titleStyle;
|
|
24189
24144
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
|
|
24190
24145
|
size: "xsmall",
|
|
24191
24146
|
icon: icon,
|
|
24192
24147
|
testID: "styled-fab-icon"
|
|
24193
|
-
})), /*#__PURE__*/React__namespace.default.createElement(StyledFABText,
|
|
24148
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledFABText, {
|
|
24149
|
+
style: titleStyle
|
|
24150
|
+
}, title));
|
|
24194
24151
|
};
|
|
24195
24152
|
var animateWidth = function animateWidth() {
|
|
24196
24153
|
reactNative.LayoutAnimation.configureNext({
|
|
@@ -24201,7 +24158,9 @@ var animateWidth = function animateWidth() {
|
|
|
24201
24158
|
}
|
|
24202
24159
|
});
|
|
24203
24160
|
};
|
|
24204
|
-
|
|
24161
|
+
// Full implementation — accepts InternalFABProps including titleStyle.
|
|
24162
|
+
// Exported as FABInternal for use by sibling HD components (e.g. FAB.Pair).
|
|
24163
|
+
var FABWithTitleStyle = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
24205
24164
|
var _StyleSheet$flatten, _StyleSheet$flatten2;
|
|
24206
24165
|
var onPress = _ref3.onPress,
|
|
24207
24166
|
title = _ref3.title,
|
|
@@ -24209,7 +24168,8 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
24209
24168
|
iconAnimated = _ref3.animated,
|
|
24210
24169
|
testID = _ref3.testID,
|
|
24211
24170
|
active = _ref3.active,
|
|
24212
|
-
style = _ref3.style
|
|
24171
|
+
style = _ref3.style,
|
|
24172
|
+
titleStyle = _ref3.titleStyle;
|
|
24213
24173
|
var theme = useTheme();
|
|
24214
24174
|
var _React$useState = React__namespace.default.useState({
|
|
24215
24175
|
hideTitle: false,
|
|
@@ -24314,6 +24274,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
24314
24274
|
},
|
|
24315
24275
|
activeOpacity: 0.8,
|
|
24316
24276
|
onPress: onPress,
|
|
24277
|
+
themeIconOnly: isIconOnly,
|
|
24317
24278
|
style: [style, {
|
|
24318
24279
|
bottom: displayState.hideButton ? -(marginBottom + theme.__hd__.fab.sizes.height * 2) : (_StyleSheet$flatten2 = reactNative.StyleSheet.flatten(style)) === null || _StyleSheet$flatten2 === void 0 ? void 0 : _StyleSheet$flatten2.bottom,
|
|
24319
24280
|
transform: [{
|
|
@@ -24339,9 +24300,18 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
24339
24300
|
icon: active ? 'add' : icon
|
|
24340
24301
|
}) : /*#__PURE__*/React__namespace.default.createElement(IconWithTextContent, {
|
|
24341
24302
|
icon: icon,
|
|
24342
|
-
title: title
|
|
24303
|
+
title: title,
|
|
24304
|
+
titleStyle: titleStyle
|
|
24343
24305
|
})));
|
|
24344
24306
|
});
|
|
24307
|
+
FABWithTitleStyle.displayName = 'FAB';
|
|
24308
|
+
// Public export — clean FABProps, no internal props exposed.
|
|
24309
|
+
// Docgen reads this component and sees only FABProps.
|
|
24310
|
+
var FAB$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
24311
|
+
return /*#__PURE__*/React__namespace.default.createElement(FABWithTitleStyle, _extends$1({}, props, {
|
|
24312
|
+
ref: ref
|
|
24313
|
+
}));
|
|
24314
|
+
});
|
|
24345
24315
|
FAB$1.displayName = 'FAB';
|
|
24346
24316
|
|
|
24347
24317
|
var StyledContainer$5 = index$c(reactNative.View)({
|
|
@@ -24510,7 +24480,7 @@ var StyledFABPairWrapper = index$c(Box)({
|
|
|
24510
24480
|
justifyContent: 'center',
|
|
24511
24481
|
alignItems: 'center'
|
|
24512
24482
|
});
|
|
24513
|
-
var StyledFAB = index$c(
|
|
24483
|
+
var StyledFAB = index$c(FABWithTitleStyle)(function (_ref) {
|
|
24514
24484
|
var theme = _ref.theme,
|
|
24515
24485
|
_ref$iconOnly = _ref.iconOnly,
|
|
24516
24486
|
iconOnly = _ref$iconOnly === void 0 ? false : _ref$iconOnly,
|
|
@@ -24523,15 +24493,16 @@ var StyledFAB = index$c(FAB$1)(function (_ref) {
|
|
|
24523
24493
|
};
|
|
24524
24494
|
});
|
|
24525
24495
|
|
|
24526
|
-
var _excluded$
|
|
24496
|
+
var _excluded$n = ["fabConfig", "onCancel"];
|
|
24527
24497
|
var Pair = function Pair(_ref) {
|
|
24528
24498
|
var fabConfig = _ref.fabConfig,
|
|
24529
24499
|
onCancel = _ref.onCancel,
|
|
24530
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
24500
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
24531
24501
|
var icon = fabConfig.icon,
|
|
24532
24502
|
title = fabConfig.title,
|
|
24533
24503
|
onPress = fabConfig.onPress,
|
|
24534
24504
|
testID = fabConfig.testID;
|
|
24505
|
+
var theme = useTheme();
|
|
24535
24506
|
return /*#__PURE__*/React__namespace.default.createElement(StyledFABPairWrapper, props, /*#__PURE__*/React__namespace.default.createElement(StyledFAB, {
|
|
24536
24507
|
icon: "cancel",
|
|
24537
24508
|
onPress: onCancel,
|
|
@@ -24543,7 +24514,11 @@ var Pair = function Pair(_ref) {
|
|
|
24543
24514
|
onPress: onPress,
|
|
24544
24515
|
testID: testID,
|
|
24545
24516
|
iconOnly: !title,
|
|
24546
|
-
isLast: true
|
|
24517
|
+
isLast: true,
|
|
24518
|
+
titleStyle: {
|
|
24519
|
+
fontSize: theme.fontSizes.medium,
|
|
24520
|
+
fontFamily: theme.fonts.neutral.regular
|
|
24521
|
+
}
|
|
24547
24522
|
}));
|
|
24548
24523
|
};
|
|
24549
24524
|
|
|
@@ -25257,11 +25232,11 @@ var StyledFocusIcon = index$c(Icon)(function (_ref7) {
|
|
|
25257
25232
|
};
|
|
25258
25233
|
});
|
|
25259
25234
|
|
|
25260
|
-
var _excluded$
|
|
25235
|
+
var _excluded$m = ["style", "testID"];
|
|
25261
25236
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
25262
25237
|
var style = _ref.style,
|
|
25263
25238
|
testID = _ref.testID,
|
|
25264
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25239
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
25265
25240
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
25266
25241
|
style: style,
|
|
25267
25242
|
testID: testID
|
|
@@ -25271,7 +25246,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
25271
25246
|
}));
|
|
25272
25247
|
};
|
|
25273
25248
|
|
|
25274
|
-
var _excluded$
|
|
25249
|
+
var _excluded$l = ["style", "testID", "state", "image", "icon"];
|
|
25275
25250
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
25276
25251
|
var iconMap = {
|
|
25277
25252
|
idle: undefined,
|
|
@@ -25287,7 +25262,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
25287
25262
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
25288
25263
|
image = _ref.image,
|
|
25289
25264
|
icon = _ref.icon,
|
|
25290
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25265
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
25291
25266
|
var badgeIcon = getBadgeIconName(state);
|
|
25292
25267
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
25293
25268
|
style: style,
|
|
@@ -25608,7 +25583,7 @@ var THEME_INTENT_MAP = {
|
|
|
25608
25583
|
'archived-inverted': 'archivedInverted'
|
|
25609
25584
|
};
|
|
25610
25585
|
|
|
25611
|
-
var _excluded$
|
|
25586
|
+
var _excluded$k = ["value", "renderValue", "intent", "style", "testID"];
|
|
25612
25587
|
var defaultRenderValue = function defaultRenderValue(value) {
|
|
25613
25588
|
return "".concat(value, "%");
|
|
25614
25589
|
};
|
|
@@ -25621,7 +25596,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
|
|
|
25621
25596
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25622
25597
|
style = _ref.style,
|
|
25623
25598
|
testID = _ref.testID,
|
|
25624
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25599
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
25625
25600
|
var theme = useTheme$1();
|
|
25626
25601
|
var size = theme.__hd__.progress.sizes.circleDiameter;
|
|
25627
25602
|
var strokeWidth = theme.__hd__.progress.sizes.circleCompletenessHeight;
|
|
@@ -25691,14 +25666,14 @@ var StyledInner = index$c(reactNative.Animated.View)(function (_ref2) {
|
|
|
25691
25666
|
};
|
|
25692
25667
|
});
|
|
25693
25668
|
|
|
25694
|
-
var _excluded$
|
|
25669
|
+
var _excluded$j = ["value", "intent", "style", "testID"];
|
|
25695
25670
|
var ProgressBar = function ProgressBar(_ref) {
|
|
25696
25671
|
var value = _ref.value,
|
|
25697
25672
|
_ref$intent = _ref.intent,
|
|
25698
25673
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25699
25674
|
style = _ref.style,
|
|
25700
25675
|
testID = _ref.testID,
|
|
25701
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25676
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
25702
25677
|
var _useState = React.useState(0),
|
|
25703
25678
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25704
25679
|
width = _useState2[0],
|
|
@@ -25788,7 +25763,7 @@ var StyledSingleStep = index$c(Box)(function (_ref3) {
|
|
|
25788
25763
|
};
|
|
25789
25764
|
});
|
|
25790
25765
|
|
|
25791
|
-
var _excluded$
|
|
25766
|
+
var _excluded$i = ["steps", "current", "onLayout"];
|
|
25792
25767
|
var getStepState = function getStepState(current, index) {
|
|
25793
25768
|
if (index < current) {
|
|
25794
25769
|
return 'complete';
|
|
@@ -25802,7 +25777,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
25802
25777
|
var steps = _ref.steps,
|
|
25803
25778
|
current = _ref.current,
|
|
25804
25779
|
onLayout = _ref.onLayout,
|
|
25805
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
25780
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
25806
25781
|
var theme = useTheme$1();
|
|
25807
25782
|
var _React$useState = React__namespace.default.useState(0),
|
|
25808
25783
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -26099,7 +26074,7 @@ var StyledEmptyText = index$c(Typography.Caption)(function (_ref4) {
|
|
|
26099
26074
|
};
|
|
26100
26075
|
});
|
|
26101
26076
|
|
|
26102
|
-
var _excluded$
|
|
26077
|
+
var _excluded$h = ["data", "headerConfig", "emptyText", "legendConfig", "styleConfig", "style", "testID", "collapsable"];
|
|
26103
26078
|
var ProgressSegmentedBar = function ProgressSegmentedBar(_ref) {
|
|
26104
26079
|
var data = _ref.data,
|
|
26105
26080
|
headerConfig = _ref.headerConfig,
|
|
@@ -26109,7 +26084,7 @@ var ProgressSegmentedBar = function ProgressSegmentedBar(_ref) {
|
|
|
26109
26084
|
style = _ref.style,
|
|
26110
26085
|
testID = _ref.testID,
|
|
26111
26086
|
collapsable = _ref.collapsable,
|
|
26112
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
26087
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
26113
26088
|
var values = React__namespace.default.useMemo(function () {
|
|
26114
26089
|
return data.map(function (s) {
|
|
26115
26090
|
return s.data;
|
|
@@ -26479,14 +26454,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
26479
26454
|
}, dotProps))));
|
|
26480
26455
|
};
|
|
26481
26456
|
|
|
26482
|
-
var _excluded$
|
|
26457
|
+
var _excluded$g = ["testID", "size", "intent"];
|
|
26483
26458
|
var Spinner = function Spinner(_ref) {
|
|
26484
26459
|
var testID = _ref.testID,
|
|
26485
26460
|
_ref$size = _ref.size,
|
|
26486
26461
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
26487
26462
|
_ref$intent = _ref.intent,
|
|
26488
26463
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
26489
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
26464
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
26490
26465
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
|
|
26491
26466
|
testID: testID
|
|
26492
26467
|
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
|
|
@@ -26519,7 +26494,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
26519
26494
|
}, children);
|
|
26520
26495
|
};
|
|
26521
26496
|
|
|
26522
|
-
var _excluded$
|
|
26497
|
+
var _excluded$f = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
26523
26498
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
26524
26499
|
var trans = progress.interpolate({
|
|
26525
26500
|
inputRange: [0, 1],
|
|
@@ -26548,7 +26523,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
26548
26523
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
26549
26524
|
_ref$variant = _ref.variant,
|
|
26550
26525
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
26551
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
26526
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
26552
26527
|
var theme = useTheme();
|
|
26553
26528
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
26554
26529
|
width = _useWindowDimensions.width;
|
|
@@ -26876,24 +26851,8 @@ var StyledSectionList = index$c(reactNative.SectionList)(function (_ref4) {
|
|
|
26876
26851
|
paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
|
|
26877
26852
|
};
|
|
26878
26853
|
});
|
|
26879
|
-
var getZIndexByState$1 = function getZIndexByState(_ref5) {
|
|
26880
|
-
var themeHasError = _ref5.themeHasError;
|
|
26881
|
-
if (themeHasError) {
|
|
26882
|
-
return 1;
|
|
26883
|
-
}
|
|
26884
|
-
return 0;
|
|
26885
|
-
};
|
|
26886
|
-
var StyledTouchableOpacity$1 = index$c(reactNative.TouchableOpacity)(function (_ref6) {
|
|
26887
|
-
var themeGroupStyleEnabled = _ref6.themeGroupStyleEnabled,
|
|
26888
|
-
themeHasError = _ref6.themeHasError;
|
|
26889
|
-
return _objectSpread2({}, themeGroupStyleEnabled && {
|
|
26890
|
-
zIndex: getZIndexByState$1({
|
|
26891
|
-
themeHasError: themeHasError
|
|
26892
|
-
})
|
|
26893
|
-
});
|
|
26894
|
-
});
|
|
26895
26854
|
|
|
26896
|
-
var _excluded$
|
|
26855
|
+
var _excluded$e = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
26897
26856
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
26898
26857
|
var keyExtractor = _ref.keyExtractor,
|
|
26899
26858
|
loading = _ref.loading,
|
|
@@ -26902,7 +26861,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
26902
26861
|
sections = _ref.sections,
|
|
26903
26862
|
renderItem = _ref.renderItem,
|
|
26904
26863
|
sectionListRef = _ref.sectionListRef,
|
|
26905
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26864
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
26906
26865
|
var theme = useTheme$1();
|
|
26907
26866
|
var _useState = React.useState(false),
|
|
26908
26867
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -26986,7 +26945,7 @@ var isOptionSelected = function isOptionSelected(value, option) {
|
|
|
26986
26945
|
});
|
|
26987
26946
|
};
|
|
26988
26947
|
|
|
26989
|
-
var _excluded$
|
|
26948
|
+
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
26990
26949
|
var OptionList$1 = function OptionList(_ref) {
|
|
26991
26950
|
var keyExtractor = _ref.keyExtractor,
|
|
26992
26951
|
loading = _ref.loading,
|
|
@@ -26997,7 +26956,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
26997
26956
|
renderOption = _ref.renderOption,
|
|
26998
26957
|
value = _ref.value,
|
|
26999
26958
|
sectionListRef = _ref.sectionListRef,
|
|
27000
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26959
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
27001
26960
|
var renderItem = function renderItem(info) {
|
|
27002
26961
|
var item = info.item;
|
|
27003
26962
|
var selected = isOptionSelected(value, item);
|
|
@@ -27032,7 +26991,6 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
27032
26991
|
}, rest));
|
|
27033
26992
|
};
|
|
27034
26993
|
|
|
27035
|
-
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"];
|
|
27036
26994
|
function MultiSelect(_ref) {
|
|
27037
26995
|
var footerLabel = _ref.footerLabel,
|
|
27038
26996
|
label = _ref.label,
|
|
@@ -27059,10 +27017,7 @@ function MultiSelect(_ref) {
|
|
|
27059
27017
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
27060
27018
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
27061
27019
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
27062
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
27063
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
27064
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
27065
|
-
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
27020
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi;
|
|
27066
27021
|
var _useKeyboard = useKeyboard(),
|
|
27067
27022
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
27068
27023
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -27085,7 +27040,6 @@ function MultiSelect(_ref) {
|
|
|
27085
27040
|
var rawValue = value.length > 0 ? value.join(', ') : '';
|
|
27086
27041
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
27087
27042
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
27088
|
-
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
27089
27043
|
var onPress = React.useCallback(function () {
|
|
27090
27044
|
setOpen(true);
|
|
27091
27045
|
}, []);
|
|
@@ -27098,14 +27052,12 @@ function MultiSelect(_ref) {
|
|
|
27098
27052
|
}, [open, value]);
|
|
27099
27053
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
27100
27054
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
27101
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
27055
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
27102
27056
|
onPress: onPress,
|
|
27103
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
27104
|
-
themeHasError: !!error,
|
|
27105
27057
|
testID: "multi-select-touchable-opacity"
|
|
27106
27058
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
27107
27059
|
pointerEvents: "none"
|
|
27108
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
27060
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
27109
27061
|
label: label,
|
|
27110
27062
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
27111
27063
|
suffix: selectSuffix,
|
|
@@ -27117,8 +27069,8 @@ function MultiSelect(_ref) {
|
|
|
27117
27069
|
pointerEvents: "none",
|
|
27118
27070
|
style: style,
|
|
27119
27071
|
testID: testID,
|
|
27120
|
-
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (
|
|
27121
|
-
return renderSelectedValue(value,
|
|
27072
|
+
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (nativeInputProps) {
|
|
27073
|
+
return renderSelectedValue(value, nativeInputProps);
|
|
27122
27074
|
} : undefined
|
|
27123
27075
|
}))))), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
27124
27076
|
variant: bottomSheetVariant || 'fixed',
|
|
@@ -27155,7 +27107,7 @@ function MultiSelect(_ref) {
|
|
|
27155
27107
|
}
|
|
27156
27108
|
},
|
|
27157
27109
|
supportedOrientations: supportedOrientations
|
|
27158
|
-
}, 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, {
|
|
27159
27111
|
editable: true,
|
|
27160
27112
|
placeholder: "Search",
|
|
27161
27113
|
suffix: "search-outlined",
|
|
@@ -27206,7 +27158,7 @@ var StyledOptionList = index$c(BaseOptionList)(function (_ref) {
|
|
|
27206
27158
|
};
|
|
27207
27159
|
});
|
|
27208
27160
|
|
|
27209
|
-
var _excluded$
|
|
27161
|
+
var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
27210
27162
|
var OptionList = function OptionList(_ref) {
|
|
27211
27163
|
var keyExtractor = _ref.keyExtractor,
|
|
27212
27164
|
loading = _ref.loading,
|
|
@@ -27217,7 +27169,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
27217
27169
|
renderOption = _ref.renderOption,
|
|
27218
27170
|
value = _ref.value,
|
|
27219
27171
|
sectionListRef = _ref.sectionListRef,
|
|
27220
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27172
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
27221
27173
|
var renderItem = function renderItem(info) {
|
|
27222
27174
|
var item = info.item;
|
|
27223
27175
|
var selected = _deepCompareValue(item.value, value);
|
|
@@ -27253,7 +27205,6 @@ var OptionList = function OptionList(_ref) {
|
|
|
27253
27205
|
}, rest));
|
|
27254
27206
|
};
|
|
27255
27207
|
|
|
27256
|
-
var _excluded$c = ["label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig", "groupStyleEnabled"];
|
|
27257
27208
|
var SingleSelect = function SingleSelect(_ref) {
|
|
27258
27209
|
var _flatOptions$find;
|
|
27259
27210
|
var label = _ref.label,
|
|
@@ -27280,10 +27231,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27280
27231
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
27281
27232
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
27282
27233
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
27283
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
27284
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
27285
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
27286
|
-
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
27234
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi;
|
|
27287
27235
|
var _useKeyboard = useKeyboard(),
|
|
27288
27236
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
27289
27237
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -27300,7 +27248,6 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27300
27248
|
var rawValue = value ? String(value) : undefined;
|
|
27301
27249
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
27302
27250
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
27303
|
-
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
27304
27251
|
var onPress = React.useCallback(function () {
|
|
27305
27252
|
setOpen(true);
|
|
27306
27253
|
}, []);
|
|
@@ -27312,14 +27259,12 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27312
27259
|
}, [editable, disabled, open]);
|
|
27313
27260
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
27314
27261
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
27315
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
27262
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
27316
27263
|
onPress: onPress,
|
|
27317
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
27318
|
-
themeHasError: !!error,
|
|
27319
27264
|
testID: "single-select-touchable-opacity"
|
|
27320
27265
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
27321
27266
|
pointerEvents: "none"
|
|
27322
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
27267
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
27323
27268
|
label: label,
|
|
27324
27269
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
27325
27270
|
suffix: selectSuffix,
|
|
@@ -27331,8 +27276,8 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27331
27276
|
pointerEvents: "none",
|
|
27332
27277
|
style: style,
|
|
27333
27278
|
testID: testID,
|
|
27334
|
-
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (
|
|
27335
|
-
return renderSelectedValue(value,
|
|
27279
|
+
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (nativeInputProps) {
|
|
27280
|
+
return renderSelectedValue(value, nativeInputProps);
|
|
27336
27281
|
} : undefined
|
|
27337
27282
|
}))))), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
27338
27283
|
variant: bottomSheetVariant || 'fixed',
|
|
@@ -27353,7 +27298,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27353
27298
|
}
|
|
27354
27299
|
},
|
|
27355
27300
|
supportedOrientations: supportedOrientations
|
|
27356
|
-
}, 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, {
|
|
27357
27302
|
editable: true,
|
|
27358
27303
|
placeholder: "Search",
|
|
27359
27304
|
suffix: "search-outlined",
|
|
@@ -27568,16 +27513,9 @@ var StyledSuccessButtonContainer = index$c(reactNative.View)(function (_ref8) {
|
|
|
27568
27513
|
paddingVertical: theme.__hd__.success.space.button.wrapperVerticalPadding
|
|
27569
27514
|
};
|
|
27570
27515
|
});
|
|
27571
|
-
var
|
|
27516
|
+
var StyledSuccessButtonSecondary = index$c(CompoundButton)(function (_ref9) {
|
|
27572
27517
|
var theme = _ref9.theme;
|
|
27573
27518
|
return {
|
|
27574
|
-
padding: theme.__hd__.success.space.button.padding
|
|
27575
|
-
};
|
|
27576
|
-
});
|
|
27577
|
-
var StyledSuccessButtonSecondary = index$c(CompoundButton)(function (_ref10) {
|
|
27578
|
-
var theme = _ref10.theme;
|
|
27579
|
-
return {
|
|
27580
|
-
padding: theme.__hd__.success.space.button.padding,
|
|
27581
27519
|
marginTop: theme.__hd__.success.space.button.secondaryCTAMarginTop
|
|
27582
27520
|
};
|
|
27583
27521
|
});
|
|
@@ -27638,7 +27576,7 @@ var SuccessPage = function SuccessPage(_ref2) {
|
|
|
27638
27576
|
}), /*#__PURE__*/React__namespace.default.createElement(StyledSuccessTitle, {
|
|
27639
27577
|
level: "h4",
|
|
27640
27578
|
typeface: "playful"
|
|
27641
|
-
}, title), typeof description === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__namespace.default.createElement(
|
|
27579
|
+
}, title), typeof description === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
27642
27580
|
text: ctaText,
|
|
27643
27581
|
onPress: onCtaPress
|
|
27644
27582
|
}), !!showSecondaryButton && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonSecondary, {
|
|
@@ -28733,30 +28671,6 @@ var Tag = function Tag(_ref) {
|
|
|
28733
28671
|
}));
|
|
28734
28672
|
};
|
|
28735
28673
|
|
|
28736
|
-
var StyledPickerWrapper = index$c(reactNative.View)(function (_ref) {
|
|
28737
|
-
var theme = _ref.theme;
|
|
28738
|
-
return {
|
|
28739
|
-
height: theme.__hd__.timePicker.sizes.height,
|
|
28740
|
-
alignItems: 'center'
|
|
28741
|
-
};
|
|
28742
|
-
});
|
|
28743
|
-
var getZIndexByState = function getZIndexByState(_ref2) {
|
|
28744
|
-
var themeHasError = _ref2.themeHasError;
|
|
28745
|
-
if (themeHasError) {
|
|
28746
|
-
return 1;
|
|
28747
|
-
}
|
|
28748
|
-
return 0;
|
|
28749
|
-
};
|
|
28750
|
-
var StyledTouchableOpacity = index$c(reactNative.TouchableOpacity)(function (_ref3) {
|
|
28751
|
-
var themeGroupStyleEnabled = _ref3.themeGroupStyleEnabled,
|
|
28752
|
-
themeHasError = _ref3.themeHasError;
|
|
28753
|
-
return _objectSpread2({}, themeGroupStyleEnabled && {
|
|
28754
|
-
zIndex: getZIndexByState({
|
|
28755
|
-
themeHasError: themeHasError
|
|
28756
|
-
})
|
|
28757
|
-
});
|
|
28758
|
-
});
|
|
28759
|
-
|
|
28760
28674
|
var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
28761
28675
|
var value = _ref.value,
|
|
28762
28676
|
label = _ref.label,
|
|
@@ -28772,11 +28686,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28772
28686
|
style = _ref.style,
|
|
28773
28687
|
testID = _ref.testID,
|
|
28774
28688
|
_ref$showSuffix = _ref.showSuffix,
|
|
28775
|
-
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix
|
|
28776
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
28777
|
-
inputProps = _ref.inputProps,
|
|
28778
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
28779
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
28689
|
+
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix;
|
|
28780
28690
|
var _useState = React.useState(false),
|
|
28781
28691
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28782
28692
|
open = _useState2[0],
|
|
@@ -28784,20 +28694,17 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28784
28694
|
var is12Hour = displayFormat.includes('hh');
|
|
28785
28695
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
28786
28696
|
var pickerInitValue = value || new Date();
|
|
28787
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
28788
28697
|
var onPress = React.useCallback(function () {
|
|
28789
28698
|
setOpen(true);
|
|
28790
28699
|
}, []);
|
|
28791
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
28700
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
28792
28701
|
onPress: onPress,
|
|
28793
28702
|
disabled: disabled,
|
|
28794
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
28795
|
-
themeHasError: !!error,
|
|
28796
28703
|
testID: "time-picker-android-touchable-opacity"
|
|
28797
28704
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
28798
28705
|
pointerEvents: "none",
|
|
28799
28706
|
testID: "timePickerInputAndroid"
|
|
28800
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
28707
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
28801
28708
|
label: label,
|
|
28802
28709
|
value: displayValue,
|
|
28803
28710
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -28808,7 +28715,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28808
28715
|
helpText: helpText,
|
|
28809
28716
|
style: style,
|
|
28810
28717
|
testID: testID
|
|
28811
|
-
}))
|
|
28718
|
+
})), open ? /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
28812
28719
|
testID: "timePickerAndroid",
|
|
28813
28720
|
mode: "time",
|
|
28814
28721
|
value: pickerInitValue,
|
|
@@ -28823,6 +28730,14 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28823
28730
|
}) : null);
|
|
28824
28731
|
};
|
|
28825
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
|
+
|
|
28826
28741
|
var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
28827
28742
|
var value = _ref.value,
|
|
28828
28743
|
label = _ref.label,
|
|
@@ -28841,11 +28756,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28841
28756
|
_ref$showSuffix = _ref.showSuffix,
|
|
28842
28757
|
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix,
|
|
28843
28758
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
28844
|
-
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta
|
|
28845
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
28846
|
-
inputProps = _ref.inputProps,
|
|
28847
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
28848
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
28759
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
28849
28760
|
var _useState = React.useState(value || new Date()),
|
|
28850
28761
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28851
28762
|
selectingDate = _useState2[0],
|
|
@@ -28861,23 +28772,20 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28861
28772
|
// For 12-hour format: use en-US locale to ensure 12-hour display regardless of device settings
|
|
28862
28773
|
// For 24-hour format: use en-GB for consistent 24-hour display
|
|
28863
28774
|
var pickerLocale = is12Hour ? 'en-US' : 'en-GB';
|
|
28864
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
28865
28775
|
React.useEffect(function () {
|
|
28866
28776
|
setSelectingDate(value || new Date());
|
|
28867
28777
|
}, [value]);
|
|
28868
28778
|
var onPress = React.useCallback(function () {
|
|
28869
28779
|
setOpen(true);
|
|
28870
28780
|
}, []);
|
|
28871
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
28781
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
28872
28782
|
onPress: onPress,
|
|
28873
28783
|
disabled: disabled,
|
|
28874
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
28875
|
-
themeHasError: !!error,
|
|
28876
28784
|
testID: "time-picker-ios-touchable-opacity"
|
|
28877
28785
|
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
28878
28786
|
pointerEvents: "none",
|
|
28879
28787
|
testID: "timePickerInputIOS"
|
|
28880
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
28788
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
28881
28789
|
label: label,
|
|
28882
28790
|
value: displayValue,
|
|
28883
28791
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -28888,7 +28796,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28888
28796
|
helpText: helpText,
|
|
28889
28797
|
testID: testID,
|
|
28890
28798
|
style: style
|
|
28891
|
-
}))
|
|
28799
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
28892
28800
|
open: open,
|
|
28893
28801
|
onRequestClose: function onRequestClose() {
|
|
28894
28802
|
return setOpen(false);
|