@react-spectrum/icon 3.7.15 → 3.8.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/Icon.main.js CHANGED
@@ -1,9 +1,9 @@
1
- require("./vars.4163ca54.css");
1
+ require("./vars.b0351abd.css");
2
2
  var $5ef39e0c80b682c7$exports = require("./icon_vars_css.main.js");
3
3
  var $hx3aW$reactspectrumutils = require("@react-spectrum/utils");
4
4
  var $hx3aW$reactariautils = require("@react-aria/utils");
5
- var $hx3aW$react = require("react");
6
5
  var $hx3aW$reactspectrumprovider = require("@react-spectrum/provider");
6
+ var $hx3aW$react = require("react");
7
7
 
8
8
 
9
9
  function $parcel$interopDefault(a) {
@@ -44,9 +44,15 @@ function $2f297c87d3047269$export$f04a61298a47a40f(props) {
44
44
  props = (0, $hx3aW$reactspectrumutils.useSlotProps)(props, 'icon');
45
45
  let { children: children, size: size, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps } = props;
46
46
  let { styleProps: styleProps } = (0, $hx3aW$reactspectrumutils.useStyleProps)(otherProps, $2f297c87d3047269$var$iconStyleProps);
47
- let provider = (0, $hx3aW$reactspectrumprovider.useProvider)();
47
+ let provider;
48
+ try {
49
+ // eslint-disable-next-line react-hooks/rules-of-hooks
50
+ provider = (0, $hx3aW$reactspectrumprovider.useProvider)();
51
+ } catch {
52
+ // ignore
53
+ }
48
54
  let scale = 'M';
49
- if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
55
+ if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M';
50
56
  if (!ariaHidden) ariaHidden = undefined;
51
57
  // Use user specified size, falling back to provider scale if size is undef
52
58
  let iconSize = size ? size : scale;
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAuCD,SAAS,qCAAe,KAAqB;IAC3C,OAAO,CAAC,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACvD;AAEA,MAAM,uCAAgC;IACpC,GAAG,CAAA,GAAA,wCAAa,CAAC;IACjB,OAAO;QAAC;QAAS;KAAe;AAClC;AAKO,SAAS,0CAAK,KAAgB;IACnC,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,QACR,IAAI,EACJ,cAAc,SAAS,EACvB,eAAe,UAAU,EACzB,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE,YAAY;IAE7C,IAAI,WAAW,CAAA,GAAA,wCAAU;IACzB,IAAI,QAAQ;IACZ,IAAI,aAAa,MACf,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAE7C,IAAI,CAAC,YACH,aAAa;IAGf,2EAA2E;IAC3E,IAAI,WAAW,OAAO,OAAO;IAE7B,qBAAO,CAAA,GAAA,sCAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACb,WAAW;QACX,cAAc;QACd,eAAgB,YAAa,cAAc,YAAa;QACxD,MAAM;QACN,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA,CAAC,mBAAmB,EAAE,SAAS,CAAC,EAChC,WAAW,SAAS;IACxB;AACF","sources":["packages/@react-spectrum/icon/src/Icon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement<any>,\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' |'XL' | 'XXL',\n /**\n * A slot to place the icon in.\n * @default 'icon'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true',\n /**\n * Color of the Icon.\n */\n color?: IconColorValue\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n size,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className)\n });\n}\n"],"names":[],"version":3,"file":"Icon.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAuCD,SAAS,qCAAe,KAAqB;IAC3C,OAAO,CAAC,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACvD;AAEA,MAAM,uCAAgC;IACpC,GAAG,CAAA,GAAA,wCAAa,CAAC;IACjB,OAAO;QAAC;QAAS;KAAe;AAClC;AAKO,SAAS,0CAAK,KAAgB;IACnC,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,QACR,IAAI,EACJ,cAAc,SAAS,EACvB,eAAe,UAAU,EACzB,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE,YAAY;IAE7C,IAAI;IACJ,IAAI;QACF,sDAAsD;QACtD,WAAW,CAAA,GAAA,wCAAU;IACvB,EAAE,OAAM;IACN,SAAS;IACX;IACA,IAAI,QAAQ;IACZ,IAAI,YAAY,MACd,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAE7C,IAAI,CAAC,YACH,aAAa;IAGf,2EAA2E;IAC3E,IAAI,WAAW,OAAO,OAAO;IAE7B,qBAAO,CAAA,GAAA,sCAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACb,WAAW;QACX,cAAc;QACd,eAAgB,YAAa,cAAc,YAAa;QACxD,MAAM;QACN,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA,CAAC,mBAAmB,EAAE,UAAU,EAChC,WAAW,SAAS;IACxB;AACF","sources":["packages/@react-spectrum/icon/src/Icon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {ProviderContext, useProvider} from '@react-spectrum/provider';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement<any>,\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' |'XL' | 'XXL',\n /**\n * A slot to place the icon in.\n * @default 'icon'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true',\n /**\n * Color of the Icon.\n */\n color?: IconColorValue\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n size,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider: undefined | ProviderContext;\n try {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className)\n });\n}\n"],"names":[],"version":3,"file":"Icon.main.js.map"}
package/dist/Icon.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import "./vars.4163ca54.css";
1
+ import "./vars.b0351abd.css";
2
2
  import $hJE0A$icon_vars_cssmodulejs from "./icon_vars_css.mjs";
3
3
  import {baseStyleProps as $hJE0A$baseStyleProps, useSlotProps as $hJE0A$useSlotProps, useStyleProps as $hJE0A$useStyleProps, classNames as $hJE0A$classNames} from "@react-spectrum/utils";
4
4
  import {filterDOMProps as $hJE0A$filterDOMProps} from "@react-aria/utils";
5
- import $hJE0A$react from "react";
6
5
  import {useProvider as $hJE0A$useProvider} from "@react-spectrum/provider";
6
+ import $hJE0A$react from "react";
7
7
 
8
8
 
9
9
  function $parcel$interopDefault(a) {
@@ -38,9 +38,15 @@ function $6bfb67578ee6effd$export$f04a61298a47a40f(props) {
38
38
  props = (0, $hJE0A$useSlotProps)(props, 'icon');
39
39
  let { children: children, size: size, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps } = props;
40
40
  let { styleProps: styleProps } = (0, $hJE0A$useStyleProps)(otherProps, $6bfb67578ee6effd$var$iconStyleProps);
41
- let provider = (0, $hJE0A$useProvider)();
41
+ let provider;
42
+ try {
43
+ // eslint-disable-next-line react-hooks/rules-of-hooks
44
+ provider = (0, $hJE0A$useProvider)();
45
+ } catch {
46
+ // ignore
47
+ }
42
48
  let scale = 'M';
43
- if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
49
+ if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M';
44
50
  if (!ariaHidden) ariaHidden = undefined;
45
51
  // Use user specified size, falling back to provider scale if size is undef
46
52
  let iconSize = size ? size : scale;
@@ -1,9 +1,9 @@
1
- import "./vars.4163ca54.css";
1
+ import "./vars.b0351abd.css";
2
2
  import $hJE0A$icon_vars_cssmodulejs from "./icon_vars_css.module.js";
3
3
  import {baseStyleProps as $hJE0A$baseStyleProps, useSlotProps as $hJE0A$useSlotProps, useStyleProps as $hJE0A$useStyleProps, classNames as $hJE0A$classNames} from "@react-spectrum/utils";
4
4
  import {filterDOMProps as $hJE0A$filterDOMProps} from "@react-aria/utils";
5
- import $hJE0A$react from "react";
6
5
  import {useProvider as $hJE0A$useProvider} from "@react-spectrum/provider";
6
+ import $hJE0A$react from "react";
7
7
 
8
8
 
9
9
  function $parcel$interopDefault(a) {
@@ -38,9 +38,15 @@ function $6bfb67578ee6effd$export$f04a61298a47a40f(props) {
38
38
  props = (0, $hJE0A$useSlotProps)(props, 'icon');
39
39
  let { children: children, size: size, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps } = props;
40
40
  let { styleProps: styleProps } = (0, $hJE0A$useStyleProps)(otherProps, $6bfb67578ee6effd$var$iconStyleProps);
41
- let provider = (0, $hJE0A$useProvider)();
41
+ let provider;
42
+ try {
43
+ // eslint-disable-next-line react-hooks/rules-of-hooks
44
+ provider = (0, $hJE0A$useProvider)();
45
+ } catch {
46
+ // ignore
47
+ }
42
48
  let scale = 'M';
43
- if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
49
+ if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M';
44
50
  if (!ariaHidden) ariaHidden = undefined;
45
51
  // Use user specified size, falling back to provider scale if size is undef
46
52
  let iconSize = size ? size : scale;
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAuCD,SAAS,qCAAe,KAAqB;IAC3C,OAAO,CAAC,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACvD;AAEA,MAAM,uCAAgC;IACpC,GAAG,CAAA,GAAA,qBAAa,CAAC;IACjB,OAAO;QAAC;QAAS;KAAe;AAClC;AAKO,SAAS,0CAAK,KAAgB;IACnC,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,QACR,IAAI,EACJ,cAAc,SAAS,EACvB,eAAe,UAAU,EACzB,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE,YAAY;IAE7C,IAAI,WAAW,CAAA,GAAA,kBAAU;IACzB,IAAI,QAAQ;IACZ,IAAI,aAAa,MACf,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAE7C,IAAI,CAAC,YACH,aAAa;IAGf,2EAA2E;IAC3E,IAAI,WAAW,OAAO,OAAO;IAE7B,qBAAO,CAAA,GAAA,YAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACb,WAAW;QACX,cAAc;QACd,eAAgB,YAAa,cAAc,YAAa;QACxD,MAAM;QACN,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,sDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA,CAAC,mBAAmB,EAAE,SAAS,CAAC,EAChC,WAAW,SAAS;IACxB;AACF","sources":["packages/@react-spectrum/icon/src/Icon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement<any>,\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' |'XL' | 'XXL',\n /**\n * A slot to place the icon in.\n * @default 'icon'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true',\n /**\n * Color of the Icon.\n */\n color?: IconColorValue\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n size,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className)\n });\n}\n"],"names":[],"version":3,"file":"Icon.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAuCD,SAAS,qCAAe,KAAqB;IAC3C,OAAO,CAAC,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACvD;AAEA,MAAM,uCAAgC;IACpC,GAAG,CAAA,GAAA,qBAAa,CAAC;IACjB,OAAO;QAAC;QAAS;KAAe;AAClC;AAKO,SAAS,0CAAK,KAAgB;IACnC,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,QACR,IAAI,EACJ,cAAc,SAAS,EACvB,eAAe,UAAU,EACzB,GAAG,YACJ,GAAG;IACJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE,YAAY;IAE7C,IAAI;IACJ,IAAI;QACF,sDAAsD;QACtD,WAAW,CAAA,GAAA,kBAAU;IACvB,EAAE,OAAM;IACN,SAAS;IACX;IACA,IAAI,QAAQ;IACZ,IAAI,YAAY,MACd,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAE7C,IAAI,CAAC,YACH,aAAa;IAGf,2EAA2E;IAC3E,IAAI,WAAW,OAAO,OAAO;IAE7B,qBAAO,CAAA,GAAA,YAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;QACb,WAAW;QACX,cAAc;QACd,eAAgB,YAAa,cAAc,YAAa;QACxD,MAAM;QACN,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,sDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA,CAAC,mBAAmB,EAAE,UAAU,EAChC,WAAW,SAAS;IACxB;AACF","sources":["packages/@react-spectrum/icon/src/Icon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';\nimport {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {ProviderContext, useProvider} from '@react-spectrum/provider';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\n\nexport interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {\n /**\n * A screen reader only label for the Icon.\n */\n 'aria-label'?: string,\n /**\n * The content to display. Should be an SVG.\n */\n children: ReactElement<any>,\n /**\n * Size of Icon (changes based on scale).\n */\n size?: 'XXS' | 'XS' | 'S' | 'M' | 'L' |'XL' | 'XXL',\n /**\n * A slot to place the icon in.\n * @default 'icon'\n */\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true',\n /**\n * Color of the Icon.\n */\n color?: IconColorValue\n}\n\nexport type IconPropsWithoutChildren = Omit<IconProps, 'children'>;\n\nfunction iconColorValue(value: IconColorValue) {\n return `var(--spectrum-semantic-${value}-color-icon)`;\n}\n\nconst iconStyleProps: StyleHandlers = {\n ...baseStyleProps,\n color: ['color', iconColorValue]\n};\n\n/**\n * Spectrum icons are clear, minimal, and consistent across platforms. They follow the focused and rational principles of the design system in both metaphor and style.\n */\nexport function Icon(props: IconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n size,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps, iconStyleProps);\n\n let provider: undefined | ProviderContext;\n try {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n // Use user specified size, falling back to provider scale if size is undef\n let iconSize = size ? size : scale;\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n `spectrum-Icon--size${iconSize}`,\n styleProps.className)\n });\n}\n"],"names":[],"version":3,"file":"Icon.module.js.map"}
@@ -1,9 +1,9 @@
1
- require("./vars.4163ca54.css");
1
+ require("./vars.b0351abd.css");
2
2
  var $5ef39e0c80b682c7$exports = require("./icon_vars_css.main.js");
3
3
  var $anCtz$reactspectrumutils = require("@react-spectrum/utils");
4
4
  var $anCtz$reactariautils = require("@react-aria/utils");
5
- var $anCtz$react = require("react");
6
5
  var $anCtz$reactspectrumprovider = require("@react-spectrum/provider");
6
+ var $anCtz$react = require("react");
7
7
 
8
8
 
9
9
  function $parcel$interopDefault(a) {
@@ -34,9 +34,15 @@ function $722df481e3c1f593$export$906cc5990ff10700(props) {
34
34
  props = (0, $anCtz$reactspectrumutils.useSlotProps)(props, 'icon');
35
35
  let { children: children, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps } = props;
36
36
  let { styleProps: styleProps } = (0, $anCtz$reactspectrumutils.useStyleProps)(otherProps);
37
- let provider = (0, $anCtz$reactspectrumprovider.useProvider)();
37
+ let provider;
38
+ try {
39
+ // eslint-disable-next-line react-hooks/rules-of-hooks
40
+ provider = (0, $anCtz$reactspectrumprovider.useProvider)();
41
+ } catch {
42
+ // ignore
43
+ }
38
44
  let scale = 'M';
39
- if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
45
+ if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M';
40
46
  if (!ariaHidden) ariaHidden = undefined;
41
47
  return /*#__PURE__*/ (0, ($parcel$interopDefault($anCtz$react))).cloneElement(children, {
42
48
  ...(0, $anCtz$reactariautils.filterDOMProps)(otherProps),
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAoBM,SAAS,0CAAO,KAAkB;IACvC,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,cAAc,SAAS,EACvB,eAAe,UAAU,EACzB,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI,WAAW,CAAA,GAAA,wCAAU;IACzB,IAAI,QAAQ;IACZ,IAAI,aAAa,MACf,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAG7C,IAAI,CAAC,YACH,aAAa;IAGf,qBAAO,CAAA,GAAA,sCAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;eACb;QACA,WAAW;QACX,cAAc;QACd,eAAgB,YAAa,cAAc,YAAa;QACxD,MAAM;QACN,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA;YACE,CAAC,CAAC,gBAAgB,EAAE,SAAS,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,SAAS,IAAI,CAAC,cAAc;QACnF,GACA,WAAW,SAAS;IACxB;AACF","sources":["packages/@react-spectrum/icon/src/UIIcon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement<any>,\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className)\n });\n}\n"],"names":[],"version":3,"file":"UIIcon.main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAoBM,SAAS,0CAAO,KAAkB;IACvC,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,cAAc,SAAS,EACvB,eAAe,UAAU,EACzB,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IACjC,IAAI;IACJ,IAAI;QACF,sDAAsD;QACtD,WAAW,CAAA,GAAA,wCAAU;IACvB,EAAE,OAAM;IACN,SAAS;IACX;IACA,IAAI,QAAQ;IACZ,IAAI,YAAY,MACd,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAG7C,IAAI,CAAC,YACH,aAAa;IAGf,qBAAO,CAAA,GAAA,sCAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,oCAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;eACb;QACA,WAAW;QACX,cAAc;QACd,eAAgB,YAAa,cAAc,YAAa;QACxD,MAAM;QACN,WAAW,CAAA,GAAA,oCAAS,EAClB,CAAA,GAAA,mDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA;YACE,CAAC,CAAC,gBAAgB,EAAE,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE,SAAS,IAAI,CAAC,cAAc;QACnF,GACA,WAAW,SAAS;IACxB;AACF","sources":["packages/@react-spectrum/icon/src/UIIcon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {ProviderContext, useProvider} from '@react-spectrum/provider';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement<any>,\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider: undefined | ProviderContext;\n try {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className)\n });\n}\n"],"names":[],"version":3,"file":"UIIcon.main.js.map"}
package/dist/UIIcon.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import "./vars.4163ca54.css";
1
+ import "./vars.b0351abd.css";
2
2
  import $g4kmm$icon_vars_cssmodulejs from "./icon_vars_css.mjs";
