@hero-design/rn 8.73.0 → 8.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +14 -0
- package/es/index.js +16 -22
- package/lib/index.js +16 -22
- package/package.json +1 -1
- package/src/components/Chip/StyledChip.tsx +1 -7
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +4 -17
- package/src/components/Icon/HeroIcon/index.tsx +3 -1
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +405 -0
- package/src/components/Icon/__tests__/index.spec.tsx +14 -2
- package/src/components/Icon/index.tsx +2 -1
- package/src/components/MapPin/StyledMapPin.tsx +2 -5
- package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +9 -13
- package/src/components/MapPin/index.tsx +2 -2
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
- package/src/components/Typography/Body/__tests__/index.spec.tsx +1 -0
- package/src/components/Typography/Body/index.tsx +2 -1
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +50 -0
- package/src/components/Typography/Caption/__tests__/index.spec.tsx +1 -0
- package/src/components/Typography/Caption/index.tsx +2 -1
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +48 -0
- package/src/components/Typography/Label/__tests__/index.spec.tsx +1 -0
- package/src/components/Typography/Label/index.tsx +2 -1
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
- package/src/components/Typography/Title/__tests__/index.spec.tsx +1 -0
- package/src/components/Typography/Title/index.tsx +2 -1
- package/src/components/Typography/types.ts +2 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +3 -6
- package/src/theme/components/chip.ts +1 -7
- package/src/theme/components/icon.ts +1 -0
- package/src/theme/components/mapPin.ts +0 -1
- package/src/theme/components/typography.ts +1 -0
- package/stats/8.73.1/rn-stats.html +4842 -0
- package/stats/8.74.0/rn-stats.html +4842 -0
- package/types/components/Icon/HeroIcon/index.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/MapPin/StyledMapPin.d.ts +0 -1
- package/types/components/Typography/Body/index.d.ts +1 -1
- package/types/components/Typography/Caption/index.d.ts +1 -1
- package/types/components/Typography/Label/index.d.ts +1 -1
- package/types/components/Typography/Title/index.d.ts +1 -1
- package/types/components/Typography/types.d.ts +1 -1
- package/types/theme/components/chip.d.ts +1 -5
- package/types/theme/components/icon.d.ts +1 -0
- package/types/theme/components/mapPin.d.ts +0 -1
- package/types/theme/components/typography.d.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:3037) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
|
|
2
2
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
3
|
-
(node:
|
|
3
|
+
(node:3037) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
4
4
|
[36m
|
|
5
5
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
6
|
[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
7
|
[1m[33m(!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.[39m[22m
|
|
8
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m52.
|
|
8
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m52.2s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.74.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#3449](https://github.com/Thinkei/hero-design/pull/3449) [`b3029bb02497703734c5fab90aff67d20b94940b`](https://github.com/Thinkei/hero-design/commit/b3029bb02497703734c5fab90aff67d20b94940b) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Icon][typography] Add muted intent
|
|
8
|
+
|
|
9
|
+
## 8.73.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#3447](https://github.com/Thinkei/hero-design/pull/3447) [`c64c609d963c33c72ad416c3833696a8c20f039c`](https://github.com/Thinkei/hero-design/commit/c64c609d963c33c72ad416c3833696a8c20f039c) Thanks [@phucdph](https://github.com/phucdph)! - [MapPin] Update Icon color
|
|
14
|
+
|
|
15
|
+
- [#3445](https://github.com/Thinkei/hero-design/pull/3445) [`7deae3d675374b98dc1d056a21a4e623db963bef`](https://github.com/Thinkei/hero-design/commit/7deae3d675374b98dc1d056a21a4e623db963bef) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Chip] Reduce outlined border width
|
|
16
|
+
|
|
3
17
|
## 8.73.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/es/index.js
CHANGED
|
@@ -2654,19 +2654,15 @@ var getChipTheme = function getChipTheme(theme) {
|
|
|
2654
2654
|
wrapperVerticalPadding: theme.space.small,
|
|
2655
2655
|
compactWrapperHorizontalPadding: theme.space.small,
|
|
2656
2656
|
compactWrapperVerticalPadding: theme.space.xsmall,
|
|
2657
|
-
iconWrapperHorizontalMargin: theme.space.small
|
|
2658
|
-
outlinedSelectedMarginTop: -theme.space.xxsmall
|
|
2659
|
-
};
|
|
2660
|
-
var sizes = {
|
|
2661
|
-
outlinedDefaultBorder: theme.borderWidths.base,
|
|
2662
|
-
outlinedSelectedBorder: theme.borderWidths.medium
|
|
2657
|
+
iconWrapperHorizontalMargin: theme.space.small
|
|
2663
2658
|
};
|
|
2664
2659
|
var radii = {
|
|
2665
2660
|
wrapper: theme.radii.rounded
|
|
2666
2661
|
};
|
|
2667
2662
|
var borderWidths = {
|
|
2668
2663
|
wrapper: theme.borderWidths.base,
|
|
2669
|
-
icon: theme.borderWidths.medium
|
|
2664
|
+
icon: theme.borderWidths.medium,
|
|
2665
|
+
outlinedDefaultBorder: theme.borderWidths.base
|
|
2670
2666
|
};
|
|
2671
2667
|
var shadows = {
|
|
2672
2668
|
filledWrapper: theme.shadows["default"]
|
|
@@ -2674,7 +2670,6 @@ var getChipTheme = function getChipTheme(theme) {
|
|
|
2674
2670
|
return {
|
|
2675
2671
|
colors: colors,
|
|
2676
2672
|
space: space,
|
|
2677
|
-
sizes: sizes,
|
|
2678
2673
|
radii: radii,
|
|
2679
2674
|
borderWidths: borderWidths,
|
|
2680
2675
|
shadows: shadows
|
|
@@ -2907,7 +2902,8 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
2907
2902
|
success: theme.colors.success,
|
|
2908
2903
|
warning: theme.colors.warning,
|
|
2909
2904
|
disabledText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2910
|
-
invertedText: theme.colors.onDarkGlobalSurface
|
|
2905
|
+
invertedText: theme.colors.onDarkGlobalSurface,
|
|
2906
|
+
muted: theme.colors.mutedOnDefaultGlobalSurface
|
|
2911
2907
|
};
|
|
2912
2908
|
var sizes = {
|
|
2913
2909
|
xsmall: theme.fontSizes.large,
|
|
@@ -3684,7 +3680,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
3684
3680
|
success: theme.colors.success,
|
|
3685
3681
|
inverted: theme.colors.onDarkGlobalSurface,
|
|
3686
3682
|
archived: theme.colors.onArchivedSurface,
|
|
3687
|
-
disabled: theme.colors.disabledOnDefaultGlobalSurface
|
|
3683
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
3684
|
+
muted: theme.colors.mutedOnDefaultGlobalSurface
|
|
3688
3685
|
};
|
|
3689
3686
|
var fontSizes = {
|
|
3690
3687
|
xsmall: theme.fontSizes.xsmall,
|
|
@@ -3929,8 +3926,7 @@ var getMapPinTheme = function getMapPinTheme(theme) {
|
|
|
3929
3926
|
applied: theme.colors.secondary
|
|
3930
3927
|
},
|
|
3931
3928
|
badge: theme.colors.secondary,
|
|
3932
|
-
background: theme.colors.defaultGlobalSurface
|
|
3933
|
-
iconBackground: theme.colors.mutedOnDefaultGlobalSurface
|
|
3929
|
+
background: theme.colors.defaultGlobalSurface
|
|
3934
3930
|
};
|
|
3935
3931
|
var radii = {
|
|
3936
3932
|
"default": theme.radii.large
|
|
@@ -7798,7 +7794,8 @@ var COLOR_INTENTS = {
|
|
|
7798
7794
|
success: 'success',
|
|
7799
7795
|
warning: 'warning',
|
|
7800
7796
|
'disabled-text': 'disabledText',
|
|
7801
|
-
'text-inverted': 'invertedText'
|
|
7797
|
+
'text-inverted': 'invertedText',
|
|
7798
|
+
muted: 'muted'
|
|
7802
7799
|
};
|
|
7803
7800
|
var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
7804
7801
|
var themeIntent = _ref.themeIntent,
|
|
@@ -13009,7 +13006,7 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
|
|
|
13009
13006
|
{
|
|
13010
13007
|
return {
|
|
13011
13008
|
borderColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBorder : theme.__hd__.chip.colors.outlinedDefaultBorder,
|
|
13012
|
-
borderWidth:
|
|
13009
|
+
borderWidth: theme.__hd__.chip.borderWidths.outlinedDefaultBorder
|
|
13013
13010
|
};
|
|
13014
13011
|
}
|
|
13015
13012
|
case 'compact':
|
|
@@ -13089,8 +13086,7 @@ var StyledChipWrapper = index$a(TouchableOpacity)(function (_ref) {
|
|
|
13089
13086
|
flexDirection: 'row',
|
|
13090
13087
|
alignItems: 'center',
|
|
13091
13088
|
justifyContent: 'center',
|
|
13092
|
-
borderRadius: theme.__hd__.chip.radii.wrapper
|
|
13093
|
-
marginTop: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.space.outlinedSelectedMarginTop : undefined
|
|
13089
|
+
borderRadius: theme.__hd__.chip.radii.wrapper
|
|
13094
13090
|
}, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
|
|
13095
13091
|
});
|
|
13096
13092
|
|
|
@@ -15749,10 +15745,9 @@ var StyledContainer$3 = index$a(View)(function (_ref) {
|
|
|
15749
15745
|
});
|
|
15750
15746
|
var StyledContent = index$a(View)(function (_ref2) {
|
|
15751
15747
|
var theme = _ref2.theme,
|
|
15752
|
-
themeState = _ref2.themeState
|
|
15753
|
-
themeIsIcon = _ref2.themeIsIcon;
|
|
15748
|
+
themeState = _ref2.themeState;
|
|
15754
15749
|
return {
|
|
15755
|
-
backgroundColor:
|
|
15750
|
+
backgroundColor: theme.__hd__.mapPin.colors.background,
|
|
15756
15751
|
borderRadius: theme.__hd__.mapPin.radii["default"],
|
|
15757
15752
|
borderWidth: theme.__hd__.mapPin.borderWidths["default"],
|
|
15758
15753
|
borderColor: theme.__hd__.mapPin.colors.border[themeState],
|
|
@@ -15844,14 +15839,13 @@ var MapPin = function MapPin(_ref) {
|
|
|
15844
15839
|
style: style,
|
|
15845
15840
|
testID: testID
|
|
15846
15841
|
}), /*#__PURE__*/React__default.createElement(StyledContent, {
|
|
15847
|
-
themeState: state
|
|
15848
|
-
themeIsIcon: !!icon
|
|
15842
|
+
themeState: state
|
|
15849
15843
|
}, image && /*#__PURE__*/React__default.createElement(StyledImage, _extends$1({
|
|
15850
15844
|
testID: testID ? "".concat(testID, "-image") : undefined
|
|
15851
15845
|
}, image)), icon && /*#__PURE__*/React__default.createElement(Icon, {
|
|
15852
15846
|
icon: icon,
|
|
15853
15847
|
size: "xsmall",
|
|
15854
|
-
intent: "text
|
|
15848
|
+
intent: "text",
|
|
15855
15849
|
testID: testID ? "".concat(testID, "-icon") : undefined
|
|
15856
15850
|
})), badgeIcon && /*#__PURE__*/React__default.createElement(StyledBadge$1, {
|
|
15857
15851
|
icon: badgeIcon,
|
package/lib/index.js
CHANGED
|
@@ -2681,19 +2681,15 @@ var getChipTheme = function getChipTheme(theme) {
|
|
|
2681
2681
|
wrapperVerticalPadding: theme.space.small,
|
|
2682
2682
|
compactWrapperHorizontalPadding: theme.space.small,
|
|
2683
2683
|
compactWrapperVerticalPadding: theme.space.xsmall,
|
|
2684
|
-
iconWrapperHorizontalMargin: theme.space.small
|
|
2685
|
-
outlinedSelectedMarginTop: -theme.space.xxsmall
|
|
2686
|
-
};
|
|
2687
|
-
var sizes = {
|
|
2688
|
-
outlinedDefaultBorder: theme.borderWidths.base,
|
|
2689
|
-
outlinedSelectedBorder: theme.borderWidths.medium
|
|
2684
|
+
iconWrapperHorizontalMargin: theme.space.small
|
|
2690
2685
|
};
|
|
2691
2686
|
var radii = {
|
|
2692
2687
|
wrapper: theme.radii.rounded
|
|
2693
2688
|
};
|
|
2694
2689
|
var borderWidths = {
|
|
2695
2690
|
wrapper: theme.borderWidths.base,
|
|
2696
|
-
icon: theme.borderWidths.medium
|
|
2691
|
+
icon: theme.borderWidths.medium,
|
|
2692
|
+
outlinedDefaultBorder: theme.borderWidths.base
|
|
2697
2693
|
};
|
|
2698
2694
|
var shadows = {
|
|
2699
2695
|
filledWrapper: theme.shadows["default"]
|
|
@@ -2701,7 +2697,6 @@ var getChipTheme = function getChipTheme(theme) {
|
|
|
2701
2697
|
return {
|
|
2702
2698
|
colors: colors,
|
|
2703
2699
|
space: space,
|
|
2704
|
-
sizes: sizes,
|
|
2705
2700
|
radii: radii,
|
|
2706
2701
|
borderWidths: borderWidths,
|
|
2707
2702
|
shadows: shadows
|
|
@@ -2934,7 +2929,8 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
2934
2929
|
success: theme.colors.success,
|
|
2935
2930
|
warning: theme.colors.warning,
|
|
2936
2931
|
disabledText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
2937
|
-
invertedText: theme.colors.onDarkGlobalSurface
|
|
2932
|
+
invertedText: theme.colors.onDarkGlobalSurface,
|
|
2933
|
+
muted: theme.colors.mutedOnDefaultGlobalSurface
|
|
2938
2934
|
};
|
|
2939
2935
|
var sizes = {
|
|
2940
2936
|
xsmall: theme.fontSizes.large,
|
|
@@ -3711,7 +3707,8 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
3711
3707
|
success: theme.colors.success,
|
|
3712
3708
|
inverted: theme.colors.onDarkGlobalSurface,
|
|
3713
3709
|
archived: theme.colors.onArchivedSurface,
|
|
3714
|
-
disabled: theme.colors.disabledOnDefaultGlobalSurface
|
|
3710
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
3711
|
+
muted: theme.colors.mutedOnDefaultGlobalSurface
|
|
3715
3712
|
};
|
|
3716
3713
|
var fontSizes = {
|
|
3717
3714
|
xsmall: theme.fontSizes.xsmall,
|
|
@@ -3956,8 +3953,7 @@ var getMapPinTheme = function getMapPinTheme(theme) {
|
|
|
3956
3953
|
applied: theme.colors.secondary
|
|
3957
3954
|
},
|
|
3958
3955
|
badge: theme.colors.secondary,
|
|
3959
|
-
background: theme.colors.defaultGlobalSurface
|
|
3960
|
-
iconBackground: theme.colors.mutedOnDefaultGlobalSurface
|
|
3956
|
+
background: theme.colors.defaultGlobalSurface
|
|
3961
3957
|
};
|
|
3962
3958
|
var radii = {
|
|
3963
3959
|
"default": theme.radii.large
|
|
@@ -7825,7 +7821,8 @@ var COLOR_INTENTS = {
|
|
|
7825
7821
|
success: 'success',
|
|
7826
7822
|
warning: 'warning',
|
|
7827
7823
|
'disabled-text': 'disabledText',
|
|
7828
|
-
'text-inverted': 'invertedText'
|
|
7824
|
+
'text-inverted': 'invertedText',
|
|
7825
|
+
muted: 'muted'
|
|
7829
7826
|
};
|
|
7830
7827
|
var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
7831
7828
|
var themeIntent = _ref.themeIntent,
|
|
@@ -13036,7 +13033,7 @@ var StyledChipWrapper = index$a(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
13036
13033
|
{
|
|
13037
13034
|
return {
|
|
13038
13035
|
borderColor: themeSelected ? theme.__hd__.chip.colors.outlinedSelectedBorder : theme.__hd__.chip.colors.outlinedDefaultBorder,
|
|
13039
|
-
borderWidth:
|
|
13036
|
+
borderWidth: theme.__hd__.chip.borderWidths.outlinedDefaultBorder
|
|
13040
13037
|
};
|
|
13041
13038
|
}
|
|
13042
13039
|
case 'compact':
|
|
@@ -13116,8 +13113,7 @@ var StyledChipWrapper = index$a(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
13116
13113
|
flexDirection: 'row',
|
|
13117
13114
|
alignItems: 'center',
|
|
13118
13115
|
justifyContent: 'center',
|
|
13119
|
-
borderRadius: theme.__hd__.chip.radii.wrapper
|
|
13120
|
-
marginTop: themeSelected && themeVariant === 'outlined' ? theme.__hd__.chip.space.outlinedSelectedMarginTop : undefined
|
|
13116
|
+
borderRadius: theme.__hd__.chip.radii.wrapper
|
|
13121
13117
|
}, getShadowStyles()), getBorderStyles()), getPaddingStyles()), getBackgroundStyles());
|
|
13122
13118
|
});
|
|
13123
13119
|
|
|
@@ -15776,10 +15772,9 @@ var StyledContainer$3 = index$a(reactNative.View)(function (_ref) {
|
|
|
15776
15772
|
});
|
|
15777
15773
|
var StyledContent = index$a(reactNative.View)(function (_ref2) {
|
|
15778
15774
|
var theme = _ref2.theme,
|
|
15779
|
-
themeState = _ref2.themeState
|
|
15780
|
-
themeIsIcon = _ref2.themeIsIcon;
|
|
15775
|
+
themeState = _ref2.themeState;
|
|
15781
15776
|
return {
|
|
15782
|
-
backgroundColor:
|
|
15777
|
+
backgroundColor: theme.__hd__.mapPin.colors.background,
|
|
15783
15778
|
borderRadius: theme.__hd__.mapPin.radii["default"],
|
|
15784
15779
|
borderWidth: theme.__hd__.mapPin.borderWidths["default"],
|
|
15785
15780
|
borderColor: theme.__hd__.mapPin.colors.border[themeState],
|
|
@@ -15871,14 +15866,13 @@ var MapPin = function MapPin(_ref) {
|
|
|
15871
15866
|
style: style,
|
|
15872
15867
|
testID: testID
|
|
15873
15868
|
}), /*#__PURE__*/React__namespace.default.createElement(StyledContent, {
|
|
15874
|
-
themeState: state
|
|
15875
|
-
themeIsIcon: !!icon
|
|
15869
|
+
themeState: state
|
|
15876
15870
|
}, image && /*#__PURE__*/React__namespace.default.createElement(StyledImage, _extends$1({
|
|
15877
15871
|
testID: testID ? "".concat(testID, "-image") : undefined
|
|
15878
15872
|
}, image)), icon && /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15879
15873
|
icon: icon,
|
|
15880
15874
|
size: "xsmall",
|
|
15881
|
-
intent: "text
|
|
15875
|
+
intent: "text",
|
|
15882
15876
|
testID: testID ? "".concat(testID, "-icon") : undefined
|
|
15883
15877
|
})), badgeIcon && /*#__PURE__*/React__namespace.default.createElement(StyledBadge$1, {
|
|
15884
15878
|
icon: badgeIcon,
|
package/package.json
CHANGED
|
@@ -27,9 +27,7 @@ const StyledChipWrapper = styled(TouchableOpacity)<StyledChipWrapperProps>(
|
|
|
27
27
|
borderColor: themeSelected
|
|
28
28
|
? theme.__hd__.chip.colors.outlinedSelectedBorder
|
|
29
29
|
: theme.__hd__.chip.colors.outlinedDefaultBorder,
|
|
30
|
-
borderWidth:
|
|
31
|
-
? theme.__hd__.chip.sizes.outlinedSelectedBorder
|
|
32
|
-
: theme.__hd__.chip.sizes.outlinedDefaultBorder,
|
|
30
|
+
borderWidth: theme.__hd__.chip.borderWidths.outlinedDefaultBorder,
|
|
33
31
|
};
|
|
34
32
|
}
|
|
35
33
|
case 'compact':
|
|
@@ -112,10 +110,6 @@ const StyledChipWrapper = styled(TouchableOpacity)<StyledChipWrapperProps>(
|
|
|
112
110
|
alignItems: 'center',
|
|
113
111
|
justifyContent: 'center',
|
|
114
112
|
borderRadius: theme.__hd__.chip.radii.wrapper,
|
|
115
|
-
marginTop:
|
|
116
|
-
themeSelected && themeVariant === 'outlined'
|
|
117
|
-
? theme.__hd__.chip.space.outlinedSelectedMarginTop
|
|
118
|
-
: undefined,
|
|
119
113
|
...getShadowStyles(),
|
|
120
114
|
...getBorderStyles(),
|
|
121
115
|
...getPaddingStyles(),
|
|
@@ -43,10 +43,9 @@ exports[`Chip does not render selected icon when showSelectedIcon is false 1`] =
|
|
|
43
43
|
"backgroundColor": "#e8e9ea",
|
|
44
44
|
"borderColor": "#001f23",
|
|
45
45
|
"borderRadius": 999,
|
|
46
|
-
"borderWidth":
|
|
46
|
+
"borderWidth": 1,
|
|
47
47
|
"flexDirection": "row",
|
|
48
48
|
"justifyContent": "center",
|
|
49
|
-
"marginTop": -2,
|
|
50
49
|
"opacity": 1,
|
|
51
50
|
"paddingHorizontal": 12,
|
|
52
51
|
"paddingVertical": 8,
|
|
@@ -143,7 +142,6 @@ exports[`Chip renders correctly when selected is false 1`] = `
|
|
|
143
142
|
"borderWidth": 1,
|
|
144
143
|
"flexDirection": "row",
|
|
145
144
|
"justifyContent": "center",
|
|
146
|
-
"marginTop": undefined,
|
|
147
145
|
"opacity": 1,
|
|
148
146
|
"paddingHorizontal": 12,
|
|
149
147
|
"paddingVertical": 8,
|
|
@@ -237,10 +235,9 @@ exports[`Chip renders correctly when selected is true 1`] = `
|
|
|
237
235
|
"backgroundColor": "#e8e9ea",
|
|
238
236
|
"borderColor": "#001f23",
|
|
239
237
|
"borderRadius": 999,
|
|
240
|
-
"borderWidth":
|
|
238
|
+
"borderWidth": 1,
|
|
241
239
|
"flexDirection": "row",
|
|
242
240
|
"justifyContent": "center",
|
|
243
|
-
"marginTop": -2,
|
|
244
241
|
"opacity": 1,
|
|
245
242
|
"paddingHorizontal": 12,
|
|
246
243
|
"paddingVertical": 8,
|
|
@@ -364,7 +361,6 @@ exports[`Chip renders correctly with custom icon 1`] = `
|
|
|
364
361
|
"elevation": 3,
|
|
365
362
|
"flexDirection": "row",
|
|
366
363
|
"justifyContent": "center",
|
|
367
|
-
"marginTop": undefined,
|
|
368
364
|
"opacity": 1,
|
|
369
365
|
"paddingHorizontal": 12,
|
|
370
366
|
"paddingVertical": 8,
|
|
@@ -496,7 +492,6 @@ exports[`Chip renders correctly with custom icon 2`] = `
|
|
|
496
492
|
"elevation": 3,
|
|
497
493
|
"flexDirection": "row",
|
|
498
494
|
"justifyContent": "center",
|
|
499
|
-
"marginTop": undefined,
|
|
500
495
|
"opacity": 1,
|
|
501
496
|
"paddingHorizontal": 12,
|
|
502
497
|
"paddingVertical": 8,
|
|
@@ -628,7 +623,6 @@ exports[`Chip renders correctly with default icon 1`] = `
|
|
|
628
623
|
"borderWidth": 1,
|
|
629
624
|
"flexDirection": "row",
|
|
630
625
|
"justifyContent": "center",
|
|
631
|
-
"marginTop": undefined,
|
|
632
626
|
"opacity": 1,
|
|
633
627
|
"paddingHorizontal": 12,
|
|
634
628
|
"paddingVertical": 8,
|
|
@@ -723,10 +717,9 @@ exports[`Chip renders correctly with default icon 2`] = `
|
|
|
723
717
|
"backgroundColor": "#e8e9ea",
|
|
724
718
|
"borderColor": "#001f23",
|
|
725
719
|
"borderRadius": 999,
|
|
726
|
-
"borderWidth":
|
|
720
|
+
"borderWidth": 1,
|
|
727
721
|
"flexDirection": "row",
|
|
728
722
|
"justifyContent": "center",
|
|
729
|
-
"marginTop": -2,
|
|
730
723
|
"opacity": 1,
|
|
731
724
|
"paddingHorizontal": 12,
|
|
732
725
|
"paddingVertical": 8,
|
|
@@ -851,7 +844,6 @@ exports[`Chip renders correctly with variant compact and selected false 1`] = `
|
|
|
851
844
|
"elevation": 3,
|
|
852
845
|
"flexDirection": "row",
|
|
853
846
|
"justifyContent": "center",
|
|
854
|
-
"marginTop": undefined,
|
|
855
847
|
"opacity": 1,
|
|
856
848
|
"paddingHorizontal": 8,
|
|
857
849
|
"paddingVertical": 4,
|
|
@@ -956,7 +948,6 @@ exports[`Chip renders correctly with variant compact and selected true 1`] = `
|
|
|
956
948
|
"elevation": 3,
|
|
957
949
|
"flexDirection": "row",
|
|
958
950
|
"justifyContent": "center",
|
|
959
|
-
"marginTop": undefined,
|
|
960
951
|
"opacity": 1,
|
|
961
952
|
"paddingHorizontal": 8,
|
|
962
953
|
"paddingVertical": 4,
|
|
@@ -1061,7 +1052,6 @@ exports[`Chip renders correctly with variant filled and selected false 1`] = `
|
|
|
1061
1052
|
"elevation": 3,
|
|
1062
1053
|
"flexDirection": "row",
|
|
1063
1054
|
"justifyContent": "center",
|
|
1064
|
-
"marginTop": undefined,
|
|
1065
1055
|
"opacity": 1,
|
|
1066
1056
|
"paddingHorizontal": 12,
|
|
1067
1057
|
"paddingVertical": 8,
|
|
@@ -1166,7 +1156,6 @@ exports[`Chip renders correctly with variant filled and selected true 1`] = `
|
|
|
1166
1156
|
"elevation": 3,
|
|
1167
1157
|
"flexDirection": "row",
|
|
1168
1158
|
"justifyContent": "center",
|
|
1169
|
-
"marginTop": undefined,
|
|
1170
1159
|
"opacity": 1,
|
|
1171
1160
|
"paddingHorizontal": 12,
|
|
1172
1161
|
"paddingVertical": 8,
|
|
@@ -1271,7 +1260,6 @@ exports[`Chip renders correctly with variant outlined and selected false 1`] = `
|
|
|
1271
1260
|
"borderWidth": 1,
|
|
1272
1261
|
"flexDirection": "row",
|
|
1273
1262
|
"justifyContent": "center",
|
|
1274
|
-
"marginTop": undefined,
|
|
1275
1263
|
"opacity": 1,
|
|
1276
1264
|
"paddingHorizontal": 12,
|
|
1277
1265
|
"paddingVertical": 8,
|
|
@@ -1366,10 +1354,9 @@ exports[`Chip renders correctly with variant outlined and selected true 1`] = `
|
|
|
1366
1354
|
"backgroundColor": "#e8e9ea",
|
|
1367
1355
|
"borderColor": "#001f23",
|
|
1368
1356
|
"borderRadius": 999,
|
|
1369
|
-
"borderWidth":
|
|
1357
|
+
"borderWidth": 1,
|
|
1370
1358
|
"flexDirection": "row",
|
|
1371
1359
|
"justifyContent": "center",
|
|
1372
|
-
"marginTop": -2,
|
|
1373
1360
|
"opacity": 1,
|
|
1374
1361
|
"paddingHorizontal": 12,
|
|
1375
1362
|
"paddingVertical": 8,
|
|
@@ -12,7 +12,8 @@ type ThemeIntent =
|
|
|
12
12
|
| 'success'
|
|
13
13
|
| 'warning'
|
|
14
14
|
| 'disabled-text'
|
|
15
|
-
| 'text-inverted'
|
|
15
|
+
| 'text-inverted'
|
|
16
|
+
| 'muted';
|
|
16
17
|
|
|
17
18
|
const HeroIcon = createIconSet(
|
|
18
19
|
glyphMap,
|
|
@@ -30,6 +31,7 @@ const COLOR_INTENTS = {
|
|
|
30
31
|
warning: 'warning',
|
|
31
32
|
'disabled-text': 'disabledText',
|
|
32
33
|
'text-inverted': 'invertedText',
|
|
34
|
+
muted: 'muted',
|
|
33
35
|
} as const;
|
|
34
36
|
|
|
35
37
|
const StyledHeroIcon = styled(HeroIcon)<{
|