@cypress-design/vue-icon 0.35.0 → 0.37.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 +5 -5
- package/CHANGELOG.md +22 -0
- package/Icon.ts +12 -7
- package/_TreeShakableIcons.ts +27 -0
- package/animated/_IconGeneralChatBubble.vue +32 -8
- package/animated/_IconObjectGear.vue +31 -7
- package/animated/_IconTechnologyGitBranches.vue +33 -8
- package/animated/_IconTechnologyServer.vue +33 -9
- package/animated/_IconViewChart.vue +35 -9
- package/animated/_testUtils.tsx +24 -0
- package/dist/Icon.d.ts +4 -140
- package/dist/Icon.d.ts.map +1 -1
- package/dist/_TreeShakableIcons.d.ts +5 -0
- package/dist/_TreeShakableIcons.d.ts.map +1 -1
- package/dist/animated/_IconGeneralChatBubble.vue.d.ts +5 -2
- package/dist/animated/_IconGeneralChatBubble.vue.d.ts.map +1 -1
- package/dist/animated/_IconObjectGear.vue.d.ts +5 -2
- package/dist/animated/_IconObjectGear.vue.d.ts.map +1 -1
- package/dist/animated/_IconTechnologyGitBranches.vue.d.ts +5 -2
- package/dist/animated/_IconTechnologyGitBranches.vue.d.ts.map +1 -1
- package/dist/animated/_IconTechnologyServer.vue.d.ts +5 -2
- package/dist/animated/_IconTechnologyServer.vue.d.ts.map +1 -1
- package/dist/animated/_IconViewChart.vue.d.ts +5 -2
- package/dist/animated/_IconViewChart.vue.d.ts.map +1 -1
- package/dist/animated/_PathMorpher.vue.d.ts.map +1 -1
- package/dist/index.es.mjs +1898 -1824
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -3,14 +3,14 @@ $ node ./generate-icons.js
|
|
|
3
3
|
$ yarn vite build
|
|
4
4
|
$ /home/runner/work/cypress-design/cypress-design/node_modules/.bin/vite build
|
|
5
5
|
[33mThe CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.[39m
|
|
6
|
-
[36mvite v5.
|
|
6
|
+
[36mvite v5.2.3 [32mbuilding for production...[36m[39m
|
|
7
7
|
transforming...
|
|
8
|
-
[32m✓[39m
|
|
8
|
+
[32m✓[39m 17 modules transformed.
|
|
9
9
|
rendering chunks...
|
|
10
10
|
computing gzip size...
|
|
11
|
-
[2mdist/[22m[36mindex.es.mjs [39m[1m[
|
|
11
|
+
[2mdist/[22m[36mindex.es.mjs [39m[1m[2m279.80 kB[22m[1m[22m[2m │ gzip: 55.84 kB[22m[2m │ map: 501.32 kB[22m
|
|
12
12
|
Entry module "index.ts" is using named and default exports together. Consumers of your bundle will have to use `Icon.default` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
|
|
13
|
-
[2mdist/[22m[36mindex.umd.js [39m[1m[
|
|
14
|
-
[32m✓ built in
|
|
13
|
+
[2mdist/[22m[36mindex.umd.js [39m[1m[2m253.07 kB[22m[1m[22m[2m │ gzip: 54.95 kB[22m[2m │ map: 489.25 kB[22m
|
|
14
|
+
[32m✓ built in 8.31s[39m
|
|
15
15
|
$ yarn vue-tsc --project ./tsconfig.build.json
|
|
16
16
|
$ /home/runner/work/cypress-design/cypress-design/node_modules/.bin/vue-tsc --project ./tsconfig.build.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @cypress-design/vue-icon
|
|
2
2
|
|
|
3
|
+
## 0.37.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`497ed31`](https://github.com/cypress-io/cypress-design/commit/497ed31f561ba2240470cbfad9895a9bac229b00) Thanks [@elevatebart](https://github.com/elevatebart)! - add info icon
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`497ed31`](https://github.com/cypress-io/cypress-design/commit/497ed31f561ba2240470cbfad9895a9bac229b00)]:
|
|
12
|
+
- @cypress-design/icon-registry@0.40.0
|
|
13
|
+
|
|
14
|
+
## 0.36.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [#402](https://github.com/cypress-io/cypress-design/pull/402) [`6f2ae04`](https://github.com/cypress-io/cypress-design/commit/6f2ae04a7202e13deabf0bf981f035ed03f3616e) Thanks [@elevatebart](https://github.com/elevatebart)! - refactor and add the logo component
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`6f2ae04`](https://github.com/cypress-io/cypress-design/commit/6f2ae04a7202e13deabf0bf981f035ed03f3616e)]:
|
|
23
|
+
- @cypress-design/icon-registry@0.38.0
|
|
24
|
+
|
|
3
25
|
## 0.35.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/Icon.ts
CHANGED
|
@@ -10,7 +10,16 @@ import {
|
|
|
10
10
|
useShouldRenderDefs,
|
|
11
11
|
} from './compileProperties'
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
interface Props extends Pick<IconProps, 'name'>, Omit<OpenIconProps, 'name'> {
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
+
class?: any
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default defineComponent<Props>({
|
|
19
|
+
// the props here need to exist because of runtime treatment
|
|
20
|
+
// if we don't have them explicit, vuejs will think it's attributes
|
|
21
|
+
// and not pass it down as props to the components
|
|
22
|
+
// but for typescript to pick up the correct prop types, we need to cast it to unknown
|
|
14
23
|
props: [
|
|
15
24
|
...ICON_COLOR_PROP_NAMES,
|
|
16
25
|
'interactiveColorsOnGroup',
|
|
@@ -18,15 +27,11 @@ export default defineComponent({
|
|
|
18
27
|
'name',
|
|
19
28
|
'alt',
|
|
20
29
|
'class',
|
|
21
|
-
],
|
|
30
|
+
] as unknown as undefined,
|
|
22
31
|
setup(
|
|
23
32
|
// the OpenIconProps helps volar extract the documentation from the props
|
|
24
33
|
// since the IconProps are more restrictive, it will not change the use behavior
|
|
25
|
-
props:
|
|
26
|
-
Pick<IconProps, 'name'> & {
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
-
class?: any
|
|
29
|
-
},
|
|
34
|
+
props: Props,
|
|
30
35
|
{ attrs }: { attrs: Omit<SVGAttributes, 'name' | 'class'> },
|
|
31
36
|
) {
|
|
32
37
|
const ret = computed(() => {
|
package/_TreeShakableIcons.ts
CHANGED
|
@@ -406,6 +406,33 @@ export const IconActionExport = defineComponent<Omit<iconsRegistry.IconActionExp
|
|
|
406
406
|
})
|
|
407
407
|
|
|
408
408
|
|
|
409
|
+
export const IconActionInfoSolid = defineComponent<Omit<iconsRegistry.IconActionInfoSolidProps, 'name'> & {
|
|
410
|
+
class?: any
|
|
411
|
+
}>({
|
|
412
|
+
...__iconComponentOpts__,
|
|
413
|
+
setup(props: Omit<iconsRegistry.IconActionInfoSolidProps, 'name'> & {
|
|
414
|
+
class?: any
|
|
415
|
+
}, { attrs }: { attrs: Omit<SVGAttributes, 'name' | 'class'> }) {
|
|
416
|
+
const iconPropsStep = useIconProps(props, {
|
|
417
|
+
"12": {
|
|
418
|
+
"body": "<path d=\"M10.243 10.243a6 6 0 1 1-8.486-8.485 6 6 0 0 1 8.486 8.485Z\" stroke=\"currentColor\" class=\"icon-dark\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7 5.5a1 1 0 0 0-2 0v4a1 1 0 1 0 2 0v-4Zm-1-4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z\" fill=\"#F3F4FA\" class=\"icon-light\"/>"
|
|
419
|
+
},
|
|
420
|
+
"16": {
|
|
421
|
+
"body": "<path d=\"M12.95 12.95a7 7 0 1 1-9.9-9.9 7 7 0 0 1 9.9 9.9Z\" fill=\"currentColor\" stroke=\"currentColor\" stroke-width=\"2\" class=\"icon-dark\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M9 7.5a1 1 0 0 0-2 0v4a1 1 0 1 0 2 0v-4Zm-1-4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z\" fill=\"#F3F4FA\" class=\"icon-light\"/>"
|
|
422
|
+
}
|
|
423
|
+
}, ["12","16"], "action-info-solid")
|
|
424
|
+
|
|
425
|
+
const { componentProps, defs } = compileVueIconProperties(iconPropsStep)
|
|
426
|
+
|
|
427
|
+
const { shouldRenderDefs } = useShouldRenderDefs(
|
|
428
|
+
"action-info-solid",
|
|
429
|
+
defs)
|
|
430
|
+
|
|
431
|
+
return () => hyperSVG(componentProps, defs, shouldRenderDefs, attrs, props.class)
|
|
432
|
+
},
|
|
433
|
+
})
|
|
434
|
+
|
|
435
|
+
|
|
409
436
|
export const IconActionNext = defineComponent<Omit<iconsRegistry.IconActionNextProps, 'name'> & {
|
|
410
437
|
class?: any
|
|
411
438
|
}>({
|
|
@@ -1,29 +1,53 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import PathMorpher from './_PathMorpher.vue'
|
|
3
|
-
import {
|
|
3
|
+
import { iconAnimatedGeneralChatBubble } from '@cypress-design/icon-registry'
|
|
4
|
+
import {
|
|
5
|
+
getComponentAttributes,
|
|
6
|
+
type HasStrokeColor,
|
|
7
|
+
type HasFillColor,
|
|
8
|
+
} from '@cypress-design/icon-registry'
|
|
9
|
+
import { computed } from 'vue'
|
|
4
10
|
|
|
5
|
-
withDefaults(
|
|
6
|
-
defineProps<
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
const props = withDefaults(
|
|
12
|
+
defineProps<
|
|
13
|
+
{
|
|
14
|
+
animated?: boolean
|
|
15
|
+
interactiveColorsOnGroup?: boolean
|
|
16
|
+
} & HasStrokeColor &
|
|
17
|
+
HasFillColor
|
|
18
|
+
>(),
|
|
9
19
|
{
|
|
10
20
|
animated: false,
|
|
11
21
|
},
|
|
12
22
|
)
|
|
23
|
+
|
|
24
|
+
const compiledClasses = computed(
|
|
25
|
+
() =>
|
|
26
|
+
getComponentAttributes({
|
|
27
|
+
...props,
|
|
28
|
+
availableSizes: ['24'],
|
|
29
|
+
interactiveColorsOnGroup: props.interactiveColorsOnGroup,
|
|
30
|
+
}).compiledClasses,
|
|
31
|
+
)
|
|
13
32
|
</script>
|
|
14
33
|
|
|
15
34
|
<template>
|
|
16
|
-
<svg
|
|
35
|
+
<svg
|
|
36
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
+
fill="none"
|
|
38
|
+
viewBox="0 0 24 24"
|
|
39
|
+
:class="compiledClasses"
|
|
40
|
+
>
|
|
17
41
|
<PathMorpher
|
|
18
42
|
class="icon-dark"
|
|
19
43
|
fill="#1B1E2E"
|
|
20
|
-
v-bind="
|
|
44
|
+
v-bind="iconAnimatedGeneralChatBubble.small"
|
|
21
45
|
:animated="animated"
|
|
22
46
|
/>
|
|
23
47
|
<PathMorpher
|
|
24
48
|
class="icon-light"
|
|
25
49
|
fill="#1B1E2E"
|
|
26
|
-
v-bind="
|
|
50
|
+
v-bind="iconAnimatedGeneralChatBubble.big"
|
|
27
51
|
:animated="animated"
|
|
28
52
|
/>
|
|
29
53
|
</svg>
|
|
@@ -1,21 +1,45 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import PathMorpher from './_PathMorpher.vue'
|
|
3
|
-
import {
|
|
3
|
+
import { iconAnimatedObjectGear } from '@cypress-design/icon-registry'
|
|
4
|
+
import {
|
|
5
|
+
type HasStrokeColor,
|
|
6
|
+
type HasFillColor,
|
|
7
|
+
getComponentAttributes,
|
|
8
|
+
} from '@cypress-design/icon-registry'
|
|
9
|
+
import { computed } from 'vue'
|
|
4
10
|
|
|
5
|
-
withDefaults(
|
|
6
|
-
defineProps<
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
const props = withDefaults(
|
|
12
|
+
defineProps<
|
|
13
|
+
{
|
|
14
|
+
animated?: boolean
|
|
15
|
+
interactiveColorsOnGroup?: boolean
|
|
16
|
+
} & HasStrokeColor &
|
|
17
|
+
HasFillColor
|
|
18
|
+
>(),
|
|
9
19
|
{
|
|
10
20
|
animated: false,
|
|
11
21
|
},
|
|
12
22
|
)
|
|
23
|
+
|
|
24
|
+
const compiledClasses = computed(
|
|
25
|
+
() =>
|
|
26
|
+
getComponentAttributes({
|
|
27
|
+
...props,
|
|
28
|
+
availableSizes: ['24'],
|
|
29
|
+
interactiveColorsOnGroup: props.interactiveColorsOnGroup,
|
|
30
|
+
}).compiledClasses,
|
|
31
|
+
)
|
|
13
32
|
</script>
|
|
14
33
|
|
|
15
34
|
<template>
|
|
16
|
-
<svg
|
|
35
|
+
<svg
|
|
36
|
+
viewBox="0 0 24 24"
|
|
37
|
+
fill="none"
|
|
38
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
39
|
+
:class="compiledClasses"
|
|
40
|
+
>
|
|
17
41
|
<PathMorpher
|
|
18
|
-
v-bind="
|
|
42
|
+
v-bind="iconAnimatedObjectGear"
|
|
19
43
|
fill-rule="evenodd"
|
|
20
44
|
clip-rule="evenodd"
|
|
21
45
|
class="icon-light"
|
|
@@ -1,27 +1,52 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
2
|
+
import { iconAnimatedTechnologyGitBranches } from '@cypress-design/icon-registry'
|
|
3
3
|
import PathMorpher from './_PathMorpher.vue'
|
|
4
|
+
import {
|
|
5
|
+
type HasStrokeColor,
|
|
6
|
+
type HasFillColor,
|
|
7
|
+
getComponentAttributes,
|
|
8
|
+
} from '@cypress-design/icon-registry'
|
|
9
|
+
import { computed } from 'vue'
|
|
4
10
|
|
|
5
|
-
withDefaults(
|
|
6
|
-
defineProps<
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
const props = withDefaults(
|
|
12
|
+
defineProps<
|
|
13
|
+
{
|
|
14
|
+
animated?: boolean
|
|
15
|
+
|
|
16
|
+
interactiveColorsOnGroup?: boolean
|
|
17
|
+
} & HasStrokeColor &
|
|
18
|
+
HasFillColor
|
|
19
|
+
>(),
|
|
9
20
|
{
|
|
10
21
|
animated: false,
|
|
11
22
|
},
|
|
12
23
|
)
|
|
24
|
+
|
|
25
|
+
const compiledClasses = computed(
|
|
26
|
+
() =>
|
|
27
|
+
getComponentAttributes({
|
|
28
|
+
...props,
|
|
29
|
+
availableSizes: ['24'],
|
|
30
|
+
interactiveColorsOnGroup: props.interactiveColorsOnGroup,
|
|
31
|
+
}).compiledClasses,
|
|
32
|
+
)
|
|
13
33
|
</script>
|
|
14
34
|
|
|
15
35
|
<template>
|
|
16
|
-
<svg
|
|
36
|
+
<svg
|
|
37
|
+
viewBox="0 0 24 24"
|
|
38
|
+
fill="none"
|
|
39
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
40
|
+
:class="compiledClasses"
|
|
41
|
+
>
|
|
17
42
|
<PathMorpher
|
|
18
|
-
v-bind="
|
|
43
|
+
v-bind="iconAnimatedTechnologyGitBranches.left"
|
|
19
44
|
fill="#1B1E2E"
|
|
20
45
|
class="icon-light"
|
|
21
46
|
:animated="animated"
|
|
22
47
|
/>
|
|
23
48
|
<PathMorpher
|
|
24
|
-
v-bind="
|
|
49
|
+
v-bind="iconAnimatedTechnologyGitBranches.right"
|
|
25
50
|
fill="#747994"
|
|
26
51
|
class="icon-dark"
|
|
27
52
|
:animated="animated"
|
|
@@ -1,23 +1,47 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { iconTechnologyServer } from '@cypress-design/constants-icon'
|
|
3
2
|
import PathMorpher from './_PathMorpher.vue'
|
|
3
|
+
import {
|
|
4
|
+
type HasStrokeColor,
|
|
5
|
+
type HasFillColor,
|
|
6
|
+
getComponentAttributes,
|
|
7
|
+
iconAnimatedTechnologyServer,
|
|
8
|
+
} from '@cypress-design/icon-registry'
|
|
9
|
+
import { computed } from 'vue'
|
|
4
10
|
|
|
5
|
-
withDefaults(
|
|
6
|
-
defineProps<
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
const props = withDefaults(
|
|
12
|
+
defineProps<
|
|
13
|
+
{
|
|
14
|
+
animated?: boolean
|
|
15
|
+
interactiveColorsOnGroup?: boolean
|
|
16
|
+
} & HasStrokeColor &
|
|
17
|
+
HasFillColor
|
|
18
|
+
>(),
|
|
9
19
|
{
|
|
10
20
|
animated: false,
|
|
11
21
|
},
|
|
12
22
|
)
|
|
23
|
+
|
|
24
|
+
const compiledClasses = computed(
|
|
25
|
+
() =>
|
|
26
|
+
getComponentAttributes({
|
|
27
|
+
...props,
|
|
28
|
+
availableSizes: ['24'],
|
|
29
|
+
interactiveColorsOnGroup: props.interactiveColorsOnGroup,
|
|
30
|
+
}).compiledClasses,
|
|
31
|
+
)
|
|
13
32
|
</script>
|
|
14
33
|
|
|
15
34
|
<template>
|
|
16
|
-
<svg
|
|
35
|
+
<svg
|
|
36
|
+
fill="none"
|
|
37
|
+
viewBox="0 0 24 24"
|
|
38
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
39
|
+
:class="compiledClasses"
|
|
40
|
+
>
|
|
17
41
|
<PathMorpher
|
|
18
42
|
fill-rule="evenodd"
|
|
19
43
|
clip-rule="evenodd"
|
|
20
|
-
v-bind="
|
|
44
|
+
v-bind="iconAnimatedTechnologyServer.top"
|
|
21
45
|
:animated="animated"
|
|
22
46
|
fill="#1B1E2E"
|
|
23
47
|
class="icon-light"
|
|
@@ -25,7 +49,7 @@ withDefaults(
|
|
|
25
49
|
<PathMorpher
|
|
26
50
|
fill-rule="evenodd"
|
|
27
51
|
clip-rule="evenodd"
|
|
28
|
-
v-bind="
|
|
52
|
+
v-bind="iconAnimatedTechnologyServer.middle"
|
|
29
53
|
:animated="animated"
|
|
30
54
|
fill="#9095AD"
|
|
31
55
|
class="icon-dark"
|
|
@@ -34,7 +58,7 @@ withDefaults(
|
|
|
34
58
|
<PathMorpher
|
|
35
59
|
fill-rule="evenodd"
|
|
36
60
|
clip-rule="evenodd"
|
|
37
|
-
v-bind="
|
|
61
|
+
v-bind="iconAnimatedTechnologyServer.bottom"
|
|
38
62
|
:animated="animated"
|
|
39
63
|
fill="#9095AD"
|
|
40
64
|
class="icon-dark"
|
|
@@ -1,33 +1,59 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { iconViewChart } from '@cypress-design/constants-icon'
|
|
3
2
|
import PathMorpher from './_PathMorpher.vue'
|
|
3
|
+
import {
|
|
4
|
+
type HasStrokeColor,
|
|
5
|
+
type HasFillColor,
|
|
6
|
+
type HasSecondaryStrokeColor,
|
|
7
|
+
getComponentAttributes,
|
|
8
|
+
iconAnimatedViewChart,
|
|
9
|
+
} from '@cypress-design/icon-registry'
|
|
10
|
+
import { computed } from 'vue'
|
|
4
11
|
|
|
5
|
-
withDefaults(
|
|
6
|
-
defineProps<
|
|
7
|
-
|
|
8
|
-
|
|
12
|
+
const props = withDefaults(
|
|
13
|
+
defineProps<
|
|
14
|
+
{
|
|
15
|
+
animated?: boolean
|
|
16
|
+
interactiveColorsOnGroup?: boolean
|
|
17
|
+
} & HasStrokeColor &
|
|
18
|
+
HasFillColor &
|
|
19
|
+
HasSecondaryStrokeColor
|
|
20
|
+
>(),
|
|
9
21
|
{
|
|
10
22
|
animated: false,
|
|
11
23
|
},
|
|
12
24
|
)
|
|
25
|
+
|
|
26
|
+
const compiledClasses = computed(
|
|
27
|
+
() =>
|
|
28
|
+
getComponentAttributes({
|
|
29
|
+
...props,
|
|
30
|
+
availableSizes: ['24'],
|
|
31
|
+
interactiveColorsOnGroup: props.interactiveColorsOnGroup,
|
|
32
|
+
}).compiledClasses,
|
|
33
|
+
)
|
|
13
34
|
</script>
|
|
14
35
|
|
|
15
36
|
<template>
|
|
16
|
-
<svg
|
|
37
|
+
<svg
|
|
38
|
+
viewBox="0 0 24 24"
|
|
39
|
+
fill="none"
|
|
40
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
41
|
+
:class="compiledClasses"
|
|
42
|
+
>
|
|
17
43
|
<PathMorpher
|
|
18
|
-
v-bind="
|
|
44
|
+
v-bind="iconAnimatedViewChart.topRight"
|
|
19
45
|
fill="#AFB3C7"
|
|
20
46
|
class="icon-light"
|
|
21
47
|
:animated="animated"
|
|
22
48
|
/>
|
|
23
49
|
<PathMorpher
|
|
24
|
-
v-bind="
|
|
50
|
+
v-bind="iconAnimatedViewChart.left"
|
|
25
51
|
fill="#747994"
|
|
26
52
|
class="icon-dark-secondary"
|
|
27
53
|
:animated="animated"
|
|
28
54
|
/>
|
|
29
55
|
<PathMorpher
|
|
30
|
-
v-bind="
|
|
56
|
+
v-bind="iconAnimatedViewChart.bottom"
|
|
31
57
|
fill="#1B1E2E"
|
|
32
58
|
class="icon-dark"
|
|
33
59
|
:animated="animated"
|
package/animated/_testUtils.tsx
CHANGED
|
@@ -35,6 +35,30 @@ export function iconTests(Icon: any) {
|
|
|
35
35
|
cy.get('svg').click()
|
|
36
36
|
})
|
|
37
37
|
|
|
38
|
+
it('renders with props', { viewportHeight: 550 }, () => {
|
|
39
|
+
const isAnimated = ref(false)
|
|
40
|
+
|
|
41
|
+
mount(() => (
|
|
42
|
+
<>
|
|
43
|
+
<pre>{isAnimated.value ? 'animated' : 'not animated'}</pre>
|
|
44
|
+
|
|
45
|
+
<Icon
|
|
46
|
+
animated={isAnimated.value}
|
|
47
|
+
width={400}
|
|
48
|
+
height={400}
|
|
49
|
+
fillColor="indigo-500"
|
|
50
|
+
strokeColor="jade-300"
|
|
51
|
+
secondaryStrokeColor="purple-400"
|
|
52
|
+
onClick={() => {
|
|
53
|
+
isAnimated.value = !isAnimated.value
|
|
54
|
+
}}
|
|
55
|
+
/>
|
|
56
|
+
</>
|
|
57
|
+
))
|
|
58
|
+
|
|
59
|
+
cy.get('svg').click()
|
|
60
|
+
})
|
|
61
|
+
|
|
38
62
|
it('renders both side by side', { viewportWidth: 900 }, () => {
|
|
39
63
|
mount(() => (
|
|
40
64
|
<div class="bg-black flex gap-4 text-center text-2xl">
|
package/dist/Icon.d.ts
CHANGED
|
@@ -1,145 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import type { OpenIconProps, IconProps } from '@cypress-design/icon-registry';
|
|
2
|
+
interface Props extends Pick<IconProps, 'name'>, Omit<OpenIconProps, 'name'> {
|
|
2
3
|
class?: any;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
name?: any;
|
|
6
|
-
interactiveColorsOnGroup?: any;
|
|
7
|
-
focusWithinStrokeColor?: any;
|
|
8
|
-
hoverStrokeColor?: any;
|
|
9
|
-
focusStrokeColor?: any;
|
|
10
|
-
hocusStrokeColor?: any;
|
|
11
|
-
strokeColor?: any;
|
|
12
|
-
focusWithinFillColor?: any;
|
|
13
|
-
hoverFillColor?: any;
|
|
14
|
-
focusFillColor?: any;
|
|
15
|
-
hocusFillColor?: any;
|
|
16
|
-
fillColor?: any;
|
|
17
|
-
focusWithinSecondaryStrokeColor?: any;
|
|
18
|
-
hoverSecondaryStrokeColor?: any;
|
|
19
|
-
focusSecondaryStrokeColor?: any;
|
|
20
|
-
hocusSecondaryStrokeColor?: any;
|
|
21
|
-
secondaryStrokeColor?: any;
|
|
22
|
-
focusWithinSecondaryFillColor?: any;
|
|
23
|
-
hoverSecondaryFillColor?: any;
|
|
24
|
-
focusSecondaryFillColor?: any;
|
|
25
|
-
hocusSecondaryFillColor?: any;
|
|
26
|
-
secondaryFillColor?: any;
|
|
27
|
-
"focus-within-fill-color"?: any;
|
|
28
|
-
"focus-within-stroke-color"?: any;
|
|
29
|
-
"focus-within-secondary-fill-color"?: any;
|
|
30
|
-
"focus-within-secondary-stroke-color"?: any;
|
|
31
|
-
"hover-fill-color"?: any;
|
|
32
|
-
"hover-stroke-color"?: any;
|
|
33
|
-
"hover-secondary-fill-color"?: any;
|
|
34
|
-
"hover-secondary-stroke-color"?: any;
|
|
35
|
-
"focus-fill-color"?: any;
|
|
36
|
-
"focus-stroke-color"?: any;
|
|
37
|
-
"focus-secondary-fill-color"?: any;
|
|
38
|
-
"focus-secondary-stroke-color"?: any;
|
|
39
|
-
"hocus-fill-color"?: any;
|
|
40
|
-
"hocus-stroke-color"?: any;
|
|
41
|
-
"hocus-secondary-fill-color"?: any;
|
|
42
|
-
"hocus-secondary-stroke-color"?: any;
|
|
43
|
-
"fill-color"?: any;
|
|
44
|
-
"stroke-color"?: any;
|
|
45
|
-
"secondary-fill-color"?: any;
|
|
46
|
-
"secondary-stroke-color"?: any;
|
|
47
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
}> | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props>, {
|
|
52
6
|
class?: any;
|
|
53
|
-
size?: any;
|
|
54
|
-
alt?: any;
|
|
55
|
-
name?: any;
|
|
56
|
-
interactiveColorsOnGroup?: any;
|
|
57
|
-
focusWithinStrokeColor?: any;
|
|
58
|
-
hoverStrokeColor?: any;
|
|
59
|
-
focusStrokeColor?: any;
|
|
60
|
-
hocusStrokeColor?: any;
|
|
61
|
-
strokeColor?: any;
|
|
62
|
-
focusWithinFillColor?: any;
|
|
63
|
-
hoverFillColor?: any;
|
|
64
|
-
focusFillColor?: any;
|
|
65
|
-
hocusFillColor?: any;
|
|
66
|
-
fillColor?: any;
|
|
67
|
-
focusWithinSecondaryStrokeColor?: any;
|
|
68
|
-
hoverSecondaryStrokeColor?: any;
|
|
69
|
-
focusSecondaryStrokeColor?: any;
|
|
70
|
-
hocusSecondaryStrokeColor?: any;
|
|
71
|
-
secondaryStrokeColor?: any;
|
|
72
|
-
focusWithinSecondaryFillColor?: any;
|
|
73
|
-
hoverSecondaryFillColor?: any;
|
|
74
|
-
focusSecondaryFillColor?: any;
|
|
75
|
-
hocusSecondaryFillColor?: any;
|
|
76
|
-
secondaryFillColor?: any;
|
|
77
|
-
"focus-within-fill-color"?: any;
|
|
78
|
-
"focus-within-stroke-color"?: any;
|
|
79
|
-
"focus-within-secondary-fill-color"?: any;
|
|
80
|
-
"focus-within-secondary-stroke-color"?: any;
|
|
81
|
-
"hover-fill-color"?: any;
|
|
82
|
-
"hover-stroke-color"?: any;
|
|
83
|
-
"hover-secondary-fill-color"?: any;
|
|
84
|
-
"hover-secondary-stroke-color"?: any;
|
|
85
|
-
"focus-fill-color"?: any;
|
|
86
|
-
"focus-stroke-color"?: any;
|
|
87
|
-
"focus-secondary-fill-color"?: any;
|
|
88
|
-
"focus-secondary-stroke-color"?: any;
|
|
89
|
-
"hocus-fill-color"?: any;
|
|
90
|
-
"hocus-stroke-color"?: any;
|
|
91
|
-
"hocus-secondary-fill-color"?: any;
|
|
92
|
-
"hocus-secondary-stroke-color"?: any;
|
|
93
|
-
"fill-color"?: any;
|
|
94
|
-
"stroke-color"?: any;
|
|
95
|
-
"secondary-fill-color"?: any;
|
|
96
|
-
"secondary-stroke-color"?: any;
|
|
97
|
-
}>>>, {
|
|
98
|
-
readonly class?: any;
|
|
99
|
-
readonly size?: any;
|
|
100
|
-
readonly alt?: any;
|
|
101
|
-
readonly name?: any;
|
|
102
|
-
readonly interactiveColorsOnGroup?: any;
|
|
103
|
-
readonly focusWithinStrokeColor?: any;
|
|
104
|
-
readonly hoverStrokeColor?: any;
|
|
105
|
-
readonly focusStrokeColor?: any;
|
|
106
|
-
readonly hocusStrokeColor?: any;
|
|
107
|
-
readonly strokeColor?: any;
|
|
108
|
-
readonly focusWithinFillColor?: any;
|
|
109
|
-
readonly hoverFillColor?: any;
|
|
110
|
-
readonly focusFillColor?: any;
|
|
111
|
-
readonly hocusFillColor?: any;
|
|
112
|
-
readonly fillColor?: any;
|
|
113
|
-
readonly focusWithinSecondaryStrokeColor?: any;
|
|
114
|
-
readonly hoverSecondaryStrokeColor?: any;
|
|
115
|
-
readonly focusSecondaryStrokeColor?: any;
|
|
116
|
-
readonly hocusSecondaryStrokeColor?: any;
|
|
117
|
-
readonly secondaryStrokeColor?: any;
|
|
118
|
-
readonly focusWithinSecondaryFillColor?: any;
|
|
119
|
-
readonly hoverSecondaryFillColor?: any;
|
|
120
|
-
readonly focusSecondaryFillColor?: any;
|
|
121
|
-
readonly hocusSecondaryFillColor?: any;
|
|
122
|
-
readonly secondaryFillColor?: any;
|
|
123
|
-
readonly "focus-within-fill-color"?: any;
|
|
124
|
-
readonly "focus-within-stroke-color"?: any;
|
|
125
|
-
readonly "focus-within-secondary-fill-color"?: any;
|
|
126
|
-
readonly "focus-within-secondary-stroke-color"?: any;
|
|
127
|
-
readonly "hover-fill-color"?: any;
|
|
128
|
-
readonly "hover-stroke-color"?: any;
|
|
129
|
-
readonly "hover-secondary-fill-color"?: any;
|
|
130
|
-
readonly "hover-secondary-stroke-color"?: any;
|
|
131
|
-
readonly "focus-fill-color"?: any;
|
|
132
|
-
readonly "focus-stroke-color"?: any;
|
|
133
|
-
readonly "focus-secondary-fill-color"?: any;
|
|
134
|
-
readonly "focus-secondary-stroke-color"?: any;
|
|
135
|
-
readonly "hocus-fill-color"?: any;
|
|
136
|
-
readonly "hocus-stroke-color"?: any;
|
|
137
|
-
readonly "hocus-secondary-fill-color"?: any;
|
|
138
|
-
readonly "hocus-secondary-stroke-color"?: any;
|
|
139
|
-
readonly "fill-color"?: any;
|
|
140
|
-
readonly "stroke-color"?: any;
|
|
141
|
-
readonly "secondary-fill-color"?: any;
|
|
142
|
-
readonly "secondary-stroke-color"?: any;
|
|
143
7
|
}, {}>;
|
|
144
8
|
export default _default;
|
|
145
9
|
//# sourceMappingURL=Icon.d.ts.map
|
package/dist/Icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../Icon.ts"],"names":[],"mappings":"
|
|
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;;;;AAED,wBA0DE"}
|
|
@@ -69,6 +69,11 @@ export declare const IconActionExport: import("vue").DefineSetupFnComponent<Omit
|
|
|
69
69
|
}, {}, {}, Omit<iconsRegistry.IconActionExportProps, "name"> & {
|
|
70
70
|
class?: any;
|
|
71
71
|
} & {}, import("vue").PublicProps>;
|
|
72
|
+
export declare const IconActionInfoSolid: import("vue").DefineSetupFnComponent<Omit<iconsRegistry.IconActionInfoSolidProps, "name"> & {
|
|
73
|
+
class?: any;
|
|
74
|
+
}, {}, {}, Omit<iconsRegistry.IconActionInfoSolidProps, "name"> & {
|
|
75
|
+
class?: any;
|
|
76
|
+
} & {}, import("vue").PublicProps>;
|
|
72
77
|
export declare const IconActionNext: import("vue").DefineSetupFnComponent<Omit<iconsRegistry.IconActionNextProps, "name"> & {
|
|
73
78
|
class?: any;
|
|
74
79
|
}, {}, {}, Omit<iconsRegistry.IconActionNextProps, "name"> & {
|