@axos-web-dev/shared-components 1.0.77-patch.53 → 1.0.77-patch.55

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.
@@ -1,6 +1,6 @@
1
- import '../assets/Blockquote/Blockquote.css.css';const quote_spacer = "_quote_spacer_168r9_1";
2
- const author = "_author_168r9_13";
3
- const quote = "_quote_168r9_1";
1
+ import '../assets/Blockquote/Blockquote.css.css';const quote_spacer = "_quote_spacer_53yiw_1";
2
+ const author = "_author_53yiw_7";
3
+ const quote = "_quote_53yiw_1";
4
4
  const css = {
5
5
  quote_spacer,
6
6
  author,
@@ -44,3 +44,5 @@ export declare const ax1_calc_disclosure: import('@vanilla-extract/recipes').Run
44
44
  };
45
45
  }>;
46
46
  export declare const call_to_action_row: string;
47
+ export declare const tieredRowAnimation: string;
48
+ export declare const tieredRowAnimationDelayed: string;
@@ -1,7 +1,8 @@
1
- import '../../assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css';import '../../assets/Typography/Typography.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
1
+ import '../../assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css';import '../../assets/Table/Table.css';import '../../assets/Typography/Typography.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
+ /* empty css */
5
6
  /* empty css */
6
7
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
7
8
  var ax1_container = "_11b2y8z0";
@@ -20,6 +21,8 @@ var ax1_calc_text = "_11b2y8zc";
20
21
  var ax1_description_text = createRuntimeFn({ defaultClassName: "_11b2y8zd", variantClassNames: { variant: { primary: "_11b2y8ze", secondary: "_11b2y8zf", tertiary: "_11b2y8zg", quaternary: "_11b2y8zh" } }, defaultVariants: {}, compoundVariants: [] });
21
22
  var ax1_calc_disclosure = createRuntimeFn({ defaultClassName: "_11b2y8zi", variantClassNames: { variant: { primary: "_11b2y8zj", secondary: "_11b2y8zk", tertiary: "_11b2y8zl", quaternary: "_11b2y8zm" } }, defaultVariants: {}, compoundVariants: [] });
22
23
  var call_to_action_row = "_11b2y8zn";
