@spectrum-web-components/action-button 0.48.0-beta.2 → 0.48.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.
@@ -0,0 +1,361 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-action-button.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-action-button",
13
+ "declaration": {
14
+ "name": "ActionButton",
15
+ "module": "/src/ActionButton.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/ActionButton.js",
23
+ "declarations": [
24
+ {
25
+ "kind": "variable",
26
+ "name": "LONGPRESS_DURATION",
27
+ "type": {
28
+ "text": "number"
29
+ },
30
+ "default": "300"
31
+ },
32
+ {
33
+ "kind": "class",
34
+ "description": "",
35
+ "name": "ActionButton",
36
+ "slots": [
37
+ {
38
+ "description": "text label of the Action Button",
39
+ "name": ""
40
+ },
41
+ {
42
+ "description": "The icon to use for Action Button",
43
+ "name": "icon"
44
+ }
45
+ ],
46
+ "members": [
47
+ {
48
+ "kind": "field",
49
+ "name": "emphasized",
50
+ "type": {
51
+ "text": "boolean"
52
+ },
53
+ "privacy": "public",
54
+ "default": "false",
55
+ "attribute": "emphasized",
56
+ "reflects": true
57
+ },
58
+ {
59
+ "kind": "field",
60
+ "name": "holdAffordance",
61
+ "type": {
62
+ "text": "boolean"
63
+ },
64
+ "privacy": "public",
65
+ "default": "false",
66
+ "attribute": "hold-affordance",
67
+ "reflects": true
68
+ },
69
+ {
70
+ "kind": "field",
71
+ "name": "quiet",
72
+ "type": {
73
+ "text": "boolean"
74
+ },
75
+ "privacy": "public",
76
+ "default": "false",
77
+ "attribute": "quiet",
78
+ "reflects": true
79
+ },
80
+ {
81
+ "kind": "field",
82
+ "name": "role",
83
+ "type": {
84
+ "text": "string"
85
+ },
86
+ "privacy": "public",
87
+ "default": "'button'",
88
+ "attribute": "role",
89
+ "reflects": true
90
+ },
91
+ {
92
+ "kind": "field",
93
+ "name": "selected",
94
+ "type": {
95
+ "text": "boolean"
96
+ },
97
+ "privacy": "public",
98
+ "default": "false",
99
+ "description": "Whether an Action Button with `role='button'`\nshould also be `aria-pressed='true'`",
100
+ "attribute": "selected",
101
+ "reflects": true
102
+ },
103
+ {
104
+ "kind": "field",
105
+ "name": "toggles",
106
+ "type": {
107
+ "text": "boolean"
108
+ },
109
+ "privacy": "public",
110
+ "default": "false",
111
+ "description": "Whether to automatically manage the `selected`\nattribute on interaction and whether `aria-pressed=\"false\"`\nshould be used when `selected === false`",
112
+ "attribute": "toggles",
113
+ "reflects": true
114
+ },
115
+ {
116
+ "kind": "field",
117
+ "name": "static",
118
+ "type": {
119
+ "text": "'white' | 'black' | undefined"
120
+ },
121
+ "privacy": "public",
122
+ "attribute": "static",
123
+ "reflects": true
124
+ },
125
+ {
126
+ "kind": "field",
127
+ "name": "variant",
128
+ "type": {
129
+ "text": "'white' | 'black' | undefined"
130
+ },
131
+ "privacy": "public",
132
+ "attribute": "variant",
133
+ "reflects": true
134
+ },
135
+ {
136
+ "kind": "field",
137
+ "name": "value",
138
+ "type": {
139
+ "text": "string"
140
+ },
141
+ "privacy": "public",
142
+ "attribute": "value"
143
+ },
144
+ {
145
+ "kind": "field",
146
+ "name": "_value",
147
+ "type": {
148
+ "text": "string"
149
+ },
150
+ "privacy": "private",
151
+ "default": "''"
152
+ },
153
+ {
154
+ "kind": "field",
155
+ "name": "itemText",
156
+ "type": {
157
+ "text": "string"
158
+ },
159
+ "privacy": "private",
160
+ "readonly": true
161
+ },
162
+ {
163
+ "kind": "field",
164
+ "name": "onClick",
165
+ "privacy": "private"
166
+ },
167
+ {
168
+ "kind": "method",
169
+ "name": "handlePointerdownHoldAffordance",
170
+ "privacy": "private",
171
+ "return": {
172
+ "type": {
173
+ "text": "void"
174
+ }
175
+ },
176
+ "parameters": [
177
+ {
178
+ "name": "event",
179
+ "type": {
180
+ "text": "PointerEvent"
181
+ }
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "kind": "method",
187
+ "name": "handlePointerupHoldAffordance",
188
+ "privacy": "private",
189
+ "return": {
190
+ "type": {
191
+ "text": "void"
192
+ }
193
+ }
194
+ },
195
+ {
196
+ "kind": "method",
197
+ "name": "handleKeydown",
198
+ "privacy": "private",
199
+ "return": {
200
+ "type": {
201
+ "text": "void"
202
+ }
203
+ },
204
+ "parameters": [
205
+ {
206
+ "name": "event",
207
+ "type": {
208
+ "text": "KeyboardEvent"
209
+ }
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "kind": "method",
215
+ "name": "handleKeyup",
216
+ "privacy": "protected",
217
+ "return": {
218
+ "type": {
219
+ "text": "void"
220
+ }
221
+ },
222
+ "parameters": [
223
+ {
224
+ "name": "event",
225
+ "type": {
226
+ "text": "KeyboardEvent"
227
+ }
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ "kind": "field",
233
+ "name": "buttonContent",
234
+ "type": {
235
+ "text": "TemplateResult[]"
236
+ },
237
+ "privacy": "protected",
238
+ "readonly": true
239
+ }
240
+ ],
241
+ "events": [
242
+ {
243
+ "name": "longpress",
244
+ "type": {
245
+ "text": "CustomEvent"
246
+ },
247
+ "description": "Synthesizes a \"longpress\" interaction that signifies a `pointerdown` event that is >=300ms or a keyboard event wher code is `Space` or code is `ArrowDown` while `altKey===true`."
248
+ },
249
+ {
250
+ "description": "Announces a change in the `selected` property of an action button",
251
+ "name": "change"
252
+ }
253
+ ],
254
+ "attributes": [
255
+ {
256
+ "name": "emphasized",
257
+ "type": {
258
+ "text": "boolean"
259
+ },
260
+ "default": "false",
261
+ "fieldName": "emphasized"
262
+ },
263
+ {
264
+ "name": "hold-affordance",
265
+ "type": {
266
+ "text": "boolean"
267
+ },
268
+ "default": "false",
269
+ "fieldName": "holdAffordance"
270
+ },
271
+ {
272
+ "name": "quiet",
273
+ "type": {
274
+ "text": "boolean"
275
+ },
276
+ "default": "false",
277
+ "fieldName": "quiet"
278
+ },
279
+ {
280
+ "name": "role",
281
+ "type": {
282
+ "text": "string"
283
+ },
284
+ "default": "'button'",
285
+ "fieldName": "role"
286
+ },
287
+ {
288
+ "name": "selected",
289
+ "type": {
290
+ "text": "boolean"
291
+ },
292
+ "default": "false",
293
+ "description": "Whether an Action Button with `role='button'`\nshould also be `aria-pressed='true'`",
294
+ "fieldName": "selected"
295
+ },
296
+ {
297
+ "name": "toggles",
298
+ "type": {
299
+ "text": "boolean"
300
+ },
301
+ "default": "false",
302
+ "description": "Whether to automatically manage the `selected`\nattribute on interaction and whether `aria-pressed=\"false\"`\nshould be used when `selected === false`",
303
+ "fieldName": "toggles"
304
+ },
305
+ {
306
+ "name": "static",
307
+ "type": {
308
+ "text": "'white' | 'black' | undefined"
309
+ },
310
+ "fieldName": "static"
311
+ },
312
+ {
313
+ "name": "variant",
314
+ "type": {
315
+ "text": "'white' | 'black' | undefined"
316
+ },
317
+ "fieldName": "variant"
318
+ },
319
+ {
320
+ "name": "value",
321
+ "type": {
322
+ "text": "string"
323
+ },
324
+ "fieldName": "value"
325
+ }
326
+ ],
327
+ "mixins": [
328
+ {
329
+ "name": "SizedMixin",
330
+ "package": "@spectrum-web-components/base"
331
+ }
332
+ ],
333
+ "superclass": {
334
+ "name": "ButtonBase",
335
+ "package": "@spectrum-web-components/button"
336
+ },
337
+ "tagName": "sp-action-button",
338
+ "customElement": true
339
+ }
340
+ ],
341
+ "exports": [
342
+ {
343
+ "kind": "js",
344
+ "name": "LONGPRESS_DURATION",
345
+ "declaration": {
346
+ "name": "LONGPRESS_DURATION",
347
+ "module": "src/ActionButton.js"
348
+ }
349
+ },
350
+ {
351
+ "kind": "js",
352
+ "name": "ActionButton",
353
+ "declaration": {
354
+ "name": "ActionButton",
355
+ "module": "src/ActionButton.js"
356
+ }
357
+ }
358
+ ]
359
+ }
360
+ ]
361
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/action-button",
3
- "version": "0.48.0-beta.2",
3
+ "version": "0.48.1",
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.48.0-beta.2",
61
- "@spectrum-web-components/button": "^0.48.0-beta.2",
62
- "@spectrum-web-components/icon": "^0.48.0-beta.2",
63
- "@spectrum-web-components/icons-ui": "^0.48.0-beta.2",
64
- "@spectrum-web-components/shared": "^0.48.0-beta.2"
60
+ "@spectrum-web-components/base": "^0.48.1",
61
+ "@spectrum-web-components/button": "^0.48.1",
62
+ "@spectrum-web-components/icon": "^0.48.1",
63
+ "@spectrum-web-components/icons-ui": "^0.48.1",
64
+ "@spectrum-web-components/shared": "^0.48.1"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@spectrum-css/actionbutton": "^6.1.1"
@@ -72,5 +72,5 @@
72
72
  "./sp-*.js",
73
73
  "./**/*.dev.js"
74
74
  ],
75
- "gitHead": "e0479b5edadc68587c678267d3ac2c29c460b4d3"
75
+ "gitHead": "b756ecc3587411e4dbeb825bad40a9f4a3c7a248"
76
76
  }