@react-spectrum/view 3.6.7 → 3.6.9
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/Content.main.js +44 -0
- package/dist/Content.main.js.map +1 -0
- package/dist/Content.mjs +35 -0
- package/dist/Content.module.js +35 -0
- package/dist/Content.module.js.map +1 -0
- package/dist/Footer.main.js +44 -0
- package/dist/Footer.main.js.map +1 -0
- package/dist/Footer.mjs +35 -0
- package/dist/Footer.module.js +35 -0
- package/dist/Footer.module.js.map +1 -0
- package/dist/Header.main.js +44 -0
- package/dist/Header.main.js.map +1 -0
- package/dist/Header.mjs +35 -0
- package/dist/Header.module.js +35 -0
- package/dist/Header.module.js.map +1 -0
- package/dist/View.main.js +45 -0
- package/dist/View.main.js.map +1 -0
- package/dist/View.mjs +36 -0
- package/dist/View.module.js +36 -0
- package/dist/View.module.js.map +1 -0
- package/dist/import.mjs +4 -116
- package/dist/main.js +8 -124
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -116
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +4 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -6
@@ -0,0 +1,44 @@
|
|
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
|
+
function $2d8ae89d4e4c1d41$var$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
|
+
* Content represents the primary content within a Spectrum container.
|
41
|
+
*/ const $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $hHHav$react.forwardRef)($2d8ae89d4e4c1d41$var$Content);
|
42
|
+
|
43
|
+
|
44
|
+
//# sourceMappingURL=Content.main.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,8BAAQ,KAAmB,EAAE,GAAW;IAC/C,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;AAEA;;CAEC,GACD,MAAM,0DAAW,CAAA,GAAA,uBAAS,EAAE","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\nfunction 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\n/**\n * Content represents the primary content within a Spectrum container.\n */\nconst _Content = forwardRef(Content);\nexport {_Content as Content};\n"],"names":[],"version":3,"file":"Content.main.js.map"}
|
package/dist/Content.mjs
ADDED
@@ -0,0 +1,35 @@
|
|
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
|
+
function $0a7c18a2ef74b280$var$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
|
+
* Content represents the primary content within a Spectrum container.
|
31
|
+
*/ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $7OPyf$forwardRef)($0a7c18a2ef74b280$var$Content);
|
32
|
+
|
33
|
+
|
34
|
+
export {$0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content};
|
35
|
+
//# sourceMappingURL=Content.mjs.map
|
@@ -0,0 +1,35 @@
|
|
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
|
+
function $0a7c18a2ef74b280$var$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
|
+
* Content represents the primary content within a Spectrum container.
|
31
|
+
*/ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $7OPyf$forwardRef)($0a7c18a2ef74b280$var$Content);
|
32
|
+
|
33
|
+
|
34
|
+
export {$0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content};
|
35
|
+
//# sourceMappingURL=Content.module.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,8BAAQ,KAAmB,EAAE,GAAW;IAC/C,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;AAEA;;CAEC,GACD,MAAM,0DAAW,CAAA,GAAA,iBAAS,EAAE","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\nfunction 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\n/**\n * Content represents the primary content within a Spectrum container.\n */\nconst _Content = forwardRef(Content);\nexport {_Content as Content};\n"],"names":[],"version":3,"file":"Content.module.js.map"}
|
@@ -0,0 +1,44 @@
|
|
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
|
+
function $e266c0b33fd8525d$var$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
|
+
* Footer represents a footer within a Spectrum container.
|
41
|
+
*/ const $e266c0b33fd8525d$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $kW1Qr$react.forwardRef)($e266c0b33fd8525d$var$Footer);
|
42
|
+
|
43
|
+
|
44
|
+
//# sourceMappingURL=Footer.main.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,6BAAO,KAAkB,EAAE,GAAW;IAC7C,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;AAEA;;CAEC,GACD,MAAM,0DAAU,CAAA,GAAA,uBAAS,EAAE","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\nfunction 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\n/**\n * Footer represents a footer within a Spectrum container.\n */\nconst _Footer = forwardRef(Footer);\nexport {_Footer as Footer};\n"],"names":[],"version":3,"file":"Footer.main.js.map"}
|
package/dist/Footer.mjs
ADDED
@@ -0,0 +1,35 @@
|
|
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
|
+
function $8d68cc89c1f9278e$var$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
|
+
* Footer represents a footer within a Spectrum container.
|
31
|
+
*/ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $aegiv$forwardRef)($8d68cc89c1f9278e$var$Footer);
|
32
|
+
|
33
|
+
|
34
|
+
export {$8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer};
|
35
|
+
//# sourceMappingURL=Footer.mjs.map
|
@@ -0,0 +1,35 @@
|
|
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
|
+
function $8d68cc89c1f9278e$var$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
|
+
* Footer represents a footer within a Spectrum container.
|
31
|
+
*/ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $aegiv$forwardRef)($8d68cc89c1f9278e$var$Footer);
|
32
|
+
|
33
|
+
|
34
|
+
export {$8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer};
|
35
|
+
//# sourceMappingURL=Footer.module.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,6BAAO,KAAkB,EAAE,GAAW;IAC7C,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;AAEA;;CAEC,GACD,MAAM,0DAAU,CAAA,GAAA,iBAAS,EAAE","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\nfunction 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\n/**\n * Footer represents a footer within a Spectrum container.\n */\nconst _Footer = forwardRef(Footer);\nexport {_Footer as Footer};\n"],"names":[],"version":3,"file":"Footer.module.js.map"}
|
@@ -0,0 +1,44 @@
|
|
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
|
+
function $62d558b43ecd7a77$var$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
|
+
* Header represents a header within a Spectrum container.
|
41
|
+
*/ const $62d558b43ecd7a77$export$8b251419efc915eb = /*#__PURE__*/ (0, $d6W1H$react.forwardRef)($62d558b43ecd7a77$var$Header);
|
42
|
+
|
43
|
+
|
44
|
+
//# sourceMappingURL=Header.main.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,6BAAO,KAAkB,EAAE,GAAW;IAC7C,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;AAEA;;CAEC,GACD,MAAM,0DAAU,CAAA,GAAA,uBAAS,EAAE","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\nfunction 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\n/**\n * Header represents a header within a Spectrum container.\n */\nconst _Header = forwardRef(Header);\nexport {_Header as Header};\n"],"names":[],"version":3,"file":"Header.main.js.map"}
|
package/dist/Header.mjs
ADDED
@@ -0,0 +1,35 @@
|
|
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
|
+
function $aedcc4886d2a392a$var$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
|
+
* Header represents a header within a Spectrum container.
|
31
|
+
*/ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $8vCvm$forwardRef)($aedcc4886d2a392a$var$Header);
|
32
|
+
|
33
|
+
|
34
|
+
export {$aedcc4886d2a392a$export$8b251419efc915eb as Header};
|
35
|
+
//# sourceMappingURL=Header.mjs.map
|
@@ -0,0 +1,35 @@
|
|
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
|
+
function $aedcc4886d2a392a$var$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
|
+
* Header represents a header within a Spectrum container.
|
31
|
+
*/ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $8vCvm$forwardRef)($aedcc4886d2a392a$var$Header);
|
32
|
+
|
33
|
+
|
34
|
+
export {$aedcc4886d2a392a$export$8b251419efc915eb as Header};
|
35
|
+
//# sourceMappingURL=Header.module.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,6BAAO,KAAkB,EAAE,GAAW;IAC7C,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;AAEA;;CAEC,GACD,MAAM,0DAAU,CAAA,GAAA,iBAAS,EAAE","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\nfunction 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\n/**\n * Header represents a header within a Spectrum container.\n */\nconst _Header = forwardRef(Header);\nexport {_Header as Header};\n"],"names":[],"version":3,"file":"Header.module.js.map"}
|
@@ -0,0 +1,45 @@
|
|
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
|
+
function $6c848be8e8bffe98$var$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
|
+
* View is a general purpose container with no specific semantics that can be used for custom styling purposes.
|
41
|
+
* It supports Spectrum style props to ensure consistency with other Spectrum components.
|
42
|
+
*/ const $6c848be8e8bffe98$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $1gR9I$react.forwardRef)($6c848be8e8bffe98$var$View);
|
43
|
+
|
44
|
+
|
45
|
+
//# sourceMappingURL=View.main.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,2BAA6B,KAAmB,EAAE,GAAW;IACpE,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;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,uBAAS,EAAE","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\nfunction 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}\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 */\nconst _View = forwardRef(View) as <C extends ColorVersion = 5>(props: ViewProps<C> & {ref?: DOMRef}) => ReactElement;\nexport {_View as View};\n"],"names":[],"version":3,"file":"View.main.js.map"}
|
package/dist/View.mjs
ADDED
@@ -0,0 +1,36 @@
|
|
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
|
+
function $b9606c0c41d55371$var$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
|
+
* View is a general purpose container with no specific semantics that can be used for custom styling purposes.
|
31
|
+
* It supports Spectrum style props to ensure consistency with other Spectrum components.
|
32
|
+
*/ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $aYQyM$forwardRef)($b9606c0c41d55371$var$View);
|
33
|
+
|
34
|
+
|
35
|
+
export {$b9606c0c41d55371$export$27a5bd065ad55220 as View};
|
36
|
+
//# sourceMappingURL=View.mjs.map
|
@@ -0,0 +1,36 @@
|
|
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
|
+
function $b9606c0c41d55371$var$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
|
+
* View is a general purpose container with no specific semantics that can be used for custom styling purposes.
|
31
|
+
* It supports Spectrum style props to ensure consistency with other Spectrum components.
|
32
|
+
*/ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $aYQyM$forwardRef)($b9606c0c41d55371$var$View);
|
33
|
+
|
34
|
+
|
35
|
+
export {$b9606c0c41d55371$export$27a5bd065ad55220 as View};
|
36
|
+
//# sourceMappingURL=View.module.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,2BAA6B,KAAmB,EAAE,GAAW;IACpE,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;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,iBAAS,EAAE","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\nfunction 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}\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 */\nconst _View = forwardRef(View) as <C extends ColorVersion = 5>(props: ViewProps<C> & {ref?: DOMRef}) => ReactElement;\nexport {_View as View};\n"],"names":[],"version":3,"file":"View.module.js.map"}
|
package/dist/import.mjs
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import
|
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";
|
4
5
|
|
5
6
|
/*
|
6
7
|
* Copyright 2020 Adobe. All rights reserved.
|
@@ -13,121 +14,8 @@ import $bJbxN$react, {forwardRef as $bJbxN$forwardRef} from "react";
|
|
13
14
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
14
15
|
* governing permissions and limitations under the License.
|
15
16
|
*/ /// <reference types="css-module-types" />
|
16
|
-
/*
|
17
|
-
* Copyright 2020 Adobe. All rights reserved.
|
18
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
19
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
20
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
21
|
-
*
|
22
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
23
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
24
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
25
|
-
* governing permissions and limitations under the License.
|
26
|
-
*/
|
27
|
-
|
28
|
-
|
29
|
-
function $b9606c0c41d55371$var$View(props, ref) {
|
30
|
-
props = (0, $bJbxN$useSlotProps)(props);
|
31
|
-
let { elementType: ElementType = "div", children: children, ...otherProps } = props;
|
32
|
-
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(props, (0, $bJbxN$viewStyleProps));
|
33
|
-
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
34
|
-
return /*#__PURE__*/ (0, $bJbxN$react).createElement(ElementType, {
|
35
|
-
...(0, $bJbxN$filterDOMProps)(otherProps),
|
36
|
-
...styleProps,
|
37
|
-
ref: domRef
|
38
|
-
}, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
|
39
|
-
}
|
40
|
-
/**
|
41
|
-
* View is a general purpose container with no specific semantics that can be used for custom styling purposes.
|
42
|
-
* It supports Spectrum style props to ensure consistency with other Spectrum components.
|
43
|
-
*/ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $bJbxN$forwardRef)($b9606c0c41d55371$var$View);
|
44
|
-
|
45
|
-
|
46
|
-
/*
|
47
|
-
* Copyright 2020 Adobe. All rights reserved.
|
48
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
49
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
50
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
51
|
-
*
|
52
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
53
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
54
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
55
|
-
* governing permissions and limitations under the License.
|
56
|
-
*/
|
57
|
-
|
58
|
-
|
59
|
-
function $0a7c18a2ef74b280$var$Content(props, ref) {
|
60
|
-
props = (0, $bJbxN$useSlotProps)(props, "content");
|
61
|
-
let { children: children, ...otherProps } = props;
|
62
|
-
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
63
|
-
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
64
|
-
return /*#__PURE__*/ (0, $bJbxN$react).createElement("section", {
|
65
|
-
...(0, $bJbxN$filterDOMProps)(otherProps),
|
66
|
-
...styleProps,
|
67
|
-
ref: domRef
|
68
|
-
}, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
|
69
|
-
}
|
70
|
-
/**
|
71
|
-
* Content represents the primary content within a Spectrum container.
|
72
|
-
*/ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $bJbxN$forwardRef)($0a7c18a2ef74b280$var$Content);
|
73
|
-
|
74
|
-
|
75
|
-
/*
|
76
|
-
* Copyright 2020 Adobe. All rights reserved.
|
77
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
78
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
79
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
80
|
-
*
|
81
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
82
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
83
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
84
|
-
* governing permissions and limitations under the License.
|
85
|
-
*/
|
86
|
-
|
87
|
-
|
88
|
-
function $8d68cc89c1f9278e$var$Footer(props, ref) {
|
89
|
-
props = (0, $bJbxN$useSlotProps)(props, "footer");
|
90
|
-
let { children: children, ...otherProps } = props;
|
91
|
-
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
92
|
-
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
93
|
-
return /*#__PURE__*/ (0, $bJbxN$react).createElement("footer", {
|
94
|
-
...(0, $bJbxN$filterDOMProps)(otherProps),
|
95
|
-
...styleProps,
|
96
|
-
ref: domRef
|
97
|
-
}, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
|
98
|
-
}
|
99
|
-
/**
|
100
|
-
* Footer represents a footer within a Spectrum container.
|
101
|
-
*/ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $bJbxN$forwardRef)($8d68cc89c1f9278e$var$Footer);
|
102
|
-
|
103
|
-
|
104
|
-
/*
|
105
|
-
* Copyright 2020 Adobe. All rights reserved.
|
106
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
107
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
108
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
109
|
-
*
|
110
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
111
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
112
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
113
|
-
* governing permissions and limitations under the License.
|
114
|
-
*/
|
115
17
|
|
116
18
|
|
117
|
-
function $aedcc4886d2a392a$var$Header(props, ref) {
|
118
|
-
props = (0, $bJbxN$useSlotProps)(props, "header");
|
119
|
-
let { children: children, ...otherProps } = props;
|
120
|
-
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
121
|
-
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
122
|
-
return /*#__PURE__*/ (0, $bJbxN$react).createElement("header", {
|
123
|
-
...(0, $bJbxN$filterDOMProps)(otherProps),
|
124
|
-
...styleProps,
|
125
|
-
ref: domRef
|
126
|
-
}, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
|
127
|
-
}
|
128
|
-
/**
|
129
|
-
* Header represents a header within a Spectrum container.
|
130
|
-
*/ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $bJbxN$forwardRef)($aedcc4886d2a392a$var$Header);
|
131
19
|
|
132
20
|
|
133
21
|
|
package/dist/main.js
CHANGED
@@ -1,20 +1,17 @@
|
|
1
|
-
var $
|
2
|
-
var $
|
3
|
-
var $
|
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");
|
4
5
|
|
5
6
|
|
6
7
|
function $parcel$export(e, n, v, s) {
|
7
8
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
8
9
|
}
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
$parcel$export(module.exports, "View", () => $6c848be8e8bffe98$export$27a5bd065ad55220);
|
15
|
-
$parcel$export(module.exports, "Content", () => $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2);
|
16
|
-
$parcel$export(module.exports, "Footer", () => $e266c0b33fd8525d$export$a06f1c675e846f6f);
|
17
|
-
$parcel$export(module.exports, "Header", () => $62d558b43ecd7a77$export$8b251419efc915eb);
|
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);
|
18
15
|
/*
|
19
16
|
* Copyright 2020 Adobe. All rights reserved.
|
20
17
|
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
@@ -26,122 +23,9 @@ $parcel$export(module.exports, "Header", () => $62d558b43ecd7a77$export$8b251419
|
|
26
23
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
27
24
|
* governing permissions and limitations under the License.
|
28
25
|
*/ /// <reference types="css-module-types" />
|
29
|
-
/*
|
30
|
-
* Copyright 2020 Adobe. All rights reserved.
|
31
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
32
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
33
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
34
|
-
*
|
35
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
36
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
37
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
38
|
-
* governing permissions and limitations under the License.
|
39
|
-
*/
|
40
|
-
|
41
|
-
|
42
|
-
function $6c848be8e8bffe98$var$View(props, ref) {
|
43
|
-
props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props);
|
44
|
-
let { elementType: ElementType = "div", children: children, ...otherProps } = props;
|
45
|
-
let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(props, (0, $3YgEH$reactspectrumutils.viewStyleProps));
|
46
|
-
let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
|
47
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement(ElementType, {
|
48
|
-
...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
|
49
|
-
...styleProps,
|
50
|
-
ref: domRef
|
51
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement((0, $3YgEH$reactspectrumutils.ClearSlots), null, children));
|
52
|
-
}
|
53
|
-
/**
|
54
|
-
* View is a general purpose container with no specific semantics that can be used for custom styling purposes.
|
55
|
-
* It supports Spectrum style props to ensure consistency with other Spectrum components.
|
56
|
-
*/ const $6c848be8e8bffe98$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $3YgEH$react.forwardRef)($6c848be8e8bffe98$var$View);
|
57
|
-
|
58
|
-
|
59
|
-
/*
|
60
|
-
* Copyright 2020 Adobe. All rights reserved.
|
61
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
62
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
63
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
64
|
-
*
|
65
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
66
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
67
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
68
|
-
* governing permissions and limitations under the License.
|
69
|
-
*/
|
70
|
-
|
71
|
-
|
72
|
-
function $2d8ae89d4e4c1d41$var$Content(props, ref) {
|
73
|
-
props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props, "content");
|
74
|
-
let { children: children, ...otherProps } = props;
|
75
|
-
let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(otherProps);
|
76
|
-
let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
|
77
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement("section", {
|
78
|
-
...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
|
79
|
-
...styleProps,
|
80
|
-
ref: domRef
|
81
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement((0, $3YgEH$reactspectrumutils.ClearSlots), null, children));
|
82
|
-
}
|
83
|
-
/**
|
84
|
-
* Content represents the primary content within a Spectrum container.
|
85
|
-
*/ const $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $3YgEH$react.forwardRef)($2d8ae89d4e4c1d41$var$Content);
|
86
|
-
|
87
26
|
|
88
|
-
/*
|
89
|
-
* Copyright 2020 Adobe. All rights reserved.
|
90
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
91
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
92
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
93
|
-
*
|
94
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
95
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
96
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
97
|
-
* governing permissions and limitations under the License.
|
98
|
-
*/
|
99
|
-
|
100
|
-
|
101
|
-
function $e266c0b33fd8525d$var$Footer(props, ref) {
|
102
|
-
props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props, "footer");
|
103
|
-
let { children: children, ...otherProps } = props;
|
104
|
-
let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(otherProps);
|
105
|
-
let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
|
106
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement("footer", {
|
107
|
-
...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
|
108
|
-
...styleProps,
|
109
|
-
ref: domRef
|
110
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement((0, $3YgEH$reactspectrumutils.ClearSlots), null, children));
|
111
|
-
}
|
112
|
-
/**
|
113
|
-
* Footer represents a footer within a Spectrum container.
|
114
|
-
*/ const $e266c0b33fd8525d$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $3YgEH$react.forwardRef)($e266c0b33fd8525d$var$Footer);
|
115
27
|
|
116
28
|
|
117
|
-
/*
|
118
|
-
* Copyright 2020 Adobe. All rights reserved.
|
119
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
120
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
121
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
122
|
-
*
|
123
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
124
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
125
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
126
|
-
* governing permissions and limitations under the License.
|
127
|
-
*/
|
128
|
-
|
129
|
-
|
130
|
-
function $62d558b43ecd7a77$var$Header(props, ref) {
|
131
|
-
props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props, "header");
|
132
|
-
let { children: children, ...otherProps } = props;
|
133
|
-
let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(otherProps);
|
134
|
-
let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
|
135
|
-
return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement("header", {
|
136
|
-
...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
|
137
|
-
...styleProps,
|
138
|
-
ref: domRef
|
139
|
-
}, /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement((0, $3YgEH$reactspectrumutils.ClearSlots), null, children));
|
140
|
-
}
|
141
|
-
/**
|
142
|
-
* Header represents a header within a Spectrum container.
|
143
|
-
*/ const $62d558b43ecd7a77$export$8b251419efc915eb = /*#__PURE__*/ (0, $3YgEH$react.forwardRef)($62d558b43ecd7a77$var$Header);
|
144
|
-
|
145
29
|
|
146
30
|
|
147
31
|
|
package/dist/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":"
|
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"}
|
package/dist/module.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import
|
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";
|
4
5
|
|
5
6
|
/*
|
6
7
|
* Copyright 2020 Adobe. All rights reserved.
|
@@ -13,121 +14,8 @@ import $bJbxN$react, {forwardRef as $bJbxN$forwardRef} from "react";
|
|
13
14
|
* OF ANY KIND, either express or implied. See the License for the specific language
|
14
15
|
* governing permissions and limitations under the License.
|
15
16
|
*/ /// <reference types="css-module-types" />
|
16
|
-
/*
|
17
|
-
* Copyright 2020 Adobe. All rights reserved.
|
18
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
19
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
20
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
21
|
-
*
|
22
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
23
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
24
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
25
|
-
* governing permissions and limitations under the License.
|
26
|
-
*/
|
27
|
-
|
28
|
-
|
29
|
-
function $b9606c0c41d55371$var$View(props, ref) {
|
30
|
-
props = (0, $bJbxN$useSlotProps)(props);
|
31
|
-
let { elementType: ElementType = "div", children: children, ...otherProps } = props;
|
32
|
-
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(props, (0, $bJbxN$viewStyleProps));
|
33
|
-
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
34
|
-
return /*#__PURE__*/ (0, $bJbxN$react).createElement(ElementType, {
|
35
|
-
...(0, $bJbxN$filterDOMProps)(otherProps),
|
36
|
-
...styleProps,
|
37
|
-
ref: domRef
|
38
|
-
}, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
|
39
|
-
}
|
40
|
-
/**
|
41
|
-
* View is a general purpose container with no specific semantics that can be used for custom styling purposes.
|
42
|
-
* It supports Spectrum style props to ensure consistency with other Spectrum components.
|
43
|
-
*/ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $bJbxN$forwardRef)($b9606c0c41d55371$var$View);
|
44
|
-
|
45
|
-
|
46
|
-
/*
|
47
|
-
* Copyright 2020 Adobe. All rights reserved.
|
48
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
49
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
50
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
51
|
-
*
|
52
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
53
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
54
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
55
|
-
* governing permissions and limitations under the License.
|
56
|
-
*/
|
57
|
-
|
58
|
-
|
59
|
-
function $0a7c18a2ef74b280$var$Content(props, ref) {
|
60
|
-
props = (0, $bJbxN$useSlotProps)(props, "content");
|
61
|
-
let { children: children, ...otherProps } = props;
|
62
|
-
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
63
|
-
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
64
|
-
return /*#__PURE__*/ (0, $bJbxN$react).createElement("section", {
|
65
|
-
...(0, $bJbxN$filterDOMProps)(otherProps),
|
66
|
-
...styleProps,
|
67
|
-
ref: domRef
|
68
|
-
}, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
|
69
|
-
}
|
70
|
-
/**
|
71
|
-
* Content represents the primary content within a Spectrum container.
|
72
|
-
*/ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $bJbxN$forwardRef)($0a7c18a2ef74b280$var$Content);
|
73
|
-
|
74
|
-
|
75
|
-
/*
|
76
|
-
* Copyright 2020 Adobe. All rights reserved.
|
77
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
78
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
79
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
80
|
-
*
|
81
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
82
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
83
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
84
|
-
* governing permissions and limitations under the License.
|
85
|
-
*/
|
86
|
-
|
87
|
-
|
88
|
-
function $8d68cc89c1f9278e$var$Footer(props, ref) {
|
89
|
-
props = (0, $bJbxN$useSlotProps)(props, "footer");
|
90
|
-
let { children: children, ...otherProps } = props;
|
91
|
-
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
92
|
-
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
93
|
-
return /*#__PURE__*/ (0, $bJbxN$react).createElement("footer", {
|
94
|
-
...(0, $bJbxN$filterDOMProps)(otherProps),
|
95
|
-
...styleProps,
|
96
|
-
ref: domRef
|
97
|
-
}, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
|
98
|
-
}
|
99
|
-
/**
|
100
|
-
* Footer represents a footer within a Spectrum container.
|
101
|
-
*/ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $bJbxN$forwardRef)($8d68cc89c1f9278e$var$Footer);
|
102
|
-
|
103
|
-
|
104
|
-
/*
|
105
|
-
* Copyright 2020 Adobe. All rights reserved.
|
106
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
107
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
108
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
109
|
-
*
|
110
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
111
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
112
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
113
|
-
* governing permissions and limitations under the License.
|
114
|
-
*/
|
115
17
|
|
116
18
|
|
117
|
-
function $aedcc4886d2a392a$var$Header(props, ref) {
|
118
|
-
props = (0, $bJbxN$useSlotProps)(props, "header");
|
119
|
-
let { children: children, ...otherProps } = props;
|
120
|
-
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
121
|
-
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
122
|
-
return /*#__PURE__*/ (0, $bJbxN$react).createElement("header", {
|
123
|
-
...(0, $bJbxN$filterDOMProps)(otherProps),
|
124
|
-
...styleProps,
|
125
|
-
ref: domRef
|
126
|
-
}, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
|
127
|
-
}
|
128
|
-
/**
|
129
|
-
* Header represents a header within a Spectrum container.
|
130
|
-
*/ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $bJbxN$forwardRef)($aedcc4886d2a392a$var$Header);
|
131
19
|
|
132
20
|
|
133
21
|
|
package/dist/module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":"
|
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"}
|
package/dist/types.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ColorVersion, DOMRef } from "@react-types/shared";
|
1
|
+
import { ColorVersion, DOMRef, DOMRefValue } from "@react-types/shared";
|
2
2
|
import React, { ReactElement } from "react";
|
3
3
|
import { ViewProps, ContentProps, FooterProps, HeaderProps } from "@react-types/view";
|
4
4
|
/**
|
@@ -11,15 +11,15 @@ export const View: <C extends ColorVersion = 5>(props: ViewProps<C> & {
|
|
11
11
|
/**
|
12
12
|
* Content represents the primary content within a Spectrum container.
|
13
13
|
*/
|
14
|
-
export const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<
|
14
|
+
export const Content: React.ForwardRefExoticComponent<ContentProps & React.RefAttributes<DOMRefValue<HTMLElement>>>;
|
15
15
|
/**
|
16
16
|
* Footer represents a footer within a Spectrum container.
|
17
17
|
*/
|
18
|
-
export const Footer: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<
|
18
|
+
export const Footer: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<DOMRefValue<HTMLElement>>>;
|
19
19
|
/**
|
20
20
|
* Header represents a header within a Spectrum container.
|
21
21
|
*/
|
22
|
-
export const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<
|
22
|
+
export const Header: React.ForwardRefExoticComponent<HeaderProps & React.RefAttributes<DOMRefValue<HTMLElement>>>;
|
23
23
|
export type { ContentProps, FooterProps, HeaderProps, ViewProps } from '@react-types/view';
|
24
24
|
|
25
25
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;AAwCA;;;GAGG;AACH,OAAA,MAAM;UAAsF,MAAM;MAAM,YAAY,CAAC;ACRrH;;GAEG;AACH,OAAA,MAAM,
|
1
|
+
{"mappings":";;;AAwCA;;;GAGG;AACH,OAAA,MAAM;UAAsF,MAAM;MAAM,YAAY,CAAC;ACRrH;;GAEG;AACH,OAAA,MAAM,sGAA8B,CAAC;ACHrC;;GAEG;AACH,OAAA,MAAM,oGAA4B,CAAC;ACHnC;;GAEG;AACH,OAAA,MAAM,oGAA4B,CAAC;ACvBnC,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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/view",
|
3
|
-
"version": "3.6.
|
3
|
+
"version": "3.6.9",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -36,10 +36,10 @@
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@react-aria/utils": "^3.
|
40
|
-
"@react-spectrum/utils": "^3.11.
|
41
|
-
"@react-types/shared": "^3.
|
42
|
-
"@react-types/view": "^3.4.
|
39
|
+
"@react-aria/utils": "^3.24.0",
|
40
|
+
"@react-spectrum/utils": "^3.11.6",
|
41
|
+
"@react-types/shared": "^3.23.0",
|
42
|
+
"@react-types/view": "^3.4.8",
|
43
43
|
"@swc/helpers": "^0.5.0"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
@@ -52,5 +52,5 @@
|
|
52
52
|
"publishConfig": {
|
53
53
|
"access": "public"
|
54
54
|
},
|
55
|
-
"gitHead": "
|
55
|
+
"gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd"
|
56
56
|
}
|