bonkers-ui 1.0.60 → 1.0.62

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/_types/align.js +5 -0
  4. package/_types/align.js.map +1 -0
  5. package/_types/colors.js +5 -0
  6. package/_types/colors.js.map +1 -0
  7. package/_types/sizing.js +5 -0
  8. package/_types/sizing.js.map +1 -0
  9. package/_virtual/_plugin-vue_export-helper.js +10 -0
  10. package/_virtual/_plugin-vue_export-helper.js.map +1 -0
  11. package/bonkers-ui.umd.js +12 -0
  12. package/bonkers-ui.umd.js.map +1 -0
  13. package/components/ui-alert/_types.d.ts +6 -0
  14. package/components/ui-alert/_types.js +5 -0
  15. package/components/ui-alert/_types.js.map +1 -0
  16. package/components/ui-alert/index.d.ts +92 -0
  17. package/components/ui-alert/index.js +9 -0
  18. package/components/ui-alert/index.js.map +1 -0
  19. package/components/ui-alert/ui-alert.vue.d.ts +27 -0
  20. package/components/ui-alert/ui-alert.vue.js +47 -0
  21. package/components/ui-alert/ui-alert.vue.js.map +1 -0
  22. package/components/ui-alert/ui-alert.vue2.js +5 -0
  23. package/components/ui-alert/ui-alert.vue2.js.map +1 -0
  24. package/components/ui-badge/_typings.d.ts +10 -0
  25. package/components/ui-badge/_typings.js +6 -0
  26. package/components/ui-badge/_typings.js.map +1 -0
  27. package/components/ui-badge/index.d.ts +114 -0
  28. package/components/ui-badge/index.js +10 -0
  29. package/components/ui-badge/index.js.map +1 -0
  30. package/components/ui-badge/ui-badge.vue.d.ts +31 -0
  31. package/components/ui-badge/ui-badge.vue.js +62 -0
  32. package/components/ui-badge/ui-badge.vue.js.map +1 -0
  33. package/components/ui-badge/ui-badge.vue2.js +5 -0
  34. package/components/ui-badge/ui-badge.vue2.js.map +1 -0
  35. package/components/ui-ber-rank/_types.d.ts +61 -0
  36. package/components/ui-ber-rank/_types.js +74 -0
  37. package/components/ui-ber-rank/_types.js.map +1 -0
  38. package/components/ui-ber-rank/index.d.ts +30 -0
  39. package/components/ui-ber-rank/index.js +10 -0
  40. package/components/ui-ber-rank/index.js.map +1 -0
  41. package/components/ui-ber-rank/ui-ber-rank.vue.d.ts +33 -0
  42. package/components/ui-ber-rank/ui-ber-rank.vue.js +101 -0
  43. package/components/ui-ber-rank/ui-ber-rank.vue.js.map +1 -0
  44. package/components/ui-ber-rank/ui-ber-rank.vue3.js +6 -0
  45. package/components/ui-ber-rank/ui-ber-rank.vue3.js.map +1 -0
  46. package/components/ui-button/_typings.d.ts +17 -0
  47. package/components/ui-button/_typings.js +6 -0
  48. package/components/ui-button/_typings.js.map +1 -0
  49. package/components/ui-button/index.d.ts +146 -0
  50. package/components/ui-button/index.js +10 -0
  51. package/components/ui-button/index.js.map +1 -0
  52. package/components/ui-button/ui-button.vue.d.ts +51 -0
  53. package/components/ui-button/ui-button.vue.js +51 -0
  54. package/components/ui-button/ui-button.vue.js.map +1 -0
  55. package/components/ui-button/ui-button.vue2.js +5 -0
  56. package/components/ui-button/ui-button.vue2.js.map +1 -0
  57. package/components/ui-card-cta/index.d.ts +127 -0
  58. package/components/ui-card-cta/index.js +7 -0
  59. package/components/ui-card-cta/index.js.map +1 -0
  60. package/components/ui-card-cta/ui-card-cta.vue.d.ts +34 -0
  61. package/components/ui-card-cta/ui-card-cta.vue.js +76 -0
  62. package/components/ui-card-cta/ui-card-cta.vue.js.map +1 -0
  63. package/components/ui-card-cta/ui-card-cta.vue2.js +5 -0
  64. package/components/ui-card-cta/ui-card-cta.vue2.js.map +1 -0
  65. package/components/ui-card-result/index.d.ts +125 -0
  66. package/components/ui-card-result/index.js +7 -0
  67. package/components/ui-card-result/index.js.map +1 -0
  68. package/components/ui-card-result/ui-card-result.vue.d.ts +32 -0
  69. package/components/ui-card-result/ui-card-result.vue.js +8 -0
  70. package/components/ui-card-result/ui-card-result.vue.js.map +1 -0
  71. package/components/ui-card-result/ui-card-result.vue2.js +82 -0
  72. package/components/ui-card-result/ui-card-result.vue2.js.map +1 -0
  73. package/components/ui-card-simple/index.d.ts +56 -0
  74. package/components/ui-card-simple/index.js +7 -0
  75. package/components/ui-card-simple/index.js.map +1 -0
  76. package/components/ui-card-simple/ui-card-simple.vue.d.ts +12 -0
  77. package/components/ui-card-simple/ui-card-simple.vue.js +36 -0
  78. package/components/ui-card-simple/ui-card-simple.vue.js.map +1 -0
  79. package/components/ui-card-simple/ui-card-simple.vue2.js +5 -0
  80. package/components/ui-card-simple/ui-card-simple.vue2.js.map +1 -0
  81. package/components/ui-checkbox/index.d.ts +142 -0
  82. package/components/ui-checkbox/index.js +7 -0
  83. package/components/ui-checkbox/index.js.map +1 -0
  84. package/components/ui-checkbox/ui-checkbox.vue.d.ts +36 -0
  85. package/components/ui-checkbox/ui-checkbox.vue.js +8 -0
  86. package/components/ui-checkbox/ui-checkbox.vue.js.map +1 -0
  87. package/components/ui-checkbox/ui-checkbox.vue2.js +74 -0
  88. package/components/ui-checkbox/ui-checkbox.vue2.js.map +1 -0
  89. package/components/ui-dropdown/_typings.d.ts +4 -0
  90. package/components/ui-dropdown/_typings.js +5 -0
  91. package/components/ui-dropdown/_typings.js.map +1 -0
  92. package/components/ui-dropdown/index.d.ts +148 -0
  93. package/components/ui-dropdown/index.js +9 -0
  94. package/components/ui-dropdown/index.js.map +1 -0
  95. package/components/ui-dropdown/ui-dropdown.vue.d.ts +50 -0
  96. package/components/ui-dropdown/ui-dropdown.vue.js +82 -0
  97. package/components/ui-dropdown/ui-dropdown.vue.js.map +1 -0
  98. package/components/ui-dropdown/ui-dropdown.vue2.js +5 -0
  99. package/components/ui-dropdown/ui-dropdown.vue2.js.map +1 -0
  100. package/components/ui-icon/_typings.d.ts +10 -0
  101. package/components/ui-icon/_typings.js +5 -0
  102. package/components/ui-icon/_typings.js.map +1 -0
  103. package/components/ui-icon/index.d.ts +33 -0
  104. package/components/ui-icon/index.js +11 -0
  105. package/components/ui-icon/index.js.map +1 -0
  106. package/components/ui-icon/ui-icon.vue.d.ts +34 -0
  107. package/components/ui-icon/ui-icon.vue.js +30 -0
  108. package/components/ui-icon/ui-icon.vue.js.map +1 -0
  109. package/components/ui-icon/ui-icon.vue2.js +5 -0
  110. package/components/ui-icon/ui-icon.vue2.js.map +1 -0
  111. package/components/ui-icon-wrapper/_typings.d.ts +11 -0
  112. package/components/ui-icon-wrapper/_typings.js +6 -0
  113. package/components/ui-icon-wrapper/_typings.js.map +1 -0
  114. package/components/ui-icon-wrapper/index.d.ts +104 -0
  115. package/components/ui-icon-wrapper/index.js +10 -0
  116. package/components/ui-icon-wrapper/index.js.map +1 -0
  117. package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts +41 -0
  118. package/components/ui-icon-wrapper/ui-icon-wrapper.vue.js +8 -0
  119. package/components/ui-icon-wrapper/ui-icon-wrapper.vue.js.map +1 -0
  120. package/components/ui-icon-wrapper/ui-icon-wrapper.vue2.js +28 -0
  121. package/components/ui-icon-wrapper/ui-icon-wrapper.vue2.js.map +1 -0
  122. package/components/ui-input/_typings.d.ts +70 -0
  123. package/components/ui-input/_typings.js +7 -0
  124. package/components/ui-input/_typings.js.map +1 -0
  125. package/components/ui-input/index.d.ts +337 -0
  126. package/components/ui-input/index.js +11 -0
  127. package/components/ui-input/index.js.map +1 -0
  128. package/components/ui-input/ui-input.vue.d.ts +102 -0
  129. package/components/ui-input/ui-input.vue.js +97 -0
  130. package/components/ui-input/ui-input.vue.js.map +1 -0
  131. package/components/ui-input/ui-input.vue2.js +5 -0
  132. package/components/ui-input/ui-input.vue2.js.map +1 -0
  133. package/components/ui-input-range/index.d.ts +46 -0
  134. package/components/ui-input-range/index.js +7 -0
  135. package/components/ui-input-range/index.js.map +1 -0
  136. package/components/ui-input-range/ui-input-range.vue.d.ts +26 -0
  137. package/components/ui-input-range/ui-input-range.vue.js +8 -0
  138. package/components/ui-input-range/ui-input-range.vue.js.map +1 -0
  139. package/components/ui-input-range/ui-input-range.vue2.js +71 -0
  140. package/components/ui-input-range/ui-input-range.vue2.js.map +1 -0
  141. package/components/ui-list-item/_types.d.ts +12 -0
  142. package/components/ui-list-item/_types.js +7 -0
  143. package/components/ui-list-item/_types.js.map +1 -0
  144. package/components/ui-list-item/index.d.ts +186 -0
  145. package/components/ui-list-item/index.js +11 -0
  146. package/components/ui-list-item/index.js.map +1 -0
  147. package/components/ui-list-item/ui-list-item.vue.d.ts +65 -0
  148. package/components/ui-list-item/ui-list-item.vue.js +65 -0
  149. package/components/ui-list-item/ui-list-item.vue.js.map +1 -0
  150. package/components/ui-list-item/ui-list-item.vue2.js +5 -0
  151. package/components/ui-list-item/ui-list-item.vue2.js.map +1 -0
  152. package/components/ui-modal/_typings.d.ts +6 -0
  153. package/components/ui-modal/_typings.js +5 -0
  154. package/components/ui-modal/_typings.js.map +1 -0
  155. package/components/ui-modal/index.d.ts +107 -0
  156. package/components/ui-modal/index.js +9 -0
  157. package/components/ui-modal/index.js.map +1 -0
  158. package/components/ui-modal/ui-backdrop/index.d.ts +54 -0
  159. package/components/ui-modal/ui-backdrop/index.js +7 -0
  160. package/components/ui-modal/ui-backdrop/index.js.map +1 -0
  161. package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts +10 -0
  162. package/components/ui-modal/ui-backdrop/ui-backdrop.vue.js +15 -0
  163. package/components/ui-modal/ui-backdrop/ui-backdrop.vue.js.map +1 -0
  164. package/components/ui-modal/ui-modal.vue.d.ts +46 -0
  165. package/components/ui-modal/ui-modal.vue.js +8 -0
  166. package/components/ui-modal/ui-modal.vue.js.map +1 -0
  167. package/components/ui-modal/ui-modal.vue2.js +65 -0
  168. package/components/ui-modal/ui-modal.vue2.js.map +1 -0
  169. package/components/ui-notification-badge/_types.d.ts +10 -0
  170. package/components/ui-notification-badge/_types.js +5 -0
  171. package/components/ui-notification-badge/_types.js.map +1 -0
  172. package/components/ui-notification-badge/index.d.ts +84 -0
  173. package/components/ui-notification-badge/index.js +10 -0
  174. package/components/ui-notification-badge/index.js.map +1 -0
  175. package/components/ui-notification-badge/ui-notification-badge.vue.d.ts +38 -0
  176. package/components/ui-notification-badge/ui-notification-badge.vue.js +22 -0
  177. package/components/ui-notification-badge/ui-notification-badge.vue.js.map +1 -0
  178. package/components/ui-notification-badge/ui-notification-badge.vue3.js +6 -0
  179. package/components/ui-notification-badge/ui-notification-badge.vue3.js.map +1 -0
  180. package/components/ui-order-card/_types.d.ts +4 -0
  181. package/components/ui-order-card/_types.js +5 -0
  182. package/components/ui-order-card/_types.js.map +1 -0
  183. package/components/ui-order-card/index.d.ts +103 -0
  184. package/components/ui-order-card/index.js +7 -0
  185. package/components/ui-order-card/index.js.map +1 -0
  186. package/components/ui-order-card/ui-order-card.vue.d.ts +43 -0
  187. package/components/ui-order-card/ui-order-card.vue.js +86 -0
  188. package/components/ui-order-card/ui-order-card.vue.js.map +1 -0
  189. package/components/ui-order-card/ui-order-card.vue2.js +5 -0
  190. package/components/ui-order-card/ui-order-card.vue2.js.map +1 -0
  191. package/components/ui-plain-radio/index.d.ts +163 -0
  192. package/components/ui-plain-radio/index.js +7 -0
  193. package/components/ui-plain-radio/index.js.map +1 -0
  194. package/components/ui-plain-radio/ui-plain-radio.vue.d.ts +38 -0
  195. package/components/ui-plain-radio/ui-plain-radio.vue.js +85 -0
  196. package/components/ui-plain-radio/ui-plain-radio.vue.js.map +1 -0
  197. package/components/ui-plain-radio/ui-plain-radio.vue2.js +5 -0
  198. package/components/ui-plain-radio/ui-plain-radio.vue2.js.map +1 -0
  199. package/components/ui-progress/_types.d.ts +1 -0
  200. package/components/ui-progress/index.d.ts +44 -0
  201. package/components/ui-progress/index.js +7 -0
  202. package/components/ui-progress/index.js.map +1 -0
  203. package/components/ui-progress/ui-progress.vue.d.ts +40 -0
  204. package/components/ui-progress/ui-progress.vue.js +26 -0
  205. package/components/ui-progress/ui-progress.vue.js.map +1 -0
  206. package/components/ui-progress/ui-progress.vue2.js +5 -0
  207. package/components/ui-progress/ui-progress.vue2.js.map +1 -0
  208. package/components/ui-radio/index.d.ts +163 -0
  209. package/components/ui-radio/index.js +7 -0
  210. package/components/ui-radio/index.js.map +1 -0
  211. package/components/ui-radio/ui-radio.vue.d.ts +38 -0
  212. package/components/ui-radio/ui-radio.vue.js +8 -0
  213. package/components/ui-radio/ui-radio.vue.js.map +1 -0
  214. package/components/ui-radio/ui-radio.vue2.js +58 -0
  215. package/components/ui-radio/ui-radio.vue2.js.map +1 -0
  216. package/components/ui-radio-compact/index.d.ts +136 -0
  217. package/components/ui-radio-compact/index.js +7 -0
  218. package/components/ui-radio-compact/index.js.map +1 -0
  219. package/components/ui-radio-compact/ui-radio-compact.vue.d.ts +33 -0
  220. package/components/ui-radio-compact/ui-radio-compact.vue.js +52 -0
  221. package/components/ui-radio-compact/ui-radio-compact.vue.js.map +1 -0
  222. package/components/ui-radio-compact/ui-radio-compact.vue2.js +5 -0
  223. package/components/ui-radio-compact/ui-radio-compact.vue2.js.map +1 -0
  224. package/components/ui-radio-fancy/_typings.d.ts +5 -0
  225. package/components/ui-radio-fancy/_typings.js +5 -0
  226. package/components/ui-radio-fancy/_typings.js.map +1 -0
  227. package/components/ui-radio-fancy/index.d.ts +181 -0
  228. package/components/ui-radio-fancy/index.js +7 -0
  229. package/components/ui-radio-fancy/index.js.map +1 -0
  230. package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts +56 -0
  231. package/components/ui-radio-fancy/ui-radio-fancy.vue.js +86 -0
  232. package/components/ui-radio-fancy/ui-radio-fancy.vue.js.map +1 -0
  233. package/components/ui-radio-fancy/ui-radio-fancy.vue2.js +5 -0
  234. package/components/ui-radio-fancy/ui-radio-fancy.vue2.js.map +1 -0
  235. package/components/ui-result-card-range/_types.d.ts +7 -0
  236. package/components/ui-result-card-range/index.d.ts +112 -0
  237. package/components/ui-result-card-range/index.js +7 -0
  238. package/components/ui-result-card-range/index.js.map +1 -0
  239. package/components/ui-result-card-range/ui-result-card-range.vue.d.ts +30 -0
  240. package/components/ui-result-card-range/ui-result-card-range.vue.js +41 -0
  241. package/components/ui-result-card-range/ui-result-card-range.vue.js.map +1 -0
  242. package/components/ui-result-card-range/ui-result-card-range.vue2.js +5 -0
  243. package/components/ui-result-card-range/ui-result-card-range.vue2.js.map +1 -0
  244. package/components/ui-ripple/index.d.ts +54 -0
  245. package/components/ui-ripple/index.js +8 -0
  246. package/components/ui-ripple/index.js.map +1 -0
  247. package/components/ui-ripple/ui-ripple.vue.d.ts +10 -0
  248. package/components/ui-ripple/ui-ripple.vue.js +52 -0
  249. package/components/ui-ripple/ui-ripple.vue.js.map +1 -0
  250. package/components/ui-ripple/ui-ripple.vue3.js +6 -0
  251. package/components/ui-ripple/ui-ripple.vue3.js.map +1 -0
  252. package/components/ui-select/index.d.ts +131 -0
  253. package/components/ui-select/index.js +7 -0
  254. package/components/ui-select/index.js.map +1 -0
  255. package/components/ui-select/ui-select.vue.d.ts +36 -0
  256. package/components/ui-select/ui-select.vue.js +83 -0
  257. package/components/ui-select/ui-select.vue.js.map +1 -0
  258. package/components/ui-select/ui-select.vue2.js +5 -0
  259. package/components/ui-select/ui-select.vue2.js.map +1 -0
  260. package/components/ui-skeleton/_typings.d.ts +4 -0
  261. package/components/ui-skeleton/_typings.js +5 -0
  262. package/components/ui-skeleton/_typings.js.map +1 -0
  263. package/components/ui-skeleton/index.d.ts +21 -0
  264. package/components/ui-skeleton/index.js +7 -0
  265. package/components/ui-skeleton/index.js.map +1 -0
  266. package/components/ui-skeleton/ui-skeleton.vue.d.ts +31 -0
  267. package/components/ui-skeleton/ui-skeleton.vue.js +43 -0
  268. package/components/ui-skeleton/ui-skeleton.vue.js.map +1 -0
  269. package/components/ui-skeleton/ui-skeleton.vue2.js +5 -0
  270. package/components/ui-skeleton/ui-skeleton.vue2.js.map +1 -0
  271. package/components/ui-snackbar/_types.d.ts +7 -0
  272. package/components/ui-snackbar/_types.js +5 -0
  273. package/components/ui-snackbar/_types.js.map +1 -0
  274. package/components/ui-snackbar/index.d.ts +103 -0
  275. package/components/ui-snackbar/index.js +9 -0
  276. package/components/ui-snackbar/index.js.map +1 -0
  277. package/components/ui-snackbar/ui-snackbar.vue.d.ts +42 -0
  278. package/components/ui-snackbar/ui-snackbar.vue.js +49 -0
  279. package/components/ui-snackbar/ui-snackbar.vue.js.map +1 -0
  280. package/components/ui-snackbar/ui-snackbar.vue2.js +5 -0
  281. package/components/ui-snackbar/ui-snackbar.vue2.js.map +1 -0
  282. package/components/ui-table/_types.d.ts +5 -0
  283. package/components/ui-table/_types.js +5 -0
  284. package/components/ui-table/_types.js.map +1 -0
  285. package/components/ui-table/index.d.ts +87 -0
  286. package/components/ui-table/index.js +19 -0
  287. package/components/ui-table/index.js.map +1 -0
  288. package/components/ui-table/ui-table-cell/index.d.ts +87 -0
  289. package/components/ui-table/ui-table-cell/index.js +7 -0
  290. package/components/ui-table/ui-table-cell/index.js.map +1 -0
  291. package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts +27 -0
  292. package/components/ui-table/ui-table-cell/ui-table-cell.vue.js +41 -0
  293. package/components/ui-table/ui-table-cell/ui-table-cell.vue.js.map +1 -0
  294. package/components/ui-table/ui-table-cell/ui-table-cell.vue2.js +5 -0
  295. package/components/ui-table/ui-table-cell/ui-table-cell.vue2.js.map +1 -0
  296. package/components/ui-table/ui-table-row/_typings.d.ts +3 -0
  297. package/components/ui-table/ui-table-row/_typings.js +5 -0
  298. package/components/ui-table/ui-table-row/_typings.js.map +1 -0
  299. package/components/ui-table/ui-table-row/index.d.ts +74 -0
  300. package/components/ui-table/ui-table-row/index.js +9 -0
  301. package/components/ui-table/ui-table-row/index.js.map +1 -0
  302. package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts +24 -0
  303. package/components/ui-table/ui-table-row/ui-table-row.vue.js +8 -0
  304. package/components/ui-table/ui-table-row/ui-table-row.vue.js.map +1 -0
  305. package/components/ui-table/ui-table-row/ui-table-row.vue3.js +19 -0
  306. package/components/ui-table/ui-table-row/ui-table-row.vue3.js.map +1 -0
  307. package/components/ui-table/ui-table.vue.d.ts +38 -0
  308. package/components/ui-table/ui-table.vue.js +8 -0
  309. package/components/ui-table/ui-table.vue.js.map +1 -0
  310. package/components/ui-table/ui-table.vue2.js +23 -0
  311. package/components/ui-table/ui-table.vue2.js.map +1 -0
  312. package/components/ui-tabs/index.d.ts +40 -0
  313. package/components/ui-tabs/index.js +7 -0
  314. package/components/ui-tabs/index.js.map +1 -0
  315. package/components/ui-tabs/ui-tabs.vue.d.ts +38 -0
  316. package/components/ui-tabs/ui-tabs.vue.js +8 -0
  317. package/components/ui-tabs/ui-tabs.vue.js.map +1 -0
  318. package/components/ui-tabs/ui-tabs.vue2.js +56 -0
  319. package/components/ui-tabs/ui-tabs.vue2.js.map +1 -0
  320. package/components/ui-toggle/index.d.ts +168 -0
  321. package/components/ui-toggle/index.js +7 -0
  322. package/components/ui-toggle/index.js.map +1 -0
  323. package/components/ui-toggle/ui-toggle.vue.d.ts +40 -0
  324. package/components/ui-toggle/ui-toggle.vue.js +8 -0
  325. package/components/ui-toggle/ui-toggle.vue.js.map +1 -0
  326. package/components/ui-toggle/ui-toggle.vue2.js +94 -0
  327. package/components/ui-toggle/ui-toggle.vue2.js.map +1 -0
  328. package/components/ui-typography/_typings.d.ts +69 -0
  329. package/components/ui-typography/_typings.js +8 -0
  330. package/components/ui-typography/_typings.js.map +1 -0
  331. package/components/ui-typography/index.d.ts +167 -0
  332. package/components/ui-typography/index.js +14 -0
  333. package/components/ui-typography/index.js.map +1 -0
  334. package/components/ui-typography/ui-typography.vue.d.ts +39 -0
  335. package/components/ui-typography/ui-typography.vue.js +101 -0
  336. package/components/ui-typography/ui-typography.vue.js.map +1 -0
  337. package/components/ui-typography/ui-typography.vue2.js +5 -0
  338. package/components/ui-typography/ui-typography.vue2.js.map +1 -0
  339. package/components/ui-verification-input/index.d.ts +102 -0
  340. package/components/ui-verification-input/index.js +7 -0
  341. package/components/ui-verification-input/index.js.map +1 -0
  342. package/components/ui-verification-input/ui-verification-input.vue.d.ts +27 -0
  343. package/components/ui-verification-input/ui-verification-input.vue.js +8 -0
  344. package/components/ui-verification-input/ui-verification-input.vue.js.map +1 -0
  345. package/components/ui-verification-input/ui-verification-input.vue2.js +53 -0
  346. package/components/ui-verification-input/ui-verification-input.vue2.js.map +1 -0
  347. package/index.d.ts +40 -0
  348. package/index.js +200 -0
  349. package/index.js.map +1 -0
  350. package/package.json +69 -40
  351. package/plugin.ts +129 -0
  352. package/postcss.config.js +3 -0
  353. package/tailwind.config.ts +13 -0
  354. package/tsconfig.json +32 -19
  355. package/tsconfig.node.json +4 -2
  356. package/types.d.ts +20 -0
  357. package/types.js +71 -0
  358. package/types.js.map +1 -0
  359. package/.editorconfig +0 -14
  360. package/.github/workflows/deploy-beta.yaml +0 -31
  361. package/.github/workflows/deploy.yaml +0 -28
  362. package/.github/workflows/linting.yaml +0 -28
  363. package/.storybook/BonkersTheme.js +0 -32
  364. package/.storybook/main.js +0 -29
  365. package/.storybook/manager.js +0 -7
  366. package/.storybook/preview-head.html +0 -3
  367. package/.storybook/preview.js +0 -56
  368. package/LICENCE +0 -21
  369. package/README.md +0 -38
  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 -53
  400. package/src/components/ui-card-cta/ui-card-cta.vue +0 -94
  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 -103
  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 -55
  469. package/src/components/ui-select/ui-select.vue +0 -72
  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 -109
  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