24
+ var tieredRowAnimation = "_11b2y8zp";
25
+ var tieredRowAnimationDelayed = "_11b2y8zq";
23
26
  export {
24
27
  ax1_calc_disclosure,
25
28
  ax1_calc_icon,
@@ -36,5 +39,7 @@ export {
36
39
  ax1_input_label,
37
40
  ax1_m_label,
38
41
  ax1_table_container,
39
- call_to_action_row
42
+ call_to_action_row,
43
+ tieredRowAnimation,
44
+ tieredRowAnimationDelayed
40
45
  };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { Button } from "../../Button/Button.js";
4
4
  import "../../Button/Button.css.js";
5
5
  import { useState } from "react";
@@ -18,7 +18,7 @@ import { headerCell } from "../../Table/Table.css.js";
18
18
  import "../../utils/allowedAxosDomains.js";
19
19
  import { getVariant } from "../../utils/getVariant.js";
20
20
  import clsx from "clsx";
21
- import { ax1_calc_icon, ax1_header_container, ax1_header_calc, ax1_calc_text, ax1_description_text, ax1_calculator_wrapper, ax1_input_container, ax1_input_label, ax1_calculator_input, ax1_calculator_button, ax1_d_label, ax1_m_label, ax1_table_container, call_to_action_row, ax1_calc_disclosure, ax1_container } from "./BalanceAPYCalculator.css.js";
21
+ import { ax1_calc_icon, ax1_header_container, ax1_header_calc, ax1_calc_text, ax1_description_text, ax1_calculator_wrapper, ax1_input_container, ax1_input_label, ax1_calculator_input, ax1_calculator_button, ax1_d_label, ax1_m_label, tieredRowAnimation, tieredRowAnimationDelayed, ax1_table_container, call_to_action_row, ax1_calc_disclosure, ax1_container } from "./BalanceAPYCalculator.css.js";
22
22
  const AxosOneCalculator = ({
23
23
  headline,
24
24
  bodyCopy,
@@ -30,24 +30,17 @@ const AxosOneCalculator = ({
30
30
  }) => {
31
31
  const calc_variant = getVariant(variant);
32
32
  const AXOS_ONE_APY = +process.env.NEXT_PUBLIC_AXOS_ONE_APY;
33
+ const AXOS_ONE_APY_TIERED = +process.env.NEXT_PUBLIC_AXOS1_APY_TIER;
33
34
  const startingBalance = Number.isFinite(Number(initialBalance)) && Number(initialBalance) >= 0 ? Number(initialBalance) : 1e4;
34
35
  const [balance, setBalance] = useState(startingBalance);
35
- const [axbAPY, _setAxbAPY] = useState(AXOS_ONE_APY);
36
+ const [calculatedBalance, setCalculatedBalance] = useState(startingBalance);
37
+ const [axbAPY, setAxbAPY] = useState(AXOS_ONE_APY);
36
38
  const [axbEarning, setAxbEarning] = useState(
37
39
  AXOS_ONE_APY / 100 * startingBalance
38
40
  );
39
- const [chaseAPY, _setChaseAPY] = useState(0.01);
40
- const [chaseEarning, setChaseEarning] = useState(
41
- 0.01 / 100 * startingBalance
42
- );
43
- const [bofaAPY, _setBofaAPY] = useState(0.01);
44
- const [bofaEarning, setBofaEarning] = useState(
45
- 0.01 / 100 * startingBalance
46
- );
47
- const [fargoAPY, _setFargoAPY] = useState(0.05);
48
- const [fargoEarning, setFargoEarning] = useState(
49
- 0.05 / 100 * startingBalance
50
- );
41
+ const [tier1Earning, setTier1Earning] = useState(0);
42
+ const [tier2Earning, setTier2Earning] = useState(0);
43
+ const [showTieredRows, setShowTieredRows] = useState(false);
51
44
  const removeNonNumeric = (value) => {
52
45
  if (value === "") {
53
46
  value = "0";
@@ -58,10 +51,27 @@ const AxosOneCalculator = ({
58
51
  return newValue;
59
52
  };
60
53
  const calculateBalance = (amount) => {
61
- setAxbEarning(axbAPY / 100 * amount);
62
- setChaseEarning(chaseAPY / 100 * amount);
63
- setBofaEarning(bofaAPY / 100 * amount);
64
- setFargoEarning(fargoAPY / 100 * amount);
54
+ setCalculatedBalance(amount);
55
+ const TIER_THRESHOLD = 499999.99;
56
+ if (amount > TIER_THRESHOLD) {
57
+ const tier1Amount = TIER_THRESHOLD;
58
+ const tier2Amount = amount - TIER_THRESHOLD;
59
+ const tier1Earn = AXOS_ONE_APY / 100 * tier1Amount;
60
+ const tier2Earn = AXOS_ONE_APY_TIERED / 100 * tier2Amount;
61
+ setTier1Earning(tier1Earn);
62
+ setTier2Earning(tier2Earn);
63
+ const totalEarning = tier1Earn + tier2Earn;
64
+ setAxbEarning(totalEarning);
65
+ const effectiveAPY = totalEarning / amount * 100;
66
+ setAxbAPY(effectiveAPY);
67
+ setShowTieredRows(true);
68
+ } else {
69
+ setAxbEarning(AXOS_ONE_APY / 100 * amount);
70
+ setAxbAPY(AXOS_ONE_APY);
71
+ setTier1Earning(0);
72
+ setTier2Earning(0);
73
+ setShowTieredRows(false);
74
+ }
65
75
  };
66
76
  const onUpdateBalance = (e) => {
67
77
  const text = e.target.value;
@@ -82,6 +92,12 @@ const AxosOneCalculator = ({
82
92
  maximumFractionDigits: 2
83
93
  });
84
94
  };
95
+ const formatEarnings = (value) => {
96
+ return Math.round(value).toLocaleString(void 0, {
97
+ minimumFractionDigits: 0,
98
+ maximumFractionDigits: 0
99
+ });
100
+ };
85
101
  return /* @__PURE__ */ jsx("section", { className: clsx(ax1_container), id: "axoapycalc", children: /* @__PURE__ */ jsxs("div", { className: clsx("containment"), children: [
86
102
  icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", ax1_calc_icon), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
87
103
  (headline || bodyCopy) && /* @__PURE__ */ jsxs("div", { className: `${ax1_header_container} text_center`, children: [
@@ -136,8 +152,8 @@ const AxosOneCalculator = ({
136
152
  children: [
137
153
  /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
138
154
  /* @__PURE__ */ jsxs(TableCell, { as: "th", variant: "primary", children: [
139
- /* @__PURE__ */ jsx("div", { className: clsx(headerCell, ax1_d_label), children: "Bank" }),
140
- /* @__PURE__ */ jsx("div", { className: clsx(headerCell, ax1_m_label), children: "Bank" })
155
+ /* @__PURE__ */ jsx("div", { className: clsx(headerCell, ax1_d_label), children: "Balance" }),
156
+ /* @__PURE__ */ jsx("div", { className: clsx(headerCell, ax1_m_label), children: "Balance" })
141
157
  ] }),
142
158
  /* @__PURE__ */ jsxs(TableCell, { as: "th", variant: "primary", children: [
143
159
  /* @__PURE__ */ jsx("div", { className: clsx(headerCell, ax1_d_label), children: "Annual Percentage Yield*" }),
@@ -150,56 +166,47 @@ const AxosOneCalculator = ({
150
166
  ] }) }),
151
167
  /* @__PURE__ */ jsxs(TableBody, { children: [
152
168
  /* @__PURE__ */ jsxs(TableRow, { children: [
153
- /* @__PURE__ */ jsx(TableCell, { variant: "primary", children: /* @__PURE__ */ jsx("b", { children: "Axos Bank" }) }),
169
+ /* @__PURE__ */ jsx(TableCell, { variant: "primary", children: /* @__PURE__ */ jsxs("b", { children: [
170
+ "$",
171
+ formatUSD(calculatedBalance)
172
+ ] }) }),
154
173
  /* @__PURE__ */ jsx(TableCell, { variant: "primary", children: /* @__PURE__ */ jsxs("b", { children: [
155
174
  axbAPY.toFixed(2),
156
175
  "%"
157
176
  ] }) }),
158
177
  /* @__PURE__ */ jsx(TableCell, { variant: "primary", children: /* @__PURE__ */ jsxs("b", { children: [
159
178
  "$",
160
- formatUSD(axbEarning)
179
+ formatEarnings(axbEarning)
161
180
  ] }) })
162
181
  ] }),
163
- /* @__PURE__ */ jsxs(TableRow, { children: [
164
- /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
165
- "Wells Fargo",
166
- /* @__PURE__ */ jsx("sup", { children: "2" })
182
+ showTieredRows && /* @__PURE__ */ jsxs(Fragment, { children: [
183
+ /* @__PURE__ */ jsxs(TableRow, { className: clsx(tieredRowAnimation), children: [
184
+ /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
185
+ "$",
186
+ formatUSD(499999.99)
187
+ ] }),
188
+ /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
189
+ AXOS_ONE_APY.toFixed(2),
190
+ "%"
191
+ ] }),
192
+ /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
193
+ "$",
194
+ formatEarnings(tier1Earning)
195
+ ] })
167
196
  ] }),
168
- /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
169
- fargoAPY.toFixed(2),
170
- "%"
171
- ] }),
172
- /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
173
- "$",
174
- formatUSD(fargoEarning)
175
- ] })
176
- ] }),
177
- /* @__PURE__ */ jsxs(TableRow, { children: [
178
- /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
179
- "Bank of America",
180
- /* @__PURE__ */ jsx("sup", { children: "3" })
181
- ] }),
182
- /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
183
- bofaAPY.toFixed(2),
184
- "%"
185
- ] }),
186
- /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
187
- "$",
188
- formatUSD(bofaEarning)
189
- ] })
190
- ] }),
191
- /* @__PURE__ */ jsxs(TableRow, { children: [
192
- /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
193
- "Chase",
194
- /* @__PURE__ */ jsx("sup", { children: "4" })
195
- ] }),
196
- /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
197
- chaseAPY.toFixed(2),
198
- "%"
199
- ] }),
200
- /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
201
- "$",
202
- formatUSD(chaseEarning)
197
+ /* @__PURE__ */ jsxs(TableRow, { className: clsx(tieredRowAnimationDelayed), children: [
198
+ /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
199
+ "$",
200
+ formatUSD(calculatedBalance - 499999.99)
201
+ ] }),
202
+ /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
203
+ AXOS_ONE_APY_TIERED.toFixed(2),
204
+ "%"
205
+ ] }),
206
+ /* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
207
+ "$",
208
+ formatEarnings(tier2Earning)
209
+ ] })
203
210
  ] })
204
211
  ] })
205
212
  ] })
@@ -220,7 +227,7 @@ const AxosOneCalculator = ({
220
227
  id
221
228
  )
222
229
  ) }),
223
- disclosure && /* @__PURE__ */ jsx("div", { className: ax1_calc_disclosure({ variant: calc_variant }), children: disclosure })
230
+ showTieredRows && disclosure && /* @__PURE__ */ jsx("div", { className: ax1_calc_disclosure({ variant: calc_variant }), children: disclosure })
224
231
  ] }) });
