siesa-ui-kit 1.0.0 → 1.0.1

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 (409) hide show
  1. package/README.md +54 -28
  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/Input/Input.d.ts +40 -0
  45. package/dist/components/Input/Input.d.ts.map +1 -0
  46. package/dist/components/Input/Input.types.d.ts +71 -0
  47. package/dist/components/Input/Input.types.d.ts.map +1 -0
  48. package/dist/components/Input/icons.d.ts +15 -0
  49. package/dist/components/Input/icons.d.ts.map +1 -0
  50. package/{src/components/Input/index.ts → dist/components/Input/index.d.ts} +3 -2
  51. package/dist/components/Input/index.d.ts.map +1 -0
  52. package/dist/components/Navbar/Navbar.d.ts +63 -0
  53. package/dist/components/Navbar/Navbar.d.ts.map +1 -0
  54. package/dist/components/Navbar/Navbar.types.d.ts +194 -0
  55. package/dist/components/Navbar/Navbar.types.d.ts.map +1 -0
  56. package/dist/components/Navbar/icons.d.ts +12 -0
  57. package/dist/components/Navbar/icons.d.ts.map +1 -0
  58. package/dist/components/Navbar/index.d.ts +4 -0
  59. package/dist/components/Navbar/index.d.ts.map +1 -0
  60. package/dist/components/NavigationBar/NavigationBar.d.ts +75 -0
  61. package/dist/components/NavigationBar/NavigationBar.d.ts.map +1 -0
  62. package/dist/components/NavigationBar/NavigationBar.types.d.ts +63 -0
  63. package/dist/components/NavigationBar/NavigationBar.types.d.ts.map +1 -0
  64. package/{src/components/NavigationBar/index.ts → dist/components/NavigationBar/index.d.ts} +3 -2
  65. package/dist/components/NavigationBar/index.d.ts.map +1 -0
  66. package/dist/components/NavigationRail/NavigationRail.d.ts +7 -0
  67. package/dist/components/NavigationRail/NavigationRail.d.ts.map +1 -0
  68. package/dist/components/NavigationRail/NavigationRail.types.d.ts +92 -0
  69. package/dist/components/NavigationRail/NavigationRail.types.d.ts.map +1 -0
  70. package/{src/components/NavigationRail/index.ts → dist/components/NavigationRail/index.d.ts} +3 -2
  71. package/dist/components/NavigationRail/index.d.ts.map +1 -0
  72. package/dist/components/Notification/Notification.d.ts +52 -0
  73. package/dist/components/Notification/Notification.d.ts.map +1 -0
  74. package/dist/components/Notification/Notification.types.d.ts +138 -0
  75. package/dist/components/Notification/Notification.types.d.ts.map +1 -0
  76. package/{src/components/Notification/index.ts → dist/components/Notification/index.d.ts} +3 -3
  77. package/dist/components/Notification/index.d.ts.map +1 -0
  78. package/dist/components/POSConvention/POSConvention.d.ts +55 -0
  79. package/dist/components/POSConvention/POSConvention.d.ts.map +1 -0
  80. package/{src/components/POSConvention/POSConvention.types.ts → dist/components/POSConvention/POSConvention.types.d.ts} +37 -38
  81. package/dist/components/POSConvention/POSConvention.types.d.ts.map +1 -0
  82. package/dist/components/POSConvention/icons.d.ts +21 -0
  83. package/dist/components/POSConvention/icons.d.ts.map +1 -0
  84. package/{src/components/POSConvention/index.ts → dist/components/POSConvention/index.d.ts} +4 -3
  85. package/dist/components/POSConvention/index.d.ts.map +1 -0
  86. package/dist/components/POSLocationButton/POSLocationButton.d.ts +73 -0
  87. package/dist/components/POSLocationButton/POSLocationButton.d.ts.map +1 -0
  88. package/dist/components/POSLocationButton/POSLocationButton.types.d.ts +75 -0
  89. package/dist/components/POSLocationButton/POSLocationButton.types.d.ts.map +1 -0
  90. package/dist/components/POSLocationButton/icons.d.ts +37 -0
  91. package/dist/components/POSLocationButton/icons.d.ts.map +1 -0
  92. package/dist/components/POSLocationButton/index.d.ts +4 -0
  93. package/dist/components/POSLocationButton/index.d.ts.map +1 -0
  94. package/dist/components/POSNumberButton/POSNumberButton.d.ts +61 -0
  95. package/dist/components/POSNumberButton/POSNumberButton.d.ts.map +1 -0
  96. package/dist/components/POSNumberButton/POSNumberButton.types.d.ts +43 -0
  97. package/dist/components/POSNumberButton/POSNumberButton.types.d.ts.map +1 -0
  98. package/{src/components/POSNumberButton/index.ts → dist/components/POSNumberButton/index.d.ts} +3 -3
  99. package/dist/components/POSNumberButton/index.d.ts.map +1 -0
  100. package/dist/components/POSProductButton/POSProductButton.d.ts +59 -0
  101. package/dist/components/POSProductButton/POSProductButton.d.ts.map +1 -0
  102. package/dist/components/POSProductButton/POSProductButton.types.d.ts +40 -0
  103. package/dist/components/POSProductButton/POSProductButton.types.d.ts.map +1 -0
  104. package/{src/components/POSProductButton/index.ts → dist/components/POSProductButton/index.d.ts} +3 -2
  105. package/dist/components/POSProductButton/index.d.ts.map +1 -0
  106. package/dist/components/POSProductCard/POSProductCard.d.ts +68 -0
  107. package/dist/components/POSProductCard/POSProductCard.d.ts.map +1 -0
  108. package/dist/components/POSProductCard/POSProductCard.types.d.ts +67 -0
  109. package/dist/components/POSProductCard/POSProductCard.types.d.ts.map +1 -0
  110. package/dist/components/POSProductCard/icons.d.ts +10 -0
  111. package/dist/components/POSProductCard/icons.d.ts.map +1 -0
  112. package/{src/components/POSProductCard/index.ts → dist/components/POSProductCard/index.d.ts} +3 -2
  113. package/dist/components/POSProductCard/index.d.ts.map +1 -0
  114. package/dist/components/POSProductSidebarItems/POSProductSidebarItems.d.ts +57 -0
  115. package/dist/components/POSProductSidebarItems/POSProductSidebarItems.d.ts.map +1 -0
  116. package/dist/components/POSProductSidebarItems/POSProductSidebarItems.types.d.ts +85 -0
  117. package/dist/components/POSProductSidebarItems/POSProductSidebarItems.types.d.ts.map +1 -0
  118. package/dist/components/POSProductSidebarItems/icons.d.ts +9 -0
  119. package/dist/components/POSProductSidebarItems/icons.d.ts.map +1 -0
  120. package/{src/components/POSProductSidebarItems/index.ts → dist/components/POSProductSidebarItems/index.d.ts} +4 -3
  121. package/dist/components/POSProductSidebarItems/index.d.ts.map +1 -0
  122. package/dist/components/POSTable/POSTable.d.ts +75 -0
  123. package/dist/components/POSTable/POSTable.d.ts.map +1 -0
  124. package/dist/components/POSTable/POSTable.types.d.ts +71 -0
  125. package/dist/components/POSTable/POSTable.types.d.ts.map +1 -0
  126. package/dist/components/POSTable/index.d.ts +3 -0
  127. package/dist/components/POSTable/index.d.ts.map +1 -0
  128. package/dist/components/Pagination/Pagination.d.ts +29 -0
  129. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  130. package/dist/components/Pagination/Pagination.types.d.ts +79 -0
  131. package/dist/components/Pagination/Pagination.types.d.ts.map +1 -0
  132. package/dist/components/Pagination/icons.d.ts +18 -0
  133. package/dist/components/Pagination/icons.d.ts.map +1 -0
  134. package/{src/components/Pagination/index.ts → dist/components/Pagination/index.d.ts} +4 -3
  135. package/dist/components/Pagination/index.d.ts.map +1 -0
  136. package/dist/components/Quantity/Quantity.d.ts +38 -0
  137. package/dist/components/Quantity/Quantity.d.ts.map +1 -0
  138. package/dist/components/Quantity/Quantity.types.d.ts +59 -0
  139. package/dist/components/Quantity/Quantity.types.d.ts.map +1 -0
  140. package/dist/components/Radio/Radio.d.ts +45 -0
  141. package/dist/components/Radio/Radio.d.ts.map +1 -0
  142. package/dist/components/Radio/Radio.types.d.ts +115 -0
  143. package/dist/components/Radio/Radio.types.d.ts.map +1 -0
  144. package/dist/components/Select/Select.d.ts +37 -0
  145. package/dist/components/Select/Select.d.ts.map +1 -0
  146. package/dist/components/Select/Select.types.d.ts +124 -0
  147. package/dist/components/Select/Select.types.d.ts.map +1 -0
  148. package/dist/components/Select/icons.d.ts +16 -0
  149. package/dist/components/Select/icons.d.ts.map +1 -0
  150. package/{src/components/Select/index.ts → dist/components/Select/index.d.ts} +4 -3
  151. package/dist/components/Select/index.d.ts.map +1 -0
  152. package/dist/components/Switch/Switch.d.ts +46 -0
  153. package/dist/components/Switch/Switch.d.ts.map +1 -0
  154. package/dist/components/Switch/Switch.types.d.ts +58 -0
  155. package/dist/components/Switch/Switch.types.d.ts.map +1 -0
  156. package/dist/components/Table/Table.d.ts +64 -0
  157. package/dist/components/Table/Table.d.ts.map +1 -0
  158. package/dist/components/Table/Table.types.d.ts +173 -0
  159. package/dist/components/Table/Table.types.d.ts.map +1 -0
  160. package/dist/components/Table/index.d.ts +3 -0
  161. package/dist/components/Table/index.d.ts.map +1 -0
  162. package/dist/components/Tabs/Tabs.d.ts +76 -0
  163. package/dist/components/Tabs/Tabs.d.ts.map +1 -0
  164. package/dist/components/Tabs/Tabs.types.d.ts +107 -0
  165. package/dist/components/Tabs/Tabs.types.d.ts.map +1 -0
  166. package/dist/components/Tabs/icons.d.ts +45 -0
  167. package/dist/components/Tabs/icons.d.ts.map +1 -0
  168. package/dist/components/Tabs/index.d.ts +4 -0
  169. package/dist/components/Tabs/index.d.ts.map +1 -0
  170. package/dist/components/Textarea/Textarea.d.ts +38 -0
  171. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  172. package/dist/components/Textarea/Textarea.types.d.ts +46 -0
  173. package/dist/components/Textarea/Textarea.types.d.ts.map +1 -0
  174. package/dist/context/ThemeContext.d.ts +46 -0
  175. package/dist/context/ThemeContext.d.ts.map +1 -0
  176. package/{src/context/index.ts → dist/context/index.d.ts} +2 -1
  177. package/dist/context/index.d.ts.map +1 -0
  178. package/{src/index.ts → dist/index.d.ts} +26 -39
  179. package/dist/index.d.ts.map +1 -0
  180. package/dist/siesa-ui-kit.cjs +420 -0
  181. package/dist/siesa-ui-kit.cjs.map +1 -0
  182. package/dist/siesa-ui-kit.mjs +1360 -0
  183. package/dist/siesa-ui-kit.mjs.map +1 -0
  184. package/dist/views/ListView/ListView.d.ts +47 -0
  185. package/dist/views/ListView/ListView.d.ts.map +1 -0
  186. package/dist/views/ListView/ListView.types.d.ts +177 -0
  187. package/dist/views/ListView/ListView.types.d.ts.map +1 -0
  188. package/dist/views/ListView/icons.d.ts +60 -0
  189. package/dist/views/ListView/icons.d.ts.map +1 -0
  190. package/dist/views/ListView/index.d.ts +3 -0
  191. package/dist/views/ListView/index.d.ts.map +1 -0
  192. package/dist/views/LoginView/LoginView.d.ts +36 -0
  193. package/dist/views/LoginView/LoginView.d.ts.map +1 -0
  194. package/dist/views/LoginView/LoginView.types.d.ts +46 -0
  195. package/dist/views/LoginView/LoginView.types.d.ts.map +1 -0
  196. package/dist/views/LoginView/icons.d.ts +18 -0
  197. package/dist/views/LoginView/icons.d.ts.map +1 -0
  198. package/{src/components/LoginView/index.ts → dist/views/LoginView/index.d.ts} +4 -3
  199. package/dist/views/LoginView/index.d.ts.map +1 -0
  200. package/dist/views/ProductsView/ProductsView.d.ts +56 -0
  201. package/dist/views/ProductsView/ProductsView.d.ts.map +1 -0
  202. package/dist/views/ProductsView/ProductsView.types.d.ts +184 -0
  203. package/dist/views/ProductsView/ProductsView.types.d.ts.map +1 -0
  204. package/dist/views/ProductsView/icons.d.ts +12 -0
  205. package/dist/views/ProductsView/icons.d.ts.map +1 -0
  206. package/dist/views/ProductsView/index.d.ts +3 -0
  207. package/dist/views/ProductsView/index.d.ts.map +1 -0
  208. package/dist/views/RecoverPasswordView/RecoverPasswordView.d.ts +34 -0
  209. package/dist/views/RecoverPasswordView/RecoverPasswordView.d.ts.map +1 -0
  210. package/dist/views/RecoverPasswordView/RecoverPasswordView.types.d.ts +50 -0
  211. package/dist/views/RecoverPasswordView/RecoverPasswordView.types.d.ts.map +1 -0
  212. package/dist/views/RecoverPasswordView/icons.d.ts +9 -0
  213. package/dist/views/RecoverPasswordView/icons.d.ts.map +1 -0
  214. package/{src/views/RecoverPasswordView/index.ts → dist/views/RecoverPasswordView/index.d.ts} +3 -2
  215. package/dist/views/RecoverPasswordView/index.d.ts.map +1 -0
  216. package/dist/views/SignUpView/SignUpView.d.ts +38 -0
  217. package/dist/views/SignUpView/SignUpView.d.ts.map +1 -0
  218. package/dist/views/SignUpView/SignUpView.types.d.ts +51 -0
  219. package/dist/views/SignUpView/SignUpView.types.d.ts.map +1 -0
  220. package/dist/views/SignUpView/icons.d.ts +18 -0
  221. package/dist/views/SignUpView/icons.d.ts.map +1 -0
  222. package/{src/components/SignUpView/index.ts → dist/views/SignUpView/index.d.ts} +4 -3
  223. package/dist/views/SignUpView/index.d.ts.map +1 -0
  224. package/dist/views/TableLayoutView/TableLayoutView.d.ts +46 -0
  225. package/dist/views/TableLayoutView/TableLayoutView.d.ts.map +1 -0
  226. package/dist/views/TableLayoutView/TableLayoutView.types.d.ts +170 -0
  227. package/dist/views/TableLayoutView/TableLayoutView.types.d.ts.map +1 -0
  228. package/dist/views/TableLayoutView/icons.d.ts +27 -0
  229. package/dist/views/TableLayoutView/icons.d.ts.map +1 -0
  230. package/dist/views/TableLayoutView/index.d.ts +3 -0
  231. package/dist/views/TableLayoutView/index.d.ts.map +1 -0
  232. package/package.json +31 -22
  233. package/bin/install.cjs +0 -502
  234. package/bin/prepare-publish.cjs +0 -28
  235. package/bin/restore-folders.cjs +0 -28
  236. package/claude/agents/siesa-ui-kit-specialist.md +0 -2401
  237. package/claude/prompts/component-template.md +0 -121
  238. package/claude/settings.local.json +0 -61
  239. package/docs/border-radius.md +0 -1261
  240. package/docs/colors.md +0 -832
  241. package/docs/dark-mode-guide.md +0 -1426
  242. package/docs/filters.md +0 -1243
  243. package/docs/icons.md +0 -1283
  244. package/docs/shadows.md +0 -1377
  245. package/docs/spacing.md +0 -1684
  246. package/docs/typography.md +0 -1268
  247. package/postcss.config.cjs +0 -6
  248. package/public/,Business Logo.png +0 -0
  249. package/public/.Siesa Logo.png +0 -0
  250. package/public/bg_siesa.png +0 -0
  251. package/public/siesa_logo_mobile.png +0 -0
  252. package/public/vite.svg +0 -1
  253. package/src/App.css +0 -42
  254. package/src/App.tsx +0 -8
  255. package/src/ButtonTest.tsx +0 -147
  256. package/src/assets/fonts/README.md +0 -261
  257. package/src/assets/fonts/SiesaBT/SiesaBT-Bold.otf +0 -0
  258. package/src/assets/fonts/SiesaBT/SiesaBT-Light.otf +0 -0
  259. package/src/assets/fonts/SiesaBT/SiesaBT-Regular.otf +0 -0
  260. package/src/assets/react.svg +0 -1
  261. package/src/components/Alert/Alert.stories.tsx +0 -332
  262. package/src/components/Alert/Alert.tsx +0 -106
  263. package/src/components/Alert/Alert.types.ts +0 -54
  264. package/src/components/Avatar/Avatar.stories.tsx +0 -494
  265. package/src/components/Avatar/Avatar.tsx +0 -143
  266. package/src/components/Avatar/Avatar.types.ts +0 -53
  267. package/src/components/Badge/Badge.stories.tsx +0 -339
  268. package/src/components/Badge/Badge.tsx +0 -278
  269. package/src/components/Badge/Badge.types.ts +0 -58
  270. package/src/components/Button/Button.stories.tsx +0 -950
  271. package/src/components/Button/Button.tsx +0 -337
  272. package/src/components/Button/Button.types.ts +0 -180
  273. package/src/components/Button/icons.tsx +0 -87
  274. package/src/components/Checkbox/Checkbox.stories.tsx +0 -453
  275. package/src/components/Checkbox/Checkbox.tsx +0 -208
  276. package/src/components/Checkbox/Checkbox.types.ts +0 -61
  277. package/src/components/DescriptionList/DescriptionList.stories.tsx +0 -250
  278. package/src/components/DescriptionList/DescriptionList.tsx +0 -96
  279. package/src/components/DescriptionList/DescriptionList.types.ts +0 -29
  280. package/src/components/Divider/Divider.stories.tsx +0 -263
  281. package/src/components/Divider/Divider.tsx +0 -80
  282. package/src/components/Divider/Divider.types.ts +0 -24
  283. package/src/components/Dropdown/Dropdown.stories.tsx +0 -552
  284. package/src/components/Dropdown/Dropdown.tsx +0 -422
  285. package/src/components/Dropdown/Dropdown.types.ts +0 -146
  286. package/src/components/Dropdown/README.md +0 -266
  287. package/src/components/Dropdown/icons.tsx +0 -72
  288. package/src/components/Input/Input.stories.tsx +0 -583
  289. package/src/components/Input/Input.tsx +0 -204
  290. package/src/components/Input/Input.types.ts +0 -80
  291. package/src/components/Input/icons.tsx +0 -145
  292. package/src/components/LoginView/LoginView.stories.tsx +0 -148
  293. package/src/components/LoginView/LoginView.tsx +0 -426
  294. package/src/components/LoginView/LoginView.types.ts +0 -52
  295. package/src/components/LoginView/README.md +0 -396
  296. package/src/components/LoginView/icons.tsx +0 -85
  297. package/src/components/Navbar/Navbar.stories.tsx +0 -810
  298. package/src/components/Navbar/Navbar.tsx +0 -755
  299. package/src/components/Navbar/Navbar.types.ts +0 -219
  300. package/src/components/Navbar/README.md +0 -279
  301. package/src/components/Navbar/icons.tsx +0 -102
  302. package/src/components/Navbar/index.ts +0 -8
  303. package/src/components/NavigationBar/NavigationBar.stories.tsx +0 -406
  304. package/src/components/NavigationBar/NavigationBar.tsx +0 -246
  305. package/src/components/NavigationBar/NavigationBar.types.ts +0 -74
  306. package/src/components/NavigationBar/README.md +0 -469
  307. package/src/components/NavigationRail/NavigationRail.stories.tsx +0 -417
  308. package/src/components/NavigationRail/NavigationRail.tsx +0 -418
  309. package/src/components/NavigationRail/NavigationRail.types.ts +0 -109
  310. package/src/components/NavigationRail/README.md +0 -224
  311. package/src/components/Notification/Notification.stories.tsx +0 -513
  312. package/src/components/Notification/Notification.tsx +0 -145
  313. package/src/components/Notification/Notification.types.ts +0 -142
  314. package/src/components/Notification/README.md +0 -409
  315. package/src/components/POSConvention/POSConvention.stories.tsx +0 -235
  316. package/src/components/POSConvention/POSConvention.tsx +0 -129
  317. package/src/components/POSConvention/README.md +0 -123
  318. package/src/components/POSConvention/icons.tsx +0 -45
  319. package/src/components/POSLocationButton/POSLocationButton.stories.tsx +0 -531
  320. package/src/components/POSLocationButton/POSLocationButton.tsx +0 -247
  321. package/src/components/POSLocationButton/POSLocationButton.types.ts +0 -87
  322. package/src/components/POSLocationButton/README.md +0 -253
  323. package/src/components/POSLocationButton/icons.tsx +0 -120
  324. package/src/components/POSLocationButton/index.ts +0 -14
  325. package/src/components/POSNumberButton/POSNumberButton.stories.tsx +0 -415
  326. package/src/components/POSNumberButton/POSNumberButton.tsx +0 -179
  327. package/src/components/POSNumberButton/POSNumberButton.types.ts +0 -51
  328. package/src/components/POSNumberButton/README.md +0 -321
  329. package/src/components/POSProductButton/POSProductButton.stories.tsx +0 -318
  330. package/src/components/POSProductButton/POSProductButton.tsx +0 -152
  331. package/src/components/POSProductButton/POSProductButton.types.ts +0 -46
  332. package/src/components/POSProductButton/README.md +0 -269
  333. package/src/components/POSProductCard/POSProductCard.stories.tsx +0 -642
  334. package/src/components/POSProductCard/POSProductCard.tsx +0 -208
  335. package/src/components/POSProductCard/POSProductCard.types.ts +0 -76
  336. package/src/components/POSProductCard/README.md +0 -179
  337. package/src/components/POSProductCard/icons.tsx +0 -26
  338. package/src/components/POSProductSidebarItems/POSProductSidebarItems.stories.tsx +0 -753
  339. package/src/components/POSProductSidebarItems/POSProductSidebarItems.tsx +0 -332
  340. package/src/components/POSProductSidebarItems/POSProductSidebarItems.types.ts +0 -119
  341. package/src/components/POSProductSidebarItems/README.md +0 -198
  342. package/src/components/POSProductSidebarItems/icons.tsx +0 -21
  343. package/src/components/POSTable/POSTable.stories.tsx +0 -737
  344. package/src/components/POSTable/POSTable.tsx +0 -401
  345. package/src/components/POSTable/POSTable.types.ts +0 -83
  346. package/src/components/POSTable/README.md +0 -286
  347. package/src/components/POSTable/index.ts +0 -7
  348. package/src/components/Pagination/Pagination.stories.tsx +0 -555
  349. package/src/components/Pagination/Pagination.tsx +0 -286
  350. package/src/components/Pagination/Pagination.types.ts +0 -93
  351. package/src/components/Pagination/README.md +0 -298
  352. package/src/components/Pagination/icons.tsx +0 -47
  353. package/src/components/Quantity/Quantity.stories.tsx +0 -457
  354. package/src/components/Quantity/Quantity.tsx +0 -289
  355. package/src/components/Quantity/Quantity.types.ts +0 -70
  356. package/src/components/Radio/Radio.stories.tsx +0 -523
  357. package/src/components/Radio/Radio.tsx +0 -170
  358. package/src/components/Radio/Radio.types.ts +0 -122
  359. package/src/components/Select/README.md +0 -299
  360. package/src/components/Select/Select.stories.tsx +0 -673
  361. package/src/components/Select/Select.tsx +0 -454
  362. package/src/components/Select/Select.types.ts +0 -148
  363. package/src/components/Select/icons.tsx +0 -50
  364. package/src/components/SignUpView/SignUpView.stories.tsx +0 -129
  365. package/src/components/SignUpView/SignUpView.tsx +0 -503
  366. package/src/components/SignUpView/SignUpView.types.ts +0 -58
  367. package/src/components/SignUpView/icons.tsx +0 -71
  368. package/src/components/Switch/README.md +0 -112
  369. package/src/components/Switch/Switch.stories.tsx +0 -550
  370. package/src/components/Switch/Switch.tsx +0 -246
  371. package/src/components/Switch/Switch.types.ts +0 -67
  372. package/src/components/Table/README.md +0 -369
  373. package/src/components/Table/Table.stories.tsx +0 -805
  374. package/src/components/Table/Table.tsx +0 -688
  375. package/src/components/Table/Table.types.ts +0 -204
  376. package/src/components/Table/index.ts +0 -9
  377. package/src/components/Tabs/README.md +0 -201
  378. package/src/components/Tabs/Tabs.stories.tsx +0 -580
  379. package/src/components/Tabs/Tabs.tsx +0 -356
  380. package/src/components/Tabs/Tabs.types.ts +0 -127
  381. package/src/components/Tabs/icons.tsx +0 -129
  382. package/src/components/Tabs/index.ts +0 -11
  383. package/src/components/Textarea/Textarea.stories.tsx +0 -535
  384. package/src/components/Textarea/Textarea.tsx +0 -188
  385. package/src/components/Textarea/Textarea.types.ts +0 -54
  386. package/src/context/ThemeContext.tsx +0 -99
  387. package/src/index.css +0 -29
  388. package/src/main.tsx +0 -10
  389. package/src/views/ProductsView/ProductsView.stories.tsx +0 -344
  390. package/src/views/ProductsView/ProductsView.tsx +0 -480
  391. package/src/views/ProductsView/ProductsView.types.ts +0 -238
  392. package/src/views/ProductsView/README.md +0 -312
  393. package/src/views/ProductsView/icons.tsx +0 -38
  394. package/src/views/ProductsView/index.ts +0 -8
  395. package/src/views/RecoverPasswordView/README.md +0 -269
  396. package/src/views/RecoverPasswordView/RecoverPasswordView.stories.tsx +0 -131
  397. package/src/views/RecoverPasswordView/RecoverPasswordView.tsx +0 -376
  398. package/src/views/RecoverPasswordView/RecoverPasswordView.types.ts +0 -56
  399. package/src/views/RecoverPasswordView/icons.tsx +0 -17
  400. package/src/views/TableLayoutView/README.md +0 -268
  401. package/src/views/TableLayoutView/TableLayoutView.stories.tsx +0 -235
  402. package/src/views/TableLayoutView/TableLayoutView.tsx +0 -461
  403. package/src/views/TableLayoutView/TableLayoutView.types.ts +0 -209
  404. package/src/views/TableLayoutView/icons.tsx +0 -113
  405. package/src/views/TableLayoutView/index.ts +0 -6
  406. package/storybook/main.ts +0 -20
  407. package/storybook/preview.tsx +0 -84
  408. package/storybook/vitest.setup.ts +0 -7
  409. package/tailwind.config.js +0 -128
