@indielayer/ui 1.3.0 → 1.4.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/LICENSE +1 -1
- package/README.md +4 -4
- package/docs/App.vue +25 -0
- package/docs/assets/css/hljs.css +302 -0
- package/docs/assets/css/tailwind.css +46 -0
- package/docs/assets/images/error.svg +1 -0
- package/docs/assets/images/logo.png +0 -0
- package/docs/assets/images/logo_mini.svg +10 -0
- package/docs/assets/images/logo_white.png +0 -0
- package/docs/assets/images/logo_word.svg +12 -0
- package/docs/assets/images/logo_word_dark.svg +12 -0
- package/docs/assets/images/photo1.jpeg +0 -0
- package/docs/assets/images/photo2.jpeg +0 -0
- package/docs/components/Cookies.vue +42 -0
- package/docs/components/common/CodePreview.vue +80 -0
- package/docs/components/common/CodeSnippet.vue +49 -0
- package/docs/components/common/CopyButton.vue +50 -0
- package/docs/components/common/DocumentPage.vue +289 -0
- package/docs/components/common/Indielayer-theme.json +702 -0
- package/docs/components/common/MultiSnippet.vue +26 -0
- package/docs/components/menu/DocsMenu.vue +143 -0
- package/docs/components/toolbar/PreToolbar.vue +18 -0
- package/docs/components/toolbar/Toolbar.vue +63 -0
- package/docs/components/toolbar/ToolbarColorToggle.vue +49 -0
- package/docs/icons.ts +61 -0
- package/docs/layouts/default.vue +29 -0
- package/docs/layouts/simple.vue +3 -0
- package/docs/main.ts +33 -0
- package/docs/pages/colors.vue +125 -0
- package/docs/pages/component/accordion/index.vue +29 -0
- package/docs/pages/component/accordion/usage.vue +30 -0
- package/docs/pages/component/alert/index.vue +29 -0
- package/docs/pages/component/alert/usage.vue +18 -0
- package/docs/pages/component/avatar/index.vue +43 -0
- package/docs/pages/component/avatar/size.vue +9 -0
- package/docs/pages/component/avatar/usage.vue +9 -0
- package/docs/pages/component/avatar/variants.vue +8 -0
- package/docs/pages/component/badge/index.vue +29 -0
- package/docs/pages/component/badge/usage.vue +50 -0
- package/docs/pages/component/breadcrumbs/index.vue +29 -0
- package/docs/pages/component/breadcrumbs/usage.vue +19 -0
- package/docs/pages/component/button/button-group.vue +18 -0
- package/docs/pages/component/button/icons.vue +9 -0
- package/docs/pages/component/button/index.vue +64 -0
- package/docs/pages/component/button/size.vue +9 -0
- package/docs/pages/component/button/states.vue +6 -0
- package/docs/pages/component/button/usage.vue +12 -0
- package/docs/pages/component/button/variants.vue +7 -0
- package/docs/pages/component/card/index.vue +29 -0
- package/docs/pages/component/card/usage.vue +6 -0
- package/docs/pages/component/carousel/index.vue +29 -0
- package/docs/pages/component/carousel/usage.vue +10 -0
- package/docs/pages/component/checkbox/index.vue +50 -0
- package/docs/pages/component/checkbox/size.vue +9 -0
- package/docs/pages/component/checkbox/states.vue +9 -0
- package/docs/pages/component/checkbox/usage.vue +15 -0
- package/docs/pages/component/checkbox/variants.vue +8 -0
- package/docs/pages/component/container/index.vue +29 -0
- package/docs/pages/component/container/usage.vue +3 -0
- package/docs/pages/component/divider/index.vue +43 -0
- package/docs/pages/component/divider/label.vue +12 -0
- package/docs/pages/component/divider/usage.vue +7 -0
- package/docs/pages/component/divider/vertical.vue +7 -0
- package/docs/pages/component/drawer/index.vue +29 -0
- package/docs/pages/component/drawer/usage.vue +56 -0
- package/docs/pages/component/form/index.vue +29 -0
- package/docs/pages/component/form/usage.vue +96 -0
- package/docs/pages/component/formGroup/index.vue +29 -0
- package/docs/pages/component/formGroup/usage.vue +46 -0
- package/docs/pages/component/icon/index.vue +36 -0
- package/docs/pages/component/icon/usage.vue +6 -0
- package/docs/pages/component/icon/variants.vue +14 -0
- package/docs/pages/component/image/index.vue +29 -0
- package/docs/pages/component/image/usage.vue +8 -0
- package/docs/pages/component/input/index.vue +50 -0
- package/docs/pages/component/input/size.vue +13 -0
- package/docs/pages/component/input/states.vue +12 -0
- package/docs/pages/component/input/usage.vue +15 -0
- package/docs/pages/component/input/variants.vue +18 -0
- package/docs/pages/component/link/index.vue +29 -0
- package/docs/pages/component/link/usage.vue +12 -0
- package/docs/pages/component/loader/index.vue +29 -0
- package/docs/pages/component/loader/usage.vue +7 -0
- package/docs/pages/component/menu/index.vue +29 -0
- package/docs/pages/component/menu/usage.vue +69 -0
- package/docs/pages/component/modal/composed.vue +70 -0
- package/docs/pages/component/modal/index.vue +36 -0
- package/docs/pages/component/modal/usage.vue +61 -0
- package/docs/pages/component/notifications/index.vue +29 -0
- package/docs/pages/component/notifications/usage.vue +56 -0
- package/docs/pages/component/pagination/index.vue +29 -0
- package/docs/pages/component/pagination/usage.vue +17 -0
- package/docs/pages/component/popover/index.vue +29 -0
- package/docs/pages/component/popover/usage.vue +21 -0
- package/docs/pages/component/progress/index.vue +36 -0
- package/docs/pages/component/progress/usage.vue +7 -0
- package/docs/pages/component/progress/variants.vue +18 -0
- package/docs/pages/component/radio/index.vue +50 -0
- package/docs/pages/component/radio/size.vue +15 -0
- package/docs/pages/component/radio/states.vue +13 -0
- package/docs/pages/component/radio/usage.vue +14 -0
- package/docs/pages/component/radio/variants.vue +39 -0
- package/docs/pages/component/scroll/horizontal.vue +14 -0
- package/docs/pages/component/scroll/index.vue +36 -0
- package/docs/pages/component/scroll/usage.vue +5 -0
- package/docs/pages/component/select/index.vue +43 -0
- package/docs/pages/component/select/states.vue +22 -0
- package/docs/pages/component/select/usage.vue +45 -0
- package/docs/pages/component/select/variants.vue +23 -0
- package/docs/pages/component/skeleton/index.vue +29 -0
- package/docs/pages/component/skeleton/usage.vue +10 -0
- package/docs/pages/component/slider/index.vue +29 -0
- package/docs/pages/component/slider/usage.vue +15 -0
- package/docs/pages/component/spacer/index.vue +29 -0
- package/docs/pages/component/spacer/usage.vue +8 -0
- package/docs/pages/component/spinner/index.vue +36 -0
- package/docs/pages/component/spinner/usage.vue +3 -0
- package/docs/pages/component/spinner/variants.vue +9 -0
- package/docs/pages/component/stepper/index.vue +29 -0
- package/docs/pages/component/stepper/usage.vue +21 -0
- package/docs/pages/component/table/index.vue +36 -0
- package/docs/pages/component/table/states.vue +28 -0
- package/docs/pages/component/table/usage.vue +107 -0
- package/docs/pages/component/tabs/index.vue +29 -0
- package/docs/pages/component/tabs/usage.vue +137 -0
- package/docs/pages/component/tag/index.vue +29 -0
- package/docs/pages/component/tag/usage.vue +27 -0
- package/docs/pages/component/textarea/index.vue +43 -0
- package/docs/pages/component/textarea/states.vue +13 -0
- package/docs/pages/component/textarea/usage.vue +22 -0
- package/docs/pages/component/textarea/variants.vue +15 -0
- package/docs/pages/component/toggle/index.vue +43 -0
- package/docs/pages/component/toggle/states.vue +13 -0
- package/docs/pages/component/toggle/usage.vue +14 -0
- package/docs/pages/component/toggle/variants.vue +15 -0
- package/docs/pages/component/tooltip/index.vue +29 -0
- package/docs/pages/component/tooltip/usage.vue +16 -0
- package/docs/pages/error.vue +6 -0
- package/docs/pages/icons.vue +105 -0
- package/docs/pages/index.vue +157 -0
- package/docs/pages/play.vue +19 -0
- package/docs/pages/typography.vue +95 -0
- package/docs/router/index.ts +75 -0
- package/exports/tailwind.preset.js +1 -0
- package/lib/common/icons.d.ts +4 -1
- package/lib/common/icons.js +14 -11
- package/lib/components/accordion/Accordion.vue.d.ts +63 -0
- package/lib/components/accordion/Accordion.vue.js +40 -0
- package/lib/components/accordion/Accordion.vue2.js +4 -0
- package/lib/components/{collapse/Collapse.vue.d.ts → accordion/AccordionItem.vue.d.ts} +33 -18
- package/lib/components/accordion/AccordionItem.vue.js +140 -0
- package/lib/components/accordion/AccordionItem.vue2.js +4 -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 +5 -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 +5 -0
- package/lib/components/alert/theme/Alert.carbon.theme.js +39 -3
- package/lib/components/avatar/Avatar.vue.d.ts +2 -2
- package/lib/components/badge/Badge.vue.d.ts +2 -2
- package/lib/components/button/Button.vue.d.ts +3 -3
- package/lib/components/button/ButtonGroup.vue.d.ts +3 -3
- package/lib/components/button/theme/Button.carbon.theme.js +1 -1
- package/lib/components/carousel/CarouselSlide.vue.d.ts +19 -8
- package/lib/components/carousel/CarouselSlide.vue.js +2 -2
- package/lib/components/carousel/CarouselSlide.vue2.js +25 -18
- package/lib/components/checkbox/Checkbox.vue.d.ts +22 -10
- package/lib/components/checkbox/Checkbox.vue2.js +106 -72
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +38 -31
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +38 -31
- package/lib/components/container/Container.vue.d.ts +13 -0
- package/lib/components/container/Container.vue.js +15 -11
- package/lib/components/container/theme/Container.base.theme.js +7 -4
- package/lib/components/drawer/Drawer.vue.d.ts +4 -4
- package/lib/components/form/Form.vue.d.ts +25 -2
- package/lib/components/form/Form.vue.js +67 -36
- package/lib/components/form/theme/Form.base.theme.js +8 -4
- package/lib/components/form/theme/Form.carbon.theme.js +10 -3
- 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/theme/Icon.base.theme.js +1 -1
- package/lib/components/icon/theme/Icon.carbon.theme.js +4 -4
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +106 -100
- package/lib/components/input/Input.vue.d.ts +12 -9
- package/lib/components/input/Input.vue.js +39 -39
- package/lib/components/input/theme/Input.carbon.theme.js +1 -1
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +1 -1
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +1 -1
- package/lib/components/label/Label.vue.d.ts +3 -3
- package/lib/components/label/theme/Label.carbon.theme.js +7 -6
- package/lib/components/link/Link.vue.d.ts +1 -1
- package/lib/components/link/Link.vue.js +2 -2
- package/lib/components/link/Link.vue2.js +1 -1
- package/lib/components/link/theme/Link.base.theme.js +4 -4
- package/lib/components/link/theme/Link.carbon.theme.js +23 -3
- package/lib/components/loader/theme/Loader.carbon.theme.js +1 -1
- package/lib/components/menu/Menu.vue.d.ts +6 -5
- package/lib/components/menu/Menu.vue.js +43 -40
- package/lib/components/menu/MenuItem.vue.d.ts +4 -4
- package/lib/components/menu/MenuItem.vue.js +2 -2
- package/lib/components/menu/MenuItem.vue2.js +1 -1
- package/lib/components/menu/theme/MenuItem.base.theme.js +3 -3
- package/lib/components/modal/Modal.vue.d.ts +98 -3
- package/lib/components/modal/Modal.vue.js +153 -100
- package/lib/components/modal/theme/Modal.base.theme.js +15 -9
- package/lib/components/modal/theme/Modal.carbon.theme.js +27 -3
- package/lib/components/notifications/Notifications.vue.js +56 -53
- package/lib/components/notifications/theme/Notifications.base.theme.js +1 -1
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +8 -3
- package/lib/components/popover/Popover.vue.d.ts +3 -3
- package/lib/components/radio/Radio.vue.d.ts +17 -12
- package/lib/components/radio/Radio.vue2.js +81 -66
- package/lib/components/radio/theme/Radio.base.theme.js +19 -16
- package/lib/components/radio/theme/Radio.carbon.theme.js +32 -29
- package/lib/components/select/Select.vue.d.ts +13 -10
- package/lib/components/select/Select.vue.js +115 -116
- package/lib/components/select/theme/Select.base.theme.js +10 -10
- package/lib/components/select/theme/Select.carbon.theme.js +5 -5
- package/lib/components/skeleton/Skeleton.vue.d.ts +19 -1
- package/lib/components/skeleton/Skeleton.vue.js +25 -15
- package/lib/components/skeleton/theme/Skeleton.base.theme.js +7 -4
- package/lib/components/slider/Slider.vue.d.ts +12 -6
- package/lib/components/slider/Slider.vue.js +3 -4
- package/lib/components/slider/theme/Slider.carbon.theme.js +4 -4
- package/lib/components/spinner/Spinner.vue.d.ts +1 -1
- package/lib/components/spinner/Spinner.vue.js +16 -17
- 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/{collapse/theme/Collapse.carbon.theme.js → stepper/theme/Stepper.carbon.theme.js} +1 -1
- package/lib/components/tab/Tab.vue.d.ts +11 -5
- package/lib/components/tab/Tab.vue.js +65 -50
- package/lib/components/tab/TabGroup.vue.d.ts +1 -1
- package/lib/components/tab/TabGroup.vue.js +5 -5
- package/lib/components/tab/theme/Tab.base.theme.js +2 -1
- package/lib/components/tab/theme/Tab.carbon.theme.js +6 -5
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +28 -2
- package/lib/components/table/Table.vue.d.ts +115 -9
- package/lib/components/table/Table.vue.js +209 -98
- package/lib/components/table/TableCell.vue.d.ts +4 -5
- package/lib/components/table/TableCell.vue.js +21 -22
- package/lib/components/table/TableHead.vue.d.ts +16 -0
- package/lib/components/table/TableHead.vue.js +21 -0
- package/lib/components/table/TableHead.vue2.js +4 -0
- package/lib/components/table/TableHeader.vue.d.ts +4 -0
- package/lib/components/table/TableHeader.vue.js +45 -54
- package/lib/components/table/TableRow.vue.d.ts +15 -1
- package/lib/components/table/TableRow.vue.js +21 -25
- package/lib/components/table/index.d.ts +4 -2
- package/lib/components/table/theme/Table.base.theme.js +7 -6
- package/lib/components/table/theme/Table.carbon.theme.js +11 -3
- package/lib/components/table/theme/TableCell.base.theme.js +3 -3
- package/lib/components/table/theme/TableCell.carbon.theme.js +9 -3
- package/lib/components/table/theme/TableHead.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHead.base.theme.js +9 -0
- package/lib/components/table/theme/TableHead.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHead.carbon.theme.js +9 -0
- package/lib/components/table/theme/TableHeader.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHeader.base.theme.js +12 -0
- package/lib/components/table/theme/TableHeader.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableHeader.carbon.theme.js +12 -0
- package/lib/components/table/theme/TableRow.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableRow.base.theme.js +11 -0
- package/lib/components/table/theme/TableRow.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableRow.carbon.theme.js +11 -0
- package/lib/components/tag/Tag.vue.d.ts +3 -3
- package/lib/components/tag/Tag.vue.js +17 -17
- package/lib/components/tag/theme/Tag.base.theme.js +14 -13
- package/lib/components/tag/theme/Tag.carbon.theme.js +14 -14
- package/lib/components/textarea/Textarea.vue.d.ts +11 -8
- package/lib/components/textarea/Textarea.vue.js +34 -34
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +1 -1
- package/lib/components/toggle/Toggle.vue.d.ts +12 -12
- package/lib/components/toggle/Toggle.vue.js +37 -39
- package/lib/composables/keys.d.ts +5 -1
- package/lib/composables/keys.js +8 -6
- package/lib/composables/useFocusTrap.d.ts +6 -0
- package/lib/composables/useFocusTrap.js +45 -0
- package/lib/composables/useInputtable.d.ts +6 -0
- package/lib/composables/useInputtable.js +59 -42
- package/lib/index.js +137 -129
- package/lib/index.umd.js +3 -3
- 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 +8 -2
- package/lib/themes/base/components.d.ts +7 -1
- package/lib/themes/base/components.js +98 -86
- package/lib/themes/carbon/components.d.ts +7 -1
- package/lib/themes/carbon/components.js +98 -86
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +7 -2
- package/src/common/icons.ts +4 -1
- package/src/components/accordion/Accordion.vue +55 -0
- package/src/components/{collapse/Collapse.vue → accordion/AccordionItem.vue} +51 -32
- 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 +7 -0
- package/src/components/accordion/theme/AccordionItem.base.theme.ts +38 -0
- package/src/components/accordion/theme/AccordionItem.carbon.theme.ts +7 -0
- package/src/components/alert/theme/Alert.carbon.theme.ts +54 -2
- package/src/components/button/theme/Button.carbon.theme.ts +1 -1
- package/src/components/carousel/CarouselSlide.vue +9 -4
- package/src/components/checkbox/Checkbox.vue +69 -20
- package/src/components/checkbox/theme/Checkbox.base.theme.ts +15 -1
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +17 -3
- package/src/components/container/Container.vue +4 -0
- package/src/components/container/theme/Container.base.theme.ts +7 -1
- package/src/components/form/Form.vue +26 -5
- package/src/components/form/theme/Form.base.theme.ts +9 -1
- package/src/components/form/theme/Form.carbon.theme.ts +12 -2
- 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/theme/Icon.base.theme.ts +1 -1
- package/src/components/icon/theme/Icon.carbon.theme.ts +3 -4
- package/src/components/index.ts +3 -1
- package/src/components/input/Input.vue +3 -3
- package/src/components/input/theme/Input.carbon.theme.ts +1 -1
- package/src/components/inputFooter/theme/InputFooter.base.theme.ts +1 -1
- package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +1 -1
- package/src/components/label/theme/Label.carbon.theme.ts +8 -3
- package/src/components/link/Link.vue +1 -1
- package/src/components/link/theme/Link.carbon.theme.ts +23 -2
- package/src/components/loader/theme/Loader.carbon.theme.ts +1 -1
- package/src/components/menu/Menu.vue +8 -5
- package/src/components/menu/MenuItem.vue +1 -1
- package/src/components/menu/theme/MenuItem.base.theme.ts +3 -3
- package/src/components/modal/Modal.vue +110 -50
- package/src/components/modal/theme/Modal.base.theme.ts +28 -12
- package/src/components/modal/theme/Modal.carbon.theme.ts +55 -2
- package/src/components/notifications/Notifications.vue +5 -5
- package/src/components/notifications/theme/Notifications.base.theme.ts +1 -1
- package/src/components/notifications/theme/Notifications.carbon.theme.ts +12 -2
- package/src/components/radio/Radio.vue +39 -15
- package/src/components/radio/theme/Radio.base.theme.ts +7 -1
- package/src/components/radio/theme/Radio.carbon.theme.ts +13 -7
- package/src/components/select/Select.vue +10 -11
- package/src/components/select/theme/Select.base.theme.ts +1 -1
- package/src/components/select/theme/Select.carbon.theme.ts +2 -2
- package/src/components/skeleton/Skeleton.vue +18 -2
- package/src/components/skeleton/theme/Skeleton.base.theme.ts +8 -1
- package/src/components/slider/Slider.vue +1 -2
- package/src/components/slider/theme/Slider.carbon.theme.ts +1 -1
- package/src/components/spinner/Spinner.vue +2 -2
- package/src/components/stepper/Stepper.vue +153 -0
- package/src/components/{collapse/__tests__/Collapse.spec.ts → stepper/__tests__/Stepper.spec.ts} +3 -3
- 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 +20 -6
- package/src/components/tab/TabGroup.vue +2 -2
- package/src/components/tab/theme/Tab.base.theme.ts +2 -0
- package/src/components/tab/theme/Tab.carbon.theme.ts +4 -2
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +50 -2
- package/src/components/table/Table.vue +123 -27
- package/src/components/table/TableCell.vue +5 -6
- package/src/components/table/TableHead.vue +25 -0
- package/src/components/table/TableHeader.vue +35 -56
- package/src/components/table/TableRow.vue +19 -17
- package/src/components/table/index.ts +4 -2
- package/src/components/table/theme/Table.base.theme.ts +9 -7
- package/src/components/table/theme/Table.carbon.theme.ts +18 -2
- package/src/components/table/theme/TableCell.base.theme.ts +1 -1
- package/src/components/table/theme/TableCell.carbon.theme.ts +24 -2
- package/src/components/table/theme/TableHead.base.theme.ts +10 -0
- package/src/components/table/theme/TableHead.carbon.theme.ts +10 -0
- package/src/components/table/theme/TableHeader.base.theme.ts +28 -0
- package/src/components/table/theme/TableHeader.carbon.theme.ts +28 -0
- package/src/components/table/theme/TableRow.base.theme.ts +21 -0
- package/src/components/table/theme/TableRow.carbon.theme.ts +21 -0
- package/src/components/tag/Tag.vue +4 -4
- package/src/components/tag/theme/Tag.base.theme.ts +4 -4
- package/src/components/tag/theme/Tag.carbon.theme.ts +5 -6
- package/src/components/textarea/Textarea.vue +3 -3
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +1 -1
- package/src/components/toggle/Toggle.vue +2 -4
- package/src/composables/keys.ts +5 -1
- package/src/composables/useFocusTrap.ts +106 -0
- package/src/composables/useInputtable.ts +31 -3
- package/src/theme.ts +14 -2
- package/src/themes/base/components.ts +7 -1
- package/src/themes/carbon/components.ts +7 -1
- package/src/version.ts +1 -1
- package/volar.d.ts +5 -1
- package/lib/components/collapse/Collapse.vue.js +0 -131
- package/lib/components/collapse/Collapse.vue2.js +0 -4
- package/lib/components/collapse/index.d.ts +0 -2
- package/lib/components/collapse/theme/Collapse.base.theme.d.ts +0 -3
- package/lib/components/collapse/theme/Collapse.base.theme.js +0 -10
- package/lib/components/collapse/theme/Collapse.carbon.theme.d.ts +0 -3
- package/lib/components/table/TableHead.d.ts +0 -2
- package/lib/components/table/TableHead.js +0 -19
- package/src/components/collapse/index.ts +0 -2
- package/src/components/collapse/theme/Collapse.base.theme.ts +0 -13
- package/src/components/collapse/theme/Collapse.carbon.theme.ts +0 -7
- package/src/components/table/TableHead.tsx +0 -14
- /package/lib/components/{collapse/__tests__/Collapse.spec.d.ts → accordion/__tests__/Accordion.spec.d.ts} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { TableRowTheme } from '../TableRow.vue'
|
|
2
|
+
|
|
3
|
+
const theme: TableRowTheme = {
|
|
4
|
+
classes: {
|
|
5
|
+
row: ({ props }) => {
|
|
6
|
+
const classes = []
|
|
7
|
+
|
|
8
|
+
if (props.striped) {
|
|
9
|
+
classes.push('odd:bg-gray-50 dark:odd:bg-gray-800')
|
|
10
|
+
} else {
|
|
11
|
+
classes.push('border-b border-gray-200 dark:border-gray-700')
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if (props.pointer) classes.push('hover:bg-gray-50 dark:hover:bg-gray-600 cursor-pointer')
|
|
15
|
+
|
|
16
|
+
return classes
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default theme
|
|
@@ -13,7 +13,7 @@ const tagProps = {
|
|
|
13
13
|
|
|
14
14
|
export type TagProps = ExtractPublicPropTypes<typeof tagProps>
|
|
15
15
|
|
|
16
|
-
type InternalClasses = 'wrapper'
|
|
16
|
+
type InternalClasses = 'wrapper'
|
|
17
17
|
export interface TagTheme extends ThemeComponent<TagProps, InternalClasses> {}
|
|
18
18
|
|
|
19
19
|
export default {
|
|
@@ -52,13 +52,13 @@ const { styles, classes, className } = useTheme('Tag', {}, props)
|
|
|
52
52
|
<template>
|
|
53
53
|
<component
|
|
54
54
|
:is="tag"
|
|
55
|
-
class="text-[color:var(--x-tag-text)] dark:text-[color:var(--x-tag-dark-text)] border-[color:var(--x-tag-border)"
|
|
55
|
+
class="text-[color:var(--x-tag-text)] dark:text-[color:var(--x-tag-dark-text)] border-[color:var(--x-tag-border)] dark:border-[color:var(--x-tag-dark-border)]"
|
|
56
56
|
:style="styles"
|
|
57
57
|
:class="
|
|
58
58
|
[
|
|
59
59
|
className,
|
|
60
60
|
classes.wrapper,
|
|
61
|
-
outlined ? 'border' : 'bg-[color:var(--x-tag-bg)]',
|
|
61
|
+
outlined ? 'border' : 'bg-[color:var(--x-tag-bg)] dark:bg-[color:var(--x-tag-dark-bg)]',
|
|
62
62
|
rounded ? 'rounded-full' : 'rounded'
|
|
63
63
|
]"
|
|
64
64
|
>
|
|
@@ -70,7 +70,7 @@ const { styles, classes, className } = useTheme('Tag', {}, props)
|
|
|
70
70
|
<x-icon
|
|
71
71
|
:size="closeIconSize"
|
|
72
72
|
:icon="closeIcon"
|
|
73
|
-
class="ml-1 cursor-pointer hover:text-gray-700 transition-colors duration-150"
|
|
73
|
+
class="ml-1.5 cursor-pointer hover:text-gray-700 transition-colors duration-150"
|
|
74
74
|
@click="(e: Event) => $emit('remove', e)"
|
|
75
75
|
/>
|
|
76
76
|
</span>
|
|
@@ -13,19 +13,19 @@ const theme: TagTheme = {
|
|
|
13
13
|
|
|
14
14
|
return c
|
|
15
15
|
},
|
|
16
|
-
|
|
17
|
-
loadingWrapper: 'absolute inset-0 flex items-center justify-center z-40 bg-gray-300 dark:bg-gray-600 rounded opacity-50',
|
|
18
16
|
},
|
|
19
17
|
|
|
20
18
|
styles: ({ colors, props, css }) => {
|
|
21
19
|
const color = colors.getPalette(props.color)
|
|
22
20
|
|
|
23
21
|
return css.variables({
|
|
24
|
-
bg: color[
|
|
22
|
+
bg: color[200],
|
|
25
23
|
text: color[800],
|
|
26
24
|
border: color[800],
|
|
27
25
|
dark: {
|
|
28
|
-
|
|
26
|
+
bg: color[800],
|
|
27
|
+
border: color[400],
|
|
28
|
+
text: props.outlined ? color[200] : color[100],
|
|
29
29
|
},
|
|
30
30
|
})
|
|
31
31
|
},
|
|
@@ -5,15 +5,13 @@ const theme: TagTheme = {
|
|
|
5
5
|
wrapper: ({ props }) => {
|
|
6
6
|
let c = 'inline-flex items-center leading-none max-w-full '
|
|
7
7
|
|
|
8
|
-
if (props.size === 'xs' || props.size === 'sm') c += ' px-2 py-
|
|
8
|
+
if (props.size === 'xs' || props.size === 'sm') c += ' px-2 py-0.5 text-xs'
|
|
9
9
|
else if (props.size === 'lg') c += ' px-4 py-3'
|
|
10
10
|
else if (props.size === 'xl') c += ' px-5 py-5 text-lg'
|
|
11
|
-
else c += ' px-3 py-
|
|
11
|
+
else c += ' px-3 py-1 text-sm'
|
|
12
12
|
|
|
13
13
|
return c
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
loadingWrapper: 'absolute inset-0 flex items-center justify-center z-40 bg-gray-300 dark:bg-gray-600 rounded opacity-50',
|
|
17
15
|
},
|
|
18
16
|
|
|
19
17
|
styles: ({ colors, props, css }) => {
|
|
@@ -24,8 +22,9 @@ const theme: TagTheme = {
|
|
|
24
22
|
text: color[800],
|
|
25
23
|
border: color[800],
|
|
26
24
|
dark: {
|
|
27
|
-
bg: color[
|
|
28
|
-
|
|
25
|
+
bg: color[800],
|
|
26
|
+
border: color[400],
|
|
27
|
+
text: props.outlined ? color[200] : color[100],
|
|
29
28
|
},
|
|
30
29
|
})
|
|
31
30
|
},
|
|
@@ -3,8 +3,6 @@ const textareaProps = {
|
|
|
3
3
|
...useCommon.props(),
|
|
4
4
|
...useInteractive.props(),
|
|
5
5
|
...useInputtable.props(),
|
|
6
|
-
helper: String,
|
|
7
|
-
label: String,
|
|
8
6
|
dir: {
|
|
9
7
|
type: String,
|
|
10
8
|
default: 'ltr',
|
|
@@ -91,6 +89,7 @@ const { focus, blur } = useInteractive(elRef)
|
|
|
91
89
|
|
|
92
90
|
const {
|
|
93
91
|
errorInternal,
|
|
92
|
+
hideFooterInternal,
|
|
94
93
|
isInsideForm,
|
|
95
94
|
inputListeners,
|
|
96
95
|
reset,
|
|
@@ -117,6 +116,7 @@ defineExpose({ focus, blur, reset, validate, setError })
|
|
|
117
116
|
]"
|
|
118
117
|
>
|
|
119
118
|
<textarea
|
|
119
|
+
:id="id"
|
|
120
120
|
ref="elRef"
|
|
121
121
|
class=""
|
|
122
122
|
:style="style"
|
|
@@ -142,6 +142,6 @@ defineExpose({ focus, blur, reset, validate, setError })
|
|
|
142
142
|
@input="onInput"
|
|
143
143
|
></textarea>
|
|
144
144
|
|
|
145
|
-
<x-input-footer v-if="!
|
|
145
|
+
<x-input-footer v-if="!hideFooterInternal" :error="errorInternal" :helper="helper"/>
|
|
146
146
|
</x-label>
|
|
147
147
|
</template>
|
|
@@ -18,7 +18,7 @@ const theme: TextareaTheme = {
|
|
|
18
18
|
} else if (props.readonly) {
|
|
19
19
|
classes.push('bg-white dark:bg-gray-900 text-gray-700')
|
|
20
20
|
} else {
|
|
21
|
-
classes.push('bg-gray-
|
|
21
|
+
classes.push('bg-gray-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200')
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
return classes
|
|
@@ -4,9 +4,6 @@ const toggleProps = {
|
|
|
4
4
|
...useColors.props('primary'),
|
|
5
5
|
...useInteractive.props(),
|
|
6
6
|
...useInputtable.props(),
|
|
7
|
-
id: String,
|
|
8
|
-
label: String,
|
|
9
|
-
helper: String,
|
|
10
7
|
glow: Boolean,
|
|
11
8
|
}
|
|
12
9
|
|
|
@@ -53,6 +50,7 @@ const { focus, blur } = useInteractive(elRef)
|
|
|
53
50
|
|
|
54
51
|
const {
|
|
55
52
|
errorInternal,
|
|
53
|
+
hideFooterInternal,
|
|
56
54
|
reset,
|
|
57
55
|
validate,
|
|
58
56
|
setError,
|
|
@@ -119,6 +117,6 @@ defineExpose({ focus, blur, reset, validate, setError })
|
|
|
119
117
|
<x-spinner v-if="loading" :size="size" class="ml-1" />
|
|
120
118
|
</div>
|
|
121
119
|
|
|
122
|
-
<x-input-footer v-if="!
|
|
120
|
+
<x-input-footer v-if="!hideFooterInternal" :error="errorInternal" :helper="helper"/>
|
|
123
121
|
</label>
|
|
124
122
|
</template>
|
package/src/composables/keys.ts
CHANGED
|
@@ -4,13 +4,17 @@ import type { TabGroupInjection } from '../components/tab/TabGroup.vue'
|
|
|
4
4
|
import type { ButtonGroupInjection } from '../components/button/ButtonGroup.vue'
|
|
5
5
|
import type { NotificationInjection } from '../components/notifications/Notifications.vue'
|
|
6
6
|
import type { IconInjection } from '../components/icon/Icon.vue'
|
|
7
|
+
import type { FormGroupInjection } from '../components/formGroup'
|
|
8
|
+
import type { AccordionInjection } from '../components/accordion'
|
|
7
9
|
import type { UIOptions } from '../create'
|
|
8
10
|
import type { UITheme } from '../theme'
|
|
9
11
|
|
|
10
12
|
export const injectOptionsKey = Symbol() as InjectionKey<UIOptions>
|
|
11
13
|
export const injectThemeKey = Symbol() as InjectionKey<MaybeRef<UITheme>>
|
|
12
|
-
export const
|
|
14
|
+
export const injectTabGroupKey = Symbol() as InjectionKey<TabGroupInjection>
|
|
13
15
|
export const injectFormKey = Symbol() as InjectionKey<FormInjection>
|
|
16
|
+
export const injectFormGroupKey = Symbol() as InjectionKey<FormGroupInjection>
|
|
14
17
|
export const injectIconsKey = Symbol() as InjectionKey<IconInjection>
|
|
15
18
|
export const injectButtonGroupKey = Symbol() as InjectionKey<ButtonGroupInjection>
|
|
16
19
|
export const injectNotificationKey = Symbol() as InjectionKey<NotificationInjection>
|
|
20
|
+
export const injectAccordionKey = Symbol() as InjectionKey<AccordionInjection>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue'
|
|
2
|
+
import { onUnmounted, type MaybeRef, unref, nextTick } from 'vue'
|
|
3
|
+
|
|
4
|
+
const focusableQuery = 'button:not([tabindex="-1"]), [href], input, select, textarea, li, a, [tabindex]:not([tabindex="-1"])'
|
|
5
|
+
|
|
6
|
+
export function useFocusTrap() {
|
|
7
|
+
let focusable: HTMLElement[] = []
|
|
8
|
+
let observer: MutationObserver | null = null
|
|
9
|
+
|
|
10
|
+
let firstFocusableEl: HTMLElement | null = null
|
|
11
|
+
let lastFocusableEl: HTMLElement | null = null
|
|
12
|
+
|
|
13
|
+
async function initFocusTrap(targetRef: MaybeRef<HTMLElement | ComponentPublicInstance | null>) {
|
|
14
|
+
targetRef = unref(targetRef)
|
|
15
|
+
|
|
16
|
+
if (!targetRef) return
|
|
17
|
+
|
|
18
|
+
await nextTick()
|
|
19
|
+
|
|
20
|
+
getFocusableElements(targetRef)
|
|
21
|
+
|
|
22
|
+
if (firstFocusableEl) firstFocusableEl.focus()
|
|
23
|
+
|
|
24
|
+
document.addEventListener('keydown', handleKeydown)
|
|
25
|
+
observer = new MutationObserver(() => getFocusableElements(targetRef))
|
|
26
|
+
|
|
27
|
+
if ((targetRef as ComponentPublicInstance).$el) observer.observe((targetRef as ComponentPublicInstance).$el as Node, { childList: true, subtree: true })
|
|
28
|
+
else observer.observe(targetRef as Node, { childList: true, subtree: true })
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function getFocusableElements(targetRef: MaybeRef<HTMLElement | ComponentPublicInstance | null>) {
|
|
32
|
+
if (targetRef === null) return
|
|
33
|
+
|
|
34
|
+
let elements
|
|
35
|
+
|
|
36
|
+
if ((targetRef as ComponentPublicInstance).$el) elements = (targetRef as ComponentPublicInstance)?.$el.querySelectorAll(focusableQuery)
|
|
37
|
+
else (targetRef as HTMLElement).querySelectorAll(focusableQuery)
|
|
38
|
+
|
|
39
|
+
focusable = Array.from(elements || []) as HTMLElement[]
|
|
40
|
+
firstFocusableEl = focusable[0] || null
|
|
41
|
+
lastFocusableEl = focusable[focusable.length - 1] || null
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const handleKeydown = (event: KeyboardEvent) => {
|
|
45
|
+
if (event.key === 'Tab') {
|
|
46
|
+
const isShiftPressed = event.shiftKey
|
|
47
|
+
const currentEl = document.activeElement as HTMLElement | null
|
|
48
|
+
|
|
49
|
+
if (!currentEl) {
|
|
50
|
+
event.preventDefault()
|
|
51
|
+
focusable[0]?.focus()
|
|
52
|
+
|
|
53
|
+
return
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const firstEl = focusable[0]
|
|
57
|
+
const lastEl = focusable[focusable.length - 1]
|
|
58
|
+
|
|
59
|
+
if (!isShiftPressed && currentEl === lastEl) {
|
|
60
|
+
event.preventDefault()
|
|
61
|
+
firstEl?.focus()
|
|
62
|
+
} else if (isShiftPressed && currentEl === firstEl) {
|
|
63
|
+
event.preventDefault()
|
|
64
|
+
lastEl?.focus()
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
} else if (event.key === 'ArrowUp' || event.key === 'ArrowLeft') {
|
|
68
|
+
event.preventDefault()
|
|
69
|
+
const currentEl = document.activeElement as HTMLElement
|
|
70
|
+
const index = focusable.indexOf(currentEl)
|
|
71
|
+
const previousEl = focusable[index - 1]
|
|
72
|
+
|
|
73
|
+
if (previousEl) {
|
|
74
|
+
previousEl.focus()
|
|
75
|
+
} else if (lastFocusableEl) {
|
|
76
|
+
lastFocusableEl.focus()
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
} else if (event.key === 'ArrowDown' || event.key === 'ArrowRight') {
|
|
80
|
+
event.preventDefault()
|
|
81
|
+
const currentEl = document.activeElement as HTMLElement
|
|
82
|
+
const index = focusable.indexOf(currentEl)
|
|
83
|
+
const nextElement = focusable[index + 1]
|
|
84
|
+
|
|
85
|
+
if (nextElement) {
|
|
86
|
+
nextElement.focus()
|
|
87
|
+
} else if (firstFocusableEl) {
|
|
88
|
+
firstFocusableEl.focus()
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const clearFocusTrap = () => {
|
|
94
|
+
document.removeEventListener('keydown', handleKeydown)
|
|
95
|
+
observer?.disconnect()
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
onUnmounted(() => {
|
|
99
|
+
clearFocusTrap()
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
initFocusTrap,
|
|
104
|
+
clearFocusTrap,
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MaybeRef, PropType } from 'vue'
|
|
2
2
|
import { ref, computed, inject, watch, onMounted, onUnmounted } from 'vue'
|
|
3
|
-
import { injectFormKey } from './keys'
|
|
3
|
+
import { injectFormGroupKey, injectFormKey } from './keys'
|
|
4
4
|
|
|
5
5
|
export interface XFormInputMethods {
|
|
6
6
|
focus: () => void;
|
|
@@ -11,6 +11,7 @@ export interface XFormInputMethods {
|
|
|
11
11
|
export const useInputtable = (props: any, { focus, emit, withListeners = true }: { focus: () => void; emit: any; withListeners?: boolean; }) => {
|
|
12
12
|
const isFirstValidation = ref(true)
|
|
13
13
|
const errorInternal = ref(props.error)
|
|
14
|
+
const hideFooterInternal = ref(props.hideFooter)
|
|
14
15
|
|
|
15
16
|
const name = props.name ? props.name : (Math.random() + 1).toString(36).substring(7)
|
|
16
17
|
const nameInternal = ref(name)
|
|
@@ -18,6 +19,18 @@ export const useInputtable = (props: any, { focus, emit, withListeners = true }:
|
|
|
18
19
|
watch(() => props.error, (val) => { errorInternal.value = val })
|
|
19
20
|
watch(() => props.name, (val) => { if (val) nameInternal.value = val })
|
|
20
21
|
|
|
22
|
+
const formGroup = inject(injectFormGroupKey, {
|
|
23
|
+
registerInputGroup: () => {},
|
|
24
|
+
unregisterInputGroup: () => {},
|
|
25
|
+
setValue: () => {},
|
|
26
|
+
isInsideFormGroup: false,
|
|
27
|
+
value: undefined,
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
if (formGroup.isInsideFormGroup) {
|
|
31
|
+
hideFooterInternal.value = true
|
|
32
|
+
}
|
|
33
|
+
|
|
21
34
|
const form = inject(injectFormKey, {
|
|
22
35
|
registerInput: () => {},
|
|
23
36
|
unregisterInput: () => {},
|
|
@@ -101,19 +114,31 @@ export const useInputtable = (props: any, { focus, emit, withListeners = true }:
|
|
|
101
114
|
}
|
|
102
115
|
|
|
103
116
|
onMounted(() => {
|
|
104
|
-
|
|
117
|
+
if (formGroup.isInsideFormGroup) {
|
|
118
|
+
formGroup.registerInputGroup(nameInternal.value, focus)
|
|
119
|
+
} else {
|
|
120
|
+
form.registerInput(nameInternal.value, focus, validate, setError)
|
|
121
|
+
}
|
|
105
122
|
})
|
|
106
123
|
|
|
107
124
|
onUnmounted(() => {
|
|
108
|
-
|
|
125
|
+
if (formGroup.isInsideFormGroup) {
|
|
126
|
+
formGroup.unregisterInputGroup(nameInternal.value)
|
|
127
|
+
} else {
|
|
128
|
+
form.unregisterInput(nameInternal.value)
|
|
129
|
+
}
|
|
130
|
+
|
|
109
131
|
})
|
|
110
132
|
|
|
111
133
|
return {
|
|
112
134
|
isFirstValidation,
|
|
113
135
|
errorInternal,
|
|
136
|
+
hideFooterInternal,
|
|
114
137
|
isFocused,
|
|
115
138
|
isInsideForm: form.isInsideForm,
|
|
139
|
+
isInsideFormGroup: formGroup.isInsideFormGroup,
|
|
116
140
|
inputListeners,
|
|
141
|
+
formGroup,
|
|
117
142
|
reset,
|
|
118
143
|
validate,
|
|
119
144
|
setError,
|
|
@@ -128,6 +153,7 @@ useInputtable.emits = (withListeners = true): string[] => {
|
|
|
128
153
|
|
|
129
154
|
useInputtable.props = () => ({
|
|
130
155
|
modelValue: [String, Number, Boolean, Object, Array] as PropType<string | number | boolean | object | any[] | undefined>,
|
|
156
|
+
id: String,
|
|
131
157
|
name: String,
|
|
132
158
|
readonly: Boolean,
|
|
133
159
|
required: Boolean,
|
|
@@ -135,6 +161,8 @@ useInputtable.props = () => ({
|
|
|
135
161
|
type: Boolean,
|
|
136
162
|
default: true,
|
|
137
163
|
},
|
|
164
|
+
label: String,
|
|
165
|
+
helper: String,
|
|
138
166
|
error: String,
|
|
139
167
|
hideFooter: Boolean,
|
|
140
168
|
rules: {
|
package/src/theme.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { ColorLibrary } from './composables/useColors'
|
|
2
2
|
import type {
|
|
3
|
+
AccordionTheme,
|
|
4
|
+
AccordionItemTheme,
|
|
3
5
|
AlertTheme,
|
|
4
6
|
AvatarTheme,
|
|
5
7
|
BadgeTheme,
|
|
@@ -10,11 +12,11 @@ import type {
|
|
|
10
12
|
CarouselTheme,
|
|
11
13
|
CarouselSlideTheme,
|
|
12
14
|
CheckboxTheme,
|
|
13
|
-
CollapseTheme,
|
|
14
15
|
ContainerTheme,
|
|
15
16
|
DividerTheme,
|
|
16
17
|
DrawerTheme,
|
|
17
18
|
FormTheme,
|
|
19
|
+
FormGroupTheme,
|
|
18
20
|
IconTheme,
|
|
19
21
|
ImageTheme,
|
|
20
22
|
InputTheme,
|
|
@@ -36,16 +38,22 @@ import type {
|
|
|
36
38
|
SelectTheme,
|
|
37
39
|
SkeletonTheme,
|
|
38
40
|
SliderTheme,
|
|
41
|
+
StepperTheme,
|
|
39
42
|
TabTheme,
|
|
40
43
|
TabGroupTheme,
|
|
41
44
|
TableTheme,
|
|
42
45
|
TableCellTheme,
|
|
46
|
+
TableHeadTheme,
|
|
47
|
+
TableHeaderTheme,
|
|
48
|
+
TableRowTheme,
|
|
43
49
|
TagTheme,
|
|
44
50
|
TextareaTheme,
|
|
45
51
|
ToggleTheme,
|
|
46
52
|
} from './components'
|
|
47
53
|
|
|
48
54
|
export type ComponentThemes = {
|
|
55
|
+
Accordion: AccordionTheme;
|
|
56
|
+
AccordionItem: AccordionItemTheme;
|
|
49
57
|
Alert: AlertTheme;
|
|
50
58
|
Avatar: AvatarTheme;
|
|
51
59
|
Badge: BadgeTheme;
|
|
@@ -56,11 +64,11 @@ export type ComponentThemes = {
|
|
|
56
64
|
Carousel: CarouselTheme;
|
|
57
65
|
CarouselSlide: CarouselSlideTheme;
|
|
58
66
|
Checkbox: CheckboxTheme;
|
|
59
|
-
Collapse: CollapseTheme;
|
|
60
67
|
Container: ContainerTheme;
|
|
61
68
|
Divider: DividerTheme;
|
|
62
69
|
Drawer: DrawerTheme;
|
|
63
70
|
Form: FormTheme;
|
|
71
|
+
FormGroup: FormGroupTheme;
|
|
64
72
|
Icon: IconTheme;
|
|
65
73
|
Image: ImageTheme;
|
|
66
74
|
Input: InputTheme;
|
|
@@ -82,10 +90,14 @@ export type ComponentThemes = {
|
|
|
82
90
|
Select: SelectTheme;
|
|
83
91
|
Skeleton: SkeletonTheme;
|
|
84
92
|
Slider: SliderTheme;
|
|
93
|
+
Stepper: StepperTheme;
|
|
85
94
|
Tab: TabTheme;
|
|
86
95
|
TabGroup: TabGroupTheme;
|
|
87
96
|
Table: TableTheme;
|
|
88
97
|
TableCell: TableCellTheme;
|
|
98
|
+
TableHead: TableHeadTheme;
|
|
99
|
+
TableHeader: TableHeaderTheme;
|
|
100
|
+
TableRow: TableRowTheme;
|
|
89
101
|
Tag: TagTheme;
|
|
90
102
|
Textarea: TextareaTheme;
|
|
91
103
|
Toggle: ToggleTheme;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as Accordion } from '../../components/accordion/theme/Accordion.base.theme'
|
|
2
|
+
export { default as AccordionItem } from '../../components/accordion/theme/AccordionItem.base.theme'
|
|
1
3
|
export { default as Alert } from '../../components/alert/theme/Alert.base.theme'
|
|
2
4
|
export { default as Avatar } from '../../components/avatar/theme/Avatar.base.theme'
|
|
3
5
|
export { default as Badge } from '../../components/badge/theme/Badge.base.theme'
|
|
@@ -8,11 +10,11 @@ export { default as Card } from '../../components/card/theme/Card.base.theme'
|
|
|
8
10
|
export { default as Carousel } from '../../components/carousel/theme/Carousel.base.theme'
|
|
9
11
|
export { default as CarouselSlide } from '../../components/carousel/theme/CarouselSlide.base.theme'
|
|
10
12
|
export { default as Checkbox } from '../../components/checkbox/theme/Checkbox.base.theme'
|
|
11
|
-
export { default as Collapse } from '../../components/collapse/theme/Collapse.base.theme'
|
|
12
13
|
export { default as Container } from '../../components/container/theme/Container.base.theme'
|
|
13
14
|
export { default as Divider } from '../../components/divider/theme/Divider.base.theme'
|
|
14
15
|
export { default as Drawer } from '../../components/drawer/theme/Drawer.base.theme'
|
|
15
16
|
export { default as Form } from '../../components/form/theme/Form.base.theme'
|
|
17
|
+
export { default as FormGroup } from '../../components/formGroup/theme/FormGroup.base.theme'
|
|
16
18
|
export { default as Icon } from '../../components/icon/theme/Icon.base.theme'
|
|
17
19
|
export { default as Image } from '../../components/image/theme/Image.base.theme'
|
|
18
20
|
export { default as Input } from '../../components/input/theme/Input.base.theme'
|
|
@@ -34,10 +36,14 @@ export { default as Scroll } from '../../components/scroll/theme/Scroll.base.the
|
|
|
34
36
|
export { default as Select } from '../../components/select/theme/Select.base.theme'
|
|
35
37
|
export { default as Skeleton } from '../../components/skeleton/theme/Skeleton.base.theme'
|
|
36
38
|
export { default as Slider } from '../../components/slider/theme/Slider.base.theme'
|
|
39
|
+
export { default as Stepper } from '../../components/stepper/theme/Stepper.base.theme'
|
|
37
40
|
export { default as Tab } from '../../components/tab/theme/Tab.base.theme'
|
|
38
41
|
export { default as TabGroup } from '../../components/tab/theme/TabGroup.base.theme'
|
|
39
42
|
export { default as Table } from '../../components/table/theme/Table.base.theme'
|
|
40
43
|
export { default as TableCell } from '../../components/table/theme/TableCell.base.theme'
|
|
44
|
+
export { default as TableHead } from '../../components/table/theme/TableHead.base.theme'
|
|
45
|
+
export { default as TableHeader } from '../../components/table/theme/TableHeader.base.theme'
|
|
46
|
+
export { default as TableRow } from '../../components/table/theme/TableRow.base.theme'
|
|
41
47
|
export { default as Tag } from '../../components/tag/theme/Tag.base.theme'
|
|
42
48
|
export { default as Textarea } from '../../components/textarea/theme/Textarea.base.theme'
|
|
43
49
|
export { default as Toggle } from '../../components/toggle/theme/Toggle.base.theme'
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as Accordion } from '../../components/accordion/theme/Accordion.carbon.theme'
|
|
2
|
+
export { default as AccordionItem } from '../../components/accordion/theme/AccordionItem.carbon.theme'
|
|
1
3
|
export { default as Alert } from '../../components/alert/theme/Alert.carbon.theme'
|
|
2
4
|
export { default as Avatar } from '../../components/avatar/theme/Avatar.carbon.theme'
|
|
3
5
|
export { default as Badge } from '../../components/badge/theme/Badge.carbon.theme'
|
|
@@ -8,11 +10,11 @@ export { default as Card } from '../../components/card/theme/Card.carbon.theme'
|
|
|
8
10
|
export { default as Carousel } from '../../components/carousel/theme/Carousel.carbon.theme'
|
|
9
11
|
export { default as CarouselSlide } from '../../components/carousel/theme/CarouselSlide.carbon.theme'
|
|
10
12
|
export { default as Checkbox } from '../../components/checkbox/theme/Checkbox.carbon.theme'
|
|
11
|
-
export { default as Collapse } from '../../components/collapse/theme/Collapse.carbon.theme'
|
|
12
13
|
export { default as Container } from '../../components/container/theme/Container.carbon.theme'
|
|
13
14
|
export { default as Divider } from '../../components/divider/theme/Divider.carbon.theme'
|
|
14
15
|
export { default as Drawer } from '../../components/drawer/theme/Drawer.carbon.theme'
|
|
15
16
|
export { default as Form } from '../../components/form/theme/Form.carbon.theme'
|
|
17
|
+
export { default as FormGroup } from '../../components/formGroup/theme/FormGroup.carbon.theme'
|
|
16
18
|
export { default as Icon } from '../../components/icon/theme/Icon.carbon.theme'
|
|
17
19
|
export { default as Image } from '../../components/image/theme/Image.carbon.theme'
|
|
18
20
|
export { default as Input } from '../../components/input/theme/Input.carbon.theme'
|
|
@@ -34,10 +36,14 @@ export { default as Scroll } from '../../components/scroll/theme/Scroll.carbon.t
|
|
|
34
36
|
export { default as Select } from '../../components/select/theme/Select.carbon.theme'
|
|
35
37
|
export { default as Skeleton } from '../../components/skeleton/theme/Skeleton.carbon.theme'
|
|
36
38
|
export { default as Slider } from '../../components/slider/theme/Slider.carbon.theme'
|
|
39
|
+
export { default as Stepper } from '../../components/stepper/theme/Stepper.carbon.theme'
|
|
37
40
|
export { default as Tab } from '../../components/tab/theme/Tab.carbon.theme'
|
|
38
41
|
export { default as TabGroup } from '../../components/tab/theme/TabGroup.carbon.theme'
|
|
39
42
|
export { default as Table } from '../../components/table/theme/Table.carbon.theme'
|
|
40
43
|
export { default as TableCell } from '../../components/table/theme/TableCell.carbon.theme'
|
|
44
|
+
export { default as TableHead } from '../../components/table/theme/TableHead.carbon.theme'
|
|
45
|
+
export { default as TableHeader } from '../../components/table/theme/TableHeader.carbon.theme'
|
|
46
|
+
export { default as TableRow } from '../../components/table/theme/TableRow.carbon.theme'
|
|
41
47
|
export { default as Tag } from '../../components/tag/theme/Tag.carbon.theme'
|
|
42
48
|
export { default as Textarea } from '../../components/textarea/theme/Textarea.carbon.theme'
|
|
43
49
|
export { default as Toggle } from '../../components/toggle/theme/Toggle.carbon.theme'
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.
|
|
1
|
+
export default '1.4.0'
|
package/volar.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare module 'vue' {
|
|
2
2
|
export interface GlobalComponents {
|
|
3
|
+
XAccordion: typeof import('@indielayer/ui')['XAccordion']
|
|
4
|
+
XAccordionItem: typeof import('@indielayer/ui')['XAccordionItem']
|
|
3
5
|
XAlert: typeof import('@indielayer/ui')['XAlert']
|
|
4
6
|
XAvatar: typeof import('@indielayer/ui')['XAvatar']
|
|
5
7
|
XBadge: typeof import('@indielayer/ui')['XBadge']
|
|
@@ -10,15 +12,16 @@ declare module 'vue' {
|
|
|
10
12
|
XCarousel: typeof import('@indielayer/ui')['XCarousel']
|
|
11
13
|
XCarouselSlide: typeof import('@indielayer/ui')['XCarouselSlide']
|
|
12
14
|
XCheckbox: typeof import('@indielayer/ui')['XCheckbox']
|
|
13
|
-
XCollapse: typeof import('@indielayer/ui')['XCollapse']
|
|
14
15
|
XContainer: typeof import('@indielayer/ui')['XContainer']
|
|
15
16
|
XDivider: typeof import('@indielayer/ui')['XDivider']
|
|
16
17
|
XDrawer: typeof import('@indielayer/ui')['XDrawer']
|
|
17
18
|
XForm: typeof import('@indielayer/ui')['XForm']
|
|
19
|
+
XFormGroup: typeof import('@indielayer/ui')['XFormGroup']
|
|
18
20
|
XIcon: typeof import('@indielayer/ui')['XIcon']
|
|
19
21
|
XImage: typeof import('@indielayer/ui')['XImage']
|
|
20
22
|
XInput: typeof import('@indielayer/ui')['XInput']
|
|
21
23
|
XInputFooter: typeof import('@indielayer/ui')['XInputFooter']
|
|
24
|
+
XLabel: typeof import('@indielayer/ui')['XLabel']
|
|
22
25
|
XLink: typeof import('@indielayer/ui')['XLink']
|
|
23
26
|
XLoader: typeof import('@indielayer/ui')['XLoader']
|
|
24
27
|
XMenu: typeof import('@indielayer/ui')['XMenu']
|
|
@@ -37,6 +40,7 @@ declare module 'vue' {
|
|
|
37
40
|
XSlider: typeof import('@indielayer/ui')['XSlider']
|
|
38
41
|
XSpacer: typeof import('@indielayer/ui')['XSpacer']
|
|
39
42
|
XSpinner: typeof import('@indielayer/ui')['XSpinner']
|
|
43
|
+
XStepper: typeof import('@indielayer/ui')['XStepper']
|
|
40
44
|
XTable: typeof import('@indielayer/ui')['XTable']
|
|
41
45
|
XTableBody: typeof import('@indielayer/ui')['XTableBody']
|
|
42
46
|
XTableCell: typeof import('@indielayer/ui')['XTableCell']
|