@react-spectrum/avatar 3.0.12-nightly.4624 → 3.0.13-nightly.4629

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.
@@ -30,24 +30,24 @@ $parcel$export(module.exports, "Avatar", () => $cc830936d47bae2b$export$e2255cf6
30
30
 
31
31
 
32
32
 
33
- const $cc830936d47bae2b$var$DEFAULT_SIZE = "avatar-size-100";
33
+ const $cc830936d47bae2b$var$DEFAULT_SIZE = 'avatar-size-100';
34
34
  const $cc830936d47bae2b$var$SIZE_RE = /^size-\d+/;
35
35
  function $cc830936d47bae2b$var$Avatar(props, ref) {
36
- props = (0, $3FJGB$reactspectrumutils.useSlotProps)(props, "avatar");
37
- const { alt: alt = "", isDisabled: isDisabled, size: size = $cc830936d47bae2b$var$DEFAULT_SIZE, src: src, ...otherProps } = (0, $3FJGB$reactspectrumprovider.useProviderProps)(props);
36
+ props = (0, $3FJGB$reactspectrumutils.useSlotProps)(props, 'avatar');
37
+ const { alt: alt = '', isDisabled: isDisabled, size: size = $cc830936d47bae2b$var$DEFAULT_SIZE, src: src, ...otherProps } = (0, $3FJGB$reactspectrumprovider.useProviderProps)(props);
38
38
  const { styleProps: styleProps } = (0, $3FJGB$reactspectrumutils.useStyleProps)(otherProps);
39
39
  const domRef = (0, $3FJGB$reactspectrumutils.useDOMRef)(ref);
40
40
  const domProps = (0, $3FJGB$reactariautils.filterDOMProps)(otherProps);
41
41
  // Casting `size` as `any` since `isNaN` expects a `number`, but we want it
42
42
  // to handle `string` numbers; e.g. '300' as opposed to 300
43
- const sizeValue = typeof size !== "number" && ($cc830936d47bae2b$var$SIZE_RE.test(size) || !isNaN(size)) ? (0, $3FJGB$reactspectrumutils.dimensionValue)($cc830936d47bae2b$var$DEFAULT_SIZE) // override disallowed size values
43
+ const sizeValue = typeof size !== 'number' && ($cc830936d47bae2b$var$SIZE_RE.test(size) || !isNaN(size)) ? (0, $3FJGB$reactspectrumutils.dimensionValue)($cc830936d47bae2b$var$DEFAULT_SIZE) // override disallowed size values
44
44
  : (0, $3FJGB$reactspectrumutils.dimensionValue)(size || $cc830936d47bae2b$var$DEFAULT_SIZE);
45
45
  return /*#__PURE__*/ (0, ($parcel$interopDefault($3FJGB$react))).createElement("img", {
46
46
  ...styleProps,
47
47
  ...domProps,
48
48
  alt: alt,
49
- className: (0, $3FJGB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($d22788318b5f79eb$exports))), "spectrum-Avatar", {
50
- "is-disabled": isDisabled
49
+ className: (0, $3FJGB$reactspectrumutils.classNames)((0, ($parcel$interopDefault($d22788318b5f79eb$exports))), 'spectrum-Avatar', {
50
+ 'is-disabled': isDisabled
51
51
  }, styleProps.className),
52
52
  ref: domRef,
53
53
  src: src,
package/dist/Avatar.mjs CHANGED
@@ -24,24 +24,24 @@ function $parcel$interopDefault(a) {
24
24
 
25
25
 
26
26
 
27
- const $ab0b7b2186c39312$var$DEFAULT_SIZE = "avatar-size-100";
27
+ const $ab0b7b2186c39312$var$DEFAULT_SIZE = 'avatar-size-100';
28
28
  const $ab0b7b2186c39312$var$SIZE_RE = /^size-\d+/;
29
29
  function $ab0b7b2186c39312$var$Avatar(props, ref) {
30
- props = (0, $73onX$useSlotProps)(props, "avatar");
31
- const { alt: alt = "", isDisabled: isDisabled, size: size = $ab0b7b2186c39312$var$DEFAULT_SIZE, src: src, ...otherProps } = (0, $73onX$useProviderProps)(props);
30
+ props = (0, $73onX$useSlotProps)(props, 'avatar');
31
+ const { alt: alt = '', isDisabled: isDisabled, size: size = $ab0b7b2186c39312$var$DEFAULT_SIZE, src: src, ...otherProps } = (0, $73onX$useProviderProps)(props);
32
32
  const { styleProps: styleProps } = (0, $73onX$useStyleProps)(otherProps);
33
33
  const domRef = (0, $73onX$useDOMRef)(ref);
34
34
  const domProps = (0, $73onX$filterDOMProps)(otherProps);
35
35
  // Casting `size` as `any` since `isNaN` expects a `number`, but we want it
36
36
  // to handle `string` numbers; e.g. '300' as opposed to 300
37
- const sizeValue = typeof size !== "number" && ($ab0b7b2186c39312$var$SIZE_RE.test(size) || !isNaN(size)) ? (0, $73onX$dimensionValue)($ab0b7b2186c39312$var$DEFAULT_SIZE) // override disallowed size values
37
+ const sizeValue = typeof size !== 'number' && ($ab0b7b2186c39312$var$SIZE_RE.test(size) || !isNaN(size)) ? (0, $73onX$dimensionValue)($ab0b7b2186c39312$var$DEFAULT_SIZE) // override disallowed size values
38
38
  : (0, $73onX$dimensionValue)(size || $ab0b7b2186c39312$var$DEFAULT_SIZE);
39
39
  return /*#__PURE__*/ (0, $73onX$react).createElement("img", {
40
40
  ...styleProps,
41
41
  ...domProps,
42
42
  alt: alt,
43
- className: (0, $73onX$classNames)((0, ($parcel$interopDefault($73onX$avatar_vars_cssmodulejs))), "spectrum-Avatar", {
44
- "is-disabled": isDisabled
43
+ className: (0, $73onX$classNames)((0, ($parcel$interopDefault($73onX$avatar_vars_cssmodulejs))), 'spectrum-Avatar', {
44
+ 'is-disabled': isDisabled
45
45
  }, styleProps.className),
46
46
  ref: domRef,
47
47
  src: src,
@@ -24,24 +24,24 @@ function $parcel$interopDefault(a) {
24
24
 
25
25
 
26
26
 
27
- const $ab0b7b2186c39312$var$DEFAULT_SIZE = "avatar-size-100";
27
+ const $ab0b7b2186c39312$var$DEFAULT_SIZE = 'avatar-size-100';
28
28
  const $ab0b7b2186c39312$var$SIZE_RE = /^size-\d+/;
29
29
  function $ab0b7b2186c39312$var$Avatar(props, ref) {
30
- props = (0, $73onX$useSlotProps)(props, "avatar");
31
- const { alt: alt = "", isDisabled: isDisabled, size: size = $ab0b7b2186c39312$var$DEFAULT_SIZE, src: src, ...otherProps } = (0, $73onX$useProviderProps)(props);
30
+ props = (0, $73onX$useSlotProps)(props, 'avatar');
31
+ const { alt: alt = '', isDisabled: isDisabled, size: size = $ab0b7b2186c39312$var$DEFAULT_SIZE, src: src, ...otherProps } = (0, $73onX$useProviderProps)(props);
32
32
  const { styleProps: styleProps } = (0, $73onX$useStyleProps)(otherProps);
33
33
  const domRef = (0, $73onX$useDOMRef)(ref);
34
34
  const domProps = (0, $73onX$filterDOMProps)(otherProps);
35
35
  // Casting `size` as `any` since `isNaN` expects a `number`, but we want it
36
36
  // to handle `string` numbers; e.g. '300' as opposed to 300
37
- const sizeValue = typeof size !== "number" && ($ab0b7b2186c39312$var$SIZE_RE.test(size) || !isNaN(size)) ? (0, $73onX$dimensionValue)($ab0b7b2186c39312$var$DEFAULT_SIZE) // override disallowed size values
37
+ const sizeValue = typeof size !== 'number' && ($ab0b7b2186c39312$var$SIZE_RE.test(size) || !isNaN(size)) ? (0, $73onX$dimensionValue)($ab0b7b2186c39312$var$DEFAULT_SIZE) // override disallowed size values
38
38
  : (0, $73onX$dimensionValue)(size || $ab0b7b2186c39312$var$DEFAULT_SIZE);
39
39
  return /*#__PURE__*/ (0, $73onX$react).createElement("img", {
40
40
  ...styleProps,
41
41
  ...domProps,
42
42
  alt: alt,
43
- className: (0, $73onX$classNames)((0, ($parcel$interopDefault($73onX$avatar_vars_cssmodulejs))), "spectrum-Avatar", {
44
- "is-disabled": isDisabled
43
+ className: (0, $73onX$classNames)((0, ($parcel$interopDefault($73onX$avatar_vars_cssmodulejs))), 'spectrum-Avatar', {
44
+ 'is-disabled': isDisabled
45
45
  }, styleProps.className),
46
46
  ref: domRef,
47
47
  src: src,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/avatar",
3
- "version": "3.0.12-nightly.4624+d80999e89",
3
+ "version": "3.0.13-nightly.4629+c34886769",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,14 +36,14 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/utils": "3.0.0-nightly.2912+d80999e89",
40
- "@react-spectrum/utils": "3.0.0-nightly.2912+d80999e89",
41
- "@react-types/avatar": "3.0.7-nightly.4624+d80999e89",
42
- "@react-types/shared": "3.0.0-nightly.2912+d80999e89",
39
+ "@react-aria/utils": "3.0.0-nightly.2917+c34886769",
40
+ "@react-spectrum/utils": "3.0.0-nightly.2917+c34886769",
41
+ "@react-types/avatar": "3.0.8-nightly.4629+c34886769",
42
+ "@react-types/shared": "3.0.0-nightly.2917+c34886769",
43
43
  "@swc/helpers": "^0.5.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@adobe/spectrum-css-temp": "3.0.0-nightly.2912+d80999e89"
46
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.2917+c34886769"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@react-spectrum/provider": "^3.2.1",
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "d80999e897b4d4db9fcfb4e9b8fcdc9fdd700882"
55
+ "gitHead": "c34886769d3e69bb56553a02eead6a0fd877e754"
56
56
  }