@beweco/aurora-ui 1.0.0-beta.138 → 1.0.0-beta.140

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.
Files changed (132) hide show
  1. package/dist/assets/css/styles.css +23 -1
  2. package/dist/index.cjs.js +2757 -481
  3. package/dist/index.esm.js +2789 -498
  4. package/dist/types/__smoke__/v2-api-surface.d.ts +5 -2
  5. package/dist/types/__smoke__/v2-api-surface.d.ts.map +1 -1
  6. package/dist/types/compat/heroui-v2-shims.d.ts +212 -34
  7. package/dist/types/compat/heroui-v2-shims.d.ts.map +1 -1
  8. package/dist/types/components/autocomplete/AutoComplete.d.ts.map +1 -1
  9. package/dist/types/components/autocomplete/AutoComplete.types.d.ts +36 -2
  10. package/dist/types/components/autocomplete/AutoComplete.types.d.ts.map +1 -1
  11. package/dist/types/components/autocomplete/index.d.ts +1 -1
  12. package/dist/types/components/autocomplete/index.d.ts.map +1 -1
  13. package/dist/types/components/button/Button.d.ts +3 -0
  14. package/dist/types/components/button/Button.d.ts.map +1 -1
  15. package/dist/types/components/button/Button.types.d.ts +24 -1
  16. package/dist/types/components/button/Button.types.d.ts.map +1 -1
  17. package/dist/types/components/button/_internal/press-event.d.ts +16 -0
  18. package/dist/types/components/button/_internal/press-event.d.ts.map +1 -0
  19. package/dist/types/components/button/index.d.ts +1 -1
  20. package/dist/types/components/button/index.d.ts.map +1 -1
  21. package/dist/types/components/card/Card.d.ts +13 -1
  22. package/dist/types/components/card/Card.d.ts.map +1 -1
  23. package/dist/types/components/card/Card.types.d.ts +53 -1
  24. package/dist/types/components/card/Card.types.d.ts.map +1 -1
  25. package/dist/types/components/card/index.d.ts +1 -1
  26. package/dist/types/components/card/index.d.ts.map +1 -1
  27. package/dist/types/components/chip/Chip.d.ts +1 -1
  28. package/dist/types/components/chip/Chip.d.ts.map +1 -1
  29. package/dist/types/components/chip/Chip.types.d.ts +28 -6
  30. package/dist/types/components/chip/Chip.types.d.ts.map +1 -1
  31. package/dist/types/components/datepicker/DatePicker.d.ts +1 -1
  32. package/dist/types/components/datepicker/DatePicker.d.ts.map +1 -1
  33. package/dist/types/components/datepicker/DatePicker.types.d.ts +89 -1
  34. package/dist/types/components/datepicker/DatePicker.types.d.ts.map +1 -1
  35. package/dist/types/components/datepicker/calendar-slots.d.ts +17 -0
  36. package/dist/types/components/datepicker/calendar-slots.d.ts.map +1 -0
  37. package/dist/types/components/datepicker/index.d.ts +1 -1
  38. package/dist/types/components/datepicker/index.d.ts.map +1 -1
  39. package/dist/types/components/daterangepicker/DateRangePicker.d.ts +1 -1
  40. package/dist/types/components/daterangepicker/DateRangePicker.d.ts.map +1 -1
  41. package/dist/types/components/daterangepicker/DateRangePicker.types.d.ts +43 -1
  42. package/dist/types/components/daterangepicker/DateRangePicker.types.d.ts.map +1 -1
  43. package/dist/types/components/daterangepicker/index.d.ts +1 -1
  44. package/dist/types/components/daterangepicker/index.d.ts.map +1 -1
  45. package/dist/types/components/drawer/Drawer.d.ts +58 -0
  46. package/dist/types/components/drawer/Drawer.d.ts.map +1 -0
  47. package/dist/types/components/drawer/Drawer.types.d.ts +75 -0
  48. package/dist/types/components/drawer/Drawer.types.d.ts.map +1 -0
  49. package/dist/types/components/drawer/DrawerContext.d.ts +15 -0
  50. package/dist/types/components/drawer/DrawerContext.d.ts.map +1 -0
  51. package/dist/types/components/drawer/_internal/DrawerBody.d.ts +7 -0
  52. package/dist/types/components/drawer/_internal/DrawerBody.d.ts.map +1 -0
  53. package/dist/types/components/drawer/_internal/DrawerContent.d.ts +14 -0
  54. package/dist/types/components/drawer/_internal/DrawerContent.d.ts.map +1 -0
  55. package/dist/types/components/drawer/_internal/DrawerFooter.d.ts +13 -0
  56. package/dist/types/components/drawer/_internal/DrawerFooter.d.ts.map +1 -0
  57. package/dist/types/components/drawer/_internal/DrawerHeader.d.ts +20 -0
  58. package/dist/types/components/drawer/_internal/DrawerHeader.d.ts.map +1 -0
  59. package/dist/types/components/drawer/_internal/index.d.ts +5 -0
  60. package/dist/types/components/drawer/_internal/index.d.ts.map +1 -0
  61. package/dist/types/components/drawer/index.d.ts +4 -0
  62. package/dist/types/components/drawer/index.d.ts.map +1 -0
  63. package/dist/types/components/dropdown/Dropdown.d.ts +4 -2
  64. package/dist/types/components/dropdown/Dropdown.d.ts.map +1 -1
  65. package/dist/types/components/dropdown/Dropdown.types.d.ts +61 -5
  66. package/dist/types/components/dropdown/Dropdown.types.d.ts.map +1 -1
  67. package/dist/types/components/dropdown/_internal/renderTrigger.d.ts +47 -0
  68. package/dist/types/components/dropdown/_internal/renderTrigger.d.ts.map +1 -0
  69. package/dist/types/components/dropdown/index.d.ts +1 -1
  70. package/dist/types/components/dropdown/index.d.ts.map +1 -1
  71. package/dist/types/components/input/Input.d.ts +4 -0
  72. package/dist/types/components/input/Input.d.ts.map +1 -1
  73. package/dist/types/components/input/Input.types.d.ts +37 -1
  74. package/dist/types/components/input/Input.types.d.ts.map +1 -1
  75. package/dist/types/components/modal/Modal.d.ts +4 -3
  76. package/dist/types/components/modal/Modal.d.ts.map +1 -1
  77. package/dist/types/components/modal/Modal.types.d.ts +59 -3
  78. package/dist/types/components/modal/Modal.types.d.ts.map +1 -1
  79. package/dist/types/components/modal/ModalFacadeContext.d.ts +27 -0
  80. package/dist/types/components/modal/ModalFacadeContext.d.ts.map +1 -0
  81. package/dist/types/components/modal/_internal/ModalBody.d.ts +1 -1
  82. package/dist/types/components/modal/_internal/ModalBody.d.ts.map +1 -1
  83. package/dist/types/components/modal/_internal/ModalContent.d.ts +10 -5
  84. package/dist/types/components/modal/_internal/ModalContent.d.ts.map +1 -1
  85. package/dist/types/components/modal/_internal/ModalFooter.d.ts +1 -1
  86. package/dist/types/components/modal/_internal/ModalFooter.d.ts.map +1 -1
  87. package/dist/types/components/modal/_internal/ModalHeader.d.ts +4 -2
  88. package/dist/types/components/modal/_internal/ModalHeader.d.ts.map +1 -1
  89. package/dist/types/components/pagination/Pagination.d.ts +10 -0
  90. package/dist/types/components/pagination/Pagination.d.ts.map +1 -1
  91. package/dist/types/components/pagination/Pagination.types.d.ts +21 -0
  92. package/dist/types/components/pagination/Pagination.types.d.ts.map +1 -1
  93. package/dist/types/components/select/Select.d.ts.map +1 -1
  94. package/dist/types/components/select/Select.types.d.ts +64 -0
  95. package/dist/types/components/select/Select.types.d.ts.map +1 -1
  96. package/dist/types/components/select/_internal/v2-collection.d.ts +64 -0
  97. package/dist/types/components/select/_internal/v2-collection.d.ts.map +1 -0
  98. package/dist/types/components/select/index.d.ts +1 -1
  99. package/dist/types/components/select/index.d.ts.map +1 -1
  100. package/dist/types/components/table/AuraTable.types.d.ts +5 -3
  101. package/dist/types/components/table/AuraTable.types.d.ts.map +1 -1
  102. package/dist/types/components/table/Table.d.ts +15 -5
  103. package/dist/types/components/table/Table.d.ts.map +1 -1
  104. package/dist/types/components/table/TableContent.d.ts +32 -0
  105. package/dist/types/components/table/TableContent.d.ts.map +1 -0
  106. package/dist/types/components/table/_internal/v2-compat.d.ts +94 -0
  107. package/dist/types/components/table/_internal/v2-compat.d.ts.map +1 -0
  108. package/dist/types/components/tabs/Tabs.d.ts +5 -4
  109. package/dist/types/components/tabs/Tabs.d.ts.map +1 -1
  110. package/dist/types/components/tabs/Tabs.types.d.ts +90 -13
  111. package/dist/types/components/tabs/Tabs.types.d.ts.map +1 -1
  112. package/dist/types/components/textarea/Textarea.d.ts.map +1 -1
  113. package/dist/types/components/textarea/Textarea.types.d.ts +13 -0
  114. package/dist/types/components/textarea/Textarea.types.d.ts.map +1 -1
  115. package/dist/types/components/textarea/useTextareaAutosize.d.ts +13 -0
  116. package/dist/types/components/textarea/useTextareaAutosize.d.ts.map +1 -0
  117. package/dist/types/components/time-input/TimeInput.d.ts +12 -8
  118. package/dist/types/components/time-input/TimeInput.d.ts.map +1 -1
  119. package/dist/types/components/time-input/TimeInput.types.d.ts +29 -3
  120. package/dist/types/components/time-input/TimeInput.types.d.ts.map +1 -1
  121. package/dist/types/components/time-input/index.d.ts +2 -2
  122. package/dist/types/components/time-input/index.d.ts.map +1 -1
  123. package/dist/types/components/tooltip/Tooltip.d.ts.map +1 -1
  124. package/dist/types/components/tooltip/Tooltip.types.d.ts +31 -1
  125. package/dist/types/components/tooltip/Tooltip.types.d.ts.map +1 -1
  126. package/dist/types/components/tooltip/_internal/renderTrigger.d.ts +3 -0
  127. package/dist/types/components/tooltip/_internal/renderTrigger.d.ts.map +1 -0
  128. package/dist/types/components/tooltip/index.d.ts +1 -1
  129. package/dist/types/components/tooltip/index.d.ts.map +1 -1
  130. package/dist/types/index.d.ts +8 -7
  131. package/dist/types/index.d.ts.map +1 -1
  132. package/package.json +1 -1
