@pisell/private-materials 6.11.49 → 6.11.51
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/Cart/utils.d.ts +68 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Summary/index.d.ts +37 -0
- package/es/components/Sales/Summary/utils.d.ts +58 -0
- package/es/components/appointmentBooking/locales.d.ts +606 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/dashboard/serve.d.ts +2 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/hooks/usePromotion.js +25 -20
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/Lists.js +11 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -5
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +3 -26
- package/es/components/booking/info/service2/Group/utils.js +0 -8
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/cartClientCard/locales.d.ts +33 -0
- package/es/components/booking/info2/cartClientCard/types.d.ts +19 -0
- package/es/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/es/components/booking/info2/model/index.d.ts +1 -0
- package/es/components/booking/info2/model/strategy/adapter/index.d.ts +7 -0
- package/es/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +185 -0
- package/es/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +420 -0
- package/es/components/booking/info2/model/strategy/adapter/type.d.ts +28 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +84 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +4 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +32 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +1 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +165 -0
- package/es/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +50 -0
- package/es/components/booking/info2/model/strategy/index.d.ts +107 -0
- package/es/components/booking/info2/model/strategy/strategy-example.d.ts +5 -0
- package/es/components/booking/info2/model/strategy/type.d.ts +228 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +23 -2
- package/es/components/booking/info2/service/openNormalService.d.ts +37 -0
- package/es/components/booking/locales.d.ts +1586 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/es/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/es/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/es/components/checkout/constants.d.ts +2 -0
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/es/components/checkout/locales.d.ts +856 -0
- package/es/components/checkout/styles.d.ts +67 -0
- package/es/components/checkout/types.d.ts +130 -0
- package/es/components/checkout/utils.d.ts +3 -0
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/es/components/ecocup/cupList/const.d.ts +144 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/hooks.d.ts +57 -0
- package/es/components/ecocup/locales.d.ts +653 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/eftpos/locales.d.ts +163 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/const.d.ts +195 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/locales.d.ts +608 -0
- package/es/components/eftposPay/manufacturer.d.ts +8 -0
- package/es/components/eftposPay/store/index.d.ts +362 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/locales.d.ts +43 -0
- package/es/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/es/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/es/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/es/components/list/components/Tab/Tab.d.ts +5 -0
- package/es/components/list/components/Tab/index.d.ts +2 -0
- package/es/components/list/components/Tab/types.d.ts +14 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/es/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/es/components/list/components/WaterfallList/index.d.ts +2 -0
- package/es/components/list/hooks/useDevice.d.ts +24 -0
- package/es/components/list/hooks/useWaterfall.d.ts +34 -0
- package/es/components/list/locales.d.ts +108 -0
- package/es/components/list/types.d.ts +181 -0
- package/es/components/list/utils/getText.d.ts +53 -0
- package/es/components/list/utils/index.d.ts +19 -0
- package/es/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/es/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/es/components/pay/toB/hooks.d.ts +12 -0
- package/es/components/pay/toB/locales.d.ts +88 -0
- package/es/components/pay/toB/store/context.d.ts +3 -0
- package/es/components/pay/toB/store/hooks.d.ts +15 -0
- package/es/components/pay/toB/store/index.d.ts +3 -0
- package/es/components/pay/toB/store/provider.d.ts +4 -0
- package/es/components/pay/toB/types/index.d.ts +81 -0
- package/es/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/locales.d.ts +511 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/es/components/ruleSetting/locales.d.ts +78 -0
- package/es/components/schedules/locales.d.ts +143 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/locales.d.ts +93 -0
- package/es/components/shoppingCart/mock.d.ts +54 -0
- package/es/components/shoppingCart/type.d.ts +58 -0
- package/es/components/subTotal/locales.d.ts +71 -0
- package/es/components/systemSettings/registry/locales.d.ts +525 -0
- package/es/components/systemSettings/registry/services.d.ts +97 -0
- package/es/components/systemSettings/registry/types.d.ts +139 -0
- package/es/components/taxSelect/locales.d.ts +38 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +29 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/es/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +5 -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/hooks/pisellos/useScanManager.d.ts +6 -0
- package/es/components/ticketBooking/locales.d.ts +340 -0
- package/es/components/ticketBooking/utils/edit.d.ts +1 -0
- package/es/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/hooks/printer.d.ts +4 -0
- package/es/hooks/useEngineContext.d.ts +4 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/useLogger.d.ts +2 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/hooks/useThemeTokens.d.ts +7 -0
- package/es/hooks/useToast.d.ts +2 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clientCard/types.d.ts +135 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/noteModal/locales.d.ts +53 -0
- package/es/plus/noteModal/types.d.ts +19 -0
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/orderList/locales.d.ts +618 -0
- package/es/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/es/plus/pisellSalesGrid/types.d.ts +170 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/es/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +173 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/es/plus/productSelect/ProductCard/utils.d.ts +49 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/es/plus/productSelect/ProductList/index.d.ts +22 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/saasAttendance/locales.d.ts +591 -0
- package/es/plus/saasAttendance/settings/types.d.ts +136 -0
- package/es/plus/saasTeamMembers/locales.d.ts +546 -0
- package/es/plus/selectHolder/locales.d.ts +38 -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/locales.d.ts +53 -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 +445 -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/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/locales.d.ts +92 -0
- package/es/plus/webPosLogin/types.d.ts +288 -0
- package/es/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/es/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/es/pro/Login2.0/locales.d.ts +903 -0
- package/es/pro/Login2.0/shared/types.d.ts +234 -0
- package/es/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/es/pro/Selector/Selector.stories.d.ts +78 -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/locales.d.ts +58 -0
- package/es/pro/Selector/types.d.ts +223 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/keyboards/locales.d.ts +38 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/es/pro/skuDetailModal/locales.d.ts +159 -0
- package/es/pro/skuDetailModal/types.d.ts +395 -0
- package/es/pro/skuDetailModal/utils.d.ts +4 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +68 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Summary/index.d.ts +37 -0
- package/lib/components/Sales/Summary/utils.d.ts +58 -0
- package/lib/components/appointmentBooking/locales.d.ts +606 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/dashboard/serve.d.ts +2 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/hooks/usePromotion.js +16 -13
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +10 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.js +11 -3
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -5
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +6 -29
- package/lib/components/booking/info/service2/Group/utils.js +0 -8
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +33 -0
- package/lib/components/booking/info2/cartClientCard/types.d.ts +19 -0
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +3 -0
- package/lib/components/booking/info2/model/index.d.ts +1 -0
- package/lib/components/booking/info2/model/strategy/adapter/index.d.ts +7 -0
- package/lib/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +185 -0
- package/lib/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +420 -0
- package/lib/components/booking/info2/model/strategy/adapter/type.d.ts +28 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +84 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +4 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +32 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +1 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +165 -0
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +50 -0
- package/lib/components/booking/info2/model/strategy/index.d.ts +107 -0
- package/lib/components/booking/info2/model/strategy/strategy-example.d.ts +5 -0
- package/lib/components/booking/info2/model/strategy/type.d.ts +228 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +22 -8
- package/lib/components/booking/info2/service/openNormalService.d.ts +37 -0
- package/lib/components/booking/locales.d.ts +1586 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +58 -0
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +59 -0
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +44 -0
- package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/lib/components/checkout/components/ScrollableList/types.d.ts +53 -0
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +134 -0
- package/lib/components/checkout/constants.d.ts +2 -0
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +2 -0
- package/lib/components/checkout/locales.d.ts +856 -0
- package/lib/components/checkout/styles.d.ts +67 -0
- package/lib/components/checkout/types.d.ts +130 -0
- package/lib/components/checkout/utils.d.ts +3 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +36 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/lib/components/ecocup/cupList/const.d.ts +144 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/hooks.d.ts +57 -0
- package/lib/components/ecocup/locales.d.ts +653 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/locales.d.ts +163 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/const.d.ts +195 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/locales.d.ts +608 -0
- package/lib/components/eftposPay/manufacturer.d.ts +8 -0
- package/lib/components/eftposPay/store/index.d.ts +362 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +61 -0
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +43 -0
- package/lib/components/list/TestResponsiveWrapper.d.ts +8 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +13 -0
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +18 -0
- package/lib/components/list/components/ScrollLoader/index.d.ts +2 -0
- package/lib/components/list/components/Tab/Tab.d.ts +5 -0
- package/lib/components/list/components/Tab/index.d.ts +2 -0
- package/lib/components/list/components/Tab/types.d.ts +14 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +11 -0
- package/lib/components/list/components/TabSkeleton/index.d.ts +2 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +33 -0
- package/lib/components/list/components/WaterfallList/index.d.ts +2 -0
- package/lib/components/list/hooks/useDevice.d.ts +24 -0
- package/lib/components/list/hooks/useWaterfall.d.ts +34 -0
- package/lib/components/list/locales.d.ts +108 -0
- package/lib/components/list/types.d.ts +181 -0
- package/lib/components/list/utils/getText.d.ts +53 -0
- package/lib/components/list/utils/index.d.ts +19 -0
- package/lib/components/pay/toB/components/Content/utils.d.ts +16 -0
- package/lib/components/pay/toB/components/MX51/index.d.ts +3 -0
- package/lib/components/pay/toB/hooks.d.ts +12 -0
- package/lib/components/pay/toB/locales.d.ts +88 -0
- package/lib/components/pay/toB/store/context.d.ts +3 -0
- package/lib/components/pay/toB/store/hooks.d.ts +15 -0
- package/lib/components/pay/toB/store/index.d.ts +3 -0
- package/lib/components/pay/toB/store/provider.d.ts +4 -0
- package/lib/components/pay/toB/types/index.d.ts +81 -0
- package/lib/components/pay/toB/types/storeTypes.d.ts +143 -0
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/locales.d.ts +511 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/lib/components/ruleSetting/locales.d.ts +78 -0
- package/lib/components/schedules/locales.d.ts +143 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/locales.d.ts +93 -0
- package/lib/components/shoppingCart/mock.d.ts +54 -0
- package/lib/components/shoppingCart/type.d.ts +58 -0
- package/lib/components/subTotal/locales.d.ts +71 -0
- package/lib/components/systemSettings/registry/locales.d.ts +525 -0
- package/lib/components/systemSettings/registry/services.d.ts +97 -0
- package/lib/components/systemSettings/registry/types.d.ts +139 -0
- package/lib/components/taxSelect/locales.d.ts +38 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +6 -0
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +29 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +4 -0
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +21 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +5 -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/hooks/pisellos/useScanManager.d.ts +6 -0
- package/lib/components/ticketBooking/locales.d.ts +340 -0
- package/lib/components/ticketBooking/utils/edit.d.ts +1 -0
- package/lib/components/ticketBooking/utils/productCache.d.ts +75 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/hooks/printer.d.ts +4 -0
- package/lib/hooks/useEngineContext.d.ts +4 -0
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/useLogger.d.ts +2 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/hooks/useThemeTokens.d.ts +7 -0
- package/lib/hooks/useToast.d.ts +2 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clientCard/types.d.ts +135 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/noteModal/locales.d.ts +53 -0
- package/lib/plus/noteModal/types.d.ts +19 -0
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/orderList/locales.d.ts +618 -0
- package/lib/plus/pisellSalesGrid/locales.d.ts +9 -0
- package/lib/plus/pisellSalesGrid/types.d.ts +170 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +7 -6
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +15 -0
- package/lib/plus/pisellSalesManagement/locales.d.ts +303 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +4 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +173 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +298 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +9 -0
- package/lib/plus/productSelect/ProductCard/utils.d.ts +49 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/lib/plus/productSelect/ProductList/index.d.ts +22 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/saasAttendance/locales.d.ts +591 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
- package/lib/plus/selectHolder/locales.d.ts +38 -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/locales.d.ts +53 -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 +445 -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/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/locales.d.ts +92 -0
- package/lib/plus/webPosLogin/types.d.ts +288 -0
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +12 -0
- package/lib/pro/Cards/components/SKUCard/types.d.ts +73 -0
- package/lib/pro/Login2.0/locales.d.ts +903 -0
- package/lib/pro/Login2.0/shared/types.d.ts +234 -0
- package/lib/pro/NumberKeyboardPopover/types.d.ts +31 -0
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lib/pro/Selector/Selector.stories.d.ts +78 -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/locales.d.ts +58 -0
- package/lib/pro/Selector/types.d.ts +223 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/keyboards/locales.d.ts +38 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/multiDayTimeSelect/types.d.ts +28 -0
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +25 -0
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +63 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +98 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +68 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +73 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +18 -0
- package/lib/pro/skuDetailModal/locales.d.ts +159 -0
- package/lib/pro/skuDetailModal/types.d.ts +395 -0
- package/lib/pro/skuDetailModal/utils.d.ts +4 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.sku-card.search': string;
|
|
4
|
+
'pisell2.sku-card.stock': string;
|
|
5
|
+
'pisell2.sku-card.empty': string;
|
|
6
|
+
'pisell2.sku-card.gst': string;
|
|
7
|
+
'pisell2.sku-card.view-more': string;
|
|
8
|
+
'pisell2.sku-card.view-less': string;
|
|
9
|
+
'pisell2.sku-card.member-price': string;
|
|
10
|
+
'pisell2.sku-card.time.remaining': string;
|
|
11
|
+
'pisell2.sku-card.capacity': string;
|
|
12
|
+
'pisell2.sku-card.free': string;
|
|
13
|
+
'pisell2.sku-card.max': string;
|
|
14
|
+
};
|
|
15
|
+
'zh-CN': {
|
|
16
|
+
'pisell2.sku-card.search': string;
|
|
17
|
+
'pisell2.sku-card.stock': string;
|
|
18
|
+
'pisell2.sku-card.empty': string;
|
|
19
|
+
'pisell2.sku-card.gst': string;
|
|
20
|
+
'pisell2.sku-card.view-more': string;
|
|
21
|
+
'pisell2.sku-card.view-less': string;
|
|
22
|
+
'pisell2.sku-card.member-price': string;
|
|
23
|
+
'pisell2.sku-card.time.remaining': string;
|
|
24
|
+
'pisell2.sku-card.capacity': string;
|
|
25
|
+
'pisell2.sku-card.free': string;
|
|
26
|
+
'pisell2.sku-card.max': string;
|
|
27
|
+
};
|
|
28
|
+
'zh-HK': {
|
|
29
|
+
'pisell2.sku-card.search': string;
|
|
30
|
+
'pisell2.sku-card.stock': string;
|
|
31
|
+
'pisell2.sku-card.empty': string;
|
|
32
|
+
'pisell2.sku-card.gst': string;
|
|
33
|
+
'pisell2.sku-card.view-more': string;
|
|
34
|
+
'pisell2.sku-card.view-less': string;
|
|
35
|
+
'pisell2.sku-card.member-price': string;
|
|
36
|
+
'pisell2.sku-card.time.remaining': string;
|
|
37
|
+
'pisell2.sku-card.capacity': string;
|
|
38
|
+
'pisell2.sku-card.free': string;
|
|
39
|
+
'pisell2.sku-card.max': string;
|
|
40
|
+
};
|
|
41
|
+
ja: {
|
|
42
|
+
'pisell2.sku-card.search': string;
|
|
43
|
+
'pisell2.sku-card.stock': string;
|
|
44
|
+
'pisell2.sku-card.empty': string;
|
|
45
|
+
'pisell2.sku-card.gst': string;
|
|
46
|
+
'pisell2.sku-card.view-more': string;
|
|
47
|
+
'pisell2.sku-card.view-less': string;
|
|
48
|
+
'pisell2.sku-card.member-price': string;
|
|
49
|
+
'pisell2.sku-card.time.remaining': string;
|
|
50
|
+
'pisell2.sku-card.capacity': string;
|
|
51
|
+
'pisell2.sku-card.free': string;
|
|
52
|
+
'pisell2.sku-card.max': string;
|
|
53
|
+
};
|
|
54
|
+
pt: {
|
|
55
|
+
'pisell2.sku-card.search': string;
|
|
56
|
+
'pisell2.sku-card.stock': string;
|
|
57
|
+
'pisell2.sku-card.empty': string;
|
|
58
|
+
'pisell2.sku-card.gst': string;
|
|
59
|
+
'pisell2.sku-card.view-more': string;
|
|
60
|
+
'pisell2.sku-card.view-less': string;
|
|
61
|
+
'pisell2.sku-card.member-price': string;
|
|
62
|
+
'pisell2.sku-card.time.remaining': string;
|
|
63
|
+
'pisell2.sku-card.capacity': string;
|
|
64
|
+
'pisell2.sku-card.free': string;
|
|
65
|
+
'pisell2.sku-card.max': string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { ProductCardConfig } from './type';
|
|
2
|
+
export declare const promotionTagDefault: {
|
|
3
|
+
background: string;
|
|
4
|
+
padding: string;
|
|
5
|
+
borderRadius: number;
|
|
6
|
+
border: string;
|
|
7
|
+
color: string;
|
|
8
|
+
fontSize: number;
|
|
9
|
+
fontWeight: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const productCardDefault: ProductCardConfig;
|
|
12
|
+
export declare const PREFIX = "pisell-product-sku";
|
|
13
|
+
export declare const defaultProductCard: {
|
|
14
|
+
id: number;
|
|
15
|
+
extension_id: number;
|
|
16
|
+
extension_type: string;
|
|
17
|
+
shop_id: number;
|
|
18
|
+
title: string;
|
|
19
|
+
slug: string;
|
|
20
|
+
status: string;
|
|
21
|
+
stock_quantity: number;
|
|
22
|
+
sales_quantity: number;
|
|
23
|
+
sum_stock: number;
|
|
24
|
+
price: string;
|
|
25
|
+
original_price: string;
|
|
26
|
+
cost_price: string;
|
|
27
|
+
member_price: string;
|
|
28
|
+
cover: string;
|
|
29
|
+
channel_application: string[];
|
|
30
|
+
is_track: number;
|
|
31
|
+
over_sold: number;
|
|
32
|
+
is_gst: number;
|
|
33
|
+
code: string;
|
|
34
|
+
barcode: string;
|
|
35
|
+
is_delivery: number;
|
|
36
|
+
weight_unit: string;
|
|
37
|
+
weight_value: string;
|
|
38
|
+
type: string;
|
|
39
|
+
unit: string;
|
|
40
|
+
sort: number;
|
|
41
|
+
subtitle: string;
|
|
42
|
+
minimum_markup_price: string;
|
|
43
|
+
is_bundle: number;
|
|
44
|
+
bundle_group_count: number;
|
|
45
|
+
option_group_count: number;
|
|
46
|
+
is_variant: number;
|
|
47
|
+
variant_count: number;
|
|
48
|
+
cut_off_time: {
|
|
49
|
+
unit: number;
|
|
50
|
+
unit_type: string;
|
|
51
|
+
future_day: number;
|
|
52
|
+
type: string;
|
|
53
|
+
ongoing: {
|
|
54
|
+
type: string;
|
|
55
|
+
unit: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
"schedule.ids": number[];
|
|
59
|
+
policy: number;
|
|
60
|
+
machine_code: {
|
|
61
|
+
make_over: number;
|
|
62
|
+
beforehand: number;
|
|
63
|
+
limit_count: number;
|
|
64
|
+
customer: number;
|
|
65
|
+
send_action: string;
|
|
66
|
+
hide_recharge: number;
|
|
67
|
+
distributor_automatic: number;
|
|
68
|
+
};
|
|
69
|
+
product_resource: {
|
|
70
|
+
resources: ({
|
|
71
|
+
id: number;
|
|
72
|
+
title: string;
|
|
73
|
+
status: number;
|
|
74
|
+
code: string;
|
|
75
|
+
created_at: string;
|
|
76
|
+
updated_at: string;
|
|
77
|
+
type: string;
|
|
78
|
+
optional_resource: number[];
|
|
79
|
+
default_resource: never[];
|
|
80
|
+
select_type: {
|
|
81
|
+
type: string;
|
|
82
|
+
min: number;
|
|
83
|
+
max: number;
|
|
84
|
+
};
|
|
85
|
+
resource_type_id: number;
|
|
86
|
+
} | {
|
|
87
|
+
id: number;
|
|
88
|
+
title: string;
|
|
89
|
+
status: number;
|
|
90
|
+
code: string;
|
|
91
|
+
created_at: string;
|
|
92
|
+
updated_at: null;
|
|
93
|
+
type: string;
|
|
94
|
+
optional_resource: never[];
|
|
95
|
+
default_resource: never[];
|
|
96
|
+
select_type: {
|
|
97
|
+
type: string;
|
|
98
|
+
min: number;
|
|
99
|
+
max: number;
|
|
100
|
+
};
|
|
101
|
+
resource_type_id: number;
|
|
102
|
+
})[];
|
|
103
|
+
};
|
|
104
|
+
capacity: {
|
|
105
|
+
type: string;
|
|
106
|
+
custom: {
|
|
107
|
+
name: {
|
|
108
|
+
en: string;
|
|
109
|
+
"zh-CN": string;
|
|
110
|
+
"zh-HK": string;
|
|
111
|
+
ja: string;
|
|
112
|
+
pt: string;
|
|
113
|
+
original: string;
|
|
114
|
+
};
|
|
115
|
+
min: number;
|
|
116
|
+
max: number;
|
|
117
|
+
id: string;
|
|
118
|
+
}[];
|
|
119
|
+
package: never[];
|
|
120
|
+
};
|
|
121
|
+
product_display_setting: {
|
|
122
|
+
kiosk: {
|
|
123
|
+
use_display_mode: number;
|
|
124
|
+
product_option_mode: null;
|
|
125
|
+
product_option_mode_paging: null;
|
|
126
|
+
product_bundle_mode: null;
|
|
127
|
+
product_bundle_mode_paging: null;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
usage_credits: {
|
|
131
|
+
total_credits: number;
|
|
132
|
+
per_user_limit: number;
|
|
133
|
+
max_per_day: number;
|
|
134
|
+
max_per_week: number;
|
|
135
|
+
max_per_month: number;
|
|
136
|
+
};
|
|
137
|
+
shelf_product_datas: never[];
|
|
138
|
+
step_value: number;
|
|
139
|
+
min_num_unit: number;
|
|
140
|
+
schedules: {
|
|
141
|
+
id: number;
|
|
142
|
+
shop_id: number;
|
|
143
|
+
name: string;
|
|
144
|
+
color: string;
|
|
145
|
+
type: string;
|
|
146
|
+
start_time: string;
|
|
147
|
+
end_time: string;
|
|
148
|
+
note: string;
|
|
149
|
+
repeat_type: string;
|
|
150
|
+
repeat_rule: null;
|
|
151
|
+
designation: null;
|
|
152
|
+
is_all: number;
|
|
153
|
+
create_account_id: number;
|
|
154
|
+
update_account_id: number;
|
|
155
|
+
created_at: string;
|
|
156
|
+
updated_at: string;
|
|
157
|
+
order_count: number;
|
|
158
|
+
limit: number;
|
|
159
|
+
form_record_ids: never[];
|
|
160
|
+
}[];
|
|
161
|
+
is_charge_tax: number;
|
|
162
|
+
base_price: string;
|
|
163
|
+
variant: never[];
|
|
164
|
+
category: {
|
|
165
|
+
id: number;
|
|
166
|
+
name: string;
|
|
167
|
+
icon: string;
|
|
168
|
+
slug: string;
|
|
169
|
+
sort: number;
|
|
170
|
+
}[];
|
|
171
|
+
__typename: string;
|
|
172
|
+
__categoryId: number;
|
|
173
|
+
};
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type BoolConfigVal = false | true;
|
|
3
|
+
declare type IsVisible = 0 | 1;
|
|
4
|
+
declare type SkuDisplayMode = 'display_a1' | 'display_a2' | 'display_a5' | 'display_a9' | 'display_custom';
|
|
5
|
+
declare type SkuLayoutDirection = 'row' | 'column';
|
|
6
|
+
declare type SkuImageSlotPosition = 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
7
|
+
declare type SkuActionType = 'icon' | 'radio' | 'checkbox' | 'button';
|
|
8
|
+
declare type SkuExtraStepperSize = 'large' | 'small';
|
|
9
|
+
declare type SkuFavoritePosition = 'left_top' | 'left_bottom' | 'right_top' | 'right_bottom';
|
|
10
|
+
declare type SkuTagsSize = 'small' | 'medium' | 'large';
|
|
11
|
+
export interface SkuCardConfig {
|
|
12
|
+
displayMode?: SkuDisplayMode;
|
|
13
|
+
layoutDirection?: SkuLayoutDirection;
|
|
14
|
+
background?: string;
|
|
15
|
+
paddingY?: number;
|
|
16
|
+
paddingX?: number;
|
|
17
|
+
marginY?: number;
|
|
18
|
+
marginX?: number;
|
|
19
|
+
radius?: number;
|
|
20
|
+
isBorderVisible?: BoolConfigVal;
|
|
21
|
+
borderWidth?: number;
|
|
22
|
+
borderColor?: string;
|
|
23
|
+
isStatusOverlayVisible?: boolean;
|
|
24
|
+
statusOverlayText?: string;
|
|
25
|
+
isFoldable?: BoolConfigVal;
|
|
26
|
+
slot?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export interface SkuImageConfig {
|
|
29
|
+
isCover?: BoolConfigVal;
|
|
30
|
+
width?: string;
|
|
31
|
+
height?: string;
|
|
32
|
+
isTextFallback?: BoolConfigVal;
|
|
33
|
+
background?: string;
|
|
34
|
+
radius?: number;
|
|
35
|
+
slot?: React.ReactNode;
|
|
36
|
+
slotPosition?: SkuImageSlotPosition;
|
|
37
|
+
}
|
|
38
|
+
export interface SkuProductNameConfig {
|
|
39
|
+
isOpen?: BoolConfigVal;
|
|
40
|
+
value?: string;
|
|
41
|
+
fontSize?: number;
|
|
42
|
+
fontWeight?: number;
|
|
43
|
+
color?: string;
|
|
44
|
+
ellipsisCount?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface SkuProductSubtitleConfig {
|
|
47
|
+
isOpen?: BoolConfigVal;
|
|
48
|
+
value?: any;
|
|
49
|
+
fontSize?: number;
|
|
50
|
+
fontWeight?: number;
|
|
51
|
+
color?: string;
|
|
52
|
+
ellipsisCount?: number;
|
|
53
|
+
}
|
|
54
|
+
export interface SkuProductPriceConfig {
|
|
55
|
+
isOpen?: BoolConfigVal;
|
|
56
|
+
isPrice?: BoolConfigVal;
|
|
57
|
+
priceFontSize?: number;
|
|
58
|
+
priceFontWeight?: number;
|
|
59
|
+
priceColor?: string;
|
|
60
|
+
isShowZeroPrice?: BoolConfigVal;
|
|
61
|
+
isShowFreePrice?: BoolConfigVal;
|
|
62
|
+
isOriginPrice?: BoolConfigVal;
|
|
63
|
+
originPriceFontSize?: number;
|
|
64
|
+
originPriceFontWeight?: number;
|
|
65
|
+
originPriceColor?: string;
|
|
66
|
+
isTaxPrice?: BoolConfigVal;
|
|
67
|
+
isCustomText?: BoolConfigVal;
|
|
68
|
+
customTextType?: string;
|
|
69
|
+
customTextValue?: number;
|
|
70
|
+
customTextMinValue?: number;
|
|
71
|
+
customTextMaxValue?: number;
|
|
72
|
+
isMiniPrice?: BoolConfigVal;
|
|
73
|
+
}
|
|
74
|
+
export interface SkuProductStockConfig {
|
|
75
|
+
isOpen?: BoolConfigVal;
|
|
76
|
+
fontSize?: number;
|
|
77
|
+
fontWeight?: number;
|
|
78
|
+
color?: string;
|
|
79
|
+
customText?: React.ReactNode;
|
|
80
|
+
}
|
|
81
|
+
export interface SkuProductCapacityConfig {
|
|
82
|
+
isOpen?: BoolConfigVal;
|
|
83
|
+
fontSize?: number;
|
|
84
|
+
fontWeight?: number;
|
|
85
|
+
color?: string;
|
|
86
|
+
customText?: React.ReactNode;
|
|
87
|
+
}
|
|
88
|
+
export interface SkuProductCountdownConfig {
|
|
89
|
+
isOpen?: BoolConfigVal;
|
|
90
|
+
fontSize?: number;
|
|
91
|
+
fontWeight?: number;
|
|
92
|
+
color?: string;
|
|
93
|
+
customText?: React.ReactNode;
|
|
94
|
+
}
|
|
95
|
+
export interface SkuProductMemberPriceConfig {
|
|
96
|
+
isOpen?: BoolConfigVal;
|
|
97
|
+
isMemberPrice?: BoolConfigVal;
|
|
98
|
+
fontSize?: number;
|
|
99
|
+
fontWeight?: number;
|
|
100
|
+
color?: string;
|
|
101
|
+
isIndicator?: BoolConfigVal;
|
|
102
|
+
indicatorBackground?: string;
|
|
103
|
+
indicatorPaddingY?: number;
|
|
104
|
+
indicatorPaddingX?: number;
|
|
105
|
+
indicatorMarginX?: number;
|
|
106
|
+
indicatorRadius?: number;
|
|
107
|
+
isIndicatorBorder?: BoolConfigVal;
|
|
108
|
+
indicatorBorderWidth?: number;
|
|
109
|
+
indicatorBorderColor?: string;
|
|
110
|
+
indicatorFontSize?: number;
|
|
111
|
+
indicatorFontWeight?: number;
|
|
112
|
+
indicatorColor?: string;
|
|
113
|
+
indicatorIcon?: React.ReactNode;
|
|
114
|
+
customText?: React.ReactNode;
|
|
115
|
+
}
|
|
116
|
+
export interface SkuDurationConfig {
|
|
117
|
+
isOpen?: BoolConfigVal;
|
|
118
|
+
fontSize?: number;
|
|
119
|
+
fontWeight?: number;
|
|
120
|
+
color?: string;
|
|
121
|
+
customText?: React.ReactNode;
|
|
122
|
+
}
|
|
123
|
+
export interface SkuTimeConfig {
|
|
124
|
+
isOpen?: BoolConfigVal;
|
|
125
|
+
fontSize?: number;
|
|
126
|
+
fontWeight?: number;
|
|
127
|
+
color?: string;
|
|
128
|
+
customText?: React.ReactNode;
|
|
129
|
+
}
|
|
130
|
+
export interface SkuResourceConfig {
|
|
131
|
+
isOpen?: BoolConfigVal;
|
|
132
|
+
fontSize?: number;
|
|
133
|
+
fontWeight?: number;
|
|
134
|
+
color?: string;
|
|
135
|
+
customText?: React.ReactNode;
|
|
136
|
+
}
|
|
137
|
+
export interface SkuTextConfig {
|
|
138
|
+
paddingY?: number;
|
|
139
|
+
justifyContent?: string;
|
|
140
|
+
alignItems?: string;
|
|
141
|
+
slot?: React.ReactNode;
|
|
142
|
+
}
|
|
143
|
+
export interface SkuActionIconMethod {
|
|
144
|
+
icon?: React.ReactNode;
|
|
145
|
+
background?: string;
|
|
146
|
+
paddingY?: number;
|
|
147
|
+
paddingX?: number;
|
|
148
|
+
radius?: number;
|
|
149
|
+
isBorder?: BoolConfigVal;
|
|
150
|
+
borderWidth?: number;
|
|
151
|
+
borderColor?: string;
|
|
152
|
+
}
|
|
153
|
+
export interface SkuActionButtonMethod {
|
|
154
|
+
text?: string;
|
|
155
|
+
fontSize?: number;
|
|
156
|
+
fontWeight?: number;
|
|
157
|
+
color?: string;
|
|
158
|
+
background?: string;
|
|
159
|
+
paddingY?: number;
|
|
160
|
+
paddingX?: number;
|
|
161
|
+
radius?: number;
|
|
162
|
+
isBorder?: BoolConfigVal;
|
|
163
|
+
borderWidth?: number;
|
|
164
|
+
borderColor?: string;
|
|
165
|
+
}
|
|
166
|
+
export interface SkuActionConfig {
|
|
167
|
+
isOpen?: BoolConfigVal;
|
|
168
|
+
method?: SkuActionType;
|
|
169
|
+
iconMethod?: SkuActionIconMethod;
|
|
170
|
+
radioMethod?: SkuActionIconMethod;
|
|
171
|
+
checkboxMethod?: SkuActionButtonMethod;
|
|
172
|
+
buttonMethod?: SkuActionButtonMethod;
|
|
173
|
+
slot?: React.ReactNode;
|
|
174
|
+
}
|
|
175
|
+
export interface SkuExtraConfig {
|
|
176
|
+
isOpen?: BoolConfigVal;
|
|
177
|
+
isStepper?: BoolConfigVal;
|
|
178
|
+
stepperSize?: SkuExtraStepperSize;
|
|
179
|
+
stepperColor?: string;
|
|
180
|
+
isFavorite?: BoolConfigVal;
|
|
181
|
+
favoritePosition?: SkuFavoritePosition;
|
|
182
|
+
favoriteIcon?: React.ReactNode;
|
|
183
|
+
favoriteBackground?: string;
|
|
184
|
+
favoritePaddingY?: number;
|
|
185
|
+
favoritePaddingX?: number;
|
|
186
|
+
favoriteRadius?: number;
|
|
187
|
+
isFavoriteBorder?: BoolConfigVal;
|
|
188
|
+
favoriteBorderWidth?: number;
|
|
189
|
+
favoriteBorderColor?: string;
|
|
190
|
+
isTooltipTag?: BoolConfigVal;
|
|
191
|
+
isTooltipTagSlot?: any;
|
|
192
|
+
}
|
|
193
|
+
export interface SkuTagsGroupConfig {
|
|
194
|
+
title?: any;
|
|
195
|
+
background?: string;
|
|
196
|
+
paddingY?: number;
|
|
197
|
+
paddingX?: number;
|
|
198
|
+
radius?: number;
|
|
199
|
+
isBorder?: BoolConfigVal;
|
|
200
|
+
borderWidth?: number;
|
|
201
|
+
borderColor?: string;
|
|
202
|
+
fontSize?: number;
|
|
203
|
+
fontWeight?: number;
|
|
204
|
+
color?: string;
|
|
205
|
+
}
|
|
206
|
+
export interface SkuTagsConfig {
|
|
207
|
+
isOpen?: BoolConfigVal;
|
|
208
|
+
lists?: SkuTagsGroupConfig[];
|
|
209
|
+
marginX?: number;
|
|
210
|
+
size?: SkuTagsSize;
|
|
211
|
+
isShowAll?: BoolConfigVal;
|
|
212
|
+
maxCount?: number;
|
|
213
|
+
}
|
|
214
|
+
export interface SkuPromotionsGroupConfig {
|
|
215
|
+
title?: any;
|
|
216
|
+
background?: string;
|
|
217
|
+
paddingY?: number;
|
|
218
|
+
paddingX?: number;
|
|
219
|
+
radius?: number;
|
|
220
|
+
isBorder?: BoolConfigVal;
|
|
221
|
+
borderWidth?: number;
|
|
222
|
+
borderColor?: string;
|
|
223
|
+
fontSize?: number;
|
|
224
|
+
fontWeight?: number;
|
|
225
|
+
color?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface SkuPromotionsConfig {
|
|
228
|
+
isOpen?: BoolConfigVal;
|
|
229
|
+
lists?: SkuPromotionsGroupConfig[];
|
|
230
|
+
marginX?: number;
|
|
231
|
+
size?: SkuTagsSize;
|
|
232
|
+
isShowAll?: BoolConfigVal;
|
|
233
|
+
maxCount?: number;
|
|
234
|
+
}
|
|
235
|
+
export interface SkuStatusOverlayConfig {
|
|
236
|
+
isOpen?: BoolConfigVal;
|
|
237
|
+
fontSize?: number;
|
|
238
|
+
fontWeight?: number;
|
|
239
|
+
color?: string;
|
|
240
|
+
text?: string;
|
|
241
|
+
background?: string;
|
|
242
|
+
slot?: React.ReactNode;
|
|
243
|
+
}
|
|
244
|
+
export interface SkuTextWrapConfig {
|
|
245
|
+
infoConfig?: SkuTextConfig;
|
|
246
|
+
skuNameConfig?: SkuProductNameConfig;
|
|
247
|
+
skuSubtitleConfig?: SkuProductSubtitleConfig;
|
|
248
|
+
skuPriceConfig?: SkuProductPriceConfig;
|
|
249
|
+
skuStockConfig?: SkuProductStockConfig;
|
|
250
|
+
skuCapacityConfig?: SkuProductCapacityConfig;
|
|
251
|
+
skuCountdownConfig?: SkuProductCountdownConfig;
|
|
252
|
+
skuMemberPriceConfig?: SkuProductMemberPriceConfig;
|
|
253
|
+
skuDurationConfig?: SkuDurationConfig;
|
|
254
|
+
skuTimeConfig?: SkuTimeConfig;
|
|
255
|
+
skuResourceConfig?: SkuResourceConfig;
|
|
256
|
+
skuTagsConfig?: SkuTagsConfig;
|
|
257
|
+
skuPromotionsConfig?: SkuPromotionsConfig;
|
|
258
|
+
}
|
|
259
|
+
export interface DataSourceConfig {
|
|
260
|
+
title?: string;
|
|
261
|
+
subtitle?: string;
|
|
262
|
+
cover?: string;
|
|
263
|
+
price?: number;
|
|
264
|
+
original_price?: number | string;
|
|
265
|
+
tax_fee?: number | string;
|
|
266
|
+
stock?: number;
|
|
267
|
+
capacity?: number;
|
|
268
|
+
countdown?: number | string;
|
|
269
|
+
member_price?: number;
|
|
270
|
+
duration?: number;
|
|
271
|
+
time?: string;
|
|
272
|
+
resource?: string;
|
|
273
|
+
sortKeys?: string[];
|
|
274
|
+
warning_lists?: string[];
|
|
275
|
+
promotions?: any[];
|
|
276
|
+
resources?: string;
|
|
277
|
+
stock_quantity?: number;
|
|
278
|
+
is_track?: IsVisible;
|
|
279
|
+
tags?: any[];
|
|
280
|
+
tooltip_tags?: any[];
|
|
281
|
+
className?: string;
|
|
282
|
+
[key: string]: any;
|
|
283
|
+
}
|
|
284
|
+
export interface ProductCardConfig {
|
|
285
|
+
dataSource?: DataSourceConfig;
|
|
286
|
+
skuCardConfig?: SkuCardConfig;
|
|
287
|
+
skuImageConfig?: SkuImageConfig;
|
|
288
|
+
skuTextConfig?: SkuTextWrapConfig;
|
|
289
|
+
skuActionConfig?: SkuActionConfig;
|
|
290
|
+
skuExtraConfig?: SkuExtraConfig;
|
|
291
|
+
skuStatusOverlayConfig?: SkuStatusOverlayConfig;
|
|
292
|
+
className?: string;
|
|
293
|
+
onCardClick?: (item: any, extParams?: any) => void;
|
|
294
|
+
onFavorite?: (item: any, extParams?: any) => void;
|
|
295
|
+
onAction?: (item: any, extParams?: any) => void;
|
|
296
|
+
[key: string]: any;
|
|
297
|
+
}
|
|
298
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ProductCardConfig } from './index';
|
|
2
|
+
export declare const formatProductPrice: (item: any) => {
|
|
3
|
+
price: any;
|
|
4
|
+
original_price: any;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* @description: 获取sku卡配置
|
|
8
|
+
* @param {ProductCardConfig} finalConfig
|
|
9
|
+
* @return {*}
|
|
10
|
+
*/
|
|
11
|
+
export declare const getSkuCardConfig: (finalConfig: ProductCardConfig) => {
|
|
12
|
+
skuCardConfig: {
|
|
13
|
+
displayMode: string;
|
|
14
|
+
paddingY: number;
|
|
15
|
+
paddingX: number;
|
|
16
|
+
isBorderVisible: boolean;
|
|
17
|
+
layoutDirection: "column" | "row";
|
|
18
|
+
};
|
|
19
|
+
skuActionConfig: {
|
|
20
|
+
isOpen: boolean;
|
|
21
|
+
};
|
|
22
|
+
skuExtraConfig: {
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
};
|
|
25
|
+
skuTextConfig: {
|
|
26
|
+
skuSubtitleConfig: {
|
|
27
|
+
isOpen: (0 | 1) | undefined;
|
|
28
|
+
};
|
|
29
|
+
skuNameConfig: {
|
|
30
|
+
isOpen: (0 | 1) | undefined;
|
|
31
|
+
};
|
|
32
|
+
skuPriceConfig: {
|
|
33
|
+
isOpen: (0 | 1) | undefined;
|
|
34
|
+
isPrice: (0 | 1) | undefined;
|
|
35
|
+
isShowZeroPrice: boolean | undefined;
|
|
36
|
+
isOriginPrice: (0 | 1) | undefined;
|
|
37
|
+
};
|
|
38
|
+
skuStockConfig: {
|
|
39
|
+
isOpen: (0 | 1) | undefined;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
skuImageConfig: {
|
|
43
|
+
isCover: (0 | 1) | undefined;
|
|
44
|
+
width: string | undefined;
|
|
45
|
+
height: string | undefined;
|
|
46
|
+
isTextFallback: boolean;
|
|
47
|
+
radius: number | undefined;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface GridConfig {
|
|
3
|
+
grid: boolean;
|
|
4
|
+
config: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const parseGridConfig: (config: string) => number[];
|
|
7
|
+
export declare const createGridComponents: (layout?: GridConfig | null, { tabSwitchMode }?: {
|
|
8
|
+
tabSwitchMode?: "anchor" | "switch" | undefined;
|
|
9
|
+
}) => {
|
|
10
|
+
List: React.MemoExoticComponent<({ children, ...props }: any) => React.JSX.Element>;
|
|
11
|
+
Item: React.MemoExoticComponent<({ children, index, item, ...props }: any) => React.JSX.Element | null>;
|
|
12
|
+
};
|
|
13
|
+
export declare const GRID_LAYOUTS: {
|
|
14
|
+
readonly SINGLE_COLUMN: {
|
|
15
|
+
readonly grid: false;
|
|
16
|
+
readonly config: "12";
|
|
17
|
+
};
|
|
18
|
+
readonly TWO_COLUMNS: {
|
|
19
|
+
readonly grid: true;
|
|
20
|
+
readonly config: "12:12";
|
|
21
|
+
};
|
|
22
|
+
readonly THREE_COLUMNS: {
|
|
23
|
+
readonly grid: true;
|
|
24
|
+
readonly config: "8:8:8";
|
|
25
|
+
};
|
|
26
|
+
readonly FOUR_COLUMNS: {
|
|
27
|
+
readonly grid: true;
|
|
28
|
+
readonly config: "6:6:6:6";
|
|
29
|
+
};
|
|
30
|
+
readonly UNEQUAL_TWO: {
|
|
31
|
+
readonly grid: true;
|
|
32
|
+
readonly config: "8:16";
|
|
33
|
+
};
|
|
34
|
+
readonly UNEQUAL_THREE: {
|
|
35
|
+
readonly grid: true;
|
|
36
|
+
readonly config: "6:12:6";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const createTwoColumnGrid: () => {
|
|
40
|
+
List: React.MemoExoticComponent<({ children, ...props }: any) => React.JSX.Element>;
|
|
41
|
+
Item: React.MemoExoticComponent<({ children, index, item, ...props }: any) => React.JSX.Element | null>;
|
|
42
|
+
};
|
|
43
|
+
export declare const createCustomGrid: (config: string) => {
|
|
44
|
+
List: React.MemoExoticComponent<({ children, ...props }: any) => React.JSX.Element>;
|
|
45
|
+
Item: React.MemoExoticComponent<({ children, index, item, ...props }: any) => React.JSX.Element | null>;
|
|
46
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
data: any[];
|
|
6
|
+
context: {
|
|
7
|
+
onItemIntersectionIn: (item: any) => void;
|
|
8
|
+
onItemIntersectionOut: (item: any) => void;
|
|
9
|
+
};
|
|
10
|
+
customScrollParent?: Element | null;
|
|
11
|
+
components?: {
|
|
12
|
+
List?: React.ComponentType<any>;
|
|
13
|
+
Item?: React.ComponentType<any>;
|
|
14
|
+
[key: string]: React.ComponentType<any> | undefined;
|
|
15
|
+
};
|
|
16
|
+
itemContent?: (index: number, data: any, context: any) => React.ReactNode;
|
|
17
|
+
itemSkeleton?: React.ReactNode;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
declare const ProductList: React.ForwardRefExoticComponent<Omit<IProps, "ref"> & React.RefAttributes<any>>;
|
|
21
|
+
export default ProductList;
|
|
22
|
+
export { createGridComponents, createTwoColumnGrid, createCustomGrid, GRID_LAYOUTS, type GridConfig, } from './gridComponents';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TabsStructureProps, TabListContainerProps, TabItemProps, RailProps, SelectionIndicatorProps, ScrollShadowProps, ChevronControlsProps, ChevronButtonProps } from './types';
|
|
3
|
+
declare global {
|
|
4
|
+
interface WeakRef<T extends object> {
|
|
5
|
+
deref(): T | undefined;
|
|
6
|
+
}
|
|
7
|
+
interface WeakRefConstructor {
|
|
8
|
+
new <T extends object>(target: T): WeakRef<T>;
|
|
9
|
+
}
|
|
10
|
+
const WeakRef: WeakRefConstructor | undefined;
|
|
11
|
+
}
|
|
12
|
+
declare const TabListContainer: React.ForwardRefExoticComponent<Omit<TabListContainerProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
13
|
+
declare const TabItem: React.ForwardRefExoticComponent<Omit<TabItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
declare const Rail: React.ForwardRefExoticComponent<Omit<RailProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const SelectionIndicator: React.ForwardRefExoticComponent<Omit<SelectionIndicatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
declare const ScrollShadow: React.ForwardRefExoticComponent<Omit<ScrollShadowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const ChevronButton: React.ForwardRefExoticComponent<Omit<ChevronButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
declare const ChevronControls: React.FC<ChevronControlsProps>;
|
|
19
|
+
declare type TabsStructureComponent = React.FC<TabsStructureProps> & {
|
|
20
|
+
Rail: typeof Rail;
|
|
21
|
+
ListContainer: typeof TabListContainer;
|
|
22
|
+
Item: typeof TabItem;
|
|
23
|
+
SelectionIndicator: typeof SelectionIndicator;
|
|
24
|
+
ScrollShadow: typeof ScrollShadow;
|
|
25
|
+
ChevronControls: typeof ChevronControls;
|
|
26
|
+
ChevronButton: typeof ChevronButton;
|
|
27
|
+
};
|
|
28
|
+
declare const TabsStructureWithSubComponents: TabsStructureComponent;
|
|
29
|
+
export default TabsStructureWithSubComponents;
|
|
30
|
+
export { TabListContainer, TabItem, Rail, SelectionIndicator, ScrollShadow, ChevronControls, ChevronButton, };
|