@react-spectrum/view 3.1.4 → 3.1.7
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/main.js +47 -47
- package/dist/module.js +44 -44
- package/package.json +7 -7
package/dist/main.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var $
|
2
|
-
var $
|
3
|
-
var $
|
1
|
+
var $3YgEH$reactspectrumutils = require("@react-spectrum/utils");
|
2
|
+
var $3YgEH$reactariautils = require("@react-aria/utils");
|
3
|
+
var $3YgEH$react = require("react");
|
4
4
|
|
5
5
|
function $parcel$exportWildcard(dest, source) {
|
6
6
|
Object.keys(source).forEach(function(key) {
|
@@ -24,100 +24,100 @@ function $parcel$interopDefault(a) {
|
|
24
24
|
function $parcel$export(e, n, v, s) {
|
25
25
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
26
26
|
}
|
27
|
-
var $
|
27
|
+
var $6c848be8e8bffe98$exports = {};
|
28
28
|
|
29
|
-
$parcel$export($
|
29
|
+
$parcel$export($6c848be8e8bffe98$exports, "View", () => $6c848be8e8bffe98$export$27a5bd065ad55220);
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
function $
|
34
|
-
props = $
|
33
|
+
function $6c848be8e8bffe98$var$View(props, ref) {
|
34
|
+
props = $3YgEH$reactspectrumutils.useSlotProps(props);
|
35
35
|
let { elementType: ElementType = 'div' , children: children , ...otherProps } = props;
|
36
|
-
let { styleProps: styleProps } = $
|
37
|
-
let domRef = $
|
38
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
39
|
-
...$
|
36
|
+
let { styleProps: styleProps } = $3YgEH$reactspectrumutils.useStyleProps(props, $3YgEH$reactspectrumutils.viewStyleProps);
|
37
|
+
let domRef = $3YgEH$reactspectrumutils.useDOMRef(ref);
|
38
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement(ElementType, {
|
39
|
+
...$3YgEH$reactariautils.filterDOMProps(otherProps),
|
40
40
|
...styleProps,
|
41
41
|
ref: domRef
|
42
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
42
|
+
}, /*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement($3YgEH$reactspectrumutils.ClearSlots, null, children)));
|
43
43
|
}
|
44
44
|
/**
|
45
45
|
* View is a general purpose container with no specific semantics that can be used for custom styling purposes.
|
46
46
|
* It supports Spectrum style props to ensure consistency with other Spectrum components.
|
47
|
-
*/ const $
|
47
|
+
*/ const $6c848be8e8bffe98$export$27a5bd065ad55220 = /*#__PURE__*/ $3YgEH$react.forwardRef($6c848be8e8bffe98$var$View);
|
48
48
|
|
49
49
|
|
50
|
-
var $
|
50
|
+
var $2d8ae89d4e4c1d41$exports = {};
|
51
51
|
|
52
|
-
$parcel$export($
|
52
|
+
$parcel$export($2d8ae89d4e4c1d41$exports, "Content", () => $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2);
|
53
53
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
-
function $
|
58
|
-
props = $
|
57
|
+
function $2d8ae89d4e4c1d41$var$Content(props, ref) {
|
58
|
+
props = $3YgEH$reactspectrumutils.useSlotProps(props, 'content');
|
59
59
|
let { children: children , ...otherProps } = props;
|
60
|
-
let { styleProps: styleProps } = $
|
61
|
-
let domRef = $
|
62
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
63
|
-
...$
|
60
|
+
let { styleProps: styleProps } = $3YgEH$reactspectrumutils.useStyleProps(otherProps);
|
61
|
+
let domRef = $3YgEH$reactspectrumutils.useDOMRef(ref);
|
62
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement("section", {
|
63
|
+
...$3YgEH$reactariautils.filterDOMProps(otherProps),
|
64
64
|
...styleProps,
|
65
65
|
ref: domRef
|
66
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
66
|
+
}, /*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement($3YgEH$reactspectrumutils.ClearSlots, null, children)));
|
67
67
|
}
|
68
68
|
/**
|
69
69
|
* Content represents the primary content within a Spectrum container.
|
70
|
-
*/ const $
|
70
|
+
*/ const $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2 = /*#__PURE__*/ $3YgEH$react.forwardRef($2d8ae89d4e4c1d41$var$Content);
|
71
71
|
|
72
72
|
|
73
|
-
var $
|
73
|
+
var $e266c0b33fd8525d$exports = {};
|
74
74
|
|
75
|
-
$parcel$export($
|
75
|
+
$parcel$export($e266c0b33fd8525d$exports, "Footer", () => $e266c0b33fd8525d$export$a06f1c675e846f6f);
|
76
76
|
|
77
77
|
|
78
78
|
|
79
|
-
function $
|
80
|
-
props = $
|
79
|
+
function $e266c0b33fd8525d$var$Footer(props, ref) {
|
80
|
+
props = $3YgEH$reactspectrumutils.useSlotProps(props, 'footer');
|
81
81
|
let { children: children , ...otherProps } = props;
|
82
|
-
let { styleProps: styleProps } = $
|
83
|
-
let domRef = $
|
84
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
85
|
-
...$
|
82
|
+
let { styleProps: styleProps } = $3YgEH$reactspectrumutils.useStyleProps(otherProps);
|
83
|
+
let domRef = $3YgEH$reactspectrumutils.useDOMRef(ref);
|
84
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement("footer", {
|
85
|
+
...$3YgEH$reactariautils.filterDOMProps(otherProps),
|
86
86
|
...styleProps,
|
87
87
|
ref: domRef
|
88
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
88
|
+
}, /*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement($3YgEH$reactspectrumutils.ClearSlots, null, children)));
|
89
89
|
}
|
90
90
|
/**
|
91
91
|
* Footer represents a footer within a Spectrum container.
|
92
|
-
*/ const $
|
92
|
+
*/ const $e266c0b33fd8525d$export$a06f1c675e846f6f = /*#__PURE__*/ $3YgEH$react.forwardRef($e266c0b33fd8525d$var$Footer);
|
93
93
|
|
94
94
|
|
95
|
-
var $
|
95
|
+
var $62d558b43ecd7a77$exports = {};
|
96
96
|
|
97
|
-
$parcel$export($
|
97
|
+
$parcel$export($62d558b43ecd7a77$exports, "Header", () => $62d558b43ecd7a77$export$8b251419efc915eb);
|
98
98
|
|
99
99
|
|
100
100
|
|
101
|
-
function $
|
102
|
-
props = $
|
101
|
+
function $62d558b43ecd7a77$var$Header(props, ref) {
|
102
|
+
props = $3YgEH$reactspectrumutils.useSlotProps(props, 'header');
|
103
103
|
let { children: children , ...otherProps } = props;
|
104
|
-
let { styleProps: styleProps } = $
|
105
|
-
let domRef = $
|
106
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
107
|
-
...$
|
104
|
+
let { styleProps: styleProps } = $3YgEH$reactspectrumutils.useStyleProps(otherProps);
|
105
|
+
let domRef = $3YgEH$reactspectrumutils.useDOMRef(ref);
|
106
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement("header", {
|
107
|
+
...$3YgEH$reactariautils.filterDOMProps(otherProps),
|
108
108
|
...styleProps,
|
109
109
|
ref: domRef
|
110
|
-
}, /*#__PURE__*/ ($parcel$interopDefault($
|
110
|
+
}, /*#__PURE__*/ ($parcel$interopDefault($3YgEH$react)).createElement($3YgEH$reactspectrumutils.ClearSlots, null, children)));
|
111
111
|
}
|
112
112
|
/**
|
113
113
|
* Header represents a header within a Spectrum container.
|
114
|
-
*/ const $
|
114
|
+
*/ const $62d558b43ecd7a77$export$8b251419efc915eb = /*#__PURE__*/ $3YgEH$react.forwardRef($62d558b43ecd7a77$var$Header);
|
115
115
|
|
116
116
|
|
117
|
-
$parcel$exportWildcard(module.exports, $
|
118
|
-
$parcel$exportWildcard(module.exports, $
|
119
|
-
$parcel$exportWildcard(module.exports, $
|
120
|
-
$parcel$exportWildcard(module.exports, $
|
117
|
+
$parcel$exportWildcard(module.exports, $6c848be8e8bffe98$exports);
|
118
|
+
$parcel$exportWildcard(module.exports, $2d8ae89d4e4c1d41$exports);
|
119
|
+
$parcel$exportWildcard(module.exports, $e266c0b33fd8525d$exports);
|
120
|
+
$parcel$exportWildcard(module.exports, $62d558b43ecd7a77$exports);
|
121
121
|
|
122
122
|
|
123
123
|
//# sourceMappingURL=main.js.map
|
package/dist/module.js
CHANGED
@@ -1,101 +1,101 @@
|
|
1
|
-
import {useSlotProps as $
|
2
|
-
import {filterDOMProps as $
|
3
|
-
import $
|
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
4
|
|
5
5
|
function $parcel$export(e, n, v, s) {
|
6
6
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
7
7
|
}
|
8
|
-
var $
|
8
|
+
var $b9606c0c41d55371$exports = {};
|
9
9
|
|
10
|
-
$parcel$export($
|
10
|
+
$parcel$export($b9606c0c41d55371$exports, "View", () => $b9606c0c41d55371$export$27a5bd065ad55220);
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
function $
|
15
|
-
props = $
|
14
|
+
function $b9606c0c41d55371$var$View(props, ref) {
|
15
|
+
props = $bJbxN$useSlotProps(props);
|
16
16
|
let { elementType: ElementType = 'div' , children: children , ...otherProps } = props;
|
17
|
-
let { styleProps: styleProps } = $
|
18
|
-
let domRef = $
|
19
|
-
return(/*#__PURE__*/ $
|
20
|
-
...$
|
17
|
+
let { styleProps: styleProps } = $bJbxN$useStyleProps(props, $bJbxN$viewStyleProps);
|
18
|
+
let domRef = $bJbxN$useDOMRef(ref);
|
19
|
+
return(/*#__PURE__*/ $bJbxN$react.createElement(ElementType, {
|
20
|
+
...$bJbxN$filterDOMProps(otherProps),
|
21
21
|
...styleProps,
|
22
22
|
ref: domRef
|
23
|
-
}, /*#__PURE__*/ $
|
23
|
+
}, /*#__PURE__*/ $bJbxN$react.createElement($bJbxN$ClearSlots, null, children)));
|
24
24
|
}
|
25
25
|
/**
|
26
26
|
* View is a general purpose container with no specific semantics that can be used for custom styling purposes.
|
27
27
|
* It supports Spectrum style props to ensure consistency with other Spectrum components.
|
28
|
-
*/ const $
|
28
|
+
*/ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ $bJbxN$forwardRef($b9606c0c41d55371$var$View);
|
29
29
|
|
30
30
|
|
31
|
-
var $
|
31
|
+
var $0a7c18a2ef74b280$exports = {};
|
32
32
|
|
33
|
-
$parcel$export($
|
33
|
+
$parcel$export($0a7c18a2ef74b280$exports, "Content", () => $0a7c18a2ef74b280$export$7c6e2c02157bb7d2);
|
34
34
|
|
35
35
|
|
36
36
|
|
37
37
|
|
38
|
-
function $
|
39
|
-
props = $
|
38
|
+
function $0a7c18a2ef74b280$var$Content(props, ref) {
|
39
|
+
props = $bJbxN$useSlotProps(props, 'content');
|
40
40
|
let { children: children , ...otherProps } = props;
|
41
|
-
let { styleProps: styleProps } = $
|
42
|
-
let domRef = $
|
43
|
-
return(/*#__PURE__*/ $
|
44
|
-
...$
|
41
|
+
let { styleProps: styleProps } = $bJbxN$useStyleProps(otherProps);
|
42
|
+
let domRef = $bJbxN$useDOMRef(ref);
|
43
|
+
return(/*#__PURE__*/ $bJbxN$react.createElement("section", {
|
44
|
+
...$bJbxN$filterDOMProps(otherProps),
|
45
45
|
...styleProps,
|
46
46
|
ref: domRef
|
47
|
-
}, /*#__PURE__*/ $
|
47
|
+
}, /*#__PURE__*/ $bJbxN$react.createElement($bJbxN$ClearSlots, null, children)));
|
48
48
|
}
|
49
49
|
/**
|
50
50
|
* Content represents the primary content within a Spectrum container.
|
51
|
-
*/ const $
|
51
|
+
*/ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ $bJbxN$forwardRef($0a7c18a2ef74b280$var$Content);
|
52
52
|
|
53
53
|
|
54
|
-
var $
|
54
|
+
var $8d68cc89c1f9278e$exports = {};
|
55
55
|
|
56
|
-
$parcel$export($
|
56
|
+
$parcel$export($8d68cc89c1f9278e$exports, "Footer", () => $8d68cc89c1f9278e$export$a06f1c675e846f6f);
|
57
57
|
|
58
58
|
|
59
59
|
|
60
|
-
function $
|
61
|
-
props = $
|
60
|
+
function $8d68cc89c1f9278e$var$Footer(props, ref) {
|
61
|
+
props = $bJbxN$useSlotProps(props, 'footer');
|
62
62
|
let { children: children , ...otherProps } = props;
|
63
|
-
let { styleProps: styleProps } = $
|
64
|
-
let domRef = $
|
65
|
-
return(/*#__PURE__*/ $
|
66
|
-
...$
|
63
|
+
let { styleProps: styleProps } = $bJbxN$useStyleProps(otherProps);
|
64
|
+
let domRef = $bJbxN$useDOMRef(ref);
|
65
|
+
return(/*#__PURE__*/ $bJbxN$react.createElement("footer", {
|
66
|
+
...$bJbxN$filterDOMProps(otherProps),
|
67
67
|
...styleProps,
|
68
68
|
ref: domRef
|
69
|
-
}, /*#__PURE__*/ $
|
69
|
+
}, /*#__PURE__*/ $bJbxN$react.createElement($bJbxN$ClearSlots, null, children)));
|
70
70
|
}
|
71
71
|
/**
|
72
72
|
* Footer represents a footer within a Spectrum container.
|
73
|
-
*/ const $
|
73
|
+
*/ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ $bJbxN$forwardRef($8d68cc89c1f9278e$var$Footer);
|
74
74
|
|
75
75
|
|
76
|
-
var $
|
76
|
+
var $aedcc4886d2a392a$exports = {};
|
77
77
|
|
78
|
-
$parcel$export($
|
78
|
+
$parcel$export($aedcc4886d2a392a$exports, "Header", () => $aedcc4886d2a392a$export$8b251419efc915eb);
|
79
79
|
|
80
80
|
|
81
81
|
|
82
|
-
function $
|
83
|
-
props = $
|
82
|
+
function $aedcc4886d2a392a$var$Header(props, ref) {
|
83
|
+
props = $bJbxN$useSlotProps(props, 'header');
|
84
84
|
let { children: children , ...otherProps } = props;
|
85
|
-
let { styleProps: styleProps } = $
|
86
|
-
let domRef = $
|
87
|
-
return(/*#__PURE__*/ $
|
88
|
-
...$
|
85
|
+
let { styleProps: styleProps } = $bJbxN$useStyleProps(otherProps);
|
86
|
+
let domRef = $bJbxN$useDOMRef(ref);
|
87
|
+
return(/*#__PURE__*/ $bJbxN$react.createElement("header", {
|
88
|
+
...$bJbxN$filterDOMProps(otherProps),
|
89
89
|
...styleProps,
|
90
90
|
ref: domRef
|
91
|
-
}, /*#__PURE__*/ $
|
91
|
+
}, /*#__PURE__*/ $bJbxN$react.createElement($bJbxN$ClearSlots, null, children)));
|
92
92
|
}
|
93
93
|
/**
|
94
94
|
* Header represents a header within a Spectrum container.
|
95
|
-
*/ const $
|
95
|
+
*/ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ $bJbxN$forwardRef($aedcc4886d2a392a$var$Header);
|
96
96
|
|
97
97
|
|
98
98
|
|
99
99
|
|
100
|
-
export {$
|
100
|
+
export {$b9606c0c41d55371$export$27a5bd065ad55220 as View, $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 as Content, $8d68cc89c1f9278e$export$a06f1c675e846f6f as Footer, $aedcc4886d2a392a$export$8b251419efc915eb as Header};
|
101
101
|
//# sourceMappingURL=module.js.map
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/view",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.7",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -32,11 +32,11 @@
|
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"@babel/runtime": "^7.6.2",
|
35
|
-
"@react-aria/i18n": "^3.3.
|
36
|
-
"@react-aria/utils": "^3.11.
|
37
|
-
"@react-spectrum/utils": "^3.6.
|
38
|
-
"@react-types/shared": "^3.11.
|
39
|
-
"@react-types/view": "^3.1.
|
35
|
+
"@react-aria/i18n": "^3.3.8",
|
36
|
+
"@react-aria/utils": "^3.11.3",
|
37
|
+
"@react-spectrum/utils": "^3.6.7",
|
38
|
+
"@react-types/shared": "^3.11.2",
|
39
|
+
"@react-types/view": "^3.1.5"
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
42
|
"@adobe/spectrum-css-temp": "3.0.0-alpha.1"
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"publishConfig": {
|
49
49
|
"access": "public"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "e7708349a637642a30d33a11ca4a75ad5829eaa3"
|
52
52
|
}
|