@cnc-ti/layout-basic 8.3.27 → 8.3.28

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/index.mjs CHANGED
@@ -11451,17 +11451,22 @@ function Combobox({
11451
11451
  command,
11452
11452
  onChange,
11453
11453
  value = "",
11454
- onInput
11454
+ onInput,
11455
+ modal = false,
11456
+ popoverClassName,
11457
+ buttonClassName,
11458
+ disabled = false
11455
11459
  }) {
11456
11460
  const [open, setOpen] = React64.useState(false);
11457
- return /* @__PURE__ */ jsxs14(Popover3, { open, onOpenChange: setOpen, children: [
11461
+ return /* @__PURE__ */ jsxs14(Popover3, { open, onOpenChange: setOpen, modal, children: [
11458
11462
  /* @__PURE__ */ jsx41(PopoverTrigger3, { asChild: true, children: /* @__PURE__ */ jsxs14(
11459
11463
  Button,
11460
11464
  {
11461
11465
  variant: "outline",
11462
11466
  role: "combobox",
11463
11467
  "aria-expanded": open,
11464
- className: "cnc-w-full cnc-justify-between cnc-truncate ",
11468
+ className: cn("cnc-w-full cnc-justify-between cnc-truncate ", buttonClassName),
11469
+ disabled,
11465
11470
  children: [
11466
11471
  /* @__PURE__ */ jsx41("div", { children: value ? options?.find((framework) => framework.value === value)?.label : placeholder }),
11467
11472
  /* @__PURE__ */ jsx41(ChevronsUpDown, { className: "cnc-ml-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" })
@@ -11472,7 +11477,7 @@ function Combobox({
11472
11477
  PopoverContent3,
11473
11478
  {
11474
11479
  align: "start",
11475
- className: "cnc-w-[--radix-popover-trigger-width] cnc-p-0",
11480
+ className: cn("cnc-w-[--radix-popover-trigger-width] cnc-p-0", popoverClassName),
11476
11481
  children: /* @__PURE__ */ jsxs14(Command, { children: [
11477
11482
  /* @__PURE__ */ jsx41(
11478
11483
  CommandInput,
@@ -11493,6 +11498,7 @@ function Combobox({
11493
11498
  setOpen(false);
11494
11499
  },
11495
11500
  keywords: [option.value, option.label],
11501
+ disabled: option.disabled,
11496
11502
  children: [
11497
11503
  /* @__PURE__ */ jsx41(
11498
11504
  Check,