@huyooo/ui 0.4.67 → 0.4.69

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.
@@ -0,0 +1,263 @@
1
+ import { defineComponent as f, createElementBlock as t, openBlock as n, createElementVNode as a, createCommentVNode as d, toDisplayString as _, computed as y, normalizeStyle as b, ref as C, onMounted as L, onUnmounted as H, Fragment as x, renderList as I, normalizeClass as h, renderSlot as E } from "vue";
2
+ import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const W = {
4
+ class: "ContentHead"
5
+ }, G = {
6
+ class: "title"
7
+ }, B = {
8
+ key: 0,
9
+ class: "description"
10
+ }, K = /* @__PURE__ */ f({
11
+ __name: "ContentHead",
12
+ props: {
13
+ title: {
14
+ type: String,
15
+ required: !0,
16
+ default: () => ""
17
+ },
18
+ description: {
19
+ type: String,
20
+ required: !0,
21
+ default: () => ""
22
+ }
23
+ },
24
+ setup(s) {
25
+ const e = s;
26
+ return (i, r) => (n(), t("div", W, [a("h1", G, _(e.title), 1), e.description ? (n(), t("p", B, _(e.description), 1)) : d("", !0)]));
27
+ }
28
+ }), ne = /* @__PURE__ */ p(K, [["__scopeId", "data-v-209a7bef"]]), N = /* @__PURE__ */ f({
29
+ __name: "Gradientbackground",
30
+ props: {
31
+ width: {
32
+ type: String,
33
+ default: "100%"
34
+ },
35
+ height: {
36
+ type: String,
37
+ default: "100%"
38
+ },
39
+ zIndex: {
40
+ type: String,
41
+ default: "-1"
42
+ },
43
+ top: {
44
+ type: String,
45
+ default: "10%"
46
+ },
47
+ left: {
48
+ type: String,
49
+ default: "0%"
50
+ },
51
+ right: {
52
+ type: String,
53
+ default: "auto"
54
+ },
55
+ blur: {
56
+ type: String,
57
+ default: "0px"
58
+ },
59
+ background: {
60
+ type: String,
61
+ required: !1,
62
+ default: () => "linear-gradient(180deg, rgb(0 225 10 / 10%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)"
63
+ }
64
+ },
65
+ setup(s) {
66
+ const e = s, i = y(() => ({
67
+ pointerEvents: "none",
68
+ position: "absolute",
69
+ zIndex: e.zIndex,
70
+ width: e.width,
71
+ height: e.height,
72
+ filter: `blur(${e.blur})`
73
+ })), r = y(() => ({
74
+ width: "100%",
75
+ height: "100%",
76
+ background: e.background
77
+ // background: `linear-gradient(180deg, #D5D1FF 0.31%, #EAEDFF 74.99%, rgba(240, 246, 255, 0) 99.69%)`,
78
+ // background: `linear-gradient(180deg, rgb(0 225 10 / 63%) 0.31%, rgb(26 214 255 / 52%) 74.99%, rgb(220 189 0 / 0%) 99.69%)`,
79
+ // background: `linear-gradient(315deg, rgb(0 225 10 / 63%) 10%, rgb(26 214 255 / 52%) 50%, rgb(220 189 0 / 37%) 100%)`,
80
+ }));
81
+ return (o, c) => (n(), t("div", {
82
+ class: "ellipsis",
83
+ style: b(i.value)
84
+ }, [a("div", {
85
+ class: "ellipsis-item",
86
+ style: b(r.value)
87
+ }, null, 4)], 4));
88
+ }
89
+ }), se = /* @__PURE__ */ p(N, [["__scopeId", "data-v-b6461ac4"]]), V = {
90
+ class: "HeaderMenus"
91
+ }, A = {
92
+ key: 0,
93
+ class: "desktop-menus"
94
+ }, D = ["onClick"], F = {
95
+ key: 3,
96
+ class: "mobile-menu"
97
+ }, O = {
98
+ class: "mobile-menu-content"
99
+ }, R = ["onClick"], U = /* @__PURE__ */ f({
100
+ __name: "HeaderMenus",
101
+ props: {
102
+ menus: {
103
+ type: Array,
104
+ required: !0
105
+ },
106
+ activateKey: {
107
+ type: String,
108
+ required: !0
109
+ }
110
+ },
111
+ emits: ["change"],
112
+ setup(s, {
113
+ emit: e
114
+ }) {
115
+ const i = s, r = e, o = C(!1), c = C(!1);
116
+ function g() {
117
+ c.value = window.innerWidth <= 1024;
118
+ }
119
+ function M() {
120
+ o.value = !o.value;
121
+ }
122
+ function m() {
123
+ o.value = !1;
124
+ }
125
+ function q(u) {
126
+ r("change", u), m();
127
+ }
128
+ function S(u) {
129
+ return i.activateKey === u.path;
130
+ }
131
+ function z(u) {
132
+ r("change", u);
133
+ }
134
+ function k() {
135
+ g(), c.value || m();
136
+ }
137
+ return L(() => {
138
+ g(), window.addEventListener("resize", k);
139
+ }), H(() => {
140
+ window.removeEventListener("resize", k);
141
+ }), (u, $) => (n(), t("div", V, [c.value ? d("", !0) : (n(), t("div", A, [(n(!0), t(x, null, I(i.menus, (l, v) => (n(), t("div", {
142
+ key: v,
143
+ class: h(["headerLink", {
144
+ activate: S(l)
145
+ }]),
146
+ onClick: (w) => z(l)
147
+ }, _(l.name), 11, D))), 128))])), c.value ? (n(), t("button", {
148
+ key: 1,
149
+ class: h(["mobile-menu-toggle", {
150
+ active: o.value
151
+ }]),
152
+ "aria-label": "切换菜单",
153
+ onClick: M
154
+ }, $[0] || ($[0] = [a("span", {
155
+ class: "hamburger-line"
156
+ }, null, -1), a("span", {
157
+ class: "hamburger-line"
158
+ }, null, -1), a("span", {
159
+ class: "hamburger-line"
160
+ }, null, -1)]), 2)) : d("", !0), o.value ? (n(), t("div", {
161
+ key: 2,
162
+ class: "mobile-menu-overlay",
163
+ onClick: m
164
+ })) : d("", !0), o.value ? (n(), t("div", F, [a("div", O, [(n(!0), t(x, null, I(i.menus, (l, v) => (n(), t("div", {
165
+ key: v,
166
+ class: h(["mobile-menu-item", {
167
+ activate: S(l)
168
+ }]),
169
+ onClick: (w) => q(l)
170
+ }, _(l.name), 11, R))), 128))])])) : d("", !0)]));
171
+ }
172
+ }), ie = /* @__PURE__ */ p(U, [["__scopeId", "data-v-67bf8ea1"]]), j = ["src"], J = /* @__PURE__ */ f({
173
+ __name: "Logo",
174
+ props: {
175
+ name: {
176
+ type: String,
177
+ required: !1,
178
+ default: () => "#2d2d2d"
179
+ },
180
+ icon: {
181
+ type: String,
182
+ required: !1,
183
+ default: () => ""
184
+ },
185
+ color: {
186
+ type: String,
187
+ required: !1,
188
+ default: () => "#2d2d2d"
189
+ },
190
+ fontSize: {
191
+ type: String,
192
+ required: !1,
193
+ default: () => "16px"
194
+ }
195
+ },
196
+ emits: ["to"],
197
+ setup(s, {
198
+ emit: e
199
+ }) {
200
+ const i = s, r = e;
201
+ function o() {
202
+ r("to");
203
+ }
204
+ return (c, g) => (n(), t("div", {
205
+ class: "Logo",
206
+ onClick: o
207
+ }, [s.icon ? (n(), t("img", {
208
+ key: 0,
209
+ class: "icon",
210
+ src: s.icon,
211
+ alt: "logo",
212
+ loading: "lazy",
213
+ decoding: "async"
214
+ }, null, 8, j)) : d("", !0), a("div", {
215
+ class: "text",
216
+ style: b({
217
+ color: i.color,
218
+ fontSize: i.fontSize
219
+ })
220
+ }, _(s.name), 5)]));
221
+ }
222
+ }), oe = /* @__PURE__ */ p(J, [["__scopeId", "data-v-694a3ecc"]]), P = {
223
+ class: "SvgIcon"
224
+ }, Q = ["href", "fill"], T = /* @__PURE__ */ f({
225
+ __name: "SvgIcon",
226
+ props: {
227
+ prefix: {
228
+ type: String,
229
+ required: !1,
230
+ default: "icon"
231
+ },
232
+ name: {
233
+ type: String,
234
+ required: !0
235
+ },
236
+ color: {
237
+ type: String,
238
+ required: !1,
239
+ default: "#333"
240
+ }
241
+ },
242
+ setup(s) {
243
+ const e = s, i = y(() => `#${e.prefix ?? "icon"}-${e.name}`);
244
+ return (r, o) => (n(), t("svg", P, [a("use", {
245
+ href: i.value,
246
+ fill: e.color
247
+ }, null, 8, Q)]));
248
+ }
249
+ }), re = /* @__PURE__ */ p(T, [["__scopeId", "data-v-0a9de94e"]]), X = {}, Y = {
250
+ class: "WidthContainer"
251
+ };
252
+ function Z(s, e) {
253
+ return n(), t("div", Y, [E(s.$slots, "default", {}, void 0, !0)]);
254
+ }
255
+ const ae = /* @__PURE__ */ p(X, [["render", Z], ["__scopeId", "data-v-d06aac1f"]]);
256
+ export {
257
+ ne as C,
258
+ se as G,
259
+ ie as H,
260
+ oe as L,
261
+ re as S,
262
+ ae as W
263
+ };
package/dist/authkit.d.ts CHANGED
@@ -28,4 +28,3 @@ export { useAuthkitAuthModal } from './composables/Authkit/useAuthkitAuthModal';
28
28
  export { useAuthkitUsersProfile } from './composables/Authkit/useAuthkitUsersProfile';
