@ceed/cds 1.4.2-next.1 → 1.4.3
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/components/MenuButton/MenuButton.d.ts +1 -0
- package/dist/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/framer/index.js +31 -31
- package/package.json +2 -3
|
@@ -17,6 +17,7 @@ declare function MenuButton<T extends ElementType, P extends ElementType>(props:
|
|
|
17
17
|
componentProps?: ComponentProps<P>;
|
|
18
18
|
}[];
|
|
19
19
|
showIcon?: boolean;
|
|
20
|
+
placement?: "bottom-start" | "bottom" | "bottom-end";
|
|
20
21
|
}): React.JSX.Element;
|
|
21
22
|
declare namespace MenuButton {
|
|
22
23
|
var displayName: string;
|
package/dist/index.cjs
CHANGED
|
@@ -4460,7 +4460,8 @@ function MenuButton(props) {
|
|
|
4460
4460
|
color = "neutral",
|
|
4461
4461
|
variant = "plain",
|
|
4462
4462
|
endDecorator,
|
|
4463
|
-
startDecorator
|
|
4463
|
+
startDecorator,
|
|
4464
|
+
placement = "bottom"
|
|
4464
4465
|
} = props;
|
|
4465
4466
|
if (!items.length) {
|
|
4466
4467
|
return /* @__PURE__ */ import_react32.default.createElement(
|
|
@@ -4493,7 +4494,7 @@ function MenuButton(props) {
|
|
|
4493
4494
|
endDecorator: showIcon ? /* @__PURE__ */ import_react32.default.createElement(import_react32.default.Fragment, null, endDecorator, /* @__PURE__ */ import_react32.default.createElement(import_ExpandMore.default, null)) : /* @__PURE__ */ import_react32.default.createElement(import_react32.default.Fragment, null, endDecorator)
|
|
4494
4495
|
},
|
|
4495
4496
|
buttonText
|
|
4496
|
-
), /* @__PURE__ */ import_react32.default.createElement(Menu, { size }, items.map((i) => /* @__PURE__ */ import_react32.default.createElement(
|
|
4497
|
+
), /* @__PURE__ */ import_react32.default.createElement(Menu, { placement, size }, items.map((i) => /* @__PURE__ */ import_react32.default.createElement(
|
|
4497
4498
|
MenuItem,
|
|
4498
4499
|
{
|
|
4499
4500
|
key: i.text,
|
package/dist/index.js
CHANGED
|
@@ -4442,7 +4442,8 @@ function MenuButton(props) {
|
|
|
4442
4442
|
color = "neutral",
|
|
4443
4443
|
variant = "plain",
|
|
4444
4444
|
endDecorator,
|
|
4445
|
-
startDecorator
|
|
4445
|
+
startDecorator,
|
|
4446
|
+
placement = "bottom"
|
|
4446
4447
|
} = props;
|
|
4447
4448
|
if (!items.length) {
|
|
4448
4449
|
return /* @__PURE__ */ React30.createElement(
|
|
@@ -4475,7 +4476,7 @@ function MenuButton(props) {
|
|
|
4475
4476
|
endDecorator: showIcon ? /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator, /* @__PURE__ */ React30.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator)
|
|
4476
4477
|
},
|
|
4477
4478
|
buttonText
|
|
4478
|
-
), /* @__PURE__ */ React30.createElement(Menu, { size }, items.map((i) => /* @__PURE__ */ React30.createElement(
|
|
4479
|
+
), /* @__PURE__ */ React30.createElement(Menu, { placement, size }, items.map((i) => /* @__PURE__ */ React30.createElement(
|
|
4479
4480
|
MenuItem,
|
|
4480
4481
|
{
|
|
4481
4482
|
key: i.text,
|