@react-spectrum/link 3.0.0-nightly.2912 → 3.0.0-nightly.2925

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/Link.main.js CHANGED
@@ -38,24 +38,24 @@ $parcel$export(module.exports, "Link", () => $1148fb7fc40f1ce2$export$a6c7ac8248
38
38
 
39
39
  function $1148fb7fc40f1ce2$export$a6c7ac8248d6e38a(props) {
40
40
  props = (0, $jQffG$reactspectrumprovider.useProviderProps)(props);
41
- props = (0, $jQffG$reactspectrumutils.useSlotProps)(props, "link");
42
- let { variant: variant = "primary", isQuiet: isQuiet, children: children, href: // @ts-ignore
41
+ props = (0, $jQffG$reactspectrumutils.useSlotProps)(props, 'link');
42
+ let { variant: variant = 'primary', isQuiet: isQuiet, children: children, href: // @ts-ignore
43
43
  href } = props;
44
44
  let { styleProps: styleProps } = (0, $jQffG$reactspectrumutils.useStyleProps)(props);
45
45
  let { hoverProps: hoverProps, isHovered: isHovered } = (0, $jQffG$reactariainteractions.useHover)({});
46
46
  let ref = (0, $jQffG$react.useRef)(null);
47
47
  let { linkProps: linkProps } = (0, $jQffG$reactarialink.useLink)({
48
48
  ...props,
49
- elementType: !href && typeof children === "string" ? "span" : "a"
49
+ elementType: !href && typeof children === 'string' ? 'span' : 'a'
50
50
  }, ref);
51
51
  let domProps = {
52
52
  ...styleProps,
53
53
  ...(0, $jQffG$reactariautils.mergeProps)(linkProps, hoverProps),
54
54
  ref: ref,
55
- className: (0, $jQffG$reactspectrumutils.classNames)((0, ($parcel$interopDefault($094ce2289235a9fa$exports))), "spectrum-Link", {
56
- "spectrum-Link--quiet": isQuiet,
55
+ className: (0, $jQffG$reactspectrumutils.classNames)((0, ($parcel$interopDefault($094ce2289235a9fa$exports))), 'spectrum-Link', {
56
+ 'spectrum-Link--quiet': isQuiet,
57
57
  [`spectrum-Link--${variant}`]: variant,
58
- "is-hovered": isHovered
58
+ 'is-hovered': isHovered
59
59
  }, styleProps.className)
60
60
  };
61
61
  let link;
@@ -70,7 +70,7 @@ function $1148fb7fc40f1ce2$export$a6c7ac8248d6e38a(props) {
70
70
  });
71
71
  }
72
72
  return /*#__PURE__*/ (0, ($parcel$interopDefault($jQffG$react))).createElement((0, $jQffG$reactariafocus.FocusRing), {
73
- focusRingClass: (0, $jQffG$reactspectrumutils.classNames)((0, ($parcel$interopDefault($094ce2289235a9fa$exports))), "focus-ring")
73
+ focusRingClass: (0, $jQffG$reactspectrumutils.classNames)((0, ($parcel$interopDefault($094ce2289235a9fa$exports))), 'focus-ring')
74
74
  }, link);
75
75
  }
76
76
 
package/dist/Link.mjs CHANGED
@@ -32,24 +32,24 @@ function $parcel$interopDefault(a) {
32
32
 
33
33
  function $3c5235ac12f2c9bb$export$a6c7ac8248d6e38a(props) {
34
34
  props = (0, $35Vau$useProviderProps)(props);
35
- props = (0, $35Vau$useSlotProps)(props, "link");
36
- let { variant: variant = "primary", isQuiet: isQuiet, children: children, href: // @ts-ignore
35
+ props = (0, $35Vau$useSlotProps)(props, 'link');
36
+ let { variant: variant = 'primary', isQuiet: isQuiet, children: children, href: // @ts-ignore
37
37
  href } = props;
38
38
  let { styleProps: styleProps } = (0, $35Vau$useStyleProps)(props);
39
39
  let { hoverProps: hoverProps, isHovered: isHovered } = (0, $35Vau$useHover)({});
40
40
  let ref = (0, $35Vau$useRef)(null);
41
41
  let { linkProps: linkProps } = (0, $35Vau$useLink)({
42
42
  ...props,
43
- elementType: !href && typeof children === "string" ? "span" : "a"
43
+ elementType: !href && typeof children === 'string' ? 'span' : 'a'
44
44
  }, ref);
45
45
  let domProps = {
46
46
  ...styleProps,
47
47
  ...(0, $35Vau$mergeProps)(linkProps, hoverProps),
48
48
  ref: ref,
49
- className: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), "spectrum-Link", {
50
- "spectrum-Link--quiet": isQuiet,
49
+ className: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), 'spectrum-Link', {
50
+ 'spectrum-Link--quiet': isQuiet,
51
51
  [`spectrum-Link--${variant}`]: variant,
52
- "is-hovered": isHovered
52
+ 'is-hovered': isHovered
53
53
  }, styleProps.className)
54
54
  };
55
55
  let link;
@@ -64,7 +64,7 @@ function $3c5235ac12f2c9bb$export$a6c7ac8248d6e38a(props) {
64
64
  });
65
65
  }
66
66
  return /*#__PURE__*/ (0, $35Vau$react).createElement((0, $35Vau$FocusRing), {
67
- focusRingClass: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), "focus-ring")
67
+ focusRingClass: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), 'focus-ring')
68
68
  }, link);
