@billgangcom/theme-lib 1.110.4 → 1.110.5
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/{App-txB8kbk7.cjs → App-BwVII14K.cjs} +1 -1
- package/dist/{App-Clwk7ILO.js → App-ytDoD626.js} +21 -21
- package/dist/{builder-4Ke7cjNO.cjs → builder-BLDXBzNl.cjs} +2 -2
- package/dist/{builder-CtBMhTyK.js → builder-C64dSizd.js} +5 -5
- package/dist/{builder-components-Dz2YlUqA.cjs → builder-components-DHTh1VoV.cjs} +1 -1
- package/dist/{builder-components-Bm7ta9iB.js → builder-components-FfKRBcLk.js} +4 -4
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +3 -3
- package/dist/{charge-C5z1ecd1.cjs → charge-BHULUGTw.cjs} +1 -1
- package/dist/{charge-APYiCYYq.js → charge-BcGATQ-j.js} +6 -6
- package/dist/{checkout-Bher7FGW.cjs → checkout-C_l1R6-u.cjs} +1 -1
- package/dist/{checkout-D3Mpwqsj.js → checkout-DzoPtqLk.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-Da1yGZge.js → index-BLcplkmB.js} +1 -1
- package/dist/{index-B1QfR20x.cjs → index-BWeBpiO8.cjs} +1 -1
- package/dist/{index-kt3o_lGR.js → index-Bj_McHvo.js} +5 -5
- package/dist/{index-BMaA9qqZ.cjs → index-C23qWl0W.cjs} +1 -1
- package/dist/{index-C8snA9wm.js → index-C2mw0EhF.js} +5 -5
- package/dist/{index-DjOTY2Jm.js → index-Cl9CSdbF.js} +5 -5
- package/dist/{index-mEkddX3U.cjs → index-DugPvosX.cjs} +1 -1
- package/dist/{index-BAFG_paG.js → index-DyfD4eoN.js} +5 -5
- package/dist/{index-DgsmVqD7.cjs → index-T0XXq2pq.cjs} +1 -1
- package/dist/{index-Crr7n_oM.cjs → index-T7iWZCzU.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.es.js +7 -7
- package/dist/{order-BDiqGe6L.cjs → order-_mx45K-F.cjs} +1 -1
- package/dist/{order-DLMk34KA.js → order-rZVNwk6i.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/icon-registry/runtime.d.ts +8 -0
- package/dist/src/assets/icons/index.d.ts +3 -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-CZ9Buxql.js} +5 -5
- package/dist/{subscription-CN0GP1i3.cjs → subscription-D-GVTc5C.cjs} +1 -1
- package/dist/{ticket-CDRAyz3r.js → ticket-D8MxvdiA.js} +5 -5
- package/dist/{ticket-Disch8gb.cjs → ticket-SllRZ1vs.cjs} +1 -1
- package/dist/{top-up-DEMHwk2Q.js → top-up-7XHWZMR7.js} +5 -5
- package/dist/{top-up-r9pRDkRB.cjs → top-up-CyEK2j7V.cjs} +1 -1
- package/dist/ui-components-D2ccINdB.cjs +1 -0
- package/dist/ui-components-DSaAYQJp.js +9475 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-BwaClAh8.js → validation-DOeo0z9F.js} +5 -5
- package/dist/{validation-HSAYPvwb.cjs → validation-_p4G1oC2.cjs} +1 -1
- package/package.json +3 -2
- package/dist/ui-components-CDqqhvCf.js +0 -11007
- package/dist/ui-components-DcRUDS1O.cjs +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModalOption } from './popup';
|
|
3
|
+
import { Other } from '../OtherSettings';
|
|
4
|
+
import { AspectRatio, TypeFontKeys } from '@constants';
|
|
5
|
+
export interface ItemBase {
|
|
6
|
+
images: string[];
|
|
7
|
+
name: {
|
|
8
|
+
'en-US': string;
|
|
9
|
+
};
|
|
10
|
+
id: string;
|
|
11
|
+
}
|
|
12
|
+
interface CommomPropsBase<T extends ItemBase> {
|
|
13
|
+
isActiveItems?: boolean;
|
|
14
|
+
setIsActiveItems?: (value: boolean) => void;
|
|
15
|
+
items: T[];
|
|
16
|
+
setItems: (value: T[]) => void;
|
|
17
|
+
title?: string;
|
|
18
|
+
subtitle?: string;
|
|
19
|
+
editable?: boolean;
|
|
20
|
+
draggable?: boolean;
|
|
21
|
+
withImage?: boolean;
|
|
22
|
+
deletable?: boolean;
|
|
23
|
+
addable?: boolean;
|
|
24
|
+
other?: Other[];
|
|
25
|
+
addableOptions?: Record<string, any>;
|
|
26
|
+
tip?: string;
|
|
27
|
+
hasRangeSelector?: boolean;
|
|
28
|
+
rangeSelectorOptions?: {
|
|
29
|
+
count: number;
|
|
30
|
+
setCount: (value: number) => void;
|
|
31
|
+
min?: number;
|
|
32
|
+
max?: number;
|
|
33
|
+
step?: number;
|
|
34
|
+
label?: string;
|
|
35
|
+
};
|
|
36
|
+
limit?: number;
|
|
37
|
+
modalOptions?: ModalOption<T>[];
|
|
38
|
+
typeFont?: TypeFontKeys;
|
|
39
|
+
setTypeFont?: (value: TypeFontKeys) => void;
|
|
40
|
+
aspectRatio?: AspectRatio;
|
|
41
|
+
setAspectRatio?: React.Dispatch<React.SetStateAction<AspectRatio>>;
|
|
42
|
+
autoInterval?: {
|
|
43
|
+
setAutoInterval: React.Dispatch<React.SetStateAction<number>>;
|
|
44
|
+
autoInterval: number;
|
|
45
|
+
title?: string;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
interface SelectProps<T extends ItemBase> extends CommomPropsBase<T> {
|
|
49
|
+
itemsType: 'select';
|
|
50
|
+
itemsPlaceholder?: never;
|
|
51
|
+
itemsOptions: T[];
|
|
52
|
+
}
|
|
53
|
+
interface SelectInfiniteListProps<T extends ItemBase> extends CommomPropsBase<T> {
|
|
54
|
+
itemsType: 'selectInfiniteList';
|
|
55
|
+
itemsPlaceholder?: never;
|
|
56
|
+
itemsOptions: T[];
|
|
57
|
+
}
|
|
58
|
+
interface InputProps<T extends ItemBase> extends CommomPropsBase<T> {
|
|
59
|
+
itemsType: 'input';
|
|
60
|
+
itemsPlaceholder?: string;
|
|
61
|
+
itemsOptions?: never;
|
|
62
|
+
}
|
|
63
|
+
interface ImageProps<T extends ItemBase> extends CommomPropsBase<T> {
|
|
64
|
+
itemsType: 'image';
|
|
65
|
+
itemsPlaceholder?: never;
|
|
66
|
+
itemsOptions?: never;
|
|
67
|
+
}
|
|
68
|
+
type Props<T extends ItemBase> = SelectProps<T> | InputProps<T> | ImageProps<T> | SelectInfiniteListProps<T>;
|
|
69
|
+
export declare const ItemsSettings: <T extends ItemBase = ItemBase>(props: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
typeFont: keyof T;
|
|
15
|
+
alignText: keyof T;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
interface InputOption<T> {
|
|
19
|
+
type: 'input';
|
|
20
|
+
label?: string;
|
|
21
|
+
field: keyof T;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
}
|
|
24
|
+
interface InputSwitchOption<T> {
|
|
25
|
+
type: 'inputSwitch';
|
|
26
|
+
inputLabel?: string;
|
|
27
|
+
switchLabel?: string;
|
|
28
|
+
field: {
|
|
29
|
+
text: keyof T;
|
|
30
|
+
switch: keyof T;
|
|
31
|
+
};
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
}
|
|
34
|
+
interface ListOption<T> {
|
|
35
|
+
type: 'list';
|
|
36
|
+
label?: string;
|
|
37
|
+
field: keyof T;
|
|
38
|
+
draggable?: boolean;
|
|
39
|
+
deletable?: boolean;
|
|
40
|
+
editable?: boolean;
|
|
41
|
+
itemsOptions: T[];
|
|
42
|
+
addableOptions?: Record<string, any>;
|
|
43
|
+
modalOptions?: ModalOption<any>[];
|
|
44
|
+
}
|
|
45
|
+
interface SelectOption<T> {
|
|
46
|
+
type: 'select';
|
|
47
|
+
label?: string;
|
|
48
|
+
field: keyof T;
|
|
49
|
+
itemsOptions: string[];
|
|
50
|
+
leftAddonOptions?: {
|
|
51
|
+
value: string;
|
|
52
|
+
addon: React.ReactNode;
|
|
53
|
+
}[];
|
|
54
|
+
switcher?: keyof T;
|
|
55
|
+
}
|
|
56
|
+
interface SelectInfiniteListOption<T> {
|
|
57
|
+
type: 'selectInfiniteList';
|
|
58
|
+
label?: string;
|
|
59
|
+
field: keyof T;
|
|
60
|
+
itemsOptions: string[];
|
|
61
|
+
leftAddonOptions?: {
|
|
62
|
+
value: string;
|
|
63
|
+
addon: React.ReactNode;
|
|
64
|
+
}[];
|
|
65
|
+
switcher?: keyof T;
|
|
66
|
+
}
|
|
67
|
+
interface SelectTypeFontOption<T> {
|
|
68
|
+
type: 'selectTypeFont';
|
|
69
|
+
label?: string;
|
|
70
|
+
field: keyof T;
|
|
71
|
+
}
|
|
72
|
+
export type ModalOption<T> = ImageOption<T> | TextOption<T> | InputOption<T> | InputSwitchOption<T> | ListOption<T> | SelectOption<T> | SelectInfiniteListOption<T> | SelectTypeFontOption<T>;
|
|
73
|
+
interface Props<T extends ItemBase> {
|
|
74
|
+
activeItem: T;
|
|
75
|
+
setActiveItem: (value: T | null) => void;
|
|
76
|
+
popupPosition: {
|
|
77
|
+
top: number;
|
|
78
|
+
left: number;
|
|
79
|
+
};
|
|
80
|
+
setIsOpenModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
81
|
+
modalOptions: ModalOption<T>[];
|
|
82
|
+
}
|
|
83
|
+
export declare const ItemPopup: React.ForwardRefExoticComponent<Props<ItemBase> & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Alignment = 'left' | 'right' | 'top' | 'bottom' | 'topLeft' | 'topRight' | 'center' | 'bottomLeft' | 'bottomRight';
|
|
3
|
+
export type Padding = 'left' | 'top' | 'right' | 'bottom';
|
|
4
|
+
interface Props {
|
|
5
|
+
alignment: string;
|
|
6
|
+
padding: Record<Padding, number>;
|
|
7
|
+
setAlignment: (value: Alignment) => void;
|
|
8
|
+
setPadding: (value: Record<Padding, number>) => void;
|
|
9
|
+
isAlignment?: boolean;
|
|
10
|
+
isPadding?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const LayoutSettings: React.FC<Props>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface LinkProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
path: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
target?: '_blank' | '_self';
|
|
7
|
+
id?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Link: ({ children, path, className, target, id }: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { Other } from '../OtherSettings';
|
|
2
|
+
import { AspectRatio } from '@constants';
|
|
3
|
+
export interface ProductData {
|
|
4
|
+
id: number;
|
|
5
|
+
link: {
|
|
6
|
+
to: string;
|
|
7
|
+
};
|
|
8
|
+
productData: {
|
|
9
|
+
compareAtPrice?: {
|
|
10
|
+
amount: number;
|
|
11
|
+
currency: string;
|
|
12
|
+
};
|
|
13
|
+
images: {
|
|
14
|
+
cfId: string;
|
|
15
|
+
id: number;
|
|
16
|
+
}[];
|
|
17
|
+
isInStock: boolean;
|
|
18
|
+
minPrice: {
|
|
19
|
+
amount: number;
|
|
20
|
+
currency: string;
|
|
21
|
+
};
|
|
22
|
+
name: string;
|
|
23
|
+
shortDescription?: string;
|
|
24
|
+
stats: {
|
|
25
|
+
averageRating: number;
|
|
26
|
+
totalReviews: number;
|
|
27
|
+
totalSold: number;
|
|
28
|
+
};
|
|
29
|
+
uniquePath: string;
|
|
30
|
+
};
|
|
31
|
+
type: 'PRODUCT';
|
|
32
|
+
}
|
|
33
|
+
export interface ProductData {
|
|
34
|
+
id: number;
|
|
35
|
+
link: {
|
|
36
|
+
to: string;
|
|
37
|
+
};
|
|
38
|
+
productData: {
|
|
39
|
+
compareAtPrice?: {
|
|
40
|
+
amount: number;
|
|
41
|
+
currency: string;
|
|
42
|
+
};
|
|
43
|
+
images: {
|
|
44
|
+
cfId: string;
|
|
45
|
+
id: number;
|
|
46
|
+
}[];
|
|
47
|
+
isInStock: boolean;
|
|
48
|
+
minPrice: {
|
|
49
|
+
amount: number;
|
|
50
|
+
currency: string;
|
|
51
|
+
};
|
|
52
|
+
name: string;
|
|
53
|
+
shortDescription?: string;
|
|
54
|
+
stats: {
|
|
55
|
+
averageRating: number;
|
|
56
|
+
totalReviews: number;
|
|
57
|
+
totalSold: number;
|
|
58
|
+
};
|
|
59
|
+
uniquePath: string;
|
|
60
|
+
};
|
|
61
|
+
type: 'PRODUCT';
|
|
62
|
+
}
|
|
63
|
+
export interface GroupData {
|
|
64
|
+
id: number;
|
|
65
|
+
link: {
|
|
66
|
+
to: string;
|
|
67
|
+
};
|
|
68
|
+
groupData: {
|
|
69
|
+
id: 254676093;
|
|
70
|
+
image?: {
|
|
71
|
+
id: number;
|
|
72
|
+
cfId: string;
|
|
73
|
+
};
|
|
74
|
+
listingIdList: number[];
|
|
75
|
+
name: string;
|
|
76
|
+
shortDescription?: string;
|
|
77
|
+
uniquePath: string;
|
|
78
|
+
};
|
|
79
|
+
type: 'GROUP';
|
|
80
|
+
}
|
|
81
|
+
export interface PostData {
|
|
82
|
+
id: number;
|
|
83
|
+
link: {
|
|
84
|
+
to: string;
|
|
85
|
+
};
|
|
86
|
+
postData: {
|
|
87
|
+
button: {
|
|
88
|
+
text: 'Read More';
|
|
89
|
+
link: 'https://google.com';
|
|
90
|
+
};
|
|
91
|
+
link: 'https://google.com';
|
|
92
|
+
text: 'Read More';
|
|
93
|
+
createdAtIso: '2024-11-05T13:25:34.121775Z';
|
|
94
|
+
image: {
|
|
95
|
+
id: 254785144;
|
|
96
|
+
cfId: 'A5gbiev6F8AaBvp6M146Kw/ea9b1c91-b69d-45a1-ab60-1f13656ed800';
|
|
97
|
+
};
|
|
98
|
+
cfId: 'A5gbiev6F8AaBvp6M146Kw/ea9b1c91-b69d-45a1-ab60-1f13656ed800';
|
|
99
|
+
id: 254785144;
|
|
100
|
+
shortDescription: 'test-subtitle';
|
|
101
|
+
title: 'test-post';
|
|
102
|
+
uniquePath: 'test-post';
|
|
103
|
+
};
|
|
104
|
+
type: 'POST';
|
|
105
|
+
}
|
|
106
|
+
export type ListingData<T extends 'GROUP' | 'PRODUCT' | 'POST' = 'PRODUCT'> = T extends 'GROUP' ? GroupData : T extends 'PRODUCT' ? ProductData : PostData;
|
|
107
|
+
interface Props {
|
|
108
|
+
isActiveItems?: boolean;
|
|
109
|
+
setIsActiveItems?: (value: boolean) => void;
|
|
110
|
+
items: {
|
|
111
|
+
listingId: number;
|
|
112
|
+
image: string;
|
|
113
|
+
}[];
|
|
114
|
+
setItems: (value: {
|
|
115
|
+
listingId: number;
|
|
116
|
+
image: string;
|
|
117
|
+
}[]) => void;
|
|
118
|
+
title?: string;
|
|
119
|
+
subtitle?: string;
|
|
120
|
+
editable?: boolean;
|
|
121
|
+
draggable?: boolean;
|
|
122
|
+
withImage?: boolean;
|
|
123
|
+
deletable?: boolean;
|
|
124
|
+
addable?: boolean;
|
|
125
|
+
other?: Other[];
|
|
126
|
+
addableOptions?: Record<string, any>;
|
|
127
|
+
itemsType: 'select';
|
|
128
|
+
itemsOptions: ListingData[];
|
|
129
|
+
limit?: number;
|
|
130
|
+
aspectRatio?: AspectRatio;
|
|
131
|
+
setAspectRatio?: (value: AspectRatio) => void;
|
|
132
|
+
}
|
|
133
|
+
export declare const ListingSelector: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
134
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ListingData } from '.';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface Props {
|
|
4
|
+
activeItem: {
|
|
5
|
+
listingId: number;
|
|
6
|
+
image: string;
|
|
7
|
+
};
|
|
8
|
+
setActiveItem: (value: {
|
|
9
|
+
listingId: number;
|
|
10
|
+
image: string;
|
|
11
|
+
} | null) => void;
|
|
12
|
+
setIsOpenModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
|
+
popupPosition: {
|
|
14
|
+
top: number;
|
|
15
|
+
left: number;
|
|
16
|
+
};
|
|
17
|
+
itemsOptions: ListingData[];
|
|
18
|
+
}
|
|
19
|
+
export declare const ListingPopup: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type NotificationComponentProps = {
|
|
3
|
+
type: 'warning' | 'error' | 'success';
|
|
4
|
+
message: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
padding?: number;
|
|
7
|
+
timer: number;
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const NotificationAntistock: React.FC<NotificationComponentProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NotificationComponentProps } from '@constants';
|
|
3
|
+
interface Props {
|
|
4
|
+
type: 'warning' | 'error' | 'success';
|
|
5
|
+
message: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
padding?: number;
|
|
8
|
+
timer: number;
|
|
9
|
+
id: string;
|
|
10
|
+
element?: React.FC<NotificationComponentProps>;
|
|
11
|
+
}
|
|
12
|
+
export declare const NotificationBuilder: React.FC<Props>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Other {
|
|
2
|
+
isItem: boolean;
|
|
3
|
+
setIsItem: (value: boolean) => void;
|
|
4
|
+
label?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Tags extends Other {
|
|
7
|
+
}
|
|
8
|
+
interface Props {
|
|
9
|
+
title?: string;
|
|
10
|
+
items: Other[];
|
|
11
|
+
otherTitle?: string;
|
|
12
|
+
tagsTitle?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const OtherAndTagsSettings: React.FC<Props>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface PageBase {
|
|
2
|
+
name: string;
|
|
3
|
+
id: string;
|
|
4
|
+
}
|
|
5
|
+
interface CommomPropsBase<T extends PageBase> {
|
|
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
|
+
deletable?: boolean;
|
|
15
|
+
addable?: boolean;
|
|
16
|
+
addableOptions?: Record<string, any>;
|
|
17
|
+
limit?: number;
|
|
18
|
+
}
|
|
19
|
+
interface SelectProps<T extends PageBase> extends CommomPropsBase<T> {
|
|
20
|
+
itemsType: 'select';
|
|
21
|
+
itemsPlaceholder?: never;
|
|
22
|
+
itemsOptions: T[];
|
|
23
|
+
}
|
|
24
|
+
type Props<T extends PageBase> = SelectProps<T>;
|
|
25
|
+
export declare const PagesSettings: <T extends PageBase>(props: Props<T>) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProductCardModalType } from '../ProductCardModal';
|
|
3
|
+
interface Props {
|
|
4
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
setModalType: React.Dispatch<React.SetStateAction<ProductCardModalType>>;
|
|
6
|
+
productId: number;
|
|
7
|
+
isCartEnabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ProductCardButtons: React.FC<Props>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type ProductCardModalType = 'Add To Cart' | 'Buy Now';
|
|
3
|
+
interface Props {
|
|
4
|
+
productId: number;
|
|
5
|
+
type: ProductCardModalType;
|
|
6
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
isCartEnabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ProductCardModal: React.FC<Props>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Product } from '../../abstractions';
|
|
3
|
+
export declare enum ChargeTypes {
|
|
4
|
+
ONE_TIME = "One-Time",
|
|
5
|
+
RECURRING = "Subscribe & Save"
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
product: Product;
|
|
9
|
+
setIsOpen?: (isOpen: boolean) => void;
|
|
10
|
+
isCartEnabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const ProductOptions: React.FC<Props>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Option {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface RadioGroupProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
options: Option[];
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
flexDirection?: 'row' | 'column';
|
|
12
|
+
}
|
|
13
|
+
export declare const Radio: React.FC<RadioGroupProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
options: string[];
|
|
8
|
+
switcher?: {
|
|
9
|
+
value: boolean;
|
|
10
|
+
onChange: (value: boolean) => void;
|
|
11
|
+
};
|
|
12
|
+
isSearch?: boolean;
|
|
13
|
+
postfixs?: string[];
|
|
14
|
+
leftAddonOptions?: {
|
|
15
|
+
value: string;
|
|
16
|
+
addon: React.ReactNode;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
|
19
|
+
export declare const Select: React.FC<Props>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
label?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
options: string[];
|
|
8
|
+
switcher?: {
|
|
9
|
+
value: boolean;
|
|
10
|
+
onChange: (value: boolean) => void;
|
|
11
|
+
};
|
|
12
|
+
isSearch?: boolean;
|
|
13
|
+
postfixs?: string[];
|
|
14
|
+
leftAddonOptions?: {
|
|
15
|
+
value: string;
|
|
16
|
+
addon: React.ReactNode;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
|
19
|
+
export declare const SelectInfiniteList: React.FC<Props>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
onChange?: (value: boolean) => void;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
current: boolean;
|
|
6
|
+
label?: string;
|
|
7
|
+
hasBackground?: boolean;
|
|
8
|
+
paddingless?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Switch: React.FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextType } from '../TypesText';
|
|
3
|
+
import { TypeFontKeys } from '@constants';
|
|
4
|
+
import { AlignText } from '../AlignText';
|
|
5
|
+
interface Props {
|
|
6
|
+
typesText: TextType[];
|
|
7
|
+
setTypesText: (value: TextType[]) => void;
|
|
8
|
+
isActiveText?: boolean;
|
|
9
|
+
setIsActiveText?: (value: boolean) => void;
|
|
10
|
+
text: string;
|
|
11
|
+
setText: (value: string) => void;
|
|
12
|
+
title?: string;
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
typeFont: TypeFontKeys;
|
|
15
|
+
setTypeFont: (value: TypeFontKeys) => void;
|
|
16
|
+
alignText: AlignText;
|
|
17
|
+
setAlignText: (value: AlignText) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const TextSettings: React.FC<Props>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
maxLength?: number;
|
|
9
|
+
type?: 'number' | 'text';
|
|
10
|
+
required?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Textarea: React.FC<Props>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
maxLength?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const TextareaSettings: React.FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Padding } from '../LayoutSettings';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface WrapperProps {
|
|
4
|
+
children: (adaptiveStyles: string) => React.ReactNode;
|
|
5
|
+
padding?: Record<Padding, number>;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
notPadding?: boolean;
|
|
8
|
+
maxWidth?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Wrapper: React.FC<WrapperProps>;
|
|
11
|
+
export {};
|