@soft-stech/bootsman-ui-shadcn 2.0.1 → 2.0.3
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/{BuiCommand.vue_vue_type_script_setup_true_lang-C9t6KZHd.js → BuiCommand.vue_vue_type_script_setup_true_lang-CLpDcuuZ.js} +1 -1
- package/dist/{BuiCommandDialog.vue_vue_type_script_setup_true_lang-BtyMqpd2.js → BuiCommandDialog.vue_vue_type_script_setup_true_lang-BZ4Qp1Px.js} +1 -1
- package/dist/{BuiPaginationCommon.vue_vue_type_script_setup_true_lang-BmHKj-mX.js → BuiPaginationCommon.vue_vue_type_script_setup_true_lang-yxBZuCi6.js} +32 -33
- package/dist/{BuiSelectItem.vue_vue_type_script_setup_true_lang-BWwndLfo.js → BuiSelectItem.vue_vue_type_script_setup_true_lang-9AX9Z-QW.js} +1 -1
- package/dist/components/command/BuiCommand.js +1 -1
- package/dist/components/command/BuiCommand.vue.d.ts +21 -28
- package/dist/components/command/BuiCommandDialog.js +1 -1
- package/dist/components/command/index.js +2 -2
- package/dist/components/pagination/BuiPaginationCommon.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/select/BuiSelect.vue.d.ts +14 -20
- package/dist/components/select/BuiSelectItem.js +1 -1
- package/dist/components/select/BuiSelectItem.vue.d.ts +13 -16
- package/dist/components/select/index.js +1 -1
- package/dist/components/table/index.js +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/src/components/command/BuiCommand.vue +5 -5
- package/src/components/pagination/BuiPaginationCommon.vue +1 -1
- package/src/components/select/BuiSelect.vue +4 -4
- package/src/components/select/BuiSelectItem.vue +10 -4
- package/src/stories/BuiCommand.stories.ts +6 -2
- package/src/stories/BuiSelect.stories.ts +6 -2
- package/src/stories/Combobox.stories.ts +1 -0
@@ -31,7 +31,7 @@ const _ = /* @__PURE__ */ n({
|
|
31
31
|
open: !0,
|
32
32
|
"model-value": "",
|
33
33
|
class: e(c)(
|
34
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md border
|
34
|
+
"border-muted bg-popover text-popover-foreground shadow-level1 flex h-full w-full flex-col overflow-hidden rounded-md border",
|
35
35
|
o.$attrs.class ?? ""
|
36
36
|
)
|
37
37
|
}), {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as d, createBlock as n, openBlock as i, unref as e, normalizeProps as _, guardReactiveProps as c, withCtx as o, createVNode as t, renderSlot as u } from "vue";
|
2
2
|
import { u as l } from "./useEmitAsProps-CNuVpXM5.js";
|
3
|
-
import { _ as f } from "./BuiCommand.vue_vue_type_script_setup_true_lang-
|
3
|
+
import { _ as f } from "./BuiCommand.vue_vue_type_script_setup_true_lang-CLpDcuuZ.js";
|
4
4
|
import { _ as g } from "./BuiDialog.vue_vue_type_script_setup_true_lang-DjZghwG-.js";
|
5
5
|
import "vee-validate";
|
6
6
|
import { _ as k } from "./BuiDialogContent.vue_vue_type_script_setup_true_lang-CCfPUGLe.js";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as y, computed as I, createBlock as $, openBlock as x, unref as
|
1
|
+
import { defineComponent as y, computed as I, createBlock as $, openBlock as x, unref as n, normalizeProps as V, guardReactiveProps as w, withCtx as g, renderSlot as E, mergeModels as L, useModel as h, createVNode as i, createElementVNode as S, createElementBlock as M, createCommentVNode as b, toDisplayString as c, Fragment as R, renderList as z, createTextVNode as B } from "vue";
|
2
2
|
import { BuiInput as N } from "./components/input/index.js";
|
3
3
|
import "vee-validate";
|
4
4
|
import { i as k, P as q } from "./PaginationRoot-Xehp56La.js";
|
@@ -11,12 +11,12 @@ import { _ as C } from "./BuiSelect.vue_vue_type_script_setup_true_lang-7nuIk5zm
|
|
11
11
|
import { _ as F } from "./BuiSelectValue.vue_vue_type_script_setup_true_lang-C3SieHyq.js";
|
12
12
|
import { _ as A } from "./BuiSelectTrigger.vue_vue_type_script_setup_true_lang-BDl_H1RT.js";
|
13
13
|
import { _ as D } from "./BuiSelectContent.vue_vue_type_script_setup_true_lang-C5jkSDWv.js";
|
14
|
-
import { _ as T } from "./BuiSelectItem.vue_vue_type_script_setup_true_lang-
|
14
|
+
import { _ as T } from "./BuiSelectItem.vue_vue_type_script_setup_true_lang-9AX9Z-QW.js";
|
15
15
|
import { _ as G } from "./BuiPaginationFirst.vue_vue_type_script_setup_true_lang-D9fQ7GgI.js";
|
16
16
|
import { _ as H } from "./BuiPaginationLast.vue_vue_type_script_setup_true_lang-CdZ1DLOE.js";
|
17
17
|
import { _ as J } from "./BuiPaginationNext.vue_vue_type_script_setup_true_lang-C4s8P6OX.js";
|
18
18
|
import { _ as K } from "./BuiPaginationPrev.vue_vue_type_script_setup_true_lang-ZV5pyiwB.js";
|
19
|
-
function
|
19
|
+
function p(a, r) {
|
20
20
|
const e = r - a + 1;
|
21
21
|
return Array.from({ length: e }, (l, m) => m + a);
|
22
22
|
}
|
@@ -28,17 +28,17 @@ function O(a) {
|
|
28
28
|
}
|
29
29
|
const P = "ellipsis";
|
30
30
|
function Q(a, r, e, l) {
|
31
|
-
const t = r,
|
31
|
+
const t = r, d = Math.max(a - e, 1), u = Math.min(a + e, t);
|
32
32
|
if (l) {
|
33
|
-
const f = Math.min(2 * e + 5, r) - 2, s =
|
33
|
+
const f = Math.min(2 * e + 5, r) - 2, s = d > 3 && Math.abs(t - f - 1 + 1) > 2 && Math.abs(d - 1) > 2, v = u < t - 2 && Math.abs(t - f) > 2 && Math.abs(t - u) > 2;
|
34
34
|
if (!s && v)
|
35
35
|
return [
|
36
|
-
...
|
36
|
+
...p(1, f),
|
37
37
|
P,
|
38
38
|
t
|
39
39
|
];
|
40
40
|
if (s && !v) {
|
41
|
-
const _ =
|
41
|
+
const _ = p(t - f + 1, t);
|
42
42
|
return [
|
43
43
|
1,
|
44
44
|
P,
|
@@ -46,7 +46,7 @@ function Q(a, r, e, l) {
|
|
46
46
|
];
|
47
47
|
}
|
48
48
|
if (s && v) {
|
49
|
-
const _ = d
|
49
|
+
const _ = p(d, u);
|
50
50
|
return [
|
51
51
|
1,
|
52
52
|
P,
|
@@ -55,10 +55,10 @@ function Q(a, r, e, l) {
|
|
55
55
|
t
|
56
56
|
];
|
57
57
|
}
|
58
|
-
return
|
58
|
+
return p(1, t);
|
59
59
|
} else {
|
60
|
-
const
|
61
|
-
return r <
|
60
|
+
const o = e * 2 + 1;
|
61
|
+
return r < o ? p(1, t) : a <= e + 1 ? p(1, o) : r - a <= e ? p(r - o + 1, t) : p(d, u);
|
62
62
|
}
|
63
63
|
}
|
64
64
|
var W = /* @__PURE__ */ y({
|
@@ -77,15 +77,15 @@ var W = /* @__PURE__ */ y({
|
|
77
77
|
const r = a;
|
78
78
|
U();
|
79
79
|
const e = k(), l = I(() => O(Q(e.page.value, e.pageCount.value, e.siblingCount.value, e.showEdges.value)));
|
80
|
-
return (m, t) => (x(), $(
|
81
|
-
default: g(() => [
|
80
|
+
return (m, t) => (x(), $(n(j), V(w(r)), {
|
81
|
+
default: g(() => [E(m.$slots, "default", { items: l.value })]),
|
82
82
|
_: 3
|
83
83
|
}, 16));
|
84
84
|
}
|
85
85
|
}), X = W;
|
86
86
|
const Y = { class: "text-muted-foreground text-sm" }, Z = { class: "text-muted-foreground text-sm" }, ve = /* @__PURE__ */ y({
|
87
87
|
__name: "BuiPaginationCommon",
|
88
|
-
props: /* @__PURE__ */
|
88
|
+
props: /* @__PURE__ */ L({
|
89
89
|
total: {},
|
90
90
|
translations: {}
|
91
91
|
}, {
|
@@ -96,7 +96,7 @@ const Y = { class: "text-muted-foreground text-sm" }, Z = { class: "text-muted-f
|
|
96
96
|
}),
|
97
97
|
emits: ["update:pageSize", "update:pageIndex"],
|
98
98
|
setup(a) {
|
99
|
-
const r = [10, 20, 30, 40, 50], e = a, l = h(a, "pageSize"), m = h(a, "pageIndex"), t = I(() => Math.ceil(e.total / l.value)),
|
99
|
+
const r = [10, 20, 30, 40, 50], e = a, l = h(a, "pageSize"), m = h(a, "pageIndex"), t = I(() => Math.ceil(e.total / l.value)), d = I({
|
100
100
|
get() {
|
101
101
|
return String(l.value);
|
102
102
|
},
|
@@ -104,33 +104,32 @@ const Y = { class: "text-muted-foreground text-sm" }, Z = { class: "text-muted-f
|
|
104
104
|
l.value = parseInt(u);
|
105
105
|
}
|
106
106
|
});
|
107
|
-
return (u,
|
107
|
+
return (u, o) => (x(), $(n(q), {
|
108
108
|
total: e.total,
|
109
109
|
itemsPerPage: l.value,
|
110
110
|
page: m.value,
|
111
|
-
"onUpdate:page":
|
111
|
+
"onUpdate:page": o[2] || (o[2] = (f) => m.value = f)
|
112
112
|
}, {
|
113
113
|
default: g(({ page: f }) => [
|
114
|
-
i(
|
114
|
+
i(n(X), { class: "relative flex items-center justify-center gap-2" }, {
|
115
115
|
default: g(() => [
|
116
116
|
S("p", Y, c(u.translations?.itemsPerPage || "Items per page"), 1),
|
117
|
-
i(
|
118
|
-
modelValue:
|
119
|
-
"onUpdate:modelValue":
|
120
|
-
modelModifiers: { number: !0 }
|
117
|
+
i(n(C), {
|
118
|
+
modelValue: d.value,
|
119
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => d.value = s)
|
121
120
|
}, {
|
122
121
|
default: g(() => [
|
123
|
-
i(
|
122
|
+
i(n(A), { class: "mr-2 w-[70px]" }, {
|
124
123
|
default: g(() => [
|
125
|
-
i(
|
124
|
+
i(n(F), {
|
126
125
|
placeholder: l.value.toString()
|
127
126
|
}, null, 8, ["placeholder"])
|
128
127
|
]),
|
129
128
|
_: 1
|
130
129
|
}),
|
131
|
-
i(
|
130
|
+
i(n(D), { side: "top" }, {
|
132
131
|
default: g(() => [
|
133
|
-
(x(), M(R, null, z(r, (s) => i(
|
132
|
+
(x(), M(R, null, z(r, (s) => i(n(T), {
|
134
133
|
key: s,
|
135
134
|
value: s.toString()
|
136
135
|
}, {
|
@@ -147,17 +146,17 @@ const Y = { class: "text-muted-foreground text-sm" }, Z = { class: "text-muted-f
|
|
147
146
|
}, 8, ["modelValue"]),
|
148
147
|
t.value > 1 ? (x(), M(R, { key: 0 }, [
|
149
148
|
S("p", Z, c(u.translations?.page || "Page") + " " + c(f) + " " + c(u.translations?.of || "of") + " " + c(t.value), 1),
|
150
|
-
i(
|
151
|
-
i(
|
152
|
-
i(
|
149
|
+
i(n(G)),
|
150
|
+
i(n(K)),
|
151
|
+
i(n(N), {
|
153
152
|
modelValue: m.value,
|
154
|
-
"onUpdate:modelValue":
|
153
|
+
"onUpdate:modelValue": o[1] || (o[1] = (s) => m.value = s),
|
155
154
|
class: "w-28",
|
156
155
|
placeholder: "Page number"
|
157
156
|
}, null, 8, ["modelValue"]),
|
158
|
-
i(
|
159
|
-
i(
|
160
|
-
], 64)) :
|
157
|
+
i(n(J)),
|
158
|
+
i(n(H))
|
159
|
+
], 64)) : b("", !0)
|
161
160
|
]),
|
162
161
|
_: 2
|
163
162
|
}, 1024)
|
@@ -41,7 +41,7 @@ const C = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center
|
|
41
41
|
const t = l;
|
42
42
|
return (s, o) => (u(), c(e(_), d(t, {
|
43
43
|
class: e(x)(
|
44
|
-
"relative flex w-full cursor-default
|
44
|
+
"focus:bg-accent/8 focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50",
|
45
45
|
t.class
|
46
46
|
)
|
47
47
|
}), {
|
@@ -1,33 +1,26 @@
|
|
1
|
-
import { ComboboxRootProps } from 'reka-ui';
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import { AcceptableValue, ComboboxRootProps } from 'reka-ui';
|
2
|
+
declare const _default: <T extends AcceptableValue = AcceptableValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
|
+
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
5
|
+
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
6
|
+
readonly onHighlight?: ((payload: {
|
7
|
+
ref: HTMLElement;
|
8
|
+
value: T;
|
9
|
+
} | undefined) => any) | undefined;
|
10
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:open" | "onHighlight"> & ComboboxRootProps<T> & Partial<{}>> & import('vue').PublicProps;
|
11
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
12
|
+
attrs: any;
|
5
13
|
slots: {
|
6
14
|
default?(_: {}): any;
|
7
15
|
};
|
8
|
-
|
9
|
-
rootEl: any;
|
10
|
-
};
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
13
|
-
"update:modelValue": (value: import('reka-ui').AcceptableValue) => any;
|
14
|
-
"update:open": (value: boolean) => any;
|
15
|
-
highlight: (payload: {
|
16
|
-
ref: HTMLElement;
|
17
|
-
value: import('reka-ui').AcceptableValue;
|
18
|
-
} | undefined) => any;
|
19
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
20
|
-
"onUpdate:modelValue"?: ((value: import('reka-ui').AcceptableValue) => any) | undefined;
|
21
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
22
|
-
onHighlight?: ((payload: {
|
16
|
+
emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "highlight", payload: {
|
23
17
|
ref: HTMLElement;
|
24
|
-
value:
|
25
|
-
} | undefined) =>
|
26
|
-
}
|
27
|
-
|
28
|
-
export default _default;
|
29
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
30
|
-
new (): {
|
31
|
-
$slots: S;
|
32
|
-
};
|
18
|
+
value: T;
|
19
|
+
} | undefined) => void);
|
20
|
+
}>) => import('vue').VNode & {
|
21
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
33
22
|
};
|
23
|
+
export default _default;
|
24
|
+
type __VLS_PrettifyLocal<T> = {
|
25
|
+
[K in keyof T]: T[K];
|
26
|
+
} & {};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as r } from "../../BuiCommand.vue_vue_type_script_setup_true_lang-
|
2
|
-
import { _ as t } from "../../BuiCommandDialog.vue_vue_type_script_setup_true_lang-
|
1
|
+
import { _ as r } from "../../BuiCommand.vue_vue_type_script_setup_true_lang-CLpDcuuZ.js";
|
2
|
+
import { _ as t } from "../../BuiCommandDialog.vue_vue_type_script_setup_true_lang-BZ4Qp1Px.js";
|
3
3
|
import { _ as p } from "../../BuiCommandEmpty.vue_vue_type_script_setup_true_lang-C9kuC-R8.js";
|
4
4
|
import { _ as i } from "../../BuiCommandGroup.vue_vue_type_script_setup_true_lang-03YpNr6K.js";
|
5
5
|
import { _ as s } from "../../BuiCommandInput.vue_vue_type_script_setup_true_lang-pTNZk09S.js";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as o, P as t } from "../../BuiPaginationCommon.vue_vue_type_script_setup_true_lang-
|
1
|
+
import { _ as o, P as t } from "../../BuiPaginationCommon.vue_vue_type_script_setup_true_lang-yxBZuCi6.js";
|
2
2
|
import { _ as r } from "../../BuiPaginationFirst.vue_vue_type_script_setup_true_lang-D9fQ7GgI.js";
|
3
3
|
import { _ as P } from "../../BuiPaginationLast.vue_vue_type_script_setup_true_lang-CdZ1DLOE.js";
|
4
4
|
import { _ as m } from "../../BuiPaginationNext.vue_vue_type_script_setup_true_lang-C4s8P6OX.js";
|
@@ -1,25 +1,19 @@
|
|
1
|
-
import { SelectRootProps } from 'reka-ui';
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import { AcceptableValue, SelectRootProps } from 'reka-ui';
|
2
|
+
declare const _default: <T extends AcceptableValue = AcceptableValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
4
|
+
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
5
|
+
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
6
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:open"> & SelectRootProps<T> & Partial<{}>> & import('vue').PublicProps;
|
7
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
8
|
+
attrs: any;
|
5
9
|
slots: {
|
6
10
|
default?(_: {}): any;
|
7
11
|
};
|
8
|
-
|
9
|
-
|
12
|
+
emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "update:open", value: boolean) => void);
|
13
|
+
}>) => import('vue').VNode & {
|
14
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
10
15
|
};
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
13
|
-
"update:modelValue": (value: import('reka-ui').AcceptableValue) => any;
|
14
|
-
"update:open": (value: boolean) => any;
|
15
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
16
|
-
"onUpdate:modelValue"?: ((value: import('reka-ui').AcceptableValue) => any) | undefined;
|
17
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
18
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
19
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
20
16
|
export default _default;
|
21
|
-
type
|
22
|
-
|
23
|
-
|
24
|
-
};
|
25
|
-
};
|
17
|
+
type __VLS_PrettifyLocal<T> = {
|
18
|
+
[K in keyof T]: T[K];
|
19
|
+
} & {};
|
@@ -1,21 +1,18 @@
|
|
1
|
-
import { SelectItemProps } from 'reka-ui';
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { AcceptableValue, SelectItemProps } from 'reka-ui';
|
2
|
+
declare const _default: <T extends AcceptableValue = AcceptableValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & (SelectItemProps<T> & {
|
4
|
+
class?: string;
|
5
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
6
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
7
|
+
attrs: any;
|
7
8
|
slots: {
|
8
9
|
default?(_: {}): any;
|
9
10
|
};
|
10
|
-
|
11
|
-
|
11
|
+
emit: {};
|
12
|
+
}>) => import('vue').VNode & {
|
13
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
12
14
|
};
|
13
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
15
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
16
15
|
export default _default;
|
17
|
-
type
|
18
|
-
|
19
|
-
|
20
|
-
};
|
21
|
-
};
|
16
|
+
type __VLS_PrettifyLocal<T> = {
|
17
|
+
[K in keyof T]: T[K];
|
18
|
+
} & {};
|
@@ -3,7 +3,7 @@ import { _ as a } from "../../BuiSelectValue.vue_vue_type_script_setup_true_lang
|
|
3
3
|
import { _ as m } from "../../BuiSelectTrigger.vue_vue_type_script_setup_true_lang-BDl_H1RT.js";
|
4
4
|
import { _ as u } from "../../BuiSelectContent.vue_vue_type_script_setup_true_lang-C5jkSDWv.js";
|
5
5
|
import { _ as x } from "../../BuiSelectGroup.vue_vue_type_script_setup_true_lang-SvmhhRm4.js";
|
6
|
-
import { _ as c } from "../../BuiSelectItem.vue_vue_type_script_setup_true_lang-
|
6
|
+
import { _ as c } from "../../BuiSelectItem.vue_vue_type_script_setup_true_lang-9AX9Z-QW.js";
|
7
7
|
import { _ as s } from "../../BuiSelectItemText.vue_vue_type_script_setup_true_lang-Dre4JPTC.js";
|
8
8
|
import { _ } from "../../BuiSelectLabel.vue_vue_type_script_setup_true_lang-DzpZp0zv.js";
|
9
9
|
import { _ as n } from "../../BuiSelectSeparator.vue_vue_type_script_setup_true_lang-DPkKme6-.js";
|
@@ -11,10 +11,10 @@ import { _ as Xo } from "../../BuiTableFooter.vue_vue_type_script_setup_true_lan
|
|
11
11
|
import { _ as Bt } from "../../BuiCollapsible.vue_vue_type_script_setup_true_lang-CjrKhGhu.js";
|
12
12
|
import { _ as Dt } from "../../BuiCollapsibleTrigger.vue_vue_type_script_setup_true_lang-BIbfcJCV.js";
|
13
13
|
import { _ as Lt } from "../../BuiCollapsibleContent.vue_vue_type_script_setup_true_lang-CfvrzIh8.js";
|
14
|
-
import { _ as Ft } from "../../BuiPaginationCommon.vue_vue_type_script_setup_true_lang-
|
14
|
+
import { _ as Ft } from "../../BuiPaginationCommon.vue_vue_type_script_setup_true_lang-yxBZuCi6.js";
|
15
15
|
import { h as Pe, v as te, g as Ht, _ as Gt } from "../../utils-DIEJYj9K.js";
|
16
16
|
import { FlexRender as nt, useVueTable as Nt, getSortedRowModel as Ut, getPaginationRowModel as Vt, getCoreRowModel as kt } from "@tanstack/vue-table";
|
17
|
-
import { _ as Kt } from "../../BuiCommand.vue_vue_type_script_setup_true_lang-
|
17
|
+
import { _ as Kt } from "../../BuiCommand.vue_vue_type_script_setup_true_lang-CLpDcuuZ.js";
|
18
18
|
import { _ as qt } from "../../BuiCommandEmpty.vue_vue_type_script_setup_true_lang-C9kuC-R8.js";
|
19
19
|
import { _ as Wt } from "../../BuiCommandInput.vue_vue_type_script_setup_true_lang-pTNZk09S.js";
|
20
20
|
import { _ as Xt } from "../../BuiCommandItem.vue_vue_type_script_setup_true_lang-ClI0K_P_.js";
|
package/dist/index.js
CHANGED
@@ -25,8 +25,8 @@ import { _ as po } from "./BuiCardDescription.vue_vue_type_script_setup_true_lan
|
|
25
25
|
import { _ as xo } from "./BuiCardContent.vue_vue_type_script_setup_true_lang-Bduq13_Y.js";
|
26
26
|
import { _ as no } from "./BuiCardFooter.vue_vue_type_script_setup_true_lang-BIxgRWEQ.js";
|
27
27
|
import { _ as _o } from "./BuiCheckbox.vue_vue_type_script_setup_true_lang-Dou42Vk7.js";
|
28
|
-
import { _ as go } from "./BuiCommand.vue_vue_type_script_setup_true_lang-
|
29
|
-
import { _ as To } from "./BuiCommandDialog.vue_vue_type_script_setup_true_lang-
|
28
|
+
import { _ as go } from "./BuiCommand.vue_vue_type_script_setup_true_lang-CLpDcuuZ.js";
|
29
|
+
import { _ as To } from "./BuiCommandDialog.vue_vue_type_script_setup_true_lang-BZ4Qp1Px.js";
|
30
30
|
import { _ as So } from "./BuiCommandEmpty.vue_vue_type_script_setup_true_lang-C9kuC-R8.js";
|
31
31
|
import { _ as bo } from "./BuiCommandGroup.vue_vue_type_script_setup_true_lang-03YpNr6K.js";
|
32
32
|
import { _ as Ao } from "./BuiCommandInput.vue_vue_type_script_setup_true_lang-pTNZk09S.js";
|
@@ -76,7 +76,7 @@ import { _ as ae } from "./BuiHoverCardTrigger.vue_vue_type_script_setup_true_la
|
|
76
76
|
import { _ as ue } from "./BuiHoverCardContent.vue_vue_type_script_setup_true_lang-Cn3GL2Ht.js";
|
77
77
|
import { BuiBadgedInput as pe, BuiColorInput as me, BuiInput as xe, BuiPasswordInput as Be, inputVariants as ne } from "./components/input/index.js";
|
78
78
|
import { _ as _e } from "./BuiLabel.vue_vue_type_script_setup_true_lang-aH1riW93.js";
|
79
|
-
import { _ as ge, P as de } from "./BuiPaginationCommon.vue_vue_type_script_setup_true_lang-
|
79
|
+
import { _ as ge, P as de } from "./BuiPaginationCommon.vue_vue_type_script_setup_true_lang-yxBZuCi6.js";
|
80
80
|
import { _ as Te } from "./BuiPaginationFirst.vue_vue_type_script_setup_true_lang-D9fQ7GgI.js";
|
81
81
|
import { _ as Se } from "./BuiPaginationLast.vue_vue_type_script_setup_true_lang-CdZ1DLOE.js";
|
82
82
|
import { _ as be } from "./BuiPaginationNext.vue_vue_type_script_setup_true_lang-C4s8P6OX.js";
|
@@ -94,7 +94,7 @@ import { _ as We } from "./BuiSelectValue.vue_vue_type_script_setup_true_lang-C3
|
|
94
94
|
import { _ as Ze } from "./BuiSelectTrigger.vue_vue_type_script_setup_true_lang-BDl_H1RT.js";
|
95
95
|
import { _ as ot } from "./BuiSelectContent.vue_vue_type_script_setup_true_lang-C5jkSDWv.js";
|
96
96
|
import { _ as et } from "./BuiSelectGroup.vue_vue_type_script_setup_true_lang-SvmhhRm4.js";
|
97
|
-
import { _ as at } from "./BuiSelectItem.vue_vue_type_script_setup_true_lang-
|
97
|
+
import { _ as at } from "./BuiSelectItem.vue_vue_type_script_setup_true_lang-9AX9Z-QW.js";
|
98
98
|
import { _ as ut } from "./BuiSelectItemText.vue_vue_type_script_setup_true_lang-Dre4JPTC.js";
|
99
99
|
import { _ as pt } from "./BuiSelectLabel.vue_vue_type_script_setup_true_lang-DzpZp0zv.js";
|
100
100
|
import { _ as xt } from "./BuiSelectSeparator.vue_vue_type_script_setup_true_lang-DPkKme6-.js";
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import type { ComboboxRootEmits, ComboboxRootProps } from 'reka-ui'
|
1
|
+
<script setup lang="ts" generic="T extends AcceptableValue = AcceptableValue">
|
2
|
+
import type { AcceptableValue, ComboboxRootEmits, ComboboxRootProps } from 'reka-ui'
|
3
3
|
import { ComboboxRoot, useForwardPropsEmits } from 'reka-ui'
|
4
4
|
import { cn } from '@/lib/utils'
|
5
5
|
|
6
|
-
const props = defineProps<ComboboxRootProps
|
7
|
-
const emits = defineEmits<ComboboxRootEmits
|
6
|
+
const props = defineProps<ComboboxRootProps<T>>()
|
7
|
+
const emits = defineEmits<ComboboxRootEmits<T>>()
|
8
8
|
|
9
9
|
const forwarded = useForwardPropsEmits(props, emits)
|
10
10
|
</script>
|
@@ -16,7 +16,7 @@ const forwarded = useForwardPropsEmits(props, emits)
|
|
16
16
|
:model-value="''"
|
17
17
|
:class="
|
18
18
|
cn(
|
19
|
-
'flex h-full w-full flex-col overflow-hidden rounded-md border
|
19
|
+
'border-muted bg-popover text-popover-foreground shadow-level1 flex h-full w-full flex-col overflow-hidden rounded-md border',
|
20
20
|
$attrs.class ?? ''
|
21
21
|
)
|
22
22
|
"
|
@@ -54,7 +54,7 @@ const pageSizeString = computed({
|
|
54
54
|
<p class="text-muted-foreground text-sm">
|
55
55
|
{{ translations?.itemsPerPage || 'Items per page' }}
|
56
56
|
</p>
|
57
|
-
<BuiSelect v-model
|
57
|
+
<BuiSelect v-model="pageSizeString">
|
58
58
|
<BuiSelectTrigger class="mr-2 w-[70px]">
|
59
59
|
<BuiSelectValue :placeholder="pageSize.toString()" />
|
60
60
|
</BuiSelectTrigger>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<script setup lang="ts">
|
1
|
+
<script setup lang="ts" generic="T extends AcceptableValue = AcceptableValue">
|
2
2
|
import { FORM_READONLY_INJECTION_KEY } from '@/components/form'
|
3
|
-
import type { SelectRootEmits, SelectRootProps } from 'reka-ui'
|
3
|
+
import type { AcceptableValue, SelectRootEmits, SelectRootProps } from 'reka-ui'
|
4
4
|
import { SelectRoot, useForwardPropsEmits } from 'reka-ui'
|
5
5
|
import { inject, toRef } from 'vue'
|
6
6
|
|
7
|
-
const props = defineProps<SelectRootProps
|
8
|
-
const emits = defineEmits<SelectRootEmits
|
7
|
+
const props = defineProps<SelectRootProps<T>>()
|
8
|
+
const emits = defineEmits<SelectRootEmits<T>>()
|
9
9
|
|
10
10
|
const forwarded = useForwardPropsEmits(props, emits)
|
11
11
|
|
@@ -1,9 +1,15 @@
|
|
1
|
-
<script setup lang="ts">
|
2
|
-
import {
|
1
|
+
<script setup lang="ts" generic="T extends AcceptableValue = AcceptableValue">
|
2
|
+
import {
|
3
|
+
type AcceptableValue,
|
4
|
+
SelectItem,
|
5
|
+
SelectItemIndicator,
|
6
|
+
type SelectItemProps,
|
7
|
+
SelectItemText
|
8
|
+
} from 'reka-ui'
|
3
9
|
import { Check } from 'lucide-vue-next'
|
4
10
|
import { cn } from '@/lib/utils'
|
5
11
|
|
6
|
-
const props = defineProps<SelectItemProps & { class?: string }>()
|
12
|
+
const props = defineProps<SelectItemProps<T> & { class?: string }>()
|
7
13
|
</script>
|
8
14
|
|
9
15
|
<template>
|
@@ -11,7 +17,7 @@ const props = defineProps<SelectItemProps & { class?: string }>()
|
|
11
17
|
v-bind="props"
|
12
18
|
:class="
|
13
19
|
cn(
|
14
|
-
'relative flex w-full cursor-default
|
20
|
+
'focus:bg-accent/8 focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50',
|
15
21
|
props.class
|
16
22
|
)
|
17
23
|
"
|
@@ -11,13 +11,17 @@ import {
|
|
11
11
|
BuiCommandSeparator,
|
12
12
|
BuiCommandShortcut
|
13
13
|
} from '@/components/command'
|
14
|
+
import type { DefineComponent } from 'vue'
|
15
|
+
import type { AcceptableValue, ComboboxRootProps } from 'reka-ui'
|
16
|
+
|
17
|
+
type BuiCommandType = DefineComponent<ComboboxRootProps<AcceptableValue>>
|
14
18
|
|
15
19
|
const meta = {
|
16
|
-
component: BuiCommand,
|
20
|
+
component: BuiCommand as unknown as BuiCommandType,
|
17
21
|
tags: ['autodocs'],
|
18
22
|
argTypes: {},
|
19
23
|
args: {}
|
20
|
-
} satisfies Meta<
|
24
|
+
} satisfies Meta<BuiCommandType>
|
21
25
|
export default meta
|
22
26
|
|
23
27
|
type Story = StoryObj<typeof meta>
|
@@ -20,13 +20,17 @@ import {
|
|
20
20
|
BuiFormControl,
|
21
21
|
BuiFormMessage
|
22
22
|
} from '@/components/form'
|
23
|
+
import type { AcceptableValue, SelectRootProps } from 'reka-ui'
|
24
|
+
import type { DefineComponent } from 'vue'
|
25
|
+
|
26
|
+
type BuiSelectType = DefineComponent<SelectRootProps<AcceptableValue>>
|
23
27
|
|
24
28
|
const meta = {
|
25
|
-
component: BuiSelect,
|
29
|
+
component: BuiSelect as unknown as BuiSelectType,
|
26
30
|
tags: ['autodocs'],
|
27
31
|
argTypes: {},
|
28
32
|
args: {}
|
29
|
-
} satisfies Meta<
|
33
|
+
} satisfies Meta<BuiSelectType>
|
30
34
|
export default meta
|
31
35
|
|
32
36
|
type Story = StoryObj<typeof meta>
|