@ceed/ads 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 +21 -21
- 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
|
@@ -4898,7 +4898,8 @@ function MenuButton(props) {
|
|
|
4898
4898
|
color = "neutral",
|
|
4899
4899
|
variant = "plain",
|
|
4900
4900
|
endDecorator,
|
|
4901
|
-
startDecorator
|
|
4901
|
+
startDecorator,
|
|
4902
|
+
placement = "bottom"
|
|
4902
4903
|
} = props;
|
|
4903
4904
|
if (!items.length) {
|
|
4904
4905
|
return /* @__PURE__ */ import_react32.default.createElement(
|
|
@@ -4931,7 +4932,7 @@ function MenuButton(props) {
|
|
|
4931
4932
|
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)
|
|
4932
4933
|
},
|
|
4933
4934
|
buttonText
|
|
4934
|
-
), /* @__PURE__ */ import_react32.default.createElement(Menu, { size }, items.map((i) => /* @__PURE__ */ import_react32.default.createElement(
|
|
4935
|
+
), /* @__PURE__ */ import_react32.default.createElement(Menu, { placement, size }, items.map((i) => /* @__PURE__ */ import_react32.default.createElement(
|
|
4935
4936
|
MenuItem,
|
|
4936
4937
|
{
|
|
4937
4938
|
key: i.text,
|
package/dist/index.js
CHANGED
|
@@ -4871,7 +4871,8 @@ function MenuButton(props) {
|
|
|
4871
4871
|
color = "neutral",
|
|
4872
4872
|
variant = "plain",
|
|
4873
4873
|
endDecorator,
|
|
4874
|
-
startDecorator
|
|
4874
|
+
startDecorator,
|
|
4875
|
+
placement = "bottom"
|
|
4875
4876
|
} = props;
|
|
4876
4877
|
if (!items.length) {
|
|
4877
4878
|
return /* @__PURE__ */ React30.createElement(
|
|
@@ -4904,7 +4905,7 @@ function MenuButton(props) {
|
|
|
4904
4905
|
endDecorator: showIcon ? /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator, /* @__PURE__ */ React30.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator)
|
|
4905
4906
|
},
|
|
4906
4907
|
buttonText
|
|
4907
|
-
), /* @__PURE__ */ React30.createElement(Menu, { size }, items.map((i) => /* @__PURE__ */ React30.createElement(
|
|
4908
|
+
), /* @__PURE__ */ React30.createElement(Menu, { placement, size }, items.map((i) => /* @__PURE__ */ React30.createElement(
|
|
4908
4909
|
MenuItem,
|
|
4909
4910
|
{
|
|
4910
4911
|
key: i.text,
|