@axos-web-dev/shared-components 0.0.2 → 0.0.3
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/README.md +9 -10
- package/dist/Accordion/Accordion.d.ts +3 -3
- package/dist/Accordion/Accordion.d.ts.map +1 -1
- package/dist/Accordion/Accordion.js +1 -0
- package/dist/Accordion/Accordion.js.map +1 -1
- package/dist/AlertBanner/index.d.ts.map +1 -1
- package/dist/AlertBanner/index.js +4 -3
- package/dist/AlertBanner/index.js.map +1 -1
- package/dist/BulletItem/BulletItem.d.ts +1 -1
- package/dist/BulletItem/BulletItem.d.ts.map +1 -1
- package/dist/BulletItem/BulletItem.js +1 -0
- package/dist/BulletItem/BulletItem.js.map +1 -1
- package/dist/Button/Button.css.d.ts +18 -21
- package/dist/Button/Button.css.d.ts.map +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.js.map +1 -1
- package/dist/Carousel/index.d.ts +2 -2
- package/dist/Carousel/index.d.ts.map +1 -1
- package/dist/Carousel/index.js +1 -0
- package/dist/Carousel/index.js.map +1 -1
- package/dist/Chevron/index.d.ts.map +1 -1
- package/dist/Chevron/index.js +6 -2
- package/dist/Chevron/index.js.map +1 -1
- package/dist/CollectInformationAlert/index.js +3 -2
- package/dist/CollectInformationAlert/index.js.map +1 -1
- package/dist/DownloadTile/index.js +4 -2
- package/dist/DownloadTile/index.js.map +1 -1
- package/dist/FaqAccordion/index.d.ts +4 -4
- package/dist/FaqAccordion/index.d.ts.map +1 -1
- package/dist/FaqAccordion/index.js +1 -0
- package/dist/FaqAccordion/index.js.map +1 -1
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +4 -4
- package/dist/FooterDisclosure/FooterDisclosure.d.ts.map +1 -1
- package/dist/HeroBanner/HeroBanner.css.d.ts +29 -17
- package/dist/HeroBanner/HeroBanner.css.d.ts.map +1 -1
- package/dist/HeroBanner/HeroBanner.css.js +12 -18
- package/dist/HeroBanner/HeroBanner.css.js.map +1 -1
- package/dist/HeroBanner/HeroBanner.interface.d.ts +2 -2
- package/dist/HeroBanner/HeroBanner.interface.d.ts.map +1 -1
- package/dist/HeroBanner/index.d.ts +1 -2
- package/dist/HeroBanner/index.d.ts.map +1 -1
- package/dist/HeroBanner/index.js +51 -49
- package/dist/HeroBanner/index.js.map +1 -1
- package/dist/IconBillboard/IconBillboard.css.d.ts +23 -1
- package/dist/IconBillboard/IconBillboard.css.d.ts.map +1 -1
- package/dist/IconBillboard/IconBillboard.css.js +8 -2
- package/dist/IconBillboard/IconBillboard.css.js.map +1 -1
- package/dist/IconBillboard/IconBillboard.interface.d.ts +34 -0
- package/dist/IconBillboard/IconBillboard.interface.d.ts.map +1 -0
- package/dist/IconBillboard/IconBillboard.interface.js +2 -0
- package/dist/IconBillboard/IconBillboard.interface.js.map +1 -0
- package/dist/IconBillboard/index.d.ts +2 -12
- package/dist/IconBillboard/index.d.ts.map +1 -1
- package/dist/IconBillboard/index.js +72 -25
- package/dist/IconBillboard/index.js.map +1 -1
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +4 -1
- package/dist/ImageBillboard/ImageBillboard.css.d.ts.map +1 -1
- package/dist/ImageBillboard/ImageBillboard.css.js +10 -5
- package/dist/ImageBillboard/ImageBillboard.css.js.map +1 -1
- package/dist/ImageBillboard/index.d.ts.map +1 -1
- package/dist/ImageBillboard/index.js +8 -7
- package/dist/ImageBillboard/index.js.map +1 -1
- package/dist/Input/index.d.ts +1 -1
- package/dist/Input/index.d.ts.map +1 -1
- package/dist/Modal/Modal.css.js +1 -0
- package/dist/Modal/Modal.css.js.map +1 -1
- package/dist/Modal/index.js +2 -0
- package/dist/Modal/index.js.map +1 -1
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +162 -0
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js.map +1 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +2 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts.map +1 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +8 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js.map +1 -0
- package/dist/NavigationMenu/AxosAdvisor/index.d.ts +2 -0
- package/dist/NavigationMenu/AxosAdvisor/index.d.ts.map +1 -0
- package/dist/NavigationMenu/AxosAdvisor/index.js +409 -0
- package/dist/NavigationMenu/AxosAdvisor/index.js.map +1 -0
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +126 -0
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js.map +1 -0
- package/dist/NavigationMenu/AxosFiduciary/index.d.ts +2 -0
- package/dist/NavigationMenu/AxosFiduciary/index.d.ts.map +1 -0
- package/dist/NavigationMenu/AxosFiduciary/index.js +131 -0
- package/dist/NavigationMenu/AxosFiduciary/index.js.map +1 -0
- package/dist/SecondaryFooter/index.d.ts +1 -1
- package/dist/SecondaryFooter/index.d.ts.map +1 -1
- package/dist/Table/Table.d.ts +4 -4
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/assets/Button/Button.css +35 -30
- package/dist/assets/DownloadTile/DownloadTile.css +0 -22
- package/dist/assets/HeroBanner/HeroBanner.css +91 -93
- package/dist/assets/IconBillboard/IconBillboard.css +30 -0
- package/dist/assets/ImageBillboard/ImageBillboard.css +12 -1
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +579 -0
- package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +419 -0
- package/dist/assets/globals.css +29 -2
- package/dist/icons/ArrowIcon/index.d.ts +2 -1
- package/dist/icons/ArrowIcon/index.d.ts.map +1 -1
- package/dist/icons/ArrowIcon/index.js +2 -2
- package/dist/icons/ArrowIcon/index.js.map +1 -1
- package/dist/icons/CheckCircle.d.ts +1 -1
- package/dist/icons/CheckCircle.d.ts.map +1 -1
- package/dist/icons/CheckCircleLight.d.ts +1 -1
- package/dist/icons/CheckCircleLight.d.ts.map +1 -1
- package/dist/icons/CheckIcon/index.d.ts +2 -1
- package/dist/icons/CheckIcon/index.d.ts.map +1 -1
- package/dist/icons/CheckIcon/index.js +2 -2
- package/dist/icons/CheckIcon/index.js.map +1 -1
- package/dist/icons/ChevronDown.d.ts +1 -1
- package/dist/icons/ChevronDown.d.ts.map +1 -1
- package/dist/icons/ChevronUp.d.ts +1 -1
- package/dist/icons/ChevronUp.d.ts.map +1 -1
- package/dist/icons/CloseIcon/index.d.ts +2 -1
- package/dist/icons/CloseIcon/index.d.ts.map +1 -1
- package/dist/icons/CloseIcon/index.js +2 -2
- package/dist/icons/CloseIcon/index.js.map +1 -1
- package/dist/icons/DownloadIcon/index.d.ts +2 -1
- package/dist/icons/DownloadIcon/index.d.ts.map +1 -1
- package/dist/icons/DownloadIcon/index.js +2 -2
- package/dist/icons/DownloadIcon/index.js.map +1 -1
- package/dist/icons/EqualHousingLender.d.ts +1 -1
- package/dist/icons/EqualHousingLender.d.ts.map +1 -1
- package/dist/icons/LockIcon/index.d.ts +2 -1
- package/dist/icons/LockIcon/index.d.ts.map +1 -1
- package/dist/icons/LockIcon/index.js +2 -2
- package/dist/icons/LockIcon/index.js.map +1 -1
- package/dist/icons/MemberFdicLogo.d.ts +1 -1
- package/dist/icons/MemberFdicLogo.d.ts.map +1 -1
- package/dist/icons/QuoteIconGrey.d.ts +1 -1
- package/dist/icons/QuoteIconGrey.d.ts.map +1 -1
- package/dist/icons/QuoteIconWhite.d.ts +1 -1
- package/dist/icons/QuoteIconWhite.d.ts.map +1 -1
- package/dist/icons/QuoteIconYellow.d.ts +1 -1
- package/dist/icons/QuoteIconYellow.d.ts.map +1 -1
- package/dist/icons/WarningIcon/index.d.ts +2 -1
- package/dist/icons/WarningIcon/index.d.ts.map +1 -1
- package/dist/icons/WarningIcon/index.js +3 -2
- package/dist/icons/WarningIcon/index.js.map +1 -1
- package/dist/icons/index.d.ts +6 -5
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +30 -28
- package/dist/icons/index.js.map +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +6 -0
- package/dist/main.js.map +1 -1
- package/dist/types/declaration.d.js +2 -0
- package/dist/types/declaration.d.js.map +1 -0
- package/dist/utils/getVariant.d.ts +2 -2
- package/dist/utils/getVariant.d.ts.map +1 -1
- package/dist/utils/getVariant.js +11 -23
- package/dist/utils/getVariant.js.map +1 -1
- package/package.json +95 -91
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@ Using npm:
|
|
|
5
5
|
```shell
|
|
6
6
|
$ npm install @axos-web-dev/shared-components
|
|
7
7
|
```
|
|
8
|
+
|
|
8
9
|
To import components
|
|
9
10
|
In Node.js:
|
|
10
11
|
|
|
@@ -20,18 +21,15 @@ import {
|
|
|
20
21
|
|
|
21
22
|
// Import Types/Interfaces
|
|
22
23
|
|
|
23
|
-
import {
|
|
24
|
-
AlertBannerInterface
|
|
25
|
-
} from "@axos-web-dev/shared-components/dist/AlertBanner/AlertBanner.interface";
|
|
26
|
-
|
|
24
|
+
import { AlertBannerInterface } from "@axos-web-dev/shared-components/dist/AlertBanner/AlertBanner.interface";
|
|
27
25
|
```
|
|
28
26
|
|
|
29
27
|
In css files:
|
|
28
|
+
|
|
30
29
|
```css
|
|
31
30
|
/*** Import styles ***/
|
|
32
31
|
|
|
33
32
|
@import "@axos-web-dev/shared-components/dist/assets/AlertBanner/AlertBanner.css";
|
|
34
|
-
|
|
35
33
|
```
|
|
36
34
|
|
|
37
35
|
# Shared components
|
|
@@ -92,21 +90,22 @@ npm version major
|
|
|
92
90
|
|
|
93
91
|
```
|
|
94
92
|
|
|
95
|
-
|
|
96
93
|
## How to publish new library version to npm
|
|
97
94
|
|
|
98
|
-
First update the version as previously described
|
|
95
|
+
First update the version as previously described
|
|
96
|
+
|
|
99
97
|
```shell
|
|
100
98
|
npm version [...]
|
|
101
99
|
```
|
|
102
|
-
|
|
100
|
+
|
|
101
|
+
Then you will need to login into npm to do that write:
|
|
103
102
|
|
|
104
103
|
```shell
|
|
105
|
-
npm login --scope
|
|
104
|
+
npm login --scope=@my-org
|
|
106
105
|
```
|
|
107
106
|
|
|
108
107
|
Last you to publish the new version:
|
|
109
108
|
|
|
110
109
|
```shell
|
|
111
110
|
npm publish
|
|
112
|
-
```
|
|
111
|
+
```
|
|
@@ -6,7 +6,7 @@ export declare const AccordionCtx: React.Context<{
|
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
onclick: () => void;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const AccordionHeader: (props: PropsWithChildren) => import("react/jsx-
|
|
10
|
-
export declare const AccordionDetails: ({ children }: PropsWithChildren) => import("react/jsx-
|
|
11
|
-
export declare const Accordion: (props: Accordion & PropsWithChildren) => import("react/jsx-
|
|
9
|
+
export declare const AccordionHeader: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const AccordionDetails: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const Accordion: (props: Accordion & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../lib/Accordion/Accordion.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AAWf,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,YAAY;;;EAGvB,CAAC;AAEH,eAAO,MAAM,eAAe,UAAW,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../lib/Accordion/Accordion.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AAWf,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,YAAY;;;EAGvB,CAAC;AAEH,eAAO,MAAM,eAAe,UAAW,iBAAiB,4CASvD,CAAC;AAEF,eAAO,MAAM,gBAAgB,iBAAkB,iBAAiB,4CAE/D,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,SAAS,GAAG,iBAAiB,4CAqB7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sources":["../../lib/Accordion/Accordion.tsx"],"sourcesContent":["\"use client\";\n\nimport { ChevronDown, ChevronUp } from \"@lib/icons\";\nimport clsx from \"clsx\";\nimport React, {\n PropsWithChildren,\n createContext,\n useContext,\n useState,\n} from \"react\";\nimport {\n accordion,\n body,\n header,\n headerContent,\n hide,\n icon,\n paragraph,\n} from \"./Accordion.css\";\n\nexport type Accordion = {\n expanded?: boolean;\n};\n\nexport const AccordionCtx = createContext({\n isOpen: false,\n onclick: () => {},\n});\n\nexport const AccordionHeader = (props: PropsWithChildren) => {\n const { children } = props;\n const { isOpen, onclick } = useContext(AccordionCtx);\n return (\n <div className={clsx(header())} onClick={onclick}>\n <p className={clsx(headerContent)}>{children}</p>\n <div className={icon}>{isOpen ? <ChevronDown /> : <ChevronUp />}</div>\n </div>\n );\n};\n\nexport const AccordionDetails = ({ children }: PropsWithChildren) => {\n return <div>{children}</div>;\n};\n\nexport const Accordion = (props: Accordion & PropsWithChildren) => {\n const { expanded = false, children: childrenProps } = props;\n const [isOpen, setIsOpen] = useState(expanded);\n const [header, ...children] = React.Children.toArray(childrenProps);\n return (\n <AccordionCtx.Provider\n value={{\n isOpen: isOpen,\n onclick: () => setIsOpen(!isOpen),\n }}\n >\n <div className={clsx(accordion())}>\n <div className={clsx(isOpen ? \"expanded\" : \"\")}>\n {header}\n <div className={clsx(body, isOpen ? null : hide, paragraph)}>\n {children}\n </div>\n </div>\n </div>\n </AccordionCtx.Provider>\n );\n};\n"],"names":["ChevronDown","ChevronUp","header"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Accordion.js","sources":["../../lib/Accordion/Accordion.tsx"],"sourcesContent":["\"use client\";\n\nimport { ChevronDown, ChevronUp } from \"@lib/icons\";\nimport clsx from \"clsx\";\nimport React, {\n PropsWithChildren,\n createContext,\n useContext,\n useState,\n} from \"react\";\nimport {\n accordion,\n body,\n header,\n headerContent,\n hide,\n icon,\n paragraph,\n} from \"./Accordion.css\";\n\nexport type Accordion = {\n expanded?: boolean;\n};\n\nexport const AccordionCtx = createContext({\n isOpen: false,\n onclick: () => {},\n});\n\nexport const AccordionHeader = (props: PropsWithChildren) => {\n const { children } = props;\n const { isOpen, onclick } = useContext(AccordionCtx);\n return (\n <div className={clsx(header())} onClick={onclick}>\n <p className={clsx(headerContent)}>{children}</p>\n <div className={icon}>{isOpen ? <ChevronDown /> : <ChevronUp />}</div>\n </div>\n );\n};\n\nexport const AccordionDetails = ({ children }: PropsWithChildren) => {\n return <div>{children}</div>;\n};\n\nexport const Accordion = (props: Accordion & PropsWithChildren) => {\n const { expanded = false, children: childrenProps } = props;\n const [isOpen, setIsOpen] = useState(expanded);\n const [header, ...children] = React.Children.toArray(childrenProps);\n return (\n <AccordionCtx.Provider\n value={{\n isOpen: isOpen,\n onclick: () => setIsOpen(!isOpen),\n }}\n >\n <div className={clsx(accordion())}>\n <div className={clsx(isOpen ? \"expanded\" : \"\")}>\n {header}\n <div className={clsx(body, isOpen ? null : hide, paragraph)}>\n {children}\n </div>\n </div>\n </div>\n </AccordionCtx.Provider>\n );\n};\n"],"names":["ChevronDown","ChevronUp","header"],"mappings":";;;;;;;;;;AAwBO,MAAM,eAAe,cAAc;AAAA,EACxC,QAAQ;AAAA,EACR,SAAS,MAAM;AAAA,EAAC;AAClB,CAAC;AAEY,MAAA,kBAAkB,CAAC,UAA6B;AACrD,QAAA,EAAE,SAAa,IAAA;AACrB,QAAM,EAAE,QAAQ,QAAQ,IAAI,WAAW,YAAY;AAEjD,SAAA,qBAAC,SAAI,WAAW,KAAK,QAAQ,GAAG,SAAS,SACvC,UAAA;AAAA,IAAA,oBAAC,KAAE,EAAA,WAAW,KAAK,aAAa,GAAI,UAAS;AAAA,IAC7C,oBAAC,OAAI,EAAA,WAAW,MAAO,UAAA,6BAAUA,gBAAY,CAAA,CAAA,IAAM,oBAAAC,cAAA,CAAA,CAAU,EAAG,CAAA;AAAA,EAClE,EAAA,CAAA;AAEJ;AAEO,MAAM,mBAAmB,CAAC,EAAE,eAAkC;AAC5D,SAAA,oBAAC,SAAK,SAAS,CAAA;AACxB;AAEa,MAAA,YAAY,CAAC,UAAyC;AACjE,QAAM,EAAE,WAAW,OAAO,UAAU,kBAAkB;AACtD,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,QAAQ;AACvC,QAAA,CAACC,SAAQ,GAAG,QAAQ,IAAI,MAAM,SAAS,QAAQ,aAAa;AAEhE,SAAA;AAAA,IAAC,aAAa;AAAA,IAAb;AAAA,MACC,OAAO;AAAA,QACL;AAAA,QACA,SAAS,MAAM,UAAU,CAAC,MAAM;AAAA,MAClC;AAAA,MAEA,UAAC,oBAAA,OAAA,EAAI,WAAW,KAAK,UAAW,CAAA,GAC9B,UAAC,qBAAA,OAAA,EAAI,WAAW,KAAK,SAAS,aAAa,EAAE,GAC1C,UAAA;AAAA,QAAAA;AAAAA,QACD,oBAAC,OAAI,EAAA,WAAW,KAAK,MAAM,SAAS,OAAO,MAAM,SAAS,GACvD,SACH,CAAA;AAAA,MAAA,EAAA,CACF,EACF,CAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/AlertBanner/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/AlertBanner/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAO3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,oBAAoB,CAuBhD,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Chevron } from "../Chevron/index.js";
|
|
3
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
3
4
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
4
5
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
6
|
+
import SvgLockIcon from "../icons/LockIcon/index.js";
|
|
7
|
+
import { SvgWarningIcon } from "../icons/WarningIcon/index.js";
|
|
7
8
|
import { alertBanner, alertBanner_img_section, alertBanner_body, alertBanner_cta } from "./AlertBanner.css.js";
|
|
8
9
|
const AlertBanner = ({
|
|
9
10
|
alertType,
|
|
@@ -12,7 +13,7 @@ const AlertBanner = ({
|
|
|
12
13
|
id
|
|
13
14
|
}) => {
|
|
14
15
|
return /* @__PURE__ */ jsx("section", { className: ``, children: /* @__PURE__ */ jsxs("div", { className: `${alertBanner({ variant: alertType })} flex`, children: [
|
|
15
|
-
/* @__PURE__ */ jsx("div", { className: `${alertBanner_img_section}`, children: alertType === "Standard" ? /* @__PURE__ */ jsx(
|
|
16
|
+
/* @__PURE__ */ jsx("div", { className: `${alertBanner_img_section}`, children: alertType === "Standard" ? /* @__PURE__ */ jsx(SvgLockIcon, {}) : /* @__PURE__ */ jsx(SvgWarningIcon, {}) }),
|
|
16
17
|
/* @__PURE__ */ jsxs("div", { className: `${alertBanner_body} flex`, children: [
|
|
17
18
|
/* @__PURE__ */ jsx("p", { children: message }),
|
|
18
19
|
/* @__PURE__ */ jsx("div", { className: alertBanner_cta, children: /* @__PURE__ */ jsx(Chevron, { targetUrl: callToAction.targetUrl, variant: "primary", children: callToAction.displayText }) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/AlertBanner/index.tsx"],"sourcesContent":["\"use client\";\nimport { Chevron } from \"@lib/Chevron\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/AlertBanner/index.tsx"],"sourcesContent":["\"use client\";\nimport { Chevron } from \"@lib/Chevron\";\nimport { LockIcon, WarningIcon } from \"@lib/icons\";\nimport { FC } from \"react\";\nimport {\n alertBanner,\n alertBanner_body,\n alertBanner_cta,\n alertBanner_img_section,\n} from \"./AlertBanner.css\";\nimport { AlertBannerInterface } from \"./AlertBanner.interface\";\n\nexport const AlertBanner: FC<AlertBannerInterface> = ({\n alertType,\n message,\n callToAction,\n id,\n}) => {\n return (\n <section key={id} className={``}>\n <div className={`${alertBanner({ variant: alertType })} flex`}>\n <div className={`${alertBanner_img_section}`}>\n {alertType === \"Standard\" ? <LockIcon /> : <WarningIcon />}\n </div>\n <div className={`${alertBanner_body} flex`}>\n <p>{message}</p>\n <div className={alertBanner_cta}>\n <Chevron targetUrl={callToAction.targetUrl} variant=\"primary\">\n {callToAction.displayText}\n </Chevron>\n </div>\n </div>\n </div>\n </section>\n );\n};\n"],"names":["LockIcon","WarningIcon"],"mappings":";;;;;;;;AAYO,MAAM,cAAwC,CAAC;AAAA,EACpD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,SACG,oBAAA,WAAA,EAAiB,WAAW,IAC3B,+BAAC,OAAI,EAAA,WAAW,GAAG,YAAY,EAAE,SAAS,UAAU,CAAC,CAAC,SACpD,UAAA;AAAA,IAAA,oBAAC,OAAI,EAAA,WAAW,GAAG,uBAAuB,IACvC,UAAA,cAAc,aAAa,oBAACA,aAAS,CAAA,CAAA,IAAM,oBAAAC,gBAAA,CAAY,CAAA,GAC1D;AAAA,IACC,qBAAA,OAAA,EAAI,WAAW,GAAG,gBAAgB,SACjC,UAAA;AAAA,MAAA,oBAAC,OAAG,UAAQ,QAAA,CAAA;AAAA,MACX,oBAAA,OAAA,EAAI,WAAW,iBACd,UAAC,oBAAA,SAAA,EAAQ,WAAW,aAAa,WAAW,SAAQ,WACjD,UAAA,aAAa,YAChB,CAAA,GACF;AAAA,IAAA,GACF;AAAA,EAAA,GACF,KAbY,EAcd;AAEJ;"}
|
|
@@ -2,5 +2,5 @@ import { PropsWithChildren } from "react";
|
|
|
2
2
|
export interface BulletItemProps extends PropsWithChildren {
|
|
3
3
|
variant?: "primary" | "secondary" | "tertiary" | "quaternary";
|
|
4
4
|
}
|
|
5
|
-
export declare const BulletItem: (props: BulletItemProps) => import("react/jsx-
|
|
5
|
+
export declare const BulletItem: (props: BulletItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=BulletItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BulletItem.d.ts","sourceRoot":"","sources":["../../lib/BulletItem/BulletItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;CAC/D;AAED,eAAO,MAAM,UAAU,UAAW,eAAe,
|
|
1
|
+
{"version":3,"file":"BulletItem.d.ts","sourceRoot":"","sources":["../../lib/BulletItem/BulletItem.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;CAC/D;AAED,eAAO,MAAM,UAAU,UAAW,eAAe,4CAiBhD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { listItem } from "../IconBillboard/IconBillboard.css.js";
|
|
3
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
3
4
|
import SvgCheckCircle from "../icons/CheckCircle.js";
|
|
4
5
|
import SvgCheckCircleLight from "../icons/CheckCircleLight.js";
|
|
5
6
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BulletItem.js","sources":["../../lib/BulletItem/BulletItem.tsx"],"sourcesContent":["\"use client\";\nimport { listItem } from \"@lib/IconBillboard/IconBillboard.css\";\nimport { CheckCircle, CheckCircleLight } from \"@lib/icons\";\nimport { PropsWithChildren } from \"react\";\nimport { bulletIcon } from \"./BulletItem.css\";\nexport interface BulletItemProps extends PropsWithChildren {\n variant?: \"primary\" | \"secondary\" | \"tertiary\" | \"quaternary\";\n}\n\nexport const BulletItem = (props: BulletItemProps) => {\n const iconCheckVariant = new Map([\n [\"primary\", <CheckCircle height={18} width={18} />],\n [\"secondary\", <CheckCircle height={18} width={18} />],\n [\"tertiary\", <CheckCircleLight height={18} width={18} />],\n [\"quaternary\", <CheckCircleLight height={18} width={18} />],\n [undefined, <CheckCircleLight height={18} width={18} />],\n ]);\n\n const Icon = iconCheckVariant.get(props.variant);\n\n return (\n <li className={listItem}>\n <span className={bulletIcon}>{Icon}</span>\n <div>{props.children}</div>\n </li>\n );\n};\n"],"names":["CheckCircle","CheckCircleLight"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BulletItem.js","sources":["../../lib/BulletItem/BulletItem.tsx"],"sourcesContent":["\"use client\";\nimport { listItem } from \"@lib/IconBillboard/IconBillboard.css\";\nimport { CheckCircle, CheckCircleLight } from \"@lib/icons\";\nimport { PropsWithChildren } from \"react\";\nimport { bulletIcon } from \"./BulletItem.css\";\nexport interface BulletItemProps extends PropsWithChildren {\n variant?: \"primary\" | \"secondary\" | \"tertiary\" | \"quaternary\";\n}\n\nexport const BulletItem = (props: BulletItemProps) => {\n const iconCheckVariant = new Map([\n [\"primary\", <CheckCircle height={18} width={18} />],\n [\"secondary\", <CheckCircle height={18} width={18} />],\n [\"tertiary\", <CheckCircleLight height={18} width={18} />],\n [\"quaternary\", <CheckCircleLight height={18} width={18} />],\n [undefined, <CheckCircleLight height={18} width={18} />],\n ]);\n\n const Icon = iconCheckVariant.get(props.variant);\n\n return (\n <li className={listItem}>\n <span className={bulletIcon}>{Icon}</span>\n <div>{props.children}</div>\n </li>\n );\n};\n"],"names":["CheckCircle","CheckCircleLight"],"mappings":";;;;;;;;AASa,MAAA,aAAa,CAAC,UAA2B;AAC9C,QAAA,uCAAuB,IAAI;AAAA,IAC/B,CAAC,WAAY,oBAAAA,gBAAA,EAAY,QAAQ,IAAI,OAAO,IAAI,CAAE;AAAA,IAClD,CAAC,aAAc,oBAAAA,gBAAA,EAAY,QAAQ,IAAI,OAAO,IAAI,CAAE;AAAA,IACpD,CAAC,YAAa,oBAAAC,qBAAA,EAAiB,QAAQ,IAAI,OAAO,IAAI,CAAE;AAAA,IACxD,CAAC,cAAe,oBAAAA,qBAAA,EAAiB,QAAQ,IAAI,OAAO,IAAI,CAAE;AAAA,IAC1D,CAAC,QAAY,oBAAAA,qBAAA,EAAiB,QAAQ,IAAI,OAAO,IAAI,CAAE;AAAA,EAAA,CACxD;AAED,QAAM,OAAO,iBAAiB,IAAI,MAAM,OAAO;AAG7C,SAAA,qBAAC,MAAG,EAAA,WAAW,UACb,UAAA;AAAA,IAAC,oBAAA,QAAA,EAAK,WAAW,YAAa,UAAK,MAAA;AAAA,IACnC,oBAAC,OAAK,EAAA,UAAA,MAAM,SAAS,CAAA;AAAA,EACvB,EAAA,CAAA;AAEJ;"}
|
|
@@ -3,33 +3,42 @@ export declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
3
3
|
color: {
|
|
4
4
|
primary: {
|
|
5
5
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
6
|
-
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
7
6
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
8
7
|
selectors: {
|
|
9
8
|
"&:hover": {
|
|
10
|
-
|
|
9
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
11
|
+
};
|
|
12
|
+
"&:active": {
|
|
13
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
11
14
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
12
15
|
};
|
|
13
16
|
};
|
|
14
17
|
};
|
|
15
18
|
secondary: {
|
|
16
19
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17
|
-
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
20
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
19
21
|
selectors: {
|
|
20
22
|
"&:hover": {
|
|
21
|
-
|
|
23
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
24
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
25
|
+
};
|
|
26
|
+
"&:active": {
|
|
27
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
22
28
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
23
29
|
};
|
|
24
30
|
};
|
|
25
31
|
};
|
|
26
32
|
tertiary: {
|
|
27
33
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
28
|
-
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
29
34
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
30
35
|
selectors: {
|
|
31
36
|
"&:hover": {
|
|
32
|
-
|
|
37
|
+
borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
38
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
39
|
+
};
|
|
40
|
+
"&:active": {
|
|
41
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
33
42
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
34
43
|
};
|
|
35
44
|
};
|
|
@@ -43,25 +52,13 @@ export declare const button: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
43
52
|
};
|
|
44
53
|
size: {
|
|
45
54
|
small: {
|
|
46
|
-
|
|
47
|
-
paddingTop: number;
|
|
48
|
-
paddingBottom: number;
|
|
49
|
-
fontSize: number;
|
|
50
|
-
lineHeight: "20px";
|
|
55
|
+
padding: "4px 32px";
|
|
51
56
|
};
|
|
52
57
|
medium: {
|
|
53
|
-
|
|
54
|
-
paddingTop: number;
|
|
55
|
-
paddingBottom: number;
|
|
56
|
-
fontSize: number;
|
|
57
|
-
lineHeight: "24px";
|
|
58
|
+
padding: "8px 48px";
|
|
58
59
|
};
|
|
59
60
|
large: {
|
|
60
|
-
|
|
61
|
-
paddingTop: number;
|
|
62
|
-
paddingBottom: number;
|
|
63
|
-
fontSize: number;
|
|
64
|
-
lineHeight: "26px";
|
|
61
|
+
padding: "12px 64px";
|
|
65
62
|
};
|
|
66
63
|
};
|
|
67
64
|
disabled: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../lib/Button/Button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAU,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"Button.css.d.ts","sourceRoot":"","sources":["../../lib/Button/Button.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAU,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgMjB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
package/dist/Button/index.js
CHANGED
package/dist/Button/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/Button/index.tsx"],"sourcesContent":["\"use client\";\nimport { ReactNode, createElement } from \"react\";\nimport { ButtonVariants, button } from \"./Button.css\";\n\nexport interface ButtonProps {\n as?: \"button\" | \"a\";\n children?: ReactNode;\n targetUrl?: string;\n id?: string;\n action?: () => void;\n}\n\nexport const Button = ({\n as = \"a\",\n children,\n color,\n size = \"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/Button/index.tsx"],"sourcesContent":["\"use client\";\nimport { ReactNode, createElement } from \"react\";\nimport { ButtonVariants, button } from \"./Button.css\";\n\nexport interface ButtonProps {\n as?: \"button\" | \"a\";\n children?: ReactNode;\n targetUrl?: string;\n id?: string;\n action?: () => void;\n}\n\nexport const Button = ({\n as = \"a\",\n children,\n color,\n size = \"large\",\n disabled,\n rounded = \"medium\",\n targetUrl,\n id,\n action,\n}: ButtonProps & ButtonVariants) => {\n const className = button({ color, size, disabled, rounded });\n return createElement(\n as,\n { className, href: targetUrl, id, onClick: action },\n children\n );\n};\n"],"names":[],"mappings":";;AAYO,MAAM,SAAS,CAAC;AAAA,EACrB,KAAK;AAAA,EACL;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AACF,MAAoC;AAClC,QAAM,YAAY,OAAO,EAAE,OAAO,MAAM,UAAU,SAAS;AACpD,SAAA;AAAA,IACL;AAAA,IACA,EAAE,WAAW,MAAM,WAAW,IAAI,SAAS,OAAO;AAAA,IAClD;AAAA,EAAA;AAEJ;"}
|
package/dist/Carousel/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ type actions = {
|
|
|
23
23
|
setItems: (items: unknown[]) => void;
|
|
24
24
|
};
|
|
25
25
|
export declare const useCarousel: import("zustand").UseBoundStore<import("zustand").StoreApi<state & actions>>;
|
|
26
|
-
export declare const CarouselSlide: (props: SlideProps & carouselVariants) => import("react/jsx-
|
|
27
|
-
export declare const Carousel: (props: CarouselProps & carouselVariants) => import("react/jsx-
|
|
26
|
+
export declare const CarouselSlide: (props: SlideProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const Carousel: (props: CarouselProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export {};
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/Carousel/index.tsx"],"names":[],"mappings":"AAGA,OAAc,EAEZ,iBAAiB,EACjB,SAAS,EAGV,MAAM,OAAO,CAAC;AAEf,OAAO,EAIL,gBAAgB,EAMjB,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,UAAW,SAAQ,iBAAiB;IACnD,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;CACtB;AAED,KAAK,KAAK,GAAG;IACX,QAAQ,EAA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C,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,WAAW,8EAIrB,CAAC;AAyBJ,eAAO,MAAM,aAAa,UAAW,UAAU,GAAG,gBAAgB,4CAmBjE,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,aAAa,GAAG,gBAAgB,4CAkF/D,CAAC"}
|
package/dist/Carousel/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/Carousel/index.tsx"],"sourcesContent":["\"use client\";\nimport { QuoteIconGrey, QuoteIconWhite, QuoteIconYellow } from \"@lib/icons\";\nimport clsx from \"clsx\";\nimport React, {\n Children,\n PropsWithChildren,\n ReactNode,\n cloneElement,\n useEffect,\n} from \"react\";\nimport { create } from \"zustand\";\nimport {\n author as authorClassname,\n authorLocation,\n carousel,\n carouselVariants,\n dot,\n dots,\n icon,\n slide,\n slides,\n} from \"./Carousel.css\";\n\nexport interface SlideProps extends PropsWithChildren {\n id: string | number;\n selected?: boolean;\n content?: ReactNode;\n author?: ReactNode;\n location?: ReactNode;\n}\n\nexport interface CarouselProps extends PropsWithChildren {\n auto?: boolean;\n time?: number;\n selectedItem?: string | number;\n items?: SlideProps[];\n}\n\ntype state = {\n selected: number;\n items?: unknown[];\n timeout?: number;\n};\n\ntype actions = {\n change: (selected: number) => void;\n setItems: (items: unknown[]) => void;\n};\n\nexport const useCarousel = create<state & actions>()((set) => ({\n selected: 0,\n change: (selected) => set(() => ({ selected })),\n setItems: (items) => set(() => ({ items })),\n}));\n\nconst iconVarints = new Map([\n [\n \"primary\",\n <QuoteIconGrey width={64} height={46} className={clsx(icon())} />,\n ],\n [\n \"secondary\",\n <QuoteIconGrey width={64} height={46} className={clsx(icon())} />,\n ],\n [\n \"tertiary\",\n <QuoteIconWhite width={64} height={46} className={clsx(icon())} />,\n ],\n [\n \"quaternary\",\n <QuoteIconYellow width={64} height={46} className={clsx(icon())} />,\n ],\n [\n undefined,\n <QuoteIconGrey width={64} height={46} className={clsx(icon())} />,\n ],\n]);\n\nexport const CarouselSlide = (props: SlideProps & carouselVariants) => {\n const { children, selected, content, author, location, variant } = props;\n\n return (\n <div className={slide[selected ? \"show\" : \"hide\"]}>\n {children ? (\n children\n ) : (\n <>\n <p>{content}</p>\n <div className={authorLocation}>\n <span className={authorClassname({ variant })}>{author}</span>\n <span>|</span>\n <span>{location}</span>\n </div>\n </>\n )}\n </div>\n );\n};\n\nexport const Carousel = (props: CarouselProps & carouselVariants) => {\n const { children, time = 5000, variant, items, auto = false } = props;\n const change = useCarousel((state) => state.change);\n const itemSelected = useCarousel((state) => state.selected);\n\n // const countChildren = Children?.map(children, (item) => {\n // // console.log(item);\n\n // return React.isValidElement(item) && item?.props?.id;\n // });\n\n useEffect(() => {\n if (!auto) {\n return;\n }\n const plusSlides = (n: number) => {\n const noSlides = React.Children.count(children);\n if (n < noSlides - 1) {\n change(n + 1);\n }\n\n if (n === noSlides - 1) {\n change(0);\n }\n };\n const changeAfterTime = setInterval(() => plusSlides(itemSelected), time);\n\n return () => clearInterval(changeAfterTime);\n }, [auto, change, children, itemSelected, time]);\n\n const selectItem = (id: number) => {\n change(id);\n };\n\n const showDots = () => {\n if (children) {\n return Children.map(children, (_, indx) => (\n <div\n key={indx}\n onClick={() => selectItem(indx)}\n className={dot({ variant, selected: indx === itemSelected })}\n ></div>\n ));\n }\n if (items) {\n return items.map((_, indx) => (\n <div\n key={indx}\n onClick={() => selectItem(indx)}\n className={dot({ variant, selected: indx === itemSelected })}\n ></div>\n ));\n }\n };\n\n return (\n <div className={clsx(carousel({ variant }))}>\n <div>{iconVarints.get(variant)}</div>\n <div className={slides}>\n {children\n ? Children.map(\n children,\n (item, idx) =>\n React.isValidElement(item) &&\n cloneElement(item, {\n ...item.props,\n selected: idx === itemSelected,\n variant,\n })\n )\n : items?.map((item, idx) => (\n <CarouselSlide\n key={item.id}\n selected={idx === itemSelected}\n {...item}\n variant={variant}\n />\n ))}\n </div>\n <div className={dots}>{showDots()}</div>\n </div>\n );\n};\n"],"names":["QuoteIconGrey","QuoteIconWhite","QuoteIconYellow","author","authorClassname"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/Carousel/index.tsx"],"sourcesContent":["\"use client\";\nimport { QuoteIconGrey, QuoteIconWhite, QuoteIconYellow } from \"@lib/icons\";\nimport clsx from \"clsx\";\nimport React, {\n Children,\n PropsWithChildren,\n ReactNode,\n cloneElement,\n useEffect,\n} from \"react\";\nimport { create } from \"zustand\";\nimport {\n author as authorClassname,\n authorLocation,\n carousel,\n carouselVariants,\n dot,\n dots,\n icon,\n slide,\n slides,\n} from \"./Carousel.css\";\n\nexport interface SlideProps extends PropsWithChildren {\n id: string | number;\n selected?: boolean;\n content?: ReactNode;\n author?: ReactNode;\n location?: ReactNode;\n}\n\nexport interface CarouselProps extends PropsWithChildren {\n auto?: boolean;\n time?: number;\n selectedItem?: string | number;\n items?: SlideProps[];\n}\n\ntype state = {\n selected: number;\n items?: unknown[];\n timeout?: number;\n};\n\ntype actions = {\n change: (selected: number) => void;\n setItems: (items: unknown[]) => void;\n};\n\nexport const useCarousel = create<state & actions>()((set) => ({\n selected: 0,\n change: (selected) => set(() => ({ selected })),\n setItems: (items) => set(() => ({ items })),\n}));\n\nconst iconVarints = new Map([\n [\n \"primary\",\n <QuoteIconGrey width={64} height={46} className={clsx(icon())} />,\n ],\n [\n \"secondary\",\n <QuoteIconGrey width={64} height={46} className={clsx(icon())} />,\n ],\n [\n \"tertiary\",\n <QuoteIconWhite width={64} height={46} className={clsx(icon())} />,\n ],\n [\n \"quaternary\",\n <QuoteIconYellow width={64} height={46} className={clsx(icon())} />,\n ],\n [\n undefined,\n <QuoteIconGrey width={64} height={46} className={clsx(icon())} />,\n ],\n]);\n\nexport const CarouselSlide = (props: SlideProps & carouselVariants) => {\n const { children, selected, content, author, location, variant } = props;\n\n return (\n <div className={slide[selected ? \"show\" : \"hide\"]}>\n {children ? (\n children\n ) : (\n <>\n <p>{content}</p>\n <div className={authorLocation}>\n <span className={authorClassname({ variant })}>{author}</span>\n <span>|</span>\n <span>{location}</span>\n </div>\n </>\n )}\n </div>\n );\n};\n\nexport const Carousel = (props: CarouselProps & carouselVariants) => {\n const { children, time = 5000, variant, items, auto = false } = props;\n const change = useCarousel((state) => state.change);\n const itemSelected = useCarousel((state) => state.selected);\n\n // const countChildren = Children?.map(children, (item) => {\n // // console.log(item);\n\n // return React.isValidElement(item) && item?.props?.id;\n // });\n\n useEffect(() => {\n if (!auto) {\n return;\n }\n const plusSlides = (n: number) => {\n const noSlides = React.Children.count(children);\n if (n < noSlides - 1) {\n change(n + 1);\n }\n\n if (n === noSlides - 1) {\n change(0);\n }\n };\n const changeAfterTime = setInterval(() => plusSlides(itemSelected), time);\n\n return () => clearInterval(changeAfterTime);\n }, [auto, change, children, itemSelected, time]);\n\n const selectItem = (id: number) => {\n change(id);\n };\n\n const showDots = () => {\n if (children) {\n return Children.map(children, (_, indx) => (\n <div\n key={indx}\n onClick={() => selectItem(indx)}\n className={dot({ variant, selected: indx === itemSelected })}\n ></div>\n ));\n }\n if (items) {\n return items.map((_, indx) => (\n <div\n key={indx}\n onClick={() => selectItem(indx)}\n className={dot({ variant, selected: indx === itemSelected })}\n ></div>\n ));\n }\n };\n\n return (\n <div className={clsx(carousel({ variant }))}>\n <div>{iconVarints.get(variant)}</div>\n <div className={slides}>\n {children\n ? Children.map(\n children,\n (item, idx) =>\n React.isValidElement(item) &&\n cloneElement(item, {\n ...item.props,\n selected: idx === itemSelected,\n variant,\n })\n )\n : items?.map((item, idx) => (\n <CarouselSlide\n key={item.id}\n selected={idx === itemSelected}\n {...item}\n variant={variant}\n />\n ))}\n </div>\n <div className={dots}>{showDots()}</div>\n </div>\n );\n};\n"],"names":["QuoteIconGrey","QuoteIconWhite","QuoteIconYellow","author","authorClassname"],"mappings":";;;;;;;;;;;;AAiDO,MAAM,cAAc,SAA0B,CAAC,S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A,QAAA;AAAA,QAFtD;AAAA,MAAA,CAIR;AAAA,IACH;AAAA,EAAA;AAIA,SAAA,qBAAC,SAAI,WAAW,KAAK,SAAS,EAAE,QAAA,CAAS,CAAC,GACxC,UAAA;AAAA,IAAA,oBAAC,OAAK,EAAA,UAAA,YAAY,IAAI,OAAO,GAAE;AAAA,IAC9B,oBAAA,OAAA,EAAI,WAAW,QACb,qBACG,SAAS;AAAA,MACP;AAAA,MACA,CAAC,MAAM,QACL,MAAM,eAAe,IAAI,KACzB,aAAa,MAAM;AAAA,QACjB,GAAG,KAAK;AAAA,QACR,UAAU,QAAQ;AAAA,QAClB;AAAA,MAAA,CACD;AAAA,IAEL,IAAA,+BAAO,IAAI,CAAC,MAAM,QAChB;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,UAAU,QAAQ;AAAA,QACjB,GAAG;AAAA,QACJ;AAAA,MAAA;AAAA,MAHK,KAAK;AAAA,IAKb,IACP;AAAA,IACC,oBAAA,OAAA,EAAI,WAAW,MAAO,sBAAW;AAAA,EACpC,EAAA,CAAA;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/Chevron/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/Chevron/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAoBpC,CAAC"}
|
package/dist/Chevron/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import SvgArrowIcon from "../icons/ArrowIcon/index.js";
|
|
3
|
+
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
3
6
|
import { chevron_wrapper, chevron } from "./Chevron.css.js";
|
|
4
7
|
const Chevron = ({
|
|
5
8
|
children,
|
|
@@ -8,6 +11,7 @@ const Chevron = ({
|
|
|
8
11
|
id,
|
|
9
12
|
className
|
|
10
13
|
}) => {
|
|
14
|
+
variant = getVariant(variant);
|
|
11
15
|
return /* @__PURE__ */ jsxs("span", { className: `sc__btn ${chevron_wrapper}`, children: [
|
|
12
16
|
/* @__PURE__ */ jsx(
|
|
13
17
|
"a",
|
|
@@ -18,7 +22,7 @@ const Chevron = ({
|
|
|
18
22
|
children
|
|
19
23
|
}
|
|
20
24
|
),
|
|
21
|
-
/* @__PURE__ */ jsx(
|
|
25
|
+
/* @__PURE__ */ jsx(SvgArrowIcon, { className: "arrow", variant })
|
|
22
26
|
] });
|
|
23
27
|
};
|
|
24
28
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/Chevron/index.tsx"],"sourcesContent":["\"use client\";\nimport { ArrowIcon } from \"@lib/icons/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/Chevron/index.tsx"],"sourcesContent":["\"use client\";\nimport { ArrowIcon } from \"@lib/icons\";\nimport { getVariant } from \"@lib/utils/getVariant\";\nimport { CallToActionTypes } from \"@lib/utils/variant.types\";\nimport { FC } from \"react\";\nimport { chevron, chevron_wrapper } from \"./Chevron.css\";\nimport { ChevronProps } from \"./Chevron.interface\";\n\nexport const Chevron: FC<ChevronProps> = ({\n children,\n variant,\n targetUrl,\n id,\n className,\n}: ChevronProps) => {\n variant = getVariant(variant) as CallToActionTypes;\n return (\n <span className={`sc__btn ${chevron_wrapper}`}>\n <a\n id={id}\n href={targetUrl}\n className={`${chevron({ variant })} ${className ? className : \"\"}`}\n >\n {children}\n </a>\n <ArrowIcon className=\"arrow\" variant={variant} />\n </span>\n );\n};\n"],"names":["ArrowIcon"],"mappings":";;;;;;AAQO,MAAM,UAA4B,CAAC;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAoB;AAClB,YAAU,WAAW,OAAO;AAC5B,SACG,qBAAA,QAAA,EAAK,WAAW,WAAW,eAAe,IACzC,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,MAAM;AAAA,QACN,WAAW,GAAG,QAAQ,EAAE,QAAA,CAAS,CAAC,IAAI,YAAY,YAAY,EAAE;AAAA,QAE/D;AAAA,MAAA;AAAA,IACH;AAAA,IACC,oBAAAA,cAAA,EAAU,WAAU,SAAQ,QAAkB,CAAA;AAAA,EACjD,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "../Button/index.js";
|
|
3
3
|
import { Hyperlink } from "../Hyperlink/index.js";
|
|
4
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
4
5
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
5
|
-
import
|
|
6
|
+
import SvgCloseIcon from "../icons/CloseIcon/index.js";
|
|
6
7
|
/* empty css */
|
|
7
8
|
import { privacy_prompt, privacy_prompt_content, privacy_prompt_btns, close_btn_optin } from "./CollectInformationAlert.css.js";
|
|
8
9
|
const CollectInformationAlert = () => {
|
|
@@ -35,7 +36,7 @@ const CollectInformationAlert = () => {
|
|
|
35
36
|
id: "close_btn_optin",
|
|
36
37
|
className: `${close_btn_optin}`,
|
|
37
38
|
targetUrl: "#",
|
|
38
|
-
children: /* @__PURE__ */ jsx(
|
|
39
|
+
children: /* @__PURE__ */ jsx(SvgCloseIcon, {})
|
|
39
40
|
}
|
|
40
41
|
)
|
|
41
42
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/CollectInformationAlert/index.tsx"],"sourcesContent":["\"use client\";\nimport { Button } from \"@lib/Button\";\nimport { Hyperlink } from \"@lib/Hyperlink\";\nimport { CloseIcon } from \"@lib/icons\";\nimport { FC } from \"react\";\nimport {\n close_btn_optin,\n privacy_prompt,\n privacy_prompt_btns,\n privacy_prompt_content,\n} from \"./CollectInformationAlert.css\";\n\nexport const CollectInformationAlert: FC = () => {\n return (\n <div className={`${privacy_prompt}`}>\n <div className={privacy_prompt_content}>\n <p>\n Axos Bank may collect personal information from consumers in the\n course of doing business. California residents have a right to know\n what <a href=\"#\">categories of personal information</a> Axos Bank\n collects and the right to tell Axos Bank to{\" \"}\n <a href=\"#\">not sell their personal information</a>. For full details,\n please see our <a href=\"#\">California Consumer Privacy Act Notice</a>.\n </p>\n </div>\n <div className={privacy_prompt_btns}>\n <div id={\"consent_prompt_submit\"}>\n <Button\n id=\"privacy_pref_optin\"\n targetUrl=\"#\"\n color=\"tertiary\"\n size=\"large\"\n rounded=\"medium\"\n >\n Accept\n </Button>\n </div>\n <Hyperlink\n id=\"close_btn_optin\"\n className={`${close_btn_optin}`}\n targetUrl={\"#\"}\n >\n <CloseIcon />\n </Hyperlink>\n {/* <Button\n id=\"close_btn_optin\"\n className={`${close_btn_optin}`}\n url=\"#\"\n text=\"\"\n >\n <CloseIcon />\n </Button> */}\n </div>\n </div>\n );\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/CollectInformationAlert/index.tsx"],"sourcesContent":["\"use client\";\nimport { Button } from \"@lib/Button\";\nimport { Hyperlink } from \"@lib/Hyperlink\";\nimport { CloseIcon } from \"@lib/icons\";\nimport { FC } from \"react\";\nimport {\n close_btn_optin,\n privacy_prompt,\n privacy_prompt_btns,\n privacy_prompt_content,\n} from \"./CollectInformationAlert.css\";\n\nexport const CollectInformationAlert: FC = () => {\n return (\n <div className={`${privacy_prompt}`}>\n <div className={privacy_prompt_content}>\n <p>\n Axos Bank may collect personal information from consumers in the\n course of doing business. California residents have a right to know\n what <a href=\"#\">categories of personal information</a> Axos Bank\n collects and the right to tell Axos Bank to{\" \"}\n <a href=\"#\">not sell their personal information</a>. For full details,\n please see our <a href=\"#\">California Consumer Privacy Act Notice</a>.\n </p>\n </div>\n <div className={privacy_prompt_btns}>\n <div id={\"consent_prompt_submit\"}>\n <Button\n id=\"privacy_pref_optin\"\n targetUrl=\"#\"\n color=\"tertiary\"\n size=\"large\"\n rounded=\"medium\"\n >\n Accept\n </Button>\n </div>\n <Hyperlink\n id=\"close_btn_optin\"\n className={`${close_btn_optin}`}\n targetUrl={\"#\"}\n >\n <CloseIcon />\n </Hyperlink>\n {/* <Button\n id=\"close_btn_optin\"\n className={`${close_btn_optin}`}\n url=\"#\"\n text=\"\"\n >\n <CloseIcon />\n </Button> */}\n </div>\n </div>\n );\n};\n"],"names":["CloseIcon"],"mappings":";;;;;;;;AAYO,MAAM,0BAA8B,MAAM;AAC/C,SACG,qBAAA,OAAA,EAAI,WAAW,GAAG,cAAc,IAC/B,UAAA;AAAA,IAAA,oBAAC,OAAI,EAAA,WAAW,wBACd,UAAA,qBAAC,KAAE,EAAA,UAAA;AAAA,MAAA;AAAA,MAGK,oBAAA,KAAA,EAAE,MAAK,KAAI,UAAkC,sCAAA;AAAA,MAAI;AAAA,MACX;AAAA,MAC3C,oBAAA,KAAA,EAAE,MAAK,KAAI,UAAmC,uCAAA;AAAA,MAAI;AAAA,MACnC,oBAAA,KAAA,EAAE,MAAK,KAAI,UAAsC,0CAAA;AAAA,MAAI;AAAA,IAAA,EAAA,CACvE,EACF,CAAA;AAAA,IACA,qBAAC,OAAI,EAAA,WAAW,qBACd,UAAA;AAAA,MAAC,oBAAA,OAAA,EAAI,IAAI,yBACP,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,WAAU;AAAA,UACV,OAAM;AAAA,UACN,MAAK;AAAA,UACL,SAAQ;AAAA,UACT,UAAA;AAAA,QAAA;AAAA,MAAA,GAGH;AAAA,MACA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,IAAG;AAAA,UACH,WAAW,GAAG,eAAe;AAAA,UAC7B,WAAW;AAAA,UAEX,8BAACA,cAAU,EAAA;AAAA,QAAA;AAAA,MACb;AAAA,IAAA,GASF;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
3
|
+
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
4
|
+
import SvgDownloadIcon from "../icons/DownloadIcon/index.js";
|
|
3
5
|
import { table_section, table_section_container, table_header, media__table, download, ico, table_footer } from "./DownloadTile.css.js";
|
|
4
6
|
const DownloadTile = ({
|
|
5
7
|
id,
|
|
@@ -22,7 +24,7 @@ const DownloadTile = ({
|
|
|
22
24
|
/* @__PURE__ */ jsx("tbody", { id: "body-table", children: downloadTiles.map(({ id: id2, url, displayName, action }) => /* @__PURE__ */ jsxs("tr", { children: [
|
|
23
25
|
/* @__PURE__ */ jsx("td", { "data-label": "", children: displayName }),
|
|
24
26
|
/* @__PURE__ */ jsx("td", { "data-label": "", children: /* @__PURE__ */ jsxs("a", { href: url, target: "_blank", className: download, children: [
|
|
25
|
-
/* @__PURE__ */ jsx(
|
|
27
|
+
/* @__PURE__ */ jsx(SvgDownloadIcon, { className: ico }),
|
|
26
28
|
/* @__PURE__ */ jsx("span", { children: action })
|
|
27
29
|
] }) })
|
|
28
30
|
] }, id2)) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/DownloadTile/index.tsx"],"sourcesContent":["\"use client\";\nimport { DownloadIcon } from \"@lib/icons
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/DownloadTile/index.tsx"],"sourcesContent":["\"use client\";\nimport { DownloadIcon } from \"@lib/icons\";\nimport { FC } from \"react\";\nimport {\n download,\n ico,\n media__table,\n table_footer,\n table_header,\n table_section,\n table_section_container,\n} from \"./DownloadTile.css\";\nimport { DownloadTileSet } from \"./DownloadTile.interface\";\n\nexport const DownloadTile: FC<DownloadTileSet> = ({\n id,\n titleText,\n description,\n additionalDetails,\n downloadTiles,\n}) => {\n return (\n <section key={id} className={`containment section_spacer`}>\n <div className={table_section}>\n <div className={`${table_section_container}`}>\n {titleText && (\n <div className={`${table_header} section_header`}>\n <h2 className={`text_center`}>{titleText}</h2>\n {description && <>{description}</>}\n </div>\n )}\n </div>\n <div className={`${table_section_container}`}>\n <table className={`${media__table}`}>\n <thead>\n <tr>\n <th scope=\"colgroup\">NAME</th>\n <th scope=\"colgroup\">ACTION</th>\n </tr>\n </thead>\n <tbody id=\"body-table\">\n {downloadTiles.map(({ id, url, displayName, action }) => (\n <tr key={id}>\n <td data-label=\"\">{displayName}</td>\n <td data-label=\"\">\n <a href={url} target=\"_blank\" className={download}>\n <DownloadIcon className={ico} />\n <span>{action}</span>\n </a>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n <div className={`${table_footer} push_up_32`}>\n {additionalDetails && <>{additionalDetails}</>}\n </div>\n </div>\n </div>\n </section>\n );\n};\n"],"names":["id","DownloadIcon"],"mappings":";;;;;AAcO,MAAM,eAAoC,CAAC;AAAA,EAChD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,6BACG,WAAiB,EAAA,WAAW,8BAC3B,UAAC,qBAAA,OAAA,EAAI,WAAW,eACd,UAAA;AAAA,IAAC,oBAAA,OAAA,EAAI,WAAW,GAAG,uBAAuB,IACvC,UACC,aAAA,qBAAC,OAAI,EAAA,WAAW,GAAG,YAAY,mBAC7B,UAAA;AAAA,MAAC,oBAAA,MAAA,EAAG,WAAW,eAAgB,UAAU,WAAA;AAAA,MACxC,+CAAkB,UAAY,YAAA,CAAA;AAAA,IAAA,EAAA,CACjC,EAEJ,CAAA;AAAA,IACC,qBAAA,OAAA,EAAI,WAAW,GAAG,uBAAuB,IACxC,UAAA;AAAA,MAAA,qBAAC,SAAM,EAAA,WAAW,GAAG,YAAY,IAC/B,UAAA;AAAA,QAAC,oBAAA,SAAA,EACC,+BAAC,MACC,EAAA,UAAA;AAAA,UAAC,oBAAA,MAAA,EAAG,OAAM,YAAW,UAAI,QAAA;AAAA,UACxB,oBAAA,MAAA,EAAG,OAAM,YAAW,UAAM,UAAA;AAAA,QAAA,EAAA,CAC7B,EACF,CAAA;AAAA,QACC,oBAAA,SAAA,EAAM,IAAG,cACP,wBAAc,IAAI,CAAC,EAAE,IAAAA,KAAI,KAAK,aAAa,OAAO,2BAChD,MACC,EAAA,UAAA;AAAA,UAAC,oBAAA,MAAA,EAAG,cAAW,IAAI,UAAY,aAAA;AAAA,UAC/B,oBAAC,MAAG,EAAA,cAAW,IACb,UAAA,qBAAC,KAAE,EAAA,MAAM,KAAK,QAAO,UAAS,WAAW,UACvC,UAAA;AAAA,YAAC,oBAAAC,iBAAA,EAAa,WAAW,IAAK,CAAA;AAAA,YAC9B,oBAAC,UAAM,UAAO,OAAA,CAAA;AAAA,UAAA,EAAA,CAChB,EACF,CAAA;AAAA,QAAA,KAPOD,GAQT,CACD,GACH;AAAA,MAAA,GACF;AAAA,MACA,oBAAC,SAAI,WAAW,GAAG,YAAY,eAC5B,UAAA,qBAAwB,oBAAA,UAAA,EAAA,UAAA,kBAAkB,CAAA,GAC7C;AAAA,IAAA,GACF;AAAA,EAAA,GACF,KApCY,EAqCd;AAEJ;"}
|
|
@@ -3,12 +3,12 @@ import { header } from "./FaqAccordion.css";
|
|
|
3
3
|
export interface AccordionItemProps extends PropsWithChildren {
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const AccordionItem: (props: AccordionItemProps) => import("react/jsx-
|
|
6
|
+
export declare const AccordionItem: (props: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const AccordionItemSummary: (props: {
|
|
8
8
|
id: string;
|
|
9
|
-
} & PropsWithChildren) => import("react/jsx-
|
|
10
|
-
export declare const AccordionItemContent: (props: PropsWithChildren) => import("react/jsx-
|
|
9
|
+
} & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const AccordionItemContent: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare const FaqAccordion: (props: {
|
|
12
12
|
header?: string;
|
|
13
|
-
} & PropsWithChildren) => import("react/jsx-
|
|
13
|
+
} & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/FaqAccordion/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAGL,MAAM,EAGP,MAAM,oBAAoB,CAAC;AAe5B,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,aAAa,UAAW,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/FaqAccordion/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAGL,MAAM,EAGP,MAAM,oBAAoB,CAAC;AAe5B,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,aAAa,UAAW,kBAAkB,4CAkBtD,CAAC;AAEF,eAAO,MAAM,oBAAoB,UACxB;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,4CAa1C,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAAW,iBAAiB,4CAE5D,CAAC;AAEF,eAAO,MAAM,YAAY,UAChB;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,4CAS/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../lib/FaqAccordion/index.tsx"],"sourcesContent":["\"use client\";\nimport { ChevronDown, ChevronUp } from \"@lib/icons\";\nimport { MouseEvent, PropsWithChildren } from \"react\";\nimport { create } from \"zustand\";\nimport { icon } from \"../Accordion/Accordion.css\";\nimport {\n content,\n faqAccordion,\n header,\n summary,\n summaryHeader,\n} from \"./FaqAccordion.css\";\n\ntype state = {\n itemOpened: string;\n};\n\ntype actions = {\n toggle: (id: string) => void;\n};\n\nconst useAccordion = create<state & actions>()((set) => ({\n itemOpened: \"\",\n toggle: (id) => set(() => ({ itemOpened: id })),\n}));\n\nexport interface AccordionItemProps extends PropsWithChildren {\n id: string;\n}\n\nexport const AccordionItem = (props: AccordionItemProps) => {\n const selectItem = useAccordion((state) => state.toggle);\n const isOpen = useAccordion((state) => state.itemOpened);\n\n const toggle = (ev: MouseEvent<HTMLDialogElement>) => {\n ev.preventDefault();\n if (isOpen !== props.id) {\n selectItem(props.id);\n } else {\n selectItem(\"\");\n }\n };\n\n return (\n <details onClick={toggle} open={isOpen === props.id}>\n {props.children}\n </details>\n );\n};\n\nexport const AccordionItemSummary = (\n props: { id: string } & PropsWithChildren\n) => {\n const isOpen = useAccordion((state) => state.itemOpened);\n return (\n <summary className={summary}>\n <div className={summaryHeader}>{props.children}</div>\n <div>\n <div className={icon}>\n {isOpen === props.id ? <ChevronUp /> : <ChevronDown />}\n </div>\n </div>\n </summary>\n );\n};\n\nexport const AccordionItemContent = (props: PropsWithChildren) => {\n return <div className={content}>{props.children}</div>;\n};\n\nexport const FaqAccordion = (\n props: { header?: string } & PropsWithChildren\n) => {\n const { children } = props;\n return (\n <section>\n {props.header && <p className={header}>{props.header}</p>}\n <div className={faqAccordion}>{children}</div>\n </section>\n );\n};\n"],"names":["ChevronUp","ChevronDown"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../lib/FaqAccordion/index.tsx"],"sourcesContent":["\"use client\";\nimport { ChevronDown, ChevronUp } from \"@lib/icons\";\nimport { MouseEvent, PropsWithChildren } from \"react\";\nimport { create } from \"zustand\";\nimport { icon } from \"../Accordion/Accordion.css\";\nimport {\n content,\n faqAccordion,\n header,\n summary,\n summaryHeader,\n} from \"./FaqAccordion.css\";\n\ntype state = {\n itemOpened: string;\n};\n\ntype actions = {\n toggle: (id: string) => void;\n};\n\nconst useAccordion = create<state & actions>()((set) => ({\n itemOpened: \"\",\n toggle: (id) => set(() => ({ itemOpened: id })),\n}));\n\nexport interface AccordionItemProps extends PropsWithChildren {\n id: string;\n}\n\nexport const AccordionItem = (props: AccordionItemProps) => {\n const selectItem = useAccordion((state) => state.toggle);\n const isOpen = useAccordion((state) => state.itemOpened);\n\n const toggle = (ev: MouseEvent<HTMLDialogElement>) => {\n ev.preventDefault();\n if (isOpen !== props.id) {\n selectItem(props.id);\n } else {\n selectItem(\"\");\n }\n };\n\n return (\n <details onClick={toggle} open={isOpen === props.id}>\n {props.children}\n </details>\n );\n};\n\nexport const AccordionItemSummary = (\n props: { id: string } & PropsWithChildren\n) => {\n const isOpen = useAccordion((state) => state.itemOpened);\n return (\n <summary className={summary}>\n <div className={summaryHeader}>{props.children}</div>\n <div>\n <div className={icon}>\n {isOpen === props.id ? <ChevronUp /> : <ChevronDown />}\n </div>\n </div>\n </summary>\n );\n};\n\nexport const AccordionItemContent = (props: PropsWithChildren) => {\n return <div className={content}>{props.children}</div>;\n};\n\nexport const FaqAccordion = (\n props: { header?: string } & PropsWithChildren\n) => {\n const { children } = props;\n return (\n <section>\n {props.header && <p className={header}>{props.header}</p>}\n <div className={faqAccordion}>{children}</div>\n </section>\n );\n};\n"],"names":["ChevronUp","ChevronDown"],"mappings":";;;;;;;;;AAqBA,MAAM,eAAe,SAA0B,CAAC,SAAS;AAAA,EACvD,YAAY;AAAA,EACZ,QAAQ,CAAC,OAAO,IAAI,OAAO,EAAE,YAAY,KAAK;AAChD,EAAE;A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|
-
export declare const FooterParagraph: (props: PropsWithChildren) => import("react/jsx-
|
|
4
|
-
export declare const FooterIcons: (props: PropsWithChildren) => import("react/jsx-
|
|
5
|
-
export declare const FooterDisclosure: (props: PropsWithChildren) => import("react/jsx-
|
|
2
|
+
export declare const FooterContent: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const FooterParagraph: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const FooterIcons: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const FooterDisclosure: (props: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=FooterDisclosure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FooterDisclosure.d.ts","sourceRoot":"","sources":["../../lib/FooterDisclosure/FooterDisclosure.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAQ1C,eAAO,MAAM,aAAa,UAAW,iBAAiB,
|
|
1
|
+
{"version":3,"file":"FooterDisclosure.d.ts","sourceRoot":"","sources":["../../lib/FooterDisclosure/FooterDisclosure.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAQ1C,eAAO,MAAM,aAAa,UAAW,iBAAiB,4CAErD,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,iBAAiB,4CAEvD,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,iBAAiB,4CAEnD,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,iBAAiB,4CAExD,CAAC"}
|