@cypress-design/react-icon 0.22.0 → 0.22.2
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 +15 -0
- package/IconReact.cy.tsx +15 -1
- package/_TreeShakableIcons.ts +1171 -3387
- package/compileProperties.ts +27 -0
- package/dist/_TreeShakableIcons.d.ts +1 -1
- package/dist/_TreeShakableIcons.d.ts.map +1 -1
- package/dist/compileProperties.d.ts +172 -171
- package/dist/compileProperties.d.ts.map +1 -1
- package/dist/index.es.mjs +1382 -2503
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +1382 -2503
- package/dist/index.umd.js.map +1 -1
- package/generate-icons.js +41 -22
- package/package.json +5 -5
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 [
|
|
12
|
+
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [1m17.8s[22m[39m
|
|
13
13
|
$ tsc --project ./tsconfig.build.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @cypress-design/react-icon
|
|
2
2
|
|
|
3
|
+
## 0.22.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#234](https://github.com/cypress-io/cypress-design/pull/234) [`ff95963`](https://github.com/cypress-io/cypress-design/commit/ff95963feb7ae5d9eb01e6122e5e411517f105b9) Thanks [@elevatebart](https://github.com/elevatebart)! - allow to use a gradient icon more than once
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`ff95963`](https://github.com/cypress-io/cypress-design/commit/ff95963feb7ae5d9eb01e6122e5e411517f105b9)]:
|
|
10
|
+
- @cypress-design/icon-registry@0.24.1
|
|
11
|
+
|
|
12
|
+
## 0.22.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#245](https://github.com/cypress-io/cypress-design/pull/245) [`d52d023`](https://github.com/cypress-io/cypress-design/commit/d52d02301bb851d514661a8c258d0c4ae5baf171) Thanks [@elevatebart](https://github.com/elevatebart)! - use tailwind to rollup classes in the final package
|
|
17
|
+
|
|
3
18
|
## 0.22.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/IconReact.cy.tsx
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
import { mount } from 'cypress/react18'
|
|
3
3
|
import assertions from '../assertions'
|
|
4
|
-
import Icon, {
|
|
4
|
+
import Icon, {
|
|
5
|
+
IconBrowserWebkit,
|
|
6
|
+
IconObjectBookCode,
|
|
7
|
+
IconDocumentBlank,
|
|
8
|
+
} from './index'
|
|
5
9
|
|
|
6
10
|
describe('Icon', { viewportWidth: 80, viewportHeight: 80 }, () => {
|
|
7
11
|
it('renders correctly', () => {
|
|
@@ -36,10 +40,20 @@ describe('Icon', { viewportWidth: 80, viewportHeight: 80 }, () => {
|
|
|
36
40
|
</ul>
|
|
37
41
|
)
|
|
38
42
|
})
|
|
43
|
+
|
|
39
44
|
assertions(({ class: className, ...props }) => {
|
|
40
45
|
if (props.name) {
|
|
41
46
|
return mount(<Icon className={className} {...props} />)
|
|
42
47
|
}
|
|
43
48
|
mount(<IconDocumentBlank className={className} {...props} />)
|
|
44
49
|
})
|
|
50
|
+
|
|
51
|
+
it('renders multiple times an icon with defs', () => {
|
|
52
|
+
mount(
|
|
53
|
+
<div className="p-2">
|
|
54
|
+
<IconBrowserWebkit className="w-16 h-16 hidden" />
|
|
55
|
+
<IconBrowserWebkit className="w-16 h-16" />
|
|
56
|
+
</div>
|
|
57
|
+
)
|
|
58
|
+
})
|
|
45
59
|
})
|