@cypress-design/vue-icon 0.22.2 → 0.22.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/generate-icons.js CHANGED
@@ -22,9 +22,12 @@ const iconsComponents = Object.keys(iconsMetadata).map((name) => {
22
22
  }, {})
23
23
  return dedent`
24
24
  export const Icon${pascalCaseName} = (props: SVGAttributes & Omit<iconsRegistry.Icon${pascalCaseName}Props, 'name'>) => {
25
- const { sizeWithDefault: size, compiledClasses } = iconsRegistry.getComponentAttributes({ ...(props as any), availableSizes: ${JSON.stringify(
26
- iconMetadata.availableSizes
27
- )} })
25
+ const { interactiveColorsOnGroup, name, ...cleanProps } = props
26
+ const { sizeWithDefault: size, compiledClasses } = iconsRegistry.getComponentAttributes({
27
+ ...cleanProps,
28
+ availableSizes: ${JSON.stringify(iconMetadata.availableSizes)},
29
+ interactiveColorsOnGroup
30
+ })
28
31
  const iconBodies: Record<string, string> = ${JSON.stringify(
29
32
  iconBodies,
30
33
  null,
@@ -35,7 +38,7 @@ const iconsComponents = Object.keys(iconsMetadata).map((name) => {
35
38
  throw Error(\`Icon "${name}" is not available in size ${'$'}{size}\`)
36
39
  }
37
40
  return h('svg', compileVueIconProperties({
38
- ...props,
41
+ ...cleanProps,
39
42
  size,
40
43
  body,
41
44
  compiledClasses
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress-design/vue-icon",
3
- "version": "0.22.2",
3
+ "version": "0.22.4",
4
4
  "files": [
5
5
  "*"
6
6
  ],
@@ -21,7 +21,7 @@
21
21
  "build:types": "yarn tsc --project ./tsconfig.build.json"
22
22
  },
23
23
  "dependencies": {
24
- "@cypress-design/icon-registry": "^0.22.1"
24
+ "@cypress-design/icon-registry": "^0.23.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@cypress-design/css": "*",
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../tsconfig.vue.json",
2
+ "extends": "../../../tsconfig.vue.build.json",
3
3
  "include": ["./*.vue", "./index.ts"],
4
4
  "compilerOptions": {
5
5
  "outDir": "dist",
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.vue.json",
3
- "compilerOptions": {
4
- "rootDir": "../"
5
- },
6
- "exclude": ["vite.config.ts"],
7
- "include": ["*.vue", "*.ts", "*.tsx"]
8
- }