@bestow-ui/react 0.8.1 → 0.8.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.
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -308,7 +308,9 @@ var trigger = "v58j0l3";
|
|
|
308
308
|
// src/components/Accordion/Accordion.tsx
|
|
309
309
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
310
310
|
var Accordion = /* @__PURE__ */ (0, import_react2.forwardRef)(function Accordion2({ className, ...props }, ref) {
|
|
311
|
-
const
|
|
311
|
+
const { collapsible, ...multipleProps } = props;
|
|
312
|
+
const typedProps = props.type === "multiple" ? multipleProps : { ...multipleProps, collapsible };
|
|
313
|
+
const rootProps = "value" in props ? { ...typedProps, value: props.value ?? (props.type === "multiple" ? [] : "") } : typedProps;
|
|
312
314
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RadixAccordion.Root, { ref, className: cx(root2, className), ...rootProps });
|
|
313
315
|
});
|
|
314
316
|
var AccordionItem = /* @__PURE__ */ (0, import_react2.forwardRef)(function AccordionItem2({ title: title4, headingLevel = 3, className, children, ...rest }, ref) {
|