@hero-design/rn 8.74.1 → 8.75.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 +6 -0
- package/es/index.js +243 -129
- package/lib/index.js +243 -128
- package/package.json +1 -1
- 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/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +30 -0
- package/src/theme/components/floatingIsland.ts +31 -0
- package/src/theme/getTheme.ts +3 -0
- package/stats/8.75.0/rn-stats.html +4844 -0
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +19 -0
- package/types/components/FloatingIsland/index.d.ts +23 -0
- package/types/index.d.ts +2 -1
- package/types/theme/components/floatingIsland.d.ts +32 -0
- package/types/theme/getTheme.d.ts +2 -0
package/es/index.js
CHANGED
|
@@ -3953,6 +3953,35 @@ var getMapPinTheme = function getMapPinTheme(theme) {
|
|
|
3953
3953
|
};
|
|
3954
3954
|
};
|
|
3955
3955
|
|
|
3956
|
+
var getFloatingIslandTheme = function getFloatingIslandTheme(theme) {
|
|
3957
|
+
var colors = {
|
|
3958
|
+
wrapperBackground: theme.colors.defaultGlobalSurface
|
|
3959
|
+
};
|
|
3960
|
+
var radii = {
|
|
3961
|
+
wrapper: theme.radii.rounded
|
|
3962
|
+
};
|
|
3963
|
+
var shadows = {
|
|
3964
|
+
wrapper: theme.shadows["default"]
|
|
3965
|
+
};
|
|
3966
|
+
var space = {
|
|
3967
|
+
wrapperPadding: theme.space.small,
|
|
3968
|
+
wrapperTop: theme.space.smallMedium,
|
|
3969
|
+
prefixMarginRight: theme.space.small,
|
|
3970
|
+
suffixMarginLeft: theme.space.medium,
|
|
3971
|
+
iconPadding: theme.space.smallMedium
|
|
3972
|
+
};
|
|
3973
|
+
var fontSizes = {
|
|
3974
|
+
iconSize: theme.fontSizes.medium
|
|
3975
|
+
};
|
|
3976
|
+
return {
|
|
3977
|
+
colors: colors,
|
|
3978
|
+
radii: radii,
|
|
3979
|
+
shadows: shadows,
|
|
3980
|
+
space: space,
|
|
3981
|
+
fontSizes: fontSizes
|
|
3982
|
+
};
|
|
3983
|
+
};
|
|
3984
|
+
|
|
3956
3985
|
var getTheme$1 = function getTheme() {
|
|
3957
3986
|
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
|
|
3958
3987
|
var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$1;
|
|
@@ -4006,7 +4035,8 @@ var getTheme$1 = function getTheme() {
|
|
|
4006
4035
|
timePicker: getTimePickerTheme(globalTheme),
|
|
4007
4036
|
toast: getToastTheme(globalTheme),
|
|
4008
4037
|
toolbar: getToolbarTheme(globalTheme),
|
|
4009
|
-
typography: getTypographyTheme(globalTheme)
|
|
4038
|
+
typography: getTypographyTheme(globalTheme),
|
|
4039
|
+
floatingIsland: getFloatingIslandTheme(globalTheme)
|
|
4010
4040
|
}
|
|
4011
4041
|
});
|
|
4012
4042
|
};
|
|
@@ -6962,7 +6992,7 @@ var useDeprecation = function useDeprecation(message) {
|
|
|
6962
6992
|
}, [message, cond]);
|
|
6963
6993
|
};
|
|
6964
6994
|
|
|
6965
|
-
var StyledWrapper$
|
|
6995
|
+
var StyledWrapper$e = index$a(Animated.View)({
|
|
6966
6996
|
margin: 0,
|
|
6967
6997
|
padding: 0,
|
|
6968
6998
|
overflow: 'hidden'
|
|
@@ -7016,7 +7046,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
7016
7046
|
setComponentMounted(true);
|
|
7017
7047
|
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
7018
7048
|
}, []);
|
|
7019
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
7049
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$e, {
|
|
7020
7050
|
style: {
|
|
7021
7051
|
height: open ? contentHeight : 0
|
|
7022
7052
|
},
|
|
@@ -7030,7 +7060,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
7030
7060
|
}, children)));
|
|
7031
7061
|
};
|
|
7032
7062
|
|
|
7033
|
-
var StyledWrapper$
|
|
7063
|
+
var StyledWrapper$d = index$a(View)(function () {
|
|
7034
7064
|
return {};
|
|
7035
7065
|
});
|
|
7036
7066
|
var StyledItemWrapper$1 = index$a(View)(function (_ref) {
|
|
@@ -7083,7 +7113,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
7083
7113
|
});
|
|
7084
7114
|
});
|
|
7085
7115
|
|
|
7086
|
-
var _excluded$
|
|
7116
|
+
var _excluded$K = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
7087
7117
|
var Text = function Text(_ref) {
|
|
7088
7118
|
var children = _ref.children,
|
|
7089
7119
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -7096,7 +7126,7 @@ var Text = function Text(_ref) {
|
|
|
7096
7126
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7097
7127
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7098
7128
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7099
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7129
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
7100
7130
|
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
7131
|
return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
7102
7132
|
themeFontSize: fontSize,
|
|
@@ -7126,7 +7156,7 @@ var StyledCaption = index$a(Text$1)(function (_ref) {
|
|
|
7126
7156
|
};
|
|
7127
7157
|
});
|
|
7128
7158
|
|
|
7129
|
-
var _excluded$
|
|
7159
|
+
var _excluded$J = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
7130
7160
|
var Caption = function Caption(_ref) {
|
|
7131
7161
|
var children = _ref.children,
|
|
7132
7162
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -7135,7 +7165,7 @@ var Caption = function Caption(_ref) {
|
|
|
7135
7165
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7136
7166
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7137
7167
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7138
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7168
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$J);
|
|
7139
7169
|
return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
7140
7170
|
themeFontWeight: fontWeight,
|
|
7141
7171
|
themeIntent: intent,
|
|
@@ -7154,14 +7184,14 @@ var StyledLabel$1 = index$a(Text$1)(function (_ref) {
|
|
|
7154
7184
|
};
|
|
7155
7185
|
});
|
|
7156
7186
|
|
|
7157
|
-
var _excluded$
|
|
7187
|
+
var _excluded$I = ["children", "intent", "allowFontScaling"];
|
|
7158
7188
|
var Label = function Label(_ref) {
|
|
7159
7189
|
var children = _ref.children,
|
|
7160
7190
|
_ref$intent = _ref.intent,
|
|
7161
7191
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7162
7192
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7163
7193
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7164
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7194
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$I);
|
|
7165
7195
|
return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
7166
7196
|
themeIntent: intent,
|
|
7167
7197
|
allowFontScaling: allowFontScaling
|
|
@@ -7182,7 +7212,7 @@ var StyledTitle$1 = index$a(Text$1)(function (_ref) {
|
|
|
7182
7212
|
};
|
|
7183
7213
|
});
|
|
7184
7214
|
|
|
7185
|
-
var _excluded$
|
|
7215
|
+
var _excluded$H = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
7186
7216
|
var Title = function Title(_ref) {
|
|
7187
7217
|
var children = _ref.children,
|
|
7188
7218
|
_ref$intent = _ref.intent,
|
|
@@ -7193,7 +7223,7 @@ var Title = function Title(_ref) {
|
|
|
7193
7223
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
7194
7224
|
_ref$typeface = _ref.typeface,
|
|
7195
7225
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7196
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7226
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$H);
|
|
7197
7227
|
return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
7198
7228
|
themeLevel: level,
|
|
7199
7229
|
themeTypeface: typeface,
|
|
@@ -7228,7 +7258,7 @@ var StyledBody$1 = index$a(Text$1)(function (_ref) {
|
|
|
7228
7258
|
};
|
|
7229
7259
|
});
|
|
7230
7260
|
|
|
7231
|
-
var _excluded$
|
|
7261
|
+
var _excluded$G = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
7232
7262
|
var Body = function Body(_ref) {
|
|
7233
7263
|
var children = _ref.children,
|
|
7234
7264
|
_ref$intent = _ref.intent,
|
|
@@ -7239,7 +7269,7 @@ var Body = function Body(_ref) {
|
|
|
7239
7269
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7240
7270
|
_ref$variant = _ref.variant,
|
|
7241
7271
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
7242
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7272
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$G);
|
|
7243
7273
|
return /*#__PURE__*/React__default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
|
|
7244
7274
|
themeTypeface: typeface,
|
|
7245
7275
|
themeIntent: intent,
|
|
@@ -7811,10 +7841,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
7811
7841
|
};
|
|
7812
7842
|
});
|
|
7813
7843
|
|
|
7814
|
-
var _excluded$
|
|
7844
|
+
var _excluded$F = ["style"];
|
|
7815
7845
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
7816
7846
|
var style = _ref.style,
|
|
7817
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7847
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$F);
|
|
7818
7848
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
7819
7849
|
useEffect(function () {
|
|
7820
7850
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -7919,7 +7949,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7919
7949
|
}, content));
|
|
7920
7950
|
};
|
|
7921
7951
|
|
|
7922
|
-
var _excluded$
|
|
7952
|
+
var _excluded$E = ["key"];
|
|
7923
7953
|
var Accordion = function Accordion(_ref) {
|
|
7924
7954
|
var items = _ref.items,
|
|
7925
7955
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -7935,12 +7965,12 @@ var Accordion = function Accordion(_ref) {
|
|
|
7935
7965
|
_usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
|
|
7936
7966
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
7937
7967
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
7938
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
7968
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$d, {
|
|
7939
7969
|
style: style,
|
|
7940
7970
|
testID: testID
|
|
7941
7971
|
}, items.map(function (_ref2, index) {
|
|
7942
7972
|
var key = _ref2.key,
|
|
7943
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7973
|
+
props = _objectWithoutProperties(_ref2, _excluded$E);
|
|
7944
7974
|
var open = _activeItemKey === key;
|
|
7945
7975
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
7946
7976
|
key: key
|
|
@@ -7975,7 +8005,7 @@ var IconContainer$1 = index$a(View)(function (_ref2) {
|
|
|
7975
8005
|
paddingLeft: theme.__hd__.alert.space.iconLeftPadding
|
|
7976
8006
|
};
|
|
7977
8007
|
});
|
|
7978
|
-
var StyledIcon$
|
|
8008
|
+
var StyledIcon$3 = index$a(Icon)(function (_ref3) {
|
|
7979
8009
|
var theme = _ref3.theme,
|
|
7980
8010
|
themeIntent = _ref3.themeIntent;
|
|
7981
8011
|
return {
|
|
@@ -8034,7 +8064,7 @@ var AlertIcon = function AlertIcon(_ref) {
|
|
|
8034
8064
|
intent = _ref.intent;
|
|
8035
8065
|
return icon ? /*#__PURE__*/React__default.createElement(IconContainer$1, {
|
|
8036
8066
|
testID: "alert-left-icon"
|
|
8037
|
-
}, /*#__PURE__*/React__default.createElement(StyledIcon$
|
|
8067
|
+
}, /*#__PURE__*/React__default.createElement(StyledIcon$3, {
|
|
8038
8068
|
icon: icon,
|
|
8039
8069
|
size: "small",
|
|
8040
8070
|
themeIntent: intent
|
|
@@ -8075,7 +8105,7 @@ var Alert = function Alert(_ref2) {
|
|
|
8075
8105
|
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(StyledBody, {
|
|
8076
8106
|
variant: "small-bold",
|
|
8077
8107
|
themeIntent: intent
|
|
8078
|
-
}, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$
|
|
8108
|
+
}, actionLabel) : /*#__PURE__*/React__default.createElement(StyledIcon$3, {
|
|
8079
8109
|
icon: "cancel",
|
|
8080
8110
|
size: "small",
|
|
8081
8111
|
themeIntent: intent
|
|
@@ -8150,7 +8180,7 @@ var Attachment = function Attachment(_ref) {
|
|
|
8150
8180
|
})) : null);
|
|
8151
8181
|
};
|
|
8152
8182
|
|
|
8153
|
-
var StyledWrapper$
|
|
8183
|
+
var StyledWrapper$c = index$a(TouchableOpacity)(function (_ref) {
|
|
8154
8184
|
var themeSize = _ref.themeSize,
|
|
8155
8185
|
themeIntent = _ref.themeIntent,
|
|
8156
8186
|
theme = _ref.theme;
|
|
@@ -8219,7 +8249,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
8219
8249
|
hasImageError = _useState2[0],
|
|
8220
8250
|
setHasImageError = _useState2[1];
|
|
8221
8251
|
if (title === undefined && source === undefined) return null;
|
|
8222
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
8252
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$c, {
|
|
8223
8253
|
testID: testID,
|
|
8224
8254
|
onPress: onPress,
|
|
8225
8255
|
disabled: onPress === undefined,
|
|
@@ -8434,7 +8464,7 @@ var borderWidths = {
|
|
|
8434
8464
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
8435
8465
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
8436
8466
|
|
|
8437
|
-
var _excluded$
|
|
8467
|
+
var _excluded$D = ["theme"];
|
|
8438
8468
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
8439
8469
|
var propConfig = config[key];
|
|
8440
8470
|
var propValue = props[key];
|
|
@@ -8461,18 +8491,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
8461
8491
|
var configKeys = Object.keys(config);
|
|
8462
8492
|
var StyledBox = index$a(View)(function (_ref5) {
|
|
8463
8493
|
var theme = _ref5.theme,
|
|
8464
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8494
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$D);
|
|
8465
8495
|
var styleProps = pick(configKeys, otherProps);
|
|
8466
8496
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
8467
8497
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
8468
8498
|
});
|
|
8469
8499
|
|
|
8470
|
-
var _excluded$
|
|
8500
|
+
var _excluded$C = ["children", "style", "testID"];
|
|
8471
8501
|
var Box = function Box(_ref) {
|
|
8472
8502
|
var children = _ref.children,
|
|
8473
8503
|
style = _ref.style,
|
|
8474
8504
|
testID = _ref.testID,
|
|
8475
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8505
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
8476
8506
|
return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8477
8507
|
style: style,
|
|
8478
8508
|
testID: testID
|
|
@@ -8480,7 +8510,7 @@ var Box = function Box(_ref) {
|
|
|
8480
8510
|
};
|
|
8481
8511
|
|
|
8482
8512
|
var VISIBLE_RATIO = 0.7;
|
|
8483
|
-
var StyledWrapper$
|
|
8513
|
+
var StyledWrapper$b = index$a(View)(function (_ref) {
|
|
8484
8514
|
var theme = _ref.theme,
|
|
8485
8515
|
themeSize = _ref.themeSize,
|
|
8486
8516
|
themeAvatarCount = _ref.themeAvatarCount,
|
|
@@ -8618,7 +8648,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8618
8648
|
}
|
|
8619
8649
|
return remain;
|
|
8620
8650
|
}();
|
|
8621
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
8651
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$b, {
|
|
8622
8652
|
themeSize: size,
|
|
8623
8653
|
themeAvatarCount: avatars.length,
|
|
8624
8654
|
themeHasSurplus: remainingAvatar > 0,
|
|
@@ -8693,7 +8723,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
|
|
|
8693
8723
|
borderRadius: theme.radii.rounded
|
|
8694
8724
|
};
|
|
8695
8725
|
});
|
|
8696
|
-
var StyledIcon$
|
|
8726
|
+
var StyledIcon$2 = index$a(Icon)(function (_ref4) {
|
|
8697
8727
|
var themeSize = _ref4.themeSize,
|
|
8698
8728
|
theme = _ref4.theme;
|
|
8699
8729
|
return {
|
|
@@ -8701,7 +8731,7 @@ var StyledIcon$1 = index$a(Icon)(function (_ref4) {
|
|
|
8701
8731
|
};
|
|
8702
8732
|
});
|
|
8703
8733
|
|
|
8704
|
-
var _excluded$
|
|
8734
|
+
var _excluded$B = ["children", "visible", "intent", "style", "testID"];
|
|
8705
8735
|
var Status = function Status(_ref) {
|
|
8706
8736
|
var children = _ref.children,
|
|
8707
8737
|
_ref$visible = _ref.visible,
|
|
@@ -8710,7 +8740,7 @@ var Status = function Status(_ref) {
|
|
|
8710
8740
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
8711
8741
|
style = _ref.style,
|
|
8712
8742
|
testID = _ref.testID,
|
|
8713
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8743
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
8714
8744
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8715
8745
|
opacity = _React$useRef.current;
|
|
8716
8746
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -8743,7 +8773,7 @@ var Status = function Status(_ref) {
|
|
|
8743
8773
|
}));
|
|
8744
8774
|
};
|
|
8745
8775
|
|
|
8746
|
-
var _excluded$
|
|
8776
|
+
var _excluded$A = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
8747
8777
|
var DEFAULT_MAX_NUMBER = 99;
|
|
8748
8778
|
var getPaddingState = function getPaddingState(content) {
|
|
8749
8779
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -8763,7 +8793,7 @@ var Badge = function Badge(_ref) {
|
|
|
8763
8793
|
_ref$variant = _ref.variant,
|
|
8764
8794
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
8765
8795
|
icon = _ref.icon,
|
|
8766
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8796
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
8767
8797
|
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8768
8798
|
opacity = _React$useRef.current;
|
|
8769
8799
|
var isFirstRendering = React__default.useRef(true);
|
|
@@ -8801,7 +8831,7 @@ var Badge = function Badge(_ref) {
|
|
|
8801
8831
|
}]
|
|
8802
8832
|
}, style],
|
|
8803
8833
|
testID: testID
|
|
8804
|
-
}), isIconBadge ? /*#__PURE__*/React__default.createElement(StyledIcon$
|
|
8834
|
+
}), isIconBadge ? /*#__PURE__*/React__default.createElement(StyledIcon$2, {
|
|
8805
8835
|
icon: icon,
|
|
8806
8836
|
themeSize: size,
|
|
8807
8837
|
intent: "text-inverted"
|
|
@@ -8864,7 +8894,7 @@ var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
|
|
|
8864
8894
|
};
|
|
8865
8895
|
});
|
|
8866
8896
|
|
|
8867
|
-
var _excluded$
|
|
8897
|
+
var _excluded$z = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
8868
8898
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
8869
8899
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
8870
8900
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -8875,7 +8905,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8875
8905
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
8876
8906
|
selectedTabKey = _ref.selectedTabKey,
|
|
8877
8907
|
tabs = _ref.tabs,
|
|
8878
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8908
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
8879
8909
|
var insets = useSafeAreaInsets();
|
|
8880
8910
|
/**
|
|
8881
8911
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -8961,13 +8991,13 @@ var StyledDivider = index$a(View)(function (_ref) {
|
|
|
8961
8991
|
}, horizontalMargin), verticalMargin);
|
|
8962
8992
|
});
|
|
8963
8993
|
|
|
8964
|
-
var _excluded$
|
|
8994
|
+
var _excluded$y = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
8965
8995
|
var Divider = function Divider(_ref) {
|
|
8966
8996
|
var marginHorizontal = _ref.marginHorizontal,
|
|
8967
8997
|
marginVertical = _ref.marginVertical,
|
|
8968
8998
|
style = _ref.style,
|
|
8969
8999
|
testID = _ref.testID,
|
|
8970
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
9000
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
8971
9001
|
return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
8972
9002
|
themeMarginHorizontal: marginHorizontal,
|
|
8973
9003
|
themeMarginVertical: marginVertical,
|
|
@@ -8978,7 +9008,7 @@ var Divider = function Divider(_ref) {
|
|
|
8978
9008
|
|
|
8979
9009
|
var AnimatedPressable$2 = Animated.createAnimatedComponent(Pressable);
|
|
8980
9010
|
var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
|
|
8981
|
-
var StyledWrapper$
|
|
9011
|
+
var StyledWrapper$a = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
8982
9012
|
flexDirection: 'column-reverse'
|
|
8983
9013
|
}));
|
|
8984
9014
|
var StyledKeyboardAvoidingView = index$a(KeyboardAvoidingView)(function () {
|
|
@@ -9123,7 +9153,7 @@ var StyledLoadingDot = index$a(View)(function (_ref) {
|
|
|
9123
9153
|
}, themeStyling());
|
|
9124
9154
|
});
|
|
9125
9155
|
|
|
9126
|
-
var _excluded$
|
|
9156
|
+
var _excluded$x = ["count", "size", "testID", "themeVariant"];
|
|
9127
9157
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
9128
9158
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
9129
9159
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -9155,7 +9185,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
9155
9185
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
9156
9186
|
testID = _ref2.testID,
|
|
9157
9187
|
themeVariant = _ref2.themeVariant,
|
|
9158
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
9188
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$x);
|
|
9159
9189
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
9160
9190
|
useEffect(function () {
|
|
9161
9191
|
var animation = Animated.loop(Animated.timing(progressAnimation.current, {
|
|
@@ -9598,11 +9628,11 @@ var Header = function Header(_ref) {
|
|
|
9598
9628
|
}))) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
|
|
9599
9629
|
};
|
|
9600
9630
|
|
|
9601
|
-
var _excluded$
|
|
9631
|
+
var _excluded$w = ["scrollEventThrottle"];
|
|
9602
9632
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
9603
9633
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
9604
9634
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
9605
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9635
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
9606
9636
|
var _useContext = useContext(BottomSheetContext),
|
|
9607
9637
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
9608
9638
|
var onScrollBeginDrag = useCallback(function (e) {
|
|
@@ -9712,7 +9742,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9712
9742
|
testID: testID,
|
|
9713
9743
|
onShow: onOpen,
|
|
9714
9744
|
supportedOrientations: supportedOrientations
|
|
9715
|
-
}, /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
9745
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$a, {
|
|
9716
9746
|
pointerEvents: "box-none"
|
|
9717
9747
|
}, /*#__PURE__*/React__default.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
9718
9748
|
behavior: Platform.OS === 'ios' ? 'padding' : 'height'
|
|
@@ -12414,12 +12444,12 @@ var Indicator = index$a(View)(function (_ref2) {
|
|
|
12414
12444
|
};
|
|
12415
12445
|
});
|
|
12416
12446
|
|
|
12417
|
-
var _excluded$
|
|
12447
|
+
var _excluded$v = ["intent", "children"];
|
|
12418
12448
|
var DataCard = function DataCard(_ref) {
|
|
12419
12449
|
var _ref$intent = _ref.intent,
|
|
12420
12450
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
12421
12451
|
children = _ref.children,
|
|
12422
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12452
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
12423
12453
|
return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
|
|
12424
12454
|
themeIntent: intent,
|
|
12425
12455
|
testID: "data-card-indicator"
|
|
@@ -12438,13 +12468,13 @@ var StyledCard$1 = index$a(View)(function (_ref) {
|
|
|
12438
12468
|
});
|
|
12439
12469
|
});
|
|
12440
12470
|
|
|
12441
|
-
var _excluded$
|
|
12471
|
+
var _excluded$u = ["intent", "children", "variant"];
|
|
12442
12472
|
var Card = function Card(_ref) {
|
|
12443
12473
|
var intent = _ref.intent,
|
|
12444
12474
|
children = _ref.children,
|
|
12445
12475
|
_ref$variant = _ref.variant,
|
|
12446
12476
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
12447
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12477
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
12448
12478
|
return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
12449
12479
|
themeIntent: intent,
|
|
12450
12480
|
themeVariant: variant
|
|
@@ -12521,7 +12551,7 @@ var StyledPageControl$1 = index$a(PageControl)(function (_ref) {
|
|
|
12521
12551
|
marginTop: theme.__hd__.cardCarousel.space.pageControlMarginTop
|
|
12522
12552
|
};
|
|
12523
12553
|
});
|
|
12524
|
-
var StyledWrapper$
|
|
12554
|
+
var StyledWrapper$9 = index$a(View)({});
|
|
12525
12555
|
var StyledCard = index$a(Card$1)(function (_ref2) {
|
|
12526
12556
|
var theme = _ref2.theme;
|
|
12527
12557
|
return {
|
|
@@ -12651,7 +12681,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12651
12681
|
}, /*#__PURE__*/React__default.createElement(StyledCard, null, item));
|
|
12652
12682
|
}, [itemWidth]);
|
|
12653
12683
|
var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
|
|
12654
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
12684
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$9, {
|
|
12655
12685
|
style: style,
|
|
12656
12686
|
testID: testID
|
|
12657
12687
|
}, /*#__PURE__*/React__default.createElement(FlatList, {
|
|
@@ -12706,7 +12736,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12706
12736
|
});
|
|
12707
12737
|
CardCarousel.displayName = 'CardCarousel';
|
|
12708
12738
|
|
|
12709
|
-
var _excluded$
|
|
12739
|
+
var _excluded$t = ["rounded", "size", "testID", "style"];
|
|
12710
12740
|
var Image = function Image(_ref) {
|
|
12711
12741
|
var _ref$rounded = _ref.rounded,
|
|
12712
12742
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -12714,7 +12744,7 @@ var Image = function Image(_ref) {
|
|
|
12714
12744
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
12715
12745
|
testID = _ref.testID,
|
|
12716
12746
|
style = _ref.style,
|
|
12717
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12747
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
12718
12748
|
var theme = useTheme();
|
|
12719
12749
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12720
12750
|
return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
|
|
@@ -12848,7 +12878,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12848
12878
|
}, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
|
|
12849
12879
|
};
|
|
12850
12880
|
|
|
12851
|
-
var _excluded$
|
|
12881
|
+
var _excluded$s = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
12852
12882
|
function useStateFromProp(initialValue) {
|
|
12853
12883
|
var _useState = useState(initialValue),
|
|
12854
12884
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12875,7 +12905,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12875
12905
|
testID = _ref.testID,
|
|
12876
12906
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
12877
12907
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
12878
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12908
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
12879
12909
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
12880
12910
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
12881
12911
|
var theme = useTheme();
|
|
@@ -13089,7 +13119,7 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
|
|
|
13089
13119
|
}, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
|
|
13090
13120
|
});
|
|
13091
13121
|
|
|
13092
|
-
var _excluded$
|
|
13122
|
+
var _excluded$r = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
|
|
13093
13123
|
var Chip = function Chip(_ref) {
|
|
13094
13124
|
var label = _ref.label,
|
|
13095
13125
|
_ref$variant = _ref.variant,
|
|
@@ -13100,7 +13130,7 @@ var Chip = function Chip(_ref) {
|
|
|
13100
13130
|
onPress = _ref.onPress,
|
|
13101
13131
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
13102
13132
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
13103
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
13133
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
13104
13134
|
var shouldShowSelectedIcon = variant === 'outlined' && selected && showSelectedIcon;
|
|
13105
13135
|
return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
|
|
13106
13136
|
onPress: onPress,
|
|
@@ -13121,7 +13151,7 @@ var Chip = function Chip(_ref) {
|
|
|
13121
13151
|
})));
|
|
13122
13152
|
};
|
|
13123
13153
|
|
|
13124
|
-
var StyledWrapper$
|
|
13154
|
+
var StyledWrapper$8 = index$a(TouchableOpacity)(function (_ref) {
|
|
13125
13155
|
var theme = _ref.theme,
|
|
13126
13156
|
themeState = _ref.themeState;
|
|
13127
13157
|
return {
|
|
@@ -13195,7 +13225,7 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
13195
13225
|
disabled: disabled,
|
|
13196
13226
|
readonly: readonly
|
|
13197
13227
|
});
|
|
13198
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
13228
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$8, {
|
|
13199
13229
|
onPress: onPress,
|
|
13200
13230
|
disabled: disabled || readonly,
|
|
13201
13231
|
themeState: themeState,
|
|
@@ -13341,7 +13371,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
13341
13371
|
};
|
|
13342
13372
|
});
|
|
13343
13373
|
|
|
13344
|
-
var _excluded$
|
|
13374
|
+
var _excluded$q = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
13345
13375
|
var getState$2 = function getState(_ref) {
|
|
13346
13376
|
var disabled = _ref.disabled,
|
|
13347
13377
|
error = _ref.error,
|
|
@@ -13453,7 +13483,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13453
13483
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
13454
13484
|
_ref8$variant = _ref8.variant,
|
|
13455
13485
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
13456
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
13486
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$q);
|
|
13457
13487
|
var displayText = getDisplayText(value, defaultValue);
|
|
13458
13488
|
var isEmptyValue = displayText.length === 0;
|
|
13459
13489
|
var _React$useState = React__default.useState({
|
|
@@ -13998,11 +14028,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13998
14028
|
}))));
|
|
13999
14029
|
};
|
|
14000
14030
|
|
|
14001
|
-
var _excluded$
|
|
14031
|
+
var _excluded$p = ["variant"];
|
|
14002
14032
|
var DatePicker = function DatePicker(_ref) {
|
|
14003
14033
|
var _ref$variant = _ref.variant,
|
|
14004
14034
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
14005
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14035
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
14006
14036
|
if (variant === 'calendar') {
|
|
14007
14037
|
return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
|
|
14008
14038
|
}
|
|
@@ -14299,7 +14329,7 @@ var index$7 = Object.assign(Drawer, {
|
|
|
14299
14329
|
Dragable: DragableDrawer
|
|
14300
14330
|
});
|
|
14301
14331
|
|
|
14302
|
-
var StyledWrapper$
|
|
14332
|
+
var StyledWrapper$7 = index$a(View)(function (_ref) {
|
|
14303
14333
|
var theme = _ref.theme;
|
|
14304
14334
|
return {
|
|
14305
14335
|
display: 'flex',
|
|
@@ -14337,7 +14367,7 @@ var Empty = function Empty(_ref) {
|
|
|
14337
14367
|
_ref$variant = _ref.variant,
|
|
14338
14368
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
14339
14369
|
var theme = useTheme();
|
|
14340
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
14370
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$7, {
|
|
14341
14371
|
style: style,
|
|
14342
14372
|
testID: testID
|
|
14343
14373
|
}, image !== undefined && /*#__PURE__*/React__default.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
@@ -14556,7 +14586,7 @@ var Portal$1 = Object.assign(Portal, {
|
|
|
14556
14586
|
Host: PortalHost
|
|
14557
14587
|
});
|
|
14558
14588
|
|
|
14559
|
-
var _excluded$
|
|
14589
|
+
var _excluded$o = ["visible"];
|
|
14560
14590
|
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
14561
14591
|
var DEFAULT_ANIMATION_CONFIG = {
|
|
14562
14592
|
easing: Easing.inOut(Easing.cubic),
|
|
@@ -14652,7 +14682,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14652
14682
|
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
14653
14683
|
var _ref3$visible = _ref3.visible,
|
|
14654
14684
|
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
14655
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
14685
|
+
props = _objectWithoutProperties(_ref3, _excluded$o);
|
|
14656
14686
|
var modalRef = useRef(null);
|
|
14657
14687
|
var _useState = useState(visible),
|
|
14658
14688
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -14762,7 +14792,7 @@ var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
|
|
|
14762
14792
|
};
|
|
14763
14793
|
});
|
|
14764
14794
|
|
|
14765
|
-
var _excluded$
|
|
14795
|
+
var _excluded$n = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
14766
14796
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14767
14797
|
var renderImage$1 = function renderImage(image) {
|
|
14768
14798
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
@@ -14788,7 +14818,7 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14788
14818
|
onCtaPress = _ref.onCtaPress,
|
|
14789
14819
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
14790
14820
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
14791
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14821
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
14792
14822
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
14793
14823
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
14794
14824
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -14921,7 +14951,7 @@ var StyledActionItemText = index$a(Typography.Body)(function (_ref2) {
|
|
|
14921
14951
|
color: theme.__hd__.fab.colors.actionItemText
|
|
14922
14952
|
};
|
|
14923
14953
|
});
|
|
14924
|
-
var StyledIcon = index$a(Icon)(function (_ref3) {
|
|
14954
|
+
var StyledIcon$1 = index$a(Icon)(function (_ref3) {
|
|
14925
14955
|
var theme = _ref3.theme;
|
|
14926
14956
|
return {
|
|
14927
14957
|
color: theme.__hd__.fab.colors.actionItemText
|
|
@@ -15011,17 +15041,17 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
15011
15041
|
style: style,
|
|
15012
15042
|
onPress: onPress,
|
|
15013
15043
|
testID: testID
|
|
15014
|
-
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
15044
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledIcon$1, {
|
|
15015
15045
|
size: "xsmall",
|
|
15016
15046
|
icon: icon
|
|
15017
15047
|
})), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
|
|
15018
15048
|
};
|
|
15019
15049
|
|
|
15020
|
-
var _excluded$
|
|
15050
|
+
var _excluded$m = ["active"];
|
|
15021
15051
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
15022
15052
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
15023
15053
|
var active = _ref.active,
|
|
15024
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
15054
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
15025
15055
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
15026
15056
|
useEffect(function () {
|
|
15027
15057
|
var animation = Animated.spring(rotateAnimation.current, {
|
|
@@ -15377,11 +15407,11 @@ var StyledFAB = index$a(FAB$1)(function (_ref) {
|
|
|
15377
15407
|
};
|
|
15378
15408
|
});
|
|
15379
15409
|
|
|
15380
|
-
var _excluded$
|
|
15410
|
+
var _excluded$l = ["fabConfig", "onCancel"];
|
|
15381
15411
|
var Pair = function Pair(_ref) {
|
|
15382
15412
|
var fabConfig = _ref.fabConfig,
|
|
15383
15413
|
onCancel = _ref.onCancel,
|
|
15384
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15414
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
15385
15415
|
var icon = fabConfig.icon,
|
|
15386
15416
|
title = fabConfig.title,
|
|
15387
15417
|
onPress = fabConfig.onPress,
|
|
@@ -15802,11 +15832,11 @@ var StyledFocusIcon = index$a(Icon)(function (_ref5) {
|
|
|
15802
15832
|
};
|
|
15803
15833
|
});
|
|
15804
15834
|
|
|
15805
|
-
var _excluded$
|
|
15835
|
+
var _excluded$k = ["style", "testID"];
|
|
15806
15836
|
var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
15807
15837
|
var style = _ref.style,
|
|
15808
15838
|
testID = _ref.testID,
|
|
15809
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15839
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
15810
15840
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
15811
15841
|
style: style,
|
|
15812
15842
|
testID: testID
|
|
@@ -15816,7 +15846,7 @@ var MapPinFocussed = function MapPinFocussed(_ref) {
|
|
|
15816
15846
|
}));
|
|
15817
15847
|
};
|
|
15818
15848
|
|
|
15819
|
-
var _excluded$
|
|
15849
|
+
var _excluded$j = ["style", "testID", "state", "image", "icon"];
|
|
15820
15850
|
var getBadgeIconName = function getBadgeIconName(state) {
|
|
15821
15851
|
var iconMap = {
|
|
15822
15852
|
idle: undefined,
|
|
@@ -15832,7 +15862,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
15832
15862
|
state = _ref$state === void 0 ? 'idle' : _ref$state,
|
|
15833
15863
|
image = _ref.image,
|
|
15834
15864
|
icon = _ref.icon,
|
|
15835
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15865
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
15836
15866
|
var badgeIcon = getBadgeIconName(state);
|
|
15837
15867
|
return /*#__PURE__*/React__default.createElement(StyledContainer$3, _extends$1({}, nativeProps, {
|
|
15838
15868
|
style: style,
|
|
@@ -16046,7 +16076,7 @@ var List = {
|
|
|
16046
16076
|
BasicItem: BasicListItem
|
|
16047
16077
|
};
|
|
16048
16078
|
|
|
16049
|
-
var StyledWrapper$
|
|
16079
|
+
var StyledWrapper$6 = index$a(View)(function () {
|
|
16050
16080
|
return {
|
|
16051
16081
|
alignContent: 'flex-start'
|
|
16052
16082
|
};
|
|
@@ -16255,7 +16285,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
16255
16285
|
start: trimmedValue.length
|
|
16256
16286
|
};
|
|
16257
16287
|
}, [trimmedValue]);
|
|
16258
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
16288
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$6, {
|
|
16259
16289
|
style: style,
|
|
16260
16290
|
testID: testID
|
|
16261
16291
|
}, /*#__PURE__*/React__default.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
@@ -16374,7 +16404,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
|
|
|
16374
16404
|
};
|
|
16375
16405
|
});
|
|
16376
16406
|
|
|
16377
|
-
var _excluded$
|
|
16407
|
+
var _excluded$i = ["value", "renderValue", "intent", "style", "testID"];
|
|
16378
16408
|
var HalfCircle = function HalfCircle(_ref) {
|
|
16379
16409
|
var type = _ref.type,
|
|
16380
16410
|
themeIntent = _ref.themeIntent;
|
|
@@ -16395,7 +16425,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16395
16425
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
16396
16426
|
style = _ref2.style,
|
|
16397
16427
|
testID = _ref2.testID,
|
|
16398
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
16428
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$i);
|
|
16399
16429
|
var theme = useTheme$1();
|
|
16400
16430
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
16401
16431
|
var progressAnimatedValue = useRef(new Animated.Value(0));
|
|
@@ -16490,7 +16520,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16490
16520
|
})), /*#__PURE__*/React__default.createElement(StyledDonutCircle, null, /*#__PURE__*/React__default.createElement(Typography.Body, null, renderValue(value)))));
|
|
16491
16521
|
};
|
|
16492
16522
|
|
|
16493
|
-
var StyledWrapper$
|
|
16523
|
+
var StyledWrapper$5 = index$a(View)(function (_ref) {
|
|
16494
16524
|
var theme = _ref.theme,
|
|
16495
16525
|
themeIntent = _ref.themeIntent;
|
|
16496
16526
|
return {
|
|
@@ -16511,14 +16541,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
|
|
|
16511
16541
|
};
|
|
16512
16542
|
});
|
|
16513
16543
|
|
|
16514
|
-
var _excluded$
|
|
16544
|
+
var _excluded$h = ["value", "intent", "style", "testID"];
|
|
16515
16545
|
var ProgressBar = function ProgressBar(_ref) {
|
|
16516
16546
|
var value = _ref.value,
|
|
16517
16547
|
_ref$intent = _ref.intent,
|
|
16518
16548
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16519
16549
|
style = _ref.style,
|
|
16520
16550
|
testID = _ref.testID,
|
|
16521
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16551
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
16522
16552
|
var _useState = useState(0),
|
|
16523
16553
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16524
16554
|
width = _useState2[0],
|
|
@@ -16544,7 +16574,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
16544
16574
|
outputRange: [999, 0],
|
|
16545
16575
|
extrapolate: 'clamp'
|
|
16546
16576
|
});
|
|
16547
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
16577
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$5, _extends$1({}, nativeProps, {
|
|
16548
16578
|
testID: testID,
|
|
16549
16579
|
style: style,
|
|
16550
16580
|
themeIntent: intent
|
|
@@ -16607,7 +16637,7 @@ var StyledSingleStep = index$a(Box)(function (_ref3) {
|
|
|
16607
16637
|
};
|
|
16608
16638
|
});
|
|
16609
16639
|
|
|
16610
|
-
var _excluded$
|
|
16640
|
+
var _excluded$g = ["steps", "current", "onLayout"];
|
|
16611
16641
|
var getStepState = function getStepState(current, index) {
|
|
16612
16642
|
if (index < current) {
|
|
16613
16643
|
return 'complete';
|
|
@@ -16621,7 +16651,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
16621
16651
|
var steps = _ref.steps,
|
|
16622
16652
|
current = _ref.current,
|
|
16623
16653
|
onLayout = _ref.onLayout,
|
|
16624
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16654
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
16625
16655
|
var theme = useTheme$1();
|
|
16626
16656
|
var _React$useState = React__default.useState(0),
|
|
16627
16657
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -16802,14 +16832,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
16802
16832
|
}, dotProps))));
|
|
16803
16833
|
};
|
|
16804
16834
|
|
|
16805
|
-
var _excluded$
|
|
16835
|
+
var _excluded$f = ["testID", "size", "intent"];
|
|
16806
16836
|
var Spinner = function Spinner(_ref) {
|
|
16807
16837
|
var testID = _ref.testID,
|
|
16808
16838
|
_ref$size = _ref.size,
|
|
16809
16839
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
16810
16840
|
_ref$intent = _ref.intent,
|
|
16811
16841
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16812
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16842
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
16813
16843
|
return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
|
|
16814
16844
|
testID: testID
|
|
16815
16845
|
}, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
|
|
@@ -16842,7 +16872,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
16842
16872
|
}, children);
|
|
16843
16873
|
};
|
|
16844
16874
|
|
|
16845
|
-
var _excluded$
|
|
16875
|
+
var _excluded$e = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
16846
16876
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
16847
16877
|
var trans = progress.interpolate({
|
|
16848
16878
|
inputRange: [0, 1],
|
|
@@ -16871,7 +16901,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16871
16901
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
16872
16902
|
_ref$variant = _ref.variant,
|
|
16873
16903
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
16874
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
16904
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
16875
16905
|
var theme = useTheme();
|
|
16876
16906
|
var _useWindowDimensions = useWindowDimensions(),
|
|
16877
16907
|
width = _useWindowDimensions.width;
|
|
@@ -17071,7 +17101,7 @@ var StyledIconWrapper$2 = index$a(View)(function (_ref2) {
|
|
|
17071
17101
|
marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
|
|
17072
17102
|
};
|
|
17073
17103
|
});
|
|
17074
|
-
var StyledWrapper$
|
|
17104
|
+
var StyledWrapper$4 = index$a(View)(function () {
|
|
17075
17105
|
return {
|
|
17076
17106
|
display: 'flex',
|
|
17077
17107
|
flexDirection: 'row',
|
|
@@ -17108,7 +17138,7 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
17108
17138
|
themeSize: size,
|
|
17109
17139
|
style: style,
|
|
17110
17140
|
testID: testID
|
|
17111
|
-
}, /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
17141
|
+
}, /*#__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
17142
|
icon: icon,
|
|
17113
17143
|
size: ICON_SIZE_MAP[size],
|
|
17114
17144
|
intent: ICON_INTENT_MAP[intent]
|
|
@@ -17222,7 +17252,7 @@ var StyledSectionList = index$a(SectionList)(function (_ref4) {
|
|
|
17222
17252
|
};
|
|
17223
17253
|
});
|
|
17224
17254
|
|
|
17225
|
-
var _excluded$
|
|
17255
|
+
var _excluded$d = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
17226
17256
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
17227
17257
|
var keyExtractor = _ref.keyExtractor,
|
|
17228
17258
|
loading = _ref.loading,
|
|
@@ -17231,7 +17261,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
17231
17261
|
sections = _ref.sections,
|
|
17232
17262
|
renderItem = _ref.renderItem,
|
|
17233
17263
|
sectionListRef = _ref.sectionListRef,
|
|
17234
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17264
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
17235
17265
|
var theme = useTheme$1();
|
|
17236
17266
|
var _useState = useState(false),
|
|
17237
17267
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17301,7 +17331,7 @@ var Option$2 = function Option(_ref) {
|
|
|
17301
17331
|
return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
|
|
17302
17332
|
};
|
|
17303
17333
|
|
|
17304
|
-
var _excluded$
|
|
17334
|
+
var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
17305
17335
|
var OptionList$1 = function OptionList(_ref) {
|
|
17306
17336
|
var keyExtractor = _ref.keyExtractor,
|
|
17307
17337
|
loading = _ref.loading,
|
|
@@ -17312,7 +17342,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
17312
17342
|
renderOption = _ref.renderOption,
|
|
17313
17343
|
value = _ref.value,
|
|
17314
17344
|
sectionListRef = _ref.sectionListRef,
|
|
17315
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17345
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
17316
17346
|
var renderItem = function renderItem(info) {
|
|
17317
17347
|
var item = info.item;
|
|
17318
17348
|
var selected = value.includes(info.item.value);
|
|
@@ -17503,7 +17533,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
|
|
|
17503
17533
|
};
|
|
17504
17534
|
});
|
|
17505
17535
|
|
|
17506
|
-
var _excluded$
|
|
17536
|
+
var _excluded$b = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
17507
17537
|
var OptionList = function OptionList(_ref) {
|
|
17508
17538
|
var keyExtractor = _ref.keyExtractor,
|
|
17509
17539
|
loading = _ref.loading,
|
|
@@ -17514,7 +17544,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
17514
17544
|
renderOption = _ref.renderOption,
|
|
17515
17545
|
value = _ref.value,
|
|
17516
17546
|
sectionListRef = _ref.sectionListRef,
|
|
17517
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17547
|
+
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
17518
17548
|
var renderItem = function renderItem(info) {
|
|
17519
17549
|
var item = info.item;
|
|
17520
17550
|
var selected = item.value === value;
|
|
@@ -17682,7 +17712,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
|
|
|
17682
17712
|
};
|
|
17683
17713
|
});
|
|
17684
17714
|
|
|
17685
|
-
var _excluded$
|
|
17715
|
+
var _excluded$a = ["intent", "variant", "style", "onLayout"];
|
|
17686
17716
|
var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
|
|
17687
17717
|
var gradientPositions = {
|
|
17688
17718
|
start: {
|
|
@@ -17714,7 +17744,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
17714
17744
|
variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
|
|
17715
17745
|
style = _ref.style,
|
|
17716
17746
|
onLayout = _ref.onLayout,
|
|
17717
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
17747
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
17718
17748
|
var theme = useTheme();
|
|
17719
17749
|
var colors = useMemo(function () {
|
|
17720
17750
|
return getGradientColors(theme, intent);
|
|
@@ -17846,7 +17876,7 @@ var StyledSuccessModal = index$a(ModalWrapper)({
|
|
|
17846
17876
|
width: '100%'
|
|
17847
17877
|
});
|
|
17848
17878
|
|
|
17849
|
-
var _excluded$
|
|
17879
|
+
var _excluded$9 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
17850
17880
|
var renderImage = function renderImage(image) {
|
|
17851
17881
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
17852
17882
|
return /*#__PURE__*/React__default.cloneElement(image, {
|
|
@@ -17872,7 +17902,7 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17872
17902
|
onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
|
|
17873
17903
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
17874
17904
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
17875
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
17905
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
17876
17906
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
17877
17907
|
return /*#__PURE__*/React__default.createElement(StyledSuccessContainer, _extends$1({
|
|
17878
17908
|
testID: testID,
|
|
@@ -17906,7 +17936,7 @@ var Success = function Success(props) {
|
|
|
17906
17936
|
};
|
|
17907
17937
|
|
|
17908
17938
|
var AnimatedView = Animated.createAnimatedComponent(View);
|
|
17909
|
-
var StyledWrapper$
|
|
17939
|
+
var StyledWrapper$3 = index$a(View)(function (_ref) {
|
|
17910
17940
|
var theme = _ref.theme;
|
|
17911
17941
|
return {
|
|
17912
17942
|
flexDirection: 'row',
|
|
@@ -18052,7 +18082,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
18052
18082
|
return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
|
|
18053
18083
|
},
|
|
18054
18084
|
testID: testID
|
|
18055
|
-
}, /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
18085
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$3, {
|
|
18056
18086
|
onLayout: onContainerLayout,
|
|
18057
18087
|
style: style
|
|
18058
18088
|
}, options.map(function (opt, index) {
|
|
@@ -18076,7 +18106,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
18076
18106
|
})));
|
|
18077
18107
|
};
|
|
18078
18108
|
|
|
18079
|
-
var StyledWrapper$
|
|
18109
|
+
var StyledWrapper$2 = index$a(View)(function (_ref) {
|
|
18080
18110
|
var theme = _ref.theme,
|
|
18081
18111
|
themeVariant = _ref.themeVariant;
|
|
18082
18112
|
return {
|
|
@@ -18138,7 +18168,7 @@ var Switch = function Switch(_ref2) {
|
|
|
18138
18168
|
testID: testID,
|
|
18139
18169
|
onPress: onPress,
|
|
18140
18170
|
disabled: disabled
|
|
18141
|
-
}, /*#__PURE__*/React__default.createElement(StyledWrapper$
|
|
18171
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$2, {
|
|
18142
18172
|
themeVariant: variant,
|
|
18143
18173
|
style: style
|
|
18144
18174
|
}, /*#__PURE__*/React__default.createElement(StyledKnot, {
|
|
@@ -18890,7 +18920,7 @@ var StyledText = index$a(Typography.Caption)(function (_ref2) {
|
|
|
18890
18920
|
};
|
|
18891
18921
|
});
|
|
18892
18922
|
|
|
18893
|
-
var _excluded$
|
|
18923
|
+
var _excluded$8 = ["content", "variant", "intent", "style", "testID"];
|
|
18894
18924
|
var Tag = function Tag(_ref) {
|
|
18895
18925
|
var content = _ref.content,
|
|
18896
18926
|
_ref$variant = _ref.variant,
|
|
@@ -18899,7 +18929,7 @@ var Tag = function Tag(_ref) {
|
|
|
18899
18929
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
18900
18930
|
style = _ref.style,
|
|
18901
18931
|
testID = _ref.testID,
|
|
18902
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
18932
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
18903
18933
|
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
18904
18934
|
return /*#__PURE__*/React__default.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
18905
18935
|
themeIntent: intent,
|
|
@@ -19224,10 +19254,10 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
19224
19254
|
}));
|
|
19225
19255
|
};
|
|
19226
19256
|
|
|
19227
|
-
var _excluded$
|
|
19257
|
+
var _excluded$7 = ["children"];
|
|
19228
19258
|
var Toolbar = function Toolbar(_ref) {
|
|
19229
19259
|
var children = _ref.children,
|
|
19230
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19260
|
+
rest = _objectWithoutProperties(_ref, _excluded$7);
|
|
19231
19261
|
return /*#__PURE__*/React__default.createElement(ToolbarWrapper, rest, children);
|
|
19232
19262
|
};
|
|
19233
19263
|
var index$1 = Object.assign(Toolbar, {
|
|
@@ -19235,7 +19265,7 @@ var index$1 = Object.assign(Toolbar, {
|
|
|
19235
19265
|
});
|
|
19236
19266
|
|
|
19237
19267
|
var AnimatedBox = Animated.createAnimatedComponent(View);
|
|
19238
|
-
var StyledWrapper = index$a(Box)({
|
|
19268
|
+
var StyledWrapper$1 = index$a(Box)({
|
|
19239
19269
|
flexDirection: 'row'
|
|
19240
19270
|
});
|
|
19241
19271
|
var StyledIconWrapper = index$a(AnimatedBox)(function (_ref) {
|
|
@@ -19246,7 +19276,7 @@ var StyledIconWrapper = index$a(AnimatedBox)(function (_ref) {
|
|
|
19246
19276
|
};
|
|
19247
19277
|
});
|
|
19248
19278
|
|
|
19249
|
-
var _excluded$
|
|
19279
|
+
var _excluded$6 = ["options", "value", "onChange", "readonly", "disabled"];
|
|
19250
19280
|
var Rate = function Rate(_ref) {
|
|
19251
19281
|
var options = _ref.options,
|
|
19252
19282
|
value = _ref.value,
|
|
@@ -19255,7 +19285,7 @@ var Rate = function Rate(_ref) {
|
|
|
19255
19285
|
readonly = _ref$readonly === void 0 ? false : _ref$readonly,
|
|
19256
19286
|
_ref$disabled = _ref.disabled,
|
|
19257
19287
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
19258
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
19288
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
19259
19289
|
var valueIndex = useMemo(function () {
|
|
19260
19290
|
return options.findIndex(function (item) {
|
|
19261
19291
|
return item.value === value;
|
|
@@ -19273,7 +19303,7 @@ var Rate = function Rate(_ref) {
|
|
|
19273
19303
|
useNativeDriver: Platform.OS !== 'web'
|
|
19274
19304
|
}).start();
|
|
19275
19305
|
}, [value, animatedValue]);
|
|
19276
|
-
return /*#__PURE__*/React__default.createElement(StyledWrapper, otherProps, options.length > 0 && options.map(function (item, index) {
|
|
19306
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$1, otherProps, options.length > 0 && options.map(function (item, index) {
|
|
19277
19307
|
return /*#__PURE__*/React__default.createElement(Pressable, {
|
|
19278
19308
|
key: item.value,
|
|
19279
19309
|
disabled: disabled || readonly,
|
|
@@ -36646,30 +36676,30 @@ function AnimatedScroller(_ref) {
|
|
|
36646
36676
|
}));
|
|
36647
36677
|
}
|
|
36648
36678
|
|
|
36649
|
-
var _excluded$
|
|
36679
|
+
var _excluded$5 = ["fabProps"];
|
|
36650
36680
|
var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
|
|
36651
36681
|
var fabProps = _ref.fabProps,
|
|
36652
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
36682
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
36653
36683
|
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
36654
36684
|
ScrollComponent: /*#__PURE__*/React__default.createElement(ScrollView, props),
|
|
36655
36685
|
fabProps: fabProps
|
|
36656
36686
|
});
|
|
36657
36687
|
};
|
|
36658
36688
|
|
|
36659
|
-
var _excluded$
|
|
36689
|
+
var _excluded$4 = ["fabProps"];
|
|
36660
36690
|
function FlatListWithFAB(_ref) {
|
|
36661
36691
|
var fabProps = _ref.fabProps,
|
|
36662
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
36692
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
36663
36693
|
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
36664
36694
|
ScrollComponent: /*#__PURE__*/React__default.createElement(FlatList, props),
|
|
36665
36695
|
fabProps: fabProps
|
|
36666
36696
|
});
|
|
36667
36697
|
}
|
|
36668
36698
|
|
|
36669
|
-
var _excluded$
|
|
36699
|
+
var _excluded$3 = ["fabProps"];
|
|
36670
36700
|
function SectionListWithFAB(_ref) {
|
|
36671
36701
|
var fabProps = _ref.fabProps,
|
|
36672
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
36702
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
36673
36703
|
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
36674
36704
|
ScrollComponent: /*#__PURE__*/React__default.createElement(SectionList, props),
|
|
36675
36705
|
fabProps: fabProps
|
|
@@ -36804,7 +36834,7 @@ var SearchTwoLine = function SearchTwoLine(props) {
|
|
|
36804
36834
|
})));
|
|
36805
36835
|
};
|
|
36806
36836
|
|
|
36807
|
-
var _excluded$
|
|
36837
|
+
var _excluded$2 = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID", "variant"];
|
|
36808
36838
|
var getState = function getState(_ref) {
|
|
36809
36839
|
var disabled = _ref.disabled,
|
|
36810
36840
|
editable = _ref.editable,
|
|
@@ -36846,7 +36876,7 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36846
36876
|
testID = props.testID,
|
|
36847
36877
|
_props$variant = props.variant,
|
|
36848
36878
|
variant = _props$variant === void 0 ? 'basic' : _props$variant,
|
|
36849
|
-
nativeProps = _objectWithoutProperties(props, _excluded$
|
|
36879
|
+
nativeProps = _objectWithoutProperties(props, _excluded$2);
|
|
36850
36880
|
var _React$useState = React__default.useState(false),
|
|
36851
36881
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
36852
36882
|
isFocused = _React$useState2[0],
|
|
@@ -36930,11 +36960,11 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
36930
36960
|
})));
|
|
36931
36961
|
});
|
|
36932
36962
|
|
|
36933
|
-
var _excluded = ["content", "icon"];
|
|
36963
|
+
var _excluded$1 = ["content", "icon"];
|
|
36934
36964
|
var renderBadge = function renderBadge(props) {
|
|
36935
36965
|
var content = props.content,
|
|
36936
36966
|
icon = props.icon,
|
|
36937
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
36967
|
+
rest = _objectWithoutProperties(props, _excluded$1);
|
|
36938
36968
|
if (content) return /*#__PURE__*/React__default.createElement(StyledBadge, _extends$1({
|
|
36939
36969
|
intent: "primary",
|
|
36940
36970
|
content: content,
|
|
@@ -36966,4 +36996,88 @@ var Search = {
|
|
|
36966
36996
|
SuffixIcon: SearchSuffixIcon
|
|
36967
36997
|
};
|
|
36968
36998
|
|
|
36969
|
-
|
|
36999
|
+
var StyledWrapper = index$a.TouchableOpacity(function (_ref) {
|
|
37000
|
+
var theme = _ref.theme;
|
|
37001
|
+
return _objectSpread2({
|
|
37002
|
+
alignSelf: 'flex-start',
|
|
37003
|
+
position: 'absolute',
|
|
37004
|
+
left: '50%',
|
|
37005
|
+
zIndex: 9999,
|
|
37006
|
+
flexDirection: 'row',
|
|
37007
|
+
justifyContent: 'center',
|
|
37008
|
+
alignItems: 'center',
|
|
37009
|
+
padding: theme.__hd__.floatingIsland.space.wrapperPadding,
|
|
37010
|
+
borderRadius: theme.__hd__.floatingIsland.radii.wrapper,
|
|
37011
|
+
backgroundColor: theme.__hd__.floatingIsland.colors.wrapperBackground,
|
|
37012
|
+
top: theme.__hd__.floatingIsland.space.wrapperTop
|
|
37013
|
+
}, theme.__hd__.floatingIsland.shadows.wrapper);
|
|
37014
|
+
});
|
|
37015
|
+
var StyledPrefixWrapper = index$a(Box)(function (_ref2) {
|
|
37016
|
+
var theme = _ref2.theme;
|
|
37017
|
+
return {
|
|
37018
|
+
marginRight: theme.__hd__.floatingIsland.space.prefixMarginRight
|
|
37019
|
+
};
|
|
37020
|
+
});
|
|
37021
|
+
var StyledSuffixWrapper = index$a(Box)(function (_ref3) {
|
|
37022
|
+
var theme = _ref3.theme;
|
|
37023
|
+
return {
|
|
37024
|
+
marginLeft: theme.__hd__.floatingIsland.space.suffixMarginLeft
|
|
37025
|
+
};
|
|
37026
|
+
});
|
|
37027
|
+
var StyledIcon = index$a(Icon)(function (_ref4) {
|
|
37028
|
+
var theme = _ref4.theme;
|
|
37029
|
+
return {
|
|
37030
|
+
padding: theme.__hd__.floatingIsland.space.iconPadding
|
|
37031
|
+
};
|
|
37032
|
+
});
|
|
37033
|
+
|
|
37034
|
+
var _excluded = ["onPress", "onLayout", "style", "children", "prefix", "suffix"];
|
|
37035
|
+
var getPrefixOrSuffix = function getPrefixOrSuffix(_ref) {
|
|
37036
|
+
var element = _ref.element,
|
|
37037
|
+
_ref$isPrefix = _ref.isPrefix,
|
|
37038
|
+
isPrefix = _ref$isPrefix === void 0 ? true : _ref$isPrefix;
|
|
37039
|
+
var Wrapper = isPrefix ? StyledPrefixWrapper : StyledSuffixWrapper;
|
|
37040
|
+
if (typeof element === 'string') {
|
|
37041
|
+
return /*#__PURE__*/React__default.createElement(Wrapper, null, /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
37042
|
+
testID: "floating-island-".concat(isPrefix ? 'prefix' : 'suffix', "-icon"),
|
|
37043
|
+
size: "small",
|
|
37044
|
+
icon: element
|
|
37045
|
+
}));
|
|
37046
|
+
}
|
|
37047
|
+
return /*#__PURE__*/React__default.createElement(Wrapper, null, element);
|
|
37048
|
+
};
|
|
37049
|
+
var FloatingIsland = function FloatingIsland(_ref2) {
|
|
37050
|
+
var onPress = _ref2.onPress,
|
|
37051
|
+
onLayout = _ref2.onLayout,
|
|
37052
|
+
style = _ref2.style,
|
|
37053
|
+
children = _ref2.children,
|
|
37054
|
+
prefix = _ref2.prefix,
|
|
37055
|
+
suffix = _ref2.suffix,
|
|
37056
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
37057
|
+
var _React$useState = React__default.useState(0),
|
|
37058
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
37059
|
+
width = _React$useState2[0],
|
|
37060
|
+
setWidth = _React$useState2[1];
|
|
37061
|
+
var onWrapperLayout = function onWrapperLayout(event) {
|
|
37062
|
+
setWidth(event.nativeEvent.layout.width);
|
|
37063
|
+
onLayout === null || onLayout === void 0 || onLayout(event);
|
|
37064
|
+
};
|
|
37065
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper, _extends$1({}, props, {
|
|
37066
|
+
onLayout: onWrapperLayout,
|
|
37067
|
+
disabled: !onPress,
|
|
37068
|
+
onPress: onPress,
|
|
37069
|
+
style: [style, width > 0 ? {
|
|
37070
|
+
transform: [{
|
|
37071
|
+
translateX: -width / 2
|
|
37072
|
+
}]
|
|
37073
|
+
} : undefined]
|
|
37074
|
+
}), prefix && getPrefixOrSuffix({
|
|
37075
|
+
element: prefix,
|
|
37076
|
+
isPrefix: true
|
|
37077
|
+
}), children, suffix && getPrefixOrSuffix({
|
|
37078
|
+
element: suffix,
|
|
37079
|
+
isPrefix: false
|
|
37080
|
+
}));
|
|
37081
|
+
};
|
|
37082
|
+
|
|
37083
|
+
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 };
|