@pisell/private-materials 6.11.48 → 6.11.49
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/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +5 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.js +26 -3
- package/es/components/booking/info/service2/Group/utils.js +8 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +2 -23
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eventBooking/components/ErrorTip/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/pay/toC/utils.d.ts +2 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/plus/orderList/config.d.ts +2 -2
- package/es/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +5 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.js +29 -6
- package/lib/components/booking/info/service2/Group/utils.js +8 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +8 -22
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eventBooking/components/ErrorTip/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/pay/toC/utils.d.ts +2 -2
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/plus/orderList/config.d.ts +2 -2
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +6 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/Sales/Cart/utils.d.ts +0 -68
- package/es/components/Sales/Checkout/utils.d.ts +0 -41
- package/es/components/Sales/Summary/index.d.ts +0 -37
- package/es/components/Sales/Summary/utils.d.ts +0 -58
- package/es/components/appointmentBooking/locales.d.ts +0 -606
- package/es/components/booking/components/voucher/utils.d.ts +0 -4
- package/es/components/booking/dashboard/serve.d.ts +0 -2
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/booking/forms/serve.d.ts +0 -18
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/client/serve.d.ts +0 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
- package/es/components/booking/info/pet/serve.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/serve.d.ts +0 -34
- package/es/components/booking/info2/cartClientCard/locales.d.ts +0 -33
- package/es/components/booking/info2/cartClientCard/types.d.ts +0 -19
- package/es/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/es/components/booking/info2/model/index.d.ts +0 -1
- package/es/components/booking/info2/model/strategy/adapter/index.d.ts +0 -7
- package/es/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +0 -185
- package/es/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +0 -420
- package/es/components/booking/info2/model/strategy/adapter/type.d.ts +0 -28
- package/es/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +0 -84
- package/es/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +0 -4
- package/es/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +0 -32
- package/es/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/es/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +0 -165
- package/es/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +0 -50
- package/es/components/booking/info2/model/strategy/index.d.ts +0 -107
- package/es/components/booking/info2/model/strategy/strategy-example.d.ts +0 -5
- package/es/components/booking/info2/model/strategy/type.d.ts +0 -228
- package/es/components/booking/info2/serve.d.ts +0 -6
- package/es/components/booking/info2/service/openNormalService.d.ts +0 -37
- package/es/components/booking/locales.d.ts +0 -1586
- package/es/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- package/es/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/es/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/es/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/es/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/es/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/es/components/checkout/constants.d.ts +0 -2
- package/es/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/es/components/checkout/locales.d.ts +0 -856
- package/es/components/checkout/styles.d.ts +0 -67
- package/es/components/checkout/types.d.ts +0 -130
- package/es/components/checkout/utils.d.ts +0 -3
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -36
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/es/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/es/components/ecocup/components/SettingModal/const.d.ts +0 -6
- package/es/components/ecocup/cupList/const.d.ts +0 -144
- package/es/components/ecocup/cupProject/const.d.ts +0 -7
- package/es/components/ecocup/customerList/const.d.ts +0 -44
- package/es/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/es/components/ecocup/hooks.d.ts +0 -57
- package/es/components/ecocup/locales.d.ts +0 -653
- package/es/components/ecocup/types.d.ts +0 -103
- package/es/components/ecocup/utils/download.d.ts +0 -7
- package/es/components/ecocup/utils/index.d.ts +0 -2
- package/es/components/ecocup/utils/scanListener.d.ts +0 -20
- package/es/components/eftpos/const.d.ts +0 -64
- package/es/components/eftpos/hooks.d.ts +0 -33
- package/es/components/eftpos/locales.d.ts +0 -163
- package/es/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/es/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/es/components/eftposPay/const.d.ts +0 -195
- package/es/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/es/components/eftposPay/huifu/types.d.ts +0 -14
- package/es/components/eftposPay/locales.d.ts +0 -608
- package/es/components/eftposPay/manufacturer.d.ts +0 -8
- package/es/components/eftposPay/store/index.d.ts +0 -362
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +0 -61
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/es/components/kioskSkuDetail/locales.d.ts +0 -43
- package/es/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/es/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/es/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/es/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/es/components/list/components/Tab/Tab.d.ts +0 -5
- package/es/components/list/components/Tab/index.d.ts +0 -2
- package/es/components/list/components/Tab/types.d.ts +0 -14
- package/es/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/es/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/es/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/es/components/list/components/WaterfallList/index.d.ts +0 -2
- package/es/components/list/hooks/useDevice.d.ts +0 -24
- package/es/components/list/hooks/useWaterfall.d.ts +0 -34
- package/es/components/list/locales.d.ts +0 -108
- package/es/components/list/types.d.ts +0 -181
- package/es/components/list/utils/getText.d.ts +0 -53
- package/es/components/list/utils/index.d.ts +0 -19
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/locales.d.ts +0 -88
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/types/index.d.ts +0 -81
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
- package/es/components/pay/toC/locales.d.ts +0 -511
- package/es/components/pisellSelectCustomerModal/locales.d.ts +0 -133
- package/es/components/ruleSetting/locales.d.ts +0 -78
- package/es/components/schedules/locales.d.ts +0 -143
- package/es/components/shoppingCart/Provider.d.ts +0 -3
- package/es/components/shoppingCart/locales.d.ts +0 -93
- package/es/components/shoppingCart/mock.d.ts +0 -54
- package/es/components/shoppingCart/type.d.ts +0 -58
- package/es/components/subTotal/locales.d.ts +0 -71
- package/es/components/systemSettings/registry/locales.d.ts +0 -525
- package/es/components/systemSettings/registry/services.d.ts +0 -97
- package/es/components/systemSettings/registry/types.d.ts +0 -139
- package/es/components/taxSelect/locales.d.ts +0 -38
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/es/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/es/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/es/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +0 -29
- package/es/components/ticketBooking/context/index.d.ts +0 -2
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/es/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/es/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/es/components/ticketBooking/locales.d.ts +0 -340
- package/es/components/ticketBooking/utils/edit.d.ts +0 -1
- package/es/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/hooks/printer.d.ts +0 -4
- package/es/hooks/useEngineContext.d.ts +0 -4
- package/es/hooks/useLocale.d.ts +0 -2
- package/es/hooks/useLogger.d.ts +0 -2
- package/es/hooks/useThemeTokens.d.ts +0 -7
- package/es/hooks/useToast.d.ts +0 -2
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/plus/clientCard/types.d.ts +0 -135
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/es/plus/noteModal/locales.d.ts +0 -53
- package/es/plus/noteModal/types.d.ts +0 -19
- package/es/plus/orderList/locales.d.ts +0 -618
- package/es/plus/pisellSalesGrid/locales.d.ts +0 -9
- package/es/plus/pisellSalesGrid/types.d.ts +0 -170
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +0 -15
- package/es/plus/pisellSalesManagement/locales.d.ts +0 -303
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/es/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
- package/es/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -173
- package/es/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/es/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/es/plus/productSelect/ProductCard/utils.d.ts +0 -49
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/es/plus/productSelect/ProductList/index.d.ts +0 -22
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/es/plus/saasAttendance/locales.d.ts +0 -591
- package/es/plus/saasAttendance/settings/types.d.ts +0 -136
- package/es/plus/saasTeamMembers/locales.d.ts +0 -546
- package/es/plus/selectHolder/locales.d.ts +0 -38
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +0 -3
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +0 -2
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
- package/es/plus/skuOptionsSelection/locales.d.ts +0 -53
- package/es/plus/skuOptionsSelection/store/actions.d.ts +0 -22
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
- package/es/plus/skuOptionsSelection/store/index.d.ts +0 -2
- package/es/plus/skuOptionsSelection/store/store.d.ts +0 -4
- package/es/plus/skuOptionsSelection/types.d.ts +0 -445
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +0 -37
- package/es/plus/skuOptionsSelection/utils/index.d.ts +0 -7
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
- package/es/plus/webPosLogin/locales.d.ts +0 -92
- package/es/plus/webPosLogin/types.d.ts +0 -288
- package/es/pro/Cards/components/SKUCard/locales.d.ts +0 -12
- package/es/pro/Cards/components/SKUCard/types.d.ts +0 -73
- package/es/pro/Login2.0/locales.d.ts +0 -903
- package/es/pro/Login2.0/shared/types.d.ts +0 -234
- package/es/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/es/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/es/pro/Selector/Selector.stories.d.ts +0 -78
- package/es/pro/Selector/components/Card/index.d.ts +0 -57
- package/es/pro/Selector/components/Card/types.d.ts +0 -1
- package/es/pro/Selector/components/Indicator/index.d.ts +0 -20
- package/es/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +0 -18
- package/es/pro/Selector/components/Media/index.d.ts +0 -6
- package/es/pro/Selector/components/Media/types.d.ts +0 -47
- package/es/pro/Selector/components/index.d.ts +0 -4
- package/es/pro/Selector/demo.d.ts +0 -3
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
- package/es/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/es/pro/Selector/locales.d.ts +0 -58
- package/es/pro/Selector/types.d.ts +0 -223
- package/es/pro/Selector/utils/index.d.ts +0 -49
- package/es/pro/keyboards/locales.d.ts +0 -38
- package/es/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/es/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/es/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- package/es/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/es/pro/skuDetailModal/locales.d.ts +0 -159
- package/es/pro/skuDetailModal/types.d.ts +0 -395
- package/es/pro/skuDetailModal/utils.d.ts +0 -4
- package/es/test/setup.d.ts +0 -1
- package/lib/components/Sales/Cart/utils.d.ts +0 -68
- package/lib/components/Sales/Checkout/utils.d.ts +0 -41
- package/lib/components/Sales/Summary/index.d.ts +0 -37
- package/lib/components/Sales/Summary/utils.d.ts +0 -58
- package/lib/components/appointmentBooking/locales.d.ts +0 -606
- package/lib/components/booking/components/voucher/utils.d.ts +0 -4
- package/lib/components/booking/dashboard/serve.d.ts +0 -2
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/booking/forms/serve.d.ts +0 -18
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/client/serve.d.ts +0 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -10
- package/lib/components/booking/info/pet/serve.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +0 -5
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/serve.d.ts +0 -34
- package/lib/components/booking/info2/cartClientCard/locales.d.ts +0 -33
- package/lib/components/booking/info2/cartClientCard/types.d.ts +0 -19
- package/lib/components/booking/info2/cartClientCard/utils.d.ts +0 -3
- package/lib/components/booking/info2/model/index.d.ts +0 -1
- package/lib/components/booking/info2/model/strategy/adapter/index.d.ts +0 -7
- package/lib/components/booking/info2/model/strategy/adapter/promotion/evaluator.d.ts +0 -185
- package/lib/components/booking/info2/model/strategy/adapter/promotion/type.d.ts +0 -420
- package/lib/components/booking/info2/model/strategy/adapter/type.d.ts +0 -28
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/evaluator.d.ts +0 -84
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/example.d.ts +0 -4
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/index.d.ts +0 -32
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/type.d.ts +0 -165
- package/lib/components/booking/info2/model/strategy/adapter/walletPass/utils.d.ts +0 -50
- package/lib/components/booking/info2/model/strategy/index.d.ts +0 -107
- package/lib/components/booking/info2/model/strategy/strategy-example.d.ts +0 -5
- package/lib/components/booking/info2/model/strategy/type.d.ts +0 -228
- package/lib/components/booking/info2/serve.d.ts +0 -6
- package/lib/components/booking/info2/service/openNormalService.d.ts +0 -37
- package/lib/components/booking/locales.d.ts +0 -1586
- package/lib/components/checkout/components/AdditionalModule/locales.d.ts +0 -58
- package/lib/components/checkout/components/PaymentResultToast/types.d.ts +0 -59
- package/lib/components/checkout/components/PaymentResultToast/utils.d.ts +0 -44
- package/lib/components/checkout/components/ScrollableList/index.d.ts +0 -5
- package/lib/components/checkout/components/ScrollableList/types.d.ts +0 -53
- package/lib/components/checkout/components/WalletPassModule/types.d.ts +0 -134
- package/lib/components/checkout/constants.d.ts +0 -2
- package/lib/components/checkout/hooks/usePaymentLogger.d.ts +0 -2
- package/lib/components/checkout/locales.d.ts +0 -856
- package/lib/components/checkout/styles.d.ts +0 -67
- package/lib/components/checkout/types.d.ts +0 -130
- package/lib/components/checkout/utils.d.ts +0 -3
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +0 -5
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +0 -36
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +0 -14
- package/lib/components/ecocup/components/SearchBar/const.d.ts +0 -4
- package/lib/components/ecocup/components/SettingModal/const.d.ts +0 -6
- package/lib/components/ecocup/cupList/const.d.ts +0 -144
- package/lib/components/ecocup/cupProject/const.d.ts +0 -7
- package/lib/components/ecocup/customerList/const.d.ts +0 -44
- package/lib/components/ecocup/customerList/hooks/index.d.ts +0 -3
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +0 -15
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +0 -15
- package/lib/components/ecocup/hooks.d.ts +0 -57
- package/lib/components/ecocup/locales.d.ts +0 -653
- package/lib/components/ecocup/types.d.ts +0 -103
- package/lib/components/ecocup/utils/download.d.ts +0 -7
- package/lib/components/ecocup/utils/index.d.ts +0 -2
- package/lib/components/ecocup/utils/scanListener.d.ts +0 -20
- package/lib/components/eftpos/const.d.ts +0 -64
- package/lib/components/eftpos/hooks.d.ts +0 -33
- package/lib/components/eftpos/locales.d.ts +0 -163
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +0 -3
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +0 -106
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -139
- package/lib/components/eftposPay/const.d.ts +0 -195
- package/lib/components/eftposPay/huifu/hooks.d.ts +0 -25
- package/lib/components/eftposPay/huifu/types.d.ts +0 -14
- package/lib/components/eftposPay/locales.d.ts +0 -608
- package/lib/components/eftposPay/manufacturer.d.ts +0 -8
- package/lib/components/eftposPay/store/index.d.ts +0 -362
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +0 -61
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +0 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +0 -43
- package/lib/components/list/TestResponsiveWrapper.d.ts +0 -8
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.d.ts +0 -13
- package/lib/components/list/components/ListItemSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/ScrollLoader/ScrollLoader.d.ts +0 -18
- package/lib/components/list/components/ScrollLoader/index.d.ts +0 -2
- package/lib/components/list/components/Tab/Tab.d.ts +0 -5
- package/lib/components/list/components/Tab/index.d.ts +0 -2
- package/lib/components/list/components/Tab/types.d.ts +0 -14
- package/lib/components/list/components/TabSkeleton/TabSkeleton.d.ts +0 -11
- package/lib/components/list/components/TabSkeleton/index.d.ts +0 -2
- package/lib/components/list/components/WaterfallList/WaterfallList.d.ts +0 -33
- package/lib/components/list/components/WaterfallList/index.d.ts +0 -2
- package/lib/components/list/hooks/useDevice.d.ts +0 -24
- package/lib/components/list/hooks/useWaterfall.d.ts +0 -34
- package/lib/components/list/locales.d.ts +0 -108
- package/lib/components/list/types.d.ts +0 -181
- package/lib/components/list/utils/getText.d.ts +0 -53
- package/lib/components/list/utils/index.d.ts +0 -19
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/MX51/index.d.ts +0 -3
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/locales.d.ts +0 -88
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/types/index.d.ts +0 -81
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -4
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
- package/lib/components/pay/toC/locales.d.ts +0 -511
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +0 -133
- package/lib/components/ruleSetting/locales.d.ts +0 -78
- package/lib/components/schedules/locales.d.ts +0 -143
- package/lib/components/shoppingCart/Provider.d.ts +0 -3
- package/lib/components/shoppingCart/locales.d.ts +0 -93
- package/lib/components/shoppingCart/mock.d.ts +0 -54
- package/lib/components/shoppingCart/type.d.ts +0 -58
- package/lib/components/subTotal/locales.d.ts +0 -71
- package/lib/components/systemSettings/registry/locales.d.ts +0 -525
- package/lib/components/systemSettings/registry/services.d.ts +0 -97
- package/lib/components/systemSettings/registry/types.d.ts +0 -139
- package/lib/components/taxSelect/locales.d.ts +0 -38
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +0 -115
- package/lib/components/ticketBooking/components/bookingDataPanel/bookingList/utils.d.ts +0 -6
- package/lib/components/ticketBooking/components/bookingDataPanel/serve.d.ts +0 -0
- package/lib/components/ticketBooking/context/IsActiveContext.d.ts +0 -26
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +0 -29
- package/lib/components/ticketBooking/context/index.d.ts +0 -2
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -4
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.d.ts +0 -21
- package/lib/components/ticketBooking/hooks/pisellos/useCartChangeEffect.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/lib/components/ticketBooking/hooks/pisellos/useScanManager.d.ts +0 -6
- package/lib/components/ticketBooking/locales.d.ts +0 -340
- package/lib/components/ticketBooking/utils/edit.d.ts +0 -1
- package/lib/components/ticketBooking/utils/productCache.d.ts +0 -75
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/hooks/printer.d.ts +0 -4
- package/lib/hooks/useEngineContext.d.ts +0 -4
- package/lib/hooks/useLocale.d.ts +0 -2
- package/lib/hooks/useLogger.d.ts +0 -2
- package/lib/hooks/useThemeTokens.d.ts +0 -7
- package/lib/hooks/useToast.d.ts +0 -2
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/plus/clientCard/types.d.ts +0 -135
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +0 -46
- package/lib/plus/noteModal/locales.d.ts +0 -53
- package/lib/plus/noteModal/types.d.ts +0 -19
- package/lib/plus/orderList/locales.d.ts +0 -618
- package/lib/plus/pisellSalesGrid/locales.d.ts +0 -9
- package/lib/plus/pisellSalesGrid/types.d.ts +0 -170
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.d.ts +0 -15
- package/lib/plus/pisellSalesManagement/locales.d.ts +0 -303
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +0 -6
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.d.ts +0 -4
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.d.ts +0 -68
- package/lib/plus/productSelect/ProductCard/SkuCard/status.d.ts +0 -173
- package/lib/plus/productSelect/ProductCard/SkuCard/type.d.ts +0 -298
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.d.ts +0 -9
- package/lib/plus/productSelect/ProductCard/utils.d.ts +0 -49
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -46
- package/lib/plus/productSelect/ProductList/index.d.ts +0 -22
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/lib/plus/saasAttendance/locales.d.ts +0 -591
- package/lib/plus/saasAttendance/settings/types.d.ts +0 -136
- package/lib/plus/saasTeamMembers/locales.d.ts +0 -546
- package/lib/plus/selectHolder/locales.d.ts +0 -38
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +0 -3
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/locales.d.ts +0 -53
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +0 -22
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
- package/lib/plus/skuOptionsSelection/store/index.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/store/store.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/types.d.ts +0 -445
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +0 -37
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +0 -7
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +0 -54
- package/lib/plus/webPosLogin/locales.d.ts +0 -92
- package/lib/plus/webPosLogin/types.d.ts +0 -288
- package/lib/pro/Cards/components/SKUCard/locales.d.ts +0 -12
- package/lib/pro/Cards/components/SKUCard/types.d.ts +0 -73
- package/lib/pro/Login2.0/locales.d.ts +0 -903
- package/lib/pro/Login2.0/shared/types.d.ts +0 -234
- package/lib/pro/NumberKeyboardPopover/types.d.ts +0 -31
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +0 -3
- package/lib/pro/Selector/Selector.stories.d.ts +0 -78
- package/lib/pro/Selector/components/Card/index.d.ts +0 -57
- package/lib/pro/Selector/components/Card/types.d.ts +0 -1
- package/lib/pro/Selector/components/Indicator/index.d.ts +0 -20
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +0 -18
- package/lib/pro/Selector/components/Media/index.d.ts +0 -6
- package/lib/pro/Selector/components/Media/types.d.ts +0 -47
- package/lib/pro/Selector/components/index.d.ts +0 -4
- package/lib/pro/Selector/demo.d.ts +0 -3
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +0 -43
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +0 -24
- package/lib/pro/Selector/locales.d.ts +0 -58
- package/lib/pro/Selector/types.d.ts +0 -223
- package/lib/pro/Selector/utils/index.d.ts +0 -49
- package/lib/pro/keyboards/locales.d.ts +0 -38
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +0 -63
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/pro/pisellPriceKeyboardModal/types.d.ts +0 -25
- package/lib/pro/pisellPriceKeyboardPopover/index.d.ts +0 -2
- package/lib/pro/pisellPriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +0 -33
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +0 -63
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -98
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +0 -68
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +0 -17
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +0 -73
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +0 -39
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -18
- package/lib/pro/skuDetailModal/locales.d.ts +0 -159
- package/lib/pro/skuDetailModal/types.d.ts +0 -395
- package/lib/pro/skuDetailModal/utils.d.ts +0 -4
- package/lib/test/setup.d.ts +0 -1
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 登录注册 2.0 共享类型定义
|
|
3
|
-
*/
|
|
4
|
-
/** 验证方式枚举 */
|
|
5
|
-
export declare type VerificationMethod = 'verification_code' | 'password';
|
|
6
|
-
/** 邮箱注册验证方式 */
|
|
7
|
-
export declare type EmailRegistrationVerification = 'verification_link' | 'verification_code' | 'none';
|
|
8
|
-
/** 手机注册验证方式 */
|
|
9
|
-
export declare type PhoneRegistrationVerification = 'verification_code';
|
|
10
|
-
/** 认证方式类型 */
|
|
11
|
-
export declare type AuthMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple' | 'guest';
|
|
12
|
-
/** 登录方式项类型 */
|
|
13
|
-
export declare type LoginMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple' | 'guest';
|
|
14
|
-
export interface PhoneValueObject {
|
|
15
|
-
phone: string;
|
|
16
|
-
country_calling_code: string;
|
|
17
|
-
}
|
|
18
|
-
/** 邮箱登录方式项 */
|
|
19
|
-
export interface EmailLoginMethod {
|
|
20
|
-
type: 'email';
|
|
21
|
-
/** 启用的验证方式(按顺序),第一个为默认方式 */
|
|
22
|
-
verificationMethods: Array<'password' | 'verification_code'>;
|
|
23
|
-
/** 密码登录是否分步骤填写(先输入邮箱,再输入密码) */
|
|
24
|
-
stepByStep?: boolean;
|
|
25
|
-
}
|
|
26
|
-
/** 手机登录方式项 */
|
|
27
|
-
export interface PhoneLoginMethod {
|
|
28
|
-
type: 'phone';
|
|
29
|
-
/** 启用的验证方式(按顺序),第一个为默认方式 */
|
|
30
|
-
verificationMethods: Array<'password' | 'verification_code'>;
|
|
31
|
-
/** 密码登录是否分步骤填写(先输入手机号,再输入密码) */
|
|
32
|
-
stepByStep?: boolean;
|
|
33
|
-
}
|
|
34
|
-
/** Google 登录方式项 */
|
|
35
|
-
export interface GoogleLoginMethod {
|
|
36
|
-
type: 'google';
|
|
37
|
-
/** Google Client ID */
|
|
38
|
-
clientId?: string;
|
|
39
|
-
}
|
|
40
|
-
/** Facebook 登录方式项 */
|
|
41
|
-
export interface FacebookLoginMethod {
|
|
42
|
-
type: 'facebook';
|
|
43
|
-
/** Facebook App ID */
|
|
44
|
-
appId?: string;
|
|
45
|
-
}
|
|
46
|
-
/** Apple 登录方式项 */
|
|
47
|
-
export interface AppleLoginMethod {
|
|
48
|
-
type: 'apple';
|
|
49
|
-
/** Apple Client ID */
|
|
50
|
-
clientId?: string;
|
|
51
|
-
}
|
|
52
|
-
/** Guest 登录方式项 */
|
|
53
|
-
export interface GuestLoginMethod {
|
|
54
|
-
type: 'guest';
|
|
55
|
-
}
|
|
56
|
-
/** 注册方式类型 */
|
|
57
|
-
export declare type RegistrationMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple';
|
|
58
|
-
/** 邮箱注册方式项 */
|
|
59
|
-
export interface EmailRegistrationMethod {
|
|
60
|
-
type: 'email';
|
|
61
|
-
/** 注册验证方式(邮箱支持验证链接/验证码/无需验证) */
|
|
62
|
-
verificationMethod: 'verification_link' | 'verification_code' | 'none';
|
|
63
|
-
}
|
|
64
|
-
/** 手机注册方式项 */
|
|
65
|
-
export interface PhoneRegistrationMethod {
|
|
66
|
-
type: 'phone';
|
|
67
|
-
/** 注册验证方式(手机仅支持验证码) */
|
|
68
|
-
verificationMethod: 'verification_code';
|
|
69
|
-
}
|
|
70
|
-
/** Google 注册方式项 */
|
|
71
|
-
export interface GoogleRegistrationMethod {
|
|
72
|
-
type: 'google';
|
|
73
|
-
/** Google Client ID */
|
|
74
|
-
clientId?: string;
|
|
75
|
-
}
|
|
76
|
-
/** Facebook 注册方式项 */
|
|
77
|
-
export interface FacebookRegistrationMethod {
|
|
78
|
-
type: 'facebook';
|
|
79
|
-
/** Facebook App ID */
|
|
80
|
-
appId?: string;
|
|
81
|
-
}
|
|
82
|
-
/** Apple 注册方式项 */
|
|
83
|
-
export interface AppleRegistrationMethod {
|
|
84
|
-
type: 'apple';
|
|
85
|
-
/** Apple Client ID */
|
|
86
|
-
clientId?: string;
|
|
87
|
-
}
|
|
88
|
-
/** 注册方式项联合类型 */
|
|
89
|
-
export declare type RegistrationMethodItem = EmailRegistrationMethod | PhoneRegistrationMethod | GoogleRegistrationMethod | FacebookRegistrationMethod | AppleRegistrationMethod;
|
|
90
|
-
/** 法律条款项 */
|
|
91
|
-
export interface LegalTermItem {
|
|
92
|
-
/** 条款名称 - 支持国际化对象或简单字符串 */
|
|
93
|
-
name: string | {
|
|
94
|
-
en?: string;
|
|
95
|
-
'zh-CN'?: string;
|
|
96
|
-
'zh-HK'?: string;
|
|
97
|
-
'ja'?: string;
|
|
98
|
-
'pt'?: string;
|
|
99
|
-
original?: string;
|
|
100
|
-
};
|
|
101
|
-
/** 条款链接 */
|
|
102
|
-
url: string;
|
|
103
|
-
}
|
|
104
|
-
/** 法律条款配置 */
|
|
105
|
-
export interface LegalTermsConfig {
|
|
106
|
-
/** 是否显示法律条款区域 */
|
|
107
|
-
enabled?: boolean;
|
|
108
|
-
/** 法律条款列表 */
|
|
109
|
-
terms?: LegalTermItem[];
|
|
110
|
-
/** 条款文本模板 */
|
|
111
|
-
textTemplate?: string;
|
|
112
|
-
/** 当前模式:login 或 register */
|
|
113
|
-
mode?: 'login' | 'register';
|
|
114
|
-
}
|
|
115
|
-
/** 登录方式项联合类型 */
|
|
116
|
-
export declare type LoginMethodItem = EmailLoginMethod | PhoneLoginMethod | GoogleLoginMethod | FacebookLoginMethod | AppleLoginMethod | GuestLoginMethod;
|
|
117
|
-
/** 邮箱认证配置 */
|
|
118
|
-
export interface EmailAuthConfig {
|
|
119
|
-
/** 是否启用邮箱认证 */
|
|
120
|
-
enable_email: boolean;
|
|
121
|
-
/** 注册验证方式 */
|
|
122
|
-
registration_verification?: EmailRegistrationVerification;
|
|
123
|
-
/** 登录验证方式列表 */
|
|
124
|
-
login_verification_methods?: VerificationMethod[];
|
|
125
|
-
}
|
|
126
|
-
/** 手机认证配置 */
|
|
127
|
-
export interface PhoneAuthConfig {
|
|
128
|
-
/** 是否启用手机认证 */
|
|
129
|
-
enable_phone_number: boolean;
|
|
130
|
-
/** 注册验证方式 */
|
|
131
|
-
registration_verification?: PhoneRegistrationVerification;
|
|
132
|
-
/** 登录验证方式列表 */
|
|
133
|
-
login_verification_methods?: VerificationMethod[];
|
|
134
|
-
}
|
|
135
|
-
/** 三方 OAuth 配置 */
|
|
136
|
-
export interface OAuthConfig {
|
|
137
|
-
/** Google 登录 */
|
|
138
|
-
google?: {
|
|
139
|
-
enabled: boolean;
|
|
140
|
-
client_id?: string;
|
|
141
|
-
};
|
|
142
|
-
/** Facebook 登录 */
|
|
143
|
-
facebook?: {
|
|
144
|
-
enabled: boolean;
|
|
145
|
-
app_id?: string;
|
|
146
|
-
};
|
|
147
|
-
/** Apple 登录 */
|
|
148
|
-
apple?: {
|
|
149
|
-
enabled: boolean;
|
|
150
|
-
client_id?: string;
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
/** UI 配置 */
|
|
154
|
-
export interface UIConfig {
|
|
155
|
-
/** Logo 配置 */
|
|
156
|
-
logo?: {
|
|
157
|
-
show: boolean;
|
|
158
|
-
url?: string;
|
|
159
|
-
position?: 'left' | 'center' | 'right';
|
|
160
|
-
size?: {
|
|
161
|
-
width: number;
|
|
162
|
-
height: number;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
/** 标题配置 */
|
|
166
|
-
title?: {
|
|
167
|
-
show: boolean;
|
|
168
|
-
text?: string;
|
|
169
|
-
align?: 'left' | 'center' | 'right';
|
|
170
|
-
};
|
|
171
|
-
/** 副标题配置 */
|
|
172
|
-
subtitle?: {
|
|
173
|
-
show: boolean;
|
|
174
|
-
text?: string;
|
|
175
|
-
align?: 'left' | 'center' | 'right';
|
|
176
|
-
};
|
|
177
|
-
/** 描述配置 */
|
|
178
|
-
desc?: {
|
|
179
|
-
show: boolean;
|
|
180
|
-
text?: string;
|
|
181
|
-
align?: 'left' | 'center' | 'right';
|
|
182
|
-
};
|
|
183
|
-
/** 表单标签配置 */
|
|
184
|
-
formLabels?: {
|
|
185
|
-
/** 邮箱标签配置 */
|
|
186
|
-
email?: {
|
|
187
|
-
show: boolean;
|
|
188
|
-
text?: string;
|
|
189
|
-
};
|
|
190
|
-
/** 手机标签配置 */
|
|
191
|
-
phone?: {
|
|
192
|
-
show: boolean;
|
|
193
|
-
text?: string;
|
|
194
|
-
};
|
|
195
|
-
/** 密码标签配置 */
|
|
196
|
-
password?: {
|
|
197
|
-
show: boolean;
|
|
198
|
-
text?: string;
|
|
199
|
-
};
|
|
200
|
-
/** 验证码标签配置 */
|
|
201
|
-
verificationCode?: {
|
|
202
|
-
show: boolean;
|
|
203
|
-
text?: string;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
/** 密码规则 */
|
|
207
|
-
passwordRules?: any;
|
|
208
|
-
/** 主题色 */
|
|
209
|
-
themeColor?: string;
|
|
210
|
-
}
|
|
211
|
-
/** 登录表单数据 */
|
|
212
|
-
export interface LoginFormData {
|
|
213
|
-
/** 邮箱或手机号 */
|
|
214
|
-
account: string | PhoneValueObject;
|
|
215
|
-
/** 密码 */
|
|
216
|
-
password?: string;
|
|
217
|
-
/** 验证码 */
|
|
218
|
-
verification_code?: string;
|
|
219
|
-
/** 记住我 */
|
|
220
|
-
remember_me?: boolean;
|
|
221
|
-
}
|
|
222
|
-
/** 注册表单数据 */
|
|
223
|
-
export interface RegisterFormData {
|
|
224
|
-
/** 邮箱或手机号 */
|
|
225
|
-
account: string;
|
|
226
|
-
/** 密码 */
|
|
227
|
-
password?: string;
|
|
228
|
-
/** 确认密码 */
|
|
229
|
-
confirm_password?: string;
|
|
230
|
-
/** 验证码 */
|
|
231
|
-
verification_code?: string;
|
|
232
|
-
/** 验证链接 token */
|
|
233
|
-
verification_token?: string;
|
|
234
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface NumberKeyboardPopoverProps {
|
|
3
|
-
/** 触发元素 */
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
/** 当前值 */
|
|
6
|
-
value?: string;
|
|
7
|
-
/** 值变化回调 */
|
|
8
|
-
onChange?: (value: string) => void;
|
|
9
|
-
/** 确认回调 */
|
|
10
|
-
onConfirm?: (value: string) => void;
|
|
11
|
-
/** 取消回调 */
|
|
12
|
-
onCancel?: () => void;
|
|
13
|
-
/** 是否允许小数 */
|
|
14
|
-
allowDecimal?: boolean;
|
|
15
|
-
/** 小数位数 */
|
|
16
|
-
decimalPlaces?: number;
|
|
17
|
-
/** 键盘主题 */
|
|
18
|
-
selectType?: 'light' | 'dark';
|
|
19
|
-
/** 是否禁用 */
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** Popover 额外的类名 */
|
|
22
|
-
overlayClassName?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface NumberKeyboardPopoverRef {
|
|
25
|
-
/** 打开键盘 */
|
|
26
|
-
open: () => void;
|
|
27
|
-
/** 关闭键盘 */
|
|
28
|
-
close: () => void;
|
|
29
|
-
/** 获取当前是否打开 */
|
|
30
|
-
isOpen: () => boolean;
|
|
31
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
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;
|
|
@@ -1,57 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { CardVariant, CardLayout, SelectedType, ActionsPosition, CardStyles, CardStyleProps, CardProps, } from './index';
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,105 +0,0 @@
|
|
|
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;
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type MediaShape = 'circle' | 'square';
|
|
3
|
-
export declare type MediaSize = 'small' | 'middle' | 'large' | number;
|
|
4
|
-
export declare type MediaCoverType = 'image' | 'text' | 'auto';
|
|
5
|
-
export interface MediaStyles {
|
|
6
|
-
container?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
|
|
7
|
-
cover?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
|
|
8
|
-
label?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
|
|
9
|
-
extra?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
|
|
10
|
-
indicator?: React.CSSProperties | ((props: MediaStyleProps) => React.CSSProperties);
|
|
11
|
-
}
|
|
12
|
-
export interface MediaStyleProps {
|
|
13
|
-
selected?: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
shape?: MediaShape;
|
|
16
|
-
size?: MediaSize;
|
|
17
|
-
}
|
|
18
|
-
export interface MediaProps {
|
|
19
|
-
/** 封面内容,可以是图片URL或React节点 */
|
|
20
|
-
cover?: string | React.ReactNode;
|
|
21
|
-
/** 标签文本 */
|
|
22
|
-
label?: React.ReactNode;
|
|
23
|
-
/** 额外内容,通常用于数字选择器等 */
|
|
24
|
-
extra?: React.ReactNode;
|
|
25
|
-
/** 指示器,通常用于勾选图标 */
|
|
26
|
-
indicator?: React.ReactNode;
|
|
27
|
-
/** 选中时是否展示角标,默认为 true */
|
|
28
|
-
showIndicator?: boolean;
|
|
29
|
-
/** 封面类型:image-图片、text-文字、auto-自动(默认) */
|
|
30
|
-
coverType?: MediaCoverType;
|
|
31
|
-
/** 形状 */
|
|
32
|
-
shape?: MediaShape;
|
|
33
|
-
/** 尺寸 */
|
|
34
|
-
size?: MediaSize;
|
|
35
|
-
/** 选中状态 */
|
|
36
|
-
selected?: boolean;
|
|
37
|
-
/** 禁用状态 */
|
|
38
|
-
disabled?: boolean;
|
|
39
|
-
/** 点击事件 */
|
|
40
|
-
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
41
|
-
/** 自定义样式 */
|
|
42
|
-
styles?: MediaStyles;
|
|
43
|
-
/** 自定义类名 */
|
|
44
|
-
className?: string;
|
|
45
|
-
/** 自定义样式 */
|
|
46
|
-
style?: React.CSSProperties;
|
|
47
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { default as CardItem } from './Card';
|
|
2
|
-
export { default as MediaItem } from './Media';
|
|
3
|
-
export type { CardVariant, CardLayout, SelectedType, ActionsPosition, CardStyles, CardStyleProps, CardProps, } from './Card/types';
|
|
4
|
-
export type { MediaShape, MediaSize, MediaCoverType, MediaStyles, MediaStyleProps, MediaProps, } from './Media/types';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ItemProps, ItemLayout, SelectorVariant, PresetConfig } from '../types';
|
|
3
|
-
interface UsePresetItemPropsParams {
|
|
4
|
-
variant?: SelectorVariant;
|
|
5
|
-
itemLayout?: ItemLayout;
|
|
6
|
-
preset?: PresetConfig;
|
|
7
|
-
itemProps?: ItemProps;
|
|
8
|
-
indicator: React.ReactNode;
|
|
9
|
-
numberSelector: React.ReactNode;
|
|
10
|
-
mode?: 'single' | 'multiple';
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
selected?: boolean;
|
|
13
|
-
}
|
|
14
|
-
interface PresetItemPropsResult {
|
|
15
|
-
mediaProps: Record<string, any>;
|
|
16
|
-
cardProps: Record<string, any>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 根据预设项生成 option Item 的 props
|
|
20
|
-
*
|
|
21
|
-
* 规则说明:
|
|
22
|
-
* 1. variant='default': 使用 Card,borderless,horizontal,selectedType='none',actionsPosition='left'
|
|
23
|
-
* 1.1 preset.variant='1': renderContent={() => <span>{dataSource._label}</span>}
|
|
24
|
-
* 1.2 preset.variant='2': renderContent={() => <span>{dataSource._label}</span>}
|
|
25
|
-
* 2. variant='media': 使用 MediaItem
|
|
26
|
-
* 2.1 preset.variant='1': size='small', showIndicator=false, 单选shape='circle',多选shape='square'
|
|
27
|
-
* 2.2 preset.variant='2': size='large', showIndicator=true, shape='circle'
|
|
28
|
-
* 3. variant='card': 根据 itemLayout 区分横向和纵向
|
|
29
|
-
* 3.1 横向(horizontal):
|
|
30
|
-
* - preset.variant='2': selectedType='filled'
|
|
31
|
-
* - preset.variant='5': variant='borderless'
|
|
32
|
-
* - 默认样式: styles.container = { padding: 8 }
|
|
33
|
-
* - 使用 lodash merge 深度合并样式,itemProps.styles 优先级更高
|
|
34
|
-
* 3.2 纵向(vertical):
|
|
35
|
-
* - 统一使用 borderless,selectedType='none'
|
|
36
|
-
* - preset.variant='2': indicator 通过 corner 传入
|
|
37
|
-
* 3.3 actions 处理:
|
|
38
|
-
* - 优先使用 numberSelector(如果存在)
|
|
39
|
-
* - 其次使用 indicator
|
|
40
|
-
* - 纵向且 preset.variant='2': indicator 放到 corner,actions 仅展示 numberSelector
|
|
41
|
-
*/
|
|
42
|
-
declare const usePresetItemProps: (params: UsePresetItemPropsParams) => PresetItemPropsResult;
|
|
43
|
-
export default usePresetItemProps;
|