@justeattakeaway/pie-toast 0.10.0 → 0.10.2

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.
@@ -134,38 +134,32 @@
134
134
  {
135
135
  "kind": "field",
136
136
  "name": "message",
137
- "privacy": "public",
138
- "attribute": "message"
137
+ "privacy": "public"
139
138
  },
140
139
  {
141
140
  "kind": "field",
142
141
  "name": "isOpen",
143
- "privacy": "public",
144
- "attribute": "isOpen"
142
+ "privacy": "public"
145
143
  },
146
144
  {
147
145
  "kind": "field",
148
146
  "name": "variant",
149
- "privacy": "public",
150
- "attribute": "variant"
147
+ "privacy": "public"
151
148
  },
152
149
  {
153
150
  "kind": "field",
154
151
  "name": "isStrong",
155
- "privacy": "public",
156
- "attribute": "isStrong"
152
+ "privacy": "public"
157
153
  },
158
154
  {
159
155
  "kind": "field",
160
156
  "name": "isDismissible",
161
- "privacy": "public",
162
- "attribute": "isDismissible"
157
+ "privacy": "public"
163
158
  },
164
159
  {
165
160
  "kind": "field",
166
161
  "name": "isMultiline",
167
- "privacy": "public",
168
- "attribute": "isMultiline"
162
+ "privacy": "public"
169
163
  },
170
164
  {
171
165
  "kind": "field",
@@ -173,14 +167,12 @@
173
167
  "type": {
174
168
  "text": "ToastProps['leadingAction']"
175
169
  },
176
- "privacy": "public",
177
- "attribute": "leadingAction"
170
+ "privacy": "public"
178
171
  },
179
172
  {
180
173
  "kind": "field",
181
174
  "name": "duration",
182
- "privacy": "public",
183
- "attribute": "duration"
175
+ "privacy": "public"
184
176
  },
185
177
  {
186
178
  "kind": "field",
@@ -390,43 +382,6 @@
390
382
  "name": "pie-toast-leading-action-click"
391
383
  }
392
384
  ],
