@cypress-design/icon-registry 0.34.0 → 0.36.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress-design/icon-registry",
3
- "version": "0.34.0",
3
+ "version": "0.36.0",
4
4
  "description": "All svg files to be exposed to the Icon component",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.mjs",
@@ -22,14 +22,14 @@
22
22
  "src/index.ts"
23
23
  ],
24
24
  "dependencies": {
25
- "@cypress-design/css": "^0.17.1"
25
+ "@cypress-design/css": "^0.19.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/lodash": "^4.14.202",
29
29
  "dedent": "^1.5.1",
30
- "globby": "^14.0.0",
30
+ "globby": "^14.0.1",
31
31
  "lodash": "^4.17.21",
32
- "svg-to-ts": "^11.0.1",
32
+ "svg-to-ts": "^12.0.0",
33
33
  "wait-cli": "^1.0.0"
34
34
  },
35
35
  "svg-to-ts": {
@@ -7,7 +7,7 @@ import { iconSet } from './iconsList'
7
7
  const camelCase = _.camelCase
8
8
 
9
9
  export const compileIcon = (
10
- props: Omit<OpenIconProps, 'name'> & Pick<IconProps, 'name'>
10
+ props: Omit<OpenIconProps, 'name'> & Pick<IconProps, 'name'>,
11
11
  ) => {
12
12
  const { interactiveColorsOnGroup, name, ...cleanProps } = props
13
13
  const { availableSizes } = iconsMetadata[name]
@@ -42,7 +42,7 @@ export const compileIcon = (
42
42
  export const getComponentAttributes = (
43
43
  props: {
44
44
  availableSizes: readonly string[]
45
- } & Omit<OpenIconProps, 'name'>
45
+ } & Omit<OpenIconProps, 'name'>,
46
46
  ) => {
47
47
  const { size, availableSizes, interactiveColorsOnGroup, ...otherProps } =
48
48
  props
@@ -69,8 +69,8 @@ export const getComponentAttributes = (
69
69
  (attrName) =>
70
70
  otherProps[attrName as keyof typeof otherProps] &&
71
71
  ICON_COLOR_PROP_NAMES.includes(
72
- attrName as (typeof ICON_COLOR_PROP_NAMES)[number]
73
- )
72
+ attrName as (typeof ICON_COLOR_PROP_NAMES)[number],
73
+ ),
74
74
  )
75
75
  .map((colorAttrName: string) => {
76
76
  const color = otherProps[colorAttrName as keyof ColorIconProps]