@spectrum-web-components/action-button 1.0.1 → 1.0.3-react-typings

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.
Files changed (56) hide show
  1. package/README.md +22 -0
  2. package/package.json +9 -6
  3. package/src/action-button.css.dev.js +1 -1
  4. package/src/action-button.css.dev.js.map +1 -1
  5. package/src/action-button.css.js +1 -1
  6. package/src/action-button.css.js.map +1 -1
  7. package/src/react-typings/ActionButton.dev.js +6 -0
  8. package/src/react-typings/ActionButton.dev.js.map +7 -0
  9. package/src/react-typings/ActionButton.js +2 -0
  10. package/src/react-typings/ActionButton.js.map +7 -0
  11. package/LICENSE +0 -201
  12. package/custom-elements.json +0 -346
  13. package/stories/action-button-black-quiet.stories.js +0 -41
  14. package/stories/action-button-black-quiet.stories.js.map +0 -7
  15. package/stories/action-button-black.stories.js +0 -35
  16. package/stories/action-button-black.stories.js.map +0 -7
  17. package/stories/action-button-emphasized-quiet.stories.js +0 -39
  18. package/stories/action-button-emphasized-quiet.stories.js.map +0 -7
  19. package/stories/action-button-emphasized.stories.js +0 -33
  20. package/stories/action-button-emphasized.stories.js.map +0 -7
  21. package/stories/action-button-quiet.stories.js +0 -33
  22. package/stories/action-button-quiet.stories.js.map +0 -7
  23. package/stories/action-button-standard.stories.js +0 -27
  24. package/stories/action-button-standard.stories.js.map +0 -7
  25. package/stories/action-button-white-quiet.stories.js +0 -41
  26. package/stories/action-button-white-quiet.stories.js.map +0 -7
  27. package/stories/action-button-white.stories.js +0 -35
  28. package/stories/action-button-white.stories.js.map +0 -7
  29. package/stories/action-button.stories.js +0 -31
  30. package/stories/action-button.stories.js.map +0 -7
  31. package/stories/index.js +0 -85
  32. package/stories/index.js.map +0 -7
  33. package/test/action-button-black-quiet.test-vrt.js +0 -5
  34. package/test/action-button-black-quiet.test-vrt.js.map +0 -7
  35. package/test/action-button-black.test-vrt.js +0 -5
  36. package/test/action-button-black.test-vrt.js.map +0 -7
  37. package/test/action-button-emphasized-quiet.test-vrt.js +0 -5
  38. package/test/action-button-emphasized-quiet.test-vrt.js.map +0 -7
  39. package/test/action-button-emphasized.test-vrt.js +0 -5
  40. package/test/action-button-emphasized.test-vrt.js.map +0 -7
  41. package/test/action-button-memory.test.js +0 -5
  42. package/test/action-button-memory.test.js.map +0 -7
  43. package/test/action-button-quiet.test-vrt.js +0 -5
  44. package/test/action-button-quiet.test-vrt.js.map +0 -7
  45. package/test/action-button-standard.test-vrt.js +0 -5
  46. package/test/action-button-standard.test-vrt.js.map +0 -7
  47. package/test/action-button-white-quiet.test-vrt.js +0 -5
  48. package/test/action-button-white-quiet.test-vrt.js.map +0 -7
  49. package/test/action-button-white.test-vrt.js +0 -5
  50. package/test/action-button-white.test-vrt.js.map +0 -7
  51. package/test/action-button.test-vrt.js +0 -5
  52. package/test/action-button.test-vrt.js.map +0 -7
  53. package/test/action-button.test.js +0 -244
  54. package/test/action-button.test.js.map +0 -7
  55. package/test/benchmark/basic-test.js +0 -19
  56. package/test/benchmark/basic-test.js.map +0 -7
