@hero-design/rn 7.8.0 → 7.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/es/index.js +10 -6
- package/lib/index.js +10 -6
- package/package.json +2 -2
- package/src/components/Card/DataCard/StyledDataCard.tsx +1 -3
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +0 -1
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +0 -5
- package/src/components/Card/StyledCard.tsx +1 -3
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -1
- package/src/components/Icon/HeroIcon/index.tsx +3 -1
- package/src/components/Icon/index.tsx +2 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/card.ts +5 -1
- package/src/theme/components/icon.ts +1 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/__tests__/index.spec.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
- package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
- package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
- package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
- package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts +0 -0
- package/types/components/Card/DataCard/__tests__/index.spec.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
- package/types/components/Card/__tests__/index.spec.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -0
- package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
- package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
- package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
- package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
- package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +1 -1
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/__tests__/BasicListItem.spec.d.ts +0 -0
- package/types/components/List/__tests__/ListItem.spec.d.ts +0 -0
- package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +0 -0
- package/types/components/List/__tests__/StyledListItem.spec.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
- package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
- package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +0 -0
- package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +0 -0
- package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/__tests__/StyledSelect.spec.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -0
- package/types/components/Switch/__tests__/index.spec.d.ts +0 -0
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
- package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
- package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/__tests__/Toast.spec.d.ts +0 -0
- package/types/components/Toast/__tests__/ToastContainer.spec.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +0 -0
- package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
- package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/__tests__/index.spec.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/card.d.ts +3 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +1 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +0 -0
- package/types/utils/__tests__/scale.spec.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/types/components/Select/MultiSelect/Footer.d.ts +0 -5
- package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +0 -26
- package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +0 -1
- package/types/components/Select/MultiSelect/types.d.ts +0 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
[34m@hero-design/rn:build[0m: cache hit, replaying output [
|
|
1
|
+
[34m@hero-design/rn:build[0m: cache hit, replaying output [2me062770c8d58771a[0m
|
|
2
2
|
[34m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
3
|
[34m@hero-design/rn:build: [0m$ rollup -c
|
|
4
4
|
[34m@hero-design/rn:build: [0m[36m
|
|
5
5
|
[34m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
6
|
[34m@hero-design/rn:build: [0m[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
7
|
-
[34m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m7.
|
|
7
|
+
[34m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m7.1s[22m[39m
|
|
8
8
|
[34m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly
|
package/es/index.js
CHANGED
|
@@ -2975,11 +2975,15 @@ var getCardTheme = function getCardTheme(theme) {
|
|
|
2975
2975
|
danger: theme.colors.dangerMediumLight
|
|
2976
2976
|
}
|
|
2977
2977
|
};
|
|
2978
|
+
var sizes = {
|
|
2979
|
+
indicatorWidth: theme.space.medium
|
|
2980
|
+
};
|
|
2978
2981
|
var radii = {
|
|
2979
2982
|
"default": theme.radii.large
|
|
2980
2983
|
};
|
|
2981
2984
|
return {
|
|
2982
2985
|
colors: colors,
|
|
2986
|
+
sizes: sizes,
|
|
2983
2987
|
radii: radii
|
|
2984
2988
|
};
|
|
2985
2989
|
};
|
|
@@ -3135,7 +3139,8 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
3135
3139
|
danger: theme.colors.danger,
|
|
3136
3140
|
success: theme.colors.success,
|
|
3137
3141
|
warning: theme.colors.warning,
|
|
3138
|
-
disabledText: theme.colors.disabledText
|
|
3142
|
+
disabledText: theme.colors.disabledText,
|
|
3143
|
+
invertedText: theme.colors.invertedText
|
|
3139
3144
|
};
|
|
3140
3145
|
var sizes = {
|
|
3141
3146
|
xsmall: theme.fontSizes.large,
|
|
@@ -15399,7 +15404,8 @@ var COLOR_INTENTS = {
|
|
|
15399
15404
|
danger: 'danger',
|
|
15400
15405
|
success: 'success',
|
|
15401
15406
|
warning: 'warning',
|
|
15402
|
-
'disabled-text': 'disabledText'
|
|
15407
|
+
'disabled-text': 'disabledText',
|
|
15408
|
+
'text-inverted': 'invertedText'
|
|
15403
15409
|
};
|
|
15404
15410
|
var StyledHeroIcon = index$5(HeroIcon)(function (_ref) {
|
|
15405
15411
|
var themeIntent = _ref.themeIntent,
|
|
@@ -16640,7 +16646,6 @@ var StyledDataCard = index$5(View)(function (_ref) {
|
|
|
16640
16646
|
return {
|
|
16641
16647
|
borderRadius: theme.__hd__.card.radii["default"],
|
|
16642
16648
|
overflow: 'hidden',
|
|
16643
|
-
flex: 1,
|
|
16644
16649
|
flexDirection: 'row'
|
|
16645
16650
|
};
|
|
16646
16651
|
});
|
|
@@ -16649,7 +16654,7 @@ var Indicator = index$5(View)(function (_ref2) {
|
|
|
16649
16654
|
themeIntent = _ref2.themeIntent;
|
|
16650
16655
|
return {
|
|
16651
16656
|
backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
|
|
16652
|
-
width:
|
|
16657
|
+
width: theme.__hd__.card.sizes.indicatorWidth,
|
|
16653
16658
|
height: '100%'
|
|
16654
16659
|
};
|
|
16655
16660
|
});
|
|
@@ -16676,7 +16681,6 @@ var StyledCard = index$5(View)(function (_ref) {
|
|
|
16676
16681
|
overflow: 'hidden'
|
|
16677
16682
|
};
|
|
16678
16683
|
var dataStyles = {
|
|
16679
|
-
flex: 1,
|
|
16680
16684
|
flexDirection: 'row'
|
|
16681
16685
|
};
|
|
16682
16686
|
|
|
@@ -16692,7 +16696,7 @@ var LeftDataCard = index$5(View)(function (_ref2) {
|
|
|
16692
16696
|
var theme = _ref2.theme;
|
|
16693
16697
|
return {
|
|
16694
16698
|
backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
|
|
16695
|
-
width:
|
|
16699
|
+
width: theme.__hd__.card.sizes.indicatorWidth,
|
|
16696
16700
|
height: '100%'
|
|
16697
16701
|
};
|
|
16698
16702
|
});
|
package/lib/index.js
CHANGED
|
@@ -3002,11 +3002,15 @@ var getCardTheme = function getCardTheme(theme) {
|
|
|
3002
3002
|
danger: theme.colors.dangerMediumLight
|
|
3003
3003
|
}
|
|
3004
3004
|
};
|
|
3005
|
+
var sizes = {
|
|
3006
|
+
indicatorWidth: theme.space.medium
|
|
3007
|
+
};
|
|
3005
3008
|
var radii = {
|
|
3006
3009
|
"default": theme.radii.large
|
|
3007
3010
|
};
|
|
3008
3011
|
return {
|
|
3009
3012
|
colors: colors,
|
|
3013
|
+
sizes: sizes,
|
|
3010
3014
|
radii: radii
|
|
3011
3015
|
};
|
|
3012
3016
|
};
|
|
@@ -3162,7 +3166,8 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
3162
3166
|
danger: theme.colors.danger,
|
|
3163
3167
|
success: theme.colors.success,
|
|
3164
3168
|
warning: theme.colors.warning,
|
|
3165
|
-
disabledText: theme.colors.disabledText
|
|
3169
|
+
disabledText: theme.colors.disabledText,
|
|
3170
|
+
invertedText: theme.colors.invertedText
|
|
3166
3171
|
};
|
|
3167
3172
|
var sizes = {
|
|
3168
3173
|
xsmall: theme.fontSizes.large,
|
|
@@ -15426,7 +15431,8 @@ var COLOR_INTENTS = {
|
|
|
15426
15431
|
danger: 'danger',
|
|
15427
15432
|
success: 'success',
|
|
15428
15433
|
warning: 'warning',
|
|
15429
|
-
'disabled-text': 'disabledText'
|
|
15434
|
+
'disabled-text': 'disabledText',
|
|
15435
|
+
'text-inverted': 'invertedText'
|
|
15430
15436
|
};
|
|
15431
15437
|
var StyledHeroIcon = index$5(HeroIcon)(function (_ref) {
|
|
15432
15438
|
var themeIntent = _ref.themeIntent,
|
|
@@ -16667,7 +16673,6 @@ var StyledDataCard = index$5(ReactNative.View)(function (_ref) {
|
|
|
16667
16673
|
return {
|
|
16668
16674
|
borderRadius: theme.__hd__.card.radii["default"],
|
|
16669
16675
|
overflow: 'hidden',
|
|
16670
|
-
flex: 1,
|
|
16671
16676
|
flexDirection: 'row'
|
|
16672
16677
|
};
|
|
16673
16678
|
});
|
|
@@ -16676,7 +16681,7 @@ var Indicator = index$5(ReactNative.View)(function (_ref2) {
|
|
|
16676
16681
|
themeIntent = _ref2.themeIntent;
|
|
16677
16682
|
return {
|
|
16678
16683
|
backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
|
|
16679
|
-
width:
|
|
16684
|
+
width: theme.__hd__.card.sizes.indicatorWidth,
|
|
16680
16685
|
height: '100%'
|
|
16681
16686
|
};
|
|
16682
16687
|
});
|
|
@@ -16703,7 +16708,6 @@ var StyledCard = index$5(ReactNative.View)(function (_ref) {
|
|
|
16703
16708
|
overflow: 'hidden'
|
|
16704
16709
|
};
|
|
16705
16710
|
var dataStyles = {
|
|
16706
|
-
flex: 1,
|
|
16707
16711
|
flexDirection: 'row'
|
|
16708
16712
|
};
|
|
16709
16713
|
|
|
@@ -16719,7 +16723,7 @@ var LeftDataCard = index$5(ReactNative.View)(function (_ref2) {
|
|
|
16719
16723
|
var theme = _ref2.theme;
|
|
16720
16724
|
return {
|
|
16721
16725
|
backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
|
|
16722
|
-
width:
|
|
16726
|
+
width: theme.__hd__.card.sizes.indicatorWidth,
|
|
16723
16727
|
height: '100%'
|
|
16724
16728
|
};
|
|
16725
16729
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "7.
|
|
24
|
+
"@hero-design/colors": "7.9.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "17.0.2",
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import styled from '@emotion/native';
|
|
3
|
-
import { scale } from '../../../utils/scale';
|
|
4
3
|
|
|
5
4
|
const StyledDataCard = styled(View)(({ theme }) => ({
|
|
6
5
|
borderRadius: theme.__hd__.card.radii.default,
|
|
7
6
|
overflow: 'hidden',
|
|
8
|
-
flex: 1,
|
|
9
7
|
flexDirection: 'row',
|
|
10
8
|
}));
|
|
11
9
|
|
|
@@ -13,7 +11,7 @@ const Indicator = styled(View)<{
|
|
|
13
11
|
themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived';
|
|
14
12
|
}>(({ theme, themeIntent }) => ({
|
|
15
13
|
backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
|
|
16
|
-
width:
|
|
14
|
+
width: theme.__hd__.card.sizes.indicatorWidth,
|
|
17
15
|
height: '100%',
|
|
18
16
|
}));
|
|
19
17
|
|
|
@@ -6,7 +6,6 @@ exports[`DataCard renders correctly when intent is archived 1`] = `
|
|
|
6
6
|
Array [
|
|
7
7
|
Object {
|
|
8
8
|
"borderRadius": 12,
|
|
9
|
-
"flex": 1,
|
|
10
9
|
"flexDirection": "row",
|
|
11
10
|
"overflow": "hidden",
|
|
12
11
|
},
|
|
@@ -37,7 +36,6 @@ exports[`DataCard renders correctly when intent is danger 1`] = `
|
|
|
37
36
|
Array [
|
|
38
37
|
Object {
|
|
39
38
|
"borderRadius": 12,
|
|
40
|
-
"flex": 1,
|
|
41
39
|
"flexDirection": "row",
|
|
42
40
|
"overflow": "hidden",
|
|
43
41
|
},
|
|
@@ -68,7 +66,6 @@ exports[`DataCard renders correctly when intent is info 1`] = `
|
|
|
68
66
|
Array [
|
|
69
67
|
Object {
|
|
70
68
|
"borderRadius": 12,
|
|
71
|
-
"flex": 1,
|
|
72
69
|
"flexDirection": "row",
|
|
73
70
|
"overflow": "hidden",
|
|
74
71
|
},
|
|
@@ -99,7 +96,6 @@ exports[`DataCard renders correctly when intent is success 1`] = `
|
|
|
99
96
|
Array [
|
|
100
97
|
Object {
|
|
101
98
|
"borderRadius": 12,
|
|
102
|
-
"flex": 1,
|
|
103
99
|
"flexDirection": "row",
|
|
104
100
|
"overflow": "hidden",
|
|
105
101
|
},
|
|
@@ -130,7 +126,6 @@ exports[`DataCard renders correctly when intent is warning 1`] = `
|
|
|
130
126
|
Array [
|
|
131
127
|
Object {
|
|
132
128
|
"borderRadius": 12,
|
|
133
|
-
"flex": 1,
|
|
134
129
|
"flexDirection": "row",
|
|
135
130
|
"overflow": "hidden",
|
|
136
131
|
},
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import styled from '@emotion/native';
|
|
3
|
-
import { scale } from '../../utils/scale';
|
|
4
3
|
|
|
5
4
|
const StyledCard = styled(View)<{ themeVariant: 'basic' | 'data' }>(
|
|
6
5
|
({ themeVariant, theme }) => {
|
|
@@ -10,7 +9,6 @@ const StyledCard = styled(View)<{ themeVariant: 'basic' | 'data' }>(
|
|
|
10
9
|
} as const;
|
|
11
10
|
|
|
12
11
|
const dataStyles = {
|
|
13
|
-
flex: 1,
|
|
14
12
|
flexDirection: 'row',
|
|
15
13
|
};
|
|
16
14
|
|
|
@@ -25,7 +23,7 @@ const StyledCard = styled(View)<{ themeVariant: 'basic' | 'data' }>(
|
|
|
25
23
|
|
|
26
24
|
const LeftDataCard = styled(View)(({ theme }) => ({
|
|
27
25
|
backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
|
|
28
|
-
width:
|
|
26
|
+
width: theme.__hd__.card.sizes.indicatorWidth,
|
|
29
27
|
height: '100%',
|
|
30
28
|
}));
|
|
31
29
|
|
|
@@ -10,7 +10,8 @@ type ThemeIntent =
|
|
|
10
10
|
| 'danger'
|
|
11
11
|
| 'success'
|
|
12
12
|
| 'warning'
|
|
13
|
-
| 'disabled-text'
|
|
13
|
+
| 'disabled-text'
|
|
14
|
+
| 'text-inverted';
|
|
14
15
|
|
|
15
16
|
const HeroIcon = createIconSetFromIcoMoon(
|
|
16
17
|
heroIconConfig,
|
|
@@ -26,6 +27,7 @@ const COLOR_INTENTS = {
|
|
|
26
27
|
success: 'success',
|
|
27
28
|
warning: 'warning',
|
|
28
29
|
'disabled-text': 'disabledText',
|
|
30
|
+
'text-inverted': 'invertedText',
|
|
29
31
|
} as const;
|
|
30
32
|
|
|
31
33
|
const StyledHeroIcon = styled(HeroIcon)<{
|
|
@@ -180,6 +180,9 @@ Object {
|
|
|
180
180
|
"radii": Object {
|
|
181
181
|
"default": 12,
|
|
182
182
|
},
|
|
183
|
+
"sizes": Object {
|
|
184
|
+
"indicatorWidth": 16,
|
|
185
|
+
},
|
|
183
186
|
},
|
|
184
187
|
"checkbox": Object {
|
|
185
188
|
"borderWidths": Object {
|
|
@@ -293,6 +296,7 @@ Object {
|
|
|
293
296
|
"danger": "#de350b",
|
|
294
297
|
"disabledText": "#8b8d92",
|
|
295
298
|
"info": "#4568fb",
|
|
299
|
+
"invertedText": "#ffffff",
|
|
296
300
|
"primary": "#7622d7",
|
|
297
301
|
"success": "#01b39c",
|
|
298
302
|
"text": "#292a2b",
|
|
@@ -12,11 +12,15 @@ const getCardTheme = (theme: GlobalTheme) => {
|
|
|
12
12
|
},
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
const sizes = {
|
|
16
|
+
indicatorWidth: theme.space.medium,
|
|
17
|
+
};
|
|
18
|
+
|
|
15
19
|
const radii = {
|
|
16
20
|
default: theme.radii.large,
|
|
17
21
|
};
|
|
18
22
|
|
|
19
|
-
return { colors, radii };
|
|
23
|
+
return { colors, sizes, radii };
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
export default getCardTheme;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
2
|
-
declare type ThemeIntent = 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text';
|
|
2
|
+
declare type ThemeIntent = 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted';
|
|
3
3
|
declare const StyledHeroIcon: import("@emotion/native").StyledComponent<import("react-native-vector-icons/Icon").IconProps & {
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
as?: import("react").ElementType<any> | undefined;
|
|
File without changes
|
|
File without changes
|
|
@@ -9,7 +9,7 @@ export interface IconProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* Intent of the Icon.
|
|
11
11
|
*/
|
|
12
|
-
intent?: 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text';
|
|
12
|
+
intent?: 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted';
|
|
13
13
|
/**
|
|
14
14
|
* Size of the Icon.
|
|
15
15
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|