@@ -67,8 +67,11 @@ declare function smokeAccordion(): import("react").JSX.Element;
67
67
  declare function smokeRadio(): import("react").JSX.Element;
68
68
  /** BreadcrumbItem v2 suelto. */
69
69
  declare function smokeBreadcrumbs(): import("react").JSX.Element;
70
- /** HeroUIProvider (v2, eliminado en v3) — envuelve la raíz de las 4 apps (App.tsx). */
71
- declare function smokeHeroUIProvider(): import("react").JSX.Element;
70
+ /**
71
+ * HeroUIProvider (v2, eliminado en v3) — envuelve la raíz de las 4 apps (App.tsx). Forma real de
72
+ * beweossmbs (`App.tsx:149-152`, `origin/staging`): `locale` + `navigate` del router.
73
+ */
74
+ declare function smokeHeroUIProvider(navigate: (path: string) => void): import("react").JSX.Element;
72
75
  declare function smokeProgress(): import("react").JSX.Element;
73
76
  /**
74
77
  * Los TRES usos reales de backoffice-beweos, uno a uno (extraídos del tag, no de un grep de
@@ -1 +1 @@
1
- {"version":3,"file":"v2-api-surface.d.ts","sourceRoot":"","sources":["../../../src/__smoke__/v2-api-surface.tsx"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAIN,KAAK,UAAU,EAUf,KAAK,aAAa,EAqBlB,KAAK,SAAS,EACd,KAAK,cAAc,EAGnB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EASzB,KAAK,aAAa,E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AACH,iBAAS,yBAAyB,CACjC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAAE,EACpB,iBAAiB,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,+BAsC5C;AAED;;;;;;;;;GASG;AACH,iBAAS,4BAA4B,gCAUpC;AAMD,iGAAiG;AACjG,iBAAS,oBAAoB;;;EAO5B;AAED,qGAAqG;AACrG,iBAAS,eAAe,IAAI,UAAU,CAWrC;AAED,iGAAiG;AACjG,iBAAS,oBAAoB,IAAI,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAElE;AAOD,0GAA0G;AAC1G,iBAAS,YAAY,gCA+BpB;AAED,wFAAwF;AACxF,iBAAS,oBAAoB,gCAW5B;AAED,yGAAyG;AACzG,iBAAS,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,+BAyBtE;AAED,iEAAiE;AACjE,iBAAS,uBAAuB,gCAS/B;AAED,gEAAgE;AAChE,iBAAS,kBAAkB,IAAI,aAAa,CAE3C;AAED,iGAAiG;AACjG,iBAAS,kBAAkB,IAAI,aAAa,CAU3C;AAMD,iBAAS,kBAAkB;;iBAMP,IAAI;kBACH,IAAI;sBACA,OAAO,KAAK,IAAI;mBACnB,IAAI;EAEzB;AAKD,iBAAS,OAAO,yCAEf;AAKD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCjC,CAAC"}
@@ -30,61 +30,239 @@
30
30
  * solo donde el coste es razonable. Donde no lo es, se documenta la limitación en el comentario
31
31
  * del símbolo y en `decisiones-aceptadas-f2.md`.
32
32
  */
