@react-spectrum/radio 3.7.4 → 3.7.5

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 (38) hide show
  1. package/dist/Radio.main.js +83 -0
  2. package/dist/Radio.main.js.map +1 -0
  3. package/dist/Radio.mjs +78 -0
  4. package/dist/Radio.module.js +78 -0
  5. package/dist/Radio.module.js.map +1 -0
  6. package/dist/RadioGroup.main.js +72 -0
  7. package/dist/RadioGroup.main.js.map +1 -0
  8. package/dist/RadioGroup.mjs +67 -0
  9. package/dist/RadioGroup.module.js +67 -0
  10. package/dist/RadioGroup.module.js.map +1 -0
  11. package/dist/context.main.js +31 -0
  12. package/dist/context.main.js.map +1 -0
  13. package/dist/context.mjs +21 -0
  14. package/dist/context.module.js +21 -0
  15. package/dist/context.module.js.map +1 -0
  16. package/dist/fieldgroup_vars_css.main.js +32 -0
  17. package/dist/fieldgroup_vars_css.main.js.map +1 -0
  18. package/dist/fieldgroup_vars_css.mjs +34 -0
  19. package/dist/fieldgroup_vars_css.module.js +34 -0
  20. package/dist/fieldgroup_vars_css.module.js.map +1 -0
  21. package/dist/import.mjs +2 -214
  22. package/dist/main.js +4 -212
  23. package/dist/main.js.map +1 -1
  24. package/dist/module.js +2 -214
  25. package/dist/module.js.map +1 -1
  26. package/dist/radio_vars_css.main.js +47 -0
  27. package/dist/radio_vars_css.main.js.map +1 -0
  28. package/dist/radio_vars_css.mjs +49 -0
  29. package/dist/radio_vars_css.module.js +49 -0
  30. package/dist/radio_vars_css.module.js.map +1 -0
  31. package/dist/types.d.ts +3 -2
  32. package/dist/types.d.ts.map +1 -1
  33. package/dist/vars.083bf957.css +94 -0
  34. package/dist/vars.083bf957.css.map +1 -0
  35. package/dist/{main.css → vars.cb27d9e2.css} +19 -133
  36. package/dist/vars.cb27d9e2.css.map +1 -0
  37. package/package.json +11 -11
  38. package/dist/main.css.map +0 -1
