revotech-ui-kit 0.0.11 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (319) hide show
  1. package/dist/index.ts +1 -0
  2. package/dist/rollup-plugin-html-noop.js +1 -0
  3. package/dist/sw.js +2 -0
  4. package/dist/sw.js.map +1 -0
  5. package/dist/tsconfig.tsbuildinfo +1 -1
  6. package/dist/workbox-a523fd56.js +2 -0
  7. package/dist/workbox-a523fd56.js.map +1 -0
  8. package/package.json +23 -17
  9. package/dist/revotech-ui-kit.cjs +0 -2293
  10. package/dist/revotech-ui-kit.js +0 -5608
  11. package/dist/src/assets/icons/arrows.icon.d.ts +0 -1
  12. package/dist/src/assets/icons/arrows.icon.js +0 -20
  13. package/dist/src/assets/icons/arrows.icon.js.map +0 -1
  14. package/dist/src/assets/icons/index.d.ts +0 -3
  15. package/dist/src/assets/icons/index.js +0 -4
  16. package/dist/src/assets/icons/index.js.map +0 -1
  17. package/dist/src/assets/icons/search.icon.d.ts +0 -1
  18. package/dist/src/assets/icons/search.icon.js +0 -19
  19. package/dist/src/assets/icons/search.icon.js.map +0 -1
  20. package/dist/src/assets/icons/tick.icon.d.ts +0 -1
  21. package/dist/src/assets/icons/tick.icon.js +0 -20
  22. package/dist/src/assets/icons/tick.icon.js.map +0 -1
  23. package/dist/src/components/atoms/alert/alert-description.d.ts +0 -5
  24. package/dist/src/components/atoms/alert/alert-description.js +0 -18
  25. package/dist/src/components/atoms/alert/alert-description.js.map +0 -1
  26. package/dist/src/components/atoms/alert/alert-title.d.ts +0 -5
  27. package/dist/src/components/atoms/alert/alert-title.js +0 -20
  28. package/dist/src/components/atoms/alert/alert-title.js.map +0 -1
  29. package/dist/src/components/atoms/alert/alert.atom.d.ts +0 -15
  30. package/dist/src/components/atoms/alert/alert.atom.js +0 -55
  31. package/dist/src/components/atoms/alert/alert.atom.js.map +0 -1
  32. package/dist/src/components/atoms/alert/alert.stories.d.ts +0 -6
  33. package/dist/src/components/atoms/alert/alert.stories.js +0 -62
  34. package/dist/src/components/atoms/alert/alert.stories.js.map +0 -1
  35. package/dist/src/components/atoms/alert/alert.styles.d.ts +0 -4
  36. package/dist/src/components/atoms/alert/alert.styles.js +0 -21
  37. package/dist/src/components/atoms/alert/alert.styles.js.map +0 -1
  38. package/dist/src/components/atoms/alert/alert.types.d.ts +0 -1
  39. package/dist/src/components/atoms/alert/alert.types.js +0 -2
  40. package/dist/src/components/atoms/alert/alert.types.js.map +0 -1
  41. package/dist/src/components/atoms/badge/badge.atom.d.ts +0 -16
  42. package/dist/src/components/atoms/badge/badge.atom.js +0 -43
  43. package/dist/src/components/atoms/badge/badge.atom.js.map +0 -1
  44. package/dist/src/components/atoms/badge/badge.stories.d.ts +0 -6
  45. package/dist/src/components/atoms/badge/badge.stories.js +0 -110
  46. package/dist/src/components/atoms/badge/badge.stories.js.map +0 -1
  47. package/dist/src/components/atoms/badge/badge.style.d.ts +0 -3
  48. package/dist/src/components/atoms/badge/badge.style.js +0 -17
  49. package/dist/src/components/atoms/badge/badge.style.js.map +0 -1
  50. package/dist/src/components/atoms/badge/badge.type.d.ts +0 -1
  51. package/dist/src/components/atoms/badge/badge.type.js +0 -2
  52. package/dist/src/components/atoms/badge/badge.type.js.map +0 -1
  53. package/dist/src/components/atoms/button/button.atom.d.ts +0 -22
  54. package/dist/src/components/atoms/button/button.atom.js +0 -67
  55. package/dist/src/components/atoms/button/button.atom.js.map +0 -1
  56. package/dist/src/components/atoms/button/button.stories.d.ts +0 -6
  57. package/dist/src/components/atoms/button/button.stories.js +0 -204
  58. package/dist/src/components/atoms/button/button.stories.js.map +0 -1
  59. package/dist/src/components/atoms/button/button.style.d.ts +0 -4
  60. package/dist/src/components/atoms/button/button.style.js +0 -24
  61. package/dist/src/components/atoms/button/button.style.js.map +0 -1
  62. package/dist/src/components/atoms/button/button.type.d.ts +0 -3
  63. package/dist/src/components/atoms/button/button.type.js +0 -2
  64. package/dist/src/components/atoms/button/button.type.js.map +0 -1
  65. package/dist/src/components/atoms/card/card-content.d.ts +0 -5
  66. package/dist/src/components/atoms/card/card-content.js +0 -17
  67. package/dist/src/components/atoms/card/card-content.js.map +0 -1
  68. package/dist/src/components/atoms/card/card-description.d.ts +0 -5
  69. package/dist/src/components/atoms/card/card-description.js +0 -17
  70. package/dist/src/components/atoms/card/card-description.js.map +0 -1
  71. package/dist/src/components/atoms/card/card-footer.d.ts +0 -5
  72. package/dist/src/components/atoms/card/card-footer.js +0 -17
  73. package/dist/src/components/atoms/card/card-footer.js.map +0 -1
  74. package/dist/src/components/atoms/card/card-header.d.ts +0 -5
  75. package/dist/src/components/atoms/card/card-header.js +0 -17
  76. package/dist/src/components/atoms/card/card-header.js.map +0 -1
  77. package/dist/src/components/atoms/card/card-title.d.ts +0 -5
  78. package/dist/src/components/atoms/card/card-title.js +0 -17
  79. package/dist/src/components/atoms/card/card-title.js.map +0 -1
  80. package/dist/src/components/atoms/card/card.atom.d.ts +0 -11
  81. package/dist/src/components/atoms/card/card.atom.js +0 -25
  82. package/dist/src/components/atoms/card/card.atom.js.map +0 -1
  83. package/dist/src/components/atoms/card/card.stories.d.ts +0 -6
  84. package/dist/src/components/atoms/card/card.stories.js +0 -136
  85. package/dist/src/components/atoms/card/card.stories.js.map +0 -1
  86. package/dist/src/components/atoms/checkbox/checkbox.atom.d.ts +0 -13
  87. package/dist/src/components/atoms/checkbox/checkbox.atom.js +0 -87
  88. package/dist/src/components/atoms/checkbox/checkbox.atom.js.map +0 -1
  89. package/dist/src/components/atoms/checkbox/checkbox.stories.d.ts +0 -8
  90. package/dist/src/components/atoms/checkbox/checkbox.stories.js +0 -244
  91. package/dist/src/components/atoms/checkbox/checkbox.stories.js.map +0 -1
  92. package/dist/src/components/atoms/checkbox/checkbox.style.d.ts +0 -2
  93. package/dist/src/components/atoms/checkbox/checkbox.style.js +0 -3
  94. package/dist/src/components/atoms/checkbox/checkbox.style.js.map +0 -1
  95. package/dist/src/components/atoms/checkbox/checkbox.type.d.ts +0 -21
  96. package/dist/src/components/atoms/checkbox/checkbox.type.js +0 -2
  97. package/dist/src/components/atoms/checkbox/checkbox.type.js.map +0 -1
  98. package/dist/src/components/atoms/combo-box/combo-box-input.d.ts +0 -8
  99. package/dist/src/components/atoms/combo-box/combo-box-input.js +0 -47
  100. package/dist/src/components/atoms/combo-box/combo-box-input.js.map +0 -1
  101. package/dist/src/components/atoms/combo-box/combo-box-item.d.ts +0 -12
  102. package/dist/src/components/atoms/combo-box/combo-box-item.js +0 -85
  103. package/dist/src/components/atoms/combo-box/combo-box-item.js.map +0 -1
  104. package/dist/src/components/atoms/combo-box/combo-box-list.d.ts +0 -9
  105. package/dist/src/components/atoms/combo-box/combo-box-list.js +0 -67
  106. package/dist/src/components/atoms/combo-box/combo-box-list.js.map +0 -1
  107. package/dist/src/components/atoms/combo-box/combo-box.atom.d.ts +0 -23
  108. package/dist/src/components/atoms/combo-box/combo-box.atom.js +0 -199
  109. package/dist/src/components/atoms/combo-box/combo-box.atom.js.map +0 -1
  110. package/dist/src/components/atoms/combo-box/combo-box.stories.d.ts +0 -9
  111. package/dist/src/components/atoms/combo-box/combo-box.stories.js +0 -86
  112. package/dist/src/components/atoms/combo-box/combo-box.stories.js.map +0 -1
  113. package/dist/src/components/atoms/command-empty/command-empty.atom.d.ts +0 -9
  114. package/dist/src/components/atoms/command-empty/command-empty.atom.js +0 -53
  115. package/dist/src/components/atoms/command-empty/command-empty.atom.js.map +0 -1
  116. package/dist/src/components/atoms/command-group/command-group.atom.d.ts +0 -10
  117. package/dist/src/components/atoms/command-group/command-group.atom.js +0 -70
  118. package/dist/src/components/atoms/command-group/command-group.atom.js.map +0 -1
  119. package/dist/src/components/atoms/command-item/command-item.atom.d.ts +0 -12
  120. package/dist/src/components/atoms/command-item/command-item.atom.js +0 -78
  121. package/dist/src/components/atoms/command-item/command-item.atom.js.map +0 -1
  122. package/dist/src/components/atoms/command-list/command-list.atom.d.ts +0 -6
  123. package/dist/src/components/atoms/command-list/command-list.atom.js +0 -35
  124. package/dist/src/components/atoms/command-list/command-list.atom.js.map +0 -1
  125. package/dist/src/components/atoms/command-separator/command-separator.atom.d.ts +0 -9
  126. package/dist/src/components/atoms/command-separator/command-separator.atom.js +0 -51
  127. package/dist/src/components/atoms/command-separator/command-separator.atom.js.map +0 -1
  128. package/dist/src/components/atoms/dialog/dialog-close.d.ts +0 -7
  129. package/dist/src/components/atoms/dialog/dialog-close.js +0 -46
  130. package/dist/src/components/atoms/dialog/dialog-close.js.map +0 -1
  131. package/dist/src/components/atoms/dialog/dialog-content.d.ts +0 -8
  132. package/dist/src/components/atoms/dialog/dialog-content.js +0 -72
  133. package/dist/src/components/atoms/dialog/dialog-content.js.map +0 -1
  134. package/dist/src/components/atoms/dialog/dialog-footer.d.ts +0 -5
  135. package/dist/src/components/atoms/dialog/dialog-footer.js +0 -22
  136. package/dist/src/components/atoms/dialog/dialog-footer.js.map +0 -1
  137. package/dist/src/components/atoms/dialog/dialog-header.d.ts +0 -7
  138. package/dist/src/components/atoms/dialog/dialog-header.js +0 -40
  139. package/dist/src/components/atoms/dialog/dialog-header.js.map +0 -1
  140. package/dist/src/components/atoms/dialog/dialog-overly.d.ts +0 -5
  141. package/dist/src/components/atoms/dialog/dialog-overly.js +0 -20
  142. package/dist/src/components/atoms/dialog/dialog-overly.js.map +0 -1
  143. package/dist/src/components/atoms/dialog/dialog-trigger.d.ts +0 -8
  144. package/dist/src/components/atoms/dialog/dialog-trigger.js +0 -53
  145. package/dist/src/components/atoms/dialog/dialog-trigger.js.map +0 -1
  146. package/dist/src/components/atoms/dialog/dialog.atom.d.ts +0 -8
  147. package/dist/src/components/atoms/dialog/dialog.atom.js +0 -78
  148. package/dist/src/components/atoms/dialog/dialog.atom.js.map +0 -1
  149. package/dist/src/components/atoms/dialog/dialog.stories.d.ts +0 -16
  150. package/dist/src/components/atoms/dialog/dialog.stories.js +0 -88
  151. package/dist/src/components/atoms/dialog/dialog.stories.js.map +0 -1
  152. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.d.ts +0 -15
  153. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.js +0 -115
  154. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-checkbox-Item.js.map +0 -1
  155. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.d.ts +0 -13
  156. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.js +0 -80
  157. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-content.js.map +0 -1
  158. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.d.ts +0 -10
  159. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.js +0 -70
  160. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-group.js.map +0 -1
  161. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.d.ts +0 -12
  162. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.js +0 -78
  163. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-item.js.map +0 -1
  164. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.d.ts +0 -15
  165. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.js +0 -116
  166. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-radio-item.js.map +0 -1
  167. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.d.ts +0 -9
  168. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.js +0 -51
  169. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-seperator.js.map +0 -1
  170. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.d.ts +0 -5
  171. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.js +0 -20
  172. package/dist/src/components/atoms/dropdownMenu/dropdown-menu-shortcut.js.map +0 -1
  173. package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.d.ts +0 -14
  174. package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.js +0 -77
  175. package/dist/src/components/atoms/dropdownMenu/dropdown-menu.atom.js.map +0 -1
  176. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.d.ts +0 -15
  177. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.js +0 -211
  178. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.stories.js.map +0 -1
  179. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.d.ts +0 -2
  180. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.js +0 -4
  181. package/dist/src/components/atoms/dropdownMenu/dropdownMenu.style.js.map +0 -1
  182. package/dist/src/components/atoms/index.d.ts +0 -13
  183. package/dist/src/components/atoms/index.js +0 -14
  184. package/dist/src/components/atoms/index.js.map +0 -1
  185. package/dist/src/components/atoms/input/input.atom.d.ts +0 -21
  186. package/dist/src/components/atoms/input/input.atom.js +0 -93
  187. package/dist/src/components/atoms/input/input.atom.js.map +0 -1
  188. package/dist/src/components/atoms/input/input.stories.d.ts +0 -8
  189. package/dist/src/components/atoms/input/input.stories.js +0 -382
  190. package/dist/src/components/atoms/input/input.stories.js.map +0 -1
  191. package/dist/src/components/atoms/input/input.styles.d.ts +0 -1
  192. package/dist/src/components/atoms/input/input.styles.js +0 -2
  193. package/dist/src/components/atoms/input/input.styles.js.map +0 -1
  194. package/dist/src/components/atoms/input/input.type.d.ts +0 -21
  195. package/dist/src/components/atoms/input/input.type.js +0 -2
  196. package/dist/src/components/atoms/input/input.type.js.map +0 -1
  197. package/dist/src/components/atoms/label/label.atom.d.ts +0 -11
  198. package/dist/src/components/atoms/label/label.atom.js +0 -67
  199. package/dist/src/components/atoms/label/label.atom.js.map +0 -1
  200. package/dist/src/components/atoms/label/label.stories.d.ts +0 -6
  201. package/dist/src/components/atoms/label/label.stories.js +0 -85
  202. package/dist/src/components/atoms/label/label.stories.js.map +0 -1
  203. package/dist/src/components/atoms/label/label.style.d.ts +0 -1
  204. package/dist/src/components/atoms/label/label.style.js +0 -3
  205. package/dist/src/components/atoms/label/label.style.js.map +0 -1
  206. package/dist/src/components/atoms/popover/popover-content.d.ts +0 -11
  207. package/dist/src/components/atoms/popover/popover-content.js +0 -62
  208. package/dist/src/components/atoms/popover/popover-content.js.map +0 -1
  209. package/dist/src/components/atoms/popover/popover-trigger.d.ts +0 -9
  210. package/dist/src/components/atoms/popover/popover-trigger.js +0 -50
  211. package/dist/src/components/atoms/popover/popover-trigger.js.map +0 -1
  212. package/dist/src/components/atoms/popover/popover.atom.d.ts +0 -8
  213. package/dist/src/components/atoms/popover/popover.atom.js +0 -40
  214. package/dist/src/components/atoms/popover/popover.atom.js.map +0 -1
  215. package/dist/src/components/atoms/popover/popover.stories.d.ts +0 -10
  216. package/dist/src/components/atoms/popover/popover.stories.js +0 -69
  217. package/dist/src/components/atoms/popover/popover.stories.js.map +0 -1
  218. package/dist/src/components/atoms/popover/popover.style.d.ts +0 -5
  219. package/dist/src/components/atoms/popover/popover.style.js +0 -21
  220. package/dist/src/components/atoms/popover/popover.style.js.map +0 -1
  221. package/dist/src/components/atoms/popover/popover.types.d.ts +0 -2
  222. package/dist/src/components/atoms/popover/popover.types.js +0 -4
  223. package/dist/src/components/atoms/popover/popover.types.js.map +0 -1
  224. package/dist/src/components/atoms/toggle/defs.d.ts +0 -27
  225. package/dist/src/components/atoms/toggle/defs.js +0 -30
  226. package/dist/src/components/atoms/toggle/defs.js.map +0 -1
  227. package/dist/src/components/atoms/toggle/toggle.atom.d.ts +0 -19
  228. package/dist/src/components/atoms/toggle/toggle.atom.js +0 -72
  229. package/dist/src/components/atoms/toggle/toggle.atom.js.map +0 -1
  230. package/dist/src/components/atoms/toggle/toggle.stories.d.ts +0 -6
  231. package/dist/src/components/atoms/toggle/toggle.stories.js +0 -189
  232. package/dist/src/components/atoms/toggle/toggle.stories.js.map +0 -1
  233. package/dist/src/components/atoms/toggle/toggle.style.d.ts +0 -4
  234. package/dist/src/components/atoms/toggle/toggle.style.js +0 -19
  235. package/dist/src/components/atoms/toggle/toggle.style.js.map +0 -1
  236. package/dist/src/components/command/command.d.ts +0 -56
  237. package/dist/src/components/command/command.js +0 -402
  238. package/dist/src/components/command/command.js.map +0 -1
  239. package/dist/src/components/command/command.stories.d.ts +0 -5
  240. package/dist/src/components/command/command.stories.js +0 -153
  241. package/dist/src/components/command/command.stories.js.map +0 -1
  242. package/dist/src/components/index.d.ts +0 -2
  243. package/dist/src/components/index.js +0 -3
  244. package/dist/src/components/index.js.map +0 -1
  245. package/dist/src/components/molecules/command/command.molecules.d.ts +0 -6
  246. package/dist/src/components/molecules/command/command.molecules.js +0 -27
  247. package/dist/src/components/molecules/command/command.molecules.js.map +0 -1
  248. package/dist/src/components/molecules/command-input/command-input.atom.d.ts +0 -10
  249. package/dist/src/components/molecules/command-input/command-input.atom.js +0 -125
  250. package/dist/src/components/molecules/command-input/command-input.atom.js.map +0 -1
  251. package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.d.ts +0 -0
  252. package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.js +0 -2
  253. package/dist/src/components/molecules/dropdownMenu/dropdownMenu.molecules.js.map +0 -1
  254. package/dist/src/components/molecules/index.d.ts +0 -1
  255. package/dist/src/components/molecules/index.js +0 -2
  256. package/dist/src/components/molecules/index.js.map +0 -1
  257. package/dist/src/helpers/base-element.d.ts +0 -10
  258. package/dist/src/helpers/base-element.js +0 -62
  259. package/dist/src/helpers/base-element.js.map +0 -1
  260. package/dist/src/helpers/index.d.ts +0 -3
  261. package/dist/src/helpers/index.js +0 -4
  262. package/dist/src/helpers/index.js.map +0 -1
  263. package/dist/src/helpers/mouse-conroller.helper.d.ts +0 -14
  264. package/dist/src/helpers/mouse-conroller.helper.js +0 -33
  265. package/dist/src/helpers/mouse-conroller.helper.js.map +0 -1
  266. package/dist/src/helpers/style.helpers.d.ts +0 -2
  267. package/dist/src/helpers/style.helpers.js +0 -6
  268. package/dist/src/helpers/style.helpers.js.map +0 -1
  269. package/dist/src/index.d.ts +0 -4
  270. package/dist/src/index.js +0 -5
  271. package/dist/src/index.js.map +0 -1
  272. package/dist/src/interfaces/actionable.interface.d.ts +0 -5
  273. package/dist/src/interfaces/actionable.interface.js +0 -2
  274. package/dist/src/interfaces/actionable.interface.js.map +0 -1
  275. package/dist/src/interfaces/atomic.interface.d.ts +0 -6
  276. package/dist/src/interfaces/atomic.interface.js +0 -2
  277. package/dist/src/interfaces/atomic.interface.js.map +0 -1
  278. package/dist/src/interfaces/changeable.interface.d.ts +0 -7
  279. package/dist/src/interfaces/changeable.interface.js +0 -2
  280. package/dist/src/interfaces/changeable.interface.js.map +0 -1
  281. package/dist/src/interfaces/child-support-atomic.interface.d.ts +0 -4
  282. package/dist/src/interfaces/child-support-atomic.interface.js +0 -2
  283. package/dist/src/interfaces/child-support-atomic.interface.js.map +0 -1
  284. package/dist/src/interfaces/index.d.ts +0 -6
  285. package/dist/src/interfaces/index.js +0 -7
  286. package/dist/src/interfaces/index.js.map +0 -1
  287. package/dist/src/interfaces/intractable.interface.d.ts +0 -6
  288. package/dist/src/interfaces/intractable.interface.js +0 -2
  289. package/dist/src/interfaces/intractable.interface.js.map +0 -1
  290. package/dist/src/interfaces/variant.interface.d.ts +0 -3
  291. package/dist/src/interfaces/variant.interface.js +0 -2
  292. package/dist/src/interfaces/variant.interface.js.map +0 -1
  293. package/dist/src/lib/index.d.ts +0 -0
  294. package/dist/src/lib/index.js +0 -2
  295. package/dist/src/lib/index.js.map +0 -1
  296. package/dist/src/lib/next/next.lib.d.ts +0 -0
  297. package/dist/src/lib/next/next.lib.js +0 -2
  298. package/dist/src/lib/next/next.lib.js.map +0 -1
  299. package/dist/src/lib/react/react.lib.d.ts +0 -5
  300. package/dist/src/lib/react/react.lib.js +0 -16
  301. package/dist/src/lib/react/react.lib.js.map +0 -1
  302. package/dist/src/lib/tw-styles.d.ts +0 -1
  303. package/dist/src/lib/tw-styles.js +0 -1956
  304. package/dist/src/lib/tw-styles.js.map +0 -1
  305. package/dist/src/styles/index.d.ts +0 -1
  306. package/dist/src/styles/index.js +0 -2
  307. package/dist/src/styles/index.js.map +0 -1
  308. package/dist/src/styles/tw.styles.d.ts +0 -1
  309. package/dist/src/styles/tw.styles.js +0 -2218
  310. package/dist/src/styles/tw.styles.js.map +0 -1
  311. package/dist/src/wc-ui-app.d.ts +0 -6
  312. package/dist/src/wc-ui-app.js +0 -88
  313. package/dist/src/wc-ui-app.js.map +0 -1
  314. package/dist/test/wc-ui-app.test.d.ts +0 -0
  315. package/dist/test/wc-ui-app.test.js +0 -18
  316. package/dist/test/wc-ui-app.test.js.map +0 -1
  317. package/dist/vite.config.d.ts +0 -2
  318. package/dist/vite.config.js +0 -29
  319. package/dist/vite.config.js.map +0 -1
