@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.
- package/dist/{chunk-PFWU7QSM.cjs → chunk-L5FO6K6L.cjs} +23 -2
- package/dist/chunk-L5FO6K6L.cjs.map +1 -0
- package/dist/{chunk-52D45DUF.js → chunk-NU6GI57K.js} +25 -13
- package/dist/chunk-NU6GI57K.js.map +1 -0
- package/dist/{chunk-SNUJBT5R.js → chunk-WFKEAD5P.js} +23 -2
- package/dist/chunk-WFKEAD5P.js.map +1 -0
- package/dist/{chunk-4QASRPVX.cjs → chunk-WSJLKVXZ.cjs} +25 -13
- package/dist/chunk-WSJLKVXZ.cjs.map +1 -0
- package/dist/components/Breadcrumb.d.ts +8 -3
- package/dist/components/Breadcrumb.d.ts.map +1 -1
- package/dist/components/index.cjs +69 -69
- package/dist/components/index.js +1 -1
- package/dist/figma-codex.json +2 -7
- package/dist/index.cjs +73 -73
- package/dist/index.js +2 -2
- package/dist/preset/index.cjs +2 -2
- package/dist/preset/index.js +1 -1
- package/dist/preset/recipes/breadcrumb.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Breadcrumb.tsx +39 -13
- package/src/components/__tests__/Breadcrumb.test.tsx +82 -0
- package/src/preset/recipes/breadcrumb.ts +22 -0
- package/dist/chunk-4QASRPVX.cjs.map +0 -1
- package/dist/chunk-52D45DUF.js.map +0 -1
- package/dist/chunk-PFWU7QSM.cjs.map +0 -1
- package/dist/chunk-SNUJBT5R.js.map +0 -1
|
@@ -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
|
|
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 = ({
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
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-
|
|
2744
|
-
//# sourceMappingURL=chunk-
|
|
2755
|
+
//# sourceMappingURL=chunk-WSJLKVXZ.cjs.map
|
|
2756
|
+
//# sourceMappingURL=chunk-WSJLKVXZ.cjs.map
|