@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.
Files changed (152) hide show
  1. package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +8 -8
  2. package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +5 -5
  3. package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +17 -17
  4. package/dist/Adapters/I18n/index.d.ts +1 -0
  5. package/dist/Adapters/I18n/index.js +2 -0
  6. package/dist/Adapters/I18n/useI18nAdapter.d.ts +16 -0
  7. package/dist/Adapters/I18n/useI18nAdapter.js +18 -0
  8. package/dist/Adapters/Icon/iconSource.types.d.ts +11 -0
  9. package/dist/Adapters/Icon/index.d.ts +2 -0
  10. package/dist/Adapters/Icon/index.js +2 -0
  11. package/dist/Adapters/Icon/useIconAdapter.d.ts +11 -0
  12. package/dist/Adapters/Icon/useIconAdapter.js +13 -0
  13. package/dist/Adapters/index.d.ts +3 -0
  14. package/dist/Adapters/index.js +3 -0
  15. package/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +1 -5
  16. package/dist/Components/Alert/alert.types.d.ts +2 -2
  17. package/dist/Components/Alert/alertDefaultIcons.d.ts +2 -2
  18. package/dist/Components/Alert/alertDefaultIcons.js +9 -10
  19. package/dist/Components/Alert/composables/useAlert.d.ts +2 -2
  20. package/dist/Components/Alert/composables/useAlert.js +17 -17
  21. package/dist/Components/Autocomplete/Autocomplete.js +5 -0
  22. package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +40 -0
  23. package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +197 -0
  24. package/dist/Components/Autocomplete/AutocompleteOption.js +5 -0
  25. package/dist/Components/Autocomplete/AutocompleteOption.vue.d.ts +4 -0
  26. package/dist/Components/Autocomplete/AutocompleteOption.vue_vue_type_script_setup_true_lang.js +32 -0
  27. package/dist/Components/Autocomplete/autocomplete.types.d.ts +285 -0
  28. package/dist/Components/Autocomplete/autocompleteInjectionKey.d.ts +7 -0
  29. package/dist/Components/Autocomplete/autocompleteInjectionKey.js +4 -0
  30. package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +762 -0
  31. package/dist/Components/Autocomplete/composables/useAutocomplete.js +382 -0
  32. package/dist/Components/Autocomplete/index.d.ts +4 -0
  33. package/dist/Components/Autocomplete/index.js +4 -0
  34. package/dist/Components/Avatar/Avatar.vue_vue_type_script_setup_true_lang.js +1 -1
  35. package/dist/Components/Avatar/avatar.types.d.ts +2 -2
  36. package/dist/Components/Avatar/composables/useAvatar.d.ts +1 -1
  37. package/dist/Components/Avatar/composables/useAvatar.js +46 -47
  38. package/dist/Components/Badge/composables/useBadge.js +8 -8
  39. package/dist/Components/Button/Button.vue_vue_type_script_setup_true_lang.js +24 -25
  40. package/dist/Components/Button/button.types.d.ts +4 -4
  41. package/dist/Components/Button/composables/useButton.d.ts +1 -1
  42. package/dist/Components/Button/composables/useButton.js +14 -14
  43. package/dist/Components/Card/composables/useCard.js +27 -27
  44. package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +27 -27
  45. package/dist/Components/Checkbox/composables/useCheckbox.d.ts +4 -4
  46. package/dist/Components/Checkbox/composables/useCheckbox.js +9 -9
  47. package/dist/Components/Chip/Chip.vue_vue_type_script_setup_true_lang.js +8 -9
  48. package/dist/Components/Chip/composables/useChip.js +6 -6
  49. package/dist/Components/Divider/composables/useDivider.js +5 -5
  50. package/dist/Components/Drawer/composables/useDrawer.js +23 -23
  51. package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +1 -1
  52. package/dist/Components/FormControl/composables/useFormControl.d.ts +3 -3
  53. package/dist/Components/FormControl/composables/useFormControl.js +12 -12
  54. package/dist/Components/FormControl/formControl.types.d.ts +6 -6
  55. package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  56. package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  57. package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  58. package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  59. package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  60. package/dist/Components/FormField/composables/useFormField.d.ts +6 -6
  61. package/dist/Components/FormField/composables/useFormField.js +108 -109
  62. package/dist/Components/FormField/formField.types.d.ts +19 -19
  63. package/dist/Components/Icon/Icon.vue_vue_type_script_setup_true_lang.js +7 -7
  64. package/dist/Components/Icon/composables/useIcon.d.ts +2 -0
  65. package/dist/Components/Icon/composables/useIcon.js +20 -18
  66. package/dist/Components/Icon/icon.types.d.ts +3 -3
  67. package/dist/Components/Label/composables/useLabel.d.ts +1 -1
  68. package/dist/Components/Label/composables/useLabel.js +5 -5
  69. package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +2 -2
  70. package/dist/Components/Link/composables/useLink.js +9 -9
  71. package/dist/Components/Link/link.types.d.ts +3 -3
  72. package/dist/Components/List/composables/useList.js +6 -6
  73. package/dist/Components/ListItem/composables/useListItem.d.ts +2 -2
  74. package/dist/Components/ListItem/composables/useListItem.js +81 -82
  75. package/dist/Components/ListItem/listItem.types.d.ts +2 -2
  76. package/dist/Components/ListSection/composables/useListSection.js +8 -8
  77. package/dist/Components/Listbox/Listbox.vue.d.ts +0 -2
  78. package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +75 -74
  79. package/dist/Components/Listbox/composables/useListbox.js +7 -7
  80. package/dist/Components/Listbox/index.js +3 -3
  81. package/dist/Components/Menu/composables/useMenu.js +43 -43
  82. package/dist/Components/Modal/composables/useModal.js +18 -18
  83. package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +43 -43
  84. package/dist/Components/NumberField/composables/useNumberField.d.ts +8 -8
  85. package/dist/Components/NumberField/composables/useNumberField.js +9 -9
  86. package/dist/Components/OtpField/OtpField.js +5 -0
  87. package/dist/Components/OtpField/OtpField.vue.d.ts +31 -0
  88. package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +80 -0
  89. package/dist/Components/OtpField/OtpFieldLabel.js +5 -0
  90. package/dist/Components/OtpField/OtpFieldLabel.vue.d.ts +7 -0
  91. package/dist/Components/OtpField/OtpFieldLabel.vue_vue_type_script_setup_true_lang.js +16 -0
  92. package/dist/Components/OtpField/composables/useOtpField.d.ts +460 -0
  93. package/dist/Components/OtpField/composables/useOtpField.js +212 -0
  94. package/dist/Components/OtpField/index.d.ts +4 -0
  95. package/dist/Components/OtpField/index.js +3 -0
  96. package/dist/Components/OtpField/otpField.types.d.ts +290 -0
  97. package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +27 -27
  98. package/dist/Components/PasswordField/composables/usePasswordField.d.ts +8 -8
  99. package/dist/Components/PasswordField/composables/usePasswordField.js +2 -2
  100. package/dist/Components/Progress/composables/useProgress.js +11 -11
  101. package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +2 -2
  102. package/dist/Components/Radio/composables/useRadio.d.ts +4 -4
  103. package/dist/Components/Radio/composables/useRadio.js +9 -9
  104. package/dist/Components/Select/Select.vue.d.ts +1 -2
  105. package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +72 -68
  106. package/dist/Components/Select/composables/useSelect.d.ts +10 -10
  107. package/dist/Components/Select/composables/useSelect.js +193 -193
  108. package/dist/Components/Skeleton/composables/useSkeleton.js +5 -5
  109. package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +81 -75
  110. package/dist/Components/Snackbar/composables/useSnackbar.d.ts +4 -4
  111. package/dist/Components/Snackbar/composables/useSnackbar.js +115 -115
  112. package/dist/Components/Snackbar/snackbar.types.d.ts +2 -2
  113. package/dist/Components/Snackbar/snackbarDefaultIcons.d.ts +3 -3
  114. package/dist/Components/Snackbar/snackbarDefaultIcons.js +9 -10
  115. package/dist/Components/Spinner/composables/useSpinner.js +11 -11
  116. package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +2 -2
  117. package/dist/Components/Switch/composables/useSwitch.d.ts +4 -4
  118. package/dist/Components/Switch/composables/useSwitch.js +9 -9
  119. package/dist/Components/Tab/Tab.vue_vue_type_script_setup_true_lang.js +2 -2
  120. package/dist/Components/Tab/composables/useTab.js +11 -11
  121. package/dist/Components/Tab/tab.types.d.ts +3 -3
  122. package/dist/Components/TabItem/TabItem.vue_vue_type_script_setup_true_lang.js +2 -2
  123. package/dist/Components/TabItem/tabItem.types.d.ts +3 -3
  124. package/dist/Components/TabList/composables/useTabList.js +7 -7
  125. package/dist/Components/TabPanel/composables/useTabPanel.js +7 -7
  126. package/dist/Components/Tabs/composables/useTabs.d.ts +468 -4
  127. package/dist/Components/Tabs/composables/useTabs.js +22 -22
  128. package/dist/Components/Tabs/tabsInjectionKey.d.ts +5 -5
  129. package/dist/Components/TextField/TextField.vue.d.ts +1 -1
  130. package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +6 -6
  131. package/dist/Components/TextField/composables/useTextField.d.ts +8 -8
  132. package/dist/Components/TextField/composables/useTextField.js +1 -1
  133. package/dist/Components/Textarea/Textarea.vue.d.ts +1 -1
  134. package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +6 -6
  135. package/dist/Components/Textarea/composables/useTextarea.d.ts +8 -8
  136. package/dist/Components/Textarea/composables/useTextarea.js +9 -9
  137. package/dist/Components/Tooltip/Tooltip.js +5 -0
  138. package/dist/Components/Tooltip/Tooltip.vue.d.ts +35 -0
  139. package/dist/Components/Tooltip/Tooltip.vue_vue_type_script_setup_true_lang.js +73 -0
  140. package/dist/Components/Tooltip/composables/useTooltip.d.ts +50 -0
  141. package/dist/Components/Tooltip/composables/useTooltip.js +208 -0
  142. package/dist/Components/Tooltip/index.d.ts +4 -0
  143. package/dist/Components/Tooltip/index.js +3 -0
  144. package/dist/Components/Tooltip/tooltip.types.d.ts +166 -0
  145. package/dist/Provider/bridgeUITypes.d.ts +4 -1
  146. package/dist/Provider/createBridgeUIApi.js +15 -2
  147. package/dist/Utils/index.js +7 -7
  148. package/dist/Utils/useBreakpoint.js +7 -7
  149. package/dist/augments.d.ts +2 -2
  150. package/dist/index.d.ts +11 -1
  151. package/dist/index.js +84 -76
  152. 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 { get as s, omit as c } from "es-toolkit/compat";
