@hero-design/rn-work-uikit 1.6.0 → 1.6.2-alpha.0
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 +13 -0
- package/lib/index.js +350 -265
- package/package.json +2 -2
- package/src/components/TextInput/index.tsx +1 -4
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +71 -0
- package/src/components/TextInput/Group/__tests__/__snapshots__/index.spec.tsx.snap +0 -880
- package/src/components/TextInput/Group/__tests__/index.spec.tsx +0 -179
- package/src/components/TextInput/Group/__tests__/utils.spec.ts +0 -73
- package/src/components/TextInput/Group/index.tsx +0 -107
- package/src/components/TextInput/Group/utils.ts +0 -67
- package/stats/1.6.0/rn-work-uikit-stats.html +0 -4844
package/lib/index.js
CHANGED
|
@@ -3661,13 +3661,13 @@ var StyledDivider = index$b(reactNative.View)(function (_ref) {
|
|
|
3661
3661
|
}, horizontalMargin), verticalMargin);
|
|
3662
3662
|
});
|
|
3663
3663
|
|
|
3664
|
-
var _excluded$
|
|
3664
|
+
var _excluded$R = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
3665
3665
|
var Divider = function Divider(_ref) {
|
|
3666
3666
|
var marginHorizontal = _ref.marginHorizontal,
|
|
3667
3667
|
marginVertical = _ref.marginVertical,
|
|
3668
3668
|
style = _ref.style,
|
|
3669
3669
|
testID = _ref.testID,
|
|
3670
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
3670
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$R);
|
|
3671
3671
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
3672
3672
|
themeMarginHorizontal: marginHorizontal,
|
|
3673
3673
|
themeMarginVertical: marginVertical,
|
|
@@ -6507,7 +6507,8 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
6507
6507
|
warning: theme.colors.warning,
|
|
6508
6508
|
disabledText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
6509
6509
|
invertedText: theme.colors.onDarkGlobalSurface,
|
|
6510
|
-
muted: theme.colors.mutedOnDefaultGlobalSurface
|
|
6510
|
+
muted: theme.colors.mutedOnDefaultGlobalSurface,
|
|
6511
|
+
inactive: theme.colors.inactiveOnDefaultGlobalSurface
|
|
6511
6512
|
};
|
|
6512
6513
|
var sizes = {
|
|
6513
6514
|
xxxsmall: theme.fontSizes.small,
|
|
@@ -7637,6 +7638,85 @@ var getAppCueTheme = function getAppCueTheme(theme) {
|
|
|
7637
7638
|
};
|
|
7638
7639
|
};
|
|
7639
7640
|
|
|
7641
|
+
var getFilterTriggerTheme = function getFilterTriggerTheme(theme) {
|
|
7642
|
+
var borderWidths = {
|
|
7643
|
+
wrapper: {
|
|
7644
|
+
filled: theme.borderWidths.medium,
|
|
7645
|
+
outlined: theme.borderWidths.medium,
|
|
7646
|
+
ghost: 0
|
|
7647
|
+
}
|
|
7648
|
+
};
|
|
7649
|
+
var colors = {
|
|
7650
|
+
wrapper: {
|
|
7651
|
+
activeBackground: theme.colors.highlightedSurface,
|
|
7652
|
+
inactiveBackground: theme.colors.neutralGlobalSurface,
|
|
7653
|
+
background: {
|
|
7654
|
+
active: {
|
|
7655
|
+
filled: theme.colors.highlightedSurface,
|
|
7656
|
+
outlined: 'transparent',
|
|
7657
|
+
ghost: 'transparent',
|
|
7658
|
+
filledLabeless: theme.colors.neutralGlobalSurface
|
|
7659
|
+
},
|
|
7660
|
+
inactive: {
|
|
7661
|
+
filled: theme.colors.neutralGlobalSurface,
|
|
7662
|
+
outlined: 'transparent',
|
|
7663
|
+
ghost: 'transparent'
|
|
7664
|
+
}
|
|
7665
|
+
},
|
|
7666
|
+
border: {
|
|
7667
|
+
active: {
|
|
7668
|
+
filled: theme.colors.highlightedSurface,
|
|
7669
|
+
outlined: theme.colors.primaryOutline,
|
|
7670
|
+
ghost: 'transparent',
|
|
7671
|
+
filledLabeless: theme.colors.neutralGlobalSurface
|
|
7672
|
+
},
|
|
7673
|
+
inactive: {
|
|
7674
|
+
filled: theme.colors.neutralGlobalSurface,
|
|
7675
|
+
outlined: theme.colors.secondaryOutline,
|
|
7676
|
+
ghost: 'transparent'
|
|
7677
|
+
}
|
|
7678
|
+
}
|
|
7679
|
+
}
|
|
7680
|
+
};
|
|
7681
|
+
var space = {
|
|
7682
|
+
wrapper: {
|
|
7683
|
+
"default": {
|
|
7684
|
+
paddingHorizontal: theme.space.smallMedium,
|
|
7685
|
+
paddingVertical: theme.space.xsmall
|
|
7686
|
+
},
|
|
7687
|
+
labeless: {
|
|
7688
|
+
paddingHorizontal: theme.space.small,
|
|
7689
|
+
paddingVertical: theme.space.xsmall
|
|
7690
|
+
},
|
|
7691
|
+
itemGap: theme.space.xsmall
|
|
7692
|
+
},
|
|
7693
|
+
badge: {
|
|
7694
|
+
labelessRight: theme.space.xxsmall,
|
|
7695
|
+
labelessBottom: theme.space.xxsmall
|
|
7696
|
+
}
|
|
7697
|
+
};
|
|
7698
|
+
var radii = {
|
|
7699
|
+
wrapper: {
|
|
7700
|
+
"default": theme.radii.xxxlarge,
|
|
7701
|
+
labeless: theme.radii.xlarge
|
|
7702
|
+
}
|
|
7703
|
+
};
|
|
7704
|
+
var sizes = {
|
|
7705
|
+
wrapperHeight: scale(36)
|
|
7706
|
+
};
|
|
7707
|
+
var lineHeights = {
|
|
7708
|
+
text: theme.lineHeights.small
|
|
7709
|
+
};
|
|
7710
|
+
return {
|
|
7711
|
+
colors: colors,
|
|
7712
|
+
space: space,
|
|
7713
|
+
radii: radii,
|
|
7714
|
+
borderWidths: borderWidths,
|
|
7715
|
+
sizes: sizes,
|
|
7716
|
+
lineHeights: lineHeights
|
|
7717
|
+
};
|
|
7718
|
+
};
|
|
7719
|
+
|
|
7640
7720
|
var getTheme$1 = function getTheme() {
|
|
7641
7721
|
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
|
|
7642
7722
|
var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$2;
|
|
@@ -7669,6 +7749,7 @@ var getTheme$1 = function getTheme() {
|
|
|
7669
7749
|
empty: getEmptyTheme(globalTheme),
|
|
7670
7750
|
error: getErrorTheme(globalTheme),
|
|
7671
7751
|
fab: getFABTheme(globalTheme),
|
|
7752
|
+
filterTrigger: getFilterTriggerTheme(globalTheme),
|
|
7672
7753
|
icon: getIconTheme(globalTheme),
|
|
7673
7754
|
image: getImageTheme(globalTheme),
|
|
7674
7755
|
list: getListTheme(globalTheme),
|
|
@@ -7721,7 +7802,7 @@ function usePropsOrInternalState(initialState, state, setState) {
|
|
|
7721
7802
|
setInternalState = _React$useState2[1];
|
|
7722
7803
|
return [state || internalState, setState || setInternalState];
|
|
7723
7804
|
}
|
|
7724
|
-
var useDeprecation
|
|
7805
|
+
var useDeprecation = function useDeprecation(message) {
|
|
7725
7806
|
var cond = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
7726
7807
|
React.useEffect(function () {
|
|
7727
7808
|
// eslint-disable-next-line no-console
|
|
@@ -7777,7 +7858,7 @@ var StyledLoadingDot = index$b(reactNative.View)(function (_ref) {
|
|
|
7777
7858
|
}, themeStyling());
|
|
7778
7859
|
});
|
|
7779
7860
|
|
|
7780
|
-
var _excluded$
|
|
7861
|
+
var _excluded$Q = ["count", "size", "testID", "themeVariant"];
|
|
7781
7862
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
7782
7863
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
7783
7864
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -7809,7 +7890,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
7809
7890
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
7810
7891
|
testID = _ref2.testID,
|
|
7811
7892
|
themeVariant = _ref2.themeVariant,
|
|
7812
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7893
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$Q);
|
|
7813
7894
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
7814
7895
|
React.useEffect(function () {
|
|
7815
7896
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -8412,7 +8493,8 @@ var COLOR_INTENTS = {
|
|
|
8412
8493
|
warning: 'warning',
|
|
8413
8494
|
'disabled-text': 'disabledText',
|
|
8414
8495
|
'text-inverted': 'invertedText',
|
|
8415
|
-
muted: 'muted'
|
|
8496
|
+
muted: 'muted',
|
|
8497
|
+
inactive: 'inactive'
|
|
8416
8498
|
};
|
|
8417
8499
|
var StyledHeroIcon = index$b(HeroIcon)(function (_ref) {
|
|
8418
8500
|
var themeIntent = _ref.themeIntent,
|
|
@@ -8424,10 +8506,10 @@ var StyledHeroIcon = index$b(HeroIcon)(function (_ref) {
|
|
|
8424
8506
|
};
|
|
8425
8507
|
});
|
|
8426
8508
|
|
|
8427
|
-
var _excluded$
|
|
8509
|
+
var _excluded$P = ["style"];
|
|
8428
8510
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
8429
8511
|
var style = _ref.style,
|
|
8430
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8512
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$P);
|
|
8431
8513
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
8432
8514
|
React.useEffect(function () {
|
|
8433
8515
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -8475,7 +8557,7 @@ var Icon = function Icon(_ref) {
|
|
|
8475
8557
|
accessibilityIgnoresInvertColors = _ref.accessibilityIgnoresInvertColors,
|
|
8476
8558
|
accessibilityViewIsModal = _ref.accessibilityViewIsModal,
|
|
8477
8559
|
accessibilityActions = _ref.accessibilityActions;
|
|
8478
|
-
useDeprecation
|
|
8560
|
+
useDeprecation("".concat(icon, " icon is deprecated and will be removed in the next major release, please use ").concat(icon.replace('carat', 'caret'), " instead."), icon.startsWith('carat'));
|
|
8479
8561
|
var accessibilityProps = {
|
|
8480
8562
|
accessibilityLabel: accessibilityLabel,
|
|
8481
8563
|
accessibilityHint: accessibilityHint,
|
|
@@ -8510,7 +8592,7 @@ var FONTWEIGHT_MAP$2 = {
|
|
|
8510
8592
|
regular: 'regular',
|
|
8511
8593
|
'semi-bold': 'semiBold'
|
|
8512
8594
|
};
|
|
8513
|
-
var StyledText$
|
|
8595
|
+
var StyledText$4 = index$b(reactNative.Text)(function (_ref) {
|
|
8514
8596
|
var themeFontSize = _ref.themeFontSize,
|
|
8515
8597
|
themeFontWeight = _ref.themeFontWeight,
|
|
8516
8598
|
themeIntent = _ref.themeIntent,
|
|
@@ -8527,7 +8609,7 @@ var StyledText$3 = index$b(reactNative.Text)(function (_ref) {
|
|
|
8527
8609
|
});
|
|
8528
8610
|
});
|
|
8529
8611
|
|
|
8530
|
-
var _excluded$
|
|
8612
|
+
var _excluded$O = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
8531
8613
|
var Text = function Text(_ref) {
|
|
8532
8614
|
var children = _ref.children,
|
|
8533
8615
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -8540,9 +8622,9 @@ var Text = function Text(_ref) {
|
|
|
8540
8622
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8541
8623
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8542
8624
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8543
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8544
|
-
useDeprecation
|
|
8545
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledText$
|
|
8625
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
8626
|
+
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.');
|
|
8627
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledText$4, _extends$1({}, nativeProps, {
|
|
8546
8628
|
themeFontSize: fontSize,
|
|
8547
8629
|
themeFontWeight: fontWeight,
|
|
8548
8630
|
themeIntent: intent,
|
|
@@ -8570,7 +8652,7 @@ var StyledCaption = index$b(reactNative.Text)(function (_ref) {
|
|
|
8570
8652
|
};
|
|
8571
8653
|
});
|
|
8572
8654
|
|
|
8573
|
-
var _excluded$
|
|
8655
|
+
var _excluded$N = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
8574
8656
|
var Caption = function Caption(_ref) {
|
|
8575
8657
|
var children = _ref.children,
|
|
8576
8658
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -8579,7 +8661,7 @@ var Caption = function Caption(_ref) {
|
|
|
8579
8661
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
8580
8662
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8581
8663
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8582
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8664
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
8583
8665
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
8584
8666
|
themeFontWeight: fontWeight,
|
|
8585
8667
|
themeIntent: intent,
|
|
@@ -8598,14 +8680,14 @@ var StyledLabel$2 = index$b(reactNative.Text)(function (_ref) {
|
|
|
8598
8680
|
};
|
|
8599
8681
|
});
|
|
8600
8682
|
|
|
8601
|
-
var _excluded$
|
|
8683
|
+
var _excluded$M = ["children", "intent", "allowFontScaling"];
|
|
8602
8684
|
var Label = function Label(_ref) {
|
|
8603
8685
|
var children = _ref.children,
|
|
8604
8686
|
_ref$intent = _ref.intent,
|
|
8605
8687
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
8606
8688
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8607
8689
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8608
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8690
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
8609
8691
|
return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$2, _extends$1({}, nativeProps, {
|
|
8610
8692
|
themeIntent: intent,
|
|
8611
8693
|
allowFontScaling: allowFontScaling
|
|
@@ -8626,7 +8708,7 @@ var StyledTitle$1 = index$b(reactNative.Text)(function (_ref) {
|
|
|
8626
8708
|
};
|
|
8627
8709
|
});
|
|
8628
8710
|
|
|
8629
|
-
var _excluded$
|
|
8711
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
8630
8712
|
var Title = function Title(_ref) {
|
|
8631
8713
|
var children = _ref.children,
|
|
8632
8714
|
_ref$intent = _ref.intent,
|
|
@@ -8637,7 +8719,7 @@ var Title = function Title(_ref) {
|
|
|
8637
8719
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
8638
8720
|
_ref$typeface = _ref.typeface,
|
|
8639
8721
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8640
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8722
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
8641
8723
|
return /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
8642
8724
|
themeLevel: level,
|
|
8643
8725
|
themeTypeface: typeface,
|
|
@@ -8672,7 +8754,7 @@ var StyledBody$2 = index$b(reactNative.Text)(function (_ref) {
|
|
|
8672
8754
|
};
|
|
8673
8755
|
});
|
|
8674
8756
|
|
|
8675
|
-
var _excluded$
|
|
8757
|
+
var _excluded$K = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
8676
8758
|
var Body = function Body(_ref) {
|
|
8677
8759
|
var children = _ref.children,
|
|
8678
8760
|
_ref$intent = _ref.intent,
|
|
@@ -8683,7 +8765,7 @@ var Body = function Body(_ref) {
|
|
|
8683
8765
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8684
8766
|
_ref$variant = _ref.variant,
|
|
8685
8767
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
8686
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8768
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
8687
8769
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
8688
8770
|
themeTypeface: typeface,
|
|
8689
8771
|
themeIntent: intent,
|
|
@@ -9109,7 +9191,7 @@ var Button = function Button(_ref) {
|
|
|
9109
9191
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9110
9192
|
isPressed = _useState2[0],
|
|
9111
9193
|
setIsPressed = _useState2[1];
|
|
9112
|
-
useDeprecation
|
|
9194
|
+
useDeprecation("Button variant ".concat(deprecatedVariants.join(', '), " are deprecated."), deprecatedVariants.includes(themeVariant));
|
|
9113
9195
|
var isCompactVariant = ['filled-compact', 'outlined-compact', 'text-compact', 'inline-text-compact'].includes(variant);
|
|
9114
9196
|
var isRenderTextVariant = isTextVariant(themeVariant);
|
|
9115
9197
|
var renderTextVariantTitle = function renderTextVariantTitle() {
|
|
@@ -9296,11 +9378,11 @@ var Header = function Header(_ref) {
|
|
|
9296
9378
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
9297
9379
|
};
|
|
9298
9380
|
|
|
9299
|
-
var _excluded$
|
|
9381
|
+
var _excluded$J = ["scrollEventThrottle"];
|
|
9300
9382
|
var BottomSheetScrollView = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9301
9383
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
9302
9384
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
9303
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9385
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
9304
9386
|
var _useContext = React.useContext(BottomSheetContext),
|
|
9305
9387
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
9306
9388
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -9633,7 +9715,7 @@ var borderWidths = {
|
|
|
9633
9715
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
9634
9716
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
9635
9717
|
|
|
9636
|
-
var _excluded$
|
|
9718
|
+
var _excluded$I = ["theme"];
|
|
9637
9719
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
9638
9720
|
var propConfig = config[key];
|
|
9639
9721
|
var propValue = props[key];
|
|
@@ -9660,18 +9742,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
9660
9742
|
var configKeys = Object.keys(config);
|
|
9661
9743
|
var StyledBox = index$b(reactNative.View)(function (_ref5) {
|
|
9662
9744
|
var theme = _ref5.theme,
|
|
9663
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
9745
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$I);
|
|
9664
9746
|
var styleProps = pick(configKeys, otherProps);
|
|
9665
9747
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
9666
9748
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
9667
9749
|
});
|
|
9668
9750
|
|
|
9669
|
-
var _excluded$
|
|
9751
|
+
var _excluded$H = ["children", "style", "testID"];
|
|
9670
9752
|
var Box = function Box(_ref) {
|
|
9671
9753
|
var children = _ref.children,
|
|
9672
9754
|
style = _ref.style,
|
|
9673
9755
|
testID = _ref.testID,
|
|
9674
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
9756
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$H);
|
|
9675
9757
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
9676
9758
|
style: style,
|
|
9677
9759
|
testID: testID
|
|
@@ -9807,7 +9889,7 @@ var StyledErrorAndMaxLengthContainer = index$b(reactNative.View)(function () {
|
|
|
9807
9889
|
};
|
|
9808
9890
|
});
|
|
9809
9891
|
|
|
9810
|
-
var _excluded$
|
|
9892
|
+
var _excluded$G = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
9811
9893
|
var getState$4 = function getState(_ref) {
|
|
9812
9894
|
var disabled = _ref.disabled,
|
|
9813
9895
|
error = _ref.error,
|
|
@@ -9899,7 +9981,7 @@ var getDisplayText = function getDisplayText(value, defaultValue) {
|
|
|
9899
9981
|
var _ref7;
|
|
9900
9982
|
return (_ref7 = value !== undefined ? value : defaultValue) !== null && _ref7 !== void 0 ? _ref7 : '';
|
|
9901
9983
|
};
|
|
9902
|
-
var TextInput$
|
|
9984
|
+
var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
9903
9985
|
var label = _ref8.label,
|
|
9904
9986
|
prefix = _ref8.prefix,
|
|
9905
9987
|
suffix = _ref8.suffix,
|
|
@@ -9926,7 +10008,7 @@ var TextInput$2 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
9926
10008
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
9927
10009
|
_ref8$variant = _ref8.variant,
|
|
9928
10010
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
9929
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
10011
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$G);
|
|
9930
10012
|
var displayText = getDisplayText(value, defaultValue);
|
|
9931
10013
|
var isEmptyValue = displayText.length === 0;
|
|
9932
10014
|
var _React$useState = React__namespace.default.useState({
|
|
@@ -10276,8 +10358,8 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
10276
10358
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
10277
10359
|
style = _ref.style,
|
|
10278
10360
|
testID = _ref.testID;
|
|
10279
|
-
useDeprecation
|
|
10280
|
-
useDeprecation
|
|
10361
|
+
useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
|
|
10362
|
+
useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
|
|
10281
10363
|
return /*#__PURE__*/React__namespace.default.createElement(StyledHeading, {
|
|
10282
10364
|
themeSize: size,
|
|
10283
10365
|
style: style,
|
|
@@ -10403,14 +10485,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
10403
10485
|
}, dotProps))));
|
|
10404
10486
|
};
|
|
10405
10487
|
|
|
10406
|
-
var _excluded$
|
|
10488
|
+
var _excluded$F = ["testID", "size", "intent"];
|
|
10407
10489
|
var Spinner = function Spinner(_ref) {
|
|
10408
10490
|
var testID = _ref.testID,
|
|
10409
10491
|
_ref$size = _ref.size,
|
|
10410
10492
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
10411
10493
|
_ref$intent = _ref.intent,
|
|
10412
10494
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
10413
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10495
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$F);
|
|
10414
10496
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView$2, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
|
|
10415
10497
|
testID: testID
|
|
10416
10498
|
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
|
|
@@ -10419,7 +10501,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
10419
10501
|
})));
|
|
10420
10502
|
};
|
|
10421
10503
|
|
|
10422
|
-
var _excluded$
|
|
10504
|
+
var _excluded$E = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
10423
10505
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
10424
10506
|
var keyExtractor = _ref.keyExtractor,
|
|
10425
10507
|
loading = _ref.loading,
|
|
@@ -10428,7 +10510,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
10428
10510
|
sections = _ref.sections,
|
|
10429
10511
|
renderItem = _ref.renderItem,
|
|
10430
10512
|
sectionListRef = _ref.sectionListRef,
|
|
10431
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10513
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
10432
10514
|
var theme = useTheme$1();
|
|
10433
10515
|
var _useState = React.useState(false),
|
|
10434
10516
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10695,7 +10777,7 @@ var isOptionSelected = function isOptionSelected(value, option) {
|
|
|
10695
10777
|
});
|
|
10696
10778
|
};
|
|
10697
10779
|
|
|
10698
|
-
var _excluded$
|
|
10780
|
+
var _excluded$D = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
10699
10781
|
var OptionList$1 = function OptionList(_ref) {
|
|
10700
10782
|
var keyExtractor = _ref.keyExtractor,
|
|
10701
10783
|
loading = _ref.loading,
|
|
@@ -10706,7 +10788,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
10706
10788
|
renderOption = _ref.renderOption,
|
|
10707
10789
|
value = _ref.value,
|
|
10708
10790
|
sectionListRef = _ref.sectionListRef,
|
|
10709
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10791
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
10710
10792
|
var renderItem = function renderItem(info) {
|
|
10711
10793
|
var item = info.item;
|
|
10712
10794
|
var selected = isOptionSelected(value, item);
|
|
@@ -10741,7 +10823,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
10741
10823
|
}, rest));
|
|
10742
10824
|
};
|
|
10743
10825
|
|
|
10744
|
-
var _excluded$
|
|
10826
|
+
var _excluded$C = ["footerLabel", "label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig", "groupStyleEnabled"];
|
|
10745
10827
|
|
|
10746
10828
|
// Add an internal prop type for TextInputComponent, not exported
|
|
10747
10829
|
|
|
@@ -10774,7 +10856,7 @@ function MultiSelect$1(_ref) {
|
|
|
10774
10856
|
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
10775
10857
|
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
10776
10858
|
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
10777
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10859
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
10778
10860
|
var _useKeyboard = useKeyboard(),
|
|
10779
10861
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
10780
10862
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -10797,7 +10879,7 @@ function MultiSelect$1(_ref) {
|
|
|
10797
10879
|
var rawValue = value.length > 0 ? value.join(', ') : '';
|
|
10798
10880
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
10799
10881
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
10800
|
-
var TextInputComponent = rest.TextInputComponent || TextInput$
|
|
10882
|
+
var TextInputComponent = rest.TextInputComponent || TextInput$1;
|
|
10801
10883
|
var onPress = React.useCallback(function () {
|
|
10802
10884
|
setOpen(true);
|
|
10803
10885
|
}, []);
|
|
@@ -10914,7 +10996,7 @@ var StyledOptionList = index$b(BaseOptionList)(function (_ref) {
|
|
|
10914
10996
|
};
|
|
10915
10997
|
});
|
|
10916
10998
|
|
|
10917
|
-
var _excluded$
|
|
10999
|
+
var _excluded$B = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
10918
11000
|
var OptionList = function OptionList(_ref) {
|
|
10919
11001
|
var keyExtractor = _ref.keyExtractor,
|
|
10920
11002
|
loading = _ref.loading,
|
|
@@ -10925,7 +11007,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
10925
11007
|
renderOption = _ref.renderOption,
|
|
10926
11008
|
value = _ref.value,
|
|
10927
11009
|
sectionListRef = _ref.sectionListRef,
|
|
10928
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11010
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
10929
11011
|
var renderItem = function renderItem(info) {
|
|
10930
11012
|
var item = info.item;
|
|
10931
11013
|
var selected = _deepCompareValue(item.value, value);
|
|
@@ -10961,7 +11043,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
10961
11043
|
}, rest));
|
|
10962
11044
|
};
|
|
10963
11045
|
|
|
10964
|
-
var _excluded$
|
|
11046
|
+
var _excluded$A = ["label", "loading", "inputProps", "onConfirm", "onDismiss", "onEndReached", "onQueryChange", "options", "renderOption", "renderSelectedValue", "query", "error", "editable", "disabled", "required", "style", "testID", "value", "supportedOrientations", "bottomSheetConfig", "groupStyleEnabled"];
|
|
10965
11047
|
|
|
10966
11048
|
// Add an internal prop type for TextInputComponent, not exported
|
|
10967
11049
|
|
|
@@ -10994,7 +11076,7 @@ var SingleSelect$1 = function SingleSelect(_ref) {
|
|
|
10994
11076
|
bottomSheetConfig = _ref$bottomSheetConfi === void 0 ? {} : _ref$bottomSheetConfi,
|
|
10995
11077
|
_ref$groupStyleEnable = _ref.groupStyleEnabled,
|
|
10996
11078
|
groupStyleEnabled = _ref$groupStyleEnable === void 0 ? false : _ref$groupStyleEnable,
|
|
10997
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11079
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
10998
11080
|
var _useKeyboard = useKeyboard(),
|
|
10999
11081
|
isKeyboardVisible = _useKeyboard.isKeyboardVisible,
|
|
11000
11082
|
keyboardHeight = _useKeyboard.keyboardHeight;
|
|
@@ -11011,7 +11093,7 @@ var SingleSelect$1 = function SingleSelect(_ref) {
|
|
|
11011
11093
|
var rawValue = value ? String(value) : undefined;
|
|
11012
11094
|
var bottomSheetVariant = bottomSheetConfig.variant,
|
|
11013
11095
|
bottomSheetHeader = bottomSheetConfig.header;
|
|
11014
|
-
var TextInputComponent = rest.TextInputComponent || TextInput$
|
|
11096
|
+
var TextInputComponent = rest.TextInputComponent || TextInput$1;
|
|
11015
11097
|
var onPress = React.useCallback(function () {
|
|
11016
11098
|
setOpen(true);
|
|
11017
11099
|
}, []);
|
|
@@ -13506,7 +13588,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
13506
13588
|
onChange: onChange,
|
|
13507
13589
|
value: value
|
|
13508
13590
|
});
|
|
13509
|
-
var InputComponent = TextInputComponent || TextInput$
|
|
13591
|
+
var InputComponent = TextInputComponent || TextInput$1;
|
|
13510
13592
|
var onPress = React.useCallback(function () {
|
|
13511
13593
|
setOpen(true);
|
|
13512
13594
|
}, []);
|
|
@@ -14355,7 +14437,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
14355
14437
|
onChange: onChange,
|
|
14356
14438
|
value: value
|
|
14357
14439
|
});
|
|
14358
|
-
var InputComponent = TextInputComponent || TextInput$
|
|
14440
|
+
var InputComponent = TextInputComponent || TextInput$1;
|
|
14359
14441
|
var onPress = React.useCallback(function () {
|
|
14360
14442
|
setOpen(true);
|
|
14361
14443
|
}, []);
|
|
@@ -14531,7 +14613,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
14531
14613
|
onChange: onChange,
|
|
14532
14614
|
value: value
|
|
14533
14615
|
});
|
|
14534
|
-
var InputComponent = TextInputComponent || TextInput$
|
|
14616
|
+
var InputComponent = TextInputComponent || TextInput$1;
|
|
14535
14617
|
var onPress = React.useCallback(function () {
|
|
14536
14618
|
setOpen(true);
|
|
14537
14619
|
}, []);
|
|
@@ -14578,13 +14660,13 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
14578
14660
|
}));
|
|
14579
14661
|
};
|
|
14580
14662
|
|
|
14581
|
-
var _excluded$
|
|
14663
|
+
var _excluded$z = ["variant", "TextInputComponent"];
|
|
14582
14664
|
var DatePicker$1 = function DatePicker(_ref) {
|
|
14583
14665
|
var _ref$variant = _ref.variant,
|
|
14584
14666
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
14585
14667
|
_ref$TextInputCompone = _ref.TextInputComponent,
|
|
14586
|
-
TextInputComponent = _ref$TextInputCompone === void 0 ? TextInput$
|
|
14587
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14668
|
+
TextInputComponent = _ref$TextInputCompone === void 0 ? TextInput$1 : _ref$TextInputCompone,
|
|
14669
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
14588
14670
|
if (variant === 'calendar') {
|
|
14589
14671
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, _extends$1({}, props, {
|
|
14590
14672
|
TextInputComponent: TextInputComponent
|
|
@@ -14666,7 +14748,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
14666
14748
|
var is12Hour = displayFormat.includes('hh');
|
|
14667
14749
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
14668
14750
|
var pickerInitValue = value || new Date();
|
|
14669
|
-
var InputComponent = TextInputComponent || TextInput$
|
|
14751
|
+
var InputComponent = TextInputComponent || TextInput$1;
|
|
14670
14752
|
var onPress = React.useCallback(function () {
|
|
14671
14753
|
setOpen(true);
|
|
14672
14754
|
}, []);
|
|
@@ -14739,7 +14821,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
14739
14821
|
var is12Hour = displayFormat.includes('hh');
|
|
14740
14822
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
14741
14823
|
var theme = useTheme();
|
|
14742
|
-
var InputComponent = TextInputComponent || TextInput$
|
|
14824
|
+
var InputComponent = TextInputComponent || TextInput$1;
|
|
14743
14825
|
React.useEffect(function () {
|
|
14744
14826
|
setSelectingDate(value || new Date());
|
|
14745
14827
|
}, [value]);
|
|
@@ -14940,7 +15022,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
14940
15022
|
}, content));
|
|
14941
15023
|
};
|
|
14942
15024
|
|
|
14943
|
-
var _excluded$
|
|
15025
|
+
var _excluded$y = ["key"];
|
|
14944
15026
|
var Accordion = function Accordion(_ref) {
|
|
14945
15027
|
var items = _ref.items,
|
|
14946
15028
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -14961,7 +15043,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
14961
15043
|
testID: testID
|
|
14962
15044
|
}, items.map(function (_ref2, index) {
|
|
14963
15045
|
var key = _ref2.key,
|
|
14964
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
15046
|
+
props = _objectWithoutProperties(_ref2, _excluded$y);
|
|
14965
15047
|
var open = _activeItemKey === key;
|
|
14966
15048
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
14967
15049
|
key: key
|
|
@@ -15073,7 +15155,7 @@ var Alert = function Alert(_ref2) {
|
|
|
15073
15155
|
style = _ref2.style,
|
|
15074
15156
|
testID = _ref2.testID,
|
|
15075
15157
|
actionLabel = _ref2.actionLabel;
|
|
15076
|
-
useDeprecation
|
|
15158
|
+
useDeprecation("Alert's notification intent is deprecated and will be removed in the next major release. Please use other intents instead.", intent === 'notification');
|
|
15077
15159
|
return /*#__PURE__*/React__namespace.default.createElement(Container$1, {
|
|
15078
15160
|
themeVariant: variant,
|
|
15079
15161
|
themeIntent: intent,
|
|
@@ -15548,7 +15630,7 @@ var StyledTextWrapper$1 = index$b(reactNative.View)(function () {
|
|
|
15548
15630
|
height: '100%'
|
|
15549
15631
|
};
|
|
15550
15632
|
});
|
|
15551
|
-
var StyledText$
|
|
15633
|
+
var StyledText$3 = index$b(Typography.Body)(function (_ref2) {
|
|
15552
15634
|
var themeSize = _ref2.themeSize,
|
|
15553
15635
|
theme = _ref2.theme;
|
|
15554
15636
|
return _objectSpread2({
|
|
@@ -15603,7 +15685,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
15603
15685
|
themeIntent: intent,
|
|
15604
15686
|
themeSize: size,
|
|
15605
15687
|
style: style
|
|
15606
|
-
}, (source === undefined || hasImageError) && /*#__PURE__*/React__namespace.default.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledText$
|
|
15688
|
+
}, (source === undefined || hasImageError) && /*#__PURE__*/React__namespace.default.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledText$3, {
|
|
15607
15689
|
themeSize: size
|
|
15608
15690
|
}, title)), source !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledImage$1, {
|
|
15609
15691
|
resizeMode: "cover",
|
|
@@ -15819,7 +15901,7 @@ var StyledView$1 = index$b(reactNative.Animated.View)(function (_ref) {
|
|
|
15819
15901
|
borderColor: themeVariant === 'outlined' ? theme.__hd__.badge.colors.border : theme.__hd__.badge.colors[themeIntent]
|
|
15820
15902
|
};
|
|
15821
15903
|
});
|
|
15822
|
-
var StyledText$
|
|
15904
|
+
var StyledText$2 = index$b(Typography.Caption)(function (_ref2) {
|
|
15823
15905
|
var theme = _ref2.theme,
|
|
15824
15906
|
themeSize = _ref2.themeSize;
|
|
15825
15907
|
return {
|
|
@@ -15881,7 +15963,7 @@ var StyledIcon$4 = index$b(Icon)(function (_ref6) {
|
|
|
15881
15963
|
};
|
|
15882
15964
|
});
|
|
15883
15965
|
|
|
15884
|
-
var _excluded$
|
|
15966
|
+
var _excluded$x = ["children", "visible", "intent", "style", "testID"];
|
|
15885
15967
|
var Status$1 = function Status(_ref) {
|
|
15886
15968
|
var children = _ref.children,
|
|
15887
15969
|
_ref$visible = _ref.visible,
|
|
@@ -15890,7 +15972,7 @@ var Status$1 = function Status(_ref) {
|
|
|
15890
15972
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
15891
15973
|
style = _ref.style,
|
|
15892
15974
|
testID = _ref.testID,
|
|
15893
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15975
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
15894
15976
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
15895
15977
|
opacity = _React$useRef.current;
|
|
15896
15978
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -15926,7 +16008,7 @@ var Status$1 = function Status(_ref) {
|
|
|
15926
16008
|
|
|
15927
16009
|
var DEFAULT_MAX_NUMBER = 99;
|
|
15928
16010
|
|
|
15929
|
-
var _excluded$
|
|
16011
|
+
var _excluded$w = ["children", "visible", "style", "max", "testID", "content"];
|
|
15930
16012
|
var Status = function Status(_ref) {
|
|
15931
16013
|
var children = _ref.children,
|
|
15932
16014
|
_ref$visible = _ref.visible,
|
|
@@ -15936,7 +16018,7 @@ var Status = function Status(_ref) {
|
|
|
15936
16018
|
max = _ref$max === void 0 ? DEFAULT_MAX_NUMBER : _ref$max,
|
|
15937
16019
|
testID = _ref.testID,
|
|
15938
16020
|
originalContent = _ref.content,
|
|
15939
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16021
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
15940
16022
|
var content = React.useMemo(function () {
|
|
15941
16023
|
return originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
15942
16024
|
}, [originalContent, max]);
|
|
@@ -15948,7 +16030,7 @@ var Status = function Status(_ref) {
|
|
|
15948
16030
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledCountText, null, content)));
|
|
15949
16031
|
};
|
|
15950
16032
|
|
|
15951
|
-
var _excluded$
|
|
16033
|
+
var _excluded$v = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
15952
16034
|
var getPaddingState = function getPaddingState(content) {
|
|
15953
16035
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
15954
16036
|
};
|
|
@@ -15967,7 +16049,7 @@ var Badge = function Badge(_ref) {
|
|
|
15967
16049
|
_ref$variant = _ref.variant,
|
|
15968
16050
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
15969
16051
|
icon = _ref.icon,
|
|
15970
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16052
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
15971
16053
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
15972
16054
|
opacity = _React$useRef.current;
|
|
15973
16055
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -16009,7 +16091,7 @@ var Badge = function Badge(_ref) {
|
|
|
16009
16091
|
icon: icon,
|
|
16010
16092
|
themeSize: size,
|
|
16011
16093
|
intent: "text-inverted"
|
|
16012
|
-
}) : /*#__PURE__*/React__namespace.default.createElement(StyledText$
|
|
16094
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledText$2, {
|
|
16013
16095
|
themeSize: size
|
|
16014
16096
|
}, content));
|
|
16015
16097
|
};
|
|
@@ -16066,7 +16148,7 @@ var StyledBottomBarText = index$b(Typography.Caption)(function (_ref3) {
|
|
|
16066
16148
|
};
|
|
16067
16149
|
});
|
|
16068
16150
|
|
|
16069
|
-
var _excluded$
|
|
16151
|
+
var _excluded$u = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
16070
16152
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
16071
16153
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
16072
16154
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -16077,7 +16159,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
16077
16159
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
16078
16160
|
selectedTabKey = _ref.selectedTabKey,
|
|
16079
16161
|
tabs = _ref.tabs,
|
|
16080
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16162
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
16081
16163
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
16082
16164
|
|
|
16083
16165
|
/**
|
|
@@ -16164,12 +16246,12 @@ var Indicator = index$b(reactNative.View)(function (_ref2) {
|
|
|
16164
16246
|
};
|
|
16165
16247
|
});
|
|
16166
16248
|
|
|
16167
|
-
var _excluded$
|
|
16249
|
+
var _excluded$t = ["intent", "children"];
|
|
16168
16250
|
var DataCard = function DataCard(_ref) {
|
|
16169
16251
|
var _ref$intent = _ref.intent,
|
|
16170
16252
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
16171
16253
|
children = _ref.children,
|
|
16172
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16254
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
16173
16255
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
16174
16256
|
themeIntent: intent,
|
|
16175
16257
|
testID: "data-card-indicator"
|
|
@@ -16188,13 +16270,13 @@ var StyledCard$1 = index$b(reactNative.View)(function (_ref) {
|
|
|
16188
16270
|
});
|
|
16189
16271
|
});
|
|
16190
16272
|
|
|
16191
|
-
var _excluded$
|
|
16273
|
+
var _excluded$s = ["intent", "children", "variant"];
|
|
16192
16274
|
var Card = function Card(_ref) {
|
|
16193
16275
|
var intent = _ref.intent,
|
|
16194
16276
|
children = _ref.children,
|
|
16195
16277
|
_ref$variant = _ref.variant,
|
|
16196
16278
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
16197
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16279
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
16198
16280
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
16199
16281
|
themeIntent: intent,
|
|
16200
16282
|
themeVariant: variant
|
|
@@ -16462,7 +16544,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
16462
16544
|
});
|
|
16463
16545
|
CardCarousel.displayName = 'CardCarousel';
|
|
16464
16546
|
|
|
16465
|
-
var _excluded$
|
|
16547
|
+
var _excluded$r = ["rounded", "size", "testID", "style"];
|
|
16466
16548
|
var Image = function Image(_ref) {
|
|
16467
16549
|
var _ref$rounded = _ref.rounded,
|
|
16468
16550
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -16470,8 +16552,8 @@ var Image = function Image(_ref) {
|
|
|
16470
16552
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
16471
16553
|
testID = _ref.testID,
|
|
16472
16554
|
style = _ref.style,
|
|
16473
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16474
|
-
useDeprecation
|
|
16555
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
16556
|
+
useDeprecation('Image component will soon be deprecated. Please use `Image` from `react-native` instead.');
|
|
16475
16557
|
var theme = useTheme();
|
|
16476
16558
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
16477
16559
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Image, _extends$1({
|
|
@@ -16605,7 +16687,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
16605
16687
|
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
16606
16688
|
};
|
|
16607
16689
|
|
|
16608
|
-
var _excluded$
|
|
16690
|
+
var _excluded$q = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
16609
16691
|
function useStateFromProp(initialValue) {
|
|
16610
16692
|
var _useState = React.useState(initialValue),
|
|
16611
16693
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -16632,9 +16714,9 @@ var Carousel = function Carousel(_ref) {
|
|
|
16632
16714
|
testID = _ref.testID,
|
|
16633
16715
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
16634
16716
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
16635
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16636
|
-
useDeprecation
|
|
16637
|
-
useDeprecation
|
|
16717
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
16718
|
+
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop$1);
|
|
16719
|
+
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
16638
16720
|
var theme = useTheme();
|
|
16639
16721
|
var carouselRef = React.useRef(null);
|
|
16640
16722
|
var _useStateFromProp = useStateFromProp(selectedItemIndex),
|
|
@@ -21772,7 +21854,7 @@ var StyledChipIcon = index$b(Icon)(function (_ref2) {
|
|
|
21772
21854
|
};
|
|
21773
21855
|
});
|
|
21774
21856
|
|
|
21775
|
-
var _excluded$
|
|
21857
|
+
var _excluded$p = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
|
|
21776
21858
|
var getChipLabel = function getChipLabel(label) {
|
|
21777
21859
|
if (typeof label === 'string') {
|
|
21778
21860
|
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
@@ -21805,8 +21887,8 @@ var Chip = function Chip(_ref) {
|
|
|
21805
21887
|
onPress = _ref.onPress,
|
|
21806
21888
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
21807
21889
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
21808
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
21809
|
-
useDeprecation
|
|
21890
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
21891
|
+
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
21810
21892
|
var renamedVariant = getChipVariant(variant);
|
|
21811
21893
|
var shouldShowSelectedIcon = (renamedVariant === 'selection' || renamedVariant === 'compact-outlined') && selected && showSelectedIcon;
|
|
21812
21894
|
var chipLabel = React.useMemo(function () {
|
|
@@ -21902,7 +21984,7 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
21902
21984
|
testID = _ref2.testID,
|
|
21903
21985
|
_ref2$readonly = _ref2.readonly,
|
|
21904
21986
|
readonly = _ref2$readonly === void 0 ? false : _ref2$readonly;
|
|
21905
|
-
useDeprecation
|
|
21987
|
+
useDeprecation("Checkbox's withBorder prop will be removed in the next major release, all checkboxes will have border by default. Please remove it.", withBorder === true);
|
|
21906
21988
|
var themeState = getThemeState({
|
|
21907
21989
|
disabled: disabled,
|
|
21908
21990
|
readonly: readonly,
|
|
@@ -23196,7 +23278,7 @@ var Portal$1 = Object.assign(Portal, {
|
|
|
23196
23278
|
Host: PortalHost
|
|
23197
23279
|
});
|
|
23198
23280
|
|
|
23199
|
-
var _excluded$
|
|
23281
|
+
var _excluded$o = ["visible"];
|
|
23200
23282
|
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
23201
23283
|
var DEFAULT_ANIMATION_CONFIG = {
|
|
23202
23284
|
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
@@ -23295,7 +23377,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
23295
23377
|
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
23296
23378
|
var _ref3$visible = _ref3.visible,
|
|
23297
23379
|
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
23298
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
23380
|
+
props = _objectWithoutProperties(_ref3, _excluded$o);
|
|
23299
23381
|
var modalRef = React.useRef(null);
|
|
23300
23382
|
var _useState = React.useState(visible),
|
|
23301
23383
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -23406,7 +23488,7 @@ var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
|
|
|
23406
23488
|
};
|
|
23407
23489
|
});
|
|
23408
23490
|
|
|
23409
|
-
var _excluded$
|
|
23491
|
+
var _excluded$n = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"],
|
|
23410
23492
|
_excluded2$1 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
23411
23493
|
var renderImage$1 = function renderImage(image) {
|
|
23412
23494
|
if (/*#__PURE__*/React.isValidElement(image)) {
|
|
@@ -23447,7 +23529,7 @@ var ErrorPage = function ErrorPage(_ref2) {
|
|
|
23447
23529
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
23448
23530
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
23449
23531
|
icon = _ref2.icon,
|
|
23450
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
23532
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$n);
|
|
23451
23533
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
23452
23534
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
23453
23535
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -23492,7 +23574,7 @@ var ErrorComponent = function ErrorComponent(_ref3) {
|
|
|
23492
23574
|
secondaryCtaText = _ref3.secondaryCtaText,
|
|
23493
23575
|
onSecondaryCtaPress = _ref3.onSecondaryCtaPress,
|
|
23494
23576
|
nativeProps = _objectWithoutProperties(_ref3, _excluded2$1);
|
|
23495
|
-
useDeprecation
|
|
23577
|
+
useDeprecation("Visible prop is deprecated. Use conditional rendering instead", visible);
|
|
23496
23578
|
var _useState = React.useState(visible),
|
|
23497
23579
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23498
23580
|
isVisible = _useState2[0],
|
|
@@ -23674,13 +23756,13 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
23674
23756
|
})), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
|
|
23675
23757
|
};
|
|
23676
23758
|
|
|
23677
|
-
var _excluded$
|
|
23759
|
+
var _excluded$m = ["active"];
|
|
23678
23760
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(/*#__PURE__*/React__namespace.default.forwardRef(function (props, _) {
|
|
23679
23761
|
return /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, props);
|
|
23680
23762
|
}));
|
|
23681
23763
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
23682
23764
|
var active = _ref.active,
|
|
23683
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
23765
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
23684
23766
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
23685
23767
|
React.useEffect(function () {
|
|
23686
23768
|
var animation = reactNative.Animated.spring(rotateAnimation.current, {
|
|
@@ -23929,7 +24011,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
23929
24011
|
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon,
|
|
23930
24012
|
_ref$supportedOrienta = _ref.supportedOrientations,
|
|
23931
24013
|
supportedOrientations = _ref$supportedOrienta === void 0 ? ['portrait'] : _ref$supportedOrienta;
|
|
23932
|
-
useDeprecation
|
|
24014
|
+
useDeprecation("FAB.ActionGroup's headerTitle prop will be removed in the next major release. Please remove it.", headerTitle !== undefined);
|
|
23933
24015
|
var theme = useTheme();
|
|
23934
24016
|
var fabRef = React.useRef(null);
|
|
23935
24017
|
var animatedValue = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
@@ -24045,11 +24127,11 @@ var StyledFAB = index$b(FAB$1)(function (_ref) {
|
|
|
24045
24127
|
};
|
|
24046
24128
|
});
|
|
24047
24129
|
|
|
24048
|
-
var _excluded$
|
|
24130
|
+
var _excluded$l = ["fabConfig", "onCancel"];
|
|
24049
24131
|
var Pair = function Pair(_ref) {
|
|
24050
24132
|
var fabConfig = _ref.fabConfig,
|
|
24051
24133
|
onCancel = _ref.onCancel,
|
|
24052
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
24134
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
24053
24135
|
var icon = fabConfig.icon,
|
|
24054
24136
|
title = fabConfig.title,
|
|
24055
24137
|
onPress = fabConfig.onPress,
|
|
@@ -24363,7 +24445,7 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
24363
24445
|
displayType = _ref$displayType === void 0 ? 'single' : _ref$displayType,
|
|
24364
24446
|
_position = _ref.position;
|
|
24365
24447
|
var position = _position === undefined ? 'bottom' : _position;
|
|
24366
|
-
useDeprecation
|
|
24448
|
+
useDeprecation("Toast's position prop is deprecated and will be removed in the next major release.\nPlease remove it.", _position !== undefined);
|
|
24367
24449
|
var toastRef = React.useRef(null);
|
|
24368
24450
|
var _useState = React.useState(),
|
|
24369
24451
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24734,7 +24816,7 @@ var StyledContent = index$b(reactNative.View)(function (_ref2) {
|
|
|
24734
24816
|
alignItems: 'center'
|
|
24735
24817
|
};
|
|
24736
24818
|
});
|
|
24737
|
-
var StyledBadge$
|
|
24819
|
+
var StyledBadge$2 = index$b(reactNative.View)(function (_ref3) {
|
|
24738
24820
|
var theme = _ref3.theme;
|
|
24739
24821
|
return {
|
|
24740
24822
|
right: theme.__hd__.mapPin.space.iconRight,
|
|
@@ -24779,11 +24861,11 @@ var StyledFocusIcon = index$b(Icon)(function (_ref7) {
|
|
|
24779
24861
|
};
|
|
24780
24862
|
});
|
|
24781
24863
|
|
|
24782
|
-
var _excluded$
|
|
24864
|
+
var _excluded$k = ["style", "testID"];
|
|
24783
24865
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
24784
24866
|
var style = _ref.style,
|
|
24785
24867
|
testID = _ref.testID,
|
|
24786
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24868
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
24787
24869
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
24788
24870
|
style: style,
|
|
24789
24871
|
testID: testID
|
|
@@ -24793,7 +24875,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
24793
24875
|
}));
|
|
24794
24876
|
};
|
|
24795
24877
|
|
|
24796
|
-
var _excluded$
|
|
24878
|
+
var _excluded$j = ["style", "testID", "state", "image", "icon"];
|
|
24797
24879
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
24798
24880
|
var iconMap = {
|
|
24799
24881
|
idle: undefined,
|
|
@@ -24809,7 +24891,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
24809
24891
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
24810
24892
|
image = _ref.image,
|
|
24811
24893
|
icon = _ref.icon,
|
|
24812
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
24894
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
24813
24895
|
var badgeIcon = getBadgeIconName(state);
|
|
24814
24896
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, _extends$1({}, nativeProps, {
|
|
24815
24897
|
style: style,
|
|
@@ -24822,7 +24904,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
24822
24904
|
icon: icon,
|
|
24823
24905
|
size: "xsmall",
|
|
24824
24906
|
testID: testID ? "".concat(testID, "-icon") : undefined
|
|
24825
|
-
})), badgeIcon && /*#__PURE__*/React__namespace.default.createElement(StyledBadge$
|
|
24907
|
+
})), badgeIcon && /*#__PURE__*/React__namespace.default.createElement(StyledBadge$2, {
|
|
24826
24908
|
testID: testID ? "".concat(testID, "-badge") : undefined
|
|
24827
24909
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledBadgeIcon, {
|
|
24828
24910
|
icon: badgeIcon,
|
|
@@ -25126,7 +25208,7 @@ var THEME_INTENT_MAP = {
|
|
|
25126
25208
|
'archived-inverted': 'archivedInverted'
|
|
25127
25209
|
};
|
|
25128
25210
|
|
|
25129
|
-
var _excluded$
|
|
25211
|
+
var _excluded$i = ["value", "renderValue", "intent", "style", "testID"];
|
|
25130
25212
|
var defaultRenderValue = function defaultRenderValue(value) {
|
|
25131
25213
|
return "".concat(value, "%");
|
|
25132
25214
|
};
|
|
@@ -25139,7 +25221,7 @@ var ProgressCircle = function ProgressCircle(_ref) {
|
|
|
25139
25221
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25140
25222
|
style = _ref.style,
|
|
25141
25223
|
testID = _ref.testID,
|
|
25142
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25224
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
25143
25225
|
var theme = useTheme$1();
|
|
25144
25226
|
var size = theme.__hd__.progress.sizes.circleDiameter;
|
|
25145
25227
|
var strokeWidth = theme.__hd__.progress.sizes.circleCompletenessHeight;
|
|
@@ -25210,14 +25292,14 @@ var StyledInner = index$b(reactNative.Animated.View)(function (_ref2) {
|
|
|
25210
25292
|
};
|
|
25211
25293
|
});
|
|
25212
25294
|
|
|
25213
|
-
var _excluded$
|
|
25295
|
+
var _excluded$h = ["value", "intent", "style", "testID"];
|
|
25214
25296
|
var ProgressBar = function ProgressBar(_ref) {
|
|
25215
25297
|
var value = _ref.value,
|
|
25216
25298
|
_ref$intent = _ref.intent,
|
|
25217
25299
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
25218
25300
|
style = _ref.style,
|
|
25219
25301
|
testID = _ref.testID,
|
|
25220
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
25302
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
25221
25303
|
var _useState = React.useState(0),
|
|
25222
25304
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25223
25305
|
width = _useState2[0],
|
|
@@ -25307,7 +25389,7 @@ var StyledSingleStep = index$b(Box)(function (_ref3) {
|
|
|
25307
25389
|
};
|
|
25308
25390
|
});
|
|
25309
25391
|
|
|
25310
|
-
var _excluded$
|
|
25392
|
+
var _excluded$g = ["steps", "current", "onLayout"];
|
|
25311
25393
|
var getStepState = function getStepState(current, index) {
|
|
25312
25394
|
if (index < current) {
|
|
25313
25395
|
return 'complete';
|
|
@@ -25321,7 +25403,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
25321
25403
|
var steps = _ref.steps,
|
|
25322
25404
|
current = _ref.current,
|
|
25323
25405
|
onLayout = _ref.onLayout,
|
|
25324
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
25406
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
25325
25407
|
var theme = useTheme$1();
|
|
25326
25408
|
var _React$useState = React__namespace.default.useState(0),
|
|
25327
25409
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -25551,7 +25633,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
25551
25633
|
}, children);
|
|
25552
25634
|
};
|
|
25553
25635
|
|
|
25554
|
-
var _excluded$
|
|
25636
|
+
var _excluded$f = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
25555
25637
|
|
|
25556
25638
|
// We are supporting both v1 and v2 of RNGH at the same time.
|
|
25557
25639
|
// SwipeableProps is only exported in v2, so we have to use ComponentProps.
|
|
@@ -25584,7 +25666,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
25584
25666
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
25585
25667
|
_ref$variant = _ref.variant,
|
|
25586
25668
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
25587
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
25669
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
25588
25670
|
var theme = useTheme();
|
|
25589
25671
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
25590
25672
|
width = _useWindowDimensions.width;
|
|
@@ -25789,7 +25871,7 @@ var StyledGradientContainer = index$b(Box)(function (_ref2) {
|
|
|
25789
25871
|
};
|
|
25790
25872
|
});
|
|
25791
25873
|
|
|
25792
|
-
var _excluded$
|
|
25874
|
+
var _excluded$e = ["intent", "variant", "style", "onLayout"];
|
|
25793
25875
|
var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default.default);
|
|
25794
25876
|
var gradientPositions = {
|
|
25795
25877
|
start: {
|
|
@@ -25821,7 +25903,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
25821
25903
|
variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
|
|
25822
25904
|
style = _ref.style,
|
|
25823
25905
|
onLayout = _ref.onLayout,
|
|
25824
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
25906
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
25825
25907
|
var theme = useTheme();
|
|
25826
25908
|
var colors = React.useMemo(function () {
|
|
25827
25909
|
return getGradientColors(theme, intent);
|
|
@@ -25954,7 +26036,7 @@ var StyledSuccessModal = index$b(ModalWrapper)({
|
|
|
25954
26036
|
width: '100%'
|
|
25955
26037
|
});
|
|
25956
26038
|
|
|
25957
|
-
var _excluded$
|
|
26039
|
+
var _excluded$d = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress", "icon"];
|
|
25958
26040
|
var renderImage = function renderImage(image) {
|
|
25959
26041
|
if (/*#__PURE__*/React.isValidElement(image)) {
|
|
25960
26042
|
return /*#__PURE__*/React__namespace.default.cloneElement(image, {
|
|
@@ -25995,7 +26077,7 @@ var SuccessPage = function SuccessPage(_ref2) {
|
|
|
25995
26077
|
secondaryCtaText = _ref2.secondaryCtaText,
|
|
25996
26078
|
onSecondaryCtaPress = _ref2.onSecondaryCtaPress,
|
|
25997
26079
|
icon = _ref2.icon,
|
|
25998
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
26080
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$d);
|
|
25999
26081
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
26000
26082
|
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessContainer, _extends$1({
|
|
26001
26083
|
testID: testID,
|
|
@@ -27015,7 +27097,7 @@ var StyledView = index$b(reactNative.View)(function (_ref) {
|
|
|
27015
27097
|
paddingHorizontal: theme.__hd__.tag.space.horizontalPadding
|
|
27016
27098
|
};
|
|
27017
27099
|
});
|
|
27018
|
-
var StyledText = index$b(Typography.Caption)(function (_ref2) {
|
|
27100
|
+
var StyledText$1 = index$b(Typography.Caption)(function (_ref2) {
|
|
27019
27101
|
var themeIntent = _ref2.themeIntent,
|
|
27020
27102
|
theme = _ref2.theme;
|
|
27021
27103
|
return {
|
|
@@ -27026,7 +27108,7 @@ var StyledText = index$b(Typography.Caption)(function (_ref2) {
|
|
|
27026
27108
|
};
|
|
27027
27109
|
});
|
|
27028
27110
|
|
|
27029
|
-
var _excluded$
|
|
27111
|
+
var _excluded$c = ["content", "variant", "intent", "style", "testID"];
|
|
27030
27112
|
var Tag = function Tag(_ref) {
|
|
27031
27113
|
var content = _ref.content,
|
|
27032
27114
|
_ref$variant = _ref.variant,
|
|
@@ -27035,13 +27117,13 @@ var Tag = function Tag(_ref) {
|
|
|
27035
27117
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
27036
27118
|
style = _ref.style,
|
|
27037
27119
|
testID = _ref.testID,
|
|
27038
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
27039
|
-
useDeprecation
|
|
27120
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
27121
|
+
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
27040
27122
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
27041
27123
|
themeIntent: intent,
|
|
27042
27124
|
style: style,
|
|
27043
27125
|
testID: testID
|
|
27044
|
-
}), typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledText, {
|
|
27126
|
+
}), typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledText$1, {
|
|
27045
27127
|
themeIntent: intent,
|
|
27046
27128
|
fontWeight: "semi-bold"
|
|
27047
27129
|
}, content) : content);
|
|
@@ -27134,8 +27216,7 @@ var StyledInputContainer$1 = index$b(reactNative.View)(function (_ref8) {
|
|
|
27134
27216
|
backgroundColor: theme.__hd__.toolbar.colors.inputContainerBackground,
|
|
27135
27217
|
borderRadius: theme.__hd__.toolbar.radii.messageContainer,
|
|
27136
27218
|
height: theme.__hd__.toolbar.sizes.messageInputHeight,
|
|
27137
|
-
paddingHorizontal: theme.__hd__.toolbar.space.messageInputPaddingHorizontal
|
|
27138
|
-
paddingVertical: theme.__hd__.toolbar.space.messageInputPaddingVertical
|
|
27219
|
+
paddingHorizontal: theme.__hd__.toolbar.space.messageInputPaddingHorizontal
|
|
27139
27220
|
};
|
|
27140
27221
|
});
|
|
27141
27222
|
var StyledInput$1 = index$b(reactNative.TextInput)(function (_ref9) {
|
|
@@ -27233,7 +27314,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
27233
27314
|
align = _ref$align === void 0 ? 'right' : _ref$align,
|
|
27234
27315
|
_ref$items = _ref.items,
|
|
27235
27316
|
items = _ref$items === void 0 ? [] : _ref$items;
|
|
27236
|
-
useDeprecation
|
|
27317
|
+
useDeprecation("Toolbar's align prop is deprecated", align !== 'right');
|
|
27237
27318
|
return /*#__PURE__*/React__namespace.default.createElement(ToolbarGroupWrapper, {
|
|
27238
27319
|
align: align
|
|
27239
27320
|
}, items.map(function (_ref2) {
|
|
@@ -27253,7 +27334,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
27253
27334
|
}));
|
|
27254
27335
|
};
|
|
27255
27336
|
|
|
27256
|
-
var _excluded$
|
|
27337
|
+
var _excluded$b = ["prefix", "suffix", "style", "testID", "value", "defaultValue", "disabled", "editable", "textStyle"];
|
|
27257
27338
|
var getState$2 = function getState(_ref) {
|
|
27258
27339
|
var disabled = _ref.disabled,
|
|
27259
27340
|
editable = _ref.editable,
|
|
@@ -27281,7 +27362,7 @@ var ToolbarMessage = /*#__PURE__*/React.forwardRef(function (props, forwardedRef
|
|
|
27281
27362
|
_props$editable = props.editable,
|
|
27282
27363
|
editable = _props$editable === void 0 ? true : _props$editable,
|
|
27283
27364
|
textStyle = props.textStyle,
|
|
27284
|
-
nativeProps = _objectWithoutProperties(props, _excluded$
|
|
27365
|
+
nativeProps = _objectWithoutProperties(props, _excluded$b);
|
|
27285
27366
|
var theme = useTheme();
|
|
27286
27367
|
var innerTextInput = React__namespace.default.useRef();
|
|
27287
27368
|
var displayText = (_ref2 = value !== undefined ? value : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
@@ -27341,10 +27422,10 @@ var ToolbarMessage = /*#__PURE__*/React.forwardRef(function (props, forwardedRef
|
|
|
27341
27422
|
}, suffix));
|
|
27342
27423
|
});
|
|
27343
27424
|
|
|
27344
|
-
var _excluded$
|
|
27425
|
+
var _excluded$a = ["children"];
|
|
27345
27426
|
var Toolbar = function Toolbar(_ref) {
|
|
27346
27427
|
var children = _ref.children,
|
|
27347
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27428
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
27348
27429
|
return /*#__PURE__*/React__namespace.default.createElement(ToolbarWrapper, rest, children);
|
|
27349
27430
|
};
|
|
27350
27431
|
var index$3 = Object.assign(Toolbar, {
|
|
@@ -27364,7 +27445,7 @@ var StyledIconWrapper = index$b(AnimatedBox)(function (_ref) {
|
|
|
27364
27445
|
};
|
|
27365
27446
|
});
|
|
27366
27447
|
|
|
27367
|
-
var _excluded$
|
|
27448
|
+
var _excluded$9 = ["options", "value", "onChange", "readonly", "disabled"];
|
|
27368
27449
|
var Rate = function Rate(_ref) {
|
|
27369
27450
|
var options = _ref.options,
|
|
27370
27451
|
value = _ref.value,
|
|
@@ -27373,7 +27454,7 @@ var Rate = function Rate(_ref) {
|
|
|
27373
27454
|
readonly = _ref$readonly === void 0 ? false : _ref$readonly,
|
|
27374
27455
|
_ref$disabled = _ref.disabled,
|
|
27375
27456
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
27376
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
27457
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
27377
27458
|
var valueIndex = React.useMemo(function () {
|
|
27378
27459
|
return options.findIndex(function (item) {
|
|
27379
27460
|
return item.value === value;
|
|
@@ -46610,30 +46691,30 @@ function AnimatedScroller(_ref) {
|
|
|
46610
46691
|
}));
|
|
46611
46692
|
}
|
|
46612
46693
|
|
|
46613
|
-
var _excluded$
|
|
46694
|
+
var _excluded$8 = ["fabProps"];
|
|
46614
46695
|
var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
|
|
46615
46696
|
var fabProps = _ref.fabProps,
|
|
46616
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
46697
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
46617
46698
|
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
46618
46699
|
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.ScrollView, props),
|
|
46619
46700
|
fabProps: fabProps
|
|
46620
46701
|
});
|
|
46621
46702
|
};
|
|
46622
46703
|
|
|
46623
|
-
var _excluded$
|
|
46704
|
+
var _excluded$7 = ["fabProps"];
|
|
46624
46705
|
function FlatListWithFAB(_ref) {
|
|
46625
46706
|
var fabProps = _ref.fabProps,
|
|
46626
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
46707
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
46627
46708
|
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
46628
46709
|
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, props),
|
|
46629
46710
|
fabProps: fabProps
|
|
46630
46711
|
});
|
|
46631
46712
|
}
|
|
46632
46713
|
|
|
46633
|
-
var _excluded$
|
|
46714
|
+
var _excluded$6 = ["fabProps"];
|
|
46634
46715
|
function SectionListWithFAB(_ref) {
|
|
46635
46716
|
var fabProps = _ref.fabProps,
|
|
46636
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
46717
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
46637
46718
|
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
46638
46719
|
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.SectionList, props),
|
|
46639
46720
|
fabProps: fabProps
|
|
@@ -46705,7 +46786,7 @@ var StyledHandlerContainer = index$b(reactNative.View)(function (_ref5) {
|
|
|
46705
46786
|
paddingVertical: theme.__hd__.search.space.inputVerticalPadding
|
|
46706
46787
|
};
|
|
46707
46788
|
});
|
|
46708
|
-
var StyledBadge = index$b(Badge$1)(function (_ref6) {
|
|
46789
|
+
var StyledBadge$1 = index$b(Badge$1)(function (_ref6) {
|
|
46709
46790
|
var theme = _ref6.theme;
|
|
46710
46791
|
return {
|
|
46711
46792
|
position: 'absolute',
|
|
@@ -46758,7 +46839,7 @@ var SearchTwoLine = function SearchTwoLine(props) {
|
|
|
46758
46839
|
})));
|
|
46759
46840
|
};
|
|
46760
46841
|
|
|
46761
|
-
var _excluded$
|
|
46842
|
+
var _excluded$5 = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID", "variant", "clearable"];
|
|
46762
46843
|
var getState$1 = function getState(_ref) {
|
|
46763
46844
|
var disabled = _ref.disabled,
|
|
46764
46845
|
editable = _ref.editable,
|
|
@@ -46802,7 +46883,7 @@ var SearchOneLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
46802
46883
|
variant = _props$variant === void 0 ? 'basic' : _props$variant,
|
|
46803
46884
|
_props$clearable = props.clearable,
|
|
46804
46885
|
clearable = _props$clearable === void 0 ? false : _props$clearable,
|
|
46805
|
-
nativeProps = _objectWithoutProperties(props, _excluded$
|
|
46886
|
+
nativeProps = _objectWithoutProperties(props, _excluded$5);
|
|
46806
46887
|
var _React$useState = React__namespace.default.useState(false),
|
|
46807
46888
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
46808
46889
|
isFocused = _React$useState2[0],
|
|
@@ -46902,17 +46983,17 @@ var SearchOneLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
46902
46983
|
})));
|
|
46903
46984
|
});
|
|
46904
46985
|
|
|
46905
|
-
var _excluded$
|
|
46986
|
+
var _excluded$4 = ["content", "icon"];
|
|
46906
46987
|
var renderBadge = function renderBadge(props) {
|
|
46907
46988
|
var content = props.content,
|
|
46908
46989
|
icon = props.icon,
|
|
46909
|
-
rest = _objectWithoutProperties(props, _excluded$
|
|
46910
|
-
if (content) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge, _extends$1({
|
|
46990
|
+
rest = _objectWithoutProperties(props, _excluded$4);
|
|
46991
|
+
if (content) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge$1, _extends$1({
|
|
46911
46992
|
intent: "primary",
|
|
46912
46993
|
content: content,
|
|
46913
46994
|
size: "small"
|
|
46914
46995
|
}, rest));
|
|
46915
|
-
if (icon) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge, _extends$1({
|
|
46996
|
+
if (icon) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge$1, _extends$1({
|
|
46916
46997
|
intent: "primary",
|
|
46917
46998
|
icon: icon,
|
|
46918
46999
|
size: "small"
|
|
@@ -46973,7 +47054,7 @@ var StyledIcon = index$b(Icon)(function (_ref4) {
|
|
|
46973
47054
|
};
|
|
46974
47055
|
});
|
|
46975
47056
|
|
|
46976
|
-
var _excluded$
|
|
47057
|
+
var _excluded$3 = ["onPress", "onLayout", "style", "children", "prefix", "suffix"];
|
|
46977
47058
|
var getPrefixOrSuffix = function getPrefixOrSuffix(_ref) {
|
|
46978
47059
|
var element = _ref.element,
|
|
46979
47060
|
_ref$isPrefix = _ref.isPrefix,
|
|
@@ -46995,7 +47076,7 @@ var FloatingIsland = function FloatingIsland(_ref2) {
|
|
|
46995
47076
|
children = _ref2.children,
|
|
46996
47077
|
prefix = _ref2.prefix,
|
|
46997
47078
|
suffix = _ref2.suffix,
|
|
46998
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
47079
|
+
props = _objectWithoutProperties(_ref2, _excluded$3);
|
|
46999
47080
|
var _React$useState = React__namespace.default.useState(0),
|
|
47000
47081
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
47001
47082
|
width = _React$useState2[0],
|
|
@@ -47022,6 +47103,122 @@ var FloatingIsland = function FloatingIsland(_ref2) {
|
|
|
47022
47103
|
}));
|
|
47023
47104
|
};
|
|
47024
47105
|
|
|
47106
|
+
var getBackgroundColor = function getBackgroundColor(theme, themeIsActive, themeHasLabel, themeVariant) {
|
|
47107
|
+
var colors = theme.__hd__.filterTrigger.colors;
|
|
47108
|
+
if (themeIsActive && !themeHasLabel && themeVariant === 'filled') {
|
|
47109
|
+
return colors.wrapper.background.active.filledLabeless;
|
|
47110
|
+
}
|
|
47111
|
+
var state = themeIsActive ? 'active' : 'inactive';
|
|
47112
|
+
return colors.wrapper.background[state][themeVariant];
|
|
47113
|
+
};
|
|
47114
|
+
var getBorderStyles = function getBorderStyles(theme, themeIsActive, themeHasLabel, themeVariant) {
|
|
47115
|
+
var _theme$__hd__$filterT = theme.__hd__.filterTrigger,
|
|
47116
|
+
colors = _theme$__hd__$filterT.colors,
|
|
47117
|
+
borderWidths = _theme$__hd__$filterT.borderWidths,
|
|
47118
|
+
radii = _theme$__hd__$filterT.radii;
|
|
47119
|
+
var borderColor;
|
|
47120
|
+
if (themeIsActive && !themeHasLabel && themeVariant === 'filled') {
|
|
47121
|
+
borderColor = colors.wrapper.border.active.filledLabeless;
|
|
47122
|
+
} else {
|
|
47123
|
+
var state = themeIsActive ? 'active' : 'inactive';
|
|
47124
|
+
borderColor = colors.wrapper.border[state][themeVariant];
|
|
47125
|
+
}
|
|
47126
|
+
return {
|
|
47127
|
+
borderWidth: borderWidths.wrapper[themeVariant],
|
|
47128
|
+
borderColor: borderColor,
|
|
47129
|
+
borderRadius: themeHasLabel ? radii.wrapper["default"] : radii.wrapper.labeless
|
|
47130
|
+
};
|
|
47131
|
+
};
|
|
47132
|
+
var getSpacingStyles = function getSpacingStyles(theme, themeHasLabel) {
|
|
47133
|
+
var space = theme.__hd__.filterTrigger.space;
|
|
47134
|
+
var paddingConfig = themeHasLabel ? space.wrapper["default"] : space.wrapper.labeless;
|
|
47135
|
+
return {
|
|
47136
|
+
gap: space.wrapper.itemGap,
|
|
47137
|
+
paddingHorizontal: paddingConfig.paddingHorizontal,
|
|
47138
|
+
paddingVertical: paddingConfig.paddingVertical
|
|
47139
|
+
};
|
|
47140
|
+
};
|
|
47141
|
+
var StyledFilterWrapper = index$b(reactNative.TouchableOpacity)(function (_ref) {
|
|
47142
|
+
var theme = _ref.theme,
|
|
47143
|
+
themeActive = _ref.themeActive,
|
|
47144
|
+
themeVariant = _ref.themeVariant,
|
|
47145
|
+
themeHasLabel = _ref.themeHasLabel;
|
|
47146
|
+
return _objectSpread2(_objectSpread2({
|
|
47147
|
+
position: 'relative',
|
|
47148
|
+
flexDirection: 'row',
|
|
47149
|
+
alignItems: 'center',
|
|
47150
|
+
justifyContent: 'center',
|
|
47151
|
+
alignSelf: 'flex-start',
|
|
47152
|
+
height: theme.__hd__.filterTrigger.sizes.wrapperHeight,
|
|
47153
|
+
backgroundColor: getBackgroundColor(theme, themeActive, themeHasLabel, themeVariant)
|
|
47154
|
+
}, getBorderStyles(theme, themeActive, themeHasLabel, themeVariant)), getSpacingStyles(theme, themeHasLabel));
|
|
47155
|
+
});
|
|
47156
|
+
var StyledBadge = index$b(Badge$1)(function (_ref2) {
|
|
47157
|
+
var theme = _ref2.theme,
|
|
47158
|
+
themeHasLabel = _ref2.themeHasLabel;
|
|
47159
|
+
return _objectSpread2({
|
|
47160
|
+
position: 'absolute'
|
|
47161
|
+
}, themeHasLabel ? {
|
|
47162
|
+
right: 0,
|
|
47163
|
+
bottom: 0
|
|
47164
|
+
} : {
|
|
47165
|
+
right: -theme.__hd__.filterTrigger.space.badge.labelessRight,
|
|
47166
|
+
bottom: -theme.__hd__.filterTrigger.space.badge.labelessBottom
|
|
47167
|
+
});
|
|
47168
|
+
});
|
|
47169
|
+
var StyledText = index$b(Typography.Body)(function (_ref3) {
|
|
47170
|
+
var theme = _ref3.theme;
|
|
47171
|
+
return {
|
|
47172
|
+
lineHeight: theme.__hd__.filterTrigger.lineHeights.text,
|
|
47173
|
+
textAlignVertical: 'center',
|
|
47174
|
+
includeFontPadding: false
|
|
47175
|
+
};
|
|
47176
|
+
});
|
|
47177
|
+
|
|
47178
|
+
var FilterTrigger = function FilterTrigger(_ref) {
|
|
47179
|
+
var label = _ref.label,
|
|
47180
|
+
_ref$active = _ref.active,
|
|
47181
|
+
active = _ref$active === void 0 ? false : _ref$active,
|
|
47182
|
+
_ref$filterCount = _ref.filterCount,
|
|
47183
|
+
filterCount = _ref$filterCount === void 0 ? 0 : _ref$filterCount,
|
|
47184
|
+
_ref$variant = _ref.variant,
|
|
47185
|
+
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
47186
|
+
suffix = _ref.suffix,
|
|
47187
|
+
onPress = _ref.onPress,
|
|
47188
|
+
testID = _ref.testID,
|
|
47189
|
+
style = _ref.style;
|
|
47190
|
+
var shouldShowBadge = filterCount > 0 && active;
|
|
47191
|
+
var iconIntent = active ? 'text' : 'inactive';
|
|
47192
|
+
var typographyVariant = active ? 'small-bold' : 'small';
|
|
47193
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledFilterWrapper, {
|
|
47194
|
+
testID: testID,
|
|
47195
|
+
style: style,
|
|
47196
|
+
themeActive: active,
|
|
47197
|
+
themeVariant: variant,
|
|
47198
|
+
onPress: onPress,
|
|
47199
|
+
themeHasLabel: !!label
|
|
47200
|
+
}, label ? /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledText, {
|
|
47201
|
+
variant: typographyVariant
|
|
47202
|
+
}, label), shouldShowBadge && /*#__PURE__*/React__namespace.default.createElement(Badge$1, {
|
|
47203
|
+
content: filterCount,
|
|
47204
|
+
size: "small"
|
|
47205
|
+
}), suffix && /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
47206
|
+
icon: suffix,
|
|
47207
|
+
size: "xxxsmall",
|
|
47208
|
+
intent: iconIntent,
|
|
47209
|
+
testID: "".concat(testID, "-suffix")
|
|
47210
|
+
})) : /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, suffix && /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
47211
|
+
icon: suffix,
|
|
47212
|
+
size: "xsmall",
|
|
47213
|
+
intent: iconIntent,
|
|
47214
|
+
testID: "".concat(testID, "-suffix")
|
|
47215
|
+
}), shouldShowBadge && /*#__PURE__*/React__namespace.default.createElement(StyledBadge, {
|
|
47216
|
+
content: filterCount,
|
|
47217
|
+
size: "small",
|
|
47218
|
+
themeHasLabel: !!label
|
|
47219
|
+
})));
|
|
47220
|
+
};
|
|
47221
|
+
|
|
47025
47222
|
var getZIndexByState = function getZIndexByState(_ref) {
|
|
47026
47223
|
var themeFocused = _ref.themeFocused,
|
|
47027
47224
|
themeHasError = _ref.themeHasError;
|
|
@@ -47507,7 +47704,7 @@ var FloatingLabel = function FloatingLabel(_ref) {
|
|
|
47507
47704
|
FloatingLabel.displayName = 'FloatingLabel';
|
|
47508
47705
|
var FloatingLabel$1 = /*#__PURE__*/React__namespace.default.memo(FloatingLabel);
|
|
47509
47706
|
|
|
47510
|
-
var _excluded$
|
|
47707
|
+
var _excluded$2 = ["state", "prefix"];
|
|
47511
47708
|
/**
|
|
47512
47709
|
* PrefixComponent
|
|
47513
47710
|
*
|
|
@@ -47540,7 +47737,7 @@ var _excluded$3 = ["state", "prefix"];
|
|
|
47540
47737
|
var PrefixComponent = function PrefixComponent(_ref) {
|
|
47541
47738
|
var state = _ref.state,
|
|
47542
47739
|
prefix = _ref.prefix,
|
|
47543
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
47740
|
+
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
47544
47741
|
var actualPrefix = typeof prefix === 'string' ? prefix : '';
|
|
47545
47742
|
if (actualPrefix) {
|
|
47546
47743
|
return /*#__PURE__*/React__namespace.default.createElement(StyledPrefixComponentWrapper, _extends$1({
|
|
@@ -47712,116 +47909,6 @@ var InputRow = /*#__PURE__*/React__namespace.default.forwardRef(function (_ref,
|
|
|
47712
47909
|
})));
|
|
47713
47910
|
});
|
|
47714
47911
|
|
|
47715
|
-
/**
|
|
47716
|
-
* Generates the border style for the TextInputGroup.
|
|
47717
|
-
* @param index - The index of the TextInput.
|
|
47718
|
-
* @param length - The length of the TextInputGroup.
|
|
47719
|
-
* @returns The border style for the TextInputGroup.
|
|
47720
|
-
*/
|
|
47721
|
-
var generateBorderStyle$1 = function generateBorderStyle(_ref) {
|
|
47722
|
-
var index = _ref.index,
|
|
47723
|
-
length = _ref.length;
|
|
47724
|
-
var isFirst = index === 0;
|
|
47725
|
-
var isLast = index === length - 1;
|
|
47726
|
-
if (length === 1) {
|
|
47727
|
-
return {};
|
|
47728
|
-
}
|
|
47729
|
-
if (isFirst) {
|
|
47730
|
-
return {
|
|
47731
|
-
borderBottomLeftRadius: 0,
|
|
47732
|
-
borderBottomRightRadius: 0
|
|
47733
|
-
};
|
|
47734
|
-
}
|
|
47735
|
-
if (isLast) {
|
|
47736
|
-
return {
|
|
47737
|
-
borderTopLeftRadius: 0,
|
|
47738
|
-
borderTopRightRadius: 0
|
|
47739
|
-
};
|
|
47740
|
-
}
|
|
47741
|
-
return {
|
|
47742
|
-
borderRadius: 0
|
|
47743
|
-
};
|
|
47744
|
-
};
|
|
47745
|
-
var generateMarginStyle$1 = function generateMarginStyle(_ref2) {
|
|
47746
|
-
var index = _ref2.index,
|
|
47747
|
-
length = _ref2.length,
|
|
47748
|
-
theme = _ref2.theme;
|
|
47749
|
-
if (length === 1) {
|
|
47750
|
-
return {};
|
|
47751
|
-
}
|
|
47752
|
-
if (index === 0) {
|
|
47753
|
-
return {
|
|
47754
|
-
marginTop: 0
|
|
47755
|
-
};
|
|
47756
|
-
}
|
|
47757
|
-
return {
|
|
47758
|
-
marginTop: -theme.__hd__.textInput.borderWidths.container.normal
|
|
47759
|
-
};
|
|
47760
|
-
};
|
|
47761
|
-
|
|
47762
|
-
var useDeprecation = function useDeprecation(message) {
|
|
47763
|
-
var cond = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
47764
|
-
React.useEffect(function () {
|
|
47765
|
-
// eslint-disable-next-line no-console
|
|
47766
|
-
if (cond) {
|
|
47767
|
-
console.warn(message);
|
|
47768
|
-
}
|
|
47769
|
-
}, [message, cond]);
|
|
47770
|
-
};
|
|
47771
|
-
|
|
47772
|
-
var _excluded$2 = ["children", "style", "testID"];
|
|
47773
|
-
var TextInputGroup = function TextInputGroup(_ref) {
|
|
47774
|
-
var children = _ref.children,
|
|
47775
|
-
style = _ref.style,
|
|
47776
|
-
testID = _ref.testID,
|
|
47777
|
-
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
47778
|
-
useDeprecation('TextInput.Group is deprecated. Please use FormGroup instead.', true);
|
|
47779
|
-
var theme = useTheme();
|
|
47780
|
-
var childrenArray = React__namespace.default.Children.toArray(children).filter(React__namespace.default.isValidElement);
|
|
47781
|
-
// If there are multiple children, inject styles to group them together.
|
|
47782
|
-
var groupedChildren = React.useMemo(function () {
|
|
47783
|
-
return childrenArray.map(function (child, index) {
|
|
47784
|
-
var rawChildStyle = child.props.style;
|
|
47785
|
-
var rawChildTextStyle = child.props.textStyle;
|
|
47786
|
-
// Handle array styles by flattening them first
|
|
47787
|
-
var childStyle = reactNative.StyleSheet.flatten(rawChildStyle);
|
|
47788
|
-
var childTextStyle = reactNative.StyleSheet.flatten(rawChildTextStyle);
|
|
47789
|
-
/**
|
|
47790
|
-
* Merge the child style with the group injected style.
|
|
47791
|
-
* Order of precedence:
|
|
47792
|
-
* 1. Child style.
|
|
47793
|
-
* 2. Group injected style.
|
|
47794
|
-
*/
|
|
47795
|
-
var mergedStyle = _objectSpread2(_objectSpread2({}, childStyle), generateMarginStyle$1({
|
|
47796
|
-
index: index,
|
|
47797
|
-
length: childrenArray.length,
|
|
47798
|
-
theme: theme
|
|
47799
|
-
}));
|
|
47800
|
-
/**
|
|
47801
|
-
* Merge the child text style with the group text style.
|
|
47802
|
-
* Order of precedence:
|
|
47803
|
-
* 1. Group text style through textStyle prop.
|
|
47804
|
-
* 2. Child text style.
|
|
47805
|
-
* 3. Group injected border style.
|
|
47806
|
-
*/
|
|
47807
|
-
var mergedTextStyle = _objectSpread2(_objectSpread2({}, childTextStyle), generateBorderStyle$1({
|
|
47808
|
-
index: index,
|
|
47809
|
-
length: childrenArray.length
|
|
47810
|
-
}));
|
|
47811
|
-
return /*#__PURE__*/React__namespace.default.cloneElement(child, {
|
|
47812
|
-
style: mergedStyle,
|
|
47813
|
-
textStyle: mergedTextStyle,
|
|
47814
|
-
// Internal text input prop to allow for different styling
|
|
47815
|
-
groupStyleEnabled: true
|
|
47816
|
-
});
|
|
47817
|
-
});
|
|
47818
|
-
}, [childrenArray, theme]);
|
|
47819
|
-
return /*#__PURE__*/React__namespace.default.createElement(Box, _extends$1({
|
|
47820
|
-
style: style,
|
|
47821
|
-
testID: testID
|
|
47822
|
-
}, props), groupedChildren);
|
|
47823
|
-
};
|
|
47824
|
-
|
|
47825
47912
|
var _excluded$1 = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant", "accessibilityLabel", "groupStyleEnabled"],
|
|
47826
47913
|
_excluded2 = ["onFocus", "onBlur", "onChangeText"];
|
|
47827
47914
|
var getState = function getState(_ref) {
|
|
@@ -48094,18 +48181,15 @@ var TextInput = /*#__PURE__*/React__namespace.default.forwardRef(function (props
|
|
|
48094
48181
|
}));
|
|
48095
48182
|
});
|
|
48096
48183
|
TextInput.displayName = 'TextInput';
|
|
48097
|
-
var TextInput$1 = Object.assign(TextInput, {
|
|
48098
|
-
Group: TextInputGroup
|
|
48099
|
-
});
|
|
48100
48184
|
|
|
48101
48185
|
var Select = function Select(props) {
|
|
48102
48186
|
return /*#__PURE__*/React__namespace.default.createElement(InternalSelect, _extends$1({}, props, {
|
|
48103
|
-
TextInputComponent: TextInput
|
|
48187
|
+
TextInputComponent: TextInput
|
|
48104
48188
|
}));
|
|
48105
48189
|
};
|
|
48106
48190
|
var MultiSelect = function MultiSelect(props) {
|
|
48107
48191
|
return /*#__PURE__*/React__namespace.default.createElement(InternalSelect.Multi, _extends$1({}, props, {
|
|
48108
|
-
TextInputComponent: TextInput
|
|
48192
|
+
TextInputComponent: TextInput
|
|
48109
48193
|
}));
|
|
48110
48194
|
};
|
|
48111
48195
|
var index$2 = Object.assign(Select, {
|
|
@@ -48114,7 +48198,7 @@ var index$2 = Object.assign(Select, {
|
|
|
48114
48198
|
|
|
48115
48199
|
var DatePicker = function DatePicker(props) {
|
|
48116
48200
|
return /*#__PURE__*/React__namespace.default.createElement(InternalDatePicker$1, _extends$1({}, props, {
|
|
48117
|
-
TextInputComponent: TextInput
|
|
48201
|
+
TextInputComponent: TextInput
|
|
48118
48202
|
}));
|
|
48119
48203
|
};
|
|
48120
48204
|
var index$1 = Object.assign(DatePicker, {
|
|
@@ -48123,7 +48207,7 @@ var index$1 = Object.assign(DatePicker, {
|
|
|
48123
48207
|
|
|
48124
48208
|
var TimePicker = function TimePicker(props) {
|
|
48125
48209
|
return /*#__PURE__*/React__namespace.default.createElement(InternalTimePicker, _extends$1({}, props, {
|
|
48126
|
-
TextInputComponent: TextInput
|
|
48210
|
+
TextInputComponent: TextInput
|
|
48127
48211
|
}));
|
|
48128
48212
|
};
|
|
48129
48213
|
|
|
@@ -67272,6 +67356,7 @@ exports.Drawer = index$8;
|
|
|
67272
67356
|
exports.Empty = Empty;
|
|
67273
67357
|
exports.Error = ErrorComponent;
|
|
67274
67358
|
exports.FAB = FAB;
|
|
67359
|
+
exports.FilterTrigger = FilterTrigger;
|
|
67275
67360
|
exports.FlatListWithFAB = FlatListWithFAB;
|
|
67276
67361
|
exports.FloatingIsland = FloatingIsland;
|
|
67277
67362
|
exports.FormGroup = FormGroup;
|
|
@@ -67302,7 +67387,7 @@ exports.Swipeable = index$6;
|
|
|
67302
67387
|
exports.Switch = index$5;
|
|
67303
67388
|
exports.Tabs = index$4;
|
|
67304
67389
|
exports.Tag = Tag;
|
|
67305
|
-
exports.TextInput = TextInput
|
|
67390
|
+
exports.TextInput = TextInput;
|
|
67306
67391
|
exports.ThemeProvider = WorkThemeProvider;
|
|
67307
67392
|
exports.ThemeSwitcher = WorkThemeSwitcher;
|
|
67308
67393
|
exports.TimePicker = TimePicker;
|