@react-spectrum/well 3.4.21 → 3.4.22
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/Well.main.js +2 -2
- package/dist/Well.main.js.map +1 -1
- package/dist/Well.mjs +2 -2
- package/dist/Well.module.js +2 -2
- package/dist/Well.module.js.map +1 -1
- package/dist/{vars.61a672da.css → well.91f8308f.css} +1 -1
- package/dist/{vars.61a672da.css.map → well.91f8308f.css.map} +1 -1
- package/package.json +6 -6
- package/src/Well.tsx +1 -1
package/dist/Well.main.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require("./
|
1
|
+
require("./well.91f8308f.css");
|
2
2
|
var $b516e4acb09598d3$exports = require("./well_vars_css.main.js");
|
3
3
|
var $44ml7$reactspectrumutils = require("@react-spectrum/utils");
|
4
4
|
var $44ml7$reactariautils = require("@react-aria/utils");
|
@@ -32,7 +32,7 @@ const $fb0fd853f763d005$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $44ml7$react
|
|
32
32
|
let { children: children, role: role, ...otherProps } = props;
|
33
33
|
let domRef = (0, $44ml7$reactspectrumutils.useDOMRef)(ref);
|
34
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.');
|
35
|
+
if (!role && (props['aria-label'] || props['aria-labelledby']) && process.env.NODE_ENV !== 'production') console.warn('A labelled Well must have a role.');
|
36
36
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($44ml7$react))).createElement("div", {
|
37
37
|
...(0, $44ml7$reactariautils.filterDOMProps)(otherProps, {
|
38
38
|
labelable: !!role
|
package/dist/Well.main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAaM,MAAM,0DAAO,CAAA,GAAA,uBAAS,EAAE,SAAS,KAAK,KAAwB,EAAE,GAA2B;IAChG,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,
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAaM,MAAM,0DAAO,CAAA,GAAA,uBAAS,EAAE,SAAS,KAAK,KAAwB,EAAE,GAA2B;IAChG,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,KAAM,QAAQ,GAAG,CAAC,QAAQ,KAAK,cACzF,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","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\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 */\nexport const Well = forwardRef(function 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']) && process.env.NODE_ENV !== 'production') {\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"],"names":[],"version":3,"file":"Well.main.js.map"}
|
package/dist/Well.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import "./
|
1
|
+
import "./well.91f8308f.css";
|
2
2
|
import $8Snfj$well_vars_cssmodulejs from "./well_vars_css.mjs";
|
3
3
|
import {useDOMRef as $8Snfj$useDOMRef, useStyleProps as $8Snfj$useStyleProps, classNames as $8Snfj$classNames} from "@react-spectrum/utils";
|
4
4
|
import {filterDOMProps as $8Snfj$filterDOMProps} from "@react-aria/utils";
|
@@ -26,7 +26,7 @@ const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $8Snfj$forwa
|
|
26
26
|
let { children: children, role: role, ...otherProps } = props;
|
27
27
|
let domRef = (0, $8Snfj$useDOMRef)(ref);
|
28
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.');
|
29
|
+
if (!role && (props['aria-label'] || props['aria-labelledby']) && process.env.NODE_ENV !== 'production') console.warn('A labelled Well must have a role.');
|
30
30
|
return /*#__PURE__*/ (0, $8Snfj$react).createElement("div", {
|
31
31
|
...(0, $8Snfj$filterDOMProps)(otherProps, {
|
32
32
|
labelable: !!role
|
package/dist/Well.module.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import "./
|
1
|
+
import "./well.91f8308f.css";
|
2
2
|
import $8Snfj$well_vars_cssmodulejs from "./well_vars_css.module.js";
|
3
3
|
import {useDOMRef as $8Snfj$useDOMRef, useStyleProps as $8Snfj$useStyleProps, classNames as $8Snfj$classNames} from "@react-spectrum/utils";
|
4
4
|
import {filterDOMProps as $8Snfj$filterDOMProps} from "@react-aria/utils";
|
@@ -26,7 +26,7 @@ const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $8Snfj$forwa
|
|
26
26
|
let { children: children, role: role, ...otherProps } = props;
|
27
27
|
let domRef = (0, $8Snfj$useDOMRef)(ref);
|
28
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.');
|
29
|
+
if (!role && (props['aria-label'] || props['aria-labelledby']) && process.env.NODE_ENV !== 'production') console.warn('A labelled Well must have a role.');
|
30
30
|
return /*#__PURE__*/ (0, $8Snfj$react).createElement("div", {
|
31
31
|
...(0, $8Snfj$filterDOMProps)(otherProps, {
|
32
32
|
labelable: !!role
|
package/dist/Well.module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAaM,MAAM,0DAAO,CAAA,GAAA,iBAAS,EAAE,SAAS,KAAK,KAAwB,EAAE,GAA2B;IAChG,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,
|
1
|
+
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAaM,MAAM,0DAAO,CAAA,GAAA,iBAAS,EAAE,SAAS,KAAK,KAAwB,EAAE,GAA2B;IAChG,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,KAAM,QAAQ,GAAG,CAAC,QAAQ,KAAK,cACzF,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","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\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 */\nexport const Well = forwardRef(function 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']) && process.env.NODE_ENV !== 'production') {\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"],"names":[],"version":3,"file":"Well.module.js.map"}
|
@@ -1 +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":"
|
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":"well.91f8308f.css.map"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/well",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.22",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -36,10 +36,10 @@
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@react-aria/utils": "^3.28.
|
40
|
-
"@react-spectrum/utils": "^3.12.
|
41
|
-
"@react-types/shared": "^3.
|
42
|
-
"@react-types/well": "^3.3.
|
39
|
+
"@react-aria/utils": "^3.28.2",
|
40
|
+
"@react-spectrum/utils": "^3.12.4",
|
41
|
+
"@react-types/shared": "^3.29.0",
|
42
|
+
"@react-types/well": "^3.3.16",
|
43
43
|
"@swc/helpers": "^0.5.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
@@ -52,5 +52,5 @@
|
|
52
52
|
"publishConfig": {
|
53
53
|
"access": "public"
|
54
54
|
},
|
55
|
-
"gitHead": "
|
55
|
+
"gitHead": "9b66d270572f482948afee95622a85cdf68ed408"
|
56
56
|
}
|
package/src/Well.tsx
CHANGED
@@ -30,7 +30,7 @@ export const Well = forwardRef(function Well(props: SpectrumWellProps, ref: DOMR
|
|
30
30
|
let domRef = useDOMRef(ref);
|
31
31
|
let {styleProps} = useStyleProps(otherProps);
|
32
32
|
|
33
|
-
if (!role && (props['aria-label'] || props['aria-labelledby'])) {
|
33
|
+
if (!role && (props['aria-label'] || props['aria-labelledby']) && process.env.NODE_ENV !== 'production') {
|
34
34
|
console.warn('A labelled Well must have a role.');
|
35
35
|
}
|
36
36
|
|