taro-uno-ui 1.0.0 → 1.0.2
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/README.md +67 -30
- package/dist/js/{index-CDFsvu80.js → index-QpKiGsEQ.js} +39026 -28023
- package/dist/js/index-QpKiGsEQ.js.map +1 -0
- package/dist/js/{index-JffnTUrv.js → index-nnTHNhwl.js} +38743 -27720
- package/dist/js/index-nnTHNhwl.js.map +1 -0
- package/package.json +5 -5
- package/dist/app.config.d.ts +0 -38
- package/dist/app.d.ts +0 -6
- package/dist/components/basic/Button/Button.d.ts +0 -6
- package/dist/components/basic/Button/Button.styles.d.ts +0 -2
- package/dist/components/basic/Button/Button.types.d.ts +0 -74
- package/dist/components/basic/Button/index.d.ts +0 -4
- package/dist/components/basic/Divider/Divider.d.ts +0 -6
- package/dist/components/basic/Divider/Divider.styles.d.ts +0 -87
- package/dist/components/basic/Divider/Divider.types.d.ts +0 -242
- package/dist/components/basic/Divider/index.d.ts +0 -6
- package/dist/components/basic/Icon/Icon.d.ts +0 -5
- package/dist/components/basic/Icon/Icon.data.d.ts +0 -29
- package/dist/components/basic/Icon/Icon.styles.d.ts +0 -61
- package/dist/components/basic/Icon/Icon.types.d.ts +0 -199
- package/dist/components/basic/Icon/IconManager.d.ts +0 -120
- package/dist/components/basic/Icon/index.d.ts +0 -6
- package/dist/components/basic/Text/Text.d.ts +0 -7
- package/dist/components/basic/Text/Text.styles.d.ts +0 -67
- package/dist/components/basic/Text/Text.types.d.ts +0 -274
- package/dist/components/basic/Text/index.d.ts +0 -5
- package/dist/components/basic/Typography/Typography.d.ts +0 -8
- package/dist/components/basic/Typography/Typography.styles.d.ts +0 -83
- package/dist/components/basic/Typography/Typography.types.d.ts +0 -245
- package/dist/components/basic/Typography/index.d.ts +0 -3
- package/dist/components/basic/Video/Video.d.ts +0 -7
- package/dist/components/basic/Video/Video.styles.d.ts +0 -212
- package/dist/components/basic/Video/Video.types.d.ts +0 -447
- package/dist/components/basic/Video/index.d.ts +0 -10
- package/dist/components/basic/index.d.ts +0 -217
- package/dist/components/common/ErrorBoundary.d.ts +0 -19
- package/dist/components/common/LazyComponent.d.ts +0 -78
- package/dist/components/common/ResponsiveContainer.d.ts +0 -23
- package/dist/components/common/ResponsiveGrid.d.ts +0 -44
- package/dist/components/common/SecurityProvider.d.ts +0 -15
- package/dist/components/common/ThemeProvider.d.ts +0 -17
- package/dist/components/common/VirtualList.d.ts +0 -89
- package/dist/components/common/index.d.ts +0 -17
- package/dist/components/display/Avatar/Avatar.d.ts +0 -3
- package/dist/components/display/Avatar/Avatar.styles.d.ts +0 -2
- package/dist/components/display/Avatar/Avatar.types.d.ts +0 -37
- package/dist/components/display/Avatar/index.d.ts +0 -3
- package/dist/components/display/Badge/Badge.d.ts +0 -3
- package/dist/components/display/Badge/Badge.types.d.ts +0 -27
- package/dist/components/display/Badge/index.d.ts +0 -2
- package/dist/components/display/Calendar/Calendar.d.ts +0 -5
- package/dist/components/display/Calendar/Calendar.styles.d.ts +0 -2
- package/dist/components/display/Calendar/Calendar.types.d.ts +0 -87
- package/dist/components/display/Calendar/index.d.ts +0 -3
- package/dist/components/display/Card/Card.d.ts +0 -3
- package/dist/components/display/Card/Card.styles.d.ts +0 -1
- package/dist/components/display/Card/Card.types.d.ts +0 -52
- package/dist/components/display/Card/index.d.ts +0 -3
- package/dist/components/display/Carousel/Carousel.d.ts +0 -5
- package/dist/components/display/Carousel/Carousel.styles.d.ts +0 -2
- package/dist/components/display/Carousel/Carousel.types.d.ts +0 -55
- package/dist/components/display/Carousel/index.d.ts +0 -3
- package/dist/components/display/List/List.d.ts +0 -4
- package/dist/components/display/List/List.styles.d.ts +0 -1
- package/dist/components/display/List/List.types.d.ts +0 -64
- package/dist/components/display/List/index.d.ts +0 -3
- package/dist/components/display/Rate/Rate.d.ts +0 -6
- package/dist/components/display/Rate/Rate.styles.d.ts +0 -100
- package/dist/components/display/Rate/Rate.types.d.ts +0 -105
- package/dist/components/display/Rate/index.d.ts +0 -17
- package/dist/components/display/Table/Table.d.ts +0 -7
- package/dist/components/display/Table/Table.styles.d.ts +0 -84
- package/dist/components/display/Table/Table.types.d.ts +0 -251
- package/dist/components/display/Table/index.d.ts +0 -4
- package/dist/components/display/Tag/Tag.d.ts +0 -5
- package/dist/components/display/Tag/Tag.styles.d.ts +0 -2
- package/dist/components/display/Tag/Tag.types.d.ts +0 -47
- package/dist/components/display/Tag/index.d.ts +0 -3
- package/dist/components/display/Timeline/Timeline.d.ts +0 -16
- package/dist/components/display/Timeline/Timeline.styles.d.ts +0 -2
- package/dist/components/display/Timeline/Timeline.types.d.ts +0 -53
- package/dist/components/display/Timeline/index.d.ts +0 -3
- package/dist/components/display/index.d.ts +0 -67
- package/dist/components/feedback/Loading/Loading.d.ts +0 -4
- package/dist/components/feedback/Loading/Loading.styles.d.ts +0 -2
- package/dist/components/feedback/Loading/Loading.types.d.ts +0 -29
- package/dist/components/feedback/Loading/index.d.ts +0 -4
- package/dist/components/feedback/Message/Message.d.ts +0 -4
- package/dist/components/feedback/Message/Message.styles.d.ts +0 -34
- package/dist/components/feedback/Message/Message.types.d.ts +0 -33
- package/dist/components/feedback/Message/index.d.ts +0 -4
- package/dist/components/feedback/Modal/Modal.d.ts +0 -8
- package/dist/components/feedback/Modal/Modal.styles.d.ts +0 -18
- package/dist/components/feedback/Modal/Modal.types.d.ts +0 -143
- package/dist/components/feedback/Modal/index.d.ts +0 -3
- package/dist/components/feedback/Notification/Notification.d.ts +0 -4
- package/dist/components/feedback/Notification/Notification.styles.d.ts +0 -88
- package/dist/components/feedback/Notification/Notification.types.d.ts +0 -279
- package/dist/components/feedback/Notification/NotificationManager.d.ts +0 -4
- package/dist/components/feedback/Notification/index.d.ts +0 -25
- package/dist/components/feedback/Progress/Progress.d.ts +0 -4
- package/dist/components/feedback/Progress/Progress.styles.d.ts +0 -261
- package/dist/components/feedback/Progress/Progress.test.simple.d.ts +0 -2
- package/dist/components/feedback/Progress/Progress.types.d.ts +0 -147
- package/dist/components/feedback/Progress/index.d.ts +0 -3
- package/dist/components/feedback/Progress/utils/animation.d.ts +0 -55
- package/dist/components/feedback/Progress/utils/index.d.ts +0 -2
- package/dist/components/feedback/Progress/utils/progress-calculator.d.ts +0 -75
- package/dist/components/feedback/Result/Result.d.ts +0 -7
- package/dist/components/feedback/Result/Result.styles.d.ts +0 -2
- package/dist/components/feedback/Result/Result.types.d.ts +0 -66
- package/dist/components/feedback/Result/index.d.ts +0 -3
- package/dist/components/feedback/Toast/Toast.d.ts +0 -7
- package/dist/components/feedback/Toast/Toast.styles.d.ts +0 -14
- package/dist/components/feedback/Toast/Toast.types.d.ts +0 -81
- package/dist/components/feedback/Toast/index.d.ts +0 -3
- package/dist/components/feedback/Tooltip/Tooltip.d.ts +0 -4
- package/dist/components/feedback/Tooltip/Tooltip.examples.d.ts +0 -6
- package/dist/components/feedback/Tooltip/Tooltip.styles.d.ts +0 -78
- package/dist/components/feedback/Tooltip/Tooltip.types.d.ts +0 -130
- package/dist/components/feedback/Tooltip/index.d.ts +0 -3
- package/dist/components/feedback/index.d.ts +0 -71
- package/dist/components/form/Cascader/Cascader.d.ts +0 -7
- package/dist/components/form/Cascader/Cascader.styles.d.ts +0 -107
- package/dist/components/form/Cascader/Cascader.types.d.ts +0 -418
- package/dist/components/form/Cascader/hooks/index.d.ts +0 -3
- package/dist/components/form/Cascader/hooks/useCascaderFieldNames.d.ts +0 -12
- package/dist/components/form/Cascader/hooks/useCascaderOptions.d.ts +0 -15
- package/dist/components/form/Cascader/hooks/useCascaderState.d.ts +0 -23
- package/dist/components/form/Cascader/index.d.ts +0 -6
- package/dist/components/form/Cascader/utils/formatDisplayValue.d.ts +0 -9
- package/dist/components/form/Cascader/utils/index.d.ts +0 -1
- package/dist/components/form/Checkbox/Checkbox.d.ts +0 -6
- package/dist/components/form/Checkbox/Checkbox.styles.d.ts +0 -111
- package/dist/components/form/Checkbox/Checkbox.types.d.ts +0 -473
- package/dist/components/form/Checkbox/CheckboxGroup.d.ts +0 -6
- package/dist/components/form/Checkbox/index.d.ts +0 -8
- package/dist/components/form/DatePicker/DatePicker.d.ts +0 -6
- package/dist/components/form/DatePicker/DatePicker.styles.d.ts +0 -99
- package/dist/components/form/DatePicker/DatePicker.types.d.ts +0 -236
- package/dist/components/form/DatePicker/index.d.ts +0 -3
- package/dist/components/form/Form/Form.d.ts +0 -8
- package/dist/components/form/Form/Form.styles.d.ts +0 -84
- package/dist/components/form/Form/Form.types.d.ts +0 -416
- package/dist/components/form/Form/index.d.ts +0 -9
- package/dist/components/form/Form/useFormLogic.d.ts +0 -22
- package/dist/components/form/Input/Input.d.ts +0 -6
- package/dist/components/form/Input/Input.styles.d.ts +0 -61
- package/dist/components/form/Input/Input.types.d.ts +0 -294
- package/dist/components/form/Input/index.d.ts +0 -8
- package/dist/components/form/Input/useInputLogic.d.ts +0 -35
- package/dist/components/form/InputNumber/InputNumber.d.ts +0 -6
- package/dist/components/form/InputNumber/InputNumber.styles.d.ts +0 -120
- package/dist/components/form/InputNumber/InputNumber.types.d.ts +0 -303
- package/dist/components/form/InputNumber/components/InputNumberClearButton.d.ts +0 -10
- package/dist/components/form/InputNumber/components/InputNumberControls.d.ts +0 -11
- package/dist/components/form/InputNumber/components/index.d.ts +0 -2
- package/dist/components/form/InputNumber/hooks/index.d.ts +0 -4
- package/dist/components/form/InputNumber/hooks/useInputNumberState.d.ts +0 -38
- package/dist/components/form/InputNumber/hooks/useInputNumberValidation.d.ts +0 -12
- package/dist/components/form/InputNumber/index.d.ts +0 -5
- package/dist/components/form/Radio/Radio.d.ts +0 -6
- package/dist/components/form/Radio/Radio.styles.d.ts +0 -80
- package/dist/components/form/Radio/Radio.types.d.ts +0 -415
- package/dist/components/form/Radio/index.d.ts +0 -8
- package/dist/components/form/Select/Select.d.ts +0 -6
- package/dist/components/form/Select/Select.styles.d.ts +0 -71
- package/dist/components/form/Select/Select.types.d.ts +0 -418
- package/dist/components/form/Select/index.d.ts +0 -8
- package/dist/components/form/Slider/Slider.d.ts +0 -7
- package/dist/components/form/Slider/Slider.styles.d.ts +0 -2
- package/dist/components/form/Slider/Slider.types.d.ts +0 -85
- package/dist/components/form/Slider/index.d.ts +0 -3
- package/dist/components/form/Switch/Switch.d.ts +0 -10
- package/dist/components/form/Switch/Switch.styles.d.ts +0 -154
- package/dist/components/form/Switch/Switch.types.d.ts +0 -351
- package/dist/components/form/Switch/index.d.ts +0 -7
- package/dist/components/form/Textarea/Textarea.d.ts +0 -6
- package/dist/components/form/Textarea/Textarea.styles.d.ts +0 -66
- package/dist/components/form/Textarea/Textarea.types.d.ts +0 -348
- package/dist/components/form/Textarea/index.d.ts +0 -7
- package/dist/components/form/TimePicker/TimePicker.d.ts +0 -6
- package/dist/components/form/TimePicker/TimePicker.styles.d.ts +0 -104
- package/dist/components/form/TimePicker/TimePicker.types.d.ts +0 -385
- package/dist/components/form/TimePicker/index.d.ts +0 -4
- package/dist/components/form/Transfer/Transfer.d.ts +0 -7
- package/dist/components/form/Transfer/Transfer.styles.d.ts +0 -106
- package/dist/components/form/Transfer/Transfer.types.d.ts +0 -384
- package/dist/components/form/Transfer/components/TransferItem.d.ts +0 -23
- package/dist/components/form/Transfer/components/TransferList.d.ts +0 -55
- package/dist/components/form/Transfer/components/TransferOperations.d.ts +0 -21
- package/dist/components/form/Transfer/components/TransferPagination.d.ts +0 -19
- package/dist/components/form/Transfer/components/TransferSearch.d.ts +0 -21
- package/dist/components/form/Transfer/components/index.d.ts +0 -6
- package/dist/components/form/Transfer/hooks/index.d.ts +0 -3
- package/dist/components/form/Transfer/hooks/useTransferData.d.ts +0 -41
- package/dist/components/form/Transfer/hooks/useTransferState.d.ts +0 -21
- package/dist/components/form/Transfer/index.d.ts +0 -9
- package/dist/components/form/Upload/Upload.d.ts +0 -7
- package/dist/components/form/Upload/Upload.styles.d.ts +0 -2
- package/dist/components/form/Upload/Upload.types.d.ts +0 -143
- package/dist/components/form/Upload/index.d.ts +0 -3
- package/dist/components/form/index.d.ts +0 -126
- package/dist/components/index.d.ts +0 -122
- package/dist/components/layout/Affix/Affix.d.ts +0 -4
- package/dist/components/layout/Affix/Affix.styles.d.ts +0 -1669
- package/dist/components/layout/Affix/Affix.types.d.ts +0 -25
- package/dist/components/layout/Affix/index.d.ts +0 -3
- package/dist/components/layout/Col/Col.d.ts +0 -6
- package/dist/components/layout/Col/Col.styles.d.ts +0 -52
- package/dist/components/layout/Col/Col.types.d.ts +0 -54
- package/dist/components/layout/Col/index.d.ts +0 -3
- package/dist/components/layout/Container/Container.d.ts +0 -6
- package/dist/components/layout/Container/Container.styles.d.ts +0 -41
- package/dist/components/layout/Container/Container.types.d.ts +0 -59
- package/dist/components/layout/Container/index.d.ts +0 -3
- package/dist/components/layout/Grid/Grid.d.ts +0 -6
- package/dist/components/layout/Grid/Grid.styles.d.ts +0 -60
- package/dist/components/layout/Grid/Grid.types.d.ts +0 -68
- package/dist/components/layout/Grid/index.d.ts +0 -3
- package/dist/components/layout/Layout/Content.d.ts +0 -4
- package/dist/components/layout/Layout/Footer.d.ts +0 -4
- package/dist/components/layout/Layout/Header.d.ts +0 -4
- package/dist/components/layout/Layout/Layout.d.ts +0 -4
- package/dist/components/layout/Layout/Layout.styles.d.ts +0 -3366
- package/dist/components/layout/Layout/Layout.types.d.ts +0 -48
- package/dist/components/layout/Layout/Sider.d.ts +0 -4
- package/dist/components/layout/Layout/index.d.ts +0 -8
- package/dist/components/layout/Row/Row.d.ts +0 -6
- package/dist/components/layout/Row/Row.styles.d.ts +0 -55
- package/dist/components/layout/Row/Row.types.d.ts +0 -51
- package/dist/components/layout/Row/index.d.ts +0 -3
- package/dist/components/layout/Space/Space.d.ts +0 -6
- package/dist/components/layout/Space/Space.styles.d.ts +0 -69
- package/dist/components/layout/Space/Space.types.d.ts +0 -84
- package/dist/components/layout/Space/index.d.ts +0 -3
- package/dist/components/layout/index.d.ts +0 -39
- package/dist/components/navigation/Menu/Menu.constants.d.ts +0 -59
- package/dist/components/navigation/Menu/Menu.d.ts +0 -10
- package/dist/components/navigation/Menu/Menu.stories.d.ts +0 -157
- package/dist/components/navigation/Menu/Menu.styles.d.ts +0 -143
- package/dist/components/navigation/Menu/Menu.types.d.ts +0 -210
- package/dist/components/navigation/Menu/Menu.utils.d.ts +0 -54
- package/dist/components/navigation/Menu/MenuItem.d.ts +0 -32
- package/dist/components/navigation/Menu/SubMenu.d.ts +0 -41
- package/dist/components/navigation/Menu/index.d.ts +0 -54
- package/dist/components/navigation/NavBar/NavBar.d.ts +0 -7
- package/dist/components/navigation/NavBar/NavBar.styles.d.ts +0 -114
- package/dist/components/navigation/NavBar/NavBar.types.d.ts +0 -50
- package/dist/components/navigation/NavBar/index.d.ts +0 -3
- package/dist/components/navigation/Pagination/Pagination.d.ts +0 -6
- package/dist/components/navigation/Pagination/Pagination.styles.d.ts +0 -55
- package/dist/components/navigation/Pagination/Pagination.types.d.ts +0 -77
- package/dist/components/navigation/Pagination/index.d.ts +0 -15
- package/dist/components/navigation/Steps/Step.d.ts +0 -4
- package/dist/components/navigation/Steps/Steps.d.ts +0 -4
- package/dist/components/navigation/Steps/Steps.styles.d.ts +0 -6716
- package/dist/components/navigation/Steps/Steps.types.d.ts +0 -41
- package/dist/components/navigation/Steps/index.d.ts +0 -3
- package/dist/components/navigation/Tabs/Tabs.d.ts +0 -6
- package/dist/components/navigation/Tabs/Tabs.styles.d.ts +0 -60
- package/dist/components/navigation/Tabs/Tabs.types.d.ts +0 -107
- package/dist/components/navigation/Tabs/index.d.ts +0 -3
- package/dist/components/navigation/index.d.ts +0 -35
- package/dist/constants/index.d.ts +0 -624
- package/dist/hooks/index.d.ts +0 -28
- package/dist/hooks/types.d.ts +0 -7
- package/dist/hooks/useAsync.d.ts +0 -17
- package/dist/hooks/useClickOutside.d.ts +0 -19
- package/dist/hooks/useCounter.d.ts +0 -36
- package/dist/hooks/useDebounce.d.ts +0 -31
- package/dist/hooks/useDeepCompareEffect.d.ts +0 -22
- package/dist/hooks/useEventHandling.d.ts +0 -81
- package/dist/hooks/useEventListener.d.ts +0 -19
- package/dist/hooks/useLifecycle.d.ts +0 -66
- package/dist/hooks/useMediaQuery.d.ts +0 -22
- package/dist/hooks/useMutation.d.ts +0 -47
- package/dist/hooks/usePerformance.d.ts +0 -73
- package/dist/hooks/usePerformanceMonitor.d.ts +0 -66
- package/dist/hooks/usePlatform.d.ts +0 -20
- package/dist/hooks/usePrevious.d.ts +0 -14
- package/dist/hooks/useRequest.d.ts +0 -32
- package/dist/hooks/useStateManagement.d.ts +0 -62
- package/dist/hooks/useStorage.d.ts +0 -27
- package/dist/hooks/useStyle.d.ts +0 -127
- package/dist/hooks/useTheme.d.ts +0 -58
- package/dist/hooks/useToggle.d.ts +0 -28
- package/dist/hooks/useVirtualScroll.d.ts +0 -42
- package/dist/index.d.ts +0 -271
- package/dist/js/index-CDFsvu80.js.map +0 -1
- package/dist/js/index-DFdcksbe.js +0 -1165
- package/dist/js/index-DFdcksbe.js.map +0 -1
- package/dist/js/index-DXRIkWX1.js +0 -1148
- package/dist/js/index-DXRIkWX1.js.map +0 -1
- package/dist/js/index-JffnTUrv.js.map +0 -1
- package/dist/platform/index.d.ts +0 -172
- package/dist/providers/AppProvider.d.ts +0 -34
- package/dist/providers/index.d.ts +0 -1
- package/dist/theme/ThemeProvider.d.ts +0 -34
- package/dist/theme/ThemeProvider.types.d.ts +0 -21
- package/dist/theme/animations.d.ts +0 -96
- package/dist/theme/defaults.d.ts +0 -6
- package/dist/theme/design-system.d.ts +0 -400
- package/dist/theme/design-tokens.d.ts +0 -459
- package/dist/theme/index.d.ts +0 -187
- package/dist/theme/responsive.d.ts +0 -63
- package/dist/theme/styles.d.ts +0 -65
- package/dist/theme/tokens/colors.d.ts +0 -72
- package/dist/theme/tokens/effects.d.ts +0 -122
- package/dist/theme/tokens/index.d.ts +0 -94
- package/dist/theme/tokens/spacing.d.ts +0 -65
- package/dist/theme/tokens/typography.d.ts +0 -73
- package/dist/theme/types.d.ts +0 -153
- package/dist/theme/useThemeUtils.d.ts +0 -21
- package/dist/theme/utils.d.ts +0 -255
- package/dist/theme/variables.d.ts +0 -170
- package/dist/types/accessibility.d.ts +0 -46
- package/dist/types/button.d.ts +0 -285
- package/dist/types/component-props.d.ts +0 -109
- package/dist/types/index.d.ts +0 -343
- package/dist/types/standardized-components.d.ts +0 -263
- package/dist/types/utils.d.ts +0 -190
- package/dist/utils/abort-controller.d.ts +0 -19
- package/dist/utils/cache.d.ts +0 -28
- package/dist/utils/createNamespace.d.ts +0 -9
- package/dist/utils/environment.d.ts +0 -26
- package/dist/utils/error-handler.d.ts +0 -37
- package/dist/utils/errorLogger.d.ts +0 -72
- package/dist/utils/formatUtils.d.ts +0 -93
- package/dist/utils/http/error-codes.d.ts +0 -131
- package/dist/utils/http/http-client.d.ts +0 -53
- package/dist/utils/http/request-cache.d.ts +0 -65
- package/dist/utils/http/request.d.ts +0 -280
- package/dist/utils/http/taro-adapter.d.ts +0 -4
- package/dist/utils/http/types.d.ts +0 -351
- package/dist/utils/http/web-adapter.d.ts +0 -4
- package/dist/utils/index.d.ts +0 -46
- package/dist/utils/inputValidator.d.ts +0 -74
- package/dist/utils/performance/performance.d.ts +0 -167
- package/dist/utils/responsiveUtils.d.ts +0 -148
- package/dist/utils/rtl-support.d.ts +0 -78
- package/dist/utils/security/api-security.d.ts +0 -82
- package/dist/utils/security/xss-protection.d.ts +0 -20
- package/dist/utils/securityHeaders.d.ts +0 -74
- package/dist/utils/typeHelpers.d.ts +0 -1
- package/dist/utils/types/dataProcessing.d.ts +0 -111
- package/dist/utils/types/typeHelpers.d.ts +0 -50
- package/dist/utils/xssProtection.d.ts +0 -90
- package/src/app.config.ts +0 -55
- package/src/app.scss +0 -508
- package/src/app.tsx +0 -44
- package/src/components/basic/Button/Button.styles.ts +0 -130
- package/src/components/basic/Button/Button.test.tsx +0 -154
- package/src/components/basic/Button/Button.tsx +0 -133
- package/src/components/basic/Button/Button.types.ts +0 -81
- package/src/components/basic/Button/index.tsx +0 -6
- package/src/components/basic/Divider/Divider.styles.ts +0 -488
- package/src/components/basic/Divider/Divider.test.tsx +0 -551
- package/src/components/basic/Divider/Divider.tsx +0 -392
- package/src/components/basic/Divider/Divider.types.ts +0 -261
- package/src/components/basic/Divider/index.tsx +0 -25
- package/src/components/basic/Icon/Icon.data.ts +0 -474
- package/src/components/basic/Icon/Icon.styles.ts +0 -359
- package/src/components/basic/Icon/Icon.test.tsx +0 -357
- package/src/components/basic/Icon/Icon.tsx +0 -167
- package/src/components/basic/Icon/Icon.types.ts +0 -210
- package/src/components/basic/Icon/IconManager.ts +0 -229
- package/src/components/basic/Icon/index.tsx +0 -22
- package/src/components/basic/Text/Text.styles.ts +0 -500
- package/src/components/basic/Text/Text.test.tsx +0 -299
- package/src/components/basic/Text/Text.tsx +0 -340
- package/src/components/basic/Text/Text.types.ts +0 -329
- package/src/components/basic/Text/index.tsx +0 -27
- package/src/components/basic/Typography/Typography.styles.ts +0 -347
- package/src/components/basic/Typography/Typography.tsx +0 -207
- package/src/components/basic/Typography/Typography.types.ts +0 -296
- package/src/components/basic/Typography/index.tsx +0 -14
- package/src/components/basic/Video/Video.styles.ts +0 -777
- package/src/components/basic/Video/Video.test.tsx +0 -490
- package/src/components/basic/Video/Video.tsx +0 -1468
- package/src/components/basic/Video/Video.types.ts +0 -500
- package/src/components/basic/Video/index.tsx +0 -26
- package/src/components/basic/index.tsx +0 -300
- package/src/components/common/ErrorBoundary.tsx +0 -87
- package/src/components/common/LazyComponent.tsx +0 -247
- package/src/components/common/ResponsiveContainer.tsx +0 -93
- package/src/components/common/ResponsiveGrid.tsx +0 -183
- package/src/components/common/SecurityProvider.tsx +0 -98
- package/src/components/common/ThemeProvider.tsx +0 -115
- package/src/components/common/VirtualList.tsx +0 -350
- package/src/components/common/__tests__/ErrorBoundary.test.tsx +0 -249
- package/src/components/common/index.tsx +0 -32
- package/src/components/display/Avatar/Avatar.styles.ts +0 -62
- package/src/components/display/Avatar/Avatar.test.tsx +0 -390
- package/src/components/display/Avatar/Avatar.tsx +0 -66
- package/src/components/display/Avatar/Avatar.types.ts +0 -40
- package/src/components/display/Avatar/index.ts +0 -3
- package/src/components/display/Badge/Badge.tsx +0 -29
- package/src/components/display/Badge/Badge.types.ts +0 -29
- package/src/components/display/Badge/index.ts +0 -2
- package/src/components/display/Calendar/Calendar.styles.ts +0 -255
- package/src/components/display/Calendar/Calendar.test.tsx +0 -42
- package/src/components/display/Calendar/Calendar.tsx +0 -358
- package/src/components/display/Calendar/Calendar.types.ts +0 -91
- package/src/components/display/Calendar/index.ts +0 -3
- package/src/components/display/Card/Card.styles.ts +0 -89
- package/src/components/display/Card/Card.test.tsx +0 -182
- package/src/components/display/Card/Card.tsx +0 -135
- package/src/components/display/Card/Card.types.ts +0 -55
- package/src/components/display/Card/index.ts +0 -3
- package/src/components/display/Carousel/Carousel.styles.ts +0 -206
- package/src/components/display/Carousel/Carousel.tsx +0 -290
- package/src/components/display/Carousel/Carousel.types.ts +0 -57
- package/src/components/display/Carousel/index.ts +0 -3
- package/src/components/display/List/List.styles.ts +0 -79
- package/src/components/display/List/List.tsx +0 -114
- package/src/components/display/List/List.types.ts +0 -68
- package/src/components/display/List/index.ts +0 -3
- package/src/components/display/Rate/Rate.styles.ts +0 -254
- package/src/components/display/Rate/Rate.tsx +0 -324
- package/src/components/display/Rate/Rate.types.ts +0 -112
- package/src/components/display/Rate/index.ts +0 -20
- package/src/components/display/Table/Table.styles.ts +0 -269
- package/src/components/display/Table/Table.test.tsx +0 -345
- package/src/components/display/Table/Table.tsx +0 -426
- package/src/components/display/Table/Table.types.ts +0 -256
- package/src/components/display/Table/index.tsx +0 -16
- package/src/components/display/Tag/Tag.styles.ts +0 -197
- package/src/components/display/Tag/Tag.test.tsx +0 -541
- package/src/components/display/Tag/Tag.tsx +0 -139
- package/src/components/display/Tag/Tag.types.ts +0 -49
- package/src/components/display/Tag/index.ts +0 -3
- package/src/components/display/Timeline/Timeline.styles.ts +0 -211
- package/src/components/display/Timeline/Timeline.tsx +0 -220
- package/src/components/display/Timeline/Timeline.types.ts +0 -56
- package/src/components/display/Timeline/index.ts +0 -3
- package/src/components/display/index.tsx +0 -147
- package/src/components/feedback/Loading/Loading.styles.ts +0 -117
- package/src/components/feedback/Loading/Loading.test.tsx +0 -534
- package/src/components/feedback/Loading/Loading.tsx +0 -132
- package/src/components/feedback/Loading/Loading.types.ts +0 -33
- package/src/components/feedback/Loading/index.ts +0 -6
- package/src/components/feedback/Message/Message.styles.ts +0 -41
- package/src/components/feedback/Message/Message.test.tsx +0 -234
- package/src/components/feedback/Message/Message.tsx +0 -96
- package/src/components/feedback/Message/Message.types.ts +0 -37
- package/src/components/feedback/Message/index.ts +0 -6
- package/src/components/feedback/Modal/Modal.styles.ts +0 -21
- package/src/components/feedback/Modal/Modal.test.tsx +0 -11
- package/src/components/feedback/Modal/Modal.tsx +0 -269
- package/src/components/feedback/Modal/Modal.types.ts +0 -151
- package/src/components/feedback/Modal/index.tsx +0 -11
- package/src/components/feedback/Notification/Notification.styles.ts +0 -453
- package/src/components/feedback/Notification/Notification.test.tsx +0 -401
- package/src/components/feedback/Notification/Notification.tsx +0 -347
- package/src/components/feedback/Notification/Notification.types.ts +0 -339
- package/src/components/feedback/Notification/NotificationManager.tsx +0 -405
- package/src/components/feedback/Notification/index.ts +0 -40
- package/src/components/feedback/Notification/index.tsx +0 -154
- package/src/components/feedback/Progress/Progress.styles.ts +0 -469
- package/src/components/feedback/Progress/Progress.test.simple.tsx +0 -14
- package/src/components/feedback/Progress/Progress.test.tsx +0 -312
- package/src/components/feedback/Progress/Progress.tsx +0 -488
- package/src/components/feedback/Progress/Progress.types.ts +0 -163
- package/src/components/feedback/Progress/index.ts +0 -3
- package/src/components/feedback/Progress/index.tsx +0 -38
- package/src/components/feedback/Progress/utils/animation.ts +0 -193
- package/src/components/feedback/Progress/utils/index.ts +0 -26
- package/src/components/feedback/Progress/utils/progress-calculator.ts +0 -199
- package/src/components/feedback/Result/Result.styles.ts +0 -139
- package/src/components/feedback/Result/Result.tsx +0 -221
- package/src/components/feedback/Result/Result.types.ts +0 -128
- package/src/components/feedback/Result/index.tsx +0 -3
- package/src/components/feedback/Toast/Toast.styles.ts +0 -17
- package/src/components/feedback/Toast/Toast.test.tsx +0 -10
- package/src/components/feedback/Toast/Toast.tsx +0 -384
- package/src/components/feedback/Toast/Toast.types.ts +0 -86
- package/src/components/feedback/Toast/index.tsx +0 -3
- package/src/components/feedback/Tooltip/Tooltip.examples.tsx +0 -435
- package/src/components/feedback/Tooltip/Tooltip.styles.ts +0 -340
- package/src/components/feedback/Tooltip/Tooltip.test.tsx +0 -446
- package/src/components/feedback/Tooltip/Tooltip.tsx +0 -302
- package/src/components/feedback/Tooltip/Tooltip.types.ts +0 -166
- package/src/components/feedback/Tooltip/index.ts +0 -3
- package/src/components/feedback/Tooltip/index.tsx +0 -246
- package/src/components/feedback/index.tsx +0 -176
- package/src/components/form/Cascader/Cascader.styles.ts +0 -526
- package/src/components/form/Cascader/Cascader.test.tsx +0 -77
- package/src/components/form/Cascader/Cascader.tsx +0 -581
- package/src/components/form/Cascader/Cascader.types.ts +0 -581
- package/src/components/form/Cascader/hooks/index.ts +0 -3
- package/src/components/form/Cascader/hooks/useCascaderFieldNames.ts +0 -19
- package/src/components/form/Cascader/hooks/useCascaderOptions.ts +0 -127
- package/src/components/form/Cascader/hooks/useCascaderState.ts +0 -139
- package/src/components/form/Cascader/index.ts +0 -25
- package/src/components/form/Cascader/utils/formatDisplayValue.ts +0 -19
- package/src/components/form/Cascader/utils/index.ts +0 -1
- package/src/components/form/Checkbox/Checkbox.styles.ts +0 -607
- package/src/components/form/Checkbox/Checkbox.test.tsx +0 -1140
- package/src/components/form/Checkbox/Checkbox.tsx +0 -489
- package/src/components/form/Checkbox/Checkbox.types.ts +0 -472
- package/src/components/form/Checkbox/CheckboxGroup.tsx +0 -444
- package/src/components/form/Checkbox/index.tsx +0 -27
- package/src/components/form/DatePicker/DatePicker.styles.ts +0 -393
- package/src/components/form/DatePicker/DatePicker.test.tsx +0 -407
- package/src/components/form/DatePicker/DatePicker.tsx +0 -376
- package/src/components/form/DatePicker/DatePicker.types.ts +0 -250
- package/src/components/form/DatePicker/index.tsx +0 -15
- package/src/components/form/Form/Form.styles.ts +0 -357
- package/src/components/form/Form/Form.test.tsx +0 -122
- package/src/components/form/Form/Form.tsx +0 -257
- package/src/components/form/Form/Form.types.ts +0 -422
- package/src/components/form/Form/index.tsx +0 -31
- package/src/components/form/Form/useFormLogic.ts +0 -497
- package/src/components/form/Input/Input.styles.ts +0 -445
- package/src/components/form/Input/Input.test.tsx +0 -494
- package/src/components/form/Input/Input.tsx +0 -305
- package/src/components/form/Input/Input.types.ts +0 -297
- package/src/components/form/Input/index.tsx +0 -26
- package/src/components/form/Input/useInputLogic.test.ts +0 -82
- package/src/components/form/Input/useInputLogic.ts +0 -260
- package/src/components/form/InputNumber/InputNumber.styles.ts +0 -716
- package/src/components/form/InputNumber/InputNumber.tsx +0 -402
- package/src/components/form/InputNumber/InputNumber.types.ts +0 -336
- package/src/components/form/InputNumber/components/InputNumberClearButton.tsx +0 -24
- package/src/components/form/InputNumber/components/InputNumberControls.tsx +0 -33
- package/src/components/form/InputNumber/components/index.ts +0 -2
- package/src/components/form/InputNumber/hooks/index.ts +0 -4
- package/src/components/form/InputNumber/hooks/useInputNumberState.ts +0 -313
- package/src/components/form/InputNumber/hooks/useInputNumberValidation.ts +0 -148
- package/src/components/form/InputNumber/index.ts +0 -25
- package/src/components/form/Radio/Radio.styles.ts +0 -451
- package/src/components/form/Radio/Radio.test.tsx +0 -547
- package/src/components/form/Radio/Radio.tsx +0 -277
- package/src/components/form/Radio/Radio.types.ts +0 -414
- package/src/components/form/Radio/index.tsx +0 -21
- package/src/components/form/Select/Select.styles.ts +0 -518
- package/src/components/form/Select/Select.test.tsx +0 -648
- package/src/components/form/Select/Select.tsx +0 -474
- package/src/components/form/Select/Select.types.ts +0 -429
- package/src/components/form/Select/index.tsx +0 -30
- package/src/components/form/Slider/Slider.styles.ts +0 -139
- package/src/components/form/Slider/Slider.test.tsx +0 -553
- package/src/components/form/Slider/Slider.tsx +0 -312
- package/src/components/form/Slider/Slider.types.ts +0 -110
- package/src/components/form/Slider/index.tsx +0 -3
- package/src/components/form/Switch/Switch.styles.ts +0 -534
- package/src/components/form/Switch/Switch.test.tsx +0 -345
- package/src/components/form/Switch/Switch.tsx +0 -458
- package/src/components/form/Switch/Switch.types.ts +0 -386
- package/src/components/form/Switch/index.tsx +0 -26
- package/src/components/form/Textarea/Textarea.styles.ts +0 -592
- package/src/components/form/Textarea/Textarea.test.tsx +0 -1075
- package/src/components/form/Textarea/Textarea.tsx +0 -608
- package/src/components/form/Textarea/Textarea.types.ts +0 -374
- package/src/components/form/Textarea/index.tsx +0 -26
- package/src/components/form/TimePicker/TimePicker.styles.ts +0 -434
- package/src/components/form/TimePicker/TimePicker.test.tsx +0 -306
- package/src/components/form/TimePicker/TimePicker.tsx +0 -250
- package/src/components/form/TimePicker/TimePicker.types.ts +0 -385
- package/src/components/form/TimePicker/index.ts +0 -21
- package/src/components/form/Transfer/Transfer.styles.ts +0 -490
- package/src/components/form/Transfer/Transfer.test.tsx +0 -316
- package/src/components/form/Transfer/Transfer.tsx +0 -414
- package/src/components/form/Transfer/Transfer.types.ts +0 -565
- package/src/components/form/Transfer/components/TransferItem.tsx +0 -94
- package/src/components/form/Transfer/components/TransferList.tsx +0 -298
- package/src/components/form/Transfer/components/TransferOperations.tsx +0 -81
- package/src/components/form/Transfer/components/TransferPagination.tsx +0 -139
- package/src/components/form/Transfer/components/TransferSearch.tsx +0 -85
- package/src/components/form/Transfer/components/index.ts +0 -6
- package/src/components/form/Transfer/hooks/index.ts +0 -3
- package/src/components/form/Transfer/hooks/useTransferData.ts +0 -202
- package/src/components/form/Transfer/hooks/useTransferState.ts +0 -120
- package/src/components/form/Transfer/index.ts +0 -27
- package/src/components/form/Upload/Upload.styles.ts +0 -145
- package/src/components/form/Upload/Upload.test.tsx +0 -10
- package/src/components/form/Upload/Upload.tsx +0 -498
- package/src/components/form/Upload/Upload.types.ts +0 -200
- package/src/components/form/Upload/index.tsx +0 -12
- package/src/components/form/index.tsx +0 -152
- package/src/components/index.tsx +0 -145
- package/src/components/layout/Affix/Affix.styles.ts +0 -42
- package/src/components/layout/Affix/Affix.test.tsx +0 -10
- package/src/components/layout/Affix/Affix.tsx +0 -83
- package/src/components/layout/Affix/Affix.types.ts +0 -29
- package/src/components/layout/Affix/index.tsx +0 -3
- package/src/components/layout/Col/Col.styles.ts +0 -185
- package/src/components/layout/Col/Col.test.tsx +0 -537
- package/src/components/layout/Col/Col.tsx +0 -97
- package/src/components/layout/Col/Col.types.ts +0 -59
- package/src/components/layout/Col/index.tsx +0 -3
- package/src/components/layout/Container/Container.styles.ts +0 -163
- package/src/components/layout/Container/Container.test.tsx +0 -380
- package/src/components/layout/Container/Container.tsx +0 -123
- package/src/components/layout/Container/Container.types.ts +0 -63
- package/src/components/layout/Container/index.tsx +0 -3
- package/src/components/layout/Grid/Grid.styles.ts +0 -183
- package/src/components/layout/Grid/Grid.test.tsx +0 -637
- package/src/components/layout/Grid/Grid.tsx +0 -123
- package/src/components/layout/Grid/Grid.types.ts +0 -78
- package/src/components/layout/Grid/index.tsx +0 -3
- package/src/components/layout/Layout/Content.tsx +0 -30
- package/src/components/layout/Layout/Footer.tsx +0 -30
- package/src/components/layout/Layout/Header.tsx +0 -30
- package/src/components/layout/Layout/Layout.styles.ts +0 -84
- package/src/components/layout/Layout/Layout.test.tsx +0 -10
- package/src/components/layout/Layout/Layout.tsx +0 -28
- package/src/components/layout/Layout/Layout.types.ts +0 -58
- package/src/components/layout/Layout/Sider.tsx +0 -44
- package/src/components/layout/Layout/index.tsx +0 -22
- package/src/components/layout/Row/Row.styles.ts +0 -159
- package/src/components/layout/Row/Row.test.tsx +0 -467
- package/src/components/layout/Row/Row.tsx +0 -111
- package/src/components/layout/Row/Row.types.ts +0 -60
- package/src/components/layout/Row/index.tsx +0 -3
- package/src/components/layout/Space/Space.styles.ts +0 -255
- package/src/components/layout/Space/Space.test.tsx +0 -682
- package/src/components/layout/Space/Space.tsx +0 -203
- package/src/components/layout/Space/Space.types.ts +0 -92
- package/src/components/layout/Space/index.tsx +0 -12
- package/src/components/layout/index.tsx +0 -78
- package/src/components/navigation/Menu/Menu.constants.ts +0 -69
- package/src/components/navigation/Menu/Menu.stories.tsx +0 -107
- package/src/components/navigation/Menu/Menu.styles.ts +0 -767
- package/src/components/navigation/Menu/Menu.tsx +0 -352
- package/src/components/navigation/Menu/Menu.types.ts +0 -231
- package/src/components/navigation/Menu/Menu.utils.ts +0 -187
- package/src/components/navigation/Menu/MenuItem.tsx +0 -124
- package/src/components/navigation/Menu/SubMenu.tsx +0 -150
- package/src/components/navigation/Menu/index.tsx +0 -59
- package/src/components/navigation/NavBar/NavBar.styles.ts +0 -129
- package/src/components/navigation/NavBar/NavBar.test.tsx +0 -287
- package/src/components/navigation/NavBar/NavBar.tsx +0 -228
- package/src/components/navigation/NavBar/NavBar.types.ts +0 -54
- package/src/components/navigation/NavBar/index.tsx +0 -3
- package/src/components/navigation/Pagination/Pagination.styles.ts +0 -187
- package/src/components/navigation/Pagination/Pagination.test.tsx +0 -672
- package/src/components/navigation/Pagination/Pagination.tsx +0 -395
- package/src/components/navigation/Pagination/Pagination.types.ts +0 -87
- package/src/components/navigation/Pagination/index.ts +0 -24
- package/src/components/navigation/Pagination/index.tsx +0 -9
- package/src/components/navigation/Steps/Step.tsx +0 -36
- package/src/components/navigation/Steps/Steps.styles.ts +0 -169
- package/src/components/navigation/Steps/Steps.test.tsx +0 -14
- package/src/components/navigation/Steps/Steps.tsx +0 -112
- package/src/components/navigation/Steps/Steps.types.ts +0 -47
- package/src/components/navigation/Steps/index.tsx +0 -3
- package/src/components/navigation/Tabs/Tabs.styles.ts +0 -199
- package/src/components/navigation/Tabs/Tabs.test.tsx +0 -662
- package/src/components/navigation/Tabs/Tabs.tsx +0 -253
- package/src/components/navigation/Tabs/Tabs.types.ts +0 -115
- package/src/components/navigation/Tabs/index.tsx +0 -3
- package/src/components/navigation/index.tsx +0 -88
- package/src/constants/index.ts +0 -785
- package/src/hooks/index.ts +0 -60
- package/src/hooks/types.ts +0 -9
- package/src/hooks/useAsync.ts +0 -64
- package/src/hooks/useClickOutside.ts +0 -52
- package/src/hooks/useCounter.ts +0 -87
- package/src/hooks/useDebounce.ts +0 -150
- package/src/hooks/useDeepCompareEffect.ts +0 -88
- package/src/hooks/useEventHandling.ts +0 -444
- package/src/hooks/useEventListener.ts +0 -77
- package/src/hooks/useLifecycle.ts +0 -399
- package/src/hooks/useMediaQuery.ts +0 -75
- package/src/hooks/useMutation.ts +0 -233
- package/src/hooks/usePerformance.ts +0 -378
- package/src/hooks/usePerformanceMonitor.ts +0 -348
- package/src/hooks/usePlatform.ts +0 -64
- package/src/hooks/usePrevious.ts +0 -25
- package/src/hooks/useRequest.test.ts +0 -11
- package/src/hooks/useRequest.ts +0 -140
- package/src/hooks/useStateManagement.ts +0 -300
- package/src/hooks/useStorage.ts +0 -169
- package/src/hooks/useStyle.ts +0 -543
- package/src/hooks/useTheme.ts +0 -347
- package/src/hooks/useToggle.ts +0 -54
- package/src/hooks/useVirtualScroll.ts +0 -331
- package/src/index.ts +0 -323
- package/src/platform/index.ts +0 -1188
- package/src/providers/AppProvider.test.tsx +0 -63
- package/src/providers/AppProvider.tsx +0 -155
- package/src/providers/index.ts +0 -1
- package/src/theme/ThemeProvider.tsx +0 -279
- package/src/theme/ThemeProvider.types.ts +0 -26
- package/src/theme/animations.tsx +0 -660
- package/src/theme/defaults.ts +0 -188
- package/src/theme/design-system.ts +0 -562
- package/src/theme/design-tokens.ts +0 -1122
- package/src/theme/generated/dark-theme.scss +0 -120
- package/src/theme/generated/tokens.css +0 -441
- package/src/theme/generated/tokens.scss +0 -384
- package/src/theme/index.ts +0 -99
- package/src/theme/responsive.tsx +0 -195
- package/src/theme/styles/mixins.scss +0 -612
- package/src/theme/styles/variables.scss +0 -295
- package/src/theme/styles.ts +0 -403
- package/src/theme/tokens/colors.ts +0 -256
- package/src/theme/tokens/effects.ts +0 -260
- package/src/theme/tokens/index.ts +0 -217
- package/src/theme/tokens/spacing.ts +0 -137
- package/src/theme/tokens/typography.ts +0 -186
- package/src/theme/types.ts +0 -188
- package/src/theme/useThemeUtils.ts +0 -313
- package/src/theme/utils.ts +0 -501
- package/src/theme/variables.ts +0 -602
- package/src/types/accessibility.ts +0 -50
- package/src/types/button.ts +0 -560
- package/src/types/component-props.ts +0 -322
- package/src/types/env.d.ts +0 -20
- package/src/types/glob.d.ts +0 -4
- package/src/types/index.ts +0 -427
- package/src/types/modules.d.ts +0 -40
- package/src/types/standardized-components.ts +0 -550
- package/src/types/taro-adapter.d.ts +0 -174
- package/src/types/taro-components.d.ts +0 -73
- package/src/types/utils.ts +0 -400
- package/src/utils/__tests__/inputValidator.test.ts +0 -338
- package/src/utils/__tests__/responsiveUtils.test.ts +0 -311
- package/src/utils/__tests__/xssProtection.test.ts +0 -268
- package/src/utils/abort-controller.ts +0 -48
- package/src/utils/cache.ts +0 -79
- package/src/utils/createNamespace.ts +0 -24
- package/src/utils/environment.ts +0 -115
- package/src/utils/error-handler.ts +0 -88
- package/src/utils/errorLogger.ts +0 -193
- package/src/utils/formatUtils.ts +0 -412
- package/src/utils/http/error-codes.ts +0 -314
- package/src/utils/http/http-client.test.ts +0 -63
- package/src/utils/http/http-client.ts +0 -161
- package/src/utils/http/request-cache.ts +0 -127
- package/src/utils/http/request.ts +0 -954
- package/src/utils/http/taro-adapter.test.ts +0 -74
- package/src/utils/http/taro-adapter.ts +0 -24
- package/src/utils/http/types.ts +0 -414
- package/src/utils/http/web-adapter.ts +0 -33
- package/src/utils/index.ts +0 -112
- package/src/utils/inputValidator.ts +0 -264
- package/src/utils/performance/performance.ts +0 -839
- package/src/utils/responsiveUtils.ts +0 -348
- package/src/utils/rtl-support.ts +0 -354
- package/src/utils/security/api-security.ts +0 -394
- package/src/utils/security/xss-protection.ts +0 -69
- package/src/utils/securityHeaders.ts +0 -308
- package/src/utils/typeHelpers.ts +0 -16
- package/src/utils/types/dataProcessing.ts +0 -544
- package/src/utils/types/typeHelpers.ts +0 -197
- package/src/utils/xssProtection.ts +0 -468
|
@@ -1,459 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 设计令牌系统
|
|
3
|
-
* 统一的设计变量和CSS自定义属性
|
|
4
|
-
* 提供类型安全的设计令牌管理
|
|
5
|
-
*/
|
|
6
|
-
export interface DesignTokens {
|
|
7
|
-
colors: {
|
|
8
|
-
primary: {
|
|
9
|
-
50: string;
|
|
10
|
-
100: string;
|
|
11
|
-
200: string;
|
|
12
|
-
300: string;
|
|
13
|
-
400: string;
|
|
14
|
-
500: string;
|
|
15
|
-
600: string;
|
|
16
|
-
700: string;
|
|
17
|
-
800: string;
|
|
18
|
-
900: string;
|
|
19
|
-
950: string;
|
|
20
|
-
};
|
|
21
|
-
secondary: {
|
|
22
|
-
50: string;
|
|
23
|
-
100: string;
|
|
24
|
-
200: string;
|
|
25
|
-
300: string;
|
|
26
|
-
400: string;
|
|
27
|
-
500: string;
|
|
28
|
-
600: string;
|
|
29
|
-
700: string;
|
|
30
|
-
800: string;
|
|
31
|
-
900: string;
|
|
32
|
-
950: string;
|
|
33
|
-
};
|
|
34
|
-
success: {
|
|
35
|
-
50: string;
|
|
36
|
-
100: string;
|
|
37
|
-
200: string;
|
|
38
|
-
300: string;
|
|
39
|
-
400: string;
|
|
40
|
-
500: string;
|
|
41
|
-
600: string;
|
|
42
|
-
700: string;
|
|
43
|
-
800: string;
|
|
44
|
-
900: string;
|
|
45
|
-
950: string;
|
|
46
|
-
};
|
|
47
|
-
warning: {
|
|
48
|
-
50: string;
|
|
49
|
-
100: string;
|
|
50
|
-
200: string;
|
|
51
|
-
300: string;
|
|
52
|
-
400: string;
|
|
53
|
-
500: string;
|
|
54
|
-
600: string;
|
|
55
|
-
700: string;
|
|
56
|
-
800: string;
|
|
57
|
-
900: string;
|
|
58
|
-
950: string;
|
|
59
|
-
};
|
|
60
|
-
error: {
|
|
61
|
-
50: string;
|
|
62
|
-
100: string;
|
|
63
|
-
200: string;
|
|
64
|
-
300: string;
|
|
65
|
-
400: string;
|
|
66
|
-
500: string;
|
|
67
|
-
600: string;
|
|
68
|
-
700: string;
|
|
69
|
-
800: string;
|
|
70
|
-
900: string;
|
|
71
|
-
950: string;
|
|
72
|
-
};
|
|
73
|
-
info: {
|
|
74
|
-
50: string;
|
|
75
|
-
100: string;
|
|
76
|
-
200: string;
|
|
77
|
-
300: string;
|
|
78
|
-
400: string;
|
|
79
|
-
500: string;
|
|
80
|
-
600: string;
|
|
81
|
-
700: string;
|
|
82
|
-
800: string;
|
|
83
|
-
900: string;
|
|
84
|
-
950: string;
|
|
85
|
-
};
|
|
86
|
-
neutral: {
|
|
87
|
-
50: string;
|
|
88
|
-
100: string;
|
|
89
|
-
200: string;
|
|
90
|
-
300: string;
|
|
91
|
-
400: string;
|
|
92
|
-
500: string;
|
|
93
|
-
600: string;
|
|
94
|
-
700: string;
|
|
95
|
-
800: string;
|
|
96
|
-
900: string;
|
|
97
|
-
950: string;
|
|
98
|
-
};
|
|
99
|
-
text: {
|
|
100
|
-
primary: string;
|
|
101
|
-
secondary: string;
|
|
102
|
-
tertiary: string;
|
|
103
|
-
disabled: string;
|
|
104
|
-
inverse: string;
|
|
105
|
-
link: string;
|
|
106
|
-
placeholder: string;
|
|
107
|
-
};
|
|
108
|
-
background: {
|
|
109
|
-
primary: string;
|
|
110
|
-
secondary: string;
|
|
111
|
-
tertiary: string;
|
|
112
|
-
card: string;
|
|
113
|
-
input: string;
|
|
114
|
-
mask: string;
|
|
115
|
-
hover: string;
|
|
116
|
-
active: string;
|
|
117
|
-
};
|
|
118
|
-
border: {
|
|
119
|
-
default: string;
|
|
120
|
-
focus: string;
|
|
121
|
-
error: string;
|
|
122
|
-
success: string;
|
|
123
|
-
warning: string;
|
|
124
|
-
light: string;
|
|
125
|
-
};
|
|
126
|
-
shadow: {
|
|
127
|
-
default: string;
|
|
128
|
-
light: string;
|
|
129
|
-
medium: string;
|
|
130
|
-
dark: string;
|
|
131
|
-
colored: string;
|
|
132
|
-
};
|
|
133
|
-
status: {
|
|
134
|
-
online: string;
|
|
135
|
-
offline: string;
|
|
136
|
-
busy: string;
|
|
137
|
-
away: string;
|
|
138
|
-
};
|
|
139
|
-
interactive: {
|
|
140
|
-
hover: string;
|
|
141
|
-
active: string;
|
|
142
|
-
focus: string;
|
|
143
|
-
selected: string;
|
|
144
|
-
disabled: string;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
spacing: {
|
|
148
|
-
px: string;
|
|
149
|
-
'0.5': string;
|
|
150
|
-
'1': string;
|
|
151
|
-
'1.5': string;
|
|
152
|
-
'2': string;
|
|
153
|
-
'2.5': string;
|
|
154
|
-
'3': string;
|
|
155
|
-
'3.5': string;
|
|
156
|
-
'4': string;
|
|
157
|
-
'5': string;
|
|
158
|
-
'6': string;
|
|
159
|
-
'7': string;
|
|
160
|
-
'8': string;
|
|
161
|
-
'9': string;
|
|
162
|
-
'10': string;
|
|
163
|
-
'11': string;
|
|
164
|
-
'12': string;
|
|
165
|
-
'14': string;
|
|
166
|
-
'16': string;
|
|
167
|
-
'18': string;
|
|
168
|
-
'20': string;
|
|
169
|
-
'24': string;
|
|
170
|
-
'28': string;
|
|
171
|
-
'32': string;
|
|
172
|
-
'36': string;
|
|
173
|
-
'40': string;
|
|
174
|
-
'44': string;
|
|
175
|
-
'48': string;
|
|
176
|
-
'52': string;
|
|
177
|
-
'56': string;
|
|
178
|
-
'60': string;
|
|
179
|
-
'64': string;
|
|
180
|
-
'72': string;
|
|
181
|
-
'80': string;
|
|
182
|
-
'96': string;
|
|
183
|
-
component: {
|
|
184
|
-
xs: string;
|
|
185
|
-
sm: string;
|
|
186
|
-
md: string;
|
|
187
|
-
lg: string;
|
|
188
|
-
xl: string;
|
|
189
|
-
'2xl': string;
|
|
190
|
-
};
|
|
191
|
-
layout: {
|
|
192
|
-
sm: string;
|
|
193
|
-
md: string;
|
|
194
|
-
lg: string;
|
|
195
|
-
xl: string;
|
|
196
|
-
'2xl': string;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
typography: {
|
|
200
|
-
fontFamily: {
|
|
201
|
-
sans: string[];
|
|
202
|
-
serif: string[];
|
|
203
|
-
mono: string[];
|
|
204
|
-
display: string[];
|
|
205
|
-
body: string[];
|
|
206
|
-
};
|
|
207
|
-
fontSize: {
|
|
208
|
-
'3xs': string;
|
|
209
|
-
'2xs': string;
|
|
210
|
-
xs: string;
|
|
211
|
-
sm: string;
|
|
212
|
-
base: string;
|
|
213
|
-
lg: string;
|
|
214
|
-
xl: string;
|
|
215
|
-
'2xl': string;
|
|
216
|
-
'3xl': string;
|
|
217
|
-
'4xl': string;
|
|
218
|
-
'5xl': string;
|
|
219
|
-
'6xl': string;
|
|
220
|
-
'7xl': string;
|
|
221
|
-
'8xl': string;
|
|
222
|
-
'9xl': string;
|
|
223
|
-
};
|
|
224
|
-
fontWeight: {
|
|
225
|
-
thin: string;
|
|
226
|
-
extralight: string;
|
|
227
|
-
light: string;
|
|
228
|
-
normal: string;
|
|
229
|
-
medium: string;
|
|
230
|
-
semibold: string;
|
|
231
|
-
bold: string;
|
|
232
|
-
extrabold: string;
|
|
233
|
-
black: string;
|
|
234
|
-
};
|
|
235
|
-
lineHeight: {
|
|
236
|
-
none: string;
|
|
237
|
-
tight: string;
|
|
238
|
-
snug: string;
|
|
239
|
-
normal: string;
|
|
240
|
-
relaxed: string;
|
|
241
|
-
loose: string;
|
|
242
|
-
'3': string;
|
|
243
|
-
'4': string;
|
|
244
|
-
'5': string;
|
|
245
|
-
'6': string;
|
|
246
|
-
'7': string;
|
|
247
|
-
'8': string;
|
|
248
|
-
'9': string;
|
|
249
|
-
'10': string;
|
|
250
|
-
};
|
|
251
|
-
letterSpacing: {
|
|
252
|
-
tighter: string;
|
|
253
|
-
tight: string;
|
|
254
|
-
normal: string;
|
|
255
|
-
wide: string;
|
|
256
|
-
wider: string;
|
|
257
|
-
widest: string;
|
|
258
|
-
};
|
|
259
|
-
paragraphSpacing: {
|
|
260
|
-
none: string;
|
|
261
|
-
tight: string;
|
|
262
|
-
normal: string;
|
|
263
|
-
relaxed: string;
|
|
264
|
-
loose: string;
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
borderRadius: {
|
|
268
|
-
none: string;
|
|
269
|
-
xs: string;
|
|
270
|
-
sm: string;
|
|
271
|
-
md: string;
|
|
272
|
-
lg: string;
|
|
273
|
-
xl: string;
|
|
274
|
-
'2xl': string;
|
|
275
|
-
'3xl': string;
|
|
276
|
-
full: string;
|
|
277
|
-
button: {
|
|
278
|
-
sm: string;
|
|
279
|
-
md: string;
|
|
280
|
-
lg: string;
|
|
281
|
-
xl: string;
|
|
282
|
-
};
|
|
283
|
-
input: {
|
|
284
|
-
sm: string;
|
|
285
|
-
md: string;
|
|
286
|
-
lg: string;
|
|
287
|
-
};
|
|
288
|
-
card: {
|
|
289
|
-
sm: string;
|
|
290
|
-
md: string;
|
|
291
|
-
lg: string;
|
|
292
|
-
};
|
|
293
|
-
modal: string;
|
|
294
|
-
dropdown: string;
|
|
295
|
-
};
|
|
296
|
-
boxShadow: {
|
|
297
|
-
none: string;
|
|
298
|
-
xs: string;
|
|
299
|
-
sm: string;
|
|
300
|
-
md: string;
|
|
301
|
-
lg: string;
|
|
302
|
-
xl: string;
|
|
303
|
-
'2xl': string;
|
|
304
|
-
'3xl': string;
|
|
305
|
-
inner: string;
|
|
306
|
-
colored: string;
|
|
307
|
-
button: {
|
|
308
|
-
sm: string;
|
|
309
|
-
md: string;
|
|
310
|
-
lg: string;
|
|
311
|
-
};
|
|
312
|
-
card: {
|
|
313
|
-
sm: string;
|
|
314
|
-
md: string;
|
|
315
|
-
lg: string;
|
|
316
|
-
};
|
|
317
|
-
modal: string;
|
|
318
|
-
tooltip: string;
|
|
319
|
-
dropdown: string;
|
|
320
|
-
};
|
|
321
|
-
animation: {
|
|
322
|
-
duration: {
|
|
323
|
-
'75': string;
|
|
324
|
-
'100': string;
|
|
325
|
-
'150': string;
|
|
326
|
-
'200': string;
|
|
327
|
-
'300': string;
|
|
328
|
-
'500': string;
|
|
329
|
-
'700': string;
|
|
330
|
-
'1000': string;
|
|
331
|
-
};
|
|
332
|
-
easing: {
|
|
333
|
-
linear: string;
|
|
334
|
-
ease: string;
|
|
335
|
-
easeIn: string;
|
|
336
|
-
easeOut: string;
|
|
337
|
-
easeInOut: string;
|
|
338
|
-
'in-quad': string;
|
|
339
|
-
'in-cubic': string;
|
|
340
|
-
'in-quart': string;
|
|
341
|
-
'in-quint': string;
|
|
342
|
-
'in-sine': string;
|
|
343
|
-
'in-expo': string;
|
|
344
|
-
'in-circ': string;
|
|
345
|
-
'in-back': string;
|
|
346
|
-
'out-quad': string;
|
|
347
|
-
'out-cubic': string;
|
|
348
|
-
'out-quart': string;
|
|
349
|
-
'out-quint': string;
|
|
350
|
-
'out-sine': string;
|
|
351
|
-
'out-expo': string;
|
|
352
|
-
'out-circ': string;
|
|
353
|
-
'out-back': string;
|
|
354
|
-
'in-out-quad': string;
|
|
355
|
-
'in-out-cubic': string;
|
|
356
|
-
'in-out-quart': string;
|
|
357
|
-
'in-out-quint': string;
|
|
358
|
-
'in-out-sine': string;
|
|
359
|
-
'in-out-expo': string;
|
|
360
|
-
'in-out-circ': string;
|
|
361
|
-
'in-out-back': string;
|
|
362
|
-
};
|
|
363
|
-
delay: {
|
|
364
|
-
'75': string;
|
|
365
|
-
'100': string;
|
|
366
|
-
'150': string;
|
|
367
|
-
'200': string;
|
|
368
|
-
'300': string;
|
|
369
|
-
'500': string;
|
|
370
|
-
'700': string;
|
|
371
|
-
'1000': string;
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
breakpoints: {
|
|
375
|
-
xs: string;
|
|
376
|
-
sm: string;
|
|
377
|
-
md: string;
|
|
378
|
-
lg: string;
|
|
379
|
-
xl: string;
|
|
380
|
-
'2xl': string;
|
|
381
|
-
'3xl': string;
|
|
382
|
-
'4xl': string;
|
|
383
|
-
};
|
|
384
|
-
zIndex: {
|
|
385
|
-
hide: string;
|
|
386
|
-
auto: string;
|
|
387
|
-
base: string;
|
|
388
|
-
dropdown: string;
|
|
389
|
-
sticky: string;
|
|
390
|
-
fixed: string;
|
|
391
|
-
'modal-backdrop': string;
|
|
392
|
-
modal: string;
|
|
393
|
-
'popover-backdrop': string;
|
|
394
|
-
popover: string;
|
|
395
|
-
tooltip: string;
|
|
396
|
-
max: string;
|
|
397
|
-
};
|
|
398
|
-
transition: {
|
|
399
|
-
none: string;
|
|
400
|
-
all: string;
|
|
401
|
-
common: string;
|
|
402
|
-
colors: string;
|
|
403
|
-
opacity: string;
|
|
404
|
-
shadow: string;
|
|
405
|
-
transform: string;
|
|
406
|
-
button: string;
|
|
407
|
-
input: string;
|
|
408
|
-
modal: string;
|
|
409
|
-
tooltip: string;
|
|
410
|
-
dropdown: string;
|
|
411
|
-
};
|
|
412
|
-
blendMode: {
|
|
413
|
-
normal: string;
|
|
414
|
-
multiply: string;
|
|
415
|
-
screen: string;
|
|
416
|
-
overlay: string;
|
|
417
|
-
darken: string;
|
|
418
|
-
lighten: string;
|
|
419
|
-
'color-dodge': string;
|
|
420
|
-
'color-burn': string;
|
|
421
|
-
hardlight: string;
|
|
422
|
-
softlight: string;
|
|
423
|
-
difference: string;
|
|
424
|
-
exclusion: string;
|
|
425
|
-
hue: string;
|
|
426
|
-
saturation: string;
|
|
427
|
-
color: string;
|
|
428
|
-
luminosity: string;
|
|
429
|
-
};
|
|
430
|
-
cursor: {
|
|
431
|
-
auto: string;
|
|
432
|
-
default: string;
|
|
433
|
-
pointer: string;
|
|
434
|
-
wait: string;
|
|
435
|
-
text: string;
|
|
436
|
-
move: string;
|
|
437
|
-
'not-allowed': string;
|
|
438
|
-
grab: string;
|
|
439
|
-
grabbing: string;
|
|
440
|
-
'zoom-in': string;
|
|
441
|
-
'zoom-out': string;
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
export declare const defaultDesignTokens: DesignTokens;
|
|
445
|
-
export declare class DesignTokenGenerator {
|
|
446
|
-
private tokens;
|
|
447
|
-
constructor(tokens?: DesignTokens);
|
|
448
|
-
generateCSSVariables(): string;
|
|
449
|
-
generateDarkThemeCSSVariables(): string;
|
|
450
|
-
private generateDarkColors;
|
|
451
|
-
getToken(path: string): any;
|
|
452
|
-
updateToken(path: string, value: any): void;
|
|
453
|
-
toCSSCustomProperty(path: string): string;
|
|
454
|
-
fromCSSCustomProperty(property: string): string;
|
|
455
|
-
}
|
|
456
|
-
export declare const createDesignTokens: (tokens?: Partial<DesignTokens>) => DesignTokens;
|
|
457
|
-
export declare const generateDesignTokenCSS: (tokens?: Partial<DesignTokens>) => string;
|
|
458
|
-
export declare const generateDarkThemeCSS: (tokens?: Partial<DesignTokens>) => string;
|
|
459
|
-
export default DesignTokenGenerator;
|
package/dist/theme/index.d.ts
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Taro-Uno UI 设计系统
|
|
3
|
-
* 提供完整的设计令牌、主题管理、无障碍访问、响应式设计和动画系统
|
|
4
|
-
*/
|
|
5
|
-
import { ColorUtils, ResponsiveUtils, ThemeValidator } from './utils';
|
|
6
|
-
import type { ThemeProvider, useTheme } from './ThemeProvider.types';
|
|
7
|
-
export type { ThemeMode, ThemeConfig, ThemeColors, ThemeSpacing, ThemeTypography, ThemeBorderRadius, ThemeShadow, ThemeAnimation, } from './types';
|
|
8
|
-
export { defaultTheme, darkTheme } from './defaults';
|
|
9
|
-
export { default as themeUtils, ColorUtils, ResponsiveUtils, ThemeValidator, ThemePresets } from './utils';
|
|
10
|
-
export { default as CSSVariableGenerator, createCSSVariables, generateCSSVariablesString } from './variables';
|
|
11
|
-
export type { CSSVariables, VariableInheritance, VariableGroup } from './variables';
|
|
12
|
-
export { default as createStyleUtils, generateStyles, createStyles, styleUtils } from './styles';
|
|
13
|
-
export type { StyleUtils as StyleUtilsType } from './styles';
|
|
14
|
-
export { default as DesignTokenGenerator, createDesignTokens, generateDesignTokenCSS, generateDarkThemeCSS, } from './design-tokens';
|
|
15
|
-
export type { DesignTokens } from './design-tokens';
|
|
16
|
-
export { ThemeProvider, useTheme };
|
|
17
|
-
export * from './types';
|
|
18
|
-
export * from './defaults';
|
|
19
|
-
export * from './utils';
|
|
20
|
-
export * from './variables';
|
|
21
|
-
export * from './styles';
|
|
22
|
-
export * from './design-tokens';
|
|
23
|
-
export declare const themes: {
|
|
24
|
-
default: import("./types").ThemeConfig;
|
|
25
|
-
dark: import("./types").ThemeConfig;
|
|
26
|
-
};
|
|
27
|
-
export declare const themeTools: {
|
|
28
|
-
color: typeof ColorUtils;
|
|
29
|
-
responsive: typeof ResponsiveUtils;
|
|
30
|
-
validator: typeof ThemeValidator;
|
|
31
|
-
presets: {
|
|
32
|
-
default: {
|
|
33
|
-
name: string;
|
|
34
|
-
description: string;
|
|
35
|
-
colors: {
|
|
36
|
-
primary: string;
|
|
37
|
-
secondary: string;
|
|
38
|
-
success: string;
|
|
39
|
-
warning: string;
|
|
40
|
-
error: string;
|
|
41
|
-
info: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
purple: {
|
|
45
|
-
name: string;
|
|
46
|
-
description: string;
|
|
47
|
-
colors: {
|
|
48
|
-
primary: string;
|
|
49
|
-
secondary: string;
|
|
50
|
-
success: string;
|
|
51
|
-
warning: string;
|
|
52
|
-
error: string;
|
|
53
|
-
info: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
green: {
|
|
57
|
-
name: string;
|
|
58
|
-
description: string;
|
|
59
|
-
colors: {
|
|
60
|
-
primary: string;
|
|
61
|
-
secondary: string;
|
|
62
|
-
success: string;
|
|
63
|
-
warning: string;
|
|
64
|
-
error: string;
|
|
65
|
-
info: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
orange: {
|
|
69
|
-
name: string;
|
|
70
|
-
description: string;
|
|
71
|
-
colors: {
|
|
72
|
-
primary: string;
|
|
73
|
-
secondary: string;
|
|
74
|
-
success: string;
|
|
75
|
-
warning: string;
|
|
76
|
-
error: string;
|
|
77
|
-
info: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
pink: {
|
|
81
|
-
name: string;
|
|
82
|
-
description: string;
|
|
83
|
-
colors: {
|
|
84
|
-
primary: string;
|
|
85
|
-
secondary: string;
|
|
86
|
-
success: string;
|
|
87
|
-
warning: string;
|
|
88
|
-
error: string;
|
|
89
|
-
info: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
css: {
|
|
94
|
-
createVariables: (theme: import("./types").ThemeConfig) => import("./variables").CSSVariables;
|
|
95
|
-
generateString: (theme: import("./types").ThemeConfig) => string;
|
|
96
|
-
};
|
|
97
|
-
styles: {
|
|
98
|
-
createUtils: (theme: import("./types").ThemeConfig) => import("./styles").StyleUtils;
|
|
99
|
-
generateStyles: (theme: import("./types").ThemeConfig) => string;
|
|
100
|
-
createStyles: (styles: Record<string, any>) => Record<string, any>;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
declare const _default: {
|
|
104
|
-
themes: {
|
|
105
|
-
default: import("./types").ThemeConfig;
|
|
106
|
-
dark: import("./types").ThemeConfig;
|
|
107
|
-
};
|
|
108
|
-
themeTools: {
|
|
109
|
-
color: typeof ColorUtils;
|
|
110
|
-
responsive: typeof ResponsiveUtils;
|
|
111
|
-
validator: typeof ThemeValidator;
|
|
112
|
-
presets: {
|
|
113
|
-
default: {
|
|
114
|
-
name: string;
|
|
115
|
-
description: string;
|
|
116
|
-
colors: {
|
|
117
|
-
primary: string;
|
|
118
|
-
secondary: string;
|
|
119
|
-
success: string;
|
|
120
|
-
warning: string;
|
|
121
|
-
error: string;
|
|
122
|
-
info: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
purple: {
|
|
126
|
-
name: string;
|
|
127
|
-
description: string;
|
|
128
|
-
colors: {
|
|
129
|
-
primary: string;
|
|
130
|
-
secondary: string;
|
|
131
|
-
success: string;
|
|
132
|
-
warning: string;
|
|
133
|
-
error: string;
|
|
134
|
-
info: string;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
green: {
|
|
138
|
-
name: string;
|
|
139
|
-
description: string;
|
|
140
|
-
colors: {
|
|
141
|
-
primary: string;
|
|
142
|
-
secondary: string;
|
|
143
|
-
success: string;
|
|
144
|
-
warning: string;
|
|
145
|
-
error: string;
|
|
146
|
-
info: string;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
orange: {
|
|
150
|
-
name: string;
|
|
151
|
-
description: string;
|
|
152
|
-
colors: {
|
|
153
|
-
primary: string;
|
|
154
|
-
secondary: string;
|
|
155
|
-
success: string;
|
|
156
|
-
warning: string;
|
|
157
|
-
error: string;
|
|
158
|
-
info: string;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
|
-
pink: {
|
|
162
|
-
name: string;
|
|
163
|
-
description: string;
|
|
164
|
-
colors: {
|
|
165
|
-
primary: string;
|
|
166
|
-
secondary: string;
|
|
167
|
-
success: string;
|
|
168
|
-
warning: string;
|
|
169
|
-
error: string;
|
|
170
|
-
info: string;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
css: {
|
|
175
|
-
createVariables: (theme: import("./types").ThemeConfig) => import("./variables").CSSVariables;
|
|
176
|
-
generateString: (theme: import("./types").ThemeConfig) => string;
|
|
177
|
-
};
|
|
178
|
-
styles: {
|
|
179
|
-
createUtils: (theme: import("./types").ThemeConfig) => import("./styles").StyleUtils;
|
|
180
|
-
generateStyles: (theme: import("./types").ThemeConfig) => string;
|
|
181
|
-
createStyles: (styles: Record<string, any>) => Record<string, any>;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
defaultTheme: import("./types").ThemeConfig;
|
|
185
|
-
darkTheme: import("./types").ThemeConfig;
|
|
186
|
-
};
|
|
187
|
-
export default _default;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 断点配置
|
|
3
|
-
*/
|
|
4
|
-
export declare const breakpoints: {
|
|
5
|
-
xs: number;
|
|
6
|
-
sm: number;
|
|
7
|
-
md: number;
|
|
8
|
-
lg: number;
|
|
9
|
-
xl: number;
|
|
10
|
-
'2xl': number;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* 屏幕尺寸类型
|
|
14
|
-
*/
|
|
15
|
-
export interface ScreenSize {
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* 响应式上下文类型
|
|
21
|
-
*/
|
|
22
|
-
interface ResponsiveContextType {
|
|
23
|
-
screenSize: ScreenSize;
|
|
24
|
-
currentBreakpoint: keyof typeof breakpoints;
|
|
25
|
-
isMobile: boolean;
|
|
26
|
-
isTablet: boolean;
|
|
27
|
-
isDesktop: boolean;
|
|
28
|
-
matches: (breakpoint: keyof typeof breakpoints) => boolean;
|
|
29
|
-
matchesMinWidth: (width: number) => boolean;
|
|
30
|
-
matchesMaxWidth: (width: number) => boolean;
|
|
31
|
-
getResponsiveValue: <T>(values: Partial<Record<string, T>>, defaultValue: T) => T;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* 响应式提供者组件
|
|
35
|
-
*/
|
|
36
|
-
export declare function ResponsiveProvider({ children }: {
|
|
37
|
-
children: React.ReactNode;
|
|
38
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
39
|
-
/**
|
|
40
|
-
* 使用响应式上下文的 Hook
|
|
41
|
-
*/
|
|
42
|
-
export declare function useResponsive(): ResponsiveContextType;
|
|
43
|
-
/**
|
|
44
|
-
* 响应式值 Hook
|
|
45
|
-
*/
|
|
46
|
-
export declare function useResponsiveValue<T>(values: Partial<Record<string, T>>, defaultValue: T): T;
|
|
47
|
-
/**
|
|
48
|
-
* 断点 Hook
|
|
49
|
-
*/
|
|
50
|
-
export declare function useBreakpoint(): keyof typeof breakpoints;
|
|
51
|
-
/**
|
|
52
|
-
* 屏幕尺寸 Hook
|
|
53
|
-
*/
|
|
54
|
-
export declare function useScreenSize(): ScreenSize;
|
|
55
|
-
/**
|
|
56
|
-
* 设备类型 Hook
|
|
57
|
-
*/
|
|
58
|
-
export declare function useDeviceType(): {
|
|
59
|
-
isMobile: boolean;
|
|
60
|
-
isTablet: boolean;
|
|
61
|
-
isDesktop: boolean;
|
|
62
|
-
};
|
|
63
|
-
export default ResponsiveProvider;
|