@norges-domstoler/dds-components 17.5.0 → 17.5.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.mjs CHANGED
@@ -5427,6 +5427,17 @@ Card.displayName = "Card";
5427
5427
 
5428
5428
  // src/components/Card/CardAccordion/CardAccordion.tsx
5429
5429
  import { forwardRef as forwardRef28 } from "react";
5430
+
5431
+ // src/components/Card/CardAccordion/CardAccordion.module.css
5432
+ var CardAccordion_default = {
5433
+ container: "CardAccordion_container",
5434
+ "header-button": "CardAccordion_header-button",
5435
+ "header-container": "CardAccordion_header-container",
5436
+ body: "CardAccordion_body",
5437
+ body__content: "CardAccordion_body__content"
5438
+ };
5439
+
5440
+ // src/components/Card/CardAccordion/CardAccordion.tsx
5430
5441
  import { jsx as jsx198 } from "react/jsx-runtime";
5431
5442
  var CardAccordion = forwardRef28(
5432
5443
  (props, ref) => {
@@ -5450,7 +5461,12 @@ var CardAccordion = forwardRef28(
5450
5461
  return /* @__PURE__ */ jsx198(
5451
5462
  "div",
5452
5463
  {
5453
- ...getBaseHTMLProps(accordionId, className, htmlProps, rest),
5464
+ ...getBaseHTMLProps(
5465
+ accordionId,
5466
+ cn(className, CardAccordion_default["container"]),
5467
+ htmlProps,
5468
+ rest
5469
+ ),
5454
5470
  ref,
5455
5471
  children: /* @__PURE__ */ jsx198(
5456
5472
  AccordionContextProvider,
@@ -5472,16 +5488,6 @@ CardAccordion.displayName = "CardAccordion";
5472
5488
  // src/components/Card/CardAccordion/CardAccordionHeader.tsx
5473
5489
  import { ddsTokens as ddsTokens14 } from "@norges-domstoler/dds-design-tokens";
5474
5490
  import { forwardRef as forwardRef29 } from "react";
5475
-
5476
- // src/components/Card/CardAccordion/CardAccordion.module.css
5477
- var CardAccordion_default = {
5478
- "header-button": "CardAccordion_header-button",
5479
- "header-container": "CardAccordion_header-container",
5480
- body: "CardAccordion_body",
5481
- body__content: "CardAccordion_body__content"
5482
- };
5483
-
5484
- // src/components/Card/CardAccordion/CardAccordionHeader.tsx
5485
5491
  import { jsx as jsx199, jsxs as jsxs32 } from "react/jsx-runtime";
5486
5492
  var CardAccordionHeader = forwardRef29((props, ref) => {
5487
5493
  const {