bonkers-ui 1.0.61 → 1.0.63

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 (517) hide show
  1. package/.eslintrc.js +1 -0
  2. package/CONSTANTS.d.ts +1 -0
  3. package/README.md +135 -21
  4. package/_types/align.js +5 -0
  5. package/_types/align.js.map +1 -0
  6. package/_types/colors.js +5 -0
  7. package/_types/colors.js.map +1 -0
  8. package/_types/sizing.js +5 -0
  9. package/_types/sizing.js.map +1 -0
  10. package/_virtual/_plugin-vue_export-helper.js +10 -0
  11. package/_virtual/_plugin-vue_export-helper.js.map +1 -0
  12. package/bonkers-ui.umd.js +12 -0
  13. package/bonkers-ui.umd.js.map +1 -0
  14. package/components/ui-alert/_types.d.ts +6 -0
  15. package/components/ui-alert/_types.js +5 -0
  16. package/components/ui-alert/_types.js.map +1 -0
  17. package/components/ui-alert/index.d.ts +92 -0
  18. package/components/ui-alert/index.js +9 -0
  19. package/components/ui-alert/index.js.map +1 -0
  20. package/components/ui-alert/ui-alert.vue.d.ts +27 -0
  21. package/components/ui-alert/ui-alert.vue.js +47 -0
  22. package/components/ui-alert/ui-alert.vue.js.map +1 -0
  23. package/components/ui-alert/ui-alert.vue2.js +5 -0
  24. package/components/ui-alert/ui-alert.vue2.js.map +1 -0
  25. package/components/ui-badge/_typings.d.ts +10 -0
  26. package/components/ui-badge/_typings.js +6 -0
  27. package/components/ui-badge/_typings.js.map +1 -0
  28. package/components/ui-badge/index.d.ts +114 -0
  29. package/components/ui-badge/index.js +10 -0
  30. package/components/ui-badge/index.js.map +1 -0
  31. package/components/ui-badge/ui-badge.vue.d.ts +31 -0
  32. package/components/ui-badge/ui-badge.vue.js +62 -0
  33. package/components/ui-badge/ui-badge.vue.js.map +1 -0
  34. package/components/ui-badge/ui-badge.vue2.js +5 -0
  35. package/components/ui-badge/ui-badge.vue2.js.map +1 -0
  36. package/components/ui-ber-rank/_types.d.ts +61 -0
  37. package/components/ui-ber-rank/_types.js +74 -0
  38. package/components/ui-ber-rank/_types.js.map +1 -0
  39. package/components/ui-ber-rank/index.d.ts +30 -0
  40. package/components/ui-ber-rank/index.js +11 -0
  41. package/components/ui-ber-rank/index.js.map +1 -0
  42. package/components/ui-ber-rank/ui-ber-rank.vue.d.ts +33 -0
  43. package/components/ui-ber-rank/ui-ber-rank.vue.js +101 -0
  44. package/components/ui-ber-rank/ui-ber-rank.vue.js.map +1 -0
  45. package/components/ui-ber-rank/ui-ber-rank.vue3.js +7 -0
  46. package/components/ui-ber-rank/ui-ber-rank.vue3.js.map +1 -0
  47. package/components/ui-button/_typings.d.ts +17 -0
  48. package/components/ui-button/_typings.js +6 -0
  49. package/components/ui-button/_typings.js.map +1 -0
  50. package/components/ui-button/index.d.ts +146 -0
  51. package/components/ui-button/index.js +10 -0
  52. package/components/ui-button/index.js.map +1 -0
  53. package/components/ui-button/ui-button.vue.d.ts +51 -0
  54. package/components/ui-button/ui-button.vue.js +51 -0
  55. package/components/ui-button/ui-button.vue.js.map +1 -0
  56. package/components/ui-button/ui-button.vue2.js +5 -0
  57. package/components/ui-button/ui-button.vue2.js.map +1 -0
  58. package/components/ui-card-cta/index.d.ts +127 -0
  59. package/components/ui-card-cta/index.js +7 -0
  60. package/components/ui-card-cta/index.js.map +1 -0
  61. package/components/ui-card-cta/ui-card-cta.vue.d.ts +34 -0
  62. package/components/ui-card-cta/ui-card-cta.vue.js +76 -0
  63. package/components/ui-card-cta/ui-card-cta.vue.js.map +1 -0
  64. package/components/ui-card-cta/ui-card-cta.vue2.js +5 -0
  65. package/components/ui-card-cta/ui-card-cta.vue2.js.map +1 -0
  66. package/components/ui-card-result/index.d.ts +125 -0
  67. package/components/ui-card-result/index.js +7 -0
  68. package/components/ui-card-result/index.js.map +1 -0
  69. package/components/ui-card-result/ui-card-result.vue.d.ts +32 -0
  70. package/components/ui-card-result/ui-card-result.vue.js +9 -0
  71. package/components/ui-card-result/ui-card-result.vue.js.map +1 -0
  72. package/components/ui-card-result/ui-card-result.vue2.js +82 -0
  73. package/components/ui-card-result/ui-card-result.vue2.js.map +1 -0
  74. package/components/ui-card-simple/index.d.ts +56 -0
  75. package/components/ui-card-simple/index.js +7 -0
  76. package/components/ui-card-simple/index.js.map +1 -0
  77. package/components/ui-card-simple/ui-card-simple.vue.d.ts +12 -0
  78. package/components/ui-card-simple/ui-card-simple.vue.js +36 -0
  79. package/components/ui-card-simple/ui-card-simple.vue.js.map +1 -0
  80. package/components/ui-card-simple/ui-card-simple.vue2.js +5 -0
  81. package/components/ui-card-simple/ui-card-simple.vue2.js.map +1 -0
  82. package/components/ui-checkbox/index.d.ts +142 -0
  83. package/components/ui-checkbox/index.js +7 -0
  84. package/components/ui-checkbox/index.js.map +1 -0
  85. package/components/ui-checkbox/ui-checkbox.vue.d.ts +36 -0
  86. package/components/ui-checkbox/ui-checkbox.vue.js +9 -0
  87. package/components/ui-checkbox/ui-checkbox.vue.js.map +1 -0
  88. package/components/ui-checkbox/ui-checkbox.vue2.js +74 -0
  89. package/components/ui-checkbox/ui-checkbox.vue2.js.map +1 -0
  90. package/components/ui-dropdown/_typings.d.ts +4 -0
  91. package/components/ui-dropdown/_typings.js +5 -0
  92. package/components/ui-dropdown/_typings.js.map +1 -0
  93. package/components/ui-dropdown/index.d.ts +148 -0
  94. package/components/ui-dropdown/index.js +9 -0
  95. package/components/ui-dropdown/index.js.map +1 -0
  96. package/components/ui-dropdown/ui-dropdown.vue.d.ts +50 -0
  97. package/components/ui-dropdown/ui-dropdown.vue.js +82 -0
  98. package/components/ui-dropdown/ui-dropdown.vue.js.map +1 -0
  99. package/components/ui-dropdown/ui-dropdown.vue2.js +5 -0
  100. package/components/ui-dropdown/ui-dropdown.vue2.js.map +1 -0
  101. package/components/ui-icon/_typings.d.ts +10 -0
  102. package/components/ui-icon/_typings.js +5 -0
  103. package/components/ui-icon/_typings.js.map +1 -0
  104. package/components/ui-icon/index.d.ts +33 -0
  105. package/components/ui-icon/index.js +11 -0
  106. package/components/ui-icon/index.js.map +1 -0
  107. package/components/ui-icon/ui-icon.vue.d.ts +34 -0
  108. package/components/ui-icon/ui-icon.vue.js +30 -0
  109. package/components/ui-icon/ui-icon.vue.js.map +1 -0
  110. package/components/ui-icon/ui-icon.vue2.js +5 -0
  111. package/components/ui-icon/ui-icon.vue2.js.map +1 -0
  112. package/components/ui-icon-wrapper/_typings.d.ts +11 -0
  113. package/components/ui-icon-wrapper/_typings.js +6 -0
  114. package/components/ui-icon-wrapper/_typings.js.map +1 -0
  115. package/components/ui-icon-wrapper/index.d.ts +104 -0
  116. package/components/ui-icon-wrapper/index.js +10 -0
  117. package/components/ui-icon-wrapper/index.js.map +1 -0
  118. package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts +41 -0
  119. package/components/ui-icon-wrapper/ui-icon-wrapper.vue.js +9 -0
  120. package/components/ui-icon-wrapper/ui-icon-wrapper.vue.js.map +1 -0
  121. package/components/ui-icon-wrapper/ui-icon-wrapper.vue2.js +28 -0
  122. package/components/ui-icon-wrapper/ui-icon-wrapper.vue2.js.map +1 -0
  123. package/components/ui-input/_typings.d.ts +70 -0
  124. package/components/ui-input/_typings.js +7 -0
  125. package/components/ui-input/_typings.js.map +1 -0
  126. package/components/ui-input/index.d.ts +337 -0
  127. package/components/ui-input/index.js +11 -0
  128. package/components/ui-input/index.js.map +1 -0
  129. package/components/ui-input/ui-input.vue.d.ts +102 -0
  130. package/components/ui-input/ui-input.vue.js +97 -0
  131. package/components/ui-input/ui-input.vue.js.map +1 -0
  132. package/components/ui-input/ui-input.vue2.js +5 -0
  133. package/components/ui-input/ui-input.vue2.js.map +1 -0
  134. package/components/ui-input-range/index.d.ts +46 -0
  135. package/components/ui-input-range/index.js +7 -0
  136. package/components/ui-input-range/index.js.map +1 -0
  137. package/components/ui-input-range/ui-input-range.vue.d.ts +26 -0
  138. package/components/ui-input-range/ui-input-range.vue.js +9 -0
  139. package/components/ui-input-range/ui-input-range.vue.js.map +1 -0
  140. package/components/ui-input-range/ui-input-range.vue2.js +71 -0
  141. package/components/ui-input-range/ui-input-range.vue2.js.map +1 -0
  142. package/components/ui-list-item/_types.d.ts +12 -0
  143. package/components/ui-list-item/_types.js +7 -0
  144. package/components/ui-list-item/_types.js.map +1 -0
  145. package/components/ui-list-item/index.d.ts +186 -0
  146. package/components/ui-list-item/index.js +11 -0
  147. package/components/ui-list-item/index.js.map +1 -0
  148. package/components/ui-list-item/ui-list-item.vue.d.ts +65 -0
  149. package/components/ui-list-item/ui-list-item.vue.js +65 -0
  150. package/components/ui-list-item/ui-list-item.vue.js.map +1 -0
  151. package/components/ui-list-item/ui-list-item.vue2.js +5 -0
  152. package/components/ui-list-item/ui-list-item.vue2.js.map +1 -0
  153. package/components/ui-modal/_typings.d.ts +6 -0
  154. package/components/ui-modal/_typings.js +5 -0
  155. package/components/ui-modal/_typings.js.map +1 -0
  156. package/components/ui-modal/index.d.ts +107 -0
  157. package/components/ui-modal/index.js +9 -0
  158. package/components/ui-modal/index.js.map +1 -0
  159. package/components/ui-modal/ui-backdrop/index.d.ts +54 -0
  160. package/components/ui-modal/ui-backdrop/index.js +7 -0
  161. package/components/ui-modal/ui-backdrop/index.js.map +1 -0
  162. package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts +10 -0
  163. package/components/ui-modal/ui-backdrop/ui-backdrop.vue.js +16 -0
  164. package/components/ui-modal/ui-backdrop/ui-backdrop.vue.js.map +1 -0
  165. package/components/ui-modal/ui-modal.vue.d.ts +46 -0
  166. package/components/ui-modal/ui-modal.vue.js +9 -0
  167. package/components/ui-modal/ui-modal.vue.js.map +1 -0
  168. package/components/ui-modal/ui-modal.vue2.js +65 -0
  169. package/components/ui-modal/ui-modal.vue2.js.map +1 -0
  170. package/components/ui-notification-badge/_types.d.ts +10 -0
  171. package/components/ui-notification-badge/_types.js +5 -0
  172. package/components/ui-notification-badge/_types.js.map +1 -0
  173. package/components/ui-notification-badge/index.d.ts +84 -0
  174. package/components/ui-notification-badge/index.js +11 -0
  175. package/components/ui-notification-badge/index.js.map +1 -0
  176. package/components/ui-notification-badge/ui-notification-badge.vue.d.ts +38 -0
  177. package/components/ui-notification-badge/ui-notification-badge.vue.js +22 -0
  178. package/components/ui-notification-badge/ui-notification-badge.vue.js.map +1 -0
  179. package/components/ui-notification-badge/ui-notification-badge.vue3.js +7 -0
  180. package/components/ui-notification-badge/ui-notification-badge.vue3.js.map +1 -0
  181. package/components/ui-order-card/_types.d.ts +4 -0
  182. package/components/ui-order-card/_types.js +5 -0
  183. package/components/ui-order-card/_types.js.map +1 -0
  184. package/components/ui-order-card/index.d.ts +103 -0
  185. package/components/ui-order-card/index.js +7 -0
  186. package/components/ui-order-card/index.js.map +1 -0
  187. package/components/ui-order-card/ui-order-card.vue.d.ts +43 -0
  188. package/components/ui-order-card/ui-order-card.vue.js +86 -0
  189. package/components/ui-order-card/ui-order-card.vue.js.map +1 -0
  190. package/components/ui-order-card/ui-order-card.vue2.js +5 -0
  191. package/components/ui-order-card/ui-order-card.vue2.js.map +1 -0
  192. package/components/ui-plain-radio/index.d.ts +163 -0
  193. package/components/ui-plain-radio/index.js +7 -0
  194. package/components/ui-plain-radio/index.js.map +1 -0
  195. package/components/ui-plain-radio/ui-plain-radio.vue.d.ts +38 -0
  196. package/components/ui-plain-radio/ui-plain-radio.vue.js +85 -0
  197. package/components/ui-plain-radio/ui-plain-radio.vue.js.map +1 -0
  198. package/components/ui-plain-radio/ui-plain-radio.vue2.js +5 -0
  199. package/components/ui-plain-radio/ui-plain-radio.vue2.js.map +1 -0
  200. package/components/ui-progress/_types.d.ts +1 -0
  201. package/components/ui-progress/index.d.ts +44 -0
  202. package/components/ui-progress/index.js +7 -0
  203. package/components/ui-progress/index.js.map +1 -0
  204. package/components/ui-progress/ui-progress.vue.d.ts +40 -0
  205. package/components/ui-progress/ui-progress.vue.js +26 -0
  206. package/components/ui-progress/ui-progress.vue.js.map +1 -0
  207. package/components/ui-progress/ui-progress.vue2.js +5 -0
  208. package/components/ui-progress/ui-progress.vue2.js.map +1 -0
  209. package/components/ui-radio/index.d.ts +163 -0
  210. package/components/ui-radio/index.js +7 -0
  211. package/components/ui-radio/index.js.map +1 -0
  212. package/components/ui-radio/ui-radio.vue.d.ts +38 -0
  213. package/components/ui-radio/ui-radio.vue.js +9 -0
  214. package/components/ui-radio/ui-radio.vue.js.map +1 -0
  215. package/components/ui-radio/ui-radio.vue2.js +58 -0
  216. package/components/ui-radio/ui-radio.vue2.js.map +1 -0
  217. package/components/ui-radio-compact/index.d.ts +136 -0
  218. package/components/ui-radio-compact/index.js +7 -0
  219. package/components/ui-radio-compact/index.js.map +1 -0
  220. package/components/ui-radio-compact/ui-radio-compact.vue.d.ts +33 -0
  221. package/components/ui-radio-compact/ui-radio-compact.vue.js +52 -0
  222. package/components/ui-radio-compact/ui-radio-compact.vue.js.map +1 -0
  223. package/components/ui-radio-compact/ui-radio-compact.vue2.js +5 -0
  224. package/components/ui-radio-compact/ui-radio-compact.vue2.js.map +1 -0
  225. package/components/ui-radio-fancy/_typings.d.ts +5 -0
  226. package/components/ui-radio-fancy/_typings.js +5 -0
  227. package/components/ui-radio-fancy/_typings.js.map +1 -0
  228. package/components/ui-radio-fancy/index.d.ts +181 -0
  229. package/components/ui-radio-fancy/index.js +7 -0
  230. package/components/ui-radio-fancy/index.js.map +1 -0
  231. package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts +56 -0
  232. package/components/ui-radio-fancy/ui-radio-fancy.vue.js +86 -0
  233. package/components/ui-radio-fancy/ui-radio-fancy.vue.js.map +1 -0
  234. package/components/ui-radio-fancy/ui-radio-fancy.vue2.js +5 -0
  235. package/components/ui-radio-fancy/ui-radio-fancy.vue2.js.map +1 -0
  236. package/components/ui-result-card-range/_types.d.ts +7 -0
  237. package/components/ui-result-card-range/index.d.ts +112 -0
  238. package/components/ui-result-card-range/index.js +7 -0
  239. package/components/ui-result-card-range/index.js.map +1 -0
  240. package/components/ui-result-card-range/ui-result-card-range.vue.d.ts +30 -0
  241. package/components/ui-result-card-range/ui-result-card-range.vue.js +41 -0
  242. package/components/ui-result-card-range/ui-result-card-range.vue.js.map +1 -0
  243. package/components/ui-result-card-range/ui-result-card-range.vue2.js +5 -0
  244. package/components/ui-result-card-range/ui-result-card-range.vue2.js.map +1 -0
  245. package/components/ui-ripple/index.d.ts +54 -0
  246. package/components/ui-ripple/index.js +9 -0
  247. package/components/ui-ripple/index.js.map +1 -0
  248. package/components/ui-ripple/ui-ripple.vue.d.ts +10 -0
  249. package/components/ui-ripple/ui-ripple.vue.js +52 -0
  250. package/components/ui-ripple/ui-ripple.vue.js.map +1 -0
  251. package/components/ui-ripple/ui-ripple.vue3.js +7 -0
  252. package/components/ui-ripple/ui-ripple.vue3.js.map +1 -0
  253. package/components/ui-select/index.d.ts +131 -0
  254. package/components/ui-select/index.js +7 -0
  255. package/components/ui-select/index.js.map +1 -0
  256. package/components/ui-select/ui-select.vue.d.ts +36 -0
  257. package/components/ui-select/ui-select.vue.js +83 -0
  258. package/components/ui-select/ui-select.vue.js.map +1 -0
  259. package/components/ui-select/ui-select.vue2.js +5 -0
  260. package/components/ui-select/ui-select.vue2.js.map +1 -0
  261. package/components/ui-skeleton/_typings.d.ts +4 -0
  262. package/components/ui-skeleton/_typings.js +5 -0
  263. package/components/ui-skeleton/_typings.js.map +1 -0
  264. package/components/ui-skeleton/index.d.ts +21 -0
  265. package/components/ui-skeleton/index.js +7 -0
  266. package/components/ui-skeleton/index.js.map +1 -0
  267. package/components/ui-skeleton/ui-skeleton.vue.d.ts +31 -0
  268. package/components/ui-skeleton/ui-skeleton.vue.js +43 -0
  269. package/components/ui-skeleton/ui-skeleton.vue.js.map +1 -0
  270. package/components/ui-skeleton/ui-skeleton.vue2.js +5 -0
  271. package/components/ui-skeleton/ui-skeleton.vue2.js.map +1 -0
  272. package/components/ui-snackbar/_types.d.ts +7 -0
  273. package/components/ui-snackbar/_types.js +5 -0
  274. package/components/ui-snackbar/_types.js.map +1 -0
  275. package/components/ui-snackbar/index.d.ts +103 -0
  276. package/components/ui-snackbar/index.js +9 -0
  277. package/components/ui-snackbar/index.js.map +1 -0
  278. package/components/ui-snackbar/ui-snackbar.vue.d.ts +42 -0
  279. package/components/ui-snackbar/ui-snackbar.vue.js +49 -0
  280. package/components/ui-snackbar/ui-snackbar.vue.js.map +1 -0
  281. package/components/ui-snackbar/ui-snackbar.vue2.js +5 -0
  282. package/components/ui-snackbar/ui-snackbar.vue2.js.map +1 -0
  283. package/components/ui-table/_types.d.ts +5 -0
  284. package/components/ui-table/_types.js +5 -0
  285. package/components/ui-table/_types.js.map +1 -0
  286. package/components/ui-table/index.d.ts +87 -0
  287. package/components/ui-table/index.js +19 -0
  288. package/components/ui-table/index.js.map +1 -0
  289. package/components/ui-table/ui-table-cell/index.d.ts +87 -0
  290. package/components/ui-table/ui-table-cell/index.js +7 -0
  291. package/components/ui-table/ui-table-cell/index.js.map +1 -0
  292. package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts +27 -0
  293. package/components/ui-table/ui-table-cell/ui-table-cell.vue.js +41 -0
  294. package/components/ui-table/ui-table-cell/ui-table-cell.vue.js.map +1 -0
  295. package/components/ui-table/ui-table-cell/ui-table-cell.vue2.js +5 -0
  296. package/components/ui-table/ui-table-cell/ui-table-cell.vue2.js.map +1 -0
  297. package/components/ui-table/ui-table-row/_typings.d.ts +3 -0
  298. package/components/ui-table/ui-table-row/_typings.js +5 -0
  299. package/components/ui-table/ui-table-row/_typings.js.map +1 -0
  300. package/components/ui-table/ui-table-row/index.d.ts +74 -0
  301. package/components/ui-table/ui-table-row/index.js +9 -0
  302. package/components/ui-table/ui-table-row/index.js.map +1 -0
  303. package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts +24 -0
  304. package/components/ui-table/ui-table-row/ui-table-row.vue.js +9 -0
  305. package/components/ui-table/ui-table-row/ui-table-row.vue.js.map +1 -0
  306. package/components/ui-table/ui-table-row/ui-table-row.vue3.js +19 -0
  307. package/components/ui-table/ui-table-row/ui-table-row.vue3.js.map +1 -0
  308. package/components/ui-table/ui-table.vue.d.ts +38 -0
  309. package/components/ui-table/ui-table.vue.js +9 -0
  310. package/components/ui-table/ui-table.vue.js.map +1 -0
  311. package/components/ui-table/ui-table.vue2.js +23 -0
  312. package/components/ui-table/ui-table.vue2.js.map +1 -0
  313. package/components/ui-tabs/index.d.ts +40 -0
  314. package/components/ui-tabs/index.js +7 -0
  315. package/components/ui-tabs/index.js.map +1 -0
  316. package/components/ui-tabs/ui-tabs.vue.d.ts +38 -0
  317. package/components/ui-tabs/ui-tabs.vue.js +9 -0
  318. package/components/ui-tabs/ui-tabs.vue.js.map +1 -0
  319. package/components/ui-tabs/ui-tabs.vue2.js +56 -0
  320. package/components/ui-tabs/ui-tabs.vue2.js.map +1 -0
  321. package/components/ui-toggle/index.d.ts +168 -0
  322. package/components/ui-toggle/index.js +7 -0
  323. package/components/ui-toggle/index.js.map +1 -0
  324. package/components/ui-toggle/ui-toggle.vue.d.ts +40 -0
  325. package/components/ui-toggle/ui-toggle.vue.js +9 -0
  326. package/components/ui-toggle/ui-toggle.vue.js.map +1 -0
  327. package/components/ui-toggle/ui-toggle.vue2.js +94 -0
  328. package/components/ui-toggle/ui-toggle.vue2.js.map +1 -0
  329. package/components/ui-typography/_typings.d.ts +69 -0
  330. package/components/ui-typography/_typings.js +8 -0
  331. package/components/ui-typography/_typings.js.map +1 -0
  332. package/components/ui-typography/index.d.ts +167 -0
  333. package/components/ui-typography/index.js +14 -0
  334. package/components/ui-typography/index.js.map +1 -0
  335. package/components/ui-typography/ui-typography.vue.d.ts +39 -0
  336. package/components/ui-typography/ui-typography.vue.js +101 -0
  337. package/components/ui-typography/ui-typography.vue.js.map +1 -0
  338. package/components/ui-typography/ui-typography.vue2.js +5 -0
  339. package/components/ui-typography/ui-typography.vue2.js.map +1 -0
  340. package/components/ui-verification-input/index.d.ts +102 -0
  341. package/components/ui-verification-input/index.js +7 -0
  342. package/components/ui-verification-input/index.js.map +1 -0
  343. package/components/ui-verification-input/ui-verification-input.vue.d.ts +27 -0
  344. package/components/ui-verification-input/ui-verification-input.vue.js +9 -0
  345. package/components/ui-verification-input/ui-verification-input.vue.js.map +1 -0
  346. package/components/ui-verification-input/ui-verification-input.vue2.js +53 -0
  347. package/components/ui-verification-input/ui-verification-input.vue2.js.map +1 -0
  348. package/index.d.ts +40 -0
  349. package/index.js +203 -0
  350. package/index.js.map +1 -0
  351. package/package.json +71 -42
  352. package/plugin.ts +129 -0
  353. package/postcss.config.js +3 -0
  354. package/tailwind.config.ts +13 -0
  355. package/tsconfig.json +32 -19
  356. package/tsconfig.node.json +4 -2
  357. package/types.d.ts +20 -0
  358. package/types.js +77 -0
  359. package/types.js.map +1 -0
  360. package/.editorconfig +0 -14
  361. package/.github/workflows/deploy-beta.yaml +0 -31
  362. package/.github/workflows/deploy.yaml +0 -28
  363. package/.github/workflows/linting.yaml +0 -28
  364. package/.storybook/BonkersTheme.js +0 -32
  365. package/.storybook/main.js +0 -29
  366. package/.storybook/manager.js +0 -7
  367. package/.storybook/preview-head.html +0 -3
  368. package/.storybook/preview.js +0 -56
  369. package/LICENCE +0 -21
  370. package/publish.js +0 -45
  371. package/src/CONSTANTS.ts +0 -1
  372. package/src/_samples/check-icon.vue +0 -22
  373. package/src/_samples/icon.vue +0 -19
  374. package/src/_styles/variables/colors.css +0 -75
  375. package/src/_styles/variables/font-sizes.css +0 -15
  376. package/src/_styles/variables/shadow.css +0 -11
  377. package/src/_styles/variables/spacing.css +0 -15
  378. package/src/_types/align.ts +0 -8
  379. package/src/_types/colors.ts +0 -58
  380. package/src/_types/sizing.ts +0 -9
  381. package/src/components/ui-alert/_types.ts +0 -6
  382. package/src/components/ui-alert/index.ts +0 -2
  383. package/src/components/ui-alert/ui-alert.stories.ts +0 -31
  384. package/src/components/ui-alert/ui-alert.vue +0 -40
  385. package/src/components/ui-badge/_typings.ts +0 -11
  386. package/src/components/ui-badge/index.ts +0 -2
  387. package/src/components/ui-badge/ui-badge.stories.ts +0 -49
  388. package/src/components/ui-badge/ui-badge.vue +0 -65
  389. package/src/components/ui-ber-rank/_types.ts +0 -82
  390. package/src/components/ui-ber-rank/index.ts +0 -2
  391. package/src/components/ui-ber-rank/ui-ber-rank.stories.ts +0 -29
  392. package/src/components/ui-ber-rank/ui-ber-rank.vue +0 -96
  393. package/src/components/ui-button/_typings.ts +0 -17
  394. package/src/components/ui-button/index.ts +0 -2
  395. package/src/components/ui-button/ui-button.stories.ts +0 -143
  396. package/src/components/ui-button/ui-button.test.ts +0 -9
  397. package/src/components/ui-button/ui-button.vue +0 -79
  398. package/src/components/ui-card-cta/index.ts +0 -1
  399. package/src/components/ui-card-cta/ui-card-cta.stories.ts +0 -20
  400. package/src/components/ui-card-cta/ui-card-cta.vue +0 -83
  401. package/src/components/ui-card-result/index.ts +0 -1
  402. package/src/components/ui-card-result/ui-card-result.stories.ts +0 -167
  403. package/src/components/ui-card-result/ui-card-result.vue +0 -97
  404. package/src/components/ui-card-simple/index.ts +0 -1
  405. package/src/components/ui-card-simple/ui-card-simple.stories.ts +0 -40
  406. package/src/components/ui-card-simple/ui-card-simple.vue +0 -30
  407. package/src/components/ui-checkbox/index.ts +0 -1
  408. package/src/components/ui-checkbox/ui-checkbox.stories.ts +0 -71
  409. package/src/components/ui-checkbox/ui-checkbox.vue +0 -173
  410. package/src/components/ui-icon/_typings.ts +0 -11
  411. package/src/components/ui-icon/index.ts +0 -3
  412. package/src/components/ui-icon/ui-icon.stories.ts +0 -43
  413. package/src/components/ui-icon/ui-icon.vue +0 -27
  414. package/src/components/ui-icon-wrapper/_typings.ts +0 -11
  415. package/src/components/ui-icon-wrapper/index.ts +0 -2
  416. package/src/components/ui-icon-wrapper/ui-icon-wrapper.stories.ts +0 -69
  417. package/src/components/ui-icon-wrapper/ui-icon-wrapper.vue +0 -44
  418. package/src/components/ui-input/_typings.ts +0 -74
  419. package/src/components/ui-input/index.ts +0 -2
  420. package/src/components/ui-input/ui-input.stories.ts +0 -111
  421. package/src/components/ui-input/ui-input.vue +0 -100
  422. package/src/components/ui-input-range/index.ts +0 -1
  423. package/src/components/ui-input-range/ui-input-range.stories.ts +0 -57
  424. package/src/components/ui-input-range/ui-input-range.vue +0 -138
  425. package/src/components/ui-list-item/_types.ts +0 -13
  426. package/src/components/ui-list-item/index.ts +0 -2
  427. package/src/components/ui-list-item/ui-list-item.stories.ts +0 -77
  428. package/src/components/ui-list-item/ui-list-item.vue +0 -79
  429. package/src/components/ui-modal/_typings.ts +0 -6
  430. package/src/components/ui-modal/index.ts +0 -2
  431. package/src/components/ui-modal/ui-backdrop/index.ts +0 -1
  432. package/src/components/ui-modal/ui-backdrop/ui-backdrop.vue +0 -22
  433. package/src/components/ui-modal/ui-modal.stories.ts +0 -85
  434. package/src/components/ui-modal/ui-modal.vue +0 -90
  435. package/src/components/ui-notification-badge/_types.ts +0 -11
  436. package/src/components/ui-notification-badge/index.ts +0 -2
  437. package/src/components/ui-notification-badge/ui-notification-badge.stories.ts +0 -44
  438. package/src/components/ui-notification-badge/ui-notification-badge.vue +0 -42
  439. package/src/components/ui-order-card/_types.ts +0 -4
  440. package/src/components/ui-order-card/index.ts +0 -1
  441. package/src/components/ui-order-card/ui-order-card.stories.ts +0 -57
  442. package/src/components/ui-order-card/ui-order-card.vue +0 -83
  443. package/src/components/ui-plain-radio/index.ts +0 -1
  444. package/src/components/ui-plain-radio/ui-plain-radio.stories.ts +0 -74
  445. package/src/components/ui-plain-radio/ui-plain-radio.vue +0 -119
  446. package/src/components/ui-progress/_types.ts +0 -0
  447. package/src/components/ui-progress/index.ts +0 -1
  448. package/src/components/ui-progress/ui-progress.stories.ts +0 -40
  449. package/src/components/ui-progress/ui-progress.vue +0 -43
  450. package/src/components/ui-radio/index.ts +0 -1
  451. package/src/components/ui-radio/ui-radio.stories.ts +0 -74
  452. package/src/components/ui-radio/ui-radio.vue +0 -108
  453. package/src/components/ui-radio-compact/index.ts +0 -1
  454. package/src/components/ui-radio-compact/ui-radio-compact.stories.ts +0 -51
  455. package/src/components/ui-radio-compact/ui-radio-compact.vue +0 -92
  456. package/src/components/ui-radio-fancy/_typings.ts +0 -5
  457. package/src/components/ui-radio-fancy/index.ts +0 -1
  458. package/src/components/ui-radio-fancy/ui-radio-fancy.stories.ts +0 -81
  459. package/src/components/ui-radio-fancy/ui-radio-fancy.vue +0 -132
  460. package/src/components/ui-result-card-range/_types.ts +0 -8
  461. package/src/components/ui-result-card-range/index.ts +0 -1
  462. package/src/components/ui-result-card-range/ui-result-card-range.stories.ts +0 -78
  463. package/src/components/ui-result-card-range/ui-result-card-range.vue +0 -46
  464. package/src/components/ui-ripple/index.ts +0 -1
  465. package/src/components/ui-ripple/ui-ripple.stories.ts +0 -61
  466. package/src/components/ui-ripple/ui-ripple.vue +0 -83
  467. package/src/components/ui-select/index.ts +0 -1
  468. package/src/components/ui-select/ui-select.stories.ts +0 -49
  469. package/src/components/ui-select/ui-select.vue +0 -85
  470. package/src/components/ui-skeleton/_typings.ts +0 -4
  471. package/src/components/ui-skeleton/index.ts +0 -1
  472. package/src/components/ui-skeleton/ui-skeleton.stories.ts +0 -42
  473. package/src/components/ui-skeleton/ui-skeleton.vue +0 -61
  474. package/src/components/ui-snackbar/_types.ts +0 -7
  475. package/src/components/ui-snackbar/index.ts +0 -2
  476. package/src/components/ui-snackbar/ui-snackbar.stories.ts +0 -30
  477. package/src/components/ui-snackbar/ui-snackbar.vue +0 -42
  478. package/src/components/ui-table/_types.ts +0 -5
  479. package/src/components/ui-table/index.ts +0 -5
  480. package/src/components/ui-table/ui-table-cell/index.ts +0 -1
  481. package/src/components/ui-table/ui-table-cell/ui-table-cell.vue +0 -33
  482. package/src/components/ui-table/ui-table-row/_typings.ts +0 -3
  483. package/src/components/ui-table/ui-table-row/index.ts +0 -2
  484. package/src/components/ui-table/ui-table-row/ui-table-row.vue +0 -31
  485. package/src/components/ui-table/ui-table.stories.ts +0 -86
  486. package/src/components/ui-table/ui-table.vue +0 -31
  487. package/src/components/ui-tabs/index.ts +0 -1
  488. package/src/components/ui-tabs/ui-tabs.stories.ts +0 -33
  489. package/src/components/ui-tabs/ui-tabs.vue +0 -60
  490. package/src/components/ui-toggle/index.ts +0 -1
  491. package/src/components/ui-toggle/ui-toggle.stories.ts +0 -55
  492. package/src/components/ui-toggle/ui-toggle.vue +0 -149
  493. package/src/components/ui-typography/_typings.ts +0 -30
  494. package/src/components/ui-typography/index.ts +0 -3
  495. package/src/components/ui-typography/ui-typography.stories.ts +0 -101
  496. package/src/components/ui-typography/ui-typography.vue +0 -110
  497. package/src/components/ui-verification-input/index.ts +0 -1
  498. package/src/components/ui-verification-input/ui-verification-input.stories.ts +0 -48
  499. package/src/components/ui-verification-input/ui-verification-input.vue +0 -126
  500. package/src/main.css +0 -34
  501. package/src/shims-vue.d.ts +0 -5
  502. package/src/stories/Introduction.stories.mdx +0 -131
  503. package/src/stories/assets/code-brackets.svg +0 -1
  504. package/src/stories/colors/colors.stories.ts +0 -15
  505. package/src/stories/colors/ui-colors.vue +0 -96
  506. package/src/stories/font-sizes/font-sizes.stories.ts +0 -15
  507. package/src/stories/font-sizes/ui-font-sizes.vue +0 -28
  508. package/src/stories/helper.ts +0 -5
  509. package/src/stories/spacings/spacings.stories.ts +0 -15
  510. package/src/stories/spacings/ui-spacings.vue +0 -50
  511. package/tailwind.config.js +0 -30
  512. package/vite.config.ts +0 -14
  513. package/vitest.config.ts +0 -17
  514. /package/src/_styles/{classTypes/_colors.json → _colors.json} +0 -0
  515. /package/src/_styles/{classTypes/_font-sizes.json → _font-sizes.json} +0 -0
  516. /package/src/_styles/{classTypes/_shadow.json → _shadow.json} +0 -0
  517. /package/src/_styles/{classTypes/_spacing.json → _spacing.json} +0 -0
