@hero-design/rn 8.75.0 → 8.76.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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +10 -0
- package/es/index.js +246 -88
- package/lib/index.js +246 -88
- package/package.json +1 -1
- package/src/components/BottomSheet/index.tsx +2 -0
- package/src/components/Toolbar/StyledToolbar.tsx +50 -1
- package/src/components/Toolbar/ToolbarMessage.tsx +169 -0
- package/src/components/Toolbar/__tests__/ToolbarMessage.spec.tsx +161 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarMessage.spec.tsx.snap +382 -0
- package/src/components/Toolbar/index.tsx +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +16 -0
- package/src/theme/components/toolbar.ts +19 -1
- package/stats/8.76.0/rn-stats.html +4844 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +33 -2
- package/types/components/Toolbar/ToolbarMessage.d.ts +59 -0
- package/types/components/Toolbar/index.d.ts +1 -0
- package/types/theme/components/toolbar.d.ts +16 -0
package/es/index.js
CHANGED
|
@@ -3642,29 +3642,47 @@ var getToolbarTheme = function getToolbarTheme(theme) {
|
|
|
3642
3642
|
danger: theme.colors.warning,
|
|
3643
3643
|
error: theme.colors.error,
|
|
3644
3644
|
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
3645
|
-
iconButtonBackground: theme.colors.highlightedSurface
|
|
3645
|
+
iconButtonBackground: theme.colors.highlightedSurface,
|
|
3646
|
+
inputContainerBackground: theme.colors.neutralGlobalSurface
|
|
3646
3647
|
};
|
|
3647
3648
|
var space = {
|
|
3648
3649
|
verticalPadding: theme.space.small,
|
|
3649
3650
|
horizontalPadding: theme.space.small,
|
|
3650
3651
|
iconButtonLabelMarginLeft: theme.space.small,
|
|
3651
|
-
iconButtonWrapperPadding: theme.space.smallMedium
|
|
3652
|
+
iconButtonWrapperPadding: theme.space.smallMedium,
|
|
3653
|
+
messageWrapperMarginHorizontal: theme.space.small,
|
|
3654
|
+
messageWrapperPaddingVertical: theme.space.smallMedium,
|
|
3655
|
+
messageWrapperPaddingHorizontal: theme.space.small,
|
|
3656
|
+
messageInputPaddingHorizontal: theme.space.smallMedium,
|
|
3657
|
+
messageInputPaddingVertical: theme.space.small,
|
|
3658
|
+
affixInnerMargin: theme.space.medium
|
|
3652
3659
|
};
|
|
3653
3660
|
var borderWidths = {
|
|
3654
3661
|
"default": theme.borderWidths.base
|
|
3655
3662
|
};
|
|
3656
3663
|
var sizes = {
|
|
3657
|
-
itemWrapperHeight: scale(64)
|
|
3664
|
+
itemWrapperHeight: scale(64),
|
|
3665
|
+
messageWrapperHeight: scale(64),
|
|
3666
|
+
messageInputHeight: 40
|
|
3658
3667
|
};
|
|
3659
3668
|
var radii = {
|
|
3660
|
-
iconButtonWrapperBorderRadius: theme.radii.xxxlarge
|
|
3669
|
+
iconButtonWrapperBorderRadius: theme.radii.xxxlarge,
|
|
3670
|
+
messageContainer: theme.radii.rounded
|
|
3671
|
+
};
|
|
3672
|
+
var fontSizes = {
|
|
3673
|
+
text: theme.fontSizes.large
|
|
3674
|
+
};
|
|
3675
|
+
var fonts = {
|
|
3676
|
+
text: theme.fonts.neutral.regular
|
|
3661
3677
|
};
|
|
3662
3678
|
return {
|
|
3663
3679
|
colors: colors,
|
|
3664
3680
|
space: space,
|
|
3665
3681
|
borderWidths: borderWidths,
|
|
3666
3682
|
sizes: sizes,
|
|
3667
|
-
radii: radii
|
|
3683
|
+
radii: radii,
|
|
3684
|
+
fontSizes: fontSizes,
|
|
3685
|
+
fonts: fonts
|
|
3668
3686
|
};
|
|
3669
3687
|
};
|
|
3670
3688
|
|
|
@@ -7113,7 +7131,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
7113
7131
|
});
|
|
7114
7132
|
});
|
|
7115
7133
|
|
|
7116
|
-
var _excluded$
|
|
7134
|
+
var _excluded$L = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
7117
7135
|
var Text = function Text(_ref) {
|
|
7118
7136
|
var children = _ref.children,
|
|
7119
7137
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -7126,7 +7144,7 @@ var Text = function Text(_ref) {
|
|
|
7126
7144
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7127
7145
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7128
7146
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7129
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7147
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
7130
7148
|
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.');
|
|
7131
7149
|
return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
7132
7150
|
themeFontSize: fontSize,
|
|
@@ -7156,7 +7174,7 @@ var StyledCaption = index$a(Text$1)(function (_ref) {
|
|
|
7156
7174
|
};
|
|
7157
7175
|
});
|
|
7158
7176
|
|
|
7159
|
-
var _excluded$
|
|
7177
|
+
var _excluded$K = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
7160
7178
|
var Caption = function Caption(_ref) {
|
|
7161
7179
|
var children = _ref.children,
|
|
7162
7180
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -7165,7 +7183,7 @@ var Caption = function Caption(_ref) {
|
|
|
7165
7183
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7166
7184
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7167
7185
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7168
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7186
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
7169
7187
|
return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
7170
7188
|
themeFontWeight: fontWeight,
|
|
7171
7189
|
themeIntent: intent,
|
|
@@ -7184,14 +7202,14 @@ var StyledLabel$1 = index$a(Text$1)(function (_ref) {
|
|
|
7184
7202
|
};
|
|
7185
7203
|
});
|
|
7186
7204
|
|
|
7187
|
-
var _excluded$
|
|
7205
|
+
var _excluded$J = ["children", "intent", "allowFontScaling"];
|
|
7188
7206
|
var Label = function Label(_ref) {
|
|
7189
7207
|
var children = _ref.children,
|
|
7190
7208
|
_ref$intent = _ref.intent,
|
|
7191
7209
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7192
7210
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7193
7211
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7194
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7212
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
7195
7213
|
return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
7196
7214
|
themeIntent: intent,
|
|
7197
7215
|
allowFontScaling: allowFontScaling
|
|
@@ -7212,7 +7230,7 @@ var StyledTitle$1 = index$a(Text$1)(function (_ref) {
|
|
|
7212
7230
|
};
|
|
7213
7231
|
});
|
|
7214
7232
|
|
|
7215
|
-
var _excluded$
|
|
7233
|
+
var _excluded$I = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
7216
7234
|
var Title = function Title(_ref) {
|
|
7217
7235
|
var children = _ref.children,
|
|
7218
7236
|
_ref$intent = _ref.intent,
|
|
@@ -7223,7 +7241,7 @@ var Title = function Title(_ref) {
|
|
|
7223
7241
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
7224
7242
|
_ref$typeface = _ref.typeface,
|
|
7225
7243
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7226
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7244
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$I);
|
|
7227
7245
|
return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
7228
7246
|
themeLevel: level,
|
|
7229
7247
|
themeTypeface: typeface,
|
|
@@ -7258,7 +7276,7 @@ var StyledBody$1 = index$a(Text$1)(function (_ref) {
|
|
|
7258
7276
|
};
|
|
7259
7277
|
});
|
|
7260
7278
|
|
|
7261
|
-
var _excluded$
|
|
7279
|
+
var _excluded$H = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
7262
7280
|
var Body = function Body(_ref) {
|
|
7263
7281
|
var children = _ref.children,
|
|
7264
7282
|
_ref$intent = _ref.intent,
|
|
@@ -7269,7 +7287,7 @@ var Body = function Body(_ref) {
|
|
|
7269
7287
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7270
7288
|
_ref$variant = _ref.variant,
|
|
7271
7289
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
7272
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7290
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$H);
|
|
7273
7291
|
return /*#__PURE__*/React__default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
|
|
7274
7292
|
themeTypeface: typeface,
|
|
7275
7293
|
themeIntent: intent,
|
|
@@ -7841,10 +7859,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
7841
7859
|
};
|
|
7842
7860
|
});
|
|
7843
7861
|
|
|
7844
|
-
var _excluded$
|
|
7862
|
+
var _excluded$G = ["style"];
|
|
7845
7863
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
7846
7864
|
var style = _ref.style,
|
|
7847
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7865
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$G);
|
|
7848
7866
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
7849
7867
|
useEffect(function () {
|
|
7850
7868
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -7949,7 +7967,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7949
7967
|
}, content));
|
|
7950
7968
|
};
|
|
7951
7969
|
|
|
7952
|
-
var _excluded$
|
|
7970
|
+
var _excluded$F = ["key"];
|
|
7953
7971
|
var Accordion = function Accordion(_ref) {
|
|
7954
7972
|
var items = _ref.items,
|
|
7955
7973
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -7970,7 +7988,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
7970
7988
|
testID: testID
|
|
7971
7989
|
}, items.map(function (_ref2, index) {
|
|
7972
7990
|
var key = _ref2.key,
|
|
7973
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7991
|
+
props = _objectWithoutProperties(_ref2, _excluded$F);
|
|
7974
7992
|
var open = _activeItemKey === key;
|
|
7975
7993
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
7976
7994
|
key: key
|
|
@@ -8464,7 +8482,7 @@ var borderWidths = {
|
|
|
8464
8482
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
8465
8483
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
8466
8484
|
|
|
8467
|
-
var _excluded$
|
|
8485
|
+
var _excluded$E = ["theme"];
|
|
8468
8486
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
8469
8487
|
var propConfig = config[key];
|
|
8470
8488
|
var propValue = props[key];
|
|
@@ -8491,18 +8509,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
8491
8509
|
var configKeys = Object.keys(config);
|
|
8492
8510
|
var StyledBox = index$a(View)(function (_ref5) {
|
|
8493
8511
|
var theme = _ref5.theme,
|
|
8494
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8512
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$E);
|
|
8495
8513
|
var styleProps = pick(configKeys, otherProps);
|
|
8496
8514
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
8497
8515
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
8498
8516
|
});
|
|
8499
8517
|
|
|
8500
|
-
var _excluded$
|
|
8518
|
+
var _excluded$D = ["children", "style", "testID"];
|
|
8501
8519
|
var Box = function Box(_ref) {
|
|
8502
8520
|
var children = _ref.children,
|
|
8503
8521
|
style = _ref.style,
|
|
8504
8522
|
testID = _ref.testID,
|
|
8505
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8523
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
8506
8524
|
return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8507
8525
|
style: style,
|
|
8508
8526
|
testID: testID
|
|
@@ -8731,7 +8749,7 @@ var StyledIcon$2 = index$a(Icon)(function (_ref4) {
|
|
|
8731
8749
|
};
|
|
8732
8750
|
});
|
|
8733
8751
|
|
|
8734
|
-
var _excluded$
|
|
8752
|
+
var _excluded$C = ["children", "visible", "intent", "style", "testID"];
|
|
8735
8753
|
var Status = function Status(_ref) {
|
|
8736
8754
|
var children = _ref.children,
|
|
8737
8755
|
_ref$visible = _ref.visible,
|
|
@@ -8740,7 +8758,7 @@ var Status = function Status(_ref) {
|
|
|
8740
8758
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
8741
8759
|
style = _ref.style,
|
|
8742
8760
|
testID = _ref.testID,
|
|
8743
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8761
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
8744
8762
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8745
8763
|
opacity = _React$useRef.current;
|
|
8746
8764
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -8773,7 +8791,7 @@ var Status = function Status(_ref) {
|
|
|
8773
8791
|
}));
|
|
8774
8792
|
};
|
|
8775
8793
|
|
|
8776
|
-
var _excluded$
|
|
8794
|
+
var _excluded$B = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
8777
8795
|
var DEFAULT_MAX_NUMBER = 99;
|
|
8778
8796
|
var getPaddingState = function getPaddingState(content) {
|
|
8779
8797
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -8793,7 +8811,7 @@ var Badge = function Badge(_ref) {
|
|
|
8793
8811
|
_ref$variant = _ref.variant,
|
|
8794
8812
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
8795
8813
|
icon = _ref.icon,
|
|
8796
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8814
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
8797
8815
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8798
8816
|
opacity = _React$useRef.current;
|
|
8799
8817
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -8894,7 +8912,7 @@ var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
|
|
|
8894
8912
|
};
|
|
8895
8913
|
});
|
|
8896
8914
|
|
|
8897
|
-
var _excluded$
|
|
8915
|
+
var _excluded$A = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
8898
8916
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
8899
8917
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
8900
8918
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -8905,7 +8923,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8905
8923
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
8906
8924
|
selectedTabKey = _ref.selectedTabKey,
|
|
8907
8925
|
tabs = _ref.tabs,
|
|
8908
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8926
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
8909
8927
|
var insets = useSafeAreaInsets();
|
|
8910
8928
|
/**
|
|
8911
8929
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -8991,13 +9009,13 @@ var StyledDivider = index$a(View)(function (_ref) {
|
|
|
8991
9009
|
}, horizontalMargin), verticalMargin);
|
|
8992
9010
|
});
|
|
8993
9011
|
|
|
8994
|
-
var _excluded$
|
|
9012
|
+
var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
8995
9013
|
var Divider = function Divider(_ref) {
|
|
8996
9014
|
var marginHorizontal = _ref.marginHorizontal,
|
|
8997
9015
|
marginVertical = _ref.marginVertical,
|
|
8998
9016
|
style = _ref.style,
|
|
8999
9017
|
testID = _ref.testID,
|
|
9000
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9018
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
9001
9019
|
return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
9002
9020
|
themeMarginHorizontal: marginHorizontal,
|
|
9003
9021
|
themeMarginVertical: marginVertical,
|
|
@@ -9153,7 +9171,7 @@ var StyledLoadingDot = index$a(View)(function (_ref) {
|
|
|
9153
9171
|
}, themeStyling());
|
|
9154
9172
|
});
|
|
9155
9173
|
|
|
9156
|
-
var _excluded$
|
|
9174
|
+
var _excluded$y = ["count", "size", "testID", "themeVariant"];
|
|
9157
9175
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
9158
9176
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
9159
9177
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -9185,7 +9203,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
9185
9203
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
9186
9204
|
testID = _ref2.testID,
|
|
9187
9205
|
themeVariant = _ref2.themeVariant,
|
|
9188
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
9206
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$y);
|
|
9189
9207
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
9190
9208
|
useEffect(function () {
|
|
9191
9209
|
var animation = Animated.loop(Animated.timing(progressAnimation.current, {
|
|
@@ -9628,11 +9646,11 @@ var Header = function Header(_ref) {
|
|
|
9628
9646
|
}))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
|
|
9629
9647
|
};
|
|
9630
9648
|
|
|
9631
|
-
var _excluded$
|
|
9649
|
+
var _excluded$x = ["scrollEventThrottle"];
|
|
9632
9650
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
9633
9651
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
9634
9652
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
9635
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9653
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
9636
9654
|
var _useContext = useContext(BottomSheetContext),
|
|
9637
9655
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
9638
9656
|
var onScrollBeginDrag = useCallback(function (e) {
|
|
@@ -9718,6 +9736,9 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9718
9736
|
}
|
|
9719
9737
|
onAnimationEnd === null || onAnimationEnd === void 0 || onAnimationEnd();
|
|
9720
9738
|
});
|
|
9739
|
+
return function () {
|
|
9740
|
+
return animation.stop();
|
|
9741
|
+
};
|
|
9721
9742
|
}, [open]);
|
|
9722
9743
|
var interpolateY = animatedValue.current.interpolate({
|
|
9723
9744
|
inputRange: [0, 1],
|
|
@@ -12444,12 +12465,12 @@ var Indicator = index$a(View)(function (_ref2) {
|
|
|
12444
12465
|
};
|
|
12445
12466
|
});
|
|
12446
12467
|
|
|
12447
|
-
var _excluded$
|
|
12468
|
+
var _excluded$w = ["intent", "children"];
|
|
12448
12469
|
var DataCard = function DataCard(_ref) {
|
|
12449
12470
|
var _ref$intent = _ref.intent,
|
|
12450
12471
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
12451
12472
|
children = _ref.children,
|
|
12452
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12473
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
12453
12474
|
return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
|
|
12454
12475
|
themeIntent: intent,
|
|
12455
12476
|
testID: "data-card-indicator"
|
|
@@ -12468,13 +12489,13 @@ var StyledCard$1 = index$a(View)(function (_ref) {
|
|
|
12468
12489
|
});
|
|
12469
12490
|
});
|
|
12470
12491
|
|
|
12471
|
-
var _excluded$
|
|
12492
|
+
var _excluded$v = ["intent", "children", "variant"];
|
|
12472
12493
|
var Card = function Card(_ref) {
|
|
12473
12494
|
var intent = _ref.intent,
|
|
12474
12495
|
children = _ref.children,
|
|
12475
12496
|
_ref$variant = _ref.variant,
|
|
12476
12497
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
12477
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12498
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
12478
12499
|
return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
12479
12500
|
themeIntent: intent,
|
|
12480
12501
|
themeVariant: variant
|
|
@@ -12736,7 +12757,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12736
12757
|
});
|
|
12737
12758
|
CardCarousel.displayName = 'CardCarousel';
|
|
12738
12759
|
|
|
12739
|
-
var _excluded$
|
|
12760
|
+
var _excluded$u = ["rounded", "size", "testID", "style"];
|
|
12740
12761
|
var Image = function Image(_ref) {
|
|
12741
12762
|
var _ref$rounded = _ref.rounded,
|
|
12742
12763
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -12744,7 +12765,7 @@ var Image = function Image(_ref) {
|
|
|
12744
12765
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
12745
12766
|
testID = _ref.testID,
|
|
12746
12767
|
style = _ref.style,
|
|
12747
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12768
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
12748
12769
|
var theme = useTheme();
|
|
12749
12770
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12750
12771
|
return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
|
|
@@ -12878,7 +12899,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12878
12899
|
}, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
|
|
12879
12900
|
};
|
|
12880
12901
|
|
|
12881
|
-
var _excluded$
|
|
12902
|
+
var _excluded$t = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
12882
12903
|
function useStateFromProp(initialValue) {
|
|
12883
12904
|
var _useState = useState(initialValue),
|
|
12884
12905
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12905,7 +12926,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12905
12926
|
testID = _ref.testID,
|
|
12906
12927
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
12907
12928
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
12908
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12929
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
12909
12930
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
12910
12931
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
12911
12932
|
var theme = useTheme();
|
|
@@ -13119,7 +13140,7 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
|
|
|
13119
13140
|
}, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
|
|
13120
13141
|
});
|
|
13121
13142
|
|
|
13122
|
-
var _excluded$
|
|
13143
|
+
var _excluded$s = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
|
|
13123
13144
|
var Chip = function Chip(_ref) {
|
|
13124
13145
|
var label = _ref.label,
|
|
13125
13146
|
_ref$variant = _ref.variant,
|
|
@@ -13130,7 +13151,7 @@ var Chip = function Chip(_ref) {
|
|
|
13130
13151
|
onPress = _ref.onPress,
|
|
13131
13152
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
13132
13153
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
13133
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
13154
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
13134
13155
|
var shouldShowSelectedIcon = variant === 'outlined' && selected && showSelectedIcon;
|
|
13135
13156
|
return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
|
|
13136
13157
|
onPress: onPress,
|
|
@@ -13371,8 +13392,8 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
13371
13392
|
};
|
|
13372
13393
|
});
|
|
13373
13394
|
|
|
13374
|
-
var _excluded$
|
|
13375
|
-
var getState$
|
|
13395
|
+
var _excluded$r = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
13396
|
+
var getState$3 = function getState(_ref) {
|
|
13376
13397
|
var disabled = _ref.disabled,
|
|
13377
13398
|
error = _ref.error,
|
|
13378
13399
|
editable = _ref.editable,
|
|
@@ -13483,7 +13504,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13483
13504
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
13484
13505
|
_ref8$variant = _ref8.variant,
|
|
13485
13506
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
13486
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
13507
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$r);
|
|
13487
13508
|
var displayText = getDisplayText(value, defaultValue);
|
|
13488
13509
|
var isEmptyValue = displayText.length === 0;
|
|
13489
13510
|
var _React$useState = React__default.useState({
|
|
@@ -13505,7 +13526,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13505
13526
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
13506
13527
|
isFocused = _React$useState8[0],
|
|
13507
13528
|
setIsFocused = _React$useState8[1];
|
|
13508
|
-
var state = getState$
|
|
13529
|
+
var state = getState$3({
|
|
13509
13530
|
disabled: disabled,
|
|
13510
13531
|
error: error,
|
|
13511
13532
|
editable: editable,
|
|
@@ -14028,11 +14049,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
14028
14049
|
}))));
|
|
14029
14050
|
};
|
|
14030
14051
|
|
|
14031
|
-
var _excluded$
|
|
14052
|
+
var _excluded$q = ["variant"];
|
|
14032
14053
|
var DatePicker = function DatePicker(_ref) {
|
|
14033
14054
|
var _ref$variant = _ref.variant,
|
|
14034
14055
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
14035
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14056
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
14036
14057
|
if (variant === 'calendar') {
|
|
14037
14058
|
return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
|
|
14038
14059
|
}
|
|
@@ -14586,7 +14607,7 @@ var Portal$1 = Object.assign(Portal, {
|
|
|
14586
14607
|
Host: PortalHost
|
|
14587
14608
|
});
|
|
14588
14609
|
|
|
14589
|
-
var _excluded$
|
|
14610
|
+
var _excluded$p = ["visible"];
|
|
14590
14611
|
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
14591
14612
|
var DEFAULT_ANIMATION_CONFIG = {
|
|
14592
14613
|
easing: Easing.inOut(Easing.cubic),
|
|
@@ -14682,7 +14703,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14682
14703
|
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
14683
14704
|
var _ref3$visible = _ref3.visible,
|
|
14684
14705
|
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
14685
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
14706
|
+
props = _objectWithoutProperties(_ref3, _excluded$p);
|
|
14686
14707
|
var modalRef = useRef(null);
|
|
14687
14708
|
var _useState = useState(visible),
|
|
14688
14709
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -14792,7 +14813,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
|
|
|
14792
14813
|
};
|
|
14793
14814
|
});
|
|
14794
14815
|
|
|
14795
|
-
var _excluded$
|
|
14816
|
+
var _excluded$o = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
14796
14817
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14797
14818
|
var renderImage$1 = function renderImage(image) {
|
|
14798
14819
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
@@ -14818,7 +14839,7 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14818
14839
|
onCtaPress = _ref.onCtaPress,
|
|
14819
14840
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
14820
14841
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
14821
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14842
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
14822
14843
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
14823
14844
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
14824
14845
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -15047,11 +15068,11 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
15047
15068
|
})), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
|
|
15048
15069
|
};
|
|
15049
15070
|
|
|
15050
|
-
var _excluded$
|
|
15071
|
+
var _excluded$n = ["active"];
|
|
15051
15072
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
15052
15073
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
15053
15074
|
var active = _ref.active,
|
|
15054
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
15075
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
15055
15076
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
15056
15077
|
useEffect(function () {
|
|
15057
15078
|
var animation = Animated.spring(rotateAnimation.current, {
|
|
@@ -15407,11 +15428,11 @@ var StyledFAB = index$a(FAB$1)(function (_ref) {
|
|
|
15407
15428
|
};
|
|
15408
15429
|
});
|
|
15409
15430
|
|
|
15410
|
-
var _excluded$
|
|
15431
|
+
var _excluded$m = ["fabConfig", "onCancel"];
|
|
15411
15432
|
var Pair = function Pair(_ref) {
|
|
15412
15433
|
var fabConfig = _ref.fabConfig,
|
|
15413
15434
|
onCancel = _ref.onCancel,
|
|
15414
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15435
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
15415
15436
|
var icon = fabConfig.icon,
|
|
15416
15437
|
title = fabConfig.title,
|
|
15417
15438
|
onPress = fabConfig.onPress,
|
|
@@ -15832,11 +15853,11 @@ var StyledFocusIcon = index$a(Icon)(function (_ref5) {
|
|
|
15832
15853
|
};
|
|
15833
15854
|
});
|
|
15834
15855
|
|
|
15835
|
-
var _excluded$
|
|
15856
|
+
var _excluded$l = ["style", "testID"];
|
|
15836
15857
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
15837
15858
|
var style = _ref.style,
|
|
15838
15859
|
testID = _ref.testID,
|
|
15839
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15860
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
15840
15861
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
15841
15862
|
style: style,
|
|
15842
15863
|
testID: testID
|
|
@@ -15846,7 +15867,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
15846
15867
|
}));
|
|
15847
15868
|
};
|
|
15848
15869
|
|
|
15849
|
-
var _excluded$
|
|
15870
|
+
var _excluded$k = ["style", "testID", "state", "image", "icon"];
|
|
15850
15871
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
15851
15872
|
var iconMap = {
|
|
15852
15873
|
idle: undefined,
|
|
@@ -15862,7 +15883,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
15862
15883
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
15863
15884
|
image = _ref.image,
|
|
15864
15885
|
icon = _ref.icon,
|
|
15865
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15886
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
15866
15887
|
var badgeIcon = getBadgeIconName(state);
|
|
15867
15888
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
15868
15889
|
style: style,
|
|
@@ -16193,7 +16214,7 @@ function PinCell(_ref) {
|
|
|
16193
16214
|
}, value));
|
|
16194
16215
|
}
|
|
16195
16216
|
|
|
16196
|
-
function getState$
|
|
16217
|
+
function getState$2(_ref) {
|
|
16197
16218
|
var disabled = _ref.disabled,
|
|
16198
16219
|
error = _ref.error;
|
|
16199
16220
|
if (disabled) {
|
|
@@ -16232,7 +16253,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
16232
16253
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16233
16254
|
focused = _useState2[0],
|
|
16234
16255
|
setFocused = _useState2[1];
|
|
16235
|
-
var state = getState$
|
|
16256
|
+
var state = getState$2({
|
|
16236
16257
|
disabled: disabled,
|
|
16237
16258
|
error: error
|
|
16238
16259
|
});
|
|
@@ -16404,7 +16425,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
|
|
|
16404
16425
|
};
|
|
16405
16426
|
});
|
|
16406
16427
|
|
|
16407
|
-
var _excluded$
|
|
16428
|
+
var _excluded$j = ["value", "renderValue", "intent", "style", "testID"];
|
|
16408
16429
|
var HalfCircle = function HalfCircle(_ref) {
|
|
16409
16430
|
var type = _ref.type,
|
|
16410
16431
|
themeIntent = _ref.themeIntent;
|
|
@@ -16425,7 +16446,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16425
16446
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
16426
16447
|
style = _ref2.style,
|
|
16427
16448
|
testID = _ref2.testID,
|
|
16428
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
16449
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$j);
|
|
16429
16450
|
var theme = useTheme$1();
|
|
16430
16451
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
16431
16452
|
var progressAnimatedValue = useRef(new Animated.Value(0));
|
|
@@ -16541,14 +16562,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
|
|
|
16541
16562
|
};
|
|
16542
16563
|
});
|
|
16543
16564
|
|
|
16544
|
-
var _excluded$
|
|
16565
|
+
var _excluded$i = ["value", "intent", "style", "testID"];
|
|
16545
16566
|
var ProgressBar = function ProgressBar(_ref) {
|
|
16546
16567
|
var value = _ref.value,
|
|
16547
16568
|
_ref$intent = _ref.intent,
|
|
16548
16569
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16549
16570
|
style = _ref.style,
|
|
16550
16571
|
testID = _ref.testID,
|
|
16551
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16572
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
16552
16573
|
var _useState = useState(0),
|
|
16553
16574
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16554
16575
|
width = _useState2[0],
|
|
@@ -16637,7 +16658,7 @@ var StyledSingleStep = index$a(Box)(function (_ref3) {
|
|
|
16637
16658
|
};
|
|
16638
16659
|
});
|
|
16639
16660
|
|
|
16640
|
-
var _excluded$
|
|
16661
|
+
var _excluded$h = ["steps", "current", "onLayout"];
|
|
16641
16662
|
var getStepState = function getStepState(current, index) {
|
|
16642
16663
|
if (index < current) {
|
|
16643
16664
|
return 'complete';
|
|
@@ -16651,7 +16672,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
16651
16672
|
var steps = _ref.steps,
|
|
16652
16673
|
current = _ref.current,
|
|
16653
16674
|
onLayout = _ref.onLayout,
|
|
16654
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16675
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
16655
16676
|
var theme = useTheme$1();
|
|
16656
16677
|
var _React$useState = React__default.useState(0),
|
|
16657
16678
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -16832,14 +16853,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
16832
16853
|
}, dotProps))));
|
|
16833
16854
|
};
|
|
16834
16855
|
|
|
16835
|
-
var _excluded$
|
|
16856
|
+
var _excluded$g = ["testID", "size", "intent"];
|
|
16836
16857
|
var Spinner = function Spinner(_ref) {
|
|
16837
16858
|
var testID = _ref.testID,
|
|
16838
16859
|
_ref$size = _ref.size,
|
|
16839
16860
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
16840
16861
|
_ref$intent = _ref.intent,
|
|
16841
16862
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16842
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16863
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
16843
16864
|
return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
|
|
16844
16865
|
testID: testID
|
|
16845
16866
|
}, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
|
|
@@ -16872,7 +16893,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
16872
16893
|
}, children);
|
|
16873
16894
|
};
|
|
16874
16895
|
|
|
16875
|
-
var _excluded$
|
|
16896
|
+
var _excluded$f = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
16876
16897
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
16877
16898
|
var trans = progress.interpolate({
|
|
16878
16899
|
inputRange: [0, 1],
|
|
@@ -16901,7 +16922,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16901
16922
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
16902
16923
|
_ref$variant = _ref.variant,
|
|
16903
16924
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
16904
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
16925
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
16905
16926
|
var theme = useTheme();
|
|
16906
16927
|
var _useWindowDimensions = useWindowDimensions(),
|
|
16907
16928
|
width = _useWindowDimensions.width;
|
|
@@ -17252,7 +17273,7 @@ var StyledSectionList = index$a(SectionList)(function (_ref4) {
|
|
|
17252
17273
|
};
|
|
17253
17274
|
});
|
|
17254
17275
|
|
|
17255
|
-
var _excluded$
|
|
17276
|
+
var _excluded$e = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
17256
17277
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
17257
17278
|
var keyExtractor = _ref.keyExtractor,
|
|
17258
17279
|
loading = _ref.loading,
|
|
@@ -17261,7 +17282,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
17261
17282
|
sections = _ref.sections,
|
|
17262
17283
|
renderItem = _ref.renderItem,
|
|
17263
17284
|
sectionListRef = _ref.sectionListRef,
|
|
17264
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17285
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
17265
17286
|
var theme = useTheme$1();
|
|
17266
17287
|
var _useState = useState(false),
|
|
17267
17288
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17331,7 +17352,7 @@ var Option$2 = function Option(_ref) {
|
|
|
17331
17352
|
return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
|
|
17332
17353
|
};
|
|
17333
17354
|
|
|
17334
|
-
var _excluded$
|
|
17355
|
+
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
17335
17356
|
var OptionList$1 = function OptionList(_ref) {
|
|
17336
17357
|
var keyExtractor = _ref.keyExtractor,
|
|
17337
17358
|
loading = _ref.loading,
|
|
@@ -17342,7 +17363,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
17342
17363
|
renderOption = _ref.renderOption,
|
|
17343
17364
|
value = _ref.value,
|
|
17344
17365
|
sectionListRef = _ref.sectionListRef,
|
|
17345
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17366
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
17346
17367
|
var renderItem = function renderItem(info) {
|
|
17347
17368
|
var item = info.item;
|
|
17348
17369
|
var selected = value.includes(info.item.value);
|
|
@@ -17533,7 +17554,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
|
|
|
17533
17554
|
};
|
|
17534
17555
|
});
|
|
17535
17556
|
|
|
17536
|
-
var _excluded$
|
|
17557
|
+
var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
17537
17558
|
var OptionList = function OptionList(_ref) {
|
|
17538
17559
|
var keyExtractor = _ref.keyExtractor,
|
|
17539
17560
|
loading = _ref.loading,
|
|
@@ -17544,7 +17565,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
17544
17565
|
renderOption = _ref.renderOption,
|
|
17545
17566
|
value = _ref.value,
|
|
17546
17567
|
sectionListRef = _ref.sectionListRef,
|
|
17547
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17568
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
17548
17569
|
var renderItem = function renderItem(info) {
|
|
17549
17570
|
var item = info.item;
|
|
17550
17571
|
var selected = item.value === value;
|
|
@@ -17712,7 +17733,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
|
|
|
17712
17733
|
};
|
|
17713
17734
|
});
|
|
17714
17735
|
|
|
17715
|
-
var _excluded$
|
|
17736
|
+
var _excluded$b = ["intent", "variant", "style", "onLayout"];
|
|
17716
17737
|
var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
|
|
17717
17738
|
var gradientPositions = {
|
|
17718
17739
|
start: {
|
|
@@ -17744,7 +17765,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
17744
17765
|
variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
|
|
17745
17766
|
style = _ref.style,
|
|
17746
17767
|
onLayout = _ref.onLayout,
|
|
17747
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
17768
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
17748
17769
|
var theme = useTheme();
|
|
17749
17770
|
var colors = useMemo(function () {
|
|
17750
17771
|
return getGradientColors(theme, intent);
|
|
@@ -17876,7 +17897,7 @@ var StyledSuccessModal = index$a(ModalWrapper)({
|
|
|
17876
17897
|
width: '100%'
|
|
17877
17898
|
});
|
|
17878
17899
|
|
|
17879
|
-
var _excluded$
|
|
17900
|
+
var _excluded$a = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
17880
17901
|
var renderImage = function renderImage(image) {
|
|
17881
17902
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
17882
17903
|
return /*#__PURE__*/React__default.cloneElement(image, {
|
|
@@ -17902,7 +17923,7 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17902
17923
|
onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
|
|
17903
17924
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
17904
17925
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
17905
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
17926
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
17906
17927
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
17907
17928
|
return /*#__PURE__*/React__default.createElement(StyledSuccessContainer, _extends$1({
|
|
17908
17929
|
testID: testID,
|
|
@@ -18920,7 +18941,7 @@ var StyledText = index$a(Typography.Caption)(function (_ref2) {
|
|
|
18920
18941
|
};
|
|
18921
18942
|
});
|
|
18922
18943
|
|
|
18923
|
-
var _excluded$
|
|
18944
|
+
var _excluded$9 = ["content", "variant", "intent", "style", "testID"];
|
|
18924
18945
|
var Tag = function Tag(_ref) {
|
|
18925
18946
|
var content = _ref.content,
|
|
18926
18947
|
_ref$variant = _ref.variant,
|
|
@@ -18929,7 +18950,7 @@ var Tag = function Tag(_ref) {
|
|
|
18929
18950
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
18930
18951
|
style = _ref.style,
|
|
18931
18952
|
testID = _ref.testID,
|
|
18932
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
18953
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
18933
18954
|
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
18934
18955
|
return /*#__PURE__*/React__default.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
18935
18956
|
themeIntent: intent,
|
|
@@ -19165,6 +19186,56 @@ var StyledLabel = index$a(Typography.Body)(function (_ref6) {
|
|
|
19165
19186
|
color: intent === 'secondary' ? theme.__hd__.toolbar.colors.secondary : theme.__hd__.typography.colors[intent]
|
|
19166
19187
|
};
|
|
19167
19188
|
});
|
|
19189
|
+
var ToolbarMessageWrapper = index$a(View)(function (_ref7) {
|
|
19190
|
+
var theme = _ref7.theme;
|
|
19191
|
+
return {
|
|
19192
|
+
flex: 1,
|
|
19193
|
+
flexDirection: 'row',
|
|
19194
|
+
justifyContent: 'space-between',
|
|
19195
|
+
alignItems: 'center',
|
|
19196
|
+
height: theme.__hd__.toolbar.sizes.messageWrapperHeight,
|
|
19197
|
+
paddingVertical: theme.__hd__.toolbar.space.messageWrapperPaddingVertical,
|
|
19198
|
+
paddingHorizontal: theme.__hd__.toolbar.space.messageWrapperPaddingHorizontal
|
|
19199
|
+
};
|
|
19200
|
+
});
|
|
19201
|
+
var StyledInputContainer$1 = index$a(View)(function (_ref8) {
|
|
19202
|
+
var theme = _ref8.theme;
|
|
19203
|
+
return {
|
|
19204
|
+
flexDirection: 'row',
|
|
19205
|
+
alignItems: 'center',
|
|
19206
|
+
flex: 1,
|
|
19207
|
+
backgroundColor: theme.__hd__.toolbar.colors.inputContainerBackground,
|
|
19208
|
+
borderRadius: theme.__hd__.toolbar.radii.messageContainer,
|
|
19209
|
+
height: theme.__hd__.toolbar.sizes.messageInputHeight,
|
|
19210
|
+
paddingHorizontal: theme.__hd__.toolbar.space.messageInputPaddingHorizontal,
|
|
19211
|
+
paddingVertical: theme.__hd__.toolbar.space.messageInputPaddingVertical
|
|
19212
|
+
};
|
|
19213
|
+
});
|
|
19214
|
+
var StyledInput$1 = index$a(TextInput$1)(function (_ref9) {
|
|
19215
|
+
var theme = _ref9.theme;
|
|
19216
|
+
return {
|
|
19217
|
+
textAlignVertical: 'center',
|
|
19218
|
+
fontSize: theme.__hd__.toolbar.fontSizes.text,
|
|
19219
|
+
alignSelf: 'stretch',
|
|
19220
|
+
flexGrow: 1,
|
|
19221
|
+
flexShrink: 1,
|
|
19222
|
+
fontFamily: theme.__hd__.toolbar.fonts.text
|
|
19223
|
+
};
|
|
19224
|
+
});
|
|
19225
|
+
var StyledPrefix = index$a(View)(function (_ref10) {
|
|
19226
|
+
var theme = _ref10.theme;
|
|
19227
|
+
return {
|
|
19228
|
+
marginRight: theme.__hd__.toolbar.space.affixInnerMargin,
|
|
19229
|
+
maxHeight: '100%'
|
|
19230
|
+
};
|
|
19231
|
+
});
|
|
19232
|
+
var StyledSuffix = index$a(View)(function (_ref11) {
|
|
19233
|
+
var theme = _ref11.theme;
|
|
19234
|
+
return {
|
|
19235
|
+
marginLeft: theme.__hd__.toolbar.space.affixInnerMargin,
|
|
19236
|
+
maxHeight: '100%'
|
|
19237
|
+
};
|
|
19238
|
+
});
|
|
19168
19239
|
|
|
19169
19240
|
var IconItem = function IconItem(_ref) {
|
|
19170
19241
|
var icon = _ref.icon,
|
|
@@ -19254,6 +19325,92 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
19254
19325
|
}));
|
|
19255
19326
|
};
|
|
19256
19327
|
|
|
19328
|
+
var _excluded$8 = ["prefix", "suffix", "style", "testID", "value", "defaultValue", "disabled", "editable", "textStyle"];
|
|
19329
|
+
var getState$1 = function getState(_ref) {
|
|
19330
|
+
var disabled = _ref.disabled,
|
|
19331
|
+
editable = _ref.editable,
|
|
19332
|
+
isEmptyValue = _ref.isEmptyValue;
|
|
19333
|
+
switch (true) {
|
|
19334
|
+
case disabled:
|
|
19335
|
+
return 'disabled';
|
|
19336
|
+
case !editable:
|
|
19337
|
+
return 'readonly';
|
|
19338
|
+
case !isEmptyValue:
|
|
19339
|
+
return 'filled';
|
|
19340
|
+
default:
|
|
19341
|
+
return 'default';
|
|
19342
|
+
}
|
|
19343
|
+
};
|
|
19344
|
+
var ToolbarMessage = /*#__PURE__*/forwardRef(function (props, forwardedRef) {
|
|
19345
|
+
var _ref2;
|
|
19346
|
+
var prefix = props.prefix,
|
|
19347
|
+
suffix = props.suffix,
|
|
19348
|
+
style = props.style,
|
|
19349
|
+
testID = props.testID,
|
|
19350
|
+
value = props.value,
|
|
19351
|
+
defaultValue = props.defaultValue,
|
|
19352
|
+
disabled = props.disabled,
|
|
19353
|
+
_props$editable = props.editable,
|
|
19354
|
+
editable = _props$editable === void 0 ? true : _props$editable,
|
|
19355
|
+
textStyle = props.textStyle,
|
|
19356
|
+
nativeProps = _objectWithoutProperties(props, _excluded$8);
|
|
19357
|
+
var innerTextInput = React__default.useRef();
|
|
19358
|
+
var displayText = (_ref2 = value !== undefined ? value : defaultValue) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
19359
|
+
var isEmptyValue = displayText.length === 0;
|
|
19360
|
+
React__default.useImperativeHandle(forwardedRef, function () {
|
|
19361
|
+
return {
|
|
19362
|
+
isFocused: function isFocused() {
|
|
19363
|
+
var _innerTextInput$curre;
|
|
19364
|
+
return ((_innerTextInput$curre = innerTextInput.current) === null || _innerTextInput$curre === void 0 ? void 0 : _innerTextInput$curre.isFocused()) || false;
|
|
19365
|
+
},
|
|
19366
|
+
getNativeTextInputRef: function getNativeTextInputRef() {
|
|
19367
|
+
return innerTextInput.current;
|
|
19368
|
+
},
|
|
19369
|
+
setNativeProps: function setNativeProps(args) {
|
|
19370
|
+
var _innerTextInput$curre2;
|
|
19371
|
+
return (_innerTextInput$curre2 = innerTextInput.current) === null || _innerTextInput$curre2 === void 0 ? void 0 : _innerTextInput$curre2.setNativeProps(args);
|
|
19372
|
+
},
|
|
19373
|
+
focus: function focus() {
|
|
19374
|
+
var _innerTextInput$curre3;
|
|
19375
|
+
return (_innerTextInput$curre3 = innerTextInput.current) === null || _innerTextInput$curre3 === void 0 ? void 0 : _innerTextInput$curre3.focus();
|
|
19376
|
+
},
|
|
19377
|
+
blur: function blur() {
|
|
19378
|
+
var _innerTextInput$curre4;
|
|
19379
|
+
return (_innerTextInput$curre4 = innerTextInput.current) === null || _innerTextInput$curre4 === void 0 ? void 0 : _innerTextInput$curre4.blur();
|
|
19380
|
+
},
|
|
19381
|
+
clear: function clear() {
|
|
19382
|
+
var _innerTextInput$curre5;
|
|
19383
|
+
return (_innerTextInput$curre5 = innerTextInput.current) === null || _innerTextInput$curre5 === void 0 ? void 0 : _innerTextInput$curre5.clear();
|
|
19384
|
+
}
|
|
19385
|
+
};
|
|
19386
|
+
}, [innerTextInput.current]);
|
|
19387
|
+
var state = getState$1({
|
|
19388
|
+
disabled: disabled,
|
|
19389
|
+
editable: editable,
|
|
19390
|
+
isEmptyValue: isEmptyValue
|
|
19391
|
+
});
|
|
19392
|
+
return /*#__PURE__*/React__default.createElement(ToolbarMessageWrapper, {
|
|
19393
|
+
testID: testID,
|
|
19394
|
+
style: style
|
|
19395
|
+
}, prefix && /*#__PURE__*/React__default.createElement(StyledPrefix, {
|
|
19396
|
+
testID: testID && "".concat(testID, "-prefix")
|
|
19397
|
+
}, prefix), /*#__PURE__*/React__default.createElement(StyledInputContainer$1, {
|
|
19398
|
+
pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
|
|
19399
|
+
testID: testID && "".concat(testID, "-input-container")
|
|
19400
|
+
}, /*#__PURE__*/React__default.createElement(StyledInput$1, _extends$1({}, nativeProps, {
|
|
19401
|
+
value: value,
|
|
19402
|
+
defaultValue: defaultValue,
|
|
19403
|
+
editable: editable,
|
|
19404
|
+
testID: testID && "".concat(testID, "-input"),
|
|
19405
|
+
ref: function ref(rnTextInputRef) {
|
|
19406
|
+
innerTextInput.current = rnTextInputRef;
|
|
19407
|
+
},
|
|
19408
|
+
style: textStyle
|
|
19409
|
+
}))), suffix && /*#__PURE__*/React__default.createElement(StyledSuffix, {
|
|
19410
|
+
testID: testID && "".concat(testID, "-suffix")
|
|
19411
|
+
}, suffix));
|
|
19412
|
+
});
|
|
19413
|
+
|
|
19257
19414
|
var _excluded$7 = ["children"];
|
|
19258
19415
|
var Toolbar = function Toolbar(_ref) {
|
|
19259
19416
|
var children = _ref.children,
|
|
@@ -19261,7 +19418,8 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
19261
19418
|
return /*#__PURE__*/React__default.createElement(ToolbarWrapper, rest, children);
|
|
19262
19419
|
};
|
|
19263
19420
|
var index$1 = Object.assign(Toolbar, {
|
|
19264
|
-
Group: ToolbarGroup
|
|
19421
|
+
Group: ToolbarGroup,
|
|
19422
|
+
Message: ToolbarMessage
|
|
19265
19423
|
});
|
|
19266
19424
|
|
|
19267
19425
|
var AnimatedBox = Animated.createAnimatedComponent(View);
|