@justeattakeaway/pie-link 0.17.6 → 0.17.8

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.
@@ -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.6",
4
+ "version": "0.17.8",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -36,13 +36,14 @@
36
36
  "license": "Apache-2.0",
37
37
  "devDependencies": {
38
38
  "@custom-elements-manifest/analyzer": "0.9.0",
39
- "@justeattakeaway/pie-components-config": "0.16.0",
40
- "@justeattakeaway/pie-icons-webc": "0.24.1",
39
+ "@justeattakeaway/pie-components-config": "0.17.0",
40
+ "@justeattakeaway/pie-css": "0.12.1",
41
+ "@justeattakeaway/pie-icons-webc": "0.25.0",
41
42
  "@justeattakeaway/pie-wrapper-react": "0.14.1",
42
43
  "cem-plugin-module-file-extensions": "0.0.5"
43
44
  },
44
45
  "dependencies": {
45
- "@justeattakeaway/pie-webc-core": "0.23.0"
46
+ "@justeattakeaway/pie-webc-core": "0.24.0"
46
47
  },
47
48
  "volta": {
48
49
  "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
  };