pixelon 0.9.0 → 0.9.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.
Files changed (216) hide show
  1. package/dist/components/molecules/chat/StructuredContent/components/ReactiveCrud/types.d.ts +2 -0
  2. package/dist/components/molecules/chat/StructuredContent/components/SupportRequestForm/SupportRequestForm.d.ts +25 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.esm.js +384 -302
  5. package/dist/index.js +384 -301
  6. package/dist/styles.css +1 -1
  7. package/dist/styles.css.map +1 -1
  8. package/package.json +1 -1
  9. package/src/styles/index.scss +1 -0
  10. package/dist/components/atoms/chat/AudioWaves/AudioWaves(1).d.ts +0 -21
  11. package/dist/components/atoms/chat/AudioWaves/index(1).d.ts +0 -2
  12. package/dist/components/atoms/chat/DateDivider/DateDivider(1).d.ts +0 -7
  13. package/dist/components/atoms/chat/Loader/Loader(1).d.ts +0 -10
  14. package/dist/components/atoms/chat/Loader/index(1).d.ts +0 -2
  15. package/dist/components/atoms/chat/Select/index(1).d.ts +0 -2
  16. package/dist/components/atoms/lumi/Button/Button(1).d.ts +0 -17
  17. package/dist/components/atoms/lumi/Checkbox/Checkbox(1).d.ts +0 -5
  18. package/dist/components/atoms/lumi/Checkbox/index(1).d.ts +0 -2
  19. package/dist/components/atoms/lumi/Checkbox/index(2).d.ts +0 -2
  20. package/dist/components/atoms/lumi/Checkbox/types(1).d.ts +0 -93
  21. package/dist/components/atoms/lumi/CurrencyDisplay/index(1).d.ts +0 -2
  22. package/dist/components/atoms/lumi/DateDisplay/index(1).d.ts +0 -2
  23. package/dist/components/atoms/lumi/DateDisplay/index(2).d.ts +0 -2
  24. package/dist/components/atoms/lumi/DateInput/DateInput(1).d.ts +0 -27
  25. package/dist/components/atoms/lumi/DateInput/WebDatePicker(1).d.ts +0 -19
  26. package/dist/components/atoms/lumi/DateInput/WebDatePicker(2).d.ts +0 -19
  27. package/dist/components/atoms/lumi/Icon/Icon(1).d.ts +0 -52
  28. package/dist/components/atoms/lumi/Input/index(1).d.ts +0 -3
  29. package/dist/components/atoms/lumi/Popover/index(1).d.ts +0 -2
  30. package/dist/components/atoms/lumi/Popover/types(1).d.ts +0 -62
  31. package/dist/components/atoms/lumi/TextArea/index(1).d.ts +0 -2
  32. package/dist/components/atoms/lumi/TextArea/types(1).d.ts +0 -35
  33. package/dist/components/atoms/lumi/TimeInput/TimeInput(1).d.ts +0 -27
  34. package/dist/components/atoms/lumi/TimeInput/TimeInput(2).d.ts +0 -27
  35. package/dist/components/molecules/chat/FullscreenViewer/hooks/useSwipeGestures(1).d.ts +0 -12
  36. package/dist/components/molecules/chat/StructuredContent/StructuredContent(1).d.ts +0 -10
  37. package/dist/components/molecules/chat/StructuredContent/components/Cart/Cart.d.ts +0 -3
  38. package/dist/components/molecules/chat/StructuredContent/components/ProductCard/ProductCard.d.ts +0 -3
  39. package/dist/components/molecules/chat/StructuredContent/components/ProductCarousel/ProductCarousel.d.ts +0 -3
  40. package/dist/components/molecules/chat/StructuredContent/components/ProductManager/ProductManager.d.ts +0 -3
  41. package/dist/components/molecules/chat/StructuredContent/components/ReactiveCrud/PriceNegotiationChat.d.ts +0 -4
  42. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/DynamicField(1).d.ts +0 -13
  43. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/buildYupSchema(1).d.ts +0 -4
  44. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/types(1).d.ts +0 -91
  45. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(1).d.ts +0 -17
  46. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(2).d.ts +0 -23
  47. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveForm(1).d.ts +0 -38
  48. package/dist/components/molecules/chat/StructuredContent/components/ReactiveMap/ReactiveMap.d.ts +0 -12
  49. package/dist/components/molecules/chat/StructuredContent/components/ReactiveMap/ReactiveMapChat.d.ts +0 -3
  50. package/dist/components/molecules/chat/StructuredContent/components/ReactiveMap/types.d.ts +0 -36
  51. package/dist/components/molecules/chat/StructuredContent/components/ServiceShortcuts/ServiceShortcutsChat.d.ts +0 -3
  52. package/dist/components/molecules/chat/StructuredContent/helpers/contentParser(1).d.ts +0 -7
  53. package/dist/components/molecules/chat/StructuredContent/index(1).d.ts +0 -2
  54. package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(1).d.ts +0 -10
  55. package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(2).d.ts +0 -10
  56. package/dist/components/molecules/lumi/Breadcrumb/types(1).d.ts +0 -105
  57. package/dist/components/molecules/lumi/Checkbox/Checkbox(1).d.ts +0 -11
  58. package/dist/components/molecules/lumi/Checkbox/index(1).d.ts +0 -4
  59. package/dist/components/molecules/lumi/Checkbox/use-cases/index(1).d.ts +0 -1
  60. package/dist/components/molecules/lumi/Checkbox/validation-helpers(1).d.ts +0 -151
  61. package/dist/components/molecules/lumi/DateInput/FormDateInput(1).d.ts +0 -12
  62. package/dist/components/molecules/lumi/DateInput/index(1).d.ts +0 -2
  63. package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputClearWithResetUseCase(1).d.ts +0 -21
  64. package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputErrorVisibilityUseCase(1).d.ts +0 -21
  65. package/dist/components/molecules/lumi/Drawer/Drawer(1).d.ts +0 -39
  66. package/dist/components/molecules/lumi/Drawer/index(1).d.ts +0 -2
  67. package/dist/components/molecules/lumi/DropdownMenu/DropdownMenu(1).d.ts +0 -22
  68. package/dist/components/molecules/lumi/DropdownMenu/index(1).d.ts +0 -2
  69. package/dist/components/molecules/lumi/DropdownMenu/types(1).d.ts +0 -29
  70. package/dist/components/molecules/lumi/Filter/FilterRow(1).d.ts +0 -13
  71. package/dist/components/molecules/lumi/Filter/helpers/conditionHelpers(1).d.ts +0 -14
  72. package/dist/components/molecules/lumi/Filter/index(1).d.ts +0 -5
  73. package/dist/components/molecules/lumi/Filter/types(1).d.ts +0 -115
  74. package/dist/components/molecules/lumi/Input/Input(1).d.ts +0 -12
  75. package/dist/components/molecules/lumi/Menu/Menu(1).d.ts +0 -18
  76. package/dist/components/molecules/lumi/Menu/MenuContext(1).d.ts +0 -41
  77. package/dist/components/molecules/lumi/Menu/MenuItem(1).d.ts +0 -6
  78. package/dist/components/molecules/lumi/Menu/MenuItem(2).d.ts +0 -6
  79. package/dist/components/molecules/lumi/Menu/MenuItemGroup(1).d.ts +0 -6
  80. package/dist/components/molecules/lumi/Menu/SubMenu(1).d.ts +0 -6
  81. package/dist/components/molecules/lumi/Menu/iconHelper(1).d.ts +0 -15
  82. package/dist/components/molecules/lumi/Menu/index(1).d.ts +0 -8
  83. package/dist/components/molecules/lumi/Menu/index(2).d.ts +0 -8
  84. package/dist/components/molecules/lumi/Menu/types(1).d.ts +0 -119
  85. package/dist/components/molecules/lumi/Pagination/Pagination(1).d.ts +0 -4
  86. package/dist/components/molecules/lumi/Pagination/index(1).d.ts +0 -2
  87. package/dist/components/molecules/lumi/Select/Select(1).d.ts +0 -14
  88. package/dist/components/molecules/lumi/Select/Select(2).d.ts +0 -14
  89. package/dist/components/molecules/lumi/Select/Select(3).d.ts +0 -14
  90. package/dist/components/molecules/lumi/Select/index(1).d.ts +0 -2
  91. package/dist/components/molecules/lumi/Select/index(2).d.ts +0 -2
  92. package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(1).d.ts +0 -21
  93. package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(2).d.ts +0 -21
  94. package/dist/components/molecules/lumi/Select/use-cases/index(1).d.ts +0 -2
  95. package/dist/components/molecules/lumi/Select/use-cases/index(2).d.ts +0 -2
  96. package/dist/components/molecules/lumi/SessionExpiryPrompt/SessionExpiryPrompt.d.ts +0 -25
  97. package/dist/components/molecules/lumi/SessionExpiryPrompt/index.d.ts +0 -1
  98. package/dist/components/molecules/lumi/Table/Table(1).d.ts +0 -6
  99. package/dist/components/molecules/lumi/Table/Table(2).d.ts +0 -6
  100. package/dist/components/molecules/lumi/Table/index(1).d.ts +0 -2
  101. package/dist/components/molecules/lumi/Table/types(1).d.ts +0 -177
  102. package/dist/components/molecules/lumi/Table/types(2).d.ts +0 -177
  103. package/dist/components/molecules/lumi/Tabs/Tabs(1).d.ts +0 -4
  104. package/dist/components/molecules/lumi/Tabs/Tabs(2).d.ts +0 -4
  105. package/dist/components/molecules/lumi/Tabs/index(1).d.ts +0 -2
  106. package/dist/components/molecules/lumi/Tabs/index(2).d.ts +0 -2
  107. package/dist/components/molecules/lumi/TimeInput/FormTimeInput(1).d.ts +0 -12
  108. package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputClearWithResetUseCase(1).d.ts +0 -21
  109. package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputErrorVisibilityUseCase(1).d.ts +0 -21
  110. package/dist/components/molecules/lumi/TimeInput/use-cases/index(1).d.ts +0 -4
  111. package/dist/components/organisms/chat/Chat/Chat(1).d.ts +0 -12
  112. package/dist/components/organisms/chat/Chat/hooks/useChatHandlers(1).d.ts +0 -15
  113. package/dist/components/organisms/chat/Chat/hooks/useKeyboardLock(1).d.ts +0 -15
  114. package/dist/components/organisms/chat/Chat/index(1).d.ts +0 -3
  115. package/dist/components/organisms/chat/Chat/store/index(1).d.ts +0 -4
  116. package/dist/components/organisms/chat/Chat/use-cases/GroupMessagesByDateUseCase(1).d.ts +0 -20
  117. package/dist/components/organisms/chat/index(1).d.ts +0 -3
  118. package/dist/components/organisms/chat/index(2).d.ts +0 -3
  119. package/dist/components/organisms/lumi/ActionBar/ActionBar(1).d.ts +0 -18
  120. package/dist/components/organisms/lumi/ActionBar/types(1).d.ts +0 -57
  121. package/dist/components/organisms/lumi/BaseNavbar/types(1).d.ts +0 -34
  122. package/dist/components/organisms/lumi/BaseWorkspace/BaseWorkspace(1).d.ts +0 -28
  123. package/dist/components/organisms/lumi/BaseWorkspace/index(1).d.ts +0 -2
  124. package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(1).d.ts +0 -18
  125. package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(2).d.ts +0 -18
  126. package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(3).d.ts +0 -18
  127. package/dist/components/organisms/lumi/Calendar/components/CalendarHeader(1).d.ts +0 -14
  128. package/dist/components/organisms/lumi/Calendar/components/TimeGutter(1).d.ts +0 -10
  129. package/dist/components/organisms/lumi/Calendar/components/TimeGutter(2).d.ts +0 -10
  130. package/dist/components/organisms/lumi/Calendar/hooks/index(1).d.ts +0 -4
  131. package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(1).d.ts +0 -58
  132. package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(2).d.ts +0 -58
  133. package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(1).d.ts +0 -21
  134. package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(2).d.ts +0 -21
  135. package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(1).d.ts +0 -14
  136. package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(2).d.ts +0 -14
  137. package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(3).d.ts +0 -14
  138. package/dist/components/organisms/lumi/Calendar/i18n/index(1).d.ts +0 -1
  139. package/dist/components/organisms/lumi/Calendar/i18n/index(2).d.ts +0 -1
  140. package/dist/components/organisms/lumi/Calendar/i18n/translations(1).d.ts +0 -34
  141. package/dist/components/organisms/lumi/Calendar/index(1).d.ts +0 -2
  142. package/dist/components/organisms/lumi/Calendar/utils/dateUtils(1).d.ts +0 -140
  143. package/dist/components/organisms/lumi/Calendar/utils/dateUtils(2).d.ts +0 -140
  144. package/dist/components/organisms/lumi/Calendar/utils/index(1).d.ts +0 -2
  145. package/dist/components/organisms/lumi/Calendar/utils/multiDayUtils(1).d.ts +0 -73
  146. package/dist/components/organisms/lumi/Calendar/views/DayView(1).d.ts +0 -17
  147. package/dist/components/organisms/lumi/Calendar/views/DayView(2).d.ts +0 -17
  148. package/dist/components/organisms/lumi/Calendar/views/MonthView(1).d.ts +0 -17
  149. package/dist/components/organisms/lumi/Calendar/views/MonthView(2).d.ts +0 -17
  150. package/dist/components/organisms/lumi/Calendar/views/WeekView(1).d.ts +0 -19
  151. package/dist/components/organisms/lumi/Calendar/views/WeekView(2).d.ts +0 -19
  152. package/dist/components/organisms/lumi/Calendar/views/YearView(1).d.ts +0 -13
  153. package/dist/components/organisms/lumi/Calendar/views/index(1).d.ts +0 -4
  154. package/dist/components/organisms/lumi/Calendar/views/index(2).d.ts +0 -4
  155. package/dist/components/organisms/lumi/DashboardNavbar/index(1).d.ts +0 -7
  156. package/dist/components/organisms/lumi/DashboardNavbar/types(1).d.ts +0 -52
  157. package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(1).d.ts +0 -23
  158. package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(2).d.ts +0 -23
  159. package/dist/components/organisms/lumi/DashboardWorkspace/index(1).d.ts +0 -7
  160. package/dist/components/organisms/lumi/DashboardWorkspace/index(2).d.ts +0 -7
  161. package/dist/components/organisms/lumi/DashboardWorkspace/types(1).d.ts +0 -60
  162. package/dist/components/organisms/lumi/DashboardWorkspace/types(2).d.ts +0 -60
  163. package/dist/components/organisms/lumi/DynamicForm/DynamicForm(1).d.ts +0 -21
  164. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(1).d.ts +0 -17
  165. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(2).d.ts +0 -17
  166. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(1).d.ts +0 -6
  167. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(2).d.ts +0 -6
  168. package/dist/components/organisms/lumi/DynamicForm/index(1).d.ts +0 -2
  169. package/dist/components/organisms/lumi/DynamicForm/index(2).d.ts +0 -2
  170. package/dist/components/organisms/lumi/DynamicForm/types(1).d.ts +0 -96
  171. package/dist/components/organisms/lumi/DynamicForm/types(2).d.ts +0 -96
  172. package/dist/components/organisms/lumi/FormDrawer/FormDrawer(1).d.ts +0 -5
  173. package/dist/components/organisms/lumi/FormDrawer/index(1).d.ts +0 -3
  174. package/dist/components/organisms/lumi/FormDrawer/types(1).d.ts +0 -61
  175. package/dist/components/organisms/lumi/FormDrawer/types(2).d.ts +0 -61
  176. package/dist/components/organisms/lumi/Stepper/StepIndicator(1).d.ts +0 -4
  177. package/dist/components/organisms/lumi/Stepper/Stepper(1).d.ts +0 -5
  178. package/dist/components/organisms/lumi/Stepper/index(1).d.ts +0 -3
  179. package/dist/components/organisms/lumi/Stepper/types(1).d.ts +0 -96
  180. package/dist/components/organisms/lumi/Stepper/types(2).d.ts +0 -96
  181. package/dist/components/organisms/lumi/index(1).d.ts +0 -10
  182. package/dist/components/organisms/lumi/index(2).d.ts +0 -10
  183. package/dist/components/templates/chat/ChatWidget/ChatWidget(1).d.ts +0 -10
  184. package/dist/components/templates/chat/ChatWidget/hooks/index(1).d.ts +0 -1
  185. package/dist/components/templates/chat/ChatWidget/index(1).d.ts +0 -2
  186. package/dist/components/templates/chat/ChatWidget/index(2).d.ts +0 -2
  187. package/dist/components/templates/chat/ChatWidget/types(1).d.ts +0 -90
  188. package/dist/components/templates/lumi/Base/hooks/index(1).d.ts +0 -2
  189. package/dist/components/templates/lumi/Base/hooks/useAppHeight(1).d.ts +0 -21
  190. package/dist/components/templates/lumi/Base/index(1).d.ts +0 -2
  191. package/dist/components/templates/lumi/Base/types(1).d.ts +0 -54
  192. package/dist/components/templates/lumi/Crud/Crud(1).d.ts +0 -6
  193. package/dist/components/templates/lumi/Crud/Crud(2).d.ts +0 -6
  194. package/dist/components/templates/lumi/Crud/ScrollToEnd.d.ts +0 -18
  195. package/dist/components/templates/lumi/Crud/helpers/fieldMapper(1).d.ts +0 -13
  196. package/dist/components/templates/lumi/Crud/hooks/useCrudActions(1).d.ts +0 -11
  197. package/dist/components/templates/lumi/Crud/index(1).d.ts +0 -2
  198. package/dist/components/templates/lumi/Crud/store/actions(1).d.ts +0 -45
  199. package/dist/components/templates/lumi/Crud/store/crudStore(1).d.ts +0 -8
  200. package/dist/components/templates/lumi/Crud/store/index(1).d.ts +0 -5
  201. package/dist/components/templates/lumi/Crud/store/types(1).d.ts +0 -71
  202. package/dist/components/templates/lumi/Dashboard/Dashboard(1).d.ts +0 -25
  203. package/dist/components/templates/lumi/Dashboard/hooks/index(1).d.ts +0 -12
  204. package/dist/components/templates/lumi/Dashboard/hooks/index(2).d.ts +0 -12
  205. package/dist/components/templates/lumi/Dashboard/hooks/useDashboardStore(1).d.ts +0 -34
  206. package/dist/components/templates/lumi/Dashboard/hooks/useScrollToTop(1).d.ts +0 -47
  207. package/dist/components/templates/lumi/Dashboard/index(1).d.ts +0 -10
  208. package/dist/components/templates/lumi/Dashboard/store/storeKeys(1).d.ts +0 -13
  209. package/dist/components/templates/lumi/Dashboard/store/types(1).d.ts +0 -73
  210. package/dist/components/templates/lumi/Dashboard/store/types(2).d.ts +0 -73
  211. package/dist/components/templates/lumi/Dashboard/types(1).d.ts +0 -114
  212. package/dist/components/templates/lumi/Dashboard/types(2).d.ts +0 -114
  213. package/dist/components/templates/lumi/index(1).d.ts +0 -3
  214. package/dist/core/chat/ChatConfigContext(1).d.ts +0 -36
  215. package/dist/index(1).esm.js +0 -19378
  216. package/dist/index(1).js +0 -19487
