@uzum-tech/ui 2.4.5 → 2.4.7
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 +112 -21
- package/dist/index.mjs +112 -21
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/button/src/Button.d.ts +4 -0
- package/es/button/src/Button.mjs +4 -2
- package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +1 -1
- package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +1 -1
- package/es/chat/src/styles/index.cssr.mjs +1 -1
- package/es/components.d.ts +70 -1
- package/es/dialog/src/DialogProvider.d.ts +1 -1579
- package/es/editor/index.d.ts +1 -1
- package/es/editor/src/Editor.d.ts +21 -0
- package/es/editor/src/Editor.mjs +5 -2
- package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +27 -0
- package/es/editor/src/EditorParts/EditorContent/EditorContent.mjs +37 -3
- package/es/editor/src/EditorParts/EditorContent/interface.d.ts +11 -0
- package/es/editor/src/EditorParts/EditorContent/interface.mjs +2 -0
- package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +18 -0
- package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
- package/es/editor/src/composables/use-editor-css-vars.mjs +8 -2
- package/es/editor/src/extensions.d.ts +2 -1
- package/es/editor/src/extensions.mjs +34 -4
- package/es/editor/src/interface.d.ts +22 -2
- package/es/editor/src/interface.mjs +1 -0
- package/es/editor/src/styles/index.cssr.mjs +21 -4
- package/es/editor/styles/dark.d.ts +3 -0
- package/es/editor/styles/light.d.ts +6 -0
- package/es/editor/styles/light.mjs +6 -1
- package/es/message-bubble/src/styles/index.cssr.mjs +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/button/src/Button.d.ts +4 -0
- package/lib/button/src/Button.js +8 -3
- package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +1 -1
- package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +1 -1
- package/lib/chat/src/styles/index.cssr.js +1 -1
- package/lib/components.d.ts +70 -1
- package/lib/dialog/src/DialogProvider.d.ts +1 -1579
- package/lib/editor/index.d.ts +1 -1
- package/lib/editor/src/Editor.d.ts +21 -0
- package/lib/editor/src/Editor.js +4 -2
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +27 -0
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.js +30 -3
- package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +11 -0
- package/lib/editor/src/EditorParts/EditorContent/interface.js +1 -1
- package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +18 -0
- package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
- package/lib/editor/src/composables/use-editor-css-vars.js +5 -2
- package/lib/editor/src/extensions.d.ts +2 -1
- package/lib/editor/src/extensions.js +41 -5
- package/lib/editor/src/interface.d.ts +22 -2
- package/lib/editor/src/interface.js +1 -1
- package/lib/editor/src/styles/index.cssr.js +21 -4
- package/lib/editor/styles/dark.d.ts +3 -0
- package/lib/editor/styles/light.d.ts +6 -0
- package/lib/editor/styles/light.js +5 -2
- package/lib/message-bubble/src/styles/index.cssr.js +1 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +32 -3
|
@@ -44,6 +44,9 @@ const cssr_1 = require("../../../_utils/cssr");
|
|
|
44
44
|
// --u-editor-markdown-h2-line-height
|
|
45
45
|
// --u-editor-markdown-h3-line-height
|
|
46
46
|
// --u-editor-markdown-text-line-height
|
|
47
|
+
// --u-editor-count-text-color
|
|
48
|
+
// --u-editor-count-font-size
|
|
49
|
+
// --u-editor-count-line-height
|
|
47
50
|
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
|
|
48
51
|
box-sizing: border-box;
|
|
49
52
|
display: flex;
|
|
@@ -61,7 +64,11 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
|
|
|
61
64
|
margin: 0;
|
|
62
65
|
`), (0, cssr_1.cE)('toolbar-block-type', `
|
|
63
66
|
width: 71px;
|
|
64
|
-
`)]), (0, cssr_1.cE)('
|
|
67
|
+
`)]), (0, cssr_1.cE)('body', `
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
gap: 4px;
|
|
71
|
+
`), (0, cssr_1.cE)('content-wrapper', `
|
|
65
72
|
position: relative;
|
|
66
73
|
box-sizing: border-box;
|
|
67
74
|
display: flex;
|
|
@@ -83,7 +90,14 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
|
|
|
83
90
|
right: 6px;
|
|
84
91
|
top: 6px;
|
|
85
92
|
flex-shrink: 0;
|
|
86
|
-
`)]), (0, cssr_1.cE)('
|
|
93
|
+
`)]), (0, cssr_1.cE)('count', `
|
|
94
|
+
align-self: flex-end;
|
|
95
|
+
font-size: var(--u-editor-count-font-size);
|
|
96
|
+
line-height: var(--u-editor-count-line-height);
|
|
97
|
+
color: var(--u-editor-count-text-color);
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
padding-right: 10px;
|
|
100
|
+
`), (0, cssr_1.cE)('content', `
|
|
87
101
|
white-space: normal;
|
|
88
102
|
width: 100%;
|
|
89
103
|
min-width: 0;
|
|
@@ -91,7 +105,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
|
|
|
91
105
|
color: var(--u-editor-content-text-color);
|
|
92
106
|
font-size: var(--u-editor-markdown-text-font-size);
|
|
93
107
|
line-height: var(--u-editor-markdown-text-line-height);
|
|
94
|
-
|
|
108
|
+
overflow-wrap: anywhere;
|
|
95
109
|
`, [(0, cssr_1.cM)('scrollable', `
|
|
96
110
|
overflow-y: auto;
|
|
97
111
|
scrollbar-width: none;
|
|
@@ -99,7 +113,10 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
|
|
|
99
113
|
width: 0;
|
|
100
114
|
height: 0;
|
|
101
115
|
display: none;
|
|
102
|
-
`)]), (0, cssr_1.cE)('editable',
|
|
116
|
+
`)]), (0, cssr_1.cE)('editable', `
|
|
117
|
+
outline: none;
|
|
118
|
+
overflow-wrap: anywhere;
|
|
119
|
+
`, [(0, cssr_1.c)('.is-editor-empty:first-child::before', `
|
|
103
120
|
content: attr(data-placeholder);
|
|
104
121
|
float: left;
|
|
105
122
|
height: 0;
|
|
@@ -46,6 +46,9 @@ declare const editorDark: import("../../_mixins").Theme<"Editor", {
|
|
|
46
46
|
markdownH2LineHeight: string;
|
|
47
47
|
markdownH3LineHeight: string;
|
|
48
48
|
markdownTextLineHeight: string;
|
|
49
|
+
countTextColor: string;
|
|
50
|
+
countFontSize: string;
|
|
51
|
+
countLineHeight: string;
|
|
49
52
|
}, {
|
|
50
53
|
Button: import("../../_mixins").Theme<"Button", {
|
|
51
54
|
heightTiny: string;
|
|
@@ -47,6 +47,9 @@ export declare function self(vars: ThemeCommonVars): {
|
|
|
47
47
|
markdownH2LineHeight: string;
|
|
48
48
|
markdownH3LineHeight: string;
|
|
49
49
|
markdownTextLineHeight: string;
|
|
50
|
+
countTextColor: string;
|
|
51
|
+
countFontSize: string;
|
|
52
|
+
countLineHeight: string;
|
|
50
53
|
};
|
|
51
54
|
declare const editorLight: import("../../_mixins").Theme<"Editor", {
|
|
52
55
|
backgroundColor: string;
|
|
@@ -96,6 +99,9 @@ declare const editorLight: import("../../_mixins").Theme<"Editor", {
|
|
|
96
99
|
markdownH2LineHeight: string;
|
|
97
100
|
markdownH3LineHeight: string;
|
|
98
101
|
markdownTextLineHeight: string;
|
|
102
|
+
countTextColor: string;
|
|
103
|
+
countFontSize: string;
|
|
104
|
+
countLineHeight: string;
|
|
99
105
|
}, {
|
|
100
106
|
Button: import("../../_mixins").Theme<"Button", {
|
|
101
107
|
heightTiny: string;
|
|
@@ -9,7 +9,7 @@ const styles_3 = require("../../icon/styles");
|
|
|
9
9
|
const styles_4 = require("../../select/styles");
|
|
10
10
|
const styles_5 = require("../../tooltip/styles");
|
|
11
11
|
function self(vars) {
|
|
12
|
-
const { borderRadiusLarge, containerSecondary, fontBodyMedium, heightMini, iconMedium, iconSmall, lineHeightTitleMedium, lineHeightTitleSmall, lineHeightBodyLarge, lineHeightBodyMedium, surfacePrimary, elementsQuaternary, elementsQuinary, textPrimary, textTertiary, brandPrimary100, brandPrimary400, brandPrimary500 } = vars;
|
|
12
|
+
const { borderRadiusLarge, containerSecondary, fontBodyMedium, heightMini, iconMedium, iconSmall, lineHeightTitleMedium, lineHeightTitleSmall, lineHeightBodyLarge, lineHeightBodyMedium, fontBodySmall, lineHeightBodySmall, surfacePrimary, elementsQuaternary, elementsQuinary, textPrimary, textTertiary, brandPrimary100, brandPrimary400, brandPrimary500 } = vars;
|
|
13
13
|
return {
|
|
14
14
|
backgroundColor: surfacePrimary,
|
|
15
15
|
borderColor: elementsQuaternary,
|
|
@@ -57,7 +57,10 @@ function self(vars) {
|
|
|
57
57
|
markdownH1LineHeight: lineHeightTitleMedium,
|
|
58
58
|
markdownH2LineHeight: lineHeightTitleSmall,
|
|
59
59
|
markdownH3LineHeight: lineHeightBodyLarge,
|
|
60
|
-
markdownTextLineHeight: lineHeightBodyMedium
|
|
60
|
+
markdownTextLineHeight: lineHeightBodyMedium,
|
|
61
|
+
countTextColor: textTertiary,
|
|
62
|
+
countFontSize: fontBodySmall,
|
|
63
|
+
countLineHeight: lineHeightBodySmall
|
|
61
64
|
};
|
|
62
65
|
}
|
|
63
66
|
const editorLight = (0, _mixins_1.createTheme)({
|
|
@@ -60,7 +60,7 @@ exports.default = (0, cssr_1.cB)('message-bubble', `
|
|
|
60
60
|
border-radius: var(--u-message-bubble-border-radius);
|
|
61
61
|
font-size: 14px;
|
|
62
62
|
line-height: 20px;
|
|
63
|
-
|
|
63
|
+
overflow-wrap: anywhere;
|
|
64
64
|
background-color: var(--u-message-bubble-background-color-other);
|
|
65
65
|
color: var(--u-message-bubble-text-color-other);
|
|
66
66
|
border-bottom-left-radius: 6px;
|
|
@@ -305,8 +305,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
305
305
|
color: string;
|
|
306
306
|
code: boolean;
|
|
307
307
|
strong: boolean;
|
|
308
|
-
text: string;
|
|
309
308
|
delete: boolean;
|
|
309
|
+
text: string;
|
|
310
310
|
variant: import("..").TypographyVariant;
|
|
311
311
|
italic: boolean;
|
|
312
312
|
variantOptions: import("..").TypographyVariantOptions;
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.4.
|
|
1
|
+
declare const _default: "2.4.7";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@uzum-tech/ui",
|
|
5
|
-
"version": "2.4.
|
|
5
|
+
"version": "2.4.7",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -1089,6 +1089,16 @@
|
|
|
1089
1089
|
"description": "The position of the icon in the button.",
|
|
1090
1090
|
"default": "'left'"
|
|
1091
1091
|
},
|
|
1092
|
+
{
|
|
1093
|
+
"name": "icon-props",
|
|
1094
|
+
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/button",
|
|
1095
|
+
"type": "IconProps",
|
|
1096
|
+
"description": "Props passed to `UIcon`. Priority: `icon` slot → `render-icon` → `icon-props`. The loading indicator replaces the icon while `loading` is true.",
|
|
1097
|
+
"default": "undefined",
|
|
1098
|
+
"description-sections": {
|
|
1099
|
+
"since": "2.4.6"
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1092
1102
|
{
|
|
1093
1103
|
"name": "keyboard",
|
|
1094
1104
|
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/button",
|
|
@@ -1124,7 +1134,7 @@
|
|
|
1124
1134
|
"name": "render-icon",
|
|
1125
1135
|
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/button",
|
|
1126
1136
|
"type": "() => VNodeChild",
|
|
1127
|
-
"description": "Render function that renders button icon.",
|
|
1137
|
+
"description": "Render function that renders button icon. Takes priority over `icon-props`; the `icon` slot takes priority over this prop.",
|
|
1128
1138
|
"default": "undefined",
|
|
1129
1139
|
"description-sections": {
|
|
1130
1140
|
"since": "2.34.0"
|
|
@@ -5530,6 +5540,15 @@
|
|
|
5530
5540
|
"description-sections": {
|
|
5531
5541
|
"since": "2.4.0"
|
|
5532
5542
|
}
|
|
5543
|
+
},
|
|
5544
|
+
{
|
|
5545
|
+
"name": "count",
|
|
5546
|
+
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/editor",
|
|
5547
|
+
"type": "{ count: number, maxLength: number | undefined }",
|
|
5548
|
+
"description": "Replaces the content of the counter shown by `show-count`.",
|
|
5549
|
+
"description-sections": {
|
|
5550
|
+
"since": "2.4.7"
|
|
5551
|
+
}
|
|
5533
5552
|
}
|
|
5534
5553
|
],
|
|
5535
5554
|
"attributes": [],
|
|
@@ -5598,7 +5617,7 @@
|
|
|
5598
5617
|
"name": "max-length",
|
|
5599
5618
|
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/editor",
|
|
5600
5619
|
"type": "number",
|
|
5601
|
-
"description": "Caps the **visible text**, not the Markdown
|
|
5620
|
+
"description": "Caps the **visible text**, not the Markdown, the same way `u-input` does: typing past it is blocked and a paste is cut to fit, while a `value` set from the outside is kept as is even if it is longer.",
|
|
5602
5621
|
"default": "undefined",
|
|
5603
5622
|
"description-sections": {
|
|
5604
5623
|
"since": "2.4.0"
|
|
@@ -5614,6 +5633,16 @@
|
|
|
5614
5633
|
"since": "2.4.0"
|
|
5615
5634
|
}
|
|
5616
5635
|
},
|
|
5636
|
+
{
|
|
5637
|
+
"name": "show-count",
|
|
5638
|
+
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/editor",
|
|
5639
|
+
"type": "boolean",
|
|
5640
|
+
"description": "Shows a character counter of the **visible text**, not the Markdown, under the input area. Renders as `count / max-length` when `max-length` is set.",
|
|
5641
|
+
"default": "false",
|
|
5642
|
+
"description-sections": {
|
|
5643
|
+
"since": "2.4.7"
|
|
5644
|
+
}
|
|
5645
|
+
},
|
|
5617
5646
|
{
|
|
5618
5647
|
"name": "show-send-button",
|
|
5619
5648
|
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/editor",
|