adata-ui 3.1.2 → 3.1.4
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/dist/module.json +1 -1
- package/dist/runtime/components/CurveBlock.vue +232 -0
- package/dist/runtime/components/CurveBlock.vue.d.ts +8 -0
- package/dist/runtime/components/Header.vue +2 -2
- package/dist/runtime/components/Header.vue.d.ts +1 -1
- package/dist/runtime/components/accordion/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/button/Button.vue.d.ts +1 -1
- package/dist/runtime/components/pill-tabs/PillTabs.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { NuxtLinkLocale } from "#components";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
icon: { type: null, required: true },
|
|
5
|
+
title: { type: String, required: true },
|
|
6
|
+
description: { type: String, required: true },
|
|
7
|
+
to: { type: String, required: false }
|
|
8
|
+
});
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<component
|
|
13
|
+
:is="to ? NuxtLinkLocale : 'button'"
|
|
14
|
+
:to="to"
|
|
15
|
+
class="curve-block relative w-fit cursor-pointer hidden md:block"
|
|
16
|
+
active-class="active-item"
|
|
17
|
+
>
|
|
18
|
+
<svg
|
|
19
|
+
width="306"
|
|
20
|
+
height="182"
|
|
21
|
+
viewBox="-1 -1 308 184"
|
|
22
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
>
|
|
24
|
+
<path
|
|
25
|
+
class="border-path"
|
|
26
|
+
d="M306 106.077C306 116.087 292.009 123 282 123C262.67 123 247 138.67 247 158C247 168.009 240.087 182 230.077 182H16C7.16344 182 0 174.837 0 166V16C0 7.16344 7.16344 0 16 0H290C298.837 0 306 7.16344 306 16V106.077Z"
|
|
27
|
+
stroke-width="2"
|
|
28
|
+
fill="transparent"
|
|
29
|
+
/>
|
|
30
|
+
<defs>
|
|
31
|
+
<linearGradient
|
|
32
|
+
id="gradient-light"
|
|
33
|
+
x1="164.372"
|
|
34
|
+
y1="-137.957"
|
|
35
|
+
x2="-20.5433"
|
|
36
|
+
y2="68.1723"
|
|
37
|
+
gradientUnits="userSpaceOnUse"
|
|
38
|
+
>
|
|
39
|
+
<stop stop-color="#479FFF" />
|
|
40
|
+
<stop
|
|
41
|
+
offset="1"
|
|
42
|
+
stop-color="#0070EB"
|
|
43
|
+
/>
|
|
44
|
+
</linearGradient>
|
|
45
|
+
|
|
46
|
+
<linearGradient
|
|
47
|
+
id="gradient-dark"
|
|
48
|
+
x1="164.372"
|
|
49
|
+
y1="-137.957"
|
|
50
|
+
x2="-20.5433"
|
|
51
|
+
y2="68.1723"
|
|
52
|
+
gradientUnits="userSpaceOnUse"
|
|
53
|
+
>
|
|
54
|
+
<stop stop-color="#4FBDFF" />
|
|
55
|
+
<stop
|
|
56
|
+
offset="1"
|
|
57
|
+
stop-color="#1B98E2"
|
|
58
|
+
/>
|
|
59
|
+
</linearGradient>
|
|
60
|
+
</defs>
|
|
61
|
+
</svg>
|
|
62
|
+
|
|
63
|
+
<div class="absolute left-6 top-6 flex flex-col gap-4 pr-6">
|
|
64
|
+
<div class="flex items-center gap-2">
|
|
65
|
+
<div class="rounded-sm bg-deepblue-900/5 dark:bg-gray-200/5 p-1">
|
|
66
|
+
<component
|
|
67
|
+
:is="icon"
|
|
68
|
+
class="size-6 shrink-0"
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
<p class="text-base font-semibold">
|
|
72
|
+
{{ title }}
|
|
73
|
+
</p>
|
|
74
|
+
</div>
|
|
75
|
+
<p class="text-sm text-gray-600 dark:text-gray-200">
|
|
76
|
+
{{ description }}
|
|
77
|
+
</p>
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
<svg
|
|
81
|
+
class="absolute bottom-0 right-0"
|
|
82
|
+
width="48"
|
|
83
|
+
height="48"
|
|
84
|
+
viewBox="0 0 48 48"
|
|
85
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
86
|
+
>
|
|
87
|
+
<rect
|
|
88
|
+
x="1"
|
|
89
|
+
y="1"
|
|
90
|
+
width="46"
|
|
91
|
+
height="46"
|
|
92
|
+
rx="23"
|
|
93
|
+
fill="transparent"
|
|
94
|
+
/>
|
|
95
|
+
<rect
|
|
96
|
+
class="animated-border"
|
|
97
|
+
x="1"
|
|
98
|
+
y="1"
|
|
99
|
+
width="46"
|
|
100
|
+
height="46"
|
|
101
|
+
rx="23"
|
|
102
|
+
stroke-width="2"
|
|
103
|
+
fill="transparent"
|
|
104
|
+
/>
|
|
105
|
+
<path
|
|
106
|
+
class="arrow"
|
|
107
|
+
fill-rule="evenodd"
|
|
108
|
+
clip-rule="evenodd"
|
|
109
|
+
d="M17.1155 16C16.4994 16 16 16.4994 16 17.1155C16 17.7315 16.4994 18.231 17.1155 18.231L28.1915 18.231L16.3267 30.0958C15.8911 30.5314 15.8911 31.2377 16.3267 31.6733C16.7623 32.1089 17.4686 32.1089 17.9042 31.6733L29.769 19.8085L29.769 30.8845C29.769 31.5006 30.2685 32 30.8845 32C31.5006 32 32 31.5006 32 30.8845L32 17.1155C32 16.9642 31.9699 16.82 31.9154 16.6885C31.8617 16.5589 31.7826 16.4373 31.678 16.3315C31.6749 16.3283 31.6717 16.3251 31.6685 16.322C31.5627 16.2174 31.4411 16.1383 31.3115 16.0846C31.18 16.0301 31.0358 16 30.8845 16L17.1155 16Z"
|
|
110
|
+
/>
|
|
111
|
+
<defs>
|
|
112
|
+
<linearGradient
|
|
113
|
+
id="gradient-circle-light"
|
|
114
|
+
x1="25.7838"
|
|
115
|
+
y1="-36.3843"
|
|
116
|
+
x2="-19.403"
|
|
117
|
+
y2="-6.42519"
|
|
118
|
+
gradientUnits="userSpaceOnUse"
|
|
119
|
+
>
|
|
120
|
+
<stop stop-color="#479FFF" />
|
|
121
|
+
<stop
|
|
122
|
+
offset="1"
|
|
123
|
+
stop-color="#0070EB"
|
|
124
|
+
/>
|
|
125
|
+
</linearGradient>
|
|
126
|
+
|
|
127
|
+
<linearGradient
|
|
128
|
+
id="gradient-circle-dark"
|
|
129
|
+
x1="25.7838"
|
|
130
|
+
y1="-36.3843"
|
|
131
|
+
x2="-19.403"
|
|
132
|
+
y2="-6.42519"
|
|
133
|
+
gradientUnits="userSpaceOnUse"
|
|
134
|
+
>
|
|
135
|
+
<stop stop-color="#4FBDFF" />
|
|
136
|
+
<stop
|
|
137
|
+
offset="1"
|
|
138
|
+
stop-color="#1B98E2"
|
|
139
|
+
/>
|
|
140
|
+
</linearGradient>
|
|
141
|
+
</defs>
|
|
142
|
+
</svg>
|
|
143
|
+
</component>
|
|
144
|
+
|
|
145
|
+
<!-- mobile -->
|
|
146
|
+
<component
|
|
147
|
+
:is="to ? NuxtLinkLocale : 'button'"
|
|
148
|
+
:to="to"
|
|
149
|
+
class="group cursor-pointer flex flex-col items-center gap-2 md:hidden"
|
|
150
|
+
active-class="active-item"
|
|
151
|
+
>
|
|
152
|
+
<div
|
|
153
|
+
class="p-2 w-fit rounded-lg transition-all bg-deepblue-900/5
|
|
154
|
+
group-hover:bg-blue-700
|
|
155
|
+
group-[.active-item]:bg-blue-700"
|
|
156
|
+
>
|
|
157
|
+
<component
|
|
158
|
+
:is="icon"
|
|
159
|
+
class="size-6 shrink-0 text-deepblue-900
|
|
160
|
+
group-hover:text-white
|
|
161
|
+
group-[.active-item]:text-white"
|
|
162
|
+
/>
|
|
163
|
+
</div>
|
|
164
|
+
<p>
|
|
165
|
+
{{ title }}
|
|
166
|
+
</p>
|
|
167
|
+
</component>
|
|
168
|
+
</template>
|
|
169
|
+
|
|
170
|
+
<style scoped>
|
|
171
|
+
.border-path {
|
|
172
|
+
stroke-dasharray: 1200;
|
|
173
|
+
stroke-dashoffset: 1200;
|
|
174
|
+
fill: #F4F5F6;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.animated-border {
|
|
178
|
+
stroke-dasharray: 180;
|
|
179
|
+
stroke-dashoffset: 180;
|
|
180
|
+
fill: #F4F5F6;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.active-item .border-path,
|
|
184
|
+
.active-item .animated-border {
|
|
185
|
+
stroke-dashoffset: 0;
|
|
186
|
+
fill: white;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.curve-block:hover .border-path,
|
|
190
|
+
.curve-block:hover .animated-border {
|
|
191
|
+
transition: stroke-dashoffset 2s ease, fill 2s ease;
|
|
192
|
+
stroke-dashoffset: 0;
|
|
193
|
+
fill: white;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.border-path {
|
|
197
|
+
stroke: url(#gradient-light);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.dark .border-path {
|
|
201
|
+
stroke: url(#gradient-dark);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.animated-border {
|
|
205
|
+
stroke: url(#gradient-circle-light);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.dark .animated-border {
|
|
209
|
+
stroke: url(#gradient-circle-dark);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.arrow {
|
|
213
|
+
fill: #0070EB;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.dark .border-path,
|
|
217
|
+
.dark .animated-border {
|
|
218
|
+
fill: #26282b;
|
|
219
|
+
}
|
|
220
|
+
.dark .active-item .border-path,
|
|
221
|
+
.dark .active-item .animated-border {
|
|
222
|
+
stroke-dashoffset: 0;
|
|
223
|
+
fill: #131415;
|
|
224
|
+
}
|
|
225
|
+
.dark .curve-block:hover .border-path,
|
|
226
|
+
.dark .curve-block:hover .animated-border {
|
|
227
|
+
fill: #131415;
|
|
228
|
+
}
|
|
229
|
+
.dark .arrow {
|
|
230
|
+
fill: #1b98e2;
|
|
231
|
+
}
|
|
232
|
+
</style>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon: Component;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
to?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default _default;
|
|
@@ -91,7 +91,7 @@ onBeforeMount(() => {
|
|
|
91
91
|
<slot name="mobile-right"></slot>
|
|
92
92
|
</div>
|
|
93
93
|
</div>
|
|
94
|
-
<lang-switcher
|
|
94
|
+
<lang-switcher class="lg:hidden"/>
|
|
95
95
|
<div class="text-deepblue hidden items-center gap-4 dark:text-[#E3E5E8] lg:flex">
|
|
96
96
|
<!-- Mobile hidden -->
|
|
97
97
|
<div class="hidden items-center gap-4 lg:flex">
|
|
@@ -104,7 +104,7 @@ onBeforeMount(() => {
|
|
|
104
104
|
</div>
|
|
105
105
|
<div class="flex items-center gap-4">
|
|
106
106
|
<color-mode />
|
|
107
|
-
<lang-switcher
|
|
107
|
+
<lang-switcher />
|
|
108
108
|
</div>
|
|
109
109
|
|
|
110
110
|
|
|
@@ -26,11 +26,11 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
26
26
|
daysRemaining: number;
|
|
27
27
|
limitRemaining: number;
|
|
28
28
|
isAuthenticated: boolean;
|
|
29
|
-
mobileHeaderType: "search" | "default";
|
|
30
29
|
module: ProjectKeys;
|
|
31
30
|
rate: string;
|
|
32
31
|
balance: number;
|
|
33
32
|
showLogIn: boolean;
|
|
33
|
+
mobileHeaderType: "search" | "default";
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
36
36
|
export default _default;
|
|
@@ -28,8 +28,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
28
28
|
size: import("./types.js").Size;
|
|
29
29
|
color: import("./types.js").Color;
|
|
30
30
|
disabled: boolean;
|
|
31
|
-
defaultOpen: boolean;
|
|
32
31
|
slot: string;
|
|
32
|
+
defaultOpen: boolean;
|
|
33
33
|
divider: boolean;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -21,10 +21,10 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
21
21
|
view: "default" | "outline" | "transparent";
|
|
22
22
|
disabled: boolean;
|
|
23
23
|
active: boolean;
|
|
24
|
-
loading: boolean;
|
|
25
24
|
variant: "primary" | "success" | "danger" | "gray" | "ghost";
|
|
26
25
|
form: "icon" | "button";
|
|
27
26
|
iconClass: string;
|
|
27
|
+
loading: boolean;
|
|
28
28
|
block: boolean;
|
|
29
29
|
to: string;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -24,8 +24,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
24
24
|
size: "lg" | "sm" | "xs";
|
|
25
25
|
view: "transparent" | "main" | "gray" | "blue" | "mobile";
|
|
26
26
|
block: boolean;
|
|
27
|
-
align: "left" | "center";
|
|
28
27
|
badgeSize: "sm" | "md" | "lg";
|
|
28
|
+
align: "left" | "center";
|
|
29
29
|
wrapper: "column" | "row";
|
|
30
30
|
countView: "badge" | "brackets";
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|