@react-spectrum/view 3.1.5 → 3.1.6

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 CHANGED
@@ -1,6 +1,6 @@
1
- var $fPAGM$reactspectrumutils = require("@react-spectrum/utils");
2
- var $fPAGM$reactariautils = require("@react-aria/utils");
3
- var $fPAGM$react = require("react");
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 $2c69fdec3406267c$exports = {};
27
+ var $6c848be8e8bffe98$exports = {};
28
28
 
29
- $parcel$export($2c69fdec3406267c$exports, "View", () => $2c69fdec3406267c$export$27a5bd065ad55220);
29
+ $parcel$export($6c848be8e8bffe98$exports, "View", () => $6c848be8e8bffe98$export$27a5bd065ad55220);
30
30
 
31
31
 
32
32
 
33
- function $2c69fdec3406267c$var$View(props, ref) {
34
- props = $fPAGM$reactspectrumutils.useSlotProps(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 } = $fPAGM$reactspectrumutils.useStyleProps(props, $fPAGM$reactspectrumutils.viewStyleProps);
37
- let domRef = $fPAGM$reactspectrumutils.useDOMRef(ref);
38
- return(/*#__PURE__*/ ($parcel$interopDefault($fPAGM$react)).createElement(ElementType, {
39
- ...$fPAGM$reactariautils.filterDOMProps(otherProps),
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($fPAGM$react)).createElement($fPAGM$reactspectrumutils.ClearSlots, null, children)));
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 $2c69fdec3406267c$export$27a5bd065ad55220 = /*#__PURE__*/ $fPAGM$react.forwardRef($2c69fdec3406267c$var$View);
47
+ */ const $6c848be8e8bffe98$export$27a5bd065ad55220 = /*#__PURE__*/ $3YgEH$react.forwardRef($6c848be8e8bffe98$var$View);
48
48
 
49
49
 
50
- var $733f1a63a8c61e18$exports = {};
50
+ var $2d8ae89d4e4c1d41$exports = {};
51
51
 
52
- $parcel$export($733f1a63a8c61e18$exports, "Content", () => $733f1a63a8c61e18$export$7c6e2c02157bb7d2);
52
+ $parcel$export($2d8ae89d4e4c1d41$exports, "Content", () => $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2);
53
53
 
54
54
 
55
55
 
56
56
 
57
- function $733f1a63a8c61e18$var$Content(props, ref) {
58
- props = $fPAGM$reactspectrumutils.useSlotProps(props, 'content');
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 } = $fPAGM$reactspectrumutils.useStyleProps(otherProps);
61
- let domRef = $fPAGM$reactspectrumutils.useDOMRef(ref);
62
- return(/*#__PURE__*/ ($parcel$interopDefault($fPAGM$react)).createElement("section", {
63
- ...$fPAGM$reactariautils.filterDOMProps(otherProps),
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($fPAGM$react)).createElement($fPAGM$reactspectrumutils.ClearSlots, null, children)));
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 $733f1a63a8c61e18$export$7c6e2c02157bb7d2 = /*#__PURE__*/ $fPAGM$react.forwardRef($733f1a63a8c61e18$var$Content);
70
+ */ const $2d8ae89d4e4c1d41$export$7c6e2c02157bb7d2 = /*#__PURE__*/ $3YgEH$react.forwardRef($2d8ae89d4e4c1d41$var$Content);
71
71
 
72
72
 
73
- var $c97cfd39d4a20a59$exports = {};
73
+ var $e266c0b33fd8525d$exports = {};
74
74
 
75
- $parcel$export($c97cfd39d4a20a59$exports, "Footer", () => $c97cfd39d4a20a59$export$a06f1c675e846f6f);
75
+ $parcel$export($e266c0b33fd8525d$exports, "Footer", () => $e266c0b33fd8525d$export$a06f1c675e846f6f);
76
76
 
77
77
 
78
78
 
79
- function $c97cfd39d4a20a59$var$Footer(props, ref) {
80
- props = $fPAGM$reactspectrumutils.useSlotProps(props, 'footer');
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 } = $fPAGM$reactspectrumutils.useStyleProps(otherProps);
83
- let domRef = $fPAGM$reactspectrumutils.useDOMRef(ref);
84
- return(/*#__PURE__*/ ($parcel$interopDefault($fPAGM$react)).createElement("footer", {
85
- ...$fPAGM$reactariautils.filterDOMProps(otherProps),
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($fPAGM$react)).createElement($fPAGM$reactspectrumutils.ClearSlots, null, children)));
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 $c97cfd39d4a20a59$export$a06f1c675e846f6f = /*#__PURE__*/ $fPAGM$react.forwardRef($c97cfd39d4a20a59$var$Footer);
92
+ */ const $e266c0b33fd8525d$export$a06f1c675e846f6f = /*#__PURE__*/ $3YgEH$react.forwardRef($e266c0b33fd8525d$var$Footer);
93
93
 
94
94
 
95
- var $ab06cf38b8fa4da7$exports = {};
95
+ var $62d558b43ecd7a77$exports = {};
96
96
 
97
- $parcel$export($ab06cf38b8fa4da7$exports, "Header", () => $ab06cf38b8fa4da7$export$8b251419efc915eb);
97
+ $parcel$export($62d558b43ecd7a77$exports, "Header", () => $62d558b43ecd7a77$export$8b251419efc915eb);
98
98
 
99
99
 
100
100
 
101
- function $ab06cf38b8fa4da7$var$Header(props, ref) {
102
- props = $fPAGM$reactspectrumutils.useSlotProps(props, 'header');
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 } = $fPAGM$reactspectrumutils.useStyleProps(otherProps);
105
- let domRef = $fPAGM$reactspectrumutils.useDOMRef(ref);
106
- return(/*#__PURE__*/ ($parcel$interopDefault($fPAGM$react)).createElement("header", {
107
- ...$fPAGM$reactariautils.filterDOMProps(otherProps),
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($fPAGM$react)).createElement($fPAGM$reactspectrumutils.ClearSlots, null, children)));
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 $ab06cf38b8fa4da7$export$8b251419efc915eb = /*#__PURE__*/ $fPAGM$react.forwardRef($ab06cf38b8fa4da7$var$Header);
114
+ */ const $62d558b43ecd7a77$export$8b251419efc915eb = /*#__PURE__*/ $3YgEH$react.forwardRef($62d558b43ecd7a77$var$Header);
115
115
 
116
116
 
117
- $parcel$exportWildcard(module.exports, $2c69fdec3406267c$exports);
118
- $parcel$exportWildcard(module.exports, $733f1a63a8c61e18$exports);
119
- $parcel$exportWildcard(module.exports, $c97cfd39d4a20a59$exports);
120
- $parcel$exportWildcard(module.exports, $ab06cf38b8fa4da7$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 $5c7up$useSlotProps, useStyleProps as $5c7up$useStyleProps, viewStyleProps as $5c7up$viewStyleProps, useDOMRef as $5c7up$useDOMRef, ClearSlots as $5c7up$ClearSlots} from "@react-spectrum/utils";
2
- import {filterDOMProps as $5c7up$filterDOMProps} from "@react-aria/utils";
3
- import $5c7up$react, {forwardRef as $5c7up$forwardRef} from "react";
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 $a18b6277175c703a$exports = {};
8
+ var $b9606c0c41d55371$exports = {};
9
9
 
10
- $parcel$export($a18b6277175c703a$exports, "View", () => $a18b6277175c703a$export$27a5bd065ad55220);
10
+ $parcel$export($b9606c0c41d55371$exports, "View", () => $b9606c0c41d55371$export$27a5bd065ad55220);
11
11
 
12
12
 
13
13
 
14
- function $a18b6277175c703a$var$View(props, ref) {
15
- props = $5c7up$useSlotProps(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 } = $5c7up$useStyleProps(props, $5c7up$viewStyleProps);
18
- let domRef = $5c7up$useDOMRef(ref);
19
- return(/*#__PURE__*/ $5c7up$react.createElement(ElementType, {
20
- ...$5c7up$filterDOMProps(otherProps),
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__*/ $5c7up$react.createElement($5c7up$ClearSlots, null, children)));
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 $a18b6277175c703a$export$27a5bd065ad55220 = /*#__PURE__*/ $5c7up$forwardRef($a18b6277175c703a$var$View);
28
+ */ const $b9606c0c41d55371$export$27a5bd065ad55220 = /*#__PURE__*/ $bJbxN$forwardRef($b9606c0c41d55371$var$View);
29
29
 
30
30
 
31
- var $0f56b7cc4c3950b8$exports = {};
31
+ var $0a7c18a2ef74b280$exports = {};
32
32
 
33
- $parcel$export($0f56b7cc4c3950b8$exports, "Content", () => $0f56b7cc4c3950b8$export$7c6e2c02157bb7d2);
33
+ $parcel$export($0a7c18a2ef74b280$exports, "Content", () => $0a7c18a2ef74b280$export$7c6e2c02157bb7d2);
34
34
 
35
35
 
36
36
 
37
37
 
38
- function $0f56b7cc4c3950b8$var$Content(props, ref) {
39
- props = $5c7up$useSlotProps(props, 'content');
38
+ function $0a7c18a2ef74b280$var$Content(props, ref) {
39
+ props = $bJbxN$useSlotProps(props, 'content');
40
40
  let { children: children , ...otherProps } = props;
41
- let { styleProps: styleProps } = $5c7up$useStyleProps(otherProps);
42
- let domRef = $5c7up$useDOMRef(ref);
43
- return(/*#__PURE__*/ $5c7up$react.createElement("section", {
44
- ...$5c7up$filterDOMProps(otherProps),
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__*/ $5c7up$react.createElement($5c7up$ClearSlots, null, children)));
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 $0f56b7cc4c3950b8$export$7c6e2c02157bb7d2 = /*#__PURE__*/ $5c7up$forwardRef($0f56b7cc4c3950b8$var$Content);
51
+ */ const $0a7c18a2ef74b280$export$7c6e2c02157bb7d2 = /*#__PURE__*/ $bJbxN$forwardRef($0a7c18a2ef74b280$var$Content);
52
52
 
53
53
 
54
- var $82b2dd3d9c6b1686$exports = {};
54
+ var $8d68cc89c1f9278e$exports = {};
55
55
 
56
- $parcel$export($82b2dd3d9c6b1686$exports, "Footer", () => $82b2dd3d9c6b1686$export$a06f1c675e846f6f);
56
+ $parcel$export($8d68cc89c1f9278e$exports, "Footer", () => $8d68cc89c1f9278e$export$a06f1c675e846f6f);
57
57
 
58
58
 
59
59
 
60
- function $82b2dd3d9c6b1686$var$Footer(props, ref) {
61
- props = $5c7up$useSlotProps(props, 'footer');
60
+ function $8d68cc89c1f9278e$var$Footer(props, ref) {
61
+ props = $bJbxN$useSlotProps(props, 'footer');
62
62
  let { children: children , ...otherProps } = props;
63
- let { styleProps: styleProps } = $5c7up$useStyleProps(otherProps);
64
- let domRef = $5c7up$useDOMRef(ref);
65
- return(/*#__PURE__*/ $5c7up$react.createElement("footer", {
66
- ...$5c7up$filterDOMProps(otherProps),
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__*/ $5c7up$react.createElement($5c7up$ClearSlots, null, children)));
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 $82b2dd3d9c6b1686$export$a06f1c675e846f6f = /*#__PURE__*/ $5c7up$forwardRef($82b2dd3d9c6b1686$var$Footer);
73
+ */ const $8d68cc89c1f9278e$export$a06f1c675e846f6f = /*#__PURE__*/ $bJbxN$forwardRef($8d68cc89c1f9278e$var$Footer);
74
74
 
75
75
 
76
- var $f0ba792aac11eeb7$exports = {};
76
+ var $aedcc4886d2a392a$exports = {};
77
77
 
78
- $parcel$export($f0ba792aac11eeb7$exports, "Header", () => $f0ba792aac11eeb7$export$8b251419efc915eb);
78
+ $parcel$export($aedcc4886d2a392a$exports, "Header", () => $aedcc4886d2a392a$export$8b251419efc915eb);
79
79
 
80
80
 
81
81
 
82
- function $f0ba792aac11eeb7$var$Header(props, ref) {
83
- props = $5c7up$useSlotProps(props, 'header');
82
+ function $aedcc4886d2a392a$var$Header(props, ref) {
83
+ props = $bJbxN$useSlotProps(props, 'header');
84
84
  let { children: children , ...otherProps } = props;
85
- let { styleProps: styleProps } = $5c7up$useStyleProps(otherProps);
86
- let domRef = $5c7up$useDOMRef(ref);
87
- return(/*#__PURE__*/ $5c7up$react.createElement("header", {
88
- ...$5c7up$filterDOMProps(otherProps),
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__*/ $5c7up$react.createElement($5c7up$ClearSlots, null, children)));
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 $f0ba792aac11eeb7$export$8b251419efc915eb = /*#__PURE__*/ $5c7up$forwardRef($f0ba792aac11eeb7$var$Header);
95
+ */ const $aedcc4886d2a392a$export$8b251419efc915eb = /*#__PURE__*/ $bJbxN$forwardRef($aedcc4886d2a392a$var$Header);
96
96
 
97
97
 
98
98
 
99
99
 
100
- export {$a18b6277175c703a$export$27a5bd065ad55220 as View, $0f56b7cc4c3950b8$export$7c6e2c02157bb7d2 as Content, $82b2dd3d9c6b1686$export$a06f1c675e846f6f as Footer, $f0ba792aac11eeb7$export$8b251419efc915eb as Header};
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.5",
3
+ "version": "3.1.6",
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.6",
36
- "@react-aria/utils": "^3.11.2",
37
- "@react-spectrum/utils": "^3.6.5",
38
- "@react-types/shared": "^3.11.1",
39
- "@react-types/view": "^3.1.4"
35
+ "@react-aria/i18n": "^3.3.7",
36
+ "@react-aria/utils": "^3.11.3",
37
+ "@react-spectrum/utils": "^3.6.6",
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": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
51
+ "gitHead": "ed8d8d984c2f7f2c31e8b18795b97858a95e4729"
52
52
  }