@axos-web-dev/shared-components 0.0.55 → 0.0.57
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/AlertBanner/index.d.ts +1 -1
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/GoBackButton.d.ts +1 -1
- package/dist/CallToActionBar/CallToActionBar.interface.d.ts +1 -1
- package/dist/CallToActionBar/index.d.ts +1 -1
- package/dist/Carousel/Carousel.css.d.ts +44 -0
- package/dist/Carousel/Carousel.css.js +12 -8
- package/dist/Carousel/index.d.ts +3 -1
- package/dist/Carousel/index.js +84 -31
- package/dist/Chevron/Chevron.interface.d.ts +1 -1
- package/dist/Chevron/index.d.ts +1 -1
- package/dist/Chevron/index.js +2 -0
- package/dist/ContentBanner/ContentBanner.interface.d.ts +1 -1
- package/dist/ContentBanner/index.d.ts +1 -1
- package/dist/DownloadTile/index.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +2 -2
- package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
- package/dist/FaqAccordion/index.d.ts +2 -1
- package/dist/FaqAccordion/index.js +26 -13
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -0
- package/dist/Forms/ContactUsBusiness.js +2 -0
- package/dist/Forms/EmailOnly.js +2 -0
- package/dist/Forms/RenderForm.d.ts +1 -1
- package/dist/Forms/RenderForm.js +2 -0
- package/dist/Forms/ScheduleCall.d.ts +2 -2
- package/dist/Forms/ScheduleCall.js +7 -1
- package/dist/Forms/SuccesForm.js +2 -0
- package/dist/HeroBanner/HeroBanner.interface.d.ts +1 -1
- package/dist/Hyperlink/index.d.ts +1 -1
- package/dist/Hyperlink/index.js +2 -0
- package/dist/IconBillboard/IconBillboard.d.ts +3 -3
- package/dist/IconBillboard/IconBillboard.interface.d.ts +3 -3
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +4 -4
- package/dist/ImageLink/ImageLink.js +2 -0
- package/dist/ImageLink/ImageLinkSet.d.ts +2 -2
- package/dist/ImageLink/ImageLinkSet.js +2 -0
- package/dist/ImageLink/index.js +2 -0
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/InputProps.d.ts +1 -1
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +2 -0
- package/dist/NavigationMenu/index.d.ts +1 -0
- package/dist/NavigationMenu/index.js +4 -2
- package/dist/SetContainer/SetContainer.d.ts +1 -1
- package/dist/SetContainer/SetContainer.js +2 -0
- package/dist/StepItems/StepItems.interface.d.ts +3 -3
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/VideoTile/VideoTile.d.ts +1 -1
- package/dist/VideoWrapper/index.d.ts +1 -1
- package/dist/assets/Carousel/Carousel.css +68 -29
- package/dist/assets/IconBillboard/IconBillboard.css +3 -0
- package/dist/icons/ArrowIcon/index.d.ts +1 -1
- package/dist/main.js +38 -36
- package/dist/utils/faqAccordionOptions.d.ts +1 -0
- package/dist/utils/faqAccordionOptions.js +20 -0
- package/package.json +17 -17
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
import { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
2
|
|
|
3
3
|
export declare const dots: string;
|
|
4
|
+
export declare const headerCarousel: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
5
|
+
variant: {
|
|
6
|
+
primary: {
|
|
7
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
8
|
+
backgroundClip: "text";
|
|
9
|
+
WebkitTextFillColor: "transparent";
|
|
10
|
+
textShadow: "0px 0px #00000000";
|
|
11
|
+
};
|
|
12
|
+
secondary: {
|
|
13
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
14
|
+
backgroundClip: "text";
|
|
15
|
+
WebkitTextFillColor: "transparent";
|
|
16
|
+
textShadow: "0px 0px #00000000";
|
|
17
|
+
};
|
|
18
|
+
tertiary: {
|
|
19
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
20
|
+
backgroundClip: "text";
|
|
21
|
+
WebkitTextFillColor: "transparent";
|
|
22
|
+
textShadow: "0px 0px #00000000";
|
|
23
|
+
};
|
|
24
|
+
quaternary: {
|
|
25
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
26
|
+
backgroundClip: "text";
|
|
27
|
+
WebkitTextFillColor: "transparent";
|
|
28
|
+
textShadow: "0px 0px #00000000";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
4
32
|
export declare const carousel: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
5
33
|
variant: {
|
|
6
34
|
primary: {
|
|
@@ -21,6 +49,22 @@ export declare const carousel: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
21
49
|
};
|
|
22
50
|
};
|
|
23
51
|
}>;
|
|
52
|
+
export declare const descriptionCarousel: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
53
|
+
variant: {
|
|
54
|
+
primary: {
|
|
55
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
56
|
+
};
|
|
57
|
+
secondary: {
|
|
58
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
59
|
+
};
|
|
60
|
+
tertiary: {
|
|
61
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
62
|
+
};
|
|
63
|
+
quaternary: {
|
|
64
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
24
68
|
export declare const authorLocation: string;
|
|
25
69
|
export declare const author: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
26
70
|
variant: {
|
|
@@ -3,20 +3,24 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
5
5
|
var dots = "jgs3fs0";
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
6
|
+
var headerCarousel = createRuntimeFn({ defaultClassName: "jgs3fs1", variantClassNames: { variant: { primary: "jgs3fs2", secondary: "jgs3fs3", tertiary: "jgs3fs4", quaternary: "jgs3fs5" } }, defaultVariants: { variant: "primary" }, compoundVariants: [] });
|
|
7
|
+
var carousel = createRuntimeFn({ defaultClassName: "jgs3fs6", variantClassNames: { variant: { primary: "jgs3fs7", secondary: "jgs3fs8", tertiary: "jgs3fs9", quaternary: "jgs3fsa" } }, defaultVariants: { variant: "primary" }, compoundVariants: [] });
|
|
8
|
+
var descriptionCarousel = createRuntimeFn({ defaultClassName: "jgs3fsb", variantClassNames: { variant: { primary: "jgs3fsc", secondary: "jgs3fsd", tertiary: "jgs3fse", quaternary: "jgs3fsf" } }, defaultVariants: {}, compoundVariants: [] });
|
|
9
|
+
var authorLocation = "jgs3fsg";
|
|
10
|
+
var author = createRuntimeFn({ defaultClassName: "jgs3fsi jgs3fsh", variantClassNames: { variant: { primary: "jgs3fsj", secondary: "jgs3fsk", tertiary: "jgs3fsl", quaternary: "jgs3fsm" } }, defaultVariants: {}, compoundVariants: [] });
|
|
11
|
+
var slideBase = "jgs3fsn";
|
|
12
|
+
var slide = { show: "jgs3fso jgs3fsn", hide: "jgs3fsp jgs3fsn" };
|
|
13
|
+
var slides = "jgs3fsq";
|
|
14
|
+
var icon = createRuntimeFn({ defaultClassName: "jgs3fsr", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
15
|
+
var dot = createRuntimeFn({ defaultClassName: "jgs3fss", variantClassNames: { variant: { primary: "jgs3fst", secondary: "jgs3fsu", tertiary: "jgs3fsv", quaternary: "jgs3fsw" }, selected: { true: "jgs3fsx" } }, defaultVariants: { variant: "primary" }, compoundVariants: [[{ variant: "primary", selected: true }, "jgs3fsy"], [{ variant: "secondary", selected: true }, "jgs3fsz"], [{ variant: "tertiary", selected: true }, "jgs3fs10"], [{ variant: "quaternary", selected: true }, "jgs3fs11"]] });
|
|
14
16
|
export {
|
|
15
17
|
author,
|
|
16
18
|
authorLocation,
|
|
17
19
|
carousel,
|
|
20
|
+
descriptionCarousel,
|
|
18
21
|
dot,
|
|
19
22
|
dots,
|
|
23
|
+
headerCarousel,
|
|
20
24
|
icon,
|
|
21
25
|
slide,
|
|
22
26
|
slideBase,
|
package/dist/Carousel/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { carouselVariants } from './Carousel.css';
|
|
2
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { carouselVariants } from './Carousel.css';
|
|
3
3
|
|
|
4
4
|
export interface SlideProps extends PropsWithChildren {
|
|
5
5
|
id: string | number;
|
|
@@ -13,6 +13,8 @@ export interface CarouselProps extends PropsWithChildren {
|
|
|
13
13
|
time?: number;
|
|
14
14
|
selectedItem?: string | number;
|
|
15
15
|
items?: SlideProps[];
|
|
16
|
+
title?: ReactNode;
|
|
17
|
+
description?: ReactNode;
|
|
16
18
|
}
|
|
17
19
|
export declare const CarouselSlide: (props: SlideProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
|
|
18
20
|
export declare const Carousel: (props: CarouselProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Carousel/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { section_text } from "../IconBillboard/IconBillboard.css.js";
|
|
3
4
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
4
5
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
5
6
|
/* empty css */
|
|
@@ -9,9 +10,56 @@ import SvgQuoteIconGrey from "../icons/QuoteIconGrey.js";
|
|
|
9
10
|
import SvgQuoteIconWhite from "../icons/QuoteIconWhite.js";
|
|
10
11
|
import SvgQuoteIconYellow from "../icons/QuoteIconYellow.js";
|
|
11
12
|
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
import "../Accordion/Accordion.js";
|
|
16
|
+
import "../Accordion/Accordion.css.js";
|
|
17
|
+
import "../AlertBanner/AlertBanner.css.js";
|
|
18
|
+
import "../Modal/contextApi/store.js";
|
|
19
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
12
20
|
import clsx from "clsx";
|
|
13
21
|
import React, { useEffect, Children, cloneElement } from "react";
|
|
14
|
-
import
|
|
22
|
+
import "../Button/Button.css.js";
|
|
23
|
+
import "react-use";
|
|
24
|
+
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
|
+
/* empty css */
|
|
27
|
+
import "../HeroBanner/HeroBanner.css.js";
|
|
28
|
+
import "../ContentBanner/ContentBanner.css.js";
|
|
29
|
+
/* empty css */
|
|
30
|
+
import "../ExecutiveBio/ExecutiveBio.css.js";
|
|
31
|
+
import "../FaqAccordion/index.js";
|
|
32
|
+
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
33
|
+
/* empty css */
|
|
34
|
+
import "@hookform/resolvers/zod";
|
|
35
|
+
import "../Input/Checkbox.js";
|
|
36
|
+
import "../Input/CurrencyInput.js";
|
|
37
|
+
import "../Input/Dropdown.js";
|
|
38
|
+
/* empty css */
|
|
39
|
+
import "../Input/Input.js";
|
|
40
|
+
import "../Input/Input.css.js";
|
|
41
|
+
import "../Input/InputPhone.js";
|
|
42
|
+
import "react-hook-form";
|
|
43
|
+
import "../Forms/Forms.css.js";
|
|
44
|
+
import "../Forms/SalesforceFieldsForm.js";
|
|
45
|
+
import "../SetContainer/SetContainer.css.js";
|
|
46
|
+
import "../ImageBillboard/ImageBillboard.css.js";
|
|
47
|
+
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
48
|
+
import "../Chevron/Chevron.css.js";
|
|
49
|
+
/* empty css */
|
|
50
|
+
/* empty css */
|
|
51
|
+
/* empty css */
|
|
52
|
+
/* empty css */
|
|
53
|
+
/* empty css */
|
|
54
|
+
/* empty css */
|
|
55
|
+
/* empty css */
|
|
56
|
+
import "../StepItems/StepItems.css.js";
|
|
57
|
+
import "../Table/Table.css.js";
|
|
58
|
+
/* empty css */
|
|
59
|
+
import "next/script.js";
|
|
60
|
+
/* empty css */
|
|
61
|
+
/* empty css */
|
|
62
|
+
import { icon, slide, authorLocation, author, headerCarousel, descriptionCarousel, carousel, slides, dots, dot } from "./Carousel.css.js";
|
|
15
63
|
import { useCarousel } from "./store.js";
|
|
16
64
|
const iconVarints = /* @__PURE__ */ new Map([
|
|
17
65
|
[
|
|
@@ -47,9 +95,18 @@ const CarouselSlide = (props) => {
|
|
|
47
95
|
] }) });
|
|
48
96
|
};
|
|
49
97
|
const Carousel = (props) => {
|
|
50
|
-
const {
|
|
98
|
+
const {
|
|
99
|
+
children,
|
|
100
|
+
time = 5e3,
|
|
101
|
+
variant: fullVariant = "primary",
|
|
102
|
+
items,
|
|
103
|
+
auto = false,
|
|
104
|
+
title = void 0,
|
|
105
|
+
description = void 0
|
|
106
|
+
} = props;
|
|
51
107
|
const change = useCarousel((state) => state.change);
|
|
52
108
|
const itemSelected = useCarousel((state) => state.selected);
|
|
109
|
+
const variant = getVariant(fullVariant);
|
|
53
110
|
useEffect(() => {
|
|
54
111
|
if (!auto) {
|
|
55
112
|
return;
|
|
@@ -71,7 +128,7 @@ const Carousel = (props) => {
|
|
|
71
128
|
};
|
|
72
129
|
const child = children;
|
|
73
130
|
const showDots = () => {
|
|
74
|
-
if (children && child?.
|
|
131
|
+
if (children && child?.length > 1) {
|
|
75
132
|
return /* @__PURE__ */ jsx("div", { className: dots, children: Children.map(children, (_, indx) => /* @__PURE__ */ jsx(
|
|
76
133
|
"div",
|
|
77
134
|
{
|
|
@@ -81,36 +138,32 @@ const Carousel = (props) => {
|
|
|
81
138
|
indx
|
|
82
139
|
)) });
|
|
83
140
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
141
|
+
};
|
|
142
|
+
return /* @__PURE__ */ jsxs("div", { className: `containment`, children: [
|
|
143
|
+
/* @__PURE__ */ jsxs("div", { className: section_text, children: [
|
|
144
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerCarousel({ variant })), children: title }),
|
|
145
|
+
/* @__PURE__ */ jsx("div", { className: clsx(descriptionCarousel({ variant })), children: description })
|
|
146
|
+
] }),
|
|
147
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(carousel({ variant })), children: [
|
|
148
|
+
/* @__PURE__ */ jsx("div", { children: iconVarints.get(variant) }),
|
|
149
|
+
/* @__PURE__ */ jsx("div", { className: slides, children: children ? Children.map(
|
|
150
|
+
children,
|
|
151
|
+
(item, idx) => React.isValidElement(item) && cloneElement(item, {
|
|
152
|
+
...item.props,
|
|
153
|
+
selected: idx === itemSelected,
|
|
154
|
+
variant
|
|
155
|
+
})
|
|
156
|
+
) : items?.map((item, idx) => /* @__PURE__ */ jsx(
|
|
157
|
+
CarouselSlide,
|
|
87
158
|
{
|
|
88
|
-
|
|
89
|
-
|
|
159
|
+
selected: idx === itemSelected,
|
|
160
|
+
...item,
|
|
161
|
+
variant
|
|
90
162
|
},
|
|
91
|
-
|
|
92
|
-
)) })
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return /* @__PURE__ */ jsxs("div", { className: clsx(carousel({ variant })), children: [
|
|
96
|
-
/* @__PURE__ */ jsx("div", { children: iconVarints.get(variant) }),
|
|
97
|
-
/* @__PURE__ */ jsx("div", { className: slides, children: children ? Children.map(
|
|
98
|
-
children,
|
|
99
|
-
(item, idx) => React.isValidElement(item) && cloneElement(item, {
|
|
100
|
-
...item.props,
|
|
101
|
-
selected: idx === itemSelected,
|
|
102
|
-
variant
|
|
103
|
-
})
|
|
104
|
-
) : items?.map((item, idx) => /* @__PURE__ */ jsx(
|
|
105
|
-
CarouselSlide,
|
|
106
|
-
{
|
|
107
|
-
selected: idx === itemSelected,
|
|
108
|
-
...item,
|
|
109
|
-
variant
|
|
110
|
-
},
|
|
111
|
-
item.id
|
|
112
|
-
)) }),
|
|
113
|
-
showDots()
|
|
163
|
+
item.id
|
|
164
|
+
)) }),
|
|
165
|
+
showDots()
|
|
166
|
+
] })
|
|
114
167
|
] });
|
|
115
168
|
};
|
|
116
169
|
export {
|
package/dist/Chevron/index.d.ts
CHANGED
package/dist/Chevron/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HeroBannerInterface as ContentBannerInterface } from './ContentBanner.interface';
|
|
2
1
|
import { FC } from 'react';
|
|
2
|
+
import { HeroBannerInterface as ContentBannerInterface } from './ContentBanner.interface';
|
|
3
3
|
|
|
4
4
|
export declare const ContentBanner: FC<ContentBannerInterface>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ImageInterface } from '../IconBillboard';
|
|
3
1
|
import { QuaternaryTypes } from '../utils/variant.types';
|
|
2
|
+
import { ImageInterface } from '../IconBillboard';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
export interface ExecutiveBioSetProps {
|
|
6
6
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExecutiveBioSetProps as Props } from './ExecutiveBio.interface';
|
|
2
1
|
import { SetContainerProps } from '../SetContainer';
|
|
2
|
+
import { ExecutiveBioSetProps as Props } from './ExecutiveBio.interface';
|
|
3
3
|
|
|
4
4
|
export declare const ExecutiveBioSet: ({ id, title, description, executiveBios, additionalDetails, variant, headline, }: Props & SetContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { header } from './FaqAccordion.css';
|
|
2
1
|
import { PropsWithChildren } from 'react';
|
|
3
2
|
|
|
4
3
|
export interface AccordionItemProps extends PropsWithChildren {
|
|
@@ -7,8 +6,10 @@ export interface AccordionItemProps extends PropsWithChildren {
|
|
|
7
6
|
export declare const AccordionItem: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export declare const AccordionItemSummary: (props: {
|
|
9
8
|
id: string;
|
|
9
|
+
level: string;
|
|
10
10
|
} & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare const AccordionItemContent: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export declare const FaqAccordion: (props: {
|
|
13
13
|
header?: string;
|
|
14
|
+
accordionEmbedLevel?: string;
|
|
14
15
|
} & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,17 +7,30 @@ import SvgChevronUp from "../icons/ChevronUp.js";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
+
import { getLevelNumber } from "../utils/faqAccordionOptions.js";
|
|
10
11
|
import { create } from "zustand";
|
|
11
12
|
import { icon } from "../Accordion/Accordion.css.js";
|
|
12
13
|
import { summary, summaryHeader, content, header, faqAccordion } from "./FaqAccordion.css.js";
|
|
13
14
|
const useAccordion = create()((set) => ({
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
itemsOpened: [],
|
|
16
|
+
addItem: (id) => {
|
|
17
|
+
set((state) => ({
|
|
18
|
+
itemsOpened: [...state.itemsOpened, id]
|
|
19
|
+
}));
|
|
20
|
+
},
|
|
21
|
+
removeItem: (id) => {
|
|
22
|
+
set((state) => ({
|
|
23
|
+
itemsOpened: state.itemsOpened.filter((item) => item !== id)
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
16
26
|
}));
|
|
17
27
|
const AccordionItem = (props) => {
|
|
18
|
-
const
|
|
19
|
-
const
|
|
28
|
+
const addItem = useAccordion((state) => state.addItem);
|
|
29
|
+
const removeItem = useAccordion((state) => state.removeItem);
|
|
30
|
+
const isOpen = useAccordion((state) => state.itemsOpened);
|
|
20
31
|
const toggle = (event) => {
|
|
32
|
+
event.stopPropagation();
|
|
33
|
+
event.preventDefault();
|
|
21
34
|
const ev = event.target;
|
|
22
35
|
let evClasses = ev.getAttribute("class");
|
|
23
36
|
if (!evClasses) {
|
|
@@ -26,11 +39,10 @@ const AccordionItem = (props) => {
|
|
|
26
39
|
if (!evClasses?.includes(summary) !== (evClasses?.includes(summaryHeader) || evClasses?.includes(icon))) {
|
|
27
40
|
return;
|
|
28
41
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
selectItem(props.id);
|
|
42
|
+
if (!isOpen.includes(props.id)) {
|
|
43
|
+
addItem(props.id);
|
|
32
44
|
} else {
|
|
33
|
-
|
|
45
|
+
removeItem(props.id);
|
|
34
46
|
}
|
|
35
47
|
};
|
|
36
48
|
return /* @__PURE__ */ jsx(
|
|
@@ -40,16 +52,17 @@ const AccordionItem = (props) => {
|
|
|
40
52
|
toggle(e);
|
|
41
53
|
return;
|
|
42
54
|
},
|
|
43
|
-
open: isOpen
|
|
55
|
+
open: isOpen.includes(props.id),
|
|
44
56
|
children: props.children
|
|
45
57
|
}
|
|
46
58
|
);
|
|
47
59
|
};
|
|
48
60
|
const AccordionItemSummary = (props) => {
|
|
49
|
-
const
|
|
61
|
+
const level = getLevelNumber(props.level);
|
|
62
|
+
const isOpen = useAccordion((state) => state.itemsOpened);
|
|
50
63
|
return /* @__PURE__ */ jsxs("summary", { className: summary, children: [
|
|
51
|
-
/* @__PURE__ */ jsx("
|
|
52
|
-
/* @__PURE__ */ jsx("div", { className: icon, children: isOpen
|
|
64
|
+
level === 1 ? /* @__PURE__ */ jsx("h3", { className: summaryHeader, children: props.children }) : level === 2 ? /* @__PURE__ */ jsx("h4", { className: summaryHeader, children: props.children }) : /* @__PURE__ */ jsx("h5", { className: summaryHeader, children: props.children }),
|
|
65
|
+
/* @__PURE__ */ jsx("div", { className: icon, children: isOpen.includes(props.id) ? /* @__PURE__ */ jsx(SvgChevronUp, {}) : /* @__PURE__ */ jsx(SvgChevronDown, {}) })
|
|
53
66
|
] });
|
|
54
67
|
};
|
|
55
68
|
const AccordionItemContent = (props) => {
|
|
@@ -58,7 +71,7 @@ const AccordionItemContent = (props) => {
|
|
|
58
71
|
const FaqAccordion = (props) => {
|
|
59
72
|
const { children } = props;
|
|
60
73
|
return /* @__PURE__ */ jsxs("section", { children: [
|
|
61
|
-
props.header && /* @__PURE__ */ jsx("
|
|
74
|
+
props.header && /* @__PURE__ */ jsx("h2", { className: header, children: props.header }),
|
|
62
75
|
/* @__PURE__ */ jsx("div", { className: faqAccordion, children })
|
|
63
76
|
] });
|
|
64
77
|
};
|
package/dist/Forms/EmailOnly.js
CHANGED
package/dist/Forms/RenderForm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { QuaternaryTypes } from '../utils/variant.types';
|
|
3
1
|
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
2
|
+
import { QuaternaryTypes } from '../utils/variant.types';
|
|
3
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
export type Inputs = {
|
|
6
6
|
first_name: string;
|
|
@@ -85,7 +85,13 @@ const ScheduleCall = ({
|
|
|
85
85
|
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
86
86
|
/* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
|
|
87
87
|
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
88
|
-
description && /* @__PURE__ */ jsx(
|
|
88
|
+
description && /* @__PURE__ */ jsx(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
className: `${form} ${descriptionField({ variant })} text_center`,
|
|
92
|
+
children: description
|
|
93
|
+
}
|
|
94
|
+
)
|
|
89
95
|
] }),
|
|
90
96
|
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
91
97
|
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
package/dist/Forms/SuccesForm.js
CHANGED
package/dist/Hyperlink/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ContainerVariants, LayoutVariants } from './IconBillboard.css';
|
|
2
|
-
import { ImageInterface } from '.';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
1
|
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ImageInterface } from '.';
|
|
4
|
+
import { ContainerVariants, LayoutVariants } from './IconBillboard.css';
|
|
5
5
|
|
|
6
6
|
export interface FocusProps {
|
|
7
7
|
icon?: ImageInterface;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { QuaternaryTypes } from '../utils/variant.types';
|
|
3
|
-
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
4
1
|
import { BulletItemProps } from '../BulletItem';
|
|
2
|
+
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
3
|
+
import { QuaternaryTypes } from '../utils/variant.types';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
export interface IconBillboardSet {
|
|
7
7
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { QuaternaryTypes } from '../utils/variant.types';
|
|
3
|
-
import { ImageInterface } from '../IconBillboard';
|
|
4
|
-
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
5
1
|
import { BulletItemProps } from '../BulletItem';
|
|
2
|
+
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
3
|
+
import { ImageInterface } from '../IconBillboard';
|
|
4
|
+
import { QuaternaryTypes } from '../utils/variant.types';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
6
|
|
|
7
7
|
export interface ImageBillboardSetProps {
|
|
8
8
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ImageLinkProps } from './ImageLink';
|
|
2
|
-
import { SetContainerProps } from '../SetContainer';
|
|
3
1
|
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
2
|
+
import { SetContainerProps } from '../SetContainer';
|
|
3
|
+
import { ImageLinkProps } from './ImageLink';
|
|
4
4
|
|
|
5
5
|
export interface ImageLinkSetProps extends SetContainerProps {
|
|
6
6
|
imageLinks: ImageLinkProps[];
|