@react-spectrum/well 3.0.0-nightly-641446f65-240905

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.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @react-spectrum/well
2
+
3
+ This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.
@@ -0,0 +1,52 @@
1
+ require("./vars.f22d6188.css");
2
+ var $b516e4acb09598d3$exports = require("./well_vars_css.main.js");
3
+ var $44ml7$reactspectrumutils = require("@react-spectrum/utils");
4
+ var $44ml7$reactariautils = require("@react-aria/utils");
5
+ var $44ml7$react = require("react");
6
+
7
+
8
+ function $parcel$interopDefault(a) {
9
+ return a && a.__esModule ? a.default : a;
10
+ }
11
+
12
+ function $parcel$export(e, n, v, s) {
13
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
14
+ }
15
+
16
+ $parcel$export(module.exports, "Well", () => $fb0fd853f763d005$export$d89c679ee2f73242);
17
+ /*
18
+ * Copyright 2020 Adobe. All rights reserved.
19
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
20
+ * you may not use this file except in compliance with the License. You may obtain a copy
21
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * Unless required by applicable law or agreed to in writing, software distributed under
24
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
25
+ * OF ANY KIND, either express or implied. See the License for the specific language
26
+ * governing permissions and limitations under the License.
27
+ */
28
+
29
+
30
+
31
+ function $fb0fd853f763d005$var$Well(props, ref) {
32
+ let { children: children, role: role, ...otherProps } = props;
33
+ let domRef = (0, $44ml7$reactspectrumutils.useDOMRef)(ref);
34
+ let { styleProps: styleProps } = (0, $44ml7$reactspectrumutils.useStyleProps)(otherProps);
35
+ if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled Well must have a role.');
36
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($44ml7$react))).createElement("div", {
37
+ ...(0, $44ml7$reactariautils.filterDOMProps)(otherProps, {
38
+ labelable: !!role
39
+ }),
40
+ ...styleProps,
41
+ role: role,
42
+ ref: domRef,
43
+ className: (0, $44ml7$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b516e4acb09598d3$exports))), 'spectrum-Well', styleProps.className)
44
+ }, children);
45
+ }
46
+ /**
47
+ * A Well is a content container that displays non-editable content separate from other content on the screen.
48
+ * Often this is used to display preformatted text, such as code/markup examples on a documentation page.
49
+ */ const $fb0fd853f763d005$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $44ml7$react.forwardRef)($fb0fd853f763d005$var$Well);
50
+
51
+
52
+ //# sourceMappingURL=Well.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AASD,SAAS,2BAAK,KAAwB,EAAE,GAA2B;IACjE,IAAI,YACF,QAAQ,QACR,IAAI,EACJ,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IAEjC,IAAI,CAAC,QAAS,CAAA,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,kBAAkB,AAAD,GAC1D,QAAQ,IAAI,CAAC;IAGf,qBACE,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAa,EAAE,YAAY;YAAC,WAAW,CAAC,CAAC;QAAI,EAAE;QAClD,GAAG,UAAU;QACd,MAAM;QACN,KAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,iBACA,WAAW,SAAS;OAErB;AAGP;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/well/src/Well.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, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumWellProps} from '@react-types/well';\nimport styles from '@adobe/spectrum-css-temp/components/well/vars.css';\n\nfunction Well(props: SpectrumWellProps, ref: DOMRef<HTMLDivElement>) {\n let {\n children,\n role,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n if (!role && (props['aria-label'] || props['aria-labelledby'])) {\n console.warn('A labelled Well must have a role.');\n }\n\n return (\n <div\n {...filterDOMProps(otherProps, {labelable: !!role})}\n {...styleProps}\n role={role}\n ref={domRef}\n className={classNames(\n styles,\n 'spectrum-Well',\n styleProps.className\n )}>\n {children}\n </div>\n );\n}\n\n/**\n * A Well is a content container that displays non-editable content separate from other content on the screen.\n * Often this is used to display preformatted text, such as code/markup examples on a documentation page.\n */\nconst _Well = forwardRef(Well);\nexport {_Well as Well};\n"],"names":[],"version":3,"file":"Well.main.js.map"}
package/dist/Well.mjs ADDED
@@ -0,0 +1,47 @@
1
+ import "./vars.f22d6188.css";
2
+ import $8Snfj$well_vars_cssmodulejs from "./well_vars_css.mjs";
3
+ import {useDOMRef as $8Snfj$useDOMRef, useStyleProps as $8Snfj$useStyleProps, classNames as $8Snfj$classNames} from "@react-spectrum/utils";
4
+ import {filterDOMProps as $8Snfj$filterDOMProps} from "@react-aria/utils";
5
+ import $8Snfj$react, {forwardRef as $8Snfj$forwardRef} from "react";
6
+
7
+
8
+ function $parcel$interopDefault(a) {
9
+ return a && a.__esModule ? a.default : a;
10
+ }
11
+ /*
12
+ * Copyright 2020 Adobe. All rights reserved.
13
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License. You may obtain a copy
15
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software distributed under
18
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
19
+ * OF ANY KIND, either express or implied. See the License for the specific language
20
+ * governing permissions and limitations under the License.
21
+ */
22
+
23
+
24
+
25
+ function $126c538221395de1$var$Well(props, ref) {
26
+ let { children: children, role: role, ...otherProps } = props;
27
+ let domRef = (0, $8Snfj$useDOMRef)(ref);
28
+ let { styleProps: styleProps } = (0, $8Snfj$useStyleProps)(otherProps);
29
+ if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled Well must have a role.');
30
+ return /*#__PURE__*/ (0, $8Snfj$react).createElement("div", {
31
+ ...(0, $8Snfj$filterDOMProps)(otherProps, {
32
+ labelable: !!role
33
+ }),
34
+ ...styleProps,
35
+ role: role,
36
+ ref: domRef,
37
+ className: (0, $8Snfj$classNames)((0, ($parcel$interopDefault($8Snfj$well_vars_cssmodulejs))), 'spectrum-Well', styleProps.className)
38
+ }, children);
39
+ }
40
+ /**
41
+ * A Well is a content container that displays non-editable content separate from other content on the screen.
42
+ * Often this is used to display preformatted text, such as code/markup examples on a documentation page.
43
+ */ const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $8Snfj$forwardRef)($126c538221395de1$var$Well);
44
+
45
+
46
+ export {$126c538221395de1$export$d89c679ee2f73242 as Well};
47
+ //# sourceMappingURL=Well.module.js.map
@@ -0,0 +1,47 @@
1
+ import "./vars.f22d6188.css";
2
+ import $8Snfj$well_vars_cssmodulejs from "./well_vars_css.module.js";
3
+ import {useDOMRef as $8Snfj$useDOMRef, useStyleProps as $8Snfj$useStyleProps, classNames as $8Snfj$classNames} from "@react-spectrum/utils";
4
+ import {filterDOMProps as $8Snfj$filterDOMProps} from "@react-aria/utils";
5
+ import $8Snfj$react, {forwardRef as $8Snfj$forwardRef} from "react";
6
+
7
+
8
+ function $parcel$interopDefault(a) {
9
+ return a && a.__esModule ? a.default : a;
10
+ }
11
+ /*
12
+ * Copyright 2020 Adobe. All rights reserved.
13
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
14
+ * you may not use this file except in compliance with the License. You may obtain a copy
15
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
16
+ *
17
+ * Unless required by applicable law or agreed to in writing, software distributed under
18
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
19
+ * OF ANY KIND, either express or implied. See the License for the specific language
20
+ * governing permissions and limitations under the License.
21
+ */
22
+
23
+
24
+
25
+ function $126c538221395de1$var$Well(props, ref) {
26
+ let { children: children, role: role, ...otherProps } = props;
27
+ let domRef = (0, $8Snfj$useDOMRef)(ref);
28
+ let { styleProps: styleProps } = (0, $8Snfj$useStyleProps)(otherProps);
29
+ if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled Well must have a role.');
30
+ return /*#__PURE__*/ (0, $8Snfj$react).createElement("div", {
31
+ ...(0, $8Snfj$filterDOMProps)(otherProps, {
32
+ labelable: !!role
33
+ }),
34
+ ...styleProps,
35
+ role: role,
36
+ ref: domRef,
37
+ className: (0, $8Snfj$classNames)((0, ($parcel$interopDefault($8Snfj$well_vars_cssmodulejs))), 'spectrum-Well', styleProps.className)
38
+ }, children);
39
+ }
40
+ /**
41
+ * A Well is a content container that displays non-editable content separate from other content on the screen.
42
+ * Often this is used to display preformatted text, such as code/markup examples on a documentation page.
43
+ */ const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $8Snfj$forwardRef)($126c538221395de1$var$Well);
44
+
45
+
46
+ export {$126c538221395de1$export$d89c679ee2f73242 as Well};
47
+ //# sourceMappingURL=Well.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AASD,SAAS,2BAAK,KAAwB,EAAE,GAA2B;IACjE,IAAI,YACF,QAAQ,QACR,IAAI,EACJ,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IAEjC,IAAI,CAAC,QAAS,CAAA,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,kBAAkB,AAAD,GAC1D,QAAQ,IAAI,CAAC;IAGf,qBACE,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAa,EAAE,YAAY;YAAC,WAAW,CAAC,CAAC;QAAI,EAAE;QAClD,GAAG,UAAU;QACd,MAAM;QACN,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,sDAAK,GACL,iBACA,WAAW,SAAS;OAErB;AAGP;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/well/src/Well.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, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumWellProps} from '@react-types/well';\nimport styles from '@adobe/spectrum-css-temp/components/well/vars.css';\n\nfunction Well(props: SpectrumWellProps, ref: DOMRef<HTMLDivElement>) {\n let {\n children,\n role,\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n if (!role && (props['aria-label'] || props['aria-labelledby'])) {\n console.warn('A labelled Well must have a role.');\n }\n\n return (\n <div\n {...filterDOMProps(otherProps, {labelable: !!role})}\n {...styleProps}\n role={role}\n ref={domRef}\n className={classNames(\n styles,\n 'spectrum-Well',\n styleProps.className\n )}>\n {children}\n </div>\n );\n}\n\n/**\n * A Well is a content container that displays non-editable content separate from other content on the screen.\n * Often this is used to display preformatted text, such as code/markup examples on a documentation page.\n */\nconst _Well = forwardRef(Well);\nexport {_Well as Well};\n"],"names":[],"version":3,"file":"Well.module.js.map"}
@@ -0,0 +1,18 @@
1
+ import {Well as $126c538221395de1$export$d89c679ee2f73242} from "./Well.mjs";
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
+ */ /// <reference types="css-module-types" />
14
+
15
+
16
+
17
+ export {$126c538221395de1$export$d89c679ee2f73242 as Well};
18
+ //# sourceMappingURL=module.js.map
package/dist/main.js ADDED
@@ -0,0 +1,23 @@
1
+ var $fb0fd853f763d005$exports = require("./Well.main.js");
2
+
3
+
4
+ function $parcel$export(e, n, v, s) {
5
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
+ }
7
+
8
+ $parcel$export(module.exports, "Well", () => $fb0fd853f763d005$exports.Well);
9
+ /*
10
+ * Copyright 2020 Adobe. All rights reserved.
11
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License. You may obtain a copy
13
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software distributed under
16
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
17
+ * OF ANY KIND, either express or implied. See the License for the specific language
18
+ * governing permissions and limitations under the License.
19
+ */ /// <reference types="css-module-types" />
20
+
21
+
22
+
23
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C","sources":["packages/@react-spectrum/well/src/index.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/// <reference types=\"css-module-types\" />\nexport {Well} from './Well';\nexport type {SpectrumWellProps} from '@react-types/well';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js ADDED
@@ -0,0 +1,18 @@
1
+ import {Well as $126c538221395de1$export$d89c679ee2f73242} from "./Well.module.js";
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
+ */ /// <reference types="css-module-types" />
14
+
15
+
16
+
17
+ export {$126c538221395de1$export$d89c679ee2f73242 as Well};
18
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C","sources":["packages/@react-spectrum/well/src/index.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/// <reference types=\"css-module-types\" />\nexport {Well} from './Well';\nexport type {SpectrumWellProps} from '@react-types/well';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { SpectrumWellProps } from "@react-types/well";
3
+ import { DOMRefValue } from "@react-types/shared";
4
+ /**
5
+ * A Well is a content container that displays non-editable content separate from other content on the screen.
6
+ * Often this is used to display preformatted text, such as code/markup examples on a documentation page.
7
+ */
8
+ export const Well: React.ForwardRefExoticComponent<SpectrumWellProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
9
+ export type { SpectrumWellProps } from '@react-types/well';
10
+
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;AAgDA;;;GAGG;AACH,OAAA,MAAM,2GAAwB,CAAC;ACvC/B,YAAY,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC","sources":["packages/@react-spectrum/well/src/packages/@react-spectrum/well/src/Well.tsx","packages/@react-spectrum/well/src/packages/@react-spectrum/well/src/index.ts","packages/@react-spectrum/well/src/index.ts"],"sourcesContent":[null,null,"/*\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/// <reference types=\"css-module-types\" />\nexport {Well} from './Well';\nexport type {SpectrumWellProps} from '@react-types/well';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1,93 @@
1
+ .SWvLfG_i18nFontFamily {
2
+ font-synthesis: weight;
3
+ font-family: adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
4
+ }
5
+
6
+ .SWvLfG_i18nFontFamily:lang(ar) {
7
+ font-family: myriad-arabic, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
8
+ }
9
+
10
+ .SWvLfG_i18nFontFamily:lang(he) {
11
+ font-family: myriad-hebrew, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
12
+ }
13
+
14
+ .SWvLfG_i18nFontFamily:lang(zh) {
15
+ font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
16
+ }
17
+
18
+ .SWvLfG_i18nFontFamily:lang(zh-Hans) {
19
+ font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
20
+ }
21
+
22
+ .SWvLfG_i18nFontFamily:lang(zh-Hant) {
23
+ font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
24
+ }
25
+
26
+ .SWvLfG_i18nFontFamily:lang(zh-SG), .SWvLfG_i18nFontFamily:lang(zh-CN) {
27
+ font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
28
+ }
29
+
30
+ .SWvLfG_i18nFontFamily:lang(ko) {
31
+ font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
32
+ }
33
+
34
+ .SWvLfG_i18nFontFamily:lang(ja) {
35
+ font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
36
+ }
37
+
38
+ .SWvLfG_spectrum-FocusRing-ring {
39
+ --spectrum-focus-ring-border-radius: var(--spectrum-textfield-border-radius, var(--spectrum-alias-border-radius-regular));
40
+ --spectrum-focus-ring-gap: var(--spectrum-alias-input-focusring-gap);
41
+ --spectrum-focus-ring-size: var(--spectrum-alias-input-focusring-size);
42
+ --spectrum-focus-ring-border-size: 0px;
43
+ --spectrum-focus-ring-color: var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
44
+ }
45
+
46
+ .SWvLfG_spectrum-FocusRing-ring:after {
47
+ border-radius: calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));
48
+ content: "";
49
+ margin: calc(-1 * var(--spectrum-focus-ring-border-size));
50
+ pointer-events: none;
51
+ transition: box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-out, margin var(--spectrum-global-animation-duration-100, .13s) ease-out;
52
+ display: block;
53
+ position: absolute;
54
+ inset: 0;
55
+ }
56
+
57
+ .SWvLfG_spectrum-FocusRing.SWvLfG_focus-ring:after {
58
+ margin: calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size));
59
+ box-shadow: 0 0 0 var(--spectrum-focus-ring-size) var(--spectrum-focus-ring-color);
60
+ }
61
+
62
+ .SWvLfG_spectrum-FocusRing--quiet:after {
63
+ border-radius: 0;
64
+ }
65
+
66
+ .SWvLfG_spectrum-FocusRing--quiet.SWvLfG_focus-ring:after {
67
+ margin: 0 0 calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size)) 0;
68
+ box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
69
+ }
70
+
71
+ @media (forced-colors: active) {
72
+ .SWvLfG_spectrum-FocusRing, .SWvLfG_spectrum-FocusRing-ring, .SWvLfG_spectrum-FocusRing--quiet {
73
+ --spectrum-high-contrast-focus-ring-color: Highlight;
74
+ }
75
+
76
+ :is(.SWvLfG_spectrum-FocusRing, .SWvLfG_spectrum-FocusRing-ring, .SWvLfG_spectrum-FocusRing--quiet):after {
77
+ forced-color-adjust: none;
78
+ }
79
+ }
80
+
81
+ .SWvLfG_spectrum-Well {
82
+ text-align: start;
83
+ min-inline-size: var(--spectrum-global-dimension-size-2000);
84
+ padding: var(--spectrum-global-dimension-size-200);
85
+ margin-top: var(--spectrum-global-dimension-size-50);
86
+ border-width: var(--spectrum-alias-border-size-thin, var(--spectrum-global-dimension-static-size-10));
87
+ border-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
88
+ background-color: var(--spectrum-well-background-color);
89
+ border-style: solid;
90
+ border-color: var(--spectrum-well-border-color);
91
+ display: block;
92
+ }
93
+ /*# sourceMappingURL=vars.f22d6188.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ","sources":["packages/@adobe/spectrum-css-temp/components/well/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@import './skin.css';\n"],"names":[],"version":3,"file":"vars.f22d6188.css.map"}
@@ -0,0 +1,26 @@
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", () => $b516e4acb09598d3$export$f39a09f249340e2a, (v) => $b516e4acb09598d3$export$f39a09f249340e2a = v);
7
+ $parcel$export(module.exports, "i18nFontFamily", () => $b516e4acb09598d3$export$8c4ee2c50c22c514, (v) => $b516e4acb09598d3$export$8c4ee2c50c22c514 = v);
8
+ $parcel$export(module.exports, "spectrum-FocusRing-ring", () => $b516e4acb09598d3$export$4109102f950813a6, (v) => $b516e4acb09598d3$export$4109102f950813a6 = v);
9
+ $parcel$export(module.exports, "spectrum-FocusRing", () => $b516e4acb09598d3$export$24c7f46a6e3605dd, (v) => $b516e4acb09598d3$export$24c7f46a6e3605dd = v);
10
+ $parcel$export(module.exports, "spectrum-FocusRing--quiet", () => $b516e4acb09598d3$export$2927016961429360, (v) => $b516e4acb09598d3$export$2927016961429360 = v);
11
+ $parcel$export(module.exports, "spectrum-Well", () => $b516e4acb09598d3$export$98e76d3873e01aa9, (v) => $b516e4acb09598d3$export$98e76d3873e01aa9 = v);
12
+ var $b516e4acb09598d3$export$f39a09f249340e2a;
13
+ var $b516e4acb09598d3$export$8c4ee2c50c22c514;
14
+ var $b516e4acb09598d3$export$4109102f950813a6;
15
+ var $b516e4acb09598d3$export$24c7f46a6e3605dd;
16
+ var $b516e4acb09598d3$export$2927016961429360;
17
+ var $b516e4acb09598d3$export$98e76d3873e01aa9;
18
+ $b516e4acb09598d3$export$f39a09f249340e2a = `SWvLfG_focus-ring`;
19
+ $b516e4acb09598d3$export$8c4ee2c50c22c514 = `SWvLfG_i18nFontFamily`;
20
+ $b516e4acb09598d3$export$4109102f950813a6 = `SWvLfG_spectrum-FocusRing-ring`;
21
+ $b516e4acb09598d3$export$24c7f46a6e3605dd = `SWvLfG_spectrum-FocusRing ${$b516e4acb09598d3$export$4109102f950813a6}`;
22
+ $b516e4acb09598d3$export$2927016961429360 = `SWvLfG_spectrum-FocusRing--quiet`;
23
+ $b516e4acb09598d3$export$98e76d3873e01aa9 = `SWvLfG_spectrum-Well`;
24
+
25
+
26
+ //# sourceMappingURL=well_vars_css.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AALA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAkC,CAAC,oBAAoB,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/well/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@import './skin.css';\n"],"names":[],"version":3,"file":"well_vars_css.main.js.map"}
@@ -0,0 +1,28 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $f53ecf77408821c3$exports = {};
6
+
7
+ $parcel$export($f53ecf77408821c3$exports, "focus-ring", () => $f53ecf77408821c3$export$f39a09f249340e2a, (v) => $f53ecf77408821c3$export$f39a09f249340e2a = v);
8
+ $parcel$export($f53ecf77408821c3$exports, "i18nFontFamily", () => $f53ecf77408821c3$export$8c4ee2c50c22c514, (v) => $f53ecf77408821c3$export$8c4ee2c50c22c514 = v);
9
+ $parcel$export($f53ecf77408821c3$exports, "spectrum-FocusRing-ring", () => $f53ecf77408821c3$export$4109102f950813a6, (v) => $f53ecf77408821c3$export$4109102f950813a6 = v);
10
+ $parcel$export($f53ecf77408821c3$exports, "spectrum-FocusRing", () => $f53ecf77408821c3$export$24c7f46a6e3605dd, (v) => $f53ecf77408821c3$export$24c7f46a6e3605dd = v);
11
+ $parcel$export($f53ecf77408821c3$exports, "spectrum-FocusRing--quiet", () => $f53ecf77408821c3$export$2927016961429360, (v) => $f53ecf77408821c3$export$2927016961429360 = v);
12
+ $parcel$export($f53ecf77408821c3$exports, "spectrum-Well", () => $f53ecf77408821c3$export$98e76d3873e01aa9, (v) => $f53ecf77408821c3$export$98e76d3873e01aa9 = v);
13
+ var $f53ecf77408821c3$export$f39a09f249340e2a;
14
+ var $f53ecf77408821c3$export$8c4ee2c50c22c514;
15
+ var $f53ecf77408821c3$export$4109102f950813a6;
16
+ var $f53ecf77408821c3$export$24c7f46a6e3605dd;
17
+ var $f53ecf77408821c3$export$2927016961429360;
18
+ var $f53ecf77408821c3$export$98e76d3873e01aa9;
19
+ $f53ecf77408821c3$export$f39a09f249340e2a = `SWvLfG_focus-ring`;
20
+ $f53ecf77408821c3$export$8c4ee2c50c22c514 = `SWvLfG_i18nFontFamily`;
21
+ $f53ecf77408821c3$export$4109102f950813a6 = `SWvLfG_spectrum-FocusRing-ring`;
22
+ $f53ecf77408821c3$export$24c7f46a6e3605dd = `SWvLfG_spectrum-FocusRing ${$f53ecf77408821c3$export$4109102f950813a6}`;
23
+ $f53ecf77408821c3$export$2927016961429360 = `SWvLfG_spectrum-FocusRing--quiet`;
24
+ $f53ecf77408821c3$export$98e76d3873e01aa9 = `SWvLfG_spectrum-Well`;
25
+
26
+
27
+ export {$f53ecf77408821c3$exports as default};
28
+ //# sourceMappingURL=well_vars_css.module.js.map
@@ -0,0 +1,28 @@
1
+
2
+ function $parcel$export(e, n, v, s) {
3
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
+ }
5
+ var $f53ecf77408821c3$exports = {};
6
+
7
+ $parcel$export($f53ecf77408821c3$exports, "focus-ring", () => $f53ecf77408821c3$export$f39a09f249340e2a, (v) => $f53ecf77408821c3$export$f39a09f249340e2a = v);
8
+ $parcel$export($f53ecf77408821c3$exports, "i18nFontFamily", () => $f53ecf77408821c3$export$8c4ee2c50c22c514, (v) => $f53ecf77408821c3$export$8c4ee2c50c22c514 = v);
9
+ $parcel$export($f53ecf77408821c3$exports, "spectrum-FocusRing-ring", () => $f53ecf77408821c3$export$4109102f950813a6, (v) => $f53ecf77408821c3$export$4109102f950813a6 = v);
10
+ $parcel$export($f53ecf77408821c3$exports, "spectrum-FocusRing", () => $f53ecf77408821c3$export$24c7f46a6e3605dd, (v) => $f53ecf77408821c3$export$24c7f46a6e3605dd = v);
11
+ $parcel$export($f53ecf77408821c3$exports, "spectrum-FocusRing--quiet", () => $f53ecf77408821c3$export$2927016961429360, (v) => $f53ecf77408821c3$export$2927016961429360 = v);
12
+ $parcel$export($f53ecf77408821c3$exports, "spectrum-Well", () => $f53ecf77408821c3$export$98e76d3873e01aa9, (v) => $f53ecf77408821c3$export$98e76d3873e01aa9 = v);
13
+ var $f53ecf77408821c3$export$f39a09f249340e2a;
14
+ var $f53ecf77408821c3$export$8c4ee2c50c22c514;
15
+ var $f53ecf77408821c3$export$4109102f950813a6;
16
+ var $f53ecf77408821c3$export$24c7f46a6e3605dd;
17
+ var $f53ecf77408821c3$export$2927016961429360;
18
+ var $f53ecf77408821c3$export$98e76d3873e01aa9;
19
+ $f53ecf77408821c3$export$f39a09f249340e2a = `SWvLfG_focus-ring`;
20
+ $f53ecf77408821c3$export$8c4ee2c50c22c514 = `SWvLfG_i18nFontFamily`;
21
+ $f53ecf77408821c3$export$4109102f950813a6 = `SWvLfG_spectrum-FocusRing-ring`;
22
+ $f53ecf77408821c3$export$24c7f46a6e3605dd = `SWvLfG_spectrum-FocusRing ${$f53ecf77408821c3$export$4109102f950813a6}`;
23
+ $f53ecf77408821c3$export$2927016961429360 = `SWvLfG_spectrum-FocusRing--quiet`;
24
+ $f53ecf77408821c3$export$98e76d3873e01aa9 = `SWvLfG_spectrum-Well`;
25
+
26
+
27
+ export {$f53ecf77408821c3$exports as default};
28
+ //# sourceMappingURL=well_vars_css.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AALA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAkC,CAAC,oBAAoB,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/well/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@import './skin.css';\n"],"names":[],"version":3,"file":"well_vars_css.module.js.map"}
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@react-spectrum/well",
3
+ "version": "3.0.0-nightly-641446f65-240905",
4
+ "description": "Spectrum UI components in React",
5
+ "license": "Apache-2.0",
6
+ "main": "dist/main.js",
7
+ "module": "dist/module.js",
8
+ "exports": {
9
+ "types": "./dist/types.d.ts",
10
+ "import": "./dist/import.mjs",
11
+ "require": "./dist/main.js"
12
+ },
13
+ "types": "dist/types.d.ts",
14
+ "source": "src/index.ts",
15
+ "files": [
16
+ "dist",
17
+ "src"
18
+ ],
19
+ "sideEffects": [
20
+ "*.css"
21
+ ],
22
+ "targets": {
23
+ "main": {
24
+ "includeNodeModules": [
25
+ "@adobe/spectrum-css-temp"
26
+ ]
27
+ },
28
+ "module": {
29
+ "includeNodeModules": [
30
+ "@adobe/spectrum-css-temp"
31
+ ]
32
+ }
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/adobe/react-spectrum"
37
+ },
38
+ "dependencies": {
39
+ "@react-aria/utils": "^3.0.0-nightly-641446f65-240905",
40
+ "@react-spectrum/utils": "^3.0.0-nightly-641446f65-240905",
41
+ "@react-types/shared": "^3.0.0-nightly-641446f65-240905",
42
+ "@react-types/well": "^3.0.0-nightly-641446f65-240905",
43
+ "@swc/helpers": "^0.5.0"
44
+ },
45
+ "devDependencies": {
46
+ "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
47
+ },
48
+ "peerDependencies": {
49
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
50
+ },
51
+ "publishConfig": {
52
+ "access": "public"
53
+ },
54
+ "stableVersion": "3.4.16"
55
+ }
package/src/Well.tsx ADDED
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Copyright 2020 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+ import {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';
14
+ import {DOMRef} from '@react-types/shared';
15
+ import {filterDOMProps} from '@react-aria/utils';
16
+ import React, {forwardRef} from 'react';
17
+ import {SpectrumWellProps} from '@react-types/well';
18
+ import styles from '@adobe/spectrum-css-temp/components/well/vars.css';
19
+
20
+ function Well(props: SpectrumWellProps, ref: DOMRef<HTMLDivElement>) {
21
+ let {
22
+ children,
23
+ role,
24
+ ...otherProps
25
+ } = props;
26
+ let domRef = useDOMRef(ref);
27
+ let {styleProps} = useStyleProps(otherProps);
28
+
29
+ if (!role && (props['aria-label'] || props['aria-labelledby'])) {
30
+ console.warn('A labelled Well must have a role.');
31
+ }
32
+
33
+ return (
34
+ <div
35
+ {...filterDOMProps(otherProps, {labelable: !!role})}
36
+ {...styleProps}
37
+ role={role}
38
+ ref={domRef}
39
+ className={classNames(
40
+ styles,
41
+ 'spectrum-Well',
42
+ styleProps.className
43
+ )}>
44
+ {children}
45
+ </div>
46
+ );
47
+ }
48
+
49
+ /**
50
+ * A Well is a content container that displays non-editable content separate from other content on the screen.
51
+ * Often this is used to display preformatted text, such as code/markup examples on a documentation page.
52
+ */
53
+ const _Well = forwardRef(Well);
54
+ export {_Well as Well};
package/src/index.ts ADDED
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Copyright 2020 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+ /// <reference types="css-module-types" />
13
+ export {Well} from './Well';
14
+ export type {SpectrumWellProps} from '@react-types/well';