@spectrum-web-components/action-button 0.31.1-overlay.29 → 0.31.1-react.21

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