@spectrum-web-components/tray 0.35.0 → 0.35.1-rc.24

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 CHANGED
@@ -26,7 +26,7 @@ import { Tray } from '@spectrum-web-components/tray';
26
26
  ## Dialog
27
27
 
28
28
  ```html
29
- <overlay-trigger type="modal" placement="none">
29
+ <overlay-trigger type="modal">
30
30
  <sp-button slot="trigger" variant="secondary">Toggle tray</sp-button>
31
31
  <sp-tray slot="click-content">
32
32
  <sp-dialog size="s" dismissable>
@@ -40,7 +40,7 @@ import { Tray } from '@spectrum-web-components/tray';
40
40
  ## Menu
41
41
 
42
42
  ```html
43
- <overlay-trigger type="modal" placement="none">
43
+ <overlay-trigger type="modal">
44
44
  <sp-button slot="trigger" variant="secondary">Toggle menu</sp-button>
45
45
  <sp-tray slot="click-content">
46
46
  <sp-menu style="width: 100%">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/tray",
3
- "version": "0.35.0",
3
+ "version": "0.35.1-rc.24+e3649e123",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,11 +57,11 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.35.0",
61
- "@spectrum-web-components/modal": "^0.35.0",
62
- "@spectrum-web-components/reactive-controllers": "^0.35.0",
63
- "@spectrum-web-components/shared": "^0.35.0",
64
- "@spectrum-web-components/underlay": "^0.35.0"
60
+ "@spectrum-web-components/base": "^0.35.1-rc.24+e3649e123",
61
+ "@spectrum-web-components/modal": "^0.35.1-rc.24+e3649e123",
62
+ "@spectrum-web-components/reactive-controllers": "^0.35.1-rc.24+e3649e123",
63
+ "@spectrum-web-components/shared": "^0.35.1-rc.24+e3649e123",
64
+ "@spectrum-web-components/underlay": "^0.35.1-rc.24+e3649e123"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@spectrum-css/tray": "^2.0.57"
@@ -72,5 +72,5 @@
72
72
  "./sp-*.js",
73
73
  "./**/*.dev.js"
74
74
  ],
75
- "gitHead": "1ee5a6c92838cdf48321276d97f61c20f8476ac1"
75
+ "gitHead": "e3649e1230ed727048988a452969c38ced5467ac"
76
76
  }
@@ -1,193 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-tray.js",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-tray",
13
- "declaration": {
14
- "name": "Tray",
15
- "module": "/src/Tray.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/Tray.js",
23
- "declarations": [
24
- {
25
- "kind": "class",
26
- "description": "",
27
- "name": "Tray",
28
- "slots": [
29
- {
30
- "description": "content to display within the Tray",
31
- "name": ""
32
- }
33
- ],
34
- "members": [
35
- {
36
- "kind": "field",
37
- "name": "open",
38
- "type": {
39
- "text": "boolean"
40
- },
41
- "privacy": "public",
42
- "default": "false",
43
- "attribute": "open",
44
- "reflects": true
45
- },
46
- {
47
- "kind": "field",
48
- "name": "prefersMotion",
49
- "privacy": "protected",
50
- "default": "new MatchMediaController(\n this,\n '(prefers-reduced-motion: no-preference)'\n )"
51
- },
52
- {
53
- "kind": "field",
54
- "name": "transitionPromise",
55
- "privacy": "private"
56
- },
57
- {
58
- "kind": "field",
59
- "name": "resolveTransitionPromise",
60
- "type": {
61
- "text": "() => void"
62
- },
63
- "privacy": "private"
64
- },
65
- {
66
- "kind": "field",
67
- "name": "tray",
68
- "type": {
69
- "text": "HTMLDivElement"
70
- },
71
- "privacy": "private"
72
- },
73
- {
74
- "kind": "method",
75
- "name": "focus",
76
- "privacy": "public",
77
- "return": {
78
- "type": {
79
- "text": "void"
80
- }
81
- }
82
- },
83
- {
84
- "kind": "field",
85
- "name": "animating",
86
- "type": {
87
- "text": "boolean"
88
- },
89
- "privacy": "private",
90
- "default": "false"
91
- },
92
- {
93
- "kind": "method",
94
- "name": "overlayWillCloseCallback",
95
- "privacy": "public",
96
- "return": {
97
- "type": {
98
- "text": "boolean"
99
- }
100
- }
101
- },
102
- {
103
- "kind": "method",
104
- "name": "close",
105
- "privacy": "public",
106
- "return": {
107
- "type": {
108
- "text": "void"
109
- }
110
- }
111
- },
112
- {
113
- "kind": "method",
114
- "name": "dispatchClosed",
115
- "privacy": "private",
116
- "return": {
117
- "type": {
118
- "text": "void"
119
- }
120
- }
121
- },
122
- {
123
- "kind": "method",
124
- "name": "handleUnderlayTransitionend",
125
- "privacy": "protected",
126
- "return": {
127
- "type": {
128
- "text": "void"
129
- }
130
- }
131
- },
132
- {
133
- "kind": "method",
134
- "name": "handleTrayTransitionend",
135
- "privacy": "protected",
136
- "return": {
137
- "type": {
138
- "text": "void"
139
- }
140
- }
141
- },
142
- {
143
- "kind": "method",
144
- "name": "getUpdateComplete",
145
- "privacy": "protected",
146
- "return": {
147
- "type": {
148
- "text": "Promise<boolean>"
149
- }
150
- },
151
- "description": "Bind the open/close transition into the update complete lifecycle so\nthat the overlay system can wait for it to be \"visibly ready\" before\nattempting to throw focus into the content contained herein. Not\nwaiting for this can cause small amounts of page scroll to happen\nwhile opening the Tray when focusable content is included: e.g. Menu\nelements whose selected Menu Item is not the first Menu Item."
152
- }
153
- ],
154
- "events": [
155
- {
156
- "name": "close",
157
- "type": {
158
- "text": "Event"
159
- },
160
- "description": "Announces that the Tray has been closed."
161
- }
162
- ],
163
- "attributes": [
164
- {
165
- "name": "open",
166
- "type": {
167
- "text": "boolean"
168
- },
169
- "default": "false",
170
- "fieldName": "open"
171
- }
172
- ],
173
- "superclass": {
174
- "name": "SpectrumElement",
175
- "package": "@spectrum-web-components/base"
176
- },
177
- "tagName": "sp-tray",
178
- "customElement": true
179
- }
180
- ],
181
- "exports": [
182
- {
183
- "kind": "js",
184
- "name": "Tray",
185
- "declaration": {
186
- "name": "Tray",
187
- "module": "src/Tray.js"
188
- }
189
- }
190
- ]
191
- }
192
- ]
193
- }