@bifrostui/react 2.0.0-beta.2 → 2.0.0-beta.5
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
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-textarea-border-radius: var(--bui-shape-radius-label);
|
|
5
|
+
--bui-textarea-width: 100%;
|
|
6
|
+
--bui-textarea-background-color: var(--bui-color-bg-default);
|
|
7
|
+
--bui-textarea-text-color: var(--bui-color-fg-subtle);
|
|
8
|
+
--bui-textarea-count-background-color: var(--bui-textarea-background-color, var(--bui-color-bg-default));
|
|
9
|
+
--bui-textarea-count-color: var(--bui-color-fg-subtle);
|
|
10
|
+
--bui-textarea-text-font-size: var(--bui-text-size-2);
|
|
11
|
+
--bui-textarea-count-font-size: var(--bui-title-size-3);
|
|
12
|
+
--bui-textarea-padding: 8px;
|
|
13
|
+
--bui-textarea-count-padding: 0 4px;
|
|
14
|
+
--bui-textarea-placeholder-color: #ced1d6;
|
|
15
|
+
--bui-textarea-placeholder-line-height: 1.3;
|
|
16
|
+
}
|
|
17
|
+
.bui-textarea {
|
|
18
|
+
background: var(--bui-color-bg-default);
|
|
19
|
+
border-radius: var(--bui-textarea-border-radius);
|
|
20
|
+
font-family: var(--bui-font-family);
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
|
23
|
+
.bui-textarea textarea {
|
|
24
|
+
font-size: var(--bui-textarea-text-font-size);
|
|
25
|
+
color: var(--bui-textarea-text-color);
|
|
26
|
+
line-height: var(--bui-line-height);
|
|
27
|
+
}
|
|
28
|
+
.bui-textarea .bui-mini-placeholder {
|
|
29
|
+
color: var(--bui-textarea-placeholder-color);
|
|
30
|
+
}
|
|
31
|
+
.bui-textarea-disabled {
|
|
32
|
+
pointer-events: none;
|
|
33
|
+
}
|
|
34
|
+
.bui-textarea .a-textarea-count-wrap {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
.bui-textarea-content {
|
|
38
|
+
width: var(--bui-textarea-width);
|
|
39
|
+
resize: none;
|
|
40
|
+
background-color: var(--bui-textarea-background-color);
|
|
41
|
+
padding: var(--bui-textarea-padding);
|
|
42
|
+
border: none;
|
|
43
|
+
outline: none;
|
|
44
|
+
word-break: break-all;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
.bui-textarea-content::placeholder {
|
|
48
|
+
color: var(--bui-textarea-placeholder-color);
|
|
49
|
+
line-height: var(--bui-textarea-placeholder-line-height);
|
|
50
|
+
}
|
|
51
|
+
.bui-textarea-count {
|
|
52
|
+
background-color: var(--bui-textarea-count-background-color);
|
|
53
|
+
color: var(--bui-textarea-count-color);
|
|
54
|
+
text-align: right;
|
|
55
|
+
padding: var(--bui-textarea-count-padding);
|
|
56
|
+
font-size: var(--bui-textarea-count-font-size);
|
|
57
|
+
}
|
|
@@ -13,7 +13,6 @@ const ThemeProvider = /* @__PURE__ */ React.forwardRef(
|
|
|
13
13
|
defaultLightToken,
|
|
14
14
|
defaultDarkToken,
|
|
15
15
|
dmLightToken,
|
|
16
|
-
dmDarkToken,
|
|
17
16
|
token,
|
|
18
17
|
children
|
|
19
18
|
} = props;
|
|
@@ -29,7 +28,7 @@ const ThemeProvider = /* @__PURE__ */ React.forwardRef(
|
|
|
29
28
|
});
|
|
30
29
|
}
|
|
31
30
|
useEffect(() => {
|
|
32
|
-
if (responsive || defaultLightToken || defaultDarkToken || dmLightToken ||
|
|
31
|
+
if (responsive || defaultLightToken || defaultDarkToken || dmLightToken || token) {
|
|
33
32
|
mountTokens({
|
|
34
33
|
isRoot,
|
|
35
34
|
containerId,
|
|
@@ -38,7 +37,6 @@ const ThemeProvider = /* @__PURE__ */ React.forwardRef(
|
|
|
38
37
|
defaultLightToken,
|
|
39
38
|
defaultDarkToken,
|
|
40
39
|
dmLightToken,
|
|
41
|
-
dmDarkToken,
|
|
42
40
|
token
|
|
43
41
|
});
|
|
44
42
|
}
|
|
@@ -49,7 +47,6 @@ const ThemeProvider = /* @__PURE__ */ React.forwardRef(
|
|
|
49
47
|
defaultLightToken,
|
|
50
48
|
defaultDarkToken,
|
|
51
49
|
dmLightToken,
|
|
52
|
-
dmDarkToken,
|
|
53
50
|
token
|
|
54
51
|
]);
|
|
55
52
|
return /* @__PURE__ */ React.createElement(ThemeContext.Provider, { value: theme }, childrenNode);
|
|
@@ -57,7 +57,6 @@ interface ThemeProps {
|
|
|
57
57
|
/**
|
|
58
58
|
* 当前ThemeProvider是否为最顶层
|
|
59
59
|
* 若当前应用会出现嵌套的ThemeProvider,则需要将最外层的ThemeProvider isRoot属性设置为true
|
|
60
|
-
* TODO 不通过属性判断
|
|
61
60
|
* @default false
|
|
62
61
|
*/
|
|
63
62
|
isRoot?: boolean;
|
|
@@ -91,26 +90,22 @@ interface ThemeProps {
|
|
|
91
90
|
*/
|
|
92
91
|
dmLightToken?: Record<string, string>;
|
|
93
92
|
/**
|
|
94
|
-
*
|
|
93
|
+
* 先锋版高亮主题Token
|
|
95
94
|
*/
|
|
96
|
-
|
|
95
|
+
pioneerLightToken?: Record<string, string>;
|
|
97
96
|
/**
|
|
98
|
-
*
|
|
97
|
+
* 组件Token
|
|
99
98
|
*/
|
|
100
99
|
token?: Record<string, string>;
|
|
101
100
|
}
|
|
102
101
|
/**
|
|
103
102
|
* 复写内置主题Tokens
|
|
104
103
|
*/
|
|
105
|
-
type BuiltInThemesTokenOptions = Pick<ThemeProps, 'defaultLightToken' | 'defaultDarkToken' | 'dmLightToken' | '
|
|
104
|
+
type BuiltInThemesTokenOptions = Pick<ThemeProps, 'defaultLightToken' | 'defaultDarkToken' | 'dmLightToken' | 'pioneerLightToken'>;
|
|
106
105
|
/**
|
|
107
106
|
* 挂载组件自定义Tokens参数
|
|
108
107
|
*/
|
|
109
108
|
export type MountComponentsTokenOptions = Pick<ThemeProps, 'isRoot' | 'container' | 'containerId' | 'token'>;
|
|
110
|
-
/**
|
|
111
|
-
* 挂载响应式Tokens参数
|
|
112
|
-
*/
|
|
113
|
-
type componentsTokenOptions = Pick<ThemeProps, 'token'>;
|
|
114
109
|
export type MountResponsiveTokenOptions = Pick<ThemeProps, 'responsive'> & {
|
|
115
110
|
breakpoints?: Breakpoints;
|
|
116
111
|
};
|
|
@@ -124,4 +119,4 @@ export type ThemeProviderProps<D extends React.ElementType = 'div', P = {}> = Ov
|
|
|
124
119
|
props: P & ThemeProps;
|
|
125
120
|
defaultComponent: D;
|
|
126
121
|
}, D>;
|
|
127
|
-
export { BaseLang, ResponsiveTokenOptions, ThemeProps, BuiltInThemesTokenOptions,
|
|
122
|
+
export { BaseLang, ResponsiveTokenOptions, ThemeProps, BuiltInThemesTokenOptions, };
|
|
@@ -30,7 +30,10 @@ const rootSelector = {
|
|
|
30
30
|
],
|
|
31
31
|
defaultDark: [".bui-dark", '[data-color-mode="dark"][data-theme="default"]'],
|
|
32
32
|
dmLight: [".bui-dm-light", '[data-color-mode="light"][data-theme="dm"]'],
|
|
33
|
-
|
|
33
|
+
pioneerLight: [
|
|
34
|
+
".bui-pioneer-light",
|
|
35
|
+
'[data-color-mode="light"][data-theme="pioneer"]'
|
|
36
|
+
]
|
|
34
37
|
};
|
|
35
38
|
const BUI_VAR_PREFIX = "bui-var-";
|
|
36
39
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ThemeProps, MountResponsiveTokenOptions, BuiltInThemesTokenOptions } from '../ThemeProvider.types';
|
|
2
2
|
/**
|
|
3
3
|
* 挂载响应式自定义Tokens
|
|
4
|
-
*
|
|
4
|
+
* 将自定义Tokens挂载在rootSelector.defaultLight下,其他主题下可自定义额外Toekns复写响应式Tokens
|
|
5
5
|
*/
|
|
6
6
|
export declare const mountResponsiveTokens: (options: MountResponsiveTokenOptions) => void;
|
|
7
7
|
/**
|
|
@@ -10,17 +10,17 @@ export declare const mountResponsiveTokens: (options: MountResponsiveTokenOption
|
|
|
10
10
|
* 1. 默认高亮模式(defaultLightToken 复写 default-light.less)
|
|
11
11
|
* 2. 默认暗黑模式(defaultDarkToken 复写 default-dark.less)
|
|
12
12
|
* 3. 大麦高亮模式(dmLightToken 复写 dm-light.less)
|
|
13
|
-
* 4.
|
|
13
|
+
* 4. 先锋版高亮模式(pioneerLightToken 复写 pioneer-light.less)
|
|
14
14
|
*/
|
|
15
15
|
export declare const overrideBuiltInThemes: (tokenOptions: BuiltInThemesTokenOptions) => void;
|
|
16
16
|
/**
|
|
17
17
|
* 挂载Design Tokens
|
|
18
18
|
* Tokens的优先级:
|
|
19
19
|
* 1. 通常情况:组件的Tokens > 响应式Tokens > BUI内置Tokens(挂载顺序控制)
|
|
20
|
-
* 2. 暗黑模式:组件的Tokens > BUI
|
|
20
|
+
* 2. 暗黑模式:组件的Tokens > BUI内置的暗黑模式Tokens > 响应式Tokens (选择器权重控制)
|
|
21
21
|
*
|
|
22
22
|
* - 挂载顺序决定BUI内置Tokens(暗黑模式除外)和响应式Tokens的优先级
|
|
23
23
|
* - 选择器权重决定暗黑模式的Tokens和响应式Tokens的优先级
|
|
24
|
-
* - 命名规则决定组件的Tokens(如:--bui-
|
|
24
|
+
* - 命名规则决定组件的Tokens(如:--bui-btn-xxx)
|
|
25
25
|
*/
|
|
26
26
|
export declare const mountTokens: (tokenOptions?: ThemeProps) => void;
|
package/es/Toast/Toast.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ToastProps, ToastRef } from './Toast.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const ToastComponent: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<ToastRef>>;
|
|
5
5
|
export default ToastComponent;
|
package/es/Toast/Toast.js
CHANGED
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "@bifrostui/icons";
|
|
40
40
|
import Fade from "../Fade";
|
|
41
41
|
import { useTheme } from "../ThemeProvider";
|
|
42
|
-
import "./
|
|
42
|
+
import "./index.css";
|
|
43
43
|
const prefixCls = "bui-toast";
|
|
44
44
|
const ToastComponent = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
45
45
|
const _a = props, {
|
|
@@ -68,10 +68,10 @@ const ToastComponent = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
68
68
|
return { theme: themeConfig };
|
|
69
69
|
}, []);
|
|
70
70
|
const iconMap = {
|
|
71
|
-
fail: /* @__PURE__ */ React.createElement(ErrorCircleFilledBoldIcon, { htmlColor: "
|
|
72
|
-
loading: /* @__PURE__ */ React.createElement(AccessTimeCircleFilledBoldIcon, { htmlColor: "
|
|
73
|
-
warning: /* @__PURE__ */ React.createElement(AlertCircleFilledBoldIcon, { htmlColor: "
|
|
74
|
-
success: /* @__PURE__ */ React.createElement(SuccessCircleFilledBoldIcon, { htmlColor: "
|
|
71
|
+
fail: /* @__PURE__ */ React.createElement(ErrorCircleFilledBoldIcon, { htmlColor: "var(--bui-color-white)" }),
|
|
72
|
+
loading: /* @__PURE__ */ React.createElement(AccessTimeCircleFilledBoldIcon, { htmlColor: "var(--bui-color-white)" }),
|
|
73
|
+
warning: /* @__PURE__ */ React.createElement(AlertCircleFilledBoldIcon, { htmlColor: "var(--bui-color-white)" }),
|
|
74
|
+
success: /* @__PURE__ */ React.createElement(SuccessCircleFilledBoldIcon, { htmlColor: "var(--bui-color-white)" })
|
|
75
75
|
};
|
|
76
76
|
const iconDom = iconMap[type] || icon;
|
|
77
77
|
return /* @__PURE__ */ React.createElement(Fade, __spreadProps(__spreadValues({}, others), { in: open, appear: false, unmountOnExit: true }), /* @__PURE__ */ React.createElement(
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-toast-min-width: 86px;
|
|
5
|
+
--bui-toast-max-width: 80%;
|
|
6
|
+
--bui-toast-text-align: center;
|
|
7
|
+
--bui-toast-flex-direction: column;
|
|
8
|
+
--bui-toast-padding: var(--bui-spacing-xl);
|
|
9
|
+
--bui-toast-position-top: 15%;
|
|
10
|
+
--bui-toast-position-bottom: 85%;
|
|
11
|
+
--bui-toast-bg-color: rgba(0, 0, 0, 0.8);
|
|
12
|
+
--bui-toast-border-radius: var(--bui-shape-radius-default);
|
|
13
|
+
--bui-toast-icon-margin: 0 0 8px;
|
|
14
|
+
--bui-toast-icon-font-size: 30px;
|
|
15
|
+
}
|
|
16
|
+
.bui-toast {
|
|
17
|
+
position: fixed;
|
|
18
|
+
left: 50%;
|
|
19
|
+
z-index: var(--bui-z-index-toast);
|
|
20
|
+
width: fit-content;
|
|
21
|
+
min-width: var(--bui-toast-min-width);
|
|
22
|
+
max-width: var(--bui-toast-max-width);
|
|
23
|
+
padding: var(--bui-toast-padding);
|
|
24
|
+
font-size: var(--bui-text-size-1);
|
|
25
|
+
color: var(--bui-color-white);
|
|
26
|
+
border-radius: var(--bui-toast-border-radius);
|
|
27
|
+
word-break: break-all;
|
|
28
|
+
white-space: pre-wrap;
|
|
29
|
+
background-color: var(--bui-toast-bg-color);
|
|
30
|
+
text-align: var(--bui-toast-text-align);
|
|
31
|
+
font-family: var(--bui-font-family);
|
|
32
|
+
}
|
|
33
|
+
.bui-toast.bui-toast-allow-click {
|
|
34
|
+
position: fixed;
|
|
35
|
+
right: unset;
|
|
36
|
+
bottom: unset;
|
|
37
|
+
}
|
|
38
|
+
.bui-toast-center {
|
|
39
|
+
top: 50%;
|
|
40
|
+
transform: translate(-50%, -50%);
|
|
41
|
+
}
|
|
42
|
+
.bui-toast-top {
|
|
43
|
+
top: var(--bui-toast-position-top);
|
|
44
|
+
transform: translate(-50%, calc(-1 * var(--bui-toast-position-top)));
|
|
45
|
+
}
|
|
46
|
+
.bui-toast-bottom {
|
|
47
|
+
top: var(--bui-toast-position-bottom);
|
|
48
|
+
transform: translate(-50%, calc(-1 * var(--bui-toast-position-bottom)));
|
|
49
|
+
}
|
|
50
|
+
.bui-toast-icon {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: var(--bui-toast-flex-direction);
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
.bui-toast-icon .bui-svg-icon {
|
|
56
|
+
margin: var(--bui-toast-icon-margin);
|
|
57
|
+
font-size: var(--bui-toast-icon-font-size);
|
|
58
|
+
}
|
package/es/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TooltipProps } from './Tooltip.types';
|
|
3
|
-
import './
|
|
3
|
+
import './index.less';
|
|
4
4
|
declare const Tooltip: React.ForwardRefExoticComponent<Omit<TooltipProps<"div", {}>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
export default Tooltip;
|
package/es/Tooltip/Tooltip.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
throttle
|
|
37
37
|
} from "@bifrostui/utils";
|
|
38
38
|
import Portal from "../Portal";
|
|
39
|
-
import "./
|
|
39
|
+
import "./index.css";
|
|
40
40
|
const prefixCls = "bui-tooltip";
|
|
41
41
|
const Tooltip = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
42
42
|
const _a = props, {
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
page,
|
|
3
|
+
xhs-page {
|
|
4
|
+
--bui-tooltip-arrow-size: 8PX;
|
|
5
|
+
--bui-tooltip-location-position: 8PX;
|
|
6
|
+
--bui-tooltip-max-width: 350px;
|
|
7
|
+
--bui-tooltip-content-min-width: 30px;
|
|
8
|
+
--bui-tooltip-content-min-height: 32px;
|
|
9
|
+
--bui-tooltip-content-padding: 6px 8px;
|
|
10
|
+
}
|
|
11
|
+
.bui-tooltip {
|
|
12
|
+
max-width: var(--bui-tooltip-max-width);
|
|
13
|
+
font-size: var(--bui-text-size-1);
|
|
14
|
+
position: absolute;
|
|
15
|
+
visibility: hidden;
|
|
16
|
+
z-index: var(--bui-z-index-tooltip);
|
|
17
|
+
}
|
|
18
|
+
.bui-tooltip .bui-tooltip-arrow {
|
|
19
|
+
width: 0;
|
|
20
|
+
height: 0;
|
|
21
|
+
position: absolute;
|
|
22
|
+
}
|
|
23
|
+
.bui-tooltip .bui-tooltip-arrow.location-left {
|
|
24
|
+
left: var(--bui-tooltip-location-position);
|
|
25
|
+
}
|
|
26
|
+
.bui-tooltip .bui-tooltip-arrow.location-right {
|
|
27
|
+
right: var(--bui-tooltip-location-position);
|
|
28
|
+
}
|
|
29
|
+
.bui-tooltip .bui-tooltip-arrow.location-top {
|
|
30
|
+
top: var(--bui-tooltip-location-position);
|
|
31
|
+
}
|
|
32
|
+
.bui-tooltip .bui-tooltip-arrow.location-bottom {
|
|
33
|
+
bottom: var(--bui-tooltip-location-position);
|
|
34
|
+
}
|
|
35
|
+
.bui-tooltip.tooltip-top .location-center,
|
|
36
|
+
.bui-tooltip.tooltip-bottom .location-center {
|
|
37
|
+
left: 50%;
|
|
38
|
+
transform: translateX(-50%);
|
|
39
|
+
}
|
|
40
|
+
.bui-tooltip.tooltip-left .location-center,
|
|
41
|
+
.bui-tooltip.tooltip-right .location-center {
|
|
42
|
+
top: 50%;
|
|
43
|
+
transform: translateY(-50%);
|
|
44
|
+
}
|
|
45
|
+
.bui-tooltip.tooltip-top {
|
|
46
|
+
padding-bottom: var(--bui-tooltip-arrow-size);
|
|
47
|
+
}
|
|
48
|
+
.bui-tooltip.tooltip-top .bui-tooltip-arrow {
|
|
49
|
+
border-left: var(--bui-tooltip-arrow-size) solid transparent;
|
|
50
|
+
border-right: var(--bui-tooltip-arrow-size) solid transparent;
|
|
51
|
+
border-top: var(--bui-tooltip-arrow-size) solid var(--bui-color-bg-alpha-dark-7);
|
|
52
|
+
bottom: 0;
|
|
53
|
+
}
|
|
54
|
+
.bui-tooltip.tooltip-bottom {
|
|
55
|
+
padding-top: var(--bui-tooltip-arrow-size);
|
|
56
|
+
}
|
|
57
|
+
.bui-tooltip.tooltip-bottom .bui-tooltip-arrow {
|
|
58
|
+
border-left: var(--bui-tooltip-arrow-size) solid transparent;
|
|
59
|
+
border-right: var(--bui-tooltip-arrow-size) solid transparent;
|
|
60
|
+
border-bottom: var(--bui-tooltip-arrow-size) solid var(--bui-color-bg-alpha-dark-7);
|
|
61
|
+
top: 0;
|
|
62
|
+
}
|
|
63
|
+
.bui-tooltip.tooltip-left {
|
|
64
|
+
padding-right: var(--bui-tooltip-arrow-size);
|
|
65
|
+
}
|
|
66
|
+
.bui-tooltip.tooltip-left .bui-tooltip-arrow {
|
|
67
|
+
border-top: var(--bui-tooltip-arrow-size) solid transparent;
|
|
68
|
+
border-bottom: var(--bui-tooltip-arrow-size) solid transparent;
|
|
69
|
+
border-left: var(--bui-tooltip-arrow-size) solid var(--bui-color-bg-alpha-dark-7);
|
|
70
|
+
right: 0;
|
|
71
|
+
}
|
|
72
|
+
.bui-tooltip.tooltip-right {
|
|
73
|
+
padding-left: var(--bui-tooltip-arrow-size);
|
|
74
|
+
}
|
|
75
|
+
.bui-tooltip.tooltip-right .bui-tooltip-arrow {
|
|
76
|
+
border-top: var(--bui-tooltip-arrow-size) solid transparent;
|
|
77
|
+
border-bottom: var(--bui-tooltip-arrow-size) solid transparent;
|
|
78
|
+
border-right: var(--bui-tooltip-arrow-size) solid var(--bui-color-bg-alpha-dark-7);
|
|
79
|
+
left: 0;
|
|
80
|
+
}
|
|
81
|
+
.bui-tooltip .bui-tooltip-content {
|
|
82
|
+
min-width: var(--bui-tooltip-content-min-width);
|
|
83
|
+
min-height: var(--bui-tooltip-content-min-height);
|
|
84
|
+
padding: var(--bui-tooltip-content-padding);
|
|
85
|
+
color: var(--bui-color-white);
|
|
86
|
+
text-align: left;
|
|
87
|
+
text-decoration: none;
|
|
88
|
+
word-wrap: break-word;
|
|
89
|
+
background-color: var(--bui-color-bg-alpha-dark-7);
|
|
90
|
+
border-radius: var(--bui-shape-radius-poster);
|
|
91
|
+
box-shadow:
|
|
92
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
93
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
94
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
|
95
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifrostui/react",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.5",
|
|
4
4
|
"description": "React components for building mobile application",
|
|
5
5
|
"homepage": "http://bui.taopiaopiao.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
"directories": {
|
|
11
11
|
"test": "__tests__"
|
|
12
12
|
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./es/index.js",
|
|
16
|
+
"module": "./es/index.js",
|
|
17
|
+
"require": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./css/*": "./es/*/index.css"
|
|
20
|
+
},
|
|
13
21
|
"files": [
|
|
14
22
|
"dist",
|
|
15
23
|
"es",
|
|
@@ -33,10 +41,10 @@
|
|
|
33
41
|
"clsx": "^2.1.1",
|
|
34
42
|
"dayjs": "^1.11.7",
|
|
35
43
|
"swiper": "^8.1.5",
|
|
36
|
-
"@bifrostui/icons": "2.0.0-beta.
|
|
37
|
-
"@bifrostui/styles": "2.0.0-beta.
|
|
38
|
-
"@bifrostui/types": "2.0.0-beta.
|
|
39
|
-
"@bifrostui/utils": "2.0.0-beta.
|
|
44
|
+
"@bifrostui/icons": "2.0.0-beta.5",
|
|
45
|
+
"@bifrostui/styles": "2.0.0-beta.5",
|
|
46
|
+
"@bifrostui/types": "2.0.0-beta.5",
|
|
47
|
+
"@bifrostui/utils": "2.0.0-beta.5"
|
|
40
48
|
},
|
|
41
49
|
"peerDependencies": {
|
|
42
50
|
"@tarojs/components": "^3.0.0",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
.bui-breadcrumb {
|
|
2
|
-
--margin: var(--bui-breadcrumb-margin, 0);
|
|
3
|
-
--padding: var(--bui-breadcrumb-padding, 0);
|
|
4
|
-
--color: var(--bui-breadcrumb-color, rgba(0, 0, 0, 0.45));
|
|
5
|
-
--item-separator-margin: var(--bui-breadcrumb-item-separator-margin, 0 8px);
|
|
6
|
-
--list-li-color: var(--bui-breadcrumb-list-li-color, rgba(0, 0, 0, 0.88));
|
|
7
|
-
margin: var(--margin);
|
|
8
|
-
padding: var(--padding);
|
|
9
|
-
color: var(--color);
|
|
10
|
-
list-style: none;
|
|
11
|
-
font-size: var(--bui-text-size-1);
|
|
12
|
-
line-height: var(--bui-line-height);
|
|
13
|
-
}
|
|
14
|
-
.bui-breadcrumb-list {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-wrap: wrap;
|
|
17
|
-
margin: var(--margin);
|
|
18
|
-
padding: var(--padding);
|
|
19
|
-
list-style: none;
|
|
20
|
-
}
|
|
21
|
-
.bui-breadcrumb-list a {
|
|
22
|
-
color: var(--color);
|
|
23
|
-
text-decoration: none;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
}
|
|
26
|
-
.bui-breadcrumb-list li:last-child {
|
|
27
|
-
color: var(--list-li-color);
|
|
28
|
-
}
|
|
29
|
-
.bui-breadcrumb-item {
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
32
|
-
.bui-breadcrumb-item-separator {
|
|
33
|
-
margin: var(--item-separator-margin);
|
|
34
|
-
}
|
package/dist/NavBar/NavBar.css
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
.bui-navbar {
|
|
2
|
-
--width: var(--bui-navbar-width, 100%);
|
|
3
|
-
--height: var(--bui-navbar-height, 45px);
|
|
4
|
-
--padding: var(--bui-navbar-padding, 0 8px);
|
|
5
|
-
--icon-size: var(--bui-navbar-icon-size, 24px);
|
|
6
|
-
--icon-font-size: var(--bui-navbar-icon-font-size, var(--bui-title-size-3));
|
|
7
|
-
--background-color: var(--bui-navbar-background-color, var(--bui-color-white));
|
|
8
|
-
--border-bottom: var(--bui-navbar-border-bottom, none);
|
|
9
|
-
--z-index: var(--bui-navbar-z-index, auto);
|
|
10
|
-
--title-max-width: var(--bui-navbar-title-max-width, 60%);
|
|
11
|
-
position: relative;
|
|
12
|
-
width: var(--width);
|
|
13
|
-
height: var(--height);
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
padding: var(--padding);
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
align-items: center;
|
|
19
|
-
background-color: var(--background-color);
|
|
20
|
-
border-bottom: var(--border-bottom);
|
|
21
|
-
user-select: none;
|
|
22
|
-
z-index: var(--z-index);
|
|
23
|
-
font-family: var(--bui-font-family);
|
|
24
|
-
}
|
|
25
|
-
.bui-navbar-fixed {
|
|
26
|
-
position: fixed;
|
|
27
|
-
top: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
width: 100%;
|
|
30
|
-
}
|
|
31
|
-
.bui-navbar-title {
|
|
32
|
-
max-width: var(--title-max-width);
|
|
33
|
-
padding: var(--padding);
|
|
34
|
-
font-size: var(--bui-title-size-2);
|
|
35
|
-
width: auto;
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
text-overflow: ellipsis;
|
|
38
|
-
white-space: nowrap;
|
|
39
|
-
}
|
|
40
|
-
.bui-navbar-left,
|
|
41
|
-
.bui-navbar-right {
|
|
42
|
-
flex: 1;
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
font-size: var(--icon-font-size);
|
|
46
|
-
}
|
|
47
|
-
.bui-navbar-left {
|
|
48
|
-
justify-content: flex-start;
|
|
49
|
-
text-align: left;
|
|
50
|
-
}
|
|
51
|
-
.bui-navbar-right {
|
|
52
|
-
justify-content: flex-end;
|
|
53
|
-
text-align: right;
|
|
54
|
-
align-self: stretch;
|
|
55
|
-
}
|
|
56
|
-
.bui-navbar-icon {
|
|
57
|
-
font-size: var(--icon-size);
|
|
58
|
-
}
|
|
59
|
-
.bui-navbar-placeholder {
|
|
60
|
-
width: 100%;
|
|
61
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.bui-progress {
|
|
2
|
-
--fill-color: var(--bui-progress-fill-color, var(--bui-color-primary));
|
|
3
|
-
--trail-color: var(--bui-progress-trail-color, rgba(156, 156, 165, 0.2));
|
|
4
|
-
--stroke-width: var(--bui-progress-stroke-width, 8px);
|
|
5
|
-
--width: var(--bui-progress-width, 100%);
|
|
6
|
-
--border-radius: var(--bui-progress-border-radius, 100px);
|
|
7
|
-
width: var(--width);
|
|
8
|
-
font-family: var(--bui-font-family);
|
|
9
|
-
}
|
|
10
|
-
.bui-progress-inner {
|
|
11
|
-
position: relative;
|
|
12
|
-
display: inline-block;
|
|
13
|
-
width: var(--width);
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
vertical-align: middle;
|
|
16
|
-
background-color: var(--trail-color);
|
|
17
|
-
border-radius: var(--border-radius);
|
|
18
|
-
}
|
|
19
|
-
.bui-progress-bg {
|
|
20
|
-
position: relative;
|
|
21
|
-
border-radius: var(--border-radius);
|
|
22
|
-
background-color: var(--fill-color);
|
|
23
|
-
height: var(--stroke-width);
|
|
24
|
-
}
|
package/dist/Slider/Slider.css
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
.bui-slider {
|
|
2
|
-
--line-color: var(--bui-slider-line-color, var(--bui-color-primary));
|
|
3
|
-
--line-bg-color: var(--bui-slider-line-bg-color, var(--bui-color-border-default));
|
|
4
|
-
--width: var(--bui-slider-width, 100%);
|
|
5
|
-
--height: var(--bui-slider-height, 2px);
|
|
6
|
-
--padding: var(--bui-slider-padding, 19px 0);
|
|
7
|
-
--button-width: var(--bui-slider-button-width, 26px);
|
|
8
|
-
--button-height: var(--bui-slider-button-height, 26px);
|
|
9
|
-
--button-font-size: var(--bui-slider-button-font-size, var(--bui-title-size-3));
|
|
10
|
-
--button-border-radius: var(--bui-slider-button-border-radius, 50%);
|
|
11
|
-
--tooltip-width: var(--bui-slider-tooltip-width, 46px);
|
|
12
|
-
--tooltip-height: var(--bui-slider-tooltip-height, 24px);
|
|
13
|
-
--tooltip-line-height: var(--bui-slider-tooltip-line-height, 24px);
|
|
14
|
-
--tooltip-border-radius: var(--bui-slider-tooltip-border-radius, 24px);
|
|
15
|
-
--tooltip-font-size: var(--bui-tooltip-font-size, var(--bui-text-size-3));
|
|
16
|
-
--tooltip-color: var(--bui-tooltip-color, var(--bui-color-white));
|
|
17
|
-
--tooltip-bg-color: var(--bui-tooltip-bg-color, var(--line-color));
|
|
18
|
-
position: relative;
|
|
19
|
-
width: var(--width);
|
|
20
|
-
height: var(--height);
|
|
21
|
-
padding: var(--padding);
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
font-family: var(--bui-font-family);
|
|
24
|
-
}
|
|
25
|
-
.bui-slider-disabled {
|
|
26
|
-
pointer-events: none;
|
|
27
|
-
opacity: 0.5;
|
|
28
|
-
}
|
|
29
|
-
.bui-slider-line {
|
|
30
|
-
position: absolute;
|
|
31
|
-
top: 50%;
|
|
32
|
-
left: 0;
|
|
33
|
-
height: var(--height);
|
|
34
|
-
transform: translateY(-50%);
|
|
35
|
-
background-color: var(--line-color);
|
|
36
|
-
}
|
|
37
|
-
.bui-slider-rail {
|
|
38
|
-
position: absolute;
|
|
39
|
-
top: 50%;
|
|
40
|
-
left: 0;
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: var(--height);
|
|
43
|
-
transform: translateY(-50%);
|
|
44
|
-
background-color: var(--line-bg-color);
|
|
45
|
-
}
|
|
46
|
-
.bui-slider-button {
|
|
47
|
-
display: flex;
|
|
48
|
-
position: absolute;
|
|
49
|
-
justify-content: center;
|
|
50
|
-
align-items: center;
|
|
51
|
-
width: var(--button-width);
|
|
52
|
-
height: var(--button-height);
|
|
53
|
-
background-color: var(--bui-color-white);
|
|
54
|
-
box-shadow: #ddd 0 0 10px;
|
|
55
|
-
border-radius: var(--button-border-radius);
|
|
56
|
-
transform: translate(-50%, -50%);
|
|
57
|
-
font-size: var(--bui-title-size-3);
|
|
58
|
-
cursor: grab;
|
|
59
|
-
}
|
|
60
|
-
.bui-slider-button::after {
|
|
61
|
-
position: absolute;
|
|
62
|
-
content: "";
|
|
63
|
-
top: -10px;
|
|
64
|
-
bottom: -10px;
|
|
65
|
-
left: -10px;
|
|
66
|
-
right: -10px;
|
|
67
|
-
}
|
|
68
|
-
.bui-slider-button-0 {
|
|
69
|
-
left: 0%;
|
|
70
|
-
top: 50%;
|
|
71
|
-
z-index: var(--bui-z-index-affix);
|
|
72
|
-
}
|
|
73
|
-
.bui-slider-button-1 {
|
|
74
|
-
left: 0%;
|
|
75
|
-
top: 50%;
|
|
76
|
-
z-index: var(--bui-z-index-affix);
|
|
77
|
-
}
|
|
78
|
-
.bui-slider-tooltip {
|
|
79
|
-
position: absolute;
|
|
80
|
-
top: -14px;
|
|
81
|
-
width: var(--tooltip-width);
|
|
82
|
-
height: var(--tooltip-height);
|
|
83
|
-
line-height: var(--tooltip-line-height);
|
|
84
|
-
font-size: var(--tooltip-font-size);
|
|
85
|
-
border-radius: var(--tooltip-border-radius);
|
|
86
|
-
color: var(--tooltip-color);
|
|
87
|
-
text-align: center;
|
|
88
|
-
background-color: var(--tooltip-bg-color);
|
|
89
|
-
transform: translate(-50%, -50%);
|
|
90
|
-
z-index: var(--bui-z-index-popover);
|
|
91
|
-
}
|
|
92
|
-
.bui-slider-tooltip::after {
|
|
93
|
-
position: absolute;
|
|
94
|
-
bottom: -10px;
|
|
95
|
-
left: 0;
|
|
96
|
-
right: 0;
|
|
97
|
-
margin: 0 auto;
|
|
98
|
-
content: "";
|
|
99
|
-
width: 0;
|
|
100
|
-
height: 0;
|
|
101
|
-
border: 6px solid transparent;
|
|
102
|
-
border-top: 6px solid var(--tooltip-bg-color);
|
|
103
|
-
}
|
|
104
|
-
.bui-slider-tooltip-hidden {
|
|
105
|
-
display: none;
|
|
106
|
-
}
|