@soft-stech/bootsman-ui-shadcn 2.0.19 → 2.0.20

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.
@@ -1,14 +1,14 @@
1
- import { defineComponent as y, createBlock as f, openBlock as m, unref as e, withCtx as l, createVNode as g, withKeys as h, withModifiers as w, renderSlot as c, toRefs as S, computed as D, ref as E, onMounted as L, onUnmounted as F, resolveDynamicComponent as K, mergeProps as C, createElementVNode as N } from "vue";
2
- import { u as B } from "./useForwardPropsEmits-DriEAzTI.js";
1
+ import { defineComponent as y, createBlock as f, openBlock as m, unref as e, withCtx as l, createVNode as C, withKeys as B, withModifiers as g, renderSlot as c, toRefs as S, computed as D, ref as E, onMounted as L, onUnmounted as F, resolveDynamicComponent as K, mergeProps as q, createElementVNode as N } from "vue";
2
+ import { u as h } from "./useForwardPropsEmits-DriEAzTI.js";
3
3
  import { u as x } from "./useForwardExpose-DmyWSR4F.js";
4
4
  import { u as $ } from "./useId-D4hM1ljW.js";
5
5
  import { P as I } from "./Presence-BadhDRMZ.js";
6
- import { a as M, i as _ } from "./ComboboxRoot-HZ6OtAWp.js";
6
+ import { a as M, i as O } from "./ComboboxRoot-HZ6OtAWp.js";
7
7
  import { c as R } from "./createContext-BWsUZRn1.js";
8
8
  import { u as j } from "./useBodyScrollLock-Brn5EGXN.js";
9
9
  import { u as z } from "./useForwardProps-COe1clk4.js";
10
10
  import { u as U } from "./useHideOthers-BNc0skzo.js";
11
- import { P as O } from "./Primitive-EBuBc72_.js";
11
+ import { P as _ } from "./Primitive-EBuBc72_.js";
12
12
  import { D as W } from "./DismissableLayer-D-BrGAhy.js";
13
13
  import { P as A } from "./PopperContent-CO4aQ0ir.js";
14
14
  import { u as V } from "./Collection-BdNht7lW.js";
