@box/blueprint-web 6.8.3 → 6.8.5
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.
|
@@ -58,7 +58,7 @@ const Item = props => {
|
|
|
58
58
|
}),
|
|
59
59
|
children: children
|
|
60
60
|
})
|
|
61
|
-
}
|
|
61
|
+
});
|
|
62
62
|
}
|
|
63
63
|
// TODO: [DSYS-549] Refactor - spread props in a single place
|
|
64
64
|
const {
|
|
@@ -70,7 +70,6 @@ const Item = props => {
|
|
|
70
70
|
return jsxs(RadixAccordion.Item, {
|
|
71
71
|
...itemRest,
|
|
72
72
|
className: accordionItemClasses,
|
|
73
|
-
value: id,
|
|
74
73
|
children: [jsx(RadixAccordion.Header, {
|
|
75
74
|
asChild: true,
|
|
76
75
|
children: jsx(RadixAccordion.Trigger, {
|
|
@@ -100,7 +99,7 @@ const Item = props => {
|
|
|
100
99
|
children: children
|
|
101
100
|
})
|
|
102
101
|
})]
|
|
103
|
-
}
|
|
102
|
+
});
|
|
104
103
|
};
|
|
105
104
|
const Accordion = Object.assign(Root, {
|
|
106
105
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type AccordionMultipleProps, type AccordionSingleProps, type AccordionItemProps as RadixAccordionItemProps } from '@radix-ui/react-accordion';
|
|
3
3
|
import { type RequireAllOrNone } from 'type-fest';
|
|
4
4
|
type Loading = {
|
|
5
5
|
/** Loading state of the section. Loading sections are displaying a placeholder. When this is true `loadingAriaLabel` must also be provided. */
|
|
@@ -9,11 +9,12 @@ type Loading = {
|
|
|
9
9
|
};
|
|
10
10
|
export type AccordionBaseItem = {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* @deprecated
|
|
13
|
+
* Content of the accordion item that is displayed when the section is expanded
|
|
13
14
|
*/
|
|
14
|
-
id
|
|
15
|
+
id?: string;
|
|
15
16
|
/**
|
|
16
|
-
* Content of the accordion item that is displayed when the
|
|
17
|
+
* Content of the accordion item that is displayed when the section is expanded
|
|
17
18
|
*/
|
|
18
19
|
children?: React.ReactNode;
|
|
19
20
|
} & RequireAllOrNone<Loading, keyof Loading>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@box/storybook-utils": "^0.0.3"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "7df47d3b8c1ded04bacc976168763130a51bb22c",
|
|
60
60
|
"module": "lib-esm/index.js",
|
|
61
61
|
"main": "lib-esm/index.js",
|
|
62
62
|
"exports": {
|