siesa-ui-kit 1.0.6 → 1.0.7

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 (296) hide show
  1. package/README.md +115 -89
  2. package/dist/ButtonTest.d.ts +6 -0
  3. package/dist/ButtonTest.d.ts.map +1 -0
  4. package/dist/components/Alert/Alert.d.ts +23 -0
  5. package/dist/components/Alert/Alert.d.ts.map +1 -0
  6. package/dist/components/Alert/Alert.types.d.ts +46 -0
  7. package/dist/components/Alert/Alert.types.d.ts.map +1 -0
  8. package/dist/components/Avatar/Avatar.d.ts +41 -0
  9. package/dist/components/Avatar/Avatar.d.ts.map +1 -0
  10. package/dist/components/Avatar/Avatar.types.d.ts +46 -0
  11. package/dist/components/Avatar/Avatar.types.d.ts.map +1 -0
  12. package/dist/components/Badge/Badge.d.ts +42 -0
  13. package/dist/components/Badge/Badge.d.ts.map +1 -0
  14. package/dist/components/Badge/Badge.types.d.ts +32 -0
  15. package/dist/components/Badge/Badge.types.d.ts.map +1 -0
  16. package/dist/components/Button/Button.d.ts +84 -0
  17. package/dist/components/Button/Button.d.ts.map +1 -0
  18. package/dist/components/Button/Button.types.d.ts +162 -0
  19. package/dist/components/Button/Button.types.d.ts.map +1 -0
  20. package/dist/components/Button/icons.d.ts +26 -0
  21. package/dist/components/Button/icons.d.ts.map +1 -0
  22. package/dist/components/Button/index.d.ts +4 -0
  23. package/dist/components/Button/index.d.ts.map +1 -0
  24. package/dist/components/Checkbox/Checkbox.d.ts +31 -0
  25. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  26. package/dist/components/Checkbox/Checkbox.types.d.ts +53 -0
  27. package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
  28. package/dist/components/DescriptionList/DescriptionList.d.ts +38 -0
  29. package/dist/components/DescriptionList/DescriptionList.d.ts.map +1 -0
  30. package/dist/components/DescriptionList/DescriptionList.types.d.ts +27 -0
  31. package/dist/components/DescriptionList/DescriptionList.types.d.ts.map +1 -0
  32. package/dist/components/Divider/Divider.d.ts +33 -0
  33. package/dist/components/Divider/Divider.d.ts.map +1 -0
  34. package/dist/components/Divider/Divider.types.d.ts +22 -0
  35. package/dist/components/Divider/Divider.types.d.ts.map +1 -0
  36. package/dist/components/Dropdown/Dropdown.d.ts +66 -0
  37. package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
  38. package/dist/components/Dropdown/Dropdown.types.d.ts +124 -0
  39. package/dist/components/Dropdown/Dropdown.types.d.ts.map +1 -0
  40. package/dist/components/Dropdown/icons.d.ts +10 -0
  41. package/dist/components/Dropdown/icons.d.ts.map +1 -0
  42. package/dist/components/Dropdown/index.d.ts +4 -0
  43. package/dist/components/Dropdown/index.d.ts.map +1 -0
  44. package/dist/components/DropdownItemCollapsible/DropdownItemCollapsible.d.ts +101 -0
  45. package/dist/components/DropdownItemCollapsible/DropdownItemCollapsible.d.ts.map +1 -0
  46. package/dist/components/DropdownItemCollapsible/DropdownItemCollapsible.types.d.ts +95 -0
  47. package/dist/components/DropdownItemCollapsible/DropdownItemCollapsible.types.d.ts.map +1 -0
  48. package/dist/components/DropdownItemCollapsible/icons.d.ts +19 -0
  49. package/dist/components/DropdownItemCollapsible/icons.d.ts.map +1 -0
  50. package/dist/components/DropdownItemCollapsible/index.d.ts +9 -0
  51. package/dist/components/DropdownItemCollapsible/index.d.ts.map +1 -0
  52. package/dist/components/DropdownItemHeading/DropdownItemHeading.d.ts +75 -0
  53. package/dist/components/DropdownItemHeading/DropdownItemHeading.d.ts.map +1 -0
  54. package/dist/components/DropdownItemHeading/DropdownItemHeading.types.d.ts +85 -0
  55. package/dist/components/DropdownItemHeading/DropdownItemHeading.types.d.ts.map +1 -0
  56. package/dist/components/DropdownItemHeading/icons.d.ts +48 -0
  57. package/dist/components/DropdownItemHeading/icons.d.ts.map +1 -0
  58. package/dist/components/DropdownItemHeading/index.d.ts +4 -0
  59. package/dist/components/DropdownItemHeading/index.d.ts.map +1 -0
  60. package/dist/components/Input/Input.d.ts +40 -0
  61. package/dist/components/Input/Input.d.ts.map +1 -0
  62. package/dist/components/Input/Input.types.d.ts +71 -0
  63. package/dist/components/Input/Input.types.d.ts.map +1 -0
  64. package/dist/components/Input/icons.d.ts +15 -0
  65. package/dist/components/Input/icons.d.ts.map +1 -0
  66. package/dist/components/Input/index.d.ts +3 -0
  67. package/dist/components/Input/index.d.ts.map +1 -0
  68. package/dist/components/LoginView/LoginView.d.ts +36 -0
  69. package/dist/components/LoginView/LoginView.d.ts.map +1 -0
  70. package/dist/components/LoginView/LoginView.types.d.ts +46 -0
  71. package/dist/components/LoginView/LoginView.types.d.ts.map +1 -0
  72. package/dist/components/LoginView/icons.d.ts +18 -0
  73. package/dist/components/LoginView/icons.d.ts.map +1 -0
  74. package/dist/components/LoginView/index.d.ts +4 -0
  75. package/dist/components/LoginView/index.d.ts.map +1 -0
  76. package/dist/components/Navbar/Navbar.d.ts +63 -0
  77. package/dist/components/Navbar/Navbar.d.ts.map +1 -0
  78. package/dist/components/Navbar/Navbar.types.d.ts +194 -0
  79. package/dist/components/Navbar/Navbar.types.d.ts.map +1 -0
  80. package/dist/components/Navbar/icons.d.ts +12 -0
  81. package/dist/components/Navbar/icons.d.ts.map +1 -0
  82. package/dist/components/Navbar/index.d.ts +4 -0
  83. package/dist/components/Navbar/index.d.ts.map +1 -0
  84. package/dist/components/NavigationBar/NavigationBar.d.ts +75 -0
  85. package/dist/components/NavigationBar/NavigationBar.d.ts.map +1 -0
  86. package/dist/components/NavigationBar/NavigationBar.types.d.ts +63 -0
  87. package/dist/components/NavigationBar/NavigationBar.types.d.ts.map +1 -0
  88. package/dist/components/NavigationBar/index.d.ts +3 -0
  89. package/dist/components/NavigationBar/index.d.ts.map +1 -0
  90. package/dist/components/NavigationRail/NavigationRail.d.ts +7 -0
  91. package/dist/components/NavigationRail/NavigationRail.d.ts.map +1 -0
  92. package/dist/components/NavigationRail/NavigationRail.types.d.ts +92 -0
  93. package/dist/components/NavigationRail/NavigationRail.types.d.ts.map +1 -0
  94. package/dist/components/NavigationRail/index.d.ts +3 -0
  95. package/dist/components/NavigationRail/index.d.ts.map +1 -0
  96. package/dist/components/NavigationRailItem/NavigationRailItem.d.ts +90 -0
  97. package/dist/components/NavigationRailItem/NavigationRailItem.d.ts.map +1 -0
  98. package/dist/components/NavigationRailItem/NavigationRailItem.types.d.ts +155 -0
  99. package/dist/components/NavigationRailItem/NavigationRailItem.types.d.ts.map +1 -0
  100. package/dist/components/NavigationRailItem/index.d.ts +3 -0
  101. package/dist/components/NavigationRailItem/index.d.ts.map +1 -0
  102. package/dist/components/NavigationRailPanel/NavigationRailPanel.d.ts +124 -0
  103. package/dist/components/NavigationRailPanel/NavigationRailPanel.d.ts.map +1 -0
  104. package/dist/components/NavigationRailPanel/NavigationRailPanel.types.d.ts +154 -0
  105. package/dist/components/NavigationRailPanel/NavigationRailPanel.types.d.ts.map +1 -0
  106. package/dist/components/NavigationRailPanel/index.d.ts +3 -0
  107. package/dist/components/NavigationRailPanel/index.d.ts.map +1 -0
  108. package/dist/components/NavigationRailTypes/NavigationRailTypes.d.ts +99 -0
  109. package/dist/components/NavigationRailTypes/NavigationRailTypes.d.ts.map +1 -0
  110. package/dist/components/NavigationRailTypes/NavigationRailTypes.types.d.ts +111 -0
  111. package/dist/components/NavigationRailTypes/NavigationRailTypes.types.d.ts.map +1 -0
  112. package/dist/components/NavigationRailTypes/icons.d.ts +58 -0
  113. package/dist/components/NavigationRailTypes/icons.d.ts.map +1 -0
  114. package/dist/components/NavigationRailTypes/index.d.ts +4 -0
  115. package/dist/components/NavigationRailTypes/index.d.ts.map +1 -0
  116. package/dist/components/Notification/Notification.d.ts +52 -0
  117. package/dist/components/Notification/Notification.d.ts.map +1 -0
  118. package/dist/components/Notification/Notification.types.d.ts +138 -0
  119. package/dist/components/Notification/Notification.types.d.ts.map +1 -0
  120. package/dist/components/Notification/index.d.ts +3 -0
  121. package/dist/components/Notification/index.d.ts.map +1 -0
  122. package/dist/components/POSConvention/POSConvention.d.ts +55 -0
  123. package/dist/components/POSConvention/POSConvention.d.ts.map +1 -0
  124. package/dist/components/POSConvention/POSConvention.types.d.ts +37 -0
  125. package/dist/components/POSConvention/POSConvention.types.d.ts.map +1 -0
  126. package/dist/components/POSConvention/icons.d.ts +21 -0
  127. package/dist/components/POSConvention/icons.d.ts.map +1 -0
  128. package/dist/components/POSConvention/index.d.ts +4 -0
  129. package/dist/components/POSConvention/index.d.ts.map +1 -0
  130. package/dist/components/POSLocationButton/POSLocationButton.d.ts +73 -0
  131. package/dist/components/POSLocationButton/POSLocationButton.d.ts.map +1 -0
  132. package/dist/components/POSLocationButton/POSLocationButton.types.d.ts +75 -0
  133. package/dist/components/POSLocationButton/POSLocationButton.types.d.ts.map +1 -0
  134. package/dist/components/POSLocationButton/icons.d.ts +37 -0
  135. package/dist/components/POSLocationButton/icons.d.ts.map +1 -0
  136. package/dist/components/POSLocationButton/index.d.ts +4 -0
  137. package/dist/components/POSLocationButton/index.d.ts.map +1 -0
  138. package/dist/components/POSNumberButton/POSNumberButton.d.ts +61 -0
  139. package/dist/components/POSNumberButton/POSNumberButton.d.ts.map +1 -0
  140. package/dist/components/POSNumberButton/POSNumberButton.types.d.ts +43 -0
  141. package/dist/components/POSNumberButton/POSNumberButton.types.d.ts.map +1 -0
  142. package/dist/components/POSNumberButton/index.d.ts +3 -0
  143. package/dist/components/POSNumberButton/index.d.ts.map +1 -0
  144. package/dist/components/POSProductButton/POSProductButton.d.ts +59 -0
  145. package/dist/components/POSProductButton/POSProductButton.d.ts.map +1 -0
  146. package/dist/components/POSProductButton/POSProductButton.types.d.ts +40 -0
  147. package/dist/components/POSProductButton/POSProductButton.types.d.ts.map +1 -0
  148. package/dist/components/POSProductButton/index.d.ts +3 -0
  149. package/dist/components/POSProductButton/index.d.ts.map +1 -0
  150. package/dist/components/POSProductCard/POSProductCard.d.ts +68 -0
  151. package/dist/components/POSProductCard/POSProductCard.d.ts.map +1 -0
  152. package/dist/components/POSProductCard/POSProductCard.types.d.ts +67 -0
  153. package/dist/components/POSProductCard/POSProductCard.types.d.ts.map +1 -0
  154. package/dist/components/POSProductCard/icons.d.ts +10 -0
  155. package/dist/components/POSProductCard/icons.d.ts.map +1 -0
  156. package/dist/components/POSProductCard/index.d.ts +3 -0
  157. package/dist/components/POSProductCard/index.d.ts.map +1 -0
  158. package/dist/components/POSProductSidebarItems/POSProductSidebarItems.d.ts +57 -0
  159. package/dist/components/POSProductSidebarItems/POSProductSidebarItems.d.ts.map +1 -0
  160. package/dist/components/POSProductSidebarItems/POSProductSidebarItems.types.d.ts +85 -0
  161. package/dist/components/POSProductSidebarItems/POSProductSidebarItems.types.d.ts.map +1 -0
  162. package/dist/components/POSProductSidebarItems/icons.d.ts +9 -0
  163. package/dist/components/POSProductSidebarItems/icons.d.ts.map +1 -0
  164. package/dist/components/POSProductSidebarItems/index.d.ts +4 -0
  165. package/dist/components/POSProductSidebarItems/index.d.ts.map +1 -0
  166. package/dist/components/POSTable/POSTable.d.ts +75 -0
  167. package/dist/components/POSTable/POSTable.d.ts.map +1 -0
  168. package/dist/components/POSTable/POSTable.types.d.ts +71 -0
  169. package/dist/components/POSTable/POSTable.types.d.ts.map +1 -0
  170. package/dist/components/POSTable/index.d.ts +3 -0
  171. package/dist/components/POSTable/index.d.ts.map +1 -0
  172. package/dist/components/Pagination/Pagination.d.ts +29 -0
  173. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  174. package/dist/components/Pagination/Pagination.types.d.ts +79 -0
  175. package/dist/components/Pagination/Pagination.types.d.ts.map +1 -0
  176. package/dist/components/Pagination/icons.d.ts +18 -0
  177. package/dist/components/Pagination/icons.d.ts.map +1 -0
  178. package/dist/components/Pagination/index.d.ts +4 -0
  179. package/dist/components/Pagination/index.d.ts.map +1 -0
  180. package/dist/components/Quantity/Quantity.d.ts +38 -0
  181. package/dist/components/Quantity/Quantity.d.ts.map +1 -0
  182. package/dist/components/Quantity/Quantity.types.d.ts +59 -0
  183. package/dist/components/Quantity/Quantity.types.d.ts.map +1 -0
  184. package/dist/components/Radio/Radio.d.ts +45 -0
  185. package/dist/components/Radio/Radio.d.ts.map +1 -0
  186. package/dist/components/Radio/Radio.types.d.ts +115 -0
  187. package/dist/components/Radio/Radio.types.d.ts.map +1 -0
  188. package/dist/components/Select/Select.d.ts +37 -0
  189. package/dist/components/Select/Select.d.ts.map +1 -0
  190. package/dist/components/Select/Select.types.d.ts +124 -0
  191. package/dist/components/Select/Select.types.d.ts.map +1 -0
  192. package/dist/components/Select/icons.d.ts +16 -0
  193. package/dist/components/Select/icons.d.ts.map +1 -0
  194. package/dist/components/Select/index.d.ts +4 -0
  195. package/dist/components/Select/index.d.ts.map +1 -0
  196. package/dist/components/SignUpView/SignUpView.d.ts +38 -0
  197. package/dist/components/SignUpView/SignUpView.d.ts.map +1 -0
  198. package/dist/components/SignUpView/SignUpView.types.d.ts +51 -0
  199. package/dist/components/SignUpView/SignUpView.types.d.ts.map +1 -0
  200. package/dist/components/SignUpView/icons.d.ts +18 -0
  201. package/dist/components/SignUpView/icons.d.ts.map +1 -0
  202. package/dist/components/SignUpView/index.d.ts +4 -0
  203. package/dist/components/SignUpView/index.d.ts.map +1 -0
  204. package/dist/components/Switch/Switch.d.ts +46 -0
  205. package/dist/components/Switch/Switch.d.ts.map +1 -0
  206. package/dist/components/Switch/Switch.types.d.ts +58 -0
  207. package/dist/components/Switch/Switch.types.d.ts.map +1 -0
  208. package/dist/components/Table/Table.d.ts +64 -0
  209. package/dist/components/Table/Table.d.ts.map +1 -0
  210. package/dist/components/Table/Table.types.d.ts +173 -0
  211. package/dist/components/Table/Table.types.d.ts.map +1 -0
  212. package/dist/components/Table/index.d.ts +3 -0
  213. package/dist/components/Table/index.d.ts.map +1 -0
  214. package/dist/components/Tabs/Tabs.d.ts +76 -0
  215. package/dist/components/Tabs/Tabs.d.ts.map +1 -0
  216. package/dist/components/Tabs/Tabs.types.d.ts +107 -0
  217. package/dist/components/Tabs/Tabs.types.d.ts.map +1 -0
  218. package/dist/components/Tabs/icons.d.ts +45 -0
  219. package/dist/components/Tabs/icons.d.ts.map +1 -0
  220. package/dist/components/Tabs/index.d.ts +4 -0
  221. package/dist/components/Tabs/index.d.ts.map +1 -0
  222. package/dist/components/Textarea/Textarea.d.ts +38 -0
  223. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  224. package/dist/components/Textarea/Textarea.types.d.ts +46 -0
  225. package/dist/components/Textarea/Textarea.types.d.ts.map +1 -0
  226. package/dist/context/ThemeContext.d.ts +46 -0
  227. package/dist/context/ThemeContext.d.ts.map +1 -0
  228. package/dist/context/index.d.ts +2 -0
  229. package/dist/context/index.d.ts.map +1 -0
  230. package/dist/index.d.ts +56 -0
  231. package/dist/index.d.ts.map +1 -0
  232. package/dist/siesa-ui-kit.cjs +1273 -0
  233. package/dist/siesa-ui-kit.cjs.map +1 -0
  234. package/dist/siesa-ui-kit.mjs +4510 -0
  235. package/dist/siesa-ui-kit.mjs.map +1 -0
  236. package/dist/views/ListView/ListView.d.ts +47 -0
  237. package/dist/views/ListView/ListView.d.ts.map +1 -0
  238. package/dist/views/ListView/ListView.types.d.ts +177 -0
  239. package/dist/views/ListView/ListView.types.d.ts.map +1 -0
  240. package/dist/views/ListView/icons.d.ts +60 -0
  241. package/dist/views/ListView/icons.d.ts.map +1 -0
  242. package/dist/views/ListView/index.d.ts +3 -0
  243. package/dist/views/ListView/index.d.ts.map +1 -0
  244. package/dist/views/LoginView/LoginView.d.ts +36 -0
  245. package/dist/views/LoginView/LoginView.d.ts.map +1 -0
  246. package/dist/views/LoginView/LoginView.types.d.ts +46 -0
  247. package/dist/views/LoginView/LoginView.types.d.ts.map +1 -0
  248. package/dist/views/LoginView/icons.d.ts +18 -0
  249. package/dist/views/LoginView/icons.d.ts.map +1 -0
  250. package/dist/views/LoginView/index.d.ts +4 -0
  251. package/dist/views/LoginView/index.d.ts.map +1 -0
  252. package/dist/views/ProductsView/ProductsView.d.ts +56 -0
  253. package/dist/views/ProductsView/ProductsView.d.ts.map +1 -0
  254. package/dist/views/ProductsView/ProductsView.types.d.ts +184 -0
  255. package/dist/views/ProductsView/ProductsView.types.d.ts.map +1 -0
  256. package/dist/views/ProductsView/icons.d.ts +12 -0
  257. package/dist/views/ProductsView/icons.d.ts.map +1 -0
  258. package/dist/views/ProductsView/index.d.ts +3 -0
  259. package/dist/views/ProductsView/index.d.ts.map +1 -0
  260. package/dist/views/RecoverPasswordView/RecoverPasswordView.d.ts +34 -0
  261. package/dist/views/RecoverPasswordView/RecoverPasswordView.d.ts.map +1 -0
  262. package/dist/views/RecoverPasswordView/RecoverPasswordView.types.d.ts +50 -0
  263. package/dist/views/RecoverPasswordView/RecoverPasswordView.types.d.ts.map +1 -0
  264. package/dist/views/RecoverPasswordView/icons.d.ts +9 -0
  265. package/dist/views/RecoverPasswordView/icons.d.ts.map +1 -0
  266. package/dist/views/RecoverPasswordView/index.d.ts +3 -0
  267. package/dist/views/RecoverPasswordView/index.d.ts.map +1 -0
  268. package/dist/views/SignUpView/SignUpView.d.ts +38 -0
  269. package/dist/views/SignUpView/SignUpView.d.ts.map +1 -0
  270. package/dist/views/SignUpView/SignUpView.types.d.ts +51 -0
  271. package/dist/views/SignUpView/SignUpView.types.d.ts.map +1 -0
  272. package/dist/views/SignUpView/icons.d.ts +18 -0
  273. package/dist/views/SignUpView/icons.d.ts.map +1 -0
  274. package/dist/views/SignUpView/index.d.ts +4 -0
  275. package/dist/views/SignUpView/index.d.ts.map +1 -0
  276. package/dist/views/TableLayoutView/TableLayoutView.d.ts +46 -0
  277. package/dist/views/TableLayoutView/TableLayoutView.d.ts.map +1 -0
  278. package/dist/views/TableLayoutView/TableLayoutView.types.d.ts +170 -0
  279. package/dist/views/TableLayoutView/TableLayoutView.types.d.ts.map +1 -0
  280. package/dist/views/TableLayoutView/icons.d.ts +27 -0
  281. package/dist/views/TableLayoutView/icons.d.ts.map +1 -0
  282. package/dist/views/TableLayoutView/index.d.ts +3 -0
  283. package/dist/views/TableLayoutView/index.d.ts.map +1 -0
  284. package/package.json +93 -92
  285. package/bin/install.cjs +0 -502
  286. package/bin/prepare-publish.cjs +0 -28
  287. package/bin/restore-folders.cjs +0 -28
  288. package/dist/,Business Logo.png +0 -0
  289. package/dist/.Siesa Logo.png +0 -0
  290. package/dist/bg_siesa.png +0 -0
  291. package/dist/index.cjs +0 -1479
  292. package/dist/index.cjs.map +0 -1
  293. package/dist/index.js +0 -1479
  294. package/dist/index.js.map +0 -1
  295. package/dist/siesa_logo_mobile.png +0 -0
  296. package/dist/vite.svg +0 -1
