@react-spectrum/text 3.1.5-nightly.3111 → 3.1.5
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 +33 -33
- package/dist/module.js +31 -31
- package/package.json +7 -7
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
1
|
+
var $cn8pf$reactariautils = require("@react-aria/utils");
|
|
2
|
+
var $cn8pf$react = require("react");
|
|
3
|
+
var $cn8pf$reactspectrumutils = require("@react-spectrum/utils");
|
|
4
4
|
|
|
5
5
|
function $parcel$exportWildcard(dest, source) {
|
|
6
6
|
Object.keys(source).forEach(function(key) {
|
|
@@ -24,64 +24,64 @@ 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 $acd02dd1a8b16753$exports = {};
|
|
28
28
|
|
|
29
|
-
$parcel$export($
|
|
29
|
+
$parcel$export($acd02dd1a8b16753$exports, "Text", () => $acd02dd1a8b16753$export$5f1af8db9871e1d6);
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
function $
|
|
34
|
-
props = $
|
|
33
|
+
function $acd02dd1a8b16753$var$Text(props, ref) {
|
|
34
|
+
props = $cn8pf$reactspectrumutils.useSlotProps(props, 'text');
|
|
35
35
|
let { children: children , ...otherProps } = props;
|
|
36
|
-
let { styleProps: styleProps } = $
|
|
37
|
-
let domRef = $
|
|
38
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
|
39
|
-
...$
|
|
36
|
+
let { styleProps: styleProps } = $cn8pf$reactspectrumutils.useStyleProps(otherProps);
|
|
37
|
+
let domRef = $cn8pf$reactspectrumutils.useDOMRef(ref);
|
|
38
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($cn8pf$react)).createElement("span", {
|
|
39
|
+
...$cn8pf$reactariautils.filterDOMProps(otherProps),
|
|
40
40
|
...styleProps,
|
|
41
41
|
ref: domRef
|
|
42
42
|
}, children));
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Text represents text with no specific semantic meaning.
|
|
46
|
-
*/ const $
|
|
46
|
+
*/ const $acd02dd1a8b16753$export$5f1af8db9871e1d6 = /*#__PURE__*/ $cn8pf$react.forwardRef($acd02dd1a8b16753$var$Text);
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var $
|
|
49
|
+
var $ba9bdabb573cb821$exports = {};
|
|
50
50
|
|
|
51
|
-
$parcel$export($
|
|
51
|
+
$parcel$export($ba9bdabb573cb821$exports, "Heading", () => $ba9bdabb573cb821$export$a8a3e93435678ff9);
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
function $
|
|
56
|
-
props = $
|
|
55
|
+
function $ba9bdabb573cb821$var$Heading(props, ref) {
|
|
56
|
+
props = $cn8pf$reactspectrumutils.useSlotProps(props, 'heading');
|
|
57
57
|
let { children: children , level: level = 3 , ...otherProps } = props;
|
|
58
|
-
let { styleProps: styleProps } = $
|
|
59
|
-
let domRef = $
|
|
58
|
+
let { styleProps: styleProps } = $cn8pf$reactspectrumutils.useStyleProps(otherProps);
|
|
59
|
+
let domRef = $cn8pf$reactspectrumutils.useDOMRef(ref);
|
|
60
60
|
let HeadingTag = `h${level}`;
|
|
61
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
|
62
|
-
...$
|
|
61
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($cn8pf$react)).createElement(HeadingTag, {
|
|
62
|
+
...$cn8pf$reactariautils.filterDOMProps(otherProps),
|
|
63
63
|
...styleProps,
|
|
64
64
|
ref: domRef
|
|
65
65
|
}, children));
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* Heading is used to create various levels of typographic hierarchies.
|
|
69
|
-
*/ const $
|
|
69
|
+
*/ const $ba9bdabb573cb821$export$a8a3e93435678ff9 = /*#__PURE__*/ $cn8pf$react.forwardRef($ba9bdabb573cb821$var$Heading);
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var $
|
|
72
|
+
var $98098b763ba271fd$exports = {};
|
|
73
73
|
|
|
74
|
-
$parcel$export($
|
|
74
|
+
$parcel$export($98098b763ba271fd$exports, "Keyboard", () => $98098b763ba271fd$export$16e4d70cc375e707);
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
function $
|
|
79
|
-
props = $
|
|
78
|
+
function $98098b763ba271fd$var$Keyboard(props, ref) {
|
|
79
|
+
props = $cn8pf$reactspectrumutils.useSlotProps(props, 'keyboard');
|
|
80
80
|
let { children: children , ...otherProps } = props;
|
|
81
|
-
let { styleProps: styleProps } = $
|
|
82
|
-
let domRef = $
|
|
83
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
|
84
|
-
...$
|
|
81
|
+
let { styleProps: styleProps } = $cn8pf$reactspectrumutils.useStyleProps(otherProps);
|
|
82
|
+
let domRef = $cn8pf$reactspectrumutils.useDOMRef(ref);
|
|
83
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($cn8pf$react)).createElement("kbd", {
|
|
84
|
+
...$cn8pf$reactariautils.filterDOMProps(otherProps),
|
|
85
85
|
...styleProps,
|
|
86
86
|
dir: "ltr",
|
|
87
87
|
ref: domRef
|
|
@@ -89,12 +89,12 @@ function $89f26bd6f497ff3d$var$Keyboard(props, ref) {
|
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* Keyboard represents text that specifies a keyboard command.
|
|
92
|
-
*/ const $
|
|
92
|
+
*/ const $98098b763ba271fd$export$16e4d70cc375e707 = /*#__PURE__*/ $cn8pf$react.forwardRef($98098b763ba271fd$var$Keyboard);
|
|
93
93
|
|
|
94
94
|
|
|
95
|
-
$parcel$exportWildcard(module.exports, $
|
|
96
|
-
$parcel$exportWildcard(module.exports, $
|
|
97
|
-
$parcel$exportWildcard(module.exports, $
|
|
95
|
+
$parcel$exportWildcard(module.exports, $acd02dd1a8b16753$exports);
|
|
96
|
+
$parcel$exportWildcard(module.exports, $ba9bdabb573cb821$exports);
|
|
97
|
+
$parcel$exportWildcard(module.exports, $98098b763ba271fd$exports);
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
//# sourceMappingURL=main.js.map
|
package/dist/module.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import {filterDOMProps as $
|
|
2
|
-
import $
|
|
3
|
-
import {useSlotProps as $
|
|
1
|
+
import {filterDOMProps as $hgL9i$filterDOMProps} from "@react-aria/utils";
|
|
2
|
+
import $hgL9i$react, {forwardRef as $hgL9i$forwardRef} from "react";
|
|
3
|
+
import {useSlotProps as $hgL9i$useSlotProps, useStyleProps as $hgL9i$useStyleProps, useDOMRef as $hgL9i$useDOMRef} from "@react-spectrum/utils";
|
|
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 $2f505f60703ca8dc$exports = {};
|
|
9
9
|
|
|
10
|
-
$parcel$export($
|
|
10
|
+
$parcel$export($2f505f60703ca8dc$exports, "Text", () => $2f505f60703ca8dc$export$5f1af8db9871e1d6);
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
function $
|
|
15
|
-
props = $
|
|
14
|
+
function $2f505f60703ca8dc$var$Text(props, ref) {
|
|
15
|
+
props = $hgL9i$useSlotProps(props, 'text');
|
|
16
16
|
let { children: children , ...otherProps } = props;
|
|
17
|
-
let { styleProps: styleProps } = $
|
|
18
|
-
let domRef = $
|
|
19
|
-
return(/*#__PURE__*/ $
|
|
20
|
-
...$
|
|
17
|
+
let { styleProps: styleProps } = $hgL9i$useStyleProps(otherProps);
|
|
18
|
+
let domRef = $hgL9i$useDOMRef(ref);
|
|
19
|
+
return(/*#__PURE__*/ $hgL9i$react.createElement("span", {
|
|
20
|
+
...$hgL9i$filterDOMProps(otherProps),
|
|
21
21
|
...styleProps,
|
|
22
22
|
ref: domRef
|
|
23
23
|
}, children));
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Text represents text with no specific semantic meaning.
|
|
27
|
-
*/ const $
|
|
27
|
+
*/ const $2f505f60703ca8dc$export$5f1af8db9871e1d6 = /*#__PURE__*/ $hgL9i$forwardRef($2f505f60703ca8dc$var$Text);
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var $
|
|
30
|
+
var $f62b4ac2b080fa8f$exports = {};
|
|
31
31
|
|
|
32
|
-
$parcel$export($
|
|
32
|
+
$parcel$export($f62b4ac2b080fa8f$exports, "Heading", () => $f62b4ac2b080fa8f$export$a8a3e93435678ff9);
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
function $
|
|
37
|
-
props = $
|
|
36
|
+
function $f62b4ac2b080fa8f$var$Heading(props, ref) {
|
|
37
|
+
props = $hgL9i$useSlotProps(props, 'heading');
|
|
38
38
|
let { children: children , level: level = 3 , ...otherProps } = props;
|
|
39
|
-
let { styleProps: styleProps } = $
|
|
40
|
-
let domRef = $
|
|
39
|
+
let { styleProps: styleProps } = $hgL9i$useStyleProps(otherProps);
|
|
40
|
+
let domRef = $hgL9i$useDOMRef(ref);
|
|
41
41
|
let HeadingTag = `h${level}`;
|
|
42
|
-
return(/*#__PURE__*/ $
|
|
43
|
-
...$
|
|
42
|
+
return(/*#__PURE__*/ $hgL9i$react.createElement(HeadingTag, {
|
|
43
|
+
...$hgL9i$filterDOMProps(otherProps),
|
|
44
44
|
...styleProps,
|
|
45
45
|
ref: domRef
|
|
46
46
|
}, children));
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* Heading is used to create various levels of typographic hierarchies.
|
|
50
|
-
*/ const $
|
|
50
|
+
*/ const $f62b4ac2b080fa8f$export$a8a3e93435678ff9 = /*#__PURE__*/ $hgL9i$forwardRef($f62b4ac2b080fa8f$var$Heading);
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var $
|
|
53
|
+
var $9db65624fc9b5771$exports = {};
|
|
54
54
|
|
|
55
|
-
$parcel$export($
|
|
55
|
+
$parcel$export($9db65624fc9b5771$exports, "Keyboard", () => $9db65624fc9b5771$export$16e4d70cc375e707);
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function $
|
|
60
|
-
props = $
|
|
59
|
+
function $9db65624fc9b5771$var$Keyboard(props, ref) {
|
|
60
|
+
props = $hgL9i$useSlotProps(props, 'keyboard');
|
|
61
61
|
let { children: children , ...otherProps } = props;
|
|
62
|
-
let { styleProps: styleProps } = $
|
|
63
|
-
let domRef = $
|
|
64
|
-
return(/*#__PURE__*/ $
|
|
65
|
-
...$
|
|
62
|
+
let { styleProps: styleProps } = $hgL9i$useStyleProps(otherProps);
|
|
63
|
+
let domRef = $hgL9i$useDOMRef(ref);
|
|
64
|
+
return(/*#__PURE__*/ $hgL9i$react.createElement("kbd", {
|
|
65
|
+
...$hgL9i$filterDOMProps(otherProps),
|
|
66
66
|
...styleProps,
|
|
67
67
|
dir: "ltr",
|
|
68
68
|
ref: domRef
|
|
@@ -70,10 +70,10 @@ function $be7d185f09e546f2$var$Keyboard(props, ref) {
|
|
|
70
70
|
}
|
|
71
71
|
/**
|
|
72
72
|
* Keyboard represents text that specifies a keyboard command.
|
|
73
|
-
*/ const $
|
|
73
|
+
*/ const $9db65624fc9b5771$export$16e4d70cc375e707 = /*#__PURE__*/ $hgL9i$forwardRef($9db65624fc9b5771$var$Keyboard);
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
export {$
|
|
78
|
+
export {$2f505f60703ca8dc$export$5f1af8db9871e1d6 as Text, $f62b4ac2b080fa8f$export$a8a3e93435678ff9 as Heading, $9db65624fc9b5771$export$16e4d70cc375e707 as Keyboard};
|
|
79
79
|
//# sourceMappingURL=module.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/text",
|
|
3
|
-
"version": "3.1.5
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.6.2",
|
|
35
|
-
"@react-aria/utils": "3.
|
|
36
|
-
"@react-spectrum/utils": "3.
|
|
37
|
-
"@react-types/shared": "3.
|
|
38
|
-
"@react-types/text": "3.1.5
|
|
35
|
+
"@react-aria/utils": "^3.11.2",
|
|
36
|
+
"@react-spectrum/utils": "^3.6.5",
|
|
37
|
+
"@react-types/shared": "^3.11.1",
|
|
38
|
+
"@react-types/text": "^3.1.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@adobe/spectrum-css-temp": "3.0.0-
|
|
41
|
+
"@adobe/spectrum-css-temp": "3.0.0-alpha.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
|
|
51
51
|
}
|