@uzum-tech/ui 2.4.5 → 2.4.6
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 +4 -3
- package/dist/index.mjs +4 -3
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- 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/components.d.ts +4 -1
- package/es/dialog/src/DialogProvider.d.ts +1 -1579
- 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/components.d.ts +4 -1
- package/lib/dialog/src/DialogProvider.d.ts +1 -1579
- 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 +12 -2
|
@@ -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/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.4.
|
|
1
|
+
declare const _default: "2.4.6";
|
|
2
2
|
export default _default;
|
package/es/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.4.
|
|
1
|
+
export default '2.4.6';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes, ExtractPropTypes, PropType, SlotsType, VNode, VNodeChild } from 'vue';
|
|
2
2
|
import type { BaseWaveRef } from '../../_internal';
|
|
3
3
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
4
|
+
import type { IconProps } from '../../icon';
|
|
4
5
|
import type { ButtonSize, ButtonType } from './public-types';
|
|
5
6
|
export declare const buttonProps: {
|
|
6
7
|
readonly color: StringConstructor;
|
|
@@ -36,6 +37,7 @@ export declare const buttonProps: {
|
|
|
36
37
|
};
|
|
37
38
|
readonly dashed: BooleanConstructor;
|
|
38
39
|
readonly renderIcon: PropType<() => VNodeChild>;
|
|
40
|
+
readonly iconProps: PropType<IconProps>;
|
|
39
41
|
readonly iconPlacement: {
|
|
40
42
|
readonly type: PropType<"left" | "right">;
|
|
41
43
|
readonly default: "left";
|
|
@@ -754,6 +756,7 @@ declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
754
756
|
};
|
|
755
757
|
readonly dashed: BooleanConstructor;
|
|
756
758
|
readonly renderIcon: PropType<() => VNodeChild>;
|
|
759
|
+
readonly iconProps: PropType<IconProps>;
|
|
757
760
|
readonly iconPlacement: {
|
|
758
761
|
readonly type: PropType<"left" | "right">;
|
|
759
762
|
readonly default: "left";
|
|
@@ -1528,6 +1531,7 @@ declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
1528
1531
|
};
|
|
1529
1532
|
readonly dashed: BooleanConstructor;
|
|
1530
1533
|
readonly renderIcon: PropType<() => VNodeChild>;
|
|
1534
|
+
readonly iconProps: PropType<IconProps>;
|
|
1531
1535
|
readonly iconPlacement: {
|
|
1532
1536
|
readonly type: PropType<"left" | "right">;
|
|
1533
1537
|
readonly default: "left";
|
package/lib/button/src/Button.js
CHANGED
|
@@ -14,6 +14,7 @@ const _utils_1 = require("../../_utils");
|
|
|
14
14
|
const index_1 = require("../../_utils/color/index");
|
|
15
15
|
const browser_1 = require("../../_utils/env/browser");
|
|
16
16
|
const context_1 = require("../../button-group/src/context");
|
|
17
|
+
const icon_1 = require("../../icon");
|
|
17
18
|
const styles_1 = require("../styles");
|
|
18
19
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
19
20
|
exports.buttonProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { color: String, textColor: String, text: Boolean, block: Boolean, loading: Boolean, loadingSkeleton: Boolean, disabled: Boolean, circle: Boolean, size: String, ghost: Boolean, round: Boolean, secondary: Boolean, tertiary: Boolean, quaternary: Boolean, strong: Boolean, focusable: {
|
|
@@ -28,7 +29,7 @@ exports.buttonProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
28
29
|
}, type: {
|
|
29
30
|
type: String,
|
|
30
31
|
default: 'default'
|
|
31
|
-
}, dashed: Boolean, renderIcon: Function, iconPlacement: {
|
|
32
|
+
}, dashed: Boolean, renderIcon: Function, iconProps: Object, iconPlacement: {
|
|
32
33
|
type: String,
|
|
33
34
|
default: 'left'
|
|
34
35
|
}, attrType: {
|
|
@@ -501,11 +502,15 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
501
502
|
], tabindex: this.mergedFocusable ? 0 : -1, type: this.attrType, style: this.cssVars, disabled: this.disabled, onClick: this.handleClick, onBlur: this.handleBlur, onMousedown: this.handleMousedown, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown },
|
|
502
503
|
this.iconPlacement === 'right' && children,
|
|
503
504
|
(0, vue_1.h)(_internal_1.UFadeInExpandTransition, { width: true }, {
|
|
504
|
-
default: () => (0, _utils_1.resolveWrappedSlot)(this.$slots.icon, children => (this.loading
|
|
505
|
+
default: () => (0, _utils_1.resolveWrappedSlot)(this.$slots.icon, children => (this.loading
|
|
506
|
+
|| children
|
|
507
|
+
|| this.renderIcon
|
|
508
|
+
|| this.iconProps) && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-button__icon`, style: {
|
|
505
509
|
margin: (0, _utils_1.isSlotEmpty)(this.$slots.default) ? '0' : ''
|
|
506
510
|
} },
|
|
507
511
|
(0, vue_1.h)(_internal_1.UIconSwitchTransition, null, {
|
|
508
|
-
default: () => this.loading ? ((0, vue_1.h)(_internal_1.UBaseLoading, { clsPrefix: mergedClsPrefix, key: "loading", class: `${mergedClsPrefix}-icon-slot`, strokeWidth: 20 })) : ((0, vue_1.h)("div", { key: "icon", class: `${mergedClsPrefix}-icon-slot`, role: "none" },
|
|
512
|
+
default: () => this.loading ? ((0, vue_1.h)(_internal_1.UBaseLoading, { clsPrefix: mergedClsPrefix, key: "loading", class: `${mergedClsPrefix}-icon-slot`, strokeWidth: 20 })) : ((0, vue_1.h)("div", { key: "icon", class: `${mergedClsPrefix}-icon-slot`, role: "none" }, children
|
|
513
|
+
|| (this.renderIcon ? (this.renderIcon()) : this.iconProps ? ((0, vue_1.h)(icon_1.UIcon, Object.assign({}, this.iconProps))) : null)))
|
|
509
514
|
}))))
|
|
510
515
|
}),
|
|
511
516
|
this.iconPlacement === 'left' && children,
|
|
@@ -9114,7 +9114,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9114
9114
|
}>> & Readonly<{}>, {
|
|
9115
9115
|
readonly disabled: boolean;
|
|
9116
9116
|
readonly show: boolean;
|
|
9117
|
-
readonly buttonProps: Partial<ButtonProps>;
|
|
9118
9117
|
readonly iconProps: Partial<IconProps>;
|
|
9118
|
+
readonly buttonProps: Partial<ButtonProps>;
|
|
9119
9119
|
}, SlotsType<ChatAttachmentButtonSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9120
9120
|
export default _default;
|
|
@@ -9225,12 +9225,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9225
9225
|
readonly closeButtonText: string;
|
|
9226
9226
|
readonly shareButtonTooltip: string;
|
|
9227
9227
|
readonly profileButtonTooltip: string;
|
|
9228
|
+
readonly iconProps: Partial<IconProps>;
|
|
9228
9229
|
readonly typingChatIds: import("../../interface").ChatId[];
|
|
9229
9230
|
readonly onChatClose: VoidFunction;
|
|
9230
9231
|
readonly onChatShare: VoidFunction;
|
|
9231
9232
|
readonly onUserProfile: VoidFunction;
|
|
9232
9233
|
readonly buttonProps: Partial<ButtonProps>;
|
|
9233
|
-
readonly iconProps: Partial<IconProps>;
|
|
9234
9234
|
readonly selectedChat: ChatListItemData;
|
|
9235
9235
|
readonly shareButtonProps: Partial<ButtonProps>;
|
|
9236
9236
|
readonly profileButtonProps: Partial<ButtonProps>;
|
package/lib/components.d.ts
CHANGED
|
@@ -4252,6 +4252,7 @@ export declare const UButton: import("vue").DefineComponent<import("vue").Extrac
|
|
|
4252
4252
|
};
|
|
4253
4253
|
readonly dashed: BooleanConstructor;
|
|
4254
4254
|
readonly renderIcon: import("vue").PropType<() => import("vue").VNodeChild>;
|
|
4255
|
+
readonly iconProps: import("vue").PropType<import("./icon").IconProps>;
|
|
4255
4256
|
readonly iconPlacement: {
|
|
4256
4257
|
readonly type: import("vue").PropType<"left" | "right">;
|
|
4257
4258
|
readonly default: "left";
|
|
@@ -5026,6 +5027,7 @@ export declare const UButton: import("vue").DefineComponent<import("vue").Extrac
|
|
|
5026
5027
|
};
|
|
5027
5028
|
readonly dashed: BooleanConstructor;
|
|
5028
5029
|
readonly renderIcon: import("vue").PropType<() => import("vue").VNodeChild>;
|
|
5030
|
+
readonly iconProps: import("vue").PropType<import("./icon").IconProps>;
|
|
5029
5031
|
readonly iconPlacement: {
|
|
5030
5032
|
readonly type: import("vue").PropType<"left" | "right">;
|
|
5031
5033
|
readonly default: "left";
|
|
@@ -6415,6 +6417,7 @@ export declare const UxButton: new () => {
|
|
|
6415
6417
|
readonly size?: import("./button").ButtonSize | undefined;
|
|
6416
6418
|
readonly textColor?: string | undefined;
|
|
6417
6419
|
readonly renderIcon?: (() => import("vue").VNodeChild) | undefined;
|
|
6420
|
+
readonly iconProps?: import("./icon").IconProps | undefined;
|
|
6418
6421
|
} & {
|
|
6419
6422
|
name?: string | undefined | undefined;
|
|
6420
6423
|
placeholder?: string | undefined | undefined;
|
|
@@ -179615,8 +179618,8 @@ export declare const UText: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
179615
179618
|
color: string;
|
|
179616
179619
|
code: boolean;
|
|
179617
179620
|
strong: boolean;
|
|
179618
|
-
text: string;
|
|
179619
179621
|
delete: boolean;
|
|
179622
|
+
text: string;
|
|
179620
179623
|
variant: import("./typography").TypographyVariant;
|
|
179621
179624
|
italic: boolean;
|
|
179622
179625
|
variantOptions: import("./typography").TypographyVariantOptions;
|