@uzum-tech/ui 2.0.0-beta.9 → 2.0.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.
Files changed (36) hide show
  1. package/dist/index.js +240 -197
  2. package/dist/index.mjs +240 -197
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/icon/index.d.ts +2 -0
  6. package/es/_internal/icon/index.mjs +2 -1
  7. package/es/_internal/icon/src/UIcon.d.ts +126 -0
  8. package/es/_internal/icon/src/UIcon.mjs +131 -0
  9. package/es/_mixins/use-config.d.ts +2 -1
  10. package/es/_mixins/use-config.mjs +1 -0
  11. package/es/components.d.ts +113 -34
  12. package/es/config-provider/src/ConfigProvider.d.ts +4 -1
  13. package/es/config-provider/src/ConfigProvider.mjs +8 -0
  14. package/es/config-provider/src/interface.d.ts +1 -1
  15. package/es/config-provider/src/internal-interface.d.ts +8 -0
  16. package/es/icon/src/Icon.d.ts +2 -109
  17. package/es/icon/src/Icon.mjs +1 -93
  18. package/es/version.d.ts +1 -1
  19. package/es/version.mjs +1 -1
  20. package/lib/_internal/icon/index.d.ts +2 -0
  21. package/lib/_internal/icon/index.js +4 -1
  22. package/lib/_internal/icon/src/UIcon.d.ts +126 -0
  23. package/lib/_internal/icon/src/UIcon.js +108 -0
  24. package/lib/_mixins/use-config.d.ts +2 -1
  25. package/lib/_mixins/use-config.js +1 -0
  26. package/lib/components.d.ts +113 -34
  27. package/lib/config-provider/src/ConfigProvider.d.ts +4 -1
  28. package/lib/config-provider/src/ConfigProvider.js +8 -0
  29. package/lib/config-provider/src/interface.d.ts +1 -1
  30. package/lib/config-provider/src/internal-interface.d.ts +8 -0
  31. package/lib/icon/src/Icon.d.ts +2 -109
  32. package/lib/icon/src/Icon.js +3 -73
  33. package/lib/version.d.ts +1 -1
  34. package/lib/version.js +1 -1
  35. package/package.json +8 -1
  36. package/web-types.json +11 -1
