@uzum-tech/ui 2.1.0 → 2.1.2

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.
Files changed (82) hide show
  1. package/dist/index.js +1236 -126
  2. package/dist/index.mjs +1232 -127
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/icon/index.d.ts +4 -2
  6. package/es/_internal/icon/index.mjs +3 -1
  7. package/es/_internal/icon/src/UIcon.d.ts +20 -63
  8. package/es/_internal/icon/src/UIcon.mjs +1 -9
  9. package/es/_internal/icon/src/interface.d.ts +50 -0
  10. package/es/_internal/icon/src/interface.mjs +10 -0
  11. package/es/_internal/icon/src/render-icon.d.ts +4 -0
  12. package/es/_internal/icon/src/render-icon.mjs +10 -0
  13. package/es/button/src/Button.d.ts +13 -0
  14. package/es/button/src/Button.mjs +5 -0
  15. package/es/chat/src/Chat.mjs +3 -1
  16. package/es/chat/src/ChatListItems.mjs +3 -3
  17. package/es/chat/src/ChatParts/Sidebar.mjs +2 -1
  18. package/es/chat/src/interface.d.ts +1 -0
  19. package/es/components.d.ts +13 -1
  20. package/es/components.mjs +1 -1
  21. package/es/dialog/src/DialogProvider.d.ts +4 -0
  22. package/es/drawer/src/DrawerContent.d.ts +3 -0
  23. package/es/drawer/src/DrawerContent.mjs +4 -2
  24. package/es/ellipsis/src/Ellipsis.mjs +2 -1
  25. package/es/header/src/mobile/HeaderMobile.d.ts +1 -1
  26. package/es/icon/index.d.ts +2 -2
  27. package/es/icon/index.mjs +1 -1
  28. package/es/icon/src/Icon.d.ts +2 -2
  29. package/es/icon/src/Icon.mjs +1 -1
  30. package/es/locales/common/uzUZ.d.ts +3 -0
  31. package/es/locales/common/uzUZ.mjs +162 -0
  32. package/es/locales/common/zhCN.d.ts +3 -0
  33. package/es/locales/common/zhCN.mjs +162 -0
  34. package/es/locales/date/uzUZ.d.ts +3 -0
  35. package/es/locales/date/uzUZ.mjs +6 -0
  36. package/es/locales/date/zhCN.d.ts +3 -0
  37. package/es/locales/date/zhCN.mjs +6 -0
  38. package/es/locales/index.d.ts +4 -0
  39. package/es/locales/index.mjs +4 -0
  40. package/es/popover/src/PopoverBody.mjs +1 -1
  41. package/es/version.d.ts +1 -1
  42. package/es/version.mjs +1 -1
  43. package/lib/_internal/icon/index.d.ts +4 -2
  44. package/lib/_internal/icon/index.js +5 -2
  45. package/lib/_internal/icon/src/UIcon.d.ts +20 -63
  46. package/lib/_internal/icon/src/UIcon.js +3 -3
  47. package/lib/_internal/icon/src/interface.d.ts +50 -0
  48. package/lib/_internal/icon/src/interface.js +5 -0
  49. package/lib/_internal/icon/src/render-icon.d.ts +4 -0
  50. package/lib/_internal/icon/src/render-icon.js +11 -0
  51. package/lib/button/src/Button.d.ts +13 -0
  52. package/lib/button/src/Button.js +5 -0
  53. package/lib/chat/src/Chat.js +3 -1
  54. package/lib/chat/src/ChatListItems.js +2 -2
  55. package/lib/chat/src/ChatParts/Sidebar.js +2 -1
  56. package/lib/chat/src/interface.d.ts +1 -0
  57. package/lib/components.d.ts +13 -1
  58. package/lib/components.js +6 -5
  59. package/lib/dialog/src/DialogProvider.d.ts +4 -0
  60. package/lib/drawer/src/DrawerContent.d.ts +3 -0
  61. package/lib/drawer/src/DrawerContent.js +9 -2
  62. package/lib/ellipsis/src/Ellipsis.js +1 -1
  63. package/lib/header/src/mobile/HeaderMobile.d.ts +1 -1
  64. package/lib/icon/index.d.ts +2 -2
  65. package/lib/icon/index.js +2 -1
  66. package/lib/icon/src/Icon.d.ts +2 -2
  67. package/lib/icon/src/Icon.js +2 -1
  68. package/lib/locales/common/uzUZ.d.ts +3 -0
  69. package/lib/locales/common/uzUZ.js +164 -0
  70. package/lib/locales/common/zhCN.d.ts +3 -0
  71. package/lib/locales/common/zhCN.js +164 -0
  72. package/lib/locales/date/uzUZ.d.ts +3 -0
  73. package/lib/locales/date/uzUZ.js +8 -0
  74. package/lib/locales/date/zhCN.d.ts +3 -0
  75. package/lib/locales/date/zhCN.js +8 -0
  76. package/lib/locales/index.d.ts +4 -0
  77. package/lib/locales/index.js +9 -1
  78. package/lib/popover/src/PopoverBody.js +4 -1
  79. package/lib/version.d.ts +1 -1
  80. package/lib/version.js +1 -1
  81. package/package.json +6 -2
  82. package/web-types.json +21 -1
