@dxos/react-ui 0.3.3-main.6b9536c → 0.3.3-main.86c283d
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/lib/browser/index.mjs +15 -1
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/Card/Card.d.ts +6 -0
- package/dist/types/src/components/Card/Card.d.ts.map +1 -1
- package/dist/types/src/components/Card/Card.stories.d.ts +6 -0
- package/dist/types/src/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/types/src/components/Main/Main.d.ts +2 -2
- package/dist/types/src/components/Main/Main.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/components/Card/Card.tsx +15 -1
- package/src/components/Main/Main.tsx +1 -3
|
@@ -688,6 +688,19 @@ var CardDragHandle = ({ position, classNames, ...props }) => {
|
|
|
688
688
|
className: tx("card.dragHandleIcon", "card")
|
|
689
689
|
}));
|
|
690
690
|
};
|
|
691
|
+
var CardEndcap = ({ Icon: Icon2, position, classNames, ...props }) => {
|
|
692
|
+
const { tx } = useThemeContext();
|
|
693
|
+
const density = useDensityContext();
|
|
694
|
+
return /* @__PURE__ */ React11.createElement("div", {
|
|
695
|
+
...props,
|
|
696
|
+
className: tx("card.menu", "card", {
|
|
697
|
+
density,
|
|
698
|
+
position
|
|
699
|
+
}, classNames)
|
|
700
|
+
}, /* @__PURE__ */ React11.createElement(Icon2, {
|
|
701
|
+
className: tx("card.menuIcon", "card")
|
|
702
|
+
}));
|
|
703
|
+
};
|
|
691
704
|
var CardMenu = /* @__PURE__ */ forwardRef9(({ children, position, classNames, ...props }, forwardRef1) => {
|
|
692
705
|
const { tx } = useThemeContext();
|
|
693
706
|
const density = useDensityContext();
|
|
@@ -731,6 +744,7 @@ var Card = {
|
|
|
731
744
|
Root: CardRoot,
|
|
732
745
|
Header: CardHeader,
|
|
733
746
|
DragHandle: CardDragHandle,
|
|
747
|
+
Endcap: CardEndcap,
|
|
734
748
|
Menu: CardMenu,
|
|
735
749
|
Title: CardTitle,
|
|
736
750
|
Body: CardBody,
|
|
@@ -1596,9 +1610,9 @@ var MainOverlay = /* @__PURE__ */ forwardRef16(({ classNames, ...props }, forwar
|
|
|
1596
1610
|
});
|
|
1597
1611
|
});
|
|
1598
1612
|
var Main = {
|
|
1613
|
+
Root: MainRoot,
|
|
1599
1614
|
Content: MainContent,
|
|
1600
1615
|
Overlay: MainOverlay,
|
|
1601
|
-
Root: MainRoot,
|
|
1602
1616
|
NavigationSidebar: MainNavigationSidebar,
|
|
1603
1617
|
ComplementarySidebar: MainComplementarySidebar
|
|
1604
1618
|
};
|