@billgangcom/theme-lib 1.110.4 → 1.110.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{builder-4Ke7cjNO.cjs → builder-B7hjBRYI.cjs} +2 -2
- package/dist/{builder-CtBMhTyK.js → builder-D_zv5ue0.js} +5 -5
- package/dist/{builder-components-Dz2YlUqA.cjs → builder-components-BjoFBErH.cjs} +1 -1
- package/dist/{builder-components-Bm7ta9iB.js → builder-components-DN-mNdj8.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +293 -6
- package/dist/{charge-C5z1ecd1.cjs → charge-BAP3iPAM.cjs} +1 -1
- package/dist/{charge-APYiCYYq.js → charge-BQUHzEju.js} +6 -6
- package/dist/{checkout-Bher7FGW.cjs → checkout-CUct7uCm.cjs} +1 -1
- package/dist/{checkout-D3Mpwqsj.js → checkout-uzxtu1pZ.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-DgsmVqD7.cjs → index-BBMTjm8A.cjs} +1 -1
- package/dist/{index-Da1yGZge.js → index-BJMeFohP.js} +1 -1
- package/dist/{index-B1QfR20x.cjs → index-BXhAWCRX.cjs} +1 -1
- package/dist/{index-mEkddX3U.cjs → index-CEMbDy4G.cjs} +1 -1
- package/dist/{index-BAFG_paG.js → index-CMECtXvH.js} +5 -5
- package/dist/{index-C8snA9wm.js → index-CX1FV9wS.js} +5 -5
- package/dist/{index-BMaA9qqZ.cjs → index-Cbqz9kIG.cjs} +1 -1
- package/dist/{index-kt3o_lGR.js → index-CzkkQ8sH.js} +5 -5
- package/dist/{index-Crr7n_oM.cjs → index-R_FZBtaZ.cjs} +1 -1
- package/dist/{index-DjOTY2Jm.js → index-hCDY-ip7.js} +5 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.es.js +16 -16
- package/dist/{order-BDiqGe6L.cjs → order-BOaO9a-C.cjs} +1 -1
- package/dist/{order-DLMk34KA.js → order-CdPcB1OE.js} +5 -5
- package/dist/src/App.d.ts +18 -0
- package/dist/src/abstractions/IBlock.d.ts +14 -0
- package/dist/src/abstractions/ISettings.d.ts +3 -0
- package/dist/src/abstractions/PageContext.d.ts +121 -0
- package/dist/src/abstractions/Variable.d.ts +28 -0
- package/dist/src/abstractions/color-variables.d.ts +48 -0
- package/dist/src/abstractions/index.d.ts +4 -0
- package/dist/src/api/constants.d.ts +8 -0
- package/dist/src/api/index.d.ts +2 -0
- package/dist/src/api/request.d.ts +17 -0
- package/dist/src/assets/icon-registry/IconRegistry.d.ts +22 -0
- package/dist/src/assets/icon-registry/libraryIcons.d.ts +1 -0
- package/dist/src/assets/storefront-icons/index.d.ts +23 -0
- package/dist/src/builder/api/fetchAll.d.ts +1 -0
- package/dist/src/builder/api/fetchData.d.ts +14 -0
- package/dist/src/builder/api/fetchFontsData.d.ts +1 -0
- package/dist/src/builder/api/fetchPagesData.d.ts +1 -0
- package/dist/src/builder/api/index.d.ts +4 -0
- package/dist/src/builder/components/AddSections/index.d.ts +5 -0
- package/dist/src/builder/components/AddSections/utils/index.d.ts +5 -0
- package/dist/src/builder/components/AddSectionsBlock/index.d.ts +7 -0
- package/dist/src/builder/components/BlockColors/index.d.ts +7 -0
- package/dist/src/builder/components/BlockSettings/index.d.ts +2 -0
- package/dist/src/builder/components/BlockSettings/settings.d.ts +7 -0
- package/dist/src/builder/components/BlockSettingsHeader/index.d.ts +8 -0
- package/dist/src/builder/components/ExitButton/index.d.ts +5 -0
- package/dist/src/builder/components/Header/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderButtons/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderDevices/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderPreviewButton/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderSaveButton/api/index.d.ts +2 -0
- package/dist/src/builder/components/HeaderSaveButton/index.d.ts +7 -0
- package/dist/src/builder/components/HeaderSaveButton/utils/index.d.ts +6 -0
- package/dist/src/builder/components/HeaderSettings/index.d.ts +4 -0
- package/dist/src/builder/components/HeaderSettingsLanguage/index.d.ts +4 -0
- package/dist/src/builder/components/HeaderSettingsPages/api/index.d.ts +1 -0
- package/dist/src/builder/components/HeaderSettingsPages/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderSettingsZoom/index.d.ts +5 -0
- package/dist/src/builder/components/HeaderSwitchTheme/index.d.ts +4 -0
- package/dist/src/builder/components/ModifyPage/index.d.ts +5 -0
- package/dist/src/builder/components/Navbar/index.d.ts +1 -0
- package/dist/src/builder/components/Preview/index.d.ts +2 -0
- package/dist/src/builder/components/PreviewBlockSidebar/index.d.ts +2 -0
- package/dist/src/builder/components/PreviewContent/index.d.ts +6 -0
- package/dist/src/builder/components/PreviewHeader/index.d.ts +2 -0
- package/dist/src/builder/components/Sidebar/index.d.ts +4 -0
- package/dist/src/builder/components/SidebarLayer/index.d.ts +7 -0
- package/dist/src/builder/components/SidebarLayers/index.d.ts +10 -0
- package/dist/src/builder/components/SidebarSettings/index.d.ts +2 -0
- package/dist/src/builder/components/SidebarTheme/index.d.ts +4 -0
- package/dist/src/builder/components/ThemeSettings/index.d.ts +4 -0
- package/dist/src/builder/components/ThemeSettingsBorders/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsButtons/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsCategories/index.d.ts +1 -0
- package/dist/src/builder/components/ThemeSettingsColors/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsColors/utils/getDuplicateColors.d.ts +2 -0
- package/dist/src/builder/components/ThemeSettingsColors/utils/index.d.ts +1 -0
- package/dist/src/builder/components/ThemeSettingsCurrentColors/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsCurrentColors/tip.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsCurrentFont/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsFonts/index.d.ts +5 -0
- package/dist/src/builder/components/ThemeSettingsHeaderItem/index.d.ts +7 -0
- package/dist/src/builder/components/ThemeSettingsInputs/index.d.ts +5 -0
- package/dist/src/builder/constants/block-icons.d.ts +18 -0
- package/dist/src/builder/index.d.ts +10 -0
- package/dist/src/builder/layout.d.ts +5 -0
- package/dist/src/builder/store/index.d.ts +6 -0
- package/dist/src/builder/store/useColorPickerStore.d.ts +53 -0
- package/dist/src/builder/store/useDeviceStore.d.ts +7 -0
- package/dist/src/builder/store/useFontsStore.d.ts +20 -0
- package/dist/src/builder/store/useLayoutStore.d.ts +7 -0
- package/dist/src/builder/store/useSubmodalStore.d.ts +21 -0
- package/dist/src/builder/store/useTooltipStore.d.ts +6 -0
- package/dist/src/builder/ui/AnimatedPanel/index.d.ts +7 -0
- package/dist/src/builder/ui/ColorPicker/index.d.ts +11 -0
- package/dist/src/builder/ui/ColorPicker/modal.d.ts +2 -0
- package/dist/src/builder/ui/Loader/index.d.ts +1 -0
- package/dist/src/builder/ui/Notification/index.d.ts +13 -0
- package/dist/src/builder/ui/Picker/index.d.ts +9 -0
- package/dist/src/builder/ui/Radio/index.d.ts +13 -0
- package/dist/src/builder/ui/Submodal/index.d.ts +10 -0
- package/dist/src/builder/ui/Tooltip/index.d.ts +6 -0
- package/dist/src/builder/utils/formatLabel.d.ts +1 -0
- package/dist/src/builder/utils/getDisplayName.d.ts +1 -0
- package/dist/src/builder/utils/getModalPosition.d.ts +4 -0
- package/dist/src/builder/utils/index.d.ts +3 -0
- package/dist/src/components/lazy-pages.d.ts +22 -0
- package/dist/src/constants/aspectRatio.d.ts +11 -0
- package/dist/src/constants/blocks.d.ts +79 -0
- package/dist/src/constants/color-variables.d.ts +48 -0
- package/dist/src/constants/device.d.ts +6 -0
- package/dist/src/constants/font.d.ts +3 -0
- package/dist/src/constants/icon.d.ts +2 -0
- package/dist/src/constants/index.d.ts +13 -0
- package/dist/src/constants/local-host.d.ts +1 -0
- package/dist/src/constants/navbar.d.ts +8 -0
- package/dist/src/constants/notification.d.ts +16 -0
- package/dist/src/constants/pages.d.ts +22 -0
- package/dist/src/constants/radius-variables.d.ts +15 -0
- package/dist/src/constants/text-font-keys.d.ts +3 -0
- package/dist/src/constants/theme-settings.d.ts +154 -0
- package/dist/src/exports.d.ts +17 -0
- package/dist/src/hooks/useIconRegistration.d.ts +37 -0
- package/dist/src/lib/createTicket.d.ts +1 -0
- package/dist/src/lib/generateDynamicStyles.d.ts +2 -0
- package/dist/src/lib/getDynamicRoutes.d.ts +1 -0
- package/dist/src/lib/hotReload.d.ts +1 -0
- package/dist/src/lib/index.d.ts +9 -0
- package/dist/src/lib/injectStylesToDOM.d.ts +1 -0
- package/dist/src/lib/loadCustomFonts.d.ts +1 -0
- package/dist/src/lib/setupDynamicFonts.d.ts +2 -0
- package/dist/src/lib/splitTextIntoSpans.d.ts +1 -0
- package/dist/src/lib/useBuilderPages.d.ts +1 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/pages/active-page/index.d.ts +5 -0
- package/dist/src/pages/balance/balance-modal.d.ts +6 -0
- package/dist/src/pages/balance/index.d.ts +1 -0
- package/dist/src/pages/balance/model.d.ts +6 -0
- package/dist/src/pages/builder/index.d.ts +12 -0
- package/dist/src/pages/builder/utils/index.d.ts +1 -0
- package/dist/src/pages/charge/index.d.ts +1 -0
- package/dist/src/pages/checkout/index.d.ts +2 -0
- package/dist/src/pages/checkout/model.d.ts +1 -0
- package/dist/src/pages/dynamic-error-page/index.d.ts +2 -0
- package/dist/src/pages/dynamic-page/api/index.d.ts +1 -0
- package/dist/src/pages/dynamic-page/index.d.ts +6 -0
- package/dist/src/pages/error-page/api/index.d.ts +7 -0
- package/dist/src/pages/error-page/index.d.ts +1 -0
- package/dist/src/pages/home/index.d.ts +6 -0
- package/dist/src/pages/home/model.d.ts +26 -0
- package/dist/src/pages/maintenance/index.d.ts +2 -0
- package/dist/src/pages/not-found-page/index.d.ts +2 -0
- package/dist/src/pages/order/index.d.ts +1 -0
- package/dist/src/pages/order/model.d.ts +92 -0
- package/dist/src/pages/orders/index.d.ts +1 -0
- package/dist/src/pages/orders/model.d.ts +4 -0
- package/dist/src/pages/rewards/index.d.ts +6 -0
- package/dist/src/pages/router-error-page/index.d.ts +3 -0
- package/dist/src/pages/subscription/index.d.ts +1 -0
- package/dist/src/pages/subscription/model.d.ts +1 -0
- package/dist/src/pages/subscriptions/index.d.ts +1 -0
- package/dist/src/pages/subscriptions/model.d.ts +6 -0
- package/dist/src/pages/ticket/index.d.ts +1 -0
- package/dist/src/pages/ticket/model.d.ts +24 -0
- package/dist/src/pages/tickets/index.d.ts +1 -0
- package/dist/src/pages/tickets/model.d.ts +21 -0
- package/dist/src/pages/top-up-balance/index.d.ts +1 -0
- package/dist/src/pages/validation/index.d.ts +5 -0
- package/dist/src/pages/wrapper-page/index.d.ts +2 -0
- package/dist/src/shared/constants/aspect-ratio.d.ts +11 -0
- package/dist/src/shared/constants/color-variables.d.ts +48 -0
- package/dist/src/shared/constants/icon.d.ts +2 -0
- package/dist/src/shared/constants/index.d.ts +5 -0
- package/dist/src/shared/constants/notification.d.ts +16 -0
- package/dist/src/shared/constants/text-font-keys.d.ts +3 -0
- package/dist/src/storefront/api/auth.d.ts +22 -0
- package/dist/src/storefront/api/charge.d.ts +1 -0
- package/dist/src/storefront/api/coupon.d.ts +2 -0
- package/dist/src/storefront/api/customer.d.ts +6 -0
- package/dist/src/storefront/api/discord.d.ts +8 -0
- package/dist/src/storefront/api/fetchGatewaysDetail.d.ts +1 -0
- package/dist/src/storefront/api/fetchGeneral.d.ts +1 -0
- package/dist/src/storefront/api/fetchThemeAndSettings.d.ts +1 -0
- package/dist/src/storefront/api/fetchWithPages.d.ts +11 -0
- package/dist/src/storefront/api/index.d.ts +19 -0
- package/dist/src/storefront/api/order.d.ts +14 -0
- package/dist/src/storefront/api/postBalanceTopUp.d.ts +2 -0
- package/dist/src/storefront/api/postCashappLink.d.ts +3 -0
- package/dist/src/storefront/api/referral.d.ts +3 -0
- package/dist/src/storefront/api/reviews.d.ts +2 -0
- package/dist/src/storefront/api/rewards.d.ts +2 -0
- package/dist/src/storefront/api/signUpReferral.d.ts +2 -0
- package/dist/src/storefront/api/store.d.ts +6 -0
- package/dist/src/storefront/api/subscription.d.ts +22 -0
- package/dist/src/storefront/api/ticket.d.ts +7 -0
- package/dist/src/storefront/api/transactions.d.ts +5 -0
- package/dist/src/storefront/components/ActivePaymentMethod/index.d.ts +2 -0
- package/dist/src/storefront/components/ActiveSubscriptionProduct/index.d.ts +9 -0
- package/dist/src/storefront/components/Auth/index.d.ts +11 -0
- package/dist/src/storefront/components/Auth/otp-input.d.ts +7 -0
- package/dist/src/storefront/components/AuthModal/index.d.ts +6 -0
- package/dist/src/storefront/components/CancelSubscription/index.d.ts +8 -0
- package/dist/src/storefront/components/CashAppVerify/index.d.ts +7 -0
- package/dist/src/storefront/components/ChangePaymentMethod/index.d.ts +7 -0
- package/dist/src/storefront/components/ChangeSubscriptionPlan/index.d.ts +10 -0
- package/dist/src/storefront/components/ChargeBlocksRenderer/index.d.ts +6 -0
- package/dist/src/storefront/components/ChargeItems/index.d.ts +7 -0
- package/dist/src/storefront/components/ChargeStatusBlock/index.d.ts +10 -0
- package/dist/src/storefront/components/CheckoutFooter/index.d.ts +6 -0
- package/dist/src/storefront/components/CheckoutHeader/index.d.ts +7 -0
- package/dist/src/storefront/components/CheckoutItems/index.d.ts +18 -0
- package/dist/src/storefront/components/CheckoutOperational/index.d.ts +26 -0
- package/dist/src/storefront/components/CheckoutOrderMainData/index.d.ts +10 -0
- package/dist/src/storefront/components/CheckoutPrices/index.d.ts +15 -0
- package/dist/src/storefront/components/CheckoutProduct/index.d.ts +8 -0
- package/dist/src/storefront/components/CheckoutProduct/model.d.ts +1 -0
- package/dist/src/storefront/components/ChoosePlanUpgradeMethod/index.d.ts +9 -0
- package/dist/src/storefront/components/ConnectDiscord/index.d.ts +6 -0
- package/dist/src/storefront/components/ConnectDiscord/model.d.ts +22 -0
- package/dist/src/storefront/components/Coupon/index.d.ts +12 -0
- package/dist/src/storefront/components/CustomFields/index.d.ts +13 -0
- package/dist/src/storefront/components/CustomerDashboard/index.d.ts +2 -0
- package/dist/src/storefront/components/DeliveryItem/index.d.ts +7 -0
- package/dist/src/storefront/components/InsufficientBalance/index.d.ts +8 -0
- package/dist/src/storefront/components/LeaveAReview/index.d.ts +9 -0
- package/dist/src/storefront/components/NoItemsBlock/index.d.ts +8 -0
- package/dist/src/storefront/components/OpenDelivery/index.d.ts +8 -0
- package/dist/src/storefront/components/OrderStatusBlock/index.d.ts +9 -0
- package/dist/src/storefront/components/OrdersTable/index.d.ts +16 -0
- package/dist/src/storefront/components/PageLoading/index.d.ts +7 -0
- package/dist/src/storefront/components/PageTitle/index.d.ts +6 -0
- package/dist/src/storefront/components/Pagination/index.d.ts +15 -0
- package/dist/src/storefront/components/PayPalF&FNote/index.d.ts +8 -0
- package/dist/src/storefront/components/PaymentMethod/checkout-balance-payment-method.d.ts +14 -0
- package/dist/src/storefront/components/PaymentMethod/index.d.ts +16 -0
- package/dist/src/storefront/components/PaymentMethod/model.d.ts +21 -0
- package/dist/src/storefront/components/PaymentMethods/index.d.ts +19 -0
- package/dist/src/storefront/components/PreviewRender/index.d.ts +23 -0
- package/dist/src/storefront/components/ProcessingPayment/index.d.ts +1 -0
- package/dist/src/storefront/components/ReferralBlock/index.d.ts +18 -0
- package/dist/src/storefront/components/ReferralBlock/mask.d.ts +1 -0
- package/dist/src/storefront/components/ReferralBlock/referral-modal.d.ts +7 -0
- package/dist/src/storefront/components/ReferralBlock/step-item.d.ts +8 -0
- package/dist/src/storefront/components/SecuredBySsl/index.d.ts +6 -0
- package/dist/src/storefront/components/Sidebar/card.d.ts +7 -0
- package/dist/src/storefront/components/Sidebar/index.d.ts +4 -0
- package/dist/src/storefront/components/Sidebar/nav-list.d.ts +5 -0
- package/dist/src/storefront/components/StatItem/index.d.ts +15 -0
- package/dist/src/storefront/components/StatusIndicator/index.d.ts +7 -0
- package/dist/src/storefront/components/SubmitReview/index.d.ts +7 -0
- package/dist/src/storefront/components/SubscriptionCoupon/index.d.ts +7 -0
- package/dist/src/storefront/components/SubscriptionExpiration/index.d.ts +6 -0
- package/dist/src/storefront/components/SubscriptionExpirationDate/index.d.ts +2 -0
- package/dist/src/storefront/components/SubscriptionProduct/index.d.ts +7 -0
- package/dist/src/storefront/components/SubscriptionProduct/model.d.ts +9 -0
- package/dist/src/storefront/components/SubscriptionStatusBadge/index.d.ts +5 -0
- package/dist/src/storefront/components/SubscriptionsTable/index.d.ts +11 -0
- package/dist/src/storefront/components/Table/index.d.ts +20 -0
- package/dist/src/storefront/components/TermsOfService/index.d.ts +1 -0
- package/dist/src/storefront/components/TicketRow/index.d.ts +5 -0
- package/dist/src/storefront/components/TrackPayment/index.d.ts +8 -0
- package/dist/src/storefront/components/index.d.ts +53 -0
- package/dist/src/storefront/constants/actions.d.ts +3 -0
- package/dist/src/storefront/constants/api.d.ts +2 -0
- package/dist/src/storefront/constants/index.d.ts +3 -0
- package/dist/src/storefront/constants/referralSteps.d.ts +6 -0
- package/dist/src/storefront/constants/routes.d.ts +15 -0
- package/dist/src/storefront/hooks/index.d.ts +2 -0
- package/dist/src/storefront/hooks/useCart.d.ts +186 -0
- package/dist/src/storefront/hooks/useCopy.d.ts +1 -0
- package/dist/src/storefront/index.d.ts +11 -0
- package/dist/src/storefront/models/balance.d.ts +56 -0
- package/dist/src/storefront/models/charge.d.ts +76 -0
- package/dist/src/storefront/models/checkout.d.ts +21 -0
- package/dist/src/storefront/models/coupon.d.ts +5 -0
- package/dist/src/storefront/models/discord.d.ts +18 -0
- package/dist/src/storefront/models/gateway.d.ts +8 -0
- package/dist/src/storefront/models/index.d.ts +16 -0
- package/dist/src/storefront/models/order.d.ts +139 -0
- package/dist/src/storefront/models/payment.d.ts +16 -0
- package/dist/src/storefront/models/post.d.ts +5 -0
- package/dist/src/storefront/models/price.d.ts +5 -0
- package/dist/src/storefront/models/referral.d.ts +12 -0
- package/dist/src/storefront/models/referralCode.d.ts +3 -0
- package/dist/src/storefront/models/rewards.d.ts +72 -0
- package/dist/src/storefront/models/shop.d.ts +38 -0
- package/dist/src/storefront/models/subscription.d.ts +130 -0
- package/dist/src/storefront/models/transaction.d.ts +12 -0
- package/dist/src/storefront/store/index.d.ts +22 -0
- package/dist/src/storefront/store/useApiStore.d.ts +8 -0
- package/dist/src/storefront/store/useBlocksStore.d.ts +23 -0
- package/dist/src/storefront/store/useCartStore.d.ts +48 -0
- package/dist/src/storefront/store/useChooseImageStore.d.ts +11 -0
- package/dist/src/storefront/store/useConfirmationModalStore.d.ts +10 -0
- package/dist/src/storefront/store/useCustomerDashboardStore.d.ts +37 -0
- package/dist/src/storefront/store/useDiscordStore.d.ts +7 -0
- package/dist/src/storefront/store/useErrorStore.d.ts +12 -0
- package/dist/src/storefront/store/useGeneralStore.d.ts +9 -0
- package/dist/src/storefront/store/useHistoryState.d.ts +20 -0
- package/dist/src/storefront/store/useLayersStore.d.ts +42 -0
- package/dist/src/storefront/store/useModalStore.d.ts +6 -0
- package/dist/src/storefront/store/useNavbarStore.d.ts +7 -0
- package/dist/src/storefront/store/useNotificationStore.d.ts +7 -0
- package/dist/src/storefront/store/usePagesStore.d.ts +33 -0
- package/dist/src/storefront/store/usePaginationPagesStore.d.ts +7 -0
- package/dist/src/storefront/store/usePreviewStore.d.ts +26 -0
- package/dist/src/storefront/store/useSettingsStore.d.ts +12 -0
- package/dist/src/storefront/store/useShareLinkStore.d.ts +6 -0
- package/dist/src/storefront/store/useStorefrontStore.d.ts +23 -0
- package/dist/src/storefront/store/useSubscriptionStore.d.ts +7 -0
- package/dist/src/storefront/store/useThemeSettingsStore.d.ts +21 -0
- package/dist/src/storefront/ui/ActiveBadge/index.d.ts +5 -0
- package/dist/src/storefront/ui/InputRange/index.d.ts +9 -0
- package/dist/src/storefront/ui/ProgressBar/index.d.ts +8 -0
- package/dist/src/storefront/ui/Rating/index.d.ts +8 -0
- package/dist/src/storefront/ui/Timer/index.d.ts +6 -0
- package/dist/src/storefront/ui/index.d.ts +5 -0
- package/dist/src/storefront/utils/MarkdownText.d.ts +5 -0
- package/dist/src/storefront/utils/checkParams.d.ts +5 -0
- package/dist/src/storefront/utils/checkToken.d.ts +1 -0
- package/dist/src/storefront/utils/clearQueryParams.d.ts +1 -0
- package/dist/src/storefront/utils/index.d.ts +16 -0
- package/dist/src/storefront/utils/parseDraftJsText.d.ts +1 -0
- package/dist/src/storefront/utils/recapcha.d.ts +13 -0
- package/dist/src/storefront/utils/resizeManager.d.ts +12 -0
- package/dist/src/storefront/utils/showNotification.d.ts +3 -0
- package/dist/src/storefront/utils/stable-text.d.ts +20 -0
- package/dist/src/storefront/utils/useAdaptiveStyles.d.ts +2 -0
- package/dist/src/storefront/utils/useBalance.d.ts +2 -0
- package/dist/src/storefront/utils/useCart.d.ts +1 -0
- package/dist/src/storefront/utils/useGeneralInfo.d.ts +4 -0
- package/dist/src/storefront/utils/useMarkdownIt.d.ts +2 -0
- package/dist/src/storefront/utils/useTrackingAnalytics.d.ts +2 -0
- package/dist/src/ui/Accordion/index.d.ts +8 -0
- package/dist/src/ui/AlignText/index.d.ts +7 -0
- package/dist/src/ui/BuilderModal/index.d.ts +9 -0
- package/dist/src/ui/Button/index.d.ts +16 -0
- package/dist/src/ui/ButtonSettings/index.d.ts +14 -0
- package/dist/src/ui/ButtonTypeSettings/index.d.ts +11 -0
- package/dist/src/ui/ButtonsSettings/index.d.ts +28 -0
- package/dist/src/ui/ButtonsSettings/popup.d.ts +13 -0
- package/dist/src/ui/CategorySettings/index.d.ts +48 -0
- package/dist/src/ui/Checkbox/index.d.ts +7 -0
- package/dist/src/ui/ChooseImage/api/index.d.ts +2 -0
- package/dist/src/ui/ChooseImage/index.d.ts +17 -0
- package/dist/src/ui/ConfirmationModal/index.d.ts +2 -0
- package/dist/src/ui/ErrorableBlock/index.d.ts +5 -0
- package/dist/src/ui/FormSettings/index.d.ts +65 -0
- package/dist/src/ui/FormSettings/popup.d.ts +70 -0
- package/dist/src/ui/GroupCardModal/index.d.ts +14 -0
- package/dist/src/ui/HeaderButtons/index.d.ts +47 -0
- package/dist/src/ui/Icon/index.d.ts +13 -0
- package/dist/src/ui/Input/index.d.ts +25 -0
- package/dist/src/ui/InputSettings/index.d.ts +22 -0
- package/dist/src/ui/ItemsSettings/index.d.ts +70 -0
- package/dist/src/ui/ItemsSettings/popup.d.ts +84 -0
- package/dist/src/ui/LayoutSettings/index.d.ts +13 -0
- package/dist/src/ui/Link/index.d.ts +10 -0
- package/dist/src/ui/ListingSelector/index.d.ts +134 -0
- package/dist/src/ui/ListingSelector/popup.d.ts +20 -0
- package/dist/src/ui/Loader/index.d.ts +4 -0
- package/dist/src/ui/LoaderBuilder/index.d.ts +2 -0
- package/dist/src/ui/MetaInfoPost/index.d.ts +6 -0
- package/dist/src/ui/Modal/index.d.ts +9 -0
- package/dist/src/ui/NotificationAntistock/index.d.ts +11 -0
- package/dist/src/ui/NotificationBuilder/index.d.ts +13 -0
- package/dist/src/ui/OtherSettings/index.d.ts +15 -0
- package/dist/src/ui/PagesSettings/index.d.ts +26 -0
- package/dist/src/ui/ProductCardButtons/index.d.ts +10 -0
- package/dist/src/ui/ProductCardModal/index.d.ts +10 -0
- package/dist/src/ui/ProductOptions/index.d.ts +13 -0
- package/dist/src/ui/Radio/index.d.ts +14 -0
- package/dist/src/ui/RangeSelector/index.d.ts +11 -0
- package/dist/src/ui/Select/index.d.ts +20 -0
- package/dist/src/ui/Select/utils/index.d.ts +2 -0
- package/dist/src/ui/SelectInfiniteList/index.d.ts +20 -0
- package/dist/src/ui/SelectInfiniteList/utils/index.d.ts +2 -0
- package/dist/src/ui/SelectTypeText/index.d.ts +8 -0
- package/dist/src/ui/ShareLink/index.d.ts +5 -0
- package/dist/src/ui/Switch/index.d.ts +11 -0
- package/dist/src/ui/TextSettings/index.d.ts +20 -0
- package/dist/src/ui/Textarea/index.d.ts +13 -0
- package/dist/src/ui/TextareaSettings/index.d.ts +11 -0
- package/dist/src/ui/Tip/index.d.ts +10 -0
- package/dist/src/ui/TypesText/index.d.ts +7 -0
- package/dist/src/ui/Wrapper/index.d.ts +11 -0
- package/dist/src/ui/index.d.ts +44 -0
- package/dist/{subscription-CfSbneE9.js → subscription-DIDUTEI3.js} +5 -5
- package/dist/{subscription-CN0GP1i3.cjs → subscription-iNnLGi0T.cjs} +1 -1
- package/dist/{ticket-CDRAyz3r.js → ticket-B0VGIvyK.js} +5 -5
- package/dist/{ticket-Disch8gb.cjs → ticket-DXz_-29l.cjs} +1 -1
- package/dist/{top-up-r9pRDkRB.cjs → top-up-B7E7FUjn.cjs} +1 -1
- package/dist/{top-up-DEMHwk2Q.js → top-up-BhB8jhP6.js} +5 -5
- package/dist/ui-components-BTotDG_w.js +6447 -0
- package/dist/ui-components-CWLDlDmG.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +6 -6
- package/dist/{validation-HSAYPvwb.cjs → validation-BVAD1q1L.cjs} +1 -1
- package/dist/{validation-BwaClAh8.js → validation-jCwzu5MC.js} +5 -5
- package/package.json +3 -2
- package/dist/App-Clwk7ILO.js +0 -315
- package/dist/App-txB8kbk7.cjs +0 -1
- package/dist/ui-components-CDqqhvCf.js +0 -11007
- package/dist/ui-components-DcRUDS1O.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function checkToken(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function clearQueryParams(): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type ClassName = string | undefined | false | null;
|
|
2
|
+
interface PriceSchema {
|
|
3
|
+
amount: number;
|
|
4
|
+
currency?: string;
|
|
5
|
+
quantity?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const ccn: (...classNames: ClassName[]) => string;
|
|
8
|
+
export declare const convertCfImageIdToUrl: (cfImageId: string, imageWidth?: string) => string;
|
|
9
|
+
export declare const formatPrice: (price: PriceSchema) => string;
|
|
10
|
+
export declare const percentageDifference: (oldValue: number, newValue: number) => number;
|
|
11
|
+
export declare const normalizeInterval: (recurringIntervalDays: number) => string;
|
|
12
|
+
export declare const formatTimestamp: (timestamp: number | string) => string;
|
|
13
|
+
export declare const extractDateAndTime: (isoTime: string) => string[];
|
|
14
|
+
export declare const fromLocalStorage: <T>(key: string) => T | null;
|
|
15
|
+
export declare const toLocalStorage: (key: string, value: unknown) => void;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseDraftJsText: (text: string) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReCAPTCHA from 'react-google-recaptcha';
|
|
3
|
+
export declare const SITE_KEY = "6LdQiIIpAAAAAAkhvhS9zuo5WNS5mAzZrALD9cCa";
|
|
4
|
+
export declare const ANTISTOCK_SITE_KEY = "6Ld0EgYrAAAAAF5_Zqm8S4ZrbCZu6s1u7evUlL3l";
|
|
5
|
+
type ReCaptchaContextType = {
|
|
6
|
+
recaptchaRef: React.RefObject<ReCAPTCHA>;
|
|
7
|
+
executeRecaptcha: () => Promise<string | null>;
|
|
8
|
+
};
|
|
9
|
+
export declare const ReCaptchaProvider: React.FC<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const useReCaptcha: () => ReCaptchaContextType;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Callback = (width: number) => void;
|
|
2
|
+
declare class ResizeManager {
|
|
3
|
+
private observer;
|
|
4
|
+
private callbacks;
|
|
5
|
+
constructor();
|
|
6
|
+
private handleWindowResize;
|
|
7
|
+
observe(element: HTMLElement, callback: Callback): void;
|
|
8
|
+
unobserve(element: HTMLElement, callback?: Callback): void;
|
|
9
|
+
disconnect(): void;
|
|
10
|
+
}
|
|
11
|
+
declare const resizeManager: ResizeManager;
|
|
12
|
+
export default resizeManager;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface StableTextProps {
|
|
3
|
+
children: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
as?: keyof JSX.IntrinsicElements;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Компонент для стабилизации текста, чтобы избежать проблем с автопереводчиком
|
|
10
|
+
* Работает путем рендеринга текста в HTML canvas вместо обычного текстового узла
|
|
11
|
+
* или используя специальную технику для стабилизации обычного текста
|
|
12
|
+
*/
|
|
13
|
+
export declare const StableText: React.FC<StableTextProps>;
|
|
14
|
+
/**
|
|
15
|
+
* Компонент-обертка для кнопки, который делает её текст устойчивым к автопереводчику
|
|
16
|
+
*/
|
|
17
|
+
export declare const StableButton: React.FC<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
18
|
+
children: string;
|
|
19
|
+
}>;
|
|
20
|
+
export default StableText;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../hooks/useCart';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Size = 's' | 'm' | 'l';
|
|
2
|
+
export type TypeButton = 'Primary' | 'Secondary' | 'Tertiary' | 'Special';
|
|
3
|
+
interface Props {
|
|
4
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
size?: Size;
|
|
10
|
+
type?: TypeButton;
|
|
11
|
+
dangerouslySetInnerHTML?: {
|
|
12
|
+
__html: string | JSX.Element[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const Button: React.FC<Props>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type Size = 's' | 'm' | 'l';
|
|
2
|
+
export type TypeButton = 'Primary' | 'Secondary' | 'Tertiary';
|
|
3
|
+
interface Props {
|
|
4
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
size?: Size;
|
|
10
|
+
type?: TypeButton;
|
|
11
|
+
withoutHover?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const ButtonSettings: React.FC<Props>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonType } from '../ButtonsSettings';
|
|
3
|
+
interface Props {
|
|
4
|
+
buttons: ButtonType[];
|
|
5
|
+
setButtons: (value: ButtonType[]) => void;
|
|
6
|
+
deletable?: boolean;
|
|
7
|
+
addable?: boolean;
|
|
8
|
+
editableLink?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const ButtonTypeSettings: React.FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextType } from '../TypesText';
|
|
3
|
+
import { TypeButton } from '../Button';
|
|
4
|
+
export type Destination = 'Open Link' | 'Go to Page';
|
|
5
|
+
export interface ButtonType {
|
|
6
|
+
image?: string;
|
|
7
|
+
type: TypeButton;
|
|
8
|
+
id: string;
|
|
9
|
+
typesText: TextType[];
|
|
10
|
+
destination: Destination;
|
|
11
|
+
link?: string;
|
|
12
|
+
text: {
|
|
13
|
+
'en-US': string;
|
|
14
|
+
};
|
|
15
|
+
page: string;
|
|
16
|
+
openInNewTab: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface Props {
|
|
19
|
+
isActiveButtons: boolean;
|
|
20
|
+
setIsActiveButtons: (value: boolean) => void;
|
|
21
|
+
buttons: ButtonType[];
|
|
22
|
+
setButtons: (value: ButtonType[]) => void;
|
|
23
|
+
editableLink?: boolean;
|
|
24
|
+
addable?: boolean;
|
|
25
|
+
deletable?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const ButtonsSettings: React.FC<Props>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ButtonType } from '.';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
activeButton: ButtonType;
|
|
5
|
+
setActiveButton: (value: ButtonType | null) => void;
|
|
6
|
+
popupPosition: {
|
|
7
|
+
top: number;
|
|
8
|
+
left: number;
|
|
9
|
+
};
|
|
10
|
+
editableLink?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const ButtonPopup: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Other, Tags } from '../OtherSettings';
|
|
3
|
+
import { AspectRatio } from '@constants';
|
|
4
|
+
interface ItemBase {
|
|
5
|
+
images: string[];
|
|
6
|
+
name: string;
|
|
7
|
+
id: number;
|
|
8
|
+
}
|
|
9
|
+
interface CommomPropsBase {
|
|
10
|
+
isActiveItems?: boolean;
|
|
11
|
+
setIsActiveItems?: (value: boolean) => void;
|
|
12
|
+
items: number[];
|
|
13
|
+
setItems: (value: number[]) => void;
|
|
14
|
+
title?: string;
|
|
15
|
+
subtitle?: string;
|
|
16
|
+
editable?: boolean;
|
|
17
|
+
draggable?: boolean;
|
|
18
|
+
withImage?: boolean;
|
|
19
|
+
deletable?: boolean;
|
|
20
|
+
addable?: boolean;
|
|
21
|
+
other?: Other[];
|
|
22
|
+
addableOptions?: Record<string, any>;
|
|
23
|
+
tags?: Tags[];
|
|
24
|
+
hasRangeSelector?: boolean;
|
|
25
|
+
rangeSelectorOptions?: {
|
|
26
|
+
count: number;
|
|
27
|
+
setCount: (value: number) => void;
|
|
28
|
+
min?: number;
|
|
29
|
+
max?: number;
|
|
30
|
+
step?: number;
|
|
31
|
+
label?: string;
|
|
32
|
+
};
|
|
33
|
+
limit?: number;
|
|
34
|
+
aspectRatio?: AspectRatio;
|
|
35
|
+
setAspectRatio?: (value: AspectRatio) => void;
|
|
36
|
+
autoScrollInterval?: {
|
|
37
|
+
setScrollInterval: React.Dispatch<React.SetStateAction<number>>;
|
|
38
|
+
scrollInterval: number;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
interface SelectProps<T extends ItemBase> extends CommomPropsBase {
|
|
42
|
+
itemsType: 'select';
|
|
43
|
+
itemsPlaceholder?: never;
|
|
44
|
+
itemsOptions: T[];
|
|
45
|
+
}
|
|
46
|
+
type Props<T extends ItemBase> = SelectProps<T>;
|
|
47
|
+
export declare const CategorySettings: <T extends ItemBase>(props: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
label?: string;
|
|
4
|
+
onChange: (images: string[]) => void;
|
|
5
|
+
activeImage?: string;
|
|
6
|
+
tip?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ChooseImage: React.FC<Props>;
|
|
9
|
+
export interface Image {
|
|
10
|
+
cfId: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
fileName: string;
|
|
13
|
+
id: number;
|
|
14
|
+
isSelected: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const ChooseImageModal: React.FC;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModalOption } from './popup';
|
|
3
|
+
import { Other } from '../OtherSettings';
|
|
4
|
+
import { ItemBase } from '..';
|
|
5
|
+
interface CommomPropsBase<T extends ItemBase> {
|
|
6
|
+
isActiveItems?: boolean;
|
|
7
|
+
setIsActiveItems?: (value: boolean) => void;
|
|
8
|
+
items: T[];
|
|
9
|
+
setItems: (value: T[]) => void;
|
|
10
|
+
title?: string;
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
editable?: boolean;
|
|
13
|
+
draggable?: boolean;
|
|
14
|
+
withImage?: boolean;
|
|
15
|
+
deletable?: boolean;
|
|
16
|
+
addable?: boolean;
|
|
17
|
+
other?: Other[];
|
|
18
|
+
addableOptions?: Record<string, any>;
|
|
19
|
+
hasRangeSelector?: boolean;
|
|
20
|
+
rangeSelectorOptions?: {
|
|
21
|
+
count: number;
|
|
22
|
+
setCount: (value: number) => void;
|
|
23
|
+
min?: number;
|
|
24
|
+
max?: number;
|
|
25
|
+
step?: number;
|
|
26
|
+
label?: string;
|
|
27
|
+
};
|
|
28
|
+
limit?: number;
|
|
29
|
+
modalOptions?: ModalOption<T>[];
|
|
30
|
+
autoScrollInterval?: {
|
|
31
|
+
setScrollInterval: React.Dispatch<React.SetStateAction<number>>;
|
|
32
|
+
scrollInterval: number;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
interface SelectProps<T extends ItemBase> extends CommomPropsBase<T> {
|
|
36
|
+
itemsType: 'select';
|
|
37
|
+
itemsPlaceholder?: never;
|
|
38
|
+
itemsOptions: string[];
|
|
39
|
+
}
|
|
40
|
+
interface InputProps<T extends ItemBase> extends CommomPropsBase<T> {
|
|
41
|
+
itemsType: 'input';
|
|
42
|
+
itemsPlaceholder?: string;
|
|
43
|
+
itemsOptions?: never;
|
|
44
|
+
}
|
|
45
|
+
interface ImageProps<T extends ItemBase> extends CommomPropsBase<T> {
|
|
46
|
+
itemsType: 'image';
|
|
47
|
+
itemsPlaceholder?: never;
|
|
48
|
+
itemsOptions?: never;
|
|
49
|
+
}
|
|
50
|
+
type Props<T extends ItemBase> = SelectProps<T> | InputProps<T> | ImageProps<T>;
|
|
51
|
+
export interface FormItem extends ItemBase {
|
|
52
|
+
placeholder?: {
|
|
53
|
+
'en-US': string;
|
|
54
|
+
};
|
|
55
|
+
title?: {
|
|
56
|
+
'en-US': string;
|
|
57
|
+
};
|
|
58
|
+
type?: 'String' | 'Number';
|
|
59
|
+
maxSymbols: number;
|
|
60
|
+
withTitle?: boolean;
|
|
61
|
+
role?: string;
|
|
62
|
+
hasRole?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export declare const FormSettings: (props: Props<FormItem>) => import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ItemBase } from '..';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ImageOption<T> {
|
|
4
|
+
type: 'image';
|
|
5
|
+
label?: string;
|
|
6
|
+
field: keyof T;
|
|
7
|
+
}
|
|
8
|
+
interface TextOption<T> {
|
|
9
|
+
type: 'text';
|
|
10
|
+
label?: string;
|
|
11
|
+
field: {
|
|
12
|
+
type: keyof T;
|
|
13
|
+
text: keyof T;
|
|
14
|
+
alignText: keyof T;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
interface InputOption<T> {
|
|
18
|
+
type: 'input';
|
|
19
|
+
label?: string;
|
|
20
|
+
field: keyof T;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
}
|
|
23
|
+
interface InputNumberOption<T> {
|
|
24
|
+
type: 'inputNumber';
|
|
25
|
+
label?: string;
|
|
26
|
+
field: keyof T;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
}
|
|
29
|
+
interface InputSwitchOption<T> {
|
|
30
|
+
type: 'inputSwitch';
|
|
31
|
+
inputLabel?: string;
|
|
32
|
+
switchLabel?: string;
|
|
33
|
+
field: {
|
|
34
|
+
text: keyof T;
|
|
35
|
+
switch: keyof T;
|
|
36
|
+
};
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
}
|
|
39
|
+
interface ListOption<T> {
|
|
40
|
+
type: 'list';
|
|
41
|
+
label?: string;
|
|
42
|
+
field: keyof T;
|
|
43
|
+
draggable?: boolean;
|
|
44
|
+
deletable?: boolean;
|
|
45
|
+
itemsOptions: T[];
|
|
46
|
+
}
|
|
47
|
+
interface SelectOption<T> {
|
|
48
|
+
type: 'select';
|
|
49
|
+
label?: string;
|
|
50
|
+
field: keyof T;
|
|
51
|
+
itemsOptions: string[];
|
|
52
|
+
leftAddonOptions?: {
|
|
53
|
+
value: string;
|
|
54
|
+
addon: React.ReactNode;
|
|
55
|
+
}[];
|
|
56
|
+
switcher?: string;
|
|
57
|
+
}
|
|
58
|
+
export type ModalOption<T> = ImageOption<T> | TextOption<T> | InputOption<T> | InputSwitchOption<T> | ListOption<T> | SelectOption<T> | InputNumberOption<T>;
|
|
59
|
+
interface Props<T extends ItemBase> {
|
|
60
|
+
activeItem: T;
|
|
61
|
+
setActiveItem: (value: T | null) => void;
|
|
62
|
+
popupPosition: {
|
|
63
|
+
top: number;
|
|
64
|
+
left: number;
|
|
65
|
+
};
|
|
66
|
+
setIsOpenModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
67
|
+
modalOptions: ModalOption<T>[];
|
|
68
|
+
}
|
|
69
|
+
export declare const ItemPopup: React.ForwardRefExoticComponent<Props<ItemBase> & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PageContext } from '../../abstractions';
|
|
3
|
+
import { ListingData } from '..';
|
|
4
|
+
interface ModalProps {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
pageContext: PageContext;
|
|
8
|
+
groupData: ListingData<'GROUP'>['groupData'];
|
|
9
|
+
setProductId: React.Dispatch<React.SetStateAction<number | null>>;
|
|
10
|
+
setIsProductModalOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
|
+
setShowDropdown: React.Dispatch<React.SetStateAction<boolean>>;
|
|
12
|
+
}
|
|
13
|
+
export declare const GroupCardModal: React.FC<ModalProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Product } from '../../abstractions';
|
|
3
|
+
interface Props {
|
|
4
|
+
shopping: boolean;
|
|
5
|
+
signUp: boolean;
|
|
6
|
+
isShowUserInfo?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const HeaderButtons: React.FC<Props>;
|
|
9
|
+
export declare const ShoppingButton: React.FC;
|
|
10
|
+
interface ActiveProduct extends Product {
|
|
11
|
+
activeVariantId?: number;
|
|
12
|
+
quantity?: number;
|
|
13
|
+
chargeType: 'ONE_TIME' | 'RECURRING';
|
|
14
|
+
}
|
|
15
|
+
interface ShoppingModalCartProps {
|
|
16
|
+
activeProducts: ActiveProduct[];
|
|
17
|
+
isCartNotEmpty: boolean;
|
|
18
|
+
isOpen: boolean;
|
|
19
|
+
close: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const ShoppingModalCart: React.FC<ShoppingModalCartProps>;
|
|
22
|
+
export declare const EmptyCart: React.FC;
|
|
23
|
+
export declare const UserInfo: React.FC<{
|
|
24
|
+
signUp: boolean;
|
|
25
|
+
close?: () => void;
|
|
26
|
+
}>;
|
|
27
|
+
interface PagesMobileModalProps extends PagesMobileMenuProps {
|
|
28
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const PagesMobileModal: React.FC<PagesMobileModalProps>;
|
|
31
|
+
interface PagesMobileMenuProps {
|
|
32
|
+
logo: JSX.Element;
|
|
33
|
+
signUp: boolean;
|
|
34
|
+
pages: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: {
|
|
37
|
+
'en-US': string;
|
|
38
|
+
};
|
|
39
|
+
path: string;
|
|
40
|
+
}[];
|
|
41
|
+
}
|
|
42
|
+
export declare const PagesMobileMenu: React.FC<PagesMobileMenuProps>;
|
|
43
|
+
interface BurgerMenuButtonProps {
|
|
44
|
+
setIsOpenModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
45
|
+
}
|
|
46
|
+
export declare const BurgerMenuButton: React.FC<BurgerMenuButtonProps>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
name: string;
|
|
5
|
+
fill?: string;
|
|
6
|
+
hoverable?: boolean;
|
|
7
|
+
onClick?: React.MouseEventHandler<SVGSVGElement>;
|
|
8
|
+
className?: string;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const Icon: React.FC<Props>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
value: string;
|
|
8
|
+
type?: 'text' | 'number' | 'password';
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
regex?: string;
|
|
14
|
+
paddingless?: boolean;
|
|
15
|
+
borderless?: boolean;
|
|
16
|
+
editable?: boolean;
|
|
17
|
+
isSearch?: boolean;
|
|
18
|
+
centered?: boolean;
|
|
19
|
+
maxSymbols?: number;
|
|
20
|
+
onFocus?: () => void;
|
|
21
|
+
rightIcon?: React.ReactNode;
|
|
22
|
+
leftIcon?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare const Input: React.FC<Props>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
value: string;
|
|
8
|
+
type?: 'text' | 'number';
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
regex?: string;
|
|
14
|
+
paddingless?: boolean;
|
|
15
|
+
borderless?: boolean;
|
|
16
|
+
editable?: boolean;
|
|
17
|
+
isSearch?: boolean;
|
|
18
|
+
postfix?: string;
|
|
19
|
+
id?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const InputSettings: React.FC<Props>;
|
|
22
|
+
export {};
|