@hanwenbo/x-taro-ui 0.0.1
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/LICENSE +21 -0
- package/es/adapters/miniapp/index.d.ts +9 -0
- package/es/adapters/miniapp/index.js +9 -0
- package/es/adapters/miniapp/measure.d.ts +43 -0
- package/es/adapters/miniapp/measure.js +135 -0
- package/es/adapters/miniapp/overlayHost.d.ts +23 -0
- package/es/adapters/miniapp/overlayHost.js +141 -0
- package/es/adapters/miniapp/portal.d.ts +26 -0
- package/es/adapters/miniapp/portal.js +45 -0
- package/es/adapters/miniapp/scroll.d.ts +29 -0
- package/es/adapters/miniapp/scroll.js +87 -0
- package/es/adapters/miniapp/touch.d.ts +57 -0
- package/es/adapters/miniapp/touch.js +140 -0
- package/es/auth/components.d.ts +117 -0
- package/es/auth/components.js +1058 -0
- package/es/auth/entries/account-security.d.ts +3 -0
- package/es/auth/entries/account-security.js +2 -0
- package/es/auth/entries/change-password.d.ts +3 -0
- package/es/auth/entries/change-password.js +2 -0
- package/es/auth/entries/forgot-password.d.ts +3 -0
- package/es/auth/entries/forgot-password.js +2 -0
- package/es/auth/entries/identifier-binding.d.ts +3 -0
- package/es/auth/entries/identifier-binding.js +2 -0
- package/es/auth/entries/phone-number-input.d.ts +3 -0
- package/es/auth/entries/phone-number-input.js +2 -0
- package/es/auth/entries/provider.d.ts +2 -0
- package/es/auth/entries/provider.js +1 -0
- package/es/auth/entries/quick-sign-in.d.ts +3 -0
- package/es/auth/entries/quick-sign-in.js +2 -0
- package/es/auth/entries/sign-in.d.ts +3 -0
- package/es/auth/entries/sign-in.js +2 -0
- package/es/auth/entries/sign-up.d.ts +3 -0
- package/es/auth/entries/sign-up.js +2 -0
- package/es/auth/entries/theme.d.ts +2 -0
- package/es/auth/entries/theme.js +1 -0
- package/es/auth/entries/third-party-sign-in.d.ts +3 -0
- package/es/auth/entries/third-party-sign-in.js +2 -0
- package/es/auth/entries/types.d.ts +2 -0
- package/es/auth/entries/types.js +1 -0
- package/es/auth/index.d.ts +7 -0
- package/es/auth/index.js +6 -0
- package/es/auth/internal.d.ts +55 -0
- package/es/auth/internal.js +167 -0
- package/es/auth/phoneNumberInput.d.ts +22 -0
- package/es/auth/phoneNumberInput.js +110 -0
- package/es/auth/provider.d.ts +13 -0
- package/es/auth/provider.js +29 -0
- package/es/auth/styles.css +316 -0
- package/es/auth/theme.d.ts +12 -0
- package/es/auth/theme.js +23 -0
- package/es/auth/types.d.ts +17 -0
- package/es/auth/types.js +1 -0
- package/es/components/_shared/render.d.ts +16 -0
- package/es/components/_shared/render.js +33 -0
- package/es/components/_shared/seedSurface.d.ts +8 -0
- package/es/components/_shared/seedSurface.js +34 -0
- package/es/components/actionSheet/actionSheet.d.ts +14 -0
- package/es/components/actionSheet/actionSheet.js +382 -0
- package/es/components/actionSheet/index.d.ts +4 -0
- package/es/components/actionSheet/index.js +2 -0
- package/es/components/actionSheet/tokens.d.ts +36 -0
- package/es/components/actionSheet/tokens.js +121 -0
- package/es/components/actionSheet/types.d.ts +82 -0
- package/es/components/actionSheet/types.js +1 -0
- package/es/components/affix/affix.d.ts +5 -0
- package/es/components/affix/affix.js +43 -0
- package/es/components/affix/index.d.ts +3 -0
- package/es/components/affix/index.js +1 -0
- package/es/components/affix/types.d.ts +14 -0
- package/es/components/affix/types.js +1 -0
- package/es/components/alert/alert.d.ts +5 -0
- package/es/components/alert/alert.js +181 -0
- package/es/components/alert/index.d.ts +5 -0
- package/es/components/alert/index.js +3 -0
- package/es/components/alert/tokens.d.ts +37 -0
- package/es/components/alert/tokens.js +113 -0
- package/es/components/alert/types.d.ts +54 -0
- package/es/components/alert/types.js +1 -0
- package/es/components/attachment/attachment.d.ts +22 -0
- package/es/components/attachment/attachment.js +451 -0
- package/es/components/attachment/index.d.ts +3 -0
- package/es/components/attachment/index.js +1 -0
- package/es/components/attachment/types.d.ts +141 -0
- package/es/components/attachment/types.js +1 -0
- package/es/components/avatar/avatar.d.ts +15 -0
- package/es/components/avatar/avatar.js +344 -0
- package/es/components/avatar/index.d.ts +7 -0
- package/es/components/avatar/index.js +6 -0
- package/es/components/avatar/style.css +14 -0
- package/es/components/avatar/tokens.d.ts +30 -0
- package/es/components/avatar/tokens.js +114 -0
- package/es/components/avatar/types.d.ts +73 -0
- package/es/components/avatar/types.js +1 -0
- package/es/components/badge/badge.d.ts +13 -0
- package/es/components/badge/badge.js +223 -0
- package/es/components/badge/index.d.ts +7 -0
- package/es/components/badge/index.js +6 -0
- package/es/components/badge/tokens.d.ts +44 -0
- package/es/components/badge/tokens.js +181 -0
- package/es/components/badge/types.d.ts +74 -0
- package/es/components/badge/types.js +1 -0
- package/es/components/barLoading/barLoading.d.ts +12 -0
- package/es/components/barLoading/barLoading.js +73 -0
- package/es/components/barLoading/index.d.ts +4 -0
- package/es/components/barLoading/index.js +3 -0
- package/es/components/barLoading/style.css +16 -0
- package/es/components/barLoading/types.d.ts +18 -0
- package/es/components/barLoading/types.js +1 -0
- package/es/components/breadcrumb/breadcrumb.d.ts +7 -0
- package/es/components/breadcrumb/breadcrumb.js +137 -0
- package/es/components/breadcrumb/index.d.ts +3 -0
- package/es/components/breadcrumb/index.js +1 -0
- package/es/components/breadcrumb/types.d.ts +21 -0
- package/es/components/breadcrumb/types.js +1 -0
- package/es/components/button/button.d.ts +11 -0
- package/es/components/button/button.js +261 -0
- package/es/components/button/index.d.ts +7 -0
- package/es/components/button/index.js +6 -0
- package/es/components/button/style.css +4 -0
- package/es/components/button/tokens.d.ts +37 -0
- package/es/components/button/tokens.js +176 -0
- package/es/components/button/types.d.ts +69 -0
- package/es/components/button/types.js +1 -0
- package/es/components/capsuleTabs/capsuleTabs.d.ts +6 -0
- package/es/components/capsuleTabs/capsuleTabs.js +500 -0
- package/es/components/capsuleTabs/index.d.ts +3 -0
- package/es/components/capsuleTabs/index.js +1 -0
- package/es/components/capsuleTabs/types.d.ts +48 -0
- package/es/components/capsuleTabs/types.js +1 -0
- package/es/components/card/card.d.ts +20 -0
- package/es/components/card/card.js +289 -0
- package/es/components/card/index.d.ts +7 -0
- package/es/components/card/index.js +6 -0
- package/es/components/card/tokens.d.ts +37 -0
- package/es/components/card/tokens.js +167 -0
- package/es/components/card/types.d.ts +74 -0
- package/es/components/card/types.js +1 -0
- package/es/components/cascadePicker/cascadePicker.d.ts +5 -0
- package/es/components/cascadePicker/cascadePicker.js +125 -0
- package/es/components/cascadePicker/index.d.ts +4 -0
- package/es/components/cascadePicker/index.js +3 -0
- package/es/components/cascadePicker/shared.d.ts +29 -0
- package/es/components/cascadePicker/shared.js +257 -0
- package/es/components/cascadePicker/types.d.ts +59 -0
- package/es/components/cascadePicker/types.js +1 -0
- package/es/components/cascadePickerView/cascadePickerView.d.ts +5 -0
- package/es/components/cascadePickerView/cascadePickerView.js +76 -0
- package/es/components/cascadePickerView/index.d.ts +4 -0
- package/es/components/cascadePickerView/index.js +3 -0
- package/es/components/cascadePickerView/types.d.ts +27 -0
- package/es/components/cascadePickerView/types.js +1 -0
- package/es/components/cascader/cascader.d.ts +5 -0
- package/es/components/cascader/cascader.js +427 -0
- package/es/components/cascader/index.d.ts +4 -0
- package/es/components/cascader/index.js +3 -0
- package/es/components/cascader/types.d.ts +54 -0
- package/es/components/cascader/types.js +1 -0
- package/es/components/cascaderView/cascaderView.d.ts +5 -0
- package/es/components/cascaderView/cascaderView.js +626 -0
- package/es/components/cascaderView/index.d.ts +4 -0
- package/es/components/cascaderView/index.js +3 -0
- package/es/components/cascaderView/types.d.ts +25 -0
- package/es/components/cascaderView/types.js +1 -0
- package/es/components/checkList/checkList.d.ts +9 -0
- package/es/components/checkList/checkList.js +352 -0
- package/es/components/checkList/index.d.ts +5 -0
- package/es/components/checkList/index.js +4 -0
- package/es/components/checkList/types.d.ts +41 -0
- package/es/components/checkList/types.js +1 -0
- package/es/components/checkbox/checkbox.d.ts +15 -0
- package/es/components/checkbox/checkbox.js +249 -0
- package/es/components/checkbox/index.d.ts +7 -0
- package/es/components/checkbox/index.js +6 -0
- package/es/components/checkbox/tokens.d.ts +38 -0
- package/es/components/checkbox/tokens.js +135 -0
- package/es/components/checkbox/types.d.ts +73 -0
- package/es/components/checkbox/types.js +1 -0
- package/es/components/collapse/collapse.d.ts +9 -0
- package/es/components/collapse/collapse.js +306 -0
- package/es/components/collapse/index.d.ts +4 -0
- package/es/components/collapse/index.js +3 -0
- package/es/components/collapse/types.d.ts +33 -0
- package/es/components/collapse/types.js +1 -0
- package/es/components/command/command.d.ts +7 -0
- package/es/components/command/command.js +657 -0
- package/es/components/command/index.d.ts +4 -0
- package/es/components/command/index.js +3 -0
- package/es/components/command/style.css +5 -0
- package/es/components/command/types.d.ts +69 -0
- package/es/components/command/types.js +1 -0
- package/es/components/configProvider/configProvider.d.ts +12 -0
- package/es/components/configProvider/configProvider.js +147 -0
- package/es/components/configProvider/index.d.ts +4 -0
- package/es/components/configProvider/index.js +3 -0
- package/es/components/configProvider/types.d.ts +48 -0
- package/es/components/configProvider/types.js +1 -0
- package/es/components/contextMenu/contextMenu.d.ts +6 -0
- package/es/components/contextMenu/contextMenu.js +652 -0
- package/es/components/contextMenu/index.d.ts +4 -0
- package/es/components/contextMenu/index.js +3 -0
- package/es/components/contextMenu/types.d.ts +69 -0
- package/es/components/contextMenu/types.js +1 -0
- package/es/components/datePicker/datePicker.d.ts +6 -0
- package/es/components/datePicker/datePicker.js +375 -0
- package/es/components/datePicker/index.d.ts +4 -0
- package/es/components/datePicker/index.js +3 -0
- package/es/components/datePicker/shared.d.ts +35 -0
- package/es/components/datePicker/shared.js +262 -0
- package/es/components/datePicker/types.d.ts +77 -0
- package/es/components/datePicker/types.js +1 -0
- package/es/components/datePickerView/datePickerView.d.ts +5 -0
- package/es/components/datePickerView/datePickerView.js +132 -0
- package/es/components/datePickerView/index.d.ts +4 -0
- package/es/components/datePickerView/index.js +3 -0
- package/es/components/datePickerView/types.d.ts +35 -0
- package/es/components/datePickerView/types.js +1 -0
- package/es/components/descriptions/descriptions.d.ts +5 -0
- package/es/components/descriptions/descriptions.js +207 -0
- package/es/components/descriptions/index.d.ts +3 -0
- package/es/components/descriptions/index.js +1 -0
- package/es/components/descriptions/types.d.ts +28 -0
- package/es/components/descriptions/types.js +1 -0
- package/es/components/dialog/dialog.d.ts +21 -0
- package/es/components/dialog/dialog.js +613 -0
- package/es/components/dialog/index.d.ts +6 -0
- package/es/components/dialog/index.js +4 -0
- package/es/components/dialog/tokens.d.ts +38 -0
- package/es/components/dialog/tokens.js +154 -0
- package/es/components/dialog/types.d.ts +104 -0
- package/es/components/dialog/types.js +1 -0
- package/es/components/dimensions/dimensions.d.ts +27 -0
- package/es/components/dimensions/dimensions.js +412 -0
- package/es/components/dimensions/index.d.ts +4 -0
- package/es/components/dimensions/index.js +3 -0
- package/es/components/dimensions/types.d.ts +85 -0
- package/es/components/dimensions/types.js +1 -0
- package/es/components/divider/divider.d.ts +8 -0
- package/es/components/divider/divider.js +149 -0
- package/es/components/divider/index.d.ts +7 -0
- package/es/components/divider/index.js +6 -0
- package/es/components/divider/tokens.d.ts +24 -0
- package/es/components/divider/tokens.js +103 -0
- package/es/components/divider/types.d.ts +29 -0
- package/es/components/divider/types.js +1 -0
- package/es/components/dotLoading/dotLoading.d.ts +12 -0
- package/es/components/dotLoading/dotLoading.js +76 -0
- package/es/components/dotLoading/index.d.ts +4 -0
- package/es/components/dotLoading/index.js +3 -0
- package/es/components/dotLoading/style.css +16 -0
- package/es/components/dotLoading/types.d.ts +24 -0
- package/es/components/dotLoading/types.js +1 -0
- package/es/components/drawer/drawer.d.ts +5 -0
- package/es/components/drawer/drawer.js +130 -0
- package/es/components/drawer/index.d.ts +3 -0
- package/es/components/drawer/index.js +1 -0
- package/es/components/drawer/types.d.ts +32 -0
- package/es/components/drawer/types.js +1 -0
- package/es/components/dropdown/dropdown.d.ts +5 -0
- package/es/components/dropdown/dropdown.js +620 -0
- package/es/components/dropdown/index.d.ts +4 -0
- package/es/components/dropdown/index.js +3 -0
- package/es/components/dropdown/types.d.ts +84 -0
- package/es/components/dropdown/types.js +1 -0
- package/es/components/dropdownMenu/dropdownMenu.d.ts +5 -0
- package/es/components/dropdownMenu/dropdownMenu.js +586 -0
- package/es/components/dropdownMenu/index.d.ts +4 -0
- package/es/components/dropdownMenu/index.js +3 -0
- package/es/components/dropdownMenu/types.d.ts +47 -0
- package/es/components/dropdownMenu/types.js +1 -0
- package/es/components/ellipsis/ellipsis.d.ts +6 -0
- package/es/components/ellipsis/ellipsis.js +232 -0
- package/es/components/ellipsis/index.d.ts +4 -0
- package/es/components/ellipsis/index.js +3 -0
- package/es/components/ellipsis/types.d.ts +36 -0
- package/es/components/ellipsis/types.js +1 -0
- package/es/components/empty/empty.d.ts +9 -0
- package/es/components/empty/empty.js +38 -0
- package/es/components/empty/index.d.ts +3 -0
- package/es/components/empty/index.js +1 -0
- package/es/components/empty/types.d.ts +14 -0
- package/es/components/empty/types.js +1 -0
- package/es/components/errorBlock/errorBlock.d.ts +5 -0
- package/es/components/errorBlock/errorBlock.js +230 -0
- package/es/components/errorBlock/index.d.ts +4 -0
- package/es/components/errorBlock/index.js +3 -0
- package/es/components/errorBlock/types.d.ts +25 -0
- package/es/components/errorBlock/types.js +1 -0
- package/es/components/flatList/flatList.d.ts +7 -0
- package/es/components/flatList/flatList.js +564 -0
- package/es/components/flatList/index.d.ts +4 -0
- package/es/components/flatList/index.js +3 -0
- package/es/components/flatList/scrollTargetMeasurement.d.ts +17 -0
- package/es/components/flatList/scrollTargetMeasurement.h5.d.ts +3 -0
- package/es/components/flatList/scrollTargetMeasurement.h5.js +15 -0
- package/es/components/flatList/scrollTargetMeasurement.js +16 -0
- package/es/components/flatList/types.d.ts +88 -0
- package/es/components/flatList/types.js +1 -0
- package/es/components/form/form.d.ts +5 -0
- package/es/components/form/form.js +516 -0
- package/es/components/form/index.d.ts +4 -0
- package/es/components/form/index.js +3 -0
- package/es/components/form/types.d.ts +156 -0
- package/es/components/form/types.js +1 -0
- package/es/components/grid/grid.d.ts +9 -0
- package/es/components/grid/grid.js +263 -0
- package/es/components/grid/index.d.ts +4 -0
- package/es/components/grid/index.js +3 -0
- package/es/components/grid/types.d.ts +53 -0
- package/es/components/grid/types.js +1 -0
- package/es/components/icon/aliases.d.ts +7 -0
- package/es/components/icon/aliases.js +45 -0
- package/es/components/icon/icon.d.ts +5 -0
- package/es/components/icon/icon.js +135 -0
- package/es/components/icon/index.d.ts +5 -0
- package/es/components/icon/index.js +4 -0
- package/es/components/icon/lucide.generated.d.ts +576 -0
- package/es/components/icon/lucide.generated.js +577 -0
- package/es/components/icon/types.d.ts +36 -0
- package/es/components/icon/types.js +1 -0
- package/es/components/image/image.d.ts +11 -0
- package/es/components/image/image.js +151 -0
- package/es/components/image/index.d.ts +4 -0
- package/es/components/image/index.js +3 -0
- package/es/components/image/types.d.ts +48 -0
- package/es/components/image/types.js +1 -0
- package/es/components/input/index.d.ts +7 -0
- package/es/components/input/index.js +6 -0
- package/es/components/input/input.d.ts +10 -0
- package/es/components/input/input.js +274 -0
- package/es/components/input/style.css +9 -0
- package/es/components/input/tokens.d.ts +27 -0
- package/es/components/input/tokens.js +66 -0
- package/es/components/input/types.d.ts +72 -0
- package/es/components/input/types.js +1 -0
- package/es/components/inputItem/index.d.ts +5 -0
- package/es/components/inputItem/index.js +3 -0
- package/es/components/inputItem/inputItem.d.ts +9 -0
- package/es/components/inputItem/inputItem.js +386 -0
- package/es/components/inputItem/tokens.d.ts +31 -0
- package/es/components/inputItem/tokens.js +84 -0
- package/es/components/inputItem/types.d.ts +66 -0
- package/es/components/inputItem/types.js +1 -0
- package/es/components/internal/index.d.ts +3 -0
- package/es/components/internal/index.js +1 -0
- package/es/components/internal/internal.d.ts +5 -0
- package/es/components/internal/internal.js +49 -0
- package/es/components/internal/selectionControl/presentation.d.ts +31 -0
- package/es/components/internal/selectionControl/presentation.js +36 -0
- package/es/components/internal/selectionControl/useTaroScrollIntoView.d.ts +19 -0
- package/es/components/internal/selectionControl/useTaroScrollIntoView.js +90 -0
- package/es/components/internal/selectionControl/useTaroSelectionIndicator.d.ts +22 -0
- package/es/components/internal/selectionControl/useTaroSelectionIndicator.js +166 -0
- package/es/components/internal/types.d.ts +10 -0
- package/es/components/internal/types.js +1 -0
- package/es/components/item/index.d.ts +4 -0
- package/es/components/item/index.js +3 -0
- package/es/components/item/item.d.ts +14 -0
- package/es/components/item/item.js +471 -0
- package/es/components/item/types.d.ts +58 -0
- package/es/components/item/types.js +1 -0
- package/es/components/kbd/index.d.ts +4 -0
- package/es/components/kbd/index.js +3 -0
- package/es/components/kbd/kbd.d.ts +6 -0
- package/es/components/kbd/kbd.js +199 -0
- package/es/components/kbd/types.d.ts +38 -0
- package/es/components/kbd/types.js +1 -0
- package/es/components/layout/index.d.ts +5 -0
- package/es/components/layout/index.js +2 -0
- package/es/components/layout/layout.d.ts +17 -0
- package/es/components/layout/layout.js +244 -0
- package/es/components/layout/types.d.ts +54 -0
- package/es/components/layout/types.js +1 -0
- package/es/components/list/index.d.ts +3 -0
- package/es/components/list/index.js +1 -0
- package/es/components/list/list.d.ts +9 -0
- package/es/components/list/list.js +420 -0
- package/es/components/list/types.d.ts +49 -0
- package/es/components/list/types.js +1 -0
- package/es/components/mask/index.d.ts +5 -0
- package/es/components/mask/index.js +4 -0
- package/es/components/mask/mask.d.ts +11 -0
- package/es/components/mask/mask.js +150 -0
- package/es/components/mask/tokens.d.ts +29 -0
- package/es/components/mask/tokens.js +75 -0
- package/es/components/mask/types.d.ts +49 -0
- package/es/components/mask/types.js +1 -0
- package/es/components/masonryList/index.d.ts +4 -0
- package/es/components/masonryList/index.js +3 -0
- package/es/components/masonryList/masonryList.d.ts +7 -0
- package/es/components/masonryList/masonryList.js +501 -0
- package/es/components/masonryList/types.d.ts +65 -0
- package/es/components/masonryList/types.js +1 -0
- package/es/components/menu/index.d.ts +4 -0
- package/es/components/menu/index.js +3 -0
- package/es/components/menu/menu.d.ts +5 -0
- package/es/components/menu/menu.js +559 -0
- package/es/components/menu/types.d.ts +79 -0
- package/es/components/menu/types.js +1 -0
- package/es/components/menubar/index.d.ts +4 -0
- package/es/components/menubar/index.js +3 -0
- package/es/components/menubar/menubar.d.ts +5 -0
- package/es/components/menubar/menubar.js +810 -0
- package/es/components/menubar/types.d.ts +71 -0
- package/es/components/menubar/types.js +1 -0
- package/es/components/modal/index.d.ts +5 -0
- package/es/components/modal/index.js +4 -0
- package/es/components/modal/modal.d.ts +11 -0
- package/es/components/modal/modal.js +235 -0
- package/es/components/modal/tokens.d.ts +37 -0
- package/es/components/modal/tokens.js +118 -0
- package/es/components/modal/types.d.ts +63 -0
- package/es/components/modal/types.js +1 -0
- package/es/components/navBar/index.d.ts +4 -0
- package/es/components/navBar/index.js +3 -0
- package/es/components/navBar/navBar.d.ts +11 -0
- package/es/components/navBar/navBar.js +238 -0
- package/es/components/navBar/types.d.ts +32 -0
- package/es/components/navBar/types.js +1 -0
- package/es/components/needWrap/index.d.ts +4 -0
- package/es/components/needWrap/index.js +3 -0
- package/es/components/needWrap/needWrap.d.ts +12 -0
- package/es/components/needWrap/needWrap.js +23 -0
- package/es/components/needWrap/types.d.ts +12 -0
- package/es/components/needWrap/types.js +1 -0
- package/es/components/notification/index.d.ts +5 -0
- package/es/components/notification/index.js +4 -0
- package/es/components/notification/notification.d.ts +13 -0
- package/es/components/notification/notification.js +532 -0
- package/es/components/notification/tokens.d.ts +43 -0
- package/es/components/notification/tokens.js +95 -0
- package/es/components/notification/types.d.ts +76 -0
- package/es/components/notification/types.js +1 -0
- package/es/components/pageIndicator/index.d.ts +4 -0
- package/es/components/pageIndicator/index.js +3 -0
- package/es/components/pageIndicator/pageIndicator.d.ts +5 -0
- package/es/components/pageIndicator/pageIndicator.js +218 -0
- package/es/components/pageIndicator/types.d.ts +51 -0
- package/es/components/pageIndicator/types.js +1 -0
- package/es/components/pagination/index.d.ts +4 -0
- package/es/components/pagination/index.js +3 -0
- package/es/components/pagination/pagination.d.ts +5 -0
- package/es/components/pagination/pagination.js +448 -0
- package/es/components/pagination/tokens.d.ts +36 -0
- package/es/components/pagination/tokens.js +102 -0
- package/es/components/pagination/types.d.ts +36 -0
- package/es/components/pagination/types.js +1 -0
- package/es/components/picker/index.d.ts +6 -0
- package/es/components/picker/index.js +4 -0
- package/es/components/picker/picker.d.ts +9 -0
- package/es/components/picker/picker.js +547 -0
- package/es/components/picker/shared.d.ts +16 -0
- package/es/components/picker/shared.js +114 -0
- package/es/components/picker/tokens.d.ts +43 -0
- package/es/components/picker/tokens.js +108 -0
- package/es/components/picker/types.d.ts +110 -0
- package/es/components/picker/types.js +1 -0
- package/es/components/pickerView/index.d.ts +4 -0
- package/es/components/pickerView/index.js +2 -0
- package/es/components/pickerView/pickerView.d.ts +9 -0
- package/es/components/pickerView/pickerView.js +173 -0
- package/es/components/pickerView/types.d.ts +30 -0
- package/es/components/pickerView/types.js +1 -0
- package/es/components/popconfirm/index.d.ts +4 -0
- package/es/components/popconfirm/index.js +3 -0
- package/es/components/popconfirm/popconfirm.d.ts +20 -0
- package/es/components/popconfirm/popconfirm.js +490 -0
- package/es/components/popconfirm/types.d.ts +91 -0
- package/es/components/popconfirm/types.js +1 -0
- package/es/components/popover/index.d.ts +5 -0
- package/es/components/popover/index.js +2 -0
- package/es/components/popover/popover.d.ts +5 -0
- package/es/components/popover/popover.js +174 -0
- package/es/components/popover/types.d.ts +51 -0
- package/es/components/popover/types.js +1 -0
- package/es/components/popup/index.d.ts +4 -0
- package/es/components/popup/index.js +2 -0
- package/es/components/popup/popup.d.ts +9 -0
- package/es/components/popup/popup.js +205 -0
- package/es/components/popup/tokens.d.ts +38 -0
- package/es/components/popup/tokens.js +162 -0
- package/es/components/popup/types.d.ts +61 -0
- package/es/components/popup/types.js +1 -0
- package/es/components/portal/index.d.ts +4 -0
- package/es/components/portal/index.js +3 -0
- package/es/components/portal/portal.d.ts +11 -0
- package/es/components/portal/portal.h5.d.ts +5 -0
- package/es/components/portal/portal.h5.js +67 -0
- package/es/components/portal/portal.js +48 -0
- package/es/components/portal/types.d.ts +25 -0
- package/es/components/portal/types.js +1 -0
- package/es/components/progress/index.d.ts +3 -0
- package/es/components/progress/index.js +1 -0
- package/es/components/progress/progress.d.ts +5 -0
- package/es/components/progress/progress.js +132 -0
- package/es/components/progress/types.d.ts +16 -0
- package/es/components/progress/types.js +1 -0
- package/es/components/progressBar/index.d.ts +3 -0
- package/es/components/progressBar/index.js +1 -0
- package/es/components/progressBar/progressBar.d.ts +6 -0
- package/es/components/progressBar/progressBar.js +162 -0
- package/es/components/progressBar/style.css +13 -0
- package/es/components/progressBar/tokens.d.ts +18 -0
- package/es/components/progressBar/tokens.js +42 -0
- package/es/components/progressBar/types.d.ts +40 -0
- package/es/components/progressBar/types.js +1 -0
- package/es/components/provider/index.d.ts +4 -0
- package/es/components/provider/index.js +3 -0
- package/es/components/provider/provider.d.ts +5 -0
- package/es/components/provider/provider.js +70 -0
- package/es/components/provider/types.d.ts +33 -0
- package/es/components/provider/types.js +1 -0
- package/es/components/radio/index.d.ts +7 -0
- package/es/components/radio/index.js +6 -0
- package/es/components/radio/radio.d.ts +12 -0
- package/es/components/radio/radio.js +215 -0
- package/es/components/radio/tokens.d.ts +41 -0
- package/es/components/radio/tokens.js +147 -0
- package/es/components/radio/types.d.ts +66 -0
- package/es/components/radio/types.js +1 -0
- package/es/components/rate/index.d.ts +4 -0
- package/es/components/rate/index.js +3 -0
- package/es/components/rate/rate.d.ts +5 -0
- package/es/components/rate/rate.js +195 -0
- package/es/components/rate/types.d.ts +33 -0
- package/es/components/rate/types.js +1 -0
- package/es/components/result/index.d.ts +3 -0
- package/es/components/result/index.js +1 -0
- package/es/components/result/result.d.ts +5 -0
- package/es/components/result/result.js +62 -0
- package/es/components/result/types.d.ts +27 -0
- package/es/components/result/types.js +1 -0
- package/es/components/resultPage/index.d.ts +4 -0
- package/es/components/resultPage/index.js +3 -0
- package/es/components/resultPage/resultPage.d.ts +5 -0
- package/es/components/resultPage/resultPage.js +344 -0
- package/es/components/resultPage/types.d.ts +56 -0
- package/es/components/resultPage/types.js +1 -0
- package/es/components/rollingNumber/index.d.ts +4 -0
- package/es/components/rollingNumber/index.js +3 -0
- package/es/components/rollingNumber/rollingNumber.d.ts +5 -0
- package/es/components/rollingNumber/rollingNumber.js +298 -0
- package/es/components/rollingNumber/types.d.ts +40 -0
- package/es/components/rollingNumber/types.js +1 -0
- package/es/components/safeArea/index.d.ts +4 -0
- package/es/components/safeArea/index.js +3 -0
- package/es/components/safeArea/safeArea.d.ts +7 -0
- package/es/components/safeArea/safeArea.js +74 -0
- package/es/components/safeArea/types.d.ts +22 -0
- package/es/components/safeArea/types.js +1 -0
- package/es/components/scrollFade/index.d.ts +3 -0
- package/es/components/scrollFade/index.js +1 -0
- package/es/components/scrollFade/scrollFade.d.ts +15 -0
- package/es/components/scrollFade/scrollFade.js +212 -0
- package/es/components/scrollFade/types.d.ts +44 -0
- package/es/components/scrollFade/types.js +1 -0
- package/es/components/scrollView/index.d.ts +4 -0
- package/es/components/scrollView/index.js +3 -0
- package/es/components/scrollView/scrollView.d.ts +6 -0
- package/es/components/scrollView/scrollView.js +270 -0
- package/es/components/scrollView/style.css +7 -0
- package/es/components/scrollView/types.d.ts +48 -0
- package/es/components/scrollView/types.js +1 -0
- package/es/components/searchBar/index.d.ts +5 -0
- package/es/components/searchBar/index.js +3 -0
- package/es/components/searchBar/searchBar.d.ts +9 -0
- package/es/components/searchBar/searchBar.js +358 -0
- package/es/components/searchBar/tokens.d.ts +40 -0
- package/es/components/searchBar/tokens.js +87 -0
- package/es/components/searchBar/types.d.ts +65 -0
- package/es/components/searchBar/types.js +1 -0
- package/es/components/sectionList/index.d.ts +4 -0
- package/es/components/sectionList/index.js +3 -0
- package/es/components/sectionList/sectionList.d.ts +8 -0
- package/es/components/sectionList/sectionList.js +489 -0
- package/es/components/sectionList/types.d.ts +64 -0
- package/es/components/sectionList/types.js +1 -0
- package/es/components/segmented/index.d.ts +4 -0
- package/es/components/segmented/index.js +3 -0
- package/es/components/segmented/segmented.d.ts +5 -0
- package/es/components/segmented/segmented.js +286 -0
- package/es/components/segmented/types.d.ts +61 -0
- package/es/components/segmented/types.js +1 -0
- package/es/components/select/index.d.ts +5 -0
- package/es/components/select/index.js +3 -0
- package/es/components/select/select.d.ts +11 -0
- package/es/components/select/select.js +723 -0
- package/es/components/select/tokens.d.ts +60 -0
- package/es/components/select/tokens.js +138 -0
- package/es/components/select/types.d.ts +79 -0
- package/es/components/select/types.js +1 -0
- package/es/components/sendCode/index.d.ts +5 -0
- package/es/components/sendCode/index.js +3 -0
- package/es/components/sendCode/sendCode.d.ts +12 -0
- package/es/components/sendCode/sendCode.js +196 -0
- package/es/components/sendCode/tokens.d.ts +13 -0
- package/es/components/sendCode/tokens.js +19 -0
- package/es/components/sendCode/types.d.ts +54 -0
- package/es/components/sendCode/types.js +1 -0
- package/es/components/shimmer/index.d.ts +3 -0
- package/es/components/shimmer/index.js +1 -0
- package/es/components/shimmer/shimmer.d.ts +21 -0
- package/es/components/shimmer/shimmer.js +213 -0
- package/es/components/shimmer/style.css +31 -0
- package/es/components/shimmer/types.d.ts +34 -0
- package/es/components/shimmer/types.js +1 -0
- package/es/components/showMoreText/index.d.ts +4 -0
- package/es/components/showMoreText/index.js +3 -0
- package/es/components/showMoreText/showMoreText.d.ts +5 -0
- package/es/components/showMoreText/showMoreText.js +305 -0
- package/es/components/showMoreText/types.d.ts +33 -0
- package/es/components/showMoreText/types.js +1 -0
- package/es/components/sideBar/index.d.ts +5 -0
- package/es/components/sideBar/index.js +4 -0
- package/es/components/sideBar/sideBar.d.ts +8 -0
- package/es/components/sideBar/sideBar.js +364 -0
- package/es/components/sideBar/types.d.ts +40 -0
- package/es/components/sideBar/types.js +1 -0
- package/es/components/skeleton/index.d.ts +4 -0
- package/es/components/skeleton/index.js +2 -0
- package/es/components/skeleton/skeleton.d.ts +15 -0
- package/es/components/skeleton/skeleton.js +312 -0
- package/es/components/skeleton/style.css +16 -0
- package/es/components/skeleton/types.d.ts +71 -0
- package/es/components/skeleton/types.js +1 -0
- package/es/components/slider/index.d.ts +5 -0
- package/es/components/slider/index.js +3 -0
- package/es/components/slider/slider.d.ts +10 -0
- package/es/components/slider/slider.js +565 -0
- package/es/components/slider/tokens.d.ts +33 -0
- package/es/components/slider/tokens.js +97 -0
- package/es/components/slider/types.d.ts +43 -0
- package/es/components/slider/types.js +1 -0
- package/es/components/sonner/index.d.ts +5 -0
- package/es/components/sonner/index.js +2 -0
- package/es/components/sonner/sonner.d.ts +35 -0
- package/es/components/sonner/sonner.js +731 -0
- package/es/components/sonner/style.css +67 -0
- package/es/components/sonner/types.d.ts +119 -0
- package/es/components/sonner/types.js +1 -0
- package/es/components/space/index.d.ts +4 -0
- package/es/components/space/index.js +3 -0
- package/es/components/space/space.d.ts +15 -0
- package/es/components/space/space.js +108 -0
- package/es/components/space/types.d.ts +41 -0
- package/es/components/space/types.js +1 -0
- package/es/components/spin/index.d.ts +3 -0
- package/es/components/spin/index.js +1 -0
- package/es/components/spin/spin.d.ts +6 -0
- package/es/components/spin/spin.js +157 -0
- package/es/components/spin/style.css +13 -0
- package/es/components/spin/types.d.ts +21 -0
- package/es/components/spin/types.js +1 -0
- package/es/components/spinner/index.d.ts +4 -0
- package/es/components/spinner/index.js +3 -0
- package/es/components/spinner/spinner.d.ts +12 -0
- package/es/components/spinner/spinner.js +141 -0
- package/es/components/spinner/style.css +11 -0
- package/es/components/spinner/types.d.ts +33 -0
- package/es/components/spinner/types.js +1 -0
- package/es/components/stepper/index.d.ts +5 -0
- package/es/components/stepper/index.js +3 -0
- package/es/components/stepper/stepper.d.ts +10 -0
- package/es/components/stepper/stepper.js +317 -0
- package/es/components/stepper/style.css +13 -0
- package/es/components/stepper/tokens.d.ts +36 -0
- package/es/components/stepper/tokens.js +130 -0
- package/es/components/stepper/types.d.ts +50 -0
- package/es/components/stepper/types.js +1 -0
- package/es/components/steps/index.d.ts +3 -0
- package/es/components/steps/index.js +1 -0
- package/es/components/steps/steps.d.ts +5 -0
- package/es/components/steps/steps.js +204 -0
- package/es/components/steps/types.d.ts +29 -0
- package/es/components/steps/types.js +1 -0
- package/es/components/swiper/index.d.ts +4 -0
- package/es/components/swiper/index.js +3 -0
- package/es/components/swiper/swiper.d.ts +6 -0
- package/es/components/swiper/swiper.js +326 -0
- package/es/components/swiper/types.d.ts +51 -0
- package/es/components/swiper/types.js +1 -0
- package/es/components/switch/index.d.ts +5 -0
- package/es/components/switch/index.js +3 -0
- package/es/components/switch/style.css +10 -0
- package/es/components/switch/switch.d.ts +10 -0
- package/es/components/switch/switch.js +252 -0
- package/es/components/switch/tokens.d.ts +33 -0
- package/es/components/switch/tokens.js +108 -0
- package/es/components/switch/types.d.ts +42 -0
- package/es/components/switch/types.js +1 -0
- package/es/components/tabBar/index.d.ts +4 -0
- package/es/components/tabBar/index.js +2 -0
- package/es/components/tabBar/tabBar.d.ts +12 -0
- package/es/components/tabBar/tabBar.js +411 -0
- package/es/components/tabBar/types.d.ts +46 -0
- package/es/components/tabBar/types.js +1 -0
- package/es/components/table/index.d.ts +4 -0
- package/es/components/table/index.js +3 -0
- package/es/components/table/table.d.ts +13 -0
- package/es/components/table/table.js +2001 -0
- package/es/components/table/types.d.ts +272 -0
- package/es/components/table/types.js +1 -0
- package/es/components/tabs/index.d.ts +3 -0
- package/es/components/tabs/index.js +1 -0
- package/es/components/tabs/tabs.d.ts +16 -0
- package/es/components/tabs/tabs.js +796 -0
- package/es/components/tabs/types.d.ts +124 -0
- package/es/components/tabs/types.js +1 -0
- package/es/components/tag/index.d.ts +7 -0
- package/es/components/tag/index.js +6 -0
- package/es/components/tag/tag.d.ts +17 -0
- package/es/components/tag/tag.js +542 -0
- package/es/components/tag/tokens.d.ts +43 -0
- package/es/components/tag/tokens.js +173 -0
- package/es/components/tag/types.d.ts +107 -0
- package/es/components/tag/types.js +1 -0
- package/es/components/text/index.d.ts +4 -0
- package/es/components/text/index.js +3 -0
- package/es/components/text/text.d.ts +5 -0
- package/es/components/text/text.js +235 -0
- package/es/components/text/types.d.ts +50 -0
- package/es/components/text/types.js +1 -0
- package/es/components/textInput/index.d.ts +4 -0
- package/es/components/textInput/index.js +3 -0
- package/es/components/textInput/style.css +37 -0
- package/es/components/textInput/textInput.d.ts +10 -0
- package/es/components/textInput/textInput.js +371 -0
- package/es/components/textInput/types.d.ts +79 -0
- package/es/components/textInput/types.js +1 -0
- package/es/components/textarea/index.d.ts +5 -0
- package/es/components/textarea/index.js +3 -0
- package/es/components/textarea/style.css +32 -0
- package/es/components/textarea/textarea.d.ts +10 -0
- package/es/components/textarea/textarea.js +342 -0
- package/es/components/textarea/tokens.d.ts +29 -0
- package/es/components/textarea/tokens.js +123 -0
- package/es/components/textarea/types.d.ts +120 -0
- package/es/components/textarea/types.js +1 -0
- package/es/components/toast/index.d.ts +4 -0
- package/es/components/toast/index.js +2 -0
- package/es/components/toast/style.css +9 -0
- package/es/components/toast/toast.d.ts +21 -0
- package/es/components/toast/toast.js +348 -0
- package/es/components/toast/tokens.d.ts +48 -0
- package/es/components/toast/tokens.js +179 -0
- package/es/components/toast/types.d.ts +47 -0
- package/es/components/toast/types.js +1 -0
- package/es/components/tooltip/index.d.ts +5 -0
- package/es/components/tooltip/index.js +4 -0
- package/es/components/tooltip/tokens.d.ts +32 -0
- package/es/components/tooltip/tokens.js +71 -0
- package/es/components/tooltip/tooltip.d.ts +28 -0
- package/es/components/tooltip/tooltip.js +514 -0
- package/es/components/tooltip/types.d.ts +75 -0
- package/es/components/tooltip/types.js +1 -0
- package/es/components/touchableOpacity/index.d.ts +4 -0
- package/es/components/touchableOpacity/index.js +3 -0
- package/es/components/touchableOpacity/touchableOpacity.d.ts +5 -0
- package/es/components/touchableOpacity/touchableOpacity.js +177 -0
- package/es/components/touchableOpacity/types.d.ts +34 -0
- package/es/components/touchableOpacity/types.js +1 -0
- package/es/components/transfer/index.d.ts +4 -0
- package/es/components/transfer/index.js +3 -0
- package/es/components/transfer/tokens.d.ts +17 -0
- package/es/components/transfer/tokens.js +41 -0
- package/es/components/transfer/transfer.d.ts +5 -0
- package/es/components/transfer/transfer.js +617 -0
- package/es/components/transfer/types.d.ts +59 -0
- package/es/components/transfer/types.js +1 -0
- package/es/components/treeSelect/index.d.ts +4 -0
- package/es/components/treeSelect/index.js +3 -0
- package/es/components/treeSelect/style.css +11 -0
- package/es/components/treeSelect/tokens.d.ts +16 -0
- package/es/components/treeSelect/tokens.js +26 -0
- package/es/components/treeSelect/treeSelect.d.ts +6 -0
- package/es/components/treeSelect/treeSelect.js +842 -0
- package/es/components/treeSelect/types.d.ts +61 -0
- package/es/components/treeSelect/types.js +1 -0
- package/es/components/typography/index.d.ts +4 -0
- package/es/components/typography/index.js +2 -0
- package/es/components/typography/style.css +3 -0
- package/es/components/typography/types.d.ts +68 -0
- package/es/components/typography/types.js +1 -0
- package/es/components/typography/typography.d.ts +2 -0
- package/es/components/typography/typography.js +209 -0
- package/es/components/view/index.d.ts +4 -0
- package/es/components/view/index.js +3 -0
- package/es/components/view/observeLayout.d.ts +2 -0
- package/es/components/view/observeLayout.h5.d.ts +2 -0
- package/es/components/view/observeLayout.h5.js +9 -0
- package/es/components/view/observeLayout.js +3 -0
- package/es/components/view/types.d.ts +81 -0
- package/es/components/view/types.js +1 -0
- package/es/components/view/view.d.ts +5 -0
- package/es/components/view/view.js +194 -0
- package/es/components/withDivider/index.d.ts +4 -0
- package/es/components/withDivider/index.js +3 -0
- package/es/components/withDivider/types.d.ts +56 -0
- package/es/components/withDivider/types.js +1 -0
- package/es/components/withDivider/withDivider.d.ts +6 -0
- package/es/components/withDivider/withDivider.js +156 -0
- package/es/index.d.ts +117 -0
- package/es/index.js +149 -0
- package/es/patterns/fieldControl/index.d.ts +36 -0
- package/es/patterns/fieldControl/index.js +43 -0
- package/es/patterns/index.d.ts +8 -0
- package/es/patterns/index.js +8 -0
- package/es/patterns/listItem/index.d.ts +30 -0
- package/es/patterns/listItem/index.js +41 -0
- package/es/patterns/overlay/index.d.ts +25 -0
- package/es/patterns/overlay/index.js +176 -0
- package/es/patterns/overlay/types.d.ts +38 -0
- package/es/patterns/overlay/types.js +1 -0
- package/es/patterns/overlay/useOverlayTransition.d.ts +6 -0
- package/es/patterns/overlay/useOverlayTransition.js +60 -0
- package/es/patterns/pickerColumns/WheelPicker.d.ts +32 -0
- package/es/patterns/pickerColumns/WheelPicker.js +356 -0
- package/es/patterns/pickerColumns/index.d.ts +38 -0
- package/es/patterns/pickerColumns/index.js +85 -0
- package/es/patterns/pressable/index.d.ts +47 -0
- package/es/patterns/pressable/index.js +104 -0
- package/es/taro-components.d.ts +51 -0
- package/es/theme/default-theme.d.ts +28 -0
- package/es/theme/default-theme.js +130 -0
- package/es/theme/generated/design-system.generated.d.ts +1486 -0
- package/es/theme/generated/design-system.generated.js +1398 -0
- package/es/theme/hooks/useTheme.d.ts +5 -0
- package/es/theme/hooks/useTheme.js +5 -0
- package/es/theme/hooks/useToken.d.ts +408 -0
- package/es/theme/hooks/useToken.js +113 -0
- package/es/theme/index.d.ts +18 -0
- package/es/theme/index.js +27 -0
- package/es/theme/listTypography.d.ts +44 -0
- package/es/theme/listTypography.js +99 -0
- package/es/theme/runtime/ThemeProvider.d.ts +30 -0
- package/es/theme/runtime/ThemeProvider.js +308 -0
- package/es/theme/runtime/componentTokens.d.ts +10 -0
- package/es/theme/runtime/componentTokens.js +542 -0
- package/es/theme/runtime/cssVariables.d.ts +28 -0
- package/es/theme/runtime/cssVariables.js +221 -0
- package/es/theme/runtime/slotOverrides.d.ts +35 -0
- package/es/theme/runtime/slotOverrides.js +80 -0
- package/es/theme/selectionControl.d.ts +126 -0
- package/es/theme/selectionControl.js +135 -0
- package/es/theme/types.d.ts +94 -0
- package/es/theme/types.js +1 -0
- package/es/theme/typography.d.ts +88 -0
- package/es/theme/typography.js +29 -0
- package/es/utils/iconSlot.d.ts +3 -0
- package/es/utils/iconSlot.js +16 -0
- package/es/utils/index.d.ts +50 -0
- package/es/utils/index.js +131 -0
- package/es/utils/inlineAlignment.d.ts +12 -0
- package/es/utils/inlineAlignment.js +34 -0
- package/es/utils/locale.d.ts +3 -0
- package/es/utils/locale.js +8 -0
- package/es/utils/resolveThemeColor.d.ts +6 -0
- package/es/utils/resolveThemeColor.js +11 -0
- package/es/utils/style.d.ts +8 -0
- package/es/utils/style.js +70 -0
- package/es/utils/taroProps.d.ts +20 -0
- package/es/utils/taroProps.js +62 -0
- package/lib/adapters/miniapp/index.d.ts +9 -0
- package/lib/adapters/miniapp/index.js +31 -0
- package/lib/adapters/miniapp/measure.d.ts +43 -0
- package/lib/adapters/miniapp/measure.js +147 -0
- package/lib/adapters/miniapp/overlayHost.d.ts +23 -0
- package/lib/adapters/miniapp/overlayHost.js +152 -0
- package/lib/adapters/miniapp/portal.d.ts +26 -0
- package/lib/adapters/miniapp/portal.js +55 -0
- package/lib/adapters/miniapp/scroll.d.ts +29 -0
- package/lib/adapters/miniapp/scroll.js +96 -0
- package/lib/adapters/miniapp/touch.d.ts +57 -0
- package/lib/adapters/miniapp/touch.js +158 -0
- package/lib/auth/components.d.ts +117 -0
- package/lib/auth/components.js +932 -0
- package/lib/auth/entries/account-security.d.ts +3 -0
- package/lib/auth/entries/account-security.js +30 -0
- package/lib/auth/entries/change-password.d.ts +3 -0
- package/lib/auth/entries/change-password.js +30 -0
- package/lib/auth/entries/forgot-password.d.ts +3 -0
- package/lib/auth/entries/forgot-password.js +30 -0
- package/lib/auth/entries/identifier-binding.d.ts +3 -0
- package/lib/auth/entries/identifier-binding.js +38 -0
- package/lib/auth/entries/phone-number-input.d.ts +3 -0
- package/lib/auth/entries/phone-number-input.js +30 -0
- package/lib/auth/entries/provider.d.ts +2 -0
- package/lib/auth/entries/provider.js +23 -0
- package/lib/auth/entries/quick-sign-in.d.ts +3 -0
- package/lib/auth/entries/quick-sign-in.js +32 -0
- package/lib/auth/entries/sign-in.d.ts +3 -0
- package/lib/auth/entries/sign-in.js +30 -0
- package/lib/auth/entries/sign-up.d.ts +3 -0
- package/lib/auth/entries/sign-up.js +30 -0
- package/lib/auth/entries/theme.d.ts +2 -0
- package/lib/auth/entries/theme.js +23 -0
- package/lib/auth/entries/third-party-sign-in.d.ts +3 -0
- package/lib/auth/entries/third-party-sign-in.js +30 -0
- package/lib/auth/entries/types.d.ts +2 -0
- package/lib/auth/entries/types.js +23 -0
- package/lib/auth/index.d.ts +7 -0
- package/lib/auth/index.js +32 -0
- package/lib/auth/internal.d.ts +55 -0
- package/lib/auth/internal.js +186 -0
- package/lib/auth/phoneNumberInput.d.ts +22 -0
- package/lib/auth/phoneNumberInput.js +120 -0
- package/lib/auth/provider.d.ts +13 -0
- package/lib/auth/provider.js +67 -0
- package/lib/auth/styles.css +316 -0
- package/lib/auth/theme.d.ts +12 -0
- package/lib/auth/theme.js +47 -0
- package/lib/auth/types.d.ts +17 -0
- package/lib/auth/types.js +29 -0
- package/lib/components/_shared/render.d.ts +16 -0
- package/lib/components/_shared/render.js +63 -0
- package/lib/components/_shared/seedSurface.d.ts +8 -0
- package/lib/components/_shared/seedSurface.js +60 -0
- package/lib/components/actionSheet/actionSheet.d.ts +14 -0
- package/lib/components/actionSheet/actionSheet.js +431 -0
- package/lib/components/actionSheet/index.d.ts +4 -0
- package/lib/components/actionSheet/index.js +38 -0
- package/lib/components/actionSheet/tokens.d.ts +36 -0
- package/lib/components/actionSheet/tokens.js +145 -0
- package/lib/components/actionSheet/types.d.ts +82 -0
- package/lib/components/actionSheet/types.js +17 -0
- package/lib/components/affix/affix.d.ts +5 -0
- package/lib/components/affix/affix.js +74 -0
- package/lib/components/affix/index.d.ts +3 -0
- package/lib/components/affix/index.js +29 -0
- package/lib/components/affix/types.d.ts +14 -0
- package/lib/components/affix/types.js +17 -0
- package/lib/components/alert/alert.d.ts +5 -0
- package/lib/components/alert/alert.js +230 -0
- package/lib/components/alert/index.d.ts +5 -0
- package/lib/components/alert/index.js +50 -0
- package/lib/components/alert/tokens.d.ts +37 -0
- package/lib/components/alert/tokens.js +125 -0
- package/lib/components/alert/types.d.ts +54 -0
- package/lib/components/alert/types.js +17 -0
- package/lib/components/attachment/attachment.d.ts +22 -0
- package/lib/components/attachment/attachment.js +432 -0
- package/lib/components/attachment/index.d.ts +3 -0
- package/lib/components/attachment/index.js +56 -0
- package/lib/components/attachment/types.d.ts +141 -0
- package/lib/components/attachment/types.js +17 -0
- package/lib/components/avatar/avatar.d.ts +15 -0
- package/lib/components/avatar/avatar.js +360 -0
- package/lib/components/avatar/index.d.ts +7 -0
- package/lib/components/avatar/index.js +38 -0
- package/lib/components/avatar/style.css +14 -0
- package/lib/components/avatar/tokens.d.ts +30 -0
- package/lib/components/avatar/tokens.js +129 -0
- package/lib/components/avatar/types.d.ts +73 -0
- package/lib/components/avatar/types.js +17 -0
- package/lib/components/badge/badge.d.ts +13 -0
- package/lib/components/badge/badge.js +301 -0
- package/lib/components/badge/index.d.ts +7 -0
- package/lib/components/badge/index.js +44 -0
- package/lib/components/badge/tokens.d.ts +44 -0
- package/lib/components/badge/tokens.js +155 -0
- package/lib/components/badge/types.d.ts +74 -0
- package/lib/components/badge/types.js +17 -0
- package/lib/components/barLoading/barLoading.d.ts +12 -0
- package/lib/components/barLoading/barLoading.js +88 -0
- package/lib/components/barLoading/index.d.ts +4 -0
- package/lib/components/barLoading/index.js +44 -0
- package/lib/components/barLoading/style.css +16 -0
- package/lib/components/barLoading/types.d.ts +18 -0
- package/lib/components/barLoading/types.js +17 -0
- package/lib/components/breadcrumb/breadcrumb.d.ts +7 -0
- package/lib/components/breadcrumb/breadcrumb.js +140 -0
- package/lib/components/breadcrumb/index.d.ts +3 -0
- package/lib/components/breadcrumb/index.js +29 -0
- package/lib/components/breadcrumb/types.d.ts +21 -0
- package/lib/components/breadcrumb/types.js +17 -0
- package/lib/components/button/button.d.ts +11 -0
- package/lib/components/button/button.js +259 -0
- package/lib/components/button/index.d.ts +7 -0
- package/lib/components/button/index.js +38 -0
- package/lib/components/button/style.css +4 -0
- package/lib/components/button/tokens.d.ts +37 -0
- package/lib/components/button/tokens.js +184 -0
- package/lib/components/button/types.d.ts +69 -0
- package/lib/components/button/types.js +17 -0
- package/lib/components/capsuleTabs/capsuleTabs.d.ts +6 -0
- package/lib/components/capsuleTabs/capsuleTabs.js +537 -0
- package/lib/components/capsuleTabs/index.d.ts +3 -0
- package/lib/components/capsuleTabs/index.js +31 -0
- package/lib/components/capsuleTabs/types.d.ts +48 -0
- package/lib/components/capsuleTabs/types.js +17 -0
- package/lib/components/card/card.d.ts +20 -0
- package/lib/components/card/card.js +288 -0
- package/lib/components/card/index.d.ts +7 -0
- package/lib/components/card/index.js +40 -0
- package/lib/components/card/tokens.d.ts +37 -0
- package/lib/components/card/tokens.js +178 -0
- package/lib/components/card/types.d.ts +74 -0
- package/lib/components/card/types.js +17 -0
- package/lib/components/cascadePicker/cascadePicker.d.ts +5 -0
- package/lib/components/cascadePicker/cascadePicker.js +164 -0
- package/lib/components/cascadePicker/index.d.ts +4 -0
- package/lib/components/cascadePicker/index.js +44 -0
- package/lib/components/cascadePicker/shared.d.ts +29 -0
- package/lib/components/cascadePicker/shared.js +211 -0
- package/lib/components/cascadePicker/types.d.ts +59 -0
- package/lib/components/cascadePicker/types.js +17 -0
- package/lib/components/cascadePickerView/cascadePickerView.d.ts +5 -0
- package/lib/components/cascadePickerView/cascadePickerView.js +121 -0
- package/lib/components/cascadePickerView/index.d.ts +4 -0
- package/lib/components/cascadePickerView/index.js +44 -0
- package/lib/components/cascadePickerView/types.d.ts +27 -0
- package/lib/components/cascadePickerView/types.js +17 -0
- package/lib/components/cascader/cascader.d.ts +5 -0
- package/lib/components/cascader/cascader.js +436 -0
- package/lib/components/cascader/index.d.ts +4 -0
- package/lib/components/cascader/index.js +44 -0
- package/lib/components/cascader/types.d.ts +54 -0
- package/lib/components/cascader/types.js +17 -0
- package/lib/components/cascaderView/cascaderView.d.ts +5 -0
- package/lib/components/cascaderView/cascaderView.js +683 -0
- package/lib/components/cascaderView/index.d.ts +4 -0
- package/lib/components/cascaderView/index.js +44 -0
- package/lib/components/cascaderView/types.d.ts +25 -0
- package/lib/components/cascaderView/types.js +17 -0
- package/lib/components/checkList/checkList.d.ts +9 -0
- package/lib/components/checkList/checkList.js +408 -0
- package/lib/components/checkList/index.d.ts +5 -0
- package/lib/components/checkList/index.js +47 -0
- package/lib/components/checkList/types.d.ts +41 -0
- package/lib/components/checkList/types.js +17 -0
- package/lib/components/checkbox/checkbox.d.ts +15 -0
- package/lib/components/checkbox/checkbox.js +274 -0
- package/lib/components/checkbox/index.d.ts +7 -0
- package/lib/components/checkbox/index.js +40 -0
- package/lib/components/checkbox/tokens.d.ts +38 -0
- package/lib/components/checkbox/tokens.js +147 -0
- package/lib/components/checkbox/types.d.ts +73 -0
- package/lib/components/checkbox/types.js +17 -0
- package/lib/components/collapse/collapse.d.ts +9 -0
- package/lib/components/collapse/collapse.js +351 -0
- package/lib/components/collapse/index.d.ts +4 -0
- package/lib/components/collapse/index.js +46 -0
- package/lib/components/collapse/types.d.ts +33 -0
- package/lib/components/collapse/types.js +17 -0
- package/lib/components/command/command.d.ts +7 -0
- package/lib/components/command/command.js +658 -0
- package/lib/components/command/index.d.ts +4 -0
- package/lib/components/command/index.js +44 -0
- package/lib/components/command/style.css +5 -0
- package/lib/components/command/types.d.ts +69 -0
- package/lib/components/command/types.js +17 -0
- package/lib/components/configProvider/configProvider.d.ts +12 -0
- package/lib/components/configProvider/configProvider.js +176 -0
- package/lib/components/configProvider/index.d.ts +4 -0
- package/lib/components/configProvider/index.js +52 -0
- package/lib/components/configProvider/types.d.ts +48 -0
- package/lib/components/configProvider/types.js +17 -0
- package/lib/components/contextMenu/contextMenu.d.ts +6 -0
- package/lib/components/contextMenu/contextMenu.js +652 -0
- package/lib/components/contextMenu/index.d.ts +4 -0
- package/lib/components/contextMenu/index.js +46 -0
- package/lib/components/contextMenu/types.d.ts +69 -0
- package/lib/components/contextMenu/types.js +17 -0
- package/lib/components/datePicker/datePicker.d.ts +6 -0
- package/lib/components/datePicker/datePicker.js +427 -0
- package/lib/components/datePicker/index.d.ts +4 -0
- package/lib/components/datePicker/index.js +44 -0
- package/lib/components/datePicker/shared.d.ts +35 -0
- package/lib/components/datePicker/shared.js +304 -0
- package/lib/components/datePicker/types.d.ts +77 -0
- package/lib/components/datePicker/types.js +17 -0
- package/lib/components/datePickerView/datePickerView.d.ts +5 -0
- package/lib/components/datePickerView/datePickerView.js +175 -0
- package/lib/components/datePickerView/index.d.ts +4 -0
- package/lib/components/datePickerView/index.js +44 -0
- package/lib/components/datePickerView/types.d.ts +35 -0
- package/lib/components/datePickerView/types.js +17 -0
- package/lib/components/descriptions/descriptions.d.ts +5 -0
- package/lib/components/descriptions/descriptions.js +239 -0
- package/lib/components/descriptions/index.d.ts +3 -0
- package/lib/components/descriptions/index.js +29 -0
- package/lib/components/descriptions/types.d.ts +28 -0
- package/lib/components/descriptions/types.js +17 -0
- package/lib/components/dialog/dialog.d.ts +21 -0
- package/lib/components/dialog/dialog.js +574 -0
- package/lib/components/dialog/index.d.ts +6 -0
- package/lib/components/dialog/index.js +45 -0
- package/lib/components/dialog/tokens.d.ts +38 -0
- package/lib/components/dialog/tokens.js +154 -0
- package/lib/components/dialog/types.d.ts +104 -0
- package/lib/components/dialog/types.js +17 -0
- package/lib/components/dimensions/dimensions.d.ts +27 -0
- package/lib/components/dimensions/dimensions.js +424 -0
- package/lib/components/dimensions/index.d.ts +4 -0
- package/lib/components/dimensions/index.js +54 -0
- package/lib/components/dimensions/types.d.ts +85 -0
- package/lib/components/dimensions/types.js +17 -0
- package/lib/components/divider/divider.d.ts +8 -0
- package/lib/components/divider/divider.js +221 -0
- package/lib/components/divider/index.d.ts +7 -0
- package/lib/components/divider/index.js +36 -0
- package/lib/components/divider/tokens.d.ts +24 -0
- package/lib/components/divider/tokens.js +90 -0
- package/lib/components/divider/types.d.ts +29 -0
- package/lib/components/divider/types.js +17 -0
- package/lib/components/dotLoading/dotLoading.d.ts +12 -0
- package/lib/components/dotLoading/dotLoading.js +93 -0
- package/lib/components/dotLoading/index.d.ts +4 -0
- package/lib/components/dotLoading/index.js +44 -0
- package/lib/components/dotLoading/style.css +16 -0
- package/lib/components/dotLoading/types.d.ts +24 -0
- package/lib/components/dotLoading/types.js +17 -0
- package/lib/components/drawer/drawer.d.ts +5 -0
- package/lib/components/drawer/drawer.js +173 -0
- package/lib/components/drawer/index.d.ts +3 -0
- package/lib/components/drawer/index.js +29 -0
- package/lib/components/drawer/types.d.ts +32 -0
- package/lib/components/drawer/types.js +17 -0
- package/lib/components/dropdown/dropdown.d.ts +5 -0
- package/lib/components/dropdown/dropdown.js +588 -0
- package/lib/components/dropdown/index.d.ts +4 -0
- package/lib/components/dropdown/index.js +44 -0
- package/lib/components/dropdown/types.d.ts +84 -0
- package/lib/components/dropdown/types.js +17 -0
- package/lib/components/dropdownMenu/dropdownMenu.d.ts +5 -0
- package/lib/components/dropdownMenu/dropdownMenu.js +524 -0
- package/lib/components/dropdownMenu/index.d.ts +4 -0
- package/lib/components/dropdownMenu/index.js +44 -0
- package/lib/components/dropdownMenu/types.d.ts +47 -0
- package/lib/components/dropdownMenu/types.js +17 -0
- package/lib/components/ellipsis/ellipsis.d.ts +6 -0
- package/lib/components/ellipsis/ellipsis.js +237 -0
- package/lib/components/ellipsis/index.d.ts +4 -0
- package/lib/components/ellipsis/index.js +46 -0
- package/lib/components/ellipsis/types.d.ts +36 -0
- package/lib/components/ellipsis/types.js +17 -0
- package/lib/components/empty/empty.d.ts +9 -0
- package/lib/components/empty/empty.js +80 -0
- package/lib/components/empty/index.d.ts +3 -0
- package/lib/components/empty/index.js +29 -0
- package/lib/components/empty/types.d.ts +14 -0
- package/lib/components/empty/types.js +17 -0
- package/lib/components/errorBlock/errorBlock.d.ts +5 -0
- package/lib/components/errorBlock/errorBlock.js +263 -0
- package/lib/components/errorBlock/index.d.ts +4 -0
- package/lib/components/errorBlock/index.js +44 -0
- package/lib/components/errorBlock/types.d.ts +25 -0
- package/lib/components/errorBlock/types.js +17 -0
- package/lib/components/flatList/flatList.d.ts +7 -0
- package/lib/components/flatList/flatList.js +533 -0
- package/lib/components/flatList/index.d.ts +4 -0
- package/lib/components/flatList/index.js +44 -0
- package/lib/components/flatList/scrollTargetMeasurement.d.ts +17 -0
- package/lib/components/flatList/scrollTargetMeasurement.h5.d.ts +3 -0
- package/lib/components/flatList/scrollTargetMeasurement.h5.js +43 -0
- package/lib/components/flatList/scrollTargetMeasurement.js +54 -0
- package/lib/components/flatList/types.d.ts +88 -0
- package/lib/components/flatList/types.js +17 -0
- package/lib/components/form/form.d.ts +5 -0
- package/lib/components/form/form.js +508 -0
- package/lib/components/form/index.d.ts +4 -0
- package/lib/components/form/index.js +44 -0
- package/lib/components/form/types.d.ts +156 -0
- package/lib/components/form/types.js +17 -0
- package/lib/components/grid/grid.d.ts +9 -0
- package/lib/components/grid/grid.js +259 -0
- package/lib/components/grid/index.d.ts +4 -0
- package/lib/components/grid/index.js +46 -0
- package/lib/components/grid/types.d.ts +53 -0
- package/lib/components/grid/types.js +17 -0
- package/lib/components/icon/aliases.d.ts +7 -0
- package/lib/components/icon/aliases.js +71 -0
- package/lib/components/icon/icon.d.ts +5 -0
- package/lib/components/icon/icon.js +130 -0
- package/lib/components/icon/index.d.ts +5 -0
- package/lib/components/icon/index.js +47 -0
- package/lib/components/icon/lucide.generated.d.ts +576 -0
- package/lib/components/icon/lucide.generated.js +1404 -0
- package/lib/components/icon/types.d.ts +36 -0
- package/lib/components/icon/types.js +17 -0
- package/lib/components/image/image.d.ts +11 -0
- package/lib/components/image/image.js +158 -0
- package/lib/components/image/index.d.ts +4 -0
- package/lib/components/image/index.js +44 -0
- package/lib/components/image/types.d.ts +48 -0
- package/lib/components/image/types.js +17 -0
- package/lib/components/input/index.d.ts +7 -0
- package/lib/components/input/index.js +34 -0
- package/lib/components/input/input.d.ts +10 -0
- package/lib/components/input/input.js +292 -0
- package/lib/components/input/style.css +9 -0
- package/lib/components/input/tokens.d.ts +27 -0
- package/lib/components/input/tokens.js +83 -0
- package/lib/components/input/types.d.ts +72 -0
- package/lib/components/input/types.js +17 -0
- package/lib/components/inputItem/index.d.ts +5 -0
- package/lib/components/inputItem/index.js +46 -0
- package/lib/components/inputItem/inputItem.d.ts +9 -0
- package/lib/components/inputItem/inputItem.js +413 -0
- package/lib/components/inputItem/tokens.d.ts +31 -0
- package/lib/components/inputItem/tokens.js +99 -0
- package/lib/components/inputItem/types.d.ts +66 -0
- package/lib/components/inputItem/types.js +17 -0
- package/lib/components/internal/index.d.ts +3 -0
- package/lib/components/internal/index.js +29 -0
- package/lib/components/internal/internal.d.ts +5 -0
- package/lib/components/internal/internal.js +85 -0
- package/lib/components/internal/selectionControl/presentation.d.ts +31 -0
- package/lib/components/internal/selectionControl/presentation.js +58 -0
- package/lib/components/internal/selectionControl/useTaroScrollIntoView.d.ts +19 -0
- package/lib/components/internal/selectionControl/useTaroScrollIntoView.js +78 -0
- package/lib/components/internal/selectionControl/useTaroSelectionIndicator.d.ts +22 -0
- package/lib/components/internal/selectionControl/useTaroSelectionIndicator.js +150 -0
- package/lib/components/internal/types.d.ts +10 -0
- package/lib/components/internal/types.js +17 -0
- package/lib/components/item/index.d.ts +4 -0
- package/lib/components/item/index.js +62 -0
- package/lib/components/item/item.d.ts +14 -0
- package/lib/components/item/item.js +460 -0
- package/lib/components/item/types.d.ts +58 -0
- package/lib/components/item/types.js +17 -0
- package/lib/components/kbd/index.d.ts +4 -0
- package/lib/components/kbd/index.js +46 -0
- package/lib/components/kbd/kbd.d.ts +6 -0
- package/lib/components/kbd/kbd.js +238 -0
- package/lib/components/kbd/types.d.ts +38 -0
- package/lib/components/kbd/types.js +17 -0
- package/lib/components/layout/index.d.ts +5 -0
- package/lib/components/layout/index.js +45 -0
- package/lib/components/layout/layout.d.ts +17 -0
- package/lib/components/layout/layout.js +239 -0
- package/lib/components/layout/types.d.ts +54 -0
- package/lib/components/layout/types.js +17 -0
- package/lib/components/list/index.d.ts +3 -0
- package/lib/components/list/index.js +31 -0
- package/lib/components/list/list.d.ts +9 -0
- package/lib/components/list/list.js +444 -0
- package/lib/components/list/types.d.ts +49 -0
- package/lib/components/list/types.js +17 -0
- package/lib/components/mask/index.d.ts +5 -0
- package/lib/components/mask/index.js +53 -0
- package/lib/components/mask/mask.d.ts +11 -0
- package/lib/components/mask/mask.js +156 -0
- package/lib/components/mask/tokens.d.ts +29 -0
- package/lib/components/mask/tokens.js +84 -0
- package/lib/components/mask/types.d.ts +49 -0
- package/lib/components/mask/types.js +17 -0
- package/lib/components/masonryList/index.d.ts +4 -0
- package/lib/components/masonryList/index.js +44 -0
- package/lib/components/masonryList/masonryList.d.ts +7 -0
- package/lib/components/masonryList/masonryList.js +479 -0
- package/lib/components/masonryList/types.d.ts +65 -0
- package/lib/components/masonryList/types.js +17 -0
- package/lib/components/menu/index.d.ts +4 -0
- package/lib/components/menu/index.js +44 -0
- package/lib/components/menu/menu.d.ts +5 -0
- package/lib/components/menu/menu.js +547 -0
- package/lib/components/menu/types.d.ts +79 -0
- package/lib/components/menu/types.js +17 -0
- package/lib/components/menubar/index.d.ts +4 -0
- package/lib/components/menubar/index.js +44 -0
- package/lib/components/menubar/menubar.d.ts +5 -0
- package/lib/components/menubar/menubar.js +800 -0
- package/lib/components/menubar/types.d.ts +71 -0
- package/lib/components/menubar/types.js +17 -0
- package/lib/components/modal/index.d.ts +5 -0
- package/lib/components/modal/index.js +51 -0
- package/lib/components/modal/modal.d.ts +11 -0
- package/lib/components/modal/modal.js +228 -0
- package/lib/components/modal/tokens.d.ts +37 -0
- package/lib/components/modal/tokens.js +122 -0
- package/lib/components/modal/types.d.ts +63 -0
- package/lib/components/modal/types.js +17 -0
- package/lib/components/navBar/index.d.ts +4 -0
- package/lib/components/navBar/index.js +44 -0
- package/lib/components/navBar/navBar.d.ts +11 -0
- package/lib/components/navBar/navBar.js +259 -0
- package/lib/components/navBar/types.d.ts +32 -0
- package/lib/components/navBar/types.js +17 -0
- package/lib/components/needWrap/index.d.ts +4 -0
- package/lib/components/needWrap/index.js +44 -0
- package/lib/components/needWrap/needWrap.d.ts +12 -0
- package/lib/components/needWrap/needWrap.js +58 -0
- package/lib/components/needWrap/types.d.ts +12 -0
- package/lib/components/needWrap/types.js +17 -0
- package/lib/components/notification/index.d.ts +5 -0
- package/lib/components/notification/index.js +57 -0
- package/lib/components/notification/notification.d.ts +13 -0
- package/lib/components/notification/notification.js +568 -0
- package/lib/components/notification/tokens.d.ts +43 -0
- package/lib/components/notification/tokens.js +129 -0
- package/lib/components/notification/types.d.ts +76 -0
- package/lib/components/notification/types.js +17 -0
- package/lib/components/pageIndicator/index.d.ts +4 -0
- package/lib/components/pageIndicator/index.js +44 -0
- package/lib/components/pageIndicator/pageIndicator.d.ts +5 -0
- package/lib/components/pageIndicator/pageIndicator.js +230 -0
- package/lib/components/pageIndicator/types.d.ts +51 -0
- package/lib/components/pageIndicator/types.js +17 -0
- package/lib/components/pagination/index.d.ts +4 -0
- package/lib/components/pagination/index.js +44 -0
- package/lib/components/pagination/pagination.d.ts +5 -0
- package/lib/components/pagination/pagination.js +460 -0
- package/lib/components/pagination/tokens.d.ts +36 -0
- package/lib/components/pagination/tokens.js +128 -0
- package/lib/components/pagination/types.d.ts +36 -0
- package/lib/components/pagination/types.js +17 -0
- package/lib/components/picker/index.d.ts +6 -0
- package/lib/components/picker/index.js +55 -0
- package/lib/components/picker/picker.d.ts +9 -0
- package/lib/components/picker/picker.js +573 -0
- package/lib/components/picker/shared.d.ts +16 -0
- package/lib/components/picker/shared.js +109 -0
- package/lib/components/picker/tokens.d.ts +43 -0
- package/lib/components/picker/tokens.js +94 -0
- package/lib/components/picker/types.d.ts +110 -0
- package/lib/components/picker/types.js +17 -0
- package/lib/components/pickerView/index.d.ts +4 -0
- package/lib/components/pickerView/index.js +41 -0
- package/lib/components/pickerView/pickerView.d.ts +9 -0
- package/lib/components/pickerView/pickerView.js +204 -0
- package/lib/components/pickerView/types.d.ts +30 -0
- package/lib/components/pickerView/types.js +17 -0
- package/lib/components/popconfirm/index.d.ts +4 -0
- package/lib/components/popconfirm/index.js +44 -0
- package/lib/components/popconfirm/popconfirm.d.ts +20 -0
- package/lib/components/popconfirm/popconfirm.js +448 -0
- package/lib/components/popconfirm/types.d.ts +91 -0
- package/lib/components/popconfirm/types.js +17 -0
- package/lib/components/popover/index.d.ts +5 -0
- package/lib/components/popover/index.js +41 -0
- package/lib/components/popover/popover.d.ts +5 -0
- package/lib/components/popover/popover.js +206 -0
- package/lib/components/popover/types.d.ts +51 -0
- package/lib/components/popover/types.js +17 -0
- package/lib/components/popup/index.d.ts +4 -0
- package/lib/components/popup/index.js +38 -0
- package/lib/components/popup/popup.d.ts +9 -0
- package/lib/components/popup/popup.js +239 -0
- package/lib/components/popup/tokens.d.ts +38 -0
- package/lib/components/popup/tokens.js +168 -0
- package/lib/components/popup/types.d.ts +61 -0
- package/lib/components/popup/types.js +17 -0
- package/lib/components/portal/index.d.ts +4 -0
- package/lib/components/portal/index.js +44 -0
- package/lib/components/portal/portal.d.ts +11 -0
- package/lib/components/portal/portal.h5.d.ts +5 -0
- package/lib/components/portal/portal.h5.js +84 -0
- package/lib/components/portal/portal.js +63 -0
- package/lib/components/portal/types.d.ts +25 -0
- package/lib/components/portal/types.js +17 -0
- package/lib/components/progress/index.d.ts +3 -0
- package/lib/components/progress/index.js +29 -0
- package/lib/components/progress/progress.d.ts +5 -0
- package/lib/components/progress/progress.js +182 -0
- package/lib/components/progress/types.d.ts +16 -0
- package/lib/components/progress/types.js +17 -0
- package/lib/components/progressBar/index.d.ts +3 -0
- package/lib/components/progressBar/index.js +29 -0
- package/lib/components/progressBar/progressBar.d.ts +6 -0
- package/lib/components/progressBar/progressBar.js +214 -0
- package/lib/components/progressBar/style.css +13 -0
- package/lib/components/progressBar/tokens.d.ts +18 -0
- package/lib/components/progressBar/tokens.js +75 -0
- package/lib/components/progressBar/types.d.ts +40 -0
- package/lib/components/progressBar/types.js +17 -0
- package/lib/components/provider/index.d.ts +4 -0
- package/lib/components/provider/index.js +44 -0
- package/lib/components/provider/provider.d.ts +5 -0
- package/lib/components/provider/provider.js +79 -0
- package/lib/components/provider/types.d.ts +33 -0
- package/lib/components/provider/types.js +17 -0
- package/lib/components/radio/index.d.ts +7 -0
- package/lib/components/radio/index.js +42 -0
- package/lib/components/radio/radio.d.ts +12 -0
- package/lib/components/radio/radio.js +240 -0
- package/lib/components/radio/tokens.d.ts +41 -0
- package/lib/components/radio/tokens.js +158 -0
- package/lib/components/radio/types.d.ts +66 -0
- package/lib/components/radio/types.js +17 -0
- package/lib/components/rate/index.d.ts +4 -0
- package/lib/components/rate/index.js +44 -0
- package/lib/components/rate/rate.d.ts +5 -0
- package/lib/components/rate/rate.js +221 -0
- package/lib/components/rate/types.d.ts +33 -0
- package/lib/components/rate/types.js +17 -0
- package/lib/components/result/index.d.ts +3 -0
- package/lib/components/result/index.js +29 -0
- package/lib/components/result/result.d.ts +5 -0
- package/lib/components/result/result.js +96 -0
- package/lib/components/result/types.d.ts +27 -0
- package/lib/components/result/types.js +17 -0
- package/lib/components/resultPage/index.d.ts +4 -0
- package/lib/components/resultPage/index.js +44 -0
- package/lib/components/resultPage/resultPage.d.ts +5 -0
- package/lib/components/resultPage/resultPage.js +365 -0
- package/lib/components/resultPage/types.d.ts +56 -0
- package/lib/components/resultPage/types.js +17 -0
- package/lib/components/rollingNumber/index.d.ts +4 -0
- package/lib/components/rollingNumber/index.js +44 -0
- package/lib/components/rollingNumber/rollingNumber.d.ts +5 -0
- package/lib/components/rollingNumber/rollingNumber.js +306 -0
- package/lib/components/rollingNumber/types.d.ts +40 -0
- package/lib/components/rollingNumber/types.js +17 -0
- package/lib/components/safeArea/index.d.ts +4 -0
- package/lib/components/safeArea/index.js +46 -0
- package/lib/components/safeArea/safeArea.d.ts +7 -0
- package/lib/components/safeArea/safeArea.js +101 -0
- package/lib/components/safeArea/types.d.ts +22 -0
- package/lib/components/safeArea/types.js +17 -0
- package/lib/components/scrollFade/index.d.ts +3 -0
- package/lib/components/scrollFade/index.js +40 -0
- package/lib/components/scrollFade/scrollFade.d.ts +15 -0
- package/lib/components/scrollFade/scrollFade.js +204 -0
- package/lib/components/scrollFade/types.d.ts +44 -0
- package/lib/components/scrollFade/types.js +17 -0
- package/lib/components/scrollView/index.d.ts +4 -0
- package/lib/components/scrollView/index.js +44 -0
- package/lib/components/scrollView/scrollView.d.ts +6 -0
- package/lib/components/scrollView/scrollView.js +297 -0
- package/lib/components/scrollView/style.css +7 -0
- package/lib/components/scrollView/types.d.ts +48 -0
- package/lib/components/scrollView/types.js +17 -0
- package/lib/components/searchBar/index.d.ts +5 -0
- package/lib/components/searchBar/index.js +46 -0
- package/lib/components/searchBar/searchBar.d.ts +9 -0
- package/lib/components/searchBar/searchBar.js +374 -0
- package/lib/components/searchBar/tokens.d.ts +40 -0
- package/lib/components/searchBar/tokens.js +102 -0
- package/lib/components/searchBar/types.d.ts +65 -0
- package/lib/components/searchBar/types.js +17 -0
- package/lib/components/sectionList/index.d.ts +4 -0
- package/lib/components/sectionList/index.js +44 -0
- package/lib/components/sectionList/sectionList.d.ts +8 -0
- package/lib/components/sectionList/sectionList.js +464 -0
- package/lib/components/sectionList/types.d.ts +64 -0
- package/lib/components/sectionList/types.js +17 -0
- package/lib/components/segmented/index.d.ts +4 -0
- package/lib/components/segmented/index.js +44 -0
- package/lib/components/segmented/segmented.d.ts +5 -0
- package/lib/components/segmented/segmented.js +309 -0
- package/lib/components/segmented/types.d.ts +61 -0
- package/lib/components/segmented/types.js +17 -0
- package/lib/components/select/index.d.ts +5 -0
- package/lib/components/select/index.js +48 -0
- package/lib/components/select/select.d.ts +11 -0
- package/lib/components/select/select.js +769 -0
- package/lib/components/select/tokens.d.ts +60 -0
- package/lib/components/select/tokens.js +152 -0
- package/lib/components/select/types.d.ts +79 -0
- package/lib/components/select/types.js +17 -0
- package/lib/components/sendCode/index.d.ts +5 -0
- package/lib/components/sendCode/index.js +46 -0
- package/lib/components/sendCode/sendCode.d.ts +12 -0
- package/lib/components/sendCode/sendCode.js +179 -0
- package/lib/components/sendCode/tokens.d.ts +13 -0
- package/lib/components/sendCode/tokens.js +37 -0
- package/lib/components/sendCode/types.d.ts +54 -0
- package/lib/components/sendCode/types.js +17 -0
- package/lib/components/shimmer/index.d.ts +3 -0
- package/lib/components/shimmer/index.js +40 -0
- package/lib/components/shimmer/shimmer.d.ts +21 -0
- package/lib/components/shimmer/shimmer.js +214 -0
- package/lib/components/shimmer/style.css +31 -0
- package/lib/components/shimmer/types.d.ts +34 -0
- package/lib/components/shimmer/types.js +17 -0
- package/lib/components/showMoreText/index.d.ts +4 -0
- package/lib/components/showMoreText/index.js +44 -0
- package/lib/components/showMoreText/showMoreText.d.ts +5 -0
- package/lib/components/showMoreText/showMoreText.js +329 -0
- package/lib/components/showMoreText/types.d.ts +33 -0
- package/lib/components/showMoreText/types.js +17 -0
- package/lib/components/sideBar/index.d.ts +5 -0
- package/lib/components/sideBar/index.js +49 -0
- package/lib/components/sideBar/sideBar.d.ts +8 -0
- package/lib/components/sideBar/sideBar.js +396 -0
- package/lib/components/sideBar/types.d.ts +40 -0
- package/lib/components/sideBar/types.js +17 -0
- package/lib/components/skeleton/index.d.ts +4 -0
- package/lib/components/skeleton/index.js +51 -0
- package/lib/components/skeleton/skeleton.d.ts +15 -0
- package/lib/components/skeleton/skeleton.js +364 -0
- package/lib/components/skeleton/style.css +16 -0
- package/lib/components/skeleton/types.d.ts +71 -0
- package/lib/components/skeleton/types.js +17 -0
- package/lib/components/slider/index.d.ts +5 -0
- package/lib/components/slider/index.js +46 -0
- package/lib/components/slider/slider.d.ts +10 -0
- package/lib/components/slider/slider.js +470 -0
- package/lib/components/slider/tokens.d.ts +33 -0
- package/lib/components/slider/tokens.js +90 -0
- package/lib/components/slider/types.d.ts +43 -0
- package/lib/components/slider/types.js +17 -0
- package/lib/components/sonner/index.d.ts +5 -0
- package/lib/components/sonner/index.js +45 -0
- package/lib/components/sonner/sonner.d.ts +35 -0
- package/lib/components/sonner/sonner.js +717 -0
- package/lib/components/sonner/style.css +67 -0
- package/lib/components/sonner/types.d.ts +119 -0
- package/lib/components/sonner/types.js +17 -0
- package/lib/components/space/index.d.ts +4 -0
- package/lib/components/space/index.js +46 -0
- package/lib/components/space/space.d.ts +15 -0
- package/lib/components/space/space.js +124 -0
- package/lib/components/space/types.d.ts +41 -0
- package/lib/components/space/types.js +17 -0
- package/lib/components/spin/index.d.ts +3 -0
- package/lib/components/spin/index.js +29 -0
- package/lib/components/spin/spin.d.ts +6 -0
- package/lib/components/spin/spin.js +188 -0
- package/lib/components/spin/style.css +13 -0
- package/lib/components/spin/types.d.ts +21 -0
- package/lib/components/spin/types.js +17 -0
- package/lib/components/spinner/index.d.ts +4 -0
- package/lib/components/spinner/index.js +44 -0
- package/lib/components/spinner/spinner.d.ts +12 -0
- package/lib/components/spinner/spinner.js +175 -0
- package/lib/components/spinner/style.css +11 -0
- package/lib/components/spinner/types.d.ts +33 -0
- package/lib/components/spinner/types.js +17 -0
- package/lib/components/stepper/index.d.ts +5 -0
- package/lib/components/stepper/index.js +46 -0
- package/lib/components/stepper/stepper.d.ts +10 -0
- package/lib/components/stepper/stepper.js +362 -0
- package/lib/components/stepper/style.css +13 -0
- package/lib/components/stepper/tokens.d.ts +36 -0
- package/lib/components/stepper/tokens.js +119 -0
- package/lib/components/stepper/types.d.ts +50 -0
- package/lib/components/stepper/types.js +17 -0
- package/lib/components/steps/index.d.ts +3 -0
- package/lib/components/steps/index.js +29 -0
- package/lib/components/steps/steps.d.ts +5 -0
- package/lib/components/steps/steps.js +259 -0
- package/lib/components/steps/types.d.ts +29 -0
- package/lib/components/steps/types.js +17 -0
- package/lib/components/swiper/index.d.ts +4 -0
- package/lib/components/swiper/index.js +46 -0
- package/lib/components/swiper/swiper.d.ts +6 -0
- package/lib/components/swiper/swiper.js +336 -0
- package/lib/components/swiper/types.d.ts +51 -0
- package/lib/components/swiper/types.js +17 -0
- package/lib/components/switch/index.d.ts +5 -0
- package/lib/components/switch/index.js +46 -0
- package/lib/components/switch/style.css +10 -0
- package/lib/components/switch/switch.d.ts +10 -0
- package/lib/components/switch/switch.js +292 -0
- package/lib/components/switch/tokens.d.ts +33 -0
- package/lib/components/switch/tokens.js +90 -0
- package/lib/components/switch/types.d.ts +42 -0
- package/lib/components/switch/types.js +17 -0
- package/lib/components/tabBar/index.d.ts +4 -0
- package/lib/components/tabBar/index.js +43 -0
- package/lib/components/tabBar/tabBar.d.ts +12 -0
- package/lib/components/tabBar/tabBar.js +429 -0
- package/lib/components/tabBar/types.d.ts +46 -0
- package/lib/components/tabBar/types.js +17 -0
- package/lib/components/table/index.d.ts +4 -0
- package/lib/components/table/index.js +44 -0
- package/lib/components/table/table.d.ts +13 -0
- package/lib/components/table/table.js +1983 -0
- package/lib/components/table/types.d.ts +272 -0
- package/lib/components/table/types.js +17 -0
- package/lib/components/tabs/index.d.ts +3 -0
- package/lib/components/tabs/index.js +33 -0
- package/lib/components/tabs/tabs.d.ts +16 -0
- package/lib/components/tabs/tabs.js +785 -0
- package/lib/components/tabs/types.d.ts +124 -0
- package/lib/components/tabs/types.js +17 -0
- package/lib/components/tag/index.d.ts +7 -0
- package/lib/components/tag/index.js +42 -0
- package/lib/components/tag/tag.d.ts +17 -0
- package/lib/components/tag/tag.js +527 -0
- package/lib/components/tag/tokens.d.ts +43 -0
- package/lib/components/tag/tokens.js +155 -0
- package/lib/components/tag/types.d.ts +107 -0
- package/lib/components/tag/types.js +17 -0
- package/lib/components/text/index.d.ts +4 -0
- package/lib/components/text/index.js +44 -0
- package/lib/components/text/text.d.ts +5 -0
- package/lib/components/text/text.js +220 -0
- package/lib/components/text/types.d.ts +50 -0
- package/lib/components/text/types.js +17 -0
- package/lib/components/textInput/index.d.ts +4 -0
- package/lib/components/textInput/index.js +44 -0
- package/lib/components/textInput/style.css +37 -0
- package/lib/components/textInput/textInput.d.ts +10 -0
- package/lib/components/textInput/textInput.js +361 -0
- package/lib/components/textInput/types.d.ts +79 -0
- package/lib/components/textInput/types.js +17 -0
- package/lib/components/textarea/index.d.ts +5 -0
- package/lib/components/textarea/index.js +48 -0
- package/lib/components/textarea/style.css +32 -0
- package/lib/components/textarea/textarea.d.ts +10 -0
- package/lib/components/textarea/textarea.js +375 -0
- package/lib/components/textarea/tokens.d.ts +29 -0
- package/lib/components/textarea/tokens.js +115 -0
- package/lib/components/textarea/types.d.ts +120 -0
- package/lib/components/textarea/types.js +17 -0
- package/lib/components/toast/index.d.ts +4 -0
- package/lib/components/toast/index.js +42 -0
- package/lib/components/toast/style.css +9 -0
- package/lib/components/toast/toast.d.ts +21 -0
- package/lib/components/toast/toast.js +329 -0
- package/lib/components/toast/tokens.d.ts +48 -0
- package/lib/components/toast/tokens.js +174 -0
- package/lib/components/toast/types.d.ts +47 -0
- package/lib/components/toast/types.js +17 -0
- package/lib/components/tooltip/index.d.ts +5 -0
- package/lib/components/tooltip/index.js +46 -0
- package/lib/components/tooltip/tokens.d.ts +32 -0
- package/lib/components/tooltip/tokens.js +81 -0
- package/lib/components/tooltip/tooltip.d.ts +28 -0
- package/lib/components/tooltip/tooltip.js +537 -0
- package/lib/components/tooltip/types.d.ts +75 -0
- package/lib/components/tooltip/types.js +17 -0
- package/lib/components/touchableOpacity/index.d.ts +4 -0
- package/lib/components/touchableOpacity/index.js +44 -0
- package/lib/components/touchableOpacity/touchableOpacity.d.ts +5 -0
- package/lib/components/touchableOpacity/touchableOpacity.js +207 -0
- package/lib/components/touchableOpacity/types.d.ts +34 -0
- package/lib/components/touchableOpacity/types.js +17 -0
- package/lib/components/transfer/index.d.ts +4 -0
- package/lib/components/transfer/index.js +44 -0
- package/lib/components/transfer/tokens.d.ts +17 -0
- package/lib/components/transfer/tokens.js +59 -0
- package/lib/components/transfer/transfer.d.ts +5 -0
- package/lib/components/transfer/transfer.js +662 -0
- package/lib/components/transfer/types.d.ts +59 -0
- package/lib/components/transfer/types.js +17 -0
- package/lib/components/treeSelect/index.d.ts +4 -0
- package/lib/components/treeSelect/index.js +44 -0
- package/lib/components/treeSelect/style.css +11 -0
- package/lib/components/treeSelect/tokens.d.ts +16 -0
- package/lib/components/treeSelect/tokens.js +47 -0
- package/lib/components/treeSelect/treeSelect.d.ts +6 -0
- package/lib/components/treeSelect/treeSelect.js +781 -0
- package/lib/components/treeSelect/types.d.ts +61 -0
- package/lib/components/treeSelect/types.js +17 -0
- package/lib/components/typography/index.d.ts +4 -0
- package/lib/components/typography/index.js +41 -0
- package/lib/components/typography/style.css +3 -0
- package/lib/components/typography/types.d.ts +68 -0
- package/lib/components/typography/types.js +17 -0
- package/lib/components/typography/typography.d.ts +2 -0
- package/lib/components/typography/typography.js +247 -0
- package/lib/components/view/index.d.ts +4 -0
- package/lib/components/view/index.js +44 -0
- package/lib/components/view/observeLayout.d.ts +2 -0
- package/lib/components/view/observeLayout.h5.d.ts +2 -0
- package/lib/components/view/observeLayout.h5.js +35 -0
- package/lib/components/view/observeLayout.js +31 -0
- package/lib/components/view/types.d.ts +81 -0
- package/lib/components/view/types.js +17 -0
- package/lib/components/view/view.d.ts +5 -0
- package/lib/components/view/view.js +166 -0
- package/lib/components/withDivider/index.d.ts +4 -0
- package/lib/components/withDivider/index.js +48 -0
- package/lib/components/withDivider/types.d.ts +56 -0
- package/lib/components/withDivider/types.js +17 -0
- package/lib/components/withDivider/withDivider.d.ts +6 -0
- package/lib/components/withDivider/withDivider.js +181 -0
- package/lib/index.d.ts +117 -0
- package/lib/index.js +251 -0
- package/lib/patterns/fieldControl/index.d.ts +36 -0
- package/lib/patterns/fieldControl/index.js +58 -0
- package/lib/patterns/index.d.ts +8 -0
- package/lib/patterns/index.js +29 -0
- package/lib/patterns/listItem/index.d.ts +30 -0
- package/lib/patterns/listItem/index.js +45 -0
- package/lib/patterns/overlay/index.d.ts +25 -0
- package/lib/patterns/overlay/index.js +156 -0
- package/lib/patterns/overlay/types.d.ts +38 -0
- package/lib/patterns/overlay/types.js +17 -0
- package/lib/patterns/overlay/useOverlayTransition.d.ts +6 -0
- package/lib/patterns/overlay/useOverlayTransition.js +61 -0
- package/lib/patterns/pickerColumns/WheelPicker.d.ts +32 -0
- package/lib/patterns/pickerColumns/WheelPicker.js +383 -0
- package/lib/patterns/pickerColumns/index.d.ts +38 -0
- package/lib/patterns/pickerColumns/index.js +84 -0
- package/lib/patterns/pressable/index.d.ts +47 -0
- package/lib/patterns/pressable/index.js +108 -0
- package/lib/taro-components.d.ts +51 -0
- package/lib/theme/default-theme.d.ts +28 -0
- package/lib/theme/default-theme.js +139 -0
- package/lib/theme/generated/design-system.generated.d.ts +1486 -0
- package/lib/theme/generated/design-system.generated.js +1522 -0
- package/lib/theme/hooks/useTheme.d.ts +5 -0
- package/lib/theme/hooks/useTheme.js +37 -0
- package/lib/theme/hooks/useToken.d.ts +408 -0
- package/lib/theme/hooks/useToken.js +109 -0
- package/lib/theme/index.d.ts +18 -0
- package/lib/theme/index.js +182 -0
- package/lib/theme/listTypography.d.ts +44 -0
- package/lib/theme/listTypography.js +107 -0
- package/lib/theme/runtime/ThemeProvider.d.ts +30 -0
- package/lib/theme/runtime/ThemeProvider.js +278 -0
- package/lib/theme/runtime/componentTokens.d.ts +10 -0
- package/lib/theme/runtime/componentTokens.js +578 -0
- package/lib/theme/runtime/cssVariables.d.ts +28 -0
- package/lib/theme/runtime/cssVariables.js +213 -0
- package/lib/theme/runtime/slotOverrides.d.ts +35 -0
- package/lib/theme/runtime/slotOverrides.js +76 -0
- package/lib/theme/selectionControl.d.ts +126 -0
- package/lib/theme/selectionControl.js +151 -0
- package/lib/theme/types.d.ts +94 -0
- package/lib/theme/types.js +17 -0
- package/lib/theme/typography.d.ts +88 -0
- package/lib/theme/typography.js +61 -0
- package/lib/utils/iconSlot.d.ts +3 -0
- package/lib/utils/iconSlot.js +39 -0
- package/lib/utils/index.d.ts +50 -0
- package/lib/utils/index.js +109 -0
- package/lib/utils/inlineAlignment.d.ts +12 -0
- package/lib/utils/inlineAlignment.js +51 -0
- package/lib/utils/locale.d.ts +3 -0
- package/lib/utils/locale.js +34 -0
- package/lib/utils/resolveThemeColor.d.ts +6 -0
- package/lib/utils/resolveThemeColor.js +38 -0
- package/lib/utils/style.d.ts +8 -0
- package/lib/utils/style.js +81 -0
- package/lib/utils/taroProps.d.ts +20 -0
- package/lib/utils/taroProps.js +72 -0
- package/package.json +95 -0
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
7
|
+
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."); }
|
|
8
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
9
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
|
+
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); }
|
|
11
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
12
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
13
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
14
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
17
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
18
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
19
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
+
/**
|
|
21
|
+
* Slider Component
|
|
22
|
+
* Cross-platform single/range slider aligned with x-mobile-ui.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
import React, { useCallback, useEffect, useId, useMemo, useRef, useState } from 'react';
|
|
26
|
+
import { View, Text, Slider as TaroSlider } from '@tarojs/components';
|
|
27
|
+
import { measureNode } from "../../adapters/miniapp";
|
|
28
|
+
import { classNames } from "../../utils";
|
|
29
|
+
import { useSliderTokens, useSliderColors } from "./tokens";
|
|
30
|
+
import { useConfigProvider } from "../configProvider";
|
|
31
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
32
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
34
|
+
var getStepPrecision = function getStepPrecision(step) {
|
|
35
|
+
var _decimalPart$length;
|
|
36
|
+
var decimalPart = String(step).split('.')[1];
|
|
37
|
+
return (_decimalPart$length = decimalPart === null || decimalPart === void 0 ? void 0 : decimalPart.length) !== null && _decimalPart$length !== void 0 ? _decimalPart$length : 0;
|
|
38
|
+
};
|
|
39
|
+
export var normalizeSliderValue = function normalizeSliderValue(value, min, max, step) {
|
|
40
|
+
var safeStep = step > 0 ? step : 1;
|
|
41
|
+
var precision = getStepPrecision(safeStep);
|
|
42
|
+
var steppedValue = min + Math.round((value - min) / safeStep) * safeStep;
|
|
43
|
+
return Number(Math.min(max, Math.max(min, steppedValue)).toFixed(precision));
|
|
44
|
+
};
|
|
45
|
+
var normalizeRangeValue = function normalizeRangeValue(value, min, max, step) {
|
|
46
|
+
var source = Array.isArray(value) ? value : [min, typeof value === 'number' ? value : min];
|
|
47
|
+
var first = normalizeSliderValue(source[0], min, max, step);
|
|
48
|
+
var second = normalizeSliderValue(source[1], min, max, step);
|
|
49
|
+
return first <= second ? [first, second] : [second, first];
|
|
50
|
+
};
|
|
51
|
+
var valuesEqual = function valuesEqual(left, right) {
|
|
52
|
+
return Array.isArray(left) && Array.isArray(right) ? left[0] === right[0] && left[1] === right[1] : left === right;
|
|
53
|
+
};
|
|
54
|
+
var percentageOf = function percentageOf(value, min, max) {
|
|
55
|
+
return max === min ? 0 : (value - min) / (max - min) * 100;
|
|
56
|
+
};
|
|
57
|
+
var getClientX = function getClientX(event) {
|
|
58
|
+
var _event$touches$, _event$touches, _event$changedTouches, _ref, _touch$clientX, _event$detail;
|
|
59
|
+
var touch = (_event$touches$ = event === null || event === void 0 || (_event$touches = event.touches) === null || _event$touches === void 0 ? void 0 : _event$touches[0]) !== null && _event$touches$ !== void 0 ? _event$touches$ : event === null || event === void 0 || (_event$changedTouches = event.changedTouches) === null || _event$changedTouches === void 0 ? void 0 : _event$changedTouches[0];
|
|
60
|
+
var value = (_ref = (_touch$clientX = touch === null || touch === void 0 ? void 0 : touch.clientX) !== null && _touch$clientX !== void 0 ? _touch$clientX : event === null || event === void 0 || (_event$detail = event.detail) === null || _event$detail === void 0 ? void 0 : _event$detail.x) !== null && _ref !== void 0 ? _ref : event === null || event === void 0 ? void 0 : event.clientX;
|
|
61
|
+
return typeof value === 'number' ? value : null;
|
|
62
|
+
};
|
|
63
|
+
export var Slider = function Slider(_ref2) {
|
|
64
|
+
var _rangeValue$, _ref9, _rangeValue$2;
|
|
65
|
+
var value = _ref2.value,
|
|
66
|
+
defaultValue = _ref2.defaultValue,
|
|
67
|
+
_ref2$min = _ref2.min,
|
|
68
|
+
min = _ref2$min === void 0 ? 0 : _ref2$min,
|
|
69
|
+
_ref2$max = _ref2.max,
|
|
70
|
+
max = _ref2$max === void 0 ? 100 : _ref2$max,
|
|
71
|
+
_ref2$step = _ref2.step,
|
|
72
|
+
step = _ref2$step === void 0 ? 1 : _ref2$step,
|
|
73
|
+
_ref2$disabled = _ref2.disabled,
|
|
74
|
+
disabledProp = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
75
|
+
marks = _ref2.marks,
|
|
76
|
+
sizeProp = _ref2.size,
|
|
77
|
+
_ref2$variant = _ref2.variant,
|
|
78
|
+
variant = _ref2$variant === void 0 ? 'default' : _ref2$variant,
|
|
79
|
+
onChange = _ref2.onChange,
|
|
80
|
+
onAfterChange = _ref2.onAfterChange,
|
|
81
|
+
_ref2$range = _ref2.range,
|
|
82
|
+
range = _ref2$range === void 0 ? false : _ref2$range,
|
|
83
|
+
prefix = _ref2.prefix,
|
|
84
|
+
suffix = _ref2.suffix,
|
|
85
|
+
_ref2$ticks = _ref2.ticks,
|
|
86
|
+
ticks = _ref2$ticks === void 0 ? false : _ref2$ticks,
|
|
87
|
+
className = _ref2.className,
|
|
88
|
+
style = _ref2.style,
|
|
89
|
+
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
90
|
+
ariaLabel = _ref2$ariaLabel === void 0 ? '滑块' : _ref2$ariaLabel,
|
|
91
|
+
_ref2$testID = _ref2.testID,
|
|
92
|
+
testID = _ref2$testID === void 0 ? 'slider' : _ref2$testID;
|
|
93
|
+
var config = useConfigProvider();
|
|
94
|
+
var size = sizeProp !== null && sizeProp !== void 0 ? sizeProp : config.size;
|
|
95
|
+
var disabled = Boolean(disabledProp || config.disabled);
|
|
96
|
+
var initialValue = range ? normalizeRangeValue(defaultValue, min, max, step) : normalizeSliderValue(Array.isArray(defaultValue) ? defaultValue[0] : defaultValue !== null && defaultValue !== void 0 ? defaultValue : min, min, max, step);
|
|
97
|
+
var _useState = useState(initialValue),
|
|
98
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
99
|
+
internalValue = _useState2[0],
|
|
100
|
+
setInternalValue = _useState2[1];
|
|
101
|
+
var reactId = useId();
|
|
102
|
+
var trackId = useMemo(function () {
|
|
103
|
+
return "x-slider-track-".concat(reactId.replace(/:/g, ''));
|
|
104
|
+
}, [reactId]);
|
|
105
|
+
var trackRectRef = useRef(null);
|
|
106
|
+
var activeRangeIndexRef = useRef(null);
|
|
107
|
+
var suppressClickRef = useRef(false);
|
|
108
|
+
var lastSingleNativeCommitAtRef = useRef(0);
|
|
109
|
+
var isControlled = value !== undefined;
|
|
110
|
+
var rawValue = isControlled ? value : internalValue;
|
|
111
|
+
var currentValue = range ? normalizeRangeValue(rawValue, min, max, step) : normalizeSliderValue(Array.isArray(rawValue) ? rawValue[0] : rawValue, min, max, step);
|
|
112
|
+
var latestValueRef = useRef(currentValue);
|
|
113
|
+
useEffect(function () {
|
|
114
|
+
latestValueRef.current = currentValue;
|
|
115
|
+
}, [currentValue]);
|
|
116
|
+
var tokens = useSliderTokens(size);
|
|
117
|
+
var sliderColors = useSliderColors(variant);
|
|
118
|
+
var emitChange = useCallback(function (nextValue) {
|
|
119
|
+
latestValueRef.current = nextValue;
|
|
120
|
+
if (!isControlled) {
|
|
121
|
+
setInternalValue(nextValue);
|
|
122
|
+
}
|
|
123
|
+
onChange === null || onChange === void 0 || onChange(nextValue);
|
|
124
|
+
}, [isControlled, onChange]);
|
|
125
|
+
var handleSingleChanging = useCallback(function (event) {
|
|
126
|
+
if (disabled) return;
|
|
127
|
+
emitChange(normalizeSliderValue(event.detail.value, min, max, step));
|
|
128
|
+
}, [disabled, emitChange, max, min, step]);
|
|
129
|
+
var handleSingleCommit = useCallback(function (event) {
|
|
130
|
+
if (disabled) return;
|
|
131
|
+
lastSingleNativeCommitAtRef.current = Date.now();
|
|
132
|
+
var nextValue = normalizeSliderValue(event.detail.value, min, max, step);
|
|
133
|
+
if (!valuesEqual(latestValueRef.current, nextValue)) {
|
|
134
|
+
emitChange(nextValue);
|
|
135
|
+
}
|
|
136
|
+
onAfterChange === null || onAfterChange === void 0 || onAfterChange(nextValue);
|
|
137
|
+
}, [disabled, emitChange, max, min, onAfterChange, step]);
|
|
138
|
+
var updateSingleAt = useCallback(function (clientX, rect) {
|
|
139
|
+
if (rect.width <= 0) return null;
|
|
140
|
+
var percentage = Math.max(0, Math.min(1, (clientX - rect.left) / rect.width));
|
|
141
|
+
var nextValue = normalizeSliderValue(min + percentage * (max - min), min, max, step);
|
|
142
|
+
if (!valuesEqual(latestValueRef.current, nextValue)) {
|
|
143
|
+
emitChange(nextValue);
|
|
144
|
+
}
|
|
145
|
+
return nextValue;
|
|
146
|
+
}, [emitChange, max, min, step]);
|
|
147
|
+
var updateRangeAt = useCallback(function (clientX, rect, index) {
|
|
148
|
+
var percentage = Math.max(0, Math.min(1, (clientX - rect.left) / rect.width));
|
|
149
|
+
var pointerValue = normalizeSliderValue(min + percentage * (max - min), min, max, step);
|
|
150
|
+
var _ref3 = latestValueRef.current,
|
|
151
|
+
_ref4 = _slicedToArray(_ref3, 2),
|
|
152
|
+
start = _ref4[0],
|
|
153
|
+
end = _ref4[1];
|
|
154
|
+
var targetIndex = index !== null && index !== void 0 ? index : Math.abs(pointerValue - start) <= Math.abs(pointerValue - end) ? 0 : 1;
|
|
155
|
+
var nextValue = targetIndex === 0 ? [Math.min(pointerValue, end), end] : [start, Math.max(pointerValue, start)];
|
|
156
|
+
if (!valuesEqual(latestValueRef.current, nextValue)) {
|
|
157
|
+
emitChange(nextValue);
|
|
158
|
+
}
|
|
159
|
+
return targetIndex;
|
|
160
|
+
}, [emitChange, max, min, step]);
|
|
161
|
+
var measureTrack = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
162
|
+
var rect;
|
|
163
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
164
|
+
while (1) switch (_context.prev = _context.next) {
|
|
165
|
+
case 0:
|
|
166
|
+
_context.next = 2;
|
|
167
|
+
return measureNode("#".concat(trackId));
|
|
168
|
+
case 2:
|
|
169
|
+
rect = _context.sent;
|
|
170
|
+
trackRectRef.current = rect;
|
|
171
|
+
return _context.abrupt("return", rect);
|
|
172
|
+
case 5:
|
|
173
|
+
case "end":
|
|
174
|
+
return _context.stop();
|
|
175
|
+
}
|
|
176
|
+
}, _callee);
|
|
177
|
+
})), [trackId]);
|
|
178
|
+
var handleRangeTouchStart = useCallback( /*#__PURE__*/function () {
|
|
179
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(event) {
|
|
180
|
+
var _trackRectRef$current;
|
|
181
|
+
var clientX, rect;
|
|
182
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
183
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
184
|
+
case 0:
|
|
185
|
+
if (!disabled) {
|
|
186
|
+
_context2.next = 2;
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
return _context2.abrupt("return");
|
|
190
|
+
case 2:
|
|
191
|
+
clientX = getClientX(event);
|
|
192
|
+
if (!(clientX === null)) {
|
|
193
|
+
_context2.next = 5;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
return _context2.abrupt("return");
|
|
197
|
+
case 5:
|
|
198
|
+
if (!((_trackRectRef$current = trackRectRef.current) !== null && _trackRectRef$current !== void 0)) {
|
|
199
|
+
_context2.next = 9;
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
_context2.t0 = _trackRectRef$current;
|
|
203
|
+
_context2.next = 12;
|
|
204
|
+
break;
|
|
205
|
+
case 9:
|
|
206
|
+
_context2.next = 11;
|
|
207
|
+
return measureTrack();
|
|
208
|
+
case 11:
|
|
209
|
+
_context2.t0 = _context2.sent;
|
|
210
|
+
case 12:
|
|
211
|
+
rect = _context2.t0;
|
|
212
|
+
if (!(!rect || rect.width <= 0)) {
|
|
213
|
+
_context2.next = 15;
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
return _context2.abrupt("return");
|
|
217
|
+
case 15:
|
|
218
|
+
activeRangeIndexRef.current = updateRangeAt(clientX, rect);
|
|
219
|
+
suppressClickRef.current = true;
|
|
220
|
+
case 17:
|
|
221
|
+
case "end":
|
|
222
|
+
return _context2.stop();
|
|
223
|
+
}
|
|
224
|
+
}, _callee2);
|
|
225
|
+
}));
|
|
226
|
+
return function (_x) {
|
|
227
|
+
return _ref6.apply(this, arguments);
|
|
228
|
+
};
|
|
229
|
+
}(), [disabled, measureTrack, updateRangeAt]);
|
|
230
|
+
var handleRangeTouchMove = useCallback(function (event) {
|
|
231
|
+
if (disabled || activeRangeIndexRef.current === null || !trackRectRef.current) return;
|
|
232
|
+
var clientX = getClientX(event);
|
|
233
|
+
if (clientX === null) return;
|
|
234
|
+
updateRangeAt(clientX, trackRectRef.current, activeRangeIndexRef.current);
|
|
235
|
+
}, [disabled, updateRangeAt]);
|
|
236
|
+
var handleRangeTouchEnd = useCallback(function (event) {
|
|
237
|
+
if (disabled || activeRangeIndexRef.current === null) return;
|
|
238
|
+
var clientX = getClientX(event);
|
|
239
|
+
if (clientX !== null && trackRectRef.current) {
|
|
240
|
+
updateRangeAt(clientX, trackRectRef.current, activeRangeIndexRef.current);
|
|
241
|
+
}
|
|
242
|
+
activeRangeIndexRef.current = null;
|
|
243
|
+
onAfterChange === null || onAfterChange === void 0 || onAfterChange(latestValueRef.current);
|
|
244
|
+
}, [disabled, onAfterChange, updateRangeAt]);
|
|
245
|
+
var handleRangeClick = useCallback( /*#__PURE__*/function () {
|
|
246
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(event) {
|
|
247
|
+
var _trackRectRef$current2;
|
|
248
|
+
var clientX, rect;
|
|
249
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
250
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
251
|
+
case 0:
|
|
252
|
+
if (!disabled) {
|
|
253
|
+
_context3.next = 2;
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
return _context3.abrupt("return");
|
|
257
|
+
case 2:
|
|
258
|
+
if (!suppressClickRef.current) {
|
|
259
|
+
_context3.next = 5;
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
suppressClickRef.current = false;
|
|
263
|
+
return _context3.abrupt("return");
|
|
264
|
+
case 5:
|
|
265
|
+
clientX = getClientX(event);
|
|
266
|
+
if (!(clientX === null)) {
|
|
267
|
+
_context3.next = 8;
|
|
268
|
+
break;
|
|
269
|
+
}
|
|
270
|
+
return _context3.abrupt("return");
|
|
271
|
+
case 8:
|
|
272
|
+
if (!((_trackRectRef$current2 = trackRectRef.current) !== null && _trackRectRef$current2 !== void 0)) {
|
|
273
|
+
_context3.next = 12;
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
_context3.t0 = _trackRectRef$current2;
|
|
277
|
+
_context3.next = 15;
|
|
278
|
+
break;
|
|
279
|
+
case 12:
|
|
280
|
+
_context3.next = 14;
|
|
281
|
+
return measureTrack();
|
|
282
|
+
case 14:
|
|
283
|
+
_context3.t0 = _context3.sent;
|
|
284
|
+
case 15:
|
|
285
|
+
rect = _context3.t0;
|
|
286
|
+
if (!(!rect || rect.width <= 0)) {
|
|
287
|
+
_context3.next = 18;
|
|
288
|
+
break;
|
|
289
|
+
}
|
|
290
|
+
return _context3.abrupt("return");
|
|
291
|
+
case 18:
|
|
292
|
+
updateRangeAt(clientX, rect);
|
|
293
|
+
onAfterChange === null || onAfterChange === void 0 || onAfterChange(latestValueRef.current);
|
|
294
|
+
case 20:
|
|
295
|
+
case "end":
|
|
296
|
+
return _context3.stop();
|
|
297
|
+
}
|
|
298
|
+
}, _callee3);
|
|
299
|
+
}));
|
|
300
|
+
return function (_x2) {
|
|
301
|
+
return _ref7.apply(this, arguments);
|
|
302
|
+
};
|
|
303
|
+
}(), [disabled, measureTrack, onAfterChange, updateRangeAt]);
|
|
304
|
+
var handleSingleTrackClick = useCallback( /*#__PURE__*/function () {
|
|
305
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(event) {
|
|
306
|
+
var _trackRectRef$current3;
|
|
307
|
+
var clientX, rect, nextValue;
|
|
308
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
309
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
310
|
+
case 0:
|
|
311
|
+
if (!disabled) {
|
|
312
|
+
_context4.next = 2;
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
return _context4.abrupt("return");
|
|
316
|
+
case 2:
|
|
317
|
+
if (!(Date.now() - lastSingleNativeCommitAtRef.current < 250)) {
|
|
318
|
+
_context4.next = 4;
|
|
319
|
+
break;
|
|
320
|
+
}
|
|
321
|
+
return _context4.abrupt("return");
|
|
322
|
+
case 4:
|
|
323
|
+
clientX = getClientX(event);
|
|
324
|
+
if (!(clientX === null)) {
|
|
325
|
+
_context4.next = 7;
|
|
326
|
+
break;
|
|
327
|
+
}
|
|
328
|
+
return _context4.abrupt("return");
|
|
329
|
+
case 7:
|
|
330
|
+
if (!((_trackRectRef$current3 = trackRectRef.current) !== null && _trackRectRef$current3 !== void 0)) {
|
|
331
|
+
_context4.next = 11;
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
_context4.t0 = _trackRectRef$current3;
|
|
335
|
+
_context4.next = 14;
|
|
336
|
+
break;
|
|
337
|
+
case 11:
|
|
338
|
+
_context4.next = 13;
|
|
339
|
+
return measureTrack();
|
|
340
|
+
case 13:
|
|
341
|
+
_context4.t0 = _context4.sent;
|
|
342
|
+
case 14:
|
|
343
|
+
rect = _context4.t0;
|
|
344
|
+
if (rect) {
|
|
345
|
+
_context4.next = 17;
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
return _context4.abrupt("return");
|
|
349
|
+
case 17:
|
|
350
|
+
nextValue = updateSingleAt(clientX, rect);
|
|
351
|
+
if (nextValue !== null) {
|
|
352
|
+
onAfterChange === null || onAfterChange === void 0 || onAfterChange(nextValue);
|
|
353
|
+
}
|
|
354
|
+
case 19:
|
|
355
|
+
case "end":
|
|
356
|
+
return _context4.stop();
|
|
357
|
+
}
|
|
358
|
+
}, _callee4);
|
|
359
|
+
}));
|
|
360
|
+
return function (_x3) {
|
|
361
|
+
return _ref8.apply(this, arguments);
|
|
362
|
+
};
|
|
363
|
+
}(), [disabled, measureTrack, onAfterChange, updateSingleAt]);
|
|
364
|
+
var rangeValue = range ? currentValue : null;
|
|
365
|
+
var scalarValue = range ? null : currentValue;
|
|
366
|
+
var startPercentage = percentageOf((_rangeValue$ = rangeValue === null || rangeValue === void 0 ? void 0 : rangeValue[0]) !== null && _rangeValue$ !== void 0 ? _rangeValue$ : min, min, max);
|
|
367
|
+
var endPercentage = percentageOf((_ref9 = (_rangeValue$2 = rangeValue === null || rangeValue === void 0 ? void 0 : rangeValue[1]) !== null && _rangeValue$2 !== void 0 ? _rangeValue$2 : scalarValue) !== null && _ref9 !== void 0 ? _ref9 : min, min, max);
|
|
368
|
+
var markEntries = Object.entries(_typeof(ticks) === 'object' ? ticks : marks !== null && marks !== void 0 ? marks : {}).map(function (_ref10) {
|
|
369
|
+
var _ref11 = _slicedToArray(_ref10, 2),
|
|
370
|
+
markValue = _ref11[0],
|
|
371
|
+
label = _ref11[1];
|
|
372
|
+
return {
|
|
373
|
+
value: Number(markValue),
|
|
374
|
+
label: label
|
|
375
|
+
};
|
|
376
|
+
});
|
|
377
|
+
var generatedTicks = ticks === true && step > 0 && Math.floor((max - min) / step) <= 200 ? Array.from({
|
|
378
|
+
length: Math.floor((max - min) / step) + 1
|
|
379
|
+
}, function (_, index) {
|
|
380
|
+
return min + index * step;
|
|
381
|
+
}) : [];
|
|
382
|
+
var tickValues = Array.from(new Set([].concat(_toConsumableArray(generatedTicks), _toConsumableArray(markEntries.map(function (entry) {
|
|
383
|
+
return entry.value;
|
|
384
|
+
})))));
|
|
385
|
+
var hasLabels = markEntries.some(function (entry) {
|
|
386
|
+
return entry.label !== undefined && entry.label !== null;
|
|
387
|
+
});
|
|
388
|
+
var containerStyle = _objectSpread({
|
|
389
|
+
display: 'flex',
|
|
390
|
+
flexDirection: 'row',
|
|
391
|
+
alignItems: 'center',
|
|
392
|
+
gap: tokens.gap,
|
|
393
|
+
opacity: disabled ? 0.5 : 1
|
|
394
|
+
}, style);
|
|
395
|
+
var thumbStyle = function thumbStyle(valuePosition) {
|
|
396
|
+
return {
|
|
397
|
+
position: 'absolute',
|
|
398
|
+
zIndex: 3,
|
|
399
|
+
top: tokens.thumbSize / 2,
|
|
400
|
+
left: "".concat(percentageOf(valuePosition, min, max), "%"),
|
|
401
|
+
width: tokens.thumbSize,
|
|
402
|
+
height: tokens.thumbSize,
|
|
403
|
+
boxSizing: 'border-box',
|
|
404
|
+
borderRadius: tokens.thumbRadius,
|
|
405
|
+
borderWidth: 2,
|
|
406
|
+
borderStyle: 'solid',
|
|
407
|
+
borderColor: sliderColors.thumbBorder,
|
|
408
|
+
backgroundColor: sliderColors.thumb,
|
|
409
|
+
boxShadow: tokens.thumbShadow,
|
|
410
|
+
transform: 'translate(-50%, -50%)',
|
|
411
|
+
pointerEvents: 'none'
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
415
|
+
className: classNames("".concat(config.prefixCls, "-slider"), "".concat(config.prefixCls, "-slider--").concat(size), "".concat(config.prefixCls, "-slider--").concat(variant), range && "".concat(config.prefixCls, "-slider--range"), disabled && "".concat(config.prefixCls, "-slider--disabled"), className),
|
|
416
|
+
style: containerStyle,
|
|
417
|
+
role: range ? 'group' : 'slider',
|
|
418
|
+
ariaRole: range ? 'group' : 'slider',
|
|
419
|
+
ariaLabel: "".concat(ariaLabel, "\uFF0C").concat(range ? "".concat(rangeValue === null || rangeValue === void 0 ? void 0 : rangeValue[0], " \u5230 ").concat(rangeValue === null || rangeValue === void 0 ? void 0 : rangeValue[1]) : scalarValue).concat(disabled ? ',已禁用' : ''),
|
|
420
|
+
"aria-disabled": disabled,
|
|
421
|
+
"data-slot": "slider-root",
|
|
422
|
+
"data-testid": testID,
|
|
423
|
+
"data-size": size,
|
|
424
|
+
"data-variant": variant,
|
|
425
|
+
"data-disabled": disabled ? 'true' : 'false',
|
|
426
|
+
"data-range": range ? 'true' : 'false',
|
|
427
|
+
children: [prefix ? /*#__PURE__*/_jsx(View, {
|
|
428
|
+
className: "".concat(config.prefixCls, "-slider__prefix"),
|
|
429
|
+
"data-slot": "slider-prefix",
|
|
430
|
+
style: {
|
|
431
|
+
flexShrink: 0
|
|
432
|
+
},
|
|
433
|
+
children: prefix
|
|
434
|
+
}) : null, /*#__PURE__*/_jsxs(View, {
|
|
435
|
+
className: "".concat(config.prefixCls, "-slider__track-shell"),
|
|
436
|
+
"data-slot": "slider-track-shell",
|
|
437
|
+
style: {
|
|
438
|
+
position: 'relative',
|
|
439
|
+
flex: 1,
|
|
440
|
+
minWidth: 0,
|
|
441
|
+
height: tokens.thumbSize + (hasLabels ? tokens.markFontSize + 12 : 0)
|
|
442
|
+
},
|
|
443
|
+
onClick: !range ? handleSingleTrackClick : undefined,
|
|
444
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
445
|
+
id: trackId,
|
|
446
|
+
className: "".concat(config.prefixCls, "-slider__track"),
|
|
447
|
+
"data-slot": "slider-track",
|
|
448
|
+
style: {
|
|
449
|
+
position: 'absolute',
|
|
450
|
+
zIndex: 1,
|
|
451
|
+
top: tokens.thumbSize / 2,
|
|
452
|
+
left: 0,
|
|
453
|
+
right: 0,
|
|
454
|
+
height: tokens.trackHeight,
|
|
455
|
+
boxSizing: 'border-box',
|
|
456
|
+
borderRadius: tokens.trackRadius,
|
|
457
|
+
borderWidth: variant === 'outline' ? 2 : 0,
|
|
458
|
+
borderStyle: 'solid',
|
|
459
|
+
borderColor: sliderColors.trackBorder,
|
|
460
|
+
backgroundColor: sliderColors.track,
|
|
461
|
+
transform: 'translateY(-50%)'
|
|
462
|
+
},
|
|
463
|
+
onTouchStart: range ? handleRangeTouchStart : undefined,
|
|
464
|
+
onTouchMove: range ? handleRangeTouchMove : undefined,
|
|
465
|
+
onTouchEnd: range ? handleRangeTouchEnd : undefined,
|
|
466
|
+
onTouchCancel: range ? handleRangeTouchEnd : undefined,
|
|
467
|
+
onClick: range ? handleRangeClick : undefined,
|
|
468
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
469
|
+
className: "".concat(config.prefixCls, "-slider__fill"),
|
|
470
|
+
"data-slot": "slider-fill",
|
|
471
|
+
style: {
|
|
472
|
+
position: 'absolute',
|
|
473
|
+
top: 0,
|
|
474
|
+
bottom: 0,
|
|
475
|
+
left: "".concat(range ? startPercentage : 0, "%"),
|
|
476
|
+
width: "".concat(range ? endPercentage - startPercentage : endPercentage, "%"),
|
|
477
|
+
borderRadius: tokens.fillRadius,
|
|
478
|
+
backgroundColor: sliderColors.fill,
|
|
479
|
+
transition: 'left var(--x-duration-emphasis) var(--x-easing-standard), width var(--x-duration-emphasis) var(--x-easing-standard)'
|
|
480
|
+
}
|
|
481
|
+
}), tickValues.map(function (tickValue) {
|
|
482
|
+
return /*#__PURE__*/_jsx(View, {
|
|
483
|
+
className: "".concat(config.prefixCls, "-slider__tick"),
|
|
484
|
+
"data-slot": "slider-tick",
|
|
485
|
+
style: {
|
|
486
|
+
position: 'absolute',
|
|
487
|
+
zIndex: 2,
|
|
488
|
+
top: '50%',
|
|
489
|
+
left: "".concat(percentageOf(tickValue, min, max), "%"),
|
|
490
|
+
width: 2,
|
|
491
|
+
height: Math.max(tokens.trackHeight, 8),
|
|
492
|
+
borderRadius: tokens.trackHeight,
|
|
493
|
+
backgroundColor: sliderColors.tick,
|
|
494
|
+
transform: 'translate(-50%, -50%)'
|
|
495
|
+
}
|
|
496
|
+
}, tickValue);
|
|
497
|
+
})]
|
|
498
|
+
}), rangeValue ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
499
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
500
|
+
className: "".concat(config.prefixCls, "-slider__thumb ").concat(config.prefixCls, "-slider__thumb--start"),
|
|
501
|
+
"data-slot": "slider-thumb",
|
|
502
|
+
style: thumbStyle(rangeValue[0])
|
|
503
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
504
|
+
className: "".concat(config.prefixCls, "-slider__thumb ").concat(config.prefixCls, "-slider__thumb--end"),
|
|
505
|
+
"data-slot": "slider-thumb",
|
|
506
|
+
style: thumbStyle(rangeValue[1])
|
|
507
|
+
})]
|
|
508
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
509
|
+
children: [/*#__PURE__*/_jsx(TaroSlider, {
|
|
510
|
+
className: "".concat(config.prefixCls, "-slider__native"),
|
|
511
|
+
"data-slot": "slider-native",
|
|
512
|
+
value: scalarValue !== null && scalarValue !== void 0 ? scalarValue : min,
|
|
513
|
+
min: min,
|
|
514
|
+
max: max,
|
|
515
|
+
step: step,
|
|
516
|
+
disabled: disabled,
|
|
517
|
+
activeColor: "transparent",
|
|
518
|
+
backgroundColor: "transparent",
|
|
519
|
+
blockColor: "transparent",
|
|
520
|
+
blockSize: tokens.thumbSize,
|
|
521
|
+
ariaLabel: ariaLabel,
|
|
522
|
+
style: {
|
|
523
|
+
position: 'absolute',
|
|
524
|
+
zIndex: 4,
|
|
525
|
+
top: 0,
|
|
526
|
+
left: 0,
|
|
527
|
+
width: '100%',
|
|
528
|
+
height: tokens.thumbSize,
|
|
529
|
+
margin: 0,
|
|
530
|
+
opacity: 0
|
|
531
|
+
},
|
|
532
|
+
onChanging: handleSingleChanging,
|
|
533
|
+
onChange: handleSingleCommit
|
|
534
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
535
|
+
className: "".concat(config.prefixCls, "-slider__thumb ").concat(config.prefixCls, "-slider__thumb--single"),
|
|
536
|
+
"data-slot": "slider-thumb",
|
|
537
|
+
style: thumbStyle(scalarValue !== null && scalarValue !== void 0 ? scalarValue : min)
|
|
538
|
+
})]
|
|
539
|
+
}), markEntries.map(function (entry) {
|
|
540
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
541
|
+
className: "".concat(config.prefixCls, "-slider__mark"),
|
|
542
|
+
"data-slot": "slider-mark",
|
|
543
|
+
style: {
|
|
544
|
+
position: 'absolute',
|
|
545
|
+
top: tokens.thumbSize + 4,
|
|
546
|
+
left: "".concat(percentageOf(entry.value, min, max), "%"),
|
|
547
|
+
fontSize: tokens.markFontSize,
|
|
548
|
+
color: sliderColors.mark,
|
|
549
|
+
transform: 'translateX(-50%)',
|
|
550
|
+
whiteSpace: 'nowrap'
|
|
551
|
+
},
|
|
552
|
+
children: entry.label
|
|
553
|
+
}, entry.value);
|
|
554
|
+
})]
|
|
555
|
+
}), suffix ? /*#__PURE__*/_jsx(View, {
|
|
556
|
+
className: "".concat(config.prefixCls, "-slider__suffix"),
|
|
557
|
+
"data-slot": "slider-suffix",
|
|
558
|
+
style: {
|
|
559
|
+
flexShrink: 0
|
|
560
|
+
},
|
|
561
|
+
children: suffix
|
|
562
|
+
}) : null]
|
|
563
|
+
});
|
|
564
|
+
};
|
|
565
|
+
export default Slider;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slider Component Tokens
|
|
3
|
+
* Defines how Slider consumes design system tokens
|
|
4
|
+
*/
|
|
5
|
+
import type { SizeVariant } from '../../theme/types';
|
|
6
|
+
import type { SliderVariant } from './types';
|
|
7
|
+
export interface SliderTokens {
|
|
8
|
+
trackHeight: number;
|
|
9
|
+
thumbSize: number;
|
|
10
|
+
gap: number;
|
|
11
|
+
markFontSize: number;
|
|
12
|
+
trackRadius: string;
|
|
13
|
+
fillRadius: string;
|
|
14
|
+
thumbRadius: string;
|
|
15
|
+
thumbShadow: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get slider tokens
|
|
19
|
+
*/
|
|
20
|
+
export declare function useSliderTokens(size?: SizeVariant): SliderTokens;
|
|
21
|
+
/**
|
|
22
|
+
* Get slider colors for variant
|
|
23
|
+
*/
|
|
24
|
+
export declare function useSliderColors(variant?: SliderVariant): {
|
|
25
|
+
track: string;
|
|
26
|
+
fill: string;
|
|
27
|
+
thumb: string;
|
|
28
|
+
thumbBorder: string;
|
|
29
|
+
trackBorder: string;
|
|
30
|
+
tick: string;
|
|
31
|
+
mark: string;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=tokens.d.ts.map
|