@react-spectrum/icon 3.7.12 → 3.7.13

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
@@ -36,28 +36,28 @@ function $2f297c87d3047269$var$iconColorValue(value) {
36
36
  const $2f297c87d3047269$var$iconStyleProps = {
37
37
  ...(0, $hx3aW$reactspectrumutils.baseStyleProps),
38
38
  color: [
39
- "color",
39
+ 'color',
40
40
  $2f297c87d3047269$var$iconColorValue
41
41
  ]
42
42
  };
43
43
  function $2f297c87d3047269$export$f04a61298a47a40f(props) {
44
- props = (0, $hx3aW$reactspectrumutils.useSlotProps)(props, "icon");
45
- let { children: children, size: size, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
44
+ props = (0, $hx3aW$reactspectrumutils.useSlotProps)(props, 'icon');
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
47
  let provider = (0, $hx3aW$reactspectrumprovider.useProvider)();
48
- let scale = "M";
49
- if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
48
+ let scale = 'M';
49
+ if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
50
50
  if (!ariaHidden) ariaHidden = undefined;
51
51
  // Use user specified size, falling back to provider scale if size is undef
52
52
  let iconSize = size ? size : scale;
53
53
  return /*#__PURE__*/ (0, ($parcel$interopDefault($hx3aW$react))).cloneElement(children, {
54
54
  ...(0, $hx3aW$reactariautils.filterDOMProps)(otherProps),
55
55
  ...styleProps,
56
- focusable: "false",
57
- "aria-label": ariaLabel,
58
- "aria-hidden": ariaLabel ? ariaHidden || undefined : true,
59
- role: "img",
60
- className: (0, $hx3aW$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ef39e0c80b682c7$exports))), children.props.className, "spectrum-Icon", `spectrum-Icon--size${iconSize}`, styleProps.className)
56
+ focusable: 'false',
57
+ 'aria-label': ariaLabel,
58
+ 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
59
+ role: 'img',
60
+ className: (0, $hx3aW$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ef39e0c80b682c7$exports))), children.props.className, 'spectrum-Icon', `spectrum-Icon--size${iconSize}`, styleProps.className)
61
61
  });
62
62
  }
63
63
 
