@indielayer/ui 1.18.1 → 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/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/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 +81 -239
- 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 +57 -16
- 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 -696
- 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,497 +1,329 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
case "end":
|
|
45
|
-
t[m] += f * (c && g ? -1 : 1);
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
return t;
|
|
1
|
+
import { clamp as e, evaluate as t, getAlignment as n, getAlignmentAxis as r, getAlignmentSides as i, getAxisLength as a, getExpandedPlacements as o, getOppositeAlignmentPlacement as s, getOppositeAxis as c, getOppositeAxisPlacements as l, getOppositePlacement as u, getPaddingObject as d, getSide as f, getSideAxis as p, max as m, min as h, placements as g, rectToClientRect as _ } from "../../../../../@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@floating-ui+core@1.5.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
3
|
+
function v(e, t, i) {
|
|
4
|
+
let { reference: o, floating: s } = e, c = p(t), l = r(t), u = a(l), d = f(t), m = c === "y", h = o.x + o.width / 2 - s.width / 2, g = o.y + o.height / 2 - s.height / 2, _ = o[u] / 2 - s[u] / 2, v;
|
|
5
|
+
switch (d) {
|
|
6
|
+
case "top":
|
|
7
|
+
v = {
|
|
8
|
+
x: h,
|
|
9
|
+
y: o.y - s.height
|
|
10
|
+
};
|
|
11
|
+
break;
|
|
12
|
+
case "bottom":
|
|
13
|
+
v = {
|
|
14
|
+
x: h,
|
|
15
|
+
y: o.y + o.height
|
|
16
|
+
};
|
|
17
|
+
break;
|
|
18
|
+
case "right":
|
|
19
|
+
v = {
|
|
20
|
+
x: o.x + o.width,
|
|
21
|
+
y: g
|
|
22
|
+
};
|
|
23
|
+
break;
|
|
24
|
+
case "left":
|
|
25
|
+
v = {
|
|
26
|
+
x: o.x - s.width,
|
|
27
|
+
y: g
|
|
28
|
+
};
|
|
29
|
+
break;
|
|
30
|
+
default: v = {
|
|
31
|
+
x: o.x,
|
|
32
|
+
y: o.y
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
switch (n(t)) {
|
|
36
|
+
case "start":
|
|
37
|
+
v[l] -= _ * (i && m ? -1 : 1);
|
|
38
|
+
break;
|
|
39
|
+
case "end":
|
|
40
|
+
v[l] += _ * (i && m ? -1 : 1);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
return v;
|
|
49
44
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
}, y && a <= 50) {
|
|
95
|
-
a++, typeof y == "object" && (y.placement && (f = y.placement), y.rects && (g = y.rects === !0 ? await m.getElementRects({
|
|
96
|
-
reference: e,
|
|
97
|
-
floating: i,
|
|
98
|
-
strategy: n
|
|
99
|
-
}) : y.rects), {
|
|
100
|
-
x: u,
|
|
101
|
-
y: r
|
|
102
|
-
} = I(g, f, l)), x = -1;
|
|
103
|
-
continue;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
x: u,
|
|
108
|
-
y: r,
|
|
109
|
-
placement: f,
|
|
110
|
-
strategy: n,
|
|
111
|
-
middlewareData: t
|
|
112
|
-
};
|
|
45
|
+
var y = async (e, t, n) => {
|
|
46
|
+
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = a.filter(Boolean), c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
47
|
+
reference: e,
|
|
48
|
+
floating: t,
|
|
49
|
+
strategy: i
|
|
50
|
+
}), { x: u, y: d } = v(l, r, c), f = r, p = {}, m = 0;
|
|
51
|
+
for (let n = 0; n < s.length; n++) {
|
|
52
|
+
let { name: a, fn: h } = s[n], { x: g, y: _, data: y, reset: b } = await h({
|
|
53
|
+
x: u,
|
|
54
|
+
y: d,
|
|
55
|
+
initialPlacement: r,
|
|
56
|
+
placement: f,
|
|
57
|
+
strategy: i,
|
|
58
|
+
middlewareData: p,
|
|
59
|
+
rects: l,
|
|
60
|
+
platform: o,
|
|
61
|
+
elements: {
|
|
62
|
+
reference: e,
|
|
63
|
+
floating: t
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
if (u = g ?? u, d = _ ?? d, p = {
|
|
67
|
+
...p,
|
|
68
|
+
[a]: {
|
|
69
|
+
...p[a],
|
|
70
|
+
...y
|
|
71
|
+
}
|
|
72
|
+
}, b && m <= 50) {
|
|
73
|
+
m++, typeof b == "object" && (b.placement && (f = b.placement), b.rects && (l = b.rects === !0 ? await o.getElementRects({
|
|
74
|
+
reference: e,
|
|
75
|
+
floating: t,
|
|
76
|
+
strategy: i
|
|
77
|
+
}) : b.rects), {x: u, y: d} = v(l, f, c)), n = -1;
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
x: u,
|
|
83
|
+
y: d,
|
|
84
|
+
placement: f,
|
|
85
|
+
strategy: i,
|
|
86
|
+
middlewareData: p
|
|
87
|
+
};
|
|
113
88
|
};
|
|
114
|
-
async function
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
} : m.reference, h = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d.floating)), P = await (s.isElement == null ? void 0 : s.isElement(h)) ? await (s.getScale == null ? void 0 : s.getScale(h)) || {
|
|
140
|
-
x: 1,
|
|
141
|
-
y: 1
|
|
142
|
-
} : {
|
|
143
|
-
x: 1,
|
|
144
|
-
y: 1
|
|
145
|
-
}, y = z(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
146
|
-
rect: p,
|
|
147
|
-
offsetParent: h,
|
|
148
|
-
strategy: l
|
|
149
|
-
}) : p);
|
|
150
|
-
return {
|
|
151
|
-
top: (v.top - y.top + a.top) / P.y,
|
|
152
|
-
bottom: (y.bottom - v.bottom + a.bottom) / P.y,
|
|
153
|
-
left: (v.left - y.left + a.left) / P.x,
|
|
154
|
-
right: (y.right - v.right + a.right) / P.x
|
|
155
|
-
};
|
|
89
|
+
async function b(e, n) {
|
|
90
|
+
n === void 0 && (n = {});
|
|
91
|
+
let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: f = "floating", altBoundary: p = !1, padding: m = 0 } = t(n, e), h = d(m), g = s[p ? f === "floating" ? "reference" : "floating" : f], v = _(await a.getClippingRect({
|
|
92
|
+
element: await (a.isElement == null ? void 0 : a.isElement(g)) ?? !0 ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
93
|
+
boundary: l,
|
|
94
|
+
rootBoundary: u,
|
|
95
|
+
strategy: c
|
|
96
|
+
})), y = f === "floating" ? {
|
|
97
|
+
...o.floating,
|
|
98
|
+
x: r,
|
|
99
|
+
y: i
|
|
100
|
+
} : o.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), x = await (a.isElement == null ? void 0 : a.isElement(b)) && await (a.getScale == null ? void 0 : a.getScale(b)) || {
|
|
101
|
+
x: 1,
|
|
102
|
+
y: 1
|
|
103
|
+
}, S = _(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
104
|
+
rect: y,
|
|
105
|
+
offsetParent: b,
|
|
106
|
+
strategy: c
|
|
107
|
+
}) : y);
|
|
108
|
+
return {
|
|
109
|
+
top: (v.top - S.top + h.top) / x.y,
|
|
110
|
+
bottom: (S.bottom - v.bottom + h.bottom) / x.y,
|
|
111
|
+
left: (v.left - S.left + h.left) / x.x,
|
|
112
|
+
right: (S.right - v.right + h.right) / x.x
|
|
113
|
+
};
|
|
156
114
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
let b = A ? A[h] : 0;
|
|
180
|
-
(!b || !await (m.isElement == null ? void 0 : m.isElement(A))) && (b = d.floating[h] || s.floating[a]);
|
|
181
|
-
const D = P / 2 - y / 2, C = b / 2 - x[a] / 2 - 1, O = _(r[v], C), T = _(r[p], C), R = O, F = b - x[a] - T, S = b / 2 - x[a] / 2 + D, k = W(R, S, F), E = !l.arrow && M(n) != null && S != k && s.reference[a] / 2 - (S < R ? O : T) - x[a] / 2 < 0, L = E ? S < R ? S - R : S - F : 0;
|
|
182
|
-
return {
|
|
183
|
-
[t]: f[t] + L,
|
|
184
|
-
data: {
|
|
185
|
-
[t]: k,
|
|
186
|
-
centerOffset: S - k - L,
|
|
187
|
-
...E && {
|
|
188
|
-
alignmentOffset: L
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
reset: E
|
|
192
|
-
};
|
|
193
|
-
}
|
|
115
|
+
var x = (i) => ({
|
|
116
|
+
name: "arrow",
|
|
117
|
+
options: i,
|
|
118
|
+
async fn(o) {
|
|
119
|
+
let { x: s, y: c, placement: l, rects: u, platform: f, elements: p, middlewareData: m } = o, { element: g, padding: _ = 0 } = t(i, o) || {};
|
|
120
|
+
if (g == null) return {};
|
|
121
|
+
let v = d(_), y = {
|
|
122
|
+
x: s,
|
|
123
|
+
y: c
|
|
124
|
+
}, b = r(l), x = a(b), S = await f.getDimensions(g), C = b === "y", w = C ? "top" : "left", T = C ? "bottom" : "right", E = C ? "clientHeight" : "clientWidth", D = u.reference[x] + u.reference[b] - y[b] - u.floating[x], O = y[b] - u.reference[b], k = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(g)), A = k ? k[E] : 0;
|
|
125
|
+
(!A || !await (f.isElement == null ? void 0 : f.isElement(k))) && (A = p.floating[E] || u.floating[x]);
|
|
126
|
+
let j = D / 2 - O / 2, M = A / 2 - S[x] / 2 - 1, N = h(v[w], M), P = h(v[T], M), F = N, I = A - S[x] - P, L = A / 2 - S[x] / 2 + j, R = e(F, L, I), z = !m.arrow && n(l) != null && L != R && u.reference[x] / 2 - (L < F ? N : P) - S[x] / 2 < 0, B = z ? L < F ? L - F : L - I : 0;
|
|
127
|
+
return {
|
|
128
|
+
[b]: y[b] + B,
|
|
129
|
+
data: {
|
|
130
|
+
[b]: R,
|
|
131
|
+
centerOffset: L - R - B,
|
|
132
|
+
...z && { alignmentOffset: B }
|
|
133
|
+
},
|
|
134
|
+
reset: z
|
|
135
|
+
};
|
|
136
|
+
}
|
|
194
137
|
});
|
|
195
|
-
function
|
|
196
|
-
|
|
138
|
+
function S(e, t, r) {
|
|
139
|
+
return (e ? [...r.filter((t) => n(t) === e), ...r.filter((t) => n(t) !== e)] : r.filter((e) => f(e) === e)).filter((r) => e ? n(r) === e || (t ? s(r) !== r : !1) : !0);
|
|
197
140
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
fallbackPlacements: f,
|
|
283
|
-
fallbackStrategy: t = "bestFit",
|
|
284
|
-
fallbackAxisSideDirection: a = "none",
|
|
285
|
-
flipAlignment: x = !0,
|
|
286
|
-
...w
|
|
287
|
-
} = V(e, i);
|
|
288
|
-
if ((c = s.arrow) != null && c.alignmentOffset)
|
|
289
|
-
return {};
|
|
290
|
-
const v = B(n), p = B(d) === d, h = await (l.isRTL == null ? void 0 : l.isRTL(g.floating)), P = f || (p || !x ? [N(d)] : Q(d));
|
|
291
|
-
!f && a !== "none" && P.push(...U(d, x, a, h));
|
|
292
|
-
const y = [d, ...P], A = await H(i, w), b = [];
|
|
293
|
-
let D = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
294
|
-
if (u && b.push(A[v]), r) {
|
|
295
|
-
const R = G(n, m, h);
|
|
296
|
-
b.push(A[R[0]], A[R[1]]);
|
|
297
|
-
}
|
|
298
|
-
if (D = [...D, {
|
|
299
|
-
placement: n,
|
|
300
|
-
overflows: b
|
|
301
|
-
}], !b.every((R) => R <= 0)) {
|
|
302
|
-
var C, O;
|
|
303
|
-
const R = (((C = s.flip) == null ? void 0 : C.index) || 0) + 1, F = y[R];
|
|
304
|
-
if (F)
|
|
305
|
-
return {
|
|
306
|
-
data: {
|
|
307
|
-
index: R,
|
|
308
|
-
overflows: D
|
|
309
|
-
},
|
|
310
|
-
reset: {
|
|
311
|
-
placement: F
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
let S = (O = D.filter((k) => k.overflows[0] <= 0).sort((k, E) => k.overflows[1] - E.overflows[1])[0]) == null ? void 0 : O.placement;
|
|
315
|
-
if (!S)
|
|
316
|
-
switch (t) {
|
|
317
|
-
case "bestFit": {
|
|
318
|
-
var T;
|
|
319
|
-
const k = (T = D.map((E) => [E.placement, E.overflows.filter((L) => L > 0).reduce((L, K) => L + K, 0)]).sort((E, L) => E[1] - L[1])[0]) == null ? void 0 : T[0];
|
|
320
|
-
k && (S = k);
|
|
321
|
-
break;
|
|
322
|
-
}
|
|
323
|
-
case "initialPlacement":
|
|
324
|
-
S = d;
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
if (n !== S)
|
|
328
|
-
return {
|
|
329
|
-
reset: {
|
|
330
|
-
placement: S
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
return {};
|
|
335
|
-
}
|
|
336
|
-
};
|
|
141
|
+
var C = function(e) {
|
|
142
|
+
return e === void 0 && (e = {}), {
|
|
143
|
+
name: "autoPlacement",
|
|
144
|
+
options: e,
|
|
145
|
+
async fn(r) {
|
|
146
|
+
let { rects: a, middlewareData: o, placement: s, platform: c, elements: l } = r, { crossAxis: u = !1, alignment: d, allowedPlacements: p = g, autoAlignment: m = !0, ...h } = t(e, r), _ = d !== void 0 || p === g ? S(d || null, m, p) : p, v = await b(r, h), y = o.autoPlacement?.index || 0, x = _[y];
|
|
147
|
+
if (x == null) return {};
|
|
148
|
+
let C = i(x, a, await (c.isRTL == null ? void 0 : c.isRTL(l.floating)));
|
|
149
|
+
if (s !== x) return { reset: { placement: _[0] } };
|
|
150
|
+
let w = [
|
|
151
|
+
v[f(x)],
|
|
152
|
+
v[C[0]],
|
|
153
|
+
v[C[1]]
|
|
154
|
+
], T = [...o.autoPlacement?.overflows || [], {
|
|
155
|
+
placement: x,
|
|
156
|
+
overflows: w
|
|
157
|
+
}], E = _[y + 1];
|
|
158
|
+
if (E) return {
|
|
159
|
+
data: {
|
|
160
|
+
index: y + 1,
|
|
161
|
+
overflows: T
|
|
162
|
+
},
|
|
163
|
+
reset: { placement: E }
|
|
164
|
+
};
|
|
165
|
+
let D = T.map((e) => {
|
|
166
|
+
let t = n(e.placement);
|
|
167
|
+
return [
|
|
168
|
+
e.placement,
|
|
169
|
+
t && u ? e.overflows.slice(0, 2).reduce((e, t) => e + t, 0) : e.overflows[0],
|
|
170
|
+
e.overflows
|
|
171
|
+
];
|
|
172
|
+
}).sort((e, t) => e[1] - t[1]), O = D.filter((e) => e[2].slice(0, n(e[0]) ? 2 : 3).every((e) => e <= 0))[0]?.[0] || D[0][0];
|
|
173
|
+
return O === s ? {} : {
|
|
174
|
+
data: {
|
|
175
|
+
index: y + 1,
|
|
176
|
+
overflows: T
|
|
177
|
+
},
|
|
178
|
+
reset: { placement: O }
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
}, w = function(e) {
|
|
183
|
+
return e === void 0 && (e = {}), {
|
|
184
|
+
name: "flip",
|
|
185
|
+
options: e,
|
|
186
|
+
async fn(n) {
|
|
187
|
+
var r;
|
|
188
|
+
let { placement: a, middlewareData: s, rects: c, initialPlacement: d, platform: p, elements: m } = n, { mainAxis: h = !0, crossAxis: g = !0, fallbackPlacements: _, fallbackStrategy: v = "bestFit", fallbackAxisSideDirection: y = "none", flipAlignment: x = !0, ...S } = t(e, n);
|
|
189
|
+
if ((r = s.arrow) != null && r.alignmentOffset) return {};
|
|
190
|
+
let C = f(a), w = f(d) === d, T = await (p.isRTL == null ? void 0 : p.isRTL(m.floating)), E = _ || (w || !x ? [u(d)] : o(d));
|
|
191
|
+
!_ && y !== "none" && E.push(...l(d, x, y, T));
|
|
192
|
+
let D = [d, ...E], O = await b(n, S), k = [], A = s.flip?.overflows || [];
|
|
193
|
+
if (h && k.push(O[C]), g) {
|
|
194
|
+
let e = i(a, c, T);
|
|
195
|
+
k.push(O[e[0]], O[e[1]]);
|
|
196
|
+
}
|
|
197
|
+
if (A = [...A, {
|
|
198
|
+
placement: a,
|
|
199
|
+
overflows: k
|
|
200
|
+
}], !k.every((e) => e <= 0)) {
|
|
201
|
+
let e = (s.flip?.index || 0) + 1, t = D[e];
|
|
202
|
+
if (t) return {
|
|
203
|
+
data: {
|
|
204
|
+
index: e,
|
|
205
|
+
overflows: A
|
|
206
|
+
},
|
|
207
|
+
reset: { placement: t }
|
|
208
|
+
};
|
|
209
|
+
let n = A.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
210
|
+
if (!n) switch (v) {
|
|
211
|
+
case "bestFit": {
|
|
212
|
+
let e = A.map((e) => [e.placement, e.overflows.filter((e) => e > 0).reduce((e, t) => e + t, 0)]).sort((e, t) => e[1] - t[1])[0]?.[0];
|
|
213
|
+
e && (n = e);
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
case "initialPlacement":
|
|
217
|
+
n = d;
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
if (a !== n) return { reset: { placement: n } };
|
|
221
|
+
}
|
|
222
|
+
return {};
|
|
223
|
+
}
|
|
224
|
+
};
|
|
337
225
|
};
|
|
338
|
-
async function
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
...r
|
|
357
|
-
};
|
|
358
|
-
return d && typeof a == "number" && (t = d === "end" ? a * -1 : a), l ? {
|
|
359
|
-
x: t * u,
|
|
360
|
-
y: f * g
|
|
361
|
-
} : {
|
|
362
|
-
x: f * g,
|
|
363
|
-
y: t * u
|
|
364
|
-
};
|
|
226
|
+
async function T(e, r) {
|
|
227
|
+
let { placement: i, platform: a, elements: o } = e, s = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), c = f(i), l = n(i), u = p(i) === "y", d = ["left", "top"].includes(c) ? -1 : 1, m = s && u ? -1 : 1, h = t(r, e), { mainAxis: g, crossAxis: _, alignmentAxis: v } = typeof h == "number" ? {
|
|
228
|
+
mainAxis: h,
|
|
229
|
+
crossAxis: 0,
|
|
230
|
+
alignmentAxis: null
|
|
231
|
+
} : {
|
|
232
|
+
mainAxis: 0,
|
|
233
|
+
crossAxis: 0,
|
|
234
|
+
alignmentAxis: null,
|
|
235
|
+
...h
|
|
236
|
+
};
|
|
237
|
+
return l && typeof v == "number" && (_ = l === "end" ? v * -1 : v), u ? {
|
|
238
|
+
x: _ * m,
|
|
239
|
+
y: g * d
|
|
240
|
+
} : {
|
|
241
|
+
x: g * d,
|
|
242
|
+
y: _ * m
|
|
243
|
+
};
|
|
365
244
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
},
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
platform: n,
|
|
449
|
-
elements: s
|
|
450
|
-
} = i, {
|
|
451
|
-
apply: m = () => {
|
|
452
|
-
},
|
|
453
|
-
...d
|
|
454
|
-
} = V(e, i), l = await H(i, d), g = B(c), u = M(c), r = j(c) === "y", {
|
|
455
|
-
width: f,
|
|
456
|
-
height: t
|
|
457
|
-
} = o.floating;
|
|
458
|
-
let a, x;
|
|
459
|
-
g === "top" || g === "bottom" ? (a = g, x = u === (await (n.isRTL == null ? void 0 : n.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = g, a = u === "end" ? "top" : "bottom");
|
|
460
|
-
const w = t - l[a], v = f - l[x], p = !i.middlewareData.shift;
|
|
461
|
-
let h = w, P = v;
|
|
462
|
-
if (r) {
|
|
463
|
-
const A = f - l.left - l.right;
|
|
464
|
-
P = u || p ? _(v, A) : A;
|
|
465
|
-
} else {
|
|
466
|
-
const A = t - l.top - l.bottom;
|
|
467
|
-
h = u || p ? _(w, A) : A;
|
|
468
|
-
}
|
|
469
|
-
if (p && !u) {
|
|
470
|
-
const A = $(l.left, 0), b = $(l.right, 0), D = $(l.top, 0), C = $(l.bottom, 0);
|
|
471
|
-
r ? P = f - 2 * (A !== 0 || b !== 0 ? A + b : $(l.left, l.right)) : h = t - 2 * (D !== 0 || C !== 0 ? D + C : $(l.top, l.bottom));
|
|
472
|
-
}
|
|
473
|
-
await m({
|
|
474
|
-
...i,
|
|
475
|
-
availableWidth: P,
|
|
476
|
-
availableHeight: h
|
|
477
|
-
});
|
|
478
|
-
const y = await n.getDimensions(s.floating);
|
|
479
|
-
return f !== y.width || t !== y.height ? {
|
|
480
|
-
reset: {
|
|
481
|
-
rects: !0
|
|
482
|
-
}
|
|
483
|
-
} : {};
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
};
|
|
487
|
-
export {
|
|
488
|
-
se as arrow,
|
|
489
|
-
le as autoPlacement,
|
|
490
|
-
oe as computePosition,
|
|
491
|
-
H as detectOverflow,
|
|
492
|
-
ae as flip,
|
|
493
|
-
ce as offset,
|
|
494
|
-
z as rectToClientRect,
|
|
495
|
-
re as shift,
|
|
496
|
-
fe as size
|
|
245
|
+
var E = function(e) {
|
|
246
|
+
return e === void 0 && (e = 0), {
|
|
247
|
+
name: "offset",
|
|
248
|
+
options: e,
|
|
249
|
+
async fn(t) {
|
|
250
|
+
var n;
|
|
251
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await T(t, e);
|
|
252
|
+
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
253
|
+
x: r + s.x,
|
|
254
|
+
y: i + s.y,
|
|
255
|
+
data: {
|
|
256
|
+
...s,
|
|
257
|
+
placement: a
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
}, D = function(n) {
|
|
263
|
+
return n === void 0 && (n = {}), {
|
|
264
|
+
name: "shift",
|
|
265
|
+
options: n,
|
|
266
|
+
async fn(r) {
|
|
267
|
+
let { x: i, y: a, placement: o } = r, { mainAxis: s = !0, crossAxis: l = !1, limiter: u = { fn: (e) => {
|
|
268
|
+
let { x: t, y: n } = e;
|
|
269
|
+
return {
|
|
270
|
+
x: t,
|
|
271
|
+
y: n
|
|
272
|
+
};
|
|
273
|
+
} }, ...d } = t(n, r), m = {
|
|
274
|
+
x: i,
|
|
275
|
+
y: a
|
|
276
|
+
}, h = await b(r, d), g = p(f(o)), _ = c(g), v = m[_], y = m[g];
|
|
277
|
+
if (s) {
|
|
278
|
+
let t = _ === "y" ? "top" : "left", n = _ === "y" ? "bottom" : "right", r = v + h[t], i = v - h[n];
|
|
279
|
+
v = e(r, v, i);
|
|
280
|
+
}
|
|
281
|
+
if (l) {
|
|
282
|
+
let t = g === "y" ? "top" : "left", n = g === "y" ? "bottom" : "right", r = y + h[t], i = y - h[n];
|
|
283
|
+
y = e(r, y, i);
|
|
284
|
+
}
|
|
285
|
+
let x = u.fn({
|
|
286
|
+
...r,
|
|
287
|
+
[_]: v,
|
|
288
|
+
[g]: y
|
|
289
|
+
});
|
|
290
|
+
return {
|
|
291
|
+
...x,
|
|
292
|
+
data: {
|
|
293
|
+
x: x.x - i,
|
|
294
|
+
y: x.y - a
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
}, O = function(e) {
|
|
300
|
+
return e === void 0 && (e = {}), {
|
|
301
|
+
name: "size",
|
|
302
|
+
options: e,
|
|
303
|
+
async fn(r) {
|
|
304
|
+
let { placement: i, rects: a, platform: o, elements: s } = r, { apply: c = () => {}, ...l } = t(e, r), u = await b(r, l), d = f(i), g = n(i), _ = p(i) === "y", { width: v, height: y } = a.floating, x, S;
|
|
305
|
+
d === "top" || d === "bottom" ? (x = d, S = g === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (S = d, x = g === "end" ? "top" : "bottom");
|
|
306
|
+
let C = y - u[x], w = v - u[S], T = !r.middlewareData.shift, E = C, D = w;
|
|
307
|
+
if (_) {
|
|
308
|
+
let e = v - u.left - u.right;
|
|
309
|
+
D = g || T ? h(w, e) : e;
|
|
310
|
+
} else {
|
|
311
|
+
let e = y - u.top - u.bottom;
|
|
312
|
+
E = g || T ? h(C, e) : e;
|
|
313
|
+
}
|
|
314
|
+
if (T && !g) {
|
|
315
|
+
let e = m(u.left, 0), t = m(u.right, 0), n = m(u.top, 0), r = m(u.bottom, 0);
|
|
316
|
+
_ ? D = v - 2 * (e !== 0 || t !== 0 ? e + t : m(u.left, u.right)) : E = y - 2 * (n !== 0 || r !== 0 ? n + r : m(u.top, u.bottom));
|
|
317
|
+
}
|
|
318
|
+
await c({
|
|
319
|
+
...r,
|
|
320
|
+
availableWidth: D,
|
|
321
|
+
availableHeight: E
|
|
322
|
+
});
|
|
323
|
+
let O = await o.getDimensions(s.floating);
|
|
324
|
+
return v !== O.width || y !== O.height ? { reset: { rects: !0 } } : {};
|
|
325
|
+
}
|
|
326
|
+
};
|
|
497
327
|
};
|
|
328
|
+
//#endregion
|
|
329
|
+
export { x as arrow, C as autoPlacement, y as computePosition, b as detectOverflow, w as flip, E as offset, D as shift, O as size };
|