@ceed/ads 1.4.2 → 1.4.4-next.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.
@@ -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;
@@ -16,13 +16,14 @@ export { Option };
16
16
  type OptionType = {
17
17
  label: string;
18
18
  value: string | number;
19
+ disabled?: boolean;
19
20
  } | string | number;
20
21
  type InferOptionValue<OptionValue> = OptionValue extends {
21
22
  value: infer V;
22
23
  } ? V : OptionValue;
23
24
  interface CeedSelectProps<OptionValue extends OptionType, Multiple extends boolean = false> extends Omit<ComponentProps<typeof JoySelect<OptionValue, any, Multiple>>, "value" | "onChange" | "multiple"> {
24
25
  options: OptionValue[];
25
- label?: string;
26
+ label?: React.ReactNode;
26
27
  helperText?: string;
27
28
  error?: boolean;
28
29
  value?: SelectValue<InferOptionValue<OptionValue>, Multiple>;
package/dist/index.cjs CHANGED
@@ -2650,7 +2650,7 @@ function Select(props) {
2650
2650
  color: error ? "danger" : color,
2651
2651
  onChange: handleChange
2652
2652
  },
2653
- options.map((option) => /* @__PURE__ */ import_react21.default.createElement(Option, { key: option.value, value: option.value }, option.label))
2653
+ options.map((option) => /* @__PURE__ */ import_react21.default.createElement(Option, { key: option.value, value: option.value, disabled: option.disabled }, option.label))
2654
2654
  );
2655
2655
  return /* @__PURE__ */ import_react21.default.createElement(
2656
2656
  FormControl_default,
@@ -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
@@ -2597,7 +2597,7 @@ function Select(props) {
2597
2597
  color: error ? "danger" : color,
2598
2598
  onChange: handleChange
2599
2599
  },
2600
- options.map((option) => /* @__PURE__ */ React19.createElement(Option, { key: option.value, value: option.value }, option.label))
2600
+ options.map((option) => /* @__PURE__ */ React19.createElement(Option, { key: option.value, value: option.value, disabled: option.disabled }, option.label))
2601
2601
  );
2602
2602
  return /* @__PURE__ */ React19.createElement(
2603
2603
  FormControl_default,
@@ -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,