@bitrise/bitkit 12.109.1-alpha.0 → 12.110.1-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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrise/bitkit",
|
|
3
3
|
"description": "Bitrise React component library",
|
|
4
|
-
"version": "12.
|
|
4
|
+
"version": "12.110.1-alpha.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"create-theme-from-tokens": "node ./scripts/createThemeFromTokens.js",
|
|
14
14
|
"lint": "eslint src --ext ts,tsx",
|
|
15
15
|
"lint:fix": "eslint src --ext ts,tsx --fix",
|
|
16
|
-
"postinstall": "npm run theme",
|
|
17
16
|
"release": "release-it minor --ci",
|
|
18
17
|
"release-alpha": "release-it --preRelease=alpha --ci",
|
|
19
18
|
"start": "npm run storybook",
|
|
@@ -69,6 +69,12 @@ const Filter = (props: FilterProps) => {
|
|
|
69
69
|
let newState = { ...cleanState };
|
|
70
70
|
if (value && value.length > 0) {
|
|
71
71
|
newState[category] = value;
|
|
72
|
+
const dependents = getDependents(data, category, filtersDependOn);
|
|
73
|
+
if (dependents.length) {
|
|
74
|
+
dependents.forEach((key) => {
|
|
75
|
+
newState = deleteFromState(key, newState);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
72
78
|
} else if (newState[category]) {
|
|
73
79
|
newState = deleteFromState(category, newState);
|
|
74
80
|
}
|
|
@@ -152,7 +152,7 @@ const FilterForm = (props: FilterFormProps) => {
|
|
|
152
152
|
return (
|
|
153
153
|
<Radio key={opt} value={opt}>
|
|
154
154
|
{hasIcon ? (
|
|
155
|
-
<Box
|
|
155
|
+
<Box as="span" display="flex" gap="4">
|
|
156
156
|
<Icon name={iconsMap[opt]} />
|
|
157
157
|
{label}
|
|
158
158
|
</Box>
|