@react-spectrum/statuslight 3.0.0-nightly-641446f65-240905

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @react-spectrum/statuslight
2
+
3
+ This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.
@@ -0,0 +1,57 @@
1
+ require("./vars.571171ed.css");
2
+ var $7e20c9d2bb376434$exports = require("./statuslight_vars_css.main.js");
3
+ var $8aavy$reactspectrumutils = require("@react-spectrum/utils");
4
+ var $8aavy$reactariautils = require("@react-aria/utils");
5
+ var $8aavy$react = require("react");
6
+ var $8aavy$reactspectrumprovider = require("@react-spectrum/provider");
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, "StatusLight", () => $ba01d1490c4da3ea$export$5f84c37a31c6e41c);
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
+ function $ba01d1490c4da3ea$var$StatusLight(props, ref) {
34
+ let { variant: variant, children: children, isDisabled: isDisabled, role: role, ...otherProps } = (0, $8aavy$reactspectrumprovider.useProviderProps)(props);
35
+ let domRef = (0, $8aavy$reactspectrumutils.useDOMRef)(ref);
36
+ let { styleProps: styleProps } = (0, $8aavy$reactspectrumutils.useStyleProps)(otherProps);
37
+ if (!children && !props['aria-label']) console.warn('If no children are provided, an aria-label must be specified');
38
+ if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled StatusLight must have a role.');
39
+ return /*#__PURE__*/ (0, ($parcel$interopDefault($8aavy$react))).createElement("div", {
40
+ ...(0, $8aavy$reactariautils.filterDOMProps)(otherProps, {
41
+ labelable: !!role
42
+ }),
43
+ ...styleProps,
44
+ role: role,
45
+ className: (0, $8aavy$reactspectrumutils.classNames)((0, ($parcel$interopDefault($7e20c9d2bb376434$exports))), 'spectrum-StatusLight', `spectrum-StatusLight--${variant}`, {
46
+ 'is-disabled': isDisabled
47
+ }, styleProps.className),
48
+ ref: domRef
49
+ }, children);
50
+ }
51
+ /**
52
+ * Status lights are used to color code categories and labels commonly found in data visualization.
53
+ * When status lights have a semantic meaning, they should use semantic variant colors.
54
+ */ let $ba01d1490c4da3ea$export$5f84c37a31c6e41c = /*#__PURE__*/ (0, $8aavy$react.forwardRef)($ba01d1490c4da3ea$var$StatusLight);
55
+
56
+
57
+ //# sourceMappingURL=StatusLight.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAUD,SAAS,kCAAY,KAA+B,EAAE,GAA2B;IAC/E,IAAI,WACF,OAAO,YACP,QAAQ,cACR,UAAU,QACV,IAAI,EACJ,GAAG,YACJ,GAAG,CAAA,GAAA,6CAAe,EAAE;IACrB,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IAEjC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,aAAa,EACnC,QAAQ,IAAI,CAAC;IAGf,IAAI,CAAC,QAAS,CAAA,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,kBAAkB,AAAD,GAC1D,QAAQ,IAAI,CAAC;IAGf,qBACE,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAa,EAAE,YAAY;YAAC,WAAW,CAAC,CAAC;QAAI,EAAE;QAClD,GAAG,UAAU;QACd,MAAM;QACN,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,wBACA,CAAC,sBAAsB,EAAE,QAAQ,CAAC,EAClC;YACE,eAAe;QACjB,GACA,WAAW,SAAS;QAEtB,KAAK;OACJ;AAGP;AAEA;;;CAGC,GACD,IAAI,0DAAe,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/statuslight/src/StatusLight.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, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumStatusLightProps} from '@react-types/statuslight';\nimport styles from '@adobe/spectrum-css-temp/components/statuslight/vars.css';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction StatusLight(props: SpectrumStatusLightProps, ref: DOMRef<HTMLDivElement>) {\n let {\n variant,\n children,\n isDisabled,\n role,\n ...otherProps\n } = useProviderProps(props);\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n if (!children && !props['aria-label']) {\n console.warn('If no children are provided, an aria-label must be specified');\n }\n\n if (!role && (props['aria-label'] || props['aria-labelledby'])) {\n console.warn('A labelled StatusLight must have a role.');\n }\n\n return (\n <div\n {...filterDOMProps(otherProps, {labelable: !!role})}\n {...styleProps}\n role={role}\n className={classNames(\n styles,\n 'spectrum-StatusLight',\n `spectrum-StatusLight--${variant}`,\n {\n 'is-disabled': isDisabled\n },\n styleProps.className\n )}\n ref={domRef}>\n {children}\n </div>\n );\n}\n\n/**\n * Status lights are used to color code categories and labels commonly found in data visualization.\n * When status lights have a semantic meaning, they should use semantic variant colors.\n */\nlet _StatusLight = forwardRef(StatusLight);\nexport {_StatusLight as StatusLight};\n"],"names":[],"version":3,"file":"StatusLight.main.js.map"}
@@ -0,0 +1,52 @@
1
+ import "./vars.571171ed.css";
2
+ import $k8ZOF$statuslight_vars_cssmodulejs from "./statuslight_vars_css.mjs";
3
+ import {useDOMRef as $k8ZOF$useDOMRef, useStyleProps as $k8ZOF$useStyleProps, classNames as $k8ZOF$classNames} from "@react-spectrum/utils";
4
+ import {filterDOMProps as $k8ZOF$filterDOMProps} from "@react-aria/utils";
5
+ import $k8ZOF$react, {forwardRef as $k8ZOF$forwardRef} from "react";
6
+ import {useProviderProps as $k8ZOF$useProviderProps} from "@react-spectrum/provider";
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
+ function $df8f173c8bd4ebc0$var$StatusLight(props, ref) {
28
+ let { variant: variant, children: children, isDisabled: isDisabled, role: role, ...otherProps } = (0, $k8ZOF$useProviderProps)(props);
29
+ let domRef = (0, $k8ZOF$useDOMRef)(ref);
30
+ let { styleProps: styleProps } = (0, $k8ZOF$useStyleProps)(otherProps);
31
+ if (!children && !props['aria-label']) console.warn('If no children are provided, an aria-label must be specified');
32
+ if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled StatusLight must have a role.');
33
+ return /*#__PURE__*/ (0, $k8ZOF$react).createElement("div", {
34
+ ...(0, $k8ZOF$filterDOMProps)(otherProps, {
35
+ labelable: !!role
36
+ }),
37
+ ...styleProps,
38
+ role: role,
39
+ className: (0, $k8ZOF$classNames)((0, ($parcel$interopDefault($k8ZOF$statuslight_vars_cssmodulejs))), 'spectrum-StatusLight', `spectrum-StatusLight--${variant}`, {
40
+ 'is-disabled': isDisabled
41
+ }, styleProps.className),
42
+ ref: domRef
43
+ }, children);
44
+ }
45
+ /**
46
+ * Status lights are used to color code categories and labels commonly found in data visualization.
47
+ * When status lights have a semantic meaning, they should use semantic variant colors.
48
+ */ let $df8f173c8bd4ebc0$export$5f84c37a31c6e41c = /*#__PURE__*/ (0, $k8ZOF$forwardRef)($df8f173c8bd4ebc0$var$StatusLight);
49
+
50
+
51
+ export {$df8f173c8bd4ebc0$export$5f84c37a31c6e41c as StatusLight};
52
+ //# sourceMappingURL=StatusLight.module.js.map
@@ -0,0 +1,52 @@
1
+ import "./vars.571171ed.css";
2
+ import $k8ZOF$statuslight_vars_cssmodulejs from "./statuslight_vars_css.module.js";
3
+ import {useDOMRef as $k8ZOF$useDOMRef, useStyleProps as $k8ZOF$useStyleProps, classNames as $k8ZOF$classNames} from "@react-spectrum/utils";
4
+ import {filterDOMProps as $k8ZOF$filterDOMProps} from "@react-aria/utils";
5
+ import $k8ZOF$react, {forwardRef as $k8ZOF$forwardRef} from "react";
6
+ import {useProviderProps as $k8ZOF$useProviderProps} from "@react-spectrum/provider";
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
+ function $df8f173c8bd4ebc0$var$StatusLight(props, ref) {
28
+ let { variant: variant, children: children, isDisabled: isDisabled, role: role, ...otherProps } = (0, $k8ZOF$useProviderProps)(props);
29
+ let domRef = (0, $k8ZOF$useDOMRef)(ref);
30
+ let { styleProps: styleProps } = (0, $k8ZOF$useStyleProps)(otherProps);
31
+ if (!children && !props['aria-label']) console.warn('If no children are provided, an aria-label must be specified');
32
+ if (!role && (props['aria-label'] || props['aria-labelledby'])) console.warn('A labelled StatusLight must have a role.');
33
+ return /*#__PURE__*/ (0, $k8ZOF$react).createElement("div", {
34
+ ...(0, $k8ZOF$filterDOMProps)(otherProps, {
35
+ labelable: !!role
36
+ }),
37
+ ...styleProps,
38
+ role: role,
39
+ className: (0, $k8ZOF$classNames)((0, ($parcel$interopDefault($k8ZOF$statuslight_vars_cssmodulejs))), 'spectrum-StatusLight', `spectrum-StatusLight--${variant}`, {
40
+ 'is-disabled': isDisabled
41
+ }, styleProps.className),
42
+ ref: domRef
43
+ }, children);
44
+ }
45
+ /**
46
+ * Status lights are used to color code categories and labels commonly found in data visualization.
47
+ * When status lights have a semantic meaning, they should use semantic variant colors.
48
+ */ let $df8f173c8bd4ebc0$export$5f84c37a31c6e41c = /*#__PURE__*/ (0, $k8ZOF$forwardRef)($df8f173c8bd4ebc0$var$StatusLight);
49
+
50
+
51
+ export {$df8f173c8bd4ebc0$export$5f84c37a31c6e41c as StatusLight};
52
+ //# sourceMappingURL=StatusLight.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAUD,SAAS,kCAAY,KAA+B,EAAE,GAA2B;IAC/E,IAAI,WACF,OAAO,YACP,QAAQ,cACR,UAAU,QACV,IAAI,EACJ,GAAG,YACJ,GAAG,CAAA,GAAA,uBAAe,EAAE;IACrB,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IAEjC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,aAAa,EACnC,QAAQ,IAAI,CAAC;IAGf,IAAI,CAAC,QAAS,CAAA,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,kBAAkB,AAAD,GAC1D,QAAQ,IAAI,CAAC;IAGf,qBACE,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAa,EAAE,YAAY;YAAC,WAAW,CAAC,CAAC;QAAI,EAAE;QAClD,GAAG,UAAU;QACd,MAAM;QACN,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,6DAAK,GACL,wBACA,CAAC,sBAAsB,EAAE,QAAQ,CAAC,EAClC;YACE,eAAe;QACjB,GACA,WAAW,SAAS;QAEtB,KAAK;OACJ;AAGP;AAEA;;;CAGC,GACD,IAAI,0DAAe,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/statuslight/src/StatusLight.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, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumStatusLightProps} from '@react-types/statuslight';\nimport styles from '@adobe/spectrum-css-temp/components/statuslight/vars.css';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction StatusLight(props: SpectrumStatusLightProps, ref: DOMRef<HTMLDivElement>) {\n let {\n variant,\n children,\n isDisabled,\n role,\n ...otherProps\n } = useProviderProps(props);\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n if (!children && !props['aria-label']) {\n console.warn('If no children are provided, an aria-label must be specified');\n }\n\n if (!role && (props['aria-label'] || props['aria-labelledby'])) {\n console.warn('A labelled StatusLight must have a role.');\n }\n\n return (\n <div\n {...filterDOMProps(otherProps, {labelable: !!role})}\n {...styleProps}\n role={role}\n className={classNames(\n styles,\n 'spectrum-StatusLight',\n `spectrum-StatusLight--${variant}`,\n {\n 'is-disabled': isDisabled\n },\n styleProps.className\n )}\n ref={domRef}>\n {children}\n </div>\n );\n}\n\n/**\n * Status lights are used to color code categories and labels commonly found in data visualization.\n * When status lights have a semantic meaning, they should use semantic variant colors.\n */\nlet _StatusLight = forwardRef(StatusLight);\nexport {_StatusLight as StatusLight};\n"],"names":[],"version":3,"file":"StatusLight.module.js.map"}
@@ -0,0 +1,18 @@
1
+ import {StatusLight as $df8f173c8bd4ebc0$export$5f84c37a31c6e41c} from "./StatusLight.mjs";
2
+
3
+ /*
4
+ * Copyright 2020 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */ /// <reference types="css-module-types" />
14
+
15
+
16
+
17
+ export {$df8f173c8bd4ebc0$export$5f84c37a31c6e41c as StatusLight};
18
+ //# sourceMappingURL=module.js.map
package/dist/main.js ADDED
@@ -0,0 +1,23 @@
1
+ var $ba01d1490c4da3ea$exports = require("./StatusLight.main.js");
2
+
3
+
4
+ function $parcel$export(e, n, v, s) {
5
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
+ }
7
+
8
+ $parcel$export(module.exports, "StatusLight", () => $ba01d1490c4da3ea$exports.StatusLight);
9
+ /*
10
+ * Copyright 2020 Adobe. All rights reserved.
11
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License. You may obtain a copy
13
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software distributed under
16
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
17
+ * OF ANY KIND, either express or implied. See the License for the specific language
18
+ * governing permissions and limitations under the License.
19
+ */ /// <reference types="css-module-types" />
20
+
21
+
22
+
23
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/statuslight/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 {StatusLight} from './StatusLight';\nexport type {SpectrumStatusLightProps} from '@react-types/statuslight';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js ADDED
@@ -0,0 +1,18 @@
1
+ import {StatusLight as $df8f173c8bd4ebc0$export$5f84c37a31c6e41c} from "./StatusLight.module.js";
2
+
3
+ /*
4
+ * Copyright 2020 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */ /// <reference types="css-module-types" />
14
+
15
+
16
+
17
+ export {$df8f173c8bd4ebc0$export$5f84c37a31c6e41c as StatusLight};
18
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/statuslight/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 {StatusLight} from './StatusLight';\nexport type {SpectrumStatusLightProps} from '@react-types/statuslight';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,71 @@
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, "focus-ring", () => $7e20c9d2bb376434$export$f39a09f249340e2a, (v) => $7e20c9d2bb376434$export$f39a09f249340e2a = v);
7
+ $parcel$export(module.exports, "i18nFontFamily", () => $7e20c9d2bb376434$export$8c4ee2c50c22c514, (v) => $7e20c9d2bb376434$export$8c4ee2c50c22c514 = v);
8
+ $parcel$export(module.exports, "is-disabled", () => $7e20c9d2bb376434$export$d35bc1e505d1ebbf, (v) => $7e20c9d2bb376434$export$d35bc1e505d1ebbf = v);
9
+ $parcel$export(module.exports, "spectrum-FocusRing-ring", () => $7e20c9d2bb376434$export$4109102f950813a6, (v) => $7e20c9d2bb376434$export$4109102f950813a6 = v);
10
+ $parcel$export(module.exports, "spectrum-FocusRing", () => $7e20c9d2bb376434$export$24c7f46a6e3605dd, (v) => $7e20c9d2bb376434$export$24c7f46a6e3605dd = v);
11
+ $parcel$export(module.exports, "spectrum-FocusRing--quiet", () => $7e20c9d2bb376434$export$2927016961429360, (v) => $7e20c9d2bb376434$export$2927016961429360 = v);
12
+ $parcel$export(module.exports, "spectrum-StatusLight", () => $7e20c9d2bb376434$export$11d3697e7e5c1bef, (v) => $7e20c9d2bb376434$export$11d3697e7e5c1bef = v);
13
+ $parcel$export(module.exports, "spectrum-StatusLight--active", () => $7e20c9d2bb376434$export$b40c603f4b579265, (v) => $7e20c9d2bb376434$export$b40c603f4b579265 = v);
14
+ $parcel$export(module.exports, "spectrum-StatusLight--celery", () => $7e20c9d2bb376434$export$e9a22f483095fe3e, (v) => $7e20c9d2bb376434$export$e9a22f483095fe3e = v);
15
+ $parcel$export(module.exports, "spectrum-StatusLight--chartreuse", () => $7e20c9d2bb376434$export$f05bd1f10c0cc15f, (v) => $7e20c9d2bb376434$export$f05bd1f10c0cc15f = v);
16
+ $parcel$export(module.exports, "spectrum-StatusLight--fuchsia", () => $7e20c9d2bb376434$export$cbaba642d0afd312, (v) => $7e20c9d2bb376434$export$cbaba642d0afd312 = v);
17
+ $parcel$export(module.exports, "spectrum-StatusLight--indigo", () => $7e20c9d2bb376434$export$8b77e0c07c11635a, (v) => $7e20c9d2bb376434$export$8b77e0c07c11635a = v);
18
+ $parcel$export(module.exports, "spectrum-StatusLight--info", () => $7e20c9d2bb376434$export$945a5d9a4e8494e6, (v) => $7e20c9d2bb376434$export$945a5d9a4e8494e6 = v);
19
+ $parcel$export(module.exports, "spectrum-StatusLight--magenta", () => $7e20c9d2bb376434$export$43990cc5ba9a0059, (v) => $7e20c9d2bb376434$export$43990cc5ba9a0059 = v);
20
+ $parcel$export(module.exports, "spectrum-StatusLight--negative", () => $7e20c9d2bb376434$export$1974c2646528dc4f, (v) => $7e20c9d2bb376434$export$1974c2646528dc4f = v);
21
+ $parcel$export(module.exports, "spectrum-StatusLight--neutral", () => $7e20c9d2bb376434$export$bbf75dd99797a93e, (v) => $7e20c9d2bb376434$export$bbf75dd99797a93e = v);
22
+ $parcel$export(module.exports, "spectrum-StatusLight--notice", () => $7e20c9d2bb376434$export$30a5e512ed4618b, (v) => $7e20c9d2bb376434$export$30a5e512ed4618b = v);
23
+ $parcel$export(module.exports, "spectrum-StatusLight--positive", () => $7e20c9d2bb376434$export$141dae5af9534f54, (v) => $7e20c9d2bb376434$export$141dae5af9534f54 = v);
24
+ $parcel$export(module.exports, "spectrum-StatusLight--purple", () => $7e20c9d2bb376434$export$975baced4f8182b4, (v) => $7e20c9d2bb376434$export$975baced4f8182b4 = v);
25
+ $parcel$export(module.exports, "spectrum-StatusLight--seafoam", () => $7e20c9d2bb376434$export$d14bcd2d3ae8238c, (v) => $7e20c9d2bb376434$export$d14bcd2d3ae8238c = v);
26
+ $parcel$export(module.exports, "spectrum-StatusLight--yellow", () => $7e20c9d2bb376434$export$b22c4af54e28c6c, (v) => $7e20c9d2bb376434$export$b22c4af54e28c6c = v);
27
+ var $7e20c9d2bb376434$export$f39a09f249340e2a;
28
+ var $7e20c9d2bb376434$export$8c4ee2c50c22c514;
29
+ var $7e20c9d2bb376434$export$d35bc1e505d1ebbf;
30
+ var $7e20c9d2bb376434$export$4109102f950813a6;
31
+ var $7e20c9d2bb376434$export$24c7f46a6e3605dd;
32
+ var $7e20c9d2bb376434$export$2927016961429360;
33
+ var $7e20c9d2bb376434$export$11d3697e7e5c1bef;
34
+ var $7e20c9d2bb376434$export$b40c603f4b579265;
35
+ var $7e20c9d2bb376434$export$e9a22f483095fe3e;
36
+ var $7e20c9d2bb376434$export$f05bd1f10c0cc15f;
37
+ var $7e20c9d2bb376434$export$cbaba642d0afd312;
38
+ var $7e20c9d2bb376434$export$8b77e0c07c11635a;
39
+ var $7e20c9d2bb376434$export$945a5d9a4e8494e6;
40
+ var $7e20c9d2bb376434$export$43990cc5ba9a0059;
41
+ var $7e20c9d2bb376434$export$1974c2646528dc4f;
42
+ var $7e20c9d2bb376434$export$bbf75dd99797a93e;
43
+ var $7e20c9d2bb376434$export$30a5e512ed4618b;
44
+ var $7e20c9d2bb376434$export$141dae5af9534f54;
45
+ var $7e20c9d2bb376434$export$975baced4f8182b4;
46
+ var $7e20c9d2bb376434$export$d14bcd2d3ae8238c;
47
+ var $7e20c9d2bb376434$export$b22c4af54e28c6c;
48
+ $7e20c9d2bb376434$export$f39a09f249340e2a = `j59EQa_focus-ring`;
49
+ $7e20c9d2bb376434$export$8c4ee2c50c22c514 = `j59EQa_i18nFontFamily`;
50
+ $7e20c9d2bb376434$export$d35bc1e505d1ebbf = `j59EQa_is-disabled`;
51
+ $7e20c9d2bb376434$export$4109102f950813a6 = `j59EQa_spectrum-FocusRing-ring`;
52
+ $7e20c9d2bb376434$export$24c7f46a6e3605dd = `j59EQa_spectrum-FocusRing ${$7e20c9d2bb376434$export$4109102f950813a6}`;
53
+ $7e20c9d2bb376434$export$2927016961429360 = `j59EQa_spectrum-FocusRing--quiet`;
54
+ $7e20c9d2bb376434$export$11d3697e7e5c1bef = `j59EQa_spectrum-StatusLight`;
55
+ $7e20c9d2bb376434$export$b40c603f4b579265 = `j59EQa_spectrum-StatusLight--active`;
56
+ $7e20c9d2bb376434$export$e9a22f483095fe3e = `j59EQa_spectrum-StatusLight--celery`;
57
+ $7e20c9d2bb376434$export$f05bd1f10c0cc15f = `j59EQa_spectrum-StatusLight--chartreuse`;
58
+ $7e20c9d2bb376434$export$cbaba642d0afd312 = `j59EQa_spectrum-StatusLight--fuchsia`;
59
+ $7e20c9d2bb376434$export$8b77e0c07c11635a = `j59EQa_spectrum-StatusLight--indigo`;
60
+ $7e20c9d2bb376434$export$945a5d9a4e8494e6 = `j59EQa_spectrum-StatusLight--info`;
61
+ $7e20c9d2bb376434$export$43990cc5ba9a0059 = `j59EQa_spectrum-StatusLight--magenta`;
62
+ $7e20c9d2bb376434$export$1974c2646528dc4f = `j59EQa_spectrum-StatusLight--negative`;
63
+ $7e20c9d2bb376434$export$bbf75dd99797a93e = `j59EQa_spectrum-StatusLight--neutral`;
64
+ $7e20c9d2bb376434$export$30a5e512ed4618b = `j59EQa_spectrum-StatusLight--notice`;
65
+ $7e20c9d2bb376434$export$141dae5af9534f54 = `j59EQa_spectrum-StatusLight--positive`;
66
+ $7e20c9d2bb376434$export$975baced4f8182b4 = `j59EQa_spectrum-StatusLight--purple`;
67
+ $7e20c9d2bb376434$export$d14bcd2d3ae8238c = `j59EQa_spectrum-StatusLight--seafoam`;
68
+ $7e20c9d2bb376434$export$b22c4af54e28c6c = `j59EQa_spectrum-StatusLight--yellow`;
69
+
70
+
71
+ //# sourceMappingURL=statuslight_vars_css.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AApBA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAqD,CAAC,uCAAuC,CAAC;AAC9F,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAA+C,CAAC,iCAAiC,CAAC;AAClF,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,2CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,2CAAiD,CAAC,mCAAmC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/statuslight/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":"statuslight_vars_css.main.js.map"}
@@ -0,0 +1,73 @@
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 $7661ca422872705f$exports = {};
6
+
7
+ $parcel$export($7661ca422872705f$exports, "focus-ring", () => $7661ca422872705f$export$f39a09f249340e2a, (v) => $7661ca422872705f$export$f39a09f249340e2a = v);
8
+ $parcel$export($7661ca422872705f$exports, "i18nFontFamily", () => $7661ca422872705f$export$8c4ee2c50c22c514, (v) => $7661ca422872705f$export$8c4ee2c50c22c514 = v);
9
+ $parcel$export($7661ca422872705f$exports, "is-disabled", () => $7661ca422872705f$export$d35bc1e505d1ebbf, (v) => $7661ca422872705f$export$d35bc1e505d1ebbf = v);
10
+ $parcel$export($7661ca422872705f$exports, "spectrum-FocusRing-ring", () => $7661ca422872705f$export$4109102f950813a6, (v) => $7661ca422872705f$export$4109102f950813a6 = v);
11
+ $parcel$export($7661ca422872705f$exports, "spectrum-FocusRing", () => $7661ca422872705f$export$24c7f46a6e3605dd, (v) => $7661ca422872705f$export$24c7f46a6e3605dd = v);
12
+ $parcel$export($7661ca422872705f$exports, "spectrum-FocusRing--quiet", () => $7661ca422872705f$export$2927016961429360, (v) => $7661ca422872705f$export$2927016961429360 = v);
13
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight", () => $7661ca422872705f$export$11d3697e7e5c1bef, (v) => $7661ca422872705f$export$11d3697e7e5c1bef = v);
14
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--active", () => $7661ca422872705f$export$b40c603f4b579265, (v) => $7661ca422872705f$export$b40c603f4b579265 = v);
15
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--celery", () => $7661ca422872705f$export$e9a22f483095fe3e, (v) => $7661ca422872705f$export$e9a22f483095fe3e = v);
16
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--chartreuse", () => $7661ca422872705f$export$f05bd1f10c0cc15f, (v) => $7661ca422872705f$export$f05bd1f10c0cc15f = v);
17
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--fuchsia", () => $7661ca422872705f$export$cbaba642d0afd312, (v) => $7661ca422872705f$export$cbaba642d0afd312 = v);
18
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--indigo", () => $7661ca422872705f$export$8b77e0c07c11635a, (v) => $7661ca422872705f$export$8b77e0c07c11635a = v);
19
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--info", () => $7661ca422872705f$export$945a5d9a4e8494e6, (v) => $7661ca422872705f$export$945a5d9a4e8494e6 = v);
20
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--magenta", () => $7661ca422872705f$export$43990cc5ba9a0059, (v) => $7661ca422872705f$export$43990cc5ba9a0059 = v);
21
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--negative", () => $7661ca422872705f$export$1974c2646528dc4f, (v) => $7661ca422872705f$export$1974c2646528dc4f = v);
22
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--neutral", () => $7661ca422872705f$export$bbf75dd99797a93e, (v) => $7661ca422872705f$export$bbf75dd99797a93e = v);
23
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--notice", () => $7661ca422872705f$export$30a5e512ed4618b, (v) => $7661ca422872705f$export$30a5e512ed4618b = v);
24
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--positive", () => $7661ca422872705f$export$141dae5af9534f54, (v) => $7661ca422872705f$export$141dae5af9534f54 = v);
25
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--purple", () => $7661ca422872705f$export$975baced4f8182b4, (v) => $7661ca422872705f$export$975baced4f8182b4 = v);
26
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--seafoam", () => $7661ca422872705f$export$d14bcd2d3ae8238c, (v) => $7661ca422872705f$export$d14bcd2d3ae8238c = v);
27
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--yellow", () => $7661ca422872705f$export$b22c4af54e28c6c, (v) => $7661ca422872705f$export$b22c4af54e28c6c = v);
28
+ var $7661ca422872705f$export$f39a09f249340e2a;
29
+ var $7661ca422872705f$export$8c4ee2c50c22c514;
30
+ var $7661ca422872705f$export$d35bc1e505d1ebbf;
31
+ var $7661ca422872705f$export$4109102f950813a6;
32
+ var $7661ca422872705f$export$24c7f46a6e3605dd;
33
+ var $7661ca422872705f$export$2927016961429360;
34
+ var $7661ca422872705f$export$11d3697e7e5c1bef;
35
+ var $7661ca422872705f$export$b40c603f4b579265;
36
+ var $7661ca422872705f$export$e9a22f483095fe3e;
37
+ var $7661ca422872705f$export$f05bd1f10c0cc15f;
38
+ var $7661ca422872705f$export$cbaba642d0afd312;
39
+ var $7661ca422872705f$export$8b77e0c07c11635a;
40
+ var $7661ca422872705f$export$945a5d9a4e8494e6;
41
+ var $7661ca422872705f$export$43990cc5ba9a0059;
42
+ var $7661ca422872705f$export$1974c2646528dc4f;
43
+ var $7661ca422872705f$export$bbf75dd99797a93e;
44
+ var $7661ca422872705f$export$30a5e512ed4618b;
45
+ var $7661ca422872705f$export$141dae5af9534f54;
46
+ var $7661ca422872705f$export$975baced4f8182b4;
47
+ var $7661ca422872705f$export$d14bcd2d3ae8238c;
48
+ var $7661ca422872705f$export$b22c4af54e28c6c;
49
+ $7661ca422872705f$export$f39a09f249340e2a = `j59EQa_focus-ring`;
50
+ $7661ca422872705f$export$8c4ee2c50c22c514 = `j59EQa_i18nFontFamily`;
51
+ $7661ca422872705f$export$d35bc1e505d1ebbf = `j59EQa_is-disabled`;
52
+ $7661ca422872705f$export$4109102f950813a6 = `j59EQa_spectrum-FocusRing-ring`;
53
+ $7661ca422872705f$export$24c7f46a6e3605dd = `j59EQa_spectrum-FocusRing ${$7661ca422872705f$export$4109102f950813a6}`;
54
+ $7661ca422872705f$export$2927016961429360 = `j59EQa_spectrum-FocusRing--quiet`;
55
+ $7661ca422872705f$export$11d3697e7e5c1bef = `j59EQa_spectrum-StatusLight`;
56
+ $7661ca422872705f$export$b40c603f4b579265 = `j59EQa_spectrum-StatusLight--active`;
57
+ $7661ca422872705f$export$e9a22f483095fe3e = `j59EQa_spectrum-StatusLight--celery`;
58
+ $7661ca422872705f$export$f05bd1f10c0cc15f = `j59EQa_spectrum-StatusLight--chartreuse`;
59
+ $7661ca422872705f$export$cbaba642d0afd312 = `j59EQa_spectrum-StatusLight--fuchsia`;
60
+ $7661ca422872705f$export$8b77e0c07c11635a = `j59EQa_spectrum-StatusLight--indigo`;
61
+ $7661ca422872705f$export$945a5d9a4e8494e6 = `j59EQa_spectrum-StatusLight--info`;
62
+ $7661ca422872705f$export$43990cc5ba9a0059 = `j59EQa_spectrum-StatusLight--magenta`;
63
+ $7661ca422872705f$export$1974c2646528dc4f = `j59EQa_spectrum-StatusLight--negative`;
64
+ $7661ca422872705f$export$bbf75dd99797a93e = `j59EQa_spectrum-StatusLight--neutral`;
65
+ $7661ca422872705f$export$30a5e512ed4618b = `j59EQa_spectrum-StatusLight--notice`;
66
+ $7661ca422872705f$export$141dae5af9534f54 = `j59EQa_spectrum-StatusLight--positive`;
67
+ $7661ca422872705f$export$975baced4f8182b4 = `j59EQa_spectrum-StatusLight--purple`;
68
+ $7661ca422872705f$export$d14bcd2d3ae8238c = `j59EQa_spectrum-StatusLight--seafoam`;
69
+ $7661ca422872705f$export$b22c4af54e28c6c = `j59EQa_spectrum-StatusLight--yellow`;
70
+
71
+
72
+ export {$7661ca422872705f$exports as default};
73
+ //# sourceMappingURL=statuslight_vars_css.module.js.map
@@ -0,0 +1,73 @@
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 $7661ca422872705f$exports = {};
6
+
7
+ $parcel$export($7661ca422872705f$exports, "focus-ring", () => $7661ca422872705f$export$f39a09f249340e2a, (v) => $7661ca422872705f$export$f39a09f249340e2a = v);
8
+ $parcel$export($7661ca422872705f$exports, "i18nFontFamily", () => $7661ca422872705f$export$8c4ee2c50c22c514, (v) => $7661ca422872705f$export$8c4ee2c50c22c514 = v);
9
+ $parcel$export($7661ca422872705f$exports, "is-disabled", () => $7661ca422872705f$export$d35bc1e505d1ebbf, (v) => $7661ca422872705f$export$d35bc1e505d1ebbf = v);
10
+ $parcel$export($7661ca422872705f$exports, "spectrum-FocusRing-ring", () => $7661ca422872705f$export$4109102f950813a6, (v) => $7661ca422872705f$export$4109102f950813a6 = v);
11
+ $parcel$export($7661ca422872705f$exports, "spectrum-FocusRing", () => $7661ca422872705f$export$24c7f46a6e3605dd, (v) => $7661ca422872705f$export$24c7f46a6e3605dd = v);
12
+ $parcel$export($7661ca422872705f$exports, "spectrum-FocusRing--quiet", () => $7661ca422872705f$export$2927016961429360, (v) => $7661ca422872705f$export$2927016961429360 = v);
13
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight", () => $7661ca422872705f$export$11d3697e7e5c1bef, (v) => $7661ca422872705f$export$11d3697e7e5c1bef = v);
14
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--active", () => $7661ca422872705f$export$b40c603f4b579265, (v) => $7661ca422872705f$export$b40c603f4b579265 = v);
15
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--celery", () => $7661ca422872705f$export$e9a22f483095fe3e, (v) => $7661ca422872705f$export$e9a22f483095fe3e = v);
16
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--chartreuse", () => $7661ca422872705f$export$f05bd1f10c0cc15f, (v) => $7661ca422872705f$export$f05bd1f10c0cc15f = v);
17
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--fuchsia", () => $7661ca422872705f$export$cbaba642d0afd312, (v) => $7661ca422872705f$export$cbaba642d0afd312 = v);
18
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--indigo", () => $7661ca422872705f$export$8b77e0c07c11635a, (v) => $7661ca422872705f$export$8b77e0c07c11635a = v);
19
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--info", () => $7661ca422872705f$export$945a5d9a4e8494e6, (v) => $7661ca422872705f$export$945a5d9a4e8494e6 = v);
20
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--magenta", () => $7661ca422872705f$export$43990cc5ba9a0059, (v) => $7661ca422872705f$export$43990cc5ba9a0059 = v);
21
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--negative", () => $7661ca422872705f$export$1974c2646528dc4f, (v) => $7661ca422872705f$export$1974c2646528dc4f = v);
22
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--neutral", () => $7661ca422872705f$export$bbf75dd99797a93e, (v) => $7661ca422872705f$export$bbf75dd99797a93e = v);
23
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--notice", () => $7661ca422872705f$export$30a5e512ed4618b, (v) => $7661ca422872705f$export$30a5e512ed4618b = v);
24
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--positive", () => $7661ca422872705f$export$141dae5af9534f54, (v) => $7661ca422872705f$export$141dae5af9534f54 = v);
25
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--purple", () => $7661ca422872705f$export$975baced4f8182b4, (v) => $7661ca422872705f$export$975baced4f8182b4 = v);
26
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--seafoam", () => $7661ca422872705f$export$d14bcd2d3ae8238c, (v) => $7661ca422872705f$export$d14bcd2d3ae8238c = v);
27
+ $parcel$export($7661ca422872705f$exports, "spectrum-StatusLight--yellow", () => $7661ca422872705f$export$b22c4af54e28c6c, (v) => $7661ca422872705f$export$b22c4af54e28c6c = v);
28
+ var $7661ca422872705f$export$f39a09f249340e2a;
29
+ var $7661ca422872705f$export$8c4ee2c50c22c514;
30
+ var $7661ca422872705f$export$d35bc1e505d1ebbf;
31
+ var $7661ca422872705f$export$4109102f950813a6;
32
+ var $7661ca422872705f$export$24c7f46a6e3605dd;
33
+ var $7661ca422872705f$export$2927016961429360;
34
+ var $7661ca422872705f$export$11d3697e7e5c1bef;
35
+ var $7661ca422872705f$export$b40c603f4b579265;
36
+ var $7661ca422872705f$export$e9a22f483095fe3e;
37
+ var $7661ca422872705f$export$f05bd1f10c0cc15f;
38
+ var $7661ca422872705f$export$cbaba642d0afd312;
39
+ var $7661ca422872705f$export$8b77e0c07c11635a;
40
+ var $7661ca422872705f$export$945a5d9a4e8494e6;
41
+ var $7661ca422872705f$export$43990cc5ba9a0059;
42
+ var $7661ca422872705f$export$1974c2646528dc4f;
43
+ var $7661ca422872705f$export$bbf75dd99797a93e;
44
+ var $7661ca422872705f$export$30a5e512ed4618b;
45
+ var $7661ca422872705f$export$141dae5af9534f54;
46
+ var $7661ca422872705f$export$975baced4f8182b4;
47
+ var $7661ca422872705f$export$d14bcd2d3ae8238c;
48
+ var $7661ca422872705f$export$b22c4af54e28c6c;
49
+ $7661ca422872705f$export$f39a09f249340e2a = `j59EQa_focus-ring`;
50
+ $7661ca422872705f$export$8c4ee2c50c22c514 = `j59EQa_i18nFontFamily`;
51
+ $7661ca422872705f$export$d35bc1e505d1ebbf = `j59EQa_is-disabled`;
52
+ $7661ca422872705f$export$4109102f950813a6 = `j59EQa_spectrum-FocusRing-ring`;
53
+ $7661ca422872705f$export$24c7f46a6e3605dd = `j59EQa_spectrum-FocusRing ${$7661ca422872705f$export$4109102f950813a6}`;
54
+ $7661ca422872705f$export$2927016961429360 = `j59EQa_spectrum-FocusRing--quiet`;
55
+ $7661ca422872705f$export$11d3697e7e5c1bef = `j59EQa_spectrum-StatusLight`;
56
+ $7661ca422872705f$export$b40c603f4b579265 = `j59EQa_spectrum-StatusLight--active`;
57
+ $7661ca422872705f$export$e9a22f483095fe3e = `j59EQa_spectrum-StatusLight--celery`;
58
+ $7661ca422872705f$export$f05bd1f10c0cc15f = `j59EQa_spectrum-StatusLight--chartreuse`;
59
+ $7661ca422872705f$export$cbaba642d0afd312 = `j59EQa_spectrum-StatusLight--fuchsia`;
60
+ $7661ca422872705f$export$8b77e0c07c11635a = `j59EQa_spectrum-StatusLight--indigo`;
61
+ $7661ca422872705f$export$945a5d9a4e8494e6 = `j59EQa_spectrum-StatusLight--info`;
62
+ $7661ca422872705f$export$43990cc5ba9a0059 = `j59EQa_spectrum-StatusLight--magenta`;
63
+ $7661ca422872705f$export$1974c2646528dc4f = `j59EQa_spectrum-StatusLight--negative`;
64
+ $7661ca422872705f$export$bbf75dd99797a93e = `j59EQa_spectrum-StatusLight--neutral`;
65
+ $7661ca422872705f$export$30a5e512ed4618b = `j59EQa_spectrum-StatusLight--notice`;
66
+ $7661ca422872705f$export$141dae5af9534f54 = `j59EQa_spectrum-StatusLight--positive`;
67
+ $7661ca422872705f$export$975baced4f8182b4 = `j59EQa_spectrum-StatusLight--purple`;
68
+ $7661ca422872705f$export$d14bcd2d3ae8238c = `j59EQa_spectrum-StatusLight--seafoam`;
69
+ $7661ca422872705f$export$b22c4af54e28c6c = `j59EQa_spectrum-StatusLight--yellow`;
70
+
71
+
72
+ export {$7661ca422872705f$exports as default};
73
+ //# sourceMappingURL=statuslight_vars_css.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AApBA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,4CAAgC,CAAC,kBAAkB,CAAC;AACpD,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,0CAA0C,CAAC;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC;AAChF,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAqD,CAAC,uCAAuC,CAAC;AAC9F,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAA+C,CAAC,iCAAiC,CAAC;AAClF,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,2CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAmD,CAAC,qCAAqC,CAAC;AAC1F,4CAAiD,CAAC,mCAAmC,CAAC;AACtF,4CAAkD,CAAC,oCAAoC,CAAC;AACxF,2CAAiD,CAAC,mCAAmC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/statuslight/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":"statuslight_vars_css.module.js.map"}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { SpectrumStatusLightProps } from "@react-types/statuslight";
3
+ import { DOMRefValue } from "@react-types/shared";
4
+ /**
5
+ * Status lights are used to color code categories and labels commonly found in data visualization.
6
+ * When status lights have a semantic meaning, they should use semantic variant colors.
7
+ */
8
+ export let StatusLight: React.ForwardRefExoticComponent<SpectrumStatusLightProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
9
+ export type { SpectrumStatusLightProps } from '@react-types/statuslight';
10
+
11
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;AA2DA;;;GAGG;AACH,OAAA,IAAI,yHAAsC,CAAC;AChD3C,YAAY,EAAC,wBAAwB,EAAC,MAAM,0BAA0B,CAAC","sources":["packages/@react-spectrum/statuslight/src/packages/@react-spectrum/statuslight/src/StatusLight.tsx","packages/@react-spectrum/statuslight/src/packages/@react-spectrum/statuslight/src/index.ts","packages/@react-spectrum/statuslight/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 {StatusLight} from './StatusLight';\nexport type {SpectrumStatusLightProps} from '@react-types/statuslight';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -0,0 +1,196 @@
1
+ .j59EQa_i18nFontFamily {
2
+ font-synthesis: weight;
3
+ font-family: adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
4
+ }
5
+
6
+ .j59EQa_i18nFontFamily:lang(ar) {
7
+ font-family: myriad-arabic, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
8
+ }
9
+
10
+ .j59EQa_i18nFontFamily:lang(he) {
11
+ font-family: myriad-hebrew, adobe-clean, Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Trebuchet MS, Lucida Grande, sans-serif;
12
+ }
13
+
14
+ .j59EQa_i18nFontFamily:lang(zh) {
15
+ font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
16
+ }
17
+
18
+ .j59EQa_i18nFontFamily:lang(zh-Hans) {
19
+ font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
20
+ }
21
+
22
+ .j59EQa_i18nFontFamily:lang(zh-Hant) {
23
+ font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Microsoft JhengHei UI, Microsoft JhengHei, Heiti TC Light, sans-serif;
24
+ }
25
+
26
+ .j59EQa_i18nFontFamily:lang(zh-SG), .j59EQa_i18nFontFamily:lang(zh-CN) {
27
+ font-family: adobe-clean-han-simplified-c, source-han-simplified-c, SimSun, Heiti SC Light, sans-serif;
28
+ }
29
+
30
+ .j59EQa_i18nFontFamily:lang(ko) {
31
+ font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
32
+ }
33
+
34
+ .j59EQa_i18nFontFamily:lang(ja) {
35
+ font-family: adobe-clean-han-japanese, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, Osaka, YuGothic, Yu Gothic, メイリオ, Meiryo, MS Pゴシック, MS PGothic, sans-serif;
36
+ }
37
+
38
+ .j59EQa_spectrum-FocusRing-ring {
39
+ --spectrum-focus-ring-border-radius: var(--spectrum-textfield-border-radius, var(--spectrum-alias-border-radius-regular));
40
+ --spectrum-focus-ring-gap: var(--spectrum-alias-input-focusring-gap);
41
+ --spectrum-focus-ring-size: var(--spectrum-alias-input-focusring-size);
42
+ --spectrum-focus-ring-border-size: 0px;
43
+ --spectrum-focus-ring-color: var(--spectrum-high-contrast-focus-ring-color, var(--spectrum-alias-focus-ring-color, var(--spectrum-alias-focus-color)));
44
+ }
45
+
46
+ .j59EQa_spectrum-FocusRing-ring:after {
47
+ border-radius: calc(var(--spectrum-focus-ring-border-radius) + var(--spectrum-focus-ring-gap));
48
+ content: "";
49
+ margin: calc(-1 * var(--spectrum-focus-ring-border-size));
50
+ pointer-events: none;
51
+ transition: box-shadow var(--spectrum-global-animation-duration-100, .13s) ease-out, margin var(--spectrum-global-animation-duration-100, .13s) ease-out;
52
+ display: block;
53
+ position: absolute;
54
+ inset: 0;
55
+ }
56
+
57
+ .j59EQa_spectrum-FocusRing.j59EQa_focus-ring:after {
58
+ margin: calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size));
59
+ box-shadow: 0 0 0 var(--spectrum-focus-ring-size) var(--spectrum-focus-ring-color);
60
+ }
61
+
62
+ .j59EQa_spectrum-FocusRing--quiet:after {
63
+ border-radius: 0;
64
+ }
65
+
66
+ .j59EQa_spectrum-FocusRing--quiet.j59EQa_focus-ring:after {
67
+ margin: 0 0 calc(var(--spectrum-focus-ring-gap) * -1 - var(--spectrum-focus-ring-border-size)) 0;
68
+ box-shadow: 0 var(--spectrum-focus-ring-size) 0 var(--spectrum-focus-ring-color);
69
+ }
70
+
71
+ @media (forced-colors: active) {
72
+ .j59EQa_spectrum-FocusRing, .j59EQa_spectrum-FocusRing-ring, .j59EQa_spectrum-FocusRing--quiet {
73
+ --spectrum-high-contrast-focus-ring-color: Highlight;
74
+ }
75
+
76
+ :is(.j59EQa_spectrum-FocusRing, .j59EQa_spectrum-FocusRing-ring, .j59EQa_spectrum-FocusRing--quiet):after {
77
+ forced-color-adjust: none;
78
+ }
79
+ }
80
+
81
+ .j59EQa_spectrum-StatusLight {
82
+ min-block-size: var(--spectrum-statuslight-height, var(--spectrum-alias-single-line-height));
83
+ padding: calc(var(--spectrum-global-dimension-size-65) - 1px) 0 calc(var(--spectrum-global-dimension-size-65) + 1px) 0;
84
+ box-sizing: border-box;
85
+ font-size: var(--spectrum-statuslight-text-size, var(--spectrum-alias-font-size-default));
86
+ font-weight: var(--spectrum-statuslight-text-font-weight, var(--spectrum-alias-body-text-font-weight));
87
+ flex-direction: row;
88
+ align-items: flex-start;
89
+ line-height: 1.44;
90
+ display: flex;
91
+ }
92
+
93
+ .j59EQa_spectrum-StatusLight:before {
94
+ content: "";
95
+ inline-size: var(--spectrum-statuslight-dot-size, var(--spectrum-global-dimension-size-100));
96
+ block-size: var(--spectrum-statuslight-dot-size, var(--spectrum-global-dimension-size-100));
97
+ margin: calc(var(--spectrum-global-dimension-size-65) + 1px) var(--spectrum-statuslight-text-gap, var(--spectrum-global-dimension-size-150)) calc(var(--spectrum-global-dimension-size-65) - 1px) var(--spectrum-statuslight-text-gap, var(--spectrum-global-dimension-size-150));
98
+ border-radius: 50%;
99
+ flex-grow: 0;
100
+ flex-shrink: 0;
101
+ display: inline-block;
102
+ }
103
+
104
+ .j59EQa_spectrum-StatusLight--neutral {
105
+ font-style: italic;
106
+ }
107
+
108
+ .j59EQa_spectrum-StatusLight {
109
+ color: var(--spectrum-statuslight-text-color, var(--spectrum-alias-text-color));
110
+ }
111
+
112
+ .j59EQa_spectrum-StatusLight[disabled] {
113
+ color: var(--spectrum-statuslight-text-color-disabled, var(--spectrum-alias-text-color-disabled));
114
+ }
115
+
116
+ .j59EQa_spectrum-StatusLight[disabled]:before {
117
+ background-color: var(--spectrum-statuslight-dot-color-disabled, var(--spectrum-global-color-gray-400));
118
+ }
119
+
120
+ .j59EQa_spectrum-StatusLight.j59EQa_is-disabled {
121
+ color: var(--spectrum-statuslight-text-color-disabled, var(--spectrum-alias-text-color-disabled));
122
+ }
123
+
124
+ .j59EQa_spectrum-StatusLight.j59EQa_is-disabled:before {
125
+ background-color: var(--spectrum-statuslight-dot-color-disabled, var(--spectrum-global-color-gray-400));
126
+ }
127
+
128
+ .j59EQa_spectrum-StatusLight--negative:before {
129
+ background-color: var(--spectrum-statuslight-negative-dot-color, var(--spectrum-semantic-negative-color-status));
130
+ }
131
+
132
+ .j59EQa_spectrum-StatusLight--notice:before {
133
+ background-color: var(--spectrum-statuslight-notice-dot-color, var(--spectrum-semantic-notice-color-status));
134
+ }
135
+
136
+ .j59EQa_spectrum-StatusLight--positive:before {
137
+ background-color: var(--spectrum-statuslight-positive-dot-color, var(--spectrum-semantic-positive-color-status));
138
+ }
139
+
140
+ .j59EQa_spectrum-StatusLight--info:before, .j59EQa_spectrum-StatusLight--active:before {
141
+ background-color: var(--spectrum-statuslight-info-dot-color, var(--spectrum-semantic-informative-color-status));
142
+ }
143
+
144
+ .j59EQa_spectrum-StatusLight--neutral {
145
+ color: var(--spectrum-statuslight-neutral-text-color, var(--spectrum-global-color-gray-700));
146
+ }
147
+
148
+ .j59EQa_spectrum-StatusLight--neutral:before {
149
+ background-color: var(--spectrum-gray-visual-color);
150
+ }
151
+
152
+ .j59EQa_spectrum-StatusLight--celery:before {
153
+ background-color: var(--spectrum-celery-visual-color);
154
+ }
155
+
156
+ .j59EQa_spectrum-StatusLight--yellow:before {
157
+ background-color: var(--spectrum-yellow-visual-color);
158
+ }
159
+
160
+ .j59EQa_spectrum-StatusLight--fuchsia:before {
161
+ background-color: var(--spectrum-fuchsia-visual-color);
162
+ }
163
+
164
+ .j59EQa_spectrum-StatusLight--indigo:before {
165
+ background-color: var(--spectrum-indigo-visual-color);
166
+ }
167
+
168
+ .j59EQa_spectrum-StatusLight--seafoam:before {
169
+ background-color: var(--spectrum-seafoam-visual-color);
170
+ }
171
+
172
+ .j59EQa_spectrum-StatusLight--chartreuse:before {
173
+ background-color: var(--spectrum-chartreuse-visual-color);
174
+ }
175
+
176
+ .j59EQa_spectrum-StatusLight--magenta:before {
177
+ background-color: var(--spectrum-magenta-visual-color);
178
+ }
179
+
180
+ .j59EQa_spectrum-StatusLight--purple:before {
181
+ background-color: var(--spectrum-purple-visual-color);
182
+ }
183
+
184
+ @media (forced-colors: active) {
185
+ .j59EQa_spectrum-StatusLight {
186
+ forced-color-adjust: none;
187
+ --spectrum-statuslight-text-color: CanvasText;
188
+ --spectrum-statuslight-text-color-disabled: GrayText;
189
+ --spectrum-statuslight-dot-color-disabled: GrayText;
190
+ }
191
+
192
+ .j59EQa_spectrum-StatusLight:before {
193
+ border: 1px solid buttontext;
194
+ }
195
+ }
196
+ /*# sourceMappingURL=vars.571171ed.css.map */
@@ -0,0 +1 @@
1
+ {"mappings":"AA2DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;;;;AAaA;;;;;;;;;;;AAcA;;;;AAgBA;;;;AAGE;;;;AAIE;;;;AAJF;;;;AAIE;;;;AAMJ;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAKA;;;;AAGE;;;;AAKF;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;EACE;;;;;;;EAKE","sources":["packages/@adobe/spectrum-css-temp/components/statuslight/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.571171ed.css.map"}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@react-spectrum/statuslight",
3
+ "version": "3.0.0-nightly-641446f65-240905",
4
+ "description": "Spectrum UI components in React",
5
+ "license": "Apache-2.0",
6
+ "main": "dist/main.js",
7
+ "module": "dist/module.js",
8
+ "exports": {
9
+ "types": "./dist/types.d.ts",
10
+ "import": "./dist/import.mjs",
11
+ "require": "./dist/main.js"
12
+ },
13
+ "types": "dist/types.d.ts",
14
+ "source": "src/index.ts",
15
+ "files": [
16
+ "dist",
17
+ "src"
18
+ ],
19
+ "sideEffects": [
20
+ "*.css"
21
+ ],
22
+ "targets": {
23
+ "main": {
24
+ "includeNodeModules": [
25
+ "@adobe/spectrum-css-temp"
26
+ ]
27
+ },
28
+ "module": {
29
+ "includeNodeModules": [
30
+ "@adobe/spectrum-css-temp"
31
+ ]
32
+ }
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/adobe/react-spectrum"
37
+ },
38
+ "dependencies": {
39
+ "@react-aria/utils": "^3.0.0-nightly-641446f65-240905",
40
+ "@react-spectrum/utils": "^3.0.0-nightly-641446f65-240905",
41
+ "@react-types/shared": "^3.0.0-nightly-641446f65-240905",
42
+ "@react-types/statuslight": "^3.0.0-nightly-641446f65-240905",
43
+ "@swc/helpers": "^0.5.0"
44
+ },
45
+ "devDependencies": {
46
+ "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
47
+ },
48
+ "peerDependencies": {
49
+ "@react-spectrum/provider": "^3.0.0-nightly-641446f65-240905",
50
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "stableVersion": "3.5.15"
56
+ }
@@ -0,0 +1,65 @@
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, useDOMRef, useStyleProps} from '@react-spectrum/utils';
14
+ import {DOMRef} from '@react-types/shared';
15
+ import {filterDOMProps} from '@react-aria/utils';
16
+ import React, {forwardRef} from 'react';
17
+ import {SpectrumStatusLightProps} from '@react-types/statuslight';
18
+ import styles from '@adobe/spectrum-css-temp/components/statuslight/vars.css';
19
+ import {useProviderProps} from '@react-spectrum/provider';
20
+
21
+ function StatusLight(props: SpectrumStatusLightProps, ref: DOMRef<HTMLDivElement>) {
22
+ let {
23
+ variant,
24
+ children,
25
+ isDisabled,
26
+ role,
27
+ ...otherProps
28
+ } = useProviderProps(props);
29
+ let domRef = useDOMRef(ref);
30
+ let {styleProps} = useStyleProps(otherProps);
31
+
32
+ if (!children && !props['aria-label']) {
33
+ console.warn('If no children are provided, an aria-label must be specified');
34
+ }
35
+
36
+ if (!role && (props['aria-label'] || props['aria-labelledby'])) {
37
+ console.warn('A labelled StatusLight must have a role.');
38
+ }
39
+
40
+ return (
41
+ <div
42
+ {...filterDOMProps(otherProps, {labelable: !!role})}
43
+ {...styleProps}
44
+ role={role}
45
+ className={classNames(
46
+ styles,
47
+ 'spectrum-StatusLight',
48
+ `spectrum-StatusLight--${variant}`,
49
+ {
50
+ 'is-disabled': isDisabled
51
+ },
52
+ styleProps.className
53
+ )}
54
+ ref={domRef}>
55
+ {children}
56
+ </div>
57
+ );
58
+ }
59
+
60
+ /**
61
+ * Status lights are used to color code categories and labels commonly found in data visualization.
62
+ * When status lights have a semantic meaning, they should use semantic variant colors.
63
+ */
64
+ let _StatusLight = forwardRef(StatusLight);
65
+ export {_StatusLight as StatusLight};
package/src/index.ts ADDED
@@ -0,0 +1,16 @@
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
+ /// <reference types="css-module-types" />
14
+
15
+ export {StatusLight} from './StatusLight';
16
+ export type {SpectrumStatusLightProps} from '@react-types/statuslight';