@discourser/design-system 0.19.0 → 0.20.0
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-DDXDLT4K.cjs → chunk-4QASRPVX.cjs} +52 -3
- package/dist/chunk-4QASRPVX.cjs.map +1 -0
- package/dist/{chunk-3M22GRHH.js → chunk-52D45DUF.js} +52 -3
- package/dist/chunk-52D45DUF.js.map +1 -0
- package/dist/components/Breadcrumb.d.ts +25 -1
- 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 +9 -3
- package/dist/index.cjs +69 -69
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/Breadcrumb.tsx +77 -1
- package/src/components/__tests__/Breadcrumb.test.tsx +98 -47
- package/dist/chunk-3M22GRHH.js.map +0 -1
- package/dist/chunk-DDXDLT4K.cjs.map +0 -1
|
@@ -1667,8 +1667,12 @@ chunkEARF7VDF_cjs.__export(Breadcrumb_exports, {
|
|
|
1667
1667
|
Item: () => Item4,
|
|
1668
1668
|
Link: () => Link,
|
|
1669
1669
|
List: () => List3,
|
|
1670
|
+
ParentItem: () => ParentItem,
|
|
1671
|
+
ParentRow: () => ParentRow,
|
|
1672
|
+
ParentSeparator: () => ParentSeparator,
|
|
1670
1673
|
Root: () => Root17,
|
|
1671
|
-
Separator: () => Separator
|
|
1674
|
+
Separator: () => Separator,
|
|
1675
|
+
TwoRowRoot: () => TwoRowRoot
|
|
1672
1676
|
});
|
|
1673
1677
|
var ChevronRightIcon = () => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1674
1678
|
"svg",
|
|
@@ -1709,6 +1713,51 @@ var CurrentLink = withContext16(factory.ark.span, "link", {
|
|
|
1709
1713
|
"aria-current": "page"
|
|
1710
1714
|
}
|
|
1711
1715
|
});
|
|
1716
|
+
var TwoRowRoot = ({
|
|
1717
|
+
children,
|
|
1718
|
+
"aria-label": ariaLabel = "breadcrumb",
|
|
1719
|
+
className
|
|
1720
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": ariaLabel, className, children });
|
|
1721
|
+
var ParentRow = ({ children, show = true }) => {
|
|
1722
|
+
if (!show) return null;
|
|
1723
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1724
|
+
"div",
|
|
1725
|
+
{
|
|
1726
|
+
"aria-hidden": "true",
|
|
1727
|
+
className: css.css({
|
|
1728
|
+
display: "flex",
|
|
1729
|
+
alignItems: "center",
|
|
1730
|
+
flexWrap: "wrap",
|
|
1731
|
+
gap: "1",
|
|
1732
|
+
mb: "1"
|
|
1733
|
+
}),
|
|
1734
|
+
children
|
|
1735
|
+
}
|
|
1736
|
+
);
|
|
1737
|
+
};
|
|
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
|
|
1747
|
+
}
|
|
1748
|
+
);
|
|
1749
|
+
var ParentSeparator = () => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1750
|
+
"span",
|
|
1751
|
+
{
|
|
1752
|
+
"aria-hidden": "true",
|
|
1753
|
+
className: css.css({
|
|
1754
|
+
color: "fg.subtle",
|
|
1755
|
+
textStyle: "sm",
|
|
1756
|
+
mx: "0.5"
|
|
1757
|
+
}),
|
|
1758
|
+
children: "/"
|
|
1759
|
+
}
|
|
1760
|
+
);
|
|
1712
1761
|
|
|
1713
1762
|
// src/components/ContentCard/index.ts
|
|
1714
1763
|
var ContentCard_exports = {};
|
|
@@ -2691,5 +2740,5 @@ exports.UserProfileIcon = UserProfileIcon;
|
|
|
2691
2740
|
exports.difficultyColorMap = difficultyColorMap;
|
|
2692
2741
|
exports.difficultyLabel = difficultyLabel;
|
|
2693
2742
|
exports.toaster = toaster;
|
|
2694
|
-
//# sourceMappingURL=chunk-
|
|
2695
|
-
//# sourceMappingURL=chunk-
|
|
2743
|
+
//# sourceMappingURL=chunk-4QASRPVX.cjs.map
|
|
2744
|
+
//# sourceMappingURL=chunk-4QASRPVX.cjs.map
|