@hero-design/rn 8.74.1 → 8.75.0-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 +6 -0
- package/es/index.js +411 -139
- package/lib/index.js +411 -138
- package/package.json +1 -1
- package/src/components/BottomSheet/__tests__/index.spec.tsx +17 -153
- package/src/components/BottomSheet/index.tsx +2 -0
- package/src/components/Collapse/__tests__/index.spec.tsx +2 -5
- package/src/components/FloatingIsland/StyledFloatingIsland.tsx +32 -0
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +561 -0
- package/src/components/FloatingIsland/__tests__/index.spec.tsx +67 -0
- package/src/components/FloatingIsland/index.tsx +94 -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/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +46 -0
- package/src/theme/components/floatingIsland.ts +31 -0
- package/src/theme/components/toolbar.ts +19 -1
- package/src/theme/getTheme.ts +3 -0
- package/stats/8.75.0/rn-stats.html +4844 -0
- package/types/components/CompoundSearch/CompoundSearchHandler.d.ts +31 -0
- package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +60 -0
- package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +40 -0
- package/types/components/CompoundSearch/index.d.ts +8 -0
- package/types/components/CompoundSearch/utils.d.ts +8 -0
- package/types/components/FloatingIsland/SingleLine/StyledSingleLine.d.ts +15 -0
- package/types/components/FloatingIsland/SingleLine/index.d.ts +24 -0
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +19 -0
- package/types/components/FloatingIsland/index.d.ts +23 -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/index.d.ts +2 -1
- package/types/theme/components/compoundSearch.d.ts +36 -0
- package/types/theme/components/floatingIsland.d.ts +32 -0
- package/types/theme/components/toolbar.d.ts +16 -0
- package/types/theme/getTheme.d.ts +2 -0
- package/.turbo/turbo-build.log +0 -7
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +0 -751
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
|
|
|
@@ -3953,6 +3971,35 @@ var getMapPinTheme = function getMapPinTheme(theme) {
|
|
|
3953
3971
|
};
|
|
3954
3972
|
};
|
|
3955
3973
|
|
|
3974
|
+
var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
|
|
3975
|
+
var colors = {
|
|
3976
|
+
wrapperBackground: theme.colors.defaultGlobalSurface
|
|
3977
|
+
};
|
|
3978
|
+
var radii = {
|
|
3979
|
+
wrapper: theme.radii.rounded
|
|
3980
|
+
};
|
|
3981
|
+
var shadows = {
|
|
3982
|
+
wrapper: theme.shadows["default"]
|
|
3983
|
+
};
|
|
3984
|
+
var space = {
|
|
3985
|
+
wrapperPadding: theme.space.small,
|
|
3986
|
+
wrapperTop: theme.space.smallMedium,
|
|
3987
|
+
prefixMarginRight: theme.space.small,
|
|
3988
|
+
suffixMarginLeft: theme.space.medium,
|
|
3989
|
+
iconPadding: theme.space.smallMedium
|
|
3990
|
+
};
|
|
3991
|
+
var fontSizes = {
|
|
3992
|
+
iconSize: theme.fontSizes.medium
|
|
3993
|
+
};
|
|
3994
|
+
return {
|
|
3995
|
+
colors: colors,
|
|
3996
|
+
radii: radii,
|
|
3997
|
+
shadows: shadows,
|
|
3998
|
+
space: space,
|
|
3999
|
+
fontSizes: fontSizes
|
|
4000
|
+
};
|
|
4001
|
+
};
|
|
4002
|
+
|
|
3956
4003
|
var getTheme$1 = function getTheme() {
|
|
3957
4004
|
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
|
|
3958
4005
|
var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$1;
|
|
@@ -4006,7 +4053,8 @@ var getTheme$1 = function getTheme() {
|
|
|
4006
4053
|
timePicker: getTimePickerTheme(globalTheme),
|
|
4007
4054
|
toast: getToastTheme(globalTheme),
|
|
4008
4055
|
toolbar: getToolbarTheme(globalTheme),
|
|
4009
|
-
typography: getTypographyTheme(globalTheme)
|
|
4056
|
+
typography: getTypographyTheme(globalTheme),
|
|
4057
|
+
floatingIsland: getFloatingIslandTheme(globalTheme)
|
|
4010
4058
|
}
|
|
4011
4059
|
});
|
|
4012
4060
|
};
|
|
@@ -6962,7 +7010,7 @@ var useDeprecation = function useDeprecation(message) {
|
|
|
6962
7010
|
}, [message, cond]);
|
|
6963
7011
|
};
|
|
6964
7012
|
|
|
6965
|
-
var StyledWrapper$
|
|
7013
|
+
var StyledWrapper$e = index$a(Animated.View)({
|
|
6966
7014
|
margin: 0,
|
|
6967
7015
|
padding: 0,
|
|
6968
7016
|
overflow: 'hidden'
|
|
@@ -7016,7 +7064,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
7016
7064
|
setComponentMounted(true);
|
|
7017
7065
|
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
7018
7066
|
}, []);
|
|
7019
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
7067
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$e, {
|
|
7020
7068
|
style: {
|
|
7021
7069
|
height: open ? contentHeight : 0
|
|
7022
7070
|
},
|
|
@@ -7030,7 +7078,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
7030
7078
|
}, children)));
|
|
7031
7079
|
};
|
|
7032
7080
|
|
|
7033
|
-
var StyledWrapper$
|
|
7081
|
+
var StyledWrapper$d = index$a(View)(function () {
|
|
7034
7082
|
return {};
|
|
7035
7083
|
});
|
|
7036
7084
|
var StyledItemWrapper$1 = index$a(View)(function (_ref) {
|
|
@@ -7083,7 +7131,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
7083
7131
|
});
|
|
7084
7132
|
});
|
|
7085
7133
|
|
|
7086
|
-
var _excluded$
|
|
7134
|
+
var _excluded$L = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
7087
7135
|
var Text = function Text(_ref) {
|
|
7088
7136
|
var children = _ref.children,
|
|
7089
7137
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -7096,7 +7144,7 @@ var Text = function Text(_ref) {
|
|
|
7096
7144
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7097
7145
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7098
7146
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7099
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7147
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
7100
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.');
|
|
7101
7149
|
return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
7102
7150
|
themeFontSize: fontSize,
|
|
@@ -7126,7 +7174,7 @@ var StyledCaption = index$a(Text$1)(function (_ref) {
|
|
|
7126
7174
|
};
|
|
7127
7175
|
});
|
|
7128
7176
|
|
|
7129
|
-
var _excluded$
|
|
7177
|
+
var _excluded$K = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
7130
7178
|
var Caption = function Caption(_ref) {
|
|
7131
7179
|
var children = _ref.children,
|
|
7132
7180
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -7135,7 +7183,7 @@ var Caption = function Caption(_ref) {
|
|
|
7135
7183
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7136
7184
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7137
7185
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7138
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7186
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
7139
7187
|
return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
7140
7188
|
themeFontWeight: fontWeight,
|
|
7141
7189
|
themeIntent: intent,
|
|
@@ -7154,14 +7202,14 @@ var StyledLabel$1 = index$a(Text$1)(function (_ref) {
|
|
|
7154
7202
|
};
|
|
7155
7203
|
});
|
|
7156
7204
|
|
|
7157
|
-
var _excluded$
|
|
7205
|
+
var _excluded$J = ["children", "intent", "allowFontScaling"];
|
|
7158
7206
|
var Label = function Label(_ref) {
|
|
7159
7207
|
var children = _ref.children,
|
|
7160
7208
|
_ref$intent = _ref.intent,
|
|
7161
7209
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7162
7210
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7163
7211
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7164
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7212
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
7165
7213
|
return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
7166
7214
|
themeIntent: intent,
|
|
7167
7215
|
allowFontScaling: allowFontScaling
|
|
@@ -7182,7 +7230,7 @@ var StyledTitle$1 = index$a(Text$1)(function (_ref) {
|
|
|
7182
7230
|
};
|
|
7183
7231
|
});
|
|
7184
7232
|
|
|
7185
|
-
var _excluded$
|
|
7233
|
+
var _excluded$I = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
7186
7234
|
var Title = function Title(_ref) {
|
|
7187
7235
|
var children = _ref.children,
|
|
7188
7236
|
_ref$intent = _ref.intent,
|
|
@@ -7193,7 +7241,7 @@ var Title = function Title(_ref) {
|
|
|
7193
7241
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
7194
7242
|
_ref$typeface = _ref.typeface,
|
|
7195
7243
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7196
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7244
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$I);
|
|
7197
7245
|
return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
7198
7246
|
themeLevel: level,
|
|
7199
7247
|
themeTypeface: typeface,
|
|
@@ -7228,7 +7276,7 @@ var StyledBody$1 = index$a(Text$1)(function (_ref) {
|
|
|
7228
7276
|
};
|
|
7229
7277
|
});
|
|
7230
7278
|
|
|
7231
|
-
var _excluded$
|
|
7279
|
+
var _excluded$H = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
7232
7280
|
var Body = function Body(_ref) {
|
|
7233
7281
|
var children = _ref.children,
|
|
7234
7282
|
_ref$intent = _ref.intent,
|
|
@@ -7239,7 +7287,7 @@ var Body = function Body(_ref) {
|
|
|
7239
7287
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7240
7288
|
_ref$variant = _ref.variant,
|
|
7241
7289
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
7242
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7290
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$H);
|
|
7243
7291
|
return /*#__PURE__*/React__default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
|
|
7244
7292
|
themeTypeface: typeface,
|
|
7245
7293
|
themeIntent: intent,
|
|
@@ -7811,10 +7859,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
7811
7859
|
};
|
|
7812
7860
|
});
|
|
7813
7861
|
|
|
7814
|
-
var _excluded$
|
|
7862
|
+
var _excluded$G = ["style"];
|
|
7815
7863
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
7816
7864
|
var style = _ref.style,
|
|
7817
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7865
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$G);
|
|
7818
7866
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
7819
7867
|
useEffect(function () {
|
|
7820
7868
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -7919,7 +7967,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7919
7967
|
}, content));
|
|
7920
7968
|
};
|
|
7921
7969
|
|
|
7922
|
-
var _excluded$
|
|
7970
|
+
var _excluded$F = ["key"];
|
|
7923
7971
|
var Accordion = function Accordion(_ref) {
|
|
7924
7972
|
var items = _ref.items,
|
|
7925
7973
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -7935,12 +7983,12 @@ var Accordion = function Accordion(_ref) {
|
|
|
7935
7983
|
_usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
|
|
7936
7984
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
7937
7985
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
7938
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
7986
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$d, {
|
|
7939
7987
|
style: style,
|
|
7940
7988
|
testID: testID
|
|
7941
7989
|
}, items.map(function (_ref2, index) {
|
|
7942
7990
|
var key = _ref2.key,
|
|
7943
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7991
|
+
props = _objectWithoutProperties(_ref2, _excluded$F);
|
|
7944
7992
|
var open = _activeItemKey === key;
|
|
7945
7993
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
7946
7994
|
key: key
|
|
@@ -7975,7 +8023,7 @@ var IconContainer$1 = index$a(View)(function (_ref2) {
|
|
|
7975
8023
|
paddingLeft: theme.__hd__.alert.space.iconLeftPadding
|
|
7976
8024
|
};
|
|
7977
8025
|
});
|
|
7978
|
-
var StyledIcon$
|
|
8026
|
+
var StyledIcon$3 = index$a(Icon)(function (_ref3) {
|
|
7979
8027
|
var theme = _ref3.theme,
|
|
7980
8028
|
themeIntent = _ref3.themeIntent;
|
|
7981
8029
|
return {
|
|
@@ -8034,7 +8082,7 @@ var AlertIcon = function AlertIcon(_ref) {
|
|
|
8034
8082
|
intent = _ref.intent;
|
|
8035
8083
|
return icon ? /*#__PURE__*/React__default.createElement(IconContainer$1, {
|
|
8036
8084
|
testID: "alert-left-icon"
|
|
8037
|
-
}, /*#__PURE__*/React__default.createElement(StyledIcon$
|
|
8085
|
+
}, /*#__PURE__*/React__default.createElement(StyledIcon$3, {
|
|
8038
8086
|
icon: icon,
|
|
8039
8087
|
size: "small",
|
|
8040
8088
|
themeIntent: intent
|
|
@@ -8075,7 +8123,7 @@ var Alert = function Alert(_ref2) {
|
|
|
8075
8123
|
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
|
|
8076
8124
|
variant: "small-bold",
|
|
8077
8125
|
themeIntent: intent
|
|
8078
|
-
}, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$
|
|
8126
|
+
}, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$3, {
|
|
8079
8127
|
icon: "cancel",
|
|
8080
8128
|
size: "small",
|
|
8081
8129
|
themeIntent: intent
|
|
@@ -8150,7 +8198,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
8150
8198
|
})) : null);
|
|
8151
8199
|
};
|
|
8152
8200
|
|
|
8153
|
-
var StyledWrapper$
|
|
8201
|
+
var StyledWrapper$c = index$a(TouchableOpacity)(function (_ref) {
|
|
8154
8202
|
var themeSize = _ref.themeSize,
|
|
8155
8203
|
themeIntent = _ref.themeIntent,
|
|
8156
8204
|
theme = _ref.theme;
|
|
@@ -8219,7 +8267,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
8219
8267
|
hasImageError = _useState2[0],
|
|
8220
8268
|
setHasImageError = _useState2[1];
|
|
8221
8269
|
if (title === undefined && source === undefined) return null;
|
|
8222
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
8270
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$c, {
|
|
8223
8271
|
testID: testID,
|
|
8224
8272
|
onPress: onPress,
|
|
8225
8273
|
disabled: onPress === undefined,
|
|
@@ -8434,7 +8482,7 @@ var borderWidths = {
|
|
|
8434
8482
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
8435
8483
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
8436
8484
|
|
|
8437
|
-
var _excluded$
|
|
8485
|
+
var _excluded$E = ["theme"];
|
|
8438
8486
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
8439
8487
|
var propConfig = config[key];
|
|
8440
8488
|
var propValue = props[key];
|
|
@@ -8461,18 +8509,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
8461
8509
|
var configKeys = Object.keys(config);
|
|
8462
8510
|
var StyledBox = index$a(View)(function (_ref5) {
|
|
8463
8511
|
var theme = _ref5.theme,
|
|
8464
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8512
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$E);
|
|
8465
8513
|
var styleProps = pick(configKeys, otherProps);
|
|
8466
8514
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
8467
8515
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
8468
8516
|
});
|
|
8469
8517
|
|
|
8470
|
-
var _excluded$
|
|
8518
|
+
var _excluded$D = ["children", "style", "testID"];
|
|
8471
8519
|
var Box = function Box(_ref) {
|
|
8472
8520
|
var children = _ref.children,
|
|
8473
8521
|
style = _ref.style,
|
|
8474
8522
|
testID = _ref.testID,
|
|
8475
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8523
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
8476
8524
|
return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8477
8525
|
style: style,
|
|
8478
8526
|
testID: testID
|
|
@@ -8480,7 +8528,7 @@ var Box = function Box(_ref) {
|
|
|
8480
8528
|
};
|
|
8481
8529
|
|
|
8482
8530
|
var VISIBLE_RATIO = 0.7;
|
|
8483
|
-
var StyledWrapper$
|
|
8531
|
+
var StyledWrapper$b = index$a(View)(function (_ref) {
|
|
8484
8532
|
var theme = _ref.theme,
|
|
8485
8533
|
themeSize = _ref.themeSize,
|
|
8486
8534
|
themeAvatarCount = _ref.themeAvatarCount,
|
|
@@ -8618,7 +8666,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8618
8666
|
}
|
|
8619
8667
|
return remain;
|
|
8620
8668
|
}();
|
|
8621
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
8669
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$b, {
|
|
8622
8670
|
themeSize: size,
|
|
8623
8671
|
themeAvatarCount: avatars.length,
|
|
8624
8672
|
themeHasSurplus: remainingAvatar > 0,
|
|
@@ -8693,7 +8741,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
|
|
|
8693
8741
|
borderRadius: theme.radii.rounded
|
|
8694
8742
|
};
|
|
8695
8743
|
});
|
|
8696
|
-
var StyledIcon$
|
|
8744
|
+
var StyledIcon$2 = index$a(Icon)(function (_ref4) {
|
|
8697
8745
|
var themeSize = _ref4.themeSize,
|
|
8698
8746
|
theme = _ref4.theme;
|
|
8699
8747
|
return {
|
|
@@ -8701,7 +8749,7 @@ var StyledIcon$1 = index$a(Icon)(function (_ref4) {
|
|
|
8701
8749
|
};
|
|
8702
8750
|
});
|
|
8703
8751
|
|
|
8704
|
-
var _excluded$
|
|
8752
|
+
var _excluded$C = ["children", "visible", "intent", "style", "testID"];
|
|
8705
8753
|
var Status = function Status(_ref) {
|
|
8706
8754
|
var children = _ref.children,
|
|
8707
8755
|
_ref$visible = _ref.visible,
|
|
@@ -8710,7 +8758,7 @@ var Status = function Status(_ref) {
|
|
|
8710
8758
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
8711
8759
|
style = _ref.style,
|
|
8712
8760
|
testID = _ref.testID,
|
|
8713
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8761
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
8714
8762
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8715
8763
|
opacity = _React$useRef.current;
|
|
8716
8764
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -8743,7 +8791,7 @@ var Status = function Status(_ref) {
|
|
|
8743
8791
|
}));
|
|
8744
8792
|
};
|
|
8745
8793
|
|
|
8746
|
-
var _excluded$
|
|
8794
|
+
var _excluded$B = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
8747
8795
|
var DEFAULT_MAX_NUMBER = 99;
|
|
8748
8796
|
var getPaddingState = function getPaddingState(content) {
|
|
8749
8797
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -8763,7 +8811,7 @@ var Badge = function Badge(_ref) {
|
|
|
8763
8811
|
_ref$variant = _ref.variant,
|
|
8764
8812
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
8765
8813
|
icon = _ref.icon,
|
|
8766
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8814
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
8767
8815
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8768
8816
|
opacity = _React$useRef.current;
|
|
8769
8817
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -8801,7 +8849,7 @@ var Badge = function Badge(_ref) {
|
|
|
8801
8849
|
}]
|
|
8802
8850
|
}, style],
|
|
8803
8851
|
testID: testID
|
|
8804
|
-
}), isIconBadge ? /*#__PURE__*/React__default.createElement(StyledIcon$
|
|
8852
|
+
}), isIconBadge ? /*#__PURE__*/React__default.createElement(StyledIcon$2, {
|
|
8805
8853
|
icon: icon,
|
|
8806
8854
|
themeSize: size,
|
|
8807
8855
|
intent: "text-inverted"
|
|
@@ -8864,7 +8912,7 @@ var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
|
|
|
8864
8912
|
};
|
|
8865
8913
|
});
|
|
8866
8914
|
|
|
8867
|
-
var _excluded$
|
|
8915
|
+
var _excluded$A = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
8868
8916
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
8869
8917
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
8870
8918
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -8875,7 +8923,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8875
8923
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
8876
8924
|
selectedTabKey = _ref.selectedTabKey,
|
|
8877
8925
|
tabs = _ref.tabs,
|
|
8878
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8926
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
8879
8927
|
var insets = useSafeAreaInsets();
|
|
8880
8928
|
/**
|
|
8881
8929
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -8961,13 +9009,13 @@ var StyledDivider = index$a(View)(function (_ref) {
|
|
|
8961
9009
|
}, horizontalMargin), verticalMargin);
|
|
8962
9010
|
});
|
|
8963
9011
|
|
|
8964
|
-
var _excluded$
|
|
9012
|
+
var _excluded$z = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
8965
9013
|
var Divider = function Divider(_ref) {
|
|
8966
9014
|
var marginHorizontal = _ref.marginHorizontal,
|
|
8967
9015
|
marginVertical = _ref.marginVertical,
|
|
8968
9016
|
style = _ref.style,
|
|
8969
9017
|
testID = _ref.testID,
|
|
8970
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9018
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
8971
9019
|
return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
8972
9020
|
themeMarginHorizontal: marginHorizontal,
|
|
8973
9021
|
themeMarginVertical: marginVertical,
|
|
@@ -8978,7 +9026,7 @@ var Divider = function Divider(_ref) {
|
|
|
8978
9026
|
|
|
8979
9027
|
var AnimatedPressable$2 = Animated.createAnimatedComponent(Pressable);
|
|
8980
9028
|
var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
|
|
8981
|
-
var StyledWrapper$
|
|
9029
|
+
var StyledWrapper$a = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
8982
9030
|
flexDirection: 'column-reverse'
|
|
8983
9031
|
}));
|
|
8984
9032
|
var StyledKeyboardAvoidingView = index$a(KeyboardAvoidingView)(function () {
|
|
@@ -9123,7 +9171,7 @@ var StyledLoadingDot = index$a(View)(function (_ref) {
|
|
|
9123
9171
|
}, themeStyling());
|
|
9124
9172
|
});
|
|
9125
9173
|
|
|
9126
|
-
var _excluded$
|
|
9174
|
+
var _excluded$y = ["count", "size", "testID", "themeVariant"];
|
|
9127
9175
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
9128
9176
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
9129
9177
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -9155,7 +9203,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
9155
9203
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
9156
9204
|
testID = _ref2.testID,
|
|
9157
9205
|
themeVariant = _ref2.themeVariant,
|
|
9158
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
9206
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$y);
|
|
9159
9207
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
9160
9208
|
useEffect(function () {
|
|
9161
9209
|
var animation = Animated.loop(Animated.timing(progressAnimation.current, {
|
|
@@ -9598,11 +9646,11 @@ var Header = function Header(_ref) {
|
|
|
9598
9646
|
}))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
|
|
9599
9647
|
};
|
|
9600
9648
|
|
|
9601
|
-
var _excluded$
|
|
9649
|
+
var _excluded$x = ["scrollEventThrottle"];
|
|
9602
9650
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
9603
9651
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
9604
9652
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
9605
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9653
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
9606
9654
|
var _useContext = useContext(BottomSheetContext),
|
|
9607
9655
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
9608
9656
|
var onScrollBeginDrag = useCallback(function (e) {
|
|
@@ -9688,6 +9736,9 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9688
9736
|
}
|
|
9689
9737
|
onAnimationEnd === null || onAnimationEnd === void 0 || onAnimationEnd();
|
|
9690
9738
|
});
|
|
9739
|
+
return function () {
|
|
9740
|
+
return animation.stop();
|
|
9741
|
+
};
|
|
9691
9742
|
}, [open]);
|
|
9692
9743
|
var interpolateY = animatedValue.current.interpolate({
|
|
9693
9744
|
inputRange: [0, 1],
|
|
@@ -9712,7 +9763,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9712
9763
|
testID: testID,
|
|
9713
9764
|
onShow: onOpen,
|
|
9714
9765
|
supportedOrientations: supportedOrientations
|
|
9715
|
-
}, /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
9766
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$a, {
|
|
9716
9767
|
pointerEvents: "box-none"
|
|
9717
9768
|
}, /*#__PURE__*/React__default.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
9718
9769
|
behavior: Platform.OS === 'ios' ? 'padding' : 'height'
|
|
@@ -12414,12 +12465,12 @@ var Indicator = index$a(View)(function (_ref2) {
|
|
|
12414
12465
|
};
|
|
12415
12466
|
});
|
|
12416
12467
|
|
|
12417
|
-
var _excluded$
|
|
12468
|
+
var _excluded$w = ["intent", "children"];
|
|
12418
12469
|
var DataCard = function DataCard(_ref) {
|
|
12419
12470
|
var _ref$intent = _ref.intent,
|
|
12420
12471
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
12421
12472
|
children = _ref.children,
|
|
12422
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12473
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
12423
12474
|
return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
|
|
12424
12475
|
themeIntent: intent,
|
|
12425
12476
|
testID: "data-card-indicator"
|
|
@@ -12438,13 +12489,13 @@ var StyledCard$1 = index$a(View)(function (_ref) {
|
|
|
12438
12489
|
});
|
|
12439
12490
|
});
|
|
12440
12491
|
|
|
12441
|
-
var _excluded$
|
|
12492
|
+
var _excluded$v = ["intent", "children", "variant"];
|
|
12442
12493
|
var Card = function Card(_ref) {
|
|
12443
12494
|
var intent = _ref.intent,
|
|
12444
12495
|
children = _ref.children,
|
|
12445
12496
|
_ref$variant = _ref.variant,
|
|
12446
12497
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
12447
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12498
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
12448
12499
|
return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
12449
12500
|
themeIntent: intent,
|
|
12450
12501
|
themeVariant: variant
|
|
@@ -12521,7 +12572,7 @@ var StyledPageControl$1 = index$a(PageControl)(function (_ref) {
|
|
|
12521
12572
|
marginTop: theme.__hd__.cardCarousel.space.pageControlMarginTop
|
|
12522
12573
|
};
|
|
12523
12574
|
});
|
|
12524
|
-
var StyledWrapper$
|
|
12575
|
+
var StyledWrapper$9 = index$a(View)({});
|
|
12525
12576
|
var StyledCard = index$a(Card$1)(function (_ref2) {
|
|
12526
12577
|
var theme = _ref2.theme;
|
|
12527
12578
|
return {
|
|
@@ -12651,7 +12702,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12651
12702
|
}, /*#__PURE__*/React__default.createElement(StyledCard, null, item));
|
|
12652
12703
|
}, [itemWidth]);
|
|
12653
12704
|
var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
|
|
12654
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
12705
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$9, {
|
|
12655
12706
|
style: style,
|
|
12656
12707
|
testID: testID
|
|
12657
12708
|
}, /*#__PURE__*/React__default.createElement(FlatList, {
|
|
@@ -12706,7 +12757,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12706
12757
|
});
|
|
12707
12758
|
CardCarousel.displayName = 'CardCarousel';
|
|
12708
12759
|
|
|
12709
|
-
var _excluded$
|
|
12760
|
+
var _excluded$u = ["rounded", "size", "testID", "style"];
|
|
12710
12761
|
var Image = function Image(_ref) {
|
|
12711
12762
|
var _ref$rounded = _ref.rounded,
|
|
12712
12763
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -12714,7 +12765,7 @@ var Image = function Image(_ref) {
|
|
|
12714
12765
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
12715
12766
|
testID = _ref.testID,
|
|
12716
12767
|
style = _ref.style,
|
|
12717
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12768
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
12718
12769
|
var theme = useTheme();
|
|
12719
12770
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12720
12771
|
return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
|
|
@@ -12848,7 +12899,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12848
12899
|
}, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
|
|
12849
12900
|
};
|
|
12850
12901
|
|
|
12851
|
-
var _excluded$
|
|
12902
|
+
var _excluded$t = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
12852
12903
|
function useStateFromProp(initialValue) {
|
|
12853
12904
|
var _useState = useState(initialValue),
|
|
12854
12905
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12875,7 +12926,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12875
12926
|
testID = _ref.testID,
|
|
12876
12927
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
12877
12928
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
12878
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12929
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
12879
12930
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
12880
12931
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
12881
12932
|
var theme = useTheme();
|
|
@@ -13089,7 +13140,7 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
|
|
|
13089
13140
|
}, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
|
|
13090
13141
|
});
|
|
13091
13142
|
|
|
13092
|
-
var _excluded$
|
|
13143
|
+
var _excluded$s = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
|
|
13093
13144
|
var Chip = function Chip(_ref) {
|
|
13094
13145
|
var label = _ref.label,
|
|
13095
13146
|
_ref$variant = _ref.variant,
|
|
@@ -13100,7 +13151,7 @@ var Chip = function Chip(_ref) {
|
|
|
13100
13151
|
onPress = _ref.onPress,
|
|
13101
13152
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
13102
13153
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
13103
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
13154
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
13104
13155
|
var shouldShowSelectedIcon = variant === 'outlined' && selected && showSelectedIcon;
|
|
13105
13156
|
return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
|
|
13106
13157
|
onPress: onPress,
|
|
@@ -13121,7 +13172,7 @@ var Chip = function Chip(_ref) {
|
|
|
13121
13172
|
})));
|
|
13122
13173
|
};
|
|
13123
13174
|
|
|
13124
|
-
var StyledWrapper$
|
|
13175
|
+
var StyledWrapper$8 = index$a(TouchableOpacity)(function (_ref) {
|
|
13125
13176
|
var theme = _ref.theme,
|
|
13126
13177
|
themeState = _ref.themeState;
|
|
13127
13178
|
return {
|
|
@@ -13195,7 +13246,7 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
13195
13246
|
disabled: disabled,
|
|
13196
13247
|
readonly: readonly
|
|
13197
13248
|
});
|
|
13198
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
13249
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$8, {
|
|
13199
13250
|
onPress: onPress,
|
|
13200
13251
|
disabled: disabled || readonly,
|
|
13201
13252
|
themeState: themeState,
|
|
@@ -13341,8 +13392,8 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
13341
13392
|
};
|
|
13342
13393
|
});
|
|
13343
13394
|
|
|
13344
|
-
var _excluded$
|
|
13345
|
-
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) {
|
|
13346
13397
|
var disabled = _ref.disabled,
|
|
13347
13398
|
error = _ref.error,
|
|
13348
13399
|
editable = _ref.editable,
|
|
@@ -13453,7 +13504,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13453
13504
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
13454
13505
|
_ref8$variant = _ref8.variant,
|
|
13455
13506
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
13456
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
13507
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$r);
|
|
13457
13508
|
var displayText = getDisplayText(value, defaultValue);
|
|
13458
13509
|
var isEmptyValue = displayText.length === 0;
|
|
13459
13510
|
var _React$useState = React__default.useState({
|
|
@@ -13475,7 +13526,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13475
13526
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
13476
13527
|
isFocused = _React$useState8[0],
|
|
13477
13528
|
setIsFocused = _React$useState8[1];
|
|
13478
|
-
var state = getState$
|
|
13529
|
+
var state = getState$3({
|
|
13479
13530
|
disabled: disabled,
|
|
13480
13531
|
error: error,
|
|
13481
13532
|
editable: editable,
|
|
@@ -13998,11 +14049,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13998
14049
|
}))));
|
|
13999
14050
|
};
|
|
14000
14051
|
|
|
14001
|
-
var _excluded$
|
|
14052
|
+
var _excluded$q = ["variant"];
|
|
14002
14053
|
var DatePicker = function DatePicker(_ref) {
|
|
14003
14054
|
var _ref$variant = _ref.variant,
|
|
14004
14055
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
14005
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14056
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
14006
14057
|
if (variant === 'calendar') {
|
|
14007
14058
|
return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
|
|
14008
14059
|
}
|
|
@@ -14299,7 +14350,7 @@ var index$7 = Object.assign(Drawer, {
|
|
|
14299
14350
|
Dragable: DragableDrawer
|
|
14300
14351
|
});
|
|
14301
14352
|
|
|
14302
|
-
var StyledWrapper$
|
|
14353
|
+
var StyledWrapper$7 = index$a(View)(function (_ref) {
|
|
14303
14354
|
var theme = _ref.theme;
|
|
14304
14355
|
return {
|
|
14305
14356
|
display: 'flex',
|
|
@@ -14337,7 +14388,7 @@ var Empty = function Empty(_ref) {
|
|
|
14337
14388
|
_ref$variant = _ref.variant,
|
|
14338
14389
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
14339
14390
|
var theme = useTheme();
|
|
14340
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
14391
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$7, {
|
|
14341
14392
|
style: style,
|
|
14342
14393
|
testID: testID
|
|
14343
14394
|
}, image !== undefined && /*#__PURE__*/React__default.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
@@ -14556,7 +14607,7 @@ var Portal$1 = Object.assign(Portal, {
|
|
|
14556
14607
|
Host: PortalHost
|
|
14557
14608
|
});
|
|
14558
14609
|
|
|
14559
|
-
var _excluded$
|
|
14610
|
+
var _excluded$p = ["visible"];
|
|
14560
14611
|
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
14561
14612
|
var DEFAULT_ANIMATION_CONFIG = {
|
|
14562
14613
|
easing: Easing.inOut(Easing.cubic),
|
|
@@ -14652,7 +14703,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14652
14703
|
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
14653
14704
|
var _ref3$visible = _ref3.visible,
|
|
14654
14705
|
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
14655
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
14706
|
+
props = _objectWithoutProperties(_ref3, _excluded$p);
|
|
14656
14707
|
var modalRef = useRef(null);
|
|
14657
14708
|
var _useState = useState(visible),
|
|
14658
14709
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -14762,7 +14813,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
|
|
|
14762
14813
|
};
|
|
14763
14814
|
});
|
|
14764
14815
|
|
|
14765
|
-
var _excluded$
|
|
14816
|
+
var _excluded$o = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
14766
14817
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14767
14818
|
var renderImage$1 = function renderImage(image) {
|
|
14768
14819
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
@@ -14788,7 +14839,7 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14788
14839
|
onCtaPress = _ref.onCtaPress,
|
|
14789
14840
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
14790
14841
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
14791
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14842
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
14792
14843
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
14793
14844
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
14794
14845
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -14921,7 +14972,7 @@ var StyledActionItemText = index$a(Typography.Body)(function (_ref2) {
|
|
|
14921
14972
|
color: theme.__hd__.fab.colors.actionItemText
|
|
14922
14973
|
};
|
|
14923
14974
|
});
|
|
14924
|
-
var StyledIcon = index$a(Icon)(function (_ref3) {
|
|
14975
|
+
var StyledIcon$1 = index$a(Icon)(function (_ref3) {
|
|
14925
14976
|
var theme = _ref3.theme;
|
|
14926
14977
|
return {
|
|
14927
14978
|
color: theme.__hd__.fab.colors.actionItemText
|
|
@@ -15011,17 +15062,17 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
15011
15062
|
style: style,
|
|
15012
15063
|
onPress: onPress,
|
|
15013
15064
|
testID: testID
|
|
15014
|
-
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
15065
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledIcon$1, {
|
|
15015
15066
|
size: "xsmall",
|
|
15016
15067
|
icon: icon
|
|
15017
15068
|
})), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
|
|
15018
15069
|
};
|
|
15019
15070
|
|
|
15020
|
-
var _excluded$
|
|
15071
|
+
var _excluded$n = ["active"];
|
|
15021
15072
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
15022
15073
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
15023
15074
|
var active = _ref.active,
|
|
15024
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
15075
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
15025
15076
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
15026
15077
|
useEffect(function () {
|
|
15027
15078
|
var animation = Animated.spring(rotateAnimation.current, {
|
|
@@ -15377,11 +15428,11 @@ var StyledFAB = index$a(FAB$1)(function (_ref) {
|
|
|
15377
15428
|
};
|
|
15378
15429
|
});
|
|
15379
15430
|
|
|
15380
|
-
var _excluded$
|
|
15431
|
+
var _excluded$m = ["fabConfig", "onCancel"];
|
|
15381
15432
|
var Pair = function Pair(_ref) {
|
|
15382
15433
|
var fabConfig = _ref.fabConfig,
|
|
15383
15434
|
onCancel = _ref.onCancel,
|
|
15384
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15435
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
15385
15436
|
var icon = fabConfig.icon,
|
|
15386
15437
|
title = fabConfig.title,
|
|
15387
15438
|
onPress = fabConfig.onPress,
|
|
@@ -15802,11 +15853,11 @@ var StyledFocusIcon = index$a(Icon)(function (_ref5) {
|
|
|
15802
15853
|
};
|
|
15803
15854
|
});
|
|
15804
15855
|
|
|
15805
|
-
var _excluded$
|
|
15856
|
+
var _excluded$l = ["style", "testID"];
|
|
15806
15857
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
15807
15858
|
var style = _ref.style,
|
|
15808
15859
|
testID = _ref.testID,
|
|
15809
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15860
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
15810
15861
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
15811
15862
|
style: style,
|
|
15812
15863
|
testID: testID
|
|
@@ -15816,7 +15867,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
15816
15867
|
}));
|
|
15817
15868
|
};
|
|
15818
15869
|
|
|
15819
|
-
var _excluded$
|
|
15870
|
+
var _excluded$k = ["style", "testID", "state", "image", "icon"];
|
|
15820
15871
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
15821
15872
|
var iconMap = {
|
|
15822
15873
|
idle: undefined,
|
|
@@ -15832,7 +15883,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
15832
15883
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
15833
15884
|
image = _ref.image,
|
|
15834
15885
|
icon = _ref.icon,
|
|
15835
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15886
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
15836
15887
|
var badgeIcon = getBadgeIconName(state);
|
|
15837
15888
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
15838
15889
|
style: style,
|
|
@@ -16046,7 +16097,7 @@ var List = {
|
|
|
16046
16097
|
BasicItem: BasicListItem
|
|
16047
16098
|
};
|
|
16048
16099
|
|
|
16049
|
-
var StyledWrapper$
|
|
16100
|
+
var StyledWrapper$6 = index$a(View)(function () {
|
|
16050
16101
|
return {
|
|
16051
16102
|
alignContent: 'flex-start'
|
|
16052
16103
|
};
|
|
@@ -16163,7 +16214,7 @@ function PinCell(_ref) {
|
|
|
16163
16214
|
}, value));
|
|
16164
16215
|
}
|
|
16165
16216
|
|
|
16166
|
-
function getState$
|
|
16217
|
+
function getState$2(_ref) {
|
|
16167
16218
|
var disabled = _ref.disabled,
|
|
16168
16219
|
error = _ref.error;
|
|
16169
16220
|
if (disabled) {
|
|
@@ -16202,7 +16253,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
16202
16253
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16203
16254
|
focused = _useState2[0],
|
|
16204
16255
|
setFocused = _useState2[1];
|
|
16205
|
-
var state = getState$
|
|
16256
|
+
var state = getState$2({
|
|
16206
16257
|
disabled: disabled,
|
|
16207
16258
|
error: error
|
|
16208
16259
|
});
|
|
@@ -16255,7 +16306,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
16255
16306
|
start: trimmedValue.length
|
|
16256
16307
|
};
|
|
16257
16308
|
}, [trimmedValue]);
|
|
16258
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
16309
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$6, {
|
|
16259
16310
|
style: style,
|
|
16260
16311
|
testID: testID
|
|
16261
16312
|
}, /*#__PURE__*/React__default.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
@@ -16374,7 +16425,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
|
|
|
16374
16425
|
};
|
|
16375
16426
|
});
|
|
16376
16427
|
|
|
16377
|
-
var _excluded$
|
|
16428
|
+
var _excluded$j = ["value", "renderValue", "intent", "style", "testID"];
|
|
16378
16429
|
var HalfCircle = function HalfCircle(_ref) {
|
|
16379
16430
|
var type = _ref.type,
|
|
16380
16431
|
themeIntent = _ref.themeIntent;
|
|
@@ -16395,7 +16446,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16395
16446
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
16396
16447
|
style = _ref2.style,
|
|
16397
16448
|
testID = _ref2.testID,
|
|
16398
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
16449
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$j);
|
|
16399
16450
|
var theme = useTheme$1();
|
|
16400
16451
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
16401
16452
|
var progressAnimatedValue = useRef(new Animated.Value(0));
|
|
@@ -16490,7 +16541,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16490
16541
|
})), /*#__PURE__*/React__default.createElement(StyledDonutCircle, null, /*#__PURE__*/React__default.createElement(Typography.Body, null, renderValue(value)))));
|
|
16491
16542
|
};
|
|
16492
16543
|
|
|
16493
|
-
var StyledWrapper$
|
|
16544
|
+
var StyledWrapper$5 = index$a(View)(function (_ref) {
|
|
16494
16545
|
var theme = _ref.theme,
|
|
16495
16546
|
themeIntent = _ref.themeIntent;
|
|
16496
16547
|
return {
|
|
@@ -16511,14 +16562,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
|
|
|
16511
16562
|
};
|
|
16512
16563
|
});
|
|
16513
16564
|
|
|
16514
|
-
var _excluded$
|
|
16565
|
+
var _excluded$i = ["value", "intent", "style", "testID"];
|
|
16515
16566
|
var ProgressBar = function ProgressBar(_ref) {
|
|
16516
16567
|
var value = _ref.value,
|
|
16517
16568
|
_ref$intent = _ref.intent,
|
|
16518
16569
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16519
16570
|
style = _ref.style,
|
|
16520
16571
|
testID = _ref.testID,
|
|
16521
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16572
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
16522
16573
|
var _useState = useState(0),
|
|
16523
16574
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16524
16575
|
width = _useState2[0],
|
|
@@ -16544,7 +16595,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
16544
16595
|
outputRange: [999, 0],
|
|
16545
16596
|
extrapolate: 'clamp'
|
|
16546
16597
|
});
|
|
16547
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
16598
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$5, _extends$1({}, nativeProps, {
|
|
16548
16599
|
testID: testID,
|
|
16549
16600
|
style: style,
|
|
16550
16601
|
themeIntent: intent
|
|
@@ -16607,7 +16658,7 @@ var StyledSingleStep = index$a(Box)(function (_ref3) {
|
|
|
16607
16658
|
};
|
|
16608
16659
|
});
|
|
16609
16660
|
|
|
16610
|
-
var _excluded$
|
|
16661
|
+
var _excluded$h = ["steps", "current", "onLayout"];
|
|
16611
16662
|
var getStepState = function getStepState(current, index) {
|
|
16612
16663
|
if (index < current) {
|
|
16613
16664
|
return 'complete';
|
|
@@ -16621,7 +16672,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
16621
16672
|
var steps = _ref.steps,
|
|
16622
16673
|
current = _ref.current,
|
|
16623
16674
|
onLayout = _ref.onLayout,
|
|
16624
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16675
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
16625
16676
|
var theme = useTheme$1();
|
|
16626
16677
|
var _React$useState = React__default.useState(0),
|
|
16627
16678
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -16802,14 +16853,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
16802
16853
|
}, dotProps))));
|
|
16803
16854
|
};
|
|
16804
16855
|
|
|
16805
|
-
var _excluded$
|
|
16856
|
+
var _excluded$g = ["testID", "size", "intent"];
|
|
16806
16857
|
var Spinner = function Spinner(_ref) {
|
|
16807
16858
|
var testID = _ref.testID,
|
|
16808
16859
|
_ref$size = _ref.size,
|
|
16809
16860
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
16810
16861
|
_ref$intent = _ref.intent,
|
|
16811
16862
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16812
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16863
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
16813
16864
|
return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
|
|
16814
16865
|
testID: testID
|
|
16815
16866
|
}, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
|
|
@@ -16842,7 +16893,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
16842
16893
|
}, children);
|
|
16843
16894
|
};
|
|
16844
16895
|
|
|
16845
|
-
var _excluded$
|
|
16896
|
+
var _excluded$f = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
16846
16897
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
16847
16898
|
var trans = progress.interpolate({
|
|
16848
16899
|
inputRange: [0, 1],
|
|
@@ -16871,7 +16922,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16871
16922
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
16872
16923
|
_ref$variant = _ref.variant,
|
|
16873
16924
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
16874
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
16925
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
16875
16926
|
var theme = useTheme();
|
|
16876
16927
|
var _useWindowDimensions = useWindowDimensions(),
|
|
16877
16928
|
width = _useWindowDimensions.width;
|
|
@@ -17071,7 +17122,7 @@ var StyledIconWrapper$2 = index$a(View)(function (_ref2) {
|
|
|
17071
17122
|
marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
|
|
17072
17123
|
};
|
|
17073
17124
|
});
|
|
17074
|
-
var StyledWrapper$
|
|
17125
|
+
var StyledWrapper$4 = index$a(View)(function () {
|
|
17075
17126
|
return {
|
|
17076
17127
|
display: 'flex',
|
|
17077
17128
|
flexDirection: 'row',
|
|
@@ -17108,7 +17159,7 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
17108
17159
|
themeSize: size,
|
|
17109
17160
|
style: style,
|
|
17110
17161
|
testID: testID
|
|
17111
|
-
}, /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
17162
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$4, null, /*#__PURE__*/React__default.createElement(StyledIconWrapper$2, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
17112
17163
|
icon: icon,
|
|
17113
17164
|
size: ICON_SIZE_MAP[size],
|
|
17114
17165
|
intent: ICON_INTENT_MAP[intent]
|
|
@@ -17222,7 +17273,7 @@ var StyledSectionList = index$a(SectionList)(function (_ref4) {
|
|
|
17222
17273
|
};
|
|
17223
17274
|
});
|
|
17224
17275
|
|
|
17225
|
-
var _excluded$
|
|
17276
|
+
var _excluded$e = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
17226
17277
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
17227
17278
|
var keyExtractor = _ref.keyExtractor,
|
|
17228
17279
|
loading = _ref.loading,
|
|
@@ -17231,7 +17282,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
17231
17282
|
sections = _ref.sections,
|
|
17232
17283
|
renderItem = _ref.renderItem,
|
|
17233
17284
|
sectionListRef = _ref.sectionListRef,
|
|
17234
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17285
|
+
rest = _objectWithoutProperties(_ref, _excluded$e);
|
|
17235
17286
|
var theme = useTheme$1();
|
|
17236
17287
|
var _useState = useState(false),
|
|
17237
17288
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17301,7 +17352,7 @@ var Option$2 = function Option(_ref) {
|
|
|
17301
17352
|
return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
|
|
17302
17353
|
};
|
|
17303
17354
|
|
|
17304
|
-
var _excluded$
|
|
17355
|
+
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
17305
17356
|
var OptionList$1 = function OptionList(_ref) {
|
|
17306
17357
|
var keyExtractor = _ref.keyExtractor,
|
|
17307
17358
|
loading = _ref.loading,
|
|
@@ -17312,7 +17363,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
17312
17363
|
renderOption = _ref.renderOption,
|
|
17313
17364
|
value = _ref.value,
|
|
17314
17365
|
sectionListRef = _ref.sectionListRef,
|
|
17315
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17366
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
17316
17367
|
var renderItem = function renderItem(info) {
|
|
17317
17368
|
var item = info.item;
|
|
17318
17369
|
var selected = value.includes(info.item.value);
|
|
@@ -17503,7 +17554,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
|
|
|
17503
17554
|
};
|
|
17504
17555
|
});
|
|
17505
17556
|
|
|
17506
|
-
var _excluded$
|
|
17557
|
+
var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
17507
17558
|
var OptionList = function OptionList(_ref) {
|
|
17508
17559
|
var keyExtractor = _ref.keyExtractor,
|
|
17509
17560
|
loading = _ref.loading,
|
|
@@ -17514,7 +17565,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
17514
17565
|
renderOption = _ref.renderOption,
|
|
17515
17566
|
value = _ref.value,
|
|
17516
17567
|
sectionListRef = _ref.sectionListRef,
|
|
17517
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17568
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
17518
17569
|
var renderItem = function renderItem(info) {
|
|
17519
17570
|
var item = info.item;
|
|
17520
17571
|
var selected = item.value === value;
|
|
@@ -17682,7 +17733,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
|
|
|
17682
17733
|
};
|
|
17683
17734
|
});
|
|
17684
17735
|
|
|
17685
|
-
var _excluded$
|
|
17736
|
+
var _excluded$b = ["intent", "variant", "style", "onLayout"];
|
|
17686
17737
|
var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
|
|
17687
17738
|
var gradientPositions = {
|
|
17688
17739
|
start: {
|
|
@@ -17714,7 +17765,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
17714
17765
|
variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
|
|
17715
17766
|
style = _ref.style,
|
|
17716
17767
|
onLayout = _ref.onLayout,
|
|
17717
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
17768
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
17718
17769
|
var theme = useTheme();
|
|
17719
17770
|
var colors = useMemo(function () {
|
|
17720
17771
|
return getGradientColors(theme, intent);
|
|
@@ -17846,7 +17897,7 @@ var StyledSuccessModal = index$a(ModalWrapper)({
|
|
|
17846
17897
|
width: '100%'
|
|
17847
17898
|
});
|
|
17848
17899
|
|
|
17849
|
-
var _excluded$
|
|
17900
|
+
var _excluded$a = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
17850
17901
|
var renderImage = function renderImage(image) {
|
|
17851
17902
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
17852
17903
|
return /*#__PURE__*/React__default.cloneElement(image, {
|
|
@@ -17872,7 +17923,7 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17872
17923
|
onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
|
|
17873
17924
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
17874
17925
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
17875
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
17926
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
17876
17927
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
17877
17928
|
return /*#__PURE__*/React__default.createElement(StyledSuccessContainer, _extends$1({
|
|
17878
17929
|
testID: testID,
|
|
@@ -17906,7 +17957,7 @@ var Success = function Success(props) {
|
|
|
17906
17957
|
};
|
|
17907
17958
|
|
|
17908
17959
|
var AnimatedView = Animated.createAnimatedComponent(View);
|
|
17909
|
-
var StyledWrapper$
|
|
17960
|
+
var StyledWrapper$3 = index$a(View)(function (_ref) {
|
|
17910
17961
|
var theme = _ref.theme;
|
|
17911
17962
|
return {
|
|
17912
17963
|
flexDirection: 'row',
|
|
@@ -18052,7 +18103,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
18052
18103
|
return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
|
|
18053
18104
|
},
|
|
18054
18105
|
testID: testID
|
|
18055
|
-
}, /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
18106
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$3, {
|
|
18056
18107
|
onLayout: onContainerLayout,
|
|
18057
18108
|
style: style
|
|
18058
18109
|
}, options.map(function (opt, index) {
|
|
@@ -18076,7 +18127,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
18076
18127
|
})));
|
|
18077
18128
|
};
|
|
18078
18129
|
|
|
18079
|
-
var StyledWrapper$
|
|
18130
|
+
var StyledWrapper$2 = index$a(View)(function (_ref) {
|
|
18080
18131
|
var theme = _ref.theme,
|
|
18081
18132
|
themeVariant = _ref.themeVariant;
|
|
18082
18133
|
return {
|
|
@@ -18138,7 +18189,7 @@ var Switch = function Switch(_ref2) {
|
|
|
18138
18189
|
testID: testID,
|
|
18139
18190
|
onPress: onPress,
|
|
18140
18191
|
disabled: disabled
|
|
18141
|
-
}, /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
18192
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$2, {
|
|
18142
18193
|
themeVariant: variant,
|
|
18143
18194
|
style: style
|
|
18144
18195
|
}, /*#__PURE__*/React__default.createElement(StyledKnot, {
|
|
@@ -18890,7 +18941,7 @@ var StyledText = index$a(Typography.Caption)(function (_ref2) {
|
|
|
18890
18941
|
};
|
|
18891
18942
|
});
|
|
18892
18943
|
|
|
18893
|
-
var _excluded$
|
|
18944
|
+
var _excluded$9 = ["content", "variant", "intent", "style", "testID"];
|
|
18894
18945
|
var Tag = function Tag(_ref) {
|
|
18895
18946
|
var content = _ref.content,
|
|
18896
18947
|
_ref$variant = _ref.variant,
|
|
@@ -18899,7 +18950,7 @@ var Tag = function Tag(_ref) {
|
|
|
18899
18950
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
18900
18951
|
style = _ref.style,
|
|
18901
18952
|
testID = _ref.testID,
|
|
18902
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
18953
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
18903
18954
|
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
18904
18955
|
return /*#__PURE__*/React__default.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
18905
18956
|
themeIntent: intent,
|
|
@@ -19135,6 +19186,56 @@ var StyledLabel = index$a(Typography.Body)(function (_ref6) {
|
|
|
19135
19186
|
color: intent === 'secondary' ? theme.__hd__.toolbar.colors.secondary : theme.__hd__.typography.colors[intent]
|
|
19136
19187
|
};
|
|
19137
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
|
+
});
|
|
19138
19239
|
|
|
19139
19240
|
var IconItem = function IconItem(_ref) {
|
|
19140
19241
|
var icon = _ref.icon,
|
|
@@ -19224,18 +19325,105 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
19224
19325
|
}));
|
|
19225
19326
|
};
|
|
19226
19327
|
|
|
19227
|
-
var _excluded$
|
|
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
|
+
|
|
19414
|
+
var _excluded$7 = ["children"];
|
|
19228
19415
|
var Toolbar = function Toolbar(_ref) {
|
|
19229
19416
|
var children = _ref.children,
|
|
19230
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19417
|
+
rest = _objectWithoutProperties(_ref, _excluded$7);
|
|
19231
19418
|
return /*#__PURE__*/React__default.createElement(ToolbarWrapper, rest, children);
|
|
19232
19419
|
};
|
|
19233
19420
|
var index$1 = Object.assign(Toolbar, {
|
|
19234
|
-
Group: ToolbarGroup
|
|
19421
|
+
Group: ToolbarGroup,
|
|
19422
|
+
Message: ToolbarMessage
|
|
19235
19423
|
});
|
|
19236
19424
|
|
|
19237
19425
|
var AnimatedBox = Animated.createAnimatedComponent(View);
|
|
19238
|
-
var StyledWrapper = index$a(Box)({
|
|
19426
|
+
var StyledWrapper$1 = index$a(Box)({
|
|
19239
19427
|
flexDirection: 'row'
|
|
19240
19428
|
});
|
|
19241
19429
|
var StyledIconWrapper = index$a(AnimatedBox)(function (_ref) {
|
|
@@ -19246,7 +19434,7 @@ var StyledIconWrapper = index$a(AnimatedBox)(function (_ref) {
|
|
|
19246
19434
|
};
|
|
19247
19435
|
});
|
|
19248
19436
|
|
|
19249
|
-
var _excluded$
|
|
19437
|
+
var _excluded$6 = ["options", "value", "onChange", "readonly", "disabled"];
|
|
19250
19438
|
var Rate = function Rate(_ref) {
|
|
19251
19439
|
var options = _ref.options,
|
|
19252
19440
|
value = _ref.value,
|
|
@@ -19255,7 +19443,7 @@ var Rate = function Rate(_ref) {
|
|
|
19255
19443
|
readonly = _ref$readonly === void 0 ? false : _ref$readonly,
|
|
19256
19444
|
_ref$disabled = _ref.disabled,
|
|
19257
19445
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
19258
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
19446
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
19259
19447
|
var valueIndex = useMemo(function () {
|
|
19260
19448
|
return options.findIndex(function (item) {
|
|
19261
19449
|
return item.value === value;
|
|
@@ -19273,7 +19461,7 @@ var Rate = function Rate(_ref) {
|
|
|
19273
19461
|
useNativeDriver: Platform.OS !== 'web'
|
|
19274
19462
|
}).start();
|
|
19275
19463
|
}, [value, animatedValue]);
|
|
19276
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper, otherProps, options.length > 0 && options.map(function (item, index) {
|
|
19464
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$1, otherProps, options.length > 0 && options.map(function (item, index) {
|
|
19277
19465
|
return /*#__PURE__*/React__default.createElement(Pressable, {
|
|
19278
19466
|
key: item.value,
|
|
19279
19467
|
disabled: disabled || readonly,
|
|
@@ -36646,30 +36834,30 @@ function AnimatedScroller(_ref) {
|
|
|
36646
36834
|
}));
|
|
36647
36835
|
}
|
|
36648
36836
|
|
|
36649
|
-
var _excluded$
|
|
36837
|
+
var _excluded$5 = ["fabProps"];
|
|
36650
36838
|
var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
|
|
36651
36839
|
var fabProps = _ref.fabProps,
|
|
36652
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
36840
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
36653
36841
|
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
36654
36842
|
ScrollComponent: /*#__PURE__*/React__default.createElement(ScrollView, props),
|
|
36655
36843
|
fabProps: fabProps
|
|
36656
36844
|
});
|
|
36657
36845
|
};
|
|
36658
36846
|
|
|
36659
|
-
var _excluded$
|
|
36847
|
+
var _excluded$4 = ["fabProps"];
|
|
36660
36848
|
function FlatListWithFAB(_ref) {
|
|
36661
36849
|
var fabProps = _ref.fabProps,
|
|
36662
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
36850
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
36663
36851
|
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
36664
36852
|
ScrollComponent: /*#__PURE__*/React__default.createElement(FlatList, props),
|
|
36665
36853
|
fabProps: fabProps
|
|
36666
36854
|
});
|
|
36667
36855
|
}
|
|
36668
36856
|
|
|
36669
|
-
var _excluded$
|
|
36857
|
+
var _excluded$3 = ["fabProps"];
|
|
36670
36858
|
function SectionListWithFAB(_ref) {
|
|
36671
36859
|
var fabProps = _ref.fabProps,
|
|
36672
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
36860
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
36673
36861
|
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
36674
36862
|
ScrollComponent: /*#__PURE__*/React__default.createElement(SectionList, props),
|
|
36675
36863
|
fabProps: fabProps
|
|
@@ -36804,7 +36992,7 @@ var SearchTwoLine = function SearchTwoLine(props) {
|
|
|
36804
36992
|
})));
|
|
36805
36993
|
};
|
|
36806
36994
|
|
|
36807
|
-
var _excluded$
|
|
36995
|
+
var _excluded$2 = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID", "variant"];
|
|
36808
36996
|
var getState = function getState(_ref) {
|
|
36809
36997
|
var disabled = _ref.disabled,
|
|
36810
36998
|
editable = _ref.editable,
|
|
@@ -36846,7 +37034,7 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36846
37034
|
testID = props.testID,
|
|
36847
37035
|
_props$variant = props.variant,
|
|
36848
37036
|
variant = _props$variant === void 0 ? 'basic' : _props$variant,
|
|
36849
|
-
nativeProps = _objectWithoutProperties(props, _excluded$
|
|
37037
|
+
nativeProps = _objectWithoutProperties(props, _excluded$2);
|
|
36850
37038
|
var _React$useState = React__default.useState(false),
|
|
36851
37039
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
36852
37040
|
isFocused = _React$useState2[0],
|
|
@@ -36930,11 +37118,11 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36930
37118
|
})));
|
|
36931
37119
|
});
|
|
36932
37120
|
|
|
36933
|
-
var _excluded = ["content", "icon"];
|
|
37121
|
+
var _excluded$1 = ["content", "icon"];
|
|
36934
37122
|
var renderBadge = function renderBadge(props) {
|
|
36935
37123
|
var content = props.content,
|
|
36936
37124
|
icon = props.icon,
|
|
36937
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
37125
|
+
rest = _objectWithoutProperties(props, _excluded$1);
|
|
36938
37126
|
if (content) return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({
|
|
36939
37127
|
intent: "primary",
|
|
36940
37128
|
content: content,
|
|
@@ -36966,4 +37154,88 @@ var Search = {
|
|
|
36966
37154
|
SuffixIcon: SearchSuffixIcon
|
|
36967
37155
|
};
|
|
36968
37156
|
|
|
36969
|
-
|
|
37157
|
+
var StyledWrapper = index$a.TouchableOpacity(function (_ref) {
|
|
37158
|
+
var theme = _ref.theme;
|
|
37159
|
+
return _objectSpread2({
|
|
37160
|
+
alignSelf: 'flex-start',
|
|
37161
|
+
position: 'absolute',
|
|
37162
|
+
left: '50%',
|
|
37163
|
+
zIndex: 9999,
|
|
37164
|
+
flexDirection: 'row',
|
|
37165
|
+
justifyContent: 'center',
|
|
37166
|
+
alignItems: 'center',
|
|
37167
|
+
padding: theme.__hd__.floatingIsland.space.wrapperPadding,
|
|
37168
|
+
borderRadius: theme.__hd__.floatingIsland.radii.wrapper,
|
|
37169
|
+
backgroundColor: theme.__hd__.floatingIsland.colors.wrapperBackground,
|
|
37170
|
+
top: theme.__hd__.floatingIsland.space.wrapperTop
|
|
37171
|
+
}, theme.__hd__.floatingIsland.shadows.wrapper);
|
|
37172
|
+
});
|
|
37173
|
+
var StyledPrefixWrapper = index$a(Box)(function (_ref2) {
|
|
37174
|
+
var theme = _ref2.theme;
|
|
37175
|
+
return {
|
|
37176
|
+
marginRight: theme.__hd__.floatingIsland.space.prefixMarginRight
|
|
37177
|
+
};
|
|
37178
|
+
});
|
|
37179
|
+
var StyledSuffixWrapper = index$a(Box)(function (_ref3) {
|
|
37180
|
+
var theme = _ref3.theme;
|
|
37181
|
+
return {
|
|
37182
|
+
marginLeft: theme.__hd__.floatingIsland.space.suffixMarginLeft
|
|
37183
|
+
};
|
|
37184
|
+
});
|
|
37185
|
+
var StyledIcon = index$a(Icon)(function (_ref4) {
|
|
37186
|
+
var theme = _ref4.theme;
|
|
37187
|
+
return {
|
|
37188
|
+
padding: theme.__hd__.floatingIsland.space.iconPadding
|
|
37189
|
+
};
|
|
37190
|
+
});
|
|
37191
|
+
|
|
37192
|
+
var _excluded = ["onPress", "onLayout", "style", "children", "prefix", "suffix"];
|
|
37193
|
+
var getPrefixOrSuffix = function getPrefixOrSuffix(_ref) {
|
|
37194
|
+
var element = _ref.element,
|
|
37195
|
+
_ref$isPrefix = _ref.isPrefix,
|
|
37196
|
+
isPrefix = _ref$isPrefix === void 0 ? true : _ref$isPrefix;
|
|
37197
|
+
var Wrapper = isPrefix ? StyledPrefixWrapper : StyledSuffixWrapper;
|
|
37198
|
+
if (typeof element === 'string') {
|
|
37199
|
+
return /*#__PURE__*/React__default.createElement(Wrapper, null, /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
37200
|
+
testID: "floating-island-".concat(isPrefix ? 'prefix' : 'suffix', "-icon"),
|
|
37201
|
+
size: "small",
|
|
37202
|
+
icon: element
|
|
37203
|
+
}));
|
|
37204
|
+
}
|
|
37205
|
+
return /*#__PURE__*/React__default.createElement(Wrapper, null, element);
|
|
37206
|
+
};
|
|
37207
|
+
var FloatingIsland = function FloatingIsland(_ref2) {
|
|
37208
|
+
var onPress = _ref2.onPress,
|
|
37209
|
+
onLayout = _ref2.onLayout,
|
|
37210
|
+
style = _ref2.style,
|
|
37211
|
+
children = _ref2.children,
|
|
37212
|
+
prefix = _ref2.prefix,
|
|
37213
|
+
suffix = _ref2.suffix,
|
|
37214
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
37215
|
+
var _React$useState = React__default.useState(0),
|
|
37216
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
37217
|
+
width = _React$useState2[0],
|
|
37218
|
+
setWidth = _React$useState2[1];
|
|
37219
|
+
var onWrapperLayout = function onWrapperLayout(event) {
|
|
37220
|
+
setWidth(event.nativeEvent.layout.width);
|
|
37221
|
+
onLayout === null || onLayout === void 0 || onLayout(event);
|
|
37222
|
+
};
|
|
37223
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper, _extends$1({}, props, {
|
|
37224
|
+
onLayout: onWrapperLayout,
|
|
37225
|
+
disabled: !onPress,
|
|
37226
|
+
onPress: onPress,
|
|
37227
|
+
style: [style, width > 0 ? {
|
|
37228
|
+
transform: [{
|
|
37229
|
+
translateX: -width / 2
|
|
37230
|
+
}]
|
|
37231
|
+
} : undefined]
|
|
37232
|
+
}), prefix && getPrefixOrSuffix({
|
|
37233
|
+
element: prefix,
|
|
37234
|
+
isPrefix: true
|
|
37235
|
+
}), children, suffix && getPrefixOrSuffix({
|
|
37236
|
+
element: suffix,
|
|
37237
|
+
isPrefix: false
|
|
37238
|
+
}));
|
|
37239
|
+
};
|
|
37240
|
+
|
|
37241
|
+
export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, FloatingIsland, HeroDesignProvider, Icon, Image, List, index$6 as MapPin, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, Search, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagLightJobsSystemPalette, swagSystemPalette as swagLightSystemPalette, swagSystemPalette$1 as swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|