@uzum-tech/ui 2.1.0 → 2.1.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 +7 -1
- package/dist/index.mjs +7 -1
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/button/src/Button.d.ts +13 -0
- package/es/button/src/Button.mjs +5 -0
- package/es/components.d.ts +10 -0
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/header/src/mobile/HeaderMobile.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/button/src/Button.d.ts +13 -0
- package/lib/button/src/Button.js +5 -0
- package/lib/components.d.ts +10 -0
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/header/src/mobile/HeaderMobile.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +6 -2
- package/web-types.json +11 -1
|
@@ -53,6 +53,10 @@ export declare const buttonProps: {
|
|
|
53
53
|
readonly type: BooleanConstructor;
|
|
54
54
|
readonly default: boolean;
|
|
55
55
|
};
|
|
56
|
+
readonly visible: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: true;
|
|
59
|
+
};
|
|
56
60
|
readonly theme: PropType<import("../../_mixins").Theme<"Button", {
|
|
57
61
|
heightTiny: string;
|
|
58
62
|
heightSmall: string;
|
|
@@ -767,6 +771,10 @@ declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
767
771
|
readonly type: BooleanConstructor;
|
|
768
772
|
readonly default: boolean;
|
|
769
773
|
};
|
|
774
|
+
readonly visible: {
|
|
775
|
+
readonly type: BooleanConstructor;
|
|
776
|
+
readonly default: true;
|
|
777
|
+
};
|
|
770
778
|
readonly theme: PropType<import("../../_mixins").Theme<"Button", {
|
|
771
779
|
heightTiny: string;
|
|
772
780
|
heightSmall: string;
|
|
@@ -1537,6 +1545,10 @@ declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
1537
1545
|
readonly type: BooleanConstructor;
|
|
1538
1546
|
readonly default: boolean;
|
|
1539
1547
|
};
|
|
1548
|
+
readonly visible: {
|
|
1549
|
+
readonly type: BooleanConstructor;
|
|
1550
|
+
readonly default: true;
|
|
1551
|
+
};
|
|
1540
1552
|
readonly theme: PropType<import("../../_mixins").Theme<"Button", {
|
|
1541
1553
|
heightTiny: string;
|
|
1542
1554
|
heightSmall: string;
|
|
@@ -2216,6 +2228,7 @@ declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
2216
2228
|
readonly iconPlacement: "left" | "right";
|
|
2217
2229
|
readonly attrType: "submit" | "button" | "reset";
|
|
2218
2230
|
readonly nativeFocusBehavior: boolean;
|
|
2231
|
+
readonly visible: boolean;
|
|
2219
2232
|
}, SlotsType<ButtonSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2220
2233
|
type InternalButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
2221
2234
|
type NativeButtonProps = Omit<ButtonHTMLAttributes, keyof InternalButtonProps>;
|
package/es/button/src/Button.mjs
CHANGED
|
@@ -60,6 +60,10 @@ export const buttonProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
|
60
60
|
nativeFocusBehavior: {
|
|
61
61
|
type: Boolean,
|
|
62
62
|
default: !isSafari
|
|
63
|
+
},
|
|
64
|
+
visible: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
63
67
|
}
|
|
64
68
|
});
|
|
65
69
|
const Button = defineComponent({
|
|
@@ -487,6 +491,7 @@ const Button = defineComponent({
|
|
|
487
491
|
};
|
|
488
492
|
},
|
|
489
493
|
render() {
|
|
494
|
+
if (this.visible === false) return null;
|
|
490
495
|
const {
|
|
491
496
|
mergedClsPrefix,
|
|
492
497
|
tag: Component,
|
package/es/components.d.ts
CHANGED
|
@@ -3282,6 +3282,10 @@ export declare const UButton: import("vue").DefineComponent<import("vue").Extrac
|
|
|
3282
3282
|
readonly type: BooleanConstructor;
|
|
3283
3283
|
readonly default: boolean;
|
|
3284
3284
|
};
|
|
3285
|
+
readonly visible: {
|
|
3286
|
+
readonly type: BooleanConstructor;
|
|
3287
|
+
readonly default: true;
|
|
3288
|
+
};
|
|
3285
3289
|
readonly theme: import("vue").PropType<import("./_mixins").Theme<"Button", {
|
|
3286
3290
|
heightTiny: string;
|
|
3287
3291
|
heightSmall: string;
|
|
@@ -4052,6 +4056,10 @@ export declare const UButton: import("vue").DefineComponent<import("vue").Extrac
|
|
|
4052
4056
|
readonly type: BooleanConstructor;
|
|
4053
4057
|
readonly default: boolean;
|
|
4054
4058
|
};
|
|
4059
|
+
readonly visible: {
|
|
4060
|
+
readonly type: BooleanConstructor;
|
|
4061
|
+
readonly default: true;
|
|
4062
|
+
};
|
|
4055
4063
|
readonly theme: import("vue").PropType<import("./_mixins").Theme<"Button", {
|
|
4056
4064
|
heightTiny: string;
|
|
4057
4065
|
heightSmall: string;
|
|
@@ -4731,6 +4739,7 @@ export declare const UButton: import("vue").DefineComponent<import("vue").Extrac
|
|
|
4731
4739
|
readonly iconPlacement: "left" | "right";
|
|
4732
4740
|
readonly attrType: "submit" | "button" | "reset";
|
|
4733
4741
|
readonly nativeFocusBehavior: boolean;
|
|
4742
|
+
readonly visible: boolean;
|
|
4734
4743
|
}, import("vue").SlotsType<import("./button").ButtonSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4735
4744
|
export declare const UxButton: new () => {
|
|
4736
4745
|
$props: Partial<{
|
|
@@ -4755,6 +4764,7 @@ export declare const UxButton: new () => {
|
|
|
4755
4764
|
readonly iconPlacement: "left" | "right";
|
|
4756
4765
|
readonly attrType: "submit" | "button" | "reset";
|
|
4757
4766
|
readonly nativeFocusBehavior: boolean;
|
|
4767
|
+
readonly visible: boolean;
|
|
4758
4768
|
} & {
|
|
4759
4769
|
readonly theme?: import("./_mixins").Theme<"Button", {
|
|
4760
4770
|
heightTiny: string;
|
|
@@ -438,6 +438,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<ExtractPropT
|
|
|
438
438
|
iconPlacement?: "left" | "right" | undefined;
|
|
439
439
|
attrType?: "submit" | "button" | "reset" | undefined;
|
|
440
440
|
nativeFocusBehavior?: boolean | undefined;
|
|
441
|
+
visible?: boolean | undefined;
|
|
441
442
|
} | undefined;
|
|
442
443
|
negativeButtonProps?: {
|
|
443
444
|
bordered?: boolean | undefined;
|
|
@@ -815,6 +816,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<ExtractPropT
|
|
|
815
816
|
iconPlacement?: "left" | "right" | undefined;
|
|
816
817
|
attrType?: "submit" | "button" | "reset" | undefined;
|
|
817
818
|
nativeFocusBehavior?: boolean | undefined;
|
|
819
|
+
visible?: boolean | undefined;
|
|
818
820
|
} | undefined;
|
|
819
821
|
action?: (() => import("vue").VNodeChild) | undefined;
|
|
820
822
|
onPositiveClick?: ((e: MouseEvent) => Promise<unknown> | unknown) | undefined;
|
|
@@ -1225,6 +1227,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<ExtractPropT
|
|
|
1225
1227
|
iconPlacement?: "left" | "right" | undefined;
|
|
1226
1228
|
attrType?: "submit" | "button" | "reset" | undefined;
|
|
1227
1229
|
nativeFocusBehavior?: boolean | undefined;
|
|
1230
|
+
visible?: boolean | undefined;
|
|
1228
1231
|
} | undefined;
|
|
1229
1232
|
negativeButtonProps?: {
|
|
1230
1233
|
bordered?: boolean | undefined;
|
|
@@ -1602,6 +1605,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<ExtractPropT
|
|
|
1602
1605
|
iconPlacement?: "left" | "right" | undefined;
|
|
1603
1606
|
attrType?: "submit" | "button" | "reset" | undefined;
|
|
1604
1607
|
nativeFocusBehavior?: boolean | undefined;
|
|
1608
|
+
visible?: boolean | undefined;
|
|
1605
1609
|
} | undefined;
|
|
1606
1610
|
action?: (() => import("vue").VNodeChild) | undefined;
|
|
1607
1611
|
onPositiveClick?: ((e: MouseEvent) => Promise<unknown> | unknown) | undefined;
|
|
@@ -207,8 +207,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
207
207
|
}>> & Readonly<{}>, {
|
|
208
208
|
readonly primaryActionText: string;
|
|
209
209
|
readonly secondaryActionText: string;
|
|
210
|
-
readonly menuOptions: NormalizedMenuItem[];
|
|
211
210
|
readonly visible: boolean;
|
|
211
|
+
readonly menuOptions: NormalizedMenuItem[];
|
|
212
212
|
readonly menuType: "drawer" | "dropdown";
|
|
213
213
|
readonly drawerPlacement: "left" | "right";
|
|
214
214
|
readonly drawerWidth: string;
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.1.
|
|
1
|
+
declare const _default: "2.1.1";
|
|
2
2
|
export default _default;
|
package/es/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.1.
|
|
1
|
+
export default '2.1.1';
|
|
@@ -53,6 +53,10 @@ export declare const buttonProps: {
|
|
|
53
53
|
readonly type: BooleanConstructor;
|
|
54
54
|
readonly default: boolean;
|
|
55
55
|
};
|
|
56
|
+
readonly visible: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: true;
|
|
59
|
+
};
|
|
56
60
|
readonly theme: PropType<import("../../_mixins").Theme<"Button", {
|
|
57
61
|
heightTiny: string;
|
|
58
62
|
heightSmall: string;
|
|
@@ -767,6 +771,10 @@ declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
767
771
|
readonly type: BooleanConstructor;
|
|
768
772
|
readonly default: boolean;
|
|
769
773
|
};
|
|
774
|
+
readonly visible: {
|
|
775
|
+
readonly type: BooleanConstructor;
|
|
776
|
+
readonly default: true;
|
|
777
|
+
};
|
|
770
778
|
readonly theme: PropType<import("../../_mixins").Theme<"Button", {
|
|
771
779
|
heightTiny: string;
|
|
772
780
|
heightSmall: string;
|
|
@@ -1537,6 +1545,10 @@ declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
1537
1545
|
readonly type: BooleanConstructor;
|
|
1538
1546
|
readonly default: boolean;
|
|
1539
1547
|
};
|
|
1548
|
+
readonly visible: {
|
|
1549
|
+
readonly type: BooleanConstructor;
|
|
1550
|
+
readonly default: true;
|
|
1551
|
+
};
|
|
1540
1552
|
readonly theme: PropType<import("../../_mixins").Theme<"Button", {
|
|
1541
1553
|
heightTiny: string;
|
|
1542
1554
|
heightSmall: string;
|
|
@@ -2216,6 +2228,7 @@ declare const Button: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
2216
2228
|
readonly iconPlacement: "left" | "right";
|
|
2217
2229
|
readonly attrType: "submit" | "button" | "reset";
|
|
2218
2230
|
readonly nativeFocusBehavior: boolean;
|
|
2231
|
+
readonly visible: boolean;
|
|
2219
2232
|
}, SlotsType<ButtonSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2220
2233
|
type InternalButtonProps = ExtractPropTypes<typeof buttonProps>;
|
|
2221
2234
|
type NativeButtonProps = Omit<ButtonHTMLAttributes, keyof InternalButtonProps>;
|
package/lib/button/src/Button.js
CHANGED
|
@@ -40,6 +40,9 @@ exports.buttonProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
40
40
|
}, onClick: [Function, Array], nativeFocusBehavior: {
|
|
41
41
|
type: Boolean,
|
|
42
42
|
default: !browser_1.isSafari
|
|
43
|
+
}, visible: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: true
|
|
43
46
|
} });
|
|
44
47
|
const Button = (0, vue_1.defineComponent)({
|
|
45
48
|
name: 'Button',
|
|
@@ -474,6 +477,8 @@ const Button = (0, vue_1.defineComponent)({
|
|
|
474
477
|
};
|
|
475
478
|
},
|
|
476
479
|
render() {
|
|
480
|
+
if (this.visible === false)
|
|
481
|
+
return null;
|
|
477
482
|
const { mergedClsPrefix, tag: Component, onRender } = this;
|
|
478
483
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
479
484
|
const children = (0, _utils_1.resolveWrappedSlot)(this.$slots.default, children => children && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-button__content` }, children)));
|
package/lib/components.d.ts
CHANGED
|
@@ -3282,6 +3282,10 @@ export declare const UButton: import("vue").DefineComponent<import("vue").Extrac
|
|
|
3282
3282
|
readonly type: BooleanConstructor;
|
|
3283
3283
|
readonly default: boolean;
|
|
3284
3284
|
};
|
|
3285
|
+
readonly visible: {
|
|
3286
|
+
readonly type: BooleanConstructor;
|
|
3287
|
+
readonly default: true;
|
|
3288
|
+
};
|
|
3285
3289
|
readonly theme: import("vue").PropType<import("./_mixins").Theme<"Button", {
|
|
3286
3290
|
heightTiny: string;
|
|
3287
3291
|
heightSmall: string;
|
|
@@ -4052,6 +4056,10 @@ export declare const UButton: import("vue").DefineComponent<import("vue").Extrac
|
|
|
4052
4056
|
readonly type: BooleanConstructor;
|
|
4053
4057
|
readonly default: boolean;
|
|
4054
4058
|
};
|
|
4059
|
+
readonly visible: {
|
|
4060
|
+
readonly type: BooleanConstructor;
|
|
4061
|
+
readonly default: true;
|
|
4062
|
+
};
|
|
4055
4063
|
readonly theme: import("vue").PropType<import("./_mixins").Theme<"Button", {
|
|
4056
4064
|
heightTiny: string;
|
|
4057
4065
|
heightSmall: string;
|
|
@@ -4731,6 +4739,7 @@ export declare const UButton: import("vue").DefineComponent<import("vue").Extrac
|
|
|
4731
4739
|
readonly iconPlacement: "left" | "right";
|
|
4732
4740
|
readonly attrType: "submit" | "button" | "reset";
|
|
4733
4741
|
readonly nativeFocusBehavior: boolean;
|
|
4742
|
+
readonly visible: boolean;
|
|
4734
4743
|
}, import("vue").SlotsType<import("./button").ButtonSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
4735
4744
|
export declare const UxButton: new () => {
|
|
4736
4745
|
$props: Partial<{
|
|
@@ -4755,6 +4764,7 @@ export declare const UxButton: new () => {
|
|
|
4755
4764
|
readonly iconPlacement: "left" | "right";
|
|
4756
4765
|
readonly attrType: "submit" | "button" | "reset";
|
|
4757
4766
|
readonly nativeFocusBehavior: boolean;
|
|
4767
|
+
readonly visible: boolean;
|
|
4758
4768
|
} & {
|
|
4759
4769
|
readonly theme?: import("./_mixins").Theme<"Button", {
|
|
4760
4770
|
heightTiny: string;
|
|
@@ -438,6 +438,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<ExtractPropT
|
|
|
438
438
|
iconPlacement?: "left" | "right" | undefined;
|
|
439
439
|
attrType?: "submit" | "button" | "reset" | undefined;
|
|
440
440
|
nativeFocusBehavior?: boolean | undefined;
|
|
441
|
+
visible?: boolean | undefined;
|
|
441
442
|
} | undefined;
|
|
442
443
|
negativeButtonProps?: {
|
|
443
444
|
bordered?: boolean | undefined;
|
|
@@ -815,6 +816,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<ExtractPropT
|
|
|
815
816
|
iconPlacement?: "left" | "right" | undefined;
|
|
816
817
|
attrType?: "submit" | "button" | "reset" | undefined;
|
|
817
818
|
nativeFocusBehavior?: boolean | undefined;
|
|
819
|
+
visible?: boolean | undefined;
|
|
818
820
|
} | undefined;
|
|
819
821
|
action?: (() => import("vue").VNodeChild) | undefined;
|
|
820
822
|
onPositiveClick?: ((e: MouseEvent) => Promise<unknown> | unknown) | undefined;
|
|
@@ -1225,6 +1227,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<ExtractPropT
|
|
|
1225
1227
|
iconPlacement?: "left" | "right" | undefined;
|
|
1226
1228
|
attrType?: "submit" | "button" | "reset" | undefined;
|
|
1227
1229
|
nativeFocusBehavior?: boolean | undefined;
|
|
1230
|
+
visible?: boolean | undefined;
|
|
1228
1231
|
} | undefined;
|
|
1229
1232
|
negativeButtonProps?: {
|
|
1230
1233
|
bordered?: boolean | undefined;
|
|
@@ -1602,6 +1605,7 @@ export declare const UDialogProvider: import("vue").DefineComponent<ExtractPropT
|
|
|
1602
1605
|
iconPlacement?: "left" | "right" | undefined;
|
|
1603
1606
|
attrType?: "submit" | "button" | "reset" | undefined;
|
|
1604
1607
|
nativeFocusBehavior?: boolean | undefined;
|
|
1608
|
+
visible?: boolean | undefined;
|
|
1605
1609
|
} | undefined;
|
|
1606
1610
|
action?: (() => import("vue").VNodeChild) | undefined;
|
|
1607
1611
|
onPositiveClick?: ((e: MouseEvent) => Promise<unknown> | unknown) | undefined;
|
|
@@ -207,8 +207,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
207
207
|
}>> & Readonly<{}>, {
|
|
208
208
|
readonly primaryActionText: string;
|
|
209
209
|
readonly secondaryActionText: string;
|
|
210
|
-
readonly menuOptions: NormalizedMenuItem[];
|
|
211
210
|
readonly visible: boolean;
|
|
211
|
+
readonly menuOptions: NormalizedMenuItem[];
|
|
212
212
|
readonly menuType: "drawer" | "dropdown";
|
|
213
213
|
readonly drawerPlacement: "left" | "right";
|
|
214
214
|
readonly drawerWidth: string;
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.1.
|
|
1
|
+
declare const _default: "2.1.1";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uzum-tech/ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"packageManager": "pnpm@10.33.0",
|
|
5
5
|
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
|
|
6
6
|
"author": {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"email": "jbalancer@mail.ru",
|
|
14
14
|
"url": "https://jbalancer.com"
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"name": "Otabek Azamov",
|
|
18
|
+
"email": "o.azamov@uzum.com"
|
|
19
|
+
},
|
|
16
20
|
{
|
|
17
21
|
"name": "Suyarov Sarvarbek",
|
|
18
22
|
"email": "nick881sava@gmail.com"
|
|
@@ -138,7 +142,7 @@
|
|
|
138
142
|
"@types/fs-extra": "11.0.4",
|
|
139
143
|
"@types/node": "24.0.12",
|
|
140
144
|
"@types/superagent": "8.1.9",
|
|
141
|
-
"@uzum-tech/icons": "1.1
|
|
145
|
+
"@uzum-tech/icons": "1.2.1",
|
|
142
146
|
"@vicons/fluent": "0.13.0",
|
|
143
147
|
"@vicons/ionicons4": "0.13.0",
|
|
144
148
|
"@vicons/ionicons5": "0.13.0",
|
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.1.
|
|
5
|
+
"version": "2.1.1",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -1192,6 +1192,16 @@
|
|
|
1192
1192
|
"type": "string",
|
|
1193
1193
|
"description": "What tag need the button be rendered as.",
|
|
1194
1194
|
"default": "'button'"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"name": "visible",
|
|
1198
|
+
"doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/button",
|
|
1199
|
+
"type": "boolean",
|
|
1200
|
+
"description": "Whether to render the button. When `false`, the button is not rendered at all.",
|
|
1201
|
+
"default": "true",
|
|
1202
|
+
"description-sections": {
|
|
1203
|
+
"since": "2.1.1"
|
|
1204
|
+
}
|
|
1195
1205
|
}
|
|
1196
1206
|
],
|
|
1197
1207
|
"js": {
|