5
- import { cn as l, splitComponentProps as u } from "@bridge-ui/core";
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(() => u({
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(() => c(m.value.inheritedAttrs, []));
29
+ let y = i(() => u(m.value.inheritedAttrs, []));
30
30
  return {
31
31
  merged: h,
32
- rootBind: i(() => e(_.value?.root, y.value, l({
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
- [s(v.value, "root") ?? ""]: !0
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<LucideIcon | null>;
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 { LIST_INJECTION_KEY as o } from "../../List/listInjectionKey.js";
4
- import { getListboxOptionId as s } from "../../Listbox/composables/useListboxNavigation.js";
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 { get as g, isNull as _, omit as v } from "es-toolkit/compat";
8
- import { cn as y, splitComponentProps as b } from "@bridge-ui/core";
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 S = [
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 C(t, n, C) {
27
- let w = m(), T = d(o, null), E = d(c, null), D = E != null, O = l(() => b({
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
- ...w,
28
+ ...C,
30
29
  ...t
31
30
  },
32
- bridgeKeys: S
33
- })), { merged: k, entry: A } = i({
31
+ bridgeKeys: x
32
+ })), { merged: O, entry: k } = i({
34
33
  libDefaults: n,
35
34
  componentName: "ListItem",
36
- props: () => O.value.componentProps
37
- }), j = l(() => E ? p(E) : null), M = l(() => k.value.value == null || !D ? null : {
38
- value: k.value.value,
39
- description: k.value.secondary,
40
- disabled: !!k.value.disabled,
41
- label: k.value.primary ?? String(k.value.value)
42
- }), N;
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 = M.value;
43
+ let e = j.value;
45
44
  return e ? `${String(e.value)}:${e.label}:${e.disabled}:${e.description ?? ""}` : null;
46
45
  }, () => {
47
- N?.(), N = void 0;
48
- let e = M.value;
49
- !e || !E || (N = p(E).registerOption(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
- N?.();
50
+ M?.();
52
51
  });
53
- let P = l(() => M.value != null), F = l(() => !M.value || !j.value ? !1 : j.value.isSelected(M.value.value)), I = l(() => !M.value || !j.value ? -1 : j.value.getOptionIndex(M.value.value)), L = l(() => !j.value || I.value < 0 ? !1 : j.value.highlightedIndex === I.value), R = l(() => k.value.customProps), z = a({
54
- entry: A,
55
- props: () => O.value.componentProps
56
- }), B = l(() => "dense" in (u()?.vnode.props ?? {}) ? t.dense === !0 : t.dense === !0 ? !0 : T ? p(T).dense : !1), V = l(() => e(C, "primary") || e(C, "default") || !!k.value.primary), H = l(() => e(C, "secondary") || !!k.value.secondary), U = l(() => e(C, "start")), W = l(() => P.value ? !F.value || !j.value?.showCheckmark ? null : x : !k.value.selected || _(k.value.selectedIcon) ? null : k.value.selectedIcon ?? x), G = l(() => e(C, "end") || W.value != null), K = l(() => v(O.value.inheritedAttrs, [])), q = l(() => r(R.value?.root, K.value, {
57
- class: y({
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": k.value.divider,
60
- [g(z.value, "root") ?? ""]: !0
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: P.value && j.value?.listboxId && I.value >= 0 ? s(j.value.listboxId, I.value) : void 0
63
- })), J = l(() => k.value.interactive || P.value ? r(R.value?.interactive, {}, {
64
- "aria-disabled": k.value.disabled ? !0 : void 0,
65
- role: P.value ? "option" : k.value.role,
66
- tabindex: k.value.disabled || P.value ? -1 : 0,
67
- "data-selected": k.value.selected || F.value ? !0 : void 0,
68
- "aria-selected": P.value ? F.value : void 0,
69
- onMousedown: P.value ? (e) => {
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: P.value ? () => {
73
- M.value && j.value?.onSelect(M.value);
71
+ onClick: N.value ? () => {
72
+ j.value && A.value?.onSelect(j.value);
74
73
  } : void 0,
75
- class: y({
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": !k.value.disabled,
76
+ "cursor-pointer select-none": !O.value.disabled,
78
77
  "px-4": !0,
79
- "py-2": !B.value,
80
- "py-1.5": B.value,
81
- "hover:bg-black/5 focus-visible:bg-black/5 dark:hover:bg-white/10 dark:focus-visible:bg-white/10": !k.value.disabled && !P.value,
82
- "bg-dark-100 font-medium text-dark-900 dark:bg-white/15 dark:text-white": k.value.selected && !P.value,
83
- [j.value?.optionSelectedClass ?? ""]: P.value && F.value,
84
- [j.value?.mergedClasses.optionSelected ?? ""]: P.value && F.value,
85
- [j.value?.optionHighlightedClass ?? ""]: P.value && L.value && !F.value,
86
- [j.value?.mergedClasses.optionHighlighted ?? ""]: P.value && L.value && !F.value,
87
- "opacity-50 pointer-events-none": k.value.disabled,
88
- [g(z.value, "interactive") ?? ""]: !0,
89
- [j.value?.sizeClasses?.option ?? ""]: !0
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), Y = l(() => y({
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": !k.value.interactive,
94
- "px-4": !k.value.interactive,
95
- "py-2": !k.value.interactive && !B.value,
96
- "py-1.5": !k.value.interactive && B.value
97
- })), X = l(() => r(R.value?.start, {}, y({
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
- [g(z.value, "start") ?? ""]: !0
100
- }))), Z = l(() => r(R.value?.content, {}, y({
98
+ [v(R.value, "start") ?? ""]: !0
99
+ }))), X = l(() => r(L.value?.content, {}, g({
101
100
  "min-w-0 flex-1": !0,
102
- [g(z.value, "content") ?? ""]: !0
103
- }))), Q = l(() => r(R.value?.primary, {}, y("block truncate text-sm font-medium", j.value?.sizeClasses?.primary, g(z.value, "primary")))), $ = l(() => r(R.value?.secondary, {}, y("mt-0.5 block truncate text-xs text-dark-500 dark:text-dark-400", j.value?.sizeClasses?.secondary, g(z.value, "secondary"))));
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: k,
106
- hasEnd: G,
107
- endBind: l(() => r(R.value?.end, {}, y({
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
- [g(z.value, "end") ?? ""]: !0
108
+ [v(R.value, "end") ?? ""]: !0
110
109
  }))),
111
- rootBind: q,
112
- rowClass: Y,
113
- hasStart: U,
114
- startBind: X,
115
- hasPrimary: V,
116
- contentBind: Z,
117
- primaryBind: Q,
118
- hasSecondary: H,
119
- secondaryBind: $,
120
- interactiveBind: J,
121
- selectedIconBind: l(() => r(R.value?.selectedIcon, {}, {
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: y("shrink-0", j.value?.checkClass, g(z.value, "selectedIcon"))
122
+ class: g("shrink-0", A.value?.checkClass, v(R.value, "selectedIcon"))
124
123
  })),
125
- resolvedSelectedIcon: W
124
+ resolvedSelectedIcon: U
126
125
  };
127
126
  }
128
- function w(r, i) {
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 { w as resolveListItemPrimary, C as useListItem };
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 | LucideIcon;
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 { get as l, omit as u } from "es-toolkit/compat";
6
- import { cn as d, splitComponentProps as f } from "@bridge-ui/core";
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(() => f({
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(() => u(v.value.inheritedAttrs, [])), E = a(() => y.value.as === "div");
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, d({
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
- [l(S.value, "root") ?? ""]: !0
36
+ [d(S.value, "root") ?? ""]: !0
37
37
  }))),
38
38
  titleBind: a(() => t(x.value?.title, {}, {
39
39
  role: "presentation",
40
- class: d({
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
- [l(S.value, "title") ?? ""]: !0
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 { hasNamedSlot as e, resolveNamedSlot as t } from "../../Utils/slotOrProp.js";
2
- import { mergeNestedComponentProps as n } from "../../Utils/index.js";
3
- import r from "../List/List.js";
4
- import { useListbox as i } from "./composables/useListbox.js";
5
- import { LISTBOX_INJECTION_KEY as ee } from "./listboxInjectionKey.js";
6
- import te from "../ListItem/ListItem.js";
7
- import ne from "../ListSection/ListSection.js";
8
- import a from "../Menu/Menu.js";
9
- import o from "../Progress/Progress.js";
10
- import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createVNode as m, defineComponent as h, guardReactiveProps as g, mergeModels as _, mergeProps as v, normalizeProps as y, openBlock as b, provide as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as T, toDisplayString as E, unref as D, useModel as re, useSlots as ie, watch as O, withCtx as k } from "vue";
11
- import { isNil as ae } from "es-toolkit/compat";
12
- import { cn as A, entriesFromListboxOptions as j, flattenListboxOptions as M, mapListboxEntriesToRows as N } from "@bridge-ui/core";
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__ */ h({
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: { default: "No options" },
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: { default: "Loading..." },
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(h, { emit: _ }) {
68
- let F = ie(), I = _, L = re(h, "modelValue");
69
- O(L, (e) => {
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 = h, { merged: z, checkClass: B, scrollBind: V, messageBind: H, sizeClasses: U, mergedClasses: W, optionSelectedClass: G, optionHighlightedClass: oe } = i(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
- }), K = c(() => R.options ?? []), q = c(() => R.entries ? R.entries : j(K.value)), J = c(() => M(q.value)), Y = c(() => e(F, "default")), X = c(() => !R.loading && !Y.value && J.value.length === 0 && R.hideEmptyMessage !== !0), se = c(() => A(B.value, W.value.check)), Z = S([]);
76
- function Q(e) {
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 ce(e) {
80
+ function de(e) {
80
81
  e.disabled || I("select", e);
81
82
  }
82
- function le(e) {
83
- return Z.value.some((t) => String(t.value) === String(e.value)) || (Z.value = [...Z.value, e]), () => {
84
- Z.value = Z.value.filter((t) => String(t.value) !== String(e.value));
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 ue(e) {
88
- return (Y.value ? Z.value : J.value).findIndex((t) => String(t.value) === String(e));
88
+ function pe(e) {
89
+ return (X.value ? Q.value : Y.value).findIndex((t) => String(t.value) === String(e));
89
90
  }
90
- O(Z, (e) => {
91
- Y.value && I("registered-options-change", e);
92
- }, { deep: !0 }), x(ee, c(() => ({
93
- getOptionIndex: ue,
94
- registerOption: le,
95
- onSelect: ce,
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: Q,
98
- sizeClasses: U.value,
98
+ isSelected: $,
99
+ sizeClasses: K.value,
99
100
  showCheckmark: R.showCheckmark,
100
- checkClass: se.value,
101
+ checkClass: ue.value,
101
102
  highlightedIndex: R.highlightedIndex,
102
- optionSelectedClass: G.value,
103
- optionHighlightedClass: oe.value,
103
+ optionSelectedClass: se.value,
104
+ optionHighlightedClass: ce.value,
104
105
  mergedClasses: {
105
- optionSelected: W.value.optionSelected,
106
- optionHighlighted: W.value.optionHighlighted
106
+ optionSelected: q.value.optionSelected,
107
+ optionHighlighted: q.value.optionHighlighted
107
108
  }
108
109
  })));
109
- let de = c(() => N(q.value, Q)), fe = c(() => z.value.customProps?.menu), pe = c(() => z.value.customProps?.list), $ = c(() => z.value.customProps?.listItem), me = c(() => z.value.customProps?.progress), he = c(() => z.value.customProps?.listSection), ge = c(() => ({
110
- ...ae(R.rounded) ? {} : { rounded: R.rounded },
111
- ...fe.value
112
- })), _e = c(() => ({
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: z.value.color,
116
- ...n(me.value, {
116
+ color: H.value.color,
117
+ ...r(ve.value, {
117
118
  class: "shrink-0",
118
- classes: { bar: W.value.loading }
119
+ classes: { bar: q.value.loading }
119
120
  })
120
- })), ve = c(() => ({
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
- ...n(pe.value, { class: "p-0" })
127
+ ...r(ge.value, { class: "p-0" })
127
128
  }));
128
- return (n, i) => (b(), l(D(a), v({
129
+ return (e, r) => (x(), u(O(s), y({
129
130
  modelValue: L.value,
130
- "onUpdate:modelValue": i[0] ||= (e) => L.value = e,
131
- "anchor-el": h.anchorEl,
132
- placement: h.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": h.disableAutoFocus
135
- }, ge.value), {
136
- default: k(() => [
137
- D(e)(D(F), "beforeOptions") ? (b(), l(T(D(t)(D(F), "beforeOptions")), { key: 0 })) : u("", !0),
138
- h.loading ? (b(), d(s, { key: 1 }, [m(D(o), y(g(_e.value)), null, 16), f("div", y(g(D(H))), [D(e)(D(F), "loading") ? (b(), l(T(D(t)(D(F), "loading")), { key: 0 })) : (b(), d("span", P, E(h.loadingMessage), 1))], 16)], 64)) : (b(), d("div", y(v({ key: 2 }, D(V))), [m(D(r), y(g(ve.value)), {
139
- default: k(() => [Y.value ? w(n.$slots, "default", { key: 0 }) : (b(!0), d(s, { key: 1 }, C(de.value, (t) => (b(), d(s, { key: t.key }, [t.kind === "section" ? (b(), l(D(ne), v({
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: t.title,
142
- sticky: t.sticky
143
- }, { ref_for: !0 }, he.value), null, 16, ["title", "sticky"])) : (b(), l(D(te), v({
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: t.option.value,
147
- disabled: t.option.disabled,
148
- secondary: t.option.description,
149
- primary: D(e)(D(F), "option") ? void 0 : t.option.label
150
- }, { ref_for: !0 }, $.value), p({ _: 2 }, [D(e)(D(F), "option") ? {
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: k(() => [w(n.$slots, "option", {
153
- option: t.option,
154
- selected: t.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
- X.value && !D(e)(D(F), "empty") ? (b(), d("div", y(v({ key: 3 }, D(H))), E(h.emptyMessage), 17)) : X.value && D(e)(D(F), "empty") ? (b(), l(T(D(t)(D(F), "empty")), { key: 4 })) : u("", !0),
166
- D(e)(D(F), "afterOptions") ? (b(), l(T(D(t)(D(F), "afterOptions")), { key: 5 })) : u("", !0)
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 { get as a } from "es-toolkit/compat";
4
- import { cn as o, mergeBridgeUILayeredClasses as s, splitComponentProps as c } from "@bridge-ui/core";
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(() => c({
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(() => a(s(l, v.value?.tokens?.color), _.value.color ?? "primary")), x = r(() => s(u, v.value?.tokens?.invalidated)), S = r(() => _.value.invalidated ? x.value : b.value), C = r(() => a(s(d, v.value?.tokens?.size), _.value.size ?? "md")), w = r(() => S.value?.selected), T = r(() => S.value?.highlighted);
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(() => o(C.value?.check, S.value?.check)),
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, {}, o({
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({}, {}, o({
42
+ messageBind: r(() => e({}, {}, a({
43
43
  "text-gray-500": !0,
44
44
  [C.value?.message ?? ""]: !0
45
45
  }))),