@@ -1,3 +1,5 @@
1
1
  export { default as UBaseIcon } from './src/Icon';
2
- export { iconProps, UIcon } from './src/UIcon';
3
- export type { Depth, GenericUIcon, IconNameOf, IconProps } from './src/UIcon';
2
+ export { iconProps } from './src/interface';
3
+ export type { Depth, GenericUIcon, IconNameOf, IconProps, RenderIconProps } from './src/interface';
4
+ export { renderIcon } from './src/render-icon';
5
+ export { UIcon } from './src/UIcon';
@@ -1,2 +1,4 @@
1
1
  export { default as UBaseIcon } from "./src/Icon.mjs";
2
- export { iconProps, UIcon } from "./src/UIcon.mjs";
2
+ export { iconProps } from "./src/interface.mjs";
3
+ export { renderIcon } from "./src/render-icon.mjs";
4
+ export { UIcon } from "./src/UIcon.mjs";
@@ -1,52 +1,14 @@
1
- import type { IconPackBase, IconPackRegistry } from '@uzum-tech/icons';
2
- import type { Component, PropType, VNodeChild } from 'vue';
3
- import type { ExtractPublicPropTypes } from '../../../_utils';
4
- import type { IconPackName } from '../../../config-provider/src/internal-interface';
5
- export type Depth = 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5' | undefined;
6
- export type IconNameOf<P extends IconPackName> = IconPackRegistry extends Record<P, infer Pack> ? Pack extends IconPackBase<infer Name> ? Name : string : string;
7
- export declare const iconProps: {
8
- readonly depth: PropType<Depth>;
9
- readonly size: PropType<number | string>;
10
- readonly color: StringConstructor;
11
- readonly component: PropType<Component>;
12
- readonly name: PropType<string>;
13
- readonly pack: PropType<IconPackName>;
14
- readonly onClick: PropType<(e: MouseEvent) => void>;
15
- readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
16
- color: string;
17
- opacity1Depth: string;
18
- opacity2Depth: string;
19
- opacity3Depth: string;
20
- opacity4Depth: string;
21
- opacity5Depth: string;
22
- }, any>>;
23
- readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
24
- color: string;
25
- opacity1Depth: string;
26
- opacity2Depth: string;
27
- opacity3Depth: string;
28
- opacity4Depth: string;
29
- opacity5Depth: string;
30
- }, any>>>;
31
- readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
32
- color: string;
33
- opacity1Depth: string;
34
- opacity2Depth: string;
35
- opacity3Depth: string;
36
- opacity4Depth: string;
37
- opacity5Depth: string;
38
- }, any>>>;
39
- };
40
- export type IconProps = ExtractPublicPropTypes<typeof iconProps>;
1
+ import type { VNodeChild } from 'vue';
2
+ import type { GenericUIcon } from './interface';
41
3
  declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
42
- readonly depth: PropType<Depth>;
43
- readonly size: PropType<number | string>;
4
+ readonly depth: import("vue").PropType<import("./interface").Depth>;
5
+ readonly size: import("vue").PropType<number | string>;
44
6
  readonly color: StringConstructor;
45
- readonly component: PropType<Component>;
46
- readonly name: PropType<string>;
47
- readonly pack: PropType<IconPackName>;
48
- readonly onClick: PropType<(e: MouseEvent) => void>;
49
- readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
7
+ readonly component: import("vue").PropType<import("vue").Component>;
8
+ readonly name: import("vue").PropType<string>;
9
+ readonly pack: import("vue").PropType<import("../../..").IconPackName>;
10
+ readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
11
+ readonly theme: import("vue").PropType<import("../../../_mixins").Theme<"Icon", {
50
12
  color: string;
51
13
  opacity1Depth: string;
52
14
  opacity2Depth: string;
@@ -54,7 +16,7 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
54
16
  opacity4Depth: string;
55
17
  opacity5Depth: string;
56
18
  }, any>>;
