@react-spectrum/illustratedmessage 3.5.5 → 3.5.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.
@@ -1,4 +1,4 @@
1
- require("./vars.cd289eb9.css");
1
+ require("./vars.b1947143.css");
2
2
  var $e7750c05f28ceb4f$exports = require("./illustratedmessage_vars_css.main.js");
3
3
  var $3YIyO$reactspectrumutils = require("@react-spectrum/utils");
4
4
  var $3YIyO$reactariautils = require("@react-aria/utils");
@@ -30,7 +30,7 @@ $parcel$export(module.exports, "IllustratedMessage", () => $90e6e9abe7fc12ca$exp
30
30
 
31
31
 
32
32
 
33
- function $90e6e9abe7fc12ca$var$IllustratedMessage(props, ref) {
33
+ const $90e6e9abe7fc12ca$export$406dbc84c317ece0 = /*#__PURE__*/ (0, $3YIyO$react.forwardRef)(function IllustratedMessage(props, ref) {
34
34
  props = (0, $3YIyO$reactspectrumutils.useSlotProps)(props, 'illustration');
35
35
  let { children: children, ...otherProps } = props;
36
36
  let { styleProps: styleProps } = (0, $3YIyO$reactspectrumutils.useStyleProps)(otherProps);
@@ -53,11 +53,7 @@ function $90e6e9abe7fc12ca$var$IllustratedMessage(props, ref) {
53
53
  }, /*#__PURE__*/ (0, ($parcel$interopDefault($3YIyO$react))).createElement((0, $3YIyO$reactspectrumutils.ClearSlots), null, /*#__PURE__*/ (0, ($parcel$interopDefault($3YIyO$react))).createElement((0, $3YIyO$reactspectrumutils.SlotProvider), {
54
54
  slots: slots
55
55
  }, children)));
56
- }
57
- /**
58
- * An IllustratedMessage displays an illustration and a message, usually
59
- * for an empty state or an error page.
60
- */ let $90e6e9abe7fc12ca$export$406dbc84c317ece0 = /*#__PURE__*/ (0, $3YIyO$react.forwardRef)($90e6e9abe7fc12ca$var$IllustratedMessage);
56
+ });
61
57
 
62
58
 
