@react-spectrum/view 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,137 @@
1
+ import {useSlotProps as $bJbxN$useSlotProps, useStyleProps as $bJbxN$useStyleProps, viewStyleProps as $bJbxN$viewStyleProps, useDOMRef as $bJbxN$useDOMRef, ClearSlots as $bJbxN$ClearSlots} from "@react-spectrum/utils";
2
+ import {filterDOMProps as $bJbxN$filterDOMProps} from "@react-aria/utils";
3
+ import $bJbxN$react, {forwardRef as $bJbxN$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
+ */ /// <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
+
60
+ function $0a7c18a2ef74b280$var$Content(props, ref) {
61
+ props = (0, $bJbxN$useSlotProps)(props, "content");
62
+ let { children: children , ...otherProps } = props;
63
+ let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
64
+ let domRef = (0, $bJbxN$useDOMRef)(ref);
65
+ return /*#__PURE__*/ (0, $bJbxN$react).createElement("section", {
66
+ ...(0, $bJbxN$filterDOMProps)(otherProps),
67
+ ...styleProps,
68
+ ref: domRef
69
+ }, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
70
+ }
71
+ /**
72
+ * Content represents the primary content within a Spectrum container.
73
+ */ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $bJbxN$forwardRef)($0a7c18a2ef74b280$var$Content);
74
+
75
+
76
+ /*
77
+ * Copyright 2020 Adobe. All rights reserved.
78
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
79
+ * you may not use this file except in compliance with the License. You may obtain a copy
80
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
81
+ *
82
+ * Unless required by applicable law or agreed to in writing, software distributed under
83
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
84
+ * OF ANY KIND, either express or implied. See the License for the specific language
85
+ * governing permissions and limitations under the License.
86
+ */
87
+
88
+
89
+ function $8d68cc89c1f9278e$var$Footer(props, ref) {
90
+ props = (0, $bJbxN$useSlotProps)(props, "footer");
91
+ let { children: children , ...otherProps } = props;
92
+ let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
93
+ let domRef = (0, $bJbxN$useDOMRef)(ref);
94
+ return /*#__PURE__*/ (0, $bJbxN$react).createElement("footer", {
95
+ ...(0, $bJbxN$filterDOMProps)(otherProps),
96
+ ...styleProps,
97
+ ref: domRef
98
+ }, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
99
+ }
100
+ /**
101
+ * Footer represents a footer within a Spectrum container.
102
+ */ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $bJbxN$forwardRef)($8d68cc89c1f9278e$var$Footer);
103
+
104
+
105
+ /*
106
+ * Copyright 2020 Adobe. All rights reserved.
107
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
108
+ * you may not use this file except in compliance with the License. You may obtain a copy
109
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
110
+ *
111
+ * Unless required by applicable law or agreed to in writing, software distributed under
112
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
113
+ * OF ANY KIND, either express or implied. See the License for the specific language
114
+ * governing permissions and limitations under the License.
115
+ */
116
+
117
+
118
+ function $aedcc4886d2a392a$var$Header(props, ref) {
119
+ props = (0, $bJbxN$useSlotProps)(props, "header");
120
+ let { children: children , ...otherProps } = props;
121
+ let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
122
+ let domRef = (0, $bJbxN$useDOMRef)(ref);
123
+ return /*#__PURE__*/ (0, $bJbxN$react).createElement("header", {
124
+ ...(0, $bJbxN$filterDOMProps)(otherProps),
125
+ ...styleProps,
126
+ ref: domRef
127
+ }, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
128
+ }
129
+ /**
130
+ * Header represents a header within a Spectrum container.
131
+ */ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $bJbxN$forwardRef)($aedcc4886d2a392a$var$Header);
132
+
133
+
134
+
135
+
136
+ export {$b9606c0c41d55371$export$27a5bd065ad55220 as View, $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content, $8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer, $aedcc4886d2a392a$export$8b251419efc915eb as Header};
137
+ //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -13,82 +13,133 @@ $parcel$export(module.exports, "View", () => $6c848be8e8bffe98$export$27a5bd065a
13
13
  $parcel$export(module.exports, "Content", () => $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2);
14
14
  $parcel$export(module.exports, "Footer", () => $e266c0b33fd8525d$export$a06f1c675e846f6f);
15
15
  $parcel$export(module.exports, "Header", () => $62d558b43ecd7a77$export$8b251419efc915eb);
16
-
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
+ */ /// <reference types="css-module-types" />
27
+ /*
28
+ * Copyright 2020 Adobe. All rights reserved.
29
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
30
+ * you may not use this file except in compliance with the License. You may obtain a copy
31
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
32
+ *
33
+ * Unless required by applicable law or agreed to in writing, software distributed under
34
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
35
+ * OF ANY KIND, either express or implied. See the License for the specific language
36
+ * governing permissions and limitations under the License.
37
+ */
17
38
 
18
39
 
19
40
  function $6c848be8e8bffe98$var$View(props, ref) {
20
- props = $3YgEH$reactspectrumutils.useSlotProps(props);
21
- let { elementType: ElementType = 'div' , children: children , ...otherProps } = props;
22
- let { styleProps: styleProps } = $3YgEH$reactspectrumutils.useStyleProps(props, $3YgEH$reactspectrumutils.viewStyleProps);
23
- let domRef = $3YgEH$reactspectrumutils.useDOMRef(ref);
24
- return(/*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement(ElementType, {
25
- ...$3YgEH$reactariautils.filterDOMProps(otherProps),
41
+ props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props);
42
+ let { elementType: ElementType = "div" , children: children , ...otherProps } = props;
43
+ let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(props, (0, $3YgEH$reactspectrumutils.viewStyleProps));
44
+ let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
45
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement(ElementType, {
46
+ ...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
26
47
  ...styleProps,
27
48
  ref: domRef
28
- }, /*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement($3YgEH$reactspectrumutils.ClearSlots, null, children)));
49
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement((0, $3YgEH$reactspectrumutils.ClearSlots), null, children));
29
50
  }
30
51
  /**
31
52
  * View is a general purpose container with no specific semantics that can be used for custom styling purposes.
32
53
  * It supports Spectrum style props to ensure consistency with other Spectrum components.
33
- */ const $6c848be8e8bffe98$export$27a5bd065ad55220 = /*#__PURE__*/ $3YgEH$react.forwardRef($6c848be8e8bffe98$var$View);
34
-
54
+ */ const $6c848be8e8bffe98$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $3YgEH$react.forwardRef)($6c848be8e8bffe98$var$View);
35
55
 
36
56
 
57
+ /*
58
+ * Copyright 2020 Adobe. All rights reserved.
59
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
60
+ * you may not use this file except in compliance with the License. You may obtain a copy
61
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
62
+ *
63
+ * Unless required by applicable law or agreed to in writing, software distributed under
64
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
65
+ * OF ANY KIND, either express or implied. See the License for the specific language
66
+ * governing permissions and limitations under the License.
67
+ */
37
68
 
38
69
 
39
70
 
40
71
  function $2d8ae89d4e4c1d41$var$Content(props, ref) {
41
- props = $3YgEH$reactspectrumutils.useSlotProps(props, 'content');
72
+ props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props, "content");
42
73
  let { children: children , ...otherProps } = props;
43
- let { styleProps: styleProps } = $3YgEH$reactspectrumutils.useStyleProps(otherProps);
44
- let domRef = $3YgEH$reactspectrumutils.useDOMRef(ref);
45
- return(/*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement("section", {
46
- ...$3YgEH$reactariautils.filterDOMProps(otherProps),
74
+ let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(otherProps);
75
+ let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
76
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement("section", {
77
+ ...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
47
78
  ...styleProps,
48
79
  ref: domRef
49
- }, /*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement($3YgEH$reactspectrumutils.ClearSlots, null, children)));
80
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement((0, $3YgEH$reactspectrumutils.ClearSlots), null, children));
50
81
  }
51
82
  /**
52
83
  * Content represents the primary content within a Spectrum container.
53
- */ const $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2 = /*#__PURE__*/ $3YgEH$react.forwardRef($2d8ae89d4e4c1d41$var$Content);
54
-
84
+ */ const $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $3YgEH$react.forwardRef)($2d8ae89d4e4c1d41$var$Content);
55
85
 
56
86
 
87
+ /*
88
+ * Copyright 2020 Adobe. All rights reserved.
89
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
90
+ * you may not use this file except in compliance with the License. You may obtain a copy
91
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
92
+ *
93
+ * Unless required by applicable law or agreed to in writing, software distributed under
94
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
95
+ * OF ANY KIND, either express or implied. See the License for the specific language
96
+ * governing permissions and limitations under the License.
97
+ */
57
98
 
58
99
 
59
100
  function $e266c0b33fd8525d$var$Footer(props, ref) {
60
- props = $3YgEH$reactspectrumutils.useSlotProps(props, 'footer');
101
+ props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props, "footer");
61
102
  let { children: children , ...otherProps } = props;
62
- let { styleProps: styleProps } = $3YgEH$reactspectrumutils.useStyleProps(otherProps);
63
- let domRef = $3YgEH$reactspectrumutils.useDOMRef(ref);
64
- return(/*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement("footer", {
65
- ...$3YgEH$reactariautils.filterDOMProps(otherProps),
103
+ let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(otherProps);
104
+ let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
105
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement("footer", {
106
+ ...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
66
107
  ...styleProps,
67
108
  ref: domRef
68
- }, /*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement($3YgEH$reactspectrumutils.ClearSlots, null, children)));
109
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement((0, $3YgEH$reactspectrumutils.ClearSlots), null, children));
69
110
  }
70
111
  /**
71
112
  * Footer represents a footer within a Spectrum container.
72
- */ const $e266c0b33fd8525d$export$a06f1c675e846f6f = /*#__PURE__*/ $3YgEH$react.forwardRef($e266c0b33fd8525d$var$Footer);
73
-
113
+ */ const $e266c0b33fd8525d$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $3YgEH$react.forwardRef)($e266c0b33fd8525d$var$Footer);
74
114
 
75
115
 
116
+ /*
117
+ * Copyright 2020 Adobe. All rights reserved.
118
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
119
+ * you may not use this file except in compliance with the License. You may obtain a copy
120
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
121
+ *
122
+ * Unless required by applicable law or agreed to in writing, software distributed under
123
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
124
+ * OF ANY KIND, either express or implied. See the License for the specific language
125
+ * governing permissions and limitations under the License.
126
+ */
76
127
 
77
128
 
78
129
  function $62d558b43ecd7a77$var$Header(props, ref) {
79
- props = $3YgEH$reactspectrumutils.useSlotProps(props, 'header');
130
+ props = (0, $3YgEH$reactspectrumutils.useSlotProps)(props, "header");
80
131
  let { children: children , ...otherProps } = props;
81
- let { styleProps: styleProps } = $3YgEH$reactspectrumutils.useStyleProps(otherProps);
82
- let domRef = $3YgEH$reactspectrumutils.useDOMRef(ref);
83
- return(/*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement("header", {
84
- ...$3YgEH$reactariautils.filterDOMProps(otherProps),
132
+ let { styleProps: styleProps } = (0, $3YgEH$reactspectrumutils.useStyleProps)(otherProps);
133
+ let domRef = (0, $3YgEH$reactspectrumutils.useDOMRef)(ref);
134
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement("header", {
135
+ ...(0, $3YgEH$reactariautils.filterDOMProps)(otherProps),
85
136
  ...styleProps,
86
137
  ref: domRef
87
- }, /*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement($3YgEH$reactspectrumutils.ClearSlots, null, children)));
138
+ }, /*#__PURE__*/ (0, ($parcel$interopDefault($3YgEH$react))).createElement((0, $3YgEH$reactspectrumutils.ClearSlots), null, children));
88
139
  }
89
140
  /**
90
141
  * Header represents a header within a Spectrum container.
91
- */ const $62d558b43ecd7a77$export$8b251419efc915eb = /*#__PURE__*/ $3YgEH$react.forwardRef($62d558b43ecd7a77$var$Header);
142
+ */ const $62d558b43ecd7a77$export$8b251419efc915eb = /*#__PURE__*/ (0, $3YgEH$react.forwardRef)($62d558b43ecd7a77$var$Header);
92
143
 
93
144
 
94
145
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;SCkBS,0BAAI,CAAyB,KAAmB,EAAE,GAAW,EAAE,CAAC;IACvE,KAAK,GAAG,sCAAY,CAAC,KAAK;IAC1B,GAAG,CAAC,CAAC,CACH,WAAW,EAAE,WAAW,GAAG,CAAK,iBAChC,QAAQ,MACL,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,KAAK,EAAE,wCAAc;IACtD,GAAG,CAAC,MAAM,GAAG,mCAAS,CAAC,GAAG;IAE1B,MAAM,oEACH,WAAW;WACN,oCAAc,CAAC,UAAU;WACzB,UAAU;QACd,GAAG,EAAE,MAAM;0EACV,oCAAU,QACR,QAAQ;AAIjB,CAAC;AAED,EAGG,AA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AAC,CAAC,WACH,QAAQ,MACL,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,MAAM,GAAG,mCAAS,CAAC,GAAG;IAE1B,MAAM,oEACH,CAAM;WAAK,oCAAc,CAAC,UAAU;WAAO,UAAU;QAAE,GAAG,EAAE,MAAM;0EAChE,oCAAU,QACR,QAAQ;AAIjB,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,KAAK,CAAC,yCAAO,iBAAG,uBAAU,CAAC,4BAAM;;","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} 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';\nimport {useStyleProps} from '@react-spectrum/utils';\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"}
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;CAUC,GAED;;;AAMA,SAAS,2BAA6B,KAAmB,EAAE,GAAW,EAAE;IACtE,QAAQ,CAAA,GAAA,sCAAW,EAAE;IACrB,IAAI,EACF,aAAa,cAAc,KAAK,CAAA,YAChC,SAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,WAAU,EAAC,GAAG,CAAA,GAAA,uCAAa,AAAD,EAAE,OAAO,CAAA,GAAA,wCAAc,AAAD;IACrD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAc,AAAD,EAAE,WAAW;QAC7B,GAAG,UAAU;QACd,KAAK;qBACL,0DAAC,CAAA,GAAA,oCAAS,SACP;AAIT;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,uBAAS,EAAE;;ADhCzB;AEZA;;;;;;;;;;CAUC,GAED;;;;AAOA,SAAS,8BAAQ,KAAmB,EAAE,GAAW,EAAE;IACjD,QAAQ,CAAA,GAAA,sCAAY,AAAD,EAAE,OAAO;IAC5B,IAAI,YACF,SAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAA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AIT;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} 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';\nimport {useStyleProps} from '@react-spectrum/utils';\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
@@ -2,82 +2,133 @@ import {useSlotProps as $bJbxN$useSlotProps, useStyleProps as $bJbxN$useStylePro
2
2
  import {filterDOMProps as $bJbxN$filterDOMProps} from "@react-aria/utils";
3
3
  import $bJbxN$react, {forwardRef as $bJbxN$forwardRef} from "react";
4
4
 
5
-
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
+ */ /// <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
+ */
6
27
 
7
28
 
8
29
  function $b9606c0c41d55371$var$View(props, ref) {
9
- props = $bJbxN$useSlotProps(props);
10
- let { elementType: ElementType = 'div' , children: children , ...otherProps } = props;
11
- let { styleProps: styleProps } = $bJbxN$useStyleProps(props, $bJbxN$viewStyleProps);
12
- let domRef = $bJbxN$useDOMRef(ref);
13
- return(/*#__PURE__*/ $bJbxN$react.createElement(ElementType, {
14
- ...$bJbxN$filterDOMProps(otherProps),
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),
15
36
  ...styleProps,
16
37
  ref: domRef
17
- }, /*#__PURE__*/ $bJbxN$react.createElement($bJbxN$ClearSlots, null, children)));
38
+ }, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
18
39
  }
