@soft-stech/bootsman-ui-shadcn 2.0.37 → 2.0.39
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/{BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-DDDv2wmp.js → BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-YVELnYkR.js} +1 -1
- package/dist/BuiAdvancedAccordionTrigger.vue_vue_type_script_setup_true_lang-BjV8LPs_.js +79 -0
- package/dist/BuiTagsInputInput.vue_vue_type_script_setup_true_lang-Bqtyl-jn.js +143 -0
- package/dist/BuiTagsInputItem.vue_vue_type_script_setup_true_lang-D9Eyso9v.js +32 -0
- package/dist/BuiTagsInputItemDelete.vue_vue_type_script_setup_true_lang-BQrvxRQ_.js +81 -0
- package/dist/BuiTagsInputItemText.vue_vue_type_script_setup_true_lang-7mNXn8EF.js +46 -0
- package/dist/TagsInputItem-BO1sG5J9.js +63 -0
- package/dist/TagsInputRoot-BMN3YdoO.js +214 -0
- package/dist/components/accordion/BuiAccordionTrigger.js +1 -1
- package/dist/components/accordion/BuiAdvancedAccordionTrigger.js +1 -1
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/tagsInput/BuiTagsInput.js +4 -0
- package/dist/components/tagsInput/BuiTagsInput.vue.d.ts +39 -0
- package/dist/components/tagsInput/BuiTagsInputInput.js +4 -0
- package/dist/components/tagsInput/BuiTagsInputInput.vue.d.ts +7 -0
- package/dist/components/tagsInput/BuiTagsInputItem.js +4 -0
- package/dist/components/tagsInput/BuiTagsInputItem.vue.d.ts +22 -0
- package/dist/components/tagsInput/BuiTagsInputItemDelete.js +4 -0
- package/dist/components/tagsInput/BuiTagsInputItemDelete.vue.d.ts +23 -0
- package/dist/components/tagsInput/BuiTagsInputItemText.js +4 -0
- package/dist/components/tagsInput/BuiTagsInputItemText.vue.d.ts +7 -0
- package/dist/components/tagsInput/index.d.ts +8 -0
- package/dist/components/tagsInput/index.js +75 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +173 -162
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/accordion/BuiAccordionTrigger.vue +1 -1
- package/src/components/accordion/BuiAdvancedAccordionTrigger.vue +1 -2
- package/src/components/tagsInput/BuiTagsInput.vue +41 -0
- package/src/components/tagsInput/BuiTagsInputInput.vue +25 -0
- package/src/components/tagsInput/BuiTagsInputItem.vue +28 -0
- package/src/components/tagsInput/BuiTagsInputItemDelete.vue +37 -0
- package/src/components/tagsInput/BuiTagsInputItemText.vue +20 -0
- package/src/components/tagsInput/index.ts +24 -0
- package/src/index.ts +1 -0
- package/src/stories/BuiTagsInput.stories.ts +62 -0
- package/dist/BuiAdvancedAccordionTrigger.vue_vue_type_script_setup_true_lang-DrPhNZKG.js +0 -77
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { TagsInputRootProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { tagsInputVariants } from '.';
|
|
4
|
+
type __VLS_Props = TagsInputRootProps & {
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
variant?: NonNullable<Parameters<typeof tagsInputVariants>[0]>['variant'];
|
|
7
|
+
readonly?: boolean | 'true' | 'false';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
};
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {
|
|
15
|
+
modelValue: import('reka-ui').AcceptableInputValue[];
|
|
16
|
+
}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: any;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
"update:modelValue": (payload: import('reka-ui').AcceptableInputValue[]) => any;
|
|
24
|
+
invalid: (payload: import('reka-ui').AcceptableInputValue) => any;
|
|
25
|
+
addTag: (payload: import('reka-ui').AcceptableInputValue) => any;
|
|
26
|
+
removeTag: (payload: import('reka-ui').AcceptableInputValue) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
"onUpdate:modelValue"?: ((payload: import('reka-ui').AcceptableInputValue[]) => any) | undefined;
|
|
29
|
+
onInvalid?: ((payload: import('reka-ui').AcceptableInputValue) => any) | undefined;
|
|
30
|
+
onAddTag?: ((payload: import('reka-ui').AcceptableInputValue) => any) | undefined;
|
|
31
|
+
onRemoveTag?: ((payload: import('reka-ui').AcceptableInputValue) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TagsInputInputProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = TagsInputInputProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare const _default: 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>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TagsInputItemProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = TagsInputItemProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
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>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TagsInputItemDeleteProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = TagsInputItemDeleteProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
readonly?: boolean | 'true' | 'false';
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
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>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TagsInputItemTextProps } from 'reka-ui';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = TagsInputItemTextProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare const _default: 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>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as BuiTagsInput } from './BuiTagsInput.vue';
|
|
2
|
+
export { default as BuiTagsInputInput } from './BuiTagsInputInput.vue';
|
|
3
|
+
export { default as BuiTagsInputItem } from './BuiTagsInputItem.vue';
|
|
4
|
+
export { default as BuiTagsInputItemDelete } from './BuiTagsInputItemDelete.vue';
|
|
5
|
+
export { default as BuiTagsInputItemText } from './BuiTagsInputItemText.vue';
|
|
6
|
+
export declare const tagsInputVariants: (props?: ({
|
|
7
|
+
variant?: "default" | "destructive" | "success" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { g as u, j as p } from "../../utils-CWz5p1Mv.js";
|
|
2
|
+
import { defineComponent as l, createBlock as c, openBlock as m, unref as e, mergeProps as f, withCtx as g, renderSlot as y, normalizeProps as v, guardReactiveProps as B } from "vue";
|
|
3
|
+
import { reactiveOmit as b } from "@vueuse/core";
|
|
4
|
+
import { u as h } from "../../useForwardPropsEmits-DriEAzTI.js";
|
|
5
|
+
import { T as I } from "../../TagsInputRoot-BMN3YdoO.js";
|
|
6
|
+
import { _ as R } from "../../BuiTagsInputInput.vue_vue_type_script_setup_true_lang-Bqtyl-jn.js";
|
|
7
|
+
import { _ as j } from "../../BuiTagsInputItem.vue_vue_type_script_setup_true_lang-D9Eyso9v.js";
|
|
8
|
+
import { _ as z } from "../../BuiTagsInputItemDelete.vue_vue_type_script_setup_true_lang-BQrvxRQ_.js";
|
|
9
|
+
import { _ as E } from "../../BuiTagsInputItemText.vue_vue_type_script_setup_true_lang-7mNXn8EF.js";
|
|
10
|
+
const O = /* @__PURE__ */ l({
|
|
11
|
+
__name: "BuiTagsInput",
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: {},
|
|
14
|
+
defaultValue: {},
|
|
15
|
+
addOnPaste: { type: Boolean },
|
|
16
|
+
addOnTab: { type: Boolean },
|
|
17
|
+
addOnBlur: { type: Boolean },
|
|
18
|
+
duplicate: { type: Boolean },
|
|
19
|
+
disabled: { type: Boolean },
|
|
20
|
+
delimiter: {},
|
|
21
|
+
dir: {},
|
|
22
|
+
max: {},
|
|
23
|
+
id: {},
|
|
24
|
+
convertValue: { type: Function },
|
|
25
|
+
displayValue: { type: Function },
|
|
26
|
+
asChild: { type: Boolean },
|
|
27
|
+
as: {},
|
|
28
|
+
name: {},
|
|
29
|
+
required: { type: Boolean },
|
|
30
|
+
class: {},
|
|
31
|
+
variant: {},
|
|
32
|
+
readonly: { type: [Boolean, String] },
|
|
33
|
+
placeholder: {}
|
|
34
|
+
},
|
|
35
|
+
emits: ["update:modelValue", "invalid", "addTag", "removeTag"],
|
|
36
|
+
setup(o, { emit: r }) {
|
|
37
|
+
const a = o, n = r, s = b(a, "class"), i = h(s, n);
|
|
38
|
+
return (t, w) => (m(), c(e(I), f(e(i), {
|
|
39
|
+
class: e(u)(
|
|
40
|
+
"group",
|
|
41
|
+
e(T)({ variant: t.variant }),
|
|
42
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-30 data-[disabled]:dark:opacity-55",
|
|
43
|
+
a.readonly && "pointer-events-none opacity-30 dark:opacity-55",
|
|
44
|
+
a.class
|
|
45
|
+
)
|
|
46
|
+
}), {
|
|
47
|
+
default: g((d) => [
|
|
48
|
+
y(t.$slots, "default", v(B(d)))
|
|
49
|
+
]),
|
|
50
|
+
_: 3
|
|
51
|
+
}, 16, ["class"]));
|
|
52
|
+
}
|
|
53
|
+
}), T = p(
|
|
54
|
+
"bg-background ring-offset-background flex min-h-8 w-full rounded-sm border px-2 py-1 text-sm flex-wrap items-center gap-2 focus-within:ring-ring focus-within:ring-2 focus-within:ring-offset-2 focus-within:outline-hidden",
|
|
55
|
+
{
|
|
56
|
+
variants: {
|
|
57
|
+
variant: {
|
|
58
|
+
default: "border-input hover:border-primary data-[disabled]:hover:border-input focus-within:border-primary",
|
|
59
|
+
destructive: "border-destructive-foreground",
|
|
60
|
+
success: "border-success-foreground"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
defaultVariants: {
|
|
64
|
+
variant: "default"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
export {
|
|
69
|
+
O as BuiTagsInput,
|
|
70
|
+
R as BuiTagsInputInput,
|
|
71
|
+
j as BuiTagsInputItem,
|
|
72
|
+
z as BuiTagsInputItemDelete,
|
|
73
|
+
E as BuiTagsInputItemText,
|
|
74
|
+
T as tagsInputVariants
|
|
75
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './components/stepper/index';
|
|
|
26
26
|
export * from './components/switch/index';
|
|
27
27
|
export * from './components/table/index';
|
|
28
28
|
export * from './components/tabs/index';
|
|
29
|
+
export * from './components/tagsInput/index';
|
|
29
30
|
export * from './components/textarea/index';
|
|
30
31
|
export * from './components/toast/index';
|
|
31
32
|
export * from './components/tooltip/index';
|