@@ -34211,6 +34211,7 @@ export declare const UConfigProvider: import("vue").DefineComponent<import("vue"
34211
34211
  readonly themeOverrides: import("vue").PropType<import("./config-provider").GlobalThemeOverrides | null>;
34212
34212
  readonly componentOptions: import("vue").PropType<import("./config-provider").GlobalComponentConfig>;
34213
34213
  readonly icons: import("vue").PropType<import("./config-provider").GlobalIconConfig>;
34214
+ readonly iconPacks: import("vue").PropType<import("./config-provider").IconPacksConfig>;
34214
34215
  readonly breakpoints: import("vue").PropType<import("./config-provider/src/internal-interface").Breakpoints>;
34215
34216
  readonly breakpointProps: import("vue").PropType<import("./config-provider").BreakpointProps>;
34216
34217
  readonly breakpointThemeOverrides: import("vue").PropType<import("./config-provider").BreakpointThemeOverrides>;
@@ -34260,6 +34261,7 @@ export declare const UConfigProvider: import("vue").DefineComponent<import("vue"
34260
34261
  readonly themeOverrides: import("vue").PropType<import("./config-provider").GlobalThemeOverrides | null>;
34261
34262
  readonly componentOptions: import("vue").PropType<import("./config-provider").GlobalComponentConfig>;
34262
34263
  readonly icons: import("vue").PropType<import("./config-provider").GlobalIconConfig>;
34264
+ readonly iconPacks: import("vue").PropType<import("./config-provider").IconPacksConfig>;
34263
34265
  readonly breakpoints: import("vue").PropType<import("./config-provider/src/internal-interface").Breakpoints>;
34264
34266
  readonly breakpointProps: import("vue").PropType<import("./config-provider").BreakpointProps>;
34265
34267
  readonly breakpointThemeOverrides: import("vue").PropType<import("./config-provider").BreakpointThemeOverrides>;
@@ -65458,11 +65460,117 @@ export declare const UHighlight: import("vue").DefineComponent<import("vue").Ext
65458
65460
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65459
65461
  export type * from './icon';
65460
65462
  export { iconProps } from './icon';
65461
- export declare const UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
65462
- readonly depth: import("vue").PropType<import("./icon/src/Icon").Depth>;
65463
+ export declare const UIcon: {
65464
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
65465
+ readonly depth: import("vue").PropType<import("./_internal/icon").Depth>;
65466
+ readonly size: import("vue").PropType<number | string>;
65467
+ readonly color: StringConstructor;
65468
+ readonly component: import("vue").PropType<import("vue").Component>;
65469
+ readonly name: import("vue").PropType<string>;
65470
+ readonly pack: import("vue").PropType<import("./config-provider").IconPackName>;
65471
+ readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
65472
+ readonly theme: import("vue").PropType<import("./_mixins").Theme<"Icon", {
65473
+ color: string;
65474
+ opacity1Depth: string;
65475
+ opacity2Depth: string;
65476
+ opacity3Depth: string;
65477
+ opacity4Depth: string;
65478
+ opacity5Depth: string;
65479
+ }, any>>;
65480
+ readonly themeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Icon", {
65481
+ color: string;
65482
+ opacity1Depth: string;
65483
+ opacity2Depth: string;
65484
+ opacity3Depth: string;
65485
+ opacity4Depth: string;
65486
+ opacity5Depth: string;
65487
+ }, any>>>;
65488
+ readonly builtinThemeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Icon", {
65489
+ color: string;
65490
+ opacity1Depth: string;
65491
+ opacity2Depth: string;
65492
+ opacity3Depth: string;
65493
+ opacity4Depth: string;
65494
+ opacity5Depth: string;
65495
+ }, any>>>;
65496
+ }>> & Readonly<{}>, {
65497
+ mergedClsPrefix: import("vue").Ref<string, string>;
65498
+ resolvedPackedIcon: import("vue").ComputedRef<import("vue").VNodeChild>;
65499
+ mergedStyle: import("vue").ComputedRef<{
65500
+ fontSize: string | undefined;
65501
+ color: string | undefined;
65502
+ }>;
65503
+ cssVars: import("vue").ComputedRef<{
65504
+ '--u-bezier': string;
65505
+ '--u-color': string;
65506
+ '--u-opacity': string;
65507
+ }> | undefined;
65508
+ themeClass: import("vue").Ref<string, string> | undefined;
65509
+ onRender: (() => void) | undefined;
65510
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
65511
+ P: {};
65512
+ B: {};
65513
+ D: {};
65514
+ C: {};
65515
+ M: {};
65516
+ Defaults: {};
65517
+ }, Readonly<import("vue").ExtractPropTypes<{
65518
+ readonly depth: import("vue").PropType<import("./_internal/icon").Depth>;
65519
+ readonly size: import("vue").PropType<number | string>;
65520
+ readonly color: StringConstructor;
65521
+ readonly component: import("vue").PropType<import("vue").Component>;
65522
+ readonly name: import("vue").PropType<string>;
65523
+ readonly pack: import("vue").PropType<import("./config-provider").IconPackName>;
65524
+ readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
65525
+ readonly theme: import("vue").PropType<import("./_mixins").Theme<"Icon", {
65526
+ color: string;
65527
+ opacity1Depth: string;
65528
+ opacity2Depth: string;
65529
+ opacity3Depth: string;
65530
+ opacity4Depth: string;
65531
+ opacity5Depth: string;
65532
+ }, any>>;
65533
+ readonly themeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Icon", {
65534
+ color: string;
65535
+ opacity1Depth: string;
65536
+ opacity2Depth: string;
65537
+ opacity3Depth: string;
65538
+ opacity4Depth: string;
65539
+ opacity5Depth: string;
65540
+ }, any>>>;
65541
+ readonly builtinThemeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Icon", {
65542
+ color: string;
65543
+ opacity1Depth: string;
65544
+ opacity2Depth: string;
65545
+ opacity3Depth: string;
65546
+ opacity4Depth: string;
65547
+ opacity5Depth: string;
65548
+ }, any>>>;
65549
+ }>> & Readonly<{}>, {
65550
+ mergedClsPrefix: import("vue").Ref<string, string>;
65551
+ resolvedPackedIcon: import("vue").ComputedRef<import("vue").VNodeChild>;
65552
+ mergedStyle: import("vue").ComputedRef<{
65553
+ fontSize: string | undefined;
65554
+ color: string | undefined;
65555
+ }>;
65556
+ cssVars: import("vue").ComputedRef<{
65557
+ '--u-bezier': string;
65558
+ '--u-color': string;
65559
+ '--u-opacity': string;
65560
+ }> | undefined;
65561
+ themeClass: import("vue").Ref<string, string> | undefined;
65562
+ onRender: (() => void) | undefined;
65563
+ }, {}, {}, {}, {}>;
65564
+ __isFragment?: never;
65565
+ __isTeleport?: never;
65566
+ __isSuspense?: never;
65567
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
65568
+ readonly depth: import("vue").PropType<import("./_internal/icon").Depth>;
65463
65569
  readonly size: import("vue").PropType<number | string>;