29
29
  export { useAuthkitCreateAndUpdate } from './composables/Authkit/useAuthkitCreateAndUpdate';
30
30
  export type * from './types/auth';
31
- export type * from './types/users';
package/dist/authkit.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { b as a, A as s, a as u, c as A, n as h, E as e, k as r, l as k, _ as o, O as n, f as d, o as p, P as f, j as m, R as P, S, i as g, m as l, d as U, e as w, g as c, h as x } from "./AuthkitAppSetting-CX3_9Jcg.js";
2
- import { A as y, a as E } from "./AuthkitAuthorize-B3WS5eGX.js";
2
+ import { A as y, a as E } from "./AuthkitAuthorize-CA0jmnjq.js";
3
3
  import { U as C, u as R } from "./useAuthkitAuthModal-hxivJw_U.js";
4
4
  import { u as b, a as v } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
5
5
  import { u as M } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
package/dist/common.d.ts CHANGED
@@ -4,7 +4,9 @@ export { default as ContentHead } from './components/ContentHead.vue';
4
4
  export { default as CustomTable } from './components/CustomTable.vue';
5
5
  export { default as Ellipsis } from './components/Ellipsis.vue';
6
6
  export { default as Gradientbackground } from './components/Gradientbackground.vue';
7
+ export { default as HeaderMenus } from './components/HeaderMenus.vue';
7
8
  export { default as InfiniteLoading } from './components/InfiniteLoading.vue';
