@axos-web-dev/shared-components 0.0.85 → 0.0.86
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.
|
@@ -159,42 +159,39 @@ const Calculator = (props) => {
|
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
161
|
} else
|
|
162
|
-
return /* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
|
|
167
|
-
/* @__PURE__ */ jsx(
|
|
168
|
-
"h2",
|
|
169
|
-
{
|
|
170
|
-
className: clsx(
|
|
171
|
-
"header_2 text_center",
|
|
172
|
-
calculator_headline({ variant })
|
|
173
|
-
),
|
|
174
|
-
children: headline
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
/* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: bodyCopy })
|
|
178
|
-
] }),
|
|
179
|
-
/* @__PURE__ */ jsx("div", { className: "calc section-narrow", children: /* @__PURE__ */ jsx(
|
|
180
|
-
"iframe",
|
|
162
|
+
return /* @__PURE__ */ jsx("section", { id, children: /* @__PURE__ */ jsxs("div", { className: clsx("containment"), children: [
|
|
163
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
164
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
165
|
+
/* @__PURE__ */ jsx(
|
|
166
|
+
"h2",
|
|
181
167
|
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
},
|
|
188
|
-
scrolling: "no",
|
|
189
|
-
frameBorder: "0",
|
|
190
|
-
className: "iframe-calculator",
|
|
191
|
-
allow: "from",
|
|
192
|
-
src: iframe?.src
|
|
168
|
+
className: clsx(
|
|
169
|
+
"header_2 text_center",
|
|
170
|
+
calculator_headline({ variant })
|
|
171
|
+
),
|
|
172
|
+
children: headline
|
|
193
173
|
}
|
|
194
|
-
)
|
|
195
|
-
/* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children:
|
|
196
|
-
] })
|
|
197
|
-
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: bodyCopy })
|
|
176
|
+
] }),
|
|
177
|
+
/* @__PURE__ */ jsx("div", { className: "calc section-narrow", children: /* @__PURE__ */ jsx(
|
|
178
|
+
"iframe",
|
|
179
|
+
{
|
|
180
|
+
ref,
|
|
181
|
+
style: {
|
|
182
|
+
width: "100%",
|
|
183
|
+
maxWidth: "100%",
|
|
184
|
+
minHeight: "clamp(1100px, 200vh)"
|
|
185
|
+
},
|
|
186
|
+
scrolling: "no",
|
|
187
|
+
frameBorder: "0",
|
|
188
|
+
className: "iframe-calculator",
|
|
189
|
+
allow: "from",
|
|
190
|
+
src: iframe?.src
|
|
191
|
+
}
|
|
192
|
+
) }),
|
|
193
|
+
/* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: disclosure })
|
|
194
|
+
] }) });
|
|
198
195
|
};
|
|
199
196
|
export {
|
|
200
197
|
Calculator
|
|
@@ -30,7 +30,6 @@ const AccordionItem = (props) => {
|
|
|
30
30
|
const isOpen = useAccordion((state) => state.itemsOpened);
|
|
31
31
|
const toggle = (event) => {
|
|
32
32
|
event.stopPropagation();
|
|
33
|
-
event.preventDefault();
|
|
34
33
|
const ev = event.target;
|
|
35
34
|
let evClasses = ev.getAttribute("class");
|
|
36
35
|
if (!evClasses) {
|
|
@@ -39,6 +38,7 @@ const AccordionItem = (props) => {
|
|
|
39
38
|
if (!evClasses?.includes(summary) !== (evClasses?.includes(summaryHeader) || evClasses?.includes(icon))) {
|
|
40
39
|
return;
|
|
41
40
|
}
|
|
41
|
+
event.preventDefault();
|
|
42
42
|
if (!isOpen.includes(props.id)) {
|
|
43
43
|
addItem(props.id);
|
|
44
44
|
} else {
|