@spectrum-web-components/tray 0.3.2 → 0.3.4
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/README.md +23 -59
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -26,70 +26,34 @@ import { Tray } from '@spectrum-web-components/tray';
|
|
|
26
26
|
## Dialog
|
|
27
27
|
|
|
28
28
|
```html
|
|
29
|
-
<
|
|
30
|
-
variant="secondary"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
receivesFocus: 'auto',
|
|
39
|
-
};
|
|
40
|
-
Overlay.open(
|
|
41
|
-
trigger,
|
|
42
|
-
interaction,
|
|
43
|
-
content,
|
|
44
|
-
options
|
|
45
|
-
);
|
|
46
|
-
"
|
|
47
|
-
>
|
|
48
|
-
Toggle tray
|
|
49
|
-
</sp-button>
|
|
50
|
-
<sp-tray>
|
|
51
|
-
<sp-dialog size="small" dismissable>
|
|
52
|
-
<h2 slot="heading">New Messages</h2>
|
|
53
|
-
You have 5 new messages.
|
|
54
|
-
</sp-dialog>
|
|
55
|
-
</sp-tray>
|
|
29
|
+
<overlay-trigger type="modal" placement="none">
|
|
30
|
+
<sp-button slot="trigger" variant="secondary">Toggle tray</sp-button>
|
|
31
|
+
<sp-tray slot="click-content">
|
|
32
|
+
<sp-dialog size="small" dismissable>
|
|
33
|
+
<h2 slot="heading">New Messages</h2>
|
|
34
|
+
You have 5 new messages.
|
|
35
|
+
</sp-dialog>
|
|
36
|
+
</sp-tray>
|
|
37
|
+
</overlay-trigger>
|
|
56
38
|
```
|
|
57
39
|
|
|
58
40
|
## Menu
|
|
59
41
|
|
|
60
42
|
```html
|
|
61
|
-
<
|
|
62
|
-
variant="secondary"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
content,
|
|
76
|
-
options
|
|
77
|
-
);
|
|
78
|
-
"
|
|
79
|
-
>
|
|
80
|
-
Toggle menu
|
|
81
|
-
</sp-button>
|
|
82
|
-
<sp-tray>
|
|
83
|
-
<sp-menu style="width: 100%">
|
|
84
|
-
<sp-menu-item selected>Deselect</sp-menu-item>
|
|
85
|
-
<sp-menu-item>Select Inverse</sp-menu-item>
|
|
86
|
-
<sp-menu-item focused>Feather...</sp-menu-item>
|
|
87
|
-
<sp-menu-item>Select and Mask...</sp-menu-item>
|
|
88
|
-
<sp-menu-divider></sp-menu-divider>
|
|
89
|
-
<sp-menu-item>Save Selection</sp-menu-item>
|
|
90
|
-
<sp-menu-item disabled>Make Work Path</sp-menu-item>
|
|
91
|
-
</sp-menu>
|
|
92
|
-
</sp-tray>
|
|
43
|
+
<overlay-trigger type="modal" placement="none">
|
|
44
|
+
<sp-button slot="trigger" variant="secondary">Toggle menu</sp-button>
|
|
45
|
+
<sp-tray slot="click-content">
|
|
46
|
+
<sp-menu style="width: 100%">
|
|
47
|
+
<sp-menu-item selected>Deselect</sp-menu-item>
|
|
48
|
+
<sp-menu-item>Select Inverse</sp-menu-item>
|
|
49
|
+
<sp-menu-item focused>Feather...</sp-menu-item>
|
|
50
|
+
<sp-menu-item>Select and Mask...</sp-menu-item>
|
|
51
|
+
<sp-menu-divider></sp-menu-divider>
|
|
52
|
+
<sp-menu-item>Save Selection</sp-menu-item>
|
|
53
|
+
<sp-menu-item disabled>Make Work Path</sp-menu-item>
|
|
54
|
+
</sp-menu>
|
|
55
|
+
</sp-tray>
|
|
56
|
+
</overlay-trigger>
|
|
93
57
|
```
|
|
94
58
|
|
|
95
59
|
## Accessibility
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/tray",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -44,20 +44,20 @@
|
|
|
44
44
|
"lit-html"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@spectrum-web-components/base": "^0.5.
|
|
48
|
-
"@spectrum-web-components/modal": "^0.6.
|
|
49
|
-
"@spectrum-web-components/reactive-controllers": "^0.2.
|
|
50
|
-
"@spectrum-web-components/shared": "^0.13.
|
|
51
|
-
"@spectrum-web-components/underlay": "^0.8.
|
|
47
|
+
"@spectrum-web-components/base": "^0.5.4",
|
|
48
|
+
"@spectrum-web-components/modal": "^0.6.3",
|
|
49
|
+
"@spectrum-web-components/reactive-controllers": "^0.2.2",
|
|
50
|
+
"@spectrum-web-components/shared": "^0.13.6",
|
|
51
|
+
"@spectrum-web-components/underlay": "^0.8.5",
|
|
52
52
|
"tslib": "^2.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@spectrum-css/tray": "^1.0.
|
|
55
|
+
"@spectrum-css/tray": "^1.0.18"
|
|
56
56
|
},
|
|
57
57
|
"types": "./src/index.d.ts",
|
|
58
58
|
"customElements": "custom-elements.json",
|
|
59
59
|
"sideEffects": [
|
|
60
60
|
"./sp-*.js"
|
|
61
61
|
],
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "caf12727e7f91dcf961e1fadacc727eea9ece27b"
|
|
63
63
|
}
|