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.
- package/README.md +34 -14
- package/dist/chunk-EAABDBX7.js +216 -0
- package/dist/chunk-FG4CIVPT.js +52 -0
- package/dist/chunk-IRCCX2A2.js +72 -0
- package/dist/chunk-VLXYBBZR.js +216 -0
- package/dist/index.js +478 -34
- package/dist/path-aliases-3OJ2RKTE.js +95 -0
- package/dist/path-aliases-44XMTAAA.js +89 -0
- package/dist/path-aliases-CNBMGBKE.js +98 -0
- package/dist/path-aliases-L6USUZ4R.js +91 -0
- package/dist/path-aliases-NX2TDEHO.js +92 -0
- package/dist/path-aliases-ZRNAAXX2.js +94 -0
- package/dist/project-config-3XEQHIUM.js +115 -0
- package/dist/project-config-YLUSQM7U.js +108 -0
- package/dist/skills/kigumi-react/SKILL.md +1 -1
- package/dist/skills/kigumi-react/references/components/file-input.md +52 -0
- package/dist/skills/kigumi-react/references/components/number-input.md +54 -0
- package/dist/skills/kigumi-react/references/components/sparkline.md +50 -0
- package/dist/skills/kigumi-react/references/transformation-rules.md +3 -0
- package/dist/templates/react/AnimatedImage/AnimatedImage.css.hbs +1 -9
- package/dist/templates/react/AnimatedImage/AnimatedImage.test.tsx.hbs +3 -7
- package/dist/templates/react/AnimatedImage/AnimatedImage.tsx.hbs +50 -27
- package/dist/templates/react/Animation/Animation.css.hbs +0 -7
- package/dist/templates/react/Animation/Animation.test.tsx.hbs +5 -9
- package/dist/templates/react/Animation/Animation.tsx.hbs +51 -32
- package/dist/templates/react/Avatar/Avatar.css.hbs +1 -10
- package/dist/templates/react/Avatar/Avatar.test.tsx.hbs +2 -6
- package/dist/templates/react/Avatar/Avatar.tsx.hbs +41 -24
- package/dist/templates/react/Badge/Badge.css.hbs +1 -8
- package/dist/templates/react/Badge/Badge.test.tsx.hbs +5 -9
- package/dist/templates/react/Badge/Badge.tsx.hbs +34 -18
- package/dist/templates/react/Breadcrumb/Breadcrumb.css.hbs +0 -7
- package/dist/templates/react/Breadcrumb/Breadcrumb.test.tsx.hbs +5 -9
- package/dist/templates/react/Breadcrumb/Breadcrumb.tsx.hbs +31 -23
- package/dist/templates/react/BreadcrumbItem/BreadcrumbItem.css.hbs +0 -10
- package/dist/templates/react/BreadcrumbItem/BreadcrumbItem.test.tsx.hbs +5 -9
- package/dist/templates/react/BreadcrumbItem/BreadcrumbItem.tsx.hbs +33 -28
- package/dist/templates/react/Button/Button.css.hbs +8 -11
- package/dist/templates/react/Button/Button.test.tsx.hbs +5 -9
- package/dist/templates/react/Button/Button.tsx.hbs +57 -33
- package/dist/templates/react/ButtonGroup/ButtonGroup.css.hbs +2 -6
- package/dist/templates/react/ButtonGroup/ButtonGroup.test.tsx.hbs +5 -27
- package/dist/templates/react/ButtonGroup/ButtonGroup.tsx.hbs +32 -22
- package/dist/templates/react/Callout/Callout.css.hbs +9 -15
- package/dist/templates/react/Callout/Callout.test.tsx.hbs +4 -21
- package/dist/templates/react/Callout/Callout.tsx.hbs +41 -10
- package/dist/templates/react/Card/Card.css.hbs +6 -10
- package/dist/templates/react/Card/Card.test.tsx.hbs +5 -9
- package/dist/templates/react/Card/Card.tsx.hbs +37 -9
- package/dist/templates/react/Carousel/Carousel.css.hbs +1 -18
- package/dist/templates/react/Carousel/Carousel.test.tsx.hbs +5 -9
- package/dist/templates/react/Carousel/Carousel.tsx.hbs +50 -27
- package/dist/templates/react/CarouselItem/CarouselItem.css.hbs +1 -8
- package/dist/templates/react/CarouselItem/CarouselItem.test.tsx.hbs +5 -9
- package/dist/templates/react/CarouselItem/CarouselItem.tsx.hbs +34 -12
- package/dist/templates/react/Checkbox/Checkbox.css.hbs +1 -14
- package/dist/templates/react/Checkbox/Checkbox.test.tsx.hbs +5 -9
- package/dist/templates/react/Checkbox/Checkbox.tsx.hbs +82 -31
- package/dist/templates/react/ColorPicker/ColorPicker.css.hbs +1 -27
- package/dist/templates/react/ColorPicker/ColorPicker.test.tsx.hbs +2 -6
- package/dist/templates/react/ColorPicker/ColorPicker.tsx.hbs +157 -67
- package/dist/templates/react/Combobox/Combobox.css.hbs +1 -22
- package/dist/templates/react/Combobox/Combobox.test.tsx.hbs +5 -9
- package/dist/templates/react/Combobox/Combobox.tsx.hbs +132 -44
- package/dist/templates/react/Comparison/Comparison.css.hbs +1 -13
- package/dist/templates/react/Comparison/Comparison.test.tsx.hbs +2 -6
- package/dist/templates/react/Comparison/Comparison.tsx.hbs +53 -9
- package/dist/templates/react/CopyButton/CopyButton.css.hbs +0 -14
- package/dist/templates/react/CopyButton/CopyButton.test.tsx.hbs +3 -7
- package/dist/templates/react/CopyButton/CopyButton.tsx.hbs +57 -22
- package/dist/templates/react/Details/Details.css.hbs +1 -14
- package/dist/templates/react/Details/Details.test.tsx.hbs +5 -9
- package/dist/templates/react/Details/Details.tsx.hbs +59 -30
- package/dist/templates/react/Dialog/Dialog.css.hbs +9 -14
- package/dist/templates/react/Dialog/Dialog.test.tsx.hbs +5 -9
- package/dist/templates/react/Dialog/Dialog.tsx.hbs +42 -95
- package/dist/templates/react/Divider/Divider.css.hbs +1 -11
- package/dist/templates/react/Divider/Divider.test.tsx.hbs +2 -6
- package/dist/templates/react/Divider/Divider.tsx.hbs +40 -7
- package/dist/templates/react/Drawer/Drawer.css.hbs +1 -18
- package/dist/templates/react/Drawer/Drawer.test.tsx.hbs +5 -9
- package/dist/templates/react/Drawer/Drawer.tsx.hbs +60 -44
- package/dist/templates/react/Dropdown/Dropdown.css.hbs +1 -10
- package/dist/templates/react/Dropdown/Dropdown.test.tsx.hbs +5 -9
- package/dist/templates/react/Dropdown/Dropdown.tsx.hbs +78 -52
- package/dist/templates/react/DropdownItem/DropdownItem.css.hbs +0 -12
- package/dist/templates/react/DropdownItem/DropdownItem.test.tsx.hbs +5 -9
- package/dist/templates/react/DropdownItem/DropdownItem.tsx.hbs +78 -15
- package/dist/templates/react/FileInput/FileInput.css.hbs +19 -0
- package/dist/templates/react/FileInput/FileInput.jsx.hbs +107 -0
- package/dist/templates/react/FileInput/FileInput.test.jsx.hbs +15 -0
- package/dist/templates/react/FileInput/FileInput.test.tsx.hbs +10 -0
- package/dist/templates/react/FileInput/FileInput.tsx.hbs +161 -0
- package/dist/templates/react/FormatBytes/FormatBytes.css.hbs +0 -7
- package/dist/templates/react/FormatBytes/FormatBytes.test.tsx.hbs +3 -7
- package/dist/templates/react/FormatBytes/FormatBytes.tsx.hbs +46 -7
- package/dist/templates/react/FormatDate/FormatDate.css.hbs +0 -7
- package/dist/templates/react/FormatDate/FormatDate.test.tsx.hbs +2 -6
- package/dist/templates/react/FormatDate/FormatDate.tsx.hbs +66 -18
- package/dist/templates/react/FormatNumber/FormatNumber.css.hbs +0 -7
- package/dist/templates/react/FormatNumber/FormatNumber.test.tsx.hbs +3 -7
- package/dist/templates/react/FormatNumber/FormatNumber.tsx.hbs +56 -10
- package/dist/templates/react/Icon/Icon.css.hbs +1 -12
- package/dist/templates/react/Icon/Icon.test.tsx.hbs +3 -7
- package/dist/templates/react/Icon/Icon.tsx.hbs +52 -39
- package/dist/templates/react/Include/Include.css.hbs +0 -7
- package/dist/templates/react/Include/Include.test.tsx.hbs +3 -7
- package/dist/templates/react/Include/Include.tsx.hbs +62 -24
- package/dist/templates/react/Input/Input.css.hbs +11 -12
- package/dist/templates/react/Input/Input.test.tsx.hbs +2 -6
- package/dist/templates/react/Input/Input.tsx.hbs +114 -41
- package/dist/templates/react/IntersectionObserver/IntersectionObserver.css.hbs +0 -7
- package/dist/templates/react/IntersectionObserver/IntersectionObserver.test.tsx.hbs +5 -9
- package/dist/templates/react/IntersectionObserver/IntersectionObserver.tsx.hbs +56 -26
- package/dist/templates/react/KIGUMI_SETUP.md.hbs +52 -0
- package/dist/templates/react/MutationObserver/MutationObserver.css.hbs +0 -7
- package/dist/templates/react/MutationObserver/MutationObserver.test.tsx.hbs +5 -9
- package/dist/templates/react/MutationObserver/MutationObserver.tsx.hbs +61 -22
- package/dist/templates/react/NumberInput/NumberInput.css.hbs +19 -0
- package/dist/templates/react/NumberInput/NumberInput.jsx.hbs +127 -0
- package/dist/templates/react/NumberInput/NumberInput.test.jsx.hbs +15 -0
- package/dist/templates/react/NumberInput/NumberInput.test.tsx.hbs +10 -0
- package/dist/templates/react/NumberInput/NumberInput.tsx.hbs +194 -0
- package/dist/templates/react/Option/Option.css.hbs +0 -10
- package/dist/templates/react/Option/Option.test.tsx.hbs +5 -9
- package/dist/templates/react/Option/Option.tsx.hbs +38 -5
- package/dist/templates/react/Page/Page.css.hbs +11 -79
- package/dist/templates/react/Page/Page.test.tsx.hbs +1 -48
- package/dist/templates/react/Page/Page.tsx.hbs +46 -58
- package/dist/templates/react/Popover/Popover.css.hbs +1 -15
- package/dist/templates/react/Popover/Popover.test.tsx.hbs +5 -9
- package/dist/templates/react/Popover/Popover.tsx.hbs +88 -46
- package/dist/templates/react/Popup/Popup.css.hbs +1 -15
- package/dist/templates/react/Popup/Popup.test.tsx.hbs +5 -9
- package/dist/templates/react/Popup/Popup.tsx.hbs +81 -24
- package/dist/templates/react/ProgressBar/ProgressBar.css.hbs +1 -12
- package/dist/templates/react/ProgressBar/ProgressBar.test.tsx.hbs +3 -7
- package/dist/templates/react/ProgressBar/ProgressBar.tsx.hbs +40 -6
- package/dist/templates/react/ProgressRing/ProgressRing.css.hbs +1 -16
- package/dist/templates/react/ProgressRing/ProgressRing.test.tsx.hbs +3 -7
- package/dist/templates/react/ProgressRing/ProgressRing.tsx.hbs +38 -5
- package/dist/templates/react/QrCode/QrCode.css.hbs +1 -8
- package/dist/templates/react/QrCode/QrCode.test.tsx.hbs +3 -7
- package/dist/templates/react/QrCode/QrCode.tsx.hbs +54 -14
- package/dist/templates/react/Radio/Radio.css.hbs +1 -11
- package/dist/templates/react/Radio/Radio.test.tsx.hbs +5 -9
- package/dist/templates/react/Radio/Radio.tsx.hbs +69 -9
- package/dist/templates/react/RadioGroup/RadioGroup.css.hbs +0 -11
- package/dist/templates/react/RadioGroup/RadioGroup.test.tsx.hbs +5 -9
- package/dist/templates/react/RadioGroup/RadioGroup.tsx.hbs +74 -31
- package/dist/templates/react/Rating/Rating.css.hbs +1 -10
- package/dist/templates/react/Rating/Rating.test.tsx.hbs +2 -6
- package/dist/templates/react/Rating/Rating.tsx.hbs +67 -23
- package/dist/templates/react/RelativeTime/RelativeTime.css.hbs +0 -7
- package/dist/templates/react/RelativeTime/RelativeTime.test.tsx.hbs +2 -6
- package/dist/templates/react/RelativeTime/RelativeTime.tsx.hbs +50 -10
- package/dist/templates/react/ResizeObserver/ResizeObserver.css.hbs +0 -7
- package/dist/templates/react/ResizeObserver/ResizeObserver.test.tsx.hbs +5 -9
- package/dist/templates/react/ResizeObserver/ResizeObserver.tsx.hbs +48 -17
- package/dist/templates/react/Scroller/Scroller.css.hbs +1 -9
- package/dist/templates/react/Scroller/Scroller.test.tsx.hbs +5 -9
- package/dist/templates/react/Scroller/Scroller.tsx.hbs +40 -9
- package/dist/templates/react/Select/Select.css.hbs +1 -22
- package/dist/templates/react/Select/Select.test.tsx.hbs +5 -9
- package/dist/templates/react/Select/Select.tsx.hbs +174 -72
- package/dist/templates/react/Skeleton/Skeleton.css.hbs +1 -9
- package/dist/templates/react/Skeleton/Skeleton.test.tsx.hbs +2 -6
- package/dist/templates/react/Skeleton/Skeleton.tsx.hbs +40 -6
- package/dist/templates/react/Slider/Slider.css.hbs +1 -16
- package/dist/templates/react/Slider/Slider.test.tsx.hbs +2 -6
- package/dist/templates/react/Slider/Slider.tsx.hbs +117 -39
- package/dist/templates/react/Sparkline/Sparkline.css.hbs +14 -0
- package/dist/templates/react/Sparkline/Sparkline.jsx.hbs +64 -0
- package/dist/templates/react/Sparkline/Sparkline.test.jsx.hbs +15 -0
- package/dist/templates/react/Sparkline/Sparkline.test.tsx.hbs +10 -0
- package/dist/templates/react/Sparkline/Sparkline.tsx.hbs +78 -0
- package/dist/templates/react/Spinner/Spinner.css.hbs +1 -11
- package/dist/templates/react/Spinner/Spinner.test.tsx.hbs +2 -6
- package/dist/templates/react/Spinner/Spinner.tsx.hbs +41 -6
- package/dist/templates/react/SplitPanel/SplitPanel.css.hbs +1 -14
- package/dist/templates/react/SplitPanel/SplitPanel.test.tsx.hbs +5 -9
- package/dist/templates/react/SplitPanel/SplitPanel.tsx.hbs +63 -24
- package/dist/templates/react/Switch/Switch.css.hbs +1 -14
- package/dist/templates/react/Switch/Switch.test.tsx.hbs +5 -9
- package/dist/templates/react/Switch/Switch.tsx.hbs +105 -27
- package/dist/templates/react/Tab/Tab.css.hbs +0 -7
- package/dist/templates/react/Tab/Tab.test.tsx.hbs +5 -9
- package/dist/templates/react/Tab/Tab.tsx.hbs +37 -4
- package/dist/templates/react/TabGroup/TabGroup.css.hbs +1 -17
- package/dist/templates/react/TabGroup/TabGroup.test.tsx.hbs +5 -9
- package/dist/templates/react/TabGroup/TabGroup.tsx.hbs +62 -28
- package/dist/templates/react/TabPanel/TabPanel.css.hbs +1 -8
- package/dist/templates/react/TabPanel/TabPanel.test.tsx.hbs +5 -9
- package/dist/templates/react/TabPanel/TabPanel.tsx.hbs +38 -5
- package/dist/templates/react/Tag/Tag.css.hbs +0 -10
- package/dist/templates/react/Tag/Tag.test.tsx.hbs +5 -9
- package/dist/templates/react/Tag/Tag.tsx.hbs +48 -20
- package/dist/templates/react/Textarea/Textarea.css.hbs +0 -11
- package/dist/templates/react/Textarea/Textarea.test.tsx.hbs +2 -6
- package/dist/templates/react/Textarea/Textarea.tsx.hbs +156 -58
- package/dist/templates/react/Tooltip/Tooltip.css.hbs +1 -11
- package/dist/templates/react/Tooltip/Tooltip.test.tsx.hbs +5 -9
- package/dist/templates/react/Tooltip/Tooltip.tsx.hbs +102 -54
- package/dist/templates/react/Tree/Tree.css.hbs +1 -12
- package/dist/templates/react/Tree/Tree.test.tsx.hbs +5 -9
- package/dist/templates/react/Tree/Tree.tsx.hbs +39 -15
- package/dist/templates/react/TreeItem/TreeItem.css.hbs +1 -22
- package/dist/templates/react/TreeItem/TreeItem.test.tsx.hbs +5 -9
- package/dist/templates/react/TreeItem/TreeItem.tsx.hbs +106 -50
- package/dist/templates/react/ZoomableFrame/ZoomableFrame.css.hbs +0 -10
- package/dist/templates/react/ZoomableFrame/ZoomableFrame.test.tsx.hbs +3 -7
- package/dist/templates/react/ZoomableFrame/ZoomableFrame.tsx.hbs +83 -41
- package/dist/templates/vue/AnimatedImage/AnimatedImage.css.hbs +11 -0
- package/dist/templates/vue/AnimatedImage/AnimatedImage.js.vue.hbs +49 -0
- package/dist/templates/vue/AnimatedImage/AnimatedImage.test.js.hbs +10 -0
- package/dist/templates/vue/AnimatedImage/AnimatedImage.test.ts.hbs +10 -0
- package/dist/templates/vue/AnimatedImage/AnimatedImage.vue.hbs +54 -0
- package/dist/templates/vue/Animation/Animation.css.hbs +11 -0
- package/dist/templates/vue/Animation/Animation.js.vue.hbs +60 -0
- package/dist/templates/vue/Animation/Animation.test.js.hbs +10 -0
- package/dist/templates/vue/Animation/Animation.test.ts.hbs +10 -0
- package/dist/templates/vue/Animation/Animation.vue.hbs +66 -0
- package/dist/templates/vue/Avatar/Avatar.css.hbs +11 -0
- package/dist/templates/vue/Avatar/Avatar.js.vue.hbs +47 -0
- package/dist/templates/vue/Avatar/Avatar.test.js.hbs +10 -0
- package/dist/templates/vue/Avatar/Avatar.test.ts.hbs +10 -0
- package/dist/templates/vue/Avatar/Avatar.vue.hbs +51 -0
- package/dist/templates/vue/Badge/Badge.css.hbs +11 -0
- package/dist/templates/vue/Badge/Badge.js.vue.hbs +44 -0
- package/dist/templates/vue/Badge/Badge.test.js.hbs +10 -0
- package/dist/templates/vue/Badge/Badge.test.ts.hbs +10 -0
- package/dist/templates/vue/Badge/Badge.vue.hbs +48 -0
- package/dist/templates/vue/Breadcrumb/Breadcrumb.css.hbs +11 -0
- package/dist/templates/vue/Breadcrumb/Breadcrumb.js.vue.hbs +42 -0
- package/dist/templates/vue/Breadcrumb/Breadcrumb.test.js.hbs +10 -0
- package/dist/templates/vue/Breadcrumb/Breadcrumb.test.ts.hbs +10 -0
- package/dist/templates/vue/Breadcrumb/Breadcrumb.vue.hbs +46 -0
- package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.css.hbs +11 -0
- package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.js.vue.hbs +46 -0
- package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.test.js.hbs +10 -0
- package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.test.ts.hbs +10 -0
- package/dist/templates/vue/BreadcrumbItem/BreadcrumbItem.vue.hbs +50 -0
- package/dist/templates/vue/Button/Button.css.hbs +20 -0
- package/dist/templates/vue/Button/Button.js.vue.hbs +63 -0
- package/dist/templates/vue/Button/Button.test.js.hbs +10 -0
- package/dist/templates/vue/Button/Button.test.ts.hbs +10 -0
- package/dist/templates/vue/Button/Button.vue.hbs +69 -0
- package/dist/templates/vue/ButtonGroup/ButtonGroup.css.hbs +11 -0
- package/dist/templates/vue/ButtonGroup/ButtonGroup.js.vue.hbs +42 -0
- package/dist/templates/vue/ButtonGroup/ButtonGroup.test.js.hbs +10 -0
- package/dist/templates/vue/ButtonGroup/ButtonGroup.test.ts.hbs +10 -0
- package/dist/templates/vue/ButtonGroup/ButtonGroup.vue.hbs +46 -0
- package/dist/templates/vue/Callout/Callout.css.hbs +11 -0
- package/dist/templates/vue/Callout/Callout.js.vue.hbs +44 -0
- package/dist/templates/vue/Callout/Callout.test.js.hbs +10 -0
- package/dist/templates/vue/Callout/Callout.test.ts.hbs +10 -0
- package/dist/templates/vue/Callout/Callout.vue.hbs +48 -0
- package/dist/templates/vue/Card/Card.css.hbs +17 -0
- package/dist/templates/vue/Card/Card.js.vue.hbs +51 -0
- package/dist/templates/vue/Card/Card.test.js.hbs +10 -0
- package/dist/templates/vue/Card/Card.test.ts.hbs +10 -0
- package/dist/templates/vue/Card/Card.vue.hbs +55 -0
- package/dist/templates/vue/Carousel/Carousel.css.hbs +11 -0
- package/dist/templates/vue/Carousel/Carousel.js.vue.hbs +55 -0
- package/dist/templates/vue/Carousel/Carousel.test.js.hbs +10 -0
- package/dist/templates/vue/Carousel/Carousel.test.ts.hbs +10 -0
- package/dist/templates/vue/Carousel/Carousel.vue.hbs +59 -0
- package/dist/templates/vue/CarouselItem/CarouselItem.css.hbs +11 -0
- package/dist/templates/vue/CarouselItem/CarouselItem.js.vue.hbs +41 -0
- package/dist/templates/vue/CarouselItem/CarouselItem.test.js.hbs +10 -0
- package/dist/templates/vue/CarouselItem/CarouselItem.test.ts.hbs +10 -0
- package/dist/templates/vue/CarouselItem/CarouselItem.vue.hbs +45 -0
- package/dist/templates/vue/Checkbox/Checkbox.css.hbs +11 -0
- package/dist/templates/vue/Checkbox/Checkbox.js.vue.hbs +65 -0
- package/dist/templates/vue/Checkbox/Checkbox.test.js.hbs +10 -0
- package/dist/templates/vue/Checkbox/Checkbox.test.ts.hbs +10 -0
- package/dist/templates/vue/Checkbox/Checkbox.vue.hbs +73 -0
- package/dist/templates/vue/ColorPicker/ColorPicker.css.hbs +11 -0
- package/dist/templates/vue/ColorPicker/ColorPicker.js.vue.hbs +87 -0
- package/dist/templates/vue/ColorPicker/ColorPicker.test.js.hbs +10 -0
- package/dist/templates/vue/ColorPicker/ColorPicker.test.ts.hbs +10 -0
- package/dist/templates/vue/ColorPicker/ColorPicker.vue.hbs +99 -0
- package/dist/templates/vue/Combobox/Combobox.css.hbs +11 -0
- package/dist/templates/vue/Combobox/Combobox.js.vue.hbs +94 -0
- package/dist/templates/vue/Combobox/Combobox.test.js.hbs +10 -0
- package/dist/templates/vue/Combobox/Combobox.test.ts.hbs +10 -0
- package/dist/templates/vue/Combobox/Combobox.vue.hbs +107 -0
- package/dist/templates/vue/Comparison/Comparison.css.hbs +11 -0
- package/dist/templates/vue/Comparison/Comparison.js.vue.hbs +45 -0
- package/dist/templates/vue/Comparison/Comparison.test.js.hbs +10 -0
- package/dist/templates/vue/Comparison/Comparison.test.ts.hbs +10 -0
- package/dist/templates/vue/Comparison/Comparison.vue.hbs +49 -0
- package/dist/templates/vue/CopyButton/CopyButton.css.hbs +11 -0
- package/dist/templates/vue/CopyButton/CopyButton.js.vue.hbs +55 -0
- package/dist/templates/vue/CopyButton/CopyButton.test.js.hbs +10 -0
- package/dist/templates/vue/CopyButton/CopyButton.test.ts.hbs +10 -0
- package/dist/templates/vue/CopyButton/CopyButton.vue.hbs +60 -0
- package/dist/templates/vue/Details/Details.css.hbs +11 -0
- package/dist/templates/vue/Details/Details.js.vue.hbs +61 -0
- package/dist/templates/vue/Details/Details.test.js.hbs +10 -0
- package/dist/templates/vue/Details/Details.test.ts.hbs +10 -0
- package/dist/templates/vue/Details/Details.vue.hbs +68 -0
- package/dist/templates/vue/Dialog/Dialog.css.hbs +23 -0
- package/dist/templates/vue/Dialog/Dialog.js.vue.hbs +57 -0
- package/dist/templates/vue/Dialog/Dialog.test.js.hbs +10 -0
- package/dist/templates/vue/Dialog/Dialog.test.ts.hbs +10 -0
- package/dist/templates/vue/Dialog/Dialog.vue.hbs +64 -0
- package/dist/templates/vue/Divider/Divider.css.hbs +11 -0
- package/dist/templates/vue/Divider/Divider.js.vue.hbs +41 -0
- package/dist/templates/vue/Divider/Divider.test.js.hbs +10 -0
- package/dist/templates/vue/Divider/Divider.test.ts.hbs +10 -0
- package/dist/templates/vue/Divider/Divider.vue.hbs +45 -0
- package/dist/templates/vue/Drawer/Drawer.css.hbs +11 -0
- package/dist/templates/vue/Drawer/Drawer.js.vue.hbs +58 -0
- package/dist/templates/vue/Drawer/Drawer.test.js.hbs +10 -0
- package/dist/templates/vue/Drawer/Drawer.test.ts.hbs +10 -0
- package/dist/templates/vue/Drawer/Drawer.vue.hbs +65 -0
- package/dist/templates/vue/Dropdown/Dropdown.css.hbs +11 -0
- package/dist/templates/vue/Dropdown/Dropdown.js.vue.hbs +61 -0
- package/dist/templates/vue/Dropdown/Dropdown.test.js.hbs +10 -0
- package/dist/templates/vue/Dropdown/Dropdown.test.ts.hbs +10 -0
- package/dist/templates/vue/Dropdown/Dropdown.vue.hbs +69 -0
- package/dist/templates/vue/DropdownItem/DropdownItem.css.hbs +11 -0
- package/dist/templates/vue/DropdownItem/DropdownItem.js.vue.hbs +54 -0
- package/dist/templates/vue/DropdownItem/DropdownItem.test.js.hbs +10 -0
- package/dist/templates/vue/DropdownItem/DropdownItem.test.ts.hbs +10 -0
- package/dist/templates/vue/DropdownItem/DropdownItem.vue.hbs +59 -0
- package/dist/templates/vue/FileInput/FileInput.css.hbs +19 -0
- package/dist/templates/vue/FileInput/FileInput.js.vue.hbs +69 -0
- package/dist/templates/vue/FileInput/FileInput.test.js.hbs +10 -0
- package/dist/templates/vue/FileInput/FileInput.test.ts.hbs +10 -0
- package/dist/templates/vue/FileInput/FileInput.vue.hbs +77 -0
- package/dist/templates/vue/FormatBytes/FormatBytes.css.hbs +11 -0
- package/dist/templates/vue/FormatBytes/FormatBytes.js.vue.hbs +44 -0
- package/dist/templates/vue/FormatBytes/FormatBytes.test.js.hbs +10 -0
- package/dist/templates/vue/FormatBytes/FormatBytes.test.ts.hbs +10 -0
- package/dist/templates/vue/FormatBytes/FormatBytes.vue.hbs +48 -0
- package/dist/templates/vue/FormatDate/FormatDate.css.hbs +11 -0
- package/dist/templates/vue/FormatDate/FormatDate.js.vue.hbs +53 -0
- package/dist/templates/vue/FormatDate/FormatDate.test.js.hbs +10 -0
- package/dist/templates/vue/FormatDate/FormatDate.test.ts.hbs +10 -0
- package/dist/templates/vue/FormatDate/FormatDate.vue.hbs +57 -0
- package/dist/templates/vue/FormatNumber/FormatNumber.css.hbs +11 -0
- package/dist/templates/vue/FormatNumber/FormatNumber.js.vue.hbs +51 -0
- package/dist/templates/vue/FormatNumber/FormatNumber.test.js.hbs +10 -0
- package/dist/templates/vue/FormatNumber/FormatNumber.test.ts.hbs +10 -0
- package/dist/templates/vue/FormatNumber/FormatNumber.vue.hbs +55 -0
- package/dist/templates/vue/Icon/Icon.css.hbs +11 -0
- package/dist/templates/vue/Icon/Icon.js.vue.hbs +52 -0
- package/dist/templates/vue/Icon/Icon.test.js.hbs +10 -0
- package/dist/templates/vue/Icon/Icon.test.ts.hbs +10 -0
- package/dist/templates/vue/Icon/Icon.vue.hbs +57 -0
- package/dist/templates/vue/Include/Include.css.hbs +11 -0
- package/dist/templates/vue/Include/Include.js.vue.hbs +47 -0
- package/dist/templates/vue/Include/Include.test.js.hbs +10 -0
- package/dist/templates/vue/Include/Include.test.ts.hbs +10 -0
- package/dist/templates/vue/Include/Include.vue.hbs +52 -0
- package/dist/templates/vue/Input/Input.css.hbs +24 -0
- package/dist/templates/vue/Input/Input.js.vue.hbs +82 -0
- package/dist/templates/vue/Input/Input.test.js.hbs +10 -0
- package/dist/templates/vue/Input/Input.test.ts.hbs +10 -0
- package/dist/templates/vue/Input/Input.vue.hbs +91 -0
- package/dist/templates/vue/IntersectionObserver/IntersectionObserver.css.hbs +11 -0
- package/dist/templates/vue/IntersectionObserver/IntersectionObserver.js.vue.hbs +45 -0
- package/dist/templates/vue/IntersectionObserver/IntersectionObserver.test.js.hbs +10 -0
- package/dist/templates/vue/IntersectionObserver/IntersectionObserver.test.ts.hbs +10 -0
- package/dist/templates/vue/IntersectionObserver/IntersectionObserver.vue.hbs +49 -0
- package/dist/templates/vue/MutationObserver/MutationObserver.css.hbs +11 -0
- package/dist/templates/vue/MutationObserver/MutationObserver.js.vue.hbs +48 -0
- package/dist/templates/vue/MutationObserver/MutationObserver.test.js.hbs +10 -0
- package/dist/templates/vue/MutationObserver/MutationObserver.test.ts.hbs +10 -0
- package/dist/templates/vue/MutationObserver/MutationObserver.vue.hbs +52 -0
- package/dist/templates/vue/NumberInput/NumberInput.css.hbs +19 -0
- package/dist/templates/vue/NumberInput/NumberInput.js.vue.hbs +76 -0
- package/dist/templates/vue/NumberInput/NumberInput.test.js.hbs +10 -0
- package/dist/templates/vue/NumberInput/NumberInput.test.ts.hbs +10 -0
- package/dist/templates/vue/NumberInput/NumberInput.vue.hbs +84 -0
- package/dist/templates/vue/Option/Option.css.hbs +11 -0
- package/dist/templates/vue/Option/Option.js.vue.hbs +44 -0
- package/dist/templates/vue/Option/Option.test.js.hbs +10 -0
- package/dist/templates/vue/Option/Option.test.ts.hbs +10 -0
- package/dist/templates/vue/Option/Option.vue.hbs +48 -0
- package/dist/templates/vue/Page/Page.css.hbs +11 -0
- package/dist/templates/vue/Page/Page.js.vue.hbs +63 -0
- package/dist/templates/vue/Page/Page.test.js.hbs +10 -0
- package/dist/templates/vue/Page/Page.test.ts.hbs +10 -0
- package/dist/templates/vue/Page/Page.vue.hbs +67 -0
- package/dist/templates/vue/Popover/Popover.css.hbs +11 -0
- package/dist/templates/vue/Popover/Popover.js.vue.hbs +59 -0
- package/dist/templates/vue/Popover/Popover.test.js.hbs +10 -0
- package/dist/templates/vue/Popover/Popover.test.ts.hbs +10 -0
- package/dist/templates/vue/Popover/Popover.vue.hbs +66 -0
- package/dist/templates/vue/Popup/Popup.css.hbs +11 -0
- package/dist/templates/vue/Popup/Popup.js.vue.hbs +61 -0
- package/dist/templates/vue/Popup/Popup.test.js.hbs +10 -0
- package/dist/templates/vue/Popup/Popup.test.ts.hbs +10 -0
- package/dist/templates/vue/Popup/Popup.vue.hbs +65 -0
- package/dist/templates/vue/ProgressBar/ProgressBar.css.hbs +11 -0
- package/dist/templates/vue/ProgressBar/ProgressBar.js.vue.hbs +43 -0
- package/dist/templates/vue/ProgressBar/ProgressBar.test.js.hbs +10 -0
- package/dist/templates/vue/ProgressBar/ProgressBar.test.ts.hbs +10 -0
- package/dist/templates/vue/ProgressBar/ProgressBar.vue.hbs +47 -0
- package/dist/templates/vue/ProgressRing/ProgressRing.css.hbs +11 -0
- package/dist/templates/vue/ProgressRing/ProgressRing.js.vue.hbs +42 -0
- package/dist/templates/vue/ProgressRing/ProgressRing.test.js.hbs +10 -0
- package/dist/templates/vue/ProgressRing/ProgressRing.test.ts.hbs +10 -0
- package/dist/templates/vue/ProgressRing/ProgressRing.vue.hbs +46 -0
- package/dist/templates/vue/QrCode/QrCode.css.hbs +11 -0
- package/dist/templates/vue/QrCode/QrCode.js.vue.hbs +47 -0
- package/dist/templates/vue/QrCode/QrCode.test.js.hbs +10 -0
- package/dist/templates/vue/QrCode/QrCode.test.ts.hbs +10 -0
- package/dist/templates/vue/QrCode/QrCode.vue.hbs +51 -0
- package/dist/templates/vue/Radio/Radio.css.hbs +11 -0
- package/dist/templates/vue/Radio/Radio.js.vue.hbs +47 -0
- package/dist/templates/vue/Radio/Radio.test.js.hbs +10 -0
- package/dist/templates/vue/Radio/Radio.test.ts.hbs +10 -0
- package/dist/templates/vue/Radio/Radio.vue.hbs +52 -0
- package/dist/templates/vue/RadioGroup/RadioGroup.css.hbs +11 -0
- package/dist/templates/vue/RadioGroup/RadioGroup.js.vue.hbs +56 -0
- package/dist/templates/vue/RadioGroup/RadioGroup.test.js.hbs +10 -0
- package/dist/templates/vue/RadioGroup/RadioGroup.test.ts.hbs +10 -0
- package/dist/templates/vue/RadioGroup/RadioGroup.vue.hbs +62 -0
- package/dist/templates/vue/Rating/Rating.css.hbs +11 -0
- package/dist/templates/vue/Rating/Rating.js.vue.hbs +52 -0
- package/dist/templates/vue/Rating/Rating.test.js.hbs +10 -0
- package/dist/templates/vue/Rating/Rating.test.ts.hbs +10 -0
- package/dist/templates/vue/Rating/Rating.vue.hbs +57 -0
- package/dist/templates/vue/RelativeTime/RelativeTime.css.hbs +11 -0
- package/dist/templates/vue/RelativeTime/RelativeTime.js.vue.hbs +45 -0
- package/dist/templates/vue/RelativeTime/RelativeTime.test.js.hbs +10 -0
- package/dist/templates/vue/RelativeTime/RelativeTime.test.ts.hbs +10 -0
- package/dist/templates/vue/RelativeTime/RelativeTime.vue.hbs +49 -0
- package/dist/templates/vue/ResizeObserver/ResizeObserver.css.hbs +11 -0
- package/dist/templates/vue/ResizeObserver/ResizeObserver.js.vue.hbs +42 -0
- package/dist/templates/vue/ResizeObserver/ResizeObserver.test.js.hbs +10 -0
- package/dist/templates/vue/ResizeObserver/ResizeObserver.test.ts.hbs +10 -0
- package/dist/templates/vue/ResizeObserver/ResizeObserver.vue.hbs +46 -0
- package/dist/templates/vue/Scroller/Scroller.css.hbs +11 -0
- package/dist/templates/vue/Scroller/Scroller.js.vue.hbs +42 -0
- package/dist/templates/vue/Scroller/Scroller.test.js.hbs +10 -0
- package/dist/templates/vue/Scroller/Scroller.test.ts.hbs +10 -0
- package/dist/templates/vue/Scroller/Scroller.vue.hbs +46 -0
- package/dist/templates/vue/Select/Select.css.hbs +11 -0
- package/dist/templates/vue/Select/Select.js.vue.hbs +94 -0
- package/dist/templates/vue/Select/Select.test.js.hbs +10 -0
- package/dist/templates/vue/Select/Select.test.ts.hbs +10 -0
- package/dist/templates/vue/Select/Select.vue.hbs +107 -0
- package/dist/templates/vue/Skeleton/Skeleton.css.hbs +11 -0
- package/dist/templates/vue/Skeleton/Skeleton.js.vue.hbs +41 -0
- package/dist/templates/vue/Skeleton/Skeleton.test.js.hbs +10 -0
- package/dist/templates/vue/Skeleton/Skeleton.test.ts.hbs +10 -0
- package/dist/templates/vue/Skeleton/Skeleton.vue.hbs +45 -0
- package/dist/templates/vue/Slider/Slider.css.hbs +11 -0
- package/dist/templates/vue/Slider/Slider.js.vue.hbs +69 -0
- package/dist/templates/vue/Slider/Slider.test.js.hbs +10 -0
- package/dist/templates/vue/Slider/Slider.test.ts.hbs +10 -0
- package/dist/templates/vue/Slider/Slider.vue.hbs +77 -0
- package/dist/templates/vue/Sparkline/Sparkline.css.hbs +14 -0
- package/dist/templates/vue/Sparkline/Sparkline.js.vue.hbs +48 -0
- package/dist/templates/vue/Sparkline/Sparkline.test.js.hbs +10 -0
- package/dist/templates/vue/Sparkline/Sparkline.test.ts.hbs +10 -0
- package/dist/templates/vue/Sparkline/Sparkline.vue.hbs +52 -0
- package/dist/templates/vue/Spinner/Spinner.css.hbs +11 -0
- package/dist/templates/vue/Spinner/Spinner.js.vue.hbs +41 -0
- package/dist/templates/vue/Spinner/Spinner.test.js.hbs +10 -0
- package/dist/templates/vue/Spinner/Spinner.test.ts.hbs +10 -0
- package/dist/templates/vue/Spinner/Spinner.vue.hbs +45 -0
- package/dist/templates/vue/SplitPanel/SplitPanel.css.hbs +11 -0
- package/dist/templates/vue/SplitPanel/SplitPanel.js.vue.hbs +51 -0
- package/dist/templates/vue/SplitPanel/SplitPanel.test.js.hbs +10 -0
- package/dist/templates/vue/SplitPanel/SplitPanel.test.ts.hbs +10 -0
- package/dist/templates/vue/SplitPanel/SplitPanel.vue.hbs +55 -0
- package/dist/templates/vue/Switch/Switch.css.hbs +11 -0
- package/dist/templates/vue/Switch/Switch.js.vue.hbs +64 -0
- package/dist/templates/vue/Switch/Switch.test.js.hbs +10 -0
- package/dist/templates/vue/Switch/Switch.test.ts.hbs +10 -0
- package/dist/templates/vue/Switch/Switch.vue.hbs +72 -0
- package/dist/templates/vue/Tab/Tab.css.hbs +11 -0
- package/dist/templates/vue/Tab/Tab.js.vue.hbs +42 -0
- package/dist/templates/vue/Tab/Tab.test.js.hbs +10 -0
- package/dist/templates/vue/Tab/Tab.test.ts.hbs +10 -0
- package/dist/templates/vue/Tab/Tab.vue.hbs +46 -0
- package/dist/templates/vue/TabGroup/TabGroup.css.hbs +11 -0
- package/dist/templates/vue/TabGroup/TabGroup.js.vue.hbs +48 -0
- package/dist/templates/vue/TabGroup/TabGroup.test.js.hbs +10 -0
- package/dist/templates/vue/TabGroup/TabGroup.test.ts.hbs +10 -0
- package/dist/templates/vue/TabGroup/TabGroup.vue.hbs +53 -0
- package/dist/templates/vue/TabPanel/TabPanel.css.hbs +11 -0
- package/dist/templates/vue/TabPanel/TabPanel.js.vue.hbs +42 -0
- package/dist/templates/vue/TabPanel/TabPanel.test.js.hbs +10 -0
- package/dist/templates/vue/TabPanel/TabPanel.test.ts.hbs +10 -0
- package/dist/templates/vue/TabPanel/TabPanel.vue.hbs +46 -0
- package/dist/templates/vue/Tag/Tag.css.hbs +11 -0
- package/dist/templates/vue/Tag/Tag.js.vue.hbs +46 -0
- package/dist/templates/vue/Tag/Tag.test.js.hbs +10 -0
- package/dist/templates/vue/Tag/Tag.test.ts.hbs +10 -0
- package/dist/templates/vue/Tag/Tag.vue.hbs +50 -0
- package/dist/templates/vue/Textarea/Textarea.css.hbs +11 -0
- package/dist/templates/vue/Textarea/Textarea.js.vue.hbs +76 -0
- package/dist/templates/vue/Textarea/Textarea.test.js.hbs +10 -0
- package/dist/templates/vue/Textarea/Textarea.test.ts.hbs +10 -0
- package/dist/templates/vue/Textarea/Textarea.vue.hbs +84 -0
- package/dist/templates/vue/Tooltip/Tooltip.css.hbs +11 -0
- package/dist/templates/vue/Tooltip/Tooltip.js.vue.hbs +62 -0
- package/dist/templates/vue/Tooltip/Tooltip.test.js.hbs +10 -0
- package/dist/templates/vue/Tooltip/Tooltip.test.ts.hbs +10 -0
- package/dist/templates/vue/Tooltip/Tooltip.vue.hbs +69 -0
- package/dist/templates/vue/Tree/Tree.css.hbs +11 -0
- package/dist/templates/vue/Tree/Tree.js.vue.hbs +44 -0
- package/dist/templates/vue/Tree/Tree.test.js.hbs +10 -0
- package/dist/templates/vue/Tree/Tree.test.ts.hbs +10 -0
- package/dist/templates/vue/Tree/Tree.vue.hbs +48 -0
- package/dist/templates/vue/TreeItem/TreeItem.css.hbs +11 -0
- package/dist/templates/vue/TreeItem/TreeItem.js.vue.hbs +63 -0
- package/dist/templates/vue/TreeItem/TreeItem.test.js.hbs +10 -0
- package/dist/templates/vue/TreeItem/TreeItem.test.ts.hbs +10 -0
- package/dist/templates/vue/TreeItem/TreeItem.vue.hbs +72 -0
- package/dist/templates/vue/ZoomableFrame/ZoomableFrame.css.hbs +11 -0
- package/dist/templates/vue/ZoomableFrame/ZoomableFrame.js.vue.hbs +58 -0
- package/dist/templates/vue/ZoomableFrame/ZoomableFrame.test.js.hbs +10 -0
- package/dist/templates/vue/ZoomableFrame/ZoomableFrame.test.ts.hbs +10 -0
- package/dist/templates/vue/ZoomableFrame/ZoomableFrame.vue.hbs +63 -0
- package/dist/tier-2ZEZT6E3.js +12 -0
- package/dist/tier-GFXZQZUI.js +12 -0
- package/dist/tier-KTTMXAXP.js +12 -0
- package/dist/tier-QW5YWE4V.js +12 -0
- package/package.json +4 -1
- package/skills/kigumi-react/SKILL.md +1 -1
- package/skills/kigumi-react/references/components/file-input.md +52 -0
- package/skills/kigumi-react/references/components/number-input.md +54 -0
- package/skills/kigumi-react/references/components/sparkline.md +50 -0
- package/skills/kigumi-react/references/transformation-rules.md +3 -0
- package/templates/react/AnimatedImage/AnimatedImage.css.hbs +1 -9
- package/templates/react/AnimatedImage/AnimatedImage.test.tsx.hbs +3 -7
- package/templates/react/AnimatedImage/AnimatedImage.tsx.hbs +50 -27
- package/templates/react/Animation/Animation.css.hbs +0 -7
- package/templates/react/Animation/Animation.test.tsx.hbs +5 -9
- package/templates/react/Animation/Animation.tsx.hbs +51 -32
- package/templates/react/Avatar/Avatar.css.hbs +1 -10
- package/templates/react/Avatar/Avatar.test.tsx.hbs +2 -6
- package/templates/react/Avatar/Avatar.tsx.hbs +41 -24
- package/templates/react/Badge/Badge.css.hbs +1 -8
- package/templates/react/Badge/Badge.test.tsx.hbs +5 -9
- package/templates/react/Badge/Badge.tsx.hbs +34 -18
- package/templates/react/Breadcrumb/Breadcrumb.css.hbs +0 -7
- package/templates/react/Breadcrumb/Breadcrumb.test.tsx.hbs +5 -9
- package/templates/react/Breadcrumb/Breadcrumb.tsx.hbs +31 -23
- package/templates/react/BreadcrumbItem/BreadcrumbItem.css.hbs +0 -10
- package/templates/react/BreadcrumbItem/BreadcrumbItem.test.tsx.hbs +5 -9
- package/templates/react/BreadcrumbItem/BreadcrumbItem.tsx.hbs +33 -28
- package/templates/react/Button/Button.css.hbs +8 -11
- package/templates/react/Button/Button.test.tsx.hbs +5 -9
- package/templates/react/Button/Button.tsx.hbs +57 -33
- package/templates/react/ButtonGroup/ButtonGroup.css.hbs +2 -6
- package/templates/react/ButtonGroup/ButtonGroup.test.tsx.hbs +5 -27
- package/templates/react/ButtonGroup/ButtonGroup.tsx.hbs +32 -22
- package/templates/react/Callout/Callout.css.hbs +9 -15
- package/templates/react/Callout/Callout.test.tsx.hbs +4 -21
- package/templates/react/Callout/Callout.tsx.hbs +41 -10
- package/templates/react/Card/Card.css.hbs +6 -10
- package/templates/react/Card/Card.test.tsx.hbs +5 -9
- package/templates/react/Card/Card.tsx.hbs +37 -9
- package/templates/react/Carousel/Carousel.css.hbs +1 -18
- package/templates/react/Carousel/Carousel.test.tsx.hbs +5 -9
- package/templates/react/Carousel/Carousel.tsx.hbs +50 -27
- package/templates/react/CarouselItem/CarouselItem.css.hbs +1 -8
- package/templates/react/CarouselItem/CarouselItem.test.tsx.hbs +5 -9
- package/templates/react/CarouselItem/CarouselItem.tsx.hbs +34 -12
- package/templates/react/Checkbox/Checkbox.css.hbs +1 -14
- package/templates/react/Checkbox/Checkbox.test.tsx.hbs +5 -9
- package/templates/react/Checkbox/Checkbox.tsx.hbs +82 -31
- package/templates/react/ColorPicker/ColorPicker.css.hbs +1 -27
- package/templates/react/ColorPicker/ColorPicker.test.tsx.hbs +2 -6
- package/templates/react/ColorPicker/ColorPicker.tsx.hbs +157 -67
- package/templates/react/Combobox/Combobox.css.hbs +1 -22
- package/templates/react/Combobox/Combobox.test.tsx.hbs +5 -9
- package/templates/react/Combobox/Combobox.tsx.hbs +132 -44
- package/templates/react/Comparison/Comparison.css.hbs +1 -13
- package/templates/react/Comparison/Comparison.test.tsx.hbs +2 -6
- package/templates/react/Comparison/Comparison.tsx.hbs +53 -9
- package/templates/react/CopyButton/CopyButton.css.hbs +0 -14
- package/templates/react/CopyButton/CopyButton.test.tsx.hbs +3 -7
- package/templates/react/CopyButton/CopyButton.tsx.hbs +57 -22
- package/templates/react/Details/Details.css.hbs +1 -14
- package/templates/react/Details/Details.test.tsx.hbs +5 -9
- package/templates/react/Details/Details.tsx.hbs +59 -30
- package/templates/react/Dialog/Dialog.css.hbs +9 -14
- package/templates/react/Dialog/Dialog.test.tsx.hbs +5 -9
- package/templates/react/Dialog/Dialog.tsx.hbs +42 -95
- package/templates/react/Divider/Divider.css.hbs +1 -11
- package/templates/react/Divider/Divider.test.tsx.hbs +2 -6
- package/templates/react/Divider/Divider.tsx.hbs +40 -7
- package/templates/react/Drawer/Drawer.css.hbs +1 -18
- package/templates/react/Drawer/Drawer.test.tsx.hbs +5 -9
- package/templates/react/Drawer/Drawer.tsx.hbs +60 -44
- package/templates/react/Dropdown/Dropdown.css.hbs +1 -10
- package/templates/react/Dropdown/Dropdown.test.tsx.hbs +5 -9
- package/templates/react/Dropdown/Dropdown.tsx.hbs +78 -52
- package/templates/react/DropdownItem/DropdownItem.css.hbs +0 -12
- package/templates/react/DropdownItem/DropdownItem.test.tsx.hbs +5 -9
- package/templates/react/DropdownItem/DropdownItem.tsx.hbs +78 -15
- package/templates/react/FileInput/FileInput.css.hbs +19 -0
- package/templates/react/FileInput/FileInput.jsx.hbs +107 -0
- package/templates/react/FileInput/FileInput.test.jsx.hbs +15 -0
- package/templates/react/FileInput/FileInput.test.tsx.hbs +10 -0
- package/templates/react/FileInput/FileInput.tsx.hbs +161 -0
- package/templates/react/FormatBytes/FormatBytes.css.hbs +0 -7
- package/templates/react/FormatBytes/FormatBytes.test.tsx.hbs +3 -7
- package/templates/react/FormatBytes/FormatBytes.tsx.hbs +46 -7
- package/templates/react/FormatDate/FormatDate.css.hbs +0 -7
- package/templates/react/FormatDate/FormatDate.test.tsx.hbs +2 -6
- package/templates/react/FormatDate/FormatDate.tsx.hbs +66 -18
- package/templates/react/FormatNumber/FormatNumber.css.hbs +0 -7
- package/templates/react/FormatNumber/FormatNumber.test.tsx.hbs +3 -7
- package/templates/react/FormatNumber/FormatNumber.tsx.hbs +56 -10
- package/templates/react/Icon/Icon.css.hbs +1 -12
- package/templates/react/Icon/Icon.test.tsx.hbs +3 -7
- package/templates/react/Icon/Icon.tsx.hbs +52 -39
- package/templates/react/Include/Include.css.hbs +0 -7
- package/templates/react/Include/Include.test.tsx.hbs +3 -7
- package/templates/react/Include/Include.tsx.hbs +62 -24
- package/templates/react/Input/Input.css.hbs +11 -12
- package/templates/react/Input/Input.test.tsx.hbs +2 -6
- package/templates/react/Input/Input.tsx.hbs +114 -41
- package/templates/react/IntersectionObserver/IntersectionObserver.css.hbs +0 -7
- package/templates/react/IntersectionObserver/IntersectionObserver.test.tsx.hbs +5 -9
- package/templates/react/IntersectionObserver/IntersectionObserver.tsx.hbs +56 -26
- package/templates/react/MutationObserver/MutationObserver.css.hbs +0 -7
- package/templates/react/MutationObserver/MutationObserver.test.tsx.hbs +5 -9
- package/templates/react/MutationObserver/MutationObserver.tsx.hbs +61 -22
- package/templates/react/NumberInput/NumberInput.css.hbs +19 -0
- package/templates/react/NumberInput/NumberInput.jsx.hbs +127 -0
- package/templates/react/NumberInput/NumberInput.test.jsx.hbs +15 -0
- package/templates/react/NumberInput/NumberInput.test.tsx.hbs +10 -0
- package/templates/react/NumberInput/NumberInput.tsx.hbs +194 -0
- package/templates/react/Option/Option.css.hbs +0 -10
- package/templates/react/Option/Option.test.tsx.hbs +5 -9
- package/templates/react/Option/Option.tsx.hbs +38 -5
- package/templates/react/Page/Page.css.hbs +11 -79
- package/templates/react/Page/Page.test.tsx.hbs +1 -48
- package/templates/react/Page/Page.tsx.hbs +46 -58
- package/templates/react/Popover/Popover.css.hbs +1 -15
- package/templates/react/Popover/Popover.test.tsx.hbs +5 -9
- package/templates/react/Popover/Popover.tsx.hbs +88 -46
- package/templates/react/Popup/Popup.css.hbs +1 -15
- package/templates/react/Popup/Popup.test.tsx.hbs +5 -9
- package/templates/react/Popup/Popup.tsx.hbs +81 -24
- package/templates/react/ProgressBar/ProgressBar.css.hbs +1 -12
- package/templates/react/ProgressBar/ProgressBar.test.tsx.hbs +3 -7
- package/templates/react/ProgressBar/ProgressBar.tsx.hbs +40 -6
- package/templates/react/ProgressRing/ProgressRing.css.hbs +1 -16
- package/templates/react/ProgressRing/ProgressRing.test.tsx.hbs +3 -7
- package/templates/react/ProgressRing/ProgressRing.tsx.hbs +38 -5
- package/templates/react/QrCode/QrCode.css.hbs +1 -8
- package/templates/react/QrCode/QrCode.test.tsx.hbs +3 -7
- package/templates/react/QrCode/QrCode.tsx.hbs +54 -14
- package/templates/react/Radio/Radio.css.hbs +1 -11
- package/templates/react/Radio/Radio.test.tsx.hbs +5 -9
- package/templates/react/Radio/Radio.tsx.hbs +69 -9
- package/templates/react/RadioGroup/RadioGroup.css.hbs +0 -11
- package/templates/react/RadioGroup/RadioGroup.test.tsx.hbs +5 -9
- package/templates/react/RadioGroup/RadioGroup.tsx.hbs +74 -31
- package/templates/react/Rating/Rating.css.hbs +1 -10
- package/templates/react/Rating/Rating.test.tsx.hbs +2 -6
- package/templates/react/Rating/Rating.tsx.hbs +67 -23
- package/templates/react/RelativeTime/RelativeTime.css.hbs +0 -7
- package/templates/react/RelativeTime/RelativeTime.test.tsx.hbs +2 -6
- package/templates/react/RelativeTime/RelativeTime.tsx.hbs +50 -10
- package/templates/react/ResizeObserver/ResizeObserver.css.hbs +0 -7
- package/templates/react/ResizeObserver/ResizeObserver.test.tsx.hbs +5 -9
- package/templates/react/ResizeObserver/ResizeObserver.tsx.hbs +48 -17
- package/templates/react/Scroller/Scroller.css.hbs +1 -9
- package/templates/react/Scroller/Scroller.test.tsx.hbs +5 -9
- package/templates/react/Scroller/Scroller.tsx.hbs +40 -9
- package/templates/react/Select/Select.css.hbs +1 -22
- package/templates/react/Select/Select.test.tsx.hbs +5 -9
- package/templates/react/Select/Select.tsx.hbs +174 -72
- package/templates/react/Skeleton/Skeleton.css.hbs +1 -9
- package/templates/react/Skeleton/Skeleton.test.tsx.hbs +2 -6
- package/templates/react/Skeleton/Skeleton.tsx.hbs +40 -6
- package/templates/react/Slider/Slider.css.hbs +1 -16
- package/templates/react/Slider/Slider.test.tsx.hbs +2 -6
- package/templates/react/Slider/Slider.tsx.hbs +117 -39
- package/templates/react/Sparkline/Sparkline.css.hbs +14 -0
- package/templates/react/Sparkline/Sparkline.jsx.hbs +64 -0
- package/templates/react/Sparkline/Sparkline.test.jsx.hbs +15 -0
- package/templates/react/Sparkline/Sparkline.test.tsx.hbs +10 -0
- package/templates/react/Sparkline/Sparkline.tsx.hbs +78 -0
- package/templates/react/Spinner/Spinner.css.hbs +1 -11
- package/templates/react/Spinner/Spinner.test.tsx.hbs +2 -6
- package/templates/react/Spinner/Spinner.tsx.hbs +41 -6
- package/templates/react/SplitPanel/SplitPanel.css.hbs +1 -14
- package/templates/react/SplitPanel/SplitPanel.test.tsx.hbs +5 -9
- package/templates/react/SplitPanel/SplitPanel.tsx.hbs +63 -24
- package/templates/react/Switch/Switch.css.hbs +1 -14
- package/templates/react/Switch/Switch.test.tsx.hbs +5 -9
- package/templates/react/Switch/Switch.tsx.hbs +105 -27
- package/templates/react/Tab/Tab.css.hbs +0 -7
- package/templates/react/Tab/Tab.test.tsx.hbs +5 -9
- package/templates/react/Tab/Tab.tsx.hbs +37 -4
- package/templates/react/TabGroup/TabGroup.css.hbs +1 -17
- package/templates/react/TabGroup/TabGroup.test.tsx.hbs +5 -9
- package/templates/react/TabGroup/TabGroup.tsx.hbs +62 -28
- package/templates/react/TabPanel/TabPanel.css.hbs +1 -8
- package/templates/react/TabPanel/TabPanel.test.tsx.hbs +5 -9
- package/templates/react/TabPanel/TabPanel.tsx.hbs +38 -5
- package/templates/react/Tag/Tag.css.hbs +0 -10
- package/templates/react/Tag/Tag.test.tsx.hbs +5 -9
- package/templates/react/Tag/Tag.tsx.hbs +48 -20
- package/templates/react/Textarea/Textarea.css.hbs +0 -11
- package/templates/react/Textarea/Textarea.test.tsx.hbs +2 -6
- package/templates/react/Textarea/Textarea.tsx.hbs +156 -58
- package/templates/react/Tooltip/Tooltip.css.hbs +1 -11
- package/templates/react/Tooltip/Tooltip.test.tsx.hbs +5 -9
- package/templates/react/Tooltip/Tooltip.tsx.hbs +102 -54
- package/templates/react/Tree/Tree.css.hbs +1 -12
- package/templates/react/Tree/Tree.test.tsx.hbs +5 -9
- package/templates/react/Tree/Tree.tsx.hbs +39 -15
- package/templates/react/TreeItem/TreeItem.css.hbs +1 -22
- package/templates/react/TreeItem/TreeItem.test.tsx.hbs +5 -9
- package/templates/react/TreeItem/TreeItem.tsx.hbs +106 -50
- package/templates/react/ZoomableFrame/ZoomableFrame.css.hbs +0 -10
- package/templates/react/ZoomableFrame/ZoomableFrame.test.tsx.hbs +3 -7
- package/templates/react/ZoomableFrame/ZoomableFrame.tsx.hbs +83 -41
- package/templates/vue/AnimatedImage/AnimatedImage.css.hbs +11 -0
- package/templates/vue/AnimatedImage/AnimatedImage.js.vue.hbs +49 -0
- package/templates/vue/AnimatedImage/AnimatedImage.test.js.hbs +10 -0
- package/templates/vue/AnimatedImage/AnimatedImage.test.ts.hbs +10 -0
- package/templates/vue/AnimatedImage/AnimatedImage.vue.hbs +54 -0
- package/templates/vue/Animation/Animation.css.hbs +11 -0
- package/templates/vue/Animation/Animation.js.vue.hbs +60 -0
- package/templates/vue/Animation/Animation.test.js.hbs +10 -0
- package/templates/vue/Animation/Animation.test.ts.hbs +10 -0
- package/templates/vue/Animation/Animation.vue.hbs +66 -0
- package/templates/vue/Avatar/Avatar.css.hbs +11 -0
- package/templates/vue/Avatar/Avatar.js.vue.hbs +47 -0
- package/templates/vue/Avatar/Avatar.test.js.hbs +10 -0
- package/templates/vue/Avatar/Avatar.test.ts.hbs +10 -0
- package/templates/vue/Avatar/Avatar.vue.hbs +51 -0
- package/templates/vue/Badge/Badge.css.hbs +11 -0
- package/templates/vue/Badge/Badge.js.vue.hbs +44 -0
- package/templates/vue/Badge/Badge.test.js.hbs +10 -0
- package/templates/vue/Badge/Badge.test.ts.hbs +10 -0
- package/templates/vue/Badge/Badge.vue.hbs +48 -0
- package/templates/vue/Breadcrumb/Breadcrumb.css.hbs +11 -0
- package/templates/vue/Breadcrumb/Breadcrumb.js.vue.hbs +42 -0
- package/templates/vue/Breadcrumb/Breadcrumb.test.js.hbs +10 -0
- package/templates/vue/Breadcrumb/Breadcrumb.test.ts.hbs +10 -0
- package/templates/vue/Breadcrumb/Breadcrumb.vue.hbs +46 -0
- package/templates/vue/BreadcrumbItem/BreadcrumbItem.css.hbs +11 -0
- package/templates/vue/BreadcrumbItem/BreadcrumbItem.js.vue.hbs +46 -0
- package/templates/vue/BreadcrumbItem/BreadcrumbItem.test.js.hbs +10 -0
- package/templates/vue/BreadcrumbItem/BreadcrumbItem.test.ts.hbs +10 -0
- package/templates/vue/BreadcrumbItem/BreadcrumbItem.vue.hbs +50 -0
- package/templates/vue/Button/Button.css.hbs +20 -0
- package/templates/vue/Button/Button.js.vue.hbs +63 -0
- package/templates/vue/Button/Button.test.js.hbs +10 -0
- package/templates/vue/Button/Button.test.ts.hbs +10 -0
- package/templates/vue/Button/Button.vue.hbs +69 -0
- package/templates/vue/ButtonGroup/ButtonGroup.css.hbs +11 -0
- package/templates/vue/ButtonGroup/ButtonGroup.js.vue.hbs +42 -0
- package/templates/vue/ButtonGroup/ButtonGroup.test.js.hbs +10 -0
- package/templates/vue/ButtonGroup/ButtonGroup.test.ts.hbs +10 -0
- package/templates/vue/ButtonGroup/ButtonGroup.vue.hbs +46 -0
- package/templates/vue/Callout/Callout.css.hbs +11 -0
- package/templates/vue/Callout/Callout.js.vue.hbs +44 -0
- package/templates/vue/Callout/Callout.test.js.hbs +10 -0
- package/templates/vue/Callout/Callout.test.ts.hbs +10 -0
- package/templates/vue/Callout/Callout.vue.hbs +48 -0
- package/templates/vue/Card/Card.css.hbs +17 -0
- package/templates/vue/Card/Card.js.vue.hbs +51 -0
- package/templates/vue/Card/Card.test.js.hbs +10 -0
- package/templates/vue/Card/Card.test.ts.hbs +10 -0
- package/templates/vue/Card/Card.vue.hbs +55 -0
- package/templates/vue/Carousel/Carousel.css.hbs +11 -0
- package/templates/vue/Carousel/Carousel.js.vue.hbs +55 -0
- package/templates/vue/Carousel/Carousel.test.js.hbs +10 -0
- package/templates/vue/Carousel/Carousel.test.ts.hbs +10 -0
- package/templates/vue/Carousel/Carousel.vue.hbs +59 -0
- package/templates/vue/CarouselItem/CarouselItem.css.hbs +11 -0
- package/templates/vue/CarouselItem/CarouselItem.js.vue.hbs +41 -0
- package/templates/vue/CarouselItem/CarouselItem.test.js.hbs +10 -0
- package/templates/vue/CarouselItem/CarouselItem.test.ts.hbs +10 -0
- package/templates/vue/CarouselItem/CarouselItem.vue.hbs +45 -0
- package/templates/vue/Checkbox/Checkbox.css.hbs +11 -0
- package/templates/vue/Checkbox/Checkbox.js.vue.hbs +65 -0
- package/templates/vue/Checkbox/Checkbox.test.js.hbs +10 -0
- package/templates/vue/Checkbox/Checkbox.test.ts.hbs +10 -0
- package/templates/vue/Checkbox/Checkbox.vue.hbs +73 -0
- package/templates/vue/ColorPicker/ColorPicker.css.hbs +11 -0
- package/templates/vue/ColorPicker/ColorPicker.js.vue.hbs +87 -0
- package/templates/vue/ColorPicker/ColorPicker.test.js.hbs +10 -0
- package/templates/vue/ColorPicker/ColorPicker.test.ts.hbs +10 -0
- package/templates/vue/ColorPicker/ColorPicker.vue.hbs +99 -0
- package/templates/vue/Combobox/Combobox.css.hbs +11 -0
- package/templates/vue/Combobox/Combobox.js.vue.hbs +94 -0
- package/templates/vue/Combobox/Combobox.test.js.hbs +10 -0
- package/templates/vue/Combobox/Combobox.test.ts.hbs +10 -0
- package/templates/vue/Combobox/Combobox.vue.hbs +107 -0
- package/templates/vue/Comparison/Comparison.css.hbs +11 -0
- package/templates/vue/Comparison/Comparison.js.vue.hbs +45 -0
- package/templates/vue/Comparison/Comparison.test.js.hbs +10 -0
- package/templates/vue/Comparison/Comparison.test.ts.hbs +10 -0
- package/templates/vue/Comparison/Comparison.vue.hbs +49 -0
- package/templates/vue/CopyButton/CopyButton.css.hbs +11 -0
- package/templates/vue/CopyButton/CopyButton.js.vue.hbs +55 -0
- package/templates/vue/CopyButton/CopyButton.test.js.hbs +10 -0
- package/templates/vue/CopyButton/CopyButton.test.ts.hbs +10 -0
- package/templates/vue/CopyButton/CopyButton.vue.hbs +60 -0
- package/templates/vue/Details/Details.css.hbs +11 -0
- package/templates/vue/Details/Details.js.vue.hbs +61 -0
- package/templates/vue/Details/Details.test.js.hbs +10 -0
- package/templates/vue/Details/Details.test.ts.hbs +10 -0
- package/templates/vue/Details/Details.vue.hbs +68 -0
- package/templates/vue/Dialog/Dialog.css.hbs +23 -0
- package/templates/vue/Dialog/Dialog.js.vue.hbs +57 -0
- package/templates/vue/Dialog/Dialog.test.js.hbs +10 -0
- package/templates/vue/Dialog/Dialog.test.ts.hbs +10 -0
- package/templates/vue/Dialog/Dialog.vue.hbs +64 -0
- package/templates/vue/Divider/Divider.css.hbs +11 -0
- package/templates/vue/Divider/Divider.js.vue.hbs +41 -0
- package/templates/vue/Divider/Divider.test.js.hbs +10 -0
- package/templates/vue/Divider/Divider.test.ts.hbs +10 -0
- package/templates/vue/Divider/Divider.vue.hbs +45 -0
- package/templates/vue/Drawer/Drawer.css.hbs +11 -0
- package/templates/vue/Drawer/Drawer.js.vue.hbs +58 -0
- package/templates/vue/Drawer/Drawer.test.js.hbs +10 -0
- package/templates/vue/Drawer/Drawer.test.ts.hbs +10 -0
- package/templates/vue/Drawer/Drawer.vue.hbs +65 -0
- package/templates/vue/Dropdown/Dropdown.css.hbs +11 -0
- package/templates/vue/Dropdown/Dropdown.js.vue.hbs +61 -0
- package/templates/vue/Dropdown/Dropdown.test.js.hbs +10 -0
- package/templates/vue/Dropdown/Dropdown.test.ts.hbs +10 -0
- package/templates/vue/Dropdown/Dropdown.vue.hbs +69 -0
- package/templates/vue/DropdownItem/DropdownItem.css.hbs +11 -0
- package/templates/vue/DropdownItem/DropdownItem.js.vue.hbs +54 -0
- package/templates/vue/DropdownItem/DropdownItem.test.js.hbs +10 -0
- package/templates/vue/DropdownItem/DropdownItem.test.ts.hbs +10 -0
- package/templates/vue/DropdownItem/DropdownItem.vue.hbs +59 -0
- package/templates/vue/FileInput/FileInput.css.hbs +19 -0
- package/templates/vue/FileInput/FileInput.js.vue.hbs +69 -0
- package/templates/vue/FileInput/FileInput.test.js.hbs +10 -0
- package/templates/vue/FileInput/FileInput.test.ts.hbs +10 -0
- package/templates/vue/FileInput/FileInput.vue.hbs +77 -0
- package/templates/vue/FormatBytes/FormatBytes.css.hbs +11 -0
- package/templates/vue/FormatBytes/FormatBytes.js.vue.hbs +44 -0
- package/templates/vue/FormatBytes/FormatBytes.test.js.hbs +10 -0
- package/templates/vue/FormatBytes/FormatBytes.test.ts.hbs +10 -0
- package/templates/vue/FormatBytes/FormatBytes.vue.hbs +48 -0
- package/templates/vue/FormatDate/FormatDate.css.hbs +11 -0
- package/templates/vue/FormatDate/FormatDate.js.vue.hbs +53 -0
- package/templates/vue/FormatDate/FormatDate.test.js.hbs +10 -0
- package/templates/vue/FormatDate/FormatDate.test.ts.hbs +10 -0
- package/templates/vue/FormatDate/FormatDate.vue.hbs +57 -0
- package/templates/vue/FormatNumber/FormatNumber.css.hbs +11 -0
- package/templates/vue/FormatNumber/FormatNumber.js.vue.hbs +51 -0
- package/templates/vue/FormatNumber/FormatNumber.test.js.hbs +10 -0
- package/templates/vue/FormatNumber/FormatNumber.test.ts.hbs +10 -0
- package/templates/vue/FormatNumber/FormatNumber.vue.hbs +55 -0
- package/templates/vue/Icon/Icon.css.hbs +11 -0
- package/templates/vue/Icon/Icon.js.vue.hbs +52 -0
- package/templates/vue/Icon/Icon.test.js.hbs +10 -0
- package/templates/vue/Icon/Icon.test.ts.hbs +10 -0
- package/templates/vue/Icon/Icon.vue.hbs +57 -0
- package/templates/vue/Include/Include.css.hbs +11 -0
- package/templates/vue/Include/Include.js.vue.hbs +47 -0
- package/templates/vue/Include/Include.test.js.hbs +10 -0
- package/templates/vue/Include/Include.test.ts.hbs +10 -0
- package/templates/vue/Include/Include.vue.hbs +52 -0
- package/templates/vue/Input/Input.css.hbs +24 -0
- package/templates/vue/Input/Input.js.vue.hbs +82 -0
- package/templates/vue/Input/Input.test.js.hbs +10 -0
- package/templates/vue/Input/Input.test.ts.hbs +10 -0
- package/templates/vue/Input/Input.vue.hbs +91 -0
- package/templates/vue/IntersectionObserver/IntersectionObserver.css.hbs +11 -0
- package/templates/vue/IntersectionObserver/IntersectionObserver.js.vue.hbs +45 -0
- package/templates/vue/IntersectionObserver/IntersectionObserver.test.js.hbs +10 -0
- package/templates/vue/IntersectionObserver/IntersectionObserver.test.ts.hbs +10 -0
- package/templates/vue/IntersectionObserver/IntersectionObserver.vue.hbs +49 -0
- package/templates/vue/MutationObserver/MutationObserver.css.hbs +11 -0
- package/templates/vue/MutationObserver/MutationObserver.js.vue.hbs +48 -0
- package/templates/vue/MutationObserver/MutationObserver.test.js.hbs +10 -0
- package/templates/vue/MutationObserver/MutationObserver.test.ts.hbs +10 -0
- package/templates/vue/MutationObserver/MutationObserver.vue.hbs +52 -0
- package/templates/vue/NumberInput/NumberInput.css.hbs +19 -0
- package/templates/vue/NumberInput/NumberInput.js.vue.hbs +76 -0
- package/templates/vue/NumberInput/NumberInput.test.js.hbs +10 -0
- package/templates/vue/NumberInput/NumberInput.test.ts.hbs +10 -0
- package/templates/vue/NumberInput/NumberInput.vue.hbs +84 -0
- package/templates/vue/Option/Option.css.hbs +11 -0
- package/templates/vue/Option/Option.js.vue.hbs +44 -0
- package/templates/vue/Option/Option.test.js.hbs +10 -0
- package/templates/vue/Option/Option.test.ts.hbs +10 -0
- package/templates/vue/Option/Option.vue.hbs +48 -0
- package/templates/vue/Page/Page.css.hbs +11 -0
- package/templates/vue/Page/Page.js.vue.hbs +63 -0
- package/templates/vue/Page/Page.test.js.hbs +10 -0
- package/templates/vue/Page/Page.test.ts.hbs +10 -0
- package/templates/vue/Page/Page.vue.hbs +67 -0
- package/templates/vue/Popover/Popover.css.hbs +11 -0
- package/templates/vue/Popover/Popover.js.vue.hbs +59 -0
- package/templates/vue/Popover/Popover.test.js.hbs +10 -0
- package/templates/vue/Popover/Popover.test.ts.hbs +10 -0
- package/templates/vue/Popover/Popover.vue.hbs +66 -0
- package/templates/vue/Popup/Popup.css.hbs +11 -0
- package/templates/vue/Popup/Popup.js.vue.hbs +61 -0
- package/templates/vue/Popup/Popup.test.js.hbs +10 -0
- package/templates/vue/Popup/Popup.test.ts.hbs +10 -0
- package/templates/vue/Popup/Popup.vue.hbs +65 -0
- package/templates/vue/ProgressBar/ProgressBar.css.hbs +11 -0
- package/templates/vue/ProgressBar/ProgressBar.js.vue.hbs +43 -0
- package/templates/vue/ProgressBar/ProgressBar.test.js.hbs +10 -0
- package/templates/vue/ProgressBar/ProgressBar.test.ts.hbs +10 -0
- package/templates/vue/ProgressBar/ProgressBar.vue.hbs +47 -0
- package/templates/vue/ProgressRing/ProgressRing.css.hbs +11 -0
- package/templates/vue/ProgressRing/ProgressRing.js.vue.hbs +42 -0
- package/templates/vue/ProgressRing/ProgressRing.test.js.hbs +10 -0
- package/templates/vue/ProgressRing/ProgressRing.test.ts.hbs +10 -0
- package/templates/vue/ProgressRing/ProgressRing.vue.hbs +46 -0
- package/templates/vue/QrCode/QrCode.css.hbs +11 -0
- package/templates/vue/QrCode/QrCode.js.vue.hbs +47 -0
- package/templates/vue/QrCode/QrCode.test.js.hbs +10 -0
- package/templates/vue/QrCode/QrCode.test.ts.hbs +10 -0
- package/templates/vue/QrCode/QrCode.vue.hbs +51 -0
- package/templates/vue/Radio/Radio.css.hbs +11 -0
- package/templates/vue/Radio/Radio.js.vue.hbs +47 -0
- package/templates/vue/Radio/Radio.test.js.hbs +10 -0
- package/templates/vue/Radio/Radio.test.ts.hbs +10 -0
- package/templates/vue/Radio/Radio.vue.hbs +52 -0
- package/templates/vue/RadioGroup/RadioGroup.css.hbs +11 -0
- package/templates/vue/RadioGroup/RadioGroup.js.vue.hbs +56 -0
- package/templates/vue/RadioGroup/RadioGroup.test.js.hbs +10 -0
- package/templates/vue/RadioGroup/RadioGroup.test.ts.hbs +10 -0
- package/templates/vue/RadioGroup/RadioGroup.vue.hbs +62 -0
- package/templates/vue/Rating/Rating.css.hbs +11 -0
- package/templates/vue/Rating/Rating.js.vue.hbs +52 -0
- package/templates/vue/Rating/Rating.test.js.hbs +10 -0
- package/templates/vue/Rating/Rating.test.ts.hbs +10 -0
- package/templates/vue/Rating/Rating.vue.hbs +57 -0
- package/templates/vue/RelativeTime/RelativeTime.css.hbs +11 -0
- package/templates/vue/RelativeTime/RelativeTime.js.vue.hbs +45 -0
- package/templates/vue/RelativeTime/RelativeTime.test.js.hbs +10 -0
- package/templates/vue/RelativeTime/RelativeTime.test.ts.hbs +10 -0
- package/templates/vue/RelativeTime/RelativeTime.vue.hbs +49 -0
- package/templates/vue/ResizeObserver/ResizeObserver.css.hbs +11 -0
- package/templates/vue/ResizeObserver/ResizeObserver.js.vue.hbs +42 -0
- package/templates/vue/ResizeObserver/ResizeObserver.test.js.hbs +10 -0
- package/templates/vue/ResizeObserver/ResizeObserver.test.ts.hbs +10 -0
- package/templates/vue/ResizeObserver/ResizeObserver.vue.hbs +46 -0
- package/templates/vue/Scroller/Scroller.css.hbs +11 -0
- package/templates/vue/Scroller/Scroller.js.vue.hbs +42 -0
- package/templates/vue/Scroller/Scroller.test.js.hbs +10 -0
- package/templates/vue/Scroller/Scroller.test.ts.hbs +10 -0
- package/templates/vue/Scroller/Scroller.vue.hbs +46 -0
- package/templates/vue/Select/Select.css.hbs +11 -0
- package/templates/vue/Select/Select.js.vue.hbs +94 -0
- package/templates/vue/Select/Select.test.js.hbs +10 -0
- package/templates/vue/Select/Select.test.ts.hbs +10 -0
- package/templates/vue/Select/Select.vue.hbs +107 -0
- package/templates/vue/Skeleton/Skeleton.css.hbs +11 -0
- package/templates/vue/Skeleton/Skeleton.js.vue.hbs +41 -0
- package/templates/vue/Skeleton/Skeleton.test.js.hbs +10 -0
- package/templates/vue/Skeleton/Skeleton.test.ts.hbs +10 -0
- package/templates/vue/Skeleton/Skeleton.vue.hbs +45 -0
- package/templates/vue/Slider/Slider.css.hbs +11 -0
- package/templates/vue/Slider/Slider.js.vue.hbs +69 -0
- package/templates/vue/Slider/Slider.test.js.hbs +10 -0
- package/templates/vue/Slider/Slider.test.ts.hbs +10 -0
- package/templates/vue/Slider/Slider.vue.hbs +77 -0
- package/templates/vue/Sparkline/Sparkline.css.hbs +14 -0
- package/templates/vue/Sparkline/Sparkline.js.vue.hbs +48 -0
- package/templates/vue/Sparkline/Sparkline.test.js.hbs +10 -0
- package/templates/vue/Sparkline/Sparkline.test.ts.hbs +10 -0
- package/templates/vue/Sparkline/Sparkline.vue.hbs +52 -0
- package/templates/vue/Spinner/Spinner.css.hbs +11 -0
- package/templates/vue/Spinner/Spinner.js.vue.hbs +41 -0
- package/templates/vue/Spinner/Spinner.test.js.hbs +10 -0
- package/templates/vue/Spinner/Spinner.test.ts.hbs +10 -0
- package/templates/vue/Spinner/Spinner.vue.hbs +45 -0
- package/templates/vue/SplitPanel/SplitPanel.css.hbs +11 -0
- package/templates/vue/SplitPanel/SplitPanel.js.vue.hbs +51 -0
- package/templates/vue/SplitPanel/SplitPanel.test.js.hbs +10 -0
- package/templates/vue/SplitPanel/SplitPanel.test.ts.hbs +10 -0
- package/templates/vue/SplitPanel/SplitPanel.vue.hbs +55 -0
- package/templates/vue/Switch/Switch.css.hbs +11 -0
- package/templates/vue/Switch/Switch.js.vue.hbs +64 -0
- package/templates/vue/Switch/Switch.test.js.hbs +10 -0
- package/templates/vue/Switch/Switch.test.ts.hbs +10 -0
- package/templates/vue/Switch/Switch.vue.hbs +72 -0
- package/templates/vue/Tab/Tab.css.hbs +11 -0
- package/templates/vue/Tab/Tab.js.vue.hbs +42 -0
- package/templates/vue/Tab/Tab.test.js.hbs +10 -0
- package/templates/vue/Tab/Tab.test.ts.hbs +10 -0
- package/templates/vue/Tab/Tab.vue.hbs +46 -0
- package/templates/vue/TabGroup/TabGroup.css.hbs +11 -0
- package/templates/vue/TabGroup/TabGroup.js.vue.hbs +48 -0
- package/templates/vue/TabGroup/TabGroup.test.js.hbs +10 -0
- package/templates/vue/TabGroup/TabGroup.test.ts.hbs +10 -0
- package/templates/vue/TabGroup/TabGroup.vue.hbs +53 -0
- package/templates/vue/TabPanel/TabPanel.css.hbs +11 -0
- package/templates/vue/TabPanel/TabPanel.js.vue.hbs +42 -0
- package/templates/vue/TabPanel/TabPanel.test.js.hbs +10 -0
- package/templates/vue/TabPanel/TabPanel.test.ts.hbs +10 -0
- package/templates/vue/TabPanel/TabPanel.vue.hbs +46 -0
- package/templates/vue/Tag/Tag.css.hbs +11 -0
- package/templates/vue/Tag/Tag.js.vue.hbs +46 -0
- package/templates/vue/Tag/Tag.test.js.hbs +10 -0
- package/templates/vue/Tag/Tag.test.ts.hbs +10 -0
- package/templates/vue/Tag/Tag.vue.hbs +50 -0
- package/templates/vue/Textarea/Textarea.css.hbs +11 -0
- package/templates/vue/Textarea/Textarea.js.vue.hbs +76 -0
- package/templates/vue/Textarea/Textarea.test.js.hbs +10 -0
- package/templates/vue/Textarea/Textarea.test.ts.hbs +10 -0
- package/templates/vue/Textarea/Textarea.vue.hbs +84 -0
- package/templates/vue/Tooltip/Tooltip.css.hbs +11 -0
- package/templates/vue/Tooltip/Tooltip.js.vue.hbs +62 -0
- package/templates/vue/Tooltip/Tooltip.test.js.hbs +10 -0
- package/templates/vue/Tooltip/Tooltip.test.ts.hbs +10 -0
- package/templates/vue/Tooltip/Tooltip.vue.hbs +69 -0
- package/templates/vue/Tree/Tree.css.hbs +11 -0
- package/templates/vue/Tree/Tree.js.vue.hbs +44 -0
- package/templates/vue/Tree/Tree.test.js.hbs +10 -0
- package/templates/vue/Tree/Tree.test.ts.hbs +10 -0
- package/templates/vue/Tree/Tree.vue.hbs +48 -0
- package/templates/vue/TreeItem/TreeItem.css.hbs +11 -0
- package/templates/vue/TreeItem/TreeItem.js.vue.hbs +63 -0
- package/templates/vue/TreeItem/TreeItem.test.js.hbs +10 -0
- package/templates/vue/TreeItem/TreeItem.test.ts.hbs +10 -0
- package/templates/vue/TreeItem/TreeItem.vue.hbs +72 -0
- package/templates/vue/ZoomableFrame/ZoomableFrame.css.hbs +11 -0
- package/templates/vue/ZoomableFrame/ZoomableFrame.js.vue.hbs +58 -0
- package/templates/vue/ZoomableFrame/ZoomableFrame.test.js.hbs +10 -0
- package/templates/vue/ZoomableFrame/ZoomableFrame.test.ts.hbs +10 -0
- package/templates/vue/ZoomableFrame/ZoomableFrame.vue.hbs +63 -0
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+

|
|
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
|
|
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
|
-
**
|
|
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
|
-
|
|
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
|
-
#
|
|
67
|
-
|
|
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
|
-
### `
|
|
91
|
+
### `theme`
|
|
81
92
|
|
|
82
|
-
|
|
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
|
|
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
|
-
|
|
101
|
+
### `doctor`
|
|
89
102
|
|
|
90
|
-
|
|
103
|
+
Diagnose and fix common issues in your project:
|
|
91
104
|
|
|
92
|
-
|
|
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
|
|
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
|
+
};
|