9
+ export { default as Logo } from './components/Logo.vue';
8
10
  export { default as Menu } from './components/Menu.vue';
9
11
  export { default as MenuItem } from './components/MenuItem.vue';
10
12
  export { default as SvgIcon } from './components/SvgIcon.vue';
package/dist/common.js CHANGED
@@ -1,40 +1,42 @@
1
1
  import { C as s, a as e } from "./CollapseItem-Cw1vcdLu.js";
2
- import { C as t, G as n, S as p, W as m } from "./WidthContainer-D795bWdT.js";
3
- import { C as i, E as l } from "./CustomTable-JflAYS8i.js";
4
- import { I as x } from "./MessageHandle-BelPivb3.js";
5
- import { M as d, a as b } from "./Menu-Cxo8Rpu3.js";
6
- import { S as U, b as g, c as I, a as S, U as v } from "./UserPanel-CaaTu1mu.js";
2
+ import { C as t, G as n, H as p, L as m, S as f, W as i } from "./WidthContainer-CfR77puD.js";
3
+ import { C as u, E as x } from "./CustomTable-JflAYS8i.js";
4
+ import { I as d } from "./MessageHandle-BelPivb3.js";
5
+ import { M as c, a as g } from "./Menu-Cxo8Rpu3.js";
6
+ import { S as I, b as S, c as H, a as M, U as v } from "./UserPanel-CaaTu1mu.js";
7
7
  import { S as B } from "./PaySubscriptions-BRWvLeed.js";
