@cypress-design/vue-icon 0.34.1 → 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.
Files changed (33) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/CHANGELOG.md +22 -0
  3. package/Icon.ts +12 -7
  4. package/_TreeShakableIcons.ts +329 -326
  5. package/animated/_IconGeneralChatBubble.vue +32 -8
  6. package/animated/_IconObjectGear.vue +31 -7
  7. package/animated/_IconTechnologyGitBranches.vue +33 -8
  8. package/animated/_IconTechnologyServer.vue +33 -9
  9. package/animated/_IconViewChart.vue +35 -9
  10. package/animated/_testUtils.tsx +24 -0
  11. package/dist/Icon.d.ts +4 -140
  12. package/dist/Icon.d.ts.map +1 -1
  13. package/dist/_TreeShakableIcons.d.ts +940 -470
  14. package/dist/_TreeShakableIcons.d.ts.map +1 -1
  15. package/dist/animated/_IconGeneralChatBubble.vue.d.ts +16 -13
  16. package/dist/animated/_IconGeneralChatBubble.vue.d.ts.map +1 -1
  17. package/dist/animated/_IconObjectGear.vue.d.ts +16 -13
  18. package/dist/animated/_IconObjectGear.vue.d.ts.map +1 -1
  19. package/dist/animated/_IconTechnologyGitBranches.vue.d.ts +16 -13
  20. package/dist/animated/_IconTechnologyGitBranches.vue.d.ts.map +1 -1
  21. package/dist/animated/_IconTechnologyServer.vue.d.ts +16 -13
  22. package/dist/animated/_IconTechnologyServer.vue.d.ts.map +1 -1
  23. package/dist/animated/_IconViewChart.vue.d.ts +16 -13
  24. package/dist/animated/_IconViewChart.vue.d.ts.map +1 -1
  25. package/dist/animated/_PathMorpher.vue.d.ts +12 -12
  26. package/dist/animated/_PathMorpher.vue.d.ts.map +1 -1
  27. package/dist/compileProperties.d.ts +25 -25
  28. package/dist/index.es.mjs +2215 -2155
  29. package/dist/index.es.mjs.map +1 -1
  30. package/dist/index.umd.js +2 -2
  31. package/dist/index.umd.js.map +1 -1
  32. package/package.json +3 -4
  33. package/tsconfig.build.json +1 -1
@@ -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
  The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
6
- vite v5.1.4 building for production...
6
+ vite v5.2.3 building for production...
7
7
  transforming...
8
- ✓ 18 modules transformed.
8
+ ✓ 17 modules transformed.
9
9
  rendering chunks...
10
10
  computing gzip size...
11
- dist/index.es.mjs 276.07 kB │ gzip: 55.63 kB │ map: 492.86 kB
11
+ dist/index.es.mjs 278.86 kB │ gzip: 55.73 kB │ map: 499.44 kB
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
- dist/index.umd.js 250.01 kB │ gzip: 55.01 kB │ map: 480.85 kB
14
- ✓ built in 4.90s
13
+ dist/index.umd.js 252.25 kB │ gzip: 54.84 kB │ map: 487.42 kB
14
+ ✓ built in 8.00s
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.36.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`6f2ae04`](https://github.com/cypress-io/cypress-design/commit/6f2ae04a7202e13deabf0bf981f035ed03f3616e)]:
12
+ - @cypress-design/icon-registry@0.38.0
13
+
14
+ ## 0.35.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#398](https://github.com/cypress-io/cypress-design/pull/398) [`20529b7`](https://github.com/cypress-io/cypress-design/commit/20529b7bc5f96006ce5b8ecde5e740420f0c2fac) Thanks [@emilmilanov](https://github.com/emilmilanov)! - Added pin con x12
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`20529b7`](https://github.com/cypress-io/cypress-design/commit/20529b7bc5f96006ce5b8ecde5e740420f0c2fac)]:
23
+ - @cypress-design/icon-registry@0.37.0
24
+
3
25
  ## 0.34.1
4
26
 
5
27
  ### Patch Changes
package/Icon.ts CHANGED
@@ -10,7 +10,16 @@ import {
10
10
  useShouldRenderDefs,
11
11
  } from './compileProperties'
12
12
 
13
- export default defineComponent({
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: OpenIconProps &
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(() => {