@colletdev/vue 0.1.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.
Files changed (108) hide show
  1. package/README.md +64 -0
  2. package/dist/accordion.d.ts +68 -0
  3. package/dist/accordion.js +68 -0
  4. package/dist/activity-group.d.ts +56 -0
  5. package/dist/activity-group.js +50 -0
  6. package/dist/alert.d.ts +94 -0
  7. package/dist/alert.js +76 -0
  8. package/dist/autocomplete.d.ts +161 -0
  9. package/dist/autocomplete.js +132 -0
  10. package/dist/avatar.d.ts +50 -0
  11. package/dist/avatar.js +47 -0
  12. package/dist/backdrop.d.ts +25 -0
  13. package/dist/backdrop.js +35 -0
  14. package/dist/badge.d.ts +74 -0
  15. package/dist/badge.js +59 -0
  16. package/dist/breadcrumb.d.ts +49 -0
  17. package/dist/breadcrumb.js +53 -0
  18. package/dist/button.d.ts +92 -0
  19. package/dist/button.js +68 -0
  20. package/dist/card.d.ts +60 -0
  21. package/dist/card.js +58 -0
  22. package/dist/carousel.d.ts +97 -0
  23. package/dist/carousel.js +77 -0
  24. package/dist/chat-input.d.ts +99 -0
  25. package/dist/chat-input.js +79 -0
  26. package/dist/checkbox.d.ts +93 -0
  27. package/dist/checkbox.js +75 -0
  28. package/dist/code-block.d.ts +77 -0
  29. package/dist/code-block.js +59 -0
  30. package/dist/collapsible.d.ts +73 -0
  31. package/dist/collapsible.js +62 -0
  32. package/dist/date-picker.d.ts +145 -0
  33. package/dist/date-picker.js +111 -0
  34. package/dist/dialog.d.ts +61 -0
  35. package/dist/dialog.js +63 -0
  36. package/dist/drawer.d.ts +61 -0
  37. package/dist/drawer.js +63 -0
  38. package/dist/fab.d.ts +81 -0
  39. package/dist/fab.js +62 -0
  40. package/dist/file-upload.d.ts +104 -0
  41. package/dist/file-upload.js +74 -0
  42. package/dist/index.d.ts +54 -0
  43. package/dist/index.js +54 -0
  44. package/dist/label.d.ts +66 -0
  45. package/dist/label.js +48 -0
  46. package/dist/listbox.d.ts +65 -0
  47. package/dist/listbox.js +77 -0
  48. package/dist/menu.d.ts +83 -0
  49. package/dist/menu.js +78 -0
  50. package/dist/message-bubble.d.ts +74 -0
  51. package/dist/message-bubble.js +67 -0
  52. package/dist/message-group.d.ts +51 -0
  53. package/dist/message-group.js +59 -0
  54. package/dist/message-part.d.ts +3 -0
  55. package/dist/message-part.js +25 -0
  56. package/dist/pagination.d.ts +81 -0
  57. package/dist/pagination.js +59 -0
  58. package/dist/popover.d.ts +104 -0
  59. package/dist/popover.js +92 -0
  60. package/dist/profile-menu.d.ts +77 -0
  61. package/dist/profile-menu.js +72 -0
  62. package/dist/progress.d.ts +50 -0
  63. package/dist/progress.js +48 -0
  64. package/dist/radio-group.d.ts +92 -0
  65. package/dist/radio-group.js +84 -0
  66. package/dist/scrollbar.d.ts +48 -0
  67. package/dist/scrollbar.js +55 -0
  68. package/dist/search-bar.d.ts +127 -0
  69. package/dist/search-bar.js +105 -0
  70. package/dist/select.d.ts +124 -0
  71. package/dist/select.js +114 -0
  72. package/dist/separator.d.ts +51 -0
  73. package/dist/separator.js +42 -0
  74. package/dist/sidebar.d.ts +69 -0
  75. package/dist/sidebar.js +68 -0
  76. package/dist/skeleton.d.ts +42 -0
  77. package/dist/skeleton.js +44 -0
  78. package/dist/slider.d.ts +133 -0
  79. package/dist/slider.js +98 -0
  80. package/dist/speed-dial.d.ts +103 -0
  81. package/dist/speed-dial.js +79 -0
  82. package/dist/spinner.d.ts +30 -0
  83. package/dist/spinner.js +38 -0
  84. package/dist/split-button.d.ts +101 -0
  85. package/dist/split-button.js +77 -0
  86. package/dist/stepper.d.ts +67 -0
  87. package/dist/stepper.js +62 -0
  88. package/dist/switch.d.ts +100 -0
  89. package/dist/switch.js +75 -0
  90. package/dist/table.d.ts +135 -0
  91. package/dist/table.js +147 -0
  92. package/dist/tabs.d.ts +65 -0
  93. package/dist/tabs.js +67 -0
  94. package/dist/text-input.d.ts +193 -0
  95. package/dist/text-input.js +134 -0
  96. package/dist/text.d.ts +99 -0
  97. package/dist/text.js +88 -0
  98. package/dist/thinking.d.ts +42 -0
  99. package/dist/thinking.js +44 -0
  100. package/dist/toast.d.ts +86 -0
  101. package/dist/toast.js +72 -0
  102. package/dist/toggle-group.d.ts +83 -0
  103. package/dist/toggle-group.js +77 -0
  104. package/dist/tooltip.d.ts +52 -0
  105. package/dist/tooltip.js +50 -0
  106. package/dist/types.d.ts +256 -0
  107. package/dist/types.js +4 -0
  108. package/package.json +44 -0
