@bifrostui/react 1.3.1-beta.0 → 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 -60
- 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 -90
- 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 -177
- package/dist/Tooltip/Tooltip.types.d.ts +0 -51
- 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 -159
- package/es/Popover/Popover.types.d.ts +0 -60
- 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 -61
- 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 -150
- package/es/Tooltip/Tooltip.types.d.ts +0 -51
- 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
|
@@ -1,7 +1,4 @@
|
|
|
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));
|
|
5
2
|
font-family: var(--bui-font-family);
|
|
6
3
|
}
|
|
7
4
|
.bui-action-sheet-content {
|
|
@@ -20,11 +17,11 @@
|
|
|
20
17
|
}
|
|
21
18
|
.bui-action-sheet-extra {
|
|
22
19
|
font-size: var(--bui-text-size-1);
|
|
23
|
-
line-height:
|
|
24
|
-
padding: var(--
|
|
20
|
+
line-height: 23px;
|
|
21
|
+
padding: var(--bui-spacing-xl);
|
|
25
22
|
color: var(--bui-color-fg-muted);
|
|
26
23
|
background: var(--bui-color-bg-view);
|
|
27
24
|
text-align: center;
|
|
28
25
|
border-bottom: 1px solid var(--bui-color-border-default);
|
|
29
|
-
margin: var(--
|
|
26
|
+
margin: 0 var(--bui-spacing-xl);
|
|
30
27
|
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
.bui-action-sheet-item {
|
|
2
|
-
--
|
|
3
|
-
--
|
|
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);
|
|
2
|
+
--font-size: var(--bui-title-size-2);
|
|
3
|
+
--color: var(--bui-color-fg-default);
|
|
8
4
|
font-family: var(--bui-font-family);
|
|
9
5
|
position: relative;
|
|
10
|
-
padding: var(--
|
|
6
|
+
padding: var(--bui-spacing-xl);
|
|
11
7
|
cursor: pointer;
|
|
12
8
|
background: var(--bui-color-bg-view);
|
|
13
9
|
font-size: var(--font-size);
|
|
14
10
|
text-align: center;
|
|
15
|
-
line-height:
|
|
11
|
+
line-height: 24px;
|
|
16
12
|
color: var(--color);
|
|
17
13
|
border-top: 1px solid var(--bui-color-border-default);
|
|
18
|
-
margin: var(--
|
|
14
|
+
margin: 0 var(--bui-spacing-xl);
|
|
19
15
|
}
|
|
20
16
|
.bui-action-sheet-item:first-child {
|
|
21
17
|
border-top: none;
|
|
@@ -50,6 +46,6 @@
|
|
|
50
46
|
}
|
|
51
47
|
.bui-action-sheet-item-description {
|
|
52
48
|
font-size: var(--bui-text-size-2);
|
|
53
|
-
line-height:
|
|
49
|
+
line-height: 19px;
|
|
54
50
|
color: var(--bui-color-fg-subtle);
|
|
55
51
|
}
|
package/dist/Alert/index.css
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
.bui-alert {
|
|
2
|
-
--
|
|
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));
|
|
2
|
+
--bui-alert-marquee-speed: var(--bui-alert-marquee-seed, 10s);
|
|
9
3
|
display: flex;
|
|
10
|
-
padding:
|
|
4
|
+
padding: 8px;
|
|
11
5
|
border-radius: var(--bui-shape-radius-default);
|
|
12
6
|
align-items: center;
|
|
13
|
-
line-height:
|
|
7
|
+
line-height: 16px;
|
|
14
8
|
font-size: var(--bui-text-size-3);
|
|
15
9
|
font-family: var(--bui-font-family);
|
|
16
10
|
}
|
|
@@ -55,14 +49,14 @@
|
|
|
55
49
|
color: var(--bui-color-warning);
|
|
56
50
|
}
|
|
57
51
|
.bui-alert-default-icon {
|
|
58
|
-
font-size:
|
|
52
|
+
font-size: 15px;
|
|
59
53
|
}
|
|
60
54
|
.bui-alert-content {
|
|
61
55
|
flex-grow: 1;
|
|
62
56
|
}
|
|
63
57
|
.bui-alert-action {
|
|
64
58
|
flex-shrink: 0;
|
|
65
|
-
margin-left:
|
|
59
|
+
margin-left: 16px;
|
|
66
60
|
word-wrap: keep-all;
|
|
67
61
|
font-size: var(--bui-text-size-3);
|
|
68
62
|
cursor: pointer;
|
|
@@ -74,9 +68,9 @@
|
|
|
74
68
|
.bui-alert-icon {
|
|
75
69
|
display: flex;
|
|
76
70
|
align-items: center;
|
|
77
|
-
|
|
71
|
+
padding-right: 4px;
|
|
78
72
|
vertical-align: middle;
|
|
79
|
-
font-size:
|
|
73
|
+
font-size: 15px;
|
|
80
74
|
cursor: pointer;
|
|
81
75
|
}
|
|
82
76
|
.bui-alert-marquee {
|
|
@@ -86,7 +80,7 @@
|
|
|
86
80
|
display: inline-block;
|
|
87
81
|
padding-left: 100%;
|
|
88
82
|
white-space: nowrap;
|
|
89
|
-
animation: marquee var(--
|
|
83
|
+
animation: marquee var(--bui-alert-marquee-speed) linear infinite both;
|
|
90
84
|
}
|
|
91
85
|
@keyframes marquee {
|
|
92
86
|
100% {
|
package/dist/Avatar/Avatar.css
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
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);
|
|
6
2
|
display: flex;
|
|
7
3
|
justify-content: center;
|
|
8
4
|
align-items: center;
|
|
9
|
-
font-size:
|
|
5
|
+
font-size: 12px;
|
|
10
6
|
background-color: var(--bui-color-bg-default);
|
|
11
7
|
font-family: var(--bui-font-family);
|
|
12
8
|
}
|
|
@@ -16,20 +12,20 @@
|
|
|
16
12
|
text-overflow: ellipsis;
|
|
17
13
|
}
|
|
18
14
|
.bui-avatar-large {
|
|
19
|
-
width:
|
|
20
|
-
height:
|
|
15
|
+
width: 60px;
|
|
16
|
+
height: 60px;
|
|
21
17
|
}
|
|
22
18
|
.bui-avatar-medium {
|
|
23
|
-
width:
|
|
24
|
-
height:
|
|
19
|
+
width: 42px;
|
|
20
|
+
height: 42px;
|
|
25
21
|
}
|
|
26
22
|
.bui-avatar-small {
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
23
|
+
width: 30px;
|
|
24
|
+
height: 30px;
|
|
29
25
|
}
|
|
30
26
|
.bui-avatar-xsmall {
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
27
|
+
width: 24px;
|
|
28
|
+
height: 24px;
|
|
33
29
|
}
|
|
34
30
|
.bui-avatar-rounded {
|
|
35
31
|
border-radius: 50%;
|
|
@@ -1,38 +1,31 @@
|
|
|
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));
|
|
9
2
|
display: flex;
|
|
10
3
|
flex-direction: row;
|
|
11
4
|
font-family: var(--bui-font-family);
|
|
12
5
|
}
|
|
13
6
|
.bui-avatar-group-avatar,
|
|
14
7
|
.bui-avatar-group-extra {
|
|
15
|
-
box-shadow: var(--
|
|
8
|
+
box-shadow: 0 0 0 2px var(--bui-color-bg-view);
|
|
16
9
|
color: var(--bui-color-fg-default);
|
|
17
10
|
}
|
|
18
11
|
.bui-avatar-group .bui-avatar-xsmall:not(:first-child) {
|
|
19
|
-
margin-left:
|
|
12
|
+
margin-left: -5px;
|
|
20
13
|
}
|
|
21
14
|
.bui-avatar-group .bui-avatar-small {
|
|
22
|
-
box-shadow: var(--
|
|
15
|
+
box-shadow: 0 0 0 1px var(--bui-color-bg-view);
|
|
23
16
|
}
|
|
24
17
|
.bui-avatar-group .bui-avatar-small:not(:first-child) {
|
|
25
|
-
margin-left:
|
|
18
|
+
margin-left: -9px;
|
|
26
19
|
}
|
|
27
20
|
.bui-avatar-group .bui-avatar-large {
|
|
28
|
-
box-shadow: var(--
|
|
21
|
+
box-shadow: 0 0 0 3px var(--bui-color-bg-view);
|
|
29
22
|
}
|
|
30
23
|
.bui-avatar-group .bui-avatar-large:not(:first-child) {
|
|
31
|
-
margin-left:
|
|
24
|
+
margin-left: -21px;
|
|
32
25
|
}
|
|
33
26
|
.bui-avatar-group .bui-avatar-medium {
|
|
34
|
-
box-shadow: var(--
|
|
27
|
+
box-shadow: 0 0 0 2px var(--bui-color-bg-view);
|
|
35
28
|
}
|
|
36
29
|
.bui-avatar-group .bui-avatar-medium:not(:first-child) {
|
|
37
|
-
margin-left:
|
|
30
|
+
margin-left: -13px;
|
|
38
31
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.bui-backdrop {
|
|
2
|
-
--background-color: var(--bui-backdrop-background-color, rgba(0, 0, 0, 0.68));
|
|
3
2
|
position: fixed;
|
|
4
3
|
display: flex;
|
|
5
4
|
align-items: center;
|
|
@@ -8,7 +7,7 @@
|
|
|
8
7
|
bottom: 0;
|
|
9
8
|
left: 0;
|
|
10
9
|
top: 0;
|
|
11
|
-
background-color:
|
|
10
|
+
background-color: rgba(0, 0, 0, 0.68);
|
|
12
11
|
}
|
|
13
12
|
.bui-backdrop-invisible {
|
|
14
13
|
background-color: transparent;
|
package/dist/Badge/Badge.css
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
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);
|
|
12
2
|
display: inline-block;
|
|
13
3
|
font-family: var(--bui-font-family);
|
|
14
4
|
}
|
|
@@ -18,18 +8,18 @@
|
|
|
18
8
|
.bui-badge-position .bui-badge-contained,
|
|
19
9
|
.bui-badge-position .bui-badge-outlined {
|
|
20
10
|
position: absolute;
|
|
21
|
-
top:
|
|
22
|
-
right:
|
|
11
|
+
top: 14%;
|
|
12
|
+
right: 14%;
|
|
23
13
|
transform: scale(1) translate(50%, -50%);
|
|
24
14
|
}
|
|
25
15
|
.bui-badge-position .bui-badge-dot {
|
|
26
|
-
top:
|
|
27
|
-
right:
|
|
16
|
+
top: 14%;
|
|
17
|
+
right: 14%;
|
|
28
18
|
transform: scale(1) translate(50%, -50%);
|
|
29
19
|
}
|
|
30
20
|
.bui-badge-position .bui-badge-bubble {
|
|
31
|
-
top:
|
|
32
|
-
right:
|
|
21
|
+
top: 14%;
|
|
22
|
+
right: 14%;
|
|
33
23
|
transform: scale(1) translate(50%, -50%);
|
|
34
24
|
}
|
|
35
25
|
.bui-badge-contained,
|
|
@@ -38,18 +28,18 @@
|
|
|
38
28
|
box-sizing: border-box;
|
|
39
29
|
align-items: center;
|
|
40
30
|
justify-content: center;
|
|
41
|
-
min-width:
|
|
42
|
-
height:
|
|
43
|
-
line-height:
|
|
44
|
-
padding:
|
|
31
|
+
min-width: 15px;
|
|
32
|
+
height: 15px;
|
|
33
|
+
line-height: 15px;
|
|
34
|
+
padding: 0 3px;
|
|
45
35
|
font-size: var(--bui-text-size-4);
|
|
46
|
-
border-radius:
|
|
36
|
+
border-radius: 8px;
|
|
47
37
|
color: var(--bui-color-bg-view);
|
|
48
38
|
white-space: nowrap;
|
|
49
39
|
z-index: 1;
|
|
50
40
|
}
|
|
51
41
|
.bui-badge-outlined {
|
|
52
|
-
padding:
|
|
42
|
+
padding: 0 2px;
|
|
53
43
|
}
|
|
54
44
|
.bui-badge-primary {
|
|
55
45
|
background-color: var(--bui-color-primary);
|
|
@@ -67,15 +57,15 @@
|
|
|
67
57
|
background-color: var(--bui-color-danger);
|
|
68
58
|
}
|
|
69
59
|
.bui-badge-dot {
|
|
70
|
-
width:
|
|
60
|
+
width: 9px;
|
|
71
61
|
min-width: 0;
|
|
72
|
-
height:
|
|
62
|
+
height: 9px;
|
|
73
63
|
padding: 0;
|
|
74
64
|
border-radius: 100%;
|
|
75
65
|
}
|
|
76
66
|
.bui-badge-bubble {
|
|
77
|
-
border-radius:
|
|
78
|
-
padding:
|
|
67
|
+
border-radius: 6px 6px 6px 0;
|
|
68
|
+
padding: 0 5px;
|
|
79
69
|
}
|
|
80
70
|
.bui-badge-outlined {
|
|
81
71
|
background: var(--bui-color-bg-view);
|
|
@@ -101,5 +91,5 @@
|
|
|
101
91
|
color: var(--bui-color-danger);
|
|
102
92
|
}
|
|
103
93
|
.bui-badge-outlined.bui-badge-bubble {
|
|
104
|
-
border-radius:
|
|
94
|
+
border-radius: 6px 6px 6px 0;
|
|
105
95
|
}
|
package/dist/Button/Button.css
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
.bui-btn {
|
|
2
|
-
--border-radius: var(--bui-button-border-radius, 100px);
|
|
3
2
|
--bg-color: var(--bui-button-default-bg-color, var(--bui-color-neutral-5));
|
|
3
|
+
--text-color: var(--bui-button-text-color, var(--bui-color-fg-muted));
|
|
4
4
|
--border-color: var(--bui-button-border-color, var(--bui-color-neutral-4));
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--icon-start-margin-left: var(--bui-button-icon-start-margin-left, var(--bui-spacing-xs));
|
|
8
|
-
--disabled-opacity: var(--bui-button-disabled-opacity, 0.5);
|
|
9
|
-
--small-padding: var(--bui-button-small-padding, 0 11px);
|
|
10
|
-
--small-height: var(--bui-button-small-height, 24px);
|
|
11
|
-
--medium-padding: var(--bui-button-medium-padding, 0 14px);
|
|
12
|
-
--large-padding: var(--bui-button-large-padding, 0 14px);
|
|
13
|
-
--large-height: var(--bui-button-large-height, 33px);
|
|
14
|
-
--full-font-size: var(--bui-button-full-font-size, var(--bui-title-size-4));
|
|
15
|
-
--full-height: var(--bui-button-full-height, 42px);
|
|
5
|
+
--border-radius: var(--bui-button-border-radius, 100px);
|
|
6
|
+
--font-weight: var(--bui-button-font-weight, var(--bui-font-weight-medium));
|
|
16
7
|
border: 1px solid transparent;
|
|
17
8
|
outline: 0;
|
|
18
9
|
background-color: transparent;
|
|
19
10
|
cursor: pointer;
|
|
20
|
-
color: var(--
|
|
11
|
+
color: var(--text-color);
|
|
21
12
|
box-sizing: border-box;
|
|
22
13
|
position: relative;
|
|
23
14
|
display: inline-flex;
|
|
@@ -26,9 +17,9 @@
|
|
|
26
17
|
justify-content: center;
|
|
27
18
|
white-space: nowrap;
|
|
28
19
|
font-size: var(--bui-text-size-3);
|
|
29
|
-
font-weight: var(--
|
|
20
|
+
font-weight: var(--font-weight);
|
|
30
21
|
border-radius: var(--border-radius);
|
|
31
|
-
height:
|
|
22
|
+
height: 27px;
|
|
32
23
|
line-height: var(--bui-line-height);
|
|
33
24
|
font-family: var(--bui-font-family);
|
|
34
25
|
}
|
|
@@ -64,36 +55,36 @@
|
|
|
64
55
|
display: inline-flex;
|
|
65
56
|
align-self: center;
|
|
66
57
|
flex-shrink: 0;
|
|
67
|
-
margin-right: var(--
|
|
58
|
+
margin-right: var(--bui-spacing-xs);
|
|
68
59
|
}
|
|
69
60
|
.bui-btn-icon-end {
|
|
70
61
|
display: inline-flex;
|
|
71
62
|
align-self: center;
|
|
72
63
|
flex-shrink: 0;
|
|
73
|
-
margin-left: var(--
|
|
64
|
+
margin-left: var(--bui-spacing-xs);
|
|
74
65
|
}
|
|
75
66
|
.bui-btn-disabled {
|
|
76
67
|
pointer-events: none;
|
|
77
|
-
opacity:
|
|
68
|
+
opacity: 0.5;
|
|
78
69
|
}
|
|
79
70
|
.bui-btn-small {
|
|
80
71
|
font-size: var(--bui-text-size-4);
|
|
81
|
-
padding:
|
|
82
|
-
height:
|
|
72
|
+
padding: 0 11px;
|
|
73
|
+
height: 24px;
|
|
83
74
|
}
|
|
84
75
|
.bui-btn-medium {
|
|
85
|
-
padding:
|
|
86
|
-
height:
|
|
76
|
+
padding: 0 14px;
|
|
77
|
+
height: 27px;
|
|
87
78
|
}
|
|
88
79
|
.bui-btn-large {
|
|
89
80
|
font-size: var(--bui-text-size-2);
|
|
90
|
-
padding:
|
|
91
|
-
height:
|
|
81
|
+
padding: 0 14px;
|
|
82
|
+
height: 33px;
|
|
92
83
|
}
|
|
93
84
|
.bui-btn-full {
|
|
94
|
-
font-size: var(--
|
|
85
|
+
font-size: var(--bui-title-size-4);
|
|
95
86
|
width: 100%;
|
|
96
|
-
height:
|
|
87
|
+
height: 42px;
|
|
97
88
|
}
|
|
98
89
|
.bui-btn-text.bui-btn-primary {
|
|
99
90
|
color: var(--bui-color-primary);
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
.bui-calendar {
|
|
2
|
-
--padding: var(--bui-calendar-padding, 6px 12px 7px);
|
|
3
|
-
--week-height: var(--bui-calendar-week-height, 30px);
|
|
4
|
-
--handler-height: var(--bui-calendar-handler-height, 28px);
|
|
5
|
-
--handler-margin-bottom: var(--bui-calendar-handler-margin-bottom, 7px);
|
|
6
|
-
--handler-text-width: var(--bui-calendar-handler-text-width, 80px);
|
|
7
|
-
--handler-btn-width: var(--bui-calendar-handler-btn-width, 46px);
|
|
8
|
-
--handler-btn-height: var(--bui-calendar-handler-btn-height, 100%);
|
|
9
|
-
--handler-btn-icon-font-size: var(--bui-calendar-handler-btn-icon-font-size, 28px);
|
|
10
|
-
--day-box-height: var(--bui-calendar-day-box-height, 30px);
|
|
11
|
-
--day-box-margin-bottom: var(--bui-calendar-day-box-margin-bottom, 7px);
|
|
12
|
-
--day-disabled-color: var(--bui-calendar-day-disabled-color, #9c9ca5);
|
|
13
|
-
--middle-color: var(--bui-calendar-middle-color, #000);
|
|
14
|
-
--middle-background-color: var(--bui-calendar-middle-background-color, #ffeaf1);
|
|
15
|
-
--range-both-ends-color: var(--bui-calendar-range-both-ends-color, #000);
|
|
16
|
-
--range-both-ends-background-color: var(--bui-calendar-range-both-ends-background-color, #ffc7da);
|
|
17
2
|
overflow: hidden;
|
|
18
3
|
display: flex;
|
|
19
4
|
flex-direction: column;
|
|
@@ -21,11 +6,11 @@
|
|
|
21
6
|
position: relative;
|
|
22
7
|
width: 100%;
|
|
23
8
|
box-sizing: border-box;
|
|
24
|
-
padding:
|
|
9
|
+
padding: 6px 12px 7px;
|
|
25
10
|
font-family: var(--bui-font-family);
|
|
26
11
|
}
|
|
27
12
|
.bui-calendar-week {
|
|
28
|
-
height:
|
|
13
|
+
height: 30px;
|
|
29
14
|
font-size: var(--bui-text-size-2);
|
|
30
15
|
font-weight: var(--bui-font-weight-medium);
|
|
31
16
|
color: var(--bui-color-fg-default);
|
|
@@ -44,29 +29,29 @@
|
|
|
44
29
|
color: var(--bui-color-primary);
|
|
45
30
|
}
|
|
46
31
|
.bui-calendar-handler {
|
|
47
|
-
height:
|
|
32
|
+
height: 28px;
|
|
48
33
|
display: flex;
|
|
49
34
|
align-items: center;
|
|
50
35
|
justify-content: center;
|
|
51
|
-
margin-bottom:
|
|
36
|
+
margin-bottom: 7px;
|
|
52
37
|
}
|
|
53
38
|
.bui-calendar-handler-text {
|
|
54
|
-
width:
|
|
39
|
+
width: 80px;
|
|
55
40
|
font-size: var(--bui-title-size-3);
|
|
56
41
|
font-weight: var(--bui-font-weight-medium);
|
|
57
42
|
text-align: center;
|
|
58
43
|
}
|
|
59
44
|
.bui-calendar-handler-btn {
|
|
60
45
|
font-size: 16px;
|
|
61
|
-
height:
|
|
62
|
-
width:
|
|
46
|
+
height: 100%;
|
|
47
|
+
width: 46px;
|
|
63
48
|
cursor: pointer;
|
|
64
49
|
display: flex;
|
|
65
50
|
align-items: center;
|
|
66
51
|
justify-content: center;
|
|
67
52
|
}
|
|
68
53
|
.bui-calendar-handler-btn-icon {
|
|
69
|
-
font-size:
|
|
54
|
+
font-size: 28px;
|
|
70
55
|
}
|
|
71
56
|
.bui-calendar-month {
|
|
72
57
|
display: flex;
|
|
@@ -75,8 +60,8 @@
|
|
|
75
60
|
}
|
|
76
61
|
.bui-calendar-day-box {
|
|
77
62
|
width: 14.28%;
|
|
78
|
-
height:
|
|
79
|
-
margin-bottom:
|
|
63
|
+
height: 30px;
|
|
64
|
+
margin-bottom: 7px;
|
|
80
65
|
}
|
|
81
66
|
.bui-calendar-highlight-day .bui-calendar-day {
|
|
82
67
|
color: var(--bui-color-primary);
|
|
@@ -87,34 +72,34 @@
|
|
|
87
72
|
display: flex;
|
|
88
73
|
align-items: center;
|
|
89
74
|
justify-content: center;
|
|
90
|
-
border-radius:
|
|
75
|
+
border-radius: 6px;
|
|
91
76
|
font-size: var(--bui-title-size-4);
|
|
92
77
|
font-weight: var(--bui-font-weight-medium);
|
|
93
78
|
color: var(--bui-color-fg-default);
|
|
94
79
|
cursor: pointer;
|
|
95
80
|
}
|
|
96
81
|
.bui-calendar-day.bui-calendar-disabled {
|
|
97
|
-
color:
|
|
82
|
+
color: #9c9ca5;
|
|
98
83
|
}
|
|
99
84
|
.bui-calendar-today {
|
|
100
85
|
color: var(--bui-color-primary);
|
|
101
86
|
}
|
|
102
87
|
.bui-calendar-middle {
|
|
103
|
-
color:
|
|
88
|
+
color: #000;
|
|
104
89
|
border-radius: 0;
|
|
105
|
-
background-color:
|
|
90
|
+
background-color: #ffeaf1;
|
|
106
91
|
}
|
|
107
92
|
.bui-calendar-start {
|
|
108
|
-
color:
|
|
109
|
-
background-color:
|
|
93
|
+
color: #000;
|
|
94
|
+
background-color: #ffc7da;
|
|
110
95
|
}
|
|
111
96
|
.bui-calendar-range {
|
|
112
97
|
border-top-right-radius: 0;
|
|
113
98
|
border-bottom-right-radius: 0;
|
|
114
99
|
}
|
|
115
100
|
.bui-calendar-end {
|
|
116
|
-
color:
|
|
117
|
-
background-color:
|
|
101
|
+
color: #000;
|
|
102
|
+
background-color: #ffc7da;
|
|
118
103
|
border-top-left-radius: 0;
|
|
119
104
|
border-bottom-left-radius: 0;
|
|
120
105
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CalendarProps } from './Calendar.types';
|
|
3
2
|
import './Calendar.less';
|
|
3
|
+
import { CalendarProps } from './Calendar.types';
|
|
4
4
|
declare const Calendar: React.ForwardRefExoticComponent<Omit<CalendarProps<"div", {}>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export default Calendar;
|
|
@@ -65,11 +65,11 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
65
65
|
var import_dayjs = __toESM(require("dayjs"));
|
|
66
66
|
var import_isoWeek = __toESM(require("dayjs/plugin/isoWeek"));
|
|
67
67
|
var import_react = __toESM(require("react"));
|
|
68
|
+
var import_Calendar = require("./Calendar.css");
|
|
68
69
|
var import_utils2 = require("./utils");
|
|
69
|
-
var import_locales = require("../locales");
|
|
70
|
-
var import_Calendar2 = require("./Calendar.css");
|
|
71
70
|
const Picker = (0, import_react.lazy)(() => import("../Picker"));
|
|
72
71
|
import_dayjs.default.extend(import_isoWeek.default);
|
|
72
|
+
const SUNDAY_WEEK_DATA = ["\u65E5", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D"];
|
|
73
73
|
const classes = {
|
|
74
74
|
root: "bui-calendar",
|
|
75
75
|
handler: "bui-calendar-handler",
|
|
@@ -87,9 +87,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
87
87
|
maxDate,
|
|
88
88
|
mode,
|
|
89
89
|
hideDaysOutsideCurrentMonth,
|
|
90
|
-
headerBarFormat,
|
|
91
|
-
headerBarLeftIcon,
|
|
92
|
-
headerBarRightIcon,
|
|
93
90
|
disabledDate,
|
|
94
91
|
enableSelectYear,
|
|
95
92
|
highlightDate,
|
|
@@ -106,9 +103,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
106
103
|
"maxDate",
|
|
107
104
|
"mode",
|
|
108
105
|
"hideDaysOutsideCurrentMonth",
|
|
109
|
-
"headerBarFormat",
|
|
110
|
-
"headerBarLeftIcon",
|
|
111
|
-
"headerBarRightIcon",
|
|
112
106
|
"disabledDate",
|
|
113
107
|
"enableSelectYear",
|
|
114
108
|
"highlightDate",
|
|
@@ -118,16 +112,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
118
112
|
"onYearChange",
|
|
119
113
|
"onChange"
|
|
120
114
|
]);
|
|
121
|
-
const { Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday } = (0, import_locales.useLocaleText)("calendar");
|
|
122
|
-
const SUNDAY_WEEK_DATA = [
|
|
123
|
-
Sunday,
|
|
124
|
-
Monday,
|
|
125
|
-
Tuesday,
|
|
126
|
-
Wednesday,
|
|
127
|
-
Thursday,
|
|
128
|
-
Friday,
|
|
129
|
-
Saturday
|
|
130
|
-
];
|
|
131
115
|
const isRangeMode = mode === "range";
|
|
132
116
|
const formattedValue = (0, import_utils2.formatDate)(mode, value, minDate, maxDate);
|
|
133
117
|
const formattedDefaultValue = (0, import_utils2.formatDate)(
|
|
@@ -154,22 +138,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
154
138
|
}, [calendarValue]);
|
|
155
139
|
const isMinMonth = (0, import_dayjs.default)(minDate).isSame(renderMonth, "month");
|
|
156
140
|
const isMaxMonth = (0, import_dayjs.default)(maxDate).isSame(renderMonth, "month");
|
|
157
|
-
const headerBarIcon = {
|
|
158
|
-
left: headerBarLeftIcon ? headerBarLeftIcon({ isMinMonth }) : /* @__PURE__ */ import_react.default.createElement(
|
|
159
|
-
import_icons.CaretLeftIcon,
|
|
160
|
-
{
|
|
161
|
-
className: `${classes.handler}-btn-icon`,
|
|
162
|
-
htmlColor: isMinMonth && "#cccccc"
|
|
163
|
-
}
|
|
164
|
-
),
|
|
165
|
-
right: headerBarRightIcon ? headerBarRightIcon({ isMaxMonth }) : /* @__PURE__ */ import_react.default.createElement(
|
|
166
|
-
import_icons.CaretRightIcon,
|
|
167
|
-
{
|
|
168
|
-
className: `${classes.handler}-btn-icon`,
|
|
169
|
-
htmlColor: isMaxMonth && "#cccccc"
|
|
170
|
-
}
|
|
171
|
-
)
|
|
172
|
-
};
|
|
173
141
|
(0, import_utils.useDidMountEffect)(() => {
|
|
174
142
|
const initMonth = formattedValue === void 0 ? formattedDefaultValue == null ? void 0 : formattedDefaultValue[0] : formattedValue == null ? void 0 : formattedValue[0];
|
|
175
143
|
setRenderMonth((0, import_dayjs.default)(initMonth || minDate).toDate());
|
|
@@ -306,7 +274,7 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
306
274
|
setRenderMonth(month);
|
|
307
275
|
onMonthChange == null ? void 0 : onMonthChange(e, {
|
|
308
276
|
type: "prev",
|
|
309
|
-
month: (0, import_dayjs.default)(month).format(
|
|
277
|
+
month: (0, import_dayjs.default)(month).format("YYYY/MM")
|
|
310
278
|
});
|
|
311
279
|
}
|
|
312
280
|
};
|
|
@@ -316,7 +284,7 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
316
284
|
setRenderMonth(month);
|
|
317
285
|
onMonthChange == null ? void 0 : onMonthChange(e, {
|
|
318
286
|
type: "next",
|
|
319
|
-
month: (0, import_dayjs.default)(month).format(
|
|
287
|
+
month: (0, import_dayjs.default)(month).format("YYYY/MM")
|
|
320
288
|
});
|
|
321
289
|
}
|
|
322
290
|
};
|
|
@@ -358,7 +326,19 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
358
326
|
}, others), {
|
|
359
327
|
"data-mode": mode
|
|
360
328
|
}), data),
|
|
361
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: classes.handler }, /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickPrev, className: `${classes.handler}-btn` },
|
|
329
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: classes.handler }, /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickPrev, className: `${classes.handler}-btn` }, /* @__PURE__ */ import_react.default.createElement(
|
|
330
|
+
import_icons.CaretLeftIcon,
|
|
331
|
+
{
|
|
332
|
+
className: `${classes.handler}-btn-icon`,
|
|
333
|
+
htmlColor: isMinMonth && "#cccccc"
|
|
334
|
+
}
|
|
335
|
+
)), /* @__PURE__ */ import_react.default.createElement("div", { className: `${classes.handler}-text`, onClick: onClickDate }, (0, import_dayjs.default)(renderMonth).format("YYYY/MM")), /* @__PURE__ */ import_react.default.createElement("div", { onClick: onClickNext, className: `${classes.handler}-btn` }, /* @__PURE__ */ import_react.default.createElement(
|
|
336
|
+
import_icons.CaretRightIcon,
|
|
337
|
+
{
|
|
338
|
+
className: `${classes.handler}-btn-icon`,
|
|
339
|
+
htmlColor: isMaxMonth && "#cccccc"
|
|
340
|
+
}
|
|
341
|
+
))),
|
|
362
342
|
/* @__PURE__ */ import_react.default.createElement("div", { className: classes.week }, SUNDAY_WEEK_DATA == null ? void 0 : SUNDAY_WEEK_DATA.map((w) => {
|
|
363
343
|
return weekRender ? weekRender(w) : /* @__PURE__ */ import_react.default.createElement("div", { key: w, className: `${classes.week}-item` }, w);
|
|
364
344
|
})),
|
|
@@ -378,7 +358,6 @@ const Calendar = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
378
358
|
Calendar.displayName = "BuiCalendar";
|
|
379
359
|
Calendar.defaultProps = {
|
|
380
360
|
hideDaysOutsideCurrentMonth: false,
|
|
381
|
-
headerBarFormat: "YYYY/MM",
|
|
382
361
|
enableSelectYear: false,
|
|
383
362
|
mode: "single",
|
|
384
363
|
minDate: (0, import_dayjs.default)((0, import_dayjs.default)().format("YYYYMMDD")).add(0, "month").toDate(),
|