225
232
  };
226
233
  export {
@@ -570,7 +570,7 @@ const AxosFooterSiteMap = ({
570
570
  href: findMoreAxosDomains(
571
571
  "{AXOSBANK}/personal/bank/premier"
572
572
  ),
573
- children: "CDs"
573
+ children: "Premier"
574
574
  }
575
575
  ) })
576
576
  ] }),
@@ -1,68 +1,68 @@
1
- ._quote_spacer_168r9_1 {
2
- line-height: 1.35;
3
- margin-block: clamp(1.88rem, 1.99vw + 1.41rem, 3rem);
4
- margin-inline: auto;
5
- }
6
-
7
- ._author_168r9_13,
8
- ._quote_168r9_1 {
9
- color: #1f1f1f;
10
- }
11
-
12
- ._author_168r9_13 {
13
- text-align: right;
14
- margin-top: 18px;
15
- }
16
-
17
- ._author_168r9_13 cite {
18
- font-style: normal;
19
- }
20
-
21
- ._quote_spacer_168r9_1 .img_fluid {
22
- margin-right: 24px;
23
- transform: rotateY(180deg) scaleY(-1);
24
- }
25
-
26
- ._quote_spacer_168r9_1 .flex_row {
27
- align-items: flex-start;
28
- }
29
-
30
- ._quote_168r9_1 p {
31
- font-size: clamp(1.22rem, 0.92vw + 1rem, 1.74rem);
32
- font-style: italic;
33
- line-height: 1.2;
34
- }
35
-
36
- @media (max-width: 768px) {
37
- ._quote_spacer_168r9_1 .img_fluid {
38
- max-width: 30px;
39
- margin-right: 12px;
40
- }
41
- ._author_168r9_13 {
42
- margin-top: 14px;
43
- }
44
- ._quote_168r9_1 p {
45
- font-size: 18px;
46
- }
47
- ._author_168r9_13 cite {
48
- font-size: 14px;
49
- }
50
- }
51
-
52
- @media (max-width: 500px) {
53
- ._author_168r9_13 {
54
- margin-top: 12px;
55
- }
56
- }
57
-
58
- @media (min-width: 604px) {
59
- ._quote_spacer_168r9_1 {
60
- width: min(calc(100% - 2rem), 792px);
61
- }
62
- }
63
-
64
- @media (min-width: 1023px) {
65
- ._quote_168r9_1 p {
66
- font-weight: 700;
67
- }
68
- }
1
+ ._quote_spacer_53yiw_1 {
2
+ line-height: 1.35;
3
+ margin-block: clamp(1.88rem, 1.99vw + 1.41rem, 3rem);
4
+ margin-inline: auto;
5
+ }
6
+
7
+ ._author_53yiw_7,
8
+ ._quote_53yiw_1 {
9
+ color: #1f1f1f;
10
+ }
11
+
12
+ ._author_53yiw_7 {
13
+ text-align: right;
14
+ margin-top: 18px;
15
+ }
16
+
17
+ ._author_53yiw_7 cite {
18
+ font-style: normal;
19
+ }
20
+
21
+ ._quote_spacer_53yiw_1 .img_fluid {
22
+ margin-right: 24px;
23
+ transform: rotateY(180deg) scaleY(-1);
24
+ }
25
+
26
+ ._quote_spacer_53yiw_1 .flex_row {
27
+ align-items: flex-start;
28
+ }
29
+
30
+ ._quote_53yiw_1 p {
31
+ font-size: clamp(1.22rem, 0.92vw + 1rem, 1.74rem);
32
+ font-style: italic;
33
+ line-height: 1.2;
34
+ }
35
+
36
+ @media (max-width: 768px) {
37
+ ._quote_spacer_53yiw_1 .img_fluid {
38
+ max-width: 30px;
39
+ margin-right: 12px;
40
+ }
41
+ ._author_53yiw_7 {
42
+ margin-top: 14px;
43
+ }
44
+ ._quote_53yiw_1 p {
45
+ font-size: 18px;
46
+ }
47
+ ._author_53yiw_7 cite {
48
+ font-size: 14px;
49
+ }
50
+ }
51
+
52
+ @media (max-width: 500px) {
53
+ ._author_53yiw_7 {
54
+ margin-top: 12px;
55
+ }
56
+ }
57
+
58
+ @media (min-width: 604px) {
59
+ ._quote_spacer_53yiw_1 {
60
+ width: min(calc(100% - 2rem), 792px);
61
+ }
62
+ }
63
+
64
+ @media (min-width: 1023px) {
65
+ ._quote_53yiw_1 p {
66
+ font-weight: 700;
67
+ }
68
+ }
@@ -1,3 +1,13 @@
1
+ @keyframes _11b2y8zo {
2
+ 0% {
3
+ opacity: 0;
4
+ transform: translateY(-10px);
5
+ }
6
+ 100% {
7
+ opacity: 1;
8
+ transform: translateY(0);
9
+ }
10
+ }
1
11
  ._11b2y8z0 {
2
12
  position: relative;
3
13
  }