57
- readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
19
+ readonly themeOverrides: import("vue").PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
58
20
  color: string;
59
21
  opacity1Depth: string;
60
22
  opacity2Depth: string;
@@ -62,7 +24,7 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
62
24
  opacity4Depth: string;
63
25
  opacity5Depth: string;
64
26
  }, any>>>;
65
- readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
27
+ readonly builtinThemeOverrides: import("vue").PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
66
28
  color: string;
67
29
  opacity1Depth: string;
68
30
  opacity2Depth: string;
@@ -85,14 +47,14 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
85
47
  themeClass: import("vue").Ref<string, string> | undefined;
86
48
  onRender: (() => void) | undefined;
87
49
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
88
- readonly depth: PropType<Depth>;
89
- readonly size: PropType<number | string>;
50
+ readonly depth: import("vue").PropType<import("./interface").Depth>;
51
+ readonly size: import("vue").PropType<number | string>;
90
52
  readonly color: StringConstructor;
91
- readonly component: PropType<Component>;
92
- readonly name: PropType<string>;
93
- readonly pack: PropType<IconPackName>;
94
- readonly onClick: PropType<(e: MouseEvent) => void>;
95
- readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
53
+ readonly component: import("vue").PropType<import("vue").Component>;
54
+ readonly name: import("vue").PropType<string>;
55
+ readonly pack: import("vue").PropType<import("../../..").IconPackName>;
56
+ readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
57
+ readonly theme: import("vue").PropType<import("../../../_mixins").Theme<"Icon", {
96
58
  color: string;
97
59
  opacity1Depth: string;
98
60
  opacity2Depth: string;
@@ -100,7 +62,7 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
100
62
  opacity4Depth: string;
101
63
  opacity5Depth: string;
102
64
  }, any>>;
103
- readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
65
+ readonly themeOverrides: import("vue").PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
104
66
  color: string;
105
67
  opacity1Depth: string;
106
68
  opacity2Depth: string;
@@ -108,7 +70,7 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
108
70
  opacity4Depth: string;
109
71
  opacity5Depth: string;
110
72
  }, any>>>;
111
- readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
73
+ readonly builtinThemeOverrides: import("vue").PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
112
74
  color: string;
113
75
  opacity1Depth: string;
114
76
  opacity2Depth: string;
@@ -117,10 +79,5 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
117
79
  opacity5Depth: string;
118
80
  }, any>>>;
119
81
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
120
- type IconBaseProps = Omit<IconProps, 'name' | 'pack'>;
121
- export type GenericUIcon = <P extends IconPackName = IconPackName>(props: IconBaseProps & {
122
- pack?: P;
123
- name?: IconNameOf<P>;
124
- }) => any;
125
82
  export declare const UIcon: typeof UIconImpl & GenericUIcon;
126
83
  export {};
@@ -4,15 +4,7 @@ import { formatLength, warn } from "../../../_utils/index.mjs";
4
4
  import style from "../../../icon/src/styles/index.cssr.mjs";
5
5
  import { iconLight } from "../../../icon/styles/index.mjs";
6
6
  import UBaseIcon from "./Icon.mjs";
