@indielayer/ui 1.18.0 → 2.0.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/docs/assets/css/hljs.css +0 -1
- package/docs/assets/css/tailwind.css +35 -10
- package/docs/components/common/CodePreview.vue +1 -1
- package/docs/components/common/CodeSnippet.vue +30 -18
- package/docs/components/common/DocsHero.vue +3 -3
- package/docs/components/common/DocumentPage.vue +29 -27
- package/docs/components/common/ExampleBlocks.vue +147 -8
- package/docs/components/menu/DocsMenu.vue +3 -1
- package/docs/components/toolbar/PreToolbar.vue +1 -1
- package/docs/components/toolbar/Toolbar.vue +1 -1
- package/docs/components/toolbar/ToolbarColorToggle.vue +1 -1
- package/docs/components/toolbar/ToolbarSearch.vue +3 -3
- package/docs/main.ts +5 -0
- package/docs/pages/colors.vue +11 -19
- package/docs/pages/component/button/variants.vue +1 -1
- package/docs/pages/component/drawer/index.vue +1 -1
- package/docs/pages/component/empty/actions.vue +11 -0
- package/docs/pages/component/empty/bordered.vue +7 -0
- package/docs/pages/component/empty/index.vue +43 -0
- package/docs/pages/component/empty/usage.vue +6 -0
- package/docs/pages/component/form/usage.vue +36 -0
- package/docs/pages/component/formGroup/index.vue +1 -1
- package/docs/pages/component/icon/formats.vue +65 -0
- package/docs/pages/component/icon/index.vue +11 -4
- package/docs/pages/component/icon/usage.vue +52 -4
- package/docs/pages/component/image/index.vue +16 -2
- package/docs/pages/component/image/sizing.vue +42 -0
- package/docs/pages/component/image/states.vue +45 -0
- package/docs/pages/component/image/usage.vue +9 -6
- package/docs/pages/component/infiniteLoader/composable.vue +7 -5
- package/docs/pages/component/infiniteLoader/usage.vue +7 -5
- package/docs/pages/component/input/index.vue +1 -1
- package/docs/pages/component/input/variants.vue +11 -0
- package/docs/pages/component/inputGroup/index.vue +43 -0
- package/docs/pages/component/inputGroup/mixed.vue +18 -0
- package/docs/pages/component/inputGroup/usage.vue +20 -0
- package/docs/pages/component/inputGroup/validation.vue +33 -0
- package/docs/pages/component/radio/index.vue +23 -9
- package/docs/pages/component/radio/payment-method.vue +28 -0
- package/docs/pages/component/radio/radio-button-form-group.vue +28 -0
- package/docs/pages/component/radio/radio-button.vue +26 -0
- package/docs/pages/component/select/multiple.vue +2 -2
- package/docs/pages/component/skeleton/usage.vue +1 -1
- package/docs/pages/component/stepper/index.vue +9 -2
- package/docs/pages/component/stepper/usage.vue +56 -12
- package/docs/pages/component/stepper/wizard.vue +126 -0
- package/docs/pages/component/table/index.vue +1 -1
- package/docs/pages/component/table/states.vue +5 -3
- package/docs/pages/component/table/virtual.vue +1 -1
- package/docs/pages/component/tooltip/content.vue +11 -0
- package/docs/pages/component/tooltip/index.vue +30 -2
- package/docs/pages/component/tooltip/placement.vue +18 -0
- package/docs/pages/component/tooltip/states.vue +5 -0
- package/docs/pages/component/tooltip/toggle-tip.vue +6 -0
- package/docs/pages/component/tooltip/usage.vue +8 -9
- package/docs/pages/component/virtualGrid/usage.vue +5 -2
- package/docs/pages/component/virtualList/dynamicHeight.vue +8 -8
- package/docs/pages/component/virtualList/usage.vue +5 -2
- package/docs/pages/index.vue +30 -33
- package/docs/search/components.json +1 -1
- package/docs/search/index.json +1 -1
- package/docs/utils/shikiHighlighter.ts +22 -0
- package/exports/nuxt.mjs +1 -1
- package/exports/nuxt.plugin.js +1 -0
- package/exports/tailwind.css +74 -0
- package/lib/_virtual/_plugin-vue_export-helper.js +7 -8
- package/lib/_virtual/_rolldown/runtime.js +17 -0
- package/lib/common/colors.js +370 -19
- package/lib/common/icons.d.ts +1 -0
- package/lib/common/icons.js +4 -22
- package/lib/common/inputGroupRadius.d.ts +2 -0
- package/lib/common/inputGroupRadius.js +6 -0
- package/lib/common/props.d.ts +27 -0
- package/lib/common/props.js +18 -0
- package/lib/common/utils.js +17 -24
- package/lib/componentDefaults.d.ts +18 -0
- package/lib/components/accordion/Accordion.js +5 -0
- package/lib/components/accordion/Accordion.vue.d.ts +3 -4
- package/lib/components/accordion/Accordion.vue_vue_type_script_setup_true_lang.js +37 -0
- package/lib/components/accordion/AccordionItem.js +5 -0
- package/lib/components/accordion/AccordionItem.vue.d.ts +3 -4
- package/lib/components/accordion/AccordionItem.vue_vue_type_script_setup_true_lang.js +138 -0
- package/lib/components/accordion/theme/Accordion.base.theme.js +4 -8
- package/lib/components/accordion/theme/Accordion.carbon.theme.js +4 -4
- package/lib/components/accordion/theme/AccordionItem.base.theme.js +14 -16
- package/lib/components/accordion/theme/AccordionItem.carbon.theme.js +4 -4
- package/lib/components/alert/Alert.js +6 -0
- package/lib/components/alert/Alert.vue.d.ts +12 -16
- package/lib/components/alert/Alert.vue_vue_type_script_setup_true_lang.js +54 -0
- package/lib/components/alert/Alert.vue_vue_type_style_index_0_lang.module.js +6 -0
- package/lib/components/alert/theme/Alert.base.theme.js +38 -40
- package/lib/components/alert/theme/Alert.carbon.theme.js +38 -40
- package/lib/components/avatar/Avatar.js +6 -0
- package/lib/components/avatar/Avatar.vue.d.ts +6 -8
- package/lib/components/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +66 -0
- package/lib/components/avatar/Avatar.vue_vue_type_style_index_0_lang.module.js +3 -0
- package/lib/components/avatar/theme/Avatar.base.theme.js +17 -21
- package/lib/components/avatar/theme/Avatar.carbon.theme.js +4 -4
- package/lib/components/badge/Badge.js +5 -0
- package/lib/components/badge/Badge.vue.d.ts +6 -8
- package/lib/components/badge/Badge.vue_vue_type_script_setup_true_lang.js +76 -0
- package/lib/components/badge/theme/Badge.base.theme.js +9 -11
- package/lib/components/badge/theme/Badge.carbon.theme.js +4 -4
- package/lib/components/breadcrumbs/Breadcrumbs.js +5 -0
- package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +6 -8
- package/lib/components/breadcrumbs/Breadcrumbs.vue_vue_type_script_setup_true_lang.js +62 -0
- package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.js +8 -10
- package/lib/components/breadcrumbs/theme/Breadcrumbs.carbon.theme.js +7 -9
- package/lib/components/button/Button.js +6 -0
- package/lib/components/button/Button.vue.d.ts +23 -28
- package/lib/components/button/Button.vue_vue_type_script_setup_true_lang.js +139 -0
- package/lib/components/button/Button.vue_vue_type_style_index_0_scoped_4402fde2_lang.module.js +6 -0
- package/lib/components/button/ButtonGroup.js +6 -0
- package/lib/components/button/ButtonGroup.vue.d.ts +21 -20
- package/lib/components/button/ButtonGroup.vue_vue_type_script_setup_true_lang.js +45 -0
- package/lib/components/button/ButtonGroup.vue_vue_type_style_index_0_lang.module.js +7 -0
- package/lib/components/button/theme/Button.base.theme.js +139 -140
- package/lib/components/button/theme/Button.carbon.theme.js +136 -137
- package/lib/components/button/theme/ButtonGroup.base.theme.js +4 -8
- package/lib/components/button/theme/ButtonGroup.carbon.theme.js +4 -8
- package/lib/components/card/Card.js +5 -0
- package/lib/components/card/Card.vue.d.ts +3 -4
- package/lib/components/card/Card.vue_vue_type_script_setup_true_lang.js +26 -0
- package/lib/components/card/theme/Card.base.theme.js +4 -8
- package/lib/components/card/theme/Card.carbon.theme.js +4 -4
- package/lib/components/carousel/Carousel.js +5 -0
- package/lib/components/carousel/Carousel.vue.d.ts +3 -4
- package/lib/components/carousel/Carousel.vue_vue_type_script_setup_true_lang.js +91 -0
- package/lib/components/carousel/CarouselSlide.js +6 -0
- package/lib/components/carousel/CarouselSlide.vue_vue_type_script_setup_true_lang.js +26 -0
- package/lib/components/carousel/CarouselSlide.vue_vue_type_style_index_0_scoped_e90d2127_lang.module.js +4 -0
- package/lib/components/carousel/theme/Carousel.base.theme.js +14 -16
- package/lib/components/carousel/theme/Carousel.carbon.theme.js +4 -4
- package/lib/components/carousel/theme/CarouselSlide.base.theme.js +4 -8
- package/lib/components/carousel/theme/CarouselSlide.carbon.theme.js +4 -4
- package/lib/components/checkbox/Checkbox.js +6 -0
- package/lib/components/checkbox/Checkbox.vue.d.ts +3 -4
- package/lib/components/checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +129 -0
- package/lib/components/checkbox/Checkbox.vue_vue_type_style_index_0_lang.module.js +4 -0
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +58 -58
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +58 -58
- package/lib/components/container/Container.js +5 -0
- package/lib/components/container/Container.vue_vue_type_script_setup_true_lang.js +28 -0
- package/lib/components/container/theme/Container.base.theme.js +7 -11
- package/lib/components/container/theme/Container.carbon.theme.js +4 -4
- package/lib/components/datepicker/Datepicker.js +6 -0
- package/lib/components/datepicker/Datepicker.vue.d.ts +9 -5
- package/lib/components/datepicker/Datepicker.vue_vue_type_script_setup_true_lang.js +638 -0
- package/lib/components/datepicker/theme/Datepicker.base.theme.js +26 -61
- package/lib/components/datepicker/theme/Datepicker.carbon.theme.js +4 -4
- package/lib/components/divider/Divider.js +5 -0
- package/lib/components/divider/Divider.vue.d.ts +4 -6
- package/lib/components/divider/Divider.vue_vue_type_script_setup_true_lang.js +43 -0
- package/lib/components/divider/theme/Divider.base.theme.js +8 -10
- package/lib/components/divider/theme/Divider.carbon.theme.js +4 -4
- package/lib/components/drawer/Drawer.js +5 -0
- package/lib/components/drawer/Drawer.vue_vue_type_script_setup_true_lang.js +149 -0
- package/lib/components/drawer/theme/Drawer.base.theme.js +7 -9
- package/lib/components/drawer/theme/Drawer.carbon.theme.js +4 -4
- package/lib/components/empty/Empty.js +5 -0
- package/lib/components/empty/Empty.vue.d.ts +62 -0
- package/lib/components/empty/Empty.vue_vue_type_script_setup_true_lang.js +67 -0
- package/lib/components/empty/index.d.ts +2 -0
- package/lib/components/empty/theme/Empty.base.theme.d.ts +3 -0
- package/lib/components/empty/theme/Empty.base.theme.js +20 -0
- package/lib/components/empty/theme/Empty.carbon.theme.d.ts +3 -0
- package/lib/components/empty/theme/Empty.carbon.theme.js +5 -0
- package/lib/components/form/Form.js +5 -0
- package/lib/components/form/Form.vue_vue_type_script_setup_true_lang.js +97 -0
- package/lib/components/form/theme/Form.base.theme.js +10 -12
- package/lib/components/form/theme/Form.carbon.theme.js +10 -12
- package/lib/components/formGroup/FormGroup.js +5 -0
- package/lib/components/formGroup/FormGroup.vue.d.ts +9 -2
- package/lib/components/formGroup/FormGroup.vue_vue_type_script_setup_true_lang.js +91 -0
- package/lib/components/formGroup/theme/FormGroup.base.theme.js +7 -11
- package/lib/components/formGroup/theme/FormGroup.carbon.theme.js +7 -11
- package/lib/components/icon/Icon.js +5 -0
- package/lib/components/icon/Icon.vue.d.ts +3 -4
- package/lib/components/icon/Icon.vue_vue_type_script_setup_true_lang.js +85 -0
- package/lib/components/icon/theme/Icon.base.theme.js +4 -11
- package/lib/components/icon/theme/Icon.carbon.theme.js +4 -11
- package/lib/components/image/Image.js +5 -0
- package/lib/components/image/Image.vue_vue_type_script_setup_true_lang.js +25 -0
- package/lib/components/image/theme/Image.base.theme.js +4 -8
- package/lib/components/image/theme/Image.carbon.theme.js +4 -4
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.js +128 -120
- package/lib/components/input/Input.js +5 -0
- package/lib/components/input/Input.vue.d.ts +17 -17
- package/lib/components/input/Input.vue_vue_type_script_setup_true_lang.js +238 -0
- package/lib/components/input/theme/Input.base.theme.js +22 -16
- package/lib/components/input/theme/Input.carbon.theme.js +21 -16
- package/lib/components/inputFooter/InputFooter.js +5 -0
- package/lib/components/inputFooter/InputFooter.vue.d.ts +4 -6
- package/lib/components/inputFooter/InputFooter.vue_vue_type_script_setup_true_lang.js +37 -0
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +10 -12
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +10 -12
- package/lib/components/inputGroup/InputGroup.js +5 -0
- package/lib/components/inputGroup/InputGroup.vue.d.ts +164 -0
- package/lib/components/inputGroup/InputGroup.vue_vue_type_script_setup_true_lang.js +120 -0
- package/lib/components/inputGroup/index.d.ts +2 -0
- package/lib/components/inputGroup/theme/InputGroup.base.theme.d.ts +3 -0
- package/lib/components/inputGroup/theme/InputGroup.base.theme.js +4 -0
- package/lib/components/inputGroup/theme/InputGroup.carbon.theme.d.ts +3 -0
- package/lib/components/inputGroup/theme/InputGroup.carbon.theme.js +5 -0
- package/lib/components/label/Label.js +5 -0
- package/lib/components/label/Label.vue.d.ts +8 -5
- package/lib/components/label/Label.vue_vue_type_script_setup_true_lang.js +59 -0
- package/lib/components/label/theme/Label.base.theme.js +13 -15
- package/lib/components/label/theme/Label.carbon.theme.js +10 -12
- package/lib/components/link/Link.js +6 -0
- package/lib/components/link/Link.vue.d.ts +9 -12
- package/lib/components/link/Link.vue_vue_type_script_setup_true_lang.js +47 -0
- package/lib/components/link/Link.vue_vue_type_style_index_0_scoped_8e0e4d08_lang.module.js +6 -0
- package/lib/components/link/theme/Link.base.theme.js +18 -24
- package/lib/components/link/theme/Link.carbon.theme.js +18 -24
- package/lib/components/loader/Loader.js +5 -0
- package/lib/components/loader/Loader.vue_vue_type_script_setup_true_lang.js +61 -0
- package/lib/components/loader/theme/Loader.base.theme.js +9 -11
- package/lib/components/loader/theme/Loader.carbon.theme.js +9 -11
- package/lib/components/menu/Menu.js +5 -0
- package/lib/components/menu/Menu.vue.d.ts +6 -8
- package/lib/components/menu/Menu.vue_vue_type_script_setup_true_lang.js +178 -0
- package/lib/components/menu/MenuItem.js +6 -0
- package/lib/components/menu/MenuItem.vue.d.ts +6 -8
- package/lib/components/menu/MenuItem.vue_vue_type_script_setup_true_lang.js +149 -0
- package/lib/components/menu/MenuItem.vue_vue_type_style_index_0_scoped_2a6b7341_lang.module.js +7 -0
- package/lib/components/menu/theme/Menu.base.theme.js +4 -8
- package/lib/components/menu/theme/Menu.carbon.theme.js +4 -4
- package/lib/components/menu/theme/MenuItem.base.theme.js +71 -75
- package/lib/components/menu/theme/MenuItem.carbon.theme.js +4 -4
- package/lib/components/modal/Modal.js +5 -0
- package/lib/components/modal/Modal.vue_vue_type_script_setup_true_lang.js +194 -0
- package/lib/components/modal/theme/Modal.base.theme.js +25 -27
- package/lib/components/modal/theme/Modal.carbon.theme.js +27 -29
- package/lib/components/notifications/Notifications.js +5 -0
- package/lib/components/notifications/Notifications.vue_vue_type_script_setup_true_lang.js +234 -0
- package/lib/components/notifications/theme/Notifications.base.theme.js +8 -10
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +8 -10
- package/lib/components/pagination/Pagination.js +5 -0
- package/lib/components/pagination/Pagination.vue.d.ts +3 -4
- package/lib/components/pagination/Pagination.vue_vue_type_script_setup_true_lang.js +152 -0
- package/lib/components/pagination/PaginationItem.js +5 -0
- package/lib/components/pagination/PaginationItem.vue.d.ts +3 -4
- package/lib/components/pagination/PaginationItem.vue_vue_type_script_setup_true_lang.js +44 -0
- package/lib/components/pagination/theme/Pagination.base.theme.js +12 -12
- package/lib/components/pagination/theme/Pagination.carbon.theme.js +4 -4
- package/lib/components/pagination/theme/PaginationItem.base.theme.js +4 -8
- package/lib/components/pagination/theme/PaginationItem.carbon.theme.js +4 -4
- package/lib/components/popover/Popover.js +6 -0
- package/lib/components/popover/Popover.vue_vue_type_script_setup_true_lang.js +189 -0
- package/lib/components/popover/PopoverContainer.js +5 -0
- package/lib/components/popover/PopoverContainer.vue_vue_type_script_setup_true_lang.js +22 -0
- package/lib/components/popover/theme/Popover.base.theme.js +7 -9
- package/lib/components/popover/theme/Popover.carbon.theme.js +4 -4
- package/lib/components/popover/theme/PopoverContainer.base.theme.js +4 -8
- package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +4 -8
- package/lib/components/progress/Progress.js +5 -0
- package/lib/components/progress/Progress.vue.d.ts +6 -8
- package/lib/components/progress/Progress.vue_vue_type_script_setup_true_lang.js +38 -0
- package/lib/components/progress/theme/Progress.base.theme.js +13 -17
- package/lib/components/progress/theme/Progress.carbon.theme.js +4 -4
- package/lib/components/qrCode/QrCode.js +5 -0
- package/lib/components/qrCode/QrCode.vue_vue_type_script_setup_true_lang.js +79 -0
- package/lib/components/qrCode/qrcodegen.js +766 -571
- package/lib/components/qrCode/theme/QrCode.base.theme.js +4 -8
- package/lib/components/qrCode/theme/QrCode.carbon.theme.js +4 -4
- package/lib/components/radio/Radio.js +6 -0
- package/lib/components/radio/Radio.vue.d.ts +3 -4
- package/lib/components/radio/Radio.vue_vue_type_script_setup_true_lang.js +116 -0
- package/lib/components/radio/Radio.vue_vue_type_style_index_0_lang.module.js +7 -0
- package/lib/components/radio/theme/Radio.base.theme.js +69 -69
- package/lib/components/radio/theme/Radio.carbon.theme.js +63 -63
- package/lib/components/radioButton/RadioButton.js +6 -0
- package/lib/components/radioButton/RadioButton.vue.d.ts +182 -0
- package/lib/components/radioButton/RadioButton.vue_vue_type_script_setup_true_lang.js +83 -0
- package/lib/components/radioButton/RadioButton.vue_vue_type_style_index_0_lang.module.js +6 -0
- package/lib/components/radioButton/index.d.ts +2 -0
- package/lib/components/radioButton/theme/RadioButton.base.theme.d.ts +3 -0
- package/lib/components/radioButton/theme/RadioButton.base.theme.js +110 -0
- package/lib/components/radioButton/theme/RadioButton.carbon.theme.d.ts +3 -0
- package/lib/components/radioButton/theme/RadioButton.carbon.theme.js +15 -0
- package/lib/components/scroll/Scroll.js +6 -0
- package/lib/components/scroll/Scroll.vue.d.ts +9 -12
- package/lib/components/scroll/Scroll.vue_vue_type_script_setup_true_lang.js +48 -0
- package/lib/components/scroll/Scroll.vue_vue_type_style_index_0_lang.module.js +12 -0
- package/lib/components/scroll/theme/Scroll.base.theme.js +4 -8
- package/lib/components/scroll/theme/Scroll.carbon.theme.js +4 -4
- package/lib/components/select/Select.js +5 -0
- package/lib/components/select/Select.vue.d.ts +96 -589
- package/lib/components/select/Select.vue_vue_type_script_setup_true_lang.js +548 -0
- package/lib/components/select/theme/Select.base.theme.js +26 -25
- package/lib/components/select/theme/Select.carbon.theme.js +23 -23
- package/lib/components/skeleton/Skeleton.js +5 -0
- package/lib/components/skeleton/Skeleton.vue_vue_type_script_setup_true_lang.js +30 -0
- package/lib/components/skeleton/theme/Skeleton.base.theme.js +7 -11
- package/lib/components/skeleton/theme/Skeleton.carbon.theme.js +4 -4
- package/lib/components/slider/Slider.js +7 -0
- package/lib/components/slider/Slider.vue_vue_type_script_setup_true_lang.js +106 -0
- package/lib/components/slider/theme/Slider.base.theme.js +17 -19
- package/lib/components/slider/theme/Slider.carbon.theme.js +4 -4
- package/lib/components/spacer/Spacer.js +9 -11
- package/lib/components/spinner/Spinner.js +5 -0
- package/lib/components/spinner/Spinner.vue_vue_type_script_setup_true_lang.js +23 -0
- package/lib/components/stepper/Stepper.js +5 -0
- package/lib/components/stepper/Stepper.vue.d.ts +137 -32
- package/lib/components/stepper/Stepper.vue_vue_type_script_setup_true_lang.js +377 -0
- package/lib/components/stepper/index.d.ts +1 -1
- package/lib/components/stepper/theme/Stepper.base.theme.js +33 -20
- package/lib/components/stepper/theme/Stepper.carbon.theme.js +4 -4
- package/lib/components/tab/Tab.js +5 -0
- package/lib/components/tab/Tab.vue.d.ts +3 -4
- package/lib/components/tab/Tab.vue_vue_type_script_setup_true_lang.js +139 -0
- package/lib/components/tab/TabGroup.js +5 -0
- package/lib/components/tab/TabGroup.vue.d.ts +6 -8
- package/lib/components/tab/TabGroup.vue_vue_type_script_setup_true_lang.js +122 -0
- package/lib/components/tab/theme/Tab.base.theme.js +13 -15
- package/lib/components/tab/theme/Tab.carbon.theme.js +16 -18
- package/lib/components/tab/theme/TabGroup.base.theme.js +30 -30
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +30 -30
- package/lib/components/table/Table.js +5 -0
- package/lib/components/table/Table.vue.d.ts +49 -304
- package/lib/components/table/Table.vue_vue_type_script_setup_true_lang.js +385 -0
- package/lib/components/table/TableBody.js +9 -14
- package/lib/components/table/TableCell.js +5 -0
- package/lib/components/table/TableCell.vue.d.ts +6 -8
- package/lib/components/table/TableCell.vue_vue_type_script_setup_true_lang.js +81 -0
- package/lib/components/table/TableHead.js +5 -0
- package/lib/components/table/TableHead.vue.d.ts +4 -6
- package/lib/components/table/TableHead.vue_vue_type_script_setup_true_lang.js +17 -0
- package/lib/components/table/TableHeader.js +5 -0
- package/lib/components/table/TableHeader.vue.d.ts +3 -4
- package/lib/components/table/TableHeader.vue_vue_type_script_setup_true_lang.js +78 -0
- package/lib/components/table/TableRow.js +5 -0
- package/lib/components/table/TableRow.vue.d.ts +9 -12
- package/lib/components/table/TableRow.vue_vue_type_script_setup_true_lang.js +39 -0
- package/lib/components/table/theme/Table.base.theme.js +11 -13
- package/lib/components/table/theme/Table.carbon.theme.js +11 -13
- package/lib/components/table/theme/TableCell.base.theme.js +7 -11
- package/lib/components/table/theme/TableCell.carbon.theme.js +7 -11
- package/lib/components/table/theme/TableHead.base.theme.js +10 -12
- package/lib/components/table/theme/TableHead.carbon.theme.js +10 -12
- package/lib/components/table/theme/TableHeader.base.theme.js +14 -16
- package/lib/components/table/theme/TableHeader.carbon.theme.js +10 -12
- package/lib/components/table/theme/TableRow.base.theme.js +7 -11
- package/lib/components/table/theme/TableRow.carbon.theme.js +7 -11
- package/lib/components/tag/Tag.js +5 -0
- package/lib/components/tag/Tag.vue.d.ts +12 -16
- package/lib/components/tag/Tag.vue_vue_type_script_setup_true_lang.js +62 -0
- package/lib/components/tag/theme/Tag.base.theme.js +21 -23
- package/lib/components/tag/theme/Tag.carbon.theme.js +21 -23
- package/lib/components/textarea/Textarea.js +5 -0
- package/lib/components/textarea/Textarea.vue.d.ts +26 -29
- package/lib/components/textarea/Textarea.vue_vue_type_script_setup_true_lang.js +197 -0
- package/lib/components/textarea/theme/Textarea.base.theme.js +17 -13
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +16 -13
- package/lib/components/themeProvider/ThemeProvider.js +5 -0
- package/lib/components/themeProvider/ThemeProvider.vue_vue_type_script_setup_true_lang.js +15 -0
- package/lib/components/toggle/Toggle.js +5 -0
- package/lib/components/toggle/Toggle.vue.d.ts +3 -4
- package/lib/components/toggle/Toggle.vue_vue_type_script_setup_true_lang.js +101 -0
- package/lib/components/toggle/theme/Toggle.base.theme.js +23 -28
- package/lib/components/toggle/theme/Toggle.carbon.theme.js +4 -4
- package/lib/components/tooltip/ToggleTip.js +5 -0
- package/lib/components/tooltip/ToggleTip.vue_vue_type_script_setup_true_lang.js +25 -0
- package/lib/components/tooltip/Tooltip.js +5 -0
- package/lib/components/tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +105 -0
- package/lib/components/tooltip/theme/Tooltip.base.theme.js +4 -8
- package/lib/components/tooltip/theme/Tooltip.carbon.theme.js +4 -4
- package/lib/components/upload/Upload.js +5 -0
- package/lib/components/upload/Upload.vue.d.ts +23 -9
- package/lib/components/upload/Upload.vue_vue_type_script_setup_true_lang.js +261 -0
- package/lib/components/upload/theme/Upload.base.theme.js +4 -8
- package/lib/components/upload/theme/Upload.carbon.theme.js +4 -4
- package/lib/composables/index.d.ts +1 -0
- package/lib/composables/keys.d.ts +2 -0
- package/lib/composables/keys.js +4 -12
- package/lib/composables/resolveComponentDefaults.d.ts +4 -0
- package/lib/composables/resolveComponentDefaults.js +15 -0
- package/lib/composables/useCSS.js +29 -25
- package/lib/composables/useColors.js +44 -51
- package/lib/composables/useCommon.js +15 -17
- package/lib/composables/useFocusTrap.js +50 -53
- package/lib/composables/useInputtable.d.ts +12 -2
- package/lib/composables/useInputtable.js +135 -113
- package/lib/composables/useInteractive.js +14 -20
- package/lib/composables/useNotifications.js +8 -8
- package/lib/composables/useTheme.js +44 -56
- package/lib/composables/useVirtualList.d.ts +1 -2
- package/lib/composables/useVirtualList.js +120 -115
- package/lib/create.d.ts +2 -0
- package/lib/create.js +21 -24
- package/lib/index.d.ts +1 -0
- package/lib/index.js +87 -169
- package/lib/index.umd.js +57 -41
- package/lib/install.js +14 -18
- package/lib/node_modules/.pnpm/@floating-ui_core@1.5.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +321 -489
- package/lib/node_modules/.pnpm/@floating-ui_dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.js +288 -215
- package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +99 -115
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.34_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5380 -0
- package/lib/node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.34_typescript@5.2.2_/node_modules/@vueuse/core/index.js +407 -0
- package/lib/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.34_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +75 -0
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/addLeadingZeros.js +5 -6
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/defaultOptions.js +6 -6
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/formatters.js +378 -513
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/lightFormatters.js +42 -58
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/format/longFormatters.js +39 -51
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +7 -17
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeDates.js +7 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/normalizeInterval.js +10 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/_lib/protectedTokens.js +19 -17
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/add.js +10 -19
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addDays.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addHours.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMilliseconds.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addMonths.js +11 -20
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addQuarters.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/addYears.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/compareAsc.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constants.js +6 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/constructFrom.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarDays.js +10 -15
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInCalendarYears.js +7 -12
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/differenceInYears.js +11 -16
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachDayOfInterval.js +14 -19
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/eachQuarterOfInterval.js +13 -19
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfQuarter.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfWeek.js +8 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/endOfYear.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/format.js +57 -58
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDay.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDayOfYear.js +9 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDaysInMonth.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getDefaultOptions.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getHours.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISODay.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeek.js +10 -11
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getISOWeekYear.js +13 -14
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMinutes.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getMonth.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getQuarter.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getSeconds.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeek.js +10 -11
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getWeekYear.js +14 -16
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/getYear.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isAfter.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isBefore.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isDate.js +5 -6
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isEqual.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isSameQuarter.js +8 -13
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/isValid.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -16
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/en-US.js +17 -18
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Parser.js +15 -21
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/Setter.js +29 -40
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/constants.js +29 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +45 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +45 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js +63 -60
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +40 -50
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js +61 -44
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +43 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js +24 -29
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +26 -20
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +14 -21
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +28 -31
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -31
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -32
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +29 -32
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +73 -98
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +27 -47
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +27 -47
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +39 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +33 -39
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -73
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +38 -47
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +47 -68
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +22 -31
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +58 -70
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +57 -69
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +22 -31
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -73
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +58 -70
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +57 -69
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +14 -20
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +14 -20
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js +42 -48
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/parsers.js +66 -66
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse/_lib/utils.js +64 -93
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/parse.js +61 -88
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/set.js +9 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setDay.js +9 -11
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setHours.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISODay.js +9 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setISOWeek.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMilliseconds.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMinutes.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setMonth.js +11 -12
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setSeconds.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setWeek.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/setYear.js +8 -9
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfDay.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeek.js +9 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfISOWeekYear.js +9 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfMonth.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfQuarter.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeek.js +8 -10
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfWeekYear.js +10 -12
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/startOfYear.js +7 -8
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/sub.js +9 -18
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subDays.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subMonths.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/subYears.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/toDate.js +6 -7
- package/lib/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/transpose.js +9 -16
- package/lib/node_modules/.pnpm/floating-vue@5.2.2_@nuxt_kit@4.4.6_magicast@0.5.3__vue@3.5.34_typescript@5.2.2_/node_modules/floating-vue/dist/floating-vue.js +1243 -0
- package/lib/node_modules/.pnpm/vue-demi@0.14.10_vue@3.5.34_typescript@5.2.2_/node_modules/vue-demi/lib/index.js +28 -0
- package/lib/nuxt.mjs +1 -1
- package/lib/nuxt.plugin.js +1 -0
- package/lib/tailwind.css +74 -0
- package/lib/theme.d.ts +4 -1
- package/lib/theme.js +12 -13
- package/lib/themes/base/components.d.ts +3 -0
- package/lib/themes/base/components.js +118 -108
- package/lib/themes/base/index.js +10 -10
- package/lib/themes/base/styles.d.ts +1 -1
- package/lib/themes/base/styles.js +4 -91
- package/lib/themes/carbon/components.d.ts +3 -0
- package/lib/themes/carbon/components.js +118 -108
- package/lib/themes/carbon/index.js +23 -13
- package/lib/themes/carbon/styles.d.ts +1 -1
- package/lib/themes/carbon/styles.js +4 -87
- package/lib/version.d.ts +1 -1
- package/lib/version.js +4 -4
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.js +5 -0
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue_vue_type_script_setup_true_lang.js +18 -0
- package/lib/virtual/components/virtualGrid/VirtualGrid.js +5 -0
- package/lib/virtual/components/virtualGrid/VirtualGrid.vue_vue_type_script_setup_true_lang.js +194 -0
- package/lib/virtual/components/virtualList/VirtualList.js +5 -0
- package/lib/virtual/components/virtualList/VirtualList.vue_vue_type_script_setup_true_lang.js +139 -0
- package/lib/virtual/components/virtualList/isDynamicRowHeight.js +5 -5
- package/lib/virtual/components/virtualList/useDynamicRowHeight.js +58 -67
- package/lib/virtual/composables/infinite-loader/scanForUnloadedIndices.js +26 -40
- package/lib/virtual/composables/infinite-loader/useInfiniteLoader.js +30 -41
- package/lib/virtual/core/createCachedBounds.js +40 -54
- package/lib/virtual/core/getEstimatedSize.js +11 -21
- package/lib/virtual/core/getOffsetForIndex.js +17 -39
- package/lib/virtual/core/getStartStopIndices.js +21 -30
- package/lib/virtual/core/useCachedBounds.js +10 -16
- package/lib/virtual/core/useIsRtl.js +10 -14
- package/lib/virtual/core/useItemSize.js +15 -26
- package/lib/virtual/core/useVirtualizer.js +145 -170
- package/lib/virtual/utils/adjustScrollOffsetForRtl.js +15 -23
- package/lib/virtual/utils/assert.js +5 -6
- package/lib/virtual/utils/getRTLOffsetType.js +12 -12
- package/lib/virtual/utils/getScrollbarSize.js +10 -10
- package/lib/virtual/utils/isRtl.js +10 -11
- package/lib/virtual/utils/parseNumericStyleValue.js +10 -14
- package/lib/virtual/utils/shallowCompare.js +9 -13
- package/package.json +20 -22
- package/src/common/__tests__/inputGroupRadius.spec.ts +14 -0
- package/src/common/icons.ts +1 -0
- package/src/common/inputGroupRadius.ts +11 -0
- package/src/common/props.ts +34 -0
- package/src/componentDefaults.ts +19 -0
- package/src/components/accordion/Accordion.vue +3 -1
- package/src/components/accordion/AccordionItem.vue +3 -1
- package/src/components/alert/Alert.vue +28 -24
- package/src/components/avatar/Avatar.vue +5 -3
- package/src/components/badge/Badge.vue +7 -3
- package/src/components/breadcrumbs/Breadcrumbs.vue +4 -2
- package/src/components/button/Button.vue +98 -55
- package/src/components/button/ButtonGroup.vue +23 -25
- package/src/components/button/theme/Button.base.theme.ts +7 -2
- package/src/components/button/theme/Button.carbon.theme.ts +8 -2
- package/src/components/card/Card.vue +3 -1
- package/src/components/card/theme/Card.base.theme.ts +1 -1
- package/src/components/carousel/Carousel.vue +3 -1
- package/src/components/carousel/CarouselSlide.vue +1 -1
- package/src/components/checkbox/Checkbox.vue +7 -7
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +1 -1
- package/src/components/datepicker/Datepicker.vue +32 -10
- package/src/components/divider/Divider.vue +3 -2
- package/src/components/divider/theme/Divider.base.theme.ts +2 -2
- package/src/components/empty/Empty.vue +86 -0
- package/src/components/empty/__tests__/Empty.spec.ts +11 -0
- package/src/components/empty/index.ts +2 -0
- package/src/components/empty/theme/Empty.base.theme.ts +40 -0
- package/src/components/empty/theme/Empty.carbon.theme.ts +7 -0
- package/src/components/formGroup/FormGroup.vue +19 -7
- package/src/components/formGroup/__tests__/FormGroup.spec.ts +37 -2
- package/src/components/formGroup/theme/FormGroup.base.theme.ts +7 -3
- package/src/components/formGroup/theme/FormGroup.carbon.theme.ts +7 -3
- package/src/components/icon/Icon.vue +3 -1
- package/src/components/index.ts +3 -0
- package/src/components/input/Input.vue +114 -35
- package/src/components/input/__tests__/Input.spec.ts +28 -1
- package/src/components/input/theme/Input.base.theme.ts +10 -1
- package/src/components/input/theme/Input.carbon.theme.ts +5 -0
- package/src/components/inputFooter/InputFooter.vue +3 -1
- package/src/components/inputGroup/InputGroup.vue +185 -0
- package/src/components/inputGroup/__tests__/InputGroup.spec.ts +104 -0
- package/src/components/inputGroup/index.ts +2 -0
- package/src/components/inputGroup/theme/InputGroup.base.theme.ts +9 -0
- package/src/components/inputGroup/theme/InputGroup.carbon.theme.ts +7 -0
- package/src/components/label/Label.vue +23 -3
- package/src/components/label/theme/Label.base.theme.ts +2 -2
- package/src/components/label/theme/Label.carbon.theme.ts +2 -2
- package/src/components/link/Link.vue +34 -29
- package/src/components/menu/Menu.vue +4 -2
- package/src/components/menu/MenuItem.vue +39 -41
- package/src/components/pagination/Pagination.vue +3 -1
- package/src/components/pagination/PaginationItem.vue +3 -1
- package/src/components/popover/Popover.vue +12 -15
- package/src/components/progress/Progress.vue +4 -2
- package/src/components/radio/Radio.vue +27 -24
- package/src/components/radio/theme/Radio.base.theme.ts +1 -1
- package/src/components/radio/theme/Radio.carbon.theme.ts +1 -1
- package/src/components/radioButton/RadioButton.vue +154 -0
- package/src/components/radioButton/__tests__/RadioButton.spec.ts +48 -0
- package/src/components/radioButton/index.ts +2 -0
- package/src/components/radioButton/theme/RadioButton.base.theme.ts +155 -0
- package/src/components/radioButton/theme/RadioButton.carbon.theme.ts +31 -0
- package/src/components/scroll/Scroll.vue +6 -4
- package/src/components/select/Select.vue +87 -24
- package/src/components/select/theme/Select.base.theme.ts +7 -1
- package/src/components/select/theme/Select.carbon.theme.ts +2 -0
- package/src/components/slider/Slider.vue +19 -8
- package/src/components/spacer/Spacer.tsx +1 -1
- package/src/components/spacer/__tests__/Spacer.spec.ts +1 -1
- package/src/components/stepper/Stepper.vue +603 -80
- package/src/components/stepper/__tests__/Stepper.spec.ts +199 -5
- package/src/components/stepper/index.ts +4 -0
- package/src/components/stepper/theme/Stepper.base.theme.ts +49 -19
- package/src/components/tab/Tab.vue +6 -2
- package/src/components/tab/TabGroup.vue +8 -4
- package/src/components/table/Table.vue +31 -11
- package/src/components/table/TableCell.vue +4 -2
- package/src/components/table/TableHead.vue +3 -1
- package/src/components/table/TableHeader.vue +3 -1
- package/src/components/table/TableRow.vue +5 -3
- package/src/components/table/__tests__/Table.spec.ts +53 -0
- package/src/components/table/theme/Table.carbon.theme.ts +1 -1
- package/src/components/tag/Tag.vue +12 -8
- package/src/components/textarea/Textarea.vue +83 -19
- package/src/components/textarea/theme/Textarea.base.theme.ts +10 -1
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +5 -0
- package/src/components/toggle/Toggle.vue +3 -1
- package/src/components/upload/Upload.vue +6 -2
- package/src/composables/__tests__/resolveComponentDefaults.spec.ts +139 -0
- package/src/composables/index.ts +1 -0
- package/src/composables/keys.ts +2 -0
- package/src/composables/resolveComponentDefaults.ts +33 -0
- package/src/composables/useInputtable.ts +56 -9
- package/src/composables/useTheme.ts +10 -3
- package/src/composables/useVirtualList.ts +1 -2
- package/src/create.ts +2 -0
- package/src/index.ts +1 -0
- package/src/theme.ts +6 -0
- package/src/themes/base/components.ts +3 -0
- package/src/themes/base/styles.ts +28 -20
- package/src/themes/carbon/components.ts +3 -0
- package/src/themes/carbon/styles.ts +25 -17
- package/src/version.ts +1 -1
- package/src/virtual/components/virtualList/VirtualList.test.ts +42 -4
- package/src/virtual/core/useVirtualizer.ts +18 -4
- package/docs/pages/component/radio/variants.vue +0 -39
- package/exports/tailwind.preset.js +0 -40
- package/lib/components/accordion/Accordion.vue.js +0 -40
- package/lib/components/accordion/Accordion.vue2.js +0 -4
- package/lib/components/accordion/AccordionItem.vue.js +0 -150
- package/lib/components/accordion/AccordionItem.vue2.js +0 -4
- package/lib/components/accordion/__tests__/Accordion.spec.d.ts +0 -1
- package/lib/components/alert/Alert.vue.js +0 -9
- package/lib/components/alert/Alert.vue2.js +0 -62
- package/lib/components/alert/Alert.vue3.js +0 -8
- package/lib/components/alert/__tests__/Alert.spec.d.ts +0 -1
- package/lib/components/avatar/Avatar.vue.js +0 -9
- package/lib/components/avatar/Avatar.vue2.js +0 -76
- package/lib/components/avatar/Avatar.vue3.js +0 -7
- package/lib/components/avatar/__tests__/Avatar.spec.d.ts +0 -1
- package/lib/components/badge/Badge.vue.js +0 -93
- package/lib/components/badge/Badge.vue2.js +0 -4
- package/lib/components/badge/__tests__/Badge.spec.d.ts +0 -1
- package/lib/components/breadcrumbs/Breadcrumbs.vue.js +0 -69
- package/lib/components/breadcrumbs/Breadcrumbs.vue2.js +0 -4
- package/lib/components/breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +0 -1
- package/lib/components/button/Button.vue.js +0 -9
- package/lib/components/button/Button.vue2.js +0 -117
- package/lib/components/button/Button.vue3.js +0 -8
- package/lib/components/button/ButtonGroup.vue.js +0 -9
- package/lib/components/button/ButtonGroup.vue2.js +0 -53
- package/lib/components/button/ButtonGroup.vue3.js +0 -7
- package/lib/components/button/__tests__/ Button.spec.d.ts +0 -1
- package/lib/components/button/__tests__/ ButtonGroup.spec.d.ts +0 -1
- package/lib/components/card/Card.vue.js +0 -30
- package/lib/components/card/Card.vue2.js +0 -4
- package/lib/components/card/__tests__/Card.spec.d.ts +0 -1
- package/lib/components/carousel/Carousel.vue.js +0 -97
- package/lib/components/carousel/Carousel.vue2.js +0 -4
- package/lib/components/carousel/CarouselSlide.vue.js +0 -9
- package/lib/components/carousel/CarouselSlide.vue2.js +0 -32
- package/lib/components/carousel/CarouselSlide.vue3.js +0 -6
- package/lib/components/carousel/__tests__/Carousel.spec.d.ts +0 -1
- package/lib/components/checkbox/Checkbox.vue.js +0 -9
- package/lib/components/checkbox/Checkbox.vue2.js +0 -143
- package/lib/components/checkbox/Checkbox.vue3.js +0 -6
- package/lib/components/checkbox/__tests__/Checkbox.spec.d.ts +0 -1
- package/lib/components/container/Container.vue.js +0 -33
- package/lib/components/container/Container.vue2.js +0 -4
- package/lib/components/container/__tests__/Container.spec.d.ts +0 -1
- package/lib/components/datepicker/Datepicker.vue.js +0 -309
- package/lib/components/datepicker/Datepicker.vue2.js +0 -4
- package/lib/components/datepicker/Datepicker.vue3.js +0 -5
- package/lib/components/datepicker/__tests__/Datepicker.spec.d.ts +0 -1
- package/lib/components/divider/Divider.vue.js +0 -52
- package/lib/components/divider/Divider.vue2.js +0 -4
- package/lib/components/divider/__tests__/Divider.spec.d.ts +0 -1
- package/lib/components/drawer/Drawer.vue.js +0 -160
- package/lib/components/drawer/Drawer.vue2.js +0 -4
- package/lib/components/drawer/__tests__/Drawer.spec.d.ts +0 -1
- package/lib/components/form/Form.vue.js +0 -111
- package/lib/components/form/Form.vue2.js +0 -4
- package/lib/components/form/__tests__/Form.spec.d.ts +0 -1
- package/lib/components/formGroup/FormGroup.vue.js +0 -91
- package/lib/components/formGroup/FormGroup.vue2.js +0 -4
- package/lib/components/formGroup/__tests__/FormGroup.spec.d.ts +0 -1
- package/lib/components/icon/Icon.vue.js +0 -73
- package/lib/components/icon/Icon.vue2.js +0 -4
- package/lib/components/icon/__tests__/Icon.spec.d.ts +0 -1
- package/lib/components/image/Image.vue.js +0 -31
- package/lib/components/image/Image.vue2.js +0 -4
- package/lib/components/image/__tests__/Image.spec.d.ts +0 -1
- package/lib/components/input/Input.vue.js +0 -164
- package/lib/components/input/Input.vue2.js +0 -4
- package/lib/components/input/__tests__/Input.spec.d.ts +0 -1
- package/lib/components/inputFooter/InputFooter.vue.js +0 -43
- package/lib/components/inputFooter/InputFooter.vue2.js +0 -4
- package/lib/components/inputFooter/__tests__/InputFooter.spec.d.ts +0 -1
- package/lib/components/label/Label.vue.js +0 -54
- package/lib/components/label/Label.vue2.js +0 -4
- package/lib/components/label/__tests__/Label.spec.d.ts +0 -1
- package/lib/components/link/Link.vue.js +0 -9
- package/lib/components/link/Link.vue2.js +0 -47
- package/lib/components/link/Link.vue3.js +0 -8
- package/lib/components/link/__tests__/Link.spec.d.ts +0 -1
- package/lib/components/loader/Loader.vue.js +0 -54
- package/lib/components/loader/Loader.vue2.js +0 -4
- package/lib/components/loader/__tests__/Loader.spec.d.ts +0 -1
- package/lib/components/menu/Menu.vue.js +0 -141
- package/lib/components/menu/Menu.vue2.js +0 -4
- package/lib/components/menu/MenuItem.vue.js +0 -9
- package/lib/components/menu/MenuItem.vue2.js +0 -164
- package/lib/components/menu/MenuItem.vue3.js +0 -7
- package/lib/components/menu/__tests__/Menu.spec.d.ts +0 -1
- package/lib/components/menu/__tests__/MenuItem.spec.d.ts +0 -1
- package/lib/components/modal/Modal.vue.js +0 -211
- package/lib/components/modal/Modal.vue2.js +0 -4
- package/lib/components/modal/__tests__/Modal.spec.d.ts +0 -1
- package/lib/components/notifications/Notifications.vue.js +0 -266
- package/lib/components/notifications/Notifications.vue2.js +0 -4
- package/lib/components/notifications/__tests__/Notifications.spec.d.ts +0 -1
- package/lib/components/pagination/Pagination.vue.js +0 -131
- package/lib/components/pagination/Pagination.vue2.js +0 -4
- package/lib/components/pagination/PaginationItem.vue.js +0 -47
- package/lib/components/pagination/PaginationItem.vue2.js +0 -4
- package/lib/components/pagination/__tests__/Pagination.spec.d.ts +0 -1
- package/lib/components/pagination/__tests__/PaginationItem.spec.d.ts +0 -1
- package/lib/components/popover/Popover.vue.js +0 -134
- package/lib/components/popover/Popover.vue2.js +0 -4
- package/lib/components/popover/Popover.vue3.js +0 -5
- package/lib/components/popover/PopoverContainer.vue.js +0 -29
- package/lib/components/popover/PopoverContainer.vue2.js +0 -4
- package/lib/components/popover/__tests__/Popover.spec.d.ts +0 -1
- package/lib/components/popover/__tests__/PopoverContainer.spec.d.ts +0 -1
- package/lib/components/progress/Progress.vue.js +0 -50
- package/lib/components/progress/Progress.vue2.js +0 -4
- package/lib/components/progress/__tests__/Progress.spec.d.ts +0 -1
- package/lib/components/qrCode/QrCode.vue.js +0 -93
- package/lib/components/qrCode/QrCode.vue2.js +0 -4
- package/lib/components/qrCode/__tests__/QrCode.spec.d.ts +0 -1
- package/lib/components/radio/Radio.vue.js +0 -9
- package/lib/components/radio/Radio.vue2.js +0 -132
- package/lib/components/radio/Radio.vue3.js +0 -10
- package/lib/components/radio/__tests__/Radio.spec.d.ts +0 -1
- package/lib/components/scroll/Scroll.vue.js +0 -9
- package/lib/components/scroll/Scroll.vue2.js +0 -63
- package/lib/components/scroll/Scroll.vue3.js +0 -17
- package/lib/components/scroll/__tests__/Scroll.spec.d.ts +0 -1
- package/lib/components/select/Select.vue.js +0 -689
- package/lib/components/select/Select.vue2.js +0 -4
- package/lib/components/select/__tests__/Select.spec.d.ts +0 -1
- package/lib/components/skeleton/Skeleton.vue.js +0 -39
- package/lib/components/skeleton/Skeleton.vue2.js +0 -4
- package/lib/components/skeleton/__tests__/Skeleton.spec.d.ts +0 -1
- package/lib/components/slider/Slider.vue.js +0 -7
- package/lib/components/slider/Slider.vue2.js +0 -103
- package/lib/components/slider/Slider.vue3.js +0 -4
- package/lib/components/slider/__tests__/Slider.spec.d.ts +0 -1
- package/lib/components/spacer/__tests__/Spacer.spec.d.ts +0 -1
- package/lib/components/spinner/Spinner.vue.js +0 -27
- package/lib/components/spinner/Spinner.vue2.js +0 -4
- package/lib/components/spinner/__tests__/Spinner.spec.d.ts +0 -1
- package/lib/components/stepper/Stepper.vue.js +0 -129
- package/lib/components/stepper/Stepper.vue2.js +0 -4
- package/lib/components/stepper/__tests__/Stepper.spec.d.ts +0 -1
- package/lib/components/tab/Tab.vue.js +0 -150
- package/lib/components/tab/Tab.vue2.js +0 -4
- package/lib/components/tab/TabGroup.vue.js +0 -135
- package/lib/components/tab/TabGroup.vue2.js +0 -4
- package/lib/components/tab/__tests__/Tab.spec.d.ts +0 -1
- package/lib/components/tab/__tests__/TabGroup.spec.d.ts +0 -1
- package/lib/components/table/Table.vue.js +0 -424
- package/lib/components/table/Table.vue2.js +0 -4
- package/lib/components/table/TableCell.vue.js +0 -65
- package/lib/components/table/TableCell.vue2.js +0 -4
- package/lib/components/table/TableHead.vue.js +0 -24
- package/lib/components/table/TableHead.vue2.js +0 -4
- package/lib/components/table/TableHeader.vue.js +0 -82
- package/lib/components/table/TableHeader.vue2.js +0 -4
- package/lib/components/table/TableRow.vue.js +0 -30
- package/lib/components/table/TableRow.vue2.js +0 -4
- package/lib/components/table/__tests__/Table.spec.d.ts +0 -1
- package/lib/components/tag/Tag.vue.js +0 -73
- package/lib/components/tag/Tag.vue2.js +0 -4
- package/lib/components/tag/__tests__/Tag.spec.d.ts +0 -1
- package/lib/components/textarea/Textarea.vue.js +0 -141
- package/lib/components/textarea/Textarea.vue2.js +0 -4
- package/lib/components/textarea/__tests__/Textarea.spec.d.ts +0 -1
- package/lib/components/themeProvider/ThemeProvider.vue.js +0 -18
- package/lib/components/themeProvider/ThemeProvider.vue2.js +0 -4
- package/lib/components/toggle/Toggle.vue.js +0 -108
- package/lib/components/toggle/Toggle.vue2.js +0 -4
- package/lib/components/toggle/__tests__/Toggle.spec.d.ts +0 -1
- package/lib/components/tooltip/ToggleTip.vue.js +0 -29
- package/lib/components/tooltip/ToggleTip.vue2.js +0 -4
- package/lib/components/tooltip/Tooltip.vue.js +0 -132
- package/lib/components/tooltip/Tooltip.vue2.js +0 -4
- package/lib/components/tooltip/__tests__/ToggleTip.spec.d.ts +0 -1
- package/lib/components/tooltip/__tests__/Tooltip.spec.d.ts +0 -1
- package/lib/components/upload/Upload.vue.js +0 -275
- package/lib/components/upload/Upload.vue2.js +0 -4
- package/lib/components/upload/__tests__/Upload.spec.d.ts +0 -1
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/main.css.js +0 -4
- package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.10_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +0 -5210
- package/lib/node_modules/.pnpm/@vueuse_core@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/core/index.js +0 -501
- package/lib/node_modules/.pnpm/@vueuse_shared@11.1.0_vue@3.5.10_typescript@5.2.2_/node_modules/@vueuse/shared/index.js +0 -96
- package/lib/node_modules/.pnpm/floating-vue@5.2.2_@nuxt_kit@3.10.1_rollup@3.29.4__vue@3.5.10_typescript@5.2.2_/node_modules/floating-vue/dist/floating-vue.js +0 -1371
- package/lib/tailwind.preset.js +0 -40
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue.js +0 -21
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue2.js +0 -4
- package/lib/virtual/components/virtualGrid/VirtualGrid.vue.js +0 -241
- package/lib/virtual/components/virtualGrid/VirtualGrid.vue2.js +0 -4
- package/lib/virtual/components/virtualList/VirtualList.vue.js +0 -159
- package/lib/virtual/components/virtualList/VirtualList.vue2.js +0 -4
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { variantBooleanProps } from '../../common/props'
|
|
3
|
+
|
|
2
4
|
const buttonProps = {
|
|
3
5
|
...useCommon.props(),
|
|
4
6
|
...useColors.props(),
|
|
5
7
|
...useInteractive.props(),
|
|
8
|
+
...variantBooleanProps(),
|
|
6
9
|
tag: {
|
|
7
10
|
type: String,
|
|
8
11
|
default: 'button',
|
|
@@ -15,19 +18,16 @@ const buttonProps = {
|
|
|
15
18
|
iconLeft: String,
|
|
16
19
|
iconRight: String,
|
|
17
20
|
to: [String, Object],
|
|
18
|
-
outlined: Boolean,
|
|
19
|
-
rounded: Boolean,
|
|
20
|
-
glow: Boolean,
|
|
21
|
-
ghost: Boolean,
|
|
22
|
-
light: Boolean,
|
|
23
|
-
block: Boolean,
|
|
24
|
-
flat: Boolean,
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
export type ButtonProps = ExtractPublicPropTypes<typeof buttonProps>
|
|
28
24
|
|
|
29
25
|
type InternalClasses = 'wrapper' | 'iconLeft' | 'iconRight'
|
|
30
|
-
type InternalExtraData = {
|
|
26
|
+
type InternalExtraData = {
|
|
27
|
+
isButtonGroup: boolean;
|
|
28
|
+
isInsideInputGroup: boolean;
|
|
29
|
+
inputGroupPosition: import('../../common/inputGroupRadius').InputGroupPosition | undefined;
|
|
30
|
+
}
|
|
31
31
|
export interface ButtonTheme extends ThemeComponent<ButtonProps, InternalClasses, InternalExtraData> {}
|
|
32
32
|
|
|
33
33
|
export default {
|
|
@@ -39,34 +39,73 @@ export default {
|
|
|
39
39
|
</script>
|
|
40
40
|
|
|
41
41
|
<script setup lang="ts">
|
|
42
|
-
import { computed, ref, inject, useAttrs, unref, type ExtractPublicPropTypes } from 'vue'
|
|
42
|
+
import { computed, ref, inject, onMounted, onUnmounted, useAttrs, unref, type ExtractPublicPropTypes } from 'vue'
|
|
43
43
|
import { useTheme, type ThemeComponent } from '../../composables/useTheme'
|
|
44
|
+
import { useResolvedComponentProps } from '../../composables/resolveComponentDefaults'
|
|
44
45
|
import { useColors } from '../../composables/useColors'
|
|
45
46
|
import { useCommon } from '../../composables/useCommon'
|
|
46
47
|
import { useInteractive } from '../../composables/useInteractive'
|
|
47
|
-
import { injectButtonGroupKey } from '../../composables/keys'
|
|
48
|
+
import { injectButtonGroupKey, injectInputGroupKey } from '../../composables/keys'
|
|
48
49
|
|
|
49
50
|
import XLoader from '../loader/Loader.vue'
|
|
50
51
|
import XIcon from '../icon/Icon.vue'
|
|
51
52
|
|
|
52
53
|
const props = defineProps(buttonProps)
|
|
54
|
+
const resolvedProps = useResolvedComponentProps('Button', props)
|
|
53
55
|
|
|
54
56
|
const elRef = ref<HTMLElement | null>(null)
|
|
55
57
|
|
|
56
|
-
// Button group props
|
|
57
58
|
const buttonGroup = inject(injectButtonGroupKey, {
|
|
58
59
|
isButtonGroup: false,
|
|
59
60
|
groupProps: {},
|
|
60
61
|
})
|
|
61
62
|
|
|
63
|
+
const inputGroup = inject(injectInputGroupKey, {
|
|
64
|
+
registerChild: () => {},
|
|
65
|
+
unregisterChild: () => {},
|
|
66
|
+
registerInput: () => {},
|
|
67
|
+
unregisterInput: () => {},
|
|
68
|
+
getPosition: () => 'only',
|
|
69
|
+
childOrder: computed(() => []),
|
|
70
|
+
isInsideInputGroup: false,
|
|
71
|
+
groupProps: {},
|
|
72
|
+
})
|
|
73
|
+
|
|
74
|
+
const childId = `btn-${Math.random().toString(36).slice(2)}`
|
|
75
|
+
|
|
76
|
+
onMounted(() => {
|
|
77
|
+
if (inputGroup.isInsideInputGroup) inputGroup.registerChild(childId)
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
onUnmounted(() => {
|
|
81
|
+
if (inputGroup.isInsideInputGroup) inputGroup.unregisterChild(childId)
|
|
82
|
+
})
|
|
83
|
+
|
|
62
84
|
const { isButtonGroup } = buttonGroup
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
85
|
+
const isInsideInputGroup = computed(() => inputGroup.isInsideInputGroup)
|
|
86
|
+
const inputGroupPosition = computed(() => {
|
|
87
|
+
if (!inputGroup.isInsideInputGroup) return undefined
|
|
88
|
+
|
|
89
|
+
void inputGroup.childOrder.value
|
|
90
|
+
|
|
91
|
+
return inputGroup.getPosition(childId)
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
const group = () => buttonGroup.groupProps
|
|
95
|
+
|
|
96
|
+
const computedSize = computed(() => {
|
|
97
|
+
if (inputGroup.isInsideInputGroup && inputGroup.groupProps?.size) {
|
|
98
|
+
return inputGroup.groupProps.size
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return group().size ?? resolvedProps.value.size
|
|
102
|
+
})
|
|
103
|
+
const computedFlat = computed(() => group().flat ?? resolvedProps.value.flat)
|
|
104
|
+
const computedColor = computed(() => resolvedProps.value.color ?? group().color)
|
|
105
|
+
const computedGhost = computed(() => group().ghost ?? resolvedProps.value.ghost)
|
|
106
|
+
const computedLight = computed(() => group().light ?? resolvedProps.value.light)
|
|
107
|
+
const computedOutlined = computed(() => group().outlined ?? resolvedProps.value.outlined)
|
|
108
|
+
const computedDisabled = computed(() => props.disabled || group().disabled || !!inputGroup.groupProps?.disabled)
|
|
70
109
|
const computedIconLeft = computed(() => props.icon || props.iconLeft)
|
|
71
110
|
|
|
72
111
|
const attrs = useAttrs()
|
|
@@ -81,15 +120,17 @@ const computedProps = computed(() => ({
|
|
|
81
120
|
outlined: unref(computedOutlined),
|
|
82
121
|
disabled: unref(computedDisabled),
|
|
83
122
|
loading: props.loading,
|
|
84
|
-
block:
|
|
85
|
-
glow:
|
|
123
|
+
block: resolvedProps.value.block,
|
|
124
|
+
glow: resolvedProps.value.glow,
|
|
86
125
|
iconLeft: unref(computedIconLeft),
|
|
87
126
|
iconRight: props.iconRight,
|
|
88
|
-
rounded:
|
|
127
|
+
rounded: resolvedProps.value.rounded,
|
|
89
128
|
}))
|
|
90
129
|
|
|
91
130
|
const { className, classes, styles } = useTheme('Button', {}, computedProps, {
|
|
92
131
|
isButtonGroup,
|
|
132
|
+
isInsideInputGroup,
|
|
133
|
+
inputGroupPosition,
|
|
93
134
|
})
|
|
94
135
|
|
|
95
136
|
const { focus, blur } = useInteractive(elRef)
|
|
@@ -105,9 +146,9 @@ defineExpose({ focus, blur })
|
|
|
105
146
|
:class="[
|
|
106
147
|
className,
|
|
107
148
|
$style['button'],
|
|
108
|
-
(glow && !computedDisabled && !loading) ? $style['button--glow'] : '',
|
|
149
|
+
(resolvedProps.glow && !computedDisabled && !loading) ? $style['button--glow'] : '',
|
|
109
150
|
classes.wrapper,
|
|
110
|
-
{ 'w-full': block }
|
|
151
|
+
{ 'w-full': resolvedProps.block }
|
|
111
152
|
]"
|
|
112
153
|
:style="styles"
|
|
113
154
|
:aria-busy="loading ? 'true' : null"
|
|
@@ -147,45 +188,47 @@ defineExpose({ focus, blur })
|
|
|
147
188
|
</component>
|
|
148
189
|
</template>
|
|
149
190
|
|
|
150
|
-
<style
|
|
191
|
+
<style scoped module>
|
|
151
192
|
.button {
|
|
152
193
|
color: var(--x-button-text);
|
|
153
194
|
background-color: var(--x-button-bg);
|
|
154
195
|
border-color: var(--x-button-border);
|
|
196
|
+
}
|
|
155
197
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
198
|
+
.button--glow {
|
|
199
|
+
box-shadow: 0 0 #000, 0 0 #000, 0 10px 15px -3px var(--x-button-glow), 0 4px 6px -4px var(--x-button-glow);
|
|
200
|
+
}
|
|
159
201
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
202
|
+
.button:hover {
|
|
203
|
+
color: var(--x-button-text-hover, var(--x-button-text));
|
|
204
|
+
background-color: var(--x-button-bg-hover, var(--x-button-bg));
|
|
205
|
+
border-color: var(--x-button-border-hover, var(--x-button-border));
|
|
206
|
+
}
|
|
165
207
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
208
|
+
.button:active {
|
|
209
|
+
color: var(--x-button-text-active, var(--x-button-text));
|
|
210
|
+
background-color: var(--x-button-bg-active, var(--x-button-bg));
|
|
211
|
+
border-color: var(--x-button-border-active, var(--x-button-border));
|
|
212
|
+
}
|
|
171
213
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
214
|
+
:global(.dark) .button,
|
|
215
|
+
.button:global(.dark) {
|
|
216
|
+
color: var(--x-button-dark-text, var(--x-button-text));
|
|
217
|
+
background-color: var(--x-button-dark-bg, var(--x-button-bg));
|
|
218
|
+
border-color: var(--x-button-dark-border, var(--x-button-border));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:global(.dark) .button:hover,
|
|
222
|
+
.button:global(.dark):hover {
|
|
223
|
+
color: var(--x-button-dark-text-hover, var(--x-button-dark-text, var(--x-button-text)));
|
|
224
|
+
background-color: var(--x-button-dark-bg-hover, var(--x-button-dark-bg, var(--x-button-bg)));
|
|
225
|
+
border-color: var(--x-button-dark-border-hover, var(--x-button-dark-border, var(--x-button-border)));
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
:global(.dark) .button:active,
|
|
229
|
+
.button:global(.dark):active {
|
|
230
|
+
color: var(--x-button-dark-text-active, var(--x-button-dark-text));
|
|
231
|
+
background-color: var(--x-button-dark-bg-active, var(--x-button-dark-bg, var(--x-button-bg)));
|
|
232
|
+
border-color: var(--x-button-dark-border-active, var(--x-button-dark-border, var(--x-button-border)));
|
|
190
233
|
}
|
|
191
234
|
</style>
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { variantBooleanProps } from '../../common/props'
|
|
3
|
+
|
|
2
4
|
const buttonGroupProps = {
|
|
3
5
|
...useCommon.props(),
|
|
4
6
|
...useColors.props(),
|
|
5
7
|
...useInteractive.props(),
|
|
8
|
+
...variantBooleanProps(),
|
|
6
9
|
tag: {
|
|
7
10
|
type: String,
|
|
8
11
|
default: 'div',
|
|
9
12
|
},
|
|
10
|
-
outlined: Boolean,
|
|
11
|
-
rounded: Boolean,
|
|
12
|
-
ghost: Boolean,
|
|
13
|
-
light: Boolean,
|
|
14
|
-
flat: Boolean,
|
|
15
13
|
}
|
|
16
14
|
|
|
17
15
|
export type ButtonGroupProps = ExtractPublicPropTypes<typeof buttonGroupProps>
|
|
@@ -35,19 +33,21 @@ export default {
|
|
|
35
33
|
<script setup lang="ts">
|
|
36
34
|
import { provide, type ExtractPublicPropTypes } from 'vue'
|
|
37
35
|
import { useTheme, type ThemeComponent } from '../../composables/useTheme'
|
|
36
|
+
import { useResolvedComponentProps } from '../../composables/resolveComponentDefaults'
|
|
38
37
|
import { useCommon } from '../../composables/useCommon'
|
|
39
38
|
import { useColors } from '../../composables/useColors'
|
|
40
39
|
import { useInteractive } from '../../composables/useInteractive'
|
|
41
40
|
import { injectButtonGroupKey } from '../../composables/keys'
|
|
42
41
|
|
|
43
42
|
const props = defineProps(buttonGroupProps)
|
|
43
|
+
const resolvedProps = useResolvedComponentProps('ButtonGroup', props)
|
|
44
44
|
|
|
45
45
|
provide(injectButtonGroupKey, {
|
|
46
46
|
groupProps: props,
|
|
47
47
|
isButtonGroup: true,
|
|
48
48
|
})
|
|
49
49
|
|
|
50
|
-
const { className, classes, styles } = useTheme('ButtonGroup', {},
|
|
50
|
+
const { className, classes, styles } = useTheme('ButtonGroup', {}, resolvedProps)
|
|
51
51
|
</script>
|
|
52
52
|
|
|
53
53
|
<template>
|
|
@@ -57,7 +57,7 @@ const { className, classes, styles } = useTheme('ButtonGroup', {}, props)
|
|
|
57
57
|
:class="[
|
|
58
58
|
className,
|
|
59
59
|
$style['button-group'],
|
|
60
|
-
rounded ? $style['button-group--rounded'] : '',
|
|
60
|
+
resolvedProps.rounded ? $style['button-group--rounded'] : '',
|
|
61
61
|
classes.wrapper
|
|
62
62
|
]"
|
|
63
63
|
>
|
|
@@ -65,26 +65,24 @@ const { className, classes, styles } = useTheme('ButtonGroup', {}, props)
|
|
|
65
65
|
</component>
|
|
66
66
|
</template>
|
|
67
67
|
|
|
68
|
-
<style
|
|
69
|
-
.button-group {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
68
|
+
<style module>
|
|
69
|
+
.button-group:not(.button-group--rounded) > :first-child {
|
|
70
|
+
border-start-start-radius: var(--radius-md);
|
|
71
|
+
border-end-start-radius: var(--radius-md);
|
|
72
|
+
}
|
|
74
73
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
.button-group:not(.button-group--rounded) > :last-child {
|
|
75
|
+
border-start-end-radius: var(--radius-md);
|
|
76
|
+
border-end-end-radius: var(--radius-md);
|
|
77
|
+
}
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
.button-group--rounded > :first-of-type {
|
|
80
|
+
border-start-start-radius: 9999px;
|
|
81
|
+
border-end-start-radius: 9999px;
|
|
82
|
+
}
|
|
84
83
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
84
|
+
.button-group--rounded > :last-child {
|
|
85
|
+
border-start-end-radius: 9999px;
|
|
86
|
+
border-end-end-radius: 9999px;
|
|
89
87
|
}
|
|
90
88
|
</style>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ButtonTheme } from '../Button.vue'
|
|
2
|
+
import { inputGroupRadiusClasses } from '../../../common/inputGroupRadius'
|
|
2
3
|
|
|
3
4
|
const theme: ButtonTheme = {
|
|
4
5
|
classes: {
|
|
@@ -6,10 +7,14 @@ const theme: ButtonTheme = {
|
|
|
6
7
|
const classes = ['relative transition duration-150 focus-visible:outline-secondary-300 outline-transparent outline outline-1 outline-offset-2 inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden align-middle active:!shadow-none border appearance-none shrink-0']
|
|
7
8
|
|
|
8
9
|
// radius
|
|
9
|
-
if (
|
|
10
|
+
if (data.isInsideInputGroup) {
|
|
11
|
+
classes.push(...inputGroupRadiusClasses(data.inputGroupPosition))
|
|
12
|
+
} else if (!data.isButtonGroup) {
|
|
13
|
+
classes.push(props.rounded ? 'rounded-full' : 'rounded-md')
|
|
14
|
+
}
|
|
10
15
|
|
|
11
16
|
// shadow
|
|
12
|
-
if (!props.flat && !props.light && !props.ghost && !props.disabled && !props.loading) classes.push('shadow-
|
|
17
|
+
if (!props.flat && !props.light && !props.ghost && !props.disabled && !props.loading) classes.push('shadow-xs')
|
|
13
18
|
|
|
14
19
|
// size
|
|
15
20
|
if (props.size === 'xs') classes.push(slots.default ? `py-1 text-xs ${props.icon ? 'px-2' : 'px-2'}` : 'leading-none p-1')
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ButtonTheme } from '../Button.vue'
|
|
2
|
+
import { inputGroupRadiusClasses } from '../../../common/inputGroupRadius'
|
|
2
3
|
|
|
3
4
|
const theme: ButtonTheme = {
|
|
4
5
|
classes: {
|
|
@@ -6,8 +7,13 @@ const theme: ButtonTheme = {
|
|
|
6
7
|
const classes = ['relative transition duration-150 inline-flex whitespace-nowrap overflow-hidden align-top appearance-none text-sm active:shadow-none border !leading-[1.28572] tracking-wide font-light']
|
|
7
8
|
|
|
8
9
|
// radius
|
|
9
|
-
if (
|
|
10
|
-
|
|
10
|
+
if (data.isInsideInputGroup) {
|
|
11
|
+
classes.push(...inputGroupRadiusClasses(data.inputGroupPosition))
|
|
12
|
+
} else if (!data.isButtonGroup) {
|
|
13
|
+
classes.push(props.rounded ? 'rounded-full' : '')
|
|
14
|
+
} else {
|
|
15
|
+
classes.push('!rounded-none')
|
|
16
|
+
}
|
|
11
17
|
|
|
12
18
|
// size
|
|
13
19
|
if (slots.default) {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { optionalBooleanProp } from '../../common/props'
|
|
3
|
+
|
|
2
4
|
const cardProps = {
|
|
3
5
|
tag: {
|
|
4
6
|
type: String,
|
|
5
7
|
default: 'div',
|
|
6
8
|
},
|
|
7
|
-
flat:
|
|
9
|
+
flat: optionalBooleanProp(),
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
export type CardProps = ExtractPublicPropTypes<typeof cardProps>
|
|
@@ -2,7 +2,7 @@ import type { CardTheme } from '../Card.vue'
|
|
|
2
2
|
|
|
3
3
|
const theme: CardTheme = {
|
|
4
4
|
classes: {
|
|
5
|
-
wrapper: ({ props }) => `bg-white dark:bg-secondary-800 overflow-hidden rounded-md ${props.flat ? '' : 'shadow'}`,
|
|
5
|
+
wrapper: ({ props }) => `bg-white dark:bg-secondary-800 overflow-hidden rounded-md ${props.flat ? '' : 'shadow-sm'}`,
|
|
6
6
|
},
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { optionalBooleanProp } from '../../common/props'
|
|
3
|
+
|
|
2
4
|
const carouselEffects = ['slide'] as const
|
|
3
5
|
|
|
4
6
|
export type CarouselEffect = typeof carouselEffects[number]
|
|
5
7
|
|
|
6
8
|
const carouselProps = {
|
|
7
|
-
autoplay:
|
|
9
|
+
autoplay: optionalBooleanProp(),
|
|
8
10
|
delay: {
|
|
9
11
|
type: Number,
|
|
10
12
|
default: 5000,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { optionalBooleanProp } from '../../common/props'
|
|
3
|
+
|
|
2
4
|
const checkboxProps = {
|
|
3
5
|
...useCommon.props(),
|
|
4
6
|
...useColors.props('primary'),
|
|
@@ -6,7 +8,7 @@ const checkboxProps = {
|
|
|
6
8
|
...useInputtable.props(),
|
|
7
9
|
value: [String, Number],
|
|
8
10
|
indeterminate: Boolean,
|
|
9
|
-
glow:
|
|
11
|
+
glow: optionalBooleanProp(),
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export type CheckboxProps = ExtractPublicPropTypes<typeof checkboxProps>
|
|
@@ -175,10 +177,8 @@ defineExpose({ focus, blur, toggle, reset, validate, setError })
|
|
|
175
177
|
</label>
|
|
176
178
|
</template>
|
|
177
179
|
|
|
178
|
-
<style
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
}
|
|
180
|
+
<style module>
|
|
181
|
+
.checkbox--glow {
|
|
182
|
+
box-shadow: 0 0 #000, 0 0 #000, 0 10px 15px -3px var(--x-checkbox-glow), 0 4px 6px -4px var(--x-checkbox-glow);
|
|
183
|
+
}
|
|
184
184
|
</style>
|
|
@@ -11,7 +11,7 @@ const theme: CheckboxTheme = {
|
|
|
11
11
|
},
|
|
12
12
|
|
|
13
13
|
box: ({ props }) => {
|
|
14
|
-
const classes = ['rounded-
|
|
14
|
+
const classes = ['rounded-xs flex justify-center items-center shrink-0 border border-[color:var(--x-checkbox-border)] bg-[color:var(--x-checkbox-bg)] dark:border-[color:var(--x-checkbox-dark-border)] dark:bg-[color:var(--x-checkbox-dark-bg)] mt-0.5']
|
|
15
15
|
|
|
16
16
|
if (props.size === 'xs' || props.size === 'sm') classes.push('h-3 w-3')
|
|
17
17
|
else if (props.size === 'xl') classes.push('h-5 w-5')
|
|
@@ -129,7 +129,8 @@ const datepickerProps = {
|
|
|
129
129
|
export type DatepickerProps = ExtractPublicPropTypes<typeof datepickerProps>
|
|
130
130
|
|
|
131
131
|
type InternalClasses = 'wrapper'
|
|
132
|
-
|
|
132
|
+
type InternalExtraData = { isInsideInputGroup: boolean; }
|
|
133
|
+
export interface DatepickerTheme extends ThemeComponent<DatepickerProps, InternalClasses, InternalExtraData> {}
|
|
133
134
|
|
|
134
135
|
export default {
|
|
135
136
|
name: 'XDatepicker',
|
|
@@ -137,12 +138,14 @@ export default {
|
|
|
137
138
|
</script>
|
|
138
139
|
|
|
139
140
|
<script setup lang="ts">
|
|
140
|
-
import { ref, type ExtractPublicPropTypes, type PropType } from 'vue'
|
|
141
|
+
import { ref, inject, computed, type ExtractPublicPropTypes, type PropType } from 'vue'
|
|
141
142
|
import { useMutationObserver } from '@vueuse/core'
|
|
142
143
|
import { useCommon } from '../../composables/useCommon'
|
|
143
144
|
import { useInputtable } from '../../composables/useInputtable'
|
|
144
145
|
import { useInteractive } from '../../composables/useInteractive'
|
|
145
146
|
import { useTheme, type ThemeComponent } from '../../composables/useTheme'
|
|
147
|
+
import type { Size } from '../../composables/useCommon'
|
|
148
|
+
import { injectInputGroupKey } from '../../composables/keys'
|
|
146
149
|
import XInput from '../input/Input.vue'
|
|
147
150
|
import type { Locale } from 'date-fns'
|
|
148
151
|
import VueDatepicker, { type ModelValue, type TimeModel, type VueDatePickerProps } from '@vuepic/vue-datepicker'
|
|
@@ -150,8 +153,24 @@ import '@vuepic/vue-datepicker/dist/main.css'
|
|
|
150
153
|
|
|
151
154
|
const props = defineProps(datepickerProps)
|
|
152
155
|
|
|
156
|
+
const inputGroup = inject(injectInputGroupKey, {
|
|
157
|
+
registerChild: () => {},
|
|
158
|
+
unregisterChild: () => {},
|
|
159
|
+
registerInput: () => {},
|
|
160
|
+
unregisterInput: () => {},
|
|
161
|
+
getPosition: () => 'only',
|
|
162
|
+
childOrder: computed(() => []),
|
|
163
|
+
isInsideInputGroup: false,
|
|
164
|
+
groupProps: {},
|
|
165
|
+
})
|
|
166
|
+
|
|
153
167
|
const emit = defineEmits(useInputtable.emits())
|
|
154
168
|
|
|
169
|
+
const isInsideInputGroup = computed(() => inputGroup.isInsideInputGroup)
|
|
170
|
+
const computedSize = computed((): Size => inputGroup.groupProps?.size ?? props.size)
|
|
171
|
+
const isDisabled = computed(() => props.disabled || props.loading || !!inputGroup.groupProps?.disabled)
|
|
172
|
+
const computedLabel = computed(() => (inputGroup.isInsideInputGroup ? undefined : props.label))
|
|
173
|
+
|
|
155
174
|
const inputRef = ref<InstanceType<typeof XInput> | null>(null)
|
|
156
175
|
|
|
157
176
|
function onSelect(value: Date | Date[]) {
|
|
@@ -183,17 +202,20 @@ useMutationObserver(htmlNode, (mutations) => {
|
|
|
183
202
|
attributes: true,
|
|
184
203
|
})
|
|
185
204
|
|
|
205
|
+
const { hideFooterInternal } = useInputtable(props, { focus, emit })
|
|
206
|
+
|
|
186
207
|
defineExpose({ focus, blur, validate })
|
|
187
208
|
|
|
188
|
-
const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
209
|
+
const { styles, classes, className } = useTheme('Datepicker', {}, props, { isInsideInputGroup })
|
|
189
210
|
</script>
|
|
190
211
|
|
|
191
212
|
<template>
|
|
192
213
|
<div
|
|
193
|
-
:style="[styles, { '--dp-clear-btn-top':
|
|
214
|
+
:style="[styles, { '--dp-clear-btn-top': computedLabel ? '2.75rem' : '1.2rem' }]"
|
|
194
215
|
:class="[
|
|
195
216
|
className,
|
|
196
217
|
classes.wrapper,
|
|
218
|
+
isInsideInputGroup ? 'flex-1 min-w-0' : '',
|
|
197
219
|
]"
|
|
198
220
|
>
|
|
199
221
|
<vue-datepicker
|
|
@@ -301,10 +323,11 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
301
323
|
ref="inputRef"
|
|
302
324
|
:readonly="textInput === false || readonly"
|
|
303
325
|
:model-value="value"
|
|
304
|
-
:label="
|
|
305
|
-
:size="
|
|
306
|
-
:disabled="
|
|
326
|
+
:label="computedLabel"
|
|
327
|
+
:size="computedSize"
|
|
328
|
+
:disabled="isDisabled"
|
|
307
329
|
:helper="helper"
|
|
330
|
+
:is-inside-input-group="isInsideInputGroup"
|
|
308
331
|
icon-right="calendar"
|
|
309
332
|
:loading="loading"
|
|
310
333
|
data-1p-ignore
|
|
@@ -313,7 +336,7 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
313
336
|
:tooltip="tooltip"
|
|
314
337
|
:placeholder="placeholder"
|
|
315
338
|
:required="required"
|
|
316
|
-
:hide-footer="
|
|
339
|
+
:hide-footer="hideFooterInternal"
|
|
317
340
|
@keydown.prevent.enter="onEnter"
|
|
318
341
|
@keydown.tab="onTab"
|
|
319
342
|
/>
|
|
@@ -326,8 +349,7 @@ const { styles, classes, className } = useTheme('Datepicker', {}, props)
|
|
|
326
349
|
</div>
|
|
327
350
|
</template>
|
|
328
351
|
|
|
329
|
-
<style
|
|
330
|
-
/* stylelint-disable selector-class-pattern */
|
|
352
|
+
<style>
|
|
331
353
|
.dp__menu {
|
|
332
354
|
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
|
|
333
355
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { optionalBooleanProp } from '../../common/props'
|
|
3
|
+
|
|
2
4
|
const dividerProps = {
|
|
3
5
|
label: String,
|
|
4
|
-
vertical:
|
|
6
|
+
vertical: optionalBooleanProp(),
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
export type DividerProps = ExtractPublicPropTypes<typeof dividerProps>
|
|
@@ -40,7 +42,6 @@ const { styles, classes, className } = useTheme('Divider', {}, props)
|
|
|
40
42
|
></div>
|
|
41
43
|
<div
|
|
42
44
|
v-if="label"
|
|
43
|
-
class="font-medium text-sm text-secondary-600 dark:text-secondary-300"
|
|
44
45
|
:class="[
|
|
45
46
|
classes.label,
|
|
46
47
|
{
|
|
@@ -4,9 +4,9 @@ const theme: DividerTheme = {
|
|
|
4
4
|
classes: {
|
|
5
5
|
wrapper: ({ props }) => `flex justify-center items-center ${props.vertical ? 'h-full flex-col' : 'w-full'}`,
|
|
6
6
|
|
|
7
|
-
label: '
|
|
7
|
+
label: 'text-xs text-secondary-400',
|
|
8
8
|
|
|
9
|
-
line: 'bg-secondary-200 dark:bg-secondary-700
|
|
9
|
+
line: 'bg-secondary-200 dark:bg-secondary-700 grow',
|
|
10
10
|
},
|
|
11
11
|
}
|
|
12
12
|
|