@uzum-tech/ui 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +65374 -64281
- package/dist/index.prod.js +3 -3
- package/es/_internal/icons/SiderUnionBorder.js +1 -1
- package/es/_internal/index.d.ts +2 -0
- package/es/_internal/index.js +1 -0
- package/es/_internal/typography/index.d.ts +2 -0
- package/es/_internal/typography/index.js +1 -0
- package/es/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/es/_internal/typography/src/styles/text.cssr.js +78 -0
- package/es/_internal/typography/src/text.d.ts +246 -0
- package/es/_internal/typography/src/text.js +79 -0
- package/es/_internal/typography/src/variants.d.ts +13 -0
- package/es/_internal/typography/src/variants.js +132 -0
- package/es/_internal/typography/styles/dark.d.ts +3 -0
- package/es/_internal/typography/styles/dark.js +8 -0
- package/es/_internal/typography/styles/index.d.ts +3 -0
- package/es/_internal/typography/styles/index.js +2 -0
- package/es/_internal/typography/styles/light.d.ts +24 -0
- package/es/_internal/typography/styles/light.js +28 -0
- package/es/_styles/common/_common.d.ts +2 -0
- package/es/_styles/common/_common.js +3 -1
- package/es/_styles/common/light.d.ts +2 -0
- package/es/action-card/index.d.ts +4 -0
- package/es/action-card/index.js +2 -0
- package/es/action-card/src/ActionCard.d.ts +313 -0
- package/es/action-card/src/ActionCard.js +101 -0
- package/es/action-card/src/styles/index.cssr.d.ts +2 -0
- package/es/action-card/src/styles/index.cssr.js +113 -0
- package/es/action-card/styles/dark.d.ts +3 -0
- package/es/action-card/styles/dark.js +11 -0
- package/es/action-card/styles/index.d.ts +3 -0
- package/es/action-card/styles/index.js +2 -0
- package/es/action-card/styles/light.d.ts +29 -0
- package/es/action-card/styles/light.js +33 -0
- package/es/avatar/src/Avatar.d.ts +13 -3
- package/es/avatar/src/Avatar.js +4 -3
- package/es/avatar/src/styles/index.cssr.js +3 -2
- package/es/avatar/styles/light.d.ts +1 -0
- package/es/avatar/styles/light.js +4 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/es/avatar-group/styles/light.d.ts +1 -0
- package/es/badge/src/Badge.d.ts +10 -0
- package/es/badge/src/Badge.js +3 -2
- package/es/badge/src/styles/index.cssr.js +19 -1
- package/es/badge/styles/light.d.ts +1 -0
- package/es/badge/styles/light.js +4 -3
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/DataTable.js +3 -3
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.js +10 -1
- package/es/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/es/data-table/src/TableParts/BodySkeleton.js +52 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +6 -0
- package/es/data-table/src/styles/index.cssr.js +1 -1
- package/es/data-table/styles/light.d.ts +2 -0
- package/es/data-table/styles/light.js +1 -1
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +40 -9
- package/es/icon-wrapper/src/IconWrapper.js +23 -5
- package/es/icon-wrapper/src/interface.d.ts +1 -0
- package/es/icon-wrapper/src/interface.js +1 -0
- package/es/icon-wrapper/src/styles/index.cssr.js +17 -5
- package/es/layout/src/styles/layout-sider.cssr.js +1 -1
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/modal/src/Modal.d.ts +9 -0
- package/es/modal/styles/light.d.ts +2 -0
- package/es/modal/styles/light.js +2 -1
- package/es/pagination/src/Pagination.d.ts +22 -0
- package/es/pagination/src/Pagination.js +4 -2
- package/es/pagination/src/styles/index.cssr.js +11 -0
- package/es/pagination/styles/light.d.ts +4 -0
- package/es/pagination/styles/light.js +7 -5
- package/es/spin/styles/light.js +3 -3
- package/es/steps/src/Step.d.ts +17 -0
- package/es/steps/src/Step.js +81 -25
- package/es/steps/src/Steps.d.ts +127 -1
- package/es/steps/src/Steps.js +4 -1
- package/es/steps/src/interface.d.ts +10 -2
- package/es/steps/src/interface.js +10 -1
- package/es/steps/src/styles/index.cssr.js +115 -3
- package/es/steps/styles/light.d.ts +14 -0
- package/es/steps/styles/light.js +16 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/toggle-button/src/ToggleButton.d.ts +13 -0
- package/es/toggle-button/src/ToggleButton.js +5 -2
- package/es/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/es/typography/src/a.d.ts +27 -0
- package/es/typography/src/a.js +4 -1
- package/es/typography/src/blockquote.d.ts +27 -0
- package/es/typography/src/blockquote.js +4 -1
- package/es/typography/src/create-header.d.ts +27 -0
- package/es/typography/src/create-header.js +4 -1
- package/es/typography/src/headers.d.ts +108 -0
- package/es/typography/src/hr.d.ts +18 -0
- package/es/typography/src/hr.js +4 -0
- package/es/typography/src/li.js +4 -1
- package/es/typography/src/ol.d.ts +27 -0
- package/es/typography/src/ol.js +4 -1
- package/es/typography/src/p.d.ts +27 -0
- package/es/typography/src/p.js +4 -1
- package/es/typography/src/text.d.ts +128 -524
- package/es/typography/src/text.js +68 -69
- package/es/typography/src/ul.d.ts +27 -0
- package/es/typography/src/ul.js +4 -1
- package/es/typography/styles/light.d.ts +3 -0
- package/es/typography/styles/light.js +3 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/SiderUnionBorder.js +1 -1
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/index.js +4 -1
- package/lib/_internal/typography/index.d.ts +2 -0
- package/lib/_internal/typography/index.js +9 -0
- package/lib/_internal/typography/src/styles/text.cssr.d.ts +2 -0
- package/lib/_internal/typography/src/styles/text.cssr.js +83 -0
- package/lib/_internal/typography/src/text.d.ts +246 -0
- package/lib/_internal/typography/src/text.js +85 -0
- package/lib/_internal/typography/src/variants.d.ts +13 -0
- package/lib/_internal/typography/src/variants.js +137 -0
- package/lib/_internal/typography/styles/dark.d.ts +3 -0
- package/lib/_internal/typography/styles/dark.js +10 -0
- package/lib/_internal/typography/styles/index.d.ts +3 -0
- package/lib/_internal/typography/styles/index.js +10 -0
- package/lib/_internal/typography/styles/light.d.ts +24 -0
- package/lib/_internal/typography/styles/light.js +32 -0
- package/lib/_styles/common/_common.d.ts +2 -0
- package/lib/_styles/common/_common.js +3 -1
- package/lib/_styles/common/light.d.ts +2 -0
- package/lib/action-card/index.d.ts +4 -0
- package/lib/action-card/index.js +11 -0
- package/lib/action-card/src/ActionCard.d.ts +313 -0
- package/lib/action-card/src/ActionCard.js +107 -0
- package/lib/action-card/src/styles/index.cssr.d.ts +2 -0
- package/lib/action-card/src/styles/index.cssr.js +118 -0
- package/lib/action-card/styles/dark.d.ts +3 -0
- package/lib/action-card/styles/dark.js +13 -0
- package/lib/action-card/styles/index.d.ts +3 -0
- package/lib/action-card/styles/index.js +10 -0
- package/lib/action-card/styles/light.d.ts +29 -0
- package/lib/action-card/styles/light.js +37 -0
- package/lib/avatar/src/Avatar.d.ts +13 -3
- package/lib/avatar/src/Avatar.js +4 -3
- package/lib/avatar/src/styles/index.cssr.js +3 -2
- package/lib/avatar/styles/light.d.ts +1 -0
- package/lib/avatar/styles/light.js +4 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +10 -0
- package/lib/avatar-group/styles/light.d.ts +1 -0
- package/lib/badge/src/Badge.d.ts +10 -0
- package/lib/badge/src/Badge.js +3 -2
- package/lib/badge/src/styles/index.cssr.js +19 -1
- package/lib/badge/styles/light.d.ts +1 -0
- package/lib/badge/styles/light.js +4 -3
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/DataTable.js +3 -3
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.js +10 -1
- package/lib/data-table/src/TableParts/BodySkeleton.d.ts +18 -0
- package/lib/data-table/src/TableParts/BodySkeleton.js +54 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +6 -0
- package/lib/data-table/src/styles/index.cssr.js +1 -1
- package/lib/data-table/styles/light.d.ts +2 -0
- package/lib/data-table/styles/light.js +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +40 -9
- package/lib/icon-wrapper/src/IconWrapper.js +23 -5
- package/lib/icon-wrapper/src/interface.d.ts +1 -0
- package/lib/icon-wrapper/src/interface.js +2 -0
- package/lib/icon-wrapper/src/styles/index.cssr.js +16 -4
- package/lib/layout/src/styles/layout-sider.cssr.js +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/modal/src/Modal.d.ts +9 -0
- package/lib/modal/styles/light.d.ts +2 -0
- package/lib/modal/styles/light.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +22 -0
- package/lib/pagination/src/Pagination.js +4 -2
- package/lib/pagination/src/styles/index.cssr.js +11 -0
- package/lib/pagination/styles/light.d.ts +4 -0
- package/lib/pagination/styles/light.js +7 -5
- package/lib/spin/styles/light.js +3 -3
- package/lib/steps/src/Step.d.ts +17 -0
- package/lib/steps/src/Step.js +81 -25
- package/lib/steps/src/Steps.d.ts +127 -1
- package/lib/steps/src/Steps.js +4 -1
- package/lib/steps/src/interface.d.ts +10 -2
- package/lib/steps/src/interface.js +11 -0
- package/lib/steps/src/styles/index.cssr.js +115 -3
- package/lib/steps/styles/light.d.ts +14 -0
- package/lib/steps/styles/light.js +16 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/toggle-button/src/ToggleButton.d.ts +13 -0
- package/lib/toggle-button/src/ToggleButton.js +5 -2
- package/lib/toggle-button/src/styles/toggle-button.cssr.js +3 -0
- package/lib/typography/src/a.d.ts +27 -0
- package/lib/typography/src/a.js +3 -0
- package/lib/typography/src/blockquote.d.ts +27 -0
- package/lib/typography/src/blockquote.js +3 -0
- package/lib/typography/src/create-header.d.ts +27 -0
- package/lib/typography/src/create-header.js +3 -0
- package/lib/typography/src/headers.d.ts +108 -0
- package/lib/typography/src/hr.d.ts +18 -0
- package/lib/typography/src/hr.js +4 -0
- package/lib/typography/src/li.js +3 -0
- package/lib/typography/src/ol.d.ts +27 -0
- package/lib/typography/src/ol.js +3 -0
- package/lib/typography/src/p.d.ts +27 -0
- package/lib/typography/src/p.js +3 -0
- package/lib/typography/src/text.d.ts +128 -524
- package/lib/typography/src/text.js +66 -70
- package/lib/typography/src/ul.d.ts +27 -0
- package/lib/typography/src/ul.js +3 -0
- package/lib/typography/styles/light.d.ts +3 -0
- package/lib/typography/styles/light.js +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +147 -96
|
@@ -1,76 +1,75 @@
|
|
|
1
|
-
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { h, defineComponent, warn, computed } from 'vue';
|
|
2
13
|
import { useCompitable } from 'vooks';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { typographyLight } from '../styles';
|
|
6
|
-
import style from './styles/text.cssr';
|
|
7
|
-
export const textProps = Object.assign(Object.assign({}, useTheme.props), { code: Boolean, type: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: 'default'
|
|
10
|
-
}, delete: Boolean, strong: Boolean, italic: Boolean, underline: Boolean, depth: [String, Number], tag: String,
|
|
11
|
-
// deprecated
|
|
12
|
-
as: {
|
|
13
|
-
type: String,
|
|
14
|
-
validator: () => {
|
|
15
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
16
|
-
warn('text', '`as` is deprecated, please use `tag` instead.');
|
|
17
|
-
}
|
|
18
|
-
return true;
|
|
19
|
-
},
|
|
20
|
-
default: undefined
|
|
21
|
-
} });
|
|
14
|
+
import { InternalUText, internalTextProps } from '../../_internal';
|
|
15
|
+
export const textProps = internalTextProps;
|
|
22
16
|
export default defineComponent({
|
|
23
17
|
name: 'Text',
|
|
24
|
-
props: textProps,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
'
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
18
|
+
props: Object.assign(Object.assign({}, textProps), {
|
|
19
|
+
// deprecated
|
|
20
|
+
code: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
validator: (value) => {
|
|
23
|
+
if (process.env.NODE_ENV !== 'production' && value) {
|
|
24
|
+
warn('text', '`code` is deprecated, please use tag="code" instead');
|
|
25
|
+
}
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}, as: {
|
|
29
|
+
type: String,
|
|
30
|
+
validator: (value) => {
|
|
31
|
+
if (process.env.NODE_ENV !== 'production' && value) {
|
|
32
|
+
warn('text', '`as` is deprecated, please use `tag` instead.');
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
},
|
|
36
|
+
default: undefined
|
|
37
|
+
}, delete: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
validator: (value) => {
|
|
40
|
+
if (process.env.NODE_ENV !== 'production' && value) {
|
|
41
|
+
warn('text', '`delete` is deprecated, please use tag="del" instead');
|
|
42
|
+
}
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
}, depth: {
|
|
46
|
+
type: [String, Number],
|
|
47
|
+
validator: (value) => {
|
|
48
|
+
if (process.env.NODE_ENV !== 'production' && value) {
|
|
49
|
+
warn('text', '`depth` is deprecated, please use custom classes to define styles');
|
|
50
|
+
}
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
} }),
|
|
54
|
+
setup(props, { slots, attrs }) {
|
|
55
|
+
const compitableTagRef = useCompitable(props, ['as', 'tag']);
|
|
56
|
+
// deprecated props
|
|
57
|
+
const finalTagRef = computed(() => {
|
|
58
|
+
// Priority: explicit tag > as > code > delete > default
|
|
59
|
+
if (compitableTagRef.value) {
|
|
60
|
+
return compitableTagRef.value;
|
|
61
|
+
}
|
|
62
|
+
if (props.code) {
|
|
63
|
+
return 'code';
|
|
64
|
+
}
|
|
65
|
+
if (props.delete) {
|
|
66
|
+
return 'del';
|
|
67
|
+
}
|
|
68
|
+
return undefined;
|
|
46
69
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
:
|
|
50
|
-
return {
|
|
51
|
-
mergedClsPrefix: mergedClsPrefixRef,
|
|
52
|
-
compitableTag: useCompitable(props, ['as', 'tag']),
|
|
53
|
-
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
54
|
-
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
55
|
-
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
70
|
+
return () => {
|
|
71
|
+
const { code, as, delete: deleteProp, depth } = props, validProps = __rest(props, ["code", "as", "delete", "depth"]);
|
|
72
|
+
return h(InternalUText, Object.assign(Object.assign(Object.assign({}, validProps), attrs), { tag: finalTagRef.value }), slots);
|
|
56
73
|
};
|
|
57
|
-
},
|
|
58
|
-
render() {
|
|
59
|
-
var _a, _b, _c;
|
|
60
|
-
const { mergedClsPrefix } = this;
|
|
61
|
-
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
62
|
-
const textClass = [
|
|
63
|
-
`${mergedClsPrefix}-text`,
|
|
64
|
-
this.themeClass,
|
|
65
|
-
{
|
|
66
|
-
[`${mergedClsPrefix}-text--code`]: this.code,
|
|
67
|
-
[`${mergedClsPrefix}-text--delete`]: this.delete,
|
|
68
|
-
[`${mergedClsPrefix}-text--strong`]: this.strong,
|
|
69
|
-
[`${mergedClsPrefix}-text--italic`]: this.italic,
|
|
70
|
-
[`${mergedClsPrefix}-text--underline`]: this.underline
|
|
71
|
-
}
|
|
72
|
-
];
|
|
73
|
-
const children = (_c = (_b = this.$slots).default) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
74
|
-
return this.code ? (h("code", { class: textClass, style: this.cssVars }, this.delete ? h("del", null, children) : children)) : this.delete ? (h("del", { class: textClass, style: this.cssVars }, children)) : (h(this.compitableTag || 'span', { class: textClass, style: this.cssVars }, children));
|
|
75
74
|
}
|
|
76
75
|
});
|
|
@@ -27,6 +27,7 @@ export declare const ulProps: {
|
|
|
27
27
|
headerBarWidth5: string;
|
|
28
28
|
headerBarWidth6: string;
|
|
29
29
|
pMargin: string;
|
|
30
|
+
margin: string;
|
|
30
31
|
liMargin: string;
|
|
31
32
|
olPadding: string;
|
|
32
33
|
ulPadding: string;
|
|
@@ -48,6 +49,8 @@ export declare const ulProps: {
|
|
|
48
49
|
pTextColor3Depth: string;
|
|
49
50
|
pLineHeight: string;
|
|
50
51
|
pFontSize: string;
|
|
52
|
+
fontSize: string;
|
|
53
|
+
lineHeight: string;
|
|
51
54
|
headerBarColor: string;
|
|
52
55
|
headerBarColorPrimary: string;
|
|
53
56
|
headerBarColorInfo: string;
|
|
@@ -93,6 +96,7 @@ export declare const ulProps: {
|
|
|
93
96
|
headerBarWidth5: string;
|
|
94
97
|
headerBarWidth6: string;
|
|
95
98
|
pMargin: string;
|
|
99
|
+
margin: string;
|
|
96
100
|
liMargin: string;
|
|
97
101
|
olPadding: string;
|
|
98
102
|
ulPadding: string;
|
|
@@ -114,6 +118,8 @@ export declare const ulProps: {
|
|
|
114
118
|
pTextColor3Depth: string;
|
|
115
119
|
pLineHeight: string;
|
|
116
120
|
pFontSize: string;
|
|
121
|
+
fontSize: string;
|
|
122
|
+
lineHeight: string;
|
|
117
123
|
headerBarColor: string;
|
|
118
124
|
headerBarColorPrimary: string;
|
|
119
125
|
headerBarColorInfo: string;
|
|
@@ -159,6 +165,7 @@ export declare const ulProps: {
|
|
|
159
165
|
headerBarWidth5: string;
|
|
160
166
|
headerBarWidth6: string;
|
|
161
167
|
pMargin: string;
|
|
168
|
+
margin: string;
|
|
162
169
|
liMargin: string;
|
|
163
170
|
olPadding: string;
|
|
164
171
|
ulPadding: string;
|
|
@@ -180,6 +187,8 @@ export declare const ulProps: {
|
|
|
180
187
|
pTextColor3Depth: string;
|
|
181
188
|
pLineHeight: string;
|
|
182
189
|
pFontSize: string;
|
|
190
|
+
fontSize: string;
|
|
191
|
+
lineHeight: string;
|
|
183
192
|
headerBarColor: string;
|
|
184
193
|
headerBarColorPrimary: string;
|
|
185
194
|
headerBarColorInfo: string;
|
|
@@ -229,6 +238,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
238
|
headerBarWidth5: string;
|
|
230
239
|
headerBarWidth6: string;
|
|
231
240
|
pMargin: string;
|
|
241
|
+
margin: string;
|
|
232
242
|
liMargin: string;
|
|
233
243
|
olPadding: string;
|
|
234
244
|
ulPadding: string;
|
|
@@ -250,6 +260,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
250
260
|
pTextColor3Depth: string;
|
|
251
261
|
pLineHeight: string;
|
|
252
262
|
pFontSize: string;
|
|
263
|
+
fontSize: string;
|
|
264
|
+
lineHeight: string;
|
|
253
265
|
headerBarColor: string;
|
|
254
266
|
headerBarColorPrimary: string;
|
|
255
267
|
headerBarColorInfo: string;
|
|
@@ -295,6 +307,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
307
|
headerBarWidth5: string;
|
|
296
308
|
headerBarWidth6: string;
|
|
297
309
|
pMargin: string;
|
|
310
|
+
margin: string;
|
|
298
311
|
liMargin: string;
|
|
299
312
|
olPadding: string;
|
|
300
313
|
ulPadding: string;
|
|
@@ -316,6 +329,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
316
329
|
pTextColor3Depth: string;
|
|
317
330
|
pLineHeight: string;
|
|
318
331
|
pFontSize: string;
|
|
332
|
+
fontSize: string;
|
|
333
|
+
lineHeight: string;
|
|
319
334
|
headerBarColor: string;
|
|
320
335
|
headerBarColorPrimary: string;
|
|
321
336
|
headerBarColorInfo: string;
|
|
@@ -361,6 +376,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
361
376
|
headerBarWidth5: string;
|
|
362
377
|
headerBarWidth6: string;
|
|
363
378
|
pMargin: string;
|
|
379
|
+
margin: string;
|
|
364
380
|
liMargin: string;
|
|
365
381
|
olPadding: string;
|
|
366
382
|
ulPadding: string;
|
|
@@ -382,6 +398,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
382
398
|
pTextColor3Depth: string;
|
|
383
399
|
pLineHeight: string;
|
|
384
400
|
pFontSize: string;
|
|
401
|
+
fontSize: string;
|
|
402
|
+
lineHeight: string;
|
|
385
403
|
headerBarColor: string;
|
|
386
404
|
headerBarColorPrimary: string;
|
|
387
405
|
headerBarColorInfo: string;
|
|
@@ -442,6 +460,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
442
460
|
headerBarWidth5: string;
|
|
443
461
|
headerBarWidth6: string;
|
|
444
462
|
pMargin: string;
|
|
463
|
+
margin: string;
|
|
445
464
|
liMargin: string;
|
|
446
465
|
olPadding: string;
|
|
447
466
|
ulPadding: string;
|
|
@@ -463,6 +482,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
463
482
|
pTextColor3Depth: string;
|
|
464
483
|
pLineHeight: string;
|
|
465
484
|
pFontSize: string;
|
|
485
|
+
fontSize: string;
|
|
486
|
+
lineHeight: string;
|
|
466
487
|
headerBarColor: string;
|
|
467
488
|
headerBarColorPrimary: string;
|
|
468
489
|
headerBarColorInfo: string;
|
|
@@ -508,6 +529,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
508
529
|
headerBarWidth5: string;
|
|
509
530
|
headerBarWidth6: string;
|
|
510
531
|
pMargin: string;
|
|
532
|
+
margin: string;
|
|
511
533
|
liMargin: string;
|
|
512
534
|
olPadding: string;
|
|
513
535
|
ulPadding: string;
|
|
@@ -529,6 +551,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
529
551
|
pTextColor3Depth: string;
|
|
530
552
|
pLineHeight: string;
|
|
531
553
|
pFontSize: string;
|
|
554
|
+
fontSize: string;
|
|
555
|
+
lineHeight: string;
|
|
532
556
|
headerBarColor: string;
|
|
533
557
|
headerBarColorPrimary: string;
|
|
534
558
|
headerBarColorInfo: string;
|
|
@@ -574,6 +598,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
574
598
|
headerBarWidth5: string;
|
|
575
599
|
headerBarWidth6: string;
|
|
576
600
|
pMargin: string;
|
|
601
|
+
margin: string;
|
|
577
602
|
liMargin: string;
|
|
578
603
|
olPadding: string;
|
|
579
604
|
ulPadding: string;
|
|
@@ -595,6 +620,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
595
620
|
pTextColor3Depth: string;
|
|
596
621
|
pLineHeight: string;
|
|
597
622
|
pFontSize: string;
|
|
623
|
+
fontSize: string;
|
|
624
|
+
lineHeight: string;
|
|
598
625
|
headerBarColor: string;
|
|
599
626
|
headerBarColorPrimary: string;
|
|
600
627
|
headerBarColorInfo: string;
|
package/es/typography/src/ul.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, defineComponent, computed } from 'vue';
|
|
1
|
+
import { h, defineComponent, computed, warn } from 'vue';
|
|
2
2
|
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
3
3
|
import { typographyLight } from '../styles';
|
|
4
4
|
import style from './styles/list.cssr';
|
|
@@ -7,6 +7,9 @@ export default defineComponent({
|
|
|
7
7
|
name: 'Ul',
|
|
8
8
|
props: ulProps,
|
|
9
9
|
setup(props) {
|
|
10
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
11
|
+
warn('ul', 'Ul component is deprecated, you should implement Ul locally in your component instead.');
|
|
12
|
+
}
|
|
10
13
|
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
11
14
|
const themeRef = useTheme('Typography', '-xl', style, typographyLight, props, mergedClsPrefixRef);
|
|
12
15
|
const cssVarsRef = computed(() => {
|
|
@@ -26,6 +26,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
26
26
|
headerBarWidth5: string;
|
|
27
27
|
headerBarWidth6: string;
|
|
28
28
|
pMargin: string;
|
|
29
|
+
margin: string;
|
|
29
30
|
liMargin: string;
|
|
30
31
|
olPadding: string;
|
|
31
32
|
ulPadding: string;
|
|
@@ -47,6 +48,8 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
47
48
|
pTextColor3Depth: string;
|
|
48
49
|
pLineHeight: string;
|
|
49
50
|
pFontSize: string;
|
|
51
|
+
fontSize: string;
|
|
52
|
+
lineHeight: string;
|
|
50
53
|
headerBarColor: string;
|
|
51
54
|
headerBarColorPrimary: string;
|
|
52
55
|
headerBarColorInfo: string;
|
|
@@ -27,6 +27,7 @@ export const self = (vars) => {
|
|
|
27
27
|
headerBarWidth5: '3px',
|
|
28
28
|
headerBarWidth6: '3px',
|
|
29
29
|
pMargin: '16px 0 16px 0',
|
|
30
|
+
margin: '16px 0 16px 0',
|
|
30
31
|
liMargin: '.25em 0 0 0',
|
|
31
32
|
olPadding: '0 0 0 2em',
|
|
32
33
|
ulPadding: '0 0 0 2em',
|
|
@@ -48,6 +49,8 @@ export const self = (vars) => {
|
|
|
48
49
|
pTextColor3Depth: textTertiary,
|
|
49
50
|
pLineHeight: lineHeightBodyMedium,
|
|
50
51
|
pFontSize: fontBodyMedium,
|
|
52
|
+
fontSize: fontBodyMedium,
|
|
53
|
+
lineHeight: lineHeightBodyMedium,
|
|
51
54
|
headerBarColor: brandPrimary500,
|
|
52
55
|
headerBarColorPrimary: brandPrimary500,
|
|
53
56
|
headerBarColorInfo: brandQuaternary500,
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.5.0";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.
|
|
1
|
+
export default '1.5.0';
|
|
@@ -5,6 +5,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
5
5
|
name: 'SiderUnionBorder',
|
|
6
6
|
render() {
|
|
7
7
|
return ((0, vue_1.h)("svg", { viewBox: "0 0 35 82", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
-
(0, vue_1.h)("path", { d: "M15 0L0 0V82H15V72.0682C15 67.6499 18.7463 64.209 22.7412 62.3215C29.9427 58.9189 35 50.9123 35 41.5775C35 32.2426 29.9427 24.236 22.7412 20.8334C18.7463 18.946 15 15.505 15 11.0867V0Z", fill: "
|
|
8
|
+
(0, vue_1.h)("path", { d: "M15 0L0 0V82H15V72.0682C15 67.6499 18.7463 64.209 22.7412 62.3215C29.9427 58.9189 35 50.9123 35 41.5775C35 32.2426 29.9427 24.236 22.7412 20.8334C18.7463 18.946 15 15.505 15 11.0867V0Z", fill: "#fff" })));
|
|
9
9
|
}
|
|
10
10
|
});
|
package/lib/_internal/index.d.ts
CHANGED
|
@@ -23,3 +23,5 @@ export type { CheckboxBaseProps, UseCheckbox, OnUpdateChecked, OnUpdateCheckedIm
|
|
|
23
23
|
export { radioBaseProps, radioGroupInjectionKey, useRadio } from './radio';
|
|
24
24
|
export type { OnUpdateValue, OnUpdateValueImpl, RadioGroupInjection, UseRadio, RadioBaseProps } from './radio';
|
|
25
25
|
export { default as UBaseAccountOption } from './account-option';
|
|
26
|
+
export { default as InternalUText, internalTextProps } from './typography/src/text';
|
|
27
|
+
export type { InternalTextProps } from './typography/src/text';
|
package/lib/_internal/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UBaseAccountOption = exports.useRadio = exports.radioGroupInjectionKey = exports.radioBaseProps = exports.useCheckbox = exports.checkboxBaseProps = exports.checkboxGroupInjectionKey = exports.UxScrollbar = exports.UScrollbar = exports.UBaseSuffix = exports.UBaseClear = exports.UBaseSlotMachine = exports.UInternalSelection = exports.UBaseMenuMask = exports.UBaseWave = exports.UInternalSelectMenu = exports.UBaseSkeleton = exports.UBaseLoading = exports.UBaseFocusDetector = exports.UBaseIcon = exports.UBaseClose = exports.UFadeInExpandTransition = exports.UIconSwitchTransition = void 0;
|
|
6
|
+
exports.internalTextProps = exports.InternalUText = exports.UBaseAccountOption = exports.useRadio = exports.radioGroupInjectionKey = exports.radioBaseProps = exports.useCheckbox = exports.checkboxBaseProps = exports.checkboxGroupInjectionKey = exports.UxScrollbar = exports.UScrollbar = exports.UBaseSuffix = exports.UBaseClear = exports.UBaseSlotMachine = exports.UInternalSelection = exports.UBaseMenuMask = exports.UBaseWave = exports.UInternalSelectMenu = exports.UBaseSkeleton = exports.UBaseLoading = exports.UBaseFocusDetector = exports.UBaseIcon = exports.UBaseClose = exports.UFadeInExpandTransition = exports.UIconSwitchTransition = void 0;
|
|
7
7
|
var icon_switch_transition_1 = require("./icon-switch-transition");
|
|
8
8
|
Object.defineProperty(exports, "UIconSwitchTransition", { enumerable: true, get: function () { return __importDefault(icon_switch_transition_1).default; } });
|
|
9
9
|
var fade_in_expand_transition_1 = require("./fade-in-expand-transition");
|
|
@@ -45,3 +45,6 @@ Object.defineProperty(exports, "radioGroupInjectionKey", { enumerable: true, get
|
|
|
45
45
|
Object.defineProperty(exports, "useRadio", { enumerable: true, get: function () { return radio_1.useRadio; } });
|
|
46
46
|
var account_option_1 = require("./account-option");
|
|
47
47
|
Object.defineProperty(exports, "UBaseAccountOption", { enumerable: true, get: function () { return __importDefault(account_option_1).default; } });
|
|
48
|
+
var text_1 = require("./typography/src/text");
|
|
49
|
+
Object.defineProperty(exports, "InternalUText", { enumerable: true, get: function () { return __importDefault(text_1).default; } });
|
|
50
|
+
Object.defineProperty(exports, "internalTextProps", { enumerable: true, get: function () { return text_1.internalTextProps; } });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.internalTextProps = exports.InternalUText = void 0;
|
|
7
|
+
var text_1 = require("./src/text");
|
|
8
|
+
Object.defineProperty(exports, "InternalUText", { enumerable: true, get: function () { return __importDefault(text_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "internalTextProps", { enumerable: true, get: function () { return text_1.internalTextProps; } });
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
const cssr_1 = require("../../../../_utils/cssr");
|
|
7
|
+
// vars:
|
|
8
|
+
// --u-text-color
|
|
9
|
+
// --u-font-weight-strong
|
|
10
|
+
// --u-font-famliy-mono
|
|
11
|
+
// --u-code-border-radius
|
|
12
|
+
// --u-code-text-color
|
|
13
|
+
// --u-code-color
|
|
14
|
+
// --u-code-border
|
|
15
|
+
exports.default = (0, cssr_1.cB)('text', `
|
|
16
|
+
transition: color .3s var(--u-bezier);
|
|
17
|
+
color: var(--u-text-color);
|
|
18
|
+
margin: 0;
|
|
19
|
+
padding: 0;
|
|
20
|
+
`, [(0, cssr_1.cM)('strong', `
|
|
21
|
+
font-weight: var(--u-font-weight-strong);
|
|
22
|
+
`), (0, cssr_1.cM)('italic', {
|
|
23
|
+
fontStyle: 'italic'
|
|
24
|
+
}), (0, cssr_1.cM)('underline', {
|
|
25
|
+
textDecoration: 'underline'
|
|
26
|
+
}), (0, cssr_1.cM)('strikethrough', {
|
|
27
|
+
textDecoration: 'line-through'
|
|
28
|
+
}), (0, cssr_1.cM)('variant', `
|
|
29
|
+
font-family: var(--u-variant-font-family);
|
|
30
|
+
font-size: var(--u-variant-font-size);
|
|
31
|
+
font-weight: var(--u-variant-font-weight);
|
|
32
|
+
line-height: var(--u-variant-line-height);
|
|
33
|
+
letter-spacing: var(--u-variant-letter-spacing);
|
|
34
|
+
font-style: var(--u-variant-font-style);
|
|
35
|
+
`), (0, cssr_1.c)('code&', `
|
|
36
|
+
line-height: 1.4;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
font-family: var(--u-font-famliy-mono);
|
|
39
|
+
transition:
|
|
40
|
+
color .3s var(--u-bezier),
|
|
41
|
+
border-color .3s var(--u-bezier),
|
|
42
|
+
background-color .3s var(--u-bezier);
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
padding: .05em .35em 0 .35em;
|
|
45
|
+
border-radius: var(--u-code-border-radius);
|
|
46
|
+
font-size: .9em;
|
|
47
|
+
color: var(--u-code-text-color);
|
|
48
|
+
background-color: var(--u-code-color);
|
|
49
|
+
border: var(--u-code-border);
|
|
50
|
+
`), (0, cssr_1.c)('blockquote&', `
|
|
51
|
+
font-size: var(--u-font-size);
|
|
52
|
+
line-height: var(--u-line-height);
|
|
53
|
+
margin: 0;
|
|
54
|
+
margin-top: 12px;
|
|
55
|
+
margin-bottom: 12px;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
padding-left: 12px;
|
|
58
|
+
border-left: 4px solid var(--u-prefix-color);
|
|
59
|
+
color: var(--u-text-color);
|
|
60
|
+
transition:
|
|
61
|
+
color .3s var(--u-bezier),
|
|
62
|
+
border-color .3s var(--u-bezier);
|
|
63
|
+
`, [(0, cssr_1.c)('&:first-child', {
|
|
64
|
+
marginTop: 0
|
|
65
|
+
}), (0, cssr_1.c)('&:last-child', {
|
|
66
|
+
marginBottom: 0
|
|
67
|
+
}), (0, cssr_1.cM)('align-text', {
|
|
68
|
+
marginLeft: '-16px'
|
|
69
|
+
})]), (0, cssr_1.c)('a&', `
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
transition:
|
|
72
|
+
color .3s var(--u-bezier),
|
|
73
|
+
text-decoration-color .3s var(--u-bezier);
|
|
74
|
+
text-decoration-color: var(--u-text-color);
|
|
75
|
+
color: var(--u-a-text-color);
|
|
76
|
+
`), (0, cssr_1.c)('p&', `
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
transition: color .3s var(--u-bezier);
|
|
79
|
+
margin: var(--u-margin);
|
|
80
|
+
font-size: var(--u-font-size);
|
|
81
|
+
line-height: var(--u-line-height);
|
|
82
|
+
color: var(--u-text-color);
|
|
83
|
+
`, [(0, cssr_1.c)('&:first-child', 'margin-top: 0;'), (0, cssr_1.c)('&:last-child', 'margin-bottom: 0;')])]);
|