@bifrostui/react 1.3.1-beta.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionSheet/ActionSheet.css +3 -6
- package/dist/ActionSheet/ActionSheetItem.css +6 -10
- package/dist/Alert/index.css +8 -14
- package/dist/Avatar/Avatar.css +9 -13
- package/dist/Avatar/AvatarGroup.css +8 -15
- package/dist/Backdrop/Backdrop.css +1 -2
- package/dist/Badge/Badge.css +17 -27
- package/dist/Button/Button.css +17 -26
- package/dist/Calendar/Calendar.css +18 -33
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js +17 -38
- package/dist/Calendar/Calendar.types.d.ts +0 -21
- package/dist/Card/CardFooter.css +1 -2
- package/dist/Card/CardHeader.css +1 -3
- package/dist/Checkbox/Checkbox.css +5 -7
- package/dist/CitySelector/CitySelector.css +15 -29
- package/dist/CitySelector/CitySelectorCore.js +16 -25
- package/dist/CitySelector/Selector/index.css +4 -4
- package/dist/Countdown/Countdown.css +1 -2
- package/dist/Dialog/Dialog.d.ts +2 -2
- package/dist/Dialog/Dialog.js +8 -20
- package/dist/Dialog/Dialog.types.d.ts +1 -12
- package/dist/Dialog/FunctionalDialog.js +2 -38
- package/dist/Dialog/index.css +18 -27
- package/dist/Divider/Divider.css +4 -6
- package/dist/IconButton/IconButton.css +7 -9
- package/dist/Image/index.css +1 -2
- package/dist/Input/Input.css +5 -10
- package/dist/List/List.css +0 -3
- package/dist/List/ListItem.css +3 -3
- package/dist/List/ListItemContent.css +1 -1
- package/dist/Loading/Loading.css +2 -4
- package/dist/Modal/Modal.miniapp.d.ts +1 -1
- package/dist/NavBar/NavBar.css +5 -9
- package/dist/Picker/Picker.css +29 -25
- package/dist/Picker/Picker.js +11 -31
- package/dist/Picker/Picker.types.d.ts +0 -4
- package/dist/Picker/PickerPanel.css +8 -8
- package/dist/Picker/PickerPanel.js +8 -14
- package/dist/Picker/utils.d.ts +0 -16
- package/dist/Picker/utils.js +2 -32
- package/dist/Portal/Portal.types.d.ts +0 -4
- package/dist/Portal/PortalCore.js +1 -8
- package/dist/Progress/Progress.css +6 -8
- package/dist/Radio/Radio.css +1 -2
- package/dist/Rating/Rating.css +4 -8
- package/dist/Select/Select.css +10 -21
- package/dist/Select/Select.js +1 -1
- package/dist/Select/SelectOption.js +0 -3
- package/dist/Skeleton/Skeleton.css +2 -3
- package/dist/Slider/Slider.css +13 -24
- package/dist/Steps/Step.css +11 -11
- package/dist/Steps/Steps.css +5 -14
- package/dist/Swiper/Swiper.css +1 -2
- package/dist/Switch/Switch.css +16 -31
- package/dist/TabBar/TabBar.css +3 -7
- package/dist/TabBar/TabBarItem.css +1 -0
- package/dist/Tabs/Tab.css +6 -2
- package/dist/Tabs/Tabs.css +4 -7
- package/dist/Tag/Tag.css +10 -7
- package/dist/Tag/TagGroup.css +1 -9
- package/dist/TextArea/TextArea.css +8 -14
- package/dist/Toast/FunctionalToast.js +0 -18
- package/dist/Toast/Toast.css +14 -15
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/Toast.js +48 -52
- package/dist/Toast/Toast.types.d.ts +1 -15
- package/dist/index.d.ts +0 -7
- package/dist/index.js +1 -15
- package/es/ActionSheet/ActionSheet.css +3 -6
- package/es/ActionSheet/ActionSheetItem.css +6 -10
- package/es/Alert/index.css +8 -14
- package/es/Avatar/Avatar.css +9 -13
- package/es/Avatar/AvatarGroup.css +8 -15
- package/es/Backdrop/Backdrop.css +1 -2
- package/es/Badge/Badge.css +17 -27
- package/es/Button/Button.css +17 -26
- package/es/Calendar/Calendar.css +18 -33
- package/es/Calendar/Calendar.d.ts +1 -1
- package/es/Calendar/Calendar.js +17 -38
- package/es/Calendar/Calendar.types.d.ts +0 -21
- package/es/Card/CardFooter.css +1 -2
- package/es/Card/CardHeader.css +1 -3
- package/es/Checkbox/Checkbox.css +5 -7
- package/es/CitySelector/CitySelector.css +15 -29
- package/es/CitySelector/CitySelectorCore.js +16 -25
- package/es/CitySelector/Selector/index.css +4 -4
- package/es/Countdown/Countdown.css +1 -2
- package/es/Dialog/Dialog.d.ts +2 -2
- package/es/Dialog/Dialog.js +8 -20
- package/es/Dialog/Dialog.types.d.ts +1 -12
- package/es/Dialog/FunctionalDialog.js +2 -38
- package/es/Dialog/index.css +18 -27
- package/es/Divider/Divider.css +4 -6
- package/es/IconButton/IconButton.css +7 -9
- package/es/Image/index.css +1 -2
- package/es/Input/Input.css +5 -10
- package/es/List/List.css +0 -3
- package/es/List/ListItem.css +3 -3
- package/es/List/ListItemContent.css +1 -1
- package/es/Loading/Loading.css +2 -4
- package/es/Modal/Modal.miniapp.d.ts +1 -1
- package/es/NavBar/NavBar.css +5 -9
- package/es/Picker/Picker.css +29 -25
- package/es/Picker/Picker.js +12 -32
- package/es/Picker/Picker.types.d.ts +0 -4
- package/es/Picker/PickerPanel.css +8 -8
- package/es/Picker/PickerPanel.js +8 -14
- package/es/Picker/utils.d.ts +0 -16
- package/es/Picker/utils.js +1 -29
- package/es/Portal/Portal.types.d.ts +0 -4
- package/es/Portal/PortalCore.js +1 -8
- package/es/Progress/Progress.css +6 -8
- package/es/Radio/Radio.css +1 -2
- package/es/Rating/Rating.css +4 -8
- package/es/Select/Select.css +10 -21
- package/es/Select/Select.js +1 -1
- package/es/Select/SelectOption.js +0 -3
- package/es/Skeleton/Skeleton.css +2 -3
- package/es/Slider/Slider.css +13 -24
- package/es/Steps/Step.css +11 -11
- package/es/Steps/Steps.css +5 -14
- package/es/Swiper/Swiper.css +1 -2
- package/es/Switch/Switch.css +16 -31
- package/es/TabBar/TabBar.css +3 -7
- package/es/TabBar/TabBarItem.css +1 -0
- package/es/Tabs/Tab.css +6 -2
- package/es/Tabs/Tabs.css +4 -7
- package/es/Tag/Tag.css +10 -7
- package/es/Tag/TagGroup.css +1 -9
- package/es/TextArea/TextArea.css +8 -14
- package/es/Toast/FunctionalToast.js +0 -18
- package/es/Toast/Toast.css +14 -15
- package/es/Toast/Toast.d.ts +2 -2
- package/es/Toast/Toast.js +49 -53
- package/es/Toast/Toast.types.d.ts +1 -15
- package/es/index.d.ts +0 -7
- package/es/index.js +0 -7
- package/package.json +5 -5
- package/dist/Breadcrumb/Breadcrumb.css +0 -34
- package/dist/Breadcrumb/Breadcrumb.d.ts +0 -5
- package/dist/Breadcrumb/Breadcrumb.js +0 -128
- package/dist/Breadcrumb/Breadcrumb.types.d.ts +0 -49
- package/dist/Breadcrumb/Breadcrumb.types.js +0 -15
- package/dist/Breadcrumb/BreadcrumbItem.d.ts +0 -4
- package/dist/Breadcrumb/BreadcrumbItem.js +0 -78
- package/dist/Breadcrumb/index.d.ts +0 -4
- package/dist/Breadcrumb/index.js +0 -45
- package/dist/Collapse/Collapse.css +0 -6
- package/dist/Collapse/Collapse.d.ts +0 -5
- package/dist/Collapse/Collapse.js +0 -165
- package/dist/Collapse/Collapse.types.d.ts +0 -16
- package/dist/Collapse/Collapse.types.js +0 -15
- package/dist/Collapse/index.d.ts +0 -2
- package/dist/Collapse/index.js +0 -41
- package/dist/CollapsePanel/CollapsePanel.css +0 -32
- package/dist/CollapsePanel/CollapsePanel.d.ts +0 -5
- package/dist/CollapsePanel/CollapsePanel.js +0 -159
- package/dist/CollapsePanel/CollapsePanel.types.d.ts +0 -64
- package/dist/CollapsePanel/CollapsePanel.types.js +0 -15
- package/dist/CollapsePanel/CollapsePanelItem.d.ts +0 -4
- package/dist/CollapsePanel/CollapsePanelItem.js +0 -112
- package/dist/CollapsePanel/index.d.ts +0 -4
- package/dist/CollapsePanel/index.js +0 -45
- package/dist/Popover/Popover.css +0 -97
- package/dist/Popover/Popover.d.ts +0 -5
- package/dist/Popover/Popover.js +0 -186
- package/dist/Popover/Popover.types.d.ts +0 -59
- package/dist/Popover/Popover.types.js +0 -15
- package/dist/Popover/index.d.ts +0 -2
- package/dist/Popover/index.js +0 -41
- package/dist/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/dist/ThemeProvider/ThemeProvider.js +0 -91
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +0 -127
- package/dist/ThemeProvider/ThemeProvider.types.js +0 -27
- package/dist/ThemeProvider/hooks/ThemeContext.d.ts +0 -4
- package/dist/ThemeProvider/hooks/ThemeContext.js +0 -35
- package/dist/ThemeProvider/hooks/createTheme.d.ts +0 -2
- package/dist/ThemeProvider/hooks/createTheme.js +0 -55
- package/dist/ThemeProvider/hooks/index.d.ts +0 -4
- package/dist/ThemeProvider/hooks/index.js +0 -43
- package/dist/ThemeProvider/hooks/useTheme.d.ts +0 -1
- package/dist/ThemeProvider/hooks/useTheme.js +0 -39
- package/dist/ThemeProvider/index.d.ts +0 -4
- package/dist/ThemeProvider/index.js +0 -45
- package/dist/ThemeProvider/utils/constants.d.ts +0 -38
- package/dist/ThemeProvider/utils/constants.js +0 -65
- package/dist/ThemeProvider/utils/index.d.ts +0 -2
- package/dist/ThemeProvider/utils/index.js +0 -23
- package/dist/ThemeProvider/utils/mountTokens.d.ts +0 -26
- package/dist/ThemeProvider/utils/mountTokens.js +0 -123
- package/dist/Tooltip/Tooltip.css +0 -91
- package/dist/Tooltip/Tooltip.d.ts +0 -5
- package/dist/Tooltip/Tooltip.js +0 -175
- package/dist/Tooltip/Tooltip.types.d.ts +0 -50
- package/dist/Tooltip/Tooltip.types.js +0 -15
- package/dist/Tooltip/index.d.ts +0 -2
- package/dist/Tooltip/index.js +0 -41
- package/dist/locales/base.d.ts +0 -40
- package/dist/locales/base.js +0 -15
- package/dist/locales/en-US.d.ts +0 -3
- package/dist/locales/en-US.js +0 -69
- package/dist/locales/hooks/useLocaleText.d.ts +0 -3
- package/dist/locales/hooks/useLocaleText.js +0 -43
- package/dist/locales/index.d.ts +0 -5
- package/dist/locales/index.js +0 -49
- package/dist/locales/zh-CN.d.ts +0 -3
- package/dist/locales/zh-CN.js +0 -51
- package/dist/locales/zh-TW.d.ts +0 -3
- package/dist/locales/zh-TW.js +0 -51
- package/es/Breadcrumb/Breadcrumb.css +0 -34
- package/es/Breadcrumb/Breadcrumb.d.ts +0 -5
- package/es/Breadcrumb/Breadcrumb.js +0 -101
- package/es/Breadcrumb/Breadcrumb.types.d.ts +0 -49
- package/es/Breadcrumb/Breadcrumb.types.js +0 -1
- package/es/Breadcrumb/BreadcrumbItem.d.ts +0 -4
- package/es/Breadcrumb/BreadcrumbItem.js +0 -51
- package/es/Breadcrumb/index.d.ts +0 -4
- package/es/Breadcrumb/index.js +0 -9
- package/es/Collapse/Collapse.css +0 -6
- package/es/Collapse/Collapse.d.ts +0 -5
- package/es/Collapse/Collapse.js +0 -144
- package/es/Collapse/Collapse.types.d.ts +0 -16
- package/es/Collapse/Collapse.types.js +0 -1
- package/es/Collapse/index.d.ts +0 -2
- package/es/Collapse/index.js +0 -6
- package/es/CollapsePanel/CollapsePanel.css +0 -32
- package/es/CollapsePanel/CollapsePanel.d.ts +0 -5
- package/es/CollapsePanel/CollapsePanel.js +0 -132
- package/es/CollapsePanel/CollapsePanel.types.d.ts +0 -64
- package/es/CollapsePanel/CollapsePanel.types.js +0 -1
- package/es/CollapsePanel/CollapsePanelItem.d.ts +0 -4
- package/es/CollapsePanel/CollapsePanelItem.js +0 -85
- package/es/CollapsePanel/index.d.ts +0 -4
- package/es/CollapsePanel/index.js +0 -9
- package/es/Popover/Popover.css +0 -97
- package/es/Popover/Popover.d.ts +0 -5
- package/es/Popover/Popover.js +0 -163
- package/es/Popover/Popover.types.d.ts +0 -59
- package/es/Popover/Popover.types.js +0 -1
- package/es/Popover/index.d.ts +0 -2
- package/es/Popover/index.js +0 -6
- package/es/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/es/ThemeProvider/ThemeProvider.js +0 -62
- package/es/ThemeProvider/ThemeProvider.types.d.ts +0 -127
- package/es/ThemeProvider/ThemeProvider.types.js +0 -1
- package/es/ThemeProvider/hooks/ThemeContext.d.ts +0 -4
- package/es/ThemeProvider/hooks/ThemeContext.js +0 -6
- package/es/ThemeProvider/hooks/createTheme.d.ts +0 -2
- package/es/ThemeProvider/hooks/createTheme.js +0 -38
- package/es/ThemeProvider/hooks/index.d.ts +0 -4
- package/es/ThemeProvider/hooks/index.js +0 -8
- package/es/ThemeProvider/hooks/useTheme.d.ts +0 -1
- package/es/ThemeProvider/hooks/useTheme.js +0 -10
- package/es/ThemeProvider/index.d.ts +0 -4
- package/es/ThemeProvider/index.js +0 -8
- package/es/ThemeProvider/utils/constants.d.ts +0 -38
- package/es/ThemeProvider/utils/constants.js +0 -40
- package/es/ThemeProvider/utils/index.d.ts +0 -2
- package/es/ThemeProvider/utils/index.js +0 -2
- package/es/ThemeProvider/utils/mountTokens.d.ts +0 -26
- package/es/ThemeProvider/utils/mountTokens.js +0 -88
- package/es/Tooltip/Tooltip.css +0 -91
- package/es/Tooltip/Tooltip.d.ts +0 -5
- package/es/Tooltip/Tooltip.js +0 -152
- package/es/Tooltip/Tooltip.types.d.ts +0 -50
- package/es/Tooltip/Tooltip.types.js +0 -1
- package/es/Tooltip/index.d.ts +0 -2
- package/es/Tooltip/index.js +0 -6
- package/es/locales/base.d.ts +0 -40
- package/es/locales/base.js +0 -0
- package/es/locales/en-US.d.ts +0 -3
- package/es/locales/en-US.js +0 -50
- package/es/locales/hooks/useLocaleText.d.ts +0 -3
- package/es/locales/hooks/useLocaleText.js +0 -26
- package/es/locales/index.d.ts +0 -5
- package/es/locales/index.js +0 -11
- package/es/locales/zh-CN.d.ts +0 -3
- package/es/locales/zh-CN.js +0 -32
- package/es/locales/zh-TW.d.ts +0 -3
- package/es/locales/zh-TW.js +0 -32
package/es/Tabs/Tabs.css
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
.bui-tabs {
|
|
2
|
-
--height:
|
|
2
|
+
--height: 39px;
|
|
3
3
|
--font-size: var(--bui-text-size-1);
|
|
4
4
|
--color: var(--bui-color-fg-subtle);
|
|
5
5
|
--active-color: var(--bui-color-fg-default);
|
|
6
6
|
--line-color: var(--bui-color-primary);
|
|
7
|
-
--line-height:
|
|
8
|
-
--line-width:
|
|
9
|
-
--mask-height: var(--bui-tabs-mask-height, 100%);
|
|
10
|
-
--tab-height: var(--bui-tab-height, 100%);
|
|
11
|
-
--tab-padding: var(--bui-tab-padding, var(--bui-spacing-lg) var(--bui-spacing-lg) 10px);
|
|
7
|
+
--line-height: 3PX;
|
|
8
|
+
--line-width: 18px;
|
|
12
9
|
position: relative;
|
|
13
10
|
font-family: var(--bui-font-family);
|
|
14
11
|
}
|
|
@@ -43,7 +40,7 @@
|
|
|
43
40
|
bottom: 0;
|
|
44
41
|
z-index: 1;
|
|
45
42
|
width: 12px;
|
|
46
|
-
height:
|
|
43
|
+
height: 100%;
|
|
47
44
|
pointer-events: none;
|
|
48
45
|
}
|
|
49
46
|
.bui-tabs-mask-left {
|
package/es/Tag/Tag.css
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
.bui-tag {
|
|
2
|
+
--color: var(--bui-tag-color, var(--bui-color-gray));
|
|
3
|
+
--border-color: var(--bui-tag-border-color, var(--bui-color-border-gray));
|
|
4
|
+
--bg-color: var(--bui-tag-bg-color, var(--bui-color-gray));
|
|
2
5
|
position: relative;
|
|
3
6
|
display: inline-flex;
|
|
4
7
|
align-items: center;
|
|
5
8
|
justify-content: center;
|
|
6
9
|
white-space: nowrap;
|
|
7
|
-
height:
|
|
8
|
-
line-height:
|
|
9
|
-
padding: var(--
|
|
10
|
+
height: 15px;
|
|
11
|
+
line-height: 15px;
|
|
12
|
+
padding: 0 var(--bui-spacing-xs);
|
|
10
13
|
font-size: var(--bui-text-size-5);
|
|
11
14
|
font-weight: var(--bui-font-weight-normal);
|
|
12
15
|
border-radius: var(--bui-shape-radius-label);
|
|
@@ -16,8 +19,8 @@
|
|
|
16
19
|
font-family: var(--bui-font-family);
|
|
17
20
|
}
|
|
18
21
|
.bui-tag-outlined {
|
|
19
|
-
color: var(--
|
|
20
|
-
border: 1px solid var(--
|
|
22
|
+
color: var(--color);
|
|
23
|
+
border: 1px solid var(--border-color);
|
|
21
24
|
}
|
|
22
25
|
.bui-tag-outlined.bui-tag-primary {
|
|
23
26
|
color: var(--bui-color-primary);
|
|
@@ -44,7 +47,7 @@
|
|
|
44
47
|
border: 1px solid var(--bui-color-border-primary);
|
|
45
48
|
}
|
|
46
49
|
.bui-tag-contained {
|
|
47
|
-
background-color: var(--
|
|
50
|
+
background-color: var(--bg-color);
|
|
48
51
|
}
|
|
49
52
|
.bui-tag-contained.bui-tag-primary {
|
|
50
53
|
background-color: var(--bui-color-primary);
|
|
@@ -89,6 +92,6 @@
|
|
|
89
92
|
color: var(--bui-color-danger);
|
|
90
93
|
}
|
|
91
94
|
.bui-tag-light.bui-tag-vip {
|
|
92
|
-
background-color:
|
|
95
|
+
background-color: rgba(255, 134, 110, 0.3);
|
|
93
96
|
color: var(--bui-color-vip);
|
|
94
97
|
}
|
package/es/Tag/TagGroup.css
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
.bui-tag-group {
|
|
2
|
-
--height: var(--bui-tag-group-divider-height, 13%);
|
|
3
|
-
--tag-color: var(--bui-tag-color, var(--bui-color-gray));
|
|
4
|
-
--tag-border-color: var(--bui-tag-border-color, var(--bui-color-border-gray));
|
|
5
|
-
--tag-bg-color: var(--bui-tag-bg-color, var(--bui-color-gray));
|
|
6
|
-
--tag-height: var(--bui-tag-height, 15px);
|
|
7
|
-
--tag-line-height: var(--bui-tag-line-height, 15px);
|
|
8
|
-
--tag-padding: var(--bui-tag-padding, 0 var(--bui-spacing-xs));
|
|
9
|
-
--tag-bg-color-vip: var(--bui-tag-color-vip, rgba(255, 134, 110, 0.3));
|
|
10
2
|
display: inline-flex;
|
|
11
3
|
font-family: var(--bui-font-family);
|
|
12
4
|
}
|
|
@@ -32,7 +24,7 @@
|
|
|
32
24
|
position: absolute;
|
|
33
25
|
right: -1px;
|
|
34
26
|
width: 1px;
|
|
35
|
-
height:
|
|
27
|
+
height: 13%;
|
|
36
28
|
color: #fff;
|
|
37
29
|
background-color: #fff;
|
|
38
30
|
border-right-style: solid;
|
package/es/TextArea/TextArea.css
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
.bui-textarea {
|
|
2
|
-
--width: var(--bui-textarea-width, 100%);
|
|
3
2
|
--bg-color: var(--bui-color-bg-default);
|
|
4
|
-
--text-color: var(--bui-
|
|
3
|
+
--text-color: var(--bui-color-fg-subtle);
|
|
5
4
|
--count-bg-color: var(--bg-color, var(--bui-color-bg-default));
|
|
6
|
-
--count-text-color: var(--bui-
|
|
7
|
-
--text-font-size: var(--bui-textarea-text-font-size, var(--bui-text-size-2));
|
|
8
|
-
--count-font-size: var(--bui-textarea-count-font-size, var(--bui-title-size-3));
|
|
9
|
-
--content-padding: var(--bui-textarea-padding, 8px);
|
|
10
|
-
--count-padding: var(--bui-textarea-count-padding, 0 4px);
|
|
11
|
-
--placeholder-line-height: var(--bui-textarea-placeholder-line-height, 1.3);
|
|
5
|
+
--count-text-color: var(--bui-color-fg-subtle);
|
|
12
6
|
background: var(--bui-color-bg-default);
|
|
13
7
|
font-family: var(--bui-font-family);
|
|
14
8
|
}
|
|
15
9
|
.bui-textarea textarea {
|
|
16
|
-
font-size: var(--text-
|
|
10
|
+
font-size: var(--bui-text-size-2);
|
|
17
11
|
color: var(--text-color);
|
|
18
12
|
line-height: var(--bui-line-height);
|
|
19
13
|
}
|
|
@@ -27,10 +21,10 @@
|
|
|
27
21
|
display: none;
|
|
28
22
|
}
|
|
29
23
|
.bui-textarea-content {
|
|
30
|
-
width:
|
|
24
|
+
width: 100%;
|
|
31
25
|
resize: none;
|
|
32
26
|
background: var(--bg-color);
|
|
33
|
-
padding:
|
|
27
|
+
padding: 8px;
|
|
34
28
|
border: none;
|
|
35
29
|
outline: none;
|
|
36
30
|
word-break: break-all;
|
|
@@ -38,12 +32,12 @@
|
|
|
38
32
|
}
|
|
39
33
|
.bui-textarea-content::placeholder {
|
|
40
34
|
color: var(--bui-color-fg-disabled);
|
|
41
|
-
line-height:
|
|
35
|
+
line-height: 1.3;
|
|
42
36
|
}
|
|
43
37
|
.bui-textarea-count {
|
|
44
38
|
background: var(--count-bg-color);
|
|
45
39
|
color: var(--count-text-color);
|
|
46
40
|
text-align: right;
|
|
47
|
-
padding:
|
|
48
|
-
font-size: var(--
|
|
41
|
+
padding: 0 4px;
|
|
42
|
+
font-size: var(--bui-title-size-3);
|
|
49
43
|
}
|
|
@@ -125,24 +125,6 @@ functionalToast.clear = () => {
|
|
|
125
125
|
destroyAll();
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
|
-
const useToast = () => {
|
|
129
|
-
const holderRef = React.useRef(null);
|
|
130
|
-
["warning", "loading", "success", "fail"].forEach((methodName) => {
|
|
131
|
-
functionalToast[methodName] = (options) => functionalToast(__spreadProps(__spreadValues({
|
|
132
|
-
type: methodName
|
|
133
|
-
}, formatProps(options)), {
|
|
134
|
-
theme: holderRef.current.theme
|
|
135
|
-
}));
|
|
136
|
-
});
|
|
137
|
-
functionalToast.clear = () => {
|
|
138
|
-
setTimeout(() => {
|
|
139
|
-
destroyAll();
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
const wrapAPI = functionalToast;
|
|
143
|
-
return [wrapAPI, /* @__PURE__ */ React.createElement(ToastView, { key: "toast-holder", ref: holderRef })];
|
|
144
|
-
};
|
|
145
|
-
functionalToast.useToast = useToast;
|
|
146
128
|
const Toast = functionalToast;
|
|
147
129
|
var FunctionalToast_default = Toast;
|
|
148
130
|
export {
|
package/es/Toast/Toast.css
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
.bui-toast {
|
|
2
|
-
--min-width:
|
|
3
|
-
--max-width:
|
|
4
|
-
--
|
|
5
|
-
--
|
|
2
|
+
--min-width: 86px;
|
|
3
|
+
--max-width: 80%;
|
|
4
|
+
--font-size: var(--bui-text-size-1);
|
|
5
|
+
--color: var(--bui-color-white);
|
|
6
|
+
--padding: var(--bui-spacing-xl);
|
|
6
7
|
--word-break: break-all;
|
|
7
8
|
--z-index: var(--bui-z-index-toast);
|
|
8
|
-
--position-top:
|
|
9
|
-
--position-bottom:
|
|
10
|
-
--background-color:
|
|
11
|
-
--border-radius: var(--bui-
|
|
12
|
-
--icon-margin: var(--bui-toast-icon-margin-bottom, 8px);
|
|
13
|
-
--icon-font-size: var(--bui-toast-icon-font-size, 30px);
|
|
9
|
+
--position-top: 15%;
|
|
10
|
+
--position-bottom: 85%;
|
|
11
|
+
--background-color: rgba(0, 0, 0, 0.8);
|
|
12
|
+
--border-radius: var(--bui-shape-radius-default);
|
|
14
13
|
--text-align: center;
|
|
15
14
|
position: fixed;
|
|
16
15
|
left: 50%;
|
|
@@ -19,8 +18,8 @@
|
|
|
19
18
|
min-width: var(--min-width);
|
|
20
19
|
max-width: var(--max-width);
|
|
21
20
|
padding: var(--padding);
|
|
22
|
-
font-size: var(--
|
|
23
|
-
color: var(--
|
|
21
|
+
font-size: var(--font-size);
|
|
22
|
+
color: var(--color);
|
|
24
23
|
border-radius: var(--border-radius);
|
|
25
24
|
word-break: var(--word-break);
|
|
26
25
|
white-space: pre-wrap;
|
|
@@ -47,10 +46,10 @@
|
|
|
47
46
|
}
|
|
48
47
|
.bui-toast-icon {
|
|
49
48
|
display: flex;
|
|
50
|
-
flex-direction:
|
|
49
|
+
flex-direction: column;
|
|
51
50
|
align-items: center;
|
|
52
51
|
}
|
|
53
52
|
.bui-toast-icon .bui-svg-icon {
|
|
54
|
-
margin:
|
|
55
|
-
font-size:
|
|
53
|
+
margin-bottom: 8px;
|
|
54
|
+
font-size: 30px;
|
|
56
55
|
}
|
package/es/Toast/Toast.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ToastProps
|
|
2
|
+
import { ToastProps } from './Toast.types';
|
|
3
3
|
import './Toast.less';
|
|
4
|
-
declare const ToastComponent: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<
|
|
4
|
+
declare const ToastComponent: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default ToastComponent;
|
package/es/Toast/Toast.js
CHANGED
|
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
import clsx from "clsx";
|
|
33
|
-
import React
|
|
33
|
+
import React from "react";
|
|
34
34
|
import {
|
|
35
35
|
ErrorCircleFilledBoldIcon,
|
|
36
36
|
AccessTimeCircleFilledBoldIcon,
|
|
@@ -38,60 +38,56 @@ import {
|
|
|
38
38
|
SuccessCircleFilledBoldIcon
|
|
39
39
|
} from "@bifrostui/icons";
|
|
40
40
|
import Fade from "../Fade";
|
|
41
|
-
import { useTheme } from "../ThemeProvider";
|
|
42
41
|
import "./Toast.css";
|
|
43
42
|
const prefixCls = "bui-toast";
|
|
44
|
-
const ToastComponent = /* @__PURE__ */ React.forwardRef(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
message
|
|
93
|
-
));
|
|
94
|
-
});
|
|
43
|
+
const ToastComponent = /* @__PURE__ */ React.forwardRef(
|
|
44
|
+
(props, ref) => {
|
|
45
|
+
const _a = props, {
|
|
46
|
+
className,
|
|
47
|
+
style,
|
|
48
|
+
open,
|
|
49
|
+
type,
|
|
50
|
+
icon,
|
|
51
|
+
message,
|
|
52
|
+
position = "center",
|
|
53
|
+
disableClick = false
|
|
54
|
+
} = _a, others = __objRest(_a, [
|
|
55
|
+
"className",
|
|
56
|
+
"style",
|
|
57
|
+
"open",
|
|
58
|
+
"type",
|
|
59
|
+
"icon",
|
|
60
|
+
"message",
|
|
61
|
+
"position",
|
|
62
|
+
"disableClick"
|
|
63
|
+
]);
|
|
64
|
+
const iconMap = {
|
|
65
|
+
fail: /* @__PURE__ */ React.createElement(ErrorCircleFilledBoldIcon, { htmlColor: "#ffffff" }),
|
|
66
|
+
loading: /* @__PURE__ */ React.createElement(AccessTimeCircleFilledBoldIcon, { htmlColor: "#ffffff" }),
|
|
67
|
+
warning: /* @__PURE__ */ React.createElement(AlertCircleFilledBoldIcon, { htmlColor: "#ffffff" }),
|
|
68
|
+
success: /* @__PURE__ */ React.createElement(SuccessCircleFilledBoldIcon, { htmlColor: "#ffffff" })
|
|
69
|
+
};
|
|
70
|
+
const iconDom = iconMap[type] || icon;
|
|
71
|
+
return /* @__PURE__ */ React.createElement(Fade, __spreadProps(__spreadValues({}, others), { in: open, appear: false, unmountOnExit: true }), /* @__PURE__ */ React.createElement(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
className: clsx(
|
|
75
|
+
prefixCls,
|
|
76
|
+
`${prefixCls}-${position}`,
|
|
77
|
+
{
|
|
78
|
+
[`${prefixCls}-icon`]: !!iconDom,
|
|
79
|
+
[`${prefixCls}-allow-click`]: !disableClick
|
|
80
|
+
},
|
|
81
|
+
className
|
|
82
|
+
),
|
|
83
|
+
ref,
|
|
84
|
+
style
|
|
85
|
+
},
|
|
86
|
+
iconDom,
|
|
87
|
+
message
|
|
88
|
+
));
|
|
89
|
+
}
|
|
90
|
+
);
|
|
95
91
|
ToastComponent.displayName = "BuiToast";
|
|
96
92
|
var Toast_default = ToastComponent;
|
|
97
93
|
export {
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FadeProps } from '../Fade/Fade.types';
|
|
3
|
-
import { ThemeProps } from '../ThemeProvider/ThemeProvider.types';
|
|
4
|
-
export type ToastRef = {
|
|
5
|
-
theme?: ThemeProps;
|
|
6
|
-
};
|
|
7
3
|
/**
|
|
8
4
|
* 提示类型
|
|
9
5
|
*/
|
|
@@ -40,10 +36,6 @@ export interface ToastProps extends FadeProps {
|
|
|
40
36
|
* 自定义图标
|
|
41
37
|
*/
|
|
42
38
|
icon?: React.ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* theme 主题定制
|
|
45
|
-
*/
|
|
46
|
-
theme?: ThemeProps;
|
|
47
39
|
/**
|
|
48
40
|
* 展示Toast时,页面内容是否可以点击
|
|
49
41
|
* @default false
|
|
@@ -70,7 +62,7 @@ export type ToastReturnType = {
|
|
|
70
62
|
/**
|
|
71
63
|
* Toast Instance
|
|
72
64
|
*/
|
|
73
|
-
export interface
|
|
65
|
+
export interface ToastInstance {
|
|
74
66
|
(options: ToastOptions): ToastReturnType;
|
|
75
67
|
/**
|
|
76
68
|
* 警告提示
|
|
@@ -93,9 +85,3 @@ export interface ToastFunction {
|
|
|
93
85
|
*/
|
|
94
86
|
clear: () => void;
|
|
95
87
|
}
|
|
96
|
-
export interface ToastInstance extends ToastFunction {
|
|
97
|
-
/**
|
|
98
|
-
* 获取toast静态方法 & contextHolder
|
|
99
|
-
*/
|
|
100
|
-
useToast: () => [ToastFunction, React.JSX.Element];
|
|
101
|
-
}
|
package/es/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export * from './Button';
|
|
|
7
7
|
export * from './Calendar';
|
|
8
8
|
export * from './Card';
|
|
9
9
|
export * from './Checkbox';
|
|
10
|
-
export * from './Collapse';
|
|
11
10
|
export * from './Divider';
|
|
12
11
|
export * from './Drawer';
|
|
13
12
|
export * from './Fade';
|
|
@@ -16,7 +15,6 @@ export * from './Image';
|
|
|
16
15
|
export * from './Input';
|
|
17
16
|
export * from './List';
|
|
18
17
|
export * from './Modal';
|
|
19
|
-
export * from './Popover';
|
|
20
18
|
export * from './Portal';
|
|
21
19
|
export * from './Progress';
|
|
22
20
|
export * from './Radio';
|
|
@@ -34,16 +32,11 @@ export * from './Tabs';
|
|
|
34
32
|
export * from './Tag';
|
|
35
33
|
export * from './TextArea';
|
|
36
34
|
export * from './Transition';
|
|
37
|
-
export * from './Tooltip';
|
|
38
35
|
export * from './NavBar';
|
|
39
36
|
export * from './Loading';
|
|
40
37
|
export * from './TabBar';
|
|
41
38
|
export * from './Countdown';
|
|
42
39
|
export * from './CitySelector';
|
|
43
40
|
export * from './Picker';
|
|
44
|
-
export * from './CollapsePanel';
|
|
45
|
-
export * from './Breadcrumb';
|
|
46
41
|
export * from './Toast';
|
|
47
42
|
export * from './Dialog';
|
|
48
|
-
export * from './ThemeProvider';
|
|
49
|
-
export * from './locales';
|
package/es/index.js
CHANGED
|
@@ -7,7 +7,6 @@ export * from "./Button";
|
|
|
7
7
|
export * from "./Calendar";
|
|
8
8
|
export * from "./Card";
|
|
9
9
|
export * from "./Checkbox";
|
|
10
|
-
export * from "./Collapse";
|
|
11
10
|
export * from "./Divider";
|
|
12
11
|
export * from "./Drawer";
|
|
13
12
|
export * from "./Fade";
|
|
@@ -16,7 +15,6 @@ export * from "./Image";
|
|
|
16
15
|
export * from "./Input";
|
|
17
16
|
export * from "./List";
|
|
18
17
|
export * from "./Modal";
|
|
19
|
-
export * from "./Popover";
|
|
20
18
|
export * from "./Portal";
|
|
21
19
|
export * from "./Progress";
|
|
22
20
|
export * from "./Radio";
|
|
@@ -34,16 +32,11 @@ export * from "./Tabs";
|
|
|
34
32
|
export * from "./Tag";
|
|
35
33
|
export * from "./TextArea";
|
|
36
34
|
export * from "./Transition";
|
|
37
|
-
export * from "./Tooltip";
|
|
38
35
|
export * from "./NavBar";
|
|
39
36
|
export * from "./Loading";
|
|
40
37
|
export * from "./TabBar";
|
|
41
38
|
export * from "./Countdown";
|
|
42
39
|
export * from "./CitySelector";
|
|
43
40
|
export * from "./Picker";
|
|
44
|
-
export * from "./CollapsePanel";
|
|
45
|
-
export * from "./Breadcrumb";
|
|
46
41
|
export * from "./Toast";
|
|
47
42
|
export * from "./Dialog";
|
|
48
|
-
export * from "./ThemeProvider";
|
|
49
|
-
export * from "./locales";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bifrostui/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "React components for building mobile application",
|
|
5
5
|
"homepage": "http://bui.taopiaopiao.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"clsx": "^1.2.1",
|
|
34
34
|
"dayjs": "^1.11.7",
|
|
35
35
|
"swiper": "^8.1.5",
|
|
36
|
-
"@bifrostui/icons": "1.3.
|
|
37
|
-
"@bifrostui/
|
|
38
|
-
"@bifrostui/types": "1.3.
|
|
39
|
-
"@bifrostui/
|
|
36
|
+
"@bifrostui/icons": "1.3.2",
|
|
37
|
+
"@bifrostui/styles": "1.3.2",
|
|
38
|
+
"@bifrostui/types": "1.3.2",
|
|
39
|
+
"@bifrostui/utils": "1.3.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@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
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __objRest = (source, exclude) => {
|
|
22
|
-
var target = {};
|
|
23
|
-
for (var prop in source)
|
|
24
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
if (source != null && __getOwnPropSymbols)
|
|
27
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
};
|
|
33
|
-
var __export = (target, all) => {
|
|
34
|
-
for (var name in all)
|
|
35
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
36
|
-
};
|
|
37
|
-
var __copyProps = (to, from, except, desc) => {
|
|
38
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
39
|
-
for (let key of __getOwnPropNames(from))
|
|
40
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
41
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
42
|
-
}
|
|
43
|
-
return to;
|
|
44
|
-
};
|
|
45
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
46
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
47
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
48
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
49
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
50
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
51
|
-
mod
|
|
52
|
-
));
|
|
53
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
54
|
-
var Breadcrumb_exports = {};
|
|
55
|
-
__export(Breadcrumb_exports, {
|
|
56
|
-
default: () => Breadcrumb_default
|
|
57
|
-
});
|
|
58
|
-
module.exports = __toCommonJS(Breadcrumb_exports);
|
|
59
|
-
var import_react = __toESM(require("react"));
|
|
60
|
-
var import_clsx = __toESM(require("clsx"));
|
|
61
|
-
var import_BreadcrumbItem = __toESM(require("./BreadcrumbItem"));
|
|
62
|
-
var import_Breadcrumb2 = require("./Breadcrumb.css");
|
|
63
|
-
const prefixCls = "bui-breadcrumb";
|
|
64
|
-
const Breadcrumb = /* @__PURE__ */ import_react.default.forwardRef(
|
|
65
|
-
(props, ref) => {
|
|
66
|
-
const _a = props, {
|
|
67
|
-
className,
|
|
68
|
-
style,
|
|
69
|
-
items,
|
|
70
|
-
separator = "/",
|
|
71
|
-
children
|
|
72
|
-
} = _a, others = __objRest(_a, [
|
|
73
|
-
"className",
|
|
74
|
-
"style",
|
|
75
|
-
"items",
|
|
76
|
-
"separator",
|
|
77
|
-
"children"
|
|
78
|
-
]);
|
|
79
|
-
const renderList = () => {
|
|
80
|
-
if (items && items.length > 0) {
|
|
81
|
-
return items.map((item, index) => {
|
|
82
|
-
const _a2 = item, { title } = _a2, otherItemProps = __objRest(_a2, ["title"]);
|
|
83
|
-
const isLast = index === items.length - 1;
|
|
84
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
85
|
-
import_BreadcrumbItem.default,
|
|
86
|
-
__spreadValues({
|
|
87
|
-
key: index,
|
|
88
|
-
separator: isLast ? "" : separator
|
|
89
|
-
}, otherItemProps),
|
|
90
|
-
title
|
|
91
|
-
);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
if (children) {
|
|
95
|
-
const childrenLength = import_react.default.Children.count(children);
|
|
96
|
-
const enhancedChildren = import_react.default.Children.map(
|
|
97
|
-
children,
|
|
98
|
-
(child, index) => {
|
|
99
|
-
if (import_react.default.isValidElement(child)) {
|
|
100
|
-
const itemSeparator = child.props.separator || separator;
|
|
101
|
-
const newProps = {
|
|
102
|
-
separator: index === childrenLength - 1 ? "" : itemSeparator
|
|
103
|
-
};
|
|
104
|
-
return import_react.default.cloneElement(child, newProps);
|
|
105
|
-
}
|
|
106
|
-
return child;
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
return enhancedChildren;
|
|
110
|
-
}
|
|
111
|
-
return null;
|
|
112
|
-
};
|
|
113
|
-
if (items == null && children == null) {
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
117
|
-
"nav",
|
|
118
|
-
__spreadValues({
|
|
119
|
-
className: (0, import_clsx.default)(prefixCls, className),
|
|
120
|
-
style,
|
|
121
|
-
ref
|
|
122
|
-
}, others),
|
|
123
|
-
/* @__PURE__ */ import_react.default.createElement("ol", { className: `${prefixCls}-list` }, renderList())
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
);
|
|
127
|
-
Breadcrumb.displayName = "BuiBreadcrumb";
|
|
128
|
-
var Breadcrumb_default = Breadcrumb;
|