@@ -1,346 +0,0 @@
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
- }
@@ -1,41 +0,0 @@
1
- "use strict";
2
- import { makeOverBackground } from "../../button/stories/index.js";
3
- import { renderButtons } from "./index.js";
4
- export default {
5
- component: "sp-action-button",
6
- title: "Action Button/Static Black Quiet",
7
- decorators: [makeOverBackground("black")]
8
- };
9
- const staticColor = "black";
10
- const quiet = true;
11
- export const XS = (args) => renderButtons(args);
12
- XS.args = {
13
- size: "xs",
14
- quiet,
15
- staticColor
16
- };
17
- export const s = (args) => renderButtons(args);
18
- s.args = {
19
- size: "s",
20
- quiet,
21
- staticColor
22
- };
23
- export const m = (args) => renderButtons(args);
24
- m.args = {
25
- size: "m",
26
- quiet,
27
- staticColor
28
- };
29
- export const l = (args) => renderButtons(args);
30
- l.args = {
31
- size: "l",
32
- quiet,
33
- staticColor
34
- };
35
- export const XL = (args) => renderButtons(args);
36
- XL.args = {
37
- size: "xl",
38
- quiet,
39
- staticColor
40
- };
41
- //# sourceMappingURL=action-button-black-quiet.stories.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["action-button-black-quiet.stories.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static Black Quiet',\n decorators: [makeOverBackground('black')],\n};\n\nconst staticColor = 'black';\nconst quiet = true;\n\nexport const XS = (args: Properties): TemplateResult => renderButtons(args);\nXS.args = {\n size: 'xs',\n quiet,\n staticColor,\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n quiet,\n staticColor,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n quiet,\n staticColor,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n quiet,\n staticColor,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n quiet,\n staticColor,\n};\n"],
5
- "mappings": ";AAYA,SAAS,0BAA0B;AAEnC,SAAS,qBAAqB;AAE9B,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY,CAAC,mBAAmB,OAAO,CAAC;AAC5C;AAEA,MAAM,cAAc;AACpB,MAAM,QAAQ;AAEP,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AAAA,EACA;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AAAA,EACA;AACJ;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AAAA,EACA;AACJ;",
6
- "names": []
7
- }
@@ -1,35 +0,0 @@
1
- "use strict";
2
- import { makeOverBackground } from "../../button/stories/index.js";
3
- import { renderButtons } from "./index.js";
4
- export default {
5
- component: "sp-action-button",
6
- title: "Action Button/Static Black",
7
- decorators: [makeOverBackground("black")]
8
- };
9
- const staticColor = "black";
10
- export const XS = (args) => renderButtons(args);
11
- XS.args = {
12
- size: "xs",
13
- staticColor
14
- };
15
- export const s = (args) => renderButtons(args);
16
- s.args = {
17
- size: "s",
18
- staticColor
19
- };
20
- export const m = (args) => renderButtons(args);
21
- m.args = {
22
- size: "m",
23
- staticColor
24
- };
25
- export const l = (args) => renderButtons(args);
26
- l.args = {
27
- size: "l",
28
- staticColor
29
- };
30
- export const XL = (args) => renderButtons(args);
31
- XL.args = {
32
- size: "xl",
33
- staticColor
34
- };
35
- //# sourceMappingURL=action-button-black.stories.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["action-button-black.stories.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport { makeOverBackground } from '../../button/stories/index.js';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Static Black',\n decorators: [makeOverBackground('black')],\n};\n\nconst staticColor = 'black';\n\nexport const XS = (args: Properties): TemplateResult => renderButtons(args);\nXS.args = {\n size: 'xs',\n staticColor,\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n staticColor,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n staticColor,\n} as Properties;\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n staticColor,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n staticColor,\n};\n"],
5
- "mappings": ";AAYA,SAAS,0BAA0B;AAEnC,SAAS,qBAAqB;AAE9B,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AAAA,EACP,YAAY,CAAC,mBAAmB,OAAO,CAAC;AAC5C;AAEA,MAAM,cAAc;AAEb,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AACJ;",
6
- "names": []
7
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- import { renderButtons } from "./index.js";
3
- export default {
4
- component: "sp-action-button",
5
- title: "Action Button/Emphasized Quiet"
6
- };
7
- const emphasized = true;
8
- const quiet = true;
9
- export const XS = (args) => renderButtons(args);
10
- XS.args = {
11
- emphasized,
12
- size: "xs",
13
- quiet
14
- };
15
- export const s = (args) => renderButtons(args);
16
- s.args = {
17
- emphasized,
18
- size: "s",
19
- quiet
20
- };
21
- export const m = (args) => renderButtons(args);
22
- m.args = {
23
- emphasized,
24
- size: "m",
25
- quiet
26
- };
27
- export const l = (args) => renderButtons(args);
28
- l.args = {
29
- emphasized,
30
- size: "l",
31
- quiet
32
- };
33
- export const XL = (args) => renderButtons(args);
34
- XL.args = {
35
- emphasized,
36
- size: "xl",
37
- quiet
38
- };
39
- //# sourceMappingURL=action-button-emphasized-quiet.stories.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["action-button-emphasized-quiet.stories.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Emphasized Quiet',\n};\n\nconst emphasized = true;\nconst quiet = true;\n\nexport const XS = (args: Properties): TemplateResult => renderButtons(args);\nXS.args = {\n emphasized,\n size: 'xs',\n quiet,\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n emphasized,\n size: 's',\n quiet,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n emphasized,\n size: 'm',\n quiet,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n emphasized,\n size: 'l',\n quiet,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n emphasized,\n size: 'xl',\n quiet,\n};\n"],
5
- "mappings": ";AAaA,SAAS,qBAAqB;AAE9B,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEA,MAAM,aAAa;AACnB,MAAM,QAAQ;AAEP,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN;AAAA,EACA,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL;AAAA,EACA,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL;AAAA,EACA,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL;AAAA,EACA,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN;AAAA,EACA,MAAM;AAAA,EACN;AACJ;",
6
- "names": []
7
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- import { renderButtons } from "./index.js";
3
- export default {
4
- component: "sp-action-button",
5
- title: "Action Button/Emphasized"
6
- };
7
- const emphasized = true;
8
- export const XS = (args) => renderButtons(args);
9
- XS.args = {
10
- emphasized,
11
- size: "xs"
12
- };
13
- export const s = (args) => renderButtons(args);
14
- s.args = {
15
- emphasized,
16
- size: "s"
17
- };
18
- export const m = (args) => renderButtons(args);
19
- m.args = {
20
- emphasized,
21
- size: "m"
22
- };
23
- export const l = (args) => renderButtons(args);
24
- l.args = {
25
- emphasized,
26
- size: "l"
27
- };
28
- export const XL = (args) => renderButtons(args);
29
- XL.args = {
30
- emphasized,
31
- size: "xl"
32
- };
33
- //# sourceMappingURL=action-button-emphasized.stories.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["action-button-emphasized.stories.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Emphasized',\n};\n\nconst emphasized = true;\n\nexport const XS = (args: Properties): TemplateResult => renderButtons(args);\nXS.args = {\n emphasized,\n size: 'xs',\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n emphasized,\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n emphasized,\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n emphasized,\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n emphasized,\n size: 'xl',\n};\n"],
5
- "mappings": ";AAaA,SAAS,qBAAqB;AAE9B,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEA,MAAM,aAAa;AAEZ,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN;AAAA,EACA,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL;AAAA,EACA,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL;AAAA,EACA,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL;AAAA,EACA,MAAM;AACV;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN;AAAA,EACA,MAAM;AACV;",
6
- "names": []
7
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- import { renderButtons } from "./index.js";
3
- export default {
4
- component: "sp-action-button",
5
- title: "Action Button/Standard Quiet"
6
- };
7
- const quiet = true;
8
- export const XS = (args) => renderButtons(args);
9
- XS.args = {
10
- size: "xs",
11
- quiet
12
- };
13
- export const s = (args) => renderButtons(args);
14
- s.args = {
15
- size: "s",
16
- quiet
17
- };
18
- export const m = (args) => renderButtons(args);
19
- m.args = {
20
- size: "m",
21
- quiet
22
- };
23
- export const l = (args) => renderButtons(args);
24
- l.args = {
25
- size: "l",
26
- quiet
27
- };
28
- export const XL = (args) => renderButtons(args);
29
- XL.args = {
30
- size: "xl",
31
- quiet
32
- };
33
- //# sourceMappingURL=action-button-quiet.stories.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["action-button-quiet.stories.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Standard Quiet',\n};\n\nconst quiet = true;\n\nexport const XS = (args: Properties): TemplateResult => renderButtons(args);\nXS.args = {\n size: 'xs',\n quiet,\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n quiet,\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n quiet,\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n quiet,\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n quiet,\n};\n"],
5
- "mappings": ";AAaA,SAAS,qBAAqB;AAE9B,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEA,MAAM,QAAQ;AAEP,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AAAA,EACN;AACJ;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AAAA,EACN;AACJ;",
6
- "names": []
7
- }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- import { renderButtons } from "./index.js";
3
- export default {
4
- component: "sp-action-button",
5
- title: "Action Button/Standard"
6
- };
7
- export const XS = (args) => renderButtons(args);
8
- XS.args = {
9
- size: "xs"
10
- };
11
- export const s = (args) => renderButtons(args);
12
- s.args = {
13
- size: "s"
14
- };
15
- export const m = (args) => renderButtons(args);
16
- m.args = {
17
- size: "m"
18
- };
19
- export const l = (args) => renderButtons(args);
20
- l.args = {
21
- size: "l"
22
- };
23
- export const XL = (args) => renderButtons(args);
24
- XL.args = {
25
- size: "xl"
26
- };
27
- //# sourceMappingURL=action-button-standard.stories.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["action-button-standard.stories.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { TemplateResult } from '@spectrum-web-components/base';\nimport type { Properties } from './index.js';\nimport { renderButtons } from './index.js';\n\nexport default {\n component: 'sp-action-button',\n title: 'Action Button/Standard',\n};\n\nexport const XS = (args: Properties): TemplateResult => renderButtons(args);\nXS.args = {\n size: 'xs',\n};\n\nexport const s = (args: Properties): TemplateResult => renderButtons(args);\ns.args = {\n size: 's',\n};\n\nexport const m = (args: Properties): TemplateResult => renderButtons(args);\nm.args = {\n size: 'm',\n};\n\nexport const l = (args: Properties): TemplateResult => renderButtons(args);\nl.args = {\n size: 'l',\n};\n\nexport const XL = (args: Properties): TemplateResult => renderButtons(args);\nXL.args = {\n size: 'xl',\n};\n"],
5
- "mappings": ";AAaA,SAAS,qBAAqB;AAE9B,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,IAAI,CAAC,SAAqC,cAAc,IAAI;AACzE,EAAE,OAAO;AAAA,EACL,MAAM;AACV;AAEO,aAAM,KAAK,CAAC,SAAqC,cAAc,IAAI;AAC1E,GAAG,OAAO;AAAA,EACN,MAAM;AACV;",
6
- "names": []
7
- }
@@ -1,41 +0,0 @@
1
- "use strict";
2
- import { makeOverBackground } from "../../button/stories/index.js";
3
- import { renderButtons } from "./index.js";
4
- export default {
5
- component: "sp-action-button",
6
- title: "Action Button/Static White Quiet",
7
- decorators: [makeOverBackground()]
8
- };
9
- const staticColor = "white";
10
- const quiet = true;
11
- export const XS = (args) => renderButtons(args);
12
- XS.args = {
13
- size: "xs",
14
- quiet,
15
- staticColor
16
- };
17
- export const s = (args) => renderButtons(args);
18
- s.args = {
19
- size: "s",
20
- quiet,
21
- staticColor
22
- };
23
- export const m = (args) => renderButtons(args);
24
- m.args = {
25
- size: "m",
26
- quiet,
27
- staticColor
28
- };
29
- export const l = (args) => renderButtons(args);
30
- l.args = {
31
- size: "l",
32
- quiet,
33
- staticColor
34
- };
35
- export const XL = (args) => renderButtons(args);
36
- XL.args = {
37
- size: "xl",
38
- quiet,
39
- staticColor
40
- };
41
- //# sourceMappingURL=action-button-white-quiet.stories.js.map