siesa-ui-kit 1.0.5 → 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 (462) 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/{src/components/Button/index.ts → dist/components/Button/index.d.ts} +4 -3
  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/{src/components/Dropdown/index.ts → dist/components/Dropdown/index.d.ts} +4 -8
  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/{src/components/Input/index.ts → dist/components/Input/index.d.ts} +3 -2
  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/{src/components/LoginView/index.ts → dist/components/LoginView/index.d.ts} +4 -3
  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/{src/components/NavigationBar/index.ts → dist/components/NavigationBar/index.d.ts} +3 -2
  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/{src/components/NavigationRail/index.ts → dist/components/NavigationRail/index.d.ts} +3 -2
  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/{src/components/Notification/index.ts → dist/components/Notification/index.d.ts} +3 -3
  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/{src/components/POSConvention/POSConvention.types.ts → dist/components/POSConvention/POSConvention.types.d.ts} +37 -38
  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/{src/components/POSConvention/index.ts → dist/components/POSConvention/index.d.ts} +4 -3
  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/{src/components/POSNumberButton/index.ts → dist/components/POSNumberButton/index.d.ts} +3 -3
  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/{src/components/POSProductButton/index.ts → dist/components/POSProductButton/index.d.ts} +3 -2
  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/{src/components/POSProductCard/index.ts → dist/components/POSProductCard/index.d.ts} +3 -2
  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/{src/components/POSProductSidebarItems/index.ts → dist/components/POSProductSidebarItems/index.d.ts} +4 -3
  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/{src/components/Pagination/index.ts → dist/components/Pagination/index.d.ts} +4 -3
  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/{src/components/Select/index.ts → dist/components/Select/index.d.ts} +4 -3
  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/{src/components/SignUpView/index.ts → dist/components/SignUpView/index.d.ts} +4 -3
  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/{src/context/index.ts → dist/context/index.d.ts} +2 -1
  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/{src/views/RecoverPasswordView/index.ts → dist/views/RecoverPasswordView/index.d.ts} +3 -2
  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 -83
  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/claude/agents/siesa-ui-kit-specialist.md +0 -2401
  289. package/claude/prompts/component-template.md +0 -121
  290. package/claude/settings.local.json +0 -61
  291. package/docs/border-radius.md +0 -1261
  292. package/docs/colors.md +0 -832
  293. package/docs/dark-mode-guide.md +0 -1426
  294. package/docs/filters.md +0 -1243
  295. package/docs/icons.md +0 -1283
  296. package/docs/shadows.md +0 -1377
  297. package/docs/spacing.md +0 -1684
  298. package/docs/typography.md +0 -1268
  299. package/postcss.config.cjs +0 -6
  300. package/public/,Business Logo.png +0 -0
  301. package/public/.Siesa Logo.png +0 -0
  302. package/public/bg_siesa.png +0 -0
  303. package/public/siesa_logo_mobile.png +0 -0
  304. package/public/vite.svg +0 -1
  305. package/src/App.css +0 -42
  306. package/src/App.tsx +0 -8
  307. package/src/ButtonTest.tsx +0 -147
  308. package/src/assets/fonts/README.md +0 -261
  309. package/src/assets/fonts/SiesaBT/SiesaBT-Bold.otf +0 -0
  310. package/src/assets/fonts/SiesaBT/SiesaBT-Light.otf +0 -0
  311. package/src/assets/fonts/SiesaBT/SiesaBT-Regular.otf +0 -0
  312. package/src/assets/react.svg +0 -1
  313. package/src/components/Alert/Alert.stories.tsx +0 -332
  314. package/src/components/Alert/Alert.tsx +0 -106
  315. package/src/components/Alert/Alert.types.ts +0 -54
  316. package/src/components/Avatar/Avatar.stories.tsx +0 -494
  317. package/src/components/Avatar/Avatar.tsx +0 -143
  318. package/src/components/Avatar/Avatar.types.ts +0 -53
  319. package/src/components/Badge/Badge.stories.tsx +0 -339
  320. package/src/components/Badge/Badge.tsx +0 -278
  321. package/src/components/Badge/Badge.types.ts +0 -58
  322. package/src/components/Button/Button.stories.tsx +0 -950
  323. package/src/components/Button/Button.tsx +0 -337
  324. package/src/components/Button/Button.types.ts +0 -180
  325. package/src/components/Button/icons.tsx +0 -87
  326. package/src/components/Checkbox/Checkbox.stories.tsx +0 -453
  327. package/src/components/Checkbox/Checkbox.tsx +0 -208
  328. package/src/components/Checkbox/Checkbox.types.ts +0 -61
  329. package/src/components/DescriptionList/DescriptionList.stories.tsx +0 -250
  330. package/src/components/DescriptionList/DescriptionList.tsx +0 -96
  331. package/src/components/DescriptionList/DescriptionList.types.ts +0 -29
  332. package/src/components/Divider/Divider.stories.tsx +0 -263
  333. package/src/components/Divider/Divider.tsx +0 -80
  334. package/src/components/Divider/Divider.types.ts +0 -24
  335. package/src/components/Dropdown/Dropdown.stories.tsx +0 -552
  336. package/src/components/Dropdown/Dropdown.tsx +0 -422
  337. package/src/components/Dropdown/Dropdown.types.ts +0 -146
  338. package/src/components/Dropdown/README.md +0 -266
  339. package/src/components/Dropdown/icons.tsx +0 -72
  340. package/src/components/Input/Input.stories.tsx +0 -583
  341. package/src/components/Input/Input.tsx +0 -204
  342. package/src/components/Input/Input.types.ts +0 -80
  343. package/src/components/Input/icons.tsx +0 -145
  344. package/src/components/LoginView/LoginView.stories.tsx +0 -148
  345. package/src/components/LoginView/LoginView.tsx +0 -426
  346. package/src/components/LoginView/LoginView.types.ts +0 -52
  347. package/src/components/LoginView/README.md +0 -396
  348. package/src/components/LoginView/icons.tsx +0 -85
  349. package/src/components/Navbar/Navbar.stories.tsx +0 -810
  350. package/src/components/Navbar/Navbar.tsx +0 -755
  351. package/src/components/Navbar/Navbar.types.ts +0 -219
  352. package/src/components/Navbar/README.md +0 -279
  353. package/src/components/Navbar/icons.tsx +0 -102
  354. package/src/components/Navbar/index.ts +0 -8
  355. package/src/components/NavigationBar/NavigationBar.stories.tsx +0 -406
  356. package/src/components/NavigationBar/NavigationBar.tsx +0 -246
  357. package/src/components/NavigationBar/NavigationBar.types.ts +0 -74
  358. package/src/components/NavigationBar/README.md +0 -469
  359. package/src/components/NavigationRail/NavigationRail.stories.tsx +0 -417
  360. package/src/components/NavigationRail/NavigationRail.tsx +0 -418
  361. package/src/components/NavigationRail/NavigationRail.types.ts +0 -109
  362. package/src/components/NavigationRail/README.md +0 -224
  363. package/src/components/Notification/Notification.stories.tsx +0 -513
  364. package/src/components/Notification/Notification.tsx +0 -145
  365. package/src/components/Notification/Notification.types.ts +0 -142
  366. package/src/components/Notification/README.md +0 -409
  367. package/src/components/POSConvention/POSConvention.stories.tsx +0 -235
  368. package/src/components/POSConvention/POSConvention.tsx +0 -129
  369. package/src/components/POSConvention/README.md +0 -123
  370. package/src/components/POSConvention/icons.tsx +0 -45
  371. package/src/components/POSLocationButton/POSLocationButton.stories.tsx +0 -531
  372. package/src/components/POSLocationButton/POSLocationButton.tsx +0 -247
  373. package/src/components/POSLocationButton/POSLocationButton.types.ts +0 -87
  374. package/src/components/POSLocationButton/README.md +0 -253
  375. package/src/components/POSLocationButton/icons.tsx +0 -120
  376. package/src/components/POSLocationButton/index.ts +0 -14
  377. package/src/components/POSNumberButton/POSNumberButton.stories.tsx +0 -415
  378. package/src/components/POSNumberButton/POSNumberButton.tsx +0 -179
  379. package/src/components/POSNumberButton/POSNumberButton.types.ts +0 -51
  380. package/src/components/POSNumberButton/README.md +0 -321
  381. package/src/components/POSProductButton/POSProductButton.stories.tsx +0 -318
  382. package/src/components/POSProductButton/POSProductButton.tsx +0 -152
  383. package/src/components/POSProductButton/POSProductButton.types.ts +0 -46
  384. package/src/components/POSProductButton/README.md +0 -269
  385. package/src/components/POSProductCard/POSProductCard.stories.tsx +0 -642
  386. package/src/components/POSProductCard/POSProductCard.tsx +0 -208
  387. package/src/components/POSProductCard/POSProductCard.types.ts +0 -76
  388. package/src/components/POSProductCard/README.md +0 -179
  389. package/src/components/POSProductCard/icons.tsx +0 -26
  390. package/src/components/POSProductSidebarItems/POSProductSidebarItems.stories.tsx +0 -753
  391. package/src/components/POSProductSidebarItems/POSProductSidebarItems.tsx +0 -332
  392. package/src/components/POSProductSidebarItems/POSProductSidebarItems.types.ts +0 -119
  393. package/src/components/POSProductSidebarItems/README.md +0 -198
  394. package/src/components/POSProductSidebarItems/icons.tsx +0 -21
  395. package/src/components/POSTable/POSTable.stories.tsx +0 -737
  396. package/src/components/POSTable/POSTable.tsx +0 -401
  397. package/src/components/POSTable/POSTable.types.ts +0 -83
  398. package/src/components/POSTable/README.md +0 -286
  399. package/src/components/POSTable/index.ts +0 -7
  400. package/src/components/Pagination/Pagination.stories.tsx +0 -555
  401. package/src/components/Pagination/Pagination.tsx +0 -286
  402. package/src/components/Pagination/Pagination.types.ts +0 -93
  403. package/src/components/Pagination/README.md +0 -298
  404. package/src/components/Pagination/icons.tsx +0 -47
  405. package/src/components/Quantity/Quantity.stories.tsx +0 -457
  406. package/src/components/Quantity/Quantity.tsx +0 -289
  407. package/src/components/Quantity/Quantity.types.ts +0 -70
  408. package/src/components/Radio/Radio.stories.tsx +0 -523
  409. package/src/components/Radio/Radio.tsx +0 -170
  410. package/src/components/Radio/Radio.types.ts +0 -122
  411. package/src/components/Select/README.md +0 -299
  412. package/src/components/Select/Select.stories.tsx +0 -673
  413. package/src/components/Select/Select.tsx +0 -454
  414. package/src/components/Select/Select.types.ts +0 -148
  415. package/src/components/Select/icons.tsx +0 -50
  416. package/src/components/SignUpView/SignUpView.stories.tsx +0 -129
  417. package/src/components/SignUpView/SignUpView.tsx +0 -503
  418. package/src/components/SignUpView/SignUpView.types.ts +0 -58
  419. package/src/components/SignUpView/icons.tsx +0 -71
  420. package/src/components/Switch/README.md +0 -112
  421. package/src/components/Switch/Switch.stories.tsx +0 -550
  422. package/src/components/Switch/Switch.tsx +0 -246
  423. package/src/components/Switch/Switch.types.ts +0 -67
  424. package/src/components/Table/README.md +0 -369
  425. package/src/components/Table/Table.stories.tsx +0 -805
  426. package/src/components/Table/Table.tsx +0 -688
  427. package/src/components/Table/Table.types.ts +0 -204
  428. package/src/components/Table/index.ts +0 -9
  429. package/src/components/Tabs/README.md +0 -201
  430. package/src/components/Tabs/Tabs.stories.tsx +0 -580
  431. package/src/components/Tabs/Tabs.tsx +0 -356
  432. package/src/components/Tabs/Tabs.types.ts +0 -127
  433. package/src/components/Tabs/icons.tsx +0 -129
  434. package/src/components/Tabs/index.ts +0 -11
  435. package/src/components/Textarea/Textarea.stories.tsx +0 -535
  436. package/src/components/Textarea/Textarea.tsx +0 -188
  437. package/src/components/Textarea/Textarea.types.ts +0 -54
  438. package/src/context/ThemeContext.tsx +0 -99
  439. package/src/index.css +0 -29
  440. package/src/index.ts +0 -39
  441. package/src/main.tsx +0 -10
  442. package/src/views/ProductsView/ProductsView.stories.tsx +0 -344
  443. package/src/views/ProductsView/ProductsView.tsx +0 -480
  444. package/src/views/ProductsView/ProductsView.types.ts +0 -238
  445. package/src/views/ProductsView/README.md +0 -312
  446. package/src/views/ProductsView/icons.tsx +0 -38
  447. package/src/views/ProductsView/index.ts +0 -8
  448. package/src/views/RecoverPasswordView/README.md +0 -269
  449. package/src/views/RecoverPasswordView/RecoverPasswordView.stories.tsx +0 -131
  450. package/src/views/RecoverPasswordView/RecoverPasswordView.tsx +0 -376
  451. package/src/views/RecoverPasswordView/RecoverPasswordView.types.ts +0 -56
  452. package/src/views/RecoverPasswordView/icons.tsx +0 -17
  453. package/src/views/TableLayoutView/README.md +0 -268
  454. package/src/views/TableLayoutView/TableLayoutView.stories.tsx +0 -235
  455. package/src/views/TableLayoutView/TableLayoutView.tsx +0 -461
  456. package/src/views/TableLayoutView/TableLayoutView.types.ts +0 -209
  457. package/src/views/TableLayoutView/icons.tsx +0 -113
  458. package/src/views/TableLayoutView/index.ts +0 -6
  459. package/storybook/main.ts +0 -20
  460. package/storybook/preview.tsx +0 -84
  461. package/storybook/vitest.setup.ts +0 -7
  462. package/tailwind.config.js +0 -128
