@discourser/design-system 0.20.0 → 0.20.1

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.
@@ -1694,7 +1694,14 @@ var Root17 = withProvider12(factory.ark.nav, "root", {
1694
1694
  });
1695
1695
  var List3 = withContext16(factory.ark.ol, "list");
1696
1696
  var Item4 = withContext16(factory.ark.li, "item");
1697
- var Link = withContext16(factory.ark.a, "link");
1697
+ var LinkBase = withContext16(factory.ark.a, "link");
1698
+ var LinkDisabled = withContext16(factory.ark.span, "link");
1699
+ var Link = ({ disabled, href, ...props }) => {
1700
+ if (disabled) {
1701
+ return /* @__PURE__ */ jsxRuntime.jsx(LinkDisabled, { "data-disabled": true, ...props });
1702
+ }
1703
+ return /* @__PURE__ */ jsxRuntime.jsx(LinkBase, { href, ...props });
1704
+ };
1698
1705
  var Ellipsis = withContext16(factory.ark.li, "ellipsis", {
1699
1706
  defaultProps: {
1700
1707
  role: "presentation",
@@ -1735,17 +1742,22 @@ var ParentRow = ({ children, show = true }) => {
1735
1742
  }
1736
1743
  );
1737
1744
  };
1738
- var ParentItem = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(
1739
- "span",
1740
- {
1741
- className: css.css({
1742
- color: "fg.subtle",
1743
- textStyle: "sm",
1744
- fontWeight: "normal"
1745
- }),
1746
- children
1745
+ var ParentItem = ({
1746
+ children,
1747
+ href
1748
+ }) => {
1749
+ const styles = css.css({
1750
+ color: "fg.subtle",
1751
+ textStyle: "sm",
1752
+ fontWeight: "normal",
1753
+ textDecoration: "none",
1754
+ _hover: href ? { color: "fg.default", textDecoration: "underline" } : void 0
1755
+ });
1756
+ if (href) {
1757
+ return /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: styles, children });
1747
1758
  }
1748
- );
1759
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles, children });
1760
+ };
1749
1761
  var ParentSeparator = () => /* @__PURE__ */ jsxRuntime.jsx(
1750
1762
  "span",
1751
1763
  {
@@ -2740,5 +2752,5 @@ exports.UserProfileIcon = UserProfileIcon;
2740
2752
  exports.difficultyColorMap = difficultyColorMap;
2741
2753
  exports.difficultyLabel = difficultyLabel;
2742
2754
  exports.toaster = toaster;
2743
- //# sourceMappingURL=chunk-4QASRPVX.cjs.map
2744
- //# sourceMappingURL=chunk-4QASRPVX.cjs.map
2755
+ //# sourceMappingURL=chunk-WSJLKVXZ.cjs.map
2756
+ //# sourceMappingURL=chunk-WSJLKVXZ.cjs.map