@react-spectrum/well 3.4.30 → 3.5.0

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/import.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {Well as $126c538221395de1$export$d89c679ee2f73242} from "./Well.mjs";
1
+ import {Well as $1021e51d86eab927$re_export$Well} from "@adobe/react-spectrum/Well";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {Well as $126c538221395de1$export$d89c679ee2f73242} from "./Well.mjs";
14
14
 
15
15
 
16
16
 
17
- export {$126c538221395de1$export$d89c679ee2f73242 as Well};
17
+ export {$1021e51d86eab927$re_export$Well as Well};
18
18
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,11 +1,11 @@
1
- var $fb0fd853f763d005$exports = require("./Well.main.js");
1
+ var $7Cxvn$adobereactspectrumWell = require("@adobe/react-spectrum/Well");
2
2
 
3
3
 
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
7
 
8
- $parcel$export(module.exports, "Well", () => $fb0fd853f763d005$exports.Well);
8
+ $parcel$export(module.exports, "Well", function () { return $7Cxvn$adobereactspectrumWell.Well; });
9
9
  /*
10
10
  * Copyright 2020 Adobe. All rights reserved.
11
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
package/dist/main.js.map CHANGED
@@ -1 +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"}
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 '@adobe/react-spectrum/Well';\n\nexport type {SpectrumWellProps} from '@adobe/react-spectrum/Well';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,4 +1,4 @@
1
- import {Well as $126c538221395de1$export$d89c679ee2f73242} from "./Well.module.js";
1
+ import {Well as $1021e51d86eab927$re_export$Well} from "@adobe/react-spectrum/Well";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {Well as $126c538221395de1$export$d89c679ee2f73242} from "./Well.module.j
14
14
 
15
15
 
16
16
 
17
- export {$126c538221395de1$export$d89c679ee2f73242 as Well};
17
+ export {$1021e51d86eab927$re_export$Well as Well};
18
18
  //# sourceMappingURL=module.js.map
@@ -1 +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"}
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 '@adobe/react-spectrum/Well';\n\nexport type {SpectrumWellProps} from '@adobe/react-spectrum/Well';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,2 @@
1
+ export { Well } from '@adobe/react-spectrum/Well';
2
+ export type { SpectrumWellProps } from '@adobe/react-spectrum/Well';
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@react-spectrum/well",
3
- "version": "3.4.30",
3
+ "version": "3.5.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
8
  "exports": {
9
- "source": "./src/index.ts",
10
- "types": [
11
- "./dist/types.d.ts",
12
- "./src/index.ts"
13
- ],
14
- "import": "./dist/import.mjs",
15
- "require": "./dist/main.js"
9
+ ".": {
10
+ "source": "./src/index.ts",
11
+ "types": "./dist/types/src/index.d.ts",
12
+ "import": "./dist/import.mjs",
13
+ "require": "./dist/main.js"
14
+ },
15
+ "./package.json": "./package.json"
16
16
  },
17
- "types": "dist/types.d.ts",
17
+ "types": "dist/types/src/index.d.ts",
18
18
  "source": "src/index.ts",
19
19
  "files": [
20
20
  "dist",
@@ -24,31 +24,16 @@
24
24
  "*.css"
25
25
  ],
26
26
  "targets": {
27
- "main": {
28
- "includeNodeModules": [
29
- "@adobe/spectrum-css-temp"
30
- ]
31
- },
32
- "module": {
33
- "includeNodeModules": [
34
- "@adobe/spectrum-css-temp"
35
- ]
36
- }
27
+ "types": false
37
28
  },
38
29
  "repository": {
39
30
  "type": "git",
40
31
  "url": "https://github.com/adobe/react-spectrum"
41
32
  },
42
33
  "dependencies": {
43
- "@react-aria/utils": "^3.33.1",
44
- "@react-spectrum/utils": "^3.12.12",
45
- "@react-types/shared": "^3.33.1",
46
- "@react-types/well": "^3.3.23",
34
+ "@adobe/react-spectrum": "3.47.0",
47
35
  "@swc/helpers": "^0.5.0"
48
36
  },
49
- "devDependencies": {
50
- "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
51
- },
52
37
  "peerDependencies": {
53
38
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
54
39
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
@@ -56,5 +41,5 @@
56
41
  "publishConfig": {
57
42
  "access": "public"
58
43
  },
59
- "gitHead": "8df187370053aa35f553cb388ad670f65e1ab371"
44
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
60
45
  }
package/src/index.ts CHANGED
@@ -10,5 +10,6 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
  /// <reference types="css-module-types" />
13
- export {Well} from './Well';
14
- export type {SpectrumWellProps} from '@react-types/well';
13
+ export {Well} from '@adobe/react-spectrum/Well';
14
+
15
+ export type {SpectrumWellProps} from '@adobe/react-spectrum/Well';
package/dist/Well.main.js DELETED
@@ -1,48 +0,0 @@
1
- require("./well.91f8308f.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
- const $fb0fd853f763d005$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $44ml7$react.forwardRef)(function 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']) && process.env.NODE_ENV !== 'production') 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
-
48
- //# sourceMappingURL=Well.main.js.map
@@ -1 +0,0 @@
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 DELETED
@@ -1,43 +0,0 @@
1
- import "./well.91f8308f.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
- const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $8Snfj$forwardRef)(function 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']) && process.env.NODE_ENV !== 'production') 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
-
42
- export {$126c538221395de1$export$d89c679ee2f73242 as Well};
43
- //# sourceMappingURL=Well.module.js.map
@@ -1,43 +0,0 @@
1
- import "./well.91f8308f.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
- const $126c538221395de1$export$d89c679ee2f73242 = /*#__PURE__*/ (0, $8Snfj$forwardRef)(function 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']) && process.env.NODE_ENV !== 'production') 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
-
42
- export {$126c538221395de1$export$d89c679ee2f73242 as Well};
43
- //# sourceMappingURL=Well.module.js.map
@@ -1 +0,0 @@
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"}
package/dist/types.d.ts DELETED
@@ -1,11 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,93 +0,0 @@
1
- .LHIA7q_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
- .LHIA7q_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
- .LHIA7q_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
- .LHIA7q_i18nFontFamily:lang(zh) {
15
- font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
16
- }
17
-
18
- .LHIA7q_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
- .LHIA7q_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
- .LHIA7q_i18nFontFamily:lang(zh-SG), .LHIA7q_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
- .LHIA7q_i18nFontFamily:lang(ko) {
31
- font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
32
- }
33
-
34
- .LHIA7q_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
- .LHIA7q_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
- .LHIA7q_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
- .LHIA7q_spectrum-FocusRing.LHIA7q_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
- .LHIA7q_spectrum-FocusRing--quiet:after {
63
- border-radius: 0;
64
- }
65
-
66
- .LHIA7q_spectrum-FocusRing--quiet.LHIA7q_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
- .LHIA7q_spectrum-FocusRing, .LHIA7q_spectrum-FocusRing-ring, .LHIA7q_spectrum-FocusRing--quiet {
73
- --spectrum-high-contrast-focus-ring-color: Highlight;
74
- }
75
-
76
- :is(.LHIA7q_spectrum-FocusRing, .LHIA7q_spectrum-FocusRing-ring, .LHIA7q_spectrum-FocusRing--quiet):after {
77
- forced-color-adjust: none;
78
- }
79
- }
80
-
81
- .LHIA7q_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=well.91f8308f.css.map */
@@ -1 +0,0 @@
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"}
@@ -1,26 +0,0 @@
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 = `LHIA7q_focus-ring`;
19
- $b516e4acb09598d3$export$8c4ee2c50c22c514 = `LHIA7q_i18nFontFamily`;
20
- $b516e4acb09598d3$export$4109102f950813a6 = `LHIA7q_spectrum-FocusRing-ring`;
21
- $b516e4acb09598d3$export$24c7f46a6e3605dd = `LHIA7q_spectrum-FocusRing ${$b516e4acb09598d3$export$4109102f950813a6}`;
22
- $b516e4acb09598d3$export$2927016961429360 = `LHIA7q_spectrum-FocusRing--quiet`;
23
- $b516e4acb09598d3$export$98e76d3873e01aa9 = `LHIA7q_spectrum-Well`;
24
-
25
-
26
- //# sourceMappingURL=well_vars_css.main.js.map
@@ -1 +0,0 @@
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,2CAA2C;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"}
@@ -1,28 +0,0 @@
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 = `LHIA7q_focus-ring`;
20
- $f53ecf77408821c3$export$8c4ee2c50c22c514 = `LHIA7q_i18nFontFamily`;
21
- $f53ecf77408821c3$export$4109102f950813a6 = `LHIA7q_spectrum-FocusRing-ring`;
22
- $f53ecf77408821c3$export$24c7f46a6e3605dd = `LHIA7q_spectrum-FocusRing ${$f53ecf77408821c3$export$4109102f950813a6}`;
23
- $f53ecf77408821c3$export$2927016961429360 = `LHIA7q_spectrum-FocusRing--quiet`;
24
- $f53ecf77408821c3$export$98e76d3873e01aa9 = `LHIA7q_spectrum-Well`;
25
-
26
-
27
- export {$f53ecf77408821c3$exports as default};
28
- //# sourceMappingURL=well_vars_css.module.js.map
@@ -1,28 +0,0 @@
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 = `LHIA7q_focus-ring`;
20
- $f53ecf77408821c3$export$8c4ee2c50c22c514 = `LHIA7q_i18nFontFamily`;
21
- $f53ecf77408821c3$export$4109102f950813a6 = `LHIA7q_spectrum-FocusRing-ring`;
22
- $f53ecf77408821c3$export$24c7f46a6e3605dd = `LHIA7q_spectrum-FocusRing ${$f53ecf77408821c3$export$4109102f950813a6}`;
23
- $f53ecf77408821c3$export$2927016961429360 = `LHIA7q_spectrum-FocusRing--quiet`;
24
- $f53ecf77408821c3$export$98e76d3873e01aa9 = `LHIA7q_spectrum-Well`;
25
-
26
-
27
- export {$f53ecf77408821c3$exports as default};
28
- //# sourceMappingURL=well_vars_css.module.js.map
@@ -1 +0,0 @@
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,2CAA2C;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/src/Well.tsx DELETED
@@ -1,51 +0,0 @@
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
- /**
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>) {
25
- let {
26
- children,
27
- role,
28
- ...otherProps
29
- } = props;
30
- let domRef = useDOMRef(ref);
31
- let {styleProps} = useStyleProps(otherProps);
32
-
33
- if (!role && (props['aria-label'] || props['aria-labelledby']) && process.env.NODE_ENV !== 'production') {
34
- console.warn('A labelled Well must have a role.');
35
- }
36
-
37
- return (
38
- <div
39
- {...filterDOMProps(otherProps, {labelable: !!role})}
40
- {...styleProps}
41
- role={role}
42
- ref={domRef}
43
- className={classNames(
44
- styles,
45
- 'spectrum-Well',
46
- styleProps.className
47
- )}>
48
- {children}
49
- </div>
50
- );
51
- });