kigumi 0.5.0 → 0.6.0

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 (1034) hide show
  1. package/README.md +34 -14
  2. package/dist/chunk-EAABDBX7.js +216 -0
  3. package/dist/chunk-FG4CIVPT.js +52 -0
  4. package/dist/chunk-IRCCX2A2.js +72 -0
  5. package/dist/chunk-VLXYBBZR.js +216 -0
  6. package/dist/index.js +478 -34
  7. package/dist/path-aliases-3OJ2RKTE.js +95 -0
  8. package/dist/path-aliases-44XMTAAA.js +89 -0
  9. package/dist/path-aliases-CNBMGBKE.js +98 -0
  10. package/dist/path-aliases-L6USUZ4R.js +91 -0
  11. package/dist/path-aliases-NX2TDEHO.js +92 -0
  12. package/dist/path-aliases-ZRNAAXX2.js +94 -0
  13. package/dist/project-config-3XEQHIUM.js +115 -0
  14. package/dist/project-config-YLUSQM7U.js +108 -0
  15. package/dist/skills/kigumi-react/SKILL.md +1 -1
  16. package/dist/skills/kigumi-react/references/components/file-input.md +52 -0
  17. package/dist/skills/kigumi-react/references/components/number-input.md +54 -0
  18. package/dist/skills/kigumi-react/references/components/sparkline.md +50 -0
  19. package/dist/skills/kigumi-react/references/transformation-rules.md +3 -0
  20. package/dist/templates/react/AnimatedImage/AnimatedImage.css.hbs +1 -9
  21. package/dist/templates/react/AnimatedImage/AnimatedImage.test.tsx.hbs +3 -7
  22. package/dist/templates/react/AnimatedImage/AnimatedImage.tsx.hbs +50 -27
  23. package/dist/templates/react/Animation/Animation.css.hbs +0 -7
  24. package/dist/templates/react/Animation/Animation.test.tsx.hbs +5 -9
  25. package/dist/templates/react/Animation/Animation.tsx.hbs +51 -32
  26. package/dist/templates/react/Avatar/Avatar.css.hbs +1 -10
  27. package/dist/templates/react/Avatar/Avatar.test.tsx.hbs +2 -6
  28. package/dist/templates/react/Avatar/Avatar.tsx.hbs +41 -24
  29. package/dist/templates/react/Badge/Badge.css.hbs +1 -8
  30. package/dist/templates/react/Badge/Badge.test.tsx.hbs +5 -9
  31. package/dist/templates/react/Badge/Badge.tsx.hbs +34 -18
  32. package/dist/templates/react/Breadcrumb/Breadcrumb.css.hbs +0 -7
  33. package/dist/templates/react/Breadcrumb/Breadcrumb.test.tsx.hbs +5 -9
  34. package/dist/templates/react/Breadcrumb/Breadcrumb.tsx.hbs +31 -23
  35. package/dist/templates/react/BreadcrumbItem/BreadcrumbItem.css.hbs +0 -10
  36. package/dist/templates/react/BreadcrumbItem/BreadcrumbItem.test.tsx.hbs +5 -9
  37. package/dist/templates/react/BreadcrumbItem/BreadcrumbItem.tsx.hbs +33 -28
  38. package/dist/templates/react/Button/Button.css.hbs +8 -11
  39. package/dist/templates/react/Button/Button.test.tsx.hbs +5 -9
  40. package/dist/templates/react/Button/Button.tsx.hbs +57 -33
  41. package/dist/templates/react/ButtonGroup/ButtonGroup.css.hbs +2 -6
  42. package/dist/templates/react/ButtonGroup/ButtonGroup.test.tsx.hbs +5 -27
  43. package/dist/templates/react/ButtonGroup/ButtonGroup.tsx.hbs +32 -22
  44. package/dist/templates/react/Callout/Callout.css.hbs +9 -15
  45. package/dist/templates/react/Callout/Callout.test.tsx.hbs +4 -21
  46. package/dist/templates/react/Callout/Callout.tsx.hbs +41 -10
  47. package/dist/templates/react/Card/Card.css.hbs +6 -10
  48. package/dist/templates/react/Card/Card.test.tsx.hbs +5 -9
  49. package/dist/templates/react/Card/Card.tsx.hbs +37 -9
  50. package/dist/templates/react/Carousel/Carousel.css.hbs +1 -18
  51. package/dist/templates/react/Carousel/Carousel.test.tsx.hbs +5 -9
  52. package/dist/templates/react/Carousel/Carousel.tsx.hbs +50 -27
  53. package/dist/templates/react/CarouselItem/CarouselItem.css.hbs +1 -8
  54. package/dist/templates/react/CarouselItem/CarouselItem.test.tsx.hbs +5 -9
  55. package/dist/templates/react/CarouselItem/CarouselItem.tsx.hbs +34 -12
  56. package/dist/templates/react/Checkbox/Checkbox.css.hbs +1 -14
  57. package/dist/templates/react/Checkbox/Checkbox.test.tsx.hbs +5 -9
  58. package/dist/templates/react/Checkbox/Checkbox.tsx.hbs +82 -31
  59. package/dist/templates/react/ColorPicker/ColorPicker.css.hbs +1 -27
  60. package/dist/templates/react/ColorPicker/ColorPicker.test.tsx.hbs +2 -6
  61. package/dist/templates/react/ColorPicker/ColorPicker.tsx.hbs +157 -67
  62. package/dist/templates/react/Combobox/Combobox.css.hbs +1 -22
  63. package/dist/templates/react/Combobox/Combobox.test.tsx.hbs +5 -9
  64. package/dist/templates/react/Combobox/Combobox.tsx.hbs +132 -44
  65. package/dist/templates/react/Comparison/Comparison.css.hbs +1 -13
  66. package/dist/templates/react/Comparison/Comparison.test.tsx.hbs +2 -6
  67. package/dist/templates/react/Comparison/Comparison.tsx.hbs +53 -9
  68. package/dist/templates/react/CopyButton/CopyButton.css.hbs +0 -14
  69. package/dist/templates/react/CopyButton/CopyButton.test.tsx.hbs +3 -7
  70. package/dist/templates/react/CopyButton/CopyButton.tsx.hbs +57 -22
  71. package/dist/templates/react/Details/Details.css.hbs +1 -14
  72. package/dist/templates/react/Details/Details.test.tsx.hbs +5 -9
  73. package/dist/templates/react/Details/Details.tsx.hbs +59 -30
  74. package/dist/templates/react/Dialog/Dialog.css.hbs +9 -14
  75. package/dist/templates/react/Dialog/Dialog.test.tsx.hbs +5 -9
  76. package/dist/templates/react/Dialog/Dialog.tsx.hbs +42 -95
  77. package/dist/templates/react/Divider/Divider.css.hbs +1 -11
  78. package/dist/templates/react/Divider/Divider.test.tsx.hbs +2 -6
  79. package/dist/templates/react/Divider/Divider.tsx.hbs +40 -7
  80. package/dist/templates/react/Drawer/Drawer.css.hbs +1 -18
  81. package/dist/templates/react/Drawer/Drawer.test.tsx.hbs +5 -9
  82. package/dist/templates/react/Drawer/Drawer.tsx.hbs +60 -44
  83. package/dist/templates/react/Dropdown/Dropdown.css.hbs +1 -10
  84. package/dist/templates/react/Dropdown/Dropdown.test.tsx.hbs +5 -9
  85. package/dist/templates/react/Dropdown/Dropdown.tsx.hbs +78 -52
  86. package/dist/templates/react/DropdownItem/DropdownItem.css.hbs +0 -12
  87. package/dist/templates/react/DropdownItem/DropdownItem.test.tsx.hbs +5 -9
  88. package/dist/templates/react/DropdownItem/DropdownItem.tsx.hbs +78 -15
  89. package/dist/templates/react/FileInput/FileInput.css.hbs +19 -0
  90. package/dist/templates/react/FileInput/FileInput.jsx.hbs +107 -0
  91. package/dist/templates/react/FileInput/FileInput.test.jsx.hbs +15 -0
  92. package/dist/templates/react/FileInput/FileInput.test.tsx.hbs +10 -0
  93. package/dist/templates/react/FileInput/FileInput.tsx.hbs +161 -0
  94. package/dist/templates/react/FormatBytes/FormatBytes.css.hbs +0 -7
  95. package/dist/templates/react/FormatBytes/FormatBytes.test.tsx.hbs +3 -7
  96. package/dist/templates/react/FormatBytes/FormatBytes.tsx.hbs +46 -7
  97. package/dist/templates/react/FormatDate/FormatDate.css.hbs +0 -7
  98. package/dist/templates/react/FormatDate/FormatDate.test.tsx.hbs +2 -6
  99. package/dist/templates/react/FormatDate/FormatDate.tsx.hbs +66 -18
  100. package/dist/templates/react/FormatNumber/FormatNumber.css.hbs +0 -7
  101. package/dist/templates/react/FormatNumber/FormatNumber.test.tsx.hbs +3 -7
  102. package/dist/templates/react/FormatNumber/FormatNumber.tsx.hbs +56 -10
  103. package/dist/templates/react/Icon/Icon.css.hbs +1 -12
  104. package/dist/templates/react/Icon/Icon.test.tsx.hbs +3 -7
  105. package/dist/templates/react/Icon/Icon.tsx.hbs +52 -39
  106. package/dist/templates/react/Include/Include.css.hbs +0 -7
  107. package/dist/templates/react/Include/Include.test.tsx.hbs +3 -7
  108. package/dist/templates/react/Include/Include.tsx.hbs +62 -24
  109. package/dist/templates/react/Input/Input.css.hbs +11 -12
  110. package/dist/templates/react/Input/Input.test.tsx.hbs +2 -6
  111. package/dist/templates/react/Input/Input.tsx.hbs +114 -41
  112. package/dist/templates/react/IntersectionObserver/IntersectionObserver.css.hbs +0 -7
  113. package/dist/templates/react/IntersectionObserver/IntersectionObserver.test.tsx.hbs +5 -9
  114. package/dist/templates/react/IntersectionObserver/IntersectionObserver.tsx.hbs +56 -26
  115. package/dist/templates/react/KIGUMI_SETUP.md.hbs +52 -0
  116. package/dist/templates/react/MutationObserver/MutationObserver.css.hbs +0 -7
  117. package/dist/templates/react/MutationObserver/MutationObserver.test.tsx.hbs +5 -9
  118. package/dist/templates/react/MutationObserver/MutationObserver.tsx.hbs +61 -22
  119. package/dist/templates/react/NumberInput/NumberInput.css.hbs +19 -0
  120. package/dist/templates/react/NumberInput/NumberInput.jsx.hbs +127 -0
  121. package/dist/templates/react/NumberInput/NumberInput.test.jsx.hbs +15 -0
  122. package/dist/templates/react/NumberInput/NumberInput.test.tsx.hbs +10 -0
  123. package/dist/templates/react/NumberInput/NumberInput.tsx.hbs +194 -0
  124. package/dist/templates/react/Option/Option.css.hbs +0 -10
  125. package/dist/templates/react/Option/Option.test.tsx.hbs +5 -9
  126. package/dist/templates/react/Option/Option.tsx.hbs +38 -5
  127. package/dist/templates/react/Page/Page.css.hbs +11 -79
  128. package/dist/templates/react/Page/Page.test.tsx.hbs +1 -48
  129. package/dist/templates/react/Page/Page.tsx.hbs +46 -58
  130. package/dist/templates/react/Popover/Popover.css.hbs +1 -15
  131. package/dist/templates/react/Popover/Popover.test.tsx.hbs +5 -9
  132. package/dist/templates/react/Popover/Popover.tsx.hbs +88 -46
  133. package/dist/templates/react/Popup/Popup.css.hbs +1 -15
  134. package/dist/templates/react/Popup/Popup.test.tsx.hbs +5 -9
  135. package/dist/templates/react/Popup/Popup.tsx.hbs +81 -24
  136. package/dist/templates/react/ProgressBar/ProgressBar.css.hbs +1 -12
  137. package/dist/templates/react/ProgressBar/ProgressBar.test.tsx.hbs +3 -7
  138. package/dist/templates/react/ProgressBar/ProgressBar.tsx.hbs +40 -6
  139. package/dist/templates/react/ProgressRing/ProgressRing.css.hbs +1 -16
  140. package/dist/templates/react/ProgressRing/ProgressRing.test.tsx.hbs +3 -7
  141. package/dist/templates/react/ProgressRing/ProgressRing.tsx.hbs +38 -5
  142. package/dist/templates/react/QrCode/QrCode.css.hbs +1 -8
  143. package/dist/templates/react/QrCode/QrCode.test.tsx.hbs +3 -7
  144. package/dist/templates/react/QrCode/QrCode.tsx.hbs +54 -14
  145. package/dist/templates/react/Radio/Radio.css.hbs +1 -11
  146. package/dist/templates/react/Radio/Radio.test.tsx.hbs +5 -9
  147. package/dist/templates/react/Radio/Radio.tsx.hbs +69 -9
  148. package/dist/templates/react/RadioGroup/RadioGroup.css.hbs +0 -11
  149. package/dist/templates/react/RadioGroup/RadioGroup.test.tsx.hbs +5 -9
  150. package/dist/templates/react/RadioGroup/RadioGroup.tsx.hbs +74 -31
  151. package/dist/templates/react/Rating/Rating.css.hbs +1 -10
  152. package/dist/templates/react/Rating/Rating.test.tsx.hbs +2 -6
  153. package/dist/templates/react/Rating/Rating.tsx.hbs +67 -23
  154. package/dist/templates/react/RelativeTime/RelativeTime.css.hbs +0 -7
  155. package/dist/templates/react/RelativeTime/RelativeTime.test.tsx.hbs +2 -6
  156. package/dist/templates/react/RelativeTime/RelativeTime.tsx.hbs +50 -10
  157. package/dist/templates/react/ResizeObserver/ResizeObserver.css.hbs +0 -7
  158. package/dist/templates/react/ResizeObserver/ResizeObserver.test.tsx.hbs +5 -9
  159. package/dist/templates/react/ResizeObserver/ResizeObserver.tsx.hbs +48 -17
  160. package/dist/templates/react/Scroller/Scroller.css.hbs +1 -9
  161. package/dist/templates/react/Scroller/Scroller.test.tsx.hbs +5 -9
  162. package/dist/templates/react/Scroller/Scroller.tsx.hbs +40 -9
  163. package/dist/templates/react/Select/Select.css.hbs +1 -22
  164. package/dist/templates/react/Select/Select.test.tsx.hbs +5 -9
  165. package/dist/templates/react/Select/Select.tsx.hbs +174 -72
  166. package/dist/templates/react/Skeleton/Skeleton.css.hbs +1 -9
  167. package/dist/templates/react/Skeleton/Skeleton.test.tsx.hbs +2 -6
  168. package/dist/templates/react/Skeleton/Skeleton.tsx.hbs +40 -6
  169. package/dist/templates/react/Slider/Slider.css.hbs +1 -16
  170. package/dist/templates/react/Slider/Slider.test.tsx.hbs +2 -6
  171. package/dist/templates/react/Slider/Slider.tsx.hbs +117 -39
  172. package/dist/templates/react/Sparkline/Sparkline.css.hbs +14 -0
  173. package/dist/templates/react/Sparkline/Sparkline.jsx.hbs +64 -0
  174. package/dist/templates/react/Sparkline/Sparkline.test.jsx.hbs +15 -0
  175. package/dist/templates/react/Sparkline/Sparkline.test.tsx.hbs +10 -0
  176. package/dist/templates/react/Sparkline/Sparkline.tsx.hbs +78 -0
  177. package/dist/templates/react/Spinner/Spinner.css.hbs +1 -11
  178. package/dist/templates/react/Spinner/Spinner.test.tsx.hbs +2 -6
  179. package/dist/templates/react/Spinner/Spinner.tsx.hbs +41 -6
  180. package/dist/templates/react/SplitPanel/SplitPanel.css.hbs +1 -14
  181. package/dist/templates/react/SplitPanel/SplitPanel.test.tsx.hbs +5 -9
  182. package/dist/templates/react/SplitPanel/SplitPanel.tsx.hbs +63 -24
  183. package/dist/templates/react/Switch/Switch.css.hbs +1 -14
  184. package/dist/templates/react/Switch/Switch.test.tsx.hbs +5 -9
  185. package/dist/templates/react/Switch/Switch.tsx.hbs +105 -27
  186. package/dist/templates/react/Tab/Tab.css.hbs +0 -7
  187. package/dist/templates/react/Tab/Tab.test.tsx.hbs +5 -9
  188. package/dist/templates/react/Tab/Tab.tsx.hbs +37 -4
  189. package/dist/templates/react/TabGroup/TabGroup.css.hbs +1 -17
  190. package/dist/templates/react/TabGroup/TabGroup.test.tsx.hbs +5 -9
  191. package/dist/templates/react/TabGroup/TabGroup.tsx.hbs +62 -28
  192. package/dist/templates/react/TabPanel/TabPanel.css.hbs +1 -8
  193. package/dist/templates/react/TabPanel/TabPanel.test.tsx.hbs +5 -9
  194. package/dist/templates/react/TabPanel/TabPanel.tsx.hbs +38 -5
  195. package/dist/templates/react/Tag/Tag.css.hbs +0 -10
  196. package/dist/templates/react/Tag/Tag.test.tsx.hbs +5 -9
  197. package/dist/templates/react/Tag/Tag.tsx.hbs +48 -20
  198. package/dist/templates/react/Textarea/Textarea.css.hbs +0 -11
  199. package/dist/templates/react/Textarea/Textarea.test.tsx.hbs +2 -6
  200. package/dist/templates/react/Textarea/Textarea.tsx.hbs +156 -58
  201. package/dist/templates/react/Tooltip/Tooltip.css.hbs +1 -11
  202. package/dist/templates/react/Tooltip/Tooltip.test.tsx.hbs +5 -9
  203. package/dist/templates/react/Tooltip/Tooltip.tsx.hbs +102 -54
  204. package/dist/templates/react/Tree/Tree.css.hbs +1 -12
  205. package/dist/templates/react/Tree/Tree.test.tsx.hbs +5 -9
  206. package/dist/templates/react/Tree/Tree.tsx.hbs +39 -15
  207. package/dist/templates/react/TreeItem/TreeItem.css.hbs +1 -22
  208. package/dist/templates/react/TreeItem/TreeItem.test.tsx.hbs +5 -9
  209. package/dist/templates/react/TreeItem/TreeItem.tsx.hbs +106 -50
  210. package/dist/templates/react/ZoomableFrame/ZoomableFrame.css.hbs +0 -10
  211. package/dist/templates/react/ZoomableFrame/ZoomableFrame.test.tsx.hbs +3 -7
  212. package/dist/templates/react/ZoomableFrame/ZoomableFrame.tsx.hbs +83 -41
  213. package/dist/templates/vue/AnimatedImage/AnimatedImage.css.hbs +11 -0
  214. package/dist/templates/vue/AnimatedImage/AnimatedImage.js.vue.hbs +49 -0
  215. package/dist/templates/vue/AnimatedImage/AnimatedImage.test.js.hbs +10 -0
  216. package/dist/templates/vue/AnimatedImage/AnimatedImage.test.ts.hbs +10 -0
  217. package/dist/templates/vue/AnimatedImage/AnimatedImage.vue.hbs +54 -0
  218. package/dist/templates/vue/Animation/Animation.css.hbs +11 -0
  219. package/dist/templates/vue/Animation/Animation.js.vue.hbs +60 -0
  220. package/dist/templates/vue/Animation/Animation.test.js.hbs +10 -0
  221. package/dist/templates/vue/Animation/Animation.test.ts.hbs +10 -0
  222. package/dist/templates/vue/Animation/Animation.vue.hbs +66 -0
  223. package/dist/templates/vue/Avatar/Avatar.css.hbs +11 -0
  224. package/dist/templates/vue/Avatar/Avatar.js.vue.hbs +47 -0
  225. package/dist/templates/vue/Avatar/Avatar.test.js.hbs +10 -0
  226. package/dist/templates/vue/Avatar/Avatar.test.ts.hbs +10 -0
  227. package/dist/templates/vue/Avatar/Avatar.vue.hbs +51 -0
  228. package/dist/templates/vue/Badge/Badge.css.hbs +11 -0
  229. package/dist/templates/vue/Badge/Badge.js.vue.hbs +44 -0
  230. package/dist/templates/vue/Badge/Badge.test.js.hbs +10 -0
  231. package/dist/templates/vue/Badge/Badge.test.ts.hbs +10 -0
  232. package/dist/templates/vue/Badge/Badge.vue.hbs +48 -0
  233. package/dist/templates/vue/Breadcrumb/Breadcrumb.css.hbs +11 -0
  234. package/dist/templates/vue/Breadcrumb/Breadcrumb.js.vue.hbs +42 -0
  235. package/dist/templates/vue/Breadcrumb/Breadcrumb.test.js.hbs +10 -0
  236. package/dist/templates/vue/Breadcrumb/Breadcrumb.test.ts.hbs +10 -0
  237. package/dist/templates/vue/Breadcrumb/Breadcrumb.vue.hbs +46 -0
  238. package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.css.hbs +11 -0
  239. package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.js.vue.hbs +46 -0
  240. package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.test.js.hbs +10 -0
  241. package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.test.ts.hbs +10 -0
  242. package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.vue.hbs +50 -0
  243. package/dist/templates/vue/Button/Button.css.hbs +20 -0
  244. package/dist/templates/vue/Button/Button.js.vue.hbs +63 -0
  245. package/dist/templates/vue/Button/Button.test.js.hbs +10 -0
  246. package/dist/templates/vue/Button/Button.test.ts.hbs +10 -0
  247. package/dist/templates/vue/Button/Button.vue.hbs +69 -0
  248. package/dist/templates/vue/ButtonGroup/ButtonGroup.css.hbs +11 -0
  249. package/dist/templates/vue/ButtonGroup/ButtonGroup.js.vue.hbs +42 -0
  250. package/dist/templates/vue/ButtonGroup/ButtonGroup.test.js.hbs +10 -0
  251. package/dist/templates/vue/ButtonGroup/ButtonGroup.test.ts.hbs +10 -0
  252. package/dist/templates/vue/ButtonGroup/ButtonGroup.vue.hbs +46 -0
  253. package/dist/templates/vue/Callout/Callout.css.hbs +11 -0
  254. package/dist/templates/vue/Callout/Callout.js.vue.hbs +44 -0
  255. package/dist/templates/vue/Callout/Callout.test.js.hbs +10 -0
  256. package/dist/templates/vue/Callout/Callout.test.ts.hbs +10 -0
  257. package/dist/templates/vue/Callout/Callout.vue.hbs +48 -0
  258. package/dist/templates/vue/Card/Card.css.hbs +17 -0
  259. package/dist/templates/vue/Card/Card.js.vue.hbs +51 -0
  260. package/dist/templates/vue/Card/Card.test.js.hbs +10 -0
  261. package/dist/templates/vue/Card/Card.test.ts.hbs +10 -0
  262. package/dist/templates/vue/Card/Card.vue.hbs +55 -0
  263. package/dist/templates/vue/Carousel/Carousel.css.hbs +11 -0
  264. package/dist/templates/vue/Carousel/Carousel.js.vue.hbs +55 -0
  265. package/dist/templates/vue/Carousel/Carousel.test.js.hbs +10 -0
  266. package/dist/templates/vue/Carousel/Carousel.test.ts.hbs +10 -0
  267. package/dist/templates/vue/Carousel/Carousel.vue.hbs +59 -0
  268. package/dist/templates/vue/CarouselItem/CarouselItem.css.hbs +11 -0
  269. package/dist/templates/vue/CarouselItem/CarouselItem.js.vue.hbs +41 -0
  270. package/dist/templates/vue/CarouselItem/CarouselItem.test.js.hbs +10 -0
  271. package/dist/templates/vue/CarouselItem/CarouselItem.test.ts.hbs +10 -0
  272. package/dist/templates/vue/CarouselItem/CarouselItem.vue.hbs +45 -0
  273. package/dist/templates/vue/Checkbox/Checkbox.css.hbs +11 -0
  274. package/dist/templates/vue/Checkbox/Checkbox.js.vue.hbs +65 -0
  275. package/dist/templates/vue/Checkbox/Checkbox.test.js.hbs +10 -0
  276. package/dist/templates/vue/Checkbox/Checkbox.test.ts.hbs +10 -0
  277. package/dist/templates/vue/Checkbox/Checkbox.vue.hbs +73 -0
  278. package/dist/templates/vue/ColorPicker/ColorPicker.css.hbs +11 -0
  279. package/dist/templates/vue/ColorPicker/ColorPicker.js.vue.hbs +87 -0
  280. package/dist/templates/vue/ColorPicker/ColorPicker.test.js.hbs +10 -0
  281. package/dist/templates/vue/ColorPicker/ColorPicker.test.ts.hbs +10 -0
  282. package/dist/templates/vue/ColorPicker/ColorPicker.vue.hbs +99 -0
  283. package/dist/templates/vue/Combobox/Combobox.css.hbs +11 -0
  284. package/dist/templates/vue/Combobox/Combobox.js.vue.hbs +94 -0
  285. package/dist/templates/vue/Combobox/Combobox.test.js.hbs +10 -0
  286. package/dist/templates/vue/Combobox/Combobox.test.ts.hbs +10 -0
  287. package/dist/templates/vue/Combobox/Combobox.vue.hbs +107 -0
  288. package/dist/templates/vue/Comparison/Comparison.css.hbs +11 -0
  289. package/dist/templates/vue/Comparison/Comparison.js.vue.hbs +45 -0
  290. package/dist/templates/vue/Comparison/Comparison.test.js.hbs +10 -0
  291. package/dist/templates/vue/Comparison/Comparison.test.ts.hbs +10 -0
  292. package/dist/templates/vue/Comparison/Comparison.vue.hbs +49 -0
  293. package/dist/templates/vue/CopyButton/CopyButton.css.hbs +11 -0
  294. package/dist/templates/vue/CopyButton/CopyButton.js.vue.hbs +55 -0
  295. package/dist/templates/vue/CopyButton/CopyButton.test.js.hbs +10 -0
  296. package/dist/templates/vue/CopyButton/CopyButton.test.ts.hbs +10 -0
  297. package/dist/templates/vue/CopyButton/CopyButton.vue.hbs +60 -0
  298. package/dist/templates/vue/Details/Details.css.hbs +11 -0
  299. package/dist/templates/vue/Details/Details.js.vue.hbs +61 -0
  300. package/dist/templates/vue/Details/Details.test.js.hbs +10 -0
  301. package/dist/templates/vue/Details/Details.test.ts.hbs +10 -0
  302. package/dist/templates/vue/Details/Details.vue.hbs +68 -0
  303. package/dist/templates/vue/Dialog/Dialog.css.hbs +23 -0
  304. package/dist/templates/vue/Dialog/Dialog.js.vue.hbs +57 -0
  305. package/dist/templates/vue/Dialog/Dialog.test.js.hbs +10 -0
  306. package/dist/templates/vue/Dialog/Dialog.test.ts.hbs +10 -0
  307. package/dist/templates/vue/Dialog/Dialog.vue.hbs +64 -0
  308. package/dist/templates/vue/Divider/Divider.css.hbs +11 -0
  309. package/dist/templates/vue/Divider/Divider.js.vue.hbs +41 -0
  310. package/dist/templates/vue/Divider/Divider.test.js.hbs +10 -0
  311. package/dist/templates/vue/Divider/Divider.test.ts.hbs +10 -0
  312. package/dist/templates/vue/Divider/Divider.vue.hbs +45 -0
  313. package/dist/templates/vue/Drawer/Drawer.css.hbs +11 -0
  314. package/dist/templates/vue/Drawer/Drawer.js.vue.hbs +58 -0
  315. package/dist/templates/vue/Drawer/Drawer.test.js.hbs +10 -0
  316. package/dist/templates/vue/Drawer/Drawer.test.ts.hbs +10 -0
  317. package/dist/templates/vue/Drawer/Drawer.vue.hbs +65 -0
  318. package/dist/templates/vue/Dropdown/Dropdown.css.hbs +11 -0
  319. package/dist/templates/vue/Dropdown/Dropdown.js.vue.hbs +61 -0
  320. package/dist/templates/vue/Dropdown/Dropdown.test.js.hbs +10 -0
  321. package/dist/templates/vue/Dropdown/Dropdown.test.ts.hbs +10 -0
  322. package/dist/templates/vue/Dropdown/Dropdown.vue.hbs +69 -0
  323. package/dist/templates/vue/DropdownItem/DropdownItem.css.hbs +11 -0
  324. package/dist/templates/vue/DropdownItem/DropdownItem.js.vue.hbs +54 -0
  325. package/dist/templates/vue/DropdownItem/DropdownItem.test.js.hbs +10 -0
  326. package/dist/templates/vue/DropdownItem/DropdownItem.test.ts.hbs +10 -0
  327. package/dist/templates/vue/DropdownItem/DropdownItem.vue.hbs +59 -0
  328. package/dist/templates/vue/FileInput/FileInput.css.hbs +19 -0
  329. package/dist/templates/vue/FileInput/FileInput.js.vue.hbs +69 -0
  330. package/dist/templates/vue/FileInput/FileInput.test.js.hbs +10 -0
  331. package/dist/templates/vue/FileInput/FileInput.test.ts.hbs +10 -0
  332. package/dist/templates/vue/FileInput/FileInput.vue.hbs +77 -0
  333. package/dist/templates/vue/FormatBytes/FormatBytes.css.hbs +11 -0
  334. package/dist/templates/vue/FormatBytes/FormatBytes.js.vue.hbs +44 -0
  335. package/dist/templates/vue/FormatBytes/FormatBytes.test.js.hbs +10 -0
  336. package/dist/templates/vue/FormatBytes/FormatBytes.test.ts.hbs +10 -0
  337. package/dist/templates/vue/FormatBytes/FormatBytes.vue.hbs +48 -0
  338. package/dist/templates/vue/FormatDate/FormatDate.css.hbs +11 -0
  339. package/dist/templates/vue/FormatDate/FormatDate.js.vue.hbs +53 -0
  340. package/dist/templates/vue/FormatDate/FormatDate.test.js.hbs +10 -0
  341. package/dist/templates/vue/FormatDate/FormatDate.test.ts.hbs +10 -0
  342. package/dist/templates/vue/FormatDate/FormatDate.vue.hbs +57 -0
  343. package/dist/templates/vue/FormatNumber/FormatNumber.css.hbs +11 -0
  344. package/dist/templates/vue/FormatNumber/FormatNumber.js.vue.hbs +51 -0
  345. package/dist/templates/vue/FormatNumber/FormatNumber.test.js.hbs +10 -0
  346. package/dist/templates/vue/FormatNumber/FormatNumber.test.ts.hbs +10 -0
  347. package/dist/templates/vue/FormatNumber/FormatNumber.vue.hbs +55 -0
  348. package/dist/templates/vue/Icon/Icon.css.hbs +11 -0
  349. package/dist/templates/vue/Icon/Icon.js.vue.hbs +52 -0
  350. package/dist/templates/vue/Icon/Icon.test.js.hbs +10 -0
  351. package/dist/templates/vue/Icon/Icon.test.ts.hbs +10 -0
  352. package/dist/templates/vue/Icon/Icon.vue.hbs +57 -0
  353. package/dist/templates/vue/Include/Include.css.hbs +11 -0
  354. package/dist/templates/vue/Include/Include.js.vue.hbs +47 -0
  355. package/dist/templates/vue/Include/Include.test.js.hbs +10 -0
  356. package/dist/templates/vue/Include/Include.test.ts.hbs +10 -0
  357. package/dist/templates/vue/Include/Include.vue.hbs +52 -0
  358. package/dist/templates/vue/Input/Input.css.hbs +24 -0
  359. package/dist/templates/vue/Input/Input.js.vue.hbs +82 -0
  360. package/dist/templates/vue/Input/Input.test.js.hbs +10 -0
  361. package/dist/templates/vue/Input/Input.test.ts.hbs +10 -0
  362. package/dist/templates/vue/Input/Input.vue.hbs +91 -0
  363. package/dist/templates/vue/IntersectionObserver/IntersectionObserver.css.hbs +11 -0
  364. package/dist/templates/vue/IntersectionObserver/IntersectionObserver.js.vue.hbs +45 -0
  365. package/dist/templates/vue/IntersectionObserver/IntersectionObserver.test.js.hbs +10 -0
  366. package/dist/templates/vue/IntersectionObserver/IntersectionObserver.test.ts.hbs +10 -0
  367. package/dist/templates/vue/IntersectionObserver/IntersectionObserver.vue.hbs +49 -0
  368. package/dist/templates/vue/MutationObserver/MutationObserver.css.hbs +11 -0
  369. package/dist/templates/vue/MutationObserver/MutationObserver.js.vue.hbs +48 -0
  370. package/dist/templates/vue/MutationObserver/MutationObserver.test.js.hbs +10 -0
  371. package/dist/templates/vue/MutationObserver/MutationObserver.test.ts.hbs +10 -0
  372. package/dist/templates/vue/MutationObserver/MutationObserver.vue.hbs +52 -0
  373. package/dist/templates/vue/NumberInput/NumberInput.css.hbs +19 -0
  374. package/dist/templates/vue/NumberInput/NumberInput.js.vue.hbs +76 -0
  375. package/dist/templates/vue/NumberInput/NumberInput.test.js.hbs +10 -0
  376. package/dist/templates/vue/NumberInput/NumberInput.test.ts.hbs +10 -0
  377. package/dist/templates/vue/NumberInput/NumberInput.vue.hbs +84 -0
  378. package/dist/templates/vue/Option/Option.css.hbs +11 -0
  379. package/dist/templates/vue/Option/Option.js.vue.hbs +44 -0
  380. package/dist/templates/vue/Option/Option.test.js.hbs +10 -0
  381. package/dist/templates/vue/Option/Option.test.ts.hbs +10 -0
  382. package/dist/templates/vue/Option/Option.vue.hbs +48 -0
  383. package/dist/templates/vue/Page/Page.css.hbs +11 -0
  384. package/dist/templates/vue/Page/Page.js.vue.hbs +63 -0
  385. package/dist/templates/vue/Page/Page.test.js.hbs +10 -0
  386. package/dist/templates/vue/Page/Page.test.ts.hbs +10 -0
  387. package/dist/templates/vue/Page/Page.vue.hbs +67 -0
  388. package/dist/templates/vue/Popover/Popover.css.hbs +11 -0
  389. package/dist/templates/vue/Popover/Popover.js.vue.hbs +59 -0
  390. package/dist/templates/vue/Popover/Popover.test.js.hbs +10 -0
  391. package/dist/templates/vue/Popover/Popover.test.ts.hbs +10 -0
  392. package/dist/templates/vue/Popover/Popover.vue.hbs +66 -0
  393. package/dist/templates/vue/Popup/Popup.css.hbs +11 -0
  394. package/dist/templates/vue/Popup/Popup.js.vue.hbs +61 -0
  395. package/dist/templates/vue/Popup/Popup.test.js.hbs +10 -0
  396. package/dist/templates/vue/Popup/Popup.test.ts.hbs +10 -0
  397. package/dist/templates/vue/Popup/Popup.vue.hbs +65 -0
  398. package/dist/templates/vue/ProgressBar/ProgressBar.css.hbs +11 -0
  399. package/dist/templates/vue/ProgressBar/ProgressBar.js.vue.hbs +43 -0
  400. package/dist/templates/vue/ProgressBar/ProgressBar.test.js.hbs +10 -0
  401. package/dist/templates/vue/ProgressBar/ProgressBar.test.ts.hbs +10 -0
  402. package/dist/templates/vue/ProgressBar/ProgressBar.vue.hbs +47 -0
  403. package/dist/templates/vue/ProgressRing/ProgressRing.css.hbs +11 -0
  404. package/dist/templates/vue/ProgressRing/ProgressRing.js.vue.hbs +42 -0
  405. package/dist/templates/vue/ProgressRing/ProgressRing.test.js.hbs +10 -0
  406. package/dist/templates/vue/ProgressRing/ProgressRing.test.ts.hbs +10 -0
  407. package/dist/templates/vue/ProgressRing/ProgressRing.vue.hbs +46 -0
  408. package/dist/templates/vue/QrCode/QrCode.css.hbs +11 -0
  409. package/dist/templates/vue/QrCode/QrCode.js.vue.hbs +47 -0
  410. package/dist/templates/vue/QrCode/QrCode.test.js.hbs +10 -0
  411. package/dist/templates/vue/QrCode/QrCode.test.ts.hbs +10 -0
  412. package/dist/templates/vue/QrCode/QrCode.vue.hbs +51 -0
  413. package/dist/templates/vue/Radio/Radio.css.hbs +11 -0
  414. package/dist/templates/vue/Radio/Radio.js.vue.hbs +47 -0
  415. package/dist/templates/vue/Radio/Radio.test.js.hbs +10 -0
  416. package/dist/templates/vue/Radio/Radio.test.ts.hbs +10 -0
  417. package/dist/templates/vue/Radio/Radio.vue.hbs +52 -0
  418. package/dist/templates/vue/RadioGroup/RadioGroup.css.hbs +11 -0
  419. package/dist/templates/vue/RadioGroup/RadioGroup.js.vue.hbs +56 -0
  420. package/dist/templates/vue/RadioGroup/RadioGroup.test.js.hbs +10 -0
  421. package/dist/templates/vue/RadioGroup/RadioGroup.test.ts.hbs +10 -0
  422. package/dist/templates/vue/RadioGroup/RadioGroup.vue.hbs +62 -0
  423. package/dist/templates/vue/Rating/Rating.css.hbs +11 -0
  424. package/dist/templates/vue/Rating/Rating.js.vue.hbs +52 -0
  425. package/dist/templates/vue/Rating/Rating.test.js.hbs +10 -0
  426. package/dist/templates/vue/Rating/Rating.test.ts.hbs +10 -0
  427. package/dist/templates/vue/Rating/Rating.vue.hbs +57 -0
  428. package/dist/templates/vue/RelativeTime/RelativeTime.css.hbs +11 -0
  429. package/dist/templates/vue/RelativeTime/RelativeTime.js.vue.hbs +45 -0
  430. package/dist/templates/vue/RelativeTime/RelativeTime.test.js.hbs +10 -0
  431. package/dist/templates/vue/RelativeTime/RelativeTime.test.ts.hbs +10 -0
  432. package/dist/templates/vue/RelativeTime/RelativeTime.vue.hbs +49 -0
  433. package/dist/templates/vue/ResizeObserver/ResizeObserver.css.hbs +11 -0
  434. package/dist/templates/vue/ResizeObserver/ResizeObserver.js.vue.hbs +42 -0
  435. package/dist/templates/vue/ResizeObserver/ResizeObserver.test.js.hbs +10 -0
  436. package/dist/templates/vue/ResizeObserver/ResizeObserver.test.ts.hbs +10 -0
  437. package/dist/templates/vue/ResizeObserver/ResizeObserver.vue.hbs +46 -0
  438. package/dist/templates/vue/Scroller/Scroller.css.hbs +11 -0
  439. package/dist/templates/vue/Scroller/Scroller.js.vue.hbs +42 -0
  440. package/dist/templates/vue/Scroller/Scroller.test.js.hbs +10 -0
  441. package/dist/templates/vue/Scroller/Scroller.test.ts.hbs +10 -0
  442. package/dist/templates/vue/Scroller/Scroller.vue.hbs +46 -0
  443. package/dist/templates/vue/Select/Select.css.hbs +11 -0
  444. package/dist/templates/vue/Select/Select.js.vue.hbs +94 -0
  445. package/dist/templates/vue/Select/Select.test.js.hbs +10 -0
  446. package/dist/templates/vue/Select/Select.test.ts.hbs +10 -0
  447. package/dist/templates/vue/Select/Select.vue.hbs +107 -0
  448. package/dist/templates/vue/Skeleton/Skeleton.css.hbs +11 -0
  449. package/dist/templates/vue/Skeleton/Skeleton.js.vue.hbs +41 -0
  450. package/dist/templates/vue/Skeleton/Skeleton.test.js.hbs +10 -0
  451. package/dist/templates/vue/Skeleton/Skeleton.test.ts.hbs +10 -0
  452. package/dist/templates/vue/Skeleton/Skeleton.vue.hbs +45 -0
  453. package/dist/templates/vue/Slider/Slider.css.hbs +11 -0
  454. package/dist/templates/vue/Slider/Slider.js.vue.hbs +69 -0
  455. package/dist/templates/vue/Slider/Slider.test.js.hbs +10 -0
  456. package/dist/templates/vue/Slider/Slider.test.ts.hbs +10 -0
  457. package/dist/templates/vue/Slider/Slider.vue.hbs +77 -0
  458. package/dist/templates/vue/Sparkline/Sparkline.css.hbs +14 -0
  459. package/dist/templates/vue/Sparkline/Sparkline.js.vue.hbs +48 -0
  460. package/dist/templates/vue/Sparkline/Sparkline.test.js.hbs +10 -0
  461. package/dist/templates/vue/Sparkline/Sparkline.test.ts.hbs +10 -0
  462. package/dist/templates/vue/Sparkline/Sparkline.vue.hbs +52 -0
  463. package/dist/templates/vue/Spinner/Spinner.css.hbs +11 -0
  464. package/dist/templates/vue/Spinner/Spinner.js.vue.hbs +41 -0
  465. package/dist/templates/vue/Spinner/Spinner.test.js.hbs +10 -0
  466. package/dist/templates/vue/Spinner/Spinner.test.ts.hbs +10 -0
  467. package/dist/templates/vue/Spinner/Spinner.vue.hbs +45 -0
  468. package/dist/templates/vue/SplitPanel/SplitPanel.css.hbs +11 -0
  469. package/dist/templates/vue/SplitPanel/SplitPanel.js.vue.hbs +51 -0
  470. package/dist/templates/vue/SplitPanel/SplitPanel.test.js.hbs +10 -0
  471. package/dist/templates/vue/SplitPanel/SplitPanel.test.ts.hbs +10 -0
  472. package/dist/templates/vue/SplitPanel/SplitPanel.vue.hbs +55 -0
  473. package/dist/templates/vue/Switch/Switch.css.hbs +11 -0
  474. package/dist/templates/vue/Switch/Switch.js.vue.hbs +64 -0
  475. package/dist/templates/vue/Switch/Switch.test.js.hbs +10 -0
  476. package/dist/templates/vue/Switch/Switch.test.ts.hbs +10 -0
  477. package/dist/templates/vue/Switch/Switch.vue.hbs +72 -0
  478. package/dist/templates/vue/Tab/Tab.css.hbs +11 -0
  479. package/dist/templates/vue/Tab/Tab.js.vue.hbs +42 -0
  480. package/dist/templates/vue/Tab/Tab.test.js.hbs +10 -0
  481. package/dist/templates/vue/Tab/Tab.test.ts.hbs +10 -0
  482. package/dist/templates/vue/Tab/Tab.vue.hbs +46 -0
  483. package/dist/templates/vue/TabGroup/TabGroup.css.hbs +11 -0
  484. package/dist/templates/vue/TabGroup/TabGroup.js.vue.hbs +48 -0
  485. package/dist/templates/vue/TabGroup/TabGroup.test.js.hbs +10 -0
  486. package/dist/templates/vue/TabGroup/TabGroup.test.ts.hbs +10 -0
  487. package/dist/templates/vue/TabGroup/TabGroup.vue.hbs +53 -0
  488. package/dist/templates/vue/TabPanel/TabPanel.css.hbs +11 -0
  489. package/dist/templates/vue/TabPanel/TabPanel.js.vue.hbs +42 -0
  490. package/dist/templates/vue/TabPanel/TabPanel.test.js.hbs +10 -0
  491. package/dist/templates/vue/TabPanel/TabPanel.test.ts.hbs +10 -0
  492. package/dist/templates/vue/TabPanel/TabPanel.vue.hbs +46 -0
  493. package/dist/templates/vue/Tag/Tag.css.hbs +11 -0
  494. package/dist/templates/vue/Tag/Tag.js.vue.hbs +46 -0
  495. package/dist/templates/vue/Tag/Tag.test.js.hbs +10 -0
  496. package/dist/templates/vue/Tag/Tag.test.ts.hbs +10 -0
  497. package/dist/templates/vue/Tag/Tag.vue.hbs +50 -0
  498. package/dist/templates/vue/Textarea/Textarea.css.hbs +11 -0
  499. package/dist/templates/vue/Textarea/Textarea.js.vue.hbs +76 -0
  500. package/dist/templates/vue/Textarea/Textarea.test.js.hbs +10 -0
  501. package/dist/templates/vue/Textarea/Textarea.test.ts.hbs +10 -0
  502. package/dist/templates/vue/Textarea/Textarea.vue.hbs +84 -0
  503. package/dist/templates/vue/Tooltip/Tooltip.css.hbs +11 -0
  504. package/dist/templates/vue/Tooltip/Tooltip.js.vue.hbs +62 -0
  505. package/dist/templates/vue/Tooltip/Tooltip.test.js.hbs +10 -0
  506. package/dist/templates/vue/Tooltip/Tooltip.test.ts.hbs +10 -0
  507. package/dist/templates/vue/Tooltip/Tooltip.vue.hbs +69 -0
  508. package/dist/templates/vue/Tree/Tree.css.hbs +11 -0
  509. package/dist/templates/vue/Tree/Tree.js.vue.hbs +44 -0
  510. package/dist/templates/vue/Tree/Tree.test.js.hbs +10 -0
  511. package/dist/templates/vue/Tree/Tree.test.ts.hbs +10 -0
  512. package/dist/templates/vue/Tree/Tree.vue.hbs +48 -0
  513. package/dist/templates/vue/TreeItem/TreeItem.css.hbs +11 -0
  514. package/dist/templates/vue/TreeItem/TreeItem.js.vue.hbs +63 -0
  515. package/dist/templates/vue/TreeItem/TreeItem.test.js.hbs +10 -0
  516. package/dist/templates/vue/TreeItem/TreeItem.test.ts.hbs +10 -0
  517. package/dist/templates/vue/TreeItem/TreeItem.vue.hbs +72 -0
  518. package/dist/templates/vue/ZoomableFrame/ZoomableFrame.css.hbs +11 -0
  519. package/dist/templates/vue/ZoomableFrame/ZoomableFrame.js.vue.hbs +58 -0
  520. package/dist/templates/vue/ZoomableFrame/ZoomableFrame.test.js.hbs +10 -0
  521. package/dist/templates/vue/ZoomableFrame/ZoomableFrame.test.ts.hbs +10 -0
  522. package/dist/templates/vue/ZoomableFrame/ZoomableFrame.vue.hbs +63 -0
  523. package/dist/tier-2ZEZT6E3.js +12 -0
  524. package/dist/tier-GFXZQZUI.js +12 -0
  525. package/dist/tier-KTTMXAXP.js +12 -0
  526. package/dist/tier-QW5YWE4V.js +12 -0
  527. package/package.json +4 -1
  528. package/skills/kigumi-react/SKILL.md +1 -1
  529. package/skills/kigumi-react/references/components/file-input.md +52 -0
  530. package/skills/kigumi-react/references/components/number-input.md +54 -0
  531. package/skills/kigumi-react/references/components/sparkline.md +50 -0
  532. package/skills/kigumi-react/references/transformation-rules.md +3 -0
  533. package/templates/react/AnimatedImage/AnimatedImage.css.hbs +1 -9
  534. package/templates/react/AnimatedImage/AnimatedImage.test.tsx.hbs +3 -7
  535. package/templates/react/AnimatedImage/AnimatedImage.tsx.hbs +50 -27
  536. package/templates/react/Animation/Animation.css.hbs +0 -7
  537. package/templates/react/Animation/Animation.test.tsx.hbs +5 -9
  538. package/templates/react/Animation/Animation.tsx.hbs +51 -32
  539. package/templates/react/Avatar/Avatar.css.hbs +1 -10
  540. package/templates/react/Avatar/Avatar.test.tsx.hbs +2 -6
  541. package/templates/react/Avatar/Avatar.tsx.hbs +41 -24
  542. package/templates/react/Badge/Badge.css.hbs +1 -8
  543. package/templates/react/Badge/Badge.test.tsx.hbs +5 -9
  544. package/templates/react/Badge/Badge.tsx.hbs +34 -18
  545. package/templates/react/Breadcrumb/Breadcrumb.css.hbs +0 -7
  546. package/templates/react/Breadcrumb/Breadcrumb.test.tsx.hbs +5 -9
  547. package/templates/react/Breadcrumb/Breadcrumb.tsx.hbs +31 -23
  548. package/templates/react/BreadcrumbItem/BreadcrumbItem.css.hbs +0 -10
  549. package/templates/react/BreadcrumbItem/BreadcrumbItem.test.tsx.hbs +5 -9
  550. package/templates/react/BreadcrumbItem/BreadcrumbItem.tsx.hbs +33 -28
  551. package/templates/react/Button/Button.css.hbs +8 -11
  552. package/templates/react/Button/Button.test.tsx.hbs +5 -9
  553. package/templates/react/Button/Button.tsx.hbs +57 -33
  554. package/templates/react/ButtonGroup/ButtonGroup.css.hbs +2 -6
  555. package/templates/react/ButtonGroup/ButtonGroup.test.tsx.hbs +5 -27
  556. package/templates/react/ButtonGroup/ButtonGroup.tsx.hbs +32 -22
  557. package/templates/react/Callout/Callout.css.hbs +9 -15
  558. package/templates/react/Callout/Callout.test.tsx.hbs +4 -21
  559. package/templates/react/Callout/Callout.tsx.hbs +41 -10
  560. package/templates/react/Card/Card.css.hbs +6 -10
  561. package/templates/react/Card/Card.test.tsx.hbs +5 -9
  562. package/templates/react/Card/Card.tsx.hbs +37 -9
  563. package/templates/react/Carousel/Carousel.css.hbs +1 -18
  564. package/templates/react/Carousel/Carousel.test.tsx.hbs +5 -9
  565. package/templates/react/Carousel/Carousel.tsx.hbs +50 -27
  566. package/templates/react/CarouselItem/CarouselItem.css.hbs +1 -8
  567. package/templates/react/CarouselItem/CarouselItem.test.tsx.hbs +5 -9
  568. package/templates/react/CarouselItem/CarouselItem.tsx.hbs +34 -12
  569. package/templates/react/Checkbox/Checkbox.css.hbs +1 -14
  570. package/templates/react/Checkbox/Checkbox.test.tsx.hbs +5 -9
  571. package/templates/react/Checkbox/Checkbox.tsx.hbs +82 -31
  572. package/templates/react/ColorPicker/ColorPicker.css.hbs +1 -27
  573. package/templates/react/ColorPicker/ColorPicker.test.tsx.hbs +2 -6
  574. package/templates/react/ColorPicker/ColorPicker.tsx.hbs +157 -67
  575. package/templates/react/Combobox/Combobox.css.hbs +1 -22
  576. package/templates/react/Combobox/Combobox.test.tsx.hbs +5 -9
  577. package/templates/react/Combobox/Combobox.tsx.hbs +132 -44
  578. package/templates/react/Comparison/Comparison.css.hbs +1 -13
  579. package/templates/react/Comparison/Comparison.test.tsx.hbs +2 -6
  580. package/templates/react/Comparison/Comparison.tsx.hbs +53 -9
  581. package/templates/react/CopyButton/CopyButton.css.hbs +0 -14
  582. package/templates/react/CopyButton/CopyButton.test.tsx.hbs +3 -7
  583. package/templates/react/CopyButton/CopyButton.tsx.hbs +57 -22
  584. package/templates/react/Details/Details.css.hbs +1 -14
  585. package/templates/react/Details/Details.test.tsx.hbs +5 -9
  586. package/templates/react/Details/Details.tsx.hbs +59 -30
  587. package/templates/react/Dialog/Dialog.css.hbs +9 -14
  588. package/templates/react/Dialog/Dialog.test.tsx.hbs +5 -9
  589. package/templates/react/Dialog/Dialog.tsx.hbs +42 -95
  590. package/templates/react/Divider/Divider.css.hbs +1 -11
  591. package/templates/react/Divider/Divider.test.tsx.hbs +2 -6
  592. package/templates/react/Divider/Divider.tsx.hbs +40 -7
  593. package/templates/react/Drawer/Drawer.css.hbs +1 -18
  594. package/templates/react/Drawer/Drawer.test.tsx.hbs +5 -9
  595. package/templates/react/Drawer/Drawer.tsx.hbs +60 -44
  596. package/templates/react/Dropdown/Dropdown.css.hbs +1 -10
  597. package/templates/react/Dropdown/Dropdown.test.tsx.hbs +5 -9
  598. package/templates/react/Dropdown/Dropdown.tsx.hbs +78 -52
  599. package/templates/react/DropdownItem/DropdownItem.css.hbs +0 -12
  600. package/templates/react/DropdownItem/DropdownItem.test.tsx.hbs +5 -9
  601. package/templates/react/DropdownItem/DropdownItem.tsx.hbs +78 -15
  602. package/templates/react/FileInput/FileInput.css.hbs +19 -0
  603. package/templates/react/FileInput/FileInput.jsx.hbs +107 -0
  604. package/templates/react/FileInput/FileInput.test.jsx.hbs +15 -0
  605. package/templates/react/FileInput/FileInput.test.tsx.hbs +10 -0
  606. package/templates/react/FileInput/FileInput.tsx.hbs +161 -0
  607. package/templates/react/FormatBytes/FormatBytes.css.hbs +0 -7
  608. package/templates/react/FormatBytes/FormatBytes.test.tsx.hbs +3 -7
  609. package/templates/react/FormatBytes/FormatBytes.tsx.hbs +46 -7
  610. package/templates/react/FormatDate/FormatDate.css.hbs +0 -7
  611. package/templates/react/FormatDate/FormatDate.test.tsx.hbs +2 -6
  612. package/templates/react/FormatDate/FormatDate.tsx.hbs +66 -18
  613. package/templates/react/FormatNumber/FormatNumber.css.hbs +0 -7
  614. package/templates/react/FormatNumber/FormatNumber.test.tsx.hbs +3 -7
  615. package/templates/react/FormatNumber/FormatNumber.tsx.hbs +56 -10
  616. package/templates/react/Icon/Icon.css.hbs +1 -12
  617. package/templates/react/Icon/Icon.test.tsx.hbs +3 -7
  618. package/templates/react/Icon/Icon.tsx.hbs +52 -39
  619. package/templates/react/Include/Include.css.hbs +0 -7
  620. package/templates/react/Include/Include.test.tsx.hbs +3 -7
  621. package/templates/react/Include/Include.tsx.hbs +62 -24
  622. package/templates/react/Input/Input.css.hbs +11 -12
  623. package/templates/react/Input/Input.test.tsx.hbs +2 -6
  624. package/templates/react/Input/Input.tsx.hbs +114 -41
  625. package/templates/react/IntersectionObserver/IntersectionObserver.css.hbs +0 -7
  626. package/templates/react/IntersectionObserver/IntersectionObserver.test.tsx.hbs +5 -9
  627. package/templates/react/IntersectionObserver/IntersectionObserver.tsx.hbs +56 -26
  628. package/templates/react/MutationObserver/MutationObserver.css.hbs +0 -7
  629. package/templates/react/MutationObserver/MutationObserver.test.tsx.hbs +5 -9
  630. package/templates/react/MutationObserver/MutationObserver.tsx.hbs +61 -22
  631. package/templates/react/NumberInput/NumberInput.css.hbs +19 -0
  632. package/templates/react/NumberInput/NumberInput.jsx.hbs +127 -0
  633. package/templates/react/NumberInput/NumberInput.test.jsx.hbs +15 -0
  634. package/templates/react/NumberInput/NumberInput.test.tsx.hbs +10 -0
  635. package/templates/react/NumberInput/NumberInput.tsx.hbs +194 -0
  636. package/templates/react/Option/Option.css.hbs +0 -10
  637. package/templates/react/Option/Option.test.tsx.hbs +5 -9
  638. package/templates/react/Option/Option.tsx.hbs +38 -5
  639. package/templates/react/Page/Page.css.hbs +11 -79
  640. package/templates/react/Page/Page.test.tsx.hbs +1 -48
  641. package/templates/react/Page/Page.tsx.hbs +46 -58
  642. package/templates/react/Popover/Popover.css.hbs +1 -15
  643. package/templates/react/Popover/Popover.test.tsx.hbs +5 -9
  644. package/templates/react/Popover/Popover.tsx.hbs +88 -46
  645. package/templates/react/Popup/Popup.css.hbs +1 -15
  646. package/templates/react/Popup/Popup.test.tsx.hbs +5 -9
  647. package/templates/react/Popup/Popup.tsx.hbs +81 -24
  648. package/templates/react/ProgressBar/ProgressBar.css.hbs +1 -12
  649. package/templates/react/ProgressBar/ProgressBar.test.tsx.hbs +3 -7
  650. package/templates/react/ProgressBar/ProgressBar.tsx.hbs +40 -6
  651. package/templates/react/ProgressRing/ProgressRing.css.hbs +1 -16
  652. package/templates/react/ProgressRing/ProgressRing.test.tsx.hbs +3 -7
  653. package/templates/react/ProgressRing/ProgressRing.tsx.hbs +38 -5
  654. package/templates/react/QrCode/QrCode.css.hbs +1 -8
  655. package/templates/react/QrCode/QrCode.test.tsx.hbs +3 -7
  656. package/templates/react/QrCode/QrCode.tsx.hbs +54 -14
  657. package/templates/react/Radio/Radio.css.hbs +1 -11
  658. package/templates/react/Radio/Radio.test.tsx.hbs +5 -9
  659. package/templates/react/Radio/Radio.tsx.hbs +69 -9
  660. package/templates/react/RadioGroup/RadioGroup.css.hbs +0 -11
  661. package/templates/react/RadioGroup/RadioGroup.test.tsx.hbs +5 -9
  662. package/templates/react/RadioGroup/RadioGroup.tsx.hbs +74 -31
  663. package/templates/react/Rating/Rating.css.hbs +1 -10
  664. package/templates/react/Rating/Rating.test.tsx.hbs +2 -6
  665. package/templates/react/Rating/Rating.tsx.hbs +67 -23
  666. package/templates/react/RelativeTime/RelativeTime.css.hbs +0 -7
  667. package/templates/react/RelativeTime/RelativeTime.test.tsx.hbs +2 -6
  668. package/templates/react/RelativeTime/RelativeTime.tsx.hbs +50 -10
  669. package/templates/react/ResizeObserver/ResizeObserver.css.hbs +0 -7
  670. package/templates/react/ResizeObserver/ResizeObserver.test.tsx.hbs +5 -9
  671. package/templates/react/ResizeObserver/ResizeObserver.tsx.hbs +48 -17
  672. package/templates/react/Scroller/Scroller.css.hbs +1 -9
  673. package/templates/react/Scroller/Scroller.test.tsx.hbs +5 -9
  674. package/templates/react/Scroller/Scroller.tsx.hbs +40 -9
  675. package/templates/react/Select/Select.css.hbs +1 -22
  676. package/templates/react/Select/Select.test.tsx.hbs +5 -9
  677. package/templates/react/Select/Select.tsx.hbs +174 -72
  678. package/templates/react/Skeleton/Skeleton.css.hbs +1 -9
  679. package/templates/react/Skeleton/Skeleton.test.tsx.hbs +2 -6
  680. package/templates/react/Skeleton/Skeleton.tsx.hbs +40 -6
  681. package/templates/react/Slider/Slider.css.hbs +1 -16
  682. package/templates/react/Slider/Slider.test.tsx.hbs +2 -6
  683. package/templates/react/Slider/Slider.tsx.hbs +117 -39
  684. package/templates/react/Sparkline/Sparkline.css.hbs +14 -0
  685. package/templates/react/Sparkline/Sparkline.jsx.hbs +64 -0
  686. package/templates/react/Sparkline/Sparkline.test.jsx.hbs +15 -0
  687. package/templates/react/Sparkline/Sparkline.test.tsx.hbs +10 -0
  688. package/templates/react/Sparkline/Sparkline.tsx.hbs +78 -0
  689. package/templates/react/Spinner/Spinner.css.hbs +1 -11
  690. package/templates/react/Spinner/Spinner.test.tsx.hbs +2 -6
  691. package/templates/react/Spinner/Spinner.tsx.hbs +41 -6
  692. package/templates/react/SplitPanel/SplitPanel.css.hbs +1 -14
  693. package/templates/react/SplitPanel/SplitPanel.test.tsx.hbs +5 -9
  694. package/templates/react/SplitPanel/SplitPanel.tsx.hbs +63 -24
  695. package/templates/react/Switch/Switch.css.hbs +1 -14
  696. package/templates/react/Switch/Switch.test.tsx.hbs +5 -9
  697. package/templates/react/Switch/Switch.tsx.hbs +105 -27
  698. package/templates/react/Tab/Tab.css.hbs +0 -7
  699. package/templates/react/Tab/Tab.test.tsx.hbs +5 -9
  700. package/templates/react/Tab/Tab.tsx.hbs +37 -4
  701. package/templates/react/TabGroup/TabGroup.css.hbs +1 -17
  702. package/templates/react/TabGroup/TabGroup.test.tsx.hbs +5 -9
  703. package/templates/react/TabGroup/TabGroup.tsx.hbs +62 -28
  704. package/templates/react/TabPanel/TabPanel.css.hbs +1 -8
  705. package/templates/react/TabPanel/TabPanel.test.tsx.hbs +5 -9
  706. package/templates/react/TabPanel/TabPanel.tsx.hbs +38 -5
  707. package/templates/react/Tag/Tag.css.hbs +0 -10
  708. package/templates/react/Tag/Tag.test.tsx.hbs +5 -9
  709. package/templates/react/Tag/Tag.tsx.hbs +48 -20
  710. package/templates/react/Textarea/Textarea.css.hbs +0 -11
  711. package/templates/react/Textarea/Textarea.test.tsx.hbs +2 -6
  712. package/templates/react/Textarea/Textarea.tsx.hbs +156 -58
  713. package/templates/react/Tooltip/Tooltip.css.hbs +1 -11
  714. package/templates/react/Tooltip/Tooltip.test.tsx.hbs +5 -9
  715. package/templates/react/Tooltip/Tooltip.tsx.hbs +102 -54
  716. package/templates/react/Tree/Tree.css.hbs +1 -12
  717. package/templates/react/Tree/Tree.test.tsx.hbs +5 -9
  718. package/templates/react/Tree/Tree.tsx.hbs +39 -15
  719. package/templates/react/TreeItem/TreeItem.css.hbs +1 -22
  720. package/templates/react/TreeItem/TreeItem.test.tsx.hbs +5 -9
  721. package/templates/react/TreeItem/TreeItem.tsx.hbs +106 -50
  722. package/templates/react/ZoomableFrame/ZoomableFrame.css.hbs +0 -10
  723. package/templates/react/ZoomableFrame/ZoomableFrame.test.tsx.hbs +3 -7
  724. package/templates/react/ZoomableFrame/ZoomableFrame.tsx.hbs +83 -41
  725. package/templates/vue/AnimatedImage/AnimatedImage.css.hbs +11 -0
  726. package/templates/vue/AnimatedImage/AnimatedImage.js.vue.hbs +49 -0
  727. package/templates/vue/AnimatedImage/AnimatedImage.test.js.hbs +10 -0
  728. package/templates/vue/AnimatedImage/AnimatedImage.test.ts.hbs +10 -0
  729. package/templates/vue/AnimatedImage/AnimatedImage.vue.hbs +54 -0
  730. package/templates/vue/Animation/Animation.css.hbs +11 -0
  731. package/templates/vue/Animation/Animation.js.vue.hbs +60 -0
  732. package/templates/vue/Animation/Animation.test.js.hbs +10 -0
  733. package/templates/vue/Animation/Animation.test.ts.hbs +10 -0
  734. package/templates/vue/Animation/Animation.vue.hbs +66 -0
  735. package/templates/vue/Avatar/Avatar.css.hbs +11 -0
  736. package/templates/vue/Avatar/Avatar.js.vue.hbs +47 -0
  737. package/templates/vue/Avatar/Avatar.test.js.hbs +10 -0
  738. package/templates/vue/Avatar/Avatar.test.ts.hbs +10 -0
  739. package/templates/vue/Avatar/Avatar.vue.hbs +51 -0
  740. package/templates/vue/Badge/Badge.css.hbs +11 -0
  741. package/templates/vue/Badge/Badge.js.vue.hbs +44 -0
  742. package/templates/vue/Badge/Badge.test.js.hbs +10 -0
  743. package/templates/vue/Badge/Badge.test.ts.hbs +10 -0
  744. package/templates/vue/Badge/Badge.vue.hbs +48 -0
  745. package/templates/vue/Breadcrumb/Breadcrumb.css.hbs +11 -0
  746. package/templates/vue/Breadcrumb/Breadcrumb.js.vue.hbs +42 -0
  747. package/templates/vue/Breadcrumb/Breadcrumb.test.js.hbs +10 -0
  748. package/templates/vue/Breadcrumb/Breadcrumb.test.ts.hbs +10 -0
  749. package/templates/vue/Breadcrumb/Breadcrumb.vue.hbs +46 -0
  750. package/templates/vue/BreadcrumbItem/BreadcrumbItem.css.hbs +11 -0
  751. package/templates/vue/BreadcrumbItem/BreadcrumbItem.js.vue.hbs +46 -0
  752. package/templates/vue/BreadcrumbItem/BreadcrumbItem.test.js.hbs +10 -0
  753. package/templates/vue/BreadcrumbItem/BreadcrumbItem.test.ts.hbs +10 -0
  754. package/templates/vue/BreadcrumbItem/BreadcrumbItem.vue.hbs +50 -0
  755. package/templates/vue/Button/Button.css.hbs +20 -0
  756. package/templates/vue/Button/Button.js.vue.hbs +63 -0
  757. package/templates/vue/Button/Button.test.js.hbs +10 -0
  758. package/templates/vue/Button/Button.test.ts.hbs +10 -0
  759. package/templates/vue/Button/Button.vue.hbs +69 -0
  760. package/templates/vue/ButtonGroup/ButtonGroup.css.hbs +11 -0
  761. package/templates/vue/ButtonGroup/ButtonGroup.js.vue.hbs +42 -0
  762. package/templates/vue/ButtonGroup/ButtonGroup.test.js.hbs +10 -0
  763. package/templates/vue/ButtonGroup/ButtonGroup.test.ts.hbs +10 -0
  764. package/templates/vue/ButtonGroup/ButtonGroup.vue.hbs +46 -0
  765. package/templates/vue/Callout/Callout.css.hbs +11 -0
  766. package/templates/vue/Callout/Callout.js.vue.hbs +44 -0
  767. package/templates/vue/Callout/Callout.test.js.hbs +10 -0
  768. package/templates/vue/Callout/Callout.test.ts.hbs +10 -0
  769. package/templates/vue/Callout/Callout.vue.hbs +48 -0
  770. package/templates/vue/Card/Card.css.hbs +17 -0
  771. package/templates/vue/Card/Card.js.vue.hbs +51 -0
  772. package/templates/vue/Card/Card.test.js.hbs +10 -0
  773. package/templates/vue/Card/Card.test.ts.hbs +10 -0
  774. package/templates/vue/Card/Card.vue.hbs +55 -0
  775. package/templates/vue/Carousel/Carousel.css.hbs +11 -0
  776. package/templates/vue/Carousel/Carousel.js.vue.hbs +55 -0
  777. package/templates/vue/Carousel/Carousel.test.js.hbs +10 -0
  778. package/templates/vue/Carousel/Carousel.test.ts.hbs +10 -0
  779. package/templates/vue/Carousel/Carousel.vue.hbs +59 -0
  780. package/templates/vue/CarouselItem/CarouselItem.css.hbs +11 -0
  781. package/templates/vue/CarouselItem/CarouselItem.js.vue.hbs +41 -0
  782. package/templates/vue/CarouselItem/CarouselItem.test.js.hbs +10 -0
  783. package/templates/vue/CarouselItem/CarouselItem.test.ts.hbs +10 -0
  784. package/templates/vue/CarouselItem/CarouselItem.vue.hbs +45 -0
  785. package/templates/vue/Checkbox/Checkbox.css.hbs +11 -0
  786. package/templates/vue/Checkbox/Checkbox.js.vue.hbs +65 -0
  787. package/templates/vue/Checkbox/Checkbox.test.js.hbs +10 -0
  788. package/templates/vue/Checkbox/Checkbox.test.ts.hbs +10 -0
  789. package/templates/vue/Checkbox/Checkbox.vue.hbs +73 -0
  790. package/templates/vue/ColorPicker/ColorPicker.css.hbs +11 -0
  791. package/templates/vue/ColorPicker/ColorPicker.js.vue.hbs +87 -0
  792. package/templates/vue/ColorPicker/ColorPicker.test.js.hbs +10 -0
  793. package/templates/vue/ColorPicker/ColorPicker.test.ts.hbs +10 -0
  794. package/templates/vue/ColorPicker/ColorPicker.vue.hbs +99 -0
  795. package/templates/vue/Combobox/Combobox.css.hbs +11 -0
  796. package/templates/vue/Combobox/Combobox.js.vue.hbs +94 -0
  797. package/templates/vue/Combobox/Combobox.test.js.hbs +10 -0
  798. package/templates/vue/Combobox/Combobox.test.ts.hbs +10 -0
  799. package/templates/vue/Combobox/Combobox.vue.hbs +107 -0
  800. package/templates/vue/Comparison/Comparison.css.hbs +11 -0
  801. package/templates/vue/Comparison/Comparison.js.vue.hbs +45 -0
  802. package/templates/vue/Comparison/Comparison.test.js.hbs +10 -0
  803. package/templates/vue/Comparison/Comparison.test.ts.hbs +10 -0
  804. package/templates/vue/Comparison/Comparison.vue.hbs +49 -0
  805. package/templates/vue/CopyButton/CopyButton.css.hbs +11 -0
  806. package/templates/vue/CopyButton/CopyButton.js.vue.hbs +55 -0
  807. package/templates/vue/CopyButton/CopyButton.test.js.hbs +10 -0
  808. package/templates/vue/CopyButton/CopyButton.test.ts.hbs +10 -0
  809. package/templates/vue/CopyButton/CopyButton.vue.hbs +60 -0
  810. package/templates/vue/Details/Details.css.hbs +11 -0
  811. package/templates/vue/Details/Details.js.vue.hbs +61 -0
  812. package/templates/vue/Details/Details.test.js.hbs +10 -0
  813. package/templates/vue/Details/Details.test.ts.hbs +10 -0
  814. package/templates/vue/Details/Details.vue.hbs +68 -0
  815. package/templates/vue/Dialog/Dialog.css.hbs +23 -0
  816. package/templates/vue/Dialog/Dialog.js.vue.hbs +57 -0
  817. package/templates/vue/Dialog/Dialog.test.js.hbs +10 -0
  818. package/templates/vue/Dialog/Dialog.test.ts.hbs +10 -0
  819. package/templates/vue/Dialog/Dialog.vue.hbs +64 -0
  820. package/templates/vue/Divider/Divider.css.hbs +11 -0
  821. package/templates/vue/Divider/Divider.js.vue.hbs +41 -0
  822. package/templates/vue/Divider/Divider.test.js.hbs +10 -0
  823. package/templates/vue/Divider/Divider.test.ts.hbs +10 -0
  824. package/templates/vue/Divider/Divider.vue.hbs +45 -0
  825. package/templates/vue/Drawer/Drawer.css.hbs +11 -0
  826. package/templates/vue/Drawer/Drawer.js.vue.hbs +58 -0
  827. package/templates/vue/Drawer/Drawer.test.js.hbs +10 -0
  828. package/templates/vue/Drawer/Drawer.test.ts.hbs +10 -0
  829. package/templates/vue/Drawer/Drawer.vue.hbs +65 -0
  830. package/templates/vue/Dropdown/Dropdown.css.hbs +11 -0
  831. package/templates/vue/Dropdown/Dropdown.js.vue.hbs +61 -0
  832. package/templates/vue/Dropdown/Dropdown.test.js.hbs +10 -0
  833. package/templates/vue/Dropdown/Dropdown.test.ts.hbs +10 -0
  834. package/templates/vue/Dropdown/Dropdown.vue.hbs +69 -0
  835. package/templates/vue/DropdownItem/DropdownItem.css.hbs +11 -0
  836. package/templates/vue/DropdownItem/DropdownItem.js.vue.hbs +54 -0
  837. package/templates/vue/DropdownItem/DropdownItem.test.js.hbs +10 -0
  838. package/templates/vue/DropdownItem/DropdownItem.test.ts.hbs +10 -0
  839. package/templates/vue/DropdownItem/DropdownItem.vue.hbs +59 -0
  840. package/templates/vue/FileInput/FileInput.css.hbs +19 -0
  841. package/templates/vue/FileInput/FileInput.js.vue.hbs +69 -0
  842. package/templates/vue/FileInput/FileInput.test.js.hbs +10 -0
  843. package/templates/vue/FileInput/FileInput.test.ts.hbs +10 -0
  844. package/templates/vue/FileInput/FileInput.vue.hbs +77 -0
  845. package/templates/vue/FormatBytes/FormatBytes.css.hbs +11 -0
  846. package/templates/vue/FormatBytes/FormatBytes.js.vue.hbs +44 -0
  847. package/templates/vue/FormatBytes/FormatBytes.test.js.hbs +10 -0
  848. package/templates/vue/FormatBytes/FormatBytes.test.ts.hbs +10 -0
  849. package/templates/vue/FormatBytes/FormatBytes.vue.hbs +48 -0
  850. package/templates/vue/FormatDate/FormatDate.css.hbs +11 -0
  851. package/templates/vue/FormatDate/FormatDate.js.vue.hbs +53 -0
  852. package/templates/vue/FormatDate/FormatDate.test.js.hbs +10 -0
  853. package/templates/vue/FormatDate/FormatDate.test.ts.hbs +10 -0
  854. package/templates/vue/FormatDate/FormatDate.vue.hbs +57 -0
  855. package/templates/vue/FormatNumber/FormatNumber.css.hbs +11 -0
  856. package/templates/vue/FormatNumber/FormatNumber.js.vue.hbs +51 -0
  857. package/templates/vue/FormatNumber/FormatNumber.test.js.hbs +10 -0
  858. package/templates/vue/FormatNumber/FormatNumber.test.ts.hbs +10 -0
  859. package/templates/vue/FormatNumber/FormatNumber.vue.hbs +55 -0
  860. package/templates/vue/Icon/Icon.css.hbs +11 -0
  861. package/templates/vue/Icon/Icon.js.vue.hbs +52 -0
  862. package/templates/vue/Icon/Icon.test.js.hbs +10 -0
  863. package/templates/vue/Icon/Icon.test.ts.hbs +10 -0
  864. package/templates/vue/Icon/Icon.vue.hbs +57 -0
  865. package/templates/vue/Include/Include.css.hbs +11 -0
  866. package/templates/vue/Include/Include.js.vue.hbs +47 -0
  867. package/templates/vue/Include/Include.test.js.hbs +10 -0
  868. package/templates/vue/Include/Include.test.ts.hbs +10 -0
  869. package/templates/vue/Include/Include.vue.hbs +52 -0
  870. package/templates/vue/Input/Input.css.hbs +24 -0
  871. package/templates/vue/Input/Input.js.vue.hbs +82 -0
  872. package/templates/vue/Input/Input.test.js.hbs +10 -0
  873. package/templates/vue/Input/Input.test.ts.hbs +10 -0
  874. package/templates/vue/Input/Input.vue.hbs +91 -0
  875. package/templates/vue/IntersectionObserver/IntersectionObserver.css.hbs +11 -0
  876. package/templates/vue/IntersectionObserver/IntersectionObserver.js.vue.hbs +45 -0
  877. package/templates/vue/IntersectionObserver/IntersectionObserver.test.js.hbs +10 -0
  878. package/templates/vue/IntersectionObserver/IntersectionObserver.test.ts.hbs +10 -0
  879. package/templates/vue/IntersectionObserver/IntersectionObserver.vue.hbs +49 -0
  880. package/templates/vue/MutationObserver/MutationObserver.css.hbs +11 -0
  881. package/templates/vue/MutationObserver/MutationObserver.js.vue.hbs +48 -0
  882. package/templates/vue/MutationObserver/MutationObserver.test.js.hbs +10 -0
  883. package/templates/vue/MutationObserver/MutationObserver.test.ts.hbs +10 -0
  884. package/templates/vue/MutationObserver/MutationObserver.vue.hbs +52 -0
  885. package/templates/vue/NumberInput/NumberInput.css.hbs +19 -0
  886. package/templates/vue/NumberInput/NumberInput.js.vue.hbs +76 -0
  887. package/templates/vue/NumberInput/NumberInput.test.js.hbs +10 -0
  888. package/templates/vue/NumberInput/NumberInput.test.ts.hbs +10 -0
  889. package/templates/vue/NumberInput/NumberInput.vue.hbs +84 -0
  890. package/templates/vue/Option/Option.css.hbs +11 -0
  891. package/templates/vue/Option/Option.js.vue.hbs +44 -0
  892. package/templates/vue/Option/Option.test.js.hbs +10 -0
  893. package/templates/vue/Option/Option.test.ts.hbs +10 -0
  894. package/templates/vue/Option/Option.vue.hbs +48 -0
  895. package/templates/vue/Page/Page.css.hbs +11 -0
  896. package/templates/vue/Page/Page.js.vue.hbs +63 -0
  897. package/templates/vue/Page/Page.test.js.hbs +10 -0
  898. package/templates/vue/Page/Page.test.ts.hbs +10 -0
  899. package/templates/vue/Page/Page.vue.hbs +67 -0
  900. package/templates/vue/Popover/Popover.css.hbs +11 -0
  901. package/templates/vue/Popover/Popover.js.vue.hbs +59 -0
  902. package/templates/vue/Popover/Popover.test.js.hbs +10 -0
  903. package/templates/vue/Popover/Popover.test.ts.hbs +10 -0
  904. package/templates/vue/Popover/Popover.vue.hbs +66 -0
  905. package/templates/vue/Popup/Popup.css.hbs +11 -0
  906. package/templates/vue/Popup/Popup.js.vue.hbs +61 -0
  907. package/templates/vue/Popup/Popup.test.js.hbs +10 -0
  908. package/templates/vue/Popup/Popup.test.ts.hbs +10 -0
  909. package/templates/vue/Popup/Popup.vue.hbs +65 -0
  910. package/templates/vue/ProgressBar/ProgressBar.css.hbs +11 -0
  911. package/templates/vue/ProgressBar/ProgressBar.js.vue.hbs +43 -0
  912. package/templates/vue/ProgressBar/ProgressBar.test.js.hbs +10 -0
  913. package/templates/vue/ProgressBar/ProgressBar.test.ts.hbs +10 -0
  914. package/templates/vue/ProgressBar/ProgressBar.vue.hbs +47 -0
  915. package/templates/vue/ProgressRing/ProgressRing.css.hbs +11 -0
  916. package/templates/vue/ProgressRing/ProgressRing.js.vue.hbs +42 -0
  917. package/templates/vue/ProgressRing/ProgressRing.test.js.hbs +10 -0
  918. package/templates/vue/ProgressRing/ProgressRing.test.ts.hbs +10 -0
  919. package/templates/vue/ProgressRing/ProgressRing.vue.hbs +46 -0
  920. package/templates/vue/QrCode/QrCode.css.hbs +11 -0
  921. package/templates/vue/QrCode/QrCode.js.vue.hbs +47 -0
  922. package/templates/vue/QrCode/QrCode.test.js.hbs +10 -0
  923. package/templates/vue/QrCode/QrCode.test.ts.hbs +10 -0
  924. package/templates/vue/QrCode/QrCode.vue.hbs +51 -0
  925. package/templates/vue/Radio/Radio.css.hbs +11 -0
  926. package/templates/vue/Radio/Radio.js.vue.hbs +47 -0
  927. package/templates/vue/Radio/Radio.test.js.hbs +10 -0
  928. package/templates/vue/Radio/Radio.test.ts.hbs +10 -0
  929. package/templates/vue/Radio/Radio.vue.hbs +52 -0
  930. package/templates/vue/RadioGroup/RadioGroup.css.hbs +11 -0
  931. package/templates/vue/RadioGroup/RadioGroup.js.vue.hbs +56 -0
  932. package/templates/vue/RadioGroup/RadioGroup.test.js.hbs +10 -0
  933. package/templates/vue/RadioGroup/RadioGroup.test.ts.hbs +10 -0
  934. package/templates/vue/RadioGroup/RadioGroup.vue.hbs +62 -0
  935. package/templates/vue/Rating/Rating.css.hbs +11 -0
  936. package/templates/vue/Rating/Rating.js.vue.hbs +52 -0
  937. package/templates/vue/Rating/Rating.test.js.hbs +10 -0
  938. package/templates/vue/Rating/Rating.test.ts.hbs +10 -0
  939. package/templates/vue/Rating/Rating.vue.hbs +57 -0
  940. package/templates/vue/RelativeTime/RelativeTime.css.hbs +11 -0
  941. package/templates/vue/RelativeTime/RelativeTime.js.vue.hbs +45 -0
  942. package/templates/vue/RelativeTime/RelativeTime.test.js.hbs +10 -0
  943. package/templates/vue/RelativeTime/RelativeTime.test.ts.hbs +10 -0
  944. package/templates/vue/RelativeTime/RelativeTime.vue.hbs +49 -0
  945. package/templates/vue/ResizeObserver/ResizeObserver.css.hbs +11 -0
  946. package/templates/vue/ResizeObserver/ResizeObserver.js.vue.hbs +42 -0
  947. package/templates/vue/ResizeObserver/ResizeObserver.test.js.hbs +10 -0
  948. package/templates/vue/ResizeObserver/ResizeObserver.test.ts.hbs +10 -0
  949. package/templates/vue/ResizeObserver/ResizeObserver.vue.hbs +46 -0
  950. package/templates/vue/Scroller/Scroller.css.hbs +11 -0
  951. package/templates/vue/Scroller/Scroller.js.vue.hbs +42 -0
  952. package/templates/vue/Scroller/Scroller.test.js.hbs +10 -0
  953. package/templates/vue/Scroller/Scroller.test.ts.hbs +10 -0
  954. package/templates/vue/Scroller/Scroller.vue.hbs +46 -0
  955. package/templates/vue/Select/Select.css.hbs +11 -0
  956. package/templates/vue/Select/Select.js.vue.hbs +94 -0
  957. package/templates/vue/Select/Select.test.js.hbs +10 -0
  958. package/templates/vue/Select/Select.test.ts.hbs +10 -0
  959. package/templates/vue/Select/Select.vue.hbs +107 -0
  960. package/templates/vue/Skeleton/Skeleton.css.hbs +11 -0
  961. package/templates/vue/Skeleton/Skeleton.js.vue.hbs +41 -0
  962. package/templates/vue/Skeleton/Skeleton.test.js.hbs +10 -0
  963. package/templates/vue/Skeleton/Skeleton.test.ts.hbs +10 -0
  964. package/templates/vue/Skeleton/Skeleton.vue.hbs +45 -0
  965. package/templates/vue/Slider/Slider.css.hbs +11 -0
  966. package/templates/vue/Slider/Slider.js.vue.hbs +69 -0
  967. package/templates/vue/Slider/Slider.test.js.hbs +10 -0
  968. package/templates/vue/Slider/Slider.test.ts.hbs +10 -0
  969. package/templates/vue/Slider/Slider.vue.hbs +77 -0
  970. package/templates/vue/Sparkline/Sparkline.css.hbs +14 -0
  971. package/templates/vue/Sparkline/Sparkline.js.vue.hbs +48 -0
  972. package/templates/vue/Sparkline/Sparkline.test.js.hbs +10 -0
  973. package/templates/vue/Sparkline/Sparkline.test.ts.hbs +10 -0
  974. package/templates/vue/Sparkline/Sparkline.vue.hbs +52 -0
  975. package/templates/vue/Spinner/Spinner.css.hbs +11 -0
  976. package/templates/vue/Spinner/Spinner.js.vue.hbs +41 -0
  977. package/templates/vue/Spinner/Spinner.test.js.hbs +10 -0
  978. package/templates/vue/Spinner/Spinner.test.ts.hbs +10 -0
  979. package/templates/vue/Spinner/Spinner.vue.hbs +45 -0
  980. package/templates/vue/SplitPanel/SplitPanel.css.hbs +11 -0
  981. package/templates/vue/SplitPanel/SplitPanel.js.vue.hbs +51 -0
  982. package/templates/vue/SplitPanel/SplitPanel.test.js.hbs +10 -0
  983. package/templates/vue/SplitPanel/SplitPanel.test.ts.hbs +10 -0
  984. package/templates/vue/SplitPanel/SplitPanel.vue.hbs +55 -0
  985. package/templates/vue/Switch/Switch.css.hbs +11 -0
  986. package/templates/vue/Switch/Switch.js.vue.hbs +64 -0
  987. package/templates/vue/Switch/Switch.test.js.hbs +10 -0
  988. package/templates/vue/Switch/Switch.test.ts.hbs +10 -0
  989. package/templates/vue/Switch/Switch.vue.hbs +72 -0
  990. package/templates/vue/Tab/Tab.css.hbs +11 -0
  991. package/templates/vue/Tab/Tab.js.vue.hbs +42 -0
  992. package/templates/vue/Tab/Tab.test.js.hbs +10 -0
  993. package/templates/vue/Tab/Tab.test.ts.hbs +10 -0
  994. package/templates/vue/Tab/Tab.vue.hbs +46 -0
  995. package/templates/vue/TabGroup/TabGroup.css.hbs +11 -0
  996. package/templates/vue/TabGroup/TabGroup.js.vue.hbs +48 -0
  997. package/templates/vue/TabGroup/TabGroup.test.js.hbs +10 -0
  998. package/templates/vue/TabGroup/TabGroup.test.ts.hbs +10 -0
  999. package/templates/vue/TabGroup/TabGroup.vue.hbs +53 -0
  1000. package/templates/vue/TabPanel/TabPanel.css.hbs +11 -0
  1001. package/templates/vue/TabPanel/TabPanel.js.vue.hbs +42 -0
  1002. package/templates/vue/TabPanel/TabPanel.test.js.hbs +10 -0
  1003. package/templates/vue/TabPanel/TabPanel.test.ts.hbs +10 -0
  1004. package/templates/vue/TabPanel/TabPanel.vue.hbs +46 -0
  1005. package/templates/vue/Tag/Tag.css.hbs +11 -0
  1006. package/templates/vue/Tag/Tag.js.vue.hbs +46 -0
  1007. package/templates/vue/Tag/Tag.test.js.hbs +10 -0
  1008. package/templates/vue/Tag/Tag.test.ts.hbs +10 -0
  1009. package/templates/vue/Tag/Tag.vue.hbs +50 -0
  1010. package/templates/vue/Textarea/Textarea.css.hbs +11 -0
  1011. package/templates/vue/Textarea/Textarea.js.vue.hbs +76 -0
  1012. package/templates/vue/Textarea/Textarea.test.js.hbs +10 -0
  1013. package/templates/vue/Textarea/Textarea.test.ts.hbs +10 -0
  1014. package/templates/vue/Textarea/Textarea.vue.hbs +84 -0
  1015. package/templates/vue/Tooltip/Tooltip.css.hbs +11 -0
  1016. package/templates/vue/Tooltip/Tooltip.js.vue.hbs +62 -0
  1017. package/templates/vue/Tooltip/Tooltip.test.js.hbs +10 -0
  1018. package/templates/vue/Tooltip/Tooltip.test.ts.hbs +10 -0
  1019. package/templates/vue/Tooltip/Tooltip.vue.hbs +69 -0
  1020. package/templates/vue/Tree/Tree.css.hbs +11 -0
  1021. package/templates/vue/Tree/Tree.js.vue.hbs +44 -0
  1022. package/templates/vue/Tree/Tree.test.js.hbs +10 -0
  1023. package/templates/vue/Tree/Tree.test.ts.hbs +10 -0
  1024. package/templates/vue/Tree/Tree.vue.hbs +48 -0
  1025. package/templates/vue/TreeItem/TreeItem.css.hbs +11 -0
  1026. package/templates/vue/TreeItem/TreeItem.js.vue.hbs +63 -0
  1027. package/templates/vue/TreeItem/TreeItem.test.js.hbs +10 -0
  1028. package/templates/vue/TreeItem/TreeItem.test.ts.hbs +10 -0
  1029. package/templates/vue/TreeItem/TreeItem.vue.hbs +72 -0
  1030. package/templates/vue/ZoomableFrame/ZoomableFrame.css.hbs +11 -0
  1031. package/templates/vue/ZoomableFrame/ZoomableFrame.js.vue.hbs +58 -0
  1032. package/templates/vue/ZoomableFrame/ZoomableFrame.test.js.hbs +10 -0
  1033. package/templates/vue/ZoomableFrame/ZoomableFrame.test.ts.hbs +10 -0
  1034. package/templates/vue/ZoomableFrame/ZoomableFrame.vue.hbs +63 -0
