@pisell/private-materials 6.8.84 → 6.8.86
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/hooks/useQuotation.d.ts +1 -0
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +3 -0
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/utils.d.ts +219 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/es/components/booking/info2/service/editNormalService/index.js +2 -2
- package/es/components/booking/info2/service/editService/utils.d.ts +28 -0
- package/es/components/booking/info2/service/openNormalService.d.ts +34 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/es/components/booking/model.d.ts +113 -0
- package/es/components/booking/utils.d.ts +182 -0
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +2 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/list/types.d.ts +178 -0
- package/es/components/list/utils/index.d.ts +19 -0
- package/es/components/pay/toB/components/Card/index.d.ts +1 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
- package/es/components/pay/toB/components/Content/Footer.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
- package/es/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/es/components/ticketBooking/locales.d.ts +201 -0
- package/es/components/ticketBooking/serve.d.ts +288 -0
- package/es/components/ticketBooking/utils/index.d.ts +101 -0
- package/es/components/walletList/index.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/printer.d.ts +4 -0
- package/es/hooks/useEngineContext.d.ts +4 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/es/plus/noteModal/AddTempModal.d.ts +1 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/es/plus/skuOptionsSelection/types.d.ts +431 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/plus/walletPassGallery/index.d.ts +1 -0
- package/es/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/index.d.ts +12 -0
- package/es/plus/webPosLogin/locales.d.ts +49 -0
- package/es/plus/webPosLogin/types.d.ts +286 -0
- package/es/pro/Cards/index.d.ts +1 -0
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Item.d.ts +14 -0
- package/es/pro/Selector/Selector.d.ts +14 -0
- package/es/pro/Selector/Selector.stories.d.ts +78 -0
- package/es/pro/Selector/SelectorGroup.d.ts +11 -0
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Card/types.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/es/pro/Selector/components/Media/index.d.ts +6 -0
- package/es/pro/Selector/components/Media/types.d.ts +47 -0
- package/es/pro/Selector/components/index.d.ts +4 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/hooks/useSelectionController.d.ts +49 -0
- package/es/pro/Selector/index.d.ts +11 -0
- package/es/pro/Selector/locales.d.ts +36 -0
- package/es/pro/Selector/types.d.ts +212 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
- package/es/pro/skuDetailModal/index.js +2 -2
- package/es/pro/skuDetailModal/locales.d.ts +103 -0
- package/es/pro/skuDetailModal/types.d.ts +354 -0
- package/es/pro/skuDetailModal/utils.d.ts +4 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/hooks/useQuotation.d.ts +1 -0
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +3 -0
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/utils.d.ts +219 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +1 -0
- package/lib/components/booking/info2/service/editService/utils.d.ts +28 -0
- package/lib/components/booking/info2/service/openNormalService.d.ts +34 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/lib/components/booking/model.d.ts +113 -0
- package/lib/components/booking/utils.d.ts +182 -0
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/components/ConflictModal/index.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/components/DiscountWallet/index.d.ts +1 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +2 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/list/types.d.ts +178 -0
- package/lib/components/list/utils/index.d.ts +19 -0
- package/lib/components/pay/toB/components/Card/index.d.ts +1 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +1 -0
- package/lib/components/pay/toB/components/Content/Footer.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/lib/components/ticketBooking/locales.d.ts +201 -0
- package/lib/components/ticketBooking/serve.d.ts +288 -0
- package/lib/components/ticketBooking/utils/index.d.ts +101 -0
- package/lib/components/walletList/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/hooks/printer.d.ts +4 -0
- package/lib/hooks/useEngineContext.d.ts +4 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +1 -0
- package/lib/plus/noteModal/AddTempModal.d.ts +1 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +431 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/index.d.ts +1 -0
- package/lib/plus/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/index.d.ts +12 -0
- package/lib/plus/webPosLogin/locales.d.ts +49 -0
- package/lib/plus/webPosLogin/types.d.ts +286 -0
- package/lib/pro/Cards/index.d.ts +1 -0
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Item.d.ts +14 -0
- package/lib/pro/Selector/Selector.d.ts +14 -0
- package/lib/pro/Selector/Selector.stories.d.ts +78 -0
- package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Card/types.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.d.ts +20 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -0
- package/lib/pro/Selector/components/Media/index.d.ts +6 -0
- package/lib/pro/Selector/components/Media/types.d.ts +47 -0
- package/lib/pro/Selector/components/index.d.ts +4 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/hooks/useSelectionController.d.ts +49 -0
- package/lib/pro/Selector/index.d.ts +11 -0
- package/lib/pro/Selector/locales.d.ts +36 -0
- package/lib/pro/Selector/types.d.ts +212 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +1 -0
- package/lib/pro/skuDetailModal/index.js +1 -0
- package/lib/pro/skuDetailModal/locales.d.ts +103 -0
- package/lib/pro/skuDetailModal/types.d.ts +354 -0
- package/lib/pro/skuDetailModal/utils.d.ts +4 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebPosLogin 组件国际化文本
|
|
3
|
+
* @description 支持 en、zh-CN、zh-HK 三种语言
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: {
|
|
6
|
+
en: {
|
|
7
|
+
'webpos-login-search': string;
|
|
8
|
+
'webpos-login-back': string;
|
|
9
|
+
'webpos-login-last-used': string;
|
|
10
|
+
'webpos-login-select-store-title': string;
|
|
11
|
+
'webpos-login-select-store-empty': string;
|
|
12
|
+
'webpos-login-change-account': string;
|
|
13
|
+
'webpos-login-store-data-missing': string;
|
|
14
|
+
'webpos-login-select-device-title': string;
|
|
15
|
+
'webpos-login-select-device-empty': string;
|
|
16
|
+
'webpos-login-change-store': string;
|
|
17
|
+
'webpos-login-device-not-in-use': string;
|
|
18
|
+
'webpos-login-device-currently-used-by': string;
|
|
19
|
+
};
|
|
20
|
+
'zh-CN': {
|
|
21
|
+
'webpos-login-search': string;
|
|
22
|
+
'webpos-login-back': string;
|
|
23
|
+
'webpos-login-last-used': string;
|
|
24
|
+
'webpos-login-select-store-title': string;
|
|
25
|
+
'webpos-login-select-store-empty': string;
|
|
26
|
+
'webpos-login-change-account': string;
|
|
27
|
+
'webpos-login-store-data-missing': string;
|
|
28
|
+
'webpos-login-select-device-title': string;
|
|
29
|
+
'webpos-login-select-device-empty': string;
|
|
30
|
+
'webpos-login-change-store': string;
|
|
31
|
+
'webpos-login-device-not-in-use': string;
|
|
32
|
+
'webpos-login-device-currently-used-by': string;
|
|
33
|
+
};
|
|
34
|
+
'zh-HK': {
|
|
35
|
+
'webpos-login-search': string;
|
|
36
|
+
'webpos-login-back': string;
|
|
37
|
+
'webpos-login-last-used': string;
|
|
38
|
+
'webpos-login-select-store-title': string;
|
|
39
|
+
'webpos-login-select-store-empty': string;
|
|
40
|
+
'webpos-login-change-account': string;
|
|
41
|
+
'webpos-login-store-data-missing': string;
|
|
42
|
+
'webpos-login-select-device-title': string;
|
|
43
|
+
'webpos-login-select-device-empty': string;
|
|
44
|
+
'webpos-login-change-store': string;
|
|
45
|
+
'webpos-login-device-not-in-use': string;
|
|
46
|
+
'webpos-login-device-currently-used-by': string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WebPosLogin 组件类型定义
|
|
3
|
+
* @description WebPOS 登录流程组件,包含登录、店铺选择、设备选择三个步骤
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
/**
|
|
7
|
+
* 店铺数据结构
|
|
8
|
+
* @description 从租户列表接口返回的店铺信息
|
|
9
|
+
*/
|
|
10
|
+
export interface StoreItem {
|
|
11
|
+
/** 店铺ID */
|
|
12
|
+
id: number;
|
|
13
|
+
/** 租户ID */
|
|
14
|
+
tenant_id: number;
|
|
15
|
+
/** 账户ID */
|
|
16
|
+
account_id: number;
|
|
17
|
+
/** 类型 */
|
|
18
|
+
type: string;
|
|
19
|
+
/** 昵称 */
|
|
20
|
+
nickname: string;
|
|
21
|
+
/** 状态 */
|
|
22
|
+
status: string;
|
|
23
|
+
/** 创建时间 */
|
|
24
|
+
created_at?: string;
|
|
25
|
+
/** 更新时间 */
|
|
26
|
+
updated_at?: string;
|
|
27
|
+
/** 租户详情 */
|
|
28
|
+
tenant: {
|
|
29
|
+
/** 租户ID */
|
|
30
|
+
id: number;
|
|
31
|
+
/** 父租户ID */
|
|
32
|
+
tenant_id?: number;
|
|
33
|
+
/** 账户ID */
|
|
34
|
+
account_id?: number;
|
|
35
|
+
/** 类型 */
|
|
36
|
+
type?: string;
|
|
37
|
+
/** 名称(多语言) */
|
|
38
|
+
name: {
|
|
39
|
+
en?: string | null;
|
|
40
|
+
'zh-CN'?: string | null;
|
|
41
|
+
'zh-HK'?: string | null;
|
|
42
|
+
original: string;
|
|
43
|
+
};
|
|
44
|
+
/** Logo图片 */
|
|
45
|
+
logo?: string;
|
|
46
|
+
/** 图标 */
|
|
47
|
+
icon?: string;
|
|
48
|
+
/** Favicon */
|
|
49
|
+
favicon?: string;
|
|
50
|
+
/** 默认域名 */
|
|
51
|
+
default_domain: string;
|
|
52
|
+
/** 私有域名 */
|
|
53
|
+
private_domain?: string | null;
|
|
54
|
+
/** 货币代码 */
|
|
55
|
+
currency_code?: string | null;
|
|
56
|
+
/** 国家代码 */
|
|
57
|
+
country_code?: string | null;
|
|
58
|
+
/** 语言 */
|
|
59
|
+
locale?: string;
|
|
60
|
+
/** 时区 */
|
|
61
|
+
timezone?: string;
|
|
62
|
+
/** 状态 */
|
|
63
|
+
status?: string;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* 设备客户端信息
|
|
68
|
+
* @description 设备绑定的客户端详情
|
|
69
|
+
*/
|
|
70
|
+
export interface DeviceClient {
|
|
71
|
+
/** 客户端ID */
|
|
72
|
+
id: number;
|
|
73
|
+
/** 店铺ID */
|
|
74
|
+
shop_id: number;
|
|
75
|
+
/** 设备ID */
|
|
76
|
+
device_id: number;
|
|
77
|
+
/** 客户端编号 */
|
|
78
|
+
number: string;
|
|
79
|
+
/** 客户端名称 */
|
|
80
|
+
name: string;
|
|
81
|
+
/** 客户端类型 */
|
|
82
|
+
type: string;
|
|
83
|
+
/** 设备型号 */
|
|
84
|
+
model?: string;
|
|
85
|
+
/** 系统版本 */
|
|
86
|
+
version?: string;
|
|
87
|
+
/** 设备详细数据 */
|
|
88
|
+
data?: {
|
|
89
|
+
battery?: {
|
|
90
|
+
is_charging?: boolean;
|
|
91
|
+
visible_percent?: string;
|
|
92
|
+
};
|
|
93
|
+
hardware?: {
|
|
94
|
+
country?: string;
|
|
95
|
+
datetime?: string;
|
|
96
|
+
language?: string;
|
|
97
|
+
timezone?: string;
|
|
98
|
+
};
|
|
99
|
+
application?: {
|
|
100
|
+
name?: string;
|
|
101
|
+
type?: string;
|
|
102
|
+
version?: string;
|
|
103
|
+
language?: string;
|
|
104
|
+
bundle_id?: string;
|
|
105
|
+
};
|
|
106
|
+
connectivity?: {
|
|
107
|
+
ip?: string;
|
|
108
|
+
type?: string;
|
|
109
|
+
wifi_details?: any[];
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
/** 最后刷新时间 */
|
|
113
|
+
refreshed_at?: string;
|
|
114
|
+
/** 创建时间 */
|
|
115
|
+
created_at?: string;
|
|
116
|
+
/** 更新时间 */
|
|
117
|
+
updated_at?: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* 设备数据结构
|
|
121
|
+
* @description 从设备列表接口返回的设备信息
|
|
122
|
+
*/
|
|
123
|
+
export interface DeviceItem {
|
|
124
|
+
/** 设备ID */
|
|
125
|
+
id: number;
|
|
126
|
+
/** 店铺ID */
|
|
127
|
+
shop_id: number;
|
|
128
|
+
/** 设备类型 */
|
|
129
|
+
type: string;
|
|
130
|
+
/** 设备编号 */
|
|
131
|
+
number: string;
|
|
132
|
+
/** 设备名称 */
|
|
133
|
+
name: string;
|
|
134
|
+
/** 设备描述 */
|
|
135
|
+
description?: string;
|
|
136
|
+
/** 设备设置 */
|
|
137
|
+
setting?: any[];
|
|
138
|
+
/** 创建时间 */
|
|
139
|
+
created_at?: string;
|
|
140
|
+
/** 更新时间 */
|
|
141
|
+
updated_at?: string;
|
|
142
|
+
/** 绑定的客户端信息(null 表示未被使用) */
|
|
143
|
+
client?: DeviceClient | null;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* 用户信息
|
|
147
|
+
* @description 当前登录用户的基本信息
|
|
148
|
+
*/
|
|
149
|
+
export interface UserInfo {
|
|
150
|
+
/** 用户名称 */
|
|
151
|
+
name: string;
|
|
152
|
+
/** 用户头像 */
|
|
153
|
+
avatar?: string;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* 品牌区轮播项
|
|
157
|
+
* @description 左侧品牌区的轮播内容配置
|
|
158
|
+
*/
|
|
159
|
+
export interface CarouselItem {
|
|
160
|
+
/** 内容类型:图片或视频 */
|
|
161
|
+
type: 'image' | 'video';
|
|
162
|
+
/** 资源URL */
|
|
163
|
+
url: string;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* 品牌区配置
|
|
167
|
+
* @description 左侧品牌展示区域的配置
|
|
168
|
+
*/
|
|
169
|
+
export interface BrandConfig {
|
|
170
|
+
/** 轮播内容列表(图片/视频) */
|
|
171
|
+
carouselItems?: CarouselItem[];
|
|
172
|
+
/** 默认Logo(当无轮播时显示) */
|
|
173
|
+
logo?: string;
|
|
174
|
+
/** 品牌标语 */
|
|
175
|
+
slogan?: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* 登录流程步骤
|
|
179
|
+
*/
|
|
180
|
+
export declare type LoginStep = 'login' | 'store' | 'device';
|
|
181
|
+
/**
|
|
182
|
+
* 支持的语言类型
|
|
183
|
+
*/
|
|
184
|
+
export declare type LocaleType = 'en' | 'zh-CN' | 'zh-HK';
|
|
185
|
+
/**
|
|
186
|
+
* WebPosLogin 主组件 Props
|
|
187
|
+
* @description WebPOS 登录组件的所有配置项
|
|
188
|
+
*/
|
|
189
|
+
export interface WebPosLoginCptProps {
|
|
190
|
+
/** 自定义类名 */
|
|
191
|
+
className?: string;
|
|
192
|
+
/** 自定义样式 */
|
|
193
|
+
style?: React.CSSProperties;
|
|
194
|
+
/** 背景图片URL */
|
|
195
|
+
backgroundImage?: string;
|
|
196
|
+
/** 品牌区配置 */
|
|
197
|
+
brandConfig?: BrandConfig;
|
|
198
|
+
/** 当前步骤:login-登录 | store-店铺选择 | device-设备选择 */
|
|
199
|
+
step?: LoginStep;
|
|
200
|
+
/** 是否显示返回按钮(默认 true) */
|
|
201
|
+
showBackButton?: boolean;
|
|
202
|
+
/** 店铺列表数据 */
|
|
203
|
+
storeList?: StoreItem[];
|
|
204
|
+
/** 设备列表数据 */
|
|
205
|
+
deviceList?: DeviceItem[];
|
|
206
|
+
/** 当前用户信息 */
|
|
207
|
+
userInfo?: UserInfo;
|
|
208
|
+
/** 当前选中的店铺 */
|
|
209
|
+
selectedStore?: StoreItem;
|
|
210
|
+
/** 上次使用的店铺ID(用于显示 Last used 标签) */
|
|
211
|
+
lastUsedStoreId?: number;
|
|
212
|
+
/** 上次使用的设备ID(用于显示 Last used 标签) */
|
|
213
|
+
lastUsedDeviceId?: number;
|
|
214
|
+
/** 语言设置 */
|
|
215
|
+
locale?: LocaleType;
|
|
216
|
+
/** 加载状态 */
|
|
217
|
+
loading?: boolean;
|
|
218
|
+
/** 登录配置 */
|
|
219
|
+
loginConfig?: any;
|
|
220
|
+
/** 店铺选择回调 */
|
|
221
|
+
onStoreSelect?: (store: StoreItem) => void;
|
|
222
|
+
/** 设备选择回调 */
|
|
223
|
+
onDeviceSelect?: (device: DeviceItem) => void;
|
|
224
|
+
/** 切换账号回调 */
|
|
225
|
+
onChangeAccount?: () => void;
|
|
226
|
+
/** 切换店铺回调 */
|
|
227
|
+
onChangeStore?: () => void;
|
|
228
|
+
/** 返回上一步回调 */
|
|
229
|
+
onBack?: () => void;
|
|
230
|
+
/** 登录成功回调 */
|
|
231
|
+
onLoginSuccess?: (data: any) => void;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* BrandPanel 品牌区组件 Props
|
|
235
|
+
*/
|
|
236
|
+
export interface BrandPanelProps {
|
|
237
|
+
/** 品牌配置 */
|
|
238
|
+
config?: BrandConfig;
|
|
239
|
+
/** 自定义类名 */
|
|
240
|
+
className?: string;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* SelectStore 店铺选择组件 Props
|
|
244
|
+
*/
|
|
245
|
+
export interface SelectStoreProps {
|
|
246
|
+
/** 店铺列表 */
|
|
247
|
+
storeList?: StoreItem[];
|
|
248
|
+
/** 语言 */
|
|
249
|
+
locale?: LocaleType;
|
|
250
|
+
/** 加载状态 */
|
|
251
|
+
loading?: boolean;
|
|
252
|
+
/** 上次使用的店铺ID */
|
|
253
|
+
lastUsedStoreId?: number;
|
|
254
|
+
/** 选择店铺回调 */
|
|
255
|
+
onSelect?: (store: StoreItem) => void;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* SelectDevice 设备选择组件 Props
|
|
259
|
+
*/
|
|
260
|
+
export interface SelectDeviceProps {
|
|
261
|
+
/** 设备列表 */
|
|
262
|
+
deviceList?: DeviceItem[];
|
|
263
|
+
/** 语言 */
|
|
264
|
+
locale?: LocaleType;
|
|
265
|
+
/** 加载状态 */
|
|
266
|
+
loading?: boolean;
|
|
267
|
+
/** 选择设备回调 */
|
|
268
|
+
onSelect?: (device: DeviceItem) => void;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* UserFooter 底部用户信息组件 Props
|
|
272
|
+
*/
|
|
273
|
+
export interface UserFooterProps {
|
|
274
|
+
/** 用户信息 */
|
|
275
|
+
userInfo?: UserInfo;
|
|
276
|
+
/** 当前选中的店铺 */
|
|
277
|
+
selectedStore?: StoreItem;
|
|
278
|
+
/** 当前步骤 */
|
|
279
|
+
step?: LoginStep;
|
|
280
|
+
/** 语言 */
|
|
281
|
+
locale?: LocaleType;
|
|
282
|
+
/** 切换账号回调 */
|
|
283
|
+
onChangeAccount?: () => void;
|
|
284
|
+
/** 切换店铺回调 */
|
|
285
|
+
onChangeStore?: () => void;
|
|
286
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SKUCard } from './components/SKUCard';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OptionItem } from './types';
|
|
3
|
+
export interface IItemProps {
|
|
4
|
+
actions: any;
|
|
5
|
+
dataSource: OptionItem;
|
|
6
|
+
indicator: React.ReactNode;
|
|
7
|
+
numberSelector: React.ReactNode;
|
|
8
|
+
optionItemValue?: any;
|
|
9
|
+
quantityInfo: any;
|
|
10
|
+
values: any;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const Item: (props: IItemProps) => JSX.Element;
|
|
14
|
+
export default Item;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ItemLayout, ItemProps, PresetConfig, SelectorProps, SelectorVariant } from './types';
|
|
3
|
+
import './selector.less';
|
|
4
|
+
export declare const SelectorContext: React.Context<{
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
mode?: "multiple" | "single" | undefined;
|
|
7
|
+
itemLayout?: ItemLayout | undefined;
|
|
8
|
+
valueType?: "object" | "primitive" | undefined;
|
|
9
|
+
variant?: SelectorVariant | undefined;
|
|
10
|
+
itemProps?: ItemProps | undefined;
|
|
11
|
+
preset?: PresetConfig | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
declare const Selector: React.ForwardRefExoticComponent<SelectorProps<import("./types").OptionKey> & React.RefAttributes<unknown>>;
|
|
14
|
+
export default Selector;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Selector from './index';
|
|
3
|
+
/**
|
|
4
|
+
* Selector 组件 - 高级选择器
|
|
5
|
+
*
|
|
6
|
+
* 支持单选/多选、数量控制、校验规则、互斥组等功能
|
|
7
|
+
*
|
|
8
|
+
* 查看文档:
|
|
9
|
+
* - [开发文档](https://studio.picoding-dev.com/pro-components/selector?tab=dev)
|
|
10
|
+
* - [需求文档](https://m1ed09stz4r.feishu.cn/wiki/NL5AwOs0ei5ZBekT4i6cuzIOnoM)
|
|
11
|
+
*/
|
|
12
|
+
declare const meta: Meta<typeof Selector>;
|
|
13
|
+
export default meta;
|
|
14
|
+
declare type Story = StoryObj<typeof Selector>;
|
|
15
|
+
/**
|
|
16
|
+
* 默认单选模式 - 原始值类型
|
|
17
|
+
*/
|
|
18
|
+
export declare const Default: Story;
|
|
19
|
+
/**
|
|
20
|
+
* 多选模式 - 原始值数组
|
|
21
|
+
*/
|
|
22
|
+
export declare const Multiple: Story;
|
|
23
|
+
/**
|
|
24
|
+
* 单选 + 数量 - 对象值类型
|
|
25
|
+
*/
|
|
26
|
+
export declare const SingleWithQuantity: Story;
|
|
27
|
+
/**
|
|
28
|
+
* 多选 + 数量 - 卡片样式
|
|
29
|
+
*/
|
|
30
|
+
export declare const MultipleWithQuantity: Story;
|
|
31
|
+
/**
|
|
32
|
+
* 网格布局 - 2列
|
|
33
|
+
*/
|
|
34
|
+
export declare const GridLayout2Columns: Story;
|
|
35
|
+
/**
|
|
36
|
+
* 网格布局 - 3列
|
|
37
|
+
*/
|
|
38
|
+
export declare const GridLayout3Columns: Story;
|
|
39
|
+
/**
|
|
40
|
+
* 校验规则 - 必选、最小/最大数量
|
|
41
|
+
*/
|
|
42
|
+
export declare const WithValidation: Story;
|
|
43
|
+
/**
|
|
44
|
+
* 互斥组 - 同组只能选一个
|
|
45
|
+
*/
|
|
46
|
+
export declare const MutexGroups: Story;
|
|
47
|
+
/**
|
|
48
|
+
* 禁用状态
|
|
49
|
+
*/
|
|
50
|
+
export declare const Disabled: Story;
|
|
51
|
+
/**
|
|
52
|
+
* Select 变体 - 下拉选择
|
|
53
|
+
*/
|
|
54
|
+
export declare const SelectVariant: Story;
|
|
55
|
+
/**
|
|
56
|
+
* Select 变体 - 多选下拉
|
|
57
|
+
*/
|
|
58
|
+
export declare const SelectVariantMultiple: Story;
|
|
59
|
+
/**
|
|
60
|
+
* 卡片样式变体 - 不同选中态
|
|
61
|
+
*/
|
|
62
|
+
export declare const CardVariants: Story;
|
|
63
|
+
/**
|
|
64
|
+
* 自定义图标
|
|
65
|
+
*/
|
|
66
|
+
export declare const CustomIcon: Story;
|
|
67
|
+
/**
|
|
68
|
+
* 自定义渲染
|
|
69
|
+
*/
|
|
70
|
+
export declare const CustomRender: Story;
|
|
71
|
+
/**
|
|
72
|
+
* SelectorGroup 基础示例
|
|
73
|
+
*/
|
|
74
|
+
export declare const SelectorGroupBasic: StoryObj;
|
|
75
|
+
/**
|
|
76
|
+
* SelectorGroup 联动规则示例
|
|
77
|
+
*/
|
|
78
|
+
export declare const SelectorGroupWithLinkage: StoryObj;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SelectionValue, SelectorGroupProps } from './types';
|
|
3
|
+
import './selectorGroup.less';
|
|
4
|
+
export declare type SelectorGroupRef = {
|
|
5
|
+
getValues: (includeHidden?: boolean) => Record<string, SelectionValue>;
|
|
6
|
+
setValues: (values: Record<string, SelectionValue>) => void;
|
|
7
|
+
validate: () => Promise<Record<string, never>>;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
};
|
|
10
|
+
declare const SelectorGroup: React.ForwardRefExoticComponent<Omit<SelectorGroupProps, "ref"> & React.RefAttributes<SelectorGroupRef>>;
|
|
11
|
+
export default SelectorGroup;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export declare type CardVariant = 'outlined' | 'borderless';
|
|
4
|
+
export declare type CardLayout = 'vertical' | 'horizontal';
|
|
5
|
+
export declare type SelectedType = 'none' | 'outlined' | 'outlined-bold' | 'filled';
|
|
6
|
+
export declare type ActionsPosition = 'left' | 'right';
|
|
7
|
+
export interface CardStyles {
|
|
8
|
+
container?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
9
|
+
content?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
10
|
+
actions?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
11
|
+
corner?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
12
|
+
}
|
|
13
|
+
export interface CardStyleProps {
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
hoverable?: boolean;
|
|
17
|
+
variant?: CardVariant;
|
|
18
|
+
layout?: CardLayout;
|
|
19
|
+
}
|
|
20
|
+
export interface CardProps {
|
|
21
|
+
/** 卡片变体样式 */
|
|
22
|
+
variant?: CardVariant;
|
|
23
|
+
/** 布局方向 */
|
|
24
|
+
layout?: CardLayout;
|
|
25
|
+
/** 操作按钮区域,水平模式在右侧,垂直模式在底部 */
|
|
26
|
+
actions?: React.ReactNode[];
|
|
27
|
+
/** 水平模式下,操作按钮的位置 */
|
|
28
|
+
actionsPosition?: ActionsPosition;
|
|
29
|
+
/** 垂直模式下,右上角绝对定位展示的组件 */
|
|
30
|
+
corner?: React.ReactNode;
|
|
31
|
+
/** 子内容 */
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
/** 选中状态 */
|
|
34
|
+
selected?: boolean;
|
|
35
|
+
/** 禁用状态 */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** 是否可悬停 */
|
|
38
|
+
hoverable?: boolean;
|
|
39
|
+
/** 点击事件 */
|
|
40
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
41
|
+
/** 自定义样式 */
|
|
42
|
+
styles?: CardStyles;
|
|
43
|
+
/**
|
|
44
|
+
* 选中时的样式类型
|
|
45
|
+
* - none: 无样式
|
|
46
|
+
* - outlined: 边框高亮
|
|
47
|
+
* - outlined-bold: 边框高亮 + 加粗(使用 outline 实现,不影响布局)
|
|
48
|
+
* - filled: 填充背景色
|
|
49
|
+
*/
|
|
50
|
+
selectedType?: SelectedType;
|
|
51
|
+
/** 自定义类名 */
|
|
52
|
+
className?: string;
|
|
53
|
+
/** 自定义样式 */
|
|
54
|
+
style?: React.CSSProperties;
|
|
55
|
+
}
|
|
56
|
+
declare const Card: React.FC<CardProps>;
|
|
57
|
+
export default Card;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CardVariant, CardLayout, SelectedType, ActionsPosition, CardStyles, CardStyleProps, CardProps, } from './index';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface IndicatorProps {
|
|
4
|
+
mode?: 'single' | 'multiple';
|
|
5
|
+
variant?: 'outlined' | 'filled';
|
|
6
|
+
defaultChecked?: boolean;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
styles?: {
|
|
12
|
+
container?: React.CSSProperties;
|
|
13
|
+
indicator?: React.CSSProperties;
|
|
14
|
+
content?: React.CSSProperties;
|
|
15
|
+
};
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
size?: 'small' | 'middle' | 'large' | number;
|
|
18
|
+
}
|
|
19
|
+
declare const Indicator: React.FC<IndicatorProps>;
|
|
20
|
+
export default Indicator;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IntersectionObserver 组件
|
|
3
|
+
* 用于监听一组 DOM 元素的可见性状态,并获取第一个可见元素的索引。
|
|
4
|
+
* @example
|
|
5
|
+
* function App() {
|
|
6
|
+
* return (
|
|
7
|
+
* <IntersectionObserverProvider
|
|
8
|
+
* onFirstVisibleIndexChange={(index) => {
|
|
9
|
+
* console.log('第一个可见元素的索引:', index);
|
|
10
|
+
* }}
|
|
11
|
+
* rootMargin="0px 0px -10% 0px" // 自定义根边距
|
|
12
|
+
* >
|
|
13
|
+
* <ScrollContainer>
|
|
14
|
+
* {items.map((item, index) => (
|
|
15
|
+
* <IntersectionItem key={item.id} index={index}>
|
|
16
|
+
* <ItemComponent data={item} />
|
|
17
|
+
* </IntersectionItem>
|
|
18
|
+
* ))}
|
|
19
|
+
* </ScrollContainer>
|
|
20
|
+
* </IntersectionObserverProvider>
|
|
21
|
+
* );
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import type { ReactNode, CSSProperties } from 'react';
|
|
26
|
+
declare global {
|
|
27
|
+
interface Window {
|
|
28
|
+
IntersectionObserver: typeof IntersectionObserver;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 元素信息接口
|
|
33
|
+
*/
|
|
34
|
+
interface ElementInfo {
|
|
35
|
+
element: HTMLElement;
|
|
36
|
+
index: number;
|
|
37
|
+
isVisible: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* IntersectionObserver 上下文值接口
|
|
41
|
+
*/
|
|
42
|
+
interface IntersectionObserverContextValue {
|
|
43
|
+
/** 是否已初始化 */
|
|
44
|
+
initialized: boolean;
|
|
45
|
+
/** 注册元素 */
|
|
46
|
+
registerElement: (element: HTMLElement, index: number) => void;
|
|
47
|
+
/** 注销元素 */
|
|
48
|
+
unregisterElement: (element: HTMLElement) => void;
|
|
49
|
+
/** 批量注册元素 */
|
|
50
|
+
registerElements: (elements: Array<{
|
|
51
|
+
element: HTMLElement;
|
|
52
|
+
index: number;
|
|
53
|
+
}>) => void;
|
|
54
|
+
/** 清除所有注册的元素 */
|
|
55
|
+
clearAll: () => void;
|
|
56
|
+
/** 第一个可见元素的索引,-1 表示没有可见元素 */
|
|
57
|
+
firstVisibleIndex: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* IntersectionObserver Provider 属性接口
|
|
61
|
+
*/
|
|
62
|
+
interface IntersectionObserverProps {
|
|
63
|
+
children: ReactNode;
|
|
64
|
+
/** 根容器,默认为视口 */
|
|
65
|
+
root?: Element | null;
|
|
66
|
+
/** 根边距 */
|
|
67
|
+
rootMargin?: string;
|
|
68
|
+
/** 阈值 */
|
|
69
|
+
threshold?: number | number[];
|
|
70
|
+
/** 第一个可见元素索引变化时的回调 */
|
|
71
|
+
onFirstVisibleIndexChange?: (index: number) => void;
|
|
72
|
+
/** 是否禁用组件,禁用后不会创建 IntersectionObserver */
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* IntersectionItem 组件属性接口
|
|
77
|
+
*/
|
|
78
|
+
interface IntersectionItemProps {
|
|
79
|
+
/** 元素索引 */
|
|
80
|
+
index: number;
|
|
81
|
+
/** 子元素 */
|
|
82
|
+
children?: ReactNode;
|
|
83
|
+
/** 类名 */
|
|
84
|
+
className?: string;
|
|
85
|
+
/** 样式 */
|
|
86
|
+
style?: CSSProperties;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* IntersectionObserver 上下文
|
|
90
|
+
*/
|
|
91
|
+
declare const IntersectionObserverContext: React.Context<IntersectionObserverContextValue>;
|
|
92
|
+
export declare const IntersectionObserverProvider: React.FC<IntersectionObserverProps>;
|
|
93
|
+
/**
|
|
94
|
+
* 使用 IntersectionObserver 的 Hook
|
|
95
|
+
* @returns {Object} 包含注册元素函数和第一个可见元素索引的对象
|
|
96
|
+
*/
|
|
97
|
+
export declare const useIntersectionObserver: () => IntersectionObserverContextValue;
|
|
98
|
+
/**
|
|
99
|
+
* IntersectionItem 组件
|
|
100
|
+
* 自动注册元素到 IntersectionObserver 中
|
|
101
|
+
*/
|
|
102
|
+
export declare const IntersectionItem: React.FC<IntersectionItemProps>;
|
|
103
|
+
export type { IntersectionObserverProps, IntersectionItemProps, IntersectionObserverContextValue, ElementInfo, };
|
|
104
|
+
export { IntersectionObserverContext, };
|
|
105
|
+
export default IntersectionObserverProvider;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LayoutConfig } from '../../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
interface LayoutContainerProps {
|
|
5
|
+
className: string;
|
|
6
|
+
config: LayoutConfig | null;
|
|
7
|
+
children: React.ReactNode[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 统一的布局容器组件
|
|
11
|
+
*
|
|
12
|
+
* 支持三种布局模式:
|
|
13
|
+
* 1. 响应式布局(推荐):通过 responsive 配置,使用 ResizeObserver 实现容器级响应式
|
|
14
|
+
* 2. Custom 布局:通过 className 使用预设样式
|
|
15
|
+
* 3. Ant Design Grid 布局:基础的栅格布局,用于简单场景
|
|
16
|
+
*/
|
|
17
|
+
declare function LayoutContainer({ className: containerClassName, config, children, }: LayoutContainerProps): React.ReactElement | null;
|
|
18
|
+
export default LayoutContainer;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import type { MediaProps, MediaStyleProps, MediaShape, MediaSize, MediaCoverType } from './types';
|
|
4
|
+
export type { MediaProps, MediaStyleProps, MediaShape, MediaSize, MediaCoverType };
|
|
5
|
+
declare const Media: React.FC<MediaProps>;
|
|
6
|
+
export default Media;
|