hazo_ui 2.4.4 → 2.4.5

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.cjs CHANGED
@@ -361,7 +361,7 @@ var CommandGroup = React27__namespace.forwardRef(({ className, heading, children
361
361
  }
362
362
  ));
363
363
  CommandGroup.displayName = "CommandGroup";
364
- var CommandItem = React27__namespace.forwardRef(({ className, onSelect, value, style, ...props }, ref) => {
364
+ var CommandItem = React27__namespace.forwardRef(({ className, onSelect, value, selected, style, ...props }, ref) => {
365
365
  const handleClick = () => {
366
366
  if (onSelect && value) {
367
367
  onSelect(value);
@@ -374,13 +374,16 @@ var CommandItem = React27__namespace.forwardRef(({ className, onSelect, value, s
374
374
  className: cn(
375
375
  "cls_command_item",
376
376
  "relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
377
+ // When selected, apply accent background and ensure all text is visible
378
+ selected && "bg-accent text-accent-foreground [&_.text-muted-foreground]:text-accent-foreground/70",
377
379
  className
378
380
  ),
379
- style: {
380
- // Ensure items have opaque background (inherit from popover container)
381
- backgroundColor: "inherit",
381
+ style: selected ? {
382
+ // Explicit inline styles as fallback for consumers with non-HSL CSS variables
383
+ backgroundColor: "var(--accent, #f1f5f9)",
384
+ color: "var(--accent-foreground, #0f172a)",
382
385
  ...style
383
- },
386
+ } : style,
384
387
  onClick: handleClick,
385
388
  ...props
386
389
  }
@@ -4740,9 +4743,7 @@ var CommandPopover = ({
4740
4743
  {
4741
4744
  value: cmd.action,
4742
4745
  onSelect: () => on_select(cmd),
4743
- className: cn(
4744
- flat_idx === selected_index && "bg-accent"
4745
- ),
4746
+ selected: flat_idx === selected_index,
4746
4747
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 w-full", children: [
4747
4748
  cmd.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0 text-muted-foreground", children: cmd.icon }),
4748
4749
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [