@indielayer/ui 2.0.0 → 2.1.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/App.vue +19 -4
- package/docs/assets/css/tailwind.css +7 -1
- package/docs/components/Cookies.vue +3 -1
- package/docs/components/common/CodePreview.vue +1 -1
- package/docs/components/common/DocsCopyPage.vue +200 -0
- package/docs/components/common/DocumentPage.vue +76 -23
- package/docs/components/toolbar/ToolbarColorToggle.vue +29 -18
- package/docs/components/toolbar/ToolbarSearch.vue +4 -4
- package/docs/composables/useDocMeta.ts +63 -4
- package/docs/icons.ts +3 -0
- package/docs/main.ts +25 -26
- package/docs/pages/component/accordion/index.vue +2 -2
- package/docs/pages/component/alert/index.vue +2 -2
- package/docs/pages/component/avatar/index.vue +4 -4
- package/docs/pages/component/badge/index.vue +2 -2
- package/docs/pages/component/breadcrumbs/index.vue +2 -2
- package/docs/pages/component/button/button-group.vue +3 -3
- package/docs/pages/component/button/index.vue +14 -7
- package/docs/pages/component/button/tooltip.vue +10 -0
- package/docs/pages/component/card/index.vue +2 -2
- package/docs/pages/component/carousel/index.vue +2 -2
- package/docs/pages/component/checkbox/index.vue +5 -5
- package/docs/pages/component/container/index.vue +2 -2
- package/docs/pages/component/datepicker/index.vue +2 -2
- package/docs/pages/component/divider/index.vue +4 -4
- package/docs/pages/component/drawer/index.vue +2 -2
- package/docs/pages/component/empty/index.vue +3 -3
- package/docs/pages/component/form/index.vue +2 -2
- package/docs/pages/component/formGroup/index.vue +2 -2
- package/docs/pages/component/infiniteLoader/index.vue +3 -3
- package/docs/pages/component/input/index.vue +5 -5
- package/docs/pages/component/inputGroup/index.vue +3 -3
- package/docs/pages/component/inputGroup/validation.vue +6 -1
- package/docs/pages/component/link/index.vue +2 -2
- package/docs/pages/component/loader/index.vue +2 -2
- package/docs/pages/component/menu/index.vue +2 -2
- package/docs/pages/component/modal/index.vue +3 -3
- package/docs/pages/component/notifications/index.vue +2 -2
- package/docs/pages/component/pagination/index.vue +2 -2
- package/docs/pages/component/popover/index.vue +2 -2
- package/docs/pages/component/popover/usage.vue +14 -0
- package/docs/pages/component/progress/index.vue +3 -3
- package/docs/pages/component/qrCode/index.vue +2 -2
- package/docs/pages/component/radio/index.vue +3 -3
- package/docs/pages/component/scroll/index.vue +3 -3
- package/docs/pages/component/select/index.vue +5 -5
- package/docs/pages/component/skeleton/index.vue +2 -2
- package/docs/pages/component/slider/index.vue +2 -2
- package/docs/pages/component/spacer/index.vue +2 -2
- package/docs/pages/component/spinner/index.vue +3 -3
- package/docs/pages/component/table/index.vue +4 -4
- package/docs/pages/component/tabs/index.vue +2 -2
- package/docs/pages/component/tabs/usage.vue +26 -0
- package/docs/pages/component/tag/index.vue +2 -2
- package/docs/pages/component/textarea/index.vue +4 -4
- package/docs/pages/component/toggle/index.vue +4 -4
- package/docs/pages/component/upload/index.vue +2 -2
- package/docs/pages/component/upload/usage.vue +1 -0
- package/docs/pages/component/virtualGrid/index.vue +2 -2
- package/docs/pages/component/virtualList/index.vue +3 -3
- package/docs/pages/icons.vue +2 -2
- package/docs/router/index.ts +39 -44
- package/docs/search/components.json +1 -1
- package/docs/search/index.json +1 -1
- package/lib/common/buttonGroupRadius.d.ts +3 -0
- package/lib/common/buttonGroupRadius.js +6 -0
- package/lib/common/props.d.ts +1 -1
- package/lib/common/props.js +10 -9
- package/lib/components/accordion/Accordion.vue.d.ts +42 -9
- package/lib/components/accordion/Accordion.vue_vue_type_script_setup_true_lang.js +18 -6
- package/lib/components/accordion/AccordionItem.vue.d.ts +33 -6
- package/lib/components/accordion/AccordionItem.vue_vue_type_script_setup_true_lang.js +31 -6
- package/lib/components/alert/Alert.vue.d.ts +27 -6
- package/lib/components/alert/Alert.vue_vue_type_script_setup_true_lang.js +20 -6
- package/lib/components/avatar/Avatar.vue.d.ts +45 -9
- package/lib/components/avatar/Avatar.vue_vue_type_script_setup_true_lang.js +17 -6
- package/lib/components/badge/Badge.vue.d.ts +54 -9
- package/lib/components/badge/Badge.vue_vue_type_script_setup_true_lang.js +26 -9
- package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +30 -6
- package/lib/components/breadcrumbs/Breadcrumbs.vue_vue_type_script_setup_true_lang.js +13 -5
- package/lib/components/button/Button.js +2 -2
- package/lib/components/button/Button.vue.d.ts +138 -28
- package/lib/components/button/Button.vue_vue_type_script_setup_true_lang.js +192 -70
- package/lib/components/button/ButtonGroup.js +4 -5
- package/lib/components/button/ButtonGroup.vue.d.ts +54 -10
- package/lib/components/button/ButtonGroup.vue_vue_type_script_setup_true_lang.js +30 -19
- package/lib/components/button/theme/Button.base.theme.js +6 -5
- package/lib/components/button/theme/Button.carbon.theme.js +6 -5
- package/lib/components/card/Card.vue.d.ts +3 -0
- package/lib/components/card/Card.vue_vue_type_script_setup_true_lang.js +4 -2
- package/lib/components/carousel/Carousel.vue.d.ts +21 -3
- package/lib/components/carousel/Carousel.vue_vue_type_script_setup_true_lang.js +23 -5
- package/lib/components/carousel/CarouselSlide.js +2 -2
- package/lib/components/carousel/CarouselSlide.vue.d.ts +3 -0
- package/lib/components/carousel/CarouselSlide.vue_vue_type_script_setup_true_lang.js +3 -1
- package/lib/components/carousel/{CarouselSlide.vue_vue_type_style_index_0_scoped_e90d2127_lang.module.js → CarouselSlide.vue_vue_type_style_index_0_scoped_4f559831_lang.module.js} +1 -1
- package/lib/components/checkbox/Checkbox.vue.d.ts +198 -45
- package/lib/components/checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +20 -3
- package/lib/components/container/Container.vue.d.ts +6 -0
- package/lib/components/container/Container.vue_vue_type_script_setup_true_lang.js +5 -2
- package/lib/components/datepicker/Datepicker.vue.d.ts +462 -36
- package/lib/components/datepicker/Datepicker.vue_vue_type_script_setup_true_lang.js +294 -153
- package/lib/components/divider/Divider.vue.d.ts +12 -3
- package/lib/components/divider/Divider.vue_vue_type_script_setup_true_lang.js +6 -2
- package/lib/components/drawer/Drawer.vue.d.ts +39 -6
- package/lib/components/drawer/Drawer.vue_vue_type_script_setup_true_lang.js +30 -7
- package/lib/components/empty/Empty.vue.d.ts +30 -6
- package/lib/components/empty/Empty.vue_vue_type_script_setup_true_lang.js +17 -4
- package/lib/components/form/Form.vue.d.ts +48 -9
- package/lib/components/form/Form.vue_vue_type_script_setup_true_lang.js +34 -7
- package/lib/components/formGroup/FormGroup.vue.d.ts +171 -39
- package/lib/components/formGroup/FormGroup.vue_vue_type_script_setup_true_lang.js +15 -9
- package/lib/components/icon/Icon.vue.d.ts +9 -0
- package/lib/components/icon/Icon.vue_vue_type_script_setup_true_lang.js +6 -3
- package/lib/components/image/Image.vue.d.ts +12 -3
- package/lib/components/image/Image.vue_vue_type_script_setup_true_lang.js +5 -1
- package/lib/components/index.js +18 -18
- package/lib/components/input/Input.vue.d.ts +291 -66
- package/lib/components/input/Input.vue_vue_type_script_setup_true_lang.js +53 -15
- package/lib/components/inputFooter/InputFooter.vue.d.ts +48 -12
- package/lib/components/inputFooter/InputFooter.vue_vue_type_script_setup_true_lang.js +18 -5
- package/lib/components/inputGroup/InputGroup.vue.d.ts +171 -39
- package/lib/components/inputGroup/InputGroup.vue_vue_type_script_setup_true_lang.js +6 -1
- package/lib/components/label/Label.vue.d.ts +78 -18
- package/lib/components/label/Label.vue_vue_type_script_setup_true_lang.js +28 -8
- package/lib/components/link/Link.js +2 -2
- package/lib/components/link/Link.vue.d.ts +18 -3
- package/lib/components/link/Link.vue_vue_type_script_setup_true_lang.js +10 -5
- package/lib/components/loader/Loader.vue.d.ts +30 -6
- package/lib/components/loader/Loader.vue_vue_type_script_setup_true_lang.js +11 -3
- package/lib/components/menu/Menu.vue.d.ts +51 -9
- package/lib/components/menu/Menu.vue_vue_type_script_setup_true_lang.js +24 -8
- package/lib/components/menu/MenuItem.js +2 -2
- package/lib/components/menu/MenuItem.vue.d.ts +198 -45
- package/lib/components/menu/MenuItem.vue_vue_type_script_setup_true_lang.js +84 -23
- package/lib/components/menu/{MenuItem.vue_vue_type_style_index_0_scoped_2a6b7341_lang.module.js → MenuItem.vue_vue_type_style_index_0_scoped_5aebaff3_lang.module.js} +1 -1
- package/lib/components/modal/Modal.vue.d.ts +177 -39
- package/lib/components/modal/Modal.vue_vue_type_script_setup_true_lang.js +104 -23
- package/lib/components/notifications/Notifications.vue.d.ts +24 -0
- package/lib/components/notifications/Notifications.vue_vue_type_script_setup_true_lang.js +39 -12
- package/lib/components/pagination/Pagination.vue.d.ts +12 -0
- package/lib/components/pagination/Pagination.vue_vue_type_script_setup_true_lang.js +8 -4
- package/lib/components/pagination/PaginationItem.vue.d.ts +18 -3
- package/lib/components/pagination/PaginationItem.vue_vue_type_script_setup_true_lang.js +8 -3
- package/lib/components/popover/Popover.vue.d.ts +204 -45
- package/lib/components/popover/Popover.vue_vue_type_script_setup_true_lang.js +157 -66
- package/lib/components/popover/PopoverContainer.vue.d.ts +3 -0
- package/lib/components/popover/PopoverContainer.vue_vue_type_script_setup_true_lang.js +3 -1
- package/lib/components/popover/PopoverContentBoundary.js +5 -0
- package/lib/components/popover/PopoverContentBoundary.vue.d.ts +9 -0
- package/lib/components/popover/PopoverContentBoundary.vue_vue_type_script_setup_true_lang.js +18 -0
- package/lib/components/popover/theme/PopoverContainer.base.theme.js +1 -1
- package/lib/components/progress/Progress.vue.d.ts +9 -0
- package/lib/components/progress/Progress.vue_vue_type_script_setup_true_lang.js +7 -4
- package/lib/components/qrCode/QrCode.vue.d.ts +24 -3
- package/lib/components/qrCode/QrCode.vue_vue_type_script_setup_true_lang.js +13 -5
- package/lib/components/radio/Radio.vue.d.ts +186 -42
- package/lib/components/radio/Radio.vue_vue_type_script_setup_true_lang.js +10 -2
- package/lib/components/radioButton/RadioButton.vue.d.ts +186 -42
- package/lib/components/radioButton/RadioButton.vue_vue_type_script_setup_true_lang.js +9 -1
- package/lib/components/scroll/Scroll.vue.d.ts +3 -0
- package/lib/components/scroll/Scroll.vue_vue_type_script_setup_true_lang.js +9 -4
- package/lib/components/select/Select.vue.d.ts +633 -144
- package/lib/components/select/Select.vue_vue_type_script_setup_true_lang.js +224 -189
- package/lib/components/skeleton/Skeleton.vue.d.ts +6 -0
- package/lib/components/skeleton/Skeleton.vue_vue_type_script_setup_true_lang.js +5 -2
- package/lib/components/slider/Slider.js +1 -1
- package/lib/components/slider/Slider.vue.d.ts +180 -39
- package/lib/components/slider/Slider.vue_vue_type_script_setup_true_lang.js +14 -3
- package/lib/components/spinner/Spinner.vue.d.ts +6 -0
- package/lib/components/spinner/Spinner.vue_vue_type_script_setup_true_lang.js +3 -1
- package/lib/components/stepper/Stepper.vue.d.ts +120 -24
- package/lib/components/stepper/Stepper.vue_vue_type_script_setup_true_lang.js +63 -15
- package/lib/components/tab/Tab.vue.d.ts +112 -31
- package/lib/components/tab/Tab.vue_vue_type_script_setup_true_lang.js +166 -95
- package/lib/components/tab/TabGroup.vue.d.ts +47 -12
- package/lib/components/tab/TabGroup.vue_vue_type_script_setup_true_lang.js +93 -49
- package/lib/components/tab/theme/Tab.base.theme.js +6 -6
- package/lib/components/tab/theme/Tab.carbon.theme.js +6 -6
- package/lib/components/tab/theme/TabGroup.base.theme.js +7 -7
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +3 -3
- package/lib/components/table/Table.vue.d.ts +45 -9
- package/lib/components/table/Table.vue_vue_type_script_setup_true_lang.js +82 -27
- package/lib/components/table/TableCell.vue.d.ts +54 -12
- package/lib/components/table/TableCell.vue_vue_type_script_setup_true_lang.js +23 -8
- package/lib/components/table/TableHead.vue_vue_type_script_setup_true_lang.js +2 -1
- package/lib/components/table/TableHeader.vue.d.ts +18 -3
- package/lib/components/table/TableHeader.vue_vue_type_script_setup_true_lang.js +10 -4
- package/lib/components/table/TableRow.vue.d.ts +15 -3
- package/lib/components/table/TableRow.vue_vue_type_script_setup_true_lang.js +10 -5
- package/lib/components/tag/Tag.vue.d.ts +33 -6
- package/lib/components/tag/Tag.vue_vue_type_script_setup_true_lang.js +21 -7
- package/lib/components/textarea/Textarea.vue.d.ts +237 -54
- package/lib/components/textarea/Textarea.vue_vue_type_script_setup_true_lang.js +38 -13
- package/lib/components/themeProvider/ThemeProvider.vue.d.ts +10 -4
- package/lib/components/themeProvider/ThemeProvider.vue_vue_type_script_setup_true_lang.js +6 -1
- package/lib/components/toggle/Toggle.vue.d.ts +174 -39
- package/lib/components/toggle/Toggle.vue_vue_type_script_setup_true_lang.js +5 -1
- package/lib/components/tooltip/ToggleTip.vue.d.ts +24 -6
- package/lib/components/tooltip/ToggleTip.vue_vue_type_script_setup_true_lang.js +9 -2
- package/lib/components/tooltip/Tooltip.vue.d.ts +30 -6
- package/lib/components/tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +16 -4
- package/lib/components/upload/Upload.vue.d.ts +249 -57
- package/lib/components/upload/Upload.vue_vue_type_script_setup_true_lang.js +156 -125
- package/lib/components/upload/fileAccept.d.ts +6 -0
- package/lib/components/upload/fileAccept.js +17 -0
- package/lib/composables/useColors.d.ts +1 -0
- package/lib/composables/useColors.js +2 -1
- package/lib/composables/useCommon.d.ts +1 -0
- package/lib/composables/useCommon.js +2 -1
- package/lib/composables/useFocusTrap.js +1 -1
- package/lib/composables/useInputtable.d.ts +45 -10
- package/lib/composables/useInputtable.js +56 -14
- package/lib/composables/useInteractive.d.ts +13 -3
- package/lib/composables/useInteractive.js +14 -4
- package/lib/index.js +12 -12
- package/lib/index.umd.js +9 -10
- package/lib/themes/base/styles.d.ts +1 -1
- package/lib/themes/base/styles.js +1 -1
- package/lib/themes/carbon/styles.d.ts +1 -1
- package/lib/themes/carbon/styles.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue.d.ts +27 -16
- package/lib/virtual/components/infiniteLoader/InfiniteLoader.vue_vue_type_script_setup_true_lang.js +25 -5
- package/lib/virtual/components/virtualGrid/VirtualGrid.vue.d.ts +108 -86
- package/lib/virtual/components/virtualGrid/VirtualGrid.vue_vue_type_script_setup_true_lang.js +91 -21
- package/lib/virtual/components/virtualList/VirtualList.vue.d.ts +62 -48
- package/lib/virtual/components/virtualList/VirtualList.vue_vue_type_script_setup_true_lang.js +64 -13
- package/lib/virtual/components/virtualList/useDynamicRowHeight.js +4 -3
- package/package.json +5 -3
- package/src/common/buttonGroupRadius.ts +16 -0
- package/src/common/props.ts +10 -9
- package/src/components/accordion/Accordion.vue +20 -4
- package/src/components/accordion/AccordionItem.vue +28 -3
- package/src/components/alert/Alert.vue +22 -6
- package/src/components/avatar/Avatar.vue +20 -5
- package/src/components/badge/Badge.vue +24 -5
- package/src/components/breadcrumbs/Breadcrumbs.vue +15 -5
- package/src/components/button/Button.vue +140 -5
- package/src/components/button/ButtonGroup.vue +41 -25
- package/src/components/button/__tests__/ Button.spec.ts +41 -0
- package/src/components/button/__tests__/ ButtonGroup.spec.ts +32 -0
- package/src/components/button/theme/Button.base.theme.ts +4 -1
- package/src/components/button/theme/Button.carbon.theme.ts +5 -4
- package/src/components/card/Card.vue +10 -2
- package/src/components/carousel/Carousel.vue +22 -2
- package/src/components/carousel/CarouselSlide.vue +6 -0
- package/src/components/checkbox/Checkbox.vue +22 -3
- package/src/components/container/Container.vue +10 -1
- package/src/components/datepicker/Datepicker.vue +466 -101
- package/src/components/datepicker/__tests__/Datepicker.spec.ts +31 -0
- package/src/components/divider/Divider.vue +9 -3
- package/src/components/drawer/Drawer.vue +27 -2
- package/src/components/empty/Empty.vue +18 -3
- package/src/components/form/Form.vue +32 -3
- package/src/components/formGroup/FormGroup.vue +12 -0
- package/src/components/icon/Icon.vue +4 -1
- package/src/components/image/Image.vue +8 -2
- package/src/components/input/Input.vue +54 -12
- package/src/components/inputFooter/InputFooter.vue +21 -6
- package/src/components/inputGroup/InputGroup.vue +12 -1
- package/src/components/label/Label.vue +31 -7
- package/src/components/link/Link.vue +16 -5
- package/src/components/loader/Loader.vue +10 -2
- package/src/components/menu/Menu.vue +23 -5
- package/src/components/menu/MenuItem.vue +78 -17
- package/src/components/modal/Modal.vue +90 -15
- package/src/components/notifications/Notifications.vue +23 -0
- package/src/components/notifications/__tests__/Notifications.spec.ts +44 -4
- package/src/components/pagination/Pagination.vue +9 -1
- package/src/components/pagination/PaginationItem.vue +11 -2
- package/src/components/popover/Popover.vue +113 -18
- package/src/components/popover/PopoverContainer.vue +9 -1
- package/src/components/popover/PopoverContentBoundary.vue +32 -0
- package/src/components/popover/__tests__/Popover.spec.ts +51 -0
- package/src/components/popover/theme/PopoverContainer.base.theme.ts +1 -1
- package/src/components/progress/Progress.vue +8 -3
- package/src/components/qrCode/QrCode.vue +9 -1
- package/src/components/radio/Radio.vue +16 -2
- package/src/components/radioButton/RadioButton.vue +15 -1
- package/src/components/scroll/Scroll.vue +15 -4
- package/src/components/select/Select.vue +53 -16
- package/src/components/skeleton/Skeleton.vue +3 -0
- package/src/components/slider/Slider.vue +15 -0
- package/src/components/spinner/Spinner.vue +2 -0
- package/src/components/stepper/Stepper.vue +57 -9
- package/src/components/tab/Tab.vue +153 -63
- package/src/components/tab/TabGroup.vue +110 -26
- package/src/components/tab/__tests__/Tab.spec.ts +53 -0
- package/src/components/tab/__tests__/TabGroup.spec.ts +113 -0
- package/src/components/tab/theme/Tab.base.theme.ts +24 -2
- package/src/components/tab/theme/Tab.carbon.theme.ts +30 -7
- package/src/components/tab/theme/TabGroup.base.theme.ts +12 -9
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +6 -2
- package/src/components/table/Table.vue +76 -19
- package/src/components/table/TableCell.vue +25 -6
- package/src/components/table/TableHead.vue +9 -2
- package/src/components/table/TableHeader.vue +16 -3
- package/src/components/table/TableRow.vue +17 -5
- package/src/components/tag/Tag.vue +22 -6
- package/src/components/textarea/Textarea.vue +40 -11
- package/src/components/themeProvider/ThemeProvider.vue +22 -7
- package/src/components/toggle/Toggle.vue +9 -1
- package/src/components/tooltip/ToggleTip.vue +12 -3
- package/src/components/tooltip/Tooltip.vue +19 -3
- package/src/components/upload/Upload.vue +46 -16
- package/src/components/upload/__tests__/fileAccept.spec.ts +39 -0
- package/src/components/upload/fileAccept.ts +29 -0
- package/src/composables/useColors.ts +1 -0
- package/src/composables/useCommon.ts +1 -0
- package/src/composables/useFocusTrap.ts +3 -1
- package/src/composables/useInputtable.ts +66 -10
- package/src/composables/useInteractive.ts +13 -3
- package/src/themes/base/styles.ts +2 -3
- package/src/themes/carbon/styles.ts +2 -3
- package/src/version.ts +1 -1
- package/src/virtual/components/infiniteLoader/InfiniteLoader.vue +33 -1
- package/src/virtual/components/virtualGrid/VirtualGrid.vue +104 -10
- package/src/virtual/components/virtualList/VirtualList.vue +73 -8
- package/src/virtual/components/virtualList/useDynamicRowHeight.ts +9 -2
- package/volar.d.ts +3 -0
- package/docs/layouts/simple.vue +0 -5
- package/lib/components/button/ButtonGroup.vue_vue_type_style_index_0_lang.module.js +0 -7
- /package/lib/components/button/{Button.vue_vue_type_style_index_0_scoped_4402fde2_lang.module.js → Button.vue_vue_type_style_index_0_scoped_486cb9c0_lang.module.js} +0 -0
- /package/lib/components/link/{Link.vue_vue_type_style_index_0_scoped_8e0e4d08_lang.module.js → Link.vue_vue_type_style_index_0_scoped_3ee61e03_lang.module.js} +0 -0
|
@@ -5,40 +5,85 @@ declare const toggleProps: {
|
|
|
5
5
|
modelValue: {
|
|
6
6
|
readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
|
|
7
7
|
readonly default: undefined;
|
|
8
|
+
readonly description: "Bound value (v-model).";
|
|
9
|
+
};
|
|
10
|
+
id: {
|
|
11
|
+
readonly type: StringConstructor;
|
|
12
|
+
readonly description: "Native id attribute for the input element.";
|
|
13
|
+
};
|
|
14
|
+
name: {
|
|
15
|
+
readonly type: StringConstructor;
|
|
16
|
+
readonly description: "Native name attribute for form submission.";
|
|
17
|
+
};
|
|
18
|
+
readonly: {
|
|
19
|
+
readonly type: BooleanConstructor;
|
|
20
|
+
readonly description: "Makes the field read-only without disabling it.";
|
|
21
|
+
};
|
|
22
|
+
required: {
|
|
23
|
+
readonly type: BooleanConstructor;
|
|
24
|
+
readonly description: "Marks the field as required for validation.";
|
|
8
25
|
};
|
|
9
|
-
id: StringConstructor;
|
|
10
|
-
name: StringConstructor;
|
|
11
|
-
readonly: BooleanConstructor;
|
|
12
|
-
required: BooleanConstructor;
|
|
13
26
|
validateOnInput: {
|
|
14
27
|
readonly type: BooleanConstructor;
|
|
15
28
|
readonly default: true;
|
|
29
|
+
readonly description: "Runs validation on each input event when true.";
|
|
30
|
+
};
|
|
31
|
+
label: {
|
|
32
|
+
readonly type: StringConstructor;
|
|
33
|
+
readonly description: "Visible label text for the field.";
|
|
34
|
+
};
|
|
35
|
+
helper: {
|
|
36
|
+
readonly type: StringConstructor;
|
|
37
|
+
readonly description: "Helper text shown below the field.";
|
|
38
|
+
};
|
|
39
|
+
error: {
|
|
40
|
+
readonly type: StringConstructor;
|
|
41
|
+
readonly description: "External error message; overrides rule errors when set.";
|
|
42
|
+
};
|
|
43
|
+
hideFooter: {
|
|
44
|
+
readonly type: BooleanConstructor;
|
|
45
|
+
readonly description: "Hides the footer area (helper / error).";
|
|
16
46
|
};
|
|
17
|
-
label: StringConstructor;
|
|
18
|
-
helper: StringConstructor;
|
|
19
|
-
error: StringConstructor;
|
|
20
|
-
hideFooter: BooleanConstructor;
|
|
21
47
|
rules: {
|
|
22
48
|
readonly type: ArrayConstructor;
|
|
23
49
|
readonly default: () => never[];
|
|
50
|
+
readonly description: "Validation rule functions or rule descriptors.";
|
|
51
|
+
};
|
|
52
|
+
tooltip: {
|
|
53
|
+
readonly type: StringConstructor;
|
|
54
|
+
readonly description: "Optional tooltip text next to the label.";
|
|
55
|
+
};
|
|
56
|
+
skipFormRegistry: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly description: "Skips registering this field with a parent x-form.";
|
|
59
|
+
};
|
|
60
|
+
disabled: {
|
|
61
|
+
readonly type: BooleanConstructor;
|
|
62
|
+
readonly description: "Disables interaction and applies disabled styling.";
|
|
63
|
+
};
|
|
64
|
+
loading: {
|
|
65
|
+
readonly type: BooleanConstructor;
|
|
66
|
+
readonly description: "Shows a loading indicator and blocks interaction.";
|
|
67
|
+
};
|
|
68
|
+
loadingLabel: {
|
|
69
|
+
readonly type: StringConstructor;
|
|
70
|
+
readonly description: "Accessible label announced while loading.";
|
|
24
71
|
};
|
|
25
|
-
tooltip: StringConstructor;
|
|
26
|
-
skipFormRegistry: BooleanConstructor;
|
|
27
|
-
disabled: BooleanConstructor;
|
|
28
|
-
loading: BooleanConstructor;
|
|
29
|
-
loadingLabel: StringConstructor;
|
|
30
72
|
loadingStatus: {
|
|
31
73
|
readonly type: import("vue").PropType<import("../loader/Loader.vue").LoaderStatus>;
|
|
32
74
|
readonly default: "active";
|
|
75
|
+
readonly description: "Loader visual status (for example active or indeterminate).";
|
|
33
76
|
};
|
|
34
77
|
color: {
|
|
35
78
|
readonly type: StringConstructor;
|
|
36
79
|
readonly default: string | undefined;
|
|
80
|
+
readonly description: "Theme or CSS color used for the control accents.";
|
|
37
81
|
};
|
|
38
82
|
size: {
|
|
39
83
|
readonly type: import("vue").PropType<import("../../composables/useCommon").Size>;
|
|
40
84
|
readonly default: "md";
|
|
41
85
|
readonly validator: (value: string) => boolean;
|
|
86
|
+
readonly description: "Control size. One of xs, sm, md, lg, xl.";
|
|
42
87
|
};
|
|
43
88
|
};
|
|
44
89
|
export type ToggleProps = ExtractPublicPropTypes<typeof toggleProps>;
|
|
@@ -50,40 +95,85 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
50
95
|
modelValue: {
|
|
51
96
|
readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
|
|
52
97
|
readonly default: undefined;
|
|
98
|
+
readonly description: "Bound value (v-model).";
|
|
99
|
+
};
|
|
100
|
+
id: {
|
|
101
|
+
readonly type: StringConstructor;
|
|
102
|
+
readonly description: "Native id attribute for the input element.";
|
|
103
|
+
};
|
|
104
|
+
name: {
|
|
105
|
+
readonly type: StringConstructor;
|
|
106
|
+
readonly description: "Native name attribute for form submission.";
|
|
107
|
+
};
|
|
108
|
+
readonly: {
|
|
109
|
+
readonly type: BooleanConstructor;
|
|
110
|
+
readonly description: "Makes the field read-only without disabling it.";
|
|
111
|
+
};
|
|
112
|
+
required: {
|
|
113
|
+
readonly type: BooleanConstructor;
|
|
114
|
+
readonly description: "Marks the field as required for validation.";
|
|
53
115
|
};
|
|
54
|
-
id: StringConstructor;
|
|
55
|
-
name: StringConstructor;
|
|
56
|
-
readonly: BooleanConstructor;
|
|
57
|
-
required: BooleanConstructor;
|
|
58
116
|
validateOnInput: {
|
|
59
117
|
readonly type: BooleanConstructor;
|
|
60
118
|
readonly default: true;
|
|
119
|
+
readonly description: "Runs validation on each input event when true.";
|
|
120
|
+
};
|
|
121
|
+
label: {
|
|
122
|
+
readonly type: StringConstructor;
|
|
123
|
+
readonly description: "Visible label text for the field.";
|
|
124
|
+
};
|
|
125
|
+
helper: {
|
|
126
|
+
readonly type: StringConstructor;
|
|
127
|
+
readonly description: "Helper text shown below the field.";
|
|
128
|
+
};
|
|
129
|
+
error: {
|
|
130
|
+
readonly type: StringConstructor;
|
|
131
|
+
readonly description: "External error message; overrides rule errors when set.";
|
|
132
|
+
};
|
|
133
|
+
hideFooter: {
|
|
134
|
+
readonly type: BooleanConstructor;
|
|
135
|
+
readonly description: "Hides the footer area (helper / error).";
|
|
61
136
|
};
|
|
62
|
-
label: StringConstructor;
|
|
63
|
-
helper: StringConstructor;
|
|
64
|
-
error: StringConstructor;
|
|
65
|
-
hideFooter: BooleanConstructor;
|
|
66
137
|
rules: {
|
|
67
138
|
readonly type: ArrayConstructor;
|
|
68
139
|
readonly default: () => never[];
|
|
140
|
+
readonly description: "Validation rule functions or rule descriptors.";
|
|
141
|
+
};
|
|
142
|
+
tooltip: {
|
|
143
|
+
readonly type: StringConstructor;
|
|
144
|
+
readonly description: "Optional tooltip text next to the label.";
|
|
145
|
+
};
|
|
146
|
+
skipFormRegistry: {
|
|
147
|
+
readonly type: BooleanConstructor;
|
|
148
|
+
readonly description: "Skips registering this field with a parent x-form.";
|
|
149
|
+
};
|
|
150
|
+
disabled: {
|
|
151
|
+
readonly type: BooleanConstructor;
|
|
152
|
+
readonly description: "Disables interaction and applies disabled styling.";
|
|
153
|
+
};
|
|
154
|
+
loading: {
|
|
155
|
+
readonly type: BooleanConstructor;
|
|
156
|
+
readonly description: "Shows a loading indicator and blocks interaction.";
|
|
157
|
+
};
|
|
158
|
+
loadingLabel: {
|
|
159
|
+
readonly type: StringConstructor;
|
|
160
|
+
readonly description: "Accessible label announced while loading.";
|
|
69
161
|
};
|
|
70
|
-
tooltip: StringConstructor;
|
|
71
|
-
skipFormRegistry: BooleanConstructor;
|
|
72
|
-
disabled: BooleanConstructor;
|
|
73
|
-
loading: BooleanConstructor;
|
|
74
|
-
loadingLabel: StringConstructor;
|
|
75
162
|
loadingStatus: {
|
|
76
163
|
readonly type: import("vue").PropType<import("../loader/Loader.vue").LoaderStatus>;
|
|
77
164
|
readonly default: "active";
|
|
165
|
+
readonly description: "Loader visual status (for example active or indeterminate).";
|
|
78
166
|
};
|
|
79
167
|
color: {
|
|
80
168
|
readonly type: StringConstructor;
|
|
81
169
|
readonly default: string | undefined;
|
|
170
|
+
readonly description: "Theme or CSS color used for the control accents.";
|
|
82
171
|
};
|
|
83
172
|
size: {
|
|
84
173
|
readonly type: import("vue").PropType<import("../../composables/useCommon").Size>;
|
|
85
174
|
readonly default: "md";
|
|
86
175
|
readonly validator: (value: string) => boolean;
|
|
176
|
+
readonly description: "Control size. One of xs, sm, md, lg, xl.";
|
|
87
177
|
};
|
|
88
178
|
}>, {
|
|
89
179
|
focus: () => void | undefined;
|
|
@@ -96,40 +186,85 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
96
186
|
modelValue: {
|
|
97
187
|
readonly type: import("vue").PropType<string | number | boolean | object | any[] | undefined>;
|
|
98
188
|
readonly default: undefined;
|
|
189
|
+
readonly description: "Bound value (v-model).";
|
|
190
|
+
};
|
|
191
|
+
id: {
|
|
192
|
+
readonly type: StringConstructor;
|
|
193
|
+
readonly description: "Native id attribute for the input element.";
|
|
194
|
+
};
|
|
195
|
+
name: {
|
|
196
|
+
readonly type: StringConstructor;
|
|
197
|
+
readonly description: "Native name attribute for form submission.";
|
|
198
|
+
};
|
|
199
|
+
readonly: {
|
|
200
|
+
readonly type: BooleanConstructor;
|
|
201
|
+
readonly description: "Makes the field read-only without disabling it.";
|
|
202
|
+
};
|
|
203
|
+
required: {
|
|
204
|
+
readonly type: BooleanConstructor;
|
|
205
|
+
readonly description: "Marks the field as required for validation.";
|
|
99
206
|
};
|
|
100
|
-
id: StringConstructor;
|
|
101
|
-
name: StringConstructor;
|
|
102
|
-
readonly: BooleanConstructor;
|
|
103
|
-
required: BooleanConstructor;
|
|
104
207
|
validateOnInput: {
|
|
105
208
|
readonly type: BooleanConstructor;
|
|
106
209
|
readonly default: true;
|
|
210
|
+
readonly description: "Runs validation on each input event when true.";
|
|
211
|
+
};
|
|
212
|
+
label: {
|
|
213
|
+
readonly type: StringConstructor;
|
|
214
|
+
readonly description: "Visible label text for the field.";
|
|
215
|
+
};
|
|
216
|
+
helper: {
|
|
217
|
+
readonly type: StringConstructor;
|
|
218
|
+
readonly description: "Helper text shown below the field.";
|
|
219
|
+
};
|
|
220
|
+
error: {
|
|
221
|
+
readonly type: StringConstructor;
|
|
222
|
+
readonly description: "External error message; overrides rule errors when set.";
|
|
223
|
+
};
|
|
224
|
+
hideFooter: {
|
|
225
|
+
readonly type: BooleanConstructor;
|
|
226
|
+
readonly description: "Hides the footer area (helper / error).";
|
|
107
227
|
};
|
|
108
|
-
label: StringConstructor;
|
|
109
|
-
helper: StringConstructor;
|
|
110
|
-
error: StringConstructor;
|
|
111
|
-
hideFooter: BooleanConstructor;
|
|
112
228
|
rules: {
|
|
113
229
|
readonly type: ArrayConstructor;
|
|
114
230
|
readonly default: () => never[];
|
|
231
|
+
readonly description: "Validation rule functions or rule descriptors.";
|
|
232
|
+
};
|
|
233
|
+
tooltip: {
|
|
234
|
+
readonly type: StringConstructor;
|
|
235
|
+
readonly description: "Optional tooltip text next to the label.";
|
|
236
|
+
};
|
|
237
|
+
skipFormRegistry: {
|
|
238
|
+
readonly type: BooleanConstructor;
|
|
239
|
+
readonly description: "Skips registering this field with a parent x-form.";
|
|
240
|
+
};
|
|
241
|
+
disabled: {
|
|
242
|
+
readonly type: BooleanConstructor;
|
|
243
|
+
readonly description: "Disables interaction and applies disabled styling.";
|
|
244
|
+
};
|
|
245
|
+
loading: {
|
|
246
|
+
readonly type: BooleanConstructor;
|
|
247
|
+
readonly description: "Shows a loading indicator and blocks interaction.";
|
|
248
|
+
};
|
|
249
|
+
loadingLabel: {
|
|
250
|
+
readonly type: StringConstructor;
|
|
251
|
+
readonly description: "Accessible label announced while loading.";
|
|
115
252
|
};
|
|
116
|
-
tooltip: StringConstructor;
|
|
117
|
-
skipFormRegistry: BooleanConstructor;
|
|
118
|
-
disabled: BooleanConstructor;
|
|
119
|
-
loading: BooleanConstructor;
|
|
120
|
-
loadingLabel: StringConstructor;
|
|
121
253
|
loadingStatus: {
|
|
122
254
|
readonly type: import("vue").PropType<import("../loader/Loader.vue").LoaderStatus>;
|
|
123
255
|
readonly default: "active";
|
|
256
|
+
readonly description: "Loader visual status (for example active or indeterminate).";
|
|
124
257
|
};
|
|
125
258
|
color: {
|
|
126
259
|
readonly type: StringConstructor;
|
|
127
260
|
readonly default: string | undefined;
|
|
261
|
+
readonly description: "Theme or CSS color used for the control accents.";
|
|
128
262
|
};
|
|
129
263
|
size: {
|
|
130
264
|
readonly type: import("vue").PropType<import("../../composables/useCommon").Size>;
|
|
131
265
|
readonly default: "md";
|
|
132
266
|
readonly validator: (value: string) => boolean;
|
|
267
|
+
readonly description: "Control size. One of xs, sm, md, lg, xl.";
|
|
133
268
|
};
|
|
134
269
|
}>> & Readonly<{
|
|
135
270
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
@@ -21,10 +21,14 @@ var S = { class: "flex items-center" }, C = [
|
|
|
21
21
|
...e.props("primary"),
|
|
22
22
|
...i.props(),
|
|
23
23
|
...o.props(),
|
|
24
|
-
glow: n()
|
|
24
|
+
glow: n("Soft colored glow when the toggle is on.")
|
|
25
25
|
}, E = /* @__PURE__ */ p({
|
|
26
26
|
name: "XToggle",
|
|
27
27
|
validators: { ...r.validators() },
|
|
28
|
+
docs: {
|
|
29
|
+
emits: { ...o.emitDocs(!1) },
|
|
30
|
+
methods: { ...o.methodDocs() }
|
|
31
|
+
},
|
|
28
32
|
props: T,
|
|
29
33
|
emits: o.emits(!1),
|
|
30
34
|
setup(e, { expose: n, emit: r }) {
|
|
@@ -1,14 +1,32 @@
|
|
|
1
1
|
import { type ExtractPublicPropTypes } from 'vue';
|
|
2
2
|
declare const toggleTipProps: {
|
|
3
|
-
content:
|
|
4
|
-
|
|
3
|
+
content: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
icon: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
5
11
|
};
|
|
6
12
|
export type ToggleTipProps = ExtractPublicPropTypes<typeof toggleTipProps>;
|
|
7
13
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
-
content:
|
|
9
|
-
|
|
14
|
+
content: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
icon: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
10
22
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
content:
|
|
12
|
-
|
|
23
|
+
content: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
icon: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
13
31
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
32
|
export default _default;
|
|
@@ -5,9 +5,16 @@ import { computed as n, createBlock as r, createElementVNode as i, createVNode a
|
|
|
5
5
|
//#region src/components/tooltip/ToggleTip.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var l = ["innerHTML"], u = /* @__PURE__ */ o({
|
|
7
7
|
name: "XToggleTip",
|
|
8
|
+
docs: {},
|
|
8
9
|
props: {
|
|
9
|
-
content:
|
|
10
|
-
|
|
10
|
+
content: {
|
|
11
|
+
type: String,
|
|
12
|
+
description: "HTML or text shown inside the tooltip."
|
|
13
|
+
},
|
|
14
|
+
icon: {
|
|
15
|
+
type: String,
|
|
16
|
+
description: "Icon name for the trigger. Defaults to the info icon."
|
|
17
|
+
}
|
|
11
18
|
},
|
|
12
19
|
setup(o) {
|
|
13
20
|
let u = o, d = n(() => u.icon || "<path d=\"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z\" />");
|
|
@@ -4,12 +4,20 @@ declare const tooltipProps: {
|
|
|
4
4
|
tag: {
|
|
5
5
|
type: StringConstructor;
|
|
6
6
|
default: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
tooltip: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
disabled: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
description: string;
|
|
7
16
|
};
|
|
8
|
-
tooltip: StringConstructor;
|
|
9
|
-
disabled: BooleanConstructor;
|
|
10
17
|
position: {
|
|
11
18
|
type: PropType<TooltipPosition>;
|
|
12
19
|
default: string;
|
|
20
|
+
description: string;
|
|
13
21
|
};
|
|
14
22
|
};
|
|
15
23
|
export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
@@ -21,23 +29,39 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
21
29
|
tag: {
|
|
22
30
|
type: StringConstructor;
|
|
23
31
|
default: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
tooltip: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
disabled: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
description: string;
|
|
24
41
|
};
|
|
25
|
-
tooltip: StringConstructor;
|
|
26
|
-
disabled: BooleanConstructor;
|
|
27
42
|
position: {
|
|
28
43
|
type: PropType<TooltipPosition>;
|
|
29
44
|
default: string;
|
|
45
|
+
description: string;
|
|
30
46
|
};
|
|
31
47
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
48
|
tag: {
|
|
33
49
|
type: StringConstructor;
|
|
34
50
|
default: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
tooltip: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
disabled: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
description: string;
|
|
35
60
|
};
|
|
36
|
-
tooltip: StringConstructor;
|
|
37
|
-
disabled: BooleanConstructor;
|
|
38
61
|
position: {
|
|
39
62
|
type: PropType<TooltipPosition>;
|
|
40
63
|
default: string;
|
|
64
|
+
description: string;
|
|
41
65
|
};
|
|
42
66
|
}>> & Readonly<{}>, {
|
|
43
67
|
disabled: boolean;
|
|
@@ -3,16 +3,28 @@ import { Teleport as t, Transition as n, computed as r, createBlock as i, create
|
|
|
3
3
|
//#region src/components/tooltip/Tooltip.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var x = /* @__PURE__ */ u({
|
|
5
5
|
name: "XTooltip",
|
|
6
|
+
docs: { slots: {
|
|
7
|
+
default: "Trigger content the tooltip is attached to.",
|
|
8
|
+
tooltip: "Custom tooltip content; overrides the `tooltip` prop."
|
|
9
|
+
} },
|
|
6
10
|
props: {
|
|
7
11
|
tag: {
|
|
8
12
|
type: String,
|
|
9
|
-
default: "div"
|
|
13
|
+
default: "div",
|
|
14
|
+
description: "Root element tag wrapping the trigger."
|
|
15
|
+
},
|
|
16
|
+
tooltip: {
|
|
17
|
+
type: String,
|
|
18
|
+
description: "Tooltip text shown on hover. Prefer the tooltip slot for custom content."
|
|
19
|
+
},
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
description: "Disables showing the tooltip."
|
|
10
23
|
},
|
|
11
|
-
tooltip: String,
|
|
12
|
-
disabled: Boolean,
|
|
13
24
|
position: {
|
|
14
25
|
type: String,
|
|
15
|
-
default: "bottom"
|
|
26
|
+
default: "bottom",
|
|
27
|
+
description: "Preferred placement relative to the trigger (top, bottom, left, right)."
|
|
16
28
|
}
|
|
17
29
|
},
|
|
18
30
|
setup(u) {
|