@soft-stech/bootsman-ui-shadcn 2.0.38 → 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 (30) hide show
  1. package/dist/BuiTagsInputInput.vue_vue_type_script_setup_true_lang-Bqtyl-jn.js +143 -0
  2. package/dist/BuiTagsInputItem.vue_vue_type_script_setup_true_lang-D9Eyso9v.js +32 -0
  3. package/dist/BuiTagsInputItemDelete.vue_vue_type_script_setup_true_lang-BQrvxRQ_.js +81 -0
  4. package/dist/BuiTagsInputItemText.vue_vue_type_script_setup_true_lang-7mNXn8EF.js +46 -0
  5. package/dist/TagsInputItem-BO1sG5J9.js +63 -0
  6. package/dist/TagsInputRoot-BMN3YdoO.js +214 -0
  7. package/dist/components/tagsInput/BuiTagsInput.js +4 -0
  8. package/dist/components/tagsInput/BuiTagsInput.vue.d.ts +39 -0
  9. package/dist/components/tagsInput/BuiTagsInputInput.js +4 -0
  10. package/dist/components/tagsInput/BuiTagsInputInput.vue.d.ts +7 -0
  11. package/dist/components/tagsInput/BuiTagsInputItem.js +4 -0
  12. package/dist/components/tagsInput/BuiTagsInputItem.vue.d.ts +22 -0
  13. package/dist/components/tagsInput/BuiTagsInputItemDelete.js +4 -0
  14. package/dist/components/tagsInput/BuiTagsInputItemDelete.vue.d.ts +23 -0
  15. package/dist/components/tagsInput/BuiTagsInputItemText.js +4 -0
  16. package/dist/components/tagsInput/BuiTagsInputItemText.vue.d.ts +7 -0
  17. package/dist/components/tagsInput/index.d.ts +8 -0
  18. package/dist/components/tagsInput/index.js +75 -0
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.js +172 -161
  21. package/dist/style.css +1 -1
  22. package/package.json +1 -1
  23. package/src/components/tagsInput/BuiTagsInput.vue +41 -0
  24. package/src/components/tagsInput/BuiTagsInputInput.vue +25 -0
  25. package/src/components/tagsInput/BuiTagsInputItem.vue +28 -0
  26. package/src/components/tagsInput/BuiTagsInputItemDelete.vue +37 -0
  27. package/src/components/tagsInput/BuiTagsInputItemText.vue +20 -0
  28. package/src/components/tagsInput/index.ts +24 -0
  29. package/src/index.ts +1 -0
  30. package/src/stories/BuiTagsInput.stories.ts +62 -0
@@ -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
+ }