@axos-web-dev/shared-components 2.0.0-queryparams.2 → 2.2.0
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/README.md +111 -111
- package/dist/ATMLocator/ATMLocator.d.ts +1 -1
- package/dist/ATMLocator/ATMLocator.js +2 -3
- package/dist/Accordion/Accordion.d.ts +3 -3
- package/dist/Article/Article.d.ts +1 -1
- package/dist/Auth/ErrorAlert.d.ts +1 -1
- package/dist/Auth/ErrorAlert.js +2 -3
- package/dist/Auth/Logout.d.ts +1 -1
- package/dist/Auth/SignInPassword.d.ts +1 -1
- package/dist/Avatar/Avatar.module.js +7 -7
- package/dist/Blockquote/Blockquote.module.js +3 -3
- package/dist/BulletItem/BulletItem.d.ts +1 -1
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +3 -22
- package/dist/Button/GoBackButton.d.ts +1 -1
- package/dist/Calculators/AnnualFeeCalculator/index.js +1 -1
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +46 -5
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +72 -19
- package/dist/Calculators/ApyCalculator/index.js +583 -293
- package/dist/Calculators/Calculator.d.ts +1 -1
- package/dist/Calculators/Calculator.js +4 -5
- package/dist/Calculators/MarginTradingCalculator/index.js +2 -3
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +1 -1
- package/dist/Calculators/MaxLoanCalculator/index.js +1 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +1 -1
- package/dist/Calculators/calculator.css.d.ts +21 -1
- package/dist/Calculators/calculator.css.js +3 -3
- package/dist/Carousel/index.d.ts +3 -3
- package/dist/Carousel/index.js +3 -4
- package/dist/Chatbot/Bubble.d.ts +2 -1
- package/dist/Chatbot/Chat.d.ts +1 -1
- package/dist/Chatbot/ChatWindow.js +31 -19
- package/dist/Chatbot/Chatbot.d.ts +11 -3
- package/dist/Chatbot/Chatbot.js +98 -66
- package/dist/Chatbot/ChatbotMessage.d.ts +1 -0
- package/dist/Chatbot/ChatbotMessage.js +5 -1
- package/dist/Chatbot/EllipsisAnimation.d.ts +1 -1
- package/dist/Chatbot/EllipsisIcon.d.ts +1 -1
- package/dist/Chevron/index.js +2 -15
- package/dist/Comparison/Comparison.d.ts +1 -1
- package/dist/Comparison/Comparison.js +2 -3
- package/dist/Comparison/ComparisonSet.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +2 -3
- package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
- package/dist/ExecutiveBio/Overlay.d.ts +1 -1
- package/dist/FaqAccordion/index.d.ts +5 -5
- package/dist/FaqAccordion/index.js +2 -3
- package/dist/FdicCallout/FdicCallout.module.js +2 -2
- package/dist/FdicCallout/index.d.ts +1 -1
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +4 -4
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.d.ts +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.d.ts +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +20 -3
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplyNow.d.ts +1 -1
- package/dist/Forms/ApplyNow.js +3 -4
- package/dist/Forms/BoatMooringLocation.d.ts +7 -2
- package/dist/Forms/BoatMooringLocation.js +145 -8
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDepositsNoLendingOption.d.ts +1 -1
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/ConstructionLendingDynamic.d.ts +1 -1
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +2 -3
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +2 -3
- package/dist/Forms/ContactUsLVF.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +2 -3
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +2 -3
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +2 -3
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +2 -3
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/EmailUs.js +40 -34
- package/dist/Forms/FormEnums.js +2 -2
- package/dist/Forms/Forms.css.d.ts +3 -0
- package/dist/Forms/Forms.css.js +39 -39
- package/dist/Forms/HoneyPot/index.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +3 -4
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +3 -4
- package/dist/Forms/MortgageWarehouseLending.d.ts +1 -1
- package/dist/Forms/MortgageWarehouseLending.js +2 -3
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/UserInformation.d.ts +1 -1
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/SuccesForm.d.ts +1 -1
- package/dist/Forms/SuccesForm.js +4 -5
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/HeroBanner/HeroBanner.css.d.ts +1 -0
- package/dist/HeroBanner/HeroBanner.css.js +19 -16
- package/dist/HeroBanner/HeroBanner.d.ts +1 -1
- package/dist/HeroBanner/HeroBanner.interface.d.ts +4 -1
- package/dist/HeroBanner/HeroBanner.js +26 -160
- package/dist/HeroBanner/HeroVideoPoster.d.ts +5 -0
- package/dist/HeroBanner/HeroVideoPoster.js +24 -0
- package/dist/HeroBanner/LargeBanner.css.d.ts +110 -0
- package/dist/HeroBanner/LargeBanner.css.js +22 -8
- package/dist/HeroBanner/LargeHeroBanner.d.ts +5 -0
- package/dist/HeroBanner/LargeHeroBanner.js +228 -0
- package/dist/HeroBanner/index.js +3 -2
- package/dist/Hyperlink/index.js +2 -15
- package/dist/IconBillboard/IconBillboard.d.ts +1 -1
- package/dist/IconBillboard/IconBillboardSet.d.ts +1 -1
- package/dist/IconBillboard/sections/CallToActionSection.d.ts +1 -1
- package/dist/IconBillboard/sections/CallToActionSection.js +3 -1
- package/dist/IconBillboard/sections/HeaderSection.d.ts +2 -2
- package/dist/IconBillboard/sections/IconSection.d.ts +1 -1
- package/dist/IconBillboard/sections/ItemsSection.d.ts +1 -1
- package/dist/IconBillboard/sections/LayoutSection.d.ts +1 -1
- package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboard.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageLink/ImageLink.d.ts +1 -1
- package/dist/ImageLink/ImageLink.js +2 -3
- package/dist/ImageLink/ImageLinkSet.d.ts +1 -1
- package/dist/ImageLink/ImageLinkSet.js +1 -2
- package/dist/ImageLink/index.js +2 -3
- package/dist/ImageWrapper/ImageWrapper.d.ts +1 -1
- package/dist/Insight/Featured/CategorySelector.d.ts +2 -2
- package/dist/Insight/Featured/CategorySelector.js +3 -4
- package/dist/Insight/Featured/Featured.d.ts +2 -2
- package/dist/Insight/Featured/Featured.js +3 -4
- package/dist/Insight/Featured/Header.d.ts +1 -1
- package/dist/Insight/Featured/Header.js +3 -4
- package/dist/Interstitial/Interstitial.module.js +10 -10
- package/dist/LandingPageHeader/LandingPageHeader.d.ts +1 -1
- package/dist/LoadingIndicator/index.d.ts +1 -1
- package/dist/MainHTML/index.d.ts +1 -1
- package/dist/Modal/Modal.js +2 -3
- package/dist/Modal/contextApi/store.d.ts +1 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.module.js +23 -23
- package/dist/NavigationMenu/AxosALTS/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosALTS/index.js +2 -3
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisor/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +53 -53
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +2 -3
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +27 -27
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +13 -8
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +29 -26
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
- package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +72 -38
- package/dist/NavigationMenu/AxosBank/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosBank/index.js +31 -30
- package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
- package/dist/NavigationMenu/AxosClearing/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/AxosClearing/index.d.ts +1 -1
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +41 -41
- package/dist/NavigationMenu/AxosFiduciary/index.d.ts +1 -1
- package/dist/NavigationMenu/LaVictoire/NavBar.module.js +37 -37
- package/dist/NavigationMenu/LaVictoire/SubNavBar.d.ts +1 -1
- package/dist/NavigationMenu/LaVictoire/index.d.ts +1 -1
- package/dist/NavigationMenu/LaVictoire/index.js +2 -3
- package/dist/NavigationMenu/NavItem/index.d.ts +1 -1
- package/dist/NavigationMenu/Navbar.d.ts +1 -1
- package/dist/NavigationMenu/Navbar.js +2 -3
- package/dist/NavigationMenu/SignInNavButton.d.ts +3 -1
- package/dist/NavigationMenu/SignInNavButton.js +2 -3
- package/dist/Pagination/Pagination.d.ts +1 -1
- package/dist/SecondaryFooter/index.d.ts +1 -1
- package/dist/SetContainer/SetContainer.css.d.ts +1 -0
- package/dist/SetContainer/SetContainer.css.js +5 -3
- package/dist/SetContainer/SetContainer.d.ts +1 -1
- package/dist/SetContainer/SetContainer.js +10 -5
- package/dist/SetContainer/index.js +2 -1
- package/dist/SocialMediaBar/iconsRepository.d.ts +14 -14
- package/dist/SocialMediaBar/iconsRepository.js +2 -3
- package/dist/SocialMediaBar/index.d.ts +1 -1
- package/dist/Tab/Tab.d.ts +1 -1
- package/dist/Tab/TabContainer.d.ts +1 -1
- package/dist/Table/Table.css.d.ts +21 -1
- package/dist/Table/Table.css.js +18 -18
- package/dist/Table/Table.d.ts +5 -5
- package/dist/Table/Table.js +5 -3
- package/dist/TextBlock/TextBlock.d.ts +1 -1
- package/dist/Topic/Topic.d.ts +4 -4
- package/dist/VideoTile/VideoInit.d.ts +1 -1
- package/dist/VideoTile/VideoTile.js +2 -3
- package/dist/VideoWrapper/index.js +2 -3
- package/dist/WalnutIframe/index.d.ts +1 -1
- package/dist/WalnutIframe/wrapper.module.js +3 -3
- package/dist/assets/Avatar/Avatar.css +59 -59
- package/dist/assets/Blockquote/Blockquote.css +72 -72
- package/dist/assets/Calculators/ApyCalculator/ApyCalculator.css +350 -64
- package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +2 -2
- package/dist/assets/Calculators/calculator.css +25 -15
- package/dist/assets/Chatbot/AnimatedGradientBorder.css +1 -1
- package/dist/assets/Chatbot/ChatWindow.css +19 -19
- package/dist/assets/Comparison/Comparison.css +2 -2
- package/dist/assets/DownloadTile/DownloadTile.css +7 -0
- package/dist/assets/ExecutiveBio/ExecutiveBio.css +0 -2
- package/dist/assets/FdicCallout/FdicCallout.css +48 -48
- package/dist/assets/Forms/Forms.css +94 -91
- package/dist/assets/HeroBanner/HeroBanner.css +82 -65
- package/dist/assets/HeroBanner/LargeBanner.css +126 -59
- package/dist/assets/ImageBillboard/ImageBillboard.css +1 -1
- package/dist/assets/Interstitial/Interstitial.css +142 -142
- package/dist/assets/NavigationMenu/AxosALTS/NavBar.css +264 -264
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css +609 -609
- package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css +630 -630
- package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css +353 -353
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css +445 -445
- package/dist/assets/NavigationMenu/AxosClearing/NavBar.css +484 -484
- package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css +427 -427
- package/dist/assets/NavigationMenu/LaVictoire/NavBar.css +429 -429
- package/dist/assets/SetContainer/SetContainer.css +25 -15
- package/dist/assets/Table/Table.css +90 -75
- package/dist/assets/TextBlock/TextBlock.css +7 -0
- package/dist/assets/VideoTile/VideoTile.css +6 -0
- package/dist/assets/WalnutIframe/wrapper.css +48 -48
- package/dist/assets/globals.css +9 -9
- package/dist/assets/themes/axos.css +8 -7
- package/dist/assets/themes/premier.css +9 -8
- package/dist/assets/themes/ufb.css +9 -8
- package/dist/assets/themes/victorie.css +9 -8
- package/dist/assets/utils/optimizeImage/optimizeImage.css +47 -47
- package/dist/icons/AxosX/Blue.d.ts +1 -1
- package/dist/icons/AxosX/index.d.ts +1 -1
- package/dist/icons/CheckCircle.d.ts +1 -1
- package/dist/icons/CheckCircleLight.d.ts +1 -1
- package/dist/icons/CheckIcon/index.d.ts +1 -1
- package/dist/icons/ChevronDown.d.ts +1 -1
- package/dist/icons/ChevronUp.d.ts +1 -1
- package/dist/icons/Clock/index.d.ts +1 -1
- package/dist/icons/EqualHousingLender.d.ts +1 -1
- package/dist/icons/Logos/AAS.d.ts +1 -1
- package/dist/icons/Logos/AFS.d.ts +1 -1
- package/dist/icons/Logos/AXA.d.ts +1 -1
- package/dist/icons/Logos/AXB.d.ts +1 -1
- package/dist/icons/Logos/AXC.d.ts +1 -1
- package/dist/icons/Logos/AXI.d.ts +1 -1
- package/dist/icons/Logos/AXOS.d.ts +1 -1
- package/dist/icons/Logos/GBLVF.d.ts +1 -1
- package/dist/icons/Logos/LVF.d.ts +1 -1
- package/dist/icons/Logos/LVFText.d.ts +1 -1
- package/dist/icons/Logos/SPB.d.ts +1 -1
- package/dist/icons/MemberFdicLogo.d.ts +1 -1
- package/dist/icons/QuoteIconGrey.d.ts +1 -1
- package/dist/icons/QuoteIconWhite.d.ts +1 -1
- package/dist/icons/QuoteIconYellow.d.ts +1 -1
- package/dist/main.js +5 -8
- package/dist/themes/axos.css.d.ts +1 -0
- package/dist/themes/axos.css.js +1 -1
- package/dist/utils/appendQueryParams.js +53 -16
- package/dist/utils/getPosition.d.ts +1 -0
- package/dist/utils/getPosition.js +17 -0
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -5
- package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
- package/dist/utils/variant.types.d.ts +1 -0
- package/package.json +148 -149
- package/dist/utils/samePageNavigation.d.ts +0 -3
- package/dist/utils/samePageNavigation.js +0 -23
- package/dist/utils/samePageQueryParamsNavigation.d.ts +0 -4
- package/dist/utils/samePageQueryParamsNavigation.js +0 -63
package/package.json
CHANGED
|
@@ -1,149 +1,148 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@axos-web-dev/shared-components",
|
|
3
|
-
"description": "Axos shared components library for web.",
|
|
4
|
-
"version": "2.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"module": "dist/main.js",
|
|
8
|
-
"types": "dist/main.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./dist/main.d.ts",
|
|
12
|
-
"import": "./dist/main.js"
|
|
13
|
-
},
|
|
14
|
-
"./styles.css": "./dist/assets/index.css",
|
|
15
|
-
"./globals.css": "./dist/assets/globals.css",
|
|
16
|
-
"./themes/axos.css": "./dist/assets/themes/axos.css",
|
|
17
|
-
"./themes/premier.css": "./dist/assets/themes/premier.css",
|
|
18
|
-
"./dist/*": "./dist/*"
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"dist"
|
|
22
|
-
],
|
|
23
|
-
"sideEffects": [
|
|
24
|
-
"dist/assets/**/*.css"
|
|
25
|
-
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"dev": "vite",
|
|
28
|
-
"build": "tsc --p ./tsconfig.build.json && vite build",
|
|
29
|
-
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
|
30
|
-
"preview": "vite preview",
|
|
31
|
-
"prepublishOnly": "npm run build",
|
|
32
|
-
"check-types": "tsc --pretty --noEmit",
|
|
33
|
-
"check-format": "prettier --check .",
|
|
34
|
-
"check-lint": "eslint .",
|
|
35
|
-
"format": "prettier --write .",
|
|
36
|
-
"test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
|
|
37
|
-
"prepare": "
|
|
38
|
-
"storybook": "storybook dev -p 6006",
|
|
39
|
-
"build-storybook": "storybook build",
|
|
40
|
-
"npm:link": "npm run build && npm link"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"@headlessui/react": "^2.2.0",
|
|
44
|
-
"@hookform/resolvers": "^5.0.1",
|
|
45
|
-
"@next-safe-action/adapter-react-hook-form": "^2.0.2",
|
|
46
|
-
"@react-input/mask": "^1.2.15",
|
|
47
|
-
"@react-input/number-format": "^1.1.3",
|
|
48
|
-
"@storybook/icons": "^1.3.0",
|
|
49
|
-
"@storybook/preview-api": "^8.4.7",
|
|
50
|
-
"@ts-stack/markdown": "^1.5.0",
|
|
51
|
-
"@types/iframe-resizer": "3.5.13",
|
|
52
|
-
"@ujet/websdk-headless": "^3.41.4",
|
|
53
|
-
"@vanilla-extract/css": "^1.16.1",
|
|
54
|
-
"@vanilla-extract/recipes": "^0.5.1 || ^0.5.5",
|
|
55
|
-
"antd": "^5.22.5",
|
|
56
|
-
"clsx": "^2.1.1",
|
|
57
|
-
"framer-motion": "^12.9.2",
|
|
58
|
-
"iframe-resizer": "^3.6.6",
|
|
59
|
-
"lodash": "^4.17.21",
|
|
60
|
-
"moment": "^2.30.1",
|
|
61
|
-
"next-safe-action": "^8.0.2",
|
|
62
|
-
"
|
|
63
|
-
"react-date-
|
|
64
|
-
"react-
|
|
65
|
-
"react-
|
|
66
|
-
"react-
|
|
67
|
-
"react-
|
|
68
|
-
"react-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"@vanilla-extract/
|
|
80
|
-
"@vanilla-extract/
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"react": "^
|
|
84
|
-
"react-
|
|
85
|
-
"react-
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"@storybook/addon-
|
|
94
|
-
"@storybook/addon-
|
|
95
|
-
"@storybook/addon-
|
|
96
|
-
"@storybook/addon-
|
|
97
|
-
"@storybook/addon-
|
|
98
|
-
"@storybook/
|
|
99
|
-
"@storybook/
|
|
100
|
-
"@storybook/react": "^8.
|
|
101
|
-
"@storybook/
|
|
102
|
-
"@
|
|
103
|
-
"@svgr/
|
|
104
|
-
"@svgr/plugin-
|
|
105
|
-
"@
|
|
106
|
-
"@types/
|
|
107
|
-
"@types/
|
|
108
|
-
"@types/react": "^
|
|
109
|
-
"@types/react-
|
|
110
|
-
"@types/react-
|
|
111
|
-
"@types/react-
|
|
112
|
-
"@
|
|
113
|
-
"@typescript-eslint/
|
|
114
|
-
"@
|
|
115
|
-
"@vanilla-extract/
|
|
116
|
-
"@vanilla-extract/
|
|
117
|
-
"@
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"eslint": "^
|
|
121
|
-
"eslint-plugin-react-
|
|
122
|
-
"eslint-plugin-
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"react": "^19.0.0",
|
|
130
|
-
"
|
|
131
|
-
"rollup-plugin-
|
|
132
|
-
"rollup-plugin-
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"typescript": "^
|
|
136
|
-
"typescript-
|
|
137
|
-
"
|
|
138
|
-
"vite": "^
|
|
139
|
-
"vite-plugin-
|
|
140
|
-
"vite-plugin-
|
|
141
|
-
"vite-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@axos-web-dev/shared-components",
|
|
3
|
+
"description": "Axos shared components library for web.",
|
|
4
|
+
"version": "2.2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"module": "dist/main.js",
|
|
8
|
+
"types": "dist/main.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/main.d.ts",
|
|
12
|
+
"import": "./dist/main.js"
|
|
13
|
+
},
|
|
14
|
+
"./styles.css": "./dist/assets/index.css",
|
|
15
|
+
"./globals.css": "./dist/assets/globals.css",
|
|
16
|
+
"./themes/axos.css": "./dist/assets/themes/axos.css",
|
|
17
|
+
"./themes/premier.css": "./dist/assets/themes/premier.css",
|
|
18
|
+
"./dist/*": "./dist/*"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"dist/assets/**/*.css"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "vite",
|
|
28
|
+
"build": "tsc --p ./tsconfig.build.json && vite build",
|
|
29
|
+
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
|
30
|
+
"preview": "vite preview",
|
|
31
|
+
"prepublishOnly": "npm run build",
|
|
32
|
+
"check-types": "tsc --pretty --noEmit",
|
|
33
|
+
"check-format": "prettier --check .",
|
|
34
|
+
"check-lint": "eslint .",
|
|
35
|
+
"format": "prettier --write .",
|
|
36
|
+
"test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
|
|
37
|
+
"prepare": "npm run build",
|
|
38
|
+
"storybook": "storybook dev -p 6006",
|
|
39
|
+
"build-storybook": "storybook build",
|
|
40
|
+
"npm:link": "npm run build && npm link"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@headlessui/react": "^2.2.0",
|
|
44
|
+
"@hookform/resolvers": "^5.0.1",
|
|
45
|
+
"@next-safe-action/adapter-react-hook-form": "^2.0.2",
|
|
46
|
+
"@react-input/mask": "^1.2.15",
|
|
47
|
+
"@react-input/number-format": "^1.1.3",
|
|
48
|
+
"@storybook/icons": "^1.3.0",
|
|
49
|
+
"@storybook/preview-api": "^8.4.7",
|
|
50
|
+
"@ts-stack/markdown": "^1.5.0",
|
|
51
|
+
"@types/iframe-resizer": "3.5.13",
|
|
52
|
+
"@ujet/websdk-headless": "^3.41.4",
|
|
53
|
+
"@vanilla-extract/css": "^1.16.1",
|
|
54
|
+
"@vanilla-extract/recipes": "^0.5.1 || ^0.5.5",
|
|
55
|
+
"antd": "^5.22.5",
|
|
56
|
+
"clsx": "^2.1.1",
|
|
57
|
+
"framer-motion": "^12.9.2",
|
|
58
|
+
"iframe-resizer": "^3.6.6",
|
|
59
|
+
"lodash": "^4.17.21",
|
|
60
|
+
"moment": "^2.30.1",
|
|
61
|
+
"next-safe-action": "^8.0.2",
|
|
62
|
+
"react-date-picker": "^11.0.0",
|
|
63
|
+
"react-date-range": "^2.0.1",
|
|
64
|
+
"react-hook-form": "^7.56.4",
|
|
65
|
+
"react-markdown": "^9.1.0",
|
|
66
|
+
"react-slick": "^0.30.2",
|
|
67
|
+
"react-use": "^17.6.0",
|
|
68
|
+
"react-wrap-balancer": "^1.1.1",
|
|
69
|
+
"remark-gfm": "^4.0.1",
|
|
70
|
+
"rsuite": "^5.75.0",
|
|
71
|
+
"slick-carousel": "^1.8.1",
|
|
72
|
+
"typed-css-modules": "^0.9.1",
|
|
73
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
74
|
+
"zod": "^3.24.1",
|
|
75
|
+
"zustand": "^4.5.5"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"@vanilla-extract/css-utils": "^0.1.3 || ^0.1.4",
|
|
79
|
+
"@vanilla-extract/recipes": "^0.5.1 || ^0.5.5",
|
|
80
|
+
"@vanilla-extract/vite-plugin": "^4.0.3 || ^4.0.18",
|
|
81
|
+
"next": "^14.1.4 || ^15.0.0 || ^16.0.0",
|
|
82
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
83
|
+
"react-date-range": "^2.0.1",
|
|
84
|
+
"react-dom": "^18.2.0 || ^19.0.0",
|
|
85
|
+
"react-slick": "^0.30.2",
|
|
86
|
+
"slick-carousel": "^1.8.1"
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@chromatic-com/storybook": "^1.9.0",
|
|
90
|
+
"@eslint/js": "^9.39.4",
|
|
91
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
92
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
93
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
94
|
+
"@storybook/addon-links": "^8.4.7",
|
|
95
|
+
"@storybook/addon-mdx-gfm": "^8.4.7",
|
|
96
|
+
"@storybook/addon-onboarding": "^8.4.7",
|
|
97
|
+
"@storybook/addon-themes": "^8.4.7",
|
|
98
|
+
"@storybook/blocks": "^8.4.7",
|
|
99
|
+
"@storybook/react": "^8.6.14",
|
|
100
|
+
"@storybook/react-vite": "^8.4.7",
|
|
101
|
+
"@storybook/test": "^8.6.14",
|
|
102
|
+
"@svgr/core": "^8.1.0",
|
|
103
|
+
"@svgr/plugin-prettier": "^8.1.0",
|
|
104
|
+
"@svgr/plugin-svgo": "^8.1.0",
|
|
105
|
+
"@types/lodash": "^4.17.17",
|
|
106
|
+
"@types/node": "^20.19.0",
|
|
107
|
+
"@types/react": "^19.0.0",
|
|
108
|
+
"@types/react-date-range": "^1.4.9",
|
|
109
|
+
"@types/react-datepicker": "^6.2.0",
|
|
110
|
+
"@types/react-dom": "^19.0.0",
|
|
111
|
+
"@types/react-slick": "^0.23.13",
|
|
112
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
113
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
114
|
+
"@vanilla-extract/css-utils": "^0.1.4",
|
|
115
|
+
"@vanilla-extract/recipes": "^0.5.5",
|
|
116
|
+
"@vanilla-extract/vite-plugin": "^4.0.18",
|
|
117
|
+
"@vitejs/plugin-react-swc": "^3.7.2",
|
|
118
|
+
"esbuild-vanilla-image-loader": "^0.1.3",
|
|
119
|
+
"eslint": "^9.0.0",
|
|
120
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
121
|
+
"eslint-plugin-react-refresh": "^0.4.16",
|
|
122
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
123
|
+
"glob": "^10.4.5",
|
|
124
|
+
"globals": "^15.15.0",
|
|
125
|
+
"husky": "^9.1.7",
|
|
126
|
+
"next": "^16.0.0",
|
|
127
|
+
"prettier": "3.2.5",
|
|
128
|
+
"react": "^19.0.0",
|
|
129
|
+
"react-dom": "^19.0.0",
|
|
130
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
131
|
+
"rollup-plugin-svg-import": "^3.0.0",
|
|
132
|
+
"rollup-plugin-svgo": "^2.0.0",
|
|
133
|
+
"storybook": "^8.4.7",
|
|
134
|
+
"typescript": "^5.7.2",
|
|
135
|
+
"typescript-eslint": "^8.57.0",
|
|
136
|
+
"typescript-plugin-css-modules": "^5.1.0",
|
|
137
|
+
"vite": "^5.4.11",
|
|
138
|
+
"vite-plugin-dts": "^3.9.1",
|
|
139
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
140
|
+
"vite-plugin-setting-css-module": "^1.1.4",
|
|
141
|
+
"vite-tsconfig-paths": "^4.3.2"
|
|
142
|
+
},
|
|
143
|
+
"directories": {
|
|
144
|
+
"lib": "lib"
|
|
145
|
+
},
|
|
146
|
+
"author": "axos-web-dev",
|
|
147
|
+
"license": "ISC"
|
|
148
|
+
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const isSamePageSameQueryUrl = (href) => {
|
|
2
|
-
const base = window.location.origin + window.location.pathname + window.location.search;
|
|
3
|
-
const target = new URL(href, base);
|
|
4
|
-
return target.origin === window.location.origin && target.pathname === window.location.pathname && target.search === window.location.search;
|
|
5
|
-
};
|
|
6
|
-
const handleSamePageNavigation = (e) => {
|
|
7
|
-
e.preventDefault();
|
|
8
|
-
e.nativeEvent.stopImmediatePropagation();
|
|
9
|
-
window.dispatchEvent(
|
|
10
|
-
new PopStateEvent("popstate", { state: window.history.state })
|
|
11
|
-
);
|
|
12
|
-
};
|
|
13
|
-
const shouldIgnoreClick = (href) => {
|
|
14
|
-
if (href.startsWith("#")) return true;
|
|
15
|
-
const base = window.location.origin + window.location.pathname + window.location.search;
|
|
16
|
-
const target = new URL(href, base);
|
|
17
|
-
return target.origin === window.location.origin && target.pathname === window.location.pathname && target.search === window.location.search && target.hash !== "";
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
handleSamePageNavigation,
|
|
21
|
-
isSamePageSameQueryUrl,
|
|
22
|
-
shouldIgnoreClick
|
|
23
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function mergeHrefWithCurrentSearch(href: string, currentSearch?: string): string;
|
|
2
|
-
export declare function isSkippableAnchorHref(href: string | undefined | null): boolean;
|
|
3
|
-
export declare function isInternalSamePathHref(href: string): boolean;
|
|
4
|
-
export declare function performSamePageQueryParamNavigation(mergedHref: string): void;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
function mergeHrefWithCurrentSearch(href, currentSearch) {
|
|
2
|
-
try {
|
|
3
|
-
const search = currentSearch ?? window.location.search;
|
|
4
|
-
const searchParams = new URLSearchParams(search);
|
|
5
|
-
const base = window.location.origin + window.location.pathname + window.location.search;
|
|
6
|
-
const url = new URL(href.trim(), base);
|
|
7
|
-
const existingParams = new URLSearchParams(url.search);
|
|
8
|
-
const newParams = new URLSearchParams();
|
|
9
|
-
const addedKeys = /* @__PURE__ */ new Set();
|
|
10
|
-
for (const key of existingParams.keys()) {
|
|
11
|
-
addedKeys.add(decodeURIComponent(key));
|
|
12
|
-
}
|
|
13
|
-
for (const [key, value] of searchParams.entries()) {
|
|
14
|
-
const decodedKey = decodeURIComponent(key);
|
|
15
|
-
const decodedValue = decodeURIComponent(value);
|
|
16
|
-
const lowerKey = decodedKey.toLowerCase();
|
|
17
|
-
if (!addedKeys.has(lowerKey) && !decodedKey.includes("[]")) {
|
|
18
|
-
newParams.append(lowerKey, decodedValue);
|
|
19
|
-
addedKeys.add(lowerKey);
|
|
20
|
-
} else if (decodedKey.includes("[]")) {
|
|
21
|
-
const existingValues = existingParams.getAll(key).map(decodeURIComponent);
|
|
22
|
-
if (!existingValues.includes(decodedValue)) {
|
|
23
|
-
newParams.append(decodedKey, decodedValue);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
const mergedParams = new URLSearchParams(existingParams);
|
|
28
|
-
newParams.forEach((value, key) => mergedParams.append(key, value));
|
|
29
|
-
return `${url.origin}${url.pathname}?${mergedParams.toString()}${url.hash}`;
|
|
30
|
-
} catch (e) {
|
|
31
|
-
console.error(e);
|
|
32
|
-
return href;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function isSkippableAnchorHref(href) {
|
|
36
|
-
if (!href) return true;
|
|
37
|
-
const h = href.trim();
|
|
38
|
-
return !h || h.startsWith("tel:") || h.startsWith("mailto:") || h === "#" || h === "" || h.startsWith("#");
|
|
39
|
-
}
|
|
40
|
-
function isInternalSamePathHref(href) {
|
|
41
|
-
if (isSkippableAnchorHref(href)) return false;
|
|
42
|
-
const base = window.location.origin + window.location.pathname + window.location.search;
|
|
43
|
-
const url = new URL(href.trim(), base);
|
|
44
|
-
return url.origin === window.location.origin && url.pathname === window.location.pathname;
|
|
45
|
-
}
|
|
46
|
-
function performSamePageQueryParamNavigation(mergedHref) {
|
|
47
|
-
const mergedUrl = new URL(mergedHref, window.location.origin);
|
|
48
|
-
const fullUrl = `${mergedUrl.pathname}${mergedUrl.search}${mergedUrl.hash}`;
|
|
49
|
-
window.history.replaceState({ ...window.history.state }, "", fullUrl);
|
|
50
|
-
window.dispatchEvent(
|
|
51
|
-
new PopStateEvent("popstate", { state: window.history.state })
|
|
52
|
-
);
|
|
53
|
-
if (mergedUrl.hash) {
|
|
54
|
-
const el = document.querySelector(mergedUrl.hash);
|
|
55
|
-
el?.scrollIntoView({ behavior: "smooth" });
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
export {
|
|
59
|
-
isInternalSamePathHref,
|
|
60
|
-
isSkippableAnchorHref,
|
|
61
|
-
mergeHrefWithCurrentSearch,
|
|
62
|
-
performSamePageQueryParamNavigation
|
|
63
|
-
};
|