@react-spectrum/illustratedmessage 3.5.17 → 3.6.0

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/import.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import {IllustratedMessage as $ccaf5c86c16f58c0$export$406dbc84c317ece0} from "./IllustratedMessage.mjs";
1
+ import {IllustratedMessage as $610d9c55dbfedcfe$re_export$IllustratedMessage} from "@adobe/react-spectrum/IllustratedMessage";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {IllustratedMessage as $ccaf5c86c16f58c0$export$406dbc84c317ece0} from ".
14
14
 
15
15
 
16
16
 
17
- export {$ccaf5c86c16f58c0$export$406dbc84c317ece0 as IllustratedMessage};
17
+ export {$610d9c55dbfedcfe$re_export$IllustratedMessage as IllustratedMessage};
18
18
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,11 +1,11 @@
1
- var $90e6e9abe7fc12ca$exports = require("./IllustratedMessage.main.js");
1
+ var $1fMzO$adobereactspectrumIllustratedMessage = require("@adobe/react-spectrum/IllustratedMessage");
2
2
 
3
3
 
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
7
 
8
- $parcel$export(module.exports, "IllustratedMessage", () => $90e6e9abe7fc12ca$exports.IllustratedMessage);
8
+ $parcel$export(module.exports, "IllustratedMessage", function () { return $1fMzO$adobereactspectrumIllustratedMessage.IllustratedMessage; });
9
9
  /*
10
10
  * Copyright 2020 Adobe. All rights reserved.
11
11
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/illustratedmessage/src/index.ts"],"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"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/illustratedmessage/src/index.ts"],"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 '@adobe/react-spectrum/IllustratedMessage';\n\nexport type {SpectrumIllustratedMessageProps} from '@adobe/react-spectrum/IllustratedMessage';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,4 +1,4 @@
1
- import {IllustratedMessage as $ccaf5c86c16f58c0$export$406dbc84c317ece0} from "./IllustratedMessage.module.js";
1
+ import {IllustratedMessage as $610d9c55dbfedcfe$re_export$IllustratedMessage} from "@adobe/react-spectrum/IllustratedMessage";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {IllustratedMessage as $ccaf5c86c16f58c0$export$406dbc84c317ece0} from ".
14
14
 
15
15
 
16
16
 
17
- export {$ccaf5c86c16f58c0$export$406dbc84c317ece0 as IllustratedMessage};
17
+ export {$610d9c55dbfedcfe$re_export$IllustratedMessage as IllustratedMessage};
18
18
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/illustratedmessage/src/index.ts"],"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"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/illustratedmessage/src/index.ts"],"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 '@adobe/react-spectrum/IllustratedMessage';\n\nexport type {SpectrumIllustratedMessageProps} from '@adobe/react-spectrum/IllustratedMessage';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,2 @@
1
+ export { IllustratedMessage } from '@adobe/react-spectrum/IllustratedMessage';
2
+ export type { SpectrumIllustratedMessageProps } from '@adobe/react-spectrum/IllustratedMessage';
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@react-spectrum/illustratedmessage",
3
- "version": "3.5.17",
3
+ "version": "3.6.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
8
  "exports": {
9
- "source": "./src/index.ts",
10
- "types": [
11
- "./dist/types.d.ts",
12
- "./src/index.ts"
13
- ],
14
- "import": "./dist/import.mjs",
15
- "require": "./dist/main.js"
9
+ ".": {
10
+ "source": "./src/index.ts",
11
+ "types": "./dist/types/src/index.d.ts",
12
+ "import": "./dist/import.mjs",
13
+ "require": "./dist/main.js"
14
+ },
15
+ "./package.json": "./package.json"
16
16
  },
17
- "types": "dist/types.d.ts",
17
+ "types": "dist/types/src/index.d.ts",
18
18
  "source": "src/index.ts",
19
19
  "files": [
20
20
  "dist",
@@ -24,39 +24,22 @@
24
24
  "*.css"
25
25
  ],
26
26
  "targets": {
27
- "main": {
28
- "includeNodeModules": [
29
- "@adobe/spectrum-css-temp"
30
- ]
31
- },
32
- "module": {
33
- "includeNodeModules": [
34
- "@adobe/spectrum-css-temp"
35
- ]
36
- }
27
+ "types": false
37
28
  },
38
29
  "repository": {
39
30
  "type": "git",
40
31
  "url": "https://github.com/adobe/react-spectrum"
41
32
  },
42
33
  "dependencies": {
43
- "@react-aria/utils": "^3.33.1",
44
- "@react-spectrum/layout": "^3.6.22",
45
- "@react-spectrum/utils": "^3.12.12",
46
- "@react-types/illustratedmessage": "^3.3.23",
47
- "@react-types/shared": "^3.33.1",
34
+ "@adobe/react-spectrum": "3.47.0",
48
35
  "@swc/helpers": "^0.5.0"
49
36
  },
50
- "devDependencies": {
51
- "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
52
- },
53
37
  "peerDependencies": {
54
- "@react-spectrum/provider": "^3.0.0",
55
38
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
56
39
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
57
40
  },
58
41
  "publishConfig": {
59
42
  "access": "public"
60
43
  },
61
- "gitHead": "8df187370053aa35f553cb388ad670f65e1ab371"
44
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
62
45
  }
package/src/index.ts CHANGED
@@ -12,5 +12,6 @@
12
12
 
13
13
  /// <reference types="css-module-types" />
14
14
 
15
- export {IllustratedMessage} from './IllustratedMessage';
16
- export type {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';
15
+ export {IllustratedMessage} from '@adobe/react-spectrum/IllustratedMessage';
16
+
17
+ export type {SpectrumIllustratedMessageProps} from '@adobe/react-spectrum/IllustratedMessage';
@@ -1,59 +0,0 @@
1
- require("./illustratedmessage.07b2ecdc.css");
2
- var $e7750c05f28ceb4f$exports = require("./illustratedmessage_vars_css.main.js");
3
- var $3YIyO$reactspectrumutils = require("@react-spectrum/utils");
4
- var $3YIyO$reactariautils = require("@react-aria/utils");
5
- var $3YIyO$reactspectrumlayout = require("@react-spectrum/layout");
6
- var $3YIyO$react = require("react");
7
-
8
-
9
- function $parcel$interopDefault(a) {
10
- return a && a.__esModule ? a.default : a;
11
- }
12
-
13
- function $parcel$export(e, n, v, s) {
14
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
15
- }
16
-
17
- $parcel$export(module.exports, "IllustratedMessage", () => $90e6e9abe7fc12ca$export$406dbc84c317ece0);
18
- /*
19
- * Copyright 2020 Adobe. All rights reserved.
20
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
21
- * you may not use this file except in compliance with the License. You may obtain a copy
22
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
23
- *
24
- * Unless required by applicable law or agreed to in writing, software distributed under
25
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
26
- * OF ANY KIND, either express or implied. See the License for the specific language
27
- * governing permissions and limitations under the License.
28
- */
29
-
30
-
31
-
32
-
33
- const $90e6e9abe7fc12ca$export$406dbc84c317ece0 = /*#__PURE__*/ (0, $3YIyO$react.forwardRef)(function IllustratedMessage(props, ref) {
34
- props = (0, $3YIyO$reactspectrumutils.useSlotProps)(props, 'illustration');
35
- let { children: children, ...otherProps } = props;
36
- let { styleProps: styleProps } = (0, $3YIyO$reactspectrumutils.useStyleProps)(otherProps);
37
- let headingClassName = (0, $3YIyO$reactspectrumutils.classNames)((0, ($parcel$interopDefault($e7750c05f28ceb4f$exports))), 'spectrum-IllustratedMessage-heading');
38
- let contentClassName = (0, $3YIyO$reactspectrumutils.classNames)((0, ($parcel$interopDefault($e7750c05f28ceb4f$exports))), 'spectrum-IllustratedMessage-description');
39
- let slots = {
40
- heading: {
41
- UNSAFE_className: headingClassName
42
- },
43
- content: {
44
- UNSAFE_className: contentClassName
45
- }
46
- };
47
- return /*#__PURE__*/ (0, ($parcel$interopDefault($3YIyO$react))).createElement((0, $3YIyO$reactspectrumlayout.Flex), {
48
- ...(0, $3YIyO$reactariautils.filterDOMProps)(otherProps),
49
- UNSAFE_style: styleProps.style,
50
- isHidden: styleProps.hidden,
51
- UNSAFE_className: (0, $3YIyO$reactspectrumutils.classNames)((0, ($parcel$interopDefault($e7750c05f28ceb4f$exports))), 'spectrum-IllustratedMessage', styleProps.className),
52
- ref: ref
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
- slots: slots
55
- }, children)));
56
- });
57
-
58
-
59
- //# sourceMappingURL=IllustratedMessage.main.js.map
@@ -1 +0,0 @@
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,54 +0,0 @@
1
- import "./illustratedmessage.07b2ecdc.css";
2
- import $i4ryj$illustratedmessage_vars_cssmodulejs from "./illustratedmessage_vars_css.mjs";
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
- import {filterDOMProps as $i4ryj$filterDOMProps} from "@react-aria/utils";
5
- import {Flex as $i4ryj$Flex} from "@react-spectrum/layout";
6
- import $i4ryj$react, {forwardRef as $i4ryj$forwardRef} from "react";
7
-
8
-
9
- function $parcel$interopDefault(a) {
10
- return a && a.__esModule ? a.default : a;
11
- }
12
- /*
13
- * Copyright 2020 Adobe. All rights reserved.
14
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
15
- * you may not use this file except in compliance with the License. You may obtain a copy
16
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software distributed under
19
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
20
- * OF ANY KIND, either express or implied. See the License for the specific language
21
- * governing permissions and limitations under the License.
22
- */
23
-
24
-
25
-
26
-
27
- const $ccaf5c86c16f58c0$export$406dbc84c317ece0 = /*#__PURE__*/ (0, $i4ryj$forwardRef)(function IllustratedMessage(props, ref) {
28
- props = (0, $i4ryj$useSlotProps)(props, 'illustration');
29
- let { children: children, ...otherProps } = props;
30
- let { styleProps: styleProps } = (0, $i4ryj$useStyleProps)(otherProps);
31
- let headingClassName = (0, $i4ryj$classNames)((0, ($parcel$interopDefault($i4ryj$illustratedmessage_vars_cssmodulejs))), 'spectrum-IllustratedMessage-heading');
32
- let contentClassName = (0, $i4ryj$classNames)((0, ($parcel$interopDefault($i4ryj$illustratedmessage_vars_cssmodulejs))), 'spectrum-IllustratedMessage-description');
33
- let slots = {
34
- heading: {
35
- UNSAFE_className: headingClassName
36
- },
37
- content: {
38
- UNSAFE_className: contentClassName
39
- }
40
- };
41
- return /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$Flex), {
42
- ...(0, $i4ryj$filterDOMProps)(otherProps),
43
- UNSAFE_style: styleProps.style,
44
- isHidden: styleProps.hidden,
45
- UNSAFE_className: (0, $i4ryj$classNames)((0, ($parcel$interopDefault($i4ryj$illustratedmessage_vars_cssmodulejs))), 'spectrum-IllustratedMessage', styleProps.className),
46
- ref: ref
47
- }, /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$ClearSlots), null, /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$SlotProvider), {
48
- slots: slots
49
- }, children)));
50
- });
51
-
52
-
53
- export {$ccaf5c86c16f58c0$export$406dbc84c317ece0 as IllustratedMessage};
54
- //# sourceMappingURL=IllustratedMessage.module.js.map
@@ -1,54 +0,0 @@
1
- import "./illustratedmessage.07b2ecdc.css";
2
- import $i4ryj$illustratedmessage_vars_cssmodulejs from "./illustratedmessage_vars_css.module.js";
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
- import {filterDOMProps as $i4ryj$filterDOMProps} from "@react-aria/utils";
5
- import {Flex as $i4ryj$Flex} from "@react-spectrum/layout";
6
- import $i4ryj$react, {forwardRef as $i4ryj$forwardRef} from "react";
7
-
8
-
9
- function $parcel$interopDefault(a) {
10
- return a && a.__esModule ? a.default : a;
11
- }
12
- /*
13
- * Copyright 2020 Adobe. All rights reserved.
14
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
15
- * you may not use this file except in compliance with the License. You may obtain a copy
16
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
17
- *
18
- * Unless required by applicable law or agreed to in writing, software distributed under
19
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
20
- * OF ANY KIND, either express or implied. See the License for the specific language
21
- * governing permissions and limitations under the License.
22
- */
23
-
24
-
25
-
26
-
27
- const $ccaf5c86c16f58c0$export$406dbc84c317ece0 = /*#__PURE__*/ (0, $i4ryj$forwardRef)(function IllustratedMessage(props, ref) {
28
- props = (0, $i4ryj$useSlotProps)(props, 'illustration');
29
- let { children: children, ...otherProps } = props;
30
- let { styleProps: styleProps } = (0, $i4ryj$useStyleProps)(otherProps);
31
- let headingClassName = (0, $i4ryj$classNames)((0, ($parcel$interopDefault($i4ryj$illustratedmessage_vars_cssmodulejs))), 'spectrum-IllustratedMessage-heading');
32
- let contentClassName = (0, $i4ryj$classNames)((0, ($parcel$interopDefault($i4ryj$illustratedmessage_vars_cssmodulejs))), 'spectrum-IllustratedMessage-description');
33
- let slots = {
34
- heading: {
35
- UNSAFE_className: headingClassName
36
- },
37
- content: {
38
- UNSAFE_className: contentClassName
39
- }
40
- };
41
- return /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$Flex), {
42
- ...(0, $i4ryj$filterDOMProps)(otherProps),
43
- UNSAFE_style: styleProps.style,
44
- isHidden: styleProps.hidden,
45
- UNSAFE_className: (0, $i4ryj$classNames)((0, ($parcel$interopDefault($i4ryj$illustratedmessage_vars_cssmodulejs))), 'spectrum-IllustratedMessage', styleProps.className),
46
- ref: ref
47
- }, /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$ClearSlots), null, /*#__PURE__*/ (0, $i4ryj$react).createElement((0, $i4ryj$SlotProvider), {
48
- slots: slots
49
- }, children)));
50
- });
51
-
52
-
53
- export {$ccaf5c86c16f58c0$export$406dbc84c317ece0 as IllustratedMessage};
54
- //# sourceMappingURL=IllustratedMessage.module.js.map
@@ -1 +0,0 @@
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"}
@@ -1,67 +0,0 @@
1
- .TtYriW_spectrum-IllustratedMessage {
2
- text-align: center;
3
- flex-direction: column;
4
- justify-content: center;
5
- align-items: center;
6
- height: 100%;
7
- display: flex;
8
- }
9
-
10
- .TtYriW_spectrum-IllustratedMessage > * {
11
- order: 4;
12
- }
13
-
14
- .TtYriW_spectrum-IllustratedMessage > svg {
15
- order: 1;
16
- margin-bottom: 24px;
17
- }
18
-
19
- .TtYriW_spectrum-IllustratedMessage .TtYriW_spectrum-IllustratedMessage-heading {
20
- max-width: 500px;
21
- font-size: var(--spectrum-heading-3-text-size, var(--spectrum-alias-heading3-text-size));
22
- font-weight: var(--spectrum-heading-3-text-font-weight, var(--spectrum-alias-heading-text-font-weight-regular));
23
- line-height: var(--spectrum-heading-3-text-line-height, var(--spectrum-alias-heading-text-line-height));
24
- font-style: var(--spectrum-heading-3-text-font-style, var(--spectrum-global-font-style-regular));
25
- letter-spacing: var(--spectrum-heading-3-text-letter-spacing, var(--spectrum-global-font-letter-spacing-none));
26
- text-transform: var(--spectrum-heading-3-text-transform, none);
27
- order: 2;
28
- margin: 0;
29
- }
30
-
31
- .TtYriW_spectrum-IllustratedMessage .TtYriW_spectrum-IllustratedMessage-description {
32
- max-width: 500px;
33
- font-style: var(--spectrum-body-4-text-font-style, var(--spectrum-global-font-style-regular));
34
- font-size: var(--spectrum-body-4-text-size, var(--spectrum-alias-font-size-default));
35
- font-weight: var(--spectrum-body-4-text-font-weight, var(--spectrum-alias-body-text-font-weight));
36
- line-height: var(--spectrum-body-4-text-line-height, var(--spectrum-alias-body-text-line-height));
37
- letter-spacing: var(--spectrum-body-4-text-letter-spacing, var(--spectrum-global-font-letter-spacing-none));
38
- text-transform: var(--spectrum-body-4-text-transform, none);
39
- order: 3;
40
- margin: 4px 0 0;
41
- }
42
-
43
- .TtYriW_spectrum-IllustratedMessage--cta .TtYriW_spectrum-IllustratedMessage-description {
44
- font-style: normal;
45
- }
46
-
47
- .TtYriW_spectrum-IllustratedMessage > svg {
48
- --spectrum-IllustratedMessage-illustration-color: var(--spectrum-global-color-gray-500);
49
- color: var(--spectrum-IllustratedMessage-illustration-color);
50
- fill: currentColor;
51
- stroke: currentColor;
52
- }
53
-
54
- .TtYriW_spectrum-IllustratedMessage-heading {
55
- color: var(--spectrum-heading-3-text-color, var(--spectrum-alias-heading-text-color));
56
- }
57
-
58
- .TtYriW_spectrum-IllustratedMessage-description {
59
- color: var(--spectrum-body-text-color, var(--spectrum-alias-text-color));
60
- }
61
-
62
- @media (forced-colors: active) {
63
- .TtYriW_spectrum-IllustratedMessage > svg {
64
- --spectrum-IllustratedMessage-illustration-color: CanvasText;
65
- }
66
- }
67
- /*# sourceMappingURL=illustratedmessage.07b2ecdc.css.map */
@@ -1 +0,0 @@
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":"illustratedmessage.07b2ecdc.css.map"}
@@ -1,20 +0,0 @@
1
-
2
- function $parcel$export(e, n, v, s) {
3
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
- }
5
-
6
- $parcel$export(module.exports, "spectrum-IllustratedMessage", () => $e7750c05f28ceb4f$export$e22c6753c239ec31, (v) => $e7750c05f28ceb4f$export$e22c6753c239ec31 = v);
7
- $parcel$export(module.exports, "spectrum-IllustratedMessage--cta", () => $e7750c05f28ceb4f$export$29744d89c9a76d50, (v) => $e7750c05f28ceb4f$export$29744d89c9a76d50 = v);
8
- $parcel$export(module.exports, "spectrum-IllustratedMessage-description", () => $e7750c05f28ceb4f$export$cf9d959111789fe7, (v) => $e7750c05f28ceb4f$export$cf9d959111789fe7 = v);
9
- $parcel$export(module.exports, "spectrum-IllustratedMessage-heading", () => $e7750c05f28ceb4f$export$5df23faa5ed344c4, (v) => $e7750c05f28ceb4f$export$5df23faa5ed344c4 = v);
10
- var $e7750c05f28ceb4f$export$e22c6753c239ec31;
11
- var $e7750c05f28ceb4f$export$29744d89c9a76d50;
12
- var $e7750c05f28ceb4f$export$cf9d959111789fe7;
13
- var $e7750c05f28ceb4f$export$5df23faa5ed344c4;
14
- $e7750c05f28ceb4f$export$e22c6753c239ec31 = `TtYriW_spectrum-IllustratedMessage`;
15
- $e7750c05f28ceb4f$export$29744d89c9a76d50 = `TtYriW_spectrum-IllustratedMessage--cta`;
16
- $e7750c05f28ceb4f$export$cf9d959111789fe7 = `TtYriW_spectrum-IllustratedMessage-description`;
17
- $e7750c05f28ceb4f$export$5df23faa5ed344c4 = `TtYriW_spectrum-IllustratedMessage-heading`;
18
-
19
-
20
- //# sourceMappingURL=illustratedmessage_vars_css.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAHA,4CAAgD,CAAC,kCAAkC,CAAC;AACpF,4CAAqD,CAAC,uCAAuC,CAAC;AAC9F,4CAA4D,CAAC,8CAA8C,CAAC;AAC5G,4CAAwD,CAAC,0CAA0C,CAAC","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":"illustratedmessage_vars_css.main.js.map"}
@@ -1,22 +0,0 @@
1
-
2
- function $parcel$export(e, n, v, s) {
3
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
- }
5
- var $4c3e55dfb549f378$exports = {};
6
-
7
- $parcel$export($4c3e55dfb549f378$exports, "spectrum-IllustratedMessage", () => $4c3e55dfb549f378$export$e22c6753c239ec31, (v) => $4c3e55dfb549f378$export$e22c6753c239ec31 = v);
8
- $parcel$export($4c3e55dfb549f378$exports, "spectrum-IllustratedMessage--cta", () => $4c3e55dfb549f378$export$29744d89c9a76d50, (v) => $4c3e55dfb549f378$export$29744d89c9a76d50 = v);
9
- $parcel$export($4c3e55dfb549f378$exports, "spectrum-IllustratedMessage-description", () => $4c3e55dfb549f378$export$cf9d959111789fe7, (v) => $4c3e55dfb549f378$export$cf9d959111789fe7 = v);
10
- $parcel$export($4c3e55dfb549f378$exports, "spectrum-IllustratedMessage-heading", () => $4c3e55dfb549f378$export$5df23faa5ed344c4, (v) => $4c3e55dfb549f378$export$5df23faa5ed344c4 = v);
11
- var $4c3e55dfb549f378$export$e22c6753c239ec31;
12
- var $4c3e55dfb549f378$export$29744d89c9a76d50;
13
- var $4c3e55dfb549f378$export$cf9d959111789fe7;
14
- var $4c3e55dfb549f378$export$5df23faa5ed344c4;
15
- $4c3e55dfb549f378$export$e22c6753c239ec31 = `TtYriW_spectrum-IllustratedMessage`;
16
- $4c3e55dfb549f378$export$29744d89c9a76d50 = `TtYriW_spectrum-IllustratedMessage--cta`;
17
- $4c3e55dfb549f378$export$cf9d959111789fe7 = `TtYriW_spectrum-IllustratedMessage-description`;
18
- $4c3e55dfb549f378$export$5df23faa5ed344c4 = `TtYriW_spectrum-IllustratedMessage-heading`;
19
-
20
-
21
- export {$4c3e55dfb549f378$exports as default};
22
- //# sourceMappingURL=illustratedmessage_vars_css.module.js.map
@@ -1,22 +0,0 @@
1
-
2
- function $parcel$export(e, n, v, s) {
3
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
- }
5
- var $4c3e55dfb549f378$exports = {};
6
-
7
- $parcel$export($4c3e55dfb549f378$exports, "spectrum-IllustratedMessage", () => $4c3e55dfb549f378$export$e22c6753c239ec31, (v) => $4c3e55dfb549f378$export$e22c6753c239ec31 = v);
8
- $parcel$export($4c3e55dfb549f378$exports, "spectrum-IllustratedMessage--cta", () => $4c3e55dfb549f378$export$29744d89c9a76d50, (v) => $4c3e55dfb549f378$export$29744d89c9a76d50 = v);
9
- $parcel$export($4c3e55dfb549f378$exports, "spectrum-IllustratedMessage-description", () => $4c3e55dfb549f378$export$cf9d959111789fe7, (v) => $4c3e55dfb549f378$export$cf9d959111789fe7 = v);
10
- $parcel$export($4c3e55dfb549f378$exports, "spectrum-IllustratedMessage-heading", () => $4c3e55dfb549f378$export$5df23faa5ed344c4, (v) => $4c3e55dfb549f378$export$5df23faa5ed344c4 = v);
11
- var $4c3e55dfb549f378$export$e22c6753c239ec31;
12
- var $4c3e55dfb549f378$export$29744d89c9a76d50;
13
- var $4c3e55dfb549f378$export$cf9d959111789fe7;
14
- var $4c3e55dfb549f378$export$5df23faa5ed344c4;
15
- $4c3e55dfb549f378$export$e22c6753c239ec31 = `TtYriW_spectrum-IllustratedMessage`;
16
- $4c3e55dfb549f378$export$29744d89c9a76d50 = `TtYriW_spectrum-IllustratedMessage--cta`;
17
- $4c3e55dfb549f378$export$cf9d959111789fe7 = `TtYriW_spectrum-IllustratedMessage-description`;
18
- $4c3e55dfb549f378$export$5df23faa5ed344c4 = `TtYriW_spectrum-IllustratedMessage-heading`;
19
-
20
-
21
- export {$4c3e55dfb549f378$exports as default};
22
- //# sourceMappingURL=illustratedmessage_vars_css.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AAHA,4CAAgD,CAAC,kCAAkC,CAAC;AACpF,4CAAqD,CAAC,uCAAuC,CAAC;AAC9F,4CAA4D,CAAC,8CAA8C,CAAC;AAC5G,4CAAwD,CAAC,0CAA0C,CAAC","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":"illustratedmessage_vars_css.module.js.map"}
package/dist/types.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { SpectrumIllustratedMessageProps } from "@react-types/illustratedmessage";
3
- import { DOMRefValue } from "@react-types/shared";
4
- /**
5
- * An IllustratedMessage displays an illustration and a message, usually
6
- * for an empty state or an error page.
7
- */
8
- export const IllustratedMessage: React.ForwardRefExoticComponent<SpectrumIllustratedMessageProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
9
- export type { SpectrumIllustratedMessageProps } from '@react-types/illustratedmessage';
10
-
11
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,59 +0,0 @@
1
- /*
2
- * Copyright 2020 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import {classNames, ClearSlots, SlotProvider, useSlotProps, useStyleProps} from '@react-spectrum/utils';
14
- import {DOMRef} from '@react-types/shared';
15
- import {filterDOMProps} from '@react-aria/utils';
16
- import {Flex} from '@react-spectrum/layout';
17
- import React, {forwardRef} from 'react';
18
- import {SpectrumIllustratedMessageProps} from '@react-types/illustratedmessage';
19
- import styles from '@adobe/spectrum-css-temp/components/illustratedmessage/vars.css';
20
-
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>) {
26
- props = useSlotProps(props, 'illustration');
27
- let {
28
- children,
29
- ...otherProps
30
- } = props;
31
-
32
- let {styleProps} = useStyleProps(otherProps);
33
- let headingClassName = classNames(styles, 'spectrum-IllustratedMessage-heading');
34
- let contentClassName = classNames(styles, 'spectrum-IllustratedMessage-description');
35
-
36
- let slots = {
37
- heading: {UNSAFE_className: headingClassName},
38
- content: {UNSAFE_className: contentClassName}
39
- };
40
-
41
- return (
42
- <Flex
43
- {...filterDOMProps(otherProps)}
44
- UNSAFE_style={styleProps.style}
45
- isHidden={styleProps.hidden}
46
- UNSAFE_className={classNames(
47
- styles,
48
- 'spectrum-IllustratedMessage',
49
- styleProps.className
50
- )}
51
- ref={ref}>
52
- <ClearSlots>
53
- <SlotProvider slots={slots}>
54
- {children}
55
- </SlotProvider>
56
- </ClearSlots>
57
- </Flex>
58
- );
59
- });