65464
65570
  readonly color: StringConstructor;
65465
65571
  readonly component: import("vue").PropType<import("vue").Component>;
65572
+ readonly name: import("vue").PropType<string>;
65573
+ readonly pack: import("vue").PropType<import("./config-provider").IconPackName>;
65466
65574
  readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
65467
65575
  readonly theme: import("vue").PropType<import("./_mixins").Theme<"Icon", {
65468
65576
  color: string;
@@ -65488,8 +65596,9 @@ export declare const UIcon: import("vue").DefineComponent<import("vue").ExtractP
65488
65596
  opacity4Depth: string;
65489
65597
  opacity5Depth: string;
65490
65598
  }, any>>>;
65491
- }>, {
65599
+ }>> & Readonly<{}>, {
65492
65600
  mergedClsPrefix: import("vue").Ref<string, string>;
65601
+ resolvedPackedIcon: import("vue").ComputedRef<import("vue").VNodeChild>;
65493
65602
  mergedStyle: import("vue").ComputedRef<{
65494
65603
  fontSize: string | undefined;
65495
65604
  color: string | undefined;
@@ -65501,37 +65610,7 @@ export declare const UIcon: import("vue").DefineComponent<import("vue").ExtractP
65501
65610
  }> | undefined;
65502
65611
  themeClass: import("vue").Ref<string, string> | undefined;
65503
65612
  onRender: (() => void) | undefined;
65504
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
65505
- readonly depth: import("vue").PropType<import("./icon/src/Icon").Depth>;
65506
- readonly size: import("vue").PropType<number | string>;
65507
- readonly color: StringConstructor;
65508
- readonly component: import("vue").PropType<import("vue").Component>;
65509
- readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
65510
- readonly theme: import("vue").PropType<import("./_mixins").Theme<"Icon", {
65511
- color: string;
65512
- opacity1Depth: string;
65513
- opacity2Depth: string;
65514
- opacity3Depth: string;
65515
- opacity4Depth: string;
65516
- opacity5Depth: string;
65517
- }, any>>;
65518
- readonly themeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Icon", {
65519
- color: string;
65520
- opacity1Depth: string;
65521
- opacity2Depth: string;
65522
- opacity3Depth: string;
65523
- opacity4Depth: string;
65524
- opacity5Depth: string;
65525
- }, any>>>;
65526
- readonly builtinThemeOverrides: import("vue").PropType<import("./_mixins/use-theme").ExtractThemeOverrides<import("./_mixins").Theme<"Icon", {
65527
- color: string;
65528
- opacity1Depth: string;
65529
- opacity2Depth: string;
65530
- opacity3Depth: string;
65531
- opacity4Depth: string;
65532
- opacity5Depth: string;
65533
- }, any>>>;
65534
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65613
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("./_internal/icon").GenericUIcon;
65535
65614
  export type * from './icon-bar';
