@react-spectrum/text 3.5.10 → 3.5.12

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.
@@ -27,7 +27,7 @@ $parcel$export(module.exports, "Heading", () => $c7c750c966e80a46$export$a8a3e93
27
27
 
28
28
 
29
29
 
30
- function $c7c750c966e80a46$var$Heading(props, ref) {
30
+ const $c7c750c966e80a46$export$a8a3e93435678ff9 = /*#__PURE__*/ (0, $eaZlr$react.forwardRef)(function Heading(props, ref) {
31
31
  let domRef = (0, $eaZlr$reactspectrumutils.useDOMRef)(ref);
32
32
  props = (0, $eaZlr$reactspectrumutils.useSlotProps)(props, 'heading');
33
33
  [props, domRef] = (0, $eaZlr$reactariacomponents.useContextProps)(props, domRef, (0, $eaZlr$reactariacomponents.HeadingContext));
@@ -39,10 +39,7 @@ function $c7c750c966e80a46$var$Heading(props, ref) {
39
39
  ...styleProps,
40
40
  ref: domRef
41
41
  }, children);
42
- }
43
- /**
44
- * Heading is used to create various levels of typographic hierarchies.
45
- */ const $c7c750c966e80a46$export$a8a3e93435678ff9 = /*#__PURE__*/ (0, $eaZlr$react.forwardRef)($c7c750c966e80a46$var$Heading);
42
+ });
46
43
 
47
44
 
48
45
  //# sourceMappingURL=Heading.main.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AASD,SAAS,8BAAQ,KAAmB,EAAE,GAA+B;IACnE,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,0CAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,yCAAa;IAE9D,IAAI,YACF,QAAQ,SACR,QAAQ,GACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,aAAa,CAAC,CAAC,EAAE,OAAO;IAE5B,qBACE,0DAAC;QAAY,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OAC9D;AAGP;AAEA;;CAEC,GACD,MAAM,0DAAW,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/text/src/Heading.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {HeadingContext, useContextProps} from 'react-aria-components';\nimport {HeadingProps} from '@react-types/text';\nimport React, {ElementType, forwardRef} from 'react';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nfunction Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {\n let domRef = useDOMRef(ref);\n props = useSlotProps(props, 'heading');\n [props, domRef] = useContextProps(props, domRef, HeadingContext);\n\n let {\n children,\n level = 3,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let HeadingTag = `h${level}` as ElementType;\n\n return (\n <HeadingTag {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </HeadingTag>\n );\n}\n\n/**\n * Heading is used to create various levels of typographic hierarchies.\n */\nconst _Heading = forwardRef(Heading);\nexport {_Heading as Heading};\n"],"names":[],"version":3,"file":"Heading.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;AAYM,MAAM,0DAAU,CAAA,GAAA,uBAAS,EAAE,SAAS,QAAQ,KAAmB,EAAE,GAA+B;IACrG,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,0CAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,yCAAa;IAE9D,IAAI,YACF,QAAQ,SACR,QAAQ,GACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,aAAa,CAAC,CAAC,EAAE,OAAO;IAE5B,qBACE,0DAAC;QAAY,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OAC9D;AAGP","sources":["packages/@react-spectrum/text/src/Heading.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {HeadingContext, useContextProps} from 'react-aria-components';\nimport {HeadingProps} from '@react-types/text';\nimport React, {ElementType, forwardRef} from 'react';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\n/**\n * Heading is used to create various levels of typographic hierarchies.\n */\nexport const Heading = forwardRef(function Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {\n let domRef = useDOMRef(ref);\n props = useSlotProps(props, 'heading');\n [props, domRef] = useContextProps(props, domRef, HeadingContext);\n\n let {\n children,\n level = 3,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let HeadingTag = `h${level}` as ElementType;\n\n return (\n <HeadingTag {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </HeadingTag>\n );\n});\n"],"names":[],"version":3,"file":"Heading.main.js.map"}
