@onesaz/ui 0.4.2 → 0.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/index.js CHANGED
@@ -3809,7 +3809,7 @@ function OptionItem({
3809
3809
  children: /* @__PURE__ */ jsx35("polyline", { points: "20 6 9 17 4 12" })
3810
3810
  }
3811
3811
  ) }),
3812
- option.label
3812
+ /* @__PURE__ */ jsx35("span", { className: "break-all", children: option.label })
3813
3813
  ]
3814
3814
  }
3815
3815
  );
@@ -3998,11 +3998,11 @@ var Combobox = React35.forwardRef(
3998
3998
  disabled,
3999
3999
  onClick: () => setOpen(!open),
4000
4000
  className: cn(
4001
- "flex min-h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm text-left",
4001
+ "flex min-h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-left",
4002
4002
  "ring-offset-background",
4003
4003
  "focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
4004
4004
  "disabled:cursor-not-allowed disabled:opacity-50",
4005
- isMultiple && selectedOptions.length > 0 && "h-auto",
4005
+ isMultiple && selectedOptions.length > 0 || !isMultiple && singleValue ? "h-auto items-start justify-between" : "items-center justify-between",
4006
4006
  className
4007
4007
  ),
4008
4008
  children: [
@@ -4013,7 +4013,7 @@ var Combobox = React35.forwardRef(
4013
4013
  {
4014
4014
  className: "inline-flex items-center gap-1 rounded-md bg-muted px-2 py-0.5 text-xs font-medium",
4015
4015
  children: [
4016
- getOptionLabel(option),
4016
+ /* @__PURE__ */ jsx35("span", { className: "break-all", children: getOptionLabel(option) }),
4017
4017
  /* @__PURE__ */ jsx35(
4018
4018
  "button",
4019
4019
  {
@@ -4046,8 +4046,8 @@ var Combobox = React35.forwardRef(
4046
4046
  remainingCount,
4047
4047
  " more"
4048
4048
  ] })
4049
- ] }) }) : /* @__PURE__ */ jsx35("span", { className: cn("flex-1", !singleValue && "text-muted-foreground"), children: singleValue ? getOptionLabel(singleValue) : placeholder }),
4050
- /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-1", children: [
4049
+ ] }) }) : /* @__PURE__ */ jsx35("span", { className: cn("flex-1 break-all", !singleValue && "text-muted-foreground"), children: singleValue ? getOptionLabel(singleValue) : placeholder }),
4050
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-1 shrink-0", children: [
4051
4051
  isMultiple && selectedOptions.length > 0 && /* @__PURE__ */ jsx35(
4052
4052
  "button",
4053
4053
  {