7
- export const iconProps = Object.assign(Object.assign({}, useTheme.props), {
8
- depth: [String, Number],
9
- size: [Number, String],
10
- color: String,
11
- component: Object,
12
- name: String,
13
- pack: String,
14
- onClick: Function
15
- });
7
+ import { iconProps } from "./interface.mjs";
16
8
  const UIconImpl = defineComponent({
17
9
  _n_icon__: true,
18
10
  name: 'Icon',
@@ -0,0 +1,50 @@
1
+ import type { IconPackBase, IconPackRegistry } from '@uzum-tech/icons';
2
+ import type { Component, PropType, VNodeChild } from 'vue';
3
+ import type { ExtractPublicPropTypes } from '../../../_utils';
4
+ import type { IconPackName } from '../../../config-provider/src/internal-interface';
5
+ export type Depth = 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5' | undefined;
6
+ export type IconNameOf<P extends IconPackName> = IconPackRegistry extends Record<P, infer Pack> ? Pack extends IconPackBase<infer Name> ? Name : string : string;
7
+ export declare const iconProps: {
8
+ readonly depth: PropType<Depth>;
9
+ readonly size: PropType<number | string>;
10
+ readonly color: StringConstructor;
11
+ readonly component: PropType<Component>;
12
+ readonly name: PropType<string>;
13
+ readonly pack: PropType<IconPackName>;
14
+ readonly onClick: PropType<(e: MouseEvent) => void>;
15
+ readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
16
+ color: string;
17
+ opacity1Depth: string;
18
+ opacity2Depth: string;
19
+ opacity3Depth: string;
20
+ opacity4Depth: string;
21
+ opacity5Depth: string;
22
+ }, any>>;
23
+ readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
24
+ color: string;
25
+ opacity1Depth: string;
26
+ opacity2Depth: string;
27
+ opacity3Depth: string;
28
+ opacity4Depth: string;
29
+ opacity5Depth: string;
30
+ }, any>>>;
31
+ readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
32
+ color: string;
33
+ opacity1Depth: string;
34
+ opacity2Depth: string;
35
+ opacity3Depth: string;
36
+ opacity4Depth: string;
37
+ opacity5Depth: string;
38
+ }, any>>>;
39
+ };
40
+ export type IconProps = ExtractPublicPropTypes<typeof iconProps>;
41
+ type IconBaseProps = Omit<IconProps, 'name' | 'pack'>;
42
+ export type GenericUIcon = <P extends IconPackName = IconPackName>(props: IconBaseProps & {
43
+ pack?: P;
44
+ name?: IconNameOf<P>;
45
+ }) => any;
46
+ export type RenderIconProps<P extends IconPackName = IconPackName> = IconBaseProps & {
47
+ pack?: P;
48
+ };
49
+ export type RenderIconChildren = VNodeChild | (() => VNodeChild);
50
+ export {};
@@ -0,0 +1,10 @@
1
+ import { useTheme } from "../../../_mixins/index.mjs";
2
+ export const iconProps = Object.assign(Object.assign({}, useTheme.props), {
3
+ depth: [String, Number],
4
+ size: [Number, String],
5
+ color: String,
6
+ component: Object,
7
+ name: String,
8
+ pack: String,
9
+ onClick: Function
10
+ });
@@ -0,0 +1,4 @@
1
+ import type { VNode } from 'vue';
2
+ import type { IconPackName } from '../../../config-provider/src/internal-interface';
3
+ import type { IconNameOf, RenderIconChildren, RenderIconProps } from './interface';
4
+ export declare function renderIcon<P extends IconPackName = IconPackName>(name: IconNameOf<P>, props?: RenderIconProps<P> | null, children?: RenderIconChildren): VNode;
@@ -0,0 +1,10 @@
1
+ import { h } from 'vue';
2
+ import { UIcon } from "./UIcon.mjs";
3
+ export function renderIcon(name, props, children) {
4
+ const slots = children == null ? undefined : {
5
+ default: typeof children === 'function' ? children : () => children
6
+ };
7
+ return h(UIcon, Object.assign(Object.assign({}, props), {
8
+ name
9
+ }), slots);
10
+ }
@@ -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>;
@@ -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,
@@ -571,7 +571,9 @@ export default defineComponent({
571
571
  }, {
572
572
  default: () => h(Fragment, null, resolveSlot($slots.sidebar, () => [h(ChatSidebar, null, {
573
573
  sidebarHeaderMain: $slots.sidebarHeaderMain,
574
- sidebarHeaderActions: $slots.sidebarHeaderActions
574
+ sidebarHeaderActions: $slots.sidebarHeaderActions,
575
+ chatItemStatus: $slots.chatItemStatus,
576
+ chatItemSuffix: $slots.chatItemSuffix
575
577
  })]), this.selectedChatId && resolveSlot($slots.default, () => [h(ChatMainArea, {
576
578
  ref: "mainAreaRef"
577
579
  }, {
@@ -1,4 +1,4 @@
1
- import { computed, defineComponent, h, inject } from 'vue';
1
+ import { computed, defineComponent, Fragment, h, inject } from 'vue';
2
2
  import { CheckmarkDoneSharp, MdTime, PersonOutline, Refresh } from "../../_internal/icons/index.mjs";
3
3
  import { useConfig, useLocale, useTheme, useThemeClass } from "../../_mixins/index.mjs";
4
4
  import { UAvatar } from "../../avatar/index.mjs";
@@ -195,7 +195,7 @@ export default defineComponent({
195
195
  const lastMessageIsOwn = item.lastMessageIsOwn;
196
196
  return h("div", {
197
197
  class: `${mergedClsPrefixRef.value}-chat-sidebar__item-indicators`
198
- }, h("div", {
198
+ }, slots.chatItemSuffix ? slots.chatItemSuffix(item) : h(Fragment, null, h("div", {
199
199
  class: `${mergedClsPrefixRef.value}-chat-sidebar__item-time`
200
200
  }, item.datetime), h("div", {
201
201
  class: `${mergedClsPrefixRef.value}-chat-sidebar__item-status`
@@ -210,7 +210,7 @@ export default defineComponent({
210
210
  }, props.badgeProps, {
211
211
  theme: themeRef.value.peers.Badge,
212
212
  themeOverrides: themeRef.value.peerOverrides.Badge
213
- }))));
213
+ })))));
214
214
  }
215
215
  });
216
216
  };
@@ -126,7 +126,8 @@ export default defineComponent({
126
126
  notificationsShown: this.notificationsShownSetRef,
127
127
  onChatSelect: this.handleChatSelect
128
128
  }, {
129
- chatItemStatus: this.slots.chatItemStatus
129
+ chatItemStatus: this.slots.chatItemStatus,
130
+ chatItemSuffix: this.slots.chatItemSuffix
130
131
  })
131
132
  }));
