@bridge-ui/vue 0.0.6 → 0.0.8

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 (204) hide show
  1. package/ai/AGENTS.md +31 -0
  2. package/ai/README.md +35 -0
  3. package/ai/guidelines/core.md +44 -0
  4. package/ai/llms.txt +38 -0
  5. package/ai/skills/bridge-ui-components/SKILL.md +37 -0
  6. package/ai/skills/bridge-ui-forms/SKILL.md +38 -0
  7. package/ai/skills/bridge-ui-overlays/SKILL.md +37 -0
  8. package/ai/skills/bridge-ui-setup/SKILL.md +38 -0
  9. package/bin/__tests__/ai.test.ts +319 -0
  10. package/bin/ai.mjs +469 -0
  11. package/dist/Actions/Snackbar/BridgeSnackbarAction.vue_vue_type_script_setup_true_lang.js +8 -8
  12. package/dist/Actions/Snackbar/BridgeSnackbarHost.vue_vue_type_script_setup_true_lang.js +5 -5
  13. package/dist/Actions/Snackbar/createBridgeSnackbarApi.js +17 -17
  14. package/dist/Adapters/I18n/index.d.ts +1 -1
  15. package/dist/Adapters/I18n/index.js +2 -2
  16. package/dist/Adapters/I18n/useI18nAdapter.d.ts +7 -3
  17. package/dist/Adapters/I18n/useI18nAdapter.js +12 -7
  18. package/dist/Adapters/Icon/useIconAdapter.d.ts +1 -1
  19. package/dist/Adapters/index.d.ts +1 -1
  20. package/dist/Adapters/index.js +3 -3
  21. package/dist/Components/Alert/composables/useAlert.js +17 -17
  22. package/dist/Components/Autocomplete/Autocomplete.js +5 -0
  23. package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +40 -0
  24. package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +197 -0
  25. package/dist/Components/Autocomplete/AutocompleteOption.js +5 -0
  26. package/dist/Components/Autocomplete/AutocompleteOption.vue.d.ts +4 -0
  27. package/dist/Components/Autocomplete/AutocompleteOption.vue_vue_type_script_setup_true_lang.js +32 -0
  28. package/dist/Components/Autocomplete/autocomplete.types.d.ts +285 -0
  29. package/dist/Components/Autocomplete/autocompleteInjectionKey.d.ts +7 -0
  30. package/dist/Components/Autocomplete/autocompleteInjectionKey.js +4 -0
  31. package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +763 -0
  32. package/dist/Components/Autocomplete/composables/useAutocomplete.js +386 -0
  33. package/dist/Components/Autocomplete/index.d.ts +4 -0
  34. package/dist/Components/Autocomplete/index.js +4 -0
  35. package/dist/Components/Avatar/composables/useAvatar.d.ts +1 -1
  36. package/dist/Components/Avatar/composables/useAvatar.js +13 -13
  37. package/dist/Components/Badge/composables/useBadge.js +8 -8
  38. package/dist/Components/BaseField/BaseField.js +5 -0
  39. package/dist/Components/BaseField/BaseField.vue.d.ts +15 -0
  40. package/dist/Components/BaseField/BaseField.vue_vue_type_script_setup_true_lang.js +41 -0
  41. package/dist/Components/BaseField/BaseFieldLabel.js +5 -0
  42. package/dist/Components/BaseField/BaseFieldLabel.vue.d.ts +7 -0
  43. package/dist/Components/BaseField/BaseFieldLabel.vue_vue_type_script_setup_true_lang.js +16 -0
  44. package/dist/Components/BaseField/baseField.types.d.ts +222 -0
  45. package/dist/Components/BaseField/composables/useBaseField.d.ts +55 -0
  46. package/dist/Components/BaseField/composables/useBaseField.js +131 -0
  47. package/dist/Components/BaseField/index.d.ts +4 -0
  48. package/dist/Components/BaseField/index.js +3 -0
  49. package/dist/Components/Button/composables/useButton.d.ts +1 -1
  50. package/dist/Components/Button/composables/useButton.js +14 -14
  51. package/dist/Components/Card/composables/useCard.js +27 -27
  52. package/dist/Components/Checkbox/Checkbox.vue_vue_type_script_setup_true_lang.js +2 -2
  53. package/dist/Components/Checkbox/composables/useCheckbox.d.ts +3 -3
  54. package/dist/Components/Checkbox/composables/useCheckbox.js +9 -9
  55. package/dist/Components/Chip/Chip.vue.d.ts +1 -1
  56. package/dist/Components/Chip/composables/useChip.d.ts +1 -1
  57. package/dist/Components/Chip/composables/useChip.js +6 -6
  58. package/dist/Components/Divider/composables/useDivider.js +5 -5
  59. package/dist/Components/Drawer/Drawer.vue.d.ts +2 -2
  60. package/dist/Components/Drawer/composables/useDrawer.d.ts +1 -1
  61. package/dist/Components/Drawer/composables/useDrawer.js +23 -23
  62. package/dist/Components/FormControl/FormControl.vue_vue_type_script_setup_true_lang.js +1 -1
  63. package/dist/Components/FormControl/composables/useFormControl.d.ts +13 -4
  64. package/dist/Components/FormControl/composables/useFormControl.js +63 -59
  65. package/dist/Components/FormControl/formControl.types.d.ts +6 -6
  66. package/dist/Components/FormControl/index.d.ts +1 -1
  67. package/dist/Components/FormField/FilledFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  68. package/dist/Components/FormField/NotchedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  69. package/dist/Components/FormField/OutlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  70. package/dist/Components/FormField/StackedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  71. package/dist/Components/FormField/UnderlinedFormField.vue_vue_type_script_setup_true_lang.js +2 -2
  72. package/dist/Components/FormField/composables/useFormField.d.ts +7 -3
  73. package/dist/Components/FormField/composables/useFormField.js +29 -29
  74. package/dist/Components/FormField/formField.types.d.ts +14 -14
  75. package/dist/Components/Icon/composables/useIcon.js +5 -5
  76. package/dist/Components/Label/composables/useLabel.js +5 -5
  77. package/dist/Components/Link/composables/useLink.js +9 -9
  78. package/dist/Components/List/composables/useList.js +6 -6
  79. package/dist/Components/ListItem/ListItem.vue.d.ts +1 -1
  80. package/dist/Components/ListItem/composables/useListItem.d.ts +1 -1
  81. package/dist/Components/ListItem/composables/useListItem.js +20 -20
  82. package/dist/Components/ListSection/composables/useListSection.js +8 -8
  83. package/dist/Components/Listbox/Listbox.vue.d.ts +3 -3
  84. package/dist/Components/Listbox/Listbox.vue_vue_type_script_setup_true_lang.js +29 -28
  85. package/dist/Components/Listbox/composables/useListbox.d.ts +10 -1
  86. package/dist/Components/Listbox/composables/useListbox.js +23 -23
  87. package/dist/Components/Listbox/index.d.ts +1 -0
  88. package/dist/Components/Listbox/index.js +3 -3
  89. package/dist/Components/Listbox/listbox.types.d.ts +6 -0
  90. package/dist/Components/Menu/Menu.vue.d.ts +2 -2
  91. package/dist/Components/Menu/composables/useMenu.js +43 -43
  92. package/dist/Components/Modal/Modal.vue.d.ts +2 -2
  93. package/dist/Components/Modal/composables/useModal.d.ts +1 -1
  94. package/dist/Components/Modal/composables/useModal.js +18 -18
  95. package/dist/Components/NumberField/NumberField.vue.d.ts +2 -2
  96. package/dist/Components/NumberField/NumberField.vue_vue_type_script_setup_true_lang.js +34 -34
  97. package/dist/Components/NumberField/composables/useNumberField.d.ts +4 -4
  98. package/dist/Components/NumberField/composables/useNumberField.js +13 -10
  99. package/dist/Components/OtpField/OtpField.js +5 -0
  100. package/dist/Components/OtpField/OtpField.vue.d.ts +31 -0
  101. package/dist/Components/OtpField/OtpField.vue_vue_type_script_setup_true_lang.js +62 -0
  102. package/dist/Components/OtpField/composables/useOtpField.d.ts +287 -0
  103. package/dist/Components/OtpField/composables/useOtpField.js +154 -0
  104. package/dist/Components/OtpField/index.d.ts +4 -0
  105. package/dist/Components/OtpField/index.js +3 -0
  106. package/dist/Components/OtpField/otpField.types.d.ts +120 -0
  107. package/dist/Components/PasswordField/PasswordField.vue_vue_type_script_setup_true_lang.js +23 -23
  108. package/dist/Components/PasswordField/composables/usePasswordField.d.ts +4 -4
  109. package/dist/Components/PasswordField/composables/usePasswordField.js +6 -3
  110. package/dist/Components/Progress/composables/useProgress.js +11 -11
  111. package/dist/Components/Radio/Radio.vue_vue_type_script_setup_true_lang.js +2 -2
  112. package/dist/Components/Radio/composables/useRadio.d.ts +3 -3
  113. package/dist/Components/Radio/composables/useRadio.js +9 -9
  114. package/dist/Components/Select/Select.vue.d.ts +5 -5
  115. package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +16 -13
  116. package/dist/Components/Select/composables/useSelect.d.ts +5 -4
  117. package/dist/Components/Select/composables/useSelect.js +167 -163
  118. package/dist/Components/Skeleton/composables/useSkeleton.js +5 -5
  119. package/dist/Components/Slider/Slider.js +5 -0
  120. package/dist/Components/Slider/Slider.vue.d.ts +25 -0
  121. package/dist/Components/Slider/Slider.vue_vue_type_script_setup_true_lang.js +113 -0
  122. package/dist/Components/Slider/composables/useSlider.d.ts +482 -0
  123. package/dist/Components/Slider/composables/useSlider.js +287 -0
  124. package/dist/Components/Slider/index.d.ts +4 -0
  125. package/dist/Components/Slider/index.js +3 -0
  126. package/dist/Components/Slider/slider.types.d.ts +169 -0
  127. package/dist/Components/Snackbar/Snackbar.vue.d.ts +2 -2
  128. package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +54 -54
  129. package/dist/Components/Snackbar/composables/useSnackbar.js +115 -115
  130. package/dist/Components/Spinner/composables/useSpinner.js +11 -11
  131. package/dist/Components/Switch/Switch.vue_vue_type_script_setup_true_lang.js +2 -2
  132. package/dist/Components/Switch/composables/useSwitch.d.ts +3 -3
  133. package/dist/Components/Switch/composables/useSwitch.js +9 -9
  134. package/dist/Components/Tab/composables/useTab.js +11 -11
  135. package/dist/Components/TabList/composables/useTabList.js +7 -7
  136. package/dist/Components/TabPanel/composables/useTabPanel.js +7 -7
  137. package/dist/Components/Tabs/Tabs.vue.d.ts +2 -2
  138. package/dist/Components/Tabs/composables/useTabs.js +22 -22
  139. package/dist/Components/TextField/TextField.vue.d.ts +1 -1
  140. package/dist/Components/TextField/TextField.vue_vue_type_script_setup_true_lang.js +6 -6
  141. package/dist/Components/TextField/composables/useTextField.d.ts +4 -4
  142. package/dist/Components/TextField/composables/useTextField.js +2 -2
  143. package/dist/Components/Textarea/Textarea.vue.d.ts +1 -1
  144. package/dist/Components/Textarea/Textarea.vue_vue_type_script_setup_true_lang.js +6 -6
  145. package/dist/Components/Textarea/composables/useTextarea.d.ts +4 -4
  146. package/dist/Components/Textarea/composables/useTextarea.js +10 -9
  147. package/dist/Components/Tooltip/composables/useTooltip.js +17 -17
  148. package/dist/Provider/bridgeUITypes.d.ts +4 -1
  149. package/dist/Provider/createBridgeUIApi.js +13 -1
  150. package/dist/Utils/index.d.ts +3 -3
  151. package/dist/Utils/index.js +11 -8
  152. package/dist/Utils/useBreakpoint.js +7 -7
  153. package/dist/augments.d.ts +29 -17
  154. package/dist/index.d.ts +11 -3
  155. package/dist/index.js +88 -80
  156. package/docs/README.md +56 -0
  157. package/docs/components/Alert.md +96 -0
  158. package/docs/components/Autocomplete.md +198 -0
  159. package/docs/components/Avatar.md +60 -0
  160. package/docs/components/Badge.md +47 -0
  161. package/docs/components/BaseField.md +126 -0
  162. package/docs/components/BridgeUIProvider.md +151 -0
  163. package/docs/components/Button.md +93 -0
  164. package/docs/components/Card.md +287 -0
  165. package/docs/components/Checkbox.md +87 -0
  166. package/docs/components/Divider.md +56 -0
  167. package/docs/components/Drawer.md +137 -0
  168. package/docs/components/FormControl.md +66 -0
  169. package/docs/components/FormField.md +71 -0
  170. package/docs/components/I18n.md +125 -0
  171. package/docs/components/Icon.md +88 -0
  172. package/docs/components/Label.md +31 -0
  173. package/docs/components/Link.md +71 -0
  174. package/docs/components/List.md +167 -0
  175. package/docs/components/Menu.md +97 -0
  176. package/docs/components/Modal.md +154 -0
  177. package/docs/components/NumberField.md +80 -0
  178. package/docs/components/OtpField.md +133 -0
  179. package/docs/components/PasswordField.md +82 -0
  180. package/docs/components/Progress.md +68 -0
  181. package/docs/components/Radio.md +91 -0
  182. package/docs/components/Select.md +181 -0
  183. package/docs/components/Skeleton.md +38 -0
  184. package/docs/components/Slider.md +140 -0
  185. package/docs/components/Snackbar.md +99 -0
  186. package/docs/components/Spinner.md +61 -0
  187. package/docs/components/Switch.md +72 -0
  188. package/docs/components/Tabs.md +207 -0
  189. package/docs/components/TextField.md +72 -0
  190. package/docs/components/Textarea.md +80 -0
  191. package/docs/components/Tooltip.md +125 -0
  192. package/docs/components/useBreakpoint.md +100 -0
  193. package/docs/components/useDialogAction.md +97 -0
  194. package/docs/components/useDrawerAction.md +75 -0
  195. package/docs/components/useModalAction.md +75 -0
  196. package/docs/components/useSnackbarAction.md +85 -0
  197. package/docs/examples/i18n-dictionary.ts +48 -0
  198. package/docs/examples/i18n-vue-i18n.ts +34 -0
  199. package/docs/examples/icon-fontawesome.ts +112 -0
  200. package/docs/examples/icon-heroicons.ts +57 -0
  201. package/docs/examples/icon-lucide.ts +57 -0
  202. package/docs/examples/icon-phosphor.ts +57 -0
  203. package/docs/examples/icon-tabler.ts +57 -0
  204. package/package.json +13 -5
