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,1360 @@
1
+ import { jsxs as b, Fragment as S, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as v, cloneElement as M, useRef as E, useEffect as D, useState as R, createContext as P, useContext as W } from "react";
3
+ const F = ({
4
+ type: n = "default",
5
+ size: o = "base",
6
+ iconOnly: t = !1,
7
+ leftIcon: r,
8
+ rightIcon: a,
9
+ children: i,
10
+ disabled: s = !1,
11
+ className: m = "",
12
+ onClick: l,
13
+ htmlType: p = "button",
14
+ fullWidth: d = !1,
15
+ ariaLabel: c,
16
+ badge: g = !1,
17
+ badgeCount: x,
18
+ badgeColor: h = "red",
19
+ ...y
20
+ }) => {
21
+ const f = {
22
+ xs: t ? "h-6 w-6 p-1" : "h-6 py-1 px-2 gap-2",
23
+ sm: t ? "h-7 w-7 p-1.5" : "h-7 py-1 px-2 gap-2",
24
+ base: t ? "h-8 w-8 p-2" : "h-8 py-1.5 px-2.5 gap-2",
25
+ l: t ? "h-9 w-9 p-2.5" : "h-9 py-2 px-3 gap-3",
26
+ xl: t ? "h-10 w-10 p-3" : "h-10 py-2 px-4 gap-3"
27
+ }, u = {
28
+ xs: "w-4 h-4",
29
+ sm: "w-4 h-4",
30
+ base: "w-4 h-4",
31
+ l: "w-4 h-4",
32
+ xl: "w-4 h-4"
33
+ }, k = {
34
+ xs: "text-xs",
35
+ // Label Tiny - 12px
36
+ sm: "text-sm",
37
+ // Label Small - 14px
38
+ base: "text-sm",
39
+ // Label Small - 14px (default para base)
40
+ l: "text-sm",
41
+ // Label Small - 14px (corregido según Figma)
42
+ xl: "text-sm"
43
+ // Label Small - 14px (corregido según Figma)
44
+ }, w = {
45
+ default: `
46
+ bg-primary-custom-600
47
+ text-primary-inverse-content
48
+ border
49
+ border-primary-inverse-border
50
+ shadow-button-inset
51
+ hover:bg-primary-custom-500
52
+ active:scale-95
53
+ transition-all
54
+ duration-150
55
+ dark:bg-dark-bg-inverse
56
+ dark:text-dark-content-inverse
57
+ dark:border-dark-border-inverse
58
+ dark:hover:bg-dark-bg-inverse/90
59
+ `,
60
+ outline: `
61
+ bg-transparent
62
+ text-primary-custom-600
63
+ border
64
+ border-primary-custom-300
65
+ shadow-sm
66
+ hover:bg-primary-custom-100
67
+ active:scale-95
68
+ transition-all
69
+ duration-150
70
+ dark:text-dark-content-custom
71
+ dark:border-dark-border-custom
72
+ dark:hover:bg-dark-bg-custom/20
73
+ `,
74
+ plain: `
75
+ bg-transparent
76
+ text-primary-custom-600
77
+ border
78
+ border-transparent
79
+ hover:bg-hover-overlay
80
+ active:scale-95
81
+ transition-all
82
+ duration-150
83
+ dark:text-dark-content-custom
84
+ dark:hover:bg-hover-overlay-dark
85
+ `
86
+ }, N = `
87
+ inline-flex
88
+ items-center
89
+ justify-center
90
+ rounded-md
91
+ font-bold
92
+ whitespace-nowrap
93
+ focus:outline-none
94
+ focus:ring-4
95
+ focus:ring-primary-custom-400
96
+ focus:ring-offset-2
97
+ focus:ring-offset-primary-custom-100
98
+ dark:focus:ring-dark-border-custom
99
+ dark:focus:ring-offset-dark-bg-primary
100
+ disabled:opacity-50
101
+ disabled:cursor-not-allowed
102
+ disabled:pointer-events-none
103
+ `, $ = d ? "w-full" : "", _ = [
104
+ N,
105
+ f[o],
106
+ w[n],
107
+ $,
108
+ m
109
+ ].join(" ").replace(/\s+/g, " ").trim(), B = (j) => j ? /* @__PURE__ */ e("span", { className: `inline-flex items-center justify-center ${u[o]}`, children: j }) : null, L = () => t ? B(r) : /* @__PURE__ */ b(S, { children: [
110
+ r && B(r),
111
+ i && /* @__PURE__ */ e("span", { className: k[o], children: i }),
112
+ a && B(a)
113
+ ] }), z = {
114
+ zinc: { bg: "bg-zinc-600", text: "text-white" },
115
+ red: { bg: "bg-red-700", text: "text-white" },
116
+ orange: { bg: "bg-orange-700", text: "text-white" },
117
+ amber: { bg: "bg-amber-700", text: "text-white" },
118
+ yellow: { bg: "bg-yellow-700", text: "text-white" },
119
+ lime: { bg: "bg-lime-700", text: "text-white" },
120
+ green: { bg: "bg-green-700", text: "text-white" },
121
+ emerald: { bg: "bg-emerald-700", text: "text-white" },
122
+ teal: { bg: "bg-teal-700", text: "text-white" },
123
+ cyan: { bg: "bg-cyan-700", text: "text-white" },
124
+ sky: { bg: "bg-sky-700", text: "text-white" },
125
+ blue: { bg: "bg-blue-700", text: "text-white" },
126
+ indigo: { bg: "bg-indigo-700", text: "text-white" },
127
+ violet: { bg: "bg-violet-700", text: "text-white" },
128
+ purple: { bg: "bg-purple-700", text: "text-white" },
129
+ fuchsia: { bg: "bg-fuchsia-700", text: "text-white" },
130
+ pink: { bg: "bg-pink-700", text: "text-white" },
131
+ rose: { bg: "bg-rose-700", text: "text-white" },
132
+ primary: { bg: "bg-primary-custom-600", text: "text-white" },
133
+ secondary: { bg: "bg-zinc-600", text: "text-white" },
134
+ tertiary: { bg: "bg-zinc-600", text: "text-white" }
135
+ }, T = z[h] || z.red, I = () => !g && x === void 0 ? null : x !== void 0 ? /* @__PURE__ */ e(
136
+ "span",
137
+ {
138
+ className: `
139
+ absolute
140
+ -top-1
141
+ -right-1
142
+ flex
143
+ items-center
144
+ justify-center
145
+ min-w-[16px]
146
+ h-4
147
+ px-1
148
+ rounded-full
149
+ text-[10px]
150
+ font-bold
151
+ leading-none
152
+ ${T.bg}
153
+ ${T.text}
154
+ pointer-events-none
155
+ `.trim().replace(/\s+/g, " "),
156
+ "aria-label": `${x} notificaciones`,
157
+ children: x > 99 ? "99+" : x
158
+ }
159
+ ) : /* @__PURE__ */ e(
160
+ "span",
161
+ {
162
+ className: `
163
+ absolute
164
+ -top-1
165
+ -right-1
166
+ w-2
167
+ h-2
168
+ rounded-full
169
+ ${T.bg}
170
+ pointer-events-none
171
+ `.trim().replace(/\s+/g, " "),
172
+ "aria-label": "Notificación"
173
+ }
174
+ );
175
+ return /* @__PURE__ */ b(
176
+ "button",
177
+ {
178
+ type: p,
179
+ className: `${_} ${g || x !== void 0 ? "relative" : ""}`,
180
+ disabled: s,
181
+ onClick: l,
182
+ "aria-label": c,
183
+ ...y,
184
+ children: [
185
+ L(),
186
+ I()
187
+ ]
188
+ }
189
+ );
190
+ }, H = v(
191
+ ({
192
+ label: n,
193
+ labelSecondary: o,
194
+ helperText: t,
195
+ error: r = !1,
196
+ errorMessage: a,
197
+ leftIcon: i,
198
+ rightIcon: s,
199
+ fullWidth: m = !1,
200
+ className: l = "",
201
+ disabled: p = !1,
202
+ id: d,
203
+ ...c
204
+ }, g) => {
205
+ const x = d || `input-${Math.random().toString(36).substr(2, 9)}`, h = `
206
+ w-full
207
+ px-3
208
+ py-1.5
209
+ text-sm
210
+ leading-6
211
+ font-normal
212
+ text-content-primary
213
+ bg-bg-primary
214
+ border
215
+ border-border-primary
216
+ rounded-md
217
+ outline-none
218
+ transition-all
219
+ duration-150
220
+ placeholder:text-content-tertiary
221
+ dark:bg-dark-bg-primary
222
+ dark:border-dark-border-primary
223
+ dark:text-dark-content-primary
224
+ dark:placeholder:text-dark-content-tertiary
225
+ `, y = p ? `
226
+ opacity-50
227
+ cursor-not-allowed
228
+ bg-bg-secondary
229
+ dark:bg-dark-bg-secondary
230
+ ` : `
231
+ hover:border-primary-custom-600
232
+ focus:border-primary-custom-600
233
+ focus:ring-2
234
+ focus:ring-primary-custom-400
235
+ focus:ring-offset-2
236
+ dark:hover:border-dark-border-custom
237
+ dark:focus:border-dark-border-custom
238
+ dark:focus:ring-dark-border-custom
239
+ dark:focus:ring-offset-dark-bg-primary
240
+ `, f = r ? `
241
+ !border-error-border
242
+ focus:!ring-error-border/30
243
+ focus:!ring-offset-2
244
+ dark:!border-error-border
245
+ dark:focus:!ring-error-border/30
246
+ dark:focus:!ring-offset-dark-bg-primary
247
+ ` : "", u = m ? "w-full" : "w-[265px]", k = (w) => {
248
+ if (!w) return null;
249
+ const N = w.props.className || "";
250
+ return M(w, {
251
+ className: `w-4 h-4 text-content-tertiary dark:text-dark-content-tertiary ${N}`
252
+ });
253
+ };
254
+ return /* @__PURE__ */ b("div", { className: `flex flex-col gap-2 ${u} ${l}`, children: [
255
+ n && /* @__PURE__ */ b(
256
+ "label",
257
+ {
258
+ htmlFor: x,
259
+ className: "flex items-center w-full font-bold text-sm leading-5 text-content-primary dark:text-dark-content-primary",
260
+ children: [
261
+ /* @__PURE__ */ e("span", { className: "flex-1", children: n }),
262
+ o && /* @__PURE__ */ e("span", { className: "text-xs leading-4 text-primary-custom-600 dark:text-primary-custom-600", children: o })
263
+ ]
264
+ }
265
+ ),
266
+ /* @__PURE__ */ b("div", { className: "relative flex items-center", children: [
267
+ i && /* @__PURE__ */ e("div", { className: "absolute left-3 pointer-events-none", children: k(i) }),
268
+ /* @__PURE__ */ e(
269
+ "input",
270
+ {
271
+ ref: g,
272
+ id: x,
273
+ disabled: p,
274
+ className: `
275
+ ${h}
276
+ ${y}
277
+ ${f}
278
+ ${i ? "pl-9" : ""}
279
+ ${s ? "pr-9" : ""}
280
+ `.trim().replace(/\s+/g, " "),
281
+ ...c
282
+ }
283
+ ),
284
+ s && /* @__PURE__ */ e("div", { className: "absolute right-3 pointer-events-none", children: k(s) })
285
+ ] }),
286
+ (t || a) && /* @__PURE__ */ e(
287
+ "p",
288
+ {
289
+ className: `
290
+ text-xs
291
+ leading-5
292
+ ${r ? "text-error-content dark:text-error-content" : "text-content-tertiary dark:text-dark-content-tertiary"}
293
+ `.trim().replace(/\s+/g, " "),
294
+ children: r && a ? a : t
295
+ }
296
+ )
297
+ ] });
298
+ }
299
+ );
300
+ H.displayName = "Input";
301
+ const V = v(
302
+ ({
303
+ label: n,
304
+ description: o,
305
+ helperText: t,
306
+ error: r = !1,
307
+ errorMessage: a,
308
+ fullWidth: i = !1,
309
+ resize: s = "vertical",
310
+ className: m = "",
311
+ disabled: l = !1,
312
+ id: p,
313
+ rows: d = 4,
314
+ ...c
315
+ }, g) => {
316
+ const x = p || `textarea-${Math.random().toString(36).substr(2, 9)}`, h = `
317
+ w-full
318
+ px-3
319
+ pr-1.5
320
+ py-1.5
321
+ text-base
322
+ leading-6
323
+ font-normal
324
+ bg-bg-primary
325
+ border
326
+ border-border-primary
327
+ rounded-lg
328
+ outline-none
329
+ transition-all
330
+ duration-150
331
+ placeholder:text-content-tertiary
332
+ dark:bg-dark-bg-primary
333
+ dark:border-dark-border-primary
334
+ dark:text-dark-content-primary
335
+ dark:placeholder:text-dark-content-tertiary
336
+ `, y = l ? `
337
+ opacity-50
338
+ cursor-not-allowed
339
+ bg-bg-secondary
340
+ dark:bg-dark-bg-secondary
341
+ ` : `
342
+ hover:border-zinc-400
343
+ focus:border-2
344
+ focus:border-primary-custom-600
345
+ dark:hover:border-zinc-500
346
+ dark:focus:border-2
347
+ dark:focus:border-dark-border-custom
348
+ `, f = r ? `
349
+ !border-error-border
350
+ focus:!border-2
351
+ focus:!border-error-border
352
+ dark:!border-error-border
353
+ dark:focus:!border-2
354
+ dark:focus:!border-error-border
355
+ ` : "", u = s === "none" ? "resize-none" : s === "vertical" ? "resize-y" : s === "horizontal" ? "resize-x" : "resize";
356
+ return /* @__PURE__ */ b("div", { className: `flex flex-col gap-2 ${i ? "w-full" : "w-[312px]"} ${m}`, children: [
357
+ (n || o) && /* @__PURE__ */ b("div", { className: "flex flex-col gap-1 w-full", children: [
358
+ n && /* @__PURE__ */ e(
359
+ "label",
360
+ {
361
+ htmlFor: x,
362
+ className: "font-bold text-sm leading-5 text-content-primary dark:text-dark-content-primary",
363
+ children: n
364
+ }
365
+ ),
366
+ o && /* @__PURE__ */ e("p", { className: "text-sm leading-5 text-content-secondary dark:text-dark-content-secondary", children: o })
367
+ ] }),
368
+ /* @__PURE__ */ e(
369
+ "textarea",
370
+ {
371
+ ref: g,
372
+ id: x,
373
+ disabled: l,
374
+ rows: d,
375
+ className: `
376
+ ${h}
377
+ ${y}
378
+ ${f}
379
+ ${u}
380
+ `.trim().replace(/\s+/g, " "),
381
+ ...c
382
+ }
383
+ ),
384
+ (t || a) && /* @__PURE__ */ e(
385
+ "p",
386
+ {
387
+ className: `
388
+ text-sm
389
+ leading-5
390
+ text-content-tertiary
391
+ dark:text-dark-content-tertiary
392
+ `.trim().replace(/\s+/g, " "),
393
+ children: r && a ? a : t
394
+ }
395
+ )
396
+ ] });
397
+ }
398
+ );
399
+ V.displayName = "Textarea";
400
+ const Q = v(
401
+ ({
402
+ label: n,
403
+ description: o,
404
+ checked: t = !1,
405
+ indeterminate: r = !1,
406
+ disabled: a = !1,
407
+ className: i = "",
408
+ id: s,
409
+ onChange: m,
410
+ ...l
411
+ }, p) => {
412
+ const d = E(null), c = p || d, g = s || `checkbox-${Math.random().toString(36).substr(2, 9)}`;
413
+ D(() => {
414
+ c.current && (c.current.indeterminate = r);
415
+ }, [r, c]);
416
+ const f = [
417
+ `
418
+ w-4
419
+ h-4
420
+ rounded
421
+ border
422
+ border-border-primary
423
+ bg-bg-primary
424
+ transition-all
425
+ duration-150
426
+ flex
427
+ items-center
428
+ justify-center
429
+ dark:bg-dark-bg-primary
430
+ dark:border-dark-border-primary
431
+ `,
432
+ a ? `
433
+ opacity-50
434
+ cursor-not-allowed
435
+ ` : t || r ? `
436
+ peer-hover:border-[#50a5f7]
437
+ peer-focus:ring-2
438
+ peer-focus:ring-primary-custom-400/20
439
+ peer-focus:border-primary-custom-600
440
+ dark:peer-hover:border-[#50a5f7]
441
+ dark:peer-focus:border-dark-border-custom
442
+ dark:peer-focus:ring-dark-border-custom/20
443
+ ` : `
444
+ peer-hover:border-[#b6b6b9]
445
+ peer-focus:ring-2
446
+ peer-focus:ring-primary-custom-400/20
447
+ peer-focus:border-primary-custom-600
448
+ dark:peer-hover:border-[#b6b6b9]
449
+ dark:peer-focus:border-dark-border-custom
450
+ dark:peer-focus:ring-dark-border-custom/20
451
+ `,
452
+ t || r ? `
453
+ !bg-primary-custom-600
454
+ !border-primary-custom-500
455
+ shadow-button-inset
456
+ dark:!bg-dark-bg-inverse
457
+ dark:!border-dark-bg-inverse
458
+ ` : "",
459
+ a ? "cursor-not-allowed" : "cursor-pointer"
460
+ ].join(" ").replace(/\s+/g, " ").trim();
461
+ return /* @__PURE__ */ b("div", { className: `inline-flex gap-3 items-start ${i}`, children: [
462
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-center h-5 w-4 shrink-0", children: [
463
+ /* @__PURE__ */ e(
464
+ "input",
465
+ {
466
+ ref: c,
467
+ type: "checkbox",
468
+ id: g,
469
+ checked: t,
470
+ disabled: a,
471
+ onChange: m,
472
+ className: "peer sr-only",
473
+ ...l
474
+ }
475
+ ),
476
+ /* @__PURE__ */ b("label", { htmlFor: g, className: f, children: [
477
+ t && !r && /* @__PURE__ */ e(
478
+ "svg",
479
+ {
480
+ className: "w-3 h-3 text-primary-inverse-content pointer-events-none",
481
+ viewBox: "0 0 12 12",
482
+ fill: "none",
483
+ xmlns: "http://www.w3.org/2000/svg",
484
+ children: /* @__PURE__ */ e(
485
+ "path",
486
+ {
487
+ d: "M10 3L4.5 8.5L2 6",
488
+ stroke: "currentColor",
489
+ strokeWidth: "2",
490
+ strokeLinecap: "round",
491
+ strokeLinejoin: "round"
492
+ }
493
+ )
494
+ }
495
+ ),
496
+ r && /* @__PURE__ */ e(
497
+ "svg",
498
+ {
499
+ className: "w-3 h-3 text-primary-inverse-content pointer-events-none",
500
+ viewBox: "0 0 12 12",
501
+ fill: "none",
502
+ xmlns: "http://www.w3.org/2000/svg",
503
+ children: /* @__PURE__ */ e(
504
+ "path",
505
+ {
506
+ d: "M2 6H10",
507
+ stroke: "currentColor",
508
+ strokeWidth: "2",
509
+ strokeLinecap: "round"
510
+ }
511
+ )
512
+ }
513
+ )
514
+ ] })
515
+ ] }),
516
+ (n || o) && /* @__PURE__ */ b(
517
+ "label",
518
+ {
519
+ htmlFor: g,
520
+ className: `flex-1 flex flex-col gap-1 text-sm leading-5 ${a ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
521
+ children: [
522
+ n && /* @__PURE__ */ e("span", { className: "font-bold text-content-primary dark:text-dark-content-primary", children: n }),
523
+ o && /* @__PURE__ */ e("span", { className: "font-normal text-content-secondary dark:text-content-secondary", children: o })
524
+ ]
525
+ }
526
+ )
527
+ ] });
528
+ }
529
+ );
530
+ Q.displayName = "Checkbox";
531
+ const q = v(
532
+ ({
533
+ label: n,
534
+ description: o,
535
+ checked: t = !1,
536
+ disabled: r = !1,
537
+ className: a = "",
538
+ id: i,
539
+ onChange: s,
540
+ value: m,
541
+ name: l,
542
+ ...p
543
+ }, d) => {
544
+ const c = i || `radio-${Math.random().toString(36).substr(2, 9)}`, g = `
545
+ w-4
546
+ h-4
547
+ rounded-full
548
+ border
549
+ border-border-primary
550
+ bg-bg-primary
551
+ transition-all
552
+ duration-150
553
+ flex
554
+ items-center
555
+ justify-center
556
+ dark:bg-dark-bg-primary
557
+ dark:border-dark-border-primary
558
+ `, x = r ? `
559
+ opacity-50
560
+ cursor-not-allowed
561
+ ` : `
562
+ peer-hover:border-primary-custom-600
563
+ peer-focus:ring-2
564
+ peer-focus:ring-primary-custom-400
565
+ peer-focus:border-primary-custom-600
566
+ dark:peer-hover:border-dark-border-custom
567
+ dark:peer-focus:ring-dark-border-custom
568
+ dark:peer-focus:border-dark-border-custom
569
+ `, h = t ? `
570
+ !bg-primary-custom-600
571
+ !border-primary-inverse-border
572
+ shadow-[0px_2px_0px_0px_inset_rgba(255,255,255,0.15)]
573
+ dark:!bg-dark-bg-inverse
574
+ dark:!border-dark-bg-inverse
575
+ ` : "";
576
+ return /* @__PURE__ */ b("div", { className: `flex gap-3 items-start ${a}`, children: [
577
+ /* @__PURE__ */ b("div", { className: "flex items-center justify-center h-5 w-4 shrink-0", children: [
578
+ /* @__PURE__ */ e(
579
+ "input",
580
+ {
581
+ ref: d,
582
+ type: "radio",
583
+ id: c,
584
+ checked: t,
585
+ disabled: r,
586
+ onChange: s,
587
+ value: m,
588
+ name: l,
589
+ className: "peer sr-only",
590
+ ...p
591
+ }
592
+ ),
593
+ /* @__PURE__ */ e(
594
+ "label",
595
+ {
596
+ htmlFor: c,
597
+ className: `
598
+ ${g}
599
+ ${x}
600
+ ${h}
601
+ ${r ? "cursor-not-allowed" : "cursor-pointer"}
602
+ `.trim().replace(/\s+/g, " "),
603
+ children: t && /* @__PURE__ */ e("div", { className: "w-1.5 h-1.5 bg-white rounded-full dark:bg-dark-content-inverse" })
604
+ }
605
+ )
606
+ ] }),
607
+ (n || o) && /* @__PURE__ */ b(
608
+ "label",
609
+ {
610
+ htmlFor: c,
611
+ className: `flex-1 flex flex-col gap-1 text-sm leading-5 ${r ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
612
+ children: [
613
+ n && /* @__PURE__ */ e("span", { className: "font-bold text-content-primary dark:text-dark-content-primary", children: n }),
614
+ o && /* @__PURE__ */ e("span", { className: "font-normal text-content-secondary dark:text-content-secondary", children: o })
615
+ ]
616
+ }
617
+ )
618
+ ] });
619
+ }
620
+ );
621
+ q.displayName = "Radio";
622
+ const G = v(
623
+ ({
624
+ label: n,
625
+ description: o,
626
+ labelPosition: t = "leading",
627
+ checked: r = !1,
628
+ disabled: a = !1,
629
+ className: i = "",
630
+ id: s,
631
+ onChange: m,
632
+ ariaLabel: l,
633
+ ...p
634
+ }, d) => {
635
+ const c = s || `switch-${Math.random().toString(36).substr(2, 9)}`, g = `
636
+ w-8
637
+ h-5
638
+ rounded-xl
639
+ border
640
+ overflow-hidden
641
+ relative
642
+ transition-all
643
+ duration-200
644
+ `, x = () => a ? r ? `
645
+ bg-primary-custom-600
646
+ border-primary-inverse-border
647
+ opacity-50
648
+ cursor-not-allowed
649
+ dark:bg-primary-custom-600
650
+ dark:border-primary-inverse-border
651
+ ` : `
652
+ bg-[#fafafa]
653
+ border-border-primary
654
+ opacity-50
655
+ cursor-not-allowed
656
+ dark:bg-dark-bg-primary
657
+ dark:border-dark-border-primary
658
+ ` : r ? `
659
+ bg-primary-custom-600
660
+ border-primary-inverse-border
661
+ cursor-pointer
662
+ peer-hover:border-[#307cc5]
663
+ peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
664
+ dark:bg-primary-custom-600
665
+ dark:border-primary-inverse-border
666
+ dark:peer-hover:border-[#307cc5]
667
+ dark:peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
668
+ ` : `
669
+ bg-[#fafafa]
670
+ border-border-primary
671
+ cursor-pointer
672
+ peer-hover:border-[#b6b6b9]
673
+ peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
674
+ dark:bg-dark-bg-primary
675
+ dark:border-dark-border-primary
676
+ dark:peer-hover:border-[#b6b6b9]
677
+ dark:peer-focus:shadow-[0px_0px_0px_2px_#dbeefe,0px_1px_2px_0px_rgba(0,0,0,0.05),0px_0px_0px_4px_#60b6fa]
678
+ `, h = () => {
679
+ const w = `
680
+ absolute
681
+ w-4
682
+ h-4
683
+ bg-white
684
+ rounded-[10px]
685
+ border
686
+ top-1/2
687
+ -translate-y-1/2
688
+ transition-all
689
+ duration-200
690
+ `, N = r ? "left-[13px]" : "left-px";
691
+ return a ? `${w} ${N} ${r ? "border-primary-inverse-border dark:border-primary-inverse-border" : "border-border-primary dark:border-dark-border-primary"}` : `${w} ${N} ${r ? `
692
+ border-primary-inverse-border
693
+ peer-hover:border-[#307cc5]
694
+ dark:border-primary-inverse-border
695
+ dark:peer-hover:border-[#307cc5]
696
+ ` : `
697
+ border-border-primary
698
+ peer-hover:border-[#b6b6b9]
699
+ dark:border-dark-border-primary
700
+ dark:peer-hover:border-[#b6b6b9]
701
+ `}`;
702
+ }, y = [
703
+ g,
704
+ x()
705
+ ].join(" ").replace(/\s+/g, " ").trim(), f = h().replace(/\s+/g, " ").trim(), u = n || o ? /* @__PURE__ */ b(
706
+ "label",
707
+ {
708
+ htmlFor: c,
709
+ className: `flex-1 flex flex-col gap-1 text-sm leading-5 ${a ? "cursor-not-allowed opacity-50" : "cursor-pointer"}`,
710
+ children: [
711
+ n && /* @__PURE__ */ e("span", { className: "font-bold text-content-primary dark:text-dark-content-primary", children: n }),
712
+ o && /* @__PURE__ */ e("span", { className: "font-normal text-content-secondary dark:text-content-secondary", children: o })
713
+ ]
714
+ }
715
+ ) : null, k = /* @__PURE__ */ b("div", { className: "flex items-center justify-center shrink-0", children: [
716
+ /* @__PURE__ */ e(
717
+ "input",
718
+ {
719
+ ref: d,
720
+ type: "checkbox",
721
+ id: c,
722
+ checked: r,
723
+ disabled: a,
724
+ onChange: m,
725
+ className: "peer sr-only",
726
+ "aria-label": l || n,
727
+ ...p
728
+ }
729
+ ),
730
+ /* @__PURE__ */ e(
731
+ "label",
732
+ {
733
+ htmlFor: c,
734
+ className: y,
735
+ "aria-hidden": "true",
736
+ children: /* @__PURE__ */ e("div", { className: f })
737
+ }
738
+ )
739
+ ] });
740
+ return /* @__PURE__ */ e("div", { className: `flex gap-2 items-center w-[344px] ${i}`, children: t === "leading" ? /* @__PURE__ */ b(S, { children: [
741
+ u,
742
+ k
743
+ ] }) : /* @__PURE__ */ b(S, { children: [
744
+ k,
745
+ u
746
+ ] }) });
747
+ }
748
+ );
749
+ G.displayName = "Switch";
750
+ const J = v(
751
+ ({
752
+ size: n = "10",
753
+ type: o = "circular",
754
+ src: t,
755
+ alt: r = "",
756
+ initials: a,
757
+ className: i = "",
758
+ ...s
759
+ }, m) => {
760
+ const l = {
761
+ 4: "w-5 h-5",
762
+ 6: "w-6 h-6",
763
+ 8: "w-8 h-8",
764
+ 10: "w-10 h-10"
765
+ }, p = {
766
+ 4: "text-xs",
767
+ // 12px - Paragraph Tiny
768
+ 6: "text-xs",
769
+ // 12px - Paragraph Tiny
770
+ 8: "text-sm",
771
+ // 14px - Paragraph Small
772
+ 10: "text-base"
773
+ // 16px - Paragraph Base
774
+ }, d = {
775
+ circular: "rounded-full",
776
+ rounded: "rounded-md"
777
+ }, c = `
778
+ relative
779
+ inline-flex
780
+ items-center
781
+ justify-center
782
+ overflow-hidden
783
+ ${l[n]}
784
+ ${d[o]}
785
+ `;
786
+ return t ? /* @__PURE__ */ e(
787
+ "div",
788
+ {
789
+ ref: m,
790
+ className: `${c} ${i}`.trim().replace(/\s+/g, " "),
791
+ children: /* @__PURE__ */ e(
792
+ "img",
793
+ {
794
+ src: t,
795
+ alt: r,
796
+ className: "w-full h-full object-cover",
797
+ ...s
798
+ }
799
+ )
800
+ }
801
+ ) : a ? /* @__PURE__ */ e(
802
+ "div",
803
+ {
804
+ ref: m,
805
+ className: `
806
+ ${c}
807
+ ${p[n]}
808
+ bg-content-primary
809
+ text-white
810
+ font-normal
811
+ dark:bg-dark-bg-inverse
812
+ dark:text-dark-content-inverse
813
+ ${i}
814
+ `.trim().replace(/\s+/g, " "),
815
+ children: /* @__PURE__ */ e("span", { className: "leading-none", children: a })
816
+ }
817
+ ) : /* @__PURE__ */ e(
818
+ "div",
819
+ {
820
+ ref: m,
821
+ className: `
822
+ ${c}
823
+ bg-background-secondary
824
+ dark:bg-dark-bg-primary
825
+ ${i}
826
+ `.trim().replace(/\s+/g, " ")
827
+ }
828
+ );
829
+ }
830
+ );
831
+ J.displayName = "Avatar";
832
+ const K = v(
833
+ ({
834
+ type: n = "default",
835
+ className: o = "",
836
+ ...t
837
+ }, r) => {
838
+ const s = [
839
+ "w-full h-px border-0",
840
+ {
841
+ // Default: Línea más visible para separaciones claras
842
+ // Light: border-primary (#e4e4e7)
843
+ // Dark: dark-border-primary (#71717a)
844
+ default: "bg-border-primary dark:bg-dark-border-primary",
845
+ // Soft: Línea más sutil para separaciones suaves
846
+ // Light: border-secondary (#f4f4f5 - muy claro)
847
+ // Dark: gray-700 (#374151 - gris medio-oscuro, más sutil que dark-border-primary)
848
+ soft: "bg-border-secondary dark:bg-gray-700"
849
+ }[n],
850
+ o
851
+ ].join(" ").replace(/\s+/g, " ").trim();
852
+ return /* @__PURE__ */ e(
853
+ "hr",
854
+ {
855
+ ref: r,
856
+ className: s,
857
+ ...t
858
+ }
859
+ );
860
+ }
861
+ );
862
+ K.displayName = "Divider";
863
+ const U = v(
864
+ ({
865
+ term: n,
866
+ details: o,
867
+ className: t = "",
868
+ ...r
869
+ }, a) => {
870
+ const i = `
871
+ flex
872
+ flex-wrap
873
+ gap-1
874
+ items-start
875
+ py-2.5
876
+ border-b
877
+ border-border-secondary
878
+ dark:border-gray-700
879
+ `, s = "flex-1 min-w-[180px]", m = [i, t].join(" ").replace(/\s+/g, " ").trim();
880
+ return /* @__PURE__ */ b("div", { ref: a, className: m, ...r, children: [
881
+ /* @__PURE__ */ e("div", { className: s, children: /* @__PURE__ */ e("p", { className: "text-sm leading-5 text-content-secondary dark:text-gray-400 font-normal", children: n }) }),
882
+ /* @__PURE__ */ e("div", { className: s, children: /* @__PURE__ */ e("p", { className: "text-sm leading-5 text-content-primary dark:text-dark-content-primary font-normal", children: o }) })
883
+ ] });
884
+ }
885
+ );
886
+ U.displayName = "DescriptionList";
887
+ const X = v(
888
+ ({
889
+ title: n,
890
+ description: o,
891
+ children: t,
892
+ actions: r,
893
+ onCancel: a,
894
+ onConfirm: i,
895
+ cancelText: s = "Cancelar",
896
+ confirmText: m = "Confirmar",
897
+ className: l = "",
898
+ ...p
899
+ }, d) => {
900
+ const c = r || /* @__PURE__ */ b(S, { children: [
901
+ a && /* @__PURE__ */ e(F, { type: "plain", size: "base", onClick: a, children: s }),
902
+ i && /* @__PURE__ */ e(F, { type: "default", size: "base", onClick: i, children: m })
903
+ ] });
904
+ return /* @__PURE__ */ e(
905
+ "div",
906
+ {
907
+ ref: d,
908
+ className: `
909
+ w-[512px]
910
+ bg-white
911
+ dark:bg-dark-bg-primary
912
+ border
913
+ border-border-primary
914
+ dark:border-dark-border-primary
915
+ rounded-xl
916
+ ${l}
917
+ `.trim().replace(/\s+/g, " "),
918
+ ...p,
919
+ children: /* @__PURE__ */ b("div", { className: "p-6 flex flex-col gap-4", children: [
920
+ /* @__PURE__ */ b("div", { className: "flex flex-col gap-3", children: [
921
+ /* @__PURE__ */ e("p", { className: "text-sm leading-5 font-bold text-content-primary dark:text-dark-content-primary", children: n }),
922
+ o && /* @__PURE__ */ e("p", { className: "text-sm leading-5 font-normal text-content-tertiary dark:text-content-tertiary", children: o })
923
+ ] }),
924
+ t && /* @__PURE__ */ e("div", { className: "flex flex-col gap-3", children: t }),
925
+ /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-3 items-center justify-end", children: c })
926
+ ] })
927
+ }
928
+ );
929
+ }
930
+ );
931
+ X.displayName = "Alert";
932
+ const Y = v(
933
+ ({
934
+ color: n = "zinc",
935
+ leftIcon: o,
936
+ label: t,
937
+ count: r,
938
+ className: a = "",
939
+ ...i
940
+ }, s) => {
941
+ const l = {
942
+ zinc: {
943
+ bg: "bg-zinc-100",
944
+ text: "text-zinc-600",
945
+ hover: "hover:bg-zinc-200",
946
+ notificationBg: "bg-zinc-600",
947
+ notificationText: "text-zinc-100"
948
+ },
949
+ red: {
950
+ bg: "bg-red-100",
951
+ text: "text-red-700",
952
+ hover: "hover:bg-red-200",
953
+ notificationBg: "bg-red-700",
954
+ notificationText: "text-red-100"
955
+ },
956
+ orange: {
957
+ bg: "bg-orange-100",
958
+ text: "text-orange-700",
959
+ hover: "hover:bg-orange-200",
960
+ notificationBg: "bg-orange-700",
961
+ notificationText: "text-orange-100"
962
+ },
963
+ amber: {
964
+ bg: "bg-amber-100",
965
+ text: "text-amber-700",
966
+ hover: "hover:bg-amber-200",
967
+ notificationBg: "bg-amber-700",
968
+ notificationText: "text-amber-100"
969
+ },
970
+ yellow: {
971
+ bg: "bg-yellow-100",
972
+ text: "text-yellow-700",
973
+ hover: "hover:bg-yellow-200",
974
+ notificationBg: "bg-yellow-700",
975
+ notificationText: "text-yellow-100"
976
+ },
977
+ lime: {
978
+ bg: "bg-lime-100",
979
+ text: "text-lime-700",
980
+ hover: "hover:bg-lime-200",
981
+ notificationBg: "bg-lime-700",
982
+ notificationText: "text-lime-100"
983
+ },
984
+ green: {
985
+ bg: "bg-green-100",
986
+ text: "text-green-700",
987
+ hover: "hover:bg-green-200",
988
+ notificationBg: "bg-green-700",
989
+ notificationText: "text-green-100"
990
+ },
991
+ emerald: {
992
+ bg: "bg-emerald-100",
993
+ text: "text-emerald-700",
994
+ hover: "hover:bg-emerald-200",
995
+ notificationBg: "bg-emerald-700",
996
+ notificationText: "text-emerald-100"
997
+ },
998
+ teal: {
999
+ bg: "bg-teal-100",
1000
+ text: "text-teal-700",
1001
+ hover: "hover:bg-teal-200",
1002
+ notificationBg: "bg-teal-700",
1003
+ notificationText: "text-teal-100"
1004
+ },
1005
+ cyan: {
1006
+ bg: "bg-cyan-100",
1007
+ text: "text-cyan-700",
1008
+ hover: "hover:bg-cyan-200",
1009
+ notificationBg: "bg-cyan-700",
1010
+ notificationText: "text-cyan-100"
1011
+ },
1012
+ sky: {
1013
+ bg: "bg-sky-100",
1014
+ text: "text-sky-700",
1015
+ hover: "hover:bg-sky-200",
1016
+ notificationBg: "bg-sky-700",
1017
+ notificationText: "text-sky-100"
1018
+ },
1019
+ blue: {
1020
+ bg: "bg-blue-100",
1021
+ text: "text-blue-700",
1022
+ hover: "hover:bg-blue-200",
1023
+ notificationBg: "bg-blue-700",
1024
+ notificationText: "text-blue-100"
1025
+ },
1026
+ indigo: {
1027
+ bg: "bg-indigo-100",
1028
+ text: "text-indigo-700",
1029
+ hover: "hover:bg-indigo-200",
1030
+ notificationBg: "bg-indigo-700",
1031
+ notificationText: "text-indigo-100"
1032
+ },
1033
+ violet: {
1034
+ bg: "bg-violet-100",
1035
+ text: "text-violet-700",
1036
+ hover: "hover:bg-violet-200",
1037
+ notificationBg: "bg-violet-700",
1038
+ notificationText: "text-violet-100"
1039
+ },
1040
+ purple: {
1041
+ bg: "bg-purple-100",
1042
+ text: "text-purple-700",
1043
+ hover: "hover:bg-purple-200",
1044
+ notificationBg: "bg-purple-700",
1045
+ notificationText: "text-purple-100"
1046
+ },
1047
+ fuchsia: {
1048
+ bg: "bg-fuchsia-100",
1049
+ text: "text-fuchsia-700",
1050
+ hover: "hover:bg-fuchsia-200",
1051
+ notificationBg: "bg-fuchsia-700",
1052
+ notificationText: "text-fuchsia-100"
1053
+ },
1054
+ pink: {
1055
+ bg: "bg-pink-100",
1056
+ text: "text-pink-700",
1057
+ hover: "hover:bg-pink-200",
1058
+ notificationBg: "bg-pink-700",
1059
+ notificationText: "text-pink-100"
1060
+ },
1061
+ rose: {
1062
+ bg: "bg-rose-100",
1063
+ text: "text-rose-700",
1064
+ hover: "hover:bg-rose-200",
1065
+ notificationBg: "bg-rose-700",
1066
+ notificationText: "text-rose-100"
1067
+ },
1068
+ primary: {
1069
+ bg: "bg-primary-custom-100",
1070
+ text: "text-primary-custom-600",
1071
+ hover: "hover:bg-primary-custom-200",
1072
+ notificationBg: "bg-primary-custom-600",
1073
+ notificationText: "text-primary-custom-100"
1074
+ },
1075
+ secondary: {
1076
+ bg: "bg-zinc-100",
1077
+ text: "text-zinc-600",
1078
+ hover: "hover:bg-zinc-200",
1079
+ notificationBg: "bg-zinc-600",
1080
+ notificationText: "text-zinc-100"
1081
+ },
1082
+ tertiary: {
1083
+ bg: "bg-zinc-100",
1084
+ text: "text-zinc-600",
1085
+ hover: "hover:bg-zinc-200",
1086
+ notificationBg: "bg-zinc-600",
1087
+ notificationText: "text-zinc-100"
1088
+ }
1089
+ }[n], p = (c) => {
1090
+ const g = c.props.className || "";
1091
+ return M(c, {
1092
+ className: `w-3 h-3 ${g}`.trim()
1093
+ });
1094
+ }, d = [
1095
+ "inline-flex",
1096
+ "items-center",
1097
+ "gap-1",
1098
+ "px-1.5",
1099
+ "py-1",
1100
+ "rounded-md",
1101
+ "font-sans",
1102
+ l.bg,
1103
+ l.hover,
1104
+ "transition-colors",
1105
+ "duration-200",
1106
+ a
1107
+ ].filter(Boolean).join(" ").replace(/\s+/g, " ").trim();
1108
+ return /* @__PURE__ */ b(
1109
+ "div",
1110
+ {
1111
+ ref: s,
1112
+ className: d,
1113
+ ...i,
1114
+ children: [
1115
+ o && /* @__PURE__ */ e("div", { className: `flex items-center justify-center ${l.text}`, children: p(o) }),
1116
+ /* @__PURE__ */ e("span", { className: `font-sans text-xs leading-4 ${l.text}`, children: t }),
1117
+ r !== void 0 && /* @__PURE__ */ e(
1118
+ "div",
1119
+ {
1120
+ className: `
1121
+ h-3
1122
+ flex
1123
+ items-center
1124
+ justify-center
1125
+ px-0.5
1126
+ rounded-sm
1127
+ min-w-[12px]
1128
+ ${l.notificationBg}
1129
+ `.trim().replace(/\s+/g, " "),
1130
+ children: /* @__PURE__ */ e("span", { className: `font-sans text-xs leading-4 ${l.notificationText}`, children: r })
1131
+ }
1132
+ )
1133
+ ]
1134
+ }
1135
+ );
1136
+ }
1137
+ );
1138
+ Y.displayName = "Badge";
1139
+ const Z = v(
1140
+ ({
1141
+ value: n,
1142
+ defaultValue: o = 0,
1143
+ onChange: t,
1144
+ min: r = 0,
1145
+ max: a,
1146
+ label: i,
1147
+ linkText: s,
1148
+ onLinkClick: m,
1149
+ helperText: l,
1150
+ error: p = !1,
1151
+ disabled: d = !1,
1152
+ className: c = "",
1153
+ ...g
1154
+ }, x) => {
1155
+ const [h, y] = R(o), f = n !== void 0, u = f ? n : h;
1156
+ D(() => {
1157
+ f || y(o);
1158
+ }, [o, f]);
1159
+ const k = (j) => {
1160
+ let C = j;
1161
+ r !== void 0 && C < r && (C = r), a !== void 0 && C > a && (C = a), f || y(C), t?.(C);
1162
+ }, w = () => {
1163
+ d || k(u - 1);
1164
+ }, N = () => {
1165
+ d || k(u + 1);
1166
+ }, $ = d || r !== void 0 && u <= r, _ = d || a !== void 0 && u >= a, B = () => /* @__PURE__ */ e(
1167
+ "svg",
1168
+ {
1169
+ width: "16",
1170
+ height: "16",
1171
+ viewBox: "0 0 16 16",
1172
+ fill: "none",
1173
+ xmlns: "http://www.w3.org/2000/svg",
1174
+ children: /* @__PURE__ */ e(
1175
+ "path",
1176
+ {
1177
+ d: "M3 8H13",
1178
+ stroke: "currentColor",
1179
+ strokeWidth: "1.5",
1180
+ strokeLinecap: "round",
1181
+ strokeLinejoin: "round"
1182
+ }
1183
+ )
1184
+ }
1185
+ ), L = () => /* @__PURE__ */ e(
1186
+ "svg",
1187
+ {
1188
+ width: "16",
1189
+ height: "16",
1190
+ viewBox: "0 0 16 16",
1191
+ fill: "none",
1192
+ xmlns: "http://www.w3.org/2000/svg",
1193
+ children: /* @__PURE__ */ e(
1194
+ "path",
1195
+ {
1196
+ d: "M8 3V13M3 8H13",
1197
+ stroke: "currentColor",
1198
+ strokeWidth: "1.5",
1199
+ strokeLinecap: "round",
1200
+ strokeLinejoin: "round"
1201
+ }
1202
+ )
1203
+ }
1204
+ ), z = p ? "border-error-border dark:border-error-border" : "border-border-primary dark:border-dark-border-primary", T = !d && !p ? "hover:border-[#f9f9f9] dark:hover:border-[#f9f9f9]" : "", I = !d && !p ? "focus-within:border-2 focus-within:border-[#329cff] dark:focus-within:border-[#329cff]" : "";
1205
+ return /* @__PURE__ */ b(
1206
+ "div",
1207
+ {
1208
+ ref: x,
1209
+ className: `flex flex-col gap-2 ${c}`.trim(),
1210
+ ...g,
1211
+ children: [
1212
+ i && /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
1213
+ /* @__PURE__ */ e("label", { className: "text-sm leading-5 font-bold text-content-primary dark:text-dark-content-primary", children: i }),
1214
+ s && /* @__PURE__ */ e(
1215
+ "button",
1216
+ {
1217
+ type: "button",
1218
+ onClick: m,
1219
+ disabled: d,
1220
+ className: `
1221
+ text-xs leading-4
1222
+ text-primary-custom-600
1223
+ hover:underline
1224
+ dark:text-primary-custom-600
1225
+ ${d ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
1226
+ transition-colors
1227
+ duration-200
1228
+ `.trim().replace(/\s+/g, " "),
1229
+ children: s
1230
+ }
1231
+ )
1232
+ ] }),
1233
+ /* @__PURE__ */ b(
1234
+ "div",
1235
+ {
1236
+ className: `
1237
+ flex
1238
+ items-center
1239
+ gap-2
1240
+ px-3
1241
+ py-1.5
1242
+ bg-white
1243
+ dark:bg-dark-bg-primary
1244
+ border
1245
+ ${z}
1246
+ ${T}
1247
+ ${I}
1248
+ rounded-lg
1249
+ transition-colors
1250
+ duration-200
1251
+ ${d ? "opacity-50 cursor-not-allowed" : ""}
1252
+ `.trim().replace(/\s+/g, " "),
1253
+ children: [
1254
+ /* @__PURE__ */ e(
1255
+ "button",
1256
+ {
1257
+ type: "button",
1258
+ onClick: w,
1259
+ disabled: $,
1260
+ className: `
1261
+ flex
1262
+ items-center
1263
+ justify-center
1264
+ w-4
1265
+ h-4
1266
+ ${$ ? "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"}
1267
+ transition-colors
1268
+ duration-200
1269
+ `.trim().replace(/\s+/g, " "),
1270
+ "aria-label": "Decrementar",
1271
+ children: /* @__PURE__ */ e(B, {})
1272
+ }
1273
+ ),
1274
+ /* @__PURE__ */ e("div", { className: "flex-1 text-center", children: /* @__PURE__ */ e(
1275
+ "span",
1276
+ {
1277
+ className: `
1278
+ text-base leading-6
1279
+ ${u === 0 ? "text-content-tertiary dark:text-content-tertiary" : "text-content-primary dark:text-dark-content-primary"}
1280
+ `.trim().replace(/\s+/g, " "),
1281
+ children: u
1282
+ }
1283
+ ) }),
1284
+ /* @__PURE__ */ e(
1285
+ "button",
1286
+ {
1287
+ type: "button",
1288
+ onClick: N,
1289
+ disabled: _,
1290
+ className: `
1291
+ flex
1292
+ items-center
1293
+ justify-center
1294
+ w-4
1295
+ h-4
1296
+ ${_ ? "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"}
1297
+ transition-colors
1298
+ duration-200
1299
+ `.trim().replace(/\s+/g, " "),
1300
+ "aria-label": "Incrementar",
1301
+ children: /* @__PURE__ */ e(L, {})
1302
+ }
1303
+ )
1304
+ ]
1305
+ }
1306
+ ),
1307
+ l && /* @__PURE__ */ e(
1308
+ "p",
1309
+ {
1310
+ className: `
1311
+ text-sm leading-5
1312
+ ${p ? "text-error-content dark:text-error-content" : "text-content-tertiary dark:text-content-tertiary"}
1313
+ `.trim().replace(/\s+/g, " "),
1314
+ children: l
1315
+ }
1316
+ )
1317
+ ]
1318
+ }
1319
+ );
1320
+ }
1321
+ );
1322
+ Z.displayName = "Quantity";
1323
+ const A = P(void 0), re = ({
1324
+ children: n,
1325
+ defaultTheme: o = "light"
1326
+ }) => {
1327
+ const [t, r] = R(() => typeof window < "u" && localStorage.getItem("siesa-ui-theme") || o);
1328
+ D(() => {
1329
+ const s = window.document.documentElement;
1330
+ t === "dark" ? s.classList.add("dark") : s.classList.remove("dark"), localStorage.setItem("siesa-ui-theme", t);
1331
+ }, [t]);
1332
+ const a = () => {
1333
+ r((s) => s === "light" ? "dark" : "light");
1334
+ }, i = (s) => {
1335
+ r(s);
1336
+ };
1337
+ return /* @__PURE__ */ e(A.Provider, { value: { theme: t, toggleTheme: a, setTheme: i }, children: n });
1338
+ }, te = () => {
1339
+ const n = W(A);
1340
+ if (n === void 0)
1341
+ throw new Error("useTheme debe ser usado dentro de un ThemeProvider");
1342
+ return n;
1343
+ };
1344
+ export {
1345
+ X as Alert,
1346
+ J as Avatar,
1347
+ Y as Badge,
1348
+ F as Button,
1349
+ Q as Checkbox,
1350
+ U as DescriptionList,
1351
+ K as Divider,
1352
+ H as Input,
1353
+ Z as Quantity,
1354
+ q as Radio,
1355
+ G as Switch,
1356
+ V as Textarea,
1357
+ re as ThemeProvider,
1358
+ te as useTheme
1359
+ };
1360
+ //# sourceMappingURL=siesa-ui-kit.mjs.map