monobill-mintui 0.4.4 → 0.4.5

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 (352) hide show
  1. package/README.md +207 -175
  2. package/dist/caret-right-C_kRPUgW.js +96 -0
  3. package/dist/caret-right-_3Mh6ina.cjs +1 -0
  4. package/dist/components/alert/Alert.d.ts +32 -0
  5. package/dist/components/alert/Alert.d.ts.map +1 -0
  6. package/dist/components/alert/index.d.ts +3 -0
  7. package/dist/components/alert/index.d.ts.map +1 -0
  8. package/dist/components/back-button/BackButton.d.ts +18 -0
  9. package/dist/components/back-button/BackButton.d.ts.map +1 -0
  10. package/dist/components/back-button/index.d.ts +3 -0
  11. package/dist/components/back-button/index.d.ts.map +1 -0
  12. package/dist/components/button/Button.d.ts +44 -1
  13. package/dist/components/button/Button.d.ts.map +1 -10
  14. package/dist/components/button/index.d.ts +3 -1
  15. package/dist/components/button/index.d.ts.map +1 -10
  16. package/dist/components/card/Card.d.ts +17 -1
  17. package/dist/components/card/Card.d.ts.map +1 -10
  18. package/dist/components/card/index.d.ts +3 -1
  19. package/dist/components/card/index.d.ts.map +1 -10
  20. package/dist/components/chart/Chart.d.ts +277 -0
  21. package/dist/components/chart/Chart.d.ts.map +1 -0
  22. package/dist/components/chart/index.d.ts +3 -0
  23. package/dist/components/chart/index.d.ts.map +1 -0
  24. package/dist/components/checkbox/Checkbox.d.ts +41 -1
  25. package/dist/components/checkbox/Checkbox.d.ts.map +1 -10
  26. package/dist/components/checkbox/index.d.ts +3 -1
  27. package/dist/components/checkbox/index.d.ts.map +1 -10
  28. package/dist/components/chip/Chip.d.ts +15 -0
  29. package/dist/components/chip/Chip.d.ts.map +1 -0
  30. package/dist/components/chip/index.d.ts +3 -0
  31. package/dist/components/chip/index.d.ts.map +1 -0
  32. package/dist/components/choice/Choice.d.ts +27 -1
  33. package/dist/components/choice/Choice.d.ts.map +1 -10
  34. package/dist/components/choice/ChoiceOption.d.ts +30 -0
  35. package/dist/components/choice/ChoiceOption.d.ts.map +1 -0
  36. package/dist/components/choice/index.d.ts +5 -1
  37. package/dist/components/choice/index.d.ts.map +1 -10
  38. package/dist/components/clickable/Clickable.d.ts +14 -0
  39. package/dist/components/clickable/Clickable.d.ts.map +1 -0
  40. package/dist/components/clickable/index.d.ts +3 -0
  41. package/dist/components/clickable/index.d.ts.map +1 -0
  42. package/dist/components/date-picker/DatePicker.d.ts +130 -0
  43. package/dist/components/date-picker/DatePicker.d.ts.map +1 -0
  44. package/dist/components/date-picker/index.d.ts +3 -0
  45. package/dist/components/date-picker/index.d.ts.map +1 -0
  46. package/dist/components/dropzone/Dropzone.d.ts +59 -0
  47. package/dist/components/dropzone/Dropzone.d.ts.map +1 -0
  48. package/dist/components/dropzone/index.d.ts +3 -0
  49. package/dist/components/dropzone/index.d.ts.map +1 -0
  50. package/dist/components/form/Form.d.ts +106 -0
  51. package/dist/components/form/Form.d.ts.map +1 -0
  52. package/dist/components/form/index.d.ts +3 -0
  53. package/dist/components/form/index.d.ts.map +1 -0
  54. package/dist/components/grid/Grid.d.ts +16 -1
  55. package/dist/components/grid/Grid.d.ts.map +1 -10
  56. package/dist/components/grid/index.d.ts +3 -1
  57. package/dist/components/grid/index.d.ts.map +1 -10
  58. package/dist/components/icon/Icon.d.ts +15 -1
  59. package/dist/components/icon/Icon.d.ts.map +1 -10
  60. package/dist/components/icon/build-icons.d.ts +2 -0
  61. package/dist/components/icon/build-icons.d.ts.map +1 -0
  62. package/dist/components/icon/icons/archive.d.ts +3 -0
  63. package/dist/components/icon/icons/archive.d.ts.map +1 -0
  64. package/dist/components/icon/icons/arrow-down.d.ts +3 -0
  65. package/dist/components/icon/icons/arrow-down.d.ts.map +1 -0
  66. package/dist/components/icon/icons/arrow-left.d.ts +3 -0
  67. package/dist/components/icon/icons/arrow-left.d.ts.map +1 -0
  68. package/dist/components/icon/icons/arrow-right.d.ts +3 -0
  69. package/dist/components/icon/icons/arrow-right.d.ts.map +1 -0
  70. package/dist/components/icon/icons/arrow-up.d.ts +3 -0
  71. package/dist/components/icon/icons/arrow-up.d.ts.map +1 -0
  72. package/dist/components/icon/icons/attach.d.ts +3 -0
  73. package/dist/components/icon/icons/attach.d.ts.map +1 -0
  74. package/dist/components/icon/icons/barcode.d.ts +3 -0
  75. package/dist/components/icon/icons/barcode.d.ts.map +1 -0
  76. package/dist/components/icon/icons/bookmark.d.ts +3 -0
  77. package/dist/components/icon/icons/bookmark.d.ts.map +1 -0
  78. package/dist/components/icon/icons/calendar-day.d.ts +3 -0
  79. package/dist/components/icon/icons/calendar-day.d.ts.map +1 -0
  80. package/dist/components/icon/icons/calendar-empty.d.ts +3 -0
  81. package/dist/components/icon/icons/calendar-empty.d.ts.map +1 -0
  82. package/dist/components/icon/icons/calendar-week.d.ts +3 -0
  83. package/dist/components/icon/icons/calendar-week.d.ts.map +1 -0
  84. package/dist/components/icon/icons/calendar.d.ts +3 -0
  85. package/dist/components/icon/icons/calendar.d.ts.map +1 -0
  86. package/dist/components/icon/icons/caret-down.d.ts +3 -0
  87. package/dist/components/icon/icons/caret-down.d.ts.map +1 -0
  88. package/dist/components/icon/icons/caret-left.d.ts +3 -0
  89. package/dist/components/icon/icons/caret-left.d.ts.map +1 -0
  90. package/dist/components/icon/icons/caret-right.d.ts +3 -0
  91. package/dist/components/icon/icons/caret-right.d.ts.map +1 -0
  92. package/dist/components/icon/icons/caret-up.d.ts +3 -0
  93. package/dist/components/icon/icons/caret-up.d.ts.map +1 -0
  94. package/dist/components/icon/icons/chat.d.ts +3 -0
  95. package/dist/components/icon/icons/chat.d.ts.map +1 -0
  96. package/dist/components/icon/icons/check.d.ts +3 -0
  97. package/dist/components/icon/icons/check.d.ts.map +1 -0
  98. package/dist/components/icon/icons/clock.d.ts +3 -0
  99. package/dist/components/icon/icons/clock.d.ts.map +1 -0
  100. package/dist/components/icon/icons/close.d.ts +3 -0
  101. package/dist/components/icon/icons/close.d.ts.map +1 -0
  102. package/dist/components/icon/icons/copy.d.ts +3 -0
  103. package/dist/components/icon/icons/copy.d.ts.map +1 -0
  104. package/dist/components/icon/icons/delete.d.ts +3 -0
  105. package/dist/components/icon/icons/delete.d.ts.map +1 -0
  106. package/dist/components/icon/icons/documentation.d.ts +3 -0
  107. package/dist/components/icon/icons/documentation.d.ts.map +1 -0
  108. package/dist/components/icon/icons/download.d.ts +3 -0
  109. package/dist/components/icon/icons/download.d.ts.map +1 -0
  110. package/dist/components/icon/icons/duplicate.d.ts +3 -0
  111. package/dist/components/icon/icons/duplicate.d.ts.map +1 -0
  112. package/dist/components/icon/icons/edit.d.ts +3 -0
  113. package/dist/components/icon/icons/edit.d.ts.map +1 -0
  114. package/dist/components/icon/icons/ellipsis.d.ts +3 -0
  115. package/dist/components/icon/icons/ellipsis.d.ts.map +1 -0
  116. package/dist/components/icon/icons/error.d.ts +3 -0
  117. package/dist/components/icon/icons/error.d.ts.map +1 -0
  118. package/dist/components/icon/icons/external-link.d.ts +3 -0
  119. package/dist/components/icon/icons/external-link.d.ts.map +1 -0
  120. package/dist/components/icon/icons/file.d.ts +3 -0
  121. package/dist/components/icon/icons/file.d.ts.map +1 -0
  122. package/dist/components/icon/icons/filter.d.ts +3 -0
  123. package/dist/components/icon/icons/filter.d.ts.map +1 -0
  124. package/dist/components/icon/icons/folder.d.ts +3 -0
  125. package/dist/components/icon/icons/folder.d.ts.map +1 -0
  126. package/dist/components/icon/icons/grid.d.ts +3 -0
  127. package/dist/components/icon/icons/grid.d.ts.map +1 -0
  128. package/dist/components/icon/icons/help.d.ts +3 -0
  129. package/dist/components/icon/icons/help.d.ts.map +1 -0
  130. package/dist/components/icon/icons/home.d.ts +3 -0
  131. package/dist/components/icon/icons/home.d.ts.map +1 -0
  132. package/dist/components/icon/icons/image.d.ts +3 -0
  133. package/dist/components/icon/icons/image.d.ts.map +1 -0
  134. package/dist/components/icon/icons/index.cjs +4 -0
  135. package/dist/components/icon/icons/index.d.ts +75 -0
  136. package/dist/components/icon/icons/index.d.ts.map +1 -0
  137. package/dist/components/{chunks/icon-a2ABTJf-.js → icon/icons/index.js} +168 -216
  138. package/dist/components/icon/icons/info.d.ts +3 -0
  139. package/dist/components/icon/icons/info.d.ts.map +1 -0
  140. package/dist/components/icon/icons/language.d.ts +3 -0
  141. package/dist/components/icon/icons/language.d.ts.map +1 -0
  142. package/dist/components/icon/icons/link.d.ts +3 -0
  143. package/dist/components/icon/icons/link.d.ts.map +1 -0
  144. package/dist/components/icon/icons/list.d.ts +3 -0
  145. package/dist/components/icon/icons/list.d.ts.map +1 -0
  146. package/dist/components/icon/icons/location.d.ts +3 -0
  147. package/dist/components/icon/icons/location.d.ts.map +1 -0
  148. package/dist/components/icon/icons/lock.d.ts +3 -0
  149. package/dist/components/icon/icons/lock.d.ts.map +1 -0
  150. package/dist/components/icon/icons/login.d.ts +3 -0
  151. package/dist/components/icon/icons/login.d.ts.map +1 -0
  152. package/dist/components/icon/icons/logout.d.ts +3 -0
  153. package/dist/components/icon/icons/logout.d.ts.map +1 -0
  154. package/dist/components/icon/icons/mail.d.ts +3 -0
  155. package/dist/components/icon/icons/mail.d.ts.map +1 -0
  156. package/dist/components/icon/icons/map.d.ts +3 -0
  157. package/dist/components/icon/icons/map.d.ts.map +1 -0
  158. package/dist/components/icon/icons/menu.d.ts +3 -0
  159. package/dist/components/icon/icons/menu.d.ts.map +1 -0
  160. package/dist/components/icon/icons/moon.d.ts +3 -0
  161. package/dist/components/icon/icons/moon.d.ts.map +1 -0
  162. package/dist/components/icon/icons/notifications.d.ts +3 -0
  163. package/dist/components/icon/icons/notifications.d.ts.map +1 -0
  164. package/dist/components/icon/icons/paste.d.ts +3 -0
  165. package/dist/components/icon/icons/paste.d.ts.map +1 -0
  166. package/dist/components/icon/icons/pin.d.ts +3 -0
  167. package/dist/components/icon/icons/pin.d.ts.map +1 -0
  168. package/dist/components/icon/icons/plus.d.ts +3 -0
  169. package/dist/components/icon/icons/plus.d.ts.map +1 -0
  170. package/dist/components/icon/icons/print.d.ts +3 -0
  171. package/dist/components/icon/icons/print.d.ts.map +1 -0
  172. package/dist/components/icon/icons/refresh.d.ts +3 -0
  173. package/dist/components/icon/icons/refresh.d.ts.map +1 -0
  174. package/dist/components/icon/icons/remove.d.ts +3 -0
  175. package/dist/components/icon/icons/remove.d.ts.map +1 -0
  176. package/dist/components/icon/icons/save.d.ts +3 -0
  177. package/dist/components/icon/icons/save.d.ts.map +1 -0
  178. package/dist/components/icon/icons/search.d.ts +3 -0
  179. package/dist/components/icon/icons/search.d.ts.map +1 -0
  180. package/dist/components/icon/icons/settings.d.ts +3 -0
  181. package/dist/components/icon/icons/settings.d.ts.map +1 -0
  182. package/dist/components/icon/icons/share.d.ts +3 -0
  183. package/dist/components/icon/icons/share.d.ts.map +1 -0
  184. package/dist/components/icon/icons/sort-arrows.d.ts +3 -0
  185. package/dist/components/icon/icons/sort-arrows.d.ts.map +1 -0
  186. package/dist/components/icon/icons/sort.d.ts +3 -0
  187. package/dist/components/icon/icons/sort.d.ts.map +1 -0
  188. package/dist/components/icon/icons/star.d.ts +3 -0
  189. package/dist/components/icon/icons/star.d.ts.map +1 -0
  190. package/dist/components/icon/icons/success.d.ts +3 -0
  191. package/dist/components/icon/icons/success.d.ts.map +1 -0
  192. package/dist/components/icon/icons/sun.d.ts +3 -0
  193. package/dist/components/icon/icons/sun.d.ts.map +1 -0
  194. package/dist/components/icon/icons/table.d.ts +3 -0
  195. package/dist/components/icon/icons/table.d.ts.map +1 -0
  196. package/dist/components/icon/icons/tag.d.ts +3 -0
  197. package/dist/components/icon/icons/tag.d.ts.map +1 -0
  198. package/dist/components/icon/icons/trash.d.ts +3 -0
  199. package/dist/components/icon/icons/trash.d.ts.map +1 -0
  200. package/dist/components/icon/icons/unlock.d.ts +3 -0
  201. package/dist/components/icon/icons/unlock.d.ts.map +1 -0
  202. package/dist/components/icon/icons/upload.d.ts +3 -0
  203. package/dist/components/icon/icons/upload.d.ts.map +1 -0
  204. package/dist/components/icon/icons/user-add.d.ts +3 -0
  205. package/dist/components/icon/icons/user-add.d.ts.map +1 -0
  206. package/dist/components/icon/icons/user.d.ts +3 -0
  207. package/dist/components/icon/icons/user.d.ts.map +1 -0
  208. package/dist/components/icon/icons/users.d.ts +3 -0
  209. package/dist/components/icon/icons/users.d.ts.map +1 -0
  210. package/dist/components/icon/icons/video.d.ts +3 -0
  211. package/dist/components/icon/icons/video.d.ts.map +1 -0
  212. package/dist/components/icon/icons/warning.d.ts +3 -0
  213. package/dist/components/icon/icons/warning.d.ts.map +1 -0
  214. package/dist/components/icon/index.d.ts +3 -2
  215. package/dist/components/icon/index.d.ts.map +1 -10
  216. package/dist/components/icon/registry.d.ts +15 -0
  217. package/dist/components/icon/registry.d.ts.map +1 -0
  218. package/dist/components/input/Input.d.ts +56 -0
  219. package/dist/components/input/Input.d.ts.map +1 -0
  220. package/dist/components/input/index.d.ts +3 -0
  221. package/dist/components/input/index.d.ts.map +1 -0
  222. package/dist/components/link/Link.d.ts +16 -1
  223. package/dist/components/link/Link.d.ts.map +1 -10
  224. package/dist/components/link/index.d.ts +3 -1
  225. package/dist/components/link/index.d.ts.map +1 -10
  226. package/dist/components/modal/Modal.d.ts +32 -1
  227. package/dist/components/modal/Modal.d.ts.map +1 -10
  228. package/dist/components/modal/index.d.ts +3 -1
  229. package/dist/components/modal/index.d.ts.map +1 -10
  230. package/dist/components/off-canvas/OffCanvas.d.ts +42 -0
  231. package/dist/components/off-canvas/OffCanvas.d.ts.map +1 -0
  232. package/dist/components/off-canvas/index.d.ts +3 -0
  233. package/dist/components/off-canvas/index.d.ts.map +1 -0
  234. package/dist/components/page/Page.d.ts +29 -1
  235. package/dist/components/page/Page.d.ts.map +1 -10
  236. package/dist/components/page/index.d.ts +3 -1
  237. package/dist/components/page/index.d.ts.map +1 -10
  238. package/dist/components/popover/Popover.d.ts +48 -1
  239. package/dist/components/popover/Popover.d.ts.map +1 -10
  240. package/dist/components/popover/index.d.ts +3 -1
  241. package/dist/components/popover/index.d.ts.map +1 -10
  242. package/dist/components/resource-table/ResourceTable.d.ts +159 -0
  243. package/dist/components/resource-table/ResourceTable.d.ts.map +1 -0
  244. package/dist/components/resource-table/index.d.ts +3 -0
  245. package/dist/components/resource-table/index.d.ts.map +1 -0
  246. package/dist/components/select/Select.d.ts +34 -0
  247. package/dist/components/select/Select.d.ts.map +1 -0
  248. package/dist/components/select/index.d.ts +3 -0
  249. package/dist/components/select/index.d.ts.map +1 -0
  250. package/dist/components/spinner/Spinner.d.ts +13 -1
  251. package/dist/components/spinner/Spinner.d.ts.map +1 -10
  252. package/dist/components/spinner/index.d.ts +3 -1
  253. package/dist/components/spinner/index.d.ts.map +1 -10
  254. package/dist/components/stack/Stack.d.ts +20 -1
  255. package/dist/components/stack/Stack.d.ts.map +1 -10
  256. package/dist/components/stack/index.d.ts +3 -1
  257. package/dist/components/stack/index.d.ts.map +1 -10
  258. package/dist/components/switch/Switch.d.ts +32 -1
  259. package/dist/components/switch/Switch.d.ts.map +1 -10
  260. package/dist/components/switch/index.d.ts +3 -1
  261. package/dist/components/switch/index.d.ts.map +1 -10
  262. package/dist/components/table/Table.d.ts +15 -0
  263. package/dist/components/table/Table.d.ts.map +1 -0
  264. package/dist/components/table/index.d.ts +3 -0
  265. package/dist/components/table/index.d.ts.map +1 -0
  266. package/dist/components/tabs/Tab.d.ts +19 -0
  267. package/dist/components/tabs/Tab.d.ts.map +1 -0
  268. package/dist/components/tabs/TabContent.d.ts +13 -0
  269. package/dist/components/tabs/TabContent.d.ts.map +1 -0
  270. package/dist/components/tabs/TabList.d.ts +12 -0
  271. package/dist/components/tabs/TabList.d.ts.map +1 -0
  272. package/dist/components/tabs/Tabs.d.ts +20 -0
  273. package/dist/components/tabs/Tabs.d.ts.map +1 -0
  274. package/dist/components/tabs/index.d.ts +9 -0
  275. package/dist/components/tabs/index.d.ts.map +1 -0
  276. package/dist/components/tags/Tags.d.ts +57 -0
  277. package/dist/components/tags/Tags.d.ts.map +1 -0
  278. package/dist/components/tags/index.d.ts +3 -0
  279. package/dist/components/tags/index.d.ts.map +1 -0
  280. package/dist/components/text/Text.d.ts +25 -1
  281. package/dist/components/text/Text.d.ts.map +1 -10
  282. package/dist/components/text/index.d.ts +3 -1
  283. package/dist/components/text/index.d.ts.map +1 -10
  284. package/dist/icons/edit.svg +1 -1
  285. package/dist/icons/sort-arrows.svg +3 -0
  286. package/dist/index.cjs +196 -1
  287. package/dist/index.d.ts +63 -35
  288. package/dist/index.d.ts.map +1 -10
  289. package/dist/index.js +8418 -16
  290. package/package.json +37 -87
  291. package/tailwind.preset.cjs +24 -0
  292. package/tailwind.preset.js +24 -0
  293. package/dist/components/button/index.cjs +0 -1
  294. package/dist/components/button/index.js +0 -2
  295. package/dist/components/card/index.cjs +0 -1
  296. package/dist/components/card/index.js +0 -2
  297. package/dist/components/checkbox/index.cjs +0 -1
  298. package/dist/components/checkbox/index.js +0 -1
  299. package/dist/components/choice/index.cjs +0 -1
  300. package/dist/components/choice/index.js +0 -1
  301. package/dist/components/chunks/Icon-BTlX8dXa.js +0 -1
  302. package/dist/components/chunks/Icon-xNhleOos.js +0 -77
  303. package/dist/components/chunks/button-4_r-rdhN.js +0 -1
  304. package/dist/components/chunks/button-DFs4DmfC.js +0 -575
  305. package/dist/components/chunks/card-D8FpQZBD.js +0 -1
  306. package/dist/components/chunks/card-DhRHTSkL.js +0 -58
  307. package/dist/components/chunks/checkbox-Bakjptcp.js +0 -1
  308. package/dist/components/chunks/checkbox-D95xYxXV.js +0 -169
  309. package/dist/components/chunks/choice-BlAkXCQN.js +0 -204
  310. package/dist/components/chunks/choice-C0EYGPxa.js +0 -1
  311. package/dist/components/chunks/grid-DVHtippr.js +0 -1
  312. package/dist/components/chunks/grid-DqlQrFkp.js +0 -62
  313. package/dist/components/chunks/icon-BZolpoyx.js +0 -1
  314. package/dist/components/chunks/link-C49HKGxh.js +0 -75
  315. package/dist/components/chunks/link-S0yBi9n7.js +0 -1
  316. package/dist/components/chunks/modal-B2sNSV2Q.js +0 -1
  317. package/dist/components/chunks/modal-BQlup2Mw.js +0 -98
  318. package/dist/components/chunks/page-BiSPS1-l.js +0 -1
  319. package/dist/components/chunks/page-DFKYJekL.js +0 -112
  320. package/dist/components/chunks/popover-BkTNH5gb.js +0 -181
  321. package/dist/components/chunks/popover-DFCs6KnJ.js +0 -1
  322. package/dist/components/chunks/spinner-Ch8momJm.js +0 -63
  323. package/dist/components/chunks/spinner-zGnecx3W.js +0 -111
  324. package/dist/components/chunks/stack-BvgkqvMX.js +0 -1
  325. package/dist/components/chunks/stack-DzZy3iH1.js +0 -114
  326. package/dist/components/chunks/switch-C5FOAA64.js +0 -1
  327. package/dist/components/chunks/switch-CCyMw1-M.js +0 -138
  328. package/dist/components/chunks/text-B-qq-sZ2.js +0 -111
  329. package/dist/components/chunks/text-nTrVku3e.js +0 -1
  330. package/dist/components/grid/index.cjs +0 -1
  331. package/dist/components/grid/index.js +0 -2
  332. package/dist/components/icon/index.cjs +0 -1
  333. package/dist/components/icon/index.js +0 -3
  334. package/dist/components/link/index.cjs +0 -1
  335. package/dist/components/link/index.js +0 -2
  336. package/dist/components/modal/index.cjs +0 -1
  337. package/dist/components/modal/index.js +0 -1
  338. package/dist/components/page/index.cjs +0 -1
  339. package/dist/components/page/index.js +0 -2
  340. package/dist/components/popover/index.cjs +0 -1
  341. package/dist/components/popover/index.js +0 -1
  342. package/dist/components/spinner/index.cjs +0 -1
  343. package/dist/components/spinner/index.js +0 -2
  344. package/dist/components/stack/index.cjs +0 -1
  345. package/dist/components/stack/index.js +0 -2
  346. package/dist/components/switch/index.cjs +0 -1
  347. package/dist/components/switch/index.js +0 -2
  348. package/dist/components/text/index.cjs +0 -1
  349. package/dist/components/text/index.js +0 -2
  350. package/dist/mintui-elements.d.ts +0 -78
  351. package/dist/mintui-elements.d.ts.map +0 -10
  352. package/dist/styles.css +0 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Monobill MintUI
