@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.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +25 -0
- package/IconReact.cy.tsx +11 -3
- package/_TreeShakableIcons.ts +279 -216
- package/animated/_IconGeneralChatBubble.cy.tsx +6 -0
- package/animated/_IconGeneralChatBubble.tsx +31 -0
- package/animated/_IconObjectGear.cy.tsx +6 -0
- package/animated/_IconObjectGear.tsx +28 -0
- package/animated/_IconTechnologyGitBranches.cy.tsx +6 -0
- package/animated/_IconTechnologyGitBranches.tsx +31 -0
- package/animated/_IconTechnologyServer.cy.tsx +6 -0
- package/animated/_IconTechnologyServer.tsx +46 -0
- package/animated/_IconViewChart.cy.tsx +6 -0
- package/animated/_IconViewChart.tsx +38 -0
- package/animated/_Morphers.tsx +54 -0
- package/animated/_testUtils.tsx +69 -0
- package/animated/index.ts +5 -0
- package/compileProperties.ts +7 -1
- package/dist/_TreeShakableIcons.d.ts +6 -0
- package/dist/_TreeShakableIcons.d.ts.map +1 -1
- package/dist/animated/_IconGeneralChatBubble.d.ts +6 -0
- package/dist/animated/_IconGeneralChatBubble.d.ts.map +1 -0
- package/dist/animated/_IconObjectGear.d.ts +6 -0
- package/dist/animated/_IconObjectGear.d.ts.map +1 -0
- package/dist/animated/_IconTechnologyGitBranches.d.ts +6 -0
- package/dist/animated/_IconTechnologyGitBranches.d.ts.map +1 -0
- package/dist/animated/_IconTechnologyServer.d.ts +6 -0
- package/dist/animated/_IconTechnologyServer.d.ts.map +1 -0
- package/dist/animated/_IconViewChart.d.ts +6 -0
- package/dist/animated/_IconViewChart.d.ts.map +1 -0
- package/dist/animated/_Morphers.d.ts +10 -0
- package/dist/animated/_Morphers.d.ts.map +1 -0
- package/dist/animated/index.d.ts +6 -0
- package/dist/animated/index.d.ts.map +1 -0
- package/dist/compileProperties.d.ts +2 -1
- package/dist/compileProperties.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.mjs +384 -222
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +395 -223
- package/dist/index.umd.js.map +1 -1
- package/generate-icons.js +3 -3
- package/index.ts +1 -0
- package/package.json +5 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -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
|
-
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [1m10.
|
|
12
|
+
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [1m10.7s[22m[39m
|
|
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
|
})
|