@hero-design/rn 8.70.0 → 8.72.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 +3 -3
- package/CHANGELOG.md +29 -0
- package/es/index.js +402 -219
- package/lib/index.js +402 -219
- package/package.json +1 -1
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -8
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Badge/StyledBadge.tsx +17 -2
- package/src/components/Badge/__tests__/Badge.spec.tsx +15 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +187 -0
- package/src/components/Badge/index.tsx +20 -36
- package/src/components/Badge/types.ts +55 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +3 -3
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +7 -7
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +6 -6
- package/src/components/Chip/StyledChip.tsx +44 -8
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +212 -2
- package/src/components/Chip/__tests__/index.spec.tsx +2 -0
- package/src/components/Chip/index.tsx +1 -1
- package/src/components/FAB/FAB.tsx +6 -1
- package/src/components/FAB/Pair/StyledFAB.tsx +19 -0
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +276 -0
- package/src/components/FAB/Pair/__tests__/index.spec.tsx +39 -0
- package/src/components/FAB/Pair/index.tsx +46 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +31 -14
- package/src/components/FAB/index.tsx +3 -1
- package/src/components/Progress/ProgressStep.tsx +3 -1
- package/src/components/Progress/StyledStep.tsx +13 -11
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +215 -4
- package/src/components/Progress/__tests__/index.spec.js +16 -4
- package/src/components/Search/SearchOneLine.tsx +7 -1
- package/src/components/Search/SearchSuffixIcon.tsx +12 -1
- package/src/components/Search/SearchTwoLine.tsx +7 -1
- package/src/components/Search/StyledSearch.tsx +42 -16
- package/src/components/Search/__tests__/SearchOneLine.spec.tsx +30 -0
- package/src/components/Search/__tests__/SearchTwoLine.spec.tsx +15 -0
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +166 -10
- package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +3 -0
- package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +182 -2
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +6 -0
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +9 -0
- package/src/components/Toolbar/StyledToolbar.tsx +11 -0
- package/src/components/Toolbar/ToolbarItem.tsx +3 -3
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +24 -4
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +50 -9
- package/src/theme/components/badge.ts +10 -1
- package/src/theme/components/button.ts +2 -2
- package/src/theme/components/chip.ts +4 -0
- package/src/theme/components/fab.ts +3 -0
- package/src/theme/components/search.ts +30 -5
- package/src/theme/components/switch.ts +2 -2
- package/src/theme/components/toolbar.ts +1 -1
- package/stats/8.71.0/rn-stats.html +4842 -0
- package/stats/8.72.0/rn-stats.html +4844 -0
- package/types/components/Badge/StyledBadge.d.ts +9 -1
- package/types/components/Badge/index.d.ts +3 -34
- package/types/components/Badge/types.d.ts +53 -0
- package/types/components/Chip/StyledChip.d.ts +1 -1
- package/types/components/Chip/index.d.ts +1 -1
- package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
- package/types/components/FAB/Pair/index.d.ts +16 -0
- package/types/components/FAB/index.d.ts +1 -0
- package/types/components/Progress/StyledStep.d.ts +2 -0
- package/types/components/Search/SearchOneLine.d.ts +5 -0
- package/types/components/Search/SearchTwoLine.d.ts +5 -0
- package/types/components/Search/StyledSearch.d.ts +7 -2
- package/types/components/Toolbar/StyledToolbar.d.ts +9 -2
- package/types/theme/components/badge.d.ts +8 -0
- package/types/theme/components/chip.d.ts +4 -0
- package/types/theme/components/fab.d.ts +3 -0
- package/types/theme/components/search.d.ts +31 -5
package/lib/index.js
CHANGED
|
@@ -2334,7 +2334,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2334
2334
|
success: theme.colors.onSuccessSurface,
|
|
2335
2335
|
warning: theme.colors.onWarningSurface,
|
|
2336
2336
|
archived: theme.colors.onArchivedSurface,
|
|
2337
|
-
text: theme.colors.onDarkGlobalSurface
|
|
2337
|
+
text: theme.colors.onDarkGlobalSurface,
|
|
2338
|
+
border: theme.colors.defaultGlobalSurface
|
|
2338
2339
|
};
|
|
2339
2340
|
var fonts = {
|
|
2340
2341
|
medium: theme.fonts.neutral.regular,
|
|
@@ -2342,7 +2343,11 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2342
2343
|
};
|
|
2343
2344
|
var fontSizes = {
|
|
2344
2345
|
medium: theme.fontSizes.small,
|
|
2345
|
-
small: 8
|
|
2346
|
+
small: 8,
|
|
2347
|
+
icon: {
|
|
2348
|
+
medium: theme.fontSizes.small,
|
|
2349
|
+
small: 8
|
|
2350
|
+
}
|
|
2346
2351
|
};
|
|
2347
2352
|
var lineHeights = {
|
|
2348
2353
|
medium: theme.lineHeights.small,
|
|
@@ -2360,6 +2365,9 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2360
2365
|
statusHeight: theme.sizes.small,
|
|
2361
2366
|
statusWidth: theme.sizes.small
|
|
2362
2367
|
};
|
|
2368
|
+
var borderWidths = {
|
|
2369
|
+
"default": theme.borderWidths.medium
|
|
2370
|
+
};
|
|
2363
2371
|
var space = {
|
|
2364
2372
|
medium: {
|
|
2365
2373
|
horizontalPadding: theme.space.small
|
|
@@ -2376,7 +2384,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
2376
2384
|
fontSizes: fontSizes,
|
|
2377
2385
|
sizes: sizes,
|
|
2378
2386
|
space: space,
|
|
2379
|
-
lineHeights: lineHeights
|
|
2387
|
+
lineHeights: lineHeights,
|
|
2388
|
+
borderWidths: borderWidths
|
|
2380
2389
|
};
|
|
2381
2390
|
};
|
|
2382
2391
|
|
|
@@ -2481,7 +2490,7 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
2481
2490
|
};
|
|
2482
2491
|
var colors = {
|
|
2483
2492
|
primary: theme.colors.primary,
|
|
2484
|
-
secondary: theme.colors.
|
|
2493
|
+
secondary: theme.colors.mutedOnDefaultGlobalSurface,
|
|
2485
2494
|
danger: theme.colors.onErrorSurface,
|
|
2486
2495
|
defaultText: theme.colors.onDefaultGlobalSurface,
|
|
2487
2496
|
disabledText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
@@ -2498,7 +2507,7 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
2498
2507
|
outlinedSecondary: theme.colors.highlightedSurface,
|
|
2499
2508
|
outlineDanger: theme.colors.errorSurface,
|
|
2500
2509
|
textPrimary: theme.colors.highlightedSurface,
|
|
2501
|
-
textSecondary: theme.colors.
|
|
2510
|
+
textSecondary: theme.colors.neutralGlobalSurface,
|
|
2502
2511
|
textDanger: theme.colors.errorSurface
|
|
2503
2512
|
}
|
|
2504
2513
|
};
|
|
@@ -2663,11 +2672,15 @@ var getChipTheme = function getChipTheme(theme) {
|
|
|
2663
2672
|
outlinedDefaultBackground: theme.colors.defaultGlobalSurface,
|
|
2664
2673
|
outlinedSelectedBackground: theme.colors.secondaryOutline,
|
|
2665
2674
|
outlinedSelectedBorder: theme.colors.primaryOutline,
|
|
2666
|
-
outlinedDefaultBorder: theme.colors.disabledOnDefaultGlobalSurface
|
|
2675
|
+
outlinedDefaultBorder: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2676
|
+
compactDefaultBackground: theme.colors.defaultGlobalSurface,
|
|
2677
|
+
compactSelectedBackground: theme.colors.neutralGlobalSurface
|
|
2667
2678
|
};
|
|
2668
2679
|
var space = {
|
|
2669
2680
|
wrapperHorizontalPadding: theme.space.smallMedium,
|
|
2670
2681
|
wrapperVerticalPadding: theme.space.small,
|
|
2682
|
+
compactWrapperHorizontalPadding: theme.space.small,
|
|
2683
|
+
compactWrapperVerticalPadding: theme.space.xsmall,
|
|
2671
2684
|
iconWrapperHorizontalMargin: theme.space.small,
|
|
2672
2685
|
outlinedSelectedMarginTop: -theme.space.xxsmall
|
|
2673
2686
|
};
|
|
@@ -2861,7 +2874,9 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2861
2874
|
width: theme.sizes.xxxxxlarge,
|
|
2862
2875
|
height: theme.sizes.xxxxxlarge,
|
|
2863
2876
|
iconContainerWidth: theme.sizes.large,
|
|
2864
|
-
iconContainerHeight: theme.sizes.large
|
|
2877
|
+
iconContainerHeight: theme.sizes.large,
|
|
2878
|
+
fabPairHeight: theme.sizes.xxxlarge,
|
|
2879
|
+
fabPairIconOnlyWidth: theme.sizes.xxxlarge
|
|
2865
2880
|
};
|
|
2866
2881
|
var fonts = {
|
|
2867
2882
|
actionItemText: theme.fonts.neutral.regular,
|
|
@@ -2891,7 +2906,8 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2891
2906
|
buttonMarginTop: theme.space.large,
|
|
2892
2907
|
buttonMarginRight: theme.space.large,
|
|
2893
2908
|
containerPadding: theme.space.large - theme.space.xsmall,
|
|
2894
|
-
titleMarginHorizontal: theme.space.small
|
|
2909
|
+
titleMarginHorizontal: theme.space.small,
|
|
2910
|
+
fabPairMarginRight: theme.space.small
|
|
2895
2911
|
};
|
|
2896
2912
|
var radii = {
|
|
2897
2913
|
actionItem: theme.radii.rounded
|
|
@@ -3378,9 +3394,9 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
3378
3394
|
checked: theme.colors.primary,
|
|
3379
3395
|
unchecked: theme.colors.inactiveOnDefaultGlobalSurface,
|
|
3380
3396
|
'disabled-checked': theme.colors.highlightedSurface,
|
|
3381
|
-
'disabled-unchecked': theme.colors.
|
|
3397
|
+
'disabled-unchecked': theme.colors.mutedOnDefaultGlobalSurface
|
|
3382
3398
|
},
|
|
3383
|
-
thumb: theme.colors.
|
|
3399
|
+
thumb: theme.colors.onDarkGlobalSurface,
|
|
3384
3400
|
selector: {
|
|
3385
3401
|
background: theme.colors.defaultGlobalSurface,
|
|
3386
3402
|
textBackground: theme.colors.decorativePrimarySurface
|
|
@@ -3651,7 +3667,7 @@ var getToolbarTheme = function getToolbarTheme(theme) {
|
|
|
3651
3667
|
background: theme.colors.defaultGlobalSurface,
|
|
3652
3668
|
border: theme.colors.secondaryOutline,
|
|
3653
3669
|
primary: theme.colors.primary,
|
|
3654
|
-
secondary: theme.colors.
|
|
3670
|
+
secondary: theme.colors.mutedOnDefaultGlobalSurface,
|
|
3655
3671
|
info: theme.colors.info,
|
|
3656
3672
|
success: theme.colors.success,
|
|
3657
3673
|
danger: theme.colors.warning,
|
|
@@ -3855,15 +3871,32 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
3855
3871
|
|
|
3856
3872
|
var getSearchTheme = function getSearchTheme(theme) {
|
|
3857
3873
|
var colors = {
|
|
3858
|
-
|
|
3859
|
-
|
|
3874
|
+
basic: {
|
|
3875
|
+
containerBackground: theme.colors.neutralGlobalSurface,
|
|
3876
|
+
border: theme.colors.neutralGlobalSurface,
|
|
3877
|
+
focusedBorder: theme.colors.primaryOutline
|
|
3878
|
+
},
|
|
3879
|
+
reversed: {
|
|
3880
|
+
containerBackground: theme.colors.defaultGlobalSurface,
|
|
3881
|
+
border: theme.colors.secondaryOutline,
|
|
3882
|
+
focusedBorder: theme.colors.primaryOutline
|
|
3883
|
+
},
|
|
3884
|
+
suffixBackground: theme.colors.defaultGlobalSurface,
|
|
3860
3885
|
text: theme.colors.onDefaultGlobalSurface,
|
|
3861
|
-
|
|
3886
|
+
shadow: theme.colors.primaryOutline
|
|
3887
|
+
};
|
|
3888
|
+
var shadows = {
|
|
3889
|
+
offset: theme.shadows["default"].shadowOffset,
|
|
3890
|
+
opacity: theme.shadows["default"].shadowOpacity,
|
|
3891
|
+
radius: theme.shadows["default"].shadowRadius,
|
|
3892
|
+
elevation: theme.shadows["default"].elevation,
|
|
3893
|
+
color: theme.shadows["default"].shadowColor
|
|
3862
3894
|
};
|
|
3863
3895
|
var space = {
|
|
3864
3896
|
containerHorizontalPadding: theme.space.small,
|
|
3865
3897
|
containerVerticalPadding: theme.space.small,
|
|
3866
3898
|
inputHorizontalMargin: theme.space.small,
|
|
3899
|
+
inputVerticalPadding: theme.space.xxsmall,
|
|
3867
3900
|
prefixHorizontalPadding: theme.space.xsmall,
|
|
3868
3901
|
surfixPadding: theme.space.small,
|
|
3869
3902
|
badgeTop: -theme.space.xxsmall,
|
|
@@ -3877,8 +3910,14 @@ var getSearchTheme = function getSearchTheme(theme) {
|
|
|
3877
3910
|
};
|
|
3878
3911
|
var borderWidths = {
|
|
3879
3912
|
container: {
|
|
3880
|
-
|
|
3881
|
-
|
|
3913
|
+
basic: {
|
|
3914
|
+
normal: theme.borderWidths.medium,
|
|
3915
|
+
focused: theme.borderWidths.medium
|
|
3916
|
+
},
|
|
3917
|
+
reversed: {
|
|
3918
|
+
normal: theme.borderWidths.base,
|
|
3919
|
+
focused: theme.borderWidths.medium
|
|
3920
|
+
}
|
|
3882
3921
|
}
|
|
3883
3922
|
};
|
|
3884
3923
|
var radii = {
|
|
@@ -3895,7 +3934,8 @@ var getSearchTheme = function getSearchTheme(theme) {
|
|
|
3895
3934
|
fontSizes: fontSizes,
|
|
3896
3935
|
borderWidths: borderWidths,
|
|
3897
3936
|
radii: radii,
|
|
3898
|
-
sizes: sizes
|
|
3937
|
+
sizes: sizes,
|
|
3938
|
+
shadows: shadows
|
|
3899
3939
|
};
|
|
3900
3940
|
};
|
|
3901
3941
|
|
|
@@ -7028,7 +7068,7 @@ var StyledText$3 = index$9(reactNative.Text)(function (_ref) {
|
|
|
7028
7068
|
});
|
|
7029
7069
|
});
|
|
7030
7070
|
|
|
7031
|
-
var _excluded$
|
|
7071
|
+
var _excluded$H = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
7032
7072
|
var Text = function Text(_ref) {
|
|
7033
7073
|
var children = _ref.children,
|
|
7034
7074
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -7041,7 +7081,7 @@ var Text = function Text(_ref) {
|
|
|
7041
7081
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7042
7082
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7043
7083
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7044
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7084
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$H);
|
|
7045
7085
|
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.');
|
|
7046
7086
|
return /*#__PURE__*/React__namespace.default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
7047
7087
|
themeFontSize: fontSize,
|
|
@@ -7071,7 +7111,7 @@ var StyledCaption = index$9(reactNative.Text)(function (_ref) {
|
|
|
7071
7111
|
};
|
|
7072
7112
|
});
|
|
7073
7113
|
|
|
7074
|
-
var _excluded$
|
|
7114
|
+
var _excluded$G = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
7075
7115
|
var Caption = function Caption(_ref) {
|
|
7076
7116
|
var children = _ref.children,
|
|
7077
7117
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -7080,7 +7120,7 @@ var Caption = function Caption(_ref) {
|
|
|
7080
7120
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7081
7121
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7082
7122
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7083
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7123
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$G);
|
|
7084
7124
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
7085
7125
|
themeFontWeight: fontWeight,
|
|
7086
7126
|
themeIntent: intent,
|
|
@@ -7088,7 +7128,7 @@ var Caption = function Caption(_ref) {
|
|
|
7088
7128
|
}), children);
|
|
7089
7129
|
};
|
|
7090
7130
|
|
|
7091
|
-
var StyledLabel = index$9(reactNative.Text)(function (_ref) {
|
|
7131
|
+
var StyledLabel$1 = index$9(reactNative.Text)(function (_ref) {
|
|
7092
7132
|
var themeIntent = _ref.themeIntent,
|
|
7093
7133
|
theme = _ref.theme;
|
|
7094
7134
|
return {
|
|
@@ -7099,15 +7139,15 @@ var StyledLabel = index$9(reactNative.Text)(function (_ref) {
|
|
|
7099
7139
|
};
|
|
7100
7140
|
});
|
|
7101
7141
|
|
|
7102
|
-
var _excluded$
|
|
7142
|
+
var _excluded$F = ["children", "intent", "allowFontScaling"];
|
|
7103
7143
|
var Label = function Label(_ref) {
|
|
7104
7144
|
var children = _ref.children,
|
|
7105
7145
|
_ref$intent = _ref.intent,
|
|
7106
7146
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
7107
7147
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
7108
7148
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
7109
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7110
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledLabel, _extends$1({}, nativeProps, {
|
|
7149
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$F);
|
|
7150
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
7111
7151
|
themeIntent: intent,
|
|
7112
7152
|
allowFontScaling: allowFontScaling
|
|
7113
7153
|
}), children);
|
|
@@ -7127,7 +7167,7 @@ var StyledTitle$1 = index$9(reactNative.Text)(function (_ref) {
|
|
|
7127
7167
|
};
|
|
7128
7168
|
});
|
|
7129
7169
|
|
|
7130
|
-
var _excluded$
|
|
7170
|
+
var _excluded$E = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
7131
7171
|
var Title = function Title(_ref) {
|
|
7132
7172
|
var children = _ref.children,
|
|
7133
7173
|
_ref$intent = _ref.intent,
|
|
@@ -7138,7 +7178,7 @@ var Title = function Title(_ref) {
|
|
|
7138
7178
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
7139
7179
|
_ref$typeface = _ref.typeface,
|
|
7140
7180
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7141
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7181
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$E);
|
|
7142
7182
|
return /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
7143
7183
|
themeLevel: level,
|
|
7144
7184
|
themeTypeface: typeface,
|
|
@@ -7173,7 +7213,7 @@ var StyledBody$1 = index$9(reactNative.Text)(function (_ref) {
|
|
|
7173
7213
|
};
|
|
7174
7214
|
});
|
|
7175
7215
|
|
|
7176
|
-
var _excluded$
|
|
7216
|
+
var _excluded$D = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
7177
7217
|
var Body = function Body(_ref) {
|
|
7178
7218
|
var children = _ref.children,
|
|
7179
7219
|
_ref$intent = _ref.intent,
|
|
@@ -7184,7 +7224,7 @@ var Body = function Body(_ref) {
|
|
|
7184
7224
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
7185
7225
|
_ref$variant = _ref.variant,
|
|
7186
7226
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
7187
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7227
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
7188
7228
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBody$1, _extends$1({}, nativeProps, {
|
|
7189
7229
|
themeTypeface: typeface,
|
|
7190
7230
|
themeIntent: intent,
|
|
@@ -7751,10 +7791,10 @@ var StyledHeroIcon = index$9(HeroIcon)(function (_ref) {
|
|
|
7751
7791
|
};
|
|
7752
7792
|
});
|
|
7753
7793
|
|
|
7754
|
-
var _excluded$
|
|
7794
|
+
var _excluded$C = ["style"];
|
|
7755
7795
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
7756
7796
|
var style = _ref.style,
|
|
7757
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7797
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
7758
7798
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
7759
7799
|
React.useEffect(function () {
|
|
7760
7800
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -7852,14 +7892,14 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7852
7892
|
variant: "regular-bold"
|
|
7853
7893
|
}, header) : header, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7854
7894
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
7855
|
-
intent: "
|
|
7895
|
+
intent: "primary",
|
|
7856
7896
|
size: "small"
|
|
7857
7897
|
})), /*#__PURE__*/React__namespace.default.createElement(StyledCollapse, {
|
|
7858
7898
|
open: open
|
|
7859
7899
|
}, content));
|
|
7860
7900
|
};
|
|
7861
7901
|
|
|
7862
|
-
var _excluded$
|
|
7902
|
+
var _excluded$B = ["key"];
|
|
7863
7903
|
var Accordion = function Accordion(_ref) {
|
|
7864
7904
|
var items = _ref.items,
|
|
7865
7905
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -7880,7 +7920,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
7880
7920
|
testID: testID
|
|
7881
7921
|
}, items.map(function (_ref2, index) {
|
|
7882
7922
|
var key = _ref2.key,
|
|
7883
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7923
|
+
props = _objectWithoutProperties(_ref2, _excluded$B);
|
|
7884
7924
|
var open = _activeItemKey === key;
|
|
7885
7925
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
7886
7926
|
key: key
|
|
@@ -7915,7 +7955,7 @@ var IconContainer$1 = index$9(reactNative.View)(function (_ref2) {
|
|
|
7915
7955
|
paddingLeft: theme.__hd__.alert.space.iconLeftPadding
|
|
7916
7956
|
};
|
|
7917
7957
|
});
|
|
7918
|
-
var StyledIcon$
|
|
7958
|
+
var StyledIcon$2 = index$9(Icon)(function (_ref3) {
|
|
7919
7959
|
var theme = _ref3.theme,
|
|
7920
7960
|
themeIntent = _ref3.themeIntent;
|
|
7921
7961
|
return {
|
|
@@ -7974,7 +8014,7 @@ var AlertIcon = function AlertIcon(_ref) {
|
|
|
7974
8014
|
intent = _ref.intent;
|
|
7975
8015
|
return icon ? /*#__PURE__*/React__namespace.default.createElement(IconContainer$1, {
|
|
7976
8016
|
testID: "alert-left-icon"
|
|
7977
|
-
}, /*#__PURE__*/React__namespace.default.createElement(StyledIcon$
|
|
8017
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledIcon$2, {
|
|
7978
8018
|
icon: icon,
|
|
7979
8019
|
size: "small",
|
|
7980
8020
|
themeIntent: intent
|
|
@@ -8015,7 +8055,7 @@ var Alert = function Alert(_ref2) {
|
|
|
8015
8055
|
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledBody, {
|
|
8016
8056
|
variant: "small-bold",
|
|
8017
8057
|
themeIntent: intent
|
|
8018
|
-
}, actionLabel) : /*#__PURE__*/React__namespace.default.createElement(StyledIcon$
|
|
8058
|
+
}, actionLabel) : /*#__PURE__*/React__namespace.default.createElement(StyledIcon$2, {
|
|
8019
8059
|
icon: "cancel",
|
|
8020
8060
|
size: "small",
|
|
8021
8061
|
themeIntent: intent
|
|
@@ -8374,7 +8414,7 @@ var borderWidths = {
|
|
|
8374
8414
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
8375
8415
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
8376
8416
|
|
|
8377
|
-
var _excluded$
|
|
8417
|
+
var _excluded$A = ["theme"];
|
|
8378
8418
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
8379
8419
|
var propConfig = config[key];
|
|
8380
8420
|
var propValue = props[key];
|
|
@@ -8401,18 +8441,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
8401
8441
|
var configKeys = Object.keys(config);
|
|
8402
8442
|
var StyledBox = index$9(reactNative.View)(function (_ref5) {
|
|
8403
8443
|
var theme = _ref5.theme,
|
|
8404
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8444
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$A);
|
|
8405
8445
|
var styleProps = pick(configKeys, otherProps);
|
|
8406
8446
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
8407
8447
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
8408
8448
|
});
|
|
8409
8449
|
|
|
8410
|
-
var _excluded$
|
|
8450
|
+
var _excluded$z = ["children", "style", "testID"];
|
|
8411
8451
|
var Box = function Box(_ref) {
|
|
8412
8452
|
var children = _ref.children,
|
|
8413
8453
|
style = _ref.style,
|
|
8414
8454
|
testID = _ref.testID,
|
|
8415
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8455
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
8416
8456
|
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8417
8457
|
style: style,
|
|
8418
8458
|
testID: testID
|
|
@@ -8593,6 +8633,7 @@ var StyledView$2 = index$9(reactNative.Animated.View)(function (_ref) {
|
|
|
8593
8633
|
var themeIntent = _ref.themeIntent,
|
|
8594
8634
|
themePadding = _ref.themePadding,
|
|
8595
8635
|
themeSize = _ref.themeSize,
|
|
8636
|
+
themeVariant = _ref.themeVariant,
|
|
8596
8637
|
theme = _ref.theme;
|
|
8597
8638
|
return {
|
|
8598
8639
|
height: theme.__hd__.badge.sizes[themeSize].height,
|
|
@@ -8601,7 +8642,9 @@ var StyledView$2 = index$9(reactNative.Animated.View)(function (_ref) {
|
|
|
8601
8642
|
justifyContent: 'center',
|
|
8602
8643
|
backgroundColor: theme.__hd__.badge.colors[themeIntent],
|
|
8603
8644
|
borderRadius: theme.radii.rounded,
|
|
8604
|
-
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space[themeSize].horizontalPadding : undefined
|
|
8645
|
+
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space[themeSize].horizontalPadding : undefined,
|
|
8646
|
+
borderWidth: theme.__hd__.badge.borderWidths["default"],
|
|
8647
|
+
borderColor: themeVariant === 'outlined' ? theme.__hd__.badge.colors.border : theme.__hd__.badge.colors[themeIntent]
|
|
8605
8648
|
};
|
|
8606
8649
|
});
|
|
8607
8650
|
var StyledText$1 = index$9(Typography.Caption)(function (_ref2) {
|
|
@@ -8630,8 +8673,15 @@ var StyledStatus = index$9(reactNative.Animated.View)(function (_ref3) {
|
|
|
8630
8673
|
borderRadius: theme.radii.rounded
|
|
8631
8674
|
};
|
|
8632
8675
|
});
|
|
8676
|
+
var StyledIcon$1 = index$9(Icon)(function (_ref4) {
|
|
8677
|
+
var themeSize = _ref4.themeSize,
|
|
8678
|
+
theme = _ref4.theme;
|
|
8679
|
+
return {
|
|
8680
|
+
fontSize: theme.__hd__.badge.fontSizes[themeSize]
|
|
8681
|
+
};
|
|
8682
|
+
});
|
|
8633
8683
|
|
|
8634
|
-
var _excluded$
|
|
8684
|
+
var _excluded$y = ["children", "visible", "intent", "style", "testID"];
|
|
8635
8685
|
var Status = function Status(_ref) {
|
|
8636
8686
|
var children = _ref.children,
|
|
8637
8687
|
_ref$visible = _ref.visible,
|
|
@@ -8640,7 +8690,7 @@ var Status = function Status(_ref) {
|
|
|
8640
8690
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
8641
8691
|
style = _ref.style,
|
|
8642
8692
|
testID = _ref.testID,
|
|
8643
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8693
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
8644
8694
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
8645
8695
|
opacity = _React$useRef.current;
|
|
8646
8696
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -8673,7 +8723,7 @@ var Status = function Status(_ref) {
|
|
|
8673
8723
|
}));
|
|
8674
8724
|
};
|
|
8675
8725
|
|
|
8676
|
-
var _excluded$
|
|
8726
|
+
var _excluded$x = ["content", "visible", "max", "intent", "style", "testID", "size", "variant", "icon"];
|
|
8677
8727
|
var DEFAULT_MAX_NUMBER = 99;
|
|
8678
8728
|
var getPaddingState = function getPaddingState(content) {
|
|
8679
8729
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -8690,7 +8740,10 @@ var Badge = function Badge(_ref) {
|
|
|
8690
8740
|
testID = _ref.testID,
|
|
8691
8741
|
_ref$size = _ref.size,
|
|
8692
8742
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
8693
|
-
|
|
8743
|
+
_ref$variant = _ref.variant,
|
|
8744
|
+
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
8745
|
+
icon = _ref.icon,
|
|
8746
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
8694
8747
|
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
8695
8748
|
opacity = _React$useRef.current;
|
|
8696
8749
|
var isFirstRendering = React__namespace.default.useRef(true);
|
|
@@ -8706,11 +8759,18 @@ var Badge = function Badge(_ref) {
|
|
|
8706
8759
|
useNativeDriver: true
|
|
8707
8760
|
}).start();
|
|
8708
8761
|
}, [visible, opacity]);
|
|
8709
|
-
var
|
|
8762
|
+
var isIconBadge = !!icon;
|
|
8763
|
+
var content = React.useMemo(function () {
|
|
8764
|
+
if (isIconBadge) {
|
|
8765
|
+
return '';
|
|
8766
|
+
}
|
|
8767
|
+
return typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
8768
|
+
}, [isIconBadge, originalContent, max]);
|
|
8710
8769
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView$2, _extends$1({}, nativeProps, {
|
|
8711
8770
|
themeIntent: intent,
|
|
8712
8771
|
themePadding: getPaddingState(content),
|
|
8713
8772
|
themeSize: size,
|
|
8773
|
+
themeVariant: variant,
|
|
8714
8774
|
style: [{
|
|
8715
8775
|
opacity: opacity,
|
|
8716
8776
|
transform: [{
|
|
@@ -8721,7 +8781,11 @@ var Badge = function Badge(_ref) {
|
|
|
8721
8781
|
}]
|
|
8722
8782
|
}, style],
|
|
8723
8783
|
testID: testID
|
|
8724
|
-
}), /*#__PURE__*/React__namespace.default.createElement(
|
|
8784
|
+
}), isIconBadge ? /*#__PURE__*/React__namespace.default.createElement(StyledIcon$1, {
|
|
8785
|
+
icon: icon,
|
|
8786
|
+
themeSize: size,
|
|
8787
|
+
intent: "text-inverted"
|
|
8788
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledText$1, {
|
|
8725
8789
|
themeSize: size
|
|
8726
8790
|
}, content));
|
|
8727
8791
|
};
|
|
@@ -8780,7 +8844,7 @@ var StyledBottomBarText = index$9(Typography.Caption)(function (_ref3) {
|
|
|
8780
8844
|
};
|
|
8781
8845
|
});
|
|
8782
8846
|
|
|
8783
|
-
var _excluded$
|
|
8847
|
+
var _excluded$w = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
8784
8848
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
8785
8849
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
8786
8850
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -8791,7 +8855,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8791
8855
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
8792
8856
|
selectedTabKey = _ref.selectedTabKey,
|
|
8793
8857
|
tabs = _ref.tabs,
|
|
8794
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8858
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
8795
8859
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
8796
8860
|
/**
|
|
8797
8861
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -8877,13 +8941,13 @@ var StyledDivider = index$9(reactNative.View)(function (_ref) {
|
|
|
8877
8941
|
}, horizontalMargin), verticalMargin);
|
|
8878
8942
|
});
|
|
8879
8943
|
|
|
8880
|
-
var _excluded$
|
|
8944
|
+
var _excluded$v = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
8881
8945
|
var Divider = function Divider(_ref) {
|
|
8882
8946
|
var marginHorizontal = _ref.marginHorizontal,
|
|
8883
8947
|
marginVertical = _ref.marginVertical,
|
|
8884
8948
|
style = _ref.style,
|
|
8885
8949
|
testID = _ref.testID,
|
|
8886
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
8950
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
8887
8951
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
8888
8952
|
themeMarginHorizontal: marginHorizontal,
|
|
8889
8953
|
themeMarginVertical: marginVertical,
|
|
@@ -9039,7 +9103,7 @@ var StyledLoadingDot = index$9(reactNative.View)(function (_ref) {
|
|
|
9039
9103
|
}, themeStyling());
|
|
9040
9104
|
});
|
|
9041
9105
|
|
|
9042
|
-
var _excluded$
|
|
9106
|
+
var _excluded$u = ["count", "size", "testID", "themeVariant"];
|
|
9043
9107
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
9044
9108
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
9045
9109
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -9071,7 +9135,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
9071
9135
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
9072
9136
|
testID = _ref2.testID,
|
|
9073
9137
|
themeVariant = _ref2.themeVariant,
|
|
9074
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
9138
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$u);
|
|
9075
9139
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
9076
9140
|
React.useEffect(function () {
|
|
9077
9141
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -9514,11 +9578,11 @@ var Header = function Header(_ref) {
|
|
|
9514
9578
|
}))) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
9515
9579
|
};
|
|
9516
9580
|
|
|
9517
|
-
var _excluded$
|
|
9581
|
+
var _excluded$t = ["scrollEventThrottle"];
|
|
9518
9582
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
9519
9583
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
9520
9584
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
9521
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9585
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
9522
9586
|
var _useContext = React.useContext(BottomSheetContext),
|
|
9523
9587
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
9524
9588
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -12335,12 +12399,12 @@ var Indicator = index$9(reactNative.View)(function (_ref2) {
|
|
|
12335
12399
|
};
|
|
12336
12400
|
});
|
|
12337
12401
|
|
|
12338
|
-
var _excluded$
|
|
12402
|
+
var _excluded$s = ["intent", "children"];
|
|
12339
12403
|
var DataCard = function DataCard(_ref) {
|
|
12340
12404
|
var _ref$intent = _ref.intent,
|
|
12341
12405
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
12342
12406
|
children = _ref.children,
|
|
12343
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12407
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
12344
12408
|
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
12345
12409
|
themeIntent: intent,
|
|
12346
12410
|
testID: "data-card-indicator"
|
|
@@ -12359,13 +12423,13 @@ var StyledCard$1 = index$9(reactNative.View)(function (_ref) {
|
|
|
12359
12423
|
});
|
|
12360
12424
|
});
|
|
12361
12425
|
|
|
12362
|
-
var _excluded$
|
|
12426
|
+
var _excluded$r = ["intent", "children", "variant"];
|
|
12363
12427
|
var Card = function Card(_ref) {
|
|
12364
12428
|
var intent = _ref.intent,
|
|
12365
12429
|
children = _ref.children,
|
|
12366
12430
|
_ref$variant = _ref.variant,
|
|
12367
12431
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
12368
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12432
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
12369
12433
|
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
12370
12434
|
themeIntent: intent,
|
|
12371
12435
|
themeVariant: variant
|
|
@@ -12627,7 +12691,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12627
12691
|
});
|
|
12628
12692
|
CardCarousel.displayName = 'CardCarousel';
|
|
12629
12693
|
|
|
12630
|
-
var _excluded$
|
|
12694
|
+
var _excluded$q = ["rounded", "size", "testID", "style"];
|
|
12631
12695
|
var Image = function Image(_ref) {
|
|
12632
12696
|
var _ref$rounded = _ref.rounded,
|
|
12633
12697
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -12635,7 +12699,7 @@ var Image = function Image(_ref) {
|
|
|
12635
12699
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
12636
12700
|
testID = _ref.testID,
|
|
12637
12701
|
style = _ref.style,
|
|
12638
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12702
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
12639
12703
|
var theme = useTheme();
|
|
12640
12704
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12641
12705
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Image, _extends$1({
|
|
@@ -12769,7 +12833,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12769
12833
|
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
12770
12834
|
};
|
|
12771
12835
|
|
|
12772
|
-
var _excluded$
|
|
12836
|
+
var _excluded$p = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
12773
12837
|
function useStateFromProp(initialValue) {
|
|
12774
12838
|
var _useState = React.useState(initialValue),
|
|
12775
12839
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12796,7 +12860,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12796
12860
|
testID = _ref.testID,
|
|
12797
12861
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
12798
12862
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
|
|
12799
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12863
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
12800
12864
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
12801
12865
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
12802
12866
|
var theme = useTheme();
|
|
@@ -12913,6 +12977,7 @@ var StyledChipWrapper = index$9(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
12913
12977
|
theme = _ref.theme;
|
|
12914
12978
|
var getShadowStyles = function getShadowStyles() {
|
|
12915
12979
|
switch (themeVariant) {
|
|
12980
|
+
case 'compact':
|
|
12916
12981
|
case 'filled':
|
|
12917
12982
|
return _objectSpread2({}, theme.__hd__.chip.shadows.filledWrapper);
|
|
12918
12983
|
case 'outlined':
|
|
@@ -12928,6 +12993,7 @@ var StyledChipWrapper = index$9(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
12928
12993
|
borderWidth: themeSelected ? theme.__hd__.chip.sizes.outlinedSelectedBorder : theme.__hd__.chip.sizes.outlinedDefaultBorder
|
|
12929
12994
|
};
|
|
12930
12995
|
}
|
|
12996
|
+
case 'compact':
|
|
12931
12997
|
case 'filled':
|
|
12932
12998
|
{
|
|
12933
12999
|
return {
|
|
@@ -12946,9 +13012,17 @@ var StyledChipWrapper = index$9(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
12946
13012
|
};
|
|
12947
13013
|
}
|
|
12948
13014
|
case 'filled':
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
13015
|
+
{
|
|
13016
|
+
return {
|
|
13017
|
+
backgroundColor: theme.__hd__.chip.colors.secondaryBackground
|
|
13018
|
+
};
|
|
13019
|
+
}
|
|
13020
|
+
case 'compact':
|
|
13021
|
+
{
|
|
13022
|
+
return {
|
|
13023
|
+
backgroundColor: theme.__hd__.chip.colors.compactSelectedBackground
|
|
13024
|
+
};
|
|
13025
|
+
}
|
|
12952
13026
|
}
|
|
12953
13027
|
} else {
|
|
12954
13028
|
switch (themeVariant) {
|
|
@@ -12959,25 +13033,49 @@ var StyledChipWrapper = index$9(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
12959
13033
|
};
|
|
12960
13034
|
}
|
|
12961
13035
|
case 'filled':
|
|
13036
|
+
{
|
|
13037
|
+
return {
|
|
13038
|
+
backgroundColor: theme.__hd__.chip.colors.filledBackground
|
|
13039
|
+
};
|
|
13040
|
+
}
|
|
13041
|
+
case 'compact':
|
|
13042
|
+
{
|
|
13043
|
+
return {
|
|
13044
|
+
backgroundColor: theme.__hd__.chip.colors.compactDefaultBackground
|
|
13045
|
+
};
|
|
13046
|
+
}
|
|
13047
|
+
}
|
|
13048
|
+
}
|
|
13049
|
+
};
|
|
13050
|
+
var getPaddingStyles = function getPaddingStyles() {
|
|
13051
|
+
switch (themeVariant) {
|
|
13052
|
+
case 'compact':
|
|
13053
|
+
{
|
|
12962
13054
|
return {
|
|
12963
|
-
|
|
13055
|
+
paddingHorizontal: theme.__hd__.chip.space.compactWrapperHorizontalPadding,
|
|
13056
|
+
paddingVertical: theme.__hd__.chip.space.compactWrapperVerticalPadding
|
|
12964
13057
|
};
|
|
12965
|
-
|
|
13058
|
+
}
|
|
13059
|
+
default:
|
|
13060
|
+
{
|
|
13061
|
+
return {
|
|
13062
|
+
paddingHorizontal: theme.__hd__.chip.space.wrapperHorizontalPadding,
|
|
13063
|
+
paddingVertical: theme.__hd__.chip.space.wrapperVerticalPadding
|
|
13064
|
+
};
|
|
13065
|
+
}
|
|
12966
13066
|
}
|
|
12967
13067
|
};
|
|
12968
|
-
return _objectSpread2(_objectSpread2(_objectSpread2({
|
|
13068
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
12969
13069
|
alignSelf: 'flex-start',
|
|
12970
13070
|
flexDirection: 'row',
|
|
12971
13071
|
alignItems: 'center',
|
|
12972
13072
|
justifyContent: 'center',
|
|
12973
13073
|
borderRadius: theme.__hd__.chip.radii.wrapper,
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
marginTop: themeSelected ? theme.__hd__.chip.space.outlinedSelectedMarginTop : undefined
|
|
12977
|
-
}, getShadowStyles()), getBorderStyles()), getBackgroundStyles());
|
|
13074
|
+
marginTop: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.space.outlinedSelectedMarginTop : undefined
|
|
13075
|
+
}, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
|
|
12978
13076
|
});
|
|
12979
13077
|
|
|
12980
|
-
var _excluded$
|
|
13078
|
+
var _excluded$o = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
|
|
12981
13079
|
var Chip = function Chip(_ref) {
|
|
12982
13080
|
var label = _ref.label,
|
|
12983
13081
|
_ref$variant = _ref.variant,
|
|
@@ -12988,7 +13086,7 @@ var Chip = function Chip(_ref) {
|
|
|
12988
13086
|
onPress = _ref.onPress,
|
|
12989
13087
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
12990
13088
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
12991
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
13089
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
12992
13090
|
var shouldShowSelectedIcon = variant === 'outlined' && selected && showSelectedIcon;
|
|
12993
13091
|
return /*#__PURE__*/React__namespace.default.createElement(StyledChipWrapper, _extends$1({
|
|
12994
13092
|
onPress: onPress,
|
|
@@ -13229,7 +13327,7 @@ var StyledErrorAndMaxLengthContainer = index$9(reactNative.View)(function () {
|
|
|
13229
13327
|
};
|
|
13230
13328
|
});
|
|
13231
13329
|
|
|
13232
|
-
var _excluded$
|
|
13330
|
+
var _excluded$n = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
13233
13331
|
var getState$2 = function getState(_ref) {
|
|
13234
13332
|
var disabled = _ref.disabled,
|
|
13235
13333
|
error = _ref.error,
|
|
@@ -13341,7 +13439,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13341
13439
|
allowFontScaling = _ref8$allowFontScalin === void 0 ? false : _ref8$allowFontScalin,
|
|
13342
13440
|
_ref8$variant = _ref8.variant,
|
|
13343
13441
|
variant = _ref8$variant === void 0 ? 'text' : _ref8$variant,
|
|
13344
|
-
nativeProps = _objectWithoutProperties(_ref8, _excluded$
|
|
13442
|
+
nativeProps = _objectWithoutProperties(_ref8, _excluded$n);
|
|
13345
13443
|
var displayText = getDisplayText(value, defaultValue);
|
|
13346
13444
|
var isEmptyValue = displayText.length === 0;
|
|
13347
13445
|
var _React$useState = React__namespace.default.useState({
|
|
@@ -13886,11 +13984,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13886
13984
|
}))));
|
|
13887
13985
|
};
|
|
13888
13986
|
|
|
13889
|
-
var _excluded$
|
|
13987
|
+
var _excluded$m = ["variant"];
|
|
13890
13988
|
var DatePicker = function DatePicker(_ref) {
|
|
13891
13989
|
var _ref$variant = _ref.variant,
|
|
13892
13990
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
13893
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
13991
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
13894
13992
|
if (variant === 'calendar') {
|
|
13895
13993
|
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props);
|
|
13896
13994
|
}
|
|
@@ -14444,7 +14542,7 @@ var Portal$1 = Object.assign(Portal, {
|
|
|
14444
14542
|
Host: PortalHost
|
|
14445
14543
|
});
|
|
14446
14544
|
|
|
14447
|
-
var _excluded$
|
|
14545
|
+
var _excluded$l = ["visible"];
|
|
14448
14546
|
var DEFAULT_BACKDROP_OPACITY = 0.4;
|
|
14449
14547
|
var DEFAULT_ANIMATION_CONFIG = {
|
|
14450
14548
|
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
@@ -14540,7 +14638,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14540
14638
|
var ModalWrapper = function ModalWrapper(_ref3) {
|
|
14541
14639
|
var _ref3$visible = _ref3.visible,
|
|
14542
14640
|
visible = _ref3$visible === void 0 ? true : _ref3$visible,
|
|
14543
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
14641
|
+
props = _objectWithoutProperties(_ref3, _excluded$l);
|
|
14544
14642
|
var modalRef = React.useRef(null);
|
|
14545
14643
|
var _useState = React.useState(visible),
|
|
14546
14644
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -14650,7 +14748,7 @@ var StyledErrorDescription = index$9(Typography.Body)(function (_ref9) {
|
|
|
14650
14748
|
};
|
|
14651
14749
|
});
|
|
14652
14750
|
|
|
14653
|
-
var _excluded$
|
|
14751
|
+
var _excluded$k = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
14654
14752
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14655
14753
|
var renderImage$1 = function renderImage(image) {
|
|
14656
14754
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
@@ -14676,7 +14774,7 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14676
14774
|
onCtaPress = _ref.onCtaPress,
|
|
14677
14775
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
14678
14776
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
14679
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14777
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
14680
14778
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
14681
14779
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
14682
14780
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -14789,8 +14887,35 @@ var ErrorComponent = function ErrorComponent(_ref2) {
|
|
|
14789
14887
|
}, nativeProps));
|
|
14790
14888
|
};
|
|
14791
14889
|
|
|
14890
|
+
var StyledActionItem = index$9(reactNative.TouchableHighlight)(function (_ref) {
|
|
14891
|
+
var theme = _ref.theme;
|
|
14892
|
+
return {
|
|
14893
|
+
padding: theme.__hd__.fab.space.actionItemPadding,
|
|
14894
|
+
margin: theme.__hd__.fab.space.actionItemMargin,
|
|
14895
|
+
marginRight: theme.__hd__.fab.space.actionItemMarginRight,
|
|
14896
|
+
backgroundColor: theme.__hd__.fab.colors.actionItemBackground,
|
|
14897
|
+
borderRadius: theme.__hd__.fab.radii.actionItem,
|
|
14898
|
+
flexDirection: 'row',
|
|
14899
|
+
alignItems: 'center',
|
|
14900
|
+
alignSelf: 'flex-end',
|
|
14901
|
+
overflow: 'hidden'
|
|
14902
|
+
};
|
|
14903
|
+
});
|
|
14904
|
+
var StyledActionItemText = index$9(Typography.Body)(function (_ref2) {
|
|
14905
|
+
var theme = _ref2.theme;
|
|
14906
|
+
return {
|
|
14907
|
+
color: theme.__hd__.fab.colors.actionItemText
|
|
14908
|
+
};
|
|
14909
|
+
});
|
|
14910
|
+
var StyledIcon = index$9(Icon)(function (_ref3) {
|
|
14911
|
+
var theme = _ref3.theme;
|
|
14912
|
+
return {
|
|
14913
|
+
color: theme.__hd__.fab.colors.actionItemText
|
|
14914
|
+
};
|
|
14915
|
+
});
|
|
14916
|
+
|
|
14792
14917
|
var AnimatedTouchableHighlight = reactNative.Animated.createAnimatedComponent(reactNative.TouchableHighlight);
|
|
14793
|
-
var StyledFAB$
|
|
14918
|
+
var StyledFAB$2 = index$9(AnimatedTouchableHighlight)(function (_ref) {
|
|
14794
14919
|
var theme = _ref.theme,
|
|
14795
14920
|
themeActive = _ref.themeActive;
|
|
14796
14921
|
return {
|
|
@@ -14837,11 +14962,52 @@ var StyledIconContainer = index$9(Box)(function (_ref4) {
|
|
|
14837
14962
|
};
|
|
14838
14963
|
});
|
|
14839
14964
|
|
|
14840
|
-
var
|
|
14965
|
+
var ActionItem = function ActionItem(_ref) {
|
|
14966
|
+
var icon = _ref.icon,
|
|
14967
|
+
title = _ref.title,
|
|
14968
|
+
onPress = _ref.onPress,
|
|
14969
|
+
style = _ref.style,
|
|
14970
|
+
testID = _ref.testID,
|
|
14971
|
+
index = _ref.index,
|
|
14972
|
+
_ref$active = _ref.active,
|
|
14973
|
+
active = _ref$active === void 0 ? false : _ref$active;
|
|
14974
|
+
var theme = useTheme();
|
|
14975
|
+
var animatedValue = React__namespace.default.useRef(new reactNative.Animated.Value(0));
|
|
14976
|
+
var translateY = animatedValue.current.interpolate({
|
|
14977
|
+
inputRange: [0, 1],
|
|
14978
|
+
outputRange: [50, 0]
|
|
14979
|
+
});
|
|
14980
|
+
React__namespace.default.useEffect(function () {
|
|
14981
|
+
reactNative.Animated.spring(animatedValue.current, {
|
|
14982
|
+
toValue: active ? 1 : 0,
|
|
14983
|
+
useNativeDriver: reactNative.Platform.OS !== 'web',
|
|
14984
|
+
delay: index * 30,
|
|
14985
|
+
speed: 10,
|
|
14986
|
+
bounciness: 10
|
|
14987
|
+
}).start();
|
|
14988
|
+
}, [active, index]);
|
|
14989
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14990
|
+
style: {
|
|
14991
|
+
transform: [{
|
|
14992
|
+
translateY: translateY
|
|
14993
|
+
}]
|
|
14994
|
+
}
|
|
14995
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledActionItem, {
|
|
14996
|
+
underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
|
|
14997
|
+
style: style,
|
|
14998
|
+
onPress: onPress,
|
|
14999
|
+
testID: testID
|
|
15000
|
+
}, /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledIcon, {
|
|
15001
|
+
size: "xsmall",
|
|
15002
|
+
icon: icon
|
|
15003
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
|
|
15004
|
+
};
|
|
15005
|
+
|
|
15006
|
+
var _excluded$j = ["active"];
|
|
14841
15007
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
|
|
14842
15008
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
14843
15009
|
var active = _ref.active,
|
|
14844
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
15010
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
14845
15011
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
14846
15012
|
React.useEffect(function () {
|
|
14847
15013
|
var animation = reactNative.Animated.spring(rotateAnimation.current, {
|
|
@@ -14881,13 +15047,15 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
14881
15047
|
return /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(AnimatedFABIcon, {
|
|
14882
15048
|
active: active,
|
|
14883
15049
|
icon: icon,
|
|
14884
|
-
testID: "animated-fab-icon"
|
|
15050
|
+
testID: "animated-fab-icon",
|
|
15051
|
+
size: "xsmall"
|
|
14885
15052
|
}));
|
|
14886
15053
|
}
|
|
14887
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
|
|
15054
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
|
|
15055
|
+
size: "xsmall",
|
|
14888
15056
|
icon: icon,
|
|
14889
15057
|
testID: "styled-fab-icon"
|
|
14890
|
-
});
|
|
15058
|
+
}));
|
|
14891
15059
|
};
|
|
14892
15060
|
var IconWithTextContent = function IconWithTextContent(_ref2) {
|
|
14893
15061
|
var icon = _ref2.icon,
|
|
@@ -14985,7 +15153,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14985
15153
|
}
|
|
14986
15154
|
};
|
|
14987
15155
|
}, []);
|
|
14988
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledFAB$
|
|
15156
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledFAB$2, {
|
|
14989
15157
|
onLayout: function onLayout(event) {
|
|
14990
15158
|
return !hasSetButtonWidth && !active && setButtonWidth(event.nativeEvent.layout.width);
|
|
14991
15159
|
},
|
|
@@ -15021,74 +15189,6 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
15021
15189
|
});
|
|
15022
15190
|
FAB$1.displayName = 'FAB';
|
|
15023
15191
|
|
|
15024
|
-
var StyledActionItem = index$9(reactNative.TouchableHighlight)(function (_ref) {
|
|
15025
|
-
var theme = _ref.theme;
|
|
15026
|
-
return {
|
|
15027
|
-
padding: theme.__hd__.fab.space.actionItemPadding,
|
|
15028
|
-
margin: theme.__hd__.fab.space.actionItemMargin,
|
|
15029
|
-
marginRight: theme.__hd__.fab.space.actionItemMarginRight,
|
|
15030
|
-
backgroundColor: theme.__hd__.fab.colors.actionItemBackground,
|
|
15031
|
-
borderRadius: theme.__hd__.fab.radii.actionItem,
|
|
15032
|
-
flexDirection: 'row',
|
|
15033
|
-
alignItems: 'center',
|
|
15034
|
-
alignSelf: 'flex-end',
|
|
15035
|
-
overflow: 'hidden'
|
|
15036
|
-
};
|
|
15037
|
-
});
|
|
15038
|
-
var StyledActionItemText = index$9(Typography.Body)(function (_ref2) {
|
|
15039
|
-
var theme = _ref2.theme;
|
|
15040
|
-
return {
|
|
15041
|
-
color: theme.__hd__.fab.colors.actionItemText
|
|
15042
|
-
};
|
|
15043
|
-
});
|
|
15044
|
-
var StyledIcon = index$9(Icon)(function (_ref3) {
|
|
15045
|
-
var theme = _ref3.theme;
|
|
15046
|
-
return {
|
|
15047
|
-
color: theme.__hd__.fab.colors.actionItemText
|
|
15048
|
-
};
|
|
15049
|
-
});
|
|
15050
|
-
|
|
15051
|
-
var ActionItem = function ActionItem(_ref) {
|
|
15052
|
-
var icon = _ref.icon,
|
|
15053
|
-
title = _ref.title,
|
|
15054
|
-
onPress = _ref.onPress,
|
|
15055
|
-
style = _ref.style,
|
|
15056
|
-
testID = _ref.testID,
|
|
15057
|
-
index = _ref.index,
|
|
15058
|
-
_ref$active = _ref.active,
|
|
15059
|
-
active = _ref$active === void 0 ? false : _ref$active;
|
|
15060
|
-
var theme = useTheme();
|
|
15061
|
-
var animatedValue = React__namespace.default.useRef(new reactNative.Animated.Value(0));
|
|
15062
|
-
var translateY = animatedValue.current.interpolate({
|
|
15063
|
-
inputRange: [0, 1],
|
|
15064
|
-
outputRange: [50, 0]
|
|
15065
|
-
});
|
|
15066
|
-
React__namespace.default.useEffect(function () {
|
|
15067
|
-
reactNative.Animated.spring(animatedValue.current, {
|
|
15068
|
-
toValue: active ? 1 : 0,
|
|
15069
|
-
useNativeDriver: reactNative.Platform.OS !== 'web',
|
|
15070
|
-
delay: index * 30,
|
|
15071
|
-
speed: 10,
|
|
15072
|
-
bounciness: 10
|
|
15073
|
-
}).start();
|
|
15074
|
-
}, [active, index]);
|
|
15075
|
-
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
15076
|
-
style: {
|
|
15077
|
-
transform: [{
|
|
15078
|
-
translateY: translateY
|
|
15079
|
-
}]
|
|
15080
|
-
}
|
|
15081
|
-
}, /*#__PURE__*/React__namespace.default.createElement(StyledActionItem, {
|
|
15082
|
-
underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
|
|
15083
|
-
style: style,
|
|
15084
|
-
onPress: onPress,
|
|
15085
|
-
testID: testID
|
|
15086
|
-
}, /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledIcon, {
|
|
15087
|
-
size: "xsmall",
|
|
15088
|
-
icon: icon
|
|
15089
|
-
})), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
|
|
15090
|
-
};
|
|
15091
|
-
|
|
15092
15192
|
var StyledContainer$3 = index$9(reactNative.View)({
|
|
15093
15193
|
position: 'absolute',
|
|
15094
15194
|
left: 0,
|
|
@@ -15112,7 +15212,7 @@ var StyledActionGroupContainer = index$9(reactNative.Animated.View)({
|
|
|
15112
15212
|
justifyContent: 'flex-end',
|
|
15113
15213
|
width: '70%'
|
|
15114
15214
|
});
|
|
15115
|
-
var StyledFAB = index$9(FAB$1)(function (_ref) {
|
|
15215
|
+
var StyledFAB$1 = index$9(FAB$1)(function (_ref) {
|
|
15116
15216
|
var theme = _ref.theme;
|
|
15117
15217
|
return {
|
|
15118
15218
|
marginRight: theme.__hd__.fab.space.buttonMarginRight,
|
|
@@ -15189,7 +15289,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15189
15289
|
testID: testID,
|
|
15190
15290
|
pointerEvents: "box-none",
|
|
15191
15291
|
style: style
|
|
15192
|
-
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, null, /*#__PURE__*/React__namespace.default.createElement(StyledFAB, {
|
|
15292
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, null, /*#__PURE__*/React__namespace.default.createElement(StyledFAB$1, {
|
|
15193
15293
|
key: "fab",
|
|
15194
15294
|
testID: "fab",
|
|
15195
15295
|
icon: fabIcon,
|
|
@@ -15227,7 +15327,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15227
15327
|
index: active ? index : items.length - index,
|
|
15228
15328
|
active: active
|
|
15229
15329
|
}));
|
|
15230
|
-
}))), active && /*#__PURE__*/React__namespace.default.createElement(StyledFAB
|
|
15330
|
+
}))), active && /*#__PURE__*/React__namespace.default.createElement(StyledFAB$1
|
|
15231
15331
|
// This FAB is moved up a bit compared to the original FAB,
|
|
15232
15332
|
// set marginBottom to negative value to compensate for it
|
|
15233
15333
|
, {
|
|
@@ -15245,8 +15345,51 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
15245
15345
|
});
|
|
15246
15346
|
ActionGroup.displayName = 'FAB.ActionGroup';
|
|
15247
15347
|
|
|
15348
|
+
var StyledFABPairWrapper = index$9(Box)({
|
|
15349
|
+
flexDirection: 'row',
|
|
15350
|
+
justifyContent: 'center',
|
|
15351
|
+
alignItems: 'center'
|
|
15352
|
+
});
|
|
15353
|
+
var StyledFAB = index$9(FAB$1)(function (_ref) {
|
|
15354
|
+
var theme = _ref.theme,
|
|
15355
|
+
_ref$iconOnly = _ref.iconOnly,
|
|
15356
|
+
iconOnly = _ref$iconOnly === void 0 ? false : _ref$iconOnly,
|
|
15357
|
+
_ref$isLast = _ref.isLast,
|
|
15358
|
+
isLast = _ref$isLast === void 0 ? false : _ref$isLast;
|
|
15359
|
+
return {
|
|
15360
|
+
height: theme.__hd__.fab.sizes.fabPairHeight,
|
|
15361
|
+
width: iconOnly ? theme.__hd__.fab.sizes.fabPairIconOnlyWidth : undefined,
|
|
15362
|
+
marginRight: isLast ? undefined : theme.__hd__.fab.space.fabPairMarginRight
|
|
15363
|
+
};
|
|
15364
|
+
});
|
|
15365
|
+
|
|
15366
|
+
var _excluded$i = ["fabConfig", "onCancel"];
|
|
15367
|
+
var Pair = function Pair(_ref) {
|
|
15368
|
+
var fabConfig = _ref.fabConfig,
|
|
15369
|
+
onCancel = _ref.onCancel,
|
|
15370
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
15371
|
+
var icon = fabConfig.icon,
|
|
15372
|
+
title = fabConfig.title,
|
|
15373
|
+
onPress = fabConfig.onPress,
|
|
15374
|
+
testID = fabConfig.testID;
|
|
15375
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledFABPairWrapper, props, /*#__PURE__*/React__namespace.default.createElement(StyledFAB, {
|
|
15376
|
+
icon: "cancel",
|
|
15377
|
+
onPress: onCancel,
|
|
15378
|
+
testID: "fab-pair-cancel",
|
|
15379
|
+
iconOnly: true
|
|
15380
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledFAB, {
|
|
15381
|
+
icon: icon,
|
|
15382
|
+
title: title,
|
|
15383
|
+
onPress: onPress,
|
|
15384
|
+
testID: testID,
|
|
15385
|
+
iconOnly: !title,
|
|
15386
|
+
isLast: true
|
|
15387
|
+
}));
|
|
15388
|
+
};
|
|
15389
|
+
|
|
15248
15390
|
var FAB = Object.assign(FAB$1, {
|
|
15249
|
-
ActionGroup: ActionGroup
|
|
15391
|
+
ActionGroup: ActionGroup,
|
|
15392
|
+
Pair: Pair
|
|
15250
15393
|
});
|
|
15251
15394
|
|
|
15252
15395
|
var ToastContainerWrapper = index$9(reactNative.View)(function (_ref) {
|
|
@@ -16090,7 +16233,7 @@ var StyledStrokeEnd = index$9(reactNative.View)(function (_ref6) {
|
|
|
16090
16233
|
};
|
|
16091
16234
|
});
|
|
16092
16235
|
|
|
16093
|
-
var _excluded$
|
|
16236
|
+
var _excluded$h = ["value", "renderValue", "intent", "style", "testID"];
|
|
16094
16237
|
var HalfCircle = function HalfCircle(_ref) {
|
|
16095
16238
|
var type = _ref.type,
|
|
16096
16239
|
themeIntent = _ref.themeIntent;
|
|
@@ -16111,7 +16254,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16111
16254
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
16112
16255
|
style = _ref2.style,
|
|
16113
16256
|
testID = _ref2.testID,
|
|
16114
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
16257
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
16115
16258
|
var theme = useTheme$1();
|
|
16116
16259
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
16117
16260
|
var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
|
|
@@ -16227,14 +16370,14 @@ var StyledInner = index$9(reactNative.Animated.View)(function (_ref2) {
|
|
|
16227
16370
|
};
|
|
16228
16371
|
});
|
|
16229
16372
|
|
|
16230
|
-
var _excluded$
|
|
16373
|
+
var _excluded$g = ["value", "intent", "style", "testID"];
|
|
16231
16374
|
var ProgressBar = function ProgressBar(_ref) {
|
|
16232
16375
|
var value = _ref.value,
|
|
16233
16376
|
_ref$intent = _ref.intent,
|
|
16234
16377
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16235
16378
|
style = _ref.style,
|
|
16236
16379
|
testID = _ref.testID,
|
|
16237
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16380
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
16238
16381
|
var _useState = React.useState(0),
|
|
16239
16382
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16240
16383
|
width = _useState2[0],
|
|
@@ -16308,12 +16451,13 @@ var StyledSingleStepContainer = index$9(Box)(function (_ref2) {
|
|
|
16308
16451
|
};
|
|
16309
16452
|
});
|
|
16310
16453
|
var StyledSingleStep = index$9(Box)(function (_ref3) {
|
|
16311
|
-
var theme = _ref3.theme
|
|
16454
|
+
var theme = _ref3.theme,
|
|
16455
|
+
themeState = _ref3.themeState;
|
|
16312
16456
|
return {
|
|
16313
16457
|
height: theme.__hd__.progress.sizes.stepHeight,
|
|
16314
16458
|
borderRadius: theme.__hd__.progress.radii["default"],
|
|
16315
16459
|
backgroundColor: theme.__hd__.progress.colors.step.complete,
|
|
16316
|
-
width: '70%',
|
|
16460
|
+
width: themeState === 'complete' ? '100%' : '70%',
|
|
16317
16461
|
position: 'absolute',
|
|
16318
16462
|
top: 0,
|
|
16319
16463
|
left: 0,
|
|
@@ -16322,7 +16466,7 @@ var StyledSingleStep = index$9(Box)(function (_ref3) {
|
|
|
16322
16466
|
};
|
|
16323
16467
|
});
|
|
16324
16468
|
|
|
16325
|
-
var _excluded$
|
|
16469
|
+
var _excluded$f = ["steps", "current", "onLayout"];
|
|
16326
16470
|
var getStepState = function getStepState(current, index) {
|
|
16327
16471
|
if (index < current) {
|
|
16328
16472
|
return 'complete';
|
|
@@ -16336,7 +16480,7 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
16336
16480
|
var steps = _ref.steps,
|
|
16337
16481
|
current = _ref.current,
|
|
16338
16482
|
onLayout = _ref.onLayout,
|
|
16339
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
16483
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
16340
16484
|
var theme = useTheme$1();
|
|
16341
16485
|
var _React$useState = React__namespace.default.useState(0),
|
|
16342
16486
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -16355,7 +16499,9 @@ var ProgressStep = function ProgressStep(_ref) {
|
|
|
16355
16499
|
return width;
|
|
16356
16500
|
}, [containerWidth, steps, theme]);
|
|
16357
16501
|
if (steps === 1) {
|
|
16358
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledSingleStepContainer, props, /*#__PURE__*/React__namespace.default.createElement(StyledSingleStep,
|
|
16502
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSingleStepContainer, props, /*#__PURE__*/React__namespace.default.createElement(StyledSingleStep, {
|
|
16503
|
+
themeState: current >= steps ? 'complete' : 'incomplete'
|
|
16504
|
+
}));
|
|
16359
16505
|
}
|
|
16360
16506
|
return /*#__PURE__*/React__namespace.default.createElement(StyledStepContainer, _extends$1({}, props, {
|
|
16361
16507
|
onLayout: onContainerLayout
|
|
@@ -16515,14 +16661,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
16515
16661
|
}, dotProps))));
|
|
16516
16662
|
};
|
|
16517
16663
|
|
|
16518
|
-
var _excluded$
|
|
16664
|
+
var _excluded$e = ["testID", "size", "intent"];
|
|
16519
16665
|
var Spinner = function Spinner(_ref) {
|
|
16520
16666
|
var testID = _ref.testID,
|
|
16521
16667
|
_ref$size = _ref.size,
|
|
16522
16668
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
16523
16669
|
_ref$intent = _ref.intent,
|
|
16524
16670
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16525
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16671
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
16526
16672
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
|
|
16527
16673
|
testID: testID
|
|
16528
16674
|
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
|
|
@@ -16555,7 +16701,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
16555
16701
|
}, children);
|
|
16556
16702
|
};
|
|
16557
16703
|
|
|
16558
|
-
var _excluded$
|
|
16704
|
+
var _excluded$d = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth", "variant"];
|
|
16559
16705
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
16560
16706
|
var trans = progress.interpolate({
|
|
16561
16707
|
inputRange: [0, 1],
|
|
@@ -16584,7 +16730,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16584
16730
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
16585
16731
|
_ref$variant = _ref.variant,
|
|
16586
16732
|
variant = _ref$variant === void 0 ? 'card' : _ref$variant,
|
|
16587
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
16733
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$d);
|
|
16588
16734
|
var theme = useTheme();
|
|
16589
16735
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
16590
16736
|
width = _useWindowDimensions.width;
|
|
@@ -16935,7 +17081,7 @@ var StyledSectionList = index$9(reactNative.SectionList)(function (_ref4) {
|
|
|
16935
17081
|
};
|
|
16936
17082
|
});
|
|
16937
17083
|
|
|
16938
|
-
var _excluded$
|
|
17084
|
+
var _excluded$c = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
16939
17085
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
16940
17086
|
var keyExtractor = _ref.keyExtractor,
|
|
16941
17087
|
loading = _ref.loading,
|
|
@@ -16944,7 +17090,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
16944
17090
|
sections = _ref.sections,
|
|
16945
17091
|
renderItem = _ref.renderItem,
|
|
16946
17092
|
sectionListRef = _ref.sectionListRef,
|
|
16947
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17093
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
16948
17094
|
var theme = useTheme$1();
|
|
16949
17095
|
var _useState = React.useState(false),
|
|
16950
17096
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17014,7 +17160,7 @@ var Option$2 = function Option(_ref) {
|
|
|
17014
17160
|
return highlighted === true ? /*#__PURE__*/React__namespace.default.createElement(List.Item, props) : /*#__PURE__*/React__namespace.default.createElement(List.BasicItem, props);
|
|
17015
17161
|
};
|
|
17016
17162
|
|
|
17017
|
-
var _excluded$
|
|
17163
|
+
var _excluded$b = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
17018
17164
|
var OptionList$1 = function OptionList(_ref) {
|
|
17019
17165
|
var keyExtractor = _ref.keyExtractor,
|
|
17020
17166
|
loading = _ref.loading,
|
|
@@ -17025,7 +17171,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
17025
17171
|
renderOption = _ref.renderOption,
|
|
17026
17172
|
value = _ref.value,
|
|
17027
17173
|
sectionListRef = _ref.sectionListRef,
|
|
17028
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17174
|
+
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
17029
17175
|
var renderItem = function renderItem(info) {
|
|
17030
17176
|
var item = info.item;
|
|
17031
17177
|
var selected = value.includes(info.item.value);
|
|
@@ -17216,7 +17362,7 @@ var StyledOptionList = index$9(BaseOptionList)(function (_ref) {
|
|
|
17216
17362
|
};
|
|
17217
17363
|
});
|
|
17218
17364
|
|
|
17219
|
-
var _excluded$
|
|
17365
|
+
var _excluded$a = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
17220
17366
|
var OptionList = function OptionList(_ref) {
|
|
17221
17367
|
var keyExtractor = _ref.keyExtractor,
|
|
17222
17368
|
loading = _ref.loading,
|
|
@@ -17227,7 +17373,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
17227
17373
|
renderOption = _ref.renderOption,
|
|
17228
17374
|
value = _ref.value,
|
|
17229
17375
|
sectionListRef = _ref.sectionListRef,
|
|
17230
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17376
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
17231
17377
|
var renderItem = function renderItem(info) {
|
|
17232
17378
|
var item = info.item;
|
|
17233
17379
|
var selected = item.value === value;
|
|
@@ -17395,7 +17541,7 @@ var StyledGradientContainer = index$9(Box)(function (_ref2) {
|
|
|
17395
17541
|
};
|
|
17396
17542
|
});
|
|
17397
17543
|
|
|
17398
|
-
var _excluded$
|
|
17544
|
+
var _excluded$9 = ["intent", "variant", "style", "onLayout"];
|
|
17399
17545
|
var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default.default);
|
|
17400
17546
|
var gradientPositions = {
|
|
17401
17547
|
start: {
|
|
@@ -17427,7 +17573,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
17427
17573
|
variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
|
|
17428
17574
|
style = _ref.style,
|
|
17429
17575
|
onLayout = _ref.onLayout,
|
|
17430
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
17576
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
17431
17577
|
var theme = useTheme();
|
|
17432
17578
|
var colors = React.useMemo(function () {
|
|
17433
17579
|
return getGradientColors(theme, intent);
|
|
@@ -17559,7 +17705,7 @@ var StyledSuccessModal = index$9(ModalWrapper)({
|
|
|
17559
17705
|
width: '100%'
|
|
17560
17706
|
});
|
|
17561
17707
|
|
|
17562
|
-
var _excluded$
|
|
17708
|
+
var _excluded$8 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
17563
17709
|
var renderImage = function renderImage(image) {
|
|
17564
17710
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
17565
17711
|
return /*#__PURE__*/React__namespace.default.cloneElement(image, {
|
|
@@ -17585,7 +17731,7 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17585
17731
|
onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
|
|
17586
17732
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
17587
17733
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
17588
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
17734
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
17589
17735
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
17590
17736
|
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessContainer, _extends$1({
|
|
17591
17737
|
testID: testID,
|
|
@@ -18603,7 +18749,7 @@ var StyledText = index$9(Typography.Caption)(function (_ref2) {
|
|
|
18603
18749
|
};
|
|
18604
18750
|
});
|
|
18605
18751
|
|
|
18606
|
-
var _excluded$
|
|
18752
|
+
var _excluded$7 = ["content", "variant", "intent", "style", "testID"];
|
|
18607
18753
|
var Tag = function Tag(_ref) {
|
|
18608
18754
|
var content = _ref.content,
|
|
18609
18755
|
_ref$variant = _ref.variant,
|
|
@@ -18612,7 +18758,7 @@ var Tag = function Tag(_ref) {
|
|
|
18612
18758
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
18613
18759
|
style = _ref.style,
|
|
18614
18760
|
testID = _ref.testID,
|
|
18615
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
18761
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
18616
18762
|
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
18617
18763
|
return /*#__PURE__*/React__namespace.default.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
18618
18764
|
themeIntent: intent,
|
|
@@ -18841,6 +18987,13 @@ var IconButtonLabel = index$9(Typography.Body)(function (_ref5) {
|
|
|
18841
18987
|
marginLeft: theme.__hd__.toolbar.space.iconButtonLabelMarginLeft
|
|
18842
18988
|
};
|
|
18843
18989
|
});
|
|
18990
|
+
var StyledLabel = index$9(Typography.Body)(function (_ref6) {
|
|
18991
|
+
var theme = _ref6.theme,
|
|
18992
|
+
intent = _ref6.intent;
|
|
18993
|
+
return {
|
|
18994
|
+
color: intent === 'secondary' ? theme.__hd__.toolbar.colors.secondary : theme.__hd__.typography.colors[intent]
|
|
18995
|
+
};
|
|
18996
|
+
});
|
|
18844
18997
|
|
|
18845
18998
|
var IconItem = function IconItem(_ref) {
|
|
18846
18999
|
var icon = _ref.icon,
|
|
@@ -18875,7 +19028,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
18875
19028
|
});
|
|
18876
19029
|
}
|
|
18877
19030
|
if (label) {
|
|
18878
|
-
return /*#__PURE__*/React__namespace.default.createElement(
|
|
19031
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledLabel, {
|
|
18879
19032
|
variant: "regular-bold",
|
|
18880
19033
|
intent: disabled ? 'disabled' : intent,
|
|
18881
19034
|
allowFontScaling: false,
|
|
@@ -18930,10 +19083,10 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
18930
19083
|
}));
|
|
18931
19084
|
};
|
|
18932
19085
|
|
|
18933
|
-
var _excluded$
|
|
19086
|
+
var _excluded$6 = ["children"];
|
|
18934
19087
|
var Toolbar = function Toolbar(_ref) {
|
|
18935
19088
|
var children = _ref.children,
|
|
18936
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19089
|
+
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
18937
19090
|
return /*#__PURE__*/React__namespace.default.createElement(ToolbarWrapper, rest, children);
|
|
18938
19091
|
};
|
|
18939
19092
|
var index$1 = Object.assign(Toolbar, {
|
|
@@ -18952,7 +19105,7 @@ var StyledIconWrapper = index$9(AnimatedBox)(function (_ref) {
|
|
|
18952
19105
|
};
|
|
18953
19106
|
});
|
|
18954
19107
|
|
|
18955
|
-
var _excluded$
|
|
19108
|
+
var _excluded$5 = ["options", "value", "onChange", "readonly", "disabled"];
|
|
18956
19109
|
var Rate = function Rate(_ref) {
|
|
18957
19110
|
var options = _ref.options,
|
|
18958
19111
|
value = _ref.value,
|
|
@@ -18961,7 +19114,7 @@ var Rate = function Rate(_ref) {
|
|
|
18961
19114
|
readonly = _ref$readonly === void 0 ? false : _ref$readonly,
|
|
18962
19115
|
_ref$disabled = _ref.disabled,
|
|
18963
19116
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
18964
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
19117
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
18965
19118
|
var valueIndex = React.useMemo(function () {
|
|
18966
19119
|
return options.findIndex(function (item) {
|
|
18967
19120
|
return item.value === value;
|
|
@@ -36352,30 +36505,30 @@ function AnimatedScroller(_ref) {
|
|
|
36352
36505
|
}));
|
|
36353
36506
|
}
|
|
36354
36507
|
|
|
36355
|
-
var _excluded$
|
|
36508
|
+
var _excluded$4 = ["fabProps"];
|
|
36356
36509
|
var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
|
|
36357
36510
|
var fabProps = _ref.fabProps,
|
|
36358
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
36511
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
36359
36512
|
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
36360
36513
|
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.ScrollView, props),
|
|
36361
36514
|
fabProps: fabProps
|
|
36362
36515
|
});
|
|
36363
36516
|
};
|
|
36364
36517
|
|
|
36365
|
-
var _excluded$
|
|
36518
|
+
var _excluded$3 = ["fabProps"];
|
|
36366
36519
|
function FlatListWithFAB(_ref) {
|
|
36367
36520
|
var fabProps = _ref.fabProps,
|
|
36368
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
36521
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
36369
36522
|
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
36370
36523
|
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, props),
|
|
36371
36524
|
fabProps: fabProps
|
|
36372
36525
|
});
|
|
36373
36526
|
}
|
|
36374
36527
|
|
|
36375
|
-
var _excluded$
|
|
36528
|
+
var _excluded$2 = ["fabProps"];
|
|
36376
36529
|
function SectionListWithFAB(_ref) {
|
|
36377
36530
|
var fabProps = _ref.fabProps,
|
|
36378
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
36531
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
36379
36532
|
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
36380
36533
|
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.SectionList, props),
|
|
36381
36534
|
fabProps: fabProps
|
|
@@ -36387,20 +36540,30 @@ var StyledContainer = index$9(reactNative.View)(function () {
|
|
|
36387
36540
|
width: '100%'
|
|
36388
36541
|
};
|
|
36389
36542
|
});
|
|
36543
|
+
var getBorderWidth = function getBorderWidth(theme, themeFocused, themeVariant) {
|
|
36544
|
+
return themeFocused ? theme.__hd__.search.borderWidths.container[themeVariant].focused : theme.__hd__.search.borderWidths.container[themeVariant].normal;
|
|
36545
|
+
};
|
|
36390
36546
|
var StyledInputContainer = index$9(reactNative.View)(function (_ref) {
|
|
36391
36547
|
var theme = _ref.theme,
|
|
36392
|
-
themeFocused = _ref.themeFocused
|
|
36393
|
-
|
|
36548
|
+
themeFocused = _ref.themeFocused,
|
|
36549
|
+
themeVariant = _ref.themeVariant;
|
|
36550
|
+
var borderWidth = getBorderWidth(theme, themeFocused, themeVariant);
|
|
36551
|
+
return _objectSpread2({
|
|
36394
36552
|
flexDirection: 'row',
|
|
36395
36553
|
alignItems: 'center',
|
|
36396
|
-
paddingHorizontal: theme.__hd__.search.space.containerHorizontalPadding,
|
|
36397
|
-
paddingVertical: theme.__hd__.search.space.containerVerticalPadding,
|
|
36398
|
-
backgroundColor: theme.__hd__.search.colors.containerBackground,
|
|
36554
|
+
paddingHorizontal: theme.__hd__.search.space.containerHorizontalPadding - borderWidth,
|
|
36555
|
+
paddingVertical: theme.__hd__.search.space.containerVerticalPadding - borderWidth,
|
|
36556
|
+
backgroundColor: theme.__hd__.search.colors[themeVariant].containerBackground,
|
|
36399
36557
|
height: 56,
|
|
36400
36558
|
borderRadius: theme.__hd__.search.radii.container,
|
|
36401
|
-
borderWidth:
|
|
36402
|
-
borderColor: themeFocused ? theme.__hd__.search.colors.
|
|
36403
|
-
}
|
|
36559
|
+
borderWidth: borderWidth,
|
|
36560
|
+
borderColor: themeFocused ? theme.__hd__.search.colors[themeVariant].focusedBorder : theme.__hd__.search.colors[themeVariant].border
|
|
36561
|
+
}, themeVariant === 'reversed' && {
|
|
36562
|
+
elevation: theme.__hd__.search.shadows.elevation,
|
|
36563
|
+
shadowOffset: theme.__hd__.search.shadows.offset,
|
|
36564
|
+
shadowOpacity: theme.__hd__.search.shadows.opacity,
|
|
36565
|
+
shadowRadius: theme.__hd__.search.shadows.radius
|
|
36566
|
+
});
|
|
36404
36567
|
});
|
|
36405
36568
|
var StyledAffixContainer = index$9(reactNative.View)(function (_ref2) {
|
|
36406
36569
|
var theme = _ref2.theme;
|
|
@@ -36416,7 +36579,7 @@ var StyledSuffixContainer = index$9(reactNative.View)(function (_ref3) {
|
|
|
36416
36579
|
alignItems: 'center',
|
|
36417
36580
|
width: theme.__hd__.search.sizes.surfixSize,
|
|
36418
36581
|
height: theme.__hd__.search.sizes.surfixSize,
|
|
36419
|
-
backgroundColor: theme.__hd__.search.colors.
|
|
36582
|
+
backgroundColor: theme.__hd__.search.colors.suffixBackground,
|
|
36420
36583
|
borderRadius: theme.__hd__.search.radii.surfix
|
|
36421
36584
|
};
|
|
36422
36585
|
});
|
|
@@ -36442,7 +36605,8 @@ var StyledHandlerContainer = index$9(reactNative.View)(function (_ref5) {
|
|
|
36442
36605
|
alignItems: 'flex-start',
|
|
36443
36606
|
flexGrow: 1,
|
|
36444
36607
|
height: '100%',
|
|
36445
|
-
marginHorizontal: theme.__hd__.search.space.inputHorizontalMargin
|
|
36608
|
+
marginHorizontal: theme.__hd__.search.space.inputHorizontalMargin,
|
|
36609
|
+
paddingVertical: theme.__hd__.search.space.inputVerticalPadding
|
|
36446
36610
|
};
|
|
36447
36611
|
});
|
|
36448
36612
|
var StyledBadge = index$9(Badge$1)(function (_ref6) {
|
|
@@ -36481,12 +36645,15 @@ var SearchTwoLine = function SearchTwoLine(props) {
|
|
|
36481
36645
|
style = props.style,
|
|
36482
36646
|
label = props.label,
|
|
36483
36647
|
content = props.content,
|
|
36484
|
-
testID = props.testID
|
|
36648
|
+
testID = props.testID,
|
|
36649
|
+
_props$variant = props.variant,
|
|
36650
|
+
variant = _props$variant === void 0 ? 'basic' : _props$variant;
|
|
36485
36651
|
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer, {
|
|
36486
36652
|
style: style,
|
|
36487
36653
|
testID: testID
|
|
36488
36654
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledInputContainer, {
|
|
36489
|
-
themeFocused: false
|
|
36655
|
+
themeFocused: false,
|
|
36656
|
+
themeVariant: variant
|
|
36490
36657
|
}, renderPrefix({
|
|
36491
36658
|
prefix: prefix
|
|
36492
36659
|
}), /*#__PURE__*/React__namespace.default.createElement(StyledHandlerContainer, null, /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
|
|
@@ -36496,7 +36663,7 @@ var SearchTwoLine = function SearchTwoLine(props) {
|
|
|
36496
36663
|
})));
|
|
36497
36664
|
};
|
|
36498
36665
|
|
|
36499
|
-
var _excluded = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID"];
|
|
36666
|
+
var _excluded$1 = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID", "variant"];
|
|
36500
36667
|
var getState = function getState(_ref) {
|
|
36501
36668
|
var disabled = _ref.disabled,
|
|
36502
36669
|
editable = _ref.editable,
|
|
@@ -36536,7 +36703,9 @@ var SearchOneLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
36536
36703
|
_props$disabled = props.disabled,
|
|
36537
36704
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
36538
36705
|
testID = props.testID,
|
|
36539
|
-
|
|
36706
|
+
_props$variant = props.variant,
|
|
36707
|
+
variant = _props$variant === void 0 ? 'basic' : _props$variant,
|
|
36708
|
+
nativeProps = _objectWithoutProperties(props, _excluded$1);
|
|
36540
36709
|
var _React$useState = React__namespace.default.useState(false),
|
|
36541
36710
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
36542
36711
|
isFocused = _React$useState2[0],
|
|
@@ -36583,7 +36752,8 @@ var SearchOneLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
36583
36752
|
testID: testID,
|
|
36584
36753
|
style: style
|
|
36585
36754
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledInputContainer, {
|
|
36586
|
-
themeFocused: isFocused
|
|
36755
|
+
themeFocused: isFocused,
|
|
36756
|
+
themeVariant: variant
|
|
36587
36757
|
}, renderPrefix({
|
|
36588
36758
|
prefix: prefix
|
|
36589
36759
|
}), renderInput({
|
|
@@ -36619,6 +36789,23 @@ var SearchOneLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
36619
36789
|
})));
|
|
36620
36790
|
});
|
|
36621
36791
|
|
|
36792
|
+
var _excluded = ["content", "icon"];
|
|
36793
|
+
var renderBadge = function renderBadge(props) {
|
|
36794
|
+
var content = props.content,
|
|
36795
|
+
icon = props.icon,
|
|
36796
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
36797
|
+
if (content) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge, _extends$1({
|
|
36798
|
+
intent: "primary",
|
|
36799
|
+
content: content,
|
|
36800
|
+
size: "small"
|
|
36801
|
+
}, rest));
|
|
36802
|
+
if (icon) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge, _extends$1({
|
|
36803
|
+
intent: "primary",
|
|
36804
|
+
icon: icon,
|
|
36805
|
+
size: "small"
|
|
36806
|
+
}, rest));
|
|
36807
|
+
return null;
|
|
36808
|
+
};
|
|
36622
36809
|
var SearchSuffixIcon = function SearchSuffixIcon(props) {
|
|
36623
36810
|
var suffix = props.suffix,
|
|
36624
36811
|
testID = props.testID,
|
|
@@ -36627,11 +36814,7 @@ var SearchSuffixIcon = function SearchSuffixIcon(props) {
|
|
|
36627
36814
|
return /*#__PURE__*/React__namespace.default.createElement(StyledSuffixContainer, {
|
|
36628
36815
|
testID: testID,
|
|
36629
36816
|
style: style
|
|
36630
|
-
}, !!badge &&
|
|
36631
|
-
intent: "primary"
|
|
36632
|
-
}, badge, {
|
|
36633
|
-
size: "small"
|
|
36634
|
-
})), renderSuffix({
|
|
36817
|
+
}, !!badge && renderBadge(badge), renderSuffix({
|
|
36635
36818
|
suffix: suffix
|
|
36636
36819
|
}));
|
|
36637
36820
|
};
|