19
40
  /**
20
41
  * View is a general purpose container with no specific semantics that can be used for custom styling purposes.
21
42
  * It supports Spectrum style props to ensure consistency with other Spectrum components.
22
- */ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ $bJbxN$forwardRef($b9606c0c41d55371$var$View);
23
-
43
+ */ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ (0, $bJbxN$forwardRef)($b9606c0c41d55371$var$View);
24
44
 
25
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
+ */
26
57
 
27
58
 
28
59
 
29
60
  function $0a7c18a2ef74b280$var$Content(props, ref) {
30
- props = $bJbxN$useSlotProps(props, 'content');
61
+ props = (0, $bJbxN$useSlotProps)(props, "content");
31
62
  let { children: children , ...otherProps } = props;
32
- let { styleProps: styleProps } = $bJbxN$useStyleProps(otherProps);
33
- let domRef = $bJbxN$useDOMRef(ref);
34
- return(/*#__PURE__*/ $bJbxN$react.createElement("section", {
35
- ...$bJbxN$filterDOMProps(otherProps),
63
+ let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
64
+ let domRef = (0, $bJbxN$useDOMRef)(ref);
65
+ return /*#__PURE__*/ (0, $bJbxN$react).createElement("section", {
66
+ ...(0, $bJbxN$filterDOMProps)(otherProps),
36
67
  ...styleProps,
37
68
  ref: domRef
38
- }, /*#__PURE__*/ $bJbxN$react.createElement($bJbxN$ClearSlots, null, children)));
69
+ }, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
39
70
  }
40
71
  /**
41
72
  * Content represents the primary content within a Spectrum container.
42
- */ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ $bJbxN$forwardRef($0a7c18a2ef74b280$var$Content);
43
-
73
+ */ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ (0, $bJbxN$forwardRef)($0a7c18a2ef74b280$var$Content);
44
74
 
45
75
 
76
+ /*
77
+ * Copyright 2020 Adobe. All rights reserved.
78
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
79
+ * you may not use this file except in compliance with the License. You may obtain a copy
80
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
81
+ *
82
+ * Unless required by applicable law or agreed to in writing, software distributed under
83
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
84
+ * OF ANY KIND, either express or implied. See the License for the specific language
85
+ * governing permissions and limitations under the License.
86
+ */
46
87
 
47
88
 
48
89
  function $8d68cc89c1f9278e$var$Footer(props, ref) {
49
- props = $bJbxN$useSlotProps(props, 'footer');
90
+ props = (0, $bJbxN$useSlotProps)(props, "footer");
50
91
  let { children: children , ...otherProps } = props;
51
- let { styleProps: styleProps } = $bJbxN$useStyleProps(otherProps);
52
- let domRef = $bJbxN$useDOMRef(ref);
53
- return(/*#__PURE__*/ $bJbxN$react.createElement("footer", {
54
- ...$bJbxN$filterDOMProps(otherProps),
92
+ let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
93
+ let domRef = (0, $bJbxN$useDOMRef)(ref);
94
+ return /*#__PURE__*/ (0, $bJbxN$react).createElement("footer", {
95
+ ...(0, $bJbxN$filterDOMProps)(otherProps),
55
96
  ...styleProps,
56
97
  ref: domRef
57
- }, /*#__PURE__*/ $bJbxN$react.createElement($bJbxN$ClearSlots, null, children)));
98
+ }, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
58
99
  }
59
100
  /**
60
101
  * Footer represents a footer within a Spectrum container.
61
- */ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ $bJbxN$forwardRef($8d68cc89c1f9278e$var$Footer);
62
-
102
+ */ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ (0, $bJbxN$forwardRef)($8d68cc89c1f9278e$var$Footer);
63
103
 
64
104
 
105
+ /*
106
+ * Copyright 2020 Adobe. All rights reserved.
107
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
108
+ * you may not use this file except in compliance with the License. You may obtain a copy
109
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
110
+ *
111
+ * Unless required by applicable law or agreed to in writing, software distributed under
112
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
113
+ * OF ANY KIND, either express or implied. See the License for the specific language
114
+ * governing permissions and limitations under the License.
115
+ */
65
116
 
66
117
 
67
118
  function $aedcc4886d2a392a$var$Header(props, ref) {
68
- props = $bJbxN$useSlotProps(props, 'header');
119
+ props = (0, $bJbxN$useSlotProps)(props, "header");
69
120
  let { children: children , ...otherProps } = props;
70
- let { styleProps: styleProps } = $bJbxN$useStyleProps(otherProps);
71
- let domRef = $bJbxN$useDOMRef(ref);
72
- return(/*#__PURE__*/ $bJbxN$react.createElement("header", {
73
- ...$bJbxN$filterDOMProps(otherProps),
121
+ let { styleProps: styleProps } = (0, $bJbxN$useStyleProps)(otherProps);
122
+ let domRef = (0, $bJbxN$useDOMRef)(ref);
123
+ return /*#__PURE__*/ (0, $bJbxN$react).createElement("header", {
124
+ ...(0, $bJbxN$filterDOMProps)(otherProps),
74
125
  ...styleProps,
75
126
  ref: domRef
76
- }, /*#__PURE__*/ $bJbxN$react.createElement($bJbxN$ClearSlots, null, children)));
127
+ }, /*#__PURE__*/ (0, $bJbxN$react).createElement((0, $bJbxN$ClearSlots), null, children));
77
128
  }
78
129
  /**
79
130
  * Header represents a header within a Spectrum container.
80
- */ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ $bJbxN$forwardRef($aedcc4886d2a392a$var$Header);
131
+ */ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ (0, $bJbxN$forwardRef)($aedcc4886d2a392a$var$Header);
81
132
 
82
133
 
83
134
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;SCkBS,0BAAI,CAAyB,KAAmB,EAAE,GAAW,EAAE,CAAC;IACvE,KAAK,GAAG,mBAAY,CAAC,KAAK;IAC1B,GAAG,CAAC,CAAC,CACH,WAAW,EAAE,WAAW,GAAG,CAAK,iBAChC,QAAQ,MACL,UAAU,CACf,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,KAAK,EAAE,qBAAc;IACtD,GAAG,CAAC,MAAM,GAAG,gBAAS,CAAC,GAAG;IAE1B,MAAM,0CACH,WAAW;WACN,qBAAc,CAAC,UAAU;WACzB,UAAU;QACd,GAAG,EAAE,MAAM;gDACV,iBAAU,QACR,QAAQ;AAIjB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,KAAK,CAAC,yCAAK,iBAAG,iBAAU,CAAC,0BAAI;;;;;;;SCzBpB,6BAAO,CAAC,KAAmB,EAAE,GAAW,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AAU;IAC3C,GAAG,CAAC,MAAM,GAAG,gBAAS,CAAC,GAAG;IAE1B,MAAM,0CACH,CAAM;WAAK,qBAAc,CAAC,UAAU;WAAO,UAAU;QAAE,GAAG,EAAE,MAAM;gDAChE,iBAAU,QACR,QAAQ;AAIjB,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,KAAK,CAAC,yCAAO,iBAAG,iBAAU,CAAC,4BAAM;;","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} 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';\nimport {useStyleProps} from '@react-spectrum/utils';\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"}
1
+ {"mappings":";;;;AAAA;;;;;;;;;;CAUC,GACD,0CAA0C;ACX1C;;;;;;;;;;CAUC,GAED;;;AAMA,SAAS,2BAA6B,KAAmB,EAAE,GAAW,EAAE;IACtE,QAAQ,CAAA,GAAA,mBAAW,EAAE;IACrB,IAAI,EACF,aAAa,cAAc,KAAK,CAAA,YAChC,SAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,WAAU,EAAC,GAAG,CAAA,GAAA,oBAAa,AAAD,EAAE,OAAO,CAAA,GAAA,qBAAc,AAAD;IACrD,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAc,AAAD,EAAE,WAAW;QAC7B,GAAG,UAAU;QACd,KAAK;qBACL,gCAAC,CAAA,GAAA,iBAAS,SACP;AAIT;AAEA;;;CAGC,GACD,MAAM,0DAAQ,CAAA,GAAA,iBAAS,EAAE;;ADhCzB;AEZA;;;;;;;;;;CAUC,GAED;;;;AAOA,SAAS,8BAAQ,KAAmB,EAAE,GAAW,EAAE;IACjD,QAAQ,CAAA,GAAA,mBAAY,AAAD,EAAE,OAAO;IAC5B,IAAI,YACF,SAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,WAAU,EAAC,GAAG,CAAA,GAAA,oBAAa,AAAD,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QAAS,GAAG,CA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.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} 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';\nimport {useStyleProps} from '@react-spectrum/utils';\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,10 +1,15 @@
1
1
  {
2
2
  "name": "@react-spectrum/view",
3
- "version": "3.4.0",
3
+ "version": "3.5.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
+ "exports": {
9
+ "types": "./dist/types.d.ts",
10
+ "import": "./dist/import.mjs",
11
+ "require": "./dist/main.js"
12
+ },
8
13
  "types": "dist/types.d.ts",
9
14
  "source": "src/index.ts",
10
15
  "files": [
@@ -31,12 +36,12 @@
31
36
  "url": "https://github.com/adobe/react-spectrum"
32
37
  },
33
38
  "dependencies": {
34
- "@babel/runtime": "^7.6.2",
35
- "@react-aria/i18n": "^3.6.2",
36
- "@react-aria/utils": "^3.14.1",
37
- "@react-spectrum/utils": "^3.8.0",
38
- "@react-types/shared": "^3.16.0",
39
- "@react-types/view": "^3.3.0"
39
+ "@react-aria/i18n": "^3.7.0",
40
+ "@react-aria/utils": "^3.15.0",
41
+ "@react-spectrum/utils": "^3.9.0",
42
+ "@react-types/shared": "^3.17.0",
43
+ "@react-types/view": "^3.4.0",
44
+ "@swc/helpers": "^0.4.14"
40
45
  },
41
46
  "devDependencies": {
42
47
  "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
@@ -48,5 +53,5 @@
48
53
  "publishConfig": {
49
54
  "access": "public"
50
55
  },
51
- "gitHead": "2954307ddbefe149241685440c81f80ece6b2c83"
56
+ "gitHead": "a0efee84aa178cb1a202951dfd6d8de02b292307"
52
57
  }