@spectrum-web-components/action-button 1.2.0-beta.1 → 1.2.0-beta.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.
@@ -0,0 +1,346 @@
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": "staticColor",
118
+ "type": {
119
+ "text": "'white' | 'black' | undefined"
120
+ },
121
+ "privacy": "public",
122
+ "description": "The static color variant to use for the action button.",
123
+ "attribute": "static-color",
124
+ "reflects": true
125
+ },
126
+ {
127
+ "kind": "field",
128
+ "name": "value",
129
+ "type": {
130
+ "text": "string"
131
+ },
132
+ "privacy": "public",
133
+ "attribute": "value"
134
+ },
135
+ {
136
+ "kind": "field",
137
+ "name": "_value",
138
+ "type": {
139
+ "text": "string"
140
+ },
141
+ "privacy": "private",
142
+ "default": "''"
143
+ },
144
+ {
145
+ "kind": "field",
146
+ "name": "itemText",
147
+ "type": {
148
+ "text": "string"
149
+ },
150
+ "privacy": "private",
151
+ "readonly": true
152
+ },
153
+ {
154
+ "kind": "field",
155
+ "name": "onClick",
156
+ "privacy": "private"
157
+ },
158
+ {
159
+ "kind": "method",
160
+ "name": "handlePointerdownHoldAffordance",
161
+ "privacy": "private",
162
+ "return": {
163
+ "type": {
164
+ "text": "void"
165
+ }
166
+ },
167
+ "parameters": [
168
+ {
169
+ "name": "event",
170
+ "type": {
171
+ "text": "PointerEvent"
172
+ }
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "kind": "method",
178
+ "name": "handlePointerupHoldAffordance",
179
+ "privacy": "private",
180
+ "return": {
181
+ "type": {
182
+ "text": "void"
183
+ }
184
+ }
185
+ },
186
+ {
187
+ "kind": "method",
188
+ "name": "handleKeydown",
189
+ "privacy": "private",
190
+ "return": {
191
+ "type": {
192
+ "text": "void"
193
+ }
194
+ },
195
+ "parameters": [
196
+ {
197
+ "name": "event",
198
+ "type": {
199
+ "text": "KeyboardEvent"
200
+ }
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "kind": "method",
206
+ "name": "handleKeyup",
207
+ "privacy": "protected",
208
+ "return": {
209
+ "type": {
210
+ "text": "void"
211
+ }
212
+ },
213
+ "parameters": [
214
+ {
215
+ "name": "event",
216
+ "type": {
217
+ "text": "KeyboardEvent"
218
+ }
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "kind": "field",
224
+ "name": "buttonContent",
225
+ "type": {
226
+ "text": "TemplateResult[]"
227
+ },
228
+ "privacy": "protected",
229
+ "readonly": true
230
+ }
231
+ ],
232
+ "events": [
233
+ {
234
+ "name": "longpress",
235
+ "type": {
236
+ "text": "CustomEvent"
237
+ },
238
+ "description": "Synthesizes a \"longpress\" interaction that signifies a `pointerdown` event that is >=300ms or a keyboard event where code is `Space` or code is `ArrowDown` while `altKey===true`."
239
+ },
240
+ {
241
+ "description": "Announces a change in the `selected` property of an action button",
242
+ "name": "change"
243
+ }
244
+ ],
245
+ "attributes": [
246
+ {
247
+ "name": "emphasized",
248
+ "type": {
249
+ "text": "boolean"
250
+ },
251
+ "default": "false",
252
+ "fieldName": "emphasized"
253
+ },
254
+ {
255
+ "name": "hold-affordance",
256
+ "type": {
257
+ "text": "boolean"
258
+ },
259
+ "default": "false",
260
+ "fieldName": "holdAffordance"
261
+ },
262
+ {
263
+ "name": "quiet",
264
+ "type": {
265
+ "text": "boolean"
266
+ },
267
+ "default": "false",
268
+ "fieldName": "quiet"
269
+ },
270
+ {
271
+ "name": "role",
272
+ "type": {
273
+ "text": "string"
274
+ },
275
+ "default": "'button'",
276
+ "fieldName": "role"
277
+ },
278
+ {
279
+ "name": "selected",
280
+ "type": {
281
+ "text": "boolean"
282
+ },
283
+ "default": "false",
284
+ "description": "Whether an Action Button with `role='button'`\nshould also be `aria-pressed='true'`",
285
+ "fieldName": "selected"
286
+ },
287
+ {
288
+ "name": "toggles",
289
+ "type": {
290
+ "text": "boolean"
291
+ },
292
+ "default": "false",
293
+ "description": "Whether to automatically manage the `selected`\nattribute on interaction and whether `aria-pressed=\"false\"`\nshould be used when `selected === false`",
294
+ "fieldName": "toggles"
295
+ },
296
+ {
297
+ "name": "static-color",
298
+ "type": {
299
+ "text": "'white' | 'black' | undefined"
300
+ },
301
+ "description": "The static color variant to use for the action button.",
302
+ "fieldName": "staticColor"
303
+ },
304
+ {
305
+ "name": "value",
306
+ "type": {
307
+ "text": "string"
308
+ },
309
+ "fieldName": "value"
310
+ }
311
+ ],
312
+ "mixins": [
313
+ {
314
+ "name": "SizedMixin",
315
+ "package": "@spectrum-web-components/base"
316
+ }
317
+ ],
318
+ "superclass": {
319
+ "name": "ButtonBase",
320
+ "package": "@spectrum-web-components/button"
321
+ },
322
+ "tagName": "sp-action-button",
323
+ "customElement": true
324
+ }
325
+ ],
326
+ "exports": [
327
+ {
328
+ "kind": "js",
329
+ "name": "LONGPRESS_DURATION",
330
+ "declaration": {
331
+ "name": "LONGPRESS_DURATION",
332
+ "module": "src/ActionButton.js"
333
+ }
334
+ },
335
+ {
336
+ "kind": "js",
337
+ "name": "ActionButton",
338
+ "declaration": {
339
+ "name": "ActionButton",
340
+ "module": "src/ActionButton.js"
341
+ }
342
+ }
343
+ ]
344
+ }
345
+ ]
346
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/action-button",
3
- "version": "1.2.0-beta.1",
3
+ "version": "1.2.0-beta.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -58,11 +58,11 @@
58
58
  "lit-html"
59
59
  ],
60
60
  "dependencies": {
61
- "@spectrum-web-components/base": "^1.2.0-beta.1",
62
- "@spectrum-web-components/button": "^1.2.0-beta.1",
63
- "@spectrum-web-components/icon": "^1.2.0-beta.1",
64
- "@spectrum-web-components/icons-ui": "^1.2.0-beta.1",
65
- "@spectrum-web-components/shared": "^1.2.0-beta.1"
61
+ "@spectrum-web-components/base": "^1.2.0-beta.2",
62
+ "@spectrum-web-components/button": "^1.2.0-beta.2",
63
+ "@spectrum-web-components/icon": "^1.2.0-beta.2",
64
+ "@spectrum-web-components/icons-ui": "^1.2.0-beta.2",
65
+ "@spectrum-web-components/shared": "^1.2.0-beta.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@spectrum-css/actionbutton": "7.0.0-s2-foundations.22"
@@ -73,5 +73,5 @@
73
73
  "./sp-*.js",
74
74
  "./**/*.dev.js"
75
75
  ],
76
- "gitHead": "10139c3ba67a3abfb114859efadac87d9dc4a472"
76
+ "gitHead": "c0c67a3bdce0642f6a60d11a62fdcb6c1909ca62"
77
77
  }