diginet-core-ui 1.3.52-beta.1 → 1.3.52-beta.2

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.
@@ -82,7 +82,7 @@ const Accordion = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
82
82
  display: 'none'
83
83
  }
84
84
  })));
85
- }, [id, disabled, className, boxShadow, onClick, children, expanded, onExpand, onCollapse, expandState]);
85
+ }, [id, disabled, className, style, boxShadow, onClick, children, expanded, onExpand, onCollapse, expandState]);
86
86
  }));
87
87
  const AccordionRootCSS = css`
88
88
  ${displayBlock};
@@ -35,26 +35,25 @@ const AccordionSummary = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
35
35
  const _SummaryRootCSS = SummaryRootCSS(background);
36
36
 
37
37
  const _onClick = e => {
38
- if (!disabled) {
39
- const target = e.target;
38
+ if (disabled) return;
39
+ const target = e.target;
40
40
 
41
- if (onClickAccordion) {
42
- onClickAccordion();
43
- return;
44
- }
41
+ if (onClickAccordion) {
42
+ onClickAccordion();
43
+ return;
44
+ }
45
45
 
46
- if (onClick && (!expandIconRef.current || !expandIconRef.current.contains(target))) {
47
- onClick(e);
48
- return;
49
- }
46
+ if (onClick && (!expandIconRef.current || !expandIconRef.current.contains(target))) {
47
+ onClick(e);
48
+ return;
49
+ }
50
50
 
51
- if (expandState) {
52
- if (expanded === undefined) setExpandState(false);
53
- !!onCollapse && onCollapse(e);
54
- } else if (!expandState) {
55
- if (expanded === undefined) setExpandState(true);
56
- !!onExpand && onExpand(e);
57
- }
51
+ if (expandState) {
52
+ if (expanded === undefined) setExpandState(false);
53
+ !!onCollapse && onCollapse(e);
54
+ } else if (!expandState) {
55
+ if (expanded === undefined) setExpandState(true);
56
+ !!onExpand && onExpand(e);
58
57
  }
59
58
  };
60
59
 
@@ -137,7 +136,7 @@ const AccordionSummary = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
137
136
  }) : jsx("span", {
138
137
  className: 'Accordion-Collapse-Icon effect'
139
138
  }, collapseIcon)))));
140
- }, [id, expandIcon, expandIconAt, className, background, children, collapseIcon, expandIconProps, expandState]);
139
+ }, [id, expandIcon, expandIconAt, className, background, children, collapseIcon, expandIconProps, style, expandState, disabled]);
141
140
  }));
142
141
  AccordionSummary.defaultProps = {
143
142
  expandIconAt: 'start',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.3.52-beta.1",
3
+ "version": "1.3.52-beta.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "license": "UNLICENSED",