@indielayer/ui 0.0.0-dev-20240125104319
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/LICENSE +21 -0
- package/README.md +43 -0
- package/env.d.ts +1 -0
- package/exports/nuxt.mjs +33 -0
- package/exports/nuxt.plugin.js +8 -0
- package/exports/tailwind.preset.js +41 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/lib/common/colors.d.ts +7 -0
- package/lib/common/colors.js +19 -0
- package/lib/common/icons.d.ts +17 -0
- package/lib/common/icons.js +19 -0
- package/lib/common/utils.d.ts +38 -0
- package/lib/common/utils.js +25 -0
- package/lib/components/accordion/Accordion.vue.d.ts +60 -0
- package/lib/components/accordion/Accordion.vue.js +40 -0
- package/lib/components/accordion/Accordion.vue2.js +4 -0
- package/lib/components/accordion/AccordionItem.vue.d.ts +88 -0
- package/lib/components/accordion/AccordionItem.vue.js +138 -0
- package/lib/components/accordion/AccordionItem.vue2.js +4 -0
- package/lib/components/accordion/__tests__/Accordion.spec.d.ts +1 -0
- package/lib/components/accordion/index.d.ts +4 -0
- package/lib/components/accordion/theme/Accordion.base.theme.d.ts +3 -0
- package/lib/components/accordion/theme/Accordion.base.theme.js +8 -0
- package/lib/components/accordion/theme/Accordion.carbon.theme.d.ts +3 -0
- package/lib/components/accordion/theme/Accordion.carbon.theme.js +8 -0
- package/lib/components/accordion/theme/AccordionItem.base.theme.d.ts +3 -0
- package/lib/components/accordion/theme/AccordionItem.base.theme.js +16 -0
- package/lib/components/accordion/theme/AccordionItem.carbon.theme.d.ts +3 -0
- package/lib/components/accordion/theme/AccordionItem.carbon.theme.js +16 -0
- package/lib/components/alert/Alert.vue.d.ts +61 -0
- package/lib/components/alert/Alert.vue.js +9 -0
- package/lib/components/alert/Alert.vue2.js +61 -0
- package/lib/components/alert/Alert.vue3.js +8 -0
- package/lib/components/alert/__tests__/Alert.spec.d.ts +1 -0
- package/lib/components/alert/index.d.ts +2 -0
- package/lib/components/alert/theme/Alert.base.theme.d.ts +3 -0
- package/lib/components/alert/theme/Alert.base.theme.js +41 -0
- package/lib/components/alert/theme/Alert.carbon.theme.d.ts +3 -0
- package/lib/components/alert/theme/Alert.carbon.theme.js +41 -0
- package/lib/components/avatar/Avatar.vue.d.ts +82 -0
- package/lib/components/avatar/Avatar.vue.js +9 -0
- package/lib/components/avatar/Avatar.vue2.js +75 -0
- package/lib/components/avatar/Avatar.vue3.js +7 -0
- package/lib/components/avatar/__tests__/Avatar.spec.d.ts +1 -0
- package/lib/components/avatar/index.d.ts +2 -0
- package/lib/components/avatar/theme/Avatar.base.theme.d.ts +3 -0
- package/lib/components/avatar/theme/Avatar.base.theme.js +25 -0
- package/lib/components/avatar/theme/Avatar.carbon.theme.d.ts +3 -0
- package/lib/components/avatar/theme/Avatar.carbon.theme.js +5 -0
- package/lib/components/badge/Badge.vue.d.ts +123 -0
- package/lib/components/badge/Badge.vue.js +93 -0
- package/lib/components/badge/Badge.vue2.js +4 -0
- package/lib/components/badge/__tests__/Badge.spec.d.ts +1 -0
- package/lib/components/badge/index.d.ts +2 -0
- package/lib/components/badge/theme/Badge.base.theme.d.ts +3 -0
- package/lib/components/badge/theme/Badge.base.theme.js +12 -0
- package/lib/components/badge/theme/Badge.carbon.theme.d.ts +3 -0
- package/lib/components/badge/theme/Badge.carbon.theme.js +5 -0
- package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +62 -0
- package/lib/components/breadcrumbs/Breadcrumbs.vue.js +69 -0
- package/lib/components/breadcrumbs/Breadcrumbs.vue2.js +4 -0
- package/lib/components/breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +1 -0
- package/lib/components/breadcrumbs/index.d.ts +2 -0
- package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.d.ts +3 -0
- package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.js +10 -0
- package/lib/components/breadcrumbs/theme/Breadcrumbs.carbon.theme.d.ts +3 -0
- package/lib/components/breadcrumbs/theme/Breadcrumbs.carbon.theme.js +10 -0
- package/lib/components/button/Button.vue.d.ts +145 -0
- package/lib/components/button/Button.vue.js +9 -0
- package/lib/components/button/Button.vue2.js +117 -0
- package/lib/components/button/Button.vue3.js +8 -0
- package/lib/components/button/ButtonGroup.vue.d.ts +113 -0
- package/lib/components/button/ButtonGroup.vue.js +9 -0
- package/lib/components/button/ButtonGroup.vue2.js +53 -0
- package/lib/components/button/ButtonGroup.vue3.js +7 -0
- package/lib/components/button/__tests__/ Button.spec.d.ts +1 -0
- package/lib/components/button/__tests__/ ButtonGroup.spec.d.ts +1 -0
- package/lib/components/button/index.d.ts +4 -0
- package/lib/components/button/theme/Button.base.theme.d.ts +3 -0
- package/lib/components/button/theme/Button.base.theme.js +138 -0
- package/lib/components/button/theme/Button.carbon.theme.d.ts +3 -0
- package/lib/components/button/theme/Button.carbon.theme.js +138 -0
- package/lib/components/button/theme/ButtonGroup.base.theme.d.ts +3 -0
- package/lib/components/button/theme/ButtonGroup.base.theme.js +8 -0
- package/lib/components/button/theme/ButtonGroup.carbon.theme.d.ts +3 -0
- package/lib/components/button/theme/ButtonGroup.carbon.theme.js +8 -0
- package/lib/components/card/Card.vue.d.ts +37 -0
- package/lib/components/card/Card.vue.js +30 -0
- package/lib/components/card/Card.vue2.js +4 -0
- package/lib/components/card/__tests__/Card.spec.d.ts +1 -0
- package/lib/components/card/index.d.ts +2 -0
- package/lib/components/card/theme/Card.base.theme.d.ts +3 -0
- package/lib/components/card/theme/Card.base.theme.js +8 -0
- package/lib/components/card/theme/Card.carbon.theme.d.ts +3 -0
- package/lib/components/card/theme/Card.carbon.theme.js +5 -0
- package/lib/components/carousel/Carousel.vue.d.ts +85 -0
- package/lib/components/carousel/Carousel.vue.js +94 -0
- package/lib/components/carousel/Carousel.vue2.js +4 -0
- package/lib/components/carousel/CarouselSlide.vue.d.ts +22 -0
- package/lib/components/carousel/CarouselSlide.vue.js +9 -0
- package/lib/components/carousel/CarouselSlide.vue2.js +25 -0
- package/lib/components/carousel/CarouselSlide.vue3.js +6 -0
- package/lib/components/carousel/__tests__/Carousel.spec.d.ts +1 -0
- package/lib/components/carousel/index.d.ts +4 -0
- package/lib/components/carousel/theme/Carousel.base.theme.d.ts +3 -0
- package/lib/components/carousel/theme/Carousel.base.theme.js +16 -0
- package/lib/components/carousel/theme/Carousel.carbon.theme.d.ts +3 -0
- package/lib/components/carousel/theme/Carousel.carbon.theme.js +5 -0
- package/lib/components/carousel/theme/CarouselSlide.base.theme.d.ts +3 -0
- package/lib/components/carousel/theme/CarouselSlide.base.theme.js +8 -0
- package/lib/components/carousel/theme/CarouselSlide.carbon.theme.d.ts +3 -0
- package/lib/components/carousel/theme/CarouselSlide.carbon.theme.js +5 -0
- package/lib/components/checkbox/Checkbox.vue.d.ts +155 -0
- package/lib/components/checkbox/Checkbox.vue.js +9 -0
- package/lib/components/checkbox/Checkbox.vue2.js +142 -0
- package/lib/components/checkbox/Checkbox.vue3.js +6 -0
- package/lib/components/checkbox/__tests__/Checkbox.spec.d.ts +1 -0
- package/lib/components/checkbox/index.d.ts +2 -0
- package/lib/components/checkbox/theme/Checkbox.base.theme.d.ts +3 -0
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +59 -0
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.d.ts +3 -0
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +59 -0
- package/lib/components/container/Container.vue.d.ts +33 -0
- package/lib/components/container/Container.vue.js +29 -0
- package/lib/components/container/Container.vue2.js +4 -0
- package/lib/components/container/__tests__/Container.spec.d.ts +1 -0
- package/lib/components/container/index.d.ts +2 -0
- package/lib/components/container/theme/Container.base.theme.d.ts +3 -0
- package/lib/components/container/theme/Container.base.theme.js +8 -0
- package/lib/components/container/theme/Container.carbon.theme.d.ts +3 -0
- package/lib/components/container/theme/Container.carbon.theme.js +5 -0
- package/lib/components/divider/Divider.vue.d.ts +20 -0
- package/lib/components/divider/Divider.vue.js +52 -0
- package/lib/components/divider/Divider.vue2.js +4 -0
- package/lib/components/divider/__tests__/Divider.spec.d.ts +1 -0
- package/lib/components/divider/index.d.ts +2 -0
- package/lib/components/divider/theme/Divider.base.theme.d.ts +3 -0
- package/lib/components/divider/theme/Divider.base.theme.js +10 -0
- package/lib/components/divider/theme/Divider.carbon.theme.d.ts +3 -0
- package/lib/components/divider/theme/Divider.carbon.theme.js +5 -0
- package/lib/components/drawer/Drawer.vue.d.ts +101 -0
- package/lib/components/drawer/Drawer.vue.js +170 -0
- package/lib/components/drawer/Drawer.vue2.js +4 -0
- package/lib/components/drawer/__tests__/Drawer.spec.d.ts +1 -0
- package/lib/components/drawer/index.d.ts +2 -0
- package/lib/components/drawer/theme/Drawer.base.theme.d.ts +3 -0
- package/lib/components/drawer/theme/Drawer.base.theme.js +9 -0
- package/lib/components/drawer/theme/Drawer.carbon.theme.d.ts +3 -0
- package/lib/components/drawer/theme/Drawer.carbon.theme.js +5 -0
- package/lib/components/form/Form.vue.d.ts +103 -0
- package/lib/components/form/Form.vue.js +109 -0
- package/lib/components/form/Form.vue2.js +4 -0
- package/lib/components/form/__tests__/Form.spec.d.ts +1 -0
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form/theme/Form.base.theme.d.ts +3 -0
- package/lib/components/form/theme/Form.base.theme.js +12 -0
- package/lib/components/form/theme/Form.carbon.theme.d.ts +3 -0
- package/lib/components/form/theme/Form.carbon.theme.js +12 -0
- package/lib/components/formGroup/FormGroup.vue.d.ts +132 -0
- package/lib/components/formGroup/FormGroup.vue.js +82 -0
- package/lib/components/formGroup/FormGroup.vue2.js +4 -0
- package/lib/components/formGroup/__tests__/FormGroup.spec.d.ts +1 -0
- package/lib/components/formGroup/index.d.ts +2 -0
- package/lib/components/formGroup/theme/FormGroup.base.theme.d.ts +3 -0
- package/lib/components/formGroup/theme/FormGroup.base.theme.js +11 -0
- package/lib/components/formGroup/theme/FormGroup.carbon.theme.d.ts +3 -0
- package/lib/components/formGroup/theme/FormGroup.carbon.theme.js +11 -0
- package/lib/components/icon/Icon.vue.d.ts +64 -0
- package/lib/components/icon/Icon.vue.js +73 -0
- package/lib/components/icon/Icon.vue2.js +4 -0
- package/lib/components/icon/__tests__/Icon.spec.d.ts +1 -0
- package/lib/components/icon/index.d.ts +2 -0
- package/lib/components/icon/theme/Icon.base.theme.d.ts +3 -0
- package/lib/components/icon/theme/Icon.base.theme.js +11 -0
- package/lib/components/icon/theme/Icon.carbon.theme.d.ts +3 -0
- package/lib/components/icon/theme/Icon.carbon.theme.js +8 -0
- package/lib/components/image/Image.vue.d.ts +15 -0
- package/lib/components/image/Image.vue.js +31 -0
- package/lib/components/image/Image.vue2.js +4 -0
- package/lib/components/image/__tests__/Image.spec.d.ts +1 -0
- package/lib/components/image/index.d.ts +2 -0
- package/lib/components/image/theme/Image.base.theme.d.ts +3 -0
- package/lib/components/image/theme/Image.base.theme.js +8 -0
- package/lib/components/image/theme/Image.carbon.theme.d.ts +3 -0
- package/lib/components/image/theme/Image.carbon.theme.js +5 -0
- package/lib/components/index.d.ts +42 -0
- package/lib/components/index.js +111 -0
- package/lib/components/input/Input.vue.d.ts +208 -0
- package/lib/components/input/Input.vue.js +147 -0
- package/lib/components/input/Input.vue2.js +4 -0
- package/lib/components/input/__tests__/Input.spec.d.ts +1 -0
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/input/theme/Input.base.theme.d.ts +3 -0
- package/lib/components/input/theme/Input.base.theme.js +17 -0
- package/lib/components/input/theme/Input.carbon.theme.d.ts +3 -0
- package/lib/components/input/theme/Input.carbon.theme.js +17 -0
- package/lib/components/inputFooter/InputFooter.vue.d.ts +18 -0
- package/lib/components/inputFooter/InputFooter.vue.js +27 -0
- package/lib/components/inputFooter/InputFooter.vue2.js +4 -0
- package/lib/components/inputFooter/__tests__/InputFooter.spec.d.ts +1 -0
- package/lib/components/inputFooter/index.d.ts +2 -0
- package/lib/components/inputFooter/theme/InputFooter.base.theme.d.ts +3 -0
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +10 -0
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.d.ts +3 -0
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +10 -0
- package/lib/components/label/Label.vue.d.ts +68 -0
- package/lib/components/label/Label.vue.js +48 -0
- package/lib/components/label/Label.vue2.js +4 -0
- package/lib/components/label/__tests__/Label.spec.d.ts +1 -0
- package/lib/components/label/index.d.ts +2 -0
- package/lib/components/label/theme/Label.base.theme.d.ts +3 -0
- package/lib/components/label/theme/Label.base.theme.js +15 -0
- package/lib/components/label/theme/Label.carbon.theme.d.ts +3 -0
- package/lib/components/label/theme/Label.carbon.theme.js +12 -0
- package/lib/components/link/Link.vue.d.ts +61 -0
- package/lib/components/link/Link.vue.js +9 -0
- package/lib/components/link/Link.vue2.js +47 -0
- package/lib/components/link/Link.vue3.js +8 -0
- package/lib/components/link/__tests__/Link.spec.d.ts +1 -0
- package/lib/components/link/index.d.ts +2 -0
- package/lib/components/link/theme/Link.base.theme.d.ts +3 -0
- package/lib/components/link/theme/Link.base.theme.js +25 -0
- package/lib/components/link/theme/Link.carbon.theme.d.ts +3 -0
- package/lib/components/link/theme/Link.carbon.theme.js +5 -0
- package/lib/components/loader/Loader.vue.d.ts +49 -0
- package/lib/components/loader/Loader.vue.js +54 -0
- package/lib/components/loader/Loader.vue2.js +4 -0
- package/lib/components/loader/__tests__/Loader.spec.d.ts +1 -0
- package/lib/components/loader/index.d.ts +2 -0
- package/lib/components/loader/theme/Loader.base.theme.d.ts +3 -0
- package/lib/components/loader/theme/Loader.base.theme.js +11 -0
- package/lib/components/loader/theme/Loader.carbon.theme.d.ts +3 -0
- package/lib/components/loader/theme/Loader.carbon.theme.js +11 -0
- package/lib/components/menu/Menu.vue.d.ts +123 -0
- package/lib/components/menu/Menu.vue.js +135 -0
- package/lib/components/menu/Menu.vue2.js +4 -0
- package/lib/components/menu/MenuItem.vue.d.ts +154 -0
- package/lib/components/menu/MenuItem.vue.js +9 -0
- package/lib/components/menu/MenuItem.vue2.js +142 -0
- package/lib/components/menu/MenuItem.vue3.js +7 -0
- package/lib/components/menu/__tests__/Menu.spec.d.ts +1 -0
- package/lib/components/menu/__tests__/MenuItem.spec.d.ts +1 -0
- package/lib/components/menu/index.d.ts +4 -0
- package/lib/components/menu/theme/Menu.base.theme.d.ts +3 -0
- package/lib/components/menu/theme/Menu.base.theme.js +8 -0
- package/lib/components/menu/theme/Menu.carbon.theme.d.ts +3 -0
- package/lib/components/menu/theme/Menu.carbon.theme.js +5 -0
- package/lib/components/menu/theme/MenuItem.base.theme.d.ts +3 -0
- package/lib/components/menu/theme/MenuItem.base.theme.js +86 -0
- package/lib/components/menu/theme/MenuItem.carbon.theme.d.ts +3 -0
- package/lib/components/menu/theme/MenuItem.carbon.theme.js +5 -0
- package/lib/components/modal/Modal.vue.d.ts +150 -0
- package/lib/components/modal/Modal.vue.js +179 -0
- package/lib/components/modal/Modal.vue2.js +4 -0
- package/lib/components/modal/__tests__/Modal.spec.d.ts +1 -0
- package/lib/components/modal/index.d.ts +2 -0
- package/lib/components/modal/theme/Modal.base.theme.d.ts +3 -0
- package/lib/components/modal/theme/Modal.base.theme.js +23 -0
- package/lib/components/modal/theme/Modal.carbon.theme.d.ts +3 -0
- package/lib/components/modal/theme/Modal.carbon.theme.js +29 -0
- package/lib/components/notifications/Notifications.vue.d.ts +143 -0
- package/lib/components/notifications/Notifications.vue.js +236 -0
- package/lib/components/notifications/Notifications.vue2.js +4 -0
- package/lib/components/notifications/__tests__/Notifications.spec.d.ts +1 -0
- package/lib/components/notifications/index.d.ts +2 -0
- package/lib/components/notifications/theme/Notifications.base.theme.d.ts +3 -0
- package/lib/components/notifications/theme/Notifications.base.theme.js +10 -0
- package/lib/components/notifications/theme/Notifications.carbon.theme.d.ts +3 -0
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +10 -0
- package/lib/components/pagination/Pagination.vue.d.ts +76 -0
- package/lib/components/pagination/Pagination.vue.js +131 -0
- package/lib/components/pagination/Pagination.vue2.js +4 -0
- package/lib/components/pagination/PaginationItem.vue.d.ts +52 -0
- package/lib/components/pagination/PaginationItem.vue.js +47 -0
- package/lib/components/pagination/PaginationItem.vue2.js +4 -0
- package/lib/components/pagination/__tests__/Pagination.spec.d.ts +1 -0
- package/lib/components/pagination/__tests__/PaginationItem.spec.d.ts +1 -0
- package/lib/components/pagination/index.d.ts +4 -0
- package/lib/components/pagination/theme/Pagination.base.theme.d.ts +3 -0
- package/lib/components/pagination/theme/Pagination.base.theme.js +13 -0
- package/lib/components/pagination/theme/Pagination.carbon.theme.d.ts +3 -0
- package/lib/components/pagination/theme/Pagination.carbon.theme.js +5 -0
- package/lib/components/pagination/theme/PaginationItem.base.theme.d.ts +3 -0
- package/lib/components/pagination/theme/PaginationItem.base.theme.js +8 -0
- package/lib/components/pagination/theme/PaginationItem.carbon.theme.d.ts +3 -0
- package/lib/components/pagination/theme/PaginationItem.carbon.theme.js +5 -0
- package/lib/components/popover/Popover.vue.d.ts +211 -0
- package/lib/components/popover/Popover.vue.js +129 -0
- package/lib/components/popover/Popover.vue2.js +4 -0
- package/lib/components/popover/Popover.vue3.js +5 -0
- package/lib/components/popover/PopoverContainer.vue.d.ts +33 -0
- package/lib/components/popover/PopoverContainer.vue.js +29 -0
- package/lib/components/popover/PopoverContainer.vue2.js +4 -0
- package/lib/components/popover/__tests__/Popover.spec.d.ts +1 -0
- package/lib/components/popover/__tests__/PopoverContainer.spec.d.ts +1 -0
- package/lib/components/popover/index.d.ts +4 -0
- package/lib/components/popover/theme/Popover.base.theme.d.ts +3 -0
- package/lib/components/popover/theme/Popover.base.theme.js +9 -0
- package/lib/components/popover/theme/Popover.carbon.theme.d.ts +3 -0
- package/lib/components/popover/theme/Popover.carbon.theme.js +5 -0
- package/lib/components/popover/theme/PopoverContainer.base.theme.d.ts +3 -0
- package/lib/components/popover/theme/PopoverContainer.base.theme.js +8 -0
- package/lib/components/popover/theme/PopoverContainer.carbon.theme.d.ts +3 -0
- package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +8 -0
- package/lib/components/progress/Progress.vue.d.ts +63 -0
- package/lib/components/progress/Progress.vue.js +50 -0
- package/lib/components/progress/Progress.vue2.js +4 -0
- package/lib/components/progress/__tests__/Progress.spec.d.ts +1 -0
- package/lib/components/progress/index.d.ts +2 -0
- package/lib/components/progress/theme/Progress.base.theme.d.ts +3 -0
- package/lib/components/progress/theme/Progress.base.theme.js +18 -0
- package/lib/components/progress/theme/Progress.carbon.theme.d.ts +3 -0
- package/lib/components/progress/theme/Progress.carbon.theme.js +5 -0
- package/lib/components/radio/Radio.vue.d.ts +149 -0
- package/lib/components/radio/Radio.vue.js +9 -0
- package/lib/components/radio/Radio.vue2.js +132 -0
- package/lib/components/radio/Radio.vue3.js +10 -0
- package/lib/components/radio/__tests__/Radio.spec.d.ts +1 -0
- package/lib/components/radio/index.d.ts +2 -0
- package/lib/components/radio/theme/Radio.base.theme.d.ts +3 -0
- package/lib/components/radio/theme/Radio.base.theme.js +70 -0
- package/lib/components/radio/theme/Radio.carbon.theme.d.ts +3 -0
- package/lib/components/radio/theme/Radio.carbon.theme.js +64 -0
- package/lib/components/scroll/Scroll.vue.d.ts +47 -0
- package/lib/components/scroll/Scroll.vue.js +9 -0
- package/lib/components/scroll/Scroll.vue2.js +63 -0
- package/lib/components/scroll/Scroll.vue3.js +17 -0
- package/lib/components/scroll/__tests__/Scroll.spec.d.ts +1 -0
- package/lib/components/scroll/index.d.ts +2 -0
- package/lib/components/scroll/theme/Scroll.base.theme.d.ts +3 -0
- package/lib/components/scroll/theme/Scroll.base.theme.js +8 -0
- package/lib/components/scroll/theme/Scroll.carbon.theme.d.ts +3 -0
- package/lib/components/scroll/theme/Scroll.carbon.theme.js +5 -0
- package/lib/components/select/Select.vue.d.ts +150 -0
- package/lib/components/select/Select.vue.js +346 -0
- package/lib/components/select/Select.vue2.js +4 -0
- package/lib/components/select/__tests__/Select.spec.d.ts +1 -0
- package/lib/components/select/index.d.ts +2 -0
- package/lib/components/select/theme/Select.base.theme.d.ts +3 -0
- package/lib/components/select/theme/Select.base.theme.js +22 -0
- package/lib/components/select/theme/Select.carbon.theme.d.ts +3 -0
- package/lib/components/select/theme/Select.carbon.theme.js +22 -0
- package/lib/components/skeleton/Skeleton.vue.d.ts +26 -0
- package/lib/components/skeleton/Skeleton.vue.js +29 -0
- package/lib/components/skeleton/Skeleton.vue2.js +4 -0
- package/lib/components/skeleton/__tests__/Skeleton.spec.d.ts +1 -0
- package/lib/components/skeleton/index.d.ts +2 -0
- package/lib/components/skeleton/theme/Skeleton.base.theme.d.ts +3 -0
- package/lib/components/skeleton/theme/Skeleton.base.theme.js +8 -0
- package/lib/components/skeleton/theme/Skeleton.carbon.theme.d.ts +3 -0
- package/lib/components/skeleton/theme/Skeleton.carbon.theme.js +5 -0
- package/lib/components/slider/Slider.vue.d.ts +165 -0
- package/lib/components/slider/Slider.vue.js +148 -0
- package/lib/components/slider/Slider.vue2.js +4 -0
- package/lib/components/slider/__tests__/Slider.spec.d.ts +1 -0
- package/lib/components/slider/index.d.ts +2 -0
- package/lib/components/slider/theme/Slider.base.theme.d.ts +3 -0
- package/lib/components/slider/theme/Slider.base.theme.js +16 -0
- package/lib/components/slider/theme/Slider.carbon.theme.d.ts +3 -0
- package/lib/components/slider/theme/Slider.carbon.theme.js +16 -0
- package/lib/components/spacer/Spacer.d.ts +2 -0
- package/lib/components/spacer/Spacer.js +12 -0
- package/lib/components/spacer/__tests__/Spacer.spec.d.ts +1 -0
- package/lib/components/spacer/index.d.ts +1 -0
- package/lib/components/spinner/Spinner.vue.d.ts +38 -0
- package/lib/components/spinner/Spinner.vue.js +27 -0
- package/lib/components/spinner/Spinner.vue2.js +4 -0
- package/lib/components/spinner/__tests__/Spinner.spec.d.ts +1 -0
- package/lib/components/spinner/index.d.ts +2 -0
- package/lib/components/stepper/Stepper.vue.d.ts +137 -0
- package/lib/components/stepper/Stepper.vue.js +128 -0
- package/lib/components/stepper/Stepper.vue2.js +4 -0
- package/lib/components/stepper/__tests__/Stepper.spec.d.ts +1 -0
- package/lib/components/stepper/index.d.ts +2 -0
- package/lib/components/stepper/theme/Stepper.base.theme.d.ts +3 -0
- package/lib/components/stepper/theme/Stepper.base.theme.js +20 -0
- package/lib/components/stepper/theme/Stepper.carbon.theme.d.ts +3 -0
- package/lib/components/stepper/theme/Stepper.carbon.theme.js +5 -0
- package/lib/components/tab/Tab.vue.d.ts +92 -0
- package/lib/components/tab/Tab.vue.js +148 -0
- package/lib/components/tab/Tab.vue2.js +4 -0
- package/lib/components/tab/TabGroup.vue.d.ts +126 -0
- package/lib/components/tab/TabGroup.vue.js +135 -0
- package/lib/components/tab/TabGroup.vue2.js +4 -0
- package/lib/components/tab/__tests__/Tab.spec.d.ts +1 -0
- package/lib/components/tab/__tests__/TabGroup.spec.d.ts +1 -0
- package/lib/components/tab/index.d.ts +4 -0
- package/lib/components/tab/theme/Tab.base.theme.d.ts +3 -0
- package/lib/components/tab/theme/Tab.base.theme.js +15 -0
- package/lib/components/tab/theme/Tab.carbon.theme.d.ts +3 -0
- package/lib/components/tab/theme/Tab.carbon.theme.js +18 -0
- package/lib/components/tab/theme/TabGroup.base.theme.d.ts +3 -0
- package/lib/components/tab/theme/TabGroup.base.theme.js +31 -0
- package/lib/components/tab/theme/TabGroup.carbon.theme.d.ts +3 -0
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +31 -0
- package/lib/components/table/Table.vue.d.ts +284 -0
- package/lib/components/table/Table.vue.js +146 -0
- package/lib/components/table/Table.vue2.js +4 -0
- package/lib/components/table/TableBody.d.ts +2 -0
- package/lib/components/table/TableBody.js +15 -0
- package/lib/components/table/TableCell.vue.d.ts +66 -0
- package/lib/components/table/TableCell.vue.js +42 -0
- package/lib/components/table/TableCell.vue2.js +4 -0
- package/lib/components/table/TableHead.d.ts +2 -0
- package/lib/components/table/TableHead.js +19 -0
- package/lib/components/table/TableHeader.vue.d.ts +58 -0
- package/lib/components/table/TableHeader.vue.js +78 -0
- package/lib/components/table/TableHeader.vue2.js +4 -0
- package/lib/components/table/TableRow.vue.d.ts +30 -0
- package/lib/components/table/TableRow.vue.js +32 -0
- package/lib/components/table/TableRow.vue2.js +4 -0
- package/lib/components/table/__tests__/Table.spec.d.ts +1 -0
- package/lib/components/table/index.d.ts +9 -0
- package/lib/components/table/theme/Table.base.theme.d.ts +3 -0
- package/lib/components/table/theme/Table.base.theme.js +12 -0
- package/lib/components/table/theme/Table.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/Table.carbon.theme.js +5 -0
- package/lib/components/table/theme/TableCell.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableCell.base.theme.js +11 -0
- package/lib/components/table/theme/TableCell.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableCell.carbon.theme.js +5 -0
- package/lib/components/tag/Tag.vue.d.ts +76 -0
- package/lib/components/tag/Tag.vue.js +60 -0
- package/lib/components/tag/Tag.vue2.js +4 -0
- package/lib/components/tag/__tests__/Tag.spec.d.ts +1 -0
- package/lib/components/tag/index.d.ts +2 -0
- package/lib/components/tag/theme/Tag.base.theme.d.ts +3 -0
- package/lib/components/tag/theme/Tag.base.theme.js +23 -0
- package/lib/components/tag/theme/Tag.carbon.theme.d.ts +3 -0
- package/lib/components/tag/theme/Tag.carbon.theme.js +24 -0
- package/lib/components/textarea/Textarea.vue.d.ts +173 -0
- package/lib/components/textarea/Textarea.vue.js +113 -0
- package/lib/components/textarea/Textarea.vue2.js +4 -0
- package/lib/components/textarea/__tests__/Textarea.spec.d.ts +1 -0
- package/lib/components/textarea/index.d.ts +2 -0
- package/lib/components/textarea/theme/Textarea.base.theme.d.ts +3 -0
- package/lib/components/textarea/theme/Textarea.base.theme.js +12 -0
- package/lib/components/textarea/theme/Textarea.carbon.theme.d.ts +3 -0
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +12 -0
- package/lib/components/themeProvider/ThemeProvider.vue.d.ts +15 -0
- package/lib/components/themeProvider/ThemeProvider.vue.js +18 -0
- package/lib/components/themeProvider/ThemeProvider.vue2.js +4 -0
- package/lib/components/themeProvider/index.d.ts +1 -0
- package/lib/components/toggle/Toggle.vue.d.ts +134 -0
- package/lib/components/toggle/Toggle.vue.js +108 -0
- package/lib/components/toggle/Toggle.vue2.js +4 -0
- package/lib/components/toggle/__tests__/Toggle.spec.d.ts +1 -0
- package/lib/components/toggle/index.d.ts +2 -0
- package/lib/components/toggle/theme/Toggle.base.theme.d.ts +3 -0
- package/lib/components/toggle/theme/Toggle.base.theme.js +29 -0
- package/lib/components/toggle/theme/Toggle.carbon.theme.d.ts +3 -0
- package/lib/components/toggle/theme/Toggle.carbon.theme.js +5 -0
- package/lib/components/tooltip/Tooltip.vue.d.ts +13 -0
- package/lib/components/tooltip/Tooltip.vue.js +31 -0
- package/lib/components/tooltip/Tooltip.vue2.js +4 -0
- package/lib/components/tooltip/__tests__/Tooltip.spec.d.ts +1 -0
- package/lib/components/tooltip/index.d.ts +2 -0
- package/lib/composables/index.d.ts +7 -0
- package/lib/composables/keys.d.ts +19 -0
- package/lib/composables/keys.js +12 -0
- package/lib/composables/useCSS.d.ts +6 -0
- package/lib/composables/useCSS.js +26 -0
- package/lib/composables/useColors.d.ts +32 -0
- package/lib/composables/useColors.js +52 -0
- package/lib/composables/useCommon.d.ts +15 -0
- package/lib/composables/useCommon.js +17 -0
- package/lib/composables/useFocusTrap.d.ts +6 -0
- package/lib/composables/useFocusTrap.js +45 -0
- package/lib/composables/useInputtable.d.ts +50 -0
- package/lib/composables/useInputtable.js +110 -0
- package/lib/composables/useInteractive.d.ts +23 -0
- package/lib/composables/useInteractive.js +22 -0
- package/lib/composables/useNotifications.d.ts +2 -0
- package/lib/composables/useNotifications.js +9 -0
- package/lib/composables/useTheme.d.ts +29 -0
- package/lib/composables/useTheme.js +59 -0
- package/lib/create.d.ts +12 -0
- package/lib/create.js +21 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +145 -0
- package/lib/index.umd.js +166 -0
- package/lib/install.d.ts +4 -0
- package/lib/install.js +10 -0
- package/lib/node_modules/.pnpm/@floating-ui_core@1.5.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +497 -0
- package/lib/node_modules/.pnpm/@floating-ui_dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.js +217 -0
- package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +116 -0
- package/lib/node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js +379 -0
- package/lib/node_modules/.pnpm/@vueuse_shared@10.2.0_vue@3.3.9/node_modules/@vueuse/shared/index.js +90 -0
- package/lib/node_modules/.pnpm/floating-vue@5.2.0_vue@3.3.9/node_modules/floating-vue/dist/floating-vue.js +1346 -0
- package/lib/nuxt.mjs +33 -0
- package/lib/nuxt.plugin.js +8 -0
- package/lib/tailwind.preset.js +41 -0
- package/lib/theme.d.ts +59 -0
- package/lib/theme.js +14 -0
- package/lib/themes/base/components.d.ts +46 -0
- package/lib/themes/base/components.js +94 -0
- package/lib/themes/base/index.d.ts +3 -0
- package/lib/themes/base/index.js +14 -0
- package/lib/themes/base/styles.css.js +87 -0
- package/lib/themes/carbon/components.d.ts +46 -0
- package/lib/themes/carbon/components.js +94 -0
- package/lib/themes/carbon/index.d.ts +3 -0
- package/lib/themes/carbon/index.js +14 -0
- package/lib/themes/carbon/styles.css.js +86 -0
- package/lib/themes/index.d.ts +2 -0
- package/lib/version.d.ts +2 -0
- package/lib/version.js +4 -0
- package/package.json +110 -0
- package/src/common/colors.ts +36 -0
- package/src/common/icons.ts +17 -0
- package/src/common/utils.ts +93 -0
- package/src/components/accordion/Accordion.vue +51 -0
- package/src/components/accordion/AccordionItem.vue +183 -0
- package/src/components/accordion/__tests__/Accordion.spec.ts +11 -0
- package/src/components/accordion/index.ts +4 -0
- package/src/components/accordion/theme/Accordion.base.theme.ts +9 -0
- package/src/components/accordion/theme/Accordion.carbon.theme.ts +9 -0
- package/src/components/accordion/theme/AccordionItem.base.theme.ts +35 -0
- package/src/components/accordion/theme/AccordionItem.carbon.theme.ts +35 -0
- package/src/components/alert/Alert.vue +101 -0
- package/src/components/alert/__tests__/Alert.spec.ts +11 -0
- package/src/components/alert/index.ts +2 -0
- package/src/components/alert/theme/Alert.base.theme.ts +58 -0
- package/src/components/alert/theme/Alert.carbon.theme.ts +59 -0
- package/src/components/avatar/Avatar.vue +108 -0
- package/src/components/avatar/__tests__/Avatar.spec.ts +11 -0
- package/src/components/avatar/index.ts +2 -0
- package/src/components/avatar/theme/Avatar.base.theme.ts +41 -0
- package/src/components/avatar/theme/Avatar.carbon.theme.ts +7 -0
- package/src/components/badge/Badge.vue +129 -0
- package/src/components/badge/__tests__/Badge.spec.ts +11 -0
- package/src/components/badge/index.ts +2 -0
- package/src/components/badge/theme/Badge.base.theme.ts +15 -0
- package/src/components/badge/theme/Badge.carbon.theme.ts +7 -0
- package/src/components/breadcrumbs/Breadcrumbs.vue +75 -0
- package/src/components/breadcrumbs/__tests__/Breadcrumbs.spec.ts +11 -0
- package/src/components/breadcrumbs/index.ts +2 -0
- package/src/components/breadcrumbs/theme/Breadcrumbs.base.theme.ts +11 -0
- package/src/components/breadcrumbs/theme/Breadcrumbs.carbon.theme.ts +12 -0
- package/src/components/button/Button.vue +191 -0
- package/src/components/button/ButtonGroup.vue +90 -0
- package/src/components/button/__tests__/ Button.spec.ts +11 -0
- package/src/components/button/__tests__/ ButtonGroup.spec.ts +11 -0
- package/src/components/button/index.ts +5 -0
- package/src/components/button/theme/Button.base.theme.ts +229 -0
- package/src/components/button/theme/Button.carbon.theme.ts +237 -0
- package/src/components/button/theme/ButtonGroup.base.theme.ts +9 -0
- package/src/components/button/theme/ButtonGroup.carbon.theme.ts +9 -0
- package/src/components/card/Card.vue +38 -0
- package/src/components/card/__tests__/Card.spec.ts +11 -0
- package/src/components/card/index.ts +2 -0
- package/src/components/card/theme/Card.base.theme.ts +9 -0
- package/src/components/card/theme/Card.carbon.theme.ts +7 -0
- package/src/components/carousel/Carousel.vue +138 -0
- package/src/components/carousel/CarouselSlide.vue +45 -0
- package/src/components/carousel/__tests__/Carousel.spec.ts +11 -0
- package/src/components/carousel/index.ts +4 -0
- package/src/components/carousel/theme/Carousel.base.theme.ts +25 -0
- package/src/components/carousel/theme/Carousel.carbon.theme.ts +7 -0
- package/src/components/carousel/theme/CarouselSlide.base.theme.ts +9 -0
- package/src/components/carousel/theme/CarouselSlide.carbon.theme.ts +7 -0
- package/src/components/checkbox/Checkbox.vue +178 -0
- package/src/components/checkbox/__tests__/Checkbox.spec.ts +11 -0
- package/src/components/checkbox/index.ts +2 -0
- package/src/components/checkbox/theme/Checkbox.base.theme.ts +108 -0
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +108 -0
- package/src/components/container/Container.vue +37 -0
- package/src/components/container/__tests__/Container.spec.ts +11 -0
- package/src/components/container/index.ts +2 -0
- package/src/components/container/theme/Container.base.theme.ts +9 -0
- package/src/components/container/theme/Container.carbon.theme.ts +7 -0
- package/src/components/divider/Divider.vue +62 -0
- package/src/components/divider/__tests__/Divider.spec.ts +11 -0
- package/src/components/divider/index.ts +2 -0
- package/src/components/divider/theme/Divider.base.theme.ts +13 -0
- package/src/components/divider/theme/Divider.carbon.theme.ts +7 -0
- package/src/components/drawer/Drawer.vue +249 -0
- package/src/components/drawer/__tests__/Drawer.spec.ts +11 -0
- package/src/components/drawer/index.ts +2 -0
- package/src/components/drawer/theme/Drawer.base.theme.ts +11 -0
- package/src/components/drawer/theme/Drawer.carbon.theme.ts +7 -0
- package/src/components/form/Form.vue +159 -0
- package/src/components/form/__tests__/Form.spec.ts +11 -0
- package/src/components/form/index.ts +2 -0
- package/src/components/form/theme/Form.base.theme.ts +17 -0
- package/src/components/form/theme/Form.carbon.theme.ts +17 -0
- package/src/components/formGroup/FormGroup.vue +116 -0
- package/src/components/formGroup/__tests__/FormGroup.spec.ts +11 -0
- package/src/components/formGroup/index.ts +2 -0
- package/src/components/formGroup/theme/FormGroup.base.theme.ts +16 -0
- package/src/components/formGroup/theme/FormGroup.carbon.theme.ts +16 -0
- package/src/components/icon/Icon.vue +119 -0
- package/src/components/icon/__tests__/Icon.spec.ts +15 -0
- package/src/components/icon/index.ts +2 -0
- package/src/components/icon/theme/Icon.base.theme.ts +18 -0
- package/src/components/icon/theme/Icon.carbon.theme.ts +9 -0
- package/src/components/image/Image.vue +42 -0
- package/src/components/image/__tests__/Image.spec.ts +11 -0
- package/src/components/image/index.ts +2 -0
- package/src/components/image/theme/Image.base.theme.ts +9 -0
- package/src/components/image/theme/Image.carbon.theme.ts +7 -0
- package/src/components/index.ts +42 -0
- package/src/components/input/Input.vue +181 -0
- package/src/components/input/__tests__/Input.spec.ts +11 -0
- package/src/components/input/index.ts +2 -0
- package/src/components/input/theme/Input.base.theme.ts +35 -0
- package/src/components/input/theme/Input.carbon.theme.ts +37 -0
- package/src/components/inputFooter/InputFooter.vue +29 -0
- package/src/components/inputFooter/__tests__/InputFooter.spec.ts +11 -0
- package/src/components/inputFooter/index.ts +2 -0
- package/src/components/inputFooter/theme/InputFooter.base.theme.ts +11 -0
- package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +11 -0
- package/src/components/label/Label.vue +54 -0
- package/src/components/label/__tests__/Label.spec.ts +11 -0
- package/src/components/label/index.ts +2 -0
- package/src/components/label/theme/Label.base.theme.ts +27 -0
- package/src/components/label/theme/Label.carbon.theme.ts +20 -0
- package/src/components/link/Link.vue +94 -0
- package/src/components/link/__tests__/Link.spec.ts +11 -0
- package/src/components/link/index.ts +2 -0
- package/src/components/link/theme/Link.base.theme.ts +28 -0
- package/src/components/link/theme/Link.carbon.theme.ts +7 -0
- package/src/components/loader/Loader.vue +59 -0
- package/src/components/loader/__tests__/Loader.spec.ts +11 -0
- package/src/components/loader/index.ts +2 -0
- package/src/components/loader/theme/Loader.base.theme.ts +12 -0
- package/src/components/loader/theme/Loader.carbon.theme.ts +12 -0
- package/src/components/menu/Menu.vue +173 -0
- package/src/components/menu/MenuItem.vue +209 -0
- package/src/components/menu/__tests__/Menu.spec.ts +11 -0
- package/src/components/menu/__tests__/MenuItem.spec.ts +11 -0
- package/src/components/menu/index.ts +5 -0
- package/src/components/menu/theme/Menu.base.theme.ts +9 -0
- package/src/components/menu/theme/Menu.carbon.theme.ts +7 -0
- package/src/components/menu/theme/MenuItem.base.theme.ts +109 -0
- package/src/components/menu/theme/MenuItem.carbon.theme.ts +7 -0
- package/src/components/modal/Modal.vue +226 -0
- package/src/components/modal/__tests__/Modal.spec.ts +11 -0
- package/src/components/modal/index.ts +2 -0
- package/src/components/modal/theme/Modal.base.theme.ts +47 -0
- package/src/components/modal/theme/Modal.carbon.theme.ts +60 -0
- package/src/components/notifications/Notifications.vue +318 -0
- package/src/components/notifications/__tests__/Notifications.spec.ts +11 -0
- package/src/components/notifications/index.ts +9 -0
- package/src/components/notifications/theme/Notifications.base.theme.ts +13 -0
- package/src/components/notifications/theme/Notifications.carbon.theme.ts +17 -0
- package/src/components/pagination/Pagination.vue +172 -0
- package/src/components/pagination/PaginationItem.vue +57 -0
- package/src/components/pagination/__tests__/Pagination.spec.ts +11 -0
- package/src/components/pagination/__tests__/PaginationItem.spec.ts +11 -0
- package/src/components/pagination/index.ts +5 -0
- package/src/components/pagination/theme/Pagination.base.theme.ts +29 -0
- package/src/components/pagination/theme/Pagination.carbon.theme.ts +7 -0
- package/src/components/pagination/theme/PaginationItem.base.theme.ts +16 -0
- package/src/components/pagination/theme/PaginationItem.carbon.theme.ts +7 -0
- package/src/components/popover/Popover.vue +205 -0
- package/src/components/popover/PopoverContainer.vue +37 -0
- package/src/components/popover/__tests__/Popover.spec.ts +11 -0
- package/src/components/popover/__tests__/PopoverContainer.spec.ts +11 -0
- package/src/components/popover/index.ts +5 -0
- package/src/components/popover/theme/Popover.base.theme.ts +11 -0
- package/src/components/popover/theme/Popover.carbon.theme.ts +7 -0
- package/src/components/popover/theme/PopoverContainer.base.theme.ts +9 -0
- package/src/components/popover/theme/PopoverContainer.carbon.theme.ts +9 -0
- package/src/components/progress/Progress.vue +63 -0
- package/src/components/progress/__tests__/Progress.spec.ts +11 -0
- package/src/components/progress/index.ts +2 -0
- package/src/components/progress/theme/Progress.base.theme.ts +28 -0
- package/src/components/progress/theme/Progress.carbon.theme.ts +7 -0
- package/src/components/radio/Radio.vue +179 -0
- package/src/components/radio/__tests__/Radio.spec.ts +11 -0
- package/src/components/radio/index.ts +2 -0
- package/src/components/radio/theme/Radio.base.theme.ts +129 -0
- package/src/components/radio/theme/Radio.carbon.theme.ts +110 -0
- package/src/components/scroll/Scroll.vue +155 -0
- package/src/components/scroll/__tests__/Scroll.spec.ts +11 -0
- package/src/components/scroll/index.ts +2 -0
- package/src/components/scroll/theme/Scroll.base.theme.ts +9 -0
- package/src/components/scroll/theme/Scroll.carbon.theme.ts +7 -0
- package/src/components/select/Select.vue +452 -0
- package/src/components/select/__tests__/Select.spec.ts +11 -0
- package/src/components/select/index.ts +2 -0
- package/src/components/select/theme/Select.base.theme.ts +56 -0
- package/src/components/select/theme/Select.carbon.theme.ts +54 -0
- package/src/components/skeleton/Skeleton.vue +37 -0
- package/src/components/skeleton/__tests__/Skeleton.spec.ts +11 -0
- package/src/components/skeleton/index.ts +2 -0
- package/src/components/skeleton/theme/Skeleton.base.theme.ts +9 -0
- package/src/components/skeleton/theme/Skeleton.carbon.theme.ts +7 -0
- package/src/components/slider/Slider.vue +216 -0
- package/src/components/slider/__tests__/Slider.spec.ts +11 -0
- package/src/components/slider/index.ts +2 -0
- package/src/components/slider/theme/Slider.base.theme.ts +21 -0
- package/src/components/slider/theme/Slider.carbon.theme.ts +21 -0
- package/src/components/spacer/Spacer.tsx +8 -0
- package/src/components/spacer/__tests__/Spacer.spec.ts +11 -0
- package/src/components/spacer/index.ts +1 -0
- package/src/components/spinner/Spinner.vue +31 -0
- package/src/components/spinner/__tests__/Spinner.spec.ts +11 -0
- package/src/components/spinner/index.ts +2 -0
- package/src/components/stepper/Stepper.vue +153 -0
- package/src/components/stepper/__tests__/Stepper.spec.ts +11 -0
- package/src/components/stepper/index.ts +6 -0
- package/src/components/stepper/theme/Stepper.base.theme.ts +45 -0
- package/src/components/stepper/theme/Stepper.carbon.theme.ts +7 -0
- package/src/components/tab/Tab.vue +179 -0
- package/src/components/tab/TabGroup.vue +185 -0
- package/src/components/tab/__tests__/Tab.spec.ts +11 -0
- package/src/components/tab/__tests__/TabGroup.spec.ts +11 -0
- package/src/components/tab/index.ts +11 -0
- package/src/components/tab/theme/Tab.base.theme.ts +28 -0
- package/src/components/tab/theme/Tab.carbon.theme.ts +34 -0
- package/src/components/tab/theme/TabGroup.base.theme.ts +55 -0
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +55 -0
- package/src/components/table/Table.vue +174 -0
- package/src/components/table/TableBody.tsx +8 -0
- package/src/components/table/TableCell.vue +57 -0
- package/src/components/table/TableHead.tsx +14 -0
- package/src/components/table/TableHeader.vue +95 -0
- package/src/components/table/TableRow.vue +46 -0
- package/src/components/table/__tests__/Table.spec.ts +11 -0
- package/src/components/table/index.ts +10 -0
- package/src/components/table/theme/Table.base.theme.ts +21 -0
- package/src/components/table/theme/Table.carbon.theme.ts +7 -0
- package/src/components/table/theme/TableCell.base.theme.ts +29 -0
- package/src/components/table/theme/TableCell.carbon.theme.ts +7 -0
- package/src/components/tag/Tag.vue +80 -0
- package/src/components/tag/__tests__/Tag.spec.ts +11 -0
- package/src/components/tag/index.ts +2 -0
- package/src/components/tag/theme/Tag.base.theme.ts +34 -0
- package/src/components/tag/theme/Tag.carbon.theme.ts +34 -0
- package/src/components/textarea/Textarea.vue +147 -0
- package/src/components/textarea/__tests__/Textarea.spec.ts +11 -0
- package/src/components/textarea/index.ts +2 -0
- package/src/components/textarea/theme/Textarea.base.theme.ts +27 -0
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +29 -0
- package/src/components/themeProvider/ThemeProvider.vue +28 -0
- package/src/components/themeProvider/index.ts +1 -0
- package/src/components/toggle/Toggle.vue +122 -0
- package/src/components/toggle/__tests__/Toggle.spec.ts +11 -0
- package/src/components/toggle/index.ts +2 -0
- package/src/components/toggle/theme/Toggle.base.theme.ts +53 -0
- package/src/components/toggle/theme/Toggle.carbon.theme.ts +7 -0
- package/src/components/tooltip/Tooltip.vue +26 -0
- package/src/components/tooltip/__tests__/Tooltip.spec.ts +11 -0
- package/src/components/tooltip/index.ts +2 -0
- package/src/composables/index.ts +7 -0
- package/src/composables/keys.ts +20 -0
- package/src/composables/useCSS.ts +50 -0
- package/src/composables/useColors.ts +98 -0
- package/src/composables/useCommon.ts +21 -0
- package/src/composables/useFocusTrap.ts +106 -0
- package/src/composables/useInputtable.ts +172 -0
- package/src/composables/useInteractive.ts +28 -0
- package/src/composables/useNotifications.ts +11 -0
- package/src/composables/useTheme.ts +97 -0
- package/src/create.ts +43 -0
- package/src/index.ts +10 -0
- package/src/install.ts +8 -0
- package/src/shims-vue.d.ts +6 -0
- package/src/theme.ts +125 -0
- package/src/themes/base/components.ts +46 -0
- package/src/themes/base/index.ts +15 -0
- package/src/themes/base/styles.css +83 -0
- package/src/themes/carbon/components.ts +46 -0
- package/src/themes/carbon/index.ts +15 -0
- package/src/themes/carbon/styles.css +82 -0
- package/src/themes/index.ts +2 -0
- package/src/version.ts +1 -0
- package/volar.d.ts +60 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
declare const tooltipProps: {};
|
|
3
|
+
export type TooltipProps = ExtractPublicPropTypes<typeof tooltipProps>;
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
tooltip?(_: {}): any;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineComponent as s, openBlock as r, createBlock as a, withCtx as t, createElementVNode as n, createVNode as l, renderSlot as o } from "vue";
|
|
2
|
+
import c from "../popover/Popover.vue.js";
|
|
3
|
+
import "../popover/Popover.vue2.js";
|
|
4
|
+
import i from "../popover/PopoverContainer.vue.js";
|
|
5
|
+
const m = { class: "dark" }, _ = { name: "XTooltip" }, k = /* @__PURE__ */ s({
|
|
6
|
+
..._,
|
|
7
|
+
setup(p) {
|
|
8
|
+
return (e, d) => (r(), a(c, {
|
|
9
|
+
triggers: ["hover"],
|
|
10
|
+
class: "inline-block"
|
|
11
|
+
}, {
|
|
12
|
+
content: t(() => [
|
|
13
|
+
n("div", m, [
|
|
14
|
+
l(i, { class: "p-2 text-white text-sm w-max max-w-xs" }, {
|
|
15
|
+
default: t(() => [
|
|
16
|
+
o(e.$slots, "tooltip")
|
|
17
|
+
]),
|
|
18
|
+
_: 3
|
|
19
|
+
})
|
|
20
|
+
])
|
|
21
|
+
]),
|
|
22
|
+
default: t(() => [
|
|
23
|
+
o(e.$slots, "default")
|
|
24
|
+
]),
|
|
25
|
+
_: 3
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
export {
|
|
30
|
+
k as default
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { InjectionKey, MaybeRef } from 'vue';
|
|
2
|
+
import type { FormInjection } from '../components/form/Form.vue';
|
|
3
|
+
import type { TabGroupInjection } from '../components/tab/TabGroup.vue';
|
|
4
|
+
import type { ButtonGroupInjection } from '../components/button/ButtonGroup.vue';
|
|
5
|
+
import type { NotificationInjection } from '../components/notifications/Notifications.vue';
|
|
6
|
+
import type { IconInjection } from '../components/icon/Icon.vue';
|
|
7
|
+
import type { FormGroupInjection } from '../components/formGroup';
|
|
8
|
+
import type { AccordionProps } from '../components/accordion';
|
|
9
|
+
import type { UIOptions } from '../create';
|
|
10
|
+
import type { UITheme } from '../theme';
|
|
11
|
+
export declare const injectOptionsKey: InjectionKey<UIOptions>;
|
|
12
|
+
export declare const injectThemeKey: InjectionKey<MaybeRef<UITheme>>;
|
|
13
|
+
export declare const injectTabGroupKey: InjectionKey<TabGroupInjection>;
|
|
14
|
+
export declare const injectFormKey: InjectionKey<FormInjection>;
|
|
15
|
+
export declare const injectFormGroupKey: InjectionKey<FormGroupInjection>;
|
|
16
|
+
export declare const injectIconsKey: InjectionKey<IconInjection>;
|
|
17
|
+
export declare const injectButtonGroupKey: InjectionKey<ButtonGroupInjection>;
|
|
18
|
+
export declare const injectNotificationKey: InjectionKey<NotificationInjection>;
|
|
19
|
+
export declare const injectAccordionKey: InjectionKey<AccordionProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const o = Symbol(), t = Symbol(), n = Symbol(), c = Symbol(), e = Symbol(), y = Symbol(), i = Symbol(), m = Symbol(), s = Symbol();
|
|
2
|
+
export {
|
|
3
|
+
s as injectAccordionKey,
|
|
4
|
+
i as injectButtonGroupKey,
|
|
5
|
+
e as injectFormGroupKey,
|
|
6
|
+
c as injectFormKey,
|
|
7
|
+
y as injectIconsKey,
|
|
8
|
+
m as injectNotificationKey,
|
|
9
|
+
o as injectOptionsKey,
|
|
10
|
+
n as injectTabGroupKey,
|
|
11
|
+
t as injectThemeKey
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CSSComposition {
|
|
2
|
+
get: (name: string, value: string, theme?: string, modifier?: string) => string;
|
|
3
|
+
variable: (name: string, theme?: string, modifier?: string) => string;
|
|
4
|
+
variables: (object: Record<string, string | object>, theme?: string, modifier?: string) => Record<string, string>;
|
|
5
|
+
}
|
|
6
|
+
export declare const useCSS: (namespace?: string) => CSSComposition;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const u = ["dark"], a = ["hover", "active", "focus", "visited"], f = (n) => u.includes(n), v = (n) => a.includes(n), d = (n) => {
|
|
2
|
+
const $ = (i, e, t, s) => `${r(i, t, s)}: ${e}`, r = (i, e, t) => `--x${n ? `-${n}` : ""}${e ? `-${e}` : ""}-${i}${t ? `-${t}` : ""}`, l = (i, e, t) => {
|
|
3
|
+
let s = {};
|
|
4
|
+
for (const o in i) {
|
|
5
|
+
const c = i[o];
|
|
6
|
+
if (!c)
|
|
7
|
+
break;
|
|
8
|
+
f(o) ? s = {
|
|
9
|
+
...s,
|
|
10
|
+
...l(c, o, t)
|
|
11
|
+
} : v(o) ? s = {
|
|
12
|
+
...s,
|
|
13
|
+
...l(c, e, o)
|
|
14
|
+
} : s[r(o, e, t)] = c;
|
|
15
|
+
}
|
|
16
|
+
return s;
|
|
17
|
+
};
|
|
18
|
+
return {
|
|
19
|
+
get: $,
|
|
20
|
+
variable: r,
|
|
21
|
+
variables: l
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
d as useCSS
|
|
26
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type Tone = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
|
|
2
|
+
export interface ColorPalette {
|
|
3
|
+
50: string;
|
|
4
|
+
100: string;
|
|
5
|
+
200: string;
|
|
6
|
+
300: string;
|
|
7
|
+
400: string;
|
|
8
|
+
500: string;
|
|
9
|
+
600: string;
|
|
10
|
+
700: string;
|
|
11
|
+
800: string;
|
|
12
|
+
900: string;
|
|
13
|
+
950: string;
|
|
14
|
+
}
|
|
15
|
+
export type ColorLibrary = Record<string, ColorPalette>;
|
|
16
|
+
export interface ColorsProps {
|
|
17
|
+
color?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ColorComposition {
|
|
20
|
+
getPalette: (color?: string) => ColorPalette;
|
|
21
|
+
getColorOpacity: (color: string, opacity: number) => string;
|
|
22
|
+
}
|
|
23
|
+
export declare const useColors: {
|
|
24
|
+
(): ColorComposition;
|
|
25
|
+
props(defaultColor?: string): {
|
|
26
|
+
readonly color: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export type UseColorsProps = ReturnType<typeof useColors.props>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { inject as m, computed as p, unref as f } from "vue";
|
|
2
|
+
import { injectThemeKey as g } from "./keys.js";
|
|
3
|
+
import { tailwindColors as n, setOpacity as l, isValidColor as d, colorShade as t } from "../common/colors.js";
|
|
4
|
+
import { mergeRightDeep as y } from "../common/utils.js";
|
|
5
|
+
const i = {}, C = {
|
|
6
|
+
primary: n.sky,
|
|
7
|
+
secondary: n.slate,
|
|
8
|
+
success: n.green,
|
|
9
|
+
warning: n.yellow,
|
|
10
|
+
error: n.red
|
|
11
|
+
}, a = (r) => n[r], c = (r, s) => l(r, s), w = () => {
|
|
12
|
+
const r = m(g, {}), s = p(() => y(C, f(r).colors || {}));
|
|
13
|
+
return {
|
|
14
|
+
getPalette: (e) => {
|
|
15
|
+
if (!e)
|
|
16
|
+
return a("gray");
|
|
17
|
+
const o = a(e);
|
|
18
|
+
if (o)
|
|
19
|
+
return o;
|
|
20
|
+
if (i[e])
|
|
21
|
+
return i[e];
|
|
22
|
+
if (s.value[e])
|
|
23
|
+
return s.value[e];
|
|
24
|
+
if (!d(e))
|
|
25
|
+
return console.warn(`Invalid color: ${e}`), a("gray");
|
|
26
|
+
const u = {
|
|
27
|
+
50: t(e, 0.9),
|
|
28
|
+
100: t(e, 0.8),
|
|
29
|
+
200: t(e, 0.6),
|
|
30
|
+
300: t(e, 0.4),
|
|
31
|
+
400: t(e, 0.1),
|
|
32
|
+
500: e,
|
|
33
|
+
600: t(e, -0.1),
|
|
34
|
+
700: t(e, -0.25),
|
|
35
|
+
800: t(e, -0.58),
|
|
36
|
+
900: t(e, -0.7),
|
|
37
|
+
950: t(e, -0.8)
|
|
38
|
+
};
|
|
39
|
+
return i[e] = u, u;
|
|
40
|
+
},
|
|
41
|
+
getColorOpacity: c
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
w.props = (r) => ({
|
|
45
|
+
color: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: r
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
w as useColors
|
|
52
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export declare const useCommon: {
|
|
4
|
+
(): void;
|
|
5
|
+
props(): {
|
|
6
|
+
readonly size: {
|
|
7
|
+
readonly type: PropType<Size>;
|
|
8
|
+
readonly default: "md";
|
|
9
|
+
readonly validator: (value: string) => boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
validators(): {
|
|
13
|
+
size: string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const e = () => {
|
|
2
|
+
}, s = Object.freeze({
|
|
3
|
+
size: ["xs", "sm", "md", "lg", "xl"]
|
|
4
|
+
});
|
|
5
|
+
e.props = () => ({
|
|
6
|
+
size: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "md",
|
|
9
|
+
validator: (t) => s.size.includes(t)
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
e.validators = () => ({
|
|
13
|
+
...s
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
e as useCommon
|
|
17
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import { type MaybeRef } from 'vue';
|
|
3
|
+
export declare function useFocusTrap(): {
|
|
4
|
+
initFocusTrap: (targetRef: MaybeRef<HTMLElement | ComponentPublicInstance | null>) => Promise<void>;
|
|
5
|
+
clearFocusTrap: () => void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { onUnmounted as y, unref as p, nextTick as x } from "vue";
|
|
2
|
+
const m = 'button:not([tabindex="-1"]), [href], input, select, textarea, li, a, [tabindex]:not([tabindex="-1"])';
|
|
3
|
+
function w() {
|
|
4
|
+
let n = [], u = null, s = null, r = null;
|
|
5
|
+
async function b(e) {
|
|
6
|
+
e = p(e), e && (await x(), f(e), s && s.focus(), document.addEventListener("keydown", d), u = new MutationObserver(() => f(e)), e.$el ? u.observe(e.$el, { childList: !0, subtree: !0 }) : u.observe(e, { childList: !0, subtree: !0 }));
|
|
7
|
+
}
|
|
8
|
+
function f(e) {
|
|
9
|
+
if (e === null)
|
|
10
|
+
return;
|
|
11
|
+
let c;
|
|
12
|
+
e.$el ? c = e == null ? void 0 : e.$el.querySelectorAll(m) : e.querySelectorAll(m), n = Array.from(c || []), s = n[0] || null, r = n[n.length - 1] || null;
|
|
13
|
+
}
|
|
14
|
+
const d = (e) => {
|
|
15
|
+
var c;
|
|
16
|
+
if (e.key === "Tab") {
|
|
17
|
+
const t = e.shiftKey, o = document.activeElement;
|
|
18
|
+
if (!o) {
|
|
19
|
+
e.preventDefault(), (c = n[0]) == null || c.focus();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const l = n[0], i = n[n.length - 1];
|
|
23
|
+
!t && o === i ? (e.preventDefault(), l == null || l.focus()) : t && o === l && (e.preventDefault(), i == null || i.focus());
|
|
24
|
+
} else if (e.key === "ArrowUp" || e.key === "ArrowLeft") {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
const t = document.activeElement, o = n.indexOf(t), l = n[o - 1];
|
|
27
|
+
l ? l.focus() : r && r.focus();
|
|
28
|
+
} else if (e.key === "ArrowDown" || e.key === "ArrowRight") {
|
|
29
|
+
e.preventDefault();
|
|
30
|
+
const t = document.activeElement, o = n.indexOf(t), l = n[o + 1];
|
|
31
|
+
l ? l.focus() : s && s.focus();
|
|
32
|
+
}
|
|
33
|
+
}, a = () => {
|
|
34
|
+
document.removeEventListener("keydown", d), u == null || u.disconnect();
|
|
35
|
+
};
|
|
36
|
+
return y(() => {
|
|
37
|
+
a();
|
|
38
|
+
}), {
|
|
39
|
+
initFocusTrap: b,
|
|
40
|
+
clearFocusTrap: a
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
w as useFocusTrap
|
|
45
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { MaybeRef, PropType } from 'vue';
|
|
2
|
+
export interface XFormInputMethods {
|
|
3
|
+
focus: () => void;
|
|
4
|
+
validate: (val: any) => boolean;
|
|
5
|
+
setError: (val: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const useInputtable: {
|
|
8
|
+
(props: any, { focus, emit, withListeners }: {
|
|
9
|
+
focus: () => void;
|
|
10
|
+
emit: any;
|
|
11
|
+
withListeners?: boolean | undefined;
|
|
12
|
+
}): {
|
|
13
|
+
isFirstValidation: import("vue").Ref<boolean>;
|
|
14
|
+
errorInternal: any;
|
|
15
|
+
hideFooterInternal: any;
|
|
16
|
+
isFocused: import("vue").Ref<boolean>;
|
|
17
|
+
isInsideForm: boolean;
|
|
18
|
+
isInsideFormGroup: boolean;
|
|
19
|
+
inputListeners: MaybeRef<{
|
|
20
|
+
focus: (event: Event) => void;
|
|
21
|
+
blur: (event: Event) => void;
|
|
22
|
+
input: (event: Event) => void;
|
|
23
|
+
change: (event: Event) => void;
|
|
24
|
+
}>;
|
|
25
|
+
formGroup: import("..").FormGroupInjection;
|
|
26
|
+
reset: () => void;
|
|
27
|
+
validate: (val?: any) => boolean;
|
|
28
|
+
setError: (val: string) => void;
|
|
29
|
+
};
|
|
30
|
+
emits(withListeners?: boolean): string[];
|
|
31
|
+
props(): {
|
|
32
|
+
readonly modelValue: PropType<string | number | boolean | object | any[] | undefined>;
|
|
33
|
+
readonly id: StringConstructor;
|
|
34
|
+
readonly name: StringConstructor;
|
|
35
|
+
readonly readonly: BooleanConstructor;
|
|
36
|
+
readonly required: BooleanConstructor;
|
|
37
|
+
readonly validateOnInput: {
|
|
38
|
+
readonly type: BooleanConstructor;
|
|
39
|
+
readonly default: true;
|
|
40
|
+
};
|
|
41
|
+
readonly label: StringConstructor;
|
|
42
|
+
readonly helper: StringConstructor;
|
|
43
|
+
readonly error: StringConstructor;
|
|
44
|
+
readonly hideFooter: BooleanConstructor;
|
|
45
|
+
readonly rules: {
|
|
46
|
+
readonly type: ArrayConstructor;
|
|
47
|
+
readonly default: () => never[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ref as i, watch as h, inject as G, computed as j, onMounted as A, onUnmounted as O } from "vue";
|
|
2
|
+
import { injectFormGroupKey as K, injectFormKey as M } from "./keys.js";
|
|
3
|
+
const y = (r, { focus: I, emit: o, withListeners: b = !0 }) => {
|
|
4
|
+
const s = i(!0), n = i(r.error), v = i(r.hideFooter), V = r.name ? r.name : (Math.random() + 1).toString(36).substring(7), a = i(V);
|
|
5
|
+
h(() => r.error, (e) => {
|
|
6
|
+
n.value = e;
|
|
7
|
+
}), h(() => r.name, (e) => {
|
|
8
|
+
e && (a.value = e);
|
|
9
|
+
});
|
|
10
|
+
const t = G(K, {
|
|
11
|
+
registerInputGroup: () => {
|
|
12
|
+
},
|
|
13
|
+
unregisterInputGroup: () => {
|
|
14
|
+
},
|
|
15
|
+
setValue: () => {
|
|
16
|
+
},
|
|
17
|
+
isInsideFormGroup: !1,
|
|
18
|
+
value: void 0
|
|
19
|
+
});
|
|
20
|
+
t.isInsideFormGroup && (v.value = !0);
|
|
21
|
+
const c = G(M, {
|
|
22
|
+
registerInput: () => {
|
|
23
|
+
},
|
|
24
|
+
unregisterInput: () => {
|
|
25
|
+
},
|
|
26
|
+
isInsideForm: !1
|
|
27
|
+
}), S = () => {
|
|
28
|
+
n.value = "", s.value = !0, o("update:modelValue", "");
|
|
29
|
+
}, F = (e) => {
|
|
30
|
+
n.value = e;
|
|
31
|
+
}, m = (e) => {
|
|
32
|
+
e = e || r.modelValue, s.value = !1;
|
|
33
|
+
for (let p = 0; p < r.rules.length; p++) {
|
|
34
|
+
const u = r.rules[p];
|
|
35
|
+
let l = !0;
|
|
36
|
+
if (typeof u == "function")
|
|
37
|
+
l = u(e);
|
|
38
|
+
else if (Array.isArray(u) && u.length === 2) {
|
|
39
|
+
const { 0: d, 1: g } = u;
|
|
40
|
+
l = d(e, g);
|
|
41
|
+
} else {
|
|
42
|
+
const d = u.fn, { options: g } = u;
|
|
43
|
+
l = d(e, g);
|
|
44
|
+
}
|
|
45
|
+
if (l !== !0)
|
|
46
|
+
return n.value = l, !1;
|
|
47
|
+
}
|
|
48
|
+
return n.value = "", !0;
|
|
49
|
+
}, f = i(!1), B = b ? j(() => ({
|
|
50
|
+
focus: (e) => {
|
|
51
|
+
f.value = !0, o("focus", e);
|
|
52
|
+
},
|
|
53
|
+
blur: (e) => {
|
|
54
|
+
f.value = !1, o("blur", e);
|
|
55
|
+
},
|
|
56
|
+
input: (e) => {
|
|
57
|
+
r.validateOnInput && !s.value && m(e.target.value), o("update:modelValue", e.target.value);
|
|
58
|
+
},
|
|
59
|
+
change: (e) => o("change", e)
|
|
60
|
+
})) : {
|
|
61
|
+
focus: () => {
|
|
62
|
+
},
|
|
63
|
+
blur: () => {
|
|
64
|
+
},
|
|
65
|
+
input: () => {
|
|
66
|
+
},
|
|
67
|
+
change: () => {
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
return A(() => {
|
|
71
|
+
t.isInsideFormGroup ? t.registerInputGroup(a.value, I) : c.registerInput(a.value, I, m, F);
|
|
72
|
+
}), O(() => {
|
|
73
|
+
t.isInsideFormGroup ? t.unregisterInputGroup(a.value) : c.unregisterInput(a.value);
|
|
74
|
+
}), {
|
|
75
|
+
isFirstValidation: s,
|
|
76
|
+
errorInternal: n,
|
|
77
|
+
hideFooterInternal: v,
|
|
78
|
+
isFocused: f,
|
|
79
|
+
isInsideForm: c.isInsideForm,
|
|
80
|
+
isInsideFormGroup: t.isInsideFormGroup,
|
|
81
|
+
inputListeners: B,
|
|
82
|
+
formGroup: t,
|
|
83
|
+
reset: S,
|
|
84
|
+
validate: m,
|
|
85
|
+
setError: F
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
y.emits = (r = !0) => r ? ["update:modelValue", "blur", "focus", "input", "change"] : ["update:modelValue"];
|
|
89
|
+
y.props = () => ({
|
|
90
|
+
modelValue: [String, Number, Boolean, Object, Array],
|
|
91
|
+
id: String,
|
|
92
|
+
name: String,
|
|
93
|
+
readonly: Boolean,
|
|
94
|
+
required: Boolean,
|
|
95
|
+
validateOnInput: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: !0
|
|
98
|
+
},
|
|
99
|
+
label: String,
|
|
100
|
+
helper: String,
|
|
101
|
+
error: String,
|
|
102
|
+
hideFooter: Boolean,
|
|
103
|
+
rules: {
|
|
104
|
+
type: Array,
|
|
105
|
+
default: () => []
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
export {
|
|
109
|
+
y as useInputtable
|
|
110
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { LoaderStatus } from 'src/components/loader/Loader.vue';
|
|
2
|
+
import type { PropType, Ref } from 'vue';
|
|
3
|
+
export interface InteractiveProps {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
loadingLabel?: string;
|
|
7
|
+
loadingStatus?: LoaderStatus;
|
|
8
|
+
}
|
|
9
|
+
export declare const useInteractive: {
|
|
10
|
+
(el: Ref<HTMLElement | null>): {
|
|
11
|
+
focus: () => void | undefined;
|
|
12
|
+
blur: () => void | undefined;
|
|
13
|
+
};
|
|
14
|
+
props(): {
|
|
15
|
+
readonly disabled: BooleanConstructor;
|
|
16
|
+
readonly loading: BooleanConstructor;
|
|
17
|
+
readonly loadingLabel: StringConstructor;
|
|
18
|
+
readonly loadingStatus: {
|
|
19
|
+
readonly type: PropType<LoaderStatus>;
|
|
20
|
+
readonly default: "active";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const t = (o) => ({
|
|
2
|
+
focus: () => {
|
|
3
|
+
var a, e;
|
|
4
|
+
return (e = (a = o.value) == null ? void 0 : a.focus) == null ? void 0 : e.call(a);
|
|
5
|
+
},
|
|
6
|
+
blur: () => {
|
|
7
|
+
var a, e;
|
|
8
|
+
return (e = (a = o.value) == null ? void 0 : a.blur) == null ? void 0 : e.call(a);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
t.props = () => ({
|
|
12
|
+
disabled: Boolean,
|
|
13
|
+
loading: Boolean,
|
|
14
|
+
loadingLabel: String,
|
|
15
|
+
loadingStatus: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: "active"
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
t as useInteractive
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { inject as o } from "vue";
|
|
2
|
+
import { injectNotificationKey as n } from "./keys.js";
|
|
3
|
+
const a = (i) => {
|
|
4
|
+
const t = o(i || n);
|
|
5
|
+
return t || console.warn("useNotifications must have a parent wrapped with Notifications component"), t;
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
a as useNotifications
|
|
9
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Slots, type UnwrapNestedRefs, type UnwrapRef, type MaybeRef, type CSSProperties } from 'vue';
|
|
2
|
+
import { type ColorComposition } from './useColors';
|
|
3
|
+
import { type CSSComposition } from './useCSS';
|
|
4
|
+
import type { ComponentThemes } from 'src/theme';
|
|
5
|
+
export type Stylish = false | null | undefined | string | CSSProperties;
|
|
6
|
+
export type StyleValue = Stylish | Array<Stylish>;
|
|
7
|
+
export type ThemeVueClass = string | Record<string, boolean> | (string | Record<string, boolean>)[];
|
|
8
|
+
export type ThemeClasses<P, K extends string = string, D = undefined> = Record<K, string | ((params: ThemeParams<P, D>) => ThemeVueClass)>;
|
|
9
|
+
export type ThemeStyles<P, D> = StyleValue | ((params: ThemeParams<P, D>) => StyleValue);
|
|
10
|
+
export interface ThemeComponent<P = object, K extends string = string, D = object> {
|
|
11
|
+
classes?: Partial<ThemeClasses<P, K, D>>;
|
|
12
|
+
styles?: ThemeStyles<P, D>;
|
|
13
|
+
}
|
|
14
|
+
export type ThemeParams<P = Record<string, any>, D = Record<string, any>> = {
|
|
15
|
+
props: UnwrapRef<P>;
|
|
16
|
+
slots: Slots;
|
|
17
|
+
colors: ColorComposition;
|
|
18
|
+
css: CSSComposition;
|
|
19
|
+
rtl?: boolean;
|
|
20
|
+
data: UnwrapNestedRefs<D>;
|
|
21
|
+
};
|
|
22
|
+
export declare const useTheme: <P extends object = object, K extends string = string, D extends object = object>(namespace: keyof ComponentThemes, defaultTheme?: ThemeComponent<P, K, D>, props?: MaybeRef<P>, data?: D) => {
|
|
23
|
+
classPrefix: import("vue").ComputedRef<string>;
|
|
24
|
+
className: import("vue").ComputedRef<string>;
|
|
25
|
+
colors: ColorComposition;
|
|
26
|
+
classes: import("vue").ComputedRef<Record<K, ThemeVueClass>>;
|
|
27
|
+
styles: import("vue").ComputedRef<StyleValue>;
|
|
28
|
+
css: CSSComposition;
|
|
29
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { inject as O, computed as c, unref as e, useSlots as P } from "vue";
|
|
2
|
+
import { injectThemeKey as T } from "./keys.js";
|
|
3
|
+
import { useColors as d } from "./useColors.js";
|
|
4
|
+
import { useCSS as A } from "./useCSS.js";
|
|
5
|
+
import { mergeRightDeep as D, smartUnref as h, isFunction as S, isObject as $ } from "../common/utils.js";
|
|
6
|
+
const U = (s, r = {}, n = {}, l = {}) => {
|
|
7
|
+
const o = O(T, {}), v = c(() => {
|
|
8
|
+
var t, m, a;
|
|
9
|
+
return (m = (t = e(o)) == null ? void 0 : t.components) != null && m[s] ? D(r.classes || {}, ((a = e(o).components) == null ? void 0 : a[s].classes) || {}) : r.classes || {};
|
|
10
|
+
}), p = s.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`).replace(/^-/, ""), f = c(() => {
|
|
11
|
+
var t;
|
|
12
|
+
return ((t = e(o)) == null ? void 0 : t.classPrefix) ?? "x-";
|
|
13
|
+
}), w = c(() => `${f.value}${p}`), C = c(() => {
|
|
14
|
+
var t;
|
|
15
|
+
return ((t = e(o)) == null ? void 0 : t.rtl) ?? !1;
|
|
16
|
+
}), g = P(), i = d(), u = A(p), y = c(() => b(v.value, {
|
|
17
|
+
props: e(n),
|
|
18
|
+
slots: g,
|
|
19
|
+
data: h(l),
|
|
20
|
+
colors: i,
|
|
21
|
+
css: u,
|
|
22
|
+
rtl: e(C)
|
|
23
|
+
})), N = c(() => {
|
|
24
|
+
var a, x;
|
|
25
|
+
const t = ((x = (a = e(o)) == null ? void 0 : a.components) == null ? void 0 : x[s]) || {}, m = {
|
|
26
|
+
props: e(n),
|
|
27
|
+
slots: g,
|
|
28
|
+
data: h(l),
|
|
29
|
+
colors: i,
|
|
30
|
+
css: u,
|
|
31
|
+
rtl: e(C)
|
|
32
|
+
};
|
|
33
|
+
return [
|
|
34
|
+
j(r.styles, m),
|
|
35
|
+
j(t.styles, m)
|
|
36
|
+
];
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
classPrefix: f,
|
|
40
|
+
className: w,
|
|
41
|
+
colors: i,
|
|
42
|
+
classes: y,
|
|
43
|
+
styles: N,
|
|
44
|
+
css: u
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
function b(s, r) {
|
|
48
|
+
const n = {};
|
|
49
|
+
return Object.keys(s).forEach((l) => {
|
|
50
|
+
const o = s[l];
|
|
51
|
+
n[l] = S(o) ? o(r) : $(o) ? b(o, r) : o;
|
|
52
|
+
}), n;
|
|
53
|
+
}
|
|
54
|
+
function j(s, r) {
|
|
55
|
+
return S(s) ? s(r) || {} : $(s) ? s : {};
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
U as useTheme
|
|
59
|
+
};
|
package/lib/create.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import { type UITheme } from './theme';
|
|
3
|
+
export type UIOptions = {
|
|
4
|
+
prefix?: string;
|
|
5
|
+
components?: any[];
|
|
6
|
+
icons?: Record<string, any>;
|
|
7
|
+
theme?: UITheme;
|
|
8
|
+
};
|
|
9
|
+
declare const create: (createOptions?: UIOptions) => {
|
|
10
|
+
install: (app: App, installOptions?: UIOptions) => void;
|
|
11
|
+
};
|
|
12
|
+
export default create;
|
package/lib/create.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { injectOptionsKey as r, injectIconsKey as m, injectThemeKey as f } from "./composables/keys.js";
|
|
2
|
+
import { injectThemeStyles as a } from "./theme.js";
|
|
3
|
+
const l = {
|
|
4
|
+
prefix: "X"
|
|
5
|
+
}, h = (o = {}) => ({
|
|
6
|
+
install: (t, c = {}) => {
|
|
7
|
+
var s;
|
|
8
|
+
const e = {
|
|
9
|
+
...l,
|
|
10
|
+
...o,
|
|
11
|
+
...c
|
|
12
|
+
};
|
|
13
|
+
e.components && e.components.forEach((n) => {
|
|
14
|
+
const i = n.name.startsWith("X") ? n.name.slice(1) : n.name;
|
|
15
|
+
t.component(`${e.prefix}${i}`) || t.component(`${e.prefix}${i}`, n);
|
|
16
|
+
}), t.provide(r, e), t.provide(m, e.icons || {}), t.provide(f, e.theme || {}), (s = e.theme) != null && s.styles && a(e.theme.name || "", e.theme.styles);
|
|
17
|
+
}
|
|
18
|
+
}), $ = h;
|
|
19
|
+
export {
|
|
20
|
+
$ as default
|
|
21
|
+
};
|