@ceed/cds 1.2.6 → 1.2.7

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.
@@ -56,8 +56,9 @@ declare const MotionAccordions: import("framer-motion").CustomDomComponent<{
56
56
  }, "children" | "transition" | "color" | "variant" | "sx" | "disableDivider" | "size" | keyof import("@mui/joy").AccordionGroupSlotsAndSlotProps>>;
57
57
  declare function Accordions(props: {
58
58
  items: {
59
- summary: string;
59
+ summary: React.ReactNode;
60
60
  details: React.ReactNode;
61
+ defaultExpanded?: boolean;
61
62
  }[];
62
63
  } & React.ComponentProps<typeof MotionAccordions>): React.JSX.Element;
63
64
  declare namespace Accordions {
package/dist/index.cjs CHANGED
@@ -275,11 +275,13 @@ function Accordions(props) {
275
275
  return /* @__PURE__ */ import_react.default.createElement(MotionAccordions, { variant, color, ...innerProps }, items.map((item, index) => /* @__PURE__ */ import_react.default.createElement(
276
276
  Accordion,
277
277
  {
278
+ key: index,
278
279
  summary: item.summary,
279
280
  details: item.details,
280
281
  index,
281
282
  variant,
282
- color
283
+ color,
284
+ defaultExpanded: item.defaultExpanded
283
285
  }
284
286
  )));
285
287
  }
package/dist/index.js CHANGED
@@ -181,11 +181,13 @@ function Accordions(props) {
181
181
  return /* @__PURE__ */ React.createElement(MotionAccordions, { variant, color, ...innerProps }, items.map((item, index) => /* @__PURE__ */ React.createElement(
182
182
  Accordion,
183
183
  {
184
+ key: index,
184
185
  summary: item.summary,
185
186
  details: item.details,
186
187
  index,
187
188
  variant,
188
- color
189
+ color,
190
+ defaultExpanded: item.defaultExpanded
189
191
  }
190
192
  )));
191
193
  }