pixelon 0.9.2 → 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 (213) hide show
  1. package/dist/components/molecules/chat/StructuredContent/components/ReactiveCrud/types.d.ts +2 -0
  2. package/dist/index.esm.js +13 -4
  3. package/dist/index.js +13 -4
  4. package/dist/styles.css +1 -1
  5. package/dist/styles.css.map +1 -1
  6. package/package.json +1 -1
  7. package/dist/components/atoms/chat/AudioWaves/AudioWaves(1).d.ts +0 -21
  8. package/dist/components/atoms/chat/AudioWaves/index(1).d.ts +0 -2
  9. package/dist/components/atoms/chat/DateDivider/DateDivider(1).d.ts +0 -7
  10. package/dist/components/atoms/chat/Loader/Loader(1).d.ts +0 -10
  11. package/dist/components/atoms/chat/Loader/index(1).d.ts +0 -2
  12. package/dist/components/atoms/chat/Select/index(1).d.ts +0 -2
  13. package/dist/components/atoms/lumi/Button/Button(1).d.ts +0 -17
  14. package/dist/components/atoms/lumi/Checkbox/Checkbox(1).d.ts +0 -5
  15. package/dist/components/atoms/lumi/Checkbox/index(1).d.ts +0 -2
  16. package/dist/components/atoms/lumi/Checkbox/index(2).d.ts +0 -2
  17. package/dist/components/atoms/lumi/Checkbox/types(1).d.ts +0 -93
  18. package/dist/components/atoms/lumi/CurrencyDisplay/index(1).d.ts +0 -2
  19. package/dist/components/atoms/lumi/DateDisplay/index(1).d.ts +0 -2
  20. package/dist/components/atoms/lumi/DateDisplay/index(2).d.ts +0 -2
  21. package/dist/components/atoms/lumi/DateInput/DateInput(1).d.ts +0 -27
  22. package/dist/components/atoms/lumi/DateInput/WebDatePicker(1).d.ts +0 -19
  23. package/dist/components/atoms/lumi/DateInput/WebDatePicker(2).d.ts +0 -19
  24. package/dist/components/atoms/lumi/Icon/Icon(1).d.ts +0 -52
  25. package/dist/components/atoms/lumi/Input/index(1).d.ts +0 -3
  26. package/dist/components/atoms/lumi/Popover/index(1).d.ts +0 -2
  27. package/dist/components/atoms/lumi/Popover/types(1).d.ts +0 -62
  28. package/dist/components/atoms/lumi/TextArea/index(1).d.ts +0 -2
  29. package/dist/components/atoms/lumi/TextArea/types(1).d.ts +0 -35
  30. package/dist/components/atoms/lumi/TimeInput/TimeInput(1).d.ts +0 -27
  31. package/dist/components/atoms/lumi/TimeInput/TimeInput(2).d.ts +0 -27
  32. package/dist/components/molecules/chat/FullscreenViewer/hooks/useSwipeGestures(1).d.ts +0 -12
  33. package/dist/components/molecules/chat/StructuredContent/StructuredContent(1).d.ts +0 -10
  34. package/dist/components/molecules/chat/StructuredContent/components/Cart/Cart.d.ts +0 -3
  35. package/dist/components/molecules/chat/StructuredContent/components/ProductCard/ProductCard.d.ts +0 -3
  36. package/dist/components/molecules/chat/StructuredContent/components/ProductCarousel/ProductCarousel.d.ts +0 -3
  37. package/dist/components/molecules/chat/StructuredContent/components/ProductManager/ProductManager.d.ts +0 -3
  38. package/dist/components/molecules/chat/StructuredContent/components/ReactiveCrud/PriceNegotiationChat.d.ts +0 -4
  39. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/DynamicField(1).d.ts +0 -13
  40. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/buildYupSchema(1).d.ts +0 -4
  41. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/types(1).d.ts +0 -91
  42. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(1).d.ts +0 -17
  43. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveEndpoints(2).d.ts +0 -23
  44. package/dist/components/molecules/chat/StructuredContent/components/ReactiveForm/useReactiveForm(1).d.ts +0 -38
  45. package/dist/components/molecules/chat/StructuredContent/components/ReactiveMap/ReactiveMap.d.ts +0 -12
  46. package/dist/components/molecules/chat/StructuredContent/components/ReactiveMap/ReactiveMapChat.d.ts +0 -3
  47. package/dist/components/molecules/chat/StructuredContent/components/ReactiveMap/types.d.ts +0 -36
  48. package/dist/components/molecules/chat/StructuredContent/components/ServiceShortcuts/ServiceShortcutsChat.d.ts +0 -3
  49. package/dist/components/molecules/chat/StructuredContent/helpers/contentParser(1).d.ts +0 -7
  50. package/dist/components/molecules/chat/StructuredContent/index(1).d.ts +0 -2
  51. package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(1).d.ts +0 -10
  52. package/dist/components/molecules/lumi/Breadcrumb/Breadcrumb(2).d.ts +0 -10
  53. package/dist/components/molecules/lumi/Breadcrumb/types(1).d.ts +0 -105
  54. package/dist/components/molecules/lumi/Checkbox/Checkbox(1).d.ts +0 -11
  55. package/dist/components/molecules/lumi/Checkbox/index(1).d.ts +0 -4
  56. package/dist/components/molecules/lumi/Checkbox/use-cases/index(1).d.ts +0 -1
  57. package/dist/components/molecules/lumi/Checkbox/validation-helpers(1).d.ts +0 -151
  58. package/dist/components/molecules/lumi/DateInput/FormDateInput(1).d.ts +0 -12
  59. package/dist/components/molecules/lumi/DateInput/index(1).d.ts +0 -2
  60. package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputClearWithResetUseCase(1).d.ts +0 -21
  61. package/dist/components/molecules/lumi/DateInput/use-cases/FormDateInputErrorVisibilityUseCase(1).d.ts +0 -21
  62. package/dist/components/molecules/lumi/Drawer/Drawer(1).d.ts +0 -39
  63. package/dist/components/molecules/lumi/Drawer/index(1).d.ts +0 -2
  64. package/dist/components/molecules/lumi/DropdownMenu/DropdownMenu(1).d.ts +0 -22
  65. package/dist/components/molecules/lumi/DropdownMenu/index(1).d.ts +0 -2
  66. package/dist/components/molecules/lumi/DropdownMenu/types(1).d.ts +0 -29
  67. package/dist/components/molecules/lumi/Filter/FilterRow(1).d.ts +0 -13
  68. package/dist/components/molecules/lumi/Filter/helpers/conditionHelpers(1).d.ts +0 -14
  69. package/dist/components/molecules/lumi/Filter/index(1).d.ts +0 -5
  70. package/dist/components/molecules/lumi/Filter/types(1).d.ts +0 -115
  71. package/dist/components/molecules/lumi/Input/Input(1).d.ts +0 -12
  72. package/dist/components/molecules/lumi/Menu/Menu(1).d.ts +0 -18
  73. package/dist/components/molecules/lumi/Menu/MenuContext(1).d.ts +0 -41
  74. package/dist/components/molecules/lumi/Menu/MenuItem(1).d.ts +0 -6
  75. package/dist/components/molecules/lumi/Menu/MenuItem(2).d.ts +0 -6
  76. package/dist/components/molecules/lumi/Menu/MenuItemGroup(1).d.ts +0 -6
  77. package/dist/components/molecules/lumi/Menu/SubMenu(1).d.ts +0 -6
  78. package/dist/components/molecules/lumi/Menu/iconHelper(1).d.ts +0 -15
  79. package/dist/components/molecules/lumi/Menu/index(1).d.ts +0 -8
  80. package/dist/components/molecules/lumi/Menu/index(2).d.ts +0 -8
  81. package/dist/components/molecules/lumi/Menu/types(1).d.ts +0 -119
  82. package/dist/components/molecules/lumi/Pagination/Pagination(1).d.ts +0 -4
  83. package/dist/components/molecules/lumi/Pagination/index(1).d.ts +0 -2
  84. package/dist/components/molecules/lumi/Select/Select(1).d.ts +0 -14
  85. package/dist/components/molecules/lumi/Select/Select(2).d.ts +0 -14
  86. package/dist/components/molecules/lumi/Select/Select(3).d.ts +0 -14
  87. package/dist/components/molecules/lumi/Select/index(1).d.ts +0 -2
  88. package/dist/components/molecules/lumi/Select/index(2).d.ts +0 -2
  89. package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(1).d.ts +0 -21
  90. package/dist/components/molecules/lumi/Select/use-cases/FormSelectClearWithResetUseCase(2).d.ts +0 -21
  91. package/dist/components/molecules/lumi/Select/use-cases/index(1).d.ts +0 -2
  92. package/dist/components/molecules/lumi/Select/use-cases/index(2).d.ts +0 -2
  93. package/dist/components/molecules/lumi/SessionExpiryPrompt/SessionExpiryPrompt.d.ts +0 -25
  94. package/dist/components/molecules/lumi/SessionExpiryPrompt/index.d.ts +0 -1
  95. package/dist/components/molecules/lumi/Table/Table(1).d.ts +0 -6
  96. package/dist/components/molecules/lumi/Table/Table(2).d.ts +0 -6
  97. package/dist/components/molecules/lumi/Table/index(1).d.ts +0 -2
  98. package/dist/components/molecules/lumi/Table/types(1).d.ts +0 -177
  99. package/dist/components/molecules/lumi/Table/types(2).d.ts +0 -177
  100. package/dist/components/molecules/lumi/Tabs/Tabs(1).d.ts +0 -4
  101. package/dist/components/molecules/lumi/Tabs/Tabs(2).d.ts +0 -4
  102. package/dist/components/molecules/lumi/Tabs/index(1).d.ts +0 -2
  103. package/dist/components/molecules/lumi/Tabs/index(2).d.ts +0 -2
  104. package/dist/components/molecules/lumi/TimeInput/FormTimeInput(1).d.ts +0 -12
  105. package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputClearWithResetUseCase(1).d.ts +0 -21
  106. package/dist/components/molecules/lumi/TimeInput/use-cases/FormTimeInputErrorVisibilityUseCase(1).d.ts +0 -21
  107. package/dist/components/molecules/lumi/TimeInput/use-cases/index(1).d.ts +0 -4
  108. package/dist/components/organisms/chat/Chat/Chat(1).d.ts +0 -12
  109. package/dist/components/organisms/chat/Chat/hooks/useChatHandlers(1).d.ts +0 -15
  110. package/dist/components/organisms/chat/Chat/hooks/useKeyboardLock(1).d.ts +0 -15
  111. package/dist/components/organisms/chat/Chat/index(1).d.ts +0 -3
  112. package/dist/components/organisms/chat/Chat/store/index(1).d.ts +0 -4
  113. package/dist/components/organisms/chat/Chat/use-cases/GroupMessagesByDateUseCase(1).d.ts +0 -20
  114. package/dist/components/organisms/chat/index(1).d.ts +0 -3
  115. package/dist/components/organisms/chat/index(2).d.ts +0 -3
  116. package/dist/components/organisms/lumi/ActionBar/ActionBar(1).d.ts +0 -18
  117. package/dist/components/organisms/lumi/ActionBar/types(1).d.ts +0 -57
  118. package/dist/components/organisms/lumi/BaseNavbar/types(1).d.ts +0 -34
  119. package/dist/components/organisms/lumi/BaseWorkspace/BaseWorkspace(1).d.ts +0 -28
  120. package/dist/components/organisms/lumi/BaseWorkspace/index(1).d.ts +0 -2
  121. package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(1).d.ts +0 -18
  122. package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(2).d.ts +0 -18
  123. package/dist/components/organisms/lumi/Calendar/components/CalendarEvent(3).d.ts +0 -18
  124. package/dist/components/organisms/lumi/Calendar/components/CalendarHeader(1).d.ts +0 -14
  125. package/dist/components/organisms/lumi/Calendar/components/TimeGutter(1).d.ts +0 -10
  126. package/dist/components/organisms/lumi/Calendar/components/TimeGutter(2).d.ts +0 -10
  127. package/dist/components/organisms/lumi/Calendar/hooks/index(1).d.ts +0 -4
  128. package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(1).d.ts +0 -58
  129. package/dist/components/organisms/lumi/Calendar/hooks/useCalendarHeight(2).d.ts +0 -58
  130. package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(1).d.ts +0 -21
  131. package/dist/components/organisms/lumi/Calendar/hooks/useEventLayout(2).d.ts +0 -21
  132. package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(1).d.ts +0 -14
  133. package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(2).d.ts +0 -14
  134. package/dist/components/organisms/lumi/Calendar/hooks/useTimeSlots(3).d.ts +0 -14
  135. package/dist/components/organisms/lumi/Calendar/i18n/index(1).d.ts +0 -1
  136. package/dist/components/organisms/lumi/Calendar/i18n/index(2).d.ts +0 -1
  137. package/dist/components/organisms/lumi/Calendar/i18n/translations(1).d.ts +0 -34
  138. package/dist/components/organisms/lumi/Calendar/index(1).d.ts +0 -2
  139. package/dist/components/organisms/lumi/Calendar/utils/dateUtils(1).d.ts +0 -140
  140. package/dist/components/organisms/lumi/Calendar/utils/dateUtils(2).d.ts +0 -140
  141. package/dist/components/organisms/lumi/Calendar/utils/index(1).d.ts +0 -2
  142. package/dist/components/organisms/lumi/Calendar/utils/multiDayUtils(1).d.ts +0 -73
  143. package/dist/components/organisms/lumi/Calendar/views/DayView(1).d.ts +0 -17
  144. package/dist/components/organisms/lumi/Calendar/views/DayView(2).d.ts +0 -17
  145. package/dist/components/organisms/lumi/Calendar/views/MonthView(1).d.ts +0 -17
  146. package/dist/components/organisms/lumi/Calendar/views/MonthView(2).d.ts +0 -17
  147. package/dist/components/organisms/lumi/Calendar/views/WeekView(1).d.ts +0 -19
  148. package/dist/components/organisms/lumi/Calendar/views/WeekView(2).d.ts +0 -19
  149. package/dist/components/organisms/lumi/Calendar/views/YearView(1).d.ts +0 -13
  150. package/dist/components/organisms/lumi/Calendar/views/index(1).d.ts +0 -4
  151. package/dist/components/organisms/lumi/Calendar/views/index(2).d.ts +0 -4
  152. package/dist/components/organisms/lumi/DashboardNavbar/index(1).d.ts +0 -7
  153. package/dist/components/organisms/lumi/DashboardNavbar/types(1).d.ts +0 -52
  154. package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(1).d.ts +0 -23
  155. package/dist/components/organisms/lumi/DashboardWorkspace/DashboardWorkspace(2).d.ts +0 -23
  156. package/dist/components/organisms/lumi/DashboardWorkspace/index(1).d.ts +0 -7
  157. package/dist/components/organisms/lumi/DashboardWorkspace/index(2).d.ts +0 -7
  158. package/dist/components/organisms/lumi/DashboardWorkspace/types(1).d.ts +0 -60
  159. package/dist/components/organisms/lumi/DashboardWorkspace/types(2).d.ts +0 -60
  160. package/dist/components/organisms/lumi/DynamicForm/DynamicForm(1).d.ts +0 -21
  161. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(1).d.ts +0 -17
  162. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldMapper(2).d.ts +0 -17
  163. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(1).d.ts +0 -6
  164. package/dist/components/organisms/lumi/DynamicForm/helpers/fieldRenderer(2).d.ts +0 -6
  165. package/dist/components/organisms/lumi/DynamicForm/index(1).d.ts +0 -2
  166. package/dist/components/organisms/lumi/DynamicForm/index(2).d.ts +0 -2
  167. package/dist/components/organisms/lumi/DynamicForm/types(1).d.ts +0 -96
  168. package/dist/components/organisms/lumi/DynamicForm/types(2).d.ts +0 -96
  169. package/dist/components/organisms/lumi/FormDrawer/FormDrawer(1).d.ts +0 -5
  170. package/dist/components/organisms/lumi/FormDrawer/index(1).d.ts +0 -3
  171. package/dist/components/organisms/lumi/FormDrawer/types(1).d.ts +0 -61
  172. package/dist/components/organisms/lumi/FormDrawer/types(2).d.ts +0 -61
  173. package/dist/components/organisms/lumi/Stepper/StepIndicator(1).d.ts +0 -4
  174. package/dist/components/organisms/lumi/Stepper/Stepper(1).d.ts +0 -5
  175. package/dist/components/organisms/lumi/Stepper/index(1).d.ts +0 -3
  176. package/dist/components/organisms/lumi/Stepper/types(1).d.ts +0 -96
  177. package/dist/components/organisms/lumi/Stepper/types(2).d.ts +0 -96
  178. package/dist/components/organisms/lumi/index(1).d.ts +0 -10
  179. package/dist/components/organisms/lumi/index(2).d.ts +0 -10
  180. package/dist/components/templates/chat/ChatWidget/ChatWidget(1).d.ts +0 -10
  181. package/dist/components/templates/chat/ChatWidget/hooks/index(1).d.ts +0 -1
  182. package/dist/components/templates/chat/ChatWidget/index(1).d.ts +0 -2
  183. package/dist/components/templates/chat/ChatWidget/index(2).d.ts +0 -2
  184. package/dist/components/templates/chat/ChatWidget/types(1).d.ts +0 -90
  185. package/dist/components/templates/lumi/Base/hooks/index(1).d.ts +0 -2
  186. package/dist/components/templates/lumi/Base/hooks/useAppHeight(1).d.ts +0 -21
  187. package/dist/components/templates/lumi/Base/index(1).d.ts +0 -2
  188. package/dist/components/templates/lumi/Base/types(1).d.ts +0 -54
  189. package/dist/components/templates/lumi/Crud/Crud(1).d.ts +0 -6
  190. package/dist/components/templates/lumi/Crud/Crud(2).d.ts +0 -6
  191. package/dist/components/templates/lumi/Crud/ScrollToEnd.d.ts +0 -18
  192. package/dist/components/templates/lumi/Crud/helpers/fieldMapper(1).d.ts +0 -13
  193. package/dist/components/templates/lumi/Crud/hooks/useCrudActions(1).d.ts +0 -11
  194. package/dist/components/templates/lumi/Crud/index(1).d.ts +0 -2
  195. package/dist/components/templates/lumi/Crud/store/actions(1).d.ts +0 -45
  196. package/dist/components/templates/lumi/Crud/store/crudStore(1).d.ts +0 -8
  197. package/dist/components/templates/lumi/Crud/store/index(1).d.ts +0 -5
  198. package/dist/components/templates/lumi/Crud/store/types(1).d.ts +0 -71
  199. package/dist/components/templates/lumi/Dashboard/Dashboard(1).d.ts +0 -25
  200. package/dist/components/templates/lumi/Dashboard/hooks/index(1).d.ts +0 -12
  201. package/dist/components/templates/lumi/Dashboard/hooks/index(2).d.ts +0 -12
  202. package/dist/components/templates/lumi/Dashboard/hooks/useDashboardStore(1).d.ts +0 -34
  203. package/dist/components/templates/lumi/Dashboard/hooks/useScrollToTop(1).d.ts +0 -47
  204. package/dist/components/templates/lumi/Dashboard/index(1).d.ts +0 -10
  205. package/dist/components/templates/lumi/Dashboard/store/storeKeys(1).d.ts +0 -13
  206. package/dist/components/templates/lumi/Dashboard/store/types(1).d.ts +0 -73
  207. package/dist/components/templates/lumi/Dashboard/store/types(2).d.ts +0 -73
  208. package/dist/components/templates/lumi/Dashboard/types(1).d.ts +0 -114
  209. package/dist/components/templates/lumi/Dashboard/types(2).d.ts +0 -114
  210. package/dist/components/templates/lumi/index(1).d.ts +0 -3
  211. package/dist/core/chat/ChatConfigContext(1).d.ts +0 -36
  212. package/dist/index(1).esm.js +0 -19378
  213. package/dist/index(1).js +0 -19487
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { CalendarEvent as CalendarEventType } from '../types';
3
- interface YearViewProps {
4
- date: Date;
5
- events: CalendarEventType[];
6
- firstDayOfWeek: 0 | 1;
7
- nonWorkingDays: number[];
8
- locale?: string;
9
- onDateChange?: (date: Date) => void;
10
- onViewChange?: (view: 'month') => void;
11
- }
12
- export declare const YearView: React.FC<YearViewProps>;
13
- export {};
@@ -1,4 +0,0 @@
1
- export * from './DayView';
2
- export * from './WeekView';
3
- export * from './MonthView';
4
- export * from './YearView';
@@ -1,4 +0,0 @@
1
- export * from './DayView';
2
- export * from './WeekView';
3
- export * from './MonthView';
4
- export * from './YearView';
@@ -1,7 +0,0 @@
1
- /**
2
- * DashboardNavbar - Organismo de navegación superior del Dashboard
3
- *
4
- * @module DashboardNavbar
5
- */
6
- export { DashboardNavbar } from './DashboardNavbar';
7
- export type { DashboardNavbarProps } from './types';
@@ -1,52 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { BreadcrumbItem } from '../../../molecules/lumi/Breadcrumb/types';
3
- /**
4
- * Props del organismo DashboardNavbar
5
- */
6
- export interface DashboardNavbarProps {
7
- /**
8
- * Items del breadcrumb para mostrar la navegación
9
- */
10
- breadcrumbItems?: BreadcrumbItem[];
11
- /**
12
- * Si muestra el icono de home en el breadcrumb
13
- * @default true
14
- */
15
- showHomeIcon?: boolean;
16
- /**
17
- * Si muestra el botón de menú hamburguesa
18
- * @default true
19
- */
20
- showMenuButton?: boolean;
21
- /**
22
- * Callback cuando se hace clic en el botón de menú
23
- */
24
- onMenuClick?: () => void;
25
- /**
26
- * Callback cuando se hace clic en un item del breadcrumb
27
- */
28
- onBreadcrumbClick?: (item: BreadcrumbItem, index: number) => void;
29
- /**
30
- * Contenido extra a mostrar en el lado derecho del navbar
31
- * (ej: botones de acción, perfil de usuario, notificaciones)
32
- */
33
- navbarExtra?: ReactNode;
34
- /**
35
- * Altura del navbar en píxeles
36
- * @default 64
37
- */
38
- height?: number;
39
- /**
40
- * Si el navbar tiene sombra (generalmente cuando hay scroll)
41
- * @default false
42
- */
43
- showShadow?: boolean;
44
- /**
45
- * Clase CSS adicional
46
- */
47
- className?: string;
48
- /**
49
- * Test ID para testing
50
- */
51
- 'data-testid'?: string;
52
- }
@@ -1,23 +0,0 @@
1
- import { type FC } from "react";
2
- import type { DashboardWorkspaceProps } from "./types";
3
- import "./DashboardWorkspace.scss";
4
- /**
5
- * DashboardWorkspace - Organismo de Lumi
6
- *
7
- * Área de trabajo principal del Dashboard que incluye:
8
- * - Scroll inteligente con altura dinámica
9
- * - Botón flotante "volver arriba"
10
- * - Integración con useScrollToTop hook
11
- * - Responsive total
12
- *
13
- * @example
14
- * ```tsx
15
- * <DashboardWorkspace
16
- * navbarHeight={64}
17
- * enableScrollToTop={true}
18
- * >
19
- * <YourContent />
20
- * </DashboardWorkspace>
21
- * ```
22
- */
23
- export declare const DashboardWorkspace: FC<DashboardWorkspaceProps>;
@@ -1,23 +0,0 @@
1
- import { type FC } from "react";
2
- import type { DashboardWorkspaceProps } from "./types";
3
- import "./DashboardWorkspace.scss";
4
- /**
5
- * DashboardWorkspace - Organismo de Lumi
6
- *
7
- * Área de trabajo principal del Dashboard que incluye:
8
- * - Scroll inteligente con altura dinámica
9
- * - Botón flotante "volver arriba"
10
- * - Integración con useScrollToTop hook
11
- * - Responsive total
12
- *
13
- * @example
14
- * ```tsx
15
- * <DashboardWorkspace
16
- * navbarHeight={64}
17
- * enableScrollToTop={true}
18
- * >
19
- * <YourContent />
20
- * </DashboardWorkspace>
21
- * ```
22
- */
23
- export declare const DashboardWorkspace: FC<DashboardWorkspaceProps>;
@@ -1,7 +0,0 @@
1
- /**
2
- * DashboardWorkspace - Organismo de área de trabajo del Dashboard
3
- *
4
- * @module DashboardWorkspace
5
- */
6
- export { DashboardWorkspace } from './DashboardWorkspace';
7
- export type { DashboardWorkspaceProps } from './types';
@@ -1,7 +0,0 @@
1
- /**
2
- * DashboardWorkspace - Organismo de área de trabajo del Dashboard
3
- *
4
- * @module DashboardWorkspace
5
- */
6
- export { DashboardWorkspace } from './DashboardWorkspace';
7
- export type { DashboardWorkspaceProps } from './types';
@@ -1,60 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- /**
3
- * Props del organismo DashboardWorkspace
4
- */
5
- export interface DashboardWorkspaceProps {
6
- /**
7
- * Contenido del workspace
8
- */
9
- children: ReactNode;
10
- /**
11
- * Si habilita el botón "volver arriba"
12
- * @default true
13
- */
14
- enableScrollToTop?: boolean;
15
- /**
16
- * Altura del navbar en píxeles (para calcular altura disponible)
17
- * @default 64
18
- */
19
- navbarHeight?: number;
20
- /**
21
- * Threshold de scroll para mostrar el botón (en píxeles)
22
- * @default 200
23
- */
24
- scrollThreshold?: number;
25
- /**
26
- * Comportamiento del scroll al ir arriba
27
- * @default 'smooth'
28
- */
29
- scrollBehavior?: ScrollBehavior;
30
- /**
31
- * Callback cuando cambia la posición del scroll
32
- */
33
- onScroll?: (scrollTop: number) => void;
34
- /**
35
- * Callback cuando se hace clic en el botón "volver arriba"
36
- */
37
- onScrollToTop?: () => void;
38
- /**
39
- * Color de fondo del workspace
40
- * @default '#fafafa'
41
- */
42
- backgroundColor?: string;
43
- /**
44
- * Padding del contenido
45
- * @default { mobile: '16px', tablet: '20px', desktop: '24px' }
46
- */
47
- padding?: string | {
48
- mobile?: string;
49
- tablet?: string;
50
- desktop?: string;
51
- };
52
- /**
53
- * Clase CSS adicional
54
- */
55
- className?: string;
56
- /**
57
- * Test ID para testing
58
- */
59
- 'data-testid'?: string;
60
- }
@@ -1,60 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- /**
3
- * Props del organismo DashboardWorkspace
4
- */
5
- export interface DashboardWorkspaceProps {
6
- /**
7
- * Contenido del workspace
8
- */
9
- children: ReactNode;
10
- /**
11
- * Si habilita el botón "volver arriba"
12
- * @default true
13
- */
14
- enableScrollToTop?: boolean;
15
- /**
16
- * Altura del navbar en píxeles (para calcular altura disponible)
17
- * @default 64
18
- */
19
- navbarHeight?: number;
20
- /**
21
- * Threshold de scroll para mostrar el botón (en píxeles)
22
- * @default 200
23
- */
24
- scrollThreshold?: number;
25
- /**
26
- * Comportamiento del scroll al ir arriba
27
- * @default 'smooth'
28
- */
29
- scrollBehavior?: ScrollBehavior;
30
- /**
31
- * Callback cuando cambia la posición del scroll
32
- */
33
- onScroll?: (scrollTop: number) => void;
34
- /**
35
- * Callback cuando se hace clic en el botón "volver arriba"
36
- */
37
- onScrollToTop?: () => void;
38
- /**
39
- * Color de fondo del workspace
40
- * @default '#fafafa'
41
- */
42
- backgroundColor?: string;
43
- /**
44
- * Padding del contenido
45
- * @default { mobile: '16px', tablet: '20px', desktop: '24px' }
46
- */
47
- padding?: string | {
48
- mobile?: string;
49
- tablet?: string;
50
- desktop?: string;
51
- };
52
- /**
53
- * Clase CSS adicional
54
- */
55
- className?: string;
56
- /**
57
- * Test ID para testing
58
- */
59
- 'data-testid'?: string;
60
- }
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- import type { DynamicFormProps } from "./types";
3
- import "./DynamicForm.scss";
4
- /**
5
- * DynamicForm - Organismo de Lumi
6
- *
7
- * Formulario dinámico que renderiza campos basados en una configuración.
8
- * Integrado con React Hook Form para manejo de estado y Yup para validación.
9
- *
10
- * @example
11
- * ```tsx
12
- * <DynamicForm
13
- * fields={serviceFields}
14
- * validationSchema={serviceSchema}
15
- * onSubmit={handleSubmit}
16
- * onChange={(data) => console.log('Cambio en tiempo real:', data)}
17
- * columns={2}
18
- * />
19
- * ```
20
- */
21
- export declare const DynamicForm: React.FC<DynamicFormProps>;
@@ -1,17 +0,0 @@
1
- import type { FormFieldConfig } from '../types';
2
- /**
3
- * Transforma los valores de entrada según transformOnReceive
4
- */
5
- export declare const transformIncomingValues: (values: Record<string, unknown>, fields: FormFieldConfig[]) => Record<string, unknown>;
6
- /**
7
- * Transforma los valores de salida según transformOnSubmit
8
- */
9
- export declare const transformOutgoingValues: (values: Record<string, unknown>, fields: FormFieldConfig[]) => Record<string, unknown>;
10
- /**
11
- * Filtra y ordena los campos según showIf y order
12
- */
13
- export declare const filterAndSortFields: (fields: FormFieldConfig[], formValues: Record<string, unknown>) => FormFieldConfig[];
14
- /**
15
- * Obtiene los valores por defecto de los campos
16
- */
17
- export declare const getDefaultValuesFromFields: (fields: FormFieldConfig[]) => Record<string, unknown>;
@@ -1,17 +0,0 @@
1
- import type { FormFieldConfig } from '../types';
2
- /**
3
- * Transforma los valores de entrada según transformOnReceive
4
- */
5
- export declare const transformIncomingValues: (values: Record<string, unknown>, fields: FormFieldConfig[]) => Record<string, unknown>;
6
- /**
7
- * Transforma los valores de salida según transformOnSubmit
8
- */
9
- export declare const transformOutgoingValues: (values: Record<string, unknown>, fields: FormFieldConfig[]) => Record<string, unknown>;
10
- /**
11
- * Filtra y ordena los campos según showIf y order
12
- */
13
- export declare const filterAndSortFields: (fields: FormFieldConfig[], formValues: Record<string, unknown>) => FormFieldConfig[];
14
- /**
15
- * Obtiene los valores por defecto de los campos
16
- */
17
- export declare const getDefaultValuesFromFields: (fields: FormFieldConfig[]) => Record<string, unknown>;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { FieldRendererProps } from '../types';
3
- /**
4
- * Renderiza la molécula correspondiente según el tipo de campo
5
- */
6
- export declare const renderField: ({ field, control, mode, disabled, }: FieldRendererProps) => React.ReactElement;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { FieldRendererProps } from '../types';
3
- /**
4
- * Renderiza la molécula correspondiente según el tipo de campo
5
- */
6
- export declare const renderField: ({ field, control, mode, disabled, }: FieldRendererProps) => React.ReactElement;
@@ -1,2 +0,0 @@
1
- export { DynamicForm } from './DynamicForm';
2
- export type { DynamicFormProps, FormFieldConfig, MoleculeType, SelectOption, } from './types';
@@ -1,2 +0,0 @@
1
- export { DynamicForm } from './DynamicForm';
2
- export type { DynamicFormProps, FormFieldConfig, MoleculeType, SelectOption, } from './types';
@@ -1,96 +0,0 @@
1
- import type { UseFormReturn, Control, FieldValues } from 'react-hook-form';
2
- /**
3
- * Tipos de moléculas soportadas por DynamicForm
4
- */
5
- export type MoleculeType = 'INPUT' | 'INPUT_NUMBER' | 'INPUT_EMAIL' | 'INPUT_PASSWORD' | 'INPUT_PHONE' | 'INPUT_CURRENCY' | 'TEXTAREA' | 'SELECT' | 'SELECT_MULTI' | 'DATE_INPUT' | 'TIME_INPUT' | 'DATETIME_INPUT' | 'CHECKBOX' | 'SWITCH' | 'RADIO_GROUP' | 'CUSTOM';
6
- /**
7
- * Opción para Select, Select Multi, Radio Group
8
- */
9
- export interface SelectOption {
10
- value: string | number;
11
- label: string;
12
- disabled?: boolean;
13
- }
14
- /**
15
- * Configuración de un campo del formulario
16
- */
17
- export interface FormFieldConfig {
18
- /** Key del campo (debe coincidir con la key en defaultValues) */
19
- name: string;
20
- /** Label del campo */
21
- label: string;
22
- /** Tipo de molécula a renderizar (OBLIGATORIO) */
23
- moleculeType: MoleculeType;
24
- /** Si el campo es requerido */
25
- required?: boolean;
26
- /** Si el campo es de solo lectura */
27
- readOnly?: boolean;
28
- /** Placeholder del campo */
29
- placeholder?: string;
30
- /** Descripción o help text del campo */
31
- description?: string;
32
- /** Valor por defecto */
33
- defaultValue?: unknown;
34
- /** Ancho del campo en el grid (1-12) */
35
- gridSpan?: number;
36
- /** Props específicas de la molécula */
37
- uiProps?: Record<string, unknown>;
38
- /** Función de transformación al enviar */
39
- transformOnSubmit?: (value: unknown) => unknown;
40
- /** Función de transformación al recibir */
41
- transformOnReceive?: (value: unknown) => unknown;
42
- /** Condición para mostrar el campo (dependencia de otros campos) */
43
- showIf?: (formValues: Record<string, unknown>) => boolean;
44
- /** Opciones para SELECT, SELECT_MULTI */
45
- options?: SelectOption[];
46
- /** Orden de renderizado */
47
- order?: number;
48
- }
49
- /**
50
- * Props del componente DynamicForm
51
- */
52
- export interface DynamicFormProps {
53
- /** Configuración de campos del formulario */
54
- fields: FormFieldConfig[];
55
- /** Valores iniciales del formulario */
56
- defaultValues?: Record<string, unknown>;
57
- /** Callback al enviar el formulario (después de validación) */
58
- onSubmit: (data: Record<string, unknown>) => void | Promise<void>;
59
- /** Callback al cancelar */
60
- onCancel?: () => void;
61
- /** Callback que se ejecuta cuando cambia cualquier valor del formulario (en tiempo real) */
62
- onChange?: (data: Record<string, unknown>) => void;
63
- /** Esquema de validación Yup (OBLIGATORIO) */
64
- validationSchema: unknown;
65
- /** Modo del formulario */
66
- mode?: 'create' | 'edit' | 'view';
67
- /** Mostrar botones de submit y cancel */
68
- showActions?: boolean;
69
- /** Texto del botón submit */
70
- submitText?: string;
71
- /** Texto del botón cancel */
72
- cancelText?: string;
73
- /** Estado de loading al enviar */
74
- loading?: boolean;
75
- /** Deshabilitar todo el formulario */
76
- disabled?: boolean;
77
- /** Layout de columnas (1, 2, 3, etc.) */
78
- columns?: 1 | 2 | 3 | 4;
79
- /** Espaciado entre campos */
80
- spacing?: 'small' | 'medium' | 'large';
81
- /** Instancia de react-hook-form (opcional, para control externo) */
82
- formInstance?: UseFormReturn;
83
- /** Clase CSS adicional */
84
- className?: string;
85
- /** Test ID */
86
- 'data-testid'?: string;
87
- }
88
- /**
89
- * Props internas para el FieldRenderer
90
- */
91
- export interface FieldRendererProps {
92
- field: FormFieldConfig;
93
- control: Control<FieldValues>;
94
- mode: 'create' | 'edit' | 'view';
95
- disabled: boolean;
96
- }
@@ -1,96 +0,0 @@
1
- import type { UseFormReturn, Control, FieldValues } from 'react-hook-form';
2
- /**
3
- * Tipos de moléculas soportadas por DynamicForm
4
- */
5
- export type MoleculeType = 'INPUT' | 'INPUT_NUMBER' | 'INPUT_EMAIL' | 'INPUT_PASSWORD' | 'INPUT_PHONE' | 'INPUT_CURRENCY' | 'TEXTAREA' | 'SELECT' | 'SELECT_MULTI' | 'DATE_INPUT' | 'TIME_INPUT' | 'DATETIME_INPUT' | 'CHECKBOX' | 'SWITCH' | 'RADIO_GROUP' | 'CUSTOM';
6
- /**
7
- * Opción para Select, Select Multi, Radio Group
8
- */
9
- export interface SelectOption {
10
- value: string | number;
11
- label: string;
12
- disabled?: boolean;
13
- }
14
- /**
15
- * Configuración de un campo del formulario
16
- */
17
- export interface FormFieldConfig {
18
- /** Key del campo (debe coincidir con la key en defaultValues) */
19
- name: string;
20
- /** Label del campo */
21
- label: string;
22
- /** Tipo de molécula a renderizar (OBLIGATORIO) */
23
- moleculeType: MoleculeType;
24
- /** Si el campo es requerido */
25
- required?: boolean;
26
- /** Si el campo es de solo lectura */
27
- readOnly?: boolean;
28
- /** Placeholder del campo */
29
- placeholder?: string;
30
- /** Descripción o help text del campo */
31
- description?: string;
32
- /** Valor por defecto */
33
- defaultValue?: unknown;
34
- /** Ancho del campo en el grid (1-12) */
35
- gridSpan?: number;
36
- /** Props específicas de la molécula */
37
- uiProps?: Record<string, unknown>;
38
- /** Función de transformación al enviar */
39
- transformOnSubmit?: (value: unknown) => unknown;
40
- /** Función de transformación al recibir */
41
- transformOnReceive?: (value: unknown) => unknown;
42
- /** Condición para mostrar el campo (dependencia de otros campos) */
43
- showIf?: (formValues: Record<string, unknown>) => boolean;
44
- /** Opciones para SELECT, SELECT_MULTI */
45
- options?: SelectOption[];
46
- /** Orden de renderizado */
47
- order?: number;
48
- }
49
- /**
50
- * Props del componente DynamicForm
51
- */
52
- export interface DynamicFormProps {
53
- /** Configuración de campos del formulario */
54
- fields: FormFieldConfig[];
55
- /** Valores iniciales del formulario */
56
- defaultValues?: Record<string, unknown>;
57
- /** Callback al enviar el formulario (después de validación) */
58
- onSubmit: (data: Record<string, unknown>) => void | Promise<void>;
59
- /** Callback al cancelar */
60
- onCancel?: () => void;
61
- /** Callback que se ejecuta cuando cambia cualquier valor del formulario (en tiempo real) */
62
- onChange?: (data: Record<string, unknown>) => void;
63
- /** Esquema de validación Yup (OBLIGATORIO) */
64
- validationSchema: unknown;
65
- /** Modo del formulario */
66
- mode?: 'create' | 'edit' | 'view';
67
- /** Mostrar botones de submit y cancel */
68
- showActions?: boolean;
69
- /** Texto del botón submit */
70
- submitText?: string;
71
- /** Texto del botón cancel */
72
- cancelText?: string;
73
- /** Estado de loading al enviar */
74
- loading?: boolean;
75
- /** Deshabilitar todo el formulario */
76
- disabled?: boolean;
77
- /** Layout de columnas (1, 2, 3, etc.) */
78
- columns?: 1 | 2 | 3 | 4;
79
- /** Espaciado entre campos */
80
- spacing?: 'small' | 'medium' | 'large';
81
- /** Instancia de react-hook-form (opcional, para control externo) */
82
- formInstance?: UseFormReturn;
83
- /** Clase CSS adicional */
84
- className?: string;
85
- /** Test ID */
86
- 'data-testid'?: string;
87
- }
88
- /**
89
- * Props internas para el FieldRenderer
90
- */
91
- export interface FieldRendererProps {
92
- field: FormFieldConfig;
93
- control: Control<FieldValues>;
94
- mode: 'create' | 'edit' | 'view';
95
- disabled: boolean;
96
- }
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import type { FormDrawerProps } from "./types";
3
- import "./FormDrawer.scss";
4
- export declare const FormDrawer: React.FC<FormDrawerProps>;
5
- export default FormDrawer;
@@ -1,3 +0,0 @@
1
- export { FormDrawer, default } from "./FormDrawer";
2
- export type { FormDrawerProps, FormDrawerMode } from "./types";
3
- export { DEFAULT_TITLES } from "./types";
@@ -1,61 +0,0 @@
1
- import type { ReactNode } from "react";
2
- import type { FormFieldConfig } from "../DynamicForm/types";
3
- /**
4
- * Modo del FormDrawer
5
- */
6
- export type FormDrawerMode = "create" | "edit" | "view";
7
- /**
8
- * Props del componente FormDrawer
9
- */
10
- export interface FormDrawerProps {
11
- /** Si el drawer está abierto */
12
- isOpen: boolean;
13
- /** Callback al cerrar el drawer */
14
- onClose: () => void;
15
- /** Modo del formulario */
16
- mode: FormDrawerMode;
17
- /** Configuración de campos del formulario */
18
- fields: FormFieldConfig[];
19
- /** Valores iniciales del formulario */
20
- defaultValues?: Record<string, unknown>;
21
- /** Callback al enviar el formulario */
22
- onSubmit: (data: Record<string, unknown>) => void | Promise<void>;
23
- /** Callback que se ejecuta cuando cambia cualquier valor del formulario (en tiempo real) */
24
- onChange?: (data: Record<string, unknown>) => void;
25
- /** Esquema de validación Yup */
26
- validationSchema: unknown;
27
- /** Título del drawer */
28
- title?: string;
29
- /** Subtítulo o descripción */
30
- subtitle?: string;
31
- /** Estado de loading al enviar */
32
- loading?: boolean;
33
- /** Ancho del drawer */
34
- width?: number | string;
35
- /** Texto del botón submit */
36
- submitText?: string;
37
- /** Texto del botón cancel */
38
- cancelText?: string;
39
- /** Layout de columnas del formulario */
40
- columns?: 1 | 2 | 3 | 4;
41
- /** Espaciado entre campos */
42
- spacing?: "small" | "medium" | "large";
43
- /** Tamaño de los campos del formulario */
44
- fieldSize?: "small" | "medium" | "large";
45
- /** Contenido adicional en el footer (además de los botones) */
46
- footerExtra?: ReactNode;
47
- /** Cerrar drawer al hacer clic en overlay (default: true) */
48
- closeOnOverlayClick?: boolean;
49
- /** Cerrar drawer al presionar Escape (default: true) */
50
- closeOnEscape?: boolean;
51
- /** Callback cuando se intenta cerrar (puede prevenir el cierre) */
52
- onBeforeClose?: () => boolean | Promise<boolean>;
53
- /** Clase CSS adicional */
54
- className?: string;
55
- /** Test ID */
56
- "data-testid"?: string;
57
- }
58
- /**
59
- * Títulos por defecto según el modo
60
- */
61
- export declare const DEFAULT_TITLES: Record<FormDrawerMode, string>;