@react-spectrum/text 3.1.4 → 3.1.6-nightly.3120
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 $kLXM6$reactariautils = require("@react-aria/utils");
|
|
2
|
+
var $kLXM6$react = require("react");
|
|
3
|
+
var $kLXM6$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 $1efae25dd196d679$exports = {};
|
|
28
28
|
|
|
29
|
-
$parcel$export($
|
|
29
|
+
$parcel$export($1efae25dd196d679$exports, "Text", () => $1efae25dd196d679$export$5f1af8db9871e1d6);
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
function $
|
|
34
|
-
props = $
|
|
33
|
+
function $1efae25dd196d679$var$Text(props, ref) {
|
|
34
|
+
props = $kLXM6$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 } = $kLXM6$reactspectrumutils.useStyleProps(otherProps);
|
|
37
|
+
let domRef = $kLXM6$reactspectrumutils.useDOMRef(ref);
|
|
38
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($kLXM6$react)).createElement("span", {
|
|
39
|
+
...$kLXM6$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 $1efae25dd196d679$export$5f1af8db9871e1d6 = /*#__PURE__*/ $kLXM6$react.forwardRef($1efae25dd196d679$var$Text);
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var $
|
|
49
|
+
var $c7c750c966e80a46$exports = {};
|
|
50
50
|
|
|
51
|
-
$parcel$export($
|
|
51
|
+
$parcel$export($c7c750c966e80a46$exports, "Heading", () => $c7c750c966e80a46$export$a8a3e93435678ff9);
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
function $
|
|
56
|
-
props = $
|
|
55
|
+
function $c7c750c966e80a46$var$Heading(props, ref) {
|
|
56
|
+
props = $kLXM6$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 } = $kLXM6$reactspectrumutils.useStyleProps(otherProps);
|
|
59
|
+
let domRef = $kLXM6$reactspectrumutils.useDOMRef(ref);
|
|
60
60
|
let HeadingTag = `h${level}`;
|
|
61
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($
|
|
62
|
-
...$
|
|
61
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($kLXM6$react)).createElement(HeadingTag, {
|
|
62
|
+
...$kLXM6$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 $c7c750c966e80a46$export$a8a3e93435678ff9 = /*#__PURE__*/ $kLXM6$react.forwardRef($c7c750c966e80a46$var$Heading);
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var $
|
|
72
|
+
var $961f7ef9e414f5f0$exports = {};
|
|
73
73
|
|
|
74
|
-
$parcel$export($
|
|
74
|
+
$parcel$export($961f7ef9e414f5f0$exports, "Keyboard", () => $961f7ef9e414f5f0$export$16e4d70cc375e707);
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
function $
|
|
79
|
-
props = $
|
|
78
|
+
function $961f7ef9e414f5f0$var$Keyboard(props, ref) {
|
|
79
|
+
props = $kLXM6$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 } = $kLXM6$reactspectrumutils.useStyleProps(otherProps);
|
|
82
|
+
let domRef = $kLXM6$reactspectrumutils.useDOMRef(ref);
|
|
83
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($kLXM6$react)).createElement("kbd", {
|
|
84
|
+
...$kLXM6$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 $961f7ef9e414f5f0$export$16e4d70cc375e707 = /*#__PURE__*/ $kLXM6$react.forwardRef($961f7ef9e414f5f0$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, $1efae25dd196d679$exports);
|
|
96
|
+
$parcel$exportWildcard(module.exports, $c7c750c966e80a46$exports);
|
|
97
|
+
$parcel$exportWildcard(module.exports, $961f7ef9e414f5f0$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 $3GX9J$filterDOMProps} from "@react-aria/utils";
|
|
2
|
+
import $3GX9J$react, {forwardRef as $3GX9J$forwardRef} from "react";
|
|
3
|
+
import {useSlotProps as $3GX9J$useSlotProps, useStyleProps as $3GX9J$useStyleProps, useDOMRef as $3GX9J$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 $cd449e8defa988f0$exports = {};
|
|
9
9
|
|
|
10
|
-
$parcel$export($
|
|
10
|
+
$parcel$export($cd449e8defa988f0$exports, "Text", () => $cd449e8defa988f0$export$5f1af8db9871e1d6);
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
function $
|
|
15
|
-
props = $
|
|
14
|
+
function $cd449e8defa988f0$var$Text(props, ref) {
|
|
15
|
+
props = $3GX9J$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 } = $3GX9J$useStyleProps(otherProps);
|
|
18
|
+
let domRef = $3GX9J$useDOMRef(ref);
|
|
19
|
+
return(/*#__PURE__*/ $3GX9J$react.createElement("span", {
|
|
20
|
+
...$3GX9J$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 $cd449e8defa988f0$export$5f1af8db9871e1d6 = /*#__PURE__*/ $3GX9J$forwardRef($cd449e8defa988f0$var$Text);
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var $
|
|
30
|
+
var $c382fceb69609a50$exports = {};
|
|
31
31
|
|
|
32
|
-
$parcel$export($
|
|
32
|
+
$parcel$export($c382fceb69609a50$exports, "Heading", () => $c382fceb69609a50$export$a8a3e93435678ff9);
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
function $
|
|
37
|
-
props = $
|
|
36
|
+
function $c382fceb69609a50$var$Heading(props, ref) {
|
|
37
|
+
props = $3GX9J$useSlotProps(props, 'heading');
|
|
38
38
|
let { children: children , level: level = 3 , ...otherProps } = props;
|
|
39
|
-
let { styleProps: styleProps } = $
|
|
40
|
-
let domRef = $
|
|
39
|
+
let { styleProps: styleProps } = $3GX9J$useStyleProps(otherProps);
|
|
40
|
+
let domRef = $3GX9J$useDOMRef(ref);
|
|
41
41
|
let HeadingTag = `h${level}`;
|
|
42
|
-
return(/*#__PURE__*/ $
|
|
43
|
-
...$
|
|
42
|
+
return(/*#__PURE__*/ $3GX9J$react.createElement(HeadingTag, {
|
|
43
|
+
...$3GX9J$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 $c382fceb69609a50$export$a8a3e93435678ff9 = /*#__PURE__*/ $3GX9J$forwardRef($c382fceb69609a50$var$Heading);
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var $
|
|
53
|
+
var $a42b6b1607b36926$exports = {};
|
|
54
54
|
|
|
55
|
-
$parcel$export($
|
|
55
|
+
$parcel$export($a42b6b1607b36926$exports, "Keyboard", () => $a42b6b1607b36926$export$16e4d70cc375e707);
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
function $
|
|
60
|
-
props = $
|
|
59
|
+
function $a42b6b1607b36926$var$Keyboard(props, ref) {
|
|
60
|
+
props = $3GX9J$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 } = $3GX9J$useStyleProps(otherProps);
|
|
63
|
+
let domRef = $3GX9J$useDOMRef(ref);
|
|
64
|
+
return(/*#__PURE__*/ $3GX9J$react.createElement("kbd", {
|
|
65
|
+
...$3GX9J$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 $a42b6b1607b36926$export$16e4d70cc375e707 = /*#__PURE__*/ $3GX9J$forwardRef($a42b6b1607b36926$var$Keyboard);
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
export {$
|
|
78
|
+
export {$cd449e8defa988f0$export$5f1af8db9871e1d6 as Text, $c382fceb69609a50$export$a8a3e93435678ff9 as Heading, $a42b6b1607b36926$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.
|
|
3
|
+
"version": "3.1.6-nightly.3120+1aa66e6e7",
|
|
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": "
|
|
36
|
-
"@react-spectrum/utils": "
|
|
37
|
-
"@react-types/shared": "
|
|
38
|
-
"@react-types/text": "
|
|
35
|
+
"@react-aria/utils": "3.0.0-nightly.1424+1aa66e6e7",
|
|
36
|
+
"@react-spectrum/utils": "3.0.0-nightly.1424+1aa66e6e7",
|
|
37
|
+
"@react-types/shared": "3.0.0-nightly.1424+1aa66e6e7",
|
|
38
|
+
"@react-types/text": "3.1.6-nightly.3120+1aa66e6e7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@adobe/spectrum-css-temp": "3.0.0-
|
|
41
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.1424+1aa66e6e7"
|
|
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": "1aa66e6e75e2da014f44177686c3332cd625fb9f"
|
|
51
51
|
}
|