@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.
Files changed (38) hide show
  1. package/dist/{BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-DDDv2wmp.js → BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-YVELnYkR.js} +1 -1
  2. package/dist/BuiAdvancedAccordionTrigger.vue_vue_type_script_setup_true_lang-BjV8LPs_.js +79 -0
  3. package/dist/BuiTagsInputInput.vue_vue_type_script_setup_true_lang-Bqtyl-jn.js +143 -0
  4. package/dist/BuiTagsInputItem.vue_vue_type_script_setup_true_lang-D9Eyso9v.js +32 -0
  5. package/dist/BuiTagsInputItemDelete.vue_vue_type_script_setup_true_lang-BQrvxRQ_.js +81 -0
  6. package/dist/BuiTagsInputItemText.vue_vue_type_script_setup_true_lang-7mNXn8EF.js +46 -0
  7. package/dist/TagsInputItem-BO1sG5J9.js +63 -0
  8. package/dist/TagsInputRoot-BMN3YdoO.js +214 -0
  9. package/dist/components/accordion/BuiAccordionTrigger.js +1 -1
  10. package/dist/components/accordion/BuiAdvancedAccordionTrigger.js +1 -1
  11. package/dist/components/accordion/index.js +2 -2
  12. package/dist/components/tagsInput/BuiTagsInput.js +4 -0
  13. package/dist/components/tagsInput/BuiTagsInput.vue.d.ts +39 -0
  14. package/dist/components/tagsInput/BuiTagsInputInput.js +4 -0
  15. package/dist/components/tagsInput/BuiTagsInputInput.vue.d.ts +7 -0
  16. package/dist/components/tagsInput/BuiTagsInputItem.js +4 -0
  17. package/dist/components/tagsInput/BuiTagsInputItem.vue.d.ts +22 -0
  18. package/dist/components/tagsInput/BuiTagsInputItemDelete.js +4 -0
  19. package/dist/components/tagsInput/BuiTagsInputItemDelete.vue.d.ts +23 -0
  20. package/dist/components/tagsInput/BuiTagsInputItemText.js +4 -0
  21. package/dist/components/tagsInput/BuiTagsInputItemText.vue.d.ts +7 -0
  22. package/dist/components/tagsInput/index.d.ts +8 -0
  23. package/dist/components/tagsInput/index.js +75 -0
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +173 -162
  26. package/dist/style.css +1 -1
  27. package/package.json +1 -1
  28. package/src/components/accordion/BuiAccordionTrigger.vue +1 -1
  29. package/src/components/accordion/BuiAdvancedAccordionTrigger.vue +1 -2
  30. package/src/components/tagsInput/BuiTagsInput.vue +41 -0
  31. package/src/components/tagsInput/BuiTagsInputInput.vue +25 -0
  32. package/src/components/tagsInput/BuiTagsInputItem.vue +28 -0
  33. package/src/components/tagsInput/BuiTagsInputItemDelete.vue +37 -0
  34. package/src/components/tagsInput/BuiTagsInputItemText.vue +20 -0
  35. package/src/components/tagsInput/index.ts +24 -0
  36. package/src/index.ts +1 -0
  37. package/src/stories/BuiTagsInput.stories.ts +62 -0
  38. package/dist/BuiAdvancedAccordionTrigger.vue_vue_type_script_setup_true_lang-DrPhNZKG.js +0 -77
package/src/index.ts CHANGED
@@ -28,6 +28,7 @@ export * from './components/stepper/index'
28
28
  export * from './components/switch/index'
29
29
  export * from './components/table/index'
30
30
  export * from './components/tabs/index'
31
+ export * from './components/tagsInput/index'
31
32
  export * from './components/textarea/index'
32
33
  export * from './components/toast/index'
33
34
  export * from './components/tooltip/index'
