quirk-ui 0.0.669 → 0.0.671
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/main.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ import { WasHelpfulBlockProps as WasHelpfulBlockProps_2 } from './WasHelpful.typ
|
|
|
45
45
|
|
|
46
46
|
export declare function Accordion({ items, multiple, className, }: AccordionProps): JSX.Element;
|
|
47
47
|
|
|
48
|
-
export declare function AccordionBlock({ heading, items, className, styleOptions, id, }: AccordionBlockProps_2): JSX.Element;
|
|
48
|
+
export declare function AccordionBlock({ heading, items, multiple, className, styleOptions, id, }: AccordionBlockProps_2): JSX.Element;
|
|
49
49
|
|
|
50
50
|
export { AccordionBlockProps }
|
|
51
51
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index9.css');const c=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../../assets/index9.css');const c=require("react/jsx-runtime"),d=require("../../../core/components/Accordion/index.cjs"),i=require("../../ui/PortableTextRenderer/index.cjs"),x=require("../../hooks/useStyleClasses.cjs"),a="_accordion_pip58_1",u="_container_pip58_7",j="_heading_pip58_24",$="_title_pip58_29",k="_cta_pip58_29",y="_text_pip58_29",b="_content_pip58_45",o={accordion:a,container:u,heading:j,title:$,cta:k,text:y,content:b};function m(t){return t.map(e=>({id:e._key,title:e.title,description:c.jsx(i.RichText,{blocks:e.content})}))}function T({heading:t,items:e,multiple:r,className:n,styleOptions:l,id:_}){const s=x.useStyleClasses(l),p=m(e??[]);return c.jsx("section",{id:_,className:`${o.accordion} ${s}`,children:c.jsxs("article",{className:`${s.includes("split")?"split":"default"} ${o.container}`,children:[(t.title||t.description)&&c.jsxs("div",{children:[t.title&&c.jsx(i.RichText,{blocks:t==null?void 0:t.title}),t.description&&c.jsx(i.RichText,{blocks:t.description})]}),c.jsx("div",{className:`${o.content} ${n&&o[n]?o[n]:n??""}`,children:c.jsx(d.Accordion,{items:p,multiple:r})})]})})}exports.AccordionBlock=T;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { jsx as c, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { Accordion as
|
|
2
|
+
import { Accordion as a } from "../../../core/components/Accordion/index.mjs";
|
|
3
3
|
import { RichText as e } from "../../ui/PortableTextRenderer/index.mjs";
|
|
4
|
-
import { useStyleClasses as
|
|
5
|
-
import '../../../assets/index9.css';const
|
|
6
|
-
accordion:
|
|
4
|
+
import { useStyleClasses as m } from "../../hooks/useStyleClasses.mjs";
|
|
5
|
+
import '../../../assets/index9.css';const f = "_accordion_pip58_1", u = "_container_pip58_7", x = "_heading_pip58_24", $ = "_title_pip58_29", k = "_cta_pip58_29", y = "_text_pip58_29", b = "_content_pip58_45", i = {
|
|
6
|
+
accordion: f,
|
|
7
7
|
container: u,
|
|
8
|
-
heading:
|
|
9
|
-
title:
|
|
10
|
-
cta:
|
|
11
|
-
text:
|
|
12
|
-
content:
|
|
8
|
+
heading: x,
|
|
9
|
+
title: $,
|
|
10
|
+
cta: k,
|
|
11
|
+
text: y,
|
|
12
|
+
content: b
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function A(t) {
|
|
15
15
|
return t.map((o) => ({
|
|
16
16
|
id: o._key,
|
|
17
17
|
title: o.title,
|
|
18
18
|
description: /* @__PURE__ */ c(e, { blocks: o.content })
|
|
19
19
|
}));
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function T({
|
|
22
22
|
heading: t,
|
|
23
23
|
items: o,
|
|
24
|
+
multiple: p,
|
|
24
25
|
className: n,
|
|
25
|
-
styleOptions:
|
|
26
|
-
id:
|
|
26
|
+
styleOptions: l,
|
|
27
|
+
id: _
|
|
27
28
|
}) {
|
|
28
|
-
const s =
|
|
29
|
-
return /* @__PURE__ */ c("section", { id:
|
|
29
|
+
const s = m(l), d = A(o ?? []);
|
|
30
|
+
return /* @__PURE__ */ c("section", { id: _, className: `${i.accordion} ${s}`, children: /* @__PURE__ */ r(
|
|
30
31
|
"article",
|
|
31
32
|
{
|
|
32
33
|
className: `${s.includes("split") ? "split" : "default"} ${i.container}`,
|
|
@@ -39,7 +40,7 @@ function S({
|
|
|
39
40
|
"div",
|
|
40
41
|
{
|
|
41
42
|
className: `${i.content} ${n && i[n] ? i[n] : n ?? ""}`,
|
|
42
|
-
children: /* @__PURE__ */ c(
|
|
43
|
+
children: /* @__PURE__ */ c(a, { items: d, multiple: p })
|
|
43
44
|
}
|
|
44
45
|
)
|
|
45
46
|
]
|
|
@@ -47,5 +48,5 @@ function S({
|
|
|
47
48
|
) });
|
|
48
49
|
}
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
+
T as AccordionBlock
|
|
51
52
|
};
|
package/dist/next.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ import { TabsBlockProps as TabsBlockProps_2 } from './TabsBlock.types';
|
|
|
42
42
|
import { WasHelpfulBlockProps } from './next/blocks/WasHelpfulBlock/WasHelpful.types';
|
|
43
43
|
import { WasHelpfulBlockProps as WasHelpfulBlockProps_2 } from './WasHelpful.types';
|
|
44
44
|
|
|
45
|
-
export declare function AccordionBlock({ heading, items, className, styleOptions, id, }: AccordionBlockProps_2): JSX.Element;
|
|
45
|
+
export declare function AccordionBlock({ heading, items, multiple, className, styleOptions, id, }: AccordionBlockProps_2): JSX.Element;
|
|
46
46
|
|
|
47
47
|
export { AccordionBlockProps }
|
|
48
48
|
|