@axos-web-dev/shared-components 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.css.d.ts +4 -3
- package/dist/Accordion/Accordion.d.ts +2 -1
- package/dist/Accordion/Accordion.js +1 -0
- package/dist/Accordion/index.d.ts +2 -2
- package/dist/AlertBanner/AlertBanner.css.d.ts +1 -1
- package/dist/AlertBanner/AlertBanner.interface.d.ts +2 -1
- package/dist/AlertBanner/index.d.ts +3 -2
- package/dist/AlertBanner/index.js +1 -0
- package/dist/ApyCalculator/index.d.ts +2 -1
- package/dist/ApyCalculator/index.js +3 -17
- package/dist/BulletItem/BulletItem.d.ts +2 -1
- package/dist/BulletItem/BulletItem.js +1 -0
- package/dist/BulletItem/index.d.ts +1 -1
- package/dist/Button/Button.css.d.ts +3 -2
- package/dist/Button/Button.d.ts +4 -3
- package/dist/Button/Button.interface.d.ts +2 -1
- package/dist/Button/GoBackButton.d.ts +3 -2
- package/dist/Button/index.d.ts +3 -3
- package/dist/CallToActionBar/CallToActionBar.interface.d.ts +2 -1
- package/dist/CallToActionBar/index.d.ts +3 -2
- package/dist/Carousel/Carousel.css.d.ts +6 -5
- package/dist/Carousel/index.d.ts +3 -2
- package/dist/Carousel/index.js +2 -1
- package/dist/Carousel/store.d.ts +1 -1
- package/dist/Chevron/Chevron.css.d.ts +1 -1
- package/dist/Chevron/Chevron.interface.d.ts +2 -1
- package/dist/Chevron/index.d.ts +3 -2
- package/dist/Chevron/index.js +3 -1
- package/dist/CollectInformationAlert/index.d.ts +2 -1
- package/dist/CollectInformationAlert/index.js +1 -0
- package/dist/ContentBanner/ContentBanner.css.d.ts +2 -2
- package/dist/ContentBanner/ContentBanner.interface.d.ts +2 -1
- package/dist/ContentBanner/index.d.ts +3 -2
- package/dist/ContentBanner/index.js +1 -1
- package/dist/DownloadTile/DownloadTile.interface.d.ts +2 -1
- package/dist/DownloadTile/index.d.ts +3 -2
- package/dist/DownloadTile/index.js +1 -0
- package/dist/FaqAccordion/index.d.ts +3 -2
- package/dist/FaqAccordion/index.js +1 -0
- package/dist/FooterDisclosure/FooterDisclosure.css.d.ts +1 -1
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +2 -1
- package/dist/FooterDisclosure/index.d.ts +2 -2
- package/dist/Forms/Forms.css.d.ts +4 -4
- package/dist/Forms/RenderForm.d.ts +3 -2
- package/dist/Forms/SalesforceFieldsForm.d.ts +1 -1
- package/dist/Forms/ScheduleCall.d.ts +3 -2
- package/dist/Forms/ScheduleCall.js +22 -9
- package/dist/Forms/index.d.ts +4 -4
- package/dist/HeroBanner/HeroBanner.css.d.ts +5 -4
- package/dist/HeroBanner/HeroBanner.css.js +11 -9
- package/dist/HeroBanner/HeroBanner.interface.d.ts +2 -1
- package/dist/HeroBanner/index.d.ts +2 -1
- package/dist/HeroBanner/index.js +3 -3
- package/dist/Hyperlink/Hyperlink.interface.d.ts +2 -1
- package/dist/Hyperlink/index.d.ts +3 -2
- package/dist/Hyperlink/index.js +4 -1
- package/dist/IconBillboard/IconBillboard.css.d.ts +6 -5
- package/dist/IconBillboard/IconBillboard.d.ts +4 -3
- package/dist/IconBillboard/IconBillboard.interface.d.ts +4 -3
- package/dist/IconBillboard/IconBillboard.js +1 -1
- package/dist/IconBillboard/IconBillboardSet.d.ts +2 -1
- package/dist/IconBillboard/index.d.ts +4 -4
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +4 -4
- package/dist/ImageBillboard/ImageBillboard.d.ts +2 -1
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +5 -4
- package/dist/ImageBillboard/ImageBillboard.js +1 -0
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +2 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +1 -0
- package/dist/ImageBillboard/index.d.ts +4 -4
- package/dist/Input/Input.css.d.ts +6 -6
- package/dist/Input/Input.css.js +2 -2
- package/dist/Input/Input.d.ts +14 -0
- package/dist/Input/Input.js +45 -0
- package/dist/Input/InputPhone.d.ts +3 -0
- package/dist/Input/InputPhone.js +24 -0
- package/dist/Input/index.d.ts +3 -13
- package/dist/Input/index.js +13 -43
- package/dist/Inputs/Input.css.d.ts +6 -6
- package/dist/MainHTML/index.d.ts +2 -1
- package/dist/MainHTML/index.js +8 -1
- package/dist/Modal/Modal.d.ts +3 -2
- package/dist/Modal/Modal.js +4 -1
- package/dist/Modal/contextApi/store.d.ts +3 -2
- package/dist/Modal/contextApi/store.js +11 -16
- package/dist/Modal/index.d.ts +2 -2
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +53 -53
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +138 -97
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +40 -40
- package/dist/NavigationMenu/index.d.ts +2 -2
- package/dist/SetContainer/SetContainer.d.ts +3 -2
- package/dist/SetContainer/SetContainer.js +4 -1
- package/dist/SetContainer/index.d.ts +2 -2
- package/dist/Table/Table.css.d.ts +16 -5
- package/dist/Table/Table.css.js +15 -13
- package/dist/Table/Table.d.ts +5 -4
- package/dist/Table/Table.interface.d.ts +3 -1
- package/dist/Table/Table.js +37 -19
- package/dist/Table/index.d.ts +2 -2
- package/dist/Table/index.js +2 -1
- package/dist/TextBlock/TextBlock.d.ts +2 -1
- package/dist/TextBlock/index.d.ts +2 -2
- package/dist/Typography/Typography.css.d.ts +4 -3
- package/dist/Typography/Typography.d.ts +3 -2
- package/dist/Typography/index.d.ts +1 -1
- package/dist/VideoTile/VideoTile.d.ts +3 -2
- package/dist/VideoTile/VideoTile.js +3 -2
- package/dist/VideoTile/index.d.ts +4 -4
- package/dist/VideoWrapper/index.d.ts +3 -2
- package/dist/VideoWrapper/index.js +1 -0
- package/dist/assets/Forms/Forms.css +1 -1
- package/dist/assets/HeroBanner/HeroBanner.css +100 -51
- package/dist/assets/ImageBillboard/ImageBillboard.css +7 -0
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +594 -590
- package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +84 -81
- package/dist/assets/Table/Table.css +89 -54
- package/dist/assets/globals.css +9 -0
- package/dist/icons/ArrowIcon/ArrowIcon.css.d.ts +1 -1
- package/dist/icons/ArrowIcon/index.d.ts +2 -1
- package/dist/icons/ArrowIcon/index.js +3 -1
- package/dist/icons/AxosX/Blue.d.ts +2 -1
- package/dist/icons/AxosX/index.d.ts +2 -1
- package/dist/icons/CheckCircle.d.ts +2 -1
- package/dist/icons/CheckCircleLight.d.ts +2 -1
- package/dist/icons/CheckIcon/CheckIcon.css.d.ts +3 -2
- package/dist/icons/CheckIcon/index.d.ts +2 -1
- package/dist/icons/ChevronDown.d.ts +2 -1
- package/dist/icons/ChevronUp.d.ts +2 -1
- package/dist/icons/CloseIcon/index.d.ts +2 -1
- package/dist/icons/DownloadIcon/index.d.ts +2 -1
- package/dist/icons/EqualHousingLender.d.ts +2 -1
- package/dist/icons/LockIcon/index.d.ts +2 -1
- package/dist/icons/MemberFdicLogo.d.ts +2 -1
- package/dist/icons/QuoteIconGrey.d.ts +2 -1
- package/dist/icons/QuoteIconWhite.d.ts +2 -1
- package/dist/icons/QuoteIconYellow.d.ts +2 -1
- package/dist/icons/WarningIcon/index.d.ts +2 -1
- package/dist/icons/index.d.ts +17 -17
- package/dist/index.css.d.ts +1 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +15 -3
- package/dist/themes/index.d.ts +2 -2
- package/dist/utils/allowedAxosDomains.js +5 -5
- package/dist/utils/ctaOptions.d.ts +1 -0
- package/dist/utils/getVariant.d.ts +2 -1
- package/dist/utils/index.d.ts +5 -5
- package/package.json +107 -106
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { RecipeVariants } from
|
|
2
|
-
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
+
|
|
3
|
+
export declare const accordion: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
3
4
|
width: {
|
|
4
5
|
"1/2": {
|
|
5
6
|
display: "flex";
|
|
@@ -39,7 +40,7 @@ export declare const accordion: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
42
|
}>;
|
|
42
|
-
export declare const headerAccordion: import(
|
|
43
|
+
export declare const headerAccordion: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
43
44
|
variant: {
|
|
44
45
|
primary: {
|
|
45
46
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import React, { createContext, useContext, useState } from "react";
|
|
5
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
5
6
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
6
7
|
import SvgChevronDown from "../icons/ChevronDown.js";
|
|
7
8
|
import SvgChevronUp from "../icons/ChevronUp.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './Accordion';
|
|
2
|
+
export * from './Accordion.css';
|
|
@@ -216,7 +216,7 @@ const ApyCalculator = () => {
|
|
|
216
216
|
Button,
|
|
217
217
|
{
|
|
218
218
|
id: "btn-savings",
|
|
219
|
-
targetUrl: "
|
|
219
|
+
targetUrl: "/products/select-savings",
|
|
220
220
|
color: "secondary",
|
|
221
221
|
size: "medium",
|
|
222
222
|
rounded: "medium",
|
|
@@ -242,25 +242,11 @@ const ApyCalculator = () => {
|
|
|
242
242
|
] }) }),
|
|
243
243
|
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
244
244
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
245
|
-
/* @__PURE__ */ jsx("td", { "aria-label": "UFB Secure Money Market", children: /* @__PURE__ */ jsx(
|
|
246
|
-
"a",
|
|
247
|
-
{
|
|
248
|
-
className: "link",
|
|
249
|
-
href: "https://www.axosadvisor.com/Products/Select-Savings",
|
|
250
|
-
children: "Select Savings"
|
|
251
|
-
}
|
|
252
|
-
) }),
|
|
245
|
+
/* @__PURE__ */ jsx("td", { "aria-label": "UFB Secure Money Market", children: /* @__PURE__ */ jsx("a", { className: "link", href: "/products/select-savings", children: "Select Savings" }) }),
|
|
253
246
|
/* @__PURE__ */ jsx("td", { "aria-label": "Up to 5.25%", children: "Up to 0.20%" })
|
|
254
247
|
] }),
|
|
255
248
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
256
|
-
/* @__PURE__ */ jsx("td", { "aria-label": "UFB Secure Savings", children: /* @__PURE__ */ jsx(
|
|
257
|
-
"a",
|
|
258
|
-
{
|
|
259
|
-
className: "link",
|
|
260
|
-
href: "https://www.axosadvisor.com/Products/Select-Checking",
|
|
261
|
-
children: "Select Checking"
|
|
262
|
-
}
|
|
263
|
-
) }),
|
|
249
|
+
/* @__PURE__ */ jsx("td", { "aria-label": "UFB Secure Savings", children: /* @__PURE__ */ jsx("a", { className: "link", href: "/products/select-checking", children: "Select Checking" }) }),
|
|
264
250
|
/* @__PURE__ */ jsx("td", { "aria-label": "Up to 5.25%", children: "Up to 0.10%" })
|
|
265
251
|
] })
|
|
266
252
|
] })
|
|
@@ -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
|
-
export * from
|
|
1
|
+
export * from './BulletItem';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { RecipeVariants } from
|
|
2
|
-
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
+
|
|
3
|
+
export declare const button: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
3
4
|
color: {
|
|
4
5
|
primary: {
|
|
5
6
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
package/dist/Button/Button.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ButtonVariants } from './Button.css';
|
|
2
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
3
4
|
export type ButtonBase = {
|
|
4
5
|
children?: ReactNode;
|
|
5
6
|
targetUrl?: string;
|
|
@@ -15,7 +16,7 @@ export type ButtonAsLink = ButtonBase & Omit<AnchorHTMLAttributes<HTMLAnchorElem
|
|
|
15
16
|
as?: "a";
|
|
16
17
|
};
|
|
17
18
|
export type ButtonProps = ButtonAsButton | ButtonAsLink;
|
|
18
|
-
export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, }: ButtonProps & ButtonVariants) => import(
|
|
19
|
+
export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, }: ButtonProps & ButtonVariants) => import('react').DetailedReactHTMLElement<{
|
|
19
20
|
className: string;
|
|
20
21
|
href: string;
|
|
21
22
|
id: string | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ButtonVariants } from './Button.css';
|
|
2
|
+
import { ButtonProps } from './Button';
|
|
3
|
+
|
|
3
4
|
export declare const GoBackButton: (props: ButtonProps & ButtonVariants) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './Button.css';
|
|
3
|
+
export * from './GoBackButton';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CallToActionBarInterface } from './CallToActionBar.interface';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
3
4
|
export declare const CallToActionBar: FC<CallToActionBarInterface>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { RecipeVariants } from
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
+
|
|
2
3
|
export declare const dots: string;
|
|
3
|
-
export declare const carousel: import(
|
|
4
|
+
export declare const carousel: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
4
5
|
variant: {
|
|
5
6
|
primary: {
|
|
6
7
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -21,7 +22,7 @@ export declare const carousel: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
21
22
|
};
|
|
22
23
|
}>;
|
|
23
24
|
export declare const authorLocation: string;
|
|
24
|
-
export declare const author: import(
|
|
25
|
+
export declare const author: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
25
26
|
variant: {
|
|
26
27
|
primary: {
|
|
27
28
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -40,8 +41,8 @@ export declare const author: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
40
41
|
export declare const slideBase: string;
|
|
41
42
|
export declare const slide: Record<"hide" | "show", string>;
|
|
42
43
|
export declare const slides: string;
|
|
43
|
-
export declare const icon: import(
|
|
44
|
-
export declare const dot: import(
|
|
44
|
+
export declare const icon: import('@vanilla-extract/recipes').RuntimeFn<{}>;
|
|
45
|
+
export declare const dot: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
45
46
|
variant: {
|
|
46
47
|
primary: {
|
|
47
48
|
borderColor: "#1E3860";
|
package/dist/Carousel/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { carouselVariants } from './Carousel.css';
|
|
2
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
|
+
|
|
3
4
|
export interface SlideProps extends PropsWithChildren {
|
|
4
5
|
id: string | number;
|
|
5
6
|
selected?: boolean;
|
package/dist/Carousel/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
3
4
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
4
5
|
/* empty css */
|
|
5
6
|
/* empty css */
|
|
@@ -36,7 +37,7 @@ const iconVarints = /* @__PURE__ */ new Map([
|
|
|
36
37
|
const CarouselSlide = (props) => {
|
|
37
38
|
const { children, selected, content, author: author$1, location, variant } = props;
|
|
38
39
|
return /* @__PURE__ */ jsx("div", { className: slide[selected ? "show" : "hide"], children: children ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
39
|
-
|
|
40
|
+
content,
|
|
40
41
|
/* @__PURE__ */ jsxs("div", { className: authorLocation, children: [
|
|
41
42
|
/* @__PURE__ */ jsx("span", { className: author({ variant }), children: author$1 }),
|
|
42
43
|
/* @__PURE__ */ jsx("span", { children: "|" }),
|
package/dist/Carousel/store.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export type actions = {
|
|
|
7
7
|
change: (selected: number) => void;
|
|
8
8
|
setItems: (items: unknown[]) => void;
|
|
9
9
|
};
|
|
10
|
-
export declare const useCarousel: import(
|
|
10
|
+
export declare const useCarousel: import('zustand').UseBoundStore<import("zustand").StoreApi<state & actions>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const chevron: import(
|
|
1
|
+
export declare const chevron: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
2
|
variant: {
|
|
3
3
|
primary: {
|
|
4
4
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
1
2
|
import { CallToActionTypes } from '../utils/variant.types';
|
|
2
|
-
|
|
3
|
+
|
|
3
4
|
export interface ChevronProps extends PropsWithChildren {
|
|
4
5
|
/**
|
|
5
6
|
* react node to add as a children
|
package/dist/Chevron/index.d.ts
CHANGED
package/dist/Chevron/index.js
CHANGED
|
@@ -31,7 +31,9 @@ import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
|
31
31
|
import "../Forms/Forms.css.js";
|
|
32
32
|
import "../Forms/SalesforceFieldsForm.js";
|
|
33
33
|
import "@hookform/resolvers/zod";
|
|
34
|
-
import "../Input/
|
|
34
|
+
import "../Input/Input.js";
|
|
35
|
+
import "../Input/Input.css.js";
|
|
36
|
+
import "../Input/InputPhone.js";
|
|
35
37
|
import "react-hook-form";
|
|
36
38
|
/* empty css */
|
|
37
39
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
@@ -4,6 +4,7 @@ import "../Button/Button.css.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-use";
|
|
6
6
|
import { Hyperlink } from "../Hyperlink/index.js";
|
|
7
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
7
8
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
8
9
|
import SvgCloseIcon from "../icons/CloseIcon/index.js";
|
|
9
10
|
/* empty css */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const content_banner: import(
|
|
1
|
+
export declare const content_banner: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
2
|
variant: {
|
|
3
3
|
primary: {
|
|
4
4
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -18,7 +18,7 @@ export declare const content_banner: import("@vanilla-extract/recipes").RuntimeF
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
}>;
|
|
21
|
-
export declare const headline: import(
|
|
21
|
+
export declare const headline: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
22
22
|
variant: {
|
|
23
23
|
primary: {
|
|
24
24
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { ContentBannerInterface } from './ContentBanner.interface';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
3
4
|
export declare const ContentBanner: FC<ContentBannerInterface>;
|
|
@@ -29,7 +29,7 @@ const ContentBanner = ({
|
|
|
29
29
|
),
|
|
30
30
|
bodyCopy ? /* @__PURE__ */ jsx("div", { className: `${body_copy}`, children: bodyCopy }) : null
|
|
31
31
|
] }),
|
|
32
|
-
Array.isArray(callToActionRow) && /* @__PURE__ */ jsx("div", { className: `${call_to_action_row}`, children: callToActionRow == null ? void 0 : callToActionRow.map(
|
|
32
|
+
Array.isArray(callToActionRow) && callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${call_to_action_row}`, children: callToActionRow == null ? void 0 : callToActionRow.map(
|
|
33
33
|
({ id, variant: variant2, displayText, targetUrl, type }) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
34
34
|
Button,
|
|
35
35
|
{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
2
3
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
3
4
|
import SvgDownloadIcon from "../icons/DownloadIcon/index.js";
|
|
4
5
|
import { table_section, table_section_container, table_header, media__table, download, ico, table_footer } from "./DownloadTile.css.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { header } from './FaqAccordion.css';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
|
|
3
4
|
export interface AccordionItemProps extends PropsWithChildren {
|
|
4
5
|
id: string;
|
|
5
6
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { footerContent, footerDisclosure, footerLink, footerParagraph, iconsContent, } from
|
|
2
|
-
export { FooterContent, FooterDisclosure, FooterIcons, FooterParagraph, } from
|
|
1
|
+
export { footerContent, footerDisclosure, footerLink, footerParagraph, iconsContent, } from './FooterDisclosure.css';
|
|
2
|
+
export { FooterContent, FooterDisclosure, FooterIcons, FooterParagraph, } from './FooterDisclosure';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const formContainer: import(
|
|
1
|
+
export declare const formContainer: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
2
|
variant: {
|
|
3
3
|
primary: {
|
|
4
4
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -15,7 +15,7 @@ export declare const formContainer: import("@vanilla-extract/recipes").RuntimeFn
|
|
|
15
15
|
};
|
|
16
16
|
}>;
|
|
17
17
|
export declare const iconForm: string;
|
|
18
|
-
export declare const headerForm: import(
|
|
18
|
+
export declare const headerForm: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
19
19
|
variant: {
|
|
20
20
|
primary: {
|
|
21
21
|
readonly selectors: {
|
|
@@ -55,7 +55,7 @@ export declare const headerForm: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
}>;
|
|
58
|
-
export declare const formWrapper: import(
|
|
58
|
+
export declare const formWrapper: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
59
59
|
variant: {
|
|
60
60
|
primary: {
|
|
61
61
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -72,7 +72,7 @@ export declare const formWrapper: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
72
72
|
};
|
|
73
73
|
}>;
|
|
74
74
|
export declare const actions: string;
|
|
75
|
-
export declare const disclosureForm: import(
|
|
75
|
+
export declare const disclosureForm: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
76
76
|
variant: {
|
|
77
77
|
primary: {
|
|
78
78
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -68,4 +68,4 @@ export type Props = {
|
|
|
68
68
|
queryParams?: Partial<QueryParams>;
|
|
69
69
|
location?: Record<string, unknown>;
|
|
70
70
|
};
|
|
71
|
-
export declare const SalesforceFieldsForm: import(
|
|
71
|
+
export declare const SalesforceFieldsForm: import('react').NamedExoticComponent<Props>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
2
|
import { QuaternaryTypes } from '../utils/variant.types';
|
|
3
|
-
import {
|
|
3
|
+
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
4
|
+
|
|
4
5
|
export interface FormProps extends PropsWithChildren {
|
|
5
6
|
id?: string;
|
|
6
7
|
onSubmit?: (values: {
|
|
@@ -5,7 +5,10 @@ import { Button } from "../Button/Button.js";
|
|
|
5
5
|
import "../Button/Button.css.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-use";
|
|
8
|
-
import { Input } from "../Input/
|
|
8
|
+
import { Input } from "../Input/Input.js";
|
|
9
|
+
import "../Input/Input.css.js";
|
|
10
|
+
import { InputPhone } from "../Input/InputPhone.js";
|
|
11
|
+
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
9
12
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
10
13
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
11
14
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
@@ -34,10 +37,20 @@ const ScheduleCall = ({
|
|
|
34
37
|
}) => {
|
|
35
38
|
var _a, _b, _c, _d;
|
|
36
39
|
const schema = z.object({
|
|
37
|
-
firstName: z.string().trim().min(1, { message: "First Name is required." }),
|
|
38
|
-
lastName: z.string().trim().min(1, { message: "Last Name is required." }),
|
|
40
|
+
firstName: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
|
|
41
|
+
lastName: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
|
|
39
42
|
email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
|
|
40
|
-
phone: z.string().regex(/[
|
|
43
|
+
phone: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
|
|
44
|
+
const removeDashes = val.replace(/-/gi, "");
|
|
45
|
+
if (removeDashes.length !== 10) {
|
|
46
|
+
ctx.addIssue({
|
|
47
|
+
code: z.ZodIssueCode.custom,
|
|
48
|
+
message: "Phone must have at least 10 and no more than 10 characters."
|
|
49
|
+
});
|
|
50
|
+
return z.NEVER;
|
|
51
|
+
}
|
|
52
|
+
return removeDashes;
|
|
53
|
+
})
|
|
41
54
|
});
|
|
42
55
|
const methods = useForm({
|
|
43
56
|
resolver: zodResolver(schema.merge(SalesforceSchema), {
|
|
@@ -62,9 +75,9 @@ const ScheduleCall = ({
|
|
|
62
75
|
{
|
|
63
76
|
id: `id_${id}`,
|
|
64
77
|
className: clsx(formContainer({ variant })),
|
|
65
|
-
children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
78
|
+
children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
66
79
|
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
67
|
-
/* @__PURE__ */ jsx("
|
|
80
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2 text_center", headerForm({ variant })), children: headline }),
|
|
68
81
|
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
69
82
|
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
70
83
|
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
@@ -115,10 +128,10 @@ const ScheduleCall = ({
|
|
|
115
128
|
}
|
|
116
129
|
) }),
|
|
117
130
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
118
|
-
|
|
131
|
+
InputPhone,
|
|
119
132
|
{
|
|
120
133
|
id: "phone",
|
|
121
|
-
...register("phone", { required: true }),
|
|
134
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
122
135
|
label: "Phone",
|
|
123
136
|
sizes: "medium",
|
|
124
137
|
placeholder: "Phone",
|
|
@@ -142,7 +155,7 @@ const ScheduleCall = ({
|
|
|
142
155
|
}
|
|
143
156
|
) })
|
|
144
157
|
] })
|
|
145
|
-
] })
|
|
158
|
+
] }) })
|
|
146
159
|
},
|
|
147
160
|
id
|
|
148
161
|
);
|
package/dist/Forms/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './Forms.css';
|
|
2
|
+
export * from './RenderForm';
|
|
3
|
+
export * from './SalesforceFieldsForm';
|
|
4
|
+
export * from './ScheduleCall';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const logout: string;
|
|
2
|
+
export declare const hero_banner: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
3
|
variant: {
|
|
3
4
|
primary: {
|
|
4
5
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -21,9 +22,9 @@ export declare const hero_banner: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
21
22
|
export declare const hero_content: string;
|
|
22
23
|
export declare const reversed: string;
|
|
23
24
|
export declare const hero_text: string;
|
|
25
|
+
export declare const hero_wrapper: string;
|
|
24
26
|
export declare const hero_img: string;
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const supertag: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
27
|
+
export declare const supertag: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
27
28
|
variant: {
|
|
28
29
|
primary: {
|
|
29
30
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -43,7 +44,7 @@ export declare const supertag: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
43
44
|
};
|
|
44
45
|
};
|
|
45
46
|
}>;
|
|
46
|
-
export declare const headline_text: import(
|
|
47
|
+
export declare const headline_text: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
47
48
|
variant: {
|
|
48
49
|
primary: {
|
|
49
50
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|