@react-spectrum/well 3.3.3 → 3.3.4

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/dist/main.js CHANGED
@@ -11,7 +11,28 @@ function $parcel$interopDefault(a) {
11
11
  }
12
12
 
13
13
  $parcel$export(module.exports, "Well", () => $fb0fd853f763d005$export$d89c679ee2f73242);
14
-
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
+ */ /// <reference types="css-module-types" />
25
+ /*
26
+ * Copyright 2020 Adobe. All rights reserved.
27
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
28
+ * you may not use this file except in compliance with the License. You may obtain a copy
29
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
30
+ *
31
+ * Unless required by applicable law or agreed to in writing, software distributed under
32
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
33
+ * OF ANY KIND, either express or implied. See the License for the specific language
34
+ * governing permissions and limitations under the License.
35
+ */
15
36
 
16
37
 
17
38
  var $b516e4acb09598d3$exports = {};
@@ -23,23 +44,23 @@ $b516e4acb09598d3$export$98e76d3873e01aa9 = "spectrum-Well_d48698";
23
44
 
24
45
  function $fb0fd853f763d005$var$Well(props, ref) {
25
46
  let { children: children , role: role , ...otherProps } = props;
26
- let domRef = $f5FMV$reactspectrumutils.useDOMRef(ref);
27
- let { styleProps: styleProps } = $f5FMV$reactspectrumutils.useStyleProps(otherProps);
28
- if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled Well must have a role.');
29
- return(/*#__PURE__*/ ($parcel$interopDefault($f5FMV$react)).createElement("div", {
30
- ...$f5FMV$reactariautils.filterDOMProps(otherProps, {
47
+ let domRef = (0, $f5FMV$reactspectrumutils.useDOMRef)(ref);
48
+ let { styleProps: styleProps } = (0, $f5FMV$reactspectrumutils.useStyleProps)(otherProps);
49
+ if (!role && (props["aria-label"] || props["aria-labelledby"])) console.warn("A labelled Well must have a role.");
50
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($f5FMV$react))).createElement("div", {
51
+ ...(0, $f5FMV$reactariautils.filterDOMProps)(otherProps, {
31
52
  labelable: !!role
32
53
  }),
33
54
  ...styleProps,
34
55
  role: role,
35
56
  ref: domRef,
36
- className: $f5FMV$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($b516e4acb09598d3$exports)), 'spectrum-Well', styleProps.className)
37
- }, children));
57
+ className: (0, $f5FMV$reactspectrumutils.classNames)((0, (/*@__PURE__*/$parcel$interopDefault($b516e4acb09598d3$exports))), "spectrum-Well", styleProps.className)
58
+ }, children);
38
59
  }
39
60
  /**
40
61
  * A Well is a content container that displays non-editable content separate from other content on the screen.
41
62
  * Often this is used to display preformatted text, such as code/markup examples on a documentation page.
42
- */ const $fb0fd853f763d005$export$d89c679ee2f73242 = /*#__PURE__*/ $f5FMV$react.forwardRef($fb0fd853f763d005$var$Well);
63
+ */ const $fb0fd853f763d005$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $f5FMV$react.forwardRef)($fb0fd853f763d005$var$Well);
43
64
 
44
65
 
