@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/es/index.js
CHANGED
|
@@ -4978,7 +4978,7 @@ var swagLightGlobalPalette = _objectSpread2(_objectSpread2({}, globalPalette$1),
|
|
|
4978
4978
|
});
|
|
4979
4979
|
|
|
4980
4980
|
var ehWorkBrandSystemPalette = {
|
|
4981
|
-
primary: '#
|
|
4981
|
+
primary: '#7622d7',
|
|
4982
4982
|
onPrimary: '#fdfbff',
|
|
4983
4983
|
secondary: '#b382fd',
|
|
4984
4984
|
onSecondary: palette$4.white,
|
|
@@ -5007,6 +5007,7 @@ var swagSystemPalette = _objectSpread2(_objectSpread2({}, ehWorkSystemPalette),
|
|
|
5007
5007
|
|
|
5008
5008
|
var ehJobsSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
|
|
5009
5009
|
name: 'ehJobs',
|
|
5010
|
+
primary: '#7622d7',
|
|
5010
5011
|
secondary: '#40d1ff',
|
|
5011
5012
|
onSecondary: '#460078',
|
|
5012
5013
|
secondaryHighlightedSurface: '#ecfaff',
|
|
@@ -6373,19 +6374,19 @@ var getErrorTheme = function getErrorTheme(theme) {
|
|
|
6373
6374
|
|
|
6374
6375
|
var getFABTheme = function getFABTheme(theme) {
|
|
6375
6376
|
var colors = {
|
|
6376
|
-
buttonBackground: theme.colors.
|
|
6377
|
-
buttonPressedBackground: theme.colors.
|
|
6378
|
-
buttonActiveBackground: theme.colors.
|
|
6377
|
+
buttonBackground: theme.colors.primary,
|
|
6378
|
+
buttonPressedBackground: theme.colors.primary,
|
|
6379
|
+
buttonActiveBackground: theme.colors.primary,
|
|
6379
6380
|
icon: theme.colors.onDarkGlobalSurface,
|
|
6380
|
-
actionItemBackground: theme.colors.
|
|
6381
|
-
actionItemPressedBackground: theme.colors.
|
|
6381
|
+
actionItemBackground: theme.colors.defaultGlobalSurface,
|
|
6382
|
+
actionItemPressedBackground: theme.colors.defaultGlobalSurface,
|
|
6382
6383
|
backdropBackground: theme.colors.black,
|
|
6383
6384
|
titleText: theme.colors.onDarkGlobalSurface,
|
|
6384
|
-
actionItemText: theme.colors.
|
|
6385
|
+
actionItemText: theme.colors.onDefaultGlobalSurface
|
|
6385
6386
|
};
|
|
6386
6387
|
var sizes = {
|
|
6387
|
-
width: theme.sizes.
|
|
6388
|
-
height: theme.sizes.
|
|
6388
|
+
width: theme.sizes.xxxlarge,
|
|
6389
|
+
height: theme.sizes.xxxlarge,
|
|
6389
6390
|
iconContainerWidth: theme.sizes.large,
|
|
6390
6391
|
iconContainerHeight: theme.sizes.large,
|
|
6391
6392
|
fabPairHeight: theme.sizes.xxxlarge,
|
|
@@ -6393,11 +6394,11 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
6393
6394
|
};
|
|
6394
6395
|
var fonts = {
|
|
6395
6396
|
actionItemText: theme.fonts.neutral.regular,
|
|
6396
|
-
title: theme.fonts.neutral.
|
|
6397
|
+
title: theme.fonts.neutral.regular
|
|
6397
6398
|
};
|
|
6398
6399
|
var fontSizes = {
|
|
6399
6400
|
actionItemText: theme.fontSizes.large,
|
|
6400
|
-
title: theme.fontSizes.
|
|
6401
|
+
title: theme.fontSizes.medium
|
|
6401
6402
|
};
|
|
6402
6403
|
var lineHeights = {
|
|
6403
6404
|
actionItemText: theme.lineHeights.medium,
|
|
@@ -6414,7 +6415,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
6414
6415
|
actionItemTextPaddingLeft: theme.space.xsmall,
|
|
6415
6416
|
buttonMarginTop: theme.space.large,
|
|
6416
6417
|
buttonMarginRight: theme.space.large,
|
|
6417
|
-
containerPadding: theme.space.
|
|
6418
|
+
containerPadding: theme.space.smallMedium,
|
|
6418
6419
|
titleMarginHorizontal: theme.space.small,
|
|
6419
6420
|
fabPairMarginRight: theme.space.small
|
|
6420
6421
|
};
|
|
@@ -8184,7 +8185,7 @@ var StyledText$4 = index$c(Text$1)(function (_ref) {
|
|
|
8184
8185
|
});
|
|
8185
8186
|
});
|
|
8186
8187
|
|
|
8187
|
-
var _excluded$
|
|
8188
|
+
var _excluded$O = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
8188
8189
|
/**
|
|
8189
8190
|
* @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.
|
|
8190
8191
|
*/
|
|
@@ -8200,7 +8201,7 @@ var Text = function Text(_ref) {
|
|
|
8200
8201
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8201
8202
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8202
8203
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8203
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8204
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
8204
8205
|
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.');
|
|
8205
8206
|
return /*#__PURE__*/React__default.createElement(StyledText$4, _extends$1({}, nativeProps, {
|
|
8206
8207
|
themeFontSize: fontSize,
|
|
@@ -8253,10 +8254,10 @@ var pickAccessibilityProps = function pickAccessibilityProps(props) {
|
|
|
8253
8254
|
}, {});
|
|
8254
8255
|
};
|
|
8255
8256
|
|
|
8256
|
-
var _excluded$
|
|
8257
|
+
var _excluded$N = ["children"];
|
|
8257
8258
|
var GradientText = function GradientText(_ref) {
|
|
8258
8259
|
var children = _ref.children,
|
|
8259
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
8260
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
8260
8261
|
var theme = useTheme();
|
|
8261
8262
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
8262
8263
|
var _useState = useState(null),
|
|
@@ -8312,7 +8313,7 @@ var GradientText = function GradientText(_ref) {
|
|
|
8312
8313
|
}, children));
|
|
8313
8314
|
};
|
|
8314
8315
|
|
|
8315
|
-
var _excluded$
|
|
8316
|
+
var _excluded$M = ["children", "fontWeight", "intent", "allowFontScaling", "fontStyle", "style", "testID"];
|
|
8316
8317
|
var Caption = function Caption(_ref) {
|
|
8317
8318
|
var children = _ref.children,
|
|
8318
8319
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -8325,7 +8326,7 @@ var Caption = function Caption(_ref) {
|
|
|
8325
8326
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8326
8327
|
style = _ref.style,
|
|
8327
8328
|
testID = _ref.testID,
|
|
8328
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8329
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
8329
8330
|
var isAi = intent === 'ai';
|
|
8330
8331
|
var styledText = /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
8331
8332
|
themeFontWeight: fontWeight,
|
|
@@ -8357,7 +8358,7 @@ var StyledLabel$1 = index$c(Text$1)(function (_ref) {
|
|
|
8357
8358
|
};
|
|
8358
8359
|
});
|
|
8359
8360
|
|
|
8360
|
-
var _excluded$
|
|
8361
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "fontStyle", "fontWeight", "style", "testID"];
|
|
8361
8362
|
var Label = function Label(_ref) {
|
|
8362
8363
|
var children = _ref.children,
|
|
8363
8364
|
_ref$intent = _ref.intent,
|
|
@@ -8370,7 +8371,7 @@ var Label = function Label(_ref) {
|
|
|
8370
8371
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
8371
8372
|
style = _ref.style,
|
|
8372
8373
|
testID = _ref.testID,
|
|
8373
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8374
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
8374
8375
|
var isAi = intent === 'ai';
|
|
8375
8376
|
var styledText = /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
8376
8377
|
themeIntent: isAi ? 'body' : intent,
|
|
@@ -8401,7 +8402,7 @@ var StyledTitle$1 = index$c(Text$1)(function (_ref) {
|
|
|
8401
8402
|
};
|
|
8402
8403
|
});
|
|
8403
8404
|
|
|
8404
|
-
var _excluded$
|
|
8405
|
+
var _excluded$K = ["children", "intent", "allowFontScaling", "level", "typeface", "fontStyle", "style", "testID"];
|
|
8405
8406
|
var Title = function Title(_ref) {
|
|
8406
8407
|
var children = _ref.children,
|
|
8407
8408
|
_ref$intent = _ref.intent,
|
|
@@ -8416,7 +8417,7 @@ var Title = function Title(_ref) {
|
|
|
8416
8417
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8417
8418
|
style = _ref.style,
|
|
8418
8419
|
testID = _ref.testID,
|
|
8419
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8420
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
8420
8421
|
var isAi = intent === 'ai';
|
|
8421
8422
|
var styledText = /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
8422
8423
|
themeLevel: level,
|
|
@@ -8466,7 +8467,7 @@ var StyledBody$2 = index$c(Text$1)(function (_ref) {
|
|
|
8466
8467
|
};
|
|
8467
8468
|
});
|
|
8468
8469
|
|
|
8469
|
-
var _excluded$
|
|
8470
|
+
var _excluded$J = ["children", "intent", "allowFontScaling", "typeface", "variant", "fontStyle", "style", "testID"];
|
|
8470
8471
|
var Body = function Body(_ref) {
|
|
8471
8472
|
var children = _ref.children,
|
|
8472
8473
|
_ref$intent = _ref.intent,
|
|
@@ -8481,7 +8482,7 @@ var Body = function Body(_ref) {
|
|
|
8481
8482
|
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8482
8483
|
style = _ref.style,
|
|
8483
8484
|
testID = _ref.testID,
|
|
8484
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8485
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
8485
8486
|
var isAi = intent === 'ai';
|
|
8486
8487
|
var styledText = /*#__PURE__*/React__default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
8487
8488
|
themeTypeface: typeface,
|
|
@@ -9145,22 +9146,22 @@ var SpinWrapper = function SpinWrapper(_ref) {
|
|
|
9145
9146
|
}, children);
|
|
9146
9147
|
};
|
|
9147
9148
|
|
|
9148
|
-
var _excluded$
|
|
9149
|
+
var _excluded$I = ["style"];
|
|
9149
9150
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
9150
9151
|
var style = _ref.style,
|
|
9151
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
9152
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$I);
|
|
9152
9153
|
return /*#__PURE__*/React__default.createElement(SpinWrapper, {
|
|
9153
9154
|
style: style
|
|
9154
9155
|
}, /*#__PURE__*/React__default.createElement(StyledHeroIcon, otherProps));
|
|
9155
9156
|
};
|
|
9156
9157
|
|
|
9157
|
-
var _excluded$
|
|
9158
|
+
var _excluded$H = ["name", "themeSize", "testID", "style"];
|
|
9158
9159
|
var GradientIcon = function GradientIcon(_ref) {
|
|
9159
9160
|
var name = _ref.name,
|
|
9160
9161
|
themeSize = _ref.themeSize,
|
|
9161
9162
|
testID = _ref.testID,
|
|
9162
9163
|
style = _ref.style,
|
|
9163
|
-
accessibilityProps = _objectWithoutProperties(_ref, _excluded$
|
|
9164
|
+
accessibilityProps = _objectWithoutProperties(_ref, _excluded$H);
|
|
9164
9165
|
var theme = useTheme();
|
|
9165
9166
|
var gradient = theme.colors.gradients.aiDiagonal;
|
|
9166
9167
|
var size = theme.__hd__.icon.sizes[themeSize];
|
|
@@ -9288,7 +9289,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
9288
9289
|
}, content));
|
|
9289
9290
|
};
|
|
9290
9291
|
|
|
9291
|
-
var _excluded$
|
|
9292
|
+
var _excluded$G = ["key"];
|
|
9292
9293
|
var Accordion = function Accordion(_ref) {
|
|
9293
9294
|
var items = _ref.items,
|
|
9294
9295
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -9311,7 +9312,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
9311
9312
|
accessible: accessible
|
|
9312
9313
|
}, items.map(function (_ref2, index) {
|
|
9313
9314
|
var key = _ref2.key,
|
|
9314
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
9315
|
+
props = _objectWithoutProperties(_ref2, _excluded$G);
|
|
9315
9316
|
var open = _activeItemKey === key;
|
|
9316
9317
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
9317
9318
|
key: key
|
|
@@ -10147,7 +10148,7 @@ var borderWidths = {
|
|
|
10147
10148
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
10148
10149
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
10149
10150
|
|
|
10150
|
-
var _excluded$
|
|
10151
|
+
var _excluded$F = ["theme"];
|
|
10151
10152
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
10152
10153
|
var propConfig = config[key];
|
|
10153
10154
|
var propValue = props[key];
|
|
@@ -10174,18 +10175,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
10174
10175
|
var configKeys = Object.keys(config);
|
|
10175
10176
|
var StyledBox = index$c(View)(function (_ref5) {
|
|
10176
10177
|
var theme = _ref5.theme,
|
|
10177
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
10178
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$F);
|
|
10178
10179
|
var styleProps = pick(configKeys, otherProps);
|
|
10179
10180
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
10180
10181
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
10181
10182
|
});
|
|
10182
10183
|
|
|
10183
|
-
var _excluded$
|
|
10184
|
+
var _excluded$E = ["children", "style", "testID"];
|
|
10184
10185
|
var Box = function Box(_ref) {
|
|
10185
10186
|
var children = _ref.children,
|
|
10186
10187
|
style = _ref.style,
|
|
10187
10188
|
testID = _ref.testID,
|
|
10188
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
10189
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
10189
10190
|
return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
10190
10191
|
style: style,
|
|
10191
10192
|
testID: testID
|
|
@@ -10456,7 +10457,7 @@ var StyledIcon$4 = index$c(Icon)(function (_ref6) {
|
|
|
10456
10457
|
};
|
|
10457
10458
|
});
|
|
10458
10459
|
|
|
10459
|
-
var _excluded$
|
|
10460
|
+
var _excluded$D = ["children", "visible", "intent", "style", "testID"];
|
|
10460
10461
|
var Status$1 = function Status(_ref) {
|
|
10461
10462
|
var children = _ref.children,
|
|
10462
10463
|
_ref$visible = _ref.visible,
|
|
@@ -10465,7 +10466,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10465
10466
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
10466
10467
|
style = _ref.style,
|
|
10467
10468
|
testID = _ref.testID,
|
|
10468
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10469
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
10469
10470
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
10470
10471
|
opacity = _React$useRef.current;
|
|
10471
10472
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -10501,7 +10502,7 @@ var Status$1 = function Status(_ref) {
|
|
|
10501
10502
|
|
|
10502
10503
|
var DEFAULT_MAX_NUMBER = 99;
|
|
10503
10504
|
|
|
10504
|
-
var _excluded$
|
|
10505
|
+
var _excluded$C = ["children", "visible", "style", "max", "testID", "content"];
|
|
10505
10506
|
var Status = function Status(_ref) {
|
|
10506
10507
|
var children = _ref.children,
|
|
10507
10508
|
_ref$visible = _ref.visible,
|
|
@@ -10511,7 +10512,7 @@ var Status = function Status(_ref) {
|
|
|
10511
10512
|
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
10512
10513
|
testID = _ref.testID,
|
|
10513
10514
|
originalContent = _ref.content,
|
|
10514
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10515
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
10515
10516
|
var content = useMemo(function () {
|
|
10516
10517
|
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
10517
10518
|
}, [originalContent, max]);
|
|
@@ -10523,7 +10524,7 @@ var Status = function Status(_ref) {
|
|
|
10523
10524
|
}, /*#__PURE__*/React__default.createElement(StyledCountText, null, content)));
|
|
10524
10525
|
};
|
|
10525
10526
|
|
|
10526
|
-
var _excluded$
|
|
10527
|
+
var _excluded$B = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
10527
10528
|
var getPaddingState = function getPaddingState(content) {
|
|
10528
10529
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
10529
10530
|
};
|
|
@@ -10542,7 +10543,7 @@ var Badge$1 = function Badge(_ref) {
|
|
|
10542
10543
|
_ref$variant = _ref.variant,
|
|
10543
10544
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
10544
10545
|
icon = _ref.icon,
|
|
10545
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10546
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
10546
10547
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
10547
10548
|
opacity = _React$useRef.current;
|
|
10548
10549
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -10660,7 +10661,7 @@ var StyledBottomBarText = index$c(Typography.Label)(function (_ref4) {
|
|
|
10660
10661
|
};
|
|
10661
10662
|
});
|
|
10662
10663
|
|
|
10663
|
-
var _excluded$
|
|
10664
|
+
var _excluded$A = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
10664
10665
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
10665
10666
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
10666
10667
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -10671,7 +10672,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
10671
10672
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
10672
10673
|
selectedTabKey = _ref.selectedTabKey,
|
|
10673
10674
|
tabs = _ref.tabs,
|
|
10674
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10675
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
10675
10676
|
var insets = useSafeAreaInsets();
|
|
10676
10677
|
/**
|
|
10677
10678
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -10763,13 +10764,13 @@ var StyledDivider = index$c(View)(function (_ref) {
|
|
|
10763
10764
|
}, horizontalMargin), verticalMargin);
|
|
10764
10765
|
});
|
|
10765
10766
|
|
|
10766
|
-
var _excluded$
|
|
10767
|
+
var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
10767
10768
|
var Divider = function Divider(_ref) {
|
|
10768
10769
|
var marginHorizontal = _ref.marginHorizontal,
|
|
10769
10770
|
marginVertical = _ref.marginVertical,
|
|
10770
10771
|
style = _ref.style,
|
|
10771
10772
|
testID = _ref.testID,
|
|
10772
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10773
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
10773
10774
|
return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
10774
10775
|
themeMarginHorizontal: marginHorizontal,
|
|
10775
10776
|
themeMarginVertical: marginVertical,
|
|
@@ -10900,7 +10901,7 @@ var StyledLoadingDot = index$c(View)(function (_ref) {
|
|
|
10900
10901
|
}, themeStyling());
|
|
10901
10902
|
});
|
|
10902
10903
|
|
|
10903
|
-
var _excluded$
|
|
10904
|
+
var _excluded$y = ["count", "size", "testID", "themeVariant"];
|
|
10904
10905
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
10905
10906
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
10906
10907
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -10932,7 +10933,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
10932
10933
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
10933
10934
|
testID = _ref2.testID,
|
|
10934
10935
|
themeVariant = _ref2.themeVariant,
|
|
10935
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
10936
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$y);
|
|
10936
10937
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
10937
10938
|
useEffect(function () {
|
|
10938
10939
|
var animation = Animated.loop(Animated.timing(progressAnimation.current, {
|
|
@@ -11564,11 +11565,11 @@ var Header = function Header(_ref) {
|
|
|
11564
11565
|
}))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
|
|
11565
11566
|
};
|
|
11566
11567
|
|
|
11567
|
-
var _excluded$
|
|
11568
|
+
var _excluded$x = ["scrollEventThrottle"];
|
|
11568
11569
|
var BottomSheetScrollView = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11569
11570
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
11570
11571
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
11571
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11572
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
11572
11573
|
var _useContext = useContext(BottomSheetContext),
|
|
11573
11574
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
11574
11575
|
var onScrollBeginDrag = useCallback(function (e) {
|
|
@@ -14690,12 +14691,12 @@ var Indicator = index$c(View)(function (_ref3) {
|
|
|
14690
14691
|
};
|
|
14691
14692
|
});
|
|
14692
14693
|
|
|
14693
|
-
var _excluded$
|
|
14694
|
+
var _excluded$w = ["intent", "children"];
|
|
14694
14695
|
var DataCard = function DataCard(_ref) {
|
|
14695
14696
|
var _ref$intent = _ref.intent,
|
|
14696
14697
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
14697
14698
|
children = _ref.children,
|
|
14698
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14699
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
14699
14700
|
return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
|
|
14700
14701
|
themeIntent: intent,
|
|
14701
14702
|
testID: "data-card-indicator"
|
|
@@ -14714,13 +14715,13 @@ var StyledCard$1 = index$c(View)(function (_ref) {
|
|
|
14714
14715
|
});
|
|
14715
14716
|
});
|
|
14716
14717
|
|
|
14717
|
-
var _excluded$
|
|
14718
|
+
var _excluded$v = ["intent", "children", "variant"];
|
|
14718
14719
|
var Card$1 = function Card(_ref) {
|
|
14719
14720
|
var intent = _ref.intent,
|
|
14720
14721
|
children = _ref.children,
|
|
14721
14722
|
_ref$variant = _ref.variant,
|
|
14722
14723
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
14723
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14724
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
14724
14725
|
return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
14725
14726
|
themeIntent: intent,
|
|
14726
14727
|
themeVariant: variant
|
|
@@ -14987,7 +14988,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14987
14988
|
});
|
|
14988
14989
|
CardCarousel.displayName = 'CardCarousel';
|
|
14989
14990
|
|
|
14990
|
-
var _excluded$
|
|
14991
|
+
var _excluded$u = ["rounded", "size", "testID", "style"];
|
|
14991
14992
|
/**
|
|
14992
14993
|
* @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
|
|
14993
14994
|
*/
|
|
@@ -14998,7 +14999,7 @@ var Image = function Image(_ref) {
|
|
|
14998
14999
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
14999
15000
|
testID = _ref.testID,
|
|
15000
15001
|
style = _ref.style,
|
|
15001
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15002
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
15002
15003
|
useDeprecation('Image component will soon be deprecated. Please use `Image` from `react-native` instead.');
|
|
15003
15004
|
var theme = useTheme();
|
|
15004
15005
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
@@ -15133,7 +15134,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
15133
15134
|
}, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
|
|
15134
15135
|
};
|
|
15135
15136
|
|
|
15136
|
-
var _excluded$
|
|
15137
|
+
var _excluded$t = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
15137
15138
|
function useStateFromProp(initialValue) {
|
|
15138
15139
|
var _useState = useState(initialValue),
|
|
15139
15140
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15160,7 +15161,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
15160
15161
|
testID = _ref.testID,
|
|
15161
15162
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
15162
15163
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
15163
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15164
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
15164
15165
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$1);
|
|
15165
15166
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
15166
15167
|
var theme = useTheme();
|
|
@@ -20431,7 +20432,7 @@ var StyledChipIcon = index$c(Icon)(function (_ref2) {
|
|
|
20431
20432
|
};
|
|
20432
20433
|
});
|
|
20433
20434
|
|
|
20434
|
-
var _excluded$
|
|
20435
|
+
var _excluded$s = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon", "accessible", "onBlur", "onFocus"];
|
|
20435
20436
|
var getChipLabel = function getChipLabel(label) {
|
|
20436
20437
|
if (typeof label === 'string') {
|
|
20437
20438
|
return /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
@@ -20467,7 +20468,7 @@ var Chip = function Chip(_ref) {
|
|
|
20467
20468
|
accessible = _ref.accessible,
|
|
20468
20469
|
onBlur = _ref.onBlur,
|
|
20469
20470
|
onFocus = _ref.onFocus,
|
|
20470
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
20471
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
20471
20472
|
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
20472
20473
|
var renamedVariant = getChipVariant(variant);
|
|
20473
20474
|
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
@@ -20858,7 +20859,7 @@ var StyledErrorAndMaxLengthContainer = index$c(View)(function (_ref14) {
|
|
|
20858
20859
|
};
|
|
20859
20860
|
});
|
|
20860
20861
|
|
|
20861
|
-
var _excluded$
|
|
20862
|
+
var _excluded$r = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
20862
20863
|
var getState$3 = function getState(_ref) {
|
|
20863
20864
|
var disabled = _ref.disabled,
|
|
20864
20865
|
error = _ref.error,
|
|
@@ -20974,7 +20975,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
20974
20975
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
20975
20976
|
_ref8$variant = _ref8.variant,
|
|
20976
20977
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
20977
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
20978
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$r);
|
|
20978
20979
|
var displayText = getDisplayText(value, defaultValue);
|
|
20979
20980
|
var isEmptyValue = displayText.length === 0;
|
|
20980
20981
|
var _React$useState = React__default.useState(0),
|
|
@@ -21333,30 +21334,6 @@ var useFormatDate = function useFormatDate(_ref) {
|
|
|
21333
21334
|
};
|
|
21334
21335
|
};
|
|
21335
21336
|
|
|
21336
|
-
var StyledPickerWrapper$1 = index$c(View)(function (_ref) {
|
|
21337
|
-
var theme = _ref.theme;
|
|
21338
|
-
return {
|
|
21339
|
-
height: theme.__hd__.datePicker.sizes.height,
|
|
21340
|
-
alignItems: 'center'
|
|
21341
|
-
};
|
|
21342
|
-
});
|
|
21343
|
-
var getZIndexByState$2 = function getZIndexByState(_ref2) {
|
|
21344
|
-
var themeHasError = _ref2.themeHasError;
|
|
21345
|
-
if (themeHasError) {
|
|
21346
|
-
return 1;
|
|
21347
|
-
}
|
|
21348
|
-
return 0;
|
|
21349
|
-
};
|
|
21350
|
-
var StyledTouchableOpacity$2 = index$c(TouchableOpacity)(function (_ref3) {
|
|
21351
|
-
var themeGroupStyleEnabled = _ref3.themeGroupStyleEnabled,
|
|
21352
|
-
themeHasError = _ref3.themeHasError;
|
|
21353
|
-
return _objectSpread2({}, themeGroupStyleEnabled && {
|
|
21354
|
-
zIndex: getZIndexByState$2({
|
|
21355
|
-
themeHasError: themeHasError
|
|
21356
|
-
})
|
|
21357
|
-
});
|
|
21358
|
-
});
|
|
21359
|
-
|
|
21360
21337
|
var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
21361
21338
|
var value = _ref.value,
|
|
21362
21339
|
minDate = _ref.minDate,
|
|
@@ -21375,11 +21352,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
21375
21352
|
_ref$variant = _ref.variant,
|
|
21376
21353
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21377
21354
|
renderSelectedValue = _ref.renderSelectedValue,
|
|
21378
|
-
locale = _ref.locale
|
|
21379
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
21380
|
-
inputProps = _ref.inputProps,
|
|
21381
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
21382
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
21355
|
+
locale = _ref.locale;
|
|
21383
21356
|
var _useState = useState(false),
|
|
21384
21357
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21385
21358
|
open = _useState2[0],
|
|
@@ -21397,20 +21370,17 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
21397
21370
|
onChange: onChange,
|
|
21398
21371
|
value: value
|
|
21399
21372
|
});
|
|
21400
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
21401
21373
|
var onPress = useCallback(function () {
|
|
21402
21374
|
setOpen(true);
|
|
21403
21375
|
}, []);
|
|
21404
|
-
return /*#__PURE__*/React__default.createElement(
|
|
21376
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
21405
21377
|
onPress: onPress,
|
|
21406
21378
|
disabled: disabled,
|
|
21407
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
21408
|
-
themeHasError: !!error,
|
|
21409
21379
|
testID: "date-picker-android-touchable-opacity"
|
|
21410
21380
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
21411
21381
|
pointerEvents: "none",
|
|
21412
21382
|
testID: "datePickerInputAndroid"
|
|
21413
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
21383
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
21414
21384
|
label: label,
|
|
21415
21385
|
value: displayValue,
|
|
21416
21386
|
suffix: "calendar-dates-outlined",
|
|
@@ -21421,13 +21391,13 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
21421
21391
|
helpText: helpText,
|
|
21422
21392
|
style: style,
|
|
21423
21393
|
testID: testID,
|
|
21424
|
-
renderInputValue: renderSelectedValue !== undefined && !!value ? function (
|
|
21394
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (inputProps) {
|
|
21425
21395
|
return renderSelectedValue({
|
|
21426
21396
|
date: value,
|
|
21427
21397
|
formattedDateString: displayValue
|
|
21428
|
-
},
|
|
21398
|
+
}, inputProps);
|
|
21429
21399
|
} : undefined
|
|
21430
|
-
}))
|
|
21400
|
+
})), /*#__PURE__*/React__default.createElement(AndroidDatePickerDialog, {
|
|
21431
21401
|
open: open,
|
|
21432
21402
|
onClose: function onClose() {
|
|
21433
21403
|
return setOpen(false);
|
|
@@ -21505,11 +21475,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21505
21475
|
_ref2$supportedOrient = _ref2.supportedOrientations,
|
|
21506
21476
|
supportedOrientations = _ref2$supportedOrient === void 0 ? ['portrait'] : _ref2$supportedOrient,
|
|
21507
21477
|
renderSelectedValue = _ref2.renderSelectedValue,
|
|
21508
|
-
locale = _ref2.locale
|
|
21509
|
-
TextInputComponent = _ref2.TextInputComponent,
|
|
21510
|
-
inputProps = _ref2.inputProps,
|
|
21511
|
-
_ref2$groupStyleEnabl = _ref2.groupStyleEnabled,
|
|
21512
|
-
groupStyleEnabled = _ref2$groupStyleEnabl === void 0 ? false : _ref2$groupStyleEnabl;
|
|
21478
|
+
locale = _ref2.locale;
|
|
21513
21479
|
var _useState5 = useState(false),
|
|
21514
21480
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
21515
21481
|
open = _useState6[0],
|
|
@@ -21535,20 +21501,17 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21535
21501
|
onChange: onChange,
|
|
21536
21502
|
value: value
|
|
21537
21503
|
});
|
|
21538
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
21539
21504
|
var onPress = useCallback(function () {
|
|
21540
21505
|
setOpen(true);
|
|
21541
21506
|
}, []);
|
|
21542
|
-
return /*#__PURE__*/React__default.createElement(
|
|
21507
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
21543
21508
|
onPress: onPress,
|
|
21544
21509
|
disabled: disabled,
|
|
21545
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
21546
|
-
themeHasError: !!error,
|
|
21547
21510
|
testID: "date-picker-calendar-touchable-opacity"
|
|
21548
21511
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
21549
21512
|
pointerEvents: "none",
|
|
21550
21513
|
testID: "datePickerCalendar"
|
|
21551
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
21514
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
21552
21515
|
label: label,
|
|
21553
21516
|
value: displayValue,
|
|
21554
21517
|
suffix: "calendar-dates-outlined",
|
|
@@ -21559,13 +21522,13 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21559
21522
|
helpText: helpText,
|
|
21560
21523
|
testID: testID,
|
|
21561
21524
|
style: style,
|
|
21562
|
-
renderInputValue: renderSelectedValue !== undefined && !!value ? function (
|
|
21525
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (inputProps) {
|
|
21563
21526
|
return renderSelectedValue({
|
|
21564
21527
|
date: value,
|
|
21565
21528
|
formattedDateString: displayValue
|
|
21566
|
-
},
|
|
21529
|
+
}, inputProps);
|
|
21567
21530
|
} : undefined
|
|
21568
|
-
}))
|
|
21531
|
+
})), /*#__PURE__*/React__default.createElement(BottomSheet, {
|
|
21569
21532
|
open: open,
|
|
21570
21533
|
onRequestClose: function onRequestClose() {
|
|
21571
21534
|
return setOpen(false);
|
|
@@ -21595,6 +21558,14 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
21595
21558
|
}))));
|
|
21596
21559
|
};
|
|
21597
21560
|
|
|
21561
|
+
var StyledPickerWrapper$1 = index$c(View)(function (_ref) {
|
|
21562
|
+
var theme = _ref.theme;
|
|
21563
|
+
return {
|
|
21564
|
+
height: theme.__hd__.datePicker.sizes.height,
|
|
21565
|
+
alignItems: 'center'
|
|
21566
|
+
};
|
|
21567
|
+
});
|
|
21568
|
+
|
|
21598
21569
|
var IOSDatePickerDialog = function IOSDatePickerDialog(_ref) {
|
|
21599
21570
|
var label = _ref.label,
|
|
21600
21571
|
open = _ref.open,
|
|
@@ -21687,11 +21658,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21687
21658
|
_ref$variant = _ref.variant,
|
|
21688
21659
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21689
21660
|
locale = _ref.locale,
|
|
21690
|
-
renderSelectedValue = _ref.renderSelectedValue
|
|
21691
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
21692
|
-
inputProps = _ref.inputProps,
|
|
21693
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
21694
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
21661
|
+
renderSelectedValue = _ref.renderSelectedValue;
|
|
21695
21662
|
var _useState = useState(false),
|
|
21696
21663
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21697
21664
|
open = _useState2[0],
|
|
@@ -21711,20 +21678,17 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21711
21678
|
onChange: onChange,
|
|
21712
21679
|
value: value
|
|
21713
21680
|
});
|
|
21714
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
21715
21681
|
var onPress = useCallback(function () {
|
|
21716
21682
|
setOpen(true);
|
|
21717
21683
|
}, []);
|
|
21718
|
-
return /*#__PURE__*/React__default.createElement(
|
|
21684
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
21719
21685
|
onPress: onPress,
|
|
21720
21686
|
disabled: disabled,
|
|
21721
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
21722
|
-
themeHasError: !!error,
|
|
21723
21687
|
testID: "date-picker-ios-touchable-opacity"
|
|
21724
21688
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
21725
21689
|
pointerEvents: "none",
|
|
21726
21690
|
testID: "datePickerInputIOS"
|
|
21727
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
21691
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
21728
21692
|
label: label,
|
|
21729
21693
|
value: displayValue,
|
|
21730
21694
|
suffix: "calendar-dates-outlined",
|
|
@@ -21735,13 +21699,13 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21735
21699
|
helpText: helpText,
|
|
21736
21700
|
testID: testID,
|
|
21737
21701
|
style: style,
|
|
21738
|
-
renderInputValue: renderSelectedValue !== undefined && !!value ? function (
|
|
21702
|
+
renderInputValue: renderSelectedValue !== undefined && !!value ? function (inputProps) {
|
|
21739
21703
|
return renderSelectedValue({
|
|
21740
21704
|
date: value,
|
|
21741
21705
|
formattedDateString: displayValue
|
|
21742
|
-
},
|
|
21706
|
+
}, inputProps);
|
|
21743
21707
|
} : undefined
|
|
21744
|
-
}))
|
|
21708
|
+
})), /*#__PURE__*/React__default.createElement(IOSDatePickerDialog, {
|
|
21745
21709
|
value: value,
|
|
21746
21710
|
onChange: onChange,
|
|
21747
21711
|
open: open,
|
|
@@ -21758,27 +21722,21 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
21758
21722
|
}));
|
|
21759
21723
|
};
|
|
21760
21724
|
|
|
21761
|
-
var _excluded$
|
|
21725
|
+
var _excluded$q = ["variant"];
|
|
21762
21726
|
var DatePicker = function DatePicker(_ref) {
|
|
21763
21727
|
var _ref$variant = _ref.variant,
|
|
21764
21728
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
21765
|
-
|
|
21766
|
-
TextInputComponent = _ref$TextInputCompone === void 0 ? TextInput : _ref$TextInputCompone,
|
|
21767
|
-
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
21729
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
21768
21730
|
if (variant === 'calendar') {
|
|
21769
|
-
return /*#__PURE__*/React__default.createElement(DatePickerCalendar,
|
|
21770
|
-
TextInputComponent: TextInputComponent
|
|
21771
|
-
}));
|
|
21731
|
+
return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
|
|
21772
21732
|
}
|
|
21773
21733
|
if (Platform.OS === 'ios') {
|
|
21774
21734
|
return /*#__PURE__*/React__default.createElement(DatePickerIOS, _extends$1({}, props, {
|
|
21775
|
-
variant: variant
|
|
21776
|
-
TextInputComponent: TextInputComponent
|
|
21735
|
+
variant: variant
|
|
21777
21736
|
}));
|
|
21778
21737
|
}
|
|
21779
21738
|
return /*#__PURE__*/React__default.createElement(DatePickerAndroid, _extends$1({}, props, {
|
|
21780
|
-
variant: variant
|
|
21781
|
-
TextInputComponent: TextInputComponent
|
|
21739
|
+
variant: variant
|
|
21782
21740
|
}));
|
|
21783
21741
|
};
|
|
21784
21742
|
|
|
@@ -23774,21 +23732,14 @@ var StyledErrorButtonContainer = index$c(View)(function (_ref3) {
|
|
|
23774
23732
|
paddingVertical: theme.__hd__.error.space.button.wrapperVerticalPadding
|
|
23775
23733
|
};
|
|
23776
23734
|
});
|
|
23777
|
-
var
|
|
23735
|
+
var StyledErrorButtonSecondary = index$c(CompoundButton)(function (_ref4) {
|
|
23778
23736
|
var theme = _ref4.theme;
|
|
23779
23737
|
return {
|
|
23780
|
-
|
|
23738
|
+
marginTop: theme.__hd__.error.space.button.margin
|
|
23781
23739
|
};
|
|
23782
23740
|
});
|
|
23783
|
-
var
|
|
23741
|
+
var StyledErrorImageContainer = index$c(View)(function (_ref5) {
|
|
23784
23742
|
var theme = _ref5.theme;
|
|
23785
|
-
return {
|
|
23786
|
-
marginTop: theme.__hd__.error.space.button.margin,
|
|
23787
|
-
padding: theme.__hd__.error.space.button.padding
|
|
23788
|
-
};
|
|
23789
|
-
});
|
|
23790
|
-
var StyledErrorImageContainer = index$c(View)(function (_ref6) {
|
|
23791
|
-
var theme = _ref6.theme;
|
|
23792
23743
|
return {
|
|
23793
23744
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
23794
23745
|
width: theme.__hd__.error.sizes.image,
|
|
@@ -23796,8 +23747,8 @@ var StyledErrorImageContainer = index$c(View)(function (_ref6) {
|
|
|
23796
23747
|
alignItems: 'center'
|
|
23797
23748
|
};
|
|
23798
23749
|
});
|
|
23799
|
-
var StyledErrorIconContainer = index$c(View)(function (
|
|
23800
|
-
var theme =
|
|
23750
|
+
var StyledErrorIconContainer = index$c(View)(function (_ref6) {
|
|
23751
|
+
var theme = _ref6.theme;
|
|
23801
23752
|
return {
|
|
23802
23753
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
23803
23754
|
width: theme.__hd__.error.sizes.icon,
|
|
@@ -23805,8 +23756,8 @@ var StyledErrorIconContainer = index$c(View)(function (_ref7) {
|
|
|
23805
23756
|
alignItems: 'center'
|
|
23806
23757
|
};
|
|
23807
23758
|
});
|
|
23808
|
-
var StyledErrorImage = index$c(Image)(function (
|
|
23809
|
-
var theme =
|
|
23759
|
+
var StyledErrorImage = index$c(Image)(function (_ref7) {
|
|
23760
|
+
var theme = _ref7.theme;
|
|
23810
23761
|
return {
|
|
23811
23762
|
marginBottom: theme.__hd__.error.space.imageMarginBottom,
|
|
23812
23763
|
width: theme.__hd__.error.sizes.image,
|
|
@@ -23814,23 +23765,23 @@ var StyledErrorImage = index$c(Image)(function (_ref8) {
|
|
|
23814
23765
|
resizeMode: 'contain'
|
|
23815
23766
|
};
|
|
23816
23767
|
});
|
|
23817
|
-
var StyledErrorTitle = index$c(Typography.Title)(function (
|
|
23818
|
-
var theme =
|
|
23768
|
+
var StyledErrorTitle = index$c(Typography.Title)(function (_ref8) {
|
|
23769
|
+
var theme = _ref8.theme;
|
|
23819
23770
|
return {
|
|
23820
23771
|
textAlign: 'center',
|
|
23821
23772
|
marginBottom: theme.__hd__.error.space.titleMarginBottom,
|
|
23822
23773
|
color: theme.__hd__.error.colors.title
|
|
23823
23774
|
};
|
|
23824
23775
|
});
|
|
23825
|
-
var StyledErrorDescription = index$c(Typography.Body)(function (
|
|
23826
|
-
var theme =
|
|
23776
|
+
var StyledErrorDescription = index$c(Typography.Body)(function (_ref9) {
|
|
23777
|
+
var theme = _ref9.theme;
|
|
23827
23778
|
return {
|
|
23828
23779
|
textAlign: 'center',
|
|
23829
23780
|
color: theme.__hd__.error.colors.description
|
|
23830
23781
|
};
|
|
23831
23782
|
});
|
|
23832
23783
|
|
|
23833
|
-
var _excluded$
|
|
23784
|
+
var _excluded$p = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
|
|
23834
23785
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
23835
23786
|
var renderImage$1 = function renderImage(image) {
|
|
23836
23787
|
if (/*#__PURE__*/isValidElement(image)) {
|
|
@@ -23871,7 +23822,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
23871
23822
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
23872
23823
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
23873
23824
|
icon = _ref2.icon,
|
|
23874
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
23825
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$p);
|
|
23875
23826
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
23876
23827
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
23877
23828
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -23886,7 +23837,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
23886
23837
|
typeface: "playful"
|
|
23887
23838
|
}, title), description && /*#__PURE__*/React__default.createElement(StyledErrorDescription, {
|
|
23888
23839
|
typeface: "playful"
|
|
23889
|
-
}, description)), showButtonContainer && /*#__PURE__*/React__default.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React__default.createElement(
|
|
23840
|
+
}, description)), showButtonContainer && /*#__PURE__*/React__default.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
23890
23841
|
variant: "filled",
|
|
23891
23842
|
text: ctaText,
|
|
23892
23843
|
onPress: onCtaPress
|
|
@@ -24017,8 +23968,9 @@ var StyledIcon$3 = index$c(Icon)(function (_ref3) {
|
|
|
24017
23968
|
var AnimatedTouchableHighlight = Animated.createAnimatedComponent(TouchableOpacity);
|
|
24018
23969
|
var StyledFAB$2 = index$c(AnimatedTouchableHighlight)(function (_ref) {
|
|
24019
23970
|
var theme = _ref.theme,
|
|
24020
|
-
themeActive = _ref.themeActive
|
|
24021
|
-
|
|
23971
|
+
themeActive = _ref.themeActive,
|
|
23972
|
+
themeIconOnly = _ref.themeIconOnly;
|
|
23973
|
+
return _objectSpread2(_objectSpread2({
|
|
24022
23974
|
backgroundColor: themeActive ? theme.__hd__.fab.colors.buttonActiveBackground : theme.__hd__.fab.colors.buttonBackground,
|
|
24023
23975
|
borderRadius: theme.radii.rounded,
|
|
24024
23976
|
alignItems: 'center',
|
|
@@ -24027,7 +23979,9 @@ var StyledFAB$2 = index$c(AnimatedTouchableHighlight)(function (_ref) {
|
|
|
24027
23979
|
padding: theme.__hd__.fab.space.containerPadding,
|
|
24028
23980
|
flexDirection: 'row',
|
|
24029
23981
|
height: theme.__hd__.fab.sizes.height
|
|
24030
|
-
},
|
|
23982
|
+
}, themeIconOnly && {
|
|
23983
|
+
width: theme.__hd__.fab.sizes.width
|
|
23984
|
+
}), theme.__hd__.fab.shadows["default"]);
|
|
24031
23985
|
});
|
|
24032
23986
|
var StyledFABIcon = index$c(Icon)(function (_ref2) {
|
|
24033
23987
|
var theme = _ref2.theme;
|
|
@@ -24097,13 +24051,13 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
24097
24051
|
})), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
|
|
24098
24052
|
};
|
|
24099
24053
|
|
|
24100
|
-
var _excluded$
|
|
24054
|
+
var _excluded$o = ["active"];
|
|
24101
24055
|
var AnimatedIcons = Animated.createAnimatedComponent(/*#__PURE__*/React__default.forwardRef(function (props, _) {
|
|
24102
24056
|
return /*#__PURE__*/React__default.createElement(StyledFABIcon, props);
|
|
24103
24057
|
}));
|
|
24104
24058
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
24105
24059
|
var active = _ref.active,
|
|
24106
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
24060
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
24107
24061
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
24108
24062
|
useEffect(function () {
|
|
24109
24063
|
var animation = Animated.spring(rotateAnimation.current, {
|
|
@@ -24155,12 +24109,15 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
24155
24109
|
};
|
|
24156
24110
|
var IconWithTextContent = function IconWithTextContent(_ref2) {
|
|
24157
24111
|
var icon = _ref2.icon,
|
|
24158
|
-
title = _ref2.title
|
|
24112
|
+
title = _ref2.title,
|
|
24113
|
+
titleStyle = _ref2.titleStyle;
|
|
24159
24114
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer$1, null, /*#__PURE__*/React__default.createElement(StyledFABIcon, {
|
|
24160
24115
|
size: "xsmall",
|
|
24161
24116
|
icon: icon,
|
|
24162
24117
|
testID: "styled-fab-icon"
|
|
24163
|
-
})), /*#__PURE__*/React__default.createElement(StyledFABText,
|
|
24118
|
+
})), /*#__PURE__*/React__default.createElement(StyledFABText, {
|
|
24119
|
+
style: titleStyle
|
|
24120
|
+
}, title));
|
|
24164
24121
|
};
|
|
24165
24122
|
var animateWidth = function animateWidth() {
|
|
24166
24123
|
LayoutAnimation.configureNext({
|
|
@@ -24171,7 +24128,9 @@ var animateWidth = function animateWidth() {
|
|
|
24171
24128
|
}
|
|
24172
24129
|
});
|
|
24173
24130
|
};
|
|
24174
|
-
|
|
24131
|
+
// Full implementation — accepts InternalFABProps including titleStyle.
|
|
24132
|
+
// Exported as FABInternal for use by sibling HD components (e.g. FAB.Pair).
|
|
24133
|
+
var FABWithTitleStyle = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
24175
24134
|
var _StyleSheet$flatten, _StyleSheet$flatten2;
|
|
24176
24135
|
var onPress = _ref3.onPress,
|
|
24177
24136
|
title = _ref3.title,
|
|
@@ -24179,7 +24138,8 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
24179
24138
|
iconAnimated = _ref3.animated,
|
|
24180
24139
|
testID = _ref3.testID,
|
|
24181
24140
|
active = _ref3.active,
|
|
24182
|
-
style = _ref3.style
|
|
24141
|
+
style = _ref3.style,
|
|
24142
|
+
titleStyle = _ref3.titleStyle;
|
|
24183
24143
|
var theme = useTheme();
|
|
24184
24144
|
var _React$useState = React__default.useState({
|
|
24185
24145
|
hideTitle: false,
|
|
@@ -24284,6 +24244,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
24284
24244
|
},
|
|
24285
24245
|
activeOpacity: 0.8,
|
|
24286
24246
|
onPress: onPress,
|
|
24247
|
+
themeIconOnly: isIconOnly,
|
|
24287
24248
|
style: [style, {
|
|
24288
24249
|
bottom: displayState.hideButton ? -(marginBottom + theme.__hd__.fab.sizes.height * 2) : (_StyleSheet$flatten2 = StyleSheet$1.flatten(style)) === null || _StyleSheet$flatten2 === void 0 ? void 0 : _StyleSheet$flatten2.bottom,
|
|
24289
24250
|
transform: [{
|
|
@@ -24309,9 +24270,18 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
24309
24270
|
icon: active ? 'add' : icon
|
|
24310
24271
|
}) : /*#__PURE__*/React__default.createElement(IconWithTextContent, {
|
|
24311
24272
|
icon: icon,
|
|
24312
|
-
title: title
|
|
24273
|
+
title: title,
|
|
24274
|
+
titleStyle: titleStyle
|
|
24313
24275
|
})));
|
|
24314
24276
|
});
|
|
24277
|
+
FABWithTitleStyle.displayName = 'FAB';
|
|
24278
|
+
// Public export — clean FABProps, no internal props exposed.
|
|
24279
|
+
// Docgen reads this component and sees only FABProps.
|
|
24280
|
+
var FAB$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
24281
|
+
return /*#__PURE__*/React__default.createElement(FABWithTitleStyle, _extends$1({}, props, {
|
|
24282
|
+
ref: ref
|
|
24283
|
+
}));
|
|
24284
|
+
});
|
|
24315
24285
|
FAB$1.displayName = 'FAB';
|
|
24316
24286
|
|
|
24317
24287
|
var StyledContainer$5 = index$c(View)({
|
|
@@ -24480,7 +24450,7 @@ var StyledFABPairWrapper = index$c(Box)({
|
|
|
24480
24450
|
justifyContent: 'center',
|
|
24481
24451
|
alignItems: 'center'
|
|
24482
24452
|
});
|
|
24483
|
-
var StyledFAB = index$c(
|
|
24453
|
+
var StyledFAB = index$c(FABWithTitleStyle)(function (_ref) {
|
|
24484
24454
|
var theme = _ref.theme,
|
|
24485
24455
|
_ref$iconOnly = _ref.iconOnly,
|
|
24486
24456
|
iconOnly = _ref$iconOnly === void 0 ? false : _ref$iconOnly,
|
|
@@ -24493,15 +24463,16 @@ var StyledFAB = index$c(FAB$1)(function (_ref) {
|
|
|
24493
24463
|
};
|
|
24494
24464
|
});
|
|
24495
24465
|
|
|
24496
|
-
var _excluded$
|
|
24466
|
+
var _excluded$n = ["fabConfig", "onCancel"];
|
|
24497
24467
|
var Pair = function Pair(_ref) {
|
|
24498
24468
|
var fabConfig = _ref.fabConfig,
|
|
24499
24469
|
onCancel = _ref.onCancel,
|
|
24500
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
24470
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
24501
24471
|
var icon = fabConfig.icon,
|
|
24502
24472
|
title = fabConfig.title,
|
|
24503
24473
|
onPress = fabConfig.onPress,
|
|
24504
24474
|
testID = fabConfig.testID;
|
|
24475
|
+
var theme = useTheme();
|
|
24505
24476
|
return /*#__PURE__*/React__default.createElement(StyledFABPairWrapper, props, /*#__PURE__*/React__default.createElement(StyledFAB, {
|
|
24506
24477
|
icon: "cancel",
|
|
24507
24478
|
onPress: onCancel,
|
|
@@ -24513,7 +24484,11 @@ var Pair = function Pair(_ref) {
|
|
|
24513
24484
|
onPress: onPress,
|
|
24514
24485
|
testID: testID,
|
|
24515
24486
|
iconOnly: !title,
|
|
24516
|
-
isLast: true
|
|
24487
|
+
isLast: true,
|
|
24488
|
+
titleStyle: {
|
|
24489
|
+
fontSize: theme.fontSizes.medium,
|
|
24490
|
+
fontFamily: theme.fonts.neutral.regular
|
|
24491
|
+
}
|
|
24517
24492
|
}));
|
|
24518
24493
|
};
|
|
24519
24494
|
|
|
@@ -25227,11 +25202,11 @@ var StyledFocusIcon = index$c(Icon)(function (_ref7) {
|
|
|
25227
25202
|
};
|
|
25228
25203
|
});
|
|
25229
25204
|
|
|
25230
|
-
var _excluded$
|
|
25205
|
+
var _excluded$m = ["style", "testID"];
|
|
25231
25206
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
25232
25207
|
var style = _ref.style,
|
|
25233
25208
|
testID = _ref.testID,
|
|
25234
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25209
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
25235
25210
|
return /*#__PURE__*/React__default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
25236
25211
|
style: style,
|
|
25237
25212
|
testID: testID
|
|
@@ -25241,7 +25216,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
25241
25216
|
}));
|
|
25242
25217
|
};
|
|
25243
25218
|
|
|
25244
|
-
var _excluded$
|
|
25219
|
+
var _excluded$l = ["style", "testID", "state", "image", "icon"];
|
|
25245
25220
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
25246
25221
|
var iconMap = {
|
|
25247
25222
|
idle: undefined,
|
|
@@ -25257,7 +25232,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
25257
25232
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
25258
25233
|
image = _ref.image,
|
|
25259
25234
|
icon = _ref.icon,
|
|
25260
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25235
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
25261
25236
|
var badgeIcon = getBadgeIconName(state);
|
|
25262
25237
|
return /*#__PURE__*/React__default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
25263
25238
|
style: style,
|
|
@@ -25578,7 +25553,7 @@ var THEME_INTENT_MAP = {
|
|
|
25578
25553
|
'archived-inverted': 'archivedInverted'
|
|
25579
25554
|
};
|
|
25580
25555
|
|
|
25581
|
-
var _excluded$
|
|
25556
|
+
var _excluded$k = ["value", "renderValue", "intent", "style", "testID"];
|
|
25582
25557
|
var defaultRenderValue = function defaultRenderValue(value) {
|
|
25583
25558
|
return "".concat(value, "%");
|
|
25584
25559
|
};
|
|
@@ -25591,7 +25566,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
|
|
|
25591
25566
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25592
25567
|
style = _ref.style,
|
|
25593
25568
|
testID = _ref.testID,
|
|
25594
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25569
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
25595
25570
|
var theme = useTheme$1();
|
|
25596
25571
|
var size = theme.__hd__.progress.sizes.circleDiameter;
|
|
25597
25572
|
var strokeWidth = theme.__hd__.progress.sizes.circleCompletenessHeight;
|
|
@@ -25661,14 +25636,14 @@ var StyledInner = index$c(Animated.View)(function (_ref2) {
|
|
|
25661
25636
|
};
|
|
25662
25637
|
});
|
|
25663
25638
|
|
|
25664
|
-
var _excluded$
|
|
25639
|
+
var _excluded$j = ["value", "intent", "style", "testID"];
|
|
25665
25640
|
var ProgressBar = function ProgressBar(_ref) {
|
|
25666
25641
|
var value = _ref.value,
|
|
25667
25642
|
_ref$intent = _ref.intent,
|
|
25668
25643
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25669
25644
|
style = _ref.style,
|
|
25670
25645
|
testID = _ref.testID,
|
|
25671
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25646
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
25672
25647
|
var _useState = useState(0),
|
|
25673
25648
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25674
25649
|
width = _useState2[0],
|
|
@@ -25758,7 +25733,7 @@ var StyledSingleStep = index$c(Box)(function (_ref3) {
|
|
|
25758
25733
|
};
|
|
25759
25734
|
});
|
|
25760
25735
|
|
|
25761
|
-
var _excluded$
|
|
25736
|
+
var _excluded$i = ["steps", "current", "onLayout"];
|
|
25762
25737
|
var getStepState = function getStepState(current, index) {
|
|
25763
25738
|
if (index < current) {
|
|
25764
25739
|
return 'complete';
|
|
@@ -25772,7 +25747,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
25772
25747
|
var steps = _ref.steps,
|
|
25773
25748
|
current = _ref.current,
|
|
25774
25749
|
onLayout = _ref.onLayout,
|
|
25775
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
25750
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
25776
25751
|
var theme = useTheme$1();
|
|
25777
25752
|
var _React$useState = React__default.useState(0),
|
|
25778
25753
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -26069,7 +26044,7 @@ var StyledEmptyText = index$c(Typography.Caption)(function (_ref4) {
|
|
|
26069
26044
|
};
|
|
26070
26045
|
});
|
|
26071
26046
|
|
|
26072
|
-
var _excluded$
|
|
26047
|
+
var _excluded$h = ["data", "headerConfig", "emptyText", "legendConfig", "styleConfig", "style", "testID", "collapsable"];
|
|
26073
26048
|
var ProgressSegmentedBar = function ProgressSegmentedBar(_ref) {
|
|
26074
26049
|
var data = _ref.data,
|
|
26075
26050
|
headerConfig = _ref.headerConfig,
|
|
@@ -26079,7 +26054,7 @@ var ProgressSegmentedBar = function ProgressSegmentedBar(_ref) {
|
|
|
26079
26054
|
style = _ref.style,
|
|
26080
26055
|
testID = _ref.testID,
|
|
26081
26056
|
collapsable = _ref.collapsable,
|
|
26082
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
26057
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
26083
26058
|
var values = React__default.useMemo(function () {
|
|
26084
26059
|
return data.map(function (s) {
|
|
26085
26060
|
return s.data;
|
|
@@ -26449,14 +26424,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
26449
26424
|
}, dotProps))));
|
|
26450
26425
|
};
|
|
26451
26426
|
|
|
26452
|
-
var _excluded$
|
|
26427
|
+
var _excluded$g = ["testID", "size", "intent"];
|
|
26453
26428
|
var Spinner = function Spinner(_ref) {
|
|
26454
26429
|
var testID = _ref.testID,
|
|
26455
26430
|
_ref$size = _ref.size,
|
|
26456
26431
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
26457
26432
|
_ref$intent = _ref.intent,
|
|
26458
26433
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
26459
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
26434
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
26460
26435
|
return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
|
|
26461
26436
|
testID: testID
|
|
26462
26437
|
}, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
|
|
@@ -26489,7 +26464,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
26489
26464
|
}, children);
|
|
26490
26465
|
};
|
|
26491
26466
|
|
|
26492
|
-
var _excluded$
|
|
26467
|
+
var _excluded$f = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
26493
26468
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
26494
26469
|
var trans = progress.interpolate({
|
|
26495
26470
|
inputRange: [0, 1],
|
|
@@ -26518,7 +26493,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
26518
26493
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
26519
26494
|
_ref$variant = _ref.variant,
|
|
26520
26495
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
26521
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
26496
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
26522
26497
|
var theme = useTheme();
|
|
26523
26498
|
var _useWindowDimensions = useWindowDimensions(),
|
|
26524
26499
|
width = _useWindowDimensions.width;
|
|
@@ -26846,24 +26821,8 @@ var StyledSectionList = index$c(SectionList)(function (_ref4) {
|
|
|
26846
26821
|
paddingHorizontal: theme.__hd__.select.space.optionListHorizontalPadding
|
|
26847
26822
|
};
|
|
26848
26823
|
});
|
|
26849
|
-
var getZIndexByState$1 = function getZIndexByState(_ref5) {
|
|
26850
|
-
var themeHasError = _ref5.themeHasError;
|
|
26851
|
-
if (themeHasError) {
|
|
26852
|
-
return 1;
|
|
26853
|
-
}
|
|
26854
|
-
return 0;
|
|
26855
|
-
};
|
|
26856
|
-
var StyledTouchableOpacity$1 = index$c(TouchableOpacity)(function (_ref6) {
|
|
26857
|
-
var themeGroupStyleEnabled = _ref6.themeGroupStyleEnabled,
|
|
26858
|
-
themeHasError = _ref6.themeHasError;
|
|
26859
|
-
return _objectSpread2({}, themeGroupStyleEnabled && {
|
|
26860
|
-
zIndex: getZIndexByState$1({
|
|
26861
|
-
themeHasError: themeHasError
|
|
26862
|
-
})
|
|
26863
|
-
});
|
|
26864
|
-
});
|
|
26865
26824
|
|
|
26866
|
-
var _excluded$
|
|
26825
|
+
var _excluded$e = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
26867
26826
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
26868
26827
|
var keyExtractor = _ref.keyExtractor,
|
|
26869
26828
|
loading = _ref.loading,
|
|
@@ -26872,7 +26831,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
26872
26831
|
sections = _ref.sections,
|
|
26873
26832
|
renderItem = _ref.renderItem,
|
|
26874
26833
|
sectionListRef = _ref.sectionListRef,
|
|
26875
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26834
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
26876
26835
|
var theme = useTheme$1();
|
|
26877
26836
|
var _useState = useState(false),
|
|
26878
26837
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -26956,7 +26915,7 @@ var isOptionSelected = function isOptionSelected(value, option) {
|
|
|
26956
26915
|
});
|
|
26957
26916
|
};
|
|
26958
26917
|
|
|
26959
|
-
var _excluded$
|
|
26918
|
+
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
26960
26919
|
var OptionList$1 = function OptionList(_ref) {
|
|
26961
26920
|
var keyExtractor = _ref.keyExtractor,
|
|
26962
26921
|
loading = _ref.loading,
|
|
@@ -26967,7 +26926,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
26967
26926
|
renderOption = _ref.renderOption,
|
|
26968
26927
|
value = _ref.value,
|
|
26969
26928
|
sectionListRef = _ref.sectionListRef,
|
|
26970
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26929
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
26971
26930
|
var renderItem = function renderItem(info) {
|
|
26972
26931
|
var item = info.item;
|
|
26973
26932
|
var selected = isOptionSelected(value, item);
|
|
@@ -27002,7 +26961,6 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
27002
26961
|
}, rest));
|
|
27003
26962
|
};
|
|
27004
26963
|
|
|
27005
|
-
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"];
|
|
27006
26964
|
function MultiSelect(_ref) {
|
|
27007
26965
|
var footerLabel = _ref.footerLabel,
|
|
27008
26966
|
label = _ref.label,
|
|
@@ -27029,10 +26987,7 @@ function MultiSelect(_ref) {
|
|
|
27029
26987
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
27030
26988
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
27031
26989
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
27032
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
27033
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
27034
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
27035
|
-
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
26990
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi;
|
|
27036
26991
|
var _useKeyboard = useKeyboard(),
|
|
27037
26992
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
27038
26993
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -27055,7 +27010,6 @@ function MultiSelect(_ref) {
|
|
|
27055
27010
|
var rawValue = value.length > 0 ? value.join(', ') : '';
|
|
27056
27011
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
27057
27012
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
27058
|
-
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
27059
27013
|
var onPress = useCallback(function () {
|
|
27060
27014
|
setOpen(true);
|
|
27061
27015
|
}, []);
|
|
@@ -27068,14 +27022,12 @@ function MultiSelect(_ref) {
|
|
|
27068
27022
|
}, [open, value]);
|
|
27069
27023
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(View, {
|
|
27070
27024
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
27071
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
27025
|
+
}, /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
27072
27026
|
onPress: onPress,
|
|
27073
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
27074
|
-
themeHasError: !!error,
|
|
27075
27027
|
testID: "multi-select-touchable-opacity"
|
|
27076
27028
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
27077
27029
|
pointerEvents: "none"
|
|
27078
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
27030
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
27079
27031
|
label: label,
|
|
27080
27032
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
27081
27033
|
suffix: selectSuffix,
|
|
@@ -27087,8 +27039,8 @@ function MultiSelect(_ref) {
|
|
|
27087
27039
|
pointerEvents: "none",
|
|
27088
27040
|
style: style,
|
|
27089
27041
|
testID: testID,
|
|
27090
|
-
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (
|
|
27091
|
-
return renderSelectedValue(value,
|
|
27042
|
+
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (nativeInputProps) {
|
|
27043
|
+
return renderSelectedValue(value, nativeInputProps);
|
|
27092
27044
|
} : undefined
|
|
27093
27045
|
}))))), /*#__PURE__*/React__default.createElement(BottomSheet, {
|
|
27094
27046
|
variant: bottomSheetVariant || 'fixed',
|
|
@@ -27125,7 +27077,7 @@ function MultiSelect(_ref) {
|
|
|
27125
27077
|
}
|
|
27126
27078
|
},
|
|
27127
27079
|
supportedOrientations: supportedOrientations
|
|
27128
|
-
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(
|
|
27080
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
27129
27081
|
editable: true,
|
|
27130
27082
|
placeholder: "Search",
|
|
27131
27083
|
suffix: "search-outlined",
|
|
@@ -27176,7 +27128,7 @@ var StyledOptionList = index$c(BaseOptionList)(function (_ref) {
|
|
|
27176
27128
|
};
|
|
27177
27129
|
});
|
|
27178
27130
|
|
|
27179
|
-
var _excluded$
|
|
27131
|
+
var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
27180
27132
|
var OptionList = function OptionList(_ref) {
|
|
27181
27133
|
var keyExtractor = _ref.keyExtractor,
|
|
27182
27134
|
loading = _ref.loading,
|
|
@@ -27187,7 +27139,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
27187
27139
|
renderOption = _ref.renderOption,
|
|
27188
27140
|
value = _ref.value,
|
|
27189
27141
|
sectionListRef = _ref.sectionListRef,
|
|
27190
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27142
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
27191
27143
|
var renderItem = function renderItem(info) {
|
|
27192
27144
|
var item = info.item;
|
|
27193
27145
|
var selected = _deepCompareValue(item.value, value);
|
|
@@ -27223,7 +27175,6 @@ var OptionList = function OptionList(_ref) {
|
|
|
27223
27175
|
}, rest));
|
|
27224
27176
|
};
|
|
27225
27177
|
|
|
27226
|
-
var _excluded$c = ["label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig", "groupStyleEnabled"];
|
|
27227
27178
|
var SingleSelect = function SingleSelect(_ref) {
|
|
27228
27179
|
var _flatOptions$find;
|
|
27229
27180
|
var label = _ref.label,
|
|
@@ -27250,10 +27201,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27250
27201
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
27251
27202
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta,
|
|
27252
27203
|
_ref$bottomSheetConfi = _ref.bottomSheetConfig,
|
|
27253
|
-
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi
|
|
27254
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
27255
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
27256
|
-
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
27204
|
+
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi;
|
|
27257
27205
|
var _useKeyboard = useKeyboard(),
|
|
27258
27206
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
27259
27207
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -27270,7 +27218,6 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27270
27218
|
var rawValue = value ? String(value) : undefined;
|
|
27271
27219
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
27272
27220
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
27273
|
-
var TextInputComponent = rest.TextInputComponent || TextInput;
|
|
27274
27221
|
var onPress = useCallback(function () {
|
|
27275
27222
|
setOpen(true);
|
|
27276
27223
|
}, []);
|
|
@@ -27282,14 +27229,12 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27282
27229
|
}, [editable, disabled, open]);
|
|
27283
27230
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(View, {
|
|
27284
27231
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
27285
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
27232
|
+
}, /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
27286
27233
|
onPress: onPress,
|
|
27287
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
27288
|
-
themeHasError: !!error,
|
|
27289
27234
|
testID: "single-select-touchable-opacity"
|
|
27290
27235
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
27291
27236
|
pointerEvents: "none"
|
|
27292
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
27237
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
27293
27238
|
label: label,
|
|
27294
27239
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
27295
27240
|
suffix: selectSuffix,
|
|
@@ -27301,8 +27246,8 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27301
27246
|
pointerEvents: "none",
|
|
27302
27247
|
style: style,
|
|
27303
27248
|
testID: testID,
|
|
27304
|
-
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (
|
|
27305
|
-
return renderSelectedValue(value,
|
|
27249
|
+
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (nativeInputProps) {
|
|
27250
|
+
return renderSelectedValue(value, nativeInputProps);
|
|
27306
27251
|
} : undefined
|
|
27307
27252
|
}))))), /*#__PURE__*/React__default.createElement(BottomSheet, {
|
|
27308
27253
|
variant: bottomSheetVariant || 'fixed',
|
|
@@ -27323,7 +27268,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
27323
27268
|
}
|
|
27324
27269
|
},
|
|
27325
27270
|
supportedOrientations: supportedOrientations
|
|
27326
|
-
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(
|
|
27271
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
27327
27272
|
editable: true,
|
|
27328
27273
|
placeholder: "Search",
|
|
27329
27274
|
suffix: "search-outlined",
|
|
@@ -27538,16 +27483,9 @@ var StyledSuccessButtonContainer = index$c(View)(function (_ref8) {
|
|
|
27538
27483
|
paddingVertical: theme.__hd__.success.space.button.wrapperVerticalPadding
|
|
27539
27484
|
};
|
|
27540
27485
|
});
|
|
27541
|
-
var
|
|
27486
|
+
var StyledSuccessButtonSecondary = index$c(CompoundButton)(function (_ref9) {
|
|
27542
27487
|
var theme = _ref9.theme;
|
|
27543
27488
|
return {
|
|
27544
|
-
padding: theme.__hd__.success.space.button.padding
|
|
27545
|
-
};
|
|
27546
|
-
});
|
|
27547
|
-
var StyledSuccessButtonSecondary = index$c(CompoundButton)(function (_ref10) {
|
|
27548
|
-
var theme = _ref10.theme;
|
|
27549
|
-
return {
|
|
27550
|
-
padding: theme.__hd__.success.space.button.padding,
|
|
27551
27489
|
marginTop: theme.__hd__.success.space.button.secondaryCTAMarginTop
|
|
27552
27490
|
};
|
|
27553
27491
|
});
|
|
@@ -27608,7 +27546,7 @@ var SuccessPage = function SuccessPage(_ref2) {
|
|
|
27608
27546
|
}), /*#__PURE__*/React__default.createElement(StyledSuccessTitle, {
|
|
27609
27547
|
level: "h4",
|
|
27610
27548
|
typeface: "playful"
|
|
27611
|
-
}, title), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__default.createElement(
|
|
27549
|
+
}, title), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
27612
27550
|
text: ctaText,
|
|
27613
27551
|
onPress: onCtaPress
|
|
27614
27552
|
}), !!showSecondaryButton && /*#__PURE__*/React__default.createElement(StyledSuccessButtonSecondary, {
|
|
@@ -28703,30 +28641,6 @@ var Tag = function Tag(_ref) {
|
|
|
28703
28641
|
}));
|
|
28704
28642
|
};
|
|
28705
28643
|
|
|
28706
|
-
var StyledPickerWrapper = index$c(View)(function (_ref) {
|
|
28707
|
-
var theme = _ref.theme;
|
|
28708
|
-
return {
|
|
28709
|
-
height: theme.__hd__.timePicker.sizes.height,
|
|
28710
|
-
alignItems: 'center'
|
|
28711
|
-
};
|
|
28712
|
-
});
|
|
28713
|
-
var getZIndexByState = function getZIndexByState(_ref2) {
|
|
28714
|
-
var themeHasError = _ref2.themeHasError;
|
|
28715
|
-
if (themeHasError) {
|
|
28716
|
-
return 1;
|
|
28717
|
-
}
|
|
28718
|
-
return 0;
|
|
28719
|
-
};
|
|
28720
|
-
var StyledTouchableOpacity = index$c(TouchableOpacity)(function (_ref3) {
|
|
28721
|
-
var themeGroupStyleEnabled = _ref3.themeGroupStyleEnabled,
|
|
28722
|
-
themeHasError = _ref3.themeHasError;
|
|
28723
|
-
return _objectSpread2({}, themeGroupStyleEnabled && {
|
|
28724
|
-
zIndex: getZIndexByState({
|
|
28725
|
-
themeHasError: themeHasError
|
|
28726
|
-
})
|
|
28727
|
-
});
|
|
28728
|
-
});
|
|
28729
|
-
|
|
28730
28644
|
var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
28731
28645
|
var value = _ref.value,
|
|
28732
28646
|
label = _ref.label,
|
|
@@ -28742,11 +28656,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28742
28656
|
style = _ref.style,
|
|
28743
28657
|
testID = _ref.testID,
|
|
28744
28658
|
_ref$showSuffix = _ref.showSuffix,
|
|
28745
|
-
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix
|
|
28746
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
28747
|
-
inputProps = _ref.inputProps,
|
|
28748
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
28749
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
28659
|
+
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix;
|
|
28750
28660
|
var _useState = useState(false),
|
|
28751
28661
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28752
28662
|
open = _useState2[0],
|
|
@@ -28754,20 +28664,17 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28754
28664
|
var is12Hour = displayFormat.includes('hh');
|
|
28755
28665
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
28756
28666
|
var pickerInitValue = value || new Date();
|
|
28757
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
28758
28667
|
var onPress = useCallback(function () {
|
|
28759
28668
|
setOpen(true);
|
|
28760
28669
|
}, []);
|
|
28761
|
-
return /*#__PURE__*/React__default.createElement(
|
|
28670
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
28762
28671
|
onPress: onPress,
|
|
28763
28672
|
disabled: disabled,
|
|
28764
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
28765
|
-
themeHasError: !!error,
|
|
28766
28673
|
testID: "time-picker-android-touchable-opacity"
|
|
28767
28674
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
28768
28675
|
pointerEvents: "none",
|
|
28769
28676
|
testID: "timePickerInputAndroid"
|
|
28770
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
28677
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
28771
28678
|
label: label,
|
|
28772
28679
|
value: displayValue,
|
|
28773
28680
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -28778,7 +28685,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28778
28685
|
helpText: helpText,
|
|
28779
28686
|
style: style,
|
|
28780
28687
|
testID: testID
|
|
28781
|
-
}))
|
|
28688
|
+
})), open ? /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
28782
28689
|
testID: "timePickerAndroid",
|
|
28783
28690
|
mode: "time",
|
|
28784
28691
|
value: pickerInitValue,
|
|
@@ -28793,6 +28700,14 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
28793
28700
|
}) : null);
|
|
28794
28701
|
};
|
|
28795
28702
|
|
|
28703
|
+
var StyledPickerWrapper = index$c(View)(function (_ref) {
|
|
28704
|
+
var theme = _ref.theme;
|
|
28705
|
+
return {
|
|
28706
|
+
height: theme.__hd__.timePicker.sizes.height,
|
|
28707
|
+
alignItems: 'center'
|
|
28708
|
+
};
|
|
28709
|
+
});
|
|
28710
|
+
|
|
28796
28711
|
var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
28797
28712
|
var value = _ref.value,
|
|
28798
28713
|
label = _ref.label,
|
|
@@ -28811,11 +28726,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28811
28726
|
_ref$showSuffix = _ref.showSuffix,
|
|
28812
28727
|
showSuffix = _ref$showSuffix === void 0 ? true : _ref$showSuffix,
|
|
28813
28728
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
28814
|
-
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta
|
|
28815
|
-
TextInputComponent = _ref.TextInputComponent,
|
|
28816
|
-
inputProps = _ref.inputProps,
|
|
28817
|
-
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
28818
|
-
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable;
|
|
28729
|
+
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
28819
28730
|
var _useState = useState(value || new Date()),
|
|
28820
28731
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28821
28732
|
selectingDate = _useState2[0],
|
|
@@ -28831,23 +28742,20 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28831
28742
|
// For 12-hour format: use en-US locale to ensure 12-hour display regardless of device settings
|
|
28832
28743
|
// For 24-hour format: use en-GB for consistent 24-hour display
|
|
28833
28744
|
var pickerLocale = is12Hour ? 'en-US' : 'en-GB';
|
|
28834
|
-
var InputComponent = TextInputComponent || TextInput;
|
|
28835
28745
|
useEffect(function () {
|
|
28836
28746
|
setSelectingDate(value || new Date());
|
|
28837
28747
|
}, [value]);
|
|
28838
28748
|
var onPress = useCallback(function () {
|
|
28839
28749
|
setOpen(true);
|
|
28840
28750
|
}, []);
|
|
28841
|
-
return /*#__PURE__*/React__default.createElement(
|
|
28751
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
28842
28752
|
onPress: onPress,
|
|
28843
28753
|
disabled: disabled,
|
|
28844
|
-
themeGroupStyleEnabled: groupStyleEnabled,
|
|
28845
|
-
themeHasError: !!error,
|
|
28846
28754
|
testID: "time-picker-ios-touchable-opacity"
|
|
28847
28755
|
}, /*#__PURE__*/React__default.createElement(View, {
|
|
28848
28756
|
pointerEvents: "none",
|
|
28849
28757
|
testID: "timePickerInputIOS"
|
|
28850
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
28758
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
28851
28759
|
label: label,
|
|
28852
28760
|
value: displayValue,
|
|
28853
28761
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -28858,7 +28766,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28858
28766
|
helpText: helpText,
|
|
28859
28767
|
testID: testID,
|
|
28860
28768
|
style: style
|
|
28861
|
-
}))
|
|
28769
|
+
})), /*#__PURE__*/React__default.createElement(BottomSheet, {
|
|
28862
28770
|
open: open,
|
|
28863
28771
|
onRequestClose: function onRequestClose() {
|
|
28864
28772
|
return setOpen(false);
|