@@ -0,0 +1,62 @@
1
+ import {
2
+ BuiTagsInput,
3
+ BuiTagsInputInput,
4
+ BuiTagsInputItem,
5
+ BuiTagsInputItemDelete,
6
+ BuiTagsInputItemText
7
+ } from '@/components/tagsInput'
8
+ import type { Meta, StoryObj } from '@storybook/vue3-vite'
9
+ import { ref } from 'vue'
10
+
11
+ const meta = {
12
+ component: BuiTagsInput,
13
+ tags: ['autodocs'],
14
+ argTypes: {
15
+ variant: {
16
+ control: 'select',
17
+ options: ['default', 'destructive', 'success']
18
+ }
19
+ },
20
+ args: {
21
+ disabled: false,
22
+ readonly: false,
23
+ addOnTab: true,
24
+ addOnPaste: true,
25
+ addOnBlur: false,
26
+ placeholder: 'Agg tag...',
27
+ variant: 'default'
28
+ }
29
+ } satisfies Meta<typeof BuiTagsInput>
30
+
31
+ export default meta
32
+ type Story = StoryObj<typeof meta>
33
+
34
+ export const Default: Story = {
35
+ render: (args) => ({
36
+ components: {
37
+ BuiTagsInput,
38
+ BuiTagsInputInput,
39
+ BuiTagsInputItem,
40
+ BuiTagsInputItemDelete,
41
+ BuiTagsInputItemText
42
+ },
43
+ setup() {
44
+ const tags = ref(['Vue', 'React', 'Angular'])
45
+ return { args, tags }
46
+ },
47
+ template: `
48
+ <div class="mb-2">{{ tags.join('; ') }}</div>
49
+ <BuiTagsInput
50
+ v-model="tags"
51
+ class="w-full max-w-sm"
52
+ v-bind="args"
53
+ >
54
+ <BuiTagsInputItem v-for="tag in tags" :key="tag" :value="tag">
55
+ <BuiTagsInputItemText />
56
+ <BuiTagsInputItemDelete />
57
+ </BuiTagsInputItem>
58
+ <BuiTagsInputInput :placeholder="args.placeholder" id="tagsInput" name="tags-input"/>
59
+ </BuiTagsInput>
60
+ `
61
+ })
62
+ }
@@ -1,77 +0,0 @@
1
- import { defineComponent as f, createBlock as m, openBlock as i, unref as s, normalizeClass as t, withCtx as l, createElementVNode as n, createVNode as d, renderSlot as a, mergeProps as p, createElementBlock as g, createCommentVNode as u } from "vue";
2
- import { g as r } from "./utils-CWz5p1Mv.js";
3
- import { A as C, a as b } from "./AccordionTrigger-CLOdW74d.js";
4
- import { C as v } from "./chevron-down-CNPbIKfA.js";
5
- const x = { class: "flex w-full items-center justify-between gap-2" }, h = { class: "flex flex-col items-start text-start" }, $ = /* @__PURE__ */ f({
6
- __name: "BuiAdvancedAccordionTrigger",
7
- props: {
8
- asChild: { type: Boolean },
9
- as: {},
10
- class: {},
11
- borderColorClass: {},
12
- bgColorClass: {},
13
- hoverColorClass: {},
14
- iconBgClass: {},
15
- descriptionColorClass: {},
16
- isIconHidden: { type: Boolean },
17
- isDisabledAsNormal: { type: Boolean }
18
- },
19
- setup(c) {
20
- const e = c;
21
- return (o, y) => (i(), m(s(C), {
22
- class: t(
23
- s(r)(
24
- "border-border/16 bg-foreground/4 flex min-h-12 items-center px-2 py-1 data-[state=closed]:rounded-sm data-[state=open]:rounded-t-sm data-[state=open]:border-b",
25
- e.borderColorClass ?? "",
26
- e.bgColorClass ?? "",
27
- e.hoverColorClass ?? ""
28
- )
29
- ),
30
- as: "div"
31
- }, {
32
- default: l(() => [
33
- n("div", x, [
34
- d(s(b), p(e, {
35
- class: s(r)(
36
- "text-foreground ring-offset-background focus-visible:ring-ring relative flex flex-1 items-center gap-2 rounded-sm align-middle text-base leading-6 font-semibold transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-30 [&[data-state=open]>svg]:rotate-180",
37
- e.class,
38
- e.isDisabledAsNormal ? "disabled:opacity-100" : ""
39
- )
40
- }), {
41
- default: l(() => [
42
- d(s(v), {
43
- class: t(
44
- s(r)(
45
- "bg-primary/[0.56] dark:bg-primary text-primary-foreground h-4 w-4 shrink-0 rounded-sm transition-transform duration-200",
46
- e.iconBgClass ? `${e.iconBgClass} dark:${e.iconBgClass}` : "",
47
- e.isIconHidden ? "invisible" : "visible"
48
- )
49
- )
50
- }, null, 8, ["class"]),
51
- n("div", h, [
52
- a(o.$slots, "default"),
53
- o.$slots.description ? (i(), g("p", {
54
- key: 0,
55
- class: t(
56
- s(r)(
57
- "text-foreground/56 text-xs leading-4 font-normal",
58
- e.descriptionColorClass ?? ""
59
- )
60
- )
61
- }, [
62
- a(o.$slots, "description")
63
- ], 2)) : u("", !0)
64
- ])
65
- ]),
66
- _: 3
67
- }, 16, ["class"]),
68
- a(o.$slots, "actions")
69
- ])
70
- ]),
71
- _: 3
72
- }, 8, ["class"]));
73
- }
74
- });
75
- export {
76
- $ as _
77
- };