@bridge-ui/vue 0.0.5 → 0.0.7
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/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +17 -17
- package/dist/Adapters/I18n/index.d.ts +1 -0
- package/dist/Adapters/I18n/index.js +2 -0
- package/dist/Adapters/I18n/useI18nAdapter.d.ts +16 -0
- package/dist/Adapters/I18n/useI18nAdapter.js +18 -0
- package/dist/Adapters/Icon/iconSource.types.d.ts +11 -0
- package/dist/Adapters/Icon/index.d.ts +2 -0
- package/dist/Adapters/Icon/index.js +2 -0
- package/dist/Adapters/Icon/useIconAdapter.d.ts +11 -0
- package/dist/Adapters/Icon/useIconAdapter.js +13 -0
- package/dist/Adapters/index.d.ts +3 -0
- package/dist/Adapters/index.js +3 -0
- package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +1 -5
- package/dist/Components/Alert/alert.types.d.ts +2 -2
- package/dist/Components/Alert/alertDefaultIcons.d.ts +2 -2
- package/dist/Components/Alert/alertDefaultIcons.js +9 -10
- package/dist/Components/Alert/composables/useAlert.d.ts +2 -2
- package/dist/Components/Alert/composables/useAlert.js +17 -17
- package/dist/Components/Autocomplete/Autocomplete.js +5 -0
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +40 -0
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +197 -0
- package/dist/Components/Autocomplete/AutocompleteOption.js +5 -0
- package/dist/Components/Autocomplete/AutocompleteOption.vue.d.ts +4 -0
- package/dist/Components/Autocomplete/AutocompleteOption.vue_vue_type_script_setup_true_lang.js +32 -0
- package/dist/Components/Autocomplete/autocomplete.types.d.ts +285 -0
- package/dist/Components/Autocomplete/autocompleteInjectionKey.d.ts +7 -0
- package/dist/Components/Autocomplete/autocompleteInjectionKey.js +4 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +762 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +382 -0
- package/dist/Components/Autocomplete/index.d.ts +4 -0
- package/dist/Components/Autocomplete/index.js +4 -0
- package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Avatar/avatar.types.d.ts +2 -2
- package/dist/Components/Avatar/composables/useAvatar.d.ts +1 -1
- package/dist/Components/Avatar/composables/useAvatar.js +46 -47
- package/dist/Components/Badge/composables/useBadge.js +8 -8
- package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +24 -25
- package/dist/Components/Button/button.types.d.ts +4 -4
- package/dist/Components/Button/composables/useButton.d.ts +1 -1
- package/dist/Components/Button/composables/useButton.js +14 -14
- package/dist/Components/Card/composables/useCard.js +27 -27
- package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/Components/Checkbox/composables/useCheckbox.d.ts +4 -4
- package/dist/Components/Checkbox/composables/useCheckbox.js +9 -9
- package/dist/Components/Chip/Chip.vue_vue_type_script_setup_true_lang.js +8 -9
- package/dist/Components/Chip/composables/useChip.js +6 -6
- package/dist/Components/Divider/composables/useDivider.js +5 -5
- package/dist/Components/Drawer/composables/useDrawer.js +23 -23
- package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/FormControl/composables/useFormControl.d.ts +3 -3
- package/dist/Components/FormControl/composables/useFormControl.js +12 -12
- package/dist/Components/FormControl/formControl.types.d.ts +6 -6
- package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/FormField/composables/useFormField.d.ts +6 -6
- package/dist/Components/FormField/composables/useFormField.js +108 -109
- package/dist/Components/FormField/formField.types.d.ts +19 -19
- package/dist/Components/Icon/Icon.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/Components/Icon/composables/useIcon.d.ts +2 -0
- package/dist/Components/Icon/composables/useIcon.js +20 -18
- package/dist/Components/Icon/icon.types.d.ts +3 -3
- package/dist/Components/Label/composables/useLabel.d.ts +1 -1
- package/dist/Components/Label/composables/useLabel.js +5 -5
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Link/composables/useLink.js +9 -9
- package/dist/Components/Link/link.types.d.ts +3 -3
- package/dist/Components/List/composables/useList.js +6 -6
- package/dist/Components/ListItem/composables/useListItem.d.ts +2 -2
- package/dist/Components/ListItem/composables/useListItem.js +81 -82
- package/dist/Components/ListItem/listItem.types.d.ts +2 -2
- package/dist/Components/ListSection/composables/useListSection.js +8 -8
- package/dist/Components/Listbox/Listbox.vue.d.ts +0 -2
- package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +75 -74
- package/dist/Components/Listbox/composables/useListbox.js +7 -7
- package/dist/Components/Listbox/index.js +3 -3
- package/dist/Components/Menu/composables/useMenu.js +43 -43
- package/dist/Components/Modal/composables/useModal.js +18 -18
- package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +43 -43
- package/dist/Components/NumberField/composables/useNumberField.d.ts +8 -8
- package/dist/Components/NumberField/composables/useNumberField.js +9 -9
- package/dist/Components/OtpField/OtpField.js +5 -0
- package/dist/Components/OtpField/OtpField.vue.d.ts +31 -0
- package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +80 -0
- package/dist/Components/OtpField/OtpFieldLabel.js +5 -0
- package/dist/Components/OtpField/OtpFieldLabel.vue.d.ts +7 -0
- package/dist/Components/OtpField/OtpFieldLabel.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/Components/OtpField/composables/useOtpField.d.ts +460 -0
- package/dist/Components/OtpField/composables/useOtpField.js +212 -0
- package/dist/Components/OtpField/index.d.ts +4 -0
- package/dist/Components/OtpField/index.js +3 -0
- package/dist/Components/OtpField/otpField.types.d.ts +290 -0
- package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/Components/PasswordField/composables/usePasswordField.d.ts +8 -8
- package/dist/Components/PasswordField/composables/usePasswordField.js +2 -2
- package/dist/Components/Progress/composables/useProgress.js +11 -11
- package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Radio/composables/useRadio.d.ts +4 -4
- package/dist/Components/Radio/composables/useRadio.js +9 -9
- package/dist/Components/Select/Select.vue.d.ts +1 -2
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +72 -68
- package/dist/Components/Select/composables/useSelect.d.ts +10 -10
- package/dist/Components/Select/composables/useSelect.js +193 -193
- package/dist/Components/Skeleton/composables/useSkeleton.js +5 -5
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +81 -75
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +4 -4
- package/dist/Components/Snackbar/composables/useSnackbar.js +115 -115
- package/dist/Components/Snackbar/snackbar.types.d.ts +2 -2
- package/dist/Components/Snackbar/snackbarDefaultIcons.d.ts +3 -3
- package/dist/Components/Snackbar/snackbarDefaultIcons.js +9 -10
- package/dist/Components/Spinner/composables/useSpinner.js +11 -11
- package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Switch/composables/useSwitch.d.ts +4 -4
- package/dist/Components/Switch/composables/useSwitch.js +9 -9
- package/dist/Components/Tab/Tab.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/Tab/composables/useTab.js +11 -11
- package/dist/Components/Tab/tab.types.d.ts +3 -3
- package/dist/Components/TabItem/TabItem.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/Components/TabItem/tabItem.types.d.ts +3 -3
- package/dist/Components/TabList/composables/useTabList.js +7 -7
- package/dist/Components/TabPanel/composables/useTabPanel.js +7 -7
- package/dist/Components/Tabs/composables/useTabs.d.ts +468 -4
- package/dist/Components/Tabs/composables/useTabs.js +22 -22
- package/dist/Components/Tabs/tabsInjectionKey.d.ts +5 -5
- package/dist/Components/TextField/TextField.vue.d.ts +1 -1
- package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/TextField/composables/useTextField.d.ts +8 -8
- package/dist/Components/TextField/composables/useTextField.js +1 -1
- package/dist/Components/Textarea/Textarea.vue.d.ts +1 -1
- package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/Components/Textarea/composables/useTextarea.d.ts +8 -8
- package/dist/Components/Textarea/composables/useTextarea.js +9 -9
- package/dist/Components/Tooltip/Tooltip.js +5 -0
- package/dist/Components/Tooltip/Tooltip.vue.d.ts +35 -0
- package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/Components/Tooltip/composables/useTooltip.d.ts +50 -0
- package/dist/Components/Tooltip/composables/useTooltip.js +208 -0
- package/dist/Components/Tooltip/index.d.ts +4 -0
- package/dist/Components/Tooltip/index.js +3 -0
- package/dist/Components/Tooltip/tooltip.types.d.ts +166 -0
- package/dist/Provider/bridgeUITypes.d.ts +4 -1
- package/dist/Provider/createBridgeUIApi.js +15 -2
- package/dist/Utils/index.js +7 -7
- package/dist/Utils/useBreakpoint.js +7 -7
- package/dist/augments.d.ts +2 -2
- package/dist/index.d.ts +11 -1
- package/dist/index.js +84 -76
- package/package.json +21 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
|
|
2
2
|
import { LIST_INJECTION_KEY as r } from "../listInjectionKey.js";
|
|
3
3
|
import { computed as i, provide as a, useAttrs as o } from "vue";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { cn as s, splitComponentProps as c } from "@bridge-ui/core";
|
|
5
|
+
import { get as l, omit as u } from "es-toolkit/compat";
|
|
6
6
|
//#region src/Components/List/composables/useList.ts
|
|
7
7
|
var d = [
|
|
8
8
|
"as",
|
|
@@ -12,7 +12,7 @@ var d = [
|
|
|
12
12
|
"customProps"
|
|
13
13
|
];
|
|
14
14
|
function f(f) {
|
|
15
|
-
let p = o(), m = i(() =>
|
|
15
|
+
let p = o(), m = i(() => c({
|
|
16
16
|
bridgeKeys: d,
|
|
17
17
|
props: {
|
|
18
18
|
...p,
|
|
@@ -26,13 +26,13 @@ function f(f) {
|
|
|
26
26
|
props: () => m.value.componentProps
|
|
27
27
|
});
|
|
28
28
|
a(r, i(() => ({ dense: h.value.dense === !0 })));
|
|
29
|
-
let y = i(() =>
|
|
29
|
+
let y = i(() => u(m.value.inheritedAttrs, []));
|
|
30
30
|
return {
|
|
31
31
|
merged: h,
|
|
32
|
-
rootBind: i(() => e(_.value?.root, y.value,
|
|
32
|
+
rootBind: i(() => e(_.value?.root, y.value, s({
|
|
33
33
|
"m-0 list-none py-2 text-dark-900 dark:text-dark-100": !0,
|
|
34
34
|
"pl-4": h.value.nested,
|
|
35
|
-
[
|
|
35
|
+
[l(v.value, "root") ?? ""]: !0
|
|
36
36
|
})))
|
|
37
37
|
};
|
|
38
38
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LucideIcon } from '@lucide/vue';
|
|
2
1
|
import { useSlots, Slot } from 'vue';
|
|
3
2
|
import { LibDefaultsShape, MergeLibDefaults } from '@bridge-ui/core';
|
|
3
|
+
import { IconSource } from '../../../Adapters/Icon';
|
|
4
4
|
import { ListItemOwnProps, ListItemProps } from '../listItem.types';
|
|
5
5
|
type ListItemLibDefaults = LibDefaultsShape<ListItemOwnProps, "role">;
|
|
6
6
|
type ListItemMerged = MergeLibDefaults<ListItemOwnProps, ListItemLibDefaults>;
|
|
@@ -34,7 +34,7 @@ export declare function useListItem(props: ListItemOwnProps, libDefaults: ListIt
|
|
|
34
34
|
size: "sm";
|
|
35
35
|
class: string;
|
|
36
36
|
}, "class", Partial<Omit<import('../../Icon').IconProps, "icon">> | undefined, {}>>;
|
|
37
|
-
resolvedSelectedIcon: import('vue').ComputedRef<
|
|
37
|
+
resolvedSelectedIcon: import('vue').ComputedRef<IconSource | null>;
|
|
38
38
|
};
|
|
39
39
|
export declare function resolveListItemPrimary(slots: ReturnType<typeof useSlots>, primary?: string): Slot | (() => null | string);
|
|
40
40
|
export {};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { hasNamedSlot as e, isPropPresent as t, resolveNamedSlot as n } from "../../../Utils/slotOrProp.js";
|
|
2
2
|
import { mergePartBind as r, useBridgeUIComponent as i, useBridgeUIMergedRegistryClasses as a } from "../../../Utils/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getListboxOptionId as o } from "../../Listbox/composables/useListboxNavigation.js";
|
|
4
|
+
import { LIST_INJECTION_KEY as s } from "../../List/listInjectionKey.js";
|
|
5
5
|
import { LISTBOX_INJECTION_KEY as c } from "../../Listbox/listboxInjectionKey.js";
|
|
6
6
|
import { computed as l, getCurrentInstance as u, inject as d, onBeforeUnmount as f, toValue as p, useAttrs as m, watch as h } from "vue";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { Check as x } from "@lucide/vue";
|
|
7
|
+
import { cn as g, splitComponentProps as _ } from "@bridge-ui/core";
|
|
8
|
+
import { get as v, isNull as y, omit as b } from "es-toolkit/compat";
|
|
10
9
|
//#region src/Components/ListItem/composables/useListItem.ts
|
|
11
|
-
var
|
|
10
|
+
var x = [
|
|
12
11
|
"as",
|
|
13
12
|
"role",
|
|
14
13
|
"dense",
|
|
@@ -23,109 +22,109 @@ var S = [
|
|
|
23
22
|
"interactive",
|
|
24
23
|
"selectedIcon"
|
|
25
24
|
];
|
|
26
|
-
function
|
|
27
|
-
let
|
|
25
|
+
function S(t, n, S) {
|
|
26
|
+
let C = m(), w = d(s, null), T = d(c, null), E = T != null, D = l(() => _({
|
|
28
27
|
props: {
|
|
29
|
-
...
|
|
28
|
+
...C,
|
|
30
29
|
...t
|
|
31
30
|
},
|
|
32
|
-
bridgeKeys:
|
|
33
|
-
})), { merged:
|
|
31
|
+
bridgeKeys: x
|
|
32
|
+
})), { merged: O, entry: k } = i({
|
|
34
33
|
libDefaults: n,
|
|
35
34
|
componentName: "ListItem",
|
|
36
|
-
props: () =>
|
|
37
|
-
}),
|
|
38
|
-
value:
|
|
39
|
-
description:
|
|
40
|
-
disabled: !!
|
|
41
|
-
label:
|
|
42
|
-
}),
|
|
35
|
+
props: () => D.value.componentProps
|
|
36
|
+
}), A = l(() => T ? p(T) : null), j = l(() => O.value.value == null || !E ? null : {
|
|
37
|
+
value: O.value.value,
|
|
38
|
+
description: O.value.secondary,
|
|
39
|
+
disabled: !!O.value.disabled,
|
|
40
|
+
label: O.value.primary ?? String(O.value.value)
|
|
41
|
+
}), M;
|
|
43
42
|
h(() => {
|
|
44
|
-
let e =
|
|
43
|
+
let e = j.value;
|
|
45
44
|
return e ? `${String(e.value)}:${e.label}:${e.disabled}:${e.description ?? ""}` : null;
|
|
46
45
|
}, () => {
|
|
47
|
-
|
|
48
|
-
let e =
|
|
49
|
-
!e || !
|
|
46
|
+
M?.(), M = void 0;
|
|
47
|
+
let e = j.value;
|
|
48
|
+
!e || !T || (M = p(T).registerOption(e));
|
|
50
49
|
}, { immediate: !0 }), f(() => {
|
|
51
|
-
|
|
50
|
+
M?.();
|
|
52
51
|
});
|
|
53
|
-
let
|
|
54
|
-
entry:
|
|
55
|
-
props: () =>
|
|
56
|
-
}),
|
|
57
|
-
class:
|
|
52
|
+
let N = l(() => j.value != null), P = l(() => !j.value || !A.value ? !1 : A.value.isSelected(j.value.value)), F = l(() => !j.value || !A.value ? -1 : A.value.getOptionIndex(j.value.value)), I = l(() => !A.value || F.value < 0 ? !1 : A.value.highlightedIndex === F.value), L = l(() => O.value.customProps), R = a({
|
|
53
|
+
entry: k,
|
|
54
|
+
props: () => D.value.componentProps
|
|
55
|
+
}), z = l(() => "dense" in (u()?.vnode.props ?? {}) ? t.dense === !0 : t.dense === !0 ? !0 : w ? p(w).dense : !1), B = l(() => e(S, "primary") || e(S, "default") || !!O.value.primary), V = l(() => e(S, "secondary") || !!O.value.secondary), H = l(() => e(S, "start")), U = l(() => N.value ? !P.value || !A.value?.showCheckmark ? null : "check" : !O.value.selected || y(O.value.selectedIcon) ? null : O.value.selectedIcon ?? "check"), W = l(() => e(S, "end") || U.value != null), G = l(() => b(D.value.inheritedAttrs, [])), K = l(() => r(L.value?.root, G.value, {
|
|
56
|
+
class: g({
|
|
58
57
|
"list-none": !0,
|
|
59
|
-
"border-b border-black/10 last:border-b-0 dark:border-white/10":
|
|
60
|
-
[
|
|
58
|
+
"border-b border-black/10 last:border-b-0 dark:border-white/10": O.value.divider,
|
|
59
|
+
[v(R.value, "root") ?? ""]: !0
|
|
61
60
|
}),
|
|
62
|
-
id:
|
|
63
|
-
})),
|
|
64
|
-
"aria-disabled":
|
|
65
|
-
role:
|
|
66
|
-
tabindex:
|
|
67
|
-
"data-selected":
|
|
68
|
-
"aria-selected":
|
|
69
|
-
onMousedown:
|
|
61
|
+
id: N.value && A.value?.listboxId && F.value >= 0 ? o(A.value.listboxId, F.value) : void 0
|
|
62
|
+
})), q = l(() => O.value.interactive || N.value ? r(L.value?.interactive, {}, {
|
|
63
|
+
"aria-disabled": O.value.disabled ? !0 : void 0,
|
|
64
|
+
role: N.value ? "option" : O.value.role,
|
|
65
|
+
tabindex: O.value.disabled || N.value ? -1 : 0,
|
|
66
|
+
"data-selected": O.value.selected || P.value ? !0 : void 0,
|
|
67
|
+
"aria-selected": N.value ? P.value : void 0,
|
|
68
|
+
onMousedown: N.value ? (e) => {
|
|
70
69
|
e.preventDefault();
|
|
71
70
|
} : void 0,
|
|
72
|
-
onClick:
|
|
73
|
-
|
|
71
|
+
onClick: N.value ? () => {
|
|
72
|
+
j.value && A.value?.onSelect(j.value);
|
|
74
73
|
} : void 0,
|
|
75
|
-
class:
|
|
74
|
+
class: g({
|
|
76
75
|
"flex w-full min-w-0 items-center gap-x-3 text-left text-dark-900 outline-hidden transition-colors dark:text-dark-100": !0,
|
|
77
|
-
"cursor-pointer select-none": !
|
|
76
|
+
"cursor-pointer select-none": !O.value.disabled,
|
|
78
77
|
"px-4": !0,
|
|
79
|
-
"py-2": !
|
|
80
|
-
"py-1.5":
|
|
81
|
-
"hover:bg-black/5 focus-visible:bg-black/5 dark:hover:bg-white/10 dark:focus-visible:bg-white/10": !
|
|
82
|
-
"bg-dark-100 font-medium text-dark-900 dark:bg-white/15 dark:text-white":
|
|
83
|
-
[
|
|
84
|
-
[
|
|
85
|
-
[
|
|
86
|
-
[
|
|
87
|
-
"opacity-50 pointer-events-none":
|
|
88
|
-
[
|
|
89
|
-
[
|
|
78
|
+
"py-2": !z.value,
|
|
79
|
+
"py-1.5": z.value,
|
|
80
|
+
"hover:bg-black/5 focus-visible:bg-black/5 dark:hover:bg-white/10 dark:focus-visible:bg-white/10": !O.value.disabled && !N.value,
|
|
81
|
+
"bg-dark-100 font-medium text-dark-900 dark:bg-white/15 dark:text-white": O.value.selected && !N.value,
|
|
82
|
+
[A.value?.optionSelectedClass ?? ""]: N.value && P.value,
|
|
83
|
+
[A.value?.mergedClasses.optionSelected ?? ""]: N.value && P.value,
|
|
84
|
+
[A.value?.optionHighlightedClass ?? ""]: N.value && I.value && !P.value,
|
|
85
|
+
[A.value?.mergedClasses.optionHighlighted ?? ""]: N.value && I.value && !P.value,
|
|
86
|
+
"opacity-50 pointer-events-none": O.value.disabled,
|
|
87
|
+
[v(R.value, "interactive") ?? ""]: !0,
|
|
88
|
+
[A.value?.sizeClasses?.option ?? ""]: !0
|
|
90
89
|
})
|
|
91
|
-
}) : null),
|
|
90
|
+
}) : null), J = l(() => g({
|
|
92
91
|
"flex w-full min-w-0 gap-x-3": !0,
|
|
93
|
-
"items-center text-dark-900 dark:text-dark-100": !
|
|
94
|
-
"px-4": !
|
|
95
|
-
"py-2": !
|
|
96
|
-
"py-1.5": !
|
|
97
|
-
})),
|
|
92
|
+
"items-center text-dark-900 dark:text-dark-100": !O.value.interactive,
|
|
93
|
+
"px-4": !O.value.interactive,
|
|
94
|
+
"py-2": !O.value.interactive && !z.value,
|
|
95
|
+
"py-1.5": !O.value.interactive && z.value
|
|
96
|
+
})), Y = l(() => r(L.value?.start, {}, g({
|
|
98
97
|
"flex shrink-0 text-dark-600 dark:text-dark-300": !0,
|
|
99
|
-
[
|
|
100
|
-
}))),
|
|
98
|
+
[v(R.value, "start") ?? ""]: !0
|
|
99
|
+
}))), X = l(() => r(L.value?.content, {}, g({
|
|
101
100
|
"min-w-0 flex-1": !0,
|
|
102
|
-
[
|
|
103
|
-
}))),
|
|
101
|
+
[v(R.value, "content") ?? ""]: !0
|
|
102
|
+
}))), Z = l(() => r(L.value?.primary, {}, g("block truncate text-sm font-medium", A.value?.sizeClasses?.primary, v(R.value, "primary")))), Q = l(() => r(L.value?.secondary, {}, g("mt-0.5 block truncate text-xs text-dark-500 dark:text-dark-400", A.value?.sizeClasses?.secondary, v(R.value, "secondary"))));
|
|
104
103
|
return {
|
|
105
|
-
merged:
|
|
106
|
-
hasEnd:
|
|
107
|
-
endBind: l(() => r(
|
|
104
|
+
merged: O,
|
|
105
|
+
hasEnd: W,
|
|
106
|
+
endBind: l(() => r(L.value?.end, {}, g({
|
|
108
107
|
"ml-auto flex shrink-0 items-center": !0,
|
|
109
|
-
[
|
|
108
|
+
[v(R.value, "end") ?? ""]: !0
|
|
110
109
|
}))),
|
|
111
|
-
rootBind:
|
|
112
|
-
rowClass:
|
|
113
|
-
hasStart:
|
|
114
|
-
startBind:
|
|
115
|
-
hasPrimary:
|
|
116
|
-
contentBind:
|
|
117
|
-
primaryBind:
|
|
118
|
-
hasSecondary:
|
|
119
|
-
secondaryBind:
|
|
120
|
-
interactiveBind:
|
|
121
|
-
selectedIconBind: l(() => r(
|
|
110
|
+
rootBind: K,
|
|
111
|
+
rowClass: J,
|
|
112
|
+
hasStart: H,
|
|
113
|
+
startBind: Y,
|
|
114
|
+
hasPrimary: B,
|
|
115
|
+
contentBind: X,
|
|
116
|
+
primaryBind: Z,
|
|
117
|
+
hasSecondary: V,
|
|
118
|
+
secondaryBind: Q,
|
|
119
|
+
interactiveBind: q,
|
|
120
|
+
selectedIconBind: l(() => r(L.value?.selectedIcon, {}, {
|
|
122
121
|
size: "sm",
|
|
123
|
-
class:
|
|
122
|
+
class: g("shrink-0", A.value?.checkClass, v(R.value, "selectedIcon"))
|
|
124
123
|
})),
|
|
125
|
-
resolvedSelectedIcon:
|
|
124
|
+
resolvedSelectedIcon: U
|
|
126
125
|
};
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function C(r, i) {
|
|
129
128
|
if (e(r, "primary")) return n(r, "primary");
|
|
130
129
|
if (e(r, "default")) return n(r, "default");
|
|
131
130
|
if (!t(i)) return () => null;
|
|
@@ -133,4 +132,4 @@ function w(r, i) {
|
|
|
133
132
|
return () => a;
|
|
134
133
|
}
|
|
135
134
|
//#endregion
|
|
136
|
-
export {
|
|
135
|
+
export { C as resolveListItemPrimary, S as useListItem };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LucideIcon } from '@lucide/vue';
|
|
2
1
|
import { HTMLAttributes, Slot, VNode } from 'vue';
|
|
3
2
|
import { ListboxValue, MergeHtmlProps } from '@bridge-ui/core';
|
|
3
|
+
import { IconSource } from '../../Adapters/Icon';
|
|
4
4
|
import { IconProps } from '../Icon';
|
|
5
5
|
export interface ListItemClasses {
|
|
6
6
|
/**
|
|
@@ -146,7 +146,7 @@ export interface ListItemOwnProps {
|
|
|
146
146
|
*
|
|
147
147
|
* @default Check
|
|
148
148
|
*/
|
|
149
|
-
selectedIcon?: null |
|
|
149
|
+
selectedIcon?: null | IconSource;
|
|
150
150
|
/**
|
|
151
151
|
* When set inside a `Listbox`, registers this row as a selectable option.
|
|
152
152
|
*
|
|
@@ -2,8 +2,8 @@ import { resolveSlotOrProp as e } from "../../../Utils/slotOrProp.js";
|
|
|
2
2
|
import { mergePartBind as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as r } from "../../../Utils/index.js";
|
|
3
3
|
import { LIST_INJECTION_KEY as i } from "../../List/listInjectionKey.js";
|
|
4
4
|
import { computed as a, inject as o, toValue as s, useAttrs as c } from "vue";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { cn as l, splitComponentProps as u } from "@bridge-ui/core";
|
|
6
|
+
import { get as d, omit as f } from "es-toolkit/compat";
|
|
7
7
|
//#region src/Components/ListSection/composables/useListSection.ts
|
|
8
8
|
var p = [
|
|
9
9
|
"as",
|
|
@@ -14,7 +14,7 @@ var p = [
|
|
|
14
14
|
"customProps"
|
|
15
15
|
];
|
|
16
16
|
function m(m, h) {
|
|
17
|
-
let g = c(), _ = o(i, null), v = a(() =>
|
|
17
|
+
let g = c(), _ = o(i, null), v = a(() => u({
|
|
18
18
|
props: {
|
|
19
19
|
...g,
|
|
20
20
|
...m
|
|
@@ -26,24 +26,24 @@ function m(m, h) {
|
|
|
26
26
|
}), x = a(() => y.value.customProps), S = r({
|
|
27
27
|
entry: b,
|
|
28
28
|
props: () => v.value.componentProps
|
|
29
|
-
}), C = a(() => _ ? s(_).dense : !1), w = a(() => e(h, "default", y.value.title)), T = a(() =>
|
|
29
|
+
}), C = a(() => _ ? s(_).dense : !1), w = a(() => e(h, "default", y.value.title)), T = a(() => f(v.value.inheritedAttrs, [])), E = a(() => y.value.as === "div");
|
|
30
30
|
return {
|
|
31
31
|
label: w,
|
|
32
32
|
merged: y,
|
|
33
|
-
rootBind: a(() => t(x.value?.root, T.value,
|
|
33
|
+
rootBind: a(() => t(x.value?.root, T.value, l({
|
|
34
34
|
"list-none": !0,
|
|
35
35
|
"sticky top-0 z-10 bg-white dark:bg-dark-800": y.value.sticky && !E.value,
|
|
36
|
-
[
|
|
36
|
+
[d(S.value, "root") ?? ""]: !0
|
|
37
37
|
}))),
|
|
38
38
|
titleBind: a(() => t(x.value?.title, {}, {
|
|
39
39
|
role: "presentation",
|
|
40
|
-
class:
|
|
40
|
+
class: l({
|
|
41
41
|
"bg-white px-4 text-xs font-semibold tracking-wide text-dark-500 uppercase dark:bg-dark-800 dark:text-dark-300": !0,
|
|
42
42
|
"sticky top-0 z-10": y.value.sticky && E.value,
|
|
43
43
|
"py-2": !C.value,
|
|
44
44
|
"py-1.5": C.value,
|
|
45
45
|
"pl-14": y.value.inset,
|
|
46
|
-
[
|
|
46
|
+
[d(S.value, "title") ?? ""]: !0
|
|
47
47
|
})
|
|
48
48
|
}))
|
|
49
49
|
};
|
|
@@ -23,10 +23,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
23
23
|
multiple: boolean;
|
|
24
24
|
disableAutoFocus: boolean;
|
|
25
25
|
placement: import('@floating-ui/utils').Placement;
|
|
26
|
-
emptyMessage: string;
|
|
27
26
|
hideEmptyMessage: boolean;
|
|
28
27
|
highlightedIndex: number;
|
|
29
|
-
loadingMessage: string;
|
|
30
28
|
showCheckmark: boolean;
|
|
31
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
30
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import r from "
|
|
4
|
-
import { useListbox as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import { cn as
|
|
1
|
+
import { useResolveMessage as e } from "../../Adapters/I18n/useI18nAdapter.js";
|
|
2
|
+
import { hasNamedSlot as t, resolveNamedSlot as n } from "../../Utils/slotOrProp.js";
|
|
3
|
+
import { mergeNestedComponentProps as r } from "../../Utils/index.js";
|
|
4
|
+
import { useListbox as ee } from "./composables/useListbox.js";
|
|
5
|
+
import te from "../List/List.js";
|
|
6
|
+
import { LISTBOX_INJECTION_KEY as i } from "./listboxInjectionKey.js";
|
|
7
|
+
import a from "../ListItem/ListItem.js";
|
|
8
|
+
import o from "../ListSection/ListSection.js";
|
|
9
|
+
import s from "../Menu/Menu.js";
|
|
10
|
+
import ne from "../Progress/Progress.js";
|
|
11
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeModels as v, mergeProps as y, normalizeProps as b, openBlock as x, provide as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as E, toDisplayString as D, unref as O, useModel as re, useSlots as ie, watch as k, withCtx as A } from "vue";
|
|
12
|
+
import { cn as ae, entriesFromListboxOptions as oe, flattenListboxOptions as j, mapListboxEntriesToRows as M } from "@bridge-ui/core";
|
|
13
|
+
import { isNil as N } from "es-toolkit/compat";
|
|
13
14
|
//#region src/Components/Listbox/Listbox.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var P = { key: 1 }, F = /* @__PURE__ */
|
|
15
|
+
var P = { key: 1 }, F = /* @__PURE__ */ g({
|
|
15
16
|
__name: "Listbox",
|
|
16
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ v({
|
|
17
18
|
anchorEl: {},
|
|
18
19
|
classes: {},
|
|
19
20
|
color: { default: "primary" },
|
|
@@ -23,7 +24,7 @@ var P = { key: 1 }, F = /* @__PURE__ */ h({
|
|
|
23
24
|
default: !1
|
|
24
25
|
},
|
|
25
26
|
disableMaxHeight: { type: Boolean },
|
|
26
|
-
emptyMessage: {
|
|
27
|
+
emptyMessage: {},
|
|
27
28
|
entries: {},
|
|
28
29
|
hideEmptyMessage: {
|
|
29
30
|
type: Boolean,
|
|
@@ -38,7 +39,7 @@ var P = { key: 1 }, F = /* @__PURE__ */ h({
|
|
|
38
39
|
type: Boolean,
|
|
39
40
|
default: !1
|
|
40
41
|
},
|
|
41
|
-
loadingMessage: {
|
|
42
|
+
loadingMessage: {},
|
|
42
43
|
maxHeight: {},
|
|
43
44
|
multiple: {
|
|
44
45
|
type: Boolean,
|
|
@@ -59,99 +60,99 @@ var P = { key: 1 }, F = /* @__PURE__ */ h({
|
|
|
59
60
|
},
|
|
60
61
|
modelModifiers: {}
|
|
61
62
|
}),
|
|
62
|
-
emits: /* @__PURE__ */
|
|
63
|
+
emits: /* @__PURE__ */ v([
|
|
63
64
|
"registered-options-change",
|
|
64
65
|
"select",
|
|
65
66
|
"show-change"
|
|
66
67
|
], ["update:modelValue"]),
|
|
67
|
-
setup(
|
|
68
|
-
let F = ie(), I =
|
|
69
|
-
|
|
68
|
+
setup(g, { emit: v }) {
|
|
69
|
+
let F = ie(), I = v, L = re(g, "modelValue");
|
|
70
|
+
k(L, (e) => {
|
|
70
71
|
I("show-change", e);
|
|
71
72
|
});
|
|
72
|
-
let R =
|
|
73
|
+
let R = g, z = e(), B = l(() => R.emptyMessage ?? z("No options")), V = l(() => R.loadingMessage ?? z("Loading...")), { merged: H, checkClass: U, scrollBind: W, messageBind: G, sizeClasses: K, mergedClasses: q, optionSelectedClass: se, optionHighlightedClass: ce } = ee(R, {
|
|
73
74
|
size: "md",
|
|
74
75
|
color: "primary"
|
|
75
|
-
}),
|
|
76
|
-
function
|
|
76
|
+
}), le = l(() => R.options ?? []), J = l(() => R.entries ? R.entries : oe(le.value)), Y = l(() => j(J.value)), X = l(() => t(F, "default")), Z = l(() => !R.loading && !X.value && Y.value.length === 0 && R.hideEmptyMessage !== !0), ue = l(() => ae(U.value, q.value.check)), Q = C([]);
|
|
77
|
+
function $(e) {
|
|
77
78
|
return R.isSelected?.(e) ?? !1;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function de(e) {
|
|
80
81
|
e.disabled || I("select", e);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
84
|
-
|
|
83
|
+
function fe(e) {
|
|
84
|
+
return Q.value.some((t) => String(t.value) === String(e.value)) || (Q.value = [...Q.value, e]), () => {
|
|
85
|
+
Q.value = Q.value.filter((t) => String(t.value) !== String(e.value));
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
return (
|
|
88
|
+
function pe(e) {
|
|
89
|
+
return (X.value ? Q.value : Y.value).findIndex((t) => String(t.value) === String(e));
|
|
89
90
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}, { deep: !0 }),
|
|
93
|
-
getOptionIndex:
|
|
94
|
-
registerOption:
|
|
95
|
-
onSelect:
|
|
91
|
+
k(Q, (e) => {
|
|
92
|
+
X.value && I("registered-options-change", e);
|
|
93
|
+
}, { deep: !0 }), S(i, l(() => ({
|
|
94
|
+
getOptionIndex: pe,
|
|
95
|
+
registerOption: fe,
|
|
96
|
+
onSelect: de,
|
|
96
97
|
listboxId: R.listboxId,
|
|
97
|
-
isSelected:
|
|
98
|
-
sizeClasses:
|
|
98
|
+
isSelected: $,
|
|
99
|
+
sizeClasses: K.value,
|
|
99
100
|
showCheckmark: R.showCheckmark,
|
|
100
|
-
checkClass:
|
|
101
|
+
checkClass: ue.value,
|
|
101
102
|
highlightedIndex: R.highlightedIndex,
|
|
102
|
-
optionSelectedClass:
|
|
103
|
-
optionHighlightedClass:
|
|
103
|
+
optionSelectedClass: se.value,
|
|
104
|
+
optionHighlightedClass: ce.value,
|
|
104
105
|
mergedClasses: {
|
|
105
|
-
optionSelected:
|
|
106
|
-
optionHighlighted:
|
|
106
|
+
optionSelected: q.value.optionSelected,
|
|
107
|
+
optionHighlighted: q.value.optionHighlighted
|
|
107
108
|
}
|
|
108
109
|
})));
|
|
109
|
-
let
|
|
110
|
-
...
|
|
111
|
-
...
|
|
112
|
-
})),
|
|
110
|
+
let me = l(() => M(J.value, $)), he = l(() => H.value.customProps?.menu), ge = l(() => H.value.customProps?.list), _e = l(() => H.value.customProps?.listItem), ve = l(() => H.value.customProps?.progress), ye = l(() => H.value.customProps?.listSection), be = l(() => ({
|
|
111
|
+
...N(R.rounded) ? {} : { rounded: R.rounded },
|
|
112
|
+
...he.value
|
|
113
|
+
})), xe = l(() => ({
|
|
113
114
|
size: "xs",
|
|
114
115
|
"aria-hidden": !0,
|
|
115
|
-
color:
|
|
116
|
-
...
|
|
116
|
+
color: H.value.color,
|
|
117
|
+
...r(ve.value, {
|
|
117
118
|
class: "shrink-0",
|
|
118
|
-
classes: { bar:
|
|
119
|
+
classes: { bar: q.value.loading }
|
|
119
120
|
})
|
|
120
|
-
})),
|
|
121
|
+
})), Se = l(() => ({
|
|
121
122
|
dense: !0,
|
|
122
123
|
role: "listbox",
|
|
123
124
|
id: R.listboxId,
|
|
124
125
|
"aria-labelledby": R.labelledBy,
|
|
125
126
|
"aria-multiselectable": R.multiple || void 0,
|
|
126
|
-
...
|
|
127
|
+
...r(ge.value, { class: "p-0" })
|
|
127
128
|
}));
|
|
128
|
-
return (
|
|
129
|
+
return (e, r) => (x(), u(O(s), y({
|
|
129
130
|
modelValue: L.value,
|
|
130
|
-
"onUpdate:modelValue":
|
|
131
|
-
"anchor-el":
|
|
132
|
-
placement:
|
|
131
|
+
"onUpdate:modelValue": r[0] ||= (e) => L.value = e,
|
|
132
|
+
"anchor-el": g.anchorEl,
|
|
133
|
+
placement: g.placement,
|
|
133
134
|
"close-on-click-away": !0,
|
|
134
|
-
"disable-auto-focus":
|
|
135
|
-
},
|
|
136
|
-
default:
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
default:
|
|
135
|
+
"disable-auto-focus": g.disableAutoFocus
|
|
136
|
+
}, be.value), {
|
|
137
|
+
default: A(() => [
|
|
138
|
+
O(t)(O(F), "beforeOptions") ? (x(), u(E(O(n)(O(F), "beforeOptions")), { key: 0 })) : d("", !0),
|
|
139
|
+
g.loading ? (x(), f(c, { key: 1 }, [h(O(ne), b(_(xe.value)), null, 16), p("div", b(_(O(G))), [O(t)(O(F), "loading") ? (x(), u(E(O(n)(O(F), "loading")), { key: 0 })) : (x(), f("span", P, D(V.value), 1))], 16)], 64)) : (x(), f("div", b(y({ key: 2 }, O(W))), [h(O(te), b(_(Se.value)), {
|
|
140
|
+
default: A(() => [X.value ? T(e.$slots, "default", { key: 0 }) : (x(!0), f(c, { key: 1 }, w(me.value, (n) => (x(), f(c, { key: n.key }, [n.kind === "section" ? (x(), u(O(o), y({
|
|
140
141
|
key: 0,
|
|
141
|
-
title:
|
|
142
|
-
sticky:
|
|
143
|
-
}, { ref_for: !0 },
|
|
142
|
+
title: n.title,
|
|
143
|
+
sticky: n.sticky
|
|
144
|
+
}, { ref_for: !0 }, ye.value), null, 16, ["title", "sticky"])) : (x(), u(O(a), y({
|
|
144
145
|
key: 1,
|
|
145
146
|
interactive: "",
|
|
146
|
-
value:
|
|
147
|
-
disabled:
|
|
148
|
-
secondary:
|
|
149
|
-
primary:
|
|
150
|
-
}, { ref_for: !0 },
|
|
147
|
+
value: n.option.value,
|
|
148
|
+
disabled: n.option.disabled,
|
|
149
|
+
secondary: n.option.description,
|
|
150
|
+
primary: O(t)(O(F), "option") ? void 0 : n.option.label
|
|
151
|
+
}, { ref_for: !0 }, _e.value), m({ _: 2 }, [O(t)(O(F), "option") ? {
|
|
151
152
|
name: "default",
|
|
152
|
-
fn:
|
|
153
|
-
option:
|
|
154
|
-
selected:
|
|
153
|
+
fn: A(() => [T(e.$slots, "option", {
|
|
154
|
+
option: n.option,
|
|
155
|
+
selected: n.selected
|
|
155
156
|
})]),
|
|
156
157
|
key: "0"
|
|
157
158
|
} : void 0]), 1040, [
|
|
@@ -162,8 +163,8 @@ var P = { key: 1 }, F = /* @__PURE__ */ h({
|
|
|
162
163
|
]))], 64))), 128))]),
|
|
163
164
|
_: 3
|
|
164
165
|
}, 16)], 16)),
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
Z.value && !O(t)(O(F), "empty") ? (x(), f("div", b(y({ key: 3 }, O(G))), D(B.value), 17)) : Z.value && O(t)(O(F), "empty") ? (x(), u(E(O(n)(O(F), "empty")), { key: 4 })) : d("", !0),
|
|
167
|
+
O(t)(O(F), "afterOptions") ? (x(), u(E(O(n)(O(F), "afterOptions")), { key: 5 })) : d("", !0)
|
|
167
168
|
]),
|
|
168
169
|
_: 3
|
|
169
170
|
}, 16, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergePartBind as e, useBridgeUIComponent as t, useBridgeUIMergedRegistryClasses as n } from "../../../Utils/index.js";
|
|
2
2
|
import { computed as r, useAttrs as i } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { cn as a, mergeBridgeUILayeredClasses as o, splitComponentProps as s } from "@bridge-ui/core";
|
|
4
|
+
import { get as c } from "es-toolkit/compat";
|
|
5
5
|
import { colorProps as l, invalidatedProps as u, sizeProps as d } from "@bridge-ui/core/Tokens/Listbox";
|
|
6
6
|
//#region src/Components/Listbox/composables/useListbox.ts
|
|
7
7
|
var f = [
|
|
@@ -14,7 +14,7 @@ var f = [
|
|
|
14
14
|
"disableMaxHeight"
|
|
15
15
|
];
|
|
16
16
|
function p(p, m) {
|
|
17
|
-
let h = i(), g = r(() =>
|
|
17
|
+
let h = i(), g = r(() => s({
|
|
18
18
|
props: {
|
|
19
19
|
...h,
|
|
20
20
|
...p
|
|
@@ -27,19 +27,19 @@ function p(p, m) {
|
|
|
27
27
|
}), y = n({
|
|
28
28
|
entry: v,
|
|
29
29
|
props: () => g.value.componentProps
|
|
30
|
-
}), b = r(() =>
|
|
30
|
+
}), b = r(() => c(o(l, v.value?.tokens?.color), _.value.color ?? "primary")), x = r(() => o(u, v.value?.tokens?.invalidated)), S = r(() => _.value.invalidated ? x.value : b.value), C = r(() => c(o(d, v.value?.tokens?.size), _.value.size ?? "md")), w = r(() => S.value?.selected), T = r(() => S.value?.highlighted);
|
|
31
31
|
return {
|
|
32
32
|
merged: _,
|
|
33
|
-
checkClass: r(() =>
|
|
33
|
+
checkClass: r(() => a(C.value?.check, S.value?.check)),
|
|
34
34
|
scrollBind: r(() => {
|
|
35
35
|
let t = _.value.maxHeight ?? "max-h-60", n = _.value.disableMaxHeight === !0;
|
|
36
|
-
return e(_.value.customProps?.scroll, {},
|
|
36
|
+
return e(_.value.customProps?.scroll, {}, a({
|
|
37
37
|
"overflow-y-auto overscroll-contain": !n,
|
|
38
38
|
[t]: !n,
|
|
39
39
|
[y.value.scroll ?? ""]: !0
|
|
40
40
|
}));
|
|
41
41
|
}),
|
|
42
|
-
messageBind: r(() => e({}, {},
|
|
42
|
+
messageBind: r(() => e({}, {}, a({
|
|
43
43
|
"text-gray-500": !0,
|
|
44
44
|
[C.value?.message ?? ""]: !0
|
|
45
45
|
}))),
|