8
- import { R as M } from "./ReferrerReferees-BVj9o5kG.js";
9
- import { _ as H } from "./Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js";
10
- import { g as T, s as W } from "./globalConfig-DZIhLe1R.js";
11
- import { a as k, u as D } from "./useActiveDoc-BWHkOJhJ.js";
12
- import { u as P } from "./useTableHandle-DKUIdSSh.js";
13
- import { u as j } from "./useUploadCos-B5P_PDcy.js";
8
+ import { R as L } from "./ReferrerReferees-BVj9o5kG.js";
9
+ import { _ as R } from "./Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js";
10
+ import { g as W, s as h } from "./globalConfig-DZIhLe1R.js";
11
+ import { a as D, u as P } from "./useActiveDoc-BWHkOJhJ.js";
12
+ import { u as j } from "./useTableHandle-DKUIdSSh.js";
13
+ import { u as w } from "./useUploadCos-B5P_PDcy.js";
14
14
  export {
15
15
  s as Collapse,
16
16
  e as CollapseItem,
17
17
  t as ContentHead,
18
- i as CustomTable,
19
- l as Ellipsis,
18
+ u as CustomTable,
19
+ x as Ellipsis,
20
20
  n as Gradientbackground,
21
- x as InfiniteLoading,
22
- d as Menu,
23
- b as MenuItem,
24
- M as Referees,
25
- U as SubscriptionBaseInformation,
21
+ p as HeaderMenus,
22
+ d as InfiniteLoading,
23
+ m as Logo,
24
+ c as Menu,
25
+ g as MenuItem,
26
+ L as Referees,
27
+ I as SubscriptionBaseInformation,
26
28
  B as Subscriptions,
27
- p as SvgIcon,
28
- H as Upload,
29
- g as UserAvatar,
30
- I as UserBasicInformation,
31
- S as UserButton,
29
+ f as SvgIcon,
30
+ R as Upload,
31
+ S as UserAvatar,
32
+ H as UserBasicInformation,
33
+ M as UserButton,
32
34
  v as UserPanel,
33
- m as WidthContainer,
34
- T as globalConfig,
35
- W as setGlobalConfig,
36
- k as useActiveDoc,
37
- D as useCommonCreateAndUpdate,
38
- P as useTableHandle,
39
- j as useUploadCos
35
+ i as WidthContainer,
36
+ W as globalConfig,
37
+ h as setGlobalConfig,
38
+ D as useActiveDoc,
39
+ P as useCommonCreateAndUpdate,
40
+ j as useTableHandle,
41
+ w as useUploadCos
40
42
  };
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { FormSizeType } from '../../../types/auth';
3
- import { UsersResponseType } from '../../../types/users';
3
+ import { UserResponseType } from '../../../types/user';
4
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
5
  size: {
6
6
  type: PropType<FormSizeType>;
@@ -42,7 +42,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
42
  default: () => string;
43
43
  };
