@bifrostui/react 2.0.0-beta.2 → 2.0.0-beta.3
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 +1 -1
- package/dist/ActionSheet/ActionSheetItem.types.d.ts +2 -2
- package/dist/ActionSheet/index.css +89 -0
- package/dist/Alert/Alert.types.d.ts +3 -3
- package/dist/Alert/index.css +18 -14
- package/dist/Avatar/Avatar.css +16 -12
- package/dist/Avatar/AvatarGroup.css +19 -15
- package/dist/Avatar/index.css +93 -0
- package/dist/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Backdrop/Backdrop.js +1 -1
- package/dist/Backdrop/{Backdrop.css → index.css} +6 -2
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/Badge.js +1 -1
- package/dist/Badge/Badge.types.d.ts +1 -1
- package/dist/Badge/{Badge.css → index.css} +47 -27
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/Breadcrumb/index.css +38 -0
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +3 -2
- package/{es/Button/Button.css → dist/Button/index.css} +69 -38
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js +3 -3
- package/dist/Calendar/{Calendar.css → index.css} +35 -31
- package/dist/Card/Card.css +10 -1
- package/dist/Card/CardContent.css +1 -1
- package/dist/Card/CardFooter.css +2 -2
- package/dist/Card/CardHeader.css +4 -3
- package/dist/Card/CardHeader.js +2 -2
- package/dist/Card/index.css +77 -0
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +2 -2
- package/dist/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/Checkbox/CheckboxGroup.js +1 -1
- package/dist/Checkbox/{Checkbox.css → index.css} +14 -10
- package/dist/CitySelector/CitySelector.miniapp.d.ts +0 -1
- package/dist/CitySelector/CitySelector.miniapp.js +0 -1
- package/dist/CitySelector/CitySelectorCore.d.ts +1 -1
- package/dist/CitySelector/CitySelectorCore.js +1 -1
- package/dist/CitySelector/Selector/index.css +4 -4
- package/{es/CitySelector/CitySelector.css → dist/CitySelector/index.css} +31 -27
- package/dist/Collapse/Collapse.d.ts +1 -1
- package/dist/Collapse/Collapse.js +1 -1
- package/dist/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/dist/CollapsePanel/CollapsePanel.js +1 -1
- package/dist/CollapsePanel/{CollapsePanel.css → index.css} +10 -6
- package/dist/Countdown/Countdown.d.ts +1 -1
- package/dist/Countdown/Countdown.js +1 -1
- package/{es/Countdown/Countdown.css → dist/Countdown/index.css} +12 -8
- package/dist/Dialog/index.css +26 -23
- package/dist/Divider/Divider.d.ts +1 -1
- package/dist/Divider/Divider.js +1 -1
- package/{es/Divider/Divider.css → dist/Divider/index.css} +14 -10
- package/dist/Drawer/Drawer.d.ts +1 -1
- package/dist/Drawer/Drawer.js +1 -1
- package/dist/IconButton/IconButton.d.ts +1 -1
- package/dist/IconButton/IconButton.js +3 -3
- package/dist/IconButton/IconButton.types.d.ts +4 -3
- package/{es/IconButton/IconButton.css → dist/IconButton/index.css} +79 -29
- package/dist/Image/index.css +6 -2
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/Input.js +2 -2
- package/dist/Input/{Input.css → index.css} +22 -18
- package/dist/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
- package/dist/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/dist/ItemSelector/ItemSelectorCore.d.ts +1 -1
- package/dist/ItemSelector/ItemSelectorCore.js +1 -1
- package/dist/List/List.css +7 -3
- package/dist/List/ListItem.css +3 -3
- package/dist/List/index.css +80 -0
- package/dist/Loading/Loading.d.ts +1 -1
- package/dist/Loading/Loading.js +1 -1
- package/{es/Loading/Loading.css → dist/Loading/index.css} +10 -6
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.js +1 -1
- package/dist/Modal/Modal.miniapp.d.ts +2 -2
- package/dist/Modal/Modal.miniapp.js +1 -1
- package/dist/NavBar/NavBar.d.ts +1 -1
- package/dist/NavBar/NavBar.js +1 -1
- package/dist/NavBar/index.css +65 -0
- package/dist/Picker/Picker.css +21 -16
- package/dist/Picker/Picker.js +1 -1
- package/dist/Picker/Picker.types.d.ts +2 -2
- package/dist/Picker/PickerPanel.css +8 -8
- package/dist/Picker/PickerPanel.js +33 -22
- package/dist/Picker/index.css +116 -0
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/Popover.js +1 -1
- package/{es/Popover/Popover.css → dist/Popover/index.css} +32 -28
- package/dist/Progress/Progress.d.ts +1 -1
- package/dist/Progress/Progress.js +1 -1
- package/dist/Progress/index.css +28 -0
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/Radio/Radio.js +1 -1
- package/dist/Radio/RadioButtonIcon.js +6 -1
- package/dist/Radio/RadioGroup.d.ts +1 -1
- package/dist/Radio/RadioGroup.js +1 -1
- package/dist/Radio/{Radio.css → index.css} +10 -6
- package/dist/Rating/Rating.d.ts +1 -1
- package/dist/Rating/Rating.js +2 -2
- package/dist/Rating/{Rating.css → index.css} +20 -7
- package/dist/ScrollView/ScrollView.d.ts +1 -1
- package/dist/ScrollView/ScrollView.js +1 -1
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/Select.js +2 -8
- package/dist/Select/SelectOption.d.ts +1 -1
- package/dist/Select/SelectOption.js +1 -1
- package/{es/Select/Select.css → dist/Select/index.css} +26 -19
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/Skeleton/Skeleton.js +1 -1
- package/{es/Skeleton/Skeleton.css → dist/Skeleton/index.css} +7 -3
- package/dist/Slider/Slider.d.ts +1 -1
- package/dist/Slider/Slider.js +2 -2
- package/dist/Slider/index.css +111 -0
- package/dist/Stack/Stack.d.ts +1 -1
- package/dist/Stack/Stack.js +1 -1
- package/dist/Steps/Step.css +14 -14
- package/dist/Steps/Step.js +1 -1
- package/dist/Steps/Steps.css +18 -14
- package/dist/Steps/index.css +199 -0
- package/dist/Swiper/Swiper.d.ts +1 -1
- package/dist/Swiper/Swiper.js +1 -1
- package/dist/Swiper/{Swiper.css → index.css} +6 -2
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/Switch.js +1 -1
- package/dist/Switch/Switch.types.d.ts +1 -1
- package/dist/Switch/{Switch.css → index.css} +46 -35
- package/dist/TabBar/TabBar.css +12 -8
- package/dist/TabBar/TabBar.js +1 -1
- package/dist/TabBar/TabBarContext.d.ts +3 -3
- package/dist/TabBar/TabBarItem.css +6 -0
- package/dist/TabBar/TabBarItem.js +3 -3
- package/dist/TabBar/index.css +59 -0
- package/dist/TabBar/index.types.d.ts +3 -3
- package/dist/Tabs/Tab.css +9 -9
- package/dist/Tabs/Tabs.css +24 -4
- package/dist/Tabs/Tabs.js +1 -1
- package/dist/Tabs/index.css +135 -0
- package/dist/Tag/Tag.css +48 -22
- package/dist/Tag/Tag.js +2 -2
- package/dist/Tag/Tag.types.d.ts +4 -4
- package/dist/Tag/TagGroup.css +13 -9
- package/dist/Tag/index.css +182 -0
- package/dist/TextArea/TextArea.d.ts +1 -1
- package/dist/TextArea/TextArea.js +1 -1
- package/dist/TextArea/index.css +57 -0
- package/dist/ThemeProvider/ThemeProvider.js +1 -4
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +5 -10
- package/dist/ThemeProvider/utils/constants.d.ts +1 -1
- package/dist/ThemeProvider/utils/constants.js +4 -1
- package/dist/ThemeProvider/utils/mountTokens.d.ts +4 -4
- package/dist/Toast/Toast.d.ts +1 -1
- package/dist/Toast/Toast.js +5 -5
- package/dist/Toast/index.css +58 -0
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/Tooltip/Tooltip.js +1 -1
- package/dist/Tooltip/index.css +95 -0
- package/es/ActionSheet/ActionSheet.css +16 -6
- package/es/ActionSheet/ActionSheetItem.css +11 -17
- package/es/ActionSheet/ActionSheetItem.js +1 -1
- package/es/ActionSheet/ActionSheetItem.types.d.ts +2 -2
- package/es/ActionSheet/index.css +89 -0
- package/es/Alert/Alert.types.d.ts +3 -3
- package/es/Alert/index.css +18 -14
- package/es/Avatar/Avatar.css +16 -12
- package/es/Avatar/AvatarGroup.css +19 -15
- package/es/Avatar/index.css +93 -0
- package/es/Backdrop/Backdrop.d.ts +1 -1
- package/es/Backdrop/Backdrop.js +1 -1
- package/es/Backdrop/{Backdrop.css → index.css} +6 -2
- package/es/Badge/Badge.d.ts +1 -1
- package/es/Badge/Badge.js +1 -1
- package/es/Badge/Badge.types.d.ts +1 -1
- package/es/Badge/{Badge.css → index.css} +47 -27
- package/es/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/es/Breadcrumb/Breadcrumb.js +1 -1
- package/es/Breadcrumb/index.css +38 -0
- package/es/Button/Button.d.ts +1 -1
- package/es/Button/Button.js +3 -2
- package/{dist/Button/Button.css → es/Button/index.css} +69 -38
- package/es/Calendar/Calendar.d.ts +1 -1
- package/es/Calendar/Calendar.js +3 -3
- package/es/Calendar/{Calendar.css → index.css} +35 -31
- package/es/Card/Card.css +10 -1
- package/es/Card/CardContent.css +1 -1
- package/es/Card/CardFooter.css +2 -2
- package/es/Card/CardHeader.css +4 -3
- package/es/Card/CardHeader.js +2 -2
- package/es/Card/index.css +77 -0
- package/es/Checkbox/Checkbox.d.ts +1 -1
- package/es/Checkbox/Checkbox.js +2 -2
- package/es/Checkbox/CheckboxGroup.d.ts +1 -1
- package/es/Checkbox/CheckboxGroup.js +1 -1
- package/es/Checkbox/{Checkbox.css → index.css} +14 -10
- package/es/CitySelector/CitySelector.miniapp.d.ts +0 -1
- package/es/CitySelector/CitySelector.miniapp.js +0 -1
- package/es/CitySelector/CitySelectorCore.d.ts +1 -1
- package/es/CitySelector/CitySelectorCore.js +1 -1
- package/es/CitySelector/Selector/index.css +4 -4
- package/{dist/CitySelector/CitySelector.css → es/CitySelector/index.css} +31 -27
- package/es/Collapse/Collapse.d.ts +1 -1
- package/es/Collapse/Collapse.js +1 -1
- package/es/CollapsePanel/CollapsePanel.d.ts +1 -1
- package/es/CollapsePanel/CollapsePanel.js +1 -1
- package/es/CollapsePanel/{CollapsePanel.css → index.css} +10 -6
- package/es/Countdown/Countdown.d.ts +1 -1
- package/es/Countdown/Countdown.js +1 -1
- package/{dist/Countdown/Countdown.css → es/Countdown/index.css} +12 -8
- package/es/Dialog/index.css +26 -23
- package/es/Divider/Divider.d.ts +1 -1
- package/es/Divider/Divider.js +1 -1
- package/{dist/Divider/Divider.css → es/Divider/index.css} +14 -10
- package/es/Drawer/Drawer.d.ts +1 -1
- package/es/Drawer/Drawer.js +1 -1
- package/es/IconButton/IconButton.d.ts +1 -1
- package/es/IconButton/IconButton.js +3 -3
- package/es/IconButton/IconButton.types.d.ts +4 -3
- package/{dist/IconButton/IconButton.css → es/IconButton/index.css} +79 -29
- package/es/Image/index.css +6 -2
- package/es/Input/Input.d.ts +1 -1
- package/es/Input/Input.js +2 -2
- package/es/Input/{Input.css → index.css} +22 -18
- package/es/ItemSelector/ItemSelector.miniapp.d.ts +0 -1
- package/es/ItemSelector/ItemSelector.miniapp.js +0 -1
- package/es/ItemSelector/ItemSelectorCore.d.ts +1 -1
- package/es/ItemSelector/ItemSelectorCore.js +1 -1
- package/es/List/List.css +7 -3
- package/es/List/ListItem.css +3 -3
- package/es/List/index.css +80 -0
- package/es/Loading/Loading.d.ts +1 -1
- package/es/Loading/Loading.js +1 -1
- package/{dist/Loading/Loading.css → es/Loading/index.css} +10 -6
- package/es/Modal/Modal.d.ts +1 -1
- package/es/Modal/Modal.js +1 -1
- package/es/Modal/Modal.miniapp.d.ts +2 -2
- package/es/Modal/Modal.miniapp.js +1 -1
- package/es/NavBar/NavBar.d.ts +1 -1
- package/es/NavBar/NavBar.js +1 -1
- package/es/NavBar/index.css +65 -0
- package/es/Picker/Picker.css +21 -16
- package/es/Picker/Picker.js +1 -1
- package/es/Picker/Picker.types.d.ts +2 -2
- package/es/Picker/PickerPanel.css +8 -8
- package/es/Picker/PickerPanel.js +46 -24
- package/es/Picker/index.css +116 -0
- package/es/Popover/Popover.d.ts +1 -1
- package/es/Popover/Popover.js +1 -1
- package/{dist/Popover/Popover.css → es/Popover/index.css} +32 -28
- package/es/Progress/Progress.d.ts +1 -1
- package/es/Progress/Progress.js +1 -1
- package/es/Progress/index.css +28 -0
- package/es/Radio/Radio.d.ts +1 -1
- package/es/Radio/Radio.js +1 -1
- package/es/Radio/RadioButtonIcon.js +6 -1
- package/es/Radio/RadioGroup.d.ts +1 -1
- package/es/Radio/RadioGroup.js +1 -1
- package/es/Radio/{Radio.css → index.css} +10 -6
- package/es/Rating/Rating.d.ts +1 -1
- package/es/Rating/Rating.js +2 -2
- package/es/Rating/{Rating.css → index.css} +20 -7
- package/es/ScrollView/ScrollView.d.ts +1 -1
- package/es/ScrollView/ScrollView.js +1 -1
- package/es/Select/Select.d.ts +1 -1
- package/es/Select/Select.js +2 -8
- package/es/Select/SelectOption.d.ts +1 -1
- package/es/Select/SelectOption.js +1 -1
- package/{dist/Select/Select.css → es/Select/index.css} +26 -19
- package/es/Skeleton/Skeleton.d.ts +1 -1
- package/es/Skeleton/Skeleton.js +1 -1
- package/{dist/Skeleton/Skeleton.css → es/Skeleton/index.css} +7 -3
- package/es/Slider/Slider.d.ts +1 -1
- package/es/Slider/Slider.js +2 -2
- package/es/Slider/index.css +111 -0
- package/es/Stack/Stack.d.ts +1 -1
- package/es/Stack/Stack.js +1 -1
- package/es/Steps/Step.css +14 -14
- package/es/Steps/Step.js +1 -1
- package/es/Steps/Steps.css +18 -14
- package/es/Steps/index.css +199 -0
- package/es/Swiper/Swiper.d.ts +1 -1
- package/es/Swiper/Swiper.js +1 -1
- package/es/Swiper/{Swiper.css → index.css} +6 -2
- package/es/Switch/Switch.d.ts +1 -1
- package/es/Switch/Switch.js +1 -1
- package/es/Switch/Switch.types.d.ts +1 -1
- package/es/Switch/{Switch.css → index.css} +46 -35
- package/es/TabBar/TabBar.css +12 -8
- package/es/TabBar/TabBar.js +1 -1
- package/es/TabBar/TabBarContext.d.ts +3 -3
- package/es/TabBar/TabBarItem.css +6 -0
- package/es/TabBar/TabBarItem.js +2 -2
- package/es/TabBar/index.css +59 -0
- package/es/TabBar/index.types.d.ts +3 -3
- package/es/Tabs/Tab.css +9 -9
- package/es/Tabs/Tabs.css +24 -4
- package/es/Tabs/Tabs.js +1 -1
- package/es/Tabs/index.css +135 -0
- package/es/Tag/Tag.css +48 -22
- package/es/Tag/Tag.js +2 -2
- package/es/Tag/Tag.types.d.ts +4 -4
- package/es/Tag/TagGroup.css +13 -9
- package/es/Tag/index.css +182 -0
- package/es/TextArea/TextArea.d.ts +1 -1
- package/es/TextArea/TextArea.js +1 -1
- package/es/TextArea/index.css +57 -0
- package/es/ThemeProvider/ThemeProvider.js +1 -4
- package/es/ThemeProvider/ThemeProvider.types.d.ts +5 -10
- package/es/ThemeProvider/utils/constants.d.ts +1 -1
- package/es/ThemeProvider/utils/constants.js +4 -1
- package/es/ThemeProvider/utils/mountTokens.d.ts +4 -4
- package/es/Toast/Toast.d.ts +1 -1
- package/es/Toast/Toast.js +5 -5
- package/es/Toast/index.css +58 -0
- package/es/Tooltip/Tooltip.d.ts +1 -1
- package/es/Tooltip/Tooltip.js +1 -1
- package/es/Tooltip/index.css +95 -0
- package/package.json +13 -5
- package/dist/Breadcrumb/Breadcrumb.css +0 -34
- package/dist/CitySelector/miniapp.css +0 -4
- package/dist/ItemSelector/miniapp.css +0 -4
- package/dist/NavBar/NavBar.css +0 -61
- package/dist/Progress/Progress.css +0 -24
- package/dist/Slider/Slider.css +0 -106
- package/dist/TextArea/TextArea.css +0 -53
- package/dist/Toast/Toast.css +0 -54
- package/dist/Tooltip/Tooltip.css +0 -91
- package/es/Breadcrumb/Breadcrumb.css +0 -34
- package/es/CitySelector/miniapp.css +0 -4
- package/es/ItemSelector/miniapp.css +0 -4
- package/es/NavBar/NavBar.css +0 -61
- package/es/Progress/Progress.css +0 -24
- package/es/Slider/Slider.css +0 -106
- package/es/TextArea/TextArea.css +0 -53
- package/es/Toast/Toast.css +0 -54
- package/es/Tooltip/Tooltip.css +0 -91
- /package/dist/Collapse/{Collapse.css → index.css} +0 -0
- /package/dist/Drawer/{Drawer.css → index.css} +0 -0
- /package/dist/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/dist/Modal/{Modal.css → index.css} +0 -0
- /package/dist/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/dist/Stack/{Stack.css → index.css} +0 -0
- /package/es/Collapse/{Collapse.css → index.css} +0 -0
- /package/es/Drawer/{Drawer.css → index.css} +0 -0
- /package/es/ItemSelector/{ItemSelector.css → index.css} +0 -0
- /package/es/Modal/{Modal.css → index.css} +0 -0
- /package/es/ScrollView/{ScrollView.css → index.css} +0 -0
- /package/es/Stack/{Stack.css → index.css} +0 -0
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-countdown-font-size: var(--bui-text-size-1);
|
|
5
|
+
--bui-countdown-color: var(--bui-color-fg-default);
|
|
6
|
+
--bui-countdown-font-weight: var(--bui-font-weight-normal);
|
|
7
|
+
--bui-countdown-slice-unit-margin: 0 2px;
|
|
8
|
+
}
|
|
1
9
|
.bui-countdown {
|
|
2
|
-
--font-size: var(--bui-countdown-font-size, var(--bui-text-size-1));
|
|
3
|
-
--color: var(--bui-countdown-color, var(--bui-color-fg-default));
|
|
4
|
-
--font-weight: var(--bui-countdown-font-weight, var(--bui-font-weight-normal));
|
|
5
|
-
--slice-unit-margin: var(--bui-countdown-slice-unit-margin, 0 2px);
|
|
6
10
|
display: flex;
|
|
7
11
|
flex-direction: row;
|
|
8
12
|
align-items: center;
|
|
9
|
-
font-size: var(--font-size);
|
|
10
|
-
color: var(--color);
|
|
11
|
-
font-weight: var(--font-weight);
|
|
13
|
+
font-size: var(--bui-countdown-font-size);
|
|
14
|
+
color: var(--bui-countdown-color);
|
|
15
|
+
font-weight: var(--bui-countdown-font-weight);
|
|
12
16
|
font-family: var(--bui-font-family);
|
|
13
17
|
}
|
|
14
18
|
.bui-countdown-slice {
|
|
@@ -35,5 +39,5 @@
|
|
|
35
39
|
sans-serif;
|
|
36
40
|
}
|
|
37
41
|
.bui-countdown-slice-unit {
|
|
38
|
-
margin: var(--slice-unit-margin);
|
|
42
|
+
margin: var(--bui-countdown-slice-unit-margin);
|
|
39
43
|
}
|
package/es/Dialog/index.css
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-dialog-max-width: 300px;
|
|
5
|
+
--bui-dialog-border-radius: var(--bui-shape-radius-drawer);
|
|
6
|
+
--bui-dialog-title-padding: 0 40px 9px;
|
|
7
|
+
--bui-dialog-desc-padding: 0 24px;
|
|
8
|
+
--bui-dialog-footer-margin-top: 15px;
|
|
9
|
+
--bui-dialog-button-height: 53px;
|
|
10
|
+
--bui-dialog-button-line-height: 25px;
|
|
11
|
+
--bui-dialog-button-padding: 12px 0 13px;
|
|
12
|
+
--bui-dialog-button-font-size: 17px;
|
|
13
|
+
--bui-dialog-button-border-left: 1px solid rgba(0, 0, 0, 0.05);
|
|
14
|
+
--bui-dialog-button-active-background-color: rgba(54, 57, 64, 0.05);
|
|
15
|
+
}
|
|
1
16
|
.bui-dialog {
|
|
2
|
-
--max-width: var(--bui-dialog-max-width, 300px);
|
|
3
|
-
--border-radius: var(--bui-dialog-border-radius, var(--bui-shape-radius-drawer));
|
|
4
|
-
--title-padding: var(--bui-dialog-title-padding, 0 40px 9px);
|
|
5
|
-
--desc-padding: var(--bui-dialog-desc-padding, 0 24px);
|
|
6
|
-
--footer-margin-top: var(--bui-dialog-footer-margin-top, 15px);
|
|
7
|
-
--button-height: var(--bui-dialog-button-height, 53px);
|
|
8
|
-
--button-line-height: var(--bui-dialog-button-line-height, 25px);
|
|
9
|
-
--button-padding: var(--bui-dialog-button-padding, 12px 0 13px);
|
|
10
|
-
--button-font-size: var(--bui-dialog-button-font-size, 17px);
|
|
11
|
-
--button-border-left: var(--bui-dialog-button-border-left, 1px solid rgba(0, 0, 0, 0.05));
|
|
12
|
-
--button-active-background-color: var(--bui-dialog-button-active-background-color, rgba(54, 57, 64, 0.05));
|
|
13
17
|
display: flex;
|
|
14
18
|
align-items: center;
|
|
15
19
|
justify-content: center;
|
|
16
20
|
}
|
|
17
21
|
.bui-dialog-body {
|
|
18
22
|
padding-top: 21px;
|
|
19
|
-
min-width: var(--max-width);
|
|
23
|
+
min-width: var(--bui-dialog-max-width);
|
|
20
24
|
margin: 0 auto;
|
|
21
|
-
border-radius: var(--border-radius);
|
|
25
|
+
border-radius: var(--bui-dialog-border-radius);
|
|
22
26
|
background-clip: padding-box;
|
|
23
27
|
background-color: var(--bui-color-bg-view);
|
|
24
28
|
line-height: 21px;
|
|
25
29
|
}
|
|
26
30
|
.bui-dialog-body-title {
|
|
27
|
-
padding: var(--title-padding);
|
|
31
|
+
padding: var(--bui-dialog-title-padding);
|
|
28
32
|
font-size: var(--bui-title-size-2);
|
|
29
33
|
text-align: center;
|
|
30
34
|
color: var(--bui-color-fg-default);
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
margin-top: var(--bui-spacing-sm);
|
|
35
39
|
}
|
|
36
40
|
.bui-dialog-body-desc {
|
|
37
|
-
padding: var(--desc-padding);
|
|
41
|
+
padding: var(--bui-dialog-desc-padding);
|
|
38
42
|
color: var(--bui-color-fg-muted);
|
|
39
43
|
font-size: var(--bui-title-size-4);
|
|
40
44
|
text-align: center;
|
|
@@ -43,9 +47,8 @@
|
|
|
43
47
|
padding-top: 0;
|
|
44
48
|
}
|
|
45
49
|
.bui-dialog-body-footer {
|
|
46
|
-
margin-top: var(--footer-margin-top);
|
|
50
|
+
margin-top: var(--bui-dialog-footer-margin-top);
|
|
47
51
|
border-top: 1px solid rgba(0, 0, 0, 0.05);
|
|
48
|
-
display: -webkit-box;
|
|
49
52
|
display: flex;
|
|
50
53
|
}
|
|
51
54
|
.bui-dialog-body-input {
|
|
@@ -56,13 +59,13 @@
|
|
|
56
59
|
flex: 1;
|
|
57
60
|
display: block;
|
|
58
61
|
width: 100%;
|
|
59
|
-
height: var(--button-height);
|
|
60
|
-
line-height: var(--button-line-height);
|
|
61
|
-
padding: var(--button-padding);
|
|
62
|
-
font-size: var(--button-font-size);
|
|
62
|
+
height: var(--bui-dialog-button-height);
|
|
63
|
+
line-height: var(--bui-dialog-button-line-height);
|
|
64
|
+
padding: var(--bui-dialog-button-padding);
|
|
65
|
+
font-size: var(--bui-dialog-button-font-size);
|
|
63
66
|
border: 0;
|
|
64
67
|
outline: 0;
|
|
65
|
-
border-left: var(--button-border-left);
|
|
68
|
+
border-left: var(--bui-dialog-button-border-left);
|
|
66
69
|
border-radius: 0;
|
|
67
70
|
text-align: center;
|
|
68
71
|
box-sizing: border-box;
|
|
@@ -71,5 +74,5 @@
|
|
|
71
74
|
border: none;
|
|
72
75
|
}
|
|
73
76
|
.bui-dialog-body-button:active {
|
|
74
|
-
background-color: var(--button-active-background-color);
|
|
77
|
+
background-color: var(--bui-dialog-button-active-background-color);
|
|
75
78
|
}
|
package/es/Divider/Divider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DividerProps } from './Divider.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Divider: React.ForwardRefExoticComponent<Omit<DividerProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Divider;
|
package/es/Divider/Divider.js
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-divider-height: 100%;
|
|
5
|
+
--bui-divider-width: 100%;
|
|
6
|
+
--bui-divider-border-width: 1px;
|
|
7
|
+
--bui-divider-line-width: 40px;
|
|
8
|
+
}
|
|
1
9
|
.bui-divider {
|
|
2
|
-
--height: var(--bui-divider-height, 100%);
|
|
3
|
-
--width: var(--bui-divider-width, 100%);
|
|
4
|
-
--border-width: var(--bui-divider-border-width, 1px);
|
|
5
|
-
--line-width: var(--bui-divider-line-width, 40px);
|
|
6
10
|
border-color: var(--bui-color-border-default);
|
|
7
11
|
font-family: var(--bui-font-family);
|
|
8
12
|
}
|
|
9
13
|
.bui-divider-vertical {
|
|
10
|
-
height: var(--height);
|
|
14
|
+
height: var(--bui-divider-height);
|
|
11
15
|
display: inline-block;
|
|
12
|
-
border-right-width: var(--border-width);
|
|
16
|
+
border-right-width: var(--bui-divider-border-width);
|
|
13
17
|
border-right-style: solid;
|
|
14
18
|
}
|
|
15
19
|
.bui-divider-horizontal {
|
|
16
|
-
width: var(--width);
|
|
17
|
-
border-bottom-width: var(--border-width);
|
|
20
|
+
width: var(--bui-divider-width);
|
|
21
|
+
border-bottom-width: var(--bui-divider-border-width);
|
|
18
22
|
border-bottom-style: solid;
|
|
19
23
|
}
|
|
20
24
|
.bui-divider-vertical-dashed {
|
|
@@ -31,8 +35,8 @@
|
|
|
31
35
|
justify-content: center;
|
|
32
36
|
}
|
|
33
37
|
.bui-divider-line {
|
|
34
|
-
width: var(--line-width);
|
|
35
|
-
border-bottom-width: var(--border-width);
|
|
38
|
+
width: var(--bui-divider-line-width);
|
|
39
|
+
border-bottom-width: var(--bui-divider-border-width);
|
|
36
40
|
border-bottom-style: solid;
|
|
37
41
|
border-color: var(--bui-color-border-default);
|
|
38
42
|
}
|
package/es/Drawer/Drawer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawerProps } from './Drawer.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Drawer: React.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Drawer;
|
package/es/Drawer/Drawer.js
CHANGED
|
@@ -33,7 +33,7 @@ import clsx from "clsx";
|
|
|
33
33
|
import React, { useState } from "react";
|
|
34
34
|
import Modal from "../Modal";
|
|
35
35
|
import Slide from "../Slide";
|
|
36
|
-
import "./
|
|
36
|
+
import "./index.css";
|
|
37
37
|
const prefixCls = "bui-drawer";
|
|
38
38
|
const oppositeDirection = {
|
|
39
39
|
left: "right",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconButtonProps } from './IconButton.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps<"button", {}>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export default IconButton;
|
|
@@ -29,7 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
import { isMini } from "@bifrostui/utils";
|
|
30
30
|
import clsx from "clsx";
|
|
31
31
|
import React from "react";
|
|
32
|
-
import "./
|
|
32
|
+
import "./index.css";
|
|
33
33
|
const prefixCls = "bui-icon-btn";
|
|
34
34
|
const IconButton = /* @__PURE__ */ React.forwardRef(
|
|
35
35
|
(props, ref) => {
|
|
@@ -37,7 +37,7 @@ const IconButton = /* @__PURE__ */ React.forwardRef(
|
|
|
37
37
|
const _a = props, {
|
|
38
38
|
className,
|
|
39
39
|
children,
|
|
40
|
-
color = "
|
|
40
|
+
color = "neutral",
|
|
41
41
|
disabled = false,
|
|
42
42
|
size = "medium",
|
|
43
43
|
variant = "default",
|
|
@@ -72,7 +72,7 @@ const IconButton = /* @__PURE__ */ React.forwardRef(
|
|
|
72
72
|
isMini && React.isValidElement(children) ? React.cloneElement(children, __spreadValues(__spreadValues({}, !isContainedVariant && {
|
|
73
73
|
color: ((_b = children.props) == null ? void 0 : _b.color) || color
|
|
74
74
|
}), isContainedVariant && {
|
|
75
|
-
htmlColor: ((_c = children.props) == null ? void 0 : _c.htmlColor) || "
|
|
75
|
+
htmlColor: ((_c = children.props) == null ? void 0 : _c.htmlColor) || "var(--bui-color-white)"
|
|
76
76
|
})) : children
|
|
77
77
|
);
|
|
78
78
|
}
|
|
@@ -10,16 +10,17 @@ export type IconButtonProps<D extends React.ElementType = 'button', P = {}> = Ov
|
|
|
10
10
|
*/
|
|
11
11
|
size?: 'small' | 'medium' | 'large';
|
|
12
12
|
/** 按钮颜色
|
|
13
|
-
* @default '
|
|
13
|
+
* @default 'neutral'
|
|
14
14
|
*/
|
|
15
|
-
color?: ThemeColor
|
|
15
|
+
color?: ThemeColor;
|
|
16
16
|
/**
|
|
17
17
|
* - default: 图标按钮
|
|
18
18
|
* - contained: 实心填充按钮
|
|
19
19
|
* - outlined: 描边按钮
|
|
20
|
+
* - subtle: 柔和按钮
|
|
20
21
|
* @default 'default'
|
|
21
22
|
*/
|
|
22
|
-
variant?: 'default' | 'contained' | 'outlined';
|
|
23
|
+
variant?: 'default' | 'contained' | 'outlined' | 'subtle';
|
|
23
24
|
/**
|
|
24
25
|
* - circular: 圆形
|
|
25
26
|
* - square: 正方形
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-icon-btn-contained-bg-color: var(--bui-color-neutral-5);
|
|
5
|
+
--bui-icon-btn-color: var(--bui-color-fg-muted);
|
|
6
|
+
--bui-icon-btn-small-font-size: var(--bui-text-size-4);
|
|
7
|
+
--bui-icon-btn-font-size: 17px;
|
|
8
|
+
--bui-icon-btn-small-padding: var(--bui-spacing-xs);
|
|
9
|
+
--bui-icon-btn-padding: 5px;
|
|
10
|
+
--bui-icon-btn-large-padding: var(--bui-spacing-sm);
|
|
11
|
+
--bui-icon-btn-large-font-size: 23px;
|
|
12
|
+
--bui-icon-btn-disabled-opacity: 0.5;
|
|
13
|
+
--bui-icon-btn-outlined-border: 1px solid;
|
|
14
|
+
--bui-icon-btn-subtle-border: 1px solid transparent;
|
|
15
|
+
--bui-icon-btn-border: 1px solid transparent;
|
|
16
|
+
}
|
|
1
17
|
.bui-icon-btn {
|
|
2
|
-
--bg-color: var(--bui-icon-btn-bg-color, var(--bui-color-neutral-5));
|
|
3
|
-
--color: var(--bui-icon-btn-color, var(--bui-color-fg-muted));
|
|
4
|
-
--icon-size: var(--bui-icon-btn-font-size, 17px);
|
|
5
|
-
--user-area: var(--bui-icon-btn-padding, 5px);
|
|
6
|
-
--large-font-size: var(--bui-icon-btn-large-font-size, 23px);
|
|
7
|
-
--disabled-opacity: var(--bui-icon-btn-disabled-opacity, 0.5);
|
|
8
18
|
position: relative;
|
|
9
19
|
display: inline-flex;
|
|
10
20
|
height: auto;
|
|
@@ -12,12 +22,12 @@
|
|
|
12
22
|
align-items: center;
|
|
13
23
|
justify-content: center;
|
|
14
24
|
background-color: transparent;
|
|
15
|
-
border:
|
|
16
|
-
color: var(--color);
|
|
25
|
+
border: var(--bui-icon-btn-border);
|
|
26
|
+
color: var(--bui-icon-btn-color);
|
|
17
27
|
cursor: pointer;
|
|
18
28
|
font-family: var(--bui-font-family);
|
|
19
|
-
font-size: var(--icon-size);
|
|
20
|
-
padding: var(--
|
|
29
|
+
font-size: var(--bui-icon-btn-font-size);
|
|
30
|
+
padding: var(--bui-icon-btn-padding);
|
|
21
31
|
}
|
|
22
32
|
.bui-icon-btn::before {
|
|
23
33
|
position: absolute;
|
|
@@ -40,28 +50,16 @@
|
|
|
40
50
|
border: 0;
|
|
41
51
|
}
|
|
42
52
|
.bui-icon-btn-small {
|
|
43
|
-
font-size: var(--bui-
|
|
44
|
-
padding: var(--bui-
|
|
45
|
-
}
|
|
46
|
-
.bui-icon-btn-small.bui-icon-btn-outlined,
|
|
47
|
-
.bui-icon-btn-small.bui-icon-btn-contained {
|
|
48
|
-
padding: var(--bui-spacing-xs);
|
|
49
|
-
}
|
|
50
|
-
.bui-icon-btn-medium.bui-icon-btn-outlined,
|
|
51
|
-
.bui-icon-btn-medium.bui-icon-btn-contained {
|
|
52
|
-
padding: var(--user-area);
|
|
53
|
+
font-size: var(--bui-icon-btn-small-font-size);
|
|
54
|
+
padding: var(--bui-icon-btn-small-padding);
|
|
53
55
|
}
|
|
54
56
|
.bui-icon-btn-large {
|
|
55
|
-
font-size: var(--large-font-size);
|
|
56
|
-
padding: var(--bui-
|
|
57
|
-
}
|
|
58
|
-
.bui-icon-btn-large.bui-icon-btn-outlined,
|
|
59
|
-
.bui-icon-btn-large.bui-icon-btn-contained {
|
|
60
|
-
padding: var(--bui-spacing-sm);
|
|
57
|
+
font-size: var(--bui-icon-btn-large-font-size);
|
|
58
|
+
padding: var(--bui-icon-btn-large-padding);
|
|
61
59
|
}
|
|
62
60
|
.bui-icon-btn-disabled {
|
|
63
61
|
pointer-events: none;
|
|
64
|
-
opacity: var(--disabled-opacity);
|
|
62
|
+
opacity: var(--bui-icon-btn-disabled-opacity);
|
|
65
63
|
}
|
|
66
64
|
.bui-icon-btn-circular {
|
|
67
65
|
border-radius: 100%;
|
|
@@ -84,8 +82,14 @@
|
|
|
84
82
|
.bui-icon-btn-default.bui-icon-btn-warning {
|
|
85
83
|
color: var(--bui-color-warning);
|
|
86
84
|
}
|
|
85
|
+
.bui-icon-btn-default.bui-icon-btn-light {
|
|
86
|
+
color: var(--bui-color-bg-view);
|
|
87
|
+
}
|
|
88
|
+
.bui-icon-btn-default.bui-icon-btn-dark {
|
|
89
|
+
color: var(--bui-color-fg-default);
|
|
90
|
+
}
|
|
87
91
|
.bui-icon-btn-outlined {
|
|
88
|
-
border:
|
|
92
|
+
border: var(--bui-icon-btn-outlined-border);
|
|
89
93
|
}
|
|
90
94
|
.bui-icon-btn-outlined.bui-icon-btn-primary {
|
|
91
95
|
color: var(--bui-color-primary);
|
|
@@ -107,8 +111,16 @@
|
|
|
107
111
|
color: var(--bui-color-danger);
|
|
108
112
|
border-color: var(--bui-color-danger);
|
|
109
113
|
}
|
|
114
|
+
.bui-icon-btn-outlined.bui-icon-btn-light {
|
|
115
|
+
color: var(--bui-color-bg-view);
|
|
116
|
+
border-color: var(--bui-color-bg-view);
|
|
117
|
+
}
|
|
118
|
+
.bui-icon-btn-outlined.bui-icon-btn-dark {
|
|
119
|
+
color: var(--bui-color-fg-default);
|
|
120
|
+
border-color: var(--bui-color-fg-default);
|
|
121
|
+
}
|
|
110
122
|
.bui-icon-btn-contained {
|
|
111
|
-
background-color: var(--bg-color);
|
|
123
|
+
background-color: var(--bui-icon-btn-contained-bg-color);
|
|
112
124
|
}
|
|
113
125
|
.bui-icon-btn-contained.bui-icon-btn-primary {
|
|
114
126
|
color: var(--bui-color-white);
|
|
@@ -150,3 +162,41 @@
|
|
|
150
162
|
var(--bui-color-danger-start) 0%,
|
|
151
163
|
var(--bui-color-danger-end) 100%);
|
|
152
164
|
}
|
|
165
|
+
.bui-icon-btn-contained.bui-icon-btn-light {
|
|
166
|
+
color: var(--bui-color-fg-default);
|
|
167
|
+
background: var(--bui-color-bg-view);
|
|
168
|
+
}
|
|
169
|
+
.bui-icon-btn-contained.bui-icon-btn-dark {
|
|
170
|
+
color: var(--bui-color-bg-view);
|
|
171
|
+
background: var(--bui-color-fg-default);
|
|
172
|
+
}
|
|
173
|
+
.bui-icon-btn-subtle {
|
|
174
|
+
background-color: var(--bui-color-gray-light);
|
|
175
|
+
border: var(--bui-icon-btn-subtle-border);
|
|
176
|
+
}
|
|
177
|
+
.bui-icon-btn-subtle.bui-icon-btn-warning {
|
|
178
|
+
color: var(--bui-color-warning);
|
|
179
|
+
background: var(--bui-color-warning-light);
|
|
180
|
+
}
|
|
181
|
+
.bui-icon-btn-subtle.bui-icon-btn-primary {
|
|
182
|
+
color: var(--bui-color-primary);
|
|
183
|
+
background: var(--bui-color-primary-light);
|
|
184
|
+
}
|
|
185
|
+
.bui-icon-btn-subtle.bui-icon-btn-info {
|
|
186
|
+
color: var(--bui-color-info);
|
|
187
|
+
background: var(--bui-color-info-light);
|
|
188
|
+
}
|
|
189
|
+
.bui-icon-btn-subtle.bui-icon-btn-success {
|
|
190
|
+
color: var(--bui-color-success);
|
|
191
|
+
background: var(--bui-color-success-light);
|
|
192
|
+
}
|
|
193
|
+
.bui-icon-btn-subtle.bui-icon-btn-danger {
|
|
194
|
+
color: var(--bui-color-danger);
|
|
195
|
+
background: var(--bui-color-danger-light);
|
|
196
|
+
}
|
|
197
|
+
.bui-icon-btn-subtle.bui-icon-btn-light {
|
|
198
|
+
color: var(--bui-color-bg-view);
|
|
199
|
+
}
|
|
200
|
+
.bui-icon-btn-subtle.bui-icon-btn-dark {
|
|
201
|
+
color: var(--bui-color-fg-default);
|
|
202
|
+
}
|
package/es/Image/index.css
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-image-default-background-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;
|
|
@@ -32,5 +36,5 @@
|
|
|
32
36
|
.bui-image-default-icon-item {
|
|
33
37
|
width: 100%;
|
|
34
38
|
height: 100%;
|
|
35
|
-
background-color: var(--default-background-color);
|
|
39
|
+
background-color: var(--bui-image-default-background-color);
|
|
36
40
|
}
|
package/es/Input/Input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InputProps } from './index';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Input: React.ForwardRefExoticComponent<Omit<InputProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Input;
|
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, {
|
|
@@ -141,7 +141,7 @@ const Input = forwardRef((props, ref) => {
|
|
|
141
141
|
className: clsx(`${prefixCls}-input`, inputProps == null ? void 0 : inputProps.className)
|
|
142
142
|
})
|
|
143
143
|
),
|
|
144
|
-
clearable && !!inputValue && hasFocus && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-clear`, onClick: handleClear }, /* @__PURE__ */ React.createElement(ErrorCircleFilledIcon, { htmlColor: "
|
|
144
|
+
clearable && !!inputValue && hasFocus && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-clear`, onClick: handleClear }, /* @__PURE__ */ React.createElement(ErrorCircleFilledIcon, { htmlColor: "var(--bui-color-fg-subtle)" })),
|
|
145
145
|
endIcon && /* @__PURE__ */ React.createElement("div", { className: `${prefixCls}-icon ${prefixCls}-icon-end` }, endIcon)
|
|
146
146
|
);
|
|
147
147
|
});
|
|
@@ -1,18 +1,24 @@
|
|
|
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-right: 3px;
|
|
8
|
+
--bui-input-icon-end-margin-left: 3px;
|
|
9
|
+
--bui-input-background-color: transparent;
|
|
10
|
+
--bui-input-disabled-background-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
|
+
}
|
|
1
14
|
.bui-input {
|
|
2
|
-
--height: var(--bui-input-height, 32px);
|
|
3
|
-
--padding: var(--bui-input-padding, 4px 10px);
|
|
4
|
-
--border-radius: var(--bui-input-border-radius, var(--bui-shape-radius-default));
|
|
5
|
-
--icon-start-margin-right: var(--bui-input-icon-start-margin-right, 3px);
|
|
6
|
-
--icon-end-margin-left: var(--bui-input-icon-end-margin-left, 3px);
|
|
7
|
-
--background-color: var(--bui-input-background-color, transparent);
|
|
8
|
-
--disabled-background-color: var(--bui-input-disabled-background-color, rgba(0, 0, 0, 0.04));
|
|
9
15
|
position: relative;
|
|
10
16
|
display: flex;
|
|
11
17
|
align-items: center;
|
|
12
|
-
height: var(--height);
|
|
13
|
-
padding: var(--padding);
|
|
18
|
+
height: var(--bui-input-height);
|
|
19
|
+
padding: var(--bui-input-padding);
|
|
14
20
|
box-sizing: border-box;
|
|
15
|
-
border-radius: var(--border-radius);
|
|
21
|
+
border-radius: var(--bui-input-border-radius);
|
|
16
22
|
border: 1px solid var(--bui-color-border-default);
|
|
17
23
|
font-family: var(--bui-font-family);
|
|
18
24
|
}
|
|
@@ -23,29 +29,27 @@
|
|
|
23
29
|
font-size: var(--bui-title-size-3);
|
|
24
30
|
}
|
|
25
31
|
.bui-input-icon-start {
|
|
26
|
-
margin-right: var(--icon-start-margin-right);
|
|
32
|
+
margin-right: var(--bui-input-icon-start-margin-right);
|
|
27
33
|
}
|
|
28
34
|
.bui-input-icon-end {
|
|
29
|
-
margin-left: var(--icon-end-margin-left);
|
|
35
|
+
margin-left: var(--bui-input-icon-end-margin-left);
|
|
30
36
|
}
|
|
31
37
|
.bui-input-input {
|
|
32
38
|
flex: 1;
|
|
33
39
|
min-width: 0;
|
|
34
|
-
display: flex;
|
|
35
|
-
align-items: center;
|
|
36
40
|
padding: 0;
|
|
37
41
|
height: 100%;
|
|
38
42
|
color: var(--bui-color-fg-default);
|
|
39
43
|
border: none;
|
|
40
44
|
outline: none;
|
|
41
|
-
background-color: var(--background-color);
|
|
45
|
+
background-color: var(--bui-input-background-color);
|
|
42
46
|
font-size: var(--bui-text-size-2);
|
|
43
47
|
}
|
|
44
48
|
.bui-input-input::placeholder {
|
|
45
49
|
color: var(--bui-color-fg-subtle);
|
|
46
50
|
}
|
|
47
51
|
.bui-input-disabled {
|
|
48
|
-
background-color: var(--disabled-background-color);
|
|
52
|
+
background-color: var(--bui-input-disabled-background-color);
|
|
49
53
|
}
|
|
50
54
|
.bui-input-disabled .bui-input-input {
|
|
51
55
|
color: var(--bui-color-fg-disabled);
|
|
@@ -57,9 +61,9 @@
|
|
|
57
61
|
display: flex;
|
|
58
62
|
align-items: center;
|
|
59
63
|
cursor: pointer;
|
|
60
|
-
color: var(--bui-
|
|
64
|
+
color: var(--bui-input-clear-color);
|
|
61
65
|
height: 100%;
|
|
62
|
-
font-size: var(--bui-
|
|
66
|
+
font-size: var(--bui-input-clear-font-size);
|
|
63
67
|
}
|
|
64
68
|
.bui-input .bui-mini-placeholder {
|
|
65
69
|
width: auto;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ItemSelectorProps } from './ItemSelector.types';
|
|
3
|
-
import './miniapp.less';
|
|
4
3
|
declare const ItemSelector: React.ForwardRefExoticComponent<Omit<ItemSelectorProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
export default ItemSelector;
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ItemSelectorCoreProps } from './ItemSelector.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const ItemSelector: React.ForwardRefExoticComponent<Omit<ItemSelectorCoreProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default ItemSelector;
|
|
@@ -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/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);
|