@react-spectrum/view 3.6.25 → 3.7.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,7 +1,7 @@
1
- import {View as $b9606c0c41d55371$export$27a5bd065ad55220} from "./View.mjs";
2
- import {Content as $0a7c18a2ef74b280$export$7c6e2c02157bb7d2} from "./Content.mjs";
3
- import {Footer as $8d68cc89c1f9278e$export$a06f1c675e846f6f} from "./Footer.mjs";
4
- import {Header as $aedcc4886d2a392a$export$8b251419efc915eb} from "./Header.mjs";
1
+ import {View as $2c47f0e766dd194a$re_export$View} from "@adobe/react-spectrum/View";
2
+ import {Content as $2c47f0e766dd194a$re_export$Content} from "@adobe/react-spectrum/Content";
3
+ import {Footer as $2c47f0e766dd194a$re_export$Footer} from "@adobe/react-spectrum/Footer";
4
+ import {Header as $2c47f0e766dd194a$re_export$Header} from "@adobe/react-spectrum/Header";
5
5
 
6
6
  /*
7
7
  * Copyright 2020 Adobe. All rights reserved.
@@ -20,5 +20,5 @@ import {Header as $aedcc4886d2a392a$export$8b251419efc915eb} from "./Header.mjs"
20
20
 
21
21
 
22
22
 
23
- export {$b9606c0c41d55371$export$27a5bd065ad55220 as View, $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content, $8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer, $aedcc4886d2a392a$export$8b251419efc915eb as Header};
23
+ export {$2c47f0e766dd194a$re_export$View as View, $2c47f0e766dd194a$re_export$Content as Content, $2c47f0e766dd194a$re_export$Footer as Footer, $2c47f0e766dd194a$re_export$Header as Header};
24
24
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,17 +1,17 @@
1
- var $6c848be8e8bffe98$exports = require("./View.main.js");
2
- var $2d8ae89d4e4c1d41$exports = require("./Content.main.js");
3
- var $e266c0b33fd8525d$exports = require("./Footer.main.js");
4
- var $62d558b43ecd7a77$exports = require("./Header.main.js");
1
+ var $809XT$adobereactspectrumView = require("@adobe/react-spectrum/View");
2
+ var $809XT$adobereactspectrumContent = require("@adobe/react-spectrum/Content");
3
+ var $809XT$adobereactspectrumFooter = require("@adobe/react-spectrum/Footer");
4
+ var $809XT$adobereactspectrumHeader = require("@adobe/react-spectrum/Header");
5
5
 
6
6
 
7
7
  function $parcel$export(e, n, v, s) {
8
8
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
9
9
  }
10
10
 
11
- $parcel$export(module.exports, "View", () => $6c848be8e8bffe98$exports.View);
12
- $parcel$export(module.exports, "Content", () => $2d8ae89d4e4c1d41$exports.Content);
13
- $parcel$export(module.exports, "Footer", () => $e266c0b33fd8525d$exports.Footer);
14
- $parcel$export(module.exports, "Header", () => $62d558b43ecd7a77$exports.Header);
11
+ $parcel$export(module.exports, "View", function () { return $809XT$adobereactspectrumView.View; });
12
+ $parcel$export(module.exports, "Content", function () { return $809XT$adobereactspectrumContent.Content; });
13
+ $parcel$export(module.exports, "Footer", function () { return $809XT$adobereactspectrumFooter.Footer; });
14
+ $parcel$export(module.exports, "Header", function () { return $809XT$adobereactspectrumHeader.Header; });
15
15
  /*
16
16
  * Copyright 2020 Adobe. All rights reserved.
17
17
  * 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/view/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 {View} from './View';\nexport {Content} from './Content';\nexport {Footer} from './Footer';\nexport {Header} from './Header';\nexport type {ContentProps, FooterProps, HeaderProps, ViewProps} from '@react-types/view';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C","sources":["packages/@react-spectrum/view/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 {View} from '@adobe/react-spectrum/View';\n\nexport {Content} from '@adobe/react-spectrum/Content';\nexport {Footer} from '@adobe/react-spectrum/Footer';\nexport {Header} from '@adobe/react-spectrum/Header';\nexport type {ViewProps} from '@adobe/react-spectrum/View';\nexport type {ContentProps} from '@adobe/react-spectrum/Content';\nexport type {FooterProps} from '@adobe/react-spectrum/Footer';\nexport type {HeaderProps} from '@adobe/react-spectrum/Header';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,7 +1,7 @@
1
- import {View as $b9606c0c41d55371$export$27a5bd065ad55220} from "./View.module.js";
2
- import {Content as $0a7c18a2ef74b280$export$7c6e2c02157bb7d2} from "./Content.module.js";
3
- import {Footer as $8d68cc89c1f9278e$export$a06f1c675e846f6f} from "./Footer.module.js";
4
- import {Header as $aedcc4886d2a392a$export$8b251419efc915eb} from "./Header.module.js";
1
+ import {View as $2c47f0e766dd194a$re_export$View} from "@adobe/react-spectrum/View";
2
+ import {Content as $2c47f0e766dd194a$re_export$Content} from "@adobe/react-spectrum/Content";
3
+ import {Footer as $2c47f0e766dd194a$re_export$Footer} from "@adobe/react-spectrum/Footer";
4
+ import {Header as $2c47f0e766dd194a$re_export$Header} from "@adobe/react-spectrum/Header";
5
5
 
6
6
  /*
7
7
  * Copyright 2020 Adobe. All rights reserved.
@@ -20,5 +20,5 @@ import {Header as $aedcc4886d2a392a$export$8b251419efc915eb} from "./Header.modu
20
20
 
21
21
 
22
22
 
23
- export {$b9606c0c41d55371$export$27a5bd065ad55220 as View, $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content, $8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer, $aedcc4886d2a392a$export$8b251419efc915eb as Header};
23
+ export {$2c47f0e766dd194a$re_export$View as View, $2c47f0e766dd194a$re_export$Content as Content, $2c47f0e766dd194a$re_export$Footer as Footer, $2c47f0e766dd194a$re_export$Header as Header};
24
24
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C","sources":["packages/@react-spectrum/view/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 {View} from './View';\nexport {Content} from './Content';\nexport {Footer} from './Footer';\nexport {Header} from './Header';\nexport type {ContentProps, FooterProps, HeaderProps, ViewProps} from '@react-types/view';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C","sources":["packages/@react-spectrum/view/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 {View} from '@adobe/react-spectrum/View';\n\nexport {Content} from '@adobe/react-spectrum/Content';\nexport {Footer} from '@adobe/react-spectrum/Footer';\nexport {Header} from '@adobe/react-spectrum/Header';\nexport type {ViewProps} from '@adobe/react-spectrum/View';\nexport type {ContentProps} from '@adobe/react-spectrum/Content';\nexport type {FooterProps} from '@adobe/react-spectrum/Footer';\nexport type {HeaderProps} from '@adobe/react-spectrum/Header';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,8 @@
1
+ export { View } from '@adobe/react-spectrum/View';
2
+ export { Content } from '@adobe/react-spectrum/Content';
3
+ export { Footer } from '@adobe/react-spectrum/Footer';
4
+ export { Header } from '@adobe/react-spectrum/Header';
5
+ export type { ViewProps } from '@adobe/react-spectrum/View';
6
+ export type { ContentProps } from '@adobe/react-spectrum/Content';
7
+ export type { FooterProps } from '@adobe/react-spectrum/Footer';
8
+ export type { HeaderProps } from '@adobe/react-spectrum/Header';
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@react-spectrum/view",
3
- "version": "3.6.25",
3
+ "version": "3.7.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,38 +24,22 @@
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.0",
44
- "@react-spectrum/utils": "^3.12.11",
45
- "@react-types/shared": "^3.33.0",
46
- "@react-types/view": "^3.4.22",
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
- "@react-spectrum/provider": "^3.0.0",
54
38
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
55
39
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
56
40
  },
57
41
  "publishConfig": {
58
42
  "access": "public"
59
43
  },
60
- "gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
44
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
61
45
  }
package/src/index.ts CHANGED
@@ -10,8 +10,12 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
  /// <reference types="css-module-types" />
13
- export {View} from './View';
14
- export {Content} from './Content';
15
- export {Footer} from './Footer';
16
- export {Header} from './Header';
17
- export type {ContentProps, FooterProps, HeaderProps, ViewProps} from '@react-types/view';
13
+ export {View} from '@adobe/react-spectrum/View';
14
+
15
+ export {Content} from '@adobe/react-spectrum/Content';
16
+ export {Footer} from '@adobe/react-spectrum/Footer';
17
+ export {Header} from '@adobe/react-spectrum/Header';
18
+ export type {ViewProps} from '@adobe/react-spectrum/View';
19
+ export type {ContentProps} from '@adobe/react-spectrum/Content';
20
+ export type {FooterProps} from '@adobe/react-spectrum/Footer';
21
+ export type {HeaderProps} from '@adobe/react-spectrum/Header';
@@ -1,41 +0,0 @@
1
- var $hHHav$reactspectrumutils = require("@react-spectrum/utils");
2
- var $hHHav$reactariautils = require("@react-aria/utils");
3
- var $hHHav$react = require("react");
4
-
5
-
6
- function $parcel$interopDefault(a) {
7
- return a && a.__esModule ? a.default : a;
8
- }
9
-
10
- function $parcel$export(e, n, v, s) {
11
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
12
- }
13
-
14
- $parcel$export(module.exports, "Content", () => $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2);
15
- /*
16
- * Copyright 2020 Adobe. All rights reserved.
17
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License. You may obtain a copy
19
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software distributed under
22
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
- * OF ANY KIND, either express or implied. See the License for the specific language
24
- * governing permissions and limitations under the License.
25
- */
26
-
27
-
28
- const $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $hHHav$react.forwardRef)(function Content(props, ref) {
29
- props = (0, $hHHav$reactspectrumutils.useSlotProps)(props, 'content');
30
- let { children: children, ...otherProps } = props;
31
- let { styleProps: styleProps } = (0, $hHHav$reactspectrumutils.useStyleProps)(otherProps);
32
- let domRef = (0, $hHHav$reactspectrumutils.useDOMRef)(ref);
33
- return /*#__PURE__*/ (0, ($parcel$interopDefault($hHHav$react))).createElement("section", {
34
- ...(0, $hHHav$reactariautils.filterDOMProps)(otherProps),
35
- ...styleProps,
36
- ref: domRef
37
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($hHHav$react))).createElement((0, $hHHav$reactspectrumutils.ClearSlots), null, children));
38
- });
39
-
40
-
41
- //# sourceMappingURL=Content.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAU,CAAA,GAAA,uBAAS,EAAE,SAAS,QAAQ,KAAmB,EAAE,GAAW;IACjF,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC;QAAS,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;qBAC5D,0DAAC,CAAA,GAAA,oCAAS,SACP;AAIT","sources":["packages/@react-spectrum/view/src/Content.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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {ContentProps} from '@react-types/view';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\n\n/**\n * Content represents the primary content within a Spectrum container.\n */\nexport const Content = forwardRef(function Content(props: ContentProps, ref: DOMRef) {\n props = useSlotProps(props, 'content');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <section {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n <ClearSlots>\n {children}\n </ClearSlots>\n </section>\n );\n});\n"],"names":[],"version":3,"file":"Content.main.js.map"}
package/dist/Content.mjs DELETED
@@ -1,32 +0,0 @@
1
- import {useSlotProps as $7OPyf$useSlotProps, useStyleProps as $7OPyf$useStyleProps, useDOMRef as $7OPyf$useDOMRef, ClearSlots as $7OPyf$ClearSlots} from "@react-spectrum/utils";
2
- import {filterDOMProps as $7OPyf$filterDOMProps} from "@react-aria/utils";
3
- import $7OPyf$react, {forwardRef as $7OPyf$forwardRef} from "react";
4
-
5
- /*
6
- * Copyright 2020 Adobe. All rights reserved.
7
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License. You may obtain a copy
9
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software distributed under
12
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
- * OF ANY KIND, either express or implied. See the License for the specific language
14
- * governing permissions and limitations under the License.
15
- */
16
-
17
-
18
- const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $7OPyf$forwardRef)(function Content(props, ref) {
19
- props = (0, $7OPyf$useSlotProps)(props, 'content');
20
- let { children: children, ...otherProps } = props;
21
- let { styleProps: styleProps } = (0, $7OPyf$useStyleProps)(otherProps);
22
- let domRef = (0, $7OPyf$useDOMRef)(ref);
23
- return /*#__PURE__*/ (0, $7OPyf$react).createElement("section", {
24
- ...(0, $7OPyf$filterDOMProps)(otherProps),
25
- ...styleProps,
26
- ref: domRef
27
- }, /*#__PURE__*/ (0, $7OPyf$react).createElement((0, $7OPyf$ClearSlots), null, children));
28
- });
29
-
30
-
31
- export {$0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content};
32
- //# sourceMappingURL=Content.module.js.map
@@ -1,32 +0,0 @@
1
- import {useSlotProps as $7OPyf$useSlotProps, useStyleProps as $7OPyf$useStyleProps, useDOMRef as $7OPyf$useDOMRef, ClearSlots as $7OPyf$ClearSlots} from "@react-spectrum/utils";
2
- import {filterDOMProps as $7OPyf$filterDOMProps} from "@react-aria/utils";
3
- import $7OPyf$react, {forwardRef as $7OPyf$forwardRef} from "react";
4
-
5
- /*
6
- * Copyright 2020 Adobe. All rights reserved.
7
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License. You may obtain a copy
9
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software distributed under
12
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
- * OF ANY KIND, either express or implied. See the License for the specific language
14
- * governing permissions and limitations under the License.
15
- */
16
-
17
-
18
- const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $7OPyf$forwardRef)(function Content(props, ref) {
19
- props = (0, $7OPyf$useSlotProps)(props, 'content');
20
- let { children: children, ...otherProps } = props;
21
- let { styleProps: styleProps } = (0, $7OPyf$useStyleProps)(otherProps);
22
- let domRef = (0, $7OPyf$useDOMRef)(ref);
23
- return /*#__PURE__*/ (0, $7OPyf$react).createElement("section", {
24
- ...(0, $7OPyf$filterDOMProps)(otherProps),
25
- ...styleProps,
26
- ref: domRef
27
- }, /*#__PURE__*/ (0, $7OPyf$react).createElement((0, $7OPyf$ClearSlots), null, children));
28
- });
29
-
30
-
31
- export {$0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content};
32
- //# sourceMappingURL=Content.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAU,CAAA,GAAA,iBAAS,EAAE,SAAS,QAAQ,KAAmB,EAAE,GAAW;IACjF,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QAAS,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;qBAC5D,gCAAC,CAAA,GAAA,iBAAS,SACP;AAIT","sources":["packages/@react-spectrum/view/src/Content.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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {ContentProps} from '@react-types/view';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\n\n/**\n * Content represents the primary content within a Spectrum container.\n */\nexport const Content = forwardRef(function Content(props: ContentProps, ref: DOMRef) {\n props = useSlotProps(props, 'content');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <section {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n <ClearSlots>\n {children}\n </ClearSlots>\n </section>\n );\n});\n"],"names":[],"version":3,"file":"Content.module.js.map"}
@@ -1,41 +0,0 @@
1
- var $kW1Qr$reactspectrumutils = require("@react-spectrum/utils");
2
- var $kW1Qr$reactariautils = require("@react-aria/utils");
3
- var $kW1Qr$react = require("react");
4
-
5
-
6
- function $parcel$interopDefault(a) {
7
- return a && a.__esModule ? a.default : a;
8
- }
9
-
10
- function $parcel$export(e, n, v, s) {
11
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
12
- }
13
-
14
- $parcel$export(module.exports, "Footer", () => $e266c0b33fd8525d$export$a06f1c675e846f6f);
15
- /*
16
- * Copyright 2020 Adobe. All rights reserved.
17
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License. You may obtain a copy
19
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software distributed under
22
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
- * OF ANY KIND, either express or implied. See the License for the specific language
24
- * governing permissions and limitations under the License.
25
- */
26
-
27
-
28
- const $e266c0b33fd8525d$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $kW1Qr$react.forwardRef)(function Footer(props, ref) {
29
- props = (0, $kW1Qr$reactspectrumutils.useSlotProps)(props, 'footer');
30
- let { children: children, ...otherProps } = props;
31
- let { styleProps: styleProps } = (0, $kW1Qr$reactspectrumutils.useStyleProps)(otherProps);
32
- let domRef = (0, $kW1Qr$reactspectrumutils.useDOMRef)(ref);
33
- return /*#__PURE__*/ (0, ($parcel$interopDefault($kW1Qr$react))).createElement("footer", {
34
- ...(0, $kW1Qr$reactariautils.filterDOMProps)(otherProps),
35
- ...styleProps,
36
- ref: domRef
37
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($kW1Qr$react))).createElement((0, $kW1Qr$reactspectrumutils.ClearSlots), null, children));
38
- });
39
-
40
-
41
- //# sourceMappingURL=Footer.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAS,CAAA,GAAA,uBAAS,EAAE,SAAS,OAAO,KAAkB,EAAE,GAAW;IAC9E,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC;QAAQ,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;qBAC3D,0DAAC,CAAA,GAAA,oCAAS,SACP;AAIT","sources":["packages/@react-spectrum/view/src/Footer.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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FooterProps} from '@react-types/view';\nimport React, {forwardRef} from 'react';\n\n/**\n * Footer represents a footer within a Spectrum container.\n */\nexport const Footer = forwardRef(function Footer(props: FooterProps, ref: DOMRef) {\n props = useSlotProps(props, 'footer');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <footer {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n <ClearSlots>\n {children}\n </ClearSlots>\n </footer>\n );\n});\n"],"names":[],"version":3,"file":"Footer.main.js.map"}
package/dist/Footer.mjs DELETED
@@ -1,32 +0,0 @@
1
- import {useSlotProps as $aegiv$useSlotProps, useStyleProps as $aegiv$useStyleProps, useDOMRef as $aegiv$useDOMRef, ClearSlots as $aegiv$ClearSlots} from "@react-spectrum/utils";
2
- import {filterDOMProps as $aegiv$filterDOMProps} from "@react-aria/utils";
3
- import $aegiv$react, {forwardRef as $aegiv$forwardRef} from "react";
4
-
5
- /*
6
- * Copyright 2020 Adobe. All rights reserved.
7
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License. You may obtain a copy
9
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software distributed under
12
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
- * OF ANY KIND, either express or implied. See the License for the specific language
14
- * governing permissions and limitations under the License.
15
- */
16
-
17
-
18
- const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $aegiv$forwardRef)(function Footer(props, ref) {
19
- props = (0, $aegiv$useSlotProps)(props, 'footer');
20
- let { children: children, ...otherProps } = props;
21
- let { styleProps: styleProps } = (0, $aegiv$useStyleProps)(otherProps);
22
- let domRef = (0, $aegiv$useDOMRef)(ref);
23
- return /*#__PURE__*/ (0, $aegiv$react).createElement("footer", {
24
- ...(0, $aegiv$filterDOMProps)(otherProps),
25
- ...styleProps,
26
- ref: domRef
27
- }, /*#__PURE__*/ (0, $aegiv$react).createElement((0, $aegiv$ClearSlots), null, children));
28
- });
29
-
30
-
31
- export {$8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer};
32
- //# sourceMappingURL=Footer.module.js.map
@@ -1,32 +0,0 @@
1
- import {useSlotProps as $aegiv$useSlotProps, useStyleProps as $aegiv$useStyleProps, useDOMRef as $aegiv$useDOMRef, ClearSlots as $aegiv$ClearSlots} from "@react-spectrum/utils";
2
- import {filterDOMProps as $aegiv$filterDOMProps} from "@react-aria/utils";
3
- import $aegiv$react, {forwardRef as $aegiv$forwardRef} from "react";
4
-
5
- /*
6
- * Copyright 2020 Adobe. All rights reserved.
7
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License. You may obtain a copy
9
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software distributed under
12
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
- * OF ANY KIND, either express or implied. See the License for the specific language
14
- * governing permissions and limitations under the License.
15
- */
16
-
17
-
18
- const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $aegiv$forwardRef)(function Footer(props, ref) {
19
- props = (0, $aegiv$useSlotProps)(props, 'footer');
20
- let { children: children, ...otherProps } = props;
21
- let { styleProps: styleProps } = (0, $aegiv$useStyleProps)(otherProps);
22
- let domRef = (0, $aegiv$useDOMRef)(ref);
23
- return /*#__PURE__*/ (0, $aegiv$react).createElement("footer", {
24
- ...(0, $aegiv$filterDOMProps)(otherProps),
25
- ...styleProps,
26
- ref: domRef
27
- }, /*#__PURE__*/ (0, $aegiv$react).createElement((0, $aegiv$ClearSlots), null, children));
28
- });
29
-
30
-
31
- export {$8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer};
32
- //# sourceMappingURL=Footer.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAS,CAAA,GAAA,iBAAS,EAAE,SAAS,OAAO,KAAkB,EAAE,GAAW;IAC9E,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QAAQ,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;qBAC3D,gCAAC,CAAA,GAAA,iBAAS,SACP;AAIT","sources":["packages/@react-spectrum/view/src/Footer.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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {FooterProps} from '@react-types/view';\nimport React, {forwardRef} from 'react';\n\n/**\n * Footer represents a footer within a Spectrum container.\n */\nexport const Footer = forwardRef(function Footer(props: FooterProps, ref: DOMRef) {\n props = useSlotProps(props, 'footer');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <footer {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n <ClearSlots>\n {children}\n </ClearSlots>\n </footer>\n );\n});\n"],"names":[],"version":3,"file":"Footer.module.js.map"}
@@ -1,41 +0,0 @@
1
- var $d6W1H$reactspectrumutils = require("@react-spectrum/utils");
2
- var $d6W1H$reactariautils = require("@react-aria/utils");
3
- var $d6W1H$react = require("react");
4
-
5
-
6
- function $parcel$interopDefault(a) {
7
- return a && a.__esModule ? a.default : a;
8
- }
9
-
10
- function $parcel$export(e, n, v, s) {
11
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
12
- }
13
-
14
- $parcel$export(module.exports, "Header", () => $62d558b43ecd7a77$export$8b251419efc915eb);
15
- /*
16
- * Copyright 2020 Adobe. All rights reserved.
17
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License. You may obtain a copy
19
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software distributed under
22
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
- * OF ANY KIND, either express or implied. See the License for the specific language
24
- * governing permissions and limitations under the License.
25
- */
26
-
27
-
28
- const $62d558b43ecd7a77$export$8b251419efc915eb = /*#__PURE__*/ (0, $d6W1H$react.forwardRef)(function Header(props, ref) {
29
- props = (0, $d6W1H$reactspectrumutils.useSlotProps)(props, 'header');
30
- let { children: children, ...otherProps } = props;
31
- let { styleProps: styleProps } = (0, $d6W1H$reactspectrumutils.useStyleProps)(otherProps);
32
- let domRef = (0, $d6W1H$reactspectrumutils.useDOMRef)(ref);
33
- return /*#__PURE__*/ (0, ($parcel$interopDefault($d6W1H$react))).createElement("header", {
34
- ...(0, $d6W1H$reactariautils.filterDOMProps)(otherProps),
35
- ...styleProps,
36
- ref: domRef
37
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($d6W1H$react))).createElement((0, $d6W1H$reactspectrumutils.ClearSlots), null, children));
38
- });
39
-
40
-
41
- //# sourceMappingURL=Header.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAS,CAAA,GAAA,uBAAS,EAAE,SAAS,OAAO,KAAkB,EAAE,GAAW;IAC9E,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC;QAAQ,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;qBAC3D,0DAAC,CAAA,GAAA,oCAAS,SACP;AAIT","sources":["packages/@react-spectrum/view/src/Header.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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {HeaderProps} from '@react-types/view';\nimport React, {forwardRef} from 'react';\n\n/**\n * Header represents a header within a Spectrum container.\n */\nexport const Header = forwardRef(function Header(props: HeaderProps, ref: DOMRef) {\n props = useSlotProps(props, 'header');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <header {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n <ClearSlots>\n {children}\n </ClearSlots>\n </header>\n );\n});\n"],"names":[],"version":3,"file":"Header.main.js.map"}
package/dist/Header.mjs DELETED
@@ -1,32 +0,0 @@
1
- import {useSlotProps as $8vCvm$useSlotProps, useStyleProps as $8vCvm$useStyleProps, useDOMRef as $8vCvm$useDOMRef, ClearSlots as $8vCvm$ClearSlots} from "@react-spectrum/utils";
2
- import {filterDOMProps as $8vCvm$filterDOMProps} from "@react-aria/utils";
3
- import $8vCvm$react, {forwardRef as $8vCvm$forwardRef} from "react";
4
-
5
- /*
6
- * Copyright 2020 Adobe. All rights reserved.
7
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License. You may obtain a copy
9
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software distributed under
12
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
- * OF ANY KIND, either express or implied. See the License for the specific language
14
- * governing permissions and limitations under the License.
15
- */
16
-
17
-
18
- const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $8vCvm$forwardRef)(function Header(props, ref) {
19
- props = (0, $8vCvm$useSlotProps)(props, 'header');
20
- let { children: children, ...otherProps } = props;
21
- let { styleProps: styleProps } = (0, $8vCvm$useStyleProps)(otherProps);
22
- let domRef = (0, $8vCvm$useDOMRef)(ref);
23
- return /*#__PURE__*/ (0, $8vCvm$react).createElement("header", {
24
- ...(0, $8vCvm$filterDOMProps)(otherProps),
25
- ...styleProps,
26
- ref: domRef
27
- }, /*#__PURE__*/ (0, $8vCvm$react).createElement((0, $8vCvm$ClearSlots), null, children));
28
- });
29
-
30
-
31
- export {$aedcc4886d2a392a$export$8b251419efc915eb as Header};
32
- //# sourceMappingURL=Header.module.js.map
@@ -1,32 +0,0 @@
1
- import {useSlotProps as $8vCvm$useSlotProps, useStyleProps as $8vCvm$useStyleProps, useDOMRef as $8vCvm$useDOMRef, ClearSlots as $8vCvm$ClearSlots} from "@react-spectrum/utils";
2
- import {filterDOMProps as $8vCvm$filterDOMProps} from "@react-aria/utils";
3
- import $8vCvm$react, {forwardRef as $8vCvm$forwardRef} from "react";
4
-
5
- /*
6
- * Copyright 2020 Adobe. All rights reserved.
7
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License. You may obtain a copy
9
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software distributed under
12
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
- * OF ANY KIND, either express or implied. See the License for the specific language
14
- * governing permissions and limitations under the License.
15
- */
16
-
17
-
18
- const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $8vCvm$forwardRef)(function Header(props, ref) {
19
- props = (0, $8vCvm$useSlotProps)(props, 'header');
20
- let { children: children, ...otherProps } = props;
21
- let { styleProps: styleProps } = (0, $8vCvm$useStyleProps)(otherProps);
22
- let domRef = (0, $8vCvm$useDOMRef)(ref);
23
- return /*#__PURE__*/ (0, $8vCvm$react).createElement("header", {
24
- ...(0, $8vCvm$filterDOMProps)(otherProps),
25
- ...styleProps,
26
- ref: domRef
27
- }, /*#__PURE__*/ (0, $8vCvm$react).createElement((0, $8vCvm$ClearSlots), null, children));
28
- });
29
-
30
-
31
- export {$aedcc4886d2a392a$export$8b251419efc915eb as Header};
32
- //# sourceMappingURL=Header.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAS,CAAA,GAAA,iBAAS,EAAE,SAAS,OAAO,KAAkB,EAAE,GAAW;IAC9E,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QAAQ,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;qBAC3D,gCAAC,CAAA,GAAA,iBAAS,SACP;AAIT","sources":["packages/@react-spectrum/view/src/Header.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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {HeaderProps} from '@react-types/view';\nimport React, {forwardRef} from 'react';\n\n/**\n * Header represents a header within a Spectrum container.\n */\nexport const Header = forwardRef(function Header(props: HeaderProps, ref: DOMRef) {\n props = useSlotProps(props, 'header');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <header {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n <ClearSlots>\n {children}\n </ClearSlots>\n </header>\n );\n});\n"],"names":[],"version":3,"file":"Header.module.js.map"}
package/dist/View.main.js DELETED
@@ -1,41 +0,0 @@
1
- var $1gR9I$reactspectrumutils = require("@react-spectrum/utils");
2
- var $1gR9I$reactariautils = require("@react-aria/utils");
3
- var $1gR9I$react = require("react");
4
-
5
-
6
- function $parcel$interopDefault(a) {
7
- return a && a.__esModule ? a.default : a;
8
- }
9
-
10
- function $parcel$export(e, n, v, s) {
11
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
12
- }
13
-
14
- $parcel$export(module.exports, "View", () => $6c848be8e8bffe98$export$27a5bd065ad55220);
15
- /*
16
- * Copyright 2020 Adobe. All rights reserved.
17
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License. You may obtain a copy
19
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software distributed under
22
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
- * OF ANY KIND, either express or implied. See the License for the specific language
24
- * governing permissions and limitations under the License.
25
- */
26
-
27
-
28
- const $6c848be8e8bffe98$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $1gR9I$react.forwardRef)(function View(props, ref) {
29
- props = (0, $1gR9I$reactspectrumutils.useSlotProps)(props);
30
- let { elementType: ElementType = 'div', children: children, ...otherProps } = props;
31
- let { styleProps: styleProps } = (0, $1gR9I$reactspectrumutils.useStyleProps)(props, (0, $1gR9I$reactspectrumutils.viewStyleProps));
32
- let domRef = (0, $1gR9I$reactspectrumutils.useDOMRef)(ref);
33
- return /*#__PURE__*/ (0, ($parcel$interopDefault($1gR9I$react))).createElement(ElementType, {
34
- ...(0, $1gR9I$reactariautils.filterDOMProps)(otherProps),
35
- ...styleProps,
36
- ref: domRef
37
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($1gR9I$react))).createElement((0, $1gR9I$reactspectrumutils.ClearSlots), null, children));
38
- });
39
-
40
-
41
- //# sourceMappingURL=View.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAYM,MAAM,0DAAO,CAAA,GAAA,uBAAS,EAAE,SAAS,KAA6B,KAAmB,EAAE,GAAW;IACnG,QAAQ,CAAA,GAAA,sCAAW,EAAE;IACrB,IAAI,EACF,aAAa,cAAc,KAAK,YAChC,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE,OAAO,CAAA,GAAA,wCAAa;IACrD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACd,KAAK;qBACL,0DAAC,CAAA,GAAA,oCAAS,SACP;AAIT","sources":["packages/@react-spectrum/view/src/View.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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps, viewStyleProps} from '@react-spectrum/utils';\nimport {ColorVersion, DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef, ReactElement} from 'react';\nimport {ViewProps} from '@react-types/view';\n\n/**\n * View is a general purpose container with no specific semantics that can be used for custom styling purposes.\n * It supports Spectrum style props to ensure consistency with other Spectrum components.\n */\nexport const View = forwardRef(function View<C extends ColorVersion>(props: ViewProps<C>, ref: DOMRef) {\n props = useSlotProps(props);\n let {\n elementType: ElementType = 'div',\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(props, viewStyleProps);\n let domRef = useDOMRef(ref);\n\n return (\n <ElementType\n {...filterDOMProps(otherProps)}\n {...styleProps}\n ref={domRef}>\n <ClearSlots>\n {children}\n </ClearSlots>\n </ElementType>\n );\n}) as <C extends ColorVersion = 5>(props: ViewProps<C> & {ref?: DOMRef}) => ReactElement;\n"],"names":[],"version":3,"file":"View.main.js.map"}
package/dist/View.mjs DELETED
@@ -1,32 +0,0 @@
1
- import {useSlotProps as $aYQyM$useSlotProps, useStyleProps as $aYQyM$useStyleProps, viewStyleProps as $aYQyM$viewStyleProps, useDOMRef as $aYQyM$useDOMRef, ClearSlots as $aYQyM$ClearSlots} from "@react-spectrum/utils";
2
- import {filterDOMProps as $aYQyM$filterDOMProps} from "@react-aria/utils";
3
- import $aYQyM$react, {forwardRef as $aYQyM$forwardRef} from "react";
4
-
5
- /*
6
- * Copyright 2020 Adobe. All rights reserved.
7
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License. You may obtain a copy
9
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software distributed under
12
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
- * OF ANY KIND, either express or implied. See the License for the specific language
14
- * governing permissions and limitations under the License.
15
- */
16
-
17
-
18
- const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $aYQyM$forwardRef)(function View(props, ref) {
19
- props = (0, $aYQyM$useSlotProps)(props);
20
- let { elementType: ElementType = 'div', children: children, ...otherProps } = props;
21
- let { styleProps: styleProps } = (0, $aYQyM$useStyleProps)(props, (0, $aYQyM$viewStyleProps));
22
- let domRef = (0, $aYQyM$useDOMRef)(ref);
23
- return /*#__PURE__*/ (0, $aYQyM$react).createElement(ElementType, {
24
- ...(0, $aYQyM$filterDOMProps)(otherProps),
25
- ...styleProps,
26
- ref: domRef
27
- }, /*#__PURE__*/ (0, $aYQyM$react).createElement((0, $aYQyM$ClearSlots), null, children));
28
- });
29
-
30
-
31
- export {$b9606c0c41d55371$export$27a5bd065ad55220 as View};
32
- //# sourceMappingURL=View.module.js.map
@@ -1,32 +0,0 @@
1
- import {useSlotProps as $aYQyM$useSlotProps, useStyleProps as $aYQyM$useStyleProps, viewStyleProps as $aYQyM$viewStyleProps, useDOMRef as $aYQyM$useDOMRef, ClearSlots as $aYQyM$ClearSlots} from "@react-spectrum/utils";
2
- import {filterDOMProps as $aYQyM$filterDOMProps} from "@react-aria/utils";
3
- import $aYQyM$react, {forwardRef as $aYQyM$forwardRef} from "react";
4
-
5
- /*
6
- * Copyright 2020 Adobe. All rights reserved.
7
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License. You may obtain a copy
9
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software distributed under
12
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13
- * OF ANY KIND, either express or implied. See the License for the specific language
14
- * governing permissions and limitations under the License.
15
- */
16
-
17
-
18
- const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $aYQyM$forwardRef)(function View(props, ref) {
19
- props = (0, $aYQyM$useSlotProps)(props);
20
- let { elementType: ElementType = 'div', children: children, ...otherProps } = props;
21
- let { styleProps: styleProps } = (0, $aYQyM$useStyleProps)(props, (0, $aYQyM$viewStyleProps));
22
- let domRef = (0, $aYQyM$useDOMRef)(ref);
23
- return /*#__PURE__*/ (0, $aYQyM$react).createElement(ElementType, {
24
- ...(0, $aYQyM$filterDOMProps)(otherProps),
25
- ...styleProps,
26
- ref: domRef
27
- }, /*#__PURE__*/ (0, $aYQyM$react).createElement((0, $aYQyM$ClearSlots), null, children));
28
- });
29
-
30
-
31
- export {$b9606c0c41d55371$export$27a5bd065ad55220 as View};
32
- //# sourceMappingURL=View.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAYM,MAAM,0DAAO,CAAA,GAAA,iBAAS,EAAE,SAAS,KAA6B,KAAmB,EAAE,GAAW;IACnG,QAAQ,CAAA,GAAA,mBAAW,EAAE;IACrB,IAAI,EACF,aAAa,cAAc,KAAK,YAChC,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE,OAAO,CAAA,GAAA,qBAAa;IACrD,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACd,KAAK;qBACL,gCAAC,CAAA,GAAA,iBAAS,SACP;AAIT","sources":["packages/@react-spectrum/view/src/View.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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps, viewStyleProps} from '@react-spectrum/utils';\nimport {ColorVersion, DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef, ReactElement} from 'react';\nimport {ViewProps} from '@react-types/view';\n\n/**\n * View is a general purpose container with no specific semantics that can be used for custom styling purposes.\n * It supports Spectrum style props to ensure consistency with other Spectrum components.\n */\nexport const View = forwardRef(function View<C extends ColorVersion>(props: ViewProps<C>, ref: DOMRef) {\n props = useSlotProps(props);\n let {\n elementType: ElementType = 'div',\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(props, viewStyleProps);\n let domRef = useDOMRef(ref);\n\n return (\n <ElementType\n {...filterDOMProps(otherProps)}\n {...styleProps}\n ref={domRef}>\n <ClearSlots>\n {children}\n </ClearSlots>\n </ElementType>\n );\n}) as <C extends ColorVersion = 5>(props: ViewProps<C> & {ref?: DOMRef}) => ReactElement;\n"],"names":[],"version":3,"file":"View.module.js.map"}
package/dist/types.d.ts DELETED
@@ -1,25 +0,0 @@
1
- import { ColorVersion, DOMRef, DOMRefValue } from "@react-types/shared";
2
- import React, { ReactElement } from "react";
3
- import { ViewProps, ContentProps, FooterProps, HeaderProps } from "@react-types/view";
4
- /**
5
- * View is a general purpose container with no specific semantics that can be used for custom styling purposes.
6
- * It supports Spectrum style props to ensure consistency with other Spectrum components.
7
- */
8
- export const View: <C extends ColorVersion = 5>(props: ViewProps<C> & {
9
- ref?: DOMRef;
10
- }) => ReactElement;
11
- /**
12
- * Content represents the primary content within a Spectrum container.
13
- */
14
- export const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<DOMRefValue<HTMLElement>>>;
15
- /**
16
- * Footer represents a footer within a Spectrum container.
17
- */
18
- export const Footer: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<DOMRefValue<HTMLElement>>>;
19
- /**
20
- * Header represents a header within a Spectrum container.
21
- */
22
- export const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<DOMRefValue<HTMLElement>>>;
23
- export type { ContentProps, FooterProps, HeaderProps, ViewProps } from '@react-types/view';
24
-
25
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"mappings":";;;AAkBA;;;GAGG;AACH,OAAO,MAAM,MAoBP,CAAC,CAAC,SAAS,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAC,KAAK,YAAY,CAAC;ACxBzF;;GAEG;AACH,OAAO,MAAM,sGAgBX,CAAC;ACnBH;;GAEG;AACH,OAAO,MAAM,oGAgBX,CAAC;ACnBH;;GAEG;AACH,OAAO,MAAM,oGAgBX,CAAC;ACrBH,YAAY,EAAC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC","sources":["packages/@react-spectrum/view/src/packages/@react-spectrum/view/src/View.tsx","packages/@react-spectrum/view/src/packages/@react-spectrum/view/src/Content.tsx","packages/@react-spectrum/view/src/packages/@react-spectrum/view/src/Footer.tsx","packages/@react-spectrum/view/src/packages/@react-spectrum/view/src/Header.tsx","packages/@react-spectrum/view/src/packages/@react-spectrum/view/src/index.ts","packages/@react-spectrum/view/src/index.ts"],"sourcesContent":[null,null,null,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 {View} from './View';\nexport {Content} from './Content';\nexport {Footer} from './Footer';\nexport {Header} from './Header';\nexport type {ContentProps, FooterProps, HeaderProps, ViewProps} from '@react-types/view';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/src/Content.tsx DELETED
@@ -1,38 +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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';
14
- import {ContentProps} from '@react-types/view';
15
- import {DOMRef} from '@react-types/shared';
16
- import {filterDOMProps} from '@react-aria/utils';
17
- import React, {forwardRef} from 'react';
18
-
19
- /**
20
- * Content represents the primary content within a Spectrum container.
21
- */
22
- export const Content = forwardRef(function Content(props: ContentProps, ref: DOMRef) {
23
- props = useSlotProps(props, 'content');
24
- let {
25
- children,
26
- ...otherProps
27
- } = props;
28
- let {styleProps} = useStyleProps(otherProps);
29
- let domRef = useDOMRef(ref);
30
-
31
- return (
32
- <section {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>
33
- <ClearSlots>
34
- {children}
35
- </ClearSlots>
36
- </section>
37
- );
38
- });
package/src/Footer.tsx DELETED
@@ -1,38 +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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';
14
- import {DOMRef} from '@react-types/shared';
15
- import {filterDOMProps} from '@react-aria/utils';
16
- import {FooterProps} from '@react-types/view';
17
- import React, {forwardRef} from 'react';
18
-
19
- /**
20
- * Footer represents a footer within a Spectrum container.
21
- */
22
- export const Footer = forwardRef(function Footer(props: FooterProps, ref: DOMRef) {
23
- props = useSlotProps(props, 'footer');
24
- let {
25
- children,
26
- ...otherProps
27
- } = props;
28
- let {styleProps} = useStyleProps(otherProps);
29
- let domRef = useDOMRef(ref);
30
-
31
- return (
32
- <footer {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>
33
- <ClearSlots>
34
- {children}
35
- </ClearSlots>
36
- </footer>
37
- );
38
- });
package/src/Header.tsx DELETED
@@ -1,38 +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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';
14
- import {DOMRef} from '@react-types/shared';
15
- import {filterDOMProps} from '@react-aria/utils';
16
- import {HeaderProps} from '@react-types/view';
17
- import React, {forwardRef} from 'react';
18
-
19
- /**
20
- * Header represents a header within a Spectrum container.
21
- */
22
- export const Header = forwardRef(function Header(props: HeaderProps, ref: DOMRef) {
23
- props = useSlotProps(props, 'header');
24
- let {
25
- children,
26
- ...otherProps
27
- } = props;
28
- let {styleProps} = useStyleProps(otherProps);
29
- let domRef = useDOMRef(ref);
30
-
31
- return (
32
- <header {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>
33
- <ClearSlots>
34
- {children}
35
- </ClearSlots>
36
- </header>
37
- );
38
- });
package/src/View.tsx DELETED
@@ -1,43 +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 {ClearSlots, useDOMRef, useSlotProps, useStyleProps, viewStyleProps} from '@react-spectrum/utils';
14
- import {ColorVersion, DOMRef} from '@react-types/shared';
15
- import {filterDOMProps} from '@react-aria/utils';
16
- import React, {forwardRef, ReactElement} from 'react';
17
- import {ViewProps} from '@react-types/view';
18
-
19
- /**
20
- * View is a general purpose container with no specific semantics that can be used for custom styling purposes.
21
- * It supports Spectrum style props to ensure consistency with other Spectrum components.
22
- */
23
- export const View = forwardRef(function View<C extends ColorVersion>(props: ViewProps<C>, ref: DOMRef) {
24
- props = useSlotProps(props);
25
- let {
26
- elementType: ElementType = 'div',
27
- children,
28
- ...otherProps
29
- } = props;
30
- let {styleProps} = useStyleProps(props, viewStyleProps);
31
- let domRef = useDOMRef(ref);
32
-
33
- return (
34
- <ElementType
35
- {...filterDOMProps(otherProps)}
36
- {...styleProps}
37
- ref={domRef}>
38
- <ClearSlots>
39
- {children}
40
- </ClearSlots>
41
- </ElementType>
42
- );
43
- }) as <C extends ColorVersion = 5>(props: ViewProps<C> & {ref?: DOMRef}) => ReactElement;