@react-spectrum/text 3.3.5-nightly.3698 → 3.3.5-nightly.3705

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.
Files changed (2) hide show
  1. package/dist/import.mjs +108 -0
  2. package/package.json +12 -7
@@ -0,0 +1,108 @@
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
+
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 $cd449e8defa988f0$var$Text(props, ref) {
30
+ props = (0, $3GX9J$useSlotProps)(props, "text");
31
+ let { children: children , ...otherProps } = props;
32
+ let { styleProps: styleProps } = (0, $3GX9J$useStyleProps)(otherProps);
33
+ let domRef = (0, $3GX9J$useDOMRef)(ref);
34
+ return /*#__PURE__*/ (0, $3GX9J$react).createElement("span", {
35
+ ...(0, $3GX9J$filterDOMProps)(otherProps),
36
+ ...styleProps,
37
+ ref: domRef
38
+ }, children);
39
+ }
40
+ /**
41
+ * Text represents text with no specific semantic meaning.
42
+ */ const $cd449e8defa988f0$export$5f1af8db9871e1d6 = /*#__PURE__*/ (0, $3GX9J$forwardRef)($cd449e8defa988f0$var$Text);
43
+
44
+
45
+ /*
46
+ * Copyright 2020 Adobe. All rights reserved.
47
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
48
+ * you may not use this file except in compliance with the License. You may obtain a copy
49
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
50
+ *
51
+ * Unless required by applicable law or agreed to in writing, software distributed under
52
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
53
+ * OF ANY KIND, either express or implied. See the License for the specific language
54
+ * governing permissions and limitations under the License.
55
+ */
56
+
57
+
58
+ function $c382fceb69609a50$var$Heading(props, ref) {
59
+ props = (0, $3GX9J$useSlotProps)(props, "heading");
60
+ let { children: children , level: level = 3 , ...otherProps } = props;
61
+ let { styleProps: styleProps } = (0, $3GX9J$useStyleProps)(otherProps);
62
+ let domRef = (0, $3GX9J$useDOMRef)(ref);
63
+ let HeadingTag = `h${level}`;
64
+ return /*#__PURE__*/ (0, $3GX9J$react).createElement(HeadingTag, {
65
+ ...(0, $3GX9J$filterDOMProps)(otherProps),
66
+ ...styleProps,
67
+ ref: domRef
68
+ }, children);
69
+ }
70
+ /**
71
+ * Heading is used to create various levels of typographic hierarchies.
72
+ */ const $c382fceb69609a50$export$a8a3e93435678ff9 = /*#__PURE__*/ (0, $3GX9J$forwardRef)($c382fceb69609a50$var$Heading);
73
+
74
+
75
+ /*
76
+ * Copyright 2020 Adobe. All rights reserved.
77
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
78
+ * you may not use this file except in compliance with the License. You may obtain a copy
79
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
80
+ *
81
+ * Unless required by applicable law or agreed to in writing, software distributed under
82
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
83
+ * OF ANY KIND, either express or implied. See the License for the specific language
84
+ * governing permissions and limitations under the License.
85
+ */
86
+
87
+
88
+ function $a42b6b1607b36926$var$Keyboard(props, ref) {
89
+ props = (0, $3GX9J$useSlotProps)(props, "keyboard");
90
+ let { children: children , ...otherProps } = props;
91
+ let { styleProps: styleProps } = (0, $3GX9J$useStyleProps)(otherProps);
92
+ let domRef = (0, $3GX9J$useDOMRef)(ref);
93
+ return /*#__PURE__*/ (0, $3GX9J$react).createElement("kbd", {
94
+ ...(0, $3GX9J$filterDOMProps)(otherProps),
95
+ ...styleProps,
96
+ dir: "ltr",
97
+ ref: domRef
98
+ }, children);
99
+ }
100
+ /**
101
+ * Keyboard represents text that specifies a keyboard command.
102
+ */ const $a42b6b1607b36926$export$16e4d70cc375e707 = /*#__PURE__*/ (0, $3GX9J$forwardRef)($a42b6b1607b36926$var$Keyboard);
103
+
104
+
105
+
106
+
107
+ export {$cd449e8defa988f0$export$5f1af8db9871e1d6 as Text, $c382fceb69609a50$export$a8a3e93435678ff9 as Heading, $a42b6b1607b36926$export$16e4d70cc375e707 as Keyboard};
108
+ //# sourceMappingURL=module.js.map
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@react-spectrum/text",
3
- "version": "3.3.5-nightly.3698+72ee92f6d",
3
+ "version": "3.3.5-nightly.3705+93b3c951e",
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,14 +36,14 @@
31
36
  "url": "https://github.com/adobe/react-spectrum"
32
37
  },
33
38
  "dependencies": {
34
- "@react-aria/utils": "3.0.0-nightly.1998+72ee92f6d",
35
- "@react-spectrum/utils": "3.0.0-nightly.1998+72ee92f6d",
36
- "@react-types/shared": "3.0.0-nightly.1998+72ee92f6d",
37
- "@react-types/text": "3.2.6-nightly.3698+72ee92f6d",
39
+ "@react-aria/utils": "3.0.0-nightly.2005+93b3c951e",
40
+ "@react-spectrum/utils": "3.0.0-nightly.2005+93b3c951e",
41
+ "@react-types/shared": "3.0.0-nightly.2005+93b3c951e",
42
+ "@react-types/text": "3.2.6-nightly.3705+93b3c951e",
38
43
  "@swc/helpers": "^0.4.14"
39
44
  },
40
45
  "devDependencies": {
41
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1998+72ee92f6d"
46
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.2005+93b3c951e"
42
47
  },
43
48
  "peerDependencies": {
44
49
  "@react-spectrum/provider": "^3.0.0",
@@ -47,5 +52,5 @@
47
52
  "publishConfig": {
48
53
  "access": "public"
49
54
  },
50
- "gitHead": "72ee92f6d497163468a80642ccb96576f822f365"
55
+ "gitHead": "93b3c951eb784b14183f9988f2d188b34de8f42d"
51
56
  }