@spectrum-web-components/action-button 1.3.0-beta.6 → 1.3.0

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 (47) hide show
  1. package/README.md +125 -45
  2. package/package.json +7 -8
  3. package/LICENSE +0 -201
  4. package/stories/action-button-black-quiet.stories.js +0 -41
  5. package/stories/action-button-black-quiet.stories.js.map +0 -7
  6. package/stories/action-button-black.stories.js +0 -35
  7. package/stories/action-button-black.stories.js.map +0 -7
  8. package/stories/action-button-emphasized-quiet.stories.js +0 -39
  9. package/stories/action-button-emphasized-quiet.stories.js.map +0 -7
  10. package/stories/action-button-emphasized.stories.js +0 -33
  11. package/stories/action-button-emphasized.stories.js.map +0 -7
  12. package/stories/action-button-quiet.stories.js +0 -33
  13. package/stories/action-button-quiet.stories.js.map +0 -7
  14. package/stories/action-button-standard.stories.js +0 -27
  15. package/stories/action-button-standard.stories.js.map +0 -7
  16. package/stories/action-button-white-quiet.stories.js +0 -41
  17. package/stories/action-button-white-quiet.stories.js.map +0 -7
  18. package/stories/action-button-white.stories.js +0 -35
  19. package/stories/action-button-white.stories.js.map +0 -7
  20. package/stories/action-button.stories.js +0 -38
  21. package/stories/action-button.stories.js.map +0 -7
  22. package/stories/index.js +0 -86
  23. package/stories/index.js.map +0 -7
  24. package/test/action-button-black-quiet.test-vrt.js +0 -5
  25. package/test/action-button-black-quiet.test-vrt.js.map +0 -7
  26. package/test/action-button-black.test-vrt.js +0 -5
  27. package/test/action-button-black.test-vrt.js.map +0 -7
  28. package/test/action-button-emphasized-quiet.test-vrt.js +0 -5
  29. package/test/action-button-emphasized-quiet.test-vrt.js.map +0 -7
  30. package/test/action-button-emphasized.test-vrt.js +0 -5
  31. package/test/action-button-emphasized.test-vrt.js.map +0 -7
  32. package/test/action-button-memory.test.js +0 -5
  33. package/test/action-button-memory.test.js.map +0 -7
  34. package/test/action-button-quiet.test-vrt.js +0 -5
  35. package/test/action-button-quiet.test-vrt.js.map +0 -7
  36. package/test/action-button-standard.test-vrt.js +0 -5
  37. package/test/action-button-standard.test-vrt.js.map +0 -7
  38. package/test/action-button-white-quiet.test-vrt.js +0 -5
  39. package/test/action-button-white-quiet.test-vrt.js.map +0 -7
  40. package/test/action-button-white.test-vrt.js +0 -5
  41. package/test/action-button-white.test-vrt.js.map +0 -7
  42. package/test/action-button.test-vrt.js +0 -5
  43. package/test/action-button.test-vrt.js.map +0 -7
  44. package/test/action-button.test.js +0 -273
  45. package/test/action-button.test.js.map +0 -7
  46. package/test/benchmark/basic-test.js +0 -19
  47. package/test/benchmark/basic-test.js.map +0 -7
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## Description
1
+ ## Overview
2
2
 
3
3
  An `<sp-action-button>` represents an action a user can take.
4
4
 
@@ -24,9 +24,11 @@ When looking to leverage the `ActionButton` base class as a type and/or for exte
24
24
  import { ActionButton } from '@spectrum-web-components/action-button';
25
25
  ```
26
26
 
27
- ## Sizes
27
+ ### Options
28
28
 
29
- <sp-tabs selected="m" auto label="Size Attribute Options">
29
+ #### Sizes
30
+
31
+ <sp-tabs selected="m" auto label="Size attribute options">
30
32
  <sp-tab value="xs">Extra Small</sp-tab>
31
33
  <sp-tab-panel value="xs">
32
34
 
@@ -129,11 +131,13 @@ import { ActionButton } from '@spectrum-web-components/action-button';
129
131
  </sp-tab-panel>
130
132
  </sp-tabs>
131
133
 
132
- ## Variants
134
+ #### Variants
133
135
 
134
136
  The `<sp-action-button>` can be customized with either or both of the `emphasized` and `quiet` attributes. These will pair with either or both of the state attributes (`selected` and `disabled`) to decide the final visual delivery of the `<sp-action-button>`. Content addressed to the `icon` slot can also be provided and will be positioned just before the rest of the the supplied button content.
135
137
 
136
- ### Standard
138
+ <sp-tabs selected="default" auto label="Variant options">
139
+ <sp-tab value="default">Default</sp-tab>
140
+ <sp-tab-panel value="default">
137
141
 
138
142
  ```html demo
