@react-spectrum/statuslight 3.5.28 → 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 {StatusLight as $df8f173c8bd4ebc0$export$5f84c37a31c6e41c} from "./StatusLight.mjs";
1
+ import {StatusLight as $d8ee02fad669f51b$re_export$StatusLight} from "@adobe/react-spectrum/StatusLight";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {StatusLight as $df8f173c8bd4ebc0$export$5f84c37a31c6e41c} from "./Status
14
14
 
15
15
 
16
16
 
17
- export {$df8f173c8bd4ebc0$export$5f84c37a31c6e41c as StatusLight};
17
+ export {$d8ee02fad669f51b$re_export$StatusLight as StatusLight};
18
18
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,11 +1,11 @@
1
- var $ba01d1490c4da3ea$exports = require("./StatusLight.main.js");
1
+ var $kC8Kg$adobereactspectrumStatusLight = require("@adobe/react-spectrum/StatusLight");
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, "StatusLight", () => $ba01d1490c4da3ea$exports.StatusLight);
8
+ $parcel$export(module.exports, "StatusLight", function () { return $kC8Kg$adobereactspectrumStatusLight.StatusLight; });
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/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"}
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 '@adobe/react-spectrum/StatusLight';\n\nexport type {SpectrumStatusLightProps} from '@adobe/react-spectrum/StatusLight';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,4 +1,4 @@
1
- import {StatusLight as $df8f173c8bd4ebc0$export$5f84c37a31c6e41c} from "./StatusLight.module.js";
1
+ import {StatusLight as $d8ee02fad669f51b$re_export$StatusLight} from "@adobe/react-spectrum/StatusLight";
2
2
 