63
59
  //# sourceMappingURL=IllustratedMessage.main.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAUD,SAAS,yCAAmB,KAAsC,EAAE,GAA2B;IAC7F,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,mBAAmB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;IAC1C,IAAI,mBAAmB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;IAE1C,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB;QAAgB;QAC5C,SAAS;YAAC,kBAAkB;QAAgB;IAC9C;IAEA,qBACE,0DAAC,CAAA,GAAA,+BAAG;QACD,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC9B,cAAc,WAAW,KAAK;QAC9B,UAAU,WAAW,MAAM;QAC3B,kBAAkB,CAAA,GAAA,oCAAS,EACzB,CAAA,GAAA,mDAAK,GACL,+BACA,WAAW,SAAS;QAEtB,KAAK;qBACL,0DAAC,CAAA,GAAA,oCAAS,uBACR,0DAAC,CAAA,GAAA,sCAAW;QAAE,OAAO;OAClB;AAKX;AAEA;;;CAGC,GACD,IAAI,0DAAsB,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.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 {classNames, ClearSlots, SlotProvider, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport React, {forwardRef} from 'react';\nimport {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\nimport styles from '@adobe/spectrum-css-temp/components/illustratedmessage/vars.css';\n\nfunction IllustratedMessage(props: SpectrumIllustratedMessageProps, ref: DOMRef<HTMLDivElement>) {\n props = useSlotProps(props, 'illustration');\n let {\n children,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let headingClassName = classNames(styles, 'spectrum-IllustratedMessage-heading');\n let contentClassName = classNames(styles, 'spectrum-IllustratedMessage-description');\n\n let slots = {\n heading: {UNSAFE_className: headingClassName},\n content: {UNSAFE_className: contentClassName}\n };\n\n return (\n <Flex\n {...filterDOMProps(otherProps)}\n UNSAFE_style={styleProps.style}\n isHidden={styleProps.hidden}\n UNSAFE_className={classNames(\n styles,\n 'spectrum-IllustratedMessage',\n styleProps.className\n )}\n ref={ref}>\n <ClearSlots>\n <SlotProvider slots={slots}>\n {children}\n </SlotProvider>\n </ClearSlots>\n </Flex>\n );\n}\n\n/**\n * An IllustratedMessage displays an illustration and a message, usually\n * for an empty state or an error page.\n */\nlet _IllustratedMessage = forwardRef(IllustratedMessage);\nexport {_IllustratedMessage as IllustratedMessage};\n"],"names":[],"version":3,"file":"IllustratedMessage.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAcM,MAAM,0DAAqB,CAAA,GAAA,uBAAS,EAAE,SAAS,mBAAmB,KAAsC,EAAE,GAA2B;IAC1I,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,mBAAmB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;IAC1C,IAAI,mBAAmB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;IAE1C,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB;QAAgB;QAC5C,SAAS;YAAC,kBAAkB;QAAgB;IAC9C;IAEA,qBACE,0DAAC,CAAA,GAAA,+BAAG;QACD,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC9B,cAAc,WAAW,KAAK;QAC9B,UAAU,WAAW,MAAM;QAC3B,kBAAkB,CAAA,GAAA,oCAAS,EACzB,CAAA,GAAA,mDAAK,GACL,+BACA,WAAW,SAAS;QAEtB,KAAK;qBACL,0DAAC,CAAA,GAAA,oCAAS,uBACR,0DAAC,CAAA,GAAA,sCAAW;QAAE,OAAO;OAClB;AAKX","sources":["packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.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 {classNames, ClearSlots, SlotProvider, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport React, {forwardRef} from 'react';\nimport {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\nimport styles from '@adobe/spectrum-css-temp/components/illustratedmessage/vars.css';\n\n/**\n * An IllustratedMessage displays an illustration and a message, usually\n * for an empty state or an error page.\n */\nexport const IllustratedMessage = forwardRef(function IllustratedMessage(props: SpectrumIllustratedMessageProps, ref: DOMRef<HTMLDivElement>) {\n props = useSlotProps(props, 'illustration');\n let {\n children,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let headingClassName = classNames(styles, 'spectrum-IllustratedMessage-heading');\n let contentClassName = classNames(styles, 'spectrum-IllustratedMessage-description');\n\n let slots = {\n heading: {UNSAFE_className: headingClassName},\n content: {UNSAFE_className: contentClassName}\n };\n\n return (\n <Flex\n {...filterDOMProps(otherProps)}\n UNSAFE_style={styleProps.style}\n isHidden={styleProps.hidden}\n UNSAFE_className={classNames(\n styles,\n 'spectrum-IllustratedMessage',\n styleProps.className\n )}\n ref={ref}>\n <ClearSlots>\n <SlotProvider slots={slots}>\n {children}\n </SlotProvider>\n </ClearSlots>\n </Flex>\n );\n});\n"],"names":[],"version":3,"file":"IllustratedMessage.main.js.map"}
@@ -1,4 +1,4 @@
1
- import "./vars.cd289eb9.css";
1
+ import "./vars.b1947143.css";
2
2
  import $i4ryj$illustratedmessage_vars_cssmodulejs from "./illustratedmessage_vars_css.mjs";
3
3
  import {useSlotProps as $i4ryj$useSlotProps, useStyleProps as $i4ryj$useStyleProps, classNames as $i4ryj$classNames, ClearSlots as $i4ryj$ClearSlots, SlotProvider as $i4ryj$SlotProvider} from "@react-spectrum/utils";
4
4
  import {filterDOMProps as $i4ryj$filterDOMProps} from "@react-aria/utils";