3
3
  import {useSlotProps as $g4kmm$useSlotProps, useStyleProps as $g4kmm$useStyleProps, classNames as $g4kmm$classNames} from "@react-spectrum/utils";
4
4
  import {filterDOMProps as $g4kmm$filterDOMProps} from "@react-aria/utils";
5
- import $g4kmm$react from "react";
6
5
  import {useProvider as $g4kmm$useProvider} from "@react-spectrum/provider";
6
+ import $g4kmm$react from "react";
7
7
 
8
8
 
9
9
  function $parcel$interopDefault(a) {
@@ -28,9 +28,15 @@ function $9ba43a63383852e3$export$906cc5990ff10700(props) {
28
28
  props = (0, $g4kmm$useSlotProps)(props, 'icon');
29
29
  let { children: children, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps } = props;
30
30
  let { styleProps: styleProps } = (0, $g4kmm$useStyleProps)(otherProps);
31
- let provider = (0, $g4kmm$useProvider)();
31
+ let provider;
32
+ try {
33
+ // eslint-disable-next-line react-hooks/rules-of-hooks
34
+ provider = (0, $g4kmm$useProvider)();
35
+ } catch {
36
+ // ignore
37
+ }
32
38
  let scale = 'M';
33
- if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
39
+ if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M';
34
40
  if (!ariaHidden) ariaHidden = undefined;
35
41
  return /*#__PURE__*/ (0, $g4kmm$react).cloneElement(children, {
36
42
  ...(0, $g4kmm$filterDOMProps)(otherProps),
@@ -1,9 +1,9 @@
1
- import "./vars.4163ca54.css";
1
+ import "./vars.b0351abd.css";
2
2
  import $g4kmm$icon_vars_cssmodulejs from "./icon_vars_css.module.js";
3
3
  import {useSlotProps as $g4kmm$useSlotProps, useStyleProps as $g4kmm$useStyleProps, classNames as $g4kmm$classNames} from "@react-spectrum/utils";
4
4
  import {filterDOMProps as $g4kmm$filterDOMProps} from "@react-aria/utils";
5
- import $g4kmm$react from "react";
6
5
  import {useProvider as $g4kmm$useProvider} from "@react-spectrum/provider";
6
+ import $g4kmm$react from "react";
7
7
 
8
8
 
9
9
  function $parcel$interopDefault(a) {
@@ -28,9 +28,15 @@ function $9ba43a63383852e3$export$906cc5990ff10700(props) {
28
28
  props = (0, $g4kmm$useSlotProps)(props, 'icon');
29
29
  let { children: children, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps } = props;
30
30
  let { styleProps: styleProps } = (0, $g4kmm$useStyleProps)(otherProps);
31
- let provider = (0, $g4kmm$useProvider)();
31
+ let provider;
32
+ try {
33
+ // eslint-disable-next-line react-hooks/rules-of-hooks
34
+ provider = (0, $g4kmm$useProvider)();
35
+ } catch {
36
+ // ignore
37
+ }
32
38
  let scale = 'M';
33
- if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
39
+ if (provider != null) scale = provider.scale === 'large' ? 'L' : 'M';
34
40
  if (!ariaHidden) ariaHidden = undefined;
35
41
  return /*#__PURE__*/ (0, $g4kmm$react).cloneElement(children, {
36
42
  ...(0, $g4kmm$filterDOMProps)(otherProps),
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAoBM,SAAS,0CAAO,KAAkB;IACvC,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,cAAc,SAAS,EACvB,eAAe,UAAU,EACzB,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI,WAAW,CAAA,GAAA,kBAAU;IACzB,IAAI,QAAQ;IACZ,IAAI,aAAa,MACf,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAG7C,IAAI,CAAC,YACH,aAAa;IAGf,qBAAO,CAAA,GAAA,YAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;eACb;QACA,WAAW;QACX,cAAc;QACd,eAAgB,YAAa,cAAc,YAAa;QACxD,MAAM;QACN,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,sDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA;YACE,CAAC,CAAC,gBAAgB,EAAE,SAAS,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,SAAS,IAAI,CAAC,cAAc;QACnF,GACA,WAAW,SAAS;IACxB;AACF","sources":["packages/@react-spectrum/icon/src/UIIcon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\nimport {useProvider} from '@react-spectrum/provider';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement<any>,\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider = useProvider();\n let scale = 'M';\n if (provider !== null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className)\n });\n}\n"],"names":[],"version":3,"file":"UIIcon.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;AAoBM,SAAS,0CAAO,KAAkB;IACvC,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,YACF,QAAQ,EACR,cAAc,SAAS,EACvB,eAAe,UAAU,EACzB,GAAG,YACJ,GAAG;IAEJ,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IACjC,IAAI;IACJ,IAAI;QACF,sDAAsD;QACtD,WAAW,CAAA,GAAA,kBAAU;IACvB,EAAE,OAAM;IACN,SAAS;IACX;IACA,IAAI,QAAQ;IACZ,IAAI,YAAY,MACd,QAAQ,SAAS,KAAK,KAAK,UAAU,MAAM;IAG7C,IAAI,CAAC,YACH,aAAa;IAGf,qBAAO,CAAA,GAAA,YAAI,EAAE,YAAY,CAAC,UAAU;QAClC,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;QAC7B,GAAG,UAAU;eACb;QACA,WAAW;QACX,cAAc;QACd,eAAgB,YAAa,cAAc,YAAa;QACxD,MAAM;QACN,WAAW,CAAA,GAAA,iBAAS,EAClB,CAAA,GAAA,sDAAK,GACL,SAAS,KAAK,CAAC,SAAS,EACxB,iBACA;YACE,CAAC,CAAC,gBAAgB,EAAE,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE,SAAS,IAAI,CAAC,cAAc;QACnF,GACA,WAAW,SAAS;IACxB;AACF","sources":["packages/@react-spectrum/icon/src/UIIcon.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';\nimport {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {ProviderContext, useProvider} from '@react-spectrum/provider';\nimport React, {ReactElement} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/icon/vars.css';\n\nexport interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {\n children: ReactElement<any>,\n slot?: string,\n /**\n * Indicates whether the element is exposed to an accessibility API.\n */\n 'aria-hidden'?: boolean | 'false' | 'true'\n}\n\nexport type UIIconPropsWithoutChildren = Omit<UIIconProps, 'children'>;\n\nexport function UIIcon(props: UIIconProps) {\n props = useSlotProps(props, 'icon');\n let {\n children,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n ...otherProps\n } = props;\n\n let {styleProps} = useStyleProps(otherProps);\n let provider: undefined | ProviderContext;\n try {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n provider = useProvider();\n } catch {\n // ignore\n }\n let scale = 'M';\n if (provider != null) {\n scale = provider.scale === 'large' ? 'L' : 'M';\n }\n\n if (!ariaHidden) {\n ariaHidden = undefined;\n }\n\n return React.cloneElement(children, {\n ...filterDOMProps(otherProps),\n ...styleProps,\n scale,\n focusable: 'false',\n 'aria-label': ariaLabel,\n 'aria-hidden': (ariaLabel ? (ariaHidden || undefined) : true),\n role: 'img',\n className: classNames(\n styles,\n children.props.className,\n 'spectrum-Icon',\n {\n [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']\n },\n styleProps.className)\n });\n}\n"],"names":[],"version":3,"file":"UIIcon.module.js.map"}
@@ -99,54 +99,54 @@ var $5ef39e0c80b682c7$export$bcda0a6a6d7202af;
99
99
  var $5ef39e0c80b682c7$export$d18d2d837989a797;
100
100
  var $5ef39e0c80b682c7$export$506ac7a1a72a2c65;
101
101
  var $5ef39e0c80b682c7$export$12b8600bcd969018;
102
- $5ef39e0c80b682c7$export$a88a8dbe29386d31 = `yxBNXG_spectrum--large`;
103
- $5ef39e0c80b682c7$export$4c0c83b3f4303ef8 = `yxBNXG_spectrum--medium`;
104
- $5ef39e0c80b682c7$export$d374b04f30360026 = `yxBNXG_spectrum-Icon`;
105
- $5ef39e0c80b682c7$export$8d23c37ef2a4f13e = `yxBNXG_spectrum-Icon--sizeL`;
106
- $5ef39e0c80b682c7$export$8f1693ac47916bbf = `yxBNXG_spectrum-Icon--sizeM`;
107
- $5ef39e0c80b682c7$export$34ce05647f0c65e = `yxBNXG_spectrum-Icon--sizeS`;
108
- $5ef39e0c80b682c7$export$c6e70a22e841bc1b = `yxBNXG_spectrum-Icon--sizeXL`;
109
- $5ef39e0c80b682c7$export$557c0af6873b4222 = `yxBNXG_spectrum-Icon--sizeXS`;
110
- $5ef39e0c80b682c7$export$b37777493a27e620 = `yxBNXG_spectrum-Icon--sizeXXL`;
111
- $5ef39e0c80b682c7$export$cab8448604b31f43 = `yxBNXG_spectrum-Icon--sizeXXS`;
112
- $5ef39e0c80b682c7$export$c7db7fdc5aac13aa = `yxBNXG_spectrum-UIIcon`;
113
- $5ef39e0c80b682c7$export$2265a487ad399d8b = `yxBNXG_spectrum-UIIcon--large`;
114
- $5ef39e0c80b682c7$export$a6044013cf72ddc9 = `yxBNXG_spectrum-UIIcon--medium`;
115
- $5ef39e0c80b682c7$export$83be8302c01b6478 = `yxBNXG_spectrum-UIIcon-AlertMedium`;
116
- $5ef39e0c80b682c7$export$57b49d6ee2e9f187 = `yxBNXG_spectrum-UIIcon-AlertSmall`;
117
- $5ef39e0c80b682c7$export$81968d05e3681b3f = `yxBNXG_spectrum-UIIcon-ArrowDownSmall`;
118
- $5ef39e0c80b682c7$export$c0d655f335b5bc31 = `yxBNXG_spectrum-UIIcon-ArrowLeftMedium`;
119
- $5ef39e0c80b682c7$export$cca4342eca45562 = `yxBNXG_spectrum-UIIcon-Asterisk`;
120
- $5ef39e0c80b682c7$export$edc4a2e9af971b26 = `yxBNXG_spectrum-UIIcon-CheckmarkMedium`;
121
- $5ef39e0c80b682c7$export$9e665cb12e71e037 = `yxBNXG_spectrum-UIIcon-CheckmarkSmall`;
122
- $5ef39e0c80b682c7$export$2f91b7a7627906d5 = `yxBNXG_spectrum-UIIcon-ChevronDownMedium`;
123
- $5ef39e0c80b682c7$export$56efb4ec9eb35c07 = `yxBNXG_spectrum-UIIcon-ChevronDownSmall`;
124
- $5ef39e0c80b682c7$export$5861dfe1d581a528 = `yxBNXG_spectrum-UIIcon-ChevronLeftLarge`;
125
- $5ef39e0c80b682c7$export$595a122b60890c78 = `yxBNXG_spectrum-UIIcon-ChevronLeftMedium`;
126
- $5ef39e0c80b682c7$export$596373794435f8bc = `yxBNXG_spectrum-UIIcon-ChevronRightLarge`;
127
- $5ef39e0c80b682c7$export$32b379a02cafbfb3 = `yxBNXG_spectrum-UIIcon-ChevronRightMedium`;
128
- $5ef39e0c80b682c7$export$ee5de2c4d7c8faa4 = `yxBNXG_spectrum-UIIcon-ChevronRightSmall`;
129
- $5ef39e0c80b682c7$export$c1cbae72fd236fd9 = `yxBNXG_spectrum-UIIcon-ChevronUpSmall`;
130
- $5ef39e0c80b682c7$export$636d8cde4f6b7e6 = `yxBNXG_spectrum-UIIcon-CornerTriangle`;
131
- $5ef39e0c80b682c7$export$1f0ad4082256e3df = `yxBNXG_spectrum-UIIcon-CrossLarge`;
132
- $5ef39e0c80b682c7$export$1e0848411e254295 = `yxBNXG_spectrum-UIIcon-CrossMedium`;
133
- $5ef39e0c80b682c7$export$1c1bddac0ae5fbe5 = `yxBNXG_spectrum-UIIcon-CrossSmall`;
134
- $5ef39e0c80b682c7$export$98de2b9917cd3b6a = `yxBNXG_spectrum-UIIcon-DashSmall`;
135
- $5ef39e0c80b682c7$export$3c956876cb11c1e1 = `yxBNXG_spectrum-UIIcon-DoubleGripper`;
136
- $5ef39e0c80b682c7$export$55cf2795737352fc = `yxBNXG_spectrum-UIIcon-FolderBreadcrumb`;
137
- $5ef39e0c80b682c7$export$d5d1e3e09ea6cd5 = `yxBNXG_spectrum-UIIcon-HelpMedium`;
138
- $5ef39e0c80b682c7$export$f51b22382127207d = `yxBNXG_spectrum-UIIcon-HelpSmall`;
139
- $5ef39e0c80b682c7$export$825a6c2340d3b7e5 = `yxBNXG_spectrum-UIIcon-InfoMedium`;
140
- $5ef39e0c80b682c7$export$4828f4a6bfd26c04 = `yxBNXG_spectrum-UIIcon-InfoSmall`;
141
- $5ef39e0c80b682c7$export$1254ece141a8dac6 = `yxBNXG_spectrum-UIIcon-ListGripper`;
142
- $5ef39e0c80b682c7$export$a33650c9f4cc191e = `yxBNXG_spectrum-UIIcon-Magnifier`;
143
- $5ef39e0c80b682c7$export$9eb19533e4b8cc28 = `yxBNXG_spectrum-UIIcon-SkipLeft`;
144
- $5ef39e0c80b682c7$export$67704939e41f705a = `yxBNXG_spectrum-UIIcon-SkipRight`;
145
- $5ef39e0c80b682c7$export$c4d219c150b98c92 = `yxBNXG_spectrum-UIIcon-Star`;
146
- $5ef39e0c80b682c7$export$bcda0a6a6d7202af = `yxBNXG_spectrum-UIIcon-StarOutline`;
147
- $5ef39e0c80b682c7$export$d18d2d837989a797 = `yxBNXG_spectrum-UIIcon-SuccessMedium`;
148
- $5ef39e0c80b682c7$export$506ac7a1a72a2c65 = `yxBNXG_spectrum-UIIcon-SuccessSmall`;
149
- $5ef39e0c80b682c7$export$12b8600bcd969018 = `yxBNXG_spectrum-UIIcon-TripleGripper`;
102
+ $5ef39e0c80b682c7$export$a88a8dbe29386d31 = `wBx8DG_spectrum--large`;
103
+ $5ef39e0c80b682c7$export$4c0c83b3f4303ef8 = `wBx8DG_spectrum--medium`;
104
+ $5ef39e0c80b682c7$export$d374b04f30360026 = `wBx8DG_spectrum-Icon`;
105
+ $5ef39e0c80b682c7$export$8d23c37ef2a4f13e = `wBx8DG_spectrum-Icon--sizeL`;
106
+ $5ef39e0c80b682c7$export$8f1693ac47916bbf = `wBx8DG_spectrum-Icon--sizeM`;
107
+ $5ef39e0c80b682c7$export$34ce05647f0c65e = `wBx8DG_spectrum-Icon--sizeS`;
108
+ $5ef39e0c80b682c7$export$c6e70a22e841bc1b = `wBx8DG_spectrum-Icon--sizeXL`;
109
+ $5ef39e0c80b682c7$export$557c0af6873b4222 = `wBx8DG_spectrum-Icon--sizeXS`;
110
+ $5ef39e0c80b682c7$export$b37777493a27e620 = `wBx8DG_spectrum-Icon--sizeXXL`;
111
+ $5ef39e0c80b682c7$export$cab8448604b31f43 = `wBx8DG_spectrum-Icon--sizeXXS`;
112
+ $5ef39e0c80b682c7$export$c7db7fdc5aac13aa = `wBx8DG_spectrum-UIIcon`;
113
+ $5ef39e0c80b682c7$export$2265a487ad399d8b = `wBx8DG_spectrum-UIIcon--large`;
114
+ $5ef39e0c80b682c7$export$a6044013cf72ddc9 = `wBx8DG_spectrum-UIIcon--medium`;
115
+ $5ef39e0c80b682c7$export$83be8302c01b6478 = `wBx8DG_spectrum-UIIcon-AlertMedium`;
116
+ $5ef39e0c80b682c7$export$57b49d6ee2e9f187 = `wBx8DG_spectrum-UIIcon-AlertSmall`;
117
+ $5ef39e0c80b682c7$export$81968d05e3681b3f = `wBx8DG_spectrum-UIIcon-ArrowDownSmall`;
118
+ $5ef39e0c80b682c7$export$c0d655f335b5bc31 = `wBx8DG_spectrum-UIIcon-ArrowLeftMedium`;
119
+ $5ef39e0c80b682c7$export$cca4342eca45562 = `wBx8DG_spectrum-UIIcon-Asterisk`;
120
+ $5ef39e0c80b682c7$export$edc4a2e9af971b26 = `wBx8DG_spectrum-UIIcon-CheckmarkMedium`;
121
+ $5ef39e0c80b682c7$export$9e665cb12e71e037 = `wBx8DG_spectrum-UIIcon-CheckmarkSmall`;
122
+ $5ef39e0c80b682c7$export$2f91b7a7627906d5 = `wBx8DG_spectrum-UIIcon-ChevronDownMedium`;
123
+ $5ef39e0c80b682c7$export$56efb4ec9eb35c07 = `wBx8DG_spectrum-UIIcon-ChevronDownSmall`;
124
+ $5ef39e0c80b682c7$export$5861dfe1d581a528 = `wBx8DG_spectrum-UIIcon-ChevronLeftLarge`;
125
+ $5ef39e0c80b682c7$export$595a122b60890c78 = `wBx8DG_spectrum-UIIcon-ChevronLeftMedium`;
126
+ $5ef39e0c80b682c7$export$596373794435f8bc = `wBx8DG_spectrum-UIIcon-ChevronRightLarge`;
127
+ $5ef39e0c80b682c7$export$32b379a02cafbfb3 = `wBx8DG_spectrum-UIIcon-ChevronRightMedium`;
128
+ $5ef39e0c80b682c7$export$ee5de2c4d7c8faa4 = `wBx8DG_spectrum-UIIcon-ChevronRightSmall`;
129
+ $5ef39e0c80b682c7$export$c1cbae72fd236fd9 = `wBx8DG_spectrum-UIIcon-ChevronUpSmall`;
130
+ $5ef39e0c80b682c7$export$636d8cde4f6b7e6 = `wBx8DG_spectrum-UIIcon-CornerTriangle`;
131
+ $5ef39e0c80b682c7$export$1f0ad4082256e3df = `wBx8DG_spectrum-UIIcon-CrossLarge`;
132
+ $5ef39e0c80b682c7$export$1e0848411e254295 = `wBx8DG_spectrum-UIIcon-CrossMedium`;
133
+ $5ef39e0c80b682c7$export$1c1bddac0ae5fbe5 = `wBx8DG_spectrum-UIIcon-CrossSmall`;
134
+ $5ef39e0c80b682c7$export$98de2b9917cd3b6a = `wBx8DG_spectrum-UIIcon-DashSmall`;
135
+ $5ef39e0c80b682c7$export$3c956876cb11c1e1 = `wBx8DG_spectrum-UIIcon-DoubleGripper`;
136
+ $5ef39e0c80b682c7$export$55cf2795737352fc = `wBx8DG_spectrum-UIIcon-FolderBreadcrumb`;
137
+ $5ef39e0c80b682c7$export$d5d1e3e09ea6cd5 = `wBx8DG_spectrum-UIIcon-HelpMedium`;
138
+ $5ef39e0c80b682c7$export$f51b22382127207d = `wBx8DG_spectrum-UIIcon-HelpSmall`;
139
+ $5ef39e0c80b682c7$export$825a6c2340d3b7e5 = `wBx8DG_spectrum-UIIcon-InfoMedium`;
140
+ $5ef39e0c80b682c7$export$4828f4a6bfd26c04 = `wBx8DG_spectrum-UIIcon-InfoSmall`;
141
+ $5ef39e0c80b682c7$export$1254ece141a8dac6 = `wBx8DG_spectrum-UIIcon-ListGripper`;
142
+ $5ef39e0c80b682c7$export$a33650c9f4cc191e = `wBx8DG_spectrum-UIIcon-Magnifier`;
143
+ $5ef39e0c80b682c7$export$9eb19533e4b8cc28 = `wBx8DG_spectrum-UIIcon-SkipLeft`;
144
+ $5ef39e0c80b682c7$export$67704939e41f705a = `wBx8DG_spectrum-UIIcon-SkipRight`;
145
+ $5ef39e0c80b682c7$export$c4d219c150b98c92 = `wBx8DG_spectrum-UIIcon-Star`;
146
+ $5ef39e0c80b682c7$export$bcda0a6a6d7202af = `wBx8DG_spectrum-UIIcon-StarOutline`;
147
+ $5ef39e0c80b682c7$export$d18d2d837989a797 = `wBx8DG_spectrum-UIIcon-SuccessMedium`;
148
+ $5ef39e0c80b682c7$export$506ac7a1a72a2c65 = `wBx8DG_spectrum-UIIcon-SuccessSmall`;
149
+ $5ef39e0c80b682c7$export$12b8600bcd969018 = `wBx8DG_spectrum-UIIcon-TripleGripper`;
150
150
 
151
151
 
152
152
  //# sourceMappingURL=icon_vars_css.main.js.map
@@ -100,54 +100,54 @@ var $6edfbdaffbc9baf9$export$bcda0a6a6d7202af;
100
100
  var $6edfbdaffbc9baf9$export$d18d2d837989a797;
101
101
  var $6edfbdaffbc9baf9$export$506ac7a1a72a2c65;
102
102
  var $6edfbdaffbc9baf9$export$12b8600bcd969018;
103
- $6edfbdaffbc9baf9$export$a88a8dbe29386d31 = `yxBNXG_spectrum--large`;
104
- $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = `yxBNXG_spectrum--medium`;
105
- $6edfbdaffbc9baf9$export$d374b04f30360026 = `yxBNXG_spectrum-Icon`;
106
- $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = `yxBNXG_spectrum-Icon--sizeL`;
107
- $6edfbdaffbc9baf9$export$8f1693ac47916bbf = `yxBNXG_spectrum-Icon--sizeM`;
108
- $6edfbdaffbc9baf9$export$34ce05647f0c65e = `yxBNXG_spectrum-Icon--sizeS`;
109
- $6edfbdaffbc9baf9$export$c6e70a22e841bc1b = `yxBNXG_spectrum-Icon--sizeXL`;
110
- $6edfbdaffbc9baf9$export$557c0af6873b4222 = `yxBNXG_spectrum-Icon--sizeXS`;
111
- $6edfbdaffbc9baf9$export$b37777493a27e620 = `yxBNXG_spectrum-Icon--sizeXXL`;
112
- $6edfbdaffbc9baf9$export$cab8448604b31f43 = `yxBNXG_spectrum-Icon--sizeXXS`;
113
- $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = `yxBNXG_spectrum-UIIcon`;
114
- $6edfbdaffbc9baf9$export$2265a487ad399d8b = `yxBNXG_spectrum-UIIcon--large`;
115
- $6edfbdaffbc9baf9$export$a6044013cf72ddc9 = `yxBNXG_spectrum-UIIcon--medium`;
116
- $6edfbdaffbc9baf9$export$83be8302c01b6478 = `yxBNXG_spectrum-UIIcon-AlertMedium`;
117
- $6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = `yxBNXG_spectrum-UIIcon-AlertSmall`;
118
- $6edfbdaffbc9baf9$export$81968d05e3681b3f = `yxBNXG_spectrum-UIIcon-ArrowDownSmall`;
119
- $6edfbdaffbc9baf9$export$c0d655f335b5bc31 = `yxBNXG_spectrum-UIIcon-ArrowLeftMedium`;
120
- $6edfbdaffbc9baf9$export$cca4342eca45562 = `yxBNXG_spectrum-UIIcon-Asterisk`;
121
- $6edfbdaffbc9baf9$export$edc4a2e9af971b26 = `yxBNXG_spectrum-UIIcon-CheckmarkMedium`;
122
- $6edfbdaffbc9baf9$export$9e665cb12e71e037 = `yxBNXG_spectrum-UIIcon-CheckmarkSmall`;
123
- $6edfbdaffbc9baf9$export$2f91b7a7627906d5 = `yxBNXG_spectrum-UIIcon-ChevronDownMedium`;
124
- $6edfbdaffbc9baf9$export$56efb4ec9eb35c07 = `yxBNXG_spectrum-UIIcon-ChevronDownSmall`;
125
- $6edfbdaffbc9baf9$export$5861dfe1d581a528 = `yxBNXG_spectrum-UIIcon-ChevronLeftLarge`;
126
- $6edfbdaffbc9baf9$export$595a122b60890c78 = `yxBNXG_spectrum-UIIcon-ChevronLeftMedium`;
127
- $6edfbdaffbc9baf9$export$596373794435f8bc = `yxBNXG_spectrum-UIIcon-ChevronRightLarge`;
128
- $6edfbdaffbc9baf9$export$32b379a02cafbfb3 = `yxBNXG_spectrum-UIIcon-ChevronRightMedium`;
129
- $6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 = `yxBNXG_spectrum-UIIcon-ChevronRightSmall`;
130
- $6edfbdaffbc9baf9$export$c1cbae72fd236fd9 = `yxBNXG_spectrum-UIIcon-ChevronUpSmall`;
131
- $6edfbdaffbc9baf9$export$636d8cde4f6b7e6 = `yxBNXG_spectrum-UIIcon-CornerTriangle`;
132
- $6edfbdaffbc9baf9$export$1f0ad4082256e3df = `yxBNXG_spectrum-UIIcon-CrossLarge`;
133
- $6edfbdaffbc9baf9$export$1e0848411e254295 = `yxBNXG_spectrum-UIIcon-CrossMedium`;
134
- $6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 = `yxBNXG_spectrum-UIIcon-CrossSmall`;
135
- $6edfbdaffbc9baf9$export$98de2b9917cd3b6a = `yxBNXG_spectrum-UIIcon-DashSmall`;
136
- $6edfbdaffbc9baf9$export$3c956876cb11c1e1 = `yxBNXG_spectrum-UIIcon-DoubleGripper`;
137
- $6edfbdaffbc9baf9$export$55cf2795737352fc = `yxBNXG_spectrum-UIIcon-FolderBreadcrumb`;
138
- $6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 = `yxBNXG_spectrum-UIIcon-HelpMedium`;
139
- $6edfbdaffbc9baf9$export$f51b22382127207d = `yxBNXG_spectrum-UIIcon-HelpSmall`;
140
- $6edfbdaffbc9baf9$export$825a6c2340d3b7e5 = `yxBNXG_spectrum-UIIcon-InfoMedium`;
141
- $6edfbdaffbc9baf9$export$4828f4a6bfd26c04 = `yxBNXG_spectrum-UIIcon-InfoSmall`;
142
- $6edfbdaffbc9baf9$export$1254ece141a8dac6 = `yxBNXG_spectrum-UIIcon-ListGripper`;
143
- $6edfbdaffbc9baf9$export$a33650c9f4cc191e = `yxBNXG_spectrum-UIIcon-Magnifier`;
144
- $6edfbdaffbc9baf9$export$9eb19533e4b8cc28 = `yxBNXG_spectrum-UIIcon-SkipLeft`;
145
- $6edfbdaffbc9baf9$export$67704939e41f705a = `yxBNXG_spectrum-UIIcon-SkipRight`;
146
- $6edfbdaffbc9baf9$export$c4d219c150b98c92 = `yxBNXG_spectrum-UIIcon-Star`;
147
- $6edfbdaffbc9baf9$export$bcda0a6a6d7202af = `yxBNXG_spectrum-UIIcon-StarOutline`;
148
- $6edfbdaffbc9baf9$export$d18d2d837989a797 = `yxBNXG_spectrum-UIIcon-SuccessMedium`;
149
- $6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = `yxBNXG_spectrum-UIIcon-SuccessSmall`;
150
- $6edfbdaffbc9baf9$export$12b8600bcd969018 = `yxBNXG_spectrum-UIIcon-TripleGripper`;
103
+ $6edfbdaffbc9baf9$export$a88a8dbe29386d31 = `wBx8DG_spectrum--large`;
104
+ $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = `wBx8DG_spectrum--medium`;
105
+ $6edfbdaffbc9baf9$export$d374b04f30360026 = `wBx8DG_spectrum-Icon`;
106
+ $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = `wBx8DG_spectrum-Icon--sizeL`;
107
+ $6edfbdaffbc9baf9$export$8f1693ac47916bbf = `wBx8DG_spectrum-Icon--sizeM`;
108
+ $6edfbdaffbc9baf9$export$34ce05647f0c65e = `wBx8DG_spectrum-Icon--sizeS`;
109
+ $6edfbdaffbc9baf9$export$c6e70a22e841bc1b = `wBx8DG_spectrum-Icon--sizeXL`;
110
+ $6edfbdaffbc9baf9$export$557c0af6873b4222 = `wBx8DG_spectrum-Icon--sizeXS`;
111
+ $6edfbdaffbc9baf9$export$b37777493a27e620 = `wBx8DG_spectrum-Icon--sizeXXL`;
112
+ $6edfbdaffbc9baf9$export$cab8448604b31f43 = `wBx8DG_spectrum-Icon--sizeXXS`;
113
+ $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = `wBx8DG_spectrum-UIIcon`;
114
+ $6edfbdaffbc9baf9$export$2265a487ad399d8b = `wBx8DG_spectrum-UIIcon--large`;
115
+ $6edfbdaffbc9baf9$export$a6044013cf72ddc9 = `wBx8DG_spectrum-UIIcon--medium`;
116
+ $6edfbdaffbc9baf9$export$83be8302c01b6478 = `wBx8DG_spectrum-UIIcon-AlertMedium`;
117
+ $6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = `wBx8DG_spectrum-UIIcon-AlertSmall`;
118
+ $6edfbdaffbc9baf9$export$81968d05e3681b3f = `wBx8DG_spectrum-UIIcon-ArrowDownSmall`;
119
+ $6edfbdaffbc9baf9$export$c0d655f335b5bc31 = `wBx8DG_spectrum-UIIcon-ArrowLeftMedium`;
120
+ $6edfbdaffbc9baf9$export$cca4342eca45562 = `wBx8DG_spectrum-UIIcon-Asterisk`;
121
+ $6edfbdaffbc9baf9$export$edc4a2e9af971b26 = `wBx8DG_spectrum-UIIcon-CheckmarkMedium`;
122
+ $6edfbdaffbc9baf9$export$9e665cb12e71e037 = `wBx8DG_spectrum-UIIcon-CheckmarkSmall`;
123
+ $6edfbdaffbc9baf9$export$2f91b7a7627906d5 = `wBx8DG_spectrum-UIIcon-ChevronDownMedium`;
124
+ $6edfbdaffbc9baf9$export$56efb4ec9eb35c07 = `wBx8DG_spectrum-UIIcon-ChevronDownSmall`;
125
+ $6edfbdaffbc9baf9$export$5861dfe1d581a528 = `wBx8DG_spectrum-UIIcon-ChevronLeftLarge`;
126
+ $6edfbdaffbc9baf9$export$595a122b60890c78 = `wBx8DG_spectrum-UIIcon-ChevronLeftMedium`;
127
+ $6edfbdaffbc9baf9$export$596373794435f8bc = `wBx8DG_spectrum-UIIcon-ChevronRightLarge`;
128
+ $6edfbdaffbc9baf9$export$32b379a02cafbfb3 = `wBx8DG_spectrum-UIIcon-ChevronRightMedium`;
129
+ $6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 = `wBx8DG_spectrum-UIIcon-ChevronRightSmall`;
130
+ $6edfbdaffbc9baf9$export$c1cbae72fd236fd9 = `wBx8DG_spectrum-UIIcon-ChevronUpSmall`;
131
+ $6edfbdaffbc9baf9$export$636d8cde4f6b7e6 = `wBx8DG_spectrum-UIIcon-CornerTriangle`;
132
+ $6edfbdaffbc9baf9$export$1f0ad4082256e3df = `wBx8DG_spectrum-UIIcon-CrossLarge`;
133
+ $6edfbdaffbc9baf9$export$1e0848411e254295 = `wBx8DG_spectrum-UIIcon-CrossMedium`;
134
+ $6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 = `wBx8DG_spectrum-UIIcon-CrossSmall`;
135
+ $6edfbdaffbc9baf9$export$98de2b9917cd3b6a = `wBx8DG_spectrum-UIIcon-DashSmall`;
136
+ $6edfbdaffbc9baf9$export$3c956876cb11c1e1 = `wBx8DG_spectrum-UIIcon-DoubleGripper`;
137
+ $6edfbdaffbc9baf9$export$55cf2795737352fc = `wBx8DG_spectrum-UIIcon-FolderBreadcrumb`;
138
+ $6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 = `wBx8DG_spectrum-UIIcon-HelpMedium`;
139
+ $6edfbdaffbc9baf9$export$f51b22382127207d = `wBx8DG_spectrum-UIIcon-HelpSmall`;
140
+ $6edfbdaffbc9baf9$export$825a6c2340d3b7e5 = `wBx8DG_spectrum-UIIcon-InfoMedium`;
141
+ $6edfbdaffbc9baf9$export$4828f4a6bfd26c04 = `wBx8DG_spectrum-UIIcon-InfoSmall`;
142
+ $6edfbdaffbc9baf9$export$1254ece141a8dac6 = `wBx8DG_spectrum-UIIcon-ListGripper`;
143
+ $6edfbdaffbc9baf9$export$a33650c9f4cc191e = `wBx8DG_spectrum-UIIcon-Magnifier`;
144
+ $6edfbdaffbc9baf9$export$9eb19533e4b8cc28 = `wBx8DG_spectrum-UIIcon-SkipLeft`;
145
+ $6edfbdaffbc9baf9$export$67704939e41f705a = `wBx8DG_spectrum-UIIcon-SkipRight`;
146
+ $6edfbdaffbc9baf9$export$c4d219c150b98c92 = `wBx8DG_spectrum-UIIcon-Star`;
147
+ $6edfbdaffbc9baf9$export$bcda0a6a6d7202af = `wBx8DG_spectrum-UIIcon-StarOutline`;
148
+ $6edfbdaffbc9baf9$export$d18d2d837989a797 = `wBx8DG_spectrum-UIIcon-SuccessMedium`;
149
+ $6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = `wBx8DG_spectrum-UIIcon-SuccessSmall`;
150
+ $6edfbdaffbc9baf9$export$12b8600bcd969018 = `wBx8DG_spectrum-UIIcon-TripleGripper`;
151
151
 
152
152
 
153
153
  export {$6edfbdaffbc9baf9$exports as default};
@@ -100,54 +100,54 @@ var $6edfbdaffbc9baf9$export$bcda0a6a6d7202af;
100
100
  var $6edfbdaffbc9baf9$export$d18d2d837989a797;
101
101
  var $6edfbdaffbc9baf9$export$506ac7a1a72a2c65;
102
102
  var $6edfbdaffbc9baf9$export$12b8600bcd969018;
103
- $6edfbdaffbc9baf9$export$a88a8dbe29386d31 = `yxBNXG_spectrum--large`;
104
- $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = `yxBNXG_spectrum--medium`;
105
- $6edfbdaffbc9baf9$export$d374b04f30360026 = `yxBNXG_spectrum-Icon`;
106
- $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = `yxBNXG_spectrum-Icon--sizeL`;
107
- $6edfbdaffbc9baf9$export$8f1693ac47916bbf = `yxBNXG_spectrum-Icon--sizeM`;
108
- $6edfbdaffbc9baf9$export$34ce05647f0c65e = `yxBNXG_spectrum-Icon--sizeS`;
109
- $6edfbdaffbc9baf9$export$c6e70a22e841bc1b = `yxBNXG_spectrum-Icon--sizeXL`;
110
- $6edfbdaffbc9baf9$export$557c0af6873b4222 = `yxBNXG_spectrum-Icon--sizeXS`;
111
- $6edfbdaffbc9baf9$export$b37777493a27e620 = `yxBNXG_spectrum-Icon--sizeXXL`;
112
- $6edfbdaffbc9baf9$export$cab8448604b31f43 = `yxBNXG_spectrum-Icon--sizeXXS`;
113
- $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = `yxBNXG_spectrum-UIIcon`;
114
- $6edfbdaffbc9baf9$export$2265a487ad399d8b = `yxBNXG_spectrum-UIIcon--large`;
115
- $6edfbdaffbc9baf9$export$a6044013cf72ddc9 = `yxBNXG_spectrum-UIIcon--medium`;
116
- $6edfbdaffbc9baf9$export$83be8302c01b6478 = `yxBNXG_spectrum-UIIcon-AlertMedium`;
117
- $6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = `yxBNXG_spectrum-UIIcon-AlertSmall`;
118
- $6edfbdaffbc9baf9$export$81968d05e3681b3f = `yxBNXG_spectrum-UIIcon-ArrowDownSmall`;
119
- $6edfbdaffbc9baf9$export$c0d655f335b5bc31 = `yxBNXG_spectrum-UIIcon-ArrowLeftMedium`;
120
- $6edfbdaffbc9baf9$export$cca4342eca45562 = `yxBNXG_spectrum-UIIcon-Asterisk`;
121
- $6edfbdaffbc9baf9$export$edc4a2e9af971b26 = `yxBNXG_spectrum-UIIcon-CheckmarkMedium`;
122
- $6edfbdaffbc9baf9$export$9e665cb12e71e037 = `yxBNXG_spectrum-UIIcon-CheckmarkSmall`;
123
- $6edfbdaffbc9baf9$export$2f91b7a7627906d5 = `yxBNXG_spectrum-UIIcon-ChevronDownMedium`;
124
- $6edfbdaffbc9baf9$export$56efb4ec9eb35c07 = `yxBNXG_spectrum-UIIcon-ChevronDownSmall`;
125
- $6edfbdaffbc9baf9$export$5861dfe1d581a528 = `yxBNXG_spectrum-UIIcon-ChevronLeftLarge`;
126
- $6edfbdaffbc9baf9$export$595a122b60890c78 = `yxBNXG_spectrum-UIIcon-ChevronLeftMedium`;
127
- $6edfbdaffbc9baf9$export$596373794435f8bc = `yxBNXG_spectrum-UIIcon-ChevronRightLarge`;
128
- $6edfbdaffbc9baf9$export$32b379a02cafbfb3 = `yxBNXG_spectrum-UIIcon-ChevronRightMedium`;
129
- $6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 = `yxBNXG_spectrum-UIIcon-ChevronRightSmall`;
130
- $6edfbdaffbc9baf9$export$c1cbae72fd236fd9 = `yxBNXG_spectrum-UIIcon-ChevronUpSmall`;
131
- $6edfbdaffbc9baf9$export$636d8cde4f6b7e6 = `yxBNXG_spectrum-UIIcon-CornerTriangle`;
132
- $6edfbdaffbc9baf9$export$1f0ad4082256e3df = `yxBNXG_spectrum-UIIcon-CrossLarge`;
133
- $6edfbdaffbc9baf9$export$1e0848411e254295 = `yxBNXG_spectrum-UIIcon-CrossMedium`;
134
- $6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 = `yxBNXG_spectrum-UIIcon-CrossSmall`;
135
- $6edfbdaffbc9baf9$export$98de2b9917cd3b6a = `yxBNXG_spectrum-UIIcon-DashSmall`;
136
- $6edfbdaffbc9baf9$export$3c956876cb11c1e1 = `yxBNXG_spectrum-UIIcon-DoubleGripper`;
137
- $6edfbdaffbc9baf9$export$55cf2795737352fc = `yxBNXG_spectrum-UIIcon-FolderBreadcrumb`;
138
- $6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 = `yxBNXG_spectrum-UIIcon-HelpMedium`;
139
- $6edfbdaffbc9baf9$export$f51b22382127207d = `yxBNXG_spectrum-UIIcon-HelpSmall`;
140
- $6edfbdaffbc9baf9$export$825a6c2340d3b7e5 = `yxBNXG_spectrum-UIIcon-InfoMedium`;
141
- $6edfbdaffbc9baf9$export$4828f4a6bfd26c04 = `yxBNXG_spectrum-UIIcon-InfoSmall`;
142
- $6edfbdaffbc9baf9$export$1254ece141a8dac6 = `yxBNXG_spectrum-UIIcon-ListGripper`;
143
- $6edfbdaffbc9baf9$export$a33650c9f4cc191e = `yxBNXG_spectrum-UIIcon-Magnifier`;
144
- $6edfbdaffbc9baf9$export$9eb19533e4b8cc28 = `yxBNXG_spectrum-UIIcon-SkipLeft`;
145
- $6edfbdaffbc9baf9$export$67704939e41f705a = `yxBNXG_spectrum-UIIcon-SkipRight`;
146
- $6edfbdaffbc9baf9$export$c4d219c150b98c92 = `yxBNXG_spectrum-UIIcon-Star`;
147
- $6edfbdaffbc9baf9$export$bcda0a6a6d7202af = `yxBNXG_spectrum-UIIcon-StarOutline`;
148
- $6edfbdaffbc9baf9$export$d18d2d837989a797 = `yxBNXG_spectrum-UIIcon-SuccessMedium`;
149
- $6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = `yxBNXG_spectrum-UIIcon-SuccessSmall`;
150
- $6edfbdaffbc9baf9$export$12b8600bcd969018 = `yxBNXG_spectrum-UIIcon-TripleGripper`;
103
+ $6edfbdaffbc9baf9$export$a88a8dbe29386d31 = `wBx8DG_spectrum--large`;
104
+ $6edfbdaffbc9baf9$export$4c0c83b3f4303ef8 = `wBx8DG_spectrum--medium`;
105
+ $6edfbdaffbc9baf9$export$d374b04f30360026 = `wBx8DG_spectrum-Icon`;
106
+ $6edfbdaffbc9baf9$export$8d23c37ef2a4f13e = `wBx8DG_spectrum-Icon--sizeL`;
107
+ $6edfbdaffbc9baf9$export$8f1693ac47916bbf = `wBx8DG_spectrum-Icon--sizeM`;
108
+ $6edfbdaffbc9baf9$export$34ce05647f0c65e = `wBx8DG_spectrum-Icon--sizeS`;
109
+ $6edfbdaffbc9baf9$export$c6e70a22e841bc1b = `wBx8DG_spectrum-Icon--sizeXL`;
110
+ $6edfbdaffbc9baf9$export$557c0af6873b4222 = `wBx8DG_spectrum-Icon--sizeXS`;
111
+ $6edfbdaffbc9baf9$export$b37777493a27e620 = `wBx8DG_spectrum-Icon--sizeXXL`;
112
+ $6edfbdaffbc9baf9$export$cab8448604b31f43 = `wBx8DG_spectrum-Icon--sizeXXS`;
113
+ $6edfbdaffbc9baf9$export$c7db7fdc5aac13aa = `wBx8DG_spectrum-UIIcon`;
114
+ $6edfbdaffbc9baf9$export$2265a487ad399d8b = `wBx8DG_spectrum-UIIcon--large`;
115
+ $6edfbdaffbc9baf9$export$a6044013cf72ddc9 = `wBx8DG_spectrum-UIIcon--medium`;
116
+ $6edfbdaffbc9baf9$export$83be8302c01b6478 = `wBx8DG_spectrum-UIIcon-AlertMedium`;
117
+ $6edfbdaffbc9baf9$export$57b49d6ee2e9f187 = `wBx8DG_spectrum-UIIcon-AlertSmall`;
118
+ $6edfbdaffbc9baf9$export$81968d05e3681b3f = `wBx8DG_spectrum-UIIcon-ArrowDownSmall`;
119
+ $6edfbdaffbc9baf9$export$c0d655f335b5bc31 = `wBx8DG_spectrum-UIIcon-ArrowLeftMedium`;
120
+ $6edfbdaffbc9baf9$export$cca4342eca45562 = `wBx8DG_spectrum-UIIcon-Asterisk`;
121
+ $6edfbdaffbc9baf9$export$edc4a2e9af971b26 = `wBx8DG_spectrum-UIIcon-CheckmarkMedium`;
122
+ $6edfbdaffbc9baf9$export$9e665cb12e71e037 = `wBx8DG_spectrum-UIIcon-CheckmarkSmall`;
123
+ $6edfbdaffbc9baf9$export$2f91b7a7627906d5 = `wBx8DG_spectrum-UIIcon-ChevronDownMedium`;
124
+ $6edfbdaffbc9baf9$export$56efb4ec9eb35c07 = `wBx8DG_spectrum-UIIcon-ChevronDownSmall`;
125
+ $6edfbdaffbc9baf9$export$5861dfe1d581a528 = `wBx8DG_spectrum-UIIcon-ChevronLeftLarge`;
126
+ $6edfbdaffbc9baf9$export$595a122b60890c78 = `wBx8DG_spectrum-UIIcon-ChevronLeftMedium`;
127
+ $6edfbdaffbc9baf9$export$596373794435f8bc = `wBx8DG_spectrum-UIIcon-ChevronRightLarge`;
128
+ $6edfbdaffbc9baf9$export$32b379a02cafbfb3 = `wBx8DG_spectrum-UIIcon-ChevronRightMedium`;
129
+ $6edfbdaffbc9baf9$export$ee5de2c4d7c8faa4 = `wBx8DG_spectrum-UIIcon-ChevronRightSmall`;
130
+ $6edfbdaffbc9baf9$export$c1cbae72fd236fd9 = `wBx8DG_spectrum-UIIcon-ChevronUpSmall`;
131
+ $6edfbdaffbc9baf9$export$636d8cde4f6b7e6 = `wBx8DG_spectrum-UIIcon-CornerTriangle`;
132
+ $6edfbdaffbc9baf9$export$1f0ad4082256e3df = `wBx8DG_spectrum-UIIcon-CrossLarge`;
133
+ $6edfbdaffbc9baf9$export$1e0848411e254295 = `wBx8DG_spectrum-UIIcon-CrossMedium`;
134
+ $6edfbdaffbc9baf9$export$1c1bddac0ae5fbe5 = `wBx8DG_spectrum-UIIcon-CrossSmall`;
135
+ $6edfbdaffbc9baf9$export$98de2b9917cd3b6a = `wBx8DG_spectrum-UIIcon-DashSmall`;
136
+ $6edfbdaffbc9baf9$export$3c956876cb11c1e1 = `wBx8DG_spectrum-UIIcon-DoubleGripper`;
137
+ $6edfbdaffbc9baf9$export$55cf2795737352fc = `wBx8DG_spectrum-UIIcon-FolderBreadcrumb`;
138
+ $6edfbdaffbc9baf9$export$d5d1e3e09ea6cd5 = `wBx8DG_spectrum-UIIcon-HelpMedium`;
139
+ $6edfbdaffbc9baf9$export$f51b22382127207d = `wBx8DG_spectrum-UIIcon-HelpSmall`;
140
+ $6edfbdaffbc9baf9$export$825a6c2340d3b7e5 = `wBx8DG_spectrum-UIIcon-InfoMedium`;
141
+ $6edfbdaffbc9baf9$export$4828f4a6bfd26c04 = `wBx8DG_spectrum-UIIcon-InfoSmall`;
142
+ $6edfbdaffbc9baf9$export$1254ece141a8dac6 = `wBx8DG_spectrum-UIIcon-ListGripper`;
143
+ $6edfbdaffbc9baf9$export$a33650c9f4cc191e = `wBx8DG_spectrum-UIIcon-Magnifier`;
144
+ $6edfbdaffbc9baf9$export$9eb19533e4b8cc28 = `wBx8DG_spectrum-UIIcon-SkipLeft`;
145
+ $6edfbdaffbc9baf9$export$67704939e41f705a = `wBx8DG_spectrum-UIIcon-SkipRight`;
146
+ $6edfbdaffbc9baf9$export$c4d219c150b98c92 = `wBx8DG_spectrum-UIIcon-Star`;
147
+ $6edfbdaffbc9baf9$export$bcda0a6a6d7202af = `wBx8DG_spectrum-UIIcon-StarOutline`;
148
+ $6edfbdaffbc9baf9$export$d18d2d837989a797 = `wBx8DG_spectrum-UIIcon-SuccessMedium`;
149
+ $6edfbdaffbc9baf9$export$506ac7a1a72a2c65 = `wBx8DG_spectrum-UIIcon-SuccessSmall`;
150
+ $6edfbdaffbc9baf9$export$12b8600bcd969018 = `wBx8DG_spectrum-UIIcon-TripleGripper`;
151
151
 
152
152
 
153
153
  export {$6edfbdaffbc9baf9$exports as default};
@@ -1 +1 @@
1
- {"mappings":";;AAmBA,0BAA2B,SAAQ,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IACxE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,aAAa,GAAG,CAAC,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAE,IAAI,GAAG,KAAK,CAAC;IACpD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAA;CACvB;AAED,uCAAuC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAWnE;;GAEG;AACH,qBAAqB,KAAK,EAAE,SAAS,sEAqCpC;AC/ED,4BAA6B,SAAQ,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IAC1E,QAAQ,EAAE,aAAa,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;CAC3C;AAED,yCAAyC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AAEvE,uBAAuB,KAAK,EAAE,WAAW,sEAqCxC;AClDD,kCAAmC,SAAQ,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IAChF;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,aAAa,GAAG,CAAC,CAAC;IAC5B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;CAC3C;AAED,+CAA+C,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;AAEnF;;GAEG;AACH,6BAA6B,KAAK,EAAE,iBAAiB,sEA0BpD","sources":["packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/Icon.tsx","packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/UIIcon.tsx","packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/Illustration.tsx","packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/index.ts","packages/@react-spectrum/icon/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Icon} from './Icon';\nexport {UIIcon} from './UIIcon';\nexport {Illustration} from './Illustration';\n\nexport type {IconProps, IconPropsWithoutChildren} from './Icon';\nexport type {IllustrationProps, IllustrationPropsWithoutChildren} from './Illustration';\nexport type {UIIconProps, UIIconPropsWithoutChildren} from './UIIcon';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;AAmBA,0BAA2B,SAAQ,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IACxE;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,aAAa,GAAG,CAAC,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAE,IAAI,GAAG,KAAK,CAAC;IACpD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;IAC3C;;OAEG;IACH,KAAK,CAAC,EAAE,cAAc,CAAA;CACvB;AAED,uCAAuC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAWnE;;GAEG;AACH,qBAAqB,KAAK,EAAE,SAAS,sEA2CpC;ACrFD,4BAA6B,SAAQ,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IAC1E,QAAQ,EAAE,aAAa,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;CAC3C;AAED,yCAAyC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;AAEvE,uBAAuB,KAAK,EAAE,WAAW,sEA2CxC;ACxDD,kCAAmC,SAAQ,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IAChF;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,aAAa,GAAG,CAAC,CAAC;IAC5B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;CAC3C;AAED,+CAA+C,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;AAEnF;;GAEG;AACH,6BAA6B,KAAK,EAAE,iBAAiB,sEA0BpD","sources":["packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/Icon.tsx","packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/UIIcon.tsx","packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/Illustration.tsx","packages/@react-spectrum/icon/src/packages/@react-spectrum/icon/src/index.ts","packages/@react-spectrum/icon/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Icon} from './Icon';\nexport {UIIcon} from './UIIcon';\nexport {Illustration} from './Illustration';\n\nexport type {IconProps, IconPropsWithoutChildren} from './Icon';\nexport type {IllustrationProps, IllustrationPropsWithoutChildren} from './Illustration';\nexport type {UIIconProps, UIIconPropsWithoutChildren} from './UIIcon';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
@@ -1,261 +1,261 @@
1
- .yxBNXG_spectrum-Icon, .yxBNXG_spectrum-UIIcon {
1
+ .wBx8DG_spectrum-Icon, .wBx8DG_spectrum-UIIcon {
2
2
  color: inherit;
3
3
  fill: currentColor;
4
4
  pointer-events: none;
5
5
  display: inline-block;
6
6
  }
7
7
 
8
- :is(.yxBNXG_spectrum-Icon, .yxBNXG_spectrum-UIIcon):not(:root) {
8
+ :is(.wBx8DG_spectrum-Icon, .wBx8DG_spectrum-UIIcon):not(:root) {
9
9
  overflow: hidden;
10
10
  }
11
11
 
12
12
  @media (forced-colors: active) {
13
- .yxBNXG_spectrum-Icon, .yxBNXG_spectrum-UIIcon {
13
+ .wBx8DG_spectrum-Icon, .wBx8DG_spectrum-UIIcon {
14
14
  forced-color-adjust: auto;
15
15
  }
16
16
  }
17
17
 
18
- .yxBNXG_spectrum-Icon--sizeXXS, .yxBNXG_spectrum-Icon--sizeXXS img, .yxBNXG_spectrum-Icon--sizeXXS svg {
18
+ .wBx8DG_spectrum-Icon--sizeXXS, .wBx8DG_spectrum-Icon--sizeXXS img, .wBx8DG_spectrum-Icon--sizeXXS svg {
19
19
  block-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) / 2);
20
20
  inline-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) / 2);
21
21
  }
22
22
 
23
- .yxBNXG_spectrum-Icon--sizeXS, .yxBNXG_spectrum-Icon--sizeXS img, .yxBNXG_spectrum-Icon--sizeXS svg {
23
+ .wBx8DG_spectrum-Icon--sizeXS, .wBx8DG_spectrum-Icon--sizeXS img, .wBx8DG_spectrum-Icon--sizeXS svg {
24
24
  block-size: calc(var(--spectrum-global-dimension-size-300) / 2);
25
25
  inline-size: calc(var(--spectrum-global-dimension-size-300) / 2);
26
26
  }
27
27
 
28
- .yxBNXG_spectrum-Icon--sizeS, .yxBNXG_spectrum-Icon--sizeS img, .yxBNXG_spectrum-Icon--sizeS svg {
28
+ .wBx8DG_spectrum-Icon--sizeS, .wBx8DG_spectrum-Icon--sizeS img, .wBx8DG_spectrum-Icon--sizeS svg {
29
29
  block-size: var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225));
30
30
  inline-size: var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225));
31
31
  }
32
32
 
33
- .yxBNXG_spectrum-Icon--sizeM, .yxBNXG_spectrum-Icon--sizeM img, .yxBNXG_spectrum-Icon--sizeM svg {
33
+ .wBx8DG_spectrum-Icon--sizeM, .wBx8DG_spectrum-Icon--sizeM img, .wBx8DG_spectrum-Icon--sizeM svg {
34
34
  block-size: var(--spectrum-global-dimension-size-300);
35
35
  inline-size: var(--spectrum-global-dimension-size-300);
36
36
  }
37
37
 
38
- .yxBNXG_spectrum-Icon--sizeL, .yxBNXG_spectrum-Icon--sizeL img, .yxBNXG_spectrum-Icon--sizeL svg {
38
+ .wBx8DG_spectrum-Icon--sizeL, .wBx8DG_spectrum-Icon--sizeL img, .wBx8DG_spectrum-Icon--sizeL svg {
39
39
  block-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) * 2);
40
40
  inline-size: calc(var(--spectrum-alias-workflow-icon-size, var(--spectrum-global-dimension-size-225)) * 2);
41
41
  }
42
42
 
43
- .yxBNXG_spectrum-Icon--sizeXL, .yxBNXG_spectrum-Icon--sizeXL img, .yxBNXG_spectrum-Icon--sizeXL svg {
43
+ .wBx8DG_spectrum-Icon--sizeXL, .wBx8DG_spectrum-Icon--sizeXL img, .wBx8DG_spectrum-Icon--sizeXL svg {
44
44
  block-size: calc(var(--spectrum-global-dimension-size-300) * 2);
45
45
  inline-size: calc(var(--spectrum-global-dimension-size-300) * 2);
46
46
  }
47
47
 
48
- .yxBNXG_spectrum-Icon--sizeXXL, .yxBNXG_spectrum-Icon--sizeXXL img, .yxBNXG_spectrum-Icon--sizeXXL svg {
48
+ .wBx8DG_spectrum-Icon--sizeXXL, .wBx8DG_spectrum-Icon--sizeXXL img, .wBx8DG_spectrum-Icon--sizeXXL svg {
49
49
  block-size: calc(var(--spectrum-global-dimension-size-300) * 3);
50
50
  inline-size: calc(var(--spectrum-global-dimension-size-300) * 3);
51
51
  }
52
52
 
53
- .yxBNXG_spectrum--medium .yxBNXG_spectrum-UIIcon--large {
53
+ .wBx8DG_spectrum--medium .wBx8DG_spectrum-UIIcon--large {
54
54
  display: none;
55
55
  }
56
56
 
57
- .yxBNXG_spectrum--medium .yxBNXG_spectrum-UIIcon--medium {
57
+ .wBx8DG_spectrum--medium .wBx8DG_spectrum-UIIcon--medium {
58
58
  display: inline;
59
59
  }
60
60
 
61
- .yxBNXG_spectrum--large .yxBNXG_spectrum-UIIcon--medium {
61
+ .wBx8DG_spectrum--large .wBx8DG_spectrum-UIIcon--medium {
62
62
  display: none;
63
63
  }
64
64
 
65
- .yxBNXG_spectrum--large .yxBNXG_spectrum-UIIcon--large {
65
+ .wBx8DG_spectrum--large .wBx8DG_spectrum-UIIcon--large {
66
66
  display: inline;
67
67
  }
68
68
 
69
- .yxBNXG_spectrum--large {
69
+ .wBx8DG_spectrum--large {
70
70
  --ui-icon-large-display: block;
71
71
  --ui-icon-medium-display: none;
72
72
  }
73
73
 
74
- .yxBNXG_spectrum--medium {
74
+ .wBx8DG_spectrum--medium {
75
75
  --ui-icon-medium-display: block;
76
76
  --ui-icon-large-display: none;
77
77
  }
78
78
 
79
- .yxBNXG_spectrum-UIIcon--large {
79
+ .wBx8DG_spectrum-UIIcon--large {
80
80
  display: var(--ui-icon-large-display);
81
81
  }
82
82
 
83
- .yxBNXG_spectrum-UIIcon--medium {
83
+ .wBx8DG_spectrum-UIIcon--medium {
84
84
  display: var(--ui-icon-medium-display);
85
85
  }
86
86
 
87
- .yxBNXG_spectrum-UIIcon-AlertMedium {
87
+ .wBx8DG_spectrum-UIIcon-AlertMedium {
88
88
  inline-size: var(--spectrum-icon-alert-medium-width, var(--spectrum-global-dimension-size-225));
89
89
  block-size: var(--spectrum-icon-alert-medium-height, var(--spectrum-global-dimension-size-225));
90
90
  }
91
91
 
92
- .yxBNXG_spectrum-UIIcon-AlertSmall {
92
+ .wBx8DG_spectrum-UIIcon-AlertSmall {
93
93
  inline-size: var(--spectrum-icon-alert-small-width, var(--spectrum-global-dimension-size-175));
94
94
  block-size: var(--spectrum-icon-alert-small-height, var(--spectrum-global-dimension-size-175));
95
95
  }
96
96
 
97
- .yxBNXG_spectrum-UIIcon-ArrowDownSmall {
97
+ .wBx8DG_spectrum-UIIcon-ArrowDownSmall {
98
98
  inline-size: var(--spectrum-icon-arrow-down-small-width, var(--spectrum-global-dimension-size-100));
99
99
  block-size: var(--spectrum-icon-arrow-down-small-height);
100
100
  }
101
101
 
102
- .yxBNXG_spectrum-UIIcon-ArrowLeftMedium {
102
+ .wBx8DG_spectrum-UIIcon-ArrowLeftMedium {
103
103
  inline-size: var(--spectrum-icon-arrow-left-medium-width, var(--spectrum-global-dimension-size-175));
104
104
  block-size: var(--spectrum-icon-arrow-left-medium-height);
105
105
  }
106
106
 
107
- .yxBNXG_spectrum-UIIcon-Asterisk {
107
+ .wBx8DG_spectrum-UIIcon-Asterisk {
108
108
  inline-size: var(--spectrum-fieldlabel-asterisk-size, var(--spectrum-global-dimension-size-100));
109
109
  block-size: var(--spectrum-fieldlabel-asterisk-size, var(--spectrum-global-dimension-size-100));
110
110
  }
111
111
 
112
- .yxBNXG_spectrum-UIIcon-CheckmarkMedium {
112
+ .wBx8DG_spectrum-UIIcon-CheckmarkMedium {
113
113
  inline-size: var(--spectrum-icon-checkmark-medium-width);
114
114
  block-size: var(--spectrum-icon-checkmark-medium-height);
115
115
  }
116
116
 
117
- .yxBNXG_spectrum-UIIcon-CheckmarkSmall {
117
+ .wBx8DG_spectrum-UIIcon-CheckmarkSmall {
118
118
  inline-size: var(--spectrum-icon-checkmark-small-width);
119
119
  block-size: var(--spectrum-icon-checkmark-small-height);
120
120
  }
121
121
 
122
- .yxBNXG_spectrum-UIIcon-ChevronDownMedium {
122
+ .wBx8DG_spectrum-UIIcon-ChevronDownMedium {
123
123
  inline-size: var(--spectrum-icon-chevron-down-medium-width);
124
124
  block-size: var(--spectrum-icon-chevron-down-medium-height, var(--spectrum-global-dimension-size-75));
125
125
  }
126
126
 
127
- .yxBNXG_spectrum-UIIcon-ChevronDownSmall {
127
+ .wBx8DG_spectrum-UIIcon-ChevronDownSmall {
128
128
  inline-size: var(--spectrum-icon-chevron-down-small-width, var(--spectrum-global-dimension-size-100));
129
129
  block-size: var(--spectrum-icon-chevron-down-small-height, var(--spectrum-global-dimension-size-75));
130
130
  }
131
131
 
132
- .yxBNXG_spectrum-UIIcon-ChevronLeftLarge {
132
+ .wBx8DG_spectrum-UIIcon-ChevronLeftLarge {
133
133
  inline-size: var(--spectrum-icon-chevron-left-large-width);
134
134
  block-size: var(--spectrum-icon-chevron-left-large-height, var(--spectrum-global-dimension-size-200));
135
135
  }
136
136
 
137
- .yxBNXG_spectrum-UIIcon-ChevronLeftMedium {
137
+ .wBx8DG_spectrum-UIIcon-ChevronLeftMedium {
138
138
  inline-size: var(--spectrum-icon-chevron-left-medium-width, var(--spectrum-global-dimension-size-75));
139
139
  block-size: var(--spectrum-icon-chevron-left-medium-height);
140
140
  }
141
141
 
142
- .yxBNXG_spectrum-UIIcon-ChevronRightLarge {
142
+ .wBx8DG_spectrum-UIIcon-ChevronRightLarge {
143
143
  inline-size: var(--spectrum-icon-chevron-right-large-width);
144
144
  block-size: var(--spectrum-icon-chevron-right-large-height, var(--spectrum-global-dimension-size-200));
145
145
  }
146
146
 
147
- .yxBNXG_spectrum-UIIcon-ChevronRightMedium {
147
+ .wBx8DG_spectrum-UIIcon-ChevronRightMedium {
148
148
  inline-size: var(--spectrum-icon-chevron-right-medium-width, var(--spectrum-global-dimension-size-75));
149
149
  block-size: var(--spectrum-icon-chevron-right-medium-height);
150
150
  }
151
151
 
152
- .yxBNXG_spectrum-UIIcon-ChevronRightSmall {
152
+ .wBx8DG_spectrum-UIIcon-ChevronRightSmall {
153
153
  inline-size: var(--spectrum-icon-chevron-right-small-width, var(--spectrum-global-dimension-size-75));
154
154
  block-size: var(--spectrum-icon-chevron-right-small-height, var(--spectrum-global-dimension-size-100));
155
155
  }
156
156
 
157
- .yxBNXG_spectrum-UIIcon-ChevronUpSmall {
157
+ .wBx8DG_spectrum-UIIcon-ChevronUpSmall {
158
158
  inline-size: var(--spectrum-icon-chevron-up-small-width, var(--spectrum-global-dimension-size-100));
159
159
  block-size: var(--spectrum-icon-chevron-up-small-height, var(--spectrum-global-dimension-size-75));
160
160
  }
161
161
 
162
- .yxBNXG_spectrum-UIIcon-CornerTriangle {
162
+ .wBx8DG_spectrum-UIIcon-CornerTriangle {
163
163
  inline-size: var(--spectrum-icon-cornertriangle-width, var(--spectrum-global-dimension-size-65));
164
164
  block-size: var(--spectrum-icon-cornertriangle-height, var(--spectrum-global-dimension-size-65));
165
165
  }
166
166
 
167
- .yxBNXG_spectrum-UIIcon-CrossLarge {
167
+ .wBx8DG_spectrum-UIIcon-CrossLarge {
168
168
  inline-size: var(--spectrum-icon-cross-large-width);
169
169
  block-size: var(--spectrum-icon-cross-large-height);
170
170
  }
171
171
 
172
- .yxBNXG_spectrum-UIIcon-CrossMedium {
172
+ .wBx8DG_spectrum-UIIcon-CrossMedium {
173
173
  inline-size: var(--spectrum-icon-cross-medium-width, var(--spectrum-global-dimension-size-100));
174
174
  block-size: var(--spectrum-icon-cross-medium-height, var(--spectrum-global-dimension-size-100));
175
175
  }
176
176
 
177
- .yxBNXG_spectrum-UIIcon-CrossSmall {
177
+ .wBx8DG_spectrum-UIIcon-CrossSmall {
178
178
  inline-size: var(--spectrum-icon-cross-small-width, var(--spectrum-global-dimension-size-100));
179
179
  block-size: var(--spectrum-icon-cross-small-height, var(--spectrum-global-dimension-size-100));
180
180
  }
181
181
 
182
- .yxBNXG_spectrum-UIIcon-DashSmall {
182
+ .wBx8DG_spectrum-UIIcon-DashSmall {
183
183
  inline-size: var(--spectrum-icon-dash-small-width);
184
184
  block-size: var(--spectrum-icon-dash-small-height);
185
185
  }
186
186
 
187
- .yxBNXG_spectrum-UIIcon-DoubleGripper {
187
+ .wBx8DG_spectrum-UIIcon-DoubleGripper {
188
188
  inline-size: var(--spectrum-icon-doublegripper-width, var(--spectrum-global-dimension-size-200));
189
189
  block-size: var(--spectrum-icon-doublegripper-height, var(--spectrum-global-dimension-size-50));
190
190
  }
191
191
 
192
- .yxBNXG_spectrum-UIIcon-FolderBreadcrumb {
192
+ .wBx8DG_spectrum-UIIcon-FolderBreadcrumb {
193
193
  inline-size: var(--spectrum-icon-folderbreadcrumb-width, var(--spectrum-global-dimension-size-225));
194
194
  block-size: var(--spectrum-icon-folderbreadcrumb-height, var(--spectrum-global-dimension-size-225));
195
195
  }
196
196
 
197
- .yxBNXG_spectrum-UIIcon-HelpMedium {
197
+ .wBx8DG_spectrum-UIIcon-HelpMedium {
198
198
  inline-size: var(--spectrum-icon-info-medium-width, var(--spectrum-global-dimension-size-225));
199
199
  block-size: var(--spectrum-icon-info-medium-height, var(--spectrum-global-dimension-size-225));
200
200
  }
201
201
 
202
- .yxBNXG_spectrum-UIIcon-HelpSmall {
202
+ .wBx8DG_spectrum-UIIcon-HelpSmall {
203
203
  inline-size: var(--spectrum-icon-info-small-width, var(--spectrum-global-dimension-size-175));
204
204
  block-size: var(--spectrum-icon-info-small-height, var(--spectrum-global-dimension-size-175));
205
205
  }
206
206
 
207
- .yxBNXG_spectrum-UIIcon-InfoMedium {
207
+ .wBx8DG_spectrum-UIIcon-InfoMedium {
208
208
  inline-size: var(--spectrum-icon-info-medium-width, var(--spectrum-global-dimension-size-225));
209
209
  block-size: var(--spectrum-icon-info-medium-height, var(--spectrum-global-dimension-size-225));
210
210
  }
211
211
 
212
- .yxBNXG_spectrum-UIIcon-InfoSmall {
212
+ .wBx8DG_spectrum-UIIcon-InfoSmall {
213
213
  inline-size: var(--spectrum-icon-info-small-width, var(--spectrum-global-dimension-size-175));
214
214
  block-size: var(--spectrum-icon-info-small-height, var(--spectrum-global-dimension-size-175));
215
215
  }
216
216
 
217
- .yxBNXG_spectrum-UIIcon-ListGripper {
217
+ .wBx8DG_spectrum-UIIcon-ListGripper {
218
218
  inline-size: var(--spectrum-global-dimension-size-65);
219
219
  block-size: var(--spectrum-global-dimension-size-150);
220
220
  }
221
221
 
222
- .yxBNXG_spectrum-UIIcon-Magnifier {
222
+ .wBx8DG_spectrum-UIIcon-Magnifier {
223
223
  inline-size: var(--spectrum-icon-magnifier-width, var(--spectrum-global-dimension-size-200));
224
224
  block-size: var(--spectrum-icon-magnifier-height, var(--spectrum-global-dimension-size-200));
225
225
  }
226
226
 
227
- .yxBNXG_spectrum-UIIcon-SkipLeft {
227
+ .wBx8DG_spectrum-UIIcon-SkipLeft {
228
228
  inline-size: var(--spectrum-icon-skip-left-width);
229
229
  block-size: var(--spectrum-icon-skip-left-height);
230
230
  }
231
231
 
232
- .yxBNXG_spectrum-UIIcon-SkipRight {
232
+ .wBx8DG_spectrum-UIIcon-SkipRight {
233
233
  inline-size: var(--spectrum-icon-skip-right-width);
234
234
  block-size: var(--spectrum-icon-skip-right-height);
235
235
  }
236
236
 
237
- .yxBNXG_spectrum-UIIcon-Star {
237
+ .wBx8DG_spectrum-UIIcon-Star {
238
238
  inline-size: var(--spectrum-icon-star-width, var(--spectrum-global-dimension-size-225));
239
239
  block-size: var(--spectrum-icon-star-height, var(--spectrum-global-dimension-size-225));
240
240
  }
241
241
 
242
- .yxBNXG_spectrum-UIIcon-StarOutline {
242
+ .wBx8DG_spectrum-UIIcon-StarOutline {
243
243
  inline-size: var(--spectrum-icon-star-outline-width, var(--spectrum-global-dimension-size-225));
244
244
  block-size: var(--spectrum-icon-star-outline-height, var(--spectrum-global-dimension-size-225));
245
245
  }
246
246
 
247
- .yxBNXG_spectrum-UIIcon-SuccessMedium {
247
+ .wBx8DG_spectrum-UIIcon-SuccessMedium {
248
248
  inline-size: var(--spectrum-icon-success-medium-width, var(--spectrum-global-dimension-size-225));
249
249
  block-size: var(--spectrum-icon-success-medium-height, var(--spectrum-global-dimension-size-225));
250
250
  }
251
251
 
252
- .yxBNXG_spectrum-UIIcon-SuccessSmall {
252
+ .wBx8DG_spectrum-UIIcon-SuccessSmall {
253
253
  inline-size: var(--spectrum-icon-success-small-width, var(--spectrum-global-dimension-size-175));
254
254
  block-size: var(--spectrum-icon-success-small-height, var(--spectrum-global-dimension-size-175));
255
255
  }
256
256
 
257
- .yxBNXG_spectrum-UIIcon-TripleGripper {
257
+ .wBx8DG_spectrum-UIIcon-TripleGripper {
258
258
  inline-size: var(--spectrum-icon-triplegripper-width);
259
259
  block-size: var(--spectrum-icon-triplegripper-height, var(--spectrum-global-dimension-size-85));
260
260
  }
261
- /*# sourceMappingURL=vars.4163ca54.css.map */
261
+ /*# sourceMappingURL=vars.b0351abd.css.map */
@@ -1 +1 @@
1
- {"mappings":"AAoCA;;;;;;;AAWE;;;;AAQF;EACE;;;;;AAoBA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AAuBA;;;;AAGA;;;;AAMA;;;;AAGA;;;;AAOF;;;;;AAKA;;;;;AAKA;;;;AAIA;;;;AAMA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA","sources":["packages/@adobe/spectrum-css-temp/components/icon/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"],"names":[],"version":3,"file":"vars.4163ca54.css.map"}
1
+ {"mappings":"AAoCA;;;;;;;AAWE;;;;AAQF;EACE;;;;;AAoBA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AASA;;;;;AAuBA;;;;AAGA;;;;AAMA;;;;AAGA;;;;AAOF;;;;;AAKA;;;;;AAKA;;;;AAIA;;;;AAMA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA;;;;;AAKA","sources":["packages/@adobe/spectrum-css-temp/components/icon/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"],"names":[],"version":3,"file":"vars.b0351abd.css.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/icon",
3
- "version": "3.7.15",
3
+ "version": "3.8.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,9 +36,9 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/utils": "^3.25.1",
40
- "@react-spectrum/utils": "^3.11.9",
41
- "@react-types/shared": "^3.24.1",
39
+ "@react-aria/utils": "^3.26.0",
40
+ "@react-spectrum/utils": "^3.12.0",
41
+ "@react-types/shared": "^3.26.0",
42
42
  "@swc/helpers": "^0.5.0"
43
43
  },
44
44
  "devDependencies": {
@@ -46,10 +46,10 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@react-spectrum/provider": "^3.0.0",
49
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
49
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "f0aa6aacee60af265dc8994b9274ccf072a850aa"
54
+ "gitHead": "71f0ef23053f9e03ee7e97df736e8b083e006849"
55
55
  }
package/src/Icon.tsx CHANGED
@@ -13,9 +13,9 @@
13
13
  import {AriaLabelingProps, DOMProps, IconColorValue, StyleProps} from '@react-types/shared';
14
14
  import {baseStyleProps, classNames, StyleHandlers, useSlotProps, useStyleProps} from '@react-spectrum/utils';
15
15
  import {filterDOMProps} from '@react-aria/utils';
16
+ import {ProviderContext, useProvider} from '@react-spectrum/provider';
16
17
  import React, {ReactElement} from 'react';
17
18
  import styles from '@adobe/spectrum-css-temp/components/icon/vars.css';
18
- import {useProvider} from '@react-spectrum/provider';
19
19
 
20
20
  export interface IconProps extends DOMProps, AriaLabelingProps, StyleProps {
21
21
  /**
@@ -70,9 +70,15 @@ export function Icon(props: IconProps) {
70
70
  } = props;
71
71
  let {styleProps} = useStyleProps(otherProps, iconStyleProps);
72
72
 
73
- let provider = useProvider();
73
+ let provider: undefined | ProviderContext;
74
+ try {
75
+ // eslint-disable-next-line react-hooks/rules-of-hooks
76
+ provider = useProvider();
77
+ } catch {
78
+ // ignore
79
+ }
74
80
  let scale = 'M';
75
- if (provider !== null) {
81
+ if (provider != null) {
76
82
  scale = provider.scale === 'large' ? 'L' : 'M';
77
83
  }
78
84
  if (!ariaHidden) {
package/src/UIIcon.tsx CHANGED
@@ -13,9 +13,9 @@
13
13
  import {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared';
14
14
  import {classNames, useSlotProps, useStyleProps} from '@react-spectrum/utils';
15
15
  import {filterDOMProps} from '@react-aria/utils';
16
+ import {ProviderContext, useProvider} from '@react-spectrum/provider';
16
17
  import React, {ReactElement} from 'react';
17
18
  import styles from '@adobe/spectrum-css-temp/components/icon/vars.css';
18
- import {useProvider} from '@react-spectrum/provider';
19
19
 
20
20
  export interface UIIconProps extends DOMProps, AriaLabelingProps, StyleProps {
21
21
  children: ReactElement<any>,
@@ -38,9 +38,15 @@ export function UIIcon(props: UIIconProps) {
38
38
  } = props;
39
39
 
40
40
  let {styleProps} = useStyleProps(otherProps);
41
- let provider = useProvider();
41
+ let provider: undefined | ProviderContext;
42
+ try {
43
+ // eslint-disable-next-line react-hooks/rules-of-hooks
44
+ provider = useProvider();
45
+ } catch {
46
+ // ignore
47
+ }
42
48
  let scale = 'M';
43
- if (provider !== null) {
49
+ if (provider != null) {
44
50
  scale = provider.scale === 'large' ? 'L' : 'M';
45
51
  }
46
52