@bifrostui/react 1.3.2 → 1.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionSheet/ActionSheet.css +6 -3
- package/dist/ActionSheet/ActionSheetItem.css +10 -6
- package/dist/Alert/index.css +14 -8
- package/dist/Avatar/Avatar.css +13 -9
- package/dist/Avatar/AvatarGroup.css +15 -8
- package/dist/Backdrop/Backdrop.css +2 -1
- package/dist/Badge/Badge.css +27 -17
- package/dist/Breadcrumb/Breadcrumb.css +34 -0
- package/dist/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/dist/Breadcrumb/Breadcrumb.js +128 -0
- package/dist/Breadcrumb/Breadcrumb.types.d.ts +49 -0
- package/dist/Breadcrumb/Breadcrumb.types.js +15 -0
- package/dist/Breadcrumb/BreadcrumbItem.d.ts +4 -0
- package/dist/Breadcrumb/BreadcrumbItem.js +78 -0
- package/dist/Breadcrumb/index.d.ts +4 -0
- package/dist/Breadcrumb/index.js +45 -0
- package/dist/Button/Button.css +37 -25
- package/dist/Calendar/Calendar.css +33 -18
- package/dist/Calendar/Calendar.d.ts +1 -1
- package/dist/Calendar/Calendar.js +38 -17
- package/dist/Calendar/Calendar.types.d.ts +21 -0
- package/dist/Card/CardFooter.css +2 -1
- package/dist/Card/CardHeader.css +3 -1
- package/dist/Checkbox/Checkbox.css +7 -5
- package/dist/CitySelector/CitySelector.css +29 -15
- package/dist/CitySelector/CitySelectorCore.js +25 -16
- package/dist/CitySelector/Selector/index.css +4 -4
- package/dist/Collapse/Collapse.css +6 -0
- package/dist/Collapse/Collapse.d.ts +5 -0
- package/dist/Collapse/Collapse.js +165 -0
- package/dist/Collapse/Collapse.types.d.ts +16 -0
- package/dist/Collapse/Collapse.types.js +15 -0
- package/dist/Collapse/index.d.ts +2 -0
- package/dist/Collapse/index.js +41 -0
- package/dist/CollapsePanel/CollapsePanel.css +32 -0
- package/dist/CollapsePanel/CollapsePanel.d.ts +5 -0
- package/dist/CollapsePanel/CollapsePanel.js +159 -0
- package/dist/CollapsePanel/CollapsePanel.types.d.ts +64 -0
- package/dist/CollapsePanel/CollapsePanel.types.js +15 -0
- package/dist/CollapsePanel/CollapsePanelItem.d.ts +4 -0
- package/dist/CollapsePanel/CollapsePanelItem.js +112 -0
- package/dist/CollapsePanel/index.d.ts +4 -0
- package/dist/CollapsePanel/index.js +45 -0
- package/dist/Countdown/Countdown.css +2 -1
- package/dist/Dialog/Dialog.d.ts +2 -2
- package/dist/Dialog/Dialog.js +20 -8
- package/dist/Dialog/Dialog.types.d.ts +12 -1
- package/dist/Dialog/FunctionalDialog.js +38 -2
- package/dist/Dialog/index.css +27 -18
- package/dist/Divider/Divider.css +6 -4
- package/dist/IconButton/IconButton.css +9 -7
- package/dist/Image/index.css +2 -1
- package/dist/Input/Input.css +14 -7
- package/dist/List/List.css +3 -0
- package/dist/List/ListItem.css +3 -3
- package/dist/List/ListItemContent.css +1 -1
- package/dist/Loading/Loading.css +4 -2
- package/dist/NavBar/NavBar.css +9 -5
- package/dist/Picker/Picker.css +25 -29
- package/dist/Picker/Picker.js +31 -11
- package/dist/Picker/Picker.types.d.ts +4 -0
- package/dist/Picker/PickerPanel.css +8 -8
- package/dist/Picker/PickerPanel.js +14 -8
- package/dist/Picker/utils.d.ts +16 -0
- package/dist/Picker/utils.js +32 -2
- package/dist/Popover/Popover.css +94 -0
- package/dist/Popover/Popover.d.ts +5 -0
- package/dist/Popover/Popover.js +209 -0
- package/dist/Popover/Popover.types.d.ts +58 -0
- package/dist/Popover/Popover.types.js +15 -0
- package/dist/Popover/index.d.ts +2 -0
- package/dist/Popover/index.js +41 -0
- package/dist/Portal/Portal.types.d.ts +5 -1
- package/dist/Portal/PortalCore.js +8 -1
- package/dist/Progress/Progress.css +9 -7
- package/dist/Radio/Radio.css +5 -4
- package/dist/Rating/Rating.css +8 -4
- package/dist/Select/Select.css +21 -10
- package/dist/Select/Select.js +1 -1
- package/dist/Select/SelectOption.js +3 -0
- package/dist/Skeleton/Skeleton.css +5 -5
- package/dist/Slider/Slider.css +29 -18
- package/dist/Steps/Step.css +13 -13
- package/dist/Steps/Steps.css +14 -7
- package/dist/Swiper/Swiper.css +2 -1
- package/dist/Switch/Switch.css +31 -16
- package/dist/TabBar/TabBar.css +7 -3
- package/dist/TabBar/TabBarItem.css +0 -1
- package/dist/Tabs/Tab.css +6 -10
- package/dist/Tabs/Tabs.css +10 -9
- package/dist/Tag/Tag.css +7 -10
- package/dist/Tag/TagGroup.css +9 -1
- package/dist/TextArea/TextArea.css +23 -13
- package/dist/ThemeProvider/ThemeProvider.d.ts +4 -0
- package/dist/ThemeProvider/ThemeProvider.js +91 -0
- package/dist/ThemeProvider/ThemeProvider.types.d.ts +127 -0
- package/dist/ThemeProvider/ThemeProvider.types.js +27 -0
- package/dist/ThemeProvider/hooks/ThemeContext.d.ts +4 -0
- package/dist/ThemeProvider/hooks/ThemeContext.js +35 -0
- package/dist/ThemeProvider/hooks/createTheme.d.ts +2 -0
- package/dist/ThemeProvider/hooks/createTheme.js +55 -0
- package/dist/ThemeProvider/hooks/index.d.ts +4 -0
- package/dist/ThemeProvider/hooks/index.js +43 -0
- package/dist/ThemeProvider/hooks/useTheme.d.ts +1 -0
- package/dist/ThemeProvider/hooks/useTheme.js +39 -0
- package/dist/ThemeProvider/index.d.ts +4 -0
- package/dist/ThemeProvider/index.js +45 -0
- package/dist/ThemeProvider/utils/constants.d.ts +38 -0
- package/dist/ThemeProvider/utils/constants.js +65 -0
- package/dist/ThemeProvider/utils/index.d.ts +2 -0
- package/dist/ThemeProvider/utils/index.js +23 -0
- package/dist/ThemeProvider/utils/mountTokens.d.ts +26 -0
- package/dist/ThemeProvider/utils/mountTokens.js +123 -0
- package/dist/Toast/FunctionalToast.js +18 -0
- package/dist/Toast/Toast.css +18 -20
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/Toast.js +52 -48
- package/dist/Toast/Toast.types.d.ts +15 -1
- package/dist/Tooltip/Tooltip.css +91 -0
- package/dist/Tooltip/Tooltip.d.ts +5 -0
- package/dist/Tooltip/Tooltip.js +198 -0
- package/dist/Tooltip/Tooltip.types.d.ts +49 -0
- package/dist/Tooltip/Tooltip.types.js +15 -0
- package/dist/Tooltip/index.d.ts +2 -0
- package/dist/Tooltip/index.js +41 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +15 -1
- package/dist/locales/base.d.ts +40 -0
- package/dist/locales/base.js +15 -0
- package/dist/locales/en-US.d.ts +3 -0
- package/dist/locales/en-US.js +69 -0
- package/dist/locales/hooks/useLocaleText.d.ts +3 -0
- package/dist/locales/hooks/useLocaleText.js +43 -0
- package/dist/locales/index.d.ts +5 -0
- package/dist/locales/index.js +49 -0
- package/dist/locales/zh-CN.d.ts +3 -0
- package/dist/locales/zh-CN.js +51 -0
- package/dist/locales/zh-TW.d.ts +3 -0
- package/dist/locales/zh-TW.js +51 -0
- package/es/ActionSheet/ActionSheet.css +6 -3
- package/es/ActionSheet/ActionSheetItem.css +10 -6
- package/es/Alert/index.css +14 -8
- package/es/Avatar/Avatar.css +13 -9
- package/es/Avatar/AvatarGroup.css +15 -8
- package/es/Backdrop/Backdrop.css +2 -1
- package/es/Badge/Badge.css +27 -17
- package/es/Breadcrumb/Breadcrumb.css +34 -0
- package/es/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/es/Breadcrumb/Breadcrumb.js +101 -0
- package/es/Breadcrumb/Breadcrumb.types.d.ts +49 -0
- package/es/Breadcrumb/Breadcrumb.types.js +1 -0
- package/es/Breadcrumb/BreadcrumbItem.d.ts +4 -0
- package/es/Breadcrumb/BreadcrumbItem.js +51 -0
- package/es/Breadcrumb/index.d.ts +4 -0
- package/es/Breadcrumb/index.js +9 -0
- package/es/Button/Button.css +37 -25
- package/es/Calendar/Calendar.css +33 -18
- package/es/Calendar/Calendar.d.ts +1 -1
- package/es/Calendar/Calendar.js +38 -17
- package/es/Calendar/Calendar.types.d.ts +21 -0
- package/es/Card/CardFooter.css +2 -1
- package/es/Card/CardHeader.css +3 -1
- package/es/Checkbox/Checkbox.css +7 -5
- package/es/CitySelector/CitySelector.css +29 -15
- package/es/CitySelector/CitySelectorCore.js +25 -16
- package/es/CitySelector/Selector/index.css +4 -4
- package/es/Collapse/Collapse.css +6 -0
- package/es/Collapse/Collapse.d.ts +5 -0
- package/es/Collapse/Collapse.js +144 -0
- package/es/Collapse/Collapse.types.d.ts +16 -0
- package/es/Collapse/Collapse.types.js +1 -0
- package/es/Collapse/index.d.ts +2 -0
- package/es/Collapse/index.js +6 -0
- package/es/CollapsePanel/CollapsePanel.css +32 -0
- package/es/CollapsePanel/CollapsePanel.d.ts +5 -0
- package/es/CollapsePanel/CollapsePanel.js +132 -0
- package/es/CollapsePanel/CollapsePanel.types.d.ts +64 -0
- package/es/CollapsePanel/CollapsePanel.types.js +1 -0
- package/es/CollapsePanel/CollapsePanelItem.d.ts +4 -0
- package/es/CollapsePanel/CollapsePanelItem.js +85 -0
- package/es/CollapsePanel/index.d.ts +4 -0
- package/es/CollapsePanel/index.js +9 -0
- package/es/Countdown/Countdown.css +2 -1
- package/es/Dialog/Dialog.d.ts +2 -2
- package/es/Dialog/Dialog.js +20 -8
- package/es/Dialog/Dialog.types.d.ts +12 -1
- package/es/Dialog/FunctionalDialog.js +38 -2
- package/es/Dialog/index.css +27 -18
- package/es/Divider/Divider.css +6 -4
- package/es/IconButton/IconButton.css +9 -7
- package/es/Image/index.css +2 -1
- package/es/Input/Input.css +14 -7
- package/es/List/List.css +3 -0
- package/es/List/ListItem.css +3 -3
- package/es/List/ListItemContent.css +1 -1
- package/es/Loading/Loading.css +4 -2
- package/es/Modal/Modal.miniapp.d.ts +1 -1
- package/es/NavBar/NavBar.css +9 -5
- package/es/Picker/Picker.css +25 -29
- package/es/Picker/Picker.js +32 -12
- package/es/Picker/Picker.types.d.ts +4 -0
- package/es/Picker/PickerPanel.css +8 -8
- package/es/Picker/PickerPanel.js +14 -8
- package/es/Picker/utils.d.ts +16 -0
- package/es/Picker/utils.js +29 -1
- package/es/Popover/Popover.css +94 -0
- package/es/Popover/Popover.d.ts +5 -0
- package/es/Popover/Popover.js +186 -0
- package/es/Popover/Popover.types.d.ts +58 -0
- package/es/Popover/Popover.types.js +1 -0
- package/es/Popover/index.d.ts +2 -0
- package/es/Popover/index.js +6 -0
- package/es/Portal/Portal.types.d.ts +5 -1
- package/es/Portal/PortalCore.js +8 -1
- package/es/Progress/Progress.css +9 -7
- package/es/Radio/Radio.css +5 -4
- package/es/Rating/Rating.css +8 -4
- package/es/Select/Select.css +21 -10
- package/es/Select/Select.js +1 -1
- package/es/Select/SelectOption.js +3 -0
- package/es/Skeleton/Skeleton.css +5 -5
- package/es/Slider/Slider.css +29 -18
- package/es/Steps/Step.css +13 -13
- package/es/Steps/Steps.css +14 -7
- package/es/Swiper/Swiper.css +2 -1
- package/es/Switch/Switch.css +31 -16
- package/es/TabBar/TabBar.css +7 -3
- package/es/TabBar/TabBarItem.css +0 -1
- package/es/Tabs/Tab.css +6 -10
- package/es/Tabs/Tabs.css +10 -9
- package/es/Tag/Tag.css +7 -10
- package/es/Tag/TagGroup.css +9 -1
- package/es/TextArea/TextArea.css +23 -13
- package/es/ThemeProvider/ThemeProvider.d.ts +4 -0
- package/es/ThemeProvider/ThemeProvider.js +62 -0
- package/es/ThemeProvider/ThemeProvider.types.d.ts +127 -0
- package/es/ThemeProvider/ThemeProvider.types.js +1 -0
- package/es/ThemeProvider/hooks/ThemeContext.d.ts +4 -0
- package/es/ThemeProvider/hooks/ThemeContext.js +6 -0
- package/es/ThemeProvider/hooks/createTheme.d.ts +2 -0
- package/es/ThemeProvider/hooks/createTheme.js +38 -0
- package/es/ThemeProvider/hooks/index.d.ts +4 -0
- package/es/ThemeProvider/hooks/index.js +8 -0
- package/es/ThemeProvider/hooks/useTheme.d.ts +1 -0
- package/es/ThemeProvider/hooks/useTheme.js +10 -0
- package/es/ThemeProvider/index.d.ts +4 -0
- package/es/ThemeProvider/index.js +8 -0
- package/es/ThemeProvider/utils/constants.d.ts +38 -0
- package/es/ThemeProvider/utils/constants.js +40 -0
- package/es/ThemeProvider/utils/index.d.ts +2 -0
- package/es/ThemeProvider/utils/index.js +2 -0
- package/es/ThemeProvider/utils/mountTokens.d.ts +26 -0
- package/es/ThemeProvider/utils/mountTokens.js +88 -0
- package/es/Toast/FunctionalToast.js +18 -0
- package/es/Toast/Toast.css +18 -20
- package/es/Toast/Toast.d.ts +2 -2
- package/es/Toast/Toast.js +53 -49
- package/es/Toast/Toast.types.d.ts +15 -1
- package/es/Tooltip/Tooltip.css +91 -0
- package/es/Tooltip/Tooltip.d.ts +5 -0
- package/es/Tooltip/Tooltip.js +175 -0
- package/es/Tooltip/Tooltip.types.d.ts +49 -0
- package/es/Tooltip/Tooltip.types.js +1 -0
- package/es/Tooltip/index.d.ts +2 -0
- package/es/Tooltip/index.js +6 -0
- package/es/index.d.ts +7 -0
- package/es/index.js +7 -0
- package/es/locales/base.d.ts +40 -0
- package/es/locales/base.js +0 -0
- package/es/locales/en-US.d.ts +3 -0
- package/es/locales/en-US.js +50 -0
- package/es/locales/hooks/useLocaleText.d.ts +3 -0
- package/es/locales/hooks/useLocaleText.js +26 -0
- package/es/locales/index.d.ts +5 -0
- package/es/locales/index.js +11 -0
- package/es/locales/zh-CN.d.ts +3 -0
- package/es/locales/zh-CN.js +32 -0
- package/es/locales/zh-TW.d.ts +3 -0
- package/es/locales/zh-TW.js +32 -0
- package/package.json +5 -5
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface BaseLang {
|
|
2
|
+
dialog?: {
|
|
3
|
+
cancel?: string;
|
|
4
|
+
confirm?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
};
|
|
7
|
+
picker?: {
|
|
8
|
+
cancel?: string;
|
|
9
|
+
confirm?: string;
|
|
10
|
+
};
|
|
11
|
+
calendar?: {
|
|
12
|
+
Monday?: string;
|
|
13
|
+
Tuesday?: string;
|
|
14
|
+
Wednesday?: string;
|
|
15
|
+
Thursday?: string;
|
|
16
|
+
Friday?: string;
|
|
17
|
+
Saturday?: string;
|
|
18
|
+
Sunday?: string;
|
|
19
|
+
};
|
|
20
|
+
input?: {
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
};
|
|
23
|
+
textarea?: {
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
};
|
|
26
|
+
selector?: {
|
|
27
|
+
select?: string;
|
|
28
|
+
};
|
|
29
|
+
citySelector?: {
|
|
30
|
+
selectedCityGroupName?: string;
|
|
31
|
+
currentCityGroupName?: string;
|
|
32
|
+
hotCitiesGroupName?: string;
|
|
33
|
+
located?: string;
|
|
34
|
+
current?: string;
|
|
35
|
+
hot?: string;
|
|
36
|
+
gpsType?: Record<string, string>;
|
|
37
|
+
currentType?: Record<string, string>;
|
|
38
|
+
hotCityType?: Record<string, string>;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var base_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(base_exports);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var en_US_exports = {};
|
|
19
|
+
__export(en_US_exports, {
|
|
20
|
+
default: () => en_US_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(en_US_exports);
|
|
23
|
+
const enUS = {
|
|
24
|
+
dialog: {
|
|
25
|
+
cancel: "Cancel",
|
|
26
|
+
confirm: "Confirm",
|
|
27
|
+
placeholder: "Placeholder"
|
|
28
|
+
},
|
|
29
|
+
picker: {
|
|
30
|
+
cancel: "Cancel",
|
|
31
|
+
confirm: "Confirm"
|
|
32
|
+
},
|
|
33
|
+
calendar: {
|
|
34
|
+
Monday: "Mon",
|
|
35
|
+
Tuesday: "Tue",
|
|
36
|
+
Wednesday: "Wed",
|
|
37
|
+
Thursday: "Thu",
|
|
38
|
+
Friday: "Fri",
|
|
39
|
+
Saturday: "Sat",
|
|
40
|
+
Sunday: "Sun"
|
|
41
|
+
},
|
|
42
|
+
input: {
|
|
43
|
+
placeholder: "Placeholder"
|
|
44
|
+
},
|
|
45
|
+
textarea: {
|
|
46
|
+
placeholder: "Placeholder"
|
|
47
|
+
},
|
|
48
|
+
selector: {
|
|
49
|
+
select: "Please select"
|
|
50
|
+
},
|
|
51
|
+
citySelector: {
|
|
52
|
+
selectedCityGroupName: "Selected City",
|
|
53
|
+
currentCityGroupName: "Current City",
|
|
54
|
+
hotCitiesGroupName: "Hot Cities",
|
|
55
|
+
gpsType: {
|
|
56
|
+
title: "Current",
|
|
57
|
+
code: "GPS"
|
|
58
|
+
},
|
|
59
|
+
currentType: {
|
|
60
|
+
title: "Selected",
|
|
61
|
+
code: "CRRT"
|
|
62
|
+
},
|
|
63
|
+
hotCityType: {
|
|
64
|
+
title: "Hot",
|
|
65
|
+
code: "HOT"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
var en_US_default = enUS;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __export = (target, all) => {
|
|
20
|
+
for (var name in all)
|
|
21
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
22
|
+
};
|
|
23
|
+
var __copyProps = (to, from, except, desc) => {
|
|
24
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
25
|
+
for (let key of __getOwnPropNames(from))
|
|
26
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
27
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
28
|
+
}
|
|
29
|
+
return to;
|
|
30
|
+
};
|
|
31
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
+
var useLocaleText_exports = {};
|
|
33
|
+
__export(useLocaleText_exports, {
|
|
34
|
+
default: () => useLocaleText_default
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(useLocaleText_exports);
|
|
37
|
+
var import__ = require("../index");
|
|
38
|
+
var import_ThemeProvider = require("../../ThemeProvider");
|
|
39
|
+
function useLocaleText(componentName, theme) {
|
|
40
|
+
const { locale } = (0, import_ThemeProvider.useTheme)(theme);
|
|
41
|
+
return __spreadValues(__spreadValues({}, import__.CN[componentName]), (locale == null ? void 0 : locale[componentName]) || {});
|
|
42
|
+
}
|
|
43
|
+
var useLocaleText_default = useLocaleText;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var locales_exports = {};
|
|
30
|
+
__export(locales_exports, {
|
|
31
|
+
CN: () => import_zh_CN.default,
|
|
32
|
+
EN: () => import_en_US.default,
|
|
33
|
+
TW: () => import_zh_TW.default,
|
|
34
|
+
useLocaleText: () => import_useLocaleText.default
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(locales_exports);
|
|
37
|
+
var import_en_US = __toESM(require("./en-US"));
|
|
38
|
+
var import_zh_CN = __toESM(require("./zh-CN"));
|
|
39
|
+
var import_zh_TW = __toESM(require("./zh-TW"));
|
|
40
|
+
var import_useLocaleText = __toESM(require("./hooks/useLocaleText"));
|
|
41
|
+
__reExport(locales_exports, require("./base"), module.exports);
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
CN,
|
|
45
|
+
EN,
|
|
46
|
+
TW,
|
|
47
|
+
useLocaleText,
|
|
48
|
+
...require("./base")
|
|
49
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var zh_CN_exports = {};
|
|
19
|
+
__export(zh_CN_exports, {
|
|
20
|
+
default: () => zh_CN_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(zh_CN_exports);
|
|
23
|
+
const zhCN = {
|
|
24
|
+
dialog: {
|
|
25
|
+
cancel: "\u53D6\u6D88",
|
|
26
|
+
confirm: "\u786E\u5B9A",
|
|
27
|
+
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9"
|
|
28
|
+
},
|
|
29
|
+
picker: {
|
|
30
|
+
cancel: "\u53D6\u6D88",
|
|
31
|
+
confirm: "\u786E\u8BA4"
|
|
32
|
+
},
|
|
33
|
+
calendar: {
|
|
34
|
+
Monday: "\u4E00",
|
|
35
|
+
Tuesday: "\u4E8C",
|
|
36
|
+
Wednesday: "\u4E09",
|
|
37
|
+
Thursday: "\u56DB",
|
|
38
|
+
Friday: "\u4E94",
|
|
39
|
+
Saturday: "\u516D",
|
|
40
|
+
Sunday: "\u65E5"
|
|
41
|
+
},
|
|
42
|
+
citySelector: {
|
|
43
|
+
selectedCityGroupName: "\u5F53\u524D\u57CE\u5E02",
|
|
44
|
+
currentCityGroupName: "\u5B9A\u4F4D\u57CE\u5E02",
|
|
45
|
+
hotCitiesGroupName: "\u70ED\u95E8\u57CE\u5E02",
|
|
46
|
+
located: "\u5B9A\u4F4D",
|
|
47
|
+
current: "\u5F53\u524D",
|
|
48
|
+
hot: "\u70ED\u95E8"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var zh_CN_default = zhCN;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var zh_TW_exports = {};
|
|
19
|
+
__export(zh_TW_exports, {
|
|
20
|
+
default: () => zh_TW_default
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(zh_TW_exports);
|
|
23
|
+
const zhTW = {
|
|
24
|
+
dialog: {
|
|
25
|
+
cancel: "\u53D6\u6D88",
|
|
26
|
+
confirm: "\u78BA\u8A8D",
|
|
27
|
+
placeholder: "\u8ACB\u8F38\u5165\u5167\u5BB9"
|
|
28
|
+
},
|
|
29
|
+
picker: {
|
|
30
|
+
cancel: "\u53D6\u6D88",
|
|
31
|
+
confirm: "\u78BA\u8A8D"
|
|
32
|
+
},
|
|
33
|
+
calendar: {
|
|
34
|
+
Monday: "\u4E00",
|
|
35
|
+
Tuesday: "\u4E8C",
|
|
36
|
+
Wednesday: "\u4E09",
|
|
37
|
+
Thursday: "\u56DB",
|
|
38
|
+
Friday: "\u4E94",
|
|
39
|
+
Saturday: "\u516D",
|
|
40
|
+
Sunday: "\u65E5"
|
|
41
|
+
},
|
|
42
|
+
citySelector: {
|
|
43
|
+
selectedCityGroupName: "\u76EE\u524D\u57CE\u5E02",
|
|
44
|
+
currentCityGroupName: "\u5B9A\u4F4D\u57CE\u5E02",
|
|
45
|
+
hotCitiesGroupName: "\u71B1\u9580\u57CE\u5E02",
|
|
46
|
+
located: "\u5B9A\u4F4D",
|
|
47
|
+
current: "\u76EE\u524D",
|
|
48
|
+
hot: "\u71B1\u9580"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
var zh_TW_default = zhTW;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
.bui-action-sheet {
|
|
2
|
+
--extra-line-height: var(--bui-action-sheet-extra-line-height, 23px);
|
|
3
|
+
--extra-padding: var(--bui-action-sheet-extra-padding, var(--bui-spacing-xl));
|
|
4
|
+
--extra-magin: var(--bui-action-sheet-extra-magin, 0 var(--bui-spacing-xl));
|
|
2
5
|
font-family: var(--bui-font-family);
|
|
3
6
|
}
|
|
4
7
|
.bui-action-sheet-content {
|
|
@@ -17,11 +20,11 @@
|
|
|
17
20
|
}
|
|
18
21
|
.bui-action-sheet-extra {
|
|
19
22
|
font-size: var(--bui-text-size-1);
|
|
20
|
-
line-height:
|
|
21
|
-
padding: var(--
|
|
23
|
+
line-height: var(--extra-line-height);
|
|
24
|
+
padding: var(--extra-padding);
|
|
22
25
|
color: var(--bui-color-fg-muted);
|
|
23
26
|
background: var(--bui-color-bg-view);
|
|
24
27
|
text-align: center;
|
|
25
28
|
border-bottom: 1px solid var(--bui-color-border-default);
|
|
26
|
-
margin:
|
|
29
|
+
margin: var(--extra-magin);
|
|
27
30
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
.bui-action-sheet-item {
|
|
2
|
-
--
|
|
3
|
-
--
|
|
2
|
+
--padding: var(--bui-action-sheet-item-padding, var(--bui-spacing-xl));
|
|
3
|
+
--font-size: var(--bui-action-sheet-item-font-size, var(--bui-title-size-2));
|
|
4
|
+
--line-height: var(--bui-action-sheet-item-line-height, 24px);
|
|
5
|
+
--color: var(--bui-action-sheet-item-color, var(--bui-color-fg-default));
|
|
6
|
+
--margin: var(--bui-action-sheet-item-margin, 0 var(--bui-spacing-xl));
|
|
7
|
+
--description-line-height: var(--bui-action-sheet-item-description-line-height, 19px);
|
|
4
8
|
font-family: var(--bui-font-family);
|
|
5
9
|
position: relative;
|
|
6
|
-
padding: var(--
|
|
10
|
+
padding: var(--padding);
|
|
7
11
|
cursor: pointer;
|
|
8
12
|
background: var(--bui-color-bg-view);
|
|
9
13
|
font-size: var(--font-size);
|
|
10
14
|
text-align: center;
|
|
11
|
-
line-height:
|
|
15
|
+
line-height: var(--line-height);
|
|
12
16
|
color: var(--color);
|
|
13
17
|
border-top: 1px solid var(--bui-color-border-default);
|
|
14
|
-
margin:
|
|
18
|
+
margin: var(--margin);
|
|
15
19
|
}
|
|
16
20
|
.bui-action-sheet-item:first-child {
|
|
17
21
|
border-top: none;
|
|
@@ -46,6 +50,6 @@
|
|
|
46
50
|
}
|
|
47
51
|
.bui-action-sheet-item-description {
|
|
48
52
|
font-size: var(--bui-text-size-2);
|
|
49
|
-
line-height:
|
|
53
|
+
line-height: var(--description-line-height);
|
|
50
54
|
color: var(--bui-color-fg-subtle);
|
|
51
55
|
}
|
package/es/Alert/index.css
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
.bui-alert {
|
|
2
|
-
--
|
|
2
|
+
--content-marquee-speed: var(--bui-alert-content-marquee-speed, 10s);
|
|
3
|
+
--padding: var(--bui-alert-padding, 8px);
|
|
4
|
+
--line-height: var(--bui-alert-line-height, 16px);
|
|
5
|
+
--default-icon-font-size: var(--bui-alert-default-icon-font-size, 15px);
|
|
6
|
+
--action-margin-left: var(--bui-alert-action-margin-left, 16px);
|
|
7
|
+
--icon-margin-right: var(--bui-alert-icon-margin-right, var(--bui-spacing-xs));
|
|
8
|
+
--icon-font-size: var(--bui-alert-icon-font-size, var(--bui-title-size-4));
|
|
3
9
|
display: flex;
|
|
4
|
-
padding:
|
|
10
|
+
padding: var(--padding);
|
|
5
11
|
border-radius: var(--bui-shape-radius-default);
|
|
6
12
|
align-items: center;
|
|
7
|
-
line-height:
|
|
13
|
+
line-height: var(--line-height);
|
|
8
14
|
font-size: var(--bui-text-size-3);
|
|
9
15
|
font-family: var(--bui-font-family);
|
|
10
16
|
}
|
|
@@ -49,14 +55,14 @@
|
|
|
49
55
|
color: var(--bui-color-warning);
|
|
50
56
|
}
|
|
51
57
|
.bui-alert-default-icon {
|
|
52
|
-
font-size:
|
|
58
|
+
font-size: var(--default-icon-font-size);
|
|
53
59
|
}
|
|
54
60
|
.bui-alert-content {
|
|
55
61
|
flex-grow: 1;
|
|
56
62
|
}
|
|
57
63
|
.bui-alert-action {
|
|
58
64
|
flex-shrink: 0;
|
|
59
|
-
margin-left:
|
|
65
|
+
margin-left: var(--action-margin-left);
|
|
60
66
|
word-wrap: keep-all;
|
|
61
67
|
font-size: var(--bui-text-size-3);
|
|
62
68
|
cursor: pointer;
|
|
@@ -68,9 +74,9 @@
|
|
|
68
74
|
.bui-alert-icon {
|
|
69
75
|
display: flex;
|
|
70
76
|
align-items: center;
|
|
71
|
-
|
|
77
|
+
margin-right: var(--icon-margin-right);
|
|
72
78
|
vertical-align: middle;
|
|
73
|
-
font-size:
|
|
79
|
+
font-size: var(--icon-font-size);
|
|
74
80
|
cursor: pointer;
|
|
75
81
|
}
|
|
76
82
|
.bui-alert-marquee {
|
|
@@ -80,7 +86,7 @@
|
|
|
80
86
|
display: inline-block;
|
|
81
87
|
padding-left: 100%;
|
|
82
88
|
white-space: nowrap;
|
|
83
|
-
animation: marquee var(--
|
|
89
|
+
animation: marquee var(--content-marquee-speed) linear infinite both;
|
|
84
90
|
}
|
|
85
91
|
@keyframes marquee {
|
|
86
92
|
100% {
|
package/es/Avatar/Avatar.css
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
.bui-avatar {
|
|
2
|
+
--large-size: var(--bui-avatar-large-size, 60px);
|
|
3
|
+
--medium-size: var(--bui-avatar-medium-size, 42px);
|
|
4
|
+
--small-size: var(--bui-avatar-small-size, 30px);
|
|
5
|
+
--xsmall-size: var(--bui-avatar-xsmall-size, 24px);
|
|
2
6
|
display: flex;
|
|
3
7
|
justify-content: center;
|
|
4
8
|
align-items: center;
|
|
5
|
-
font-size:
|
|
9
|
+
font-size: var(--bui-text-size-3);
|
|
6
10
|
background-color: var(--bui-color-bg-default);
|
|
7
11
|
font-family: var(--bui-font-family);
|
|
8
12
|
}
|
|
@@ -12,20 +16,20 @@
|
|
|
12
16
|
text-overflow: ellipsis;
|
|
13
17
|
}
|
|
14
18
|
.bui-avatar-large {
|
|
15
|
-
width:
|
|
16
|
-
height:
|
|
19
|
+
width: var(--large-size);
|
|
20
|
+
height: var(--large-size);
|
|
17
21
|
}
|
|
18
22
|
.bui-avatar-medium {
|
|
19
|
-
width:
|
|
20
|
-
height:
|
|
23
|
+
width: var(--medium-size);
|
|
24
|
+
height: var(--medium-size);
|
|
21
25
|
}
|
|
22
26
|
.bui-avatar-small {
|
|
23
|
-
width:
|
|
24
|
-
height:
|
|
27
|
+
width: var(--small-size);
|
|
28
|
+
height: var(--small-size);
|
|
25
29
|
}
|
|
26
30
|
.bui-avatar-xsmall {
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
31
|
+
width: var(--xsmall-size);
|
|
32
|
+
height: var(--xsmall-size);
|
|
29
33
|
}
|
|
30
34
|
.bui-avatar-rounded {
|
|
31
35
|
border-radius: 50%;
|
|
@@ -1,31 +1,38 @@
|
|
|
1
1
|
.bui-avatar-group {
|
|
2
|
+
--xsmall-margin-left: var(--bui-avatar-group-xsmall-margin-left, -5px);
|
|
3
|
+
--small-margin-left: var(--bui-avatar-group-small-margin-left, -9px);
|
|
4
|
+
--small-box-shadow: var(--bui-avatar-group-small-box-shadow, 0 0 0 1px var(--bui-color-bg-view));
|
|
5
|
+
--medium-margin-left: var(--bui-avatar-group-medium-margin-left, -13px);
|
|
6
|
+
--medium-box-shadow: var(--bui-avatar-group-medium-box-shadow, 0 0 0 2px var(--bui-color-bg-view));
|
|
7
|
+
--large-margin-left: var(--bui-avatar-group-large-margin-left, -21px);
|
|
8
|
+
--large-box-shadow: var(--bui-avatar-group-large-box-shadow, 0 0 0 3px var(--bui-color-bg-view));
|
|
2
9
|
display: flex;
|
|
3
10
|
flex-direction: row;
|
|
4
11
|
font-family: var(--bui-font-family);
|
|
5
12
|
}
|
|
6
13
|
.bui-avatar-group-avatar,
|
|
7
14
|
.bui-avatar-group-extra {
|
|
8
|
-
box-shadow:
|
|
15
|
+
box-shadow: var(--medium-box-shadow);
|
|
9
16
|
color: var(--bui-color-fg-default);
|
|
10
17
|
}
|
|
11
18
|
.bui-avatar-group .bui-avatar-xsmall:not(:first-child) {
|
|
12
|
-
margin-left: -
|
|
19
|
+
margin-left: var(--xsmall-margin-left);
|
|
13
20
|
}
|
|
14
21
|
.bui-avatar-group .bui-avatar-small {
|
|
15
|
-
box-shadow:
|
|
22
|
+
box-shadow: var(--small-box-shadow);
|
|
16
23
|
}
|
|
17
24
|
.bui-avatar-group .bui-avatar-small:not(:first-child) {
|
|
18
|
-
margin-left: -
|
|
25
|
+
margin-left: var(--small-margin-left);
|
|
19
26
|
}
|
|
20
27
|
.bui-avatar-group .bui-avatar-large {
|
|
21
|
-
box-shadow:
|
|
28
|
+
box-shadow: var(--large-box-shadow);
|
|
22
29
|
}
|
|
23
30
|
.bui-avatar-group .bui-avatar-large:not(:first-child) {
|
|
24
|
-
margin-left: -
|
|
31
|
+
margin-left: var(--large-margin-left);
|
|
25
32
|
}
|
|
26
33
|
.bui-avatar-group .bui-avatar-medium {
|
|
27
|
-
box-shadow:
|
|
34
|
+
box-shadow: var(--medium-box-shadow);
|
|
28
35
|
}
|
|
29
36
|
.bui-avatar-group .bui-avatar-medium:not(:first-child) {
|
|
30
|
-
margin-left: -
|
|
37
|
+
margin-left: var(--medium-margin-left);
|
|
31
38
|
}
|
package/es/Backdrop/Backdrop.css
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.bui-backdrop {
|
|
2
|
+
--background-color: var(--bui-backdrop-background-color, rgba(0, 0, 0, 0.68));
|
|
2
3
|
position: fixed;
|
|
3
4
|
display: flex;
|
|
4
5
|
align-items: center;
|
|
@@ -7,7 +8,7 @@
|
|
|
7
8
|
bottom: 0;
|
|
8
9
|
left: 0;
|
|
9
10
|
top: 0;
|
|
10
|
-
background-color:
|
|
11
|
+
background-color: var(--background-color);
|
|
11
12
|
}
|
|
12
13
|
.bui-backdrop-invisible {
|
|
13
14
|
background-color: transparent;
|
package/es/Badge/Badge.css
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
.bui-badge {
|
|
2
|
+
--badge-position: var(--bui-badge-position, 14%);
|
|
3
|
+
--min-width: var(--bui-badge-min-width, 15px);
|
|
4
|
+
--height: var(--bui-badge-height, 15px);
|
|
5
|
+
--line-height: var(--bui-badge-line-height, 15px);
|
|
6
|
+
--padding: var(--bui-badge-padding, 0 3px);
|
|
7
|
+
--border-radius: var(--bui-badge-border-radius, 8px);
|
|
8
|
+
--outlined-padding: var(--bui-badge-outlined-padding, 0 2px);
|
|
9
|
+
--dot-size: var(--bui-badge-dot-size, 9px);
|
|
10
|
+
--bubble-padding: var(--bui-badge-bubble-padding, 0 5px);
|
|
11
|
+
--bubble-border-radius: var(--bui-badge-bubble-border-radius, 6px 6px 6px 0);
|
|
2
12
|
display: inline-block;
|
|
3
13
|
font-family: var(--bui-font-family);
|
|
4
14
|
}
|
|
@@ -8,18 +18,18 @@
|
|
|
8
18
|
.bui-badge-position .bui-badge-contained,
|
|
9
19
|
.bui-badge-position .bui-badge-outlined {
|
|
10
20
|
position: absolute;
|
|
11
|
-
top:
|
|
12
|
-
right:
|
|
21
|
+
top: var(--badge-position);
|
|
22
|
+
right: var(--badge-position);
|
|
13
23
|
transform: scale(1) translate(50%, -50%);
|
|
14
24
|
}
|
|
15
25
|
.bui-badge-position .bui-badge-dot {
|
|
16
|
-
top:
|
|
17
|
-
right:
|
|
26
|
+
top: var(--badge-position);
|
|
27
|
+
right: var(--badge-position);
|
|
18
28
|
transform: scale(1) translate(50%, -50%);
|
|
19
29
|
}
|
|
20
30
|
.bui-badge-position .bui-badge-bubble {
|
|
21
|
-
top:
|
|
22
|
-
right:
|
|
31
|
+
top: var(--badge-position);
|
|
32
|
+
right: var(--badge-position);
|
|
23
33
|
transform: scale(1) translate(50%, -50%);
|
|
24
34
|
}
|
|
25
35
|
.bui-badge-contained,
|
|
@@ -28,18 +38,18 @@
|
|
|
28
38
|
box-sizing: border-box;
|
|
29
39
|
align-items: center;
|
|
30
40
|
justify-content: center;
|
|
31
|
-
min-width:
|
|
32
|
-
height:
|
|
33
|
-
line-height:
|
|
34
|
-
padding:
|
|
41
|
+
min-width: var(--min-width);
|
|
42
|
+
height: var(--height);
|
|
43
|
+
line-height: var(--line-height);
|
|
44
|
+
padding: var(--padding);
|
|
35
45
|
font-size: var(--bui-text-size-4);
|
|
36
|
-
border-radius:
|
|
46
|
+
border-radius: var(--border-radius);
|
|
37
47
|
color: var(--bui-color-bg-view);
|
|
38
48
|
white-space: nowrap;
|
|
39
49
|
z-index: 1;
|
|
40
50
|
}
|
|
41
51
|
.bui-badge-outlined {
|
|
42
|
-
padding:
|
|
52
|
+
padding: var(--outlined-padding);
|
|
43
53
|
}
|
|
44
54
|
.bui-badge-primary {
|
|
45
55
|
background-color: var(--bui-color-primary);
|
|
@@ -57,15 +67,15 @@
|
|
|
57
67
|
background-color: var(--bui-color-danger);
|
|
58
68
|
}
|
|
59
69
|
.bui-badge-dot {
|
|
60
|
-
width:
|
|
70
|
+
width: var(--dot-size);
|
|
61
71
|
min-width: 0;
|
|
62
|
-
height:
|
|
72
|
+
height: var(--dot-size);
|
|
63
73
|
padding: 0;
|
|
64
74
|
border-radius: 100%;
|
|
65
75
|
}
|
|
66
76
|
.bui-badge-bubble {
|
|
67
|
-
border-radius:
|
|
68
|
-
padding:
|
|
77
|
+
border-radius: var(--bubble-border-radius);
|
|
78
|
+
padding: var(--bubble-padding);
|
|
69
79
|
}
|
|
70
80
|
.bui-badge-outlined {
|
|
71
81
|
background: var(--bui-color-bg-view);
|
|
@@ -91,5 +101,5 @@
|
|
|
91
101
|
color: var(--bui-color-danger);
|
|
92
102
|
}
|
|
93
103
|
.bui-badge-outlined.bui-badge-bubble {
|
|
94
|
-
border-radius:
|
|
104
|
+
border-radius: var(--bubble-border-radius);
|
|
95
105
|
}
|