@cypress-design/vue-icon 3.3.1 → 3.4.0
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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +16 -0
- package/Icon.ts +7 -4
- package/IconVue.cy.tsx +17 -17
- package/ReadMe.md +1 -1
- package/_TreeShakableIcons.ts +689 -685
- package/animated/_testUtils.tsx +8 -8
- package/compileProperties.ts +0 -5
- package/dist/Icon.d.ts.map +1 -1
- package/dist/_TreeShakableIcons.d.ts +1705 -1023
- package/dist/_TreeShakableIcons.d.ts.map +1 -1
- package/dist/compileProperties.d.ts +0 -1
- package/dist/compileProperties.d.ts.map +1 -1
- package/dist/index.es.mjs +1855 -1856
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/generate-icons.js +12 -5
- package/package.json +3 -2
package/animated/_testUtils.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref } from 'vue'
|
|
2
2
|
import { mount } from 'cypress/vue'
|
|
3
3
|
|
|
4
4
|
export function iconTests(Icon: any) {
|
|
@@ -8,7 +8,7 @@ export function iconTests(Icon: any) {
|
|
|
8
8
|
animated={false}
|
|
9
9
|
width={400}
|
|
10
10
|
height={400}
|
|
11
|
-
class="icon-
|
|
11
|
+
class="icon-light-indigo-300 icon-dark-indigo-400 icon-dark-secondary-indigo-500"
|
|
12
12
|
/>
|
|
13
13
|
))
|
|
14
14
|
})
|
|
@@ -24,7 +24,7 @@ export function iconTests(Icon: any) {
|
|
|
24
24
|
animated={isAnimated.value}
|
|
25
25
|
width={400}
|
|
26
26
|
height={400}
|
|
27
|
-
class="icon-
|
|
27
|
+
class="icon-light-indigo-300 icon-dark-indigo-400 icon-dark-secondary-indigo-500 m-[50px]"
|
|
28
28
|
onClick={() => {
|
|
29
29
|
isAnimated.value = !isAnimated.value
|
|
30
30
|
}}
|
|
@@ -61,23 +61,23 @@ export function iconTests(Icon: any) {
|
|
|
61
61
|
|
|
62
62
|
it('renders both side by side', { viewportWidth: 900 }, () => {
|
|
63
63
|
mount(() => (
|
|
64
|
-
<div class="
|
|
64
|
+
<div class="flex gap-4 bg-black text-center text-2xl">
|
|
65
65
|
<div>
|
|
66
|
-
<h2 class="text-indigo-200
|
|
66
|
+
<h2 class="font-bold text-indigo-200">not animated</h2>
|
|
67
67
|
<Icon
|
|
68
68
|
animated={false}
|
|
69
69
|
width={400}
|
|
70
70
|
height={400}
|
|
71
|
-
class="icon-
|
|
71
|
+
class="icon-light-indigo-300 icon-dark-indigo-400 icon-dark-secondary-indigo-500"
|
|
72
72
|
/>
|
|
73
73
|
</div>
|
|
74
74
|
<div>
|
|
75
|
-
<h2 class="text-indigo-200
|
|
75
|
+
<h2 class="font-bold text-indigo-200">animated</h2>
|
|
76
76
|
<Icon
|
|
77
77
|
animated={true}
|
|
78
78
|
width={400}
|
|
79
79
|
height={400}
|
|
80
|
-
class="icon-
|
|
80
|
+
class="icon-light-indigo-300 icon-dark-indigo-400 icon-dark-secondary-indigo-500"
|
|
81
81
|
/>
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
package/compileProperties.ts
CHANGED
|
@@ -10,11 +10,6 @@ import {
|
|
|
10
10
|
} from 'vue'
|
|
11
11
|
import type { SVGAttributes } from 'vue'
|
|
12
12
|
|
|
13
|
-
export type VueComponentClassObject =
|
|
14
|
-
| Record<string, boolean>
|
|
15
|
-
| string
|
|
16
|
-
| Array<Record<string, boolean> | string>
|
|
17
|
-
|
|
18
13
|
/**
|
|
19
14
|
* Icon names of the SVGs whose defs already appear in the DOM
|
|
20
15
|
*/
|
package/dist/Icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../Icon.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAQ7E,UAAU,KAAM,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;IAE1E,KAAK,CAAC,EAAE,GAAG,CAAA;CACZ;;;;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../Icon.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAQ7E,UAAU,KAAM,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;IAE1E,KAAK,CAAC,EAAE,GAAG,CAAA;CACZ;;;;AAID,wBA2DE"}
|