@@ -0,0 +1,83 @@
1
+ require("./vars.cb27d9e2.css");
2
+ var $a8fbff4889c18df2$exports = require("./radio_vars_css.main.js");
3
+ var $f5a8721b9af05d97$exports = require("./context.main.js");
4
+ var $8lI9m$reactspectrumutils = require("@react-spectrum/utils");
5
+ var $8lI9m$reactariafocus = require("@react-aria/focus");
6
+ var $8lI9m$react = require("react");
7
+ var $8lI9m$reactariainteractions = require("@react-aria/interactions");
8
+ var $8lI9m$reactariaradio = require("@react-aria/radio");
9
+
10
+
11
+ function $parcel$interopDefault(a) {
12
+ return a && a.__esModule ? a.default : a;
13
+ }
14
+
15
+ function $parcel$export(e, n, v, s) {
16
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
17
+ }
18
+
19
+ $parcel$export(module.exports, "Radio", () => $e8d5518f9c1aca76$export$d7b12c4107be0d61);
20
+ /*
21
+ * Copyright 2020 Adobe. All rights reserved.
22
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
23
+ * you may not use this file except in compliance with the License. You may obtain a copy
24
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
25
+ *
26
+ * Unless required by applicable law or agreed to in writing, software distributed under
27
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
28
+ * OF ANY KIND, either express or implied. See the License for the specific language
29
+ * governing permissions and limitations under the License.
30
+ */
31
+
32
+
33
+
34
+
35
+
36
+
37
+ function $e8d5518f9c1aca76$var$Radio(props, ref) {
38
+ let { isDisabled: isDisabled, children: children, autoFocus: autoFocus, ...otherProps } = props;
39
+ let { styleProps: styleProps } = (0, $8lI9m$reactspectrumutils.useStyleProps)(otherProps);
40
+ let { hoverProps: hoverProps, isHovered: isHovered } = (0, $8lI9m$reactariainteractions.useHover)({
41
+ isDisabled: isDisabled
42
+ });
43
+ let inputRef = (0, $8lI9m$react.useRef)(null);
44
+ let domRef = (0, $8lI9m$reactspectrumutils.useFocusableRef)(ref, inputRef);
45
+ let radioGroupProps = (0, $f5a8721b9af05d97$exports.useRadioProvider)();
46
+ let { isEmphasized: isEmphasized, state: state } = radioGroupProps;
47
+ let { inputProps: inputProps } = (0, $8lI9m$reactariaradio.useRadio)({
48
+ ...props,
49
+ ...radioGroupProps,
50
+ isDisabled: isDisabled
51
+ }, state, inputRef);
52
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($8lI9m$react))).createElement("label", {
53
+ ...styleProps,
54
+ ...hoverProps,
55
+ ref: domRef,
56
+ className: (0, $8lI9m$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a8fbff4889c18df2$exports))), "spectrum-Radio", {
57
+ // Removing. Pending design feedback.
58
+ // 'spectrum-Radio--labelBelow': labelPosition === 'bottom',
59
+ "spectrum-Radio--quiet": !isEmphasized,
60
+ "is-disabled": isDisabled,
61
+ "is-invalid": state.isInvalid,
62
+ "is-hovered": isHovered
63
+ }, styleProps.className)
64
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($8lI9m$react))).createElement((0, $8lI9m$reactariafocus.FocusRing), {
65
+ focusRingClass: (0, $8lI9m$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a8fbff4889c18df2$exports))), "focus-ring"),
66
+ autoFocus: autoFocus
67
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($8lI9m$react))).createElement("input", {
68
+ ...inputProps,
69
+ ref: inputRef,
70
+ className: (0, $8lI9m$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a8fbff4889c18df2$exports))), "spectrum-Radio-input")
71
+ })), /*#__PURE__*/ (0, ($parcel$interopDefault($8lI9m$react))).createElement("span", {
72
+ className: (0, $8lI9m$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a8fbff4889c18df2$exports))), "spectrum-Radio-button")
73
+ }), children && /*#__PURE__*/ (0, ($parcel$interopDefault($8lI9m$react))).createElement("span", {
74
+ className: (0, $8lI9m$reactspectrumutils.classNames)((0, ($parcel$interopDefault($a8fbff4889c18df2$exports))), "spectrum-Radio-label")
75
+ }, children));
76
+ }
77
+ /**
78
+ * Radio buttons allow users to select a single option from a list of mutually exclusive options.
79
+ * All possible options are exposed up front for users to compare.
80
+ */ const $e8d5518f9c1aca76$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, $8lI9m$react.forwardRef)($e8d5518f9c1aca76$var$Radio);
81
+
82
+
83
+ //# sourceMappingURL=Radio.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAYD,SAAS,4BAAM,KAAyB,EAAE,GAAmC;IAC3E,IAAI,cACF,UAAU,YACV,QAAQ,aACR,SAAS,EACT,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,cAAC,UAAU,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,qCAAO,EAAE;oBAAC;IAAU;IAElD,IAAI,WAAW,CAAA,GAAA,mBAAK,EAAoB;IACxC,IAAI,SAAS,CAAA,GAAA,yCAAc,EAAE,KAAK;IAElC,IAAI,kBAAkB,CAAA,GAAA,0CAAe;IACrC,IAAI,gBACF,YAAY,SACZ,KAAK,EACN,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,8BAAO,EAAE;QAC1B,GAAG,KAAK;QACR,GAAG,eAAe;oBAClB;IACF,GAAG,OAAO;IAEV,qBACE,0DAAC;QACE,GAAG,UAAU;QACb,GAAG,UAAU;QACd,KAAK;QACL,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,kBACA;YACE,qCAAqC;YACrC,4DAA4D;YAC5D,yBAAyB,CAAC;YAC1B,eAAe;YACf,cAAc,MAAM,SAAS;YAC7B,cAAc;QAChB,GACA,WAAW,SAAS;qBAGxB,0DAAC,CAAA,GAAA,+BAAQ;QAAE,gBAAgB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;QAAe,WAAW;qBACtE,0DAAC;QACE,GAAG,UAAU;QACd,KAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;uBAElC,0DAAC;QAAK,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;QACnC,0BACC,0DAAC;QAAK,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;OACjC;AAKX;AAEA;;;CAGC,GACD,MAAM,0DAAS,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/radio/src/Radio.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {FocusableRef} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport React, {forwardRef, useRef} from 'react';\nimport {SpectrumRadioProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/radio/vars.css';\nimport {useHover} from '@react-aria/interactions';\nimport {useRadio} from '@react-aria/radio';\nimport {useRadioProvider} from './context';\n\nfunction Radio(props: SpectrumRadioProps, ref: FocusableRef<HTMLLabelElement>) {\n let {\n isDisabled,\n children,\n autoFocus,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useFocusableRef(ref, inputRef);\n\n let radioGroupProps = useRadioProvider();\n let {\n isEmphasized,\n state\n } = radioGroupProps;\n\n let {inputProps} = useRadio({\n ...props,\n ...radioGroupProps,\n isDisabled\n }, state, inputRef);\n\n return (\n <label\n {...styleProps}\n {...hoverProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Radio',\n {\n // Removing. Pending design feedback.\n // 'spectrum-Radio--labelBelow': labelPosition === 'bottom',\n 'spectrum-Radio--quiet': !isEmphasized,\n 'is-disabled': isDisabled,\n 'is-invalid': state.isInvalid,\n 'is-hovered': isHovered\n },\n styleProps.className\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} autoFocus={autoFocus}>\n <input\n {...inputProps}\n ref={inputRef}\n className={classNames(styles, 'spectrum-Radio-input')} />\n </FocusRing>\n <span className={classNames(styles, 'spectrum-Radio-button')} />\n {children && (\n <span className={classNames(styles, 'spectrum-Radio-label')}>\n {children}\n </span>\n )}\n </label>\n );\n}\n\n/**\n * Radio buttons allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _Radio = forwardRef(Radio);\nexport {_Radio as Radio};\n"],"names":[],"version":3,"file":"Radio.main.js.map"}
package/dist/Radio.mjs ADDED
@@ -0,0 +1,78 @@
1
+ import "./vars.cb27d9e2.css";
2
+ import $1v8IR$radio_vars_cssmodulejs from "./radio_vars_css.mjs";
3
+ import {useRadioProvider as $f394bff9e10389a0$export$b054eba74077a826} from "./context.mjs";
4
+ import {useStyleProps as $1v8IR$useStyleProps, useFocusableRef as $1v8IR$useFocusableRef, classNames as $1v8IR$classNames} from "@react-spectrum/utils";
5
+ import {FocusRing as $1v8IR$FocusRing} from "@react-aria/focus";
6
+ import $1v8IR$react, {useRef as $1v8IR$useRef, forwardRef as $1v8IR$forwardRef} from "react";
7
+ import {useHover as $1v8IR$useHover} from "@react-aria/interactions";
8
+ import {useRadio as $1v8IR$useRadio} from "@react-aria/radio";
9
+
10
+
11
+ function $parcel$interopDefault(a) {
12
+ return a && a.__esModule ? a.default : a;
13
+ }
14
+ /*
15
+ * Copyright 2020 Adobe. All rights reserved.
16
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
17
+ * you may not use this file except in compliance with the License. You may obtain a copy
18
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
19
+ *
20
+ * Unless required by applicable law or agreed to in writing, software distributed under
21
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
22
+ * OF ANY KIND, either express or implied. See the License for the specific language
23
+ * governing permissions and limitations under the License.
24
+ */
25
+
26
+
27
+
28
+
29
+
30
+
31
+ function $337c5cb580c4e6ba$var$Radio(props, ref) {
32
+ let { isDisabled: isDisabled, children: children, autoFocus: autoFocus, ...otherProps } = props;
33
+ let { styleProps: styleProps } = (0, $1v8IR$useStyleProps)(otherProps);
34
+ let { hoverProps: hoverProps, isHovered: isHovered } = (0, $1v8IR$useHover)({
35
+ isDisabled: isDisabled
36
+ });
37
+ let inputRef = (0, $1v8IR$useRef)(null);
38
+ let domRef = (0, $1v8IR$useFocusableRef)(ref, inputRef);
39
+ let radioGroupProps = (0, $f394bff9e10389a0$export$b054eba74077a826)();
40
+ let { isEmphasized: isEmphasized, state: state } = radioGroupProps;
41
+ let { inputProps: inputProps } = (0, $1v8IR$useRadio)({
42
+ ...props,
43
+ ...radioGroupProps,
44
+ isDisabled: isDisabled
45
+ }, state, inputRef);
46
+ return /*#__PURE__*/ (0, $1v8IR$react).createElement("label", {
47
+ ...styleProps,
48
+ ...hoverProps,
49
+ ref: domRef,
50
+ className: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "spectrum-Radio", {
51
+ // Removing. Pending design feedback.
52
+ // 'spectrum-Radio--labelBelow': labelPosition === 'bottom',
53
+ "spectrum-Radio--quiet": !isEmphasized,
54
+ "is-disabled": isDisabled,
55
+ "is-invalid": state.isInvalid,
56
+ "is-hovered": isHovered
57
+ }, styleProps.className)
58
+ }, /*#__PURE__*/ (0, $1v8IR$react).createElement((0, $1v8IR$FocusRing), {
59
+ focusRingClass: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "focus-ring"),
60
+ autoFocus: autoFocus
61
+ }, /*#__PURE__*/ (0, $1v8IR$react).createElement("input", {
62
+ ...inputProps,
63
+ ref: inputRef,
64
+ className: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "spectrum-Radio-input")
65
+ })), /*#__PURE__*/ (0, $1v8IR$react).createElement("span", {
66
+ className: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "spectrum-Radio-button")
67
+ }), children && /*#__PURE__*/ (0, $1v8IR$react).createElement("span", {
68
+ className: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "spectrum-Radio-label")
69
+ }, children));
70
+ }
71
+ /**
72
+ * Radio buttons allow users to select a single option from a list of mutually exclusive options.
73
+ * All possible options are exposed up front for users to compare.
74
+ */ const $337c5cb580c4e6ba$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, $1v8IR$forwardRef)($337c5cb580c4e6ba$var$Radio);
75
+
76
+
77
+ export {$337c5cb580c4e6ba$export$d7b12c4107be0d61 as Radio};
78
+ //# sourceMappingURL=Radio.mjs.map
@@ -0,0 +1,78 @@
1
+ import "./vars.cb27d9e2.css";
2
+ import $1v8IR$radio_vars_cssmodulejs from "./radio_vars_css.module.js";
3
+ import {useRadioProvider as $f394bff9e10389a0$export$b054eba74077a826} from "./context.module.js";
4
+ import {useStyleProps as $1v8IR$useStyleProps, useFocusableRef as $1v8IR$useFocusableRef, classNames as $1v8IR$classNames} from "@react-spectrum/utils";
5
+ import {FocusRing as $1v8IR$FocusRing} from "@react-aria/focus";
6
+ import $1v8IR$react, {useRef as $1v8IR$useRef, forwardRef as $1v8IR$forwardRef} from "react";
7
+ import {useHover as $1v8IR$useHover} from "@react-aria/interactions";
8
+ import {useRadio as $1v8IR$useRadio} from "@react-aria/radio";
9
+
10
+
11
+ function $parcel$interopDefault(a) {
12
+ return a && a.__esModule ? a.default : a;
13
+ }
14
+ /*
15
+ * Copyright 2020 Adobe. All rights reserved.
16
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
17
+ * you may not use this file except in compliance with the License. You may obtain a copy
18
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
19
+ *
20
+ * Unless required by applicable law or agreed to in writing, software distributed under
21
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
22
+ * OF ANY KIND, either express or implied. See the License for the specific language
23
+ * governing permissions and limitations under the License.
24
+ */
25
+
26
+
27
+
28
+
29
+
30
+
31
+ function $337c5cb580c4e6ba$var$Radio(props, ref) {
32
+ let { isDisabled: isDisabled, children: children, autoFocus: autoFocus, ...otherProps } = props;
33
+ let { styleProps: styleProps } = (0, $1v8IR$useStyleProps)(otherProps);
34
+ let { hoverProps: hoverProps, isHovered: isHovered } = (0, $1v8IR$useHover)({
35
+ isDisabled: isDisabled
36
+ });
37
+ let inputRef = (0, $1v8IR$useRef)(null);
38
+ let domRef = (0, $1v8IR$useFocusableRef)(ref, inputRef);
39
+ let radioGroupProps = (0, $f394bff9e10389a0$export$b054eba74077a826)();
40
+ let { isEmphasized: isEmphasized, state: state } = radioGroupProps;
41
+ let { inputProps: inputProps } = (0, $1v8IR$useRadio)({
42
+ ...props,
43
+ ...radioGroupProps,
44
+ isDisabled: isDisabled
45
+ }, state, inputRef);
46
+ return /*#__PURE__*/ (0, $1v8IR$react).createElement("label", {
47
+ ...styleProps,
48
+ ...hoverProps,
49
+ ref: domRef,
50
+ className: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "spectrum-Radio", {
51
+ // Removing. Pending design feedback.
52
+ // 'spectrum-Radio--labelBelow': labelPosition === 'bottom',
53
+ "spectrum-Radio--quiet": !isEmphasized,
54
+ "is-disabled": isDisabled,
55
+ "is-invalid": state.isInvalid,
56
+ "is-hovered": isHovered
57
+ }, styleProps.className)
58
+ }, /*#__PURE__*/ (0, $1v8IR$react).createElement((0, $1v8IR$FocusRing), {
59
+ focusRingClass: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "focus-ring"),
60
+ autoFocus: autoFocus
61
+ }, /*#__PURE__*/ (0, $1v8IR$react).createElement("input", {
62
+ ...inputProps,
63
+ ref: inputRef,
64
+ className: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "spectrum-Radio-input")
65
+ })), /*#__PURE__*/ (0, $1v8IR$react).createElement("span", {
66
+ className: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "spectrum-Radio-button")
67
+ }), children && /*#__PURE__*/ (0, $1v8IR$react).createElement("span", {
68
+ className: (0, $1v8IR$classNames)((0, ($parcel$interopDefault($1v8IR$radio_vars_cssmodulejs))), "spectrum-Radio-label")
69
+ }, children));
70
+ }
71
+ /**
72
+ * Radio buttons allow users to select a single option from a list of mutually exclusive options.
73
+ * All possible options are exposed up front for users to compare.
74
+ */ const $337c5cb580c4e6ba$export$d7b12c4107be0d61 = /*#__PURE__*/ (0, $1v8IR$forwardRef)($337c5cb580c4e6ba$var$Radio);
75
+
76
+
77
+ export {$337c5cb580c4e6ba$export$d7b12c4107be0d61 as Radio};
78
+ //# sourceMappingURL=Radio.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAYD,SAAS,4BAAM,KAAyB,EAAE,GAAmC;IAC3E,IAAI,cACF,UAAU,YACV,QAAQ,aACR,SAAS,EACT,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,cAAC,UAAU,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;oBAAC;IAAU;IAElD,IAAI,WAAW,CAAA,GAAA,aAAK,EAAoB;IACxC,IAAI,SAAS,CAAA,GAAA,sBAAc,EAAE,KAAK;IAElC,IAAI,kBAAkB,CAAA,GAAA,yCAAe;IACrC,IAAI,gBACF,YAAY,SACZ,KAAK,EACN,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;QAC1B,GAAG,KAAK;QACR,GAAG,eAAe;oBAClB;IACF,GAAG,OAAO;IAEV,qBACE,gCAAC;QACE,GAAG,UAAU;QACb,GAAG,UAAU;QACd,KAAK;QACL,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,uDAAK,GACL,kBACA;YACE,qCAAqC;YACrC,4DAA4D;YAC5D,yBAAyB,CAAC;YAC1B,eAAe;YACf,cAAc,MAAM,SAAS;YAC7B,cAAc;QAChB,GACA,WAAW,SAAS;qBAGxB,gCAAC,CAAA,GAAA,gBAAQ;QAAE,gBAAgB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,uDAAK,GAAG;QAAe,WAAW;qBACtE,gCAAC;QACE,GAAG,UAAU;QACd,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,uDAAK,GAAG;uBAElC,gCAAC;QAAK,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,uDAAK,GAAG;QACnC,0BACC,gCAAC;QAAK,WAAW,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,uDAAK,GAAG;OACjC;AAKX;AAEA;;;CAGC,GACD,MAAM,0DAAS,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/radio/src/Radio.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {FocusableRef} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport React, {forwardRef, useRef} from 'react';\nimport {SpectrumRadioProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/radio/vars.css';\nimport {useHover} from '@react-aria/interactions';\nimport {useRadio} from '@react-aria/radio';\nimport {useRadioProvider} from './context';\n\nfunction Radio(props: SpectrumRadioProps, ref: FocusableRef<HTMLLabelElement>) {\n let {\n isDisabled,\n children,\n autoFocus,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let {hoverProps, isHovered} = useHover({isDisabled});\n\n let inputRef = useRef<HTMLInputElement>(null);\n let domRef = useFocusableRef(ref, inputRef);\n\n let radioGroupProps = useRadioProvider();\n let {\n isEmphasized,\n state\n } = radioGroupProps;\n\n let {inputProps} = useRadio({\n ...props,\n ...radioGroupProps,\n isDisabled\n }, state, inputRef);\n\n return (\n <label\n {...styleProps}\n {...hoverProps}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-Radio',\n {\n // Removing. Pending design feedback.\n // 'spectrum-Radio--labelBelow': labelPosition === 'bottom',\n 'spectrum-Radio--quiet': !isEmphasized,\n 'is-disabled': isDisabled,\n 'is-invalid': state.isInvalid,\n 'is-hovered': isHovered\n },\n styleProps.className\n )\n }>\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} autoFocus={autoFocus}>\n <input\n {...inputProps}\n ref={inputRef}\n className={classNames(styles, 'spectrum-Radio-input')} />\n </FocusRing>\n <span className={classNames(styles, 'spectrum-Radio-button')} />\n {children && (\n <span className={classNames(styles, 'spectrum-Radio-label')}>\n {children}\n </span>\n )}\n </label>\n );\n}\n\n/**\n * Radio buttons allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _Radio = forwardRef(Radio);\nexport {_Radio as Radio};\n"],"names":[],"version":3,"file":"Radio.module.js.map"}
@@ -0,0 +1,72 @@
1
+ var $f5a8721b9af05d97$exports = require("./context.main.js");
2
+ require("./vars.083bf957.css");
3
+ var $53124a3a0fd56fca$exports = require("./fieldgroup_vars_css.main.js");
4
+ var $bzUrP$reactspectrumutils = require("@react-spectrum/utils");
5
+ var $bzUrP$reactspectrumlabel = require("@react-spectrum/label");
6
+ var $bzUrP$react = require("react");
7
+ var $bzUrP$reactspectrumform = require("@react-spectrum/form");
8
+ var $bzUrP$reactspectrumprovider = require("@react-spectrum/provider");
9
+ var $bzUrP$reactariaradio = require("@react-aria/radio");
10
+ var $bzUrP$reactstatelyradio = require("@react-stately/radio");
11
+
12
+
13
+ function $parcel$interopDefault(a) {
14
+ return a && a.__esModule ? a.default : a;
15
+ }
16
+
17
+ function $parcel$export(e, n, v, s) {
18
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
19
+ }
20
+
21
+ $parcel$export(module.exports, "RadioGroup", () => $aa5529d97b69d048$export$a98f0dcb43a68a25);
22
+ /*
23
+ * Copyright 2020 Adobe. All rights reserved.
24
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
25
+ * you may not use this file except in compliance with the License. You may obtain a copy
26
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
27
+ *
28
+ * Unless required by applicable law or agreed to in writing, software distributed under
29
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
30
+ * OF ANY KIND, either express or implied. See the License for the specific language
31
+ * governing permissions and limitations under the License.
32
+ */
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+ function $aa5529d97b69d048$var$RadioGroup(props, ref) {
42
+ props = (0, $bzUrP$reactspectrumprovider.useProviderProps)(props);
43
+ props = (0, $bzUrP$reactspectrumform.useFormProps)(props);
44
+ let { isEmphasized: isEmphasized, children: children, orientation: orientation = "vertical" } = props;
45
+ let domRef = (0, $bzUrP$reactspectrumutils.useDOMRef)(ref);
46
+ let state = (0, $bzUrP$reactstatelyradio.useRadioGroupState)(props);
47
+ let { radioGroupProps: radioGroupProps, ...otherProps } = (0, $bzUrP$reactariaradio.useRadioGroup)(props, state);
48
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($bzUrP$react))).createElement((0, $bzUrP$reactspectrumlabel.Field), {
49
+ ...props,
50
+ ...otherProps,
51
+ ref: domRef,
52
+ wrapperClassName: (0, $bzUrP$reactspectrumutils.classNames)((0, ($parcel$interopDefault($53124a3a0fd56fca$exports))), "spectrum-FieldGroup"),
53
+ elementType: "span"
54
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($bzUrP$react))).createElement("div", {
55
+ ...radioGroupProps,
56
+ className: (0, $bzUrP$reactspectrumutils.classNames)((0, ($parcel$interopDefault($53124a3a0fd56fca$exports))), "spectrum-FieldGroup-group", {
57
+ "spectrum-FieldGroup-group--horizontal": orientation === "horizontal"
58
+ })
59
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($bzUrP$react))).createElement((0, $f5a8721b9af05d97$exports.RadioContext).Provider, {
60
+ value: {
61
+ isEmphasized: isEmphasized,
62
+ state: state
63
+ }
64
+ }, children)));
65
+ }
66
+ /**
67
+ * Radio groups allow users to select a single option from a list of mutually exclusive options.
68
+ * All possible options are exposed up front for users to compare.
69
+ */ const $aa5529d97b69d048$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, ($parcel$interopDefault($bzUrP$react))).forwardRef($aa5529d97b69d048$var$RadioGroup);
70
+
71
+
72
+ //# sourceMappingURL=RadioGroup.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAcD,SAAS,iCAAW,KAA8B,EAAE,GAAwB;IAC1E,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,QAAQ,CAAA,GAAA,qCAAW,EAAE;IACrB,IAAI,gBACF,YAAY,YACZ,QAAQ,eACR,cAAc,YACf,GAAG;IAEJ,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,QAAQ,CAAA,GAAA,2CAAiB,EAAE;IAC/B,IAAI,mBAAC,eAAe,EAAE,GAAG,YAAW,GAAG,CAAA,GAAA,mCAAY,EAAE,OAAO;IAE5D,qBACE,0DAAC,CAAA,GAAA,+BAAI;QACF,GAAG,KAAK;QACR,GAAG,UAAU;QACd,KAAK;QACL,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;QACrC,aAAY;qBACZ,0DAAC;QACE,GAAG,eAAe;QACnB,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,6BACA;YACE,yCAAyC,gBAAgB;QAC3D;qBAGJ,0DAAC,CAAA,GAAA,sCAAW,EAAE,QAAQ;QACpB,OAAO;0BACL;mBACA;QACF;OACC;AAKX;AAEA;;;CAGC,GACD,MAAM,0DAAc,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/radio/src/RadioGroup.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useDOMRef} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {Field} from '@react-spectrum/label';\nimport {RadioContext} from './context';\nimport React from 'react';\nimport {SpectrumRadioGroupProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/fieldgroup/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRadioGroup} from '@react-aria/radio';\nimport {useRadioGroupState} from '@react-stately/radio';\n\nfunction RadioGroup(props: SpectrumRadioGroupProps, ref: DOMRef<HTMLElement>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n let {\n isEmphasized,\n children,\n orientation = 'vertical'\n } = props;\n\n let domRef = useDOMRef(ref);\n let state = useRadioGroupState(props);\n let {radioGroupProps, ...otherProps} = useRadioGroup(props, state);\n\n return (\n <Field\n {...props}\n {...otherProps}\n ref={domRef}\n wrapperClassName={classNames(styles, 'spectrum-FieldGroup')}\n elementType=\"span\">\n <div\n {...radioGroupProps}\n className={\n classNames(\n styles,\n 'spectrum-FieldGroup-group',\n {\n 'spectrum-FieldGroup-group--horizontal': orientation === 'horizontal'\n }\n )\n }>\n <RadioContext.Provider\n value={{\n isEmphasized,\n state\n }}>\n {children}\n </RadioContext.Provider>\n </div>\n </Field>\n );\n}\n\n/**\n * Radio groups allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _RadioGroup = React.forwardRef(RadioGroup);\nexport {_RadioGroup as RadioGroup};\n"],"names":[],"version":3,"file":"RadioGroup.main.js.map"}
@@ -0,0 +1,67 @@
1
+ import {RadioContext as $f394bff9e10389a0$export$b118023277d4a5c3} from "./context.mjs";
2
+ import "./vars.083bf957.css";
3
+ import $ah3ae$fieldgroup_vars_cssmodulejs from "./fieldgroup_vars_css.mjs";
4
+ import {useDOMRef as $ah3ae$useDOMRef, classNames as $ah3ae$classNames} from "@react-spectrum/utils";
5
+ import {Field as $ah3ae$Field} from "@react-spectrum/label";
6
+ import $ah3ae$react from "react";
7
+ import {useFormProps as $ah3ae$useFormProps} from "@react-spectrum/form";
8
+ import {useProviderProps as $ah3ae$useProviderProps} from "@react-spectrum/provider";
9
+ import {useRadioGroup as $ah3ae$useRadioGroup} from "@react-aria/radio";
10
+ import {useRadioGroupState as $ah3ae$useRadioGroupState} from "@react-stately/radio";
11
+
12
+
13
+ function $parcel$interopDefault(a) {
14
+ return a && a.__esModule ? a.default : a;
15
+ }
16
+ /*
17
+ * Copyright 2020 Adobe. All rights reserved.
18
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this file except in compliance with the License. You may obtain a copy
20
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software distributed under
23
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
24
+ * OF ANY KIND, either express or implied. See the License for the specific language
25
+ * governing permissions and limitations under the License.
26
+ */
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ function $ac9b96486fc4badf$var$RadioGroup(props, ref) {
36
+ props = (0, $ah3ae$useProviderProps)(props);
37
+ props = (0, $ah3ae$useFormProps)(props);
38
+ let { isEmphasized: isEmphasized, children: children, orientation: orientation = "vertical" } = props;
39
+ let domRef = (0, $ah3ae$useDOMRef)(ref);
40
+ let state = (0, $ah3ae$useRadioGroupState)(props);
41
+ let { radioGroupProps: radioGroupProps, ...otherProps } = (0, $ah3ae$useRadioGroup)(props, state);
42
+ return /*#__PURE__*/ (0, $ah3ae$react).createElement((0, $ah3ae$Field), {
43
+ ...props,
44
+ ...otherProps,
45
+ ref: domRef,
46
+ wrapperClassName: (0, $ah3ae$classNames)((0, ($parcel$interopDefault($ah3ae$fieldgroup_vars_cssmodulejs))), "spectrum-FieldGroup"),
47
+ elementType: "span"
48
+ }, /*#__PURE__*/ (0, $ah3ae$react).createElement("div", {
49
+ ...radioGroupProps,
50
+ className: (0, $ah3ae$classNames)((0, ($parcel$interopDefault($ah3ae$fieldgroup_vars_cssmodulejs))), "spectrum-FieldGroup-group", {
51
+ "spectrum-FieldGroup-group--horizontal": orientation === "horizontal"
52
+ })
53
+ }, /*#__PURE__*/ (0, $ah3ae$react).createElement((0, $f394bff9e10389a0$export$b118023277d4a5c3).Provider, {
54
+ value: {
55
+ isEmphasized: isEmphasized,
56
+ state: state
57
+ }
58
+ }, children)));
59
+ }
60
+ /**
61
+ * Radio groups allow users to select a single option from a list of mutually exclusive options.
62
+ * All possible options are exposed up front for users to compare.
63
+ */ const $ac9b96486fc4badf$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, $ah3ae$react).forwardRef($ac9b96486fc4badf$var$RadioGroup);
64
+
65
+
66
+ export {$ac9b96486fc4badf$export$a98f0dcb43a68a25 as RadioGroup};
67
+ //# sourceMappingURL=RadioGroup.mjs.map
@@ -0,0 +1,67 @@
1
+ import {RadioContext as $f394bff9e10389a0$export$b118023277d4a5c3} from "./context.module.js";
2
+ import "./vars.083bf957.css";
3
+ import $ah3ae$fieldgroup_vars_cssmodulejs from "./fieldgroup_vars_css.module.js";
4
+ import {useDOMRef as $ah3ae$useDOMRef, classNames as $ah3ae$classNames} from "@react-spectrum/utils";
5
+ import {Field as $ah3ae$Field} from "@react-spectrum/label";
6
+ import $ah3ae$react from "react";
7
+ import {useFormProps as $ah3ae$useFormProps} from "@react-spectrum/form";
8
+ import {useProviderProps as $ah3ae$useProviderProps} from "@react-spectrum/provider";
9
+ import {useRadioGroup as $ah3ae$useRadioGroup} from "@react-aria/radio";
10
+ import {useRadioGroupState as $ah3ae$useRadioGroupState} from "@react-stately/radio";
11
+
12
+
13
+ function $parcel$interopDefault(a) {
14
+ return a && a.__esModule ? a.default : a;
15
+ }
16
+ /*
17
+ * Copyright 2020 Adobe. All rights reserved.
18
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
19
+ * you may not use this file except in compliance with the License. You may obtain a copy
20
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
21
+ *
22
+ * Unless required by applicable law or agreed to in writing, software distributed under
23
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
24
+ * OF ANY KIND, either express or implied. See the License for the specific language
25
+ * governing permissions and limitations under the License.
26
+ */
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+ function $ac9b96486fc4badf$var$RadioGroup(props, ref) {
36
+ props = (0, $ah3ae$useProviderProps)(props);
37
+ props = (0, $ah3ae$useFormProps)(props);
38
+ let { isEmphasized: isEmphasized, children: children, orientation: orientation = "vertical" } = props;
39
+ let domRef = (0, $ah3ae$useDOMRef)(ref);
40
+ let state = (0, $ah3ae$useRadioGroupState)(props);
41
+ let { radioGroupProps: radioGroupProps, ...otherProps } = (0, $ah3ae$useRadioGroup)(props, state);
42
+ return /*#__PURE__*/ (0, $ah3ae$react).createElement((0, $ah3ae$Field), {
43
+ ...props,
44
+ ...otherProps,
45
+ ref: domRef,
46
+ wrapperClassName: (0, $ah3ae$classNames)((0, ($parcel$interopDefault($ah3ae$fieldgroup_vars_cssmodulejs))), "spectrum-FieldGroup"),
47
+ elementType: "span"
48
+ }, /*#__PURE__*/ (0, $ah3ae$react).createElement("div", {
49
+ ...radioGroupProps,
50
+ className: (0, $ah3ae$classNames)((0, ($parcel$interopDefault($ah3ae$fieldgroup_vars_cssmodulejs))), "spectrum-FieldGroup-group", {
51
+ "spectrum-FieldGroup-group--horizontal": orientation === "horizontal"
52
+ })
53
+ }, /*#__PURE__*/ (0, $ah3ae$react).createElement((0, $f394bff9e10389a0$export$b118023277d4a5c3).Provider, {
54
+ value: {
55
+ isEmphasized: isEmphasized,
56
+ state: state
57
+ }
58
+ }, children)));
59
+ }
60
+ /**
61
+ * Radio groups allow users to select a single option from a list of mutually exclusive options.
62
+ * All possible options are exposed up front for users to compare.
63
+ */ const $ac9b96486fc4badf$export$a98f0dcb43a68a25 = /*#__PURE__*/ (0, $ah3ae$react).forwardRef($ac9b96486fc4badf$var$RadioGroup);
64
+
65
+
66
+ export {$ac9b96486fc4badf$export$a98f0dcb43a68a25 as RadioGroup};
67
+ //# sourceMappingURL=RadioGroup.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;AAcD,SAAS,iCAAW,KAA8B,EAAE,GAAwB;IAC1E,QAAQ,CAAA,GAAA,uBAAe,EAAE;IACzB,QAAQ,CAAA,GAAA,mBAAW,EAAE;IACrB,IAAI,gBACF,YAAY,YACZ,QAAQ,eACR,cAAc,YACf,GAAG;IAEJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,QAAQ,CAAA,GAAA,yBAAiB,EAAE;IAC/B,IAAI,mBAAC,eAAe,EAAE,GAAG,YAAW,GAAG,CAAA,GAAA,oBAAY,EAAE,OAAO;IAE5D,qBACE,gCAAC,CAAA,GAAA,YAAI;QACF,GAAG,KAAK;QACR,GAAG,UAAU;QACd,KAAK;QACL,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,4DAAK,GAAG;QACrC,aAAY;qBACZ,gCAAC;QACE,GAAG,eAAe;QACnB,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,4DAAK,GACL,6BACA;YACE,yCAAyC,gBAAgB;QAC3D;qBAGJ,gCAAC,CAAA,GAAA,yCAAW,EAAE,QAAQ;QACpB,OAAO;0BACL;mBACA;QACF;OACC;AAKX;AAEA;;;CAGC,GACD,MAAM,0DAAc,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC","sources":["packages/@react-spectrum/radio/src/RadioGroup.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useDOMRef} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {Field} from '@react-spectrum/label';\nimport {RadioContext} from './context';\nimport React from 'react';\nimport {SpectrumRadioGroupProps} from '@react-types/radio';\nimport styles from '@adobe/spectrum-css-temp/components/fieldgroup/vars.css';\nimport {useFormProps} from '@react-spectrum/form';\nimport {useProviderProps} from '@react-spectrum/provider';\nimport {useRadioGroup} from '@react-aria/radio';\nimport {useRadioGroupState} from '@react-stately/radio';\n\nfunction RadioGroup(props: SpectrumRadioGroupProps, ref: DOMRef<HTMLElement>) {\n props = useProviderProps(props);\n props = useFormProps(props);\n let {\n isEmphasized,\n children,\n orientation = 'vertical'\n } = props;\n\n let domRef = useDOMRef(ref);\n let state = useRadioGroupState(props);\n let {radioGroupProps, ...otherProps} = useRadioGroup(props, state);\n\n return (\n <Field\n {...props}\n {...otherProps}\n ref={domRef}\n wrapperClassName={classNames(styles, 'spectrum-FieldGroup')}\n elementType=\"span\">\n <div\n {...radioGroupProps}\n className={\n classNames(\n styles,\n 'spectrum-FieldGroup-group',\n {\n 'spectrum-FieldGroup-group--horizontal': orientation === 'horizontal'\n }\n )\n }>\n <RadioContext.Provider\n value={{\n isEmphasized,\n state\n }}>\n {children}\n </RadioContext.Provider>\n </div>\n </Field>\n );\n}\n\n/**\n * Radio groups allow users to select a single option from a list of mutually exclusive options.\n * All possible options are exposed up front for users to compare.\n */\nconst _RadioGroup = React.forwardRef(RadioGroup);\nexport {_RadioGroup as RadioGroup};\n"],"names":[],"version":3,"file":"RadioGroup.module.js.map"}
@@ -0,0 +1,31 @@
1
+ var $fZYTT$react = require("react");
2
+
3
+
4
+ function $parcel$interopDefault(a) {
5
+ return a && a.__esModule ? a.default : a;
6
+ }
7
+
8
+ function $parcel$export(e, n, v, s) {
9
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
10
+ }
11
+
12
+ $parcel$export(module.exports, "RadioContext", () => $f5a8721b9af05d97$export$b118023277d4a5c3);
13
+ $parcel$export(module.exports, "useRadioProvider", () => $f5a8721b9af05d97$export$b054eba74077a826);
14
+ /*
15
+ * Copyright 2020 Adobe. All rights reserved.
16
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
17
+ * you may not use this file except in compliance with the License. You may obtain a copy
18
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
19
+ *
20
+ * Unless required by applicable law or agreed to in writing, software distributed under
21
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
22
+ * OF ANY KIND, either express or implied. See the License for the specific language
23
+ * governing permissions and limitations under the License.
24
+ */
25
+ const $f5a8721b9af05d97$export$b118023277d4a5c3 = (0, ($parcel$interopDefault($fZYTT$react))).createContext(null);
26
+ function $f5a8721b9af05d97$export$b054eba74077a826() {
27
+ return (0, $fZYTT$react.useContext)($f5a8721b9af05d97$export$b118023277d4a5c3) || {};
28
+ }
29
+
30
+
31
+ //# sourceMappingURL=context.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;AAWM,MAAM,4CAAe,CAAA,GAAA,sCAAI,EAAE,aAAa,CAA2B;AAEnE,SAAS;IACd,OAAO,CAAA,GAAA,uBAAS,EAAE,8CAAiB,CAAC;AACtC","sources":["packages/@react-spectrum/radio/src/context.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {RadioGroupState} from '@react-stately/radio';\nimport React, {useContext} from 'react';\n\ninterface RadioGroupContext {\n isEmphasized?: boolean,\n name?: string,\n state: RadioGroupState\n}\n\nexport const RadioContext = React.createContext<RadioGroupContext | null>(null);\n\nexport function useRadioProvider(): RadioGroupContext {\n return useContext(RadioContext) || {} as RadioGroupContext;\n}\n"],"names":[],"version":3,"file":"context.main.js.map"}
@@ -0,0 +1,21 @@
1
+ import $7wjlP$react, {useContext as $7wjlP$useContext} from "react";
2
+
3
+ /*
4
+ * Copyright 2020 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */
14
+ const $f394bff9e10389a0$export$b118023277d4a5c3 = (0, $7wjlP$react).createContext(null);
15
+ function $f394bff9e10389a0$export$b054eba74077a826() {
16
+ return (0, $7wjlP$useContext)($f394bff9e10389a0$export$b118023277d4a5c3) || {};
17
+ }
18
+
19
+
20
+ export {$f394bff9e10389a0$export$b118023277d4a5c3 as RadioContext, $f394bff9e10389a0$export$b054eba74077a826 as useRadioProvider};
21
+ //# sourceMappingURL=context.mjs.map
@@ -0,0 +1,21 @@
1
+ import $7wjlP$react, {useContext as $7wjlP$useContext} from "react";
2
+
3
+ /*
4
+ * Copyright 2020 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */
14
+ const $f394bff9e10389a0$export$b118023277d4a5c3 = (0, $7wjlP$react).createContext(null);
15
+ function $f394bff9e10389a0$export$b054eba74077a826() {
16
+ return (0, $7wjlP$useContext)($f394bff9e10389a0$export$b118023277d4a5c3) || {};
17
+ }
18
+
19
+
20
+ export {$f394bff9e10389a0$export$b118023277d4a5c3 as RadioContext, $f394bff9e10389a0$export$b054eba74077a826 as useRadioProvider};
21
+ //# sourceMappingURL=context.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC;AAWM,MAAM,4CAAe,CAAA,GAAA,YAAI,EAAE,aAAa,CAA2B;AAEnE,SAAS;IACd,OAAO,CAAA,GAAA,iBAAS,EAAE,8CAAiB,CAAC;AACtC","sources":["packages/@react-spectrum/radio/src/context.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {RadioGroupState} from '@react-stately/radio';\nimport React, {useContext} from 'react';\n\ninterface RadioGroupContext {\n isEmphasized?: boolean,\n name?: string,\n state: RadioGroupState\n}\n\nexport const RadioContext = React.createContext<RadioGroupContext | null>(null);\n\nexport function useRadioProvider(): RadioGroupContext {\n return useContext(RadioContext) || {} as RadioGroupContext;\n}\n"],"names":[],"version":3,"file":"context.module.js.map"}
@@ -0,0 +1,32 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+
6
+ $parcel$export(module.exports, "focus-ring", () => $53124a3a0fd56fca$export$f39a09f249340e2a, (v) => $53124a3a0fd56fca$export$f39a09f249340e2a = v);
7
+ $parcel$export(module.exports, "i18nFontFamily", () => $53124a3a0fd56fca$export$8c4ee2c50c22c514, (v) => $53124a3a0fd56fca$export$8c4ee2c50c22c514 = v);
8
+ $parcel$export(module.exports, "spectrum-FieldGroup", () => $53124a3a0fd56fca$export$75eb16cbfc18279c, (v) => $53124a3a0fd56fca$export$75eb16cbfc18279c = v);
9
+ $parcel$export(module.exports, "spectrum-FieldGroup-group", () => $53124a3a0fd56fca$export$984c7bbbfc7ddffc, (v) => $53124a3a0fd56fca$export$984c7bbbfc7ddffc = v);
10
+ $parcel$export(module.exports, "spectrum-FieldGroup-group--horizontal", () => $53124a3a0fd56fca$export$1ad8646bcba21c0e, (v) => $53124a3a0fd56fca$export$1ad8646bcba21c0e = v);
11
+ $parcel$export(module.exports, "spectrum-FocusRing-ring", () => $53124a3a0fd56fca$export$4109102f950813a6, (v) => $53124a3a0fd56fca$export$4109102f950813a6 = v);
12
+ $parcel$export(module.exports, "spectrum-FocusRing", () => $53124a3a0fd56fca$export$24c7f46a6e3605dd, (v) => $53124a3a0fd56fca$export$24c7f46a6e3605dd = v);
13
+ $parcel$export(module.exports, "spectrum-FocusRing--quiet", () => $53124a3a0fd56fca$export$2927016961429360, (v) => $53124a3a0fd56fca$export$2927016961429360 = v);
14
+ var $53124a3a0fd56fca$export$f39a09f249340e2a;
15
+ var $53124a3a0fd56fca$export$8c4ee2c50c22c514;
16
+ var $53124a3a0fd56fca$export$75eb16cbfc18279c;
17
+ var $53124a3a0fd56fca$export$984c7bbbfc7ddffc;
18
+ var $53124a3a0fd56fca$export$1ad8646bcba21c0e;
19
+ var $53124a3a0fd56fca$export$4109102f950813a6;
20
+ var $53124a3a0fd56fca$export$24c7f46a6e3605dd;
21
+ var $53124a3a0fd56fca$export$2927016961429360;
22
+ $53124a3a0fd56fca$export$f39a09f249340e2a = `hyn22G_focus-ring`;
23
+ $53124a3a0fd56fca$export$8c4ee2c50c22c514 = `hyn22G_i18nFontFamily`;
24
+ $53124a3a0fd56fca$export$75eb16cbfc18279c = `hyn22G_spectrum-FieldGroup`;
25
+ $53124a3a0fd56fca$export$984c7bbbfc7ddffc = `hyn22G_spectrum-FieldGroup-group`;
26
+ $53124a3a0fd56fca$export$1ad8646bcba21c0e = `hyn22G_spectrum-FieldGroup-group--horizontal`;
27
+ $53124a3a0fd56fca$export$4109102f950813a6 = `hyn22G_spectrum-FocusRing-ring`;
28
+ $53124a3a0fd56fca$export$24c7f46a6e3605dd = `hyn22G_spectrum-FocusRing ${$53124a3a0fd56fca$export$4109102f950813a6}`;
29
+ $53124a3a0fd56fca$export$2927016961429360 = `hyn22G_spectrum-FocusRing--quiet`;
30
+
31
+
32
+ //# sourceMappingURL=fieldgroup_vars_css.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAPA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAA0D,CAAC,4CAA4C,CAAC;AACxG,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/fieldgroup/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n"],"names":[],"version":3,"file":"fieldgroup_vars_css.main.js.map"}