package/dist/Heading.mjs CHANGED
@@ -17,7 +17,7 @@ import {useDOMRef as $loc5r$useDOMRef, useSlotProps as $loc5r$useSlotProps, useS
17
17
 
18
18
 
19
19
 
20
- function $c382fceb69609a50$var$Heading(props, ref) {
20
+ const $c382fceb69609a50$export$a8a3e93435678ff9 = /*#__PURE__*/ (0, $loc5r$forwardRef)(function Heading(props, ref) {
21
21
  let domRef = (0, $loc5r$useDOMRef)(ref);
22
22
  props = (0, $loc5r$useSlotProps)(props, 'heading');
23
23
  [props, domRef] = (0, $loc5r$useContextProps)(props, domRef, (0, $loc5r$HeadingContext));
@@ -29,10 +29,7 @@ function $c382fceb69609a50$var$Heading(props, ref) {
29
29
  ...styleProps,
30
30
  ref: domRef
31
31
  }, children);
32
- }
33
- /**
34
- * Heading is used to create various levels of typographic hierarchies.
35
- */ const $c382fceb69609a50$export$a8a3e93435678ff9 = /*#__PURE__*/ (0, $loc5r$forwardRef)($c382fceb69609a50$var$Heading);
32
+ });
36
33
 
37
34
 
38
35
  export {$c382fceb69609a50$export$a8a3e93435678ff9 as Heading};
@@ -17,7 +17,7 @@ import {useDOMRef as $loc5r$useDOMRef, useSlotProps as $loc5r$useSlotProps, useS
17
17
 
18
18
 
19
19
 
20
- function $c382fceb69609a50$var$Heading(props, ref) {
20
+ const $c382fceb69609a50$export$a8a3e93435678ff9 = /*#__PURE__*/ (0, $loc5r$forwardRef)(function Heading(props, ref) {
21
21
  let domRef = (0, $loc5r$useDOMRef)(ref);
22
22
  props = (0, $loc5r$useSlotProps)(props, 'heading');
23
23
  [props, domRef] = (0, $loc5r$useContextProps)(props, domRef, (0, $loc5r$HeadingContext));
@@ -29,10 +29,7 @@ function $c382fceb69609a50$var$Heading(props, ref) {
29
29
  ...styleProps,
30
30
  ref: domRef
31
31
  }, children);
32
- }
33
- /**
34
- * Heading is used to create various levels of typographic hierarchies.
35
- */ const $c382fceb69609a50$export$a8a3e93435678ff9 = /*#__PURE__*/ (0, $loc5r$forwardRef)($c382fceb69609a50$var$Heading);
32
+ });
36
33
 
37
34
 
38
35
  export {$c382fceb69609a50$export$a8a3e93435678ff9 as Heading};