@@ -0,0 +1,101 @@
1
+ import React from 'react';
2
+ import type { DropdownItemCollapsibleProps } from './DropdownItemCollapsible.types';
3
+ /**
4
+ * Componente DropdownItemCollapsible del sistema de diseño Siesa
5
+ *
6
+ * Item colapsable para uso dentro de Dropdowns que permite agrupar
7
+ * items relacionados en secciones expandibles.
8
+ *
9
+ * **Características:**
10
+ * - Soporte completo para expandir/colapsar
11
+ * - Iconos personalizables en header y children
12
+ * - Items anidados indentados automáticamente
13
+ * - Dark mode completo con inversión de colores
14
+ * - Estados: default, hover, active, disabled
15
+ * - Focus rings adaptativos
16
+ * - Animación suave de rotación del chevron
17
+ *
18
+ * **Estados visuales:**
19
+ * - `collapsed`: Muestra solo el header con chevron apuntando down
20
+ * - `expanded`: Muestra header y lista de items anidados
21
+ * - `disabled`: Opacidad 50%, sin interacción
22
+ * - `hover`: Fondo de hover sutil, color primario del icono
23
+ * - `active`: Item anidado seleccionado con fondo custom-primary
24
+ *
25
+ * **Espaciado según Figma:**
26
+ * - Header padding: px-4 py-2 (16px horizontal, 8px vertical)
27
+ * - Item anidado padding: pl-6 pr-4 py-2 (24px left, 16px right, 8px vertical)
28
+ * - Gap entre elementos: gap-3 (12px)
29
+ * - Gap interno (icon + text): gap-3 (12px)
30
+ * - Indent entre niveles: 8px adicional por nivel
31
+ * - Divisor: borde top de 1px con spacing-0.5 (2px) arriba
32
+ * - Sección heading: pt-3 pb-1 px-0 (12px top, 4px bottom, sin horizontal)
33
+ *
34
+ * **Tipografía:**
35
+ * - Header: Paragraph/Small (14px, Regular, line-height 20px) - text-content-primary
36
+ * - Items anidados: Paragraph/Small (14px, Regular, line-height 20px) - text-content-primary
37
+ * - Heading: Paragraph/Tiny (12px, Regular, line-height 16px) - text-content-tertiary
38
+ *
39
+ * **Colores (Light Mode):**
40
+ * - Header text: content-primary (#18181b)
41
+ * - Header icon: content-secondary (#a1a1aa)
42
+ * - Header hover: bg-background-custom-primary (#dbeefe)
43
+ * - Header text hover: content-custom-primary (#0e79fd)
44
+ * - Item text: content-primary (#18181b)
45
+ * - Item hover: bg-transparent (sin fondo)
46
+ * - Divider: border-border-primary (#e4e4e7)
47
+ * - Heading text: content-tertiary (#71717a)
48
+ *
49
+ * **Colores (Dark Mode):**
50
+ * - Header text: content-primary/dark (#fafafa)
51
+ * - Header icon: content-secondary/dark (#a1a1aa)
52
+ * - Header hover: bg-background-custom-primary/dark (#0e5ab0)
53
+ * - Header text hover: content-custom-primary/dark (#bfe2fe)
54
+ * - Item text: content-primary/dark (#fafafa)
55
+ * - Divider: border-border-primary/dark (#3f3f46)
56
+ * - Heading text: content-tertiary/dark (#a1a1aa)
57
+ *
58
+ * **Border radius:**
59
+ * - Todos los items: rounded-lg (8px)
60
+ *
61
+ * **Sombras:**
62
+ * - Ninguna (usado dentro de dropdowns)
63
+ *
64
+ * @see docs/colors.md - Sistema de colores
65
+ * @see docs/typography.md - Sistema tipográfico
66
+ * @see docs/spacing.md - Sistema de espaciado
67
+ * @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-34374
68
+ *
69
+ * @example
70
+ * ```tsx
71
+ * // Item colapsable simple
72
+ * <DropdownItemCollapsible
73
+ * label="Users"
74
+ * icon={<UserIcon />}
75
+ * children={[
76
+ * { label: "Active Users", icon: <CheckIcon /> },
77
+ * { label: "Inactive Users", icon: <CloseIcon /> },
78
+ * ]}
79
+ * />
80
+ *
81
+ * // Con encabezado de sección
82
+ * <DropdownItemCollapsible
83
+ * label="Customers"
84
+ * icon={<BuildingIcon />}
85
+ * showHeading={true}
86
+ * headingLabel="SECTION 1"
87
+ * children={[...]}
88
+ * />
89
+ *
90
+ * // Item no colapsable (actúa como botón normal)
91
+ * <DropdownItemCollapsible
92
+ * label="Single Item"
93
+ * icon={<StarIcon />}
94
+ * isCollapsible={false}
95
+ * onClick={() => console.log('clicked')}
96
+ * />
97
+ * ```
98
+ */
99
+ export declare const DropdownItemCollapsible: React.FC<DropdownItemCollapsibleProps>;
100
+ export default DropdownItemCollapsible;
101
+ //# sourceMappingURL=DropdownItemCollapsible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownItemCollapsible.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemCollapsible/DropdownItemCollapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,iCAAiC,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAqL1E,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,95 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Props del componente DropdownItemCollapsible
4
+ *
5
+ * @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-34374
6
+ */
7
+ export interface DropdownItemCollapsibleProps {
8
+ /**
9
+ * Texto o contenido principal del item
10
+ * Ejemplo: "Users", "Customers", "Departments"
11
+ */
12
+ label: string;
13
+ /**
14
+ * Icono a mostrar antes del texto (izquierda)
15
+ * Recomendado: 16x16px
16
+ */
17
+ icon?: ReactNode;
18
+ /**
19
+ * Items anidados que se muestran cuando el item está expandido
20
+ * Cada item anidado tiene label e icono opcional
21
+ */
22
+ children?: DropdownItemCollapsibleChildProps[];
23
+ /**
24
+ * Si el item está expandido inicialmente
25
+ * @default false
26
+ */
27
+ defaultOpen?: boolean;
28
+ /**
29
+ * Si el item está deshabilitado
30
+ * @default false
31
+ */
32
+ disabled?: boolean;
33
+ /**
34
+ * Callback cuando el item se expande/contrae
35
+ * @param open - nuevo estado de expansión
36
+ */
37
+ onOpenChange?: (open: boolean) => void;
38
+ /**
39
+ * Callback cuando se hace click en el item (sin expandir)
40
+ * Útil para items que actúan como botones normales
41
+ */
42
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
43
+ /**
44
+ * Si el item debería actuar como un botón normal sin colapsable
45
+ * @default false
46
+ */
47
+ isCollapsible?: boolean;
48
+ /**
49
+ * Si mostrar un encabezado de sección antes del item
50
+ * @default false
51
+ */
52
+ showHeading?: boolean;
53
+ /**
54
+ * Texto del encabezado de sección
55
+ * Se usa cuando showHeading es true
56
+ * Ejemplo: "Section Title"
57
+ */
58
+ headingLabel?: string;
59
+ /**
60
+ * Si mostrar divisor después del item/encabezado
61
+ * @default true
62
+ */
63
+ showDivider?: boolean;
64
+ /**
65
+ * Clases CSS adicionales
66
+ */
67
+ className?: string;
68
+ }
69
+ /**
70
+ * Props de items anidados dentro del colapsable
71
+ */
72
+ export interface DropdownItemCollapsibleChildProps {
73
+ /**
74
+ * Texto del item anidado
75
+ */
76
+ label: string;
77
+ /**
78
+ * Icono opcional del item anidado
79
+ */
80
+ icon?: ReactNode;
81
+ /**
82
+ * Si el item anidado está deshabilitado
83
+ * @default false
84
+ */
85
+ disabled?: boolean;
86
+ /**
87
+ * Callback cuando se hace click en el item anidado
88
+ */
89
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
90
+ /**
91
+ * Clases CSS adicionales
92
+ */
93
+ className?: string;
94
+ }
95
+ //# sourceMappingURL=DropdownItemCollapsible.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownItemCollapsible.types.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemCollapsible/DropdownItemCollapsible.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,iCAAiC,EAAE,CAAC;IAE/C;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE3D;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAExD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ /**
3
+ * Icono ChevronDown para el toggle del colapsable
4
+ * Diseño basado en heroicons-micro/chevron-down
5
+ * Tamaño: 16x16px
6
+ *
7
+ * @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-34374
8
+ */
9
+ export declare const ChevronDownIcon: React.FC<{
10
+ className?: string;
11
+ }>;
12
+ /**
13
+ * Icono de usuario placeholder para ejemplos en stories
14
+ * Tamaño: 16x16px
15
+ */
16
+ export declare const UserIcon: React.FC<{
17
+ className?: string;
18
+ }>;
19
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemCollapsible/icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAiB5D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAwBrD,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Exportaciones del componente DropdownItemCollapsible
3
+ *
4
+ * @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-34374
5
+ */
6
+ export { DropdownItemCollapsible } from './DropdownItemCollapsible';
7
+ export type { DropdownItemCollapsibleProps, DropdownItemCollapsibleChildProps, } from './DropdownItemCollapsible.types';
8
+ export { ChevronDownIcon, UserIcon } from './icons';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemCollapsible/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,YAAY,EACV,4BAA4B,EAC5B,iCAAiC,GAClC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,75 @@
1
+ import React from 'react';
2
+ import type { DropdownItemHeadingProps } from './DropdownItemHeading.types';
3
+ /**
4
+ * Componente DropdownItemHeading del sistema de diseño Siesa
5
+ *
6
+ * Implementación pixel-perfect basada en Figma (node 6135:32539)
7
+ * para encabezados en menús dropdown con icono, label, descripción y acción.
8
+ *
9
+ * **Estructura:**
10
+ * - Icon Wrapper: Opcional, icono de 16x16px
11
+ * - Content Wrapper: Label + Description (flexible)
12
+ * - Action Wrapper: Opcional, texto de acción en la derecha
13
+ *
14
+ * **Dimensiones:**
15
+ * - Altura flexible (contenido vertical)
16
+ * - Width mínimo: 224px
17
+ * - Padding: 8px vertical, 16px horizontal
18
+ * - Border radius: 8px (rounded-lg)
19
+ *
20
+ * **Tipografía:**
21
+ * - Label: Label/Small (14px Bold) - content-primary
22
+ * - Description: Paragraph/Tiny (12px Regular) - content-secondary
23
+ * - Action: Paragraph/XXSmall (10px Regular) - content-secondary
24
+ *
25
+ * **Dark Mode:**
26
+ * - Label: #18181b (light) → #bfe2fe (dark)
27
+ * - Description: #a1a1aa (light) → #93d1fd (dark)
28
+ * - Icon: #0e79fd (light) → #bfe2fe (dark)
29
+ * - Action: #a1a1aa (light) → #93d1fd (dark)
30
+ *
31
+ * **Estados:**
32
+ * - Default: Sin hover/focus
33
+ * - Hover: Overlay sutil (managed by parent Dropdown)
34
+ * - Disabled: Opacity 50% (managed by parent Dropdown)
35
+ *
36
+ * **Especificaciones de Figma:**
37
+ * - Gap entre elementos: 12px
38
+ * - Gap entre label y description: 2px
39
+ * - Rounded: 8px (rounded-lg)
40
+ *
41
+ * @see docs/colors.md - Sistema de colores
42
+ * @see docs/typography.md - Sistema tipográfico (Label/Small, Paragraph/Tiny)
43
+ * @see docs/spacing.md - Sistema de espaciado
44
+ * @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-32539 - Diseño Figma
45
+ *
46
+ * @example
47
+ * ```tsx
48
+ * // Con icono, label, descripción y acción
49
+ * <DropdownItemHeading
50
+ * label="Settings"
51
+ * description="Configure your preferences"
52
+ * showDescription={true}
53
+ * icon={<SettingsIcon />}
54
+ * showIcon={true}
55
+ * actionLabel="Clear"
56
+ * showAction={true}
57
+ * onActionClick={handleClear}
58
+ * />
59
+ *
60
+ * // Solo label y descripción (sin icono ni acción)
61
+ * <DropdownItemHeading
62
+ * label="My Account"
63
+ * description="user@example.com"
64
+ * showDescription={true}
65
+ * />
66
+ *
67
+ * // Solo label
68
+ * <DropdownItemHeading
69
+ * label="Quick Actions"
70
+ * showDescription={false}
71
+ * />
72
+ * ```
73
+ */
74
+ export declare const DropdownItemHeading: React.FC<DropdownItemHeadingProps>;
75
+ //# sourceMappingURL=DropdownItemHeading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownItemHeading.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemHeading/DropdownItemHeading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAG5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA0IlE,CAAC"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Props del componente DropdownItemHeading
3
+ *
4
+ * Especificaciones de Figma: node 6135:32539
5
+ * @see https://www.figma.com/design/5XNqf2YTxvwemxwo1LMQ6j/Siesa-UI-Kit?node-id=6135-32539&m=dev
6
+ */
7
+ export interface DropdownItemHeadingProps {
8
+ /**
9
+ * Texto del label principal del heading
10
+ * Tipografía: Label/Small (14px, Bold)
11
+ * Color: content-primary (#18181b light, #bfe2fe dark)
12
+ *
13
+ * @default 'Label'
14
+ */
15
+ label?: string;
16
+ /**
17
+ * Texto de descripción secundaria bajo el label
18
+ * Tipografía: Paragraph/Tiny (12px, Regular)
19
+ * Color: content-secondary (#a1a1aa light, #93d1fd dark)
20
+ *
21
+ * @default undefined
22
+ */
23
+ description?: string;
24
+ /**
25
+ * Si se debe mostrar la descripción
26
+ * Cuando es false, solo muestra el label
27
+ *
28
+ * @default true
29
+ */
30
+ showDescription?: boolean;
31
+ /**
32
+ * Nombre del icono a mostrar (string)
33
+ * Iconos disponibles:
34
+ * - `'cog-6-tooth'`: Icono de engranaje (por defecto)
35
+ * - `'check'`: Icono de check
36
+ * - `'x'`: Icono de cerrar
37
+ * - `'chevron-down'`: Icono de chevron hacia abajo
38
+ *
39
+ * Tamaño: 16x16px
40
+ * Color: primary-custom-600 (#0e79fd light, #bfe2fe dark)
41
+ *
42
+ * Si no se proporciona, se usa 'cog-6-tooth' por defecto
43
+ *
44
+ * @default 'cog-6-tooth'
45
+ * @see icons.tsx para ver los iconos disponibles
46
+ */
47
+ iconName?: string | null;
48
+ /**
49
+ * Si se debe mostrar el icono en la izquierda
50
+ *
51
+ * @default true
52
+ */
53
+ showIcon?: boolean;
54
+ /**
55
+ * Texto de acción a mostrar en la derecha
56
+ * Tipografía: Paragraph/XXSmall (10px, Regular)
57
+ * Color: content-secondary (#a1a1aa light, #93d1fd dark)
58
+ *
59
+ * Comúnmente usado para "Clear", "Reset", etc.
60
+ *
61
+ * @default undefined
62
+ */
63
+ actionLabel?: string;
64
+ /**
65
+ * Si se debe mostrar el action label en la derecha
66
+ *
67
+ * @default false
68
+ */
69
+ showAction?: boolean;
70
+ /**
71
+ * Callback ejecutado al hacer click en el action label
72
+ */
73
+ onActionClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
74
+ /**
75
+ * Clases CSS adicionales para personalización
76
+ *
77
+ * @default ''
78
+ */
79
+ className?: string;
80
+ /**
81
+ * Atributos HTML adicionales
82
+ */
83
+ [key: string]: unknown;
84
+ }
85
+ //# sourceMappingURL=DropdownItemHeading.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownItemHeading.types.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemHeading/DropdownItemHeading.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAElE;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Iconos para el componente DropdownItemHeading
3
+ * Usando heroicons-micro según especificaciones de Figma
4
+ *
5
+ * Los iconos se pueden pasar como strings al componente:
6
+ * - 'cog-6-tooth': Icono de engranaje
7
+ * - 'check': Icono de check
8
+ * - 'x': Icono de cerrar
9
+ * - 'chevron-down': Icono de chevron hacia abajo
10
+ *
11
+ * @see DropdownItemHeading.tsx para ver cómo se usan
12
+ */
13
+ import React from 'react';
14
+ interface IconProps {
15
+ className?: string;
16
+ }
17
+ /**
18
+ * Icono Cog (heroicons-micro/cog-6-tooth)
19
+ * Usado como icono por defecto en DropdownItemHeading
20
+ * Tamaño: 16x16px
21
+ */
22
+ export declare const CogIcon: ({ className }: IconProps) => import("react/jsx-runtime").JSX.Element;
23
+ /**
24
+ * Icono Check (heroicons-micro/check)
25
+ */
26
+ export declare const CheckIcon: ({ className }: IconProps) => import("react/jsx-runtime").JSX.Element;
27
+ /**
28
+ * Icono X (heroicons-micro/x-mark)
29
+ */
30
+ export declare const XIcon: ({ className }: IconProps) => import("react/jsx-runtime").JSX.Element;
31
+ /**
32
+ * Icono ChevronDown (heroicons-micro/chevron-down)
33
+ */
34
+ export declare const ChevronDownIcon: ({ className }: IconProps) => import("react/jsx-runtime").JSX.Element;
35
+ /**
36
+ * Mapeo de nombres de iconos a componentes
37
+ * Permite usar strings para referenciar iconos
38
+ */
39
+ export declare const iconMap: Record<string, React.FC<IconProps>>;
40
+ /**
41
+ * Obtener un icono por su nombre
42
+ * @param iconName - Nombre del icono (ej: 'cog-6-tooth', 'check', 'x', 'chevron-down')
43
+ * @param className - Clases CSS adicionales
44
+ * @returns Componente del icono o null si no existe
45
+ */
46
+ export declare const getIcon: (iconName: string | null | undefined, className?: string) => React.ReactNode;
47
+ export {};
48
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemHeading/icons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,SAAS;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,eAA2B,SAAS,4CAa3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,eAA2B,SAAS,4CAkB7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,eAA2B,SAAS,4CASzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,eAA2B,SAAS,4CAanE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,CAKvD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAClB,UAAU,MAAM,GAAG,IAAI,GAAG,SAAS,EACnC,YAAY,MAAM,KACjB,KAAK,CAAC,SAUR,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { DropdownItemHeading } from './DropdownItemHeading';
2
+ export type { DropdownItemHeadingProps } from './DropdownItemHeading.types';
3
+ export { CogIcon, CheckIcon, XIcon, ChevronDownIcon, getIcon, iconMap } from './icons';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownItemHeading/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import type { InputProps } from './Input.types';
3
+ /**
4
+ * Input - Componente de campo de entrada del sistema de diseño Siesa
5
+ * Basado en especificaciones de Figma con Tailwind CSS
6
+ *
7
+ * Mejores prácticas implementadas:
8
+ * - Orden de modificadores: {responsive}:{dark}:{state}:{utility}
9
+ * - Dark mode con estrategia 'class' (darkMode: 'class')
10
+ * - Focus rings adaptativos para light y dark mode
11
+ * - Tokens de color consistentes con la documentación
12
+ * - Sombra base para inputs con focus
13
+ * - Estados hover, focus, disabled y error completos
14
+ * - Typography: Paragraph Regular para texto, Label Bold para labels
15
+ *
16
+ * Campo de entrada de texto con soporte para:
17
+ * - Estados: default, hover, focus, filled, disabled
18
+ * - Validación con mensajes de error
19
+ * - Iconos izquierdo y derecho
20
+ * - Label y helper text
21
+ * - Dark mode completo
22
+ * - Accesibilidad completa
23
+ *
24
+ * @see docs/colors.md - Sistema de colores
25
+ * @see docs/shadows.md - Sistema de sombras
26
+ * @see docs/typography.md - Sistema tipográfico (Paragraph, Label)
27
+ * @see docs/spacing.md - Sistema de espaciado
28
+ *
29
+ * @example
30
+ * ```tsx
31
+ * <Input
32
+ * label="Email"
33
+ * placeholder="tu@email.com"
34
+ * leftIcon={<EnvelopeIcon />}
35
+ * helperText="Ingresa tu correo electrónico"
36
+ * />
37
+ * ```
38
+ */
39
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
40
+ //# sourceMappingURL=Input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmC,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,KAAK,qFAkKjB,CAAC"}
@@ -0,0 +1,71 @@
1
+ import type { ReactElement, InputHTMLAttributes } from 'react';
2
+ /**
3
+ * Estados visuales del Input
4
+ * @description Tipo de referencia para documentar los estados posibles del Input.
5
+ * Los estados se manejan automáticamente mediante props (disabled) y pseudo-clases CSS (:hover, :focus)
6
+ */
7
+ export type InputState = 'default' | 'hover' | 'focus' | 'filled' | 'disabled';
8
+ /**
9
+ * Props del componente Input
10
+ *
11
+ * @see docs/colors.md - Sistema de colores
12
+ * @see docs/typography.md - Sistema tipográfico
13
+ * @see docs/spacing.md - Sistema de espaciado
14
+ * @see docs/shadows.md - Sistema de sombras
15
+ */
16
+ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
17
+ /**
18
+ * Etiqueta del campo de entrada
19
+ * @description Texto descriptivo que se muestra encima del input
20
+ * @example "Email", "Nombre completo", "Contraseña"
21
+ */
22
+ label?: string;
23
+ /**
24
+ * Texto secundario junto al label (opcional)
25
+ * @description Se muestra alineado a la derecha del label, útil para indicar campos opcionales
26
+ * @example "Optional", "Opcional"
27
+ */
28
+ labelSecondary?: string;
29
+ /**
30
+ * Texto de ayuda debajo del input
31
+ * @description Proporciona información adicional o instrucciones para el usuario
32
+ * @example "Ingresa tu correo electrónico", "Mínimo 8 caracteres"
33
+ */
34
+ helperText?: string;
35
+ /**
36
+ * Indica si hay un error de validación
37
+ * @description Cambia el estilo del input para indicar error (borde rojo)
38
+ * @default false
39
+ */
40
+ error?: boolean;
41
+ /**
42
+ * Mensaje de error a mostrar (reemplaza helperText cuando error=true)
43
+ * @description Se muestra en rojo debajo del input cuando hay un error
44
+ * @example "Este campo es requerido", "Formato de email inválido"
45
+ */
46
+ errorMessage?: string;
47
+ /**
48
+ * Icono a mostrar a la izquierda del input
49
+ * @description Ayuda a identificar el tipo de campo visualmente
50
+ * @example <EnvelopeIcon />, <UserIcon />, <LockClosedIcon />
51
+ */
52
+ leftIcon?: ReactElement;
53
+ /**
54
+ * Icono a mostrar a la derecha del input
55
+ * @description Útil para acciones como mostrar/ocultar contraseña o limpiar campo
56
+ * @example <EyeIcon />, <XMarkIcon />, <CheckIcon />
57
+ */
58
+ rightIcon?: ReactElement;
59
+ /**
60
+ * Si el input ocupa todo el ancho del contenedor
61
+ * @description Por defecto usa w-[265px], con fullWidth usa w-full
62
+ * @default false
63
+ */
64
+ fullWidth?: boolean;
65
+ /**
66
+ * Clases CSS adicionales para personalizar el componente
67
+ * @description Se aplican al contenedor principal del input
68
+ */
69
+ className?: string;
70
+ }
71
+ //# sourceMappingURL=Input.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.types.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACrF;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Icons para Input Component
3
+ * Basado en Heroicons Micro
4
+ */
5
+ export declare const EnvelopeIcon: () => import("react/jsx-runtime").JSX.Element;
6
+ export declare const QuestionMarkCircleIcon: () => import("react/jsx-runtime").JSX.Element;
7
+ export declare const UserIcon: () => import("react/jsx-runtime").JSX.Element;
8
+ export declare const LockClosedIcon: () => import("react/jsx-runtime").JSX.Element;
9
+ export declare const MagnifyingGlassIcon: () => import("react/jsx-runtime").JSX.Element;
10
+ export declare const EyeIcon: () => import("react/jsx-runtime").JSX.Element;
11
+ export declare const EyeSlashIcon: () => import("react/jsx-runtime").JSX.Element;
12
+ export declare const XMarkIcon: () => import("react/jsx-runtime").JSX.Element;
13
+ export declare const CheckIcon: () => import("react/jsx-runtime").JSX.Element;
14
+ export declare const ExclamationCircleIcon: () => import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/components/Input/icons.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,YAAY,+CAUxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,+CAalC,CAAC;AAEF,eAAO,MAAM,QAAQ,+CASpB,CAAC;AAEF,eAAO,MAAM,cAAc,+CAa1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,+CAa/B,CAAC;AAEF,eAAO,MAAM,OAAO,+CAcnB,CAAC;AAEF,eAAO,MAAM,YAAY,+CAcxB,CAAC;AAEF,eAAO,MAAM,SAAS,+CASrB,CAAC;AAEF,eAAO,MAAM,SAAS,+CAarB,CAAC;AAEF,eAAO,MAAM,qBAAqB,+CAajC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Input } from './Input';
2
+ export type { InputProps, InputState } from './Input.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import type { LoginViewProps } from './LoginView.types';
3
+ /**
4
+ * LoginView - Vista de inicio de sesión del sistema Siesa
5
+ *
6
+ * Vista completa de login con formulario de autenticación que incluye:
7
+ * - Logo de Siesa
8
+ * - Campos de email y contraseña
9
+ * - Opción de "olvidé mi contraseña"
10
+ * - Link para crear cuenta nueva
11
+ * - Fondo decorativo opcional
12
+ *
13
+ * Mejores prácticas implementadas:
14
+ * - Orden de modificadores: {responsive}:{dark}:{state}:{utility}
15
+ * - Dark mode con estrategia 'class' (darkMode: 'class')
16
+ * - Tokens de color consistentes con la documentación
17
+ * - Type safety con TypeScript estricto
18
+ * - Accesibilidad con ARIA labels y manejo de formulario semántico
19
+ * - Validación de email básica
20
+ *
21
+ * @see docs/colors.md - Sistema de colores
22
+ * @see docs/typography.md - Sistema tipográfico
23
+ * @see docs/spacing.md - Sistema de espaciado
24
+ * @see docs/shadows.md - Sistema de sombras
25
+ *
26
+ * @example
27
+ * ```tsx
28
+ * <LoginView
29
+ * onSubmit={(email, password) => console.log('Login', email, password)}
30
+ * onForgotPassword={() => console.log('Forgot password')}
31
+ * onSignUp={() => console.log('Sign up')}
32
+ * />
33
+ * ```
34
+ */
35
+ export declare const LoginView: React.FC<LoginViewProps>;
36
+ //# sourceMappingURL=LoginView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoginView.d.ts","sourceRoot":"","sources":["../../../src/components/LoginView/LoginView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAoY9C,CAAC"}