@soft-stech/bootsman-ui-shadcn 2.0.18 → 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.
- package/dist/{BuiCommandList.vue_vue_type_script_setup_true_lang-DPagytbz.js → BuiCommandList.vue_vue_type_script_setup_true_lang-Bo6ABjX5.js} +38 -36
- package/dist/{BuiLabel.vue_vue_type_script_setup_true_lang-ButmDUBo.js → BuiLabel.vue_vue_type_script_setup_true_lang-Caoy1lRM.js} +4 -4
- package/dist/components/command/BuiCommandList.js +1 -1
- package/dist/components/command/index.js +1 -1
- package/dist/components/label/BuiLabel.js +1 -1
- package/dist/components/label/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/components/command/BuiCommandList.vue +2 -1
- package/src/components/label/BuiLabel.vue +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as y, createBlock as f, openBlock as m, unref as e, withCtx as l, createVNode as
|
|
2
|
-
import { u as
|
|
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
|
|
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
|
|
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 (
|
|
32
|
-
default: l(() => [
|
|
31
|
+
return (n, t) => (m(), f(e(u), null, {
|
|
32
|
+
default: l(() => [C(e(_), {
|
|
33
33
|
role: "listbox",
|
|
34
|
-
as:
|
|
35
|
-
"as-child":
|
|
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] =
|
|
41
|
-
onFocus: t[1] || (t[1] = (
|
|
42
|
-
e(s) || e(o).onEnter(
|
|
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] =
|
|
46
|
-
e(o).focusable.value && e(o).onKeydownNavigation(
|
|
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
|
-
|
|
55
|
+
B(e(o).onKeydownEnter, ["enter"]),
|
|
56
56
|
e(o).onKeydownTypeAhead
|
|
57
57
|
]
|
|
58
58
|
}, {
|
|
59
|
-
default: l(() => [c(
|
|
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:
|
|
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
|
|
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:
|
|
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(() => [
|
|
192
|
+
default: l(() => [C(e(W), {
|
|
193
193
|
"as-child": "",
|
|
194
194
|
"disable-outside-pointer-events": v.disableOutsidePointerEvents,
|
|
195
|
-
onDismiss: a[0] || (a[0] = (
|
|
196
|
-
onFocusOutside: a[1] || (a[1] = (
|
|
197
|
-
e(t).parentElement.value?.contains(
|
|
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] = (
|
|
200
|
-
onEscapeKeyDown: a[3] || (a[3] = (
|
|
201
|
-
onPointerDownOutside: a[4] || (a[4] = (
|
|
202
|
-
e(t).parentElement.value?.contains(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
335
|
-
return
|
|
336
|
-
default: l(() => [
|
|
337
|
-
...e(
|
|
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
|
|
377
|
-
return (t,
|
|
378
|
-
class: e(T)("max-h-[300px] overflow-
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, createBlock as a, openBlock as l, unref as t, mergeProps as n, withCtx as c, renderSlot as f } from "vue";
|
|
2
2
|
import { L as p, g as m } from "./utils-DhVytAXN.js";
|
|
3
|
-
const _ = /* @__PURE__ */
|
|
3
|
+
const _ = /* @__PURE__ */ r({
|
|
4
4
|
__name: "BuiLabel",
|
|
5
5
|
props: {
|
|
6
6
|
for: {},
|
|
@@ -10,8 +10,8 @@ const _ = /* @__PURE__ */ a({
|
|
|
10
10
|
},
|
|
11
11
|
setup(o) {
|
|
12
12
|
const e = o;
|
|
13
|
-
return (s,
|
|
14
|
-
class: t(m)("block text-left text-sm font-
|
|
13
|
+
return (s, i) => (l(), a(t(p), n(e, {
|
|
14
|
+
class: t(m)("text-foreground block text-left text-sm font-medium tracking-tight", e.class)
|
|
15
15
|
}), {
|
|
16
16
|
default: c(() => [
|
|
17
17
|
f(s.$slots, "default")
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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";
|
|
@@ -73,7 +73,7 @@ import { _ as Xr } from "./BuiHoverCard.vue_vue_type_script_setup_true_lang-dyFX
|
|
|
73
73
|
import { _ as $r } from "./BuiHoverCardTrigger.vue_vue_type_script_setup_true_lang-oW_qfx8F.js";
|
|
74
74
|
import { _ as re } from "./BuiHoverCardContent.vue_vue_type_script_setup_true_lang-DVBNDG14.js";
|
|
75
75
|
import { BuiBadgedInput as te, BuiColorInput as ae, BuiInput as ie, BuiPasswordInput as ue, inputVariants as se } from "./components/input/index.js";
|
|
76
|
-
import { _ as me } from "./BuiLabel.vue_vue_type_script_setup_true_lang-
|
|
76
|
+
import { _ as me } from "./BuiLabel.vue_vue_type_script_setup_true_lang-Caoy1lRM.js";
|
|
77
77
|
import { _ as Be, P as ne } from "./BuiPaginationCommon.vue_vue_type_script_setup_true_lang-DhSRYKth.js";
|
|
78
78
|
import { _ as _e } from "./BuiPaginationFirst.vue_vue_type_script_setup_true_lang-CQIWuH4J.js";
|
|
79
79
|
import { _ as ge } from "./BuiPaginationLast.vue_vue_type_script_setup_true_lang-DPHBc8bO.js";
|
package/package.json
CHANGED
|
@@ -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-
|
|
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 />
|
|
@@ -8,7 +8,7 @@ const props = defineProps<LabelProps & { class?: string }>()
|
|
|
8
8
|
<template>
|
|
9
9
|
<Label
|
|
10
10
|
v-bind="props"
|
|
11
|
-
:class="cn('block text-left text-sm font-
|
|
11
|
+
:class="cn('text-foreground block text-left text-sm font-medium tracking-tight', props.class)"
|
|
12
12
|
>
|
|
13
13
|
<slot />
|
|
14
14
|
</Label>
|