@@ -0,0 +1,132 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-autocomplete>
3
+ import { defineComponent, ref, h, onMounted, watch } from 'vue';
4
+ export const Autocomplete = defineComponent({
5
+ name: 'Autocomplete',
6
+ props: {
7
+ id: { type: String },
8
+ label: { type: String },
9
+ variant: { type: String },
10
+ shape: { type: String },
11
+ size: { type: String },
12
+ /** 'single' for single select, 'multiple' for multi-select with chips. */
13
+ mode: { type: String },
14
+ selected: { type: [Array, Object, String] },
15
+ /** Current search query text. Controlled by onInput events. */
16
+ query: { type: String },
17
+ placeholder: { type: String },
18
+ helperText: { type: String },
19
+ error: { type: String },
20
+ disabled: { type: Boolean },
21
+ required: { type: Boolean },
22
+ readonly: { type: Boolean },
23
+ name: { type: String },
24
+ /** When true, user can submit values not in the items list. */
25
+ allowCustom: { type: Boolean },
26
+ clearable: { type: Boolean },
27
+ /** Options to filter from. Filtering is client-side (fuzzy substring match). For server-side search, update this array in your onInput handler. */
28
+ items: { type: [Array, Object, String] },
29
+ groups: { type: [Array, Object, String] },
30
+ },
31
+ emits: {
32
+ 'cx-input': (event) => true,
33
+ 'cx-change': (event) => true,
34
+ 'cx-focus': (event) => true,
35
+ 'cx-blur': (event) => true,
36
+ 'cx-keydown': (event) => true,
37
+ 'cx-keyup': (event) => true,
38
+ },
39
+ setup(props, { emit, slots, expose }) {
40
+ const el = ref(null);
41
+ const listeners = [];
42
+ onMounted(() => {
43
+ if (!el.value)
44
+ return;
45
+ watch(() => props.name, (val) => {
46
+ if (!el.value)
47
+ return;
48
+ if (val != null)
49
+ el.value.setAttribute('name', String(val));
50
+ else
51
+ el.value.removeAttribute('name');
52
+ }, { immediate: true });
53
+ watch(() => props.selected, (val) => {
54
+ if (!el.value)
55
+ return;
56
+ if (val != null)
57
+ el.value.setAttribute('selected', typeof val === 'object' ? JSON.stringify(val) : String(val));
58
+ else
59
+ el.value.removeAttribute('selected');
60
+ }, { immediate: true });
61
+ watch(() => props.items, (val) => {
62
+ if (!el.value)
63
+ return;
64
+ if (val != null)
65
+ el.value.setAttribute('items', typeof val === 'object' ? JSON.stringify(val) : String(val));
66
+ else
67
+ el.value.removeAttribute('items');
68
+ }, { immediate: true });
69
+ watch(() => props.groups, (val) => {
70
+ if (!el.value)
71
+ return;
72
+ if (val != null)
73
+ el.value.setAttribute('groups', typeof val === 'object' ? JSON.stringify(val) : String(val));
74
+ else
75
+ el.value.removeAttribute('groups');
76
+ }, { immediate: true });
77
+ // Event listeners
78
+ el.value.addEventListener('cx-input', (ev) => emit('cx-input', ev));
79
+ el.value.addEventListener('cx-change', (ev) => emit('cx-change', ev));
80
+ el.value.addEventListener('cx-focus', (ev) => emit('cx-focus', ev));
81
+ el.value.addEventListener('cx-blur', (ev) => emit('cx-blur', ev));
82
+ el.value.addEventListener('cx-keydown', (ev) => emit('cx-keydown', ev));
83
+ el.value.addEventListener('cx-keyup', (ev) => emit('cx-keyup', ev));
84
+ });
85
+ expose({
86
+ /** Opens the suggestion dropdown. */
87
+ open() { el.value?.open(); },
88
+ /** Closes the suggestion dropdown. */
89
+ close() { el.value?.close(); },
90
+ /** Clears all selections (multi-mode) or the input (single-mode). */
91
+ clear() { el.value?.clear(); },
92
+ /** Focuses the search input. */
93
+ focus() { el.value?.focus(); },
94
+ /** The underlying Custom Element. */
95
+ el,
96
+ });
97
+ return () => {
98
+ const attrs = {};
99
+ if (props.id != null)
100
+ attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
101
+ if (props.label != null)
102
+ attrs['label'] = typeof props.label === 'object' ? JSON.stringify(props.label) : String(props.label);
103
+ if (props.variant != null)
104
+ attrs['variant'] = typeof props.variant === 'object' ? JSON.stringify(props.variant) : String(props.variant);
105
+ if (props.shape != null)
106
+ attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
107
+ if (props.size != null)
108
+ attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
109
+ if (props.mode != null)
110
+ attrs['mode'] = typeof props.mode === 'object' ? JSON.stringify(props.mode) : String(props.mode);
111
+ if (props.query != null)
112
+ attrs['query'] = typeof props.query === 'object' ? JSON.stringify(props.query) : String(props.query);
113
+ if (props.placeholder != null)
114
+ attrs['placeholder'] = typeof props.placeholder === 'object' ? JSON.stringify(props.placeholder) : String(props.placeholder);
115
+ if (props.helperText != null)
116
+ attrs['helper-text'] = typeof props.helperText === 'object' ? JSON.stringify(props.helperText) : String(props.helperText);
117
+ if (props.error != null)
118
+ attrs['error'] = typeof props.error === 'object' ? JSON.stringify(props.error) : String(props.error);
119
+ if (props.disabled)
120
+ attrs['disabled'] = '';
121
+ if (props.required)
122
+ attrs['required'] = '';
123
+ if (props.readonly)
124
+ attrs['readonly'] = '';
125
+ if (props.allowCustom)
126
+ attrs['allow-custom'] = '';
127
+ if (props.clearable)
128
+ attrs['clearable'] = '';
129
+ return h('cx-autocomplete', { ref: el, ...attrs });
130
+ };
131
+ },
132
+ });
@@ -0,0 +1,50 @@
1
+ import { type PropType } from 'vue';
2
+ export declare const Avatar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ id: {
4
+ type: StringConstructor;
5
+ };
6
+ label: {
7
+ type: StringConstructor;
8
+ };
9
+ shape: {
10
+ type: PropType<"circle" | "rounded">;
11
+ };
12
+ size: {
13
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
14
+ };
15
+ image: {
16
+ type: StringConstructor;
17
+ };
18
+ initials: {
19
+ type: StringConstructor;
20
+ };
21
+ clickable: {
22
+ type: BooleanConstructor;
23
+ };
24
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
25
+ [key: string]: any;
26
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ id: {
28
+ type: StringConstructor;
29
+ };
30
+ label: {
31
+ type: StringConstructor;
32
+ };
33
+ shape: {
34
+ type: PropType<"circle" | "rounded">;
35
+ };
36
+ size: {
37
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
38
+ };
39
+ image: {
40
+ type: StringConstructor;
41
+ };
42
+ initials: {
43
+ type: StringConstructor;
44
+ };
45
+ clickable: {
46
+ type: BooleanConstructor;
47
+ };
48
+ }>> & Readonly<{}>, {
49
+ clickable: boolean;
50
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
package/dist/avatar.js ADDED
@@ -0,0 +1,47 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-avatar>
3
+ import { defineComponent, ref, h, onMounted } from 'vue';
4
+ export const Avatar = defineComponent({
5
+ name: 'Avatar',
6
+ props: {
7
+ id: { type: String },
8
+ label: { type: String },
9
+ shape: { type: String },
10
+ size: { type: String },
11
+ image: { type: String },
12
+ initials: { type: String },
13
+ clickable: { type: Boolean },
14
+ },
15
+ emits: {},
16
+ setup(props, { emit, slots, expose }) {
17
+ const el = ref(null);
18
+ const listeners = [];
19
+ onMounted(() => {
20
+ if (!el.value)
21
+ return;
22
+ // Event listeners
23
+ });
24
+ expose({
25
+ /** The underlying Custom Element. */
26
+ el,
27
+ });
28
+ return () => {
29
+ const attrs = {};
30
+ if (props.id != null)
31
+ attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
32
+ if (props.label != null)
33
+ attrs['label'] = typeof props.label === 'object' ? JSON.stringify(props.label) : String(props.label);
34
+ if (props.shape != null)
35
+ attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
36
+ if (props.size != null)
37
+ attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
38
+ if (props.image != null)
39
+ attrs['image'] = typeof props.image === 'object' ? JSON.stringify(props.image) : String(props.image);
40
+ if (props.initials != null)
41
+ attrs['initials'] = typeof props.initials === 'object' ? JSON.stringify(props.initials) : String(props.initials);
42
+ if (props.clickable)
43
+ attrs['clickable'] = '';
44
+ return h('cx-avatar', { ref: el, ...attrs });
45
+ };
46
+ },
47
+ });
@@ -0,0 +1,25 @@
1
+ export declare const Backdrop: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ tint: {
3
+ type: StringConstructor;
4
+ };
5
+ blur: {
6
+ type: StringConstructor;
7
+ };
8
+ dismissible: {
9
+ type: BooleanConstructor;
10
+ };
11
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
12
+ [key: string]: any;
13
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
+ tint: {
15
+ type: StringConstructor;
16
+ };
17
+ blur: {
18
+ type: StringConstructor;
19
+ };
20
+ dismissible: {
21
+ type: BooleanConstructor;
22
+ };
23
+ }>> & Readonly<{}>, {
24
+ dismissible: boolean;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,35 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-backdrop>
3
+ import { defineComponent, ref, h, onMounted } from 'vue';
4
+ export const Backdrop = defineComponent({
5
+ name: 'Backdrop',
6
+ props: {
7
+ tint: { type: String },
8
+ blur: { type: String },
9
+ dismissible: { type: Boolean },
10
+ },
11
+ emits: {},
12
+ setup(props, { emit, slots, expose }) {
13
+ const el = ref(null);
14
+ const listeners = [];
15
+ onMounted(() => {
16
+ if (!el.value)
17
+ return;
18
+ // Event listeners
19
+ });
20
+ expose({
21
+ /** The underlying Custom Element. */
22
+ el,
23
+ });
24
+ return () => {
25
+ const attrs = {};
26
+ if (props.tint != null)
27
+ attrs['tint'] = typeof props.tint === 'object' ? JSON.stringify(props.tint) : String(props.tint);
28
+ if (props.blur != null)
29
+ attrs['blur'] = typeof props.blur === 'object' ? JSON.stringify(props.blur) : String(props.blur);
30
+ if (props.dismissible)
31
+ attrs['dismissible'] = '';
32
+ return h('cx-backdrop', { ref: el, ...attrs });
33
+ };
34
+ },
35
+ });
@@ -0,0 +1,74 @@
1
+ import { type PropType } from 'vue';
2
+ export declare const Badge: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ id: {
4
+ type: StringConstructor;
5
+ };
6
+ label: {
7
+ type: StringConstructor;
8
+ };
9
+ variant: {
10
+ type: PropType<"filled" | "outline" | "ghost">;
11
+ };
12
+ intent: {
13
+ type: PropType<"neutral" | "primary" | "info" | "success" | "warning" | "danger">;
14
+ };
15
+ shape: {
16
+ type: PropType<"rounded" | "pill">;
17
+ };
18
+ size: {
19
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
20
+ };
21
+ dot: {
22
+ type: BooleanConstructor;
23
+ };
24
+ dismissible: {
25
+ type: BooleanConstructor;
26
+ };
27
+ dismissLabel: {
28
+ type: StringConstructor;
29
+ };
30
+ dynamic: {
31
+ type: BooleanConstructor;
32
+ };
33
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
+ [key: string]: any;
35
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ 'cx-dismiss': (event: CustomEvent) => true;
37
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
+ id: {
39
+ type: StringConstructor;
40
+ };
41
+ label: {
42
+ type: StringConstructor;
43
+ };
44
+ variant: {
45
+ type: PropType<"filled" | "outline" | "ghost">;
46
+ };
47
+ intent: {
48
+ type: PropType<"neutral" | "primary" | "info" | "success" | "warning" | "danger">;
49
+ };
50
+ shape: {
51
+ type: PropType<"rounded" | "pill">;
52
+ };
53
+ size: {
54
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
55
+ };
56
+ dot: {
57
+ type: BooleanConstructor;
58
+ };
59
+ dismissible: {
60
+ type: BooleanConstructor;
61
+ };
62
+ dismissLabel: {
63
+ type: StringConstructor;
64
+ };
65
+ dynamic: {
66
+ type: BooleanConstructor;
67
+ };
68
+ }>> & Readonly<{
69
+ "onCx-dismiss"?: ((event: CustomEvent<any>) => any) | undefined;
70
+ }>, {
71
+ dismissible: boolean;
72
+ dynamic: boolean;
73
+ dot: boolean;
74
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
package/dist/badge.js ADDED
@@ -0,0 +1,59 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-badge>
3
+ import { defineComponent, ref, h, onMounted } from 'vue';
4
+ export const Badge = defineComponent({
5
+ name: 'Badge',
6
+ props: {
7
+ id: { type: String },
8
+ label: { type: String },
9
+ variant: { type: String },
10
+ intent: { type: String },
11
+ shape: { type: String },
12
+ size: { type: String },
13
+ dot: { type: Boolean },
14
+ dismissible: { type: Boolean },
15
+ dismissLabel: { type: String },
16
+ dynamic: { type: Boolean },
17
+ },
18
+ emits: {
19
+ 'cx-dismiss': (event) => true,
20
+ },
21
+ setup(props, { emit, slots, expose }) {
22
+ const el = ref(null);
23
+ const listeners = [];
24
+ onMounted(() => {
25
+ if (!el.value)
26
+ return;
27
+ // Event listeners
28
+ el.value.addEventListener('cx-dismiss', (ev) => emit('cx-dismiss', ev));
29
+ });
30
+ expose({
31
+ /** The underlying Custom Element. */
32
+ el,
33
+ });
34
+ return () => {
35
+ const attrs = {};
36
+ if (props.id != null)
37
+ attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
38
+ if (props.label != null)
39
+ attrs['label'] = typeof props.label === 'object' ? JSON.stringify(props.label) : String(props.label);
40
+ if (props.variant != null)
41
+ attrs['variant'] = typeof props.variant === 'object' ? JSON.stringify(props.variant) : String(props.variant);
42
+ if (props.intent != null)
43
+ attrs['intent'] = typeof props.intent === 'object' ? JSON.stringify(props.intent) : String(props.intent);
44
+ if (props.shape != null)
45
+ attrs['shape'] = typeof props.shape === 'object' ? JSON.stringify(props.shape) : String(props.shape);
46
+ if (props.size != null)
47
+ attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
48
+ if (props.dot)
49
+ attrs['dot'] = '';
50
+ if (props.dismissible)
51
+ attrs['dismissible'] = '';
52
+ if (props.dismissLabel != null)
53
+ attrs['dismiss-label'] = typeof props.dismissLabel === 'object' ? JSON.stringify(props.dismissLabel) : String(props.dismissLabel);
54
+ if (props.dynamic)
55
+ attrs['dynamic'] = '';
56
+ return h('cx-badge', { ref: el, ...attrs });
57
+ };
58
+ },
59
+ });
@@ -0,0 +1,49 @@
1
+ import { type PropType } from 'vue';
2
+ import type { BreadcrumbItem, NavigateDetail } from './types.js';
3
+ export declare const Breadcrumb: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ id: {
5
+ type: StringConstructor;
6
+ };
7
+ items: {
8
+ type: PropType<BreadcrumbItem[] | string>;
9
+ };
10
+ separator: {
11
+ type: StringConstructor;
12
+ };
13
+ size: {
14
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
15
+ };
16
+ navLabel: {
17
+ type: StringConstructor;
18
+ };
19
+ disabled: {
20
+ type: BooleanConstructor;
21
+ };
22
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
+ [key: string]: any;
24
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ 'cx-navigate': (event: CustomEvent<NavigateDetail>) => true;
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ id: {
28
+ type: StringConstructor;
29
+ };
30
+ items: {
31
+ type: PropType<BreadcrumbItem[] | string>;
32
+ };
33
+ separator: {
34
+ type: StringConstructor;
35
+ };
36
+ size: {
37
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
38
+ };
39
+ navLabel: {
40
+ type: StringConstructor;
41
+ };
42
+ disabled: {
43
+ type: BooleanConstructor;
44
+ };
45
+ }>> & Readonly<{
46
+ "onCx-navigate"?: ((event: CustomEvent<NavigateDetail>) => any) | undefined;
47
+ }>, {
48
+ disabled: boolean;
49
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,53 @@
1
+ // Auto-generated by scripts/generate-vue.mjs — DO NOT EDIT
2
+ // Vue 3 wrapper for <cx-breadcrumb>
3
+ import { defineComponent, ref, h, onMounted, watch } from 'vue';
4
+ export const Breadcrumb = defineComponent({
5
+ name: 'Breadcrumb',
6
+ props: {
7
+ id: { type: String },
8
+ items: { type: [Array, Object, String] },
9
+ separator: { type: String },
10
+ size: { type: String },
11
+ navLabel: { type: String },
12
+ disabled: { type: Boolean },
13
+ },
14
+ emits: {
15
+ 'cx-navigate': (event) => true,
16
+ },
17
+ setup(props, { emit, slots, expose }) {
18
+ const el = ref(null);
19
+ const listeners = [];
20
+ onMounted(() => {
21
+ if (!el.value)
22
+ return;
23
+ watch(() => props.items, (val) => {
24
+ if (!el.value)
25
+ return;
26
+ if (val != null)
27
+ el.value.setAttribute('items', typeof val === 'object' ? JSON.stringify(val) : String(val));
28
+ else
29
+ el.value.removeAttribute('items');
30
+ }, { immediate: true });
31
+ // Event listeners
32
+ el.value.addEventListener('cx-navigate', (ev) => emit('cx-navigate', ev));
33
+ });
34
+ expose({
35
+ /** The underlying Custom Element. */
36
+ el,
37
+ });
38
+ return () => {
39
+ const attrs = {};
40
+ if (props.id != null)
41
+ attrs['id'] = typeof props.id === 'object' ? JSON.stringify(props.id) : String(props.id);
42
+ if (props.separator != null)
43
+ attrs['separator'] = typeof props.separator === 'object' ? JSON.stringify(props.separator) : String(props.separator);
44
+ if (props.size != null)
45
+ attrs['size'] = typeof props.size === 'object' ? JSON.stringify(props.size) : String(props.size);
46
+ if (props.navLabel != null)
47
+ attrs['nav-label'] = typeof props.navLabel === 'object' ? JSON.stringify(props.navLabel) : String(props.navLabel);
48
+ if (props.disabled)
49
+ attrs['disabled'] = '';
50
+ return h('cx-breadcrumb', { ref: el, ...attrs });
51
+ };
52
+ },
53
+ });
@@ -0,0 +1,92 @@
1
+ import { type PropType } from 'vue';
2
+ import type { ClickDetail } from './types.js';
3
+ export declare const Button: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ label: {
5
+ type: StringConstructor;
6
+ };
7
+ variant: {
8
+ type: PropType<"filled" | "ghost" | "outline" | "underline" | "side-indicator">;
9
+ };
10
+ intent: {
11
+ type: PropType<"neutral" | "primary" | "info" | "success" | "warning" | "danger">;
12
+ };
13
+ shape: {
14
+ type: PropType<"sharp" | "rounded" | "pill">;
15
+ };
16
+ size: {
17
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
18
+ };
19
+ disabled: {
20
+ type: BooleanConstructor;
21
+ };
22
+ iconLeading: {
23
+ type: StringConstructor;
24
+ };
25
+ iconTrailing: {
26
+ type: StringConstructor;
27
+ };
28
+ iconOnly: {
29
+ type: StringConstructor;
30
+ };
31
+ ariaLabel: {
32
+ type: StringConstructor;
33
+ };
34
+ kind: {
35
+ type: PropType<"button" | "submit" | "toggle" | "link">;
36
+ };
37
+ pressed: {
38
+ type: BooleanConstructor;
39
+ };
40
+ href: {
41
+ type: StringConstructor;
42
+ };
43
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
44
+ [key: string]: any;
45
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
+ 'cx-click': (event: CustomEvent<ClickDetail>) => true;
47
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
48
+ label: {
49
+ type: StringConstructor;
50
+ };
51
+ variant: {
52
+ type: PropType<"filled" | "ghost" | "outline" | "underline" | "side-indicator">;
53
+ };
54
+ intent: {
55
+ type: PropType<"neutral" | "primary" | "info" | "success" | "warning" | "danger">;
56
+ };
57
+ shape: {
58
+ type: PropType<"sharp" | "rounded" | "pill">;
59
+ };
60
+ size: {
61
+ type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
62
+ };
63
+ disabled: {
64
+ type: BooleanConstructor;
65
+ };
66
+ iconLeading: {
67
+ type: StringConstructor;
68
+ };
69
+ iconTrailing: {
70
+ type: StringConstructor;
71
+ };
72
+ iconOnly: {
73
+ type: StringConstructor;
74
+ };
75
+ ariaLabel: {
76
+ type: StringConstructor;
77
+ };
78
+ kind: {
79
+ type: PropType<"button" | "submit" | "toggle" | "link">;
80
+ };
81
+ pressed: {
82
+ type: BooleanConstructor;
83
+ };
84
+ href: {
85
+ type: StringConstructor;
86
+ };
87
+ }>> & Readonly<{
88
+ "onCx-click"?: ((event: CustomEvent<ClickDetail>) => any) | undefined;
89
+ }>, {
90
+ disabled: boolean;
91
+ pressed: boolean;
92
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;