@@ -1 +1 @@
1
- {"mappings":";;;;;AAAA;;;;;;;;;;CAUC;;;;AASD,SAAS,8BAAQ,KAAmB,EAAE,GAA+B;IACnE,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,sBAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,qBAAa;IAE9D,IAAI,YACF,QAAQ,SACR,QAAQ,GACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,aAAa,CAAC,CAAC,EAAE,OAAO;IAE5B,qBACE,gCAAC;QAAY,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OAC9D;AAGP;AAEA;;CAEC,GACD,MAAM,0DAAW,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/text/src/Heading.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {HeadingContext, useContextProps} from 'react-aria-components';\nimport {HeadingProps} from '@react-types/text';\nimport React, {ElementType, forwardRef} from 'react';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nfunction Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {\n let domRef = useDOMRef(ref);\n props = useSlotProps(props, 'heading');\n [props, domRef] = useContextProps(props, domRef, HeadingContext);\n\n let {\n children,\n level = 3,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let HeadingTag = `h${level}` as ElementType;\n\n return (\n <HeadingTag {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </HeadingTag>\n );\n}\n\n/**\n * Heading is used to create various levels of typographic hierarchies.\n */\nconst _Heading = forwardRef(Heading);\nexport {_Heading as Heading};\n"],"names":[],"version":3,"file":"Heading.module.js.map"}
1
+ {"mappings":";;;;;AAAA;;;;;;;;;;CAUC;;;;AAYM,MAAM,0DAAU,CAAA,GAAA,iBAAS,EAAE,SAAS,QAAQ,KAAmB,EAAE,GAA+B;IACrG,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,CAAC,OAAO,OAAO,GAAG,CAAA,GAAA,sBAAc,EAAE,OAAO,QAAQ,CAAA,GAAA,qBAAa;IAE9D,IAAI,YACF,QAAQ,SACR,QAAQ,GACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,aAAa,CAAC,CAAC,EAAE,OAAO;IAE5B,qBACE,gCAAC;QAAY,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OAC9D;AAGP","sources":["packages/@react-spectrum/text/src/Heading.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {HeadingContext, useContextProps} from 'react-aria-components';\nimport {HeadingProps} from '@react-types/text';\nimport React, {ElementType, forwardRef} from 'react';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\n/**\n * Heading is used to create various levels of typographic hierarchies.\n */\nexport const Heading = forwardRef(function Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {\n let domRef = useDOMRef(ref);\n props = useSlotProps(props, 'heading');\n [props, domRef] = useContextProps(props, domRef, HeadingContext);\n\n let {\n children,\n level = 3,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let HeadingTag = `h${level}` as ElementType;\n\n return (\n <HeadingTag {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </HeadingTag>\n );\n});\n"],"names":[],"version":3,"file":"Heading.module.js.map"}
@@ -25,7 +25,7 @@ $parcel$export(module.exports, "Keyboard", () => $961f7ef9e414f5f0$export$16e4d7
25
25
  */
26
26
 
27
27
 
28
- function $961f7ef9e414f5f0$var$Keyboard(props, ref) {
28
+ const $961f7ef9e414f5f0$export$16e4d70cc375e707 = /*#__PURE__*/ (0, $53QEO$react.forwardRef)(function Keyboard(props, ref) {
29
29
  props = (0, $53QEO$reactspectrumutils.useSlotProps)(props, 'keyboard');
30
30
  let { children: children, ...otherProps } = props;
31
31
  let { styleProps: styleProps } = (0, $53QEO$reactspectrumutils.useStyleProps)(otherProps);
@@ -35,10 +35,7 @@ function $961f7ef9e414f5f0$var$Keyboard(props, ref) {
35
35
  ...styleProps,
36
36
  ref: domRef
37
37
  }, children);
38
- }
39
- /**
40
- * Keyboard represents text that specifies a keyboard command.
41
- */ const $961f7ef9e414f5f0$export$16e4d70cc375e707 = /*#__PURE__*/ (0, $53QEO$react.forwardRef)($961f7ef9e414f5f0$var$Keyboard);
38
+ });
42
39
 
43
40
 
44
41
  //# sourceMappingURL=Keyboard.main.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,+BAAS,KAAoB,EAAE,GAAW;IACjD,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC;QAAK,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OACvD;AAGP;AAEA;;CAEC,GACD,MAAM,0DAAY,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/text/src/Keyboard.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {KeyboardProps} from '@react-types/text';\nimport React, {forwardRef} from 'react';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nfunction Keyboard(props: KeyboardProps, ref: DOMRef) {\n props = useSlotProps(props, 'keyboard');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <kbd {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </kbd>\n );\n}\n\n/**\n * Keyboard represents text that specifies a keyboard command.\n */\nconst _Keyboard = forwardRef(Keyboard);\nexport {_Keyboard as Keyboard};\n"],"names":[],"version":3,"file":"Keyboard.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAW,CAAA,GAAA,uBAAS,EAAE,SAAS,SAAS,KAAoB,EAAE,GAAW;IACpF,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC;QAAK,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OACvD;AAGP","sources":["packages/@react-spectrum/text/src/Keyboard.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {KeyboardProps} from '@react-types/text';\nimport React, {forwardRef} from 'react';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\n/**\n * Keyboard represents text that specifies a keyboard command.\n */\nexport const Keyboard = forwardRef(function Keyboard(props: KeyboardProps, ref: DOMRef) {\n props = useSlotProps(props, 'keyboard');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <kbd {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </kbd>\n );\n});\n"],"names":[],"version":3,"file":"Keyboard.main.js.map"}
