@justeattakeaway/pie-icon-button 0.10.0 → 0.12.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/.eslintignore ADDED
@@ -0,0 +1,3 @@
1
+ .turbo
2
+ dist
3
+ node_modules
@@ -1,4 +1,4 @@
1
- [12:18:20 PM] @custom-elements-manifest/analyzer: Created new manifest.
1
+ [3:34:44 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 15.39s
13
- [vite:dts] Declaration files built in 14191ms.
12
+ ✓ built in 11.03s
13
+ [vite:dts] Declaration files built in 10164ms.
14
14
  
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @justeattakeaway/pie-icon-button
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [Fixed] - Prevent tree-shaking of components in storybook ([#667](https://github.com/justeattakeaway/pie/pull/667)) by [@xander-marjoram](https://github.com/xander-marjoram)
8
+
9
+ [Removed] - Built webc icons from source control
10
+ [Added] - Type declaration files for components
11
+ [Added] - Types for pie-icons
12
+ [Added] - TS version of pie-icons-configs/config.js (Will be used after DSW-1025)
13
+ [Added] - Webc icon tests for width, height and base classes
14
+ [Changed] - Update pie-icons-webc build to generate a slightly different template for regular and large icons (using different types, etc.)
15
+ [Changed] - Update pie-icons-webc rollup config to remove commonjs build
16
+ [Changed] - Use `just-kebab-case` and `just-pascal-case` instead of `kebab-case` and `pascal-case` to simplify usage (and they're more recently maintained)
17
+
18
+ ## 0.11.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [Changed] - Add js/ts linting and fix errors ([#653](https://github.com/justeattakeaway/pie/pull/653)) by [@jamieomaguire](https://github.com/jamieomaguire)
23
+
3
24
  ## 0.10.0
4
25
 
5
26
  ### Minor Changes
package/declaration.d.ts CHANGED
@@ -7,5 +7,3 @@ declare module '*.scss?inline' {
7
7
  const content: Record<string, string>;
8
8
  export default content;
9
9
  }
10
-
11
- declare module '@justeattakeaway/pie-icons-webc';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-icon-button",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "PIE Design System Icon Button built using Web Components",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -8,6 +8,10 @@
8
8
  "types": "dist/types/index.d.ts",
9
9
  "scripts": {
10
10
  "build": "yarn build:wrapper pie-icon-button && run -T vite build",
11
+ "lint:scripts": "run -T eslint .",
12
+ "lint:scripts:fix": "run -T eslint . --fix",
13
+ "lint:style": "run -T stylelint ./src/**/*.{css,scss}",
14
+ "lint:style:fix": "yarn lint:style --fix",
11
15
  "watch": "run -T vite build --watch",
12
16
  "test": "echo \"Error: no test specified\" && exit 0",
13
17
  "test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_ICON_BUTTON} percy exec --allowed-hostname cloudfront.net -- npx playwright test -c ./playwright-lit-visual.config.ts",
@@ -1 +1 @@
1
- //Import common styles here
1
+ // Import common styles here
@@ -1,5 +1,4 @@
1
1
  import { defineConfig } from '@sand4rt/experimental-ct-web';
2
2
  import { getPlaywrightVisualConfig } from '@justeattakeaway/pie-components-config';
3
3
 
4
- // @ts-ignore
5
4
  export default defineConfig(getPlaywrightVisualConfig());
@@ -1,5 +1,4 @@
1
1
  import { defineConfig } from '@sand4rt/experimental-ct-web';
2
2
  import { getPlaywrightConfig } from '@justeattakeaway/pie-components-config';
3
3
 
4
- // @ts-ignore
5
4
  export default defineConfig(getPlaywrightConfig());
@@ -12,6 +12,7 @@
12
12
  :host {
13
13
  // The base values are set to the size default, which is for the medium button size
14
14
  --btn-dimension: 48px;
15
+
15
16
  // Sizing is set to Medium button icon size, as that is the default
16
17
  --btn-icon-size: 24px;
17
18
  }
package/tsconfig.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "baseUrl": ".",
5
5
  "rootDir": ".",
6
6
  },
7
- "include": ["src/**/*.ts","./declaration.d.ts", "test/**/*.ts"],
7
+ "include": ["src/**/*.ts","./declaration.d.ts", "test/**/*.ts", "playwright-lit-visual.config.ts", "playwright-lit.config.ts"],
8
8
  }