@bifrostui/react 1.5.3 → 2.0.0-alpha.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/dist/ActionSheet/ActionSheet.css +16 -6
- package/dist/ActionSheet/ActionSheetItem.css +11 -17
- package/dist/ActionSheet/ActionSheetItem.js +3 -8
- package/dist/ActionSheet/index.css +89 -0
- package/dist/Alert/Alert.js +2 -1
- package/dist/Alert/__tests__/fixtures/A11yDemos.js +143 -0
- package/dist/Alert/index.css +18 -14
- package/dist/Avatar/Avatar.css +16 -12
- package/dist/Avatar/Avatar.js +3 -8
- package/dist/Avatar/AvatarGroup.css +19 -15
- package/dist/Avatar/AvatarGroup.js +2 -6
- package/dist/Avatar/index.css +93 -0
- package/dist/Backdrop/Backdrop.js +4 -3
- package/dist/Backdrop/__tests__/fixtures/A11yDemos.js +51 -0
- package/dist/Backdrop/index.css +19 -0
- package/dist/Badge/Badge.js +41 -19
- package/dist/Badge/__tests__/fixtures/A11yDemos.js +110 -0
- package/dist/Badge/hooks/useBadgeA11y.js +76 -0
- package/dist/Badge/hooks/useBadgeDisplay.js +56 -0
- package/dist/Badge/index.css +125 -0
- package/dist/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/Breadcrumb/index.css +38 -0
- package/dist/Button/Button.js +7 -11
- package/dist/Button/__tests__/fixtures/A11yDemos.js +81 -0
- package/dist/Button/index.css +267 -0
- package/dist/CSSTransition/CSSTransition.js +177 -0
- package/dist/CSSTransition/CSSTransition.types.js +15 -0
- package/dist/CSSTransition/demo/CSSTransitionDemo.js +76 -0
- package/dist/CSSTransition/demo/index.css +25 -0
- package/dist/CSSTransition/index.js +41 -0
- package/dist/Calendar/Calendar.js +136 -51
- package/dist/Calendar/__tests__/fixtures/A11yDemos.js +41 -0
- package/dist/Calendar/index.css +167 -0
- package/dist/Calendar/utils.js +33 -23
- package/dist/Card/Card.css +9 -0
- package/dist/Card/CardContent.css +1 -2
- package/dist/Card/CardFooter.css +2 -4
- package/dist/Card/CardHeader.css +5 -5
- package/dist/Card/CardHeader.js +2 -2
- package/dist/Card/index.css +77 -0
- package/dist/Checkbox/Checkbox.js +9 -12
- package/dist/Checkbox/CheckboxGroup.js +5 -8
- package/dist/Checkbox/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Checkbox/index.css +51 -0
- package/dist/CitySelector/CitySelector.miniapp.js +0 -1
- package/dist/CitySelector/CitySelectorCore.js +1 -1
- package/dist/CitySelector/Selector/index.css +4 -4
- package/dist/CitySelector/index.css +120 -0
- package/dist/Collapse/Collapse.js +19 -8
- package/dist/Collapse/Collapse.miniapp.js +152 -74
- package/dist/Collapse/index.css +45 -0
- package/dist/CollapsePanel/CollapsePanel.js +1 -1
- package/dist/CollapsePanel/CollapsePanelItem.js +45 -46
- package/dist/CollapsePanel/index.css +36 -0
- package/dist/Countdown/Countdown.js +64 -31
- package/dist/Countdown/__tests__/fixtures/A11yDemos.js +107 -0
- package/dist/Countdown/index.css +54 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/dist/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/dist/DesktopDatePicker/index.css +100 -0
- package/dist/Dialog/Dialog.js +56 -34
- package/dist/Dialog/FunctionalDialog.js +101 -90
- package/dist/Dialog/__tests__/fixtures/A11yDemos.js +78 -0
- package/dist/Dialog/index.css +39 -36
- package/dist/Dialog/index.js +9 -2
- package/dist/Divider/Divider.js +9 -6
- package/dist/Divider/index.css +47 -0
- package/dist/Drawer/Drawer.js +12 -18
- package/dist/Drawer/__tests__/fixtures/A11yDemos.js +148 -0
- package/dist/Drawer/index.css +36 -0
- package/dist/Fade/Fade.js +52 -56
- package/dist/IconButton/IconButton.js +26 -18
- package/dist/IconButton/index.css +205 -0
- package/dist/Image/Image.js +119 -119
- package/dist/Image/__tests__/fixtures/A11yDemos.js +130 -0
- package/dist/Image/index.css +7 -8
- package/dist/Input/Input.js +9 -13
- package/dist/Input/__tests__/fixtures/A11yDemos.js +81 -0
- package/dist/Input/index.css +70 -0
- package/dist/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/dist/ItemSelector/ItemSelectorCore.js +1 -1
- package/dist/List/List.css +7 -3
- package/dist/List/List.js +3 -8
- package/dist/List/ListItem.css +3 -3
- package/dist/List/ListItem.js +42 -44
- package/dist/List/ListItemContent.js +1 -4
- package/dist/List/ListItemExtra.js +9 -4
- package/dist/List/ListItemFooter.js +9 -4
- package/dist/List/ListItemHeader.js +9 -4
- package/dist/List/index.css +80 -0
- package/dist/Loading/Loading.js +14 -5
- package/dist/Loading/index.css +37 -0
- package/dist/Modal/Modal.js +48 -54
- package/dist/Modal/Modal.miniapp.js +49 -44
- package/dist/Modal/ModalManager.js +238 -0
- package/dist/Modal/__tests__/fixtures/A11yDemos.js +52 -0
- package/dist/Modal/index.css +15 -0
- package/dist/Modal/index.js +9 -1
- package/dist/Modal/useModal.js +190 -0
- package/dist/NavBar/NavBar.js +1 -2
- package/dist/NavBar/index.css +65 -0
- package/dist/Picker/Picker.css +21 -17
- package/dist/Picker/Picker.js +53 -21
- package/dist/Picker/PickerPanel.css +8 -8
- package/dist/Picker/PickerPanel.js +80 -59
- package/dist/Picker/__tests__/fixtures/A11yDemos.js +79 -0
- package/dist/Picker/index.css +124 -0
- package/dist/Picker/utils.js +9 -12
- package/dist/Popover/Popover.js +120 -131
- package/dist/Popover/__tests__/fixtures/A11yDemos.js +175 -0
- package/dist/Popover/hooks/index.js +36 -0
- package/dist/Popover/hooks/usePopoverA11y.js +66 -0
- package/dist/Popover/hooks/usePopoverEvents.js +150 -0
- package/dist/Popover/hooks/usePopoverPosition.js +124 -0
- package/dist/Popover/hooks/usePopoverState.js +54 -0
- package/dist/Popover/index.css +99 -0
- package/dist/Portal/PortalCore.js +2 -2
- package/dist/Progress/Progress.js +62 -7
- package/dist/Progress/__tests__/fixtures/A11yDemos.js +100 -0
- package/dist/Progress/index.css +28 -0
- package/dist/Radio/Radio.js +8 -11
- package/dist/Radio/RadioButtonIcon.js +6 -1
- package/dist/Radio/RadioGroup.js +2 -5
- package/dist/Radio/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Radio/index.css +69 -0
- package/dist/Rating/Rating.js +9 -19
- package/dist/Rating/index.css +65 -0
- package/dist/ScrollView/ScrollView.js +50 -211
- package/dist/ScrollView/__tests__/fixtures/A11yDemos.js +319 -0
- package/dist/ScrollView/useScrollView.js +300 -0
- package/dist/Select/Select.js +19 -18
- package/dist/Select/SelectOption.js +6 -2
- package/dist/Select/__tests__/fixtures/A11yDemos.js +154 -0
- package/dist/Select/index.css +118 -0
- package/dist/Skeleton/Skeleton.js +6 -10
- package/dist/Skeleton/index.css +63 -0
- package/dist/Slide/Slide.js +69 -74
- package/dist/Slider/Slider.js +8 -16
- package/dist/Slider/index.css +111 -0
- package/dist/Stack/Stack.js +1 -1
- package/dist/Stack/demo/index.css +2 -0
- package/dist/Steps/Step.css +14 -14
- package/dist/Steps/Step.js +81 -82
- package/dist/Steps/Steps.css +18 -14
- package/dist/Steps/Steps.js +57 -60
- package/dist/Steps/index.css +199 -0
- package/dist/SwipeAction/index.css +110 -0
- package/dist/Swiper/Swiper.js +19 -5
- package/dist/Swiper/index.css +25 -0
- package/dist/Switch/Switch.js +77 -79
- package/dist/Switch/__tests__/fixtures/A11yDemos.js +57 -0
- package/dist/Switch/index.css +153 -0
- package/dist/TabBar/TabBar.css +12 -8
- package/dist/TabBar/TabBar.js +3 -8
- package/dist/TabBar/TabBarItem.css +6 -0
- package/dist/TabBar/TabBarItem.js +3 -3
- package/dist/TabBar/index.css +59 -0
- package/dist/Tabs/Tab.css +10 -16
- package/dist/Tabs/Tab.js +37 -23
- package/dist/Tabs/TabPanel.js +9 -5
- package/dist/Tabs/Tabs.css +32 -21
- package/dist/Tabs/Tabs.js +87 -95
- package/dist/Tabs/TabsContext.js +3 -1
- package/dist/Tabs/index.css +135 -0
- package/dist/Tag/Tag.css +49 -23
- package/dist/Tag/Tag.js +3 -7
- package/dist/Tag/TagGroup.css +15 -11
- package/dist/Tag/TagGroup.js +16 -14
- package/dist/Tag/__tests__/fixtures/A11yDemos.js +196 -0
- package/dist/Tag/index.css +182 -0
- package/dist/TextArea/TextArea.js +54 -18
- package/dist/TextArea/__tests__/fixtures/A11yDemos.js +91 -0
- package/dist/TextArea/index.css +57 -0
- package/dist/ThemeProvider/ThemeProvider.js +1 -4
- package/dist/ThemeProvider/ThemeProvider.types.js +0 -12
- package/dist/ThemeProvider/utils/constants.js +4 -1
- package/dist/Toast/FunctionalToast.js +180 -96
- package/dist/Toast/Toast.js +70 -29
- package/dist/Toast/__tests__/fixtures/A11yDemos.js +54 -0
- package/dist/Toast/index.css +57 -0
- package/dist/Tooltip/Tooltip.js +64 -151
- package/dist/Tooltip/__tests__/fixtures/A11yDemos.js +100 -0
- package/dist/Tooltip/index.css +95 -0
- package/dist/Tooltip/useTooltip.js +313 -0
- package/dist/Transition/TransitionCore.js +27 -27
- package/dist/TransitionGroup/TransitionGroup.js +132 -0
- package/dist/TransitionGroup/TransitionGroup.types.js +15 -0
- package/dist/TransitionGroup/demo/TransitionGroupDemo.js +68 -0
- package/dist/TransitionGroup/demo/index.css +33 -0
- package/dist/TransitionGroup/index.js +41 -0
- package/dist/TransitionGroup/utils/childMapping.js +119 -0
- package/dist/_.._/benchmarks/components/Button.js +41 -0
- package/dist/_.._/benchmarks/components/Input.js +45 -0
- package/dist/_.._/benchmarks/components/Tabs.js +50 -0
- package/dist/benchmarks/components/Button.d.ts +3 -0
- package/dist/benchmarks/components/Input.d.ts +3 -0
- package/dist/benchmarks/components/Tabs.d.ts +3 -0
- package/dist/index.js +5 -1
- package/dist/locales/en-US.js +30 -2
- package/dist/locales/zh-CN.js +32 -1
- package/dist/locales/zh-TW.js +32 -1
- package/dist/src/ActionSheet/ActionSheetItem.types.d.ts +38 -0
- package/dist/src/Alert/Alert.types.d.ts +61 -0
- package/dist/src/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -0
- package/dist/src/Backdrop/Backdrop.d.ts +5 -0
- package/dist/src/Backdrop/Backdrop.types.d.ts +21 -0
- package/dist/src/Backdrop/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/dist/src/Badge/Badge.d.ts +5 -0
- package/dist/src/Badge/Badge.types.d.ts +56 -0
- package/dist/src/Badge/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/src/Badge/hooks/useBadgeA11y.d.ts +23 -0
- package/dist/src/Badge/hooks/useBadgeDisplay.d.ts +16 -0
- package/dist/src/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/dist/src/Button/Button.d.ts +5 -0
- package/dist/src/Button/Button.types.d.ts +53 -0
- package/dist/src/Button/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/dist/src/CSSTransition/CSSTransition.d.ts +4 -0
- package/dist/src/CSSTransition/CSSTransition.types.d.ts +13 -0
- package/dist/src/CSSTransition/index.d.ts +2 -0
- package/dist/src/Calendar/Calendar.d.ts +5 -0
- package/dist/src/Calendar/Calendar.types.d.ts +112 -0
- package/dist/src/Calendar/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/src/Calendar/utils.d.ts +29 -0
- package/dist/src/Checkbox/Checkbox.d.ts +5 -0
- package/dist/src/Checkbox/CheckboxGroup.d.ts +5 -0
- package/dist/src/Checkbox/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/src/CitySelector/CitySelector.types.d.ts +46 -0
- package/dist/src/CitySelector/CitySelectorCore.d.ts +5 -0
- package/dist/src/Collapse/Collapse.d.ts +5 -0
- package/dist/src/Collapse/Collapse.miniapp.d.ts +10 -0
- package/dist/src/CollapsePanel/CollapsePanel.d.ts +5 -0
- package/dist/src/Countdown/Countdown.d.ts +5 -0
- package/dist/src/Countdown/Countdown.types.d.ts +127 -0
- package/dist/src/Countdown/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/dist/src/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/dist/src/Dialog/Dialog.d.ts +8 -0
- package/dist/src/Dialog/Dialog.types.d.ts +137 -0
- package/dist/src/Dialog/FunctionalDialog.d.ts +10 -0
- package/dist/src/Dialog/__tests__/fixtures/A11yDemos.d.ts +9 -0
- package/dist/src/Dialog/index.d.ts +5 -0
- package/dist/src/Divider/Divider.d.ts +5 -0
- package/dist/src/Drawer/Drawer.d.ts +5 -0
- package/dist/src/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/IconButton/IconButton.d.ts +5 -0
- package/dist/src/IconButton/IconButton.types.d.ts +76 -0
- package/dist/src/Image/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/Input/Input.d.ts +5 -0
- package/dist/src/Input/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/ItemSelector/ItemSelector.types.d.ts +39 -0
- package/dist/src/ItemSelector/ItemSelectorCore.d.ts +5 -0
- package/dist/src/Loading/Loading.d.ts +5 -0
- package/dist/src/Modal/Modal.d.ts +5 -0
- package/dist/src/Modal/Modal.miniapp.d.ts +16 -0
- package/dist/src/Modal/Modal.types.d.ts +44 -0
- package/dist/src/Modal/ModalManager.d.ts +21 -0
- package/dist/src/Modal/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/dist/src/Modal/index.d.ts +6 -0
- package/dist/src/Modal/useModal.d.ts +24 -0
- package/dist/src/NavBar/NavBar.d.ts +5 -0
- package/dist/src/Picker/Picker.types.d.ts +121 -0
- package/dist/src/Picker/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/src/Picker/utils.d.ts +32 -0
- package/dist/src/Popover/Popover.d.ts +5 -0
- package/dist/src/Popover/Popover.types.d.ts +94 -0
- package/dist/src/Popover/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/src/Popover/hooks/index.d.ts +8 -0
- package/dist/src/Popover/hooks/usePopoverA11y.d.ts +14 -0
- package/dist/src/Popover/hooks/usePopoverEvents.d.ts +21 -0
- package/dist/src/Popover/hooks/usePopoverPosition.d.ts +17 -0
- package/dist/src/Popover/hooks/usePopoverState.d.ts +16 -0
- package/dist/src/Portal/Portal.types.d.ts +26 -0
- package/dist/src/Progress/Progress.d.ts +8 -0
- package/dist/src/Progress/Progress.types.d.ts +72 -0
- package/dist/src/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/Radio/Radio.d.ts +5 -0
- package/dist/src/Radio/RadioGroup.d.ts +5 -0
- package/dist/src/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/src/Rating/Rating.d.ts +5 -0
- package/dist/src/ScrollView/ScrollView.d.ts +5 -0
- package/dist/src/ScrollView/ScrollView.types.d.ts +83 -0
- package/dist/src/ScrollView/__tests__/fixtures/A11yDemos.d.ts +7 -0
- package/dist/src/ScrollView/useScrollView.d.ts +10 -0
- package/dist/src/Select/Select.d.ts +5 -0
- package/dist/src/Select/Select.types.d.ts +104 -0
- package/dist/src/Select/SelectOption.d.ts +5 -0
- package/dist/src/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/Select/selectContext.d.ts +3 -0
- package/dist/src/Skeleton/Skeleton.d.ts +5 -0
- package/dist/src/Slider/Slider.d.ts +5 -0
- package/dist/src/Stack/Stack.d.ts +5 -0
- package/dist/src/Steps/Steps.d.ts +5 -0
- package/dist/src/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/dist/src/Swiper/Swiper.d.ts +10 -0
- package/dist/src/Switch/Switch.d.ts +5 -0
- package/dist/src/Switch/Switch.types.d.ts +56 -0
- package/dist/src/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/dist/src/TabBar/TabBarContext.d.ts +27 -0
- package/dist/src/TabBar/index.types.d.ts +54 -0
- package/dist/src/Tabs/Tab.types.d.ts +12 -0
- package/dist/src/Tabs/TabPanel.d.ts +5 -0
- package/dist/src/Tabs/Tabs.types.d.ts +35 -0
- package/dist/src/Tabs/TabsContext.d.ts +8 -0
- package/dist/src/Tag/Tag.types.d.ts +23 -0
- package/dist/src/Tag/TagGroup.d.ts +5 -0
- package/dist/src/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/dist/src/TextArea/TextArea.d.ts +5 -0
- package/dist/src/TextArea/TextArea.types.d.ts +98 -0
- package/dist/src/TextArea/__tests__/fixtures/A11yDemos.d.ts +19 -0
- package/dist/src/ThemeProvider/ThemeProvider.types.d.ts +122 -0
- package/dist/src/ThemeProvider/utils/constants.d.ts +38 -0
- package/dist/src/ThemeProvider/utils/mountTokens.d.ts +26 -0
- package/dist/src/Toast/FunctionalToast.d.ts +3 -0
- package/dist/src/Toast/Toast.d.ts +5 -0
- package/dist/src/Toast/Toast.types.d.ts +104 -0
- package/dist/src/Toast/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/dist/src/Tooltip/Tooltip.d.ts +5 -0
- package/dist/src/Tooltip/Tooltip.types.d.ts +99 -0
- package/dist/src/Tooltip/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/dist/src/Tooltip/useTooltip.d.ts +29 -0
- package/dist/src/TransitionGroup/TransitionGroup.d.ts +7 -0
- package/dist/src/TransitionGroup/TransitionGroup.types.d.ts +47 -0
- package/dist/src/TransitionGroup/demo/TransitionGroupDemo.d.ts +4 -0
- package/dist/src/TransitionGroup/index.d.ts +2 -0
- package/dist/src/TransitionGroup/utils/childMapping.d.ts +27 -0
- package/dist/src/index.d.ts +58 -0
- package/dist/src/locales/base.d.ts +79 -0
- package/es/ActionSheet/ActionSheet.css +16 -6
- package/es/ActionSheet/ActionSheetItem.css +11 -17
- package/es/ActionSheet/ActionSheetItem.js +3 -8
- package/es/ActionSheet/index.css +89 -0
- package/es/Alert/Alert.js +2 -1
- package/es/Alert/__tests__/fixtures/A11yDemos.js +107 -0
- package/es/Alert/index.css +18 -14
- package/es/Avatar/Avatar.css +16 -12
- package/es/Avatar/Avatar.js +3 -8
- package/es/Avatar/AvatarGroup.css +19 -15
- package/es/Avatar/AvatarGroup.js +2 -6
- package/es/Avatar/index.css +93 -0
- package/es/Backdrop/Backdrop.js +4 -3
- package/es/Backdrop/__tests__/fixtures/A11yDemos.js +17 -0
- package/es/Backdrop/index.css +19 -0
- package/es/Badge/Badge.js +41 -19
- package/es/Badge/__tests__/fixtures/A11yDemos.js +70 -0
- package/es/Badge/hooks/useBadgeA11y.js +53 -0
- package/es/Badge/hooks/useBadgeDisplay.js +33 -0
- package/es/Badge/index.css +125 -0
- package/es/Breadcrumb/Breadcrumb.js +1 -1
- package/es/Breadcrumb/index.css +38 -0
- package/es/Button/Button.js +7 -11
- package/es/Button/__tests__/fixtures/A11yDemos.js +42 -0
- package/es/Button/index.css +267 -0
- package/es/CSSTransition/CSSTransition.js +153 -0
- package/es/CSSTransition/CSSTransition.types.js +1 -0
- package/es/CSSTransition/demo/CSSTransitionDemo.js +47 -0
- package/es/CSSTransition/demo/index.css +25 -0
- package/es/CSSTransition/index.js +6 -0
- package/es/Calendar/Calendar.js +136 -51
- package/es/Calendar/__tests__/fixtures/A11yDemos.js +8 -0
- package/es/Calendar/index.css +167 -0
- package/es/Calendar/utils.js +29 -20
- package/es/Card/Card.css +9 -0
- package/es/Card/CardContent.css +1 -2
- package/es/Card/CardFooter.css +2 -4
- package/es/Card/CardHeader.css +5 -5
- package/es/Card/CardHeader.js +2 -2
- package/es/Card/index.css +77 -0
- package/es/Checkbox/Checkbox.js +9 -12
- package/es/Checkbox/CheckboxGroup.js +5 -8
- package/es/Checkbox/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Checkbox/index.css +51 -0
- package/es/CitySelector/CitySelector.miniapp.js +0 -1
- package/es/CitySelector/CitySelectorCore.js +1 -1
- package/es/CitySelector/Selector/index.css +4 -4
- package/es/CitySelector/index.css +120 -0
- package/es/Collapse/Collapse.js +19 -8
- package/es/Collapse/Collapse.miniapp.js +154 -75
- package/es/Collapse/index.css +45 -0
- package/es/CollapsePanel/CollapsePanel.js +1 -1
- package/es/CollapsePanel/CollapsePanelItem.js +45 -46
- package/es/CollapsePanel/index.css +36 -0
- package/es/Countdown/Countdown.js +64 -31
- package/es/Countdown/__tests__/fixtures/A11yDemos.js +68 -0
- package/es/Countdown/index.css +54 -0
- package/es/DesktopDatePicker/DesktopDatePicker.css +61 -0
- package/es/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/es/DesktopDatePicker/index.css +100 -0
- package/es/Dialog/Dialog.js +57 -35
- package/es/Dialog/FunctionalDialog.js +105 -94
- package/es/Dialog/__tests__/fixtures/A11yDemos.js +43 -0
- package/es/Dialog/index.css +39 -36
- package/es/Dialog/index.js +10 -3
- package/es/Divider/Divider.js +9 -6
- package/es/Divider/index.css +47 -0
- package/es/Drawer/Drawer.js +13 -19
- package/es/Drawer/__tests__/fixtures/A11yDemos.js +112 -0
- package/es/Drawer/index.css +36 -0
- package/es/Fade/Fade.js +52 -56
- package/es/IconButton/IconButton.js +26 -18
- package/es/IconButton/index.css +205 -0
- package/es/Image/Image.js +119 -119
- package/es/Image/__tests__/fixtures/A11yDemos.js +92 -0
- package/es/Image/index.css +7 -8
- package/es/Input/Input.js +9 -13
- package/es/Input/__tests__/fixtures/A11yDemos.js +43 -0
- package/es/Input/index.css +70 -0
- package/es/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/es/ItemSelector/ItemSelectorCore.js +1 -1
- package/es/List/List.css +7 -3
- package/es/List/List.js +3 -8
- package/es/List/ListItem.css +3 -3
- package/es/List/ListItem.js +42 -44
- package/es/List/ListItemContent.js +1 -4
- package/es/List/ListItemExtra.js +9 -4
- package/es/List/ListItemFooter.js +9 -4
- package/es/List/ListItemHeader.js +9 -4
- package/es/List/index.css +80 -0
- package/es/Loading/Loading.js +14 -5
- package/es/Loading/index.css +37 -0
- package/es/Modal/Modal.js +49 -55
- package/es/Modal/Modal.miniapp.js +50 -45
- package/es/Modal/ModalManager.js +214 -0
- package/es/Modal/__tests__/fixtures/A11yDemos.js +18 -0
- package/es/Modal/index.css +15 -0
- package/es/Modal/index.js +6 -1
- package/es/Modal/useModal.js +169 -0
- package/es/NavBar/NavBar.js +1 -2
- package/es/NavBar/index.css +65 -0
- package/es/Picker/Picker.css +21 -17
- package/es/Picker/Picker.js +53 -21
- package/es/Picker/PickerPanel.css +8 -8
- package/es/Picker/PickerPanel.js +92 -60
- package/es/Picker/__tests__/fixtures/A11yDemos.js +46 -0
- package/es/Picker/index.css +124 -0
- package/es/Picker/utils.js +9 -12
- package/es/Popover/Popover.js +127 -140
- package/es/Popover/__tests__/fixtures/A11yDemos.js +135 -0
- package/es/Popover/hooks/index.js +10 -0
- package/es/Popover/hooks/usePopoverA11y.js +43 -0
- package/es/Popover/hooks/usePopoverEvents.js +127 -0
- package/es/Popover/hooks/usePopoverPosition.js +105 -0
- package/es/Popover/hooks/usePopoverState.js +31 -0
- package/es/Popover/index.css +99 -0
- package/es/Portal/PortalCore.js +2 -2
- package/es/Progress/Progress.js +62 -7
- package/es/Progress/__tests__/fixtures/A11yDemos.js +62 -0
- package/es/Progress/index.css +28 -0
- package/es/Radio/Radio.js +8 -11
- package/es/Radio/RadioButtonIcon.js +6 -1
- package/es/Radio/RadioGroup.js +2 -5
- package/es/Radio/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Radio/index.css +69 -0
- package/es/Rating/Rating.js +9 -19
- package/es/Rating/index.css +65 -0
- package/es/ScrollView/ScrollView.js +53 -212
- package/es/ScrollView/__tests__/fixtures/A11yDemos.js +283 -0
- package/es/ScrollView/useScrollView.js +279 -0
- package/es/Select/Select.js +19 -18
- package/es/Select/SelectOption.js +6 -2
- package/es/Select/__tests__/fixtures/A11yDemos.js +118 -0
- package/es/Select/index.css +118 -0
- package/es/Skeleton/Skeleton.js +6 -10
- package/es/Skeleton/index.css +63 -0
- package/es/Slide/Slide.js +69 -74
- package/es/Slider/Slider.js +8 -16
- package/es/Slider/index.css +111 -0
- package/es/Stack/Stack.js +1 -1
- package/es/Stack/demo/index.css +2 -0
- package/es/Steps/Step.css +14 -14
- package/es/Steps/Step.js +81 -82
- package/es/Steps/Steps.css +18 -14
- package/es/Steps/Steps.js +57 -60
- package/es/Steps/index.css +199 -0
- package/es/SwipeAction/index.css +110 -0
- package/es/Swiper/Swiper.js +19 -5
- package/es/Swiper/index.css +25 -0
- package/es/Switch/Switch.js +77 -79
- package/es/Switch/__tests__/fixtures/A11yDemos.js +22 -0
- package/es/Switch/index.css +153 -0
- package/es/TabBar/TabBar.css +12 -8
- package/es/TabBar/TabBar.js +3 -8
- package/es/TabBar/TabBarItem.css +6 -0
- package/es/TabBar/TabBarItem.js +2 -2
- package/es/TabBar/index.css +59 -0
- package/es/Tabs/Tab.css +10 -16
- package/es/Tabs/Tab.js +37 -23
- package/es/Tabs/TabPanel.js +8 -4
- package/es/Tabs/Tabs.css +32 -21
- package/es/Tabs/Tabs.js +87 -106
- package/es/Tabs/TabsContext.js +3 -1
- package/es/Tabs/index.css +135 -0
- package/es/Tag/Tag.css +49 -23
- package/es/Tag/Tag.js +3 -7
- package/es/Tag/TagGroup.css +15 -11
- package/es/Tag/TagGroup.js +16 -14
- package/es/Tag/__tests__/fixtures/A11yDemos.js +160 -0
- package/es/Tag/index.css +182 -0
- package/es/TextArea/TextArea.js +55 -19
- package/es/TextArea/__tests__/fixtures/A11yDemos.js +54 -0
- package/es/TextArea/index.css +57 -0
- package/es/ThemeProvider/ThemeProvider.js +1 -4
- package/es/ThemeProvider/utils/constants.js +4 -1
- package/es/Toast/FunctionalToast.js +185 -96
- package/es/Toast/Toast.js +70 -29
- package/es/Toast/__tests__/fixtures/A11yDemos.js +21 -0
- package/es/Toast/index.css +57 -0
- package/es/Tooltip/Tooltip.js +65 -159
- package/es/Tooltip/__tests__/fixtures/A11yDemos.js +60 -0
- package/es/Tooltip/index.css +95 -0
- package/es/Tooltip/useTooltip.js +290 -0
- package/es/Transition/TransitionCore.js +28 -28
- package/es/TransitionGroup/TransitionGroup.js +109 -0
- package/es/TransitionGroup/TransitionGroup.types.js +1 -0
- package/es/TransitionGroup/demo/TransitionGroupDemo.js +39 -0
- package/es/TransitionGroup/demo/index.css +33 -0
- package/es/TransitionGroup/index.js +6 -0
- package/es/TransitionGroup/utils/childMapping.js +93 -0
- package/es/_.._/benchmarks/components/Button.js +8 -0
- package/es/_.._/benchmarks/components/Input.js +12 -0
- package/es/_.._/benchmarks/components/Tabs.js +17 -0
- package/es/benchmarks/components/Button.d.ts +3 -0
- package/es/benchmarks/components/Input.d.ts +3 -0
- package/es/benchmarks/components/Tabs.d.ts +3 -0
- package/es/index.js +2 -0
- package/es/locales/en-US.js +30 -2
- package/es/locales/zh-CN.js +32 -1
- package/es/locales/zh-TW.js +32 -1
- package/es/src/ActionSheet/ActionSheetItem.types.d.ts +38 -0
- package/es/src/Alert/Alert.types.d.ts +61 -0
- package/es/src/Alert/__tests__/fixtures/A11yDemos.d.ts +17 -0
- package/es/src/Backdrop/Backdrop.d.ts +5 -0
- package/es/src/Backdrop/Backdrop.types.d.ts +21 -0
- package/es/src/Backdrop/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/es/src/Badge/Badge.d.ts +5 -0
- package/es/src/Badge/Badge.types.d.ts +56 -0
- package/es/src/Badge/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/src/Badge/hooks/useBadgeA11y.d.ts +23 -0
- package/es/src/Badge/hooks/useBadgeDisplay.d.ts +16 -0
- package/es/src/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/es/src/Button/Button.d.ts +5 -0
- package/es/src/Button/Button.types.d.ts +53 -0
- package/es/src/Button/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/es/src/CSSTransition/CSSTransition.d.ts +4 -0
- package/es/src/CSSTransition/CSSTransition.types.d.ts +13 -0
- package/es/src/CSSTransition/demo/CSSTransitionDemo.d.ts +4 -0
- package/es/src/CSSTransition/index.d.ts +2 -0
- package/es/src/Calendar/Calendar.d.ts +5 -0
- package/es/src/Calendar/Calendar.types.d.ts +112 -0
- package/es/src/Calendar/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/src/Calendar/utils.d.ts +29 -0
- package/es/src/Checkbox/Checkbox.d.ts +5 -0
- package/es/src/Checkbox/CheckboxGroup.d.ts +5 -0
- package/es/src/Checkbox/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/src/CitySelector/CitySelector.d.ts +4 -0
- package/es/src/CitySelector/CitySelector.miniapp.d.ts +4 -0
- package/es/src/CitySelector/CitySelector.types.d.ts +46 -0
- package/es/src/CitySelector/CitySelectorCore.d.ts +5 -0
- package/es/src/Collapse/Collapse.d.ts +5 -0
- package/es/src/Collapse/Collapse.miniapp.d.ts +10 -0
- package/es/src/CollapsePanel/CollapsePanel.d.ts +5 -0
- package/es/src/Countdown/Countdown.d.ts +5 -0
- package/es/src/Countdown/Countdown.types.d.ts +127 -0
- package/es/src/Countdown/__tests__/fixtures/A11yDemos.d.ts +23 -0
- package/es/src/DesktopDatePicker/DesktopDatePicker.d.ts +5 -0
- package/es/src/Dialog/Dialog.d.ts +8 -0
- package/es/src/Dialog/Dialog.types.d.ts +137 -0
- package/es/src/Dialog/FunctionalDialog.d.ts +10 -0
- package/es/src/Dialog/__tests__/fixtures/A11yDemos.d.ts +9 -0
- package/es/src/Dialog/index.d.ts +5 -0
- package/es/src/Divider/Divider.d.ts +5 -0
- package/es/src/Drawer/Drawer.d.ts +5 -0
- package/es/src/Drawer/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/IconButton/IconButton.d.ts +5 -0
- package/es/src/IconButton/IconButton.types.d.ts +76 -0
- package/es/src/Image/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/Input/Input.d.ts +5 -0
- package/es/src/Input/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/ItemSelector/ItemSelector.d.ts +4 -0
- package/es/src/ItemSelector/ItemSelector.miniapp.d.ts +4 -0
- package/es/src/ItemSelector/ItemSelector.types.d.ts +39 -0
- package/es/src/ItemSelector/ItemSelectorCore.d.ts +5 -0
- package/es/src/Loading/Loading.d.ts +5 -0
- package/es/src/Modal/Modal.d.ts +5 -0
- package/es/src/Modal/Modal.miniapp.d.ts +16 -0
- package/es/src/Modal/Modal.types.d.ts +44 -0
- package/es/src/Modal/ModalManager.d.ts +21 -0
- package/es/src/Modal/__tests__/fixtures/A11yDemos.d.ts +8 -0
- package/es/src/Modal/index.d.ts +6 -0
- package/es/src/Modal/useModal.d.ts +24 -0
- package/es/src/NavBar/NavBar.d.ts +5 -0
- package/es/src/Picker/Picker.types.d.ts +121 -0
- package/es/src/Picker/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/src/Picker/utils.d.ts +32 -0
- package/es/src/Popover/Popover.d.ts +5 -0
- package/es/src/Popover/Popover.types.d.ts +94 -0
- package/es/src/Popover/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/src/Popover/hooks/index.d.ts +8 -0
- package/es/src/Popover/hooks/usePopoverA11y.d.ts +14 -0
- package/es/src/Popover/hooks/usePopoverEvents.d.ts +21 -0
- package/es/src/Popover/hooks/usePopoverPosition.d.ts +17 -0
- package/es/src/Popover/hooks/usePopoverState.d.ts +16 -0
- package/es/src/Portal/Portal.types.d.ts +26 -0
- package/es/src/Progress/Progress.d.ts +8 -0
- package/es/src/Progress/Progress.types.d.ts +72 -0
- package/es/src/Progress/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/Radio/Radio.d.ts +5 -0
- package/es/src/Radio/RadioGroup.d.ts +5 -0
- package/es/src/Radio/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/src/Rating/Rating.d.ts +5 -0
- package/es/src/ScrollView/ScrollView.d.ts +5 -0
- package/es/src/ScrollView/ScrollView.types.d.ts +83 -0
- package/es/src/ScrollView/__tests__/fixtures/A11yDemos.d.ts +7 -0
- package/es/src/ScrollView/useScrollView.d.ts +10 -0
- package/es/src/Select/Select.d.ts +5 -0
- package/es/src/Select/Select.types.d.ts +104 -0
- package/es/src/Select/SelectOption.d.ts +5 -0
- package/es/src/Select/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/Select/selectContext.d.ts +3 -0
- package/es/src/Skeleton/Skeleton.d.ts +5 -0
- package/es/src/Slider/Slider.d.ts +5 -0
- package/es/src/Stack/Stack.d.ts +5 -0
- package/es/src/Stack/demo/StackDemo.d.ts +4 -0
- package/es/src/Steps/Steps.d.ts +5 -0
- package/es/src/SwipeAction/SwipeActionContext.d.ts +3 -0
- package/es/src/Swiper/Swiper.d.ts +10 -0
- package/es/src/Switch/Switch.d.ts +5 -0
- package/es/src/Switch/Switch.types.d.ts +56 -0
- package/es/src/Switch/__tests__/fixtures/A11yDemos.d.ts +15 -0
- package/es/src/TabBar/TabBarContext.d.ts +27 -0
- package/es/src/TabBar/index.types.d.ts +54 -0
- package/es/src/Tabs/Tab.types.d.ts +12 -0
- package/es/src/Tabs/TabPanel.d.ts +5 -0
- package/es/src/Tabs/Tabs.types.d.ts +35 -0
- package/es/src/Tabs/TabsContext.d.ts +8 -0
- package/es/src/Tag/Tag.types.d.ts +23 -0
- package/es/src/Tag/TagGroup.d.ts +5 -0
- package/es/src/Tag/__tests__/fixtures/A11yDemos.d.ts +21 -0
- package/es/src/TextArea/TextArea.d.ts +5 -0
- package/es/src/TextArea/TextArea.types.d.ts +98 -0
- package/es/src/TextArea/__tests__/fixtures/A11yDemos.d.ts +19 -0
- package/es/src/ThemeProvider/ThemeProvider.types.d.ts +122 -0
- package/es/src/ThemeProvider/utils/constants.d.ts +38 -0
- package/es/src/ThemeProvider/utils/mountTokens.d.ts +26 -0
- package/es/src/Toast/FunctionalToast.d.ts +3 -0
- package/es/src/Toast/Toast.d.ts +5 -0
- package/es/src/Toast/Toast.types.d.ts +104 -0
- package/es/src/Toast/__tests__/fixtures/A11yDemos.d.ts +2 -0
- package/es/src/Tooltip/Tooltip.d.ts +5 -0
- package/es/src/Tooltip/Tooltip.types.d.ts +99 -0
- package/es/src/Tooltip/__tests__/fixtures/A11yDemos.d.ts +25 -0
- package/es/src/Tooltip/useTooltip.d.ts +29 -0
- package/es/src/TransitionGroup/TransitionGroup.d.ts +7 -0
- package/es/src/TransitionGroup/TransitionGroup.types.d.ts +47 -0
- package/es/src/TransitionGroup/demo/TransitionGroupDemo.d.ts +4 -0
- package/es/src/TransitionGroup/index.d.ts +2 -0
- package/es/src/TransitionGroup/utils/childMapping.d.ts +27 -0
- package/es/src/index.d.ts +58 -0
- package/es/src/locales/base.d.ts +79 -0
- package/package.json +18 -7
- package/dist/ActionSheet/ActionSheetItem.types.d.ts +0 -38
- package/dist/Alert/Alert.types.d.ts +0 -61
- package/dist/Backdrop/Backdrop.css +0 -15
- package/dist/Backdrop/Backdrop.d.ts +0 -5
- package/dist/Backdrop/Backdrop.types.d.ts +0 -17
- package/dist/Badge/Badge.css +0 -105
- package/dist/Badge/Badge.d.ts +0 -5
- package/dist/Badge/Badge.types.d.ts +0 -27
- package/dist/Breadcrumb/Breadcrumb.css +0 -34
- package/dist/Breadcrumb/Breadcrumb.d.ts +0 -5
- package/dist/Button/Button.css +0 -237
- package/dist/Button/Button.d.ts +0 -5
- package/dist/Button/Button.types.d.ts +0 -52
- package/dist/Calendar/Calendar.css +0 -120
- package/dist/Calendar/Calendar.d.ts +0 -5
- package/dist/Calendar/Calendar.types.d.ts +0 -102
- package/dist/Calendar/utils.d.ts +0 -25
- package/dist/Checkbox/Checkbox.css +0 -47
- package/dist/Checkbox/Checkbox.d.ts +0 -5
- package/dist/Checkbox/CheckboxGroup.d.ts +0 -5
- package/dist/CitySelector/CitySelector.css +0 -116
- package/dist/CitySelector/CitySelector.miniapp.d.ts +0 -5
- package/dist/CitySelector/CitySelector.types.d.ts +0 -47
- package/dist/CitySelector/CitySelectorCore.d.ts +0 -5
- package/dist/CitySelector/miniapp.css +0 -4
- package/dist/Collapse/Collapse.css +0 -5
- package/dist/Collapse/Collapse.d.ts +0 -5
- package/dist/Collapse/Collapse.miniapp.d.ts +0 -5
- package/dist/CollapsePanel/CollapsePanel.css +0 -34
- package/dist/CollapsePanel/CollapsePanel.d.ts +0 -5
- package/dist/Countdown/Countdown.css +0 -39
- package/dist/Countdown/Countdown.d.ts +0 -5
- package/dist/Countdown/Countdown.types.d.ts +0 -123
- package/dist/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
- package/dist/Dialog/Dialog.d.ts +0 -5
- package/dist/Dialog/Dialog.types.d.ts +0 -114
- package/dist/Dialog/FunctionalDialog.d.ts +0 -3
- package/dist/Dialog/index.d.ts +0 -2
- package/dist/Divider/Divider.css +0 -43
- package/dist/Divider/Divider.d.ts +0 -5
- package/dist/Drawer/Drawer.css +0 -34
- package/dist/Drawer/Drawer.d.ts +0 -5
- package/dist/IconButton/IconButton.css +0 -152
- package/dist/IconButton/IconButton.d.ts +0 -5
- package/dist/IconButton/IconButton.types.d.ts +0 -40
- package/dist/Input/Input.css +0 -64
- package/dist/Input/Input.d.ts +0 -5
- package/dist/ItemSelector/ItemSelector.miniapp.d.ts +0 -5
- package/dist/ItemSelector/ItemSelector.types.d.ts +0 -40
- package/dist/ItemSelector/ItemSelectorCore.d.ts +0 -5
- package/dist/ItemSelector/miniapp.css +0 -4
- package/dist/Loading/Loading.css +0 -33
- package/dist/Loading/Loading.d.ts +0 -5
- package/dist/Modal/Modal.css +0 -15
- package/dist/Modal/Modal.d.ts +0 -5
- package/dist/Modal/Modal.miniapp.d.ts +0 -16
- package/dist/Modal/Modal.types.d.ts +0 -20
- package/dist/Modal/index.d.ts +0 -3
- package/dist/NavBar/NavBar.css +0 -61
- package/dist/NavBar/NavBar.d.ts +0 -5
- package/dist/Picker/Picker.types.d.ts +0 -121
- package/dist/Picker/utils.d.ts +0 -29
- package/dist/Popover/Popover.css +0 -95
- package/dist/Popover/Popover.d.ts +0 -5
- package/dist/Popover/Popover.types.d.ts +0 -57
- package/dist/Portal/Portal.types.d.ts +0 -26
- package/dist/Progress/Progress.css +0 -24
- package/dist/Progress/Progress.d.ts +0 -8
- package/dist/Progress/Progress.types.d.ts +0 -28
- package/dist/Radio/Radio.css +0 -66
- package/dist/Radio/Radio.d.ts +0 -5
- package/dist/Radio/RadioGroup.d.ts +0 -5
- package/dist/Rating/Rating.css +0 -56
- package/dist/Rating/Rating.d.ts +0 -5
- package/dist/ScrollView/ScrollView.d.ts +0 -5
- package/dist/ScrollView/ScrollView.types.d.ts +0 -257
- package/dist/Select/Select.css +0 -104
- package/dist/Select/Select.d.ts +0 -5
- package/dist/Select/Select.types.d.ts +0 -104
- package/dist/Select/SelectOption.d.ts +0 -5
- package/dist/Select/selectContext.d.ts +0 -4
- package/dist/Skeleton/Skeleton.css +0 -59
- package/dist/Skeleton/Skeleton.d.ts +0 -5
- package/dist/Slider/Slider.css +0 -106
- package/dist/Slider/Slider.d.ts +0 -5
- package/dist/Stack/Stack.d.ts +0 -5
- package/dist/Steps/Steps.d.ts +0 -5
- package/dist/SwipeAction/SwipeActionContext.d.ts +0 -4
- package/dist/Swiper/Swiper.css +0 -21
- package/dist/Swiper/Swiper.d.ts +0 -10
- package/dist/Switch/Switch.css +0 -142
- package/dist/Switch/Switch.d.ts +0 -5
- package/dist/Switch/Switch.types.d.ts +0 -56
- package/dist/TabBar/TabBarContext.d.ts +0 -27
- package/dist/TabBar/index.types.d.ts +0 -54
- package/dist/Tabs/Tab.types.d.ts +0 -12
- package/dist/Tabs/TabPanel.d.ts +0 -5
- package/dist/Tabs/Tabs.types.d.ts +0 -45
- package/dist/Tabs/TabsContext.d.ts +0 -9
- package/dist/Tag/Tag.types.d.ts +0 -23
- package/dist/Tag/TagGroup.d.ts +0 -5
- package/dist/TextArea/TextArea.css +0 -53
- package/dist/TextArea/TextArea.d.ts +0 -5
- package/dist/TextArea/TextArea.types.d.ts +0 -70
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +0 -127
- package/dist/ThemeProvider/utils/constants.d.ts +0 -38
- package/dist/ThemeProvider/utils/mountTokens.d.ts +0 -26
- package/dist/Toast/FunctionalToast.d.ts +0 -3
- package/dist/Toast/Toast.css +0 -53
- package/dist/Toast/Toast.d.ts +0 -5
- package/dist/Toast/Toast.types.d.ts +0 -106
- package/dist/Tooltip/Tooltip.css +0 -91
- package/dist/Tooltip/Tooltip.d.ts +0 -5
- package/dist/Tooltip/Tooltip.types.d.ts +0 -48
- package/dist/index.d.ts +0 -56
- package/dist/locales/base.d.ts +0 -51
- package/es/ActionSheet/ActionSheetItem.types.d.ts +0 -38
- package/es/Alert/Alert.types.d.ts +0 -61
- package/es/Backdrop/Backdrop.css +0 -15
- package/es/Backdrop/Backdrop.d.ts +0 -5
- package/es/Backdrop/Backdrop.types.d.ts +0 -17
- package/es/Badge/Badge.css +0 -105
- package/es/Badge/Badge.d.ts +0 -5
- package/es/Badge/Badge.types.d.ts +0 -27
- package/es/Breadcrumb/Breadcrumb.css +0 -34
- package/es/Breadcrumb/Breadcrumb.d.ts +0 -5
- package/es/Button/Button.css +0 -237
- package/es/Button/Button.d.ts +0 -5
- package/es/Button/Button.types.d.ts +0 -52
- package/es/Calendar/Calendar.css +0 -120
- package/es/Calendar/Calendar.d.ts +0 -5
- package/es/Calendar/Calendar.types.d.ts +0 -102
- package/es/Calendar/utils.d.ts +0 -25
- package/es/Checkbox/Checkbox.css +0 -47
- package/es/Checkbox/Checkbox.d.ts +0 -5
- package/es/Checkbox/CheckboxGroup.d.ts +0 -5
- package/es/CitySelector/CitySelector.css +0 -116
- package/es/CitySelector/CitySelector.miniapp.d.ts +0 -5
- package/es/CitySelector/CitySelector.types.d.ts +0 -47
- package/es/CitySelector/CitySelectorCore.d.ts +0 -5
- package/es/CitySelector/miniapp.css +0 -4
- package/es/Collapse/Collapse.css +0 -5
- package/es/Collapse/Collapse.d.ts +0 -5
- package/es/Collapse/Collapse.miniapp.d.ts +0 -5
- package/es/CollapsePanel/CollapsePanel.css +0 -34
- package/es/CollapsePanel/CollapsePanel.d.ts +0 -5
- package/es/Countdown/Countdown.css +0 -39
- package/es/Countdown/Countdown.d.ts +0 -5
- package/es/Countdown/Countdown.types.d.ts +0 -123
- package/es/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
- package/es/Dialog/Dialog.d.ts +0 -5
- package/es/Dialog/Dialog.types.d.ts +0 -114
- package/es/Dialog/FunctionalDialog.d.ts +0 -3
- package/es/Dialog/index.d.ts +0 -2
- package/es/Divider/Divider.css +0 -43
- package/es/Divider/Divider.d.ts +0 -5
- package/es/Drawer/Drawer.css +0 -34
- package/es/Drawer/Drawer.d.ts +0 -5
- package/es/IconButton/IconButton.css +0 -152
- package/es/IconButton/IconButton.d.ts +0 -5
- package/es/IconButton/IconButton.types.d.ts +0 -40
- package/es/Input/Input.css +0 -64
- package/es/Input/Input.d.ts +0 -5
- package/es/ItemSelector/ItemSelector.miniapp.d.ts +0 -5
- package/es/ItemSelector/ItemSelector.types.d.ts +0 -40
- package/es/ItemSelector/ItemSelectorCore.d.ts +0 -5
- package/es/ItemSelector/miniapp.css +0 -4
- package/es/Loading/Loading.css +0 -33
- package/es/Loading/Loading.d.ts +0 -5
- package/es/Modal/Modal.css +0 -15
- package/es/Modal/Modal.d.ts +0 -5
- package/es/Modal/Modal.miniapp.d.ts +0 -16
- package/es/Modal/Modal.types.d.ts +0 -20
- package/es/Modal/index.d.ts +0 -3
- package/es/NavBar/NavBar.css +0 -61
- package/es/NavBar/NavBar.d.ts +0 -5
- package/es/Picker/Picker.types.d.ts +0 -121
- package/es/Picker/utils.d.ts +0 -29
- package/es/Popover/Popover.css +0 -95
- package/es/Popover/Popover.d.ts +0 -5
- package/es/Popover/Popover.types.d.ts +0 -57
- package/es/Portal/Portal.types.d.ts +0 -26
- package/es/Progress/Progress.css +0 -24
- package/es/Progress/Progress.d.ts +0 -8
- package/es/Progress/Progress.types.d.ts +0 -28
- package/es/Radio/Radio.css +0 -66
- package/es/Radio/Radio.d.ts +0 -5
- package/es/Radio/RadioGroup.d.ts +0 -5
- package/es/Rating/Rating.css +0 -56
- package/es/Rating/Rating.d.ts +0 -5
- package/es/ScrollView/ScrollView.d.ts +0 -5
- package/es/ScrollView/ScrollView.types.d.ts +0 -257
- package/es/Select/Select.css +0 -104
- package/es/Select/Select.d.ts +0 -5
- package/es/Select/Select.types.d.ts +0 -104
- package/es/Select/SelectOption.d.ts +0 -5
- package/es/Select/selectContext.d.ts +0 -4
- package/es/Skeleton/Skeleton.css +0 -59
- package/es/Skeleton/Skeleton.d.ts +0 -5
- package/es/Slider/Slider.css +0 -106
- package/es/Slider/Slider.d.ts +0 -5
- package/es/Stack/Stack.d.ts +0 -5
- package/es/Steps/Steps.d.ts +0 -5
- package/es/SwipeAction/SwipeActionContext.d.ts +0 -4
- package/es/Swiper/Swiper.css +0 -21
- package/es/Swiper/Swiper.d.ts +0 -10
- package/es/Switch/Switch.css +0 -142
- package/es/Switch/Switch.d.ts +0 -5
- package/es/Switch/Switch.types.d.ts +0 -56
- package/es/TabBar/TabBarContext.d.ts +0 -27
- package/es/TabBar/index.types.d.ts +0 -54
- package/es/Tabs/Tab.types.d.ts +0 -12
- package/es/Tabs/TabPanel.d.ts +0 -5
- package/es/Tabs/Tabs.types.d.ts +0 -45
- package/es/Tabs/TabsContext.d.ts +0 -9
- package/es/Tag/Tag.types.d.ts +0 -23
- package/es/Tag/TagGroup.d.ts +0 -5
- package/es/TextArea/TextArea.css +0 -53
- package/es/TextArea/TextArea.d.ts +0 -5
- package/es/TextArea/TextArea.types.d.ts +0 -70
- package/es/ThemeProvider/ThemeProvider.types.d.ts +0 -127
- package/es/ThemeProvider/utils/constants.d.ts +0 -38
- package/es/ThemeProvider/utils/mountTokens.d.ts +0 -26
- package/es/Toast/FunctionalToast.d.ts +0 -3
- package/es/Toast/Toast.css +0 -53
- package/es/Toast/Toast.d.ts +0 -5
- package/es/Toast/Toast.types.d.ts +0 -106
- package/es/Tooltip/Tooltip.css +0 -91
- package/es/Tooltip/Tooltip.d.ts +0 -5
- package/es/Tooltip/Tooltip.types.d.ts +0 -48
- package/es/index.d.ts +0 -56
- package/es/locales/base.d.ts +0 -51
- /package/dist/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/dist/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/dist/Stack/{Stack.css → index.css} +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/ActionSheet.d.ts +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/ActionSheet.types.d.ts +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/ActionSheetContext.d.ts +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/ActionSheetItem.d.ts +0 -0
- /package/dist/{ActionSheet → src/ActionSheet}/index.d.ts +0 -0
- /package/dist/{Alert → src/Alert}/Alert.d.ts +0 -0
- /package/dist/{Alert → src/Alert}/index.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/Avatar.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/Avatar.types.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/AvatarGroup.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/AvatarGroup.types.d.ts +0 -0
- /package/dist/{Avatar → src/Avatar}/index.d.ts +0 -0
- /package/dist/{Backdrop → src/Backdrop}/index.d.ts +0 -0
- /package/dist/{Badge → src/Badge}/index.d.ts +0 -0
- /package/dist/{Breadcrumb → src/Breadcrumb}/Breadcrumb.types.d.ts +0 -0
- /package/dist/{Breadcrumb → src/Breadcrumb}/BreadcrumbItem.d.ts +0 -0
- /package/dist/{Breadcrumb → src/Breadcrumb}/index.d.ts +0 -0
- /package/dist/{Button → src/Button}/index.d.ts +0 -0
- /package/dist/{Stack/demo/StackDemo.d.ts → src/CSSTransition/demo/CSSTransitionDemo.d.ts} +0 -0
- /package/dist/{Calendar → src/Calendar}/index.d.ts +0 -0
- /package/dist/{Card → src/Card}/Card.d.ts +0 -0
- /package/dist/{Card → src/Card}/Card.types.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardContent.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardContent.types.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardFooter.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardFooter.types.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardHeader.d.ts +0 -0
- /package/dist/{Card → src/Card}/CardHeader.types.d.ts +0 -0
- /package/dist/{Card → src/Card}/index.d.ts +0 -0
- /package/dist/{Checkbox → src/Checkbox}/Checkbox.types.d.ts +0 -0
- /package/dist/{Checkbox → src/Checkbox}/CheckboxContext.d.ts +0 -0
- /package/dist/{Checkbox → src/Checkbox}/index.d.ts +0 -0
- /package/dist/{CitySelector → src/CitySelector}/CitySelector.d.ts +0 -0
- /package/{es/CitySelector/CitySelector.d.ts → dist/src/CitySelector/CitySelector.miniapp.d.ts} +0 -0
- /package/dist/{CitySelector → src/CitySelector}/Selector/index.d.ts +0 -0
- /package/dist/{CitySelector → src/CitySelector}/index.d.ts +0 -0
- /package/dist/{Collapse → src/Collapse}/Collapse.types.d.ts +0 -0
- /package/dist/{Collapse → src/Collapse}/index.d.ts +0 -0
- /package/dist/{CollapsePanel → src/CollapsePanel}/CollapsePanel.types.d.ts +0 -0
- /package/dist/{CollapsePanel → src/CollapsePanel}/CollapsePanelItem.d.ts +0 -0
- /package/dist/{CollapsePanel → src/CollapsePanel}/index.d.ts +0 -0
- /package/dist/{Countdown → src/Countdown}/index.d.ts +0 -0
- /package/dist/{Countdown → src/Countdown}/useCountdown.d.ts +0 -0
- /package/dist/{Countdown → src/Countdown}/utils.d.ts +0 -0
- /package/dist/{DatePicker → src/DatePicker}/DatePicker.d.ts +0 -0
- /package/dist/{DatePicker → src/DatePicker}/DatePicker.types.d.ts +0 -0
- /package/dist/{DatePicker → src/DatePicker}/constants.d.ts +0 -0
- /package/dist/{DatePicker → src/DatePicker}/index.d.ts +0 -0
- /package/dist/{DesktopDatePicker → src/DesktopDatePicker}/DesktopDatePicker.types.d.ts +0 -0
- /package/dist/{DesktopDatePicker → src/DesktopDatePicker}/index.d.ts +0 -0
- /package/dist/{DesktopDatePicker → src/DesktopDatePicker}/useGetDatePickerContent.d.ts +0 -0
- /package/dist/{DesktopDateTimePicker → src/DesktopDateTimePicker}/DesktopDateTimePicker.d.ts +0 -0
- /package/dist/{DesktopDateTimePicker → src/DesktopDateTimePicker}/DesktopDateTimePicker.types.d.ts +0 -0
- /package/dist/{DesktopDateTimePicker → src/DesktopDateTimePicker}/index.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/DesktopPicker.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/DesktopPicker.types.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/index.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/utils/calcAfterMounted.d.ts +0 -0
- /package/dist/{DesktopPicker → src/DesktopPicker}/utils/calcAfterMounted.miniapp.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePicker.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePicker.types.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePickerList.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/index.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/useGetTimePickerContent.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/utils/scrollUtil.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/utils/scrollUtil.miniapp.d.ts +0 -0
- /package/dist/{DesktopTimePicker → src/DesktopTimePicker}/utils/utils.d.ts +0 -0
- /package/dist/{Divider → src/Divider}/Divider.types.d.ts +0 -0
- /package/dist/{Divider → src/Divider}/index.d.ts +0 -0
- /package/dist/{Drawer → src/Drawer}/Drawer.types.d.ts +0 -0
- /package/dist/{Drawer → src/Drawer}/index.d.ts +0 -0
- /package/dist/{Fade → src/Fade}/Fade.d.ts +0 -0
- /package/dist/{Fade → src/Fade}/Fade.miniapp.d.ts +0 -0
- /package/dist/{Fade → src/Fade}/Fade.types.d.ts +0 -0
- /package/dist/{Fade → src/Fade}/index.d.ts +0 -0
- /package/dist/{IconButton → src/IconButton}/index.d.ts +0 -0
- /package/dist/{Image → src/Image}/Image.d.ts +0 -0
- /package/dist/{Image → src/Image}/Image.types.d.ts +0 -0
- /package/dist/{Image → src/Image}/index.d.ts +0 -0
- /package/dist/{Input → src/Input}/Input.types.d.ts +0 -0
- /package/dist/{Input → src/Input}/index.d.ts +0 -0
- /package/dist/{ItemSelector → src/ItemSelector}/ItemSelector.d.ts +0 -0
- /package/{es/ItemSelector/ItemSelector.d.ts → dist/src/ItemSelector/ItemSelector.miniapp.d.ts} +0 -0
- /package/dist/{ItemSelector → src/ItemSelector}/Selector/index.d.ts +0 -0
- /package/dist/{ItemSelector → src/ItemSelector}/index.d.ts +0 -0
- /package/dist/{List → src/List}/List.d.ts +0 -0
- /package/dist/{List → src/List}/List.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListContext.d.ts +0 -0
- /package/dist/{List → src/List}/ListItem.d.ts +0 -0
- /package/dist/{List → src/List}/ListItem.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemContent.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemContent.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemExtra.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemExtra.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemFooter.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemFooter.types.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemHeader.d.ts +0 -0
- /package/dist/{List → src/List}/ListItemHeader.types.d.ts +0 -0
- /package/dist/{List → src/List}/index.d.ts +0 -0
- /package/dist/{Loading → src/Loading}/Loading.types.d.ts +0 -0
- /package/dist/{Loading → src/Loading}/index.d.ts +0 -0
- /package/dist/{NavBar → src/NavBar}/NavBar.types.d.ts +0 -0
- /package/dist/{NavBar → src/NavBar}/index.d.ts +0 -0
- /package/dist/{Picker → src/Picker}/Picker.d.ts +0 -0
- /package/dist/{Picker → src/Picker}/PickerPanel.d.ts +0 -0
- /package/dist/{Picker → src/Picker}/index.d.ts +0 -0
- /package/dist/{Popover → src/Popover}/index.d.ts +0 -0
- /package/dist/{Portal → src/Portal}/Portal.d.ts +0 -0
- /package/dist/{Portal → src/Portal}/Portal.miniapp.d.ts +0 -0
- /package/dist/{Portal → src/Portal}/PortalCore.d.ts +0 -0
- /package/dist/{Portal → src/Portal}/index.d.ts +0 -0
- /package/dist/{Progress → src/Progress}/index.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/Radio.types.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/RadioButtonIcon.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/RadioContext.d.ts +0 -0
- /package/dist/{Radio → src/Radio}/index.d.ts +0 -0
- /package/dist/{Rating → src/Rating}/Rating.types.d.ts +0 -0
- /package/dist/{Rating → src/Rating}/index.d.ts +0 -0
- /package/dist/{ScrollView → src/ScrollView}/ScrollView.miniapp.d.ts +0 -0
- /package/dist/{ScrollView → src/ScrollView}/index.d.ts +0 -0
- /package/dist/{Select → src/Select}/index.d.ts +0 -0
- /package/dist/{Skeleton → src/Skeleton}/Skeleton.types.d.ts +0 -0
- /package/dist/{Skeleton → src/Skeleton}/index.d.ts +0 -0
- /package/dist/{Slide → src/Slide}/Slide.d.ts +0 -0
- /package/dist/{Slide → src/Slide}/Slide.miniapp.d.ts +0 -0
- /package/dist/{Slide → src/Slide}/Slide.types.d.ts +0 -0
- /package/dist/{Slide → src/Slide}/index.d.ts +0 -0
- /package/dist/{Slider → src/Slider}/Slider.types.d.ts +0 -0
- /package/dist/{Slider → src/Slider}/index.d.ts +0 -0
- /package/dist/{Slider → src/Slider}/utils.d.ts +0 -0
- /package/dist/{Stack → src/Stack}/Stack.types.d.ts +0 -0
- /package/{es → dist/src}/Stack/demo/StackDemo.d.ts +0 -0
- /package/dist/{Stack → src/Stack}/index.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/Step.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/Step.types.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/Steps.types.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/StepsContext.d.ts +0 -0
- /package/dist/{Steps → src/Steps}/index.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/SwipeAction.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/SwipeAction.types.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/SwipeActionItem.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/constants.d.ts +0 -0
- /package/dist/{SwipeAction → src/SwipeAction}/index.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/Swiper.miniapp.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/Swiper.types.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/SwiperItem.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/SwiperItem.miniapp.d.ts +0 -0
- /package/dist/{Swiper → src/Swiper}/index.d.ts +0 -0
- /package/dist/{Switch → src/Switch}/index.d.ts +0 -0
- /package/dist/{TabBar → src/TabBar}/TabBar.d.ts +0 -0
- /package/dist/{TabBar → src/TabBar}/TabBarItem.d.ts +0 -0
- /package/dist/{TabBar → src/TabBar}/index.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/Tab.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/TabPanel.types.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/Tabs.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/index.d.ts +0 -0
- /package/dist/{Tabs → src/Tabs}/utils/scroll.d.ts +0 -0
- /package/dist/{Tag → src/Tag}/Tag.d.ts +0 -0
- /package/dist/{Tag → src/Tag}/TagGroup.types.d.ts +0 -0
- /package/dist/{Tag → src/Tag}/index.d.ts +0 -0
- /package/dist/{TextArea → src/TextArea}/index.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/ThemeProvider.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/hooks/ThemeContext.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/hooks/createTheme.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/hooks/index.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/hooks/useTheme.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/index.d.ts +0 -0
- /package/dist/{ThemeProvider → src/ThemeProvider}/utils/index.d.ts +0 -0
- /package/dist/{Toast → src/Toast}/index.d.ts +0 -0
- /package/dist/{Tooltip → src/Tooltip}/index.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/Transition.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/Transition.miniapp.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/Transition.types.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/TransitionCore.d.ts +0 -0
- /package/dist/{Transition → src/Transition}/index.d.ts +0 -0
- /package/dist/{locales → src/locales}/en-US.d.ts +0 -0
- /package/dist/{locales → src/locales}/hooks/useLocaleText.d.ts +0 -0
- /package/dist/{locales → src/locales}/index.d.ts +0 -0
- /package/dist/{locales → src/locales}/zh-CN.d.ts +0 -0
- /package/dist/{locales → src/locales}/zh-TW.d.ts +0 -0
- /package/es/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/es/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/es/Stack/{Stack.css → index.css} +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/ActionSheet.d.ts +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/ActionSheet.types.d.ts +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/ActionSheetContext.d.ts +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/ActionSheetItem.d.ts +0 -0
- /package/es/{ActionSheet → src/ActionSheet}/index.d.ts +0 -0
- /package/es/{Alert → src/Alert}/Alert.d.ts +0 -0
- /package/es/{Alert → src/Alert}/index.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/Avatar.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/Avatar.types.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/AvatarGroup.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/AvatarGroup.types.d.ts +0 -0
- /package/es/{Avatar → src/Avatar}/index.d.ts +0 -0
- /package/es/{Backdrop → src/Backdrop}/index.d.ts +0 -0
- /package/es/{Badge → src/Badge}/index.d.ts +0 -0
- /package/es/{Breadcrumb → src/Breadcrumb}/Breadcrumb.types.d.ts +0 -0
- /package/es/{Breadcrumb → src/Breadcrumb}/BreadcrumbItem.d.ts +0 -0
- /package/es/{Breadcrumb → src/Breadcrumb}/index.d.ts +0 -0
- /package/es/{Button → src/Button}/index.d.ts +0 -0
- /package/es/{Calendar → src/Calendar}/index.d.ts +0 -0
- /package/es/{Card → src/Card}/Card.d.ts +0 -0
- /package/es/{Card → src/Card}/Card.types.d.ts +0 -0
- /package/es/{Card → src/Card}/CardContent.d.ts +0 -0
- /package/es/{Card → src/Card}/CardContent.types.d.ts +0 -0
- /package/es/{Card → src/Card}/CardFooter.d.ts +0 -0
- /package/es/{Card → src/Card}/CardFooter.types.d.ts +0 -0
- /package/es/{Card → src/Card}/CardHeader.d.ts +0 -0
- /package/es/{Card → src/Card}/CardHeader.types.d.ts +0 -0
- /package/es/{Card → src/Card}/index.d.ts +0 -0
- /package/es/{Checkbox → src/Checkbox}/Checkbox.types.d.ts +0 -0
- /package/es/{Checkbox → src/Checkbox}/CheckboxContext.d.ts +0 -0
- /package/es/{Checkbox → src/Checkbox}/index.d.ts +0 -0
- /package/es/{CitySelector → src/CitySelector}/Selector/index.d.ts +0 -0
- /package/es/{CitySelector → src/CitySelector}/index.d.ts +0 -0
- /package/es/{Collapse → src/Collapse}/Collapse.types.d.ts +0 -0
- /package/es/{Collapse → src/Collapse}/index.d.ts +0 -0
- /package/es/{CollapsePanel → src/CollapsePanel}/CollapsePanel.types.d.ts +0 -0
- /package/es/{CollapsePanel → src/CollapsePanel}/CollapsePanelItem.d.ts +0 -0
- /package/es/{CollapsePanel → src/CollapsePanel}/index.d.ts +0 -0
- /package/es/{Countdown → src/Countdown}/index.d.ts +0 -0
- /package/es/{Countdown → src/Countdown}/useCountdown.d.ts +0 -0
- /package/es/{Countdown → src/Countdown}/utils.d.ts +0 -0
- /package/es/{DatePicker → src/DatePicker}/DatePicker.d.ts +0 -0
- /package/es/{DatePicker → src/DatePicker}/DatePicker.types.d.ts +0 -0
- /package/es/{DatePicker → src/DatePicker}/constants.d.ts +0 -0
- /package/es/{DatePicker → src/DatePicker}/index.d.ts +0 -0
- /package/es/{DesktopDatePicker → src/DesktopDatePicker}/DesktopDatePicker.types.d.ts +0 -0
- /package/es/{DesktopDatePicker → src/DesktopDatePicker}/index.d.ts +0 -0
- /package/es/{DesktopDatePicker → src/DesktopDatePicker}/useGetDatePickerContent.d.ts +0 -0
- /package/es/{DesktopDateTimePicker → src/DesktopDateTimePicker}/DesktopDateTimePicker.d.ts +0 -0
- /package/es/{DesktopDateTimePicker → src/DesktopDateTimePicker}/DesktopDateTimePicker.types.d.ts +0 -0
- /package/es/{DesktopDateTimePicker → src/DesktopDateTimePicker}/index.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/DesktopPicker.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/DesktopPicker.types.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/index.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/utils/calcAfterMounted.d.ts +0 -0
- /package/es/{DesktopPicker → src/DesktopPicker}/utils/calcAfterMounted.miniapp.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePicker.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePicker.types.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/DesktopTimePickerList.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/index.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/useGetTimePickerContent.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/utils/scrollUtil.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/utils/scrollUtil.miniapp.d.ts +0 -0
- /package/es/{DesktopTimePicker → src/DesktopTimePicker}/utils/utils.d.ts +0 -0
- /package/es/{Divider → src/Divider}/Divider.types.d.ts +0 -0
- /package/es/{Divider → src/Divider}/index.d.ts +0 -0
- /package/es/{Drawer → src/Drawer}/Drawer.types.d.ts +0 -0
- /package/es/{Drawer → src/Drawer}/index.d.ts +0 -0
- /package/es/{Fade → src/Fade}/Fade.d.ts +0 -0
- /package/es/{Fade → src/Fade}/Fade.miniapp.d.ts +0 -0
- /package/es/{Fade → src/Fade}/Fade.types.d.ts +0 -0
- /package/es/{Fade → src/Fade}/index.d.ts +0 -0
- /package/es/{IconButton → src/IconButton}/index.d.ts +0 -0
- /package/es/{Image → src/Image}/Image.d.ts +0 -0
- /package/es/{Image → src/Image}/Image.types.d.ts +0 -0
- /package/es/{Image → src/Image}/index.d.ts +0 -0
- /package/es/{Input → src/Input}/Input.types.d.ts +0 -0
- /package/es/{Input → src/Input}/index.d.ts +0 -0
- /package/es/{ItemSelector → src/ItemSelector}/Selector/index.d.ts +0 -0
- /package/es/{ItemSelector → src/ItemSelector}/index.d.ts +0 -0
- /package/es/{List → src/List}/List.d.ts +0 -0
- /package/es/{List → src/List}/List.types.d.ts +0 -0
- /package/es/{List → src/List}/ListContext.d.ts +0 -0
- /package/es/{List → src/List}/ListItem.d.ts +0 -0
- /package/es/{List → src/List}/ListItem.types.d.ts +0 -0
- /package/es/{List → src/List}/ListItemContent.d.ts +0 -0
- /package/es/{List → src/List}/ListItemContent.types.d.ts +0 -0
- /package/es/{List → src/List}/ListItemExtra.d.ts +0 -0
- /package/es/{List → src/List}/ListItemExtra.types.d.ts +0 -0
- /package/es/{List → src/List}/ListItemFooter.d.ts +0 -0
- /package/es/{List → src/List}/ListItemFooter.types.d.ts +0 -0
- /package/es/{List → src/List}/ListItemHeader.d.ts +0 -0
- /package/es/{List → src/List}/ListItemHeader.types.d.ts +0 -0
- /package/es/{List → src/List}/index.d.ts +0 -0
- /package/es/{Loading → src/Loading}/Loading.types.d.ts +0 -0
- /package/es/{Loading → src/Loading}/index.d.ts +0 -0
- /package/es/{NavBar → src/NavBar}/NavBar.types.d.ts +0 -0
- /package/es/{NavBar → src/NavBar}/index.d.ts +0 -0
- /package/es/{Picker → src/Picker}/Picker.d.ts +0 -0
- /package/es/{Picker → src/Picker}/PickerPanel.d.ts +0 -0
- /package/es/{Picker → src/Picker}/index.d.ts +0 -0
- /package/es/{Popover → src/Popover}/index.d.ts +0 -0
- /package/es/{Portal → src/Portal}/Portal.d.ts +0 -0
- /package/es/{Portal → src/Portal}/Portal.miniapp.d.ts +0 -0
- /package/es/{Portal → src/Portal}/PortalCore.d.ts +0 -0
- /package/es/{Portal → src/Portal}/index.d.ts +0 -0
- /package/es/{Progress → src/Progress}/index.d.ts +0 -0
- /package/es/{Radio → src/Radio}/Radio.types.d.ts +0 -0
- /package/es/{Radio → src/Radio}/RadioButtonIcon.d.ts +0 -0
- /package/es/{Radio → src/Radio}/RadioContext.d.ts +0 -0
- /package/es/{Radio → src/Radio}/index.d.ts +0 -0
- /package/es/{Rating → src/Rating}/Rating.types.d.ts +0 -0
- /package/es/{Rating → src/Rating}/index.d.ts +0 -0
- /package/es/{ScrollView → src/ScrollView}/ScrollView.miniapp.d.ts +0 -0
- /package/es/{ScrollView → src/ScrollView}/index.d.ts +0 -0
- /package/es/{Select → src/Select}/index.d.ts +0 -0
- /package/es/{Skeleton → src/Skeleton}/Skeleton.types.d.ts +0 -0
- /package/es/{Skeleton → src/Skeleton}/index.d.ts +0 -0
- /package/es/{Slide → src/Slide}/Slide.d.ts +0 -0
- /package/es/{Slide → src/Slide}/Slide.miniapp.d.ts +0 -0
- /package/es/{Slide → src/Slide}/Slide.types.d.ts +0 -0
- /package/es/{Slide → src/Slide}/index.d.ts +0 -0
- /package/es/{Slider → src/Slider}/Slider.types.d.ts +0 -0
- /package/es/{Slider → src/Slider}/index.d.ts +0 -0
- /package/es/{Slider → src/Slider}/utils.d.ts +0 -0
- /package/es/{Stack → src/Stack}/Stack.types.d.ts +0 -0
- /package/es/{Stack → src/Stack}/index.d.ts +0 -0
- /package/es/{Steps → src/Steps}/Step.d.ts +0 -0
- /package/es/{Steps → src/Steps}/Step.types.d.ts +0 -0
- /package/es/{Steps → src/Steps}/Steps.types.d.ts +0 -0
- /package/es/{Steps → src/Steps}/StepsContext.d.ts +0 -0
- /package/es/{Steps → src/Steps}/index.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/SwipeAction.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/SwipeAction.types.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/SwipeActionItem.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/constants.d.ts +0 -0
- /package/es/{SwipeAction → src/SwipeAction}/index.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/Swiper.miniapp.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/Swiper.types.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/SwiperItem.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/SwiperItem.miniapp.d.ts +0 -0
- /package/es/{Swiper → src/Swiper}/index.d.ts +0 -0
- /package/es/{Switch → src/Switch}/index.d.ts +0 -0
- /package/es/{TabBar → src/TabBar}/TabBar.d.ts +0 -0
- /package/es/{TabBar → src/TabBar}/TabBarItem.d.ts +0 -0
- /package/es/{TabBar → src/TabBar}/index.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/Tab.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/TabPanel.types.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/Tabs.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/index.d.ts +0 -0
- /package/es/{Tabs → src/Tabs}/utils/scroll.d.ts +0 -0
- /package/es/{Tag → src/Tag}/Tag.d.ts +0 -0
- /package/es/{Tag → src/Tag}/TagGroup.types.d.ts +0 -0
- /package/es/{Tag → src/Tag}/index.d.ts +0 -0
- /package/es/{TextArea → src/TextArea}/index.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/ThemeProvider.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/hooks/ThemeContext.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/hooks/createTheme.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/hooks/index.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/hooks/useTheme.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/index.d.ts +0 -0
- /package/es/{ThemeProvider → src/ThemeProvider}/utils/index.d.ts +0 -0
- /package/es/{Toast → src/Toast}/index.d.ts +0 -0
- /package/es/{Tooltip → src/Tooltip}/index.d.ts +0 -0
- /package/es/{Transition → src/Transition}/Transition.d.ts +0 -0
- /package/es/{Transition → src/Transition}/Transition.miniapp.d.ts +0 -0
- /package/es/{Transition → src/Transition}/Transition.types.d.ts +0 -0
- /package/es/{Transition → src/Transition}/TransitionCore.d.ts +0 -0
- /package/es/{Transition → src/Transition}/index.d.ts +0 -0
- /package/es/{locales → src/locales}/en-US.d.ts +0 -0
- /package/es/{locales → src/locales}/hooks/useLocaleText.d.ts +0 -0
- /package/es/{locales → src/locales}/index.d.ts +0 -0
- /package/es/{locales → src/locales}/zh-CN.d.ts +0 -0
- /package/es/{locales → src/locales}/zh-TW.d.ts +0 -0
package/es/Image/Image.js
CHANGED
|
@@ -34,127 +34,127 @@ import clsx from "clsx";
|
|
|
34
34
|
import React, { useLayoutEffect, useState } from "react";
|
|
35
35
|
import "./index.css";
|
|
36
36
|
const prefixCls = "bui-image";
|
|
37
|
-
const Image = /* @__PURE__ */ React.forwardRef(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
placeholder,
|
|
53
|
-
onClick,
|
|
54
|
-
onLoad,
|
|
55
|
-
onError,
|
|
56
|
-
imgProps
|
|
57
|
-
} = _a, others = __objRest(_a, [
|
|
58
|
-
"fit",
|
|
59
|
-
"src",
|
|
60
|
-
"lazy",
|
|
61
|
-
"style",
|
|
62
|
-
"webp",
|
|
63
|
-
"alt",
|
|
64
|
-
"showMenu",
|
|
65
|
-
"width",
|
|
66
|
-
"height",
|
|
67
|
-
"fallback",
|
|
68
|
-
"className",
|
|
69
|
-
"placeholder",
|
|
70
|
-
"onClick",
|
|
71
|
-
"onLoad",
|
|
72
|
-
"onError",
|
|
73
|
-
"imgProps"
|
|
74
|
-
]);
|
|
75
|
-
const modeEnum = {
|
|
76
|
-
none: "center",
|
|
77
|
-
// 被替换的内容将保持其原有的尺寸居中裁切展示
|
|
78
|
-
contain: "aspectFit",
|
|
79
|
-
// 被替换的内容将被缩放,以在填充元素的内容框时保持其宽高比。 整个对象在填充盒子的同时保留其长宽比,因此如果宽高比与框的宽高比不匹配
|
|
80
|
-
cover: "aspectFill",
|
|
81
|
-
// 被替换的内容在保持其宽高比的同时填充元素的整个内容框。如果对象的宽高比与内容框不相匹配,该对象将被剪裁以适应内容框。
|
|
82
|
-
fill: "scaleToFill",
|
|
83
|
-
// 被替换的内容正好填充元素的内容框。整个对象将完全填充此框。如果对象的宽高比与内容框不相匹配,那么该对象将被拉伸以适应内容框
|
|
84
|
-
"scale-down": "aspectFit",
|
|
85
|
-
// 内容的尺寸与 none 或 contain 中的一个相同,取决于它们两个之间谁得到的对象尺寸会更小一些。
|
|
86
|
-
widthFix: "widthFix",
|
|
87
|
-
// 【微信小程序】缩放模式,宽度不变,高度自动变化,保持原图宽高比不变。
|
|
88
|
-
heightFix: "heightFix"
|
|
89
|
-
// 【微信小程序】缩放模式,高度不变,宽度自动变化,保持原图宽高比不变。
|
|
90
|
-
};
|
|
91
|
-
useLayoutEffect(() => {
|
|
92
|
-
setLoaded(false);
|
|
93
|
-
setFailed(false);
|
|
94
|
-
}, [src]);
|
|
95
|
-
function defaultIconWrap(icon) {
|
|
96
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-default-icon-wrap` }, icon);
|
|
97
|
-
}
|
|
98
|
-
const defaultIcon = defaultIconWrap(
|
|
99
|
-
/* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-default-icon-item` })
|
|
100
|
-
);
|
|
101
|
-
const defaultPlaceholder = placeholder === false ? [] : placeholder !== true && defaultIconWrap(placeholder) || defaultIcon;
|
|
102
|
-
const defaultFallback = fallback && defaultIconWrap(fallback) || defaultPlaceholder;
|
|
103
|
-
const miniAttr = {
|
|
104
|
-
webp,
|
|
105
|
-
lazyLoad: lazy,
|
|
106
|
-
"lazy-load": lazy,
|
|
107
|
-
mode: fit && modeEnum[fit],
|
|
108
|
-
showMenuByLongpress: showMenu
|
|
109
|
-
};
|
|
110
|
-
const imgEle = /* @__PURE__ */ React.createElement(
|
|
111
|
-
"img",
|
|
112
|
-
__spreadValues(__spreadProps(__spreadValues({
|
|
113
|
-
src,
|
|
114
|
-
loading: lazy ? "lazy" : "eager",
|
|
115
|
-
onLoad: (e) => {
|
|
116
|
-
setLoaded(true);
|
|
117
|
-
onLoad == null ? void 0 : onLoad(e);
|
|
118
|
-
},
|
|
119
|
-
onError: (e) => {
|
|
120
|
-
setFailed(true);
|
|
121
|
-
onError == null ? void 0 : onError(e);
|
|
122
|
-
},
|
|
123
|
-
alt
|
|
124
|
-
}, imgProps), {
|
|
125
|
-
style: __spreadValues({ objectFit: fit }, (imgProps == null ? void 0 : imgProps.style) || {}),
|
|
126
|
-
className: clsx(
|
|
127
|
-
`${prefixCls}-img`,
|
|
128
|
-
// 无占位且不onFail时直接展示img本体
|
|
129
|
-
(loaded || placeholder === false && !failed) && `${prefixCls}-loaded`,
|
|
130
|
-
imgProps == null ? void 0 : imgProps.className
|
|
131
|
-
)
|
|
132
|
-
}), isMini ? miniAttr : {})
|
|
133
|
-
);
|
|
134
|
-
function renderImgEle() {
|
|
135
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, failed && defaultFallback || !loaded && defaultPlaceholder || null, imgEle);
|
|
136
|
-
}
|
|
137
|
-
return /* @__PURE__ */ React.createElement(
|
|
138
|
-
"div",
|
|
139
|
-
__spreadValues({
|
|
140
|
-
ref,
|
|
37
|
+
const Image = /* @__PURE__ */ React.forwardRef(
|
|
38
|
+
(_a, ref) => {
|
|
39
|
+
var _b = _a, {
|
|
40
|
+
fit = "fill",
|
|
41
|
+
src = "",
|
|
42
|
+
lazy = false,
|
|
43
|
+
style,
|
|
44
|
+
webp,
|
|
45
|
+
alt,
|
|
46
|
+
showMenu,
|
|
47
|
+
width,
|
|
48
|
+
height,
|
|
49
|
+
fallback = null,
|
|
50
|
+
className,
|
|
51
|
+
placeholder = false,
|
|
141
52
|
onClick,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
53
|
+
onLoad,
|
|
54
|
+
onError,
|
|
55
|
+
imgProps
|
|
56
|
+
} = _b, others = __objRest(_b, [
|
|
57
|
+
"fit",
|
|
58
|
+
"src",
|
|
59
|
+
"lazy",
|
|
60
|
+
"style",
|
|
61
|
+
"webp",
|
|
62
|
+
"alt",
|
|
63
|
+
"showMenu",
|
|
64
|
+
"width",
|
|
65
|
+
"height",
|
|
66
|
+
"fallback",
|
|
67
|
+
"className",
|
|
68
|
+
"placeholder",
|
|
69
|
+
"onClick",
|
|
70
|
+
"onLoad",
|
|
71
|
+
"onError",
|
|
72
|
+
"imgProps"
|
|
73
|
+
]);
|
|
74
|
+
const [loaded, setLoaded] = useState(false);
|
|
75
|
+
const [failed, setFailed] = useState(false);
|
|
76
|
+
const modeEnum = {
|
|
77
|
+
none: "center",
|
|
78
|
+
// 被替换的内容将保持其原有的尺寸居中裁切展示
|
|
79
|
+
contain: "aspectFit",
|
|
80
|
+
// 被替换的内容将被缩放,以在填充元素的内容框时保持其宽高比。 整个对象在填充盒子的同时保留其长宽比,因此如果宽高比与框的宽高比不匹配
|
|
81
|
+
cover: "aspectFill",
|
|
82
|
+
// 被替换的内容在保持其宽高比的同时填充元素的整个内容框。如果对象的宽高比与内容框不相匹配,该对象将被剪裁以适应内容框。
|
|
83
|
+
fill: "scaleToFill",
|
|
84
|
+
// 被替换的内容正好填充元素的内容框。整个对象将完全填充此框。如果对象的宽高比与内容框不匹配,那么该对象将被拉伸以适应内容框
|
|
85
|
+
"scale-down": "aspectFit",
|
|
86
|
+
// 内容的尺寸与 none 或 contain 中的一个相同,取决于它们两个之间谁得到的对象尺寸会更小一些。
|
|
87
|
+
widthFix: "widthFix",
|
|
88
|
+
// 【微信小程序】缩放模式,宽度不变,高度自动变化,保持原图宽高比不变。
|
|
89
|
+
heightFix: "heightFix"
|
|
90
|
+
// 【微信小程序】缩放模式,高度不变,宽度自动变化,保持原图宽高比不变。
|
|
91
|
+
};
|
|
92
|
+
useLayoutEffect(() => {
|
|
93
|
+
setLoaded(false);
|
|
94
|
+
setFailed(false);
|
|
95
|
+
}, [src]);
|
|
96
|
+
const defaultIconWrap = (icon) => {
|
|
97
|
+
return /* @__PURE__ */ React.createElement(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
className: clsx(`${prefixCls}-default-icon-wrap`, {
|
|
101
|
+
"default-holder": !icon
|
|
102
|
+
}),
|
|
103
|
+
"aria-hidden": "true"
|
|
104
|
+
},
|
|
105
|
+
icon
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
const defaultPlaceholder = placeholder === false ? [] : placeholder !== true && defaultIconWrap(placeholder) || defaultIconWrap();
|
|
109
|
+
const miniAttr = {
|
|
110
|
+
webp,
|
|
111
|
+
lazyLoad: lazy,
|
|
112
|
+
"lazy-load": lazy,
|
|
113
|
+
mode: fit && modeEnum[fit],
|
|
114
|
+
showMenuByLongpress: showMenu
|
|
115
|
+
};
|
|
116
|
+
const imgEle = /* @__PURE__ */ React.createElement(
|
|
117
|
+
"img",
|
|
118
|
+
__spreadValues(__spreadProps(__spreadValues({
|
|
119
|
+
src,
|
|
120
|
+
loading: lazy ? "lazy" : "eager",
|
|
121
|
+
onLoad: (e) => {
|
|
122
|
+
setLoaded(true);
|
|
123
|
+
onLoad == null ? void 0 : onLoad(e);
|
|
124
|
+
},
|
|
125
|
+
onError: (e) => {
|
|
126
|
+
setFailed(true);
|
|
127
|
+
onError == null ? void 0 : onError(e);
|
|
128
|
+
},
|
|
129
|
+
alt: alt || ""
|
|
130
|
+
}, imgProps), {
|
|
131
|
+
style: __spreadValues({ objectFit: fit }, (imgProps == null ? void 0 : imgProps.style) || {}),
|
|
132
|
+
className: clsx(
|
|
133
|
+
`${prefixCls}-img`,
|
|
134
|
+
// 无占位且不onFail时直接展示img本体
|
|
135
|
+
(loaded || placeholder === false && !failed) && `${prefixCls}-loaded`,
|
|
136
|
+
imgProps == null ? void 0 : imgProps.className
|
|
137
|
+
)
|
|
138
|
+
}), isMini ? miniAttr : {})
|
|
139
|
+
);
|
|
140
|
+
function renderImgEle() {
|
|
141
|
+
if (failed)
|
|
142
|
+
return fallback || defaultPlaceholder;
|
|
143
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, !loaded && defaultPlaceholder, imgEle);
|
|
144
|
+
}
|
|
145
|
+
return /* @__PURE__ */ React.createElement(
|
|
146
|
+
"div",
|
|
147
|
+
__spreadValues({
|
|
148
|
+
ref,
|
|
149
|
+
onClick,
|
|
150
|
+
style: __spreadValues({ width, height }, style),
|
|
151
|
+
className: clsx(prefixCls, className)
|
|
152
|
+
}, others),
|
|
153
|
+
renderImgEle()
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
);
|
|
148
157
|
Image.displayName = "BuiImage";
|
|
149
|
-
Image.defaultProps = {
|
|
150
|
-
src: "",
|
|
151
|
-
lazy: false,
|
|
152
|
-
fallback: null,
|
|
153
|
-
placeholder: false,
|
|
154
|
-
width: void 0,
|
|
155
|
-
height: void 0,
|
|
156
|
-
fit: "fill"
|
|
157
|
-
};
|
|
158
158
|
var Image_default = Image;
|
|
159
159
|
export {
|
|
160
160
|
Image_default as default
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import Image from "../../Image";
|
|
3
|
+
const basicImageDemo = () => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
5
|
+
Image,
|
|
6
|
+
{
|
|
7
|
+
src: "https://via.placeholder.com/150x100",
|
|
8
|
+
alt: "\u793A\u4F8B\u56FE\u7247",
|
|
9
|
+
width: 150,
|
|
10
|
+
height: 100
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
};
|
|
14
|
+
const ClickableImageDemo = () => {
|
|
15
|
+
const [clicked, setClicked] = useState(false);
|
|
16
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
17
|
+
Image,
|
|
18
|
+
{
|
|
19
|
+
src: "https://via.placeholder.com/150x100",
|
|
20
|
+
alt: "\u53EF\u70B9\u51FB\u7684\u793A\u4F8B\u56FE\u7247",
|
|
21
|
+
width: 150,
|
|
22
|
+
height: 100,
|
|
23
|
+
onClick: () => {
|
|
24
|
+
setClicked(!clicked);
|
|
25
|
+
console.log("\u56FE\u7247\u88AB\u70B9\u51FB\u4E86");
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
), clicked && /* @__PURE__ */ React.createElement("p", null, "\u56FE\u7247\u5DF2\u88AB\u70B9\u51FB"));
|
|
29
|
+
};
|
|
30
|
+
const placeholderImageDemo = () => {
|
|
31
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
32
|
+
Image,
|
|
33
|
+
{
|
|
34
|
+
src: "",
|
|
35
|
+
alt: "\u5E26\u5360\u4F4D\u7B26\u7684\u56FE\u7247",
|
|
36
|
+
width: 150,
|
|
37
|
+
height: 100,
|
|
38
|
+
placeholder: /* @__PURE__ */ React.createElement("div", null, "\u52A0\u8F7D\u4E2D...")
|
|
39
|
+
}
|
|
40
|
+
));
|
|
41
|
+
};
|
|
42
|
+
const errorImageDemo = () => {
|
|
43
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
44
|
+
Image,
|
|
45
|
+
{
|
|
46
|
+
src: "https://invalid-url.com/nonexistent.jpg",
|
|
47
|
+
alt: "\u52A0\u8F7D\u5931\u8D25\u7684\u56FE\u7247",
|
|
48
|
+
width: 150,
|
|
49
|
+
height: 100,
|
|
50
|
+
fallback: /* @__PURE__ */ React.createElement("div", null, "\u56FE\u7247\u52A0\u8F7D\u5931\u8D25")
|
|
51
|
+
}
|
|
52
|
+
));
|
|
53
|
+
};
|
|
54
|
+
const lazyImageDemo = () => {
|
|
55
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
56
|
+
Image,
|
|
57
|
+
{
|
|
58
|
+
src: "https://via.placeholder.com/150x100",
|
|
59
|
+
alt: "\u61D2\u52A0\u8F7D\u56FE\u7247",
|
|
60
|
+
width: 150,
|
|
61
|
+
height: 100,
|
|
62
|
+
lazy: true
|
|
63
|
+
}
|
|
64
|
+
));
|
|
65
|
+
};
|
|
66
|
+
const noAltImageDemo = () => {
|
|
67
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
|
|
68
|
+
Image,
|
|
69
|
+
{
|
|
70
|
+
src: "https://via.placeholder.com/150x100",
|
|
71
|
+
width: 150,
|
|
72
|
+
height: 100
|
|
73
|
+
}
|
|
74
|
+
));
|
|
75
|
+
};
|
|
76
|
+
var A11yDemos_default = {
|
|
77
|
+
basicImageDemo,
|
|
78
|
+
ClickableImageDemo,
|
|
79
|
+
placeholderImageDemo,
|
|
80
|
+
errorImageDemo,
|
|
81
|
+
lazyImageDemo,
|
|
82
|
+
noAltImageDemo
|
|
83
|
+
};
|
|
84
|
+
export {
|
|
85
|
+
ClickableImageDemo,
|
|
86
|
+
basicImageDemo,
|
|
87
|
+
A11yDemos_default as default,
|
|
88
|
+
errorImageDemo,
|
|
89
|
+
lazyImageDemo,
|
|
90
|
+
noAltImageDemo,
|
|
91
|
+
placeholderImageDemo
|
|
92
|
+
};
|
package/es/Image/index.css
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-image-default-bg-color: rgba(127, 127, 127, 0.2);
|
|
5
|
+
}
|
|
1
6
|
.bui-image {
|
|
2
|
-
--default-background-color: var(--bui-image-default-background-color, rgba(127, 127, 127, 0.2));
|
|
3
7
|
width: auto;
|
|
4
8
|
height: auto;
|
|
5
9
|
display: inline-block;
|
|
@@ -26,11 +30,6 @@
|
|
|
26
30
|
width: 100%;
|
|
27
31
|
height: 100%;
|
|
28
32
|
}
|
|
29
|
-
.bui-image-default-icon-wrap.
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
.bui-image-default-icon-item {
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
background-color: var(--default-background-color);
|
|
33
|
+
.bui-image-default-icon-wrap.default-holder {
|
|
34
|
+
background-color: var(--bui-image-default-bg-color);
|
|
36
35
|
}
|
package/es/Input/Input.js
CHANGED
|
@@ -33,7 +33,7 @@ import { ErrorCircleFilledIcon } from "@bifrostui/icons";
|
|
|
33
33
|
import { isMini, useValue } from "@bifrostui/utils";
|
|
34
34
|
import clsx from "clsx";
|
|
35
35
|
import React, { forwardRef, useState } from "react";
|
|
36
|
-
import "./
|
|
36
|
+
import "./index.css";
|
|
37
37
|
const prefixCls = "bui-input";
|
|
38
38
|
const Input = forwardRef((props, ref) => {
|
|
39
39
|
const _a = props, {
|
|
@@ -43,12 +43,12 @@ const Input = forwardRef((props, ref) => {
|
|
|
43
43
|
inputProps,
|
|
44
44
|
inputRef,
|
|
45
45
|
name,
|
|
46
|
-
type,
|
|
47
|
-
clearable,
|
|
46
|
+
type = "text",
|
|
47
|
+
clearable = false,
|
|
48
48
|
startIcon,
|
|
49
49
|
endIcon,
|
|
50
50
|
placeholder,
|
|
51
|
-
disabled,
|
|
51
|
+
disabled = false,
|
|
52
52
|
onClear,
|
|
53
53
|
onChange,
|
|
54
54
|
onFocus,
|
|
@@ -71,6 +71,8 @@ const Input = forwardRef((props, ref) => {
|
|
|
71
71
|
"onFocus",
|
|
72
72
|
"onBlur"
|
|
73
73
|
]);
|
|
74
|
+
const { required, readOnly } = inputProps || {};
|
|
75
|
+
const ariaProps = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, required && { "aria-required": required }), readOnly && { "aria-readonly": readOnly }), disabled && { "aria-disabled": disabled }), placeholder && { "aria-placeholder": placeholder });
|
|
74
76
|
const [inputValue, triggerChange] = useValue({
|
|
75
77
|
value,
|
|
76
78
|
defaultValue,
|
|
@@ -126,14 +128,14 @@ const Input = forwardRef((props, ref) => {
|
|
|
126
128
|
startIcon && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-icon ${prefixCls}-icon-start` }, startIcon),
|
|
127
129
|
/* @__PURE__ */ React.createElement(
|
|
128
130
|
"input",
|
|
129
|
-
__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, nativeProps), {
|
|
131
|
+
__spreadProps(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, nativeProps), {
|
|
130
132
|
name,
|
|
131
133
|
type,
|
|
132
134
|
ref: inputRef,
|
|
133
135
|
value: inputValue,
|
|
134
136
|
disabled,
|
|
135
137
|
placeholder
|
|
136
|
-
}), inputProps), {
|
|
138
|
+
}), ariaProps), inputProps), {
|
|
137
139
|
onChange: handleChange,
|
|
138
140
|
onFocus: handleFocus,
|
|
139
141
|
onBlur: handleBlur,
|
|
@@ -141,17 +143,11 @@ const Input = forwardRef((props, ref) => {
|
|
|
141
143
|
className: clsx(`${prefixCls}-input`, inputProps == null ? void 0 : inputProps.className)
|
|
142
144
|
})
|
|
143
145
|
),
|
|
144
|
-
clearable && !!inputValue && hasFocus && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-clear`, onClick: handleClear }, /* @__PURE__ */ React.createElement(ErrorCircleFilledIcon, { htmlColor: "
|
|
146
|
+
clearable && !!inputValue && hasFocus && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-clear`, onClick: handleClear }, /* @__PURE__ */ React.createElement(ErrorCircleFilledIcon, { htmlColor: "var(--bui-color-fg-subtle)" })),
|
|
145
147
|
endIcon && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-icon ${prefixCls}-icon-end` }, endIcon)
|
|
146
148
|
);
|
|
147
149
|
});
|
|
148
150
|
Input.displayName = "BuiInput";
|
|
149
|
-
Input.defaultProps = {
|
|
150
|
-
defaultValue: "",
|
|
151
|
-
type: "text",
|
|
152
|
-
clearable: false,
|
|
153
|
-
disabled: false
|
|
154
|
-
};
|
|
155
151
|
var Input_default = Input;
|
|
156
152
|
export {
|
|
157
153
|
Input_default as default
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Input from "../../Input";
|
|
3
|
+
const basicInputDemo = () => {
|
|
4
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, "First name: ", /* @__PURE__ */ React.createElement(Input, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9" })));
|
|
5
|
+
};
|
|
6
|
+
const disabledInputDemo = () => {
|
|
7
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, "First name:", /* @__PURE__ */ React.createElement(Input, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9", disabled: true })));
|
|
8
|
+
};
|
|
9
|
+
const requiredInputDemo = () => {
|
|
10
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, "First name:", /* @__PURE__ */ React.createElement(Input, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9", inputProps: { required: true } })));
|
|
11
|
+
};
|
|
12
|
+
const readOnlyInputDemo = () => {
|
|
13
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, "First name:", /* @__PURE__ */ React.createElement(Input, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9", inputProps: { readOnly: true } })));
|
|
14
|
+
};
|
|
15
|
+
const placeholderInputDemo = () => {
|
|
16
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, "First name:", /* @__PURE__ */ React.createElement(Input, { placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9" })));
|
|
17
|
+
};
|
|
18
|
+
const ariaLabelInputDemo = () => {
|
|
19
|
+
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("label", null, "First name:", /* @__PURE__ */ React.createElement(
|
|
20
|
+
Input,
|
|
21
|
+
{
|
|
22
|
+
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9",
|
|
23
|
+
inputProps: { "aria-label": "\u8F93\u5165\u6846" }
|
|
24
|
+
}
|
|
25
|
+
)));
|
|
26
|
+
};
|
|
27
|
+
var A11yDemos_default = {
|
|
28
|
+
basicInputDemo,
|
|
29
|
+
disabledInputDemo,
|
|
30
|
+
requiredInputDemo,
|
|
31
|
+
readOnlyInputDemo,
|
|
32
|
+
placeholderInputDemo,
|
|
33
|
+
ariaLabelInputDemo
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
ariaLabelInputDemo,
|
|
37
|
+
basicInputDemo,
|
|
38
|
+
A11yDemos_default as default,
|
|
39
|
+
disabledInputDemo,
|
|
40
|
+
placeholderInputDemo,
|
|
41
|
+
readOnlyInputDemo,
|
|
42
|
+
requiredInputDemo
|
|
43
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-input-height: 32px;
|
|
5
|
+
--bui-input-padding: 4px 10px;
|
|
6
|
+
--bui-input-border-radius: var(--bui-shape-radius-default);
|
|
7
|
+
--bui-input-icon-start-margin: 0 3px 0 0;
|
|
8
|
+
--bui-input-icon-end-margin: 0 0 0 3px;
|
|
9
|
+
--bui-input-bg-color: transparent;
|
|
10
|
+
--bui-input-disabled-bg-color: rgba(0, 0, 0, 0.04);
|
|
11
|
+
--bui-input-clear-color: #ced1d6;
|
|
12
|
+
--bui-input-clear-font-size: var(--bui-title-size-3);
|
|
13
|
+
}
|
|
14
|
+
.bui-input {
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
height: var(--bui-input-height);
|
|
19
|
+
padding: var(--bui-input-padding);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
border-radius: var(--bui-input-border-radius);
|
|
22
|
+
border: 1px solid var(--bui-color-border-default);
|
|
23
|
+
font-family: var(--bui-font-family);
|
|
24
|
+
}
|
|
25
|
+
.bui-input-icon {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
color: var(--bui-color-fg-subtle);
|
|
29
|
+
font-size: var(--bui-title-size-3);
|
|
30
|
+
}
|
|
31
|
+
.bui-input-icon-start {
|
|
32
|
+
margin: var(--bui-input-icon-start-margin);
|
|
33
|
+
}
|
|
34
|
+
.bui-input-icon-end {
|
|
35
|
+
margin: var(--bui-input-icon-end-margin);
|
|
36
|
+
}
|
|
37
|
+
.bui-input-input {
|
|
38
|
+
flex: 1;
|
|
39
|
+
min-width: 0;
|
|
40
|
+
padding: 0;
|
|
41
|
+
height: 100%;
|
|
42
|
+
color: var(--bui-color-fg-default);
|
|
43
|
+
border: none;
|
|
44
|
+
outline: none;
|
|
45
|
+
background-color: var(--bui-input-bg-color);
|
|
46
|
+
font-size: var(--bui-text-size-2);
|
|
47
|
+
}
|
|
48
|
+
.bui-input-input::placeholder {
|
|
49
|
+
color: var(--bui-color-fg-subtle);
|
|
50
|
+
}
|
|
51
|
+
.bui-input-disabled {
|
|
52
|
+
background-color: var(--bui-input-disabled-bg-color);
|
|
53
|
+
}
|
|
54
|
+
.bui-input-disabled .bui-input-input {
|
|
55
|
+
color: var(--bui-color-fg-disabled);
|
|
56
|
+
}
|
|
57
|
+
.bui-input-disabled .bui-input-input::placeholder {
|
|
58
|
+
color: var(--bui-color-fg-disabled);
|
|
59
|
+
}
|
|
60
|
+
.bui-input-clear {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
color: var(--bui-input-clear-color);
|
|
65
|
+
height: 100%;
|
|
66
|
+
font-size: var(--bui-input-clear-font-size);
|
|
67
|
+
}
|
|
68
|
+
.bui-input .bui-mini-placeholder {
|
|
69
|
+
width: auto;
|
|
70
|
+
}
|
|
@@ -20,7 +20,6 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
20
20
|
import React, { useEffect, useRef, useState } from "react";
|
|
21
21
|
import Taro from "@tarojs/taro";
|
|
22
22
|
import ItemSelectorCore from "./ItemSelectorCore";
|
|
23
|
-
import "./miniapp.css";
|
|
24
23
|
const ItemSelector = /* @__PURE__ */ React.forwardRef(
|
|
25
24
|
(props, ref) => {
|
|
26
25
|
const { items } = props;
|
|
@@ -31,7 +31,7 @@ import clsx from "clsx";
|
|
|
31
31
|
import { throttle, useForkRef, useTouchEmulator } from "@bifrostui/utils";
|
|
32
32
|
import ScrollView from "../ScrollView";
|
|
33
33
|
import Selector from "./Selector";
|
|
34
|
-
import "./
|
|
34
|
+
import "./index.css";
|
|
35
35
|
const DEVIATION_HEIGHT = "6vmin";
|
|
36
36
|
const prefixCls = "bui-item-selector";
|
|
37
37
|
const ItemSelector = /* @__PURE__ */ React.forwardRef(
|
package/es/List/List.css
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-list-small-item-padding: 5px 12px;
|
|
5
|
+
--bui-list-medium-item-padding: 18px 12px;
|
|
6
|
+
--bui-list-large-item-padding: 20px 12px;
|
|
7
|
+
}
|
|
1
8
|
.bui-list {
|
|
2
|
-
--small-item-padding: var(--bui-list-small-item-padding, 5px 12px);
|
|
3
|
-
--medium-item-padding: var(--bui-list-medium-item-padding, 18px 12px);
|
|
4
|
-
--large-item-padding: var(--bui-list-large-item-padding, 20px 12px);
|
|
5
9
|
background: var(--bui-color-bg-view);
|
|
6
10
|
font-size: var(--bui-title-size-3);
|
|
7
11
|
font-family: var(--bui-font-family);
|
package/es/List/List.js
CHANGED
|
@@ -33,11 +33,11 @@ import "./List.css";
|
|
|
33
33
|
const prefixCls = "bui-list";
|
|
34
34
|
const List = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
35
35
|
const _a = props, {
|
|
36
|
-
hideDivider,
|
|
36
|
+
hideDivider = false,
|
|
37
37
|
children,
|
|
38
38
|
className,
|
|
39
|
-
size,
|
|
40
|
-
component: Component,
|
|
39
|
+
size = "medium",
|
|
40
|
+
component: Component = "div",
|
|
41
41
|
header,
|
|
42
42
|
subheader
|
|
43
43
|
} = _a, others = __objRest(_a, [
|
|
@@ -66,11 +66,6 @@ const List = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
66
66
|
));
|
|
67
67
|
});
|
|
68
68
|
List.displayName = "BuiList";
|
|
69
|
-
List.defaultProps = {
|
|
70
|
-
hideDivider: false,
|
|
71
|
-
size: "medium",
|
|
72
|
-
component: "div"
|
|
73
|
-
};
|
|
74
69
|
var List_default = List;
|
|
75
70
|
export {
|
|
76
71
|
List_default as default
|
package/es/List/ListItem.css
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
color: var(--bui-color-fg-subtle);
|
|
11
11
|
}
|
|
12
12
|
.bui-list-small .bui-list-item {
|
|
13
|
-
padding: var(--small-item-padding);
|
|
13
|
+
padding: var(--bui-list-small-item-padding);
|
|
14
14
|
}
|
|
15
15
|
.bui-list-medium .bui-list-item {
|
|
16
|
-
padding: var(--medium-item-padding);
|
|
16
|
+
padding: var(--bui-list-medium-item-padding);
|
|
17
17
|
}
|
|
18
18
|
.bui-list-large .bui-list-item {
|
|
19
|
-
padding: var(--large-item-padding);
|
|
19
|
+
padding: var(--bui-list-large-item-padding);
|
|
20
20
|
}
|
|
21
21
|
.bui-list-item-divider:not(:last-child) {
|
|
22
22
|
border-bottom: 1px solid var(--bui-color-border-default);
|