@cypress-design/react-icon 0.30.1 → 0.32.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 (45) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +25 -0
  3. package/IconReact.cy.tsx +11 -3
  4. package/_TreeShakableIcons.ts +279 -216
  5. package/animated/_IconGeneralChatBubble.cy.tsx +6 -0
  6. package/animated/_IconGeneralChatBubble.tsx +31 -0
  7. package/animated/_IconObjectGear.cy.tsx +6 -0
  8. package/animated/_IconObjectGear.tsx +28 -0
  9. package/animated/_IconTechnologyGitBranches.cy.tsx +6 -0
  10. package/animated/_IconTechnologyGitBranches.tsx +31 -0
  11. package/animated/_IconTechnologyServer.cy.tsx +6 -0
  12. package/animated/_IconTechnologyServer.tsx +46 -0
  13. package/animated/_IconViewChart.cy.tsx +6 -0
  14. package/animated/_IconViewChart.tsx +38 -0
  15. package/animated/_Morphers.tsx +54 -0
  16. package/animated/_testUtils.tsx +69 -0
  17. package/animated/index.ts +5 -0
  18. package/compileProperties.ts +7 -1
  19. package/dist/_TreeShakableIcons.d.ts +6 -0
  20. package/dist/_TreeShakableIcons.d.ts.map +1 -1
  21. package/dist/animated/_IconGeneralChatBubble.d.ts +6 -0
  22. package/dist/animated/_IconGeneralChatBubble.d.ts.map +1 -0
  23. package/dist/animated/_IconObjectGear.d.ts +6 -0
  24. package/dist/animated/_IconObjectGear.d.ts.map +1 -0
  25. package/dist/animated/_IconTechnologyGitBranches.d.ts +6 -0
  26. package/dist/animated/_IconTechnologyGitBranches.d.ts.map +1 -0
  27. package/dist/animated/_IconTechnologyServer.d.ts +6 -0
  28. package/dist/animated/_IconTechnologyServer.d.ts.map +1 -0
  29. package/dist/animated/_IconViewChart.d.ts +6 -0
  30. package/dist/animated/_IconViewChart.d.ts.map +1 -0
  31. package/dist/animated/_Morphers.d.ts +10 -0
  32. package/dist/animated/_Morphers.d.ts.map +1 -0
  33. package/dist/animated/index.d.ts +6 -0
  34. package/dist/animated/index.d.ts.map +1 -0
  35. package/dist/compileProperties.d.ts +2 -1
  36. package/dist/compileProperties.d.ts.map +1 -1
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.es.mjs +384 -222
  40. package/dist/index.es.mjs.map +1 -1
  41. package/dist/index.umd.js +395 -223
  42. package/dist/index.umd.js.map +1 -1
  43. package/generate-icons.js +3 -3
  44. package/index.ts +1 -0
  45. package/package.json +5 -4
@@ -9,5 +9,5 @@ $ rollup -c ./rollup.config.mjs
9
9
  index.ts
10
10
 
11
11
  Consumers of your bundle will have to use chunk.default to access their default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
12
- created ./dist/index.umd.js, ./dist/index.es.mjs in 10.3s
12
+ created ./dist/index.umd.js, ./dist/index.es.mjs in 10.7s
13
13
  $ tsc --project ./tsconfig.build.json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @cypress-design/react-icon
2
2
 
3
+ ## 0.32.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#391](https://github.com/cypress-io/cypress-design/pull/391) [`7f9ebbb`](https://github.com/cypress-io/cypress-design/commit/7f9ebbb83744d4109498f921f7de5539ccc3b479) Thanks [@elevatebart](https://github.com/elevatebart)! - feat: add alt prop to icons to make them accessible if not presentational
8
+
9
+ ### Patch Changes
10
+
11
+ - [#367](https://github.com/cypress-io/cypress-design/pull/367) [`2f984a0`](https://github.com/cypress-io/cypress-design/commit/2f984a02807f344a878ac65ac9fab62bc0c9442d) Thanks [@elevatebart](https://github.com/elevatebart)! - first creation of menu item
12
+
13
+ - Updated dependencies [[`7f9ebbb`](https://github.com/cypress-io/cypress-design/commit/7f9ebbb83744d4109498f921f7de5539ccc3b479), [`2f984a0`](https://github.com/cypress-io/cypress-design/commit/2f984a02807f344a878ac65ac9fab62bc0c9442d)]:
14
+ - @cypress-design/icon-registry@0.35.0
15
+ - @cypress-design/constants-icon@0.0.2
16
+
17
+ ## 0.31.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [#383](https://github.com/cypress-io/cypress-design/pull/383) [`04bd296`](https://github.com/cypress-io/cypress-design/commit/04bd296f515ad300450deb2f838dc3ac6bae26f7) Thanks [@jordanpowell88](https://github.com/jordanpowell88)! - chore(icons): add a11y and ui-coverage icons
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [[`04bd296`](https://github.com/cypress-io/cypress-design/commit/04bd296f515ad300450deb2f838dc3ac6bae26f7)]:
26
+ - @cypress-design/icon-registry@0.34.0
27
+
3
28
  ## 0.30.1
4
29
 
5
30
  ### Patch Changes
package/IconReact.cy.tsx CHANGED
@@ -8,7 +8,7 @@ import Icon, {
8
8
  } from './index'
9
9
 
10
10
  describe('Icon', { viewportWidth: 80, viewportHeight: 80 }, () => {
11
- it('renders correctly', () => {
11
+ it('renders correctly', { viewportWidth: 500, viewportHeight: 500 }, () => {
12
12
  mount(
13
13
  <ul className="m-4">
14
14
  <li className="flex items-center px-2 mb-3">
@@ -37,7 +37,7 @@ describe('Icon', { viewportWidth: 80, viewportHeight: 80 }, () => {
37
37
  Add a new icon
38
38
  </button>
39
39
  </li>
40
- </ul>
40
+ </ul>,
41
41
  )
42
42
  })
43
43
 
@@ -53,7 +53,15 @@ describe('Icon', { viewportWidth: 80, viewportHeight: 80 }, () => {
53
53
  <div className="p-2">
54
54
  <IconBrowserWebkit className="w-16 h-16 hidden" />
55
55
  <IconBrowserWebkit className="w-16 h-16" />
56
- </div>
56
+ </div>,
57
57
  )
58
58
  })
59
+
60
+ it('renders a title element when passed an alt prop', () => {
61
+ mount(
62
+ <IconBrowserWebkit className="w-16 h-16" alt="This is a <b>title</b>" />,
63
+ )
64
+
65
+ cy.get('svg title').should('have.text', 'This is a <b>title</b>')
66
+ })
59
67
  })