@@ -1,27 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement, html, css } from 'lit';
3
- import { customElement, queryAssignedElements, } from 'lit/decorators.js';
4
- import { cn } from '../../../helpers';
5
- import { TWStyles } from '../../../styles';
6
- let Command = class Command extends LitElement {
7
- render() {
8
- return html `
9
- <div
10
- class="${cn('flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md', this.className)}"
11
- id="rtgcmdr1"
12
- rtgcmd-root
13
- >
14
- <slot></slot>
15
- </div>
16
- `;
17
- }
18
- };
19
- Command.styles = [css ``, TWStyles];
20
- __decorate([
21
- queryAssignedElements({ selector: 'input[rtgcmd-input]' })
22
- ], Command.prototype, "_input", void 0);
23
- Command = __decorate([
24
- customElement('rtg-command')
25
- ], Command);
26
- export { Command };
27
- //# sourceMappingURL=command.molecules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.molecules.js","sourceRoot":"","sources":["../../../../../src/components/molecules/command/command.molecules.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAW,MAAM,KAAK,CAAC;AACrD,OAAO,EAEL,aAAa,EACb,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGpC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;IAMrC,MAAM;QACJ,OAAO,IAAI,CAAA;;iBAEE,EAAE,CACT,4GAA4G,EAC5G,IAAI,CAAC,SAAS,CACf;;;;;;KAMJ,CAAC;IACJ,CAAC;;AAlBM,cAAM,GAAG,CAAC,GAAG,CAAA,EAAE,EAAE,QAAQ,CAAC,AAApB,CAAqB;AAGlC;IADC,qBAAqB,CAAC,EAAE,QAAQ,EAAE,qBAAqB,EAAE,CAAC;uCAC/B;AAJjB,OAAO;IADnB,aAAa,CAAC,aAAa,CAAC;GAChB,OAAO,CAoBnB","sourcesContent":["import { LitElement, html, css, nothing } from 'lit';\nimport {\n property,\n customElement,\n queryAssignedElements,\n} from 'lit/decorators.js';\nimport { cn } from '../../../helpers';\nimport { TWStyles } from '../../../styles';\n\n@customElement('rtg-command')\nexport class Command extends LitElement {\n static styles = [css``, TWStyles];\n\n @queryAssignedElements({ selector: 'input[rtgcmd-input]' })\n _input!: Array<HTMLElement>;\n\n render() {\n return html`\n <div\n class=\"${cn(\n 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground border shadow-md',\n this.className\n )}\"\n id=\"rtgcmdr1\"\n rtgcmd-root\n >\n <slot></slot>\n </div>\n `;\n }\n}\n"]}
@@ -1,10 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class CommandInput extends LitElement {
3
- placeholder: string;
4
- _value: string;
5
- static styles: import("lit").CSSResult[];
6
- private get identifier();
7
- private filterItems;
8
- private handleChange;
9
- render(): import("lit-html").TemplateResult<1>;
10
- }
@@ -1,125 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { LitElement, html, css } from 'lit';
3
- import { property, customElement } from 'lit/decorators.js';
4
- import { cn } from '../../../helpers';
5
- import { TWStyles } from '../../../styles';
6
- let CommandInput = class CommandInput extends LitElement {
7
- constructor() {
8
- super(...arguments);
9
- this.placeholder = 'Type a command or search...';
10
- this._value = '';
11
- }
12
- get identifier() {
13
- const parent = this.parentElement?.shadowRoot?.querySelector('div[rtgcmd-root]');
14
- if (parent) {
15
- return `${parent.getAttribute('id')}i`;
16
- }
17
- return `rtgcmdrxi`;
18
- }
19
- filterItems() {
20
- const parent = this.parentElement;
21
- if (parent) {
22
- let isEmpty = true;
23
- const groups = parent.querySelectorAll('rtg-command-list > rtg-command-group');
24
- if (groups) {
25
- groups.forEach(group => {
26
- let hidden = true;
27
- const items = group.querySelectorAll('rtg-command-item');
28
- if (items) {
29
- items.forEach(item => {
30
- const value = item?.value || '';
31
- if (value.toLowerCase().includes(this._value.toLowerCase())) {
32
- hidden = false;
33
- isEmpty = false;
34
- item.setAttribute('aria-hidden', 'false');
35
- }
36
- else {
37
- item.setAttribute('aria-hidden', 'true');
38
- }
39
- });
40
- }
41
- group.setAttribute('aria-hidden', hidden ? 'true' : 'false');
42
- let separator = group.previousElementSibling;
43
- if (separator) {
44
- separator.setAttribute('aria-hidden', hidden ||
45
- separator.previousElementSibling?.getAttribute('aria-hidden') === 'true'
46
- ? 'true'
47
- : 'false');
48
- }
49
- separator = group.nextElementSibling;
50
- if (separator) {
51
- separator.setAttribute('aria-hidden', hidden ||
52
- separator.nextElementSibling?.getAttribute('aria-hidden') ===
53
- 'true'
54
- ? 'true'
55
- : 'false');
56
- }
57
- });
58
- }
59
- const empty = parent.querySelector('rtg-command-empty');
60
- if (empty) {
61
- empty.setAttribute('aria-hidden', isEmpty ? 'false' : 'true');
62
- }
63
- }
64
- }
65
- handleChange(e) {
66
- const input = e.target;
67
- if (input) {
68
- this._value = input.value;
69
- this.filterItems();
70
- }
71
- }
72
- render() {
73
- return html `
74
- <div
75
- class="${cn('flex items-center border-b px-3', this.className)}"
76
- name="rtgcmd-input-container"
77
- >
78
- <svg
79
- xmlns="http://www.w3.org/2000/svg"
80
- width="24"
81
- height="24"
82
- viewBox="0 0 24 24"
83
- fill="none"
84
- stroke="currentColor"
85
- stroke-width="2"
86
- stroke-linecap="round"
87
- stroke-linejoin="round"
88
- class="mr-2 h-4 w-4 shrink-0 opacity-50"
89
- >
90
- <circle cx="11" cy="11" r="8"></circle>
91
- <path d="m21 21-4.3-4.3"></path>
92
- </svg>
93
- <input
94
- class="flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50"
95
- placeholder="${this.placeholder}"
96
- rtgcmd-input
97
- @input="${this.handleChange}"
98
- autocomplete="off"
99
- autocorrect="off"
100
- spellcheck="false"
101
- aria-autocomplete="list"
102
- role="combobox"
103
- aria-expanded="true"
104
- aria-controls=":r1oe:"
105
- aria-labelledby=":r1of:"
106
- id="${this.identifier}"
107
- type="text"
108
- data-value="${this._value}"
109
- />
110
- </div>
111
- `;
112
- }
113
- };
114
- CommandInput.styles = [css ``, TWStyles];
115
- __decorate([
116
- property({ type: String })
117
- ], CommandInput.prototype, "placeholder", void 0);
118
- __decorate([
119
- property({ attribute: 'value', type: String })
120
- ], CommandInput.prototype, "_value", void 0);
121
- CommandInput = __decorate([
122
- customElement('rtg-command-input')
123
- ], CommandInput);
124
- export { CommandInput };
125
- //# sourceMappingURL=command-input.atom.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-input.atom.js","sourceRoot":"","sources":["../../../../../src/components/molecules/command-input/command-input.atom.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAW,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAIpC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QACuB,gBAAW,GAAG,6BAA6B,CAAC;QAExB,WAAM,GAAG,EAAE,CAAC;IAuH9D,CAAC;IAnHC,IAAY,UAAU;QACpB,MA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AC,UAAU;;wBAEP,IAAI,CAAC,MAAM;;;KAG9B,CAAC;IACJ,CAAC;;AApHM,mBAAM,GAAG,CAAC,GAAG,CAAA,EAAE,EAAE,QAAQ,CAAC,AAApB,CAAqB;AAJN;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAA6C;AAExB;IAA/C,QAAQ,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAa;AAHjD,YAAY;IADxB,aAAa,CAAC,mBAAmB,CAAC;GACtB,YAAY,CA0HxB","sourcesContent":["import { LitElement, html, css, nothing } from 'lit';\nimport { property, customElement } from 'lit/decorators.js';\nimport { cn } from '../../../helpers';\nimport { TWStyles } from '../../../styles';\nimport { CommandItem, CommandSeparator } from '../../../components';\n\n@customElement('rtg-command-input')\nexport class CommandInput extends LitElement {\n @property({ type: String }) placeholder = 'Type a command or search...';\n\n @property({ attribute: 'value', type: String }) _value = '';\n\n static styles = [css``, TWStyles];\n\n private get identifier() {\n const parent =\n this.parentElement?.shadowRoot?.querySelector('div[rtgcmd-root]');\n if (parent) {\n return `${parent.getAttribute('id')}i`;\n }\n return `rtgcmdrxi`;\n }\n\n private filterItems() {\n const parent = this.parentElement;\n if (parent) {\n let isEmpty = true;\n const groups = parent.querySelectorAll(\n 'rtg-command-list > rtg-command-group'\n );\n if (groups) {\n groups.forEach(group => {\n let hidden = true;\n const items = group.querySelectorAll('rtg-command-item');\n if (items) {\n items.forEach(item => {\n const value = (item as CommandItem)?.value || '';\n if (value.toLowerCase().includes(this._value.toLowerCase())) {\n hidden = false;\n isEmpty = false;\n item.setAttribute('aria-hidden', 'false');\n } else {\n item.setAttribute('aria-hidden', 'true');\n }\n });\n }\n group.setAttribute('aria-hidden', hidden ? 'true' : 'false');\n let separator = group.previousElementSibling as CommandSeparator;\n if (separator) {\n separator.setAttribute(\n 'aria-hidden',\n hidden ||\n separator.previousElementSibling?.getAttribute(\n 'aria-hidden'\n ) === 'true'\n ? 'true'\n : 'false'\n );\n }\n separator = group.nextElementSibling as CommandSeparator;\n if (separator) {\n separator.setAttribute(\n 'aria-hidden',\n hidden ||\n separator.nextElementSibling?.getAttribute('aria-hidden') ===\n 'true'\n ? 'true'\n : 'false'\n );\n }\n });\n }\n\n const empty = parent.querySelector('rtg-command-empty');\n if (empty) {\n empty.setAttribute('aria-hidden', isEmpty ? 'false' : 'true');\n }\n }\n }\n\n private handleChange(e: Event) {\n const input = e.target as HTMLInputElement;\n if (input) {\n this._value = input.value;\n this.filterItems();\n }\n }\n\n render() {\n return html`\n <div\n class=\"${cn('flex items-center border-b px-3', this.className)}\"\n name=\"rtgcmd-input-container\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"mr-2 h-4 w-4 shrink-0 opacity-50\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\"></circle>\n <path d=\"m21 21-4.3-4.3\"></path>\n </svg>\n <input\n class=\"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50\"\n placeholder=\"${this.placeholder}\"\n rtgcmd-input\n @input=\"${this.handleChange}\"\n autocomplete=\"off\"\n autocorrect=\"off\"\n spellcheck=\"false\"\n aria-autocomplete=\"list\"\n role=\"combobox\"\n aria-expanded=\"true\"\n aria-controls=\":r1oe:\"\n aria-labelledby=\":r1of:\"\n id=\"${this.identifier}\"\n type=\"text\"\n data-value=\"${this._value}\"\n />\n </div>\n `;\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=dropdownMenu.molecules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdownMenu.molecules.js","sourceRoot":"","sources":["../../../../../src/components/molecules/dropdownMenu/dropdownMenu.molecules.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -1 +0,0 @@
1
- export * from './command/command.molecules';
@@ -1,2 +0,0 @@
1
- export * from './command/command.molecules';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './command/command.molecules';\n"]}
@@ -1,10 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare abstract class BaseElement extends LitElement {
3
- constructor();
4
- protected abstract getAttributesToExclude(): string[];
5
- protected getFilteredAttributes(): {
6
- [key: string]: string;
7
- };
8
- protected isCustomPropertySet(property: string): boolean;
9
- protected applyCustomClass(variables: string[], selector: string, className?: string): void;
10
- }
@@ -1,62 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export class BaseElement extends LitElement {
3
- constructor() {
4
- super();
5
- }
6
- // Helper method to filter attributes based on exclusion rules
7
- getFilteredAttributes() {
8
- const attributes = {};
9
- Array.from(this.attributes).forEach(attr => {
10
- if (!this.getAttributesToExclude().includes(attr.name)) {
11
- attributes[attr.name] = attr.value ?? '';
12
- }
13
- });
14
- return attributes;
15
- }
16
- isCustomPropertySet(property) {
17
- const value = getComputedStyle(this).getPropertyValue(property).trim();
18
- return value !== 'inherit' && value.length > 0;
19
- }
20
- applyCustomClass(variables, selector, className = '') {
21
- let customClass = '';
22
- if (variables.some(variable => this.isCustomPropertySet(variable))) {
23
- customClass = className;
24
- }
25
- if (customClass)
26
- this.shadowRoot?.querySelector(selector)?.classList.add(customClass);
27
- }
28
- }
29
- // usage
30
- // import {
31
- // html,
32
- // PropertyValues,
33
- // } from "lit";
34
- // import { customElement, property } from "lit/decorators.js";
35
- // import { TWStyles} from "../styles/shared-style";
36
- // import { BaseElement } from "./base-element";
37
- // @customElement("biopass-label")
38
- // export class Label extends BaseElement {
39
- // constructor() {
40
- // super();
41
- // this.attachShadow({mode: 'open'});
42
- // }
43
- // @property({ type: String }) customClass: string ="";
44
- // static styles = [ TWStyles];
45
- // protected firstUpdated(_changedProperties: PropertyValues): void {
46
- // const variables = [
47
- // "--button-bg-color",
48
- // "--button-text-color",
49
- // "--button-border-radius",
50
- // "--button-padding"
51
- // ];
52
- // this.applyCustomClass(variables, "label","label-base");
53
- // }
54
- // render() {
55
- // return html`
56
- // <label class="text-3xl font-bold underline bg-secondary text-primary label-base">
57
- // <slot></slot>
58
- // </label>
59
- // `;
60
- // }
61
- // }
62
- //# sourceMappingURL=base-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base-element.js","sourceRoot":"","sources":["../../../src/helpers/base-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,MAAM,OAAgB,WAAY,SAAQ,UAAU;IAClD;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAID,8DAA8D;IACpD,qBAAqB;QAC7B,MAAM,UAAU,GAA8B,EAAE,CAAC;QACjD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACzC,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvD,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YAC3C,CAAC;QACH,CAAC,CAAC,CAAC;QACH,OAAO,UAAU,CAAC;IACpB,CAAC;IACS,mBAAmB,CAAC,QAAgB;QAC5C,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC;QACvE,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;IACjD,CAAC;IAES,gBAAgB,CACxB,SAAmB,EACnB,QAAgB,EAChB,SAAS,GAAG,EAAE;QAEd,IAAI,WAAW,GAAG,EAAE,CAAC;QAErB,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;YACnE,WAAW,GAAG,SAAS,CAAC;QAC1B,CAAC;QACD,IAAI,WAAW;YACb,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACzE,CAAC;CACF;AAED,QAAQ;AAER,WAAW;AACX,UAAU;AACV,oBAAoB;AAEpB,iBAAiB;AACjB,+DAA+D;AAC/D,oDAAoD;AACpD,gDAAgD;AAEhD,mCAAmC;AACnC,2CAA2C;AAC3C,oBAAoB;AACpB,eAAe;AACf,yCAAyC;AACzC,MAAM;AACN,yDAAyD;AACzD,iCAAiC;AAEjC,uEAAuE;AACvE,0BAA0B;AAC1B,6BAA6B;AAC7B,+BAA+B;AAC/B,kCAAkC;AAClC,2BAA2B;AAC3B,SAAS;AAET,8DAA8D;AAC9D,MAAM;AACN,gBAAgB;AAEhB,mBAAmB;AACnB,0FAA0F;AAC1F,wBAAwB;AACxB,iBAAiB;AAEjB,SAAS;AACT,MAAM;AACN,IAAI","sourcesContent":["import { LitElement } from 'lit';\n\nexport abstract class BaseElement extends LitElement {\n constructor() {\n super();\n }\n\n protected abstract getAttributesToExclude(): string[];\n\n // Helper method to filter attributes based on exclusion rules\n protected getFilteredAttributes(): { [key: string]: string } {\n const attributes: { [key: string]: string } = {};\n Array.from(this.attributes).forEach(attr => {\n if (!this.getAttributesToExclude().includes(attr.name)) {\n attributes[attr.name] = attr.value ?? '';\n }\n });\n return attributes;\n }\n protected isCustomPropertySet(property: string): boolean {\n const value = getComputedStyle(this).getPropertyValue(property).trim();\n return value !== 'inherit' && value.length > 0;\n }\n\n protected applyCustomClass(\n variables: string[],\n selector: string,\n className = ''\n ): void {\n let customClass = '';\n\n if (variables.some(variable => this.isCustomPropertySet(variable))) {\n customClass = className;\n }\n if (customClass)\n this.shadowRoot?.querySelector(selector)?.classList.add(customClass);\n }\n}\n\n// usage\n\n// import {\n// html,\n// PropertyValues,\n\n// } from \"lit\";\n// import { customElement, property } from \"lit/decorators.js\";\n// import { TWStyles} from \"../styles/shared-style\";\n// import { BaseElement } from \"./base-element\";\n\n// @customElement(\"biopass-label\")\n// export class Label extends BaseElement {\n// constructor() {\n// super();\n// this.attachShadow({mode: 'open'});\n// }\n// @property({ type: String }) customClass: string =\"\";\n// static styles = [ TWStyles];\n\n// protected firstUpdated(_changedProperties: PropertyValues): void {\n// const variables = [\n// \"--button-bg-color\",\n// \"--button-text-color\",\n// \"--button-border-radius\",\n// \"--button-padding\"\n// ];\n\n// this.applyCustomClass(variables, \"label\",\"label-base\");\n// }\n// render() {\n\n// return html`\n// <label class=\"text-3xl font-bold underline bg-secondary text-primary label-base\">\n// <slot></slot>\n// </label>\n\n// `;\n// }\n// }\n"]}
@@ -1,3 +0,0 @@
1
- export * from './mouse-conroller.helper';
2
- export * from './style.helpers';
3
- export * from './base-element';
@@ -1,4 +0,0 @@
1
- export * from './mouse-conroller.helper';
2
- export * from './style.helpers';
3
- export * from './base-element';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC","sourcesContent":["export * from './mouse-conroller.helper';\nexport * from './style.helpers';\nexport * from './base-element';\n"]}
@@ -1,14 +0,0 @@
1
- import { ReactiveControllerHost } from 'lit';
2
- export declare class MouseController {
3
- private host;
4
- pos: {
5
- x: number;
6
- y: number;
7
- };
8
- _onMouseMove: ({ clientX, clientY }: MouseEvent) => void;
9
- _onClick: (e: MouseEvent) => void;
10
- _onScroll: (e: Event) => void;
11
- constructor(host: ReactiveControllerHost);
12
- hostConnected(): void;
13
- hostDisconnected(): void;
14
- }
@@ -1,33 +0,0 @@
1
- export class MouseController {
2
- constructor(host) {
3
- this.pos = { x: 0, y: 0 };
4
- this._onMouseMove = ({ clientX, clientY }) => {
5
- this.pos = { x: clientX, y: clientY };
6
- this.host.requestUpdate();
7
- };
8
- this._onClick = (e) => {
9
- console.log(`click: ${e.target}`);
10
- console.log(`pos: ${this.pos.x}`);
11
- this.host.requestUpdate();
12
- };
13
- this._onScroll = (e) => {
14
- console.log(`scroll: ${e.target}`);
15
- console.log(`pos: ${this.pos.y}`);
16
- console.log(`pos: ${window.scrollY} ${window.innerHeight}`);
17
- this.host.requestUpdate();
18
- };
19
- this.host = host;
20
- host.addController(this);
21
- }
22
- hostConnected() {
23
- window.addEventListener('mousemove', this._onMouseMove);
24
- window.addEventListener('click', this._onClick);
25
- window.addEventListener('scroll', this._onScroll);
26
- }
27
- hostDisconnected() {
28
- window.removeEventListener('mousemove', this._onMouseMove);
29
- window.removeEventListener('click', this._onClick);
30
- window.removeEventListener('scroll', this._onScroll);
31
- }
32
- }
33
- //# sourceMappingURL=mouse-conroller.helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mouse-conroller.helper.js","sourceRoot":"","sources":["../../../src/helpers/mouse-conroller.helper.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,eAAe;IAuB1B,YAAY,IAA4B;QApBxC,QAAG,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QAErB,iBAAY,GAAG,CAAC,EAAE,OAAO,EAAE,OAAO,EAAc,EAAE,EAAE;YAClD,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC;YACtC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;QAC5B,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,C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activeControllerHost } from 'lit';\n\nexport class MouseController {\n private host: ReactiveControllerHost;\n\n pos = { x: 0, y: 0 };\n\n _onMouseMove = ({ clientX, clientY }: MouseEvent) => {\n this.pos = { x: clientX, y: clientY };\n this.host.requestUpdate();\n };\n\n _onClick = (e: MouseEvent) => {\n console.log(`click: ${e.target}`);\n console.log(`pos: ${this.pos.x}`);\n this.host.requestUpdate();\n };\n\n _onScroll = (e: Event) => {\n console.log(`scroll: ${e.target}`);\n console.log(`pos: ${this.pos.y}`);\n console.log(`pos: ${window.scrollY} ${window.innerHeight}`);\n this.host.requestUpdate();\n };\n\n constructor(host: ReactiveControllerHost) {\n this.host = host;\n host.addController(this);\n }\n\n hostConnected() {\n window.addEventListener('mousemove', this._onMouseMove);\n window.addEventListener('click', this._onClick);\n window.addEventListener('scroll', this._onScroll);\n }\n\n hostDisconnected() {\n window.removeEventListener('mousemove', this._onMouseMove);\n window.removeEventListener('click', this._onClick);\n window.removeEventListener('scroll', this._onScroll);\n }\n}\n"]}
@@ -1,2 +0,0 @@
1
- import { type ClassValue } from 'clsx';
2
- export declare function cn(...inputs: ClassValue[]): string;
@@ -1,6 +0,0 @@
1
- import { clsx } from 'clsx';
2
- import { twMerge } from 'tailwind-merge';
3
- export function cn(...inputs) {
4
- return twMerge(clsx(inputs));
5
- }
6
- //# sourceMappingURL=style.helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"style.helpers.js","sourceRoot":"","sources":["../../../src/helpers/style.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"]}
@@ -1,4 +0,0 @@
1
- import { Button } from './components/atoms/button/button.atom';
2
- import { Badge } from './components/atoms/badge/badge.atom';
3
- import { Input } from './components/atoms/input/input.atom';
4
- export { Button, Badge, Input };
package/dist/src/index.js DELETED
@@ -1,5 +0,0 @@
1
- import { Button } from './components/atoms/button/button.atom';
2
- import { Badge } from './components/atoms/badge/badge.atom';
3
- import { Input } from './components/atoms/input/input.atom';
4
- export { Button, Badge, Input };
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC","sourcesContent":["import { Button } from './components/atoms/button/button.atom';\nimport { Badge } from './components/atoms/badge/badge.atom';\nimport { Input } from './components/atoms/input/input.atom';\n\nexport { Button, Badge, Input };\n"]}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export type ActionableProps = Partial<{
3
- onClick: (event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
4
- onSubmit: (event?: React.FormEvent<HTMLFormElement>) => void;
5
- }>;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=actionable.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actionable.interface.js","sourceRoot":"","sources":["../../../src/interfaces/actionable.interface.ts"],"names":[],"mappings":"","sourcesContent":["import React from 'react';\r\n\r\nexport type ActionableProps = Partial<{\r\n onClick: (event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;\r\n onSubmit: (event?: React.FormEvent<HTMLFormElement>) => void;\r\n}>;\r\n"]}
@@ -1,6 +0,0 @@
1
- export type AtomicProps = Partial<{
2
- id: string;
3
- className: string;
4
- name: string;
5
- title: string;
6
- }>;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=atomic.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"atomic.interface.js","sourceRoot":"","sources":["../../../src/interfaces/atomic.interface.ts"],"names":[],"mappings":"","sourcesContent":["export type AtomicProps = Partial<{\r\n id: string;\r\n className: string;\r\n name: string;\r\n title: string;\r\n}>;\r\n"]}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { IntractableProps } from './intractable.interface';
3
- export type ChangeableProps<T = React.ChangeEvent<HTMLInputElement> | string | number, K = unknown> = Partial<IntractableProps & {
4
- onChange: (event?: T, value?: K) => void;
5
- onBlur: (event?: T) => void;
6
- onPaste: (event?: T) => void;
7
- }>;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=changeable.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"changeable.interface.js","sourceRoot":"","sources":["../../../src/interfaces/changeable.interface.ts"],"names":[],"mappings":"","sourcesContent":["import React from 'react';\r\n\r\nimport { IntractableProps } from './intractable.interface';\r\n\r\nexport type ChangeableProps<\r\n T = React.ChangeEvent<HTMLInputElement> | string | number,\r\n K = unknown\r\n> = Partial<\r\n IntractableProps & {\r\n onChange: (event?: T, value?: K) => void;\r\n onBlur: (event?: T) => void;\r\n onPaste: (event?: T) => void;\r\n }\r\n>;\r\n"]}
@@ -1,4 +0,0 @@
1
- import { AtomicProps } from './atomic.interface';
2
- export type AtomicComponentWithChildren = {
3
- children: React.ReactNode;
4
- } & AtomicProps;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=child-support-atomic.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"child-support-atomic.interface.js","sourceRoot":"","sources":["../../../src/interfaces/child-support-atomic.interface.ts"],"names":[],"mappings":"","sourcesContent":["import { AtomicProps } from './atomic.interface';\r\n\r\nexport type AtomicComponentWithChildren = {\r\n children: React.ReactNode;\r\n} & AtomicProps;\r\n"]}
@@ -1,6 +0,0 @@
1
- export * from './actionable.interface';
2
- export * from './atomic.interface';
3
- export * from './child-support-atomic.interface';
4
- export * from './changeable.interface';
5
- export * from './intractable.interface';
6
- export * from './variant.interface';
@@ -1,7 +0,0 @@
1
- export * from './actionable.interface';
2
- export * from './atomic.interface';
3
- export * from './child-support-atomic.interface';
4
- export * from './changeable.interface';
5
- export * from './intractable.interface';
6
- export * from './variant.interface';
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './actionable.interface';\nexport * from './atomic.interface';\nexport * from './child-support-atomic.interface';\nexport * from './changeable.interface';\nexport * from './intractable.interface';\nexport * from './variant.interface';\n"]}
@@ -1,6 +0,0 @@
1
- export type IntractableProps<T = string> = Partial<{
2
- isDisabled: boolean;
3
- isChecked: boolean;
4
- isReadOnly: boolean;
5
- type: T;
6
- }>;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=intractable.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intractable.interface.js","sourceRoot":"","sources":["../../../src/interfaces/intractable.interface.ts"],"names":[],"mappings":"","sourcesContent":["export type IntractableProps<T = string> = Partial<{\r\n isDisabled: boolean;\r\n isChecked: boolean;\r\n isReadOnly: boolean;\r\n type: T;\r\n}>;\r\n"]}
@@ -1,3 +0,0 @@
1
- export type VariantProps<T> = Partial<{
2
- variant: T;
3
- }>;
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=variant.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"variant.interface.js","sourceRoot":"","sources":["../../../src/interfaces/variant.interface.ts"],"names":[],"mappings":"","sourcesContent":["export type VariantProps<T> = Partial<{\n variant: T;\n}>;\n"]}
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=next.lib.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"next.lib.js","sourceRoot":"","sources":["../../../../src/lib/next/next.lib.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -1,5 +0,0 @@
1
- import { Button } from '@/components/atoms/button/button.atom';
2
- import { Checkbox } from '@/components/atoms/checkbox/checkbox.atom';
3
- declare const ButtonReact: import("@lit-labs/react").ReactWebComponent<Button, {}>;
4
- declare const CheckboxReact: import("@lit-labs/react").ReactWebComponent<Checkbox, {}>;
5
- export { ButtonReact, CheckboxReact };
@@ -1,16 +0,0 @@
1
- import { createComponent } from '@lit-labs/react';
2
- import { Button } from '@/components/atoms/button/button.atom';
3
- import { Checkbox } from '@/components/atoms/checkbox/checkbox.atom';
4
- import React from 'react';
5
- const ButtonReact = createComponent({
6
- tagName: 'rtg-button',
7
- elementClass: Button,
8
- react: React,
9
- });
10
- const CheckboxReact = createComponent({
11
- tagName: 'rtg-checkbox',
12
- elementClass: Checkbox,
13
- react: React,
14
- });
15
- export { ButtonReact, CheckboxReact };
16
- //# sourceMappingURL=react.lib.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.lib.js","sourceRoot":"","sources":["../../../../src/lib/react/react.lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACrE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,GAAG,eAAe,CAAC;IAClC,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE,MAAM;IACpB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,eAAe,CAAC;IACpC,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,QAAQ;IACtB,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC","sourcesContent":["import { createComponent } from '@lit-labs/react';\nimport { Button } from '@/components/atoms/button/button.atom';\nimport { Checkbox } from '@/components/atoms/checkbox/checkbox.atom';\nimport React from 'react';\n\nconst ButtonReact = createComponent({\n tagName: 'rtg-button',\n elementClass: Button,\n react: React,\n});\n\nconst CheckboxReact = createComponent({\n tagName: 'rtg-checkbox',\n elementClass: Checkbox,\n react: React,\n});\n\nexport { ButtonReact, CheckboxReact };\n"]}
@@ -1 +0,0 @@
1
- export declare const TWStyles: import("lit").CSSResult;