69
69
  }
70
70
 
@@ -32,24 +32,24 @@ function $parcel$interopDefault(a) {
32
32
 
33
33
  function $3c5235ac12f2c9bb$export$a6c7ac8248d6e38a(props) {
34
34
  props = (0, $35Vau$useProviderProps)(props);
35
- props = (0, $35Vau$useSlotProps)(props, "link");
36
- let { variant: variant = "primary", isQuiet: isQuiet, children: children, href: // @ts-ignore
35
+ props = (0, $35Vau$useSlotProps)(props, 'link');
36
+ let { variant: variant = 'primary', isQuiet: isQuiet, children: children, href: // @ts-ignore
37
37
  href } = props;
38
38
  let { styleProps: styleProps } = (0, $35Vau$useStyleProps)(props);
39
39
  let { hoverProps: hoverProps, isHovered: isHovered } = (0, $35Vau$useHover)({});
40
40
  let ref = (0, $35Vau$useRef)(null);
41
41
  let { linkProps: linkProps } = (0, $35Vau$useLink)({
42
42
  ...props,
43
- elementType: !href && typeof children === "string" ? "span" : "a"
43
+ elementType: !href && typeof children === 'string' ? 'span' : 'a'
44
44
  }, ref);
45
45
  let domProps = {
46
46
  ...styleProps,
47
47
  ...(0, $35Vau$mergeProps)(linkProps, hoverProps),
48
48
  ref: ref,
49
- className: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), "spectrum-Link", {
50
- "spectrum-Link--quiet": isQuiet,
49
+ className: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), 'spectrum-Link', {
50
+ 'spectrum-Link--quiet': isQuiet,
51
51
  [`spectrum-Link--${variant}`]: variant,
52
- "is-hovered": isHovered
52
+ 'is-hovered': isHovered
53
53
  }, styleProps.className)
54
54
  };
55
55
  let link;
@@ -64,7 +64,7 @@ function $3c5235ac12f2c9bb$export$a6c7ac8248d6e38a(props) {
64
64
  });
65
65
  }
66
66
  return /*#__PURE__*/ (0, $35Vau$react).createElement((0, $35Vau$FocusRing), {
67
- focusRingClass: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), "focus-ring")
67
+ focusRingClass: (0, $35Vau$classNames)((0, ($parcel$interopDefault($35Vau$link_vars_cssmodulejs))), 'focus-ring')
68
68
  }, link);
69
69
  }
70
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-spectrum/link",
3
- "version": "3.0.0-nightly.2912+d80999e89",
3
+ "version": "3.0.0-nightly.2925+c57671e7f",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/main.js",
@@ -36,16 +36,16 @@
36
36
  "url": "https://github.com/adobe/react-spectrum"
37
37
  },
38
38
  "dependencies": {
39
- "@react-aria/focus": "3.0.0-nightly.2912+d80999e89",
40
- "@react-aria/interactions": "3.0.0-nightly.2912+d80999e89",
41
- "@react-aria/link": "3.0.0-nightly.2912+d80999e89",
42
- "@react-aria/utils": "3.0.0-nightly.2912+d80999e89",
43
- "@react-spectrum/utils": "3.0.0-nightly.2912+d80999e89",
44
- "@react-types/link": "3.0.0-nightly.2912+d80999e89",
39
+ "@react-aria/focus": "3.0.0-nightly.2925+c57671e7f",
40
+ "@react-aria/interactions": "3.0.0-nightly.2925+c57671e7f",
41
+ "@react-aria/link": "3.0.0-nightly.2925+c57671e7f",
42
+ "@react-aria/utils": "3.0.0-nightly.2925+c57671e7f",
43
+ "@react-spectrum/utils": "3.0.0-nightly.2925+c57671e7f",
44
+ "@react-types/link": "3.0.0-nightly.2925+c57671e7f",
45
45
  "@swc/helpers": "^0.5.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@adobe/spectrum-css-temp": "3.0.0-nightly.2912+d80999e89"
48
+ "@adobe/spectrum-css-temp": "3.0.0-nightly.2925+c57671e7f"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@react-spectrum/provider": "^3.0.0",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "d80999e897b4d4db9fcfb4e9b8fcdc9fdd700882"
57
+ "gitHead": "c57671e7f57c4ffe59640a174f084cf660968913"
58
58
  }