393
- "attributes": [
394
- {
395
- "name": "message",
396
- "fieldName": "message"
397
- },
398
- {
399
- "name": "isOpen",
400
- "fieldName": "isOpen"
401
- },
402
- {
403
- "name": "variant",
404
- "fieldName": "variant"
405
- },
406
- {
407
- "name": "isStrong",
408
- "fieldName": "isStrong"
409
- },
410
- {
411
- "name": "isDismissible",
412
- "fieldName": "isDismissible"
413
- },
414
- {
415
- "name": "isMultiline",
416
- "fieldName": "isMultiline"
417
- },
418
- {
419
- "name": "leadingAction",
420
- "type": {
421
- "text": "ToastProps['leadingAction']"
422
- },
423
- "fieldName": "leadingAction"
424
- },
425
- {
426
- "name": "duration",
427
- "fieldName": "duration"
428
- }
429
- ],
430
385
  "superclass": {
431
386
  "name": "PieElement",
432
387
  "package": "@justeattakeaway/pie-webc-core/src/internals/PieElement"
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
- import type { CSSResult } from 'lit';
2
+ import { CSSResult } from 'lit';
3
3
  import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
4
- import type { PropertyValues } from 'lit';
5
- import type { TemplateResult } from 'lit';
4
+ import { PropertyValues } from 'lit';
5
+ import { TemplateResult } from 'lit';
6
6
 
7
7
  export declare type ActionProps = {
8
8
  /**
@@ -28,21 +28,21 @@ export declare const defaultProps: DefaultProps;
28
28
  *
29
29
  * @constant
30
30
  */
31
- export declare const ON_TOAST_CLOSE_EVENT: string;
31
+ export declare const ON_TOAST_CLOSE_EVENT = "pie-toast-close";
32
32
 
33
33
  /**
34
34
  * Event name for when the toast leading action is clicked.
35
35
  *
36
36
  * @constant
37
37
  */
38
- export declare const ON_TOAST_LEADING_ACTION_CLICK_EVENT: string;
38
+ export declare const ON_TOAST_LEADING_ACTION_CLICK_EVENT = "pie-toast-leading-action-click";
39
39
 
40
40
  /**
41
41
  * Event name for when the toast is opened.
42
42
  *
43
43
  * @constant
44
44
  */
45
- export declare const ON_TOAST_OPEN_EVENT: string;
45
+ export declare const ON_TOAST_OPEN_EVENT = "pie-toast-open";
46
46
 
47
47
  /**
48
48
  * @tagname pie-toast
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ const g = class g extends $ {
14
14
  this.getAttribute("v") || this.setAttribute("v", g.v);
15
15
  }
16
16
  };
17
- g.v = "0.10.0";
17
+ g.v = "0.10.2";
18
18
  let m = g;
19
19
  const C = "*,*:after,*:before{box-sizing:inherit}:host{display:block}.c-toast{--toast-border-radius: var(--dt-radius-rounded-b);--toast-background-color: var(--dt-color-container-inverse);--toast-font-color: var(--dt-color-content-inverse);--toast-font-size: calc(var(--dt-font-body-s-size) * 1px);--toast-line-height: calc(var(--dt-font-body-s-line-height) * 1px);--toast-icon-fill: var(--dt-color-content-default);display:flex;flex-direction:column;justify-content:center;min-height:48px;max-height:122px;min-width:300px;max-width:420px;padding:var(--dt-spacing-b) var(--dt-spacing-c) var(--dt-spacing-b) var(--dt-spacing-d);border-radius:var(--toast-border-radius);background-color:var(--toast-background-color);box-shadow:var(--dt-elevation-03);color:var(--toast-font-color);font-size:var(--toast-font-size);line-height:var(--toast-line-height)}.c-toast--info{--toast-icon-fill: var(--dt-color-support-info-inverse)}.c-toast--info.c-toast--strong{--toast-background-color: var(--dt-color-support-info);--toast-icon-fill: var(--dt-color-content-inverse)}.c-toast--warning{--toast-icon-fill: var(--dt-color-support-warning-inverse)}.c-toast--warning.c-toast--strong{--toast-background-color: var(--dt-color-support-warning);--toast-icon-fill: var(--dt-color-content-dark);--toast-font-color: var(--dt-color-content-dark)}.c-toast--success{--toast-icon-fill: var(--dt-color-support-positive-inverse)}.c-toast--success.c-toast--strong{--toast-background-color: var(--dt-color-support-positive);--toast-icon-fill: var(--dt-color-content-inverse)}.c-toast--error{--toast-icon-fill: var(--dt-color-support-error-inverse)}.c-toast--error.c-toast--strong{--toast-background-color: var(--dt-color-support-error);--toast-icon-fill: var(--dt-color-content-inverse)}.c-toast-contentArea{display:flex;gap:var(--dt-spacing-b);justify-content:space-between}.c-toast-messageArea{display:flex;align-items:center;gap:var(--dt-spacing-b);padding:6px var(--dt-spacing-a) 6px 0;overflow:hidden}.c-toast-messageArea span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.c-toast-actionsArea{display:flex;gap:var(--dt-spacing-b);flex-shrink:0}.c-toast--multiline .c-toast-contentArea{align-items:flex-start;gap:0}.c-toast--multiline .c-toast-messageArea{align-items:flex-start;padding-block-end:var(--dt-spacing-b)}.c-toast--multiline .c-toast-messageArea span{max-height:60px;white-space:inherit;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.c-toast-footer{display:flex;justify-content:flex-end}.c-toast-icon{color:var(--toast-icon-fill)}", _ = ["neutral", "info", "warning", "success", "error"], o = "pie-toast", i = "c-toast", O = `${o}-close`, E = `${o}-open`, T = `${o}-leading-action-click`, p = {
20
20
  message: "",
package/dist/react.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
- import type { CSSResult } from 'lit';
2
+ import { CSSResult } from 'lit';
3
3
  import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
4
- import type { PropertyValues } from 'lit';
4
+ import { PropertyValues } from 'lit';
5
5
  import * as React_2 from 'react';
6
- import type { TemplateResult } from 'lit';
6
+ import { TemplateResult } from 'lit';
7
7
 
8
8
  export declare type ActionProps = {
9
9
  /**
@@ -29,23 +29,23 @@ export declare const defaultProps: DefaultProps;
29
29
  *
30
30
  * @constant
31
31
  */
32
- export declare const ON_TOAST_CLOSE_EVENT: string;
32
+ export declare const ON_TOAST_CLOSE_EVENT = "pie-toast-close";
33
33
 
34
34
  /**
35
35
  * Event name for when the toast leading action is clicked.
36
36
  *
37
37
  * @constant
38
38
  */
39
- export declare const ON_TOAST_LEADING_ACTION_CLICK_EVENT: string;
39
+ export declare const ON_TOAST_LEADING_ACTION_CLICK_EVENT = "pie-toast-leading-action-click";
40
40
 
41
41
  /**
42
42
  * Event name for when the toast is opened.
43
43
  *
44
44
  * @constant
45
45
  */
46
- export declare const ON_TOAST_OPEN_EVENT: string;
46
+ export declare const ON_TOAST_OPEN_EVENT = "pie-toast-open";
47
47
 
48
- export declare const PieToast: React_2.ForwardRefExoticComponent<ToastProps & React_2.RefAttributes<PieToast_2> & PieToastEvents & ReactBaseType>;
48
+ export declare const PieToast: React_2.ForwardRefExoticComponent<React_2.PropsWithoutRef<ToastProps> & React_2.RefAttributes<PieToast_2> & PieToastEvents & ReactBaseType>;
49
49
 
50
50
  /**
51
51
  * @tagname pie-toast
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.10.0",
4
+ "version": "0.10.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/justeattakeaway/pie",
@@ -39,15 +39,15 @@
39
39
  "license": "Apache-2.0",
40
40
  "devDependencies": {
41
41
  "@custom-elements-manifest/analyzer": "0.9.0",
42
- "@justeattakeaway/pie-components-config": "0.20.1",
43
- "@justeattakeaway/pie-css": "0.17.0",
44
- "@justeattakeaway/pie-monorepo-utils": "0.5.1",
42
+ "@justeattakeaway/pie-components-config": "0.21.0",
43
+ "@justeattakeaway/pie-css": "0.18.0",
44
+ "@justeattakeaway/pie-monorepo-utils": "0.6.0",
45
45
  "cem-plugin-module-file-extensions": "0.0.5"
46
46
  },
47
47
  "dependencies": {
48
48
  "@justeattakeaway/pie-button": "1.6.6",
49
- "@justeattakeaway/pie-icon-button": "2.0.2",
50
- "@justeattakeaway/pie-icons-webc": "1.12.0",
49
+ "@justeattakeaway/pie-icon-button": "2.0.4",
50
+ "@justeattakeaway/pie-icons-webc": "1.14.0",
51
51
  "@justeattakeaway/pie-webc-core": "1.0.0"
52
52
  },
53
53
  "volta": {