@@ -8,11 +18,24 @@
8
18
  background: #fff;
9
19
  color: #1e3860;
10
20
  }
21
+ ._11b2y8z0 th {
22
+ background: #fff !important;
23
+ color: #1e3860;
24
+ }
25
+ ._11b2y8z0 ._1nivbwet {
26
+ overflow-x: hidden;
27
+ }
28
+ ._11b2y8z0 tbody tr:first-child td:first-child {
29
+ border-radius: 1rem 0 0 1rem !important;
30
+ }
31
+ ._11b2y8z0 tbody tr:first-child td:last-child {
32
+ border-radius: 0 1rem 1rem 0 !important;
33
+ }
11
34
  ._11b2y8z0 ._1nivbwet ._1nivbwe12 tr:nth-child(even) td {
12
35
  background: #fff;
13
36
  }
14
37
  ._11b2y8z0 > .containment {
15
- padding: 84px 82px 100px;
38
+ padding: 56px;
16
39
  background: #def4ff;
17
40
  border-radius: 1rem;
18
41
  }
@@ -131,12 +154,18 @@
131
154
  margin-top: 2rem;
132
155
  gap: 3rem;
133
156
  }
157
+ ._11b2y8zp {
158
+ animation: _11b2y8zo 0.5s ease-out forwards;
159
+ }
160
+ ._11b2y8zq {
161
+ animation: _11b2y8zo 0.5s ease-out 0.15s forwards;
162
+ opacity: 0;
163
+ }
134
164
  @media screen and (max-width: 1023px) {
135
165
  ._11b2y8z0 > .containment {
136
166
  max-width: 100%;
137
167
  width: 100%;
138
168
  border-radius: 0;
139
- padding: 84px 28px 100px;
140
169
  }
141
170
  ._11b2y8z1 {
142
171
  padding: 32px 24px;
@@ -159,6 +188,15 @@
159
188
  }
160
189
  }
