@react-spectrum/view 3.4.1 → 3.5.1
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 +137 -0
- package/package.json +12 -7
package/dist/import.mjs
ADDED
@@ -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/package.json
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/view",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.5.1",
|
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,11 +36,11 @@
|
|
31
36
|
"url": "https://github.com/adobe/react-spectrum"
|
32
37
|
},
|
33
38
|
"dependencies": {
|
34
|
-
"@react-aria/i18n": "^3.
|
35
|
-
"@react-aria/utils": "^3.
|
36
|
-
"@react-spectrum/utils": "^3.
|
37
|
-
"@react-types/shared": "^3.
|
38
|
-
"@react-types/view": "^3.
|
39
|
+
"@react-aria/i18n": "^3.7.1",
|
40
|
+
"@react-aria/utils": "^3.16.0",
|
41
|
+
"@react-spectrum/utils": "^3.9.1",
|
42
|
+
"@react-types/shared": "^3.18.0",
|
43
|
+
"@react-types/view": "^3.4.1",
|
39
44
|
"@swc/helpers": "^0.4.14"
|
40
45
|
},
|
41
46
|
"devDependencies": {
|
@@ -48,5 +53,5 @@
|
|
48
53
|
"publishConfig": {
|
49
54
|
"access": "public"
|
50
55
|
},
|
51
|
-
"gitHead": "
|
56
|
+
"gitHead": "9d1ba9bd8ebcd63bf3495ade16d349bcb71795ce"
|
52
57
|
}
|