@react-spectrum/illustratedmessage 3.3.1-nightly.3414 → 3.3.1-nightly.3420

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 CHANGED
@@ -52,9 +52,9 @@ function $90e6e9abe7fc12ca$var$IllustratedMessage(props, ref) {
52
52
  isHidden: styleProps.hidden,
53
53
  UNSAFE_className: $6dAMz$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($e7750c05f28ceb4f$exports)), 'spectrum-IllustratedMessage', styleProps.className),
54
54
  ref: ref
55
- }, /*#__PURE__*/ ($parcel$interopDefault($6dAMz$react)).createElement($6dAMz$reactspectrumutils.SlotProvider, {
55
+ }, /*#__PURE__*/ ($parcel$interopDefault($6dAMz$react)).createElement($6dAMz$reactspectrumutils.ClearSlots, null, /*#__PURE__*/ ($parcel$interopDefault($6dAMz$react)).createElement($6dAMz$reactspectrumutils.SlotProvider, {
56
56
  slots: slots
57
- }, children)));
57
+ }, children))));
58
58
  }
59
59
  /**
60
60
  * An IllustratedMessage displays an illustration and a message, usually
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAA6C;AAC7C,GAAqD;AACrD,GAAyD;AACzD,GAAkD;AAHlD,yCAA6C,GAAG,CAAoC;AACpF,yCAAqD,GAAG,CAA4C;AACpG,yCAAyD,GAAG,CAAgD;AAC5G,yCAAkD,GAAG,CAAyC;;;SDiBrF,wCAAkB,CAAC,KAAsC,EAAE,GAA2B,EAAE,CAAC;IAChG,KAAK,GAAG,sCAAY,CAAC,KAAK,EAAE,CAAc;IAC1C,GAAG,CAAC,CAAC,WACH,QAAQ,MACL,UAAU,CACf,CAAC,GAAG,KAAK;IAET,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,gBAAgB,GAAG,oCAAU,CAAC,gEAAM,EAAE,CAAqC;IAC/E,GAAG,CAAC,gBAAgB,GAAG,oCAAU,CAAC,gEAAM,EAAE,CAAyC;IAEnF,GAAG,CAAC,KAAK,GAAG,CAAC;QACX,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gBAAgB;QAAA,CAAC;QAC7C,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gBAAgB;QAAA,CAAC;IAC/C,CAAC;IAED,MAAM,oEACH,+BAAI;WACC,oCAAc,CAAC,UAAU;QAC7B,YAAY,EAAE,UAAU,CAAC,KAAK;QAC9B,QAAQ,EAAE,UAAU,CAAC,MAAM;QAC3B,gBAAgB,EAAE,oCAAU,CAC1B,gEAAM,EACN,CAA6B,8BAC7B,UAAU,CAAC,SAAS;QAEtB,GAAG,EAAE,GAAG;0EACP,sCAAY;QAAC,KAAK,EAAE,KAAK;OACvB,QAAQ;AAIjB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,GAAG,CAAC,yCAAmB,iBAAG,uBAAU,CAAC,wCAAkB","sources":["packages/@react-spectrum/illustratedmessage/src/index.ts","packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.tsx","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/// <reference types=\"css-module-types\" />\n\nexport {IllustratedMessage} from './IllustratedMessage';\nexport type {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\n","/*\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, 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 <SlotProvider slots={slots}>\n {children}\n </SlotProvider>\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","/*\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":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAA6C;AAC7C,GAAqD;AACrD,GAAyD;AACzD,GAAkD;AAHlD,yCAA6C,GAAG,CAAoC;AACpF,yCAAqD,GAAG,CAA4C;AACpG,yCAAyD,GAAG,CAAgD;AAC5G,yCAAkD,GAAG,CAAyC;;;SDiBrF,wCAAkB,CAAC,KAAsC,EAAE,GAA2B,EAAE,CAAC;IAChG,KAAK,GAAG,sCAAY,CAAC,KAAK,EAAE,CAAc;IAC1C,GAAG,CAAC,CAAC,WACH,QAAQ,MACL,UAAU,CACf,CAAC,GAAG,KAAK;IAET,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,gBAAgB,GAAG,oCAAU,CAAC,gEAAM,EAAE,CAAqC;IAC/E,GAAG,CAAC,gBAAgB,GAAG,oCAAU,CAAC,gEAAM,EAAE,CAAyC;IAEnF,GAAG,CAAC,KAAK,GAAG,CAAC;QACX,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gBAAgB;QAAA,CAAC;QAC7C,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gBAAgB;QAAA,CAAC;IAC/C,CAAC;IAED,MAAM,oEACH,+BAAI;WACC,oCAAc,CAAC,UAAU;QAC7B,YAAY,EAAE,UAAU,CAAC,KAAK;QAC9B,QAAQ,EAAE,UAAU,CAAC,MAAM;QAC3B,gBAAgB,EAAE,oCAAU,CAC1B,gEAAM,EACN,CAA6B,8BAC7B,UAAU,CAAC,SAAS;QAEtB,GAAG,EAAE,GAAG;0EACP,oCAAU,2EACR,sCAAY;QAAC,KAAK,EAAE,KAAK;OACvB,QAAQ;AAKnB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,GAAG,CAAC,yCAAmB,iBAAG,uBAAU,CAAC,wCAAkB","sources":["packages/@react-spectrum/illustratedmessage/src/index.ts","packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.tsx","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/// <reference types=\"css-module-types\" />\n\nexport {IllustratedMessage} from './IllustratedMessage';\nexport type {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\n","/*\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","/*\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":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./main.css";
2
- import {useSlotProps as $RWtz0$useSlotProps, useStyleProps as $RWtz0$useStyleProps, classNames as $RWtz0$classNames, SlotProvider as $RWtz0$SlotProvider} from "@react-spectrum/utils";
2
+ import {useSlotProps as $RWtz0$useSlotProps, useStyleProps as $RWtz0$useStyleProps, classNames as $RWtz0$classNames, ClearSlots as $RWtz0$ClearSlots, SlotProvider as $RWtz0$SlotProvider} from "@react-spectrum/utils";
3
3
  import {filterDOMProps as $RWtz0$filterDOMProps} from "@react-aria/utils";
4
4
  import {Flex as $RWtz0$Flex} from "@react-spectrum/layout";
5
5
  import $RWtz0$react, {forwardRef as $RWtz0$forwardRef} from "react";
@@ -50,9 +50,9 @@ function $ccaf5c86c16f58c0$var$IllustratedMessage(props, ref) {
50
50
  isHidden: styleProps.hidden,
51
51
  UNSAFE_className: $RWtz0$classNames((/*@__PURE__*/$parcel$interopDefault($4c3e55dfb549f378$exports)), 'spectrum-IllustratedMessage', styleProps.className),
