@axos-web-dev/shared-components 0.0.11 → 0.0.12
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/ApyCalculator/index.js +3 -2
- package/dist/Button/Button.d.ts +24 -0
- package/dist/Button/Button.js +31 -0
- package/dist/Button/GoBackButton.d.ts +3 -0
- package/dist/Button/GoBackButton.js +15 -0
- package/dist/Button/index.d.ts +3 -21
- package/dist/Button/index.js +5 -20
- package/dist/CallToActionBar/index.js +30 -36
- package/dist/CollectInformationAlert/index.js +4 -1
- package/dist/ContentBanner/index.js +4 -1
- package/dist/Forms/ScheduleCall.d.ts +2 -1
- package/dist/Forms/ScheduleCall.js +9 -11
- package/dist/HeroBanner/index.js +4 -1
- package/dist/IconBillboard/IconBillboard.d.ts +3 -1
- package/dist/IconBillboard/IconBillboard.interface.d.ts +2 -0
- package/dist/IconBillboard/IconBillboard.js +49 -34
- package/dist/IconBillboard/IconBillboardSet.js +50 -56
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +1 -0
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +3 -0
- package/dist/ImageBillboard/ImageBillboard.js +4 -1
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +12 -3
- package/dist/Input/Input.css.js +5 -0
- package/dist/MainHTML/index.d.ts +1 -1
- package/dist/Modal/index.js +4 -2
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.d.ts +1 -0
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +7 -0
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
- package/dist/NavigationMenu/AxosAdvisor/NavData.d.ts +4 -0
- package/dist/NavigationMenu/AxosAdvisor/NavData.js +10 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +46 -30
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.d.ts +4 -0
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +13 -0
- package/dist/NavigationMenu/AxosAdvisor/index.js +184 -142
- package/dist/NavigationMenu/AxosFiduciary/index.js +12 -6
- package/dist/SetContainer/SetContainer.js +1 -0
- package/dist/Table/Table.css.d.ts +19 -6
- package/dist/Table/Table.css.js +5 -1
- package/dist/Table/Table.d.ts +3 -3
- package/dist/Table/Table.interface.d.ts +2 -0
- package/dist/Table/Table.js +8 -5
- package/dist/Table/index.js +3 -1
- package/dist/VideoTile/VideoTile.js +2 -2
- package/dist/assets/CallToActionBar/CallToActionBar.css +19 -8
- package/dist/assets/ContentBanner/ContentBanner.css +2 -0
- package/dist/assets/Forms/Forms.css +7 -5
- package/dist/assets/IconBillboard/IconBillboard.css +8 -2
- package/dist/assets/ImageBillboard/ImageBillboard.css +29 -0
- package/dist/assets/Input/Input.css +5 -1
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css +5 -0
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +125 -122
- package/dist/assets/NavigationMenu/AxosAdvisor/SubNavbar.css +17 -0
- package/dist/assets/SetContainer/SetContainer.css +6 -1
- package/dist/assets/Table/Table.css +61 -21
- package/dist/assets/VideoTile/VideoTile.css +1 -0
- package/dist/assets/globals.css +0 -3
- package/dist/main.js +8 -2
- package/package.json +1 -1
- package/dist/NavigationMenu/AxosFiduciary/MobileToggle.d.ts +0 -2
- package/dist/NavigationMenu/AxosFiduciary/MobileToggle.js +0 -120
|
@@ -1,17 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { Button } from "../../Button/Button.js";
|
|
4
|
+
import "../../Button/Button.css.js";
|
|
5
|
+
import { useState, useRef, useEffect } from "react";
|
|
5
6
|
import { useClickAway } from "react-use";
|
|
7
|
+
import clsx from "clsx";
|
|
8
|
+
import { NavItem } from "../NavItem/index.js";
|
|
9
|
+
import { Sign_in_btn } from "./NavBar.css.js";
|
|
6
10
|
import styles from "./NavBar.module.js";
|
|
11
|
+
import { navItems } from "./NavData.js";
|
|
7
12
|
import SubNavBar from "./SubNavBar.js";
|
|
8
13
|
var define_process_env_default = {};
|
|
9
14
|
function NavBar() {
|
|
10
15
|
const [isOpenSignIn, setisOpenSignIn] = useState(false);
|
|
11
16
|
const [isOpenMobile, setisOpenMobile] = useState(false);
|
|
17
|
+
const [activeIndex, setActiveIndex] = useState();
|
|
18
|
+
const [lastNavItem, setLastNavItem] = useState();
|
|
12
19
|
const ref = useRef(null);
|
|
13
20
|
const toggle = () => setisOpenSignIn(!isOpenSignIn);
|
|
14
21
|
const mobileToggle = () => setisOpenMobile(!isOpenMobile);
|
|
22
|
+
const handleClick = (index) => setActiveIndex(index);
|
|
23
|
+
const getActiveIndex = () => {
|
|
24
|
+
const pathname = "/" + location.pathname.split("/")[1];
|
|
25
|
+
const index = navItems.findIndex(
|
|
26
|
+
(path) => path.url === pathname
|
|
27
|
+
);
|
|
28
|
+
setActiveIndex(index);
|
|
29
|
+
};
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
getActiveIndex();
|
|
32
|
+
}, [activeIndex]);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
setLastNavItem(navItems[navItems.length - 1]);
|
|
35
|
+
}, [navItems]);
|
|
15
36
|
useClickAway(ref, (e) => {
|
|
16
37
|
var _a;
|
|
17
38
|
if (((_a = e == null ? void 0 : e.target) == null ? void 0 : _a.tagName) !== "A") {
|
|
@@ -30,12 +51,20 @@ function NavBar() {
|
|
|
30
51
|
height: 51
|
|
31
52
|
}
|
|
32
53
|
) }) }),
|
|
33
|
-
/* @__PURE__ */ jsx("div", { className: styles.primary_links, children: /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
54
|
+
/* @__PURE__ */ jsx("div", { className: styles.primary_links, children: /* @__PURE__ */ jsx("ul", { className: "list_unstyled flex_row middle", role: "menu", children: navItems.map(
|
|
55
|
+
(item, i, arr) => arr.length - 1 !== i && /* @__PURE__ */ jsx(
|
|
56
|
+
NavItem,
|
|
57
|
+
{
|
|
58
|
+
className: styles.main_nav_link,
|
|
59
|
+
onClick: handleClick,
|
|
60
|
+
index: i,
|
|
61
|
+
name: item.name,
|
|
62
|
+
url: item.url,
|
|
63
|
+
isActive: activeIndex == i
|
|
64
|
+
},
|
|
65
|
+
i
|
|
66
|
+
)
|
|
67
|
+
) }) })
|
|
39
68
|
] }) }),
|
|
40
69
|
/* @__PURE__ */ jsx(
|
|
41
70
|
"button",
|
|
@@ -53,8 +82,8 @@ function NavBar() {
|
|
|
53
82
|
children: /* @__PURE__ */ jsx(
|
|
54
83
|
"path",
|
|
55
84
|
{
|
|
56
|
-
|
|
57
|
-
|
|
85
|
+
fillRule: "evenodd",
|
|
86
|
+
clipRule: "evenodd",
|
|
58
87
|
d: "M22.5 15.75V17.25H1.5V15.75H22.5ZM22.5 11.25V12.75H1.5V11.25H22.5ZM22.5 6.75V8.25H1.5V6.75H22.5Z",
|
|
59
88
|
fill: "#4A5560"
|
|
60
89
|
}
|
|
@@ -72,133 +101,139 @@ function NavBar() {
|
|
|
72
101
|
height: 33
|
|
73
102
|
}
|
|
74
103
|
) }) }),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
104
|
+
/* @__PURE__ */ jsx("div", { className: styles.signin_wrap, children: /* @__PURE__ */ jsxs(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
className: `${styles.desktop_only} flex_row middle relative`,
|
|
108
|
+
ref,
|
|
109
|
+
children: [
|
|
110
|
+
lastNavItem && /* @__PURE__ */ jsx(
|
|
111
|
+
NavItem,
|
|
112
|
+
{
|
|
113
|
+
url: lastNavItem.url,
|
|
114
|
+
name: lastNavItem.name,
|
|
115
|
+
className: `link list_unstyled ${styles.main_nav_link}`,
|
|
116
|
+
isActive: activeIndex == navItems.length + 1,
|
|
117
|
+
onClick: handleClick,
|
|
118
|
+
index: navItems.length + 1
|
|
119
|
+
},
|
|
120
|
+
navItems.length + 1
|
|
121
|
+
),
|
|
122
|
+
/* @__PURE__ */ jsxs(
|
|
123
|
+
Button,
|
|
124
|
+
{
|
|
125
|
+
className: clsx(
|
|
126
|
+
styles.signin_btn,
|
|
127
|
+
"flex_row",
|
|
128
|
+
"center",
|
|
129
|
+
"middle",
|
|
130
|
+
isOpenSignIn ? styles.open : "",
|
|
131
|
+
Sign_in_btn
|
|
132
|
+
),
|
|
133
|
+
as: "button",
|
|
134
|
+
type: "button",
|
|
135
|
+
color: "primary",
|
|
136
|
+
id: "signIn",
|
|
137
|
+
action: toggle,
|
|
138
|
+
size: "small",
|
|
139
|
+
"aria-controls": "signin-drop-menu",
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ jsx("span", { children: "Sign In" }),
|
|
142
|
+
/* @__PURE__ */ jsx(
|
|
143
|
+
"svg",
|
|
144
|
+
{
|
|
145
|
+
width: "20",
|
|
146
|
+
height: "12",
|
|
147
|
+
viewBox: "0 0 20 12",
|
|
148
|
+
fill: "none",
|
|
149
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
150
|
+
children: /* @__PURE__ */ jsx(
|
|
151
|
+
"path",
|
|
152
|
+
{
|
|
153
|
+
d: "M0.46875 1.76574L9.99908 11.2961L19.5294 1.76574L18.4687 0.705078L9.99908 9.17491L1.52941 0.705078L0.46875 1.76574Z",
|
|
154
|
+
fill: "white"
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ jsx(
|
|
163
|
+
"div",
|
|
164
|
+
{
|
|
165
|
+
className: `${styles.signin_dropdown} ${styles.shadow} rounded bg_white`,
|
|
166
|
+
children: /* @__PURE__ */ jsx("div", { className: styles.opacity, children: /* @__PURE__ */ jsxs(
|
|
167
|
+
"ul",
|
|
168
|
+
{
|
|
169
|
+
className: "list_unstyled",
|
|
170
|
+
role: "menu",
|
|
171
|
+
"aria-expanded": isOpenSignIn,
|
|
172
|
+
id: "signin-drop-menu",
|
|
173
|
+
children: [
|
|
174
|
+
/* @__PURE__ */ jsxs("li", { role: "heading", children: [
|
|
175
|
+
/* @__PURE__ */ jsx("a", { href: "#", className: styles.signin_header, children: "Personal" }),
|
|
176
|
+
/* @__PURE__ */ jsx("ul", { className: "list_unstyled", children: /* @__PURE__ */ jsx("li", { className: styles.signin_subheader, children: /* @__PURE__ */ jsx(
|
|
177
|
+
"a",
|
|
116
178
|
{
|
|
117
|
-
|
|
118
|
-
|
|
179
|
+
href: `${define_process_env_default.NEXT_PUBLIC_LOGIN_APP_LOGIN_URL}/auth/login`,
|
|
180
|
+
role: "menuitem",
|
|
181
|
+
children: "Account Login"
|
|
119
182
|
}
|
|
120
|
-
)
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
) }) })
|
|
159
|
-
] }),
|
|
160
|
-
/* @__PURE__ */ jsxs("li", { role: "heading", children: [
|
|
161
|
-
/* @__PURE__ */ jsx(
|
|
162
|
-
"a",
|
|
163
|
-
{
|
|
164
|
-
href: "#",
|
|
165
|
-
role: "menuitem",
|
|
166
|
-
className: `${styles.signin_header}`,
|
|
167
|
-
children: "Advisors"
|
|
168
|
-
}
|
|
169
|
-
),
|
|
170
|
-
/* @__PURE__ */ jsx("ul", { className: "list_unstyled", children: /* @__PURE__ */ jsx("li", { className: styles.signin_subheader, children: /* @__PURE__ */ jsx(
|
|
183
|
+
) }) })
|
|
184
|
+
] }),
|
|
185
|
+
/* @__PURE__ */ jsxs("li", { role: "heading", children: [
|
|
186
|
+
/* @__PURE__ */ jsx("a", { href: "#", className: `${styles.signin_header}`, children: "Business" }),
|
|
187
|
+
/* @__PURE__ */ jsx("ul", { className: "list_unstyled", children: /* @__PURE__ */ jsx("li", { className: styles.signin_subheader, children: /* @__PURE__ */ jsx(
|
|
188
|
+
"a",
|
|
189
|
+
{
|
|
190
|
+
href: "https://www.netteller.com/axosbank",
|
|
191
|
+
role: "menuitem",
|
|
192
|
+
children: "Business Banking Login"
|
|
193
|
+
}
|
|
194
|
+
) }) })
|
|
195
|
+
] }),
|
|
196
|
+
/* @__PURE__ */ jsxs("li", { role: "heading", children: [
|
|
197
|
+
/* @__PURE__ */ jsx(
|
|
198
|
+
"a",
|
|
199
|
+
{
|
|
200
|
+
href: "#",
|
|
201
|
+
role: "menuitem",
|
|
202
|
+
className: `${styles.signin_header}`,
|
|
203
|
+
children: "Advisors"
|
|
204
|
+
}
|
|
205
|
+
),
|
|
206
|
+
/* @__PURE__ */ jsx("ul", { className: "list_unstyled", children: /* @__PURE__ */ jsx("li", { className: styles.signin_subheader, children: /* @__PURE__ */ jsx(
|
|
207
|
+
"a",
|
|
208
|
+
{
|
|
209
|
+
href: "https://arms.axosadvisor.com/",
|
|
210
|
+
role: "menuitem",
|
|
211
|
+
children: "Advisor Login"
|
|
212
|
+
}
|
|
213
|
+
) }) })
|
|
214
|
+
] }),
|
|
215
|
+
/* @__PURE__ */ jsx(
|
|
216
|
+
"li",
|
|
217
|
+
{
|
|
218
|
+
className: `${styles.signin_subheader} ${styles.footer} relative`,
|
|
219
|
+
children: /* @__PURE__ */ jsx(
|
|
171
220
|
"a",
|
|
172
221
|
{
|
|
173
|
-
href: "
|
|
222
|
+
href: "{AXOSBANK}/Return-to-Application",
|
|
174
223
|
role: "menuitem",
|
|
175
|
-
children: "
|
|
224
|
+
children: "Return to Application"
|
|
176
225
|
}
|
|
177
|
-
)
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
children: "Return to Application"
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
}
|
|
192
|
-
)
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
) })
|
|
196
|
-
}
|
|
197
|
-
)
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
)
|
|
201
|
-
] })
|
|
226
|
+
)
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
) })
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
) })
|
|
202
237
|
] }) }) }),
|
|
203
238
|
/* @__PURE__ */ jsx(SubNavBar, {}),
|
|
204
239
|
/* @__PURE__ */ jsx(
|
|
@@ -274,20 +309,20 @@ function NavBar() {
|
|
|
274
309
|
/* @__PURE__ */ jsx(
|
|
275
310
|
"a",
|
|
276
311
|
{
|
|
277
|
-
href: "/
|
|
312
|
+
href: "/products/select-high-yield-money-market",
|
|
278
313
|
role: "menuitem",
|
|
279
314
|
children: "Select High Yield Money Market"
|
|
280
315
|
}
|
|
281
316
|
),
|
|
282
|
-
/* @__PURE__ */ jsx("a", { href: "/
|
|
283
|
-
/* @__PURE__ */ jsx("a", { href: "/
|
|
284
|
-
/* @__PURE__ */ jsx("a", { href: "/
|
|
285
|
-
/* @__PURE__ */ jsx("a", { href: "/
|
|
286
|
-
/* @__PURE__ */ jsx("a", { href: "/
|
|
317
|
+
/* @__PURE__ */ jsx("a", { href: "/products/select-cds", role: "menuitem", children: "Select CDs" }),
|
|
318
|
+
/* @__PURE__ */ jsx("a", { href: "/products/select-checking", role: "menuitem", children: "Select Checking" }),
|
|
319
|
+
/* @__PURE__ */ jsx("a", { href: "/products/select-savings", role: "menuitem", children: "Select Savings" }),
|
|
320
|
+
/* @__PURE__ */ jsx("a", { href: "/products/business-banking", role: "menuitem", children: "Business Banking" }),
|
|
321
|
+
/* @__PURE__ */ jsx("a", { href: "/products/mortgage", role: "menuitem", children: "Mortgage" }),
|
|
287
322
|
/* @__PURE__ */ jsx(
|
|
288
323
|
"a",
|
|
289
324
|
{
|
|
290
|
-
href: "/
|
|
325
|
+
href: "/products/premier-world-checking-and-savings",
|
|
291
326
|
className: styles.main,
|
|
292
327
|
role: "heading",
|
|
293
328
|
children: "Private Client"
|
|
@@ -296,16 +331,16 @@ function NavBar() {
|
|
|
296
331
|
/* @__PURE__ */ jsx(
|
|
297
332
|
"a",
|
|
298
333
|
{
|
|
299
|
-
href: "/
|
|
334
|
+
href: "/products/premier-private-client-banking",
|
|
300
335
|
role: "menuitem",
|
|
301
336
|
children: "Advisor Private Client Banking"
|
|
302
337
|
}
|
|
303
338
|
),
|
|
304
|
-
/* @__PURE__ */ jsx("a", { href: "/
|
|
339
|
+
/* @__PURE__ */ jsx("a", { href: "/products/insureGuard-for-advisor", role: "menuitem", children: "InsureGuard+" }),
|
|
305
340
|
/* @__PURE__ */ jsx(
|
|
306
341
|
"a",
|
|
307
342
|
{
|
|
308
|
-
href: "/
|
|
343
|
+
href: "/products/premier-world-checking-and-savings",
|
|
309
344
|
role: "menuitem",
|
|
310
345
|
children: "Advisor World Checking and Savings"
|
|
311
346
|
}
|
|
@@ -400,7 +435,14 @@ function NavBar() {
|
|
|
400
435
|
className: `${styles.mobile_footer_content} flex_col between`,
|
|
401
436
|
children: [
|
|
402
437
|
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: "Get personalized support" }) }),
|
|
403
|
-
/* @__PURE__ */ jsx("div", { className: styles.footer_cta, children: /* @__PURE__ */ jsx(
|
|
438
|
+
/* @__PURE__ */ jsx("div", { className: styles.footer_cta, children: /* @__PURE__ */ jsx(
|
|
439
|
+
Button,
|
|
440
|
+
{
|
|
441
|
+
color: "primary",
|
|
442
|
+
targetUrl: "mailto:support@axosadvisor.com",
|
|
443
|
+
children: "Contact Us"
|
|
444
|
+
}
|
|
445
|
+
) })
|
|
404
446
|
]
|
|
405
447
|
}
|
|
406
448
|
),
|
|
@@ -123,12 +123,18 @@ const NavBarAFS = () => {
|
|
|
123
123
|
}
|
|
124
124
|
) })
|
|
125
125
|
] }),
|
|
126
|
-
/* @__PURE__ */ jsx("div", { className: styles.mobile_body, children: /* @__PURE__ */
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
/* @__PURE__ */ jsx("div", { className: styles.mobile_body, children: /* @__PURE__ */ jsx("ul", { className: "list_unstyled", children: navItems.map(
|
|
127
|
+
(item, i) => /* @__PURE__ */ jsx(
|
|
128
|
+
NavItem,
|
|
129
|
+
{
|
|
130
|
+
className: styles.mobile_nav_item,
|
|
131
|
+
index: i,
|
|
132
|
+
name: item.name,
|
|
133
|
+
url: item.url
|
|
134
|
+
},
|
|
135
|
+
`dd_${i}`
|
|
136
|
+
)
|
|
137
|
+
) }) }),
|
|
132
138
|
/* @__PURE__ */ jsx("div", { className: styles.mobile_footer, children: /* @__PURE__ */ jsxs("div", { className: "flex_row between", children: [
|
|
133
139
|
/* @__PURE__ */ jsxs(
|
|
134
140
|
"div",
|
|
@@ -77,7 +77,7 @@ export declare const td: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
77
77
|
selectors: {
|
|
78
78
|
"&:first-child": {
|
|
79
79
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
80
|
-
color: `var(--${string})
|
|
80
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
81
81
|
};
|
|
82
82
|
};
|
|
83
83
|
"@media": {
|
|
@@ -96,7 +96,7 @@ export declare const td: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
96
96
|
selectors: {
|
|
97
97
|
"&:first-child": {
|
|
98
98
|
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
99
|
-
color: `var(--${string})
|
|
99
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
"@media": {
|
|
@@ -114,23 +114,36 @@ export declare const td: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
114
114
|
true: {};
|
|
115
115
|
};
|
|
116
116
|
}>;
|
|
117
|
+
export declare const tableWrapper: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
118
|
+
variant: {
|
|
119
|
+
primary: {
|
|
120
|
+
border: `1px solid var(--${string})` | `1px solid var(--${string}, ${string})` | `1px solid var(--${string}, ${number})`;
|
|
121
|
+
};
|
|
122
|
+
secondary: {
|
|
123
|
+
border: `1px solid var(--${string})` | `1px solid var(--${string}, ${string})` | `1px solid var(--${string}, ${number})`;
|
|
124
|
+
};
|
|
125
|
+
tertiary: {
|
|
126
|
+
border: "none";
|
|
127
|
+
};
|
|
128
|
+
quaternary: {
|
|
129
|
+
border: "none";
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}>;
|
|
117
133
|
export declare const table: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
118
134
|
variant: {
|
|
119
135
|
primary: {
|
|
120
136
|
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})`;
|
|
122
137
|
};
|
|
123
138
|
secondary: {
|
|
124
139
|
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})`;
|
|
126
140
|
};
|
|
127
141
|
tertiary: {
|
|
128
142
|
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})`;
|
|
130
143
|
};
|
|
131
144
|
quaternary: {
|
|
132
145
|
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})`;
|
|
134
146
|
};
|
|
135
147
|
};
|
|
136
148
|
}>;
|
|
149
|
+
export declare const alternate_color_rows: string;
|
package/dist/Table/Table.css.js
CHANGED
|
@@ -12,14 +12,18 @@ var headerVariants = { primary: "_1nivbwe6 _1nivbwe5", secondary: "_1nivbwe7 _1n
|
|
|
12
12
|
var bodyHeader = "_1nivbwea";
|
|
13
13
|
var th = createRuntimeFn({ defaultClassName: "_1nivbweb", variantClassNames: { variant: { primary: "_1nivbwec", secondary: "_1nivbwed", tertiary: "_1nivbwee", quaternary: "_1nivbwef" }, highlighted: { true: "_1nivbweg" } }, defaultVariants: {}, compoundVariants: [] });
|
|
14
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
|
|
15
|
+
var tableWrapper = createRuntimeFn({ defaultClassName: "_1nivbwep", variantClassNames: { variant: { primary: "_1nivbweq", secondary: "_1nivbwer", tertiary: "_1nivbwes", quaternary: "_1nivbwet" } }, defaultVariants: {}, compoundVariants: [] });
|
|
16
|
+
var table = createRuntimeFn({ defaultClassName: "_1nivbweu", variantClassNames: { variant: { primary: "_1nivbwev", secondary: "_1nivbwew", tertiary: "_1nivbwex", quaternary: "_1nivbwey" } }, defaultVariants: {}, compoundVariants: [] });
|
|
17
|
+
var alternate_color_rows = "_1nivbwez";
|
|
16
18
|
export {
|
|
19
|
+
alternate_color_rows,
|
|
17
20
|
bodyHeader,
|
|
18
21
|
headerCell,
|
|
19
22
|
headerVariants,
|
|
20
23
|
highlight_first_row,
|
|
21
24
|
highlight_last_row,
|
|
22
25
|
table,
|
|
26
|
+
tableWrapper,
|
|
23
27
|
table_container,
|
|
24
28
|
table_container_text,
|
|
25
29
|
table_headline,
|
package/dist/Table/Table.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from "react";
|
|
2
2
|
import { CellProps, RowProps, TableContainerProps, TableProps } from "./Table.interface";
|
|
3
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;
|
|
4
|
+
export declare const Table: ({ variant, children, highlight, tableType, alternateColorRows, }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const TableRow: ({ children, ...props }: RowProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const TableHead: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare const TableBody: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -53,7 +53,7 @@ export declare const TableCell: ({ children, as, variant, highlighted, ...props
|
|
|
53
53
|
results?: number | undefined;
|
|
54
54
|
security?: string | undefined;
|
|
55
55
|
unselectable?: "on" | "off" | undefined;
|
|
56
|
-
inputMode?: "search" | "none" | "text" | "
|
|
56
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
57
57
|
is?: string | undefined;
|
|
58
58
|
"aria-activedescendant"?: string | undefined;
|
|
59
59
|
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
@@ -67,7 +67,7 @@ export declare const TableCell: ({ children, as, variant, highlighted, ...props
|
|
|
67
67
|
"aria-colindextext"?: string | undefined;
|
|
68
68
|
"aria-colspan"?: number | undefined;
|
|
69
69
|
"aria-controls"?: string | undefined;
|
|
70
|
-
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "
|
|
70
|
+
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "step" | "location" | "date" | undefined;
|
|
71
71
|
"aria-describedby"?: string | undefined;
|
|
72
72
|
"aria-description"?: string | undefined;
|
|
73
73
|
"aria-details"?: string | undefined;
|
|
@@ -9,6 +9,8 @@ export interface CellProps extends HtmlHTMLAttributes<HTMLTableCellElement>, Pro
|
|
|
9
9
|
export interface TableProps extends PropsWithChildren {
|
|
10
10
|
variant: string;
|
|
11
11
|
highlight?: "First Row" | "Last Row" | "First and Last Row" | undefined;
|
|
12
|
+
tableType?: "Standard" | "Rate";
|
|
13
|
+
alternateColorRows?: boolean;
|
|
12
14
|
}
|
|
13
15
|
export interface TableContainerProps extends PropsWithChildren {
|
|
14
16
|
variant: string;
|
package/dist/Table/Table.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { getVariant } from "../utils/getVariant.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { createElement } from "react";
|
|
5
|
-
import { table_container, table_container_text, table_headline, table, highlight_first_row, highlight_last_row, td, th } from "./Table.css.js";
|
|
5
|
+
import { table_container, table_container_text, table_headline, tableWrapper, table, highlight_first_row, highlight_last_row, alternate_color_rows, td, th } from "./Table.css.js";
|
|
6
6
|
const TableContainer = ({
|
|
7
7
|
tableTitle,
|
|
8
8
|
tableBody,
|
|
@@ -17,20 +17,23 @@ const TableContainer = ({
|
|
|
17
17
|
const Table = ({
|
|
18
18
|
variant = "primary",
|
|
19
19
|
children,
|
|
20
|
-
highlight
|
|
20
|
+
highlight,
|
|
21
|
+
tableType,
|
|
22
|
+
alternateColorRows = false
|
|
21
23
|
}) => {
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
24
|
+
return /* @__PURE__ */ jsx("div", { className: tableWrapper({ variant: getVariant(variant) }), children: /* @__PURE__ */ jsx(
|
|
23
25
|
"table",
|
|
24
26
|
{
|
|
25
27
|
className: clsx(
|
|
26
28
|
table({ variant: getVariant(variant) }),
|
|
27
29
|
highlight === "First Row" && highlight_first_row,
|
|
28
30
|
highlight === "Last Row" && highlight_last_row,
|
|
29
|
-
highlight === "First and Last Row" && `${highlight_first_row} ${highlight_last_row}
|
|
31
|
+
highlight === "First and Last Row" && `${highlight_first_row} ${highlight_last_row}`,
|
|
32
|
+
alternateColorRows || tableType === "Rate" ? alternate_color_rows : ""
|
|
30
33
|
),
|
|
31
34
|
children
|
|
32
35
|
}
|
|
33
|
-
);
|
|
36
|
+
) });
|
|
34
37
|
};
|
|
35
38
|
const TableRow = ({ children, ...props }) => {
|
|
36
39
|
return /* @__PURE__ */ jsx("tr", { ...props, children });
|
package/dist/Table/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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";
|
|
2
|
+
import { alternate_color_rows, bodyHeader, headerCell, headerVariants, highlight_first_row, highlight_last_row, table, tableWrapper, table_container, table_container_text, table_headline, td, th } from "./Table.css.js";
|
|
3
3
|
export {
|
|
4
4
|
Table,
|
|
5
5
|
TableBody,
|
|
@@ -7,12 +7,14 @@ export {
|
|
|
7
7
|
TableContainer,
|
|
8
8
|
TableHead,
|
|
9
9
|
TableRow,
|
|
10
|
+
alternate_color_rows,
|
|
10
11
|
bodyHeader,
|
|
11
12
|
headerCell,
|
|
12
13
|
headerVariants,
|
|
13
14
|
highlight_first_row,
|
|
14
15
|
highlight_last_row,
|
|
15
16
|
table,
|
|
17
|
+
tableWrapper,
|
|
16
18
|
table_container,
|
|
17
19
|
table_container_text,
|
|
18
20
|
table_headline,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs,
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import ReactMarkdown from "react-markdown";
|
|
4
4
|
import { useToggle } from "react-use";
|
|
5
5
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
@@ -25,7 +25,7 @@ const VideoTile = ({
|
|
|
25
25
|
event.preventDefault();
|
|
26
26
|
toggle();
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */ jsxs(
|
|
28
|
+
return /* @__PURE__ */ jsxs("div", { className: `flex center`, children: [
|
|
29
29
|
/* @__PURE__ */ jsx(VideoInit, {}),
|
|
30
30
|
/* @__PURE__ */ jsxs("div", { className: `${video_container} ${w_100} flex flex_col`, children: [
|
|
31
31
|
/* @__PURE__ */ jsx("h2", { className: `${mb_8} ${video_title}`, children: title ? title : null }),
|