@@ -24,7 +24,7 @@ function $parcel$interopDefault(a) {
24
24
 
25
25
 
26
26
 
27
- function $ccaf5c86c16f58c0$var$IllustratedMessage(props, ref) {
27
+ const $ccaf5c86c16f58c0$export$406dbc84c317ece0 = /*#__PURE__*/ (0, $i4ryj$forwardRef)(function IllustratedMessage(props, ref) {
28
28
  props = (0, $i4ryj$useSlotProps)(props, 'illustration');
29
29
  let { children: children, ...otherProps } = props;
30
30
  let { styleProps: styleProps } = (0, $i4ryj$useStyleProps)(otherProps);
@@ -47,11 +47,7 @@ function $ccaf5c86c16f58c0$var$IllustratedMessage(props, ref) {
47
47
  }, /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$ClearSlots), null, /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$SlotProvider), {
48
48
  slots: slots
49
49
  }, children)));
50
- }
51
- /**
52
- * An IllustratedMessage displays an illustration and a message, usually
53
- * for an empty state or an error page.
54
- */ let $ccaf5c86c16f58c0$export$406dbc84c317ece0 = /*#__PURE__*/ (0, $i4ryj$forwardRef)($ccaf5c86c16f58c0$var$IllustratedMessage);
50
+ });
55
51
 
56
52
 
57
53
  export {$ccaf5c86c16f58c0$export$406dbc84c317ece0 as IllustratedMessage};
@@ -1,4 +1,4 @@
1
- import "./vars.cd289eb9.css";
1
+ import "./vars.b1947143.css";
2
2
  import $i4ryj$illustratedmessage_vars_cssmodulejs from "./illustratedmessage_vars_css.module.js";
3
3
  import {useSlotProps as $i4ryj$useSlotProps, useStyleProps as $i4ryj$useStyleProps, classNames as $i4ryj$classNames, ClearSlots as $i4ryj$ClearSlots, SlotProvider as $i4ryj$SlotProvider} from "@react-spectrum/utils";
4
4
  import {filterDOMProps as $i4ryj$filterDOMProps} from "@react-aria/utils";
@@ -24,7 +24,7 @@ function $parcel$interopDefault(a) {
24
24
 
25
25
 
26
26
 
27
- function $ccaf5c86c16f58c0$var$IllustratedMessage(props, ref) {
27
+ const $ccaf5c86c16f58c0$export$406dbc84c317ece0 = /*#__PURE__*/ (0, $i4ryj$forwardRef)(function IllustratedMessage(props, ref) {
28
28
  props = (0, $i4ryj$useSlotProps)(props, 'illustration');
29
29
  let { children: children, ...otherProps } = props;
30
30
  let { styleProps: styleProps } = (0, $i4ryj$useStyleProps)(otherProps);
@@ -47,11 +47,7 @@ function $ccaf5c86c16f58c0$var$IllustratedMessage(props, ref) {
47
47
  }, /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$ClearSlots), null, /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$SlotProvider), {
48
48
  slots: slots
49
49
  }, children)));
50
- }
51
- /**
52
- * An IllustratedMessage displays an illustration and a message, usually
53
- * for an empty state or an error page.
54
- */ let $ccaf5c86c16f58c0$export$406dbc84c317ece0 = /*#__PURE__*/ (0, $i4ryj$forwardRef)($ccaf5c86c16f58c0$var$IllustratedMessage);
50
+ });
55
51
 
56
52
 