139
143
  <div
@@ -211,7 +215,9 @@ The `<sp-action-button>` can be customized with either or both of the `emphasize
211
215
  </div>
212
216
  ```
213
217
 
214
- ### Quiet
218
+ </sp-tab-panel>
219
+ <sp-tab value="quiet">Quiet</sp-tab>
220
+ <sp-tab-panel value="quiet">
215
221
 
216
222
  ```html demo
217
223
  <div
@@ -289,7 +295,9 @@ The `<sp-action-button>` can be customized with either or both of the `emphasize
289
295
  </div>
290
296
  ```
291
297
 
292
- ### Emphasized
298
+ </sp-tab-panel>
299
+ <sp-tab value="emphasized">Emphasized</sp-tab>
300
+ <sp-tab-panel value="emphasized">
293
301
 
294
302
  ```html demo
295
303
  <div
@@ -369,7 +377,9 @@ The `<sp-action-button>` can be customized with either or both of the `emphasize
369
377
  </div>
370
378
  ```
371
379
 
372
- ### Emphasized + Quiet
380
+ </sp-tab-panel>
381
+ <sp-tab value="emq">Emphasized + quiet</sp-tab>
382
+ <sp-tab-panel value="emq">
373
383
 
374
384
  ```html demo
375
385
  <div
@@ -455,7 +465,12 @@ The `<sp-action-button>` can be customized with either or both of the `emphasize
455
465
  </div>
456
466
  ```
457
467
 
458
- ## Action button with hold affordance
468
+ </sp-tab-panel>
469
+ </sp-tabs>
470
+
471
+ ### Behaviors
472
+
473
+ #### Action button with hold affordance
459
474
 
460
475
  The use of the `hold-affordance` attribute signifies that the `<sp-action-button>` in question will be delivered with a visual affordance outlining that special interaction with the button will dispatch a `longpress` event. Via a pointer input, this even will be dispatched when 300ms has passed after a `pointerdown` event without the presence of a `pointerup` or `pointercancel` event. Via the keyboard, an event with a code of `Space` or or `ArrowDown` while `altKey === true` will dispatch the event.
461
476
 
@@ -499,49 +514,70 @@ The use of the `hold-affordance` attribute signifies that the `<sp-action-button
499
514
  </div>
500
515
  ```
501
516
 
502
- ## Toggles
517
+ #### Toggles
503
518
 
504
519
  With the application of the `toggles` attribute, the button will self manage its `selected` property on `click`. When this value is updated, a cancellable `change` event will be dispatched to inform the parent application.
505
520
 
521
+ <sp-tabs selected="default" auto label="Toggled action buttons">
522
+ <sp-tab value="default">Default</sp-tab>
523
+ <sp-tab-panel value="default">
524
+
506
525
  ```html demo
507
- <div
508
- style="display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 2em;"
526
+ <sp-action-button toggles id="toggles-default">Toggle button</sp-action-button>
527
+ <sp-action-button toggles selected id="toggles-default">
528
+ Toggle button
529
+ </sp-action-button>
530
+ ```
531
+
532
+ </sp-tab-panel>
533
+ <sp-tab value="quiet">Quiet</sp-tab>
534
+ <sp-tab-panel value="quiet">
535
+
536
+ ```html demo
537
+ <sp-action-button toggles quiet id="toggles-quiet">
538
+ Toggle button
539
+ </sp-action-button>
540
+ <sp-action-button toggles quiet selected id="toggles-quiet">
541
+ Toggle button
542
+ </sp-action-button>
543
+ ```
544
+
545
+ </sp-tab-panel>
546
+ <sp-tab value="emphasized">Emphasized</sp-tab>
547
+ <sp-tab-panel value="emphasized">
548
+
549
+ ```html demo
550
+ <sp-action-button toggles emphasized id="toggles-emphasized">
551
+ Toggle button
552
+ </sp-action-button>
553
+ <sp-action-button toggles emphasized selected id="toggles-emphasized">
554
+ Toggle button
555
+ </sp-action-button>
556
+ ```
557
+
558
+ </sp-tab-panel>
559
+ <sp-tab value="emphasized-quiet">Emphasized + Quiet</sp-tab>
560
+ <sp-tab-panel value="emphasized-quiet">
561
+
562
+ ```html demo
563
+ <sp-action-button toggles emphasized quiet id="toggles-emphasized-quiet">
564
+ Toggle button
565
+ </sp-action-button>
566
+ <sp-action-button
567
+ toggles
568
+ emphasized
569
+ quiet
570
+ selected
571
+ id="toggles-emphasized-quiet"
509
572
  >
