@opengeoweb/shared 9.1.0 → 9.3.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/index.esm.js
CHANGED
|
@@ -24502,8 +24502,9 @@ var CustomAccordion = function CustomAccordion(_a) {
|
|
|
24502
24502
|
_a$transitionDuration = _a.transitionDuration,
|
|
24503
24503
|
transitionDuration = _a$transitionDuration === void 0 ? 150 : _a$transitionDuration,
|
|
24504
24504
|
detailsSx = _a.detailsSx,
|
|
24505
|
+
CustomExpandIcon = _a.CustomExpandIcon,
|
|
24505
24506
|
children = _a.children,
|
|
24506
|
-
props = __rest(_a, ["title", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "children"]);
|
|
24507
|
+
props = __rest(_a, ["title", "defaultExpanded", "disableGutters", "expandedElevation", "collapsedElevation", "transitionDuration", "detailsSx", "CustomExpandIcon", "children"]);
|
|
24507
24508
|
var _React$useState = React$1.useState(defaultExpanded),
|
|
24508
24509
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
24509
24510
|
expanded = _React$useState2[0],
|
|
@@ -24519,7 +24520,7 @@ var CustomAccordion = function CustomAccordion(_a) {
|
|
|
24519
24520
|
timeout: transitionDuration
|
|
24520
24521
|
}
|
|
24521
24522
|
}), /*#__PURE__*/React$1.createElement(AccordionSummary, {
|
|
24522
|
-
expandIcon: /*#__PURE__*/React$1.createElement(ChevronDown, null)
|
|
24523
|
+
expandIcon: CustomExpandIcon ? /*#__PURE__*/React$1.createElement(CustomExpandIcon, null) : /*#__PURE__*/React$1.createElement(ChevronDown, null)
|
|
24523
24524
|
}, title), /*#__PURE__*/React$1.createElement(AccordionDetails, {
|
|
24524
24525
|
sx: detailsSx
|
|
24525
24526
|
}, children));
|
package/package.json
CHANGED
|
@@ -6,5 +6,6 @@ export interface CustomAccordionProps extends Omit<AccordionProps, 'title'> {
|
|
|
6
6
|
collapsedElevation?: number;
|
|
7
7
|
transitionDuration?: number;
|
|
8
8
|
detailsSx?: SxProps<Theme>;
|
|
9
|
+
CustomExpandIcon?: React.ElementType;
|
|
9
10
|
}
|
|
10
11
|
export declare const CustomAccordion: React.FC<CustomAccordionProps>;
|