1
+ # MintUI
2
2
 
3
3
  A modern **framework-agnostic** UI kit built as **pure JavaScript Web Components** (no framework dependencies). Works in Vue, React, Angular, Svelte, or vanilla JavaScript!
4
4
 
@@ -8,25 +8,86 @@ A modern **framework-agnostic** UI kit built as **pure JavaScript Web Components
8
8
 
9
9
  ## Installation
10
10
 
11
- Install components individually via NPM. All components are version-locked together to ensure styling consistency.
12
-
13
11
  ```bash
14
- # Install individual components
15
- npm install @monobill-mintui/button
16
- npm install @monobill-mintui/switch
12
+ npm install monobill-mintui
13
+ ```
14
+
15
+ ## ⚠️ IMPORTANT: Tailwind Configuration Required
16
+
17
+ **After installing, you MUST configure Tailwind CSS to scan the mintui package files.** Without this, Tailwind classes won't work!
18
+
19
+ ### Basic Configuration
20
+
21
+ Add this to your `tailwind.config.js`:
22
+
23
+ ```js
24
+ import mintuiPreset from 'monobill-mintui/tailwind-preset'
25
+
26
+ export default {
27
+ presets: [mintuiPreset], // ⚠️ REQUIRED: Enforces dark mode color (#0A0A0A)
28
+ content: [
29
+ "./src/**/*.{vue,js,ts,jsx,tsx,html}",
30
+ "./node_modules/monobill-mintui/dist/**/*.js", // ⚠️ REQUIRED: Add this line
31
+ ],
32
+ // ... rest of your config
33
+ }
34
+ ```
35
+
36
+ **CommonJS format:**
37
+
38
+ ```js
39
+ const mintuiPreset = require('monobill-mintui/tailwind-preset')
40
+
41
+ module.exports = {
42
+ presets: [mintuiPreset], // ⚠️ REQUIRED: Enforces dark mode color (#0A0A0A)
43
+ content: [
44
+ "./src/**/*.{vue,js,ts,jsx,tsx,html}",
45
+ "./node_modules/monobill-mintui/dist/**/*.js", // ⚠️ REQUIRED: Add this line
46
+ ],
47
+ // ... rest of your config
48
+ }
49
+ ```
50
+
51
+ **After updating your Tailwind config, rebuild your CSS** (restart your dev server or rebuild your Tailwind output).
52
+
53
+ ### Dark Mode Color
54
+
55
+ The mintui preset enforces the base dark mode color `#0A0A0A` for `gray-900`. This ensures consistent dark mode styling across all apps using mintui. The preset automatically sets this color, so all components will use the correct dark mode background.
56
+
57
+ ## Icon Configuration
58
+
59
+ Icons are loaded from SVG files. By default, icons load from the CDN at `https://assets.gomonobill.com/mintui/icons/` for optimal caching and performance.
60
+
61
+ ### Configuring Icon Source
62
+
63
+ You can configure where icons are loaded from using a meta tag:
64
+
65
+ **Default (CDN):**
66
+ ```html
67
+ <!-- Icons load from CDN by default -->
68
+ <mint-icon name="caret-up"></mint-icon>
69
+ ```
70
+
71
+ **Load from Local Server:**
72
+ ```html
73
+ <meta name="mint-icon-base-url" content="local">
74
+ ```
17
75
 
