@pisell/private-materials 6.3.66 → 6.3.68
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/index.d.ts +0 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/dashboard/serve.d.ts +1 -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/serve.d.ts +18 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- 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/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/serve.d.ts +20 -0
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/locales.d.ts +843 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/const.d.ts +184 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/locales.d.ts +330 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -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/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/index.js +54 -5
- package/es/components/pay/toC/PaymentList/index.less +58 -1
- package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +8 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/es/components/pay/toC/PaymentList/utils.js +187 -6
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/index.js +2 -1
- package/es/components/pay/toC/locales.d.ts +307 -0
- package/es/components/pay/toC/locales.js +9 -3
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pay/toC/status.d.ts +13 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/locales.d.ts +174 -0
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/walletList/locales.d.ts +27 -0
- package/es/components/walletList/types/index.d.ts +194 -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/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/es/hooks/useEngineContext.d.ts +10 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clientName/index.d.ts +4 -0
- package/es/plus/clientName/type.d.ts +13 -0
- package/es/plus/clientName/utils.d.ts +2 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/productSelect/index.js +5 -1
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/selectHolder/locales.d.ts +21 -0
- package/es/plus/selectHolder/types.d.ts +104 -0
- package/es/plus/selectHolder/utils.d.ts +9 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- 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 +30 -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 +424 -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/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/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/es/plus/walletEditor/locales.d.ts +135 -0
- package/es/plus/walletEditor/types.d.ts +52 -0
- package/es/plus/walletPassGallery/locales.d.ts +285 -0
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/locales.d.ts +543 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/es/pro/Login2.0/types.d.ts +167 -0
- package/es/pro/NumericStepper/index.d.ts +43 -0
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Item.d.ts +14 -0
- 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 +19 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +16 -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 +2 -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/index.d.ts +11 -0
- package/es/pro/Selector/locales.d.ts +36 -0
- package/es/pro/Selector/types.d.ts +173 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/index.d.ts +0 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/dashboard/serve.d.ts +1 -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/serve.d.ts +18 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- 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/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/serve.d.ts +20 -0
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/locales.d.ts +843 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/const.d.ts +184 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/locales.d.ts +330 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -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/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/index.js +36 -5
- package/lib/components/pay/toC/PaymentList/index.less +58 -1
- package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +6 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +36 -0
- package/lib/components/pay/toC/PaymentList/utils.js +155 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/index.js +2 -1
- package/lib/components/pay/toC/locales.d.ts +307 -0
- package/lib/components/pay/toC/locales.js +9 -3
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pay/toC/status.d.ts +13 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/locales.d.ts +174 -0
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/walletList/locales.d.ts +27 -0
- package/lib/components/walletList/types/index.d.ts +194 -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/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/hooks/useEngineContext.d.ts +10 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clientName/index.d.ts +4 -0
- package/lib/plus/clientName/type.d.ts +13 -0
- package/lib/plus/clientName/utils.d.ts +2 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/productSelect/index.js +4 -1
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/selectHolder/locales.d.ts +21 -0
- package/lib/plus/selectHolder/types.d.ts +104 -0
- package/lib/plus/selectHolder/utils.d.ts +9 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- 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 +30 -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 +424 -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/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/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
- package/lib/plus/walletEditor/locales.d.ts +135 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/walletPassGallery/locales.d.ts +285 -0
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/locales.d.ts +543 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lib/pro/Login2.0/types.d.ts +167 -0
- package/lib/pro/NumericStepper/index.d.ts +43 -0
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Item.d.ts +14 -0
- 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 +19 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +16 -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 +2 -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/index.d.ts +11 -0
- package/lib/pro/Selector/locales.d.ts +36 -0
- package/lib/pro/Selector/types.d.ts +173 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,232 @@
|
|
|
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
|
+
original?: string;
|
|
98
|
+
};
|
|
99
|
+
/** 条款链接 */
|
|
100
|
+
url: string;
|
|
101
|
+
}
|
|
102
|
+
/** 法律条款配置 */
|
|
103
|
+
export interface LegalTermsConfig {
|
|
104
|
+
/** 是否显示法律条款区域 */
|
|
105
|
+
enabled?: boolean;
|
|
106
|
+
/** 法律条款列表 */
|
|
107
|
+
terms?: LegalTermItem[];
|
|
108
|
+
/** 条款文本模板 */
|
|
109
|
+
textTemplate?: string;
|
|
110
|
+
/** 当前模式:login 或 register */
|
|
111
|
+
mode?: 'login' | 'register';
|
|
112
|
+
}
|
|
113
|
+
/** 登录方式项联合类型 */
|
|
114
|
+
export declare type LoginMethodItem = EmailLoginMethod | PhoneLoginMethod | GoogleLoginMethod | FacebookLoginMethod | AppleLoginMethod | GuestLoginMethod;
|
|
115
|
+
/** 邮箱认证配置 */
|
|
116
|
+
export interface EmailAuthConfig {
|
|
117
|
+
/** 是否启用邮箱认证 */
|
|
118
|
+
enable_email: boolean;
|
|
119
|
+
/** 注册验证方式 */
|
|
120
|
+
registration_verification?: EmailRegistrationVerification;
|
|
121
|
+
/** 登录验证方式列表 */
|
|
122
|
+
login_verification_methods?: VerificationMethod[];
|
|
123
|
+
}
|
|
124
|
+
/** 手机认证配置 */
|
|
125
|
+
export interface PhoneAuthConfig {
|
|
126
|
+
/** 是否启用手机认证 */
|
|
127
|
+
enable_phone_number: boolean;
|
|
128
|
+
/** 注册验证方式 */
|
|
129
|
+
registration_verification?: PhoneRegistrationVerification;
|
|
130
|
+
/** 登录验证方式列表 */
|
|
131
|
+
login_verification_methods?: VerificationMethod[];
|
|
132
|
+
}
|
|
133
|
+
/** 三方 OAuth 配置 */
|
|
134
|
+
export interface OAuthConfig {
|
|
135
|
+
/** Google 登录 */
|
|
136
|
+
google?: {
|
|
137
|
+
enabled: boolean;
|
|
138
|
+
client_id?: string;
|
|
139
|
+
};
|
|
140
|
+
/** Facebook 登录 */
|
|
141
|
+
facebook?: {
|
|
142
|
+
enabled: boolean;
|
|
143
|
+
app_id?: string;
|
|
144
|
+
};
|
|
145
|
+
/** Apple 登录 */
|
|
146
|
+
apple?: {
|
|
147
|
+
enabled: boolean;
|
|
148
|
+
client_id?: string;
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/** UI 配置 */
|
|
152
|
+
export interface UIConfig {
|
|
153
|
+
/** Logo 配置 */
|
|
154
|
+
logo?: {
|
|
155
|
+
show: boolean;
|
|
156
|
+
url?: string;
|
|
157
|
+
position?: 'left' | 'center' | 'right';
|
|
158
|
+
size?: {
|
|
159
|
+
width: number;
|
|
160
|
+
height: number;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
/** 标题配置 */
|
|
164
|
+
title?: {
|
|
165
|
+
show: boolean;
|
|
166
|
+
text?: string;
|
|
167
|
+
align?: 'left' | 'center' | 'right';
|
|
168
|
+
};
|
|
169
|
+
/** 副标题配置 */
|
|
170
|
+
subtitle?: {
|
|
171
|
+
show: boolean;
|
|
172
|
+
text?: string;
|
|
173
|
+
align?: 'left' | 'center' | 'right';
|
|
174
|
+
};
|
|
175
|
+
/** 描述配置 */
|
|
176
|
+
desc?: {
|
|
177
|
+
show: boolean;
|
|
178
|
+
text?: string;
|
|
179
|
+
align?: 'left' | 'center' | 'right';
|
|
180
|
+
};
|
|
181
|
+
/** 表单标签配置 */
|
|
182
|
+
formLabels?: {
|
|
183
|
+
/** 邮箱标签配置 */
|
|
184
|
+
email?: {
|
|
185
|
+
show: boolean;
|
|
186
|
+
text?: string;
|
|
187
|
+
};
|
|
188
|
+
/** 手机标签配置 */
|
|
189
|
+
phone?: {
|
|
190
|
+
show: boolean;
|
|
191
|
+
text?: string;
|
|
192
|
+
};
|
|
193
|
+
/** 密码标签配置 */
|
|
194
|
+
password?: {
|
|
195
|
+
show: boolean;
|
|
196
|
+
text?: string;
|
|
197
|
+
};
|
|
198
|
+
/** 验证码标签配置 */
|
|
199
|
+
verificationCode?: {
|
|
200
|
+
show: boolean;
|
|
201
|
+
text?: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
/** 密码规则 */
|
|
205
|
+
passwordRules?: any;
|
|
206
|
+
/** 主题色 */
|
|
207
|
+
themeColor?: string;
|
|
208
|
+
}
|
|
209
|
+
/** 登录表单数据 */
|
|
210
|
+
export interface LoginFormData {
|
|
211
|
+
/** 邮箱或手机号 */
|
|
212
|
+
account: string | PhoneValueObject;
|
|
213
|
+
/** 密码 */
|
|
214
|
+
password?: string;
|
|
215
|
+
/** 验证码 */
|
|
216
|
+
verification_code?: string;
|
|
217
|
+
/** 记住我 */
|
|
218
|
+
remember_me?: boolean;
|
|
219
|
+
}
|
|
220
|
+
/** 注册表单数据 */
|
|
221
|
+
export interface RegisterFormData {
|
|
222
|
+
/** 邮箱或手机号 */
|
|
223
|
+
account: string;
|
|
224
|
+
/** 密码 */
|
|
225
|
+
password?: string;
|
|
226
|
+
/** 确认密码 */
|
|
227
|
+
confirm_password?: string;
|
|
228
|
+
/** 验证码 */
|
|
229
|
+
verification_code?: string;
|
|
230
|
+
/** 验证链接 token */
|
|
231
|
+
verification_token?: string;
|
|
232
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
1
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
2
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
3
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -58,7 +57,32 @@ function CodeInput(_ref) {
|
|
|
58
57
|
* @param value 输入的值
|
|
59
58
|
*/
|
|
60
59
|
var handleInputChange = function handleInputChange(index, value) {
|
|
61
|
-
|
|
60
|
+
// iOS「短信验证码一键填充」/ 粘贴可能会一次性塞进多位数字:
|
|
61
|
+
// - Safari 往往能正常触发
|
|
62
|
+
// - 微信 WebView 更依赖标准的 `autocomplete="one-time-code"`,并且需要允许一次性输入整串数字
|
|
63
|
+
var digitsOnly = value.replace(/\D/g, '');
|
|
64
|
+
if (digitsOnly !== value && value !== '') return; // 只允许数字(允许空字符串用于清空)
|
|
65
|
+
|
|
66
|
+
// 一次性输入多位数字时,拆分填充到后续输入框(兼容 iOS one-time-code / IME 粘贴)
|
|
67
|
+
if (digitsOnly.length > 1) {
|
|
68
|
+
var _inputRefs$current$ne;
|
|
69
|
+
if (error && onClearError) onClearError();
|
|
70
|
+
var nextCode = _toConsumableArray(code);
|
|
71
|
+
var maxFillLength = Math.min(codeLength - index, digitsOnly.length);
|
|
72
|
+
for (var offset = 0; offset < maxFillLength; offset += 1) {
|
|
73
|
+
nextCode[index + offset] = digitsOnly[offset];
|
|
74
|
+
}
|
|
75
|
+
setCode(nextCode);
|
|
76
|
+
var nextEmptyIndex = nextCode.findIndex(function (digit) {
|
|
77
|
+
return digit === '';
|
|
78
|
+
});
|
|
79
|
+
if (nextEmptyIndex === -1) {
|
|
80
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(nextCode.join(''));
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
(_inputRefs$current$ne = inputRefs.current[nextEmptyIndex]) === null || _inputRefs$current$ne === void 0 || _inputRefs$current$ne.focus();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
62
86
|
|
|
63
87
|
// 如果用户开始输入且有错误,清除错误
|
|
64
88
|
if (value && error && onClearError) {
|
|
@@ -136,9 +160,7 @@ function CodeInput(_ref) {
|
|
|
136
160
|
// 根据账号类型显示不同的标题和描述
|
|
137
161
|
var title = flowData.accountType === 'email' ? locales.getText('pisell-register2-check-email-title') : locales.getText('pisell-register2-check-phone-title');
|
|
138
162
|
var description = flowData.accountType === 'email' ? locales.getText('pisell-register2-check-email-desc') : locales.getText('pisell-register2-check-phone-desc');
|
|
139
|
-
|
|
140
|
-
// 格式化账号显示(手机号对象需要转换为字符串)
|
|
141
|
-
var displayAccount = _typeof(flowData.account) === 'object' && 'phone' in flowData.account ? "+".concat(flowData.account.country_calling_code).concat(flowData.account.phone) : flowData.account;
|
|
163
|
+
var displayAccount = flowData.account;
|
|
142
164
|
|
|
143
165
|
// 根据账号类型显示不同的"没有收到"提示
|
|
144
166
|
var noReceiveText = flowData.accountType === 'email' ? locales.getText('pisell-register2-no-email-received') : locales.getText('pisell-register2-no-message-received');
|
|
@@ -166,8 +188,16 @@ function CodeInput(_ref) {
|
|
|
166
188
|
return inputRefs.current[index] = el;
|
|
167
189
|
},
|
|
168
190
|
type: "text",
|
|
169
|
-
inputMode: "numeric"
|
|
170
|
-
|
|
191
|
+
inputMode: "numeric"
|
|
192
|
+
// 关键:第一个输入框需要支持 iOS one-time-code 一次性填充整串验证码
|
|
193
|
+
// 否则在微信 WebView 等环境下可能只会塞进第一位或完全不触发
|
|
194
|
+
,
|
|
195
|
+
autoComplete: index === 0 ? 'one-time-code' : 'off',
|
|
196
|
+
autoCorrect: "off",
|
|
197
|
+
autoCapitalize: "off",
|
|
198
|
+
spellCheck: false,
|
|
199
|
+
maxLength: index === 0 ? codeLength : 1,
|
|
200
|
+
pattern: "[0-9]*",
|
|
171
201
|
className: "code-input-box ".concat(digit ? 'has-value' : '', " ").concat(error ? 'has-error' : ''),
|
|
172
202
|
value: digit,
|
|
173
203
|
onChange: function onChange(e) {
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 登录注册 2.0 组件类型定义
|
|
3
|
+
*/
|
|
4
|
+
/// <reference types="react" />
|
|
5
|
+
/** 验证方式枚举 */
|
|
6
|
+
export declare type VerificationMethod = 'verification_code' | 'password';
|
|
7
|
+
/** 邮箱注册验证方式 */
|
|
8
|
+
export declare type EmailRegistrationVerification = 'verification_link' | 'verification_code';
|
|
9
|
+
/** 认证方式类型 */
|
|
10
|
+
export declare type AuthMethodType = 'email' | 'phone' | 'google' | 'facebook' | 'apple';
|
|
11
|
+
/** 当前状态:登录或注册 */
|
|
12
|
+
export declare type AuthState = 'login' | 'register';
|
|
13
|
+
/** 邮箱认证配置 */
|
|
14
|
+
export interface EmailAuthConfig {
|
|
15
|
+
/** 是否启用邮箱认证 */
|
|
16
|
+
enable_email: boolean;
|
|
17
|
+
/** 注册验证方式 */
|
|
18
|
+
registration_verification: EmailRegistrationVerification;
|
|
19
|
+
/** 登录验证方式列表 */
|
|
20
|
+
login_verification_methods: VerificationMethod[];
|
|
21
|
+
}
|
|
22
|
+
/** 手机认证配置 */
|
|
23
|
+
export interface PhoneAuthConfig {
|
|
24
|
+
/** 是否启用手机认证 */
|
|
25
|
+
enable_phone_number: boolean;
|
|
26
|
+
/** 注册验证方式(手机仅支持验证码) */
|
|
27
|
+
registration_verification: 'verification_code';
|
|
28
|
+
/** 登录验证方式列表 */
|
|
29
|
+
login_verification_methods: VerificationMethod[];
|
|
30
|
+
}
|
|
31
|
+
/** 三方 OAuth 配置 */
|
|
32
|
+
export interface OAuthConfig {
|
|
33
|
+
/** Google 登录 */
|
|
34
|
+
google?: {
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
client_id?: string;
|
|
37
|
+
};
|
|
38
|
+
/** Facebook 登录 */
|
|
39
|
+
facebook?: {
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
app_id?: string;
|
|
42
|
+
};
|
|
43
|
+
/** Apple 登录 */
|
|
44
|
+
apple?: {
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
client_id?: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/** UI 配置 */
|
|
50
|
+
export interface UIConfig {
|
|
51
|
+
/** Logo 配置 */
|
|
52
|
+
logo?: {
|
|
53
|
+
show: boolean;
|
|
54
|
+
url?: string;
|
|
55
|
+
position?: 'left' | 'center' | 'right';
|
|
56
|
+
size?: {
|
|
57
|
+
width: number;
|
|
58
|
+
height: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/** 标题配置 */
|
|
62
|
+
title?: {
|
|
63
|
+
show: boolean;
|
|
64
|
+
text?: string;
|
|
65
|
+
align?: 'left' | 'center' | 'right';
|
|
66
|
+
};
|
|
67
|
+
/** 副标题配置 */
|
|
68
|
+
subtitle?: {
|
|
69
|
+
show: boolean;
|
|
70
|
+
text?: string;
|
|
71
|
+
align?: 'left' | 'center' | 'right';
|
|
72
|
+
};
|
|
73
|
+
/** 描述配置 */
|
|
74
|
+
desc?: {
|
|
75
|
+
show: boolean;
|
|
76
|
+
text?: string;
|
|
77
|
+
align?: 'left' | 'center' | 'right';
|
|
78
|
+
};
|
|
79
|
+
/** 标签页配置 */
|
|
80
|
+
tabs?: {
|
|
81
|
+
show: boolean;
|
|
82
|
+
loginText?: string;
|
|
83
|
+
registerText?: string;
|
|
84
|
+
};
|
|
85
|
+
/** 主题色 */
|
|
86
|
+
themeColor?: string;
|
|
87
|
+
}
|
|
88
|
+
/** 组件总配置 */
|
|
89
|
+
export interface Login2Config {
|
|
90
|
+
/** 邮箱认证配置 */
|
|
91
|
+
email?: EmailAuthConfig;
|
|
92
|
+
/** 手机认证配置 */
|
|
93
|
+
phone?: PhoneAuthConfig;
|
|
94
|
+
/** 三方 OAuth 配置 */
|
|
95
|
+
oauth?: OAuthConfig;
|
|
96
|
+
/** UI 配置 */
|
|
97
|
+
ui?: UIConfig;
|
|
98
|
+
/** 默认认证方式 */
|
|
99
|
+
defaultAuthMethod?: AuthMethodType;
|
|
100
|
+
/** 默认状态(登录或注册) */
|
|
101
|
+
defaultState?: AuthState;
|
|
102
|
+
}
|
|
103
|
+
/** 登录表单数据 */
|
|
104
|
+
export interface LoginFormData {
|
|
105
|
+
/** 邮箱或手机号 */
|
|
106
|
+
account: string;
|
|
107
|
+
/** 密码 */
|
|
108
|
+
password?: string;
|
|
109
|
+
/** 验证码 */
|
|
110
|
+
verification_code?: string;
|
|
111
|
+
/** 记住我 */
|
|
112
|
+
remember_me?: boolean;
|
|
113
|
+
}
|
|
114
|
+
/** 注册表单数据 */
|
|
115
|
+
export interface RegisterFormData {
|
|
116
|
+
/** 邮箱或手机号 */
|
|
117
|
+
account: string;
|
|
118
|
+
/** 密码 */
|
|
119
|
+
password?: string;
|
|
120
|
+
/** 确认密码 */
|
|
121
|
+
confirm_password?: string;
|
|
122
|
+
/** 验证码 */
|
|
123
|
+
verification_code?: string;
|
|
124
|
+
/** 验证链接 token */
|
|
125
|
+
verification_token?: string;
|
|
126
|
+
}
|
|
127
|
+
/** 组件事件回调 */
|
|
128
|
+
export interface Login2Events {
|
|
129
|
+
/** 登录回调 */
|
|
130
|
+
onLogin?: (data: LoginFormData, method: AuthMethodType) => Promise<void> | void;
|
|
131
|
+
/** 注册回调 */
|
|
132
|
+
onRegister?: (data: RegisterFormData, method: AuthMethodType) => Promise<void> | void;
|
|
133
|
+
/** 三方登录回调 */
|
|
134
|
+
onOAuthLogin?: (provider: 'google' | 'facebook' | 'apple') => Promise<void> | void;
|
|
135
|
+
/** 发送验证码回调 */
|
|
136
|
+
onSendVerificationCode?: (account: string, type: 'email' | 'phone') => Promise<void> | void;
|
|
137
|
+
/** 忘记密码回调 */
|
|
138
|
+
onForgotPassword?: (account: string) => Promise<void> | void;
|
|
139
|
+
}
|
|
140
|
+
/** 组件完整属性 */
|
|
141
|
+
export interface Login2Props extends Login2Events {
|
|
142
|
+
/** 配置对象 */
|
|
143
|
+
config: Login2Config;
|
|
144
|
+
/** 是否显示 */
|
|
145
|
+
visible?: boolean;
|
|
146
|
+
/** 关闭回调 */
|
|
147
|
+
onClose?: () => void;
|
|
148
|
+
/** 自定义类名 */
|
|
149
|
+
className?: string;
|
|
150
|
+
/** 自定义样式 */
|
|
151
|
+
style?: React.CSSProperties;
|
|
152
|
+
}
|
|
153
|
+
/** 组件内部状态 */
|
|
154
|
+
export interface Login2State {
|
|
155
|
+
/** 当前状态:登录或注册 */
|
|
156
|
+
authState: AuthState;
|
|
157
|
+
/** 当前认证方式 */
|
|
158
|
+
currentAuthMethod: AuthMethodType;
|
|
159
|
+
/** 当前使用的验证方式 */
|
|
160
|
+
currentVerificationMethod: VerificationMethod;
|
|
161
|
+
/** 加载状态 */
|
|
162
|
+
loading: boolean;
|
|
163
|
+
/** 验证码倒计时 */
|
|
164
|
+
countdown: number;
|
|
165
|
+
/** 表单数据 */
|
|
166
|
+
formData: Partial<LoginFormData | RegisterFormData>;
|
|
167
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare global {
|
|
4
|
+
namespace JSX {
|
|
5
|
+
interface IntrinsicElements {
|
|
6
|
+
[elemName: string]: any;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export interface NumericStepperProps {
|
|
11
|
+
/** 当前值 */
|
|
12
|
+
value?: number;
|
|
13
|
+
/** 默认值 */
|
|
14
|
+
defaultValue?: number;
|
|
15
|
+
/** 最小值 */
|
|
16
|
+
min?: number;
|
|
17
|
+
/** 最大值 */
|
|
18
|
+
max?: number;
|
|
19
|
+
/** 步长 */
|
|
20
|
+
step?: number;
|
|
21
|
+
/** 是否禁用 */
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/** 值变化回调 */
|
|
24
|
+
onChange?: (value: number) => void;
|
|
25
|
+
/** 自定义类名 */
|
|
26
|
+
className?: string;
|
|
27
|
+
/** 自定义样式 */
|
|
28
|
+
styles?: {
|
|
29
|
+
container?: React.CSSProperties;
|
|
30
|
+
};
|
|
31
|
+
/** 尺寸 */
|
|
32
|
+
size?: 'small' | 'middle' | 'large';
|
|
33
|
+
/** 按钮形状 */
|
|
34
|
+
shape?: 'round' | 'square';
|
|
35
|
+
/** 是否显示输入框 */
|
|
36
|
+
showInput?: boolean;
|
|
37
|
+
/** 减号按钮的自定义内容 */
|
|
38
|
+
minusIcon?: React.ReactNode;
|
|
39
|
+
/** 加号按钮的自定义内容 */
|
|
40
|
+
plusIcon?: React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
declare const NumericStepper: React.FC<NumericStepperProps>;
|
|
43
|
+
export default NumericStepper;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OptionItem } from './types';
|
|
3
|
+
export interface IItemProps {
|
|
4
|
+
actions: any;
|
|
5
|
+
dataSource: OptionItem;
|
|
6
|
+
indicator: React.ReactNode;
|
|
7
|
+
numberSelector: React.ReactNode;
|
|
8
|
+
optionItemValue?: any;
|
|
9
|
+
quantityInfo: any;
|
|
10
|
+
values: any;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const Item: (props: IItemProps) => JSX.Element;
|
|
14
|
+
export default Item;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Selector from './index';
|
|
3
|
+
/**
|
|
4
|
+
* Selector 组件 - 高级选择器
|
|
5
|
+
*
|
|
6
|
+
* 支持单选/多选、数量控制、校验规则、互斥组等功能
|
|
7
|
+
*
|
|
8
|
+
* 查看文档:
|
|
9
|
+
* - [开发文档](https://studio.picoding-dev.com/pro-components/selector?tab=dev)
|
|
10
|
+
* - [需求文档](https://m1ed09stz4r.feishu.cn/wiki/NL5AwOs0ei5ZBekT4i6cuzIOnoM)
|
|
11
|
+
*/
|
|
12
|
+
declare const meta: Meta<typeof Selector>;
|
|
13
|
+
export default meta;
|
|
14
|
+
declare type Story = StoryObj<typeof Selector>;
|
|
15
|
+
/**
|
|
16
|
+
* 默认单选模式 - 原始值类型
|
|
17
|
+
*/
|
|
18
|
+
export declare const Default: Story;
|
|
19
|
+
/**
|
|
20
|
+
* 多选模式 - 原始值数组
|
|
21
|
+
*/
|
|
22
|
+
export declare const Multiple: Story;
|
|
23
|
+
/**
|
|
24
|
+
* 单选 + 数量 - 对象值类型
|
|
25
|
+
*/
|
|
26
|
+
export declare const SingleWithQuantity: Story;
|
|
27
|
+
/**
|
|
28
|
+
* 多选 + 数量 - 卡片样式
|
|
29
|
+
*/
|
|
30
|
+
export declare const MultipleWithQuantity: Story;
|
|
31
|
+
/**
|
|
32
|
+
* 网格布局 - 2列
|
|
33
|
+
*/
|
|
34
|
+
export declare const GridLayout2Columns: Story;
|
|
35
|
+
/**
|
|
36
|
+
* 网格布局 - 3列
|
|
37
|
+
*/
|
|
38
|
+
export declare const GridLayout3Columns: Story;
|
|
39
|
+
/**
|
|
40
|
+
* 校验规则 - 必选、最小/最大数量
|
|
41
|
+
*/
|
|
42
|
+
export declare const WithValidation: Story;
|
|
43
|
+
/**
|
|
44
|
+
* 互斥组 - 同组只能选一个
|
|
45
|
+
*/
|
|
46
|
+
export declare const MutexGroups: Story;
|
|
47
|
+
/**
|
|
48
|
+
* 禁用状态
|
|
49
|
+
*/
|
|
50
|
+
export declare const Disabled: Story;
|
|
51
|
+
/**
|
|
52
|
+
* Select 变体 - 下拉选择
|
|
53
|
+
*/
|
|
54
|
+
export declare const SelectVariant: Story;
|
|
55
|
+
/**
|
|
56
|
+
* Select 变体 - 多选下拉
|
|
57
|
+
*/
|
|
58
|
+
export declare const SelectVariantMultiple: Story;
|
|
59
|
+
/**
|
|
60
|
+
* 卡片样式变体 - 不同选中态
|
|
61
|
+
*/
|
|
62
|
+
export declare const CardVariants: Story;
|
|
63
|
+
/**
|
|
64
|
+
* 自定义图标
|
|
65
|
+
*/
|
|
66
|
+
export declare const CustomIcon: Story;
|
|
67
|
+
/**
|
|
68
|
+
* 自定义渲染
|
|
69
|
+
*/
|
|
70
|
+
export declare const CustomRender: Story;
|
|
71
|
+
/**
|
|
72
|
+
* SelectorGroup 基础示例
|
|
73
|
+
*/
|
|
74
|
+
export declare const SelectorGroupBasic: StoryObj;
|
|
75
|
+
/**
|
|
76
|
+
* SelectorGroup 联动规则示例
|
|
77
|
+
*/
|
|
78
|
+
export declare const SelectorGroupWithLinkage: StoryObj;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export declare type CardVariant = 'outlined' | 'borderless';
|
|
4
|
+
export declare type CardLayout = 'vertical' | 'horizontal';
|
|
5
|
+
export declare type SelectedType = 'none' | 'outlined' | 'outlined-bold' | 'filled';
|
|
6
|
+
export declare type ActionsPosition = 'left' | 'right';
|
|
7
|
+
export interface CardStyles {
|
|
8
|
+
container?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
9
|
+
content?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
10
|
+
actions?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
11
|
+
corner?: React.CSSProperties | ((props: CardStyleProps) => React.CSSProperties);
|
|
12
|
+
}
|
|
13
|
+
export interface CardStyleProps {
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
hoverable?: boolean;
|
|
17
|
+
variant?: CardVariant;
|
|
18
|
+
layout?: CardLayout;
|
|
19
|
+
}
|
|
20
|
+
export interface CardProps {
|
|
21
|
+
/** 卡片变体样式 */
|
|
22
|
+
variant?: CardVariant;
|
|
23
|
+
/** 布局方向 */
|
|
24
|
+
layout?: CardLayout;
|
|
25
|
+
/** 操作按钮区域,水平模式在右侧,垂直模式在底部 */
|
|
26
|
+
actions?: React.ReactNode[];
|
|
27
|
+
/** 水平模式下,操作按钮的位置 */
|
|
28
|
+
actionsPosition?: ActionsPosition;
|
|
29
|
+
/** 垂直模式下,右上角绝对定位展示的组件 */
|
|
30
|
+
corner?: React.ReactNode;
|
|
31
|
+
/** 子内容 */
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
/** 选中状态 */
|
|
34
|
+
selected?: boolean;
|
|
35
|
+
/** 禁用状态 */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** 是否可悬停 */
|
|
38
|
+
hoverable?: boolean;
|
|
39
|
+
/** 点击事件 */
|
|
40
|
+
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
41
|
+
/** 自定义样式 */
|
|
42
|
+
styles?: CardStyles;
|
|
43
|
+
/**
|
|
44
|
+
* 选中时的样式类型
|
|
45
|
+
* - none: 无样式
|
|
46
|
+
* - outlined: 边框高亮
|
|
47
|
+
* - outlined-bold: 边框高亮 + 加粗(使用 outline 实现,不影响布局)
|
|
48
|
+
* - filled: 填充背景色
|
|
49
|
+
*/
|
|
50
|
+
selectedType?: SelectedType;
|
|
51
|
+
/** 自定义类名 */
|
|
52
|
+
className?: string;
|
|
53
|
+
/** 自定义样式 */
|
|
54
|
+
style?: React.CSSProperties;
|
|
55
|
+
}
|
|
56
|
+
declare const Card: React.FC<CardProps>;
|
|
57
|
+
export default Card;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CardVariant, CardLayout, SelectedType, ActionsPosition, CardStyles, CardStyleProps, CardProps, } from './index';
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
};
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
size?: 'small' | 'middle' | 'large' | number;
|
|
17
|
+
}
|
|
18
|
+
declare const Indicator: React.FC<IndicatorProps>;
|
|
19
|
+
export default Indicator;
|