@discourser/design-system 0.19.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-3M22GRHH.js → chunk-NU6GI57K.js} +65 -4
- 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-DDXDLT4K.cjs → chunk-WSJLKVXZ.cjs} +65 -4
- package/dist/chunk-WSJLKVXZ.cjs.map +1 -0
- package/dist/components/Breadcrumb.d.ts +31 -2
- 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 -8
- 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 +104 -2
- package/src/components/__tests__/Breadcrumb.test.tsx +180 -47
- package/src/preset/recipes/breadcrumb.ts +22 -0
- package/dist/chunk-3M22GRHH.js.map +0 -1
- package/dist/chunk-DDXDLT4K.cjs.map +0 -1
- package/dist/chunk-PFWU7QSM.cjs.map +0 -1
- package/dist/chunk-SNUJBT5R.js.map +0 -1
|
@@ -1665,8 +1665,12 @@ __export(Breadcrumb_exports, {
|
|
|
1665
1665
|
Item: () => Item4,
|
|
1666
1666
|
Link: () => Link,
|
|
1667
1667
|
List: () => List3,
|
|
1668
|
+
ParentItem: () => ParentItem,
|
|
1669
|
+
ParentRow: () => ParentRow,
|
|
1670
|
+
ParentSeparator: () => ParentSeparator,
|
|
1668
1671
|
Root: () => Root17,
|
|
1669
|
-
Separator: () => Separator
|
|
1672
|
+
Separator: () => Separator,
|
|
1673
|
+
TwoRowRoot: () => TwoRowRoot
|
|
1670
1674
|
});
|
|
1671
1675
|
var ChevronRightIcon = () => /* @__PURE__ */ jsx(
|
|
1672
1676
|
"svg",
|
|
@@ -1688,7 +1692,14 @@ var Root17 = withProvider12(ark$1.nav, "root", {
|
|
|
1688
1692
|
});
|
|
1689
1693
|
var List3 = withContext16(ark$1.ol, "list");
|
|
1690
1694
|
var Item4 = withContext16(ark$1.li, "item");
|
|
1691
|
-
var
|
|
1695
|
+
var LinkBase = withContext16(ark$1.a, "link");
|
|
1696
|
+
var LinkDisabled = withContext16(ark$1.span, "link");
|
|
1697
|
+
var Link = ({ disabled, href, ...props }) => {
|
|
1698
|
+
if (disabled) {
|
|
1699
|
+
return /* @__PURE__ */ jsx(LinkDisabled, { "data-disabled": true, ...props });
|
|
1700
|
+
}
|
|
1701
|
+
return /* @__PURE__ */ jsx(LinkBase, { href, ...props });
|
|
1702
|
+
};
|
|
1692
1703
|
var Ellipsis = withContext16(ark$1.li, "ellipsis", {
|
|
1693
1704
|
defaultProps: {
|
|
1694
1705
|
role: "presentation",
|
|
@@ -1707,6 +1718,56 @@ var CurrentLink = withContext16(ark$1.span, "link", {
|
|
|
1707
1718
|
"aria-current": "page"
|
|
1708
1719
|
}
|
|
1709
1720
|
});
|
|
1721
|
+
var TwoRowRoot = ({
|
|
1722
|
+
children,
|
|
1723
|
+
"aria-label": ariaLabel = "breadcrumb",
|
|
1724
|
+
className
|
|
1725
|
+
}) => /* @__PURE__ */ jsx("nav", { "aria-label": ariaLabel, className, children });
|
|
1726
|
+
var ParentRow = ({ children, show = true }) => {
|
|
1727
|
+
if (!show) return null;
|
|
1728
|
+
return /* @__PURE__ */ jsx(
|
|
1729
|
+
"div",
|
|
1730
|
+
{
|
|
1731
|
+
"aria-hidden": "true",
|
|
1732
|
+
className: css({
|
|
1733
|
+
display: "flex",
|
|
1734
|
+
alignItems: "center",
|
|
1735
|
+
flexWrap: "wrap",
|
|
1736
|
+
gap: "1",
|
|
1737
|
+
mb: "1"
|
|
1738
|
+
}),
|
|
1739
|
+
children
|
|
1740
|
+
}
|
|
1741
|
+
);
|
|
1742
|
+
};
|
|
1743
|
+
var ParentItem = ({
|
|
1744
|
+
children,
|
|
1745
|
+
href
|
|
1746
|
+
}) => {
|
|
1747
|
+
const styles = css({
|
|
1748
|
+
color: "fg.subtle",
|
|
1749
|
+
textStyle: "sm",
|
|
1750
|
+
fontWeight: "normal",
|
|
1751
|
+
textDecoration: "none",
|
|
1752
|
+
_hover: href ? { color: "fg.default", textDecoration: "underline" } : void 0
|
|
1753
|
+
});
|
|
1754
|
+
if (href) {
|
|
1755
|
+
return /* @__PURE__ */ jsx("a", { href, className: styles, children });
|
|
1756
|
+
}
|
|
1757
|
+
return /* @__PURE__ */ jsx("span", { className: styles, children });
|
|
1758
|
+
};
|
|
1759
|
+
var ParentSeparator = () => /* @__PURE__ */ jsx(
|
|
1760
|
+
"span",
|
|
1761
|
+
{
|
|
1762
|
+
"aria-hidden": "true",
|
|
1763
|
+
className: css({
|
|
1764
|
+
color: "fg.subtle",
|
|
1765
|
+
textStyle: "sm",
|
|
1766
|
+
mx: "0.5"
|
|
1767
|
+
}),
|
|
1768
|
+
children: "/"
|
|
1769
|
+
}
|
|
1770
|
+
);
|
|
1710
1771
|
|
|
1711
1772
|
// src/components/ContentCard/index.ts
|
|
1712
1773
|
var ContentCard_exports = {};
|
|
@@ -2622,5 +2683,5 @@ function ScenarioQueue({
|
|
|
2622
2683
|
}
|
|
2623
2684
|
|
|
2624
2685
|
export { AbsoluteCenter_exports, Accordion_exports, AccountIcon, AddScenarioDialog, AudienceIcon, AudioSpeakerIcon, Avatar_exports, Badge, BookmarkPlusIcon, Breadcrumb_exports, Button, ButtonGroup, Card_exports, Checkbox_exports, ChevronUpIcon, ClipBoardIcon, ClockIcon, CloseButton_exports, ContentCard_exports, DashboardIcon, Dialog_exports, DiscourserLogo, Drawer_exports, ExitStudioIcon, GripDotsVerticalIcon, Group_exports, Header, HelpIcon, IconButton, Icon_exports, Input, InputAddon, InputGroup2 as InputGroup, MicrophoneIcon, NavigationMenu, NotebookIcon, NotebookPenIcon, PausePlayIcon, PlayIcon, Popover_exports, Progress_exports, RadioGroup_exports, RecordIcon, RepeatQuestionIcon, RightArrowIcon, ScenarioCard, ScenarioIcon, ScenarioQueue, ScenarioSettings, ScrollTextIcon, Select_exports, Skeleton_exports, Slider_exports, SparklesIcon, SpeechIcon, Spinner, Stepper, StopPlayIcon, Switch_exports, Tabs_exports, Textarea, TimerIcon, Toaster, Tooltip_exports, UserProfileIcon, difficultyColorMap, difficultyLabel, toaster };
|
|
2625
|
-
//# sourceMappingURL=chunk-
|
|
2626
|
-
//# sourceMappingURL=chunk-
|
|
2686
|
+
//# sourceMappingURL=chunk-NU6GI57K.js.map
|
|
2687
|
+
//# sourceMappingURL=chunk-NU6GI57K.js.map
|