@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/lib/index.js
CHANGED
|
@@ -2003,7 +2003,11 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
2003
2003
|
textDanger: theme.colors.errorSurface
|
|
2004
2004
|
}
|
|
2005
2005
|
};
|
|
2006
|
+
var lineHeights = {
|
|
2007
|
+
titleOfTextVariant: theme.lineHeights.medium
|
|
2008
|
+
};
|
|
2006
2009
|
return {
|
|
2010
|
+
lineHeights: lineHeights,
|
|
2007
2011
|
borderWidth: borderWidth,
|
|
2008
2012
|
fonts: fonts,
|
|
2009
2013
|
fontSize: fontSize,
|
|
@@ -2990,7 +2994,8 @@ var getTextInputTheme = function getTextInputTheme(theme) {
|
|
|
2990
2994
|
maxLengthLabelMarginLeft: theme.space.xsmall,
|
|
2991
2995
|
errorAndHelpTextContainerPaddingLeft: theme.space.medium,
|
|
2992
2996
|
containerMarginTop: theme.space.small,
|
|
2993
|
-
labelInsideTextInputMarginTop: -theme.space.xxsmall
|
|
2997
|
+
labelInsideTextInputMarginTop: -theme.space.xxsmall,
|
|
2998
|
+
errorAndHelpTextContainerPaddingTop: theme.space.xxsmall
|
|
2994
2999
|
};
|
|
2995
3000
|
var fonts = {
|
|
2996
3001
|
text: theme.fonts.neutral.regular
|
|
@@ -7148,9 +7153,8 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7148
7153
|
testID: testID
|
|
7149
7154
|
}, /*#__PURE__*/React__default["default"].createElement(StyledHeaderWrapper$1, {
|
|
7150
7155
|
onPress: onPress
|
|
7151
|
-
}, typeof header === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
7152
|
-
|
|
7153
|
-
fontWeight: "semi-bold"
|
|
7156
|
+
}, typeof header === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
7157
|
+
variant: "regular-bold"
|
|
7154
7158
|
}, header) : header, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
7155
7159
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
7156
7160
|
intent: "secondary",
|
|
@@ -7286,9 +7290,11 @@ var Alert = function Alert(_ref2) {
|
|
|
7286
7290
|
showDivider: !!onClose
|
|
7287
7291
|
}, icon !== null ? /*#__PURE__*/React__default["default"].createElement(AlertIcon, {
|
|
7288
7292
|
icon: icon || getIntentIcon$1(intent)
|
|
7289
|
-
}) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
7290
|
-
|
|
7291
|
-
}, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
7293
|
+
}) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
7294
|
+
variant: "small-bold"
|
|
7295
|
+
}, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
7296
|
+
variant: "small"
|
|
7297
|
+
}, content) : content)), onClose ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper$1, {
|
|
7292
7298
|
onPress: onClose,
|
|
7293
7299
|
testID: "alert-close-icon"
|
|
7294
7300
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
@@ -7346,7 +7352,8 @@ var Attachment = function Attachment(_ref) {
|
|
|
7346
7352
|
themeHighlighted: backgroundHighlighted
|
|
7347
7353
|
}, previewElement, filename ? /*#__PURE__*/React__default["default"].createElement(StyledTextContainer, {
|
|
7348
7354
|
testID: "attachment-content"
|
|
7349
|
-
}, /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
7355
|
+
}, /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
7356
|
+
variant: "small",
|
|
7350
7357
|
numberOfLines: 1
|
|
7351
7358
|
}, filename)) : null), onDownload ? /*#__PURE__*/React__default["default"].createElement(StyledCTAWrapper, {
|
|
7352
7359
|
onPress: onDownload,
|
|
@@ -7553,12 +7560,9 @@ var StyledView$2 = index$a(reactNative.Animated.View)(function (_ref) {
|
|
|
7553
7560
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
7554
7561
|
};
|
|
7555
7562
|
});
|
|
7556
|
-
var StyledText$1 = index$a(Typography.
|
|
7563
|
+
var StyledText$1 = index$a(Typography.Caption)(function (_ref2) {
|
|
7557
7564
|
var theme = _ref2.theme;
|
|
7558
7565
|
return {
|
|
7559
|
-
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
7560
|
-
fontSize: theme.__hd__.badge.fontSizes["default"],
|
|
7561
|
-
lineHeight: theme.__hd__.badge.lineHeights["default"],
|
|
7562
7566
|
color: theme.__hd__.badge.colors.text,
|
|
7563
7567
|
includeFontPadding: false,
|
|
7564
7568
|
textAlignVertical: 'center',
|
|
@@ -7716,7 +7720,7 @@ var BottomBarItem = index$a(reactNative.View)({
|
|
|
7716
7720
|
flex: 1,
|
|
7717
7721
|
alignItems: 'center'
|
|
7718
7722
|
});
|
|
7719
|
-
var StyledBottomBarText = index$a(Typography.
|
|
7723
|
+
var StyledBottomBarText = index$a(Typography.Caption)(function (_ref3) {
|
|
7720
7724
|
var theme = _ref3.theme;
|
|
7721
7725
|
return {
|
|
7722
7726
|
marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
|
|
@@ -7811,7 +7815,6 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
7811
7815
|
intent: active ? 'primary' : 'text',
|
|
7812
7816
|
testID: "hero-icon-".concat(icon)
|
|
7813
7817
|
}), !!title && /*#__PURE__*/React__default["default"].createElement(StyledBottomBarText, {
|
|
7814
|
-
fontSize: "small",
|
|
7815
7818
|
fontWeight: "semi-bold",
|
|
7816
7819
|
intent: active ? 'primary' : 'body',
|
|
7817
7820
|
numberOfLines: 1
|
|
@@ -8080,43 +8083,33 @@ var genOutlineContainerStyles = function genOutlineContainerStyles(theme, intent
|
|
|
8080
8083
|
}, borderColorStyling());
|
|
8081
8084
|
};
|
|
8082
8085
|
var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, disabled) {
|
|
8083
|
-
|
|
8084
|
-
if (disabled) {
|
|
8085
|
-
return {
|
|
8086
|
-
color: theme.__hd__.button.colors.disabledText
|
|
8087
|
-
};
|
|
8088
|
-
}
|
|
8086
|
+
if (disabled) {
|
|
8089
8087
|
return {
|
|
8090
|
-
color: theme.__hd__.button.colors
|
|
8088
|
+
color: theme.__hd__.button.colors.disabledText
|
|
8091
8089
|
};
|
|
8090
|
+
}
|
|
8091
|
+
return {
|
|
8092
|
+
color: theme.__hd__.button.colors[intent]
|
|
8092
8093
|
};
|
|
8093
|
-
return _objectSpread2({
|
|
8094
|
-
fontSize: theme.__hd__.button.fontSize["default"]
|
|
8095
|
-
}, textColorStyling());
|
|
8096
8094
|
};
|
|
8097
8095
|
var genTextVariantTextStyles = function genTextVariantTextStyles(theme, intent, disabled) {
|
|
8098
|
-
|
|
8099
|
-
if (disabled) {
|
|
8100
|
-
return {
|
|
8101
|
-
color: theme.__hd__.button.colors.disabledText
|
|
8102
|
-
};
|
|
8103
|
-
}
|
|
8096
|
+
if (disabled) {
|
|
8104
8097
|
return {
|
|
8105
|
-
color: theme.__hd__.button.colors
|
|
8098
|
+
color: theme.__hd__.button.colors.disabledText
|
|
8106
8099
|
};
|
|
8100
|
+
}
|
|
8101
|
+
return {
|
|
8102
|
+
color: theme.__hd__.button.colors[intent]
|
|
8107
8103
|
};
|
|
8108
|
-
return _objectSpread2({
|
|
8109
|
-
fontSize: theme.__hd__.button.fontSize.textVariant
|
|
8110
|
-
}, textColorStyling());
|
|
8111
8104
|
};
|
|
8112
8105
|
var StyledButtonContainer = index$a(reactNative.TouchableHighlight)(function (_ref) {
|
|
8113
8106
|
var _ref$disabled = _ref.disabled,
|
|
8114
8107
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
8115
8108
|
_ref$loading = _ref.loading,
|
|
8116
8109
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
8117
|
-
|
|
8110
|
+
themeButtonVariant = _ref.themeButtonVariant,
|
|
8118
8111
|
theme = _ref.theme;
|
|
8119
|
-
switch (
|
|
8112
|
+
switch (themeButtonVariant) {
|
|
8120
8113
|
case 'filled-primary':
|
|
8121
8114
|
return genFilledContainerStyles(theme, 'primary', disabled, loading);
|
|
8122
8115
|
case 'filled-secondary':
|
|
@@ -8143,17 +8136,16 @@ var StyledButtonContainer = index$a(reactNative.TouchableHighlight)(function (_r
|
|
|
8143
8136
|
};
|
|
8144
8137
|
}
|
|
8145
8138
|
});
|
|
8146
|
-
var StyledButtonText = index$a(Typography.
|
|
8139
|
+
var StyledButtonText = index$a(Typography.Title)(function (_ref2) {
|
|
8147
8140
|
var disabled = _ref2.disabled,
|
|
8148
|
-
|
|
8141
|
+
themeButtonVariant = _ref2.themeButtonVariant,
|
|
8149
8142
|
theme = _ref2.theme;
|
|
8150
8143
|
var themeStyling = function themeStyling() {
|
|
8151
|
-
switch (
|
|
8144
|
+
switch (themeButtonVariant) {
|
|
8152
8145
|
case 'filled-primary':
|
|
8153
8146
|
case 'filled-secondary':
|
|
8154
8147
|
case 'filled-danger':
|
|
8155
8148
|
return {
|
|
8156
|
-
fontSize: theme.__hd__.button.fontSize["default"],
|
|
8157
8149
|
color: theme.__hd__.button.colors.invertedText
|
|
8158
8150
|
};
|
|
8159
8151
|
case 'outlined-primary':
|
|
@@ -8172,13 +8164,32 @@ var StyledButtonText = index$a(Typography.Text)(function (_ref2) {
|
|
|
8172
8164
|
};
|
|
8173
8165
|
return _objectSpread2({
|
|
8174
8166
|
flexShrink: 1,
|
|
8175
|
-
textAlign: 'center'
|
|
8176
|
-
fontFamily: theme.__hd__.button.fonts["default"]
|
|
8167
|
+
textAlign: 'center'
|
|
8177
8168
|
}, themeStyling());
|
|
8178
8169
|
});
|
|
8179
|
-
var
|
|
8180
|
-
var
|
|
8170
|
+
var StyledButtonTitleOfVariantText = index$a(Typography.Body)(function (_ref3) {
|
|
8171
|
+
var disabled = _ref3.disabled,
|
|
8172
|
+
themeButtonVariant = _ref3.themeButtonVariant,
|
|
8181
8173
|
theme = _ref3.theme;
|
|
8174
|
+
var themeStyling = function themeStyling() {
|
|
8175
|
+
switch (themeButtonVariant) {
|
|
8176
|
+
case 'text-primary':
|
|
8177
|
+
return genTextVariantTextStyles(theme, 'primary', disabled);
|
|
8178
|
+
case 'text-secondary':
|
|
8179
|
+
return genTextVariantTextStyles(theme, 'secondary', disabled);
|
|
8180
|
+
case 'text-danger':
|
|
8181
|
+
return genTextVariantTextStyles(theme, 'danger', disabled);
|
|
8182
|
+
}
|
|
8183
|
+
};
|
|
8184
|
+
return _objectSpread2({
|
|
8185
|
+
flexShrink: 1,
|
|
8186
|
+
lineHeight: theme.__hd__.button.lineHeights.titleOfTextVariant,
|
|
8187
|
+
textAlign: 'center'
|
|
8188
|
+
}, themeStyling());
|
|
8189
|
+
});
|
|
8190
|
+
var StyledButtonIconWrapper = index$a(reactNative.View)(function (_ref4) {
|
|
8191
|
+
var themePosition = _ref4.themePosition,
|
|
8192
|
+
theme = _ref4.theme;
|
|
8182
8193
|
switch (themePosition) {
|
|
8183
8194
|
case 'left':
|
|
8184
8195
|
return {
|
|
@@ -8190,12 +8201,12 @@ var StyledButtonIconWrapper = index$a(reactNative.View)(function (_ref3) {
|
|
|
8190
8201
|
};
|
|
8191
8202
|
}
|
|
8192
8203
|
});
|
|
8193
|
-
var StyledButtonIcon = index$a(Icon)(function (
|
|
8194
|
-
var disabled =
|
|
8195
|
-
|
|
8196
|
-
theme =
|
|
8204
|
+
var StyledButtonIcon = index$a(Icon)(function (_ref5) {
|
|
8205
|
+
var disabled = _ref5.disabled,
|
|
8206
|
+
themeButtonVariant = _ref5.themeButtonVariant,
|
|
8207
|
+
theme = _ref5.theme;
|
|
8197
8208
|
var themeStyling = function themeStyling() {
|
|
8198
|
-
switch (
|
|
8209
|
+
switch (themeButtonVariant) {
|
|
8199
8210
|
case 'filled-primary':
|
|
8200
8211
|
case 'filled-secondary':
|
|
8201
8212
|
case 'filled-danger':
|
|
@@ -8269,6 +8280,9 @@ var getUnderlayColor = function getUnderlayColor(theme, themeVariant) {
|
|
|
8269
8280
|
}
|
|
8270
8281
|
};
|
|
8271
8282
|
var deprecatedVariants = ['filled-secondary', 'filled-danger', 'outlined-secondary', 'outlined-danger'];
|
|
8283
|
+
function isTextVariant(themeVariant) {
|
|
8284
|
+
return ['text-primary', 'text-secondary', 'text-danger'].includes(themeVariant);
|
|
8285
|
+
}
|
|
8272
8286
|
var Button = function Button(_ref) {
|
|
8273
8287
|
var accessibilityHint = _ref.accessibilityHint,
|
|
8274
8288
|
accessibilityLabel = _ref.accessibilityLabel,
|
|
@@ -8299,7 +8313,7 @@ var Button = function Button(_ref) {
|
|
|
8299
8313
|
loading: loading,
|
|
8300
8314
|
onPress: onPress,
|
|
8301
8315
|
testID: testID,
|
|
8302
|
-
|
|
8316
|
+
themeButtonVariant: themeVariant,
|
|
8303
8317
|
style: style,
|
|
8304
8318
|
underlayColor: underlayColor
|
|
8305
8319
|
}, loading === true ? /*#__PURE__*/React__default["default"].createElement(LoadingIndicator, {
|
|
@@ -8311,19 +8325,26 @@ var Button = function Button(_ref) {
|
|
|
8311
8325
|
disabled: disabled,
|
|
8312
8326
|
icon: icon,
|
|
8313
8327
|
testID: "".concat(testID, "-left-icon"),
|
|
8314
|
-
|
|
8315
|
-
})), /*#__PURE__*/React__default["default"].createElement(
|
|
8328
|
+
themeButtonVariant: themeVariant
|
|
8329
|
+
})), isTextVariant(themeVariant) ? /*#__PURE__*/React__default["default"].createElement(StyledButtonTitleOfVariantText, {
|
|
8330
|
+
variant: "regular-bold",
|
|
8316
8331
|
ellipsizeMode: "tail",
|
|
8317
8332
|
numberOfLines: 1,
|
|
8318
8333
|
disabled: disabled,
|
|
8319
|
-
|
|
8334
|
+
themeButtonVariant: themeVariant
|
|
8335
|
+
}, text) : /*#__PURE__*/React__default["default"].createElement(StyledButtonText, {
|
|
8336
|
+
level: "h5",
|
|
8337
|
+
ellipsizeMode: "tail",
|
|
8338
|
+
numberOfLines: 1,
|
|
8339
|
+
disabled: disabled,
|
|
8340
|
+
themeButtonVariant: themeVariant
|
|
8320
8341
|
}, text), rightIcon !== undefined && /*#__PURE__*/React__default["default"].createElement(StyledButtonIconWrapper, {
|
|
8321
8342
|
themePosition: "right"
|
|
8322
8343
|
}, /*#__PURE__*/React__default["default"].createElement(StyledButtonIcon, {
|
|
8323
8344
|
disabled: disabled,
|
|
8324
8345
|
icon: rightIcon,
|
|
8325
8346
|
testID: "".concat(testID, "-right-icon"),
|
|
8326
|
-
|
|
8347
|
+
themeButtonVariant: themeVariant
|
|
8327
8348
|
}))));
|
|
8328
8349
|
};
|
|
8329
8350
|
|
|
@@ -8367,14 +8388,9 @@ var IconWrapper = index$a(reactNative.View)(function (_ref2) {
|
|
|
8367
8388
|
paddingRight: theme.__hd__.button.space.iconPadding
|
|
8368
8389
|
};
|
|
8369
8390
|
});
|
|
8370
|
-
var ButtonText = index$a(Typography.
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
flexShrink: 1,
|
|
8374
|
-
textAlign: 'center',
|
|
8375
|
-
fontSize: theme.__hd__.button.fontSize.utility,
|
|
8376
|
-
fontFamily: theme.__hd__.button.fonts.utility
|
|
8377
|
-
};
|
|
8391
|
+
var ButtonText = index$a(Typography.Body)({
|
|
8392
|
+
flexShrink: 1,
|
|
8393
|
+
textAlign: 'center'
|
|
8378
8394
|
});
|
|
8379
8395
|
|
|
8380
8396
|
var TEXT_INTENTS = {
|
|
@@ -8417,9 +8433,8 @@ var Header = function Header(_ref) {
|
|
|
8417
8433
|
_ref$onRequestClose = _ref.onRequestClose,
|
|
8418
8434
|
onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
|
|
8419
8435
|
showCloseButton = _ref.showCloseButton;
|
|
8420
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(StyledHeader, null, /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
8421
|
-
|
|
8422
|
-
fontWeight: "semi-bold"
|
|
8436
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(StyledHeader, null, /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
8437
|
+
variant: "regular-bold"
|
|
8423
8438
|
}, content)) : /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
8424
8439
|
style: {
|
|
8425
8440
|
flex: 1
|
|
@@ -11075,12 +11090,6 @@ var Wrapper = index$a(reactNative.View)(function () {
|
|
|
11075
11090
|
justifyContent: 'space-between'
|
|
11076
11091
|
};
|
|
11077
11092
|
});
|
|
11078
|
-
var Value = index$a(Typography.Text)(function (_ref) {
|
|
11079
|
-
var theme = _ref.theme;
|
|
11080
|
-
return {
|
|
11081
|
-
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11082
|
-
};
|
|
11083
|
-
});
|
|
11084
11093
|
|
|
11085
11094
|
function ContentNavigator(_ref) {
|
|
11086
11095
|
var onPreviousPress = _ref.onPreviousPress,
|
|
@@ -11095,6 +11104,7 @@ function ContentNavigator(_ref) {
|
|
|
11095
11104
|
fontSize = _ref$fontSize === void 0 ? 'medium' : _ref$fontSize,
|
|
11096
11105
|
testID = _ref.testID,
|
|
11097
11106
|
style = _ref.style;
|
|
11107
|
+
var theme = useTheme();
|
|
11098
11108
|
return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
|
|
11099
11109
|
testID: testID,
|
|
11100
11110
|
style: style
|
|
@@ -11103,9 +11113,18 @@ function ContentNavigator(_ref) {
|
|
|
11103
11113
|
onPress: onPreviousPress,
|
|
11104
11114
|
disabled: previousDisabled,
|
|
11105
11115
|
testID: "previous-icon-button"
|
|
11106
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
11107
|
-
|
|
11108
|
-
|
|
11116
|
+
}), fontSize === 'medium' ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
11117
|
+
style: {
|
|
11118
|
+
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11119
|
+
},
|
|
11120
|
+
variant: "small-bold",
|
|
11121
|
+
onPress: onPress,
|
|
11122
|
+
testID: "content-navigator-value"
|
|
11123
|
+
}, value) : /*#__PURE__*/React__default["default"].createElement(Typography.Title, {
|
|
11124
|
+
style: {
|
|
11125
|
+
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11126
|
+
},
|
|
11127
|
+
level: "h5",
|
|
11109
11128
|
onPress: onPress,
|
|
11110
11129
|
testID: "content-navigator-value"
|
|
11111
11130
|
}, value), /*#__PURE__*/React__default["default"].createElement(CompoundButton.Icon, {
|
|
@@ -11216,7 +11235,8 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
|
|
|
11216
11235
|
}, /*#__PURE__*/React__default["default"].createElement(StyledCalendarCell, {
|
|
11217
11236
|
variant: getCellVariant(isSelected, isCurrent),
|
|
11218
11237
|
onPress: onPress
|
|
11219
|
-
}, /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
11238
|
+
}, /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
11239
|
+
variant: "small",
|
|
11220
11240
|
intent: isSelected ? 'inverted' : textIntent
|
|
11221
11241
|
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/React__default["default"].createElement(StyledMark, {
|
|
11222
11242
|
testID: "calendar-date-mark",
|
|
@@ -11313,7 +11333,9 @@ var Calendar = function Calendar(_ref) {
|
|
|
11313
11333
|
})), /*#__PURE__*/React__default["default"].createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
|
|
11314
11334
|
return /*#__PURE__*/React__default["default"].createElement(StyledCalendarRowItem, {
|
|
11315
11335
|
key: day
|
|
11316
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledCalendarDayNameCell, null, /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
11336
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledCalendarDayNameCell, null, /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
11337
|
+
variant: "small"
|
|
11338
|
+
}, day)));
|
|
11317
11339
|
})), /*#__PURE__*/React__default["default"].createElement(StyledCalendarRow, null, daysOfPreviousMonth.map(function (date) {
|
|
11318
11340
|
return date ? /*#__PURE__*/React__default["default"].createElement(CalendarRowItem, {
|
|
11319
11341
|
key: date.toDateString(),
|
|
@@ -11450,14 +11472,11 @@ var StyledCarouselView = index$a(reactNative.View)(function () {
|
|
|
11450
11472
|
justifyContent: 'space-between'
|
|
11451
11473
|
};
|
|
11452
11474
|
});
|
|
11453
|
-
var StyledCarouselHeading = index$a(Typography.
|
|
11475
|
+
var StyledCarouselHeading = index$a(Typography.Title)(function (_ref2) {
|
|
11454
11476
|
var theme = _ref2.theme;
|
|
11455
11477
|
return {
|
|
11456
11478
|
marginTop: theme.__hd__.carousel.space.headingMarginTop,
|
|
11457
|
-
marginBottom: theme.__hd__.carousel.space.headingMarginBottom
|
|
11458
|
-
fontFamily: theme.__hd__.carousel.fonts.heading,
|
|
11459
|
-
fontSize: theme.__hd__.carousel.fontSizes.heading,
|
|
11460
|
-
lineHeight: theme.__hd__.carousel.lineHeights.heading
|
|
11479
|
+
marginBottom: theme.__hd__.carousel.space.headingMarginBottom
|
|
11461
11480
|
};
|
|
11462
11481
|
});
|
|
11463
11482
|
var StyledCarouselImage = index$a(Image)(function () {
|
|
@@ -11537,9 +11556,10 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
11537
11556
|
paddingHorizontal: "large",
|
|
11538
11557
|
marginTop: "large",
|
|
11539
11558
|
width: width
|
|
11540
|
-
}, content, /*#__PURE__*/React__default["default"].createElement(StyledCarouselHeading,
|
|
11541
|
-
|
|
11542
|
-
|
|
11559
|
+
}, content, /*#__PURE__*/React__default["default"].createElement(StyledCarouselHeading, {
|
|
11560
|
+
level: "h1",
|
|
11561
|
+
typeface: "playful"
|
|
11562
|
+
}, heading), body ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, null, body) : null));
|
|
11543
11563
|
};
|
|
11544
11564
|
|
|
11545
11565
|
/*
|
|
@@ -11938,7 +11958,7 @@ var StyledWrapper$7 = index$a(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
11938
11958
|
flexDirection: 'row'
|
|
11939
11959
|
}, themeWithBorder && borderStyle);
|
|
11940
11960
|
});
|
|
11941
|
-
var StyledDescription$1 = index$a(Typography.
|
|
11961
|
+
var StyledDescription$1 = index$a(Typography.Body)(function (_ref2) {
|
|
11942
11962
|
var theme = _ref2.theme;
|
|
11943
11963
|
return {
|
|
11944
11964
|
paddingRight: theme.__hd__.checkbox.space.iconDescriptionPadding,
|
|
@@ -11989,7 +12009,8 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
11989
12009
|
style: style,
|
|
11990
12010
|
testID: testID
|
|
11991
12011
|
}, !!description && /*#__PURE__*/React__default["default"].createElement(StyledDescription$1, {
|
|
11992
|
-
intent: disabled ? 'subdued' : 'body'
|
|
12012
|
+
intent: disabled ? 'subdued' : 'body',
|
|
12013
|
+
variant: "small"
|
|
11993
12014
|
}, description), /*#__PURE__*/React__default["default"].createElement(StyledCheckboxContainer, null, checked && /*#__PURE__*/React__default["default"].createElement(StyledCheckMark, {
|
|
11994
12015
|
icon: "box-check",
|
|
11995
12016
|
intent: disabled ? 'disabled-text' : 'text',
|
|
@@ -12018,21 +12039,19 @@ var StyledLabelContainer = index$a(reactNative.View)(function (_ref2) {
|
|
|
12018
12039
|
paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
|
|
12019
12040
|
};
|
|
12020
12041
|
});
|
|
12021
|
-
var StyledLabel = index$a(Typography.
|
|
12042
|
+
var StyledLabel = index$a(Typography.Caption)(function (_ref3) {
|
|
12022
12043
|
var theme = _ref3.theme,
|
|
12023
12044
|
themeState = _ref3.themeState;
|
|
12024
12045
|
return {
|
|
12025
12046
|
color: theme.__hd__.textInput.colors.labels[themeState],
|
|
12026
|
-
fontSize: theme.__hd__.textInput.fontSizes.topLabel,
|
|
12027
12047
|
lineHeight: theme.__hd__.textInput.lineHeights.topLabel
|
|
12028
12048
|
};
|
|
12029
12049
|
});
|
|
12030
|
-
var StyledAsteriskLabel = index$a(Typography.
|
|
12050
|
+
var StyledAsteriskLabel = index$a(Typography.Caption)(function (_ref4) {
|
|
12031
12051
|
var theme = _ref4.theme,
|
|
12032
12052
|
themeState = _ref4.themeState;
|
|
12033
12053
|
return {
|
|
12034
12054
|
color: theme.__hd__.textInput.colors.asterisks[themeState],
|
|
12035
|
-
fontSize: theme.__hd__.textInput.fontSizes.topLabel,
|
|
12036
12055
|
lineHeight: theme.__hd__.textInput.lineHeights.topLabel
|
|
12037
12056
|
};
|
|
12038
12057
|
});
|
|
@@ -12044,24 +12063,22 @@ var StyledLabelContainerInsideTextInput = index$a(reactNative.View)(function (_r
|
|
|
12044
12063
|
alignItems: themeVariant === 'text' ? 'center' : 'flex-start'
|
|
12045
12064
|
}, reactNative.StyleSheet.absoluteFillObject);
|
|
12046
12065
|
});
|
|
12047
|
-
var StyledLabelInsideTextInput = index$a(Typography.
|
|
12066
|
+
var StyledLabelInsideTextInput = index$a(Typography.Body)(function (_ref6) {
|
|
12048
12067
|
var theme = _ref6.theme,
|
|
12049
12068
|
themeState = _ref6.themeState;
|
|
12050
12069
|
return {
|
|
12051
12070
|
textAlignVertical: 'center',
|
|
12052
12071
|
alignContent: 'center',
|
|
12053
|
-
fontSize: theme.__hd__.textInput.fontSizes.labelInsideTextInput,
|
|
12054
12072
|
alignItems: 'center',
|
|
12055
12073
|
color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeState],
|
|
12056
12074
|
marginTop: theme.__hd__.textInput.space.labelInsideTextInputMarginTop
|
|
12057
12075
|
};
|
|
12058
12076
|
});
|
|
12059
|
-
var StyledAsteriskLabelInsideTextInput = index$a(Typography.
|
|
12077
|
+
var StyledAsteriskLabelInsideTextInput = index$a(Typography.Body)(function (_ref7) {
|
|
12060
12078
|
var theme = _ref7.theme,
|
|
12061
12079
|
themeState = _ref7.themeState;
|
|
12062
12080
|
return {
|
|
12063
|
-
color: theme.__hd__.textInput.colors.asterisks[themeState]
|
|
12064
|
-
fontSize: theme.__hd__.textInput.fontSizes.asteriskLabel
|
|
12081
|
+
color: theme.__hd__.textInput.colors.asterisks[themeState]
|
|
12065
12082
|
};
|
|
12066
12083
|
});
|
|
12067
12084
|
var StyledErrorContainer$2 = index$a(reactNative.View)(function (_ref8) {
|
|
@@ -12074,20 +12091,18 @@ var StyledErrorContainer$2 = index$a(reactNative.View)(function (_ref8) {
|
|
|
12074
12091
|
flexGrow: 4
|
|
12075
12092
|
};
|
|
12076
12093
|
});
|
|
12077
|
-
var StyledError = index$a(Typography.
|
|
12094
|
+
var StyledError = index$a(Typography.Caption)(function (_ref9) {
|
|
12078
12095
|
var theme = _ref9.theme;
|
|
12079
12096
|
return {
|
|
12080
12097
|
color: theme.__hd__.textInput.colors.error,
|
|
12081
|
-
fontSize: theme.__hd__.textInput.fontSizes.error,
|
|
12082
12098
|
marginLeft: theme.__hd__.textInput.space.errorMarginLeft
|
|
12083
12099
|
};
|
|
12084
12100
|
});
|
|
12085
|
-
var StyledMaxLengthMessage = index$a(Typography.
|
|
12101
|
+
var StyledMaxLengthMessage = index$a(Typography.Caption)(function (_ref10) {
|
|
12086
12102
|
var theme = _ref10.theme,
|
|
12087
12103
|
themeState = _ref10.themeState;
|
|
12088
12104
|
return {
|
|
12089
12105
|
color: theme.__hd__.textInput.colors.maxLengthLabels[themeState],
|
|
12090
|
-
fontSize: theme.__hd__.textInput.fontSizes.maxLength,
|
|
12091
12106
|
marginRight: theme.__hd__.textInput.space.maxLengthLabelMarginLeft,
|
|
12092
12107
|
alignSelf: 'flex-end',
|
|
12093
12108
|
flex: 1,
|
|
@@ -12095,15 +12110,10 @@ var StyledMaxLengthMessage = index$a(Typography.Text)(function (_ref10) {
|
|
|
12095
12110
|
textAlign: 'right'
|
|
12096
12111
|
};
|
|
12097
12112
|
});
|
|
12098
|
-
var StyledHelperText =
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
};
|
|
12103
|
-
});
|
|
12104
|
-
var StyledTextInput = index$a(reactNative.TextInput)(function (_ref12) {
|
|
12105
|
-
var theme = _ref12.theme,
|
|
12106
|
-
themeVariant = _ref12.themeVariant;
|
|
12113
|
+
var StyledHelperText = Typography.Caption;
|
|
12114
|
+
var StyledTextInput = index$a(reactNative.TextInput)(function (_ref11) {
|
|
12115
|
+
var theme = _ref11.theme,
|
|
12116
|
+
themeVariant = _ref11.themeVariant;
|
|
12107
12117
|
return {
|
|
12108
12118
|
textAlignVertical: themeVariant === 'text' ? 'center' : 'top',
|
|
12109
12119
|
fontSize: theme.__hd__.textInput.fontSizes.text,
|
|
@@ -12116,19 +12126,19 @@ var StyledTextInput = index$a(reactNative.TextInput)(function (_ref12) {
|
|
|
12116
12126
|
fontFamily: theme.__hd__.textInput.fonts.text
|
|
12117
12127
|
};
|
|
12118
12128
|
});
|
|
12119
|
-
var StyledBorderBackDrop = index$a(reactNative.View)(function (
|
|
12129
|
+
var StyledBorderBackDrop = index$a(reactNative.View)(function (_ref12) {
|
|
12120
12130
|
var _theme$__hd__$textInp;
|
|
12121
|
-
var theme =
|
|
12122
|
-
themeFocused =
|
|
12123
|
-
themeState =
|
|
12131
|
+
var theme = _ref12.theme,
|
|
12132
|
+
themeFocused = _ref12.themeFocused,
|
|
12133
|
+
themeState = _ref12.themeState;
|
|
12124
12134
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
12125
12135
|
borderWidth: themeFocused ? theme.__hd__.textInput.borderWidths.container.focused : theme.__hd__.textInput.borderWidths.container.normal,
|
|
12126
12136
|
borderRadius: theme.__hd__.textInput.radii.container,
|
|
12127
12137
|
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"]
|
|
12128
12138
|
});
|
|
12129
12139
|
});
|
|
12130
|
-
var StyledTextInputContainer = index$a(reactNative.View)(function (
|
|
12131
|
-
var theme =
|
|
12140
|
+
var StyledTextInputContainer = index$a(reactNative.View)(function (_ref13) {
|
|
12141
|
+
var theme = _ref13.theme;
|
|
12132
12142
|
return {
|
|
12133
12143
|
flexDirection: 'row',
|
|
12134
12144
|
alignItems: 'center',
|
|
@@ -12146,11 +12156,12 @@ var StyledTextInputAndLabelContainer = index$a(reactNative.View)(function () {
|
|
|
12146
12156
|
flexShrink: 1
|
|
12147
12157
|
};
|
|
12148
12158
|
});
|
|
12149
|
-
var StyledErrorAndHelpTextContainer = index$a(reactNative.View)(function (
|
|
12150
|
-
var theme =
|
|
12159
|
+
var StyledErrorAndHelpTextContainer = index$a(reactNative.View)(function (_ref14) {
|
|
12160
|
+
var theme = _ref14.theme;
|
|
12151
12161
|
return {
|
|
12152
12162
|
paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft,
|
|
12153
|
-
minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerHeight
|
|
12163
|
+
minHeight: theme.__hd__.textInput.sizes.errorAndHelpTextContainerHeight,
|
|
12164
|
+
paddingTop: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingTop
|
|
12154
12165
|
};
|
|
12155
12166
|
});
|
|
12156
12167
|
var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
|
|
@@ -12362,7 +12373,6 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12362
12373
|
}, "*"), !!label && /*#__PURE__*/React__default["default"].createElement(StyledLabelInsideTextInput, {
|
|
12363
12374
|
nativeID: accessibilityLabelledBy,
|
|
12364
12375
|
testID: "input-label",
|
|
12365
|
-
fontSize: "medium",
|
|
12366
12376
|
themeState: state
|
|
12367
12377
|
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default["default"].createElement(StyledTextInput, _extends$1({}, nativeInputProps, {
|
|
12368
12378
|
themeVariant: variant,
|
|
@@ -12384,8 +12394,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12384
12394
|
}), /*#__PURE__*/React__default["default"].createElement(StyledError, {
|
|
12385
12395
|
testID: "input-error-message"
|
|
12386
12396
|
}, error)) : !!helpText && /*#__PURE__*/React__default["default"].createElement(StyledHelperText, null, helpText), shouldShowMaxLength && /*#__PURE__*/React__default["default"].createElement(StyledMaxLengthMessage, {
|
|
12387
|
-
themeState: state
|
|
12388
|
-
fontSize: "small"
|
|
12397
|
+
themeState: state
|
|
12389
12398
|
}, displayText.length, "/", maxLength))));
|
|
12390
12399
|
});
|
|
12391
12400
|
|
|
@@ -12959,23 +12968,19 @@ var StyledWrapper$6 = index$a(reactNative.View)(function (_ref) {
|
|
|
12959
12968
|
padding: theme.__hd__.empty.space.wrapperPadding
|
|
12960
12969
|
};
|
|
12961
12970
|
});
|
|
12962
|
-
var StyledTitle = index$a(Typography.
|
|
12971
|
+
var StyledTitle = index$a(Typography.Title)(function (_ref2) {
|
|
12963
12972
|
var theme = _ref2.theme,
|
|
12964
12973
|
themeVariant = _ref2.themeVariant;
|
|
12965
12974
|
return {
|
|
12966
|
-
fontFamily: theme.__hd__.empty.fonts.title,
|
|
12967
|
-
fontSize: theme.__hd__.empty.fontSizes.title,
|
|
12968
12975
|
textAlign: 'center',
|
|
12969
12976
|
marginBottom: theme.__hd__.empty.space.titleMargin,
|
|
12970
12977
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
|
|
12971
12978
|
};
|
|
12972
12979
|
});
|
|
12973
|
-
var StyledDescription = index$a(Typography.
|
|
12980
|
+
var StyledDescription = index$a(Typography.Body)(function (_ref3) {
|
|
12974
12981
|
var theme = _ref3.theme,
|
|
12975
12982
|
themeVariant = _ref3.themeVariant;
|
|
12976
12983
|
return {
|
|
12977
|
-
fontFamily: theme.__hd__.empty.fonts.description,
|
|
12978
|
-
fontSize: theme.__hd__.empty.fontSizes.description,
|
|
12979
12984
|
textAlign: 'center',
|
|
12980
12985
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedSubduedText : theme.__hd__.empty.colors.subduedText
|
|
12981
12986
|
};
|
|
@@ -12998,9 +13003,12 @@ var Empty = function Empty(_ref) {
|
|
|
12998
13003
|
marginBottom: theme.__hd__.empty.space.imageMargin
|
|
12999
13004
|
}, image.props.style]
|
|
13000
13005
|
})), /*#__PURE__*/React__default["default"].createElement(StyledTitle, {
|
|
13001
|
-
themeVariant: variant
|
|
13006
|
+
themeVariant: variant,
|
|
13007
|
+
level: "h4",
|
|
13008
|
+
typeface: "playful"
|
|
13002
13009
|
}, title), !!description && /*#__PURE__*/React__default["default"].createElement(StyledDescription, {
|
|
13003
|
-
themeVariant: variant
|
|
13010
|
+
themeVariant: variant,
|
|
13011
|
+
typeface: "playful"
|
|
13004
13012
|
}, description));
|
|
13005
13013
|
};
|
|
13006
13014
|
|
|
@@ -13070,25 +13078,19 @@ var StyledErrorImage = index$a(Image)(function (_ref7) {
|
|
|
13070
13078
|
resizeMode: 'contain'
|
|
13071
13079
|
};
|
|
13072
13080
|
});
|
|
13073
|
-
var StyledErrorTitle = index$a(Typography.
|
|
13081
|
+
var StyledErrorTitle = index$a(Typography.Title)(function (_ref8) {
|
|
13074
13082
|
var theme = _ref8.theme;
|
|
13075
13083
|
return {
|
|
13076
|
-
fontFamily: theme.__hd__.error.fonts.title,
|
|
13077
|
-
fontSize: theme.__hd__.error.fontSizes.title,
|
|
13078
13084
|
textAlign: 'center',
|
|
13079
13085
|
marginBottom: theme.__hd__.error.space.titleMarginBottom,
|
|
13080
|
-
color: theme.__hd__.error.colors.title
|
|
13081
|
-
lineHeight: theme.__hd__.error.lineHeight.title
|
|
13086
|
+
color: theme.__hd__.error.colors.title
|
|
13082
13087
|
};
|
|
13083
13088
|
});
|
|
13084
|
-
var StyledErrorDescription = index$a(Typography.
|
|
13089
|
+
var StyledErrorDescription = index$a(Typography.Body)(function (_ref9) {
|
|
13085
13090
|
var theme = _ref9.theme;
|
|
13086
13091
|
return {
|
|
13087
|
-
fontFamily: theme.__hd__.error.fonts.description,
|
|
13088
|
-
fontSize: theme.__hd__.error.fontSizes.description,
|
|
13089
13092
|
textAlign: 'center',
|
|
13090
|
-
color: theme.__hd__.error.colors.description
|
|
13091
|
-
lineHeight: theme.__hd__.error.lineHeight.description
|
|
13093
|
+
color: theme.__hd__.error.colors.description
|
|
13092
13094
|
};
|
|
13093
13095
|
});
|
|
13094
13096
|
|
|
@@ -13125,7 +13127,12 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
13125
13127
|
return /*#__PURE__*/React__default["default"].createElement(StyledErrorContainer$1, _extends$1({
|
|
13126
13128
|
testID: testID,
|
|
13127
13129
|
themeVariant: variant
|
|
13128
|
-
}, nativeProps), /*#__PURE__*/React__default["default"].createElement(StyledErrorContent, null, image && /*#__PURE__*/React__default["default"].createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React__default["default"].createElement(StyledErrorTitle,
|
|
13130
|
+
}, nativeProps), /*#__PURE__*/React__default["default"].createElement(StyledErrorContent, null, image && /*#__PURE__*/React__default["default"].createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React__default["default"].createElement(StyledErrorTitle, {
|
|
13131
|
+
level: "h4",
|
|
13132
|
+
typeface: "playful"
|
|
13133
|
+
}, title), description && /*#__PURE__*/React__default["default"].createElement(StyledErrorDescription, {
|
|
13134
|
+
typeface: "playful"
|
|
13135
|
+
}, description)), showButtonContainer && /*#__PURE__*/React__default["default"].createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React__default["default"].createElement(StyledErrorButtonPrimary, {
|
|
13129
13136
|
variant: "filled",
|
|
13130
13137
|
text: ctaText,
|
|
13131
13138
|
onPress: onCtaPress
|
|
@@ -13252,12 +13259,9 @@ var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
|
13252
13259
|
textAlign: 'center'
|
|
13253
13260
|
};
|
|
13254
13261
|
});
|
|
13255
|
-
var StyledFABText = index$a(Typography.
|
|
13262
|
+
var StyledFABText = index$a(Typography.Body)(function (_ref3) {
|
|
13256
13263
|
var theme = _ref3.theme;
|
|
13257
13264
|
return {
|
|
13258
|
-
fontFamily: theme.__hd__.fab.fonts.title,
|
|
13259
|
-
fontSize: theme.__hd__.fab.fontSizes.title,
|
|
13260
|
-
lineHeight: theme.__hd__.fab.lineHeights.title,
|
|
13261
13265
|
color: theme.__hd__.fab.colors.titleText,
|
|
13262
13266
|
textAlignVertical: 'center',
|
|
13263
13267
|
textAlign: 'center',
|
|
@@ -13435,13 +13439,9 @@ var StyledActionItem = index$a(reactNative.TouchableHighlight)(function (_ref) {
|
|
|
13435
13439
|
overflow: 'hidden'
|
|
13436
13440
|
};
|
|
13437
13441
|
});
|
|
13438
|
-
var StyledActionItemText = index$a(Typography.
|
|
13442
|
+
var StyledActionItemText = index$a(Typography.Body)(function (_ref2) {
|
|
13439
13443
|
var theme = _ref2.theme;
|
|
13440
13444
|
return {
|
|
13441
|
-
paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
|
|
13442
|
-
fontSize: theme.__hd__.fab.fontSizes.actionItemText,
|
|
13443
|
-
lineHeight: theme.__hd__.fab.lineHeights.actionItemText,
|
|
13444
|
-
fontFamily: theme.__hd__.fab.fonts.actionItemText,
|
|
13445
13445
|
color: theme.__hd__.fab.colors.actionItemText
|
|
13446
13446
|
};
|
|
13447
13447
|
});
|
|
@@ -13524,13 +13524,10 @@ var StyledBackdrop = index$a(reactNative.Animated.View)(function (_ref2) {
|
|
|
13524
13524
|
backgroundColor: theme.__hd__.fab.colors.backdropBackground
|
|
13525
13525
|
};
|
|
13526
13526
|
});
|
|
13527
|
-
var StyledHeaderText = index$a(Typography.
|
|
13527
|
+
var StyledHeaderText = index$a(Typography.Title)(function (_ref3) {
|
|
13528
13528
|
var theme = _ref3.theme;
|
|
13529
13529
|
return {
|
|
13530
|
-
fontSize: theme.__hd__.fab.fontSizes.header,
|
|
13531
|
-
lineHeight: theme.__hd__.fab.lineHeights.header,
|
|
13532
13530
|
color: theme.__hd__.fab.colors.headerText,
|
|
13533
|
-
fontFamily: theme.__hd__.fab.fonts.header,
|
|
13534
13531
|
marginRight: theme.__hd__.fab.space.headerTextMarginRight,
|
|
13535
13532
|
marginBottom: theme.__hd__.fab.space.headerTextMarginBottom,
|
|
13536
13533
|
textAlign: 'right'
|
|
@@ -13610,7 +13607,8 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
13610
13607
|
}]
|
|
13611
13608
|
}
|
|
13612
13609
|
}, /*#__PURE__*/React__default["default"].createElement(StyledHeaderText, {
|
|
13613
|
-
testID: "header-text"
|
|
13610
|
+
testID: "header-text",
|
|
13611
|
+
level: "h4"
|
|
13614
13612
|
}, headerTitle)), /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
13615
13613
|
style: [style, {
|
|
13616
13614
|
paddingBottom: 0
|
|
@@ -13744,12 +13742,10 @@ var ListItem = function ListItem(_ref) {
|
|
|
13744
13742
|
}, prefix && /*#__PURE__*/React__default["default"].createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
13745
13743
|
icon: prefix,
|
|
13746
13744
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
13747
|
-
}) : prefix), /*#__PURE__*/React__default["default"].createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
13748
|
-
intent: "body"
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
intent: "subdued",
|
|
13752
|
-
fontSize: "small"
|
|
13745
|
+
}) : prefix), /*#__PURE__*/React__default["default"].createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
13746
|
+
intent: "body"
|
|
13747
|
+
}, title) : title, !!subtitle && /*#__PURE__*/React__default["default"].createElement(Typography.Caption, {
|
|
13748
|
+
intent: "subdued"
|
|
13753
13749
|
}, subtitle)), suffix && /*#__PURE__*/React__default["default"].createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
13754
13750
|
icon: suffix,
|
|
13755
13751
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
@@ -13812,12 +13808,10 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
13812
13808
|
}, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, prefix && /*#__PURE__*/React__default["default"].createElement(StyledPrefixContainer, null, typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
13813
13809
|
icon: prefix,
|
|
13814
13810
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
13815
|
-
}) : prefix), /*#__PURE__*/React__default["default"].createElement(StyledTitleContainer, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
13816
|
-
intent: "body"
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
intent: "subdued",
|
|
13820
|
-
fontSize: "small"
|
|
13811
|
+
}) : prefix), /*#__PURE__*/React__default["default"].createElement(StyledTitleContainer, null, typeof title === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
13812
|
+
intent: "body"
|
|
13813
|
+
}, title) : title, subtitle && /*#__PURE__*/React__default["default"].createElement(Typography.Caption, {
|
|
13814
|
+
intent: "subdued"
|
|
13821
13815
|
}, subtitle)), suffix && /*#__PURE__*/React__default["default"].createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
13822
13816
|
icon: suffix,
|
|
13823
13817
|
size: "small",
|
|
@@ -13854,13 +13848,10 @@ var StyledCell = index$a(reactNative.View)(function (_ref) {
|
|
|
13854
13848
|
borderColor: theme.__hd__.pinInput.colors[themeState]
|
|
13855
13849
|
};
|
|
13856
13850
|
});
|
|
13857
|
-
var StyledCellText = index$a(Typography.
|
|
13851
|
+
var StyledCellText = index$a(Typography.Title)(function (_ref2) {
|
|
13858
13852
|
var theme = _ref2.theme,
|
|
13859
13853
|
themeState = _ref2.themeState;
|
|
13860
13854
|
return {
|
|
13861
|
-
fontFamily: theme.__hd__.pinInput.fonts.cellText,
|
|
13862
|
-
fontSize: theme.__hd__.pinInput.fontSizes.cellText,
|
|
13863
|
-
lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
|
|
13864
13855
|
color: theme.__hd__.pinInput.colors[themeState]
|
|
13865
13856
|
};
|
|
13866
13857
|
});
|
|
@@ -13915,11 +13906,9 @@ var StyledErrorContainer = index$a(reactNative.View)(function (_ref7) {
|
|
|
13915
13906
|
alignItems: 'center'
|
|
13916
13907
|
};
|
|
13917
13908
|
});
|
|
13918
|
-
var StyledErrorMessage = index$a(Typography.
|
|
13909
|
+
var StyledErrorMessage = index$a(Typography.Caption)(function (_ref8) {
|
|
13919
13910
|
var theme = _ref8.theme;
|
|
13920
13911
|
return {
|
|
13921
|
-
fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
|
|
13922
|
-
fontSize: theme.__hd__.pinInput.fontSizes.errorMessage,
|
|
13923
13912
|
color: theme.__hd__.pinInput.colors.error,
|
|
13924
13913
|
paddingLeft: theme.__hd__.pinInput.space.errorMessagePadding
|
|
13925
13914
|
};
|
|
@@ -13943,7 +13932,8 @@ function PinCell(_ref) {
|
|
|
13943
13932
|
themeState: state,
|
|
13944
13933
|
testID: "pin-cell-filled-mask"
|
|
13945
13934
|
}), value !== '' && !secure && /*#__PURE__*/React__default["default"].createElement(StyledCellText, {
|
|
13946
|
-
themeState: state
|
|
13935
|
+
themeState: state,
|
|
13936
|
+
level: "h3"
|
|
13947
13937
|
}, value));
|
|
13948
13938
|
}
|
|
13949
13939
|
|
|
@@ -14244,9 +14234,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
14244
14234
|
})
|
|
14245
14235
|
}, /*#__PURE__*/React__default["default"].createElement(StyledStrokeEnd, {
|
|
14246
14236
|
themeIntent: intent
|
|
14247
|
-
})), /*#__PURE__*/React__default["default"].createElement(StyledDonutCircle, null, /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
14248
|
-
fontSize: "large"
|
|
14249
|
-
}, renderValue(value)))));
|
|
14237
|
+
})), /*#__PURE__*/React__default["default"].createElement(StyledDonutCircle, null, /*#__PURE__*/React__default["default"].createElement(Typography.Body, null, renderValue(value)))));
|
|
14250
14238
|
};
|
|
14251
14239
|
|
|
14252
14240
|
var StyledWrapper$4 = index$a(reactNative.View)(function (_ref) {
|
|
@@ -15418,21 +15406,17 @@ var StyledSuccessImageContainer = index$a(reactNative.View)(function (_ref4) {
|
|
|
15418
15406
|
height: theme.__hd__.success.sizes.image
|
|
15419
15407
|
};
|
|
15420
15408
|
});
|
|
15421
|
-
var StyledSuccessTitle = index$a(Typography.
|
|
15409
|
+
var StyledSuccessTitle = index$a(Typography.Title)(function (_ref5) {
|
|
15422
15410
|
var theme = _ref5.theme;
|
|
15423
15411
|
return {
|
|
15424
|
-
fontFamily: theme.__hd__.success.fonts.title,
|
|
15425
|
-
fontSize: theme.__hd__.success.fontSizes.title,
|
|
15426
15412
|
textAlign: 'center',
|
|
15427
15413
|
marginBottom: theme.__hd__.success.space.titleMarginBottom,
|
|
15428
15414
|
color: theme.__hd__.success.colors.title
|
|
15429
15415
|
};
|
|
15430
15416
|
});
|
|
15431
|
-
var StyledSuccessDescription = index$a(Typography.
|
|
15417
|
+
var StyledSuccessDescription = index$a(Typography.Body)(function (_ref6) {
|
|
15432
15418
|
var theme = _ref6.theme;
|
|
15433
15419
|
return {
|
|
15434
|
-
fontFamily: theme.__hd__.success.fonts.description,
|
|
15435
|
-
fontSize: theme.__hd__.success.fontSizes.description,
|
|
15436
15420
|
textAlign: 'center',
|
|
15437
15421
|
color: theme.__hd__.success.colors.description
|
|
15438
15422
|
};
|
|
@@ -15490,7 +15474,10 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
15490
15474
|
return /*#__PURE__*/React__default["default"].createElement(StyledSuccessContainer, _extends$1({
|
|
15491
15475
|
testID: testID,
|
|
15492
15476
|
themeVariant: variant
|
|
15493
|
-
}, nativeProps), /*#__PURE__*/React__default["default"].createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React__default["default"].createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React__default["default"].createElement(StyledSuccessTitle,
|
|
15477
|
+
}, nativeProps), /*#__PURE__*/React__default["default"].createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React__default["default"].createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React__default["default"].createElement(StyledSuccessTitle, {
|
|
15478
|
+
level: "h4",
|
|
15479
|
+
typeface: "playful"
|
|
15480
|
+
}, title), !!description && /*#__PURE__*/React__default["default"].createElement(StyledSuccessDescription, null, description)), !!ctaText && /*#__PURE__*/React__default["default"].createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledSuccessButtonPrimary, {
|
|
15494
15481
|
text: ctaText,
|
|
15495
15482
|
onPress: onCtaPress
|
|
15496
15483
|
}), !!showSecondaryButton && /*#__PURE__*/React__default["default"].createElement(StyledSuccessButtonPrimary, {
|
|
@@ -15608,9 +15595,7 @@ var Option = function Option(_ref2) {
|
|
|
15608
15595
|
},
|
|
15609
15596
|
onLayout: onLayout
|
|
15610
15597
|
}, /*#__PURE__*/React__default["default"].createElement(OptionContent, {
|
|
15611
|
-
content: /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
15612
|
-
fontSize: "large"
|
|
15613
|
-
}, text),
|
|
15598
|
+
content: /*#__PURE__*/React__default["default"].createElement(Typography.Body, null, text),
|
|
15614
15599
|
badge: badge
|
|
15615
15600
|
}));
|
|
15616
15601
|
}
|
|
@@ -15979,8 +15964,8 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
15979
15964
|
});
|
|
15980
15965
|
}
|
|
15981
15966
|
if (typeof item === 'string') {
|
|
15982
|
-
return /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
15983
|
-
|
|
15967
|
+
return /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
15968
|
+
variant: active ? 'regular-bold' : 'regular',
|
|
15984
15969
|
numberOfLines: 1,
|
|
15985
15970
|
style: {
|
|
15986
15971
|
color: color
|
|
@@ -16197,8 +16182,8 @@ var getTabItem = function getTabItem(_ref) {
|
|
|
16197
16182
|
color = _ref.color,
|
|
16198
16183
|
active = _ref.active;
|
|
16199
16184
|
if (typeof item === 'string') {
|
|
16200
|
-
return /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
16201
|
-
|
|
16185
|
+
return /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
16186
|
+
variant: active ? 'small-bold' : 'small',
|
|
16202
16187
|
numberOfLines: 1,
|
|
16203
16188
|
style: {
|
|
16204
16189
|
color: color
|
|
@@ -16360,16 +16345,13 @@ var StyledView = index$a(reactNative.View)(function (_ref) {
|
|
|
16360
16345
|
backgroundColor: backgroundColor
|
|
16361
16346
|
};
|
|
16362
16347
|
});
|
|
16363
|
-
var StyledText = index$a(Typography.
|
|
16348
|
+
var StyledText = index$a(Typography.Caption)(function (_ref3) {
|
|
16364
16349
|
var themeIntent = _ref3.themeIntent,
|
|
16365
16350
|
themeVariant = _ref3.themeVariant,
|
|
16366
16351
|
theme = _ref3.theme;
|
|
16367
16352
|
var _ref4 = themeVariant === 'filled' ? getFilledStyles(themeIntent, theme) : getOutlinedStyles(themeIntent, theme),
|
|
16368
16353
|
textColor = _ref4.textColor;
|
|
16369
16354
|
return {
|
|
16370
|
-
fontFamily: theme.__hd__.tag.fonts["default"],
|
|
16371
|
-
fontSize: theme.__hd__.tag.fontSizes["default"],
|
|
16372
|
-
lineHeight: theme.__hd__.tag.lineHeights["default"],
|
|
16373
16355
|
color: textColor,
|
|
16374
16356
|
includeFontPadding: false,
|
|
16375
16357
|
textAlignVertical: 'center',
|
|
@@ -16394,7 +16376,8 @@ var Tag = function Tag(_ref) {
|
|
|
16394
16376
|
testID: testID
|
|
16395
16377
|
}), typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(StyledText, {
|
|
16396
16378
|
themeIntent: intent,
|
|
16397
|
-
themeVariant: variant
|
|
16379
|
+
themeVariant: variant,
|
|
16380
|
+
fontWeight: "semi-bold"
|
|
16398
16381
|
}, content) : content);
|
|
16399
16382
|
};
|
|
16400
16383
|
|
|
@@ -16706,7 +16689,8 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
16706
16689
|
}, icon !== null ? /*#__PURE__*/React__default["default"].createElement(ToastIcon, {
|
|
16707
16690
|
themeIntent: intent,
|
|
16708
16691
|
icon: icon || getIntentIcon(intent)
|
|
16709
|
-
}) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
16692
|
+
}) : null, /*#__PURE__*/React__default["default"].createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
16693
|
+
variant: "small",
|
|
16710
16694
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
16711
16695
|
}, content) : content)), actionLabel ? /*#__PURE__*/React__default["default"].createElement(CTAWrapper, {
|
|
16712
16696
|
testID: "toast-action-button",
|
|
@@ -16714,8 +16698,8 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
16714
16698
|
onAction === null || onAction === void 0 ? void 0 : onAction();
|
|
16715
16699
|
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
16716
16700
|
}
|
|
16717
|
-
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
16718
|
-
|
|
16701
|
+
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
16702
|
+
variant: "small-bold",
|
|
16719
16703
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
16720
16704
|
}, actionLabel) : actionLabel) : null);
|
|
16721
16705
|
};
|
|
@@ -16905,7 +16889,7 @@ var IconButtonWrapper = index$a(reactNative.View)(function (_ref4) {
|
|
|
16905
16889
|
padding: theme.__hd__.toolbar.space.iconButtonWrapperPadding
|
|
16906
16890
|
};
|
|
16907
16891
|
});
|
|
16908
|
-
var IconButtonLabel = index$a(Typography.
|
|
16892
|
+
var IconButtonLabel = index$a(Typography.Body)(function (_ref5) {
|
|
16909
16893
|
var theme = _ref5.theme;
|
|
16910
16894
|
return {
|
|
16911
16895
|
marginLeft: theme.__hd__.toolbar.space.iconButtonLabelMarginLeft
|
|
@@ -16923,8 +16907,7 @@ var IconItem = function IconItem(_ref) {
|
|
|
16923
16907
|
intent: disabled ? 'disabled-text' : intent,
|
|
16924
16908
|
testID: "toolbar-item-icon-".concat(icon)
|
|
16925
16909
|
}), label ? /*#__PURE__*/React__default["default"].createElement(IconButtonLabel, {
|
|
16926
|
-
|
|
16927
|
-
fontWeight: "semi-bold",
|
|
16910
|
+
variant: "regular-bold",
|
|
16928
16911
|
intent: disabled ? 'subdued' : intent,
|
|
16929
16912
|
allowFontScaling: false,
|
|
16930
16913
|
numberOfLines: 1
|
|
@@ -16946,9 +16929,8 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
16946
16929
|
});
|
|
16947
16930
|
}
|
|
16948
16931
|
if (label) {
|
|
16949
|
-
return /*#__PURE__*/React__default["default"].createElement(Typography.
|
|
16950
|
-
|
|
16951
|
-
fontWeight: "semi-bold",
|
|
16932
|
+
return /*#__PURE__*/React__default["default"].createElement(Typography.Body, {
|
|
16933
|
+
variant: "regular-bold",
|
|
16952
16934
|
intent: disabled ? 'disabled' : intent,
|
|
16953
16935
|
allowFontScaling: false,
|
|
16954
16936
|
numberOfLines: 1
|
|
@@ -33406,11 +33388,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
33406
33388
|
}), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
|
|
33407
33389
|
pointerEvents: "none"
|
|
33408
33390
|
}, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabel, {
|
|
33409
|
-
themeState: state
|
|
33410
|
-
fontSize: "small"
|
|
33391
|
+
themeState: state
|
|
33411
33392
|
}, "*"), !!label && /*#__PURE__*/React__default["default"].createElement(StyledLabel, {
|
|
33412
33393
|
testID: "input-label",
|
|
33413
|
-
fontSize: "small",
|
|
33414
33394
|
themeState: state
|
|
33415
33395
|
}, label)), /*#__PURE__*/React__default["default"].createElement(StyledTextInputAndLabelContainer, null, !isFocused && isEmptyValue && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainerInsideTextInput, {
|
|
33416
33396
|
themeVariant: "text",
|
|
@@ -33419,7 +33399,6 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
33419
33399
|
themeState: state
|
|
33420
33400
|
}, "*"), !!label && /*#__PURE__*/React__default["default"].createElement(StyledLabelInsideTextInput, {
|
|
33421
33401
|
testID: "input-label",
|
|
33422
|
-
fontSize: "medium",
|
|
33423
33402
|
themeState: state
|
|
33424
33403
|
}, label)), /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
33425
33404
|
onPress: function onPress(e) {
|