@justeattakeaway/pie-icon-button 0.12.0 → 0.13.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.
package/.eslintignore CHANGED
@@ -1,3 +1,5 @@
1
1
  .turbo
2
2
  dist
3
3
  node_modules
4
+ lit-browsers-report
5
+ lit-visual-report
@@ -1,4 +1,4 @@
1
- [3:34:44 PM] @custom-elements-manifest/analyzer: Created new manifest.
1
+ [3:19:40 PM] @custom-elements-manifest/analyzer: Created new manifest.
2
2
  react wrapper has been added!
3
3
  vite v4.3.9 building for production...
4
4
  transforming...
@@ -9,6 +9,6 @@ computing gzip size...
9
9
  dist/react.js 59.03 kB │ gzip: 15.92 kB
10
10
  
11
11
  [vite:dts] Start generate declaration files...
12
- ✓ built in 11.03s
13
- [vite:dts] Declaration files built in 10164ms.
12
+ ✓ built in 49.88s
13
+ [vite:dts] Declaration files built in 45838ms.
14
14
  
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @justeattakeaway/pie-icon-button
2
2
 
3
+ ## 0.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [Changed] - use latest pie-design-tokens ([#694](https://github.com/justeattakeaway/pie/pull/694)) by [@xander-marjoram](https://github.com/xander-marjoram)
8
+
9
+ ## 0.13.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [Added] - axe builder to be shared as a base instance across broswer accessibility tests ([#669](https://github.com/justeattakeaway/pie/pull/669)) by [@raoufswe](https://github.com/raoufswe)
14
+
3
15
  ## 0.12.0
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-icon-button",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "description": "PIE Design System Icon Button built using Web Components",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "@justeattakeaway/pie-webc-core": "workspace:*"
25
25
  },
26
26
  "peerDependencies": {
27
- "pie-design-tokens": "5.3.0"
27
+ "pie-design-tokens": "5.4.0"
28
28
  },
29
29
  "volta": {
30
30
  "extends": "../../../package.json"
@@ -1,5 +1,4 @@
1
- import { test, expect } from '@sand4rt/experimental-ct-web';
2
- import AxeBuilder from '@axe-core/playwright';
1
+ import { test, expect } from '@justeattakeaway/pie-webc-testing/src/playwright/fixtures.ts';
3
2
  import type {
4
3
  PropObject, WebComponentPropValues,
5
4
  } from '@justeattakeaway/pie-webc-testing/src/helpers/defs.ts';
@@ -18,7 +17,7 @@ const componentPropsMatrix : WebComponentPropValues[] = getAllPropCombinations(p
18
17
  const componentPropsMatrixByVariant: Record<string, WebComponentPropValues[]> = splitCombinationsByPropertyValue(componentPropsMatrix, 'variant');
19
18
  const componentVariants: string[] = Object.keys(componentPropsMatrixByVariant);
20
19
 
21
- componentVariants.forEach((variant) => test(`Render all prop variations for Variant: ${variant}`, async ({ page, mount }) => {
20
+ componentVariants.forEach((variant) => test(`Render all prop variations for Variant: ${variant}`, async ({ makeAxeBuilder, mount }) => {
22
21
  await Promise.all(componentPropsMatrixByVariant[variant].map(async (combo: WebComponentPropValues) => {
23
22
  await mount(
24
23
  PieIconButton,
@@ -31,10 +30,7 @@ componentVariants.forEach((variant) => test(`Render all prop variations for Vari
31
30
  );
32
31
  }));
33
32
 
34
- const results = await new AxeBuilder({ page })
35
- .withTags(['wcag21a', 'wcag21aa', 'wcag143', 'cat.color', 'cat.aria'])
36
- .disableRules(['color-contrast', 'color-contrast-enhanced'])
37
- .analyze();
33
+ const results = await makeAxeBuilder().analyze();
38
34
 
39
35
  expect(results.violations).toEqual([]);
40
36
  }));