18
- # Or install multiple at once
19
- npm install @monobill-mintui/button @monobill-mintui/switch
76
+ **Load from Custom Endpoint:**
77
+ ```html
78
+ <meta name="mint-icon-base-url" content="/custom/path/to/icons">
79
+ <!-- or -->
80
+ <meta name="mint-icon-base-url" content="https://your-cdn.com/icons">
20
81
  ```
21
82
 
22
- ### Version Locking
83
+ **Explicitly Use CDN:**
84
+ ```html
85
+ <meta name="mint-icon-base-url" content="cdn">
86
+ ```
23
87
 
24
- All components share the same version number. When you install `@monobill-mintui/button@1.0.0`, installing `@monobill-mintui/switch` will automatically use version `1.0.0` as well. This ensures:
88
+ ### Icon Files Setup
25
89
 
26
- - Consistent styling across all components
27
- - ✅ No version conflicts
28
- - ✅ Easy updates with `npm update`
29
- - ✅ Standard NPM versioning workflow
90
+ If using local icons, ensure SVG files are available in your `public/icons/` directory. The icon component expects files named like `/icons/caret-up.svg`, `/icons/caret-down.svg`, etc.
30
91
 
31
92
  ## Usage
32
93
 
@@ -41,8 +102,7 @@ Components are Web Components (Custom Elements) that work in **any framework**:
41
102
  <html>
