@motor-hero/ui-kit 0.23.1 → 0.23.2

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.
@@ -32,7 +32,11 @@ export interface ComboboxProps {
32
32
  /**
33
33
  * Select com busca (combobox) acessível e responsivo.
34
34
  *
35
- * - Desktop: Popover (modal) + cmdk — o dropdown acompanha a largura do gatilho.
35
+ * - Desktop: Popover não-modal + cmdk — o dropdown acompanha a largura do
36
+ * gatilho. Não-modal (com `pointer-events-auto` no conteúdo) de propósito:
37
+ * dentro de um Dialog, um Popover modal trava `body { pointer-events: none }`
38
+ * e prende o foco, então a busca não recebe clique/digitação (mesmo motivo do
39
+ * MultiCombobox).
36
40
  * - Mobile: Drawer (bottom sheet) + cmdk — evita os problemas de foco/clique de
37
41
  * Popover dentro de modal no touch, então a busca funciona no celular.
38
42
  *
@@ -116,13 +120,13 @@ export function Combobox({
116
120
 
117
121
  if (isDesktop) {
118
122
  return (
119
- <PopoverPrimitive.Root open={open} onOpenChange={setOpen} modal>
123
+ <PopoverPrimitive.Root open={open} onOpenChange={setOpen}>
120
124
  <PopoverPrimitive.Trigger asChild>{trigger}</PopoverPrimitive.Trigger>
121
125
  <PopoverPrimitive.Portal>
122
126
  <PopoverPrimitive.Content
123
127
  align="start"
124
128
  sideOffset={4}
125
- className="z-50 overflow-hidden rounded-md border bg-popover p-0 text-popover-foreground shadow-md"
129
+ className="pointer-events-auto z-50 overflow-hidden rounded-md border bg-popover p-0 text-popover-foreground shadow-md"
126
130
  style={{ width: "var(--radix-popover-trigger-width)" }}
127
131
  >
128
132
  {command}