@motor-hero/ui-kit 0.23.0 → 0.23.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motor-hero/ui-kit",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "Componentes React reutilizáveis para o ecossistema MotorHero — shadcn/ui + Tailwind CSS v4",
5
5
  "author": "MotorHero",
6
6
  "license": "UNLICENSED",
@@ -27,7 +27,10 @@ export interface MultiComboboxProps {
27
27
  /**
28
28
  * Combobox de múltipla seleção com chips, acessível e responsivo.
29
29
  *
30
- * - Desktop: Popover (modal) + cmdk — o dropdown acompanha a largura do gatilho.
30
+ * - Desktop: Popover não-modal + cmdk — o dropdown acompanha a largura do gatilho.
31
+ * Não-modal de propósito: dentro de um Dialog, um Popover modal trava
32
+ * `body { pointer-events: none }` e marca o resto do Dialog como aria-hidden,
33
+ * o que deixava a página/Dialog presos ao fechar com o picker aberto.
31
34
  * - Mobile: Drawer (bottom sheet) + cmdk — evita os problemas de foco/clique de
32
35
  * Popover dentro de modal no touch, então a busca funciona no celular.
33
36
  *
@@ -151,7 +154,7 @@ export function MultiCombobox({
151
154
 
152
155
  if (isDesktop) {
153
156
  return (
154
- <PopoverPrimitive.Root open={open} onOpenChange={setOpen} modal>
157
+ <PopoverPrimitive.Root open={open} onOpenChange={setOpen}>
155
158
  <PopoverPrimitive.Trigger asChild disabled={disabled}>
156
159
  {trigger}
157
160
  </PopoverPrimitive.Trigger>
@@ -159,7 +162,7 @@ export function MultiCombobox({
159
162
  <PopoverPrimitive.Content
160
163
  align="start"
161
164
  sideOffset={4}
162
- className="z-50 overflow-hidden rounded-md border bg-popover p-0 text-popover-foreground shadow-md"
165
+ className="pointer-events-auto z-50 overflow-hidden rounded-md border bg-popover p-0 text-popover-foreground shadow-md"
163
166
  style={{ width: "var(--radix-popover-trigger-width)" }}
164
167
  >
165
168
  {command}