@bifrostui/react 1.3.1-beta.1 → 1.3.3
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/dist/Select/Select.css
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
.bui-select {
|
|
2
|
-
--height: var(--bui-select-height, 27px);
|
|
3
|
-
--mini-width: var(--bui-select-min-width, 100px);
|
|
4
|
-
--font-size: var(--bui-select-font-size, var(--bui-title-size-3));
|
|
5
|
-
--padding: var(--bui-select-selector-container, 0 14px);
|
|
6
|
-
--option-container-padding: var(--bui-select-option-container-padding, 3px 0);
|
|
7
|
-
--option-margin-top: var(--bui-select-option-margin-top, 6px);
|
|
8
|
-
--option-padding: var(--bui-select-option-padding, 0 14px);
|
|
9
|
-
--option-margin: var(--bui-select-option-margin, 0 3px);
|
|
10
|
-
--option-height: var(--bui-select-option-height, 27px);
|
|
11
|
-
--option-active-font-weight: var(--bui-select-option-active-font-weight, 500);
|
|
12
2
|
position: relative;
|
|
13
3
|
cursor: pointer;
|
|
14
|
-
height:
|
|
15
|
-
min-width:
|
|
16
|
-
font-size: var(--
|
|
4
|
+
height: 27px;
|
|
5
|
+
min-width: 100px;
|
|
6
|
+
font-size: var(--bui-title-size-3);
|
|
17
7
|
border-radius: 5px;
|
|
18
8
|
background-color: var(--bui-color-bg-view);
|
|
19
9
|
font-family: var(--bui-font-family);
|
|
@@ -25,7 +15,7 @@
|
|
|
25
15
|
.bui-select-selector-container {
|
|
26
16
|
display: flex;
|
|
27
17
|
align-items: center;
|
|
28
|
-
padding:
|
|
18
|
+
padding: 0 14px;
|
|
29
19
|
height: 100%;
|
|
30
20
|
}
|
|
31
21
|
.bui-select-input {
|
|
@@ -42,7 +32,7 @@
|
|
|
42
32
|
justify-content: space-between;
|
|
43
33
|
align-items: center;
|
|
44
34
|
flex: 1;
|
|
45
|
-
height:
|
|
35
|
+
height: 27px;
|
|
46
36
|
background-color: transparent;
|
|
47
37
|
outline: none;
|
|
48
38
|
border: 0;
|
|
@@ -57,25 +47,24 @@
|
|
|
57
47
|
left: 0;
|
|
58
48
|
width: 100%;
|
|
59
49
|
z-index: var(--bui-z-index-dropdown);
|
|
60
|
-
margin-top:
|
|
61
|
-
border-radius: 3px;
|
|
50
|
+
margin-top: 6px;
|
|
62
51
|
background-color: var(--bui-color-bg-view);
|
|
63
52
|
padding: 2px;
|
|
64
53
|
overflow: hidden;
|
|
65
54
|
}
|
|
66
55
|
.bui-select-option-main {
|
|
67
56
|
border-radius: 3px;
|
|
68
|
-
padding:
|
|
57
|
+
padding: 3px 0;
|
|
69
58
|
box-shadow: 0 0 0 2px var(--bui-color-bg-default);
|
|
70
59
|
overflow: hidden;
|
|
71
60
|
}
|
|
72
61
|
.bui-select-option {
|
|
73
62
|
display: flex;
|
|
74
63
|
align-items: center;
|
|
75
|
-
height:
|
|
76
|
-
padding:
|
|
64
|
+
height: 27px;
|
|
65
|
+
padding: 0 14px;
|
|
77
66
|
border-radius: 5px;
|
|
78
|
-
margin:
|
|
67
|
+
margin: 0 3px;
|
|
79
68
|
}
|
|
80
69
|
.bui-select-option:hover {
|
|
81
70
|
background-color: var(---bui-select-options-active-bg, #fff2f0);
|
package/dist/Select/Select.js
CHANGED
|
@@ -142,7 +142,7 @@ const Select = /* @__PURE__ */ import_react.default.forwardRef((props, ref) => {
|
|
|
142
142
|
};
|
|
143
143
|
const selectContext = (0, import_react.useMemo)(
|
|
144
144
|
() => ({ selectValue, setRenderValue, handleOptionClick }),
|
|
145
|
-
[selectValue
|
|
145
|
+
[selectValue]
|
|
146
146
|
);
|
|
147
147
|
(0, import_react.useEffect)(() => {
|
|
148
148
|
if (open !== void 0)
|
|
@@ -72,9 +72,6 @@ const SelectOption = /* @__PURE__ */ import_react.default.forwardRef(
|
|
|
72
72
|
if (value === selectValue) {
|
|
73
73
|
setRenderValue(label);
|
|
74
74
|
}
|
|
75
|
-
return () => {
|
|
76
|
-
setRenderValue("");
|
|
77
|
-
};
|
|
78
75
|
}, [selectValue, label, value]);
|
|
79
76
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
80
77
|
"div",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.bui-skeleton {
|
|
2
2
|
--border-radius: var(--bui-shape-radius-label);
|
|
3
|
-
--height: var(--bui-skeleton-height, 1.2em);
|
|
4
3
|
display: block;
|
|
5
4
|
}
|
|
6
5
|
.bui-skeleton-animation-wave {
|
|
@@ -27,10 +26,10 @@
|
|
|
27
26
|
content: "\a0";
|
|
28
27
|
}
|
|
29
28
|
.bui-skeleton-rectangular {
|
|
30
|
-
height:
|
|
29
|
+
height: 1.2em;
|
|
31
30
|
}
|
|
32
31
|
.bui-skeleton-rounded {
|
|
33
|
-
height:
|
|
32
|
+
height: 1.2em;
|
|
34
33
|
border-radius: var(--border-radius);
|
|
35
34
|
}
|
|
36
35
|
.bui-skeleton-circular {
|
package/dist/Slider/Slider.css
CHANGED
|
@@ -4,21 +4,10 @@
|
|
|
4
4
|
--tooltip-font-size: var(--bui-text-size-3);
|
|
5
5
|
--tooltip-color: var(--bui-color-white);
|
|
6
6
|
--tooltip-bg-color: var(--line-color);
|
|
7
|
-
--width: var(--bui-slider-width, 100%);
|
|
8
|
-
--height: var(--bui-slider-height, 2px);
|
|
9
|
-
--padding: var(--bui-slider-padding, 19px 0);
|
|
10
|
-
--button-width: var(--bui-slider-button-width, 26px);
|
|
11
|
-
--button-height: var(--bui-slider-button-height, 26px);
|
|
12
|
-
--button-font-size: var(--bui-slider-button-font-size, var(--bui-title-size-3));
|
|
13
|
-
--button-border-radius: var(--bui--slider-button-border-radius, 50%);
|
|
14
|
-
--tooltip-width: var(--bui-slider-tooltip-width, 46px);
|
|
15
|
-
--tooltip-height: var(--bui-slider-tooltip-height, 24px);
|
|
16
|
-
--tooltip-line-height: var(--bui-slider-tooltip-line-height, 24px);
|
|
17
|
-
--tooltip-border-radius: var(--bui-slider-tooltip-border-radius, 24px);
|
|
18
7
|
position: relative;
|
|
19
|
-
width:
|
|
20
|
-
height:
|
|
21
|
-
padding:
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 2px;
|
|
10
|
+
padding: 19px 0;
|
|
22
11
|
box-sizing: border-box;
|
|
23
12
|
font-family: var(--bui-font-family);
|
|
24
13
|
}
|
|
@@ -30,7 +19,7 @@
|
|
|
30
19
|
position: absolute;
|
|
31
20
|
top: 50%;
|
|
32
21
|
left: 0;
|
|
33
|
-
height:
|
|
22
|
+
height: 2px;
|
|
34
23
|
transform: translateY(-50%);
|
|
35
24
|
background-color: var(--line-color);
|
|
36
25
|
}
|
|
@@ -39,7 +28,7 @@
|
|
|
39
28
|
top: 50%;
|
|
40
29
|
left: 0;
|
|
41
30
|
width: 100%;
|
|
42
|
-
height:
|
|
31
|
+
height: 2px;
|
|
43
32
|
transform: translateY(-50%);
|
|
44
33
|
background-color: var(--line-bg-color);
|
|
45
34
|
}
|
|
@@ -48,11 +37,11 @@
|
|
|
48
37
|
position: absolute;
|
|
49
38
|
justify-content: center;
|
|
50
39
|
align-items: center;
|
|
51
|
-
width:
|
|
52
|
-
height:
|
|
53
|
-
background-color:
|
|
40
|
+
width: 26px;
|
|
41
|
+
height: 26px;
|
|
42
|
+
background-color: #fff;
|
|
54
43
|
box-shadow: #ddd 0 0 10px;
|
|
55
|
-
border-radius:
|
|
44
|
+
border-radius: 50%;
|
|
56
45
|
transform: translate(-50%, -50%);
|
|
57
46
|
font-size: var(--bui-title-size-3);
|
|
58
47
|
cursor: grab;
|
|
@@ -78,11 +67,11 @@
|
|
|
78
67
|
.bui-slider-tooltip {
|
|
79
68
|
position: absolute;
|
|
80
69
|
top: -14px;
|
|
81
|
-
width:
|
|
82
|
-
height:
|
|
83
|
-
line-height:
|
|
70
|
+
width: 46px;
|
|
71
|
+
height: 24px;
|
|
72
|
+
line-height: 24px;
|
|
84
73
|
font-size: var(--tooltip-font-size);
|
|
85
|
-
border-radius:
|
|
74
|
+
border-radius: 24px;
|
|
86
75
|
color: var(--tooltip-color);
|
|
87
76
|
text-align: center;
|
|
88
77
|
background-color: var(--tooltip-bg-color);
|
package/dist/Steps/Step.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
font-family: var(--bui-font-family);
|
|
6
6
|
}
|
|
7
7
|
.bui-step-label-horizontal {
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.8;
|
|
9
9
|
}
|
|
10
10
|
.bui-step:last-child .bui-step-line::after {
|
|
11
11
|
display: none;
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
.bui-step-line {
|
|
14
14
|
position: absolute;
|
|
15
15
|
top: 0;
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
16
|
+
width: 1px;
|
|
17
|
+
height: 100%;
|
|
18
18
|
box-sizing: border-box;
|
|
19
19
|
left: 13px;
|
|
20
20
|
padding: var(--step-line-padding);
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
.bui-step-line::after {
|
|
23
23
|
display: inline-block;
|
|
24
24
|
content: "";
|
|
25
|
-
width:
|
|
26
|
-
border-left-width:
|
|
25
|
+
width: 1px;
|
|
26
|
+
border-left-width: 1px;
|
|
27
27
|
border-left-style: dotted;
|
|
28
28
|
height: calc(100% + 11px);
|
|
29
29
|
}
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
}
|
|
42
42
|
.bui-step-icon {
|
|
43
43
|
flex-shrink: 0;
|
|
44
|
-
width:
|
|
44
|
+
width: 28px;
|
|
45
45
|
text-align: center;
|
|
46
46
|
margin: var(--step-icon-margin);
|
|
47
|
-
font-size: var(--
|
|
47
|
+
font-size: var(--bui-title-size-4);
|
|
48
48
|
}
|
|
49
49
|
.bui-step-icon-active {
|
|
50
|
-
width:
|
|
51
|
-
height:
|
|
50
|
+
width: 12px;
|
|
51
|
+
height: 12px;
|
|
52
52
|
position: relative;
|
|
53
53
|
background-color: var(--bui-color-primary);
|
|
54
54
|
border-radius: 50%;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
display: inline-block;
|
|
57
57
|
}
|
|
58
58
|
.bui-step-content {
|
|
59
|
-
padding:
|
|
59
|
+
padding: 3px 0;
|
|
60
60
|
box-sizing: border-box;
|
|
61
61
|
flex: 1 0 0;
|
|
62
62
|
overflow: hidden;
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
}
|
|
129
129
|
.bui-step-horizontal .bui-step-line {
|
|
130
130
|
display: none;
|
|
131
|
-
padding:
|
|
131
|
+
padding: 28px 0 6px;
|
|
132
132
|
}
|
|
133
133
|
.bui-step-horizontal .bui-step-icon {
|
|
134
134
|
margin-right: 0;
|
package/dist/Steps/Steps.css
CHANGED
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
.bui-steps {
|
|
2
|
-
--font-size: var(--bui-steps-font-size, var(--bui-title-size-3));
|
|
3
2
|
--title-font-size: var(--bui-title-size-4);
|
|
4
3
|
--title-font-weight: var(--bui-font-weight-medium);
|
|
5
|
-
--subtitle-font-size: var(--bui-
|
|
6
|
-
--
|
|
7
|
-
--step-
|
|
8
|
-
--step-line-
|
|
9
|
-
--step-label-horizontal-line-height: var(--bui-step-label-horizontal-line-height, 1.8);
|
|
10
|
-
--step-icon-width: var(--bui-step-icon-width, 28px);
|
|
11
|
-
--step-icon-active-width: var(--bui-step-icon-active-width, 12px);
|
|
12
|
-
--step-icon-active-height: var(--bui-step-icon-active-height, 12px);
|
|
13
|
-
--step-icon-font-size: var(--bui-step-icon-font-size, var(--bui-title-size-4));
|
|
14
|
-
--step-icon-margin: var(--bui-step-icon-margin, var(--bui-spacing-xs) var(--bui-spacing-xs) 0 0);
|
|
15
|
-
--step-content-padding: var(--bui-step-content-padding, 3px 0);
|
|
16
|
-
--step-horizontal-line-padding: var(--bui-step-horizontal-line-padding, 28px 0 6px);
|
|
4
|
+
--subtitle-font-size: var(--bui-text-size-2);
|
|
5
|
+
--description-font-size: var(--bui-text-size-3);
|
|
6
|
+
--step-icon-margin: var(--bui-spacing-xs) var(--bui-spacing-xs) 0 0;
|
|
7
|
+
--step-line-padding: 20px 0 3px 0;
|
|
17
8
|
display: flex;
|
|
18
|
-
font-size: var(--
|
|
9
|
+
font-size: var(--bui-title-size-3);
|
|
19
10
|
font-family: var(--bui-font-family);
|
|
20
11
|
}
|
|
21
12
|
.bui-steps-vertical {
|
package/dist/Swiper/Swiper.css
CHANGED
package/dist/Switch/Switch.css
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
.bui-switch {
|
|
2
|
-
--bg-color:
|
|
3
|
-
--padding: var(--bui-switch-padding, 0);
|
|
4
|
-
--border-radius: var(--bui-switch-border-radius, 15px);
|
|
5
|
-
--small-width: var(--bui-switch-small-width, 24px);
|
|
6
|
-
--small-height: var(--bui-switch-small-height, 16px);
|
|
7
|
-
--small-font-size: var(--bui-switch-small-font-size, 9px);
|
|
8
|
-
--controller-small-width: var(--bui-switch-controller-small-width, 12px);
|
|
9
|
-
--controller-small-height: var(--bui-switch-controller-small-height, 12px);
|
|
10
|
-
--medium-width: var(--bui-switch-medium-width, 44px);
|
|
11
|
-
--medium-height: var(--bui-switch-medium-height, 22px);
|
|
12
|
-
--controller-medium-width: var(--bui-switch-controller-medium-width, 18px);
|
|
13
|
-
--controller-medium-height: var(--bui-switch-controller-medium-height, 18px);
|
|
14
|
-
--large-width: var(--bui-switch-large-width, 51px);
|
|
15
|
-
--large-height: var(--bui-switch-large-height, 30px);
|
|
16
|
-
--controller-large-width: var(--bui-switch-controller-large-width, 24px);
|
|
17
|
-
--controller-large-height: var(--bui-switch-controller-large-height, 24px);
|
|
2
|
+
--bg-color: #ccc;
|
|
18
3
|
position: relative;
|
|
19
4
|
display: inline-block;
|
|
20
5
|
box-sizing: border-box;
|
|
21
|
-
padding:
|
|
6
|
+
padding: 0;
|
|
22
7
|
vertical-align: middle;
|
|
23
|
-
border-radius:
|
|
8
|
+
border-radius: 15px;
|
|
24
9
|
background-color: var(--bg-color);
|
|
25
10
|
transition: all 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
26
11
|
font-family: var(--bui-font-family);
|
|
@@ -42,16 +27,16 @@
|
|
|
42
27
|
outline: none;
|
|
43
28
|
}
|
|
44
29
|
.bui-switch-small {
|
|
45
|
-
width:
|
|
46
|
-
height:
|
|
30
|
+
width: 24px;
|
|
31
|
+
height: 16px;
|
|
47
32
|
}
|
|
48
33
|
.bui-switch-small .bui-switch-inner {
|
|
49
34
|
left: calc(100% - 10px);
|
|
50
|
-
font-size:
|
|
35
|
+
font-size: 9px;
|
|
51
36
|
}
|
|
52
37
|
.bui-switch-small::after {
|
|
53
|
-
width:
|
|
54
|
-
height:
|
|
38
|
+
width: 12px;
|
|
39
|
+
height: 12px;
|
|
55
40
|
left: 2px;
|
|
56
41
|
top: 2px;
|
|
57
42
|
}
|
|
@@ -62,12 +47,12 @@
|
|
|
62
47
|
left: 2px;
|
|
63
48
|
}
|
|
64
49
|
.bui-switch-medium {
|
|
65
|
-
width:
|
|
66
|
-
height:
|
|
50
|
+
width: 44px;
|
|
51
|
+
height: 22px;
|
|
67
52
|
}
|
|
68
53
|
.bui-switch-medium::after {
|
|
69
|
-
width:
|
|
70
|
-
height:
|
|
54
|
+
width: 18px;
|
|
55
|
+
height: 18px;
|
|
71
56
|
}
|
|
72
57
|
.bui-switch-medium.bui-switch-checked::after {
|
|
73
58
|
left: calc(100% - 20px);
|
|
@@ -76,15 +61,15 @@
|
|
|
76
61
|
left: var(--bui-spacing-sm);
|
|
77
62
|
}
|
|
78
63
|
.bui-switch-large {
|
|
79
|
-
width:
|
|
80
|
-
height:
|
|
64
|
+
width: 51px;
|
|
65
|
+
height: 30px;
|
|
81
66
|
}
|
|
82
67
|
.bui-switch-large .bui-switch-inner {
|
|
83
68
|
left: calc(100% - 22px);
|
|
84
69
|
}
|
|
85
70
|
.bui-switch-large::after {
|
|
86
|
-
width:
|
|
87
|
-
height:
|
|
71
|
+
width: 24px;
|
|
72
|
+
height: 24px;
|
|
88
73
|
left: 3px;
|
|
89
74
|
top: 3px;
|
|
90
75
|
}
|
package/dist/TabBar/TabBar.css
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
.bui-tab-bar {
|
|
2
|
-
--width: var(--bui-tab-bar-width, 100%);
|
|
3
|
-
--height: var(--bui-tab-bar-height, 50px);
|
|
4
|
-
--padding: var(--bui-tab-bar-padding, 6px 0);
|
|
5
|
-
--bui-tab-bar-color: var(--bui-tab-bar-default-color, var(--bui-color-fg-default));
|
|
6
2
|
display: flex;
|
|
7
|
-
width:
|
|
8
|
-
height:
|
|
9
|
-
padding:
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 50px;
|
|
5
|
+
padding: 6px 0;
|
|
10
6
|
background: var(--bui-color-white);
|
|
11
7
|
font-family: var(--bui-font-family);
|
|
12
8
|
}
|
package/dist/Tabs/Tab.css
CHANGED
|
@@ -4,16 +4,20 @@
|
|
|
4
4
|
justify-content: center;
|
|
5
5
|
white-space: nowrap;
|
|
6
6
|
width: min-content;
|
|
7
|
-
height:
|
|
7
|
+
height: 100%;
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
position: relative;
|
|
10
10
|
cursor: pointer;
|
|
11
11
|
font-size: var(--font-size);
|
|
12
12
|
line-height: var(--bui-line-height);
|
|
13
13
|
color: var(--color);
|
|
14
|
-
padding: var(--
|
|
14
|
+
padding: var(--bui-spacing-lg) var(--bui-spacing-lg) 10px;
|
|
15
15
|
font-family: var(--bui-font-family);
|
|
16
16
|
}
|
|
17
|
+
.bui-tab-center {
|
|
18
|
+
flex: 1 0 auto;
|
|
19
|
+
margin: 0 auto;
|
|
20
|
+
}
|
|
17
21
|
.bui-tab-active {
|
|
18
22
|
font-size: var(--font-size);
|
|
19
23
|
line-height: var(--bui-line-height);
|
package/dist/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/dist/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/dist/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;
|
|
@@ -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
|
}
|
|
@@ -155,23 +155,5 @@ functionalToast.clear = () => {
|
|
|
155
155
|
destroyAll();
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
|
-
const useToast = () => {
|
|
159
|
-
const holderRef = import_react.default.useRef(null);
|
|
160
|
-
["warning", "loading", "success", "fail"].forEach((methodName) => {
|
|
161
|
-
functionalToast[methodName] = (options) => functionalToast(__spreadProps(__spreadValues({
|
|
162
|
-
type: methodName
|
|
163
|
-
}, formatProps(options)), {
|
|
164
|
-
theme: holderRef.current.theme
|
|
165
|
-
}));
|
|
166
|
-
});
|
|
167
|
-
functionalToast.clear = () => {
|
|
168
|
-
setTimeout(() => {
|
|
169
|
-
destroyAll();
|
|
170
|
-
});
|
|
171
|
-
};
|
|
172
|
-
const wrapAPI = functionalToast;
|
|
173
|
-
return [wrapAPI, /* @__PURE__ */ import_react.default.createElement(import_Toast.default, { key: "toast-holder", ref: holderRef })];
|
|
174
|
-
};
|
|
175
|
-
functionalToast.useToast = useToast;
|
|
176
158
|
const Toast = functionalToast;
|
|
177
159
|
var FunctionalToast_default = Toast;
|
package/dist/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/dist/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;
|