@@ -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
  };
@@ -9,22 +9,22 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
9
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
10
  select: (option: ListboxOption) => any;
11
11
  "update:modelValue": (value: boolean) => any;
12
- "show-change": (show: boolean) => any;
13
12
  "registered-options-change": (options: ListboxOption[]) => any;
13
+ "show-change": (show: boolean) => any;
14
14
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
15
  onSelect?: ((option: ListboxOption) => any) | undefined;
16
16
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
17
- "onShow-change"?: ((show: boolean) => any) | undefined;
18
17
  "onRegistered-options-change"?: ((options: ListboxOption[]) => any) | undefined;
18
+ "onShow-change"?: ((show: boolean) => any) | undefined;
19
19
  }>, {
20
20
  color: import('@bridge-ui/core').MergeProps<import('@bridge-ui/core').ListboxColor, import('./listbox.types').ListboxColorOverrides>;
21
21
  size: import('@bridge-ui/core').MergeProps<import('@bridge-ui/core').ListboxSize, import('./listbox.types').ListboxSizeOverrides>;
22
- loading: boolean;
23
22
  multiple: boolean;
24
23
  disableAutoFocus: boolean;
25
24
  placement: import('@floating-ui/utils').Placement;
26
25
  hideEmptyMessage: boolean;
27
26
  highlightedIndex: number;
27
+ loading: boolean;
28
28
  showCheckmark: boolean;
29
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
30
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,16 +1,16 @@
1
- import { useI18nAdapter as e } from "../../Adapters/I18n/useI18nAdapter.js";
1
+ import { useResolveMessage as e } from "../../Adapters/I18n/useI18nAdapter.js";
2
2
  import { hasNamedSlot as t, resolveNamedSlot as n } from "../../Utils/slotOrProp.js";
3
3
  import { mergeNestedComponentProps as r } from "../../Utils/index.js";
4
- import ee from "../List/List.js";
5
- import { useListbox as te } from "./composables/useListbox.js";
4
+ import { useListbox as ee } from "./composables/useListbox.js";
5
+ import te from "../List/List.js";
6
6
  import { LISTBOX_INJECTION_KEY as i } from "./listboxInjectionKey.js";
7
7
  import a from "../ListItem/ListItem.js";
8
8
  import o from "../ListSection/ListSection.js";
9
9
  import s from "../Menu/Menu.js";
10
10
  import ne from "../Progress/Progress.js";
11
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 { isNil as ae } from "es-toolkit/compat";
13
- import { cn as oe, entriesFromListboxOptions as se, flattenListboxOptions as j, mapListboxEntriesToRows as M, resolveMessage as N } from "@bridge-ui/core";
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";
14
14
  //#region src/Components/Listbox/Listbox.vue?vue&type=script&setup=true&lang.ts
15
15
  var P = { key: 1 }, F = /* @__PURE__ */ g({
16
16
  __name: "Listbox",
@@ -18,6 +18,7 @@ var P = { key: 1 }, F = /* @__PURE__ */ g({
18
18
  anchorEl: {},
19
19
  classes: {},
20
20
  color: { default: "primary" },
21
+ componentName: {},
21
22
  customProps: {},
22
23
  disableAutoFocus: {
23
24
  type: Boolean,
@@ -70,61 +71,61 @@ var P = { key: 1 }, F = /* @__PURE__ */ g({
70
71
  k(L, (e) => {
71
72
  I("show-change", e);
72
73
  });
73
- let R = g, z = e(), B = l(() => R.emptyMessage ?? N("No options", z.value)), V = l(() => R.loadingMessage ?? N("Loading...", z.value)), { merged: H, checkClass: U, scrollBind: W, messageBind: G, sizeClasses: K, mergedClasses: q, optionSelectedClass: ce, optionHighlightedClass: le } = te(R, {
74
+ 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, {
74
75
  size: "md",
75
76
  color: "primary"
76
- }), ue = l(() => R.options ?? []), J = l(() => R.entries ? R.entries : se(ue.value)), Y = l(() => j(J.value)), X = l(() => t(F, "default")), Z = l(() => !R.loading && !X.value && Y.value.length === 0 && R.hideEmptyMessage !== !0), de = l(() => oe(U.value, q.value.check)), Q = C([]);
77
+ }, { componentName: R.componentName }), 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
78
  function $(e) {
78
79
  return R.isSelected?.(e) ?? !1;
79
80
  }
80
- function fe(e) {
81
+ function de(e) {
81
82
  e.disabled || I("select", e);
82
83
  }
83
- function pe(e) {
84
+ function fe(e) {
84
85
  return Q.value.some((t) => String(t.value) === String(e.value)) || (Q.value = [...Q.value, e]), () => {
85
86
  Q.value = Q.value.filter((t) => String(t.value) !== String(e.value));
86
87
  };
87
88
  }
88
- function me(e) {
89
+ function pe(e) {
89
90
  return (X.value ? Q.value : Y.value).findIndex((t) => String(t.value) === String(e));
90
91
  }
91
92
  k(Q, (e) => {
92
93
  X.value && I("registered-options-change", e);
93
94
  }, { deep: !0 }), S(i, l(() => ({
94
- getOptionIndex: me,
95
- registerOption: pe,
96
- onSelect: fe,
95
+ getOptionIndex: pe,
96
+ registerOption: fe,
97
+ onSelect: de,
97
98
  listboxId: R.listboxId,
98
99
  isSelected: $,
99
100
  sizeClasses: K.value,
100
101
  showCheckmark: R.showCheckmark,
101
- checkClass: de.value,
102
+ checkClass: ue.value,
102
103
  highlightedIndex: R.highlightedIndex,
103
- optionSelectedClass: ce.value,
104
- optionHighlightedClass: le.value,
104
+ optionSelectedClass: se.value,
105
+ optionHighlightedClass: ce.value,
105
106
  mergedClasses: {
106
107
  optionSelected: q.value.optionSelected,
107
108
  optionHighlighted: q.value.optionHighlighted
108
109
  }
109
110
  })));
110
- let he = l(() => M(J.value, $)), ge = l(() => H.value.customProps?.menu), _e = l(() => H.value.customProps?.list), ve = l(() => H.value.customProps?.listItem), ye = l(() => H.value.customProps?.progress), be = l(() => H.value.customProps?.listSection), xe = l(() => ({
111
- ...ae(R.rounded) ? {} : { rounded: R.rounded },
112
- ...ge.value
113
- })), Se = l(() => ({
111
+ 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(() => ({
112
+ ...N(R.rounded) ? {} : { rounded: R.rounded },
113
+ ...he.value
114
+ })), xe = l(() => ({
114
115
  size: "xs",
115
116
  "aria-hidden": !0,
116
117
  color: H.value.color,
117
- ...r(ye.value, {
118
+ ...r(ve.value, {
118
119
  class: "shrink-0",
119
120
  classes: { bar: q.value.loading }
120
121
  })
121
- })), Ce = l(() => ({
122
+ })), Se = l(() => ({
122
123
  dense: !0,
123
124
  role: "listbox",
124
125
  id: R.listboxId,
125
126
  "aria-labelledby": R.labelledBy,
126
127
  "aria-multiselectable": R.multiple || void 0,
127
- ...r(_e.value, { class: "p-0" })
128
+ ...r(ge.value, { class: "p-0" })
128
129
  }));
129
130
  return (e, r) => (x(), u(O(s), y({
130
131
  modelValue: L.value,
@@ -133,22 +134,22 @@ var P = { key: 1 }, F = /* @__PURE__ */ g({
133
134
  placement: g.placement,
134
135
  "close-on-click-away": !0,
135
136
  "disable-auto-focus": g.disableAutoFocus
136
- }, xe.value), {
137
+ }, be.value), {
137
138
  default: A(() => [
138
139
  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(_(Se.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(ee), b(_(Ce.value)), {
140
- default: A(() => [X.value ? T(e.$slots, "default", { key: 0 }) : (x(!0), f(c, { key: 1 }, w(he.value, (n) => (x(), f(c, { key: n.key }, [n.kind === "section" ? (x(), u(O(o), y({
140
+ 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)), {
141
+ 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({
141
142
  key: 0,
142
143
  title: n.title,
143
144
  sticky: n.sticky
144
- }, { ref_for: !0 }, be.value), null, 16, ["title", "sticky"])) : (x(), u(O(a), y({
145
+ }, { ref_for: !0 }, ye.value), null, 16, ["title", "sticky"])) : (x(), u(O(a), y({
145
146
  key: 1,
146
147
  interactive: "",
147
148
  value: n.option.value,
148
149
  disabled: n.option.disabled,
149
150
  secondary: n.option.description,
150
151
  primary: O(t)(O(F), "option") ? void 0 : n.option.label
151
- }, { ref_for: !0 }, ve.value), m({ _: 2 }, [O(t)(O(F), "option") ? {
152
+ }, { ref_for: !0 }, _e.value), m({ _: 2 }, [O(t)(O(F), "option") ? {
152
153
  name: "default",
153
154
  fn: A(() => [T(e.$slots, "option", {
154
155
  option: n.option,
@@ -3,7 +3,16 @@ import { ListboxClasses, ListboxOwnProps } from '../listbox.types';
3
3
  export declare const listboxBridgeKeys: readonly ["size", "color", "classes", "maxHeight", "customProps", "invalidated", "disableMaxHeight"];
4
4
  type ListboxLibDefaults = LibDefaultsShape<ListboxOwnProps, "size" | "color">;
5
5
  type ListboxMerged = MergeLibDefaults<ListboxOwnProps, ListboxLibDefaults>;
6
- export declare function useListbox(props: ListboxOwnProps, libDefaults: ListboxLibDefaults): {
6
+ /**
7
+ * Options for {@link useListbox}.
8
+ */
9
+ export type ListboxOptions = {
10
+ /**
11
+ * Public registry key that owns nested `tokens.listbox` defaults.
12
+ */
13
+ componentName?: "Select" | "Autocomplete";
14
+ };
15
+ export declare function useListbox(props: ListboxOwnProps, libDefaults: ListboxLibDefaults, options?: ListboxOptions): {
7
16
  merged: import('vue').ComputedRef<ListboxMerged>;
8
17
  checkClass: import('vue').ComputedRef<string>;
9
18
  scrollBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<object, "class", import('vue').HTMLAttributes | undefined, {}>>;
@@ -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 = [
@@ -13,40 +13,40 @@ var f = [
13
13
  "invalidated",
14
14
  "disableMaxHeight"
15
15
  ];
16
- function p(p, m) {
17
- let h = i(), g = r(() => c({
16
+ function p(p, m, h = {}) {
17
+ let g = i(), _ = r(() => s({
18
18
  props: {
19
- ...h,
19
+ ...g,
20
20
  ...p
21
21
  },
22
22
  bridgeKeys: f
23
- })), { merged: _, entry: v } = t({
23
+ })), { merged: v, entry: y } = t({
24
24
  libDefaults: m,
25
- componentName: "Listbox",
26
- props: () => g.value.componentProps
27
- }), y = n({
28
- entry: v,
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);
25
+ componentName: h.componentName,
26
+ props: () => _.value.componentProps
27
+ }), b = n({
28
+ entry: y,
29
+ props: () => _.value.componentProps
30
+ }), x = r(() => c(y.value, ["tokens", "listbox"])), S = r(() => c(o(l, x.value?.color), v.value.color ?? "primary")), C = r(() => o(u, x.value?.invalidated)), w = r(() => v.value.invalidated ? C.value : S.value), T = r(() => c(o(d, x.value?.size), v.value.size ?? "md")), E = r(() => w.value?.selected), D = r(() => w.value?.highlighted);
31
31
  return {
32
- merged: _,
33
- checkClass: r(() => o(C.value?.check, S.value?.check)),
32
+ merged: v,
33
+ checkClass: r(() => a(T.value?.check, w.value?.check)),
34
34
  scrollBind: r(() => {
35
- let t = _.value.maxHeight ?? "max-h-60", n = _.value.disableMaxHeight === !0;
36
- return e(_.value.customProps?.scroll, {}, o({
35
+ let t = v.value.maxHeight ?? "max-h-60", n = v.value.disableMaxHeight === !0;
36
+ return e(v.value.customProps?.scroll, {}, a({
37
37
  "overflow-y-auto overscroll-contain": !n,
38
38
  [t]: !n,
39
- [y.value.scroll ?? ""]: !0
39
+ [b.value.scroll ?? ""]: !0
40
40
  }));
41
41
  }),
42
- messageBind: r(() => e({}, {}, o({
42
+ messageBind: r(() => e({}, {}, a({
43
43
  "text-gray-500": !0,
44
- [C.value?.message ?? ""]: !0
44
+ [T.value?.message ?? ""]: !0
45
45
  }))),
46
- sizeClasses: C,
47
- mergedClasses: y,
48
- optionSelectedClass: w,
49
- optionHighlightedClass: T
46
+ sizeClasses: T,
47
+ mergedClasses: b,
48
+ optionSelectedClass: E,
49
+ optionHighlightedClass: D
50
50
  };
51
51
  }
52
52
  //#endregion
@@ -1,4 +1,5 @@
1
1
  export { useListbox } from './composables/useListbox';
2
+ export type { ListboxOptions } from './composables/useListbox';
2
3
  export { findFirstEnabledOptionIndex, findLastEnabledOptionIndex, getListboxActiveDescendantId, getListboxOptionId, moveListboxHighlight, useListboxNavigation, } from './composables/useListboxNavigation';
3
4
  export type { ListboxClasses, ListboxColorOverrides, ListboxCustomProps, ListboxEmits, ListboxEntry, ListboxOption, ListboxOwnProps, ListboxProps, ListboxSlots, ListboxValue, } from './listbox.types';
4
5
  export { default as Listbox } from './Listbox.vue';
@@ -1,5 +1,5 @@
1
- import { useListbox as e } from "./composables/useListbox.js";
2
- import { findFirstEnabledOptionIndex as t, findLastEnabledOptionIndex as n, getListboxActiveDescendantId as r, getListboxOptionId as i, moveListboxHighlight as a, useListboxNavigation as o } from "./composables/useListboxNavigation.js";
1
+ import { findFirstEnabledOptionIndex as e, findLastEnabledOptionIndex as t, getListboxActiveDescendantId as n, getListboxOptionId as r, moveListboxHighlight as i, useListboxNavigation as a } from "./composables/useListboxNavigation.js";
2
+ import { useListbox as o } from "./composables/useListbox.js";
3
3
  import { LISTBOX_INJECTION_KEY as s } from "./listboxInjectionKey.js";
4
4
  import c from "./Listbox.js";
5
- export { s as LISTBOX_INJECTION_KEY, c as Listbox, t as findFirstEnabledOptionIndex, n as findLastEnabledOptionIndex, r as getListboxActiveDescendantId, i as getListboxOptionId, a as moveListboxHighlight, e as useListbox, o as useListboxNavigation };
5
+ export { s as LISTBOX_INJECTION_KEY, c as Listbox, e as findFirstEnabledOptionIndex, t as findLastEnabledOptionIndex, n as getListboxActiveDescendantId, r as getListboxOptionId, i as moveListboxHighlight, o as useListbox, a as useListboxNavigation };
@@ -101,6 +101,12 @@ export interface ListboxOwnProps {
101
101
  * @default "primary"
102
102
  */
103
103
  color?: MergeProps<ListboxColor, ListboxColorOverrides>;
104
+ /**
105
+ * Public parent registry key for nested `tokens.listbox`.
106
+ *
107
+ * @internal
108
+ */
109
+ componentName?: "Select" | "Autocomplete";
104
110
  /**
105
111
  * Extra props for internal parts (`list`, `listItem`, `listSection`, `menu`,
106
112
  * `progress`, `scroll`).
@@ -6,11 +6,11 @@ type __VLS_ModelProps = {
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
- "update:modelValue": (value: boolean) => any;
10
9
  close: () => any;
10
+ "update:modelValue": (value: boolean) => any;
11
11
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
13
12
  onClose?: (() => any) | undefined;
13
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
14
  }>, {
15
15
  offset: number;
16
16
  rounded: import('@bridge-ui/core').MergeProps<import('@bridge-ui/core').MenuRounded, import('./menu.types').MenuRoundedOverrides>;
@@ -1,8 +1,8 @@
1
1
  import { mergePartBind as e, resolveVnodeRefElement as t, useBridgeUIComponent as n, useBridgeUIMergedRegistryClasses as ee } from "../../../Utils/index.js";
2
- import { computed as r, nextTick as i, onBeforeUnmount as te, ref as a, toValue as o, useAttrs as ne, useId as re, watch as s } from "vue";
3
- import { get as c, omit as l } from "es-toolkit/compat";
4
- import { LAYER_STACK_BASE_Z_INDEX as u, acquireLayerStackOrder as ie, claimOpenMenu as d, cn as f, createFocusable as p, createPositionable as m, getLayerStackEntry as ae, mergeBridgeUILayeredClasses as h, pushLayerStack as g, splitComponentProps as _, subscribeLayerStack as v } from "@bridge-ui/core";
5
- import { roundedProps as oe, shadowProps as se } from "@bridge-ui/core/Tokens/Menu";
2
+ import { computed as r, nextTick as i, onBeforeUnmount as a, ref as o, toValue as te, useAttrs as s, useId as ne, watch as c } from "vue";
3
+ import { LAYER_STACK_BASE_Z_INDEX as l, acquireLayerStackOrder as u, claimOpenMenu as re, cn as d, createFocusable as f, createPositionable as p, getLayerStackEntry as m, mergeBridgeUILayeredClasses as h, pushLayerStack as ie, splitComponentProps as ae, subscribeLayerStack as oe } from "@bridge-ui/core";
4
+ import { get as g, omit as _ } from "es-toolkit/compat";
5
+ import { roundedProps as v, shadowProps as se } from "@bridge-ui/core/Tokens/Menu";
6
6
  //#region src/Components/Menu/composables/useMenu.ts
7
7
  var ce = [
8
8
  "offset",
@@ -21,11 +21,11 @@ var ce = [
21
21
  "disableScrollLock"
22
22
  ];
23
23
  function y(y, le, b = {}) {
24
- let ue = ne(), x = re(), S = a(!1), C = a(""), w = a(null), T = a(null), E = null, D = null, O = null, k = null, A = null, j = null, M = !1, N = a(u), P = r(() => o(b.show ?? !1));
24
+ let ue = s(), x = ne(), S = o(!1), C = o(""), w = o(null), T = o(null), E = null, D = null, O = null, k = null, A = null, j = null, M = !1, N = o(l), P = r(() => te(b.show ?? !1));
25
25
  function F(e) {
26
26
  e || b.onClose?.(), b.show && (b.show.value = e), b.onShowChange?.(e);
27
27
  }
28
- let I = r(() => _({
28
+ let I = r(() => ae({
29
29
  bridgeKeys: ce,
30
30
  props: {
31
31
  ...ue,
@@ -38,35 +38,35 @@ function y(y, le, b = {}) {
38
38
  }), z = r(() => L.value.customProps), B = ee({
39
39
  entry: R,
40
40
  props: () => I.value.componentProps
41
- }), V = r(() => L.value.keepMounted && !P.value), H = r(() => L.value.teleportTo !== !1), de = r(() => c(h(oe, R.value?.tokens?.rounded), L.value.rounded)), fe = r(() => c(h(se, R.value?.tokens?.shadow), L.value.shadow)), U = r(() => !L.value.persistent), pe = r(() => l(I.value.inheritedAttrs, ["anchorEl", "onShowChange"]));
42
- function W() {
41
+ }), V = r(() => L.value.keepMounted && !P.value), H = r(() => L.value.teleportTo !== !1), de = r(() => g(h(v, R.value?.tokens?.rounded), L.value.rounded)), fe = r(() => g(h(se, R.value?.tokens?.shadow), L.value.shadow)), U = r(() => !L.value.persistent), W = r(() => _(I.value.inheritedAttrs, ["anchorEl", "onShowChange"]));
42
+ function G() {
43
43
  return y.anchorEl ?? w.value;
44
44
  }
45
- function G() {
46
- W()?.focus({ preventScroll: !0 });
45
+ function K() {
46
+ G()?.focus({ preventScroll: !0 });
47
47
  }
48
- function K(e) {
49
- return W()?.contains(e) ?? !1;
48
+ function q(e) {
49
+ return G()?.contains(e) ?? !1;
50
50
  }
51
- function me(e) {
52
- return !(e instanceof Element) || K(e) || T.value?.contains(e) ? !1 : !!e.closest("[aria-haspopup=\"menu\"], button, [role=\"button\"]");
51
+ function pe(e) {
52
+ return !(e instanceof Element) || q(e) || T.value?.contains(e) ? !1 : !!e.closest("[aria-haspopup=\"menu\"], button, [role=\"button\"]");
53
53
  }
54
- function q() {
54
+ function J() {
55
55
  !U.value || !P.value || F(!1);
56
56
  }
57
- function he() {
57
+ function me() {
58
58
  L.value.persistent && P.value || F(!P.value);
59
59
  }
60
- function J(e) {
60
+ function he(e) {
61
61
  e.key !== "ArrowDown" && e.key !== "Enter" && e.key !== " " || (e.preventDefault(), P.value || F(!0));
62
62
  }
63
63
  function ge(e) {
64
64
  let t = T.value;
65
65
  if (!t) return;
66
- let n = p(t);
66
+ let n = f(t);
67
67
  switch (e.key) {
68
68
  case "Escape":
69
- e.preventDefault(), q(), G();
69
+ e.preventDefault(), J(), K();
70
70
  break;
71
71
  case "ArrowDown":
72
72
  e.preventDefault(), n.next()?.focus({ preventScroll: !0 });
@@ -87,22 +87,22 @@ function y(y, le, b = {}) {
87
87
  }
88
88
  function X() {
89
89
  Y();
90
- let e = W(), t = T.value;
91
- !P.value || !e || !t || (k = m({
90
+ let e = G(), t = T.value;
91
+ !P.value || !e || !t || (k = p({
92
92
  floating: t,
93
93
  reference: e,
94
94
  offset: L.value.offset,
95
95
  strategy: L.value.strategy,
96
96
  placement: L.value.placement,
97
97
  onReferenceHidden: () => {
98
- !M || !U.value || !P.value || q();
98
+ !M || !U.value || !P.value || J();
99
99
  }
100
100
  }), k.start(), i(() => {
101
101
  M = !0;
102
102
  }));
103
103
  }
104
104
  function Z() {
105
- !P.value || L.value.disableAutoFocus || !T.value || p(T.value).focusFirst();
105
+ !P.value || L.value.disableAutoFocus || !T.value || f(T.value).focusFirst();
106
106
  }
107
107
  function _e() {
108
108
  if (A?.(), !P.value) {
@@ -111,7 +111,7 @@ function y(y, le, b = {}) {
111
111
  }
112
112
  function e(e) {
113
113
  let t = e.target;
114
- K(t) || T.value?.contains(t) || L.value.closeOnClickAway === !1 || !U.value || me(t) || q();
114
+ q(t) || T.value?.contains(t) || L.value.closeOnClickAway === !1 || !U.value || pe(t) || J();
115
115
  }
116
116
  document.addEventListener("pointerdown", e, !0), A = () => {
117
117
  document.removeEventListener("pointerdown", e, !0);
@@ -130,29 +130,29 @@ function y(y, le, b = {}) {
130
130
  }));
131
131
  }
132
132
  function be() {
133
- !P.value || L.value.closeOnEscape === !1 || !U.value || (q(), G());
133
+ !P.value || L.value.closeOnEscape === !1 || !U.value || (J(), K());
134
134
  }
135
135
  function Q() {
136
- let e = ae(C.value);
136
+ let e = m(C.value);
137
137
  e && (N.value = e.zIndex);
138
138
  }
139
139
  function $() {
140
- j?.(), j = null, A?.(), A = null, O?.(), O = null, D?.release(), D = null, E = null, C.value = "", N.value = u, Y();
140
+ j?.(), j = null, A?.(), A = null, O?.(), O = null, D?.release(), D = null, E = null, C.value = "", N.value = l, Y();
141
141
  }
142
- let xe = r(() => e(z.value?.root, pe.value, f({
142
+ let xe = r(() => e(z.value?.root, W.value, d({
143
143
  "relative inline-block text-left": !0,
144
- [c(B.value, "root") ?? ""]: !0
144
+ [g(B.value, "root") ?? ""]: !0
145
145
  }))), Se = r(() => e(z.value?.trigger, {}, {
146
146
  tabindex: 0,
147
147
  role: "button",
148
148
  "aria-expanded": P.value,
149
- onKeydown: J,
149
+ onKeydown: he,
150
150
  "aria-haspopup": "menu",
151
- onClickCapture: he,
151
+ onClickCapture: me,
152
152
  "aria-controls": P.value ? x : void 0,
153
- class: f({
153
+ class: d({
154
154
  "inline-block w-fit max-w-full cursor-pointer outline-hidden": !0,
155
- [c(B.value, "trigger") ?? ""]: !0
155
+ [g(B.value, "trigger") ?? ""]: !0
156
156
  })
157
157
  })), Ce = r(() => e(z.value?.content, {}, {
158
158
  id: x,
@@ -160,32 +160,32 @@ function y(y, le, b = {}) {
160
160
  onKeydown: ge,
161
161
  style: { zIndex: N.value },
162
162
  "aria-hidden": V.value ? !0 : void 0,
163
- class: f({
163
+ class: d({
164
164
  "bg-white text-dark-900 dark:bg-dark-800 dark:text-dark-100 ring-1 ring-black/5 dark:ring-white/10 outline-hidden overflow-hidden min-w-32 w-max max-w-[calc(100vw-16px)]": !0,
165
165
  "invisible pointer-events-none": V.value,
166
166
  [de.value ?? ""]: !0,
167
167
  [fe.value ?? ""]: !0,
168
- [c(B.value, "content") ?? ""]: !0
168
+ [g(B.value, "content") ?? ""]: !0
169
169
  })
170
170
  }));
171
- return s(P, (e) => {
171
+ return c(P, (e) => {
172
172
  if (e) {
173
173
  S.value = !0, i(() => {
174
- P.value && (j = d({
174
+ P.value && (j = re({
175
175
  id: x,
176
- requestClose: q
176
+ requestClose: J
177
177
  }));
178
- }), E = ie(), D = g({
178
+ }), E = u(), D = ie({
179
179
  order: E,
180
180
  onEscape: be,
181
181
  lockScroll: L.value.disableScrollLock !== !0
182
- }), C.value = D.id, N.value = D.zIndex, Q(), O = v(Q), i(() => {
182
+ }), C.value = D.id, N.value = D.zIndex, Q(), O = oe(Q), i(() => {
183
183
  X(), Z(), _e();
184
184
  });
185
185
  return;
186
186
  }
187
187
  $(), L.value.keepMounted || (S.value = !1);
188
- }, { immediate: !0 }), s([
188
+ }, { immediate: !0 }), c([
189
189
  P,
190
190
  () => y.anchorEl,
191
191
  () => L.value.offset,
@@ -195,11 +195,11 @@ function y(y, le, b = {}) {
195
195
  i(() => {
196
196
  X();
197
197
  });
198
- }), s([P, () => L.value.disableAutoFocus], () => {
198
+ }), c([P, () => L.value.disableAutoFocus], () => {
199
199
  i(() => {
200
200
  Z();
201
201
  });
202
- }), te(() => {
202
+ }), a(() => {
203
203
  $();
204
204
  }), {
205
205
  merged: L,
@@ -8,12 +8,12 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
9
9
  stackId: import('vue').ComputedRef<string>;
10
10
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
- "update:modelValue": (value: boolean) => any;
12
11
  close: () => any;
12
+ "update:modelValue": (value: boolean) => any;
13
13
  "show-change": (show: boolean) => any;
14
14
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
16
15
  onClose?: (() => any) | undefined;
16
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
17
17
  "onShow-change"?: ((show: boolean) => any) | undefined;
18
18
  }>, {
19
19
  closeOnEscape: boolean;
@@ -34,7 +34,7 @@ export declare function useModal(props: ModalOwnProps, libDefaults: ModalLibDefa
34
34
  };
35
35
  "aria-hidden": boolean | undefined;
36
36
  class: string;
37
- }, "class", import('vue').HTMLAttributes | undefined, Omit<ModalProps, "size" | "classes" | "customProps" | "closeOnEscape" | "disableScrollLock" | "keepMounted" | "persistent" | "teleportTo" | "blur" | "scroll" | "align" | "autoFocus" | "closeOnOverlay" | "disableEnforceFocus" | "disableRestoreFocus" | "hideBackdrop" | "stackId" | "transition">>>;
37
+ }, "class", import('vue').HTMLAttributes | undefined, Omit<ModalProps, "size" | "classes" | "customProps" | "closeOnEscape" | "disableScrollLock" | "keepMounted" | "persistent" | "teleportTo" | "scroll" | "blur" | "align" | "autoFocus" | "closeOnOverlay" | "disableEnforceFocus" | "disableRestoreFocus" | "hideBackdrop" | "stackId" | "transition">>>;
38
38
  panelBind: import('vue').ComputedRef<import('@bridge-ui/core').MergePartBind<{
39
39
  "data-modal-part": string;
40
40
  "data-state": "open" | "closed";