@justeattakeaway/pie-button 1.5.0 → 1.6.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/dist/react.d.ts CHANGED
@@ -128,9 +128,9 @@ declare class PieButton_2 extends PieButton_base implements ButtonProps {
128
128
  disconnectedCallback(): void;
129
129
  updated(changedProperties: PropertyValues<this>): void;
130
130
  tag: "button" | "a";
131
- size: "xsmall" | "medium" | "large" | "small-productive" | "small-expressive";
131
+ size: "xsmall" | "small-productive" | "small-expressive" | "medium" | "large";
132
132
  type: "button" | "submit" | "reset";
133
- variant: "secondary" | "inverse" | "primary" | "primary-alternative" | "outline" | "outline-inverse" | "ghost" | "ghost-inverse" | "destructive" | "destructive-ghost";
133
+ variant: "primary" | "primary-alternative" | "secondary" | "outline" | "outline-inverse" | "ghost" | "inverse" | "ghost-inverse" | "destructive" | "destructive-ghost";
134
134
  iconPlacement: "leading" | "trailing";
135
135
  disabled: boolean;
136
136
  isLoading: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-button",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "PIE design system button built using web components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,9 +39,9 @@
39
39
  "license": "Apache-2.0",
40
40
  "devDependencies": {
41
41
  "@custom-elements-manifest/analyzer": "0.9.0",
42
- "@justeattakeaway/pie-components-config": "0.19.0",
42
+ "@justeattakeaway/pie-components-config": "0.20.1",
43
43
  "@justeattakeaway/pie-css": "0.16.0",
44
- "@justeattakeaway/pie-monorepo-utils": "0.5.0",
44
+ "@justeattakeaway/pie-monorepo-utils": "0.5.1",
45
45
  "@justeattakeaway/pie-wrapper-react": "0.14.3",
46
46
  "cem-plugin-module-file-extensions": "0.0.5"
47
47
  },
@@ -53,8 +53,8 @@
53
53
  "dist/*.js"
54
54
  ],
55
55
  "dependencies": {
56
- "@justeattakeaway/pie-spinner": "1.1.0",
57
- "@justeattakeaway/pie-webc-core": "0.25.0",
56
+ "@justeattakeaway/pie-spinner": "1.2.0",
57
+ "@justeattakeaway/pie-webc-core": "0.26.0",
58
58
  "element-internals-polyfill": "1.3.11"
59
59
  }
60
60
  }
package/src/index.ts CHANGED
@@ -6,8 +6,8 @@ import { ifDefined } from 'lit/directives/if-defined.js';
6
6
  import { property } from 'lit/decorators.js';
7
7
  import 'element-internals-polyfill';
8
8
 
9
- import { validPropertyValues, defineCustomElement, FormControlMixin } from '@justeattakeaway/pie-webc-core';
10
9
  import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
10
+ import { validPropertyValues, FormControlMixin, safeCustomElement } from '@justeattakeaway/pie-webc-core';
11
11
 
12
12
  import '@justeattakeaway/pie-spinner';
13
13
  import { type SpinnerProps } from '@justeattakeaway/pie-spinner';
@@ -27,6 +27,7 @@ const componentSelector = 'pie-button';
27
27
  * @slot icon - The icon slot
28
28
  * @slot - Default slot
29
29
  */
30
+ @safeCustomElement('pie-button')
30
31
  export class PieButton extends FormControlMixin(PieElement) implements ButtonProps {
31
32
  connectedCallback () {
32
33
  super.connectedCallback();
@@ -305,8 +306,6 @@ export class PieButton extends FormControlMixin(PieElement) implements ButtonPro
305
306
  static styles = unsafeCSS(styles);
306
307
  }
307
308
 
308
- defineCustomElement(componentSelector, PieButton);
309
-
310
309
  declare global {
311
310
  interface HTMLElementTagNameMap {
312
311
  [componentSelector]: PieButton;
package/declaration.d.ts DELETED
@@ -1,9 +0,0 @@
1
- declare module '*.scss' {
2
- const content: Record<string, string>;
3
- export default content;
4
- }
5
-
6
- declare module '*.scss?inline' {
7
- const content: Record<string, string>;
8
- export default content;
9
- }