@spectrum-web-components/radio 0.0.0-20241209155954

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 (43) hide show
  1. package/README.md +246 -0
  2. package/package.json +84 -0
  3. package/sp-radio-group.d.ts +6 -0
  4. package/sp-radio-group.dev.js +5 -0
  5. package/sp-radio-group.dev.js.map +7 -0
  6. package/sp-radio-group.js +2 -0
  7. package/sp-radio-group.js.map +7 -0
  8. package/sp-radio.d.ts +6 -0
  9. package/sp-radio.dev.js +5 -0
  10. package/sp-radio.dev.js.map +7 -0
  11. package/sp-radio.js +2 -0
  12. package/sp-radio.js.map +7 -0
  13. package/src/Radio.d.ts +38 -0
  14. package/src/Radio.dev.js +133 -0
  15. package/src/Radio.dev.js.map +7 -0
  16. package/src/Radio.js +6 -0
  17. package/src/Radio.js.map +7 -0
  18. package/src/RadioGroup.d.ts +27 -0
  19. package/src/RadioGroup.dev.js +118 -0
  20. package/src/RadioGroup.dev.js.map +7 -0
  21. package/src/RadioGroup.js +2 -0
  22. package/src/RadioGroup.js.map +7 -0
  23. package/src/index.d.ts +2 -0
  24. package/src/index.dev.js +4 -0
  25. package/src/index.dev.js.map +7 -0
  26. package/src/index.js +2 -0
  27. package/src/index.js.map +7 -0
  28. package/src/radio-overrides.css.d.ts +2 -0
  29. package/src/radio-overrides.css.dev.js +7 -0
  30. package/src/radio-overrides.css.dev.js.map +7 -0
  31. package/src/radio-overrides.css.js +4 -0
  32. package/src/radio-overrides.css.js.map +7 -0
  33. package/src/radio.css.d.ts +2 -0
  34. package/src/radio.css.dev.js +7 -0
  35. package/src/radio.css.dev.js.map +7 -0
  36. package/src/radio.css.js +4 -0
  37. package/src/radio.css.js.map +7 -0
  38. package/src/spectrum-config.js +143 -0
  39. package/src/spectrum-radio.css.d.ts +2 -0
  40. package/src/spectrum-radio.css.dev.js +7 -0
  41. package/src/spectrum-radio.css.dev.js.map +7 -0
  42. package/src/spectrum-radio.css.js +4 -0
  43. package/src/spectrum-radio.css.js.map +7 -0