@@ -1,58 +0,0 @@
1
- export enum EColors {
2
- WHITE = "--color-white",
3
- BLACK = "--color-black",
4
- TRANSPARENT = "--color-transparent",
5
- CURRENT = "--color-current",
6
-
7
- PRIMARY = "--color-primary",
8
- PRIMARY_300 = "--color-primary-300",
9
- PRIMARY_400 = "--color-primary-400",
10
- PRIMARY_500 = "--color-primary-500",
11
- PRIMARY_600 = "--color-primary-600",
12
- PRIMARY_700 = "--color-primary-700",
13
-
14
- PRIMARY_ALT = "--color-primary-alt",
15
- PRIMARY_ALT_300 = "--color-primary-alt-300",
16
- PRIMARY_ALT_400 = "--color-primary-alt-400",
17
- PRIMARY_ALT_500 = "--color-primary-alt-500",
18
- PRIMARY_ALT_600 = "--color-primary-alt-600",
19
- PRIMARY_ALT_700 = "--color-primary-alt-700",
20
-
21
- SECONDARY = "--color-secondary",
22
- SECONDARY_300 = "--color-secondary-300",
23
- SECONDARY_400 = "--color-secondary-400",
24
- SECONDARY_500 = "--color-secondary-500",
25
- SECONDARY_600 = "--color-secondary-600",
26
- SECONDARY_700 = "--color-secondary-700",
27
-
28
- WARNING = "--color-warning",
29
- WARNING_300 = "--color-warning-300",
30
- WARNING_400 = "--color-warning-400",
31
- WARNING_500 = "--color-warning-500",
32
- WARNING_600 = "--color-warning-600",
33
- WARNING_700 = "--color-warning-700",
34
-
35
- ERROR = "--color-error",
36
- ERROR_300 = "--color-error-300",
37
- ERROR_400 = "--color-error-400",
38
- ERROR_500 = "--color-error-500",
39
- ERROR_600 = "--color-error-600",
40
- ERROR_700 = "--color-error-700",
41
-
42
- ACCENT = "--color-accent",
43
- ACCENT_300 = "--color-accent-300",
44
- ACCENT_500 = "--color-accent-500",
45
- ACCENT_600 = "--color-accent-600",
46
- ACCENT_700 = "--color-accent-700",
47
-
48
- ACCENT_ALT = "--color-accent-alt",
49
- ACCENT_ALT_500 = "--color-accent-alt-500",
50
-
51
- SECONDARY_ALT = "--color-secondary-alt",
52
- SECONDARY_ALT_200 = "--color-secondary-alt-200",
53
- SECONDARY_ALT_300 = "--color-secondary-alt-300",
54
- SECONDARY_ALT_400 = "--color-secondary-alt-400",
55
- SECONDARY_ALT_500 = "--color-secondary-alt-500",
56
- SECONDARY_ALT_600 = "--color-secondary-alt-600",
57
- SECONDARY_ALT_700 = "--color-secondary-alt-700",
58
- }
@@ -1,9 +0,0 @@
1
- export enum ESize {
2
- XXS = "xxs",
3
- XS = "xs",
4
- SM = "sm",
5
- MD = "md",
6
- LG = "lg",
7
- XL = "xl",
8
- XXL = "xxl",
9
- }
@@ -1,6 +0,0 @@
1
- export enum EAlertTypes {
2
- PRIMARY = "PRIMARY",
3
- SECONDARY = "SECONDARY",
4
- ERROR = "ERROR",
5
- WARNING = "WARNING",
6
- }
@@ -1,2 +0,0 @@
1
- export { default } from "./ui-alert.vue";
2
- export { EAlertTypes } from "./_types";
@@ -1,31 +0,0 @@
1
- import type { Meta } from "@storybook/vue3";
2
- import { ICON_DEFAULT } from "./../../CONSTANTS";
3
- import { EAlertTypes } from "./_types";
4
- import UiAlert from "../ui-alert";
5
-
6
- export default {
7
- title: "Components/ui-alert",
8
- component: UiAlert,
9
-
10
- argTypes: {
11
- kind: {
12
- control: {
13
- type: "select"
14
- },
15
- options: Object.values(EAlertTypes),
16
- description: "The button kinds",
17
- },
18
- default: {
19
- control: {
20
- type: "text"
21
- },
22
- }
23
- },
24
- } satisfies Meta<typeof UiAlert>;
25
-
26
- export const Default = {
27
- args: {
28
- icon: ICON_DEFAULT,
29
- default: "This is a default slot"
30
- },
31
- };
@@ -1,40 +0,0 @@
1
- <template>
2
- <div
3
- class="ui-alert flex gap-sm rounded-lg border bg-white p-sm"
4
- :class="[
5
- (!kind || kind === EAlertTypes.PRIMARY) && 'border-primary',
6
- kind === EAlertTypes.WARNING && 'border-warning',
7
- kind === EAlertTypes.ERROR && 'border-error',
8
- kind === EAlertTypes.SECONDARY && 'border-secondary'
9
- ]"
10
- >
11
- <ui-icon
12
- :icon-name="icon"
13
- :size="ESize.SM"
14
- :class="[
15
- (!kind || kind === EAlertTypes.PRIMARY) && 'text-primary',
16
- kind === EAlertTypes.WARNING && 'text-warning',
17
- kind === EAlertTypes.ERROR && 'text-error',
18
- kind === EAlertTypes.SECONDARY && 'text-secondary',
19
- ]"
20
- />
21
- <ui-typography
22
- :size="ETypographySizes.XS"
23
- line-height
24
- >
25
- <slot />
26
- </ui-typography>
27
- </div>
28
- </template>
29
-
30
- <script lang="ts" setup>
31
- import UiTypography, { ETypographySizes } from "../ui-typography";
32
- import UiIcon, { type TIconName } from "../ui-icon";
33
- import { ESize } from "../../_types/sizing";
34
- import { EAlertTypes } from "./_types";
35
-
36
- defineProps<{
37
- icon: TIconName
38
- kind?: EAlertTypes
39
- }>();
40
- </script>
@@ -1,11 +0,0 @@
1
- export enum EBadgeSize {
2
- SMALL = "small",
3
- MEDIUM = "medium",
4
- LARGE = "large",
5
- }
6
-
7
- export enum EBadgeKind {
8
- PRIMARY = "primary",
9
- ERROR = "error",
10
- ACCENT = "accent",
11
- }
@@ -1,2 +0,0 @@
1
- export { default } from "./ui-badge.vue";
2
- export { EBadgeKind, EBadgeSize } from "./_typings";
@@ -1,49 +0,0 @@
1
- import UiBadge from "./ui-badge.vue";
2
- import type { Story } from "@storybook/vue3";
3
- import { EBadgeKind, EBadgeSize } from "./_typings";
4
-
5
- export default {
6
- title: "Components/ui-badge",
7
- component: UiBadge,
8
- argTypes: {
9
- kind: {
10
- control: {
11
- type: "select"
12
- },
13
- options: Object.values(EBadgeKind),
14
- description: "The Element kinds",
15
- },
16
- size: {
17
- control: {
18
- type: "select"
19
- },
20
- options: Object.values(EBadgeSize),
21
- description: "The Element size",
22
- },
23
- },
24
- args: {
25
- slot: "default text",
26
- kind: EBadgeKind.PRIMARY,
27
- size: EBadgeSize.SMALL,
28
- },
29
- };
30
-
31
- type TComponentProps = InstanceType<typeof UiBadge>["$props"];
32
-
33
- const Template: Story<TComponentProps> = (args) => ({
34
- components: {
35
- UiBadge
36
- },
37
- setup() {
38
- return {
39
- args
40
- };
41
- },
42
- template: /*html*/`
43
- <ui-badge :icon="['far', 'face-smile']" v-bind="args" class="inline-flex">
44
- {{ args.slot }}
45
- </ui-badge>
46
- `,
47
- });
48
-
49
- export const Default = Template.bind({});
@@ -1,65 +0,0 @@
1
- <template>
2
- <div
3
- class="ui-badge relative overflow-hidden text-white"
4
- >
5
- <div class="relative z-[1] flex content-center items-center gap-xxs px-xs py-xxs">
6
- <ui-icon
7
- v-if="icon"
8
- :size="ESize.SM"
9
- :icon-name="icon"
10
- />
11
-
12
- <ui-typography
13
- v-if="slots.default"
14
- :size="getBadgeSize"
15
- class="whitespace-nowrap"
16
- line-height
17
- :class="[
18
- elipsis && 'overflow-hidden text-ellipsis',
19
- ]"
20
- >
21
- <slot />
22
- </ui-typography>
23
- </div>
24
-
25
- <div
26
- class="absolute left-0 top-0 h-full w-full rounded-full"
27
- :class="[
28
- (!kind || kind === EBadgeKind.PRIMARY) && 'bg-primary-600',
29
-
30
- kind === EBadgeKind.ERROR && 'bg-error-600',
31
- kind === EBadgeKind.ACCENT && 'bg-accent-600',
32
- elipsis && 'max-w-full',
33
- ]"
34
- />
35
- </div>
36
- </template>
37
-
38
- <script lang="ts" setup>
39
- import { computed, useSlots } from "vue";
40
- import { EBadgeKind, EBadgeSize } from "./_typings";
41
- import UiIcon, { type TIconName } from "../ui-icon";
42
- import { ESize } from "../../_types/sizing";
43
- import UiTypography, { ETypographySizes, ETextWeight } from "../ui-typography";
44
-
45
- const props = defineProps<{
46
- size?: EBadgeSize;
47
- kind?: EBadgeKind;
48
- icon?: TIconName;
49
- elipsis?: boolean;
50
- }>();
51
-
52
- const slots = useSlots();
53
-
54
- const getBadgeSize = computed(()=>{
55
- switch (props.size) {
56
- case EBadgeSize.MEDIUM:
57
- return ETypographySizes.XS;
58
- case EBadgeSize.LARGE:
59
- return ETypographySizes.SM;
60
- case EBadgeSize.SMALL:
61
- default:
62
- return ETypographySizes.XXS;
63
- }
64
- });
65
- </script>
@@ -1,82 +0,0 @@
1
- import { EColors } from "../../_types/colors";
2
-
3
- type Ran<T extends number> = number extends T ? number :_Range<T, []>;
4
- type _Range<T extends number, R extends unknown[]> = R["length"] extends T ? R[number] : _Range<T, [R["length"], ...R]>;
5
-
6
- export type TBerPropNumber = Ran<typeof berRankDictionary.length>
7
- export type TBerPropString = `${TBerPropNumber}`;
8
- export type TBerRank = typeof berRankDictionary[TBerPropNumber]["text"];
9
-
10
- export const berRankDictionary = [
11
- {
12
- text: "N/A",
13
- color: EColors.SECONDARY_ALT,
14
- },
15
- {
16
- text: "G",
17
- color: EColors.ERROR,
18
- },
19
- {
20
- text: "F",
21
- color: EColors.WARNING,
22
- },
23
- {
24
- text: "E2",
25
- color: EColors.WARNING_600,
26
- },
27
- {
28
- text: "E1",
29
- color: EColors.WARNING_600,
30
- },
31
- {
32
- text: "D2",
33
- color: EColors.WARNING_400,
34
- },
35
- {
36
- text: "D1",
37
- color: EColors.WARNING_400,
38
- },
39
- {
40
- text: "C3",
41
- color: EColors.PRIMARY_ALT,
42
- },
43
- {
44
- text: "C2",
45
- color: EColors.PRIMARY_ALT,
46
- },
47
- {
48
- text: "C1",
49
- color: EColors.PRIMARY_ALT,
50
- },
51
- {
52
- text: "B3",
53
- color: EColors.PRIMARY_ALT_600,
54
- },
55
- {
56
- text: "B2",
57
- color: EColors.PRIMARY_ALT_600,
58
- },
59
- {
60
- text: "B1",
61
- color: EColors.PRIMARY_ALT_600,
62
- },
63
- {
64
- text: "A3",
65
- color: EColors.PRIMARY_ALT_700,
66
- },
67
- {
68
- text: "A2",
69
- color: EColors.PRIMARY_ALT_700,
70
- },
71
- {
72
- text: "A1",
73
- color: EColors.PRIMARY_ALT_700,
74
- },
75
- ] as const;
76
-
77
- export const berRanksList = berRankDictionary.map(({ text }) => text);
78
-
79
- export enum EBerSize {
80
- SMALL = "small",
81
- MEDIUM = "medium",
82
- }
@@ -1,2 +0,0 @@
1
- export { default } from "./ui-ber-rank.vue";
2
- export { EBerSize } from "./_types";
@@ -1,29 +0,0 @@
1
- import type { Meta } from "@storybook/vue3";
2
-
3
- import { EBerSize } from "./_types";
4
- import UiBerRank from "../ui-ber-rank";
5
-
6
- export default {
7
- title: "Components/ui-ber-rank",
8
- component: UiBerRank,
9
- argTypes: {
10
- rank: {
11
- control: {
12
- type: "number"
13
- },
14
- description: "The Element rank from 0 to 15",
15
- },
16
- size: {
17
- control: {
18
- type: "select"
19
- },
20
- options: Object.values(EBerSize),
21
- description: "The size of the rank",
22
- }
23
- },
24
- args: {
25
- rank: 0,
26
- },
27
- }satisfies Meta<typeof UiBerRank>;
28
-
29
- export const Default = {};
@@ -1,96 +0,0 @@
1
- <template>
2
- <div class="ui-ber-rank flex">
3
- <div class="ui-ber-rank__icon-wrapper relative">
4
- <svg
5
- class="text-secondary"
6
- :class="[
7
- size === EBerSize.SMALL && 'ui-ber-rank__icon_small',
8
- size === EBerSize.MEDIUM && 'ui-ber-rank__icon_medium',
9
- ]"
10
- viewBox="0 0 160 60"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- >
14
- <path
15
- fill-rule="evenodd"
16
- d="M0.279251 15.36C0.279251 9.9835 0.279251 7.29524 1.32559 5.24169C2.24597 3.43534 3.71459 1.96672 5.52094 1.04634C7.5745 0 10.2627 0 15.6393 0H139.208C143.189 0 145.18 0 146.874 0.666121C148.369 1.25435 149.693 2.20864 150.724 3.44151C151.892 4.83764 152.521 6.72601 153.78 10.5027L158.93 25.9523C159.431 27.4541 159.681 28.205 159.78 28.9732C159.869 29.6549 159.869 30.3451 159.78 31.0268C159.681 31.795 159.431 32.5459 158.93 34.0477L153.78 49.4973C152.521 53.274 151.892 55.1624 150.724 56.5585C149.693 57.7914 148.369 58.7457 146.874 59.3339C145.18 60 143.189 60 139.208 60H15.6393C10.2627 60 7.5745 60 5.52094 58.9537C3.71459 58.0333 2.24597 56.5647 1.32559 54.7583C0.279251 52.7048 0.279251 50.0165 0.279251 44.64V15.36Z"
17
- fill="currentColor"
18
- />
19
- </svg>
20
- <ui-typography
21
- :kind="EColors.WHITE"
22
- :weight="ETextWeight.BOLD"
23
- :size="textSize"
24
- :text-transform="ETextTransform.UPPERCASE"
25
- class="absolute left-0 top-0 flex h-full w-full items-center justify-center"
26
- >
27
- ber
28
- </ui-typography>
29
- </div>
30
-
31
- <div class="ui-ber-rank__icon-wrapper relative">
32
- <ui-typography :kind="berRankDictionary[+rank]?.color || berRankDictionary[0].color">
33
- <svg
34
- :class="[
35
- size === EBerSize.SMALL && 'ui-ber-rank__icon_small',
36
- size === EBerSize.MEDIUM && 'ui-ber-rank__icon_medium',
37
- ]"
38
- viewBox="0 0 106 60"
39
- fill="none"
40
- xmlns="http://www.w3.org/2000/svg"
41
- >
42
- <path
43
- fill-rule="evenodd"
44
- d="M3.01833 20.2172C0.74308 13.3915 -0.394547 9.9786 0.287586 7.26202C0.884697 4.88404 2.36903 2.82464 4.43616 1.50619C6.79762 0 10.3951 0 17.5901 0H90.3607C95.7373 0 98.4255 0 100.479 1.04634C102.285 1.96672 103.754 3.43534 104.674 5.24169C105.721 7.29524 105.721 9.9835 105.721 15.36V44.64C105.721 50.0165 105.721 52.7048 104.674 54.7583C103.754 56.5647 102.285 58.0333 100.479 58.9537C98.4255 60 95.7373 60 90.3607 60H17.5901C10.3951 60 6.79762 60 4.43616 58.4938C2.36903 57.1754 0.884697 55.116 0.287586 52.738C-0.394547 50.0214 0.743081 46.6085 3.01834 39.7827L4.93001 34.0477C5.43062 32.5459 5.68093 31.795 5.78035 31.0268C5.86857 30.3451 5.86857 29.6549 5.78035 28.9732C5.68093 28.205 5.43062 27.4541 4.93001 25.9523L3.01833 20.2172Z"
45
- fill="currentColor"
46
- />
47
- </svg>
48
- </ui-typography>
49
-
50
- <ui-typography
51
- :kind="EColors.WHITE"
52
- :weight="ETextWeight.BOLD"
53
- :size="textSize"
54
- :text-transform="ETextTransform.UPPERCASE"
55
- class="absolute left-0 top-0 flex h-full w-full items-center justify-center"
56
- >
57
- {{ berRankDictionary[+rank]?.text || berRankDictionary[0].text }}
58
- </ui-typography>
59
- </div>
60
- </div>
61
- </template>
62
-
63
- <script lang="ts" setup>
64
- import { computed } from "vue";
65
- import UiTypography, { ETextWeight, ETypographySizes, ETextTransform } from "../ui-typography";
66
- import { EColors } from "../../_types/colors";
67
- import { berRankDictionary, type TBerPropNumber, type TBerPropString, EBerSize } from "./_types";
68
-
69
- const props = withDefaults(defineProps<{
70
- rank: TBerPropNumber | TBerPropString | number; // from 0 to 15
71
- size?: EBerSize
72
- }>(), {
73
- size: EBerSize.MEDIUM
74
- });
75
-
76
- const textSize = computed(()=>{
77
- switch (props.size) {
78
- case EBerSize.SMALL:
79
- return ETypographySizes.SM;
80
- case EBerSize.MEDIUM:
81
- return ETypographySizes.XXXL;
82
- default:
83
- return ETypographySizes.XXXL;
84
- }
85
- });
86
- </script>
87
-
88
- <style>
89
- .ui-ber-rank__icon_medium {
90
- height: 60px;
91
- }
92
-
93
- .ui-ber-rank__icon_small {
94
- height: 30px;
95
- }
96
- </style>
@@ -1,17 +0,0 @@
1
- export enum EButtonTypes {
2
- PRIMARY = "primary",
3
- SECONDARY = "secondary",
4
- ERROR = "error",
5
- WARNING = "warning",
6
- PRIMARY_OVERLAY = "primary-overlay",
7
- SECONDARY_OVERLAY = "secondary-overlay",
8
- ERROR_OVERLAY = "error-overlay",
9
- WARNING_OVERLAY = "warning-overlay",
10
- LINK = "link",
11
- }
12
- export enum EButtonSizes {
13
- DEFAULT = "default",
14
- SMALL = "sm",
15
- MEDIUM = "md",
16
- LARGE = "lg"
17
- }
@@ -1,2 +0,0 @@
1
- export { default } from "./ui-button.vue";
2
- export { EButtonSizes, EButtonTypes } from "./_typings";
@@ -1,143 +0,0 @@
1
- import UiButton from "../ui-button";
2
- import UiIcon from "../ui-icon";
3
- import { ESize } from "../../_types/sizing";
4
- import { EButtonSizes, EButtonTypes } from "./_typings";
5
- import type { Story } from "@storybook/vue3";
6
- export default {
7
- title: "Components/ui-button",
8
- component: UiButton,
9
- // More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
10
- argTypes: {
11
- kind: {
12
- control: {
13
- type: "select"
14
- },
15
- options: Object.values(EButtonTypes),
16
- description: "The button kinds",
17
- },
18
- size: {
19
- control: {
20
- type: "select"
21
- },
22
- options: Object.values(EButtonSizes),
23
- description: "The button sizes",
24
- },
25
- fullWidth: {
26
- control: {
27
- type: "boolean"
28
- },
29
- description: "The full width size",
30
- },
31
- disabled: {
32
- control: {
33
- type: "boolean"
34
- },
35
- description: "Disabled state",
36
- },
37
- slot: {
38
- control: {
39
- type: "text"
40
- },
41
- description: "The slot text or component",
42
- },
43
- hasPrefix: {
44
- control: {
45
- type: "boolean"
46
- },
47
- },
48
- hasPostfix: {
49
- control: {
50
- type: "boolean"
51
- },
52
- }
53
- },
54
- args: {
55
- slot: "default text",
56
- hasPrefix: false,
57
- hasPostfix: false,
58
- },
59
- };
60
-
61
- type TComponentProps = InstanceType<typeof UiButton>["$props"];
62
-
63
- const Template: Story<TComponentProps> = (args) => ({
64
- // Components used in your story `template` are defined in the `components` object
65
- components: {
66
- UiButton,
67
- UiIcon
68
- },
69
- // The story's `args` need to be mapped into the template through the `setup()` method
70
- setup() {
71
- return {
72
- args,
73
- ESize
74
- };
75
- },
76
- // And then the `args` are bound to your component with `v-bind="args"`
77
- template: /*html*/`
78
- <ui-button :kind="args.kind"
79
- :size="args.size"
80
- :fullWidth="args.fullWidth"
81
- :disabled="args.disabled"
82
- >
83
- <template #prefix v-if="args.hasPrefix">
84
- <ui-icon
85
- :icon-name="['far', 'face-smile']"
86
- :size="ESize.SM"
87
- />
88
- </template>
89
- ${args.slot}
90
- <template #postfix v-if="args.hasPostfix">
91
- <ui-icon
92
- :icon-name="['far', 'face-smile']"
93
- :size="ESize.SM"
94
- />
95
- </template>
96
- </ui-button>`,
97
- });
98
- const TemplateAll: Story<TComponentProps> = () => ({
99
- components: {
100
- UiButton
101
- },
102
-
103
- setup() {
104
- return {
105
- EButtonSizes,
106
- EButtonTypes
107
- };
108
- },
109
-
110
- template: /*html*/`
111
- <div :style="{
112
- display: 'flex',
113
- flexWrap: 'wrap'
114
- }"
115
- >
116
- <div
117
- :style="{margin: '10px'}"
118
- v-for="kind in EButtonTypes"
119
- :key="kind"
120
- >
121
- <ui-button
122
- :kind="kind"
123
- :size="EButtonSizes.MEDIUM"
124
- >
125
- {{ kind }}
126
- </ui-button>
127
- </div>
128
- </div>
129
- `,
130
- });
131
-
132
- export const Primary = Template.bind({});
133
- // More on args: https://storybook.js.org/docs/vue/writing-stories/args
134
-
135
- Primary.args = {
136
- ...Primary,
137
- kind: EButtonTypes.PRIMARY,
138
- size: EButtonSizes.MEDIUM,
139
- fullWidth: false,
140
- disabled: false,
141
- };
142
- export const Buttons = TemplateAll.bind({});
143
- // More on args: https://storybook.js.org/docs/vue/writing-stories/args
@@ -1,9 +0,0 @@
1
- import { mount } from "@vue/test-utils";
2
- import UiButton from "./ui-button.vue";
3
-
4
- test("VButton.test.ts", () => {
5
- expect(UiButton).toBeTruthy();
6
-
7
- const container = mount(UiButton);
8
- expect(container).toBeTruthy();
9
- });