33
- import { useOverlayState } from "@heroui/react";
34
- import type { ComponentProps, ReactNode } from "react";
35
- export declare const CardBody: <E extends keyof React.JSX.IntrinsicElements = "div">({ className, ...props }: import("@heroui/react").CardContentProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").CardContentProps<E>>) => import("react").JSX.Element;
36
- export declare const BreadcrumbItem: ({ children, className, ...props }: import("@heroui/react").BreadcrumbsItemProps & Omit<import("@heroui/react").LinkRootProps, "className">) => import("react").JSX.Element;
37
- export declare const AutocompleteItem: (({ children, className, variant, ...props }: import("@heroui/react").ListBoxItemRootProps) => import("react").JSX.Element) & {
38
- Root: ({ children, className, variant, ...props }: import("@heroui/react").ListBoxItemRootProps) => import("react").JSX.Element;
39
- Indicator: <E extends keyof React.JSX.IntrinsicElements = "span">({ children, className, ...props }: import("@heroui/react").ListBoxItemIndicatorProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").ListBoxItemIndicatorProps<E>>) => import("react").JSX.Element;
33
+ import { I18nProvider, ListBoxItem, ListBoxSection, ProgressBar, RouterProvider, useOverlayState } from "@heroui/react";
34
+ import type { ComponentProps, HTMLAttributes, JSX, ReactNode } from "react";
35
+ export declare const CardBody: <E extends keyof React.JSX.IntrinsicElements = "div">({ className, ...props }: import("@heroui/react").CardContentProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").CardContentProps<E>>) => import("react/jsx-runtime").JSX.Element;
36
+ export declare const BreadcrumbItem: ({ children, className, ...props }: import("@heroui/react").BreadcrumbsItemProps & Omit<import("@heroui/react").LinkRootProps, "className">) => import("react/jsx-runtime").JSX.Element;
37
+ /** Slots de v2 de un item (`@heroui/theme@2.4.15`, `listbox.js`, `menuItem.slots`). */
38
+ export interface SelectItemClassNames {
39
+ /** Raíz del item. Se fusiona con `className` (gana `className`, como en v2). */
40
+ base?: string;
41
+ /** Columna título + descripción (solo existe si hay `description`). */
42
+ wrapper?: string;
43
+ title?: string;
44
+ description?: string;
45
+ }
46
+ /**
47
+ * Props de `SelectItem`/`AutocompleteItem`: las de `ListBox.Item` de v3 MÁS la API de contenido
48
+ * de v2, que la fachada contenedora pinta como v2 (título + descripción, contenido a los lados).
49
+ */
50
+ export type SelectItemProps = ComponentProps<typeof ListBoxItem> & {
51
+ /** Segunda línea bajo el título (v2). Pinta con el `Description` de v3. */
52
+ description?: ReactNode;
53
+ /** Contenido a la izquierda del título (icono, avatar, punto de color…). */
54
+ startContent?: ReactNode;
55
+ /** Contenido a la derecha del título. */
56
+ endContent?: ReactNode;
57
+ /** Clases por slot de v2. `selectedIcon`/`shortcut` no tienen destino (ver README de Select). */
58
+ classNames?: SelectItemClassNames;
59
+ };
60
+ /** Slots de v2 de una sección (`listbox.js`, `menuSection.slots`). */
61
+ export interface SelectSectionClassNames {
62
+ base?: string;
63
+ heading?: string;
64
+ divider?: string;
65
+ }
66
+ /** Props de `SelectSection`: las de `ListBox.Section` de v3 MÁS `title`/`showDivider` de v2. */
67
+ export type SelectSectionProps = Omit<ComponentProps<typeof ListBoxSection>, "title"> & {
68
+ /** Cabecera visible de la sección (v2). Se compone con el `Header` de v3. */
69
+ title?: ReactNode;
70
+ /** Línea divisoria al final de la sección (v2, default `false`). */
71
+ showDivider?: boolean;
72
+ classNames?: SelectSectionClassNames;
40
73
  };
41
- export declare const SelectItem: (({ children, className, variant, ...props }: import("@heroui/react").ListBoxItemRootProps) => import("react").JSX.Element) & {
42
- Root: ({ children, className, variant, ...props }: import("@heroui/react").ListBoxItemRootProps) => import("react").JSX.Element;
43
- Indicator: <E extends keyof React.JSX.IntrinsicElements = "span">({ children, className, ...props }: import("@heroui/react").ListBoxItemIndicatorProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").ListBoxItemIndicatorProps<E>>) => import("react").JSX.Element;
74
+ type ItemComponent = ((props: SelectItemProps) => JSX.Element) & Pick<typeof ListBoxItem, "Root" | "Indicator">;
75
+ type SectionComponent = (props: SelectSectionProps) => JSX.Element;
76
+ export declare const AutocompleteItem: ItemComponent;
77
+ export declare const SelectItem: ItemComponent;
78
+ export declare const SelectSection: SectionComponent;
79
+ /** Divider → Separator. El uso INTERNO de la librería ya migró a `Separator` directo
80
+ * (`TagsFilter.tsx`); este shim es solo para las apps, que siguen importando `Divider`. */
81
+ export declare const Divider: (({ className, orientation, variant, ...props }: import("@heroui/react").SeparatorRootProps) => import("react/jsx-runtime").JSX.Element) & {
82
+ Root: ({ className, orientation, variant, ...props }: import("@heroui/react").SeparatorRootProps) => import("react/jsx-runtime").JSX.Element;
44
83
  };
45
- export declare const SelectSection: ({ children, className, ...props }: import("@heroui/react").ListBoxSectionRootProps) => import("react").JSX.Element;
46
- /** Progress → ProgressBar. */
47
- export declare const Progress: {
48
- ({ children, className, color, size, ...props }: import("@heroui/react").ProgressBarRootProps): import("react").JSX.Element;
49
- displayName: string;
50
- } & {
84
+ /** Colores de v2 (`@heroui/theme@2.4.15`, `progress.js`) más el `accent` de v3. */
85
+ export type ProgressColor = "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "accent";
86
+ /** Slots de v2 (`progress.js`, `slots`). `labelWrapper` no tiene destino: v3 es una rejilla. */
87
+ export interface ProgressClassNames {
88
+ base?: string;
89
+ label?: string;
90
+ value?: string;
91
+ track?: string;
92
+ indicator?: string;
93
+ }
94
+ /**
95
+ * Props del `Progress` de v2 sobre el `ProgressBar` de v3. `value`, `minValue`, `maxValue`,
96
+ * `valueLabel`, `formatOptions`, `isIndeterminate` y las `aria-*` vienen tal cual de react-aria
97
+ * (misma semántica en v2, que usaba el mismo `useProgressBar`).
98
+ */
99
+ export type ProgressProps = Omit<ComponentProps<typeof ProgressBar>, "color" | "size"> & {
100
+ /** Etiqueta visible a la izquierda, sobre la pista (v2). */
101
+ label?: ReactNode;
102
+ /** Muestra el valor formateado (por defecto en %) a la derecha, sobre la pista (v2). */
103
+ showValueLabel?: boolean;
104
+ /** @default "md" */
105
+ size?: "sm" | "md" | "lg";
106
+ /** Color del relleno. @default "primary" (v2) */
107
+ color?: ProgressColor;
108
+ /** Clases por slot de v2. */
109
+ classNames?: ProgressClassNames;
110
+ };
111
+ /**
112
+ * `Progress` de v2 (TECH-2459, hallazgo beweossmbs 23-sep: «es un alias del ProgressBar crudo y
113
+ * SIN HIJOS NO PINTA»).
114
+ *
115
+ * EL DEFECTO. Hasta aquí `Progress` era `ProgressBar` a secas, y el `ProgressBar` de v3 es un
116
+ * compound: la raíz solo publica el estado, la barra la pintan `ProgressBar.Track` +
117
+ * `ProgressBar.Fill`, y la etiqueta y el valor, `Label` + `ProgressBar.Output`. El JSX v2 de las
118
+ * apps (`<Progress value={40} color="primary" showValueLabel />`, 10 usos en beweossmbs) no trae
119
+ * ninguna de esas piezas, así que salía un `<div role="progressbar">` VACÍO: ni pista, ni relleno,
120
+ * ni texto. Además `color="primary"` no es un color de v3 y `showValueLabel`/`label`/`classNames`
121
+ * se descartaban.
122
+ *
123
+ * LO QUE HACE. Acepta la API v2 y monta por dentro la anatomía de v3. Es **idempotente por
124
+ * identidad de `child.type`**: si la app ya pasa `ProgressBar.Track` (o `Progress.Track`),
125
+ * `ProgressBar.Output` o `Label`, esa pieza no se añade otra vez (mismo criterio que la fachada
126
+ * `Tabs` con su indicador). Children como función se respetan tal cual.
127
+ *
128
+ * LO QUE NO COPIA DE v2, por §9.1 (verse como v3): las alturas de pista (v2 `h-1`/`h-3`/`h-5`,
129
+ * v3 `h-1`/`h-2`/`h-3`), el radio completo y el fondo `default-300/50` de la pista, y el tamaño de
130
+ * letra por `size` de la etiqueta. `size` elige el tamaño de v3 del mismo nombre.
131
+ */
132
+ declare function ProgressFacade({ label, showValueLabel, size, color, classNames, className, children, ...props }: ProgressProps): JSX.Element;
133
+ /**
134
+ * `Progress` de v2 con la anatomía de v3 dentro, y con los estáticos del compound colgados
135
+ * (`Progress.Track`, `Progress.Fill`, `Progress.Output`, `Progress.Root`) para que el marcado v3
136
+ * siga compilando: son los MISMOS objetos que `ProgressBar.*`, así que la detección por identidad
137
+ * los reconoce vengan por un nombre o por otro.
138
+ */
139
+ export declare const Progress: typeof ProgressFacade & {
51
140
  Root: {
52
- ({ children, className, color, size, ...props }: import("@heroui/react").ProgressBarRootProps): import("react").JSX.Element;
141
+ ({ children, className, color, size, ...props }: import("@heroui/react").ProgressBarRootProps): import("react/jsx-runtime").JSX.Element;
53
142
  displayName: string;
54
143
  };
55
144
  Output: {
56
- <E extends keyof React.JSX.IntrinsicElements = "span">({ children, className, ...props }: import("@heroui/react").ProgressBarOutputProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").ProgressBarOutputProps<E>>): import("react").JSX.Element;
145
+ <E extends keyof React.JSX.IntrinsicElements = "span">({ children, className, ...props }: import("@heroui/react").ProgressBarOutputProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").ProgressBarOutputProps<E>>): import("react/jsx-runtime").JSX.Element;
57
146
  displayName: string;
58
147
  };
59
148
  Track: {
60
- <E extends keyof React.JSX.IntrinsicElements = "div">({ children, className, ...props }: import("@heroui/react").ProgressBarTrackProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").ProgressBarTrackProps<E>>): import("react").JSX.Element;
149
+ <E extends keyof React.JSX.IntrinsicElements = "div">({ children, className, ...props }: import("@heroui/react").ProgressBarTrackProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").ProgressBarTrackProps<E>>): import("react/jsx-runtime").JSX.Element;
61
150
  displayName: string;
62
151
  };
63
152
  Fill: {
64
- <E extends keyof React.JSX.IntrinsicElements = "div">({ className, style, ...props }: import("@heroui/react").ProgressBarFillProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").ProgressBarFillProps<E>>): import("react").JSX.Element;
153
+ <E extends keyof React.JSX.IntrinsicElements = "div">({ className, style, ...props }: import("@heroui/react").ProgressBarFillProps<E> & Omit<React.JSX.IntrinsicElements[E], keyof import("@heroui/react").ProgressBarFillProps<E>>): import("react/jsx-runtime").JSX.Element;
65
154
  displayName: string;
66
155
  };
67
156
  };
68
- /** Divider → Separator. El uso INTERNO de la librería ya migró a `Separator` directo
69
- * (`TagsFilter.tsx`); este shim es solo para las apps, que siguen importando `Divider`. */
70
- export declare const Divider: (({ className, orientation, variant, ...props }: import("@heroui/react").SeparatorRootProps) => import("react").JSX.Element) & {
71
- Root: ({ className, orientation, variant, ...props }: import("@heroui/react").SeparatorRootProps) => import("react").JSX.Element;
72
- };
73
157
  /**
74
- * `HeroUIProvider` ya no existe en v3 (los componentes no necesitan Provider). Shim no-op: pasa
75
- * los `children` tal cual para que el `<HeroUIProvider>` (aliased `AuroraProvider`) que envuelve
76
- * la raíz de las 4 apps siga compilando y renderizando sin cambios.
158
+ * Props del `HeroUIProvider` de v2 (`@heroui/system@2.4.28`, `dist/provider.d.ts` +
159
+ * `dist/provider-context.d.ts`, leído del tarball, no de memoria). Solo `locale`, `navigate` y
160
+ * `useHref` tienen efecto en v3; el resto se acepta para que el JSX v2 siga compilando y se ignora
161
+ * sin lanzar (cada una documenta por qué).
162
+ *
163
+ * Los atributos HTML heredados corresponden al resto de props que v2 pasaba al `OverlayProvider`
164
+ * de react-aria (`ModalProviderProps`), que pintaba un `<div data-overlay-container>` alrededor de
165
+ * la app. Este shim NO pinta ese `div` (no lo hacía antes y las apps migradas ya maquetan sin él):
166
+ * se aceptan y se ignoran.
77
167
  */
78
- export declare function HeroUIProvider({ children }: {
168
+ export interface HeroUIProviderProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
79
169
  children?: ReactNode;
80
- }): import("react").JSX.Element;
170
+ /**
171
+ * Locale de react-aria para todo el árbol (formato de fechas y números, primer día de la
172
+ * semana, dirección y las cadenas propias de react-aria: meses del `DatePicker`, "Seleccionado"
173
+ * del `Select`…). Se aplica como `I18nProvider locale`, igual que en v2.
174
+ *
175
+ * ⚠️ Diferencia con v2: v2 ponía `locale = "en-US"` por defecto y SIEMPRE envolvía en
176
+ * `I18nProvider`; aquí, si no se pasa, no se envuelve y react-aria usa el idioma del navegador
177
+ * (el comportamiento que el shim no-op tenía hasta ahora).
178
+ */
179
+ locale?: ComponentProps<typeof I18nProvider>["locale"];
180
+ /**
181
+ * Navegación del router cliente para todos los enlaces react-aria anidados (`Link`,
182
+ * `BreadcrumbItem`, `Tabs`, `Menu`, filas de `Table` con `href`…). Se aplica como
183
+ * `RouterProvider navigate`, igual que en v2: sin ella esos `href` recargan la página entera.
184
+ */
185
+ navigate?: ComponentProps<typeof RouterProvider>["navigate"];
186
+ /**
187
+ * Convierte el `href` del enlace en el `href` nativo del DOM (p. ej. rutas relativas a un
188
+ * `basename`). Solo tiene efecto junto a `navigate`, como en v2 (`RouterProvider useHref`).
189
+ */
190
+ useHref?: ComponentProps<typeof RouterProvider>["useHref"];
191
+ /**
192
+ * v2: default global de `validationBehavior` vía su `ProviderContext`. v3 no tiene contexto
193
+ * global equivalente (cada campo lo recibe por prop; su default es `"native"`, el mismo que
194
+ * v2 aplicaba sin provider). Se ignora.
195
+ */
196
+ validationBehavior?: "aria" | "native";
197
+ /**
198
+ * v2: apagaba las animaciones de sus componentes vía `ProviderContext` (y, con
199
+ * `skipFramerMotionAnimations`, las de framer-motion). v3 anima con CSS y no lo lee. Se ignora.
200
+ */
201
+ disableAnimation?: boolean;
202
+ /** v2: saltar animaciones de framer-motion (`MotionGlobalConfig.skipAnimations`). Se ignora. */
203
+ skipFramerMotionAnimations?: boolean;
204
+ /** v2: `MotionConfig reducedMotion` de framer-motion (default `"never"`). Se ignora. */
205
+ reducedMotion?: "user" | "always" | "never";
206
+ /** v2: default global de `labelPlacement`. En v3 el label va siempre fuera. Se ignora. */
207
+ labelPlacement?: "inside" | "outside" | "outside-left" | "outside-top";
208
+ /** v2: apagar el efecto ripple. v3 no tiene ripple. Se ignora. */
209
+ disableRipple?: boolean;
210
+ /** v2: `minDate`/`maxDate` por defecto de sus calendarios. v3 no lo lee. Se ignora. */
211
+ defaultDates?: {
212
+ minDate?: unknown;
213
+ maxDate?: unknown;
214
+ };
215
+ /** v2: sistema de calendarios a medida (para aligerar el bundle). v3 no lo lee. Se ignora. */
216
+ createCalendar?: (identifier: never) => unknown;
217
+ /** v2: variante por defecto del `Spinner`. Se ignora. */
218
+ spinnerVariant?: string;
219
+ }
220
+ /**
221
+ * `HeroUIProvider` ya no existe en v3 (los componentes no necesitan Provider para pintarse). Pero
222
+ * el de v2 hacía dos cosas que react-aria sí necesita y que las apps no pueden montar por su
223
+ * cuenta (todo pasa por aurora-ui): `locale` → `I18nProvider` y `navigate`/`useHref` →
224
+ * `RouterProvider`. Este shim las repone, cada una SOLO cuando se pasa; sin props pasa los
225
+ * `children` tal cual, como el no-op que era. El resto de props v2 se aceptan y se ignoran (ver
226
+ * `HeroUIProviderProps`). Orden de anidado idéntico al de v2: `I18nProvider` por fuera,
227
+ * `RouterProvider` por dentro.
228
+ */
229
+ export declare function HeroUIProvider({ children, locale, navigate, useHref, }: HeroUIProviderProps): JSX.Element;
230
+ /** Radios de v2 (`@heroui/image@2.2.19` + `@heroui/theme@2.4.15`, `image.js`, `compoundSlots`). */
231
+ export type ImageRadius = "none" | "sm" | "md" | "lg" | "full";
232
+ /** Slots de v2. Solo `img` tiene destino: ver `Image` para el porqué de los otros tres. */
233
+ export interface ImageClassNames {
234
+ img?: string;
235
+ wrapper?: string;
236
+ zoomedWrapper?: string;
237
+ blurredImg?: string;
238
+ }
239
+ export type ImageProps = ComponentProps<"img"> & {
240
+ /** Radio de las esquinas (v2). @default "lg" (el de v2) */
241
+ radius?: ImageRadius;
242
+ /** Clases por slot de v2. `img` se fusiona con `className` (gana `classNames.img`, como v2). */
243
+ classNames?: ImageClassNames;
244
+ /** v2: no pintar el `<div>` envoltorio. Aquí nunca lo hay, así que es siempre cierto. */
245
+ removeWrapper?: boolean;
246
+ };
81
247
  /**
82
248
  * `Image` se elimina en v3 (usar `<img>` nativo, mismo criterio aplicado en
83
- * `SocialMediaPreview`/`WhatsAppPreview`). Shim: mismo nombre, props de un `<img>` nativo — NO
84
- * reproduce `radius`/`isBlurred`/`isZoomed`/`fallbackSrc` de v2 (sin equivalente razonable sin
85
- * reescribir una librería de imágenes completa); limitación documentada.
249
+ * `SocialMediaPreview`/`WhatsAppPreview`). Shim: un `<img>` nativo con la API de v2 que las apps
250
+ * escriben (TECH-2459, hallazgo beweossmbs 23-sep: 12 `<Image>` en la app; `radius` en 3,
251
+ * `classNames` en 3, `removeWrapper` en 2; 0 usos de `isZoomed`/`isBlurred`/`fallbackSrc`/`shadow`).
252
+ *
253
+ * - `radius`: con el default de v2 (`lg`). Sin él, las 9 imágenes que NO pasan `radius` salían con
254
+ * esquinas rectas en vez de las redondeadas de v2. Va primero en el `cn`: la clase de la app gana.
255
+ * - `className` + `classNames.img`: en v2 las dos iban al `<img>` (`use-image.mjs`:
256
+ * `cn(className, classNames?.img)`), y así aquí.
257
+ * - `classNames.wrapper`/`zoomedWrapper`/`blurredImg` y `removeWrapper` se ACEPTAN y no pintan: este
258
+ * shim no monta envoltorio. En v2 el `<div>` existía para el skeleton, el zoom y el desenfoque
259
+ * (`image.mjs`), y le ponía `max-width: fit-content` en línea — que es exactamente lo que los dos
260
+ * `classNames.wrapper` medidos deshacen («El wrapper de HeroUI Image trae `max-w-fit`», con
261
+ * `w-full !max-w-full`). Sin envoltorio, el `<img>` con su `w-full` ya ocupa el ancho: el efecto
262
+ * buscado sale sin la pieza.
263
+ * - NO reproduce `isZoomed`/`isBlurred`/`fallbackSrc`/`shadow`/skeleton (0 usos medidos).
86
264
  */
87
- export declare function Image(props: ComponentProps<"img">): import("react").JSX.Element;
265
+ export declare function Image({ radius, classNames, removeWrapper: _removeWrapper, className, ...props }: ImageProps): JSX.Element;
88
266
  /**
89
267
  * `Selection`/`SortDescriptor` NO cambiaron de forma: en v3 se siguen sirviendo desde
90
268
  * `@react-types/shared`/react-aria-components exactamente igual que en v2 (verificado contra
@@ -1 +1 @@
1
- {"version":3,"file":"heroui-v2-shims.d.ts","sourceRoot":"","sources":["../../../src/compat/heroui-v2-shims.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAON,eAAe,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,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AY,CAAC,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAMF;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC;;;;;;EAS1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/AutoComplete.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EACX,qBAAqB,EAIrB,MAAM,sBAAsB,CAAC;AAuT9B;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA8N5D,CAAC"}
1
+ {"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/AutoComplete.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EACX,qBAAqB,EAIrB,MAAM,sBAAsB,CAAC;AA8W9B;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoQ5D,CAAC"}
@@ -25,6 +25,22 @@ import type React from "react";
25
25
  export type AuraAutocompleteTranslations = {
26
26
  /** `aria-label` del botón de limpiar (`isClearable`). Default: "Limpiar". */
27
27
  clearButtonAriaLabel?: string;
28
+ /**
29
+ * Texto de la lista cuando no hay ninguna opción que mostrar (sin resultados). v2 pintaba el
30
+ * literal inglés "No results found." (`@heroui/autocomplete@2.3.34`, `use-autocomplete`); aquí
31
+ * va traducido. `listboxProps.emptyContent` gana sobre esta clave, como en v2.
32
+ * Default: "No se encontraron resultados".
33
+ */
34
+ emptyContent?: string;
35
+ };
36
+ /**
37
+ * Subconjunto de `listboxProps` de v2 que la fachada entiende. Solo `emptyContent`: el `ListBox`
38
+ * de v3 no tiene `topContent`/`bottomContent`/`itemClasses` (guía oficial: «Configure components
39
+ * directly»).
40
+ */
41
+ export type AuraAutocompleteListboxProps = {
42
+ /** Texto de la lista vacía (v2). Gana a `translations.emptyContent`. */
43
+ emptyContent?: React.ReactNode;
28
44
  };
29
45
  /** Variantes visuales de v2 del campo. */
30
46
  export type AutocompleteVariant = "flat" | "bordered" | "faded" | "underlined";
@@ -39,8 +55,13 @@ export type AuraAutocompleteProps<T extends object = object, M extends "single"
39
55
  * Por defecto se muestra una lupa. Pasa `null` para ocultar o un nodo para personalizar.
40
56
  */
41
57
  icon?: React.ReactNode | null;
42
- /** Opciones: elementos `AutocompleteItem` (o `ListBox.Section`) hijos del listado. */
43
- children?: React.ReactNode;
58
+ /**
59
+ * Opciones: elementos `AutocompleteItem` (o `ListBox.Section`) hijos del listado, o una
60
+ * FUNCIÓN que recibe cada objeto de `items` y devuelve su `AutocompleteItem` (colección
61
+ * dinámica de react-aria, igual que en v2). La forma de función es la de los 11 usos de
62
+ * beweossmbs; el tipo la había perdido (solo `ReactNode`) aunque en ejecución siempre funcionó.
63
+ */
64
+ children?: React.ReactNode | ((item: T) => React.ReactNode);
44
65
  /** className del `ComboBox` raíz. */
45
66
  className?: string;
46
67
  /**
@@ -87,5 +108,18 @@ export type AuraAutocompleteProps<T extends object = object, M extends "single"
87
108
  * @deprecated Sin equivalente en HeroUI v3. Se acepta por compatibilidad v2; no tiene efecto.
88
109
  */
89
110
  radius?: "none" | "sm" | "md" | "lg" | "full";
111
+ /**
112
+ * Mensaje de error bajo el campo (v2). Se pinta solo con `isInvalid`, igual que en v2 (su
113
+ * `helperWrapper` solo mostraba el error con el campo inválido). Compone el `FieldError` de v3.
114
+ */
115
+ errorMessage?: React.ReactNode;
116
+ /** v2: `listboxProps`. Solo se usa `emptyContent` (ver `AuraAutocompleteListboxProps`). */
117
+ listboxProps?: AuraAutocompleteListboxProps;
118
+ /**
119
+ * Muestra un spinner al final del campo mientras se cargan las opciones (v2). Ocupa el sitio
120
+ * del icono o del chevron; el campo sigue siendo operable.
121
+ * @default false
122
+ */
123
+ isLoading?: boolean;
90
124
  };
91
125
  //# sourceMappingURL=AutoComplete.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutoComplete.types.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/AutoComplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;;GAWG;AACH;;;;;;;;;GASG;AACH,MAAM,MAAM,4BAA4B,GAAG;IAC1C,6EAA6E;IAC7E,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,0CAA0C;AAC1C,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;AAE/E,wDAAwD;AACxD,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD,MAAM,MAAM,qBAAqB,CAChC,CAAC,SAAS,MAAM,GAAG,MAAM,EACzB,CAAC,SAAS,QAAQ,GAAG,UAAU,GAAG,QAAQ,IACvC,IAAI,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IAC9B,sFAAsF;IACtF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;CAC9C,CAAC"}
1
+ {"version":3,"file":"AutoComplete.types.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/AutoComplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;;GAWG;AACH;;;;;;;;;GASG;AACH,MAAM,MAAM,4BAA4B,GAAG;IAC1C,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AAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,2FAA2F;IAC3F,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export { AuraAutocomplete } from "./AutoComplete";
2
- export type { AuraAutocompleteProps, AuraAutocompleteTranslations, } from "./AutoComplete.types";
2
+ export type { AuraAutocompleteListboxProps, AuraAutocompleteProps, AuraAutocompleteTranslations, } from "./AutoComplete.types";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EACX,qBAAqB,EACrB,4BAA4B,GAC5B,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EACX,4BAA4B,EAC5B,qBAAqB,EACrB,4BAA4B,GAC5B,MAAM,sBAAsB,CAAC"}
@@ -16,6 +16,9 @@ import type { ButtonProps } from "./Button.types";
16
16
  * - `disableRipple`: v3 no tiene ripple — reimplementado en `_internal/ripple.tsx`, así que la
17
17
  * prop vuelve a apagar algo.
18
18
  * - `ai`: aura de Linda para las acciones que hace la IA (ver `Button.types.ts`).
19
+ * - Props DOM (`title`, `tabIndex`, `aria-*`…): llegan al `<button>` aunque react-aria las
20
+ * descarte (ver `DOM_ATTRS_DESCARTADOS`). `disabled` nativo equivale a `isDisabled`.
21
+ * - `as="a"` / `href` (API v2): renderiza un `<a>` con las mismas clases y colores del botón.
19
22
  */
20
23
  export declare const Button: React.FC<ButtonProps>;
21
24
  export default Button;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAe,WAAW,EAAiB,MAAM,gBAAgB,CAAC;AAmM9E;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA2GxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,CAAC;AACtB,OAAO,KAAK,EAAe,WAAW,EAAiB,MAAM,gBAAgB,CAAC;AAuR9E;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsMxC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -3,7 +3,30 @@ import type React from "react";
3
3
  export type ButtonColor = "primary" | "default" | "secondary" | "success" | "warning" | "danger";
4
4
  /** Vocabulario v2 (HeroUI v3 fusiona color+variant en un único `variant` de 7 valores propios). */
5
5
  export type ButtonVariant = "solid" | "bordered" | "light" | "flat" | "faded" | "ghost" | "shadow";
6
- export type ButtonProps = Omit<ButtonRootProps, "color" | "variant" | "children" | "isPending"> & {
6
+ /**
7
+ * Atributos DOM que v2 reenviaba al `<button>` y el `Button` de react-aria-components (v3)
8
+ * DESCARTA: su `filterDOMProps({ global: true })` solo deja pasar `id`, `dir`/`lang`/`hidden`/
9
+ * `inert`/`translate`, los eventos globales y `data-*` (`react-aria/dist/private/utils/
10
+ * filterDOMProps.mjs`), y `useButton` añade unos pocos `aria-*`. v2 pasaba TODO atributo HTML
11
+ * válido (`filterDOMProps(otherProps, { enabled: true })` de `@heroui/react-utils`, en
12
+ * `@heroui/button@2.2.22` `use-button.ts`). La fachada los repone (ver `Button.tsx`).
13
+ */
14
+ export type ButtonDOMProps = Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, "title" | "tabIndex" | "role" | "accessKey" | "draggable" | "spellCheck"> & React.AriaAttributes & {
15
+ /**
16
+ * Atributo nativo de v2. Equivale a `isDisabled` (v3 lo descartaba y el botón seguía
17
+ * pulsable: 12 usos en beweossmbs).
18
+ */
19
+ disabled?: boolean;
20
+ };
21
+ /**
22
+ * API v2 de botón-enlace: `<Button as="a" href="…" target="_blank">`. Con `href` la fachada
23
+ * renderiza un `<a>` con el aspecto del botón (v3 no acepta `href` en `Button`).
24
+ */
25
+ export type ButtonLinkProps = Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href" | "target" | "rel" | "download" | "hrefLang" | "referrerPolicy"> & {
26
+ /** Solo `"a"` tiene efecto (con `href`); es el único valor que usan las apps. */
27
+ as?: "a" | "button";
28
+ };
29
+ export type ButtonProps = Omit<ButtonRootProps, "color" | "variant" | "children" | "isPending"> & ButtonDOMProps & ButtonLinkProps & {
7
30
  /** Color semántico del botón (paleta BeweOS, sigue el pack de tema activo). @default "primary" */
8
31
  color?: ButtonColor;
9
32
  /** Tamaño del botón. @default "md" */
@@ -1 +1 @@
1
- {"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../../src/components/button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,WAAW,GACpB,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAEZ,mGAAmG;AACnG,MAAM,MAAM,aAAa,GACtB,OAAO,GACP,UAAU,GACV,OAAO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C;IAC9C,2FAA2F;IAC3F,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,6FAA6F;IAC7F,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,iGAAiG;IACjG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8FAA8F;IAC9F,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACnC,8DAA8D;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;;;;;;;OAcG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type React from "react";
2
+ import type { PressEventDeV3 } from "./ripple";
3
+ /**
4
+ * `click` nativo → un `PressEvent` con la forma del de react-aria.
5
+ *
6
+ * Lo usan las piezas de esta librería que NO pasan por un componente de react-aria y aun así
7
+ * exponen el `onPress` de v2: la `Card` pulsable (`<button>` nativo) y el `Button` con `href`
8
+ * (`<a>` nativo). No se importa `usePress` de react-aria porque no es `external` en
9
+ * `rollup.config.mjs`: se metería una segunda copia dentro del bundle.
10
+ *
11
+ * Un `click` nativo ya cubre ratón, táctil y teclado (Enter/Espacio en un botón, Enter en un
12
+ * enlace). `detail === 0` es un click sintético —teclado o `.click()`—, y como react-aria, se
13
+ * sitúa entonces el punto en el centro del elemento (lo necesita la onda expansiva).
14
+ */
15
+ export declare function pressEventFromClick(event: React.MouseEvent<HTMLElement>): PressEventDeV3;
16
+ //# sourceMappingURL=press-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"press-event.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/_internal/press-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,GAClC,cAAc,CAsBhB"}
@@ -1,3 +1,3 @@
1
1
  export { Button } from "./Button";
2
- export type { ButtonProps } from "./Button.types";
2
+ export type { ButtonDOMProps, ButtonLinkProps, ButtonProps, } from "./Button.types";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACX,cAAc,EACd,eAAe,EACf,WAAW,GACX,MAAM,gBAAgB,CAAC"}
@@ -1,3 +1,5 @@
1
+ import type React from "react";
2
+ import "./Card.css";
1
3
  import type { CardProps } from "./Card.types";
2
4
  /**
3
5
  * Card genérica siguiendo las reglas de diseño BeweOS basada en HeroUI v3.
@@ -12,7 +14,17 @@ import type { CardProps } from "./Card.types";
12
14
  * - Shadow: none, sm, md, lg (configurable, reimplementado vía className — v3 no tiene la prop)
13
15
  * - Radius: sm (por defecto, configurable, reimplementado vía className — v3 no tiene la prop)
14
16
  * - Padding configurable (sm, md, lg)
17
+ * - `className` de la app AL FINAL y fusionado con `cn` (tailwind-merge), como el `slots.base({
18
+ * class })` de v2: un `p-0`/`rounded-xl`/`shadow-2xl` de la app retira el default de la fachada
19
+ * en vez de competir con él por orden de CSS.
20
+ * - `ref` y TODAS las props DOM (`style`, `onMouse*`, `aria-*`, `data-*`…) llegan al nodo raíz,
21
+ * como en v2 (`HTMLHeroUIProps<"div">`).
22
+ * - API v2 de card pulsable: `isPressable`/`onPress`/`disableAnimation`/`disableRipple`, más
23
+ * `isHoverable`/`isDisabled`/`fullWidth`.
24
+ *
25
+ * `ref` se reenvía con `forwardRef` (patrón de las fachadas de campo del repo, ver
26
+ * `Input.tsx`) y apunta al nodo raíz: el `<div>` o, con `isPressable`, el `<button>`.
15
27
  */
16
- export declare const Card: ({ children, className, shadow, radius, padding, ...props }: CardProps) => import("react").JSX.Element;
28
+ export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
17
29
  export default Card;
18
30
  //# sourceMappingURL=Card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAwB9C;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,IAAI,GAAI,4DAOlB,SAAS,gCAeX,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,YAAY,CAAC;AACpB,OAAO,KAAK,EAAkB,SAAS,EAAE,MAAM,cAAc,CAAC;AAmD9D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,IAAI,kFA0FhB,CAAC;AAIF,eAAe,IAAI,CAAC"}
@@ -1,6 +1,39 @@
1
1
  import type { CardRootProps } from "@heroui/react";
2
+ import type React from "react";
2
3
  import type { ReactNode } from "react";
3
- export interface CardProps extends Omit<CardRootProps<"div">, "variant" | "children"> {
4
+ /**
5
+ * El `PressEvent` que recibe `onPress` en una card pulsable.
6
+ *
7
+ * v2 le pasaba el `PressEvent` de react-aria (`useAriaButton` en `@heroui/card@2.2.21`,
8
+ * `dist/chunk-*.mjs` · `useCard`). Esta fachada no arrastra react-aria como dependencia propia
9
+ * (no es `external` en `rollup.config.mjs`, se duplicaría dentro del bundle), así que construye
10
+ * un objeto con la misma forma a partir del `click` nativo del `<button>` — que ya cubre ratón,
11
+ * táctil y teclado (Enter/Espacio disparan `click` en un botón nativo). Mismos campos que el de
12
+ * react-aria salvo `key`, que solo existe en eventos de teclado y ningún consumidor lee.
13
+ */
14
+ export interface CardPressEvent {
15
+ type: "press";
16
+ pointerType: "mouse" | "touch" | "pen" | "keyboard" | "virtual";
17
+ target: HTMLElement;
18
+ shiftKey: boolean;
19
+ ctrlKey: boolean;
20
+ metaKey: boolean;
21
+ altKey: boolean;
22
+ /** Punto pulsado relativo a la card (centro de la card si vino del teclado). */
23
+ x: number;
24
+ y: number;
25
+ /** No-op: se conserva por compatibilidad de firma con react-aria. */
26
+ continuePropagation: () => void;
27
+ }
28
+ /**
29
+ * Props DOM de la raíz. v2 extendía `HTMLHeroUIProps<"div">` (todas las props del `<div>`), así
30
+ * que las apps escriben `ref`, `style`, `onMouseMove`/`onMouseEnter`/`onMouseLeave`, `aria-*`,
31
+ * `data-*`… y esperan que lleguen al nodo. `CardRootProps<"div">` de v3 NO las declara (solo
32
+ * `children`/`className`/`variant`/`render`: el resto lo intersecta la FIRMA de `CardRoot`, no la
33
+ * interfaz), de ahí que el tipo público las rechazara aunque en runtime sí se reenviaban.
34
+ */
35
+ type CardDOMProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "className">;
36
+ export interface CardProps extends CardDOMProps, Omit<CardRootProps<"div">, "variant" | "children" | "className"> {
4
37
  children: ReactNode;
5
38
  className?: string;
6
39
  /** Nivel de sombra. @default "sm" (traducido a los tokens propios `--aurora-shadow-*`) */
@@ -9,10 +42,29 @@ export interface CardProps extends Omit<CardRootProps<"div">, "variant" | "child
9
42
  radius?: "none" | "sm" | "md" | "lg";
10
43
  /** Padding interno. @default "md" */
11
44
  padding?: "sm" | "md" | "lg";
45
+ /**
46
+ * API v2: la card entera es un botón. Se renderiza como `<button type="button">` (igual que
47
+ * v2, que cambiaba el elemento a `button`), enfocable, con cursor de mano, hundido al pulsar
48
+ * (`scale(0.97)`) y onda expansiva. @default false
49
+ */
50
+ isPressable?: boolean;
51
+ /** API v2: se llama al pulsar una card `isPressable` (ratón, táctil o teclado). */
52
+ onPress?: (event: CardPressEvent) => void;
53
+ /** API v2: apaga el hundido de pulsado, la transición y la onda. @default false */
54
+ disableAnimation?: boolean;
55
+ /** API v2: apaga solo la onda expansiva de una card pulsable. @default false */
56
+ disableRipple?: boolean;
57
+ /** API v2: la card pinta `bg-content2` al pasar el ratón. @default false */
58
+ isHoverable?: boolean;
59
+ /** API v2: atenúa la card (`opacity-disabled`) y bloquea `onPress`. @default false */
60
+ isDisabled?: boolean;
61
+ /** API v2: la card ocupa el 100% del ancho. @default false */
62
+ fullWidth?: boolean;
12
63
  }
13
64
  export declare const paddingClasses: {
14
65
  readonly sm: "p-4";
15
66
  readonly md: "p-6";
16
67
  readonly lg: "p-8";
17
68
  };
69
+ export {};
18
70
  //# sourceMappingURL=Card.types.d.ts.map