@hero-design/rn-work-uikit 1.6.1 → 1.6.2-alpha.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/CHANGELOG.md +7 -0
- package/lib/index.js +215 -17
- package/package.json +2 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +71 -0
- package/stats/1.6.1/rn-work-uikit-stats.html +0 -4844
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @hero-design/rn-work-uikit
|
|
2
2
|
|
|
3
|
+
## 1.6.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`e92d1dab57316441e7b5054debe823328e1a1083`](https://github.com/Thinkei/hero-design/commit/e92d1dab57316441e7b5054debe823328e1a1083)]:
|
|
8
|
+
- @hero-design/rn@8.104.1-alpha.0
|
|
9
|
+
|
|
3
10
|
## 1.6.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -6507,7 +6507,8 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
6507
6507
|
warning: theme.colors.warning,
|
|
6508
6508
|
disabledText: theme.colors.disabledOnDefaultGlobalSurface,
|
|
6509
6509
|
invertedText: theme.colors.onDarkGlobalSurface,
|
|
6510
|
-
muted: theme.colors.mutedOnDefaultGlobalSurface
|
|
6510
|
+
muted: theme.colors.mutedOnDefaultGlobalSurface,
|
|
6511
|
+
inactive: theme.colors.inactiveOnDefaultGlobalSurface
|
|
6511
6512
|
};
|
|
6512
6513
|
var sizes = {
|
|
6513
6514
|
xxxsmall: theme.fontSizes.small,
|
|
@@ -7637,6 +7638,85 @@ var getAppCueTheme = function getAppCueTheme(theme) {
|
|
|
7637
7638
|
};
|
|
7638
7639
|
};
|
|
7639
7640
|
|
|
7641
|
+
var getFilterTriggerTheme = function getFilterTriggerTheme(theme) {
|
|
7642
|
+
var borderWidths = {
|
|
7643
|
+
wrapper: {
|
|
7644
|
+
filled: theme.borderWidths.medium,
|
|
7645
|
+
outlined: theme.borderWidths.medium,
|
|
7646
|
+
ghost: 0
|
|
7647
|
+
}
|
|
7648
|
+
};
|
|
7649
|
+
var colors = {
|
|
7650
|
+
wrapper: {
|
|
7651
|
+
activeBackground: theme.colors.highlightedSurface,
|
|
7652
|
+
inactiveBackground: theme.colors.neutralGlobalSurface,
|
|
7653
|
+
background: {
|
|
7654
|
+
active: {
|
|
7655
|
+
filled: theme.colors.highlightedSurface,
|
|
7656
|
+
outlined: 'transparent',
|
|
7657
|
+
ghost: 'transparent',
|
|
7658
|
+
filledLabeless: theme.colors.neutralGlobalSurface
|
|
7659
|
+
},
|
|
7660
|
+
inactive: {
|
|
7661
|
+
filled: theme.colors.neutralGlobalSurface,
|
|
7662
|
+
outlined: 'transparent',
|
|
7663
|
+
ghost: 'transparent'
|
|
7664
|
+
}
|
|
7665
|
+
},
|
|
7666
|
+
border: {
|
|
7667
|
+
active: {
|
|
7668
|
+
filled: theme.colors.highlightedSurface,
|
|
7669
|
+
outlined: theme.colors.primaryOutline,
|
|
7670
|
+
ghost: 'transparent',
|
|
7671
|
+
filledLabeless: theme.colors.neutralGlobalSurface
|
|
7672
|
+
},
|
|
7673
|
+
inactive: {
|
|
7674
|
+
filled: theme.colors.neutralGlobalSurface,
|
|
7675
|
+
outlined: theme.colors.secondaryOutline,
|
|
7676
|
+
ghost: 'transparent'
|
|
7677
|
+
}
|
|
7678
|
+
}
|
|
7679
|
+
}
|
|
7680
|
+
};
|
|
7681
|
+
var space = {
|
|
7682
|
+
wrapper: {
|
|
7683
|
+
"default": {
|
|
7684
|
+
paddingHorizontal: theme.space.smallMedium,
|
|
7685
|
+
paddingVertical: theme.space.xsmall
|
|
7686
|
+
},
|
|
7687
|
+
labeless: {
|
|
7688
|
+
paddingHorizontal: theme.space.small,
|
|
7689
|
+
paddingVertical: theme.space.xsmall
|
|
7690
|
+
},
|
|
7691
|
+
itemGap: theme.space.xsmall
|
|
7692
|
+
},
|
|
7693
|
+
badge: {
|
|
7694
|
+
labelessRight: theme.space.xxsmall,
|
|
7695
|
+
labelessBottom: theme.space.xxsmall
|
|
7696
|
+
}
|
|
7697
|
+
};
|
|
7698
|
+
var radii = {
|
|
7699
|
+
wrapper: {
|
|
7700
|
+
"default": theme.radii.xxxlarge,
|
|
7701
|
+
labeless: theme.radii.xlarge
|
|
7702
|
+
}
|
|
7703
|
+
};
|
|
7704
|
+
var sizes = {
|
|
7705
|
+
wrapperHeight: scale(36)
|
|
7706
|
+
};
|
|
7707
|
+
var lineHeights = {
|
|
7708
|
+
text: theme.lineHeights.small
|
|
7709
|
+
};
|
|
7710
|
+
return {
|
|
7711
|
+
colors: colors,
|
|
7712
|
+
space: space,
|
|
7713
|
+
radii: radii,
|
|
7714
|
+
borderWidths: borderWidths,
|
|
7715
|
+
sizes: sizes,
|
|
7716
|
+
lineHeights: lineHeights
|
|
7717
|
+
};
|
|
7718
|
+
};
|
|
7719
|
+
|
|
7640
7720
|
var getTheme$1 = function getTheme() {
|
|
7641
7721
|
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
|
|
7642
7722
|
var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : swagSystemPalette$2;
|
|
@@ -7669,6 +7749,7 @@ var getTheme$1 = function getTheme() {
|
|
|
7669
7749
|
empty: getEmptyTheme(globalTheme),
|
|
7670
7750
|
error: getErrorTheme(globalTheme),
|
|
7671
7751
|
fab: getFABTheme(globalTheme),
|
|
7752
|
+
filterTrigger: getFilterTriggerTheme(globalTheme),
|
|
7672
7753
|
icon: getIconTheme(globalTheme),
|
|
7673
7754
|
image: getImageTheme(globalTheme),
|
|
7674
7755
|
list: getListTheme(globalTheme),
|
|
@@ -8412,7 +8493,8 @@ var COLOR_INTENTS = {
|
|
|
8412
8493
|
warning: 'warning',
|
|
8413
8494
|
'disabled-text': 'disabledText',
|
|
8414
8495
|
'text-inverted': 'invertedText',
|
|
8415
|
-
muted: 'muted'
|
|
8496
|
+
muted: 'muted',
|
|
8497
|
+
inactive: 'inactive'
|
|
8416
8498
|
};
|
|
8417
8499
|
var StyledHeroIcon = index$b(HeroIcon)(function (_ref) {
|
|
8418
8500
|
var themeIntent = _ref.themeIntent,
|
|
@@ -8510,7 +8592,7 @@ var FONTWEIGHT_MAP$2 = {
|
|
|
8510
8592
|
regular: 'regular',
|
|
8511
8593
|
'semi-bold': 'semiBold'
|
|
8512
8594
|
};
|
|
8513
|
-
var StyledText$
|
|
8595
|
+
var StyledText$4 = index$b(reactNative.Text)(function (_ref) {
|
|
8514
8596
|
var themeFontSize = _ref.themeFontSize,
|
|
8515
8597
|
themeFontWeight = _ref.themeFontWeight,
|
|
8516
8598
|
themeIntent = _ref.themeIntent,
|
|
@@ -8542,7 +8624,7 @@ var Text = function Text(_ref) {
|
|
|
8542
8624
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8543
8625
|
nativeProps = _objectWithoutProperties(_ref, _excluded$O);
|
|
8544
8626
|
useDeprecation('Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.');
|
|
8545
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledText$
|
|
8627
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledText$4, _extends$1({}, nativeProps, {
|
|
8546
8628
|
themeFontSize: fontSize,
|
|
8547
8629
|
themeFontWeight: fontWeight,
|
|
8548
8630
|
themeIntent: intent,
|
|
@@ -15548,7 +15630,7 @@ var StyledTextWrapper$1 = index$b(reactNative.View)(function () {
|
|
|
15548
15630
|
height: '100%'
|
|
15549
15631
|
};
|
|
15550
15632
|
});
|
|
15551
|
-
var StyledText$
|
|
15633
|
+
var StyledText$3 = index$b(Typography.Body)(function (_ref2) {
|
|
15552
15634
|
var themeSize = _ref2.themeSize,
|
|
15553
15635
|
theme = _ref2.theme;
|
|
15554
15636
|
return _objectSpread2({
|
|
@@ -15603,7 +15685,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
15603
15685
|
themeIntent: intent,
|
|
15604
15686
|
themeSize: size,
|
|
15605
15687
|
style: style
|
|
15606
|
-
}, (source === undefined || hasImageError) && /*#__PURE__*/React__namespace.default.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledText$
|
|
15688
|
+
}, (source === undefined || hasImageError) && /*#__PURE__*/React__namespace.default.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledText$3, {
|
|
15607
15689
|
themeSize: size
|
|
15608
15690
|
}, title)), source !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledImage$1, {
|
|
15609
15691
|
resizeMode: "cover",
|
|
@@ -15819,7 +15901,7 @@ var StyledView$1 = index$b(reactNative.Animated.View)(function (_ref) {
|
|
|
15819
15901
|
borderColor: themeVariant === 'outlined' ? theme.__hd__.badge.colors.border : theme.__hd__.badge.colors[themeIntent]
|
|
15820
15902
|
};
|
|
15821
15903
|
});
|
|
15822
|
-
var StyledText$
|
|
15904
|
+
var StyledText$2 = index$b(Typography.Caption)(function (_ref2) {
|
|
15823
15905
|
var theme = _ref2.theme,
|
|
15824
15906
|
themeSize = _ref2.themeSize;
|
|
15825
15907
|
return {
|
|
@@ -16009,7 +16091,7 @@ var Badge = function Badge(_ref) {
|
|
|
16009
16091
|
icon: icon,
|
|
16010
16092
|
themeSize: size,
|
|
16011
16093
|
intent: "text-inverted"
|
|
16012
|
-
}) : /*#__PURE__*/React__namespace.default.createElement(StyledText$
|
|
16094
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledText$2, {
|
|
16013
16095
|
themeSize: size
|
|
16014
16096
|
}, content));
|
|
16015
16097
|
};
|
|
@@ -24734,7 +24816,7 @@ var StyledContent = index$b(reactNative.View)(function (_ref2) {
|
|
|
24734
24816
|
alignItems: 'center'
|
|
24735
24817
|
};
|
|
24736
24818
|
});
|
|
24737
|
-
var StyledBadge$
|
|
24819
|
+
var StyledBadge$2 = index$b(reactNative.View)(function (_ref3) {
|
|
24738
24820
|
var theme = _ref3.theme;
|
|
24739
24821
|
return {
|
|
24740
24822
|
right: theme.__hd__.mapPin.space.iconRight,
|
|
@@ -24822,7 +24904,7 @@ var MapPin = function MapPin(_ref) {
|
|
|
24822
24904
|
icon: icon,
|
|
24823
24905
|
size: "xsmall",
|
|
24824
24906
|
testID: testID ? "".concat(testID, "-icon") : undefined
|
|
24825
|
-
})), badgeIcon && /*#__PURE__*/React__namespace.default.createElement(StyledBadge$
|
|
24907
|
+
})), badgeIcon && /*#__PURE__*/React__namespace.default.createElement(StyledBadge$2, {
|
|
24826
24908
|
testID: testID ? "".concat(testID, "-badge") : undefined
|
|
24827
24909
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledBadgeIcon, {
|
|
24828
24910
|
icon: badgeIcon,
|
|
@@ -27015,7 +27097,7 @@ var StyledView = index$b(reactNative.View)(function (_ref) {
|
|
|
27015
27097
|
paddingHorizontal: theme.__hd__.tag.space.horizontalPadding
|
|
27016
27098
|
};
|
|
27017
27099
|
});
|
|
27018
|
-
var StyledText = index$b(Typography.Caption)(function (_ref2) {
|
|
27100
|
+
var StyledText$1 = index$b(Typography.Caption)(function (_ref2) {
|
|
27019
27101
|
var themeIntent = _ref2.themeIntent,
|
|
27020
27102
|
theme = _ref2.theme;
|
|
27021
27103
|
return {
|
|
@@ -27041,7 +27123,7 @@ var Tag = function Tag(_ref) {
|
|
|
27041
27123
|
themeIntent: intent,
|
|
27042
27124
|
style: style,
|
|
27043
27125
|
testID: testID
|
|
27044
|
-
}), typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledText, {
|
|
27126
|
+
}), typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledText$1, {
|
|
27045
27127
|
themeIntent: intent,
|
|
27046
27128
|
fontWeight: "semi-bold"
|
|
27047
27129
|
}, content) : content);
|
|
@@ -27134,8 +27216,7 @@ var StyledInputContainer$1 = index$b(reactNative.View)(function (_ref8) {
|
|
|
27134
27216
|
backgroundColor: theme.__hd__.toolbar.colors.inputContainerBackground,
|
|
27135
27217
|
borderRadius: theme.__hd__.toolbar.radii.messageContainer,
|
|
27136
27218
|
height: theme.__hd__.toolbar.sizes.messageInputHeight,
|
|
27137
|
-
paddingHorizontal: theme.__hd__.toolbar.space.messageInputPaddingHorizontal
|
|
27138
|
-
paddingVertical: theme.__hd__.toolbar.space.messageInputPaddingVertical
|
|
27219
|
+
paddingHorizontal: theme.__hd__.toolbar.space.messageInputPaddingHorizontal
|
|
27139
27220
|
};
|
|
27140
27221
|
});
|
|
27141
27222
|
var StyledInput$1 = index$b(reactNative.TextInput)(function (_ref9) {
|
|
@@ -46705,7 +46786,7 @@ var StyledHandlerContainer = index$b(reactNative.View)(function (_ref5) {
|
|
|
46705
46786
|
paddingVertical: theme.__hd__.search.space.inputVerticalPadding
|
|
46706
46787
|
};
|
|
46707
46788
|
});
|
|
46708
|
-
var StyledBadge = index$b(Badge$1)(function (_ref6) {
|
|
46789
|
+
var StyledBadge$1 = index$b(Badge$1)(function (_ref6) {
|
|
46709
46790
|
var theme = _ref6.theme;
|
|
46710
46791
|
return {
|
|
46711
46792
|
position: 'absolute',
|
|
@@ -46907,12 +46988,12 @@ var renderBadge = function renderBadge(props) {
|
|
|
46907
46988
|
var content = props.content,
|
|
46908
46989
|
icon = props.icon,
|
|
46909
46990
|
rest = _objectWithoutProperties(props, _excluded$4);
|
|
46910
|
-
if (content) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge, _extends$1({
|
|
46991
|
+
if (content) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge$1, _extends$1({
|
|
46911
46992
|
intent: "primary",
|
|
46912
46993
|
content: content,
|
|
46913
46994
|
size: "small"
|
|
46914
46995
|
}, rest));
|
|
46915
|
-
if (icon) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge, _extends$1({
|
|
46996
|
+
if (icon) return /*#__PURE__*/React__namespace.default.createElement(StyledBadge$1, _extends$1({
|
|
46916
46997
|
intent: "primary",
|
|
46917
46998
|
icon: icon,
|
|
46918
46999
|
size: "small"
|
|
@@ -47022,6 +47103,122 @@ var FloatingIsland = function FloatingIsland(_ref2) {
|
|
|
47022
47103
|
}));
|
|
47023
47104
|
};
|
|
47024
47105
|
|
|
47106
|
+
var getBackgroundColor = function getBackgroundColor(theme, themeIsActive, themeHasLabel, themeVariant) {
|
|
47107
|
+
var colors = theme.__hd__.filterTrigger.colors;
|
|
47108
|
+
if (themeIsActive && !themeHasLabel && themeVariant === 'filled') {
|
|
47109
|
+
return colors.wrapper.background.active.filledLabeless;
|
|
47110
|
+
}
|
|
47111
|
+
var state = themeIsActive ? 'active' : 'inactive';
|
|
47112
|
+
return colors.wrapper.background[state][themeVariant];
|
|
47113
|
+
};
|
|
47114
|
+
var getBorderStyles = function getBorderStyles(theme, themeIsActive, themeHasLabel, themeVariant) {
|
|
47115
|
+
var _theme$__hd__$filterT = theme.__hd__.filterTrigger,
|
|
47116
|
+
colors = _theme$__hd__$filterT.colors,
|
|
47117
|
+
borderWidths = _theme$__hd__$filterT.borderWidths,
|
|
47118
|
+
radii = _theme$__hd__$filterT.radii;
|
|
47119
|
+
var borderColor;
|
|
47120
|
+
if (themeIsActive && !themeHasLabel && themeVariant === 'filled') {
|
|
47121
|
+
borderColor = colors.wrapper.border.active.filledLabeless;
|
|
47122
|
+
} else {
|
|
47123
|
+
var state = themeIsActive ? 'active' : 'inactive';
|
|
47124
|
+
borderColor = colors.wrapper.border[state][themeVariant];
|
|
47125
|
+
}
|
|
47126
|
+
return {
|
|
47127
|
+
borderWidth: borderWidths.wrapper[themeVariant],
|
|
47128
|
+
borderColor: borderColor,
|
|
47129
|
+
borderRadius: themeHasLabel ? radii.wrapper["default"] : radii.wrapper.labeless
|
|
47130
|
+
};
|
|
47131
|
+
};
|
|
47132
|
+
var getSpacingStyles = function getSpacingStyles(theme, themeHasLabel) {
|
|
47133
|
+
var space = theme.__hd__.filterTrigger.space;
|
|
47134
|
+
var paddingConfig = themeHasLabel ? space.wrapper["default"] : space.wrapper.labeless;
|
|
47135
|
+
return {
|
|
47136
|
+
gap: space.wrapper.itemGap,
|
|
47137
|
+
paddingHorizontal: paddingConfig.paddingHorizontal,
|
|
47138
|
+
paddingVertical: paddingConfig.paddingVertical
|
|
47139
|
+
};
|
|
47140
|
+
};
|
|
47141
|
+
var StyledFilterWrapper = index$b(reactNative.TouchableOpacity)(function (_ref) {
|
|
47142
|
+
var theme = _ref.theme,
|
|
47143
|
+
themeActive = _ref.themeActive,
|
|
47144
|
+
themeVariant = _ref.themeVariant,
|
|
47145
|
+
themeHasLabel = _ref.themeHasLabel;
|
|
47146
|
+
return _objectSpread2(_objectSpread2({
|
|
47147
|
+
position: 'relative',
|
|
47148
|
+
flexDirection: 'row',
|
|
47149
|
+
alignItems: 'center',
|
|
47150
|
+
justifyContent: 'center',
|
|
47151
|
+
alignSelf: 'flex-start',
|
|
47152
|
+
height: theme.__hd__.filterTrigger.sizes.wrapperHeight,
|
|
47153
|
+
backgroundColor: getBackgroundColor(theme, themeActive, themeHasLabel, themeVariant)
|
|
47154
|
+
}, getBorderStyles(theme, themeActive, themeHasLabel, themeVariant)), getSpacingStyles(theme, themeHasLabel));
|
|
47155
|
+
});
|
|
47156
|
+
var StyledBadge = index$b(Badge$1)(function (_ref2) {
|
|
47157
|
+
var theme = _ref2.theme,
|
|
47158
|
+
themeHasLabel = _ref2.themeHasLabel;
|
|
47159
|
+
return _objectSpread2({
|
|
47160
|
+
position: 'absolute'
|
|
47161
|
+
}, themeHasLabel ? {
|
|
47162
|
+
right: 0,
|
|
47163
|
+
bottom: 0
|
|
47164
|
+
} : {
|
|
47165
|
+
right: -theme.__hd__.filterTrigger.space.badge.labelessRight,
|
|
47166
|
+
bottom: -theme.__hd__.filterTrigger.space.badge.labelessBottom
|
|
47167
|
+
});
|
|
47168
|
+
});
|
|
47169
|
+
var StyledText = index$b(Typography.Body)(function (_ref3) {
|
|
47170
|
+
var theme = _ref3.theme;
|
|
47171
|
+
return {
|
|
47172
|
+
lineHeight: theme.__hd__.filterTrigger.lineHeights.text,
|
|
47173
|
+
textAlignVertical: 'center',
|
|
47174
|
+
includeFontPadding: false
|
|
47175
|
+
};
|
|
47176
|
+
});
|
|
47177
|
+
|
|
47178
|
+
var FilterTrigger = function FilterTrigger(_ref) {
|
|
47179
|
+
var label = _ref.label,
|
|
47180
|
+
_ref$active = _ref.active,
|
|
47181
|
+
active = _ref$active === void 0 ? false : _ref$active,
|
|
47182
|
+
_ref$filterCount = _ref.filterCount,
|
|
47183
|
+
filterCount = _ref$filterCount === void 0 ? 0 : _ref$filterCount,
|
|
47184
|
+
_ref$variant = _ref.variant,
|
|
47185
|
+
variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
|
|
47186
|
+
suffix = _ref.suffix,
|
|
47187
|
+
onPress = _ref.onPress,
|
|
47188
|
+
testID = _ref.testID,
|
|
47189
|
+
style = _ref.style;
|
|
47190
|
+
var shouldShowBadge = filterCount > 0 && active;
|
|
47191
|
+
var iconIntent = active ? 'text' : 'inactive';
|
|
47192
|
+
var typographyVariant = active ? 'small-bold' : 'small';
|
|
47193
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledFilterWrapper, {
|
|
47194
|
+
testID: testID,
|
|
47195
|
+
style: style,
|
|
47196
|
+
themeActive: active,
|
|
47197
|
+
themeVariant: variant,
|
|
47198
|
+
onPress: onPress,
|
|
47199
|
+
themeHasLabel: !!label
|
|
47200
|
+
}, label ? /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledText, {
|
|
47201
|
+
variant: typographyVariant
|
|
47202
|
+
}, label), shouldShowBadge && /*#__PURE__*/React__namespace.default.createElement(Badge$1, {
|
|
47203
|
+
content: filterCount,
|
|
47204
|
+
size: "small"
|
|
47205
|
+
}), suffix && /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
47206
|
+
icon: suffix,
|
|
47207
|
+
size: "xxxsmall",
|
|
47208
|
+
intent: iconIntent,
|
|
47209
|
+
testID: "".concat(testID, "-suffix")
|
|
47210
|
+
})) : /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, suffix && /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
47211
|
+
icon: suffix,
|
|
47212
|
+
size: "xsmall",
|
|
47213
|
+
intent: iconIntent,
|
|
47214
|
+
testID: "".concat(testID, "-suffix")
|
|
47215
|
+
}), shouldShowBadge && /*#__PURE__*/React__namespace.default.createElement(StyledBadge, {
|
|
47216
|
+
content: filterCount,
|
|
47217
|
+
size: "small",
|
|
47218
|
+
themeHasLabel: !!label
|
|
47219
|
+
})));
|
|
47220
|
+
};
|
|
47221
|
+
|
|
47025
47222
|
var getZIndexByState = function getZIndexByState(_ref) {
|
|
47026
47223
|
var themeFocused = _ref.themeFocused,
|
|
47027
47224
|
themeHasError = _ref.themeHasError;
|
|
@@ -67159,6 +67356,7 @@ exports.Drawer = index$8;
|
|
|
67159
67356
|
exports.Empty = Empty;
|
|
67160
67357
|
exports.Error = ErrorComponent;
|
|
67161
67358
|
exports.FAB = FAB;
|
|
67359
|
+
exports.FilterTrigger = FilterTrigger;
|
|
67162
67360
|
exports.FlatListWithFAB = FlatListWithFAB;
|
|
67163
67361
|
exports.FloatingIsland = FloatingIsland;
|
|
67164
67362
|
exports.FormGroup = FormGroup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn-work-uikit",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@emotion/native": "^11.9.3",
|
|
24
24
|
"@emotion/primitives-core": "11.0.0",
|
|
25
25
|
"@emotion/react": "^11.9.3",
|
|
26
|
-
"@hero-design/rn": "^8.
|
|
26
|
+
"@hero-design/rn": "^8.104.1-alpha.0",
|
|
27
27
|
"hero-editor": "^1.15.5"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -702,6 +702,76 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
702
702
|
"titleMarginHorizontal": 7.846153846153847,
|
|
703
703
|
},
|
|
704
704
|
},
|
|
705
|
+
"filterTrigger": {
|
|
706
|
+
"borderWidths": {
|
|
707
|
+
"wrapper": {
|
|
708
|
+
"filled": 2,
|
|
709
|
+
"ghost": 0,
|
|
710
|
+
"outlined": 2,
|
|
711
|
+
},
|
|
712
|
+
},
|
|
713
|
+
"colors": {
|
|
714
|
+
"wrapper": {
|
|
715
|
+
"activeBackground": "#ece8ef",
|
|
716
|
+
"background": {
|
|
717
|
+
"active": {
|
|
718
|
+
"filled": "#ece8ef",
|
|
719
|
+
"filledLabeless": "#f6f6f7",
|
|
720
|
+
"ghost": "transparent",
|
|
721
|
+
"outlined": "transparent",
|
|
722
|
+
},
|
|
723
|
+
"inactive": {
|
|
724
|
+
"filled": "#f6f6f7",
|
|
725
|
+
"ghost": "transparent",
|
|
726
|
+
"outlined": "transparent",
|
|
727
|
+
},
|
|
728
|
+
},
|
|
729
|
+
"border": {
|
|
730
|
+
"active": {
|
|
731
|
+
"filled": "#ece8ef",
|
|
732
|
+
"filledLabeless": "#f6f6f7",
|
|
733
|
+
"ghost": "transparent",
|
|
734
|
+
"outlined": "#001f23",
|
|
735
|
+
},
|
|
736
|
+
"inactive": {
|
|
737
|
+
"filled": "#f6f6f7",
|
|
738
|
+
"ghost": "transparent",
|
|
739
|
+
"outlined": "#e8e9ea",
|
|
740
|
+
},
|
|
741
|
+
},
|
|
742
|
+
"inactiveBackground": "#f6f6f7",
|
|
743
|
+
},
|
|
744
|
+
},
|
|
745
|
+
"lineHeights": {
|
|
746
|
+
"text": 15.76923076923077,
|
|
747
|
+
},
|
|
748
|
+
"radii": {
|
|
749
|
+
"wrapper": {
|
|
750
|
+
"default": 24,
|
|
751
|
+
"labeless": 16,
|
|
752
|
+
},
|
|
753
|
+
},
|
|
754
|
+
"sizes": {
|
|
755
|
+
"wrapperHeight": 35.30769230769231,
|
|
756
|
+
},
|
|
757
|
+
"space": {
|
|
758
|
+
"badge": {
|
|
759
|
+
"labelessBottom": 1.9615384615384617,
|
|
760
|
+
"labelessRight": 1.9615384615384617,
|
|
761
|
+
},
|
|
762
|
+
"wrapper": {
|
|
763
|
+
"default": {
|
|
764
|
+
"paddingHorizontal": 11.76923076923077,
|
|
765
|
+
"paddingVertical": 3.9230769230769234,
|
|
766
|
+
},
|
|
767
|
+
"itemGap": 3.9230769230769234,
|
|
768
|
+
"labeless": {
|
|
769
|
+
"paddingHorizontal": 7.846153846153847,
|
|
770
|
+
"paddingVertical": 3.9230769230769234,
|
|
771
|
+
},
|
|
772
|
+
},
|
|
773
|
+
},
|
|
774
|
+
},
|
|
705
775
|
"floatingIsland": {
|
|
706
776
|
"colors": {
|
|
707
777
|
"wrapperBackground": "#ffffff",
|
|
@@ -736,6 +806,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
736
806
|
"colors": {
|
|
737
807
|
"danger": "#cb300a",
|
|
738
808
|
"disabledText": "#bfc1c5",
|
|
809
|
+
"inactive": "#808f91",
|
|
739
810
|
"info": "#b5c3fd",
|
|
740
811
|
"invertedText": "#ffffff",
|
|
741
812
|
"muted": "#4d6265",
|