package/README.md ADDED
@@ -0,0 +1,246 @@
1
+ ## Description
2
+
3
+ `<sp-radio>` and `<sp-radio-group>` allow users to select a single option from a list of mutually exclusive options. All possible options are exposed up front for users to compare.
4
+
5
+ `<sp-radio-group>` holds a list of `<sp-radio>` elements, and is responsible for deselecting radio buttons when a new one is selected, which in turn makes it responsible for keeping track of which one is selected. `<sp-radio>` is responsible for handling user interactions and for visually reflecting if it is the one that is checked or not.
6
+
7
+ ### Usage
8
+
9
+ [![See it on NPM!](https://img.shields.io/npm/v/@spectrum-web-components/radio?style=for-the-badge)](https://www.npmjs.com/package/@spectrum-web-components/radio)
10
+ [![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/@spectrum-web-components/radio?style=for-the-badge)](https://bundlephobia.com/result?p=@spectrum-web-components/radio)
11
+ [![Try it on webcomponents.dev](https://img.shields.io/badge/Try%20it%20on-webcomponents.dev-green?style=for-the-badge)](https://webcomponents.dev/edit/collection/fO75441E1Q5ZlI0e9pgq/vUinRWkhayMTAmr9AK9J/src/index.ts)
12
+
13
+ ```
14
+ yarn add @spectrum-web-components/radio
15
+ ```
16
+
17
+ Import the side effectful registration of `<sp-radio>` or `<sp-radio-group>` via:
18
+
19
+ ```
20
+ import '@spectrum-web-components/radio/sp-radio.js';
21
+ import '@spectrum-web-components/radio/sp-radio-group.js';
22
+ ```
23
+
24
+ When looking to leverage the `Radio` or `RadioGroup` base classes as a type and/or for extension purposes, do so via:
25
+
26
+ ```
27
+ import {
28
+ Radio,
29
+ RadioGroup
30
+ } from '@spectrum-web-components/radio';
31
+ ```
32
+
33
+ ## Sizes
34
+
35
+ <sp-tabs selected="m" auto label="Size Attribute Options">
36
+ <sp-tab value="s">Small</sp-tab>
37
+ <sp-tab-panel value="s">
38
+
39
+ ```html
40
+ <sp-radio-group label="Small" selected="first" name="example">
41
+ <sp-radio value="first" size="s">Option 1</sp-radio>
42
+ <sp-radio value="second" size="s">Option 2</sp-radio>
43
+ <sp-radio value="third" size="s">Option 3</sp-radio>
44
+ <sp-radio value="fourth" size="s">Option 4</sp-radio>
45
+ </sp-radio-group>
46
+ ```
47
+
48
+ </sp-tab-panel>
49
+ <sp-tab value="m">Medium</sp-tab>
50
+ <sp-tab-panel value="m">
51
+
52
+ ```html
53
+ <sp-radio-group label="Medium" selected="first" name="example">
54
+ <sp-radio value="first" size="m">Option 1</sp-radio>
55
+ <sp-radio value="second" size="m">Option 2</sp-radio>
56
+ <sp-radio value="third" size="m">Option 3</sp-radio>
57
+ <sp-radio value="fourth" size="m">Option 4</sp-radio>
58
+ </sp-radio-group>
59
+ ```
60
+
61
+ </sp-tab-panel>
62
+ <sp-tab value="l">Large</sp-tab>
63
+ <sp-tab-panel value="l">
64
+
65
+ ```html
66
+ <sp-radio-group label="Large" selected="first" name="example">
67
+ <sp-radio value="first" size="l">Option 1</sp-radio>
68
+ <sp-radio value="second" size="l">Option 2</sp-radio>
69
+ <sp-radio value="third" size="l">Option 3</sp-radio>
70
+ <sp-radio value="fourth" size="l">Option 4</sp-radio>
71
+ </sp-radio-group>
72
+ ```
73
+
74
+ </sp-tab-panel>
75
+ <sp-tab value="xl">Extra Large</sp-tab>
76
+ <sp-tab-panel value="xl">
77
+
78
+ ```html
79
+ <sp-radio-group label="Extra large" selected="first" name="example">
80
+ <sp-radio value="first" size="xl">Option 1</sp-radio>
81
+ <sp-radio value="second" size="xl">Option 2</sp-radio>
82
+ <sp-radio value="third" size="xl">Option 3</sp-radio>
83
+ <sp-radio value="fourth" size="xl">Option 4</sp-radio>
84
+ </sp-radio-group>
85
+ ```
86
+
87
+ </sp-tab-panel>
88
+ </sp-tabs>
89
+
90
+ ### Standard radio buttons
91
+
92
+ Standard radio buttons are the default style for radio buttons. They are optimal for application panels where all visual elements are monochrome in order to direct focus to the content.
93
+
94
+ Invalid selections in radio groups are identified using the `negative-help-text` slot. Read more about using [help text](#help-text) below.
95
+
96
+ ```html-live
97
+ <div style="display: flex; justify-content: space-between;">
98
+ <div style="display: flex; flex-direction: column;">
99
+ <sp-field-label for="example-1" size="l">
100
+ <h4 class="spectrum-Heading--subtitle1">Default</h4>
101
+ </sp-field-label>
102
+ <sp-radio-group id="example-1" name="example" vertical>
103
+ <sp-radio value="kittens">Kittens</sp-radio>
104
+ <sp-radio value="puppies" checked>Puppies</sp-radio>
105
+ </sp-radio-group>
106
+ </div>
107
+
108
+ <div style="display: flex; flex-direction: column;">
109
+ <sp-field-label for="example-2" size="l">
110
+ <h4 class="spectrum-Heading--subtitle1">Invalid</h4>
111
+ </sp-field-label>
112
+ <sp-radio-group invalid id="example-2" name="example" vertical>
113
+ <sp-radio invalid value="kittens">Kittens</sp-radio>
114
+ <sp-radio invalid value="puppies" checked>Puppies</sp-radio>
115
+ <sp-help-text slot="negative-help-text" icon>
116
+ This selection is invalid.
117
+ </sp-help-text>
118
+ </sp-radio-group>
119
+ </div>
120
+
121
+ <div style="display: flex; flex-direction: column;">
122
+ <sp-field-label for="example-3" size="l">
123
+ <h4 class="spectrum-Heading--subtitle1">Disabled</h4>
124
+ </sp-fieldlabel>
125
+ <sp-radio-group id="example-3" name="example" vertical>
126
+ <sp-radio disabled value="kittens">Kittens</sp-radio>
127
+ <sp-radio disabled value="puppies" checked>Puppies</sp-radio>
128
+ </sp-radio-group>
129
+ </div>
130
+ </div>
131
+ ```
132
+
133
+ ### Emphasized radio buttons
134
+
135
+ Emphasized radio buttons are a secondary style for radio buttons. The blue color provides a visual prominence that is optimal for forms, settings, etc. where the radio buttons need to be noticed.
136
+
137
+ Invalid selections in radio groups are identified using the `negative-help-text` slot. Read more about using [help text](#help-text) below.
138
+
139
+ ```html-live
140
+ <div style="display: flex; justify-content: space-between;">
141
+ <div style="display: flex; flex-direction: column;">
142
+ <sp-field-label for="example-a" size="l">
143
+ <h4 class="spectrum-Heading--subtitle1">Default</h4>
144
+ </sp-field-label>
145
+ <sp-radio-group id="example-a" name="example" vertical>
146
+ <sp-radio emphasized value="kittens">Kittens</sp-radio>
147
+ <sp-radio emphasized value="puppies" checked>Puppies</sp-radio>
148
+ </sp-radio-group>
149
+ </div>
150
+
151
+ <div style="display: flex; flex-direction: column;">
152
+ <sp-field-label for="example-b" size="l">
153
+ <h4 class="spectrum-Heading--subtitle1">Invalid</h4>
154
+ </sp-field-label>
155
+ <sp-radio-group invalid id="example-b" name="example" vertical>
156
+ <sp-radio emphasized invalid value="kittens">Kittens</sp-radio>
157
+ <sp-radio emphasized invalid value="puppies" checked>Puppies</sp-radio>
158
+ <sp-help-text slot="negative-help-text" icon>
159
+ This selection is invalid.
160
+ </sp-help-text>
161
+ </sp-radio-group>
162
+ </div>
163
+
164
+ <div style="display: flex; flex-direction: column;">
165
+ <sp-field-label for="example-c" size="l">
166
+ <h4 class="spectrum-Heading--subtitle1">Disabled</h4>
167
+ </sp-fieldlabel>
168
+ <sp-radio-group id="example-c" name="example" vertical>
169
+ <sp-radio emphasized disabled value="kittens">Kittens</sp-radio>
170
+ <sp-radio emphasized disabled value="puppies" checked>Puppies</sp-radio>
171
+ </sp-radio-group>
172
+ </div>
173
+ </div>
174
+ ```
175
+
176
+ ### Handling events
177
+
178
+ Event handlers for clicks and other user actions can be registered on an `<sp-radio>` similar to a standard `<input type="radio">` element.
179
+
180
+ ```html
181
+ <sp-radio id="radio-example" onclick="spAlert(this, '<sp-radio> clicked!')">
182
+ Web component
183
+ </sp-radio>
184
+ ```
185
+
186
+ ## Help text
187
+
188
+ Help text can be accessibly associated with an `<sp-radio-group>` element by using the `help-text` or `negative-help-text` slots. When using the `negative-help-text` slot, `<sp-radio-group>` will self manage the presence of this content based on the value of the `invalid` property on your `<sp-radio-group>` element. Content within the `help-text` slot will be show by default. When your `<sp-radio-group>` should receive help text based on state outside of the complexity of `invalid` or not, manage the content addressed to the `help-text` from above to ensure that it displays the right messaging and possesses the right `variant`.
189
+
190
+ <sp-tabs selected="self" auto label="Help text usage in radio groups">
191
+ <sp-tab value="self">Self managed</sp-tab>
192
+ <sp-tab-panel value="self">
193
+
194
+ ```html
195
+ <sp-field-label for="self">
196
+ What is your favorite ice cream flavor?
197
+ </sp-field-label>
198
+ <sp-radio-group
199
+ id="self"
200
+ onchange="
201
+ this.invalid = this.selected === 'fourth';
202
+ "
203
+ >
204
+ <sp-radio value="first">Vanilla</sp-radio>
205
+ <sp-radio value="second">Chocolate</sp-radio>
206
+ <sp-radio value="third">Strawberry</sp-radio>
207
+ <sp-radio value="fourth">I don't like ice cream</sp-radio>
208
+ <sp-help-text slot="help-text">Everyone likes ice cream.</sp-help-text>
209
+ <sp-help-text slot="negative-help-text" icon>
210
+ You can't not like ice cream.
211
+ </sp-help-text>
212
+ </sp-radio-group>
213
+ ```
214
+
215
+ </sp-tab-panel>
216
+ <sp-tab value="above">Managed from above</sp-tab>
217
+ <sp-tab-panel value="above">
218
+
219
+ ```html
220
+ <sp-field-label for="managed">
221
+ What is your favorite ice cream flavor?
222
+ </sp-field-label>
223
+ <sp-radio-group
224
+ id="managed"
225
+ onchange="
226
+ const helpText = this.querySelector(`[slot='help-text']`);
227
+ const isInvalid = this.selected === 'fourth';
228
+ helpText.icon = isInvalid;
229
+ helpText.textContent = isInvalid ? 'You can\'t not like ice cream.' : 'Everyone likes ice cream.';
230
+ helpText.variant = isInvalid ? 'negative' : 'neutral';
231
+ "
232
+ >
233
+ <sp-radio value="first">Vanilla</sp-radio>
234
+ <sp-radio value="second">Chocolate</sp-radio>
235
+ <sp-radio value="third">Strawberry</sp-radio>
236
+ <sp-radio value="fourth">I don't like ice cream</sp-radio>
237
+ <sp-help-text slot="help-text">Everyone likes ice cream.</sp-help-text>
238
+ </sp-radio-group>
239
+ ```
240
+
241
+ </sp-tab-panel>
242
+ </sp-tabs>
243
+
244
+ ## Accessibility
245
+
246
+ Radio buttons are accessible by default, rendered in HTML using the `<input type="radio">` element. Tabbing into a group of radio buttons places the focus on the first radio button selected. If none of the radio buttons are selected, the focus is set on the first one in the group. Space selects the radio button in focus (if not already selected). Using the arrow keys moves focus and selection to the previous or next radio button in the group (last becomes first, and first becomes last). The new radio button in focus gets selected even if the previous one was not.
package/package.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "@spectrum-web-components/radio",
3
+ "version": "0.0.0-20241209155954",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "",
8
+ "license": "Apache-2.0",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/adobe/spectrum-web-components.git",
12
+ "directory": "packages/radio"
13
+ },
14
+ "author": "",
15
+ "homepage": "https://opensource.adobe.com/spectrum-web-components/components/radio",
16
+ "bugs": {
17
+ "url": "https://github.com/adobe/spectrum-web-components/issues"
18
+ },
19
+ "main": "./src/index.js",
20
+ "module": "./src/index.js",
21
+ "type": "module",
22
+ "exports": {
23
+ ".": {
24
+ "development": "./src/index.dev.js",
25
+ "default": "./src/index.js"
26
+ },
27
+ "./package.json": "./package.json",
28
+ "./src/Radio.js": {
29
+ "development": "./src/Radio.dev.js",
30
+ "default": "./src/Radio.js"
31
+ },
32
+ "./src/RadioGroup.js": {
33
+ "development": "./src/RadioGroup.dev.js",
34
+ "default": "./src/RadioGroup.js"
35
+ },
36
+ "./src/index.js": {
37
+ "development": "./src/index.dev.js",
38
+ "default": "./src/index.js"
39
+ },
40
+ "./src/radio-overrides.css.js": "./src/radio-overrides.css.js",
41
+ "./src/radio.css.js": "./src/radio.css.js",
42
+ "./sp-radio.js": {
43
+ "development": "./sp-radio.dev.js",
44
+ "default": "./sp-radio.js"
45
+ },
46
+ "./sp-radio-group.js": {
47
+ "development": "./sp-radio-group.dev.js",
48
+ "default": "./sp-radio-group.js"
49
+ }
50
+ },
51
+ "scripts": {
52
+ "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
53
+ },
54
+ "files": [
55
+ "**/*.d.ts",
56
+ "**/*.js",
57
+ "**/*.js.map",
58
+ "custom-elements.json",
59
+ "!stories/",
60
+ "!test/"
61
+ ],
62
+ "keywords": [
63
+ "spectrum css",
64
+ "web components",
65
+ "lit-element",
66
+ "lit-html"
67
+ ],
68
+ "dependencies": {
69
+ "@spectrum-web-components/base": "0.0.0-20241209155954",
70
+ "@spectrum-web-components/field-group": "0.0.0-20241209155954",
71
+ "@spectrum-web-components/help-text": "0.0.0-20241209155954",
72
+ "@spectrum-web-components/reactive-controllers": "0.0.0-20241209155954",
73
+ "@spectrum-web-components/shared": "0.0.0-20241209155954"
74
+ },
75
+ "devDependencies": {
76
+ "@spectrum-css/radio": "^10.0.0-s2-foundations.15"
77
+ },
78
+ "types": "./src/index.d.ts",
79
+ "customElements": "custom-elements.json",
80
+ "sideEffects": [
81
+ "./sp-*.js",
82
+ "./**/*.dev.js"
83
+ ]
84
+ }
@@ -0,0 +1,6 @@
1
+ import { RadioGroup } from './src/RadioGroup.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-radio-group': RadioGroup;
5
+ }
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import { RadioGroup } from "./src/RadioGroup.dev.js";
3
+ import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
4
+ defineElement("sp-radio-group", RadioGroup);
5
+ //# sourceMappingURL=sp-radio-group.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-radio-group.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 { RadioGroup } from './src/RadioGroup.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-radio-group', RadioGroup);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-radio-group': RadioGroup;\n }\n}\n"],
5
+ "mappings": ";AAWA,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAE9B,cAAc,kBAAkB,UAAU;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";import{RadioGroup as o}from"./src/RadioGroup.js";import{defineElement as r}from"@spectrum-web-components/base/src/define-element.js";r("sp-radio-group",o);
2
+ //# sourceMappingURL=sp-radio-group.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-radio-group.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 { RadioGroup } from './src/RadioGroup.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-radio-group', RadioGroup);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-radio-group': RadioGroup;\n }\n}\n"],
5
+ "mappings": "aAWA,OAAS,cAAAA,MAAkB,sBAC3B,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,iBAAkBD,CAAU",
6
+ "names": ["RadioGroup", "defineElement"]
7
+ }
package/sp-radio.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Radio } from './src/Radio.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-radio': Radio;
5
+ }
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import { Radio } from "./src/Radio.dev.js";
3
+ import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
4
+ defineElement("sp-radio", Radio);
5
+ //# sourceMappingURL=sp-radio.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-radio.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 { Radio } from './src/Radio.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-radio', Radio);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-radio': Radio;\n }\n}\n"],
5
+ "mappings": ";AAWA,SAAS,aAAa;AACtB,SAAS,qBAAqB;AAE9B,cAAc,YAAY,KAAK;",
6
+ "names": []
7
+ }
package/sp-radio.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";import{Radio as e}from"./src/Radio.js";import{defineElement as a}from"@spectrum-web-components/base/src/define-element.js";a("sp-radio",e);
2
+ //# sourceMappingURL=sp-radio.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-radio.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 { Radio } from './src/Radio.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-radio', Radio);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-radio': Radio;\n }\n}\n"],
5
+ "mappings": "aAWA,OAAS,SAAAA,MAAa,iBACtB,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,WAAYD,CAAK",
6
+ "names": ["Radio", "defineElement"]
7
+ }
package/src/Radio.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ import { CSSResultArray, PropertyValues, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';
2
+ declare const Radio_base: typeof SpectrumElement & {
3
+ new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
4
+ prototype: import("@spectrum-web-components/base").SizedElementInterface;
5
+ };
6
+ /**
7
+ * @element sp-radio
8
+ *
9
+ * @slot - text label of the Radio button
10
+ * @attr invalid - Uses the invalid style
11
+ * @attr disabled - Uses the disabled style
12
+ * @attr checked - Represents when the input is checked
13
+ * @attr value - Identifies this radio button within its radio group
14
+ *
15
+ * @fires change - When the input is interacted with and its state is changed
16
+ */
17
+ export declare class Radio extends Radio_base {
18
+ static get styles(): CSSResultArray;
19
+ /**
20
+ * When this control is rendered, focus it automatically
21
+ * @private
22
+ */
23
+ autofocus: boolean;
24
+ value: string;
25
+ checked: boolean;
26
+ disabled: boolean;
27
+ emphasized: boolean;
28
+ invalid: boolean;
29
+ readonly: boolean;
30
+ click(): void;
31
+ protected manageAutoFocus(): void;
32
+ protected activate(): void;
33
+ protected handleKeyup(event: KeyboardEvent): void;
34
+ protected render(): TemplateResult;
35
+ protected firstUpdated(changes: PropertyValues): void;
36
+ protected updated(changes: PropertyValues): void;
37
+ }
38
+ export {};
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __decorateClass = (decorators, target, key, kind) => {
5
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
+ if (decorator = decorators[i])
8
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
+ if (kind && result) __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ html,
14
+ SizedMixin,
15
+ SpectrumElement
16
+ } from "@spectrum-web-components/base";
17
+ import { property } from "@spectrum-web-components/base/src/decorators.js";
18
+ import { FocusVisiblePolyfillMixin } from "@spectrum-web-components/shared/src/focus-visible.js";
19
+ import radioStyles from "./radio.css.js";
20
+ export class Radio extends SizedMixin(
21
+ FocusVisiblePolyfillMixin(SpectrumElement),
22
+ { noDefaultSize: true }
23
+ ) {
24
+ constructor() {
25
+ super(...arguments);
26
+ this.autofocus = false;
27
+ this.value = "";
28
+ this.checked = false;
29
+ this.disabled = false;
30
+ this.emphasized = false;
31
+ this.invalid = false;
32
+ this.readonly = false;
33
+ }
34
+ static get styles() {
35
+ return [radioStyles];
36
+ }
37
+ click() {
38
+ if (this.disabled) {
39
+ return;
40
+ }
41
+ this.activate();
42
+ }
43
+ manageAutoFocus() {
44
+ if (this.autofocus) {
45
+ this.dispatchEvent(
46
+ new KeyboardEvent("keydown", {
47
+ code: "Tab"
48
+ })
49
+ );
50
+ this.focus();
51
+ }
52
+ }
53
+ activate() {
54
+ if (this.checked) {
55
+ return;
56
+ }
57
+ this.checked = true;
58
+ this.dispatchEvent(
59
+ new Event("change", {
60
+ bubbles: true,
61
+ composed: true
62
+ })
63
+ );
64
+ }
65
+ handleKeyup(event) {
66
+ if (event.code === "Space") {
67
+ this.activate();
68
+ }
69
+ }
70
+ render() {
71
+ return html`
72
+ <div id="input"></div>
73
+ <span id="button"></span>
74
+ <span id="label" role="presentation"><slot></slot></span>
75
+ `;
76
+ }
77
+ firstUpdated(changes) {
78
+ super.firstUpdated(changes);
79
+ this.setAttribute("role", "radio");
80
+ if (!this.hasAttribute("tabindex")) {
81
+ this.tabIndex = 0;
82
+ }
83
+ this.manageAutoFocus();
84
+ this.addEventListener("click", this.activate);
85
+ this.addEventListener("keyup", this.handleKeyup);
86
+ }
87
+ updated(changes) {
88
+ super.updated(changes);
89
+ if (changes.has("invalid")) {
90
+ if (this.invalid) {
91
+ this.setAttribute("aria-invalid", "true");
92
+ } else {
93
+ this.removeAttribute("aria-invalid");
94
+ }
95
+ }
96
+ if (changes.has("checked")) {
97
+ if (this.checked) {
98
+ this.setAttribute("aria-checked", "true");
99
+ } else {
100
+ this.setAttribute("aria-checked", "false");
101
+ }
102
+ }
103
+ if (changes.has("disabled")) {
104
+ if (this.disabled) {
105
+ this.setAttribute("aria-disabled", "true");
106
+ } else {
107
+ this.removeAttribute("aria-disabled");
108
+ }
109
+ }
110
+ }
111
+ }
112
+ __decorateClass([
113
+ property({ type: Boolean })
114
+ ], Radio.prototype, "autofocus", 2);
115
+ __decorateClass([
116
+ property({ type: String, reflect: true })
117
+ ], Radio.prototype, "value", 2);
118
+ __decorateClass([
119
+ property({ type: Boolean, reflect: true })
120
+ ], Radio.prototype, "checked", 2);
121
+ __decorateClass([
122
+ property({ type: Boolean, reflect: true })
123
+ ], Radio.prototype, "disabled", 2);
124
+ __decorateClass([
125
+ property({ type: Boolean, reflect: true })
126
+ ], Radio.prototype, "emphasized", 2);
127
+ __decorateClass([
128
+ property({ type: Boolean, reflect: true })
129
+ ], Radio.prototype, "invalid", 2);
130
+ __decorateClass([
131
+ property({ type: Boolean, reflect: true })
132
+ ], Radio.prototype, "readonly", 2);
133
+ //# sourceMappingURL=Radio.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Radio.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*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { FocusVisiblePolyfillMixin } from '@spectrum-web-components/shared/src/focus-visible.js';\n\nimport radioStyles from './radio.css.js';\n\n/**\n * @element sp-radio\n *\n * @slot - text label of the Radio button\n * @attr invalid - Uses the invalid style\n * @attr disabled - Uses the disabled style\n * @attr checked - Represents when the input is checked\n * @attr value - Identifies this radio button within its radio group\n *\n * @fires change - When the input is interacted with and its state is changed\n */\nexport class Radio extends SizedMixin(\n FocusVisiblePolyfillMixin(SpectrumElement),\n { noDefaultSize: true }\n) {\n public static override get styles(): CSSResultArray {\n return [radioStyles];\n }\n\n /**\n * When this control is rendered, focus it automatically\n * @private\n */\n @property({ type: Boolean })\n public override autofocus = false;\n\n @property({ type: String, reflect: true })\n public value = '';\n\n @property({ type: Boolean, reflect: true })\n public checked = false;\n\n @property({ type: Boolean, reflect: true })\n public disabled = false;\n\n @property({ type: Boolean, reflect: true })\n public emphasized = false;\n\n @property({ type: Boolean, reflect: true })\n public invalid = false;\n\n @property({ type: Boolean, reflect: true })\n public readonly = false;\n\n public override click(): void {\n if (this.disabled) {\n return;\n }\n this.activate();\n }\n\n protected manageAutoFocus(): void {\n if (this.autofocus) {\n /**\n * Trick :focus-visible polyfill into thinking keyboard based focus\n *\n * @private\n **/\n this.dispatchEvent(\n new KeyboardEvent('keydown', {\n code: 'Tab',\n })\n );\n this.focus();\n }\n }\n\n protected activate(): void {\n if (this.checked) {\n return;\n }\n this.checked = true;\n this.dispatchEvent(\n new Event('change', {\n bubbles: true,\n composed: true,\n })\n );\n }\n\n protected handleKeyup(event: KeyboardEvent): void {\n if (event.code === 'Space') {\n this.activate();\n }\n }\n\n protected override render(): TemplateResult {\n return html`\n <div id=\"input\"></div>\n <span id=\"button\"></span>\n <span id=\"label\" role=\"presentation\"><slot></slot></span>\n `;\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n this.setAttribute('role', 'radio');\n if (!this.hasAttribute('tabindex')) {\n this.tabIndex = 0;\n }\n this.manageAutoFocus();\n this.addEventListener('click', this.activate);\n this.addEventListener('keyup', this.handleKeyup);\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (changes.has('invalid')) {\n if (this.invalid) {\n this.setAttribute('aria-invalid', 'true');\n } else {\n this.removeAttribute('aria-invalid');\n }\n }\n if (changes.has('checked')) {\n if (this.checked) {\n this.setAttribute('aria-checked', 'true');\n } else {\n this.setAttribute('aria-checked', 'false');\n }\n }\n if (changes.has('disabled')) {\n if (this.disabled) {\n this.setAttribute('aria-disabled', 'true');\n } else {\n this.removeAttribute('aria-disabled');\n }\n }\n }\n}\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
package/src/Radio.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var t=(l,s,e,a)=>{for(var i=a>1?void 0:a?c(s,e):s,d=l.length-1,o;d>=0;d--)(o=l[d])&&(i=(a?o(s,e,i):o(i))||i);return a&&i&&u(s,e,i),i};import{html as p,SizedMixin as n,SpectrumElement as h}from"@spectrum-web-components/base";import{property as r}from"@spectrum-web-components/base/src/decorators.js";import{FocusVisiblePolyfillMixin as f}from"@spectrum-web-components/shared/src/focus-visible.js";import b from"./radio.css.js";export class Radio extends n(f(h),{noDefaultSize:!0}){constructor(){super(...arguments);this.autofocus=!1;this.value="";this.checked=!1;this.disabled=!1;this.emphasized=!1;this.invalid=!1;this.readonly=!1}static get styles(){return[b]}click(){this.disabled||this.activate()}manageAutoFocus(){this.autofocus&&(this.dispatchEvent(new KeyboardEvent("keydown",{code:"Tab"})),this.focus())}activate(){this.checked||(this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}handleKeyup(e){e.code==="Space"&&this.activate()}render(){return p`
2
+ <div id="input"></div>
3
+ <span id="button"></span>
4
+ <span id="label" role="presentation"><slot></slot></span>
5
+ `}firstUpdated(e){super.firstUpdated(e),this.setAttribute("role","radio"),this.hasAttribute("tabindex")||(this.tabIndex=0),this.manageAutoFocus(),this.addEventListener("click",this.activate),this.addEventListener("keyup",this.handleKeyup)}updated(e){super.updated(e),e.has("invalid")&&(this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")),e.has("checked")&&(this.checked?this.setAttribute("aria-checked","true"):this.setAttribute("aria-checked","false")),e.has("disabled")&&(this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled"))}}t([r({type:Boolean})],Radio.prototype,"autofocus",2),t([r({type:String,reflect:!0})],Radio.prototype,"value",2),t([r({type:Boolean,reflect:!0})],Radio.prototype,"checked",2),t([r({type:Boolean,reflect:!0})],Radio.prototype,"disabled",2),t([r({type:Boolean,reflect:!0})],Radio.prototype,"emphasized",2),t([r({type:Boolean,reflect:!0})],Radio.prototype,"invalid",2),t([r({type:Boolean,reflect:!0})],Radio.prototype,"readonly",2);
6
+ //# sourceMappingURL=Radio.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["Radio.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*/\n\nimport {\n CSSResultArray,\n html,\n PropertyValues,\n SizedMixin,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\nimport { FocusVisiblePolyfillMixin } from '@spectrum-web-components/shared/src/focus-visible.js';\n\nimport radioStyles from './radio.css.js';\n\n/**\n * @element sp-radio\n *\n * @slot - text label of the Radio button\n * @attr invalid - Uses the invalid style\n * @attr disabled - Uses the disabled style\n * @attr checked - Represents when the input is checked\n * @attr value - Identifies this radio button within its radio group\n *\n * @fires change - When the input is interacted with and its state is changed\n */\nexport class Radio extends SizedMixin(\n FocusVisiblePolyfillMixin(SpectrumElement),\n { noDefaultSize: true }\n) {\n public static override get styles(): CSSResultArray {\n return [radioStyles];\n }\n\n /**\n * When this control is rendered, focus it automatically\n * @private\n */\n @property({ type: Boolean })\n public override autofocus = false;\n\n @property({ type: String, reflect: true })\n public value = '';\n\n @property({ type: Boolean, reflect: true })\n public checked = false;\n\n @property({ type: Boolean, reflect: true })\n public disabled = false;\n\n @property({ type: Boolean, reflect: true })\n public emphasized = false;\n\n @property({ type: Boolean, reflect: true })\n public invalid = false;\n\n @property({ type: Boolean, reflect: true })\n public readonly = false;\n\n public override click(): void {\n if (this.disabled) {\n return;\n }\n this.activate();\n }\n\n protected manageAutoFocus(): void {\n if (this.autofocus) {\n /**\n * Trick :focus-visible polyfill into thinking keyboard based focus\n *\n * @private\n **/\n this.dispatchEvent(\n new KeyboardEvent('keydown', {\n code: 'Tab',\n })\n );\n this.focus();\n }\n }\n\n protected activate(): void {\n if (this.checked) {\n return;\n }\n this.checked = true;\n this.dispatchEvent(\n new Event('change', {\n bubbles: true,\n composed: true,\n })\n );\n }\n\n protected handleKeyup(event: KeyboardEvent): void {\n if (event.code === 'Space') {\n this.activate();\n }\n }\n\n protected override render(): TemplateResult {\n return html`\n <div id=\"input\"></div>\n <span id=\"button\"></span>\n <span id=\"label\" role=\"presentation\"><slot></slot></span>\n `;\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n this.setAttribute('role', 'radio');\n if (!this.hasAttribute('tabindex')) {\n this.tabIndex = 0;\n }\n this.manageAutoFocus();\n this.addEventListener('click', this.activate);\n this.addEventListener('keyup', this.handleKeyup);\n }\n\n protected override updated(changes: PropertyValues): void {\n super.updated(changes);\n if (changes.has('invalid')) {\n if (this.invalid) {\n this.setAttribute('aria-invalid', 'true');\n } else {\n this.removeAttribute('aria-invalid');\n }\n }\n if (changes.has('checked')) {\n if (this.checked) {\n this.setAttribute('aria-checked', 'true');\n } else {\n this.setAttribute('aria-checked', 'false');\n }\n }\n if (changes.has('disabled')) {\n if (this.disabled) {\n this.setAttribute('aria-disabled', 'true');\n } else {\n this.removeAttribute('aria-disabled');\n }\n }\n }\n}\n"],
5
+ "mappings": "qNAYA,OAEI,QAAAA,EAEA,cAAAC,EACA,mBAAAC,MAEG,gCACP,OAAS,YAAAC,MAAgB,kDACzB,OAAS,6BAAAC,MAAiC,uDAE1C,OAAOC,MAAiB,iBAajB,aAAM,cAAcJ,EACvBG,EAA0BF,CAAe,EACzC,CAAE,cAAe,EAAK,CAC1B,CAAE,CAHK,kCAaH,KAAgB,UAAY,GAG5B,KAAO,MAAQ,GAGf,KAAO,QAAU,GAGjB,KAAO,SAAW,GAGlB,KAAO,WAAa,GAGpB,KAAO,QAAU,GAGjB,KAAO,SAAW,GA3BlB,WAA2B,QAAyB,CAChD,MAAO,CAACG,CAAW,CACvB,CA2BgB,OAAc,CACtB,KAAK,UAGT,KAAK,SAAS,CAClB,CAEU,iBAAwB,CAC1B,KAAK,YAML,KAAK,cACD,IAAI,cAAc,UAAW,CACzB,KAAM,KACV,CAAC,CACL,EACA,KAAK,MAAM,EAEnB,CAEU,UAAiB,CACnB,KAAK,UAGT,KAAK,QAAU,GACf,KAAK,cACD,IAAI,MAAM,SAAU,CAChB,QAAS,GACT,SAAU,EACd,CAAC,CACL,EACJ,CAEU,YAAYC,EAA4B,CAC1CA,EAAM,OAAS,SACf,KAAK,SAAS,CAEtB,CAEmB,QAAyB,CACxC,OAAON;AAAA;AAAA;AAAA;AAAA,SAKX,CAEmB,aAAaO,EAA+B,CAC3D,MAAM,aAAaA,CAAO,EAC1B,KAAK,aAAa,OAAQ,OAAO,EAC5B,KAAK,aAAa,UAAU,IAC7B,KAAK,SAAW,GAEpB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,QAAS,KAAK,QAAQ,EAC5C,KAAK,iBAAiB,QAAS,KAAK,WAAW,CACnD,CAEmB,QAAQA,EAA+B,CACtD,MAAM,QAAQA,CAAO,EACjBA,EAAQ,IAAI,SAAS,IACjB,KAAK,QACL,KAAK,aAAa,eAAgB,MAAM,EAExC,KAAK,gBAAgB,cAAc,GAGvCA,EAAQ,IAAI,SAAS,IACjB,KAAK,QACL,KAAK,aAAa,eAAgB,MAAM,EAExC,KAAK,aAAa,eAAgB,OAAO,GAG7CA,EAAQ,IAAI,UAAU,IAClB,KAAK,SACL,KAAK,aAAa,gBAAiB,MAAM,EAEzC,KAAK,gBAAgB,eAAe,EAGhD,CACJ,CAzGoBC,EAAA,CADfL,EAAS,CAAE,KAAM,OAAQ,CAAC,GAZlB,MAaO,yBAGTK,EAAA,CADNL,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAfhC,MAgBF,qBAGAK,EAAA,CADNL,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GAlBjC,MAmBF,uBAGAK,EAAA,CADNL,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GArBjC,MAsBF,wBAGAK,EAAA,CADNL,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GAxBjC,MAyBF,0BAGAK,EAAA,CADNL,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GA3BjC,MA4BF,uBAGAK,EAAA,CADNL,EAAS,CAAE,KAAM,QAAS,QAAS,EAAK,CAAC,GA9BjC,MA+BF",
6
+ "names": ["html", "SizedMixin", "SpectrumElement", "property", "FocusVisiblePolyfillMixin", "radioStyles", "event", "changes", "__decorateClass"]
7
+ }