@react-spectrum/well 3.4.18 → 3.4.20
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 -6
- package/dist/Well.main.js.map +1 -1
- package/dist/Well.mjs +2 -6
- package/dist/Well.module.js +2 -6
- package/dist/Well.module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -7
- package/src/Well.tsx +6 -9
package/dist/Well.main.js
CHANGED
@@ -28,7 +28,7 @@ $parcel$export(module.exports, "Well", () => $fb0fd853f763d005$export$d89c679ee2
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
|
31
|
+
const $fb0fd853f763d005$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $44ml7$react.forwardRef)(function Well(props, ref) {
|
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);
|
@@ -42,11 +42,7 @@ function $fb0fd853f763d005$var$Well(props, ref) {
|
|
42
42
|
ref: domRef,
|
43
43
|
className: (0, $44ml7$reactspectrumutils.classNames)((0, ($parcel$interopDefault($b516e4acb09598d3$exports))), 'spectrum-Well', styleProps.className)
|
44
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);
|
45
|
+
});
|
50
46
|
|
51
47
|
|
52
48
|
//# sourceMappingURL=Well.main.js.map
|
package/dist/Well.main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;
|
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,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","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'])) {\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
@@ -22,7 +22,7 @@ function $parcel$interopDefault(a) {
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
|
25
|
+
const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $8Snfj$forwardRef)(function Well(props, ref) {
|
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);
|
@@ -36,11 +36,7 @@ function $126c538221395de1$var$Well(props, ref) {
|
|
36
36
|
ref: domRef,
|
37
37
|
className: (0, $8Snfj$classNames)((0, ($parcel$interopDefault($8Snfj$well_vars_cssmodulejs))), 'spectrum-Well', styleProps.className)
|
38
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);
|
39
|
+
});
|
44
40
|
|
45
41
|
|
46
42
|
export {$126c538221395de1$export$d89c679ee2f73242 as Well};
|
package/dist/Well.module.js
CHANGED
@@ -22,7 +22,7 @@ function $parcel$interopDefault(a) {
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
|
25
|
+
const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $8Snfj$forwardRef)(function Well(props, ref) {
|
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);
|
@@ -36,11 +36,7 @@ function $126c538221395de1$var$Well(props, ref) {
|
|
36
36
|
ref: domRef,
|
37
37
|
className: (0, $8Snfj$classNames)((0, ($parcel$interopDefault($8Snfj$well_vars_cssmodulejs))), 'spectrum-Well', styleProps.className)
|
38
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);
|
39
|
+
});
|
44
40
|
|
45
41
|
|
46
42
|
export {$126c538221395de1$export$d89c679ee2f73242 as Well};
|
package/dist/Well.module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;
|
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,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","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'])) {\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"}
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;
|
1
|
+
{"mappings":";;;AAmBA;;;GAGG;AACH,OAAO,MAAM,2GA2BX,CAAC;ACrCH,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"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/well",
|
3
|
-
"version": "3.4.
|
3
|
+
"version": "3.4.20",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -36,20 +36,21 @@
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@react-aria/utils": "^3.
|
40
|
-
"@react-spectrum/utils": "^3.12.
|
41
|
-
"@react-types/shared": "^3.
|
42
|
-
"@react-types/well": "^3.3.
|
39
|
+
"@react-aria/utils": "^3.28.0",
|
40
|
+
"@react-spectrum/utils": "^3.12.2",
|
41
|
+
"@react-types/shared": "^3.28.0",
|
42
|
+
"@react-types/well": "^3.3.15",
|
43
43
|
"@swc/helpers": "^0.5.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
46
|
"@adobe/spectrum-css-temp": "3.0.0-alpha.1"
|
47
47
|
},
|
48
48
|
"peerDependencies": {
|
49
|
-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
49
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
50
|
+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
50
51
|
},
|
51
52
|
"publishConfig": {
|
52
53
|
"access": "public"
|
53
54
|
},
|
54
|
-
"gitHead": "
|
55
|
+
"gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726"
|
55
56
|
}
|
package/src/Well.tsx
CHANGED
@@ -17,7 +17,11 @@ import React, {forwardRef} from 'react';
|
|
17
17
|
import {SpectrumWellProps} from '@react-types/well';
|
18
18
|
import styles from '@adobe/spectrum-css-temp/components/well/vars.css';
|
19
19
|
|
20
|
-
|
20
|
+
/**
|
21
|
+
* A Well is a content container that displays non-editable content separate from other content on the screen.
|
22
|
+
* Often this is used to display preformatted text, such as code/markup examples on a documentation page.
|
23
|
+
*/
|
24
|
+
export const Well = forwardRef(function Well(props: SpectrumWellProps, ref: DOMRef<HTMLDivElement>) {
|
21
25
|
let {
|
22
26
|
children,
|
23
27
|
role,
|
@@ -44,11 +48,4 @@ function Well(props: SpectrumWellProps, ref: DOMRef<HTMLDivElement>) {
|
|
44
48
|
{children}
|
45
49
|
</div>
|
46
50
|
);
|
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};
|
51
|
+
});
|