@bifrostui/react 1.4.7-beta.0 → 2.0.0-beta.0
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 +2 -2
- package/dist/ActionSheet/ActionSheetItem.js +3 -8
- package/dist/Avatar/Avatar.js +3 -8
- package/dist/Avatar/AvatarGroup.js +2 -6
- package/dist/Badge/Badge.js +3 -8
- package/dist/Button/Button.css +77 -78
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +4 -10
- package/dist/Button/Button.types.d.ts +8 -7
- package/dist/Calendar/Calendar.js +7 -19
- package/dist/Calendar/Calendar.types.d.ts +0 -5
- package/dist/Card/Card.css +1 -1
- package/dist/Card/CardContent.css +1 -2
- package/dist/Card/CardFooter.css +2 -4
- package/dist/Card/CardHeader.css +4 -5
- package/dist/Checkbox/Checkbox.js +2 -6
- package/dist/Checkbox/CheckboxGroup.js +4 -7
- package/dist/Collapse/Collapse.css +1 -0
- package/dist/Collapse/Collapse.d.ts +1 -1
- package/dist/Collapse/Collapse.js +8 -11
- package/dist/CollapsePanel/CollapsePanel.css +2 -4
- package/dist/CollapsePanel/CollapsePanelItem.js +45 -46
- package/dist/Countdown/Countdown.js +5 -12
- package/dist/Dialog/FunctionalDialog.js +1 -1
- package/dist/Divider/Divider.js +8 -5
- package/dist/Drawer/Drawer.js +4 -10
- package/dist/Fade/Fade.js +52 -56
- package/dist/IconButton/IconButton.js +5 -12
- package/dist/Image/Image.js +112 -119
- package/dist/Input/Input.js +4 -10
- package/dist/List/List.js +3 -8
- package/dist/List/ListItem.js +42 -44
- package/dist/List/ListItemContent.js +1 -4
- package/dist/List/ListItemExtra.js +9 -4
- package/dist/List/ListItemFooter.js +9 -4
- package/dist/List/ListItemHeader.js +9 -4
- package/dist/Loading/Loading.js +13 -4
- package/dist/Modal/Modal.js +0 -6
- package/dist/Modal/Modal.miniapp.js +4 -10
- package/dist/NavBar/NavBar.js +0 -1
- package/dist/Picker/Picker.css +0 -5
- package/dist/Picker/Picker.js +5 -27
- package/dist/Picker/Picker.types.d.ts +2 -15
- package/dist/Picker/PickerPanel.css +0 -4
- package/dist/Picker/PickerPanel.js +6 -7
- package/dist/Popover/Popover.css +5 -5
- package/dist/Popover/Popover.js +27 -70
- package/dist/Portal/Portal.miniapp.js +4 -7
- package/dist/Radio/Radio.css +0 -1
- package/dist/Radio/Radio.js +2 -6
- package/dist/Radio/RadioGroup.js +0 -3
- package/dist/Rating/Rating.js +8 -18
- package/dist/ScrollView/ScrollView.js +11 -24
- package/dist/ScrollView/ScrollView.types.d.ts +1 -0
- package/dist/Select/Select.css +4 -1
- package/dist/Select/Select.js +41 -68
- package/dist/Skeleton/Skeleton.js +5 -9
- package/dist/Slide/Slide.js +69 -74
- package/dist/Slider/Slider.js +11 -27
- package/dist/Steps/Step.js +81 -82
- package/dist/Steps/Steps.d.ts +1 -1
- package/dist/Steps/Steps.js +57 -60
- package/dist/Switch/Switch.js +75 -78
- package/dist/TabBar/TabBar.js +3 -8
- package/dist/Tabs/Tab.css +10 -16
- package/dist/Tabs/Tab.js +2 -3
- package/dist/Tabs/Tabs.css +13 -22
- package/dist/Tabs/Tabs.js +39 -70
- package/dist/Tabs/Tabs.types.d.ts +0 -10
- package/dist/Tabs/utils/bound.d.ts +1 -0
- package/dist/{DesktopPicker/utils/calcAfterMounted.js → Tabs/utils/bound.js} +14 -7
- package/dist/Tag/Tag.css +1 -1
- package/dist/Tag/Tag.js +2 -6
- package/dist/TextArea/TextArea.js +5 -12
- package/dist/Toast/FunctionalToast.js +1 -1
- package/dist/Toast/Toast.css +1 -0
- package/dist/Tooltip/Tooltip.css +5 -5
- package/dist/Tooltip/Tooltip.js +27 -70
- package/dist/Transition/TransitionCore.js +3 -8
- package/dist/index.d.ts +0 -6
- package/dist/index.js +1 -13
- package/dist/locales/base.d.ts +0 -11
- package/dist/locales/en-US.js +0 -24
- package/dist/locales/zh-CN.js +0 -24
- package/dist/locales/zh-TW.js +0 -24
- package/es/ActionSheet/ActionSheet.css +2 -2
- package/es/ActionSheet/ActionSheetItem.js +3 -8
- package/es/Avatar/Avatar.js +3 -8
- package/es/Avatar/AvatarGroup.js +2 -6
- package/es/Badge/Badge.js +3 -8
- package/es/Button/Button.css +77 -78
- package/es/Button/Button.d.ts +1 -1
- package/es/Button/Button.js +3 -9
- package/es/Button/Button.types.d.ts +8 -7
- package/es/Calendar/Calendar.js +7 -19
- package/es/Calendar/Calendar.types.d.ts +0 -5
- package/es/Card/Card.css +1 -1
- package/es/Card/CardContent.css +1 -2
- package/es/Card/CardFooter.css +2 -4
- package/es/Card/CardHeader.css +4 -5
- package/es/Checkbox/Checkbox.js +2 -6
- package/es/Checkbox/CheckboxGroup.js +4 -7
- package/es/Collapse/Collapse.css +1 -0
- package/es/Collapse/Collapse.d.ts +1 -1
- package/es/Collapse/Collapse.js +8 -11
- package/es/CollapsePanel/CollapsePanel.css +2 -4
- package/es/CollapsePanel/CollapsePanelItem.js +45 -46
- package/es/Countdown/Countdown.js +5 -12
- package/es/Dialog/FunctionalDialog.js +2 -2
- package/es/Divider/Divider.js +8 -5
- package/es/Drawer/Drawer.js +4 -10
- package/es/Fade/Fade.js +52 -56
- package/es/IconButton/IconButton.js +5 -12
- package/es/Image/Image.js +112 -119
- package/es/Input/Input.js +4 -10
- package/es/List/List.js +3 -8
- package/es/List/ListItem.js +42 -44
- package/es/List/ListItemContent.js +1 -4
- package/es/List/ListItemExtra.js +9 -4
- package/es/List/ListItemFooter.js +9 -4
- package/es/List/ListItemHeader.js +9 -4
- package/es/Loading/Loading.js +13 -4
- package/es/Modal/Modal.js +0 -6
- package/es/Modal/Modal.miniapp.js +4 -10
- package/es/NavBar/NavBar.js +0 -1
- package/es/Picker/Picker.css +0 -5
- package/es/Picker/Picker.js +5 -27
- package/es/Picker/Picker.types.d.ts +2 -15
- package/es/Picker/PickerPanel.css +0 -4
- package/es/Picker/PickerPanel.js +6 -7
- package/es/Popover/Popover.css +5 -5
- package/es/Popover/Popover.js +29 -73
- package/es/Portal/Portal.miniapp.js +5 -8
- package/es/Radio/Radio.css +0 -1
- package/es/Radio/Radio.js +2 -6
- package/es/Radio/RadioGroup.js +0 -3
- package/es/Rating/Rating.js +8 -18
- package/es/ScrollView/ScrollView.js +11 -24
- package/es/ScrollView/ScrollView.types.d.ts +1 -0
- package/es/Select/Select.css +4 -1
- package/es/Select/Select.js +42 -68
- package/es/Skeleton/Skeleton.js +5 -9
- package/es/Slide/Slide.js +69 -74
- package/es/Slider/Slider.js +12 -30
- package/es/Steps/Step.js +81 -82
- package/es/Steps/Steps.d.ts +1 -1
- package/es/Steps/Steps.js +57 -60
- package/es/Switch/Switch.js +75 -78
- package/es/TabBar/TabBar.js +3 -8
- package/es/Tabs/Tab.css +10 -16
- package/es/Tabs/Tab.js +2 -3
- package/es/Tabs/Tabs.css +13 -22
- package/es/Tabs/Tabs.js +41 -83
- package/es/Tabs/Tabs.types.d.ts +0 -10
- package/es/Tabs/utils/bound.d.ts +1 -0
- package/es/Tabs/utils/bound.js +13 -0
- package/es/Tag/Tag.css +1 -1
- package/es/Tag/Tag.js +2 -6
- package/es/TextArea/TextArea.js +5 -12
- package/es/Toast/FunctionalToast.js +2 -2
- package/es/Toast/Toast.css +1 -0
- package/es/Tooltip/Tooltip.css +5 -5
- package/es/Tooltip/Tooltip.js +29 -73
- package/es/Transition/TransitionCore.js +3 -8
- package/es/index.d.ts +0 -6
- package/es/index.js +0 -6
- package/es/locales/base.d.ts +0 -11
- package/es/locales/en-US.js +0 -24
- package/es/locales/zh-CN.js +0 -24
- package/es/locales/zh-TW.js +0 -24
- package/package.json +6 -6
- package/dist/Collapse/Collapse.miniapp.d.ts +0 -5
- package/dist/Collapse/Collapse.miniapp.js +0 -177
- package/dist/DatePicker/DatePicker.d.ts +0 -4
- package/dist/DatePicker/DatePicker.js +0 -335
- package/dist/DatePicker/DatePicker.types.d.ts +0 -43
- package/dist/DatePicker/DatePicker.types.js +0 -35
- package/dist/DatePicker/index.d.ts +0 -2
- package/dist/DatePicker/index.js +0 -41
- package/dist/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
- package/dist/DesktopDatePicker/DesktopDatePicker.js +0 -280
- package/dist/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -163
- package/dist/DesktopDatePicker/DesktopDatePicker.types.js +0 -15
- package/dist/DesktopDatePicker/deskTopPickerContainer.css +0 -100
- package/dist/DesktopDatePicker/index.css +0 -61
- package/dist/DesktopDatePicker/index.d.ts +0 -2
- package/dist/DesktopDatePicker/index.js +0 -41
- package/dist/DesktopDatePicker/useGetDatePickerContent.d.ts +0 -6
- package/dist/DesktopDatePicker/useGetDatePickerContent.js +0 -343
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -5
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -322
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -163
- package/dist/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -15
- package/dist/DesktopDateTimePicker/index.css +0 -66
- package/dist/DesktopDateTimePicker/index.d.ts +0 -2
- package/dist/DesktopDateTimePicker/index.js +0 -41
- package/dist/DesktopPicker/DesktopPicker.d.ts +0 -5
- package/dist/DesktopPicker/DesktopPicker.js +0 -238
- package/dist/DesktopPicker/DesktopPicker.types.d.ts +0 -57
- package/dist/DesktopPicker/DesktopPicker.types.js +0 -15
- package/dist/DesktopPicker/index.css +0 -37
- package/dist/DesktopPicker/index.d.ts +0 -2
- package/dist/DesktopPicker/index.js +0 -41
- package/dist/DesktopPicker/utils/calcAfterMounted.d.ts +0 -2
- package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +0 -2
- package/dist/DesktopPicker/utils/calcAfterMounted.miniapp.js +0 -38
- package/dist/DesktopTimePicker/DesktopTimePicker.d.ts +0 -5
- package/dist/DesktopTimePicker/DesktopTimePicker.js +0 -288
- package/dist/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -182
- package/dist/DesktopTimePicker/DesktopTimePicker.types.js +0 -15
- package/dist/DesktopTimePicker/DesktopTimePickerList.d.ts +0 -4
- package/dist/DesktopTimePicker/DesktopTimePickerList.js +0 -111
- package/dist/DesktopTimePicker/index.css +0 -170
- package/dist/DesktopTimePicker/index.d.ts +0 -2
- package/dist/DesktopTimePicker/index.js +0 -41
- package/dist/DesktopTimePicker/useGetTimePickerContent.d.ts +0 -6
- package/dist/DesktopTimePicker/useGetTimePickerContent.js +0 -246
- package/dist/DesktopTimePicker/utils/scrollUtil.d.ts +0 -2
- package/dist/DesktopTimePicker/utils/scrollUtil.js +0 -27
- package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +0 -2
- package/dist/DesktopTimePicker/utils/scrollUtil.miniapp.js +0 -51
- package/dist/DesktopTimePicker/utils/utils.d.ts +0 -28
- package/dist/DesktopTimePicker/utils/utils.js +0 -408
- package/dist/SwipeAction/SwipeAction.css +0 -79
- package/dist/SwipeAction/SwipeAction.d.ts +0 -5
- package/dist/SwipeAction/SwipeAction.js +0 -349
- package/dist/SwipeAction/SwipeAction.types.d.ts +0 -83
- package/dist/SwipeAction/SwipeAction.types.js +0 -39
- package/dist/SwipeAction/SwipeActionContext.d.ts +0 -4
- package/dist/SwipeAction/SwipeActionContext.js +0 -30
- package/dist/SwipeAction/SwipeActionItem.css +0 -31
- package/dist/SwipeAction/SwipeActionItem.d.ts +0 -5
- package/dist/SwipeAction/SwipeActionItem.js +0 -105
- package/dist/SwipeAction/index.d.ts +0 -4
- package/dist/SwipeAction/index.js +0 -45
- package/dist/Tabs/utils/scroll.d.ts +0 -2
- package/dist/Tabs/utils/scroll.js +0 -55
- package/es/Collapse/Collapse.miniapp.d.ts +0 -5
- package/es/Collapse/Collapse.miniapp.js +0 -157
- package/es/DatePicker/DatePicker.d.ts +0 -4
- package/es/DatePicker/DatePicker.js +0 -310
- package/es/DatePicker/DatePicker.types.d.ts +0 -43
- package/es/DatePicker/DatePicker.types.js +0 -1
- package/es/DatePicker/index.d.ts +0 -2
- package/es/DatePicker/index.js +0 -6
- package/es/DesktopDatePicker/DesktopDatePicker.d.ts +0 -5
- package/es/DesktopDatePicker/DesktopDatePicker.js +0 -253
- package/es/DesktopDatePicker/DesktopDatePicker.types.d.ts +0 -163
- package/es/DesktopDatePicker/DesktopDatePicker.types.js +0 -1
- package/es/DesktopDatePicker/deskTopPickerContainer.css +0 -100
- package/es/DesktopDatePicker/index.css +0 -61
- package/es/DesktopDatePicker/index.d.ts +0 -2
- package/es/DesktopDatePicker/index.js +0 -6
- package/es/DesktopDatePicker/useGetDatePickerContent.d.ts +0 -6
- package/es/DesktopDatePicker/useGetDatePickerContent.js +0 -316
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +0 -5
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.js +0 -295
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +0 -163
- package/es/DesktopDateTimePicker/DesktopDateTimePicker.types.js +0 -1
- package/es/DesktopDateTimePicker/index.css +0 -66
- package/es/DesktopDateTimePicker/index.d.ts +0 -2
- package/es/DesktopDateTimePicker/index.js +0 -9
- package/es/DesktopPicker/DesktopPicker.d.ts +0 -5
- package/es/DesktopPicker/DesktopPicker.js +0 -221
- package/es/DesktopPicker/DesktopPicker.types.d.ts +0 -57
- package/es/DesktopPicker/DesktopPicker.types.js +0 -1
- package/es/DesktopPicker/index.css +0 -37
- package/es/DesktopPicker/index.d.ts +0 -2
- package/es/DesktopPicker/index.js +0 -6
- package/es/DesktopPicker/utils/calcAfterMounted.d.ts +0 -2
- package/es/DesktopPicker/utils/calcAfterMounted.js +0 -6
- package/es/DesktopPicker/utils/calcAfterMounted.miniapp.d.ts +0 -2
- package/es/DesktopPicker/utils/calcAfterMounted.miniapp.js +0 -9
- package/es/DesktopTimePicker/DesktopTimePicker.d.ts +0 -5
- package/es/DesktopTimePicker/DesktopTimePicker.js +0 -261
- package/es/DesktopTimePicker/DesktopTimePicker.types.d.ts +0 -182
- package/es/DesktopTimePicker/DesktopTimePicker.types.js +0 -1
- package/es/DesktopTimePicker/DesktopTimePickerList.d.ts +0 -4
- package/es/DesktopTimePicker/DesktopTimePickerList.js +0 -84
- package/es/DesktopTimePicker/index.css +0 -170
- package/es/DesktopTimePicker/index.d.ts +0 -2
- package/es/DesktopTimePicker/index.js +0 -6
- package/es/DesktopTimePicker/useGetTimePickerContent.d.ts +0 -6
- package/es/DesktopTimePicker/useGetTimePickerContent.js +0 -223
- package/es/DesktopTimePicker/utils/scrollUtil.d.ts +0 -2
- package/es/DesktopTimePicker/utils/scrollUtil.js +0 -8
- package/es/DesktopTimePicker/utils/scrollUtil.miniapp.d.ts +0 -2
- package/es/DesktopTimePicker/utils/scrollUtil.miniapp.js +0 -22
- package/es/DesktopTimePicker/utils/utils.d.ts +0 -28
- package/es/DesktopTimePicker/utils/utils.js +0 -365
- package/es/SwipeAction/SwipeAction.css +0 -79
- package/es/SwipeAction/SwipeAction.d.ts +0 -5
- package/es/SwipeAction/SwipeAction.js +0 -337
- package/es/SwipeAction/SwipeAction.types.d.ts +0 -83
- package/es/SwipeAction/SwipeAction.types.js +0 -1
- package/es/SwipeAction/SwipeActionContext.d.ts +0 -4
- package/es/SwipeAction/SwipeActionContext.js +0 -11
- package/es/SwipeAction/SwipeActionItem.css +0 -31
- package/es/SwipeAction/SwipeActionItem.d.ts +0 -5
- package/es/SwipeAction/SwipeActionItem.js +0 -78
- package/es/SwipeAction/index.d.ts +0 -4
- package/es/SwipeAction/index.js +0 -9
- package/es/Tabs/utils/scroll.d.ts +0 -2
- package/es/Tabs/utils/scroll.js +0 -36
package/es/Button/Button.css
CHANGED
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
.bui-btn {
|
|
2
|
-
--border-radius: var(--bui-button-border-radius, 100px);
|
|
3
|
-
--text-color: var(--bui-button-text-color, var(--bui-color-fg-muted));
|
|
4
|
-
--bg-color: var(--bui-button-default-bg-color, var(--bui-color-neutral-5));
|
|
5
|
-
--border-color: var(--bui-button-border-color, var(--bui-color-neutral-4));
|
|
6
|
-
--height: var(--bui-button-height, 27px);
|
|
7
|
-
--icon-start-margin-right: var(--bui-button-icon-start-margin-right, var(--bui-spacing-xs));
|
|
8
|
-
--icon-start-margin-left: var(--bui-button-icon-start-margin-left, var(--bui-spacing-xs));
|
|
9
|
-
--default-border: var(--bui-button-default-border, 1px solid transparent);
|
|
10
|
-
--light-border: var(--bui-button-light-border, 1px solid transparent);
|
|
11
|
-
--outlined-default-border: var(--bui-button-outlined-default-border, 1px solid var(--bui-color-neutral-4));
|
|
12
|
-
--disabled-opacity: var(--bui-button-disabled-opacity, 0.5);
|
|
13
|
-
--small-padding: var(--bui-button-small-padding, 0 11px);
|
|
14
|
-
--small-height: var(--bui-button-small-height, 24px);
|
|
15
|
-
--medium-padding: var(--bui-button-medium-padding, 0 14px);
|
|
16
|
-
--large-padding: var(--bui-button-large-padding, 0 14px);
|
|
17
|
-
--large-height: var(--bui-button-large-height, 33px);
|
|
18
|
-
--full-font-size: var(--bui-button-full-font-size, var(--bui-title-size-4));
|
|
19
|
-
--full-height: var(--bui-button-full-height, 42px);
|
|
20
|
-
border: var(--default-border);
|
|
21
2
|
outline: 0;
|
|
22
|
-
background-color: transparent;
|
|
23
3
|
cursor: pointer;
|
|
24
|
-
color: var(--text-color);
|
|
25
4
|
box-sizing: border-box;
|
|
26
5
|
position: relative;
|
|
27
6
|
display: inline-flex;
|
|
@@ -29,12 +8,17 @@
|
|
|
29
8
|
align-items: center;
|
|
30
9
|
justify-content: center;
|
|
31
10
|
white-space: nowrap;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
11
|
+
color: var(--bui-btn-color);
|
|
12
|
+
background: var(--bui-btn-bg);
|
|
13
|
+
font-size: var(--bui-btn-font-size);
|
|
14
|
+
font-weight: var(--bui-btn-font-weight);
|
|
15
|
+
border: var(--bui-btn-border);
|
|
16
|
+
border-radius: var(--bui-btn-border-radius);
|
|
17
|
+
height: var(--bui-btn-height);
|
|
18
|
+
padding: var(--bui-btn-padding);
|
|
36
19
|
line-height: var(--bui-line-height);
|
|
37
|
-
font-family: var(--bui-font-family);
|
|
20
|
+
font-family: var(--bui-btn-font-family);
|
|
21
|
+
opacity: var(--bui-btn-opacity);
|
|
38
22
|
}
|
|
39
23
|
@keyframes spin {
|
|
40
24
|
from {
|
|
@@ -68,57 +52,61 @@
|
|
|
68
52
|
display: inline-flex;
|
|
69
53
|
align-self: center;
|
|
70
54
|
flex-shrink: 0;
|
|
71
|
-
margin-right: var(--
|
|
55
|
+
margin-right: var(--bui-spacing-xs);
|
|
72
56
|
}
|
|
73
57
|
.bui-btn-icon-end {
|
|
74
58
|
display: inline-flex;
|
|
75
59
|
align-self: center;
|
|
76
60
|
flex-shrink: 0;
|
|
77
|
-
margin-left: var(--
|
|
61
|
+
margin-left: var(--bui-spacing-xs);
|
|
78
62
|
}
|
|
79
63
|
.bui-btn-disabled {
|
|
80
64
|
pointer-events: none;
|
|
81
|
-
opacity:
|
|
65
|
+
--bui-btn-opacity: 0.5;
|
|
82
66
|
}
|
|
83
67
|
.bui-btn-small {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
.bui-btn-medium {
|
|
89
|
-
padding: var(--medium-padding);
|
|
90
|
-
height: var(--height);
|
|
68
|
+
--bui-btn-height: 24px;
|
|
69
|
+
--bui-btn-font-size: var(--bui-text-size-4);
|
|
70
|
+
--bui-btn-padding: 0 11px;
|
|
91
71
|
}
|
|
92
72
|
.bui-btn-large {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
height: var(--large-height);
|
|
73
|
+
--bui-btn-height: 33px;
|
|
74
|
+
--bui-btn-font-size: var(--bui-text-size-2);
|
|
96
75
|
}
|
|
97
76
|
.bui-btn-full {
|
|
98
|
-
|
|
77
|
+
--bui-btn-height: 42px;
|
|
78
|
+
--bui-btn-font-size: var(--bui-title-size-4);
|
|
99
79
|
width: 100%;
|
|
100
|
-
|
|
80
|
+
}
|
|
81
|
+
.bui-btn-text {
|
|
82
|
+
--bui-btn-bg: none;
|
|
101
83
|
}
|
|
102
84
|
.bui-btn-text.bui-btn-primary {
|
|
103
|
-
color: var(--bui-color-primary);
|
|
85
|
+
--bui-btn-color: var(--bui-color-primary);
|
|
104
86
|
}
|
|
105
87
|
.bui-btn-text.bui-btn-success {
|
|
106
|
-
color: var(--bui-color-success);
|
|
88
|
+
--bui-btn-color: var(--bui-color-success);
|
|
107
89
|
}
|
|
108
90
|
.bui-btn-text.bui-btn-info {
|
|
109
|
-
color: var(--bui-color-info);
|
|
91
|
+
--bui-btn-color: var(--bui-color-info);
|
|
110
92
|
}
|
|
111
93
|
.bui-btn-text.bui-btn-warning {
|
|
112
|
-
color: var(--bui-color-warning);
|
|
94
|
+
--bui-btn-color: var(--bui-color-warning);
|
|
113
95
|
}
|
|
114
96
|
.bui-btn-text.bui-btn-danger {
|
|
115
|
-
color: var(--bui-color-danger);
|
|
97
|
+
--bui-btn-color: var(--bui-color-danger);
|
|
98
|
+
}
|
|
99
|
+
.bui-btn-text.bui-btn-light {
|
|
100
|
+
--bui-btn-color: var(--bui-color-bg-view);
|
|
101
|
+
}
|
|
102
|
+
.bui-btn-text.bui-btn-dark {
|
|
103
|
+
--bui-btn-color: var(--bui-color-fg-default);
|
|
116
104
|
}
|
|
117
105
|
.bui-btn-text.bui-btn-vip {
|
|
118
|
-
color: var(--bui-color-vip);
|
|
106
|
+
--bui-btn-color: var(--bui-color-vip);
|
|
119
107
|
}
|
|
120
108
|
.bui-btn-contained {
|
|
121
|
-
|
|
109
|
+
--bui-btn-bg: var(--bui-color-neutral-5);
|
|
122
110
|
}
|
|
123
111
|
.bui-btn-contained.bui-btn-primary {
|
|
124
112
|
color: var(--bui-color-white);
|
|
@@ -160,16 +148,25 @@
|
|
|
160
148
|
var(--bui-color-danger-start) 0%,
|
|
161
149
|
var(--bui-color-danger-end) 100%);
|
|
162
150
|
}
|
|
151
|
+
.bui-btn-contained.bui-btn-light {
|
|
152
|
+
--bui-btn-color: var(--bui-color-fg-default);
|
|
153
|
+
--bui-btn-bg: var(--bui-color-bg-view);
|
|
154
|
+
}
|
|
155
|
+
.bui-btn-contained.bui-btn-dark {
|
|
156
|
+
--bui-btn-color: var(--bui-color-bg-view);
|
|
157
|
+
--bui-btn-bg: var(--bui-color-fg-default);
|
|
158
|
+
}
|
|
163
159
|
.bui-btn-contained.bui-btn-vip {
|
|
164
|
-
color: #582331;
|
|
165
|
-
|
|
160
|
+
--bui-btn-color: #582331;
|
|
161
|
+
--bui-btn-bg:
|
|
166
162
|
linear-gradient(
|
|
167
163
|
90deg,
|
|
168
164
|
var(--bui-color-vip-start) 3%,
|
|
169
165
|
var(--bui-color-vip-end) 100%);
|
|
170
166
|
}
|
|
171
167
|
.bui-btn-outlined {
|
|
172
|
-
|
|
168
|
+
--bui-btn-bg: transparent;
|
|
169
|
+
--bui-btn-border: 1px solid var(--bui-color-neutral-4);
|
|
173
170
|
}
|
|
174
171
|
.bui-btn-outlined.bui-btn-primary {
|
|
175
172
|
color: var(--bui-color-primary);
|
|
@@ -191,47 +188,49 @@
|
|
|
191
188
|
color: var(--bui-color-danger);
|
|
192
189
|
border-color: var(--bui-color-danger);
|
|
193
190
|
}
|
|
191
|
+
.bui-btn-outlined.bui-btn-light {
|
|
192
|
+
--bui-btn-color: var(--bui-color-bg-view);
|
|
193
|
+
--bui-btn-border: solid 1px var(--bui-color-bg-view);
|
|
194
|
+
}
|
|
195
|
+
.bui-btn-outlined.bui-btn-dark {
|
|
196
|
+
--bui-btn-color: var(--bui-color-fg-default);
|
|
197
|
+
--bui-btn-border: solid 1px var(--bui-color-fg-default);
|
|
198
|
+
}
|
|
194
199
|
.bui-btn-outlined.bui-btn-vip {
|
|
195
200
|
color: var(--bui-color-vip);
|
|
196
201
|
border-color: var(--bui-color-vip);
|
|
197
202
|
}
|
|
198
|
-
.bui-btn-
|
|
199
|
-
|
|
200
|
-
background-color: var(--bui-color-gray-light);
|
|
201
|
-
border: var(--light-border);
|
|
203
|
+
.bui-btn-subtle {
|
|
204
|
+
--bui-btn-bg: var(--bui-color-gray-light);
|
|
202
205
|
}
|
|
203
|
-
.bui-btn-
|
|
204
|
-
background-image: none;
|
|
205
|
-
border: var(--light-border);
|
|
206
|
+
.bui-btn-subtle.bui-btn-warning {
|
|
206
207
|
color: var(--bui-color-warning);
|
|
207
|
-
background
|
|
208
|
+
background: var(--bui-color-warning-light);
|
|
208
209
|
}
|
|
209
|
-
.bui-btn-
|
|
210
|
-
background-image: none;
|
|
211
|
-
border: var(--light-border);
|
|
210
|
+
.bui-btn-subtle.bui-btn-primary {
|
|
212
211
|
color: var(--bui-color-primary);
|
|
213
|
-
background
|
|
212
|
+
background: var(--bui-color-primary-light);
|
|
214
213
|
}
|
|
215
|
-
.bui-btn-
|
|
216
|
-
background-image: none;
|
|
217
|
-
border: var(--light-border);
|
|
214
|
+
.bui-btn-subtle.bui-btn-info {
|
|
218
215
|
color: var(--bui-color-info);
|
|
219
|
-
background
|
|
216
|
+
background: var(--bui-color-info-light);
|
|
220
217
|
}
|
|
221
|
-
.bui-btn-
|
|
222
|
-
background-image: none;
|
|
223
|
-
border: var(--light-border);
|
|
218
|
+
.bui-btn-subtle.bui-btn-success {
|
|
224
219
|
color: var(--bui-color-success);
|
|
225
|
-
background
|
|
220
|
+
background: var(--bui-color-success-light);
|
|
226
221
|
}
|
|
227
|
-
.bui-btn-
|
|
228
|
-
background-image: none;
|
|
229
|
-
border: var(--light-border);
|
|
222
|
+
.bui-btn-subtle.bui-btn-danger {
|
|
230
223
|
color: var(--bui-color-danger);
|
|
231
|
-
background
|
|
224
|
+
background: var(--bui-color-danger-light);
|
|
232
225
|
}
|
|
233
|
-
.bui-btn-
|
|
234
|
-
color: var(--bui-color-
|
|
226
|
+
.bui-btn-subtle.bui-btn-light {
|
|
227
|
+
--bui-btn-color: var(--bui-color-bg-view);
|
|
228
|
+
}
|
|
229
|
+
.bui-btn-subtle.bui-btn-dark {
|
|
230
|
+
--bui-btn-color: var(--bui-color-fg-default);
|
|
231
|
+
}
|
|
232
|
+
.bui-btn-subtle.bui-btn-vip {
|
|
235
233
|
position: relative;
|
|
236
|
-
|
|
234
|
+
--bui-btn-color: var(--bui-color-vip);
|
|
235
|
+
--bui-btn-bg: rgba(255, 134, 110, 0.3);
|
|
237
236
|
}
|
package/es/Button/Button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './Button.less';
|
|
3
2
|
import { ButtonProps } from './Button.types';
|
|
3
|
+
import './Button.less';
|
|
4
4
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps<"button", {}>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export default Button;
|
package/es/Button/Button.js
CHANGED
|
@@ -40,10 +40,10 @@ const Button = /* @__PURE__ */ React.forwardRef(
|
|
|
40
40
|
children,
|
|
41
41
|
startIcon,
|
|
42
42
|
endIcon,
|
|
43
|
-
size,
|
|
44
|
-
variant,
|
|
43
|
+
size = "medium",
|
|
44
|
+
variant = "outlined",
|
|
45
45
|
color,
|
|
46
|
-
disabled
|
|
46
|
+
disabled = false
|
|
47
47
|
} = _a, others = __objRest(_a, [
|
|
48
48
|
"className",
|
|
49
49
|
"children",
|
|
@@ -77,12 +77,6 @@ const Button = /* @__PURE__ */ React.forwardRef(
|
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
Button.displayName = "BuiButton";
|
|
80
|
-
Button.defaultProps = {
|
|
81
|
-
size: "medium",
|
|
82
|
-
variant: "outlined",
|
|
83
|
-
color: "default",
|
|
84
|
-
disabled: false
|
|
85
|
-
};
|
|
86
80
|
var Button_default = Button;
|
|
87
81
|
export {
|
|
88
82
|
Button_default as default
|
|
@@ -16,19 +16,20 @@ export type ButtonProps<D extends React.ElementType = 'button', P = {}> = Overri
|
|
|
16
16
|
* @default 'medium'
|
|
17
17
|
*/
|
|
18
18
|
size?: 'small' | 'medium' | 'large' | 'full';
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
19
|
+
/**
|
|
20
|
+
* 按钮颜色
|
|
21
|
+
* @default 'neutral'
|
|
21
22
|
*/
|
|
22
|
-
color?: ThemeColor | '
|
|
23
|
+
color?: ThemeColor | 'vip';
|
|
23
24
|
/**
|
|
24
25
|
* 按钮类型
|
|
25
26
|
* - text: 文字按钮
|
|
26
|
-
* - outlined:
|
|
27
|
-
* - contained:
|
|
28
|
-
* -
|
|
27
|
+
* - outlined: 线框按钮
|
|
28
|
+
* - contained: 填充按钮
|
|
29
|
+
* - subtle: 柔和按钮
|
|
29
30
|
* @default 'outlined'
|
|
30
31
|
*/
|
|
31
|
-
variant?: 'outlined' | 'text' | 'contained' | '
|
|
32
|
+
variant?: 'outlined' | 'text' | 'contained' | 'subtle';
|
|
32
33
|
/**
|
|
33
34
|
* 在子元素前放在的内容
|
|
34
35
|
*/
|
package/es/Calendar/Calendar.js
CHANGED
|
@@ -34,13 +34,11 @@ import { useDidMountEffect, useValue } from "@bifrostui/utils";
|
|
|
34
34
|
import clsx from "clsx";
|
|
35
35
|
import dayjs from "dayjs";
|
|
36
36
|
import isoWeek from "dayjs/plugin/isoWeek";
|
|
37
|
-
import customParseFormat from "dayjs/plugin/customParseFormat";
|
|
38
37
|
import React, { useMemo, useState } from "react";
|
|
39
38
|
import { formatDate, isRange, isSame } from "./utils";
|
|
40
39
|
import { useLocaleText } from "../locales";
|
|
41
40
|
import "./Calendar.css";
|
|
42
41
|
dayjs.extend(isoWeek);
|
|
43
|
-
dayjs.extend(customParseFormat);
|
|
44
42
|
const classes = {
|
|
45
43
|
root: "bui-calendar",
|
|
46
44
|
handler: "bui-calendar-handler",
|
|
@@ -54,16 +52,15 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
|
|
|
54
52
|
className,
|
|
55
53
|
defaultValue,
|
|
56
54
|
value,
|
|
57
|
-
minDate,
|
|
58
|
-
maxDate,
|
|
59
|
-
mode,
|
|
60
|
-
hideDaysOutsideCurrentMonth,
|
|
61
|
-
headerBarFormat,
|
|
55
|
+
minDate = dayjs(dayjs().format("YYYYMMDD")).add(0, "month").toDate(),
|
|
56
|
+
maxDate = dayjs(dayjs().format("YYYYMMDD")).add(11, "month").toDate(),
|
|
57
|
+
mode = "single",
|
|
58
|
+
hideDaysOutsideCurrentMonth = false,
|
|
59
|
+
headerBarFormat = "YYYY/MM",
|
|
62
60
|
headerBarLeftIcon,
|
|
63
61
|
headerBarRightIcon,
|
|
64
62
|
disabledDate,
|
|
65
|
-
highlightDate,
|
|
66
|
-
headerVisible = false,
|
|
63
|
+
highlightDate = "today",
|
|
67
64
|
dateRender,
|
|
68
65
|
weekRender,
|
|
69
66
|
onMonthChange,
|
|
@@ -81,7 +78,6 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
|
|
|
81
78
|
"headerBarRightIcon",
|
|
82
79
|
"disabledDate",
|
|
83
80
|
"highlightDate",
|
|
84
|
-
"headerVisible",
|
|
85
81
|
"dateRender",
|
|
86
82
|
"weekRender",
|
|
87
83
|
"onMonthChange",
|
|
@@ -296,7 +292,7 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
|
|
|
296
292
|
}, others), {
|
|
297
293
|
"data-mode": mode
|
|
298
294
|
}), data),
|
|
299
|
-
|
|
295
|
+
/* @__PURE__ */ React.createElement("div", { className: classes.handler }, /* @__PURE__ */ React.createElement("div", { onClick: onClickPrev, className: `${classes.handler}-btn` }, headerBarIcon.left), /* @__PURE__ */ React.createElement("div", { className: `${classes.handler}-text` }, dayjs(renderMonth).format(headerBarFormat)), /* @__PURE__ */ React.createElement("div", { onClick: onClickNext, className: `${classes.handler}-btn` }, headerBarIcon.right)),
|
|
300
296
|
/* @__PURE__ */ React.createElement("div", { className: classes.week }, SUNDAY_WEEK_DATA == null ? void 0 : SUNDAY_WEEK_DATA.map((w) => {
|
|
301
297
|
return weekRender ? weekRender(w) : /* @__PURE__ */ React.createElement("div", { key: w, className: `${classes.week}-item` }, w);
|
|
302
298
|
})),
|
|
@@ -305,14 +301,6 @@ const Calendar = /* @__PURE__ */ React.forwardRef(
|
|
|
305
301
|
}
|
|
306
302
|
);
|
|
307
303
|
Calendar.displayName = "BuiCalendar";
|
|
308
|
-
Calendar.defaultProps = {
|
|
309
|
-
hideDaysOutsideCurrentMonth: false,
|
|
310
|
-
headerBarFormat: "YYYY/MM",
|
|
311
|
-
mode: "single",
|
|
312
|
-
minDate: dayjs(dayjs().format("YYYYMMDD")).add(0, "month").toDate(),
|
|
313
|
-
maxDate: dayjs(dayjs().format("YYYYMMDD")).add(11, "month").toDate(),
|
|
314
|
-
highlightDate: "today"
|
|
315
|
-
};
|
|
316
304
|
var Calendar_default = Calendar;
|
|
317
305
|
export {
|
|
318
306
|
Calendar_default as default
|
package/es/Card/Card.css
CHANGED
package/es/Card/CardContent.css
CHANGED
package/es/Card/CardFooter.css
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
.bui-card-footer {
|
|
2
|
-
--padding: var(--bui-card-footer-padding, var(--bui-spacing-md) var(--bui-spacing-lg));
|
|
3
2
|
color: var(--bui-color-fg-muted);
|
|
4
|
-
font-size: var(--bui-text-size-1);
|
|
5
3
|
display: flex;
|
|
6
4
|
align-items: center;
|
|
7
|
-
padding: var(--
|
|
8
|
-
font-
|
|
5
|
+
padding: var(--bui-spacing-md) var(--bui-spacing-lg);
|
|
6
|
+
font-size: var(--bui-card-font-size);
|
|
9
7
|
}
|
package/es/Card/CardHeader.css
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
.bui-card-header {
|
|
2
|
-
--
|
|
3
|
-
--end-icon-margin-left: var(--bui-card-header-end-icon-margin-left, 2px);
|
|
2
|
+
--bui-card-font-size: var(--bui-title-size-4);
|
|
4
3
|
display: flex;
|
|
5
4
|
align-items: center;
|
|
6
5
|
flex-direction: row;
|
|
7
6
|
position: relative;
|
|
8
7
|
padding: var(--bui-spacing-md) var(--bui-spacing-lg);
|
|
9
|
-
font-
|
|
10
|
-
font-
|
|
8
|
+
font-weight: var(--bui-font-weight-bold);
|
|
9
|
+
font-family: var(--bui-card-font-family);
|
|
11
10
|
color: var(--bui-color-fg-default);
|
|
12
|
-
font-family: var(--bui-font-family);
|
|
13
11
|
}
|
|
14
12
|
.bui-card-header-title {
|
|
15
13
|
white-space: nowrap;
|
|
@@ -17,6 +15,7 @@
|
|
|
17
15
|
text-overflow: ellipsis;
|
|
18
16
|
max-width: 100%;
|
|
19
17
|
flex-shrink: 0;
|
|
18
|
+
font-family: var(--bui-font-family-accent, inherit);
|
|
20
19
|
}
|
|
21
20
|
.bui-card-header-subtitle {
|
|
22
21
|
font-size: var(--bui-text-size-3);
|
package/es/Checkbox/Checkbox.js
CHANGED
|
@@ -40,7 +40,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
40
40
|
var _b, _c;
|
|
41
41
|
const _a = props, {
|
|
42
42
|
className,
|
|
43
|
-
defaultChecked,
|
|
43
|
+
defaultChecked = false,
|
|
44
44
|
checked,
|
|
45
45
|
inputProps,
|
|
46
46
|
inputRef,
|
|
@@ -49,7 +49,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
49
49
|
disabled,
|
|
50
50
|
icon,
|
|
51
51
|
checkedIcon,
|
|
52
|
-
labelPlacement,
|
|
52
|
+
labelPlacement = "right",
|
|
53
53
|
onChange,
|
|
54
54
|
children
|
|
55
55
|
} = _a, others = __objRest(_a, [
|
|
@@ -131,10 +131,6 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
131
131
|
);
|
|
132
132
|
});
|
|
133
133
|
Checkbox.displayName = "BuiCheckbox";
|
|
134
|
-
Checkbox.defaultProps = {
|
|
135
|
-
defaultChecked: false,
|
|
136
|
-
labelPlacement: "right"
|
|
137
|
-
};
|
|
138
134
|
var Checkbox_default = Checkbox;
|
|
139
135
|
export {
|
|
140
136
|
Checkbox_default as default
|
|
@@ -33,15 +33,15 @@ import { CheckboxContextProvider } from "./CheckboxContext";
|
|
|
33
33
|
import "./Checkbox.css";
|
|
34
34
|
const prefixCls = "bui-checkbox-group";
|
|
35
35
|
const CheckboxGroup = forwardRef(
|
|
36
|
-
(
|
|
37
|
-
|
|
36
|
+
(_a, ref) => {
|
|
37
|
+
var _b = _a, {
|
|
38
38
|
className,
|
|
39
39
|
children,
|
|
40
40
|
defaultValue,
|
|
41
41
|
value,
|
|
42
|
-
disabled,
|
|
42
|
+
disabled = false,
|
|
43
43
|
onChange
|
|
44
|
-
} =
|
|
44
|
+
} = _b, others = __objRest(_b, [
|
|
45
45
|
"className",
|
|
46
46
|
"children",
|
|
47
47
|
"defaultValue",
|
|
@@ -78,9 +78,6 @@ const CheckboxGroup = forwardRef(
|
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
80
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
81
|
-
CheckboxGroup.defaultProps = {
|
|
82
|
-
disabled: false
|
|
83
|
-
};
|
|
84
81
|
var CheckboxGroup_default = CheckboxGroup;
|
|
85
82
|
export {
|
|
86
83
|
CheckboxGroup_default as default
|
package/es/Collapse/Collapse.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CollapseProps } from './Collapse.types';
|
|
3
3
|
import './Collapse.less';
|
|
4
|
-
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<
|
|
4
|
+
declare const Collapse: React.ForwardRefExoticComponent<CollapseProps & React.RefAttributes<unknown>>;
|
|
5
5
|
export default Collapse;
|
package/es/Collapse/Collapse.js
CHANGED
|
@@ -37,14 +37,12 @@ import {
|
|
|
37
37
|
getTransitionProps,
|
|
38
38
|
createTransitions
|
|
39
39
|
} from "@bifrostui/utils";
|
|
40
|
-
import clsx from "clsx";
|
|
41
40
|
import { Transition } from "../Transition";
|
|
42
41
|
import "./Collapse.css";
|
|
43
42
|
const defaultEasing = {
|
|
44
43
|
enter: easing.easeOut,
|
|
45
44
|
exit: easing.sharp
|
|
46
45
|
};
|
|
47
|
-
const FIT_CONTENT = "fit-content";
|
|
48
46
|
const defaultTimeout = {
|
|
49
47
|
enter: duration.enteringScreen,
|
|
50
48
|
exit: duration.leavingScreen
|
|
@@ -73,6 +71,7 @@ const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
73
71
|
"className",
|
|
74
72
|
"children"
|
|
75
73
|
]);
|
|
74
|
+
const nodeRef = useForkRef(ref);
|
|
76
75
|
const wrapperRef = useRef(null);
|
|
77
76
|
const collapseRef = useForkRef(wrapperRef, ref);
|
|
78
77
|
const transitions = createTransitions();
|
|
@@ -80,11 +79,11 @@ const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
80
79
|
const collapsedSize = typeof collapsedSizeProp === "number" ? `${collapsedSizeProp}px` : collapsedSizeProp;
|
|
81
80
|
const size = isHorizontal ? "width" : "height";
|
|
82
81
|
const getCollapseWrapperSize = (reactNode) => {
|
|
83
|
-
return reactNode ? `${reactNode[isHorizontal ? "clientWidth" : "clientHeight"]}px` :
|
|
82
|
+
return reactNode ? `${reactNode[isHorizontal ? "clientWidth" : "clientHeight"]}px` : "fit-content";
|
|
84
83
|
};
|
|
85
84
|
useEffect(() => {
|
|
86
85
|
var _a2, _b, _c, _d;
|
|
87
|
-
if (appear === false && inProp === true && ((_b = (_a2 = wrapperRef.current) == null ? void 0 : _a2.style) == null ? void 0 : _b[size]) ===
|
|
86
|
+
if (appear === false && inProp === true && ((_b = (_a2 = wrapperRef.current) == null ? void 0 : _a2.style) == null ? void 0 : _b[size]) === "fit-content") {
|
|
88
87
|
wrapperRef.current.style[size] = getCollapseWrapperSize(
|
|
89
88
|
(_d = (_c = wrapperRef.current) == null ? void 0 : _c.children) == null ? void 0 : _d[0]
|
|
90
89
|
);
|
|
@@ -95,6 +94,7 @@ const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
95
94
|
return /* @__PURE__ */ React.createElement(
|
|
96
95
|
Transition,
|
|
97
96
|
__spreadProps(__spreadValues({}, other), {
|
|
97
|
+
ref: nodeRef,
|
|
98
98
|
in: inProp,
|
|
99
99
|
timeout,
|
|
100
100
|
delay,
|
|
@@ -122,17 +122,14 @@ const Collapse = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
122
122
|
};
|
|
123
123
|
return React.createElement(
|
|
124
124
|
"div",
|
|
125
|
-
|
|
126
|
-
className:
|
|
127
|
-
className
|
|
128
|
-
}),
|
|
125
|
+
{
|
|
126
|
+
className: `bui-collapse ${className}`,
|
|
129
127
|
style: __spreadValues(__spreadProps(__spreadValues({}, style), {
|
|
130
128
|
transition,
|
|
131
129
|
WebkitTransition: transition
|
|
132
|
-
}), wrapperSize())
|
|
133
|
-
}, childProps), {
|
|
130
|
+
}), wrapperSize()),
|
|
134
131
|
ref: collapseRef
|
|
135
|
-
}
|
|
132
|
+
},
|
|
136
133
|
React.cloneElement(children, __spreadValues({
|
|
137
134
|
style: __spreadValues({}, (_a2 = children.props) == null ? void 0 : _a2.style)
|
|
138
135
|
}, childProps))
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
--width: var(--bui-collapse-panel-width, 100%);
|
|
3
3
|
--header-padding: var(--bui-collapse-panel-header-padding, var(--bui-spacing-lg) 0);
|
|
4
4
|
--content-padding: var(--bui-collapse-panel-content-padding, var(--bui-spacing-lg) 0);
|
|
5
|
-
--title-font-size: var(--bui-collapse-panel-title-font-size, var(--bui-title-size-3));
|
|
6
|
-
--content-font-size: var(--bui-collapse-panel-content-font-size, var(--bui-text-size-1));
|
|
7
5
|
width: var(--width);
|
|
8
6
|
background-color: var(--bui-color-bg-view);
|
|
9
7
|
color: var(--bui-color-fg-default);
|
|
@@ -17,7 +15,7 @@
|
|
|
17
15
|
}
|
|
18
16
|
.bui-collapse-panel-item-header-label {
|
|
19
17
|
padding: var(--header-padding);
|
|
20
|
-
font-size: var(--title-
|
|
18
|
+
font-size: var(--bui-title-size-2);
|
|
21
19
|
}
|
|
22
20
|
.bui-collapse-panel-item-header-icon-arrow {
|
|
23
21
|
transform: rotate(0deg);
|
|
@@ -28,7 +26,7 @@
|
|
|
28
26
|
}
|
|
29
27
|
.bui-collapse-panel-item-content {
|
|
30
28
|
padding: var(--content-padding);
|
|
31
|
-
font-size: var(--
|
|
29
|
+
font-size: var(--bui-text-size-1);
|
|
32
30
|
transition: height 0.5s ease;
|
|
33
31
|
overflow: hidden;
|
|
34
32
|
}
|