@axos-web-dev/shared-components 0.0.4 → 0.0.5
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 +14 -0
- package/dist/Forms/ScheduleCall.js +140 -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/Modal/index.js
CHANGED
|
@@ -22,14 +22,23 @@ import "../ContentBanner/ContentBanner.css.js";
|
|
|
22
22
|
/* empty css */
|
|
23
23
|
import "../FaqAccordion/index.js";
|
|
24
24
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
25
|
+
import "../Forms/Forms.css.js";
|
|
26
|
+
import "../Forms/SalesforceFieldsForm.js";
|
|
27
|
+
import "@hookform/resolvers/zod";
|
|
28
|
+
import "../Input/index.js";
|
|
25
29
|
import "clsx";
|
|
30
|
+
import "react-hook-form";
|
|
26
31
|
/* empty css */
|
|
27
32
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
28
|
-
import "
|
|
33
|
+
import "react-use";
|
|
29
34
|
import "../NavigationMenu/AxosAdvisor/NavBar.module.js";
|
|
30
35
|
import "../NavigationMenu/AxosFiduciary/NavBar.module.js";
|
|
31
36
|
/* empty css */
|
|
32
37
|
import "../Table/Table.css.js";
|
|
38
|
+
/* empty css */
|
|
39
|
+
import "next/script.js";
|
|
40
|
+
/* empty css */
|
|
41
|
+
/* empty css */
|
|
33
42
|
import { modal, modal_dialog, modal_content, modal_header, modal_title, modal_subtitle, solid, modal_body, site_link, modal_footer } from "./Modal.css.js";
|
|
34
43
|
const Modal = ({
|
|
35
44
|
headline,
|
|
@@ -5,6 +5,7 @@ import { useState, useRef } from "react";
|
|
|
5
5
|
import { useClickAway } from "react-use";
|
|
6
6
|
import styles from "./NavBar.module.js";
|
|
7
7
|
import SubNavBar from "./SubNavBar.js";
|
|
8
|
+
var define_process_env_default = {};
|
|
8
9
|
function NavBar() {
|
|
9
10
|
const [isOpenSignIn, setisOpenSignIn] = useState(false);
|
|
10
11
|
const [isOpenMobile, setisOpenMobile] = useState(false);
|
|
@@ -75,7 +76,7 @@ function NavBar() {
|
|
|
75
76
|
/* @__PURE__ */ jsx("div", { className: styles.mobile_only, children: /* @__PURE__ */ jsx(
|
|
76
77
|
"a",
|
|
77
78
|
{
|
|
78
|
-
href: `${
|
|
79
|
+
href: `${define_process_env_default.NEXT_PUBLIC_LOGIN_APP_LOGIN_URL}/auth/login`,
|
|
79
80
|
className: "link",
|
|
80
81
|
children: "Sign In"
|
|
81
82
|
}
|
|
@@ -139,7 +140,7 @@ function NavBar() {
|
|
|
139
140
|
/* @__PURE__ */ jsx("ul", { className: "list_unstyled", children: /* @__PURE__ */ jsx("li", { className: styles.signin_subheader, children: /* @__PURE__ */ jsx(
|
|
140
141
|
"a",
|
|
141
142
|
{
|
|
142
|
-
href: `${
|
|
143
|
+
href: `${define_process_env_default.NEXT_PUBLIC_LOGIN_APP_LOGIN_URL}/auth/login`,
|
|
143
144
|
role: "menuitem",
|
|
144
145
|
children: "Account Login"
|
|
145
146
|
}
|
|
@@ -371,7 +372,7 @@ function NavBar() {
|
|
|
371
372
|
/* @__PURE__ */ jsx(
|
|
372
373
|
"a",
|
|
373
374
|
{
|
|
374
|
-
href: `${
|
|
375
|
+
href: `${define_process_env_default.NEXT_PUBLIC_LOGIN_APP_LOGIN_URL}/auth/login`,
|
|
375
376
|
role: "menuitem",
|
|
376
377
|
children: "Account Login"
|
|
377
378
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const table_container: string;
|
|
2
|
+
export declare const table_container_text: string;
|
|
3
|
+
export declare const table_headline: string;
|
|
4
|
+
export declare const highlight_first_row: string;
|
|
5
|
+
export declare const highlight_last_row: string;
|
|
3
6
|
export declare const headerCell: string;
|
|
4
7
|
export declare const headerVariants: Record<"primary" | "secondary" | "tertiary" | "quaternary", string>;
|
|
5
8
|
export declare const bodyHeader: string;
|
|
@@ -8,13 +11,16 @@ export declare const th: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
8
11
|
primary: {
|
|
9
12
|
color: "#4A5560";
|
|
10
13
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
14
|
+
borderBottom: `1px solid var(--${string})` | `1px solid var(--${string}, ${string})` | `1px solid var(--${string}, ${number})`;
|
|
11
15
|
};
|
|
12
16
|
secondary: {
|
|
13
17
|
color: "#4A5560";
|
|
14
18
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
19
|
+
borderBottom: `1px solid var(--${string})` | `1px solid var(--${string}, ${string})` | `1px solid var(--${string}, ${number})`;
|
|
15
20
|
};
|
|
16
21
|
tertiary: {
|
|
17
22
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
23
|
+
borderBottom: "1px solid #F4F4F4";
|
|
18
24
|
selectors: {
|
|
19
25
|
"&:first-child": {
|
|
20
26
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -24,7 +30,7 @@ export declare const th: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
24
30
|
"screen and (max-width: 768px)": {
|
|
25
31
|
selectors: {
|
|
26
32
|
"&:first-child": {
|
|
27
|
-
background:
|
|
33
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
28
34
|
};
|
|
29
35
|
};
|
|
30
36
|
};
|
|
@@ -32,6 +38,7 @@ export declare const th: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
32
38
|
};
|
|
33
39
|
quaternary: {
|
|
34
40
|
color: "#FFFFFF";
|
|
41
|
+
borderBottom: "1px solid #F4F4F4";
|
|
35
42
|
selectors: {
|
|
36
43
|
"&:first-child": {
|
|
37
44
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -41,7 +48,7 @@ export declare const th: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
41
48
|
"screen and (max-width: 768px)": {
|
|
42
49
|
selectors: {
|
|
43
50
|
"&:first-child": {
|
|
44
|
-
|
|
51
|
+
backgroundImage: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
45
52
|
};
|
|
46
53
|
};
|
|
47
54
|
};
|
|
@@ -57,16 +64,20 @@ export declare const td: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
57
64
|
primary: {
|
|
58
65
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
59
66
|
color: "#4A5560";
|
|
67
|
+
borderBottom: "1px solid #D4D4D4";
|
|
60
68
|
};
|
|
61
69
|
secondary: {
|
|
62
70
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
63
71
|
color: "#4A5560";
|
|
72
|
+
borderBottom: "1px solid #D4D4D4";
|
|
64
73
|
};
|
|
65
74
|
tertiary: {
|
|
66
75
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
76
|
+
borderBottom: "1px solid #F4F4F4";
|
|
67
77
|
selectors: {
|
|
68
78
|
"&:first-child": {
|
|
69
79
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
80
|
+
color: `var(--${string}) !important` | `var(--${string}, ${string}) !important` | `var(--${string}, ${number}) !important`;
|
|
70
81
|
};
|
|
71
82
|
};
|
|
72
83
|
"@media": {
|
|
@@ -81,9 +92,11 @@ export declare const td: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
81
92
|
};
|
|
82
93
|
quaternary: {
|
|
83
94
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
95
|
+
borderBottom: "1px solid #F4F4F4";
|
|
84
96
|
selectors: {
|
|
85
97
|
"&:first-child": {
|
|
86
98
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
99
|
+
color: `var(--${string}) !important` | `var(--${string}, ${string}) !important` | `var(--${string}, ${number}) !important`;
|
|
87
100
|
};
|
|
88
101
|
};
|
|
89
102
|
"@media": {
|
|
@@ -105,18 +118,19 @@ export declare const table: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
105
118
|
variant: {
|
|
106
119
|
primary: {
|
|
107
120
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
121
|
+
border: `1px solid var(--${string})` | `1px solid var(--${string}, ${string})` | `1px solid var(--${string}, ${number})`;
|
|
108
122
|
};
|
|
109
123
|
secondary: {
|
|
110
124
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
125
|
+
border: `1px solid var(--${string})` | `1px solid var(--${string}, ${string})` | `1px solid var(--${string}, ${number})`;
|
|
111
126
|
};
|
|
112
127
|
tertiary: {
|
|
113
128
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
129
|
+
border: `1px solid var(--${string})` | `1px solid var(--${string}, ${string})` | `1px solid var(--${string}, ${number})`;
|
|
114
130
|
};
|
|
115
131
|
quaternary: {
|
|
116
132
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
133
|
+
border: `1px solid var(--${string})` | `1px solid var(--${string}, ${string})` | `1px solid var(--${string}, ${number})`;
|
|
117
134
|
};
|
|
118
135
|
};
|
|
119
136
|
}>;
|
|
120
|
-
export type TableVariants = RecipeVariants<typeof table>;
|
|
121
|
-
export type TdVariants = RecipeVariants<typeof td>;
|
|
122
|
-
export type ThVariants = RecipeVariants<typeof th>;
|
package/dist/Table/Table.css.js
CHANGED
|
@@ -2,19 +2,27 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
5
|
+
var table_container = "_1nivbwe0";
|
|
6
|
+
var table_container_text = "_1nivbwe1";
|
|
7
|
+
var table_headline = "_1nivbwe2";
|
|
8
|
+
var highlight_first_row = "_1nivbwe3";
|
|
9
|
+
var highlight_last_row = "_1nivbwe4";
|
|
10
|
+
var headerCell = "_1nivbwe5";
|
|
11
|
+
var headerVariants = { primary: "_1nivbwe6 _1nivbwe5", secondary: "_1nivbwe7 _1nivbwe5", tertiary: "_1nivbwe8 _1nivbwe5", quaternary: "_1nivbwe9 _1nivbwe5" };
|
|
12
|
+
var bodyHeader = "_1nivbwea";
|
|
13
|
+
var th = createRuntimeFn({ defaultClassName: "_1nivbweb", variantClassNames: { variant: { primary: "_1nivbwec", secondary: "_1nivbwed", tertiary: "_1nivbwee", quaternary: "_1nivbwef" }, highlighted: { true: "_1nivbweg" } }, defaultVariants: {}, compoundVariants: [] });
|
|
14
|
+
var td = createRuntimeFn({ defaultClassName: "_1nivbweh", variantClassNames: { variant: { primary: "_1nivbwei", secondary: "_1nivbwej", tertiary: "_1nivbwek", quaternary: "_1nivbwel" }, highlighted: { true: "_1nivbwem" } }, defaultVariants: {}, compoundVariants: [[{ highlighted: true, variant: "primary" }, "_1nivbwen"], [{ highlighted: true, variant: "tertiary" }, "_1nivbweo"]] });
|
|
15
|
+
var table = createRuntimeFn({ defaultClassName: "_1nivbwep", variantClassNames: { variant: { primary: "_1nivbweq", secondary: "_1nivbwer", tertiary: "_1nivbwes", quaternary: "_1nivbwet" } }, defaultVariants: {}, compoundVariants: [] });
|
|
12
16
|
export {
|
|
13
17
|
bodyHeader,
|
|
14
|
-
container,
|
|
15
18
|
headerCell,
|
|
16
19
|
headerVariants,
|
|
20
|
+
highlight_first_row,
|
|
21
|
+
highlight_last_row,
|
|
17
22
|
table,
|
|
23
|
+
table_container,
|
|
24
|
+
table_container_text,
|
|
25
|
+
table_headline,
|
|
18
26
|
td,
|
|
19
27
|
th
|
|
20
28
|
};
|
package/dist/Table/Table.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
}
|
|
1
|
+
import { PropsWithChildren } from "react";
|
|
2
|
+
import { CellProps, RowProps, TableContainerProps, TableProps } from "./Table.interface";
|
|
3
|
+
export declare const TableContainer: ({ tableTitle, tableBody, tableFooter, }: TableContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const Table: ({ variant, children, highlight, }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const TableRow: ({ children, ...props }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export declare const TableCell: ({ children, as, variant, highlighted, ...props }: CellProps & TdVariants & ThVariants) => import("react").DetailedReactHTMLElement<{
|
|
6
|
+
export declare const TableHead: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const TableBody: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const TableCell: ({ children, as, variant, highlighted, ...props }: CellProps) => import("react").DetailedReactHTMLElement<{
|
|
10
9
|
className: string;
|
|
11
10
|
manifest?: string | undefined;
|
|
12
11
|
defaultChecked?: boolean | undefined;
|
|
@@ -275,8 +274,3 @@ export declare const TableCell: ({ children, as, variant, highlighted, ...props
|
|
|
275
274
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLTableCellElement> | undefined;
|
|
276
275
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLTableCellElement> | undefined;
|
|
277
276
|
}, HTMLElement>;
|
|
278
|
-
export interface Table extends PropsWithChildren {
|
|
279
|
-
columns?: ReactNode;
|
|
280
|
-
rows?: ReactNode;
|
|
281
|
-
}
|
|
282
|
-
export declare const Table: (props: Table & TableVariants) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HtmlHTMLAttributes, PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
export interface RowProps extends HtmlHTMLAttributes<HTMLTableRowElement>, PropsWithChildren {
|
|
3
|
+
}
|
|
4
|
+
export interface CellProps extends HtmlHTMLAttributes<HTMLTableCellElement>, PropsWithChildren {
|
|
5
|
+
as?: "td" | "th";
|
|
6
|
+
variant: string;
|
|
7
|
+
highlighted?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface TableProps extends PropsWithChildren {
|
|
10
|
+
variant: string;
|
|
11
|
+
highlight?: "First Row" | "Last Row" | "First and Last Row" | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface TableContainerProps extends PropsWithChildren {
|
|
14
|
+
variant: string;
|
|
15
|
+
tableTitle: ReactNode | string;
|
|
16
|
+
tableBody?: ReactNode | string;
|
|
17
|
+
tableFooter: ReactNode | string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/Table/Table.js
CHANGED
|
@@ -1,14 +1,50 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
2
3
|
import clsx from "clsx";
|
|
3
4
|
import { createElement } from "react";
|
|
4
|
-
import {
|
|
5
|
+
import { table_container, table_container_text, table_headline, table, highlight_first_row, highlight_last_row, td, th } from "./Table.css.js";
|
|
6
|
+
const TableContainer = ({
|
|
7
|
+
tableTitle,
|
|
8
|
+
tableBody,
|
|
9
|
+
tableFooter
|
|
10
|
+
}) => {
|
|
11
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx(table_container, "containment", "section_spacer"), children: [
|
|
12
|
+
tableTitle && /* @__PURE__ */ jsx("div", { className: table_container_text, children: /* @__PURE__ */ jsx("h1", { className: clsx("header_1", table_headline), children: tableTitle }) }),
|
|
13
|
+
tableBody,
|
|
14
|
+
tableFooter && /* @__PURE__ */ jsx("div", { className: clsx(table_container_text, "push_up_24"), children: tableFooter })
|
|
15
|
+
] });
|
|
16
|
+
};
|
|
17
|
+
const Table = ({
|
|
18
|
+
variant = "primary",
|
|
19
|
+
children,
|
|
20
|
+
highlight
|
|
21
|
+
}) => {
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
"table",
|
|
24
|
+
{
|
|
25
|
+
className: clsx(
|
|
26
|
+
table({ variant: getVariant(variant) }),
|
|
27
|
+
highlight === "First Row" && highlight_first_row,
|
|
28
|
+
highlight === "Last Row" && highlight_last_row,
|
|
29
|
+
highlight === "First and Last Row" && `${highlight_first_row} ${highlight_last_row}`
|
|
30
|
+
),
|
|
31
|
+
children
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
};
|
|
5
35
|
const TableRow = ({ children, ...props }) => {
|
|
6
36
|
return /* @__PURE__ */ jsx("tr", { ...props, children });
|
|
7
37
|
};
|
|
38
|
+
const TableHead = ({ children }) => {
|
|
39
|
+
return /* @__PURE__ */ jsx("thead", { children });
|
|
40
|
+
};
|
|
41
|
+
const TableBody = ({ children }) => {
|
|
42
|
+
return /* @__PURE__ */ jsx("tbody", { children });
|
|
43
|
+
};
|
|
8
44
|
const TableCell = ({
|
|
9
45
|
children,
|
|
10
46
|
as = "td",
|
|
11
|
-
variant,
|
|
47
|
+
variant = "primary",
|
|
12
48
|
highlighted,
|
|
13
49
|
...props
|
|
14
50
|
}) => {
|
|
@@ -17,22 +53,18 @@ const TableCell = ({
|
|
|
17
53
|
{
|
|
18
54
|
...props,
|
|
19
55
|
className: clsx(
|
|
20
|
-
as == "td" ? td({ variant, highlighted }) : th({ variant, highlighted }),
|
|
56
|
+
as == "td" ? td({ variant: getVariant(variant), highlighted }) : th({ variant: getVariant(variant), highlighted }),
|
|
21
57
|
props == null ? void 0 : props.className
|
|
22
58
|
)
|
|
23
59
|
},
|
|
24
60
|
children
|
|
25
61
|
);
|
|
26
62
|
};
|
|
27
|
-
const Table = (props) => {
|
|
28
|
-
const { variant = "primary", rows, columns } = props;
|
|
29
|
-
return /* @__PURE__ */ jsx("div", { className: container, children: /* @__PURE__ */ jsxs("table", { className: table({ variant }), children: [
|
|
30
|
-
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx(TableRow, { children: columns }) }),
|
|
31
|
-
/* @__PURE__ */ jsx("tbody", { children: rows })
|
|
32
|
-
] }) });
|
|
33
|
-
};
|
|
34
63
|
export {
|
|
35
64
|
Table,
|
|
65
|
+
TableBody,
|
|
36
66
|
TableCell,
|
|
67
|
+
TableContainer,
|
|
68
|
+
TableHead,
|
|
37
69
|
TableRow
|
|
38
70
|
};
|
package/dist/Table/index.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import { Table, TableCell, TableRow } from "./Table.js";
|
|
2
|
-
import { bodyHeader,
|
|
1
|
+
import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from "./Table.js";
|
|
2
|
+
import { bodyHeader, headerCell, headerVariants, highlight_first_row, highlight_last_row, table, table_container, table_container_text, table_headline, td, th } from "./Table.css.js";
|
|
3
3
|
export {
|
|
4
4
|
Table,
|
|
5
|
+
TableBody,
|
|
5
6
|
TableCell,
|
|
7
|
+
TableContainer,
|
|
8
|
+
TableHead,
|
|
6
9
|
TableRow,
|
|
7
10
|
bodyHeader,
|
|
8
|
-
container,
|
|
9
11
|
headerCell,
|
|
10
12
|
headerVariants,
|
|
13
|
+
highlight_first_row,
|
|
14
|
+
highlight_last_row,
|
|
11
15
|
table,
|
|
16
|
+
table_container,
|
|
17
|
+
table_container_text,
|
|
18
|
+
table_headline,
|
|
12
19
|
td,
|
|
13
20
|
th
|
|
14
21
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { textBlockHeader } from "./TextBlock.css.js";
|
|
3
|
+
const TextBlock = (props) => {
|
|
4
|
+
return /* @__PURE__ */ jsxs("div", { className: "containment section_spacer", children: [
|
|
5
|
+
/* @__PURE__ */ jsx("h2", { className: `header_2 text_center ${textBlockHeader}`, children: props.headline }),
|
|
6
|
+
/* @__PURE__ */ jsx("div", { children: props.bodyCopy })
|
|
7
|
+
] });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
TextBlock
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VideoInit: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const show: string;
|
|
2
|
+
export declare const video_title: string;
|
|
3
|
+
export declare const transcript_btn: string;
|
|
4
|
+
export declare const item: string;
|
|
5
|
+
export declare const video_container: string;
|
|
6
|
+
export declare const mb_8: string;
|
|
7
|
+
export declare const toggle_container: string;
|
|
8
|
+
export declare const expand_icon: string;
|
|
9
|
+
export declare const transcript_container: string;
|
|
10
|
+
export declare const w_100: string;
|
|
11
|
+
export declare const transcript_content: string;
|
|
12
|
+
export declare const vidyard_height: string;
|
|
13
|
+
export declare const hide_transcript: string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
var show = "_16puo4g0";
|
|
6
|
+
var video_title = "_16puo4g1";
|
|
7
|
+
var transcript_btn = "_16puo4g2";
|
|
8
|
+
var item = "_16puo4g3";
|
|
9
|
+
var video_container = "_16puo4g4";
|
|
10
|
+
var mb_8 = "_16puo4g5";
|
|
11
|
+
var toggle_container = "_16puo4g6";
|
|
12
|
+
var expand_icon = "_16puo4g7";
|
|
13
|
+
var transcript_container = "_16puo4g8";
|
|
14
|
+
var w_100 = "_16puo4g9";
|
|
15
|
+
var transcript_content = "_16puo4ga";
|
|
16
|
+
var vidyard_height = "_16puo4gb";
|
|
17
|
+
var hide_transcript = "_16puo4gc";
|
|
18
|
+
export {
|
|
19
|
+
expand_icon,
|
|
20
|
+
hide_transcript,
|
|
21
|
+
item,
|
|
22
|
+
mb_8,
|
|
23
|
+
show,
|
|
24
|
+
toggle_container,
|
|
25
|
+
transcript_btn,
|
|
26
|
+
transcript_container,
|
|
27
|
+
transcript_content,
|
|
28
|
+
video_container,
|
|
29
|
+
video_title,
|
|
30
|
+
vidyard_height,
|
|
31
|
+
w_100
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import ReactMarkdown from "react-markdown";
|
|
4
|
+
import { useToggle } from "react-use";
|
|
5
|
+
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
6
|
+
import SvgChevronDown from "../icons/ChevronDown.js";
|
|
7
|
+
import SvgChevronUp from "../icons/ChevronUp.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
import { VideoInit } from "./VideoInit.js";
|
|
12
|
+
import { video_container, w_100, mb_8, video_title, vidyard_height, transcript_container, toggle_container, transcript_btn, expand_icon, transcript_content, show, hide_transcript } from "./VideoTile.css.js";
|
|
13
|
+
const VideoTile = ({
|
|
14
|
+
// ariaLabel,
|
|
15
|
+
title,
|
|
16
|
+
videoId,
|
|
17
|
+
thumbnailImage,
|
|
18
|
+
// displayType,
|
|
19
|
+
maxWidth = "588px",
|
|
20
|
+
videoPlayer,
|
|
21
|
+
transcript
|
|
22
|
+
}) => {
|
|
23
|
+
const [on, toggle] = useToggle(false);
|
|
24
|
+
const handleToggleClick = (event) => {
|
|
25
|
+
event.preventDefault();
|
|
26
|
+
toggle();
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
29
|
+
/* @__PURE__ */ jsx(VideoInit, {}),
|
|
30
|
+
/* @__PURE__ */ jsxs("div", { className: `${video_container} ${w_100} flex flex_col`, children: [
|
|
31
|
+
/* @__PURE__ */ jsx("h2", { className: `${mb_8} ${video_title}`, children: title ? title : null }),
|
|
32
|
+
/* @__PURE__ */ jsx(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
id: "",
|
|
36
|
+
className: `${mb_8} ${vidyard_height} vidyard-player-container rounded`,
|
|
37
|
+
"data-uuid": videoId,
|
|
38
|
+
children: /* @__PURE__ */ jsx(
|
|
39
|
+
"img",
|
|
40
|
+
{
|
|
41
|
+
style: {
|
|
42
|
+
width: "100%",
|
|
43
|
+
margin: "auto",
|
|
44
|
+
display: "block",
|
|
45
|
+
maxHeight: "304px",
|
|
46
|
+
maxWidth
|
|
47
|
+
},
|
|
48
|
+
alt: "",
|
|
49
|
+
className: "vidyard-player-embed",
|
|
50
|
+
src: thumbnailImage ? thumbnailImage : `https://play.vidyard.com/${videoId}.jpg`,
|
|
51
|
+
"data-uuid": videoId,
|
|
52
|
+
"data-v": "4",
|
|
53
|
+
"data-type": videoPlayer,
|
|
54
|
+
"data-width": maxWidth,
|
|
55
|
+
"data-height": "304px"
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ jsxs("div", { className: `${transcript_container}`, children: [
|
|
61
|
+
/* @__PURE__ */ jsxs(
|
|
62
|
+
"a",
|
|
63
|
+
{
|
|
64
|
+
className: `${toggle_container}`,
|
|
65
|
+
"aria-expanded": on,
|
|
66
|
+
href: "#",
|
|
67
|
+
"aria-label": "",
|
|
68
|
+
onClick: handleToggleClick,
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsx("span", { className: `${transcript_btn}`, children: "Review transcript" }),
|
|
71
|
+
/* @__PURE__ */ jsx("span", { className: expand_icon, "aria-hidden": "true", children: on ? /* @__PURE__ */ jsx(SvgChevronUp, {}) : /* @__PURE__ */ jsx(SvgChevronDown, {}) })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
76
|
+
ReactMarkdown,
|
|
77
|
+
{
|
|
78
|
+
className: `${transcript_content} ${on ? show : hide_transcript}`,
|
|
79
|
+
children: transcript
|
|
80
|
+
}
|
|
81
|
+
) })
|
|
82
|
+
] })
|
|
83
|
+
] })
|
|
84
|
+
] });
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
VideoTile
|
|
88
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VideoInit } from "./VideoInit.js";
|
|
2
|
+
import { VideoTile } from "./VideoTile.js";
|
|
3
|
+
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.css.js";
|
|
4
|
+
export {
|
|
5
|
+
VideoInit,
|
|
6
|
+
VideoTile,
|
|
7
|
+
expand_icon,
|
|
8
|
+
hide_transcript,
|
|
9
|
+
item,
|
|
10
|
+
mb_8,
|
|
11
|
+
show,
|
|
12
|
+
toggle_container,
|
|
13
|
+
transcript_btn,
|
|
14
|
+
transcript_container,
|
|
15
|
+
transcript_content,
|
|
16
|
+
video_container,
|
|
17
|
+
video_title,
|
|
18
|
+
vidyard_height,
|
|
19
|
+
w_100
|
|
20
|
+
};
|