@react-spectrum/avatar 3.0.0-nightly.3036 → 3.0.0-nightly.3047

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/main.css CHANGED
@@ -1,2 +1 @@
1
- ._spectrum-Avatar_ca183{width:var(--spectrum-global-dimension-size-200);height:var(--spectrum-global-dimension-size-200);border-radius:50%;border-style:none;-webkit-user-drag:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;opacity:1;outline:none;transition:box-shadow .13s ease-out}._spectrum-Avatar_ca183._is-disabled_ca183{opacity:.3}
2
- /*# sourceMappingURL=main.css.map */
1
+ ._spectrum-Avatar_2ebb13{-webkit-user-drag:none;border-radius:var(--spectrum-avatar-small-border-radius,50%);border-style:none;height:var(--spectrum-avatar-small-height,var(--spectrum-global-dimension-size-200));opacity:var(--spectrum-avatar-small-opacity,1);outline:none;transition:box-shadow var(--spectrum-global-animation-duration-100,.13s) ease-out;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:var(--spectrum-avatar-small-width,var(--spectrum-global-dimension-size-200))}._spectrum-Avatar_2ebb13._is-disabled_2ebb13{opacity:var(--spectrum-avatar-small-opacity-disabled,.3)}
package/dist/main.js CHANGED
@@ -1,86 +1,84 @@
1
- var {
2
- useProviderProps
3
- } = require("@react-spectrum/provider");
4
-
5
- var _react2 = require("react");
6
-
7
- var _react = $parcel$interopDefault(_react2);
8
-
9
- var {
10
- forwardRef
11
- } = _react2;
12
-
13
- var {
14
- filterDOMProps
15
- } = require("@react-aria/utils");
16
-
17
- var {
18
- classNames,
19
- dimensionValue,
20
- useDOMRef,
21
- useSlotProps,
22
- useStyleProps
23
- } = require("@react-spectrum/utils");
24
-
25
- var _babelRuntimeHelpersObjectWithoutPropertiesLoose = $parcel$interopDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
26
-
27
- var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends"));
28
-
29
1
  require("./main.css");
30
-
2
+ var $gypnJ$reactspectrumutils = require("@react-spectrum/utils");
3
+ var $gypnJ$reactariautils = require("@react-aria/utils");
4
+ var $gypnJ$react = require("react");
5
+ var $gypnJ$reactspectrumprovider = require("@react-spectrum/provider");
6
+
7
+ function $parcel$exportWildcard(dest, source) {
8
+ Object.keys(source).forEach(function(key) {
9
+ if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
10
+ return;
11
+ }
12
+
13
+ Object.defineProperty(dest, key, {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return source[key];
17
+ }
18
+ });
19
+ });
20
+
21
+ return dest;
22
+ }
31
23
  function $parcel$interopDefault(a) {
32
24
  return a && a.__esModule ? a.default : a;
33
25
  }
34
-
35
- // ASSET: /home/circleci/react-spectrum/node_modules/@adobe/spectrum-css-temp/components/avatar/vars.css
36
- var $c50f780e8a469663e4c8f4c720757905$exports = {};
37
- $c50f780e8a469663e4c8f4c720757905$exports = {
38
- "spectrum-Avatar": "_spectrum-Avatar_ca183",
39
- "is-disabled": "_is-disabled_ca183"
40
- };
41
- const $b69d40df4c2102f2c1a7396dae1$var$DEFAULT_SIZE = 'avatar-size-100';
42
- const $b69d40df4c2102f2c1a7396dae1$var$SIZE_RE = /^size-\d+/;
43
- var $c50f780e8a469663e4c8f4c720757905$$interop$default = $parcel$interopDefault($c50f780e8a469663e4c8f4c720757905$exports);
44
-
45
- function $b69d40df4c2102f2c1a7396dae1$var$Avatar(props, ref) {
46
- props = useSlotProps(props, 'avatar');
47
-
48
- const _useProviderProps = useProviderProps(props),
49
- {
50
- alt = '',
51
- isDisabled,
52
- size,
53
- src
54
- } = _useProviderProps,
55
- otherProps = _babelRuntimeHelpersObjectWithoutPropertiesLoose(_useProviderProps, ["alt", "isDisabled", "size", "src"]);
56
-
57
- const {
58
- styleProps
59
- } = useStyleProps(otherProps);
60
- const domRef = useDOMRef(ref);
61
- const domProps = filterDOMProps(otherProps); // Casting `size` as `any` since `isNaN` expects a `number`, but we want it
62
- // to handle `string` numbers; e.g. '300' as opposed to 300
63
-
64
- const sizeValue = typeof size !== 'number' && ($b69d40df4c2102f2c1a7396dae1$var$SIZE_RE.test(size) || !isNaN(size)) ? dimensionValue($b69d40df4c2102f2c1a7396dae1$var$DEFAULT_SIZE) // override disallowed size values
65
- : dimensionValue(size || $b69d40df4c2102f2c1a7396dae1$var$DEFAULT_SIZE);
66
- return /*#__PURE__*/_react.createElement("img", _babelRuntimeHelpersExtends({}, styleProps, domProps, {
67
- alt: alt,
68
- className: classNames($c50f780e8a469663e4c8f4c720757905$$interop$default, 'spectrum-Avatar', {
69
- 'is-disabled': isDisabled
70
- }, styleProps.className),
71
- ref: domRef,
72
- src: src,
73
- style: _babelRuntimeHelpersExtends({}, styleProps.style, sizeValue && {
74
- height: sizeValue,
75
- width: sizeValue
76
- })
77
- }));
26
+ function $parcel$export(e, n, v, s) {
27
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28
+ }
29
+ var $b33d4a32c02fc586$exports = {};
30
+
31
+ $parcel$export($b33d4a32c02fc586$exports, "Avatar", () => $b33d4a32c02fc586$export$e2255cf6045e8d47);
32
+
33
+
34
+
35
+ var $2532d2ce73522990$exports = {};
36
+
37
+ $parcel$export($2532d2ce73522990$exports, "spectrum-Avatar", () => $2532d2ce73522990$export$2e049b8d031600fb, (v) => $2532d2ce73522990$export$2e049b8d031600fb = v);
38
+ $parcel$export($2532d2ce73522990$exports, "is-disabled", () => $2532d2ce73522990$export$d35bc1e505d1ebbf, (v) => $2532d2ce73522990$export$d35bc1e505d1ebbf = v);
39
+ var $2532d2ce73522990$export$2e049b8d031600fb;
40
+ var $2532d2ce73522990$export$d35bc1e505d1ebbf;
41
+ $2532d2ce73522990$export$2e049b8d031600fb = "_spectrum-Avatar_2ebb13";
42
+ $2532d2ce73522990$export$d35bc1e505d1ebbf = "_is-disabled_2ebb13";
43
+
44
+
45
+
46
+ const $b33d4a32c02fc586$var$DEFAULT_SIZE = 'avatar-size-100';
47
+ const $b33d4a32c02fc586$var$SIZE_RE = /^size-\d+/;
48
+ function $b33d4a32c02fc586$var$Avatar(props, ref) {
49
+ props = $gypnJ$reactspectrumutils.useSlotProps(props, 'avatar');
50
+ const { alt: alt = '' , isDisabled: isDisabled , size: size , src: src , ...otherProps } = $gypnJ$reactspectrumprovider.useProviderProps(props);
51
+ const { styleProps: styleProps } = $gypnJ$reactspectrumutils.useStyleProps(otherProps);
52
+ const domRef = $gypnJ$reactspectrumutils.useDOMRef(ref);
53
+ const domProps = $gypnJ$reactariautils.filterDOMProps(otherProps);
54
+ // Casting `size` as `any` since `isNaN` expects a `number`, but we want it
55
+ // to handle `string` numbers; e.g. '300' as opposed to 300
56
+ const sizeValue = typeof size !== 'number' && ($b33d4a32c02fc586$var$SIZE_RE.test(size) || !isNaN(size)) ? $gypnJ$reactspectrumutils.dimensionValue($b33d4a32c02fc586$var$DEFAULT_SIZE) // override disallowed size values
57
+ : $gypnJ$reactspectrumutils.dimensionValue(size || $b33d4a32c02fc586$var$DEFAULT_SIZE);
58
+ return(/*#__PURE__*/ ($parcel$interopDefault($gypnJ$react)).createElement("img", {
59
+ ...styleProps,
60
+ ...domProps,
61
+ alt: alt,
62
+ className: $gypnJ$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($2532d2ce73522990$exports)), 'spectrum-Avatar', {
63
+ 'is-disabled': isDisabled
64
+ }, styleProps.className),
65
+ ref: domRef,
66
+ src: src,
67
+ style: {
68
+ ...styleProps.style,
69
+ ...sizeValue && {
70
+ height: sizeValue,
71
+ width: sizeValue
72
+ }
73
+ }
74
+ }));
78
75
  }
79
76
  /**
80
77
  * An avatar is a thumbnail representation of an entity, such as a user or an organization.
81
- */
78
+ */ const $b33d4a32c02fc586$export$e2255cf6045e8d47 = /*#__PURE__*/ $gypnJ$react.forwardRef($b33d4a32c02fc586$var$Avatar);
79
+
80
+
81
+ $parcel$exportWildcard(module.exports, $b33d4a32c02fc586$exports);
82
82
 
83
83
 
