@uzum-tech/ui 1.0.2 → 1.1.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 (134) hide show
  1. package/dist/index.js +410 -149
  2. package/dist/index.prod.js +1 -1
  3. package/es/_internal/account-option/index.d.ts +1 -0
  4. package/es/_internal/account-option/index.js +1 -0
  5. package/es/_internal/account-option/src/AccountOption.d.ts +162 -0
  6. package/es/_internal/account-option/src/AccountOption.js +56 -0
  7. package/es/_internal/account-option/src/styles/index.cssr.d.ts +2 -0
  8. package/es/_internal/account-option/src/styles/index.cssr.js +40 -0
  9. package/es/_internal/account-option/styles/_common.d.ts +12 -0
  10. package/es/_internal/account-option/styles/_common.js +11 -0
  11. package/es/_internal/account-option/styles/dark.d.ts +2 -0
  12. package/es/_internal/account-option/styles/dark.js +7 -0
  13. package/es/_internal/account-option/styles/index.d.ts +3 -0
  14. package/es/_internal/account-option/styles/index.js +2 -0
  15. package/es/_internal/account-option/styles/light.d.ts +26 -0
  16. package/es/_internal/account-option/styles/light.js +11 -0
  17. package/es/_internal/index.d.ts +1 -0
  18. package/es/_internal/index.js +1 -0
  19. package/es/_internal/select-menu/src/SelectMenu.d.ts +3 -0
  20. package/es/_internal/select-menu/src/SelectMenu.js +2 -1
  21. package/es/_internal/select-menu/src/SelectOption.d.ts +1 -0
  22. package/es/_internal/select-menu/src/SelectOption.js +14 -8
  23. package/es/_internal/select-menu/src/interface.d.ts +1 -0
  24. package/es/_internal/select-menu/src/styles/index.cssr.js +4 -3
  25. package/es/_internal/selection/src/Selection.d.ts +35 -8
  26. package/es/_internal/selection/src/Selection.js +44 -25
  27. package/es/_internal/selection/src/styles/index.cssr.js +12 -3
  28. package/es/_internal/selection/styles/light.d.ts +4 -0
  29. package/es/_internal/selection/styles/light.js +2 -0
  30. package/es/badge/src/Badge.d.ts +71 -4
  31. package/es/badge/src/Badge.js +5 -4
  32. package/es/badge/src/styles/index.cssr.js +1 -1
  33. package/es/badge/styles/light.d.ts +7 -0
  34. package/es/badge/styles/light.js +9 -2
  35. package/es/button/src/Button.js +18 -10
  36. package/es/cascader/src/Cascader.d.ts +20 -0
  37. package/es/cascader/src/CascaderMenu.d.ts +2 -0
  38. package/es/cascader/src/CascaderOption.d.ts +2 -0
  39. package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
  40. package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
  41. package/es/cascader/styles/light.d.ts +2 -0
  42. package/es/config-provider/src/internal-interface.d.ts +2 -0
  43. package/es/data-table/src/DataTable.d.ts +16 -0
  44. package/es/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
  45. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -2
  46. package/es/data-table/src/TableParts/Body.d.ts +4 -0
  47. package/es/data-table/src/TableParts/Cell.d.ts +8 -0
  48. package/es/data-table/src/TableParts/Header.d.ts +4 -0
  49. package/es/data-table/src/interface.d.ts +6 -0
  50. package/es/data-table/styles/light.d.ts +2 -0
  51. package/es/list/src/List.d.ts +1 -1
  52. package/es/list/src/ListItem.d.ts +1 -1
  53. package/es/pagination/src/Pagination.d.ts +22 -0
  54. package/es/pagination/styles/light.d.ts +2 -0
  55. package/es/select/demos/enUS/flag.d.ts +2 -0
  56. package/es/select/demos/enUS/flag.js +25 -0
  57. package/es/select/src/Select.d.ts +35 -1
  58. package/es/select/src/Select.js +10 -5
  59. package/es/select/src/interface.d.ts +2 -0
  60. package/es/select/styles/light.d.ts +2 -0
  61. package/es/theme-editor/src/ThemeEditor.js +2 -2
  62. package/es/themes/dark.js +2 -0
  63. package/es/themes/light.js +2 -0
  64. package/es/tree-select/src/TreeSelect.d.ts +20 -0
  65. package/es/tree-select/styles/light.d.ts +2 -0
  66. package/es/version.d.ts +1 -1
  67. package/es/version.js +1 -1
  68. package/lib/_internal/account-option/index.d.ts +1 -0
  69. package/lib/_internal/account-option/index.js +8 -0
  70. package/lib/_internal/account-option/src/AccountOption.d.ts +162 -0
  71. package/lib/_internal/account-option/src/AccountOption.js +61 -0
  72. package/lib/_internal/account-option/src/styles/index.cssr.d.ts +2 -0
  73. package/lib/_internal/account-option/src/styles/index.cssr.js +45 -0
  74. package/lib/_internal/account-option/styles/_common.d.ts +12 -0
  75. package/lib/_internal/account-option/styles/_common.js +13 -0
  76. package/lib/_internal/account-option/styles/dark.d.ts +2 -0
  77. package/lib/_internal/account-option/styles/dark.js +10 -0
  78. package/lib/_internal/account-option/styles/index.d.ts +3 -0
  79. package/lib/_internal/account-option/styles/index.js +7 -0
  80. package/lib/_internal/account-option/styles/light.d.ts +26 -0
  81. package/lib/_internal/account-option/styles/light.js +18 -0
  82. package/lib/_internal/index.d.ts +1 -0
  83. package/lib/_internal/index.js +3 -1
  84. package/lib/_internal/select-menu/src/SelectMenu.d.ts +3 -0
  85. package/lib/_internal/select-menu/src/SelectMenu.js +2 -1
  86. package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -0
  87. package/lib/_internal/select-menu/src/SelectOption.js +14 -8
  88. package/lib/_internal/select-menu/src/interface.d.ts +1 -0
  89. package/lib/_internal/select-menu/src/styles/index.cssr.js +4 -3
  90. package/lib/_internal/selection/src/Selection.d.ts +35 -8
  91. package/lib/_internal/selection/src/Selection.js +43 -24
  92. package/lib/_internal/selection/src/styles/index.cssr.js +12 -3
  93. package/lib/_internal/selection/styles/light.d.ts +4 -0
  94. package/lib/_internal/selection/styles/light.js +2 -0
  95. package/lib/badge/src/Badge.d.ts +71 -4
  96. package/lib/badge/src/Badge.js +5 -4
  97. package/lib/badge/src/styles/index.cssr.js +1 -1
  98. package/lib/badge/styles/light.d.ts +7 -0
  99. package/lib/badge/styles/light.js +9 -2
  100. package/lib/button/src/Button.js +18 -10
  101. package/lib/cascader/src/Cascader.d.ts +20 -0
  102. package/lib/cascader/src/CascaderMenu.d.ts +2 -0
  103. package/lib/cascader/src/CascaderOption.d.ts +2 -0
  104. package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
  105. package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
  106. package/lib/cascader/styles/light.d.ts +2 -0
  107. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  108. package/lib/data-table/src/DataTable.d.ts +16 -0
  109. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
  110. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -2
  111. package/lib/data-table/src/TableParts/Body.d.ts +4 -0
  112. package/lib/data-table/src/TableParts/Cell.d.ts +8 -0
  113. package/lib/data-table/src/TableParts/Header.d.ts +4 -0
  114. package/lib/data-table/src/interface.d.ts +6 -0
  115. package/lib/data-table/styles/light.d.ts +2 -0
  116. package/lib/list/src/List.d.ts +1 -1
  117. package/lib/list/src/ListItem.d.ts +1 -1
  118. package/lib/pagination/src/Pagination.d.ts +22 -0
  119. package/lib/pagination/styles/light.d.ts +2 -0
  120. package/lib/select/demos/enUS/flag.d.ts +2 -0
  121. package/lib/select/demos/enUS/flag.js +27 -0
  122. package/lib/select/src/Select.d.ts +35 -1
  123. package/lib/select/src/Select.js +10 -5
  124. package/lib/select/src/interface.d.ts +2 -0
  125. package/lib/select/styles/light.d.ts +2 -0
  126. package/lib/theme-editor/src/ThemeEditor.js +2 -2
  127. package/lib/themes/dark.js +2 -0
  128. package/lib/themes/light.js +2 -0
  129. package/lib/tree-select/src/TreeSelect.d.ts +20 -0
  130. package/lib/tree-select/styles/light.d.ts +2 -0
  131. package/lib/version.d.ts +1 -1
  132. package/lib/version.js +1 -1
  133. package/package.json +3 -2
  134. package/web-types.json +41 -6