package/dist/Keyboard.mjs CHANGED
@@ -15,7 +15,7 @@ import {useSlotProps as $3NMJ4$useSlotProps, useStyleProps as $3NMJ4$useStylePro
15
15
  */
16
16
 
17
17
 
18
- function $a42b6b1607b36926$var$Keyboard(props, ref) {
18
+ const $a42b6b1607b36926$export$16e4d70cc375e707 = /*#__PURE__*/ (0, $3NMJ4$forwardRef)(function Keyboard(props, ref) {
19
19
  props = (0, $3NMJ4$useSlotProps)(props, 'keyboard');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $3NMJ4$useStyleProps)(otherProps);
@@ -25,10 +25,7 @@ function $a42b6b1607b36926$var$Keyboard(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
27
  }, children);
28
- }
29
- /**
30
- * Keyboard represents text that specifies a keyboard command.
31
- */ const $a42b6b1607b36926$export$16e4d70cc375e707 = /*#__PURE__*/ (0, $3NMJ4$forwardRef)($a42b6b1607b36926$var$Keyboard);
28
+ });
32
29
 
33
30
 
34
31
  export {$a42b6b1607b36926$export$16e4d70cc375e707 as Keyboard};
@@ -15,7 +15,7 @@ import {useSlotProps as $3NMJ4$useSlotProps, useStyleProps as $3NMJ4$useStylePro
15
15
  */
16
16
 
17
17
 
18
- function $a42b6b1607b36926$var$Keyboard(props, ref) {
18
+ const $a42b6b1607b36926$export$16e4d70cc375e707 = /*#__PURE__*/ (0, $3NMJ4$forwardRef)(function Keyboard(props, ref) {
19
19
  props = (0, $3NMJ4$useSlotProps)(props, 'keyboard');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $3NMJ4$useStyleProps)(otherProps);
@@ -25,10 +25,7 @@ function $a42b6b1607b36926$var$Keyboard(props, ref) {
25
25
  ...styleProps,
26
26
  ref: domRef
27
27
  }, children);
28
- }
29
- /**
30
- * Keyboard represents text that specifies a keyboard command.
31
- */ const $a42b6b1607b36926$export$16e4d70cc375e707 = /*#__PURE__*/ (0, $3NMJ4$forwardRef)($a42b6b1607b36926$var$Keyboard);
28
+ });
32
29
 
33
30
 
34
31
  export {$a42b6b1607b36926$export$16e4d70cc375e707 as Keyboard};
