@axos-web-dev/shared-components 1.0.100-dev.10 → 1.0.100-dev.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.
@@ -19,8 +19,11 @@ export type BuyDownCalculatorInputs = {
19
19
  fullTimeCharter: boolean;
20
20
  mooringOutsideContinentalUS: boolean;
21
21
  operatingAccount: boolean;
22
- ltvAbove60: boolean;
23
22
  floorplanDealerIncentive: boolean;
24
23
  dealerCommercialDeposit: boolean;
24
+ vesselOver15Years: boolean;
25
+ highPerformanceBoats: boolean;
26
+ retailCheckingAccount: boolean;
27
+ electricMotorHybrid: boolean;
25
28
  };
26
29
  export declare const BuyDownCalculator: FC<BuyDownCalculatorProps>;
@@ -16,14 +16,14 @@ import "../../Input/InputAmount.js";
16
16
  import "../../Input/InputPhone.js";
17
17
  import "../../Input/InputTextArea.js";
18
18
  import "../../Input/DownPaymentInput.js";
19
- import { RadioButtonSet, RadioButton } from "../../Input/RadioButton.js";
19
+ import "../../Input/RadioButton.js";
20
20
  import { PercentageInput } from "../../Input/PercentageInput.js";
21
21
  import "../../utils/allowedAxosDomains.js";
22
22
  import { getVariant } from "../../utils/getVariant.js";
23
23
  import clsx from "clsx";
24
24
  import { useForm, FormProvider } from "react-hook-form";
25
25
  import { z } from "zod";