132
133
  }
@@ -198,6 +198,7 @@ export interface ChatSlots {
198
198
  listHeader?: () => VNodeChild;
199
199
  listEmpty?: () => VNodeChild;
200
200
  chatItemStatus?: (item: ChatListItemData) => VNodeChild;
201
+ chatItemSuffix?: (item: ChatListItemData) => VNodeChild;
201
202
  messageStatus?: (message: ChatMessageData) => VNodeChild;
202
203
  messageContent?: (message: ChatMessageData) => VNodeChild;
203
204
  messageTimestamp?: (message: ChatMessageData) => VNodeChild;
@@ -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;
@@ -55062,6 +55072,7 @@ export declare const UDrawerContent: import("vue").DefineComponent<import("vue")
55062
55072
  headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55063
55073
  footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55064
55074
  bodyStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55075
+ bodyContentClass: StringConstructor;
55065
55076
  bodyContentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55066
55077
  nativeScrollbar: {
55067
55078
  type: BooleanConstructor;
@@ -55205,6 +55216,7 @@ export declare const UDrawerContent: import("vue").DefineComponent<import("vue")
55205
55216
  headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55206
55217
  footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55207
55218
  bodyStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55219
+ bodyContentClass: StringConstructor;
55208
55220
  bodyContentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55209
55221
  nativeScrollbar: {
55210
55222
  type: BooleanConstructor;
@@ -65483,7 +65495,7 @@ export declare const UHighlight: import("vue").DefineComponent<import("vue").Ext
65483
65495
  readonly patterns: string[];
65484
65496
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65485
65497
  export type * from './icon';
65486
- export { iconProps } from './icon';
65498
+ export { iconProps, renderIcon } from './icon';
65487
65499
  export declare const UIcon: {
65488
65500
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
65489
65501
  readonly depth: import("vue").PropType<import("./_internal/icon").Depth>;
package/es/components.mjs CHANGED
@@ -237,7 +237,7 @@ export { heatmapDark, heatmapLight, heatmapMockData, heatmapProps } from "./heat
237
237
  export const UHeatmap = wrap(_UHeatmap);
238
238
  export { highlightProps } from "./highlight/index.mjs";
239
239
  export const UHighlight = wrap(_UHighlight);
240
- export { iconProps } from "./icon/index.mjs";
240
+ export { iconProps, renderIcon } from "./icon/index.mjs";
241
241
  export const UIcon = wrap(_UIcon);
242
242
  export { iconBarItemProps, iconBarProps } from "./icon-bar/index.mjs";
243
243
  export const UIconBar = wrap(_UIconBar);
@@ -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;
@@ -12,6 +12,7 @@ export declare const drawerContentProps: {
12
12
  headerStyle: PropType<string | CSSProperties>;
13
13
  footerStyle: PropType<string | CSSProperties>;
14
14
  bodyStyle: PropType<string | CSSProperties>;
15
+ bodyContentClass: StringConstructor;
15
16
  bodyContentStyle: PropType<string | CSSProperties>;
16
17
  nativeScrollbar: {
17
18
  type: BooleanConstructor;
@@ -46,6 +47,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
46
47
  headerStyle: PropType<string | CSSProperties>;
47
48
  footerStyle: PropType<string | CSSProperties>;
48
49
  bodyStyle: PropType<string | CSSProperties>;
50
+ bodyContentClass: StringConstructor;
49
51
  bodyContentStyle: PropType<string | CSSProperties>;
50
52
  nativeScrollbar: {
51
53
  type: BooleanConstructor;
@@ -189,6 +191,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
189
191
  headerStyle: PropType<string | CSSProperties>;
190
192
  footerStyle: PropType<string | CSSProperties>;
191
193
  bodyStyle: PropType<string | CSSProperties>;
194
+ bodyContentClass: StringConstructor;
192
195
  bodyContentStyle: PropType<string | CSSProperties>;
193
196
  nativeScrollbar: {
194
197
  type: BooleanConstructor;
@@ -14,6 +14,7 @@ export const drawerContentProps = {
14
14
  headerStyle: [Object, String],
15
15
  footerStyle: [Object, String],
16
16
  bodyStyle: [Object, String],
17
+ bodyContentClass: String,
17
18
  bodyContentStyle: [Object, String],
18
19
  nativeScrollbar: {
19
20
  type: Boolean,
@@ -104,6 +105,7 @@ export default defineComponent({
104
105
  nativeScrollbar,
105
106
  mergedTheme,
106
107
  bodyStyle,
108
+ bodyContentClass,
107
109
  bodyContentStyle,
108
110
  headerStyle,
109
111
  footerStyle,
@@ -142,7 +144,7 @@ export default defineComponent({
142
144
  style: bodyStyle,
143
145
  role: "none"
144
146
  }, h("div", {
145
- class: `${mergedClsPrefix}-drawer-body-content-wrapper`,
147
+ class: [`${mergedClsPrefix}-drawer-body-content-wrapper`, bodyContentClass],
146
148
  style: bodyContentStyle,
147
149
  role: "none"
148
150
  }, $slots)) : h(UScrollbar, Object.assign({
@@ -150,7 +152,7 @@ export default defineComponent({
150
152
  theme: mergedTheme.peers.Scrollbar
151
153
  }, scrollbarProps, {
152
154
  class: `${mergedClsPrefix}-drawer-body`,
153
- contentClass: `${mergedClsPrefix}-drawer-body-content-wrapper`,
155
+ contentClass: [`${mergedClsPrefix}-drawer-body-content-wrapper`, bodyContentClass],
154
156
  contentStyle: bodyContentStyle
155
157
  }), $slots), footerNode);
156
158
  }
@@ -170,7 +170,8 @@ export default defineComponent({
170
170
  } = this;
171
171
  return h(UTooltip, Object.assign({
172
172
  ref: "tooltipRef",
173
- placement: "top"
173
+ placement: "top",
174
+ variant: "plain"
174
175
  }, tooltip, {
175
176
  getDisabled: this.getTooltipDisabled,
176
177
  theme: mergedTheme.peers.Tooltip,
@@ -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;
@@ -1,2 +1,2 @@
1
- export { iconProps, UIcon } from './src/Icon';
2
- export type { IconProps } from './src/Icon';
1
+ export { iconProps, renderIcon, UIcon } from './src/Icon';
2
+ export type { IconProps, RenderIconProps } from './src/Icon';
package/es/icon/index.mjs CHANGED
@@ -1 +1 @@
1
- export { iconProps, UIcon } from "./src/Icon.mjs";
1
+ export { iconProps, renderIcon, UIcon } from "./src/Icon.mjs";
@@ -1,2 +1,2 @@
1
- export { iconProps, UIcon } from '../../_internal/icon';
2
- export type { Depth, GenericUIcon, IconNameOf, IconProps } from '../../_internal/icon';
1
+ export { iconProps, renderIcon, UIcon } from '../../_internal/icon';
2
+ export type { Depth, GenericUIcon, IconNameOf, IconProps, RenderIconProps } from '../../_internal/icon';
@@ -1 +1 @@
1
- export { iconProps, UIcon } from "../../_internal/icon/index.mjs";
1
+ export { iconProps, renderIcon, UIcon } from "../../_internal/icon/index.mjs";
@@ -0,0 +1,3 @@
1
+ import type { ULocale } from './enUS';
2
+ declare const uzUZ: ULocale;
3
+ export default uzUZ;