@@ -28,22 +28,22 @@ var G = /* @__PURE__ */ y({
28
28
  },
29
29
  setup(d) {
30
30
  const { CollectionSlot: u } = V(), o = M(), s = H(!1, 10);
31
- return (i, t) => (m(), f(e(u), null, {
32
- default: l(() => [g(e(O), {
31
+ return (n, t) => (m(), f(e(u), null, {
32
+ default: l(() => [C(e(_), {
33
33
  role: "listbox",
34
- as: i.as,
35
- "as-child": i.asChild,
34
+ as: n.as,
35
+ "as-child": n.asChild,
36
36
  tabindex: e(o).focusable.value ? e(o).highlightedElement.value ? "-1" : "0" : void 0,
37
37
  "aria-orientation": e(o).orientation.value,
38
38
  "aria-multiselectable": !!e(o).multiple.value,
39
39
  "data-orientation": e(o).orientation.value,
40
- onMousedown: t[0] || (t[0] = w((n) => s.value = !0, ["left"])),
41
- onFocus: t[1] || (t[1] = (n) => {
42
- e(s) || e(o).onEnter(n);
40
+ onMousedown: t[0] || (t[0] = g((r) => s.value = !0, ["left"])),
41
+ onFocus: t[1] || (t[1] = (r) => {
42
+ e(s) || e(o).onEnter(r);
43
43
  }),
44
44
  onKeydown: [
45
- t[2] || (t[2] = h(w((n) => {
46
- e(o).focusable.value && e(o).onKeydownNavigation(n);
45
+ t[2] || (t[2] = B(g((r) => {
46
+ e(o).focusable.value && e(o).onKeydownNavigation(r);
47
47
  }, ["prevent"]), [
48
48
  "down",
49
49
  "up",
@@ -52,11 +52,11 @@ var G = /* @__PURE__ */ y({
52
52
  "home",
53
53
  "end"
54
54
  ])),
55
- h(e(o).onKeydownEnter, ["enter"]),
55
+ B(e(o).onKeydownEnter, ["enter"]),
56
56
  e(o).onKeydownTypeAhead
57
57
  ]
58
58
  }, {
59
- default: l(() => [c(i.$slots, "default")]),
59
+ default: l(() => [c(n.$slots, "default")]),
60
60
  _: 3
61
61
  }, 8, [
62
62
  "as",
@@ -172,9 +172,9 @@ var X = /* @__PURE__ */ y({
172
172
  "interactOutside"
173
173
  ],
174
174
  setup(d, { emit: u }) {
175
- const o = d, s = u, { position: i } = S(o), t = _(), { forwardRef: n, currentElement: p } = x();
175
+ const o = d, s = u, { position: n } = S(o), t = O(), { forwardRef: r, currentElement: p } = x();
176
176
  j(o.bodyLock), U(t.parentElement);
177
- const q = D(() => o.position === "popper" ? o : {}), P = z(q.value), k = {
177
+ const w = D(() => o.position === "popper" ? o : {}), P = z(w.value), k = {
178
178
  boxSizing: "border-box",
179
179
  "--reka-combobox-content-transform-origin": "var(--reka-popper-transform-origin)",
180
180
  "--reka-combobox-content-available-width": "var(--reka-popper-available-width)",
@@ -182,38 +182,38 @@ var X = /* @__PURE__ */ y({
182
182
  "--reka-combobox-trigger-width": "var(--reka-popper-anchor-width)",
183
183
  "--reka-combobox-trigger-height": "var(--reka-popper-anchor-height)"
184
184
  };
185
- Q({ position: i });
185
+ Q({ position: n });
186
186
  const b = E(!1);
187
187
  return L(() => {
188
188
  t.inputElement.value && (b.value = p.value.contains(t.inputElement.value), b.value && t.inputElement.value.focus());
189
189
  }), F(() => {
190
190
  b.value && t.triggerElement.value?.focus();
191
191
  }), (v, a) => (m(), f(e(J), { "as-child": "" }, {
192
- default: l(() => [g(e(W), {
192
+ default: l(() => [C(e(W), {
193
193
  "as-child": "",
194
194
  "disable-outside-pointer-events": v.disableOutsidePointerEvents,
195
- onDismiss: a[0] || (a[0] = (r) => e(t).onOpenChange(!1)),
196
- onFocusOutside: a[1] || (a[1] = (r) => {
197
- e(t).parentElement.value?.contains(r.target) && r.preventDefault(), s("focusOutside", r);
195
+ onDismiss: a[0] || (a[0] = (i) => e(t).onOpenChange(!1)),
196
+ onFocusOutside: a[1] || (a[1] = (i) => {
197
+ e(t).parentElement.value?.contains(i.target) && i.preventDefault(), s("focusOutside", i);
198
198
  }),
199
- onInteractOutside: a[2] || (a[2] = (r) => s("interactOutside", r)),
200
- onEscapeKeyDown: a[3] || (a[3] = (r) => s("escapeKeyDown", r)),
201
- onPointerDownOutside: a[4] || (a[4] = (r) => {
202
- e(t).parentElement.value?.contains(r.target) && r.preventDefault(), s("pointerDownOutside", r);
199
+ onInteractOutside: a[2] || (a[2] = (i) => s("interactOutside", i)),
200
+ onEscapeKeyDown: a[3] || (a[3] = (i) => s("escapeKeyDown", i)),
201
+ onPointerDownOutside: a[4] || (a[4] = (i) => {
202
+ e(t).parentElement.value?.contains(i.target) && i.preventDefault(), s("pointerDownOutside", i);
203
203
  })
204
204
  }, {
205
- default: l(() => [(m(), f(K(e(i) === "popper" ? e(A) : e(O)), C({
205
+ default: l(() => [(m(), f(K(e(n) === "popper" ? e(A) : e(_)), q({
206
206
  ...v.$attrs,
207
207
  ...e(P)
208
208
  }, {
209
209
  id: e(t).contentId,
210
- ref: e(n),
210
+ ref: e(r),
211
211
  "data-state": e(t).open.value ? "open" : "closed",
212
212
  style: {
213
213
  display: "flex",
214
214
  flexDirection: "column",
215
215
  outline: "none",
216
- ...e(i) === "popper" ? k : {}
216
+ ...e(n) === "popper" ? k : {}
217
217
  }
218
218
  }), {
219
219
  default: l(() => [c(v.$slots, "default")]),
@@ -331,10 +331,10 @@ var X = /* @__PURE__ */ y({
331
331
  "interactOutside"
332
332
  ],
333
333
  setup(d, { emit: u }) {
334
- const i = B(d, u), { forwardRef: t } = x(), n = _();
335
- return n.contentId ||= $(void 0, "reka-combobox-content"), (p, q) => (m(), f(e(I), { present: p.forceMount || e(n).open.value }, {
336
- default: l(() => [g(Y, C({
337
- ...e(i),
334
+ const n = h(d, u), { forwardRef: t } = x(), r = O();
335
+ return r.contentId ||= $(void 0, "reka-combobox-content"), (p, w) => (m(), f(e(I), { present: p.forceMount || e(r).open.value }, {
336
+ default: l(() => [C(Y, q({
337
+ ...e(n),
338
338
  ...p.$attrs
339
339
  }, { ref: e(t) }), {
340
340
  default: l(() => [c(p.$slots, "default")]),
@@ -373,9 +373,11 @@ const te = { role: "presentation" }, Ce = /* @__PURE__ */ y({
373
373
  },
374
374
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
375
375
  setup(d, { emit: u }) {
376
- const i = B(d, u);
377
- return (t, n) => (m(), f(e(ee), C(e(i), {
378
- class: e(T)("max-h-[300px] overflow-y-auto overflow-x-hidden", t.$attrs.class ?? "")
376
+ const n = h(d, u);
377
+ return (t, r) => (m(), f(e(ee), q(e(n), {
378
+ class: e(T)("max-h-[300px] overflow-x-hidden overflow-y-auto", t.$attrs.class ?? ""),
379
+ onFocusOutside: r[0] || (r[0] = g(() => {
380
+ }, ["prevent"]))
379
381
  }), {
380
382
  default: l(() => [
381
383
  N("div", te, [
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../../BuiCommandList.vue_vue_type_script_setup_true_lang-DPagytbz.js";
1
+ import { _ as f } from "../../BuiCommandList.vue_vue_type_script_setup_true_lang-Bo6ABjX5.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -4,7 +4,7 @@ import { _ as u } from "../../BuiCommandEmpty.vue_vue_type_script_setup_true_lan
4
4
  import { _ as i } from "../../BuiCommandGroup.vue_vue_type_script_setup_true_lang-CnfAWZiu.js";
5
5
  import { _ as s } from "../../BuiCommandInput.vue_vue_type_script_setup_true_lang-CVmueEJP.js";
6
6
  import { _ as f } from "../../BuiCommandItem.vue_vue_type_script_setup_true_lang-FGyKBuJh.js";
7
- import { _ as B } from "../../BuiCommandList.vue_vue_type_script_setup_true_lang-DPagytbz.js";
7
+ import { _ as B } from "../../BuiCommandList.vue_vue_type_script_setup_true_lang-Bo6ABjX5.js";
8
8
  import { _ } from "../../BuiCommandSeparator.vue_vue_type_script_setup_true_lang-D7KwvEq5.js";
9
9
  import { _ as S } from "../../BuiCommandShortcut.vue_vue_type_script_setup_true_lang-4IS6QWVb.js";
10
10
  export {
@@ -18,7 +18,7 @@ import { _ as Zt } from "../../BuiCommand.vue_vue_type_script_setup_true_lang-5X
18
18
  import { _ as Qt } from "../../BuiCommandEmpty.vue_vue_type_script_setup_true_lang-DtitqrAP.js";
19
19
  import { _ as en } from "../../BuiCommandInput.vue_vue_type_script_setup_true_lang-CVmueEJP.js";
20
20
  import { _ as tn } from "../../BuiCommandItem.vue_vue_type_script_setup_true_lang-FGyKBuJh.js";
21
- import { _ as nn } from "../../BuiCommandList.vue_vue_type_script_setup_true_lang-DPagytbz.js";
21
+ import { _ as nn } from "../../BuiCommandList.vue_vue_type_script_setup_true_lang-Bo6ABjX5.js";
22
22
  import { _ as rn } from "../../BuiCommandSeparator.vue_vue_type_script_setup_true_lang-D7KwvEq5.js";
23
23
  import { _ as on } from "../../BuiContextMenuContent.vue_vue_type_script_setup_true_lang-D_qwtIHB.js";
24
24
  import { _ as an } from "../../BuiContextMenuItem.vue_vue_type_script_setup_true_lang-C0VBlDJb.js";
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ import { _ as Co } from "./BuiCommandEmpty.vue_vue_type_script_setup_true_lang-D
30
30
  import { _ as co } from "./BuiCommandGroup.vue_vue_type_script_setup_true_lang-CnfAWZiu.js";
31
31
  import { _ as Do } from "./BuiCommandInput.vue_vue_type_script_setup_true_lang-CVmueEJP.js";
32
32
  import { _ as Mo } from "./BuiCommandItem.vue_vue_type_script_setup_true_lang-FGyKBuJh.js";
33
- import { _ as Fo } from "./BuiCommandList.vue_vue_type_script_setup_true_lang-DPagytbz.js";
33
+ import { _ as Fo } from "./BuiCommandList.vue_vue_type_script_setup_true_lang-Bo6ABjX5.js";
34
34
  import { _ as Io } from "./BuiCommandSeparator.vue_vue_type_script_setup_true_lang-D7KwvEq5.js";
35
35
  import { _ as ho } from "./BuiCommandShortcut.vue_vue_type_script_setup_true_lang-4IS6QWVb.js";
36
36
  import { _ as vo } from "./BuiContextMenu.vue_vue_type_script_setup_true_lang-CGtCNQsI.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soft-stech/bootsman-ui-shadcn",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -12,7 +12,8 @@ const forwarded = useForwardPropsEmits(props, emits)
12
12
  <template>
13
13
  <ComboboxContent
14
14
  v-bind="forwarded"
15
- :class="cn('max-h-[300px] overflow-y-auto overflow-x-hidden', $attrs.class ?? '')"
15
+ :class="cn('max-h-[300px] overflow-x-hidden overflow-y-auto', $attrs.class ?? '')"
16
+ @focusOutside.prevent
16
17
  >
17
18
  <div role="presentation">
18
19
  <slot />