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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @react-spectrum/badge
2
+
3
+ This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.
@@ -0,0 +1,65 @@
1
+ require("./vars.05fded2d.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
+ function $f243611f87a6fe61$var$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.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
+ * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
62
+ */ let $f243611f87a6fe61$export$37acb3580601e69a = /*#__PURE__*/ (0, $3aISS$react.forwardRef)($f243611f87a6fe61$var$Badge);
63
+
64
+
65
+ //# sourceMappingURL=Badge.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAYD,SAAS,4BAAM,KAAyB,EAAE,GAA2B;IACnE,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,QAAQ,CAAC,CAAC,EAAE;QAClC,GACA,WAAW,SAAS;QAEtB,KAAK;qBACL,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;AAKd;AAEA;;CAEC,GACD,IAAI,0DAAS,CAAA,GAAA,uBAAS,EAAE","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, 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\nfunction 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 <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 </span>\n );\n}\n\n/**\n * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.\n */\nlet _Badge = forwardRef(Badge);\nexport {_Badge as Badge};\n"],"names":[],"version":3,"file":"Badge.main.js.map"}
package/dist/Badge.mjs ADDED
@@ -0,0 +1,60 @@
1
+ import "./vars.05fded2d.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, 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
+ function $c2a9f60d7159b63f$var$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$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
+ * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
56
+ */ let $c2a9f60d7159b63f$export$37acb3580601e69a = /*#__PURE__*/ (0, $jtG7a$forwardRef)($c2a9f60d7159b63f$var$Badge);
57
+
58
+
59
+ export {$c2a9f60d7159b63f$export$37acb3580601e69a as Badge};
60
+ //# sourceMappingURL=Badge.module.js.map
@@ -0,0 +1,60 @@
1
+ import "./vars.05fded2d.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, 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
+ function $c2a9f60d7159b63f$var$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$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
+ * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
56
+ */ let $c2a9f60d7159b63f$export$37acb3580601e69a = /*#__PURE__*/ (0, $jtG7a$forwardRef)($c2a9f60d7159b63f$var$Badge);
57
+
58
+
59
+ export {$c2a9f60d7159b63f$export$37acb3580601e69a as Badge};
60
+ //# sourceMappingURL=Badge.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAYD,SAAS,4BAAM,KAAyB,EAAE,GAA2B;IACnE,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,QAAQ,CAAC,CAAC,EAAE;QAClC,GACA,WAAW,SAAS;QAEtB,KAAK;qBACL,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;AAKd;AAEA;;CAEC,GACD,IAAI,0DAAS,CAAA,GAAA,iBAAS,EAAE","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, 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\nfunction 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 <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 </span>\n );\n}\n\n/**\n * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.\n */\nlet _Badge = forwardRef(Badge);\nexport {_Badge as Badge};\n"],"names":[],"version":3,"file":"Badge.module.js.map"}
@@ -0,0 +1,68 @@
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 = `CIB44a_focus-ring`;
47
+ $0f362c72c73357fc$export$8c4ee2c50c22c514 = `CIB44a_i18nFontFamily`;
48
+ $0f362c72c73357fc$export$acb311e43ff4d1 = `CIB44a_spectrum-Badge`;
49
+ $0f362c72c73357fc$export$17d8c34537918c7 = `CIB44a_spectrum-Badge--fuchsia`;
50
+ $0f362c72c73357fc$export$cf21c81baa11bb0f = `CIB44a_spectrum-Badge--indigo`;
51
+ $0f362c72c73357fc$export$a276b7cecb1e7608 = `CIB44a_spectrum-Badge--info`;
52
+ $0f362c72c73357fc$export$8e48598848736b6e = `CIB44a_spectrum-Badge--large`;
53
+ $0f362c72c73357fc$export$a6258e5c939933e = `CIB44a_spectrum-Badge--magenta`;
54
+ $0f362c72c73357fc$export$250de4fc6219f4ba = `CIB44a_spectrum-Badge--negative`;
55
+ $0f362c72c73357fc$export$ce0abe6a13066aee = `CIB44a_spectrum-Badge--neutral`;
56
+ $0f362c72c73357fc$export$9cb54bc972cacc06 = `CIB44a_spectrum-Badge--positive`;
57
+ $0f362c72c73357fc$export$67ff21277f017a3f = `CIB44a_spectrum-Badge--purple`;
58
+ $0f362c72c73357fc$export$b9072ec5c3c3196e = `CIB44a_spectrum-Badge--seafoam`;
59
+ $0f362c72c73357fc$export$e76d1f315203cda4 = `CIB44a_spectrum-Badge--small`;
60
+ $0f362c72c73357fc$export$f39824621eafe7d1 = `CIB44a_spectrum-Badge--yellow`;
61
+ $0f362c72c73357fc$export$70ebbcb6132f4aa8 = `CIB44a_spectrum-Badge-icon`;
62
+ $0f362c72c73357fc$export$87cc42d7dd800a50 = `CIB44a_spectrum-Badge-label`;
63
+ $0f362c72c73357fc$export$4109102f950813a6 = `CIB44a_spectrum-FocusRing-ring`;
64
+ $0f362c72c73357fc$export$24c7f46a6e3605dd = `CIB44a_spectrum-FocusRing ${$0f362c72c73357fc$export$4109102f950813a6}`;
65
+ $0f362c72c73357fc$export$2927016961429360 = `CIB44a_spectrum-FocusRing--quiet`;
66
+
67
+
68
+ //# sourceMappingURL=badge_vars_css.main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;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,0CAA0C,CAAC;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"}
@@ -0,0 +1,70 @@
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 = `CIB44a_focus-ring`;
48
+ $700c1b49452b6d47$export$8c4ee2c50c22c514 = `CIB44a_i18nFontFamily`;
49
+ $700c1b49452b6d47$export$acb311e43ff4d1 = `CIB44a_spectrum-Badge`;
50
+ $700c1b49452b6d47$export$17d8c34537918c7 = `CIB44a_spectrum-Badge--fuchsia`;
51
+ $700c1b49452b6d47$export$cf21c81baa11bb0f = `CIB44a_spectrum-Badge--indigo`;
52
+ $700c1b49452b6d47$export$a276b7cecb1e7608 = `CIB44a_spectrum-Badge--info`;
53
+ $700c1b49452b6d47$export$8e48598848736b6e = `CIB44a_spectrum-Badge--large`;
54
+ $700c1b49452b6d47$export$a6258e5c939933e = `CIB44a_spectrum-Badge--magenta`;
55
+ $700c1b49452b6d47$export$250de4fc6219f4ba = `CIB44a_spectrum-Badge--negative`;
56
+ $700c1b49452b6d47$export$ce0abe6a13066aee = `CIB44a_spectrum-Badge--neutral`;
57
+ $700c1b49452b6d47$export$9cb54bc972cacc06 = `CIB44a_spectrum-Badge--positive`;
58
+ $700c1b49452b6d47$export$67ff21277f017a3f = `CIB44a_spectrum-Badge--purple`;
59
+ $700c1b49452b6d47$export$b9072ec5c3c3196e = `CIB44a_spectrum-Badge--seafoam`;
60
+ $700c1b49452b6d47$export$e76d1f315203cda4 = `CIB44a_spectrum-Badge--small`;
61
+ $700c1b49452b6d47$export$f39824621eafe7d1 = `CIB44a_spectrum-Badge--yellow`;
62
+ $700c1b49452b6d47$export$70ebbcb6132f4aa8 = `CIB44a_spectrum-Badge-icon`;
63
+ $700c1b49452b6d47$export$87cc42d7dd800a50 = `CIB44a_spectrum-Badge-label`;
64
+ $700c1b49452b6d47$export$4109102f950813a6 = `CIB44a_spectrum-FocusRing-ring`;
65
+ $700c1b49452b6d47$export$24c7f46a6e3605dd = `CIB44a_spectrum-FocusRing ${$700c1b49452b6d47$export$4109102f950813a6}`;
66
+ $700c1b49452b6d47$export$2927016961429360 = `CIB44a_spectrum-FocusRing--quiet`;
67
+
68
+
69
+ export {$700c1b49452b6d47$exports as default};
70
+ //# sourceMappingURL=badge_vars_css.module.js.map
@@ -0,0 +1,70 @@
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 = `CIB44a_focus-ring`;
48
+ $700c1b49452b6d47$export$8c4ee2c50c22c514 = `CIB44a_i18nFontFamily`;
49
+ $700c1b49452b6d47$export$acb311e43ff4d1 = `CIB44a_spectrum-Badge`;
50
+ $700c1b49452b6d47$export$17d8c34537918c7 = `CIB44a_spectrum-Badge--fuchsia`;
51
+ $700c1b49452b6d47$export$cf21c81baa11bb0f = `CIB44a_spectrum-Badge--indigo`;
52
+ $700c1b49452b6d47$export$a276b7cecb1e7608 = `CIB44a_spectrum-Badge--info`;
53
+ $700c1b49452b6d47$export$8e48598848736b6e = `CIB44a_spectrum-Badge--large`;
54
+ $700c1b49452b6d47$export$a6258e5c939933e = `CIB44a_spectrum-Badge--magenta`;
55
+ $700c1b49452b6d47$export$250de4fc6219f4ba = `CIB44a_spectrum-Badge--negative`;
56
+ $700c1b49452b6d47$export$ce0abe6a13066aee = `CIB44a_spectrum-Badge--neutral`;
57
+ $700c1b49452b6d47$export$9cb54bc972cacc06 = `CIB44a_spectrum-Badge--positive`;
58
+ $700c1b49452b6d47$export$67ff21277f017a3f = `CIB44a_spectrum-Badge--purple`;
59
+ $700c1b49452b6d47$export$b9072ec5c3c3196e = `CIB44a_spectrum-Badge--seafoam`;
60
+ $700c1b49452b6d47$export$e76d1f315203cda4 = `CIB44a_spectrum-Badge--small`;
61
+ $700c1b49452b6d47$export$f39824621eafe7d1 = `CIB44a_spectrum-Badge--yellow`;
62
+ $700c1b49452b6d47$export$70ebbcb6132f4aa8 = `CIB44a_spectrum-Badge-icon`;
63
+ $700c1b49452b6d47$export$87cc42d7dd800a50 = `CIB44a_spectrum-Badge-label`;
64
+ $700c1b49452b6d47$export$4109102f950813a6 = `CIB44a_spectrum-FocusRing-ring`;
65
+ $700c1b49452b6d47$export$24c7f46a6e3605dd = `CIB44a_spectrum-FocusRing ${$700c1b49452b6d47$export$4109102f950813a6}`;
66
+ $700c1b49452b6d47$export$2927016961429360 = `CIB44a_spectrum-FocusRing--quiet`;
67
+
68
+
69
+ export {$700c1b49452b6d47$exports as default};
70
+ //# sourceMappingURL=badge_vars_css.module.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;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,0CAA0C,CAAC;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"}
@@ -0,0 +1,18 @@
1
+ import {Badge as $c2a9f60d7159b63f$export$37acb3580601e69a} from "./Badge.mjs";
2
+
3
+ /*
4
+ * Copyright 2022 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */ /// <reference types="css-module-types" />
14
+
15
+
16
+
17
+ export {$c2a9f60d7159b63f$export$37acb3580601e69a as Badge};
18
+ //# sourceMappingURL=module.js.map
package/dist/main.js ADDED
@@ -0,0 +1,23 @@
1
+ var $f243611f87a6fe61$exports = require("./Badge.main.js");
2
+
3
+
4
+ function $parcel$export(e, n, v, s) {
5
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
+ }
7
+
8
+ $parcel$export(module.exports, "Badge", () => $f243611f87a6fe61$exports.Badge);
9
+ /*
10
+ * Copyright 2022 Adobe. All rights reserved.
11
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12
+ * you may not use this file except in compliance with the License. You may obtain a copy
13
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software distributed under
16
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
17
+ * OF ANY KIND, either express or implied. See the License for the specific language
18
+ * governing permissions and limitations under the License.
19
+ */ /// <reference types="css-module-types" />
20
+
21
+
22
+
23
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;;;;;;AAAA;;;;;;;;;;CAUC,GAED,0CAA0C","sources":["packages/@react-spectrum/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"}
package/dist/module.js ADDED
@@ -0,0 +1,18 @@
1
+ import {Badge as $c2a9f60d7159b63f$export$37acb3580601e69a} from "./Badge.module.js";
2
+
3
+ /*
4
+ * Copyright 2022 Adobe. All rights reserved.
5
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License. You may obtain a copy
7
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11
+ * OF ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ */ /// <reference types="css-module-types" />
14
+
15
+
16
+
17
+ export {$c2a9f60d7159b63f$export$37acb3580601e69a as Badge};
18
+ //# sourceMappingURL=module.js.map
@@ -0,0 +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"}
@@ -0,0 +1,10 @@
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 let Badge: React.ForwardRefExoticComponent<SpectrumBadgeProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>;
8
+ export type { SpectrumBadgeProps } from '@react-types/badge';
9
+
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"mappings":";;;AAmEA;;GAEG;AACH,OAAA,IAAI,6GAA0B,CAAC;ACvD/B,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"}
@@ -0,0 +1,182 @@
1
+ .CIB44a_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
+ .CIB44a_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
+ .CIB44a_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
+ .CIB44a_i18nFontFamily:lang(zh) {
15
+ font-family: adobe-clean-han-traditional, source-han-traditional, MingLiu, Heiti TC Light, sans-serif;
16
+ }
17
+
18
+ .CIB44a_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
+ .CIB44a_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
+ .CIB44a_i18nFontFamily:lang(zh-SG), .CIB44a_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
+ .CIB44a_i18nFontFamily:lang(ko) {
31
+ font-family: adobe-clean-han-korean, source-han-korean, Malgun Gothic, Apple Gothic, sans-serif;
32
+ }
33
+
34
+ .CIB44a_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
+ .CIB44a_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
+ .CIB44a_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
+ .CIB44a_spectrum-FocusRing.CIB44a_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
+ .CIB44a_spectrum-FocusRing--quiet:after {
63
+ border-radius: 0;
64
+ }
65
+
66
+ .CIB44a_spectrum-FocusRing--quiet.CIB44a_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
+ .CIB44a_spectrum-FocusRing, .CIB44a_spectrum-FocusRing-ring, .CIB44a_spectrum-FocusRing--quiet {
73
+ --spectrum-high-contrast-focus-ring-color: Highlight;
74
+ }
75
+
76
+ :is(.CIB44a_spectrum-FocusRing, .CIB44a_spectrum-FocusRing-ring, .CIB44a_spectrum-FocusRing--quiet):after {
77
+ forced-color-adjust: none;
78
+ }
79
+ }
80
+
81
+ .CIB44a_spectrum-Badge {
82
+ padding: var(--spectrum-global-dimension-size-50) 0;
83
+ border-radius: var(--spectrum-alias-border-radius-regular, var(--spectrum-global-dimension-size-50));
84
+ font-size: var(--spectrum-global-dimension-size-150);
85
+ line-height: var(--spectrum-global-font-line-height-medium, 1.5);
86
+ cursor: default;
87
+ -webkit-font-smoothing: subpixel-antialiased;
88
+ -moz-osx-font-smoothing: auto;
89
+ font-smoothing: subpixel-antialiased;
90
+ width: fit-content;
91
+ display: inline-flex;
92
+ position: relative;
93
+ }
94
+
95
+ .CIB44a_spectrum-Badge .CIB44a_spectrum-Badge-label {
96
+ order: 1;
97
+ padding-inline-end: var(--spectrum-global-dimension-size-115);
98
+ }
99
+
100
+ .CIB44a_spectrum-Badge .CIB44a_spectrum-Badge-icon {
101
+ flex-shrink: 0;
102
+ order: 0;
103
+ padding-inline-start: var(--spectrum-global-dimension-size-115);
104
+ }
105
+
106
+ .CIB44a_spectrum-Badge .CIB44a_spectrum-Badge-icon + .CIB44a_spectrum-Badge-label {
107
+ padding-inline-start: var(--spectrum-global-dimension-size-100);
108
+ }
109
+
110
+ .CIB44a_spectrum-Badge .CIB44a_spectrum-Badge-label:not([hidden]) + .CIB44a_spectrum-Badge-icon {
111
+ padding-inline-end: var(--spectrum-global-dimension-size-100);
112
+ }
113
+
114
+ .CIB44a_spectrum-Badge .CIB44a_spectrum-Badge-label:only-child {
115
+ padding-inline-start: var(--spectrum-global-dimension-size-115);
116
+ }
117
+
118
+ .CIB44a_spectrum-Badge .CIB44a_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
+ .CIB44a_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
+ .CIB44a_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
+ .CIB44a_spectrum-Badge {
134
+ color: var(--spectrum-label-colored-text-color, var(--spectrum-global-color-static-white));
135
+ }
136
+
137
+ .CIB44a_spectrum-Badge--neutral {
138
+ background-color: var(--spectrum-semantic-neutral-color-background, var(--spectrum-global-color-static-gray-700));
139
+ }
140
+
141
+ .CIB44a_spectrum-Badge--negative {
142
+ background-color: var(--spectrum-semantic-negative-color-background, var(--spectrum-global-color-static-red-700));
143
+ }
144
+
145
+ .CIB44a_spectrum-Badge--yellow {
146
+ color: var(--spectrum-global-color-static-black, #000);
147
+ background-color: var(--spectrum-yellow-background-color-default);
148
+ }
149
+
150
+ .CIB44a_spectrum-Badge--seafoam {
151
+ color: var(--spectrum-gray-50);
152
+ background-color: var(--spectrum-seafoam-background-color-default);
153
+ }
154
+
155
+ .CIB44a_spectrum-Badge--positive {
156
+ background-color: var(--spectrum-semantic-positive-color-background, var(--spectrum-global-color-static-green-700));
157
+ }
158
+
159
+ .CIB44a_spectrum-Badge--info {
160
+ background-color: var(--spectrum-semantic-informative-color-background, var(--spectrum-global-color-static-blue-700));
161
+ }
162
+
163
+ .CIB44a_spectrum-Badge--fuchsia {
164
+ color: var(--spectrum-gray-50);
165
+ background-color: var(--spectrum-fuchsia-background-color-default);
166
+ }
167
+
168
+ .CIB44a_spectrum-Badge--indigo {
169
+ color: var(--spectrum-gray-50);
170
+ background-color: var(--spectrum-indigo-background-color-default);
171
+ }
172
+
173
+ .CIB44a_spectrum-Badge--magenta {
174
+ color: var(--spectrum-gray-50);
175
+ background-color: var(--spectrum-magenta-background-color-default);
176
+ }
177
+
178
+ .CIB44a_spectrum-Badge--purple {
179
+ color: var(--spectrum-gray-50);
180
+ background-color: var(--spectrum-purple-background-color-default);
181
+ }
182
+ /*# sourceMappingURL=vars.05fded2d.css.map */
@@ -0,0 +1 @@
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":"vars.05fded2d.css.map"}
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@react-spectrum/badge",
3
+ "version": "3.0.0-nightly-641446f65-240905",
4
+ "description": "Spectrum UI components in React",
5
+ "license": "Apache-2.0",
6
+ "main": "dist/main.js",
7
+ "module": "dist/module.js",
8
+ "exports": {
9
+ "types": "./dist/types.d.ts",
10
+ "import": "./dist/import.mjs",
11
+ "require": "./dist/main.js"
12
+ },
13
+ "types": "dist/types.d.ts",
14
+ "source": "src/index.ts",
15
+ "files": [
16
+ "dist",
17
+ "src"
18
+ ],
19
+ "sideEffects": [
20
+ "*.css"
21
+ ],
22
+ "targets": {
23
+ "main": {
24
+ "includeNodeModules": [
25
+ "@adobe/spectrum-css-temp"
26
+ ]
27
+ },
28
+ "module": {
29
+ "includeNodeModules": [
30
+ "@adobe/spectrum-css-temp"
31
+ ]
32
+ }
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/adobe/react-spectrum"
37
+ },
38
+ "dependencies": {
39
+ "@react-aria/utils": "^3.0.0-nightly-641446f65-240905",
40
+ "@react-spectrum/text": "^3.0.0-nightly-641446f65-240905",
41
+ "@react-spectrum/utils": "^3.0.0-nightly-641446f65-240905",
42
+ "@react-types/badge": "^3.0.0-nightly-641446f65-240905",
43
+ "@react-types/shared": "^3.0.0-nightly-641446f65-240905",
44
+ "@swc/helpers": "^0.5.0"
45
+ },
46
+ "devDependencies": {
47
+ "@adobe/spectrum-css-temp": "3.0.0-alpha.1"
48
+ },
49
+ "peerDependencies": {
50
+ "@react-spectrum/provider": "^3.0.0-nightly-641446f65-240905",
51
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
52
+ },
53
+ "publishConfig": {
54
+ "access": "public"
55
+ },
56
+ "stableVersion": "3.1.15"
57
+ }
package/src/Badge.tsx ADDED
@@ -0,0 +1,72 @@
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, 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
+ function Badge(props: SpectrumBadgeProps, ref: DOMRef<HTMLDivElement>) {
24
+ let {
25
+ children,
26
+ variant,
27
+ ...otherProps
28
+ } = useProviderProps(props);
29
+ let domRef = useDOMRef(ref);
30
+ let {styleProps} = useStyleProps(otherProps);
31
+ let isTextOnly = React.Children.toArray(props.children).every(c => !React.isValidElement(c));
32
+
33
+ return (
34
+ <span
35
+ {...filterDOMProps(otherProps)}
36
+ {...styleProps}
37
+ role="presentation"
38
+ className={classNames(
39
+ styles,
40
+ 'spectrum-Badge',
41
+ {
42
+ [`spectrum-Badge--${variant}`]: variant
43
+ },
44
+ styleProps.className
45
+ )}
46
+ ref={domRef}>
47
+ <SlotProvider
48
+ slots={{
49
+ icon: {
50
+ size: 'S',
51
+ UNSAFE_className: classNames(styles, 'spectrum-Badge-icon')
52
+ },
53
+ text: {
54
+ UNSAFE_className: classNames(styles, 'spectrum-Badge-label')
55
+ }
56
+ }}>
57
+
58
+ {
59
+ typeof children === 'string' || isTextOnly
60
+ ? <Text>{children}</Text>
61
+ : children
62
+ }
63
+ </SlotProvider>
64
+ </span>
65
+ );
66
+ }
67
+
68
+ /**
69
+ * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.
70
+ */
71
+ let _Badge = forwardRef(Badge);
72
+ export {_Badge as Badge};
package/src/index.ts ADDED
@@ -0,0 +1,16 @@
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
+ /// <reference types="css-module-types" />
14
+
15
+ export {Badge} from './Badge';
16
+ export type {SpectrumBadgeProps} from '@react-types/badge';