@@ -0,0 +1,24 @@
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { ERowKind } from "./_typings";
3
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ kind?: ERowKind | undefined;
5
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ kind?: ERowKind | undefined;
7
+ }>>>, {}, {}>, {
8
+ default?(_: {}): any;
9
+ }>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,8 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".ui-table-row[data-v-97952db0] td:first-child{border-top-left-radius:var(--xs);border-bottom-left-radius:var(--xs);text-align:left}.ui-table-row[data-v-97952db0] td:last-child{border-top-right-radius:var(--xs);border-bottom-right-radius:var(--xs);text-align:right}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import o from "./ui-table-row.vue3.js";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-97952db0"]]);
5
+ export {
6
+ p as default
7
+ };
8
+ //# sourceMappingURL=ui-table-row.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-table-row.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,19 @@
1
+ import { defineComponent as r, openBlock as o, createElementBlock as t, normalizeClass as n, unref as a, renderSlot as l } from "vue";
2
+ import { ERowKind as s } from "./_typings.js";
3
+ const m = /* @__PURE__ */ r({
4
+ __name: "ui-table-row",
5
+ props: {
6
+ kind: {}
7
+ },
8
+ setup(i) {
9
+ return (e, p) => (o(), t("tr", {
10
+ class: n(["ui-table-row text-center", [e.kind === a(s).SECONDARY && "bg-secondary-alt-200"]])
11
+ }, [
12
+ l(e.$slots, "default", {}, void 0, !0)
13
+ ], 2));
14
+ }
15
+ });
16
+ export {
17
+ m as default
18
+ };
19
+ //# sourceMappingURL=ui-table-row.vue3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-table-row.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -0,0 +1,38 @@
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { ETableKind } from "./_types";
3
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ kind?: ETableKind | undefined;
5
+ }>, {
6
+ kind: ETableKind;
7
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
+ kind?: ETableKind | undefined;
9
+ }>, {
10
+ kind: ETableKind;
11
+ }>>>, {
12
+ kind: ETableKind;
13
+ }, {}>, {
14
+ default?(_: {}): any;
15
+ }>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
+ default: D[K];
29
+ }> : P[K];
30
+ };
31
+ type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -0,0 +1,8 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ui-table__secondary[data-v-fa615ea7] tr:nth-child(odd){background-color:var(--color-secondary-alt-200)}.ui-table__secondary-inverted[data-v-fa615ea7] tr:nth-child(2n){background-color:var(--color-secondary-alt-200)}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ import o from "./ui-table.vue2.js";
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-fa615ea7"]]);
5
+ export {
6
+ f as default
7
+ };
8
+ //# sourceMappingURL=ui-table.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-table.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,23 @@
1
+ import { defineComponent as o, openBlock as t, createElementBlock as a, normalizeClass as l, unref as r, renderSlot as d } from "vue";
2
+ import { ETableKind as n } from "./_types.js";
3
+ const p = /* @__PURE__ */ o({
4
+ __name: "ui-table",
5
+ props: {
6
+ kind: { default: n.SECONDARY_INVERTED }
7
+ },
8
+ setup(i) {
9
+ return (e, s) => (t(), a("table", {
10
+ class: l([
11
+ "ui-table rounded-lg",
12
+ e.kind === r(n).SECONDARY && "ui-table__secondary",
13
+ e.kind === r(n).SECONDARY_INVERTED && "ui-table__secondary-inverted"
14
+ ])
15
+ }, [
16
+ d(e.$slots, "default", {}, void 0, !0)
17
+ ], 2));
18
+ }
19
+ });
20
+ export {
21
+ p as default
22
+ };
23
+ //# sourceMappingURL=ui-table.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-table.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,40 @@
1
+ import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
2
+ import UiTabs from "./ui-tabs.vue";
3
+ export { UiTabs };
4
+ /**
5
+ * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
6
+ */
7
+ declare const deprecatedDefault: DefineComponent<{
8
+ modelValue: {
9
+ type: PropType<string>;
10
+ required: true;
11
+ };
12
+ name: {
13
+ type: PropType<string>;
14
+ default: string;
15
+ };
16
+ tabs: {
17
+ type: PropType<string[]>;
18
+ required: true;
19
+ };
20
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
+ "update:modelValue": (...args: any[]) => void;
22
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
23
+ modelValue: {
24
+ type: PropType<string>;
25
+ required: true;
26
+ };
27
+ name: {
28
+ type: PropType<string>;
29
+ default: string;
30
+ };
31
+ tabs: {
32
+ type: PropType<string[]>;
33
+ required: true;
34
+ };
35
+ }>> & {
36
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
37
+ }, {
38
+ name: string;
39
+ }, {}>;
40
+ export default deprecatedDefault;
@@ -0,0 +1,7 @@
1
+ import e from "./ui-tabs.vue.js";
2
+ const a = e;
3
+ export {
4
+ e as UiTabs,
5
+ a as default
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/ui-tabs/index.ts"],"sourcesContent":["import UiTabs from \"./ui-tabs.vue\";\nexport { UiTabs };\n\n/**\n * @deprecated The default should not be used - use named import as - import {[name]} from \"ui/[name]\"\n */\nconst deprecatedDefault = UiTabs;\nexport default deprecatedDefault;\n"],"names":["deprecatedDefault","UiTabs"],"mappings":";AAMA,MAAMA,IAAoBC;"}
@@ -0,0 +1,38 @@
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ tabs: string[];
4
+ modelValue: string;
5
+ name?: string | undefined;
6
+ }>, {
7
+ name: string;
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
+ "update:modelValue": (...args: any[]) => void;
10
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
+ tabs: string[];
12
+ modelValue: string;
13
+ name?: string | undefined;
14
+ }>, {
15
+ name: string;
16
+ }>>> & {
17
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
18
+ }, {
19
+ name: string;
20
+ }, {}>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -0,0 +1,8 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ui-tabs[data-v-bab25249]{padding:2px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import o from "./ui-tabs.vue2.js";
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bab25249"]]);
5
+ export {
6
+ p as default
7
+ };
8
+ //# sourceMappingURL=ui-tabs.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-tabs.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,56 @@
1
+ import { defineComponent as f, computed as _, openBlock as a, createElementBlock as r, Fragment as g, renderList as h, normalizeClass as v, createElementVNode as n, withDirectives as E, vModelRadio as V, createVNode as y, unref as t, withCtx as b, createTextVNode as k, toDisplayString as w } from "vue";
2
+ import x from "../ui-typography/index.js";
3
+ import { EColors as i } from "../../_types/colors.js";
4
+ import { ETypographySizes as C, ETextWeight as D } from "../ui-typography/_typings.js";
5
+ const S = { class: "ui-tabs grid grid-flow-col rounded-full bg-secondary-alt-200" }, N = { class: "block cursor-pointer px-md py-xs" }, z = ["value", "name"], T = /* @__PURE__ */ f({
6
+ __name: "ui-tabs",
7
+ props: {
8
+ tabs: {},
9
+ modelValue: {},
10
+ name: { default: "default" }
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(u, { emit: d }) {
14
+ const m = u, p = d, o = _({
15
+ get() {
16
+ return m.modelValue;
17
+ },
18
+ set(l) {
19
+ p("update:modelValue", l);
20
+ }
21
+ });
22
+ return (l, s) => (a(), r("ul", S, [
23
+ (a(!0), r(g, null, h(l.tabs, (e) => (a(), r("li", {
24
+ key: e,
25
+ class: v(["rounded-full text-center", [o.value === e && "bg-white"]])
26
+ }, [
27
+ n("label", N, [
28
+ E(n("input", {
29
+ "onUpdate:modelValue": s[0] || (s[0] = (c) => o.value = c),
30
+ type: "radio",
31
+ class: "absolute appearance-none",
32
+ value: e,
33
+ name: l.name
34
+ }, null, 8, z), [
35
+ [V, o.value]
36
+ ]),
37
+ y(t(x), {
38
+ is: "span",
39
+ size: t(C).XS,
40
+ kind: o.value === e ? t(i).SECONDARY_500 : t(i).SECONDARY_400,
41
+ weight: t(D).SEMI_BOLD
42
+ }, {
43
+ default: b(() => [
44
+ k(w(e), 1)
45
+ ]),
46
+ _: 2
47
+ }, 1032, ["size", "kind", "weight"])
48
+ ])
49
+ ], 2))), 128))
50
+ ]));
51
+ }
52
+ });
53
+ export {
54
+ T as default
55
+ };
56
+ //# sourceMappingURL=ui-tabs.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-tabs.vue2.js","sources":["../../../src/components/ui-tabs/ui-tabs.vue"],"sourcesContent":["<template>\n\t<ul class=\"ui-tabs grid grid-flow-col rounded-full bg-secondary-alt-200\">\n\t\t<li\n\t\t\tv-for=\"tab in tabs\"\n\t\t\t:key=\"tab\"\n\t\t\tclass=\"rounded-full text-center\"\n\t\t\t:class=\"[tabsModel === tab && 'bg-white']\"\n\t\t>\n\t\t\t<label class=\"block cursor-pointer px-md py-xs\">\n\t\t\t\t<input\n\t\t\t\t\tv-model=\"tabsModel\"\n\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\tclass=\"absolute appearance-none\"\n\t\t\t\t\t:value=\"tab\"\n\t\t\t\t\t:name=\"name\"\n\t\t\t\t>\n\t\t\t\t<ui-typography\n\t\t\t\t\tis=\"span\"\n\t\t\t\t\t:size=\"ETypographySizes.XS\"\n\t\t\t\t\t:kind=\"tabsModel === tab ? EColors.SECONDARY_500 : EColors.SECONDARY_400\"\n\t\t\t\t\t:weight=\"ETextWeight.SEMI_BOLD\"\n\t\t\t\t>\n\t\t\t\t\t{{ tab }}\n\t\t\t\t</ui-typography>\n\t\t\t</label>\n\t\t</li>\n\t</ul>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { computed } from \"vue\";\n\timport UiTypography, { ETypographySizes, ETextWeight } from \"../ui-typography\";\n\timport { EColors } from \"../../_types/colors\";\n\n\tconst props = withDefaults(defineProps<{\n\t\ttabs: string[];\n\t\tmodelValue: string;\n\t\tname?: string;\n\t}>(), {\n\t\tname: \"default\"\n\t});\n\n\tconst emit = defineEmits([\"update:modelValue\"]);\n\n\tconst tabsModel = computed({\n\t\tget() {\n\t\t\treturn props.modelValue;\n\t\t},\n\t\tset(value) {\n\t\t\temit(\"update:modelValue\", value);\n\t\t}\n\t});\n\n</script>\n\n<style scoped>\n\t.ui-tabs {\n\t\tpadding: 2px;\n\t}\n</style>\n"],"names":["props","__props","emit","__emit","tabsModel","computed","value"],"mappings":";;;;;;;;;;;;;AAkCC,UAAMA,IAAQC,GAQRC,IAAOC,GAEPC,IAAYC,EAAS;AAAA,MAC1B,MAAM;AACL,eAAOL,EAAM;AAAA,MACd;AAAA,MACA,IAAIM,GAAO;AACV,QAAAJ,EAAK,qBAAqBI,CAAK;AAAA,MAChC;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,168 @@
1
+ import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
2
+ import UiToggle from "./ui-toggle.vue";
3
+ export { UiToggle };
4
+ /**
5
+ * @deprecated The default should not be used - use named import as - import {[name]} from "ui/[name]"
6
+ */
7
+ declare const deprecatedDefault: {
8
+ new (...args: any[]): {
9
+ $: ComponentInternalInstance;
10
+ $data: {};
11
+ $props: Partial<{}> & Omit<{
12
+ readonly modelValue: boolean | unknown[];
13
+ readonly header?: string | undefined;
14
+ readonly title?: string | undefined;
15
+ readonly disabled?: boolean | undefined;
16
+ readonly invertOrder?: boolean | undefined;
17
+ readonly value?: string | undefined;
18
+ readonly alignCenter?: boolean | undefined;
19
+ "onUpdate:modelValue"?: ((state: unknown) => any) | undefined;
20
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
21
+ header: {
22
+ type: PropType<string>;
23
+ };
24
+ title: {
25
+ type: PropType<string>;
26
+ };
27
+ modelValue: {
28
+ type: PropType<boolean | unknown[]>;
29
+ required: true;
30
+ };
31
+ disabled: {
32
+ type: PropType<boolean>;
33
+ };
34
+ invertOrder: {
35
+ type: PropType<boolean>;
36
+ };
37
+ alignCenter: {
38
+ type: PropType<boolean>;
39
+ };
40
+ value: {
41
+ type: PropType<string>;
42
+ };
43
+ }>> & {
44
+ "onUpdate:modelValue"?: ((state: unknown) => any) | undefined;
45
+ }, never>;
46
+ $attrs: {
47
+ [x: string]: unknown;
48
+ };
49
+ $refs: {
50
+ [x: string]: unknown;
51
+ };
52
+ $slots: Readonly<{
53
+ [name: string]: Slot<any> | undefined;
54
+ }>;
55
+ $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
56
+ $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
57
+ $emit: (event: "update:modelValue", state: unknown) => void;
58
+ $el: any;
59
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
60
+ header: {
61
+ type: PropType<string>;
62
+ };
63
+ title: {
64
+ type: PropType<string>;
65
+ };
66
+ modelValue: {
67
+ type: PropType<boolean | unknown[]>;
68
+ required: true;
69
+ };
70
+ disabled: {
71
+ type: PropType<boolean>;
72
+ };
73
+ invertOrder: {
74
+ type: PropType<boolean>;
75
+ };
76
+ alignCenter: {
77
+ type: PropType<boolean>;
78
+ };
79
+ value: {
80
+ type: PropType<string>;
81
+ };
82
+ }>> & {
83
+ "onUpdate:modelValue"?: ((state: unknown) => any) | undefined;
84
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
85
+ "update:modelValue": (state: unknown) => void;
86
+ }, string, {}, {}, string, {}> & {
87
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
88
+ created?: ((() => void) | (() => void)[]) | undefined;
89
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
90
+ mounted?: ((() => void) | (() => void)[]) | undefined;
91
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
92
+ updated?: ((() => void) | (() => void)[]) | undefined;
93
+ activated?: ((() => void) | (() => void)[]) | undefined;
94
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
95
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
96
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
97
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
98
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
99
+ renderTracked?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
100
+ renderTriggered?: (((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]) | undefined;
101
+ errorCaptured?: (((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
102
+ };
103
+ $forceUpdate: () => void;
104
+ $nextTick: typeof nextTick;
105
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
106
+ } & Readonly<ExtractPropTypes<{
107
+ header: {
108
+ type: PropType<string>;
109
+ };
110
+ title: {
111
+ type: PropType<string>;
112
+ };
113
+ modelValue: {
114
+ type: PropType<boolean | unknown[]>;
115
+ required: true;
116
+ };
117
+ disabled: {
118
+ type: PropType<boolean>;
119
+ };
120
+ invertOrder: {
121
+ type: PropType<boolean>;
122
+ };
123
+ alignCenter: {
124
+ type: PropType<boolean>;
125
+ };
126
+ value: {
127
+ type: PropType<string>;
128
+ };
129
+ }>> & {
130
+ "onUpdate:modelValue"?: ((state: unknown) => any) | undefined;
131
+ } & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
132
+ __isFragment?: undefined;
133
+ __isTeleport?: undefined;
134
+ __isSuspense?: undefined;
135
+ } & ComponentOptionsBase<Readonly<ExtractPropTypes<{
136
+ header: {
137
+ type: PropType<string>;
138
+ };
139
+ title: {
140
+ type: PropType<string>;
141
+ };
142
+ modelValue: {
143
+ type: PropType<boolean | unknown[]>;
144
+ required: true;
145
+ };
146
+ disabled: {
147
+ type: PropType<boolean>;
148
+ };
149
+ invertOrder: {
150
+ type: PropType<boolean>;
151
+ };
152
+ alignCenter: {
153
+ type: PropType<boolean>;
154
+ };
155
+ value: {
156
+ type: PropType<string>;
157
+ };
158
+ }>> & {
159
+ "onUpdate:modelValue"?: ((state: unknown) => any) | undefined;
160
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
161
+ "update:modelValue": (state: unknown) => void;
162
+ }, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
163
+ $slots: {
164
+ header?(_: {}): any;
165
+ title?(_: {}): any;
166
+ };
167
+ });
168
+ export default deprecatedDefault;
@@ -0,0 +1,7 @@
1
+ import e from "./ui-toggle.vue.js";
2
+ const o = e;
3
+ export {
4
+ e as UiToggle,
5
+ o as default
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/ui-toggle/index.ts"],"sourcesContent":["import UiToggle from \"./ui-toggle.vue\";\n\nexport { UiToggle };\n\n/**\n * @deprecated The default should not be used - use named import as - import {[name]} from \"ui/[name]\"\n */\nconst deprecatedDefault = UiToggle;\nexport default deprecatedDefault;\n"],"names":["deprecatedDefault","UiToggle"],"mappings":";AAOA,MAAMA,IAAoBC;"}
@@ -0,0 +1,40 @@
1
+ import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
2
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ header?: string | undefined;
4
+ title?: string | undefined;
5
+ modelValue: boolean | unknown[];
6
+ disabled?: boolean | undefined;
7
+ invertOrder?: boolean | undefined;
8
+ alignCenter?: boolean | undefined;
9
+ value?: string | undefined;
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:modelValue": (state: unknown) => void;
12
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ header?: string | undefined;
14
+ title?: string | undefined;
15
+ modelValue: boolean | unknown[];
16
+ disabled?: boolean | undefined;
17
+ invertOrder?: boolean | undefined;
18
+ alignCenter?: boolean | undefined;
19
+ value?: string | undefined;
20
+ }>>> & {
21
+ "onUpdate:modelValue"?: ((state: unknown) => any) | undefined;
22
+ }, {}, {}>, {
23
+ header?(_: {}): any;
24
+ title?(_: {}): any;
25
+ }>;
26
+ export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,8 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ui-toggle__dot[data-v-80cfec4a]{top:50%;width:22px;height:22px;transform:translate3d(1px,-50%,0);transition:transform .2s ease-in-out}.ui-toggle__check-icon[data-v-80cfec4a]{top:50%;left:50%;transform:translate3d(-50%,-50%,0);stroke-dasharray:70;stroke-dashoffset:70;transition:stroke-dashoffset .2s ease-in-out}.ui-toggle:hover .ui-toggle__dot[data-v-80cfec4a],.ui-toggle:active .ui-toggle__dot[data-v-80cfec4a],.ui-toggle:focus .ui-toggle__dot[data-v-80cfec4a]{box-shadow:var(--shadow-border-secondary)}.ui-toggle input:checked~.ui-toggle__dot[data-v-80cfec4a]{transform:translate3d(calc(var(--lg) - 100% - 1px),-50%,0)}.ui-toggle:hover input:checked~.ui-toggle__dot[data-v-80cfec4a],.ui-toggle:active input:checked~.ui-toggle__dot[data-v-80cfec4a],.ui-toggle:focus input:checked~.ui-toggle__dot[data-v-80cfec4a]{box-shadow:var(--shadow-border-primary)}.ui-toggle__bg-block[data-v-80cfec4a]{transition:background-color .2s ease-in-out}.ui-toggle_disabled .ui-toggle__bg-block[data-v-80cfec4a]{background-color:var(--color-secondary-alt-300)}.ui-toggle input:checked~.ui-toggle__bg-block[data-v-80cfec4a]{background-color:var(--color-primary)}.ui-toggle input:checked~.ui-toggle__dot .ui-toggle__check-icon[data-v-80cfec4a]{stroke-dashoffset:0}.ui-toggle_disabled input:checked~.ui-toggle__bg-block[data-v-80cfec4a]{background-color:var(--color-primary-300)}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import o from "./ui-toggle.vue2.js";
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-80cfec4a"]]);
5
+ export {
6
+ e as default
7
+ };
8
+ //# sourceMappingURL=ui-toggle.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-toggle.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,94 @@
1
+ import { defineComponent as k, computed as y, openBlock as l, createElementBlock as i, renderSlot as n, createBlock as d, unref as s, withCtx as u, createTextVNode as p, toDisplayString as c, createCommentVNode as h, createElementVNode as t, normalizeClass as m, withDirectives as B, vModelCheckbox as C, pushScopeId as V, popScopeId as S } from "vue";
2
+ import g from "../ui-typography/index.js";
3
+ import { ETextWeight as D, ETypographySizes as E } from "../ui-typography/_typings.js";
4
+ const b = (o) => (V("data-v-80cfec4a"), o = o(), S(), o), M = { class: "ui-toggle" }, z = { class: "ui-input__input-wrapper relative block h-md" }, I = ["value"], $ = /* @__PURE__ */ b(() => /* @__PURE__ */ t("span", { class: "ui-toggle__bg-block block h-md w-lg rounded-full bg-secondary-alt" }, null, -1)), L = { class: "ui-toggle__dot absolute top-0 block rounded-full bg-white" }, N = /* @__PURE__ */ b(() => /* @__PURE__ */ t("path", {
5
+ d: "M1 4.40106L6.60071 10.1135L15.1694 1.71245",
6
+ stroke: "currentColor",
7
+ "stroke-width": "1.6",
8
+ "stroke-linecap": "round"
9
+ }, null, -1)), O = [
10
+ N
11
+ ], U = /* @__PURE__ */ k({
12
+ __name: "ui-toggle",
13
+ props: {
14
+ header: {},
15
+ title: {},
16
+ modelValue: { type: [Boolean, Array] },
17
+ disabled: { type: Boolean },
18
+ invertOrder: { type: Boolean },
19
+ alignCenter: { type: Boolean },
20
+ value: {}
21
+ },
22
+ emits: ["update:modelValue"],
23
+ setup(o, { emit: f }) {
24
+ const v = o, w = f, a = y({
25
+ get() {
26
+ return v.modelValue;
27
+ },
28
+ set(e) {
29
+ w("update:modelValue", e);
30
+ }
31
+ });
32
+ return (e, r) => (l(), i("div", M, [
33
+ n(e.$slots, "header", {}, () => [
34
+ e.header || e.$slots.header ? (l(), d(s(g), {
35
+ key: 0,
36
+ "line-height": "",
37
+ class: "mb-sm",
38
+ weight: s(D).SEMI_BOLD
39
+ }, {
40
+ default: u(() => [
41
+ p(c(e.header), 1)
42
+ ]),
43
+ _: 1
44
+ }, 8, ["weight"])) : h("", !0)
45
+ ], !0),
46
+ t("label", {
47
+ class: m(["flex cursor-pointer gap-sm rounded-full", [
48
+ e.disabled && "ui-toggle_disabled pointer-events-none",
49
+ e.invertOrder && "flex-row-reverse",
50
+ e.alignCenter && "items-center"
51
+ ]])
52
+ }, [
53
+ t("span", z, [
54
+ B(t("input", {
55
+ "onUpdate:modelValue": r[0] || (r[0] = (_) => a.value = _),
56
+ type: "checkbox",
57
+ class: "absolute h-0 w-0 appearance-none border-0",
58
+ value: e.value
59
+ }, null, 8, I), [
60
+ [C, a.value]
61
+ ]),
62
+ $,
63
+ t("span", L, [
64
+ (l(), i("svg", {
65
+ class: m(["ui-toggle__check-icon absolute", e.disabled ? "text-primary-300" : "text-primary"]),
66
+ width: "16",
67
+ height: "12",
68
+ viewBox: "0 0 16 12",
69
+ fill: "none",
70
+ xmlns: "http://www.w3.org/2000/svg"
71
+ }, O, 2))
72
+ ])
73
+ ]),
74
+ n(e.$slots, "title", {}, () => [
75
+ e.title || e.$slots.title ? (l(), d(s(g), {
76
+ key: 0,
77
+ size: s(E).MD,
78
+ class: "w-full",
79
+ "line-height": ""
80
+ }, {
81
+ default: u(() => [
82
+ p(c(e.title), 1)
83
+ ]),
84
+ _: 1
85
+ }, 8, ["size"])) : h("", !0)
86
+ ], !0)
87
+ ], 2)
88
+ ]));
89
+ }
90
+ });
91
+ export {
92
+ U as default
93
+ };
94
+ //# sourceMappingURL=ui-toggle.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-toggle.vue2.js","sources":["../../../src/components/ui-toggle/ui-toggle.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"ui-toggle\"\n\t>\n\t\t<slot name=\"header\">\n\t\t\t<ui-typography\n\t\t\t\tv-if=\"header || $slots.header\"\n\t\t\t\tline-height\n\t\t\t\tclass=\"mb-sm\"\n\t\t\t\t:weight=\"ETextWeight.SEMI_BOLD\"\n\t\t\t>\n\t\t\t\t{{ header }}\n\t\t\t</ui-typography>\n\t\t</slot>\n\n\t\t<label\n\t\t\tclass=\"flex cursor-pointer gap-sm rounded-full\"\n\t\t\t:class=\"[\n\t\t\t\tdisabled && 'ui-toggle_disabled pointer-events-none',\n\t\t\t\tinvertOrder && 'flex-row-reverse',\n\t\t\t\talignCenter && 'items-center'\n\t\t\t]\"\n\t\t>\n\t\t\t<span\n\t\t\t\tclass=\"ui-input__input-wrapper relative block h-md\"\n\t\t\t>\n\t\t\t\t<input\n\t\t\t\t\tv-model=\"checkboxModel\"\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tclass=\"absolute h-0 w-0 appearance-none border-0\"\n\t\t\t\t\t:value=\"value\"\n\t\t\t\t>\n\n\t\t\t\t<span class=\"ui-toggle__bg-block block h-md w-lg rounded-full bg-secondary-alt\" />\n\n\t\t\t\t<span class=\"ui-toggle__dot absolute top-0 block rounded-full bg-white\">\n\t\t\t\t\t<svg\n\t\t\t\t\t\tclass=\"ui-toggle__check-icon absolute\"\n\t\t\t\t\t\t:class=\"disabled ? 'text-primary-300' : 'text-primary'\"\n\t\t\t\t\t\twidth=\"16\"\n\t\t\t\t\t\theight=\"12\"\n\t\t\t\t\t\tviewBox=\"0 0 16 12\"\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M1 4.40106L6.60071 10.1135L15.1694 1.71245\"\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\tstroke-width=\"1.6\"\n\t\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\t\t\t\t</span>\n\t\t\t</span>\n\n\t\t\t<slot name=\"title\">\n\t\t\t\t<ui-typography\n\t\t\t\t\tv-if=\"title || $slots.title\"\n\t\t\t\t\t:size=\"ETypographySizes.MD\"\n\t\t\t\t\tclass=\"w-full\"\n\t\t\t\t\tline-height\n\t\t\t\t>\n\t\t\t\t\t{{ title }}\n\t\t\t\t</ui-typography>\n\t\t\t</slot>\n\t\t</label>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport UiTypography, { ETypographySizes, ETextWeight } from \"../ui-typography\";\n\timport { computed } from \"vue\";\n\n\tconst props = defineProps<{\n\t\theader?: string;\n\t\ttitle?: string;\n\t\tmodelValue: boolean | unknown[];\n\t\tdisabled?: boolean;\n\t\tinvertOrder?: boolean;\n\t\talignCenter?: boolean;\n\t\tvalue?: string;\n\t}>();\n\n\tconst emit = defineEmits<{\n\t\t(e: \"update:modelValue\", state: unknown): void\n\t}>();\n\n\tconst checkboxModel = computed({\n\t\tget() {\n\t\t\treturn props.modelValue;\n\t\t},\n\t\tset(value) {\n\t\t\temit(\"update:modelValue\", value);\n\t\t}\n\t});\n</script>\n\n<style scoped>\n\t.ui-toggle__dot {\n\t\ttop: 50%;\n\t\twidth: 22px;\n\t\theight: 22px;\n\t\ttransform: translate3d(1px, -50%, 0);\n\t\ttransition: transform 0.2s ease-in-out;\n\t}\n\n\t.ui-toggle__check-icon {\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate3d(-50%, -50%, 0);\n\t\tstroke-dasharray: 70;\n\t\tstroke-dashoffset: 70;\n\t\ttransition: stroke-dashoffset 0.2s ease-in-out;\n\t}\n\n\t.ui-toggle:hover .ui-toggle__dot,\n\t.ui-toggle:active .ui-toggle__dot,\n\t.ui-toggle:focus .ui-toggle__dot {\n\t\tbox-shadow: var(--shadow-border-secondary);\n\t}\n\n\t.ui-toggle input:checked ~ .ui-toggle__dot {\n\t\ttransform: translate3d(calc(var(--lg) - 100% - 1px), -50%, 0);\n\t}\n\n\t.ui-toggle:hover input:checked ~ .ui-toggle__dot,\n\t.ui-toggle:active input:checked ~ .ui-toggle__dot,\n\t.ui-toggle:focus input:checked ~ .ui-toggle__dot {\n\t\tbox-shadow: var(--shadow-border-primary);\n\t}\n\n\t.ui-toggle__bg-block {\n\t\ttransition: background-color 0.2s ease-in-out;\n\t}\n\n\t.ui-toggle_disabled .ui-toggle__bg-block {\n\t\tbackground-color: var(--color-secondary-alt-300);\n\t}\n\n\t.ui-toggle input:checked ~ .ui-toggle__bg-block {\n\t\tbackground-color: var(--color-primary);\n\t}\n\n\t.ui-toggle input:checked ~ .ui-toggle__dot .ui-toggle__check-icon {\n\t\tstroke-dashoffset: 0;\n\t}\n\n\t.ui-toggle_disabled input:checked ~ .ui-toggle__bg-block {\n\t\tbackground-color: var(--color-primary-300);\n\t}\n</style>\n"],"names":["props","__props","emit","__emit","checkboxModel","computed","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAyEC,UAAMA,IAAQC,GAURC,IAAOC,GAIPC,IAAgBC,EAAS;AAAA,MAC9B,MAAM;AACL,eAAOL,EAAM;AAAA,MACd;AAAA,MACA,IAAIM,GAAO;AACV,QAAAJ,EAAK,qBAAqBI,CAAK;AAAA,MAChC;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}