@axos-web-dev/shared-components 0.0.56 → 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.
Files changed (42) hide show
  1. package/dist/AlertBanner/index.d.ts +1 -1
  2. package/dist/Button/Button.d.ts +1 -1
  3. package/dist/Button/GoBackButton.d.ts +1 -1
  4. package/dist/CallToActionBar/CallToActionBar.interface.d.ts +1 -1
  5. package/dist/CallToActionBar/index.d.ts +1 -1
  6. package/dist/Carousel/Carousel.css.d.ts +44 -0
  7. package/dist/Carousel/Carousel.css.js +12 -8
  8. package/dist/Carousel/index.d.ts +3 -1
  9. package/dist/Carousel/index.js +84 -31
  10. package/dist/Chevron/Chevron.interface.d.ts +1 -1
  11. package/dist/Chevron/index.d.ts +1 -1
  12. package/dist/ContentBanner/ContentBanner.interface.d.ts +1 -1
  13. package/dist/ContentBanner/index.d.ts +1 -1
  14. package/dist/DownloadTile/index.d.ts +1 -1
  15. package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +2 -2
  16. package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
  17. package/dist/FaqAccordion/index.d.ts +2 -1
  18. package/dist/FaqAccordion/index.js +26 -13
  19. package/dist/Forms/RenderForm.d.ts +1 -1
  20. package/dist/Forms/ScheduleCall.d.ts +2 -2
  21. package/dist/Forms/ScheduleCall.js +7 -1
  22. package/dist/HeroBanner/HeroBanner.interface.d.ts +1 -1
  23. package/dist/Hyperlink/index.d.ts +1 -1
  24. package/dist/IconBillboard/IconBillboard.d.ts +3 -3
  25. package/dist/IconBillboard/IconBillboard.interface.d.ts +3 -3
  26. package/dist/ImageBillboard/ImageBillboard.interface.d.ts +4 -4
  27. package/dist/ImageLink/ImageLinkSet.d.ts +2 -2
  28. package/dist/Input/Input.d.ts +1 -1
  29. package/dist/Input/InputProps.d.ts +1 -1
  30. package/dist/Modal/Modal.d.ts +1 -1
  31. package/dist/SetContainer/SetContainer.d.ts +1 -1
  32. package/dist/StepItems/StepItems.interface.d.ts +3 -3
  33. package/dist/Table/Table.d.ts +1 -1
  34. package/dist/Typography/Typography.d.ts +1 -1
  35. package/dist/VideoTile/VideoTile.d.ts +1 -1
  36. package/dist/VideoWrapper/index.d.ts +1 -1
  37. package/dist/assets/Carousel/Carousel.css +68 -29
  38. package/dist/assets/IconBillboard/IconBillboard.css +3 -0
  39. package/dist/icons/ArrowIcon/index.d.ts +1 -1
  40. package/dist/utils/faqAccordionOptions.d.ts +1 -0
  41. package/dist/utils/faqAccordionOptions.js +20 -0
  42. package/package.json +17 -17
@@ -1,4 +1,4 @@
1
- import { AlertBannerInterface } from './AlertBanner.interface';
2
1
  import { FC } from 'react';
2
+ import { AlertBannerInterface } from './AlertBanner.interface';
3
3
 
4
4
  export declare const AlertBanner: FC<AlertBannerInterface>;
@@ -1,5 +1,5 @@
1
- import { ButtonVariants } from './Button.css';
2
1
  import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
2
+ import { ButtonVariants } from './Button.css';
3
3
 