@@ -1,105 +0,0 @@
1
- import type { ReactNode, CSSProperties, MouseEvent } from 'react';
2
- /**
3
- * Tamaño del breadcrumb
4
- */
5
- export type BreadcrumbSize = 'small' | 'medium' | 'large';
6
- /**
7
- * Props para un item del dropdown menu
8
- */
9
- export interface BreadcrumbItemDropdownItem {
10
- /** Clave única del item */
11
- key: string;
12
- /** Texto a mostrar */
13
- label: string;
14
- /** Ruta del link */
15
- href?: string;
16
- /** Icono opcional */
17
- icon?: ReactNode;
18
- /** Callback al hacer click */
19
- onClick?: (e: MouseEvent<HTMLAnchorElement>) => void;
20
- }
21
- /**
22
- * Props para el dropdown menu
23
- */
24
- export interface BreadcrumbItemMenu {
25
- /** Items del dropdown */
26
- items: BreadcrumbItemDropdownItem[];
27
- /** Callback cuando se selecciona un item */
28
- onClick?: (item: BreadcrumbItemDropdownItem) => void;
29
- }
30
- /**
31
- * Props para un item individual del breadcrumb
32
- */
33
- export interface BreadcrumbItem {
34
- /** Texto o contenido a mostrar */
35
- title: ReactNode;
36
- /** Ruta del link (si es undefined, no será clickeable) */
37
- href?: string;
38
- /** Icono opcional */
39
- icon?: ReactNode;
40
- /** Si el item está deshabilitado */
41
- disabled?: boolean;
42
- /** Menú dropdown para items colapsados */
43
- menu?: BreadcrumbItemMenu;
44
- /** Callback al hacer click */
45
- onClick?: (e: MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
46
- /** Clase CSS adicional */
47
- className?: string;
48
- }
49
- /**
50
- * Props para el componente Breadcrumb
51
- */
52
- export interface BreadcrumbProps {
53
- /** Items del breadcrumb */
54
- items?: BreadcrumbItem[];
55
- /** Separador entre items (puede ser string o ReactNode) */
56
- separator?: ReactNode;
57
- /** Máximo número de items a mostrar antes de colapsar */
58
- maxItems?: number;
59
- /** Número de items a mostrar antes del colapso */
60
- itemsBeforeCollapse?: number;
61
- /** Número de items a mostrar después del colapso */
62
- itemsAfterCollapse?: number;
63
- /** Tamaño del breadcrumb */
64
- size?: BreadcrumbSize;
65
- /** Si debe mostrar icono de home en el primer item */
66
- showHomeIcon?: boolean;
67
- /** Callback cuando se hace click en un item */
68
- onItemClick?: (item: BreadcrumbItem, index: number) => void;
69
- /** Clase CSS adicional */
70
- className?: string;
71
- /** Estilos inline */
72
- style?: CSSProperties;
73
- /** Test ID para testing */
74
- 'data-testid'?: string;
75
- }
76
- /**
77
- * Props para el componente BreadcrumbItem
78
- */
79
- export interface BreadcrumbItemProps {
80
- /** Contenido del item */
81
- children: ReactNode;
82
- /** Ruta del link */
83
- href?: string;
84
- /** Icono opcional */
85
- icon?: ReactNode;
86
- /** Si es el último item (actual) */
87
- isLast?: boolean;
88
- /** Si el item está deshabilitado */
89
- disabled?: boolean;
90
- /** Menú dropdown para items colapsados */
91
- menu?: BreadcrumbItemMenu;
92
- /** Callback al hacer click */
93
- onClick?: (e: MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
94
- /** Clase CSS adicional */
95
- className?: string;
96
- }
97
- /**
98
- * Props para el componente BreadcrumbSeparator
99
- */
100
- export interface BreadcrumbSeparatorProps {
101
- /** Contenido del separador */
102
- children?: ReactNode;
103
- /** Clase CSS adicional */
104
- className?: string;
105
- }
@@ -1,11 +0,0 @@
1
- import { type Control } from "react-hook-form";
2
- import { type CheckboxProps as LumiCheckboxProps } from "../../../atoms/lumi/Checkbox";
3
- export interface FormCheckboxProps extends Omit<LumiCheckboxProps, "error" | "onChange" | "checked" | "onBlur" | "name"> {
4
- name: string;
5
- control: Control<any>;
6
- }
7
- export declare const Checkbox: {
8
- ({ name, control, ...props }: FormCheckboxProps): import("react/jsx-runtime").JSX.Element;
9
- displayName: string;
10
- };
11
- export default Checkbox;
@@ -1,4 +0,0 @@
1
- export { Checkbox, type FormCheckboxProps } from "./Checkbox";
2
- export { Checkbox as default } from "./Checkbox";
3
- export { checkboxValidation, checkboxGroupValidation, commonSchemas, checkboxUtils, } from "./validation-helpers";
4
- export { useFormCheckboxErrorVisibility, type FormCheckboxErrorVisibilityOptions, } from "./use-cases";
@@ -1 +0,0 @@
1
- export { useFormCheckboxErrorVisibility, type FormCheckboxErrorVisibilityOptions, } from "./FormCheckboxErrorVisibilityUseCase";
@@ -1,151 +0,0 @@
1
- import * as yup from "yup";
2
- /**
3
- * Helper de validación para campos checkbox
4
- */
5
- export declare const checkboxValidation: {
6
- /**
7
- * Checkbox requerido (debe estar marcado)
8
- */
9
- required: (message?: string) => yup.BooleanSchema<NonNullable<boolean | undefined>, yup.AnyObject, undefined, "">;
10
- /**
11
- * Checkbox booleano básico
12
- */
13
- boolean: () => yup.BooleanSchema<boolean | undefined, yup.AnyObject, undefined, "">;
14
- /**
15
- * Checkbox booleano con valor por defecto
16
- */
17
- withDefault: (defaultValue?: boolean) => yup.BooleanSchema<boolean | undefined, yup.AnyObject, boolean, "d">;
18
- /**
19
- * Validación personalizada basada en condición
20
- */
21
- requiredWhen: (condition: boolean | (() => boolean), message?: string) => yup.BooleanSchema<boolean | undefined, yup.AnyObject, undefined, "">;
22
- /**
23
- * Al menos uno debe estar marcado en un grupo
24
- */
25
- atLeastOneRequired: (fieldNames: string[], message?: string) => yup.BooleanSchema<boolean | undefined, yup.AnyObject, undefined, "">;
26
- };
27
- /**
28
- * Helper de validación para grupos de checkboxes (arrays)
29
- */
30
- export declare const checkboxGroupValidation: {
31
- /**
32
- * Al menos un elemento seleccionado en el array
33
- */
34
- atLeastOne: (message?: string) => yup.ArraySchema<any[], yup.AnyObject, undefined, "">;
35
- /**
36
- * Exactamente N elementos seleccionados
37
- */
38
- exactly: (count: number, message?: string) => yup.ArraySchema<any[], yup.AnyObject, undefined, "">;
39
- /**
40
- * Entre min y max elementos seleccionados
41
- */
42
- between: (min: number, max: number, message?: string) => yup.ArraySchema<any[], yup.AnyObject, undefined, "">;
43
- /**
44
- * Máximo N elementos seleccionados
45
- */
46
- max: (maxCount: number, message?: string) => yup.ArraySchema<any[] | undefined, yup.AnyObject, undefined, "">;
47
- /**
48
- * Array opcional de checkboxes
49
- */
50
- optional: () => yup.ArraySchema<any[] | undefined, yup.AnyObject, undefined, "">;
51
- };
52
- /**
53
- * Schemas comunes para formularios con checkboxes
54
- */
55
- export declare const commonSchemas: {
56
- /**
57
- * Schema para aceptar términos y condiciones
58
- */
59
- termsAndConditions: yup.ObjectSchema<{
60
- acceptTerms: NonNullable<boolean | undefined>;
61
- acceptPrivacy: NonNullable<boolean | undefined>;
62
- }, yup.AnyObject, {
63
- acceptTerms: undefined;
64
- acceptPrivacy: undefined;
65
- }, "">;
66
- /**
67
- * Schema para preferencias de notificaciones
68
- */
69
- notificationPreferences: yup.ObjectSchema<{
70
- emailNotifications: boolean;
71
- smsNotifications: boolean;
72
- pushNotifications: boolean;
73
- }, yup.AnyObject, {
74
- emailNotifications: true;
75
- smsNotifications: false;
76
- pushNotifications: true;
77
- }, "">;
78
- /**
79
- * Schema para selección múltiple con mínimo
80
- */
81
- multipleSelection: (minRequired?: number) => yup.ObjectSchema<{
82
- selectedOptions: any[];
83
- }, yup.AnyObject, {
84
- selectedOptions: undefined;
85
- }, "">;
86
- /**
87
- * Schema para configuración de permisos
88
- */
89
- permissions: yup.ObjectSchema<{
90
- canRead: boolean;
91
- canWrite: boolean;
92
- canDelete: boolean;
93
- canShare: boolean;
94
- }, yup.AnyObject, {
95
- canRead: true;
96
- canWrite: false;
97
- canDelete: false;
98
- canShare: false;
99
- }, "">;
100
- /**
101
- * Schema para registro con consentimientos
102
- */
103
- registrationConsents: yup.ObjectSchema<{
104
- acceptTerms: NonNullable<boolean | undefined>;
105
- acceptAge: NonNullable<boolean | undefined>;
106
- marketingConsent: boolean;
107
- newsletterConsent: boolean;
108
- }, yup.AnyObject, {
109
- acceptTerms: undefined;
110
- acceptAge: undefined;
111
- marketingConsent: false;
112
- newsletterConsent: false;
113
- }, "">;
114
- };
115
- /**
116
- * Utilidades para validación de checkboxes
117
- */
118
- export declare const checkboxUtils: {
119
- /**
120
- * Valida si al menos uno de los campos está marcado
121
- */
122
- validateAtLeastOne: (values: Record<string, boolean>) => boolean;
123
- /**
124
- * Cuenta cuántos checkboxes están marcados
125
- */
126
- countChecked: (values: Record<string, boolean>) => number;
127
- /**
128
- * Obtiene las keys de los checkboxes marcados
129
- */
130
- getCheckedKeys: (values: Record<string, boolean>) => string[];
131
- /**
132
- * Valida si todos los checkboxes están marcados
133
- */
134
- allChecked: (values: Record<string, boolean>) => boolean;
135
- /**
136
- * Valida si ningún checkbox está marcado
137
- */
138
- noneChecked: (values: Record<string, boolean>) => boolean;
139
- /**
140
- * Marca todos los checkboxes
141
- */
142
- checkAll: (keys: string[]) => Record<string, boolean>;
143
- /**
144
- * Desmarca todos los checkboxes
145
- */
146
- uncheckAll: (keys: string[]) => Record<string, boolean>;
147
- /**
148
- * Invierte el estado de todos los checkboxes
149
- */
150
- toggleAll: (values: Record<string, boolean>) => Record<string, boolean>;
151
- };
@@ -1,12 +0,0 @@
1
- import { type Control } from "react-hook-form";
2
- import { type DateInputProps as LumiDateInputProps } from "../../../atoms/lumi/DateInput";
3
- export interface DateInputProps extends Omit<LumiDateInputProps, "error" | "onChange" | "value" | "onBlur" | "name"> {
4
- name: string;
5
- control: Control<any>;
6
- clearWithReset?: boolean | string | number;
7
- }
8
- export declare const DateInput: {
9
- ({ name, control, clearWithReset, onClear, ...props }: DateInputProps): import("react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
12
- export default DateInput;
@@ -1,2 +0,0 @@
1
- export { DateInput } from './FormDateInput';
2
- export type { DateInputProps } from './FormDateInput';
@@ -1,21 +0,0 @@
1
- import type { Control, ControllerRenderProps } from 'react-hook-form';
2
- export interface FormDateInputClearWithResetOptions {
3
- clearWithReset: boolean | string | number;
4
- name: string;
5
- control: Control<any>;
6
- field: ControllerRenderProps<any, string>;
7
- wasClearedRef: {
8
- current: boolean;
9
- };
10
- onClear?: () => void;
11
- }
12
- /**
13
- * Hook personalizado para manejar la funcionalidad de limpiar con reset
14
- * en formularios con React Hook Form para DateInput
15
- *
16
- * @param options - Configuración para el manejo de clear con reset
17
- * @returns Función handleClear que maneja el reset y limpieza de errores
18
- */
19
- export declare const useFormDateInputClearWithReset: (options: FormDateInputClearWithResetOptions) => {
20
- handleClear: () => void;
21
- };
@@ -1,21 +0,0 @@
1
- import type { Control, ControllerRenderProps } from 'react-hook-form';
2
- export interface FormDateInputErrorVisibilityOptions {
3
- clearWithReset: boolean | string | number;
4
- hasError: string | undefined;
5
- wasClearedRef: {
6
- current: boolean;
7
- };
8
- field: ControllerRenderProps<any, string>;
9
- control: Control<any>;
10
- name: string;
11
- }
12
- /**
13
- * Hook personalizado para manejar la visibilidad de errores en DateInput
14
- * considerando la funcionalidad clearWithReset
15
- *
16
- * @param options - Configuración para el manejo de visibilidad de errores
17
- * @returns shouldShowError - Boolean que indica si se debe mostrar el error
18
- */
19
- export declare const useFormDateInputErrorVisibility: (options: FormDateInputErrorVisibilityOptions) => {
20
- shouldShowError: boolean;
21
- };
@@ -1,39 +0,0 @@
1
- import type { FC } from "react";
2
- import type { DrawerPosition, DrawerSize } from "../../../../core/constants/lumi";
3
- import "./Drawer.scss";
4
- export interface DrawerProps {
5
- /** Controla si el drawer está abierto o cerrado */
6
- isOpen: boolean;
7
- /** Callback cuando el drawer se cierra */
8
- onClose: () => void;
9
- /** Contenido del drawer */
10
- children: React.ReactNode;
11
- /** Posición desde donde aparece el drawer */
12
- position?: DrawerPosition;
13
- /** Ancho del drawer (para left/right) o alto (para top/bottom) */
14
- size?: DrawerSize;
15
- /** Ancho/alto fijo en píxeles cuando size='fixed' */
16
- fixedSize?: number;
17
- /** Porcentaje de la pantalla cuando size='responsive' (default: 80) */
18
- responsivePercentage?: number;
19
- /** Título del drawer (opcional) */
20
- title?: string;
21
- /** Contenido extra en el header (junto al botón de close) */
22
- headerExtra?: React.ReactNode;
23
- /** Mostrar botón de cerrar */
24
- showCloseButton?: boolean;
25
- /** Cerrar al hacer clic en el overlay */
26
- closeOnOverlayClick?: boolean;
27
- /** Cerrar al presionar Escape */
28
- closeOnEscape?: boolean;
29
- /** Mostrar overlay/backdrop */
30
- showOverlay?: boolean;
31
- /** Clase CSS adicional */
32
- className?: string;
33
- /** Test ID para testing */
34
- "data-testid"?: string;
35
- /** Distancia del indicador de scroll desde el borde inferior (en rem). Default: 1 */
36
- scrollIndicatorOffset?: number;
37
- }
38
- export declare const Drawer: FC<DrawerProps>;
39
- export default Drawer;
@@ -1,2 +0,0 @@
1
- export { Drawer, type DrawerProps } from './Drawer';
2
- export { useAppHeight } from './hooks/useAppHeight';
@@ -1,22 +0,0 @@
1
- import React from "react";
2
- import type { DropdownMenuProps } from "./types";
3
- import "./DropdownMenu.scss";
4
- /**
5
- * DropdownMenu - Molécula de Lumi
6
- *
7
- * Menú desplegable que se abre desde un elemento trigger.
8
- * Usado principalmente en la columna de acciones de tablas CRUD.
9
- *
10
- * @example
11
- * ```tsx
12
- * <DropdownMenu
13
- * trigger={<Button icon="more-vertical" variant="ghost" size="small" />}
14
- * options={[
15
- * { label: 'Editar', onClick: handleEdit, icon: 'edit' },
16
- * { label: 'Eliminar', onClick: handleDelete, icon: 'trash' },
17
- * { label: 'Ver', onClick: handleView, icon: 'eye' },
18
- * ]}
19
- * />
20
- * ```
21
- */
22
- export declare const DropdownMenu: React.FC<DropdownMenuProps>;
@@ -1,2 +0,0 @@
1
- export { DropdownMenu } from './DropdownMenu';
2
- export type { DropdownMenuProps, DropdownMenuOption } from './types';
@@ -1,29 +0,0 @@
1
- import type { LumiIconType } from '../../../atoms/lumi/Icon/Icon';
2
- /**
3
- * Opción individual del menú desplegable
4
- */
5
- export interface DropdownMenuOption {
6
- /** Etiqueta que se muestra en la opción */
7
- label: string;
8
- /** Función que se ejecuta al hacer clic en la opción */
9
- onClick: () => void;
10
- /** Ícono opcional que se muestra junto a la etiqueta */
11
- icon?: LumiIconType;
12
- /** Si la opción está deshabilitada */
13
- disabled?: boolean;
14
- }
15
- /**
16
- * Props del componente DropdownMenu
17
- */
18
- export interface DropdownMenuProps {
19
- /** Lista de opciones del menú */
20
- options: DropdownMenuOption[];
21
- /** Elemento que actúa como trigger (botón) para abrir el menú */
22
- trigger: React.ReactNode;
23
- /** Posición del menú relativa al trigger */
24
- position?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
25
- /** Clase CSS adicional para el contenedor */
26
- className?: string;
27
- /** Usar portal para renderizar el menú fuera del contexto (evita problemas de overflow) */
28
- usePortal?: boolean;
29
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { type FilterConditionType } from '../../../../core/constants/lumi';
3
- import type { FilterValue, FilterFieldConfig } from './types';
4
- export interface FilterRowProps {
5
- filter: FilterValue;
6
- fieldConfig: FilterFieldConfig;
7
- onRemove: () => void;
8
- onToggleOperator: () => void;
9
- onConditionChange: (condition: FilterConditionType) => void;
10
- disabled?: boolean;
11
- }
12
- export declare const FilterRow: React.FC<FilterRowProps>;
13
- export default FilterRow;
@@ -1,14 +0,0 @@
1
- import { type FilterConditionType, type FilterInputType } from '../../../../../core/constants/lumi';
2
- import type { SelectOption } from '../../../../atoms/lumi/Select';
3
- /**
4
- * Obtiene las condiciones permitidas según el tipo de input
5
- */
6
- export declare const getConditionsForInputType: (inputType: FilterInputType, allowedConditions?: FilterConditionType[]) => FilterConditionType[];
7
- /**
8
- * Convierte condiciones a opciones de Select
9
- */
10
- export declare const conditionsToSelectOptions: (conditions: FilterConditionType[]) => SelectOption[];
11
- /**
12
- * Obtiene el label de una condición
13
- */
14
- export declare const getConditionLabel: (condition: FilterConditionType) => string;
@@ -1,5 +0,0 @@
1
- export { Filter } from './Filter';
2
- export { FilterRow } from './FilterRow';
3
- export * from './types';
4
- export * from './helpers';
5
- export { FILTER_INPUT_TYPES, FILTER_CONDITION_TYPES, type FilterInputType, type FilterConditionType, } from '../../../../core/constants/lumi';
@@ -1,115 +0,0 @@
1
- import type { SelectOption } from "../../../atoms/lumi/Select";
2
- import { type FilterConditionType, type FilterInputType } from "../../../../core/constants/lumi";
3
- /**
4
- * Configuración de un campo filtrable
5
- */
6
- export interface FilterFieldConfig {
7
- /** Nombre del campo (debe coincidir con el campo del backend) */
8
- name: string;
9
- /** Label visible para el usuario */
10
- label: string;
11
- /** Tipo de input a mostrar */
12
- inputType: FilterInputType;
13
- /**
14
- * Control de react-hook-form (inyectado internamente por el componente Filter)
15
- * No es necesario pasarlo manualmente, se distribuye automáticamente desde Filter.
16
- * @internal
17
- */
18
- control?: any;
19
- /** Condiciones permitidas para este campo */
20
- allowedConditions?: FilterConditionType[];
21
- /** Opciones (solo para inputType 'select') */
22
- options?: SelectOption[];
23
- /** Placeholder del input */
24
- placeholder?: string;
25
- /** Valor por defecto */
26
- defaultValue?: unknown;
27
- /** Transformación del valor antes de enviar al backend */
28
- transform?: (value: unknown) => unknown;
29
- /**
30
- * Props adicionales específicas de la molécula (Input, Select, DateInput, TimeInput, etc.)
31
- * Permite pasar cualquier prop soportada por la molécula correspondiente.
32
- *
33
- * Ejemplos:
34
- * - Para Input con número: { autoFormat: true, prefix: "$", decimalPlaces: 2, thousandSeparator: "." }
35
- * - Para Input de texto: { maxLength: 100, autoCapitalize: "words" }
36
- * - Para DateInput: { minDate: "2024-01-01", maxDate: "2024-12-31" }
37
- * - Para Select: { isSearchable: true, isClearable: true }
38
- */
39
- uiProps?: Record<string, any>;
40
- }
41
- /**
42
- * Filtro individual en el estado del componente
43
- */
44
- export interface FilterValue {
45
- /** ID único del filtro (generado internamente) */
46
- id: string;
47
- /** Campo seleccionado */
48
- field: string;
49
- /** Condición seleccionada */
50
- condition: FilterConditionType;
51
- /** Valor del filtro */
52
- value: unknown;
53
- /** Grupo al que pertenece (null para AND, número para OR) */
54
- group: number | null;
55
- /** Indica si este filtro tiene errores de validación */
56
- hasError?: boolean;
57
- /** Mensaje de error si existe */
58
- errorMessage?: string;
59
- }
60
- /**
61
- * Estructura de filtro esperada por el backend
62
- */
63
- export interface FilterManager {
64
- /** Campo de la entidad a filtrar */
65
- field: string;
66
- /** Tipo de condición */
67
- condition: FilterConditionType;
68
- /** Valor de comparación */
69
- value: unknown;
70
- /** Grupo para operaciones OR (opcional) */
71
- group?: number | null;
72
- }
73
- /**
74
- * Props del componente Filter
75
- */
76
- export interface FilterProps {
77
- /** Configuración de campos filtrables */
78
- fields: FilterFieldConfig[];
79
- /** Control de react-hook-form (opcional, para validación) */
80
- control?: any;
81
- /** Filtros iniciales (opcional) */
82
- defaultFilters?: FilterManager[];
83
- /** Callback cuando los filtros cambian */
84
- onChange?: (filters: FilterManager[]) => void;
85
- /** Callback cuando se aplican los filtros */
86
- onApply?: (filters: FilterManager[]) => void;
87
- /** Callback cuando se limpian todos los filtros */
88
- onClear?: () => void;
89
- /** Mostrar botón "Aplicar" */
90
- showApplyButton?: boolean;
91
- /** Mostrar botón "Limpiar" */
92
- showClearButton?: boolean;
93
- /** Permitir agrupación OR */
94
- allowGrouping?: boolean;
95
- /** Texto del botón aplicar */
96
- applyButtonText?: string;
97
- /** Texto del botón limpiar */
98
- clearButtonText?: string;
99
- /** Texto del botón agregar filtro */
100
- addFilterText?: string;
101
- /** Máximo número de filtros permitidos */
102
- maxFilters?: number;
103
- /** Expandir al ancho completo del contenedor */
104
- fullWidth?: boolean;
105
- /** Clase CSS adicional */
106
- className?: string;
107
- /** Estilos inline */
108
- style?: React.CSSProperties;
109
- /** Deshabilitar todo el componente */
110
- disabled?: boolean;
111
- /** Texto del estado vacío */
112
- emptyText?: string;
113
- /** Texto para el empty subtitle */
114
- emptySubtext?: string;
115
- }
@@ -1,12 +0,0 @@
1
- import { type Control } from "react-hook-form";
2
- import { type InputProps as LumiInputProps } from "../../../atoms/lumi/Input";
3
- export interface FormInputProps extends Omit<LumiInputProps, "error" | "onChange" | "value" | "onBlur" | "name"> {
4
- name: string;
5
- control: Control<any>;
6
- clearWithReset?: boolean | string | number;
7
- }
8
- export declare const Input: {
9
- ({ name, control, clearWithReset, onClear, ...props }: FormInputProps): import("react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
12
- export default Input;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { MenuProps } from './types';
3
- import './Menu.scss';
4
- /**
5
- * Componente Menu para navegación
6
- *
7
- * @example
8
- * ```tsx
9
- * <Menu
10
- * items={menuItemsFromBackend}
11
- * mode="inline"
12
- * theme="light"
13
- * defaultSelectedKeys={['dashboard']}
14
- * onSelect={(info) => console.log('Selected:', info.key)}
15
- * />
16
- * ```
17
- */
18
- export declare const Menu: React.FC<MenuProps>;
@@ -1,41 +0,0 @@
1
- import type { MenuMode, MenuTheme, MenuTriggerAction } from '../../../../core/constants/lumi';
2
- /**
3
- * Información del item seleccionado
4
- */
5
- export interface SelectInfo {
6
- key: string;
7
- keyPath: string[];
8
- }
9
- /**
10
- * Contexto del Menu para compartir estado entre componentes
11
- */
12
- export interface MenuContextType {
13
- /** Modo del menú (vertical, horizontal, inline) */
14
- mode: MenuMode;
15
- /** Tema del menú (light, dark) */
16
- theme: MenuTheme;
17
- /** Keys de los items seleccionados (para selección múltiple) */
18
- selectedKeys: string[];
19
- /** Keys de los submenús abiertos */
20
- openKeys: string[];
21
- /** Si está en modo accordion (solo un submenú abierto a la vez) */
22
- accordion: boolean;
23
- /** Acción que dispara la apertura de submenús (hover, click) */
24
- triggerSubMenuAction: MenuTriggerAction;
25
- /** Handler cuando se selecciona un item */
26
- onSelect?: (info: SelectInfo) => void;
27
- /** Handler cuando se abre/cierra un submenú */
28
- onOpenChange?: (openKeys: string[]) => void;
29
- /** Handler interno para actualizar selectedKeys */
30
- setSelectedKeys: (keys: string[]) => void;
31
- /** Handler interno para actualizar openKeys */
32
- setOpenKeys: (keys: string[]) => void;
33
- /** Nivel de indentación para submenús inline (px) */
34
- inlineIndent: number;
35
- }
36
- export declare const MenuProvider: import("react").Provider<MenuContextType | undefined>;
37
- /**
38
- * Hook para acceder al contexto del Menu
39
- * Lanza error si se usa fuera del MenuProvider
40
- */
41
- export declare const useMenuContext: () => MenuContextType;