510
- <div>
511
- <sp-field-label for="toggles-default">Standard</sp-field-label>
512
- <sp-action-button toggles id="toggles-default">
513
- Toggle button
514
- </sp-action-button>
515
- </div>
516
- <div>
517
- <sp-field-label for="toggles-quiet">Quiet</sp-field-label>
518
- <sp-action-button toggles quiet id="toggles-quiet">
519
- Toggle button
520
- </sp-action-button>
521
- </div>
522
- <div>
523
- <sp-field-label for="toggles-emphasized">Emphasized</sp-field-label>
524
- <sp-action-button toggles emphasized id="toggles-emphasized">
525
- Toggle button
526
- </sp-action-button>
527
- </div>
528
- <div>
529
- <sp-field-label for="toggles-emphasized-quiet">
530
- Emphasized + Quiet
531
- </sp-field-label>
532
- <sp-action-button
533
- toggles
534
- emphasized
535
- quiet
536
- id="toggles-emphasized-quiet"
537
- >
538
- Toggle button
539
- </sp-action-button>
540
- </div>
541
- </div>
573
+ Toggle button
574
+ </sp-action-button>
542
575
  ```
543
576
 
544
- ## Handling events
577
+ </sp-tab-panel>
578
+ </sp-tabs>
579
+
580
+ #### Handling events
545
581
 
546
582
  Events handlers for clicks and other user actions can be registered on a
547
583
  `<sp-action-button>` as on a standard HTML `<button>` element.
@@ -562,3 +598,47 @@ In addition to handling events like a native `<button>` HTML element, one can al
562
598
  Click me
563
599
  </sp-action-button>
564
600
  ```
601
+
602
+ ### Accessibility
603
+
604
+ #### Include a label
605
+
606
+ A button is required to have either a visible text label or a `label` attribute on either the `<sp-button>` itself,
607
+ or on an `<sp-icon*>` element child.
608
+
609
+ #### Don't override color
610
+
611
+ Do not use custom colors for buttons. The colors of different button variations have been designed to be consistent and accessible.
612
+
613
+ #### Use static black or static white to contrast with backgrounds and images
614
+
615
+ To ensure maximum contrast with the background, use static black for light backgrounds and images, and static white for dark backgrounds and images. Avoid placing static components on top of busy images with a lot of variance in contrast.
616
+
617
+ <sp-tabs selected="black" auto label="Static variants for contrast">
618
+ <sp-tab value="black">Static black on light background</sp-tab>
619
+ <sp-tab-panel value="black">
620
+
621
+ ```html demo
622
+ <div style="background-color: #ccffee; padding: 20px">
623
+ <sp-action-button static="black">Click me</sp-action-button>
624
+ <sp-action-button static="black" selected>Click me</sp-action-button>
625
+ </div>
626
+ ```
627
+
628
+ </sp-tab-panel>
629
+ <sp-tab value="white">Static white on dark background</sp-tab>
630
+ <sp-tab-panel value="white">
631
+
632
+ ```html demo
633
+ <div style="background-color: #220033; padding: 20px">
634
+ <sp-action-button static="white">Click me</sp-action-button>
635
+ <sp-action-button static="white" selected>Click me</sp-action-button>
636
+ </div>
637
+ ```
638
+
639
+ </sp-tab-panel>
640
+ </sp-tabs>
641
+
642
+ #### Clearly state the action
643
+
644
+ Make sure that an action button’s label clearly states the outcome of the action. Use the same word or phrase as found elsewhere in the experience.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/action-button",
3
- "version": "1.3.0-beta.6",
3
+ "version": "1.3.0",
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.3.0-beta.6",
62
- "@spectrum-web-components/button": "^1.3.0-beta.6",
63
- "@spectrum-web-components/icon": "^1.3.0-beta.6",
64
- "@spectrum-web-components/icons-ui": "^1.3.0-beta.6",
65
- "@spectrum-web-components/shared": "^1.3.0-beta.6"
61
+ "@spectrum-web-components/base": "1.3.0",
62
+ "@spectrum-web-components/button": "1.3.0",
63
+ "@spectrum-web-components/icon": "1.3.0",
64
+ "@spectrum-web-components/icons-ui": "1.3.0",
65
+ "@spectrum-web-components/shared": "1.3.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@spectrum-css/actionbutton": "7.1.1"
@@ -72,6 +72,5 @@
72
72
  "sideEffects": [
73
73
  "./sp-*.js",
74
74
  "./**/*.dev.js"
75
- ],
76
- "gitHead": "7a244ef2b2cad9f06962483af6fdff89828d9a83"
75
+ ]
77
76
  }
package/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "[]"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright [yyyy] [name of copyright owner]
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
@@ -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
- }