4
4
  export type ButtonBase = {
5
5
  children?: ReactNode;
@@ -1,4 +1,4 @@
1
- import { ButtonVariants } from './Button.css';
2
1
  import { ButtonProps } from './Button';
2
+ import { ButtonVariants } from './Button.css';
3
3
 
4
4
  export declare const GoBackButton: (props: ButtonProps & ButtonVariants) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
1
  import { ChevronProps } from '../Chevron/Chevron.interface';
2
+ import { ReactNode } from 'react';
3
3
 
4
4
  export interface CallToActionBarInterface {
5
5
  id?: string;
@@ -1,4 +1,4 @@
1
- import { CallToActionBarInterface } from './CallToActionBar.interface';
2
1
  import { FC } from 'react';
2
+ import { CallToActionBarInterface } from './CallToActionBar.interface';
3
3
 
4
4
  export declare const CallToActionBar: FC<CallToActionBarInterface>;
@@ -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 carousel = createRuntimeFn({ defaultClassName: "jgs3fs1", variantClassNames: { variant: { primary: "jgs3fs2", secondary: "jgs3fs3", tertiary: "jgs3fs4", quaternary: "jgs3fs5" } }, defaultVariants: { variant: "primary" }, compoundVariants: [] });
7
- var authorLocation = "jgs3fs6";
8
- var author = createRuntimeFn({ defaultClassName: "jgs3fs8 jgs3fs7", variantClassNames: { variant: { primary: "jgs3fs9", secondary: "jgs3fsa", tertiary: "jgs3fsb", quaternary: "jgs3fsc" } }, defaultVariants: {}, compoundVariants: [] });
9
- var slideBase = "jgs3fsd";
10
- var slide = { show: "jgs3fse jgs3fsd", hide: "jgs3fsf jgs3fsd" };
11
- var slides = "jgs3fsg";
12
- var icon = createRuntimeFn({ defaultClassName: "jgs3fsh", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
13
- var dot = createRuntimeFn({ defaultClassName: "jgs3fsi", variantClassNames: { variant: { primary: "jgs3fsj", secondary: "jgs3fsk", tertiary: "jgs3fsl", quaternary: "jgs3fsm" }, selected: { true: "jgs3fsn" } }, defaultVariants: { variant: "primary" }, compoundVariants: [[{ variant: "primary", selected: true }, "jgs3fso"], [{ variant: "secondary", selected: true }, "jgs3fsp"], [{ variant: "tertiary", selected: true }, "jgs3fsq"], [{ variant: "quaternary", selected: true }, "jgs3fsr"]] });
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,
@@ -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;
@@ -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 { icon, slide, authorLocation, author, carousel, slides, dots, dot } from "./Carousel.css.js";
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 { children, time = 5e3, variant, items, auto = false } = props;
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?.props?.content?.length > 1) {
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
- if (items && items.length > 1) {
85
- return /* @__PURE__ */ jsx("div", { className: dots, children: items.map((_, indx) => /* @__PURE__ */ jsx(
86
- "div",
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
- onClick: () => selectItem(indx),
89
- className: dot({ variant, selected: indx === itemSelected })
159
+ selected: idx === itemSelected,
160
+ ...item,
161
+ variant
90
162
  },
91
- indx
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 {
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
2
1
  import { CallToActionTypes } from '../utils/variant.types';
2
+ import { PropsWithChildren, ReactNode } from 'react';
3
3
 
4
4
  export interface ChevronProps extends PropsWithChildren {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { ChevronProps } from './Chevron.interface';
2
1
  import { FC } from 'react';
2
+ import { ChevronProps } from './Chevron.interface';
3
3
 
4
4
  export declare const Chevron: FC<ChevronProps>;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
1
  import { ChevronProps } from '../Chevron/Chevron.interface';
2
+ import { ReactNode } from 'react';
3
3
 
4
4
  export interface HeroBannerInterface {
5
5
  id?: string;
@@ -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,4 +1,4 @@
1
- import { DownloadTileSet } from './DownloadTile.interface';
2
1
  import { FC } from 'react';
2
+ import { DownloadTileSet } from './DownloadTile.interface';
3
3
 
4
4
  export declare const DownloadTile: FC<DownloadTileSet>;
@@ -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
- itemOpened: "",
15
- toggle: (id) => set(() => ({ itemOpened: id }))
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 selectItem = useAccordion((state) => state.toggle);
19
- const isOpen = useAccordion((state) => state.itemOpened);
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
- event.preventDefault();
30
- if (isOpen !== props.id) {
31
- selectItem(props.id);
42
+ if (!isOpen.includes(props.id)) {
43
+ addItem(props.id);
32
44
  } else {
33
- selectItem("");
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 === props.id,
55
+ open: isOpen.includes(props.id),
44
56
  children: props.children
45
57
  }
46
58
  );
47
59
  };
48
60
  const AccordionItemSummary = (props) => {
49
- const isOpen = useAccordion((state) => state.itemOpened);
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("div", { className: summaryHeader, children: props.children }),
52
- /* @__PURE__ */ jsx("div", { className: icon, children: isOpen === props.id ? /* @__PURE__ */ jsx(SvgChevronUp, {}) : /* @__PURE__ */ jsx(SvgChevronDown, {}) })
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("p", { className: header, children: props.header }),
74
+ props.header && /* @__PURE__ */ jsx("h2", { className: header, children: props.header }),
62
75
  /* @__PURE__ */ jsx("div", { className: faqAccordion, children })
63
76
  ] });
64
77
  };
@@ -1,5 +1,5 @@
1
- import { FormProps } from '.';
2
1
  import { PropsWithChildren } from 'react';
2
+ import { FormProps } from '.';
3
3
 
4
4
  export interface renderFormProps extends FormProps, PropsWithChildren {
5
5
  form?: string;
@@ -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("div", { className: `${form} ${descriptionField} text_center`, children: description })
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: [
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
1
  import { ChevronProps } from '../Chevron/Chevron.interface';
2
+ import { ReactNode } from 'react';
3
3
 
4
4
  export interface ImageInterface {
5
5
  src: string;
@@ -1,4 +1,4 @@
1
- import { HyperlinkProps } from './Hyperlink.interface';
2
1
  import { FC } from 'react';
2
+ import { HyperlinkProps } from './Hyperlink.interface';
3
3
 
4
4
  export declare const Hyperlink: FC<HyperlinkProps>;
@@ -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[];
@@ -1,5 +1,5 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
2
1
  import { QuaternaryTypes } from '../utils';
2
+ import { InputHTMLAttributes, ReactNode } from 'react';
3
3
 
4
4
  export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
5
5
  label?: ReactNode;
@@ -1,5 +1,5 @@
1
- import { InputHTMLAttributes, PropsWithChildren, ReactNode, SelectHTMLAttributes } from 'react';
2
1
  import { QuaternaryTypes } from '../utils';
2
+ import { InputHTMLAttributes, PropsWithChildren, ReactNode, SelectHTMLAttributes } from 'react';
3
3
 
4
4
  export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
5
5
  label?: ReactNode;
@@ -1,4 +1,4 @@
1
- import { ModalProps } from './Modal.interface';
2
1
  import { FC } from 'react';
2
+ import { ModalProps } from './Modal.interface';
3
3
 
4
4
  export declare const Modal: FC<ModalProps>;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { ImageBillboardSetProps } from '../ImageBillboard/ImageBillboard.interface';
2
+ import { PropsWithChildren } from 'react';
3
3
 
4
4
  export interface SetContainerProps extends Omit<ImageBillboardSetProps, "imageBillboards">, PropsWithChildren {
5
5
  internalName?: string;
@@ -1,7 +1,7 @@
1
- import { ReactNode } from 'react';
2
- import { ImageInterface } from '../IconBillboard';
3
- import { QuaternaryTypes } from '../utils/variant.types';
4
1
  import { ChevronProps } from '../Chevron/Chevron.interface';
2
+ import { QuaternaryTypes } from '../utils/variant.types';
3
+ import { ImageInterface } from '../IconBillboard';
4
+ import { ReactNode } from 'react';
5
5
 
6
6
  export interface StepItemsSetProps {
7
7
  id: string;
@@ -1,5 +1,5 @@
1
- import { CellProps, RowProps, TableContainerProps, TableProps } from './Table.interface';
2
1
  import { PropsWithChildren } from 'react';
2
+ import { CellProps, RowProps, TableContainerProps, TableProps } from './Table.interface';
3
3
 
4
4
  export declare const TableContainer: ({ tableTitle, tableBody, tableFooter, tableType, tableDescription, internalName, id, }: TableContainerProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export declare const Table: ({ variant, children, highlight, tableType, alternateColorRows, }: TableProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { TypographySizeVariants, TypographyVariants } from '.';
2
1
  import { default as React } from 'react';
2
+ import { TypographySizeVariants, TypographyVariants } from '.';
3
3
 
4
4
  type AsType = "body1" | "body2" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2" | string;
5
5
  export interface Props extends React.PropsWithChildren {
@@ -1,4 +1,4 @@
1
- import { VideoTileInterface } from './VideoTile.interface';
2
1
  import { FC } from 'react';
2
+ import { VideoTileInterface } from './VideoTile.interface';
3
3
 
4
4
  export declare const VideoTile: FC<VideoTileInterface>;
@@ -1,5 +1,5 @@
1
- import { VideoTileInterface } from '../VideoTile';
2
1
  import { FC } from 'react';
2
+ import { VideoTileInterface } from '../VideoTile';
3
3
 
4
4
  export interface VideoWrapperProps {
5
5
  videoTiles: VideoTileInterface[];
@@ -6,7 +6,31 @@
6
6
  justify-content: center;
7
7
  margin-top: 16px;
8
8
  }
9
- .jgs3fs1 {
9
+ .jgs3fs2 {
10
+ background: var(--_1073cm84);
11
+ background-clip: text;
12
+ -webkit-text-fill-color: transparent;
13
+ text-shadow: 0px 0px #00000000;
14
+ }
15
+ .jgs3fs3 {
16
+ background: var(--_1073cm8b);
17
+ background-clip: text;
18
+ -webkit-text-fill-color: transparent;
19
+ text-shadow: 0px 0px #00000000;
20
+ }
21
+ .jgs3fs4 {
22
+ color: var(--_1073cm8i);
23
+ background-clip: text;
24
+ -webkit-text-fill-color: transparent;
25
+ text-shadow: 0px 0px #00000000;
26
+ }
27
+ .jgs3fs5 {
28
+ color: var(--_1073cm8p);
29
+ background-clip: text;
30
+ -webkit-text-fill-color: transparent;
31
+ text-shadow: 0px 0px #00000000;
32
+ }
33
+ .jgs3fs6 {
10
34
  display: flex;
11
35
  flex-direction: column;
12
36
  border-radius: 16px;
@@ -16,46 +40,61 @@
16
40
  padding-top: 40px;
17
41
  padding-bottom: 40px;
18
42
  }
19
- .jgs3fs2 {
43
+ .jgs3fs7 {
20
44
  background: var(--_1073cm81);
21
45
  color: var(--_1073cm83);
22
46
  }
23
- .jgs3fs3 {
47
+ .jgs3fs8 {
24
48
  background: var(--_1073cm88);
25
49
  color: var(--_1073cm8a);
26
50
  }
27
- .jgs3fs4 {
51
+ .jgs3fs9 {
28
52
  background: var(--_1073cm8f);
29
53
  color: var(--_1073cm8h);
30
54
  }
31
- .jgs3fs5 {
55
+ .jgs3fsa {
32
56
  background: var(--_1073cm8m);
33
57
  color: var(--_1073cm8n);
34
58
  }
35
- .jgs3fs6 {
59
+ .jgs3fsb {
60
+ margin-top: 16px;
61
+ }
62
+ .jgs3fsc {
63
+ color: var(--_1073cm82);
64
+ }
65
+ .jgs3fsd {
66
+ color: var(--_1073cm8a);
67
+ }
68
+ .jgs3fse {
69
+ color: var(--_1073cm8j);
70
+ }
71
+ .jgs3fsf {
72
+ color: var(--_1073cm8n);
73
+ }
74
+ .jgs3fsg {
36
75
  display: flex;
37
76
  gap: 10px;
38
77
  text-align: center;
39
78
  justify-content: center;
40
79
  }
41
- .jgs3fs7 {
80
+ .jgs3fsh {
42
81
  font-size: 18px;
43
82
  font-weight: 600;
44
83
  letter-spacing: 0.2px;
45
84
  }
46
- .jgs3fs9 {
85
+ .jgs3fsj {
47
86
  color: var(--_1073cm83);
48
87
  }
49
- .jgs3fsa {
88
+ .jgs3fsk {
50
89
  color: var(--_1073cm8a);
51
90
  }
52
- .jgs3fsb {
91
+ .jgs3fsl {
53
92
  color: var(--_1073cm8h);
54
93
  }
55
- .jgs3fsc {
94
+ .jgs3fsm {
56
95
  color: var(--_1073cm8o);
57
96
  }
58
- .jgs3fsd {
97
+ .jgs3fsn {
59
98
  text-align: center;
60
99
  gap: 24px;
61
100
  font-style: italic;
@@ -69,20 +108,20 @@
69
108
  transition-property: all;
70
109
  transition-behavior: left;
71
110
  }
72
- .jgs3fse {
111
+ .jgs3fso {
73
112
  display: flex;
74
113
  flex-direction: column;
75
114
  justify-content: center;
76
115
  opacity: 1;
77
116
  transition-delay: .5s;
78
117
  }
79
- .jgs3fsf {
118
+ .jgs3fsp {
80
119
  display: none;
81
120
  }
82
- .jgs3fsg {
121
+ .jgs3fsq {
83
122
  display: flex;
84
123
  }
85
- .jgs3fsh {
124
+ .jgs3fsr {
86
125
  display: flex;
87
126
  justify-content: center;
88
127
  width: 100%;
@@ -90,7 +129,7 @@
90
129
  border: none;
91
130
  margin-bottom: 24px;
92
131
  }
93
- .jgs3fsi {
132
+ .jgs3fss {
94
133
  width: 12px;
95
134
  height: 12px;
96
135
  border-width: 1px;
@@ -98,39 +137,39 @@
98
137
  border-radius: 100px;
99
138
  cursor: pointer;
100
139
  }
101
- .jgs3fsj {
140
+ .jgs3fst {
102
141
  border-color: #1E3860;
103
142
  }
104
- .jgs3fsj:hover {
143
+ .jgs3fst:hover {
105
144
  background: #87B9D7;
106
145
  }
107
- .jgs3fsk {
146
+ .jgs3fsu {
108
147
  border-color: #1E3860;
109
148
  }
110
- .jgs3fsk:hover {
149
+ .jgs3fsu:hover {
111
150
  background: #87B9D7;
112
151
  }
113
- .jgs3fsl {
152
+ .jgs3fsv {
114
153
  border-color: #FFFFFF;
115
154
  }
116
- .jgs3fsl:hover {
155
+ .jgs3fsv:hover {
117
156
  background: #EBEBEB;
118
157
  }
119
- .jgs3fsm {
158
+ .jgs3fsw {
120
159
  border-color: #FAA74A;
121
160
  }
122
- .jgs3fsm:hover {
161
+ .jgs3fsw:hover {
123
162
  background: #FFE7D2;
124
163
  }
125
- .jgs3fso {
164
+ .jgs3fsy {
126
165
  background: #1E3860;
127
166
  }
128
- .jgs3fsp {
167
+ .jgs3fsz {
129
168
  background: #1E3860;
130
169
  }
131
- .jgs3fsq {
170
+ .jgs3fs10 {
132
171
  background: #FFFFFF;
133
172
  }
134
- .jgs3fsr {
173
+ .jgs3fs11 {
135
174
  background: #FAA74A;
136
175
  }
@@ -89,10 +89,13 @@
89
89
  gap: 10px;
90
90
  }
91
91
  ._1r4ovbuh {
92
+ display: flex;
92
93
  justify-content: center;
93
94
  width: 100%;
94
95
  text-align: center;
95
96
  margin-top: auto;
97
+ gap: 24px;
98
+ flex-wrap: wrap;
96
99
  }
97
100
  ._1r4ovbui {
98
101
  margin-inline: auto;
@@ -1,5 +1,5 @@
1
- import { FC } from 'react';
2
1
  import { CallToActionTypes } from '../../utils/variant.types';
2
+ import { FC } from 'react';
3
3
 
4
4
  export interface ArrowProps {
5
5
  variant: CallToActionTypes;
@@ -0,0 +1 @@
1
+ export declare const getLevelNumber: (level: string) => 1 | 2 | 3;
@@ -0,0 +1,20 @@
1
+ const getLevelNumber = (level) => {
2
+ const faqlevel = level?.toLowerCase();
3
+ switch (faqlevel) {
4
+ case "one": {
5
+ return 1;
6
+ }
7
+ case "two": {
8
+ return 2;
9
+ }
10
+ case "three": {
11
+ return 3;
12
+ }
13
+ default: {
14
+ return 1;
15
+ }
16
+ }
17
+ };
18
+ export {
19
+ getLevelNumber
20
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "0.0.56",
4
+ "version": "0.0.57",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -28,20 +28,20 @@
28
28
  "npm:link": "npm run build && npm link"
29
29
  },
30
30
  "dependencies": {
31
- "@hookform/resolvers": "^3.3.4",
32
- "@react-input/mask": "^1.2.0",
33
- "@react-input/number-format": "^1.0.25",
31
+ "@hookform/resolvers": "^3.4.0",
32
+ "@react-input/mask": "^1.2.4",
33
+ "@react-input/number-format": "^1.0.26",
34
34
  "@storybook/builder-vite": "^7.6.19",
35
35
  "@storybook/preview-api": "^7.6.19",
36
36
  "@vanilla-extract/css": "^1.15.1",
37
37
  "@vanilla-extract/recipes": "^0.5.1",
38
38
  "clsx": "^2.1.1",
39
- "react-hook-form": "^7.51.3",
39
+ "react-hook-form": "^7.51.4",
40
40
  "react-markdown": "^9.0.1",
41
41
  "react-use": "^17.5.0",
42
42
  "typed-css-modules": "^0.9.1",
43
43
  "vite-plugin-svgr": "^4.2.0",
44
- "zod": "^3.23.6",
44
+ "zod": "^3.23.8",
45
45
  "zustand": "^4.5.2"
46
46
  },
47
47
  "peerDependencies": {
@@ -58,7 +58,7 @@
58
58
  "@storybook/addon-essentials": "^7.6.19",
59
59
  "@storybook/addon-interactions": "^7.6.19",
60
60
  "@storybook/addon-links": "^7.6.19",
61
- "@storybook/addon-onboarding": "^8.0.9",
61
+ "@storybook/addon-onboarding": "^8.1.0",
62
62
  "@storybook/addon-themes": "^7.6.19",
63
63
  "@storybook/blocks": "^7.6.19",
64
64
  "@storybook/react": "^7.6.19",
@@ -67,11 +67,11 @@
67
67
  "@svgr/core": "^8.1.0",
68
68
  "@svgr/plugin-prettier": "^8.1.0",
69
69
  "@svgr/plugin-svgo": "^8.1.0",
70
- "@types/node": "^20.12.8",
71
- "@types/react": "^18.3.1",
70
+ "@types/node": "^20.12.12",
71
+ "@types/react": "^18.3.2",
72
72
  "@types/react-dom": "^18.3.0",
73
- "@typescript-eslint/eslint-plugin": "^7.8.0",
74
- "@typescript-eslint/parser": "^7.8.0",
73
+ "@typescript-eslint/eslint-plugin": "^7.9.0",
74
+ "@typescript-eslint/parser": "^7.9.0",
75
75
  "@vanilla-extract/css-utils": "^0.1.3",
76
76
  "@vanilla-extract/recipes": "^0.5.2",
77
77
  "@vanilla-extract/vite-plugin": "^4.0.9",
@@ -79,9 +79,9 @@
79
79
  "esbuild-vanilla-image-loader": "^0.1.3",
80
80
  "eslint": "^8.57.0",
81
81
  "eslint-plugin-react-hooks": "^4.6.2",
82
- "eslint-plugin-react-refresh": "^0.4.6",
82
+ "eslint-plugin-react-refresh": "^0.4.7",
83
83
  "eslint-plugin-storybook": "^0.8.0",
84
- "glob": "^10.3.12",
84
+ "glob": "^10.3.15",
85
85
  "husky": "^9.0.11",
86
86
  "next": "^14.1.4",
87
87
  "prettier": "3.2.5",
@@ -91,11 +91,11 @@
91
91
  "rollup-plugin-svg-import": "^3.0.0",
92
92
  "rollup-plugin-svgo": "^2.0.0",
93
93
  "storybook": "^7.6.19",
94
- "typescript": "^5.2.2",
94
+ "typescript": "^5.4.5",
95
95
  "typescript-plugin-css-modules": "^5.1.0",
96
- "vite": "^5.2.10",
97
- "vite-plugin-dts": "^3.9.0",
98
- "vite-plugin-lib-inject-css": "^2.0.1",
96
+ "vite": "^5.2.11",
97
+ "vite-plugin-dts": "^3.9.1",
98
+ "vite-plugin-lib-inject-css": "^2.1.1",
99
99
  "vite-plugin-setting-css-module": "^1.1.4",
100
100
  "vite-tsconfig-paths": "^4.3.2"
101
101
  },