@bifrostui/react 1.3.0 → 1.3.1-beta.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 +6 -3
- package/dist/ActionSheet/ActionSheetItem.css +10 -6
- package/dist/Alert/index.css +14 -8
- package/dist/Avatar/Avatar.css +13 -9
- package/dist/Avatar/AvatarGroup.css +15 -8
- package/dist/Backdrop/Backdrop.css +2 -1
- package/dist/Badge/Badge.css +27 -17
- package/dist/Breadcrumb/Breadcrumb.css +34 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/dist/Breadcrumb/Breadcrumb.js +128 -0
- package/dist/Breadcrumb/Breadcrumb.types.d.ts +49 -0
- package/dist/Breadcrumb/Breadcrumb.types.js +15 -0
- package/dist/Breadcrumb/BreadcrumbItem.d.ts +4 -0
- package/dist/Breadcrumb/BreadcrumbItem.js +78 -0
- package/dist/Breadcrumb/index.d.ts +4 -0
- package/dist/Breadcrumb/index.js +45 -0
- package/dist/Button/Button.css +26 -17
- package/dist/Calendar/Calendar.css +33 -18
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js +38 -17
- package/dist/Calendar/Calendar.types.d.ts +21 -0
- package/dist/Card/CardFooter.css +2 -1
- package/dist/Card/CardHeader.css +3 -1
- package/dist/Checkbox/Checkbox.css +7 -5
- package/dist/CitySelector/CitySelector.css +29 -15
- package/dist/CitySelector/CitySelectorCore.js +25 -16
- package/dist/CitySelector/Selector/index.css +4 -4
- package/dist/Collapse/Collapse.css +6 -0
- package/dist/Collapse/Collapse.d.ts +5 -0
- package/dist/Collapse/Collapse.js +165 -0
- package/dist/Collapse/Collapse.types.d.ts +16 -0
- package/dist/Collapse/Collapse.types.js +15 -0
- package/dist/Collapse/index.d.ts +2 -0
- package/dist/Collapse/index.js +41 -0
- package/dist/CollapsePanel/CollapsePanel.css +32 -0
- package/dist/CollapsePanel/CollapsePanel.d.ts +5 -0
- package/dist/CollapsePanel/CollapsePanel.js +159 -0
- package/dist/CollapsePanel/CollapsePanel.types.d.ts +64 -0
- package/dist/CollapsePanel/CollapsePanel.types.js +15 -0
- package/dist/CollapsePanel/CollapsePanelItem.d.ts +4 -0
- package/dist/CollapsePanel/CollapsePanelItem.js +112 -0
- package/dist/CollapsePanel/index.d.ts +4 -0
- package/dist/CollapsePanel/index.js +45 -0
- package/dist/Countdown/Countdown.css +2 -1
- package/dist/Dialog/Dialog.d.ts +2 -2
- package/dist/Dialog/Dialog.js +20 -8
- package/dist/Dialog/Dialog.types.d.ts +12 -1
- package/dist/Dialog/FunctionalDialog.js +38 -2
- package/dist/Dialog/index.css +27 -18
- package/dist/Divider/Divider.css +6 -4
- package/dist/IconButton/IconButton.css +9 -7
- package/dist/Image/index.css +2 -1
- package/dist/Input/Input.css +10 -5
- package/dist/List/List.css +3 -0
- package/dist/List/ListItem.css +3 -3
- package/dist/List/ListItemContent.css +1 -1
- package/dist/Loading/Loading.css +4 -2
- package/dist/Modal/Modal.miniapp.d.ts +1 -1
- package/dist/NavBar/NavBar.css +9 -5
- package/dist/Picker/Picker.css +25 -29
- package/dist/Picker/Picker.js +31 -11
- package/dist/Picker/Picker.types.d.ts +4 -0
- package/dist/Picker/PickerPanel.css +8 -8
- package/dist/Picker/PickerPanel.js +14 -8
- package/dist/Picker/utils.d.ts +16 -0
- package/dist/Picker/utils.js +32 -2
- package/dist/Popover/Popover.css +97 -0
- package/dist/Popover/Popover.d.ts +5 -0
- package/dist/Popover/Popover.js +186 -0
- package/dist/Popover/Popover.types.d.ts +59 -0
- package/dist/Popover/Popover.types.js +15 -0
- package/dist/Popover/index.d.ts +2 -0
- package/dist/Popover/index.js +41 -0
- package/dist/Portal/Portal.types.d.ts +4 -0
- package/dist/Portal/PortalCore.js +8 -1
- package/dist/Progress/Progress.css +8 -6
- package/dist/Radio/Radio.css +2 -1
- package/dist/Rating/Rating.css +8 -4
- package/dist/Select/Select.css +21 -10
- package/dist/Select/Select.js +1 -1
- package/dist/Select/SelectOption.js +3 -0
- package/dist/Skeleton/Skeleton.css +3 -2
- package/dist/Slider/Slider.css +24 -13
- package/dist/Steps/Step.css +11 -11
- package/dist/Steps/Steps.css +14 -5
- package/dist/Swiper/Swiper.css +2 -1
- package/dist/Switch/Switch.css +31 -16
- package/dist/TabBar/TabBar.css +7 -3
- package/dist/TabBar/TabBarItem.css +0 -1
- package/dist/Tabs/Tab.css +2 -6
- package/dist/Tabs/Tabs.css +7 -4
- package/dist/Tag/Tag.css +7 -10
- package/dist/Tag/TagGroup.css +9 -1
- package/dist/TextArea/TextArea.css +14 -8
- package/dist/ThemeProvider/ThemeProvider.d.ts +4 -0
- package/dist/ThemeProvider/ThemeProvider.js +91 -0
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +127 -0
- package/dist/ThemeProvider/ThemeProvider.types.js +27 -0
- package/dist/ThemeProvider/hooks/ThemeContext.d.ts +4 -0
- package/dist/ThemeProvider/hooks/ThemeContext.js +35 -0
- package/dist/ThemeProvider/hooks/createTheme.d.ts +2 -0
- package/dist/ThemeProvider/hooks/createTheme.js +55 -0
- package/dist/ThemeProvider/hooks/index.d.ts +4 -0
- package/dist/ThemeProvider/hooks/index.js +43 -0
- package/dist/ThemeProvider/hooks/useTheme.d.ts +1 -0
- package/dist/ThemeProvider/hooks/useTheme.js +39 -0
- package/dist/ThemeProvider/index.d.ts +4 -0
- package/dist/ThemeProvider/index.js +45 -0
- package/dist/ThemeProvider/utils/constants.d.ts +38 -0
- package/dist/ThemeProvider/utils/constants.js +65 -0
- package/dist/ThemeProvider/utils/index.d.ts +2 -0
- package/dist/ThemeProvider/utils/index.js +23 -0
- package/dist/ThemeProvider/utils/mountTokens.d.ts +26 -0
- package/dist/ThemeProvider/utils/mountTokens.js +123 -0
- package/dist/Toast/FunctionalToast.js +18 -0
- package/dist/Toast/Toast.css +15 -14
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/Toast.js +52 -48
- package/dist/Toast/Toast.types.d.ts +15 -1
- package/dist/Tooltip/Tooltip.css +91 -0
- package/dist/Tooltip/Tooltip.d.ts +5 -0
- package/dist/Tooltip/Tooltip.js +175 -0
- package/dist/Tooltip/Tooltip.types.d.ts +50 -0
- package/dist/Tooltip/Tooltip.types.js +15 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/Tooltip/index.js +41 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +15 -1
- package/dist/locales/base.d.ts +40 -0
- package/dist/locales/base.js +15 -0
- package/dist/locales/en-US.d.ts +3 -0
- package/dist/locales/en-US.js +69 -0
- package/dist/locales/hooks/useLocaleText.d.ts +3 -0
- package/dist/locales/hooks/useLocaleText.js +43 -0
- package/dist/locales/index.d.ts +5 -0
- package/dist/locales/index.js +49 -0
- package/dist/locales/zh-CN.d.ts +3 -0
- package/dist/locales/zh-CN.js +51 -0
- package/dist/locales/zh-TW.d.ts +3 -0
- package/dist/locales/zh-TW.js +51 -0
- package/es/ActionSheet/ActionSheet.css +6 -3
- package/es/ActionSheet/ActionSheetItem.css +10 -6
- package/es/Alert/index.css +14 -8
- package/es/Avatar/Avatar.css +13 -9
- package/es/Avatar/AvatarGroup.css +15 -8
- package/es/Backdrop/Backdrop.css +2 -1
- package/es/Badge/Badge.css +27 -17
- package/es/Breadcrumb/Breadcrumb.css +34 -0
- package/es/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/es/Breadcrumb/Breadcrumb.js +101 -0
- package/es/Breadcrumb/Breadcrumb.types.d.ts +49 -0
- package/es/Breadcrumb/Breadcrumb.types.js +1 -0
- package/es/Breadcrumb/BreadcrumbItem.d.ts +4 -0
- package/es/Breadcrumb/BreadcrumbItem.js +51 -0
- package/es/Breadcrumb/index.d.ts +4 -0
- package/es/Breadcrumb/index.js +9 -0
- package/es/Button/Button.css +26 -17
- package/es/Calendar/Calendar.css +33 -18
- package/es/Calendar/Calendar.d.ts +1 -1
- package/es/Calendar/Calendar.js +38 -17
- package/es/Calendar/Calendar.types.d.ts +21 -0
- package/es/Card/CardFooter.css +2 -1
- package/es/Card/CardHeader.css +3 -1
- package/es/Checkbox/Checkbox.css +7 -5
- package/es/CitySelector/CitySelector.css +29 -15
- package/es/CitySelector/CitySelectorCore.js +25 -16
- package/es/CitySelector/Selector/index.css +4 -4
- package/es/Collapse/Collapse.css +6 -0
- package/es/Collapse/Collapse.d.ts +5 -0
- package/es/Collapse/Collapse.js +144 -0
- package/es/Collapse/Collapse.types.d.ts +16 -0
- package/es/Collapse/Collapse.types.js +1 -0
- package/es/Collapse/index.d.ts +2 -0
- package/es/Collapse/index.js +6 -0
- package/es/CollapsePanel/CollapsePanel.css +32 -0
- package/es/CollapsePanel/CollapsePanel.d.ts +5 -0
- package/es/CollapsePanel/CollapsePanel.js +132 -0
- package/es/CollapsePanel/CollapsePanel.types.d.ts +64 -0
- package/es/CollapsePanel/CollapsePanel.types.js +1 -0
- package/es/CollapsePanel/CollapsePanelItem.d.ts +4 -0
- package/es/CollapsePanel/CollapsePanelItem.js +85 -0
- package/es/CollapsePanel/index.d.ts +4 -0
- package/es/CollapsePanel/index.js +9 -0
- package/es/Countdown/Countdown.css +2 -1
- package/es/Dialog/Dialog.d.ts +2 -2
- package/es/Dialog/Dialog.js +20 -8
- package/es/Dialog/Dialog.types.d.ts +12 -1
- package/es/Dialog/FunctionalDialog.js +38 -2
- package/es/Dialog/index.css +27 -18
- package/es/Divider/Divider.css +6 -4
- package/es/IconButton/IconButton.css +9 -7
- package/es/Image/index.css +2 -1
- package/es/Input/Input.css +10 -5
- package/es/List/List.css +3 -0
- package/es/List/ListItem.css +3 -3
- package/es/List/ListItemContent.css +1 -1
- package/es/Loading/Loading.css +4 -2
- package/es/Modal/Modal.miniapp.d.ts +1 -1
- package/es/NavBar/NavBar.css +9 -5
- package/es/Picker/Picker.css +25 -29
- package/es/Picker/Picker.js +32 -12
- package/es/Picker/Picker.types.d.ts +4 -0
- package/es/Picker/PickerPanel.css +8 -8
- package/es/Picker/PickerPanel.js +14 -8
- package/es/Picker/utils.d.ts +16 -0
- package/es/Picker/utils.js +29 -1
- package/es/Popover/Popover.css +97 -0
- package/es/Popover/Popover.d.ts +5 -0
- package/es/Popover/Popover.js +163 -0
- package/es/Popover/Popover.types.d.ts +59 -0
- package/es/Popover/Popover.types.js +1 -0
- package/es/Popover/index.d.ts +2 -0
- package/es/Popover/index.js +6 -0
- package/es/Portal/Portal.types.d.ts +4 -0
- package/es/Portal/PortalCore.js +8 -1
- package/es/Progress/Progress.css +8 -6
- package/es/Radio/Radio.css +2 -1
- package/es/Rating/Rating.css +8 -4
- package/es/Select/Select.css +21 -10
- package/es/Select/Select.js +1 -1
- package/es/Select/SelectOption.js +3 -0
- package/es/Skeleton/Skeleton.css +3 -2
- package/es/Slider/Slider.css +24 -13
- package/es/Steps/Step.css +11 -11
- package/es/Steps/Steps.css +14 -5
- package/es/Swiper/Swiper.css +2 -1
- package/es/Switch/Switch.css +31 -16
- package/es/TabBar/TabBar.css +7 -3
- package/es/TabBar/TabBarItem.css +0 -1
- package/es/Tabs/Tab.css +2 -6
- package/es/Tabs/Tabs.css +7 -4
- package/es/Tag/Tag.css +7 -10
- package/es/Tag/TagGroup.css +9 -1
- package/es/TextArea/TextArea.css +14 -8
- package/es/ThemeProvider/ThemeProvider.d.ts +4 -0
- package/es/ThemeProvider/ThemeProvider.js +62 -0
- package/es/ThemeProvider/ThemeProvider.types.d.ts +127 -0
- package/es/ThemeProvider/ThemeProvider.types.js +1 -0
- package/es/ThemeProvider/hooks/ThemeContext.d.ts +4 -0
- package/es/ThemeProvider/hooks/ThemeContext.js +6 -0
- package/es/ThemeProvider/hooks/createTheme.d.ts +2 -0
- package/es/ThemeProvider/hooks/createTheme.js +38 -0
- package/es/ThemeProvider/hooks/index.d.ts +4 -0
- package/es/ThemeProvider/hooks/index.js +8 -0
- package/es/ThemeProvider/hooks/useTheme.d.ts +1 -0
- package/es/ThemeProvider/hooks/useTheme.js +10 -0
- package/es/ThemeProvider/index.d.ts +4 -0
- package/es/ThemeProvider/index.js +8 -0
- package/es/ThemeProvider/utils/constants.d.ts +38 -0
- package/es/ThemeProvider/utils/constants.js +40 -0
- package/es/ThemeProvider/utils/index.d.ts +2 -0
- package/es/ThemeProvider/utils/index.js +2 -0
- package/es/ThemeProvider/utils/mountTokens.d.ts +26 -0
- package/es/ThemeProvider/utils/mountTokens.js +88 -0
- package/es/Toast/FunctionalToast.js +18 -0
- package/es/Toast/Toast.css +15 -14
- package/es/Toast/Toast.d.ts +2 -2
- package/es/Toast/Toast.js +53 -49
- package/es/Toast/Toast.types.d.ts +15 -1
- package/es/Tooltip/Tooltip.css +91 -0
- package/es/Tooltip/Tooltip.d.ts +5 -0
- package/es/Tooltip/Tooltip.js +152 -0
- package/es/Tooltip/Tooltip.types.d.ts +50 -0
- package/es/Tooltip/Tooltip.types.js +1 -0
- package/es/Tooltip/index.d.ts +2 -0
- package/es/Tooltip/index.js +6 -0
- package/es/index.d.ts +7 -0
- package/es/index.js +7 -0
- package/es/locales/base.d.ts +40 -0
- package/es/locales/base.js +0 -0
- package/es/locales/en-US.d.ts +3 -0
- package/es/locales/en-US.js +50 -0
- package/es/locales/hooks/useLocaleText.d.ts +3 -0
- package/es/locales/hooks/useLocaleText.js +26 -0
- package/es/locales/index.d.ts +5 -0
- package/es/locales/index.js +11 -0
- package/es/locales/zh-CN.d.ts +3 -0
- package/es/locales/zh-CN.js +32 -0
- package/es/locales/zh-TW.d.ts +3 -0
- package/es/locales/zh-TW.js +32 -0
- package/package.json +5 -5
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var zh_CN_exports = {};
|
|
19
|
+
__export(zh_CN_exports, {
|
|
20
|
+
default: () => zh_CN_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(zh_CN_exports);
|
|
23
|
+
const zhCN = {
|
|
24
|
+
dialog: {
|
|
25
|
+
cancel: "\u53D6\u6D88",
|
|
26
|
+
confirm: "\u786E\u5B9A",
|
|
27
|
+
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9"
|
|
28
|
+
},
|
|
29
|
+
picker: {
|
|
30
|
+
cancel: "\u53D6\u6D88",
|
|
31
|
+
confirm: "\u786E\u8BA4"
|
|
32
|
+
},
|
|
33
|
+
calendar: {
|
|
34
|
+
Monday: "\u4E00",
|
|
35
|
+
Tuesday: "\u4E8C",
|
|
36
|
+
Wednesday: "\u4E09",
|
|
37
|
+
Thursday: "\u56DB",
|
|
38
|
+
Friday: "\u4E94",
|
|
39
|
+
Saturday: "\u516D",
|
|
40
|
+
Sunday: "\u65E5"
|
|
41
|
+
},
|
|
42
|
+
citySelector: {
|
|
43
|
+
selectedCityGroupName: "\u5F53\u524D\u57CE\u5E02",
|
|
44
|
+
currentCityGroupName: "\u5B9A\u4F4D\u57CE\u5E02",
|
|
45
|
+
hotCitiesGroupName: "\u70ED\u95E8\u57CE\u5E02",
|
|
46
|
+
located: "\u5B9A\u4F4D",
|
|
47
|
+
current: "\u5F53\u524D",
|
|
48
|
+
hot: "\u70ED\u95E8"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var zh_CN_default = zhCN;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var zh_TW_exports = {};
|
|
19
|
+
__export(zh_TW_exports, {
|
|
20
|
+
default: () => zh_TW_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(zh_TW_exports);
|
|
23
|
+
const zhTW = {
|
|
24
|
+
dialog: {
|
|
25
|
+
cancel: "\u53D6\u6D88",
|
|
26
|
+
confirm: "\u78BA\u8A8D",
|
|
27
|
+
placeholder: "\u8ACB\u8F38\u5165\u5167\u5BB9"
|
|
28
|
+
},
|
|
29
|
+
picker: {
|
|
30
|
+
cancel: "\u53D6\u6D88",
|
|
31
|
+
confirm: "\u78BA\u8A8D"
|
|
32
|
+
},
|
|
33
|
+
calendar: {
|
|
34
|
+
Monday: "\u4E00",
|
|
35
|
+
Tuesday: "\u4E8C",
|
|
36
|
+
Wednesday: "\u4E09",
|
|
37
|
+
Thursday: "\u56DB",
|
|
38
|
+
Friday: "\u4E94",
|
|
39
|
+
Saturday: "\u516D",
|
|
40
|
+
Sunday: "\u65E5"
|
|
41
|
+
},
|
|
42
|
+
citySelector: {
|
|
43
|
+
selectedCityGroupName: "\u76EE\u524D\u57CE\u5E02",
|
|
44
|
+
currentCityGroupName: "\u5B9A\u4F4D\u57CE\u5E02",
|
|
45
|
+
hotCitiesGroupName: "\u71B1\u9580\u57CE\u5E02",
|
|
46
|
+
located: "\u5B9A\u4F4D",
|
|
47
|
+
current: "\u76EE\u524D",
|
|
48
|
+
hot: "\u71B1\u9580"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var zh_TW_default = zhTW;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
.bui-action-sheet {
|
|
2
|
+
--extra-line-height: var(--bui-action-sheet-extra-line-height, 23px);
|
|
3
|
+
--extra-padding: var(--bui-action-sheet-extra-padding, var(--bui-spacing-xl));
|
|
4
|
+
--extra-magin: var(--bui-action-sheet-extra-magin, 0 var(--bui-spacing-xl));
|
|
2
5
|
font-family: var(--bui-font-family);
|
|
3
6
|
}
|
|
4
7
|
.bui-action-sheet-content {
|
|
@@ -17,11 +20,11 @@
|
|
|
17
20
|
}
|
|
18
21
|
.bui-action-sheet-extra {
|
|
19
22
|
font-size: var(--bui-text-size-1);
|
|
20
|
-
line-height:
|
|
21
|
-
padding: var(--
|
|
23
|
+
line-height: var(--extra-line-height);
|
|
24
|
+
padding: var(--extra-padding);
|
|
22
25
|
color: var(--bui-color-fg-muted);
|
|
23
26
|
background: var(--bui-color-bg-view);
|
|
24
27
|
text-align: center;
|
|
25
28
|
border-bottom: 1px solid var(--bui-color-border-default);
|
|
26
|
-
margin:
|
|
29
|
+
margin: var(--extra-magin);
|
|
27
30
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
.bui-action-sheet-item {
|
|
2
|
-
--
|
|
3
|
-
--
|
|
2
|
+
--padding: var(--bui-action-sheet-item-padding, var(--bui-spacing-xl));
|
|
3
|
+
--font-size: var(--bui-action-sheet-item-font-size, var(--bui-title-size-2));
|
|
4
|
+
--line-height: var(--bui-action-sheet-item-line-height, 24px);
|
|
5
|
+
--color: var(--bui-action-sheet-item-color, var(--bui-color-fg-default));
|
|
6
|
+
--margin: var(--bui-action-sheet-item-margin, 0 var(--bui-spacing-xl));
|
|
7
|
+
--description-line-height: var(--bui-action-sheet-item-description-line-height, 19px);
|
|
4
8
|
font-family: var(--bui-font-family);
|
|
5
9
|
position: relative;
|
|
6
|
-
padding: var(--
|
|
10
|
+
padding: var(--padding);
|
|
7
11
|
cursor: pointer;
|
|
8
12
|
background: var(--bui-color-bg-view);
|
|
9
13
|
font-size: var(--font-size);
|
|
10
14
|
text-align: center;
|
|
11
|
-
line-height:
|
|
15
|
+
line-height: var(--line-height);
|
|
12
16
|
color: var(--color);
|
|
13
17
|
border-top: 1px solid var(--bui-color-border-default);
|
|
14
|
-
margin:
|
|
18
|
+
margin: var(--margin);
|
|
15
19
|
}
|
|
16
20
|
.bui-action-sheet-item:first-child {
|
|
17
21
|
border-top: none;
|
|
@@ -46,6 +50,6 @@
|
|
|
46
50
|
}
|
|
47
51
|
.bui-action-sheet-item-description {
|
|
48
52
|
font-size: var(--bui-text-size-2);
|
|
49
|
-
line-height:
|
|
53
|
+
line-height: var(--description-line-height);
|
|
50
54
|
color: var(--bui-color-fg-subtle);
|
|
51
55
|
}
|
package/es/Alert/index.css
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
.bui-alert {
|
|
2
|
-
--
|
|
2
|
+
--content-marquee-speed: var(--bui-alert-content-marquee-speed, 10s);
|
|
3
|
+
--padding: var(--bui-alert-padding, 8px);
|
|
4
|
+
--line-height: var(--bui-alert-line-height, 16px);
|
|
5
|
+
--default-icon-font-size: var(--bui-alert-default-icon-font-size, 15px);
|
|
6
|
+
--action-margin-left: var(--bui-alert-action-margin-left, 16px);
|
|
7
|
+
--icon-margin-right: var(--bui-alert-icon-margin-right, var(--bui-spacing-xs));
|
|
8
|
+
--icon-font-size: var(--bui-alert-icon-font-size, var(--bui-title-size-4));
|
|
3
9
|
display: flex;
|
|
4
|
-
padding:
|
|
10
|
+
padding: var(--padding);
|
|
5
11
|
border-radius: var(--bui-shape-radius-default);
|
|
6
12
|
align-items: center;
|
|
7
|
-
line-height:
|
|
13
|
+
line-height: var(--line-height);
|
|
8
14
|
font-size: var(--bui-text-size-3);
|
|
9
15
|
font-family: var(--bui-font-family);
|
|
10
16
|
}
|
|
@@ -49,14 +55,14 @@
|
|
|
49
55
|
color: var(--bui-color-warning);
|
|
50
56
|
}
|
|
51
57
|
.bui-alert-default-icon {
|
|
52
|
-
font-size:
|
|
58
|
+
font-size: var(--default-icon-font-size);
|
|
53
59
|
}
|
|
54
60
|
.bui-alert-content {
|
|
55
61
|
flex-grow: 1;
|
|
56
62
|
}
|
|
57
63
|
.bui-alert-action {
|
|
58
64
|
flex-shrink: 0;
|
|
59
|
-
margin-left:
|
|
65
|
+
margin-left: var(--action-margin-left);
|
|
60
66
|
word-wrap: keep-all;
|
|
61
67
|
font-size: var(--bui-text-size-3);
|
|
62
68
|
cursor: pointer;
|
|
@@ -68,9 +74,9 @@
|
|
|
68
74
|
.bui-alert-icon {
|
|
69
75
|
display: flex;
|
|
70
76
|
align-items: center;
|
|
71
|
-
|
|
77
|
+
margin-right: var(--icon-margin-right);
|
|
72
78
|
vertical-align: middle;
|
|
73
|
-
font-size:
|
|
79
|
+
font-size: var(--icon-font-size);
|
|
74
80
|
cursor: pointer;
|
|
75
81
|
}
|
|
76
82
|
.bui-alert-marquee {
|
|
@@ -80,7 +86,7 @@
|
|
|
80
86
|
display: inline-block;
|
|
81
87
|
padding-left: 100%;
|
|
82
88
|
white-space: nowrap;
|
|
83
|
-
animation: marquee var(--
|
|
89
|
+
animation: marquee var(--content-marquee-speed) linear infinite both;
|
|
84
90
|
}
|
|
85
91
|
@keyframes marquee {
|
|
86
92
|
100% {
|
package/es/Avatar/Avatar.css
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
.bui-avatar {
|
|
2
|
+
--large-size: var(--bui-avatar-large-size, 60px);
|
|
3
|
+
--medium-size: var(--bui-avatar-medium-size, 42px);
|
|
4
|
+
--small-size: var(--bui-avatar-small-size, 30px);
|
|
5
|
+
--xsmall-size: var(--bui-avatar-xsmall-size, 24px);
|
|
2
6
|
display: flex;
|
|
3
7
|
justify-content: center;
|
|
4
8
|
align-items: center;
|
|
5
|
-
font-size:
|
|
9
|
+
font-size: var(--bui-text-size-3);
|
|
6
10
|
background-color: var(--bui-color-bg-default);
|
|
7
11
|
font-family: var(--bui-font-family);
|
|
8
12
|
}
|
|
@@ -12,20 +16,20 @@
|
|
|
12
16
|
text-overflow: ellipsis;
|
|
13
17
|
}
|
|
14
18
|
.bui-avatar-large {
|
|
15
|
-
width:
|
|
16
|
-
height:
|
|
19
|
+
width: var(--large-size);
|
|
20
|
+
height: var(--large-size);
|
|
17
21
|
}
|
|
18
22
|
.bui-avatar-medium {
|
|
19
|
-
width:
|
|
20
|
-
height:
|
|
23
|
+
width: var(--medium-size);
|
|
24
|
+
height: var(--medium-size);
|
|
21
25
|
}
|
|
22
26
|
.bui-avatar-small {
|
|
23
|
-
width:
|
|
24
|
-
height:
|
|
27
|
+
width: var(--small-size);
|
|
28
|
+
height: var(--small-size);
|
|
25
29
|
}
|
|
26
30
|
.bui-avatar-xsmall {
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
31
|
+
width: var(--xsmall-size);
|
|
32
|
+
height: var(--xsmall-size);
|
|
29
33
|
}
|
|
30
34
|
.bui-avatar-rounded {
|
|
31
35
|
border-radius: 50%;
|
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
.bui-avatar-group {
|
|
2
|
+
--xsmall-margin-left: var(--bui-avatar-group-xsmall-margin-left, -5px);
|
|
3
|
+
--small-margin-left: var(--bui-avatar-group-small-margin-left, -9px);
|
|
4
|
+
--small-box-shadow: var(--bui-avatar-group-small-box-shadow, 0 0 0 1px var(--bui-color-bg-view));
|
|
5
|
+
--medium-margin-left: var(--bui-avatar-group-medium-margin-left, -13px);
|
|
6
|
+
--medium-box-shadow: var(--bui-avatar-group-medium-box-shadow, 0 0 0 2px var(--bui-color-bg-view));
|
|
7
|
+
--large-margin-left: var(--bui-avatar-group-large-margin-left, -21px);
|
|
8
|
+
--large-box-shadow: var(--bui-avatar-group-large-box-shadow, 0 0 0 3px var(--bui-color-bg-view));
|
|
2
9
|
display: flex;
|
|
3
10
|
flex-direction: row;
|
|
4
11
|
font-family: var(--bui-font-family);
|
|
5
12
|
}
|
|
6
13
|
.bui-avatar-group-avatar,
|
|
7
14
|
.bui-avatar-group-extra {
|
|
8
|
-
box-shadow:
|
|
15
|
+
box-shadow: var(--medium-box-shadow);
|
|
9
16
|
color: var(--bui-color-fg-default);
|
|
10
17
|
}
|
|
11
18
|
.bui-avatar-group .bui-avatar-xsmall:not(:first-child) {
|
|
12
|
-
margin-left: -
|
|
19
|
+
margin-left: var(--xsmall-margin-left);
|
|
13
20
|
}
|
|
14
21
|
.bui-avatar-group .bui-avatar-small {
|
|
15
|
-
box-shadow:
|
|
22
|
+
box-shadow: var(--small-box-shadow);
|
|
16
23
|
}
|
|
17
24
|
.bui-avatar-group .bui-avatar-small:not(:first-child) {
|
|
18
|
-
margin-left: -
|
|
25
|
+
margin-left: var(--small-margin-left);
|
|
19
26
|
}
|
|
20
27
|
.bui-avatar-group .bui-avatar-large {
|
|
21
|
-
box-shadow:
|
|
28
|
+
box-shadow: var(--large-box-shadow);
|
|
22
29
|
}
|
|
23
30
|
.bui-avatar-group .bui-avatar-large:not(:first-child) {
|
|
24
|
-
margin-left: -
|
|
31
|
+
margin-left: var(--large-margin-left);
|
|
25
32
|
}
|
|
26
33
|
.bui-avatar-group .bui-avatar-medium {
|
|
27
|
-
box-shadow:
|
|
34
|
+
box-shadow: var(--medium-box-shadow);
|
|
28
35
|
}
|
|
29
36
|
.bui-avatar-group .bui-avatar-medium:not(:first-child) {
|
|
30
|
-
margin-left: -
|
|
37
|
+
margin-left: var(--medium-margin-left);
|
|
31
38
|
}
|
package/es/Backdrop/Backdrop.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.bui-backdrop {
|
|
2
|
+
--background-color: var(--bui-backdrop-background-color, rgba(0, 0, 0, 0.68));
|
|
2
3
|
position: fixed;
|
|
3
4
|
display: flex;
|
|
4
5
|
align-items: center;
|
|
@@ -7,7 +8,7 @@
|
|
|
7
8
|
bottom: 0;
|
|
8
9
|
left: 0;
|
|
9
10
|
top: 0;
|
|
10
|
-
background-color:
|
|
11
|
+
background-color: var(--background-color);
|
|
11
12
|
}
|
|
12
13
|
.bui-backdrop-invisible {
|
|
13
14
|
background-color: transparent;
|
package/es/Badge/Badge.css
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
.bui-badge {
|
|
2
|
+
--badge-position: var(--bui-badge-position, 14%);
|
|
3
|
+
--min-width: var(--bui-badge-min-width, 15px);
|
|
4
|
+
--height: var(--bui-badge-height, 15px);
|
|
5
|
+
--line-height: var(--bui-badge-line-height, 15px);
|
|
6
|
+
--padding: var(--bui-badge-padding, 0 3px);
|
|
7
|
+
--border-radius: var(--bui-badge-border-radius, 8px);
|
|
8
|
+
--outlined-padding: var(--bui-badge-outlined-padding, 0 2px);
|
|
9
|
+
--dot-size: var(--bui-badge-dot-size, 9px);
|
|
10
|
+
--bubble-padding: var(--bui-badge-bubble-padding, 0 5px);
|
|
11
|
+
--bubble-border-radius: var(--bui-badge-bubble-border-radius, 6px 6px 6px 0);
|
|
2
12
|
display: inline-block;
|
|
3
13
|
font-family: var(--bui-font-family);
|
|
4
14
|
}
|
|
@@ -8,18 +18,18 @@
|
|
|
8
18
|
.bui-badge-position .bui-badge-contained,
|
|
9
19
|
.bui-badge-position .bui-badge-outlined {
|
|
10
20
|
position: absolute;
|
|
11
|
-
top:
|
|
12
|
-
right:
|
|
21
|
+
top: var(--badge-position);
|
|
22
|
+
right: var(--badge-position);
|
|
13
23
|
transform: scale(1) translate(50%, -50%);
|
|
14
24
|
}
|
|
15
25
|
.bui-badge-position .bui-badge-dot {
|
|
16
|
-
top:
|
|
17
|
-
right:
|
|
26
|
+
top: var(--badge-position);
|
|
27
|
+
right: var(--badge-position);
|
|
18
28
|
transform: scale(1) translate(50%, -50%);
|
|
19
29
|
}
|
|
20
30
|
.bui-badge-position .bui-badge-bubble {
|
|
21
|
-
top:
|
|
22
|
-
right:
|
|
31
|
+
top: var(--badge-position);
|
|
32
|
+
right: var(--badge-position);
|
|
23
33
|
transform: scale(1) translate(50%, -50%);
|
|
24
34
|
}
|
|
25
35
|
.bui-badge-contained,
|
|
@@ -28,18 +38,18 @@
|
|
|
28
38
|
box-sizing: border-box;
|
|
29
39
|
align-items: center;
|
|
30
40
|
justify-content: center;
|
|
31
|
-
min-width:
|
|
32
|
-
height:
|
|
33
|
-
line-height:
|
|
34
|
-
padding:
|
|
41
|
+
min-width: var(--min-width);
|
|
42
|
+
height: var(--height);
|
|
43
|
+
line-height: var(--line-height);
|
|
44
|
+
padding: var(--padding);
|
|
35
45
|
font-size: var(--bui-text-size-4);
|
|
36
|
-
border-radius:
|
|
46
|
+
border-radius: var(--border-radius);
|
|
37
47
|
color: var(--bui-color-bg-view);
|
|
38
48
|
white-space: nowrap;
|
|
39
49
|
z-index: 1;
|
|
40
50
|
}
|
|
41
51
|
.bui-badge-outlined {
|
|
42
|
-
padding:
|
|
52
|
+
padding: var(--outlined-padding);
|
|
43
53
|
}
|
|
44
54
|
.bui-badge-primary {
|
|
45
55
|
background-color: var(--bui-color-primary);
|
|
@@ -57,15 +67,15 @@
|
|
|
57
67
|
background-color: var(--bui-color-danger);
|
|
58
68
|
}
|
|
59
69
|
.bui-badge-dot {
|
|
60
|
-
width:
|
|
70
|
+
width: var(--dot-size);
|
|
61
71
|
min-width: 0;
|
|
62
|
-
height:
|
|
72
|
+
height: var(--dot-size);
|
|
63
73
|
padding: 0;
|
|
64
74
|
border-radius: 100%;
|
|
65
75
|
}
|
|
66
76
|
.bui-badge-bubble {
|
|
67
|
-
border-radius:
|
|
68
|
-
padding:
|
|
77
|
+
border-radius: var(--bubble-border-radius);
|
|
78
|
+
padding: var(--bubble-padding);
|
|
69
79
|
}
|
|
70
80
|
.bui-badge-outlined {
|
|
71
81
|
background: var(--bui-color-bg-view);
|
|
@@ -91,5 +101,5 @@
|
|
|
91
101
|
color: var(--bui-color-danger);
|
|
92
102
|
}
|
|
93
103
|
.bui-badge-outlined.bui-badge-bubble {
|
|
94
|
-
border-radius:
|
|
104
|
+
border-radius: var(--bubble-border-radius);
|
|
95
105
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BreadcrumbProps } from './Breadcrumb.types';
|
|
3
|
+
import './Breadcrumb.less';
|
|
4
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<Omit<BreadcrumbProps<"nav", {}>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import React from "react";
|
|
30
|
+
import clsx from "clsx";
|
|
31
|
+
import BreadcrumbItem from "./BreadcrumbItem";
|
|
32
|
+
import "./Breadcrumb.css";
|
|
33
|
+
const prefixCls = "bui-breadcrumb";
|
|
34
|
+
const Breadcrumb = /* @__PURE__ */ React.forwardRef(
|
|
35
|
+
(props, ref) => {
|
|
36
|
+
const _a = props, {
|
|
37
|
+
className,
|
|
38
|
+
style,
|
|
39
|
+
items,
|
|
40
|
+
separator = "/",
|
|
41
|
+
children
|
|
42
|
+
} = _a, others = __objRest(_a, [
|
|
43
|
+
"className",
|
|
44
|
+
"style",
|
|
45
|
+
"items",
|
|
46
|
+
"separator",
|
|
47
|
+
"children"
|
|
48
|
+
]);
|
|
49
|
+
const renderList = () => {
|
|
50
|
+
if (items && items.length > 0) {
|
|
51
|
+
return items.map((item, index) => {
|
|
52
|
+
const _a2 = item, { title } = _a2, otherItemProps = __objRest(_a2, ["title"]);
|
|
53
|
+
const isLast = index === items.length - 1;
|
|
54
|
+
return /* @__PURE__ */ React.createElement(
|
|
55
|
+
BreadcrumbItem,
|
|
56
|
+
__spreadValues({
|
|
57
|
+
key: index,
|
|
58
|
+
separator: isLast ? "" : separator
|
|
59
|
+
}, otherItemProps),
|
|
60
|
+
title
|
|
61
|
+
);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (children) {
|
|
65
|
+
const childrenLength = React.Children.count(children);
|
|
66
|
+
const enhancedChildren = React.Children.map(
|
|
67
|
+
children,
|
|
68
|
+
(child, index) => {
|
|
69
|
+
if (React.isValidElement(child)) {
|
|
70
|
+
const itemSeparator = child.props.separator || separator;
|
|
71
|
+
const newProps = {
|
|
72
|
+
separator: index === childrenLength - 1 ? "" : itemSeparator
|
|
73
|
+
};
|
|
74
|
+
return React.cloneElement(child, newProps);
|
|
75
|
+
}
|
|
76
|
+
return child;
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
return enhancedChildren;
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
};
|
|
83
|
+
if (items == null && children == null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
return /* @__PURE__ */ React.createElement(
|
|
87
|
+
"nav",
|
|
88
|
+
__spreadValues({
|
|
89
|
+
className: clsx(prefixCls, className),
|
|
90
|
+
style,
|
|
91
|
+
ref
|
|
92
|
+
}, others),
|
|
93
|
+
/* @__PURE__ */ React.createElement("ol", { className: `${prefixCls}-list` }, renderList())
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
Breadcrumb.displayName = "BuiBreadcrumb";
|
|
98
|
+
var Breadcrumb_default = Breadcrumb;
|
|
99
|
+
export {
|
|
100
|
+
Breadcrumb_default as default
|
|
101
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { OverrideProps } from '@bifrostui/types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type BreadcrumbItemProps<D extends React.ElementType = 'li', P = {}> = OverrideProps<{
|
|
4
|
+
props: P & {
|
|
5
|
+
/**
|
|
6
|
+
* 分隔符自定义
|
|
7
|
+
*/
|
|
8
|
+
separator?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* body 区域内容
|
|
11
|
+
*/
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* 点击事件
|
|
15
|
+
*/
|
|
16
|
+
onClick?: (e: React.SyntheticEvent) => void;
|
|
17
|
+
};
|
|
18
|
+
defaultComponent: D;
|
|
19
|
+
}, D>;
|
|
20
|
+
export type BreadcrumbProps<D extends React.ElementType = 'nav', P = {}> = OverrideProps<{
|
|
21
|
+
props: P & {
|
|
22
|
+
/**
|
|
23
|
+
* 路由栈信息
|
|
24
|
+
*/
|
|
25
|
+
items?: Array<{
|
|
26
|
+
/**
|
|
27
|
+
* 名称
|
|
28
|
+
*/
|
|
29
|
+
title?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 分隔符自定义
|
|
32
|
+
*/
|
|
33
|
+
separator?: React.ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* 点击事件
|
|
36
|
+
*/
|
|
37
|
+
onClick?: (e: React.SyntheticEvent) => void;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* 分隔符自定义
|
|
41
|
+
*/
|
|
42
|
+
separator?: React.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* body 区域内容,使用 CollapseItem 进行渲染
|
|
45
|
+
*/
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
};
|
|
48
|
+
defaultComponent: D;
|
|
49
|
+
}, D>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
var __objRest = (source, exclude) => {
|
|
18
|
+
var target = {};
|
|
19
|
+
for (var prop in source)
|
|
20
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
+
target[prop] = source[prop];
|
|
22
|
+
if (source != null && __getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
};
|
|
29
|
+
import React from "react";
|
|
30
|
+
import clsx from "clsx";
|
|
31
|
+
const prefixCls = "bui-breadcrumb-item";
|
|
32
|
+
const BreadcrumbItem = /* @__PURE__ */ React.forwardRef(
|
|
33
|
+
(props, ref) => {
|
|
34
|
+
const _a = props, { className, style, separator, children, onClick } = _a, others = __objRest(_a, ["className", "style", "separator", "children", "onClick"]);
|
|
35
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
36
|
+
"li",
|
|
37
|
+
__spreadValues({
|
|
38
|
+
className: clsx(`${prefixCls}`, className),
|
|
39
|
+
style,
|
|
40
|
+
ref,
|
|
41
|
+
onClick
|
|
42
|
+
}, others),
|
|
43
|
+
children
|
|
44
|
+
), separator && /* @__PURE__ */ React.createElement("li", { className: `${prefixCls}-separator` }, separator));
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
BreadcrumbItem.displayName = "BuiBreadcrumbItem";
|
|
48
|
+
var BreadcrumbItem_default = BreadcrumbItem;
|
|
49
|
+
export {
|
|
50
|
+
BreadcrumbItem_default as default
|
|
51
|
+
};
|