57
53
  export {$ccaf5c86c16f58c0$export$406dbc84c317ece0 as IllustratedMessage};
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAUD,SAAS,yCAAmB,KAAsC,EAAE,GAA2B;IAC7F,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,mBAAmB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,oEAAK,GAAG;IAC1C,IAAI,mBAAmB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,oEAAK,GAAG;IAE1C,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB;QAAgB;QAC5C,SAAS;YAAC,kBAAkB;QAAgB;IAC9C;IAEA,qBACE,gCAAC,CAAA,GAAA,WAAG;QACD,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC9B,cAAc,WAAW,KAAK;QAC9B,UAAU,WAAW,MAAM;QAC3B,kBAAkB,CAAA,GAAA,iBAAS,EACzB,CAAA,GAAA,oEAAK,GACL,+BACA,WAAW,SAAS;QAEtB,KAAK;qBACL,gCAAC,CAAA,GAAA,iBAAS,uBACR,gCAAC,CAAA,GAAA,mBAAW;QAAE,OAAO;OAClB;AAKX;AAEA;;;CAGC,GACD,IAAI,0DAAsB,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.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 {classNames, ClearSlots, SlotProvider, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport React, {forwardRef} from 'react';\nimport {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\nimport styles from '@adobe/spectrum-css-temp/components/illustratedmessage/vars.css';\n\nfunction IllustratedMessage(props: SpectrumIllustratedMessageProps, ref: DOMRef<HTMLDivElement>) {\n props = useSlotProps(props, 'illustration');\n let {\n children,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let headingClassName = classNames(styles, 'spectrum-IllustratedMessage-heading');\n let contentClassName = classNames(styles, 'spectrum-IllustratedMessage-description');\n\n let slots = {\n heading: {UNSAFE_className: headingClassName},\n content: {UNSAFE_className: contentClassName}\n };\n\n return (\n <Flex\n {...filterDOMProps(otherProps)}\n UNSAFE_style={styleProps.style}\n isHidden={styleProps.hidden}\n UNSAFE_className={classNames(\n styles,\n 'spectrum-IllustratedMessage',\n styleProps.className\n )}\n ref={ref}>\n <ClearSlots>\n <SlotProvider slots={slots}>\n {children}\n </SlotProvider>\n </ClearSlots>\n </Flex>\n );\n}\n\n/**\n * An IllustratedMessage displays an illustration and a message, usually\n * for an empty state or an error page.\n */\nlet _IllustratedMessage = forwardRef(IllustratedMessage);\nexport {_IllustratedMessage as IllustratedMessage};\n"],"names":[],"version":3,"file":"IllustratedMessage.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAcM,MAAM,0DAAqB,CAAA,GAAA,iBAAS,EAAE,SAAS,mBAAmB,KAAsC,EAAE,GAA2B;IAC1I,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,mBAAmB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,oEAAK,GAAG;IAC1C,IAAI,mBAAmB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,oEAAK,GAAG;IAE1C,IAAI,QAAQ;QACV,SAAS;YAAC,kBAAkB;QAAgB;QAC5C,SAAS;YAAC,kBAAkB;QAAgB;IAC9C;IAEA,qBACE,gCAAC,CAAA,GAAA,WAAG;QACD,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC9B,cAAc,WAAW,KAAK;QAC9B,UAAU,WAAW,MAAM;QAC3B,kBAAkB,CAAA,GAAA,iBAAS,EACzB,CAAA,GAAA,oEAAK,GACL,+BACA,WAAW,SAAS;QAEtB,KAAK;qBACL,gCAAC,CAAA,GAAA,iBAAS,uBACR,gCAAC,CAAA,GAAA,mBAAW;QAAE,OAAO;OAClB;AAKX","sources":["packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.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 {classNames, ClearSlots, SlotProvider, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport React, {forwardRef} from 'react';\nimport {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\nimport styles from '@adobe/spectrum-css-temp/components/illustratedmessage/vars.css';\n\n/**\n * An IllustratedMessage displays an illustration and a message, usually\n * for an empty state or an error page.\n */\nexport const IllustratedMessage = forwardRef(function IllustratedMessage(props: SpectrumIllustratedMessageProps, ref: DOMRef<HTMLDivElement>) {\n props = useSlotProps(props, 'illustration');\n let {\n children,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let headingClassName = classNames(styles, 'spectrum-IllustratedMessage-heading');\n let contentClassName = classNames(styles, 'spectrum-IllustratedMessage-description');\n\n let slots = {\n heading: {UNSAFE_className: headingClassName},\n content: {UNSAFE_className: contentClassName}\n };\n\n return (\n <Flex\n {...filterDOMProps(otherProps)}\n UNSAFE_style={styleProps.style}\n isHidden={styleProps.hidden}\n UNSAFE_className={classNames(\n styles,\n 'spectrum-IllustratedMessage',\n styleProps.className\n )}\n ref={ref}>\n <ClearSlots>\n <SlotProvider slots={slots}>\n {children}\n </SlotProvider>\n </ClearSlots>\n </Flex>\n );\n});\n"],"names":[],"version":3,"file":"IllustratedMessage.module.js.map"}
package/dist/types.d.ts CHANGED
@@ -5,7 +5,7 @@ import { DOMRefValue } from "@react-types/shared";
5
5
  * An IllustratedMessage displays an illustration and a message, usually
6
6
  * for an empty state or an error page.
7
7
  */
8
- export let IllustratedMessage: React.ForwardRefExoticComponent<SpectrumIllustratedMessageProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
8
+ export const IllustratedMessage: React.ForwardRefExoticComponent<SpectrumIllustratedMessageProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
9
9
  export type { SpectrumIllustratedMessageProps } from '@react-types/illustratedmessage';
10
10
 
11
11
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"mappings":";;;AAwDA;;;GAGG;AACH,OAAA,IAAI,uIAAoD,CAAC;AC7CzD,YAAY,EAAC,+BAA+B,EAAC,MAAM,iCAAiC,CAAC","sources":["packages/@react-spectrum/illustratedmessage/src/packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.tsx","packages/@react-spectrum/illustratedmessage/src/packages/@react-spectrum/illustratedmessage/src/index.ts","packages/@react-spectrum/illustratedmessage/src/index.ts"],"sourcesContent":[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 {IllustratedMessage} from './IllustratedMessage';\nexport type {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;;AAoBA;;;GAGG;AACH,OAAO,MAAM,uIAkCX,CAAC;AC3CH,YAAY,EAAC,+BAA+B,EAAC,MAAM,iCAAiC,CAAC","sources":["packages/@react-spectrum/illustratedmessage/src/packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.tsx","packages/@react-spectrum/illustratedmessage/src/packages/@react-spectrum/illustratedmessage/src/index.ts","packages/@react-spectrum/illustratedmessage/src/index.ts"],"sourcesContent":[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 {IllustratedMessage} from './IllustratedMessage';\nexport type {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -17,6 +17,7 @@
17
17
  }
18
18
 
19
19
  .TtYriW_spectrum-IllustratedMessage .TtYriW_spectrum-IllustratedMessage-heading {
20
+ max-width: 500px;
20
21
  font-size: var(--spectrum-heading-3-text-size, var(--spectrum-alias-heading3-text-size));
21
22
  font-weight: var(--spectrum-heading-3-text-font-weight, var(--spectrum-alias-heading-text-font-weight-regular));
22
23
  line-height: var(--spectrum-heading-3-text-line-height, var(--spectrum-alias-heading-text-line-height));
@@ -24,11 +25,11 @@
24
25
  letter-spacing: var(--spectrum-heading-3-text-letter-spacing, var(--spectrum-global-font-letter-spacing-none));
25
26
  text-transform: var(--spectrum-heading-3-text-transform, none);
26
27
  order: 2;
27
- max-width: 500px;
28
28
  margin: 0;
29
29
  }
30
30
 
31
31
  .TtYriW_spectrum-IllustratedMessage .TtYriW_spectrum-IllustratedMessage-description {
32
+ max-width: 500px;
32
33
  font-style: var(--spectrum-body-4-text-font-style, var(--spectrum-global-font-style-regular));
33
34
  font-size: var(--spectrum-body-4-text-size, var(--spectrum-alias-font-size-default));
34
35
  font-weight: var(--spectrum-body-4-text-font-weight, var(--spectrum-alias-body-text-font-weight));
@@ -36,7 +37,6 @@
36
37
  letter-spacing: var(--spectrum-body-4-text-letter-spacing, var(--spectrum-global-font-letter-spacing-none));
37
38
  text-transform: var(--spectrum-body-4-text-transform, none);
38
39
  order: 3;
39
- max-width: 500px;
40
40
  margin: 4px 0 0;
41
41
  }
42
42
 
@@ -64,4 +64,4 @@
64
64
  --spectrum-IllustratedMessage-illustration-color: CanvasText;
65
65
  }
66
66
  }
67
- /*# sourceMappingURL=vars.cd289eb9.css.map */
67
+ /*# sourceMappingURL=vars.b1947143.css.map */
@@ -1 +1 @@
1
- {"mappings":"AAwBA;;;;;;;;;AAUE;;;;AAIA;;;;;AAKA;;;;;;;;;;;;AAaA;;;;;;;;;;;;AAgBA;;;;AAiBF;;;;;;;AAQA;;;;AAIA;;;;AAIA;EACE","sources":["packages/@adobe/spectrum-css-temp/components/illustratedmessage/vars.css"],"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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.cd289eb9.css.map"}
1
+ {"mappings":"AAwBA;;;;;;;;;AAUE;;;;AAIA;;;;;AAKA;;;;;;;;;;;;AAaA;;;;;;;;;;;;AAgBA;;;;AAiBF;;;;;;;AAQA;;;;AAIA;;;;AAIA;EACE","sources":["packages/@adobe/spectrum-css-temp/components/illustratedmessage/vars.css"],"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\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"vars.b1947143.css.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/illustratedmessage",
3
- "version": "3.5.5",
3
+ "version": "3.5.6",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,11 +36,11 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/utils": "^3.26.0",
40
- "@react-spectrum/layout": "^3.6.10",
41
- "@react-spectrum/utils": "^3.12.0",
42
- "@react-types/illustratedmessage": "^3.3.13",
43
- "@react-types/shared": "^3.26.0",
39
+ "@react-aria/utils": "^3.27.0",
40
+ "@react-spectrum/layout": "^3.6.11",
41
+ "@react-spectrum/utils": "^3.12.1",
42
+ "@react-types/illustratedmessage": "^3.3.14",
43
+ "@react-types/shared": "^3.27.0",
44
44
  "@swc/helpers": "^0.5.0"
45
45
  },
46
46
  "devDependencies": {
@@ -48,10 +48,11 @@
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@react-spectrum/provider": "^3.0.0",
51
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
51
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
52
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
52
53
  },
53
54
  "publishConfig": {
54
55
  "access": "public"
55
56
  },
56
- "gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
57
+ "gitHead": "09e7f44bebdc9d89122926b2b439a0a38a2814ea"
57
58
  }
@@ -18,7 +18,11 @@ import React, {forwardRef} from 'react';
18
18
  import {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';
19
19
  import styles from '@adobe/spectrum-css-temp/components/illustratedmessage/vars.css';
20
20
 
21
- function IllustratedMessage(props: SpectrumIllustratedMessageProps, ref: DOMRef<HTMLDivElement>) {
21
+ /**
22
+ * An IllustratedMessage displays an illustration and a message, usually
23
+ * for an empty state or an error page.
24
+ */
25
+ export const IllustratedMessage = forwardRef(function IllustratedMessage(props: SpectrumIllustratedMessageProps, ref: DOMRef<HTMLDivElement>) {
22
26
  props = useSlotProps(props, 'illustration');
23
27
  let {
24
28
  children,
@@ -52,11 +56,4 @@ function IllustratedMessage(props: SpectrumIllustratedMessageProps, ref: DOMRef<
52
56
  </ClearSlots>
53
57
  </Flex>
54
58
  );
55
- }
56
-
57
- /**
58
- * An IllustratedMessage displays an illustration and a message, usually
59
- * for an empty state or an error page.
60
- */
61
- let _IllustratedMessage = forwardRef(IllustratedMessage);
62
- export {_IllustratedMessage as IllustratedMessage};
59
+ });