@indielayer/ui 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/exports/tailwind.preset.js +30 -45
- package/lib/{composables/colors-utils.d.ts → common/colors.d.ts} +1 -1
- package/lib/common/icons.js +7 -8
- package/lib/common/utils.d.ts +6 -4
- package/lib/components/alert/Alert.vue.d.ts +10 -6
- package/lib/components/alert/Alert.vue2.js +13 -14
- package/lib/components/alert/index.d.ts +1 -2
- package/lib/components/alert/theme/Alert.base.theme.d.ts +3 -0
- package/lib/components/alert/theme/Alert.carbon.theme.d.ts +3 -0
- package/lib/components/alert/theme/Alert.carbon.theme.js +5 -0
- package/lib/components/avatar/Avatar.vue.d.ts +13 -6
- package/lib/components/avatar/Avatar.vue2.js +16 -17
- package/lib/components/avatar/index.d.ts +1 -2
- package/lib/components/avatar/theme/Avatar.base.theme.d.ts +3 -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 +10 -6
- package/lib/components/badge/Badge.vue.js +18 -19
- package/lib/components/badge/index.d.ts +1 -2
- 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 +11 -4
- package/lib/components/breadcrumbs/Breadcrumbs.vue.js +55 -65
- package/lib/components/breadcrumbs/index.d.ts +1 -2
- package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.d.ts +3 -0
- package/lib/components/breadcrumbs/{Breadcrumbs.theme.js → theme/Breadcrumbs.base.theme.js} +2 -2
- 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 +33 -10
- package/lib/components/button/Button.vue.js +2 -2
- package/lib/components/button/Button.vue2.js +60 -58
- package/lib/components/button/ButtonGroup.vue.d.ts +31 -8
- package/lib/components/button/ButtonGroup.vue2.js +13 -14
- package/lib/components/button/index.d.ts +2 -4
- package/lib/components/button/theme/Button.base.theme.d.ts +3 -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.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 +4 -0
- package/lib/components/card/Card.vue.js +12 -13
- package/lib/components/card/index.d.ts +1 -2
- package/lib/components/card/theme/Card.base.theme.d.ts +3 -0
- package/lib/components/card/{Card.theme.js → theme/Card.base.theme.js} +2 -2
- 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 +35 -8
- package/lib/components/checkbox/Checkbox.vue2.js +53 -53
- package/lib/components/checkbox/index.d.ts +1 -2
- package/lib/components/checkbox/theme/Checkbox.base.theme.d.ts +3 -0
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.d.ts +3 -0
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +52 -0
- package/lib/components/collapse/Collapse.vue.d.ts +5 -1
- package/lib/components/collapse/Collapse.vue.js +34 -35
- package/lib/components/collapse/index.d.ts +1 -2
- package/lib/components/collapse/theme/Collapse.base.theme.d.ts +3 -0
- package/lib/components/collapse/theme/Collapse.carbon.theme.d.ts +3 -0
- package/lib/components/collapse/theme/Collapse.carbon.theme.js +5 -0
- package/lib/components/container/Container.vue.d.ts +4 -0
- package/lib/components/container/Container.vue.js +13 -14
- package/lib/components/container/index.d.ts +1 -2
- package/lib/components/container/theme/Container.base.theme.d.ts +3 -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 +4 -0
- package/lib/components/divider/Divider.vue.js +12 -13
- package/lib/components/divider/index.d.ts +1 -2
- package/lib/components/divider/theme/Divider.base.theme.d.ts +3 -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 +10 -6
- package/lib/components/drawer/Drawer.vue.js +34 -35
- package/lib/components/drawer/index.d.ts +1 -2
- package/lib/components/drawer/theme/Drawer.base.theme.d.ts +3 -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 +5 -1
- package/lib/components/form/Form.vue.js +23 -24
- package/lib/components/form/index.d.ts +1 -2
- package/lib/components/form/theme/Form.base.theme.d.ts +3 -0
- package/lib/components/form/theme/Form.carbon.theme.d.ts +3 -0
- package/lib/components/form/theme/Form.carbon.theme.js +5 -0
- package/lib/components/icon/Icon.vue.d.ts +15 -5
- package/lib/components/icon/Icon.vue.js +16 -17
- package/lib/components/icon/index.d.ts +1 -2
- package/lib/components/icon/theme/Icon.base.theme.d.ts +3 -0
- package/lib/components/icon/theme/Icon.carbon.theme.d.ts +3 -0
- package/lib/components/icon/theme/Icon.carbon.theme.js +11 -0
- package/lib/components/image/Image.vue.d.ts +4 -0
- package/lib/components/image/Image.vue.js +13 -14
- package/lib/components/image/index.d.ts +1 -2
- package/lib/components/image/theme/Image.base.theme.d.ts +3 -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 +5 -0
- package/lib/components/index.js +101 -88
- package/lib/components/input/Input.vue.d.ts +47 -12
- package/lib/components/input/Input.vue.js +101 -94
- package/lib/components/input/index.d.ts +1 -2
- 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 +11 -0
- package/lib/components/link/Link.vue.d.ts +6 -2
- package/lib/components/link/Link.vue.js +1 -1
- package/lib/components/link/Link.vue2.js +15 -16
- package/lib/components/link/index.d.ts +1 -2
- package/lib/components/link/theme/Link.base.theme.d.ts +3 -0
- package/lib/components/link/{Link.theme.js → theme/Link.base.theme.js} +4 -4
- 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 +8 -4
- package/lib/components/menu/Menu.vue.js +21 -22
- package/lib/components/menu/MenuItem.vue.d.ts +16 -9
- package/lib/components/menu/MenuItem.vue.js +2 -2
- package/lib/components/menu/MenuItem.vue2.js +35 -36
- package/lib/components/menu/index.d.ts +2 -4
- package/lib/components/menu/theme/Menu.base.theme.d.ts +3 -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.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 +4 -0
- package/lib/components/modal/Modal.vue.js +39 -40
- package/lib/components/modal/index.d.ts +1 -2
- package/lib/components/modal/theme/Modal.base.theme.d.ts +3 -0
- package/lib/components/modal/{Modal.theme.js → theme/Modal.base.theme.js} +2 -2
- package/lib/components/modal/theme/Modal.carbon.theme.d.ts +3 -0
- package/lib/components/modal/theme/Modal.carbon.theme.js +5 -0
- package/lib/components/notifications/Notifications.vue.d.ts +17 -5
- package/lib/components/notifications/Notifications.vue.js +34 -35
- package/lib/components/notifications/index.d.ts +1 -2
- package/lib/components/notifications/theme/Notifications.base.theme.d.ts +3 -0
- package/lib/components/notifications/theme/Notifications.carbon.theme.d.ts +3 -0
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +5 -0
- package/lib/components/pagination/Pagination.vue.d.ts +9 -5
- package/lib/components/pagination/Pagination.vue.js +34 -34
- package/lib/components/pagination/PaginationItem.vue.d.ts +8 -4
- package/lib/components/pagination/PaginationItem.vue.js +13 -14
- package/lib/components/pagination/index.d.ts +2 -4
- package/lib/components/pagination/theme/Pagination.base.theme.d.ts +3 -0
- package/lib/components/pagination/{Pagination.theme.js → theme/Pagination.base.theme.js} +6 -6
- 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.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 +163 -54
- package/lib/components/popover/Popover.vue.js +127 -7
- package/lib/components/popover/Popover.vue2.js +2 -104
- package/lib/components/popover/Popover.vue3.js +3 -13
- package/lib/components/popover/PopoverContainer.vue.d.ts +4 -0
- package/lib/components/popover/PopoverContainer.vue.js +10 -11
- package/lib/components/popover/index.d.ts +2 -4
- 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.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 +6 -2
- package/lib/components/progress/Progress.vue.js +14 -15
- package/lib/components/progress/index.d.ts +1 -2
- package/lib/components/progress/theme/Progress.base.theme.d.ts +3 -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 +38 -11
- package/lib/components/radio/Radio.vue2.js +62 -62
- package/lib/components/radio/index.d.ts +1 -2
- package/lib/components/radio/theme/Radio.base.theme.d.ts +3 -0
- package/lib/components/radio/{Radio.theme.js → theme/Radio.base.theme.js} +16 -16
- package/lib/components/radio/theme/Radio.carbon.theme.d.ts +3 -0
- package/lib/components/radio/theme/Radio.carbon.theme.js +61 -0
- package/lib/components/scroll/Scroll.vue.d.ts +8 -2
- package/lib/components/scroll/Scroll.vue2.js +20 -21
- package/lib/components/scroll/index.d.ts +1 -2
- package/lib/components/scroll/theme/Scroll.base.theme.d.ts +3 -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 +38 -7
- package/lib/components/select/Select.vue.js +283 -206
- package/lib/components/select/index.d.ts +1 -2
- 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 +4 -0
- package/lib/components/skeleton/Skeleton.vue.js +10 -11
- package/lib/components/skeleton/index.d.ts +1 -2
- package/lib/components/skeleton/theme/Skeleton.base.theme.d.ts +3 -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 +31 -7
- package/lib/components/slider/Slider.vue.js +97 -96
- package/lib/components/slider/index.d.ts +1 -1
- 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/spinner/Spinner.vue.d.ts +4 -4
- package/lib/components/spinner/Spinner.vue.js +2 -2
- package/lib/components/tab/Tab.vue.d.ts +11 -3
- package/lib/components/tab/Tab.vue.js +61 -57
- package/lib/components/tab/TabGroup.vue.d.ts +24 -7
- package/lib/components/tab/TabGroup.vue.js +78 -76
- package/lib/components/tab/index.d.ts +2 -2
- package/lib/components/tab/theme/Tab.base.theme.d.ts +3 -0
- package/lib/components/tab/{Tab.theme.js → theme/Tab.base.theme.js} +4 -3
- package/lib/components/tab/theme/Tab.carbon.theme.d.ts +3 -0
- package/lib/components/tab/theme/Tab.carbon.theme.js +17 -0
- package/lib/components/tab/theme/TabGroup.base.theme.d.ts +3 -0
- package/lib/components/tab/{TabGroup.theme.js → theme/TabGroup.base.theme.js} +5 -1
- package/lib/components/tab/theme/TabGroup.carbon.theme.d.ts +3 -0
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +5 -0
- package/lib/components/table/Table.vue.d.ts +213 -225
- package/lib/components/table/Table.vue.js +27 -28
- package/lib/components/table/TableCell.vue.d.ts +5 -1
- package/lib/components/table/TableCell.vue.js +19 -20
- package/lib/components/table/TableHeader.vue.d.ts +1 -1
- package/lib/components/table/TableRow.vue.d.ts +1 -1
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/theme/Table.base.theme.d.ts +3 -0
- package/lib/components/table/{Table.theme.js → theme/Table.base.theme.js} +3 -3
- 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.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 +10 -6
- package/lib/components/tag/Tag.vue.js +16 -17
- package/lib/components/tag/index.d.ts +1 -1
- package/lib/components/tag/theme/Tag.base.theme.d.ts +3 -0
- package/lib/components/tag/{Tag.theme.js → theme/Tag.base.theme.js} +8 -8
- 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 +51 -23
- package/lib/components/textarea/Textarea.vue.js +81 -78
- package/lib/components/textarea/index.d.ts +1 -1
- 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 +31 -7
- package/lib/components/toggle/Toggle.vue.js +44 -44
- package/lib/components/toggle/index.d.ts +1 -1
- package/lib/components/toggle/theme/Toggle.base.theme.d.ts +3 -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.js +13 -9
- package/lib/composables/index.d.ts +6 -6
- package/lib/composables/keys.d.ts +9 -5
- package/lib/composables/keys.js +6 -6
- package/lib/composables/useColors.js +52 -0
- package/lib/composables/{inputtable.d.ts → useInputtable.d.ts} +9 -2
- package/lib/composables/useInputtable.js +93 -0
- package/lib/composables/{interactive.d.ts → useInteractive.d.ts} +9 -1
- package/lib/composables/useInteractive.js +22 -0
- package/lib/composables/useNotifications.d.ts +2 -0
- package/lib/composables/{theme.d.ts → useTheme.d.ts} +9 -6
- package/lib/composables/useTheme.js +59 -0
- package/lib/create.d.ts +7 -8
- package/lib/create.js +14 -12
- package/lib/index.d.ts +4 -2
- package/lib/index.js +118 -102
- package/lib/index.umd.js +166 -1
- package/lib/install.d.ts +1 -1
- 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.4 → @vueuse_core@10.2.0_vue@3.3.9}/node_modules/@vueuse/core/index.js +2 -2
- 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/theme.d.ts +56 -0
- package/lib/theme.js +14 -0
- package/lib/themes/base/components.d.ts +43 -0
- package/lib/themes/base/components.js +88 -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 +43 -0
- package/lib/themes/carbon/components.js +88 -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 +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -10
- package/src/{composables/colors-utils.ts → common/colors.ts} +1 -1
- package/src/common/utils.ts +7 -5
- package/src/components/alert/Alert.vue +6 -6
- package/src/components/alert/__tests__/Alert.spec.ts +0 -3
- package/src/components/alert/index.ts +1 -2
- package/src/components/alert/{Alert.theme.ts → theme/Alert.base.theme.ts} +2 -10
- package/src/components/alert/theme/Alert.carbon.theme.ts +7 -0
- package/src/components/avatar/Avatar.vue +9 -7
- package/src/components/avatar/index.ts +1 -2
- package/src/components/avatar/{Avatar.theme.ts → theme/Avatar.base.theme.ts} +2 -12
- package/src/components/avatar/theme/Avatar.carbon.theme.ts +7 -0
- package/src/components/badge/Badge.vue +7 -6
- package/src/components/badge/index.ts +1 -2
- 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 +19 -17
- package/src/components/breadcrumbs/index.ts +1 -2
- 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 +28 -19
- package/src/components/button/ButtonGroup.vue +9 -7
- package/src/components/button/index.ts +2 -4
- package/src/components/button/{Button.theme.ts → theme/Button.base.theme.ts} +2 -11
- 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 +5 -4
- package/src/components/card/index.ts +1 -2
- 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 +14 -12
- package/src/components/checkbox/index.ts +1 -2
- package/src/components/checkbox/{Checkbox.theme.ts → theme/Checkbox.base.theme.ts} +2 -12
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +94 -0
- package/src/components/collapse/Collapse.vue +6 -5
- package/src/components/collapse/index.ts +1 -2
- package/src/components/collapse/theme/Collapse.base.theme.ts +13 -0
- package/src/components/collapse/theme/Collapse.carbon.theme.ts +7 -0
- package/src/components/container/Container.vue +5 -4
- package/src/components/container/index.ts +1 -2
- 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 +5 -4
- package/src/components/divider/index.ts +1 -2
- 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 +5 -4
- package/src/components/drawer/index.ts +1 -2
- 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 +5 -4
- package/src/components/form/index.ts +1 -2
- package/src/components/form/theme/Form.base.theme.ts +9 -0
- package/src/components/form/theme/Form.carbon.theme.ts +7 -0
- package/src/components/icon/Icon.vue +11 -8
- package/src/components/icon/index.ts +1 -2
- package/src/components/icon/{Icon.theme.ts → theme/Icon.base.theme.ts} +2 -10
- package/src/components/icon/theme/Icon.carbon.theme.ts +18 -0
- package/src/components/image/Image.vue +5 -4
- package/src/components/image/index.ts +1 -2
- 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 +5 -0
- package/src/components/input/Input.vue +46 -43
- package/src/components/input/index.ts +1 -2
- package/src/components/input/{Input.theme.ts → theme/Input.base.theme.ts} +3 -23
- 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 +13 -0
- package/src/components/link/Link.vue +6 -5
- package/src/components/link/index.ts +1 -2
- package/src/components/link/{Link.theme.ts → theme/Link.base.theme.ts} +2 -10
- 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 +8 -7
- package/src/components/menu/MenuItem.vue +9 -6
- package/src/components/menu/index.ts +2 -4
- 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/{MenuItem.theme.ts → theme/MenuItem.base.theme.ts} +2 -12
- package/src/components/menu/theme/MenuItem.carbon.theme.ts +7 -0
- package/src/components/modal/Modal.vue +5 -4
- package/src/components/modal/index.ts +1 -2
- package/src/components/modal/{Modal.theme.ts → theme/Modal.base.theme.ts} +2 -10
- package/src/components/modal/theme/Modal.carbon.theme.ts +7 -0
- package/src/components/notifications/Notifications.vue +17 -7
- package/src/components/notifications/index.ts +1 -1
- package/src/components/notifications/theme/Notifications.base.theme.ts +13 -0
- package/src/components/notifications/theme/Notifications.carbon.theme.ts +7 -0
- package/src/components/pagination/Pagination.vue +13 -6
- package/src/components/pagination/PaginationItem.vue +7 -5
- package/src/components/pagination/index.ts +2 -4
- package/src/components/pagination/{Pagination.theme.ts → theme/Pagination.base.theme.ts} +3 -11
- package/src/components/pagination/theme/Pagination.carbon.theme.ts +7 -0
- package/src/components/pagination/{PaginationItem.theme.ts → theme/PaginationItem.base.theme.ts} +2 -10
- package/src/components/pagination/theme/PaginationItem.carbon.theme.ts +7 -0
- package/src/components/popover/Popover.vue +149 -200
- package/src/components/popover/PopoverContainer.vue +5 -4
- package/src/components/popover/index.ts +2 -4
- 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 +6 -5
- package/src/components/progress/index.ts +1 -2
- package/src/components/progress/{Progress.theme.ts → theme/Progress.base.theme.ts} +2 -10
- package/src/components/progress/theme/Progress.carbon.theme.ts +7 -0
- package/src/components/radio/Radio.vue +13 -11
- package/src/components/radio/index.ts +1 -2
- package/src/components/radio/{Radio.theme.ts → theme/Radio.base.theme.ts} +3 -13
- package/src/components/radio/theme/Radio.carbon.theme.ts +104 -0
- package/src/components/scroll/Scroll.vue +9 -6
- package/src/components/scroll/index.ts +1 -2
- 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 +183 -93
- package/src/components/select/index.ts +1 -2
- 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 +5 -4
- package/src/components/skeleton/index.ts +1 -2
- 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 +20 -20
- package/src/components/slider/index.ts +1 -1
- 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/spinner/Spinner.vue +2 -2
- package/src/components/tab/Tab.vue +18 -10
- package/src/components/tab/TabGroup.vue +16 -12
- package/src/components/tab/index.ts +8 -2
- package/src/components/tab/theme/Tab.base.theme.ts +26 -0
- package/src/components/tab/theme/Tab.carbon.theme.ts +32 -0
- package/src/components/tab/{TabGroup.theme.ts → theme/TabGroup.base.theme.ts} +14 -12
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +7 -0
- package/src/components/table/Table.vue +5 -4
- package/src/components/table/TableCell.vue +5 -4
- package/src/components/table/index.ts +2 -2
- 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/{TableCell.theme.ts → theme/TableCell.base.theme.ts} +2 -10
- package/src/components/table/theme/TableCell.carbon.theme.ts +7 -0
- package/src/components/tag/Tag.vue +7 -6
- package/src/components/tag/index.ts +1 -1
- package/src/components/tag/{Tag.theme.ts → theme/Tag.base.theme.ts} +3 -11
- package/src/components/tag/theme/Tag.carbon.theme.ts +34 -0
- package/src/components/textarea/Textarea.vue +28 -27
- package/src/components/textarea/index.ts +1 -1
- 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 +12 -11
- package/src/components/toggle/index.ts +1 -1
- package/src/components/toggle/{Toggle.theme.ts → theme/Toggle.base.theme.ts} +2 -10
- package/src/components/toggle/theme/Toggle.carbon.theme.ts +7 -0
- package/src/components/tooltip/Tooltip.vue +1 -1
- package/src/composables/index.ts +6 -6
- package/src/composables/keys.ts +9 -5
- package/src/composables/{colors.ts → useColors.ts} +5 -5
- package/src/composables/{inputtable.ts → useInputtable.ts} +21 -5
- package/src/composables/{interactive.ts → useInteractive.ts} +9 -1
- package/src/composables/{notifications.ts → useNotifications.ts} +2 -1
- package/src/composables/{theme.ts → useTheme.ts} +17 -11
- package/src/create.ts +13 -12
- package/src/index.ts +4 -2
- package/src/theme.ts +119 -0
- package/src/themes/base/components.ts +43 -0
- package/src/themes/base/index.ts +15 -0
- package/src/themes/base/styles.css +83 -0
- package/src/themes/carbon/components.ts +43 -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 -1
- package/volar.d.ts +5 -0
- package/lib/components/alert/Alert.theme.d.ts +0 -10
- package/lib/components/avatar/Avatar.theme.d.ts +0 -14
- package/lib/components/badge/Badge.theme.d.ts +0 -10
- package/lib/components/badge/Badge.theme.js +0 -12
- package/lib/components/breadcrumbs/Breadcrumbs.theme.d.ts +0 -10
- package/lib/components/button/Button.theme.d.ts +0 -13
- package/lib/components/button/ButtonGroup.theme.d.ts +0 -13
- package/lib/components/card/Card.theme.d.ts +0 -10
- package/lib/components/checkbox/Checkbox.theme.d.ts +0 -14
- package/lib/components/collapse/Collapse.theme.d.ts +0 -10
- package/lib/components/container/Container.theme.d.ts +0 -10
- package/lib/components/divider/Divider.theme.d.ts +0 -10
- package/lib/components/drawer/Drawer.theme.d.ts +0 -10
- package/lib/components/form/Form.theme.d.ts +0 -10
- package/lib/components/helpers/InputError.d.ts +0 -8
- package/lib/components/helpers/InputError.js +0 -18
- package/lib/components/icon/Icon.theme.d.ts +0 -10
- package/lib/components/image/Image.theme.d.ts +0 -10
- package/lib/components/input/Input.theme.d.ts +0 -13
- package/lib/components/input/Input.theme.js +0 -21
- package/lib/components/link/Link.theme.d.ts +0 -10
- package/lib/components/menu/Menu.theme.d.ts +0 -10
- package/lib/components/menu/MenuItem.theme.d.ts +0 -14
- package/lib/components/modal/Modal.theme.d.ts +0 -10
- package/lib/components/notifications/Notifications.theme.d.ts +0 -10
- package/lib/components/pagination/Pagination.theme.d.ts +0 -10
- package/lib/components/pagination/PaginationItem.theme.d.ts +0 -10
- package/lib/components/popover/Popover.theme.d.ts +0 -10
- package/lib/components/popover/Popover.theme.js +0 -9
- package/lib/components/popover/PopoverContainer.theme.d.ts +0 -10
- package/lib/components/progress/Progress.theme.d.ts +0 -10
- package/lib/components/radio/Radio.theme.d.ts +0 -14
- package/lib/components/scroll/Scroll.theme.d.ts +0 -10
- package/lib/components/select/Select.theme.d.ts +0 -14
- package/lib/components/select/Select.theme.js +0 -23
- package/lib/components/skeleton/Skeleton.theme.d.ts +0 -10
- package/lib/components/slider/Slider.theme.d.ts +0 -10
- package/lib/components/slider/Slider.theme.js +0 -20
- package/lib/components/tab/Tab.theme.d.ts +0 -12
- package/lib/components/tab/TabGroup.theme.d.ts +0 -10
- package/lib/components/table/Table.theme.d.ts +0 -10
- package/lib/components/table/TableCell.theme.d.ts +0 -10
- package/lib/components/tag/Tag.theme.d.ts +0 -10
- package/lib/components/textarea/Textarea.theme.d.ts +0 -14
- package/lib/components/textarea/Textarea.theme.js +0 -16
- package/lib/components/toggle/Toggle.theme.d.ts +0 -10
- package/lib/composables/colors.js +0 -52
- package/lib/composables/inputtable.js +0 -78
- package/lib/composables/interactive.js +0 -17
- package/lib/composables/notifications.d.ts +0 -1
- package/lib/composables/theme.js +0 -59
- package/src/components/badge/Badge.theme.ts +0 -23
- package/src/components/breadcrumbs/Breadcrumbs.theme.ts +0 -19
- package/src/components/button/ButtonGroup.theme.ts +0 -18
- package/src/components/card/Card.theme.ts +0 -17
- package/src/components/collapse/Collapse.theme.ts +0 -21
- package/src/components/container/Container.theme.ts +0 -17
- package/src/components/divider/Divider.theme.ts +0 -21
- package/src/components/drawer/Drawer.theme.ts +0 -19
- package/src/components/form/Form.theme.ts +0 -17
- package/src/components/helpers/InputError.tsx +0 -14
- package/src/components/image/Image.theme.ts +0 -17
- package/src/components/menu/Menu.theme.ts +0 -17
- package/src/components/notifications/Notifications.theme.ts +0 -21
- package/src/components/popover/Popover.theme.ts +0 -19
- package/src/components/popover/PopoverContainer.theme.ts +0 -17
- package/src/components/scroll/Scroll.theme.ts +0 -17
- package/src/components/select/Select.theme.ts +0 -68
- package/src/components/skeleton/Skeleton.theme.ts +0 -17
- package/src/components/slider/Slider.theme.ts +0 -40
- package/src/components/tab/Tab.theme.ts +0 -34
- package/src/components/table/Table.theme.ts +0 -29
- package/src/components/textarea/Textarea.theme.ts +0 -50
- /package/lib/{composables/colors-utils.js → common/colors.js} +0 -0
- /package/lib/components/alert/{Alert.theme.js → theme/Alert.base.theme.js} +0 -0
- /package/lib/components/avatar/{Avatar.theme.js → theme/Avatar.base.theme.js} +0 -0
- /package/lib/components/button/{Button.theme.js → theme/Button.base.theme.js} +0 -0
- /package/lib/components/button/{ButtonGroup.theme.js → theme/ButtonGroup.base.theme.js} +0 -0
- /package/lib/components/checkbox/{Checkbox.theme.js → theme/Checkbox.base.theme.js} +0 -0
- /package/lib/components/collapse/{Collapse.theme.js → theme/Collapse.base.theme.js} +0 -0
- /package/lib/components/container/{Container.theme.js → theme/Container.base.theme.js} +0 -0
- /package/lib/components/divider/{Divider.theme.js → theme/Divider.base.theme.js} +0 -0
- /package/lib/components/drawer/{Drawer.theme.js → theme/Drawer.base.theme.js} +0 -0
- /package/lib/components/form/{Form.theme.js → theme/Form.base.theme.js} +0 -0
- /package/lib/components/icon/{Icon.theme.js → theme/Icon.base.theme.js} +0 -0
- /package/lib/components/image/{Image.theme.js → theme/Image.base.theme.js} +0 -0
- /package/lib/components/menu/{Menu.theme.js → theme/Menu.base.theme.js} +0 -0
- /package/lib/components/menu/{MenuItem.theme.js → theme/MenuItem.base.theme.js} +0 -0
- /package/lib/components/notifications/{Notifications.theme.js → theme/Notifications.base.theme.js} +0 -0
- /package/lib/components/pagination/{PaginationItem.theme.js → theme/PaginationItem.base.theme.js} +0 -0
- /package/lib/components/popover/{PopoverContainer.theme.js → theme/PopoverContainer.base.theme.js} +0 -0
- /package/lib/components/progress/{Progress.theme.js → theme/Progress.base.theme.js} +0 -0
- /package/lib/components/scroll/{Scroll.theme.js → theme/Scroll.base.theme.js} +0 -0
- /package/lib/components/skeleton/{Skeleton.theme.js → theme/Skeleton.base.theme.js} +0 -0
- /package/lib/components/table/{TableCell.theme.js → theme/TableCell.base.theme.js} +0 -0
- /package/lib/components/toggle/{Toggle.theme.js → theme/Toggle.base.theme.js} +0 -0
- /package/lib/composables/{css.d.ts → useCSS.d.ts} +0 -0
- /package/lib/composables/{css.js → useCSS.js} +0 -0
- /package/lib/composables/{colors.d.ts → useColors.d.ts} +0 -0
- /package/lib/composables/{common.d.ts → useCommon.d.ts} +0 -0
- /package/lib/composables/{common.js → useCommon.js} +0 -0
- /package/lib/composables/{notifications.js → useNotifications.js} +0 -0
- /package/lib/node_modules/.pnpm/{@vueuse_shared@10.2.0_vue@3.3.4 → @vueuse_shared@10.2.0_vue@3.3.9}/node_modules/@vueuse/shared/index.js +0 -0
- /package/src/composables/{css.ts → useCSS.ts} +0 -0
- /package/src/composables/{common.ts → useCommon.ts} +0 -0
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTheme as d } from "../../composables/
|
|
3
|
-
|
|
4
|
-
const k = {
|
|
1
|
+
import { defineComponent as r, openBlock as c, createBlock as p, resolveDynamicComponent as m, normalizeStyle as i, unref as e, normalizeClass as f, withCtx as u, createTextVNode as _ } from "vue";
|
|
2
|
+
import { useTheme as d } from "../../composables/useTheme.js";
|
|
3
|
+
const y = {
|
|
5
4
|
tag: {
|
|
6
5
|
type: String,
|
|
7
6
|
default: "div"
|
|
8
7
|
}
|
|
9
|
-
},
|
|
10
|
-
...
|
|
11
|
-
props:
|
|
8
|
+
}, k = { name: "XSkeleton" }, h = /* @__PURE__ */ r({
|
|
9
|
+
...k,
|
|
10
|
+
props: y,
|
|
12
11
|
setup(t) {
|
|
13
|
-
const s = t, { styles: o, classes: n, className:
|
|
14
|
-
return (
|
|
12
|
+
const s = t, { styles: o, classes: n, className: a } = d("Skeleton", {}, s);
|
|
13
|
+
return (l, C) => (c(), p(m(l.tag), {
|
|
15
14
|
style: i(e(o)),
|
|
16
15
|
class: f([
|
|
17
|
-
e(
|
|
16
|
+
e(a),
|
|
18
17
|
e(n).wrapper
|
|
19
18
|
])
|
|
20
19
|
}, {
|
|
@@ -26,5 +25,5 @@ const k = {
|
|
|
26
25
|
}
|
|
27
26
|
});
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
h as default
|
|
30
29
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ExtractPublicPropTypes } from 'vue';
|
|
2
|
+
import { type ThemeComponent } from '../../composables/useTheme';
|
|
2
3
|
declare const sliderProps: {
|
|
3
4
|
label: StringConstructor;
|
|
4
5
|
min: NumberConstructor;
|
|
@@ -17,23 +18,32 @@ declare const sliderProps: {
|
|
|
17
18
|
readonly default: true;
|
|
18
19
|
};
|
|
19
20
|
error: StringConstructor;
|
|
21
|
+
hideFooter: BooleanConstructor;
|
|
20
22
|
rules: {
|
|
21
23
|
readonly type: ArrayConstructor;
|
|
22
24
|
readonly default: () => never[];
|
|
23
25
|
};
|
|
24
26
|
disabled: BooleanConstructor;
|
|
25
27
|
loading: BooleanConstructor;
|
|
28
|
+
loadingLabel: StringConstructor;
|
|
29
|
+
loadingStatus: {
|
|
30
|
+
readonly type: import("vue").PropType<import("../loader/Loader.vue").LoaderStatus>;
|
|
31
|
+
readonly default: "active";
|
|
32
|
+
};
|
|
26
33
|
color: {
|
|
27
34
|
readonly type: StringConstructor;
|
|
28
35
|
readonly default: string | undefined;
|
|
29
36
|
};
|
|
30
37
|
size: {
|
|
31
|
-
readonly type: import("vue").PropType<import("../../composables/
|
|
38
|
+
readonly type: import("vue").PropType<import("../../composables/useCommon").Size>;
|
|
32
39
|
readonly default: "md";
|
|
33
40
|
readonly validator: (value: string) => boolean;
|
|
34
41
|
};
|
|
35
42
|
};
|
|
36
43
|
export type SliderProps = ExtractPublicPropTypes<typeof sliderProps>;
|
|
44
|
+
type InternalClasses = 'wrapper' | 'drag';
|
|
45
|
+
export interface SliderTheme extends ThemeComponent<SliderProps, InternalClasses> {
|
|
46
|
+
}
|
|
37
47
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
38
48
|
label: StringConstructor;
|
|
39
49
|
min: NumberConstructor;
|
|
@@ -52,18 +62,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
52
62
|
readonly default: true;
|
|
53
63
|
};
|
|
54
64
|
error: StringConstructor;
|
|
65
|
+
hideFooter: BooleanConstructor;
|
|
55
66
|
rules: {
|
|
56
67
|
readonly type: ArrayConstructor;
|
|
57
68
|
readonly default: () => never[];
|
|
58
69
|
};
|
|
59
70
|
disabled: BooleanConstructor;
|
|
60
71
|
loading: BooleanConstructor;
|
|
72
|
+
loadingLabel: StringConstructor;
|
|
73
|
+
loadingStatus: {
|
|
74
|
+
readonly type: import("vue").PropType<import("../loader/Loader.vue").LoaderStatus>;
|
|
75
|
+
readonly default: "active";
|
|
76
|
+
};
|
|
61
77
|
color: {
|
|
62
78
|
readonly type: StringConstructor;
|
|
63
79
|
readonly default: string | undefined;
|
|
64
80
|
};
|
|
65
81
|
size: {
|
|
66
|
-
readonly type: import("vue").PropType<import("../../composables/
|
|
82
|
+
readonly type: import("vue").PropType<import("../../composables/useCommon").Size>;
|
|
67
83
|
readonly default: "md";
|
|
68
84
|
readonly validator: (value: string) => boolean;
|
|
69
85
|
};
|
|
@@ -91,34 +107,42 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
91
107
|
readonly default: true;
|
|
92
108
|
};
|
|
93
109
|
error: StringConstructor;
|
|
110
|
+
hideFooter: BooleanConstructor;
|
|
94
111
|
rules: {
|
|
95
112
|
readonly type: ArrayConstructor;
|
|
96
113
|
readonly default: () => never[];
|
|
97
114
|
};
|
|
98
115
|
disabled: BooleanConstructor;
|
|
99
116
|
loading: BooleanConstructor;
|
|
117
|
+
loadingLabel: StringConstructor;
|
|
118
|
+
loadingStatus: {
|
|
119
|
+
readonly type: import("vue").PropType<import("../loader/Loader.vue").LoaderStatus>;
|
|
120
|
+
readonly default: "active";
|
|
121
|
+
};
|
|
100
122
|
color: {
|
|
101
123
|
readonly type: StringConstructor;
|
|
102
124
|
readonly default: string | undefined;
|
|
103
125
|
};
|
|
104
126
|
size: {
|
|
105
|
-
readonly type: import("vue").PropType<import("../../composables/
|
|
127
|
+
readonly type: import("vue").PropType<import("../../composables/useCommon").Size>;
|
|
106
128
|
readonly default: "md";
|
|
107
129
|
readonly validator: (value: string) => boolean;
|
|
108
130
|
};
|
|
109
131
|
}>> & {
|
|
110
132
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
111
133
|
}, {
|
|
112
|
-
|
|
113
|
-
color: string;
|
|
114
|
-
size: import("../../composables/common").Size;
|
|
134
|
+
size: import("../../composables/useCommon").Size;
|
|
115
135
|
required: boolean;
|
|
116
|
-
|
|
136
|
+
color: string;
|
|
137
|
+
disabled: boolean;
|
|
117
138
|
loading: boolean;
|
|
139
|
+
loadingStatus: import("../loader/Loader.vue").LoaderStatus;
|
|
118
140
|
readonly: boolean;
|
|
119
141
|
validateOnInput: boolean;
|
|
142
|
+
hideFooter: boolean;
|
|
120
143
|
rules: unknown[];
|
|
121
144
|
gradient: boolean;
|
|
145
|
+
step: number;
|
|
122
146
|
}, {}>, {
|
|
123
147
|
prefix?(_: {
|
|
124
148
|
value: number;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useEventListener as f } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.
|
|
3
|
-
import { useCommon as
|
|
4
|
-
import { useColors as
|
|
5
|
-
import { useInteractive as
|
|
6
|
-
import { useInputtable as
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
11
|
-
...
|
|
12
|
-
...
|
|
13
|
-
...
|
|
14
|
-
...
|
|
1
|
+
import { defineComponent as j, ref as u, watch as D, computed as G, openBlock as k, createBlock as H, normalizeClass as g, unref as l, normalizeStyle as N, withCtx as J, createElementVNode as c, renderSlot as C, createVNode as O, createElementBlock as Q, toDisplayString as U, createCommentVNode as Y } from "vue";
|
|
2
|
+
import { useEventListener as f } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
|
|
3
|
+
import { useCommon as V } from "../../composables/useCommon.js";
|
|
4
|
+
import { useColors as Z } from "../../composables/useColors.js";
|
|
5
|
+
import { useInteractive as P } from "../../composables/useInteractive.js";
|
|
6
|
+
import { useInputtable as b } from "../../composables/useInputtable.js";
|
|
7
|
+
import { useTheme as ee } from "../../composables/useTheme.js";
|
|
8
|
+
import te from "../label/Label.vue.js";
|
|
9
|
+
import re from "../progress/Progress.vue.js";
|
|
10
|
+
const oe = { class: "flex items-center relative w-full" }, ae = { class: "-mx-2" }, se = ["textContent"], le = {
|
|
11
|
+
...V.props(),
|
|
12
|
+
...Z.props("primary"),
|
|
13
|
+
...P.props(),
|
|
14
|
+
...b.props(),
|
|
15
15
|
label: String,
|
|
16
16
|
min: Number,
|
|
17
17
|
max: Number,
|
|
@@ -20,62 +20,62 @@ const ee = ["textContent"], te = { class: "flex items-center relative w-full" },
|
|
|
20
20
|
default: 1
|
|
21
21
|
},
|
|
22
22
|
gradient: Boolean
|
|
23
|
-
},
|
|
23
|
+
}, ne = {
|
|
24
24
|
name: "XSlider",
|
|
25
25
|
validators: {
|
|
26
|
-
...
|
|
26
|
+
...V.validators()
|
|
27
27
|
}
|
|
28
|
-
},
|
|
29
|
-
...
|
|
30
|
-
props:
|
|
31
|
-
emits:
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
|
|
28
|
+
}, be = /* @__PURE__ */ j({
|
|
29
|
+
...ne,
|
|
30
|
+
props: le,
|
|
31
|
+
emits: b.emits(!1),
|
|
32
|
+
setup(R, { expose: X, emit: S }) {
|
|
33
|
+
const d = R, x = S, v = u(null), o = u(null), n = u(null), t = u(Number(d.modelValue ?? 0)), { focus: p, blur: L } = P(v);
|
|
34
|
+
D(() => d.modelValue, (e) => {
|
|
35
35
|
t.value = Number(e ?? 0);
|
|
36
|
-
}),
|
|
37
|
-
|
|
36
|
+
}), D(t, (e) => {
|
|
37
|
+
x("update:modelValue", e);
|
|
38
38
|
});
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
if (e.stopPropagation(), !
|
|
39
|
+
const a = u(), w = G(() => !!a.value);
|
|
40
|
+
function W(e) {
|
|
41
|
+
if (e.stopPropagation(), !o.value || !n.value)
|
|
42
42
|
return;
|
|
43
|
-
|
|
43
|
+
p();
|
|
44
44
|
const r = n.value.offsetWidth;
|
|
45
45
|
let s = Math.floor(e.offsetX * 100 / r);
|
|
46
46
|
s < 0 && (s = 0), s > 100 && (s = 100), t.value = s, setTimeout(() => {
|
|
47
47
|
var m;
|
|
48
|
-
|
|
48
|
+
a.value = {
|
|
49
49
|
x: e.x,
|
|
50
50
|
y: e.y,
|
|
51
51
|
maxWidth: r,
|
|
52
|
-
offsetX: (m =
|
|
52
|
+
offsetX: (m = o.value) == null ? void 0 : m.offsetLeft
|
|
53
53
|
};
|
|
54
54
|
}), e.preventDefault(), e.stopPropagation();
|
|
55
55
|
}
|
|
56
56
|
function $(e) {
|
|
57
|
-
!
|
|
57
|
+
!o.value || !n.value || (p(), a.value = {
|
|
58
58
|
x: e.x,
|
|
59
59
|
y: e.y,
|
|
60
60
|
maxWidth: n.value.offsetWidth,
|
|
61
|
-
offsetX:
|
|
61
|
+
offsetX: o.value.offsetLeft
|
|
62
62
|
}, e.preventDefault(), e.stopPropagation());
|
|
63
63
|
}
|
|
64
64
|
function B(e) {
|
|
65
|
-
if (!
|
|
65
|
+
if (!a.value || !o.value)
|
|
66
66
|
return;
|
|
67
|
-
const { x: r, maxWidth: s, offsetX: m } =
|
|
68
|
-
if (
|
|
67
|
+
const { x: r, maxWidth: s, offsetX: m } = a.value, _ = e.x - r;
|
|
68
|
+
if (_ === 0)
|
|
69
69
|
return;
|
|
70
|
-
const
|
|
71
|
-
let
|
|
72
|
-
|
|
70
|
+
const K = m + _;
|
|
71
|
+
let i = Math.floor(K * 100 / s);
|
|
72
|
+
i < 0 && (i = 0), i > 100 && (i = 100), t.value = i, e.preventDefault(), e.stopPropagation();
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
74
|
+
function E(e) {
|
|
75
|
+
a.value && (a.value = void 0, e.preventDefault(), e.stopPropagation());
|
|
76
76
|
}
|
|
77
|
-
typeof window < "u" && (f(n, "pointerdown",
|
|
78
|
-
function
|
|
77
|
+
typeof window < "u" && (f(n, "pointerdown", W, !1), f(o, "pointerdown", $, !1), f(window, "pointermove", B, !0), f(window, "pointerup", E, !0)), f(v, "keydown", I);
|
|
78
|
+
function I(e) {
|
|
79
79
|
if (e.code === "ArrowLeft") {
|
|
80
80
|
const r = t.value - 1;
|
|
81
81
|
r >= 0 && (t.value = r), e.preventDefault();
|
|
@@ -85,64 +85,65 @@ const ee = ["textContent"], te = { class: "flex items-center relative w-full" },
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
const {
|
|
88
|
-
errorInternal:
|
|
89
|
-
reset:
|
|
90
|
-
validate:
|
|
91
|
-
setError:
|
|
92
|
-
isInsideForm:
|
|
93
|
-
} =
|
|
94
|
-
return
|
|
88
|
+
errorInternal: y,
|
|
89
|
+
reset: q,
|
|
90
|
+
validate: M,
|
|
91
|
+
setError: z,
|
|
92
|
+
isInsideForm: A
|
|
93
|
+
} = b(d, { focus: p, emit: x, withListeners: !1 }), { styles: T, classes: h, className: F } = ee("Slider", {}, d);
|
|
94
|
+
return X({ focus: p, blur: L, reset: q, validate: M, setError: z }), (e, r) => (k(), H(te, {
|
|
95
95
|
ref_key: "elRef",
|
|
96
|
-
ref:
|
|
96
|
+
ref: v,
|
|
97
97
|
tabindex: "0",
|
|
98
|
-
class:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
{ "mb-3": o(K) }
|
|
98
|
+
class: g(["group", [
|
|
99
|
+
l(F),
|
|
100
|
+
l(h).wrapper
|
|
102
101
|
]]),
|
|
103
|
-
style: N(
|
|
104
|
-
|
|
105
|
-
e.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
102
|
+
style: N(l(T)),
|
|
103
|
+
disabled: e.disabled,
|
|
104
|
+
required: e.required,
|
|
105
|
+
"is-inside-form": l(A),
|
|
106
|
+
label: e.label
|
|
107
|
+
}, {
|
|
108
|
+
default: J(() => [
|
|
109
|
+
c("div", oe, [
|
|
110
|
+
C(e.$slots, "prefix", { value: t.value }),
|
|
111
|
+
c("div", {
|
|
112
|
+
ref_key: "progressRef",
|
|
113
|
+
ref: n,
|
|
114
|
+
class: g([[w.value ? "cursor-grabbing" : "cursor-grab"], "relative w-full py-2 mx-2"])
|
|
115
|
+
}, [
|
|
116
|
+
c("div", ae, [
|
|
117
|
+
O(re, {
|
|
118
|
+
percentage: t.value,
|
|
119
|
+
animate: !1,
|
|
120
|
+
thick: "",
|
|
121
|
+
class: "w-full",
|
|
122
|
+
gradient: e.gradient
|
|
123
|
+
}, null, 8, ["percentage", "gradient"])
|
|
124
|
+
]),
|
|
125
|
+
c("div", {
|
|
126
|
+
ref_key: "dragRef",
|
|
127
|
+
ref: o,
|
|
128
|
+
class: g(["absolute group-focus:border-[color:var(--x-slider-border)]", [
|
|
129
|
+
l(h).drag,
|
|
130
|
+
w.value ? "cursor-grabbing" : "cursor-grab"
|
|
131
|
+
]]),
|
|
132
|
+
style: N(`left: ${t.value}%;`)
|
|
133
|
+
}, null, 6)
|
|
134
|
+
], 2),
|
|
135
|
+
C(e.$slots, "suffix", { value: t.value })
|
|
136
|
+
]),
|
|
137
|
+
l(y) ? (k(), Q("p", {
|
|
138
|
+
key: 0,
|
|
139
|
+
class: "text-sm text-red-500 mt-1",
|
|
140
|
+
textContent: U(l(y))
|
|
141
|
+
}, null, 8, se)) : Y("", !0)
|
|
137
142
|
]),
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
class: "text-sm text-red-500 mt-1",
|
|
141
|
-
textContent: V(o(D))
|
|
142
|
-
}, null, 8, oe)) : P("", !0)
|
|
143
|
-
], 6));
|
|
143
|
+
_: 3
|
|
144
|
+
}, 8, ["style", "disabled", "required", "is-inside-form", "label", "class"]));
|
|
144
145
|
}
|
|
145
146
|
});
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
+
be as default
|
|
148
149
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as XSlider } from './Slider.vue';
|
|
2
|
-
export type { SliderProps } from './Slider.vue';
|
|
2
|
+
export type { SliderProps, SliderTheme } from './Slider.vue';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
classes: {
|
|
3
|
+
wrapper: "",
|
|
4
|
+
drag: "w-[20px] h-[20px] -mt-[13px] -ml-[10px] rounded-full bg-white border shadow-sm"
|
|
5
|
+
},
|
|
6
|
+
styles: ({ props: t, colors: e, css: r }) => {
|
|
7
|
+
const a = e.getPalette("primary"), s = e.getPalette(t.color);
|
|
8
|
+
return r.variables({
|
|
9
|
+
bg: s[500],
|
|
10
|
+
border: a[500]
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}, l = o;
|
|
14
|
+
export {
|
|
15
|
+
l as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const s = {
|
|
2
|
+
classes: {
|
|
3
|
+
wrapper: "",
|
|
4
|
+
drag: "w-[16px] h-[16px] -mt-[11px] -ml-[8px] rounded-full bg-gray-900"
|
|
5
|
+
},
|
|
6
|
+
styles: ({ props: t, colors: e, css: r }) => {
|
|
7
|
+
const a = e.getPalette("primary"), l = e.getPalette(t.color);
|
|
8
|
+
return r.variables({
|
|
9
|
+
bg: l[500],
|
|
10
|
+
border: a[500]
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}, o = s;
|
|
14
|
+
export {
|
|
15
|
+
o as default
|
|
16
|
+
};
|
|
@@ -5,7 +5,7 @@ declare const spinnerProps: {
|
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
size: {
|
|
8
|
-
readonly type: import("vue").PropType<import("../../composables/
|
|
8
|
+
readonly type: import("vue").PropType<import("../../composables/useCommon").Size>;
|
|
9
9
|
readonly default: "md";
|
|
10
10
|
readonly validator: (value: string) => boolean;
|
|
11
11
|
};
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
size: {
|
|
20
|
-
readonly type: import("vue").PropType<import("../../composables/
|
|
20
|
+
readonly type: import("vue").PropType<import("../../composables/useCommon").Size>;
|
|
21
21
|
readonly default: "md";
|
|
22
22
|
readonly validator: (value: string) => boolean;
|
|
23
23
|
};
|
|
@@ -27,12 +27,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
29
|
size: {
|
|
30
|
-
readonly type: import("vue").PropType<import("../../composables/
|
|
30
|
+
readonly type: import("vue").PropType<import("../../composables/useCommon").Size>;
|
|
31
31
|
readonly default: "md";
|
|
32
32
|
readonly validator: (value: string) => boolean;
|
|
33
33
|
};
|
|
34
34
|
}>>, {
|
|
35
|
-
size: import("../../composables/
|
|
35
|
+
size: import("../../composables/useCommon").Size;
|
|
36
36
|
icon: string;
|
|
37
37
|
}, {}>;
|
|
38
38
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as t, openBlock as r, createBlock as n } from "vue";
|
|
2
|
-
import { useCommon as o } from "../../composables/
|
|
2
|
+
import { useCommon as o } from "../../composables/useCommon.js";
|
|
3
3
|
import i from "../icon/Icon.vue.js";
|
|
4
4
|
const a = {
|
|
5
5
|
...o.props(),
|
|
6
6
|
icon: {
|
|
7
7
|
type: String,
|
|
8
|
-
default: '<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".
|
|
8
|
+
default: '<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".8" cx="18" cy="18" r="18"/><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.5s" repeatCount="indefinite"/></path></g></g>'
|
|
9
9
|
}
|
|
10
10
|
}, s = {
|
|
11
11
|
name: "XSpinner",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ExtractPublicPropTypes } from 'vue';
|
|
2
|
-
import { type Size } from '../../composables/
|
|
2
|
+
import { type Size } from '../../composables/useCommon';
|
|
3
|
+
import { type ThemeComponent } from '../../composables/useTheme';
|
|
4
|
+
import type { TabGroupInjection } from './TabGroup.vue';
|
|
3
5
|
declare const tabProps: {
|
|
4
6
|
value: {
|
|
5
7
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -20,6 +22,12 @@ declare const tabProps: {
|
|
|
20
22
|
};
|
|
21
23
|
};
|
|
22
24
|
export type TabProps = ExtractPublicPropTypes<typeof tabProps>;
|
|
25
|
+
type InternalClasses = 'wrapper' | 'content' | 'label' | 'icon';
|
|
26
|
+
type InternalExtraData = {
|
|
27
|
+
selected: boolean;
|
|
28
|
+
} & Pick<TabGroupInjection, 'state'>['state'];
|
|
29
|
+
export interface TabTheme extends ThemeComponent<TabProps, InternalClasses, InternalExtraData> {
|
|
30
|
+
}
|
|
23
31
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
24
32
|
value: {
|
|
25
33
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -57,10 +65,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
65
|
readonly validator: (value: string) => boolean;
|
|
58
66
|
};
|
|
59
67
|
}>>, {
|
|
60
|
-
disabled: boolean;
|
|
61
68
|
size: Size;
|
|
62
|
-
exact: boolean;
|
|
63
69
|
tag: string;
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
exact: boolean;
|
|
64
72
|
}, {}>, {
|
|
65
73
|
tab?(_: {
|
|
66
74
|
label: string | undefined;
|