84
- const Avatar = /*#__PURE__*/forwardRef($b69d40df4c2102f2c1a7396dae1$var$Avatar);
85
- exports.Avatar = Avatar;
86
84
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,sBAAT,CAAgCC,CAAhC,EAAmC;AACjC,SAAOA,CAAC,IAAIA,CAAC,CAACC,UAAP,GAAoBD,CAAC,CAACE,OAAtB,GAAgCF,CAAvC;AACD;;;;ACFD,4CAAiB;AACf,qBAAmB,wBADJ;AAEf,iBAAe;AAFA,CAAjB;ACoBA,MAAMG,6CAAY,GAAG,iBAArB;AACA,MAAMC,wCAAO,GAAG,WAAhB;;;AAEA,SAASC,uCAAT,CAAgBC,KAAhB,EAA4CC,GAA5C,EAA2E;AACzED,EAAAA,KAAK,GAAGE,YAAY,CAACF,KAAD,EAAQ,QAAR,CAApB;;AACA,4BAMIG,gBAAgB,CAACH,KAAD,CANpB;AAAA,QAAM;AACJI,IAAAA,GAAG,GAAG,EADF;AAEJC,IAAAA,UAFI;AAGJC,IAAAA,IAHI;AAIJC,IAAAA;AAJI,GAAN;AAAA,QAKKC,UALL;;AAQA,QAAM;AAACC,IAAAA;AAAD,MAAeC,aAAa,CAACF,UAAD,CAAlC;AACA,QAAMG,MAAM,GAAGC,SAAS,CAACX,GAAD,CAAxB;AAEA,QAAMY,QAAQ,GAAGC,cAAc,CAACN,UAAD,CAA/B,CAbyE,CAezE;AACA;;AACA,QAAMO,SAAS,GAAG,OAAOT,IAAP,KAAgB,QAAhB,KAA6BR,wCAAO,CAACkB,IAAR,CAAaV,IAAb,KAAsB,CAACW,KAAK,CAACX,IAAD,CAAzD,IACdY,cAAc,CAACrB,6CAAD,CADA,CACe;AADf,IAEdqB,cAAc,CAACZ,IAAI,IAAIT,6CAAT,CAFlB;AAIA,sBACE,4DACMY,UADN,EAEMI,QAFN;AAGE,IAAA,GAAG,EAAET,GAHP;AAIE,IAAA,SAAS,EAAEe,UAAU,qDAEnB,iBAFmB,EAGnB;AACE,qBAAed;AADjB,KAHmB,EAMnBI,UAAU,CAACW,SANQ,CAJvB;AAWE,IAAA,GAAG,EAAET,MAXP;AAYE,IAAA,GAAG,EAAEJ,GAZP;AAaE,IAAA,KAAK,kCACAE,UAAU,CAACY,KADX,EAECN,SAAS,IAAI;AAACO,MAAAA,MAAM,EAAEP,SAAT;AAAoBQ,MAAAA,KAAK,EAAER;AAA3B,KAFd;AAbP,KADF;AAmBD;AAED;;;;;AAGA,MAAMS,MAAO,gBAAGC,UAAU,CAAC1B,uCAAD,CAA1B","sources":["./node_modules/@parcel/scope-hoisting/lib/helpers.js","./node_modules/@adobe/spectrum-css-temp/components/avatar/vars.css","./packages/@react-spectrum/avatar/src/Avatar.tsx"],"sourcesContent":["function $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true});\n}\n\nfunction $parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule') {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n },\n });\n });\n\n return dest;\n}\n\nfunction $parcel$missingModule(name) {\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n}\n\nvar $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n","/*\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","/*\n * Copyright 2021 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, dimensionValue, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumAvatarProps} from '@react-types/avatar';\nimport styles from '@adobe/spectrum-css-temp/components/avatar/vars.css';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nconst DEFAULT_SIZE = 'avatar-size-100';\nconst SIZE_RE = /^size-\\d+/;\n\nfunction Avatar(props: SpectrumAvatarProps, ref: DOMRef<HTMLImageElement>) {\n props = useSlotProps(props, 'avatar');\n const {\n alt = '',\n isDisabled,\n size,\n src,\n ...otherProps\n } = useProviderProps(props);\n\n const {styleProps} = useStyleProps(otherProps);\n const domRef = useDOMRef(ref);\n\n const domProps = filterDOMProps(otherProps);\n\n // Casting `size` as `any` since `isNaN` expects a `number`, but we want it\n // to handle `string` numbers; e.g. '300' as opposed to 300\n const sizeValue = typeof size !== 'number' && (SIZE_RE.test(size) || !isNaN(size as any))\n ? dimensionValue(DEFAULT_SIZE) // override disallowed size values\n : dimensionValue(size || DEFAULT_SIZE);\n\n return (\n <img\n {...styleProps}\n {...domProps}\n alt={alt}\n className={classNames(\n styles,\n 'spectrum-Avatar',\n {\n 'is-disabled': isDisabled\n },\n styleProps.className)}\n ref={domRef}\n src={src}\n style={{\n ...styleProps.style,\n ...(sizeValue && {height: sizeValue, width: sizeValue})\n }} />\n );\n}\n\n/**\n * An avatar is a thumbnail representation of an entity, such as a user or an organization.\n */\nconst _Avatar = forwardRef(Avatar);\nexport {_Avatar as Avatar};\n"],"names":["$parcel$interopDefault","a","__esModule","default","DEFAULT_SIZE","SIZE_RE","Avatar","props","ref","useSlotProps","useProviderProps","alt","isDisabled","size","src","otherProps","styleProps","useStyleProps","domRef","useDOMRef","domProps","filterDOMProps","sizeValue","test","isNaN","dimensionValue","classNames","className","style","height","width","_Avatar","forwardRef"],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEAA,GAAiC;AACjC,GAA6B;AAD7B,yCAAiC,GAAG,CAAyB;AAC7D,yCAA6B,GAAG,CAAqB;;;;ADmBrD,KAAK,CAAC,kCAAY,GAAG,CAAiB;AACtC,KAAK,CAAC,6BAAO;SAEJ,4BAAM,CAAC,KAA0B,EAAE,GAA6B,EAAE,CAAC;IAC1E,KAAK,GAAG,sCAAY,CAAC,KAAK,EAAE,CAAQ;IACpC,KAAK,CAAC,CAAC,MACL,GAAG,GAAG,CAAE,gBACR,UAAU,SACV,IAAI,QACJ,GAAG,MACA,UAAU,CACf,CAAC,GAAG,6CAAgB,CAAC,KAAK;IAE1B,KAAK,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,uCAAa,CAAC,UAAU;IAC7C,KAAK,CAAC,MAAM,GAAG,mCAAS,CAAC,GAAG;IAE5B,KAAK,CAAC,QAAQ,GAAG,oCAAc,CAAC,UAAU;IAE1C,EAA2E,AAA3E,yEAA2E;IAC3E,EAA2D,AAA3D,yDAA2D;IAC3D,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,KAAK,CAAQ,YAAK,6BAAO,CAAC,IAAI,CAAC,IAAI,MAAM,KAAK,CAAC,IAAI,KAC5E,wCAAc,CAAC,kCAAY,CAAE,CAAkC,AAAlC,EAAkC,AAAlC,gCAAkC;OAC/D,wCAAc,CAAC,IAAI,IAAI,kCAAY;IAEvC,MAAM,oEACH,CAAG;WACE,UAAU;WACV,QAAQ;QACZ,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,oCAAU,CACnB,gEAAM,EACN,CAAiB,kBACjB,CAAC;YACC,CAAa,cAAE,UAAU;QAC3B,CAAC,EACD,UAAU,CAAC,SAAS;QACtB,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,CAAC;eACH,UAAU,CAAC,KAAK;eACf,SAAS,IAAI,CAAC;gBAAA,MAAM,EAAE,SAAS;gBAAE,KAAK,EAAE,SAAS;YAAA,CAAC;QACxD,CAAC;;AAEP,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,KAAK,CAAC,yCAAO,iBAAG,uBAAU,CAAC,4BAAM","sources":["packages/@react-spectrum/avatar/src/index.ts","packages/@react-spectrum/avatar/src/Avatar.tsx","packages/@adobe/spectrum-css-temp/components/avatar/vars.css"],"sourcesContent":["/*\n * Copyright 2021 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 * from './Avatar';\n","/*\n * Copyright 2021 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, dimensionValue, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumAvatarProps} from '@react-types/avatar';\nimport styles from '@adobe/spectrum-css-temp/components/avatar/vars.css';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nconst DEFAULT_SIZE = 'avatar-size-100';\nconst SIZE_RE = /^size-\\d+/;\n\nfunction Avatar(props: SpectrumAvatarProps, ref: DOMRef<HTMLImageElement>) {\n props = useSlotProps(props, 'avatar');\n const {\n alt = '',\n isDisabled,\n size,\n src,\n ...otherProps\n } = useProviderProps(props);\n\n const {styleProps} = useStyleProps(otherProps);\n const domRef = useDOMRef(ref);\n\n const domProps = filterDOMProps(otherProps);\n\n // Casting `size` as `any` since `isNaN` expects a `number`, but we want it\n // to handle `string` numbers; e.g. '300' as opposed to 300\n const sizeValue = typeof size !== 'number' && (SIZE_RE.test(size) || !isNaN(size as any))\n ? dimensionValue(DEFAULT_SIZE) // override disallowed size values\n : dimensionValue(size || DEFAULT_SIZE);\n\n return (\n <img\n {...styleProps}\n {...domProps}\n alt={alt}\n className={classNames(\n styles,\n 'spectrum-Avatar',\n {\n 'is-disabled': isDisabled\n },\n styleProps.className)}\n ref={domRef}\n src={src}\n style={{\n ...styleProps.style,\n ...(sizeValue && {height: sizeValue, width: sizeValue})\n }} />\n );\n}\n\n/**\n * An avatar is a thumbnail representation of an entity, such as a user or an organization.\n */\nconst _Avatar = forwardRef(Avatar);\nexport {_Avatar as Avatar};\n","/*\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":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,63 +1,68 @@
1
- import { useProviderProps } from "@react-spectrum/provider";
2
- import _react, { forwardRef } from "react";
3
- import { filterDOMProps } from "@react-aria/utils";
4
- import { classNames, dimensionValue, useDOMRef, useSlotProps, useStyleProps } from "@react-spectrum/utils";
5
- import _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
6
- import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends";
7
1
  import "./main.css";
