@hero-design/rn 8.33.1 → 8.33.2
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 +1 -1
- package/es/index.js +187 -208
- package/lib/index.js +187 -208
- package/package.json +7 -7
- package/src/components/Accordion/AccordionItem.tsx +1 -3
- package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +26 -34
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +36 -48
- package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -39
- package/src/components/Alert/__tests__/index.spec.tsx +8 -2
- package/src/components/Alert/index.tsx +2 -2
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Attachment/index.tsx +3 -1
- package/src/components/Badge/StyledBadge.tsx +1 -4
- package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +18 -48
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -3
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -12
- package/src/components/BottomNavigation/index.tsx +0 -1
- package/src/components/BottomSheet/Header.tsx +1 -3
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Button/Button.tsx +34 -11
- package/src/components/Button/StyledButton.tsx +45 -38
- package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -14
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +66 -90
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +56 -86
- package/src/components/Calendar/CalendarRowItem.tsx +5 -2
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +10 -15
- package/src/components/Calendar/index.tsx +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +12 -18
- package/src/components/Card/__tests__/index.spec.tsx +1 -1
- package/src/components/Carousel/CarouselItem.tsx +4 -4
- package/src/components/Carousel/StyledCarousel.tsx +1 -4
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +24 -20
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +99 -165
- package/src/components/Checkbox/StyledCheckbox.tsx +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -29
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +124 -17
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
- package/src/components/ContentNavigator/index.tsx +30 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -18
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -18
- package/src/components/Empty/StyledEmpty.tsx +2 -6
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +22 -36
- package/src/components/Empty/index.tsx +4 -2
- package/src/components/Error/StyledError.tsx +2 -8
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +44 -76
- package/src/components/Error/index.tsx +6 -2
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -4
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +54 -116
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/StyledFAB.tsx +1 -4
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +1 -1
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -8
- package/src/components/List/BasicListItem.tsx +2 -6
- package/src/components/List/ListItem.tsx +3 -5
- package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -10
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +23 -37
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +8 -12
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +8 -12
- package/src/components/PageControl/index.tsx +0 -1
- package/src/components/PinInput/PinCell.tsx +3 -1
- package/src/components/PinInput/StyledPinInput.tsx +2 -7
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +25 -45
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +18 -34
- package/src/components/Progress/ProgressCircle.tsx +1 -3
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -6
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -4
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -6
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -9
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +16 -24
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/SectionHeading/__tests__/index.spec.tsx +3 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +86 -130
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -10
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +49 -79
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
- package/src/components/Success/StyledSuccess.tsx +2 -6
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +40 -64
- package/src/components/Success/index.tsx +3 -1
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +6 -9
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Swipeable/__tests__/index.spec.tsx +6 -4
- package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
- package/src/components/Tabs/ScrollableTabsHeader.tsx +3 -3
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +4 -4
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +6 -9
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +33 -60
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +7 -13
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -8
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +45 -81
- package/src/components/Tabs/index.tsx +3 -3
- package/src/components/Tag/StyledTag.tsx +1 -4
- package/src/components/Tag/__tests__/Tag.spec.tsx +5 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +47 -93
- package/src/components/Tag/index.tsx +5 -1
- package/src/components/TextInput/StyledTextInput.tsx +8 -16
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +72 -134
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +145 -257
- package/src/components/TextInput/index.tsx +2 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -23
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +21 -35
- package/src/components/Toast/Toast.tsx +6 -5
- package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +26 -39
- package/src/components/Toolbar/StyledToolbar.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +4 -6
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -18
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +14 -21
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/badge.ts +15 -0
- package/src/theme/components/button.ts +16 -0
- package/src/theme/components/carousel.ts +15 -0
- package/src/theme/components/empty.ts +12 -0
- package/src/theme/components/error.ts +16 -0
- package/src/theme/components/fab.ts +11 -0
- package/src/theme/components/pinInput.ts +15 -0
- package/src/theme/components/success.ts +12 -0
- package/src/theme/components/tag.ts +16 -0
- package/src/theme/components/textInput.ts +1 -0
- package/src/theme/getTheme.ts +18 -18
- package/types/components/Badge/StyledBadge.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +12 -5
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
- package/types/components/Carousel/StyledCarousel.d.ts +1 -1
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -5
- package/types/components/Empty/StyledEmpty.d.ts +2 -2
- package/types/components/Error/StyledError.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -1
- package/types/components/FAB/StyledFAB.d.ts +1 -1
- package/types/components/PinInput/StyledPinInput.d.ts +2 -2
- package/types/components/Success/StyledSuccess.d.ts +2 -2
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +7 -10
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
- package/types/theme/components/badge.d.ts +15 -0
- package/types/theme/components/button.d.ts +14 -0
- package/types/theme/components/carousel.d.ts +15 -0
- package/types/theme/components/empty.d.ts +11 -0
- package/types/theme/components/error.d.ts +15 -0
- package/types/theme/components/fab.d.ts +11 -0
- package/types/theme/components/pinInput.d.ts +15 -0
- package/types/theme/components/success.d.ts +11 -0
- package/types/theme/components/tag.d.ts +15 -0
- package/types/theme/components/textInput.d.ts +1 -0
- package/types/theme/getTheme.d.ts +18 -18
package/es/index.js
CHANGED
|
@@ -1973,7 +1973,11 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
1973
1973
|
textDanger: theme.colors.errorSurface
|
|
1974
1974
|
}
|
|
1975
1975
|
};
|
|
1976
|
+
var lineHeights = {
|
|
1977
|
+
titleOfTextVariant: theme.lineHeights.medium
|
|
1978
|
+
};
|
|
1976
1979
|
return {
|
|
1980
|
+
lineHeights: lineHeights,
|
|
1977
1981
|
borderWidth: borderWidth,
|
|
1978
1982
|
fonts: fonts,
|
|
1979
1983
|
fontSize: fontSize,
|
|
@@ -2960,7 +2964,8 @@ var getTextInputTheme = function getTextInputTheme(theme) {
|
|
|
2960
2964
|
maxLengthLabelMarginLeft: theme.space.xsmall,
|
|
2961
2965
|
errorAndHelpTextContainerPaddingLeft: theme.space.medium,
|
|
2962
2966
|
containerMarginTop: theme.space.small,
|
|
2963
|
-
labelInsideTextInputMarginTop: -theme.space.xxsmall
|
|
2967
|
+
labelInsideTextInputMarginTop: -theme.space.xxsmall,
|
|
2968
|
+
errorAndHelpTextContainerPaddingTop: theme.space.xxsmall
|
|
2964
2969
|
};
|
|
2965
2970
|
var fonts = {
|
|
2966
2971
|
text: theme.fonts.neutral.regular
|
|
@@ -7118,9 +7123,8 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7118
7123
|
testID: testID
|
|
7119
7124
|
}, /*#__PURE__*/React.createElement(StyledHeaderWrapper$1, {
|
|
7120
7125
|
onPress: onPress
|
|
7121
|
-
}, typeof header === 'string' ? /*#__PURE__*/React.createElement(Typography.
|
|
7122
|
-
|
|
7123
|
-
fontWeight: "semi-bold"
|
|
7126
|
+
}, typeof header === 'string' ? /*#__PURE__*/React.createElement(Typography.Body, {
|
|
7127
|
+
variant: "regular-bold"
|
|
7124
7128
|
}, header) : header, /*#__PURE__*/React.createElement(Icon, {
|
|
7125
7129
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
7126
7130
|
intent: "secondary",
|
|
@@ -7256,9 +7260,11 @@ var Alert = function Alert(_ref2) {
|
|
|
7256
7260
|
showDivider: !!onClose
|
|
7257
7261
|
}, icon !== null ? /*#__PURE__*/React.createElement(AlertIcon, {
|
|
7258
7262
|
icon: icon || getIntentIcon$1(intent)
|
|
7259
|
-
}) : null, /*#__PURE__*/React.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.
|
|
7260
|
-
|
|
7261
|
-
}, title) : title, typeof content === 'string' ? /*#__PURE__*/React.createElement(Typography.
|
|
7263
|
+
}) : null, /*#__PURE__*/React.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.Body, {
|
|
7264
|
+
variant: "small-bold"
|
|
7265
|
+
}, title) : title, typeof content === 'string' ? /*#__PURE__*/React.createElement(Typography.Body, {
|
|
7266
|
+
variant: "small"
|
|
7267
|
+
}, content) : content)), onClose ? /*#__PURE__*/React.createElement(CTAWrapper$1, {
|
|
7262
7268
|
onPress: onClose,
|
|
7263
7269
|
testID: "alert-close-icon"
|
|
7264
7270
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -7316,7 +7322,8 @@ var Attachment = function Attachment(_ref) {
|
|
|
7316
7322
|
themeHighlighted: backgroundHighlighted
|
|
7317
7323
|
}, previewElement, filename ? /*#__PURE__*/React.createElement(StyledTextContainer, {
|
|
7318
7324
|
testID: "attachment-content"
|
|
7319
|
-
}, /*#__PURE__*/React.createElement(Typography.
|
|
7325
|
+
}, /*#__PURE__*/React.createElement(Typography.Body, {
|
|
7326
|
+
variant: "small",
|
|
7320
7327
|
numberOfLines: 1
|
|
7321
7328
|
}, filename)) : null), onDownload ? /*#__PURE__*/React.createElement(StyledCTAWrapper, {
|
|
7322
7329
|
onPress: onDownload,
|
|
@@ -7523,12 +7530,9 @@ var StyledView$2 = index$a(Animated.View)(function (_ref) {
|
|
|
7523
7530
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
7524
7531
|
};
|
|
7525
7532
|
});
|
|
7526
|
-
var StyledText$1 = index$a(Typography.
|
|
7533
|
+
var StyledText$1 = index$a(Typography.Caption)(function (_ref2) {
|
|
7527
7534
|
var theme = _ref2.theme;
|
|
7528
7535
|
return {
|
|
7529
|
-
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
7530
|
-
fontSize: theme.__hd__.badge.fontSizes["default"],
|
|
7531
|
-
lineHeight: theme.__hd__.badge.lineHeights["default"],
|
|
7532
7536
|
color: theme.__hd__.badge.colors.text,
|
|
7533
7537
|
includeFontPadding: false,
|
|
7534
7538
|
textAlignVertical: 'center',
|
|
@@ -7686,7 +7690,7 @@ var BottomBarItem = index$a(View)({
|
|
|
7686
7690
|
flex: 1,
|
|
7687
7691
|
alignItems: 'center'
|
|
7688
7692
|
});
|
|
7689
|
-
var StyledBottomBarText = index$a(Typography.
|
|
7693
|
+
var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
|
|
7690
7694
|
var theme = _ref3.theme;
|
|
7691
7695
|
return {
|
|
7692
7696
|
marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
|
|
@@ -7781,7 +7785,6 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
7781
7785
|
intent: active ? 'primary' : 'text',
|
|
7782
7786
|
testID: "hero-icon-".concat(icon)
|
|
7783
7787
|
}), !!title && /*#__PURE__*/React.createElement(StyledBottomBarText, {
|
|
7784
|
-
fontSize: "small",
|
|
7785
7788
|
fontWeight: "semi-bold",
|
|
7786
7789
|
intent: active ? 'primary' : 'body',
|
|
7787
7790
|
numberOfLines: 1
|
|
@@ -8050,43 +8053,33 @@ var genOutlineContainerStyles = function genOutlineContainerStyles(theme, intent
|
|
|
8050
8053
|
}, borderColorStyling());
|
|
8051
8054
|
};
|
|
8052
8055
|
var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, disabled) {
|
|
8053
|
-
|
|
8054
|
-
if (disabled) {
|
|
8055
|
-
return {
|
|
8056
|
-
color: theme.__hd__.button.colors.disabledText
|
|
8057
|
-
};
|
|
8058
|
-
}
|
|
8056
|
+
if (disabled) {
|
|
8059
8057
|
return {
|
|
8060
|
-
color: theme.__hd__.button.colors
|
|
8058
|
+
color: theme.__hd__.button.colors.disabledText
|
|
8061
8059
|
};
|
|
8060
|
+
}
|
|
8061
|
+
return {
|
|
8062
|
+
color: theme.__hd__.button.colors[intent]
|
|
8062
8063
|
};
|
|
8063
|
-
return _objectSpread2({
|
|
8064
|
-
fontSize: theme.__hd__.button.fontSize["default"]
|
|
8065
|
-
}, textColorStyling());
|
|
8066
8064
|
};
|
|
8067
8065
|
var genTextVariantTextStyles = function genTextVariantTextStyles(theme, intent, disabled) {
|
|
8068
|
-
|
|
8069
|
-
if (disabled) {
|
|
8070
|
-
return {
|
|
8071
|
-
color: theme.__hd__.button.colors.disabledText
|
|
8072
|
-
};
|
|
8073
|
-
}
|
|
8066
|
+
if (disabled) {
|
|
8074
8067
|
return {
|
|
8075
|
-
color: theme.__hd__.button.colors
|
|
8068
|
+
color: theme.__hd__.button.colors.disabledText
|
|
8076
8069
|
};
|
|
8070
|
+
}
|
|
8071
|
+
return {
|
|
8072
|
+
color: theme.__hd__.button.colors[intent]
|
|
8077
8073
|
};
|
|
8078
|
-
return _objectSpread2({
|
|
8079
|
-
fontSize: theme.__hd__.button.fontSize.textVariant
|
|
8080
|
-
}, textColorStyling());
|
|
8081
8074
|
};
|
|
8082
8075
|
var StyledButtonContainer = index$a(TouchableHighlight)(function (_ref) {
|
|
8083
8076
|
var _ref$disabled = _ref.disabled,
|
|
8084
8077
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
8085
8078
|
_ref$loading = _ref.loading,
|
|
8086
8079
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
8087
|
-
|
|
8080
|
+
themeButtonVariant = _ref.themeButtonVariant,
|
|
8088
8081
|
theme = _ref.theme;
|
|
8089
|
-
switch (
|
|
8082
|
+
switch (themeButtonVariant) {
|
|
8090
8083
|
case 'filled-primary':
|
|
8091
8084
|
return genFilledContainerStyles(theme, 'primary', disabled, loading);
|
|
8092
8085
|
case 'filled-secondary':
|
|
@@ -8113,17 +8106,16 @@ var StyledButtonContainer = index$a(TouchableHighlight)(function (_ref) {
|
|
|
8113
8106
|
};
|
|
8114
8107
|
}
|
|
8115
8108
|
});
|
|
8116
|
-
var StyledButtonText = index$a(Typography.
|
|
8109
|
+
var StyledButtonText = index$a(Typography.Title)(function (_ref2) {
|
|
8117
8110
|
var disabled = _ref2.disabled,
|
|
8118
|
-
|
|
8111
|
+
themeButtonVariant = _ref2.themeButtonVariant,
|
|
8119
8112
|
theme = _ref2.theme;
|
|
8120
8113
|
var themeStyling = function themeStyling() {
|
|
8121
|
-
switch (
|
|
8114
|
+
switch (themeButtonVariant) {
|
|
8122
8115
|
case 'filled-primary':
|
|
8123
8116
|
case 'filled-secondary':
|
|
8124
8117
|
case 'filled-danger':
|
|
8125
8118
|
return {
|
|
8126
|
-
fontSize: theme.__hd__.button.fontSize["default"],
|
|
8127
8119
|
color: theme.__hd__.button.colors.invertedText
|
|
8128
8120
|
};
|
|
8129
8121
|
case 'outlined-primary':
|
|
@@ -8142,13 +8134,32 @@ var StyledButtonText = index$a(Typography.Text)(function (_ref2) {
|
|
|
8142
8134
|
};
|
|
8143
8135
|
return _objectSpread2({
|
|
8144
8136
|
flexShrink: 1,
|
|
8145
|
-
textAlign: 'center'
|
|
8146
|
-
fontFamily: theme.__hd__.button.fonts["default"]
|
|
8137
|
+
textAlign: 'center'
|
|
8147
8138
|
}, themeStyling());
|
|
8148
8139
|
});
|
|
8149
|
-
var
|
|
8150
|
-
var
|
|
8140
|
+
var StyledButtonTitleOfVariantText = index$a(Typography.Body)(function (_ref3) {
|
|
8141
|
+
var disabled = _ref3.disabled,
|
|
8142
|
+
themeButtonVariant = _ref3.themeButtonVariant,
|
|
8151
8143
|
theme = _ref3.theme;
|
|
8144
|
+
var themeStyling = function themeStyling() {
|
|
8145
|
+
switch (themeButtonVariant) {
|
|
8146
|
+
case 'text-primary':
|
|
8147
|
+
return genTextVariantTextStyles(theme, 'primary', disabled);
|
|
8148
|
+
case 'text-secondary':
|
|
8149
|
+
return genTextVariantTextStyles(theme, 'secondary', disabled);
|
|
8150
|
+
case 'text-danger':
|
|
8151
|
+
return genTextVariantTextStyles(theme, 'danger', disabled);
|
|
8152
|
+
}
|
|
8153
|
+
};
|
|
8154
|
+
return _objectSpread2({
|
|
8155
|
+
flexShrink: 1,
|
|
8156
|
+
lineHeight: theme.__hd__.button.lineHeights.titleOfTextVariant,
|
|
8157
|
+
textAlign: 'center'
|
|
8158
|
+
}, themeStyling());
|
|
8159
|
+
});
|
|
8160
|
+
var StyledButtonIconWrapper = index$a(View)(function (_ref4) {
|
|
8161
|
+
var themePosition = _ref4.themePosition,
|
|
8162
|
+
theme = _ref4.theme;
|
|
8152
8163
|
switch (themePosition) {
|
|
8153
8164
|
case 'left':
|
|
8154
8165
|
return {
|
|
@@ -8160,12 +8171,12 @@ var StyledButtonIconWrapper = index$a(View)(function (_ref3) {
|
|
|
8160
8171
|
};
|
|
8161
8172
|
}
|
|
8162
8173
|
});
|
|
8163
|
-
var StyledButtonIcon = index$a(Icon)(function (
|
|
8164
|
-
var disabled =
|
|
8165
|
-
|
|
8166
|
-
theme =
|
|
8174
|
+
var StyledButtonIcon = index$a(Icon)(function (_ref5) {
|
|
8175
|
+
var disabled = _ref5.disabled,
|
|
8176
|
+
themeButtonVariant = _ref5.themeButtonVariant,
|
|
8177
|
+
theme = _ref5.theme;
|
|
8167
8178
|
var themeStyling = function themeStyling() {
|
|
8168
|
-
switch (
|
|
8179
|
+
switch (themeButtonVariant) {
|
|
8169
8180
|
case 'filled-primary':
|
|
8170
8181
|
case 'filled-secondary':
|
|
8171
8182
|
case 'filled-danger':
|
|
@@ -8239,6 +8250,9 @@ var getUnderlayColor = function getUnderlayColor(theme, themeVariant) {
|
|
|
8239
8250
|
}
|
|
8240
8251
|
};
|
|
8241
8252
|
var deprecatedVariants = ['filled-secondary', 'filled-danger', 'outlined-secondary', 'outlined-danger'];
|
|
8253
|
+
function isTextVariant(themeVariant) {
|
|
8254
|
+
return ['text-primary', 'text-secondary', 'text-danger'].includes(themeVariant);
|
|
8255
|
+
}
|
|
8242
8256
|
var Button = function Button(_ref) {
|
|
8243
8257
|
var accessibilityHint = _ref.accessibilityHint,
|
|
8244
8258
|
accessibilityLabel = _ref.accessibilityLabel,
|
|
@@ -8269,7 +8283,7 @@ var Button = function Button(_ref) {
|
|
|
8269
8283
|
loading: loading,
|
|
8270
8284
|
onPress: onPress,
|
|
8271
8285
|
testID: testID,
|
|
8272
|
-
|
|
8286
|
+
themeButtonVariant: themeVariant,
|
|
8273
8287
|
style: style,
|
|
8274
8288
|
underlayColor: underlayColor
|
|
8275
8289
|
}, loading === true ? /*#__PURE__*/React.createElement(LoadingIndicator, {
|
|
@@ -8281,19 +8295,26 @@ var Button = function Button(_ref) {
|
|
|
8281
8295
|
disabled: disabled,
|
|
8282
8296
|
icon: icon,
|
|
8283
8297
|
testID: "".concat(testID, "-left-icon"),
|
|
8284
|
-
|
|
8285
|
-
})), /*#__PURE__*/React.createElement(
|
|
8298
|
+
themeButtonVariant: themeVariant
|
|
8299
|
+
})), isTextVariant(themeVariant) ? /*#__PURE__*/React.createElement(StyledButtonTitleOfVariantText, {
|
|
8300
|
+
variant: "regular-bold",
|
|
8286
8301
|
ellipsizeMode: "tail",
|
|
8287
8302
|
numberOfLines: 1,
|
|
8288
8303
|
disabled: disabled,
|
|
8289
|
-
|
|
8304
|
+
themeButtonVariant: themeVariant
|
|
8305
|
+
}, text) : /*#__PURE__*/React.createElement(StyledButtonText, {
|
|
8306
|
+
level: "h5",
|
|
8307
|
+
ellipsizeMode: "tail",
|
|
8308
|
+
numberOfLines: 1,
|
|
8309
|
+
disabled: disabled,
|
|
8310
|
+
themeButtonVariant: themeVariant
|
|
8290
8311
|
}, text), rightIcon !== undefined && /*#__PURE__*/React.createElement(StyledButtonIconWrapper, {
|
|
8291
8312
|
themePosition: "right"
|
|
8292
8313
|
}, /*#__PURE__*/React.createElement(StyledButtonIcon, {
|
|
8293
8314
|
disabled: disabled,
|
|
8294
8315
|
icon: rightIcon,
|
|
8295
8316
|
testID: "".concat(testID, "-right-icon"),
|
|
8296
|
-
|
|
8317
|
+
themeButtonVariant: themeVariant
|
|
8297
8318
|
}))));
|
|
8298
8319
|
};
|
|
8299
8320
|
|
|
@@ -8337,14 +8358,9 @@ var IconWrapper = index$a(View)(function (_ref2) {
|
|
|
8337
8358
|
paddingRight: theme.__hd__.button.space.iconPadding
|
|
8338
8359
|
};
|
|
8339
8360
|
});
|
|
8340
|
-
var ButtonText = index$a(Typography.
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
flexShrink: 1,
|
|
8344
|
-
textAlign: 'center',
|
|
8345
|
-
fontSize: theme.__hd__.button.fontSize.utility,
|
|
8346
|
-
fontFamily: theme.__hd__.button.fonts.utility
|
|
8347
|
-
};
|
|
8361
|
+
var ButtonText = index$a(Typography.Body)({
|
|
8362
|
+
flexShrink: 1,
|
|
8363
|
+
textAlign: 'center'
|
|
8348
8364
|
});
|
|
8349
8365
|
|
|
8350
8366
|
var TEXT_INTENTS = {
|
|
@@ -8387,9 +8403,8 @@ var Header = function Header(_ref) {
|
|
|
8387
8403
|
_ref$onRequestClose = _ref.onRequestClose,
|
|
8388
8404
|
onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
|
|
8389
8405
|
showCloseButton = _ref.showCloseButton;
|
|
8390
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React.createElement(StyledHeader, null, /*#__PURE__*/React.createElement(Typography.
|
|
8391
|
-
|
|
8392
|
-
fontWeight: "semi-bold"
|
|
8406
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React.createElement(StyledHeader, null, /*#__PURE__*/React.createElement(Typography.Body, {
|
|
8407
|
+
variant: "regular-bold"
|
|
8393
8408
|
}, content)) : /*#__PURE__*/React.createElement(View, {
|
|
8394
8409
|
style: {
|
|
8395
8410
|
flex: 1
|
|
@@ -11045,12 +11060,6 @@ var Wrapper = index$a(View)(function () {
|
|
|
11045
11060
|
justifyContent: 'space-between'
|
|
11046
11061
|
};
|
|
11047
11062
|
});
|
|
11048
|
-
var Value = index$a(Typography.Text)(function (_ref) {
|
|
11049
|
-
var theme = _ref.theme;
|
|
11050
|
-
return {
|
|
11051
|
-
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11052
|
-
};
|
|
11053
|
-
});
|
|
11054
11063
|
|
|
11055
11064
|
function ContentNavigator(_ref) {
|
|
11056
11065
|
var onPreviousPress = _ref.onPreviousPress,
|
|
@@ -11065,6 +11074,7 @@ function ContentNavigator(_ref) {
|
|
|
11065
11074
|
fontSize = _ref$fontSize === void 0 ? 'medium' : _ref$fontSize,
|
|
11066
11075
|
testID = _ref.testID,
|
|
11067
11076
|
style = _ref.style;
|
|
11077
|
+
var theme = useTheme();
|
|
11068
11078
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
11069
11079
|
testID: testID,
|
|
11070
11080
|
style: style
|
|
@@ -11073,9 +11083,18 @@ function ContentNavigator(_ref) {
|
|
|
11073
11083
|
onPress: onPreviousPress,
|
|
11074
11084
|
disabled: previousDisabled,
|
|
11075
11085
|
testID: "previous-icon-button"
|
|
11076
|
-
}), /*#__PURE__*/React.createElement(
|
|
11077
|
-
|
|
11078
|
-
|
|
11086
|
+
}), fontSize === 'medium' ? /*#__PURE__*/React.createElement(Typography.Body, {
|
|
11087
|
+
style: {
|
|
11088
|
+
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11089
|
+
},
|
|
11090
|
+
variant: "small-bold",
|
|
11091
|
+
onPress: onPress,
|
|
11092
|
+
testID: "content-navigator-value"
|
|
11093
|
+
}, value) : /*#__PURE__*/React.createElement(Typography.Title, {
|
|
11094
|
+
style: {
|
|
11095
|
+
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11096
|
+
},
|
|
11097
|
+
level: "h5",
|
|
11079
11098
|
onPress: onPress,
|
|
11080
11099
|
testID: "content-navigator-value"
|
|
11081
11100
|
}, value), /*#__PURE__*/React.createElement(CompoundButton.Icon, {
|
|
@@ -11186,7 +11205,8 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
|
|
|
11186
11205
|
}, /*#__PURE__*/React.createElement(StyledCalendarCell, {
|
|
11187
11206
|
variant: getCellVariant(isSelected, isCurrent),
|
|
11188
11207
|
onPress: onPress
|
|
11189
|
-
}, /*#__PURE__*/React.createElement(Typography.
|
|
11208
|
+
}, /*#__PURE__*/React.createElement(Typography.Body, {
|
|
11209
|
+
variant: "small",
|
|
11190
11210
|
intent: isSelected ? 'inverted' : textIntent
|
|
11191
11211
|
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/React.createElement(StyledMark, {
|
|
11192
11212
|
testID: "calendar-date-mark",
|
|
@@ -11283,7 +11303,9 @@ var Calendar = function Calendar(_ref) {
|
|
|
11283
11303
|
})), /*#__PURE__*/React.createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
|
|
11284
11304
|
return /*#__PURE__*/React.createElement(StyledCalendarRowItem, {
|
|
11285
11305
|
key: day
|
|
11286
|
-
}, /*#__PURE__*/React.createElement(StyledCalendarDayNameCell, null, /*#__PURE__*/React.createElement(Typography.
|
|
11306
|
+
}, /*#__PURE__*/React.createElement(StyledCalendarDayNameCell, null, /*#__PURE__*/React.createElement(Typography.Body, {
|
|
11307
|
+
variant: "small"
|
|
11308
|
+
}, day)));
|
|
11287
11309
|
})), /*#__PURE__*/React.createElement(StyledCalendarRow, null, daysOfPreviousMonth.map(function (date) {
|
|
11288
11310
|
return date ? /*#__PURE__*/React.createElement(CalendarRowItem, {
|
|
11289
11311
|
key: date.toDateString(),
|
|
@@ -11420,14 +11442,11 @@ var StyledCarouselView = index$a(View)(function () {
|
|
|
11420
11442
|
justifyContent: 'space-between'
|
|
11421
11443
|
};
|
|
11422
11444
|
});
|
|
11423
|
-
var StyledCarouselHeading = index$a(Typography.
|
|
11445
|
+
var StyledCarouselHeading = index$a(Typography.Title)(function (_ref2) {
|
|
11424
11446
|
var theme = _ref2.theme;
|
|
11425
11447
|
return {
|
|
11426
11448
|
marginTop: theme.__hd__.carousel.space.headingMarginTop,
|
|
11427
|
-
marginBottom: theme.__hd__.carousel.space.headingMarginBottom
|
|
11428
|
-
fontFamily: theme.__hd__.carousel.fonts.heading,
|
|
11429
|
-
fontSize: theme.__hd__.carousel.fontSizes.heading,
|
|
11430
|
-
lineHeight: theme.__hd__.carousel.lineHeights.heading
|
|
11449
|
+
marginBottom: theme.__hd__.carousel.space.headingMarginBottom
|
|
11431
11450
|
};
|
|
11432
11451
|
});
|
|
11433
11452
|
var StyledCarouselImage = index$a(Image)(function () {
|
|
@@ -11507,9 +11526,10 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
11507
11526
|
paddingHorizontal: "large",
|
|
11508
11527
|
marginTop: "large",
|
|
11509
11528
|
width: width
|
|
11510
|
-
}, content, /*#__PURE__*/React.createElement(StyledCarouselHeading,
|
|
11511
|
-
|
|
11512
|
-
|
|
11529
|
+
}, content, /*#__PURE__*/React.createElement(StyledCarouselHeading, {
|
|
11530
|
+
level: "h1",
|
|
11531
|
+
typeface: "playful"
|
|
11532
|
+
}, heading), body ? /*#__PURE__*/React.createElement(Typography.Body, null, body) : null));
|
|
11513
11533
|
};
|
|
11514
11534
|
|
|
11515
11535
|
/*
|
|
@@ -11908,7 +11928,7 @@ var StyledWrapper$7 = index$a(TouchableOpacity)(function (_ref) {
|
|
|
11908
11928
|
flexDirection: 'row'
|
|
11909
11929
|
}, themeWithBorder && borderStyle);
|
|
11910
11930
|
});
|
|
11911
|
-
var StyledDescription$1 = index$a(Typography.
|
|
11931
|
+
var StyledDescription$1 = index$a(Typography.Body)(function (_ref2) {
|
|
11912
11932
|
var theme = _ref2.theme;
|
|
11913
11933
|
return {
|
|
11914
11934
|
paddingRight: theme.__hd__.checkbox.space.iconDescriptionPadding,
|
|
@@ -11959,7 +11979,8 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
11959
11979
|
style: style,
|
|
11960
11980
|
testID: testID
|
|
11961
11981
|
}, !!description && /*#__PURE__*/React.createElement(StyledDescription$1, {
|
|
11962
|
-
intent: disabled ? 'subdued' : 'body'
|
|
11982
|
+
intent: disabled ? 'subdued' : 'body',
|
|
11983
|
+
variant: "small"
|
|
11963
11984
|
}, description), /*#__PURE__*/React.createElement(StyledCheckboxContainer, null, checked && /*#__PURE__*/React.createElement(StyledCheckMark, {
|
|
11964
11985
|
icon: "box-check",
|
|
11965
11986
|
intent: disabled ? 'disabled-text' : 'text',
|
|
@@ -11988,21 +12009,19 @@ var StyledLabelContainer = index$a(View)(function (_ref2) {
|
|
|
11988
12009
|
paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
|
|
11989
12010
|
};
|
|
11990
12011
|
});
|
|
11991
|
-
var StyledLabel = index$a(Typography.
|
|
12012
|
+
var StyledLabel = index$a(Typography.Caption)(function (_ref3) {
|
|
11992
12013
|
var theme = _ref3.theme,
|
|
11993
12014
|
themeState = _ref3.themeState;
|
|
11994
12015
|
return {
|
|
11995
12016
|
color: theme.__hd__.textInput.colors.labels[themeState],
|
|
11996
|
-
fontSize: theme.__hd__.textInput.fontSizes.topLabel,
|
|
11997
12017
|
lineHeight: theme.__hd__.textInput.lineHeights.topLabel
|
|
11998
12018
|
};
|
|
11999
12019
|
});
|
|
12000
|
-
var StyledAsteriskLabel = index$a(Typography.
|
|
12020
|
+
var StyledAsteriskLabel = index$a(Typography.Caption)(function (_ref4) {
|
|
12001
12021
|
var theme = _ref4.theme,
|
|
12002
12022
|
themeState = _ref4.themeState;
|
|
12003
12023
|
return {
|
|
12004
12024
|
color: theme.__hd__.textInput.colors.asterisks[themeState],
|
|
12005
|
-
fontSize: theme.__hd__.textInput.fontSizes.topLabel,
|
|
12006
12025
|
lineHeight: theme.__hd__.textInput.lineHeights.topLabel
|
|
12007
12026
|
};
|
|
12008
12027
|
});
|
|
@@ -12014,24 +12033,22 @@ var StyledLabelContainerInsideTextInput = index$a(View)(function (_ref5) {
|
|
|
12014
12033
|
alignItems: themeVariant === 'text' ? 'center' : 'flex-start'
|
|
12015
12034
|
}, StyleSheet$1.absoluteFillObject);
|
|
12016
12035
|
});
|
|
12017
|
-
var StyledLabelInsideTextInput = index$a(Typography.
|
|
12036
|
+
var StyledLabelInsideTextInput = index$a(Typography.Body)(function (_ref6) {
|
|
12018
12037
|
var theme = _ref6.theme,
|
|
12019
12038
|
themeState = _ref6.themeState;
|
|
12020
12039
|
return {
|
|
12021
12040
|
textAlignVertical: 'center',
|
|
12022
12041
|
alignContent: 'center',
|
|
12023
|
-
fontSize: theme.__hd__.textInput.fontSizes.labelInsideTextInput,
|
|
12024
12042
|
alignItems: 'center',
|
|
12025
12043
|
color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeState],
|
|
12026
12044
|
marginTop: theme.__hd__.textInput.space.labelInsideTextInputMarginTop
|
|
12027
12045
|
};
|
|
12028
12046
|
});
|
|
12029
|
-
var StyledAsteriskLabelInsideTextInput = index$a(Typography.
|
|
12047
|
+
var StyledAsteriskLabelInsideTextInput = index$a(Typography.Body)(function (_ref7) {
|
|
12030
12048
|
var theme = _ref7.theme,
|
|
12031
12049
|
themeState = _ref7.themeState;
|
|
12032
12050
|
return {
|
|
12033
|
-
color: theme.__hd__.textInput.colors.asterisks[themeState]
|
|
12034
|
-
fontSize: theme.__hd__.textInput.fontSizes.asteriskLabel
|
|
12051
|
+
color: theme.__hd__.textInput.colors.asterisks[themeState]
|
|
12035
12052
|
};
|
|
12036
12053
|
});
|
|
12037
12054
|
var StyledErrorContainer$2 = index$a(View)(function (_ref8) {
|
|
@@ -12044,20 +12061,18 @@ var StyledErrorContainer$2 = index$a(View)(function (_ref8) {
|
|
|
12044
12061
|
flexGrow: 4
|
|
12045
12062
|
};
|
|
12046
12063
|
});
|
|
12047
|
-
var StyledError = index$a(Typography.
|
|
12064
|
+
var StyledError = index$a(Typography.Caption)(function (_ref9) {
|
|
12048
12065
|
var theme = _ref9.theme;
|
|
12049
12066
|
return {
|
|
12050
12067
|
color: theme.__hd__.textInput.colors.error,
|
|
12051
|
-
fontSize: theme.__hd__.textInput.fontSizes.error,
|
|
12052
12068
|
marginLeft: theme.__hd__.textInput.space.errorMarginLeft
|
|
12053
12069
|
};
|
|
12054
12070
|
});
|
|
12055
|
-
var StyledMaxLengthMessage = index$a(Typography.
|
|
12071
|
+
var StyledMaxLengthMessage = index$a(Typography.Caption)(function (_ref10) {
|
|
12056
12072
|
var theme = _ref10.theme,
|
|
12057
12073
|
themeState = _ref10.themeState;
|
|
12058
12074
|
return {
|
|
12059
12075
|
color: theme.__hd__.textInput.colors.maxLengthLabels[themeState],
|
|
12060
|
-
fontSize: theme.__hd__.textInput.fontSizes.maxLength,
|
|
12061
12076
|
marginRight: theme.__hd__.textInput.space.maxLengthLabelMarginLeft,
|
|
12062
12077
|
alignSelf: 'flex-end',
|
|
12063
12078
|
flex: 1,
|
|
@@ -12065,15 +12080,10 @@ var StyledMaxLengthMessage = index$a(Typography.Text)(function (_ref10) {
|
|
|
12065
12080
|
textAlign: 'right'
|
|
12066
12081
|
};
|
|
12067
12082
|
});
|
|
12068
|
-
var StyledHelperText =
|
|
12069
|
-
|
|
12070
|
-
|
|
12071
|
-
|
|
12072
|
-
};
|
|
12073
|
-
});
|
|
12074
|
-
var StyledTextInput = index$a(TextInput$1)(function (_ref12) {
|
|
12075
|
-
var theme = _ref12.theme,
|
|
12076
|
-
themeVariant = _ref12.themeVariant;
|
|
12083
|
+
var StyledHelperText = Typography.Caption;
|
|
12084
|
+
var StyledTextInput = index$a(TextInput$1)(function (_ref11) {
|
|
12085
|
+
var theme = _ref11.theme,
|
|
12086
|
+
themeVariant = _ref11.themeVariant;
|
|
12077
12087
|
return {
|
|
12078
12088
|
textAlignVertical: themeVariant === 'text' ? 'center' : 'top',
|
|
12079
12089
|
fontSize: theme.__hd__.textInput.fontSizes.text,
|
|
@@ -12086,19 +12096,19 @@ var StyledTextInput = index$a(TextInput$1)(function (_ref12) {
|
|
|
12086
12096
|
fontFamily: theme.__hd__.textInput.fonts.text
|
|
12087
12097
|
};
|
|
12088
12098
|
});
|
|
12089
|
-
var StyledBorderBackDrop = index$a(View)(function (
|
|
12099
|
+
var StyledBorderBackDrop = index$a(View)(function (_ref12) {
|
|
12090
12100
|
var _theme$__hd__$textInp;
|
|
12091
|
-
var theme =
|
|
12092
|
-
themeFocused =
|
|
12093
|
-
themeState =
|
|
12101
|
+
var theme = _ref12.theme,
|
|
12102
|
+
themeFocused = _ref12.themeFocused,
|
|
12103
|
+
themeState = _ref12.themeState;
|
|
12094
12104
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
12095
12105
|
borderWidth: themeFocused ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
|
|
12096
12106
|
borderRadius: theme.__hd__.textInput.radii.container,
|
|
12097
12107
|
borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeState]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
|
|
12098
12108
|
});
|
|
12099
12109
|
});
|
|
12100
|
-
var StyledTextInputContainer = index$a(View)(function (
|
|
12101
|
-
var theme =
|
|
12110
|
+
var StyledTextInputContainer = index$a(View)(function (_ref13) {
|
|
12111
|
+
var theme = _ref13.theme;
|
|
12102
12112
|
return {
|
|
12103
12113
|
flexDirection: 'row',
|
|
12104
12114
|
alignItems: 'center',
|
|
@@ -12116,11 +12126,12 @@ var StyledTextInputAndLabelContainer = index$a(View)(function () {
|
|
|
12116
12126
|
flexShrink: 1
|
|
12117
12127
|
};
|
|
12118
12128
|
});
|
|
12119
|
-
var StyledErrorAndHelpTextContainer = index$a(View)(function (
|
|
12120
|
-
var theme =
|
|
12129
|
+
var StyledErrorAndHelpTextContainer = index$a(View)(function (_ref14) {
|
|
12130
|
+
var theme = _ref14.theme;
|
|
12121
12131
|
return {
|
|
12122
12132
|
paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft,
|
|
12123
|
-
minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerHeight
|
|
12133
|
+
minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerHeight,
|
|
12134
|
+
paddingTop: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingTop
|
|
12124
12135
|
};
|
|
12125
12136
|
});
|
|
12126
12137
|
var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
@@ -12332,7 +12343,6 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12332
12343
|
}, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabelInsideTextInput, {
|
|
12333
12344
|
nativeID: accessibilityLabelledBy,
|
|
12334
12345
|
testID: "input-label",
|
|
12335
|
-
fontSize: "medium",
|
|
12336
12346
|
themeState: state
|
|
12337
12347
|
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React.createElement(StyledTextInput, _extends$1({}, nativeInputProps, {
|
|
12338
12348
|
themeVariant: variant,
|
|
@@ -12354,8 +12364,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12354
12364
|
}), /*#__PURE__*/React.createElement(StyledError, {
|
|
12355
12365
|
testID: "input-error-message"
|
|
12356
12366
|
}, error)) : !!helpText && /*#__PURE__*/React.createElement(StyledHelperText, null, helpText), shouldShowMaxLength && /*#__PURE__*/React.createElement(StyledMaxLengthMessage, {
|
|
12357
|
-
themeState: state
|
|
12358
|
-
fontSize: "small"
|
|
12367
|
+
themeState: state
|
|
12359
12368
|
}, displayText.length, "/", maxLength))));
|
|
12360
12369
|
});
|
|
12361
12370
|
|
|
@@ -12929,23 +12938,19 @@ var StyledWrapper$6 = index$a(View)(function (_ref) {
|
|
|
12929
12938
|
padding: theme.__hd__.empty.space.wrapperPadding
|
|
12930
12939
|
};
|
|
12931
12940
|
});
|
|
12932
|
-
var StyledTitle = index$a(Typography.
|
|
12941
|
+
var StyledTitle = index$a(Typography.Title)(function (_ref2) {
|
|
12933
12942
|
var theme = _ref2.theme,
|
|
12934
12943
|
themeVariant = _ref2.themeVariant;
|
|
12935
12944
|
return {
|
|
12936
|
-
fontFamily: theme.__hd__.empty.fonts.title,
|
|
12937
|
-
fontSize: theme.__hd__.empty.fontSizes.title,
|
|
12938
12945
|
textAlign: 'center',
|
|
12939
12946
|
marginBottom: theme.__hd__.empty.space.titleMargin,
|
|
12940
12947
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
|
|
12941
12948
|
};
|
|
12942
12949
|
});
|
|
12943
|
-
var StyledDescription = index$a(Typography.
|
|
12950
|
+
var StyledDescription = index$a(Typography.Body)(function (_ref3) {
|
|
12944
12951
|
var theme = _ref3.theme,
|
|
12945
12952
|
themeVariant = _ref3.themeVariant;
|
|
12946
12953
|
return {
|
|
12947
|
-
fontFamily: theme.__hd__.empty.fonts.description,
|
|
12948
|
-
fontSize: theme.__hd__.empty.fontSizes.description,
|
|
12949
12954
|
textAlign: 'center',
|
|
12950
12955
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedSubduedText : theme.__hd__.empty.colors.subduedText
|
|
12951
12956
|
};
|
|
@@ -12968,9 +12973,12 @@ var Empty = function Empty(_ref) {
|
|
|
12968
12973
|
marginBottom: theme.__hd__.empty.space.imageMargin
|
|
12969
12974
|
}, image.props.style]
|
|
12970
12975
|
})), /*#__PURE__*/React.createElement(StyledTitle, {
|
|
12971
|
-
themeVariant: variant
|
|
12976
|
+
themeVariant: variant,
|
|
12977
|
+
level: "h4",
|
|
12978
|
+
typeface: "playful"
|
|
12972
12979
|
}, title), !!description && /*#__PURE__*/React.createElement(StyledDescription, {
|
|
12973
|
-
themeVariant: variant
|
|
12980
|
+
themeVariant: variant,
|
|
12981
|
+
typeface: "playful"
|
|
12974
12982
|
}, description));
|
|
12975
12983
|
};
|
|
12976
12984
|
|
|
@@ -13040,25 +13048,19 @@ var StyledErrorImage = index$a(Image)(function (_ref7) {
|
|
|
13040
13048
|
resizeMode: 'contain'
|
|
13041
13049
|
};
|
|
13042
13050
|
});
|
|
13043
|
-
var StyledErrorTitle = index$a(Typography.
|
|
13051
|
+
var StyledErrorTitle = index$a(Typography.Title)(function (_ref8) {
|
|
13044
13052
|
var theme = _ref8.theme;
|
|
13045
13053
|
return {
|
|
13046
|
-
fontFamily: theme.__hd__.error.fonts.title,
|
|
13047
|
-
fontSize: theme.__hd__.error.fontSizes.title,
|
|
13048
13054
|
textAlign: 'center',
|
|
13049
13055
|
marginBottom: theme.__hd__.error.space.titleMarginBottom,
|
|
13050
|
-
color: theme.__hd__.error.colors.title
|
|
13051
|
-
lineHeight: theme.__hd__.error.lineHeight.title
|
|
13056
|
+
color: theme.__hd__.error.colors.title
|
|
13052
13057
|
};
|
|
13053
13058
|
});
|
|
13054
|
-
var StyledErrorDescription = index$a(Typography.
|
|
13059
|
+
var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
|
|
13055
13060
|
var theme = _ref9.theme;
|
|
13056
13061
|
return {
|
|
13057
|
-
fontFamily: theme.__hd__.error.fonts.description,
|
|
13058
|
-
fontSize: theme.__hd__.error.fontSizes.description,
|
|
13059
13062
|
textAlign: 'center',
|
|
13060
|
-
color: theme.__hd__.error.colors.description
|
|
13061
|
-
lineHeight: theme.__hd__.error.lineHeight.description
|
|
13063
|
+
color: theme.__hd__.error.colors.description
|
|
13062
13064
|
};
|
|
13063
13065
|
});
|
|
13064
13066
|
|
|
@@ -13095,7 +13097,12 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
13095
13097
|
return /*#__PURE__*/React.createElement(StyledErrorContainer$1, _extends$1({
|
|
13096
13098
|
testID: testID,
|
|
13097
13099
|
themeVariant: variant
|
|
13098
|
-
}, nativeProps), /*#__PURE__*/React.createElement(StyledErrorContent, null, image && /*#__PURE__*/React.createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React.createElement(StyledErrorTitle,
|
|
13100
|
+
}, nativeProps), /*#__PURE__*/React.createElement(StyledErrorContent, null, image && /*#__PURE__*/React.createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React.createElement(StyledErrorTitle, {
|
|
13101
|
+
level: "h4",
|
|
13102
|
+
typeface: "playful"
|
|
13103
|
+
}, title), description && /*#__PURE__*/React.createElement(StyledErrorDescription, {
|
|
13104
|
+
typeface: "playful"
|
|
13105
|
+
}, description)), showButtonContainer && /*#__PURE__*/React.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React.createElement(StyledErrorButtonPrimary, {
|
|
13099
13106
|
variant: "filled",
|
|
13100
13107
|
text: ctaText,
|
|
13101
13108
|
onPress: onCtaPress
|
|
@@ -13222,12 +13229,9 @@ var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
|
13222
13229
|
textAlign: 'center'
|
|
13223
13230
|
};
|
|
13224
13231
|
});
|
|
13225
|
-
var StyledFABText = index$a(Typography.
|
|
13232
|
+
var StyledFABText = index$a(Typography.Body)(function (_ref3) {
|
|
13226
13233
|
var theme = _ref3.theme;
|
|
13227
13234
|
return {
|
|
13228
|
-
fontFamily: theme.__hd__.fab.fonts.title,
|
|
13229
|
-
fontSize: theme.__hd__.fab.fontSizes.title,
|
|
13230
|
-
lineHeight: theme.__hd__.fab.lineHeights.title,
|
|
13231
13235
|
color: theme.__hd__.fab.colors.titleText,
|
|
13232
13236
|
textAlignVertical: 'center',
|
|
13233
13237
|
textAlign: 'center',
|
|
@@ -13405,13 +13409,9 @@ var StyledActionItem = index$a(TouchableHighlight)(function (_ref) {
|
|
|
13405
13409
|
overflow: 'hidden'
|
|
13406
13410
|
};
|
|
13407
13411
|
});
|
|
13408
|
-
var StyledActionItemText = index$a(Typography.
|
|
13412
|
+
var StyledActionItemText = index$a(Typography.Body)(function (_ref2) {
|
|
13409
13413
|
var theme = _ref2.theme;
|
|
13410
13414
|
return {
|
|
13411
|
-
paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
|
|
13412
|
-
fontSize: theme.__hd__.fab.fontSizes.actionItemText,
|
|
13413
|
-
lineHeight: theme.__hd__.fab.lineHeights.actionItemText,
|
|
13414
|
-
fontFamily: theme.__hd__.fab.fonts.actionItemText,
|
|
13415
13415
|
color: theme.__hd__.fab.colors.actionItemText
|
|
13416
13416
|
};
|
|
13417
13417
|
});
|
|
@@ -13494,13 +13494,10 @@ var StyledBackdrop = index$a(Animated.View)(function (_ref2) {
|
|
|
13494
13494
|
backgroundColor: theme.__hd__.fab.colors.backdropBackground
|
|
13495
13495
|
};
|
|
13496
13496
|
});
|
|
13497
|
-
var StyledHeaderText = index$a(Typography.
|
|
13497
|
+
var StyledHeaderText = index$a(Typography.Title)(function (_ref3) {
|
|
13498
13498
|
var theme = _ref3.theme;
|
|
13499
13499
|
return {
|
|
13500
|
-
fontSize: theme.__hd__.fab.fontSizes.header,
|
|
13501
|
-
lineHeight: theme.__hd__.fab.lineHeights.header,
|
|
13502
13500
|
color: theme.__hd__.fab.colors.headerText,
|
|
13503
|
-
fontFamily: theme.__hd__.fab.fonts.header,
|
|
13504
13501
|
marginRight: theme.__hd__.fab.space.headerTextMarginRight,
|
|
13505
13502
|
marginBottom: theme.__hd__.fab.space.headerTextMarginBottom,
|
|
13506
13503
|
textAlign: 'right'
|
|
@@ -13580,7 +13577,8 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13580
13577
|
}]
|
|
13581
13578
|
}
|
|
13582
13579
|
}, /*#__PURE__*/React.createElement(StyledHeaderText, {
|
|
13583
|
-
testID: "header-text"
|
|
13580
|
+
testID: "header-text",
|
|
13581
|
+
level: "h4"
|
|
13584
13582
|
}, headerTitle)), /*#__PURE__*/React.createElement(Box, {
|
|
13585
13583
|
style: [style, {
|
|
13586
13584
|
paddingBottom: 0
|
|
@@ -13714,12 +13712,10 @@ var ListItem = function ListItem(_ref) {
|
|
|
13714
13712
|
}, prefix && /*#__PURE__*/React.createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
13715
13713
|
icon: prefix,
|
|
13716
13714
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
13717
|
-
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.
|
|
13718
|
-
intent: "body"
|
|
13719
|
-
|
|
13720
|
-
|
|
13721
|
-
intent: "subdued",
|
|
13722
|
-
fontSize: "small"
|
|
13715
|
+
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.Body, {
|
|
13716
|
+
intent: "body"
|
|
13717
|
+
}, title) : title, !!subtitle && /*#__PURE__*/React.createElement(Typography.Caption, {
|
|
13718
|
+
intent: "subdued"
|
|
13723
13719
|
}, subtitle)), suffix && /*#__PURE__*/React.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
13724
13720
|
icon: suffix,
|
|
13725
13721
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
@@ -13782,12 +13778,10 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
13782
13778
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, prefix && /*#__PURE__*/React.createElement(StyledPrefixContainer, null, typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
13783
13779
|
icon: prefix,
|
|
13784
13780
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
13785
|
-
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.
|
|
13786
|
-
intent: "body"
|
|
13787
|
-
|
|
13788
|
-
|
|
13789
|
-
intent: "subdued",
|
|
13790
|
-
fontSize: "small"
|
|
13781
|
+
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.Body, {
|
|
13782
|
+
intent: "body"
|
|
13783
|
+
}, title) : title, subtitle && /*#__PURE__*/React.createElement(Typography.Caption, {
|
|
13784
|
+
intent: "subdued"
|
|
13791
13785
|
}, subtitle)), suffix && /*#__PURE__*/React.createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
13792
13786
|
icon: suffix,
|
|
13793
13787
|
size: "small",
|
|
@@ -13824,13 +13818,10 @@ var StyledCell = index$a(View)(function (_ref) {
|
|
|
13824
13818
|
borderColor: theme.__hd__.pinInput.colors[themeState]
|
|
13825
13819
|
};
|
|
13826
13820
|
});
|
|
13827
|
-
var StyledCellText = index$a(Typography.
|
|
13821
|
+
var StyledCellText = index$a(Typography.Title)(function (_ref2) {
|
|
13828
13822
|
var theme = _ref2.theme,
|
|
13829
13823
|
themeState = _ref2.themeState;
|
|
13830
13824
|
return {
|
|
13831
|
-
fontFamily: theme.__hd__.pinInput.fonts.cellText,
|
|
13832
|
-
fontSize: theme.__hd__.pinInput.fontSizes.cellText,
|
|
13833
|
-
lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
|
|
13834
13825
|
color: theme.__hd__.pinInput.colors[themeState]
|
|
13835
13826
|
};
|
|
13836
13827
|
});
|
|
@@ -13885,11 +13876,9 @@ var StyledErrorContainer = index$a(View)(function (_ref7) {
|
|
|
13885
13876
|
alignItems: 'center'
|
|
13886
13877
|
};
|
|
13887
13878
|
});
|
|
13888
|
-
var StyledErrorMessage = index$a(Typography.
|
|
13879
|
+
var StyledErrorMessage = index$a(Typography.Caption)(function (_ref8) {
|
|
13889
13880
|
var theme = _ref8.theme;
|
|
13890
13881
|
return {
|
|
13891
|
-
fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
|
|
13892
|
-
fontSize: theme.__hd__.pinInput.fontSizes.errorMessage,
|
|
13893
13882
|
color: theme.__hd__.pinInput.colors.error,
|
|
13894
13883
|
paddingLeft: theme.__hd__.pinInput.space.errorMessagePadding
|
|
13895
13884
|
};
|
|
@@ -13913,7 +13902,8 @@ function PinCell(_ref) {
|
|
|
13913
13902
|
themeState: state,
|
|
13914
13903
|
testID: "pin-cell-filled-mask"
|
|
13915
13904
|
}), value !== '' && !secure && /*#__PURE__*/React.createElement(StyledCellText, {
|
|
13916
|
-
themeState: state
|
|
13905
|
+
themeState: state,
|
|
13906
|
+
level: "h3"
|
|
13917
13907
|
}, value));
|
|
13918
13908
|
}
|
|
13919
13909
|
|
|
@@ -14214,9 +14204,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
14214
14204
|
})
|
|
14215
14205
|
}, /*#__PURE__*/React.createElement(StyledStrokeEnd, {
|
|
14216
14206
|
themeIntent: intent
|
|
14217
|
-
})), /*#__PURE__*/React.createElement(StyledDonutCircle, null, /*#__PURE__*/React.createElement(Typography.
|
|
14218
|
-
fontSize: "large"
|
|
14219
|
-
}, renderValue(value)))));
|
|
14207
|
+
})), /*#__PURE__*/React.createElement(StyledDonutCircle, null, /*#__PURE__*/React.createElement(Typography.Body, null, renderValue(value)))));
|
|
14220
14208
|
};
|
|
14221
14209
|
|
|
14222
14210
|
var StyledWrapper$4 = index$a(View)(function (_ref) {
|
|
@@ -15388,21 +15376,17 @@ var StyledSuccessImageContainer = index$a(View)(function (_ref4) {
|
|
|
15388
15376
|
height: theme.__hd__.success.sizes.image
|
|
15389
15377
|
};
|
|
15390
15378
|
});
|
|
15391
|
-
var StyledSuccessTitle = index$a(Typography.
|
|
15379
|
+
var StyledSuccessTitle = index$a(Typography.Title)(function (_ref5) {
|
|
15392
15380
|
var theme = _ref5.theme;
|
|
15393
15381
|
return {
|
|
15394
|
-
fontFamily: theme.__hd__.success.fonts.title,
|
|
15395
|
-
fontSize: theme.__hd__.success.fontSizes.title,
|
|
15396
15382
|
textAlign: 'center',
|
|
15397
15383
|
marginBottom: theme.__hd__.success.space.titleMarginBottom,
|
|
15398
15384
|
color: theme.__hd__.success.colors.title
|
|
15399
15385
|
};
|
|
15400
15386
|
});
|
|
15401
|
-
var StyledSuccessDescription = index$a(Typography.
|
|
15387
|
+
var StyledSuccessDescription = index$a(Typography.Body)(function (_ref6) {
|
|
15402
15388
|
var theme = _ref6.theme;
|
|
15403
15389
|
return {
|
|
15404
|
-
fontFamily: theme.__hd__.success.fonts.description,
|
|
15405
|
-
fontSize: theme.__hd__.success.fontSizes.description,
|
|
15406
15390
|
textAlign: 'center',
|
|
15407
15391
|
color: theme.__hd__.success.colors.description
|
|
15408
15392
|
};
|
|
@@ -15460,7 +15444,10 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
15460
15444
|
return /*#__PURE__*/React.createElement(StyledSuccessContainer, _extends$1({
|
|
15461
15445
|
testID: testID,
|
|
15462
15446
|
themeVariant: variant
|
|
15463
|
-
}, nativeProps), /*#__PURE__*/React.createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React.createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React.createElement(StyledSuccessTitle,
|
|
15447
|
+
}, nativeProps), /*#__PURE__*/React.createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React.createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React.createElement(StyledSuccessTitle, {
|
|
15448
|
+
level: "h4",
|
|
15449
|
+
typeface: "playful"
|
|
15450
|
+
}, title), !!description && /*#__PURE__*/React.createElement(StyledSuccessDescription, null, description)), !!ctaText && /*#__PURE__*/React.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React.createElement(StyledSuccessButtonPrimary, {
|
|
15464
15451
|
text: ctaText,
|
|
15465
15452
|
onPress: onCtaPress
|
|
15466
15453
|
}), !!showSecondaryButton && /*#__PURE__*/React.createElement(StyledSuccessButtonPrimary, {
|
|
@@ -15578,9 +15565,7 @@ var Option = function Option(_ref2) {
|
|
|
15578
15565
|
},
|
|
15579
15566
|
onLayout: onLayout
|
|
15580
15567
|
}, /*#__PURE__*/React.createElement(OptionContent, {
|
|
15581
|
-
content: /*#__PURE__*/React.createElement(Typography.
|
|
15582
|
-
fontSize: "large"
|
|
15583
|
-
}, text),
|
|
15568
|
+
content: /*#__PURE__*/React.createElement(Typography.Body, null, text),
|
|
15584
15569
|
badge: badge
|
|
15585
15570
|
}));
|
|
15586
15571
|
}
|
|
@@ -15949,8 +15934,8 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
15949
15934
|
});
|
|
15950
15935
|
}
|
|
15951
15936
|
if (typeof item === 'string') {
|
|
15952
|
-
return /*#__PURE__*/React.createElement(Typography.
|
|
15953
|
-
|
|
15937
|
+
return /*#__PURE__*/React.createElement(Typography.Body, {
|
|
15938
|
+
variant: active ? 'regular-bold' : 'regular',
|
|
15954
15939
|
numberOfLines: 1,
|
|
15955
15940
|
style: {
|
|
15956
15941
|
color: color
|
|
@@ -16167,8 +16152,8 @@ var getTabItem = function getTabItem(_ref) {
|
|
|
16167
16152
|
color = _ref.color,
|
|
16168
16153
|
active = _ref.active;
|
|
16169
16154
|
if (typeof item === 'string') {
|
|
16170
|
-
return /*#__PURE__*/React.createElement(Typography.
|
|
16171
|
-
|
|
16155
|
+
return /*#__PURE__*/React.createElement(Typography.Body, {
|
|
16156
|
+
variant: active ? 'small-bold' : 'small',
|
|
16172
16157
|
numberOfLines: 1,
|
|
16173
16158
|
style: {
|
|
16174
16159
|
color: color
|
|
@@ -16330,16 +16315,13 @@ var StyledView = index$a(View)(function (_ref) {
|
|
|
16330
16315
|
backgroundColor: backgroundColor
|
|
16331
16316
|
};
|
|
16332
16317
|
});
|
|
16333
|
-
var StyledText = index$a(Typography.
|
|
16318
|
+
var StyledText = index$a(Typography.Caption)(function (_ref3) {
|
|
16334
16319
|
var themeIntent = _ref3.themeIntent,
|
|
16335
16320
|
themeVariant = _ref3.themeVariant,
|
|
16336
16321
|
theme = _ref3.theme;
|
|
16337
16322
|
var _ref4 = themeVariant === 'filled' ? getFilledStyles(themeIntent, theme) : getOutlinedStyles(themeIntent, theme),
|
|
16338
16323
|
textColor = _ref4.textColor;
|
|
16339
16324
|
return {
|
|
16340
|
-
fontFamily: theme.__hd__.tag.fonts["default"],
|
|
16341
|
-
fontSize: theme.__hd__.tag.fontSizes["default"],
|
|
16342
|
-
lineHeight: theme.__hd__.tag.lineHeights["default"],
|
|
16343
16325
|
color: textColor,
|
|
16344
16326
|
includeFontPadding: false,
|
|
16345
16327
|
textAlignVertical: 'center',
|
|
@@ -16364,7 +16346,8 @@ var Tag = function Tag(_ref) {
|
|
|
16364
16346
|
testID: testID
|
|
16365
16347
|
}), typeof content === 'string' ? /*#__PURE__*/React.createElement(StyledText, {
|
|
16366
16348
|
themeIntent: intent,
|
|
16367
|
-
themeVariant: variant
|
|
16349
|
+
themeVariant: variant,
|
|
16350
|
+
fontWeight: "semi-bold"
|
|
16368
16351
|
}, content) : content);
|
|
16369
16352
|
};
|
|
16370
16353
|
|
|
@@ -16676,7 +16659,8 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
16676
16659
|
}, icon !== null ? /*#__PURE__*/React.createElement(ToastIcon, {
|
|
16677
16660
|
themeIntent: intent,
|
|
16678
16661
|
icon: icon || getIntentIcon(intent)
|
|
16679
|
-
}) : null, /*#__PURE__*/React.createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React.createElement(Typography.
|
|
16662
|
+
}) : null, /*#__PURE__*/React.createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React.createElement(Typography.Body, {
|
|
16663
|
+
variant: "small",
|
|
16680
16664
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
16681
16665
|
}, content) : content)), actionLabel ? /*#__PURE__*/React.createElement(CTAWrapper, {
|
|
16682
16666
|
testID: "toast-action-button",
|
|
@@ -16684,8 +16668,8 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
16684
16668
|
onAction === null || onAction === void 0 ? void 0 : onAction();
|
|
16685
16669
|
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
16686
16670
|
}
|
|
16687
|
-
}, typeof actionLabel === 'string' ? /*#__PURE__*/React.createElement(Typography.
|
|
16688
|
-
|
|
16671
|
+
}, typeof actionLabel === 'string' ? /*#__PURE__*/React.createElement(Typography.Body, {
|
|
16672
|
+
variant: "small-bold",
|
|
16689
16673
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
16690
16674
|
}, actionLabel) : actionLabel) : null);
|
|
16691
16675
|
};
|
|
@@ -16875,7 +16859,7 @@ var IconButtonWrapper = index$a(View)(function (_ref4) {
|
|
|
16875
16859
|
padding: theme.__hd__.toolbar.space.iconButtonWrapperPadding
|
|
16876
16860
|
};
|
|
16877
16861
|
});
|
|
16878
|
-
var IconButtonLabel = index$a(Typography.
|
|
16862
|
+
var IconButtonLabel = index$a(Typography.Body)(function (_ref5) {
|
|
16879
16863
|
var theme = _ref5.theme;
|
|
16880
16864
|
return {
|
|
16881
16865
|
marginLeft: theme.__hd__.toolbar.space.iconButtonLabelMarginLeft
|
|
@@ -16893,8 +16877,7 @@ var IconItem = function IconItem(_ref) {
|
|
|
16893
16877
|
intent: disabled ? 'disabled-text' : intent,
|
|
16894
16878
|
testID: "toolbar-item-icon-".concat(icon)
|
|
16895
16879
|
}), label ? /*#__PURE__*/React.createElement(IconButtonLabel, {
|
|
16896
|
-
|
|
16897
|
-
fontWeight: "semi-bold",
|
|
16880
|
+
variant: "regular-bold",
|
|
16898
16881
|
intent: disabled ? 'subdued' : intent,
|
|
16899
16882
|
allowFontScaling: false,
|
|
16900
16883
|
numberOfLines: 1
|
|
@@ -16916,9 +16899,8 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
16916
16899
|
});
|
|
16917
16900
|
}
|
|
16918
16901
|
if (label) {
|
|
16919
|
-
return /*#__PURE__*/React.createElement(Typography.
|
|
16920
|
-
|
|
16921
|
-
fontWeight: "semi-bold",
|
|
16902
|
+
return /*#__PURE__*/React.createElement(Typography.Body, {
|
|
16903
|
+
variant: "regular-bold",
|
|
16922
16904
|
intent: disabled ? 'disabled' : intent,
|
|
16923
16905
|
allowFontScaling: false,
|
|
16924
16906
|
numberOfLines: 1
|
|
@@ -33376,11 +33358,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
33376
33358
|
}), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
|
|
33377
33359
|
pointerEvents: "none"
|
|
33378
33360
|
}, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
|
|
33379
|
-
themeState: state
|
|
33380
|
-
fontSize: "small"
|
|
33361
|
+
themeState: state
|
|
33381
33362
|
}, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabel, {
|
|
33382
33363
|
testID: "input-label",
|
|
33383
|
-
fontSize: "small",
|
|
33384
33364
|
themeState: state
|
|
33385
33365
|
}, label)), /*#__PURE__*/React.createElement(StyledTextInputAndLabelContainer, null, !isFocused && isEmptyValue && /*#__PURE__*/React.createElement(StyledLabelContainerInsideTextInput, {
|
|
33386
33366
|
themeVariant: "text",
|
|
@@ -33389,7 +33369,6 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
33389
33369
|
themeState: state
|
|
33390
33370
|
}, "*"), !!label && /*#__PURE__*/React.createElement(StyledLabelInsideTextInput, {
|
|
33391
33371
|
testID: "input-label",
|
|
33392
|
-
fontSize: "medium",
|
|
33393
33372
|
themeState: state
|
|
33394
33373
|
}, label)), /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
33395
33374
|
onPress: function onPress(e) {
|