@justeattakeaway/pie-toast 0.12.40 → 0.12.42
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 +55 -10
- package/dist/index.d.ts +0 -0
- package/dist/index.js +1 -1
- package/dist/react.d.ts +0 -0
- package/dist/react.js +0 -0
- package/package.json +6 -6
- package/src/react.ts +0 -0
package/custom-elements.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"type": {
|
|
61
61
|
"text": "DefaultProps"
|
|
62
62
|
},
|
|
63
|
-
"default": "{
|
|
63
|
+
"default": "{ message: '', isOpen: true, variant: 'neutral', isStrong: false, isDismissible: false, isMultiline: false, duration: 5000, }"
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
66
|
"exports": [
|
|
@@ -134,32 +134,38 @@
|
|
|
134
134
|
{
|
|
135
135
|
"kind": "field",
|
|
136
136
|
"name": "message",
|
|
137
|
-
"privacy": "public"
|
|
137
|
+
"privacy": "public",
|
|
138
|
+
"attribute": "message"
|
|
138
139
|
},
|
|
139
140
|
{
|
|
140
141
|
"kind": "field",
|
|
141
142
|
"name": "isOpen",
|
|
142
|
-
"privacy": "public"
|
|
143
|
+
"privacy": "public",
|
|
144
|
+
"attribute": "isOpen"
|
|
143
145
|
},
|
|
144
146
|
{
|
|
145
147
|
"kind": "field",
|
|
146
148
|
"name": "variant",
|
|
147
|
-
"privacy": "public"
|
|
149
|
+
"privacy": "public",
|
|
150
|
+
"attribute": "variant"
|
|
148
151
|
},
|
|
149
152
|
{
|
|
150
153
|
"kind": "field",
|
|
151
154
|
"name": "isStrong",
|
|
152
|
-
"privacy": "public"
|
|
155
|
+
"privacy": "public",
|
|
156
|
+
"attribute": "isStrong"
|
|
153
157
|
},
|
|
154
158
|
{
|
|
155
159
|
"kind": "field",
|
|
156
160
|
"name": "isDismissible",
|
|
157
|
-
"privacy": "public"
|
|
161
|
+
"privacy": "public",
|
|
162
|
+
"attribute": "isDismissible"
|
|
158
163
|
},
|
|
159
164
|
{
|
|
160
165
|
"kind": "field",
|
|
161
166
|
"name": "isMultiline",
|
|
162
|
-
"privacy": "public"
|
|
167
|
+
"privacy": "public",
|
|
168
|
+
"attribute": "isMultiline"
|
|
163
169
|
},
|
|
164
170
|
{
|
|
165
171
|
"kind": "field",
|
|
@@ -167,12 +173,14 @@
|
|
|
167
173
|
"type": {
|
|
168
174
|
"text": "ToastProps['leadingAction']"
|
|
169
175
|
},
|
|
170
|
-
"privacy": "public"
|
|
176
|
+
"privacy": "public",
|
|
177
|
+
"attribute": "leadingAction"
|
|
171
178
|
},
|
|
172
179
|
{
|
|
173
180
|
"kind": "field",
|
|
174
181
|
"name": "duration",
|
|
175
|
-
"privacy": "public"
|
|
182
|
+
"privacy": "public",
|
|
183
|
+
"attribute": "duration"
|
|
176
184
|
},
|
|
177
185
|
{
|
|
178
186
|
"kind": "field",
|
|
@@ -382,6 +390,43 @@
|
|
|
382
390
|
"name": "pie-toast-leading-action-click"
|
|
383
391
|
}
|
|
384
392
|
],
|
|
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
|
+
],
|
|
385
430
|
"superclass": {
|
|
386
431
|
"name": "PieElement",
|
|
387
432
|
"package": "@justeattakeaway/pie-webc-core/src/internals/PieElement"
|
|
@@ -396,7 +441,7 @@
|
|
|
396
441
|
"name": "*",
|
|
397
442
|
"declaration": {
|
|
398
443
|
"name": "*",
|
|
399
|
-
"
|
|
444
|
+
"module": "src/defs"
|
|
400
445
|
}
|
|
401
446
|
},
|
|
402
447
|
{
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const f = class f extends y {
|
|
|
14
14
|
this.getAttribute("v") || this.setAttribute("v", f.v);
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
f.v = "0.12.
|
|
17
|
+
f.v = "0.12.42";
|
|
18
18
|
let m = f;
|
|
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-family: var(--dt-font-body-s-family);--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-below-20);color:var(--toast-font-color);font-family:var(--toast-font-family);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-light);--toast-font-color: var(--dt-color-content-light)}.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}.is-multiline .c-toast-contentArea{align-items:flex-start;gap:0}.is-multiline .c-toast-messageArea{align-items:flex-start;padding-block-end:var(--dt-spacing-b)}.is-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"], s = "pie-toast", n = "c-toast", O = `${s}-close`, E = `${s}-open`, T = `${s}-leading-action-click`, p = {
|
|
20
20
|
message: "",
|
package/dist/react.d.ts
CHANGED
|
File without changes
|
package/dist/react.js
CHANGED
|
File without changes
|
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.12.
|
|
4
|
+
"version": "0.12.42",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"author": "Just Eat Takeaway.com - Design System Team",
|
|
44
44
|
"license": "Apache-2.0",
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@justeattakeaway/pie-components-config": "0.21.
|
|
46
|
+
"@justeattakeaway/pie-components-config": "0.21.2",
|
|
47
47
|
"@justeattakeaway/pie-css": "1.1.1",
|
|
48
|
-
"@justeattakeaway/pie-monorepo-utils": "0.9.
|
|
48
|
+
"@justeattakeaway/pie-monorepo-utils": "0.9.1"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@justeattakeaway/pie-button": "1.14.
|
|
52
|
-
"@justeattakeaway/pie-icon-button": "2.7.
|
|
53
|
-
"@justeattakeaway/pie-icons-webc": "1.
|
|
51
|
+
"@justeattakeaway/pie-button": "1.14.1",
|
|
52
|
+
"@justeattakeaway/pie-icon-button": "2.7.12",
|
|
53
|
+
"@justeattakeaway/pie-icons-webc": "1.23.0",
|
|
54
54
|
"@justeattakeaway/pie-webc-core": "14.0.1"
|
|
55
55
|
},
|
|
56
56
|
"volta": {
|
package/src/react.ts
CHANGED
|
File without changes
|