@uzum-tech/ui 1.12.0 → 1.12.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/index.js +22930 -22766
- package/dist/index.prod.js +3 -3
- package/es/_internal/close/src/Close.d.ts +2 -2
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +2 -2
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +7 -7
- package/es/_internal/selection/src/Selection.d.ts +13 -13
- package/es/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/es/_internal/typography/index.d.ts +1 -0
- package/es/_internal/typography/src/text.d.ts +42 -3
- package/es/_internal/typography/src/text.js +17 -4
- package/es/_internal/typography/src/variants.d.ts +105 -4
- package/es/_internal/typography/src/variants.js +84 -42
- package/es/_internal/typography/styles/dark.js +1 -1
- package/es/_internal/typography/styles/light.d.ts +1 -1
- package/es/_internal/typography/styles/light.js +1 -1
- package/es/affix/src/Affix.d.ts +3 -3
- package/es/alert/src/Alert.d.ts +3 -3
- package/es/anchor/src/AnchorAdapter.d.ts +5 -5
- package/es/auto-complete/src/AutoComplete.d.ts +3 -3
- package/es/avatar/src/Avatar.d.ts +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/button/src/Button.d.ts +7 -7
- package/es/card/src/Card.d.ts +3 -3
- package/es/card-list/src/CardList.d.ts +2 -2
- package/es/card-list/src/CardListItem.d.ts +1 -1
- package/es/carousel/src/Carousel.d.ts +8 -8
- package/es/carousel/src/CarouselDots.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +12 -12
- package/es/cascader/src/CascaderMenu.d.ts +1 -1
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/es/checkbox/src/Checkbox.d.ts +5 -5
- package/es/code/src/Code.d.ts +1 -1
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +3 -3
- package/es/config-provider/src/ConfigProvider.d.ts +7 -1
- package/es/config-provider/src/ConfigProvider.js +83 -12
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +196 -34
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/create.js +34 -3
- package/es/data-table/src/DataTable.d.ts +6 -6
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +4 -4
- package/es/date-picker/src/panel/date.d.ts +1 -1
- package/es/date-picker/src/panel/daterange.d.ts +1 -1
- package/es/date-picker/src/panel/datetime.d.ts +1 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/es/date-picker/src/panel/panelMonth.d.ts +9 -9
- package/es/date-picker/src/panel/panelMonthContent.d.ts +1 -1
- package/es/date-picker/src/panel/panelYear.d.ts +9 -9
- package/es/date-picker/src/panel/panelYearContent.d.ts +1 -1
- package/es/descriptions/src/Descriptions.d.ts +3 -3
- package/es/dialog/src/Dialog.d.ts +1 -1
- package/es/dialog/src/DialogEnvironment.d.ts +3 -3
- package/es/dialog/src/DialogProvider.d.ts +29 -29
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +7 -7
- package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/es/dropdown/src/Dropdown.d.ts +15 -15
- package/es/dropdown/src/DropdownMenu.d.ts +2 -2
- package/es/dropdown/src/DropdownOption.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/flex/src/Flex.d.ts +1 -1
- package/es/form/src/FormItem.d.ts +3 -3
- package/es/form/src/FormItemCol.d.ts +2 -2
- package/es/form/src/FormItemGridItem.d.ts +2 -2
- package/es/form/src/FormItemRow.d.ts +2 -2
- package/es/form/src/utils.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +4 -4
- package/es/header/src/HeaderNavigation.d.ts +1 -1
- package/es/icon-bar/src/IconBar.d.ts +1 -1
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/input/src/Input.d.ts +8 -8
- package/es/input-number/src/InputNumber.d.ts +3 -3
- package/es/input-otp/src/InputOtp.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +2 -2
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +2 -2
- package/es/list/src/List.d.ts +6 -6
- package/es/list/src/ListItem.d.ts +4 -4
- package/es/log/src/Log.d.ts +2 -2
- package/es/mention/src/Mention.d.ts +3 -3
- package/es/menu/src/Menu.d.ts +5 -5
- package/es/menu/src/MenuOption.d.ts +1 -1
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/Submenu.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +3 -3
- package/es/modal/src/Modal.d.ts +6 -6
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal-fullscreen/src/ModalFull.d.ts +2 -2
- package/es/notification/src/Notification.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +9 -9
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +8 -8
- package/es/popover/src/Popover.d.ts +8 -8
- package/es/popover/src/PopoverBody.d.ts +2 -2
- package/es/popselect/src/Popselect.d.ts +81 -81
- package/es/popselect/src/PopselectPanel.d.ts +4 -4
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +4 -4
- package/es/qr-code/src/QrCode.d.ts +2 -2
- package/es/radio/src/Radio.d.ts +1 -1
- package/es/rate/src/Rate.d.ts +3 -3
- package/es/result/src/Result.d.ts +1 -1
- package/es/select/src/Select.d.ts +19 -19
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +4 -4
- package/es/space/src/Space.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +2 -2
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +4 -4
- package/es/tag/src/Tag.d.ts +2 -2
- package/es/tag/src/TagGroup.d.ts +1 -1
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/Panel.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +5 -5
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +8 -8
- package/es/transfer/src/Transfer.d.ts +3 -3
- package/es/tree/src/Tree.d.ts +18 -18
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +15 -15
- package/es/typography/index.d.ts +1 -0
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/headers.d.ts +6 -6
- package/es/typography/src/text.d.ts +44 -5
- package/es/upload/src/Upload.d.ts +11 -11
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +2 -2
- package/es/watermark/src/Watermark.d.ts +7 -7
- package/lib/_internal/close/src/Close.d.ts +2 -2
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +2 -2
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +7 -7
- package/lib/_internal/selection/src/Selection.d.ts +13 -13
- package/lib/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/_internal/typography/index.d.ts +1 -0
- package/lib/_internal/typography/src/text.d.ts +42 -3
- package/lib/_internal/typography/src/text.js +18 -5
- package/lib/_internal/typography/src/variants.d.ts +105 -4
- package/lib/_internal/typography/src/variants.js +87 -43
- package/lib/_internal/typography/styles/dark.js +2 -2
- package/lib/_internal/typography/styles/light.d.ts +1 -1
- package/lib/_internal/typography/styles/light.js +2 -2
- package/lib/affix/src/Affix.d.ts +3 -3
- package/lib/alert/src/Alert.d.ts +3 -3
- package/lib/anchor/src/AnchorAdapter.d.ts +5 -5
- package/lib/auto-complete/src/AutoComplete.d.ts +3 -3
- package/lib/avatar/src/Avatar.d.ts +1 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/button/src/Button.d.ts +7 -7
- package/lib/card/src/Card.d.ts +3 -3
- package/lib/card-list/src/CardList.d.ts +2 -2
- package/lib/card-list/src/CardListItem.d.ts +1 -1
- package/lib/carousel/src/Carousel.d.ts +8 -8
- package/lib/carousel/src/CarouselDots.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +12 -12
- package/lib/cascader/src/CascaderMenu.d.ts +1 -1
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +5 -5
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +3 -3
- package/lib/config-provider/src/ConfigProvider.d.ts +7 -1
- package/lib/config-provider/src/ConfigProvider.js +81 -10
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +196 -34
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/create.js +34 -3
- package/lib/data-table/src/DataTable.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +4 -4
- package/lib/date-picker/src/panel/date.d.ts +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/lib/date-picker/src/panel/panelMonth.d.ts +9 -9
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +1 -1
- package/lib/date-picker/src/panel/panelYear.d.ts +9 -9
- package/lib/date-picker/src/panel/panelYearContent.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +3 -3
- package/lib/dialog/src/Dialog.d.ts +1 -1
- package/lib/dialog/src/DialogEnvironment.d.ts +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +29 -29
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +7 -7
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +15 -15
- package/lib/dropdown/src/DropdownMenu.d.ts +2 -2
- package/lib/dropdown/src/DropdownOption.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/flex/src/Flex.d.ts +1 -1
- package/lib/form/src/FormItem.d.ts +3 -3
- package/lib/form/src/FormItemCol.d.ts +2 -2
- package/lib/form/src/FormItemGridItem.d.ts +2 -2
- package/lib/form/src/FormItemRow.d.ts +2 -2
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +4 -4
- package/lib/header/src/HeaderNavigation.d.ts +1 -1
- package/lib/icon-bar/src/IconBar.d.ts +1 -1
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/input/src/Input.d.ts +8 -8
- package/lib/input-number/src/InputNumber.d.ts +3 -3
- package/lib/input-otp/src/InputOtp.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +2 -2
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +2 -2
- package/lib/list/src/List.d.ts +6 -6
- package/lib/list/src/ListItem.d.ts +4 -4
- package/lib/log/src/Log.d.ts +2 -2
- package/lib/mention/src/Mention.d.ts +3 -3
- package/lib/menu/src/Menu.d.ts +5 -5
- package/lib/menu/src/MenuOption.d.ts +1 -1
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/Submenu.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +3 -3
- package/lib/modal/src/Modal.d.ts +6 -6
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal-fullscreen/src/ModalFull.d.ts +2 -2
- package/lib/notification/src/Notification.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +9 -9
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -8
- package/lib/popover/src/Popover.d.ts +8 -8
- package/lib/popover/src/PopoverBody.d.ts +2 -2
- package/lib/popselect/src/Popselect.d.ts +81 -81
- package/lib/popselect/src/PopselectPanel.d.ts +4 -4
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +4 -4
- package/lib/qr-code/src/QrCode.d.ts +2 -2
- package/lib/radio/src/Radio.d.ts +1 -1
- package/lib/rate/src/Rate.d.ts +3 -3
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/select/src/Select.d.ts +19 -19
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +4 -4
- package/lib/space/src/Space.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +2 -2
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +4 -4
- package/lib/tag/src/Tag.d.ts +2 -2
- package/lib/tag/src/TagGroup.d.ts +1 -1
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/Panel.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +5 -5
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +8 -8
- package/lib/transfer/src/Transfer.d.ts +3 -3
- package/lib/tree/src/Tree.d.ts +18 -18
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +15 -15
- package/lib/typography/index.d.ts +1 -0
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/headers.d.ts +6 -6
- package/lib/typography/src/text.d.ts +44 -5
- package/lib/upload/src/Upload.d.ts +11 -11
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +2 -2
- package/lib/watermark/src/Watermark.d.ts +7 -7
- package/package.json +1 -1
- package/web-types.json +59 -2
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.variantToCssVars = void 0;
|
|
3
|
+
exports.variantToCssVars = exports.defaultVariantOptions = void 0;
|
|
4
|
+
exports.mergeVariantOptions = mergeVariantOptions;
|
|
5
|
+
exports.mergeVariantWeights = mergeVariantWeights;
|
|
4
6
|
exports.getVariantCssVars = getVariantCssVars;
|
|
5
7
|
exports.getVariantTag = getVariantTag;
|
|
6
8
|
const fontFamily = 'var(--u-font-famliy-variant)';
|
|
7
|
-
|
|
9
|
+
exports.defaultVariantOptions = {
|
|
8
10
|
display: {
|
|
9
11
|
l: {
|
|
10
12
|
fontSize: '42px',
|
|
@@ -52,7 +54,12 @@ const baseStyles = {
|
|
|
52
54
|
letterSpacing: '-0.009em',
|
|
53
55
|
tag: 'h3'
|
|
54
56
|
},
|
|
55
|
-
s: {
|
|
57
|
+
s: {
|
|
58
|
+
fontSize: '18px',
|
|
59
|
+
lineHeight: '28px',
|
|
60
|
+
letterSpacing: '0',
|
|
61
|
+
tag: 'h3'
|
|
62
|
+
}
|
|
56
63
|
},
|
|
57
64
|
body: {
|
|
58
65
|
l: {
|
|
@@ -75,13 +82,21 @@ const baseStyles = {
|
|
|
75
82
|
}
|
|
76
83
|
}
|
|
77
84
|
};
|
|
85
|
+
const variantWeights = {
|
|
86
|
+
display: ['', 'medium', 'semi-bold', 'bold'],
|
|
87
|
+
heading: ['medium', 'semi-bold', 'bold'],
|
|
88
|
+
title: ['medium', 'semi-bold', 'bold'],
|
|
89
|
+
body: ['medium', 'semi-bold', 'bold']
|
|
90
|
+
};
|
|
78
91
|
const fontWeights = {
|
|
79
92
|
medium: { weight: '500', style: 'medium' },
|
|
80
93
|
'semi-bold': { weight: '600', style: 'semibold' },
|
|
81
|
-
bold: { weight: '700', style: 'bold' }
|
|
94
|
+
bold: { weight: '700', style: 'bold' },
|
|
95
|
+
'': { weight: '700', style: 'bold' }
|
|
82
96
|
};
|
|
83
|
-
function createVariant(category, size, weight) {
|
|
84
|
-
|
|
97
|
+
function createVariant(options, category, size, weight) {
|
|
98
|
+
var _a, _b, _c;
|
|
99
|
+
const base = (_b = (_a = options === null || options === void 0 ? void 0 : options[category]) === null || _a === void 0 ? void 0 : _a[size]) !== null && _b !== void 0 ? _b : (_c = exports.defaultVariantOptions[category]) === null || _c === void 0 ? void 0 : _c[size];
|
|
85
100
|
const { weight: fontWeight, style: fontStyle } = fontWeights[weight];
|
|
86
101
|
return {
|
|
87
102
|
fontFamily,
|
|
@@ -93,45 +108,74 @@ function createVariant(category, size, weight) {
|
|
|
93
108
|
tag: base.tag
|
|
94
109
|
};
|
|
95
110
|
}
|
|
96
|
-
function
|
|
97
|
-
if (!
|
|
111
|
+
function mergeVariantOptions(variantOptions) {
|
|
112
|
+
if (!variantOptions)
|
|
113
|
+
return exports.defaultVariantOptions;
|
|
114
|
+
const mergedOptions = {};
|
|
115
|
+
const categories = new Set([
|
|
116
|
+
...Object.keys(exports.defaultVariantOptions),
|
|
117
|
+
...Object.keys(variantOptions)
|
|
118
|
+
]);
|
|
119
|
+
categories.forEach((categoryKey) => {
|
|
120
|
+
const category = categoryKey;
|
|
121
|
+
mergedOptions[category] = Object.assign(Object.assign({}, (exports.defaultVariantOptions[category] || {})), (variantOptions[category] || {}));
|
|
122
|
+
});
|
|
123
|
+
return mergedOptions;
|
|
124
|
+
}
|
|
125
|
+
function mergeVariantWeights(variantWeightsOptions) {
|
|
126
|
+
if (!variantWeightsOptions)
|
|
127
|
+
return variantWeights;
|
|
128
|
+
const mergedWeights = {};
|
|
129
|
+
const categories = new Set([
|
|
130
|
+
...Object.keys(variantWeights),
|
|
131
|
+
...Object.keys(variantWeightsOptions)
|
|
132
|
+
]);
|
|
133
|
+
categories.forEach((category) => {
|
|
134
|
+
const defaultWeights = variantWeights[category] || [];
|
|
135
|
+
const customWeights = variantWeightsOptions[category] || [];
|
|
136
|
+
const combined = [...defaultWeights];
|
|
137
|
+
customWeights.forEach((weight) => {
|
|
138
|
+
if (!combined.includes(weight)) {
|
|
139
|
+
combined.push(weight);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
mergedWeights[category] = combined;
|
|
143
|
+
});
|
|
144
|
+
return mergedWeights;
|
|
145
|
+
}
|
|
146
|
+
function createVariantToCssVars(variantOptions, variantWeightsOptions) {
|
|
147
|
+
const configs = {};
|
|
148
|
+
const mergedWeights = mergeVariantWeights(variantWeightsOptions);
|
|
149
|
+
Object.entries(variantOptions).forEach(([category, sizes]) => {
|
|
150
|
+
const weights = mergedWeights[category] || [];
|
|
151
|
+
Object.keys(sizes).forEach((size) => {
|
|
152
|
+
weights.forEach((weight) => {
|
|
153
|
+
const variantKey = `${category}-${size}${weight ? `-${weight}` : ''}`;
|
|
154
|
+
configs[variantKey] = createVariant(variantOptions, category, size, weight);
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
return configs;
|
|
159
|
+
}
|
|
160
|
+
function resolveVariantConfigs(variantOptions, variantWeightsOptions) {
|
|
161
|
+
const hasCustomOptions = variantOptions && Object.keys(variantOptions).length > 0;
|
|
162
|
+
const hasCustomWeights = variantWeightsOptions && Object.keys(variantWeightsOptions).length > 0;
|
|
163
|
+
if (!hasCustomOptions && !hasCustomWeights) {
|
|
164
|
+
return exports.variantToCssVars;
|
|
165
|
+
}
|
|
166
|
+
return createVariantToCssVars(mergeVariantOptions(variantOptions), variantWeightsOptions);
|
|
167
|
+
}
|
|
168
|
+
function getVariantCssVars(variant, baseVars, fontFamilyVariant, variantOptions, variantWeightsOptions) {
|
|
169
|
+
const variantStyles = variant
|
|
170
|
+
? resolveVariantConfigs(variantOptions, variantWeightsOptions)[variant]
|
|
171
|
+
: undefined;
|
|
172
|
+
if (!variantStyles) {
|
|
98
173
|
return baseVars;
|
|
99
174
|
}
|
|
100
|
-
const variantStyles = exports.variantToCssVars[variant];
|
|
101
175
|
return Object.assign(Object.assign({}, baseVars), { '--u-font-famliy-variant': fontFamilyVariant, '--u-variant-font-size': variantStyles.fontSize, '--u-variant-font-weight': variantStyles.fontWeight, '--u-variant-line-height': variantStyles.lineHeight, '--u-variant-font-family': variantStyles.fontFamily, '--u-variant-font-style': variantStyles.fontStyle, '--u-variant-letter-spacing': variantStyles.letterSpacing });
|
|
102
176
|
}
|
|
103
|
-
function getVariantTag(variant) {
|
|
104
|
-
|
|
177
|
+
function getVariantTag(variant, variantOptions, variantWeightsOptions) {
|
|
178
|
+
var _a;
|
|
179
|
+
return (_a = resolveVariantConfigs(variantOptions, variantWeightsOptions)[variant]) === null || _a === void 0 ? void 0 : _a.tag;
|
|
105
180
|
}
|
|
106
|
-
exports.variantToCssVars =
|
|
107
|
-
// Display variants
|
|
108
|
-
'display-l': createVariant('display', 'l', 'bold'),
|
|
109
|
-
'display-s': createVariant('display', 's', 'bold'),
|
|
110
|
-
// Heading variants
|
|
111
|
-
'heading-l-semi-bold': createVariant('heading', 'l', 'semi-bold'),
|
|
112
|
-
'heading-l-bold': createVariant('heading', 'l', 'bold'),
|
|
113
|
-
'heading-m-semi-bold': createVariant('heading', 'm', 'semi-bold'),
|
|
114
|
-
'heading-m-bold': createVariant('heading', 'm', 'bold'),
|
|
115
|
-
'heading-s-semi-bold': createVariant('heading', 's', 'semi-bold'),
|
|
116
|
-
'heading-s-bold': createVariant('heading', 's', 'bold'),
|
|
117
|
-
// Title variants
|
|
118
|
-
'title-l-medium': createVariant('title', 'l', 'medium'),
|
|
119
|
-
'title-l-semi-bold': createVariant('title', 'l', 'semi-bold'),
|
|
120
|
-
'title-l-bold': createVariant('title', 'l', 'bold'),
|
|
121
|
-
'title-m-medium': createVariant('title', 'm', 'medium'),
|
|
122
|
-
'title-m-semi-bold': createVariant('title', 'm', 'semi-bold'),
|
|
123
|
-
'title-m-bold': createVariant('title', 'm', 'bold'),
|
|
124
|
-
'title-s-medium': createVariant('title', 's', 'medium'),
|
|
125
|
-
'title-s-semi-bold': createVariant('title', 's', 'semi-bold'),
|
|
126
|
-
'title-s-bold': createVariant('title', 's', 'bold'),
|
|
127
|
-
// Body variants
|
|
128
|
-
'body-l-medium': createVariant('body', 'l', 'medium'),
|
|
129
|
-
'body-l-semi-bold': createVariant('body', 'l', 'semi-bold'),
|
|
130
|
-
'body-l-bold': createVariant('body', 'l', 'bold'),
|
|
131
|
-
'body-m-medium': createVariant('body', 'm', 'medium'),
|
|
132
|
-
'body-m-semi-bold': createVariant('body', 'm', 'semi-bold'),
|
|
133
|
-
'body-m-bold': createVariant('body', 'm', 'bold'),
|
|
134
|
-
'body-s-medium': createVariant('body', 's', 'medium'),
|
|
135
|
-
'body-s-semi-bold': createVariant('body', 's', 'semi-bold'),
|
|
136
|
-
'body-s-bold': createVariant('body', 's', 'bold')
|
|
137
|
-
};
|
|
181
|
+
exports.variantToCssVars = createVariantToCssVars(exports.defaultVariantOptions, variantWeights);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const common_1 = require("../../../_styles/common");
|
|
4
4
|
const light_1 = require("./light");
|
|
5
5
|
const typographyDark = {
|
|
6
6
|
name: 'Typography',
|
|
7
|
-
common:
|
|
7
|
+
common: common_1.commonDark,
|
|
8
8
|
self: light_1.self
|
|
9
9
|
};
|
|
10
10
|
exports.default = typographyDark;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.self = void 0;
|
|
4
|
-
const
|
|
4
|
+
const common_1 = require("../../../_styles/common");
|
|
5
5
|
const self = (vars) => {
|
|
6
6
|
const { borderRadiusSmall, brandPrimary500, elementsQuaternary, textPrimary, brandQuaternary500, staticRed, staticOrange, staticGreen, elementsTertiary, fontBodyMedium, lineHeightBodyMedium, codeBorder } = vars;
|
|
7
7
|
return {
|
|
@@ -26,7 +26,7 @@ const self = (vars) => {
|
|
|
26
26
|
exports.self = self;
|
|
27
27
|
const typographyLight = {
|
|
28
28
|
name: 'Typography',
|
|
29
|
-
common:
|
|
29
|
+
common: common_1.commonLight,
|
|
30
30
|
self: exports.self
|
|
31
31
|
};
|
|
32
32
|
exports.default = typographyLight;
|
package/lib/affix/src/Affix.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const affixProps: {
|
|
|
27
27
|
readonly default: undefined;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
export declare const affixPropKeys: ("top" | "bottom" | "
|
|
30
|
+
export declare const affixPropKeys: ("top" | "bottom" | "listenTo" | "triggerTop" | "triggerBottom" | "position" | "offsetTop" | "offsetBottom" | "target")[];
|
|
31
31
|
export type AffixProps = ExtractPublicPropTypes<typeof affixProps>;
|
|
32
32
|
declare const _default: import("vue").DefineComponent<{
|
|
33
33
|
readonly listenTo: PropType<string | ScrollTarget | (() => HTMLElement) | undefined>;
|
|
@@ -85,9 +85,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
85
|
readonly default: undefined;
|
|
86
86
|
};
|
|
87
87
|
}>>, {
|
|
88
|
-
readonly position: "
|
|
89
|
-
readonly target: (() => HTMLElement) | undefined;
|
|
88
|
+
readonly position: "fix" | "absolute";
|
|
90
89
|
readonly offsetTop: number | undefined;
|
|
91
90
|
readonly offsetBottom: number | undefined;
|
|
91
|
+
readonly target: (() => HTMLElement) | undefined;
|
|
92
92
|
}, {}>;
|
|
93
93
|
export default _default;
|
package/lib/alert/src/Alert.d.ts
CHANGED
|
@@ -929,11 +929,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
929
929
|
descriptionSpaceBanner: string;
|
|
930
930
|
}, any>>>;
|
|
931
931
|
}>>, {
|
|
932
|
-
type: "default" | "
|
|
932
|
+
type: "default" | "info" | "warning" | "error" | "success" | "primary";
|
|
933
933
|
showIcon: boolean;
|
|
934
|
-
|
|
934
|
+
layoutType: "banner" | "alert";
|
|
935
935
|
rounded: boolean;
|
|
936
|
-
layoutType: "alert" | "banner";
|
|
937
936
|
actionsHorizontal: boolean;
|
|
937
|
+
closable: boolean;
|
|
938
938
|
}, {}>;
|
|
939
939
|
export default _default;
|
|
@@ -280,15 +280,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
280
280
|
}>>, {
|
|
281
281
|
readonly type: "block" | "rail";
|
|
282
282
|
readonly top: number;
|
|
283
|
-
readonly position: "absolute" | "fix";
|
|
284
|
-
readonly target: (() => HTMLElement) | undefined;
|
|
285
|
-
readonly affix: boolean;
|
|
286
|
-
readonly offsetTop: number | undefined;
|
|
287
|
-
readonly offsetBottom: number | undefined;
|
|
288
283
|
readonly showRail: boolean;
|
|
289
284
|
readonly showBackground: boolean;
|
|
290
285
|
readonly bound: number;
|
|
291
286
|
readonly internalScrollable: boolean;
|
|
292
287
|
readonly ignoreGap: boolean;
|
|
288
|
+
readonly position: "fix" | "absolute";
|
|
289
|
+
readonly offsetTop: number | undefined;
|
|
290
|
+
readonly offsetBottom: number | undefined;
|
|
291
|
+
readonly target: (() => HTMLElement) | undefined;
|
|
292
|
+
readonly affix: boolean;
|
|
293
293
|
}, {}>;
|
|
294
294
|
export default _default;
|
|
@@ -1608,12 +1608,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1608
1608
|
readonly loading: boolean;
|
|
1609
1609
|
readonly bordered: boolean | undefined;
|
|
1610
1610
|
readonly to: string | boolean | HTMLElement;
|
|
1611
|
+
readonly clearable: boolean;
|
|
1612
|
+
readonly defaultValue: string | null;
|
|
1611
1613
|
readonly resetMenuOnOptionsChange: boolean;
|
|
1612
1614
|
readonly placement: FollowerPlacement;
|
|
1613
|
-
readonly defaultValue: string | null;
|
|
1614
|
-
readonly clearable: boolean;
|
|
1615
|
-
readonly options: AutoCompleteOptions;
|
|
1616
1615
|
readonly blurAfterSelect: boolean;
|
|
1617
1616
|
readonly clearAfterSelect: boolean;
|
|
1617
|
+
readonly options: AutoCompleteOptions;
|
|
1618
1618
|
}, {}>;
|
|
1619
1619
|
export default _default;
|
|
@@ -243,8 +243,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
243
243
|
readonly disabled: boolean;
|
|
244
244
|
readonly loading: boolean;
|
|
245
245
|
readonly bordered: boolean;
|
|
246
|
-
readonly round: boolean;
|
|
247
246
|
readonly circle: boolean;
|
|
247
|
+
readonly round: boolean;
|
|
248
248
|
readonly lazy: boolean;
|
|
249
249
|
}, {}>;
|
|
250
250
|
export default _default;
|
|
@@ -240,7 +240,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
240
240
|
}>>>;
|
|
241
241
|
}>>, {
|
|
242
242
|
readonly loading: boolean;
|
|
243
|
-
readonly vertical: boolean;
|
|
244
243
|
readonly options: AvatarGroupOption[];
|
|
244
|
+
readonly vertical: boolean;
|
|
245
245
|
}, {}>;
|
|
246
246
|
export default _default;
|
|
@@ -253,7 +253,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
253
253
|
readonly bottom: string | number;
|
|
254
254
|
readonly to: string | HTMLElement;
|
|
255
255
|
readonly show: boolean | undefined;
|
|
256
|
-
readonly 'onUpdate:show': Function;
|
|
257
256
|
readonly visibilityHeight: number;
|
|
257
|
+
readonly 'onUpdate:show': Function;
|
|
258
258
|
}, {}>;
|
|
259
259
|
export default _default;
|
package/lib/badge/src/Badge.d.ts
CHANGED
|
@@ -232,7 +232,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
232
232
|
dotSize: string;
|
|
233
233
|
}, any>>>;
|
|
234
234
|
}>>, {
|
|
235
|
-
readonly type: "default" | "info" | "
|
|
235
|
+
readonly type: "default" | "info" | "warning" | "error" | "success" | "prime";
|
|
236
236
|
readonly show: boolean;
|
|
237
237
|
readonly dot: boolean;
|
|
238
238
|
readonly showZero: boolean;
|
|
@@ -2193,19 +2193,19 @@ declare const Button: import("vue").DefineComponent<{
|
|
|
2193
2193
|
readonly loading: boolean;
|
|
2194
2194
|
readonly bordered: boolean;
|
|
2195
2195
|
readonly tag: keyof HTMLElementTagNameMap;
|
|
2196
|
-
readonly
|
|
2197
|
-
readonly
|
|
2196
|
+
readonly block: boolean;
|
|
2197
|
+
readonly circle: boolean;
|
|
2198
2198
|
readonly round: boolean;
|
|
2199
2199
|
readonly strong: boolean;
|
|
2200
|
-
readonly
|
|
2200
|
+
readonly tertiary: boolean;
|
|
2201
2201
|
readonly text: boolean;
|
|
2202
|
-
readonly focusable: boolean;
|
|
2203
|
-
readonly dashed: boolean;
|
|
2204
|
-
readonly block: boolean;
|
|
2205
|
-
readonly secondary: boolean;
|
|
2206
2202
|
readonly loadingSkeleton: boolean;
|
|
2203
|
+
readonly ghost: boolean;
|
|
2204
|
+
readonly secondary: boolean;
|
|
2207
2205
|
readonly quaternary: boolean;
|
|
2206
|
+
readonly focusable: boolean;
|
|
2208
2207
|
readonly keyboard: boolean;
|
|
2208
|
+
readonly dashed: boolean;
|
|
2209
2209
|
readonly iconPlacement: "left" | "right";
|
|
2210
2210
|
readonly attrType: "button" | "submit" | "reset";
|
|
2211
2211
|
readonly nativeFocusBehavior: boolean;
|
package/lib/card/src/Card.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const cardBaseProps: {
|
|
|
29
29
|
readonly default: "div";
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
export declare const cardBasePropKeys: ("title" | "bordered" | "tag" | "closable" | "
|
|
32
|
+
export declare const cardBasePropKeys: ("title" | "bordered" | "tag" | "closable" | "onClose" | "contentStyle" | "headerStyle" | "headerExtraStyle" | "footerStyle" | "embedded" | "segmented" | "hoverable" | "role")[];
|
|
33
33
|
export declare const cardProps: {
|
|
34
34
|
size: {
|
|
35
35
|
type: PropType<"small" | "medium" | "large" | "huge">;
|
|
@@ -568,10 +568,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
568
568
|
}>>, {
|
|
569
569
|
bordered: boolean;
|
|
570
570
|
tag: keyof HTMLElementTagNameMap;
|
|
571
|
-
size: "small" | "medium" | "large" | "huge";
|
|
572
571
|
closable: boolean;
|
|
573
|
-
|
|
572
|
+
size: "small" | "medium" | "large" | "huge";
|
|
574
573
|
embedded: boolean;
|
|
575
574
|
segmented: boolean | CardSegmented;
|
|
575
|
+
hoverable: boolean;
|
|
576
576
|
}, {}>;
|
|
577
577
|
export default _default;
|
|
@@ -251,9 +251,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
251
251
|
dropDownBgColor: string;
|
|
252
252
|
}, any>>>;
|
|
253
253
|
}>>, {
|
|
254
|
-
readonly
|
|
254
|
+
readonly showDivider: boolean;
|
|
255
255
|
readonly xGap: string | number;
|
|
256
256
|
readonly yGap: string | number;
|
|
257
|
-
readonly
|
|
257
|
+
readonly cols: string | number;
|
|
258
258
|
}, {}>;
|
|
259
259
|
export default _default;
|
|
@@ -76,8 +76,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
direction: "horizontal" | "vertical";
|
|
77
77
|
}) => VNode>;
|
|
78
78
|
}>>, {
|
|
79
|
+
readonly embedded: boolean;
|
|
79
80
|
readonly direction: "vertical" | "horizontal";
|
|
80
81
|
readonly dropdown: boolean;
|
|
81
|
-
readonly embedded: boolean;
|
|
82
82
|
}, {}>;
|
|
83
83
|
export default _default;
|
|
@@ -325,23 +325,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
325
325
|
arrowColor: string;
|
|
326
326
|
}, any>>>;
|
|
327
327
|
}>>, {
|
|
328
|
-
draggable: boolean;
|
|
329
|
-
trigger: "hover" | "click";
|
|
330
|
-
direction: "vertical" | "horizontal";
|
|
331
|
-
loop: boolean;
|
|
332
|
-
showArrow: boolean;
|
|
333
328
|
keyboard: boolean;
|
|
334
|
-
autoplay: boolean;
|
|
335
|
-
dotType: "line" | "dot";
|
|
336
329
|
defaultIndex: number;
|
|
330
|
+
showArrow: boolean;
|
|
331
|
+
dotType: "dot" | "line";
|
|
337
332
|
dotPlacement: "left" | "right" | "top" | "bottom";
|
|
338
333
|
slidesPerView: number | "auto";
|
|
339
334
|
spaceBetween: number;
|
|
340
335
|
centeredSlides: boolean;
|
|
336
|
+
direction: "vertical" | "horizontal";
|
|
337
|
+
autoplay: boolean;
|
|
341
338
|
interval: number;
|
|
342
|
-
|
|
339
|
+
loop: boolean;
|
|
340
|
+
effect: "slide" | "fade" | "card" | "custom";
|
|
343
341
|
showDots: boolean;
|
|
342
|
+
trigger: "click" | "hover";
|
|
344
343
|
transitionStyle: Partial<Pick<CSSProperties, "transitionDuration" | "transitionTimingFunction">>;
|
|
344
|
+
draggable: boolean;
|
|
345
345
|
touchable: boolean;
|
|
346
346
|
mousewheel: boolean;
|
|
347
347
|
}, {}>;
|
|
@@ -64,9 +64,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
64
64
|
keyboard: BooleanConstructor;
|
|
65
65
|
}>>, {
|
|
66
66
|
total: number;
|
|
67
|
-
trigger: "hover" | "click";
|
|
68
67
|
keyboard: boolean;
|
|
69
68
|
currentIndex: number;
|
|
70
|
-
dotType: "
|
|
69
|
+
dotType: "dot" | "line" | "never";
|
|
70
|
+
trigger: "click" | "hover";
|
|
71
71
|
}, {}>;
|
|
72
72
|
export default _default;
|
|
@@ -3357,26 +3357,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3357
3357
|
readonly disabled: boolean | undefined;
|
|
3358
3358
|
readonly bordered: boolean | undefined;
|
|
3359
3359
|
readonly to: string | boolean | HTMLElement;
|
|
3360
|
+
readonly clearable: boolean;
|
|
3361
|
+
readonly defaultValue: Value | null;
|
|
3362
|
+
readonly placement: FollowerPlacement;
|
|
3363
|
+
readonly options: CascaderOption[];
|
|
3360
3364
|
readonly show: boolean | undefined;
|
|
3361
3365
|
readonly separator: string;
|
|
3366
|
+
readonly allowCheckingNotLoaded: boolean;
|
|
3362
3367
|
readonly multiple: boolean;
|
|
3363
|
-
readonly labelField: string;
|
|
3364
|
-
readonly virtualScroll: boolean;
|
|
3365
|
-
readonly valueField: string;
|
|
3366
|
-
readonly placement: FollowerPlacement;
|
|
3367
|
-
readonly defaultValue: Value | null;
|
|
3368
3368
|
readonly filterable: boolean;
|
|
3369
|
-
readonly
|
|
3370
|
-
readonly
|
|
3369
|
+
readonly disabledField: string;
|
|
3370
|
+
readonly expandTrigger: ExpandTrigger;
|
|
3371
3371
|
readonly clearFilterAfterSelect: boolean;
|
|
3372
3372
|
readonly remote: boolean;
|
|
3373
|
-
readonly childrenField: string;
|
|
3374
|
-
readonly expandTrigger: ExpandTrigger;
|
|
3375
|
-
readonly allowCheckingNotLoaded: boolean;
|
|
3376
3373
|
readonly cascade: boolean;
|
|
3377
|
-
readonly checkStrategy: CheckStrategy;
|
|
3378
|
-
readonly disabledField: string;
|
|
3379
3374
|
readonly leafOnly: boolean;
|
|
3380
3375
|
readonly showPath: boolean;
|
|
3376
|
+
readonly virtualScroll: boolean;
|
|
3377
|
+
readonly checkStrategy: CheckStrategy;
|
|
3378
|
+
readonly valueField: string;
|
|
3379
|
+
readonly labelField: string;
|
|
3380
|
+
readonly childrenField: string;
|
|
3381
3381
|
}, {}>;
|
|
3382
3382
|
export default _default;
|
|
@@ -434,9 +434,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
434
434
|
};
|
|
435
435
|
}>>, {
|
|
436
436
|
value: Value | null;
|
|
437
|
-
pattern: string;
|
|
438
437
|
show: boolean;
|
|
439
438
|
multiple: boolean;
|
|
439
|
+
pattern: string;
|
|
440
440
|
tmNodes: TmNode[];
|
|
441
441
|
}, {}>;
|
|
442
442
|
export default _default;
|
|
@@ -711,14 +711,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
711
711
|
}, any>>>;
|
|
712
712
|
}>>, {
|
|
713
713
|
disabled: boolean | undefined;
|
|
714
|
-
checked: string | number | boolean | undefined;
|
|
715
|
-
focusable: boolean;
|
|
716
714
|
position: "left" | "right";
|
|
717
|
-
|
|
718
|
-
checkedValue: string | number | boolean;
|
|
719
|
-
uncheckedValue: string | number | boolean;
|
|
715
|
+
focusable: boolean;
|
|
720
716
|
indeterminate: boolean;
|
|
721
717
|
ripple: boolean;
|
|
722
718
|
privateInsideTable: boolean;
|
|
719
|
+
checked: string | number | boolean | undefined;
|
|
720
|
+
defaultChecked: string | number | boolean;
|
|
721
|
+
checkedValue: string | number | boolean;
|
|
722
|
+
uncheckedValue: string | number | boolean;
|
|
723
723
|
}, {}>;
|
|
724
724
|
export default _default;
|
package/lib/code/src/Code.d.ts
CHANGED
|
@@ -217,8 +217,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
217
|
inline: boolean;
|
|
218
218
|
trim: boolean;
|
|
219
219
|
code: string;
|
|
220
|
-
wordWrap: boolean;
|
|
221
220
|
uri: boolean;
|
|
221
|
+
wordWrap: boolean;
|
|
222
222
|
showLineNumbers: boolean;
|
|
223
223
|
internalNoHighlight: boolean;
|
|
224
224
|
}, {}>;
|
|
@@ -312,10 +312,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
312
312
|
boxSizing: string;
|
|
313
313
|
}, any>>>;
|
|
314
314
|
}>>, {
|
|
315
|
-
readonly displayDirective: "show" | "if";
|
|
316
315
|
readonly defaultExpandedNames: string | number | (string | number)[] | null;
|
|
317
316
|
readonly arrowPlacement: ArrowPlacement;
|
|
318
317
|
readonly accordion: boolean;
|
|
318
|
+
readonly displayDirective: "show" | "if";
|
|
319
319
|
readonly onExpandedNamesChange: MaybeArray<OnUpdateExpandedNames> | undefined;
|
|
320
320
|
}, {}>;
|
|
321
321
|
export default _default;
|
|
@@ -72,8 +72,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
bezier: string;
|
|
73
73
|
}, any>>>;
|
|
74
74
|
}>>, {
|
|
75
|
-
readonly appear: boolean;
|
|
76
75
|
readonly show: boolean;
|
|
76
|
+
readonly appear: boolean;
|
|
77
77
|
readonly collapsed: boolean | undefined;
|
|
78
78
|
}, {}>;
|
|
79
79
|
export default _default;
|
|
@@ -2905,12 +2905,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2905
2905
|
}>>, {
|
|
2906
2906
|
readonly disabled: boolean | undefined;
|
|
2907
2907
|
readonly to: string | boolean | HTMLElement;
|
|
2908
|
-
readonly show: boolean | undefined;
|
|
2909
2908
|
readonly placement: FollowerPlacement;
|
|
2909
|
+
readonly show: boolean | undefined;
|
|
2910
2910
|
readonly defaultShow: boolean;
|
|
2911
|
-
readonly actions: ActionType[];
|
|
2912
|
-
readonly showAlpha: boolean;
|
|
2913
2911
|
readonly modes: ColorPickerMode[];
|
|
2912
|
+
readonly showAlpha: boolean;
|
|
2914
2913
|
readonly showPreview: boolean;
|
|
2914
|
+
readonly actions: ActionType[];
|
|
2915
2915
|
}, {}>;
|
|
2916
2916
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { type PropType, type ComputedRef, type ExtractPropTypes } from 'vue';
|
|
|
2
2
|
import { type Hljs } from '../../_mixins';
|
|
3
3
|
import type { UDateLocale, ULocale } from '../../locales';
|
|
4
4
|
import type { GlobalTheme, GlobalThemeOverrides, GlobalComponentConfig, GlobalIconConfig } from './interface';
|
|
5
|
-
import type { RtlProp, Breakpoints } from './internal-interface';
|
|
5
|
+
import type { RtlProp, Breakpoints, BreakpointProps, BreakpointThemeOverrides } from './internal-interface';
|
|
6
6
|
import type { Katex } from './katex';
|
|
7
7
|
export declare const configProviderProps: {
|
|
8
8
|
readonly abstract: BooleanConstructor;
|
|
@@ -29,6 +29,8 @@ export declare const configProviderProps: {
|
|
|
29
29
|
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
30
30
|
readonly icons: PropType<GlobalIconConfig>;
|
|
31
31
|
readonly breakpoints: PropType<Breakpoints>;
|
|
32
|
+
readonly breakpointProps: PropType<BreakpointProps>;
|
|
33
|
+
readonly breakpointThemeOverrides: PropType<BreakpointThemeOverrides>;
|
|
32
34
|
readonly preflightStyleDisabled: BooleanConstructor;
|
|
33
35
|
readonly inlineThemeDisabled: {
|
|
34
36
|
readonly type: BooleanConstructor;
|
|
@@ -66,6 +68,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
68
|
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
67
69
|
readonly icons: PropType<GlobalIconConfig>;
|
|
68
70
|
readonly breakpoints: PropType<Breakpoints>;
|
|
71
|
+
readonly breakpointProps: PropType<BreakpointProps>;
|
|
72
|
+
readonly breakpointThemeOverrides: PropType<BreakpointThemeOverrides>;
|
|
69
73
|
readonly preflightStyleDisabled: BooleanConstructor;
|
|
70
74
|
readonly inlineThemeDisabled: {
|
|
71
75
|
readonly type: BooleanConstructor;
|
|
@@ -107,6 +111,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
107
111
|
readonly componentOptions: PropType<GlobalComponentConfig>;
|
|
108
112
|
readonly icons: PropType<GlobalIconConfig>;
|
|
109
113
|
readonly breakpoints: PropType<Breakpoints>;
|
|
114
|
+
readonly breakpointProps: PropType<BreakpointProps>;
|
|
115
|
+
readonly breakpointThemeOverrides: PropType<BreakpointThemeOverrides>;
|
|
110
116
|
readonly preflightStyleDisabled: BooleanConstructor;
|
|
111
117
|
readonly inlineThemeDisabled: {
|
|
112
118
|
readonly type: BooleanConstructor;
|