65536
65615
  export { iconBarItemProps, iconBarProps } from './icon-bar';
65537
65616
  export declare const UIconBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -1,7 +1,7 @@
1
1
  import type { ExtractPropTypes, PropType } from 'vue';
2
2
  import type { Hljs } from '../../_mixins';
3
3
  import type { UDateLocale, ULocale } from '../../locales';
4
- import type { GlobalComponentConfig, GlobalIconConfig, GlobalTheme, GlobalThemeOverrides } from './interface';
4
+ import type { GlobalComponentConfig, GlobalIconConfig, GlobalTheme, GlobalThemeOverrides, IconPacksConfig } from './interface';
5
5
  import type { BreakpointMode, BreakpointProps, Breakpoints, BreakpointThemeOverrides, RtlProp } from './internal-interface';
6
6
  import type { Katex } from './katex';
7
7
  export declare const configProviderProps: {
@@ -28,6 +28,7 @@ export declare const configProviderProps: {
28
28
  readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
29
29
  readonly componentOptions: PropType<GlobalComponentConfig>;
30
30
  readonly icons: PropType<GlobalIconConfig>;
31
+ readonly iconPacks: PropType<IconPacksConfig>;
31
32
  readonly breakpoints: PropType<Breakpoints>;
32
33
  readonly breakpointProps: PropType<BreakpointProps>;
33
34
  readonly breakpointThemeOverrides: PropType<BreakpointThemeOverrides>;
@@ -73,6 +74,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
73
74
  readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
74
75
  readonly componentOptions: PropType<GlobalComponentConfig>;
75
76
  readonly icons: PropType<GlobalIconConfig>;
77
+ readonly iconPacks: PropType<IconPacksConfig>;
76
78
  readonly breakpoints: PropType<Breakpoints>;
77
79
  readonly breakpointProps: PropType<BreakpointProps>;
78
80
  readonly breakpointThemeOverrides: PropType<BreakpointThemeOverrides>;
@@ -122,6 +124,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
122
124
  readonly themeOverrides: PropType<GlobalThemeOverrides | null>;
123
125
  readonly componentOptions: PropType<GlobalComponentConfig>;
124
126
  readonly icons: PropType<GlobalIconConfig>;
127
+ readonly iconPacks: PropType<IconPacksConfig>;
125
128
  readonly breakpoints: PropType<Breakpoints>;
126
129
  readonly breakpointProps: PropType<BreakpointProps>;
127
130
  readonly breakpointThemeOverrides: PropType<BreakpointThemeOverrides>;
@@ -29,6 +29,7 @@ exports.configProviderProps = {
29
29
  themeOverrides: Object,
30
30
  componentOptions: Object,
31
31
  icons: Object,
32
+ iconPacks: Object,
32
33
  breakpoints: Object,
33
34
  breakpointProps: Object,
34
35
  breakpointThemeOverrides: Object,
@@ -184,6 +185,12 @@ exports.default = (0, vue_1.defineComponent)({
184
185
  const { icons } = props;
185
186
  return icons === undefined ? UConfigProvider === null || UConfigProvider === void 0 ? void 0 : UConfigProvider.mergedIconsRef.value : icons;
186
187
  });
188
+ const mergedIconPacksRef = (0, vue_1.computed)(() => {
189
+ const { iconPacks } = props;
190
+ return iconPacks === undefined
191
+ ? UConfigProvider === null || UConfigProvider === void 0 ? void 0 : UConfigProvider.mergedIconPacksRef.value
192
+ : iconPacks;
193
+ });
187
194
  const updateWindowWidth = () => {
188
195
  if (_utils_1.isBrowser) {
189
196
  windowWidthRef.value = window.innerWidth;
@@ -286,6 +293,7 @@ exports.default = (0, vue_1.defineComponent)({
286
293
  mergedSsrBreakpointWidthRef,
287
294
  mergedRtlRef,
288
295
  mergedIconsRef,
296
+ mergedIconPacksRef,
289
297
  mergedComponentPropsRef,
290
298
  mergedBreakpointPropsRef,
291
299
  mergedBreakpointThemeOverridesRef,
@@ -13,4 +13,4 @@ export type GlobalThemeOverrides = {
13
13
  } & {
14
14
  [key in keyof GlobalThemeWithoutCommon]?: ExtractThemeOverrides<GlobalThemeWithoutCommon[key]>;
15
15
  };
16
- export type { BreakpointMode, BreakpointProps, BreakpointThemeOverrides, GlobalComponentConfig, GlobalIconConfig } from './internal-interface';
16
+ export type { BreakpointMode, BreakpointProps, BreakpointThemeOverrides, GlobalComponentConfig, GlobalIconConfig, IconPackName, IconPacksConfig } from './internal-interface';
@@ -1,3 +1,4 @@
1
+ import type { AnyIconPack, IconPackRegistry } from '@uzum-tech/icons';
1
2
  import type { CNode } from 'css-render';
2
3
  import type { Ref, VNodeChild } from 'vue';
3
4
  import type { AccountOptionTheme } from '../../_internal/account-option/styles';
@@ -406,6 +407,12 @@ export interface GlobalComponentConfig {
406
407
  Header?: HeaderProps;
407
408
  InputOtp?: InputOtpProps;
408
409
  }
410
+ export type IconPackName = keyof IconPackRegistry extends never ? string : keyof IconPackRegistry & string;
411
+ export interface IconPacksConfig {
412
+ packs: AnyIconPack[];
413
+ defaultPackName: IconPackName;
414
+ async?: boolean;
415
+ }
409
416
  export interface GlobalIconConfig {
410
417
  attach?: () => VNodeChild;
411
418
  cancel?: () => VNodeChild;
@@ -461,6 +468,7 @@ export interface ConfigProviderInjection {
461
468
  mergedKatexRef: Ref<Katex | undefined>;
462
469
  mergedComponentPropsRef: Ref<GlobalComponentConfig | undefined>;
463
470
  mergedIconsRef: Ref<GlobalIconConfig | undefined>;
471
+ mergedIconPacksRef: Ref<IconPacksConfig | undefined>;
464
472
  mergedThemeRef: Ref<GlobalTheme | undefined>;
465
473
  mergedThemeOverridesRef: Ref<GlobalThemeOverrides | undefined>;
466
474
  mergedRtlRef: Ref<RtlEnabledState | undefined>;
@@ -1,109 +1,2 @@
1
- import type { Component, PropType } from 'vue';
2
- import type { ExtractPublicPropTypes } from '../../_utils';
3
- export type Depth = 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5' | undefined;
4
- export declare const iconProps: {
5
- readonly depth: PropType<Depth>;
6
- readonly size: PropType<number | string>;
7
- readonly color: StringConstructor;
8
- readonly component: PropType<Component>;
9
- readonly onClick: PropType<(e: MouseEvent) => void>;
10
- readonly theme: PropType<import("../../_mixins").Theme<"Icon", {
11
- color: string;
12
- opacity1Depth: string;
13
- opacity2Depth: string;
14
- opacity3Depth: string;
15
- opacity4Depth: string;
16
- opacity5Depth: string;
17
- }, any>>;
18
- readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Icon", {
19
- color: string;
20
- opacity1Depth: string;
21
- opacity2Depth: string;
22
- opacity3Depth: string;
23
- opacity4Depth: string;
24
- opacity5Depth: string;
25
- }, any>>>;
26
- readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Icon", {
27
- color: string;
28
- opacity1Depth: string;
29
- opacity2Depth: string;
30
- opacity3Depth: string;
31
- opacity4Depth: string;
32
- opacity5Depth: string;
33
- }, any>>>;
34
- };
35
- export type IconProps = ExtractPublicPropTypes<typeof iconProps>;
36
- export declare const UIcon: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
37
- readonly depth: PropType<Depth>;
38
- readonly size: PropType<number | string>;
39
- readonly color: StringConstructor;
40
- readonly component: PropType<Component>;
41
- readonly onClick: PropType<(e: MouseEvent) => void>;
42
- readonly theme: PropType<import("../../_mixins").Theme<"Icon", {
43
- color: string;
44
- opacity1Depth: string;
45
- opacity2Depth: string;
46
- opacity3Depth: string;
47
- opacity4Depth: string;
48
- opacity5Depth: string;
49
- }, any>>;
50
- readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Icon", {
51
- color: string;
52
- opacity1Depth: string;
53
- opacity2Depth: string;
54
- opacity3Depth: string;
55
- opacity4Depth: string;
56
- opacity5Depth: string;
57
- }, any>>>;
58
- readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Icon", {
59
- color: string;
60
- opacity1Depth: string;
61
- opacity2Depth: string;
62
- opacity3Depth: string;
63
- opacity4Depth: string;
64
- opacity5Depth: string;
65
- }, any>>>;
66
- }>, {
67
- mergedClsPrefix: import("vue").Ref<string, string>;
68
- mergedStyle: import("vue").ComputedRef<{
69
- fontSize: string | undefined;
70
- color: string | undefined;
71
- }>;
72
- cssVars: import("vue").ComputedRef<{
73
- '--u-bezier': string;
74
- '--u-color': string;
75
- '--u-opacity': string;
76
- }> | undefined;
77
- themeClass: import("vue").Ref<string, string> | undefined;
78
- onRender: (() => void) | undefined;
79
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
80
- readonly depth: PropType<Depth>;
81
- readonly size: PropType<number | string>;
82
- readonly color: StringConstructor;
83
- readonly component: PropType<Component>;
84
- readonly onClick: PropType<(e: MouseEvent) => void>;
85
- readonly theme: PropType<import("../../_mixins").Theme<"Icon", {
86
- color: string;
87
- opacity1Depth: string;
88
- opacity2Depth: string;
89
- opacity3Depth: string;
90
- opacity4Depth: string;
91
- opacity5Depth: string;
92
- }, any>>;
93
- readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Icon", {
94
- color: string;
95
- opacity1Depth: string;
96
- opacity2Depth: string;
97
- opacity3Depth: string;
98
- opacity4Depth: string;
99
- opacity5Depth: string;
100
- }, any>>>;
101
- readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Icon", {
102
- color: string;
103
- opacity1Depth: string;
104
- opacity2Depth: string;
105
- opacity3Depth: string;
106
- opacity4Depth: string;
107
- opacity5Depth: string;
108
- }, any>>>;
109
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ export { iconProps, UIcon } from '../../_internal/icon';
2
+ export type { Depth, GenericUIcon, IconNameOf, IconProps } from '../../_internal/icon';
@@ -1,76 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.UIcon = exports.iconProps = void 0;
7
- const vue_1 = require("vue");
8
- const _mixins_1 = require("../../_mixins");
9
- const _utils_1 = require("../../_utils");
10
- const styles_1 = require("../styles");
11
- const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
12
- exports.iconProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { depth: [String, Number], size: [Number, String], color: String, component: Object, onClick: Function });
13
- exports.UIcon = (0, vue_1.defineComponent)({
14
- _n_icon__: true,
15
- name: 'Icon',
16
- inheritAttrs: false,
17
- props: exports.iconProps,
18
- setup(props) {
19
- const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
20
- const themeRef = (0, _mixins_1.useTheme)('Icon', '-icon', index_cssr_1.default, styles_1.iconLight, props, mergedClsPrefixRef);
21
- const cssVarsRef = (0, vue_1.computed)(() => {
22
- const { depth } = props;
23
- const { common: { cubicBezierEaseInOut }, self } = themeRef.value;
24
- if (depth !== undefined) {
25
- const { color, [`opacity${depth}Depth`]: opacity } = self;
26
- return {
27
- '--u-bezier': cubicBezierEaseInOut,
28
- '--u-color': color,
29
- '--u-opacity': opacity
30
- };
31
- }
32
- return {
33
- '--u-bezier': cubicBezierEaseInOut,
34
- '--u-color': '',
35
- '--u-opacity': ''
36
- };
37
- });
38
- const themeClassHandle = inlineThemeDisabled
39
- ? (0, _mixins_1.useThemeClass)('icon', (0, vue_1.computed)(() => `${props.depth || 'd'}`), cssVarsRef, props)
40
- : undefined;
41
- return {
42
- mergedClsPrefix: mergedClsPrefixRef,
43
- mergedStyle: (0, vue_1.computed)(() => {
44
- const { size, color } = props;
45
- return {
46
- fontSize: (0, _utils_1.formatLength)(size),
47
- color
48
- };
49
- }),
50
- cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
51
- themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
52
- onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
53
- };
54
- },
55
- render() {
56
- var _a;
57
- const { $parent, depth, mergedClsPrefix, component, onRender, themeClass } = this;
58
- if ((_a = $parent === null || $parent === void 0 ? void 0 : $parent.$options) === null || _a === void 0 ? void 0 : _a._n_icon__) {
59
- (0, _utils_1.warn)('icon', 'don\'t wrap `u-icon` inside `u-icon`');
60
- }
61
- onRender === null || onRender === void 0 ? void 0 : onRender();
62
- return (0, vue_1.h)('i', (0, vue_1.mergeProps)(this.$attrs, {
63
- role: 'img',
64
- class: [
65
- `${mergedClsPrefix}-icon`,
66
- themeClass,
67
- {
68
- [`${mergedClsPrefix}-icon--depth`]: depth,
69
- [`${mergedClsPrefix}-icon--color-transition`]: depth !== undefined
70
- }
71
- ],
72
- style: [this.cssVars, this.mergedStyle],
73
- onClick: this.onClick
74
- }), component ? (0, vue_1.h)(component) : this.$slots);
75
- }
76
- });
4
+ var icon_1 = require("../../_internal/icon");
5
+ Object.defineProperty(exports, "iconProps", { enumerable: true, get: function () { return icon_1.iconProps; } });
6
+ Object.defineProperty(exports, "UIcon", { enumerable: true, get: function () { return icon_1.UIcon; } });
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.0.0-beta.9";
1
+ declare const _default: "2.0.0";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.0.0-beta.9';
3
+ exports.default = '2.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzum-tech/ui",
3
- "version": "2.0.0-beta.9",
3
+ "version": "2.0.0",
4
4
  "description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
5
5
  "author": {
6
6
  "name": "KapitalLab",
@@ -87,8 +87,14 @@
87
87
  },
88
88
  "web-types": "./web-types.json",
89
89
  "peerDependencies": {
90
+ "@uzum-tech/icons": "^1.0.0",
90
91
  "vue": "^3.0.0"
91
92
  },
93
+ "peerDependenciesMeta": {
94
+ "@uzum-tech/icons": {
95
+ "optional": true
96
+ }
97
+ },
92
98
  "dependencies": {
93
99
  "@css-render/plugin-bem": "0.15.14",
94
100
  "@css-render/vue3-ssr": "0.15.14",
@@ -131,6 +137,7 @@
131
137
  "@types/fs-extra": "11.0.4",
132
138
  "@types/node": "24.0.12",
133
139
  "@types/superagent": "8.1.9",
140
+ "@uzum-tech/icons": "1.0.0",
134
141
  "@vicons/fluent": "0.13.0",
135
142
  "@vicons/ionicons4": "0.13.0",
136
143
  "@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.0.0-beta.9",
5
+ "version": "2.0.0",
6
6
  "js-types-syntax": "typescript",
7
7
  "contributions": {
8
8
  "html": {
@@ -7598,6 +7598,16 @@
7598
7598
  "description-sections": {
7599
7599
  "since": "2.24.6"
7600
7600
  }
7601
+ },
7602
+ {
7603
+ "name": "name",
7604
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/icon",
7605
+ "type": "string"
7606
+ },
7607
+ {
7608
+ "name": "pack",
7609
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/icon",
7610
+ "type": "string"
7601
7611
  }
7602
7612
  ],
7603
7613
  "js": {