44
44
  userInfo: {
45
- type: PropType<UsersResponseType>;
45
+ type: PropType<UserResponseType>;
46
46
  required: true;
47
47
  default: () => string;
48
48
  };
@@ -87,7 +87,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
87
87
  default: () => string;
88
88
  };
89
89
  userInfo: {
90
- type: PropType<UsersResponseType>;
90
+ type: PropType<UserResponseType>;
91
91
  required: true;
92
92
  default: () => string;
93
93
  };
@@ -99,6 +99,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
99
99
  clientId: string;
100
100
  responseType: string;
101
101
  scope: string;
102
- userInfo: UsersResponseType;
102
+ userInfo: UserResponseType;
103
103
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
104
104
  export default _default;
@@ -0,0 +1,30 @@
1
+ import { PropType } from 'vue';
2
+ interface MenuType {
3
+ name: string;
4
+ path: string;
5
+ icon: string;
6
+ }
7
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ menus: {
9
+ type: PropType<MenuType[]>;
10
+ required: true;
11
+ };
12
+ activateKey: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ change: (...args: any[]) => void;
18
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ menus: {
20
+ type: PropType<MenuType[]>;
21
+ required: true;
22
+ };
23
+ activateKey: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ }>> & Readonly<{
28
+ onChange?: ((...args: any[]) => any) | undefined;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
30
+ export default _default;
@@ -0,0 +1,21 @@
1
+ interface Props {
2
+ title: string;
3
+ subtitle: string;
4
+ icon: string;
5
+ iconAlt?: string;
6
+ iconWidth?: number;
7
+ iconHeight?: number;
8
+ dashline: string;
9
+ dashlineAlt?: string;
10
+ dashlineWidth?: number;
11
+ dashlineHeight?: number;
12
+ }
13
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
14
+ iconAlt: string;
15
+ iconWidth: number;
16
+ iconHeight: number;
17
+ dashlineAlt: string;
18
+ dashlineWidth: number;
19
+ dashlineHeight: number;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ export default _default;
@@ -0,0 +1,53 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ name: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ default: () => string;
6
+ };
7
+ icon: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ default: () => string;
11
+ };
12
+ color: {
13
+ type: StringConstructor;
14
+ required: false;
15
+ default: () => string;
16
+ };
17
+ fontSize: {
18
+ type: StringConstructor;
19
+ required: false;
20
+ default: () => string;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ to: (...args: any[]) => void;
24
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
+ name: {
26
+ type: StringConstructor;
27
+ required: false;
28
+ default: () => string;
29
+ };
30
+ icon: {
31
+ type: StringConstructor;
32
+ required: false;
33
+ default: () => string;
34
+ };
35
+ color: {
36
+ type: StringConstructor;
37
+ required: false;
38
+ default: () => string;
39
+ };
40
+ fontSize: {
41
+ type: StringConstructor;
42
+ required: false;
43
+ default: () => string;
44
+ };
45
+ }>> & Readonly<{
46
+ onTo?: ((...args: any[]) => any) | undefined;
47
+ }>, {
48
+ name: string;
49
+ icon: string;
50
+ color: string;
51
+ fontSize: string;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
53
+ export default _default;
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
17
  default: string;
18
18
  };
19
19
  }>> & Readonly<{}>, {
20
- avatar: string;
21
20
  nickname: string;
21
+ avatar: string;
22
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
23
23
  export default _default;
@@ -35,7 +35,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
35
35
  }>> & Readonly<{}>, {
36
36
  email: string;
37
37
  referrerId: string;
38
- avatarUrl: string;
39
38
  nickname: string;
39
+ avatarUrl: string;
40
40
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
41
41
  export default _default;