@dxos/react-ui 0.3.3-main.a269dfc → 0.3.3-main.b1ae07a
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 +14 -0
- 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/package.json +6 -6
- package/src/components/Card/Card.tsx +15 -1
|
@@ -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,
|