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