@justeattakeaway/pie-link 0.17.5 → 0.17.7

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/README.md CHANGED
@@ -20,16 +20,14 @@ This component can be easily integrated into various frontend frameworks and cus
20
20
  To install `pie-link` in your application, run the following on your command line:
21
21
 
22
22
  ```bash
23
- # npm
24
- $ npm i @justeattakeaway/pie-link
23
+ npm i @justeattakeaway/pie-link
25
24
 
26
- # yarn
27
- $ yarn add @justeattakeaway/pie-link
25
+ yarn add @justeattakeaway/pie-link
28
26
  ```
29
27
 
30
28
  ## Documentation
31
29
 
32
- Visit [Link | PIE Design System](https://pie.design/components/link/overview) to view more information on this component.
30
+ Visit [Link | PIE Design System](https://pie.design/components/link) to view more information on this component.
33
31
 
34
32
  ## Questions
35
33
 
@@ -66,7 +66,7 @@
66
66
  "type": {
67
67
  "text": "DefaultProps"
68
68
  },
69
- "default": "{\n tag: 'a',\n variant: 'default',\n size: 'medium',\n underline: 'default',\n iconPlacement: 'leading',\n isBold: false,\n isStandalone: false,\n hasVisited: false,\n type: 'submit',\n}"
69
+ "default": "{\n tag: 'a',\n variant: 'default',\n size: 'medium',\n underline: 'default',\n isBold: false,\n isStandalone: false,\n hasVisited: false,\n iconPlacement: 'leading',\n type: 'submit',\n}"
70
70
  }
71
71
  ],
72
72
  "exports": [
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core';
1
+ import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
2
  import type { CSSResult } from 'lit';
3
3
  import type { LitElement } from 'lit';
4
4
  import type { TemplateResult } from 'lit';
@@ -9,7 +9,7 @@ export declare type AriaProps = {
9
9
 
10
10
  export declare const buttonTypes: readonly ["submit", "button", "reset", "menu"];
11
11
 
12
- export declare type DefaultProps = ComponentDefaultPropsGeneric<LinkProps, 'tag' | 'variant' | 'size' | 'underline' | 'iconPlacement' | 'isBold' | 'isStandalone' | 'hasVisited' | 'type'>;
12
+ export declare type DefaultProps = ComponentDefaultProps<LinkProps, keyof Omit<LinkProps, 'aria' | 'href' | 'target' | 'rel'>>;
13
13
 
14
14
  export declare const defaultProps: DefaultProps;
15
15
 
package/dist/index.js CHANGED
@@ -7,10 +7,10 @@ const y = `*,*:after,*:before{box-sizing:inherit}.c-link{--link-font-family: var
7
7
  variant: "default",
8
8
  size: "medium",
9
9
  underline: "default",
10
- iconPlacement: "leading",
11
10
  isBold: !1,
12
11
  isStandalone: !1,
13
12
  hasVisited: !1,
13
+ iconPlacement: "leading",
14
14
  type: "submit"
15
15
  };
16
16
  var B = Object.defineProperty, P = Object.getOwnPropertyDescriptor, o = (h, i, a, p) => {
package/dist/react.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core';
1
+ import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
2
  import type { CSSResult } from 'lit';
3
3
  import type { LitElement } from 'lit';
4
4
  import * as React_2 from 'react';
@@ -10,7 +10,7 @@ export declare type AriaProps = {
10
10
 
11
11
  export declare const buttonTypes: readonly ["submit", "button", "reset", "menu"];
12
12
 
13
- export declare type DefaultProps = ComponentDefaultPropsGeneric<LinkProps, 'tag' | 'variant' | 'size' | 'underline' | 'iconPlacement' | 'isBold' | 'isStandalone' | 'hasVisited' | 'type'>;
13
+ export declare type DefaultProps = ComponentDefaultProps<LinkProps, keyof Omit<LinkProps, 'aria' | 'href' | 'target' | 'rel'>>;
14
14
 
15
15
  export declare const defaultProps: DefaultProps;
16
16
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-link",
3
3
  "description": "PIE Design System Link built using Web Components",
4
- "version": "0.17.5",
4
+ "version": "0.17.7",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -37,12 +37,12 @@
37
37
  "devDependencies": {
38
38
  "@custom-elements-manifest/analyzer": "0.9.0",
39
39
  "@justeattakeaway/pie-components-config": "0.16.0",
40
- "@justeattakeaway/pie-icons-webc": "0.24.0",
41
- "@justeattakeaway/pie-wrapper-react": "0.14.0",
40
+ "@justeattakeaway/pie-icons-webc": "0.24.2",
41
+ "@justeattakeaway/pie-wrapper-react": "0.14.1",
42
42
  "cem-plugin-module-file-extensions": "0.0.5"
43
43
  },
44
44
  "dependencies": {
45
- "@justeattakeaway/pie-webc-core": "0.23.0"
45
+ "@justeattakeaway/pie-webc-core": "0.24.0"
46
46
  },
47
47
  "volta": {
48
48
  "extends": "../../../package.json"
package/src/defs.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core';
1
+ import { type ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
2
 
3
3
  export const variants = ['default', 'high-visibility', 'inverse'] as const;
4
4
  export const sizes = ['small', 'medium'] as const;
@@ -68,16 +68,16 @@ export interface LinkProps {
68
68
  type?: typeof buttonTypes[number];
69
69
  }
70
70
 
71
- export type DefaultProps = ComponentDefaultPropsGeneric<LinkProps, 'tag' | 'variant' | 'size' | 'underline' | 'iconPlacement' | 'isBold' | 'isStandalone' | 'hasVisited' | 'type'>;
71
+ export type DefaultProps = ComponentDefaultProps<LinkProps, keyof Omit<LinkProps, 'aria' | 'href' | 'target' | 'rel'>>;
72
72
 
73
73
  export const defaultProps: DefaultProps = {
74
74
  tag: 'a',
75
75
  variant: 'default',
76
76
  size: 'medium',
77
77
  underline: 'default',
78
- iconPlacement: 'leading',
79
78
  isBold: false,
80
79
  isStandalone: false,
81
80
  hasVisited: false,
81
+ iconPlacement: 'leading',
82
82
  type: 'submit',
83
83
  };