161
190
  @media screen and (max-width: 768px) {
191
+ ._11b2y8z0 ._1nivbwet {
192
+ margin-top: 0px !important;
193
+ }
194
+ ._11b2y8z0 tbody tr:first-child td:first-child {
195
+ border-radius: 0px !important;
196
+ }
197
+ ._11b2y8z0 tbody tr:first-child td:last-child {
198
+ border-radius: 0px !important;
199
+ }
162
200
  ._11b2y8z0 ._1nivbwet ._1nivbwe12 tr:nth-child(even) td {
163
201
  background: var(--_1073cm88);
164
202
  }
package/package.json CHANGED
@@ -1,135 +1,135 @@
1
- {
2
- "name": "@axos-web-dev/shared-components",
3
- "description": "Axos shared components library for web.",
4
- "version": "1.0.77-patch.53",
5
- "type": "module",
6
- "module": "dist/main.js",
7
- "types": "dist/main.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "sideEffects": [
12
- "dist/assets/**/*.css"
13
- ],
14
- "scripts": {
15
- "dev": "vite",
16
- "build": "tsc --p ./tsconfig.build.json && vite build",
17
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
- "preview": "vite preview",
19
- "prepublishOnly": "npm run build",
20
- "check-types": "tsc --pretty --noEmit",
21
- "check-format": "prettier --check .",
22
- "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
- "format": "prettier --write .",
24
- "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
- "prepare": "husky",
26
- "storybook": "storybook dev -p 6006",
27
- "build-storybook": "storybook build",
28
- "npm:link": "npm run build && npm link"
29
- },
30
- "dependencies": {
31
- "@headlessui/react": "^2.2.0",
32
- "@hookform/resolvers": "^3.10.0",
33
- "@next-safe-action/adapter-react-hook-form": "^2.0.0",
34
- "@react-input/mask": "^1.2.15",
35
- "@react-input/number-format": "^1.1.3",
36
- "@storybook/icons": "^1.3.0",
37
- "@storybook/preview-api": "^8.4.7",
38
- "@types/iframe-resizer": "3.5.13",
39
- "@ujet/websdk-headless": "^3.41.4",
40
- "@vanilla-extract/css": "^1.16.1",
41
- "@vanilla-extract/recipes": "^0.5.1",
42
- "antd": "^5.22.5",
43
- "clsx": "^2.1.1",
44
- "framer-motion": "^12.9.2",
45
- "iframe-resizer": "^3.6.6",
46
- "lodash": "^4.17.21",
47
- "moment": "^2.30.1",
48
- "next-safe-action": "^8.0.2",
49
- "react-date-picker": "^11.0.0",
50
- "react-date-range": "^2.0.1",
51
- "react-hook-form": "^7.54.2",
52
- "react-markdown": "^9.0.1",
53
- "react-popper": "^2.3.0",
54
- "react-slick": "^0.30.2",
55
- "react-use": "^17.6.0",
56
- "react-wrap-balancer": "^1.1.1",
57
- "remark-gfm": "^4.0.1",
58
- "rsuite": "^5.75.0",
59
- "slick-carousel": "^1.8.1",
60
- "typed-css-modules": "^0.9.1",
61
- "vite-plugin-svgr": "^4.3.0",
62
- "zod": "^3.24.1",
63
- "zustand": "^4.5.5"
64
- },
65
- "peerDependencies": {
66
- "@vanilla-extract/css-utils": "^0.1.3",
67
- "@vanilla-extract/recipes": "^0.5.1",
68
- "@vanilla-extract/vite-plugin": "^4.0.3",
69
- "next": "^14.1.4",
70
- "react": "^18.2.0",
71
- "react-date-range": "^2.0.1",
72
- "react-dom": "^18.2.0",
73
- "react-popper": "^2.3.0",
74
- "react-slick": "^0.30.2",
75
- "slick-carousel": "^1.8.1"
76
- },
77
- "devDependencies": {
78
- "@chromatic-com/storybook": "^1.9.0",
79
- "@rollup/plugin-alias": "^5.1.1",
80
- "@storybook/addon-essentials": "^8.4.7",
81
- "@storybook/addon-interactions": "^8.4.7",
82
- "@storybook/addon-links": "^8.4.7",
83
- "@storybook/addon-mdx-gfm": "^8.4.7",
84
- "@storybook/addon-onboarding": "^8.4.7",
85
- "@storybook/addon-themes": "^8.4.7",
86
- "@storybook/blocks": "^8.4.7",
87
- "@storybook/react": "^8.6.14",
88
- "@storybook/react-vite": "^8.4.7",
89
- "@storybook/test": "^8.6.14",
90
- "@svgr/core": "^8.1.0",
91
- "@svgr/plugin-prettier": "^8.1.0",
92
- "@svgr/plugin-svgo": "^8.1.0",
93
- "@types/lodash": "^4.17.17",
94
- "@types/node": "^20.19.0",
95
- "@types/react": "^18.3.23",
96
- "@types/react-date-range": "^1.4.9",
97
- "@types/react-datepicker": "^6.2.0",
98
- "@types/react-dom": "^18.3.7",
99
- "@types/react-slick": "^0.23.13",
100
- "@typescript-eslint/eslint-plugin": "^7.18.0",
101
- "@typescript-eslint/parser": "^7.18.0",
102
- "@vanilla-extract/css-utils": "^0.1.4",
103
- "@vanilla-extract/recipes": "^0.5.5",
104
- "@vanilla-extract/vite-plugin": "^4.0.18",
105
- "@vitejs/plugin-react-swc": "^3.7.2",
106
- "esbuild-vanilla-image-loader": "^0.1.3",
107
- "eslint": "^8.57.1",
108
- "eslint-plugin-react-hooks": "^4.6.2",
109
- "eslint-plugin-react-refresh": "^0.4.16",
110
- "eslint-plugin-storybook": "^0.8.0",
111
- "glob": "^10.4.5",
112
- "husky": "^9.1.7",
113
- "next": "^14.1.4",
114
- "prettier": "3.2.5",
115
- "react": "^18.3.1",
116
- "react-dom": "^18.3.1",
117
- "rollup-plugin-preserve-directives": "^0.4.0",
118
- "rollup-plugin-svg-import": "^3.0.0",
119
- "rollup-plugin-svgo": "^2.0.0",
120
- "storybook": "^8.4.7",
121
- "typescript": "^5.7.2",
122
- "typescript-plugin-css-modules": "^5.1.0",
123
- "vite": "^5.4.11",
124
- "vite-plugin-dts": "^3.9.1",
125
- "vite-plugin-lib-inject-css": "^2.1.1",
126
- "vite-plugin-setting-css-module": "^1.1.4",
127
- "vite-tsconfig-paths": "^4.3.2"
128
- },
129
- "main": "index.js",
130
- "directories": {
131
- "lib": "lib"
132
- },
133
- "author": "axos-web-dev",
134
- "license": "ISC"
135
- }
1
+ {
2
+ "name": "@axos-web-dev/shared-components",
3
+ "description": "Axos shared components library for web.",
4
+ "version": "1.0.77-patch.55",
5
+ "type": "module",
6
+ "module": "dist/main.js",
7
+ "types": "dist/main.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "sideEffects": [
12
+ "dist/assets/**/*.css"
13
+ ],
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "build": "tsc --p ./tsconfig.build.json && vite build",
17
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
+ "preview": "vite preview",
19
+ "prepublishOnly": "npm run build",
20
+ "check-types": "tsc --pretty --noEmit",
21
+ "check-format": "prettier --check .",
22
+ "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
+ "format": "prettier --write .",
24
+ "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
+ "prepare": "husky",
26
+ "storybook": "storybook dev -p 6006",
27
+ "build-storybook": "storybook build",
28
+ "npm:link": "npm run build && npm link"
29
+ },
30
+ "dependencies": {
31
+ "@headlessui/react": "^2.2.0",
32
+ "@hookform/resolvers": "^3.10.0",
33
+ "@next-safe-action/adapter-react-hook-form": "^2.0.0",
34
+ "@react-input/mask": "^1.2.15",
35
+ "@react-input/number-format": "^1.1.3",
36
+ "@storybook/icons": "^1.3.0",
37
+ "@storybook/preview-api": "^8.4.7",
38
+ "@types/iframe-resizer": "3.5.13",
39
+ "@ujet/websdk-headless": "^3.41.4",
40
+ "@vanilla-extract/css": "^1.16.1",
41
+ "@vanilla-extract/recipes": "^0.5.1",
42
+ "antd": "^5.22.5",
43
+ "clsx": "^2.1.1",
44
+ "framer-motion": "^12.9.2",
45
+ "iframe-resizer": "^3.6.6",
46
+ "lodash": "^4.17.21",
47
+ "moment": "^2.30.1",
48
+ "next-safe-action": "^8.0.2",
49
+ "react-date-picker": "^11.0.0",
50
+ "react-date-range": "^2.0.1",
51
+ "react-hook-form": "^7.54.2",
52
+ "react-markdown": "^9.0.1",
53
+ "react-popper": "^2.3.0",
54
+ "react-slick": "^0.30.2",
55
+ "react-use": "^17.6.0",
56
+ "react-wrap-balancer": "^1.1.1",
57
+ "remark-gfm": "^4.0.1",
58
+ "rsuite": "^5.75.0",
59
+ "slick-carousel": "^1.8.1",
60
+ "typed-css-modules": "^0.9.1",
61
+ "vite-plugin-svgr": "^4.3.0",
62
+ "zod": "^3.24.1",
63
+ "zustand": "^4.5.5"
64
+ },
65
+ "peerDependencies": {
66
+ "@vanilla-extract/css-utils": "^0.1.3",
67
+ "@vanilla-extract/recipes": "^0.5.1",
68
+ "@vanilla-extract/vite-plugin": "^4.0.3",
69
+ "next": "^14.1.4",
70
+ "react": "^18.2.0",
71
+ "react-date-range": "^2.0.1",
72
+ "react-dom": "^18.2.0",
73
+ "react-popper": "^2.3.0",
74
+ "react-slick": "^0.30.2",
75
+ "slick-carousel": "^1.8.1"
76
+ },
77
+ "devDependencies": {
78
+ "@chromatic-com/storybook": "^1.9.0",
79
+ "@rollup/plugin-alias": "^5.1.1",
80
+ "@storybook/addon-essentials": "^8.4.7",
81
+ "@storybook/addon-interactions": "^8.4.7",
82
+ "@storybook/addon-links": "^8.4.7",
83
+ "@storybook/addon-mdx-gfm": "^8.4.7",
84
+ "@storybook/addon-onboarding": "^8.4.7",
85
+ "@storybook/addon-themes": "^8.4.7",
86
+ "@storybook/blocks": "^8.4.7",
87
+ "@storybook/react": "^8.6.14",
88
+ "@storybook/react-vite": "^8.4.7",
89
+ "@storybook/test": "^8.6.14",
90
+ "@svgr/core": "^8.1.0",
91
+ "@svgr/plugin-prettier": "^8.1.0",
92
+ "@svgr/plugin-svgo": "^8.1.0",
93
+ "@types/lodash": "^4.17.17",
94
+ "@types/node": "^20.19.0",
95
+ "@types/react": "^18.3.23",
96
+ "@types/react-date-range": "^1.4.9",
97
+ "@types/react-datepicker": "^6.2.0",
98
+ "@types/react-dom": "^18.3.7",
99
+ "@types/react-slick": "^0.23.13",
100
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
101
+ "@typescript-eslint/parser": "^7.18.0",
102
+ "@vanilla-extract/css-utils": "^0.1.4",
103
+ "@vanilla-extract/recipes": "^0.5.5",
104
+ "@vanilla-extract/vite-plugin": "^4.0.18",
105
+ "@vitejs/plugin-react-swc": "^3.7.2",
106
+ "esbuild-vanilla-image-loader": "^0.1.3",
107
+ "eslint": "^8.57.1",
108
+ "eslint-plugin-react-hooks": "^4.6.2",
109
+ "eslint-plugin-react-refresh": "^0.4.16",
110
+ "eslint-plugin-storybook": "^0.8.0",
111
+ "glob": "^10.4.5",
112
+ "husky": "^9.1.7",
113
+ "next": "^14.1.4",
114
+ "prettier": "3.2.5",
115
+ "react": "^18.3.1",
116
+ "react-dom": "^18.3.1",
117
+ "rollup-plugin-preserve-directives": "^0.4.0",
118
+ "rollup-plugin-svg-import": "^3.0.0",
119
+ "rollup-plugin-svgo": "^2.0.0",
120
+ "storybook": "^8.4.7",
121
+ "typescript": "^5.7.2",
122
+ "typescript-plugin-css-modules": "^5.1.0",
123
+ "vite": "^5.4.11",
124
+ "vite-plugin-dts": "^3.9.1",
125
+ "vite-plugin-lib-inject-css": "^2.1.1",
126
+ "vite-plugin-setting-css-module": "^1.1.4",
127
+ "vite-tsconfig-paths": "^4.3.2"
128
+ },
129
+ "main": "index.js",
130
+ "directories": {
131
+ "lib": "lib"
132
+ },
133
+ "author": "axos-web-dev",
134
+ "license": "ISC"
135
+ }