package/README.md CHANGED
@@ -1,8 +1,10 @@
1
+ ![Kigumi logo](https://kigumi.style/og-image.png)
2
+
1
3
  # Kigumi
2
4
 
3
5
  > Build framework-agnostic UIs with ready-made web components. Same components, any stack.
4
6
 
5
- ℹ️ Available for React. Angular, Svelte and Vue are coming soon.
7
+ ℹ️ Available for React and Vue. Angular and Svelte are coming soon.
6
8
 
7
9
  ## Quick Start
8
10
 
@@ -57,14 +59,23 @@ Initialize Kigumi in your project. Sets up theming and installs dependencies.
57
59
  npx kigumi init
58
60
  ```
59
61
 
60
- **Web Awesome Pro:** To unlock premium themes and Pro-only components, you need a Web Awesome Pro account. [Get your token](https://https://webawesome.com/login):
62
+ **Own Web Awesome Pro license?**
63
+
64
+ To unlock premium themes and Pro-only components, you need a Web Awesome Pro account. [Get your token](https://webawesome.com/login) and choose one of the following token setup methods:
61
65
 
62
66
  ```bash
63
- # Configure your token globally (once per machine)
67
+
68
+ # Option 1: During `init` command (recommended)
69
+ npx kigumi init --token YOUR_TOKEN
70
+
71
+ # Option 2: Global
64
72
  npm config set //npm.cloudsmith.io/fortawesome/webawesome-pro/:_authToken YOUR_TOKEN
65
73
 
66
- # Then just run init - Pro tier is auto-detected
67
- npx kigumi init
74
+ # Option 3: In .env file
75
+ WEBAWESOME_NPM_TOKEN=your_token
76
+
77
+ # Option 4: In .npmrc file
78
+ //npm.cloudsmith.io/fortawesome/webawesome-pro/:_authToken YOUR_TOKEN
68
79
  ```
69
80
 
70
81
  ### `add`
@@ -77,24 +88,33 @@ npx kigumi add # Interactive component selector
77
88
  npx kigumi add --all # Add all 80+ components at once
78
89
  ```
79
90
 
80
- ### `list`
91
+ ### `theme`
81
92
 
82
- View all available components:
93
+ Change [theme](https://webawesome.com/docs/themes), [palette](https://webawesome.com/docs/color-palettes), or brand color:
83
94
 
84
95
  ```bash
85
- npx kigumi list
96
+ npx kigumi theme [name] # Change theme (shows selector if name omitted)
97
+ npx kigumi palette [name] # Change color palette
98
+ npx kigumi brand [color] # Change brand color
86
99
  ```
87
100
 
88
- Shows component name, description, and Pro badge for Pro-only components.
101
+ ### `doctor`
89
102
 
90
- ### `theme`
103
+ Diagnose and fix common issues in your project:
91
104
 
92
- Change [theme](https://webawesome.com/docs/themes), [palette](https://webawesome.com/docs/color-palettes), or brand color:
105
+ ```bash
106
+ npx kigumi doctor # Scan and fix import path issues
107
+ npx kigumi doctor --dry-run # Report issues without fixing
108
+ ```
109
+
110
+ The doctor command automatically detects your tier (Free/Pro) and ensures all component imports use the correct package. Useful when upgrading from Free to Pro or encountering import errors.
111
+
112
+ ## Agent Skills
113
+
114
+ Kigumi provides AI agent skills for transforming Web Awesome HTML to Kigumi components and for working with design tokens.
93
115
 
94
116
  ```bash
95
- npx kigumi theme [name] # Change theme (shows selector if name omitted)
96
- npx kigumi palette [name] # Change color palette
97
- npx kigumi brand [color] # Change brand color
117
+ npx skills add https://kigumi.style/skills
98
118
  ```
99
119
 
100
120
  ## Utility Classes
@@ -0,0 +1,216 @@
1
+ // src/utils/tier.ts
2
+ import fs2 from "fs-extra";
3
+ import path2 from "path";
4
+
5
+ // src/constants.ts
6
+ var WEB_AWESOME_FREE_PACKAGE = "@awesome.me/webawesome";
7
+ var WEB_AWESOME_PRO_PACKAGE = "@awesome.me/webawesome-pro";
8
+ var WEB_AWESOME_SCOPE = "@awesome.me";
9
+ var ENV_TOKEN_KEY = "WEBAWESOME_NPM_TOKEN";
10
+ var MIN_TOKEN_LENGTH = 10;
11
+ var ENV_FILE_NAME = ".env";
12
+ var NPM_PUBLIC_REGISTRY = "https://registry.npmjs.org/";
13
+ var NPM_PRO_REGISTRY = "https://npm.cloudsmith.io/fortawesome/webawesome-pro";
14
+ var FREE_PACKAGE_REGEX = /@awesome\.me\/webawesome(?!-pro)/g;
15
+ var PRO_PACKAGE_REGEX = /@awesome\.me\/webawesome-pro/g;
16
+ var ENV_TOKEN_REGEX = /^\s*WEBAWESOME_NPM_TOKEN\s*=\s*(.+?)\s*$/m;
17
+
18
+ // src/utils/token.ts
19
+ import fs from "fs-extra";
20
+ import os from "os";
21
+ import path from "path";
22
+ async function detectProToken(cwd) {
23
+ const result = await detectProTokenWithSource(cwd);
24
+ return result.token;
25
+ }
26
+ function detectProTokenSync(cwd) {
27
+ const result = detectProTokenWithSourceSync(cwd);
28
+ return result.token;
29
+ }
30
+ function getTokenSourceSync(cwd) {
31
+ const result = detectProTokenWithSourceSync(cwd);
32
+ return result.source;
33
+ }
34
+ async function detectProTokenWithSource(cwd) {
35
+ const envToken = getTokenFromEnvVar();
36
+ if (envToken) {
37
+ return { token: envToken, source: "env" };
38
+ }
39
+ if (!process.env.KIGUMI_SKIP_GLOBAL_NPMRC) {
40
+ const npmrcToken = await getTokenFromGlobalNpmrc();
41
+ if (npmrcToken) {
42
+ return { token: npmrcToken, source: "npmrc" };
43
+ }
44
+ }
45
+ const dotenvToken = await getTokenFromDotenv(cwd);
46
+ if (dotenvToken) {
47
+ return { token: dotenvToken, source: "dotenv" };
48
+ }
49
+ return { token: null, source: null };
50
+ }
51
+ function detectProTokenWithSourceSync(cwd) {
52
+ const envToken = getTokenFromEnvVar();
53
+ if (envToken) {
54
+ return { token: envToken, source: "env" };
55
+ }
56
+ if (!process.env.KIGUMI_SKIP_GLOBAL_NPMRC) {
57
+ const npmrcToken = getTokenFromGlobalNpmrcSync();
58
+ if (npmrcToken) {
59
+ return { token: npmrcToken, source: "npmrc" };
60
+ }
61
+ }
62
+ const dotenvToken = getTokenFromDotenvSync(cwd);
63
+ if (dotenvToken) {
64
+ return { token: dotenvToken, source: "dotenv" };
65
+ }
66
+ return { token: null, source: null };
67
+ }
68
+ function getTokenFromEnvVar() {
69
+ const token = process.env[ENV_TOKEN_KEY];
70
+ if (token && token.length >= MIN_TOKEN_LENGTH) {
71
+ return token.trim();
72
+ }
73
+ return null;
74
+ }
75
+ async function getTokenFromGlobalNpmrc() {
76
+ const npmrcPath = path.join(os.homedir(), ".npmrc");
77
+ if (!await fs.pathExists(npmrcPath)) {
78
+ return null;
79
+ }
80
+ const content = await fs.readFile(npmrcPath, "utf-8");
81
+ return extractTokenFromNpmrc(content);
82
+ }
83
+ function getTokenFromGlobalNpmrcSync() {
84
+ const npmrcPath = path.join(os.homedir(), ".npmrc");
85
+ if (!fs.existsSync(npmrcPath)) {
86
+ return null;
87
+ }
88
+ const content = fs.readFileSync(npmrcPath, "utf-8");
89
+ return extractTokenFromNpmrc(content);
90
+ }
91
+ function extractTokenFromNpmrc(content) {
92
+ const registryHost = NPM_PRO_REGISTRY.replace("https://", "");
93
+ const patterns = [
94
+ new RegExp(`//${registryHost}/?:_authToken=(.+)`, "m"),
95
+ new RegExp(`${registryHost}/?:_authToken=(.+)`, "m")
96
+ ];
97
+ for (const pattern of patterns) {
98
+ const match = content.match(pattern);
99
+ if (match && match[1]) {
100
+ const token = match[1].trim();
101
+ if (token.length >= MIN_TOKEN_LENGTH) {
102
+ return token;
103
+ }
104
+ }
105
+ }
106
+ return null;
107
+ }
108
+ async function getTokenFromDotenv(cwd) {
109
+ const envPath = path.join(cwd, ENV_FILE_NAME);
110
+ if (!await fs.pathExists(envPath)) {
111
+ return null;
112
+ }
113
+ const content = await fs.readFile(envPath, "utf-8");
114
+ return extractTokenFromDotenv(content);
115
+ }
116
+ function getTokenFromDotenvSync(cwd) {
117
+ const envPath = path.join(cwd, ENV_FILE_NAME);
118
+ if (!fs.existsSync(envPath)) {
119
+ return null;
120
+ }
121
+ const content = fs.readFileSync(envPath, "utf-8");
122
+ return extractTokenFromDotenv(content);
123
+ }
124
+ function extractTokenFromDotenv(content) {
125
+ const match = content.match(ENV_TOKEN_REGEX);
126
+ if (match && match[1]) {
127
+ const token = match[1].trim();
128
+ if (token.length >= MIN_TOKEN_LENGTH) {
129
+ return token;
130
+ }
131
+ }
132
+ return null;
133
+ }
134
+ function describeTokenSource(source) {
135
+ switch (source) {
136
+ case "env":
137
+ return `environment variable ($${ENV_TOKEN_KEY})`;
138
+ case "npmrc":
139
+ return "global ~/.npmrc";
140
+ case "dotenv":
141
+ return "project .env file";
142
+ default:
143
+ return "unknown";
144
+ }
145
+ }
146
+
147
+ // src/utils/tier.ts
148
+ async function detectTier(cwd) {
149
+ const packageJsonPath = path2.join(cwd, "package.json");
150
+ if (await fs2.pathExists(packageJsonPath)) {
151
+ try {
152
+ const packageJson = await fs2.readJson(packageJsonPath);
153
+ const deps = {
154
+ ...packageJson.dependencies,
155
+ ...packageJson.devDependencies
156
+ };
157
+ if (deps[WEB_AWESOME_PRO_PACKAGE]) {
158
+ return "pro";
159
+ }
160
+ if (deps[WEB_AWESOME_FREE_PACKAGE]) {
161
+ return "free";
162
+ }
163
+ } catch {
164
+ }
165
+ }
166
+ const token = await detectProToken(cwd);
167
+ return token ? "pro" : "free";
168
+ }
169
+ function detectTierSync(cwd) {
170
+ const packageJsonPath = path2.join(cwd, "package.json");
171
+ if (fs2.pathExistsSync(packageJsonPath)) {
172
+ try {
173
+ const packageJson = fs2.readJsonSync(packageJsonPath);
174
+ const deps = {
175
+ ...packageJson.dependencies,
176
+ ...packageJson.devDependencies
177
+ };
178
+ if (deps[WEB_AWESOME_PRO_PACKAGE]) {
179
+ return "pro";
180
+ }
181
+ if (deps[WEB_AWESOME_FREE_PACKAGE]) {
182
+ return "free";
183
+ }
184
+ } catch {
185
+ }
186
+ }
187
+ const token = detectProTokenSync(cwd);
188
+ return token ? "pro" : "free";
189
+ }
190
+ async function getProToken(cwd) {
191
+ return detectProToken(cwd);
192
+ }
193
+ function getWebAwesomePackage(tier) {
194
+ return tier === "pro" ? WEB_AWESOME_PRO_PACKAGE : WEB_AWESOME_FREE_PACKAGE;
195
+ }
196
+
197
+ export {
198
+ WEB_AWESOME_FREE_PACKAGE,
199
+ WEB_AWESOME_PRO_PACKAGE,
200
+ WEB_AWESOME_SCOPE,
201
+ ENV_TOKEN_KEY,
202
+ MIN_TOKEN_LENGTH,
203
+ ENV_FILE_NAME,
204
+ NPM_PUBLIC_REGISTRY,
205
+ NPM_PRO_REGISTRY,
206
+ FREE_PACKAGE_REGEX,
207
+ PRO_PACKAGE_REGEX,
208
+ ENV_TOKEN_REGEX,
209
+ detectProTokenSync,
210
+ getTokenSourceSync,
211
+ describeTokenSource,
212
+ detectTier,
213
+ detectTierSync,
214
+ getProToken,
215
+ getWebAwesomePackage
216
+ };
@@ -0,0 +1,52 @@
1
+ // src/utils/tier.ts
2
+ import fs from "fs-extra";
3
+ import path from "path";
4
+ async function detectTier(cwd) {
5
+ const envPath = path.join(cwd, ".env");
6
+ if (!await fs.pathExists(envPath)) {
7
+ return "free";
8
+ }
9
+ const envContent = await fs.readFile(envPath, "utf-8");
10
+ const tokenMatch = envContent.match(
11
+ /^\s*WEBAWESOME_NPM_TOKEN\s*=\s*(.+?)\s*$/m
12
+ );
13
+ if (tokenMatch && tokenMatch[1] && tokenMatch[1].length >= 10) {
14
+ return "pro";
15
+ }
16
+ return "free";
17
+ }
18
+ function detectTierSync(cwd) {
19
+ const envPath = path.join(cwd, ".env");
20
+ if (!fs.existsSync(envPath)) {
21
+ return "free";
22
+ }
23
+ const envContent = fs.readFileSync(envPath, "utf-8");
24
+ const tokenMatch = envContent.match(
25
+ /^\s*WEBAWESOME_NPM_TOKEN\s*=\s*(.+?)\s*$/m
26
+ );
27
+ if (tokenMatch && tokenMatch[1] && tokenMatch[1].length >= 10) {
28
+ return "pro";
29
+ }
30
+ return "free";
31
+ }
32
+ async function getProToken(cwd) {
33
+ const envPath = path.join(cwd, ".env");
34
+ if (!await fs.pathExists(envPath)) {
35
+ return null;
36
+ }
37
+ const envContent = await fs.readFile(envPath, "utf-8");
38
+ const tokenMatch = envContent.match(
39
+ /^\s*WEBAWESOME_NPM_TOKEN\s*=\s*(.+?)\s*$/m
40
+ );
41
+ return tokenMatch && tokenMatch[1] ? tokenMatch[1].trim() : null;
42
+ }
43
+ function getWebAwesomePackage(tier) {
44
+ return tier === "pro" ? "@awesome.me/webawesome-pro" : "@awesome.me/webawesome";
45
+ }
46
+
47
+ export {
48
+ detectTier,
49
+ detectTierSync,
50
+ getProToken,
51
+ getWebAwesomePackage
52
+ };
@@ -0,0 +1,72 @@
1
+ // src/utils/tier.ts
2
+ import fs from "fs-extra";
3
+ import path from "path";
4
+
5
+ // src/constants.ts
6
+ var WEB_AWESOME_FREE_PACKAGE = "@awesome.me/webawesome";
7
+ var WEB_AWESOME_PRO_PACKAGE = "@awesome.me/webawesome-pro";
8
+ var WEB_AWESOME_SCOPE = "@awesome.me";
9
+ var ENV_TOKEN_KEY = "WEBAWESOME_NPM_TOKEN";
10
+ var MIN_TOKEN_LENGTH = 10;
11
+ var ENV_FILE_NAME = ".env";
12
+ var NPM_PUBLIC_REGISTRY = "https://registry.npmjs.org/";
13
+ var NPM_PRO_REGISTRY = "https://npm.cloudsmith.io/fortawesome/webawesome-pro";
14
+ var FREE_PACKAGE_REGEX = /@awesome\.me\/webawesome(?!-pro)/g;
15
+ var PRO_PACKAGE_REGEX = /@awesome\.me\/webawesome-pro/g;
16
+ var ENV_TOKEN_REGEX = /^\s*WEBAWESOME_NPM_TOKEN\s*=\s*(.+?)\s*$/m;
17
+
18
+ // src/utils/tier.ts
19
+ async function detectTier(cwd) {
20
+ const envPath = path.join(cwd, ENV_FILE_NAME);
21
+ if (!await fs.pathExists(envPath)) {
22
+ return "free";
23
+ }
24
+ const envContent = await fs.readFile(envPath, "utf-8");
25
+ const tokenMatch = envContent.match(ENV_TOKEN_REGEX);
26
+ if (tokenMatch && tokenMatch[1] && tokenMatch[1].length >= MIN_TOKEN_LENGTH) {
27
+ return "pro";
28
+ }
29
+ return "free";
30
+ }
31
+ function detectTierSync(cwd) {
32
+ const envPath = path.join(cwd, ENV_FILE_NAME);
33
+ if (!fs.existsSync(envPath)) {
34
+ return "free";
35
+ }
36
+ const envContent = fs.readFileSync(envPath, "utf-8");
37
+ const tokenMatch = envContent.match(ENV_TOKEN_REGEX);
38
+ if (tokenMatch && tokenMatch[1] && tokenMatch[1].length >= MIN_TOKEN_LENGTH) {
39
+ return "pro";
40
+ }
41
+ return "free";
42
+ }
43
+ async function getProToken(cwd) {
44
+ const envPath = path.join(cwd, ENV_FILE_NAME);
45
+ if (!await fs.pathExists(envPath)) {
46
+ return null;
47
+ }
48
+ const envContent = await fs.readFile(envPath, "utf-8");
49
+ const tokenMatch = envContent.match(ENV_TOKEN_REGEX);
50
+ return tokenMatch && tokenMatch[1] ? tokenMatch[1].trim() : null;
51
+ }
52
+ function getWebAwesomePackage(tier) {
53
+ return tier === "pro" ? WEB_AWESOME_PRO_PACKAGE : WEB_AWESOME_FREE_PACKAGE;
54
+ }
55
+
56
+ export {
57
+ WEB_AWESOME_FREE_PACKAGE,
58
+ WEB_AWESOME_PRO_PACKAGE,
59
+ WEB_AWESOME_SCOPE,
60
+ ENV_TOKEN_KEY,
61
+ MIN_TOKEN_LENGTH,
62
+ ENV_FILE_NAME,
63
+ NPM_PUBLIC_REGISTRY,
64
+ NPM_PRO_REGISTRY,
65
+ FREE_PACKAGE_REGEX,
66
+ PRO_PACKAGE_REGEX,
67
+ ENV_TOKEN_REGEX,
68
+ detectTier,
69
+ detectTierSync,
70
+ getProToken,
71
+ getWebAwesomePackage
72
+ };
@@ -0,0 +1,216 @@
1
+ // src/utils/tier.ts
2
+ import fs2 from "fs-extra";
3
+ import path2 from "path";
4
+
5
+ // src/constants.ts
6
+ var WEB_AWESOME_FREE_PACKAGE = "@awesome.me/webawesome";
7
+ var WEB_AWESOME_PRO_PACKAGE = "@awesome.me/webawesome-pro";
8
+ var WEB_AWESOME_SCOPE = "@awesome.me";
9
+ var ENV_TOKEN_KEY = "WEBAWESOME_NPM_TOKEN";
10
+ var MIN_TOKEN_LENGTH = 10;
11
+ var ENV_FILE_NAME = ".env";
12
+ var NPM_PUBLIC_REGISTRY = "https://registry.npmjs.org/";
13
+ var NPM_PRO_REGISTRY = "https://npm.cloudsmith.io/fortawesome/webawesome-pro";
14
+ var FREE_PACKAGE_REGEX = /@awesome\.me\/webawesome(?!-pro)/g;
15
+ var PRO_PACKAGE_REGEX = /@awesome\.me\/webawesome-pro/g;
16
+ var ENV_TOKEN_REGEX = /^\s*WEBAWESOME_NPM_TOKEN\s*=\s*(.+?)\s*$/m;
17
+
18
+ // src/utils/token.ts
19
+ import fs from "fs-extra";
20
+ import os from "os";
21
+ import path from "path";
22
+ async function detectProToken(cwd) {
23
+ const result = await detectProTokenWithSource(cwd);
24
+ return result.token;
25
+ }
26
+ function detectProTokenSync(cwd) {
27
+ const result = detectProTokenWithSourceSync(cwd);
28
+ return result.token;
29
+ }
30
+ function getTokenSourceSync(cwd) {
31
+ const result = detectProTokenWithSourceSync(cwd);
32
+ return result.source;
33
+ }
34
+ async function detectProTokenWithSource(cwd) {
35
+ const envToken = getTokenFromEnvVar();
36
+ if (envToken) {
37
+ return { token: envToken, source: "env" };
38
+ }
39
+ if (!process.env.KIGUMI_SKIP_GLOBAL_NPMRC) {
40
+ const npmrcToken = await getTokenFromGlobalNpmrc();
41
+ if (npmrcToken) {
42
+ return { token: npmrcToken, source: "npmrc" };
43
+ }
44
+ }
45
+ const dotenvToken = await getTokenFromDotenv(cwd);
46
+ if (dotenvToken) {
47
+ return { token: dotenvToken, source: "dotenv" };
48
+ }
49
+ return { token: null, source: null };
50
+ }
51
+ function detectProTokenWithSourceSync(cwd) {
52
+ const envToken = getTokenFromEnvVar();
53
+ if (envToken) {
54
+ return { token: envToken, source: "env" };
55
+ }
56
+ if (!process.env.KIGUMI_SKIP_GLOBAL_NPMRC) {
57
+ const npmrcToken = getTokenFromGlobalNpmrcSync();
58
+ if (npmrcToken) {
59
+ return { token: npmrcToken, source: "npmrc" };
60
+ }
61
+ }
62
+ const dotenvToken = getTokenFromDotenvSync(cwd);
63
+ if (dotenvToken) {
64
+ return { token: dotenvToken, source: "dotenv" };
65
+ }
66
+ return { token: null, source: null };
67
+ }
68
+ function getTokenFromEnvVar() {
69
+ const token = process.env[ENV_TOKEN_KEY];
70
+ if (token && token.length >= MIN_TOKEN_LENGTH) {
71
+ return token.trim();
72
+ }
73
+ return null;
74
+ }
75
+ async function getTokenFromGlobalNpmrc() {
76
+ const npmrcPath = path.join(os.homedir(), ".npmrc");
77
+ if (!await fs.pathExists(npmrcPath)) {
78
+ return null;
79
+ }
80
+ const content = await fs.readFile(npmrcPath, "utf-8");
81
+ return extractTokenFromNpmrc(content);
82
+ }
83
+ function getTokenFromGlobalNpmrcSync() {
84
+ const npmrcPath = path.join(os.homedir(), ".npmrc");
85
+ if (!fs.existsSync(npmrcPath)) {
86
+ return null;
87
+ }
88
+ const content = fs.readFileSync(npmrcPath, "utf-8");
89
+ return extractTokenFromNpmrc(content);
90
+ }
91
+ function extractTokenFromNpmrc(content) {
92
+ const registryHost = NPM_PRO_REGISTRY.replace("https://", "");
93
+ const patterns = [
94
+ new RegExp(`//${registryHost}/?:_authToken=(.+)`, "m"),
95
+ new RegExp(`${registryHost}/?:_authToken=(.+)`, "m")
96
+ ];
97
+ for (const pattern of patterns) {
98
+ const match = content.match(pattern);
99
+ if (match && match[1]) {
100
+ const token = match[1].trim();
101
+ if (token.length >= MIN_TOKEN_LENGTH) {
102
+ return token;
103
+ }
104
+ }
105
+ }
106
+ return null;
107
+ }
108
+ async function getTokenFromDotenv(cwd) {
109
+ const envPath = path.join(cwd, ENV_FILE_NAME);
110
+ if (!await fs.pathExists(envPath)) {
111
+ return null;
112
+ }
113
+ const content = await fs.readFile(envPath, "utf-8");
114
+ return extractTokenFromDotenv(content);
115
+ }
116
+ function getTokenFromDotenvSync(cwd) {
117
+ const envPath = path.join(cwd, ENV_FILE_NAME);
118
+ if (!fs.existsSync(envPath)) {
119
+ return null;
120
+ }
121
+ const content = fs.readFileSync(envPath, "utf-8");
122
+ return extractTokenFromDotenv(content);
123
+ }
124
+ function extractTokenFromDotenv(content) {
125
+ const match = content.match(ENV_TOKEN_REGEX);
126
+ if (match && match[1]) {
127
+ const token = match[1].trim();
128
+ if (token.length >= MIN_TOKEN_LENGTH) {
129
+ return token;
130
+ }
131
+ }
132
+ return null;
133
+ }
134
+ function describeTokenSource(source) {
135
+ switch (source) {
136
+ case "env":
137
+ return `environment variable ($${ENV_TOKEN_KEY})`;
138
+ case "npmrc":
139
+ return "global ~/.npmrc";
140
+ case "dotenv":
141
+ return "project .env file";
142
+ default:
143
+ return "unknown";
144
+ }
145
+ }
146
+
147
+ // src/utils/tier.ts
148
+ async function detectTier(cwd) {
149
+ const packageJsonPath = path2.join(cwd, "package.json");
150
+ if (await fs2.pathExists(packageJsonPath)) {
151
+ try {
152
+ const packageJson = await fs2.readJson(packageJsonPath);
153
+ const deps = {
154
+ ...packageJson.dependencies,
155
+ ...packageJson.devDependencies
156
+ };
157
+ if (deps[WEB_AWESOME_PRO_PACKAGE]) {
158
+ return "pro";
159
+ }
160
+ if (deps[WEB_AWESOME_FREE_PACKAGE]) {
161
+ return "free";
162
+ }
163
+ } catch (error) {
164
+ }
165
+ }
166
+ const token = await detectProToken(cwd);
167
+ return token ? "pro" : "free";
168
+ }
169
+ function detectTierSync(cwd) {
170
+ const packageJsonPath = path2.join(cwd, "package.json");
171
+ if (fs2.pathExistsSync(packageJsonPath)) {
172
+ try {
173
+ const packageJson = fs2.readJsonSync(packageJsonPath);
174
+ const deps = {
175
+ ...packageJson.dependencies,
176
+ ...packageJson.devDependencies
177
+ };
178
+ if (deps[WEB_AWESOME_PRO_PACKAGE]) {
179
+ return "pro";
180
+ }
181
+ if (deps[WEB_AWESOME_FREE_PACKAGE]) {
182
+ return "free";
183
+ }
184
+ } catch (error) {
185
+ }
186
+ }
187
+ const token = detectProTokenSync(cwd);
188
+ return token ? "pro" : "free";
189
+ }
190
+ async function getProToken(cwd) {
191
+ return detectProToken(cwd);
192
+ }
193
+ function getWebAwesomePackage(tier) {
194
+ return tier === "pro" ? WEB_AWESOME_PRO_PACKAGE : WEB_AWESOME_FREE_PACKAGE;
195
+ }
196
+
197
+ export {
198
+ WEB_AWESOME_FREE_PACKAGE,
199
+ WEB_AWESOME_PRO_PACKAGE,
200
+ WEB_AWESOME_SCOPE,
201
+ ENV_TOKEN_KEY,
202
+ MIN_TOKEN_LENGTH,
203
+ ENV_FILE_NAME,
204
+ NPM_PUBLIC_REGISTRY,
205
+ NPM_PRO_REGISTRY,
206
+ FREE_PACKAGE_REGEX,
207
+ PRO_PACKAGE_REGEX,
208
+ ENV_TOKEN_REGEX,
209
+ detectProTokenSync,
210
+ getTokenSourceSync,
211
+ describeTokenSource,
212
+ detectTier,
213
+ detectTierSync,
214
+ getProToken,
215
+ getWebAwesomePackage
216
+ };