52
52
  ref: ref
53
- }, /*#__PURE__*/ $RWtz0$react.createElement($RWtz0$SlotProvider, {
53
+ }, /*#__PURE__*/ $RWtz0$react.createElement($RWtz0$ClearSlots, null, /*#__PURE__*/ $RWtz0$react.createElement($RWtz0$SlotProvider, {
54
54
  slots: slots
55
- }, children)));
55
+ }, children))));
56
56
  }
57
57
  /**
58
58
  * An IllustratedMessage displays an illustration and a message, usually
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;AEAA,GAA6C;AAC7C,GAAqD;AACrD,GAAyD;AACzD,GAAkD;AAHlD,yCAA6C,GAAG,CAAoC;AACpF,yCAAqD,GAAG,CAA4C;AACpG,yCAAyD,GAAG,CAAgD;AAC5G,yCAAkD,GAAG,CAAyC;;;SDiBrF,wCAAkB,CAAC,KAAsC,EAAE,GAA2B,EAAE,CAAC;IAChG,KAAK,GAAG,mBAAY,CAAC,KAAK,EAAE,CAAc;IAC1C,GAAG,CAAC,CAAC,WACH,QAAQ,MACL,UAAU,CACf,CAAC,GAAG,KAAK;IAET,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,gBAAgB,GAAG,iBAAU,CAAC,gEAAM,EAAE,CAAqC;IAC/E,GAAG,CAAC,gBAAgB,GAAG,iBAAU,CAAC,gEAAM,EAAE,CAAyC;IAEnF,GAAG,CAAC,KAAK,GAAG,CAAC;QACX,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gBAAgB;QAAA,CAAC;QAC7C,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gBAAgB;QAAA,CAAC;IAC/C,CAAC;IAED,MAAM,0CACH,WAAI;WACC,qBAAc,CAAC,UAAU;QAC7B,YAAY,EAAE,UAAU,CAAC,KAAK;QAC9B,QAAQ,EAAE,UAAU,CAAC,MAAM;QAC3B,gBAAgB,EAAE,iBAAU,CAC1B,gEAAM,EACN,CAA6B,8BAC7B,UAAU,CAAC,SAAS;QAEtB,GAAG,EAAE,GAAG;gDACP,mBAAY;QAAC,KAAK,EAAE,KAAK;OACvB,QAAQ;AAIjB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,GAAG,CAAC,yCAAmB,iBAAG,iBAAU,CAAC,wCAAkB","sources":["packages/@react-spectrum/illustratedmessage/src/index.ts","packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.tsx","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/// <reference types=\"css-module-types\" />\n\nexport {IllustratedMessage} from './IllustratedMessage';\nexport type {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\n","/*\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, 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 <SlotProvider slots={slots}>\n {children}\n </SlotProvider>\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","/*\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":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;AEAA,GAA6C;AAC7C,GAAqD;AACrD,GAAyD;AACzD,GAAkD;AAHlD,yCAA6C,GAAG,CAAoC;AACpF,yCAAqD,GAAG,CAA4C;AACpG,yCAAyD,GAAG,CAAgD;AAC5G,yCAAkD,GAAG,CAAyC;;;SDiBrF,wCAAkB,CAAC,KAAsC,EAAE,GAA2B,EAAE,CAAC;IAChG,KAAK,GAAG,mBAAY,CAAC,KAAK,EAAE,CAAc;IAC1C,GAAG,CAAC,CAAC,WACH,QAAQ,MACL,UAAU,CACf,CAAC,GAAG,KAAK;IAET,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,UAAU;IAC3C,GAAG,CAAC,gBAAgB,GAAG,iBAAU,CAAC,gEAAM,EAAE,CAAqC;IAC/E,GAAG,CAAC,gBAAgB,GAAG,iBAAU,CAAC,gEAAM,EAAE,CAAyC;IAEnF,GAAG,CAAC,KAAK,GAAG,CAAC;QACX,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gBAAgB;QAAA,CAAC;QAC7C,OAAO,EAAE,CAAC;YAAA,gBAAgB,EAAE,gBAAgB;QAAA,CAAC;IAC/C,CAAC;IAED,MAAM,0CACH,WAAI;WACC,qBAAc,CAAC,UAAU;QAC7B,YAAY,EAAE,UAAU,CAAC,KAAK;QAC9B,QAAQ,EAAE,UAAU,CAAC,MAAM;QAC3B,gBAAgB,EAAE,iBAAU,CAC1B,gEAAM,EACN,CAA6B,8BAC7B,UAAU,CAAC,SAAS;QAEtB,GAAG,EAAE,GAAG;gDACP,iBAAU,iDACR,mBAAY;QAAC,KAAK,EAAE,KAAK;OACvB,QAAQ;AAKnB,CAAC;AAED,EAGG,AAHH;;;CAGG,AAHH,EAGG,CACH,GAAG,CAAC,yCAAmB,iBAAG,iBAAU,CAAC,wCAAkB","sources":["packages/@react-spectrum/illustratedmessage/src/index.ts","packages/@react-spectrum/illustratedmessage/src/IllustratedMessage.tsx","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/// <reference types=\"css-module-types\" />\n\nexport {IllustratedMessage} from './IllustratedMessage';\nexport type {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';\n","/*\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","/*\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":"module.js.map"}
@@ -1 +1 @@
1
- {"mappings":";;AAsDA;;;GAGG;AACH,OAAA,IAAI,qKAAoD,CAAC;AC3CzD,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":";;AAwDA;;;GAGG;AACH,OAAA,IAAI,qKAAoD,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/illustratedmessage",
3
- "version": "3.3.1-nightly.3414+e1273c0e2",
3
+ "version": "3.3.1-nightly.3420+af06f65c9",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.6.2",
35
- "@react-aria/utils": "3.0.0-nightly.1714+e1273c0e2",
36
- "@react-spectrum/layout": "3.4.1-nightly.3414+e1273c0e2",
37
- "@react-spectrum/utils": "3.0.0-nightly.1714+e1273c0e2",
38
- "@react-types/illustratedmessage": "3.2.3-nightly.3414+e1273c0e2",
39
- "@react-types/shared": "3.0.0-nightly.1714+e1273c0e2"
35
+ "@react-aria/utils": "3.0.0-nightly.1720+af06f65c9",
36
+ "@react-spectrum/layout": "3.4.1-nightly.3420+af06f65c9",
37
+ "@react-spectrum/utils": "3.0.0-nightly.1720+af06f65c9",
38
+ "@react-types/illustratedmessage": "3.2.3-nightly.3420+af06f65c9",
39
+ "@react-types/shared": "3.0.0-nightly.1720+af06f65c9"
40
40
  },
41
41
  "devDependencies": {
42
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1714+e1273c0e2"
42
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.1720+af06f65c9"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@react-spectrum/provider": "^3.0.0",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "e1273c0e29a8ef3779981527bbc8cbbe0107b4a0"
51
+ "gitHead": "af06f65c95414c83f7d9d5dc3740f98dad2e10ad"
52
52
  }
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {classNames, SlotProvider, useSlotProps, useStyleProps} from '@react-spectrum/utils';
13
+ import {classNames, ClearSlots, SlotProvider, useSlotProps, useStyleProps} from '@react-spectrum/utils';
14
14
  import {DOMRef} from '@react-types/shared';
15
15
  import {filterDOMProps} from '@react-aria/utils';
16
16
  import {Flex} from '@react-spectrum/layout';
@@ -45,9 +45,11 @@ function IllustratedMessage(props: SpectrumIllustratedMessageProps, ref: DOMRef<
45
45
  styleProps.className
46
46
  )}
47
47
  ref={ref}>
48
- <SlotProvider slots={slots}>
49
- {children}
50
- </SlotProvider>
48
+ <ClearSlots>
49
+ <SlotProvider slots={slots}>
50
+ {children}
51
+ </SlotProvider>
52
+ </ClearSlots>
51
53
  </Flex>
52
54
  );
53
55
  }