42
103
  <head>
43
104
  <script type="module">
44
- import '@monobill-mintui/button'
45
- import '@monobill-mintui/switch'
105
+ import 'monobill-mintui'
46
106
  </script>
47
107
  </head>
48
108
  <body>
@@ -60,20 +120,82 @@ Components are Web Components (Custom Elements) that work in **any framework**:
60
120
 
61
121
  #### Vue 3
62
122
 
123
+ **⚠️ IMPORTANT: Configure Vue to recognize custom elements**
124
+
125
+ You must configure Vue to treat `mint-*` elements as custom elements, not Vue components.
126
+
127
+ **For Vite projects**, add this to your `vite.config.js` or `vite.config.ts`:
128
+
129
+ ```js
130
+ import { defineConfig } from 'vite'
131
+ import vue from '@vitejs/plugin-vue'
132
+
133
+ export default defineConfig({
134
+ plugins: [
135
+ vue({
136
+ template: {
137
+ compilerOptions: {
138
+ isCustomElement: (tag) => tag.startsWith('mint-'),
139
+ },
140
+ },
141
+ }),
142
+ ],
143
+ })
144
+ ```
145
+
146
+ **For Vue CLI projects**, add this to your `vue.config.js`:
147
+
148
+ ```js
149
+ module.exports = {
150
+ chainWebpack: (config) => {
151
+ config.module
152
+ .rule('vue')
153
+ .use('vue-loader')
154
+ .tap((options) => {
155
+ options.compilerOptions = {
156
+ ...options.compilerOptions,
157
+ isCustomElement: (tag) => tag.startsWith('mint-'),
158
+ }
159
+ return options
160
+ })
161
+ },
162
+ }
163
+ ```
164
+
165
+ **For Nuxt 3**, add this to your `nuxt.config.ts`:
166
+
167
+ ```ts
168
+ export default defineNuxtConfig({
169
+ vue: {
170
+ compilerOptions: {
171
+ isCustomElement: (tag) => tag.startsWith('mint-'),
172
+ },
173
+ },
174
+ })
175
+ ```
176
+
177
+ **Usage example:**
178
+
63
179
  ```vue
64
180
  <template>
65
181
  <mint-button variant="primary" @click="handleClick">
66
182
  Click me
67
183
  </mint-button>
68
184
  <mint-switch :checked="enabled" @change="handleChange" />
185
+ <mint-input label="Name" v-model="name" />
186
+ <mint-select label="Country" v-model="country">
187
+ <option value="us">United States</option>
188
+ <option value="ca">Canada</option>
189
+ </mint-select>
69
190
  </template>
70
191
 
71
192
  <script setup>
72
193
  import { ref } from 'vue'
73
- import '@monobill-mintui/button'
74
- import '@monobill-mintui/switch'
194
+ import 'monobill-mintui'
75
195
 
76
196
  const enabled = ref(false)
197
+ const name = ref('')
198
+ const country = ref('')
77
199
 
78
200
  const handleClick = () => console.log('Clicked!')
79
201
  const handleChange = (e) => {
@@ -86,8 +208,7 @@ const handleChange = (e) => {
86
208
 
87
209
  ```jsx
