@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.js
CHANGED
|
@@ -225,7 +225,9 @@ var trigger = "v58j0l3";
|
|
|
225
225
|
// src/components/Accordion/Accordion.tsx
|
|
226
226
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
227
227
|
var Accordion = /* @__PURE__ */ forwardRef2(function Accordion2({ className, ...props }, ref) {
|
|
228
|
-
const
|
|
228
|
+
const { collapsible, ...multipleProps } = props;
|
|
229
|
+
const typedProps = props.type === "multiple" ? multipleProps : { ...multipleProps, collapsible };
|
|
230
|
+
const rootProps = "value" in props ? { ...typedProps, value: props.value ?? (props.type === "multiple" ? [] : "") } : typedProps;
|
|
229
231
|
return /* @__PURE__ */ jsx2(RadixAccordion.Root, { ref, className: cx(root2, className), ...rootProps });
|
|
230
232
|
});
|
|
231
233
|
var AccordionItem = /* @__PURE__ */ forwardRef2(function AccordionItem2({ title: title4, headingLevel = 3, className, children, ...rest }, ref) {
|