@cypress-design/vue-icon 0.38.0 → 0.39.1

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.
@@ -8,9 +8,9 @@ transforming...
8
8
  ✓ 17 modules transformed.
9
9
  rendering chunks...
10
10
  computing gzip size...
11
- dist/index.es.mjs 280.45 kB │ gzip: 55.89 kB │ map: 502.83 kB
11
+ dist/index.es.mjs 292.09 kB │ gzip: 57.45 kB │ map: 522.98 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 253.63 kB │ gzip: 54.98 kB │ map: 490.72 kB
14
- ✓ built in 7.26s
13
+ dist/index.umd.js 264.22 kB │ gzip: 56.53 kB │ map: 510.38 kB
14
+ ✓ built in 8.52s
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.39.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#435](https://github.com/cypress-io/cypress-design/pull/435) [`bf0ef3f`](https://github.com/cypress-io/cypress-design/commit/bf0ef3f6504ea3dba71dcb00d8d2eb0a96e0fa55) Thanks [@elevatebart](https://github.com/elevatebart)! - fix: avoid showing the passed classes twice
8
+
9
+ - [#435](https://github.com/cypress-io/cypress-design/pull/435) [`bf0ef3f`](https://github.com/cypress-io/cypress-design/commit/bf0ef3f6504ea3dba71dcb00d8d2eb0a96e0fa55) Thanks [@elevatebart](https://github.com/elevatebart)! - fix: use proper prefixing for icons defs ids
10
+
11
+ - Updated dependencies [[`bf0ef3f`](https://github.com/cypress-io/cypress-design/commit/bf0ef3f6504ea3dba71dcb00d8d2eb0a96e0fa55), [`bf0ef3f`](https://github.com/cypress-io/cypress-design/commit/bf0ef3f6504ea3dba71dcb00d8d2eb0a96e0fa55)]:
12
+ - @cypress-design/icon-registry@0.42.1
13
+
14
+ ## 0.39.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#425](https://github.com/cypress-io/cypress-design/pull/425) [`85301f4`](https://github.com/cypress-io/cypress-design/commit/85301f479e547528164bfd002247a2bfeee82a62) Thanks [@emilmilanov](https://github.com/emilmilanov)! - Adding new icons
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`e96abdc`](https://github.com/cypress-io/cypress-design/commit/e96abdc4d38a809632d52bd87699a7567cd9dd93), [`85301f4`](https://github.com/cypress-io/cypress-design/commit/85301f479e547528164bfd002247a2bfeee82a62)]:
23
+ - @cypress-design/icon-registry@0.42.0
24
+
3
25
  ## 0.38.0
4
26
 
5
27
  ### Minor Changes
package/IconVue.cy.tsx CHANGED
@@ -23,7 +23,7 @@ describe('Icon', { viewportWidth: 80, viewportHeight: 80 }, () => {
23
23
  if (props.name) {
24
24
  return mount(() => <Icon {...props} />)
25
25
  }
26
- mount(() => <IconDocumentBlank {...props} />)
26
+ mount(() => <IconDocumentBlank {...props} class={props.class} />)
27
27
  })
28
28
 
29
29
  it('renders correctly with array classes', () => {
@@ -128,4 +128,10 @@ describe('Icon', { viewportWidth: 80, viewportHeight: 80 }, () => {
128
128
 
129
129
  cy.get('svg title').should('have.text', 'This is a title')
130
130
  })
131
+
132
+ it('renders class passed only once', () => {
133
+ mount(() => <IconBrowserWebkit class="w-16 h-16" />)
134
+
135
+ cy.get('svg[width="16"]').should('have.attr', 'class', 'w-16 h-16')
136
+ })
131
137
  })