adata-ui 2.0.2 → 2.0.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.
@@ -13,7 +13,8 @@ const props = defineProps<{
13
13
  <component
14
14
  :is="to ? NuxtLinkLocale : 'button'"
15
15
  :to="to"
16
- class="relative w-fit cursor-pointer"
16
+ class="curve-block relative w-fit cursor-pointer"
17
+ active-class="active-item"
17
18
  >
18
19
  <svg
19
20
  width="306"
@@ -148,19 +149,23 @@ const props = defineProps<{
148
149
  stroke-dasharray: 1200;
149
150
  stroke-dashoffset: 1200;
150
151
  fill: #F4F5F6;
151
- transition: stroke-dashoffset 2s ease, fill 2s ease;
152
152
  }
153
153
 
154
154
  .animated-border {
155
155
  stroke-dasharray: 180;
156
156
  stroke-dashoffset: 180;
157
- transition: stroke-dashoffset 2s ease, fill 2s ease;
158
157
  fill: #F4F5F6;
159
158
  }
160
159
 
161
160
 
162
- .relative:hover .border-path,
163
- .relative:hover .animated-border {
161
+ .active-item .border-path,
162
+ .active-item .animated-border {
163
+ stroke-dashoffset: 0;
164
+ fill: white;
165
+ }
166
+ .curve-block:hover .border-path,
167
+ .curve-block:hover .animated-border {
168
+ transition: stroke-dashoffset 2s ease, fill 2s ease;
164
169
  stroke-dashoffset: 0;
165
170
  fill: white;
166
171
  }
@@ -188,12 +193,20 @@ const props = defineProps<{
188
193
  .dark {
189
194
  .border-path,
190
195
  .animated-border {
191
- fill: #393d40;
192
- }
193
- .relative:hover .border-path,
194
- .relative:hover .animated-border {
195
196
  fill: #26282b;
196
197
  }
198
+
199
+ .active-item .border-path,
200
+ .active-item .animated-border {
201
+ stroke-dashoffset: 0;
202
+ fill: #131415;
203
+ }
204
+
205
+ .curve-block:hover .border-path,
206
+ .curve-block:hover .animated-border {
207
+ fill: #131415;
208
+
209
+ }
197
210
  .arrow {
198
211
  fill: #1b98e2;
199
212
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",