@justeattakeaway/pie-icon-button 0.28.13 → 0.28.14

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.
@@ -107,11 +107,6 @@
107
107
  "kind": "method",
108
108
  "name": "renderSpinner",
109
109
  "privacy": "private",
110
- "return": {
111
- "type": {
112
- "text": "TemplateResult"
113
- }
114
- },
115
110
  "description": "Template for the loading state"
116
111
  }
117
112
  ],
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
2
  import type { CSSResult } from 'lit';
3
3
  import type { LitElement } from 'lit';
4
- import type { TemplateResult } from 'lit';
4
+ import type { TemplateResult } from 'lit-html';
5
5
 
6
6
  export declare type DefaultProps = ComponentDefaultProps<IconButtonProps>;
7
7
 
package/dist/react.d.ts CHANGED
@@ -2,7 +2,7 @@ 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';
5
- import type { TemplateResult } from 'lit';
5
+ import type { TemplateResult } from 'lit-html';
6
6
 
7
7
  export declare type DefaultProps = ComponentDefaultProps<IconButtonProps>;
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-icon-button",
3
- "version": "0.28.13",
3
+ "version": "0.28.14",
4
4
  "description": "PIE Design System Icon Button built using Web Components",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -35,14 +35,14 @@
35
35
  "devDependencies": {
36
36
  "@custom-elements-manifest/analyzer": "0.9.0",
37
37
  "@justeattakeaway/pie-components-config": "0.18.0",
38
- "@justeattakeaway/pie-css": "0.13.0",
39
- "@justeattakeaway/pie-wrapper-react": "0.14.1",
38
+ "@justeattakeaway/pie-css": "0.13.1",
39
+ "@justeattakeaway/pie-wrapper-react": "0.14.2",
40
40
  "cem-plugin-module-file-extensions": "0.0.5"
41
41
  },
42
42
  "dependencies": {
43
- "@justeattakeaway/pie-icons-webc": "0.25.2",
44
- "@justeattakeaway/pie-spinner": "0.7.1",
45
- "@justeattakeaway/pie-webc-core": "0.24.1"
43
+ "@justeattakeaway/pie-icons-webc": "0.25.3",
44
+ "@justeattakeaway/pie-spinner": "0.7.2",
45
+ "@justeattakeaway/pie-webc-core": "0.24.2"
46
46
  },
47
47
  "volta": {
48
48
  "extends": "../../../package.json"
package/src/defs-react.ts CHANGED
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
 
3
3
  export type ReactBaseType = React.ButtonHTMLAttributes<HTMLButtonElement>
package/src/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
- LitElement, TemplateResult, html, unsafeCSS,
2
+ LitElement, html, unsafeCSS,
3
3
  } from 'lit';
4
4
  import { property } from 'lit/decorators.js';
5
5
  import { validPropertyValues, defineCustomElement } from '@justeattakeaway/pie-webc-core';
6
6
  import styles from './iconButton.scss?inline';
7
7
  import {
8
- IconButtonProps, sizes, variants, defaultProps,
8
+ type IconButtonProps, sizes, variants, defaultProps,
9
9
  } from './defs';
10
10
  import '@justeattakeaway/pie-spinner';
11
11
 
@@ -37,7 +37,7 @@ export class PieIconButton extends LitElement implements IconButtonProps {
37
37
  *
38
38
  * @private
39
39
  */
40
- private renderSpinner (): TemplateResult {
40
+ private renderSpinner () {
41
41
  const { variant, size, disabled } = this;
42
42
  const spinnerSize = size === 'xsmall' ? 'small' : 'medium';
43
43
  let spinnerVariant = 'brand';
package/src/react.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { createComponent } from '@lit/react';
3
3
  import { PieIconButton as PieIconButtonLit } from './index';
4
- import { IconButtonProps } from './defs';
4
+ import { type IconButtonProps } from './defs';
5
5
 
6
6
  export * from './defs';
7
7