@@ -1 +1 @@
1
- {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,+BAAS,KAAoB,EAAE,GAAW;IACjD,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QAAK,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OACvD;AAGP;AAEA;;CAEC,GACD,MAAM,0DAAY,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/text/src/Keyboard.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {KeyboardProps} from '@react-types/text';\nimport React, {forwardRef} from 'react';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nfunction Keyboard(props: KeyboardProps, ref: DOMRef) {\n props = useSlotProps(props, 'keyboard');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <kbd {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </kbd>\n );\n}\n\n/**\n * Keyboard represents text that specifies a keyboard command.\n */\nconst _Keyboard = forwardRef(Keyboard);\nexport {_Keyboard as Keyboard};\n"],"names":[],"version":3,"file":"Keyboard.module.js.map"}
1
+ {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAW,CAAA,GAAA,iBAAS,EAAE,SAAS,SAAS,KAAoB,EAAE,GAAW;IACpF,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QAAK,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OACvD;AAGP","sources":["packages/@react-spectrum/text/src/Keyboard.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {KeyboardProps} from '@react-types/text';\nimport React, {forwardRef} from 'react';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\n/**\n * Keyboard represents text that specifies a keyboard command.\n */\nexport const Keyboard = forwardRef(function Keyboard(props: KeyboardProps, ref: DOMRef) {\n props = useSlotProps(props, 'keyboard');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <kbd {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </kbd>\n );\n});\n"],"names":[],"version":3,"file":"Keyboard.module.js.map"}
package/dist/Text.main.js CHANGED
@@ -25,7 +25,7 @@ $parcel$export(module.exports, "Text", () => $1efae25dd196d679$export$5f1af8db98
25
25
  */
26
26
 
27
27
 
28
- function $1efae25dd196d679$var$Text(props, ref) {
28
+ const $1efae25dd196d679$export$5f1af8db9871e1d6 = /*#__PURE__*/ (0, $h7ExA$react.forwardRef)(function Text(props, ref) {
29
29
  props = (0, $h7ExA$reactspectrumutils.useSlotProps)(props, 'text');
30
30
  let { children: children, ...otherProps } = props;
31
31
  let { styleProps: styleProps } = (0, $h7ExA$reactspectrumutils.useStyleProps)(otherProps);
@@ -36,10 +36,7 @@ function $1efae25dd196d679$var$Text(props, ref) {
36
36
  ...styleProps,
37
37
  ref: domRef
38
38
  }, children);
39
- }
40
- /**
41
- * Text represents text with no specific semantic meaning.
42
- */ const $1efae25dd196d679$export$5f1af8db9871e1d6 = /*#__PURE__*/ (0, $h7ExA$react.forwardRef)($1efae25dd196d679$var$Text);
39
+ });
43
40
 
44
41
 
45
42
  //# sourceMappingURL=Text.main.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,2BAAK,KAAgB,EAAE,GAAW;IACzC,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC;QAAK,MAAK;QAAQ,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OACpE;AAGP;AAEA;;CAEC,GACD,MAAM,0DAAQ,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/text/src/Text.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {TextProps} from '@react-types/text';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nfunction Text(props: TextProps, ref: DOMRef) {\n props = useSlotProps(props, 'text');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <span role=\"none\" {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </span>\n );\n}\n\n/**\n * Text represents text with no specific semantic meaning.\n */\nconst _Text = forwardRef(Text);\nexport {_Text as Text};\n"],"names":[],"version":3,"file":"Text.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAO,CAAA,GAAA,uBAAS,EAAE,SAAS,KAAK,KAAgB,EAAE,GAAW;IACxE,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IAEvB,qBACE,0DAAC;QAAK,MAAK;QAAQ,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OACpE;AAGP","sources":["packages/@react-spectrum/text/src/Text.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {TextProps} from '@react-types/text';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\n/**\n * Text represents text with no specific semantic meaning.\n */\nexport const Text = forwardRef(function Text(props: TextProps, ref: DOMRef) {\n props = useSlotProps(props, 'text');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <span role=\"none\" {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </span>\n );\n});\n"],"names":[],"version":3,"file":"Text.main.js.map"}
package/dist/Text.mjs CHANGED
@@ -15,7 +15,7 @@ import {useSlotProps as $8fLFW$useSlotProps, useStyleProps as $8fLFW$useStylePro
15
15
  */
16
16
 
17
17
 
18
- function $cd449e8defa988f0$var$Text(props, ref) {
18
+ const $cd449e8defa988f0$export$5f1af8db9871e1d6 = /*#__PURE__*/ (0, $8fLFW$forwardRef)(function Text(props, ref) {
19
19
  props = (0, $8fLFW$useSlotProps)(props, 'text');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $8fLFW$useStyleProps)(otherProps);
@@ -26,10 +26,7 @@ function $cd449e8defa988f0$var$Text(props, ref) {
26
26
  ...styleProps,
27
27
  ref: domRef
28
28
  }, children);
29
- }
30
- /**
31
- * Text represents text with no specific semantic meaning.
32
- */ const $cd449e8defa988f0$export$5f1af8db9871e1d6 = /*#__PURE__*/ (0, $8fLFW$forwardRef)($cd449e8defa988f0$var$Text);
29
+ });
33
30
 
34
31
 
35
32
  export {$cd449e8defa988f0$export$5f1af8db9871e1d6 as Text};
@@ -15,7 +15,7 @@ import {useSlotProps as $8fLFW$useSlotProps, useStyleProps as $8fLFW$useStylePro
15
15
  */
16
16
 
17
17
 
18
- function $cd449e8defa988f0$var$Text(props, ref) {
18
+ const $cd449e8defa988f0$export$5f1af8db9871e1d6 = /*#__PURE__*/ (0, $8fLFW$forwardRef)(function Text(props, ref) {
19
19
  props = (0, $8fLFW$useSlotProps)(props, 'text');
20
20
  let { children: children, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $8fLFW$useStyleProps)(otherProps);
@@ -26,10 +26,7 @@ function $cd449e8defa988f0$var$Text(props, ref) {
26
26
  ...styleProps,
27
27
  ref: domRef
28
28
  }, children);
29
- }
30
- /**
31
- * Text represents text with no specific semantic meaning.
32
- */ const $cd449e8defa988f0$export$5f1af8db9871e1d6 = /*#__PURE__*/ (0, $8fLFW$forwardRef)($cd449e8defa988f0$var$Text);
29
+ });
33
30
 
34
31
 
35
32
  export {$cd449e8defa988f0$export$5f1af8db9871e1d6 as Text};
@@ -1 +1 @@
1
- {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAQD,SAAS,2BAAK,KAAgB,EAAE,GAAW;IACzC,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QAAK,MAAK;QAAQ,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OACpE;AAGP;AAEA;;CAEC,GACD,MAAM,0DAAQ,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/text/src/Text.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {TextProps} from '@react-types/text';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\nfunction Text(props: TextProps, ref: DOMRef) {\n props = useSlotProps(props, 'text');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <span role=\"none\" {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </span>\n );\n}\n\n/**\n * Text represents text with no specific semantic meaning.\n */\nconst _Text = forwardRef(Text);\nexport {_Text as Text};\n"],"names":[],"version":3,"file":"Text.module.js.map"}
1
+ {"mappings":";;;;AAAA;;;;;;;;;;CAUC;;;AAWM,MAAM,0DAAO,CAAA,GAAA,iBAAS,EAAE,SAAS,KAAK,KAAgB,EAAE,GAAW;IACxE,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IAEvB,qBACE,gCAAC;QAAK,MAAK;QAAQ,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAAG,GAAG,UAAU;QAAE,KAAK;OACpE;AAGP","sources":["packages/@react-spectrum/text/src/Text.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {TextProps} from '@react-types/text';\nimport {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\n\n/**\n * Text represents text with no specific semantic meaning.\n */\nexport const Text = forwardRef(function Text(props: TextProps, ref: DOMRef) {\n props = useSlotProps(props, 'text');\n let {\n children,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let domRef = useDOMRef(ref);\n\n return (\n <span role=\"none\" {...filterDOMProps(otherProps)} {...styleProps} ref={domRef}>\n {children}\n </span>\n );\n});\n"],"names":[],"version":3,"file":"Text.module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;;AAkCA;;GAEG;AACH,OAAA,MAAM,gGAAwB,CAAC;ACE/B;;GAEG;AACH,OAAA,MAAM,6GAA8B,CAAC;ACRrC;;GAEG;AACH,OAAA,MAAM,wGAAgC,CAAC;ACpBvC,YAAY,EAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC","sources":["packages/@react-spectrum/text/src/packages/@react-spectrum/text/src/Text.tsx","packages/@react-spectrum/text/src/packages/@react-spectrum/text/src/Heading.tsx","packages/@react-spectrum/text/src/packages/@react-spectrum/text/src/Keyboard.tsx","packages/@react-spectrum/text/src/packages/@react-spectrum/text/src/index.ts","packages/@react-spectrum/text/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Text} from './Text';\nexport {Heading} from './Heading';\nexport {Keyboard} from './Keyboard';\nexport type {HeadingProps, KeyboardProps, TextProps} from '@react-types/text';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;AAkBA;;GAEG;AACH,OAAO,MAAM,gGAcX,CAAC;AChBH;;GAEG;AACH,OAAO,MAAM,6GAkBX,CAAC;ACtBH;;GAEG;AACH,OAAO,MAAM,wGAcX,CAAC;AClBH,YAAY,EAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAC,MAAM,mBAAmB,CAAC","sources":["packages/@react-spectrum/text/src/packages/@react-spectrum/text/src/Text.tsx","packages/@react-spectrum/text/src/packages/@react-spectrum/text/src/Heading.tsx","packages/@react-spectrum/text/src/packages/@react-spectrum/text/src/Keyboard.tsx","packages/@react-spectrum/text/src/packages/@react-spectrum/text/src/index.ts","packages/@react-spectrum/text/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Text} from './Text';\nexport {Heading} from './Heading';\nexport {Keyboard} from './Keyboard';\nexport type {HeadingProps, KeyboardProps, TextProps} from '@react-types/text';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/text",
3
- "version": "3.5.10",
3
+ "version": "3.5.12",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,12 +36,12 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/utils": "^3.26.0",
40
- "@react-spectrum/utils": "^3.12.0",
41
- "@react-types/shared": "^3.26.0",
42
- "@react-types/text": "^3.3.13",
39
+ "@react-aria/utils": "^3.28.0",
40
+ "@react-spectrum/utils": "^3.12.2",
41
+ "@react-types/shared": "^3.28.0",
42
+ "@react-types/text": "^3.3.15",
43
43
  "@swc/helpers": "^0.5.0",
44
- "react-aria-components": "^1.5.0"
44
+ "react-aria-components": "^1.7.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@adobe/spectrum-css-temp": "3.0.0-alpha.1",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
57
+ "gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726"
58
58
  }
package/src/Heading.tsx CHANGED
@@ -17,7 +17,10 @@ import {HeadingProps} from '@react-types/text';
17
17
  import React, {ElementType, forwardRef} from 'react';
18
18
  import {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';
19
19
 
20
- function Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {
20
+ /**
21
+ * Heading is used to create various levels of typographic hierarchies.
22
+ */
23
+ export const Heading = forwardRef(function Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {
21
24
  let domRef = useDOMRef(ref);
22
25
  props = useSlotProps(props, 'heading');
23
26
  [props, domRef] = useContextProps(props, domRef, HeadingContext);
@@ -35,10 +38,4 @@ function Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {
35
38
  {children}
36
39
  </HeadingTag>
37
40
  );
38
- }
39
-
40
- /**
41
- * Heading is used to create various levels of typographic hierarchies.
42
- */
43
- const _Heading = forwardRef(Heading);
44
- export {_Heading as Heading};
41
+ });
package/src/Keyboard.tsx CHANGED
@@ -16,7 +16,10 @@ import {KeyboardProps} from '@react-types/text';
16
16
  import React, {forwardRef} from 'react';
17
17
  import {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';
18
18
 
19
- function Keyboard(props: KeyboardProps, ref: DOMRef) {
19
+ /**
20
+ * Keyboard represents text that specifies a keyboard command.
21
+ */
22
+ export const Keyboard = forwardRef(function Keyboard(props: KeyboardProps, ref: DOMRef) {
20
23
  props = useSlotProps(props, 'keyboard');
21
24
  let {
22
25
  children,
@@ -30,10 +33,4 @@ function Keyboard(props: KeyboardProps, ref: DOMRef) {
30
33
  {children}
31
34
  </kbd>
32
35
  );
33
- }
34
-
35
- /**
36
- * Keyboard represents text that specifies a keyboard command.
37
- */
38
- const _Keyboard = forwardRef(Keyboard);
39
- export {_Keyboard as Keyboard};
36
+ });
package/src/Text.tsx CHANGED
@@ -16,7 +16,10 @@ import React, {forwardRef} from 'react';
16
16
  import {TextProps} from '@react-types/text';
17
17
  import {useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';
18
18
 
19
- function Text(props: TextProps, ref: DOMRef) {
19
+ /**
20
+ * Text represents text with no specific semantic meaning.
21
+ */
22
+ export const Text = forwardRef(function Text(props: TextProps, ref: DOMRef) {
20
23
  props = useSlotProps(props, 'text');
21
24
  let {
22
25
  children,
@@ -30,10 +33,4 @@ function Text(props: TextProps, ref: DOMRef) {
30
33
  {children}
31
34
  </span>
32
35
  );
33
- }
34
-
35
- /**
36
- * Text represents text with no specific semantic meaning.
37
- */
38
- const _Text = forwardRef(Text);
39
- export {_Text as Text};
36
+ });