vue-color-ui 0.0.5 → 0.0.6

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 (53) hide show
  1. package/package.json +4 -3
  2. package/type/Menu.d.ts +22 -0
  3. package/type/chat.d.ts +31 -0
  4. package/type/color.d.ts +26 -0
  5. package/type/grid.d.ts +8 -0
  6. package/type/icon.d.ts +297 -0
  7. package/type/index.d.ts +32 -0
  8. package/type/timeline.d.ts +19 -0
  9. package/types/pkg/GridGroup/index copy.vue.d.ts +0 -30
  10. /package/{types → type}/pkg/Base/Avatar.vue.d.ts +0 -0
  11. /package/{types → type}/pkg/Base/AvatarGroup.vue.d.ts +0 -0
  12. /package/{types → type}/pkg/Base/Button.vue.d.ts +0 -0
  13. /package/{types → type}/pkg/Base/Icon.vue.d.ts +0 -0
  14. /package/{types → type}/pkg/Base/Tag.vue.d.ts +0 -0
  15. /package/{types → type}/pkg/Base/Title.vue.d.ts +0 -0
  16. /package/{types → type}/pkg/Base/index.d.ts +0 -0
  17. /package/{types → type}/pkg/ChatList/ChatListItem.vue.d.ts +0 -0
  18. /package/{types → type}/pkg/ChatList/index.d.ts +0 -0
  19. /package/{types → type}/pkg/ChatList/index.vue.d.ts +0 -0
  20. /package/{types → type}/pkg/ChatRoom/index.d.ts +0 -0
  21. /package/{types → type}/pkg/ChatRoom/index.vue.d.ts +0 -0
  22. /package/{types → type}/pkg/GridGroup/index.d.ts +0 -0
  23. /package/{types → type}/pkg/GridGroup/index.vue.d.ts +0 -0
  24. /package/{types → type}/pkg/InputBar/index.d.ts +0 -0
  25. /package/{types → type}/pkg/InputBar/index.vue.d.ts +0 -0
  26. /package/{types → type}/pkg/Menu/index.d.ts +0 -0
  27. /package/{types → type}/pkg/Menu/index.vue.d.ts +0 -0
  28. /package/{types → type}/pkg/NavBar/index.d.ts +0 -0
  29. /package/{types → type}/pkg/NavBar/index.vue.d.ts +0 -0
  30. /package/{types → type}/pkg/NavCard/index.d.ts +0 -0
  31. /package/{types → type}/pkg/NavCard/index.vue.d.ts +0 -0
  32. /package/{types → type}/pkg/NewCard/index.d.ts +0 -0
  33. /package/{types → type}/pkg/NewCard/index.vue.d.ts +0 -0
  34. /package/{types → type}/pkg/SearchBar/index.d.ts +0 -0
  35. /package/{types → type}/pkg/SearchBar/index.vue.d.ts +0 -0
  36. /package/{types → type}/pkg/ShareCard/index.d.ts +0 -0
  37. /package/{types → type}/pkg/ShareCard/index.vue.d.ts +0 -0
  38. /package/{types → type}/pkg/Steps/index.d.ts +0 -0
  39. /package/{types → type}/pkg/Steps/index.vue.d.ts +0 -0
  40. /package/{types → type}/pkg/Tab/TTab.vue.d.ts +0 -0
  41. /package/{types → type}/pkg/Tab/index.d.ts +0 -0
  42. /package/{types → type}/pkg/Tab/index.vue.d.ts +0 -0
  43. /package/{types → type}/pkg/TimeLine/index.d.ts +0 -0
  44. /package/{types → type}/pkg/TimeLine/index.vue.d.ts +0 -0
  45. /package/{types → type}/pkg/TopBar/index.d.ts +0 -0
  46. /package/{types → type}/pkg/TopBar/index.vue.d.ts +0 -0
  47. /package/{types → type}/pkg/index.d.ts +0 -0
  48. /package/{types → type}/pkg/modal/index.d.ts +0 -0
  49. /package/{types → type}/pkg/modal/index.vue.d.ts +0 -0
  50. /package/{types → type}/src/App.vue.d.ts +0 -0
  51. /package/{types → type}/src/components/HelloWorld.vue.d.ts +0 -0
  52. /package/{types → type}/src/main.d.ts +0 -0
  53. /package/{types → type}/utils/size.d.ts +0 -0
package/package.json CHANGED
@@ -2,12 +2,12 @@
2
2
  "name": "vue-color-ui",
3
3
  "description": "ColorUI 临时代替的版本",
4
4
  "private": false,
5
- "version": "0.0.5",
5
+ "version": "0.0.6",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
- "build": "vue-tsc --declaration --emitDeclarationOnly --outDir types && vite build",
10
+ "build": "vue-tsc --declaration --emitDeclarationOnly --outDir type && vite build",
11
11
  "preview": "vite preview",
