@cypress-design/vue-icon 0.31.0 → 0.31.1

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
@@ -27,7 +27,9 @@ const iconsComponents = Object.keys(iconsMetadata).map((name) => {
27
27
  }, {})
28
28
 
29
29
  return dedent`
30
- export const Icon${pascalCaseName} = defineComponent({
30
+ export const Icon${pascalCaseName} = defineComponent<Omit<iconsRegistry.Icon${pascalCaseName}Props, 'name'> & {
31
+ class?: any
32
+ }>({
31
33
  ...__iconComponentOpts__,
32
34
  setup(props: Omit<iconsRegistry.Icon${pascalCaseName}Props, 'name'> & {
33
35
  class?: any
@@ -60,7 +62,7 @@ import { compileVueIconProperties, useShouldRenderDefs } from './compileProperti
60
62
 
61
63
  const __iconComponentOpts__ = {
62
64
  props: [...iconsRegistry.ICON_COLOR_PROP_NAMES, 'interactiveColorsOnGroup', 'size', 'class'] as string[],
63
- } as const
65
+ } as any
64
66
 
65
67
  function useIconProps(props: SVGAttributes & Omit<iconsRegistry.IconProps, 'name'>, iconBodiesAndDefs: Record<string, {body: string, defs?: string}>, availableSizes: string[], name: string) {
66
68
  return computed(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress-design/vue-icon",
3
- "version": "0.31.0",
3
+ "version": "0.31.1",
4
4
  "files": [
5
5
  "*"
6
6
  ],
@@ -18,7 +18,7 @@
18
18
  "build": "yarn build:codegen && yarn build:module && yarn build:types",
19
19
  "build:codegen": "node ./generate-icons.js",
20
20
  "build:module": "yarn vite build",
21
- "build:types": "yarn tsc --project ./tsconfig.build.json"
21
+ "build:types": "yarn vue-tsc --project ./tsconfig.build.json"
22
22
  },
23
23
  "dependencies": {
24
24
  "@cypress-design/icon-registry": "^0.33.0"