@react-spectrum/view 3.6.2 → 3.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/import.mjs +8 -8
- package/dist/main.js +8 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +8 -8
- package/dist/module.js.map +1 -1
- package/package.json +7 -7
package/dist/import.mjs
CHANGED
@@ -28,8 +28,8 @@ import $bJbxN$react, {forwardRef as $bJbxN$forwardRef} from "react";
|
|
28
28
|
|
29
29
|
function $b9606c0c41d55371$var$View(props, ref) {
|
30
30
|
props = (0, $bJbxN$useSlotProps)(props);
|
31
|
-
let { elementType: ElementType = "div"
|
32
|
-
let { styleProps: styleProps
|
31
|
+
let { elementType: ElementType = "div", children: children, ...otherProps } = props;
|
32
|
+
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(props, (0, $bJbxN$viewStyleProps));
|
33
33
|
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
34
34
|
return /*#__PURE__*/ (0, $bJbxN$react).createElement(ElementType, {
|
35
35
|
...(0, $bJbxN$filterDOMProps)(otherProps),
|
@@ -58,8 +58,8 @@ function $b9606c0c41d55371$var$View(props, ref) {
|
|
58
58
|
|
59
59
|
function $0a7c18a2ef74b280$var$Content(props, ref) {
|
60
60
|
props = (0, $bJbxN$useSlotProps)(props, "content");
|
61
|
-
let { children: children
|
62
|
-
let { styleProps: styleProps
|
61
|
+
let { children: children, ...otherProps } = props;
|
62
|
+
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
63
63
|
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
64
64
|
return /*#__PURE__*/ (0, $bJbxN$react).createElement("section", {
|
65
65
|
...(0, $bJbxN$filterDOMProps)(otherProps),
|
@@ -87,8 +87,8 @@ function $0a7c18a2ef74b280$var$Content(props, ref) {
|
|
87
87
|
|
88
88
|
function $8d68cc89c1f9278e$var$Footer(props, ref) {
|
89
89
|
props = (0, $bJbxN$useSlotProps)(props, "footer");
|
90
|
-
let { children: children
|
91
|
-
let { styleProps: styleProps
|
90
|
+
let { children: children, ...otherProps } = props;
|
91
|
+
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
92
92
|
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
93
93
|
return /*#__PURE__*/ (0, $bJbxN$react).createElement("footer", {
|
94
94
|
...(0, $bJbxN$filterDOMProps)(otherProps),
|
@@ -116,8 +116,8 @@ function $8d68cc89c1f9278e$var$Footer(props, ref) {
|
|
116
116
|
|
117
117
|
function $aedcc4886d2a392a$var$Header(props, ref) {
|
118
118
|
props = (0, $bJbxN$useSlotProps)(props, "header");
|
119
|
-
let { children: children
|
120
|
-
let { styleProps: styleProps
|
119
|
+
let { children: children, ...otherProps } = props;
|
120
|
+
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
121
121
|
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
122
122
|
return /*#__PURE__*/ (0, $bJbxN$react).createElement("header", {
|
123
123
|
...(0, $bJbxN$filterDOMProps)(otherProps),
|
package/dist/main.js
CHANGED
@@ -39,8 +39,8 @@ $parcel$export(module.exports, "Header", () => $62d558b43ecd7a77$export$8b251419
|
|
39
39
|
|
40
40
|
function $6c848be8e8bffe98$var$View(props, ref) {
|
41
41
|
props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props);
|
42
|
-
let { elementType: ElementType = "div"
|
43
|
-
let { styleProps: styleProps
|
42
|
+
let { elementType: ElementType = "div", children: children, ...otherProps } = props;
|
43
|
+
let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(props, (0, $3YgEH$reactspectrumutils.viewStyleProps));
|
44
44
|
let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
|
45
45
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement(ElementType, {
|
46
46
|
...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
|
@@ -69,8 +69,8 @@ function $6c848be8e8bffe98$var$View(props, ref) {
|
|
69
69
|
|
70
70
|
function $2d8ae89d4e4c1d41$var$Content(props, ref) {
|
71
71
|
props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props, "content");
|
72
|
-
let { children: children
|
73
|
-
let { styleProps: styleProps
|
72
|
+
let { children: children, ...otherProps } = props;
|
73
|
+
let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(otherProps);
|
74
74
|
let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
|
75
75
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement("section", {
|
76
76
|
...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
|
@@ -98,8 +98,8 @@ function $2d8ae89d4e4c1d41$var$Content(props, ref) {
|
|
98
98
|
|
99
99
|
function $e266c0b33fd8525d$var$Footer(props, ref) {
|
100
100
|
props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props, "footer");
|
101
|
-
let { children: children
|
102
|
-
let { styleProps: styleProps
|
101
|
+
let { children: children, ...otherProps } = props;
|
102
|
+
let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(otherProps);
|
103
103
|
let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
|
104
104
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement("footer", {
|
105
105
|
...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
|
@@ -127,8 +127,8 @@ function $e266c0b33fd8525d$var$Footer(props, ref) {
|
|
127
127
|
|
128
128
|
function $62d558b43ecd7a77$var$Header(props, ref) {
|
129
129
|
props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props, "header");
|
130
|
-
let { children: children
|
131
|
-
let { styleProps: styleProps
|
130
|
+
let { children: children, ...otherProps } = props;
|
131
|
+
let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(otherProps);
|
132
132
|
let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
|
133
133
|
return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement("header", {
|
134
134
|
...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
|
package/dist/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;CAUC;;;AAQD,SAAS,2BAA6B,KAAmB,EAAE,GAAW;IACpE,QAAQ,CAAA,GAAA,sCAAW,EAAE;IACrB,IAAI,EACF,aAAa,cAAc,KAAK,
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;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;;;AC5CzB;;;;;;;;;;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;;;ACvC5B;;;;;;;;;;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;;;ACvC3B;;;;;;;;;;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/index.ts","packages/@react-spectrum/view/src/View.tsx","packages/@react-spectrum/view/src/Content.tsx","packages/@react-spectrum/view/src/Footer.tsx","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/// <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","/*\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","/*\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","/*\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","/*\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":"main.js.map"}
|
package/dist/module.js
CHANGED
@@ -28,8 +28,8 @@ import $bJbxN$react, {forwardRef as $bJbxN$forwardRef} from "react";
|
|
28
28
|
|
29
29
|
function $b9606c0c41d55371$var$View(props, ref) {
|
30
30
|
props = (0, $bJbxN$useSlotProps)(props);
|
31
|
-
let { elementType: ElementType = "div"
|
32
|
-
let { styleProps: styleProps
|
31
|
+
let { elementType: ElementType = "div", children: children, ...otherProps } = props;
|
32
|
+
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(props, (0, $bJbxN$viewStyleProps));
|
33
33
|
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
34
34
|
return /*#__PURE__*/ (0, $bJbxN$react).createElement(ElementType, {
|
35
35
|
...(0, $bJbxN$filterDOMProps)(otherProps),
|
@@ -58,8 +58,8 @@ function $b9606c0c41d55371$var$View(props, ref) {
|
|
58
58
|
|
59
59
|
function $0a7c18a2ef74b280$var$Content(props, ref) {
|
60
60
|
props = (0, $bJbxN$useSlotProps)(props, "content");
|
61
|
-
let { children: children
|
62
|
-
let { styleProps: styleProps
|
61
|
+
let { children: children, ...otherProps } = props;
|
62
|
+
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
63
63
|
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
64
64
|
return /*#__PURE__*/ (0, $bJbxN$react).createElement("section", {
|
65
65
|
...(0, $bJbxN$filterDOMProps)(otherProps),
|
@@ -87,8 +87,8 @@ function $0a7c18a2ef74b280$var$Content(props, ref) {
|
|
87
87
|
|
88
88
|
function $8d68cc89c1f9278e$var$Footer(props, ref) {
|
89
89
|
props = (0, $bJbxN$useSlotProps)(props, "footer");
|
90
|
-
let { children: children
|
91
|
-
let { styleProps: styleProps
|
90
|
+
let { children: children, ...otherProps } = props;
|
91
|
+
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
92
92
|
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
93
93
|
return /*#__PURE__*/ (0, $bJbxN$react).createElement("footer", {
|
94
94
|
...(0, $bJbxN$filterDOMProps)(otherProps),
|
@@ -116,8 +116,8 @@ function $8d68cc89c1f9278e$var$Footer(props, ref) {
|
|
116
116
|
|
117
117
|
function $aedcc4886d2a392a$var$Header(props, ref) {
|
118
118
|
props = (0, $bJbxN$useSlotProps)(props, "header");
|
119
|
-
let { children: children
|
120
|
-
let { styleProps: styleProps
|
119
|
+
let { children: children, ...otherProps } = props;
|
120
|
+
let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
|
121
121
|
let domRef = (0, $bJbxN$useDOMRef)(ref);
|
122
122
|
return /*#__PURE__*/ (0, $bJbxN$react).createElement("header", {
|
123
123
|
...(0, $bJbxN$filterDOMProps)(otherProps),
|
package/dist/module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;CAUC;;;AAQD,SAAS,2BAA6B,KAAmB,EAAE,GAAW;IACpE,QAAQ,CAAA,GAAA,mBAAW,EAAE;IACrB,IAAI,EACF,aAAa,cAAc,KAAK,
|
1
|
+
{"mappings":";;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;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;;;AC5CzB;;;;;;;;;;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;;;ACvC5B;;;;;;;;;;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;;;ACvC3B;;;;;;;;;;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/index.ts","packages/@react-spectrum/view/src/View.tsx","packages/@react-spectrum/view/src/Content.tsx","packages/@react-spectrum/view/src/Footer.tsx","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/// <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","/*\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","/*\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","/*\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","/*\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":"module.js.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.4",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -36,11 +36,11 @@
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@react-aria/i18n": "^3.8.
|
40
|
-
"@react-aria/utils": "^3.
|
41
|
-
"@react-spectrum/utils": "^3.
|
42
|
-
"@react-types/shared": "^3.
|
43
|
-
"@react-types/view": "^3.4.
|
39
|
+
"@react-aria/i18n": "^3.8.4",
|
40
|
+
"@react-aria/utils": "^3.21.1",
|
41
|
+
"@react-spectrum/utils": "^3.11.1",
|
42
|
+
"@react-types/shared": "^3.21.0",
|
43
|
+
"@react-types/view": "^3.4.5",
|
44
44
|
"@swc/helpers": "^0.5.0"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
@@ -53,5 +53,5 @@
|
|
53
53
|
"publishConfig": {
|
54
54
|
"access": "public"
|
55
55
|
},
|
56
|
-
"gitHead": "
|
56
|
+
"gitHead": "3ecf62dcceea437cb12df1851636dd491bb6591c"
|
57
57
|
}
|