@@ -175,9 +175,11 @@ export declare const paginationProps: {
175
175
  placeholderColor: string;
176
176
  placeholderColorDisabled: string;
177
177
  color: string;
178
+ colorFilled: string;
178
179
  colorDisabled: string;
179
180
  colorActive: string;
180
181
  border: string;
182
+ borderFilled: string;
181
183
  borderHover: string;
182
184
  borderActive: string;
183
185
  borderFocus: string;
@@ -559,9 +561,11 @@ export declare const paginationProps: {
559
561
  placeholderColor: string;
560
562
  placeholderColorDisabled: string;
561
563
  color: string;
564
+ colorFilled: string;
562
565
  colorDisabled: string;
563
566
  colorActive: string;
564
567
  border: string;
568
+ borderFilled: string;
565
569
  borderHover: string;
566
570
  borderActive: string;
567
571
  borderFocus: string;
@@ -943,9 +947,11 @@ export declare const paginationProps: {
943
947
  placeholderColor: string;
944
948
  placeholderColorDisabled: string;
945
949
  color: string;
950
+ colorFilled: string;
946
951
  colorDisabled: string;
947
952
  colorActive: string;
948
953
  border: string;
954
+ borderFilled: string;
949
955
  borderHover: string;
950
956
  borderActive: string;
951
957
  borderFocus: string;
@@ -1383,9 +1389,11 @@ declare const _default: import("vue").DefineComponent<{
1383
1389
  placeholderColor: string;
1384
1390
  placeholderColorDisabled: string;
1385
1391
  color: string;
1392
+ colorFilled: string;
1386
1393
  colorDisabled: string;
1387
1394
  colorActive: string;
1388
1395
  border: string;
1396
+ borderFilled: string;
1389
1397
  borderHover: string;
1390
1398
  borderActive: string;
1391
1399
  borderFocus: string;
@@ -1767,9 +1775,11 @@ declare const _default: import("vue").DefineComponent<{
1767
1775
  placeholderColor: string;
1768
1776
  placeholderColorDisabled: string;
1769
1777
  color: string;
1778
+ colorFilled: string;
1770
1779
  colorDisabled: string;
1771
1780
  colorActive: string;
1772
1781
  border: string;
1782
+ borderFilled: string;
1773
1783
  borderHover: string;
1774
1784
  borderActive: string;
1775
1785
  borderFocus: string;
@@ -2151,9 +2161,11 @@ declare const _default: import("vue").DefineComponent<{
2151
2161
  placeholderColor: string;
2152
2162
  placeholderColorDisabled: string;
2153
2163
  color: string;
2164
+ colorFilled: string;
2154
2165
  colorDisabled: string;
2155
2166
  colorActive: string;
2156
2167
  border: string;
2168
+ borderFilled: string;
2157
2169
  borderHover: string;
2158
2170
  borderActive: string;
2159
2171
  borderFocus: string;
@@ -2663,9 +2675,11 @@ declare const _default: import("vue").DefineComponent<{
2663
2675
  placeholderColor: string;
2664
2676
  placeholderColorDisabled: string;
2665
2677
  color: string;
2678
+ colorFilled: string;
2666
2679
  colorDisabled: string;
2667
2680
  colorActive: string;
2668
2681
  border: string;
2682
+ borderFilled: string;
2669
2683
  borderHover: string;
2670
2684
  borderActive: string;
2671
2685
  borderFocus: string;
@@ -2975,9 +2989,11 @@ declare const _default: import("vue").DefineComponent<{
2975
2989
  placeholderColor: string;
2976
2990
  placeholderColorDisabled: string;
2977
2991
  color: string;
2992
+ colorFilled: string;
2978
2993
  colorDisabled: string;
2979
2994
  colorActive: string;
2980
2995
  border: string;
2996
+ borderFilled: string;
2981
2997
  borderHover: string;
2982
2998
  borderActive: string;
2983
2999
  borderFocus: string;
@@ -3421,9 +3437,11 @@ declare const _default: import("vue").DefineComponent<{
3421
3437
  placeholderColor: string;
3422
3438
  placeholderColorDisabled: string;
3423
3439
  color: string;
3440
+ colorFilled: string;
3424
3441
  colorDisabled: string;
3425
3442
  colorActive: string;
3426
3443
  border: string;
3444
+ borderFilled: string;
3427
3445
  borderHover: string;
3428
3446
  borderActive: string;
3429
3447
  borderFocus: string;
@@ -3805,9 +3823,11 @@ declare const _default: import("vue").DefineComponent<{
3805
3823
  placeholderColor: string;
3806
3824
  placeholderColorDisabled: string;
3807
3825
  color: string;
3826
+ colorFilled: string;
3808
3827
  colorDisabled: string;
3809
3828
  colorActive: string;
3810
3829
  border: string;
3830
+ borderFilled: string;
3811
3831
  borderHover: string;
3812
3832
  borderActive: string;
3813
3833
  borderFocus: string;
@@ -4189,9 +4209,11 @@ declare const _default: import("vue").DefineComponent<{
4189
4209
  placeholderColor: string;
4190
4210
  placeholderColorDisabled: string;
4191
4211
  color: string;
4212
+ colorFilled: string;
4192
4213
  colorDisabled: string;
4193
4214
  colorActive: string;
4194
4215
  border: string;
4216
+ borderFilled: string;
4195
4217
  borderHover: string;
4196
4218
  borderActive: string;
4197
4219
  borderFocus: string;
@@ -188,9 +188,11 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
188
188
  placeholderColor: string;
189
189
  placeholderColorDisabled: string;
190
190
  color: string;
191
+ colorFilled: string;
191
192
  colorDisabled: string;
192
193
  colorActive: string;
193
194
  border: string;
195
+ borderFilled: string;
194
196
  borderHover: string;
195
197
  borderActive: string;
196
198
  borderFocus: string;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { h, defineComponent } from 'vue';
2
+ export default defineComponent({
3
+ name: 'Flag',
4
+ render() {
5
+ return (h("svg", { width: "44", height: "44", viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
6
+ h("path", { d: "M42.863 29C43.6004 26.8011 44 24.4472 44 22C44 19.5528 43.6004 17.1989 42.863 15L1.13704 15C0.399576 17.1989 0 19.5528 0 22C0 24.4472 0.399576 26.8011 1.13704 29H42.863Z", fill: "#FBFBFB" }),
7
+ h("path", { d: "M42.863 15H1.13708C4.06109 6.28158 12.297 0 22 0C31.7031 0 39.939 6.28158 42.863 15Z", fill: "#0099B5" }),
8
+ h("path", { d: "M15.5 4.43893C13.6334 4.70555 12.2 6.30935 12.2 8.25C12.2 10.1907 13.6334 11.7945 15.5 12.0611C15.3204 12.0867 15.1367 12.1 14.95 12.1C12.8226 12.1 11.1 10.3774 11.1 8.25C11.1 6.1226 12.8226 4.4 14.95 4.4C15.1367 4.4 15.3204 4.41328 15.5 4.43893Z", fill: "#FBFBFB" }),
9
+ h("path", { d: "M27.2601 5.0787L27.6 4.8213H27.1787L27.05 4.4L26.9213 4.8213H26.5L26.8399 5.0787L26.7101 5.5L27.05 5.2426L27.3899 5.5L27.2601 5.0787Z", fill: "#FBFBFB" }),
10
+ h("path", { d: "M30.9 4.8213L30.5601 5.0787L30.6899 5.5L30.35 5.2426L30.0101 5.5L30.1399 5.0787L29.8 4.8213H30.2213L30.35 4.4L30.4787 4.8213H30.9Z", fill: "#FBFBFB" }),
11
+ h("path", { d: "M23.9601 5.0787L24.3 4.8213H23.8787L23.75 4.4L23.6213 4.8213H23.2L23.5399 5.0787L23.4101 5.5L23.75 5.2426L24.0899 5.5L23.9601 5.0787Z", fill: "#FBFBFB" }),
12
+ h("path", { d: "M27.6 8.12131L27.2601 8.3787L27.3899 8.8L27.05 8.5426L26.7101 8.8L26.8399 8.3787L26.5 8.12131H26.9213L27.05 7.70001L27.1787 8.12131H27.6Z", fill: "#FBFBFB" }),
13
+ h("path", { d: "M30.5601 8.3787L30.9 8.12131H30.4787L30.35 7.70001L30.2213 8.12131H29.8L30.1399 8.3787L30.0101 8.8L30.35 8.5426L30.6899 8.8L30.5601 8.3787Z", fill: "#FBFBFB" }),
14
+ h("path", { d: "M24.3 8.12131L23.9601 8.3787L24.0899 8.8L23.75 8.5426L23.4101 8.8L23.5399 8.3787L23.2 8.12131H23.6213L23.75 7.70001L23.8787 8.12131H24.3Z", fill: "#FBFBFB" }),
15
+ h("path", { d: "M27.2601 11.6787L27.6 11.4213H27.1787L27.05 11L26.9213 11.4213H26.5L26.8399 11.6787L26.7101 12.1L27.05 11.8426L27.3899 12.1L27.2601 11.6787Z", fill: "#FBFBFB" }),
16
+ h("path", { d: "M24.3 11.4213L23.9601 11.6787L24.0899 12.1L23.75 11.8426L23.4101 12.1L23.5399 11.6787L23.2 11.4213H23.6213L23.75 11L23.8787 11.4213H24.3Z", fill: "#FBFBFB" }),
17
+ h("path", { d: "M20.6601 8.3787L21 8.12131H20.5787L20.45 7.70001L20.3213 8.12131H19.9L20.2399 8.3787L20.1101 8.8L20.45 8.5426L20.7899 8.8L20.6601 8.3787Z", fill: "#FBFBFB" }),
18
+ h("path", { d: "M21 11.4213L20.6601 11.6787L20.7899 12.1L20.45 11.8426L20.1101 12.1L20.2399 11.6787L19.9 11.4213H20.3213L20.45 11L20.5787 11.4213H21Z", fill: "#FBFBFB" }),
19
+ h("path", { d: "M17.3601 11.6787L17.7 11.4213H17.2787L17.15 11L17.0213 11.4213H16.6L16.9399 11.6787L16.8101 12.1L17.15 11.8426L17.4899 12.1L17.3601 11.6787Z", fill: "#FBFBFB" }),
20
+ h("path", { d: "M30.9 11.4213L30.5601 11.6787L30.6899 12.1L30.35 11.8426L30.0101 12.1L30.1399 11.6787L29.8 11.4213H30.2213L30.35 11L30.4787 11.4213H30.9Z", fill: "#FBFBFB" }),
21
+ h("path", { d: "M42.863 29C39.939 37.7184 31.7031 44 22 44C12.297 44 4.06109 37.7184 1.13708 29L42.863 29Z", fill: "#00C853" }),
22
+ h("path", { d: "M42.8629 15C42.9736 15.3299 43.0766 15.6633 43.1719 16H0.828125C0.923351 15.6633 1.02639 15.3299 1.13704 15L42.8629 15Z", fill: "#F44336" }),
23
+ h("path", { d: "M42.8629 29C42.9736 28.6701 43.0766 28.3367 43.1719 28H0.828125C0.923351 28.3367 1.02639 28.6701 1.13704 29H42.8629Z", fill: "#F44336" })));
24
+ }
25
+ });
@@ -90,6 +90,9 @@ export declare const selectProps: {
90
90
  readonly type: StringConstructor;
91
91
  readonly default: "children";
92
92
  };
93
+ readonly filled: BooleanConstructor;
94
+ readonly tagField: StringConstructor;
95
+ readonly renderTagLabel: PropType<RenderLabel>;
93
96
  readonly renderLabel: PropType<RenderLabel>;
94
97
  readonly renderOption: PropType<RenderOption>;
95
98
  readonly renderTag: PropType<RenderTag>;
@@ -128,6 +131,7 @@ export declare const selectProps: {
128
131
  /** deprecated */
129
132
  readonly onChange: PropType<MaybeArray<OnUpdateValue>>;
130
133
  readonly items: PropType<SelectMixedOption[]>;
134
+ readonly account: BooleanConstructor;
131
135
  readonly theme: PropType<import("../../_mixins").Theme<"Select", {
132
136
  menuBoxShadow: string;
133
137
  }, {
@@ -172,9 +176,11 @@ export declare const selectProps: {
172
176
  placeholderColor: string;
173
177
  placeholderColorDisabled: string;
174
178
  color: string;
179
+ colorFilled: string;
175
180
  colorDisabled: string;
176
181
  colorActive: string;
177
182
  border: string;
183
+ borderFilled: string;
178
184
  borderHover: string;
179
185
  borderActive: string;
180
186
  borderFocus: string;
@@ -350,9 +356,11 @@ export declare const selectProps: {
350
356
  placeholderColor: string;
351
357
  placeholderColorDisabled: string;
352
358
  color: string;
359
+ colorFilled: string;
353
360
  colorDisabled: string;
354
361
  colorActive: string;
355
362
  border: string;
363
+ borderFilled: string;
356
364
  borderHover: string;
357
365
  borderActive: string;
358
366
  borderFocus: string;
@@ -528,9 +536,11 @@ export declare const selectProps: {
528
536
  placeholderColor: string;
529
537
  placeholderColorDisabled: string;
530
538
  color: string;
539
+ colorFilled: string;
531
540
  colorDisabled: string;
532
541
  colorActive: string;
533
542
  border: string;
543
+ borderFilled: string;
534
544
  borderHover: string;
535
545
  borderActive: string;
536
546
  borderFocus: string;
@@ -747,6 +757,9 @@ declare const _default: import("vue").DefineComponent<{
747
757
  readonly type: StringConstructor;
748
758
  readonly default: "children";
749
759
  };
760
+ readonly filled: BooleanConstructor;
761
+ readonly tagField: StringConstructor;
762
+ readonly renderTagLabel: PropType<RenderLabel>;
750
763
  readonly renderLabel: PropType<RenderLabel>;
751
764
  readonly renderOption: PropType<RenderOption>;
752
765
  readonly renderTag: PropType<RenderTag>;
@@ -785,6 +798,7 @@ declare const _default: import("vue").DefineComponent<{
785
798
  /** deprecated */
786
799
  readonly onChange: PropType<MaybeArray<OnUpdateValue>>;
787
800
  readonly items: PropType<SelectMixedOption[]>;
801
+ readonly account: BooleanConstructor;
788
802
  readonly theme: PropType<import("../../_mixins").Theme<"Select", {
789
803
  menuBoxShadow: string;
790
804
  }, {
@@ -829,9 +843,11 @@ declare const _default: import("vue").DefineComponent<{
829
843
  placeholderColor: string;
830
844
  placeholderColorDisabled: string;
831
845
  color: string;
846
+ colorFilled: string;
832
847
  colorDisabled: string;
833
848
  colorActive: string;
834
849
  border: string;
850
+ borderFilled: string;
835
851
  borderHover: string;
836
852
  borderActive: string;
837
853
  borderFocus: string;
@@ -1007,9 +1023,11 @@ declare const _default: import("vue").DefineComponent<{
1007
1023
  placeholderColor: string;
1008
1024
  placeholderColorDisabled: string;
1009
1025
  color: string;
1026
+ colorFilled: string;
1010
1027
  colorDisabled: string;
1011
1028
  colorActive: string;
1012
1029
  border: string;
1030
+ borderFilled: string;
1013
1031
  borderHover: string;
1014
1032
  borderActive: string;
1015
1033
  borderFocus: string;
@@ -1185,9 +1203,11 @@ declare const _default: import("vue").DefineComponent<{
1185
1203
  placeholderColor: string;
1186
1204
  placeholderColorDisabled: string;
1187
1205
  color: string;
1206
+ colorFilled: string;
1188
1207
  colorDisabled: string;
1189
1208
  colorActive: string;
1190
1209
  border: string;
1210
+ borderFilled: string;
1191
1211
  borderHover: string;
1192
1212
  borderActive: string;
1193
1213
  borderFocus: string;
@@ -1352,7 +1372,7 @@ declare const _default: import("vue").DefineComponent<{
1352
1372
  localizedPlaceholder: import("vue").ComputedRef<string>;
1353
1373
  selectedOption: import("vue").ComputedRef<SelectOption | null>;
1354
1374
  selectedOptions: import("vue").ComputedRef<SelectOption[] | null>;
1355
- mergedSize: import("vue").ComputedRef<"small" | "medium" | "large" | "tiny" | "huge">;
1375
+ mergedSize: import("vue").ComputedRef<SelectSize>;
1356
1376
  mergedDisabled: import("vue").ComputedRef<boolean>;
1357
1377
  focused: import("vue").Ref<boolean>;
1358
1378
  activeWithoutMenuOpen: import("vue").Ref<boolean>;
@@ -1532,9 +1552,11 @@ declare const _default: import("vue").DefineComponent<{
1532
1552
  placeholderColor: string;
1533
1553
  placeholderColorDisabled: string;
1534
1554
  color: string;
1555
+ colorFilled: string;
1535
1556
  colorDisabled: string;
1536
1557
  colorActive: string;
1537
1558
  border: string;
1559
+ borderFilled: string;
1538
1560
  borderHover: string;
1539
1561
  borderActive: string;
1540
1562
  borderFocus: string;
@@ -1800,6 +1822,9 @@ declare const _default: import("vue").DefineComponent<{
1800
1822
  readonly type: StringConstructor;
1801
1823
  readonly default: "children";
1802
1824
  };
1825
+ readonly filled: BooleanConstructor;
1826
+ readonly tagField: StringConstructor;
1827
+ readonly renderTagLabel: PropType<RenderLabel>;
1803
1828
  readonly renderLabel: PropType<RenderLabel>;
1804
1829
  readonly renderOption: PropType<RenderOption>;
1805
1830
  readonly renderTag: PropType<RenderTag>;
@@ -1838,6 +1863,7 @@ declare const _default: import("vue").DefineComponent<{
1838
1863
  /** deprecated */
1839
1864
  readonly onChange: PropType<MaybeArray<OnUpdateValue>>;
1840
1865
  readonly items: PropType<SelectMixedOption[]>;
1866
+ readonly account: BooleanConstructor;
1841
1867
  readonly theme: PropType<import("../../_mixins").Theme<"Select", {
1842
1868
  menuBoxShadow: string;
1843
1869
  }, {
@@ -1882,9 +1908,11 @@ declare const _default: import("vue").DefineComponent<{
1882
1908
  placeholderColor: string;
1883
1909
  placeholderColorDisabled: string;
1884
1910
  color: string;
1911
+ colorFilled: string;
1885
1912
  colorDisabled: string;
1886
1913
  colorActive: string;
1887
1914
  border: string;
1915
+ borderFilled: string;
1888
1916
  borderHover: string;
1889
1917
  borderActive: string;
1890
1918
  borderFocus: string;
@@ -2060,9 +2088,11 @@ declare const _default: import("vue").DefineComponent<{
2060
2088
  placeholderColor: string;
2061
2089
  placeholderColorDisabled: string;
2062
2090
  color: string;
2091
+ colorFilled: string;
2063
2092
  colorDisabled: string;
2064
2093
  colorActive: string;
2065
2094
  border: string;
2095
+ borderFilled: string;
2066
2096
  borderHover: string;
2067
2097
  borderActive: string;
2068
2098
  borderFocus: string;
@@ -2238,9 +2268,11 @@ declare const _default: import("vue").DefineComponent<{
2238
2268
  placeholderColor: string;
2239
2269
  placeholderColorDisabled: string;
2240
2270
  color: string;
2271
+ colorFilled: string;
2241
2272
  colorDisabled: string;
2242
2273
  colorActive: string;
2243
2274
  border: string;
2275
+ borderFilled: string;
2244
2276
  borderHover: string;
2245
2277
  borderActive: string;
2246
2278
  borderFocus: string;
@@ -2377,12 +2409,14 @@ declare const _default: import("vue").DefineComponent<{
2377
2409
  readonly options: SelectMixedOption[];
2378
2410
  readonly round: boolean;
2379
2411
  readonly show: boolean | undefined;
2412
+ readonly filled: boolean;
2380
2413
  readonly multiple: boolean;
2381
2414
  readonly disabled: boolean | undefined;
2382
2415
  readonly to: string | boolean | HTMLElement;
2383
2416
  readonly loading: boolean;
2384
2417
  readonly bordered: boolean | undefined;
2385
2418
  readonly placement: FollowerPlacement;
2419
+ readonly account: boolean;
2386
2420
  readonly showCheckmark: boolean;
2387
2421
  readonly labelField: string;
2388
2422
  readonly virtualScroll: boolean;
@@ -58,7 +58,7 @@ export const selectProps = Object.assign(Object.assign({}, useTheme.props), { to
58
58
  }, childrenField: {
59
59
  type: String,
60
60
  default: 'children'
61
- }, renderLabel: Function, renderOption: Function, renderTag: Function, 'onUpdate:value': [Function, Array], inputProps: Object, nodeProps: Function, ignoreComposition: { type: Boolean, default: true }, showOnFocus: Boolean,
61
+ }, filled: Boolean, tagField: String, renderTagLabel: Function, renderLabel: Function, renderOption: Function, renderTag: Function, 'onUpdate:value': [Function, Array], inputProps: Object, nodeProps: Function, ignoreComposition: { type: Boolean, default: true }, showOnFocus: Boolean,
62
62
  // for jsx
63
63
  onUpdateValue: [Function, Array], onBlur: [Function, Array], onClear: [Function, Array], onFocus: [Function, Array], onScroll: [Function, Array], onSearch: [Function, Array], onUpdateShow: [Function, Array], 'onUpdate:show': [Function, Array], displayDirective: {
64
64
  type: String,
@@ -71,7 +71,7 @@ export const selectProps = Object.assign(Object.assign({}, useTheme.props), { to
71
71
  default: true
72
72
  }, round: Boolean, counter: Boolean, secondary: Boolean,
73
73
  /** deprecated */
74
- onChange: [Function, Array], items: Array });
74
+ onChange: [Function, Array], items: Array, account: Boolean });
75
75
  export default defineComponent({
76
76
  name: 'Select',
77
77
  props: selectProps,
@@ -214,8 +214,13 @@ export default defineComponent({
214
214
  }
215
215
  return null;
216
216
  });
217
+ const mergedSizeRef = computed(() => {
218
+ if (props.account)
219
+ return 'huge';
220
+ return formItem.mergedSizeRef.value;
221
+ });
217
222
  const formItem = useFormItem(props);
218
- const { mergedSizeRef, mergedDisabledRef, mergedStatusRef } = formItem;
223
+ const { mergedDisabledRef, mergedStatusRef } = formItem;
219
224
  function doUpdateValue(value, option) {
220
225
  const { onChange, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
221
226
  const { nTriggerFormChange, nTriggerFormInput } = formItem;
@@ -664,7 +669,7 @@ export default defineComponent({
664
669
  h(VBinder, null, {
665
670
  default: () => [
666
671
  h(VTarget, null, {
667
- default: () => (h(UInternalSelection, { ref: "triggerRef", inlineThemeDisabled: this.inlineThemeDisabled, status: this.mergedStatus, inputProps: this.inputProps, clsPrefix: this.mergedClsPrefix, showArrow: this.showArrow, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, active: this.activeWithoutMenuOpen || this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, renderTag: this.renderTag, renderLabel: this.renderLabel, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, labelField: this.labelField, valueField: this.valueField, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, loading: this.loading, loadingSkeleton: this.loadingSkeleton, focused: this.focused, onClick: this.handleTriggerClick, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onClear: this.handleClear, onBlur: this.handleTriggerBlur, onFocus: this.handleTriggerFocus, onKeydown: this.handleKeydown, onPatternBlur: this.onTriggerInputBlur, onPatternFocus: this.onTriggerInputFocus, onResize: this.handleTriggerOrMenuResize, ignoreComposition: this.ignoreComposition, round: this.round, counter: this.counter, secondary: this.secondary }, {
672
+ default: () => (h(UInternalSelection, { ref: "triggerRef", inlineThemeDisabled: this.inlineThemeDisabled, status: this.mergedStatus, inputProps: this.inputProps, clsPrefix: this.mergedClsPrefix, showArrow: this.showArrow, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, active: this.activeWithoutMenuOpen || this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, renderTag: this.renderTag, renderLabel: this.renderLabel, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, labelField: this.labelField, valueField: this.valueField, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, loading: this.loading, loadingSkeleton: this.loadingSkeleton, focused: this.focused, onClick: this.handleTriggerClick, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onClear: this.handleClear, onBlur: this.handleTriggerBlur, onFocus: this.handleTriggerFocus, onKeydown: this.handleKeydown, onPatternBlur: this.onTriggerInputBlur, onPatternFocus: this.onTriggerInputFocus, onResize: this.handleTriggerOrMenuResize, ignoreComposition: this.ignoreComposition, round: this.round, counter: this.counter, secondary: this.secondary, account: this.account, tagField: this.tagField, renderTagLabel: this.renderTagLabel, filled: this.filled }, {
668
673
  arrow: () => { var _a, _b; return [(_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)]; }
669
674
  }))
670
675
  }),
@@ -681,7 +686,7 @@ export default defineComponent({
681
686
  `${this.mergedClsPrefix}-select-menu`,
682
687
  this.themeClass,
683
688
  (_b = this.menuProps) === null || _b === void 0 ? void 0 : _b.class
684
- ], clsPrefix: this.mergedClsPrefix, focusable: true, labelField: this.labelField, valueField: this.valueField, autoPending: true, nodeProps: this.nodeProps, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides
689
+ ], clsPrefix: this.mergedClsPrefix, focusable: true, account: this.account, labelField: this.labelField, valueField: this.valueField, autoPending: true, nodeProps: this.nodeProps, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides
685
690
  .InternalSelectMenu, treeMate: this.treeMate, multiple: this.multiple, size: "medium", renderOption: this.renderOption, renderLabel: this.renderLabel, value: this.mergedValue, style: [(_c = this.menuProps) === null || _c === void 0 ? void 0 : _c.style, this.cssVars], onToggle: this.handleToggle, onScroll: this.handleMenuScroll, onFocus: this.handleMenuFocus, onBlur: this.handleMenuBlur, onKeydown: this.handleMenuKeydown, onTabOut: this.handleMenuTabOut, onMousedown: this.handleMenuMousedown, show: this.mergedShow, showCheckmark: this.showCheckmark, resetMenuOnOptionsChange: this.resetMenuOnOptionsChange }), {
686
691
  empty: () => { var _a, _b; return [(_b = (_a = this.$slots).empty) === null || _b === void 0 ? void 0 : _b.call(_a)]; },
687
692
  action: () => { var _a, _b; return [(_b = (_a = this.$slots).action) === null || _b === void 0 ? void 0 : _b.call(_a)]; }
@@ -2,6 +2,8 @@ import { type TreeMate } from 'treemate';
2
2
  import { type CSSProperties, type VNodeChild, type VNode } from 'vue';
3
3
  export type SelectMixedOption = SelectBaseOption | SelectGroupOption | SelectIgnoredOption;
4
4
  export interface SelectBaseOption<V = string | number, L = string | ((option: SelectBaseOption<V>, selected: boolean) => VNodeChild)> {
5
+ icon?: () => VNodeChild;
6
+ avatar?: () => VNodeChild;
5
7
  value?: V;
6
8
  label?: L;
7
9
  class?: string;
@@ -46,9 +46,11 @@ declare const selectLight: import("../../_mixins").Theme<"Select", {
46
46
  placeholderColor: string;
47
47
  placeholderColorDisabled: string;
48
48
  color: string;
49
+ colorFilled: string;
49
50
  colorDisabled: string;
50
51
  colorActive: string;
51
52
  border: string;
53
+ borderFilled: string;
52
54
  borderHover: string;
53
55
  borderActive: string;
54
56
  borderFocus: string;
@@ -212,8 +212,8 @@ export default defineComponent({
212
212
  alignItems: 'center',
213
213
  justifyContent: 'center',
214
214
  borderRadius: '50%',
215
- backgroundColor: 'var(--popover-color)',
216
- color: 'var(--text-color-2)',
215
+ backgroundColor: 'var(--elements-secondary)',
216
+ color: 'var(--text-primary)',
217
217
  transition: 'color .3s var(--cubic-bezier-ease-in-out), background-color .3s var(--cubic-bezier-ease-in-out), box-shadow .3s var(--cubic-bezier-ease-in-out)',
218
218
  boxShadow: '0 2px 8px 0px rgba(0, 0, 0, .12)',
219
219
  cursor: 'pointer'
package/es/themes/dark.js CHANGED
@@ -82,9 +82,11 @@ import { treeDark } from '../tree/styles';
82
82
  import { uploadDark } from '../upload/styles';
83
83
  import { watermarkDark } from '../watermark/styles';
84
84
  import { toggleButtonDark } from '../toggle-button/styles';
85
+ import { accountOptionDark } from '../_internal/account-option/styles';
85
86
  export const darkTheme = {
86
87
  name: 'dark',
87
88
  common: commonDark,
89
+ AccountOption: accountOptionDark,
88
90
  Alert: alertDark,
89
91
  Anchor: anchorDark,
90
92
  AutoComplete: autoCompleteDark,
@@ -84,9 +84,11 @@ import { treeSelectLight } from '../tree-select/styles';
84
84
  import { uploadLight } from '../upload/styles';
85
85
  import { watermarkLight } from '../watermark/styles';
86
86
  import { toggleButtonLight } from '../toggle-button/styles';
87
+ import { accountOptionLight } from '../_internal/account-option/styles';
87
88
  export const lightTheme = {
88
89
  name: 'light',
89
90
  common: commonLight,
91
+ AccountOption: accountOptionLight,
90
92
  Alert: alertLight,
91
93
  Anchor: anchorLight,
92
94
  AutoComplete: autoCompleteLight,
@@ -268,9 +268,11 @@ export declare const treeSelectProps: {
268
268
  placeholderColor: string;
269
269
  placeholderColorDisabled: string;
270
270
  color: string;
271
+ colorFilled: string;
271
272
  colorDisabled: string;
272
273
  colorActive: string;
273
274
  border: string;
275
+ borderFilled: string;
274
276
  borderHover: string;
275
277
  borderActive: string;
276
278
  borderFocus: string;
@@ -500,9 +502,11 @@ export declare const treeSelectProps: {
500
502
  placeholderColor: string;
501
503
  placeholderColorDisabled: string;
502
504
  color: string;
505
+ colorFilled: string;
503
506
  colorDisabled: string;
504
507
  colorActive: string;
505
508
  border: string;
509
+ borderFilled: string;
506
510
  borderHover: string;
507
511
  borderActive: string;
508
512
  borderFocus: string;
@@ -732,9 +736,11 @@ export declare const treeSelectProps: {
732
736
  placeholderColor: string;
733
737
  placeholderColorDisabled: string;
734
738
  color: string;
739
+ colorFilled: string;
735
740
  colorDisabled: string;
736
741
  colorActive: string;
737
742
  border: string;
743
+ borderFilled: string;
738
744
  borderHover: string;
739
745
  borderActive: string;
740
746
  borderFocus: string;
@@ -1077,9 +1083,11 @@ declare const _default: import("vue").DefineComponent<{
1077
1083
  placeholderColor: string;
1078
1084
  placeholderColorDisabled: string;
1079
1085
  color: string;
1086
+ colorFilled: string;
1080
1087
  colorDisabled: string;
1081
1088
  colorActive: string;
1082
1089
  border: string;
1090
+ borderFilled: string;
1083
1091
  borderHover: string;
1084
1092
  borderActive: string;
1085
1093
  borderFocus: string;
@@ -1309,9 +1317,11 @@ declare const _default: import("vue").DefineComponent<{
1309
1317
  placeholderColor: string;
1310
1318
  placeholderColorDisabled: string;
1311
1319
  color: string;
1320
+ colorFilled: string;
1312
1321
  colorDisabled: string;
1313
1322
  colorActive: string;
1314
1323
  border: string;
1324
+ borderFilled: string;
1315
1325
  borderHover: string;
1316
1326
  borderActive: string;
1317
1327
  borderFocus: string;
@@ -1541,9 +1551,11 @@ declare const _default: import("vue").DefineComponent<{
1541
1551
  placeholderColor: string;
1542
1552
  placeholderColorDisabled: string;
1543
1553
  color: string;
1554
+ colorFilled: string;
1544
1555
  colorDisabled: string;
1545
1556
  colorActive: string;
1546
1557
  border: string;
1558
+ borderFilled: string;
1547
1559
  borderHover: string;
1548
1560
  borderActive: string;
1549
1561
  borderFocus: string;
@@ -1952,9 +1964,11 @@ declare const _default: import("vue").DefineComponent<{
1952
1964
  placeholderColor: string;
1953
1965
  placeholderColorDisabled: string;
1954
1966
  color: string;
1967
+ colorFilled: string;
1955
1968
  colorDisabled: string;
1956
1969
  colorActive: string;
1957
1970
  border: string;
1971
+ borderFilled: string;
1958
1972
  borderHover: string;
1959
1973
  borderActive: string;
1960
1974
  borderFocus: string;
@@ -2418,9 +2432,11 @@ declare const _default: import("vue").DefineComponent<{
2418
2432
  placeholderColor: string;
2419
2433
  placeholderColorDisabled: string;
2420
2434
  color: string;
2435
+ colorFilled: string;
2421
2436
  colorDisabled: string;
2422
2437
  colorActive: string;
2423
2438
  border: string;
2439
+ borderFilled: string;
2424
2440
  borderHover: string;
2425
2441
  borderActive: string;
2426
2442
  borderFocus: string;
@@ -2650,9 +2666,11 @@ declare const _default: import("vue").DefineComponent<{
2650
2666
  placeholderColor: string;
2651
2667
  placeholderColorDisabled: string;
2652
2668
  color: string;
2669
+ colorFilled: string;
2653
2670
  colorDisabled: string;
2654
2671
  colorActive: string;
2655
2672
  border: string;
2673
+ borderFilled: string;
2656
2674
  borderHover: string;
2657
2675
  borderActive: string;
2658
2676
  borderFocus: string;
@@ -2882,9 +2900,11 @@ declare const _default: import("vue").DefineComponent<{
2882
2900
  placeholderColor: string;
2883
2901
  placeholderColorDisabled: string;
2884
2902
  color: string;
2903
+ colorFilled: string;
2885
2904
  colorDisabled: string;
2886
2905
  colorActive: string;
2887
2906
  border: string;
2907
+ borderFilled: string;
2888
2908
  borderHover: string;
2889
2909
  borderActive: string;
2890
2910
  borderFocus: string;
@@ -159,9 +159,11 @@ declare const treeSelectLight: import("../../_mixins/use-theme").Theme<"TreeSele
159
159
  placeholderColor: string;
160
160
  placeholderColorDisabled: string;
161
161
  color: string;
162
+ colorFilled: string;
162
163
  colorDisabled: string;
163
164
  colorActive: string;
164
165
  border: string;
166
+ borderFilled: string;
165
167
  borderHover: string;
166
168
  borderActive: string;
167
169
  borderFocus: string;
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.0.2";
1
+ declare const _default: "1.1.0";
2
2
  export default _default;
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.0.2';
1
+ export default '1.1.0';
@@ -0,0 +1 @@
1
+ export { default } from './src/AccountOption';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = void 0;
7
+ var AccountOption_1 = require("./src/AccountOption");
8
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(AccountOption_1).default; } });