@@ -0,0 +1,46 @@
1
+ import type { TextareaHTMLAttributes } from 'react';
2
+ /**
3
+ * Estados visuales del Textarea
4
+ */
5
+ export type TextareaState = 'default' | 'hover' | 'focus' | 'filled' | 'disabled';
6
+ /**
7
+ * Props del componente Textarea
8
+ */
9
+ export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
10
+ /**
11
+ * Etiqueta del campo de texto
12
+ */
13
+ label?: string;
14
+ /**
15
+ * Descripción debajo del label (texto secundario)
16
+ */
17
+ description?: string;
18
+ /**
19
+ * Texto de ayuda debajo del textarea
20
+ */
21
+ helperText?: string;
22
+ /**
23
+ * Indica si hay un error de validación
24
+ * @default false
25
+ */
26
+ error?: boolean;
27
+ /**
28
+ * Mensaje de error a mostrar (reemplaza helperText cuando error=true)
29
+ */
30
+ errorMessage?: string;
31
+ /**
32
+ * Si el textarea ocupa todo el ancho del contenedor
33
+ * @default false
34
+ */
35
+ fullWidth?: boolean;
36
+ /**
37
+ * Si el textarea puede redimensionarse
38
+ * @default 'vertical'
39
+ */
40
+ resize?: 'none' | 'vertical' | 'horizontal' | 'both';
41
+ /**
42
+ * Clases CSS adicionales
43
+ */
44
+ className?: string;
45
+ }
46
+ //# sourceMappingURL=Textarea.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Textarea.types.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC9F;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;IAErD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ export type Theme = 'light' | 'dark';
3
+ interface ThemeContextType {
4
+ theme: Theme;
5
+ toggleTheme: () => void;
6
+ setTheme: (theme: Theme) => void;
7
+ }
8
+ interface ThemeProviderProps {
9
+ children: React.ReactNode;
10
+ defaultTheme?: Theme;
11
+ }
12
+ /**
13
+ * ThemeProvider - Proveedor de contexto para el tema de la aplicación
14
+ *
15
+ * Maneja el estado del tema (light/dark) y lo persiste en localStorage.
16
+ * Aplica la clase 'dark' al elemento HTML root cuando el tema es dark.
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * <ThemeProvider defaultTheme="light">
21
+ * <App />
22
+ * </ThemeProvider>
23
+ * ```
24
+ */
25
+ export declare const ThemeProvider: React.FC<ThemeProviderProps>;
26
+ /**
27
+ * useTheme - Hook para acceder al contexto del tema
28
+ *
29
+ * @returns {ThemeContextType} Objeto con el tema actual y funciones para modificarlo
30
+ *
31
+ * @example
32
+ * ```tsx
33
+ * function MyComponent() {
34
+ * const { theme, toggleTheme } = useTheme();
35
+ *
36
+ * return (
37
+ * <button onClick={toggleTheme}>
38
+ * Tema actual: {theme}
39
+ * </button>
40
+ * );
41
+ * }
42
+ * ```
43
+ */
44
+ export declare const useTheme: () => ThemeContextType;
45
+ export {};
46
+ //# sourceMappingURL=ThemeContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../src/context/ThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAErC,UAAU,gBAAgB;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAID,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwCtD,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ,QAAO,gBAQ3B,CAAC"}
@@ -1 +1,2 @@
1
- export { ThemeProvider, useTheme, type Theme } from './ThemeContext';
1
+ export { ThemeProvider, useTheme, type Theme } from './ThemeContext';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,39 +1,26 @@
1
- // Componentes
2
- export { Button } from './components/Button/Button';
3
- export type { ButtonProps, ButtonType, ButtonSize, ButtonState } from './components/Button/Button.types';
4
-
5
- export { Input } from './components/Input/Input';
6
- export type { InputProps, InputState } from './components/Input/Input.types';
7
-
8
- export { Textarea } from './components/Textarea/Textarea';
9
- export type { TextareaProps, TextareaState } from './components/Textarea/Textarea.types';
10
-
11
- export { Checkbox } from './components/Checkbox/Checkbox';
12
- export type { CheckboxProps, CheckboxState } from './components/Checkbox/Checkbox.types';
13
-
14
- export { Radio } from './components/Radio/Radio';
15
- export type { RadioProps, RadioState } from './components/Radio/Radio.types';
16
-
17
- export { Switch } from './components/Switch/Switch';
18
- export type { SwitchProps, SwitchState } from './components/Switch/Switch.types';
19
-
20
- export { Avatar } from './components/Avatar/Avatar';
21
- export type { AvatarProps, AvatarSize, AvatarType } from './components/Avatar/Avatar.types';
22
-
23
- export { Divider } from './components/Divider/Divider';
24
- export type { DividerProps, DividerType } from './components/Divider/Divider.types';
25
-
26
- export { DescriptionList } from './components/DescriptionList/DescriptionList';
27
- export type { DescriptionListProps } from './components/DescriptionList/DescriptionList.types';
28
-
29
- export { Alert } from './components/Alert/Alert';
30
- export type { AlertProps } from './components/Alert/Alert.types';
31
-
32
- export { Badge } from './components/Badge/Badge';
33
- export type { BadgeProps, BadgeColor } from './components/Badge/Badge.types';
34
-
35
- export { Quantity } from './components/Quantity/Quantity';
36
- export type { QuantityProps } from './components/Quantity/Quantity.types';
37
-
38
- // Context y Hooks
39
- export { ThemeProvider, useTheme, type Theme } from './context';
1
+ export { Button } from './components/Button/Button';
2
+ export type { ButtonProps, ButtonType, ButtonSize, ButtonState } from './components/Button/Button.types';
3
+ export { Input } from './components/Input/Input';
4
+ export type { InputProps, InputState } from './components/Input/Input.types';
5
+ export { Textarea } from './components/Textarea/Textarea';
6
+ export type { TextareaProps, TextareaState } from './components/Textarea/Textarea.types';
7
+ export { Checkbox } from './components/Checkbox/Checkbox';
8
+ export type { CheckboxProps, CheckboxState } from './components/Checkbox/Checkbox.types';
9
+ export { Radio } from './components/Radio/Radio';
10
+ export type { RadioProps, RadioState } from './components/Radio/Radio.types';
11
+ export { Switch } from './components/Switch/Switch';
12
+ export type { SwitchProps, SwitchState } from './components/Switch/Switch.types';
13
+ export { Avatar } from './components/Avatar/Avatar';
14
+ export type { AvatarProps, AvatarSize, AvatarType } from './components/Avatar/Avatar.types';
15
+ export { Divider } from './components/Divider/Divider';
16
+ export type { DividerProps, DividerType } from './components/Divider/Divider.types';
17
+ export { DescriptionList } from './components/DescriptionList/DescriptionList';
18
+ export type { DescriptionListProps } from './components/DescriptionList/DescriptionList.types';
19
+ export { Alert } from './components/Alert/Alert';
20
+ export type { AlertProps } from './components/Alert/Alert.types';
21
+ export { Badge } from './components/Badge/Badge';
22
+ export type { BadgeProps, BadgeColor } from './components/Badge/Badge.types';
23
+ export { Quantity } from './components/Quantity/Quantity';
24
+ export type { QuantityProps } from './components/Quantity/Quantity.types';
25
+ export { ThemeProvider, useTheme, type Theme } from './context';
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEzG,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAEzF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAEzF,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE5F,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEpF,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAC/E,YAAY,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAE/F,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAG1E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,KAAK,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,420 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("react"),R=({type:s="default",size:o="base",iconOnly:t=!1,leftIcon:r,rightIcon:a,children:i,disabled:n=!1,className:b="",onClick:l,htmlType:x="button",fullWidth:d=!1,ariaLabel:c,badge:g=!1,badgeCount:m,badgeColor:h="red",...k})=>{const f={xs:t?"h-6 w-6 p-1":"h-6 py-1 px-2 gap-2",sm:t?"h-7 w-7 p-1.5":"h-7 py-1 px-2 gap-2",base:t?"h-8 w-8 p-2":"h-8 py-1.5 px-2.5 gap-2",l:t?"h-9 w-9 p-2.5":"h-9 py-2 px-3 gap-3",xl:t?"h-10 w-10 p-3":"h-10 py-2 px-4 gap-3"},u={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"},y={xs:"text-xs",sm:"text-sm",base:"text-sm",l:"text-sm",xl:"text-sm"},v={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-sm
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
+ `,plain:`
29
+ bg-transparent
30
+ text-primary-custom-600
31
+ border
32
+ border-transparent
33
+ hover:bg-hover-overlay
34
+ active:scale-95
35
+ transition-all
36
+ duration-150
37
+ dark:text-dark-content-custom
38
+ dark:hover:bg-hover-overlay-dark
39
+ `},w=`
40
+ inline-flex
41
+ items-center
42
+ justify-center
43
+ rounded-md
44
+ font-bold
45
+ whitespace-nowrap
46
+ focus:outline-none
47
+ focus:ring-4
48
+ focus:ring-primary-custom-400
49
+ focus:ring-offset-2
50
+ focus:ring-offset-primary-custom-100
51
+ dark:focus:ring-dark-border-custom
52
+ dark:focus:ring-offset-dark-bg-primary
53
+ disabled:opacity-50
54
+ disabled:cursor-not-allowed
55
+ disabled:pointer-events-none
56
+ `,N=d?"w-full":"",C=[w,f[o],v[s],N,b].join(" ").replace(/\s+/g," ").trim(),$=T=>T?e.jsx("span",{className:`inline-flex items-center justify-center ${u[o]}`,children:T}):null,z=()=>t?$(r):e.jsxs(e.Fragment,{children:[r&&$(r),i&&e.jsx("span",{className:y[o],children:i}),a&&$(a)]}),B={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"}},_=B[h]||B.red,S=()=>!g&&m===void 0?null:m!==void 0?e.jsx("span",{className:`
57
+ absolute
58
+ -top-1
59
+ -right-1
60
+ flex
61
+ items-center
62
+ justify-center
63
+ min-w-[16px]
64
+ h-4
65
+ px-1
66
+ rounded-full
67
+ text-[10px]
68
+ font-bold
69
+ leading-none
70
+ ${_.bg}
71
+ ${_.text}
72
+ pointer-events-none
73
+ `.trim().replace(/\s+/g," "),"aria-label":`${m} notificaciones`,children:m>99?"99+":m}):e.jsx("span",{className:`
74
+ absolute
75
+ -top-1
76
+ -right-1
77
+ w-2
78
+ h-2
79
+ rounded-full
80
+ ${_.bg}
81
+ pointer-events-none
82
+ `.trim().replace(/\s+/g," "),"aria-label":"Notificación"});return e.jsxs("button",{type:x,className:`${C} ${g||m!==void 0?"relative":""}`,disabled:n,onClick:l,"aria-label":c,...k,children:[z(),S()]})},L=p.forwardRef(({label:s,labelSecondary:o,helperText:t,error:r=!1,errorMessage:a,leftIcon:i,rightIcon:n,fullWidth:b=!1,className:l="",disabled:x=!1,id:d,...c},g)=>{const m=d||`input-${Math.random().toString(36).substr(2,9)}`,h=`
83
+ w-full
84
+ px-3
85
+ py-1.5
86
+ text-sm
87
+ leading-6
88
+ font-normal
89
+ text-content-primary
90
+ bg-bg-primary
91
+ border
92
+ border-border-primary
93
+ rounded-md
94
+ outline-none
95
+ transition-all
96
+ duration-150
97
+ placeholder:text-content-tertiary
98
+ dark:bg-dark-bg-primary
99
+ dark:border-dark-border-primary
100
+ dark:text-dark-content-primary
101
+ dark:placeholder:text-dark-content-tertiary
102
+ `,k=x?`
103
+ opacity-50
104
+ cursor-not-allowed
105
+ bg-bg-secondary
106
+ dark:bg-dark-bg-secondary
107
+ `:`
108
+ hover:border-primary-custom-600
109
+ focus:border-primary-custom-600
110
+ focus:ring-2
111
+ focus:ring-primary-custom-400
112
+ focus:ring-offset-2
113
+ dark:hover:border-dark-border-custom
114
+ dark:focus:border-dark-border-custom
115
+ dark:focus:ring-dark-border-custom
116
+ dark:focus:ring-offset-dark-bg-primary
117
+ `,f=r?`
118
+ !border-error-border
119
+ focus:!ring-error-border/30
120
+ focus:!ring-offset-2
121
+ dark:!border-error-border
122
+ dark:focus:!ring-error-border/30
123
+ dark:focus:!ring-offset-dark-bg-primary
124
+ `:"",u=b?"w-full":"w-[265px]",y=v=>{if(!v)return null;const w=v.props.className||"";return p.cloneElement(v,{className:`w-4 h-4 text-content-tertiary dark:text-dark-content-tertiary ${w}`})};return e.jsxs("div",{className:`flex flex-col gap-2 ${u} ${l}`,children:[s&&e.jsxs("label",{htmlFor:m,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:s}),o&&e.jsx("span",{className:"text-xs leading-4 text-primary-custom-600 dark:text-primary-custom-600",children:o})]}),e.jsxs("div",{className:"relative flex items-center",children:[i&&e.jsx("div",{className:"absolute left-3 pointer-events-none",children:y(i)}),e.jsx("input",{ref:g,id:m,disabled:x,className:`
125
+ ${h}
126
+ ${k}
127
+ ${f}
128
+ ${i?"pl-9":""}
129
+ ${n?"pr-9":""}
130
+ `.trim().replace(/\s+/g," "),...c}),n&&e.jsx("div",{className:"absolute right-3 pointer-events-none",children:y(n)})]}),(t||a)&&e.jsx("p",{className:`
131
+ text-xs
132
+ leading-5
133
+ ${r?"text-error-content dark:text-error-content":"text-content-tertiary dark:text-dark-content-tertiary"}
134
+ `.trim().replace(/\s+/g," "),children:r&&a?a:t})]})});L.displayName="Input";const I=p.forwardRef(({label:s,description:o,helperText:t,error:r=!1,errorMessage:a,fullWidth:i=!1,resize:n="vertical",className:b="",disabled:l=!1,id:x,rows:d=4,...c},g)=>{const m=x||`textarea-${Math.random().toString(36).substr(2,9)}`,h=`
135
+ w-full
136
+ px-3
137
+ pr-1.5
138
+ py-1.5
139
+ text-base
140
+ leading-6
141
+ font-normal
142
+ bg-bg-primary
143
+ border
144
+ border-border-primary
145
+ rounded-lg
146
+ outline-none
147
+ transition-all
148
+ duration-150
149
+ placeholder:text-content-tertiary
150
+ dark:bg-dark-bg-primary
151
+ dark:border-dark-border-primary
152
+ dark:text-dark-content-primary
153
+ dark:placeholder:text-dark-content-tertiary
154
+ `,k=l?`
155
+ opacity-50
156
+ cursor-not-allowed
157
+ bg-bg-secondary
158
+ dark:bg-dark-bg-secondary
159
+ `:`
160
+ hover:border-zinc-400
161
+ focus:border-2
162
+ focus:border-primary-custom-600
163
+ dark:hover:border-zinc-500
164
+ dark:focus:border-2
165
+ dark:focus:border-dark-border-custom
166
+ `,f=r?`
167
+ !border-error-border
168
+ focus:!border-2
169
+ focus:!border-error-border
170
+ dark:!border-error-border
171
+ dark:focus:!border-2
172
+ dark:focus:!border-error-border
173
+ `:"",u=n==="none"?"resize-none":n==="vertical"?"resize-y":n==="horizontal"?"resize-x":"resize",y=i?"w-full":"w-[312px]";return e.jsxs("div",{className:`flex flex-col gap-2 ${y} ${b}`,children:[(s||o)&&e.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[s&&e.jsx("label",{htmlFor:m,className:"font-bold text-sm leading-5 text-content-primary dark:text-dark-content-primary",children:s}),o&&e.jsx("p",{className:"text-sm leading-5 text-content-secondary dark:text-dark-content-secondary",children:o})]}),e.jsx("textarea",{ref:g,id:m,disabled:l,rows:d,className:`
174
+ ${h}
175
+ ${k}
176
+ ${f}
177
+ ${u}
178
+ `.trim().replace(/\s+/g," "),...c}),(t||a)&&e.jsx("p",{className:`
179
+ text-sm
180
+ leading-5
181
+ text-content-tertiary
182
+ dark:text-dark-content-tertiary
183
+ `.trim().replace(/\s+/g," "),children:r&&a?a:t})]})});I.displayName="Textarea";const F=p.forwardRef(({label:s,description:o,checked:t=!1,indeterminate:r=!1,disabled:a=!1,className:i="",id:n,onChange:b,...l},x)=>{const d=p.useRef(null),c=x||d,g=n||`checkbox-${Math.random().toString(36).substr(2,9)}`;p.useEffect(()=>{c.current&&(c.current.indeterminate=r)},[r,c]);const f=[`
184
+ w-4
185
+ h-4
186
+ rounded
187
+ border
188
+ border-border-primary
189
+ bg-bg-primary
190
+ transition-all
191
+ duration-150
192
+ flex
193
+ items-center
194
+ justify-center
195
+ dark:bg-dark-bg-primary
196
+ dark:border-dark-border-primary
197
+ `,a?`
198
+ opacity-50
199
+ cursor-not-allowed
200
+ `:t||r?`
201
+ peer-hover:border-[#50a5f7]
202
+ peer-focus:ring-2
203
+ peer-focus:ring-primary-custom-400/20
204
+ peer-focus:border-primary-custom-600
205
+ dark:peer-hover:border-[#50a5f7]
206
+ dark:peer-focus:border-dark-border-custom
207
+ dark:peer-focus:ring-dark-border-custom/20
208
+ `:`
209
+ peer-hover:border-[#b6b6b9]
210
+ peer-focus:ring-2
211
+ peer-focus:ring-primary-custom-400/20
212
+ peer-focus:border-primary-custom-600
213
+ dark:peer-hover:border-[#b6b6b9]
214
+ dark:peer-focus:border-dark-border-custom
215
+ dark:peer-focus:ring-dark-border-custom/20
216
+ `,t||r?`
217
+ !bg-primary-custom-600
218
+ !border-primary-custom-500
219
+ shadow-button-inset
220
+ dark:!bg-dark-bg-inverse
221
+ dark:!border-dark-bg-inverse
222
+ `:"",a?"cursor-not-allowed":"cursor-pointer"].join(" ").replace(/\s+/g," ").trim();return e.jsxs("div",{className:`inline-flex gap-3 items-start ${i}`,children:[e.jsxs("div",{className:"flex items-center justify-center h-5 w-4 shrink-0",children:[e.jsx("input",{ref:c,type:"checkbox",id:g,checked:t,disabled:a,onChange:b,className:"peer sr-only",...l}),e.jsxs("label",{htmlFor:g,className:f,children:[t&&!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"})})]})]}),(s||o)&&e.jsxs("label",{htmlFor:g,className:`flex-1 flex flex-col gap-1 text-sm leading-5 ${a?"cursor-not-allowed opacity-50":"cursor-pointer"}`,children:[s&&e.jsx("span",{className:"font-bold text-content-primary dark:text-dark-content-primary",children:s}),o&&e.jsx("span",{className:"font-normal text-content-secondary dark:text-content-secondary",children:o})]})]})});F.displayName="Checkbox";const D=p.forwardRef(({label:s,description:o,checked:t=!1,disabled:r=!1,className:a="",id:i,onChange:n,value:b,name:l,...x},d)=>{const c=i||`radio-${Math.random().toString(36).substr(2,9)}`,g=`
223
+ w-4
224
+ h-4
225
+ rounded-full
226
+ border
227
+ border-border-primary
228
+ bg-bg-primary
229
+ transition-all
230
+ duration-150
231
+ flex
232
+ items-center
233
+ justify-center
234
+ dark:bg-dark-bg-primary
235
+ dark:border-dark-border-primary
236
+ `,m=r?`
237
+ opacity-50
238
+ cursor-not-allowed
239
+ `:`
240
+ peer-hover:border-primary-custom-600
241
+ peer-focus:ring-2
242
+ peer-focus:ring-primary-custom-400
243
+ peer-focus:border-primary-custom-600
244
+ dark:peer-hover:border-dark-border-custom
245
+ dark:peer-focus:ring-dark-border-custom
246
+ dark:peer-focus:border-dark-border-custom
247
+ `,h=t?`
248
+ !bg-primary-custom-600
249
+ !border-primary-inverse-border
250
+ shadow-[0px_2px_0px_0px_inset_rgba(255,255,255,0.15)]
251
+ dark:!bg-dark-bg-inverse
252
+ dark:!border-dark-bg-inverse
253
+ `:"";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:d,type:"radio",id:c,checked:t,disabled:r,onChange:n,value:b,name:l,className:"peer sr-only",...x}),e.jsx("label",{htmlFor:c,className:`
254
+ ${g}
255
+ ${m}
256
+ ${h}
257
+ ${r?"cursor-not-allowed":"cursor-pointer"}
258
+ `.trim().replace(/\s+/g," "),children:t&&e.jsx("div",{className:"w-1.5 h-1.5 bg-white rounded-full dark:bg-dark-content-inverse"})})]}),(s||o)&&e.jsxs("label",{htmlFor:c,className:`flex-1 flex flex-col gap-1 text-sm leading-5 ${r?"cursor-not-allowed opacity-50":"cursor-pointer"}`,children:[s&&e.jsx("span",{className:"font-bold text-content-primary dark:text-dark-content-primary",children:s}),o&&e.jsx("span",{className:"font-normal text-content-secondary dark:text-content-secondary",children:o})]})]})});D.displayName="Radio";const M=p.forwardRef(({label:s,description:o,labelPosition:t="leading",checked:r=!1,disabled:a=!1,className:i="",id:n,onChange:b,ariaLabel:l,...x},d)=>{const c=n||`switch-${Math.random().toString(36).substr(2,9)}`,g=`
259
+ w-8
260
+ h-5
261
+ rounded-xl
262
+ border
263
+ overflow-hidden
264
+ relative
265
+ transition-all
266
+ duration-200
267
+ `,m=()=>a?r?`
268
+ bg-primary-custom-600
269
+ border-primary-inverse-border
270
+ opacity-50
271
+ cursor-not-allowed
272
+ dark:bg-primary-custom-600
273
+ dark:border-primary-inverse-border
274
+ `:`
275
+ bg-[#fafafa]
276
+ border-border-primary
277
+ opacity-50
278
+ cursor-not-allowed
279
+ dark:bg-dark-bg-primary
280
+ dark:border-dark-border-primary
281
+ `:r?`
282
+ bg-primary-custom-600
283
+ border-primary-inverse-border
284
+ cursor-pointer
285
+ peer-hover:border-[#307cc5]
286
+ peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
287
+ dark:bg-primary-custom-600
288
+ dark:border-primary-inverse-border
289
+ dark:peer-hover:border-[#307cc5]
290
+ dark:peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
291
+ `:`
292
+ bg-[#fafafa]
293
+ border-border-primary
294
+ cursor-pointer
295
+ peer-hover:border-[#b6b6b9]
296
+ peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
297
+ dark:bg-dark-bg-primary
298
+ dark:border-dark-border-primary
299
+ dark:peer-hover:border-[#b6b6b9]
300
+ dark:peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
301
+ `,h=()=>{const v=`
302
+ absolute
303
+ w-4
304
+ h-4
305
+ bg-white
306
+ rounded-[10px]
307
+ border
308
+ top-1/2
309
+ -translate-y-1/2
310
+ transition-all
311
+ duration-200
312
+ `,w=r?"left-[13px]":"left-px";return a?`${v} ${w} ${r?"border-primary-inverse-border dark:border-primary-inverse-border":"border-border-primary dark:border-dark-border-primary"}`:`${v} ${w} ${r?`
313
+ border-primary-inverse-border
314
+ peer-hover:border-[#307cc5]
315
+ dark:border-primary-inverse-border
316
+ dark:peer-hover:border-[#307cc5]
317
+ `:`
318
+ border-border-primary
319
+ peer-hover:border-[#b6b6b9]
320
+ dark:border-dark-border-primary
321
+ dark:peer-hover:border-[#b6b6b9]
322
+ `}`},k=[g,m()].join(" ").replace(/\s+/g," ").trim(),f=h().replace(/\s+/g," ").trim(),u=s||o?e.jsxs("label",{htmlFor:c,className:`flex-1 flex flex-col gap-1 text-sm leading-5 ${a?"cursor-not-allowed opacity-50":"cursor-pointer"}`,children:[s&&e.jsx("span",{className:"font-bold text-content-primary dark:text-dark-content-primary",children:s}),o&&e.jsx("span",{className:"font-normal text-content-secondary dark:text-content-secondary",children:o})]}):null,y=e.jsxs("div",{className:"flex items-center justify-center shrink-0",children:[e.jsx("input",{ref:d,type:"checkbox",id:c,checked:r,disabled:a,onChange:b,className:"peer sr-only","aria-label":l||s,...x}),e.jsx("label",{htmlFor:c,className:k,"aria-hidden":"true",children:e.jsx("div",{className:f})})]});return e.jsx("div",{className:`flex gap-2 items-center w-[344px] ${i}`,children:t==="leading"?e.jsxs(e.Fragment,{children:[u,y]}):e.jsxs(e.Fragment,{children:[y,u]})})});M.displayName="Switch";const E=p.forwardRef(({size:s="10",type:o="circular",src:t,alt:r="",initials:a,className:i="",...n},b)=>{const l={4:"w-5 h-5",6:"w-6 h-6",8:"w-8 h-8",10:"w-10 h-10"},x={4:"text-xs",6:"text-xs",8:"text-sm",10:"text-base"},d={circular:"rounded-full",rounded:"rounded-md"},c=`
323
+ relative
324
+ inline-flex
325
+ items-center
326
+ justify-center
327
+ overflow-hidden
328
+ ${l[s]}
329
+ ${d[o]}
330
+ `;return t?e.jsx("div",{ref:b,className:`${c} ${i}`.trim().replace(/\s+/g," "),children:e.jsx("img",{src:t,alt:r,className:"w-full h-full object-cover",...n})}):a?e.jsx("div",{ref:b,className:`
331
+ ${c}
332
+ ${x[s]}
333
+ bg-content-primary
334
+ text-white
335
+ font-normal
336
+ dark:bg-dark-bg-inverse
337
+ dark:text-dark-content-inverse
338
+ ${i}
339
+ `.trim().replace(/\s+/g," "),children:e.jsx("span",{className:"leading-none",children:a})}):e.jsx("div",{ref:b,className:`
340
+ ${c}
341
+ bg-background-secondary
342
+ dark:bg-dark-bg-primary
343
+ ${i}
344
+ `.trim().replace(/\s+/g," ")})});E.displayName="Avatar";const A=p.forwardRef(({type:s="default",className:o="",...t},r)=>{const n=["w-full h-px border-0",{default:"bg-border-primary dark:bg-dark-border-primary",soft:"bg-border-secondary dark:bg-gray-700"}[s],o].join(" ").replace(/\s+/g," ").trim();return e.jsx("hr",{ref:r,className:n,...t})});A.displayName="Divider";const P=p.forwardRef(({term:s,details:o,className:t="",...r},a)=>{const i=`
345
+ flex
346
+ flex-wrap
347
+ gap-1
348
+ items-start
349
+ py-2.5
350
+ border-b
351
+ border-border-secondary
352
+ dark:border-gray-700
353
+ `,n="flex-1 min-w-[180px]",b=[i,t].join(" ").replace(/\s+/g," ").trim();return e.jsxs("div",{ref:a,className:b,...r,children:[e.jsx("div",{className:n,children:e.jsx("p",{className:"text-sm leading-5 text-content-secondary dark:text-gray-400 font-normal",children:s})}),e.jsx("div",{className:n,children:e.jsx("p",{className:"text-sm leading-5 text-content-primary dark:text-dark-content-primary font-normal",children:o})})]})});P.displayName="DescriptionList";const W=p.forwardRef(({title:s,description:o,children:t,actions:r,onCancel:a,onConfirm:i,cancelText:n="Cancelar",confirmText:b="Confirmar",className:l="",...x},d)=>{const c=r||e.jsxs(e.Fragment,{children:[a&&e.jsx(R,{type:"plain",size:"base",onClick:a,children:n}),i&&e.jsx(R,{type:"default",size:"base",onClick:i,children:b})]});return e.jsx("div",{ref:d,className:`
354
+ w-[512px]
355
+ bg-white
356
+ dark:bg-dark-bg-primary
357
+ border
358
+ border-border-primary
359
+ dark:border-dark-border-primary
360
+ rounded-xl
361
+ ${l}
362
+ `.trim().replace(/\s+/g," "),...x,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:s}),o&&e.jsx("p",{className:"text-sm leading-5 font-normal text-content-tertiary dark:text-content-tertiary",children:o})]}),t&&e.jsx("div",{className:"flex flex-col gap-3",children:t}),e.jsx("div",{className:"flex flex-wrap gap-3 items-center justify-end",children:c})]})})});W.displayName="Alert";const H=p.forwardRef(({color:s="zinc",leftIcon:o,label:t,count:r,className:a="",...i},n)=>{const l={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"}}[s],x=c=>{const g=c.props.className||"";return p.cloneElement(c,{className:`w-3 h-3 ${g}`.trim()})},d=["inline-flex","items-center","gap-1","px-1.5","py-1","rounded-md","font-sans",l.bg,l.hover,"transition-colors","duration-200",a].filter(Boolean).join(" ").replace(/\s+/g," ").trim();return e.jsxs("div",{ref:n,className:d,...i,children:[o&&e.jsx("div",{className:`flex items-center justify-center ${l.text}`,children:x(o)}),e.jsx("span",{className:`font-sans text-xs leading-4 ${l.text}`,children:t}),r!==void 0&&e.jsx("div",{className:`
363
+ h-3
364
+ flex
365
+ items-center
366
+ justify-center
367
+ px-0.5
368
+ rounded-sm
369
+ min-w-[12px]
370
+ ${l.notificationBg}
371
+ `.trim().replace(/\s+/g," "),children:e.jsx("span",{className:`font-sans text-xs leading-4 ${l.notificationText}`,children:r})})]})});H.displayName="Badge";const Q=p.forwardRef(({value:s,defaultValue:o=0,onChange:t,min:r=0,max:a,label:i,linkText:n,onLinkClick:b,helperText:l,error:x=!1,disabled:d=!1,className:c="",...g},m)=>{const[h,k]=p.useState(o),f=s!==void 0,u=f?s:h;p.useEffect(()=>{f||k(o)},[o,f]);const y=T=>{let j=T;r!==void 0&&j<r&&(j=r),a!==void 0&&j>a&&(j=a),f||k(j),t?.(j)},v=()=>{d||y(u-1)},w=()=>{d||y(u+1)},N=d||r!==void 0&&u<=r,C=d||a!==void 0&&u>=a,$=()=>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"})}),z=()=>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"})}),B=x?"border-error-border dark:border-error-border":"border-border-primary dark:border-dark-border-primary",_=!d&&!x?"hover:border-[#f9f9f9] dark:hover:border-[#f9f9f9]":"",S=!d&&!x?"focus-within:border-2 focus-within:border-[#329cff] dark:focus-within:border-[#329cff]":"";return e.jsxs("div",{ref:m,className:`flex flex-col gap-2 ${c}`.trim(),...g,children:[i&&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:i}),n&&e.jsx("button",{type:"button",onClick:b,disabled:d,className:`
372
+ text-xs leading-4
373
+ text-primary-custom-600
374
+ hover:underline
375
+ dark:text-primary-custom-600
376
+ ${d?"opacity-50 cursor-not-allowed":"cursor-pointer"}
377
+ transition-colors
378
+ duration-200
379
+ `.trim().replace(/\s+/g," "),children:n})]}),e.jsxs("div",{className:`
380
+ flex
381
+ items-center
382
+ gap-2
383
+ px-3
384
+ py-1.5
385
+ bg-white
386
+ dark:bg-dark-bg-primary
387
+ border
388
+ ${B}
389
+ ${_}
390
+ ${S}
391
+ rounded-lg
392
+ transition-colors
393
+ duration-200
394
+ ${d?"opacity-50 cursor-not-allowed":""}
395
+ `.trim().replace(/\s+/g," "),children:[e.jsx("button",{type:"button",onClick:v,disabled:N,className:`
396
+ flex
397
+ items-center
398
+ justify-center
399
+ w-4
400
+ h-4
401
+ ${N?"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"}
402
+ transition-colors
403
+ duration-200
404
+ `.trim().replace(/\s+/g," "),"aria-label":"Decrementar",children:e.jsx($,{})}),e.jsx("div",{className:"flex-1 text-center",children:e.jsx("span",{className:`
405
+ text-base leading-6
406
+ ${u===0?"text-content-tertiary dark:text-content-tertiary":"text-content-primary dark:text-dark-content-primary"}
407
+ `.trim().replace(/\s+/g," "),children:u})}),e.jsx("button",{type:"button",onClick:w,disabled:C,className:`
408
+ flex
409
+ items-center
410
+ justify-center
411
+ w-4
412
+ h-4
413
+ ${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"}
414
+ transition-colors
415
+ duration-200
416
+ `.trim().replace(/\s+/g," "),"aria-label":"Incrementar",children:e.jsx(z,{})})]}),l&&e.jsx("p",{className:`
417
+ text-sm leading-5
418
+ ${x?"text-error-content dark:text-error-content":"text-content-tertiary dark:text-content-tertiary"}
419
+ `.trim().replace(/\s+/g," "),children:l})]})});Q.displayName="Quantity";const V=p.createContext(void 0),q=({children:s,defaultTheme:o="light"})=>{const[t,r]=p.useState(()=>typeof window<"u"&&localStorage.getItem("siesa-ui-theme")||o);p.useEffect(()=>{const n=window.document.documentElement;t==="dark"?n.classList.add("dark"):n.classList.remove("dark"),localStorage.setItem("siesa-ui-theme",t)},[t]);const a=()=>{r(n=>n==="light"?"dark":"light")},i=n=>{r(n)};return e.jsx(V.Provider,{value:{theme:t,toggleTheme:a,setTheme:i},children:s})},G=()=>{const s=p.useContext(V);if(s===void 0)throw new Error("useTheme debe ser usado dentro de un ThemeProvider");return s};exports.Alert=W;exports.Avatar=E;exports.Badge=H;exports.Button=R;exports.Checkbox=F;exports.DescriptionList=P;exports.Divider=A;exports.Input=L;exports.Quantity=Q;exports.Radio=D;exports.Switch=M;exports.Textarea=I;exports.ThemeProvider=q;exports.useTheme=G;
420
+ //# sourceMappingURL=siesa-ui-kit.cjs.map