@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,128 @@
|
|
|
1
|
+
import { defineComponent as I, ref as c, openBlock as i, createElementBlock as d, createElementVNode as r, normalizeClass as s, unref as o, normalizeStyle as B, createVNode as u, withCtx as p, Fragment as R, renderList as V, createBlock as N, resolveDynamicComponent as z, toDisplayString as f, createCommentVNode as E, renderSlot as P } from "vue";
|
|
2
|
+
import { useCommon as v } from "../../composables/useCommon.js";
|
|
3
|
+
import { useColors as $ } from "../../composables/useColors.js";
|
|
4
|
+
import { useTheme as D } from "../../composables/useTheme.js";
|
|
5
|
+
import X from "../scroll/Scroll.vue.js";
|
|
6
|
+
import A from "../icon/Icon.vue.js";
|
|
7
|
+
import { stepperIncompleteIcon as F, errorIcon as L, successIcon as T, stepperPristineIcon as W } from "../../common/icons.js";
|
|
8
|
+
const j = { class: "overflow-hidden" }, q = { class: "flex items-start pr-4" }, G = { class: "grid text-left" }, H = { class: "text-sm truncate" }, J = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "text-xs text-gray-500"
|
|
11
|
+
}, K = {
|
|
12
|
+
...v.validators(),
|
|
13
|
+
variant: ["line"]
|
|
14
|
+
}, M = {
|
|
15
|
+
...v.props(),
|
|
16
|
+
...$.props("primary"),
|
|
17
|
+
modelValue: [String, Number],
|
|
18
|
+
steps: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: () => []
|
|
21
|
+
},
|
|
22
|
+
variant: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "line"
|
|
25
|
+
},
|
|
26
|
+
grow: Boolean,
|
|
27
|
+
fullWidth: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !0
|
|
30
|
+
},
|
|
31
|
+
interactive: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !0
|
|
34
|
+
},
|
|
35
|
+
iconPristine: String,
|
|
36
|
+
iconComplete: String,
|
|
37
|
+
iconIncomplete: String,
|
|
38
|
+
iconCurrent: String,
|
|
39
|
+
iconError: String
|
|
40
|
+
}, O = {
|
|
41
|
+
name: "XStepper",
|
|
42
|
+
validators: K
|
|
43
|
+
}, se = /* @__PURE__ */ I({
|
|
44
|
+
...O,
|
|
45
|
+
props: M,
|
|
46
|
+
emits: ["update:modelValue"],
|
|
47
|
+
setup(y, { emit: g }) {
|
|
48
|
+
const l = y, _ = g, b = c(null), S = c(null), h = c(null);
|
|
49
|
+
function k(t, a) {
|
|
50
|
+
t.disabled || !l.interactive || _("update:modelValue", a);
|
|
51
|
+
}
|
|
52
|
+
function C(t, a) {
|
|
53
|
+
return t.status === "incomplete" ? l.iconIncomplete || F : t.status === "error" ? l.iconError || L : t.status === "complete" ? l.iconComplete || T : l.iconPristine || W;
|
|
54
|
+
}
|
|
55
|
+
const { styles: w, classes: n, className: x } = D("Stepper", {}, l);
|
|
56
|
+
return (t, a) => (i(), d("div", null, [
|
|
57
|
+
r("div", {
|
|
58
|
+
ref_key: "wrapperRef",
|
|
59
|
+
ref: S,
|
|
60
|
+
class: s(["relative", [
|
|
61
|
+
o(x),
|
|
62
|
+
o(n).wrapper
|
|
63
|
+
]]),
|
|
64
|
+
style: B(o(w))
|
|
65
|
+
}, [
|
|
66
|
+
u(X, {
|
|
67
|
+
ref_key: "scrollRef",
|
|
68
|
+
ref: b,
|
|
69
|
+
scrollbar: !1,
|
|
70
|
+
horizontal: "",
|
|
71
|
+
mousewheel: "",
|
|
72
|
+
class: s(o(n).scroller)
|
|
73
|
+
}, {
|
|
74
|
+
default: p(() => [
|
|
75
|
+
r("div", {
|
|
76
|
+
ref_key: "stepperRef",
|
|
77
|
+
ref: h,
|
|
78
|
+
class: s(["relative", o(n).list])
|
|
79
|
+
}, [
|
|
80
|
+
(i(!0), d(R, null, V(t.steps, (e, m) => (i(), N(z(t.interactive ? "button" : "div"), {
|
|
81
|
+
key: m,
|
|
82
|
+
class: s([o(n).step, {
|
|
83
|
+
"cursor-pointer": t.interactive && !e.disabled,
|
|
84
|
+
"text-gray-400 dark:text-gray-600": e.disabled,
|
|
85
|
+
"flex-1": t.grow
|
|
86
|
+
}]),
|
|
87
|
+
disabled: e.disabled || !t.interactive,
|
|
88
|
+
onClick: (Q) => k(e, m)
|
|
89
|
+
}, {
|
|
90
|
+
default: p(() => [
|
|
91
|
+
r("div", j, [
|
|
92
|
+
r("div", {
|
|
93
|
+
class: s(["h-0.5 w-full mb-2", [e.status === "complete" || e.status === "incomplete" ? "bg-primary-500" : "bg-gray-200 dark:bg-gray-700"]])
|
|
94
|
+
}, null, 2),
|
|
95
|
+
r("div", q, [
|
|
96
|
+
u(A, {
|
|
97
|
+
icon: C(e),
|
|
98
|
+
size: "sm",
|
|
99
|
+
class: s([o(n).icon, {
|
|
100
|
+
"text-primary-500": e.status === "complete" || e.status === "incomplete",
|
|
101
|
+
"text-error-500": e.status === "error"
|
|
102
|
+
}])
|
|
103
|
+
}, null, 8, ["icon", "class"]),
|
|
104
|
+
r("div", G, [
|
|
105
|
+
r("div", H, f(e.label), 1),
|
|
106
|
+
e.description ? (i(), d("div", J, f(e.description), 1)) : E("", !0)
|
|
107
|
+
])
|
|
108
|
+
])
|
|
109
|
+
])
|
|
110
|
+
]),
|
|
111
|
+
_: 2
|
|
112
|
+
}, 1032, ["class", "disabled", "onClick"]))), 128))
|
|
113
|
+
], 2)
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
}, 8, ["class"])
|
|
117
|
+
], 6),
|
|
118
|
+
r("div", {
|
|
119
|
+
class: s(o(n).content)
|
|
120
|
+
}, [
|
|
121
|
+
P(t.$slots, "default")
|
|
122
|
+
], 2)
|
|
123
|
+
]));
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
export {
|
|
127
|
+
se as default
|
|
128
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
classes: {
|
|
3
|
+
wrapper: "",
|
|
4
|
+
scroller: ({ props: s }) => {
|
|
5
|
+
const t = [""];
|
|
6
|
+
return s.fullWidth || t.push("!w-fit"), t;
|
|
7
|
+
},
|
|
8
|
+
list: ({ props: s }) => ["flex min-w-full w-fit items-start"],
|
|
9
|
+
step: ({ props: s, data: t }) => {
|
|
10
|
+
const e = [""];
|
|
11
|
+
return s.grow || e.push("w-[8rem]"), e;
|
|
12
|
+
},
|
|
13
|
+
label: ({ props: s, data: t }) => [""],
|
|
14
|
+
icon: ({ props: s, data: t }) => ["mr-2 mt-0.5"],
|
|
15
|
+
content: "mt-2 mb-4"
|
|
16
|
+
}
|
|
17
|
+
}, c = r;
|
|
18
|
+
export {
|
|
19
|
+
c as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { type ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import { type Size } from '../../composables/useCommon';
|
|
3
|
+
import { type ThemeComponent } from '../../composables/useTheme';
|
|
4
|
+
import type { TabGroupInjection } from './TabGroup.vue';
|
|
5
|
+
declare const tabProps: {
|
|
6
|
+
value: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
};
|
|
9
|
+
tag: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
to: (ObjectConstructor | StringConstructor)[];
|
|
14
|
+
label: StringConstructor;
|
|
15
|
+
icon: StringConstructor;
|
|
16
|
+
disabled: BooleanConstructor;
|
|
17
|
+
exact: BooleanConstructor;
|
|
18
|
+
removable: BooleanConstructor;
|
|
19
|
+
size: {
|
|
20
|
+
readonly type: import("vue").PropType<Size>;
|
|
21
|
+
readonly default: "md";
|
|
22
|
+
readonly validator: (value: string) => boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type TabProps = ExtractPublicPropTypes<typeof tabProps>;
|
|
26
|
+
type InternalClasses = 'wrapper' | 'content' | 'label' | 'icon' | 'tabpanel';
|
|
27
|
+
type InternalExtraData = {
|
|
28
|
+
selected: boolean;
|
|
29
|
+
} & Pick<TabGroupInjection, 'state'>['state'];
|
|
30
|
+
export interface TabTheme extends ThemeComponent<TabProps, InternalClasses, InternalExtraData> {
|
|
31
|
+
}
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
33
|
+
value: {
|
|
34
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
35
|
+
};
|
|
36
|
+
tag: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
to: (ObjectConstructor | StringConstructor)[];
|
|
41
|
+
label: StringConstructor;
|
|
42
|
+
icon: StringConstructor;
|
|
43
|
+
disabled: BooleanConstructor;
|
|
44
|
+
exact: BooleanConstructor;
|
|
45
|
+
removable: BooleanConstructor;
|
|
46
|
+
size: {
|
|
47
|
+
readonly type: import("vue").PropType<Size>;
|
|
48
|
+
readonly default: "md";
|
|
49
|
+
readonly validator: (value: string) => boolean;
|
|
50
|
+
};
|
|
51
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove"[], "remove", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
value: {
|
|
53
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
54
|
+
};
|
|
55
|
+
tag: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
to: (ObjectConstructor | StringConstructor)[];
|
|
60
|
+
label: StringConstructor;
|
|
61
|
+
icon: StringConstructor;
|
|
62
|
+
disabled: BooleanConstructor;
|
|
63
|
+
exact: BooleanConstructor;
|
|
64
|
+
removable: BooleanConstructor;
|
|
65
|
+
size: {
|
|
66
|
+
readonly type: import("vue").PropType<Size>;
|
|
67
|
+
readonly default: "md";
|
|
68
|
+
readonly validator: (value: string) => boolean;
|
|
69
|
+
};
|
|
70
|
+
}>> & {
|
|
71
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
disabled: boolean;
|
|
74
|
+
tag: string;
|
|
75
|
+
removable: boolean;
|
|
76
|
+
size: Size;
|
|
77
|
+
exact: boolean;
|
|
78
|
+
}, {}>, {
|
|
79
|
+
tab?(_: {
|
|
80
|
+
label: string | undefined;
|
|
81
|
+
value: string | number | undefined;
|
|
82
|
+
size: Size;
|
|
83
|
+
icon: string | undefined;
|
|
84
|
+
}): any;
|
|
85
|
+
default?(_: {}): any;
|
|
86
|
+
}>;
|
|
87
|
+
export default _default;
|
|
88
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
89
|
+
new (): {
|
|
90
|
+
$slots: S;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { defineComponent as R, computed as s, ref as v, inject as j, reactive as D, onMounted as L, openBlock as d, createBlock as m, resolveDynamicComponent as V, normalizeStyle as E, unref as o, normalizeClass as c, withCtx as M, renderSlot as x, createElementVNode as f, createCommentVNode as k, toDisplayString as O, Teleport as P } from "vue";
|
|
2
|
+
import { useMutationObserver as X } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
|
|
3
|
+
import { injectTabGroupKey as F } from "../../composables/keys.js";
|
|
4
|
+
import { useCommon as C } from "../../composables/useCommon.js";
|
|
5
|
+
import { useTheme as G } from "../../composables/useTheme.js";
|
|
6
|
+
import z from "../icon/Icon.vue.js";
|
|
7
|
+
import I from "../link/Link.vue.js";
|
|
8
|
+
import { closeIcon as K } from "../../common/icons.js";
|
|
9
|
+
const q = {
|
|
10
|
+
...C.props(),
|
|
11
|
+
value: {
|
|
12
|
+
type: [String, Number]
|
|
13
|
+
},
|
|
14
|
+
tag: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "button"
|
|
17
|
+
},
|
|
18
|
+
to: [String, Object],
|
|
19
|
+
label: String,
|
|
20
|
+
icon: String,
|
|
21
|
+
disabled: Boolean,
|
|
22
|
+
exact: Boolean,
|
|
23
|
+
removable: Boolean
|
|
24
|
+
}, A = {
|
|
25
|
+
name: "XTab",
|
|
26
|
+
validators: {
|
|
27
|
+
...C.validators()
|
|
28
|
+
}
|
|
29
|
+
}, ee = /* @__PURE__ */ R({
|
|
30
|
+
...A,
|
|
31
|
+
props: q,
|
|
32
|
+
emits: ["remove"],
|
|
33
|
+
setup(T) {
|
|
34
|
+
const t = T, i = s(() => {
|
|
35
|
+
var e, u;
|
|
36
|
+
return ((u = (e = l.value) == null ? void 0 : e.$el) == null ? void 0 : u.href) || t.value;
|
|
37
|
+
}), S = s(() => t.label || t.value), p = v(null), l = v(null), a = j(F, {
|
|
38
|
+
tabsContentRef: v(null),
|
|
39
|
+
activateTab: () => {
|
|
40
|
+
},
|
|
41
|
+
state: D({
|
|
42
|
+
active: void 0,
|
|
43
|
+
variant: "line",
|
|
44
|
+
ghost: !1,
|
|
45
|
+
grow: !1,
|
|
46
|
+
exact: !1,
|
|
47
|
+
size: "md",
|
|
48
|
+
color: "primary"
|
|
49
|
+
})
|
|
50
|
+
}), g = s(() => a.state.exact || t.exact), b = s(() => t.size || a.state.size);
|
|
51
|
+
L(() => {
|
|
52
|
+
p.value = a.tabsContentRef.value, t.to && l.value && (y(), X(l.value.$el, y, {
|
|
53
|
+
attributes: !0,
|
|
54
|
+
attributeFilter: ["class"]
|
|
55
|
+
}));
|
|
56
|
+
});
|
|
57
|
+
function y() {
|
|
58
|
+
l.value && l.value.$el && t.to && l.value.$el.classList.contains(g.value ? "router-link-exact-active" : "router-link-active") && a.activateTab(i.value);
|
|
59
|
+
}
|
|
60
|
+
const r = s(() => a.state.active === i.value), h = s(() => a.state.color);
|
|
61
|
+
function $(e) {
|
|
62
|
+
if (t.disabled) {
|
|
63
|
+
e.preventDefault(), e.stopPropagation();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
!t.to && typeof i.value < "u" && a.activateTab(i.value);
|
|
67
|
+
}
|
|
68
|
+
const { styles: w, classes: n, className: B } = G("Tab", {}, v({
|
|
69
|
+
...t,
|
|
70
|
+
size: b.value,
|
|
71
|
+
exact: g.value
|
|
72
|
+
}), {
|
|
73
|
+
...a.state,
|
|
74
|
+
selected: r
|
|
75
|
+
});
|
|
76
|
+
return (e, u) => (d(), m(V(e.to ? I : e.tag), {
|
|
77
|
+
ref_key: "elRef",
|
|
78
|
+
ref: l,
|
|
79
|
+
"data-value": i.value,
|
|
80
|
+
to: e.to,
|
|
81
|
+
color: r.value ? h.value : void 0,
|
|
82
|
+
style: E([
|
|
83
|
+
o(w),
|
|
84
|
+
e.to && r.value && o(a).state.variant === "block" ? "--x-link-text: var(--x-tab-group-text); --x-link-text-hover: var(--x-tab-group-text);" : ""
|
|
85
|
+
]),
|
|
86
|
+
class: c([
|
|
87
|
+
o(B),
|
|
88
|
+
o(n).wrapper,
|
|
89
|
+
"shrink-0",
|
|
90
|
+
{
|
|
91
|
+
"flex-1": o(a).state.grow,
|
|
92
|
+
"text-[color:var(--x-tab-group-text)] dark:text-[color:var(--x-tab-group-dark-text)]": r.value,
|
|
93
|
+
"cursor-pointer": !e.disabled,
|
|
94
|
+
"cursor-not-allowed": e.disabled,
|
|
95
|
+
"cursor-not-allowed text-gray-500": e.disabled && !r.value
|
|
96
|
+
}
|
|
97
|
+
]),
|
|
98
|
+
"aria-disabled": e.disabled ? "true" : void 0,
|
|
99
|
+
"aria-selected": r.value ? "true" : "false",
|
|
100
|
+
onClick: $
|
|
101
|
+
}, {
|
|
102
|
+
default: M(() => [
|
|
103
|
+
x(e.$slots, "tab", {
|
|
104
|
+
label: e.label,
|
|
105
|
+
value: e.value,
|
|
106
|
+
size: b.value,
|
|
107
|
+
icon: e.icon
|
|
108
|
+
}, () => [
|
|
109
|
+
f("div", {
|
|
110
|
+
class: c(o(n).content)
|
|
111
|
+
}, [
|
|
112
|
+
e.icon ? (d(), m(z, {
|
|
113
|
+
key: 0,
|
|
114
|
+
icon: e.icon,
|
|
115
|
+
size: b.value,
|
|
116
|
+
class: c(o(n).icon)
|
|
117
|
+
}, null, 8, ["icon", "size", "class"])) : k("", !0),
|
|
118
|
+
f("div", {
|
|
119
|
+
class: c(o(n).label)
|
|
120
|
+
}, O(S.value), 3),
|
|
121
|
+
e.removable ? (d(), m(z, {
|
|
122
|
+
key: 1,
|
|
123
|
+
size: "sm",
|
|
124
|
+
icon: o(K),
|
|
125
|
+
class: "ml-2 cursor-pointer hover:text-gray-700 dark:hover:text-gray-500 transition-colors duration-150",
|
|
126
|
+
onClick: u[0] || (u[0] = (N) => e.$emit("remove", N))
|
|
127
|
+
}, null, 8, ["icon"])) : k("", !0)
|
|
128
|
+
], 2)
|
|
129
|
+
]),
|
|
130
|
+
r.value && p.value ? (d(), m(P, {
|
|
131
|
+
key: 0,
|
|
132
|
+
to: p.value
|
|
133
|
+
}, [
|
|
134
|
+
f("div", {
|
|
135
|
+
role: "tabpanel",
|
|
136
|
+
class: c(o(n).tabpanel)
|
|
137
|
+
}, [
|
|
138
|
+
x(e.$slots, "default")
|
|
139
|
+
], 2)
|
|
140
|
+
], 8, ["to"])) : k("", !0)
|
|
141
|
+
]),
|
|
142
|
+
_: 3
|
|
143
|
+
}, 8, ["data-value", "to", "color", "style", "class", "aria-disabled", "aria-selected"]));
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
export {
|
|
147
|
+
ee as default
|
|
148
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { type PropType, type ExtractPublicPropTypes, type Ref } from 'vue';
|
|
2
|
+
import { type Size } from '../../composables/useCommon';
|
|
3
|
+
import { type ThemeComponent } from '../../composables/useTheme';
|
|
4
|
+
declare const validators: {
|
|
5
|
+
variant: readonly ["line", "block"];
|
|
6
|
+
align: readonly ["left", "center", "right"];
|
|
7
|
+
size: string[];
|
|
8
|
+
};
|
|
9
|
+
declare const tabGroupProps: {
|
|
10
|
+
modelValue: (StringConstructor | NumberConstructor)[];
|
|
11
|
+
variant: {
|
|
12
|
+
type: PropType<"block" | "line">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
align: {
|
|
16
|
+
type: PropType<"left" | "right" | "center">;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
ghost: BooleanConstructor;
|
|
20
|
+
grow: BooleanConstructor;
|
|
21
|
+
exact: BooleanConstructor;
|
|
22
|
+
fullWidth: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
color: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
size: {
|
|
31
|
+
readonly type: PropType<Size>;
|
|
32
|
+
readonly default: "md";
|
|
33
|
+
readonly validator: (value: string) => boolean;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type TabGroupInjection = {
|
|
37
|
+
tabsContentRef: Ref<HTMLElement | null>;
|
|
38
|
+
activateTab: (tab: string | number) => void;
|
|
39
|
+
state: {
|
|
40
|
+
active: string | number | undefined;
|
|
41
|
+
variant: TabGroupVariant;
|
|
42
|
+
ghost: boolean;
|
|
43
|
+
grow: boolean;
|
|
44
|
+
exact: boolean;
|
|
45
|
+
size: Size;
|
|
46
|
+
color: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type TabGroupVariant = typeof validators.variant[number];
|
|
50
|
+
export type TabGroupAlign = typeof validators.align[number];
|
|
51
|
+
export type TabGroupProps = ExtractPublicPropTypes<typeof tabGroupProps>;
|
|
52
|
+
type InternalClasses = 'wrapper' | 'list' | 'tracker' | 'scroller';
|
|
53
|
+
export interface TabGroupTheme extends ThemeComponent<TabGroupProps, InternalClasses> {
|
|
54
|
+
}
|
|
55
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
56
|
+
modelValue: (StringConstructor | NumberConstructor)[];
|
|
57
|
+
variant: {
|
|
58
|
+
type: PropType<"block" | "line">;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
align: {
|
|
62
|
+
type: PropType<"left" | "right" | "center">;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
ghost: BooleanConstructor;
|
|
66
|
+
grow: BooleanConstructor;
|
|
67
|
+
exact: BooleanConstructor;
|
|
68
|
+
fullWidth: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
color: {
|
|
73
|
+
readonly type: StringConstructor;
|
|
74
|
+
readonly default: string | undefined;
|
|
75
|
+
};
|
|
76
|
+
size: {
|
|
77
|
+
readonly type: PropType<Size>;
|
|
78
|
+
readonly default: "md";
|
|
79
|
+
readonly validator: (value: string) => boolean;
|
|
80
|
+
};
|
|
81
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
82
|
+
modelValue: (StringConstructor | NumberConstructor)[];
|
|
83
|
+
variant: {
|
|
84
|
+
type: PropType<"block" | "line">;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
align: {
|
|
88
|
+
type: PropType<"left" | "right" | "center">;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
ghost: BooleanConstructor;
|
|
92
|
+
grow: BooleanConstructor;
|
|
93
|
+
exact: BooleanConstructor;
|
|
94
|
+
fullWidth: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
color: {
|
|
99
|
+
readonly type: StringConstructor;
|
|
100
|
+
readonly default: string | undefined;
|
|
101
|
+
};
|
|
102
|
+
size: {
|
|
103
|
+
readonly type: PropType<Size>;
|
|
104
|
+
readonly default: "md";
|
|
105
|
+
readonly validator: (value: string) => boolean;
|
|
106
|
+
};
|
|
107
|
+
}>> & {
|
|
108
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
color: string;
|
|
111
|
+
size: Size;
|
|
112
|
+
align: "left" | "right" | "center";
|
|
113
|
+
ghost: boolean;
|
|
114
|
+
exact: boolean;
|
|
115
|
+
variant: "block" | "line";
|
|
116
|
+
grow: boolean;
|
|
117
|
+
fullWidth: boolean;
|
|
118
|
+
}, {}>, {
|
|
119
|
+
default?(_: {}): any;
|
|
120
|
+
}>;
|
|
121
|
+
export default _default;
|
|
122
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
123
|
+
new (): {
|
|
124
|
+
$slots: S;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { defineComponent as B, ref as r, watchEffect as z, reactive as E, computed as o, provide as V, watch as G, onMounted as N, openBlock as $, createElementBlock as q, createElementVNode as f, normalizeClass as v, unref as n, normalizeStyle as F, createVNode as L, withCtx as M, renderSlot as O, withDirectives as W, vShow as X, nextTick as j } from "vue";
|
|
2
|
+
import { useMutationObserver as D, useResizeObserver as K } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
|
|
3
|
+
import { injectTabGroupKey as P } from "../../composables/keys.js";
|
|
4
|
+
import { useCommon as b } from "../../composables/useCommon.js";
|
|
5
|
+
import { useColors as A } from "../../composables/useColors.js";
|
|
6
|
+
import { useTheme as H } from "../../composables/useTheme.js";
|
|
7
|
+
import I from "../scroll/Scroll.vue.js";
|
|
8
|
+
import { useThrottleFn as J } from "../../node_modules/.pnpm/@vueuse_shared@10.2.0_vue@3.3.9/node_modules/@vueuse/shared/index.js";
|
|
9
|
+
const Q = {
|
|
10
|
+
...b.validators(),
|
|
11
|
+
variant: ["line", "block"],
|
|
12
|
+
align: ["left", "center", "right"]
|
|
13
|
+
}, U = {
|
|
14
|
+
...b.props(),
|
|
15
|
+
...A.props("primary"),
|
|
16
|
+
modelValue: [String, Number],
|
|
17
|
+
variant: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "line"
|
|
20
|
+
},
|
|
21
|
+
align: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "left"
|
|
24
|
+
},
|
|
25
|
+
ghost: Boolean,
|
|
26
|
+
grow: Boolean,
|
|
27
|
+
exact: Boolean,
|
|
28
|
+
fullWidth: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
}
|
|
32
|
+
}, Y = {
|
|
33
|
+
name: "XTabGroup",
|
|
34
|
+
validators: Q
|
|
35
|
+
}, ne = /* @__PURE__ */ B({
|
|
36
|
+
...Y,
|
|
37
|
+
props: U,
|
|
38
|
+
emits: ["update:modelValue"],
|
|
39
|
+
setup(k, { emit: w }) {
|
|
40
|
+
const t = k, g = w, u = r(null), R = r(null), i = r(null), l = r(null), d = r(null), a = r();
|
|
41
|
+
z(() => {
|
|
42
|
+
a.value = t.modelValue;
|
|
43
|
+
});
|
|
44
|
+
const _ = E({
|
|
45
|
+
active: o(() => a.value),
|
|
46
|
+
variant: o(() => t.variant),
|
|
47
|
+
ghost: o(() => t.ghost),
|
|
48
|
+
grow: o(() => t.grow),
|
|
49
|
+
exact: o(() => t.exact),
|
|
50
|
+
size: o(() => t.size),
|
|
51
|
+
color: o(() => t.color)
|
|
52
|
+
});
|
|
53
|
+
function h(e) {
|
|
54
|
+
a.value = e, g("update:modelValue", e);
|
|
55
|
+
}
|
|
56
|
+
V(P, {
|
|
57
|
+
tabsContentRef: d,
|
|
58
|
+
activateTab: h,
|
|
59
|
+
state: _
|
|
60
|
+
});
|
|
61
|
+
const p = J(async (e) => {
|
|
62
|
+
var y;
|
|
63
|
+
if (typeof e > "u")
|
|
64
|
+
return;
|
|
65
|
+
await j();
|
|
66
|
+
const s = (y = l.value) == null ? void 0 : y.querySelector(`[data-value="${e}"]`);
|
|
67
|
+
if (!s || !i.value || (i.value.style.left = `${s.offsetLeft}px`, i.value.style.width = `${s.offsetWidth}px`, !l.value || !u.value))
|
|
68
|
+
return;
|
|
69
|
+
const C = s.offsetLeft - (l.value.getBoundingClientRect().width - s.getBoundingClientRect().width) / 2;
|
|
70
|
+
u.value.scrollEl && u.value.scrollEl.scrollTo({ left: C, behavior: "smooth" });
|
|
71
|
+
}, 100, !0), m = r(!0);
|
|
72
|
+
function S() {
|
|
73
|
+
var e;
|
|
74
|
+
(e = l.value) != null && e.querySelector(".router-link-active") ? m.value = !0 : (h(null), m.value = !1);
|
|
75
|
+
}
|
|
76
|
+
G(() => a.value, (e) => {
|
|
77
|
+
p(e);
|
|
78
|
+
}), N(() => {
|
|
79
|
+
var e;
|
|
80
|
+
(e = l.value) != null && e.querySelector(".x-link") && D(l.value, S, {
|
|
81
|
+
attributes: !0,
|
|
82
|
+
subtree: !0,
|
|
83
|
+
attributeFilter: ["class"]
|
|
84
|
+
}), p(a.value);
|
|
85
|
+
}), K(l, () => {
|
|
86
|
+
p(a.value);
|
|
87
|
+
});
|
|
88
|
+
const { styles: T, classes: c, className: x } = H("TabGroup", {}, t);
|
|
89
|
+
return (e, s) => ($(), q("div", null, [
|
|
90
|
+
f("div", {
|
|
91
|
+
ref_key: "wrapperRef",
|
|
92
|
+
ref: R,
|
|
93
|
+
class: v(["relative", [
|
|
94
|
+
n(x),
|
|
95
|
+
n(c).wrapper
|
|
96
|
+
]]),
|
|
97
|
+
style: F(n(T))
|
|
98
|
+
}, [
|
|
99
|
+
L(I, {
|
|
100
|
+
ref_key: "scrollRef",
|
|
101
|
+
ref: u,
|
|
102
|
+
scrollbar: !1,
|
|
103
|
+
horizontal: "",
|
|
104
|
+
mousewheel: "",
|
|
105
|
+
class: v(n(c).scroller)
|
|
106
|
+
}, {
|
|
107
|
+
default: M(() => [
|
|
108
|
+
f("div", {
|
|
109
|
+
ref_key: "tabsRef",
|
|
110
|
+
ref: l,
|
|
111
|
+
class: v(["relative", n(c).list])
|
|
112
|
+
}, [
|
|
113
|
+
O(e.$slots, "default")
|
|
114
|
+
], 2),
|
|
115
|
+
W(f("div", {
|
|
116
|
+
ref_key: "trackerRef",
|
|
117
|
+
ref: i,
|
|
118
|
+
class: v(n(c).tracker)
|
|
119
|
+
}, null, 2), [
|
|
120
|
+
[X, m.value]
|
|
121
|
+
])
|
|
122
|
+
]),
|
|
123
|
+
_: 3
|
|
124
|
+
}, 8, ["class"])
|
|
125
|
+
], 6),
|
|
126
|
+
f("div", {
|
|
127
|
+
ref_key: "tabsContentRef",
|
|
128
|
+
ref: d
|
|
129
|
+
}, null, 512)
|
|
130
|
+
]));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
export {
|
|
134
|
+
ne as default
|
|
135
|
+
};
|