@justeattakeaway/pie-toast 0.2.0 → 0.2.1
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/index.d.ts +5 -5
- package/dist/react.d.ts +5 -5
- package/package.json +4 -1
- package/src/defs.ts +2 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
2
|
import type { CSSResult } from 'lit';
|
|
3
3
|
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
4
4
|
import type { LitElement } from 'lit';
|
|
@@ -22,7 +22,7 @@ export declare const componentClass = "c-toast";
|
|
|
22
22
|
|
|
23
23
|
export declare const componentSelector = "pie-toast";
|
|
24
24
|
|
|
25
|
-
export declare type DefaultProps =
|
|
25
|
+
export declare type DefaultProps = ComponentDefaultProps<ToastProps, keyof Omit<ToastProps, 'leadingAction' | 'message'>>;
|
|
26
26
|
|
|
27
27
|
export declare const defaultProps: DefaultProps;
|
|
28
28
|
|
|
@@ -52,9 +52,9 @@ export declare const ON_TOAST_OPEN_EVENT: string;
|
|
|
52
52
|
*/
|
|
53
53
|
export declare class PieToast extends PieToast_base implements ToastProps {
|
|
54
54
|
message: ToastProps['message'];
|
|
55
|
-
isOpen:
|
|
56
|
-
isDismissible:
|
|
57
|
-
isMultiline:
|
|
55
|
+
isOpen: boolean;
|
|
56
|
+
isDismissible: boolean;
|
|
57
|
+
isMultiline: boolean;
|
|
58
58
|
leadingAction: ToastProps['leadingAction'];
|
|
59
59
|
actionButton?: HTMLElement;
|
|
60
60
|
private _actionButtonOffset;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
2
|
import type { CSSResult } from 'lit';
|
|
3
3
|
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
4
4
|
import type { LitElement } from 'lit';
|
|
@@ -23,7 +23,7 @@ export declare const componentClass = "c-toast";
|
|
|
23
23
|
|
|
24
24
|
export declare const componentSelector = "pie-toast";
|
|
25
25
|
|
|
26
|
-
export declare type DefaultProps =
|
|
26
|
+
export declare type DefaultProps = ComponentDefaultProps<ToastProps, keyof Omit<ToastProps, 'leadingAction' | 'message'>>;
|
|
27
27
|
|
|
28
28
|
export declare const defaultProps: DefaultProps;
|
|
29
29
|
|
|
@@ -55,9 +55,9 @@ export declare const PieToast: React_2.ForwardRefExoticComponent<ToastProps & Re
|
|
|
55
55
|
*/
|
|
56
56
|
declare class PieToast_2 extends PieToast_base implements ToastProps {
|
|
57
57
|
message: ToastProps['message'];
|
|
58
|
-
isOpen:
|
|
59
|
-
isDismissible:
|
|
60
|
-
isMultiline:
|
|
58
|
+
isOpen: boolean;
|
|
59
|
+
isDismissible: boolean;
|
|
60
|
+
isMultiline: boolean;
|
|
61
61
|
leadingAction: ToastProps['leadingAction'];
|
|
62
62
|
actionButton?: HTMLElement;
|
|
63
63
|
private _actionButtonOffset;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-toast",
|
|
3
3
|
"description": "PIE Design System Toast built using Web Components",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
+
"@justeattakeaway/pie-button": "0.48.0",
|
|
44
|
+
"@justeattakeaway/pie-icon-button": "0.28.9",
|
|
45
|
+
"@justeattakeaway/pie-icons-webc": "0.24.2",
|
|
43
46
|
"@justeattakeaway/pie-webc-core": "0.24.0"
|
|
44
47
|
},
|
|
45
48
|
"volta": {
|
package/src/defs.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
|
|
2
2
|
|
|
3
|
-
// TODO - please remove the eslint disable comment below when you add props to this interface
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
5
3
|
export type ActionProps = {
|
|
6
4
|
/**
|
|
7
5
|
* The text to display inside the button.
|
|
@@ -61,7 +59,7 @@ export const ON_TOAST_OPEN_EVENT = `${componentSelector}-open`;
|
|
|
61
59
|
*/
|
|
62
60
|
export const ON_TOAST_LEADING_ACTION_CLICK_EVENT = `${componentSelector}-leading-action-click`;
|
|
63
61
|
|
|
64
|
-
export type DefaultProps =
|
|
62
|
+
export type DefaultProps = ComponentDefaultProps<ToastProps, keyof Omit<ToastProps, 'leadingAction' | 'message'>>;
|
|
65
63
|
|
|
66
64
|
export const defaultProps: DefaultProps = {
|
|
67
65
|
isOpen: true,
|