2
+ import {useSlotProps as $hq22a$useSlotProps, useStyleProps as $hq22a$useStyleProps, useDOMRef as $hq22a$useDOMRef, dimensionValue as $hq22a$dimensionValue, classNames as $hq22a$classNames} from "@react-spectrum/utils";
3
+ import {filterDOMProps as $hq22a$filterDOMProps} from "@react-aria/utils";
4
+ import $hq22a$react, {forwardRef as $hq22a$forwardRef} from "react";
5
+ import {useProviderProps as $hq22a$useProviderProps} from "@react-spectrum/provider";
8
6
 
9
7
  function $parcel$interopDefault(a) {
10
8
  return a && a.__esModule ? a.default : a;
11
9
  }
10
+ function $parcel$export(e, n, v, s) {
11
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
12
+ }
13
+ var $a69c37843023575e$exports = {};
14
+
15
+ $parcel$export($a69c37843023575e$exports, "Avatar", () => $a69c37843023575e$export$e2255cf6045e8d47);
16
+
17
+
18
+
19
+ var $47a9f056c8715842$exports = {};
12
20
 
13
- // ASSET: /home/circleci/react-spectrum/node_modules/@adobe/spectrum-css-temp/components/avatar/vars.css
14
- var $c1a1d7400f0146dc9896f2dfb6373$exports = {};
15
- $c1a1d7400f0146dc9896f2dfb6373$exports = {
16
- "spectrum-Avatar": "_spectrum-Avatar_ca183",
17
- "is-disabled": "_is-disabled_ca183"
18
- };
19
- const $ad431d176724d42a1288909e8043217d$var$DEFAULT_SIZE = 'avatar-size-100';
20
- const $ad431d176724d42a1288909e8043217d$var$SIZE_RE = /^size-\d+/;
21
- var $c1a1d7400f0146dc9896f2dfb6373$$interop$default = $parcel$interopDefault($c1a1d7400f0146dc9896f2dfb6373$exports);
22
-
23
- function $ad431d176724d42a1288909e8043217d$var$Avatar(props, ref) {
24
- props = useSlotProps(props, 'avatar');
25
-
26
- const _useProviderProps = useProviderProps(props),
27
- {
28
- alt = '',
29
- isDisabled,
30
- size,
31
- src
32
- } = _useProviderProps,
33
- otherProps = _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose(_useProviderProps, ["alt", "isDisabled", "size", "src"]);
34
-
35
- const {
36
- styleProps
37
- } = useStyleProps(otherProps);
38
- const domRef = useDOMRef(ref);
39
- const domProps = filterDOMProps(otherProps); // Casting `size` as `any` since `isNaN` expects a `number`, but we want it
40
- // to handle `string` numbers; e.g. '300' as opposed to 300
41
-
42
- const sizeValue = typeof size !== 'number' && ($ad431d176724d42a1288909e8043217d$var$SIZE_RE.test(size) || !isNaN(size)) ? dimensionValue($ad431d176724d42a1288909e8043217d$var$DEFAULT_SIZE) // override disallowed size values
43
- : dimensionValue(size || $ad431d176724d42a1288909e8043217d$var$DEFAULT_SIZE);
44
- return /*#__PURE__*/_react.createElement("img", _babelRuntimeHelpersEsmExtends({}, styleProps, domProps, {
45
- alt: alt,
46
- className: classNames($c1a1d7400f0146dc9896f2dfb6373$$interop$default, 'spectrum-Avatar', {
47
- 'is-disabled': isDisabled
48
- }, styleProps.className),
49
- ref: domRef,
50
- src: src,
51
- style: _babelRuntimeHelpersEsmExtends({}, styleProps.style, sizeValue && {
52
- height: sizeValue,
53
- width: sizeValue
54
- })
55
- }));
21
+ $parcel$export($47a9f056c8715842$exports, "spectrum-Avatar", () => $47a9f056c8715842$export$2e049b8d031600fb, (v) => $47a9f056c8715842$export$2e049b8d031600fb = v);
22
+ $parcel$export($47a9f056c8715842$exports, "is-disabled", () => $47a9f056c8715842$export$d35bc1e505d1ebbf, (v) => $47a9f056c8715842$export$d35bc1e505d1ebbf = v);
23
+ var $47a9f056c8715842$export$2e049b8d031600fb;
24
+ var $47a9f056c8715842$export$d35bc1e505d1ebbf;
25
+ $47a9f056c8715842$export$2e049b8d031600fb = "_spectrum-Avatar_2ebb13";
26
+ $47a9f056c8715842$export$d35bc1e505d1ebbf = "_is-disabled_2ebb13";
27
+
28
+
29
+
30
+ const $a69c37843023575e$var$DEFAULT_SIZE = 'avatar-size-100';
31
+ const $a69c37843023575e$var$SIZE_RE = /^size-\d+/;
32
+ function $a69c37843023575e$var$Avatar(props, ref) {
33
+ props = $hq22a$useSlotProps(props, 'avatar');
34
+ const { alt: alt = '' , isDisabled: isDisabled , size: size , src: src , ...otherProps } = $hq22a$useProviderProps(props);
35
+ const { styleProps: styleProps } = $hq22a$useStyleProps(otherProps);
36
+ const domRef = $hq22a$useDOMRef(ref);
37
+ const domProps = $hq22a$filterDOMProps(otherProps);
38
+ // Casting `size` as `any` since `isNaN` expects a `number`, but we want it
39
+ // to handle `string` numbers; e.g. '300' as opposed to 300
40
+ const sizeValue = typeof size !== 'number' && ($a69c37843023575e$var$SIZE_RE.test(size) || !isNaN(size)) ? $hq22a$dimensionValue($a69c37843023575e$var$DEFAULT_SIZE) // override disallowed size values
41
+ : $hq22a$dimensionValue(size || $a69c37843023575e$var$DEFAULT_SIZE);
42
+ return(/*#__PURE__*/ $hq22a$react.createElement("img", {
43
+ ...styleProps,
44
+ ...domProps,
45
+ alt: alt,
46
+ className: $hq22a$classNames((/*@__PURE__*/$parcel$interopDefault($47a9f056c8715842$exports)), 'spectrum-Avatar', {
47
+ 'is-disabled': isDisabled
48
+ }, styleProps.className),
49
+ ref: domRef,
50
+ src: src,
51
+ style: {
52
+ ...styleProps.style,
53
+ ...sizeValue && {
54
+ height: sizeValue,
55
+ width: sizeValue
56
+ }
57
+ }
58
+ }));
56
59
  }
57
60
  /**
58
61
  * An avatar is a thumbnail representation of an entity, such as a user or an organization.
59
- */
62
+ */ const $a69c37843023575e$export$e2255cf6045e8d47 = /*#__PURE__*/ $hq22a$forwardRef($a69c37843023575e$var$Avatar);
63
+
64
+
60
65
 
61
66
 
62
- export const Avatar = /*#__PURE__*/forwardRef($ad431d176724d42a1288909e8043217d$var$Avatar);
67
+ export {$a69c37843023575e$export$e2255cf6045e8d47 as Avatar};
63
68
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAAA,SAASA,sBAAT,CAAgCC,CAAhC,EAAmC;AACjC,SAAOA,CAAC,IAAIA,CAAC,CAACC,UAAP,GAAoBD,CAAC,CAACE,OAAtB,GAAgCF,CAAvC;AACD;;;;ACFD,yCAAiB;AACf,qBAAmB,wBADJ;AAEf,iBAAe;AAFA,CAAjB;ACoBA,MAAMG,kDAAY,GAAG,iBAArB;AACA,MAAMC,6CAAO,GAAG,WAAhB;;;AAEA,SAASC,4CAAT,CAAgBC,KAAhB,EAA4CC,GAA5C,EAA2E;AACzED,EAAAA,KAAK,GAAGE,YAAY,CAACF,KAAD,EAAQ,QAAR,CAApB;;AACA,4BAMIG,gBAAgB,CAACH,KAAD,CANpB;AAAA,QAAM;AACJI,IAAAA,GAAG,GAAG,EADF;AAEJC,IAAAA,UAFI;AAGJC,IAAAA,IAHI;AAIJC,IAAAA;AAJI,GAAN;AAAA,QAKKC,UALL;;AAQA,QAAM;AAACC,IAAAA;AAAD,MAAeC,aAAa,CAACF,UAAD,CAAlC;AACA,QAAMG,MAAM,GAAGC,SAAS,CAACX,GAAD,CAAxB;AAEA,QAAMY,QAAQ,GAAGC,cAAc,CAACN,UAAD,CAA/B,CAbyE,CAezE;AACA;;AACA,QAAMO,SAAS,GAAG,OAAOT,IAAP,KAAgB,QAAhB,KAA6BR,6CAAO,CAACkB,IAAR,CAAaV,IAAb,KAAsB,CAACW,KAAK,CAACX,IAAD,CAAzD,IACdY,cAAc,CAACrB,kDAAD,CADA,CACe;AADf,IAEdqB,cAAc,CAACZ,IAAI,IAAIT,kDAAT,CAFlB;AAIA,sBACE,+DACMY,UADN,EAEMI,QAFN;AAGE,IAAA,GAAG,EAAET,GAHP;AAIE,IAAA,SAAS,EAAEe,UAAU,kDAEnB,iBAFmB,EAGnB;AACE,qBAAed;AADjB,KAHmB,EAMnBI,UAAU,CAACW,SANQ,CAJvB;AAWE,IAAA,GAAG,EAAET,MAXP;AAYE,IAAA,GAAG,EAAEJ,GAZP;AAaE,IAAA,KAAK,qCACAE,UAAU,CAACY,KADX,EAECN,SAAS,IAAI;AAACO,MAAAA,MAAM,EAAEP,SAAT;AAAoBQ,MAAAA,KAAK,EAAER;AAA3B,KAFd;AAbP,KADF;AAmBD;AAED;;;;;OAGA,MAAMS,MAAO,gBAAGC,UAAU,CAAC1B,4CAAD,CAA1B","sources":["./node_modules/@parcel/scope-hoisting/lib/helpers.js","./node_modules/@adobe/spectrum-css-temp/components/avatar/vars.css","./packages/@react-spectrum/avatar/src/Avatar.tsx"],"sourcesContent":["function $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true});\n}\n\nfunction $parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule') {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n },\n });\n });\n\n return dest;\n}\n\nfunction $parcel$missingModule(name) {\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n}\n\nvar $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n","/*\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","/*\n * Copyright 2021 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, dimensionValue, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumAvatarProps} from '@react-types/avatar';\nimport styles from '@adobe/spectrum-css-temp/components/avatar/vars.css';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nconst DEFAULT_SIZE = 'avatar-size-100';\nconst SIZE_RE = /^size-\\d+/;\n\nfunction Avatar(props: SpectrumAvatarProps, ref: DOMRef<HTMLImageElement>) {\n props = useSlotProps(props, 'avatar');\n const {\n alt = '',\n isDisabled,\n size,\n src,\n ...otherProps\n } = useProviderProps(props);\n\n const {styleProps} = useStyleProps(otherProps);\n const domRef = useDOMRef(ref);\n\n const domProps = filterDOMProps(otherProps);\n\n // Casting `size` as `any` since `isNaN` expects a `number`, but we want it\n // to handle `string` numbers; e.g. '300' as opposed to 300\n const sizeValue = typeof size !== 'number' && (SIZE_RE.test(size) || !isNaN(size as any))\n ? dimensionValue(DEFAULT_SIZE) // override disallowed size values\n : dimensionValue(size || DEFAULT_SIZE);\n\n return (\n <img\n {...styleProps}\n {...domProps}\n alt={alt}\n className={classNames(\n styles,\n 'spectrum-Avatar',\n {\n 'is-disabled': isDisabled\n },\n styleProps.className)}\n ref={domRef}\n src={src}\n style={{\n ...styleProps.style,\n ...(sizeValue && {height: sizeValue, width: sizeValue})\n }} />\n );\n}\n\n/**\n * An avatar is a thumbnail representation of an entity, such as a user or an organization.\n */\nconst _Avatar = forwardRef(Avatar);\nexport {_Avatar as Avatar};\n"],"names":["$parcel$interopDefault","a","__esModule","default","DEFAULT_SIZE","SIZE_RE","Avatar","props","ref","useSlotProps","useProviderProps","alt","isDisabled","size","src","otherProps","styleProps","useStyleProps","domRef","useDOMRef","domProps","filterDOMProps","sizeValue","test","isNaN","dimensionValue","classNames","className","style","height","width","_Avatar","forwardRef"],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;AEAA,GAAiC;AACjC,GAA6B;AAD7B,yCAAiC,GAAG,CAAyB;AAC7D,yCAA6B,GAAG,CAAqB;;;;ADmBrD,KAAK,CAAC,kCAAY,GAAG,CAAiB;AACtC,KAAK,CAAC,6BAAO;SAEJ,4BAAM,CAAC,KAA0B,EAAE,GAA6B,EAAE,CAAC;IAC1E,KAAK,GAAG,mBAAY,CAAC,KAAK,EAAE,CAAQ;IACpC,KAAK,CAAC,CAAC,MACL,GAAG,GAAG,CAAE,gBACR,UAAU,SACV,IAAI,QACJ,GAAG,MACA,UAAU,CACf,CAAC,GAAG,uBAAgB,CAAC,KAAK;IAE1B,KAAK,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,UAAU;IAC7C,KAAK,CAAC,MAAM,GAAG,gBAAS,CAAC,GAAG;IAE5B,KAAK,CAAC,QAAQ,GAAG,qBAAc,CAAC,UAAU;IAE1C,EAA2E,AAA3E,yEAA2E;IAC3E,EAA2D,AAA3D,yDAA2D;IAC3D,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,KAAK,CAAQ,YAAK,6BAAO,CAAC,IAAI,CAAC,IAAI,MAAM,KAAK,CAAC,IAAI,KAC5E,qBAAc,CAAC,kCAAY,CAAE,CAAkC,AAAlC,EAAkC,AAAlC,gCAAkC;OAC/D,qBAAc,CAAC,IAAI,IAAI,kCAAY;IAEvC,MAAM,0CACH,CAAG;WACE,UAAU;WACV,QAAQ;QACZ,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,iBAAU,CACnB,gEAAM,EACN,CAAiB,kBACjB,CAAC;YACC,CAAa,cAAE,UAAU;QAC3B,CAAC,EACD,UAAU,CAAC,SAAS;QACtB,GAAG,EAAE,MAAM;QACX,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,CAAC;eACH,UAAU,CAAC,KAAK;eACf,SAAS,IAAI,CAAC;gBAAA,MAAM,EAAE,SAAS;gBAAE,KAAK,EAAE,SAAS;YAAA,CAAC;QACxD,CAAC;;AAEP,CAAC;AAED,EAEG,AAFH;;CAEG,AAFH,EAEG,CACH,KAAK,CAAC,yCAAO,iBAAG,iBAAU,CAAC,4BAAM","sources":["packages/@react-spectrum/avatar/src/index.ts","packages/@react-spectrum/avatar/src/Avatar.tsx","packages/@adobe/spectrum-css-temp/components/avatar/vars.css"],"sourcesContent":["/*\n * Copyright 2021 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 * from './Avatar';\n","/*\n * Copyright 2021 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, dimensionValue, useDOMRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\nimport React, {forwardRef} from 'react';\nimport {SpectrumAvatarProps} from '@react-types/avatar';\nimport styles from '@adobe/spectrum-css-temp/components/avatar/vars.css';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nconst DEFAULT_SIZE = 'avatar-size-100';\nconst SIZE_RE = /^size-\\d+/;\n\nfunction Avatar(props: SpectrumAvatarProps, ref: DOMRef<HTMLImageElement>) {\n props = useSlotProps(props, 'avatar');\n const {\n alt = '',\n isDisabled,\n size,\n src,\n ...otherProps\n } = useProviderProps(props);\n\n const {styleProps} = useStyleProps(otherProps);\n const domRef = useDOMRef(ref);\n\n const domProps = filterDOMProps(otherProps);\n\n // Casting `size` as `any` since `isNaN` expects a `number`, but we want it\n // to handle `string` numbers; e.g. '300' as opposed to 300\n const sizeValue = typeof size !== 'number' && (SIZE_RE.test(size) || !isNaN(size as any))\n ? dimensionValue(DEFAULT_SIZE) // override disallowed size values\n : dimensionValue(size || DEFAULT_SIZE);\n\n return (\n <img\n {...styleProps}\n {...domProps}\n alt={alt}\n className={classNames(\n styles,\n 'spectrum-Avatar',\n {\n 'is-disabled': isDisabled\n },\n styleProps.className)}\n ref={domRef}\n src={src}\n style={{\n ...styleProps.style,\n ...(sizeValue && {height: sizeValue, width: sizeValue})\n }} />\n );\n}\n\n/**\n * An avatar is a thumbnail representation of an entity, such as a user or an organization.\n */\nconst _Avatar = forwardRef(Avatar);\nexport {_Avatar as Avatar};\n","/*\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":"module.js.map"}
@@ -1 +1 @@
1
- {"mappings":"A;A;AAiEA;A;GAEG;AACH,OAAA,MAAM,+IAA4B,CAAC","sources":["./packages/@react-spectrum/avatar/src/packages/@react-spectrum/avatar/src/Avatar.tsx","./packages/@react-spectrum/avatar/src/packages/@react-spectrum/avatar/src/index.ts"],"sourcesContent":[null,null],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;AAiEA;;GAEG;AACH,OAAA,MAAM,+IAA4B,CAAC","sources":["packages/@react-spectrum/avatar/src/packages/@react-spectrum/avatar/src/Avatar.tsx","packages/@react-spectrum/avatar/src/packages/@react-spectrum/avatar/src/index.ts","packages/@react-spectrum/avatar/src/index.ts"],"sourcesContent":[null,null,"/*\n * Copyright 2021 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 * from './Avatar';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/avatar",
3
- "version": "3.0.0-nightly.3036+f6ce7acdd",
3
+ "version": "3.0.0-nightly.3047+87960ad25",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.6.2",
35
- "@react-aria/utils": "3.0.0-nightly.1345+f6ce7acdd",
36
- "@react-spectrum/utils": "3.0.0-nightly.1345+f6ce7acdd",
37
- "@react-types/avatar": "3.0.0-nightly.3036+f6ce7acdd",
38
- "@react-types/shared": "3.0.0-nightly.1345+f6ce7acdd"
35
+ "@react-aria/utils": "3.0.0-nightly.1356+87960ad25",
36
+ "@react-spectrum/utils": "3.0.0-nightly.1356+87960ad25",
37
+ "@react-types/avatar": "3.0.0-nightly.3047+87960ad25",
38
+ "@react-types/shared": "3.0.0-nightly.1356+87960ad25"
39
39
  },
40
40
  "devDependencies": {
41
- "@adobe/spectrum-css-temp": "3.0.0-nightly.1345+f6ce7acdd"
41
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.1356+87960ad25"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@react-spectrum/provider": "^3.2.1",
@@ -47,5 +47,5 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  },
50
- "gitHead": "f6ce7acdd85c9a23a3397b0e75350e3208fdd04a"
50
+ "gitHead": "87960ad25c26bc4cd6af506bb5e7e0f06621556c"
51
51
  }
package/dist/main.css.map DELETED
@@ -1 +0,0 @@
1
- {"mappings":"AAYA,wBACE,+CAAyC,CACzC,gDAA2C,CAE3C,iBAAyD,CACzD,iBAAkB,CAElB,sBAAuB,CACvB,wBAAiB,CAAjB,oBAAiB,CAAjB,gBAAiB,CCPjB,SAA6C,CAC7C,YAAa,CACb,mCDMF,CCJE,2CACE,UACF","sources":["./node_modules/@adobe/spectrum-css-temp/components/avatar/index.css","./node_modules/@adobe/spectrum-css-temp/components/avatar/skin.css"],"sourcesContent":["/*\nCopyright 2019 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\n.spectrum-Avatar {\n width: var(--spectrum-avatar-small-width);\n height: var(--spectrum-avatar-small-height);\n\n border-radius: var(--spectrum-avatar-small-border-radius);\n border-style: none;\n\n -webkit-user-drag: none;\n user-select: none;\n}\n","/*\nCopyright 2019 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\n.spectrum-Avatar {\n opacity: var(--spectrum-avatar-small-opacity);\n outline: none;\n transition: box-shadow var(--spectrum-global-animation-duration-100) ease-out;\n\n &.is-disabled {\n opacity: var(--spectrum-avatar-small-opacity-disabled);\n }\n}\n"],"names":[],"version":3,"file":"main.css.map"}