@bridge-ui/vue 0.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/dist/Actions/BridgeUIHosts.js +5 -0
- package/dist/Actions/BridgeUIHosts.vue.d.ts +18 -0
- package/dist/Actions/BridgeUIHosts.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/Actions/Dialog/BridgeDialogAction.js +5 -0
- package/dist/Actions/Dialog/BridgeDialogAction.vue.d.ts +8 -0
- package/dist/Actions/Dialog/BridgeDialogAction.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/Actions/Dialog/BridgeDialogHost.js +5 -0
- package/dist/Actions/Dialog/BridgeDialogHost.vue.d.ts +14 -0
- package/dist/Actions/Dialog/BridgeDialogHost.vue_vue_type_script_setup_true_lang.js +26 -0
- package/dist/Actions/Dialog/BridgeDialogItem.js +5 -0
- package/dist/Actions/Dialog/BridgeDialogItem.vue.d.ts +4 -0
- package/dist/Actions/Dialog/BridgeDialogItem.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/Actions/Dialog/ResolveBridgeDialogFooter.js +5 -0
- package/dist/Actions/Dialog/ResolveBridgeDialogFooter.vue.d.ts +4 -0
- package/dist/Actions/Dialog/ResolveBridgeDialogFooter.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/Actions/Dialog/bridgeDialog.types.d.ts +128 -0
- package/dist/Actions/Dialog/bridgeDialogInjectionKey.d.ts +3 -0
- package/dist/Actions/Dialog/bridgeDialogInjectionKey.js +4 -0
- package/dist/Actions/Dialog/createBridgeDialogApi.d.ts +2 -0
- package/dist/Actions/Dialog/createBridgeDialogApi.js +49 -0
- package/dist/Actions/Dialog/index.d.ts +3 -0
- package/dist/Actions/Dialog/index.js +3 -0
- package/dist/Actions/Dialog/useDialogAction.d.ts +5 -0
- package/dist/Actions/Dialog/useDialogAction.js +26 -0
- package/dist/Actions/Modal/BridgeModalHost.js +5 -0
- package/dist/Actions/Modal/BridgeModalHost.vue.d.ts +14 -0
- package/dist/Actions/Modal/BridgeModalHost.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/Actions/Modal/bridgeModal.types.d.ts +44 -0
- package/dist/Actions/Modal/bridgeModalInjectionKey.d.ts +3 -0
- package/dist/Actions/Modal/bridgeModalInjectionKey.js +4 -0
- package/dist/Actions/Modal/createBridgeModalApi.d.ts +2 -0
- package/dist/Actions/Modal/createBridgeModalApi.js +49 -0
- package/dist/Actions/Modal/index.d.ts +3 -0
- package/dist/Actions/Modal/index.js +3 -0
- package/dist/Actions/Modal/useModalAction.d.ts +5 -0
- package/dist/Actions/Modal/useModalAction.js +26 -0
- package/dist/Actions/Snackbar/BridgeSnackbarAction.js +5 -0
- package/dist/Actions/Snackbar/BridgeSnackbarAction.vue.d.ts +8 -0
- package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +86 -0
- package/dist/Actions/Snackbar/BridgeSnackbarHost.js +5 -0
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue.d.ts +16 -0
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/Actions/Snackbar/BridgeSnackbarItem.js +5 -0
- package/dist/Actions/Snackbar/BridgeSnackbarItem.vue.d.ts +4 -0
- package/dist/Actions/Snackbar/BridgeSnackbarItem.vue_vue_type_script_setup_true_lang.js +117 -0
- package/dist/Actions/Snackbar/bridgeSnackbar.types.d.ts +127 -0
- package/dist/Actions/Snackbar/bridgeSnackbarInjectionKey.d.ts +3 -0
- package/dist/Actions/Snackbar/bridgeSnackbarInjectionKey.js +4 -0
- package/dist/Actions/Snackbar/createBridgeSnackbarApi.d.ts +14 -0
- package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +59 -0
- package/dist/Actions/Snackbar/index.d.ts +3 -0
- package/dist/Actions/Snackbar/index.js +3 -0
- package/dist/Actions/Snackbar/useSnackbarAction.d.ts +5 -0
- package/dist/Actions/Snackbar/useSnackbarAction.js +27 -0
- package/dist/Actions/bridgeUIHosts.types.d.ts +17 -0
- package/dist/Actions/index.d.ts +8 -0
- package/dist/Actions/index.js +8 -0
- package/dist/Components/Alert/Alert.js +5 -0
- package/dist/Components/Alert/Alert.vue.d.ts +11 -0
- package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/Components/Alert/alert.types.d.ts +134 -0
- package/dist/Components/Alert/alertDefaultIcons.d.ts +4 -0
- package/dist/Components/Alert/alertDefaultIcons.js +13 -0
- package/dist/Components/Alert/composables/useAlert.d.ts +18 -0
- package/dist/Components/Alert/composables/useAlert.js +71 -0
- package/dist/Components/Alert/index.d.ts +3 -0
- package/dist/Components/Alert/index.js +3 -0
- package/dist/Components/Avatar/Avatar.js +5 -0
- package/dist/Components/Avatar/Avatar.vue.d.ts +11 -0
- package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/Components/Avatar/avatar.types.d.ts +81 -0
- package/dist/Components/Avatar/composables/useAvatar.d.ts +23 -0
- package/dist/Components/Avatar/composables/useAvatar.js +73 -0
- package/dist/Components/Avatar/index.d.ts +3 -0
- package/dist/Components/Avatar/index.js +3 -0
- package/dist/Components/Badge/Badge.js +5 -0
- package/dist/Components/Badge/Badge.vue.d.ts +4 -0
- package/dist/Components/Badge/Badge.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/Components/Badge/badge.types.d.ts +64 -0
- package/dist/Components/Badge/composables/useBadge.d.ts +9 -0
- package/dist/Components/Badge/composables/useBadge.js +47 -0
- package/dist/Components/Badge/index.d.ts +3 -0
- package/dist/Components/Badge/index.js +3 -0
- package/dist/Components/Button/Button.js +5 -0
- package/dist/Components/Button/Button.vue.d.ts +11 -0
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +74 -0
- package/dist/Components/Button/button.types.d.ts +181 -0
- package/dist/Components/Button/composables/useButton.d.ts +22 -0
- package/dist/Components/Button/composables/useButton.js +91 -0
- package/dist/Components/Button/index.d.ts +3 -0
- package/dist/Components/Button/index.js +3 -0
- package/dist/Components/Card/Card.js +5 -0
- package/dist/Components/Card/Card.vue.d.ts +11 -0
- package/dist/Components/Card/Card.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/Components/Card/card.types.d.ts +124 -0
- package/dist/Components/Card/composables/useCard.d.ts +18 -0
- package/dist/Components/Card/composables/useCard.js +80 -0
- package/dist/Components/Card/index.d.ts +3 -0
- package/dist/Components/Card/index.js +3 -0
- package/dist/Components/Checkbox/Checkbox.js +5 -0
- package/dist/Components/Checkbox/Checkbox.vue.d.ts +20 -0
- package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/Components/Checkbox/checkbox.types.d.ts +98 -0
- package/dist/Components/Checkbox/composables/useCheckbox.d.ts +279 -0
- package/dist/Components/Checkbox/composables/useCheckbox.js +76 -0
- package/dist/Components/Checkbox/index.d.ts +3 -0
- package/dist/Components/Checkbox/index.js +3 -0
- package/dist/Components/FormControl/FormControl.js +5 -0
- package/dist/Components/FormControl/FormControl.vue.d.ts +17 -0
- package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/Components/FormControl/composables/useFormControl.d.ts +45 -0
- package/dist/Components/FormControl/composables/useFormControl.js +110 -0
- package/dist/Components/FormControl/formControl.types.d.ts +198 -0
- package/dist/Components/FormControl/index.d.ts +4 -0
- package/dist/Components/FormControl/index.js +3 -0
- package/dist/Components/FormField/FilledFormField.js +5 -0
- package/dist/Components/FormField/FilledFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/Components/FormField/FormField.js +5 -0
- package/dist/Components/FormField/FormField.vue.d.ts +15 -0
- package/dist/Components/FormField/FormField.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/Components/FormField/NotchedFormField.js +5 -0
- package/dist/Components/FormField/NotchedFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +38 -0
- package/dist/Components/FormField/OutlinedFormField.js +5 -0
- package/dist/Components/FormField/OutlinedFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/Components/FormField/StackedFormField.js +5 -0
- package/dist/Components/FormField/StackedFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/Components/FormField/UnderlinedFormField.js +5 -0
- package/dist/Components/FormField/UnderlinedFormField.vue.d.ts +17 -0
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/Components/FormField/composables/useFormField.d.ts +474 -0
- package/dist/Components/FormField/composables/useFormField.js +219 -0
- package/dist/Components/FormField/formField.types.d.ts +294 -0
- package/dist/Components/FormField/index.d.ts +4 -0
- package/dist/Components/FormField/index.js +3 -0
- package/dist/Components/Icon/Icon.js +5 -0
- package/dist/Components/Icon/Icon.vue.d.ts +4 -0
- package/dist/Components/Icon/Icon.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/Components/Icon/composables/useIcon.d.ts +9 -0
- package/dist/Components/Icon/composables/useIcon.js +26 -0
- package/dist/Components/Icon/icon.types.d.ts +17 -0
- package/dist/Components/Icon/index.d.ts +3 -0
- package/dist/Components/Icon/index.js +3 -0
- package/dist/Components/Label/Label.js +5 -0
- package/dist/Components/Label/Label.vue.d.ts +4 -0
- package/dist/Components/Label/Label.vue_vue_type_script_setup_true_lang.js +21 -0
- package/dist/Components/Label/composables/useLabel.d.ts +10 -0
- package/dist/Components/Label/composables/useLabel.js +44 -0
- package/dist/Components/Label/index.d.ts +3 -0
- package/dist/Components/Label/index.js +3 -0
- package/dist/Components/Label/label.types.d.ts +52 -0
- package/dist/Components/Link/Link.js +5 -0
- package/dist/Components/Link/Link.vue.d.ts +11 -0
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/Components/Link/composables/useLink.d.ts +18 -0
- package/dist/Components/Link/composables/useLink.js +66 -0
- package/dist/Components/Link/index.d.ts +3 -0
- package/dist/Components/Link/index.js +3 -0
- package/dist/Components/Link/link.types.d.ts +113 -0
- package/dist/Components/List/List.js +5 -0
- package/dist/Components/List/List.vue.d.ts +9 -0
- package/dist/Components/List/List.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/Components/List/composables/useList.d.ts +11 -0
- package/dist/Components/List/composables/useList.js +44 -0
- package/dist/Components/List/index.d.ts +5 -0
- package/dist/Components/List/index.js +4 -0
- package/dist/Components/List/list.types.d.ts +57 -0
- package/dist/Components/List/listInjectionKey.d.ts +5 -0
- package/dist/Components/List/listInjectionKey.js +4 -0
- package/dist/Components/ListItem/ListItem.js +5 -0
- package/dist/Components/ListItem/ListItem.vue.d.ts +19 -0
- package/dist/Components/ListItem/ListItem.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/Components/ListItem/composables/useListItem.d.ts +40 -0
- package/dist/Components/ListItem/composables/useListItem.js +104 -0
- package/dist/Components/ListItem/index.d.ts +3 -0
- package/dist/Components/ListItem/index.js +3 -0
- package/dist/Components/ListItem/listItem.types.d.ts +164 -0
- package/dist/Components/ListSection/ListSection.js +5 -0
- package/dist/Components/ListSection/ListSection.vue.d.ts +15 -0
- package/dist/Components/ListSection/ListSection.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/Components/ListSection/composables/useListSection.d.ts +13 -0
- package/dist/Components/ListSection/composables/useListSection.js +51 -0
- package/dist/Components/ListSection/index.d.ts +3 -0
- package/dist/Components/ListSection/index.js +3 -0
- package/dist/Components/ListSection/listSection.types.d.ts +71 -0
- package/dist/Components/Listbox/Listbox.js +5 -0
- package/dist/Components/Listbox/Listbox.vue.d.ts +34 -0
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +157 -0
- package/dist/Components/Listbox/composables/useListbox.d.ts +13 -0
- package/dist/Components/Listbox/composables/useListbox.js +47 -0
- package/dist/Components/Listbox/composables/useListboxNavigation.d.ts +16 -0
- package/dist/Components/Listbox/composables/useListboxNavigation.js +62 -0
- package/dist/Components/Listbox/index.d.ts +4 -0
- package/dist/Components/Listbox/index.js +4 -0
- package/dist/Components/Listbox/listbox.types.d.ts +170 -0
- package/dist/Components/Menu/Menu.js +5 -0
- package/dist/Components/Menu/Menu.vue.d.ts +36 -0
- package/dist/Components/Menu/Menu.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/Components/Menu/composables/useMenu.d.ts +54 -0
- package/dist/Components/Menu/composables/useMenu.js +217 -0
- package/dist/Components/Menu/index.d.ts +4 -0
- package/dist/Components/Menu/index.js +3 -0
- package/dist/Components/Menu/menu.types.d.ts +172 -0
- package/dist/Components/Modal/Modal.js +5 -0
- package/dist/Components/Modal/Modal.vue.d.ts +38 -0
- package/dist/Components/Modal/Modal.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/Components/Modal/composables/useModal.d.ts +61 -0
- package/dist/Components/Modal/composables/useModal.js +191 -0
- package/dist/Components/Modal/index.d.ts +4 -0
- package/dist/Components/Modal/index.js +3 -0
- package/dist/Components/Modal/modal.types.d.ts +177 -0
- package/dist/Components/NumberField/NumberField.js +5 -0
- package/dist/Components/NumberField/NumberField.vue.d.ts +24 -0
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/Components/NumberField/composables/useNumberField.d.ts +696 -0
- package/dist/Components/NumberField/composables/useNumberField.js +64 -0
- package/dist/Components/NumberField/index.d.ts +4 -0
- package/dist/Components/NumberField/index.js +3 -0
- package/dist/Components/NumberField/numberField.types.d.ts +52 -0
- package/dist/Components/PasswordField/PasswordField.js +5 -0
- package/dist/Components/PasswordField/PasswordField.vue.d.ts +24 -0
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +691 -0
- package/dist/Components/PasswordField/composables/usePasswordField.js +40 -0
- package/dist/Components/PasswordField/index.d.ts +4 -0
- package/dist/Components/PasswordField/index.js +3 -0
- package/dist/Components/PasswordField/passwordField.types.d.ts +34 -0
- package/dist/Components/Radio/Radio.js +5 -0
- package/dist/Components/Radio/Radio.vue.d.ts +20 -0
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/Components/Radio/composables/useRadio.d.ts +278 -0
- package/dist/Components/Radio/composables/useRadio.js +78 -0
- package/dist/Components/Radio/index.d.ts +3 -0
- package/dist/Components/Radio/index.js +3 -0
- package/dist/Components/Radio/radio.types.d.ts +104 -0
- package/dist/Components/Select/Select.js +5 -0
- package/dist/Components/Select/Select.vue.d.ts +40 -0
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +191 -0
- package/dist/Components/Select/SelectOption.js +5 -0
- package/dist/Components/Select/SelectOption.vue.d.ts +4 -0
- package/dist/Components/Select/SelectOption.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/Components/Select/composables/useSelect.d.ts +733 -0
- package/dist/Components/Select/composables/useSelect.js +305 -0
- package/dist/Components/Select/index.d.ts +4 -0
- package/dist/Components/Select/index.js +4 -0
- package/dist/Components/Select/select.types.d.ts +231 -0
- package/dist/Components/Select/selectInjectionKey.d.ts +7 -0
- package/dist/Components/Select/selectInjectionKey.js +4 -0
- package/dist/Components/Snackbar/Snackbar.js +5 -0
- package/dist/Components/Snackbar/Snackbar.vue.d.ts +32 -0
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +156 -0
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +248 -0
- package/dist/Components/Snackbar/composables/useSnackbar.js +210 -0
- package/dist/Components/Snackbar/index.d.ts +4 -0
- package/dist/Components/Snackbar/index.js +3 -0
- package/dist/Components/Snackbar/snackbar.types.d.ts +214 -0
- package/dist/Components/Snackbar/snackbarDefaultIcons.d.ts +4 -0
- package/dist/Components/Snackbar/snackbarDefaultIcons.js +13 -0
- package/dist/Components/Switch/Switch.js +5 -0
- package/dist/Components/Switch/Switch.vue.d.ts +20 -0
- package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +61 -0
- package/dist/Components/Switch/composables/useSwitch.d.ts +278 -0
- package/dist/Components/Switch/composables/useSwitch.js +73 -0
- package/dist/Components/Switch/index.d.ts +3 -0
- package/dist/Components/Switch/index.js +3 -0
- package/dist/Components/Switch/switch.types.d.ts +92 -0
- package/dist/Components/TextField/TextField.js +5 -0
- package/dist/Components/TextField/TextField.vue.d.ts +22 -0
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/Components/TextField/composables/useTextField.d.ts +680 -0
- package/dist/Components/TextField/composables/useTextField.js +21 -0
- package/dist/Components/TextField/index.d.ts +3 -0
- package/dist/Components/TextField/index.js +3 -0
- package/dist/Components/TextField/textField.types.d.ts +15 -0
- package/dist/Components/Textarea/Textarea.js +5 -0
- package/dist/Components/Textarea/Textarea.vue.d.ts +22 -0
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +57 -0
- package/dist/Components/Textarea/composables/useTextarea.d.ts +685 -0
- package/dist/Components/Textarea/composables/useTextarea.js +72 -0
- package/dist/Components/Textarea/index.d.ts +3 -0
- package/dist/Components/Textarea/index.js +3 -0
- package/dist/Components/Textarea/textarea.types.d.ts +34 -0
- package/dist/Provider/BridgeUIProvider.js +5 -0
- package/dist/Provider/BridgeUIProvider.vue.d.ts +18 -0
- package/dist/Provider/BridgeUIProvider.vue_vue_type_script_setup_true_lang.js +20 -0
- package/dist/Provider/bridgeUITypes.d.ts +8 -0
- package/dist/Provider/createBridgeUI.d.ts +3 -0
- package/dist/Provider/createBridgeUI.js +15 -0
- package/dist/Provider/createBridgeUIApi.d.ts +7 -0
- package/dist/Provider/createBridgeUIApi.js +36 -0
- package/dist/Provider/index.d.ts +5 -0
- package/dist/Provider/index.js +4 -0
- package/dist/Provider/injectionKey.d.ts +3 -0
- package/dist/Provider/injectionKey.js +4 -0
- package/dist/Provider/useBridgeUI.d.ts +2 -0
- package/dist/Provider/useBridgeUI.js +8 -0
- package/dist/Utils/index.d.ts +47 -0
- package/dist/Utils/index.js +55 -0
- package/dist/Utils/slotOrProp.d.ts +28 -0
- package/dist/Utils/slotOrProp.js +23 -0
- package/dist/Utils/useHoldRepeat.d.ts +13 -0
- package/dist/Utils/useHoldRepeat.js +38 -0
- package/dist/augments.d.ts +113 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +53 -0
- package/dist/theme.css +205 -0
- package/package.json +90 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useSlots, Slot } from 'vue';
|
|
2
|
+
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core';
|
|
3
|
+
import { ListItemOwnProps, ListItemProps } from '../listItem.types';
|
|
4
|
+
type ListItemLibDefaults = LibDefaultsShape<ListItemOwnProps, "role" | "align">;
|
|
5
|
+
type ListItemMerged = MergeLibDefaults<ListItemOwnProps, ListItemLibDefaults>;
|
|
6
|
+
export declare function useListItem(props: ListItemOwnProps, libDefaults: ListItemLibDefaults, slots: ReturnType<typeof useSlots>): {
|
|
7
|
+
merged: import('vue').ComputedRef<ListItemMerged>;
|
|
8
|
+
hasEnd: import('vue').ComputedRef<boolean>;
|
|
9
|
+
endBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
|
|
10
|
+
class: string;
|
|
11
|
+
}, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
12
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
|
|
13
|
+
class: string;
|
|
14
|
+
}, "class", import('vue').HTMLAttributes | undefined, Omit<Omit<ListItemProps, "role" | "classes" | "customProps" | "primary" | "secondary" | "as" | "disabled" | "dense" | "align" | "divider" | "interactive" | "selected">, never>>>;
|
|
15
|
+
rowClass: import('vue').ComputedRef<string>;
|
|
16
|
+
hasStart: import('vue').ComputedRef<boolean>;
|
|
17
|
+
startBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
|
|
18
|
+
class: string;
|
|
19
|
+
}, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
20
|
+
hasPrimary: import('vue').ComputedRef<boolean>;
|
|
21
|
+
contentBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
|
|
22
|
+
class: string;
|
|
23
|
+
}, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
24
|
+
primaryBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
|
|
25
|
+
class: string;
|
|
26
|
+
}, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
27
|
+
hasSecondary: import('vue').ComputedRef<boolean>;
|
|
28
|
+
secondaryBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
|
|
29
|
+
class: string;
|
|
30
|
+
}, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
31
|
+
interactiveBind: import('vue').ComputedRef<({
|
|
32
|
+
role: NonNullable<"button" | "option" | "menuitem" | undefined>;
|
|
33
|
+
tabindex: number;
|
|
34
|
+
"aria-disabled": boolean | undefined;
|
|
35
|
+
"data-selected": boolean | undefined;
|
|
36
|
+
class: string;
|
|
37
|
+
} & object & Record<"class", string>) | null>;
|
|
38
|
+
};
|
|
39
|
+
export declare function resolveListItemPrimary(slots: ReturnType<typeof useSlots>, primary?: string): Slot | (() => null | string);
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { hasNamedSlot as e, isPropPresent as t, resolveNamedSlot as n } from "../../../Utils/slotOrProp.js";
|
|
2
|
+
import { mergePartBind as r, useBridgeUIComponent as i, useBridgeUIMergedRegistryClasses as a } from "../../../Utils/index.js";
|
|
3
|
+
import { LIST_INJECTION_KEY as o } from "../../List/listInjectionKey.js";
|
|
4
|
+
import { computed as s, getCurrentInstance as c, inject as l, toValue as u, useAttrs as d } from "vue";
|
|
5
|
+
import { get as f, omit as p } from "es-toolkit/compat";
|
|
6
|
+
import { cn as m, mergeBridgeUILayeredClasses as h, splitComponentProps as g } from "@bridge-ui/core";
|
|
7
|
+
import { alignProps as _ } from "@bridge-ui/core/Components/ListItem";
|
|
8
|
+
//#region src/Components/ListItem/composables/useListItem.ts
|
|
9
|
+
var v = [
|
|
10
|
+
"as",
|
|
11
|
+
"role",
|
|
12
|
+
"align",
|
|
13
|
+
"dense",
|
|
14
|
+
"classes",
|
|
15
|
+
"divider",
|
|
16
|
+
"primary",
|
|
17
|
+
"disabled",
|
|
18
|
+
"selected",
|
|
19
|
+
"secondary",
|
|
20
|
+
"customProps",
|
|
21
|
+
"interactive"
|
|
22
|
+
];
|
|
23
|
+
function y(t, n, y) {
|
|
24
|
+
let b = d(), x = l(o, null), S = s(() => g({
|
|
25
|
+
props: {
|
|
26
|
+
...b,
|
|
27
|
+
...t
|
|
28
|
+
},
|
|
29
|
+
bridgeKeys: v
|
|
30
|
+
})), { merged: C, entry: w } = i({
|
|
31
|
+
libDefaults: n,
|
|
32
|
+
componentName: "ListItem",
|
|
33
|
+
props: () => S.value.componentProps
|
|
34
|
+
}), T = s(() => C.value.customProps), E = a({
|
|
35
|
+
entry: w,
|
|
36
|
+
props: () => S.value.componentProps
|
|
37
|
+
}), D = s(() => "dense" in (c()?.vnode.props ?? {}) ? t.dense === !0 : t.dense === !0 ? !0 : x ? u(x).dense : !1), O = s(() => f(h(_, w.value?.customProps?.align), C.value.align)), k = s(() => e(y, "primary") || e(y, "default") || !!C.value.primary), A = s(() => e(y, "secondary") || !!C.value.secondary), j = s(() => e(y, "start")), M = s(() => e(y, "end")), N = s(() => p(S.value.inheritedAttrs, [])), P = s(() => r(T.value?.root, N.value, { class: m({
|
|
38
|
+
"list-none": !0,
|
|
39
|
+
"border-b border-black/10 last:border-b-0": C.value.divider,
|
|
40
|
+
[f(E.value, "root") ?? ""]: !0
|
|
41
|
+
}) })), F = s(() => C.value.interactive ? r(T.value?.interactive, {}, {
|
|
42
|
+
role: C.value.role,
|
|
43
|
+
tabindex: C.value.disabled ? -1 : 0,
|
|
44
|
+
"aria-disabled": C.value.disabled ? !0 : void 0,
|
|
45
|
+
"data-selected": C.value.selected ? !0 : void 0,
|
|
46
|
+
class: m({
|
|
47
|
+
"flex w-full min-w-0 gap-x-3 text-left outline-hidden transition-colors": !0,
|
|
48
|
+
"cursor-pointer select-none": !C.value.disabled,
|
|
49
|
+
"px-4": !0,
|
|
50
|
+
"py-2": !D.value,
|
|
51
|
+
"py-1.5": D.value,
|
|
52
|
+
"hover:bg-black/5 focus-visible:bg-black/5": !C.value.disabled,
|
|
53
|
+
"bg-primary-50 text-primary-700": C.value.selected,
|
|
54
|
+
"opacity-50 pointer-events-none": C.value.disabled,
|
|
55
|
+
[O.value ?? ""]: !0,
|
|
56
|
+
[f(E.value, "interactive") ?? ""]: !0
|
|
57
|
+
})
|
|
58
|
+
}) : null), I = s(() => m({
|
|
59
|
+
"flex w-full min-w-0 gap-x-3": !0,
|
|
60
|
+
"px-4": !C.value.interactive,
|
|
61
|
+
"py-2": !C.value.interactive && !D.value,
|
|
62
|
+
"py-1.5": !C.value.interactive && D.value,
|
|
63
|
+
[O.value ?? ""]: !C.value.interactive
|
|
64
|
+
})), L = s(() => r(T.value?.start, {}, { class: m({
|
|
65
|
+
"flex shrink-0": !0,
|
|
66
|
+
[f(E.value, "start") ?? ""]: !0
|
|
67
|
+
}) })), R = s(() => r(T.value?.content, {}, { class: m({
|
|
68
|
+
"min-w-0 flex-1": !0,
|
|
69
|
+
[f(E.value, "content") ?? ""]: !0
|
|
70
|
+
}) })), z = s(() => r(T.value?.primary, {}, { class: m({
|
|
71
|
+
"block truncate text-sm font-medium": !0,
|
|
72
|
+
[f(E.value, "primary") ?? ""]: !0
|
|
73
|
+
}) })), B = s(() => r(T.value?.secondary, {}, { class: m({
|
|
74
|
+
"mt-0.5 block truncate text-xs text-dark-500": !0,
|
|
75
|
+
[f(E.value, "secondary") ?? ""]: !0
|
|
76
|
+
}) }));
|
|
77
|
+
return {
|
|
78
|
+
merged: C,
|
|
79
|
+
hasEnd: M,
|
|
80
|
+
endBind: s(() => r(T.value?.end, {}, { class: m({
|
|
81
|
+
"ml-auto flex shrink-0 items-center": !0,
|
|
82
|
+
[f(E.value, "end") ?? ""]: !0
|
|
83
|
+
}) })),
|
|
84
|
+
rootBind: P,
|
|
85
|
+
rowClass: I,
|
|
86
|
+
hasStart: j,
|
|
87
|
+
startBind: L,
|
|
88
|
+
hasPrimary: k,
|
|
89
|
+
contentBind: R,
|
|
90
|
+
primaryBind: z,
|
|
91
|
+
hasSecondary: A,
|
|
92
|
+
secondaryBind: B,
|
|
93
|
+
interactiveBind: F
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function b(r, i) {
|
|
97
|
+
if (e(r, "primary")) return n(r, "primary");
|
|
98
|
+
if (e(r, "default")) return n(r, "default");
|
|
99
|
+
if (!t(i)) return () => null;
|
|
100
|
+
let a = String(i);
|
|
101
|
+
return () => a;
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
export { b as resolveListItemPrimary, y as useListItem };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { HTMLAttributes, Slot, VNode } from 'vue';
|
|
2
|
+
import { ListItemAlign, MergeHtmlProps, MergeProps } from '@bridge-ui/core';
|
|
3
|
+
export interface ListItemAlignOverrides {}
|
|
4
|
+
export interface ListItemClasses {
|
|
5
|
+
/**
|
|
6
|
+
* The classes to apply to the main content column.
|
|
7
|
+
*/
|
|
8
|
+
content?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The classes to apply to the trailing slot.
|
|
11
|
+
*/
|
|
12
|
+
end?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The classes to apply to the interactive wrapper.
|
|
15
|
+
*/
|
|
16
|
+
interactive?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The classes to apply to the primary text.
|
|
19
|
+
*/
|
|
20
|
+
primary?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The classes to apply to the root.
|
|
23
|
+
*/
|
|
24
|
+
root?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The classes to apply to the secondary text.
|
|
27
|
+
*/
|
|
28
|
+
secondary?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The classes to apply to the leading slot.
|
|
31
|
+
*/
|
|
32
|
+
start?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ListItemCustomProps {
|
|
35
|
+
/**
|
|
36
|
+
* Props forwarded to the main content column.
|
|
37
|
+
*/
|
|
38
|
+
content?: HTMLAttributes;
|
|
39
|
+
/**
|
|
40
|
+
* Props forwarded to the trailing slot wrapper.
|
|
41
|
+
*/
|
|
42
|
+
end?: HTMLAttributes;
|
|
43
|
+
/**
|
|
44
|
+
* Props forwarded to the interactive wrapper.
|
|
45
|
+
*/
|
|
46
|
+
interactive?: HTMLAttributes;
|
|
47
|
+
/**
|
|
48
|
+
* Props forwarded to the primary text.
|
|
49
|
+
*/
|
|
50
|
+
primary?: HTMLAttributes;
|
|
51
|
+
/**
|
|
52
|
+
* Props forwarded to the root element.
|
|
53
|
+
*/
|
|
54
|
+
root?: HTMLAttributes;
|
|
55
|
+
/**
|
|
56
|
+
* Props forwarded to the secondary text.
|
|
57
|
+
*/
|
|
58
|
+
secondary?: HTMLAttributes;
|
|
59
|
+
/**
|
|
60
|
+
* Props forwarded to the leading slot wrapper.
|
|
61
|
+
*/
|
|
62
|
+
start?: HTMLAttributes;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* List row (MUI `ListItem` / `ListItemButton`-like).
|
|
66
|
+
*/
|
|
67
|
+
export interface ListItemOwnProps {
|
|
68
|
+
/**
|
|
69
|
+
* Vertical alignment of start/content/end slots.
|
|
70
|
+
*
|
|
71
|
+
* @default "center"
|
|
72
|
+
*/
|
|
73
|
+
align?: MergeProps<ListItemAlign, ListItemAlignOverrides>;
|
|
74
|
+
/**
|
|
75
|
+
* The element to render as.
|
|
76
|
+
*
|
|
77
|
+
* @default "li"
|
|
78
|
+
*/
|
|
79
|
+
as?: "li" | "div";
|
|
80
|
+
/**
|
|
81
|
+
* The classes to apply to the item.
|
|
82
|
+
*
|
|
83
|
+
* @default undefined
|
|
84
|
+
*/
|
|
85
|
+
classes?: ListItemClasses;
|
|
86
|
+
/**
|
|
87
|
+
* Props forwarded to each item part.
|
|
88
|
+
*
|
|
89
|
+
* @default undefined
|
|
90
|
+
*/
|
|
91
|
+
customProps?: ListItemCustomProps;
|
|
92
|
+
/**
|
|
93
|
+
* Compact vertical padding. Inherits `dense` from parent `List` when omitted.
|
|
94
|
+
*
|
|
95
|
+
* @default undefined
|
|
96
|
+
*/
|
|
97
|
+
dense?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* When true, the item is not interactive and appears muted.
|
|
100
|
+
*
|
|
101
|
+
* @default false
|
|
102
|
+
*/
|
|
103
|
+
disabled?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* When true, renders a bottom divider on the item.
|
|
106
|
+
*
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
divider?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* When true, applies hover/focus styles and `tabIndex={0}` on the inner wrapper.
|
|
112
|
+
*
|
|
113
|
+
* @default false
|
|
114
|
+
*/
|
|
115
|
+
interactive?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Primary label text.
|
|
118
|
+
*
|
|
119
|
+
* @default undefined
|
|
120
|
+
*/
|
|
121
|
+
primary?: string;
|
|
122
|
+
/**
|
|
123
|
+
* ARIA role for the interactive wrapper.
|
|
124
|
+
*
|
|
125
|
+
* @default "button"
|
|
126
|
+
*/
|
|
127
|
+
role?: "button" | "option" | "menuitem";
|
|
128
|
+
/**
|
|
129
|
+
* Secondary/description text below the primary line.
|
|
130
|
+
*
|
|
131
|
+
* @default undefined
|
|
132
|
+
*/
|
|
133
|
+
secondary?: string;
|
|
134
|
+
/**
|
|
135
|
+
* When true, highlights the item as selected.
|
|
136
|
+
*
|
|
137
|
+
* @default false
|
|
138
|
+
*/
|
|
139
|
+
selected?: boolean;
|
|
140
|
+
}
|
|
141
|
+
export type ListItemPrimaryContent = VNode | string | VNode[] | undefined;
|
|
142
|
+
export interface ListItemSlots {
|
|
143
|
+
/**
|
|
144
|
+
* Default slot — used as primary content when `primary` is not set.
|
|
145
|
+
*/
|
|
146
|
+
default?: Slot<undefined>;
|
|
147
|
+
/**
|
|
148
|
+
* Trailing content.
|
|
149
|
+
*/
|
|
150
|
+
end?: Slot<undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* Primary label markup.
|
|
153
|
+
*/
|
|
154
|
+
primary?: Slot<undefined>;
|
|
155
|
+
/**
|
|
156
|
+
* Secondary/description markup.
|
|
157
|
+
*/
|
|
158
|
+
secondary?: Slot<undefined>;
|
|
159
|
+
/**
|
|
160
|
+
* Leading content.
|
|
161
|
+
*/
|
|
162
|
+
start?: Slot<undefined>;
|
|
163
|
+
}
|
|
164
|
+
export type ListItemProps = MergeHtmlProps<ListItemOwnProps, HTMLAttributes>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ListSectionOwnProps, ListSectionSlots } from './listSection.types';
|
|
2
|
+
type __VLS_Slots = ListSectionSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<ListSectionOwnProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ListSectionOwnProps> & Readonly<{}>, {
|
|
4
|
+
as: "li" | "div";
|
|
5
|
+
inset: boolean;
|
|
6
|
+
sticky: boolean;
|
|
7
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useListSection as e } from "./composables/useListSection.js";
|
|
2
|
+
import { computed as t, createBlock as n, createElementBlock as r, createElementVNode as i, defineComponent as a, guardReactiveProps as o, mergeProps as s, normalizeProps as c, openBlock as l, resolveDynamicComponent as u, unref as d, useSlots as f, withCtx as p } from "vue";
|
|
3
|
+
//#region src/Components/ListSection/ListSection.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var m = /* @__PURE__ */ a({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "ListSection",
|
|
7
|
+
props: {
|
|
8
|
+
as: { default: "li" },
|
|
9
|
+
classes: {},
|
|
10
|
+
customProps: {},
|
|
11
|
+
inset: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
sticky: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
title: {}
|
|
20
|
+
},
|
|
21
|
+
setup(a) {
|
|
22
|
+
let { label: m, merged: h, rootBind: g, titleBind: _ } = e(a, f()), v = t(() => h.value.as ?? "li");
|
|
23
|
+
return (e, t) => v.value === "div" ? (l(), r("div", c(s({ key: 0 }, d(_))), [(l(), n(u(d(m))))], 16)) : (l(), n(u(v.value), c(s({ key: 1 }, d(g))), {
|
|
24
|
+
default: p(() => [i("div", c(o(d(_))), [(l(), n(u(d(m))))], 16)]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 16));
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { m as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useSlots } from 'vue';
|
|
2
|
+
import { ListSectionOwnProps, ListSectionProps } from '../listSection.types';
|
|
3
|
+
export declare function useListSection(props: ListSectionOwnProps, slots: ReturnType<typeof useSlots>): {
|
|
4
|
+
label: import('vue').ComputedRef<import('vue').Slot | (() => null | import('vue').VNodeChild)>;
|
|
5
|
+
merged: import('vue').ComputedRef<ListSectionOwnProps>;
|
|
6
|
+
rootBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
|
|
7
|
+
class: string;
|
|
8
|
+
}, "class", import('vue').HTMLAttributes | undefined, Omit<Omit<ListSectionProps, "classes" | "customProps" | "title" | "as" | "inset" | "sticky">, never>>>;
|
|
9
|
+
titleBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
|
|
10
|
+
role: string;
|
|
11
|
+
class: string;
|
|
12
|
+
}, "class", import('vue').HTMLAttributes | undefined, {}>>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { resolveSlotOrProp as e } from "../../../Utils/slotOrProp.js";
|
|
2
|
+
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
|
+
import { LIST_INJECTION_KEY as i } from "../../List/listInjectionKey.js";
|
|
4
|
+
import { computed as a, inject as o, toValue as s, useAttrs as c } from "vue";
|
|
5
|
+
import { get as l, omit as u } from "es-toolkit/compat";
|
|
6
|
+
import { cn as d, splitComponentProps as f } from "@bridge-ui/core";
|
|
7
|
+
//#region src/Components/ListSection/composables/useListSection.ts
|
|
8
|
+
var p = [
|
|
9
|
+
"as",
|
|
10
|
+
"inset",
|
|
11
|
+
"title",
|
|
12
|
+
"sticky",
|
|
13
|
+
"classes",
|
|
14
|
+
"customProps"
|
|
15
|
+
];
|
|
16
|
+
function m(m, h) {
|
|
17
|
+
let g = c(), _ = o(i, null), v = a(() => f({
|
|
18
|
+
props: {
|
|
19
|
+
...g,
|
|
20
|
+
...m
|
|
21
|
+
},
|
|
22
|
+
bridgeKeys: p
|
|
23
|
+
})), { merged: y, entry: b } = n({
|
|
24
|
+
componentName: "ListSection",
|
|
25
|
+
props: () => v.value.componentProps
|
|
26
|
+
}), x = a(() => y.value.customProps), S = r({
|
|
27
|
+
entry: b,
|
|
28
|
+
props: () => v.value.componentProps
|
|
29
|
+
}), C = a(() => _ ? s(_).dense : !1), w = a(() => e(h, "default", y.value.title)), T = a(() => u(v.value.inheritedAttrs, []));
|
|
30
|
+
return {
|
|
31
|
+
label: w,
|
|
32
|
+
merged: y,
|
|
33
|
+
rootBind: a(() => t(x.value?.root, T.value, { class: d({
|
|
34
|
+
"list-none": !0,
|
|
35
|
+
[l(S.value, "root") ?? ""]: !0
|
|
36
|
+
}) })),
|
|
37
|
+
titleBind: a(() => t(x.value?.title, {}, {
|
|
38
|
+
role: "presentation",
|
|
39
|
+
class: d({
|
|
40
|
+
"bg-white px-4 text-xs font-semibold tracking-wide text-dark-500 uppercase": !0,
|
|
41
|
+
"sticky top-0 z-10": y.value.sticky,
|
|
42
|
+
"py-2": !C.value,
|
|
43
|
+
"py-1.5": C.value,
|
|
44
|
+
"pl-14": y.value.inset,
|
|
45
|
+
[l(S.value, "title") ?? ""]: !0
|
|
46
|
+
})
|
|
47
|
+
}))
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { m as useListSection };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { HTMLAttributes, Slot, VNode } from 'vue';
|
|
2
|
+
import { MergeHtmlProps } from '@bridge-ui/core';
|
|
3
|
+
export interface ListSectionClasses {
|
|
4
|
+
/**
|
|
5
|
+
* The classes to apply to the root.
|
|
6
|
+
*/
|
|
7
|
+
root?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The classes to apply to the section label.
|
|
10
|
+
*/
|
|
11
|
+
title?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ListSectionCustomProps {
|
|
14
|
+
/**
|
|
15
|
+
* Props forwarded to the root element.
|
|
16
|
+
*/
|
|
17
|
+
root?: HTMLAttributes;
|
|
18
|
+
/**
|
|
19
|
+
* Props forwarded to the section label.
|
|
20
|
+
*/
|
|
21
|
+
title?: HTMLAttributes;
|
|
22
|
+
}
|
|
23
|
+
export type ListSectionLabel = VNode | string | VNode[] | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Section heading inside a `List` (MUI `ListSubheader`-like).
|
|
26
|
+
*/
|
|
27
|
+
export interface ListSectionOwnProps {
|
|
28
|
+
/**
|
|
29
|
+
* The element to render as.
|
|
30
|
+
*
|
|
31
|
+
* @default "li"
|
|
32
|
+
*/
|
|
33
|
+
as?: "li" | "div";
|
|
34
|
+
/**
|
|
35
|
+
* The classes to apply to the section.
|
|
36
|
+
*
|
|
37
|
+
* @default undefined
|
|
38
|
+
*/
|
|
39
|
+
classes?: ListSectionClasses;
|
|
40
|
+
/**
|
|
41
|
+
* Props forwarded to each section part.
|
|
42
|
+
*
|
|
43
|
+
* @default undefined
|
|
44
|
+
*/
|
|
45
|
+
customProps?: ListSectionCustomProps;
|
|
46
|
+
/**
|
|
47
|
+
* When true, adds left padding to align with items that have leading icons.
|
|
48
|
+
*
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
inset?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* When true, sticks the heading while scrolling long lists.
|
|
54
|
+
*
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
sticky?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Section label text.
|
|
60
|
+
*
|
|
61
|
+
* @default undefined
|
|
62
|
+
*/
|
|
63
|
+
title?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ListSectionSlots {
|
|
66
|
+
/**
|
|
67
|
+
* Section label content. Overrides `title` when provided.
|
|
68
|
+
*/
|
|
69
|
+
default?: Slot<undefined>;
|
|
70
|
+
}
|
|
71
|
+
export type ListSectionProps = MergeHtmlProps<ListSectionOwnProps, HTMLAttributes>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ListboxOption, ListboxOwnProps, ListboxSlots } from './listbox.types';
|
|
2
|
+
type __VLS_Slots = ListboxSlots;
|
|
3
|
+
type __VLS_Props = ListboxOwnProps;
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
modelValue?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
select: (option: ListboxOption) => any;
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
"show-change": (show: boolean) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
onSelect?: ((option: ListboxOption) => any) | undefined;
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
"onShow-change"?: ((show: boolean) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
color: import('@bridge-ui/core').MergeProps<import('@bridge-ui/core').ListboxColor, import('./listbox.types').ListboxColorOverrides>;
|
|
18
|
+
loading: boolean;
|
|
19
|
+
multiple: boolean;
|
|
20
|
+
disableAutoFocus: boolean;
|
|
21
|
+
placement: import('@floating-ui/utils').Placement;
|
|
22
|
+
emptyMessage: string;
|
|
23
|
+
hideEmptyMessage: boolean;
|
|
24
|
+
highlightedIndex: number;
|
|
25
|
+
showCheckmark: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|