@react-spectrum/badge 3.1.33 → 3.2.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 {Badge as $c2a9f60d7159b63f$export$37acb3580601e69a} from "./Badge.mjs";
1
+ import {Badge as $023d34f98ce5fa6b$re_export$Badge} from "@adobe/react-spectrum/Badge";
2
2
 
3
3
  /*
4
4
  * Copyright 2022 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {Badge as $c2a9f60d7159b63f$export$37acb3580601e69a} from "./Badge.mjs";
14
14
 
15
15
 
16
16
 
17
- export {$c2a9f60d7159b63f$export$37acb3580601e69a as Badge};
17
+ export {$023d34f98ce5fa6b$re_export$Badge as Badge};
18
18
  //# sourceMappingURL=module.js.map
package/dist/main.js CHANGED
@@ -1,11 +1,11 @@
1
- var $f243611f87a6fe61$exports = require("./Badge.main.js");
1
+ var $jcnDS$adobereactspectrumBadge = require("@adobe/react-spectrum/Badge");
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, "Badge", () => $f243611f87a6fe61$exports.Badge);
8
+ $parcel$export(module.exports, "Badge", function () { return $jcnDS$adobereactspectrumBadge.Badge; });
9
9
  /*
10
10
  * Copyright 2022 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/badge/src/index.ts"],"sourcesContent":["/*\n * Copyright 2022 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 {Badge} from './Badge';\nexport type {SpectrumBadgeProps} from '@react-types/badge';\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/badge/src/index.ts"],"sourcesContent":["/*\n * Copyright 2022 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 {Badge} from '@adobe/react-spectrum/Badge';\n\nexport type {SpectrumBadgeProps} from '@adobe/react-spectrum/Badge';\n"],"names":[],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,4 +1,4 @@
1
- import {Badge as $c2a9f60d7159b63f$export$37acb3580601e69a} from "./Badge.module.js";
1
+ import {Badge as $023d34f98ce5fa6b$re_export$Badge} from "@adobe/react-spectrum/Badge";
2
2
 
3
3
  /*
4
4
  * Copyright 2022 Adobe. All rights reserved.
@@ -14,5 +14,5 @@ import {Badge as $c2a9f60d7159b63f$export$37acb3580601e69a} from "./Badge.module
14
14
 
15
15
 
16
16
 
17
- export {$c2a9f60d7159b63f$export$37acb3580601e69a as Badge};
17
+ export {$023d34f98ce5fa6b$re_export$Badge as Badge};
18
18
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/badge/src/index.ts"],"sourcesContent":["/*\n * Copyright 2022 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 {Badge} from './Badge';\nexport type {SpectrumBadgeProps} from '@react-types/badge';\n"],"names":[],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/badge/src/index.ts"],"sourcesContent":["/*\n * Copyright 2022 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 {Badge} from '@adobe/react-spectrum/Badge';\n\nexport type {SpectrumBadgeProps} from '@adobe/react-spectrum/Badge';\n"],"names":[],"version":3,"file":"module.js.map"}
@@ -0,0 +1,2 @@
1
+ export { Badge } from '@adobe/react-spectrum/Badge';
2
+ export type { SpectrumBadgeProps } from '@adobe/react-spectrum/Badge';
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@react-spectrum/badge",
3
- "version": "3.1.33",
3
+ "version": "3.2.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/module.js",
8
8
  "exports": {
9
- "source": "./src/index.ts",
10
- "types": [
11
- "./dist/types.d.ts",
12
- "./src/index.ts"
13
- ],
14
- "import": "./dist/import.mjs",
15
- "require": "./dist/main.js"
9
+ ".": {
10
+ "source": "./src/index.ts",
11
+ "types": "./dist/types/src/index.d.ts",
12
+ "import": "./dist/import.mjs",
13
+ "require": "./dist/main.js"
14
+ },
15
+ "./package.json": "./package.json"
16
16
  },
17
- "types": "dist/types.d.ts",
17
+ "types": "dist/types/src/index.d.ts",
18
18
  "source": "src/index.ts",
19
19
  "files": [
20
20
  "dist",
@@ -24,39 +24,22 @@
24
24
  "*.css"
25
25
  ],
26
26
  "targets": {
27
- "main": {
28
- "includeNodeModules": [
29
- "@adobe/spectrum-css-temp"
30
- ]
31
- },
32
- "module": {
33
- "includeNodeModules": [
34
- "@adobe/spectrum-css-temp"
35
- ]
36
- }
27
+ "types": false
37
28
  },
38
29
  "repository": {
39
30
  "type": "git",
40
31
  "url": "https://github.com/adobe/react-spectrum"
41
32
  },
42
33
  "dependencies": {
43
- "@react-aria/utils": "^3.33.1",
44
- "@react-spectrum/text": "^3.5.25",
45
- "@react-spectrum/utils": "^3.12.12",
46
- "@react-types/badge": "^3.1.23",
47
- "@react-types/shared": "^3.33.1",
34
+ "@adobe/react-spectrum": "3.47.0",
48
35
  "@swc/helpers": "^0.5.0"
49
36
  },
50
- "devDependencies": {
51
- "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
52
- },
53
37
  "peerDependencies": {
54
- "@react-spectrum/provider": "^3.0.0",
55
38
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
56
39
  "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
57
40
  },
58
41
  "publishConfig": {
59
42
  "access": "public"
60
43
  },
61
- "gitHead": "8df187370053aa35f553cb388ad670f65e1ab371"
44
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
62
45
  }
package/src/index.ts CHANGED
@@ -12,5 +12,6 @@
12
12
 
13
13
  /// <reference types="css-module-types" />
14
14
 
15
- export {Badge} from './Badge';
16
- export type {SpectrumBadgeProps} from '@react-types/badge';
15
+ export {Badge} from '@adobe/react-spectrum/Badge';
16
+
17
+ export type {SpectrumBadgeProps} from '@adobe/react-spectrum/Badge';
@@ -1,62 +0,0 @@
1
- require("./badge.814a37ed.css");
2
- var $0f362c72c73357fc$exports = require("./badge_vars_css.main.js");
3
- var $3aISS$reactspectrumutils = require("@react-spectrum/utils");
4
- var $3aISS$reactariautils = require("@react-aria/utils");
5
- var $3aISS$react = require("react");
6
- var $3aISS$reactspectrumtext = require("@react-spectrum/text");
7
- var $3aISS$reactspectrumprovider = require("@react-spectrum/provider");
8
-
9
-
10
- function $parcel$interopDefault(a) {
11
- return a && a.__esModule ? a.default : a;
12
- }
13
-
14
- function $parcel$export(e, n, v, s) {
15
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
16
- }
17
-
18
- $parcel$export(module.exports, "Badge", () => $f243611f87a6fe61$export$37acb3580601e69a);
19
- /*
20
- * Copyright 2022 Adobe. All rights reserved.
21
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
22
- * you may not use this file except in compliance with the License. You may obtain a copy
23
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
24
- *
25
- * Unless required by applicable law or agreed to in writing, software distributed under
26
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
27
- * OF ANY KIND, either express or implied. See the License for the specific language
28
- * governing permissions and limitations under the License.
29
- */
30
-
31
-
32
-
33
-
34
-
35
- const $f243611f87a6fe61$export$37acb3580601e69a = /*#__PURE__*/ (0, $3aISS$react.forwardRef)(function Badge(props, ref) {
36
- let { children: children, variant: variant, ...otherProps } = (0, $3aISS$reactspectrumprovider.useProviderProps)(props);
37
- let domRef = (0, $3aISS$reactspectrumutils.useDOMRef)(ref);
38
- let { styleProps: styleProps } = (0, $3aISS$reactspectrumutils.useStyleProps)(otherProps);
39
- let isTextOnly = (0, ($parcel$interopDefault($3aISS$react))).Children.toArray(props.children).every((c)=>!/*#__PURE__*/ (0, ($parcel$interopDefault($3aISS$react))).isValidElement(c));
40
- return /*#__PURE__*/ (0, ($parcel$interopDefault($3aISS$react))).createElement("span", {
41
- ...(0, $3aISS$reactariautils.filterDOMProps)(otherProps),
42
- ...styleProps,
43
- role: "presentation",
44
- className: (0, $3aISS$reactspectrumutils.classNames)((0, ($parcel$interopDefault($0f362c72c73357fc$exports))), 'spectrum-Badge', {
45
- [`spectrum-Badge--${variant}`]: variant
46
- }, styleProps.className),
47
- ref: domRef
48
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($3aISS$react))).createElement((0, $3aISS$reactspectrumutils.ClearSlots), null, /*#__PURE__*/ (0, ($parcel$interopDefault($3aISS$react))).createElement((0, $3aISS$reactspectrumutils.SlotProvider), {
49
- slots: {
50
- icon: {
51
- size: 'S',
52
- UNSAFE_className: (0, $3aISS$reactspectrumutils.classNames)((0, ($parcel$interopDefault($0f362c72c73357fc$exports))), 'spectrum-Badge-icon')
53
- },
54
- text: {
55
- UNSAFE_className: (0, $3aISS$reactspectrumutils.classNames)((0, ($parcel$interopDefault($0f362c72c73357fc$exports))), 'spectrum-Badge-label')
56
- }
57
- }
58
- }, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ (0, ($parcel$interopDefault($3aISS$react))).createElement((0, $3aISS$reactspectrumtext.Text), null, children) : children)));
59
- });
60
-
61
-
62
- //# sourceMappingURL=Badge.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAeM,MAAM,0DAAQ,CAAA,GAAA,uBAAS,EAAE,SAAS,MAAM,KAAyB,EAAE,GAA2B;IACnG,IAAI,YACF,QAAQ,WACR,OAAO,EACP,GAAG,YACJ,GAAG,CAAA,GAAA,6CAAe,EAAE;IACrB,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,aAAa,CAAA,GAAA,sCAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,KAAK,CAAC,CAAA,IAAK,eAAC,CAAA,GAAA,sCAAI,EAAE,cAAc,CAAC;IAEzF,qBACE,0DAAC;QACE,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACd,MAAK;QACL,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,kBACA;YACE,CAAC,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE;QAClC,GACA,WAAW,SAAS;QAEtB,KAAK;qBACL,0DAAC,CAAA,GAAA,oCAAS,uBACR,0DAAC,CAAA,GAAA,sCAAW;QACV,OAAO;YACL,MAAM;gBACJ,MAAM;gBACN,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;YACvC;YACA,MAAM;gBACJ,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;YACvC;QACF;OAGE,OAAO,aAAa,YAAY,2BAC5B,0DAAC,CAAA,GAAA,6BAAG,SAAG,YACP;AAMhB","sources":["packages/@react-spectrum/badge/src/Badge.tsx"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, ClearSlots, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumBadgeProps} from '@react-types/badge';\nimport styles from '@adobe/spectrum-css-temp/components/badge/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {useProviderProps} from '@react-spectrum/provider';\n\n\n/**\n * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.\n */\nexport const Badge = forwardRef(function Badge(props: SpectrumBadgeProps, ref: DOMRef<HTMLDivElement>) {\n let {\n children,\n variant,\n ...otherProps\n } = useProviderProps(props);\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n let isTextOnly = React.Children.toArray(props.children).every(c => !React.isValidElement(c));\n\n return (\n <span\n {...filterDOMProps(otherProps)}\n {...styleProps}\n role=\"presentation\"\n className={classNames(\n styles,\n 'spectrum-Badge',\n {\n [`spectrum-Badge--${variant}`]: variant\n },\n styleProps.className\n )}\n ref={domRef}>\n <ClearSlots>\n <SlotProvider\n slots={{\n icon: {\n size: 'S',\n UNSAFE_className: classNames(styles, 'spectrum-Badge-icon')\n },\n text: {\n UNSAFE_className: classNames(styles, 'spectrum-Badge-label')\n }\n }}>\n\n {\n typeof children === 'string' || isTextOnly\n ? <Text>{children}</Text>\n : children\n }\n </SlotProvider>\n </ClearSlots>\n </span>\n );\n});\n"],"names":[],"version":3,"file":"Badge.main.js.map"}
package/dist/Badge.mjs DELETED
@@ -1,57 +0,0 @@
1
- import "./badge.814a37ed.css";
2
- import $jtG7a$badge_vars_cssmodulejs from "./badge_vars_css.mjs";
3
- import {useDOMRef as $jtG7a$useDOMRef, useStyleProps as $jtG7a$useStyleProps, classNames as $jtG7a$classNames, ClearSlots as $jtG7a$ClearSlots, SlotProvider as $jtG7a$SlotProvider} from "@react-spectrum/utils";
4
- import {filterDOMProps as $jtG7a$filterDOMProps} from "@react-aria/utils";
5
- import $jtG7a$react, {forwardRef as $jtG7a$forwardRef} from "react";
6
- import {Text as $jtG7a$Text} from "@react-spectrum/text";
7
- import {useProviderProps as $jtG7a$useProviderProps} from "@react-spectrum/provider";
8
-
9
-
10
- function $parcel$interopDefault(a) {
11
- return a && a.__esModule ? a.default : a;
12
- }
13
- /*
14
- * Copyright 2022 Adobe. All rights reserved.
15
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
16
- * you may not use this file except in compliance with the License. You may obtain a copy
17
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software distributed under
20
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
21
- * OF ANY KIND, either express or implied. See the License for the specific language
22
- * governing permissions and limitations under the License.
23
- */
24
-
25
-
26
-
27
-
28
-
29
- const $c2a9f60d7159b63f$export$37acb3580601e69a = /*#__PURE__*/ (0, $jtG7a$forwardRef)(function Badge(props, ref) {
30
- let { children: children, variant: variant, ...otherProps } = (0, $jtG7a$useProviderProps)(props);
31
- let domRef = (0, $jtG7a$useDOMRef)(ref);
32
- let { styleProps: styleProps } = (0, $jtG7a$useStyleProps)(otherProps);
33
- let isTextOnly = (0, $jtG7a$react).Children.toArray(props.children).every((c)=>!/*#__PURE__*/ (0, $jtG7a$react).isValidElement(c));
34
- return /*#__PURE__*/ (0, $jtG7a$react).createElement("span", {
35
- ...(0, $jtG7a$filterDOMProps)(otherProps),
36
- ...styleProps,
37
- role: "presentation",
38
- className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge', {
39
- [`spectrum-Badge--${variant}`]: variant
40
- }, styleProps.className),
41
- ref: domRef
42
- }, /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$ClearSlots), null, /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$SlotProvider), {
43
- slots: {
44
- icon: {
45
- size: 'S',
46
- UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge-icon')
47
- },
48
- text: {
49
- UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge-label')
50
- }
51
- }
52
- }, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$Text), null, children) : children)));
53
- });
54
-
55
-
56
- export {$c2a9f60d7159b63f$export$37acb3580601e69a as Badge};
57
- //# sourceMappingURL=Badge.module.js.map
@@ -1,57 +0,0 @@
1
- import "./badge.814a37ed.css";
2
- import $jtG7a$badge_vars_cssmodulejs from "./badge_vars_css.module.js";
3
- import {useDOMRef as $jtG7a$useDOMRef, useStyleProps as $jtG7a$useStyleProps, classNames as $jtG7a$classNames, ClearSlots as $jtG7a$ClearSlots, SlotProvider as $jtG7a$SlotProvider} from "@react-spectrum/utils";
4
- import {filterDOMProps as $jtG7a$filterDOMProps} from "@react-aria/utils";
5
- import $jtG7a$react, {forwardRef as $jtG7a$forwardRef} from "react";
6
- import {Text as $jtG7a$Text} from "@react-spectrum/text";
7
- import {useProviderProps as $jtG7a$useProviderProps} from "@react-spectrum/provider";
8
-
9
-
10
- function $parcel$interopDefault(a) {
11
- return a && a.__esModule ? a.default : a;
12
- }
13
- /*
14
- * Copyright 2022 Adobe. All rights reserved.
15
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
16
- * you may not use this file except in compliance with the License. You may obtain a copy
17
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
18
- *
19
- * Unless required by applicable law or agreed to in writing, software distributed under
20
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
21
- * OF ANY KIND, either express or implied. See the License for the specific language
22
- * governing permissions and limitations under the License.
23
- */
24
-
25
-
26
-
27
-
28
-
29
- const $c2a9f60d7159b63f$export$37acb3580601e69a = /*#__PURE__*/ (0, $jtG7a$forwardRef)(function Badge(props, ref) {
30
- let { children: children, variant: variant, ...otherProps } = (0, $jtG7a$useProviderProps)(props);
31
- let domRef = (0, $jtG7a$useDOMRef)(ref);
32
- let { styleProps: styleProps } = (0, $jtG7a$useStyleProps)(otherProps);
33
- let isTextOnly = (0, $jtG7a$react).Children.toArray(props.children).every((c)=>!/*#__PURE__*/ (0, $jtG7a$react).isValidElement(c));
34
- return /*#__PURE__*/ (0, $jtG7a$react).createElement("span", {
35
- ...(0, $jtG7a$filterDOMProps)(otherProps),
36
- ...styleProps,
37
- role: "presentation",
38
- className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge', {
39
- [`spectrum-Badge--${variant}`]: variant
40
- }, styleProps.className),
41
- ref: domRef
42
- }, /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$ClearSlots), null, /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$SlotProvider), {
43
- slots: {
44
- icon: {
45
- size: 'S',
46
- UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge-icon')
47
- },
48
- text: {
49
- UNSAFE_className: (0, $jtG7a$classNames)((0, ($parcel$interopDefault($jtG7a$badge_vars_cssmodulejs))), 'spectrum-Badge-label')
50
- }
51
- }
52
- }, typeof children === 'string' || isTextOnly ? /*#__PURE__*/ (0, $jtG7a$react).createElement((0, $jtG7a$Text), null, children) : children)));
53
- });
54
-
55
-
56
- export {$c2a9f60d7159b63f$export$37acb3580601e69a as Badge};
57
- //# sourceMappingURL=Badge.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAeM,MAAM,0DAAQ,CAAA,GAAA,iBAAS,EAAE,SAAS,MAAM,KAAyB,EAAE,GAA2B;IACnG,IAAI,YACF,QAAQ,WACR,OAAO,EACP,GAAG,YACJ,GAAG,CAAA,GAAA,uBAAe,EAAE;IACrB,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,aAAa,CAAA,GAAA,YAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,KAAK,CAAC,CAAA,IAAK,eAAC,CAAA,GAAA,YAAI,EAAE,cAAc,CAAC;IAEzF,qBACE,gCAAC;QACE,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACd,MAAK;QACL,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,uDAAK,GACL,kBACA;YACE,CAAC,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE;QAClC,GACA,WAAW,SAAS;QAEtB,KAAK;qBACL,gCAAC,CAAA,GAAA,iBAAS,uBACR,gCAAC,CAAA,GAAA,mBAAW;QACV,OAAO;YACL,MAAM;gBACJ,MAAM;gBACN,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,uDAAK,GAAG;YACvC;YACA,MAAM;gBACJ,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,uDAAK,GAAG;YACvC;QACF;OAGE,OAAO,aAAa,YAAY,2BAC5B,gCAAC,CAAA,GAAA,WAAG,SAAG,YACP;AAMhB","sources":["packages/@react-spectrum/badge/src/Badge.tsx"],"sourcesContent":["/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, ClearSlots, SlotProvider, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumBadgeProps} from '@react-types/badge';\nimport styles from '@adobe/spectrum-css-temp/components/badge/vars.css';\nimport {Text} from '@react-spectrum/text';\nimport {useProviderProps} from '@react-spectrum/provider';\n\n\n/**\n * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.\n */\nexport const Badge = forwardRef(function Badge(props: SpectrumBadgeProps, ref: DOMRef<HTMLDivElement>) {\n let {\n children,\n variant,\n ...otherProps\n } = useProviderProps(props);\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n let isTextOnly = React.Children.toArray(props.children).every(c => !React.isValidElement(c));\n\n return (\n <span\n {...filterDOMProps(otherProps)}\n {...styleProps}\n role=\"presentation\"\n className={classNames(\n styles,\n 'spectrum-Badge',\n {\n [`spectrum-Badge--${variant}`]: variant\n },\n styleProps.className\n )}\n ref={domRef}>\n <ClearSlots>\n <SlotProvider\n slots={{\n icon: {\n size: 'S',\n UNSAFE_className: classNames(styles, 'spectrum-Badge-icon')\n },\n text: {\n UNSAFE_className: classNames(styles, 'spectrum-Badge-label')\n }\n }}>\n\n {\n typeof children === 'string' || isTextOnly\n ? <Text>{children}</Text>\n : children\n }\n </SlotProvider>\n </ClearSlots>\n </span>\n );\n});\n"],"names":[],"version":3,"file":"Badge.module.js.map"}
@@ -1,182 +0,0 @@
1
- .ACj6ra_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
- .ACj6ra_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
- .ACj6ra_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
- .ACj6ra_i18nFontFamily:lang(zh) {
15
- font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
16
- }
17
-
18
- .ACj6ra_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
- .ACj6ra_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
- .ACj6ra_i18nFontFamily:lang(zh-SG), .ACj6ra_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
- .ACj6ra_i18nFontFamily:lang(ko) {
31
- font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
32
- }
33
-
34
- .ACj6ra_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
- .ACj6ra_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
- .ACj6ra_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
- .ACj6ra_spectrum-FocusRing.ACj6ra_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
- .ACj6ra_spectrum-FocusRing--quiet:after {
63
- border-radius: 0;
64
- }
65
-
66
- .ACj6ra_spectrum-FocusRing--quiet.ACj6ra_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
- .ACj6ra_spectrum-FocusRing, .ACj6ra_spectrum-FocusRing-ring, .ACj6ra_spectrum-FocusRing--quiet {
73
- --spectrum-high-contrast-focus-ring-color: Highlight;
74
- }
75
-
76
- :is(.ACj6ra_spectrum-FocusRing, .ACj6ra_spectrum-FocusRing-ring, .ACj6ra_spectrum-FocusRing--quiet):after {
77
- forced-color-adjust: none;
78
- }
79
- }
80
-
81
- .ACj6ra_spectrum-Badge {
82
- width: fit-content;
83
- padding: var(--spectrum-global-dimension-size-50) 0;
84
- border-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
85
- font-size: var(--spectrum-global-dimension-size-150);
86
- line-height: var(--spectrum-global-font-line-height-medium, 1.5);
87
- cursor: default;
88
- -webkit-font-smoothing: subpixel-antialiased;
89
- -moz-osx-font-smoothing: auto;
90
- font-smoothing: subpixel-antialiased;
91
- display: inline-flex;
92
- position: relative;
93
- }
94
-
95
- .ACj6ra_spectrum-Badge .ACj6ra_spectrum-Badge-label {
96
- order: 1;
97
- padding-inline-end: var(--spectrum-global-dimension-size-115);
98
- }
99
-
100
- .ACj6ra_spectrum-Badge .ACj6ra_spectrum-Badge-icon {
101
- flex-shrink: 0;
102
- order: 0;
103
- padding-inline-start: var(--spectrum-global-dimension-size-115);
104
- }
105
-
106
- .ACj6ra_spectrum-Badge .ACj6ra_spectrum-Badge-icon + .ACj6ra_spectrum-Badge-label {
107
- padding-inline-start: var(--spectrum-global-dimension-size-100);
108
- }
109
-
110
- .ACj6ra_spectrum-Badge .ACj6ra_spectrum-Badge-label:not([hidden]) + .ACj6ra_spectrum-Badge-icon {
111
- padding-inline-end: var(--spectrum-global-dimension-size-100);
112
- }
113
-
114
- .ACj6ra_spectrum-Badge .ACj6ra_spectrum-Badge-label:only-child {
115
- padding-inline-start: var(--spectrum-global-dimension-size-115);
116
- }
117
-
118
- .ACj6ra_spectrum-Badge .ACj6ra_spectrum-Badge-icon:only-child {
119
- padding-inline-start: var(--spectrum-global-dimension-size-50);
120
- padding-inline-end: var(--spectrum-global-dimension-size-50);
121
- }
122
-
123
- .ACj6ra_spectrum-Badge--large {
124
- font-size: var(--spectrum-global-dimension-size-175);
125
- padding: var(--spectrum-global-dimension-size-100) var(--spectrum-global-dimension-size-150);
126
- }
127
-
128
- .ACj6ra_spectrum-Badge--small {
129
- font-size: var(--spectrum-global-dimension-font-size-50);
130
- padding: var(--spectrum-global-dimension-size-40) var(--spectrum-global-dimension-size-85);
131
- }
132
-
133
- .ACj6ra_spectrum-Badge {
134
- color: var(--spectrum-label-colored-text-color, var(--spectrum-global-color-static-white));
135
- }
136
-
137
- .ACj6ra_spectrum-Badge--neutral {
138
- background-color: var(--spectrum-semantic-neutral-color-background, var(--spectrum-global-color-static-gray-700));
139
- }
140
-
141
- .ACj6ra_spectrum-Badge--negative {
142
- background-color: var(--spectrum-semantic-negative-color-background, var(--spectrum-global-color-static-red-700));
143
- }
144
-
145
- .ACj6ra_spectrum-Badge--yellow {
146
- color: var(--spectrum-global-color-static-black, #000);
147
- background-color: var(--spectrum-yellow-background-color-default);
148
- }
149
-
150
- .ACj6ra_spectrum-Badge--seafoam {
151
- color: var(--spectrum-gray-50);
152
- background-color: var(--spectrum-seafoam-background-color-default);
153
- }
154
-
155
- .ACj6ra_spectrum-Badge--positive {
156
- background-color: var(--spectrum-semantic-positive-color-background, var(--spectrum-global-color-static-green-700));
157
- }
158
-
159
- .ACj6ra_spectrum-Badge--info {
160
- background-color: var(--spectrum-semantic-informative-color-background, var(--spectrum-global-color-static-blue-700));
161
- }
162
-
163
- .ACj6ra_spectrum-Badge--fuchsia {
164
- color: var(--spectrum-gray-50);
165
- background-color: var(--spectrum-fuchsia-background-color-default);
166
- }
167
-
168
- .ACj6ra_spectrum-Badge--indigo {
169
- color: var(--spectrum-gray-50);
170
- background-color: var(--spectrum-indigo-background-color-default);
171
- }
172
-
173
- .ACj6ra_spectrum-Badge--magenta {
174
- color: var(--spectrum-gray-50);
175
- background-color: var(--spectrum-magenta-background-color-default);
176
- }
177
-
178
- .ACj6ra_spectrum-Badge--purple {
179
- color: var(--spectrum-gray-50);
180
- background-color: var(--spectrum-purple-background-color-default);
181
- }
182
- /*# sourceMappingURL=badge.814a37ed.css.map */
@@ -1 +0,0 @@
1
- {"mappings":"AA4DA;;;;;AAIE;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAQA;;;;AAIA;;;;AAKF;;;;;;;;AAOE;;;;;;;;;;;AAqBE;;;;;AAQF;;;;AAKE;;;;;AAOJ;EACE;;;;EAIE;;;;;AAMJ;;;;;;;;;;;;;;AAoBE;;;;;AAKA;;;;;;AAMA;;;;AAIA;;;;AAKA;;;;AAKA;;;;;AAMF;;;;;AAKA;;;;;AAiBA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;AAKA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;AAKA;;;;;AAKA","sources":["packages/@adobe/spectrum-css-temp/components/badge/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":"badge.814a37ed.css.map"}
@@ -1,68 +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", () => $0f362c72c73357fc$export$f39a09f249340e2a, (v) => $0f362c72c73357fc$export$f39a09f249340e2a = v);
7
- $parcel$export(module.exports, "i18nFontFamily", () => $0f362c72c73357fc$export$8c4ee2c50c22c514, (v) => $0f362c72c73357fc$export$8c4ee2c50c22c514 = v);
8
- $parcel$export(module.exports, "spectrum-Badge", () => $0f362c72c73357fc$export$acb311e43ff4d1, (v) => $0f362c72c73357fc$export$acb311e43ff4d1 = v);
9
- $parcel$export(module.exports, "spectrum-Badge--fuchsia", () => $0f362c72c73357fc$export$17d8c34537918c7, (v) => $0f362c72c73357fc$export$17d8c34537918c7 = v);
10
- $parcel$export(module.exports, "spectrum-Badge--indigo", () => $0f362c72c73357fc$export$cf21c81baa11bb0f, (v) => $0f362c72c73357fc$export$cf21c81baa11bb0f = v);
11
- $parcel$export(module.exports, "spectrum-Badge--info", () => $0f362c72c73357fc$export$a276b7cecb1e7608, (v) => $0f362c72c73357fc$export$a276b7cecb1e7608 = v);
12
- $parcel$export(module.exports, "spectrum-Badge--large", () => $0f362c72c73357fc$export$8e48598848736b6e, (v) => $0f362c72c73357fc$export$8e48598848736b6e = v);
13
- $parcel$export(module.exports, "spectrum-Badge--magenta", () => $0f362c72c73357fc$export$a6258e5c939933e, (v) => $0f362c72c73357fc$export$a6258e5c939933e = v);
14
- $parcel$export(module.exports, "spectrum-Badge--negative", () => $0f362c72c73357fc$export$250de4fc6219f4ba, (v) => $0f362c72c73357fc$export$250de4fc6219f4ba = v);
15
- $parcel$export(module.exports, "spectrum-Badge--neutral", () => $0f362c72c73357fc$export$ce0abe6a13066aee, (v) => $0f362c72c73357fc$export$ce0abe6a13066aee = v);
16
- $parcel$export(module.exports, "spectrum-Badge--positive", () => $0f362c72c73357fc$export$9cb54bc972cacc06, (v) => $0f362c72c73357fc$export$9cb54bc972cacc06 = v);
17
- $parcel$export(module.exports, "spectrum-Badge--purple", () => $0f362c72c73357fc$export$67ff21277f017a3f, (v) => $0f362c72c73357fc$export$67ff21277f017a3f = v);
18
- $parcel$export(module.exports, "spectrum-Badge--seafoam", () => $0f362c72c73357fc$export$b9072ec5c3c3196e, (v) => $0f362c72c73357fc$export$b9072ec5c3c3196e = v);
19
- $parcel$export(module.exports, "spectrum-Badge--small", () => $0f362c72c73357fc$export$e76d1f315203cda4, (v) => $0f362c72c73357fc$export$e76d1f315203cda4 = v);
20
- $parcel$export(module.exports, "spectrum-Badge--yellow", () => $0f362c72c73357fc$export$f39824621eafe7d1, (v) => $0f362c72c73357fc$export$f39824621eafe7d1 = v);
21
- $parcel$export(module.exports, "spectrum-Badge-icon", () => $0f362c72c73357fc$export$70ebbcb6132f4aa8, (v) => $0f362c72c73357fc$export$70ebbcb6132f4aa8 = v);
22
- $parcel$export(module.exports, "spectrum-Badge-label", () => $0f362c72c73357fc$export$87cc42d7dd800a50, (v) => $0f362c72c73357fc$export$87cc42d7dd800a50 = v);
23
- $parcel$export(module.exports, "spectrum-FocusRing-ring", () => $0f362c72c73357fc$export$4109102f950813a6, (v) => $0f362c72c73357fc$export$4109102f950813a6 = v);
24
- $parcel$export(module.exports, "spectrum-FocusRing", () => $0f362c72c73357fc$export$24c7f46a6e3605dd, (v) => $0f362c72c73357fc$export$24c7f46a6e3605dd = v);
25
- $parcel$export(module.exports, "spectrum-FocusRing--quiet", () => $0f362c72c73357fc$export$2927016961429360, (v) => $0f362c72c73357fc$export$2927016961429360 = v);
26
- var $0f362c72c73357fc$export$f39a09f249340e2a;
27
- var $0f362c72c73357fc$export$8c4ee2c50c22c514;
28
- var $0f362c72c73357fc$export$acb311e43ff4d1;
29
- var $0f362c72c73357fc$export$17d8c34537918c7;
30
- var $0f362c72c73357fc$export$cf21c81baa11bb0f;
31
- var $0f362c72c73357fc$export$a276b7cecb1e7608;
32
- var $0f362c72c73357fc$export$8e48598848736b6e;
33
- var $0f362c72c73357fc$export$a6258e5c939933e;
34
- var $0f362c72c73357fc$export$250de4fc6219f4ba;
35
- var $0f362c72c73357fc$export$ce0abe6a13066aee;
36
- var $0f362c72c73357fc$export$9cb54bc972cacc06;
37
- var $0f362c72c73357fc$export$67ff21277f017a3f;
38
- var $0f362c72c73357fc$export$b9072ec5c3c3196e;
39
- var $0f362c72c73357fc$export$e76d1f315203cda4;
40
- var $0f362c72c73357fc$export$f39824621eafe7d1;
41
- var $0f362c72c73357fc$export$70ebbcb6132f4aa8;
42
- var $0f362c72c73357fc$export$87cc42d7dd800a50;
43
- var $0f362c72c73357fc$export$4109102f950813a6;
44
- var $0f362c72c73357fc$export$24c7f46a6e3605dd;
45
- var $0f362c72c73357fc$export$2927016961429360;
46
- $0f362c72c73357fc$export$f39a09f249340e2a = `ACj6ra_focus-ring`;
47
- $0f362c72c73357fc$export$8c4ee2c50c22c514 = `ACj6ra_i18nFontFamily`;
48
- $0f362c72c73357fc$export$acb311e43ff4d1 = `ACj6ra_spectrum-Badge`;
49
- $0f362c72c73357fc$export$17d8c34537918c7 = `ACj6ra_spectrum-Badge--fuchsia`;
50
- $0f362c72c73357fc$export$cf21c81baa11bb0f = `ACj6ra_spectrum-Badge--indigo`;
51
- $0f362c72c73357fc$export$a276b7cecb1e7608 = `ACj6ra_spectrum-Badge--info`;
52
- $0f362c72c73357fc$export$8e48598848736b6e = `ACj6ra_spectrum-Badge--large`;
53
- $0f362c72c73357fc$export$a6258e5c939933e = `ACj6ra_spectrum-Badge--magenta`;
54
- $0f362c72c73357fc$export$250de4fc6219f4ba = `ACj6ra_spectrum-Badge--negative`;
55
- $0f362c72c73357fc$export$ce0abe6a13066aee = `ACj6ra_spectrum-Badge--neutral`;
56
- $0f362c72c73357fc$export$9cb54bc972cacc06 = `ACj6ra_spectrum-Badge--positive`;
57
- $0f362c72c73357fc$export$67ff21277f017a3f = `ACj6ra_spectrum-Badge--purple`;
58
- $0f362c72c73357fc$export$b9072ec5c3c3196e = `ACj6ra_spectrum-Badge--seafoam`;
59
- $0f362c72c73357fc$export$e76d1f315203cda4 = `ACj6ra_spectrum-Badge--small`;
60
- $0f362c72c73357fc$export$f39824621eafe7d1 = `ACj6ra_spectrum-Badge--yellow`;
61
- $0f362c72c73357fc$export$70ebbcb6132f4aa8 = `ACj6ra_spectrum-Badge-icon`;
62
- $0f362c72c73357fc$export$87cc42d7dd800a50 = `ACj6ra_spectrum-Badge-label`;
63
- $0f362c72c73357fc$export$4109102f950813a6 = `ACj6ra_spectrum-FocusRing-ring`;
64
- $0f362c72c73357fc$export$24c7f46a6e3605dd = `ACj6ra_spectrum-FocusRing ${$0f362c72c73357fc$export$4109102f950813a6}`;
65
- $0f362c72c73357fc$export$2927016961429360 = `ACj6ra_spectrum-FocusRing--quiet`;
66
-
67
-
68
- //# sourceMappingURL=badge_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;AAnBA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,0CAAmC,CAAC,qBAAqB,CAAC;AAC1D,2CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,2CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,2CAA2C;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/badge/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":"badge_vars_css.main.js.map"}
@@ -1,70 +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 $700c1b49452b6d47$exports = {};
6
-
7
- $parcel$export($700c1b49452b6d47$exports, "focus-ring", () => $700c1b49452b6d47$export$f39a09f249340e2a, (v) => $700c1b49452b6d47$export$f39a09f249340e2a = v);
8
- $parcel$export($700c1b49452b6d47$exports, "i18nFontFamily", () => $700c1b49452b6d47$export$8c4ee2c50c22c514, (v) => $700c1b49452b6d47$export$8c4ee2c50c22c514 = v);
9
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge", () => $700c1b49452b6d47$export$acb311e43ff4d1, (v) => $700c1b49452b6d47$export$acb311e43ff4d1 = v);
10
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--fuchsia", () => $700c1b49452b6d47$export$17d8c34537918c7, (v) => $700c1b49452b6d47$export$17d8c34537918c7 = v);
11
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--indigo", () => $700c1b49452b6d47$export$cf21c81baa11bb0f, (v) => $700c1b49452b6d47$export$cf21c81baa11bb0f = v);
12
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--info", () => $700c1b49452b6d47$export$a276b7cecb1e7608, (v) => $700c1b49452b6d47$export$a276b7cecb1e7608 = v);
13
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--large", () => $700c1b49452b6d47$export$8e48598848736b6e, (v) => $700c1b49452b6d47$export$8e48598848736b6e = v);
14
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--magenta", () => $700c1b49452b6d47$export$a6258e5c939933e, (v) => $700c1b49452b6d47$export$a6258e5c939933e = v);
15
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--negative", () => $700c1b49452b6d47$export$250de4fc6219f4ba, (v) => $700c1b49452b6d47$export$250de4fc6219f4ba = v);
16
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--neutral", () => $700c1b49452b6d47$export$ce0abe6a13066aee, (v) => $700c1b49452b6d47$export$ce0abe6a13066aee = v);
17
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--positive", () => $700c1b49452b6d47$export$9cb54bc972cacc06, (v) => $700c1b49452b6d47$export$9cb54bc972cacc06 = v);
18
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--purple", () => $700c1b49452b6d47$export$67ff21277f017a3f, (v) => $700c1b49452b6d47$export$67ff21277f017a3f = v);
19
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--seafoam", () => $700c1b49452b6d47$export$b9072ec5c3c3196e, (v) => $700c1b49452b6d47$export$b9072ec5c3c3196e = v);
20
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--small", () => $700c1b49452b6d47$export$e76d1f315203cda4, (v) => $700c1b49452b6d47$export$e76d1f315203cda4 = v);
21
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--yellow", () => $700c1b49452b6d47$export$f39824621eafe7d1, (v) => $700c1b49452b6d47$export$f39824621eafe7d1 = v);
22
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge-icon", () => $700c1b49452b6d47$export$70ebbcb6132f4aa8, (v) => $700c1b49452b6d47$export$70ebbcb6132f4aa8 = v);
23
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge-label", () => $700c1b49452b6d47$export$87cc42d7dd800a50, (v) => $700c1b49452b6d47$export$87cc42d7dd800a50 = v);
24
- $parcel$export($700c1b49452b6d47$exports, "spectrum-FocusRing-ring", () => $700c1b49452b6d47$export$4109102f950813a6, (v) => $700c1b49452b6d47$export$4109102f950813a6 = v);
25
- $parcel$export($700c1b49452b6d47$exports, "spectrum-FocusRing", () => $700c1b49452b6d47$export$24c7f46a6e3605dd, (v) => $700c1b49452b6d47$export$24c7f46a6e3605dd = v);
26
- $parcel$export($700c1b49452b6d47$exports, "spectrum-FocusRing--quiet", () => $700c1b49452b6d47$export$2927016961429360, (v) => $700c1b49452b6d47$export$2927016961429360 = v);
27
- var $700c1b49452b6d47$export$f39a09f249340e2a;
28
- var $700c1b49452b6d47$export$8c4ee2c50c22c514;
29
- var $700c1b49452b6d47$export$acb311e43ff4d1;
30
- var $700c1b49452b6d47$export$17d8c34537918c7;
31
- var $700c1b49452b6d47$export$cf21c81baa11bb0f;
32
- var $700c1b49452b6d47$export$a276b7cecb1e7608;
33
- var $700c1b49452b6d47$export$8e48598848736b6e;
34
- var $700c1b49452b6d47$export$a6258e5c939933e;
35
- var $700c1b49452b6d47$export$250de4fc6219f4ba;
36
- var $700c1b49452b6d47$export$ce0abe6a13066aee;
37
- var $700c1b49452b6d47$export$9cb54bc972cacc06;
38
- var $700c1b49452b6d47$export$67ff21277f017a3f;
39
- var $700c1b49452b6d47$export$b9072ec5c3c3196e;
40
- var $700c1b49452b6d47$export$e76d1f315203cda4;
41
- var $700c1b49452b6d47$export$f39824621eafe7d1;
42
- var $700c1b49452b6d47$export$70ebbcb6132f4aa8;
43
- var $700c1b49452b6d47$export$87cc42d7dd800a50;
44
- var $700c1b49452b6d47$export$4109102f950813a6;
45
- var $700c1b49452b6d47$export$24c7f46a6e3605dd;
46
- var $700c1b49452b6d47$export$2927016961429360;
47
- $700c1b49452b6d47$export$f39a09f249340e2a = `ACj6ra_focus-ring`;
48
- $700c1b49452b6d47$export$8c4ee2c50c22c514 = `ACj6ra_i18nFontFamily`;
49
- $700c1b49452b6d47$export$acb311e43ff4d1 = `ACj6ra_spectrum-Badge`;
50
- $700c1b49452b6d47$export$17d8c34537918c7 = `ACj6ra_spectrum-Badge--fuchsia`;
51
- $700c1b49452b6d47$export$cf21c81baa11bb0f = `ACj6ra_spectrum-Badge--indigo`;
52
- $700c1b49452b6d47$export$a276b7cecb1e7608 = `ACj6ra_spectrum-Badge--info`;
53
- $700c1b49452b6d47$export$8e48598848736b6e = `ACj6ra_spectrum-Badge--large`;
54
- $700c1b49452b6d47$export$a6258e5c939933e = `ACj6ra_spectrum-Badge--magenta`;
55
- $700c1b49452b6d47$export$250de4fc6219f4ba = `ACj6ra_spectrum-Badge--negative`;
56
- $700c1b49452b6d47$export$ce0abe6a13066aee = `ACj6ra_spectrum-Badge--neutral`;
57
- $700c1b49452b6d47$export$9cb54bc972cacc06 = `ACj6ra_spectrum-Badge--positive`;
58
- $700c1b49452b6d47$export$67ff21277f017a3f = `ACj6ra_spectrum-Badge--purple`;
59
- $700c1b49452b6d47$export$b9072ec5c3c3196e = `ACj6ra_spectrum-Badge--seafoam`;
60
- $700c1b49452b6d47$export$e76d1f315203cda4 = `ACj6ra_spectrum-Badge--small`;
61
- $700c1b49452b6d47$export$f39824621eafe7d1 = `ACj6ra_spectrum-Badge--yellow`;
62
- $700c1b49452b6d47$export$70ebbcb6132f4aa8 = `ACj6ra_spectrum-Badge-icon`;
63
- $700c1b49452b6d47$export$87cc42d7dd800a50 = `ACj6ra_spectrum-Badge-label`;
64
- $700c1b49452b6d47$export$4109102f950813a6 = `ACj6ra_spectrum-FocusRing-ring`;
65
- $700c1b49452b6d47$export$24c7f46a6e3605dd = `ACj6ra_spectrum-FocusRing ${$700c1b49452b6d47$export$4109102f950813a6}`;
66
- $700c1b49452b6d47$export$2927016961429360 = `ACj6ra_spectrum-FocusRing--quiet`;
67
-
68
-
69
- export {$700c1b49452b6d47$exports as default};
70
- //# sourceMappingURL=badge_vars_css.module.js.map
@@ -1,70 +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 $700c1b49452b6d47$exports = {};
6
-
7
- $parcel$export($700c1b49452b6d47$exports, "focus-ring", () => $700c1b49452b6d47$export$f39a09f249340e2a, (v) => $700c1b49452b6d47$export$f39a09f249340e2a = v);
8
- $parcel$export($700c1b49452b6d47$exports, "i18nFontFamily", () => $700c1b49452b6d47$export$8c4ee2c50c22c514, (v) => $700c1b49452b6d47$export$8c4ee2c50c22c514 = v);
9
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge", () => $700c1b49452b6d47$export$acb311e43ff4d1, (v) => $700c1b49452b6d47$export$acb311e43ff4d1 = v);
10
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--fuchsia", () => $700c1b49452b6d47$export$17d8c34537918c7, (v) => $700c1b49452b6d47$export$17d8c34537918c7 = v);
11
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--indigo", () => $700c1b49452b6d47$export$cf21c81baa11bb0f, (v) => $700c1b49452b6d47$export$cf21c81baa11bb0f = v);
12
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--info", () => $700c1b49452b6d47$export$a276b7cecb1e7608, (v) => $700c1b49452b6d47$export$a276b7cecb1e7608 = v);
13
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--large", () => $700c1b49452b6d47$export$8e48598848736b6e, (v) => $700c1b49452b6d47$export$8e48598848736b6e = v);
14
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--magenta", () => $700c1b49452b6d47$export$a6258e5c939933e, (v) => $700c1b49452b6d47$export$a6258e5c939933e = v);
15
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--negative", () => $700c1b49452b6d47$export$250de4fc6219f4ba, (v) => $700c1b49452b6d47$export$250de4fc6219f4ba = v);
16
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--neutral", () => $700c1b49452b6d47$export$ce0abe6a13066aee, (v) => $700c1b49452b6d47$export$ce0abe6a13066aee = v);
17
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--positive", () => $700c1b49452b6d47$export$9cb54bc972cacc06, (v) => $700c1b49452b6d47$export$9cb54bc972cacc06 = v);
18
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--purple", () => $700c1b49452b6d47$export$67ff21277f017a3f, (v) => $700c1b49452b6d47$export$67ff21277f017a3f = v);
19
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--seafoam", () => $700c1b49452b6d47$export$b9072ec5c3c3196e, (v) => $700c1b49452b6d47$export$b9072ec5c3c3196e = v);
20
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--small", () => $700c1b49452b6d47$export$e76d1f315203cda4, (v) => $700c1b49452b6d47$export$e76d1f315203cda4 = v);
21
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge--yellow", () => $700c1b49452b6d47$export$f39824621eafe7d1, (v) => $700c1b49452b6d47$export$f39824621eafe7d1 = v);
22
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge-icon", () => $700c1b49452b6d47$export$70ebbcb6132f4aa8, (v) => $700c1b49452b6d47$export$70ebbcb6132f4aa8 = v);
23
- $parcel$export($700c1b49452b6d47$exports, "spectrum-Badge-label", () => $700c1b49452b6d47$export$87cc42d7dd800a50, (v) => $700c1b49452b6d47$export$87cc42d7dd800a50 = v);
24
- $parcel$export($700c1b49452b6d47$exports, "spectrum-FocusRing-ring", () => $700c1b49452b6d47$export$4109102f950813a6, (v) => $700c1b49452b6d47$export$4109102f950813a6 = v);
25
- $parcel$export($700c1b49452b6d47$exports, "spectrum-FocusRing", () => $700c1b49452b6d47$export$24c7f46a6e3605dd, (v) => $700c1b49452b6d47$export$24c7f46a6e3605dd = v);
26
- $parcel$export($700c1b49452b6d47$exports, "spectrum-FocusRing--quiet", () => $700c1b49452b6d47$export$2927016961429360, (v) => $700c1b49452b6d47$export$2927016961429360 = v);
27
- var $700c1b49452b6d47$export$f39a09f249340e2a;
28
- var $700c1b49452b6d47$export$8c4ee2c50c22c514;
29
- var $700c1b49452b6d47$export$acb311e43ff4d1;
30
- var $700c1b49452b6d47$export$17d8c34537918c7;
31
- var $700c1b49452b6d47$export$cf21c81baa11bb0f;
32
- var $700c1b49452b6d47$export$a276b7cecb1e7608;
33
- var $700c1b49452b6d47$export$8e48598848736b6e;
34
- var $700c1b49452b6d47$export$a6258e5c939933e;
35
- var $700c1b49452b6d47$export$250de4fc6219f4ba;
36
- var $700c1b49452b6d47$export$ce0abe6a13066aee;
37
- var $700c1b49452b6d47$export$9cb54bc972cacc06;
38
- var $700c1b49452b6d47$export$67ff21277f017a3f;
39
- var $700c1b49452b6d47$export$b9072ec5c3c3196e;
40
- var $700c1b49452b6d47$export$e76d1f315203cda4;
41
- var $700c1b49452b6d47$export$f39824621eafe7d1;
42
- var $700c1b49452b6d47$export$70ebbcb6132f4aa8;
43
- var $700c1b49452b6d47$export$87cc42d7dd800a50;
44
- var $700c1b49452b6d47$export$4109102f950813a6;
45
- var $700c1b49452b6d47$export$24c7f46a6e3605dd;
46
- var $700c1b49452b6d47$export$2927016961429360;
47
- $700c1b49452b6d47$export$f39a09f249340e2a = `ACj6ra_focus-ring`;
48
- $700c1b49452b6d47$export$8c4ee2c50c22c514 = `ACj6ra_i18nFontFamily`;
49
- $700c1b49452b6d47$export$acb311e43ff4d1 = `ACj6ra_spectrum-Badge`;
50
- $700c1b49452b6d47$export$17d8c34537918c7 = `ACj6ra_spectrum-Badge--fuchsia`;
51
- $700c1b49452b6d47$export$cf21c81baa11bb0f = `ACj6ra_spectrum-Badge--indigo`;
52
- $700c1b49452b6d47$export$a276b7cecb1e7608 = `ACj6ra_spectrum-Badge--info`;
53
- $700c1b49452b6d47$export$8e48598848736b6e = `ACj6ra_spectrum-Badge--large`;
54
- $700c1b49452b6d47$export$a6258e5c939933e = `ACj6ra_spectrum-Badge--magenta`;
55
- $700c1b49452b6d47$export$250de4fc6219f4ba = `ACj6ra_spectrum-Badge--negative`;
56
- $700c1b49452b6d47$export$ce0abe6a13066aee = `ACj6ra_spectrum-Badge--neutral`;
57
- $700c1b49452b6d47$export$9cb54bc972cacc06 = `ACj6ra_spectrum-Badge--positive`;
58
- $700c1b49452b6d47$export$67ff21277f017a3f = `ACj6ra_spectrum-Badge--purple`;
59
- $700c1b49452b6d47$export$b9072ec5c3c3196e = `ACj6ra_spectrum-Badge--seafoam`;
60
- $700c1b49452b6d47$export$e76d1f315203cda4 = `ACj6ra_spectrum-Badge--small`;
61
- $700c1b49452b6d47$export$f39824621eafe7d1 = `ACj6ra_spectrum-Badge--yellow`;
62
- $700c1b49452b6d47$export$70ebbcb6132f4aa8 = `ACj6ra_spectrum-Badge-icon`;
63
- $700c1b49452b6d47$export$87cc42d7dd800a50 = `ACj6ra_spectrum-Badge-label`;
64
- $700c1b49452b6d47$export$4109102f950813a6 = `ACj6ra_spectrum-FocusRing-ring`;
65
- $700c1b49452b6d47$export$24c7f46a6e3605dd = `ACj6ra_spectrum-FocusRing ${$700c1b49452b6d47$export$4109102f950813a6}`;
66
- $700c1b49452b6d47$export$2927016961429360 = `ACj6ra_spectrum-FocusRing--quiet`;
67
-
68
-
69
- export {$700c1b49452b6d47$exports as default};
70
- //# sourceMappingURL=badge_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;AAnBA,4CAA+B,CAAC,iBAAiB,CAAC;AAClD,4CAAmC,CAAC,qBAAqB,CAAC;AAC1D,0CAAmC,CAAC,qBAAqB,CAAC;AAC1D,2CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,2CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA6C,CAAC,+BAA+B,CAAC;AAC9E,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAA0C,CAAC,4BAA4B,CAAC;AACxE,4CAA2C,CAAC,6BAA6B,CAAC;AAC1E,4CAAwC,CAAC,0BAA0B,CAAC;AACpE,4CAAyC,CAAC,2BAA2B,CAAC;AACtE,4CAA4C,CAAC,8BAA8B,CAAC;AAC5E,4CAAuC,CAAC,0BAA0B,EAAE,2CAA2C;AAC/G,4CAA8C,CAAC,gCAAgC,CAAC","sources":["packages/@adobe/spectrum-css-temp/components/badge/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":"badge_vars_css.module.js.map"}
package/dist/types.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- import { SpectrumBadgeProps } from "@react-types/badge";
3
- import { DOMRefValue } from "@react-types/shared";
4
- /**
5
- * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
6
- */
7
- export const Badge: React.ForwardRefExoticComponent<SpectrumBadgeProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
8
- export type { SpectrumBadgeProps } from '@react-types/badge';
9
-
10
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"mappings":";;;AAsBA;;GAEG;AACH,OAAO,MAAM,6GA6CX,CAAC;ACvDH,YAAY,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC","sources":["packages/@react-spectrum/badge/src/packages/@react-spectrum/badge/src/Badge.tsx","packages/@react-spectrum/badge/src/packages/@react-spectrum/badge/src/index.ts","packages/@react-spectrum/badge/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2022 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 {Badge} from './Badge';\nexport type {SpectrumBadgeProps} from '@react-types/badge';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/src/Badge.tsx DELETED
@@ -1,71 +0,0 @@
1
- /*
2
- * Copyright 2022 Adobe. All rights reserved.
3
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License. You may obtain a copy
5
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- *
7
- * Unless required by applicable law or agreed to in writing, software distributed under
8
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- * OF ANY KIND, either express or implied. See the License for the specific language
10
- * governing permissions and limitations under the License.
11
- */
12
-
13
- import {classNames, ClearSlots, SlotProvider, 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 {SpectrumBadgeProps} from '@react-types/badge';
18
- import styles from '@adobe/spectrum-css-temp/components/badge/vars.css';
19
- import {Text} from '@react-spectrum/text';
20
- import {useProviderProps} from '@react-spectrum/provider';
21
-
22
-
23
- /**
24
- * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
25
- */
26
- export const Badge = forwardRef(function Badge(props: SpectrumBadgeProps, ref: DOMRef<HTMLDivElement>) {
27
- let {
28
- children,
29
- variant,
30
- ...otherProps
31
- } = useProviderProps(props);
32
- let domRef = useDOMRef(ref);
33
- let {styleProps} = useStyleProps(otherProps);
34
- let isTextOnly = React.Children.toArray(props.children).every(c => !React.isValidElement(c));
35
-
36
- return (
37
- <span
38
- {...filterDOMProps(otherProps)}
39
- {...styleProps}
40
- role="presentation"
41
- className={classNames(
42
- styles,
43
- 'spectrum-Badge',
44
- {
45
- [`spectrum-Badge--${variant}`]: variant
46
- },
47
- styleProps.className
48
- )}
49
- ref={domRef}>
50
- <ClearSlots>
51
- <SlotProvider
52
- slots={{
53
- icon: {
54
- size: 'S',
55
- UNSAFE_className: classNames(styles, 'spectrum-Badge-icon')
56
- },
57
- text: {
58
- UNSAFE_className: classNames(styles, 'spectrum-Badge-label')
59
- }
60
- }}>
61
-
62
- {
63
- typeof children === 'string' || isTextOnly
64
- ? <Text>{children}</Text>
65
- : children
66
- }
67
- </SlotProvider>
68
- </ClearSlots>
69
- </span>
70
- );
71
- });