26
- import { calc_container, calculator_section, section_header, theme_header, mt_8, buydown_calculator_form, row_form, limit_one, calculate_row, form_wrapper, form_disclosure } from "./BuyDownCalculator.css.js";
26
+ import { calc_container, calculator_section, section_header, theme_header, mt_8, buydown_calculator_form, row_form, calculate_row, form_wrapper, form_disclosure } from "./BuyDownCalculator.css.js";
27
27
  const BuyDownCalculator = ({
28
28
  header,
29
29
  body,
@@ -45,12 +45,12 @@ const BuyDownCalculator = ({
45
45
  const [dealerContributionAmount, setDealerContributionAmount] = useState("");
46
46
  const [enableFullTimeCharter, setEnableFullTimeCharter] = useState(false);
47
47
  const [disableMooringOutside, setDisableMooringOutside] = useState(false);
48
- const [disableLTVAbove60, setDisableLTVAbove60] = useState(true);
49
48
  const [isDealerContributionDisabled, setIsDealerContributionDisabled] = useState(false);
50
49
  const [
51
50
  isManufacturerContributionDisabled,
52
51
  setIsManufacturerContributionDisabled
53
52
  ] = useState(false);
53
+ const [ltvDiscountApplied, setLtvDiscountApplied] = useState(false);
54
54
  const schema = z.object({
55
55
  purchasePrice: z.string().min(1, { message: "Loan amount is required." }).transform((val) => {
56
56
  return formatToNumber(val);
@@ -111,7 +111,6 @@ const BuyDownCalculator = ({
111
111
  if (purchasePrice && downpayment) {
112
112
  const financedAmount2 = purchasePrice - downpayment;
113
113
  const range = getRange(financedAmount2);
114
- const disableLTV = checkLTVStatus(downpayment, purchasePrice);
115
114
  if (financedAmount2 < 0) {
116
115
  ctx.addIssue({
117
116
  code: z.ZodIssueCode.custom,
@@ -123,11 +122,6 @@ const BuyDownCalculator = ({
123
122
  const loanRange2 = getRange(financedAmount2, program);
124
123
  setLoanRange(loanRange2);
125
124
  }
126
- if (!disableLTV) {
127
- setDisableLTVAbove60(false);
128
- } else {
129
- setDisableLTVAbove60(true);
130
- }
131
125
  }
132
126
  if (updateFicoRequirements(range, program) === false) {
133
127
  ctx.addIssue({
@@ -166,7 +160,6 @@ const BuyDownCalculator = ({
166
160
  }
167
161
  }, [watchedFields]);
168
162
  const calculator_variant = getVariant(variant);
169
- const enableDependentInputs = enableFullTimeCharter;
170
163
  const formatToNumber = (value) => {
171
164
  const cleanValue = value.replace(/[%$, ]/gi, "");
172
165
  return parseFloat(cleanValue);
@@ -189,7 +182,7 @@ const BuyDownCalculator = ({
189
182
  const percentage = downpayment / purchasePrice * 100;
190
183
  const loanToValue2 = 100 - percentage;
191
184
  if (loanToValue2 <= 60) return false;
192
- else return true;
185
+ return true;
193
186
  };
194
187
  const getRange = (financedAmount2, program, forRates) => {
195
188
  let range = "";
@@ -358,23 +351,34 @@ const BuyDownCalculator = ({
358
351
  }
359
352
  return rate;
360
353
  };
361
- const calculateAdjustments = () => {
354
+ const calculateAdjustments = (purchasePrice, downpayment) => {
362
355
  let total = 0;
363
356
  const checkboxes = document.querySelectorAll(
364
- 'input[type="checkbox"]:checked, input[type="radio"]:checked'
357
+ 'input[type="checkbox"]:checked'
365
358
  );
366
359
  checkboxes.forEach((checkbox) => {
367
360
  total += parseFloat(checkbox.value);
368
361
  });
362
+ if (purchasePrice && downpayment && purchasePrice > 0 && downpayment >= 0) {
363
+ const ltvStatus = checkLTVStatus(downpayment, purchasePrice);
364
+ if (!ltvStatus) {
365
+ total += -0.35;
366
+ setLtvDiscountApplied(true);
367
+ } else {
368
+ setLtvDiscountApplied(false);
369
+ }
370
+ } else {
371
+ setLtvDiscountApplied(false);
372
+ }
369
373
  return total;
370
374
  };
371
- const calculateRates = (program, fico, financedAmount2, buydownRate) => {
375
+ const calculateRates = (program, fico, financedAmount2, buydownRate, purchasePrice, downpayment) => {
372
376
  const minRate = 6.94;
373
377
  const loanRange2 = getRange(financedAmount2, program, true);
374
378
  const startingRate = parseFloat(
375
379
  getInterestRate(program, fico, loanRange2).replace(/[%,]/g, "")
376
380
  );
377
- const rateAdjustments = calculateAdjustments();
381
+ const rateAdjustments = calculateAdjustments(purchasePrice, downpayment);
378
382
  const adjustedRate = startingRate + rateAdjustments;
379
383
  const finalNoteRateValue = Math.max(minRate, adjustedRate);
380
384
  const finalNoteRate2 = formatToPercentage(finalNoteRateValue);
@@ -469,13 +473,19 @@ const BuyDownCalculator = ({
469
473
  setManuContributionPercentage(percentage);
470
474
  return manufacturerContribution;
471
475
  };
472
- const calculateDealerContributionAmount = (dealerContribution, totalBuydownCost2) => {
473
- const dealerContributionValue = totalBuydownCost2 * (dealerContribution / 100);
476
+ const calculateDealerContributionAmount = (dealerContribution, manufacturerContributionAmount, totalBuydownCost2) => {
477
+ let dealerContributionValue;
478
+ if (dealerContribution > 0) {
479
+ dealerContributionValue = totalBuydownCost2 * (dealerContribution / 100);
480
+ } else {
481
+ dealerContributionValue = totalBuydownCost2 - manufacturerContributionAmount;
482
+ }
474
483
  const formattedAmount = formatToCurrency(dealerContributionValue);
475
484
  setDealerContributionAmount(formattedAmount);
476
485
  };
477
486
  const onSubmit = (data) => {
478
487
  if (isValid) {
488
+ setLtvDiscountApplied(false);
479
489
  const {
480
490
  buydownRate,
481
491
  buydownTerm,
@@ -495,7 +505,9 @@ const BuyDownCalculator = ({
495
505
  program,
496
506
  fico,
497
507
  financedAmountValue,
498
- buydownRate
508
+ buydownRate,
509
+ purchasePrice,
510
+ downpayment
499
511
  );
500
512
  const buydownPayment2 = calculateBuydownPayment(
501
513
  buydownRate,
@@ -517,7 +529,11 @@ const BuyDownCalculator = ({
517
529
  manufacturerContributionAmount,
518
530
  totalBuydownCost2
519
531
  );
520
- calculateDealerContributionAmount(dealerContribution, totalBuydownCost2);
532
+ calculateDealerContributionAmount(
533
+ dealerContribution,
534
+ manufacturerContributionAmount,
535
+ totalBuydownCost2
536
+ );
521
537
  }
522
538
  };
523
539
  return /* @__PURE__ */ jsxs("section", { className: `${calc_container({ variant: calculator_variant })}`, children: [
@@ -689,7 +705,7 @@ const BuyDownCalculator = ({
689
705
  required: true,
690
706
  deps: ["program"]
691
707
  }),
692
- label: "Buydown Term (1-5 Years)",
708
+ label: "Buydown Term",
693
709
  sizes: "medium",
694
710
  required: true,
695
711
  error: !!errors.buydownTerm,
@@ -700,56 +716,57 @@ const BuyDownCalculator = ({
700
716
  children: BuydownTerm.map((item) => /* @__PURE__ */ jsx("option", { value: item.value, children: item.text }, item.value))
701
717
  }
702
718
  ) }) }),
703
- /* @__PURE__ */ jsx("div", { className: `${row_form}`, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("label", { children: "Loan Level Rate Adjustments" }) }) }),
719
+ /* @__PURE__ */ jsx("div", { className: `${row_form}`, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("label", { children: "Loan Level Rate Adjustments. Rate Adjustments are subject to change, are limited, and restricted by floor rate." }) }) }),
704
720
  /* @__PURE__ */ jsxs("div", { className: `${row_form}`, children: [
705
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", { className: row_form, children: /* @__PURE__ */ jsxs(
706
- RadioButtonSet,
707
- {
708
- id: "dependentInputs",
709
- label: "Limit One",
710
- sizes: "medium",
711
- variant,
712
- direction: "column",
713
- disabled: !enableDependentInputs,
714
- className: limit_one,
715
- children: [
716
- /* @__PURE__ */ jsx(
717
- RadioButton,
718
- {
719
- id: "mooringOutsideContinentalUS",
720
- ...register("mooringOutsideContinentalUS"),
721
- value: 0.5,
722
- radioText: "Mooring Outside Continental U.S. (Includes Puerto Rico,\n Hawaii, and Alaska) (Does not apply to Full Time Charter)\n +0.500",
723
- groupName: "dependentInputs",
724
- disabled: disableMooringOutside
725
- }
726
- ),
727
- /* @__PURE__ */ jsx(
728
- RadioButton,
729
- {
730
- id: "operatingAccount",
731
- ...register("operatingAccount"),
732
- value: -0.25,
733
- radioText: "Open and fund an LLC Operating Account with Axos - 0.25",
734
- groupName: "dependentInputs"
735
- }
736
- )
737
- ]
738
- }
739
- ) }) }),
740
721
  /* @__PURE__ */ jsxs("div", { children: [
741
- /* @__PURE__ */ jsx("div", { className: row_form, children: /* @__PURE__ */ jsx(
722
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
723
+ Checkbox,
724
+ {
725
+ id: "mooringOutsideContinentalUS",
726
+ ...register("mooringOutsideContinentalUS"),
727
+ sizes: "medium",
728
+ variant: calculator_variant,
729
+ value: 0.5,
730
+ disabled: !enableFullTimeCharter || disableMooringOutside,
731
+ children: "Mooring Outside Continental U.S. (Includes Puerto Rico, Hawaii, and Alaska) (Does not apply to Full Time Charter) +0.500"
732
+ }
733
+ ) }),
734
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
735
+ Checkbox,
736
+ {
737
+ id: "operatingAccount",
738
+ ...register("operatingAccount"),
739
+ sizes: "medium",
740
+ variant: calculator_variant,
741
+ value: -0.25,
742
+ disabled: !enableFullTimeCharter,
743
+ children: "Open and fund an LLC Operating Account with Axos - 0.25"
744
+ }
745
+ ) }),
746
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
742
747
  Checkbox,
743
748
  {
744
- id: "ltvAbove60",
745
- ...register("ltvAbove60"),
749
+ id: "vesselOver15Years",
750
+ ...register("vesselOver15Years"),
746
751
  sizes: "medium",
747
- variant,
748
- value: -0.35,
749
- disabled: disableLTVAbove60,
750
- children: "LTV ≤ 60% (If not required by program) -0.350"
752
+ variant: calculator_variant,
753
+ value: 1.25,
754
+ children: "Vessel > 15 Years +1.250"
751
755
  }
752
756
  ) }),
757
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
758
+ Checkbox,
759
+ {
760
+ id: "highPerformanceBoats",
761
+ ...register("highPerformanceBoats"),
762
+ sizes: "medium",
763
+ variant: calculator_variant,
764
+ value: 0.5,
765
+ children: "High Performance Boats (>4 Engines) +0.500"
766
+ }
767
+ ) })
768
+ ] }),
769
+ /* @__PURE__ */ jsxs("div", { children: [
753
770
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
754
771
  Checkbox,
755
772
  {
@@ -758,7 +775,29 @@ const BuyDownCalculator = ({
758
775
  sizes: "medium",
759
776
  variant: calculator_variant,
760
777
  value: -0.125,
761
- children: "Floorplan dealer incentive -0.125"
778
+ children: "Floor Plan Dealer Incentive -0.125"
779
+ }
780
+ ) }),
781
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
782
+ Checkbox,
783
+ {
784
+ id: "retailCheckingAccount",
785
+ ...register("retailCheckingAccount"),
786
+ sizes: "medium",
787
+ variant: calculator_variant,
788
+ value: -0.125,
789
+ children: "Retail Checking Account w/ACH and Minimum of 3 Months P&I Balance -0.125"
790
+ }
791
+ ) }),
792
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
793
+ Checkbox,
794
+ {
795
+ id: "electricMotorHybrid",
796
+ ...register("electricMotorHybrid"),
797
+ sizes: "medium",
798
+ variant: calculator_variant,
799
+ value: -0.25,
800
+ children: "100% Electric Motor / Hybrid -0.250"
762
801
  }
763
802
  ) }),
764
803
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
@@ -853,7 +892,8 @@ const BuyDownCalculator = ({
853
892
  label: "Final Note Rate",
854
893
  disabled: true,
855
894
  variant: calculator_variant,
856
- value: finalNoteRate
895
+ value: finalNoteRate,
896
+ helperText: ltvDiscountApplied && "LTV discount applied"
857
897
  }
858
898
  ) })
859
899
  ] }),
@@ -874,7 +914,7 @@ const BuyDownCalculator = ({
874
914
  {
875
915
  id: "buydownPayment",
876
916
  sizes: "medium",
877
- label: "Buydown Payment",
917
+ label: "Monthly payment WITH buydown",
878
918
  disabled: true,
879
919
  variant: calculator_variant,
880
920
  value: buydownPayment
@@ -887,7 +927,7 @@ const BuyDownCalculator = ({
887
927
  {
888
928
  id: "nonBuydownPayment",
889
929
  sizes: "medium",
890
- label: "Non-buydown Payment",
930
+ label: "Monthly Payment WITHOUT buydown",
891
931
  disabled: true,
892
932
  variant: calculator_variant,
893
933
  value: nonBuydownPayment
@@ -8,7 +8,6 @@ interface UseHeadlessChatOptions {
8
8
  channelId?: string;
9
9
  projectId?: "axos" | "" | "ufb" | string;
10
10
  debug?: boolean;
11
- menuOption?: string;
12
11
  }
13
12
  export interface ChatMessage {
14
13
  id: string;
@@ -16,7 +15,7 @@ export interface ChatMessage {
16
15
  sender?: string;
17
16
  timestamp?: string;
18
17
  }
19
- export declare function useHeadlessChat({ companyId, tenant, host, getToken, projectId, debug, menuOption, }: UseHeadlessChatOptions): {
18
+ export declare function useHeadlessChat({ companyId, tenant, host, getToken, projectId, debug, }: UseHeadlessChatOptions): {
20
19
  status: "error" | "idle" | "connected" | "connecting" | "finished";
21
20
  sendMessage: (body: string) => Promise<void>;
22
21
  showReconnect: boolean;
@@ -12,8 +12,7 @@ function useHeadlessChat({
12
12
  host,
13
13
  getToken,
14
14
  projectId = "axos",
15
- debug = false,
16
- menuOption = "Support Virtual Agent"
15
+ debug = false
17
16
  }) {
18
17
  const addMessage = useMessages((state) => state.addMessage);
19
18
  const addMessages = useMessages((state) => state.addMessages);
@@ -34,11 +33,9 @@ function useHeadlessChat({
34
33
  if (chatRef.current) {
35
34
  await clientRef.current?.finishChat();
36
35
  clearMessages();
37
- clientRef.current?.createChat(
38
- menuRef.current.menus.find((menu) => menu.name === menuOption)?.id
39
- );
36
+ clientRef.current?.createChat(menuRef.current.menus[5].id);
40
37
  }
41
- }, [clearMessages, menuOption]);
38
+ }, [clearMessages]);
42
39
  useEffect(() => {
43
40
  let messageHandler;
44
41
  let chatReadyHandler;
@@ -69,11 +66,7 @@ function useHeadlessChat({
69
66
  }
70
67
  menuRef.current = await clientRef.current?.getMenus();
71
68
  if (debug) console.log("channelId:", menuRef.current);
72
- if (debug)
73
- console.log(
74
- "channelId:",
75
- menuRef.current?.menus.find((menu) => menu.name === menuOption)?.id
76
- );
69
+ if (debug) console.log("channelId:", menuRef.current?.menus[5].id);
77
70
  try {
78
71
  chatRef.current = await clientRef.current?.loadOngoingChat();
79
72
  if (chatRef.current != null) {
@@ -87,19 +80,11 @@ function useHeadlessChat({
87
80
  facingBrandId: {
88
81
  label: "facingBrandId",
89
82
  value: brandMap.get(projectId) || 1
90
- },
91
- channel: {
92
- label: "channel",
93
- value: "in_web"
94
- },
95
- user_auth: {
96
- label: "user_auth",
97
- value: false
98
83
  }
99
84
  }
100
85
  };
101
86
  chatRef.current = await clientRef.current?.createChat(
102
- menuRef.current.menus.find((menu) => menu.name === menuOption)?.id,
87
+ menuRef.current.menus[5].id,
103
88
  {
104
89
  custom_data
105
90
  }
@@ -194,8 +179,7 @@ function useHeadlessChat({
194
179
  addMessage,
195
180
  addMessages,
196
181
  debug,
197
- projectId,
198
- menuOption
182
+ projectId
199
183
  ]);
200
184
  return {
201
185
  status,
@@ -431,7 +431,15 @@ const AxosFooterSiteMap = ({
431
431
  /* @__PURE__ */ jsxs("div", { className: ft_col, children: [
432
432
  /* @__PURE__ */ jsx("h2", { className: ft_col_header, children: /* @__PURE__ */ jsx("a", { href: findMoreAxosDomains("{AXOSBANK}/partners"), children: "Partners" }) }),
433
433
  /* @__PURE__ */ jsxs("ul", { children: [
434
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: "https://lavictoirefinance.com/dealers", children: "Marine Dealer Floorplan Finance" }) }),
434
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
435
+ "a",
436
+ {
437
+ href: findMoreAxosDomains(
438
+ "{AXOSBANK}/pages/axos-capital-solutions"
439
+ ),
440
+ children: "Marine Dealer Floorplan Finance"
441
+ }
442
+ ) }),
435
443
  /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
436
444
  "a",
437
445
  {
@@ -877,7 +885,15 @@ const AxosFooterSiteMap = ({
877
885
  )
878
886
  ] }),
879
887
  /* @__PURE__ */ jsxs("ul", { children: [
880
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: "https://lavictoirefinance.com/dealers", children: "Marine Dealer Floorplan Finance" }) }),
888
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
889
+ "a",
890
+ {
891
+ href: findMoreAxosDomains(
892
+ "{AXOSBANK}/pages/axos-capital-solutions"
893
+ ),
894
+ children: "Marine Dealer Floorplan Finance"
895
+ }
896
+ ) }),
881
897
  /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
882
898
  "a",
883
899
  {
@@ -529,7 +529,9 @@ const menuData = {
529
529
  "Leveraged Finance": findMoreAxosDomains(
530
530
  "{AXOSBANK}/commercial/lending/leveraged-finance"
531
531
  ),
532
- "Marine Dealer Floorplan Finance": "https://lavictoirefinance.com/dealers",
532
+ "Marine Dealer Floorplan Finance": findMoreAxosDomains(
533
+ "{AXOSBANK}/pages/axos-capital-solutions"
534
+ ),
533
535
  "Premium Finance": findMoreAxosDomains(
534
536
  "{AXOSBANK}/commercial/lending/premium-finance"
535
537
  )
@@ -545,7 +547,9 @@ const menuData = {
545
547
  },
546
548
  Partners: {
547
549
  "Partners Home": findMoreAxosDomains("{AXOSBANK}/partners"),
548
- "Marine Dealer Floorplan Finance": "https://lavictoirefinance.com/dealers",
550
+ "Marine Dealer Floorplan Finance": findMoreAxosDomains(
551
+ "{AXOSBANK}/pages/axos-capital-solutions"
552
+ ),
549
553
  "Wholesale Lending": {
550
554
  "Wholesale & Correspondent Lending": {
551
555
  "WCPL Home": findMoreAxosDomains(
@@ -557,9 +557,11 @@ function SubNavBar() {
557
557
  children: /* @__PURE__ */ jsx(
558
558
  Link,
559
559
  {
560
- href: `https://lavictoirefinance.com/dealers`,
560
+ href: findMoreAxosDomains(
561
+ "{AXOSBANK}/pages/axos-capital-solutions"
562
+ ),
561
563
  id: "partNav1",
562
- "aria-label": "Press Enter to navigate to the LaVictoire Finance website (www.lavictoirefinance.com). Owned and operated by Axos Bank.",
564
+ "aria-label": "Press Enter to navigate to the axos capital solutions website. Owned and operated by Axos Bank.",
563
565
  children: "Marine Dealer Floorplan Finance"
564
566
  }
565
567
  )
@@ -3004,7 +3006,9 @@ function SubNavBar() {
3004
3006
  /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
3005
3007
  Link,
3006
3008
  {
3007
- href: `https://lavictoirefinance.com/dealers`,
3009
+ href: findMoreAxosDomains(
3010
+ "{AXOSBANK}/pages/axos-capital-solutions"
3011
+ ),
3008
3012
  children: "Marine Dealer Floorplan Finance"
3009
3013
  }
3010
3014
  ) }),
@@ -539,6 +539,13 @@ function NavBar({
539
539
  className: `${styles.signin_subheader} ${signin_subheader}`,
540
540
  children: /* @__PURE__ */ jsx("a", { href: findMoreAxosDomains("{ARMS}"), children: "Advisor Login" })
541
541
  }
542
+ ),
543
+ /* @__PURE__ */ jsx(
544
+ "li",
545
+ {
546
+ className: `${styles.signin_subheader} ${signin_subheader}`,
547
+ children: /* @__PURE__ */ jsx("a", { href: "https://lv.accesscompass.com/web/control", children: "Marine Dealer Finance" })
548
+ }
542
549
  )
543
550
  ] })
544
551
  ] }),
@@ -61,7 +61,7 @@ export declare const TableCell: ({ children, as, variant, highlighted, colSpan,
61
61
  is?: string | undefined;
62
62
  exportparts?: string | undefined;
63
63
  part?: string | undefined;
64
- popover?: "" | "auto" | "manual" | "hint" | undefined;
64
+ popover?: "" | "auto" | "manual" | undefined;
65
65
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
66
66
  popoverTarget?: string | undefined;
67
67
  onToggle?: import('react').ToggleEventHandler<HTMLTableCellElement> | undefined;
@@ -1,6 +1,6 @@
1
- import '../assets/WalnutIframe/wrapper.css.css';const wrapper = "_wrapper_13j22_10";
2
- const shimmer = "_shimmer_13j22_1";
3
- const wrapper_control = "_wrapper_control_13j22_39";
1
+ import '../assets/WalnutIframe/wrapper.css.css';const wrapper = "_wrapper_1jpv7_19";
2
+ const shimmer = "_shimmer_1jpv7_1";
3
+ const wrapper_control = "_wrapper_control_1jpv7_77";
4
4
  const css = {
5
5
  wrapper,
6
6
  shimmer,
@@ -1,49 +1,49 @@
1
- @keyframes _shimmer_13j22_1 {
2
- from {
3
- transform: translateX(-100%);
4
- }
5
- to {
6
- transform: translateX(100%);
7
- }
8
- }
9
-
10
- ._wrapper_13j22_10 {
11
- background: #1e3860;
12
- border-radius: 8px;
13
- height: 555px;
14
- isolation: isolate;
15
- margin-block: 48px;
16
- }
17
-
18
- section > ._wrapper_13j22_10:first-child {
19
- margin-top: 0 !important;
20
- }
21
-
22
- ._wrapper_13j22_10::before {
23
- content: "";
24
- position: absolute;
25
- top: 0;
26
- left: 0;
27
- width: 190%;
28
- height: 100%;
29
- background: linear-gradient(
30
- 65deg,
31
- rgba(255, 255, 255, 0) 20%,
32
- rgba(255, 255, 255, 0.5) 50%,
33
- rgba(255, 255, 255, 0) 80%
34
- );
35
- animation: _shimmer_13j22_1 1.3s infinite linear;
36
- z-index: -1;
37
- }
38
-
39
- ._wrapper_control_13j22_39 {
40
- height: 100%;
41
- width: 100%;
42
- overflow-x: scroll;
43
- }
44
-
45
- @media (max-width: 1023px) {
46
- ._wrapper_13j22_10 {
47
- display: none;
48
- }
49
- }
1
+ @keyframes _shimmer_1jpv7_1 {
2
+ from {
3
+ transform: translateX(-100%);
4
+ }
5
+ to {
6
+ transform: translateX(100%);
7
+ }
8
+ }
9
+
10
+ ._wrapper_1jpv7_19 {
11
+ background: #1e3860;
12
+ border-radius: 8px;
13
+ height: 555px;
14
+ isolation: isolate;
15
+ margin-block: 48px;
16
+ }
17
+
18
+ section > ._wrapper_1jpv7_19:first-child {
19
+ margin-top: 0 !important;
20
+ }
21
+
22
+ ._wrapper_1jpv7_19::before {
23
+ content: "";
24
+ position: absolute;
25
+ top: 0;
26
+ left: 0;
27
+ width: 190%;
28
+ height: 100%;
29
+ background: linear-gradient(
30
+ 65deg,
31
+ rgba(255, 255, 255, 0) 20%,
32
+ rgba(255, 255, 255, 0.5) 50%,
33
+ rgba(255, 255, 255, 0) 80%
34
+ );
35
+ animation: _shimmer_1jpv7_1 1.3s infinite linear;
36
+ z-index: -1;
37
+ }
38
+
39
+ ._wrapper_control_1jpv7_77 {
40
+ height: 100%;
41
+ width: 100%;
42
+ overflow-x: scroll;
43
+ }
44
+
45
+ @media (max-width: 1023px) {
46
+ ._wrapper_1jpv7_19 {
47
+ display: none;
48
+ }
49
+ }
package/package.json CHANGED
@@ -1,136 +1,136 @@
1
- {
2
- "name": "@axos-web-dev/shared-components",
3
- "description": "Axos shared components library for web.",
4
- "version": "1.0.100-dev.10",
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
- "@ts-stack/markdown": "^1.5.0",
39
- "@types/iframe-resizer": "3.5.13",
40
- "@ujet/websdk-headless": "^3.41.4",
41
- "@vanilla-extract/css": "^1.16.1",
42
- "@vanilla-extract/recipes": "^0.5.1",
43
- "antd": "^5.22.5",
44
- "clsx": "^2.1.1",
45
- "framer-motion": "^12.9.2",
46
- "iframe-resizer": "^3.6.6",
47
- "lodash": "^4.17.21",
48
- "moment": "^2.30.1",
49
- "next-safe-action": "^8.0.2",
50
- "react-date-picker": "^11.0.0",
51
- "react-date-range": "^2.0.1",
52
- "react-hook-form": "^7.54.2",
53
- "react-markdown": "^9.1.0",
54
- "react-popper": "^2.3.0",
55
- "react-slick": "^0.30.2",
56
- "react-use": "^17.6.0",
57
- "react-wrap-balancer": "^1.1.1",
58
- "remark-gfm": "^4.0.1",
59
- "rsuite": "^5.75.0",
60
- "slick-carousel": "^1.8.1",
61
- "typed-css-modules": "^0.9.1",
62
- "vite-plugin-svgr": "^4.3.0",
63
- "zod": "^3.24.1",
64
- "zustand": "^4.5.5"
65
- },
66
- "peerDependencies": {
67
- "@vanilla-extract/css-utils": "^0.1.3",
68
- "@vanilla-extract/recipes": "^0.5.1",
69
- "@vanilla-extract/vite-plugin": "^4.0.3",
70
- "next": "^14.1.4",
71
- "react": "^18.2.0",
72
- "react-date-range": "^2.0.1",
73
- "react-dom": "^18.2.0",
74
- "react-popper": "^2.3.0",
75
- "react-slick": "^0.30.2",
76
- "slick-carousel": "^1.8.1"
77
- },
78
- "devDependencies": {
79
- "@chromatic-com/storybook": "^1.9.0",
80
- "@rollup/plugin-alias": "^5.1.1",
81
- "@storybook/addon-essentials": "^8.4.7",
82
- "@storybook/addon-interactions": "^8.4.7",
83
- "@storybook/addon-links": "^8.4.7",
84
- "@storybook/addon-mdx-gfm": "^8.4.7",
85
- "@storybook/addon-onboarding": "^8.4.7",
86
- "@storybook/addon-themes": "^8.4.7",
87
- "@storybook/blocks": "^8.4.7",
88
- "@storybook/react": "^8.6.14",
89
- "@storybook/react-vite": "^8.4.7",
90
- "@storybook/test": "^8.6.14",
91
- "@svgr/core": "^8.1.0",
92
- "@svgr/plugin-prettier": "^8.1.0",
93
- "@svgr/plugin-svgo": "^8.1.0",
94
- "@types/lodash": "^4.17.17",
95
- "@types/node": "^20.19.0",
96
- "@types/react": "^18.3.23",
97
- "@types/react-date-range": "^1.4.9",
98
- "@types/react-datepicker": "^6.2.0",
99
- "@types/react-dom": "^18.3.7",
100
- "@types/react-slick": "^0.23.13",
101
- "@typescript-eslint/eslint-plugin": "^7.18.0",
102
- "@typescript-eslint/parser": "^7.18.0",
103
- "@vanilla-extract/css-utils": "^0.1.4",
104
- "@vanilla-extract/recipes": "^0.5.5",
105
- "@vanilla-extract/vite-plugin": "^4.0.18",
106
- "@vitejs/plugin-react-swc": "^3.7.2",
107
- "esbuild-vanilla-image-loader": "^0.1.3",
108
- "eslint": "^8.57.1",
109
- "eslint-plugin-react-hooks": "^4.6.2",
110
- "eslint-plugin-react-refresh": "^0.4.16",
111
- "eslint-plugin-storybook": "^0.8.0",
112
- "glob": "^10.4.5",
113
- "husky": "^9.1.7",
114
- "next": "^14.1.4",
115
- "prettier": "3.2.5",
116
- "react": "^18.3.1",
117
- "react-dom": "^18.3.1",
118
- "rollup-plugin-preserve-directives": "^0.4.0",
119
- "rollup-plugin-svg-import": "^3.0.0",
120
- "rollup-plugin-svgo": "^2.0.0",
121
- "storybook": "^8.4.7",
122
- "typescript": "^5.7.2",
123
- "typescript-plugin-css-modules": "^5.1.0",
124
- "vite": "^5.4.11",
125
- "vite-plugin-dts": "^3.9.1",
126
- "vite-plugin-lib-inject-css": "^2.1.1",
127
- "vite-plugin-setting-css-module": "^1.1.4",
128
- "vite-tsconfig-paths": "^4.3.2"
129
- },
130
- "main": "index.js",
131
- "directories": {
132
- "lib": "lib"
133
- },
134
- "author": "axos-web-dev",
135
- "license": "ISC"
136
- }
1
+ {
2
+ "name": "@axos-web-dev/shared-components",
3
+ "description": "Axos shared components library for web.",
4
+ "version": "1.0.100-dev.12",
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
+ "@ts-stack/markdown": "^1.5.0",
39
+ "@types/iframe-resizer": "3.5.13",
40
+ "@ujet/websdk-headless": "^3.41.4",
41
+ "@vanilla-extract/css": "^1.16.1",
42
+ "@vanilla-extract/recipes": "^0.5.1",
43
+ "antd": "^5.22.5",
44
+ "clsx": "^2.1.1",
45
+ "framer-motion": "^12.9.2",
46
+ "iframe-resizer": "^3.6.6",
47
+ "lodash": "^4.17.21",
48
+ "moment": "^2.30.1",
49
+ "next-safe-action": "^8.0.2",
50
+ "react-date-picker": "^11.0.0",
51
+ "react-date-range": "^2.0.1",
52
+ "react-hook-form": "^7.54.2",
53
+ "react-markdown": "^9.1.0",
54
+ "react-popper": "^2.3.0",
55
+ "react-slick": "^0.30.2",
56
+ "react-use": "^17.6.0",
57
+ "react-wrap-balancer": "^1.1.1",
58
+ "remark-gfm": "^4.0.1",
59
+ "rsuite": "^5.75.0",
60
+ "slick-carousel": "^1.8.1",
61
+ "typed-css-modules": "^0.9.1",
62
+ "vite-plugin-svgr": "^4.3.0",
63
+ "zod": "^3.24.1",
64
+ "zustand": "^4.5.5"
65
+ },
66
+ "peerDependencies": {
67
+ "@vanilla-extract/css-utils": "^0.1.3",
68
+ "@vanilla-extract/recipes": "^0.5.1",
69
+ "@vanilla-extract/vite-plugin": "^4.0.3",
70
+ "next": "^14.1.4",
71
+ "react": "^18.2.0",
72
+ "react-date-range": "^2.0.1",
73
+ "react-dom": "^18.2.0",
74
+ "react-popper": "^2.3.0",
75
+ "react-slick": "^0.30.2",
76
+ "slick-carousel": "^1.8.1"
77
+ },
78
+ "devDependencies": {
79
+ "@chromatic-com/storybook": "^1.9.0",
80
+ "@rollup/plugin-alias": "^5.1.1",
81
+ "@storybook/addon-essentials": "^8.4.7",
82
+ "@storybook/addon-interactions": "^8.4.7",
83
+ "@storybook/addon-links": "^8.4.7",
84
+ "@storybook/addon-mdx-gfm": "^8.4.7",
85
+ "@storybook/addon-onboarding": "^8.4.7",
86
+ "@storybook/addon-themes": "^8.4.7",
87
+ "@storybook/blocks": "^8.4.7",
88
+ "@storybook/react": "^8.6.14",
89
+ "@storybook/react-vite": "^8.4.7",
90
+ "@storybook/test": "^8.6.14",
91
+ "@svgr/core": "^8.1.0",
92
+ "@svgr/plugin-prettier": "^8.1.0",
93
+ "@svgr/plugin-svgo": "^8.1.0",
94
+ "@types/lodash": "^4.17.17",
95
+ "@types/node": "^20.19.0",
96
+ "@types/react": "^18.3.23",
97
+ "@types/react-date-range": "^1.4.9",
98
+ "@types/react-datepicker": "^6.2.0",
99
+ "@types/react-dom": "^18.3.7",
100
+ "@types/react-slick": "^0.23.13",
101
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
102
+ "@typescript-eslint/parser": "^7.18.0",
103
+ "@vanilla-extract/css-utils": "^0.1.4",
104
+ "@vanilla-extract/recipes": "^0.5.5",
105
+ "@vanilla-extract/vite-plugin": "^4.0.18",
106
+ "@vitejs/plugin-react-swc": "^3.7.2",
107
+ "esbuild-vanilla-image-loader": "^0.1.3",
108
+ "eslint": "^8.57.1",
109
+ "eslint-plugin-react-hooks": "^4.6.2",
110
+ "eslint-plugin-react-refresh": "^0.4.16",
111
+ "eslint-plugin-storybook": "^0.8.0",
112
+ "glob": "^10.4.5",
113
+ "husky": "^9.1.7",
114
+ "next": "^14.1.4",
115
+ "prettier": "3.2.5",
116
+ "react": "^18.3.1",
117
+ "react-dom": "^18.3.1",
118
+ "rollup-plugin-preserve-directives": "^0.4.0",
119
+ "rollup-plugin-svg-import": "^3.0.0",
120
+ "rollup-plugin-svgo": "^2.0.0",
121
+ "storybook": "^8.4.7",
122
+ "typescript": "^5.7.2",
123
+ "typescript-plugin-css-modules": "^5.1.0",
124
+ "vite": "^5.4.11",
125
+ "vite-plugin-dts": "^3.9.1",
126
+ "vite-plugin-lib-inject-css": "^2.1.1",
127
+ "vite-plugin-setting-css-module": "^1.1.4",
128
+ "vite-tsconfig-paths": "^4.3.2"
129
+ },
130
+ "main": "index.js",
131
+ "directories": {
132
+ "lib": "lib"
133
+ },
134
+ "author": "axos-web-dev",
135
+ "license": "ISC"
136
+ }