@majoo-ui/react 1.60.2-rc.4 → 1.60.2-rc.6
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/components/accordion/Accordion.d.ts +4 -0
- package/index.esm.js +8 -7
- package/index.umd.js +7 -6
- package/package.json +1 -1
|
@@ -25,6 +25,10 @@ interface AccordionTriggerProps extends AccordionTriggerPrimitiveProps, BaseRadi
|
|
|
25
25
|
* Specify the arrow icon color.
|
|
26
26
|
*/
|
|
27
27
|
arrowColor?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Custom the arrow component.
|
|
30
|
+
*/
|
|
31
|
+
customArrow?: React.ReactNode;
|
|
28
32
|
children: React.ReactNode;
|
|
29
33
|
}
|
|
30
34
|
export declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
package/index.esm.js
CHANGED
|
@@ -21323,24 +21323,25 @@ const AccordionTrigger = /*#__PURE__*/React.forwardRef((_a, forwardedRef) => {
|
|
|
21323
21323
|
children,
|
|
21324
21324
|
arrowPosition = 'right',
|
|
21325
21325
|
hasContent = true,
|
|
21326
|
-
arrowColor = 'white'
|
|
21326
|
+
arrowColor = 'white',
|
|
21327
|
+
customArrow
|
|
21327
21328
|
} = _a,
|
|
21328
|
-
props = __rest(_a, ["children", "arrowPosition", "hasContent", "arrowColor"]);
|
|
21329
|
+
props = __rest(_a, ["children", "arrowPosition", "hasContent", "arrowColor", "customArrow"]);
|
|
21329
21330
|
return jsx(StyledHeader, {
|
|
21330
21331
|
children: jsx(StyledTrigger, Object.assign({}, props, {
|
|
21331
21332
|
arrowPosition: arrowPosition,
|
|
21332
21333
|
ref: forwardedRef
|
|
21333
21334
|
}, {
|
|
21334
21335
|
children: arrowPosition === 'right' ? jsxs(Fragment, {
|
|
21335
|
-
children: [children, hasContent && jsx(ChevronDownOutline, {
|
|
21336
|
+
children: [children, hasContent && (customArrow || jsx(ChevronDownOutline, {
|
|
21336
21337
|
className: "icon-cdf right",
|
|
21337
21338
|
color: arrowColor
|
|
21338
|
-
}, void 0)]
|
|
21339
|
+
}, void 0))]
|
|
21339
21340
|
}, void 0) : jsxs(Fragment, {
|
|
21340
|
-
children: [hasContent && jsx(ChevronDownOutline, {
|
|
21341
|
-
className: "icon-cdf
|
|
21341
|
+
children: [hasContent && (customArrow || jsx(ChevronDownOutline, {
|
|
21342
|
+
className: "icon-cdf right",
|
|
21342
21343
|
color: arrowColor
|
|
21343
|
-
}, void 0), children]
|
|
21344
|
+
}, void 0)), children]
|
|
21344
21345
|
}, void 0)
|
|
21345
21346
|
}), void 0)
|
|
21346
21347
|
}, void 0);
|
package/index.umd.js
CHANGED
|
@@ -21655,22 +21655,23 @@
|
|
|
21655
21655
|
hasContent = _c === void 0 ? true : _c,
|
|
21656
21656
|
_d = _a.arrowColor,
|
|
21657
21657
|
arrowColor = _d === void 0 ? 'white' : _d,
|
|
21658
|
-
|
|
21658
|
+
customArrow = _a.customArrow,
|
|
21659
|
+
props = __rest(_a, ["children", "arrowPosition", "hasContent", "arrowColor", "customArrow"]);
|
|
21659
21660
|
return jsxRuntime.jsx(StyledHeader, {
|
|
21660
21661
|
children: jsxRuntime.jsx(StyledTrigger, __assign({}, props, {
|
|
21661
21662
|
arrowPosition: arrowPosition,
|
|
21662
21663
|
ref: forwardedRef
|
|
21663
21664
|
}, {
|
|
21664
21665
|
children: arrowPosition === 'right' ? jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21665
|
-
children: [children, hasContent && jsxRuntime.jsx(icons.ChevronDownOutline, {
|
|
21666
|
+
children: [children, hasContent && (customArrow || jsxRuntime.jsx(icons.ChevronDownOutline, {
|
|
21666
21667
|
className: "icon-cdf right",
|
|
21667
21668
|
color: arrowColor
|
|
21668
|
-
}, void 0)]
|
|
21669
|
+
}, void 0))]
|
|
21669
21670
|
}, void 0) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
21670
|
-
children: [hasContent && jsxRuntime.jsx(icons.ChevronDownOutline, {
|
|
21671
|
-
className: "icon-cdf
|
|
21671
|
+
children: [hasContent && (customArrow || jsxRuntime.jsx(icons.ChevronDownOutline, {
|
|
21672
|
+
className: "icon-cdf right",
|
|
21672
21673
|
color: arrowColor
|
|
21673
|
-
}, void 0), children]
|
|
21674
|
+
}, void 0)), children]
|
|
21674
21675
|
}, void 0)
|
|
21675
21676
|
}), void 0)
|
|
21676
21677
|
}, void 0);
|