@uzum-tech/ui 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/index.js +1333 -869
- package/dist/index.prod.js +3 -3
- package/es/_internal/checkbox/src/use-checkbox.js +3 -3
- package/es/_internal/radio/src/use-radio.js +3 -3
- package/es/_internal/typography/src/styles/text.cssr.js +0 -1
- package/es/_internal/typography/styles/light.js +1 -1
- package/es/_mixins/use-form-item.d.ts +4 -4
- package/es/_mixins/use-form-item.js +4 -4
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +3 -0
- package/es/_styles/common/light.js +1 -1
- package/es/_utils/composable/composables.d.ts +11 -0
- package/es/_utils/composable/composables.js +40 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/uzum/index.d.ts +1 -0
- package/es/_utils/uzum/index.js +1 -0
- package/es/_utils/uzum/value.d.ts +1 -0
- package/es/_utils/uzum/value.js +9 -0
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/alert/styles/light.js +6 -6
- package/es/auto-complete/src/AutoComplete.js +10 -10
- package/es/avatar/src/Avatar.d.ts +6 -0
- package/es/avatar/src/Avatar.js +9 -3
- package/es/card-list/src/CardList.js +1 -1
- package/es/card-list/src/CardListItem.d.ts +13 -0
- package/es/card-list/src/CardListItem.js +11 -4
- package/es/card-list/src/interface.d.ts +1 -0
- package/es/card-list/src/styles/index.cssr.js +6 -6
- package/es/card-list/styles/light.js +2 -2
- package/es/cascader/src/Cascader.js +7 -7
- package/es/checkbox/src/CheckboxGroup.js +9 -9
- package/es/color-picker/src/ColorPicker.js +6 -6
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +8 -0
- package/es/data-table/src/DataTable.js +21 -10
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +6 -5
- package/es/data-table/src/TableParts/Cell.js +85 -23
- package/es/data-table/src/interface.d.ts +13 -6
- package/es/data-table/src/interface.js +1 -1
- package/es/data-table/src/styles/index.cssr.js +5 -3
- package/es/data-table/src/use-mask.d.ts +3 -6
- package/es/data-table/src/utils.d.ts +2 -1
- package/es/data-table/src/utils.js +13 -0
- package/es/date-picker/src/DatePicker.js +7 -7
- package/es/dialog/src/DialogProvider.d.ts +6 -0
- package/es/dynamic-tags/src/DynamicTags.js +3 -3
- package/es/input/src/Input.js +8 -8
- package/es/input-number/src/InputNumber.js +7 -7
- package/es/input-otp/index.d.ts +3 -0
- package/es/input-otp/index.js +1 -0
- package/es/input-otp/src/InputOtp.d.ts +871 -0
- package/es/input-otp/src/InputOtp.js +250 -0
- package/es/input-otp/src/public-types.d.ts +25 -0
- package/es/input-otp/src/public-types.js +1 -0
- package/es/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/index.cssr.js +20 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/es/input-otp/src/styles/input-otp-rtl.cssr.js +5 -0
- package/es/input-otp/styles/dark.d.ts +3 -0
- package/es/input-otp/styles/dark.js +12 -0
- package/es/input-otp/styles/index.d.ts +4 -0
- package/es/input-otp/styles/index.js +3 -0
- package/es/input-otp/styles/light.d.ts +83 -0
- package/es/input-otp/styles/light.js +22 -0
- package/es/input-otp/styles/rtl.d.ts +2 -0
- package/es/input-otp/styles/rtl.js +5 -0
- package/es/legacy-transfer/src/Transfer.js +3 -3
- package/es/list/src/List.d.ts +41 -55
- package/es/list/src/List.js +6 -10
- package/es/list/src/ListItem.d.ts +84 -25
- package/es/list/src/ListItem.js +120 -98
- package/es/list/src/interface.d.ts +1 -0
- package/es/list/src/props.d.ts +70 -31
- package/es/list/src/props.js +25 -5
- package/es/list/src/styles/index.cssr.js +32 -90
- package/es/list/styles/light.d.ts +5 -8
- package/es/list/styles/light.js +6 -9
- package/es/mention/src/Mention.js +7 -7
- package/es/radio/src/RadioGroup.js +5 -5
- package/es/rate/src/Rate.js +3 -3
- package/es/select/src/Select.js +7 -7
- package/es/slider/src/Slider.js +3 -3
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.js +7 -7
- package/es/tag/src/styles/index.cssr.js +5 -1
- package/es/tag/styles/light.js +2 -2
- package/es/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/time-picker/src/TimePicker.js +7 -7
- package/es/transfer/src/Transfer.js +3 -3
- package/es/tree-select/src/TreeSelect.js +5 -5
- package/es/upload/src/UploadFile.js +4 -3
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/checkbox/src/use-checkbox.js +3 -3
- package/lib/_internal/radio/src/use-radio.js +3 -3
- package/lib/_internal/typography/src/styles/text.cssr.js +0 -1
- package/lib/_internal/typography/styles/light.js +1 -1
- package/lib/_mixins/use-form-item.d.ts +4 -4
- package/lib/_mixins/use-form-item.js +4 -4
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +3 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/_utils/composable/composables.d.ts +11 -0
- package/lib/_utils/composable/composables.js +47 -0
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/uzum/index.d.ts +1 -0
- package/lib/_utils/uzum/index.js +3 -1
- package/lib/_utils/uzum/value.d.ts +1 -0
- package/lib/_utils/uzum/value.js +12 -0
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/alert/styles/light.js +6 -6
- package/lib/auto-complete/src/AutoComplete.js +10 -10
- package/lib/avatar/src/Avatar.d.ts +6 -0
- package/lib/avatar/src/Avatar.js +9 -3
- package/lib/card-list/src/CardList.js +1 -1
- package/lib/card-list/src/CardListItem.d.ts +13 -0
- package/lib/card-list/src/CardListItem.js +11 -4
- package/lib/card-list/src/interface.d.ts +1 -0
- package/lib/card-list/src/styles/index.cssr.js +5 -5
- package/lib/card-list/styles/light.js +2 -2
- package/lib/cascader/src/Cascader.js +7 -7
- package/lib/checkbox/src/CheckboxGroup.js +9 -9
- package/lib/color-picker/src/ColorPicker.js +6 -6
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +8 -0
- package/lib/data-table/src/DataTable.js +21 -10
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +6 -5
- package/lib/data-table/src/TableParts/Cell.js +84 -22
- package/lib/data-table/src/interface.d.ts +13 -6
- package/lib/data-table/src/interface.js +1 -1
- package/lib/data-table/src/styles/index.cssr.js +5 -3
- package/lib/data-table/src/use-mask.d.ts +3 -6
- package/lib/data-table/src/utils.d.ts +2 -1
- package/lib/data-table/src/utils.js +14 -1
- package/lib/date-picker/src/DatePicker.js +7 -7
- package/lib/dialog/src/DialogProvider.d.ts +6 -0
- package/lib/dynamic-tags/src/DynamicTags.js +3 -3
- package/lib/input/src/Input.js +8 -8
- package/lib/input-number/src/InputNumber.js +7 -7
- package/lib/input-otp/index.d.ts +3 -0
- package/lib/input-otp/index.js +9 -0
- package/lib/input-otp/src/InputOtp.d.ts +871 -0
- package/lib/input-otp/src/InputOtp.js +256 -0
- package/lib/input-otp/src/public-types.d.ts +25 -0
- package/lib/input-otp/src/public-types.js +2 -0
- package/lib/input-otp/src/styles/index.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/index.cssr.js +25 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.d.ts +2 -0
- package/lib/input-otp/src/styles/input-otp-rtl.cssr.js +10 -0
- package/lib/input-otp/styles/dark.d.ts +3 -0
- package/lib/input-otp/styles/dark.js +14 -0
- package/lib/input-otp/styles/index.d.ts +4 -0
- package/lib/input-otp/styles/index.js +12 -0
- package/lib/input-otp/styles/light.d.ts +83 -0
- package/lib/input-otp/styles/light.js +25 -0
- package/lib/input-otp/styles/rtl.d.ts +2 -0
- package/lib/input-otp/styles/rtl.js +11 -0
- package/lib/legacy-transfer/src/Transfer.js +3 -3
- package/lib/list/src/List.d.ts +41 -55
- package/lib/list/src/List.js +6 -10
- package/lib/list/src/ListItem.d.ts +84 -25
- package/lib/list/src/ListItem.js +119 -97
- package/lib/list/src/interface.d.ts +1 -0
- package/lib/list/src/props.d.ts +70 -31
- package/lib/list/src/props.js +25 -5
- package/lib/list/src/styles/index.cssr.js +32 -90
- package/lib/list/styles/light.d.ts +5 -8
- package/lib/list/styles/light.js +6 -9
- package/lib/mention/src/Mention.js +7 -7
- package/lib/radio/src/RadioGroup.js +5 -5
- package/lib/rate/src/Rate.js +3 -3
- package/lib/select/src/Select.js +7 -7
- package/lib/slider/src/Slider.js +3 -3
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +106 -103
- package/lib/switch/src/Switch.js +7 -7
- package/lib/tag/src/styles/index.cssr.js +5 -1
- package/lib/tag/styles/light.js +2 -2
- package/lib/theme-editor/src/ThemeEditor.d.ts +3 -0
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/time-picker/src/TimePicker.js +7 -7
- package/lib/transfer/src/Transfer.js +3 -3
- package/lib/tree-select/src/TreeSelect.js +5 -5
- package/lib/upload/src/UploadFile.js +4 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +180 -38
package/es/list/src/List.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: import("vue").PropType<import("./interface").Size>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
2
6
|
showIcon: {
|
|
3
7
|
type: BooleanConstructor;
|
|
4
8
|
default: boolean;
|
|
@@ -48,18 +52,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
52
|
icon: import("./interface").RenderableProp;
|
|
49
53
|
avatar: import("./interface").RenderableProp;
|
|
50
54
|
theme: import("vue").PropType<import("../../_mixins").Theme<"List", {
|
|
51
|
-
padding: string;
|
|
52
55
|
iconSize: string;
|
|
53
56
|
iconSpace: string;
|
|
54
57
|
suffixSpace: string;
|
|
55
58
|
prefixSpace: string;
|
|
56
|
-
titleSize: string;
|
|
57
|
-
titleLineHeight: string;
|
|
58
|
-
subtitleSize: string;
|
|
59
|
-
subtitleLineHeight: string;
|
|
60
59
|
subtitleColor: string;
|
|
61
60
|
avatarSpace: string;
|
|
62
|
-
minHeight: string;
|
|
63
61
|
colorFocus: string;
|
|
64
62
|
pressedScale: string;
|
|
65
63
|
textColorDisabled: string;
|
|
@@ -73,22 +71,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
71
|
borderColor: string;
|
|
74
72
|
borderColorModal: string;
|
|
75
73
|
borderColorPopover: string;
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
borderRadiusLarge: string;
|
|
75
|
+
borderRadiusMedium: string;
|
|
76
|
+
borderRadiusSmall: string;
|
|
77
|
+
padding: string;
|
|
78
|
+
suffixSize: string;
|
|
78
79
|
}, any>>;
|
|
79
80
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
80
|
-
padding: string;
|
|
81
81
|
iconSize: string;
|
|
82
82
|
iconSpace: string;
|
|
83
83
|
suffixSpace: string;
|
|
84
84
|
prefixSpace: string;
|
|
85
|
-
titleSize: string;
|
|
86
|
-
titleLineHeight: string;
|
|
87
|
-
subtitleSize: string;
|
|
88
|
-
subtitleLineHeight: string;
|
|
89
85
|
subtitleColor: string;
|
|
90
86
|
avatarSpace: string;
|
|
91
|
-
minHeight: string;
|
|
92
87
|
colorFocus: string;
|
|
93
88
|
pressedScale: string;
|
|
94
89
|
textColorDisabled: string;
|
|
@@ -102,22 +97,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
97
|
borderColor: string;
|
|
103
98
|
borderColorModal: string;
|
|
104
99
|
borderColorPopover: string;
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
borderRadiusLarge: string;
|
|
101
|
+
borderRadiusMedium: string;
|
|
102
|
+
borderRadiusSmall: string;
|
|
103
|
+
padding: string;
|
|
104
|
+
suffixSize: string;
|
|
107
105
|
}, any>>>;
|
|
108
106
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
109
|
-
padding: string;
|
|
110
107
|
iconSize: string;
|
|
111
108
|
iconSpace: string;
|
|
112
109
|
suffixSpace: string;
|
|
113
110
|
prefixSpace: string;
|
|
114
|
-
titleSize: string;
|
|
115
|
-
titleLineHeight: string;
|
|
116
|
-
subtitleSize: string;
|
|
117
|
-
subtitleLineHeight: string;
|
|
118
111
|
subtitleColor: string;
|
|
119
112
|
avatarSpace: string;
|
|
120
|
-
minHeight: string;
|
|
121
113
|
colorFocus: string;
|
|
122
114
|
pressedScale: string;
|
|
123
115
|
textColorDisabled: string;
|
|
@@ -131,14 +123,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
131
123
|
borderColor: string;
|
|
132
124
|
borderColorModal: string;
|
|
133
125
|
borderColorPopover: string;
|
|
134
|
-
|
|
135
|
-
|
|
126
|
+
borderRadiusLarge: string;
|
|
127
|
+
borderRadiusMedium: string;
|
|
128
|
+
borderRadiusSmall: string;
|
|
129
|
+
padding: string;
|
|
130
|
+
suffixSize: string;
|
|
136
131
|
}, any>>>;
|
|
137
132
|
}, {
|
|
138
133
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
139
134
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
140
135
|
cssVars: import("vue").ComputedRef<{
|
|
141
|
-
'--u-font-size': string;
|
|
142
136
|
'--u-bezier': string;
|
|
143
137
|
'--u-text-color': string;
|
|
144
138
|
'--u-color': string;
|
|
@@ -151,25 +145,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
151
145
|
'--u-color-hover': string;
|
|
152
146
|
'--u-color-hover-modal': string;
|
|
153
147
|
'--u-color-hover-popover': string;
|
|
154
|
-
'--u-padding': string;
|
|
155
148
|
'--u-icon-size': string;
|
|
156
149
|
'--u-icon-space': string;
|
|
157
150
|
'--u-suffix-space': string;
|
|
158
151
|
'--u-prefix-space': string;
|
|
159
|
-
'--u-title-size': string;
|
|
160
|
-
'--u-title-line-height': string;
|
|
161
|
-
'--u-subtitle-size': string;
|
|
162
|
-
'--u-subtitle-line-height': string;
|
|
163
152
|
'--u-subtitle-color': string;
|
|
164
153
|
'--u-avatar-space': string;
|
|
165
|
-
'--u-min-height': string;
|
|
166
154
|
'--u-color-focus': string;
|
|
167
155
|
'--u-pressed-scale': string;
|
|
168
156
|
'--u-text-color-disabled': string;
|
|
157
|
+
'--u-padding': string;
|
|
158
|
+
'--u-suffix-size': string;
|
|
169
159
|
}> | undefined;
|
|
170
160
|
themeClass: import("vue").Ref<string> | undefined;
|
|
171
161
|
onRender: (() => void) | undefined;
|
|
172
162
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
163
|
+
size: {
|
|
164
|
+
type: import("vue").PropType<import("./interface").Size>;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
173
167
|
showIcon: {
|
|
174
168
|
type: BooleanConstructor;
|
|
175
169
|
default: boolean;
|
|
@@ -219,18 +213,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
219
213
|
icon: import("./interface").RenderableProp;
|
|
220
214
|
avatar: import("./interface").RenderableProp;
|
|
221
215
|
theme: import("vue").PropType<import("../../_mixins").Theme<"List", {
|
|
222
|
-
padding: string;
|
|
223
216
|
iconSize: string;
|
|
224
217
|
iconSpace: string;
|
|
225
218
|
suffixSpace: string;
|
|
226
219
|
prefixSpace: string;
|
|
227
|
-
titleSize: string;
|
|
228
|
-
titleLineHeight: string;
|
|
229
|
-
subtitleSize: string;
|
|
230
|
-
subtitleLineHeight: string;
|
|
231
220
|
subtitleColor: string;
|
|
232
221
|
avatarSpace: string;
|
|
233
|
-
minHeight: string;
|
|
234
222
|
colorFocus: string;
|
|
235
223
|
pressedScale: string;
|
|
236
224
|
textColorDisabled: string;
|
|
@@ -244,22 +232,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
244
232
|
borderColor: string;
|
|
245
233
|
borderColorModal: string;
|
|
246
234
|
borderColorPopover: string;
|
|
247
|
-
|
|
248
|
-
|
|
235
|
+
borderRadiusLarge: string;
|
|
236
|
+
borderRadiusMedium: string;
|
|
237
|
+
borderRadiusSmall: string;
|
|
238
|
+
padding: string;
|
|
239
|
+
suffixSize: string;
|
|
249
240
|
}, any>>;
|
|
250
241
|
themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
251
|
-
padding: string;
|
|
252
242
|
iconSize: string;
|
|
253
243
|
iconSpace: string;
|
|
254
244
|
suffixSpace: string;
|
|
255
245
|
prefixSpace: string;
|
|
256
|
-
titleSize: string;
|
|
257
|
-
titleLineHeight: string;
|
|
258
|
-
subtitleSize: string;
|
|
259
|
-
subtitleLineHeight: string;
|
|
260
246
|
subtitleColor: string;
|
|
261
247
|
avatarSpace: string;
|
|
262
|
-
minHeight: string;
|
|
263
248
|
colorFocus: string;
|
|
264
249
|
pressedScale: string;
|
|
265
250
|
textColorDisabled: string;
|
|
@@ -273,22 +258,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
273
258
|
borderColor: string;
|
|
274
259
|
borderColorModal: string;
|
|
275
260
|
borderColorPopover: string;
|
|
276
|
-
|
|
277
|
-
|
|
261
|
+
borderRadiusLarge: string;
|
|
262
|
+
borderRadiusMedium: string;
|
|
263
|
+
borderRadiusSmall: string;
|
|
264
|
+
padding: string;
|
|
265
|
+
suffixSize: string;
|
|
278
266
|
}, any>>>;
|
|
279
267
|
builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"List", {
|
|
280
|
-
padding: string;
|
|
281
268
|
iconSize: string;
|
|
282
269
|
iconSpace: string;
|
|
283
270
|
suffixSpace: string;
|
|
284
271
|
prefixSpace: string;
|
|
285
|
-
titleSize: string;
|
|
286
|
-
titleLineHeight: string;
|
|
287
|
-
subtitleSize: string;
|
|
288
|
-
subtitleLineHeight: string;
|
|
289
272
|
subtitleColor: string;
|
|
290
273
|
avatarSpace: string;
|
|
291
|
-
minHeight: string;
|
|
292
274
|
colorFocus: string;
|
|
293
275
|
pressedScale: string;
|
|
294
276
|
textColorDisabled: string;
|
|
@@ -302,8 +284,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
302
284
|
borderColor: string;
|
|
303
285
|
borderColorModal: string;
|
|
304
286
|
borderColorPopover: string;
|
|
305
|
-
|
|
306
|
-
|
|
287
|
+
borderRadiusLarge: string;
|
|
288
|
+
borderRadiusMedium: string;
|
|
289
|
+
borderRadiusSmall: string;
|
|
290
|
+
padding: string;
|
|
291
|
+
suffixSize: string;
|
|
307
292
|
}, any>>>;
|
|
308
293
|
}>>, {
|
|
309
294
|
onFocus: import("../../_utils").ArrayFocusHandler | undefined;
|
|
@@ -318,6 +303,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
318
303
|
bordered: boolean;
|
|
319
304
|
tag: string;
|
|
320
305
|
showIcon: boolean;
|
|
306
|
+
size: import("./interface").Size;
|
|
321
307
|
header: import("./interface").RenderableType;
|
|
322
308
|
loadingSkeleton: boolean;
|
|
323
309
|
rounded: boolean;
|
package/es/list/src/List.js
CHANGED
|
@@ -3,6 +3,7 @@ import { useConfig, useTheme, useThemeClass, useRtl } from '../../_mixins';
|
|
|
3
3
|
import { listLight } from '../styles';
|
|
4
4
|
import style from './styles/index.cssr';
|
|
5
5
|
import { listProps, listInjectionKey, listItemPropsBoolean, listItemPropsRenderable } from './props';
|
|
6
|
+
import { createKey } from '../../_utils';
|
|
6
7
|
export default defineComponent({
|
|
7
8
|
name: 'List',
|
|
8
9
|
props: listProps,
|
|
@@ -18,11 +19,10 @@ export default defineComponent({
|
|
|
18
19
|
acc[item] = toRef(props, item);
|
|
19
20
|
return acc;
|
|
20
21
|
}, {});
|
|
21
|
-
provide(listInjectionKey, Object.assign(Object.assign(Object.assign({}, booleanInjectedRefs), renderableInjectedRefs), { tag: toRef(props, 'itemTag'), mergedClsPrefix: mergedClsPrefixRef, onClick: toRef(props, 'onClick'), onKeypress: toRef(props, 'onKeypress'), onPress: toRef(props, 'onPress'), onBlur: toRef(props, 'onBlur'), onFocus: toRef(props, 'onFocus'), bordered: toRef(props, 'bordered'), clickable: toRef(props, 'clickable'), showDivider: toRef(props, 'showDivider') }));
|
|
22
|
+
provide(listInjectionKey, Object.assign(Object.assign(Object.assign({}, booleanInjectedRefs), renderableInjectedRefs), { tag: toRef(props, 'itemTag'), mergedClsPrefix: mergedClsPrefixRef, onClick: toRef(props, 'onClick'), onKeypress: toRef(props, 'onKeypress'), onPress: toRef(props, 'onPress'), onBlur: toRef(props, 'onBlur'), onFocus: toRef(props, 'onFocus'), bordered: toRef(props, 'bordered'), clickable: toRef(props, 'clickable'), showDivider: toRef(props, 'showDivider'), size: toRef(props, 'size') }));
|
|
22
23
|
const cssVarsRef = computed(() => {
|
|
23
|
-
const { common: { cubicBezierEaseInOut }, self: {
|
|
24
|
+
const { common: { cubicBezierEaseInOut }, self: { textColor, color, colorModal, colorPopover, borderColor, borderColorModal, borderColorPopover, colorHover, colorHoverModal, colorHoverPopover, padding, iconSize, iconSpace, suffixSpace, prefixSpace, subtitleColor, avatarSpace, colorFocus, pressedScale, textColorDisabled, suffixSize, [createKey('borderRadius', props.size)]: borderRadius } } = themeRef.value;
|
|
24
25
|
return {
|
|
25
|
-
'--u-font-size': fontSize,
|
|
26
26
|
'--u-bezier': cubicBezierEaseInOut,
|
|
27
27
|
'--u-text-color': textColor,
|
|
28
28
|
'--u-color': color,
|
|
@@ -35,21 +35,17 @@ export default defineComponent({
|
|
|
35
35
|
'--u-color-hover': colorHover,
|
|
36
36
|
'--u-color-hover-modal': colorHoverModal,
|
|
37
37
|
'--u-color-hover-popover': colorHoverPopover,
|
|
38
|
-
'--u-padding': padding,
|
|
39
38
|
'--u-icon-size': iconSize,
|
|
40
39
|
'--u-icon-space': iconSpace,
|
|
41
40
|
'--u-suffix-space': suffixSpace,
|
|
42
41
|
'--u-prefix-space': prefixSpace,
|
|
43
|
-
'--u-title-size': titleSize,
|
|
44
|
-
'--u-title-line-height': titleLineHeight,
|
|
45
|
-
'--u-subtitle-size': subtitleSize,
|
|
46
|
-
'--u-subtitle-line-height': subtitleLineHeight,
|
|
47
42
|
'--u-subtitle-color': subtitleColor,
|
|
48
43
|
'--u-avatar-space': avatarSpace,
|
|
49
|
-
'--u-min-height': minHeight,
|
|
50
44
|
'--u-color-focus': colorFocus,
|
|
51
45
|
'--u-pressed-scale': pressedScale,
|
|
52
|
-
'--u-text-color-disabled': textColorDisabled
|
|
46
|
+
'--u-text-color-disabled': textColorDisabled,
|
|
47
|
+
'--u-padding': padding,
|
|
48
|
+
'--u-suffix-size': suffixSize
|
|
53
49
|
};
|
|
54
50
|
});
|
|
55
51
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -1,11 +1,45 @@
|
|
|
1
|
-
import { ComputedRef, Slot } from 'vue';
|
|
1
|
+
import { ComputedRef, Slot, Component } from 'vue';
|
|
2
2
|
import { ArrayEmptyHandler, ArrayKeyboardHandler, ArrayMouseHandler, KeyboardEventHandler, ArrayFocusHandler, MouseEventHandler } from '../../_utils';
|
|
3
|
-
import {
|
|
3
|
+
import { HeaderPropObject, DescriptionPropsObject } from './props';
|
|
4
|
+
import { Size } from './interface';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
avatar: {
|
|
7
|
+
type: import("vue").PropType<import("../../avatar").AvatarProps & {
|
|
8
|
+
icon: Component;
|
|
9
|
+
hasBadge?: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
badge: {
|
|
14
|
+
type: import("vue").PropType<import("../../badge").BadgeProps>;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
5
17
|
tag: {
|
|
6
18
|
type: StringConstructor;
|
|
7
19
|
default: undefined;
|
|
8
20
|
};
|
|
21
|
+
prefixAlign: {
|
|
22
|
+
type: import("vue").PropType<"start" | "center" | "end">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
suffixAlign: {
|
|
26
|
+
type: import("vue").PropType<"start" | "center" | "end">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
loadingPrefix: BooleanConstructor;
|
|
30
|
+
loadingSuffix: BooleanConstructor;
|
|
31
|
+
header: {
|
|
32
|
+
type: import("vue").PropType<HeaderPropObject>;
|
|
33
|
+
};
|
|
34
|
+
description: {
|
|
35
|
+
type: import("vue").PropType<DescriptionPropsObject>;
|
|
36
|
+
};
|
|
37
|
+
headerSide: {
|
|
38
|
+
type: import("vue").PropType<HeaderPropObject>;
|
|
39
|
+
};
|
|
40
|
+
descriptionSide: {
|
|
41
|
+
type: import("vue").PropType<DescriptionPropsObject>;
|
|
42
|
+
};
|
|
9
43
|
onClick: {
|
|
10
44
|
type: import("vue").PropType<ArrayMouseHandler | undefined>;
|
|
11
45
|
default: undefined;
|
|
@@ -34,24 +68,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
68
|
disabled: import("./interface").BooleanProp;
|
|
35
69
|
loading: import("./interface").BooleanProp;
|
|
36
70
|
loadingSkeleton: import("./interface").BooleanProp;
|
|
37
|
-
header: import("./interface").RenderableProp;
|
|
38
|
-
description: import("./interface").RenderableProp;
|
|
39
|
-
headerSide: import("./interface").RenderableProp;
|
|
40
|
-
descriptionSide: import("./interface").RenderableProp;
|
|
41
71
|
icon: import("./interface").RenderableProp;
|
|
42
|
-
avatar: import("./interface").RenderableProp;
|
|
43
72
|
}, {
|
|
44
73
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
45
|
-
|
|
46
|
-
mergedDescriptionFirst: ComputedRef<boolean | undefined>;
|
|
47
|
-
mergedColumnsEven: ComputedRef<boolean | undefined>;
|
|
48
|
-
mergedRounded: ComputedRef<boolean | undefined>;
|
|
74
|
+
mergedHoverable: ComputedRef<boolean | undefined>;
|
|
49
75
|
mergedDisabled: ComputedRef<boolean | undefined>;
|
|
50
76
|
mergedLoading: ComputedRef<boolean | undefined>;
|
|
51
|
-
|
|
52
|
-
|
|
77
|
+
mergedShowIcon: ComputedRef<boolean | undefined>;
|
|
78
|
+
mergedRounded: ComputedRef<boolean | undefined>;
|
|
53
79
|
mergedTag: ComputedRef<string | undefined>;
|
|
54
|
-
|
|
80
|
+
resolveSlot: (name: string) => Slot | null;
|
|
55
81
|
hasFocus: ComputedRef<boolean | undefined>;
|
|
56
82
|
isPressed: import("vue").Ref<boolean>;
|
|
57
83
|
handleClick: MouseEventHandler;
|
|
@@ -60,11 +86,45 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
86
|
handleFocus: (e: FocusEvent) => void;
|
|
61
87
|
bordered: import("vue").Ref<boolean>;
|
|
62
88
|
showDivider: import("vue").Ref<boolean>;
|
|
89
|
+
size: import("vue").Ref<Size>;
|
|
63
90
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
+
avatar: {
|
|
92
|
+
type: import("vue").PropType<import("../../avatar").AvatarProps & {
|
|
93
|
+
icon: Component;
|
|
94
|
+
hasBadge?: boolean;
|
|
95
|
+
}>;
|
|
96
|
+
default: () => {};
|
|
97
|
+
};
|
|
98
|
+
badge: {
|
|
99
|
+
type: import("vue").PropType<import("../../badge").BadgeProps>;
|
|
100
|
+
default: () => {};
|
|
101
|
+
};
|
|
64
102
|
tag: {
|
|
65
103
|
type: StringConstructor;
|
|
66
104
|
default: undefined;
|
|
67
105
|
};
|
|
106
|
+
prefixAlign: {
|
|
107
|
+
type: import("vue").PropType<"start" | "center" | "end">;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
suffixAlign: {
|
|
111
|
+
type: import("vue").PropType<"start" | "center" | "end">;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
loadingPrefix: BooleanConstructor;
|
|
115
|
+
loadingSuffix: BooleanConstructor;
|
|
116
|
+
header: {
|
|
117
|
+
type: import("vue").PropType<HeaderPropObject>;
|
|
118
|
+
};
|
|
119
|
+
description: {
|
|
120
|
+
type: import("vue").PropType<DescriptionPropsObject>;
|
|
121
|
+
};
|
|
122
|
+
headerSide: {
|
|
123
|
+
type: import("vue").PropType<HeaderPropObject>;
|
|
124
|
+
};
|
|
125
|
+
descriptionSide: {
|
|
126
|
+
type: import("vue").PropType<DescriptionPropsObject>;
|
|
127
|
+
};
|
|
68
128
|
onClick: {
|
|
69
129
|
type: import("vue").PropType<ArrayMouseHandler | undefined>;
|
|
70
130
|
default: undefined;
|
|
@@ -93,32 +153,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
93
153
|
disabled: import("./interface").BooleanProp;
|
|
94
154
|
loading: import("./interface").BooleanProp;
|
|
95
155
|
loadingSkeleton: import("./interface").BooleanProp;
|
|
96
|
-
header: import("./interface").RenderableProp;
|
|
97
|
-
description: import("./interface").RenderableProp;
|
|
98
|
-
headerSide: import("./interface").RenderableProp;
|
|
99
|
-
descriptionSide: import("./interface").RenderableProp;
|
|
100
156
|
icon: import("./interface").RenderableProp;
|
|
101
|
-
avatar: import("./interface").RenderableProp;
|
|
102
157
|
}>>, {
|
|
103
158
|
onFocus: ArrayFocusHandler | undefined;
|
|
104
159
|
onBlur: ArrayFocusHandler | undefined;
|
|
105
160
|
onKeypress: ArrayKeyboardHandler | undefined;
|
|
106
161
|
onClick: ArrayMouseHandler | undefined;
|
|
107
|
-
icon: RenderableType;
|
|
108
|
-
avatar:
|
|
162
|
+
icon: import("./interface").RenderableType;
|
|
163
|
+
avatar: import("../../avatar").AvatarProps & {
|
|
164
|
+
icon: Component;
|
|
165
|
+
hasBadge?: boolean;
|
|
166
|
+
};
|
|
109
167
|
disabled: boolean;
|
|
110
168
|
loading: boolean;
|
|
111
|
-
description: RenderableType;
|
|
112
169
|
tag: string;
|
|
113
170
|
showIcon: boolean;
|
|
114
|
-
|
|
171
|
+
badge: import("../../badge").BadgeProps;
|
|
115
172
|
loadingSkeleton: boolean;
|
|
116
173
|
rounded: boolean;
|
|
117
174
|
hoverable: boolean;
|
|
118
175
|
descriptionFirst: boolean;
|
|
119
176
|
columnsEven: boolean;
|
|
120
|
-
headerSide: RenderableType;
|
|
121
|
-
descriptionSide: RenderableType;
|
|
122
177
|
onPress: ArrayEmptyHandler | undefined;
|
|
178
|
+
prefixAlign: "center" | "end" | "start";
|
|
179
|
+
suffixAlign: "center" | "end" | "start";
|
|
180
|
+
loadingPrefix: boolean;
|
|
181
|
+
loadingSuffix: boolean;
|
|
123
182
|
}, {}>;
|
|
124
183
|
export default _default;
|