3
3
  /*
4
4
  * Copyright 2020 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {StatusLight as $df8f173c8bd4ebc0$export$5f84c37a31c6e41c} from "./Status
14
14
 
15
15
 
16
16
 
17
- export {$df8f173c8bd4ebc0$export$5f84c37a31c6e41c as StatusLight};
17
+ export {$d8ee02fad669f51b$re_export$StatusLight as StatusLight};
18
18
  //# sourceMappingURL=module.js.map
@@ -1 +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"}
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 '@adobe/react-spectrum/StatusLight';\n\nexport type {SpectrumStatusLightProps} from '@adobe/react-spectrum/StatusLight';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,2 @@
1
+ export { StatusLight } from '@adobe/react-spectrum/StatusLight';
2
+ export type { SpectrumStatusLightProps } from '@adobe/react-spectrum/StatusLight';
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@react-spectrum/statuslight",
3
- "version": "3.5.28",
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,38 +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.0",
44
- "@react-spectrum/utils": "^3.12.11",
45
- "@react-types/shared": "^3.33.0",
46
- "@react-types/statuslight": "^3.3.22",
34
+ "@adobe/react-spectrum": "3.47.0",
47
35
  "@swc/helpers": "^0.5.0"
48
36
  },
49
- "devDependencies": {
50
- "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
51
- },
52
37
  "peerDependencies": {
53
- "@react-spectrum/provider": "^3.0.0",
54
38
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
55
39
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
56
40
  },
57
41
  "publishConfig": {
58
42
  "access": "public"
59
43
  },
60
- "gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
44
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
61
45
  }
package/src/index.ts CHANGED
@@ -12,5 +12,6 @@
12
12
 
13
13
  /// <reference types="css-module-types" />
14
14
 
15
- export {StatusLight} from './StatusLight';
16
- export type {SpectrumStatusLightProps} from '@react-types/statuslight';
15
+ export {StatusLight} from '@adobe/react-spectrum/StatusLight';
16
+
17
+ export type {SpectrumStatusLightProps} from '@adobe/react-spectrum/StatusLight';
@@ -1,53 +0,0 @@
1
- require("./statuslight.435f06d5.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
- const $ba01d1490c4da3ea$export$5f84c37a31c6e41c = /*#__PURE__*/ (0, $8aavy$react.forwardRef)(function 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'] && process.env.NODE_ENV !== 'production') console.warn('If no children are provided, an aria-label must be specified');
38
- if (!role && (props['aria-label'] || props['aria-labelledby']) && process.env.NODE_ENV !== 'production') 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
-
53
- //# sourceMappingURL=StatusLight.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAcM,MAAM,0DAAc,CAAA,GAAA,uBAAS,EAAE,SAAS,YAAY,KAA+B,EAAE,GAA2B;IACrH,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,IAAI,QAAQ,GAAG,CAAC,QAAQ,KAAK,cAChE,QAAQ,IAAI,CAAC;IAGf,IAAI,CAAC,QAAS,CAAA,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,kBAAkB,AAAD,KAAM,QAAQ,GAAG,CAAC,QAAQ,KAAK,cACzF,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,SAAS,EAClC;YACE,eAAe;QACjB,GACA,WAAW,SAAS;QAEtB,KAAK;OACJ;AAGP","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\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 */\nexport const StatusLight = forwardRef(function 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'] && process.env.NODE_ENV !== 'production') {\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']) && process.env.NODE_ENV !== 'production') {\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"],"names":[],"version":3,"file":"StatusLight.main.js.map"}
@@ -1,48 +0,0 @@
1
- import "./statuslight.435f06d5.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
- const $df8f173c8bd4ebc0$export$5f84c37a31c6e41c = /*#__PURE__*/ (0, $k8ZOF$forwardRef)(function 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'] && process.env.NODE_ENV !== 'production') console.warn('If no children are provided, an aria-label must be specified');
32
- if (!role && (props['aria-label'] || props['aria-labelledby']) && process.env.NODE_ENV !== 'production') 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
-
47
- export {$df8f173c8bd4ebc0$export$5f84c37a31c6e41c as StatusLight};
48
- //# sourceMappingURL=StatusLight.module.js.map
@@ -1,48 +0,0 @@
1
- import "./statuslight.435f06d5.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
- const $df8f173c8bd4ebc0$export$5f84c37a31c6e41c = /*#__PURE__*/ (0, $k8ZOF$forwardRef)(function 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'] && process.env.NODE_ENV !== 'production') console.warn('If no children are provided, an aria-label must be specified');
32
- if (!role && (props['aria-label'] || props['aria-labelledby']) && process.env.NODE_ENV !== 'production') 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
-
47
- export {$df8f173c8bd4ebc0$export$5f84c37a31c6e41c as StatusLight};
48
- //# sourceMappingURL=StatusLight.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAcM,MAAM,0DAAc,CAAA,GAAA,iBAAS,EAAE,SAAS,YAAY,KAA+B,EAAE,GAA2B;IACrH,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,IAAI,QAAQ,GAAG,CAAC,QAAQ,KAAK,cAChE,QAAQ,IAAI,CAAC;IAGf,IAAI,CAAC,QAAS,CAAA,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,kBAAkB,AAAD,KAAM,QAAQ,GAAG,CAAC,QAAQ,KAAK,cACzF,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,SAAS,EAClC;YACE,eAAe;QACjB,GACA,WAAW,SAAS;QAEtB,KAAK;OACJ;AAGP","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\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 */\nexport const StatusLight = forwardRef(function 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'] && process.env.NODE_ENV !== 'production') {\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']) && process.env.NODE_ENV !== 'production') {\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"],"names":[],"version":3,"file":"StatusLight.module.js.map"}
@@ -1,196 +0,0 @@
1
- .P3i24W_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
- .P3i24W_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
- .P3i24W_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
- .P3i24W_i18nFontFamily:lang(zh) {
15
- font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
16
- }
17
-
18
- .P3i24W_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
- .P3i24W_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
- .P3i24W_i18nFontFamily:lang(zh-SG), .P3i24W_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
- .P3i24W_i18nFontFamily:lang(ko) {
31
- font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
32
- }
33
-
34
- .P3i24W_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
- .P3i24W_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
- .P3i24W_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
- .P3i24W_spectrum-FocusRing.P3i24W_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
- .P3i24W_spectrum-FocusRing--quiet:after {
63
- border-radius: 0;
64
- }
65
-
66
- .P3i24W_spectrum-FocusRing--quiet.P3i24W_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
- .P3i24W_spectrum-FocusRing, .P3i24W_spectrum-FocusRing-ring, .P3i24W_spectrum-FocusRing--quiet {
73
- --spectrum-high-contrast-focus-ring-color: Highlight;
74
- }
75
-
76
- :is(.P3i24W_spectrum-FocusRing, .P3i24W_spectrum-FocusRing-ring, .P3i24W_spectrum-FocusRing--quiet):after {
77
- forced-color-adjust: none;
78
- }
79
- }
80
-
81
- .P3i24W_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
- .P3i24W_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
- .P3i24W_spectrum-StatusLight--neutral {
105
- font-style: italic;
106
- }
107
-
108
- .P3i24W_spectrum-StatusLight {
109
- color: var(--spectrum-statuslight-text-color, var(--spectrum-alias-text-color));
110
- }
111
-
112
- .P3i24W_spectrum-StatusLight[disabled] {
113
- color: var(--spectrum-statuslight-text-color-disabled, var(--spectrum-alias-text-color-disabled));
114
- }
115
-
116
- .P3i24W_spectrum-StatusLight[disabled]:before {
117
- background-color: var(--spectrum-statuslight-dot-color-disabled, var(--spectrum-global-color-gray-400));
118
- }
119
-
120
- .P3i24W_spectrum-StatusLight.P3i24W_is-disabled {
121
- color: var(--spectrum-statuslight-text-color-disabled, var(--spectrum-alias-text-color-disabled));
122
- }
123
-
124
- .P3i24W_spectrum-StatusLight.P3i24W_is-disabled:before {
125
- background-color: var(--spectrum-statuslight-dot-color-disabled, var(--spectrum-global-color-gray-400));
126
- }
127
-
128
- .P3i24W_spectrum-StatusLight--negative:before {
129
- background-color: var(--spectrum-statuslight-negative-dot-color, var(--spectrum-semantic-negative-color-status));
130
- }
131
-
132
- .P3i24W_spectrum-StatusLight--notice:before {
133
- background-color: var(--spectrum-statuslight-notice-dot-color, var(--spectrum-semantic-notice-color-status));
134
- }
135
-
136
- .P3i24W_spectrum-StatusLight--positive:before {
137
- background-color: var(--spectrum-statuslight-positive-dot-color, var(--spectrum-semantic-positive-color-status));
138
- }
139
-
140
- .P3i24W_spectrum-StatusLight--info:before, .P3i24W_spectrum-StatusLight--active:before {
141
- background-color: var(--spectrum-statuslight-info-dot-color, var(--spectrum-semantic-informative-color-status));
142
- }
143
-
144
- .P3i24W_spectrum-StatusLight--neutral {
145
- color: var(--spectrum-statuslight-neutral-text-color, var(--spectrum-global-color-gray-700));
146
- }
147
-
148
- .P3i24W_spectrum-StatusLight--neutral:before {
149
- background-color: var(--spectrum-gray-visual-color);
150
- }
151
-
152
- .P3i24W_spectrum-StatusLight--celery:before {
153
- background-color: var(--spectrum-celery-visual-color);
154
- }
155
-
156
- .P3i24W_spectrum-StatusLight--yellow:before {
157
- background-color: var(--spectrum-yellow-visual-color);
158
- }
159
-
160
- .P3i24W_spectrum-StatusLight--fuchsia:before {
161
- background-color: var(--spectrum-fuchsia-visual-color);
162
- }
163
-
164
- .P3i24W_spectrum-StatusLight--indigo:before {
165
- background-color: var(--spectrum-indigo-visual-color);
166
- }
167
-
168
- .P3i24W_spectrum-StatusLight--seafoam:before {
169
- background-color: var(--spectrum-seafoam-visual-color);
170
- }
171
-
172
- .P3i24W_spectrum-StatusLight--chartreuse:before {
173
- background-color: var(--spectrum-chartreuse-visual-color);
174
- }
175
-
176
- .P3i24W_spectrum-StatusLight--magenta:before {
177
- background-color: var(--spectrum-magenta-visual-color);
178
- }
179
-
180
- .P3i24W_spectrum-StatusLight--purple:before {
181
- background-color: var(--spectrum-purple-visual-color);
182
- }
183
-
184
- @media (forced-colors: active) {
185
- .P3i24W_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
- .P3i24W_spectrum-StatusLight:before {
193
- border: 1px solid buttontext;
194
- }
195
- }
196
- /*# sourceMappingURL=statuslight.435f06d5.css.map */
@@ -1 +0,0 @@
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":"statuslight.435f06d5.css.map"}
@@ -1,71 +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, "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 = `P3i24W_focus-ring`;
49
- $7e20c9d2bb376434$export$8c4ee2c50c22c514 = `P3i24W_i18nFontFamily`;
50
- $7e20c9d2bb376434$export$d35bc1e505d1ebbf = `P3i24W_is-disabled`;
51
- $7e20c9d2bb376434$export$4109102f950813a6 = `P3i24W_spectrum-FocusRing-ring`;
52
- $7e20c9d2bb376434$export$24c7f46a6e3605dd = `P3i24W_spectrum-FocusRing ${$7e20c9d2bb376434$export$4109102f950813a6}`;
53
- $7e20c9d2bb376434$export$2927016961429360 = `P3i24W_spectrum-FocusRing--quiet`;
54
- $7e20c9d2bb376434$export$11d3697e7e5c1bef = `P3i24W_spectrum-StatusLight`;
55
- $7e20c9d2bb376434$export$b40c603f4b579265 = `P3i24W_spectrum-StatusLight--active`;
56
- $7e20c9d2bb376434$export$e9a22f483095fe3e = `P3i24W_spectrum-StatusLight--celery`;
57
- $7e20c9d2bb376434$export$f05bd1f10c0cc15f = `P3i24W_spectrum-StatusLight--chartreuse`;
58
- $7e20c9d2bb376434$export$cbaba642d0afd312 = `P3i24W_spectrum-StatusLight--fuchsia`;
59
- $7e20c9d2bb376434$export$8b77e0c07c11635a = `P3i24W_spectrum-StatusLight--indigo`;
60
- $7e20c9d2bb376434$export$945a5d9a4e8494e6 = `P3i24W_spectrum-StatusLight--info`;
61
- $7e20c9d2bb376434$export$43990cc5ba9a0059 = `P3i24W_spectrum-StatusLight--magenta`;
62
- $7e20c9d2bb376434$export$1974c2646528dc4f = `P3i24W_spectrum-StatusLight--negative`;
63
- $7e20c9d2bb376434$export$bbf75dd99797a93e = `P3i24W_spectrum-StatusLight--neutral`;
64
- $7e20c9d2bb376434$export$30a5e512ed4618b = `P3i24W_spectrum-StatusLight--notice`;
65
- $7e20c9d2bb376434$export$141dae5af9534f54 = `P3i24W_spectrum-StatusLight--positive`;
66
- $7e20c9d2bb376434$export$975baced4f8182b4 = `P3i24W_spectrum-StatusLight--purple`;
67
- $7e20c9d2bb376434$export$d14bcd2d3ae8238c = `P3i24W_spectrum-StatusLight--seafoam`;
68
- $7e20c9d2bb376434$export$b22c4af54e28c6c = `P3i24W_spectrum-StatusLight--yellow`;
69
-
70
-
71
- //# sourceMappingURL=statuslight_vars_css.main.js.map
@@ -1 +0,0 @@
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,2CAA2C;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"}
@@ -1,73 +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 $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 = `P3i24W_focus-ring`;
50
- $7661ca422872705f$export$8c4ee2c50c22c514 = `P3i24W_i18nFontFamily`;
51
- $7661ca422872705f$export$d35bc1e505d1ebbf = `P3i24W_is-disabled`;
52
- $7661ca422872705f$export$4109102f950813a6 = `P3i24W_spectrum-FocusRing-ring`;
53
- $7661ca422872705f$export$24c7f46a6e3605dd = `P3i24W_spectrum-FocusRing ${$7661ca422872705f$export$4109102f950813a6}`;
54
- $7661ca422872705f$export$2927016961429360 = `P3i24W_spectrum-FocusRing--quiet`;
55
- $7661ca422872705f$export$11d3697e7e5c1bef = `P3i24W_spectrum-StatusLight`;
56
- $7661ca422872705f$export$b40c603f4b579265 = `P3i24W_spectrum-StatusLight--active`;
57
- $7661ca422872705f$export$e9a22f483095fe3e = `P3i24W_spectrum-StatusLight--celery`;
58
- $7661ca422872705f$export$f05bd1f10c0cc15f = `P3i24W_spectrum-StatusLight--chartreuse`;
59
- $7661ca422872705f$export$cbaba642d0afd312 = `P3i24W_spectrum-StatusLight--fuchsia`;
60
- $7661ca422872705f$export$8b77e0c07c11635a = `P3i24W_spectrum-StatusLight--indigo`;
61
- $7661ca422872705f$export$945a5d9a4e8494e6 = `P3i24W_spectrum-StatusLight--info`;
62
- $7661ca422872705f$export$43990cc5ba9a0059 = `P3i24W_spectrum-StatusLight--magenta`;
63
- $7661ca422872705f$export$1974c2646528dc4f = `P3i24W_spectrum-StatusLight--negative`;
64
- $7661ca422872705f$export$bbf75dd99797a93e = `P3i24W_spectrum-StatusLight--neutral`;
65
- $7661ca422872705f$export$30a5e512ed4618b = `P3i24W_spectrum-StatusLight--notice`;
66
- $7661ca422872705f$export$141dae5af9534f54 = `P3i24W_spectrum-StatusLight--positive`;
67
- $7661ca422872705f$export$975baced4f8182b4 = `P3i24W_spectrum-StatusLight--purple`;
68
- $7661ca422872705f$export$d14bcd2d3ae8238c = `P3i24W_spectrum-StatusLight--seafoam`;
69
- $7661ca422872705f$export$b22c4af54e28c6c = `P3i24W_spectrum-StatusLight--yellow`;
70
-
71
-
72
- export {$7661ca422872705f$exports as default};
73
- //# sourceMappingURL=statuslight_vars_css.module.js.map
@@ -1,73 +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 $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 = `P3i24W_focus-ring`;
50
- $7661ca422872705f$export$8c4ee2c50c22c514 = `P3i24W_i18nFontFamily`;
51
- $7661ca422872705f$export$d35bc1e505d1ebbf = `P3i24W_is-disabled`;
52
- $7661ca422872705f$export$4109102f950813a6 = `P3i24W_spectrum-FocusRing-ring`;
53
- $7661ca422872705f$export$24c7f46a6e3605dd = `P3i24W_spectrum-FocusRing ${$7661ca422872705f$export$4109102f950813a6}`;
54
- $7661ca422872705f$export$2927016961429360 = `P3i24W_spectrum-FocusRing--quiet`;
55
- $7661ca422872705f$export$11d3697e7e5c1bef = `P3i24W_spectrum-StatusLight`;
56
- $7661ca422872705f$export$b40c603f4b579265 = `P3i24W_spectrum-StatusLight--active`;
57
- $7661ca422872705f$export$e9a22f483095fe3e = `P3i24W_spectrum-StatusLight--celery`;
58
- $7661ca422872705f$export$f05bd1f10c0cc15f = `P3i24W_spectrum-StatusLight--chartreuse`;
59
- $7661ca422872705f$export$cbaba642d0afd312 = `P3i24W_spectrum-StatusLight--fuchsia`;
60
- $7661ca422872705f$export$8b77e0c07c11635a = `P3i24W_spectrum-StatusLight--indigo`;
61
- $7661ca422872705f$export$945a5d9a4e8494e6 = `P3i24W_spectrum-StatusLight--info`;
62
- $7661ca422872705f$export$43990cc5ba9a0059 = `P3i24W_spectrum-StatusLight--magenta`;
63
- $7661ca422872705f$export$1974c2646528dc4f = `P3i24W_spectrum-StatusLight--negative`;
64
- $7661ca422872705f$export$bbf75dd99797a93e = `P3i24W_spectrum-StatusLight--neutral`;
65
- $7661ca422872705f$export$30a5e512ed4618b = `P3i24W_spectrum-StatusLight--notice`;
66
- $7661ca422872705f$export$141dae5af9534f54 = `P3i24W_spectrum-StatusLight--positive`;
67
- $7661ca422872705f$export$975baced4f8182b4 = `P3i24W_spectrum-StatusLight--purple`;
68
- $7661ca422872705f$export$d14bcd2d3ae8238c = `P3i24W_spectrum-StatusLight--seafoam`;
69
- $7661ca422872705f$export$b22c4af54e28c6c = `P3i24W_spectrum-StatusLight--yellow`;
70
-
71
-
72
- export {$7661ca422872705f$exports as default};
73
- //# sourceMappingURL=statuslight_vars_css.module.js.map
@@ -1 +0,0 @@
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,2CAA2C;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"}
package/dist/types.d.ts DELETED
@@ -1,11 +0,0 @@
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 const StatusLight: React.ForwardRefExoticComponent<SpectrumStatusLightProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
9
- export type { SpectrumStatusLightProps } from '@react-types/statuslight';
10
-
11
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"mappings":";;;AAoBA;;;GAGG;AACH,OAAO,MAAM,yHAqCX,CAAC;AC9CH,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"}
@@ -1,62 +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, 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
- /**
22
- * Status lights are used to color code categories and labels commonly found in data visualization.
23
- * When status lights have a semantic meaning, they should use semantic variant colors.
24
- */
25
- export const StatusLight = forwardRef(function StatusLight(props: SpectrumStatusLightProps, ref: DOMRef<HTMLDivElement>) {
26
- let {
27
- variant,
28
- children,
29
- isDisabled,
30
- role,
31
- ...otherProps
32
- } = useProviderProps(props);
33
- let domRef = useDOMRef(ref);
34
- let {styleProps} = useStyleProps(otherProps);
35
-
36
- if (!children && !props['aria-label'] && process.env.NODE_ENV !== 'production') {
37
- console.warn('If no children are provided, an aria-label must be specified');
38
- }
39
-
40
- if (!role && (props['aria-label'] || props['aria-labelledby']) && process.env.NODE_ENV !== 'production') {
41
- console.warn('A labelled StatusLight must have a role.');
42
- }
43
-
44
- return (
45
- <div
46
- {...filterDOMProps(otherProps, {labelable: !!role})}
47
- {...styleProps}
48
- role={role}
49
- className={classNames(
50
- styles,
51
- 'spectrum-StatusLight',
52
- `spectrum-StatusLight--${variant}`,
53
- {
54
- 'is-disabled': isDisabled
55
- },
56
- styleProps.className
57
- )}
58
- ref={domRef}>
59
- {children}
60
- </div>
61
- );
62
- });