@@ -0,0 +1,1273 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),y=require("react"),q=({type:t="default",size:s="base",iconOnly:n=!1,leftIcon:r,rightIcon:a,children:o,disabled:l=!1,className:c="",onClick:d,htmlType:p="button",fullWidth:i=!1,ariaLabel:b,badge:x=!1,badgeCount:g,badgeColor:m="red",...v})=>{const u={xs:n?"h-6 w-6 p-1":"h-6 py-1 px-2 gap-2",sm:n?"h-7 w-7 p-1.5":"h-7 py-1 px-2 gap-2",base:n?"h-8 w-8 p-2":"h-8 py-1.5 px-2.5 gap-2",l:n?"h-9 w-9 p-2.5":"h-9 py-2 px-3 gap-3",xl:n?"h-10 w-10 p-3":"h-10 py-2 px-4 gap-3"},h={xs:"w-4 h-4",sm:"w-4 h-4",base:"w-4 h-4",l:"w-4 h-4",xl:"w-4 h-4"},w={xs:"text-xs",sm:"text-sm",base:"text-sm",l:"text-sm",xl:"text-sm"},f={default:`
2
+ bg-primary-custom-600
3
+ text-primary-inverse-content
4
+ border
5
+ border-primary-inverse-border
6
+ shadow-button-inset
7
+ hover:bg-primary-custom-500
8
+ active:scale-95
9
+ transition-all
10
+ duration-150
11
+ dark:bg-dark-bg-inverse
12
+ dark:text-dark-content-inverse
13
+ dark:border-dark-border-inverse
14
+ dark:hover:bg-dark-bg-inverse/90
15
+ `,outline:`
16
+ bg-transparent
17
+ text-primary-custom-600
18
+ border
19
+ border-primary-custom-300
20
+ shadow-xs
21
+ hover:bg-primary-custom-100
22
+ active:scale-95
23
+ transition-all
24
+ duration-150
25
+ dark:text-dark-content-custom
26
+ dark:border-dark-border-custom
27
+ dark:hover:bg-dark-bg-custom/20
28
+ `,"outline-solid":`
29
+ bg-transparent
30
+ text-primary-custom-600
31
+ border
32
+ border-primary-custom-300
33
+ shadow-xs
34
+ hover:bg-primary-custom-100
35
+ active:scale-95
36
+ transition-all
37
+ duration-150
38
+ dark:text-dark-content-custom
39
+ dark:border-dark-border-custom
40
+ dark:hover:bg-dark-bg-custom/20
41
+ `,plain:`
42
+ bg-transparent
43
+ text-primary-custom-600
44
+ border
45
+ border-transparent
46
+ hover:bg-hover-overlay
47
+ active:scale-95
48
+ transition-all
49
+ duration-150
50
+ dark:text-dark-content-custom
51
+ dark:hover:bg-hover-overlay-dark
52
+ `},k=`
53
+ inline-flex
54
+ items-center
55
+ justify-center
56
+ rounded-md
57
+ font-bold
58
+ whitespace-nowrap
59
+ focus:outline-hidden
60
+ focus:ring-4
61
+ focus:ring-primary-custom-400
62
+ focus:ring-offset-2
63
+ focus:ring-offset-primary-custom-100
64
+ dark:focus:ring-dark-border-custom
65
+ dark:focus:ring-offset-dark-bg-primary
66
+ disabled:opacity-50
67
+ disabled:cursor-not-allowed
68
+ disabled:pointer-events-none
69
+ `,j=i?"w-full":"",C=[k,u[s],f[t],j,c].join(" ").replace(/\s+/g," ").trim(),B=M=>M?e.jsx("span",{className:`inline-flex items-center justify-center ${h[s]}`,children:M}):null,R=()=>n?B(r):e.jsxs(e.Fragment,{children:[r&&B(r),o&&e.jsx("span",{className:w[s],children:o}),a&&B(a)]}),L={zinc:{bg:"bg-zinc-600",text:"text-white"},red:{bg:"bg-red-700",text:"text-white"},orange:{bg:"bg-orange-700",text:"text-white"},amber:{bg:"bg-amber-700",text:"text-white"},yellow:{bg:"bg-yellow-700",text:"text-white"},lime:{bg:"bg-lime-700",text:"text-white"},green:{bg:"bg-green-700",text:"text-white"},emerald:{bg:"bg-emerald-700",text:"text-white"},teal:{bg:"bg-teal-700",text:"text-white"},cyan:{bg:"bg-cyan-700",text:"text-white"},sky:{bg:"bg-sky-700",text:"text-white"},blue:{bg:"bg-blue-700",text:"text-white"},indigo:{bg:"bg-indigo-700",text:"text-white"},violet:{bg:"bg-violet-700",text:"text-white"},purple:{bg:"bg-purple-700",text:"text-white"},fuchsia:{bg:"bg-fuchsia-700",text:"text-white"},pink:{bg:"bg-pink-700",text:"text-white"},rose:{bg:"bg-rose-700",text:"text-white"},primary:{bg:"bg-primary-custom-600",text:"text-white"},secondary:{bg:"bg-zinc-600",text:"text-white"},tertiary:{bg:"bg-zinc-600",text:"text-white"}},I=L[m]||L.red,z=()=>!x&&g===void 0?null:g!==void 0?e.jsx("span",{className:`
70
+ absolute
71
+ -top-1
72
+ -right-1
73
+ flex
74
+ items-center
75
+ justify-center
76
+ min-w-[16px]
77
+ h-4
78
+ px-1
79
+ rounded-full
80
+ text-[10px]
81
+ font-bold
82
+ leading-none
83
+ ${I.bg}
84
+ ${I.text}
85
+ pointer-events-none
86
+ `.trim().replace(/\s+/g," "),"aria-label":`${g} notificaciones`,children:g>99?"99+":g}):e.jsx("span",{className:`
87
+ absolute
88
+ -top-1
89
+ -right-1
90
+ w-2
91
+ h-2
92
+ rounded-full
93
+ ${I.bg}
94
+ pointer-events-none
95
+ `.trim().replace(/\s+/g," "),"aria-label":"Notificación"});return e.jsxs("button",{type:p,className:`${C} ${x||g!==void 0?"relative":""}`,disabled:l,onClick:d,"aria-label":b,...v,children:[R(),z()]})},Y=y.forwardRef(({label:t,labelSecondary:s,helperText:n,error:r=!1,errorMessage:a,leftIcon:o,rightIcon:l,fullWidth:c=!1,className:d="",disabled:p=!1,id:i,...b},x)=>{const g=i||`input-${Math.random().toString(36).substr(2,9)}`,m=`
96
+ w-full
97
+ px-3
98
+ py-1.5
99
+ text-sm
100
+ leading-6
101
+ font-normal
102
+ text-content-primary
103
+ bg-bg-primary
104
+ border
105
+ border-border-primary
106
+ rounded-md
107
+ outline-hidden
108
+ transition-all
109
+ duration-150
110
+ placeholder:text-content-tertiary
111
+ dark:bg-dark-bg-primary
112
+ dark:border-dark-border-primary
113
+ dark:text-dark-content-primary
114
+ dark:placeholder:text-dark-content-tertiary
115
+ `,v=p?`
116
+ opacity-50
117
+ cursor-not-allowed
118
+ bg-bg-secondary
119
+ dark:bg-dark-bg-secondary
120
+ `:`
121
+ hover:border-primary-custom-600
122
+ focus:border-primary-custom-600
123
+ focus:ring-2
124
+ focus:ring-primary-custom-400
125
+ focus:ring-offset-2
126
+ dark:hover:border-dark-border-custom
127
+ dark:focus:border-dark-border-custom
128
+ dark:focus:ring-dark-border-custom
129
+ dark:focus:ring-offset-dark-bg-primary
130
+ `,u=r?`
131
+ border-error-border!
132
+ focus:ring-error-border/30!
133
+ focus:ring-offset-2!
134
+ dark:border-error-border!
135
+ dark:focus:ring-error-border/30!
136
+ dark:focus:ring-offset-dark-bg-primary!
137
+ `:"",h=c?"w-full":"w-[265px]",w=f=>{if(!f)return null;const k=f.props.className||"";return y.cloneElement(f,{className:`w-4 h-4 text-content-tertiary dark:text-dark-content-tertiary ${k}`})};return e.jsxs("div",{className:`flex flex-col gap-2 ${h} ${d}`,children:[t&&e.jsxs("label",{htmlFor:g,className:"flex items-center w-full font-bold text-sm leading-5 text-content-primary dark:text-dark-content-primary",children:[e.jsx("span",{className:"flex-1",children:t}),s&&e.jsx("span",{className:"text-xs leading-4 text-primary-custom-600 dark:text-primary-custom-600",children:s})]}),e.jsxs("div",{className:"relative flex items-center",children:[o&&e.jsx("div",{className:"absolute left-3 pointer-events-none",children:w(o)}),e.jsx("input",{ref:x,id:g,disabled:p,className:`
138
+ ${m}
139
+ ${v}
140
+ ${u}
141
+ ${o?"pl-9":""}
142
+ ${l?"pr-9":""}
143
+ `.trim().replace(/\s+/g," "),...b}),l&&e.jsx("div",{className:"absolute right-3 pointer-events-none",children:w(l)})]}),(n||a)&&e.jsx("p",{className:`
144
+ text-xs
145
+ leading-5
146
+ ${r?"text-error-content dark:text-error-content":"text-content-tertiary dark:text-dark-content-tertiary"}
147
+ `.trim().replace(/\s+/g," "),children:r&&a?a:n})]})});Y.displayName="Input";const ee=y.forwardRef(({label:t,description:s,helperText:n,error:r=!1,errorMessage:a,fullWidth:o=!1,resize:l="vertical",className:c="",disabled:d=!1,id:p,rows:i=4,...b},x)=>{const g=p||`textarea-${Math.random().toString(36).substr(2,9)}`,m=`
148
+ w-full
149
+ px-3
150
+ pr-1.5
151
+ py-1.5
152
+ text-base
153
+ leading-6
154
+ font-normal
155
+ bg-bg-primary
156
+ border
157
+ border-border-primary
158
+ rounded-lg
159
+ outline-hidden
160
+ transition-all
161
+ duration-150
162
+ placeholder:text-content-tertiary
163
+ dark:bg-dark-bg-primary
164
+ dark:border-dark-border-primary
165
+ dark:text-dark-content-primary
166
+ dark:placeholder:text-dark-content-tertiary
167
+ `,v=d?`
168
+ opacity-50
169
+ cursor-not-allowed
170
+ bg-bg-secondary
171
+ dark:bg-dark-bg-secondary
172
+ `:`
173
+ hover:border-zinc-400
174
+ focus:border-2
175
+ focus:border-primary-custom-600
176
+ dark:hover:border-zinc-500
177
+ dark:focus:border-2
178
+ dark:focus:border-dark-border-custom
179
+ `,u=r?`
180
+ border-error-border!
181
+ focus:border-2!
182
+ focus:border-error-border!
183
+ dark:border-error-border!
184
+ dark:focus:border-2!
185
+ dark:focus:border-error-border!
186
+ `:"",h=l==="none"?"resize-none":l==="vertical"?"resize-y":l==="horizontal"?"resize-x":"resize",w=o?"w-full":"w-[312px]";return e.jsxs("div",{className:`flex flex-col gap-2 ${w} ${c}`,children:[(t||s)&&e.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[t&&e.jsx("label",{htmlFor:g,className:"font-bold text-sm leading-5 text-content-primary dark:text-dark-content-primary",children:t}),s&&e.jsx("p",{className:"text-sm leading-5 text-content-secondary dark:text-dark-content-secondary",children:s})]}),e.jsx("textarea",{ref:x,id:g,disabled:d,rows:i,className:`
187
+ ${m}
188
+ ${v}
189
+ ${u}
190
+ ${h}
191
+ `.trim().replace(/\s+/g," "),...b}),(n||a)&&e.jsx("p",{className:`
192
+ text-sm
193
+ leading-5
194
+ text-content-tertiary
195
+ dark:text-dark-content-tertiary
196
+ `.trim().replace(/\s+/g," "),children:r&&a?a:n})]})});ee.displayName="Textarea";const re=y.forwardRef(({label:t,description:s,checked:n=!1,indeterminate:r=!1,disabled:a=!1,className:o="",id:l,onChange:c,...d},p)=>{const i=y.useRef(null),b=p||i,x=l||`checkbox-${Math.random().toString(36).substr(2,9)}`;y.useEffect(()=>{b.current&&(b.current.indeterminate=r)},[r,b]);const u=[`
197
+ w-4
198
+ h-4
199
+ rounded
200
+ border
201
+ border-border-primary
202
+ bg-bg-primary
203
+ transition-all
204
+ duration-150
205
+ flex
206
+ items-center
207
+ justify-center
208
+ dark:bg-dark-bg-primary
209
+ dark:border-dark-border-primary
210
+ `,a?`
211
+ opacity-50
212
+ cursor-not-allowed
213
+ `:n||r?`
214
+ peer-hover:border-[#50a5f7]
215
+ peer-focus:ring-2
216
+ peer-focus:ring-primary-custom-400/20
217
+ peer-focus:border-primary-custom-600
218
+ dark:peer-hover:border-[#50a5f7]
219
+ dark:peer-focus:border-dark-border-custom
220
+ dark:peer-focus:ring-dark-border-custom/20
221
+ `:`
222
+ peer-hover:border-[#b6b6b9]
223
+ peer-focus:ring-2
224
+ peer-focus:ring-primary-custom-400/20
225
+ peer-focus:border-primary-custom-600
226
+ dark:peer-hover:border-[#b6b6b9]
227
+ dark:peer-focus:border-dark-border-custom
228
+ dark:peer-focus:ring-dark-border-custom/20
229
+ `,n||r?`
230
+ bg-primary-custom-600!
231
+ border-primary-custom-500!
232
+ shadow-button-inset
233
+ dark:bg-dark-bg-inverse!
234
+ dark:border-dark-bg-inverse!
235
+ `:"",a?"cursor-not-allowed":"cursor-pointer"].join(" ").replace(/\s+/g," ").trim();return e.jsxs("div",{className:`inline-flex gap-3 items-start ${o}`,children:[e.jsxs("div",{className:"flex items-center justify-center h-5 w-4 shrink-0",children:[e.jsx("input",{ref:b,type:"checkbox",id:x,checked:n,disabled:a,onChange:c,className:"peer sr-only",...d}),e.jsxs("label",{htmlFor:x,className:u,children:[n&&!r&&e.jsx("svg",{className:"w-3 h-3 text-primary-inverse-content pointer-events-none",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),r&&e.jsx("svg",{className:"w-3 h-3 text-primary-inverse-content pointer-events-none",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2 6H10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})]})]}),(t||s)&&e.jsxs("label",{htmlFor:x,className:`flex-1 flex flex-col gap-1 text-sm leading-5 ${a?"cursor-not-allowed opacity-50":"cursor-pointer"}`,children:[t&&e.jsx("span",{className:"font-bold text-content-primary dark:text-dark-content-primary",children:t}),s&&e.jsx("span",{className:"font-normal text-content-secondary dark:text-content-secondary",children:s})]})]})});re.displayName="Checkbox";const te=y.forwardRef(({label:t,description:s,checked:n=!1,disabled:r=!1,className:a="",id:o,onChange:l,value:c,name:d,...p},i)=>{const b=o||`radio-${Math.random().toString(36).substr(2,9)}`,x=`
236
+ w-4
237
+ h-4
238
+ rounded-full
239
+ border
240
+ border-border-primary
241
+ bg-bg-primary
242
+ transition-all
243
+ duration-150
244
+ flex
245
+ items-center
246
+ justify-center
247
+ dark:bg-dark-bg-primary
248
+ dark:border-dark-border-primary
249
+ `,g=r?`
250
+ opacity-50
251
+ cursor-not-allowed
252
+ `:`
253
+ peer-hover:border-primary-custom-600
254
+ peer-focus:ring-2
255
+ peer-focus:ring-primary-custom-400
256
+ peer-focus:border-primary-custom-600
257
+ dark:peer-hover:border-dark-border-custom
258
+ dark:peer-focus:ring-dark-border-custom
259
+ dark:peer-focus:border-dark-border-custom
260
+ `,m=n?`
261
+ bg-primary-custom-600!
262
+ border-primary-inverse-border!
263
+ shadow-button-inset
264
+ dark:bg-dark-bg-inverse!
265
+ dark:border-dark-bg-inverse!
266
+ `:"";return e.jsxs("div",{className:`flex gap-3 items-start ${a}`,children:[e.jsxs("div",{className:"flex items-center justify-center h-5 w-4 shrink-0",children:[e.jsx("input",{ref:i,type:"radio",id:b,checked:n,disabled:r,onChange:l,value:c,name:d,className:"peer sr-only",...p}),e.jsx("label",{htmlFor:b,className:`
267
+ ${x}
268
+ ${g}
269
+ ${m}
270
+ ${r?"cursor-not-allowed":"cursor-pointer"}
271
+ `.trim().replace(/\s+/g," "),children:n&&e.jsx("div",{className:"w-1.5 h-1.5 bg-white rounded-full dark:bg-dark-content-inverse"})})]}),(t||s)&&e.jsxs("label",{htmlFor:b,className:`flex-1 flex flex-col gap-1 text-sm leading-5 ${r?"cursor-not-allowed opacity-50":"cursor-pointer"}`,children:[t&&e.jsx("span",{className:"font-bold text-content-primary dark:text-dark-content-primary",children:t}),s&&e.jsx("span",{className:"font-normal text-content-secondary dark:text-content-secondary",children:s})]})]})});te.displayName="Radio";const se=y.forwardRef(({label:t,description:s,labelPosition:n="leading",checked:r=!1,disabled:a=!1,className:o="",id:l,onChange:c,ariaLabel:d,...p},i)=>{const b=l||`switch-${Math.random().toString(36).substr(2,9)}`,x=`
272
+ w-8
273
+ h-5
274
+ rounded-xl
275
+ border
276
+ overflow-hidden
277
+ relative
278
+ transition-all
279
+ duration-200
280
+ `,g=()=>a?r?`
281
+ bg-primary-custom-600
282
+ border-primary-inverse-border
283
+ opacity-50
284
+ cursor-not-allowed
285
+ dark:bg-primary-custom-600
286
+ dark:border-primary-inverse-border
287
+ `:`
288
+ bg-[#fafafa]
289
+ border-border-primary
290
+ opacity-50
291
+ cursor-not-allowed
292
+ dark:bg-dark-bg-primary
293
+ dark:border-dark-border-primary
294
+ `:r?`
295
+ bg-primary-custom-600
296
+ border-primary-inverse-border
297
+ cursor-pointer
298
+ peer-hover:border-[#307cc5]
299
+ peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
300
+ dark:bg-primary-custom-600
301
+ dark:border-primary-inverse-border
302
+ dark:peer-hover:border-[#307cc5]
303
+ dark:peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
304
+ `:`
305
+ bg-[#fafafa]
306
+ border-border-primary
307
+ cursor-pointer
308
+ peer-hover:border-[#b6b6b9]
309
+ peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
310
+ dark:bg-dark-bg-primary
311
+ dark:border-dark-border-primary
312
+ dark:peer-hover:border-[#b6b6b9]
313
+ dark:peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
314
+ `,m=()=>{const f=`
315
+ absolute
316
+ w-4
317
+ h-4
318
+ bg-white
319
+ rounded-[10px]
320
+ border
321
+ top-1/2
322
+ -translate-y-1/2
323
+ transition-all
324
+ duration-200
325
+ `,k=r?"left-[13px]":"left-px";return a?`${f} ${k} ${r?"border-primary-inverse-border dark:border-primary-inverse-border":"border-border-primary dark:border-dark-border-primary"}`:`${f} ${k} ${r?`
326
+ border-primary-inverse-border
327
+ peer-hover:border-[#307cc5]
328
+ dark:border-primary-inverse-border
329
+ dark:peer-hover:border-[#307cc5]
330
+ `:`
331
+ border-border-primary
332
+ peer-hover:border-[#b6b6b9]
333
+ dark:border-dark-border-primary
334
+ dark:peer-hover:border-[#b6b6b9]
335
+ `}`},v=[x,g()].join(" ").replace(/\s+/g," ").trim(),u=m().replace(/\s+/g," ").trim(),h=t||s?e.jsxs("label",{htmlFor:b,className:`flex-1 flex flex-col gap-1 text-sm leading-5 ${a?"cursor-not-allowed opacity-50":"cursor-pointer"}`,children:[t&&e.jsx("span",{className:"font-bold text-content-primary dark:text-dark-content-primary",children:t}),s&&e.jsx("span",{className:"font-normal text-content-secondary dark:text-content-secondary",children:s})]}):null,w=e.jsxs("div",{className:"flex items-center justify-center shrink-0",children:[e.jsx("input",{ref:i,type:"checkbox",id:b,checked:r,disabled:a,onChange:c,className:"peer sr-only","aria-label":d||t,...p}),e.jsx("label",{htmlFor:b,className:v,"aria-hidden":"true",children:e.jsx("div",{className:u})})]});return e.jsx("div",{className:`flex gap-2 items-center w-[344px] ${o}`,children:n==="leading"?e.jsxs(e.Fragment,{children:[h,w]}):e.jsxs(e.Fragment,{children:[w,h]})})});se.displayName="Switch";const ae=y.forwardRef(({size:t="10",type:s="circular",src:n,alt:r="",initials:a,className:o="",...l},c)=>{const d={4:"w-5 h-5",6:"w-6 h-6",8:"w-8 h-8",10:"w-10 h-10"},p={4:"text-xs",6:"text-xs",8:"text-sm",10:"text-base"},i={circular:"rounded-full",rounded:"rounded-md"},b=`
336
+ relative
337
+ inline-flex
338
+ items-center
339
+ justify-center
340
+ overflow-hidden
341
+ ${d[t]}
342
+ ${i[s]}
343
+ `;return n?e.jsx("div",{ref:c,className:`${b} ${o}`.trim().replace(/\s+/g," "),children:e.jsx("img",{src:n,alt:r,className:"w-full h-full object-cover",...l})}):a?e.jsx("div",{ref:c,className:`
344
+ ${b}
345
+ ${p[t]}
346
+ bg-content-primary
347
+ text-white
348
+ font-normal
349
+ dark:bg-dark-bg-inverse
350
+ dark:text-dark-content-inverse
351
+ ${o}
352
+ `.trim().replace(/\s+/g," "),children:e.jsx("span",{className:"leading-none",children:a})}):e.jsx("div",{ref:c,className:`
353
+ ${b}
354
+ bg-background-secondary
355
+ dark:bg-dark-bg-primary
356
+ ${o}
357
+ `.trim().replace(/\s+/g," ")})});ae.displayName="Avatar";const ne=y.forwardRef(({type:t="default",className:s="",...n},r)=>{const l=["w-full h-px border-0",{default:"bg-border-primary dark:bg-dark-border-primary",soft:"bg-border-secondary dark:bg-gray-700"}[t],s].join(" ").replace(/\s+/g," ").trim();return e.jsx("hr",{ref:r,className:l,...n})});ne.displayName="Divider";const oe=y.forwardRef(({term:t,details:s,className:n="",...r},a)=>{const o=`
358
+ flex
359
+ flex-wrap
360
+ gap-1
361
+ items-start
362
+ py-2.5
363
+ border-b
364
+ border-border-secondary
365
+ dark:border-gray-700
366
+ `,l="flex-1 min-w-[180px]",c=[o,n].join(" ").replace(/\s+/g," ").trim();return e.jsxs("div",{ref:a,className:c,...r,children:[e.jsx("div",{className:l,children:e.jsx("p",{className:"text-sm leading-5 text-content-secondary dark:text-gray-400 font-normal",children:t})}),e.jsx("div",{className:l,children:e.jsx("p",{className:"text-sm leading-5 text-content-primary dark:text-dark-content-primary font-normal",children:s})})]})});oe.displayName="DescriptionList";const ie=y.forwardRef(({title:t,description:s,children:n,actions:r,onCancel:a,onConfirm:o,cancelText:l="Cancelar",confirmText:c="Confirmar",className:d="",...p},i)=>{const b=r||e.jsxs(e.Fragment,{children:[a&&e.jsx(q,{type:"plain",size:"base",onClick:a,children:l}),o&&e.jsx(q,{type:"default",size:"base",onClick:o,children:c})]});return e.jsx("div",{ref:i,className:`
367
+ w-[512px]
368
+ bg-white
369
+ dark:bg-dark-bg-primary
370
+ border
371
+ border-border-primary
372
+ dark:border-dark-border-primary
373
+ rounded-xl
374
+ ${d}
375
+ `.trim().replace(/\s+/g," "),...p,children:e.jsxs("div",{className:"p-6 flex flex-col gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx("p",{className:"text-sm leading-5 font-bold text-content-primary dark:text-dark-content-primary",children:t}),s&&e.jsx("p",{className:"text-sm leading-5 font-normal text-content-tertiary dark:text-content-tertiary",children:s})]}),n&&e.jsx("div",{className:"flex flex-col gap-3",children:n}),e.jsx("div",{className:"flex flex-wrap gap-3 items-center justify-end",children:b})]})})});ie.displayName="Alert";const O=y.forwardRef(({color:t="zinc",leftIcon:s,label:n,count:r,className:a="",...o},l)=>{const d={zinc:{bg:"bg-zinc-100",text:"text-zinc-600",hover:"hover:bg-zinc-200",notificationBg:"bg-zinc-600",notificationText:"text-zinc-100"},red:{bg:"bg-red-100",text:"text-red-700",hover:"hover:bg-red-200",notificationBg:"bg-red-700",notificationText:"text-red-100"},orange:{bg:"bg-orange-100",text:"text-orange-700",hover:"hover:bg-orange-200",notificationBg:"bg-orange-700",notificationText:"text-orange-100"},amber:{bg:"bg-amber-100",text:"text-amber-700",hover:"hover:bg-amber-200",notificationBg:"bg-amber-700",notificationText:"text-amber-100"},yellow:{bg:"bg-yellow-100",text:"text-yellow-700",hover:"hover:bg-yellow-200",notificationBg:"bg-yellow-700",notificationText:"text-yellow-100"},lime:{bg:"bg-lime-100",text:"text-lime-700",hover:"hover:bg-lime-200",notificationBg:"bg-lime-700",notificationText:"text-lime-100"},green:{bg:"bg-green-100",text:"text-green-700",hover:"hover:bg-green-200",notificationBg:"bg-green-700",notificationText:"text-green-100"},emerald:{bg:"bg-emerald-100",text:"text-emerald-700",hover:"hover:bg-emerald-200",notificationBg:"bg-emerald-700",notificationText:"text-emerald-100"},teal:{bg:"bg-teal-100",text:"text-teal-700",hover:"hover:bg-teal-200",notificationBg:"bg-teal-700",notificationText:"text-teal-100"},cyan:{bg:"bg-cyan-100",text:"text-cyan-700",hover:"hover:bg-cyan-200",notificationBg:"bg-cyan-700",notificationText:"text-cyan-100"},sky:{bg:"bg-sky-100",text:"text-sky-700",hover:"hover:bg-sky-200",notificationBg:"bg-sky-700",notificationText:"text-sky-100"},blue:{bg:"bg-blue-100",text:"text-blue-700",hover:"hover:bg-blue-200",notificationBg:"bg-blue-700",notificationText:"text-blue-100"},indigo:{bg:"bg-indigo-100",text:"text-indigo-700",hover:"hover:bg-indigo-200",notificationBg:"bg-indigo-700",notificationText:"text-indigo-100"},violet:{bg:"bg-violet-100",text:"text-violet-700",hover:"hover:bg-violet-200",notificationBg:"bg-violet-700",notificationText:"text-violet-100"},purple:{bg:"bg-purple-100",text:"text-purple-700",hover:"hover:bg-purple-200",notificationBg:"bg-purple-700",notificationText:"text-purple-100"},fuchsia:{bg:"bg-fuchsia-100",text:"text-fuchsia-700",hover:"hover:bg-fuchsia-200",notificationBg:"bg-fuchsia-700",notificationText:"text-fuchsia-100"},pink:{bg:"bg-pink-100",text:"text-pink-700",hover:"hover:bg-pink-200",notificationBg:"bg-pink-700",notificationText:"text-pink-100"},rose:{bg:"bg-rose-100",text:"text-rose-700",hover:"hover:bg-rose-200",notificationBg:"bg-rose-700",notificationText:"text-rose-100"},primary:{bg:"bg-primary-custom-100",text:"text-primary-custom-600",hover:"hover:bg-primary-custom-200",notificationBg:"bg-primary-custom-600",notificationText:"text-primary-custom-100"},secondary:{bg:"bg-zinc-100",text:"text-zinc-600",hover:"hover:bg-zinc-200",notificationBg:"bg-zinc-600",notificationText:"text-zinc-100"},tertiary:{bg:"bg-zinc-100",text:"text-zinc-600",hover:"hover:bg-zinc-200",notificationBg:"bg-zinc-600",notificationText:"text-zinc-100"}}[t],p=b=>{const x=b.props.className||"";return y.cloneElement(b,{className:`w-3 h-3 ${x}`.trim()})},i=["inline-flex","items-center","gap-1","px-1.5","py-1","rounded-md","font-sans",d.bg,d.hover,"transition-colors","duration-200",a].filter(Boolean).join(" ").replace(/\s+/g," ").trim();return e.jsxs("div",{ref:l,className:i,...o,children:[s&&e.jsx("div",{className:`flex items-center justify-center ${d.text}`,children:p(s)}),e.jsx("span",{className:`font-sans text-xs leading-4 ${d.text}`,children:n}),r!==void 0&&e.jsx("div",{className:`
376
+ h-3
377
+ flex
378
+ items-center
379
+ justify-center
380
+ px-0.5
381
+ rounded-xs
382
+ min-w-[12px]
383
+ ${d.notificationBg}
384
+ `.trim().replace(/\s+/g," "),children:e.jsx("span",{className:`font-sans text-xs leading-4 ${d.notificationText}`,children:r})})]})});O.displayName="Badge";const G=y.forwardRef(({value:t,defaultValue:s=0,onChange:n,min:r=0,max:a,label:o,linkText:l,onLinkClick:c,helperText:d,error:p=!1,disabled:i=!1,className:b="",...x},g)=>{const[m,v]=y.useState(s),u=t!==void 0,h=u?t:m;y.useEffect(()=>{u||v(s)},[s,u]);const w=M=>{let T=M;r!==void 0&&T<r&&(T=r),a!==void 0&&T>a&&(T=a),u||v(T),n?.(T)},f=()=>{i||w(h-1)},k=()=>{i||w(h+1)},j=i||r!==void 0&&h<=r,C=i||a!==void 0&&h>=a,B=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3 8H13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),R=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8 3V13M3 8H13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),L=p?"border-error-border dark:border-error-border":"border-border-primary dark:border-dark-border-primary",I=!i&&!p?"hover:border-[#f9f9f9] dark:hover:border-[#f9f9f9]":"",z=!i&&!p?"focus-within:border-2 focus-within:border-[#329cff] dark:focus-within:border-[#329cff]":"";return e.jsxs("div",{ref:g,className:`flex flex-col gap-2 ${b}`.trim(),...x,children:[o&&e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("label",{className:"text-sm leading-5 font-bold text-content-primary dark:text-dark-content-primary",children:o}),l&&e.jsx("button",{type:"button",onClick:c,disabled:i,className:`
385
+ text-xs leading-4
386
+ text-primary-custom-600
387
+ hover:underline
388
+ dark:text-primary-custom-600
389
+ ${i?"opacity-50 cursor-not-allowed":"cursor-pointer"}
390
+ transition-colors
391
+ duration-200
392
+ `.trim().replace(/\s+/g," "),children:l})]}),e.jsxs("div",{className:`
393
+ flex
394
+ items-center
395
+ gap-2
396
+ px-3
397
+ py-1.5
398
+ bg-white
399
+ dark:bg-dark-bg-primary
400
+ border
401
+ ${L}
402
+ ${I}
403
+ ${z}
404
+ rounded-lg
405
+ transition-colors
406
+ duration-200
407
+ ${i?"opacity-50 cursor-not-allowed":""}
408
+ `.trim().replace(/\s+/g," "),children:[e.jsx("button",{type:"button",onClick:f,disabled:j,className:`
409
+ flex
410
+ items-center
411
+ justify-center
412
+ w-4
413
+ h-4
414
+ ${j?"text-content-tertiary dark:text-content-tertiary cursor-not-allowed":"text-content-primary dark:text-dark-content-primary hover:text-content-secondary dark:hover:text-content-secondary cursor-pointer"}
415
+ transition-colors
416
+ duration-200
417
+ `.trim().replace(/\s+/g," "),"aria-label":"Decrementar",children:e.jsx(B,{})}),e.jsx("div",{className:"flex-1 text-center",children:e.jsx("span",{className:`
418
+ text-base leading-6
419
+ ${h===0?"text-content-tertiary dark:text-content-tertiary":"text-content-primary dark:text-dark-content-primary"}
420
+ `.trim().replace(/\s+/g," "),children:h})}),e.jsx("button",{type:"button",onClick:k,disabled:C,className:`
421
+ flex
422
+ items-center
423
+ justify-center
424
+ w-4
425
+ h-4
426
+ ${C?"text-content-tertiary dark:text-content-tertiary cursor-not-allowed":"text-content-primary dark:text-dark-content-primary hover:text-content-secondary dark:hover:text-content-secondary cursor-pointer"}
427
+ transition-colors
428
+ duration-200
429
+ `.trim().replace(/\s+/g," "),"aria-label":"Incrementar",children:e.jsx(R,{})})]}),d&&e.jsx("p",{className:`
430
+ text-sm leading-5
431
+ ${p?"text-error-content dark:text-error-content":"text-content-tertiary dark:text-content-tertiary"}
432
+ `.trim().replace(/\s+/g," "),children:d})]})});G.displayName="Quantity";const he=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"w-4 h-4",children:e.jsx("path",{fillRule:"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),ke=({variant:t="default",children:s,items:n,open:r,onOpenChange:a,disabled:o=!1,className:l="",menuClassName:c="",ariaLabel:d,placeholder:p="Options"})=>{const[i,b]=y.useState(!1),x=y.useRef(null),g=r!==void 0,m=g?r:i,v=()=>{if(o)return;const f=!m;g||b(f),a?.(f)};y.useEffect(()=>{const f=k=>{x.current&&!x.current.contains(k.target)&&(g||b(!1),a?.(!1))};if(m)return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[m,g,a]),y.useEffect(()=>{const f=k=>{k.key==="Escape"&&m&&(g||b(!1),a?.(!1))};if(m)return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[m,g,a]);const u=f=>{f.disabled||f.isDivider||f.isHeading||(f.onClick&&f.onClick({}),g||b(!1),a?.(!1))},h=["inline-flex","items-center","justify-center","rounded-lg","font-bold","text-sm","whitespace-nowrap","transition-all","duration-150",t==="icon-only"?"w-9 h-9":"gap-3 px-3 py-2","bg-bg-primary","text-content-secondary","border","border-border-primary","hover:bg-background-secondary","active:scale-95","dark:bg-dark-bg-primary","dark:text-content-secondary","dark:border-dark-border-primary","dark:hover:bg-dark-bg-primary","focus:outline-hidden","focus:ring-2","focus:ring-primary-custom-400","focus:ring-offset-2","dark:focus:ring-dark-border-custom","dark:focus:ring-offset-dark-bg-primary",o&&"opacity-50",o&&"cursor-not-allowed",o&&"pointer-events-none",l].filter(Boolean).join(" ").replace(/\s+/g," ").trim(),w=["absolute","top-full","left-0","mt-2","min-w-[182px]","rounded-xl","p-1","border","z-50","bg-background-secondary","border-border-primary","dark:bg-dark-bg-primary","dark:border-dark-border-primary","shadow-menu",c].filter(Boolean).join(" ").replace(/\s+/g," ").trim();return e.jsxs("div",{ref:x,className:"relative inline-block",children:[e.jsxs("button",{type:"button",className:h,onClick:v,disabled:o,"aria-label":d||(t==="icon-only"?"Abrir menú":void 0),"aria-haspopup":"true","aria-expanded":m,children:[t==="default"&&e.jsx("span",{children:s||p}),e.jsx(he,{})]}),m&&e.jsx("div",{className:w,children:n.map((f,k)=>f.isDivider?e.jsx(we,{className:f.className},k):f.isHeading?e.jsx(ye,{className:f.className,children:f.children},k):e.jsx(ve,{...f,onClick:()=>u(f)},k))})]})},ve=({children:t,icon:s,description:n,shortcut:r,disabled:a=!1,selected:o=!1,onClick:l,className:c=""})=>{const d=["flex","items-center","gap-3","px-4","py-2","rounded-lg","text-sm","w-full","text-left","transition-colors","duration-150","text-content-primary",!a&&"hover:bg-white",o&&"bg-white","dark:text-dark-content-primary",!a&&"dark:hover:bg-dark-bg-primary",o&&"dark:bg-dark-bg-primary",a&&"opacity-50",a&&"cursor-not-allowed",!a&&"cursor-pointer",c].filter(Boolean).join(" ").replace(/\s+/g," ").trim();return e.jsxs("button",{type:"button",className:d,onClick:l,disabled:a,children:[s&&e.jsx("span",{className:"inline-flex items-center justify-center w-4 h-4 text-content-secondary dark:text-content-secondary",children:s}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-content-primary dark:text-dark-content-primary",children:t}),n&&e.jsx("div",{className:"text-xs text-content-secondary dark:text-content-secondary mt-0.5",children:n})]}),r&&e.jsx("span",{className:"text-xs text-content-secondary dark:text-content-secondary ml-auto whitespace-nowrap",children:r})]})},ye=({children:t,className:s=""})=>{const n=["px-4","py-1","text-xs","font-normal","text-content-tertiary","dark:text-content-tertiary",s].filter(Boolean).join(" ").replace(/\s+/g," ").trim();return e.jsx("div",{className:n,children:t})},we=({className:t=""})=>{const s=["px-4","py-1",t].filter(Boolean).join(" ").replace(/\s+/g," ").trim();return e.jsx("div",{className:s,children:e.jsx("div",{className:"h-px bg-border-primary dark:bg-dark-border-primary"})})},je=({count:t,color:s="red",className:n="",ariaLabel:r})=>{const a={zinc:{bg:"bg-zinc-600",text:"text-white"},red:{bg:"bg-content-extensions-red",text:"text-white"},orange:{bg:"bg-orange-700",text:"text-white"},amber:{bg:"bg-amber-700",text:"text-white"},yellow:{bg:"bg-yellow-700",text:"text-white"},lime:{bg:"bg-lime-700",text:"text-white"},green:{bg:"bg-green-700",text:"text-white"},emerald:{bg:"bg-emerald-700",text:"text-white"},teal:{bg:"bg-teal-700",text:"text-white"},cyan:{bg:"bg-cyan-700",text:"text-white"},sky:{bg:"bg-sky-700",text:"text-white"},blue:{bg:"bg-blue-700",text:"text-white"},indigo:{bg:"bg-indigo-700",text:"text-white"},violet:{bg:"bg-violet-700",text:"text-white"},purple:{bg:"bg-purple-700",text:"text-white"},fuchsia:{bg:"bg-fuchsia-700",text:"text-white"},pink:{bg:"bg-pink-700",text:"text-white"},rose:{bg:"bg-rose-700",text:"text-white"},primary:{bg:"bg-primary-custom-600",text:"text-white"},secondary:{bg:"bg-zinc-600",text:"text-white"},tertiary:{bg:"bg-zinc-600",text:"text-white"}},o=a[s]||a.red,l=r||(t!==void 0&&t>0?`${t} notificaci${t===1?"ón":"ones"}`:"Notificación pendiente");if(t!==void 0&&t>0){const c=t>99?"99+":t.toString();return e.jsx("span",{className:`
433
+ inline-flex
434
+ items-center
435
+ justify-center
436
+ min-w-[16px]
437
+ h-4
438
+ px-1
439
+ rounded-full
440
+ text-[10px]
441
+ font-bold
442
+ leading-none
443
+ ${o.bg}
444
+ ${o.text}
445
+ pointer-events-none
446
+ dark:${o.bg}
447
+ dark:${o.text}
448
+ ${n}
449
+ `.trim().replace(/\s+/g," "),role:"status","aria-label":l,children:c})}return e.jsx("span",{className:`
450
+ inline-block
451
+ w-2
452
+ h-2
453
+ rounded-full
454
+ ${o.bg}
455
+ pointer-events-none
456
+ dark:${o.bg}
457
+ ${n}
458
+ `.trim().replace(/\s+/g," "),role:"status","aria-label":l})},Ce=({className:t=""})=>e.jsx("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{fillRule:"evenodd",d:"M9.78 4.22a.75.75 0 0 1 0 1.06L7.06 8l2.72 2.72a.75.75 0 1 1-1.06 1.06L5.47 8.53a.75.75 0 0 1 0-1.06l3.25-3.25a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})}),Ne=({className:t=""})=>e.jsx("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{fillRule:"evenodd",d:"M6.22 4.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06L8.94 8 6.22 5.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),$e=({currentPage:t=1,totalPages:s,onPageChange:n,backText:r="Atrás",nextText:a="Siguiente",siblingCount:o=1,showBackButton:l=!0,showNextButton:c=!0,className:d="",ariaLabel:p="Paginación"})=>{const i=y.useMemo(()=>{const v=o*2+3+2;if(s<=v)return Array.from({length:s},(C,B)=>B+1);const u=Math.max(t-o,1),h=Math.min(t+o,s),w=u>2,f=h<s-1,k=1,j=s;if(!w&&f){const C=3+2*o;return[...Array.from({length:C},(R,L)=>L+1),"...",s]}if(w&&!f){const C=3+2*o,B=Array.from({length:C},(R,L)=>s-C+L+1);return[k,"...",...B]}if(w&&f){const C=Array.from({length:h-u+1},(B,R)=>u+R);return[k,"...",...C,"...",j]}return[]},[t,s,o]),b=m=>{m>=1&&m<=s&&m!==t&&n?.(m)},x=({page:m,isActive:v=!1,disabled:u=!1,onClick:h,ariaLabel:w})=>{const f=m==="...",B=[`
459
+ inline-flex
460
+ items-center
461
+ justify-center
462
+ gap-3
463
+ px-3
464
+ py-2
465
+ rounded-md
466
+ font-bold
467
+ text-sm
468
+ whitespace-nowrap
469
+ transition-all
470
+ duration-150
471
+ `,f?`
472
+ text-primary-custom-600
473
+ dark:text-primary-custom-600
474
+ cursor-default
475
+ pointer-events-none
476
+ `:v?`
477
+ bg-primary-custom-100
478
+ text-primary-custom-600
479
+ dark:bg-primary-custom-100
480
+ dark:text-primary-custom-600
481
+ `:`
482
+ text-primary-custom-600
483
+ hover:bg-primary-custom-100
484
+ active:scale-95
485
+ dark:text-primary-custom-600
486
+ dark:hover:bg-primary-custom-100
487
+ dark:active:scale-95
488
+ `,u?`
489
+ opacity-50
490
+ cursor-not-allowed
491
+ pointer-events-none
492
+ `:""].join(" ").replace(/\s+/g," ").trim();return e.jsx("button",{type:"button",className:B,onClick:h,disabled:u||f,"aria-label":w,"aria-current":v?"page":void 0,children:m})},g=`
493
+ inline-flex
494
+ items-center
495
+ justify-between
496
+ gap-0
497
+ ${d}
498
+ `.replace(/\s+/g," ").trim();return e.jsxs("nav",{className:g,"aria-label":p,role:"navigation",children:[l&&e.jsxs("button",{type:"button",className:`
499
+ inline-flex
500
+ items-center
501
+ justify-center
502
+ gap-3
503
+ px-3
504
+ py-2
505
+ rounded-md
506
+ font-bold
507
+ text-sm
508
+ text-primary-custom-600
509
+ hover:bg-primary-custom-100
510
+ active:scale-95
511
+ dark:text-primary-custom-600
512
+ dark:hover:bg-primary-custom-100
513
+ dark:active:scale-95
514
+ transition-all
515
+ duration-150
516
+ ${t===1?"opacity-50 cursor-not-allowed pointer-events-none":""}
517
+ `.replace(/\s+/g," ").trim(),onClick:()=>b(t-1),disabled:t===1,"aria-label":`${r} page`,children:[e.jsx(Ce,{className:"w-4 h-4"}),r]}),e.jsx("div",{className:"inline-flex items-center",children:i.map((m,v)=>e.jsx(x,{page:m,isActive:m===t,onClick:()=>typeof m=="number"&&b(m),ariaLabel:typeof m=="number"?`Go to page ${m}`:`Page ${m}`},`${m}-${v}`))}),c&&e.jsxs("button",{type:"button",className:`
518
+ inline-flex
519
+ items-center
520
+ justify-center
521
+ gap-3
522
+ px-3
523
+ py-2
524
+ rounded-md
525
+ font-bold
526
+ text-sm
527
+ text-primary-custom-600
528
+ hover:bg-primary-custom-100
529
+ active:scale-95
530
+ dark:text-primary-custom-600
531
+ dark:hover:bg-primary-custom-100
532
+ dark:active:scale-95
533
+ transition-all
534
+ duration-150
535
+ ${t===s?"opacity-50 cursor-not-allowed pointer-events-none":""}
536
+ `.replace(/\s+/g," ").trim(),onClick:()=>b(t+1),disabled:t===s,"aria-label":`${a} page`,children:[a,e.jsx(Ne,{className:"w-4 h-4"})]})]})},Be=({className:t=""})=>e.jsxs("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:[e.jsx("path",{fillRule:"evenodd",d:"M11.78 9.78a.75.75 0 0 1-1.06 0L8 7.06 5.28 9.78a.75.75 0 0 1-1.06-1.06l3.25-3.25a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06Z",clipRule:"evenodd"}),e.jsx("path",{fillRule:"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})]}),Se=({className:t=""})=>e.jsx("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{fillRule:"evenodd",d:"M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"})}),Le=({options:t=[],value:s,defaultValue:n,placeholder:r="Seleccionar...",disabled:a=!1,error:o=!1,label:l,description:c,showLabel:d=!0,showDescription:p=!0,menuHeader:i,onChange:b,className:x="",triggerClassName:g="",menuClassName:m="",ariaLabel:v,id:u,name:h,required:w=!1,menuPosition:f="bottom",fullWidth:k=!1})=>{const[j,C]=y.useState(!1),[B,R]=y.useState(s!==void 0?s:n),[L,I]=y.useState(-1),z=y.useRef(null),M=y.useRef(null),T=y.useRef(null);y.useEffect(()=>{s!==void 0&&R(s)},[s]),y.useEffect(()=>{const $=D=>{z.current&&!z.current.contains(D.target)&&C(!1)};if(j)return document.addEventListener("mousedown",$),()=>{document.removeEventListener("mousedown",$)}},[j]),y.useEffect(()=>{const $=D=>{if(j)switch(D.key){case"Escape":C(!1),M.current?.focus();break;case"ArrowDown":D.preventDefault(),I(F=>F<t.length-1?F+1:0);break;case"ArrowUp":D.preventDefault(),I(F=>F>0?F-1:t.length-1);break;case"Enter":D.preventDefault(),L>=0&&L<t.length&&_(t[L]);break}};if(j)return document.addEventListener("keydown",$),()=>{document.removeEventListener("keydown",$)}},[j,L,t]);const Z=t.find($=>$.value===B),S=()=>{a||(C(!j),I(-1))},_=$=>{$.disabled||(R($.value),C(!1),b?.($.value),setTimeout(()=>{M.current?.focus()},0))},A=[`
537
+ inline-flex
538
+ items-center
539
+ justify-between
540
+ gap-3
541
+ w-full
542
+ px-3
543
+ py-2
544
+ text-sm
545
+ font-normal
546
+ leading-5
547
+ rounded-lg
548
+ border
549
+ transition-all
550
+ duration-150
551
+ `,k?"w-full":"min-w-[200px]",o?`
552
+ border-error-border
553
+ bg-error-bg
554
+ text-content-primary
555
+ dark:border-error-border
556
+ dark:bg-error-bg
557
+ dark:text-dark-content-primary
558
+ `:`
559
+ bg-bg-primary
560
+ border-border-primary
561
+ text-content-primary
562
+ dark:bg-dark-bg-primary
563
+ dark:border-dark-border-primary
564
+ dark:text-dark-content-primary
565
+ `,!a&&!o?`
566
+ hover:bg-[rgba(255,255,255,1)]
567
+ hover:bg-[linear-gradient(90deg,rgba(0,0,0,0.024)_0%,rgba(0,0,0,0.024)_100%)]
568
+ dark:hover:bg-[rgba(17,45,87,1)]
569
+ dark:hover:bg-[linear-gradient(90deg,rgba(255,255,255,0.1)_0%,rgba(255,255,255,0.1)_100%)]
570
+ `:"",a?"":`
571
+ focus:outline-hidden
572
+ focus:ring-2
573
+ focus:ring-primary-custom-400
574
+ focus:ring-offset-2
575
+ dark:focus:ring-dark-border-custom
576
+ dark:focus:ring-offset-dark-bg-primary
577
+ `,a?`
578
+ opacity-50
579
+ cursor-not-allowed
580
+ `:"",g].join(" ").replace(/\s+/g," ").trim(),de=[`
581
+ absolute
582
+ z-50
583
+ w-full
584
+ min-w-[200px]
585
+ max-h-40
586
+ overflow-y-auto
587
+ p-1
588
+ rounded-md
589
+ border-0
590
+ transition-all
591
+ duration-150
592
+ `,f==="top"?"bottom-full mb-1":"top-full mt-1",`
593
+ bg-background-secondary
594
+ dark:bg-dark-bg-primary
595
+ `,j?"opacity-100 visible":"opacity-0 invisible",m].join(" ").replace(/\s+/g," ").trim(),xe=`
596
+ flex
597
+ items-center
598
+ cursor-pointer
599
+ rounded-md
600
+ transition-all
601
+ duration-150
602
+ pl-2
603
+ pr-2.5
604
+ py-0.5
605
+ gap-0.5
606
+ text-[10px]
607
+ leading-[12px]
608
+ font-bold
609
+ `,be=($,D)=>{const F=$.value===B,K=D===L,ge=F&&!K?"text-content-primary dark:text-dark-content-primary":K||F&&K?"bg-primary-custom-600 text-primary-inverse-content dark:bg-primary-custom-600 dark:text-primary-inverse-content":"text-content-primary dark:text-dark-content-primary",ue=$.disabled?"":"hover:bg-primary-custom-600 hover:text-primary-inverse-content dark:hover:bg-primary-custom-600 dark:hover:text-primary-inverse-content",fe=$.disabled?"opacity-50 cursor-not-allowed":"";return[xe,ge,ue,fe].join(" ").replace(/\s+/g," ").trim()},me=["shrink-0","transition-transform","duration-150",j&&"rotate-180",a?"text-content-tertiary dark:text-content-tertiary":"text-content-secondary dark:text-content-secondary"].filter(Boolean).join(" ").replace(/\s+/g," ").trim(),pe="shrink-0 w-4 h-4";return e.jsxs("div",{className:`relative ${k?"w-full":""} ${x}`,ref:z,children:[d&&l||p&&c?e.jsxs("div",{className:"flex flex-col gap-1 mb-1 w-full",children:[d&&l&&e.jsxs("label",{htmlFor:u,className:"text-sm font-bold leading-5 text-content-primary dark:text-dark-content-primary",children:[l,w&&e.jsx("span",{className:"ml-1 text-error-content",children:"*"})]}),p&&c&&e.jsx("p",{className:"text-sm font-normal leading-5 text-content-tertiary dark:text-content-tertiary",children:c})]}):null,e.jsxs("button",{ref:M,type:"button",className:A,onClick:S,disabled:a,"aria-label":v||l,"aria-haspopup":"listbox","aria-expanded":j,id:u,children:[e.jsx("span",{className:Z?"":"text-content-secondary dark:text-content-secondary",children:Z?Z.label:r}),e.jsx(Be,{className:me})]}),h&&e.jsx("input",{type:"hidden",name:h,value:B!==void 0?String(B):""}),j&&e.jsxs("div",{ref:T,className:de,role:"listbox",children:[i&&e.jsx("div",{className:"flex items-center gap-0.5 px-6 py-0.5 rounded-[5px]",children:e.jsx("span",{className:"text-[10px] font-bold leading-[12px] text-content-tertiary dark:text-content-tertiary",children:i})}),t.length===0&&e.jsx("div",{className:"px-2 py-1.5 text-[10px] leading-[12px] text-content-secondary dark:text-content-secondary",children:"No hay opciones disponibles"}),t.map(($,D)=>e.jsxs("div",{className:be($,D),onClick:()=>_($),onMouseEnter:()=>I(D),role:"option","aria-selected":$.value===B,"aria-disabled":$.disabled,children:[e.jsx("div",{className:"w-4 flex items-center justify-center",children:$.value===B&&e.jsx(Se,{className:pe})}),$.icon&&e.jsx("span",{className:"shrink-0 w-4 h-4",children:$.icon}),e.jsx("span",{className:"flex-1 text-left",children:$.label})]},$.value))]})]})},_e=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"transition-transform",children:e.jsx("path",{d:"M12 10L8 6L4 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Me=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"transition-transform",children:e.jsx("path",{d:"M4 6L8 10L12 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Re=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M14 8H2M2 8L6.5 3.5M2 8L6.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ie=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2 8H14M14 8L9.5 3.5M14 8L9.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Te=({column:t,sortable:s,sorted:n,sortDirection:r,onSort:a})=>{const d=[`
610
+ flex
611
+ items-center
612
+ gap-3
613
+ px-6
614
+ py-2.5
615
+ min-h-[40px]
616
+ border-b
617
+ border-border-primary
618
+ dark:border-dark-border-primary
619
+ transition-colors
620
+ duration-150
621
+ `,s?`
622
+ cursor-pointer
623
+ hover:bg-background-secondary
624
+ dark:hover:bg-dark-bg-primary/50
625
+ select-none
626
+ `:"",{left:"justify-start",center:"justify-center",right:"justify-end"}[t.align||"left"]].join(" ").replace(/\s+/g," ").trim();return e.jsxs("div",{className:d,onClick:s?a:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,onKeyDown:s?p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),a())}:void 0,style:{width:t.width},children:[e.jsx("span",{className:`
627
+ text-sm
628
+ font-bold
629
+ text-content-secondary
630
+ dark:text-content-secondary
631
+ text-ellipsis
632
+ overflow-hidden
633
+ whitespace-nowrap
634
+ `,children:t.header}),s&&e.jsxs("span",{className:"shrink-0 text-content-secondary dark:text-content-secondary",children:[n&&r==="asc"&&e.jsx(_e,{}),n&&r==="desc"&&e.jsx(Me,{}),!n&&e.jsx("div",{className:"w-4 h-4"})]})]})},Q=({children:t,align:s="left",width:n,isStriped:r=!1,rowIndex:a=0})=>{const o={left:"justify-start text-left",center:"justify-center text-center",right:"justify-end text-right"},l=r&&a%2===1?"bg-background-secondary dark:bg-dark-bg-primary/30":"";return e.jsx("div",{className:`
635
+ flex
636
+ flex-col
637
+ ${o[s]}
638
+ px-6
639
+ py-4
640
+ min-h-[56px]
641
+ border-b
642
+ border-border-secondary
643
+ dark:border-dark-border-primary
644
+ ${l}
645
+ `,style:{width:n},children:e.jsx("span",{className:`
646
+ text-sm
647
+ text-content-primary
648
+ dark:text-dark-content-primary
649
+ text-ellipsis
650
+ overflow-hidden
651
+ w-full
652
+ `,children:t})})},De=({currentPage:t,totalPages:s,onPageChange:n,previousLabel:r="Anterior",nextLabel:a="Siguiente"})=>{const l=(()=>{const c=[];if(s<=7)for(let p=1;p<=s;p++)c.push(p);else c.push(1),t<=3?c.push(2,3):t>=s-2?(c.push("..."),c.push(s-2,s-1)):(c.push("..."),c.push(t),c.push("...")),s>1&&c.push(s);return c})();return e.jsxs("div",{className:"flex items-center justify-between w-full h-9",children:[e.jsxs("button",{onClick:()=>t>1&&n(t-1),disabled:t===1,className:`
653
+ flex
654
+ items-center
655
+ gap-3
656
+ px-3
657
+ py-2
658
+ rounded-md
659
+ text-sm
660
+ font-bold
661
+ text-primary-custom-600
662
+ dark:text-primary-custom-600
663
+ hover:bg-blue-50
664
+ dark:hover:bg-blue-900/20
665
+ disabled:opacity-50
666
+ disabled:cursor-not-allowed
667
+ transition-colors
668
+ duration-150
669
+ `,children:[e.jsx(Re,{}),e.jsx("span",{children:r})]}),e.jsx("div",{className:"flex items-center gap-0",children:l.map((c,d)=>{if(c==="...")return e.jsx("div",{className:`
670
+ flex
671
+ items-center
672
+ justify-center
673
+ px-3
674
+ py-2
675
+ text-sm
676
+ font-bold
677
+ text-primary-custom-600
678
+ dark:text-primary-custom-600
679
+ `,children:c},`ellipsis-${d}`);const p=c===t;return e.jsx("button",{onClick:()=>n(c),className:`
680
+ flex
681
+ items-center
682
+ justify-center
683
+ px-3
684
+ py-2
685
+ rounded-md
686
+ text-sm
687
+ font-bold
688
+ text-primary-custom-600
689
+ dark:text-primary-custom-600
690
+ transition-colors
691
+ duration-150
692
+ ${p?"bg-blue-100 dark:bg-blue-900/30":"hover:bg-blue-50 dark:hover:bg-blue-900/20"}
693
+ `,children:c},c)})}),e.jsxs("button",{onClick:()=>t<s&&n(t+1),disabled:t===s,className:`
694
+ flex
695
+ items-center
696
+ gap-3
697
+ px-3
698
+ py-2
699
+ rounded-md
700
+ text-sm
701
+ font-bold
702
+ text-primary-custom-600
703
+ dark:text-primary-custom-600
704
+ hover:bg-blue-50
705
+ dark:hover:bg-blue-900/20
706
+ disabled:opacity-50
707
+ disabled:cursor-not-allowed
708
+ transition-colors
709
+ duration-150
710
+ `,children:[e.jsx("span",{children:a}),e.jsx(Ie,{})]})]})},ze=({title:t,columns:s,data:n,variant:r="basic",showBorder:a=!0,showShadow:o=!0,onSort:l,sortColumn:c,sortDirection:d,fullWidth:p=!1,emptyMessage:i="No hay datos disponibles",loading:b=!1,loadingRows:x=5,pagination:g,className:m="",id:v})=>{const[u,h]=y.useState(null),[w,f]=y.useState(null),k=c!==void 0?c:u,j=d!==void 0?d:w,C=S=>{let _="asc";k===S&&(j==="asc"?_="desc":j==="desc"&&(_=null)),l?l(S,_):(h(_?S:null),f(_))},B=(S,_)=>typeof _=="function"?_(S):S[_],T=[`
711
+ flex
712
+ flex-col
713
+ gap-4
714
+ bg-white
715
+ dark:bg-dark-bg-primary
716
+ rounded-xl
717
+ transition-all
718
+ duration-150
719
+ `,a?"border border-border-primary dark:border-dark-border-primary":"",o?"shadow-base":"","p-8",p||r==="fullWidth"?"w-full":"",m].join(" ").replace(/\s+/g," ").trim(),Z=r==="grid"?`
720
+ border
721
+ border-border-primary
722
+ dark:border-dark-border-primary
723
+ rounded-lg
724
+ overflow-hidden
725
+ `:"";return e.jsxs("div",{className:T,id:v,children:[t&&e.jsx("div",{className:"flex items-center justify-center w-full",children:e.jsx("h3",{className:`
726
+ text-base
727
+ font-bold
728
+ text-content-primary
729
+ dark:text-dark-content-primary
730
+ text-ellipsis
731
+ overflow-hidden
732
+ whitespace-nowrap
733
+ `,children:t})}),e.jsx("div",{className:`flex w-full overflow-x-auto ${Z}`,children:s.map((S,_)=>{const V=typeof S.accessor=="function"?`column_${_}`:String(S.accessor);return e.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[e.jsx(Te,{column:S,sortable:S.sortable||!1,sorted:k===V,sortDirection:k===V?j:null,onSort:()=>C(V)}),b&&e.jsx(e.Fragment,{children:Array.from({length:x}).map((H,E)=>e.jsx(Q,{align:S.align,width:S.width,isStriped:r==="striped",rowIndex:E,children:e.jsx("div",{className:`
734
+ h-4
735
+ bg-background-secondary
736
+ dark:bg-dark-border-primary
737
+ rounded
738
+ animate-pulse
739
+ `})},`loading-${E}`))}),!b&&n.length>0&&e.jsx(e.Fragment,{children:n.map((H,E)=>{const P=B(H,S.accessor),W=S.render?S.render(P,H,E):P;return e.jsx(Q,{align:S.align,width:S.width,isStriped:r==="striped",rowIndex:E,children:W},E)})}),!b&&n.length===0&&_===0&&e.jsx("div",{className:`
740
+ flex
741
+ items-center
742
+ justify-center
743
+ px-6
744
+ py-12
745
+ text-sm
746
+ text-content-secondary
747
+ dark:text-content-secondary
748
+ `,style:{gridColumn:`1 / ${s.length+1}`},children:i})]},V)})}),g&&e.jsx(De,{currentPage:g.currentPage,totalPages:g.totalPages,onPageChange:g.onPageChange,previousLabel:g.previousLabel,nextLabel:g.nextLabel})]})},Ae=({label:t,active:s=!1,icon:n,badge:r,disabled:a=!1,onClick:o,className:l="",ariaLabel:c})=>{const d=`
749
+ relative
750
+ flex
751
+ flex-col
752
+ items-center
753
+ cursor-pointer
754
+ outline-hidden
755
+ transition-all
756
+ duration-150
757
+ p-0
758
+ border-0
759
+ bg-transparent
760
+ `,i=a?"opacity-50 cursor-not-allowed pointer-events-none":"",b=`
761
+ flex
762
+ items-center
763
+ justify-center
764
+ gap-1
765
+ p-2
766
+ rounded-lg
767
+ overflow-hidden
768
+ transition-all
769
+ duration-150
770
+ w-full
771
+ `,x=a?"":`
772
+ group-hover:bg-[rgba(0,0,0,0.03)]
773
+ group-focus-visible:bg-[rgba(0,0,0,0.03)]
774
+ group-focus-visible:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
775
+ dark:group-hover:bg-white/5
776
+ dark:group-focus-visible:bg-white/5
777
+ dark:group-focus-visible:shadow-[0px_0px_0px_2px_#1e3a5f,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#0f6ae3]
778
+ `,g=s?`
779
+ text-primary-custom-600
780
+ dark:text-primary-custom-600
781
+ `:`
782
+ text-content-primary
783
+ dark:text-dark-content-primary
784
+ `,m=`
785
+ w-3
786
+ h-3
787
+ shrink-0
788
+ `,v=s?`
789
+ bg-primary-custom-600
790
+ dark:bg-primary-custom-600
791
+ `:`
792
+ bg-content-primary
793
+ dark:bg-dark-content-primary
794
+ `,u=s?`
795
+ absolute
796
+ -bottom-2.5
797
+ left-0
798
+ right-0
799
+ h-0.5
800
+ rounded-full
801
+ bg-primary-custom-600
802
+ dark:bg-primary-custom-600
803
+ z-10
804
+ `:"hidden",h=[d,"",i,"group",l].join(" ").replace(/\s+/g," ").trim(),w=[b,x].join(" ").replace(/\s+/g," ").trim();return e.jsxs("button",{type:"button",role:"tab","aria-selected":s,"aria-disabled":a,"aria-label":c||t,tabIndex:a?-1:0,className:h,onClick:a?void 0:o,disabled:a,children:[e.jsxs("div",{className:w,children:[n&&e.jsx("span",{className:`${m} ${g}`.trim(),children:n}),e.jsx("span",{className:`
805
+ text-sm
806
+ font-bold
807
+ leading-5
808
+ whitespace-nowrap
809
+ ${g}
810
+ `.replace(/\s+/g," ").trim(),children:t}),r!==void 0&&r>0&&e.jsx("span",{className:`
811
+ flex
812
+ items-center
813
+ justify-center
814
+ h-3
815
+ min-w-[12px]
816
+ px-0.5
817
+ rounded-xs
818
+ text-xs
819
+ font-normal
820
+ leading-4
821
+ text-primary-inverse-content
822
+ dark:text-dark-bg-primary
823
+ ${v}
824
+ `.replace(/\s+/g," ").trim(),"aria-label":`${r} notificaciones`,children:r>99?"99+":r})]}),e.jsx("div",{className:u})]})},Ee=({items:t,activeId:s,defaultActiveId:n,onChange:r,className:a="",fullWidth:o=!1,size:l="base",showBorder:c=!0})=>{const[d,p]=y.useState(n||(t.length>0?t[0].id:"")),i=s!==void 0,b=i?s:d,x=h=>{i||p(h),r?.(h)},m=`
825
+ flex
826
+ items-end
827
+ pb-2.5
828
+ ${{sm:"gap-0",base:"gap-1",lg:"gap-2"}[l]}
829
+ ${o?"w-full":""}
830
+ ${c?"border-b border-border-primary dark:border-dark-border-primary":""}
831
+ `,v=o?"flex-1":"",u=[m,a].join(" ").replace(/\s+/g," ").trim();return e.jsx("div",{role:"tablist","aria-label":"Pestañas de navegación",className:u,children:t.map(h=>e.jsx(Ae,{label:h.label,active:b===h.id,icon:h.icon,badge:h.badge,disabled:h.disabled,onClick:()=>x(h.id),className:v},h.id))})},Fe=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:e.jsx("path",{d:"M1.75 1.002a.75.75 0 1 0 0 1.5h1.035l1.38 5.514a2.75 2.75 0 0 0 2.658 2.048h5.355a2.75 2.75 0 0 0 2.658-2.048l.9-3.597a.75.75 0 0 0-.728-.919H4.655l-.22-.88A.75.75 0 0 0 3.71 2H1.75ZM5 13a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM11.5 13a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"})}),Ze=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:e.jsx("path",{fillRule:"evenodd",d:"M12 5a4 4 0 0 0-8 0v2.379a1.5 1.5 0 0 1-.44 1.06L2.294 9.707a1 1 0 0 0-.293.707V11a1 1 0 0 0 1 1h2a3 3 0 1 0 6 0h2a1 1 0 0 0 1-1v-.586a1 1 0 0 0-.293-.707L12.44 8.44A1.5 1.5 0 0 1 12 7.38V5Zm-5.5 7a1.5 1.5 0 0 0 3 0h-3Z",clipRule:"evenodd"})}),X=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:e.jsx("path",{fillRule:"evenodd",d:"M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z",clipRule:"evenodd"})}),J=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:e.jsx("path",{fillRule:"evenodd",d:"M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),U=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:e.jsx("path",{fillRule:"evenodd",d:"M6.701 2.25c.577-1 2.02-1 2.598 0l5.196 9a1.5 1.5 0 0 1-1.299 2.25H2.804a1.5 1.5 0 0 1-1.3-2.25l5.197-9ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 1 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 7.25a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"})}),Ve=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:e.jsx("path",{fillRule:"evenodd",d:"M14 4.75A2.75 2.75 0 0 0 11.25 2h-3A2.75 2.75 0 0 0 5.5 4.75v.5a.75.75 0 0 0 1.5 0v-.5c0-.69.56-1.25 1.25-1.25h3c.69 0 1.25.56 1.25 1.25v6.5c0 .69-.56 1.25-1.25 1.25h-3c-.69 0-1.25-.56-1.25-1.25v-.5a.75.75 0 0 0-1.5 0v.5A2.75 2.75 0 0 0 8.25 14h3A2.75 2.75 0 0 0 14 11.25v-6.5Zm-9.47.47a.75.75 0 0 0-1.06 0L1.22 7.47a.75.75 0 0 0 0 1.06l2.25 2.25a.75.75 0 1 0 1.06-1.06l-.97-.97h5.69a.75.75 0 0 0 0-1.5H3.56l.97-.97a.75.75 0 0 0 0-1.06Z",clipRule:"evenodd"})}),He=({logo:t,productName:s="Nombre Producto",environmentBadge:n,userDropdown:r,actions:a,notifications:o,className:l="",variant:c="responsive",hideActionButtons:d=!1,leadingAction:p,siesaLogo:i,showBusinessLogo:b=!1,showSiesaLogoLeading:x=!0,showSiesaLogoTrailing:g=!1,onNavigationClick:m,onSearchClick:v,onCartClick:u,onNotificationsClick:h})=>{const w=`
832
+ box-border
833
+ flex
834
+ flex-col
835
+ items-center
836
+ justify-center
837
+ p-1
838
+ relative
839
+ rounded-md
840
+ shrink-0
841
+ text-primary-custom-600
842
+ hover:bg-background-secondary
843
+ active:scale-95
844
+ focus:outline-hidden
845
+ focus:ring-2
846
+ focus:ring-primary-custom-400
847
+ focus:ring-offset-2
848
+ dark:text-primary-custom-600
849
+ dark:hover:bg-dark-bg-secondary
850
+ dark:active:scale-95
851
+ dark:focus:ring-dark-border-custom
852
+ dark:focus:ring-offset-dark-bg-primary
853
+ transition-all
854
+ duration-150
855
+ `,f=`
856
+ bg-primary-custom-600
857
+ text-primary-inverse-content
858
+ border
859
+ border-primary-custom-600
860
+ shadow-button-inset
861
+ hover:bg-primary-custom-500
862
+ active:scale-95
863
+ focus:outline-hidden
864
+ focus:ring-2
865
+ focus:ring-primary-custom-400
866
+ focus:ring-offset-2
867
+ dark:bg-dark-bg-inverse
868
+ dark:text-dark-content-inverse
869
+ dark:border-dark-bg-inverse
870
+ dark:hover:bg-dark-bg-inverse/90
871
+ dark:active:scale-95
872
+ dark:focus:ring-dark-border-custom
873
+ dark:focus:ring-offset-dark-bg-primary
874
+ box-border
875
+ flex
876
+ flex-col
877
+ items-center
878
+ justify-center
879
+ p-3
880
+ relative
881
+ rounded-md
882
+ shrink-0
883
+ transition-all
884
+ duration-150
885
+ `,k=c==="mobile",j=c==="desktop",C=c==="tablet",B=c==="responsive",R=()=>{if(k)return null;const N=e.jsx("div",{className:"overflow-hidden relative shrink-0 w-4 h-4",children:e.jsx(Ve,{})});return j||C?e.jsx("button",{className:f,"aria-label":"Volver",onClick:m,children:N}):e.jsx("button",{className:`hidden md:flex ${f}`,"aria-label":"Volver",onClick:m,children:N})},L=()=>{if(k||!b)return null;const N=e.jsx("img",{src:"/,Business Logo.png",alt:"Business Logo",className:"w-full h-full object-contain"});return j?e.jsx("div",{className:"overflow-hidden relative shrink-0 w-[168px] h-[30px]",children:N}):C?e.jsx("div",{className:"overflow-hidden relative shrink-0 w-[140px] h-[25px]",children:N}):e.jsx("div",{className:"hidden md:block overflow-hidden relative shrink-0 w-[140px] lg:w-[168px] h-[25px] lg:h-[30px]",children:N})},I=()=>{const N=e.jsx("img",{src:"/.Siesa Logo.png",alt:"Siesa",className:"w-full h-full object-contain"}),A=e.jsx("img",{src:"/siesa_logo_mobile.png",alt:"Siesa",className:"w-full h-full object-contain"});return k?e.jsx("div",{className:"overflow-hidden relative shrink-0 w-[30px] h-[30px]",children:A}):x?j?e.jsx("div",{className:"overflow-hidden relative shrink-0 w-[120px] h-[30px]",children:N}):C?e.jsx("div",{className:"overflow-hidden relative shrink-0 w-[100px] h-[25px]",children:N}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"md:hidden overflow-hidden relative shrink-0 w-[30px] h-[30px]",children:A}),x&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"hidden md:block lg:hidden overflow-hidden relative shrink-0 w-[100px] h-[25px]",children:N}),e.jsx("div",{className:"hidden lg:block overflow-hidden relative shrink-0 w-[120px] h-[30px]",children:N})]})]}):null},z=()=>{if(!g||k)return null;const N=e.jsx("img",{src:"/.Siesa Logo.png",alt:"Siesa",className:"w-full h-full object-contain"});return j?e.jsx("div",{className:"overflow-hidden relative shrink-0 w-[120px] h-[30px]",children:N}):C?e.jsx("div",{className:"overflow-hidden relative shrink-0 w-[100px] h-[25px]",children:N}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"hidden md:block lg:hidden overflow-hidden relative shrink-0 w-[100px] h-[25px]",children:N}),e.jsx("div",{className:"hidden lg:block overflow-hidden relative shrink-0 w-[120px] h-[30px]",children:N})]})},M=({responsive:N=!0})=>{const A=e.jsx("div",{className:"grow shrink-0 w-px min-h-px bg-border-primary dark:bg-dark-border-primary"});return k?null:j||C?e.jsx("div",{className:"flex flex-col gap-2 h-8 items-start px-0 py-1 relative shrink-0",children:A}):N?e.jsx("div",{className:"hidden md:flex flex-col gap-2 h-8 items-start px-0 py-1 relative shrink-0",children:A}):null},T=()=>{if(k||!s)return null;const N=e.jsx("p",{className:"font-bold leading-7 text-xl text-content-primary dark:text-dark-content-primary tracking-[-0.5px] whitespace-nowrap",children:s});return j||C?N:e.jsx("p",{className:"hidden md:block font-bold leading-7 text-xl text-content-primary dark:text-dark-content-primary tracking-[-0.5px] whitespace-nowrap",children:s})},Z=()=>n?k?e.jsx(O,{color:"yellow",leftIcon:e.jsx(U,{}),label:"Pruebas"}):j||C?e.jsx(O,{color:"yellow",leftIcon:e.jsx(U,{}),label:n}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"md:hidden",children:e.jsx(O,{color:"yellow",leftIcon:e.jsx(U,{}),label:"Pruebas"})}),e.jsx("div",{className:"hidden md:block",children:e.jsx(O,{color:"yellow",leftIcon:e.jsx(U,{}),label:n})})]}):null,S=()=>d?null:k?e.jsx("button",{className:w,"aria-label":"Buscar",onClick:v,children:e.jsx("div",{className:"overflow-hidden relative shrink-0 w-4 h-4",children:e.jsx(X,{})})}):B?e.jsx("button",{className:`md:hidden ${w}`,"aria-label":"Buscar",onClick:v,children:e.jsx("div",{className:"overflow-hidden relative shrink-0 w-4 h-4",children:e.jsx(X,{})})}):null,_=()=>d?null:e.jsxs("div",{className:"relative",children:[e.jsx("button",{className:w,"aria-label":"Carrito de compras",onClick:u,children:e.jsx("div",{className:"overflow-hidden relative shrink-0 w-4 h-4",children:e.jsx(Fe,{})})}),o?.cart!==void 0&&o.cart>0&&e.jsx("div",{className:"absolute bg-error-content dark:bg-error-content flex flex-col gap-2.5 h-4 items-center justify-center left-[calc(50%+8px)] px-1 py-0 rounded-full top-[calc(50%-8px)] -translate-x-1/2 -translate-y-1/2 pointer-events-none min-w-[16px]",children:e.jsx("p",{className:"font-bold leading-3 text-[10px] text-white text-center whitespace-nowrap",children:o.cart>99?"+99":o.cart})})]}),V=()=>d?null:e.jsxs("div",{className:"relative",children:[e.jsx("button",{className:w,"aria-label":"Notificaciones",onClick:h,children:e.jsx("div",{className:"overflow-hidden relative shrink-0 w-4 h-4",children:e.jsx(Ze,{})})}),o?.bell&&e.jsx("div",{className:"absolute w-2 h-2 bg-error-content dark:bg-error-content rounded-full left-[calc(50%+4px)] top-[calc(50%-8px)] -translate-x-1/2 pointer-events-none"})]}),H=()=>{if(!r)return null;const N=`
886
+ box-border
887
+ flex
888
+ items-center
889
+ justify-center
890
+ overflow-hidden
891
+ p-0
892
+ relative
893
+ shrink-0
894
+ hover:bg-background-secondary
895
+ active:scale-95
896
+ focus:outline-hidden
897
+ focus:ring-2
898
+ focus:ring-primary-custom-400
899
+ focus:ring-offset-2
900
+ dark:hover:bg-dark-bg-secondary
901
+ dark:active:scale-95
902
+ dark:focus:ring-dark-border-custom
903
+ dark:focus:ring-offset-dark-bg-primary
904
+ rounded-lg
905
+ transition-all
906
+ duration-150
907
+ `;if(k)return e.jsx("button",{className:N,onClick:r.onMenuClick,"aria-label":"Menú de usuario",children:e.jsx("div",{className:"relative rounded-full shrink-0 w-8 h-8",children:e.jsx("img",{alt:r.name,className:"absolute inset-0 max-w-none object-center object-cover pointer-events-none rounded-full w-full h-full",src:r.avatar})})});const A=()=>e.jsx("button",{className:N,onClick:r.onMenuClick,"aria-label":"Menú de usuario",children:e.jsxs("div",{className:"box-border flex gap-3 items-center justify-center overflow-hidden px-3 py-2 relative rounded-lg shrink-0",children:[e.jsxs("div",{className:"flex gap-3 items-center justify-center relative shrink-0",children:[e.jsx("div",{className:"flex items-center justify-center relative shrink-0",children:e.jsx("div",{className:"relative rounded-md shrink-0 w-10 h-10",children:e.jsx("img",{alt:r.name,className:"absolute inset-0 max-w-none object-center object-cover pointer-events-none rounded-md w-full h-full",src:r.avatar})})}),e.jsxs("div",{className:"flex flex-col gap-0.5 items-start justify-center relative shrink-0 w-[123px]",children:[e.jsx("p",{className:"leading-5 relative shrink-0 text-sm text-content-primary dark:text-dark-content-primary whitespace-nowrap font-normal",children:r.name}),(r.email||r.role)&&e.jsx("p",{className:"leading-4 min-w-full relative shrink-0 text-xs text-content-secondary dark:text-content-secondary w-min whitespace-nowrap overflow-hidden text-ellipsis",children:r.email||r.role})]})]}),e.jsx("div",{className:"overflow-hidden relative shrink-0 w-5 h-5 text-content-secondary dark:text-content-secondary",children:e.jsx(J,{})})]})});return j||C?A():e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`md:hidden ${N}`,onClick:r.onMenuClick,"aria-label":"Menú de usuario",children:e.jsx("div",{className:"relative rounded-full shrink-0 w-8 h-8",children:e.jsx("img",{alt:r.name,className:"absolute inset-0 max-w-none object-center object-cover pointer-events-none rounded-full w-full h-full",src:r.avatar})})}),e.jsx("button",{className:`hidden md:flex ${N}`,onClick:r.onMenuClick,"aria-label":"Menú de usuario",children:e.jsxs("div",{className:"box-border flex gap-3 items-center justify-center overflow-hidden px-3 py-2 relative rounded-lg shrink-0",children:[e.jsxs("div",{className:"flex gap-3 items-center justify-center relative shrink-0",children:[e.jsx("div",{className:"flex items-center justify-center relative shrink-0",children:e.jsx("div",{className:"relative rounded-md shrink-0 w-10 h-10",children:e.jsx("img",{alt:r.name,className:"absolute inset-0 max-w-none object-center object-cover pointer-events-none rounded-md w-full h-full",src:r.avatar})})}),e.jsxs("div",{className:"flex flex-col gap-0.5 items-start justify-center relative shrink-0 w-[123px]",children:[e.jsx("p",{className:"leading-5 relative shrink-0 text-sm text-content-primary dark:text-dark-content-primary whitespace-nowrap font-normal",children:r.name}),(r.email||r.role)&&e.jsx("p",{className:"leading-4 min-w-full relative shrink-0 text-xs text-content-secondary dark:text-content-secondary w-min whitespace-nowrap overflow-hidden text-ellipsis",children:r.email||r.role})]})]}),e.jsx("div",{className:"overflow-hidden relative shrink-0 w-5 h-5 text-content-secondary dark:text-content-secondary",children:e.jsx(J,{})})]})})]})},W=[`
908
+ box-border
909
+ flex
910
+ gap-8
911
+ items-center
912
+ px-4
913
+ py-1
914
+ relative
915
+ w-full
916
+ bg-background-primary
917
+ dark:bg-dark-bg-primary
918
+ `,{responsive:"h-[40px] md:h-16",desktop:"h-16",tablet:"h-16",mobile:"h-[40px]"}[c],l].join(" ").replace(/\s+/g," ").trim();return e.jsxs("nav",{className:W,children:[e.jsxs("div",{className:"flex gap-4 items-center relative shrink-0",children:[!k&&(p||e.jsx(R,{})),t||e.jsx(L,{}),b&&x&&!k&&e.jsx(M,{}),i||e.jsx(I,{}),s&&x&&!k&&e.jsx(M,{}),e.jsx(T,{})]}),e.jsxs("div",{className:"flex gap-4 items-center justify-end grow min-h-px min-w-px relative shrink-0",children:[e.jsx(Z,{}),e.jsx(S,{}),e.jsx(_,{}),e.jsx(V,{}),r&&!d&&e.jsx(M,{}),e.jsx(H,{}),g&&r&&!k&&e.jsx(M,{}),e.jsx(z,{}),a&&e.jsx("div",{className:"flex gap-2 items-center",children:a})]})]})},Oe=({items:t,activeItemId:s,onItemClick:n,className:r="",ariaLabel:a="Navegación Principal"})=>{t.length>5&&console.warn("NavigationBar: Se recomienda un máximo de 5 ítems para mejor UX");const o=i=>{i.disabled||(i.onClick&&i.onClick(i.id),n&&n(i.id))},l=i=>{const b=i.active||i.id===s,x=`
919
+ flex-1
920
+ flex
921
+ flex-col
922
+ items-center
923
+ gap-1
924
+ px-0.5
925
+ py-0
926
+ min-w-0
927
+ cursor-pointer
928
+ transition-all
929
+ duration-150
930
+ ${i.disabled?"opacity-50 cursor-not-allowed pointer-events-none":""}
931
+ `.replace(/\s+/g," ").trim(),g=`
932
+ flex
933
+ items-center
934
+ justify-center
935
+ px-4
936
+ py-1
937
+ rounded-full
938
+ overflow-hidden
939
+ transition-all
940
+ duration-150
941
+ ${b?"bg-primary-custom-100 dark:bg-primary-custom-100":"bg-transparent hover:bg-hover-overlay dark:hover:bg-hover-overlay-dark"}
942
+ `.replace(/\s+/g," ").trim(),m=`
943
+ font-['SiesaBT:Bold',sans-serif]
944
+ text-[10px]
945
+ leading-[12px]
946
+ font-bold
947
+ text-center
948
+ w-full
949
+ min-w-0
950
+ text-content-primary
951
+ dark:text-dark-content-primary
952
+ transition-colors
953
+ duration-150
954
+ `.replace(/\s+/g," ").trim(),v=`
955
+ w-4
956
+ h-4
957
+ shrink-0
958
+ text-content-primary
959
+ dark:text-dark-content-primary
960
+ transition-colors
961
+ duration-150
962
+ `.replace(/\s+/g," ").trim();return e.jsxs("button",{type:"button",className:x,onClick:()=>o(i),disabled:i.disabled,"aria-label":i.ariaLabel||i.label,"aria-current":b?"page":void 0,children:[e.jsx("div",{className:g,children:e.jsx("span",{className:v,children:i.icon})}),e.jsx("span",{className:m,children:i.label})]},i.id)},c=`
963
+ bg-bg-primary
964
+ dark:bg-dark-bg-primary
965
+ p-4
966
+ w-full
967
+ transition-colors
968
+ duration-150
969
+ `.replace(/\s+/g," ").trim(),d=`
970
+ flex
971
+ items-start
972
+ justify-center
973
+ w-full
974
+ `.replace(/\s+/g," ").trim(),p=`
975
+ flex-1
976
+ flex
977
+ items-start
978
+ gap-2
979
+ min-h-0
980
+ min-w-0
981
+ `.replace(/\s+/g," ").trim();return e.jsx("nav",{className:`${c} ${r}`.trim(),role:"navigation","aria-label":a,children:e.jsx("div",{className:d,children:e.jsx("div",{className:p,children:t.map(i=>l(i))})})})},Pe=({lightColor:t,darkColor:s,className:n=""})=>e.jsxs("svg",{className:`w-4 h-4 shrink-0 ${n}`.trim(),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16","aria-hidden":"true",children:[e.jsx("circle",{cx:"8",cy:"8",r:"8",fill:t,className:"dark:hidden"}),e.jsx("circle",{cx:"8",cy:"8",r:"8",fill:s,className:"hidden dark:block"})]}),We=({status:t="available",className:s=""})=>{const r={available:{lightColor:"#0e79fd",darkColor:"#93d1fd",label:"Disponible"},occupied:{lightColor:"#af460e",darkColor:"#f5a927",label:"Ocupada"},reserved:{lightColor:"#7e22ce",darkColor:"#c084fc",label:"Reservada"},outOfService:{lightColor:"#3f3f46",darkColor:"#a1a1aa",label:"Fuera de Servicio"}}[t],o=[`
982
+ inline-flex
983
+ items-center
984
+ gap-1
985
+ shrink-0
986
+ `,s].join(" ").replace(/\s+/g," ").trim();return e.jsxs("div",{className:o,role:"presentation","aria-label":`Estado: ${r.label}`,children:[e.jsx(Pe,{lightColor:r.lightColor,darkColor:r.darkColor}),e.jsx("span",{className:`
987
+ text-xs
988
+ leading-4
989
+ font-normal
990
+ text-content-primary
991
+ dark:text-dark-content-primary
992
+ whitespace-nowrap
993
+ `.replace(/\s+/g," ").trim(),children:r.label})]})},Ue=({className:t=""})=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),qe=({className:t=""})=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{d:"M9 3L3 9M3 3L9 9",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ke=({className:t=""})=>e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{d:"M10.5 5H1.5M8.5 1V3M3.5 1V3M3.25 11H8.75C9.57843 11 10.25 10.3284 10.25 9.5V3.5C10.25 2.67157 9.57843 2 8.75 2H3.25C2.42157 2 1.75 2.67157 1.75 3.5V9.5C1.75 10.3284 2.42157 11 3.25 11Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ge=({className:t=""})=>e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[e.jsx("path",{d:"M10.5 6C10.5 8.48528 8.48528 10.5 6 10.5C3.51472 10.5 1.5 8.48528 1.5 6C1.5 3.51472 3.51472 1.5 6 1.5C8.48528 1.5 10.5 3.51472 10.5 6Z",stroke:"currentColor",strokeWidth:"1.5"}),e.jsx("path",{d:"M9.18198 2.81802L2.81802 9.18198",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),Qe=({className:t=""})=>e.jsx("svg",{width:"13",height:"10",viewBox:"0 0 13 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:e.jsx("path",{d:"M9.25 9V8C9.25 6.89543 8.35457 6 7.25 6H2.75C1.64543 6 0.75 6.89543 0.75 8V9M12.25 9V8C12.25 6.89543 11.3546 6 10.25 6H9.75M7 2.5C7 3.60457 6.10457 4.5 5 4.5C3.89543 4.5 3 3.60457 3 2.5C3 1.39543 3.89543 0.5 5 0.5C6.10457 0.5 7 1.39543 7 2.5ZM10 2C10 2.82843 9.32843 3.5 8.5 3.5C7.67157 3.5 7 2.82843 7 2C7 1.17157 7.67157 0.5 8.5 0.5C9.32843 0.5 10 1.17157 10 2Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})}),Xe=({locationName:t,status:s="available",state:n="enabled",capacity:r,onClick:a,disabled:o=!1,className:l="",ariaLabel:c,fullWidth:d=!0})=>{const i={available:{textColor:"text-primary-custom-600 dark:text-primary-custom-600",badgeBg:"bg-primary-custom-100 dark:bg-blue-900/30",badgeText:"text-primary-custom-600 dark:text-blue-400",activedBg:"bg-primary-custom-100 dark:bg-blue-900/30",icon:Ue,badgeLabel:"Disponible"},occupied:{textColor:"text-[#af460e] dark:text-orange-400",badgeBg:"bg-[#fcedc9] dark:bg-yellow-900/30",badgeText:"text-[#af460e] dark:text-orange-400",activedBg:"bg-[#fcedc9] dark:bg-yellow-900/30",icon:qe,badgeLabel:"Ocupada"},reserved:{textColor:"text-[#7e22ce] dark:text-fuchsia-400",badgeBg:"bg-[#f3e8ff] dark:bg-purple-900/30",badgeText:"text-[#7e22ce] dark:text-purple-400",activedBg:"bg-[#f3e8ff] dark:bg-purple-900/30",icon:Ke,badgeLabel:"Reservada"},outOfService:{textColor:"text-[#3f3f46] dark:text-zinc-400",badgeBg:"bg-[#f4f4f5] dark:bg-zinc-800/30",badgeText:"text-content-tertiary dark:text-zinc-400",activedBg:"bg-[#f4f4f5] dark:bg-zinc-800/30",icon:Ge,badgeLabel:"F. de Servicio"}}[s],b=i.icon,x=n==="actived"?i.activedBg:"bg-white dark:bg-dark-bg-primary",v=[`
994
+ flex
995
+ flex-col
996
+ items-stretch
997
+ justify-between
998
+ ${d?"w-full":"w-[189px]"}
999
+ h-[68px]
1000
+ p-2
1001
+ rounded-lg
1002
+ cursor-pointer
1003
+ transition-all
1004
+ duration-150
1005
+ focus:outline-hidden
1006
+ focus:ring-2
1007
+ focus:ring-primary-custom-400
1008
+ focus:ring-offset-2
1009
+ dark:focus:ring-dark-border-custom
1010
+ dark:focus:ring-offset-dark-bg-primary
1011
+ hover:shadow-md
1012
+ active:scale-[0.98]
1013
+ disabled:opacity-50
1014
+ disabled:cursor-not-allowed
1015
+ disabled:pointer-events-none
1016
+ `,x,l].join(" ").replace(/\s+/g," ").trim(),u=r?`${r.current}/${r.total} mesas`:null;return e.jsxs("button",{className:v,onClick:a,disabled:o,"aria-label":c||`${t} - ${i.badgeLabel}`,type:"button",children:[e.jsx("div",{className:`
1017
+ text-base
1018
+ font-bold
1019
+ leading-6
1020
+ ${i.textColor}
1021
+ `.replace(/\s+/g," ").trim(),children:t}),e.jsxs("div",{className:"flex items-center justify-between",children:[u&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(Qe,{className:i.textColor}),e.jsx("span",{className:`
1022
+ text-[10px]
1023
+ leading-[12px]
1024
+ ${i.textColor}
1025
+ `.replace(/\s+/g," ").trim(),children:u})]}),e.jsxs("div",{className:`
1026
+ inline-flex
1027
+ items-center
1028
+ gap-1
1029
+ px-1.5
1030
+ py-1
1031
+ rounded-md
1032
+ ${i.badgeBg}
1033
+ `.replace(/\s+/g," ").trim(),children:[e.jsx(b,{className:i.badgeText}),e.jsx("span",{className:`
1034
+ text-xs
1035
+ leading-4
1036
+ ${i.badgeText}
1037
+ `.replace(/\s+/g," ").trim(),children:i.badgeLabel})]})]})]})},Je=({size:t="l",border:s=!1,children:n,disabled:r=!1,className:a="",onClick:o,ariaLabel:l,htmlType:c="button",...d})=>{const p={s:"w-10 h-10",m:"w-[65px] h-[65px]",l:"w-20 h-20"},i={s:"text-2xl",m:"text-5xl",l:"text-5xl"},m=[`
1038
+ inline-flex
1039
+ items-center
1040
+ justify-center
1041
+ rounded-lg
1042
+ font-bold
1043
+ tracking-tighter
1044
+ whitespace-nowrap
1045
+ cursor-pointer
1046
+ focus:outline-hidden
1047
+ focus:ring-2
1048
+ focus:ring-primary-custom-400
1049
+ focus:ring-offset-2
1050
+ dark:focus:ring-dark-border-custom
1051
+ dark:focus:ring-offset-dark-bg-primary
1052
+ disabled:opacity-50
1053
+ disabled:cursor-not-allowed
1054
+ disabled:pointer-events-none
1055
+ transition-all
1056
+ duration-150
1057
+ `,p[t],i[t],s?`
1058
+ bg-white
1059
+ text-content-primary
1060
+ border
1061
+ border-border-primary
1062
+ hover:bg-primary-custom-600
1063
+ hover:text-primary-inverse-content
1064
+ hover:border-primary-inverse-border
1065
+ active:bg-primary-custom-600
1066
+ active:text-primary-inverse-content
1067
+ active:border-primary-inverse-border
1068
+ active:scale-95
1069
+ dark:bg-dark-bg-primary
1070
+ dark:text-dark-content-primary
1071
+ dark:border-dark-border-primary
1072
+ dark:hover:bg-dark-bg-inverse
1073
+ dark:hover:text-dark-content-inverse
1074
+ dark:hover:border-primary-inverse-border
1075
+ dark:active:bg-dark-bg-inverse
1076
+ dark:active:text-dark-content-inverse
1077
+ dark:active:border-primary-inverse-border
1078
+ dark:active:scale-95
1079
+ `:`
1080
+ bg-white
1081
+ text-content-primary
1082
+ hover:bg-primary-custom-600
1083
+ hover:text-primary-inverse-content
1084
+ active:bg-primary-custom-600
1085
+ active:text-primary-inverse-content
1086
+ active:scale-95
1087
+ dark:bg-dark-bg-primary
1088
+ dark:text-dark-content-primary
1089
+ dark:hover:bg-dark-bg-inverse
1090
+ dark:hover:text-dark-content-inverse
1091
+ dark:active:bg-dark-bg-inverse
1092
+ dark:active:text-dark-content-inverse
1093
+ dark:active:scale-95
1094
+ `,a].join(" ").replace(/\s+/g," ").trim();return e.jsx("button",{type:c,className:m,disabled:r,onClick:o,"aria-label":l||`Número ${n}`,...d,children:n})},Ye=({image:t,label:s,active:n=!1,disabled:r=!1,onClick:a,className:o="",ariaLabel:l})=>{const p=[`
1095
+ flex
1096
+ flex-col
1097
+ gap-2
1098
+ p-3
1099
+ rounded-lg
1100
+ font-bold
1101
+ text-sm
1102
+ transition-all
1103
+ duration-150
1104
+ focus:outline-hidden
1105
+ focus:ring-2
1106
+ focus:ring-primary-custom-400
1107
+ focus:ring-offset-2
1108
+ dark:focus:ring-dark-border-custom
1109
+ dark:focus:ring-offset-dark-bg-primary
1110
+ `,r?`
1111
+ bg-white
1112
+ text-content-primary
1113
+ opacity-55
1114
+ cursor-not-allowed
1115
+ pointer-events-none
1116
+ dark:bg-dark-bg-primary
1117
+ dark:text-dark-content-primary
1118
+ `:n?`
1119
+ bg-primary-custom-100
1120
+ text-primary-custom-600
1121
+ cursor-pointer
1122
+ hover:bg-primary-custom-100
1123
+ active:scale-95
1124
+ dark:bg-primary-custom-100/20
1125
+ dark:text-primary-custom-600
1126
+ dark:hover:bg-primary-custom-100/30
1127
+ dark:active:scale-95
1128
+ `:`
1129
+ bg-white
1130
+ text-content-primary
1131
+ cursor-pointer
1132
+ hover:bg-background-secondary
1133
+ active:scale-95
1134
+ dark:bg-dark-bg-primary
1135
+ dark:text-dark-content-primary
1136
+ dark:hover:bg-dark-bg-primary/80
1137
+ dark:active:scale-95
1138
+ `,o].join(" ").replace(/\s+/g," ").trim();return e.jsxs("button",{type:"button",className:p,disabled:r,onClick:a,"aria-label":l||s,"aria-pressed":n,children:[e.jsx("div",{className:"aspect-158/80 w-full rounded-lg overflow-hidden",children:e.jsx("img",{src:t,alt:s,className:"w-full h-full object-cover"})}),e.jsx("div",{className:"w-full text-left leading-5",children:s})]})},er=({className:t=""})=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-hidden":"true",children:e.jsx("path",{d:"M8 3V13M3 8H13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),rr=({image:t,productName:s,price:n,buttonText:r="Agregar",active:a=!1,disabled:o=!1,onAddClick:l,onCardClick:c,className:d="",ariaLabel:p})=>{const i=`
1139
+ flex
1140
+ flex-col
1141
+ gap-2
1142
+ p-3
1143
+ rounded-lg
1144
+ w-[170px]
1145
+ transition-all
1146
+ duration-150
1147
+ focus:outline-hidden
1148
+ focus:ring-2
1149
+ focus:ring-primary-custom-400
1150
+ focus:ring-offset-2
1151
+ dark:focus:ring-dark-border-custom
1152
+ dark:focus:ring-offset-dark-bg-primary
1153
+ `,b=o?`
1154
+ bg-white
1155
+ opacity-55
1156
+ cursor-not-allowed
1157
+ dark:bg-dark-bg-primary
1158
+ `:a?`
1159
+ bg-primary-custom-100
1160
+ cursor-pointer
1161
+ dark:bg-dark-bg-custom
1162
+ `:`
1163
+ bg-white
1164
+ cursor-pointer
1165
+ dark:bg-dark-bg-primary
1166
+ `,x=o?`
1167
+ text-content-primary
1168
+ dark:text-dark-content-primary
1169
+ `:a?`
1170
+ text-primary-custom-600
1171
+ dark:text-dark-content-custom
1172
+ `:`
1173
+ text-content-primary
1174
+ dark:text-dark-content-primary
1175
+ `,g=[i,b,d].join(" ").replace(/\s+/g," ").trim(),m=u=>{o||u.target.closest("button")||c?.(u)},v=u=>{u.stopPropagation(),!o&&l?.(u)};return e.jsxs("div",{className:g,onClick:m,role:"article","aria-label":p||`${s} - ${n}`,tabIndex:o?-1:0,children:[e.jsxs("div",{className:"flex flex-col gap-3 w-full",children:[e.jsx("div",{className:"h-[88px] w-full rounded-lg overflow-hidden",children:e.jsx("img",{src:t,alt:s,className:"w-full h-full object-cover"})}),e.jsxs("div",{className:`flex flex-col w-full font-bold ${x}`.trim().replace(/\s+/g," "),children:[e.jsx("div",{className:"text-sm leading-5",children:s}),e.jsx("div",{className:"text-2xl leading-8 tracking-tighter",children:n})]})]}),e.jsx(q,{type:"default",size:"sm",leftIcon:e.jsx(er,{className:"w-4 h-4"}),onClick:v,disabled:o,fullWidth:!0,ariaLabel:`${r} ${s}`,children:r})]})},tr=({className:t=""})=>e.jsx("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{fillRule:"evenodd",d:"M5 3.25V4H2.75a.75.75 0 0 0 0 1.5h.3l.815 8.15A1.5 1.5 0 0 0 5.357 15h5.285a1.5 1.5 0 0 0 1.493-1.35l.815-8.15h.3a.75.75 0 0 0 0-1.5H11v-.75A2.25 2.25 0 0 0 8.75 1h-1.5A2.25 2.25 0 0 0 5 3.25Zm2.25-.75a.75.75 0 0 0-.75.75V4h3v-.75a.75.75 0 0 0-.75-.75h-1.5ZM6.05 6a.75.75 0 0 1 .787.713l.275 5.5a.75.75 0 0 1-1.498.075l-.275-5.5A.75.75 0 0 1 6.05 6Zm3.9 0a.75.75 0 0 1 .712.787l-.275 5.5a.75.75 0 0 1-1.498-.075l.275-5.5a.75.75 0 0 1 .786-.711Z",clipRule:"evenodd"})}),le=({categoryLabel:t,categoryColor:s="lime",productRef:n,price:r,productName:a,descriptionItems:o=[],showDescription:l=!0,quantity:c=0,minQuantity:d=0,maxQuantity:p,onQuantityChange:i,onDelete:b,disabled:x=!1,className:g="",deleteIcon:m})=>{const v={lime:{bg:"bg-lime-100 dark:bg-lime-900/40",text:"text-lime-700 dark:text-lime-300"},red:{bg:"bg-red-100 dark:bg-red-900/40",text:"text-red-700 dark:text-red-300"},orange:{bg:"bg-orange-100 dark:bg-orange-900/40",text:"text-orange-700 dark:text-orange-300"},amber:{bg:"bg-amber-100 dark:bg-amber-900/40",text:"text-amber-700 dark:text-amber-300"},yellow:{bg:"bg-yellow-100 dark:bg-yellow-900/40",text:"text-yellow-700 dark:text-yellow-300"},green:{bg:"bg-green-100 dark:bg-green-900/40",text:"text-green-700 dark:text-green-300"},emerald:{bg:"bg-emerald-100 dark:bg-emerald-900/40",text:"text-emerald-700 dark:text-emerald-300"},teal:{bg:"bg-teal-100 dark:bg-teal-900/40",text:"text-teal-700 dark:text-teal-300"},cyan:{bg:"bg-cyan-100 dark:bg-cyan-900/40",text:"text-cyan-700 dark:text-cyan-300"},sky:{bg:"bg-sky-100 dark:bg-sky-900/40",text:"text-sky-700 dark:text-sky-300"},blue:{bg:"bg-blue-100 dark:bg-blue-900/40",text:"text-blue-700 dark:text-blue-300"},indigo:{bg:"bg-indigo-100 dark:bg-indigo-900/40",text:"text-indigo-700 dark:text-indigo-300"},violet:{bg:"bg-violet-100 dark:bg-violet-900/40",text:"text-violet-700 dark:text-violet-300"},purple:{bg:"bg-purple-100 dark:bg-purple-900/40",text:"text-purple-700 dark:text-purple-300"},fuchsia:{bg:"bg-fuchsia-100 dark:bg-fuchsia-900/40",text:"text-fuchsia-700 dark:text-fuchsia-300"},pink:{bg:"bg-pink-100 dark:bg-pink-900/40",text:"text-pink-700 dark:text-pink-300"},rose:{bg:"bg-rose-100 dark:bg-rose-900/40",text:"text-rose-700 dark:text-rose-300"},zinc:{bg:"bg-zinc-100 dark:bg-zinc-800/50",text:"text-zinc-600 dark:text-zinc-300"},primary:{bg:"bg-primary-custom-100 dark:bg-primary-custom-600/30",text:"text-primary-custom-600 dark:text-primary-custom-300"}},u=v[s]||v.lime,h=f=>{!x&&i&&i(f)},w=()=>{!x&&b&&b()};return e.jsxs("div",{className:`
1176
+ flex
1177
+ flex-col
1178
+ gap-2
1179
+ w-full
1180
+ ${x?"opacity-50 pointer-events-none":""}
1181
+ ${g}
1182
+ `.trim().replace(/\s+/g," "),"data-component":"POSProductSidebarItems",children:[e.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[e.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[e.jsxs("div",{className:"flex items-center gap-1 w-full",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[e.jsx("div",{className:`
1183
+ inline-flex
1184
+ items-center
1185
+ px-1.5
1186
+ py-1
1187
+ rounded-md
1188
+ transition-colors
1189
+ duration-150
1190
+ ${u.bg}
1191
+ `.trim().replace(/\s+/g," "),children:e.jsx("span",{className:`
1192
+ text-xs
1193
+ leading-4
1194
+ font-normal
1195
+ text-center
1196
+ whitespace-nowrap
1197
+ ${u.text}
1198
+ `.trim().replace(/\s+/g," "),children:t})}),e.jsx("span",{className:"text-[10px] leading-3 font-normal text-content-primary dark:text-dark-content-primary whitespace-nowrap",children:n})]}),e.jsx("div",{className:"flex items-center shrink-0",children:e.jsx("span",{className:"text-xs leading-4 font-bold text-content-primary dark:text-dark-content-primary whitespace-nowrap text-right",children:r})})]}),e.jsx("div",{className:"flex items-start w-full",children:e.jsx("span",{className:"text-xs leading-4 font-bold text-content-primary dark:text-dark-content-primary flex-1 min-w-0",children:a})})]}),l&&o.length>0&&e.jsx("div",{className:`
1199
+ flex
1200
+ flex-col
1201
+ gap-2
1202
+ p-2
1203
+ rounded-lg
1204
+ bg-background-secondary
1205
+ dark:bg-zinc-700
1206
+ w-full
1207
+ transition-colors
1208
+ duration-150
1209
+ `.trim().replace(/\s+/g," "),children:o.map((f,k)=>e.jsxs("div",{className:"flex items-center gap-1 w-full",children:[e.jsx("span",{className:"flex-1 min-w-0 text-xs leading-3 font-normal text-content-primary dark:text-dark-content-primary",children:f.description}),e.jsx("span",{className:"text-xs leading-3 font-bold text-content-primary dark:text-dark-content-primary whitespace-nowrap text-right shrink-0",children:f.price})]},k))})]}),e.jsxs("div",{className:"flex items-center justify-between w-full",children:[e.jsx("div",{className:"w-[118px]",children:e.jsx(G,{value:c,min:d,max:p,onChange:h,disabled:x})}),e.jsx("button",{type:"button",onClick:w,disabled:x,className:`
1210
+ flex
1211
+ items-center
1212
+ justify-center
1213
+ w-6
1214
+ h-6
1215
+ rounded-md
1216
+ text-red-700
1217
+ dark:text-red-500
1218
+ hover:text-red-800
1219
+ dark:hover:text-red-400
1220
+ hover:bg-red-50
1221
+ dark:hover:bg-red-900/20
1222
+ focus:outline-hidden
1223
+ focus:ring-2
1224
+ focus:ring-red-500/50
1225
+ dark:focus:ring-red-400/50
1226
+ focus:ring-offset-1
1227
+ focus:ring-offset-white
1228
+ dark:focus:ring-offset-dark-bg-primary
1229
+ active:scale-95
1230
+ transition-all
1231
+ duration-150
1232
+ ${x?"cursor-not-allowed opacity-50":"cursor-pointer"}
1233
+ `.trim().replace(/\s+/g," "),"aria-label":"Eliminar producto",children:m||e.jsx(tr,{className:"w-[18px] h-[21px]"})})]})]})};le.displayName="POSProductSidebarItems";const sr=({tableNumber:t,status:s="available",shape:n="square",chairs:r=4,showChairs:a=!0,isActive:o=!1,onClick:l,className:c="",disabled:d=!1,children:p})=>{const i={available:{border:"border-[#0e79fd]",borderDark:"dark:border-[#93d1fd]",bgEnabled:"bg-transparent",bgEnabledDark:"dark:bg-transparent",bgActive:"bg-primary-custom-100",bgActiveDark:"dark:bg-[#1e3a5f]",borderActive:"border-[#bce4ff]",borderActiveDark:"dark:border-[#1e3a5f]",table:"bg-[#0e79fd]",tableDark:"dark:bg-[#93d1fd]",chair:"bg-[#0e79fd]",chairDark:"dark:bg-[#93d1fd]",text:"text-[#0e79fd]",textDark:"dark:text-[#93d1fd]",focusRing:"focus:ring-[#93d1fd]",focusRingDark:"dark:focus:ring-[#0e79fd]"},busy:{border:"border-[#af460e]",borderDark:"dark:border-[#f5a927]",bgEnabled:"bg-transparent",bgEnabledDark:"dark:bg-transparent",bgActive:"bg-[#fed7aa]",bgActiveDark:"dark:bg-[#5c3a1e]",borderActive:"border-[#fed7aa]",borderActiveDark:"dark:border-[#5c3a1e]",table:"bg-[#af460e]",tableDark:"dark:bg-[#f5a927]",chair:"bg-[#af460e]",chairDark:"dark:bg-[#f5a927]",text:"text-[#af460e]",textDark:"dark:text-[#f5a927]",focusRing:"focus:ring-[#f5a927]",focusRingDark:"dark:focus:ring-[#af460e]"},reserved:{border:"border-[#7e22ce]",borderDark:"dark:border-[#c084fc]",bgEnabled:"bg-transparent",bgEnabledDark:"dark:bg-transparent",bgActive:"bg-[#e9d5ff]",bgActiveDark:"dark:bg-[#3b1f5c]",borderActive:"border-[#e9d5ff]",borderActiveDark:"dark:border-[#3b1f5c]",table:"bg-[#7e22ce]",tableDark:"dark:bg-[#c084fc]",chair:"bg-[#7e22ce]",chairDark:"dark:bg-[#c084fc]",text:"text-[#7e22ce]",textDark:"dark:text-[#c084fc]",focusRing:"focus:ring-[#c084fc]",focusRingDark:"dark:focus:ring-[#7e22ce]"}},b={square:{container:"rounded-[4px]",table:"w-[64px] h-[64px] rounded-[4px]"},circle:{container:"rounded-[9999px]",table:"w-[64px] h-[64px] rounded-[9999px]"},rectangle:{container:"rounded-[4px]",table:"w-[80px] h-[64px] rounded-[4px]"},oval:{container:"rounded-3xl",table:"w-[80px] h-[64px] rounded-3xl"}},x=({rotation:u})=>e.jsxs("div",{className:"w-[28px] h-[22px]",style:{transform:`rotate(${u}deg)`},"aria-hidden":"true",children:[e.jsx("div",{className:`
1234
+ absolute
1235
+ top-0
1236
+ left-0
1237
+ right-0
1238
+ h-[16px]
1239
+ rounded-t-[4px]
1240
+ ${i[s].chair}
1241
+ ${i[s].chairDark}
1242
+ `}),e.jsx("div",{className:`
1243
+ absolute
1244
+ bottom-0
1245
+ left-[7.14%]
1246
+ right-[7.14%]
1247
+ h-[14px]
1248
+ rounded-b-[4px]
1249
+ ${i[s].chair}
1250
+ ${i[s].chairDark}
1251
+ `})]}),g=()=>{!d&&l&&l()},m=u=>{(u.key==="Enter"||u.key===" ")&&!d&&l&&(u.preventDefault(),l())},v=["w-[160px]","h-[160px]","shrink-0","relative","flex","flex-col","items-center","justify-center","p-0","border-2","box-border","rounded-[8px]",o?i[s].borderActive:i[s].border,o?i[s].borderActiveDark:i[s].borderDark,o?i[s].bgActive:i[s].bgEnabled,o?i[s].bgActiveDark:i[s].bgEnabledDark,"focus:outline-hidden","focus:ring-2",i[s].focusRing,i[s].focusRingDark,"focus:ring-offset-2","dark:focus:ring-offset-dark-bg-primary","transition-all","duration-150",l&&!d?"cursor-pointer":"",l&&!d?"hover:scale-105":"",l&&!d?"active:scale-95":"",d?"opacity-50 cursor-not-allowed":"",c].filter(Boolean).join(" ").replace(/\s+/g," ").trim();return e.jsxs("button",{className:v,onClick:g,onKeyDown:m,disabled:d,type:"button","aria-label":`Mesa ${t} - ${s==="available"?"Disponible":s==="busy"?"Ocupada":"Reservada"}`,children:[e.jsxs("div",{className:"flex flex-col gap-[4px] items-center justify-center w-[134px] h-[134px] shrink-0",children:[a&&(r===2||r===4||r===6||r===8)&&e.jsxs("div",{className:"flex gap-[4px] items-center justify-center shrink-0",children:[r>=6&&e.jsxs(e.Fragment,{children:[e.jsx(x,{rotation:0}),e.jsx(x,{rotation:0})]}),r===2&&e.jsx(x,{rotation:0}),r===4&&e.jsx(x,{rotation:0})]}),e.jsxs("div",{className:"flex gap-[4px] items-center justify-center shrink-0",children:[a&&(r===4||r===6||r===8)&&e.jsxs("div",{className:"flex flex-col gap-[4px] items-start justify-center shrink-0",children:[r>=8&&e.jsxs(e.Fragment,{children:[e.jsx(x,{rotation:270}),e.jsx(x,{rotation:270})]}),(r===4||r===6)&&e.jsx(x,{rotation:270})]}),e.jsx("div",{className:"flex flex-col gap-[4px] items-start justify-center shrink-0",children:e.jsx("div",{className:"flex items-center shrink-0",children:e.jsx("div",{className:`
1252
+ ${b[n].table}
1253
+ ${i[s].table}
1254
+ ${i[s].tableDark}
1255
+ shrink-0
1256
+ `})})}),a&&(r===4||r===6||r===8)&&e.jsxs("div",{className:"flex flex-col gap-[4px] items-start justify-center shrink-0",children:[r>=8&&e.jsxs(e.Fragment,{children:[e.jsx(x,{rotation:90}),e.jsx(x,{rotation:90})]}),(r===4||r===6)&&e.jsx(x,{rotation:90})]})]}),a&&(r===2||r===4||r===6||r===8)&&e.jsxs("div",{className:"flex gap-[4px] items-center justify-center shrink-0",children:[r>=6&&e.jsxs(e.Fragment,{children:[e.jsx(x,{rotation:180}),e.jsx(x,{rotation:180})]}),r===2&&e.jsx(x,{rotation:180}),r===4&&e.jsx(x,{rotation:180})]})]}),e.jsxs("div",{className:`
1257
+ flex
1258
+ flex-col
1259
+ justify-center
1260
+ leading-0
1261
+ not-italic
1262
+ text-ellipsis
1263
+ overflow-hidden
1264
+ min-w-full
1265
+ text-center
1266
+ whitespace-nowrap
1267
+ shrink-0
1268
+ text-[10px]
1269
+ font-normal
1270
+ ${i[s].text}
1271
+ ${i[s].textDark}
1272
+ `,children:[e.jsxs("p",{className:"leading-[12px] text-ellipsis overflow-hidden",children:["Mesa ",t]}),p]})]})},ce=y.createContext(void 0),ar=({children:t,defaultTheme:s="light"})=>{const[n,r]=y.useState(()=>typeof window<"u"&&localStorage.getItem("siesa-ui-theme")||s);y.useEffect(()=>{const l=window.document.documentElement;n==="dark"?l.classList.add("dark"):l.classList.remove("dark"),localStorage.setItem("siesa-ui-theme",n)},[n]);const a=()=>{r(l=>l==="light"?"dark":"light")},o=l=>{r(l)};return e.jsx(ce.Provider,{value:{theme:n,toggleTheme:a,setTheme:o},children:t})},nr=()=>{const t=y.useContext(ce);if(t===void 0)throw new Error("useTheme debe ser usado dentro de un ThemeProvider");return t};exports.Alert=ie;exports.Avatar=ae;exports.Badge=O;exports.Button=q;exports.Checkbox=re;exports.DescriptionList=oe;exports.Divider=ne;exports.Dropdown=ke;exports.Input=Y;exports.Navbar=He;exports.NavigationBar=Oe;exports.Notification=je;exports.POSConvention=We;exports.POSLocationButton=Xe;exports.POSNumberButton=Je;exports.POSProductButton=Ye;exports.POSProductCard=rr;exports.POSProductSidebarItems=le;exports.POSTable=sr;exports.Pagination=$e;exports.Quantity=G;exports.Radio=te;exports.Select=Le;exports.Switch=se;exports.Table=ze;exports.Tabs=Ee;exports.Textarea=ee;exports.ThemeProvider=ar;exports.useTheme=nr;
1273
+ //# sourceMappingURL=siesa-ui-kit.cjs.map