@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.
- package/custom-elements.json +0 -5
- package/dist/index.d.ts +1 -1
- package/dist/react.d.ts +1 -1
- package/package.json +6 -6
- package/src/defs-react.ts +1 -1
- package/src/index.ts +3 -3
- package/src/react.ts +1 -1
package/custom-elements.json
CHANGED
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.
|
|
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.
|
|
39
|
-
"@justeattakeaway/pie-wrapper-react": "0.14.
|
|
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.
|
|
44
|
-
"@justeattakeaway/pie-spinner": "0.7.
|
|
45
|
-
"@justeattakeaway/pie-webc-core": "0.24.
|
|
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
package/src/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
LitElement,
|
|
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 ()
|
|
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