@axos-web-dev/shared-components 0.0.4 → 0.0.6
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/Button/index.d.ts +10 -4
- package/dist/FaqAccordion/index.js +13 -3
- package/dist/Forms/Forms.css.d.ts +90 -0
- package/dist/Forms/Forms.css.js +19 -0
- package/dist/Forms/RenderForm.d.ts +7 -0
- package/dist/Forms/RenderForm.js +19 -0
- package/dist/Forms/SalesforceFieldsForm.d.ts +71 -0
- package/dist/Forms/SalesforceFieldsForm.js +137 -0
- package/dist/Forms/ScheduleCall.d.ts +15 -0
- package/dist/Forms/ScheduleCall.js +141 -0
- package/dist/Forms/index.d.ts +4 -0
- package/dist/Forms/index.js +17 -0
- package/dist/HeroBanner/index.js +4 -2
- package/dist/IconBillboard/IconBillboard.css.d.ts +3 -3
- package/dist/IconBillboard/IconBillboard.css.js +1 -0
- package/dist/Input/index.d.ts +1 -1
- package/dist/Input/index.js +4 -2
- package/dist/MainHTML/index.d.ts +5 -0
- package/dist/MainHTML/index.js +9 -0
- package/dist/Modal/index.js +10 -1
- package/dist/NavigationMenu/AxosAdvisor/index.js +4 -3
- package/dist/Table/Table.css.d.ts +21 -7
- package/dist/Table/Table.css.js +16 -8
- package/dist/Table/Table.d.ts +7 -13
- package/dist/Table/Table.interface.d.ts +18 -0
- package/dist/Table/Table.interface.js +1 -0
- package/dist/Table/Table.js +43 -11
- package/dist/Table/index.js +10 -3
- package/dist/TextBlock/TextBlock.css.d.ts +3 -0
- package/dist/TextBlock/TextBlock.css.js +11 -0
- package/dist/TextBlock/TextBlock.d.ts +6 -0
- package/dist/TextBlock/TextBlock.js +11 -0
- package/dist/TextBlock/index.d.ts +2 -0
- package/dist/TextBlock/index.js +8 -0
- package/dist/VideoTile/VideoInit.d.ts +1 -0
- package/dist/VideoTile/VideoInit.js +8 -0
- package/dist/VideoTile/VideoTile.css.d.ts +13 -0
- package/dist/VideoTile/VideoTile.css.js +32 -0
- package/dist/VideoTile/VideoTile.d.ts +3 -0
- package/dist/VideoTile/VideoTile.interface.d.ts +10 -0
- package/dist/VideoTile/VideoTile.interface.js +1 -0
- package/dist/VideoTile/VideoTile.js +88 -0
- package/dist/VideoTile/index.d.ts +4 -0
- package/dist/VideoTile/index.js +20 -0
- package/dist/VideoWrapper/VideoWrapper.css.d.ts +2 -0
- package/dist/VideoWrapper/VideoWrapper.css.js +7 -0
- package/dist/VideoWrapper/index.d.ts +8 -0
- package/dist/VideoWrapper/index.js +34 -0
- package/dist/assets/Button/Button.css +6 -6
- package/dist/assets/CallToActionBar/CallToActionBar.css +2 -2
- package/dist/assets/Carousel/Carousel.css +9 -9
- package/dist/assets/Chevron/Chevron.css +2 -2
- package/dist/assets/CollectInformationAlert/CollectInformationAlert.css +1 -1
- package/dist/assets/ContentBanner/ContentBanner.css +9 -9
- package/dist/assets/Forms/Forms.css +92 -0
- package/dist/assets/HeroBanner/HeroBanner.css +12 -15
- package/dist/assets/IconBillboard/IconBillboard.css +15 -12
- package/dist/assets/ImageBillboard/ImageBillboard.css +14 -14
- package/dist/assets/Input/Input.css +14 -14
- package/dist/assets/Inputs/Input.css +14 -14
- package/dist/assets/Table/Table.css +116 -68
- package/dist/assets/TextBlock/TextBlock.css +14 -0
- package/dist/assets/VideoTile/VideoTile.css +74 -0
- package/dist/assets/VideoWrapper/VideoWrapper.css +16 -0
- package/dist/assets/icons/ArrowIcon/ArrowIcon.css +2 -2
- package/dist/assets/icons/CheckIcon/CheckIcon.css +2 -2
- package/dist/assets/themes/axos.css +25 -21
- package/dist/assets/themes/premier.css +22 -18
- package/dist/icons/AxosX/index.d.ts +3 -0
- package/dist/icons/AxosX/index.js +30 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +28 -26
- package/dist/main.d.ts +7 -1
- package/dist/main.js +60 -4
- package/dist/themes/axos.css.d.ts +4 -0
- package/dist/themes/axos.css.js +1 -1
- package/dist/utils/EverestValidity.d.ts +1 -0
- package/dist/utils/EverestValidity.js +6 -0
- package/dist/utils/getVariant.d.ts +1 -1
- package/dist/utils/getVariant.js +6 -6
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +7 -0
- package/package.json +9 -1
package/dist/main.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { Accordion, AccordionCtx, AccordionDetails, AccordionHeader } from "./Accordion/Accordion.js";
|
|
2
3
|
import { accordion, bodyAccordion, headerAccordion, headerContent, hide, icon, paragraph } from "./Accordion/Accordion.css.js";
|
|
3
4
|
import { AlertBanner } from "./AlertBanner/index.js";
|
|
@@ -13,6 +14,10 @@ import { DownloadTile } from "./DownloadTile/index.js";
|
|
|
13
14
|
import { AccordionItem, AccordionItemContent, AccordionItemSummary, FaqAccordion } from "./FaqAccordion/index.js";
|
|
14
15
|
import { footerContent, footerDisclosure, footerLink, footerParagraph, iconsContent } from "./FooterDisclosure/FooterDisclosure.css.js";
|
|
15
16
|
import { FooterContent, FooterDisclosure, FooterIcons, FooterParagraph } from "./FooterDisclosure/FooterDisclosure.js";
|
|
17
|
+
import { actions, disclosureForm, formContainer, formWrapper, headerForm, iconForm } from "./Forms/Forms.css.js";
|
|
18
|
+
import { RenderWebForm, renderSwitch } from "./Forms/RenderForm.js";
|
|
19
|
+
import { SalesforceFieldsForm, SalesforceSchema } from "./Forms/SalesforceFieldsForm.js";
|
|
20
|
+
import { ScheduleCall } from "./Forms/ScheduleCall.js";
|
|
16
21
|
import { HeroBanner } from "./HeroBanner/index.js";
|
|
17
22
|
import { IconBillboard } from "./IconBillboard/IconBillboard.js";
|
|
18
23
|
import { billboard_icon, buttons, containerIconBillboard, content, headerIconBillboard, header_section, layout, list, listItem, section_container, section_text, title } from "./IconBillboard/IconBillboard.css.js";
|
|
@@ -21,16 +26,25 @@ import { ImageBillboardSet } from "./ImageBillboard/ImageBillboard.js";
|
|
|
21
26
|
import { billboard, billboard_body, billboard_container, billboard_ctas, billboard_header_section, billboard_img, body, header, imagePlacement, section_text_ImageBillboard, single_container, supertag, three_inline, two_inline } from "./ImageBillboard/ImageBillboard.css.js";
|
|
22
27
|
import { ImageBillboard } from "./ImageBillboard/ImageBillboardSet.js";
|
|
23
28
|
import { Input } from "./Input/index.js";
|
|
29
|
+
import { MainHTML } from "./MainHTML/index.js";
|
|
24
30
|
import { Modal } from "./Modal/index.js";
|
|
25
31
|
import { default as default2 } from "./NavigationMenu/AxosAdvisor/index.js";
|
|
26
32
|
import { default as default3 } from "./NavigationMenu/AxosFiduciary/index.js";
|
|
27
33
|
import { SecondaryFooter } from "./SecondaryFooter/index.js";
|
|
28
34
|
import { SetContainer } from "./SetContainer/SetContainer.js";
|
|
29
35
|
import { inline_container } from "./SetContainer/SetContainer.css.js";
|
|
30
|
-
import { Table, TableCell, TableRow } from "./Table/Table.js";
|
|
31
|
-
import { bodyHeader,
|
|
36
|
+
import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from "./Table/Table.js";
|
|
37
|
+
import { bodyHeader, headerCell, headerVariants, highlight_first_row, highlight_last_row, table, table_container, table_container_text, table_headline, td, th } from "./Table/Table.css.js";
|
|
38
|
+
import { TextBlock } from "./TextBlock/TextBlock.js";
|
|
39
|
+
import { textBlockHeader, textBlockList, textBlockParagraph } from "./TextBlock/TextBlock.css.js";
|
|
40
|
+
import { VideoInit } from "./VideoTile/VideoInit.js";
|
|
41
|
+
import { VideoTile } from "./VideoTile/VideoTile.js";
|
|
42
|
+
import { expand_icon, hide_transcript, item, mb_8, show, toggle_container, transcript_btn, transcript_container, transcript_content, video_container, video_title, vidyard_height, w_100 } from "./VideoTile/VideoTile.css.js";
|
|
43
|
+
import { VideoWrapper } from "./VideoWrapper/index.js";
|
|
32
44
|
import { axosTheme, vars } from "./themes/axos.css.js";
|
|
33
45
|
import { premierTheme } from "./themes/premier.css.js";
|
|
46
|
+
import { associatedEmail } from "./utils/EverestValidity.js";
|
|
47
|
+
import { getVariant, getVariantWithRegex } from "./utils/getVariant.js";
|
|
34
48
|
export {
|
|
35
49
|
Accordion,
|
|
36
50
|
AccordionCtx,
|
|
@@ -61,15 +75,29 @@ export {
|
|
|
61
75
|
ImageBillboard,
|
|
62
76
|
ImageBillboardSet,
|
|
63
77
|
Input,
|
|
78
|
+
MainHTML,
|
|
64
79
|
Modal,
|
|
65
80
|
default3 as NavBarAFS,
|
|
66
81
|
default2 as NavBarAXA,
|
|
82
|
+
RenderWebForm,
|
|
83
|
+
SalesforceFieldsForm,
|
|
84
|
+
SalesforceSchema,
|
|
85
|
+
ScheduleCall,
|
|
67
86
|
SecondaryFooter,
|
|
68
87
|
SetContainer,
|
|
69
88
|
Table,
|
|
89
|
+
TableBody,
|
|
70
90
|
TableCell,
|
|
91
|
+
TableContainer,
|
|
92
|
+
TableHead,
|
|
71
93
|
TableRow,
|
|
94
|
+
TextBlock,
|
|
95
|
+
VideoInit,
|
|
96
|
+
VideoTile,
|
|
97
|
+
VideoWrapper,
|
|
72
98
|
accordion,
|
|
99
|
+
actions,
|
|
100
|
+
associatedEmail,
|
|
73
101
|
axosTheme,
|
|
74
102
|
billboard,
|
|
75
103
|
billboard_body,
|
|
@@ -82,40 +110,68 @@ export {
|
|
|
82
110
|
bodyAccordion,
|
|
83
111
|
bodyHeader,
|
|
84
112
|
buttons,
|
|
85
|
-
container,
|
|
86
113
|
containerIconBillboard,
|
|
87
114
|
content,
|
|
115
|
+
disclosureForm,
|
|
116
|
+
expand_icon,
|
|
88
117
|
footerContent,
|
|
89
118
|
footerDisclosure,
|
|
90
119
|
footerLink,
|
|
91
120
|
footerParagraph,
|
|
121
|
+
formContainer,
|
|
122
|
+
formWrapper,
|
|
123
|
+
getVariant,
|
|
124
|
+
getVariantWithRegex,
|
|
92
125
|
header,
|
|
93
126
|
headerAccordion,
|
|
94
127
|
headerCell,
|
|
95
128
|
headerContent,
|
|
129
|
+
headerForm,
|
|
96
130
|
headerIconBillboard,
|
|
97
131
|
headerVariants,
|
|
98
132
|
header_section,
|
|
99
133
|
hide,
|
|
134
|
+
hide_transcript,
|
|
135
|
+
highlight_first_row,
|
|
136
|
+
highlight_last_row,
|
|
100
137
|
icon,
|
|
138
|
+
iconForm,
|
|
101
139
|
iconsContent,
|
|
102
140
|
imagePlacement,
|
|
103
141
|
inline_container,
|
|
142
|
+
item,
|
|
104
143
|
layout,
|
|
105
144
|
list,
|
|
106
145
|
listItem,
|
|
146
|
+
mb_8,
|
|
107
147
|
paragraph,
|
|
108
148
|
premierTheme,
|
|
149
|
+
renderSwitch,
|
|
109
150
|
section_container,
|
|
110
151
|
section_text,
|
|
111
152
|
section_text_ImageBillboard,
|
|
153
|
+
show,
|
|
112
154
|
single_container,
|
|
113
155
|
supertag,
|
|
114
156
|
table,
|
|
157
|
+
table_container,
|
|
158
|
+
table_container_text,
|
|
159
|
+
table_headline,
|
|
115
160
|
td,
|
|
161
|
+
textBlockHeader,
|
|
162
|
+
textBlockList,
|
|
163
|
+
textBlockParagraph,
|
|
116
164
|
th,
|
|
117
165
|
three_inline,
|
|
118
166
|
title,
|
|
167
|
+
toggle_container,
|
|
168
|
+
transcript_btn,
|
|
169
|
+
transcript_container,
|
|
170
|
+
transcript_content,
|
|
119
171
|
two_inline,
|
|
120
|
-
vars
|
|
172
|
+
vars,
|
|
173
|
+
video_container,
|
|
174
|
+
video_title,
|
|
175
|
+
vidyard_height,
|
|
176
|
+
w_100
|
|
121
177
|
};
|
|
@@ -7,6 +7,7 @@ export declare const axosTheme: string, vars: {
|
|
|
7
7
|
textGradient: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
8
8
|
textButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
9
|
backgroundButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
|
+
border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
11
|
};
|
|
11
12
|
secondary: {
|
|
12
13
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -15,6 +16,7 @@ export declare const axosTheme: string, vars: {
|
|
|
15
16
|
textGradient: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
16
17
|
textButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17
18
|
backgroundButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
19
|
+
border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
20
|
};
|
|
19
21
|
tertiary: {
|
|
20
22
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -23,6 +25,7 @@ export declare const axosTheme: string, vars: {
|
|
|
23
25
|
textGradient: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
24
26
|
textButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
25
27
|
backgroundButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
28
|
+
border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
26
29
|
};
|
|
27
30
|
quaternary: {
|
|
28
31
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -31,6 +34,7 @@ export declare const axosTheme: string, vars: {
|
|
|
31
34
|
textGradient: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
32
35
|
textButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
33
36
|
backgroundButton: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
37
|
+
border: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
34
38
|
};
|
|
35
39
|
};
|
|
36
40
|
error: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
package/dist/themes/axos.css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
var axosTheme = "_1073cm80";
|
|
3
|
-
var vars = { colors: { primary: { background: "var(--_1073cm81)", body: "var(--_1073cm82)", headline: "var(--_1073cm83)", textGradient: "var(--_1073cm84)", textButton: "var(--_1073cm85)", backgroundButton: "var(--_1073cm86)" }, secondary: { background: "var(--
|
|
3
|
+
var vars = { colors: { primary: { background: "var(--_1073cm81)", body: "var(--_1073cm82)", headline: "var(--_1073cm83)", textGradient: "var(--_1073cm84)", textButton: "var(--_1073cm85)", backgroundButton: "var(--_1073cm86)", border: "var(--_1073cm87)" }, secondary: { background: "var(--_1073cm88)", body: "var(--_1073cm89)", headline: "var(--_1073cm8a)", textGradient: "var(--_1073cm8b)", textButton: "var(--_1073cm8c)", backgroundButton: "var(--_1073cm8d)", border: "var(--_1073cm8e)" }, tertiary: { background: "var(--_1073cm8f)", body: "var(--_1073cm8g)", headline: "var(--_1073cm8h)", textGradient: "var(--_1073cm8i)", textButton: "var(--_1073cm8j)", backgroundButton: "var(--_1073cm8k)", border: "var(--_1073cm8l)" }, quaternary: { background: "var(--_1073cm8m)", body: "var(--_1073cm8n)", headline: "var(--_1073cm8o)", textGradient: "var(--_1073cm8p)", textButton: "var(--_1073cm8q)", backgroundButton: "var(--_1073cm8r)", border: "var(--_1073cm8s)" } }, error: "var(--_1073cm8t)", disabled: { border: "var(--_1073cm8u)", color: "var(--_1073cm8v)", background: "var(--_1073cm8w)" }, icons: { check: { primary: "var(--_1073cm8x)", secondary: "var(--_1073cm8y)" } } };
|
|
4
4
|
export {
|
|
5
5
|
axosTheme,
|
|
6
6
|
vars
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const associatedEmail: (email: string) => Promise<boolean>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CallToActionTypes, QuaternaryTypes, SecondaryTypes } from "./variant.types";
|
|
2
2
|
export declare const getVariantWithRegex: (text: string) => string;
|
|
3
|
-
export declare const getVariant: (text
|
|
3
|
+
export declare const getVariant: (text?: string) => CallToActionTypes & SecondaryTypes & QuaternaryTypes;
|
package/dist/utils/getVariant.js
CHANGED
|
@@ -2,16 +2,16 @@ const getVariantWithRegex = (text) => {
|
|
|
2
2
|
const segmenter = text.match(/\b(\w+)\b/g);
|
|
3
3
|
return segmenter[1].toLowerCase();
|
|
4
4
|
};
|
|
5
|
-
const getVariant = (text) => {
|
|
6
|
-
text = text
|
|
5
|
+
const getVariant = (text = "primary") => {
|
|
6
|
+
text = text.toLowerCase();
|
|
7
7
|
let variant = "primary";
|
|
8
|
-
if (text
|
|
8
|
+
if (text.includes("primary")) {
|
|
9
9
|
variant = "primary";
|
|
10
|
-
} else if (text
|
|
10
|
+
} else if (text.includes("secondary")) {
|
|
11
11
|
variant = "secondary";
|
|
12
|
-
} else if (text
|
|
12
|
+
} else if (text.includes("tertiary")) {
|
|
13
13
|
variant = "tertiary";
|
|
14
|
-
} else if (text
|
|
14
|
+
} else if (text.includes("quaternary")) {
|
|
15
15
|
variant = "quaternary";
|
|
16
16
|
}
|
|
17
17
|
return variant;
|
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.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -28,17 +28,25 @@
|
|
|
28
28
|
"npm:link": "npm run build && npm link"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@hookform/resolvers": "^3.3.4",
|
|
31
32
|
"@storybook/builder-vite": "^7.6.13",
|
|
32
33
|
"@storybook/preview-api": "^7.6.16",
|
|
33
34
|
"@vanilla-extract/css": "^1.14.1",
|
|
34
35
|
"@vanilla-extract/recipes": "^0.5.1",
|
|
35
36
|
"clsx": "^2.1.0",
|
|
37
|
+
"react-hook-form": "^7.51.1",
|
|
38
|
+
"react-markdown": "^9.0.1",
|
|
36
39
|
"react-use": "^17.5.0",
|
|
37
40
|
"typed-css-modules": "^0.9.1",
|
|
38
41
|
"vite-plugin-svgr": "^4.2.0",
|
|
42
|
+
"zod": "^3.22.4",
|
|
39
43
|
"zustand": "^4.5.0"
|
|
40
44
|
},
|
|
41
45
|
"peerDependencies": {
|
|
46
|
+
"@vanilla-extract/css": "^1.14.1",
|
|
47
|
+
"@vanilla-extract/css-utils": "^0.1.3",
|
|
48
|
+
"@vanilla-extract/recipes": "^0.5.1",
|
|
49
|
+
"@vanilla-extract/vite-plugin": "^4.0.3",
|
|
42
50
|
"next": "14.0.4",
|
|
43
51
|
"react": "^18.2.0",
|
|
44
52
|
"react-dom": "^18.2.0"
|