45
66
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;AEAA,GAA+B;AAA/B,yCAA+B,GAAG,CAAsB;;;SDmB/C,0BAAI,CAAC,KAAwB,EAAE,GAA2B,EAAE,CAAC;IACpE,GAAG,CAAC,CAAC,WACH,QAAQ,SACR,IAAI,MACD,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,MAAM,GAAG,mCAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAE3C,EAAE,GAAG,IAAI,KAAK,KAAK,CAAC,CAAY,gBAAK,KAAK,CAAC,CAAiB,oBAC1D,OAAO,CAAC,IAAI,CAAC,CAAmC;IAGlD,MAAM,oEACH,CAAG;WACE,oCAAc,CAAC,UAAU,EAAE,CAAC;YAAA,SAAS,IAAI,IAAI;QAAA,CAAC;WAC9C,UAAU;QACd,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,MAAM;QACX,SAAS,EAAE,oCAAU,CACnB,gEAAM,EACN,CAAe,gBACf,UAAU,CAAC,SAAS;OAErB,QAAQ;AAGf,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,KAAK,CAAC,yCAAK,iBAAG,uBAAU,CAAC,0BAAI","sources":["packages/@react-spectrum/well/src/index.ts","packages/@react-spectrum/well/src/Well.tsx","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/// <reference types=\"css-module-types\" />\nexport {Well} from './Well';\nexport type {SpectrumWellProps} from '@react-types/well';\n","/*\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","/*\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":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;CAUC,GAED;;;;;;ACZA,IAAA;AAAA,4CAAkC;;;ADmBlC,SAAS,2BAAK,KAAwB,EAAE,GAA2B,EAAE;IACnE,IAAI,YACF,SAAQ,QACR,KAAI,EACJ,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,cAAC,WAAU,EAAC,GAAG,CAAA,GAAA,uCAAa,AAAD,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,oCAAc,AAAD,EAAE,YAAY;YAAC,WAAW,CAAC,CAAC;QAAI,EAAE;QAClD,GAAG,UAAU;QACd,MAAM;QACN,KAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,yDAAM,OAAD,GACL,iBACA,WAAW,SAAS;OAErB;AAGP;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,uBAAS,EAAE;;ADxCzB","sources":["packages/@react-spectrum/well/src/index.ts","packages/@react-spectrum/well/src/Well.tsx","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/// <reference types=\"css-module-types\" />\nexport {Well} from './Well';\nexport type {SpectrumWellProps} from '@react-types/well';\n","/*\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","/*\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":"main.js.map"}
package/dist/module.js CHANGED
@@ -9,7 +9,28 @@ function $parcel$interopDefault(a) {
9
9
  function $parcel$export(e, n, v, s) {
10
10
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
11
11
  }
12
-
12
+ /*
13
+ * Copyright 2020 Adobe. All rights reserved.
14
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
15
+ * you may not use this file except in compliance with the License. You may obtain a copy
16
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * Unless required by applicable law or agreed to in writing, software distributed under
19
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
20
+ * OF ANY KIND, either express or implied. See the License for the specific language
21
+ * governing permissions and limitations under the License.
22
+ */ /// <reference types="css-module-types" />
23
+ /*
24
+ * Copyright 2020 Adobe. All rights reserved.
25
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
26
+ * you may not use this file except in compliance with the License. You may obtain a copy
27
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
28
+ *
29
+ * Unless required by applicable law or agreed to in writing, software distributed under
30
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
31
+ * OF ANY KIND, either express or implied. See the License for the specific language
32
+ * governing permissions and limitations under the License.
33
+ */
13
34
 
14
35
 
15
36
  var $f53ecf77408821c3$exports = {};
@@ -21,23 +42,23 @@ $f53ecf77408821c3$export$98e76d3873e01aa9 = "spectrum-Well_d48698";
21
42
 
22
43
  function $126c538221395de1$var$Well(props, ref) {
23
44
  let { children: children , role: role , ...otherProps } = props;
24
- let domRef = $2uC0Z$useDOMRef(ref);
25
- let { styleProps: styleProps } = $2uC0Z$useStyleProps(otherProps);
26
- if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled Well must have a role.');
27
- return(/*#__PURE__*/ $2uC0Z$react.createElement("div", {
28
- ...$2uC0Z$filterDOMProps(otherProps, {
45
+ let domRef = (0, $2uC0Z$useDOMRef)(ref);
46
+ let { styleProps: styleProps } = (0, $2uC0Z$useStyleProps)(otherProps);
47
+ if (!role && (props["aria-label"] || props["aria-labelledby"])) console.warn("A labelled Well must have a role.");
48
+ return /*#__PURE__*/ (0, $2uC0Z$react).createElement("div", {
49
+ ...(0, $2uC0Z$filterDOMProps)(otherProps, {
29
50
  labelable: !!role
30
51
  }),
31
52
  ...styleProps,
32
53
  role: role,
33
54
  ref: domRef,
34
- className: $2uC0Z$classNames((/*@__PURE__*/$parcel$interopDefault($f53ecf77408821c3$exports)), 'spectrum-Well', styleProps.className)
35
- }, children));
55
+ className: (0, $2uC0Z$classNames)((0, (/*@__PURE__*/$parcel$interopDefault($f53ecf77408821c3$exports))), "spectrum-Well", styleProps.className)
56
+ }, children);
36
57
  }
37
58
  /**
38
59
  * A Well is a content container that displays non-editable content separate from other content on the screen.
39
60
  * Often this is used to display preformatted text, such as code/markup examples on a documentation page.
40
- */ const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ $2uC0Z$forwardRef($126c538221395de1$var$Well);
61
+ */ const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $2uC0Z$forwardRef)($126c538221395de1$var$Well);
41
62
 
42
63
 
43
64
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;AEAA,GAA+B;AAA/B,yCAA+B,GAAG,CAAsB;;;SDmB/C,0BAAI,CAAC,KAAwB,EAAE,GAA2B,EAAE,CAAC;IACpE,GAAG,CAAC,CAAC,WACH,QAAQ,SACR,IAAI,MACD,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,MAAM,GAAG,gBAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,UAAU;IAE3C,EAAE,GAAG,IAAI,KAAK,KAAK,CAAC,CAAY,gBAAK,KAAK,CAAC,CAAiB,oBAC1D,OAAO,CAAC,IAAI,CAAC,CAAmC;IAGlD,MAAM,0CACH,CAAG;WACE,qBAAc,CAAC,UAAU,EAAE,CAAC;YAAA,SAAS,IAAI,IAAI;QAAA,CAAC;WAC9C,UAAU;QACd,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,MAAM;QACX,SAAS,EAAE,iBAAU,CACnB,gEAAM,EACN,CAAe,gBACf,UAAU,CAAC,SAAS;OAErB,QAAQ;AAGf,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,KAAK,CAAC,yCAAK,iBAAG,iBAAU,CAAC,0BAAI","sources":["packages/@react-spectrum/well/src/index.ts","packages/@react-spectrum/well/src/Well.tsx","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/// <reference types=\"css-module-types\" />\nexport {Well} from './Well';\nexport type {SpectrumWellProps} from '@react-types/well';\n","/*\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","/*\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":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;CAUC,GAED;;;;;;ACZA,IAAA;AAAA,4CAAkC;;;ADmBlC,SAAS,2BAAK,KAAwB,EAAE,GAA2B,EAAE;IACnE,IAAI,YACF,SAAQ,QACR,KAAI,EACJ,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,cAAC,WAAU,EAAC,GAAG,CAAA,GAAA,oBAAa,AAAD,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,qBAAc,AAAD,EAAE,YAAY;YAAC,WAAW,CAAC,CAAC;QAAI,EAAE;QAClD,GAAG,UAAU;QACd,MAAM;QACN,KAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,yDAAM,OAAD,GACL,iBACA,WAAW,SAAS;OAErB;AAGP;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,iBAAS,EAAE;;ADxCzB","sources":["packages/@react-spectrum/well/src/index.ts","packages/@react-spectrum/well/src/Well.tsx","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/// <reference types=\"css-module-types\" />\nexport {Well} from './Well';\nexport type {SpectrumWellProps} from '@react-types/well';\n","/*\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","/*\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":"module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/well",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -31,11 +31,11 @@
31
31
  "url": "https://github.com/adobe/react-spectrum"
32
32
  },
33
33
  "dependencies": {
34
- "@babel/runtime": "^7.6.2",
35
- "@react-aria/utils": "^3.14.1",
36
- "@react-spectrum/utils": "^3.8.0",
34
+ "@react-aria/utils": "^3.14.2",
35
+ "@react-spectrum/utils": "^3.8.1",
37
36
  "@react-types/shared": "^3.16.0",
38
- "@react-types/well": "^3.2.5"
37
+ "@react-types/well": "^3.2.5",
38
+ "@swc/helpers": "^0.4.14"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "2954307ddbefe149241685440c81f80ece6b2c83"
49
+ "gitHead": "5480d76bd815e239366f92852c76b6831ad2a4fd"
50
50
  }