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,149 +0,0 @@
1
- <template>
2
- <div
3
- class="ui-toggle"
4
- >
5
- <slot name="header">
6
- <ui-typography
7
- line-height
8
- class="mb-sm"
9
- :weight="ETextWeight.SEMI_BOLD"
10
- >
11
- {{ header }}
12
- </ui-typography>
13
- </slot>
14
-
15
- <label
16
- class="flex cursor-pointer gap-sm rounded-full"
17
- :class="[
18
- disabled && 'ui-toggle_disabled pointer-events-none',
19
- invertOrder && 'flex-row-reverse',
20
- alignCenter && 'items-center'
21
- ]"
22
- >
23
- <span
24
- class="ui-input__input-wrapper relative block h-md"
25
- >
26
- <input
27
- v-model="checkboxModel"
28
- type="checkbox"
29
- class="absolute h-0 w-0 appearance-none border-0"
30
- :value="value"
31
- >
32
-
33
- <span class="ui-toggle__bg-block block h-md w-lg rounded-full bg-secondary-alt" />
34
-
35
- <span class="ui-toggle__dot absolute top-0 block rounded-full bg-white">
36
- <svg
37
- class="ui-toggle__check-icon absolute"
38
- :class="disabled ? 'text-primary-300' : 'text-primary'"
39
- width="16"
40
- height="12"
41
- viewBox="0 0 16 12"
42
- fill="none"
43
- xmlns="http://www.w3.org/2000/svg"
44
- >
45
- <path
46
- d="M1 4.40106L6.60071 10.1135L15.1694 1.71245"
47
- stroke="currentColor"
48
- stroke-width="1.6"
49
- stroke-linecap="round"
50
- />
51
- </svg>
52
- </span>
53
- </span>
54
-
55
- <slot name="title">
56
- <ui-typography
57
- :size="ETypographySizes.MD"
58
- class="w-full"
59
- line-height
60
- >
61
- {{ title }}
62
- </ui-typography>
63
- </slot>
64
- </label>
65
- </div>
66
- </template>
67
-
68
- <script lang="ts" setup>
69
- import UiTypography, { ETypographySizes, ETextWeight } from "../ui-typography";
70
- import { computed } from "vue";
71
-
72
- const props = defineProps<{
73
- header?: string;
74
- title?: string;
75
- modelValue: boolean | unknown[];
76
- disabled?: boolean;
77
- invertOrder?: boolean;
78
- alignCenter?: boolean;
79
- value?: string;
80
- }>();
81
-
82
- const emit = defineEmits<{
83
- (e: "update:modelValue", state: unknown): void
84
- }>();
85
-
86
- const checkboxModel = computed({
87
- get() {
88
- return props.modelValue;
89
- },
90
- set(value) {
91
- emit("update:modelValue", value);
92
- }
93
- });
94
- </script>
95
-
96
- <style scoped>
97
- .ui-toggle__dot {
98
- top: 50%;
99
- width: 22px;
100
- height: 22px;
101
- transform: translate3d(1px, -50%, 0);
102
- transition: transform 0.2s ease-in-out;
103
- }
104
-
105
- .ui-toggle__check-icon {
106
- top: 50%;
107
- left: 50%;
108
- transform: translate3d(-50%, -50%, 0);
109
- stroke-dasharray: 70;
110
- stroke-dashoffset: 70;
111
- transition: stroke-dashoffset 0.2s ease-in-out;
112
- }
113
-
114
- .ui-toggle:hover .ui-toggle__dot,
115
- .ui-toggle:active .ui-toggle__dot,
116
- .ui-toggle:focus .ui-toggle__dot {
117
- box-shadow: var(--shadow-border-secondary);
118
- }
119
-
120
- .ui-toggle input:checked ~ .ui-toggle__dot {
121
- transform: translate3d(calc(var(--lg) - 100% - 1px), -50%, 0);
122
- }
123
-
124
- .ui-toggle:hover input:checked ~ .ui-toggle__dot,
125
- .ui-toggle:active input:checked ~ .ui-toggle__dot,
126
- .ui-toggle:focus input:checked ~ .ui-toggle__dot {
127
- box-shadow: var(--shadow-border-primary);
128
- }
129
-
130
- .ui-toggle__bg-block {
131
- transition: background-color 0.2s ease-in-out;
132
- }
133
-
134
- .ui-toggle_disabled .ui-toggle__bg-block {
135
- background-color: var(--color-secondary-alt-300);
136
- }
137
-
138
- .ui-toggle input:checked ~ .ui-toggle__bg-block {
139
- background-color: var(--color-primary);
140
- }
141
-
142
- .ui-toggle input:checked ~ .ui-toggle__dot .ui-toggle__check-icon {
143
- stroke-dashoffset: 0;
144
- }
145
-
146
- .ui-toggle_disabled input:checked ~ .ui-toggle__bg-block {
147
- background-color: var(--color-primary-300);
148
- }
149
- </style>
@@ -1,30 +0,0 @@
1
- export enum ETypographySizes {
2
- XXS = "xxs",
3
- XS = "xs",
4
- SM = "sm",
5
- MD = "m",
6
- LG = "lg",
7
- XL = "xl",
8
- XXL = "2xl",
9
- XXXL = "3xl",
10
- XXXXL = "4xl",
11
- XXXXXL = "5xl",
12
- }
13
-
14
- export enum ETextWeight {
15
- LIGHT = "light", // 300
16
- REGULAR = "regular", // 500
17
- SEMI_BOLD = "semi_bold", // 700
18
- BOLD = "bold", // 900
19
- }
20
-
21
- export enum ETextAlign {
22
- LEFT = "left",
23
- CENTER = "center",
24
- RIGHT = "right",
25
- }
26
-
27
- export enum ETextTransform {
28
- LOWERCASE = "lowercase",
29
- UPPERCASE = "uppercase",
30
- }
@@ -1,3 +0,0 @@
1
- export { default } from "./ui-typography.vue";
2
- export { ETypographySizes, ETextWeight, ETextAlign, ETextTransform } from "./_typings";
3
- export { EColors } from "../../_types/colors";
@@ -1,101 +0,0 @@
1
- import { ETypographySizes, ETextWeight, ETextAlign, ETextTransform } from "./_typings";
2
- import UiTypography from "./ui-typography.vue";
3
- import type { Story } from "@storybook/vue3";
4
- import { EColors } from "../../_types/colors";
5
-
6
- export default {
7
- title: "Components/ui-typography",
8
- component: UiTypography,
9
- // More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
10
- argTypes: {
11
- is: {
12
- control: {
13
- type: "text"
14
- },
15
- description: "The Element component or tag",
16
- },
17
- kind: {
18
- control: {
19
- type: "select"
20
- },
21
- options: Object.values(EColors),
22
- description: "The Element kinds",
23
- },
24
- weight: {
25
- control: {
26
- type: "select"
27
- },
28
- options: Object.values(ETextWeight),
29
- description: "The Element weights",
30
- },
31
- align: {
32
- control: {
33
- type: "select"
34
- },
35
- options: Object.values(ETextAlign),
36
- description: "The Element align",
37
- },
38
- textTransform: {
39
- control: {
40
- type: "select"
41
- },
42
- options: Object.values(ETextTransform),
43
- description: "The Element transform",
44
- },
45
- lineHeight: {
46
- control: {
47
- type: "boolean"
48
- },
49
- description: "The Element line height 1.6",
50
- },
51
- underline: {
52
- control: {
53
- type: "boolean"
54
- },
55
- description: "The Element underline",
56
- },
57
- size: {
58
- control: {
59
- type: "select"
60
- },
61
- options: Object.values(ETypographySizes),
62
- description: "The Element sizes",
63
- },
64
- },
65
- args: {
66
- slot: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
67
- underline: false
68
- },
69
- };
70
-
71
- type TComponentProps = InstanceType<typeof UiTypography>["$props"];
72
-
73
- const Template: Story<TComponentProps> = (args) => ({
74
- // Components used in your story `template` are defined in the `components` object
75
- components: {
76
- UiTypography
77
- },
78
- // The story's `args` need to be mapped into the template through the `setup()` method
79
- setup() {
80
- return {
81
- args
82
- };
83
- },
84
- // And then the `args` are bound to your component with `v-bind="args"`
85
- template: `
86
- <ui-typography v-bind="args">
87
- ${args.slot}
88
- </ui-typography>
89
- `,
90
- });
91
-
92
- export const Default = Template.bind({});
93
-
94
- Default.args = {
95
- size: ETypographySizes.MD,
96
- weight: ETextWeight.REGULAR,
97
- align: ETextAlign.LEFT,
98
- lineHeight: true,
99
- kind: EColors.PRIMARY,
100
- is: "p",
101
- };
@@ -1,110 +0,0 @@
1
- <template>
2
- <component
3
- :is="is || 'p'"
4
- class="ui-typography"
5
- :class="[
6
- size === ETypographySizes.MD && 'text-md',
7
- size === ETypographySizes.XXS && 'text-xxs',
8
- size === ETypographySizes.XS && 'text-xs',
9
- size === ETypographySizes.SM && 'text-sm',
10
- size === ETypographySizes.LG && 'text-lg',
11
- size === ETypographySizes.XL && 'text-xl',
12
- size === ETypographySizes.XXL && 'text-2xl',
13
- size === ETypographySizes.XXS && 'text-xxs',
14
- size === ETypographySizes.XXXL && 'text-3xl',
15
- size === ETypographySizes.XXXXL && 'text-4xl',
16
- size === ETypographySizes.XXXXXL && 'text-5xl',
17
-
18
- kind === EColors.WHITE && 'text-white',
19
- kind === EColors.BLACK && 'text-black',
20
- kind === EColors.TRANSPARENT && 'text-transparent',
21
- kind === EColors.CURRENT && 'text-current',
22
-
23
- kind === EColors.PRIMARY && 'text-primary',
24
- kind === EColors.PRIMARY_300 && 'text-primary-300',
25
- kind === EColors.PRIMARY_400 && 'text-primary-400',
26
- kind === EColors.PRIMARY_500 && 'text-primary-500',
27
- kind === EColors.PRIMARY_600 && 'text-primary-600',
28
- kind === EColors.PRIMARY_700 && 'text-primary-700',
29
-
30
- kind === EColors.PRIMARY_ALT && 'text-primary',
31
- kind === EColors.PRIMARY_ALT_300 && 'text-primary-300',
32
- kind === EColors.PRIMARY_ALT_400 && 'text-primary-400',
33
- kind === EColors.PRIMARY_ALT_500 && 'text-primary-500',
34
- kind === EColors.PRIMARY_ALT_600 && 'text-primary-600',
35
- kind === EColors.PRIMARY_ALT_700 && 'text-primary-700',
36
-
37
- kind === EColors.SECONDARY && 'text-secondary',
38
- kind === EColors.SECONDARY_300 && 'text-secondary-300',
39
- kind === EColors.SECONDARY_400 && 'text-secondary-400',
40
- kind === EColors.SECONDARY_500 && 'text-secondary-500',
41
- kind === EColors.SECONDARY_600 && 'text-secondary-600',
42
- kind === EColors.SECONDARY_700 && 'text-secondary-700',
43
-
44
- kind === EColors.WARNING && 'text-warning',
45
- kind === EColors.WARNING_300 && 'text-warning-300',
46
- kind === EColors.WARNING_400 && 'text-warning-400',
47
- kind === EColors.WARNING_500 && 'text-warning-500',
48
- kind === EColors.WARNING_600 && 'text-warning-600',
49
- kind === EColors.WARNING_700 && 'text-warning-700',
50
-
51
- kind === EColors.ERROR && 'text-error',
52
- kind === EColors.ERROR_300 && 'text-error-300',
53
- kind === EColors.ERROR_400 && 'text-error-400',
54
- kind === EColors.ERROR_500 && 'text-error-500',
55
- kind === EColors.ERROR_600 && 'text-error-600',
56
- kind === EColors.ERROR_700 && 'text-error-700',
57
-
58
- kind === EColors.ACCENT && 'text-accent',
59
- kind === EColors.ACCENT_300 && 'text-accent-300',
60
- kind === EColors.ACCENT_500 && 'text-accent-500',
61
- kind === EColors.ACCENT_600 && 'text-accent-600',
62
- kind === EColors.ACCENT_700 && 'text-accent-700',
63
-
64
- kind === EColors.ACCENT_ALT && 'text-accent-alt',
65
- kind === EColors.ACCENT_ALT_500 && 'text-accent-alt-500',
66
-
67
- kind === EColors.SECONDARY_ALT && 'text-secondary-alt',
68
- kind === EColors.SECONDARY_ALT_200 && 'text-secondary-alt-200',
69
- kind === EColors.SECONDARY_ALT_300 && 'text-secondary-alt-300',
70
- kind === EColors.SECONDARY_ALT_400 && 'text-secondary-alt-400',
71
- kind === EColors.SECONDARY_ALT_500 && 'text-secondary-alt-500',
72
- kind === EColors.SECONDARY_ALT_600 && 'text-secondary-alt-600',
73
- kind === EColors.SECONDARY_ALT_700 && 'text-secondary-alt-700',
74
-
75
- weight === ETextWeight.LIGHT && 'font-light',
76
- weight === ETextWeight.REGULAR && 'font-medium',
77
- weight === ETextWeight.SEMI_BOLD && 'font-bold',
78
- weight === ETextWeight.BOLD && 'font-black',
79
-
80
- align === ETextAlign.LEFT && 'text-left',
81
- align === ETextAlign.CENTER && 'text-center',
82
- align === ETextAlign.RIGHT && 'text-right',
83
-
84
- textTransform === ETextTransform.LOWERCASE && 'lowercase',
85
- textTransform === ETextTransform.UPPERCASE && 'uppercase',
86
-
87
- lineHeight ? 'leading-normal' : 'leading-none',
88
- underline && 'underline',
89
- ]"
90
- >
91
- <slot />
92
- </component>
93
- </template>
94
-
95
- <script lang="ts" setup>
96
- import type { Component } from "vue";
97
- import { ETextAlign, ETextTransform, ETextWeight, ETypographySizes } from "./_typings";
98
- import { EColors } from "../../_types/colors";
99
-
100
- defineProps<{
101
- align?: ETextAlign;
102
- size?: ETypographySizes;
103
- kind?: EColors;
104
- weight?: ETextWeight;
105
- lineHeight?: boolean;
106
- textTransform?: ETextTransform;
107
- underline?: boolean;
108
- is?: string | Component;
109
- }>();
110
- </script>
@@ -1 +0,0 @@
1
- export { default } from "./ui-verification-input.vue";
@@ -1,48 +0,0 @@
1
- import UiVerificationInput from "./ui-verification-input.vue";
2
-
3
- export default {
4
- title: "Components/ui-verification-input",
5
- component: UiVerificationInput,
6
- // More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
7
- argTypes: {
8
- inputsCount: {
9
- control: {
10
- type: "number"
11
- },
12
- description: "Number of inputs",
13
- },
14
- type: {
15
- control: {
16
- type: "select"
17
- },
18
- options: ["text"],
19
- description: "Inputs type",
20
- },
21
- },
22
- args: {
23
- inputsCount: 4,
24
- type: "text"
25
- }
26
- };
27
-
28
- type MyComponentProps = InstanceType<typeof UiVerificationInput>["$props"];
29
-
30
- const Template = (args: MyComponentProps) => ({
31
- components: {
32
- UiVerificationInput
33
- },
34
- setup() {
35
- const filedHandler = (payload: string)=>{
36
- console.log("=--->",payload);
37
- };
38
- return {
39
- args,
40
- filedHandler
41
- };
42
- },
43
- template: `
44
- <ui-verification-input @onFiled="filedHandler" :className="args.className" :inputsCount="args.inputsCount" :type="args.type"/>
45
- `
46
- });
47
-
48
- export const Default = Template.bind({});
@@ -1,126 +0,0 @@
1
- <template>
2
- <div
3
- class="inputs grid"
4
- >
5
- <div
6
- v-for="(_, index) in inputsCount"
7
- :key="index"
8
- class="input-wrapper"
9
- >
10
- <input
11
- ref="inputsRefs"
12
- :type="type || 'text'"
13
- maxlength="1"
14
- placeholder="&#8226;"
15
- @input="(e)=>inputHandler(e, index)"
16
- @focus="focusHandler"
17
- @paste="handlePaste"
18
- >
19
- <div class="bottom-wrapper" />
20
- </div>
21
- </div>
22
- <slot name="button" />
23
- </template>
24
-
25
- <script lang="ts" setup>
26
- import { ref } from "vue";
27
-
28
- type TProps = {
29
- inputsCount: number;
30
- type?: "text";
31
- }
32
-
33
- const props = defineProps<TProps>();
34
- const emit = defineEmits(["onFiled"]);
35
-
36
- const inputsRefs = ref<Array<HTMLInputElement | null>>([]);
37
-
38
- const doSubmit = ()=>{
39
- const generateString = inputsRefs.value.map(input => input?.value).join("");
40
- emit("onFiled", generateString);
41
- };
42
-
43
- const inputHandler = (event:Event, index:number)=>{
44
- if (index < props.inputsCount) {
45
- inputsRefs.value[index + 1]?.focus();
46
- }
47
-
48
- if (index === props.inputsCount - 1) {
49
- doSubmit();
50
- }
51
- };
52
-
53
- const focusHandler = (e:FocusEvent) => {
54
- if (e.target) {
55
- (e.target as HTMLInputElement).select();
56
- }
57
- };
58
-
59
- const handlePaste = (e:ClipboardEvent) => {
60
- e.preventDefault();
61
- const pasteText = e.clipboardData?.getData("text");
62
- if (pasteText && pasteText.length === props.inputsCount) {
63
- inputsRefs.value[props.inputsCount - 1]?.focus();
64
-
65
- inputsRefs.value.forEach((input, index)=>{
66
- if (input) {
67
- input.value = pasteText[index];
68
- }
69
- });
70
- doSubmit();
71
- }
72
-
73
- };
74
-
75
- </script>
76
-
77
- <style scoped>
78
- .inputs {
79
- grid-template-columns: repeat(auto-fill, 38px);
80
- grid-gap: 24px;
81
- }
82
-
83
- .inputs .input-wrapper {
84
- position: relative;
85
- height: 58px;
86
- }
87
-
88
- .inputs input {
89
- width: 100%;
90
- border: none;
91
- text-align: center;
92
- font-size: 36px;
93
- font-weight: bold;
94
- outline: none;
95
-
96
- /* caret-color: var(--color-transparent); */
97
- }
98
-
99
- .inputs .input-wrapper .bottom-wrapper {
100
- position: absolute;
101
- bottom: 0;
102
- width: 100%;
103
- height: 5px;
104
- background-color: var(--color-secondary-300);
105
- border-radius: 3px;
106
- transition: background-color 0.3s ease-in-out;
107
- }
108
-
109
- .inputs input:focus ~ .bottom-wrapper {
110
- background-color: var(--color-primary);
111
- }
112
-
113
- .inputs input::placeholder {
114
- font-size: 55px;
115
- color: var(--color-secondary-300);
116
- opacity: 1;
117
- transform: scale(1);
118
- transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
119
- }
120
-
121
- .inputs input:focus::placeholder {
122
- opacity: 0;
123
- transform: scale(0);
124
- }
125
-
126
- </style>
package/src/main.css DELETED
@@ -1,34 +0,0 @@
1
- @import url("_styles/variables/colors.css");
2
- @import url("_styles/variables/spacing.css");
3
- @import url("_styles/variables/font-sizes.css");
4
- @import url("_styles/variables/shadow.css");
5
-
6
- @tailwind base;
7
- @tailwind components;
8
- @tailwind utilities;
9
-
10
- @layer base {
11
- :root {
12
- /* text */
13
- --base-line-height: 1.6;
14
- --base-font: museo-sans, sans-serif;
15
- }
16
- }
17
-
18
- body {
19
- font-family: var(--base-font);
20
- }
21
-
22
- *:focus,
23
- *:active {
24
- outline: none;
25
- }
26
-
27
- input,
28
- textarea,
29
- button,
30
- select,
31
- label,
32
- a {
33
- -webkit-tap-highlight-color: transparent;
34
- }
@@ -1,5 +0,0 @@
1
- declare module "*.vue" {
2
- import { defineComponent } from "vue";
3
- const component: ReturnType<typeof defineComponent>;
4
- export default component;
5
- }