12
12
  "rele": "npm run build && npm version patch && npm publish",
13
13
  "push": "git add . && read -p '请输入本次更新: \n' msg && git commit -m \"$msg\" && git push -u origin master"
@@ -24,12 +24,13 @@
24
24
  },
25
25
  "files": [
26
26
  "lib/*",
27
- "types/*",
27
+ "type/*",
28
28
  "Readme.md",
29
29
  "package.json"
30
30
  ],
31
31
  "main": "./lib/temp-color-ui.umd.cjs",
32
32
  "module": "./lib/temp-color-ui.js",
33
+ "types": "./type/index.d.ts",
33
34
  "exports": {
34
35
  ".": {
35
36
  "import": "./lib/temp-color-ui.js",
package/type/Menu.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ interface MenuItem {
2
+ title: string;
3
+ icon?: { name: IconName; color?: ColorName };
4
+ img?: {
5
+ url: string;
6
+ alt?: string;
7
+ };
8
+ group?: string[];
9
+ btn?: {
10
+ text: string;
11
+ bg?: BgColorName;
12
+ icon?: IconName;
13
+ event?: Function;
14
+ };
15
+ tags?: {
16
+ text: string;
17
+ bg?: BgColorName;
18
+ light?: boolean;
19
+ size?: SizeEnum;
20
+ }[];
21
+ text?: string;
22
+ }
package/type/chat.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ interface ChatListItemOption {
2
+ userinfo: {
3
+ avatar: string;
4
+ avatarShape?: string;
5
+ name: string;
6
+ tag?: string;
7
+ tagColor?: string;
8
+ time: string;
9
+ };
10
+ unread?: string | number;
11
+ unreadColor?: string;
12
+ badge?: string;
13
+ icon?: string;
14
+ iconClass?: string;
15
+ isDisconnected?: boolean;
16
+ isCurrent?: boolean;
17
+ content?: string;
18
+ }
19
+
20
+ interface ChatListProps {
21
+ items: ChatListItemOption[];
22
+ }
23
+
24
+ interface ChatMessage {
25
+ id: number;
26
+ type: "text" | "image" | "audio" | "location" | "info"; // 'text'| 'image'| 'audio'| 'location'| 'info'
27
+ content: string;
28
+ date: string;
29
+ self: boolean;
30
+ avatar: string;
31
+ }
@@ -0,0 +1,26 @@
1
+ type ColorName =
2
+ | "red"
3
+ | "orange"
4
+ | "yellow"
5
+ | "olive"
6
+ | "green"
7
+ | "cyan"
8
+ | "blue"
9
+ | "purple"
10
+ | "mauve"
11
+ | "pink"
12
+ | "brown"
13
+ | "grey"
14
+ | "gray"
15
+ | "black"
16
+ | "white";
17
+
18
+ type GradientColorName =
19
+ | "gradual-red"
20
+ | "gradual-orange"
21
+ | "gradual-green"
22
+ | "gradual-purple"
23
+ | "gradual-pink"
24
+ | "gradual-blue";
25
+
26
+ type BgColorName = ColorName | GradientColorName;
package/type/grid.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ interface GridGroupItem {
2
+ cuIcon: string;
3
+ color?: string;
4
+ badge?: number;
5
+ name: string;
6
+ path?: string;
7
+ link?: string;
8
+ }
package/type/icon.d.ts ADDED
@@ -0,0 +1,297 @@
1
+ type IconName =
2
+ | "appreciate"
3
+ | "check"
4
+ | "close"
5
+ | "edit"
6
+ | "emoji"
7
+ | "favorfill"
8
+ | "favor"
9
+ | "loading"
10
+ | "locationfill"
11
+ | "location"
12
+ | "phone"
13
+ | "roundcheckfill"
14
+ | "roundcheck"
15
+ | "roundclosefill"
16
+ | "roundclose"
17
+ | "roundrightfill"
18
+ | "roundright"
19
+ | "search"
20
+ | "taxi"
21
+ | "timefill"
22
+ | "time"
23
+ | "unfold"
24
+ | "warnfill"
25
+ | "warn"
26
+ | "camerafill"
27
+ | "camera"
28
+ | "commentfill"
29
+ | "comment"
30
+ | "likefill"
31
+ | "like"
32
+ | "notificationfill"
33
+ | "notification"
34
+ | "order"
35
+ | "samefill"
36
+ | "same"
37
+ | "deliver"
38
+ | "evaluate"
39
+ | "pay"
40
+ | "send"
41
+ | "shop"
42
+ | "ticket"
43
+ | "back"
44
+ | "cascades"
45
+ | "discover"
46
+ | "list"
47
+ | "more"
48
+ | "scan"
49
+ | "settings"
50
+ | "questionfill"
51
+ | "question"
52
+ | "shopfill"
53
+ | "form"
54
+ | "pic"
55
+ | "filter"
56
+ | "footprint"
57
+ | "top"
58
+ | "pulldown"
59
+ | "pullup"
60
+ | "right"
61
+ | "refresh"
62
+ | "moreandroid"
63
+ | "deletefill"
64
+ | "refund"
65
+ | "cart"
66
+ | "qrcode"
67
+ | "remind"
68
+ | "delete"
69
+ | "profile"
70
+ | "home"
71
+ | "cartfill"
72
+ | "discoverfill"
73
+ | "homefill"
74
+ | "message"
75
+ | "addressbook"
76
+ | "link"
77
+ | "lock"
78
+ | "unlock"
79
+ | "vip"
80
+ | "weibo"
81
+ | "activity"
82
+ | "friendaddfill"
83
+ | "friendadd"
84
+ | "friendfamous"
85
+ | "friend"
86
+ | "goods"
87
+ | "selection"
88
+ | "explore"
89
+ | "present"
90
+ | "squarecheckfill"
91
+ | "square"
92
+ | "squarecheck"
93
+ | "round"
94
+ | "roundaddfill"
95
+ | "roundadd"
96
+ | "add"
97
+ | "notificationforbidfill"
98
+ | "explorefill"
99
+ | "fold"
100
+ | "game"
101
+ | "redpacket"
102
+ | "selectionfill"
103
+ | "similar"
104
+ | "appreciatefill"
105
+ | "infofill"
106
+ | "info"
107
+ | "forwardfill"
108
+ | "forward"
109
+ | "rechargefill"
110
+ | "recharge"
111
+ | "vipcard"
112
+ | "voice"
113
+ | "voicefill"
114
+ | "friendfavor"
115
+ | "wifi"
116
+ | "share"
117
+ | "wefill"
118
+ | "we"
119
+ | "lightauto"
120
+ | "lightforbid"
121
+ | "lightfill"
122
+ | "camerarotate"
123
+ | "light"
124
+ | "barcode"
125
+ | "flashlightclose"
126
+ | "flashlightopen"
127
+ | "searchlist"
128
+ | "service"
129
+ | "sort"
130
+ | "down"
131
+ | "mobile"
132
+ | "mobilefill"
133
+ | "copy"
134
+ | "countdownfill"
135
+ | "countdown"
136
+ | "noticefill"
137
+ | "notice"
138
+ | "upstagefill"
139
+ | "upstage"
140
+ | "babyfill"
141
+ | "baby"
142
+ | "brandfill"
143
+ | "brand"
144
+ | "choicenessfill"
145
+ | "choiceness"
146
+ | "clothesfill"
147
+ | "clothes"
148
+ | "creativefill"
149
+ | "creative"
150
+ | "female"
151
+ | "keyboard"
152
+ | "male"
153
+ | "newfill"
154
+ | "new"
155
+ | "pullleft"
156
+ | "pullright"
157
+ | "rankfill"
158
+ | "rank"
159
+ | "bad"
160
+ | "cameraadd"
161
+ | "focus"
162
+ | "friendfill"
163
+ | "cameraaddfill"
164
+ | "apps"
165
+ | "paintfill"
166
+ | "paint"
167
+ | "picfill"
168
+ | "refresharrow"
169
+ | "colorlens"
170
+ | "markfill"
171
+ | "mark"
172
+ | "presentfill"
173
+ | "repeal"
174
+ | "album"
175
+ | "peoplefill"
176
+ | "people"
177
+ | "servicefill"
178
+ | "repair"
179
+ | "file"
180
+ | "repairfill"
181
+ | "taoxiaopu"
182
+ | "weixin"
183
+ | "attentionfill"
184
+ | "attention"
185
+ | "commandfill"
186
+ | "command"
187
+ | "communityfill"
188
+ | "community"
189
+ | "read"
190
+ | "calendar"
191
+ | "cut"
192
+ | "magic"
193
+ | "backwardfill"
194
+ | "playfill"
195
+ | "stop"
196
+ | "tagfill"
197
+ | "tag"
198
+ | "group"
199
+ | "all"
200
+ | "backdelete"
201
+ | "hotfill"
202
+ | "hot"
203
+ | "post"
204
+ | "radiobox"
205
+ | "rounddown"
206
+ | "upload"
207
+ | "writefill"
208
+ | "write"
209
+ | "radioboxfill"
210
+ | "punch"
211
+ | "shake"
212
+ | "move"
213
+ | "safe"
214
+ | "activityfill"
215
+ | "crownfill"
216
+ | "crown"
217
+ | "goodsfill"
218
+ | "messagefill"
219
+ | "profilefill"
220
+ | "sound"
221
+ | "sponsorfill"
222
+ | "sponsor"
223
+ | "upblock"
224
+ | "weblock"
225
+ | "weunblock"
226
+ | "my"
227
+ | "myfill"
228
+ | "emojifill"
229
+ | "emojiflashfill"
230
+ | "flashbuyfill"
231
+ | "text"
232
+ | "goodsfavor"
233
+ | "musicfill"
234
+ | "musicforbidfill"
235
+ | "card"
236
+ | "triangledownfill"
237
+ | "triangleupfill"
238
+ | "roundleftfill-copy"
239
+ | "font"
240
+ | "title"
241
+ | "recordfill"
242
+ | "record"
243
+ | "cardboardfill"
244
+ | "cardboard"
245
+ | "formfill"
246
+ | "coin"
247
+ | "cardboardforbid"
248
+ | "circlefill"
249
+ | "circle"
250
+ | "attentionforbid"
251
+ | "attentionforbidfill"
252
+ | "attentionfavorfill"
253
+ | "attentionfavor"
254
+ | "titles"
255
+ | "icloading"
256
+ | "full"
257
+ | "mail"
258
+ | "peoplelist"
259
+ | "goodsnewfill"
260
+ | "goodsnew"
261
+ | "medalfill"
262
+ | "medal"
263
+ | "newsfill"
264
+ | "newshotfill"
265
+ | "newshot"
266
+ | "news"
267
+ | "videofill"
268
+ | "video"
269
+ | "exit"
270
+ | "skinfill"
271
+ | "skin"
272
+ | "moneybagfill"
273
+ | "usefullfill"
274
+ | "usefull"
275
+ | "moneybag"
276
+ | "redpacket_fill"
277
+ | "subscription"
278
+ | "loading1"
279
+ | "github"
280
+ | "global"
281
+ | "settingsfill"
282
+ | "back_android"
283
+ | "expressman"
284
+ | "evaluate_fill"
285
+ | "group_fill"
286
+ | "play_forward_fill"
287
+ | "deliver_fill"
288
+ | "notice_forbid_fill"
289
+ | "fork"
290
+ | "pick"
291
+ | "wenzi"
292
+ | "ellipse"
293
+ | "qr_code"
294
+ | "dianhua"
295
+ | "cuIcon"
296
+ | "loading2"
297
+ | "btn";
@@ -0,0 +1,32 @@
1
+ type SizeType =
2
+ | number
3
+ | "ssss"
4
+ | "sss"
5
+ | "ss"
6
+ | "s"
7
+ | "m"
8
+ | "l"
9
+ | "x"
10
+ | "xl"
11
+ | "xxl"
12
+ | "xxxl";
13
+
14
+ type SizeEnum = "sm" | "lg" | "xl";
15
+ interface NavBarItem {
16
+ label: string;
17
+ img?: string;
18
+ icon?: IconName;
19
+ active?: boolean;
20
+ badge?: string | number;
21
+ }
22
+
23
+ interface TabItem {
24
+ label: string;
25
+ icon?: IconName;
26
+ iconColor?: ColorName;
27
+ }
28
+
29
+ interface Step {
30
+ cuIcon?: string;
31
+ name: string;
32
+ }
@@ -0,0 +1,19 @@
1
+ interface Capsule {
2
+ list: string[];
3
+ color?: string;
4
+ }
5
+ type Status = "past" | "ongoing" | "upcoming";
6
+
7
+ interface TimelineItem {
8
+ key: string;
9
+ capsule?: Capsule;
10
+ icon?: string;
11
+ bg?: BgColorName;
12
+ content: string | any;
13
+ status?: Status;
14
+ }
15
+
16
+ interface TimelineGroup {
17
+ date: string;
18
+ items: TimelineItem[];
19
+ }
@@ -1,30 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {
2
- cuIconList: {
3
- cuIcon: string;
4
- color: string;
5
- badge: number;
6
- name: string;
7
- }[];
8
- modalName: null;
9
- gridCol: number;
10
- gridBorder: boolean;
11
- menuBorder: boolean;
12
- menuArrow: boolean;
13
- menuCard: boolean;
14
- skin: boolean;
15
- listTouchStart: number;
16
- listTouchDirection: null;
17
- }, {}, {
18
- showModal(e: any): void;
19
- hideModal(e: any): void;
20
- Gridchange(e: any): void;
21
- Gridswitch(e: any): void;
22
- MenuBorder(e: any): void;
23
- MenuArrow(e: any): void;
24
- MenuCard(e: any): void;
25
- SwitchSex(e: any): void;
26
- ListTouchStart(e: any): void;
27
- ListTouchMove(e: any): void;
28
- ListTouchEnd(e: any): void;
29
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
30
- export default _default;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes