@react-spectrum/view 3.6.14 → 3.6.16

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.
@@ -25,7 +25,7 @@ $parcel$export(module.exports, "Content", () => $2d8ae89d4e4c1d41$export$7c6e2c0
25
25
  */
26
26
 
27
27
 
28
- function $2d8ae89d4e4c1d41$var$Content(props, ref) {
28
+ const $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $hHHav$react.forwardRef)(function Content(props, ref) {
29
29
  props = (0, $hHHav$reactspectrumutils.useSlotProps)(props, 'content');
30
30
  let { children: children, ...otherProps } = props;
31
31
  let { styleProps: styleProps } = (0, $hHHav$reactspectrumutils.useStyleProps)(otherProps);
@@ -35,10 +35,7 @@ function $2d8ae89d4e4c1d41$var$Content(props, ref) {
35
35
  ...styleProps,
36
36
  ref: domRef
37
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);
38
+ });
42
39
 
43
40
 
44
41
  //# sourceMappingURL=Content.main.js.map
@@ -1 +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"}
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 CHANGED
@@ -15,7 +15,7 @@ import $7OPyf$react, {forwardRef as $7OPyf$forwardRef} from "react";
15
15
  */
16
16
 
17
17
 
18
- function $0a7c18a2ef74b280$var$Content(props, ref) {
18
+ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $7OPyf$forwardRef)(function Content(props, ref) {
19
19
  props = (0, $7OPyf$useSlotProps)(props, 'content');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $7OPyf$useStyleProps)(otherProps);
@@ -25,10 +25,7 @@ function $0a7c18a2ef74b280$var$Content(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
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);
28
+ });
32
29
 
33
30
 
34
31
  export {$0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content};
@@ -15,7 +15,7 @@ import $7OPyf$react, {forwardRef as $7OPyf$forwardRef} from "react";
15
15
  */
16
16
 
17
17
 
18
- function $0a7c18a2ef74b280$var$Content(props, ref) {
18
+ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $7OPyf$forwardRef)(function Content(props, ref) {
19
19
  props = (0, $7OPyf$useSlotProps)(props, 'content');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $7OPyf$useStyleProps)(otherProps);
@@ -25,10 +25,7 @@ function $0a7c18a2ef74b280$var$Content(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
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);
28
+ });
32
29
 
33
30
 
34
31
  export {$0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content};
@@ -1 +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"}
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"}
@@ -25,7 +25,7 @@ $parcel$export(module.exports, "Footer", () => $e266c0b33fd8525d$export$a06f1c67
25
25
  */
26
26
 
27
27
 
28
- function $e266c0b33fd8525d$var$Footer(props, ref) {
28
+ const $e266c0b33fd8525d$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $kW1Qr$react.forwardRef)(function Footer(props, ref) {
29
29
  props = (0, $kW1Qr$reactspectrumutils.useSlotProps)(props, 'footer');
30
30
  let { children: children, ...otherProps } = props;
31
31
  let { styleProps: styleProps } = (0, $kW1Qr$reactspectrumutils.useStyleProps)(otherProps);
@@ -35,10 +35,7 @@ function $e266c0b33fd8525d$var$Footer(props, ref) {
35
35
  ...styleProps,
36
36
  ref: domRef
37
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);
38
+ });
42
39
 
43
40
 
44
41
  //# sourceMappingURL=Footer.main.js.map
@@ -1 +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"}
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 CHANGED
@@ -15,7 +15,7 @@ import $aegiv$react, {forwardRef as $aegiv$forwardRef} from "react";
15
15
  */
16
16
 
17
17
 
18
- function $8d68cc89c1f9278e$var$Footer(props, ref) {
18
+ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $aegiv$forwardRef)(function Footer(props, ref) {
19
19
  props = (0, $aegiv$useSlotProps)(props, 'footer');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $aegiv$useStyleProps)(otherProps);
@@ -25,10 +25,7 @@ function $8d68cc89c1f9278e$var$Footer(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
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);
28
+ });
32
29
 
33
30
 
34
31
  export {$8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer};
@@ -15,7 +15,7 @@ import $aegiv$react, {forwardRef as $aegiv$forwardRef} from "react";
15
15
  */
16
16
 
17
17
 
18
- function $8d68cc89c1f9278e$var$Footer(props, ref) {
18
+ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $aegiv$forwardRef)(function Footer(props, ref) {
19
19
  props = (0, $aegiv$useSlotProps)(props, 'footer');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $aegiv$useStyleProps)(otherProps);
@@ -25,10 +25,7 @@ function $8d68cc89c1f9278e$var$Footer(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
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);
28
+ });
32
29
 
33
30
 
34
31
  export {$8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer};
@@ -1 +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"}
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"}
@@ -25,7 +25,7 @@ $parcel$export(module.exports, "Header", () => $62d558b43ecd7a77$export$8b251419
25
25
  */
26
26
 
27
27
 
28
- function $62d558b43ecd7a77$var$Header(props, ref) {
28
+ const $62d558b43ecd7a77$export$8b251419efc915eb = /*#__PURE__*/ (0, $d6W1H$react.forwardRef)(function Header(props, ref) {
29
29
  props = (0, $d6W1H$reactspectrumutils.useSlotProps)(props, 'header');
30
30
  let { children: children, ...otherProps } = props;
31
31
  let { styleProps: styleProps } = (0, $d6W1H$reactspectrumutils.useStyleProps)(otherProps);
@@ -35,10 +35,7 @@ function $62d558b43ecd7a77$var$Header(props, ref) {
35
35
  ...styleProps,
36
36
  ref: domRef
37
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);
38
+ });
42
39
 
43
40
 
44
41
  //# sourceMappingURL=Header.main.js.map
@@ -1 +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"}
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 CHANGED
@@ -15,7 +15,7 @@ import $8vCvm$react, {forwardRef as $8vCvm$forwardRef} from "react";
15
15
  */
16
16
 
17
17
 
18
- function $aedcc4886d2a392a$var$Header(props, ref) {
18
+ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $8vCvm$forwardRef)(function Header(props, ref) {
19
19
  props = (0, $8vCvm$useSlotProps)(props, 'header');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $8vCvm$useStyleProps)(otherProps);
@@ -25,10 +25,7 @@ function $aedcc4886d2a392a$var$Header(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
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);
28
+ });
32
29
 
33
30
 
34
31
  export {$aedcc4886d2a392a$export$8b251419efc915eb as Header};
@@ -15,7 +15,7 @@ import $8vCvm$react, {forwardRef as $8vCvm$forwardRef} from "react";
15
15
  */
16
16
 
17
17
 
18
- function $aedcc4886d2a392a$var$Header(props, ref) {
18
+ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $8vCvm$forwardRef)(function Header(props, ref) {
19
19
  props = (0, $8vCvm$useSlotProps)(props, 'header');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $8vCvm$useStyleProps)(otherProps);
@@ -25,10 +25,7 @@ function $aedcc4886d2a392a$var$Header(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
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);
28
+ });
32
29
 
33
30
 
34
31
  export {$aedcc4886d2a392a$export$8b251419efc915eb as Header};
@@ -1 +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"}
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 CHANGED
@@ -25,7 +25,7 @@ $parcel$export(module.exports, "View", () => $6c848be8e8bffe98$export$27a5bd065a
25
25
  */
26
26
 
27
27
 
28
- function $6c848be8e8bffe98$var$View(props, ref) {
28
+ const $6c848be8e8bffe98$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $1gR9I$react.forwardRef)(function View(props, ref) {
29
29
  props = (0, $1gR9I$reactspectrumutils.useSlotProps)(props);
30
30
  let { elementType: ElementType = 'div', children: children, ...otherProps } = props;
31
31
  let { styleProps: styleProps } = (0, $1gR9I$reactspectrumutils.useStyleProps)(props, (0, $1gR9I$reactspectrumutils.viewStyleProps));
@@ -35,11 +35,7 @@ function $6c848be8e8bffe98$var$View(props, ref) {
35
35
  ...styleProps,
36
36
  ref: domRef
37
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);
38
+ });
43
39
 
44
40
 
45
41
  //# sourceMappingURL=View.main.js.map
@@ -1 +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"}
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 CHANGED
@@ -15,7 +15,7 @@ import $aYQyM$react, {forwardRef as $aYQyM$forwardRef} from "react";
15
15
  */
16
16
 
17
17
 
18
- function $b9606c0c41d55371$var$View(props, ref) {
18
+ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $aYQyM$forwardRef)(function View(props, ref) {
19
19
  props = (0, $aYQyM$useSlotProps)(props);
20
20
  let { elementType: ElementType = 'div', children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $aYQyM$useStyleProps)(props, (0, $aYQyM$viewStyleProps));
@@ -25,11 +25,7 @@ function $b9606c0c41d55371$var$View(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
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);
28
+ });
33
29
 
34
30
 
35
31
  export {$b9606c0c41d55371$export$27a5bd065ad55220 as View};
@@ -15,7 +15,7 @@ import $aYQyM$react, {forwardRef as $aYQyM$forwardRef} from "react";
15
15
  */
16
16
 
17
17
 
18
- function $b9606c0c41d55371$var$View(props, ref) {
18
+ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $aYQyM$forwardRef)(function View(props, ref) {
19
19
  props = (0, $aYQyM$useSlotProps)(props);
20
20
  let { elementType: ElementType = 'div', children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $aYQyM$useStyleProps)(props, (0, $aYQyM$viewStyleProps));
@@ -25,11 +25,7 @@ function $b9606c0c41d55371$var$View(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
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);
28
+ });
33
29
 
34
30
 
35
31
  export {$b9606c0c41d55371$export$27a5bd065ad55220 as View};
@@ -1 +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"}
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"}
@@ -1 +1 @@
1
- {"mappings":";;;AAwCA;;;GAGG;AACH,OAAA,MAAM,MAA4B,CAAC,CAA0B,SAAhB,YAAY,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,GAAG;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAC,KAAK,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"}
1
+ {"mappings":";;;AAkBA;;;GAGG;AACH,OAAO,MAAM,MAoBP,CAAC,CAA0B,SAAhB,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/view",
3
- "version": "3.6.14",
3
+ "version": "3.6.16",
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.26.0",
40
- "@react-spectrum/utils": "^3.12.0",
41
- "@react-types/shared": "^3.26.0",
42
- "@react-types/view": "^3.4.13",
39
+ "@react-aria/utils": "^3.28.0",
40
+ "@react-spectrum/utils": "^3.12.2",
41
+ "@react-types/shared": "^3.28.0",
42
+ "@react-types/view": "^3.4.15",
43
43
  "@swc/helpers": "^0.5.0"
44
44
  },
45
45
  "devDependencies": {
@@ -47,10 +47,11 @@
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@react-spectrum/provider": "^3.0.0",
50
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
50
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
51
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
51
52
  },
52
53
  "publishConfig": {
53
54
  "access": "public"
54
55
  },
55
- "gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
56
+ "gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726"
56
57
  }
package/src/Content.tsx CHANGED
@@ -16,7 +16,10 @@ import {DOMRef} from '@react-types/shared';
16
16
  import {filterDOMProps} from '@react-aria/utils';
17
17
  import React, {forwardRef} from 'react';
18
18
 
19
- function Content(props: ContentProps, ref: DOMRef) {
19
+ /**
20
+ * Content represents the primary content within a Spectrum container.
21
+ */
22
+ export const Content = forwardRef(function Content(props: ContentProps, ref: DOMRef) {
20
23
  props = useSlotProps(props, 'content');
21
24
  let {
22
25
  children,
@@ -32,10 +35,4 @@ function Content(props: ContentProps, ref: DOMRef) {
32
35
  </ClearSlots>
33
36
  </section>
34
37
  );
35
- }
36
-
37
- /**
38
- * Content represents the primary content within a Spectrum container.
39
- */
40
- const _Content = forwardRef(Content);
41
- export {_Content as Content};
38
+ });
package/src/Footer.tsx CHANGED
@@ -16,7 +16,10 @@ import {filterDOMProps} from '@react-aria/utils';
16
16
  import {FooterProps} from '@react-types/view';
17
17
  import React, {forwardRef} from 'react';
18
18
 
19
- function Footer(props: FooterProps, ref: DOMRef) {
19
+ /**
20
+ * Footer represents a footer within a Spectrum container.
21
+ */
22
+ export const Footer = forwardRef(function Footer(props: FooterProps, ref: DOMRef) {
20
23
  props = useSlotProps(props, 'footer');
21
24
  let {
22
25
  children,
@@ -32,10 +35,4 @@ function Footer(props: FooterProps, ref: DOMRef) {
32
35
  </ClearSlots>
33
36
  </footer>
34
37
  );
35
- }
36
-
37
- /**
38
- * Footer represents a footer within a Spectrum container.
39
- */
40
- const _Footer = forwardRef(Footer);
41
- export {_Footer as Footer};
38
+ });
package/src/Header.tsx CHANGED
@@ -16,7 +16,10 @@ import {filterDOMProps} from '@react-aria/utils';
16
16
  import {HeaderProps} from '@react-types/view';
17
17
  import React, {forwardRef} from 'react';
18
18
 
19
- function Header(props: HeaderProps, ref: DOMRef) {
19
+ /**
20
+ * Header represents a header within a Spectrum container.
21
+ */
22
+ export const Header = forwardRef(function Header(props: HeaderProps, ref: DOMRef) {
20
23
  props = useSlotProps(props, 'header');
21
24
  let {
22
25
  children,
@@ -32,10 +35,4 @@ function Header(props: HeaderProps, ref: DOMRef) {
32
35
  </ClearSlots>
33
36
  </header>
34
37
  );
35
- }
36
-
37
- /**
38
- * Header represents a header within a Spectrum container.
39
- */
40
- const _Header = forwardRef(Header);
41
- export {_Header as Header};
38
+ });
package/src/View.tsx CHANGED
@@ -16,7 +16,11 @@ import {filterDOMProps} from '@react-aria/utils';
16
16
  import React, {forwardRef, ReactElement} from 'react';
17
17
  import {ViewProps} from '@react-types/view';
18
18
 
19
- function View<C extends ColorVersion>(props: ViewProps<C>, ref: DOMRef) {
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) {
20
24
  props = useSlotProps(props);
21
25
  let {
22
26
  elementType: ElementType = 'div',
@@ -36,11 +40,4 @@ function View<C extends ColorVersion>(props: ViewProps<C>, ref: DOMRef) {
36
40
  </ClearSlots>
37
41
  </ElementType>
38
42
  );
39
- }
40
-
41
- /**
42
- * View is a general purpose container with no specific semantics that can be used for custom styling purposes.
43
- * It supports Spectrum style props to ensure consistency with other Spectrum components.
44
- */
45
- const _View = forwardRef(View) as <C extends ColorVersion = 5>(props: ViewProps<C> & {ref?: DOMRef}) => ReactElement;
46
- export {_View as View};
43
+ }) as <C extends ColorVersion = 5>(props: ViewProps<C> & {ref?: DOMRef}) => ReactElement;