package/dist/Icon.mjs CHANGED
@@ -30,31 +30,31 @@ function $6bfb67578ee6effd$var$iconColorValue(value) {
30
30
  const $6bfb67578ee6effd$var$iconStyleProps = {
31
31
  ...(0, $hJE0A$baseStyleProps),
32
32
  color: [
33
- "color",
33
+ 'color',
34
34
  $6bfb67578ee6effd$var$iconColorValue
35
35
  ]
36
36
  };
37
37
  function $6bfb67578ee6effd$export$f04a61298a47a40f(props) {
38
- props = (0, $hJE0A$useSlotProps)(props, "icon");
39
- let { children: children, size: size, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
38
+ props = (0, $hJE0A$useSlotProps)(props, 'icon');
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
41
  let provider = (0, $hJE0A$useProvider)();
42
- let scale = "M";
43
- if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
42
+ let scale = 'M';
43
+ if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
44
44
  if (!ariaHidden) ariaHidden = undefined;
45
45
  // Use user specified size, falling back to provider scale if size is undef
46
46
  let iconSize = size ? size : scale;
47
47
  return /*#__PURE__*/ (0, $hJE0A$react).cloneElement(children, {
48
48
  ...(0, $hJE0A$filterDOMProps)(otherProps),
49
49
  ...styleProps,
50
- focusable: "false",
51
- "aria-label": ariaLabel,
52
- "aria-hidden": ariaLabel ? ariaHidden || undefined : true,
53
- role: "img",
54
- className: (0, $hJE0A$classNames)((0, ($parcel$interopDefault($hJE0A$icon_vars_cssmodulejs))), children.props.className, "spectrum-Icon", `spectrum-Icon--size${iconSize}`, styleProps.className)
50
+ focusable: 'false',
51
+ 'aria-label': ariaLabel,
52
+ 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
53
+ role: 'img',
54
+ className: (0, $hJE0A$classNames)((0, ($parcel$interopDefault($hJE0A$icon_vars_cssmodulejs))), children.props.className, 'spectrum-Icon', `spectrum-Icon--size${iconSize}`, styleProps.className)
55
55
  });
56
56
  }
57
57
 
58
58
 
59
59
  export {$6bfb67578ee6effd$export$f04a61298a47a40f as Icon};
60
- //# sourceMappingURL=Icon.mjs.map
60
+ //# sourceMappingURL=Icon.module.js.map
@@ -30,28 +30,28 @@ function $6bfb67578ee6effd$var$iconColorValue(value) {
30
30
  const $6bfb67578ee6effd$var$iconStyleProps = {
31
31
  ...(0, $hJE0A$baseStyleProps),
32
32
  color: [
33
- "color",
33
+ 'color',
34
34
  $6bfb67578ee6effd$var$iconColorValue
35
35
  ]
36
36
  };
37
37
  function $6bfb67578ee6effd$export$f04a61298a47a40f(props) {
38
- props = (0, $hJE0A$useSlotProps)(props, "icon");
39
- let { children: children, size: size, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
38
+ props = (0, $hJE0A$useSlotProps)(props, 'icon');
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
41
  let provider = (0, $hJE0A$useProvider)();
42
- let scale = "M";
43
- if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
42
+ let scale = 'M';
43
+ if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
44
44
  if (!ariaHidden) ariaHidden = undefined;
45
45
  // Use user specified size, falling back to provider scale if size is undef
46
46
  let iconSize = size ? size : scale;
47
47
  return /*#__PURE__*/ (0, $hJE0A$react).cloneElement(children, {
48
48
  ...(0, $hJE0A$filterDOMProps)(otherProps),
49
49
  ...styleProps,
50
- focusable: "false",
51
- "aria-label": ariaLabel,
52
- "aria-hidden": ariaLabel ? ariaHidden || undefined : true,
53
- role: "img",
54
- className: (0, $hJE0A$classNames)((0, ($parcel$interopDefault($hJE0A$icon_vars_cssmodulejs))), children.props.className, "spectrum-Icon", `spectrum-Icon--size${iconSize}`, styleProps.className)
50
+ focusable: 'false',
51
+ 'aria-label': ariaLabel,
52
+ 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
53
+ role: 'img',
54
+ className: (0, $hJE0A$classNames)((0, ($parcel$interopDefault($hJE0A$icon_vars_cssmodulejs))), children.props.className, 'spectrum-Icon', `spectrum-Icon--size${iconSize}`, styleProps.className)
55
55
  });
56
56
  }
57
57
 
@@ -26,19 +26,19 @@ $parcel$export(module.exports, "Illustration", () => $ebfd4d66f1999633$export$d4
26
26
 
27
27
 
28
28
  function $ebfd4d66f1999633$export$d43c2e2ca9b2c105(props) {
29
- props = (0, $fIMBi$reactspectrumutils.useSlotProps)(props, "illustration");
30
- let { children: children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-hidden": ariaHidden, ...otherProps } = props;
29
+ props = (0, $fIMBi$reactspectrumutils.useSlotProps)(props, 'illustration');
30
+ let { children: children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-hidden': ariaHidden, ...otherProps } = props;
31
31
  let { styleProps: styleProps } = (0, $fIMBi$reactspectrumutils.useStyleProps)(otherProps);
32
32
  let hasLabel = ariaLabel || ariaLabelledby;
33
33
  if (!ariaHidden) ariaHidden = undefined;
34
34
  return /*#__PURE__*/ (0, ($parcel$interopDefault($fIMBi$react))).cloneElement(children, {
35
35
  ...(0, $fIMBi$reactariautils.filterDOMProps)(otherProps),
36
36
  ...styleProps,
37
- focusable: "false",
38
- "aria-label": ariaLabel,
39
- "aria-labelledby": ariaLabelledby,
40
- "aria-hidden": ariaHidden,
41
- role: hasLabel ? "img" : undefined
37
+ focusable: 'false',
38
+ 'aria-label': ariaLabel,
39
+ 'aria-labelledby': ariaLabelledby,
40
+ 'aria-hidden': ariaHidden,
41
+ role: hasLabel ? 'img' : undefined
42
42
  });
43
43
  }
44
44
 
@@ -16,22 +16,22 @@ import {useSlotProps as $2nyUy$useSlotProps, useStyleProps as $2nyUy$useStylePro
16
16
 
17
17
 
18
18
  function $88bb85359d3a4aed$export$d43c2e2ca9b2c105(props) {
19
- props = (0, $2nyUy$useSlotProps)(props, "illustration");
20
- let { children: children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-hidden": ariaHidden, ...otherProps } = props;
19
+ props = (0, $2nyUy$useSlotProps)(props, 'illustration');
20
+ let { children: children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-hidden': ariaHidden, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $2nyUy$useStyleProps)(otherProps);
22
22
  let hasLabel = ariaLabel || ariaLabelledby;
23
23
  if (!ariaHidden) ariaHidden = undefined;
24
24
  return /*#__PURE__*/ (0, $2nyUy$react).cloneElement(children, {
25
25
  ...(0, $2nyUy$filterDOMProps)(otherProps),
26
26
  ...styleProps,
27
- focusable: "false",
28
- "aria-label": ariaLabel,
29
- "aria-labelledby": ariaLabelledby,
30
- "aria-hidden": ariaHidden,
31
- role: hasLabel ? "img" : undefined
27
+ focusable: 'false',
28
+ 'aria-label': ariaLabel,
29
+ 'aria-labelledby': ariaLabelledby,
30
+ 'aria-hidden': ariaHidden,
31
+ role: hasLabel ? 'img' : undefined
32
32
  });
33
33
  }
34
34
 
35
35
 
36
36
  export {$88bb85359d3a4aed$export$d43c2e2ca9b2c105 as Illustration};
37
- //# sourceMappingURL=Illustration.mjs.map
37
+ //# sourceMappingURL=Illustration.module.js.map
@@ -16,19 +16,19 @@ import {useSlotProps as $2nyUy$useSlotProps, useStyleProps as $2nyUy$useStylePro
16
16
 
17
17
 
18
18
  function $88bb85359d3a4aed$export$d43c2e2ca9b2c105(props) {
19
- props = (0, $2nyUy$useSlotProps)(props, "illustration");
20
- let { children: children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-hidden": ariaHidden, ...otherProps } = props;
19
+ props = (0, $2nyUy$useSlotProps)(props, 'illustration');
20
+ let { children: children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-hidden': ariaHidden, ...otherProps } = props;
21
21
  let { styleProps: styleProps } = (0, $2nyUy$useStyleProps)(otherProps);
22
22
  let hasLabel = ariaLabel || ariaLabelledby;
23
23
  if (!ariaHidden) ariaHidden = undefined;
24
24
  return /*#__PURE__*/ (0, $2nyUy$react).cloneElement(children, {
25
25
  ...(0, $2nyUy$filterDOMProps)(otherProps),
26
26
  ...styleProps,
27
- focusable: "false",
28
- "aria-label": ariaLabel,
29
- "aria-labelledby": ariaLabelledby,
30
- "aria-hidden": ariaHidden,
31
- role: hasLabel ? "img" : undefined
27
+ focusable: 'false',
28
+ 'aria-label': ariaLabel,
29
+ 'aria-labelledby': ariaLabelledby,
30
+ 'aria-hidden': ariaHidden,
31
+ role: hasLabel ? 'img' : undefined
32
32
  });
33
33
  }
34
34
 
@@ -31,23 +31,23 @@ $parcel$export(module.exports, "UIIcon", () => $722df481e3c1f593$export$906cc599
31
31
 
32
32
 
33
33
  function $722df481e3c1f593$export$906cc5990ff10700(props) {
34
- props = (0, $anCtz$reactspectrumutils.useSlotProps)(props, "icon");
35
- let { children: children, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
34
+ props = (0, $anCtz$reactspectrumutils.useSlotProps)(props, 'icon');
35
+ let { children: children, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps } = props;
36
36
  let { styleProps: styleProps } = (0, $anCtz$reactspectrumutils.useStyleProps)(otherProps);
37
37
  let provider = (0, $anCtz$reactspectrumprovider.useProvider)();
38
- let scale = "M";
39
- if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
38
+ let scale = 'M';
39
+ if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
40
40
  if (!ariaHidden) ariaHidden = undefined;
41
41
  return /*#__PURE__*/ (0, ($parcel$interopDefault($anCtz$react))).cloneElement(children, {
42
42
  ...(0, $anCtz$reactariautils.filterDOMProps)(otherProps),
43
43
  ...styleProps,
44
44
  scale: scale,
45
- focusable: "false",
46
- "aria-label": ariaLabel,
47
- "aria-hidden": ariaLabel ? ariaHidden || undefined : true,
48
- role: "img",
49
- className: (0, $anCtz$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ef39e0c80b682c7$exports))), children.props.className, "spectrum-Icon", {
50
- [`spectrum-UIIcon-${children.type["displayName"]}`]: children.type["displayName"]
45
+ focusable: 'false',
46
+ 'aria-label': ariaLabel,
47
+ 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
48
+ role: 'img',
49
+ className: (0, $anCtz$reactspectrumutils.classNames)((0, ($parcel$interopDefault($5ef39e0c80b682c7$exports))), children.props.className, 'spectrum-Icon', {
50
+ [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']
51
51
  }, styleProps.className)
52
52
  });
53
53
  }
package/dist/UIIcon.mjs CHANGED
@@ -25,27 +25,27 @@ function $parcel$interopDefault(a) {
25
25
 
26
26
 
27
27
  function $9ba43a63383852e3$export$906cc5990ff10700(props) {
28
- props = (0, $g4kmm$useSlotProps)(props, "icon");
29
- let { children: children, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
28
+ props = (0, $g4kmm$useSlotProps)(props, 'icon');
29
+ let { children: children, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps } = props;
30
30
  let { styleProps: styleProps } = (0, $g4kmm$useStyleProps)(otherProps);
31
31
  let provider = (0, $g4kmm$useProvider)();
32
- let scale = "M";
33
- if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
32
+ let scale = 'M';
33
+ if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
34
34
  if (!ariaHidden) ariaHidden = undefined;
35
35
  return /*#__PURE__*/ (0, $g4kmm$react).cloneElement(children, {
36
36
  ...(0, $g4kmm$filterDOMProps)(otherProps),
37
37
  ...styleProps,
38
38
  scale: scale,
39
- focusable: "false",
40
- "aria-label": ariaLabel,
41
- "aria-hidden": ariaLabel ? ariaHidden || undefined : true,
42
- role: "img",
43
- className: (0, $g4kmm$classNames)((0, ($parcel$interopDefault($g4kmm$icon_vars_cssmodulejs))), children.props.className, "spectrum-Icon", {
44
- [`spectrum-UIIcon-${children.type["displayName"]}`]: children.type["displayName"]
39
+ focusable: 'false',
40
+ 'aria-label': ariaLabel,
41
+ 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
42
+ role: 'img',
43
+ className: (0, $g4kmm$classNames)((0, ($parcel$interopDefault($g4kmm$icon_vars_cssmodulejs))), children.props.className, 'spectrum-Icon', {
44
+ [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']
45
45
  }, styleProps.className)
46
46
  });
47
47
  }
48
48
 
49
49
 
50
50
  export {$9ba43a63383852e3$export$906cc5990ff10700 as UIIcon};
51
- //# sourceMappingURL=UIIcon.mjs.map
51
+ //# sourceMappingURL=UIIcon.module.js.map
@@ -25,23 +25,23 @@ function $parcel$interopDefault(a) {
25
25
 
26
26
 
27
27
  function $9ba43a63383852e3$export$906cc5990ff10700(props) {
28
- props = (0, $g4kmm$useSlotProps)(props, "icon");
29
- let { children: children, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...otherProps } = props;
28
+ props = (0, $g4kmm$useSlotProps)(props, 'icon');
29
+ let { children: children, 'aria-label': ariaLabel, 'aria-hidden': ariaHidden, ...otherProps } = props;
30
30
  let { styleProps: styleProps } = (0, $g4kmm$useStyleProps)(otherProps);
31
31
  let provider = (0, $g4kmm$useProvider)();
32
- let scale = "M";
33
- if (provider !== null) scale = provider.scale === "large" ? "L" : "M";
32
+ let scale = 'M';
33
+ if (provider !== null) scale = provider.scale === 'large' ? 'L' : 'M';
34
34
  if (!ariaHidden) ariaHidden = undefined;
35
35
  return /*#__PURE__*/ (0, $g4kmm$react).cloneElement(children, {
36
36
  ...(0, $g4kmm$filterDOMProps)(otherProps),
37
37
  ...styleProps,
38
38
  scale: scale,
39
- focusable: "false",
40
- "aria-label": ariaLabel,
41
- "aria-hidden": ariaLabel ? ariaHidden || undefined : true,
42
- role: "img",
43
- className: (0, $g4kmm$classNames)((0, ($parcel$interopDefault($g4kmm$icon_vars_cssmodulejs))), children.props.className, "spectrum-Icon", {
44
- [`spectrum-UIIcon-${children.type["displayName"]}`]: children.type["displayName"]
39
+ focusable: 'false',
40
+ 'aria-label': ariaLabel,
41
+ 'aria-hidden': ariaLabel ? ariaHidden || undefined : true,
42
+ role: 'img',
43
+ className: (0, $g4kmm$classNames)((0, ($parcel$interopDefault($g4kmm$icon_vars_cssmodulejs))), children.props.className, 'spectrum-Icon', {
44
+ [`spectrum-UIIcon-${children.type['displayName']}`]: children.type['displayName']
45
45
  }, styleProps.className)
46
46
  });
47
47
  }
@@ -151,4 +151,4 @@ $6edfbdaffbc9baf9$export$12b8600bcd969018 = `yxBNXG_spectrum-UIIcon-TripleGrippe
151
151
 
152
152
 
153
153
  export {$6edfbdaffbc9baf9$exports as default};
154
- //# sourceMappingURL=icon_vars_css.mjs.map
154
+ //# sourceMappingURL=icon_vars_css.module.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/icon",
3
- "version": "3.7.12",
3
+ "version": "3.7.13",
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.24.0",
40
- "@react-spectrum/utils": "^3.11.6",
41
- "@react-types/shared": "^3.23.0",
39
+ "@react-aria/utils": "^3.24.1",
40
+ "@react-spectrum/utils": "^3.11.7",
41
+ "@react-types/shared": "^3.23.1",
42
42
  "@swc/helpers": "^0.5.0"
43
43
  },
44
44
  "devDependencies": {
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "f645f29edc1322153fd60af4640cbcab1d992dbd"
54
+ "gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433"
55
55
  }