88
210
  import { useState } from 'react'
89
- import '@monobill-mintui/button'
90
- import '@monobill-mintui/switch'
211
+ import 'monobill-mintui'
91
212
 
92
213
  function App() {
93
214
  const [enabled, setEnabled] = useState(false)
@@ -101,6 +222,11 @@ function App() {
101
222
  checked={enabled}
102
223
  onChange={(e) => setEnabled(e.detail?.checked ?? e.target.checked)}
103
224
  />
225
+ <mint-input label="Name" />
226
+ <mint-select label="Country">
227
+ <option value="us">United States</option>
228
+ <option value="ca">Canada</option>
229
+ </mint-select>
104
230
  </>
105
231
  )
106
232
  }
@@ -110,8 +236,7 @@ function App() {
110
236
 
111
237
  ```typescript
112
238
  import { Component } from '@angular/core'
113
- import '@monobill-mintui/button'
114
- import '@monobill-mintui/switch'
239
+ import 'monobill-mintui'
115
240
 
116
241
  @Component({
117
242
  selector: 'app-root',
@@ -132,126 +257,29 @@ export class AppComponent {
132
257
  }
133
258
  ```
134
259
 
135
- **Note**: Components require Tailwind CSS to be installed and configured in your project. Make sure your `tailwind.config.js` includes the component paths in the `content` array for proper tree-shaking.
136
-
137
- ### Button Props
138
-
139
- | Prop | Type | Default | Description |
140
- |------|------|---------|-------------|
141
- | `variant` | `'primary' \| 'secondary' \| 'outline' \| 'ghost' \| 'danger'` | `'primary'` | Button style variant |
142
- | `disabled` | `boolean` | `false` | Disable the button |
143
- | `loading` | `boolean` | `false` | Show loading spinner |
144
- | `type` | `'button' \| 'submit' \| 'reset'` | `'button'` | HTML button type |
145
- | `fullWidth` | `boolean` | `false` | Make button full width |
146
-
147
- ### Button Events
148
-
149
- - `@click` - Emitted when button is clicked (not emitted when disabled or loading)
150
-
151
- ## Development
152
-
153
- ```bash
154
- # Install dependencies
155
- npm install
156
-
157
- # Build component CSS (required before using components)
158
- npm run build:css
159
-
160
- # Run development server
161
- npm run dev
162
-
163
- # Build for production
164
- npm run build
165
- ```
166
-
167
- ## Component Structure
168
-
169
- Each component is a pure JavaScript Web Component:
170
-
171
- ```
172
- monobill-mintui/
173
- ├── src/
174
- │ ├── components/
175
- │ │ └── button/
176
- │ │ ├── Button.js # Pure JavaScript Web Component
177
- │ │ ├── index.js # Component export
178
- │ │ ├── README.md # Component documentation
179
- │ │ └── package.json # Component metadata
180
- │ └── index.js # Main entry point (tree-shakeable)
181
- ├── components.json # Component manifest
182
- ├── scripts/
183
- │ ├── sync-versions.js # Version synchronization script
184
- │ ├── prepare-publish.js # Publishing preparation script
185
- │ └── publish-all.js # Publish all components script
186
- ├── package.json
187
- ├── tailwind.config.js # Tailwind config (for development)
188
- ├── vite.config.js
189
- └── README.md
190
- ```
191
-
192
- ## Version Management
193
-
194
- ### Installing Components
195
-
196
- All components are version-locked. When you install a component, it uses the latest version:
197
-
198
- ```bash
199
- npm install @monobill-mintui/button
200
- # Installs latest version (e.g., 1.0.0)
201
- ```
202
-
203
- When you install another component, it automatically uses the same version:
204
-
205
- ```bash
206
- npm install @monobill-mintui/switch
207
- # Also installs version 1.0.0 (same as button)
208
- ```
209
-
210
- ### Updating Components
211
-
212
- Update all components to the latest version:
213
-
214
- ```bash
215
- npm update @monobill-mintui/button @monobill-mintui/switch
216
- # Or update all at once
217
- npm update
218
- ```
219
-
220
- ### Pinning Versions
221
-
222
- Pin to a specific version in your `package.json`:
223
-
224
- ```json
225
- {
226
- "dependencies": {
227
- "@monobill-mintui/button": "1.0.0",
228
- "@monobill-mintui/switch": "1.0.0"
229
- }
230
- }
231
- ```
232
-
233
- All components will stay at the same version, ensuring consistent styling.
234
-
235
- ## Tree Shaking
236
-
237
- Since components are installed individually, tree shaking works automatically:
238
-
239
- ```javascript
240
- // Only the Button component is included in your bundle
241
- import '@monobill-mintui/button'
242
- ```
243
-
244
- Each component is a separate package, so unused components are never included in your bundle.
245
-
246
- ## Supported Frameworks
247
-
248
- These Web Components work in:
249
- - ✅ **Vanilla JavaScript** - Just import and use
250
- - ✅ **Vue 2 & 3** - Use as custom elements
251
- - ✅ **React** - Use as JSX elements
252
- - ✅ **Angular** - Use in templates
253
- - ✅ **Svelte** - Use as HTML elements
254
- - ✅ **Any framework** that supports HTML
260
+ ## Available Components
261
+
262
+ - **mint-button** - Button component with multiple variants
263
+ - **mint-switch** - Toggle switch component
264
+ - **mint-input** - Text input, textarea, and various input types
265
+ - **mint-select** - Select dropdown component
266
+ - **mint-checkbox** - Checkbox component
267
+ - **mint-choice** - Radio button group component (parent container with mint-choice-option children)
268
+ - **mint-tags** - Tags input component with add/remove and sorting capabilities
269
+ - **mint-date-picker** - Date picker component
270
+ - **mint-dropzone** - File upload component
271
+ - **mint-form** - Form component with validation
272
+ - **mint-icon** - Icon component
273
+ - **mint-text** - Text component with typography variants
274
+ - **mint-card** - Card component
275
+ - **mint-modal** - Modal dialog component
276
+ - **mint-popover** - Popover component
277
+ - **mint-spinner** - Loading spinner component
278
+ - **mint-stack** - Stack layout component
279
+ - **mint-grid** - Grid layout component
280
+ - **mint-page** - Page container component
281
+ - **mint-link** - Link component
282
+ - **mint-back-button** - Back button component
255
283
 
256
284
  ## Requirements
257
285
 
@@ -260,58 +288,62 @@ These Web Components work in:
260
288
  - **No JavaScript dependencies!** Built with native Web Component APIs
261
289
  - Modern browser with Web Components support (all modern browsers)
262
290
 
263
- ### Tailwind Configuration
291
+ ### ⚠️ Critical: Tailwind Configuration
264
292
 
265
- Make sure your `tailwind.config.js` includes the component paths:
293
+ **You MUST add the mintui package to your Tailwind content paths AND use the preset**, otherwise the classes won't be included in your CSS and dark mode colors won't be correct:
266
294
 
267
295
  ```js
296
+ // tailwind.config.js (ES modules)
297
+ import mintuiPreset from 'monobill-mintui/tailwind-preset'
298
+
268
299
  export default {
300
+ presets: [mintuiPreset], // ⚠️ REQUIRED: Enforces dark mode color (#0A0A0A)
269
301
  content: [
270
- "./src/**/*.{vue,js,ts,jsx,tsx}",
271
- "./node_modules/@monobill-mintui/**/*.js", // Add this
302
+ "./src/**/*.{vue,js,ts,jsx,tsx,html}",
303
+ "./node_modules/monobill-mintui/dist/**/*.js", // ⚠️ REQUIRED
272
304
  ],
273
- // ... rest of config
305
+ // ... rest of your config
274
306
  }
275
307
  ```
276
308
 
277
- ### Tailwind CSS Integration
309
+ ```js
310
+ // tailwind.config.js (CommonJS)
311
+ const mintuiPreset = require('monobill-mintui/tailwind-preset')
278
312
 
279
- - Components use Tailwind utility classes
280
- - Tailwind automatically tree-shakes unused classes
281
- - Minimal CSS output - only the classes you use are included
282
- - Integrates seamlessly with your existing Tailwind setup
283
- - Efficient and optimized bundle size
313
+ module.exports = {
314
+ presets: [mintuiPreset], // ⚠️ REQUIRED: Enforces dark mode color (#0A0A0A)
315
+ content: [
316
+ "./src/**/*.{vue,js,ts,jsx,tsx,html}",
317
+ "./node_modules/monobill-mintui/dist/**/*.js", // ⚠️ REQUIRED
318
+ ],
319
+ // ... rest of your config
320
+ }
321
+ ```
284
322
 
285
- ## Styling
323
+ **After updating your Tailwind config, rebuild your CSS** (restart your dev server or rebuild your Tailwind output).
286
324
 
287
- Components are built using Tailwind CSS utility classes. Your Tailwind build process will:
288
- - Tree-shake unused classes
289
- - Generate minimal CSS output
290
- - Optimize for production
325
+ ## Troubleshooting
291
326
 
292
- Make sure your Tailwind config includes the component paths for proper class detection.
327
+ ### Tailwind classes not working?
293
328
 
294
- ## Publishing
329
+ 1. **Check your Tailwind config** - Make sure you've added `./node_modules/monobill-mintui/dist/**/*.js` to the `content` array
330
+ 2. **Rebuild your CSS** - Restart your dev server or rebuild your Tailwind output
331
+ 3. **Check the package name** - Make sure you're using `monobill-mintui` (not `mintui`) in the path
332
+ 4. **Verify the path** - The path should point to `dist/**/*.js` inside the node_modules folder
295
333
 
296
- For maintainers, to publish all components:
334
+ ## Development
297
335
 
298
336
  ```bash
299
- # Sync versions and build CSS
300
- npm run prepare:publish
337
+ # Install dependencies
338
+ npm install
301
339
 
302
- # Publish all components
303
- node scripts/publish-all.js
340
+ # Run development server
341
+ npm run dev
304
342
 
305
- # Or publish individually
306
- cd src/components/button
307
- npm publish --access public
343
+ # Build for production
344
+ npm run build
308
345
  ```
309
346
 
310
- The `version` script automatically syncs all component versions when you bump the root version:
311
-
312
- ```bash
313
- npm version patch # Bumps to 0.1.1 and syncs all components
314
- npm version minor # Bumps to 0.2.0 and syncs all components
315
- npm version major # Bumps to 1.0.0 and syncs all components
316
- ```
347
+ ## License
317
348
 
349
+ MIT
@@ -0,0 +1,96 @@
1
+ //#region src/components/icon/registry.ts
2
+ var e = /* @__PURE__ */ new Map();
3
+ function t(t) {
4
+ e.set(t.name, t);
5
+ }
6
+ function n(t) {
7
+ return e.get(t);
8
+ }
9
+ //#endregion
10
+ //#region src/components/icon/icons/close.ts
11
+ var r = {
12
+ name: "close",
13
+ viewBox: "0 0 24 24",
14
+ path: "M6 18L18 6M6 6l12 12",
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round"
17
+ };
18
+ t(r);
19
+ //#endregion
20
+ //#region src/components/icon/icons/check.ts
21
+ var i = {
22
+ name: "check",
23
+ viewBox: "0 0 24 24",
24
+ path: "M5 13l4 4L19 7",
25
+ strokeLinecap: "round",
26
+ strokeLinejoin: "round"
27
+ };
28
+ t(i);
29
+ //#endregion
30
+ //#region src/components/icon/icons/info.ts
31
+ var a = {
32
+ name: "info",
33
+ viewBox: "0 0 24 24",
34
+ path: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",
35
+ strokeLinecap: "round",
36
+ strokeLinejoin: "round"
37
+ };
38
+ t(a);
39
+ //#endregion
40
+ //#region src/components/icon/icons/success.ts
41
+ var o = {
42
+ name: "success",
43
+ viewBox: "0 0 24 24",
44
+ path: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
45
+ strokeLinecap: "round",
46
+ strokeLinejoin: "round"
47
+ };
48
+ t(o);
49
+ //#endregion
50
+ //#region src/components/icon/icons/warning.ts
51
+ var s = {
52
+ name: "warning",
53
+ viewBox: "0 0 24 24",
54
+ path: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z",
55
+ strokeLinecap: "round",
56
+ strokeLinejoin: "round"
57
+ };
58
+ t(s);
59
+ //#endregion
60
+ //#region src/components/icon/icons/error.ts
61
+ var c = {
62
+ name: "error",
63
+ viewBox: "0 0 24 24",
64
+ path: "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z",
65
+ strokeLinecap: "round",
66
+ strokeLinejoin: "round"
67
+ };
68
+ t(c);
69
+ //#endregion
70
+ //#region src/components/icon/icons/sort-arrows.ts
71
+ var l = {
72
+ name: "sort-arrows",
73
+ viewBox: "0 0 24 24",
74
+ path: "M1 5l5-4m0 0l5 4m-5-4v22 M13 19l5 4m0 0l5-4m-5 4V1",
75
+ strokeLinecap: "round",
76
+ strokeLinejoin: "round"
77
+ }, u = {
78
+ name: "caret-left",
79
+ viewBox: "0 0 24 24",
80
+ path: "M15 19l-7-7 7-7",
81
+ strokeLinecap: "round",
82
+ strokeLinejoin: "round"
83
+ };
84
+ t(u);
85
+ //#endregion
86
+ //#region src/components/icon/icons/caret-right.ts
87
+ var d = {
88
+ name: "caret-right",
89
+ viewBox: "0 0 24 24",
90
+ path: "M9 5l7 7-7 7",
91
+ strokeLinecap: "round",
92
+ strokeLinejoin: "round"
93
+ };
94
+ t(d);
95
+ //#endregion
96
+ export { s as a, i as c, t as d, c as i, r as l, u as n, o, l as r, a as s, d as t, n as u };
@@ -0,0 +1 @@
1
+ var e=new Map;function t(t){e.set(t.name,t)}function n(t){return e.get(t)}var r={name:`close`,viewBox:`0 0 24 24`,path:`M6 18L18 6M6 6l12 12`,strokeLinecap:`round`,strokeLinejoin:`round`};t(r);var i={name:`check`,viewBox:`0 0 24 24`,path:`M5 13l4 4L19 7`,strokeLinecap:`round`,strokeLinejoin:`round`};t(i);var a={name:`info`,viewBox:`0 0 24 24`,path:`M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};t(a);var o={name:`success`,viewBox:`0 0 24 24`,path:`M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};t(o);var s={name:`warning`,viewBox:`0 0 24 24`,path:`M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z`,strokeLinecap:`round`,strokeLinejoin:`round`};t(s);var c={name:`error`,viewBox:`0 0 24 24`,path:`M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z`,strokeLinecap:`round`,strokeLinejoin:`round`};t(c);var l={name:`sort-arrows`,viewBox:`0 0 24 24`,path:`M1 5l5-4m0 0l5 4m-5-4v22 M13 19l5 4m0 0l5-4m-5 4V1`,strokeLinecap:`round`,strokeLinejoin:`round`},u={name:`caret-left`,viewBox:`0 0 24 24`,path:`M15 19l-7-7 7-7`,strokeLinecap:`round`,strokeLinejoin:`round`};t(u);var d={name:`caret-right`,viewBox:`0 0 24 24`,path:`M9 5l7 7-7 7`,strokeLinecap:`round`,strokeLinejoin:`round`};t(d),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return n}});
@@ -0,0 +1,32 @@
1
+ import '../text/index';
2
+ import '../icon/index';
3
+ import '../icon/icons/info';
4
+ import '../icon/icons/success';
5
+ import '../icon/icons/warning';
6
+ import '../icon/icons/error';
7
+ import '../icon/icons/close';
8
+ declare class MintAlert extends HTMLElement {
9
+ static get observedAttributes(): string[];
10
+ private _headingElement;
11
+ private _iconElement;
12
+ private _dismissButton;
13
+ private _headerWrapper;
14
+ private _bodyWrapper;
15
+ private _dismissHandler;
16
+ constructor();
17
+ connectedCallback(): void;
18
+ disconnectedCallback(): void;
19
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
20
+ private getHeading;
21
+ private getTone;
22
+ private isDismissable;
23
+ private getIconName;
24
+ private getIconColorClasses;
25
+ private getHeadingColorClasses;
26
+ private getHeaderBackgroundClasses;
27
+ private getBorderClasses;
28
+ private getAriaLive;
29
+ render(): void;
30
+ }
31
+ export default MintAlert;
32
+ //# sourceMappingURL=Alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/Alert.ts"],"names":[],"mappings":"AAGA,OAAO,eAAe,CAAA;AACtB,OAAO,eAAe,CAAA;AACtB,OAAO,oBAAoB,CAAA;AAC3B,OAAO,uBAAuB,CAAA;AAC9B,OAAO,uBAAuB,CAAA;AAC9B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,qBAAqB,CAAA;AAK5B,cAAM,SAAU,SAAQ,WAAW;IACjC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,eAAe,CAA2B;IAClD,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,cAAc,CAAiC;IACvD,OAAO,CAAC,cAAc,CAA2B;IACjD,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,eAAe,CAAoC;;IAO3D,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAM5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAM9F,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,0BAA0B;IAgBlC,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,WAAW;IAKnB,MAAM,IAAI,IAAI;CAmHf;AAOD,eAAe,SAAS,CAAA"}
@@ -0,0 +1,3 @@
1
+ import './Alert';
2
+ export { default } from './Alert';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/alert/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,CAAA;AAGhB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,18 @@
1
+ declare class MintBackButton extends HTMLElement {
2
+ static get observedAttributes(): string[];
3
+ private _button;
4
+ constructor();
5
+ connectedCallback(): void;
6
+ disconnectedCallback(): void;
7
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
8
+ getFallbackHref(): string;
9
+ /**
10
+ * Get the target URL for navigation.
11
+ * Returns the referrer if available and from the same origin, otherwise returns the fallback URL.
12
+ */
13
+ private _getTargetUrl;
14
+ handleClick(event: Event): void;
15
+ render(): void;
16
+ }
17
+ export default MintBackButton;
18
+ //# sourceMappingURL=BackButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackButton.d.ts","sourceRoot":"","sources":["../../../src/components/back-button/BackButton.ts"],"names":[],"mappings":"AAIA,cAAM,cAAe,SAAQ,WAAW;IACtC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,OAAO,CAA2B;;IAO1C,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAI5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAM9F,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAqBrB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAgC/B,MAAM,IAAI,IAAI;CAUf;AAOD,eAAe,cAAc,CAAA"}
@@ -0,0 +1,3 @@
1
+ import './BackButton';
2
+ export { default } from './BackButton';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/back-button/index.ts"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAGrB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}