react-gldn-kit 0.0.1
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 +12 -0
- package/dist/019a0906020876234aeea55bdffda84f.svg +3 -0
- package/dist/146c476d14957bf48f72f2624fca70a6.svg +4 -0
- package/dist/19a58eb7c3630d4b07306a6c3220d970.svg +4 -0
- package/dist/319df1f071ee5d8a40e6abfdc5033808.svg +4 -0
- package/dist/495b0365b1bec48e3ed4d6b5050ab787.svg +4 -0
- package/dist/4c94314336076d6fec16041ab32c7af5.svg +4 -0
- package/dist/4f5309751f47792d5ed9a10bb49b99c4.svg +83 -0
- package/dist/65721e7993374bcc4145e083b5f42af2.svg +47 -0
- package/dist/7ec6f5f3bcbce4cd53ca73cb7e054566.svg +48 -0
- package/dist/9be020560a317c79c0b3851ea0d60317.svg +76 -0
- package/dist/a7dae2f8305ee0edacaf65eefff21778.svg +3 -0
- package/dist/a9758afe3827a85948f984caf2428242.svg +4 -0
- package/dist/f1ecca5e9239e78b5053dc90f83a3edf.svg +3 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +35 -0
- package/dist/lib/components/Banners/components/BannerTemplate/index.d.ts +13 -0
- package/dist/lib/components/Banners/components/BannerTemplate/index.js +52 -0
- package/dist/lib/components/Banners/components/BannerTemplate/types.d.ts +6 -0
- package/dist/lib/components/Banners/components/BannerTemplate/types.js +0 -0
- package/dist/lib/components/Banners/components/BattleBanner/index.d.ts +3 -0
- package/dist/lib/components/Banners/components/BattleBanner/index.js +59 -0
- package/dist/lib/components/Banners/components/BattleBanner/types.d.ts +15 -0
- package/dist/lib/components/Banners/components/BattleBanner/types.js +2 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/components/ElonAppBanner/index.d.ts +2 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/components/ElonAppBanner/index.js +65 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/components/JabiAppBanner/index.d.ts +2 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/components/JabiAppBanner/index.js +53 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/constants.d.ts +6 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/constants.js +9 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/index.d.ts +2 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/index.js +54 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/types.d.ts +12 -0
- package/dist/lib/components/Banners/components/PromotionMobileApp/types.js +2 -0
- package/dist/lib/components/Banners/index.d.ts +2 -0
- package/dist/lib/components/Banners/index.js +52 -0
- package/dist/lib/components/Banners/types.d.ts +18 -0
- package/dist/lib/components/Banners/types.js +2 -0
- package/dist/lib/components/BattlesCard/index.d.ts +2 -0
- package/dist/lib/components/BattlesCard/index.js +69 -0
- package/dist/lib/components/BattlesCard/types.d.ts +25 -0
- package/dist/lib/components/BattlesCard/types.js +2 -0
- package/dist/lib/components/HOCs/HOCErrorBoundary/index.d.ts +13 -0
- package/dist/lib/components/HOCs/HOCErrorBoundary/index.js +107 -0
- package/dist/lib/components/HOCs/HOCErrorBoundary/types.d.ts +7 -0
- package/dist/lib/components/HOCs/HOCErrorBoundary/types.js +2 -0
- package/dist/lib/components/HOCs/HOCImageLoader/index.d.ts +2 -0
- package/dist/lib/components/HOCs/HOCImageLoader/index.js +17 -0
- package/dist/lib/components/HOCs/HOCImageLoader/types.d.ts +6 -0
- package/dist/lib/components/HOCs/HOCImageLoader/types.js +2 -0
- package/dist/lib/components/HOCs/HOCOutsideClick/index.d.ts +2 -0
- package/dist/lib/components/HOCs/HOCOutsideClick/index.js +25 -0
- package/dist/lib/components/HOCs/HOCOutsideClick/types.d.ts +11 -0
- package/dist/lib/components/HOCs/HOCOutsideClick/types.js +8 -0
- package/dist/lib/components/Jackpots/JackpotWidget/components/Jackpot/index.d.ts +6 -0
- package/dist/lib/components/Jackpots/JackpotWidget/components/Jackpot/index.js +77 -0
- package/dist/lib/components/Jackpots/JackpotWidget/components/JackpotCounter/components/Digit/index.d.ts +6 -0
- package/dist/lib/components/Jackpots/JackpotWidget/components/JackpotCounter/components/Digit/index.js +50 -0
- package/dist/lib/components/Jackpots/JackpotWidget/components/JackpotCounter/index.d.ts +6 -0
- package/dist/lib/components/Jackpots/JackpotWidget/components/JackpotCounter/index.js +57 -0
- package/dist/lib/components/Jackpots/JackpotWidget/index.d.ts +2 -0
- package/dist/lib/components/Jackpots/JackpotWidget/index.js +52 -0
- package/dist/lib/components/Jackpots/JackpotWidget/types.d.ts +13 -0
- package/dist/lib/components/Jackpots/JackpotWidget/types.js +2 -0
- package/dist/lib/components/Jackpots/JackpotWidget/utils.d.ts +13 -0
- package/dist/lib/components/Jackpots/JackpotWidget/utils.js +48 -0
- package/dist/lib/components/LastBigWinners/components/LastBigWinner/LastBigWinner.d.ts +3 -0
- package/dist/lib/components/LastBigWinners/components/LastBigWinner/LastBigWinner.js +53 -0
- package/dist/lib/components/LastBigWinners/components/LastBigWinner/types.d.ts +15 -0
- package/dist/lib/components/LastBigWinners/components/LastBigWinner/types.js +2 -0
- package/dist/lib/components/LastBigWinners/index.d.ts +2 -0
- package/dist/lib/components/LastBigWinners/index.js +122 -0
- package/dist/lib/components/LastBigWinners/types.d.ts +9 -0
- package/dist/lib/components/LastBigWinners/types.js +2 -0
- package/dist/lib/components/Layouts/BonusCardLayout/index.d.ts +2 -0
- package/dist/lib/components/Layouts/BonusCardLayout/index.js +53 -0
- package/dist/lib/components/Layouts/BonusCardLayout/types.d.ts +11 -0
- package/dist/lib/components/Layouts/BonusCardLayout/types.js +2 -0
- package/dist/lib/components/Layouts/DrawerLayout/index.d.ts +2 -0
- package/dist/lib/components/Layouts/DrawerLayout/index.js +56 -0
- package/dist/lib/components/Layouts/DrawerLayout/types.d.ts +10 -0
- package/dist/lib/components/Layouts/DrawerLayout/types.js +2 -0
- package/dist/lib/components/Layouts/ModalLayout/index.d.ts +2 -0
- package/dist/lib/components/Layouts/ModalLayout/index.js +53 -0
- package/dist/lib/components/Layouts/ModalLayout/types.d.ts +8 -0
- package/dist/lib/components/Layouts/ModalLayout/types.js +2 -0
- package/dist/lib/components/Payments/DepositQrForm/index.d.ts +2 -0
- package/dist/lib/components/Payments/DepositQrForm/index.js +49 -0
- package/dist/lib/components/Payments/DepositQrForm/types.d.ts +14 -0
- package/dist/lib/components/Payments/DepositQrForm/types.js +2 -0
- package/dist/lib/components/Payments/DepositSkelet/components/Default/index.d.ts +11 -0
- package/dist/lib/components/Payments/DepositSkelet/components/Default/index.js +38 -0
- package/dist/lib/components/Payments/DepositSkelet/components/WellexPay/NagadAndBKash/index.d.ts +9 -0
- package/dist/lib/components/Payments/DepositSkelet/components/WellexPay/NagadAndBKash/index.js +43 -0
- package/dist/lib/components/Payments/DepositSkelet/constants.d.ts +2 -0
- package/dist/lib/components/Payments/DepositSkelet/constants.js +15 -0
- package/dist/lib/components/Payments/DepositSkelet/index.d.ts +2 -0
- package/dist/lib/components/Payments/DepositSkelet/index.js +59 -0
- package/dist/lib/components/Payments/DepositSkelet/types.d.ts +87 -0
- package/dist/lib/components/Payments/DepositSkelet/types.js +81 -0
- package/dist/lib/components/Payments/Methods/components/Content/index.d.ts +2 -0
- package/dist/lib/components/Payments/Methods/components/Content/index.js +58 -0
- package/dist/lib/components/Payments/Methods/components/Content/types.d.ts +27 -0
- package/dist/lib/components/Payments/Methods/components/Content/types.js +2 -0
- package/dist/lib/components/Payments/Methods/components/PaymentList/index.d.ts +3 -0
- package/dist/lib/components/Payments/Methods/components/PaymentList/index.js +61 -0
- package/dist/lib/components/Payments/Methods/components/PaymentList/types.d.ts +12 -0
- package/dist/lib/components/Payments/Methods/components/PaymentList/types.js +2 -0
- package/dist/lib/components/Payments/Methods/constants.d.ts +5 -0
- package/dist/lib/components/Payments/Methods/constants.js +14 -0
- package/dist/lib/components/Payments/Methods/index.d.ts +2 -0
- package/dist/lib/components/Payments/Methods/index.js +60 -0
- package/dist/lib/components/Payments/Methods/types.d.ts +10 -0
- package/dist/lib/components/Payments/Methods/types.js +8 -0
- package/dist/lib/components/ReferralTable/components/EmptyTreasure/index.d.ts +2 -0
- package/dist/lib/components/ReferralTable/components/EmptyTreasure/index.js +22 -0
- package/dist/lib/components/ReferralTable/components/EmptyTreasure/types.d.ts +4 -0
- package/dist/lib/components/ReferralTable/components/EmptyTreasure/types.js +2 -0
- package/dist/lib/components/ReferralTable/components/InvitedTableHead/index.d.ts +2 -0
- package/dist/lib/components/ReferralTable/components/InvitedTableHead/index.js +46 -0
- package/dist/lib/components/ReferralTable/components/InvitedTableHead/types.d.ts +3 -0
- package/dist/lib/components/ReferralTable/components/InvitedTableHead/types.js +2 -0
- package/dist/lib/components/ReferralTable/components/List/index.d.ts +2 -0
- package/dist/lib/components/ReferralTable/components/List/index.js +47 -0
- package/dist/lib/components/ReferralTable/components/List/types.d.ts +4 -0
- package/dist/lib/components/ReferralTable/components/List/types.js +2 -0
- package/dist/lib/components/ReferralTable/index.d.ts +2 -0
- package/dist/lib/components/ReferralTable/index.js +66 -0
- package/dist/lib/components/ReferralTable/types.d.ts +15 -0
- package/dist/lib/components/ReferralTable/types.js +2 -0
- package/dist/lib/components/Scratch/index.d.ts +2 -0
- package/dist/lib/components/Scratch/index.js +118 -0
- package/dist/lib/components/Scratch/types.d.ts +14 -0
- package/dist/lib/components/Scratch/types.js +8 -0
- package/dist/lib/components/SignUp/CountrySelector/constants.d.ts +7 -0
- package/dist/lib/components/SignUp/CountrySelector/constants.js +815 -0
- package/dist/lib/components/SignUp/CountrySelector/index.d.ts +2 -0
- package/dist/lib/components/SignUp/CountrySelector/index.js +23 -0
- package/dist/lib/components/SignUp/CountrySelector/types.d.ts +10 -0
- package/dist/lib/components/SignUp/CountrySelector/types.js +2 -0
- package/dist/lib/components/SignUp/CurrencySelector/index.d.ts +2 -0
- package/dist/lib/components/SignUp/CurrencySelector/index.js +27 -0
- package/dist/lib/components/SignUp/CurrencySelector/types.d.ts +11 -0
- package/dist/lib/components/SignUp/CurrencySelector/types.js +2 -0
- package/dist/lib/components/SignUp/DocsCheckBox/index.d.ts +9 -0
- package/dist/lib/components/SignUp/DocsCheckBox/index.js +39 -0
- package/dist/lib/components/SignUp/OneClick/constants.d.ts +10 -0
- package/dist/lib/components/SignUp/OneClick/constants.js +13 -0
- package/dist/lib/components/SignUp/OneClick/index.d.ts +31 -0
- package/dist/lib/components/SignUp/OneClick/index.js +86 -0
- package/dist/lib/components/SignUp/PromoCode/index.d.ts +2 -0
- package/dist/lib/components/SignUp/PromoCode/index.js +63 -0
- package/dist/lib/components/SignUp/PromoCode/types.d.ts +6 -0
- package/dist/lib/components/SignUp/PromoCode/types.js +2 -0
- package/dist/lib/components/Text/index.d.ts +6 -0
- package/dist/lib/components/Text/index.js +11 -0
- package/dist/lib/components/Wheel/index.d.ts +2 -0
- package/dist/lib/components/Wheel/index.js +131 -0
- package/dist/lib/components/Wheel/types.d.ts +54 -0
- package/dist/lib/components/Wheel/types.js +2 -0
- package/dist/lib/components/ui/AccordionGroup/Accordion.d.ts +21 -0
- package/dist/lib/components/ui/AccordionGroup/Accordion.js +70 -0
- package/dist/lib/components/ui/AccordionGroup/index.d.ts +6 -0
- package/dist/lib/components/ui/AccordionGroup/index.js +53 -0
- package/dist/lib/components/ui/Bonuses/AvailableBonusesSlider/index.d.ts +8 -0
- package/dist/lib/components/ui/Bonuses/AvailableBonusesSlider/index.js +80 -0
- package/dist/lib/components/ui/Buttons/AppSwitcher/index.d.ts +12 -0
- package/dist/lib/components/ui/Buttons/AppSwitcher/index.js +74 -0
- package/dist/lib/components/ui/Buttons/ArrowButton/index.d.ts +7 -0
- package/dist/lib/components/ui/Buttons/ArrowButton/index.js +41 -0
- package/dist/lib/components/ui/Buttons/BaseButton/index.d.ts +2 -0
- package/dist/lib/components/ui/Buttons/BaseButton/index.js +65 -0
- package/dist/lib/components/ui/Buttons/BaseButton/types.d.ts +30 -0
- package/dist/lib/components/ui/Buttons/BaseButton/types.js +2 -0
- package/dist/lib/components/ui/Buttons/CasinoCategoryButton/index.d.ts +2 -0
- package/dist/lib/components/ui/Buttons/CasinoCategoryButton/index.js +68 -0
- package/dist/lib/components/ui/Buttons/CasinoCategoryButton/types.d.ts +21 -0
- package/dist/lib/components/ui/Buttons/CasinoCategoryButton/types.js +2 -0
- package/dist/lib/components/ui/Buttons/CasinoSubCategoriesButton/index.d.ts +2 -0
- package/dist/lib/components/ui/Buttons/CasinoSubCategoriesButton/index.js +51 -0
- package/dist/lib/components/ui/Buttons/CasinoSubCategoriesButton/types.d.ts +13 -0
- package/dist/lib/components/ui/Buttons/CasinoSubCategoriesButton/types.js +2 -0
- package/dist/lib/components/ui/Buttons/CloseButton/index.d.ts +2 -0
- package/dist/lib/components/ui/Buttons/CloseButton/index.js +49 -0
- package/dist/lib/components/ui/Buttons/CloseButton/types.d.ts +4 -0
- package/dist/lib/components/ui/Buttons/CloseButton/types.js +2 -0
- package/dist/lib/components/ui/Buttons/DepositButton/index.d.ts +10 -0
- package/dist/lib/components/ui/Buttons/DepositButton/index.js +57 -0
- package/dist/lib/components/ui/Buttons/DrawerButton/index.d.ts +2 -0
- package/dist/lib/components/ui/Buttons/DrawerButton/index.js +63 -0
- package/dist/lib/components/ui/Buttons/DrawerButton/types.d.ts +4 -0
- package/dist/lib/components/ui/Buttons/DrawerButton/types.js +2 -0
- package/dist/lib/components/ui/Buttons/GameActions/index.d.ts +0 -0
- package/dist/lib/components/ui/Buttons/GameActions/index.js +0 -0
- package/dist/lib/components/ui/Buttons/JivoButton/index.d.ts +2 -0
- package/dist/lib/components/ui/Buttons/JivoButton/index.js +154 -0
- package/dist/lib/components/ui/Buttons/JivoButton/types.d.ts +30 -0
- package/dist/lib/components/ui/Buttons/JivoButton/types.js +2 -0
- package/dist/lib/components/ui/Buttons/ProviderName/index.d.ts +2 -0
- package/dist/lib/components/ui/Buttons/ProviderName/index.js +54 -0
- package/dist/lib/components/ui/Buttons/ProviderName/types.d.ts +6 -0
- package/dist/lib/components/ui/Buttons/ProviderName/types.js +2 -0
- package/dist/lib/components/ui/Buttons/index.d.ts +4 -0
- package/dist/lib/components/ui/Buttons/index.js +7 -0
- package/dist/lib/components/ui/CountDown/index.d.ts +2 -0
- package/dist/lib/components/ui/CountDown/index.js +65 -0
- package/dist/lib/components/ui/CountDown/types.d.ts +19 -0
- package/dist/lib/components/ui/CountDown/types.js +2 -0
- package/dist/lib/components/ui/Docs/index.d.ts +2 -0
- package/dist/lib/components/ui/Docs/index.js +72 -0
- package/dist/lib/components/ui/Docs/types.d.ts +14 -0
- package/dist/lib/components/ui/Docs/types.js +2 -0
- package/dist/lib/components/ui/Footer/index.d.ts +2 -0
- package/dist/lib/components/ui/Footer/index.js +46 -0
- package/dist/lib/components/ui/Footer/types.d.ts +13 -0
- package/dist/lib/components/ui/Footer/types.js +2 -0
- package/dist/lib/components/ui/Headers/PopUpHeader/index.d.ts +2 -0
- package/dist/lib/components/ui/Headers/PopUpHeader/index.js +52 -0
- package/dist/lib/components/ui/Headers/PopUpHeader/types.d.ts +17 -0
- package/dist/lib/components/ui/Headers/PopUpHeader/types.js +2 -0
- package/dist/lib/components/ui/Headers/index.d.ts +2 -0
- package/dist/lib/components/ui/Headers/index.js +5 -0
- package/dist/lib/components/ui/Icons/ArrowSvg.d.ts +5 -0
- package/dist/lib/components/ui/Icons/ArrowSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/AvatarSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/AvatarSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/BonusGiftSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/BonusGiftSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/BurgerSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/BurgerSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/CalendarSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/CalendarSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/CashSvg.d.ts +5 -0
- package/dist/lib/components/ui/Icons/Base/CashSvg.js +52 -0
- package/dist/lib/components/ui/Icons/Base/CloseEyeSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/CloseEyeSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/CoinSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/CoinSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/CoinsSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/CoinsSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/CopySvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/CopySvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/DocSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/DocSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/DownloadSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/DownloadSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/DrawerTogglerSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/DrawerTogglerSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/FavoritesSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/FavoritesSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/GoogleSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/GoogleSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/GrowSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/GrowSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/InfoLotterySvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/InfoLotterySvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/LotterySvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/LotterySvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/OpenEyeSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/OpenEyeSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/PlusSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/PlusSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/ProfileSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/ProfileSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/ProvidersBlocksSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/ProvidersBlocksSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/SearchSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/SearchSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/SelectedSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/SelectedSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/SettingsSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/SettingsSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/ShareSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/ShareSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/StarSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/StarSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/SupportSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/SupportSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/ThreeDotsSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/ThreeDotsSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/TrashSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/TrashSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Base/WalletSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Base/WalletSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/FirstBonusSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/FirstBonusSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/SecondBonusSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/SecondBonusSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/ThirdBonusSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/ThirdBonusSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/BronzeSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/BronzeSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/DiamondSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/DiamondSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/GoldSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/GoldSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/GreenSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/GreenSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/PlatinumOneSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/PlatinumOneSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/PlatinumSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/PlatinumSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/SilverSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClub/SilverSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClubSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Bonuses/VipClubSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Casino/CoinSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Casino/CoinSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Casino/DefaultImgSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Casino/DefaultImgSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Casino/ProvidersSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Casino/ProvidersSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Casino/RecommendedSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Casino/RecommendedSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Casino/TournamentWagerSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Casino/TournamentWagerSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/CasinoSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/CasinoSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/CrashSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/CrashSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/HotSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/HotSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/InstantSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/InstantSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/OtersSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/OtersSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/PopularSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/PopularSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/ProviderSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/ProviderSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/ScratchSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/ScratchSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/SlotsSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/SlotsSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/TableSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/TableSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/TurboSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/TurboSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/VSportSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/VSportSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/WagerSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Categories/Icons/WagerSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Categories/index.d.ts +3 -0
- package/dist/lib/components/ui/Icons/Categories/index.js +50 -0
- package/dist/lib/components/ui/Icons/CheckBoxSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/CheckBoxSvg.js +18 -0
- package/dist/lib/components/ui/Icons/CloseSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/CloseSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Deposit/DepositSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Deposit/DepositSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Deposit/ErrorSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Deposit/ErrorSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Deposit/SuccessSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Deposit/SuccessSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Deposit/WaitingSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Deposit/WaitingSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Deposit/WithdrawSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Deposit/WithdrawSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/AzeSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/AzeSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/BnSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/BnSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/BsSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/BsSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/ChSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/ChSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/DeSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/DeSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/EnSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/EnSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/EsSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/EsSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/FrSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/FrSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/HiSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/HiSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/ItSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/ItSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/KoSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/KoSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/KzSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/KzSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/NoSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/NoSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/PtSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/PtSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/RoSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/RoSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/RuSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/RuSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/TrSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/TrSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/UkrSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/UkrSvg.js +20 -0
- package/dist/lib/components/ui/Icons/FlagIcons/UzSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/FlagIcons/UzSvg.js +20 -0
- package/dist/lib/components/ui/Icons/InHouse/ElonHouseSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/InHouse/ElonHouseSvg.js +20 -0
- package/dist/lib/components/ui/Icons/InHouse/FSWinHouseSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/InHouse/FSWinHouseSvg.js +20 -0
- package/dist/lib/components/ui/Icons/InHouse/JabiInHouseSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/InHouse/JabiInHouseSvg.js +20 -0
- package/dist/lib/components/ui/Icons/InfoSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/InfoSvg.js +20 -0
- package/dist/lib/components/ui/Icons/LockSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/LockSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Navigation/NavBettingLiveSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Navigation/NavBettingLiveSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Navigation/NavBettingSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Navigation/NavBettingSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Navigation/NavBonusesSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Navigation/NavBonusesSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Navigation/NavCasinoSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Navigation/NavCasinoSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Navigation/NavMyBetsSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Navigation/NavMyBetsSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Navigation/NavReferralSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Navigation/NavReferralSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Navigation/NavTournamentSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Navigation/NavTournamentSvg.js +20 -0
- package/dist/lib/components/ui/Icons/NotFound/BonusesSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/NotFound/BonusesSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Notifications/ErrorSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Notifications/ErrorSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Notifications/SuccessSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Notifications/SuccessSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Notifications/WarningSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Notifications/WarningSvg.js +20 -0
- package/dist/lib/components/ui/Icons/PlaySvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/PlaySvg.js +20 -0
- package/dist/lib/components/ui/Icons/ReferralTreasures/ElonTreasureSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/ReferralTreasures/ElonTreasureSvg.js +44 -0
- package/dist/lib/components/ui/Icons/ReferralTreasures/FSWinTreasureSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/ReferralTreasures/FSWinTreasureSvg.js +44 -0
- package/dist/lib/components/ui/Icons/ReferralTreasures/JabibetTreasureSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/ReferralTreasures/JabibetTreasureSvg.js +44 -0
- package/dist/lib/components/ui/Icons/SocialMedia/FacebookSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/SocialMedia/FacebookSvg.js +20 -0
- package/dist/lib/components/ui/Icons/SocialMedia/InstagramSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/SocialMedia/InstagramSvg.js +20 -0
- package/dist/lib/components/ui/Icons/SocialMedia/TelegramSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/SocialMedia/TelegramSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/AmericanFootballSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/AmericanFootballSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/AussieRulesSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/AussieRulesSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/BadmintonSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/BadmintonSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/BaseballSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/BaseballSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/Basketball3x3Svg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/Basketball3x3Svg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/BasketballSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/BasketballSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/BeachSoccerSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/BeachSoccerSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/BoxingSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/BoxingSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/ChessSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/ChessSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/CricketSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/CricketSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/DartsSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/DartsSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/EFifaSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/EFifaSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/ENbaSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/ENbaSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/ENhlSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/ENhlSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/EsportSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/EsportSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/FieldHockeySvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/FieldHockeySvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/FutsalSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/FutsalSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/IceHockeySvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/IceHockeySvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/KabaddiSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/KabaddiSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/MmaSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/MmaSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/RugbySvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/RugbySvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/SnookerSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/SnookerSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/SoccerSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/SoccerSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/SquashSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/SquashSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/TableTennisSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/TableTennisSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/TennisSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/TennisSvg.js +20 -0
- package/dist/lib/components/ui/Icons/Sports/VolleyballSvg.d.ts +2 -0
- package/dist/lib/components/ui/Icons/Sports/VolleyballSvg.js +20 -0
- package/dist/lib/components/ui/Icons/types.d.ts +8 -0
- package/dist/lib/components/ui/Icons/types.js +2 -0
- package/dist/lib/components/ui/Inputs/AmountInput/index.d.ts +3 -0
- package/dist/lib/components/ui/Inputs/AmountInput/index.js +123 -0
- package/dist/lib/components/ui/Inputs/AmountInput/types.d.ts +20 -0
- package/dist/lib/components/ui/Inputs/AmountInput/types.js +2 -0
- package/dist/lib/components/ui/Inputs/BaseInput/BaseInputUi.d.ts +2 -0
- package/dist/lib/components/ui/Inputs/BaseInput/BaseInputUi.js +72 -0
- package/dist/lib/components/ui/Inputs/BaseInput/constant.d.ts +2 -0
- package/dist/lib/components/ui/Inputs/BaseInput/constant.js +7 -0
- package/dist/lib/components/ui/Inputs/BaseInput/index.d.ts +2 -0
- package/dist/lib/components/ui/Inputs/BaseInput/index.js +52 -0
- package/dist/lib/components/ui/Inputs/BaseInput/types.d.ts +37 -0
- package/dist/lib/components/ui/Inputs/BaseInput/types.js +2 -0
- package/dist/lib/components/ui/Inputs/CheckBox/index.d.ts +12 -0
- package/dist/lib/components/ui/Inputs/CheckBox/index.js +52 -0
- package/dist/lib/components/ui/Leaderboard/components/User/index.d.ts +4 -0
- package/dist/lib/components/ui/Leaderboard/components/User/index.js +56 -0
- package/dist/lib/components/ui/Leaderboard/constants.d.ts +1 -0
- package/dist/lib/components/ui/Leaderboard/constants.js +4 -0
- package/dist/lib/components/ui/Leaderboard/index.d.ts +2 -0
- package/dist/lib/components/ui/Leaderboard/index.js +70 -0
- package/dist/lib/components/ui/Leaderboard/types.d.ts +17 -0
- package/dist/lib/components/ui/Leaderboard/types.js +2 -0
- package/dist/lib/components/ui/Loaders/CircularLoader/index.d.ts +5 -0
- package/dist/lib/components/ui/Loaders/CircularLoader/index.js +48 -0
- package/dist/lib/components/ui/Loaders/MainLoader/index.d.ts +2 -0
- package/dist/lib/components/ui/Loaders/MainLoader/index.js +52 -0
- package/dist/lib/components/ui/Loaders/MainLoader/types.d.ts +6 -0
- package/dist/lib/components/ui/Loaders/MainLoader/types.js +2 -0
- package/dist/lib/components/ui/Loaders/SkeletLoader/index.d.ts +5 -0
- package/dist/lib/components/ui/Loaders/SkeletLoader/index.js +47 -0
- package/dist/lib/components/ui/Logos/index.d.ts +2 -0
- package/dist/lib/components/ui/Logos/index.js +101 -0
- package/dist/lib/components/ui/Logos/types.d.ts +13 -0
- package/dist/lib/components/ui/Logos/types.js +2 -0
- package/dist/lib/components/ui/Pagination/index.d.ts +2 -0
- package/dist/lib/components/ui/Pagination/index.js +76 -0
- package/dist/lib/components/ui/Pagination/types.d.ts +10 -0
- package/dist/lib/components/ui/Pagination/types.js +2 -0
- package/dist/lib/components/ui/Section/index.d.ts +4 -0
- package/dist/lib/components/ui/Section/index.js +48 -0
- package/dist/lib/components/ui/Selector/index.d.ts +2 -0
- package/dist/lib/components/ui/Selector/index.js +135 -0
- package/dist/lib/components/ui/Selector/types.d.ts +43 -0
- package/dist/lib/components/ui/Selector/types.js +2 -0
- package/dist/lib/components/ui/ShowAll/index.d.ts +7 -0
- package/dist/lib/components/ui/ShowAll/index.js +50 -0
- package/dist/lib/components/ui/Step/index.d.ts +2 -0
- package/dist/lib/components/ui/Step/index.js +44 -0
- package/dist/lib/components/ui/Step/types.d.ts +5 -0
- package/dist/lib/components/ui/Step/types.js +2 -0
- package/dist/lib/components/ui/Tabs/index.d.ts +2 -0
- package/dist/lib/components/ui/Tabs/index.js +109 -0
- package/dist/lib/components/ui/Tabs/types.d.ts +15 -0
- package/dist/lib/components/ui/Tabs/types.js +2 -0
- package/dist/lib/components/ui/TournamentCard/index.d.ts +2 -0
- package/dist/lib/components/ui/TournamentCard/index.js +58 -0
- package/dist/lib/components/ui/TournamentCard/types.d.ts +16 -0
- package/dist/lib/components/ui/TournamentCard/types.js +2 -0
- package/dist/lib/hooks/useCountDown.d.ts +8 -0
- package/dist/lib/hooks/useCountDown.js +25 -0
- package/dist/lib/hooks/useElementResize.d.ts +5 -0
- package/dist/lib/hooks/useElementResize.js +41 -0
- package/dist/lib/hooks/useInView.d.ts +2 -0
- package/dist/lib/hooks/useInView.js +27 -0
- package/dist/lib/hooks/useOutsideClick.d.ts +5 -0
- package/dist/lib/hooks/useOutsideClick.js +22 -0
- package/dist/lib/hooks/useSwipe.d.ts +9 -0
- package/dist/lib/hooks/useSwipe.js +69 -0
- package/dist/lib/hooks/useTranslate.d.ts +6 -0
- package/dist/lib/hooks/useTranslate.js +46 -0
- package/dist/lib/index.d.ts +189 -0
- package/dist/lib/index.js +411 -0
- package/dist/lib/service/validation.d.ts +72 -0
- package/dist/lib/service/validation.js +190 -0
- package/dist/lib/types/ui.d.ts +14 -0
- package/dist/lib/types/ui.js +16 -0
- package/dist/lib/utils/date.d.ts +1 -0
- package/dist/lib/utils/date.js +11 -0
- package/dist/lib/zustandStore/languages/constants.d.ts +2 -0
- package/dist/lib/zustandStore/languages/constants.js +14 -0
- package/dist/lib/zustandStore/languages/selectors.d.ts +22 -0
- package/dist/lib/zustandStore/languages/selectors.js +31 -0
- package/dist/lib/zustandStore/languages/store.d.ts +2 -0
- package/dist/lib/zustandStore/languages/store.js +115 -0
- package/dist/lib/zustandStore/languages/types.d.ts +18 -0
- package/dist/lib/zustandStore/languages/types.js +2 -0
- package/dist/main.css +3950 -0
- package/package.json +66 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateLuhnAlgorithm = exports.validationTRC = exports.validationBankCode = exports.isPhone = exports.composeValidations = exports.validationNameSurname = exports.validationPatternByName = exports.prepareStringAsPhoneNumber = exports.upperCase = exports.extractNumbersFromString = exports.replaceValueByMask = exports.isPassword = exports.isMinMax = exports.isRequired = exports.isFilledForm = exports.validateEmailValue = exports.isEmail = void 0;
|
|
4
|
+
var isEmail = function (_a) {
|
|
5
|
+
var value = _a.value, errorText = _a.errorText;
|
|
6
|
+
return function () { return ({
|
|
7
|
+
value: value,
|
|
8
|
+
errorText: value.match(/^(([^<>()[\]\\.,;:\s@\\"]+(\.[^<>()[\]\\.,;:\s@\\"]+)*)|(\\".+\\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)
|
|
9
|
+
? ''
|
|
10
|
+
: errorText || 'email address not valid',
|
|
11
|
+
}); };
|
|
12
|
+
};
|
|
13
|
+
exports.isEmail = isEmail;
|
|
14
|
+
var validateEmailValue = function (value) { return ({
|
|
15
|
+
value: value,
|
|
16
|
+
errorText: value.match(/^(([^<>()[\]\\.,;:\s@\\"]+(\.[^<>()[\]\\.,;:\s@\\"]+)*)|(\\".+\\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)
|
|
17
|
+
? ''
|
|
18
|
+
: 'errors.invalidDate',
|
|
19
|
+
}); };
|
|
20
|
+
exports.validateEmailValue = validateEmailValue;
|
|
21
|
+
var isFilledForm = function (data) {
|
|
22
|
+
var isNotFillForm = data.find(function (i) {
|
|
23
|
+
if (typeof i === 'string') {
|
|
24
|
+
return !i;
|
|
25
|
+
}
|
|
26
|
+
if ('swiftCode' in i) {
|
|
27
|
+
return !i.swiftCode || !i.iban || !i.bankId;
|
|
28
|
+
}
|
|
29
|
+
return !i.value || i.errorText;
|
|
30
|
+
});
|
|
31
|
+
return isNotFillForm === undefined;
|
|
32
|
+
};
|
|
33
|
+
exports.isFilledForm = isFilledForm;
|
|
34
|
+
var isRequired = function (_a) {
|
|
35
|
+
var value = _a.value, errorText = _a.errorText;
|
|
36
|
+
return function () { return ({
|
|
37
|
+
value: value,
|
|
38
|
+
errorText: value !== '' && value !== null && value !== undefined
|
|
39
|
+
? ''
|
|
40
|
+
: errorText || 'field have to be filled',
|
|
41
|
+
}); };
|
|
42
|
+
};
|
|
43
|
+
exports.isRequired = isRequired;
|
|
44
|
+
var isMinMax = function (_a) {
|
|
45
|
+
var value = _a.value, errorTexts = _a.errorTexts, min = _a.min, max = _a.max;
|
|
46
|
+
return function () {
|
|
47
|
+
var errorText = '';
|
|
48
|
+
if (+value < min) {
|
|
49
|
+
errorText = errorTexts[0];
|
|
50
|
+
}
|
|
51
|
+
if (+value > max) {
|
|
52
|
+
errorText = errorTexts[1];
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
value: value.toString(),
|
|
56
|
+
errorText: errorText,
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
exports.isMinMax = isMinMax;
|
|
61
|
+
var PASSWORD_MIN = 8;
|
|
62
|
+
var PASSWORD_MAX = 25;
|
|
63
|
+
var isPassword = function (_a) {
|
|
64
|
+
var value = _a.value, errorText = _a.errorText;
|
|
65
|
+
return function () {
|
|
66
|
+
var length = value.length;
|
|
67
|
+
return {
|
|
68
|
+
value: value,
|
|
69
|
+
errorText: length < PASSWORD_MIN
|
|
70
|
+
? errorText === null || errorText === void 0 ? void 0 : errorText[0]
|
|
71
|
+
: length > PASSWORD_MAX
|
|
72
|
+
? errorText === null || errorText === void 0 ? void 0 : errorText[1]
|
|
73
|
+
: '',
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
exports.isPassword = isPassword;
|
|
78
|
+
var replaceValueByMask = function (mask) { return function (value) {
|
|
79
|
+
var i = 0;
|
|
80
|
+
var def = mask.replace(/\D/g, '');
|
|
81
|
+
var val = value.replace(/\D/g, '');
|
|
82
|
+
if (def.length >= val.length) {
|
|
83
|
+
val = def;
|
|
84
|
+
}
|
|
85
|
+
var validValue = mask.replace(/./g, function (a) {
|
|
86
|
+
return /[X\d]/.test(a) && i < val.length
|
|
87
|
+
? val.charAt(i++)
|
|
88
|
+
: i >= val.length
|
|
89
|
+
? ''
|
|
90
|
+
: a;
|
|
91
|
+
});
|
|
92
|
+
return validValue;
|
|
93
|
+
}; };
|
|
94
|
+
exports.replaceValueByMask = replaceValueByMask;
|
|
95
|
+
var extractNumbersFromString = function (input) {
|
|
96
|
+
var numericCharacters = input.replace(/[^\d.]/g, '');
|
|
97
|
+
return numericCharacters;
|
|
98
|
+
};
|
|
99
|
+
exports.extractNumbersFromString = extractNumbersFromString;
|
|
100
|
+
var upperCase = function (v) { return v.toLocaleUpperCase(); };
|
|
101
|
+
exports.upperCase = upperCase;
|
|
102
|
+
var prepareStringAsPhoneNumber = function (str) {
|
|
103
|
+
// Remove all non-numeric characters
|
|
104
|
+
str = str.replace(/\D/g, '');
|
|
105
|
+
if (str[0] !== '+') {
|
|
106
|
+
str = '+' + str;
|
|
107
|
+
}
|
|
108
|
+
return str;
|
|
109
|
+
};
|
|
110
|
+
exports.prepareStringAsPhoneNumber = prepareStringAsPhoneNumber;
|
|
111
|
+
var validationPatternByName = function (name) {
|
|
112
|
+
return name.trim().replace(/\s+/g, ' ');
|
|
113
|
+
};
|
|
114
|
+
exports.validationPatternByName = validationPatternByName;
|
|
115
|
+
var validationNameSurname = function (value) {
|
|
116
|
+
var errorText = '';
|
|
117
|
+
// const pattern = /^[a-zA-ZáéíóúâêôãõçÁÉÍÓÚÂÊÔÃÕÇüñÜÑ ]{2,100}$/;
|
|
118
|
+
// if (!pattern.test(value)) {
|
|
119
|
+
// errorText = 'errors.invalidValue';
|
|
120
|
+
// }
|
|
121
|
+
if (value.length < 2) {
|
|
122
|
+
errorText = 'errors.invalidValue';
|
|
123
|
+
}
|
|
124
|
+
return { value: value, errorText: errorText };
|
|
125
|
+
};
|
|
126
|
+
exports.validationNameSurname = validationNameSurname;
|
|
127
|
+
var composeValidations = function (fns) { var _a, _b; return (_b = (_a = fns.map(function (f) { return f(); })) === null || _a === void 0 ? void 0 : _a.find(function (result) { return result.errorText; })) === null || _b === void 0 ? void 0 : _b.errorText; };
|
|
128
|
+
exports.composeValidations = composeValidations;
|
|
129
|
+
var MIN_PHONE_LENGTH = 10;
|
|
130
|
+
var MAX_PHONE_LENGTH = 15;
|
|
131
|
+
var isPhone = function (_a) {
|
|
132
|
+
var value = _a.value, _b = _a.errorText, errorText = _b === void 0 ? '' : _b;
|
|
133
|
+
return function () {
|
|
134
|
+
var newValue = (0, exports.prepareStringAsPhoneNumber)(value);
|
|
135
|
+
var length = newValue.length;
|
|
136
|
+
if (newValue.startsWith('+880')) {
|
|
137
|
+
return {
|
|
138
|
+
value: value,
|
|
139
|
+
// 14 this bangladesh number
|
|
140
|
+
errorText: newValue.length !== 14 ? errorText : '',
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
if (length > MIN_PHONE_LENGTH && length < MAX_PHONE_LENGTH) {
|
|
144
|
+
return {
|
|
145
|
+
value: value,
|
|
146
|
+
errorText: '',
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
return {
|
|
150
|
+
value: value,
|
|
151
|
+
errorText: errorText || '',
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
exports.isPhone = isPhone;
|
|
156
|
+
var validationBankCode = function (value, errorMsg) {
|
|
157
|
+
var errorText = '';
|
|
158
|
+
var pattern = /^[0-9]{3}$/;
|
|
159
|
+
if (!pattern.test(value)) {
|
|
160
|
+
errorText = errorMsg || 'errors.invalidValue';
|
|
161
|
+
}
|
|
162
|
+
return { value: value, errorText: errorText };
|
|
163
|
+
};
|
|
164
|
+
exports.validationBankCode = validationBankCode;
|
|
165
|
+
var validationTRC = function (value, errorText) {
|
|
166
|
+
var error = '';
|
|
167
|
+
var pattern = /^T[1-9A-HJ-NP-Za-km-z]{33}$/;
|
|
168
|
+
if (!pattern.test(value)) {
|
|
169
|
+
error = errorText || 'errors.invalidValue';
|
|
170
|
+
}
|
|
171
|
+
return { value: value, errorText: error };
|
|
172
|
+
};
|
|
173
|
+
exports.validationTRC = validationTRC;
|
|
174
|
+
var validateLuhnAlgorithm = function (cardNumber) {
|
|
175
|
+
var sum = 0;
|
|
176
|
+
var isEven = false;
|
|
177
|
+
for (var i = cardNumber.length - 1; i >= 0; i--) {
|
|
178
|
+
var digit = parseInt(cardNumber.charAt(i), 10);
|
|
179
|
+
if (isEven) {
|
|
180
|
+
digit *= 2;
|
|
181
|
+
if (digit > 9) {
|
|
182
|
+
digit -= 9;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
sum += digit;
|
|
186
|
+
isEven = !isEven;
|
|
187
|
+
}
|
|
188
|
+
return sum % 10 === 0;
|
|
189
|
+
};
|
|
190
|
+
exports.validateLuhnAlgorithm = validateLuhnAlgorithm;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type Size = 'full' | 'small' | 'super-small' | 'medium' | 'large';
|
|
2
|
+
export type Color = 'black' | 'colorful' | 'transparent' | 'drawer';
|
|
3
|
+
export declare enum EAppType {
|
|
4
|
+
Unknown = 0,
|
|
5
|
+
Azure = 1,
|
|
6
|
+
Elon = 2,
|
|
7
|
+
XXX = 3,
|
|
8
|
+
Opera = 5,
|
|
9
|
+
FsWin = 6,
|
|
10
|
+
JabiBet = 7,
|
|
11
|
+
SlothBets = 8,
|
|
12
|
+
M1 = 9
|
|
13
|
+
}
|
|
14
|
+
export declare const PAGINATION_STEP = 5;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PAGINATION_STEP = exports.EAppType = void 0;
|
|
4
|
+
var EAppType;
|
|
5
|
+
(function (EAppType) {
|
|
6
|
+
EAppType[EAppType["Unknown"] = 0] = "Unknown";
|
|
7
|
+
EAppType[EAppType["Azure"] = 1] = "Azure";
|
|
8
|
+
EAppType[EAppType["Elon"] = 2] = "Elon";
|
|
9
|
+
EAppType[EAppType["XXX"] = 3] = "XXX";
|
|
10
|
+
EAppType[EAppType["Opera"] = 5] = "Opera";
|
|
11
|
+
EAppType[EAppType["FsWin"] = 6] = "FsWin";
|
|
12
|
+
EAppType[EAppType["JabiBet"] = 7] = "JabiBet";
|
|
13
|
+
EAppType[EAppType["SlothBets"] = 8] = "SlothBets";
|
|
14
|
+
EAppType[EAppType["M1"] = 9] = "M1";
|
|
15
|
+
})(EAppType = exports.EAppType || (exports.EAppType = {}));
|
|
16
|
+
exports.PAGINATION_STEP = 5;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formattedDate: (countDown: number) => string[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formattedDate = void 0;
|
|
4
|
+
var formattedDate = function (countDown) {
|
|
5
|
+
var days = String(Math.floor(countDown / (1000 * 60 * 60 * 24))).padStart(2, '0');
|
|
6
|
+
var hours = String(Math.floor((countDown % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60))).padStart(2, '0');
|
|
7
|
+
var minutes = String(Math.floor((countDown % (1000 * 60 * 60)) / (1000 * 60))).padStart(2, '0');
|
|
8
|
+
var seconds = String(Math.floor((countDown % (1000 * 60)) / 1000)).padStart(2, '0');
|
|
9
|
+
return [days, hours, minutes, seconds];
|
|
10
|
+
};
|
|
11
|
+
exports.formattedDate = formattedDate;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LANGUAGES = exports.DEFAULT_LANGUAGE = void 0;
|
|
4
|
+
exports.DEFAULT_LANGUAGE = (function () {
|
|
5
|
+
var _a, _b, _c;
|
|
6
|
+
try {
|
|
7
|
+
var lang = (_c = (_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.language) === null || _a === void 0 ? void 0 : _a.split) === null || _b === void 0 ? void 0 : _b.call(_a, '-')) === null || _c === void 0 ? void 0 : _c[0];
|
|
8
|
+
return typeof lang === 'string' ? lang : 'en';
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
return 'en';
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
exports.LANGUAGES = 'en';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ZustandLanguageStoreKit } from './types';
|
|
2
|
+
export declare const languageSelectors: {
|
|
3
|
+
getLanguagesKitSelector: (state: ZustandLanguageStoreKit) => {
|
|
4
|
+
name: string;
|
|
5
|
+
dictionary: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
getActiveLanguageNameKitSelector: (state: ZustandLanguageStoreKit) => string;
|
|
10
|
+
getLanguageDictionaryKitSelector: (state: ZustandLanguageStoreKit) => {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
getAndSetLanguagesKitAction: (state: ZustandLanguageStoreKit) => (lang: string) => void;
|
|
14
|
+
getBrandNameKitSelector: (state: ZustandLanguageStoreKit) => "Unknown" | "Azure" | "Elon" | "XXX" | "Opera" | "FsWin" | "JabiBet" | "SlothBets" | "M1";
|
|
15
|
+
setInitialLanguageKitAction: (state: ZustandLanguageStoreKit) => (appType: import("../../types/ui").EAppType) => void;
|
|
16
|
+
setLanguagesKitAction: (state: ZustandLanguageStoreKit) => (lang: {
|
|
17
|
+
name: string;
|
|
18
|
+
dictionary: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
}, initLanguage?: string) => void;
|
|
22
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.languageSelectors = void 0;
|
|
4
|
+
var getLanguagesKitSelector = function (state) {
|
|
5
|
+
return state.languages;
|
|
6
|
+
};
|
|
7
|
+
var getActiveLanguageNameKitSelector = function (state) { var _a; return (_a = getLanguagesKitSelector(state)) === null || _a === void 0 ? void 0 : _a.name; };
|
|
8
|
+
var getLanguageDictionaryKitSelector = function (state) { var _a, _b; return (_b = (_a = getLanguagesKitSelector(state)) === null || _a === void 0 ? void 0 : _a.dictionary) !== null && _b !== void 0 ? _b : {}; };
|
|
9
|
+
var getBrandNameKitSelector = function (state) {
|
|
10
|
+
return state.brandName;
|
|
11
|
+
};
|
|
12
|
+
// =================================================== ACTIONS ===================================================
|
|
13
|
+
var getAndSetLanguagesKitAction = function (state) {
|
|
14
|
+
return state.getAndSetLanguages;
|
|
15
|
+
};
|
|
16
|
+
var setInitialLanguageKitAction = function (state) {
|
|
17
|
+
return state.setInitLanguage;
|
|
18
|
+
};
|
|
19
|
+
var setLanguagesKitAction = function (state) {
|
|
20
|
+
return state.setLanguages;
|
|
21
|
+
};
|
|
22
|
+
exports.languageSelectors = {
|
|
23
|
+
getLanguagesKitSelector: getLanguagesKitSelector,
|
|
24
|
+
getActiveLanguageNameKitSelector: getActiveLanguageNameKitSelector,
|
|
25
|
+
getLanguageDictionaryKitSelector: getLanguageDictionaryKitSelector,
|
|
26
|
+
getAndSetLanguagesKitAction: getAndSetLanguagesKitAction,
|
|
27
|
+
getBrandNameKitSelector: getBrandNameKitSelector,
|
|
28
|
+
// Actions
|
|
29
|
+
setInitialLanguageKitAction: setInitialLanguageKitAction,
|
|
30
|
+
setLanguagesKitAction: setLanguagesKitAction,
|
|
31
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.useZustandLanguagesKitStore = void 0;
|
|
40
|
+
var zustand_1 = require("zustand");
|
|
41
|
+
var ui_1 = require("../../types/ui");
|
|
42
|
+
var constants_1 = require("./constants");
|
|
43
|
+
exports.useZustandLanguagesKitStore = (0, zustand_1.create)(function (set, get) { return ({
|
|
44
|
+
languages: null,
|
|
45
|
+
brandName: ui_1.EAppType[0],
|
|
46
|
+
setLanguages: function (languages) {
|
|
47
|
+
set({ languages: languages });
|
|
48
|
+
},
|
|
49
|
+
getAndSetLanguages: function (lang) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
|
+
var languageResponse, languages, error_1, languageResponse, languages, error_2;
|
|
51
|
+
return __generator(this, function (_a) {
|
|
52
|
+
switch (_a.label) {
|
|
53
|
+
case 0:
|
|
54
|
+
_a.trys.push([0, 3, , 9]);
|
|
55
|
+
return [4 /*yield*/, fetch("".concat(window.location.origin, "/languages/").concat(lang, ".json"), {
|
|
56
|
+
method: 'GET',
|
|
57
|
+
cache: 'no-cache',
|
|
58
|
+
})];
|
|
59
|
+
case 1:
|
|
60
|
+
languageResponse = _a.sent();
|
|
61
|
+
return [4 /*yield*/, languageResponse.json()];
|
|
62
|
+
case 2:
|
|
63
|
+
languages = _a.sent();
|
|
64
|
+
localStorage.setItem(constants_1.LANGUAGES, lang);
|
|
65
|
+
set({ languages: languages });
|
|
66
|
+
return [3 /*break*/, 9];
|
|
67
|
+
case 3:
|
|
68
|
+
error_1 = _a.sent();
|
|
69
|
+
if (lang === 'en') {
|
|
70
|
+
setTimeout(function () {
|
|
71
|
+
get().getAndSetLanguages('en');
|
|
72
|
+
}, 2000);
|
|
73
|
+
throw new Error();
|
|
74
|
+
}
|
|
75
|
+
_a.label = 4;
|
|
76
|
+
case 4:
|
|
77
|
+
_a.trys.push([4, 7, , 8]);
|
|
78
|
+
return [4 /*yield*/, fetch("".concat(window.location.origin, "/languages/en.json"), {
|
|
79
|
+
method: 'GET',
|
|
80
|
+
cache: 'no-cache',
|
|
81
|
+
})];
|
|
82
|
+
case 5:
|
|
83
|
+
languageResponse = _a.sent();
|
|
84
|
+
return [4 /*yield*/, languageResponse.json()];
|
|
85
|
+
case 6:
|
|
86
|
+
languages = _a.sent();
|
|
87
|
+
set({ languages: languages });
|
|
88
|
+
return [3 /*break*/, 8];
|
|
89
|
+
case 7:
|
|
90
|
+
error_2 = _a.sent();
|
|
91
|
+
console.error('CRITICAL ERROR LANGUAGE NOT FOUND');
|
|
92
|
+
get().getAndSetLanguages('en');
|
|
93
|
+
return [3 /*break*/, 8];
|
|
94
|
+
case 8: return [3 /*break*/, 9];
|
|
95
|
+
case 9: return [2 /*return*/];
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}); },
|
|
99
|
+
setInitLanguage: function (appType, initLanguage) {
|
|
100
|
+
if (initLanguage === void 0) { initLanguage = 'en'; }
|
|
101
|
+
var brandName = (ui_1.EAppType[appType] ||
|
|
102
|
+
ui_1.EAppType[0]);
|
|
103
|
+
set({ brandName: brandName });
|
|
104
|
+
try {
|
|
105
|
+
var localLanguage = initLanguage || constants_1.DEFAULT_LANGUAGE;
|
|
106
|
+
get().getAndSetLanguages(localLanguage);
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
alert(JSON.stringify(error));
|
|
110
|
+
setTimeout(function () {
|
|
111
|
+
get().getAndSetLanguages('en');
|
|
112
|
+
}, 1000);
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
}); });
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EAppType } from '../../types/ui';
|
|
2
|
+
export interface ZustandLanguageStoreKit extends ZustandLanguageEntitiesKit {
|
|
3
|
+
getAndSetLanguages: (lang: string) => void;
|
|
4
|
+
setInitLanguage: (appType: EAppType) => void;
|
|
5
|
+
setLanguages: (lang: TLanguage, initLanguage?: string) => void;
|
|
6
|
+
}
|
|
7
|
+
interface ZustandLanguageEntitiesKit {
|
|
8
|
+
languages: TLanguage | null;
|
|
9
|
+
brandName: keyof typeof EAppType;
|
|
10
|
+
}
|
|
11
|
+
type TLanguage = {
|
|
12
|
+
name: string;
|
|
13
|
+
dictionary: DeepObject;
|
|
14
|
+
};
|
|
15
|
+
type DeepObject = {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
export {};
|