@velkymx/vibeui 0.4.2 → 0.5.0

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 (46) hide show
  1. package/README.md +96 -78
  2. package/dist/components/VibeAccordion.vue.d.ts +12 -4
  3. package/dist/components/VibeBreadcrumb.vue.d.ts +8 -4
  4. package/dist/components/VibeCard.vue.d.ts +32 -21
  5. package/dist/components/VibeCarousel.vue.d.ts +7 -6
  6. package/dist/components/VibeDataTable.vue.d.ts +68 -255
  7. package/dist/components/VibeDropdown.vue.d.ts +13 -4
  8. package/dist/components/VibeFormCheckbox.vue.d.ts +4 -3
  9. package/dist/components/VibeFormDatepicker.vue.d.ts +5 -4
  10. package/dist/components/VibeFormInput.vue.d.ts +14 -15
  11. package/dist/components/VibeFormRadio.vue.d.ts +4 -3
  12. package/dist/components/VibeFormSelect.vue.d.ts +4 -3
  13. package/dist/components/VibeFormSpinbutton.vue.d.ts +5 -4
  14. package/dist/components/VibeFormSwitch.vue.d.ts +4 -3
  15. package/dist/components/VibeFormTextarea.vue.d.ts +4 -3
  16. package/dist/components/VibeFormWysiwyg.vue.d.ts +12 -13
  17. package/dist/components/VibeListGroup.vue.d.ts +15 -4
  18. package/dist/components/VibeModal.vue.d.ts +6 -2
  19. package/dist/components/VibeNav.vue.d.ts +15 -4
  20. package/dist/components/VibeNavbarNav.vue.d.ts +14 -1
  21. package/dist/components/VibePagination.vue.d.ts +32 -4
  22. package/dist/components/VibeProgress.vue.d.ts +13 -1
  23. package/dist/components/VibeTabContent.vue.d.ts +22 -2
  24. package/dist/components/VibeToast.vue.d.ts +6 -2
  25. package/dist/components/index.d.ts +4 -20
  26. package/dist/composables/useFormValidation.d.ts +10 -8
  27. package/dist/types.d.ts +16 -0
  28. package/dist/vibeui.css +1 -1
  29. package/dist/vibeui.es.js +1477 -1627
  30. package/dist/vibeui.umd.js +1 -1
  31. package/package.json +10 -1
  32. package/dist/components/VibeAccordionItem.vue.d.ts +0 -57
  33. package/dist/components/VibeBreadcrumbItem.vue.d.ts +0 -51
  34. package/dist/components/VibeCardBody.vue.d.ts +0 -34
  35. package/dist/components/VibeCardFooter.vue.d.ts +0 -34
  36. package/dist/components/VibeCardHeader.vue.d.ts +0 -34
  37. package/dist/components/VibeCardImg.vue.d.ts +0 -44
  38. package/dist/components/VibeCardText.vue.d.ts +0 -33
  39. package/dist/components/VibeCardTitle.vue.d.ts +0 -33
  40. package/dist/components/VibeCarouselSlide.vue.d.ts +0 -80
  41. package/dist/components/VibeDropdownItem.vue.d.ts +0 -81
  42. package/dist/components/VibeListGroupItem.vue.d.ts +0 -90
  43. package/dist/components/VibeNavItem.vue.d.ts +0 -80
  44. package/dist/components/VibePaginationItem.vue.d.ts +0 -62
  45. package/dist/components/VibeProgressBar.vue.d.ts +0 -88
  46. package/dist/components/VibeTabPane.vue.d.ts +0 -70
@@ -1,3 +1,4 @@
1
+ import { PropType } from 'vue';
1
2
  import { ValidationState, ValidationRule, ValidatorFunction, Size } from '../types';
2
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
4
  modelValue: {
@@ -50,7 +51,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
50
51
  default: undefined;
51
52
  };
52
53
  validationRules: {
53
- type: () => ValidationRule[] | ValidatorFunction | undefined;
54
+ type: PropType<ValidationRule[] | ValidatorFunction>;
54
55
  default: undefined;
55
56
  };
56
57
  validateOn: {
@@ -123,7 +124,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
123
124
  default: undefined;
124
125
  };
125
126
  validationRules: {
126
- type: () => ValidationRule[] | ValidatorFunction | undefined;
127
+ type: PropType<ValidationRule[] | ValidatorFunction>;
127
128
  default: undefined;
128
129
  };
129
130
  validateOn: {
@@ -155,7 +156,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
155
156
  readonly: boolean;
156
157
  validationState: ValidationState;
157
158
  validationMessage: string;
158
- validationRules: ValidatorFunction | ValidationRule[] | undefined;
159
+ validationRules: ValidatorFunction | ValidationRule[];
159
160
  validateOn: "blur" | "change" | "input";
160
161
  helpText: string;
161
162
  rows: number;
@@ -1,9 +1,9 @@
1
+ import { PropType } from 'vue';
1
2
  import { ValidationState, ValidationRule, ValidatorFunction } from '../types';
2
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
4
  modelValue: {
4
5
  type: StringConstructor;
5
6
  default: string;
6
- validator: (value: any) => boolean;
7
7
  };
8
8
  id: {
9
9
  type: StringConstructor;
@@ -30,15 +30,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
30
30
  default: boolean;
31
31
  };
32
32
  theme: {
33
- type: () => "snow" | "bubble";
33
+ type: PropType<"snow" | "bubble">;
34
34
  default: string;
35
35
  };
36
36
  toolbar: {
37
- type: (StringConstructor | BooleanConstructor | ArrayConstructor)[];
37
+ type: PropType<unknown[] | string | boolean>;
38
38
  default: undefined;
39
39
  };
40
40
  validationState: {
41
- type: () => ValidationState;
41
+ type: PropType<ValidationState>;
42
42
  default: null;
43
43
  };
44
44
  validationMessage: {
@@ -46,11 +46,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
46
46
  default: undefined;
47
47
  };
48
48
  validationRules: {
49
- type: () => ValidationRule[] | ValidatorFunction | undefined;
49
+ type: PropType<ValidationRule[] | ValidatorFunction>;
50
50
  default: undefined;
51
51
  };
52
52
  validateOn: {
53
- type: () => "change" | "blur";
53
+ type: PropType<"change" | "blur">;
54
54
  default: string;
55
55
  };
56
56
  helpText: {
@@ -72,7 +72,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
72
72
  modelValue: {
73
73
  type: StringConstructor;
74
74
  default: string;
75
- validator: (value: any) => boolean;
76
75
  };
77
76
  id: {
78
77
  type: StringConstructor;
@@ -99,15 +98,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
99
98
  default: boolean;
100
99
  };
101
100
  theme: {
102
- type: () => "snow" | "bubble";
101
+ type: PropType<"snow" | "bubble">;
103
102
  default: string;
104
103
  };
105
104
  toolbar: {
106
- type: (StringConstructor | BooleanConstructor | ArrayConstructor)[];
105
+ type: PropType<unknown[] | string | boolean>;
107
106
  default: undefined;
108
107
  };
109
108
  validationState: {
110
- type: () => ValidationState;
109
+ type: PropType<ValidationState>;
111
110
  default: null;
112
111
  };
113
112
  validationMessage: {
@@ -115,11 +114,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
115
114
  default: undefined;
116
115
  };
117
116
  validationRules: {
118
- type: () => ValidationRule[] | ValidatorFunction | undefined;
117
+ type: PropType<ValidationRule[] | ValidatorFunction>;
119
118
  default: undefined;
120
119
  };
121
120
  validateOn: {
122
- type: () => "change" | "blur";
121
+ type: PropType<"change" | "blur">;
123
122
  default: string;
124
123
  };
125
124
  helpText: {
@@ -147,7 +146,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
147
146
  readonly: boolean;
148
147
  validationState: ValidationState;
149
148
  validationMessage: string;
150
- validationRules: ValidatorFunction | ValidationRule[] | undefined;
149
+ validationRules: ValidatorFunction | ValidationRule[];
151
150
  validateOn: "blur" | "change";
152
151
  helpText: string;
153
152
  theme: "snow" | "bubble";
@@ -1,5 +1,15 @@
1
1
  import { Tag, ListGroupItem } from '../types';
2
- declare function __VLS_template(): any;
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ item?(_: {
6
+ item: ListGroupItem;
7
+ index: number;
8
+ }): any;
9
+ };
10
+ refs: {};
11
+ rootEl: any;
12
+ };
3
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
14
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
15
  flush: {
@@ -20,10 +30,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
20
30
  };
21
31
  items: {
22
32
  type: () => ListGroupItem[];
23
- default: undefined;
33
+ required: true;
24
34
  };
25
35
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
36
  "component-error": (...args: any[]) => void;
37
+ "item-click": (...args: any[]) => void;
27
38
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
28
39
  flush: {
29
40
  type: BooleanConstructor;
@@ -43,13 +54,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
43
54
  };
44
55
  items: {
45
56
  type: () => ListGroupItem[];
46
- default: undefined;
57
+ required: true;
47
58
  };
48
59
  }>> & Readonly<{
49
60
  "onComponent-error"?: ((...args: any[]) => any) | undefined;
61
+ "onItem-click"?: ((...args: any[]) => any) | undefined;
50
62
  }>, {
51
63
  tag: "ol" | "ul" | Tag;
52
- items: ListGroupItem[];
53
64
  flush: boolean;
54
65
  horizontal: string | boolean;
55
66
  numbered: boolean;
@@ -6,7 +6,9 @@ declare function __VLS_template(): {
6
6
  default?(_: {}): any;
7
7
  footer?(_: {}): any;
8
8
  };
9
- refs: {};
9
+ refs: {
10
+ modalRef: HTMLDivElement;
11
+ };
10
12
  rootEl: HTMLDivElement;
11
13
  };
12
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -116,7 +118,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
116
118
  staticBackdrop: boolean;
117
119
  hideHeader: boolean;
118
120
  hideFooter: boolean;
119
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
121
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
122
+ modalRef: HTMLDivElement;
123
+ }, HTMLDivElement>;
120
124
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
121
125
  export default _default;
122
126
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,5 +1,15 @@
1
1
  import { Tag, NavItem } from '../types';
2
- declare function __VLS_template(): any;
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ item?(_: {
6
+ item: NavItem;
7
+ index: number;
8
+ }): any;
9
+ };
10
+ refs: {};
11
+ rootEl: any;
12
+ };
3
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
14
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
15
  tabs: {
@@ -28,10 +38,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
28
38
  };
29
39
  items: {
30
40
  type: () => NavItem[];
31
- default: undefined;
41
+ required: true;
32
42
  };
33
43
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
44
  "component-error": (...args: any[]) => void;
45
+ "item-click": (...args: any[]) => void;
35
46
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
36
47
  tabs: {
37
48
  type: BooleanConstructor;
@@ -59,15 +70,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
59
70
  };
60
71
  items: {
61
72
  type: () => NavItem[];
62
- default: undefined;
73
+ required: true;
63
74
  };
64
75
  }>> & Readonly<{
65
76
  "onComponent-error"?: ((...args: any[]) => any) | undefined;
77
+ "onItem-click"?: ((...args: any[]) => any) | undefined;
66
78
  }>, {
67
79
  fill: boolean;
68
80
  tag: "ul" | Tag;
69
81
  vertical: boolean;
70
- items: NavItem[];
71
82
  tabs: boolean;
72
83
  pills: boolean;
73
84
  justified: boolean;
@@ -1,5 +1,16 @@
1
1
  import { NavItem } from '../types';
2
- declare function __VLS_template(): any;
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ item?(_: {
6
+ item: NavItem;
7
+ index: number;
8
+ }): any;
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: any;
13
+ };
3
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
15
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
16
  tag: {
@@ -12,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
12
23
  };
13
24
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
25
  "component-error": (...args: any[]) => void;
26
+ "item-click": (...args: any[]) => void;
15
27
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
28
  tag: {
17
29
  type: StringConstructor;
@@ -23,6 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
23
35
  };
24
36
  }>> & Readonly<{
25
37
  "onComponent-error"?: ((...args: any[]) => any) | undefined;
38
+ "onItem-click"?: ((...args: any[]) => any) | undefined;
26
39
  }>, {
27
40
  tag: string;
28
41
  items: NavItem[];
@@ -2,7 +2,16 @@ import { Size } from '../types';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
5
- default?(_: {}): any;
5
+ prev?(_: {
6
+ disabled: boolean;
7
+ }): any;
8
+ page?(_: {
9
+ page: number;
10
+ active: boolean;
11
+ }): any;
12
+ next?(_: {
13
+ disabled: boolean;
14
+ }): any;
6
15
  };
7
16
  refs: {};
8
17
  rootEl: HTMLElement;
@@ -19,7 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
19
28
  };
20
29
  totalPages: {
21
30
  type: NumberConstructor;
22
- default: undefined;
31
+ required: true;
23
32
  };
24
33
  currentPage: {
25
34
  type: NumberConstructor;
@@ -29,8 +38,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
29
38
  type: BooleanConstructor;
30
39
  default: boolean;
31
40
  };
41
+ prevText: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ nextText: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
32
49
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
33
50
  "component-error": (...args: any[]) => void;
51
+ "update:currentPage": (...args: any[]) => void;
34
52
  "page-click": (...args: any[]) => void;
35
53
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
36
54
  size: {
@@ -43,7 +61,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
43
61
  };
44
62
  totalPages: {
45
63
  type: NumberConstructor;
46
- default: undefined;
64
+ required: true;
47
65
  };
48
66
  currentPage: {
49
67
  type: NumberConstructor;
@@ -53,15 +71,25 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
53
71
  type: BooleanConstructor;
54
72
  default: boolean;
55
73
  };
74
+ prevText: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ nextText: {
79
+ type: StringConstructor;
80
+ default: string;
81
+ };
56
82
  }>> & Readonly<{
57
83
  "onComponent-error"?: ((...args: any[]) => any) | undefined;
84
+ "onUpdate:currentPage"?: ((...args: any[]) => any) | undefined;
58
85
  "onPage-click"?: ((...args: any[]) => any) | undefined;
59
86
  }>, {
60
87
  size: Size;
61
88
  ariaLabel: string;
62
- totalPages: number;
63
89
  currentPage: number;
64
90
  showPrevNext: boolean;
91
+ prevText: string;
92
+ nextText: string;
65
93
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
66
94
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
67
95
  export default _default;
@@ -1,7 +1,11 @@
1
+ import { ProgressBar } from '../types';
1
2
  declare function __VLS_template(): {
2
3
  attrs: Partial<{}>;
3
4
  slots: {
4
- default?(_: {}): any;
5
+ label?(_: {
6
+ bar: ProgressBar;
7
+ index: number;
8
+ }): any;
5
9
  };
6
10
  refs: {};
7
11
  rootEl: HTMLDivElement;
@@ -12,6 +16,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
12
16
  type: StringConstructor;
13
17
  default: undefined;
14
18
  };
19
+ bars: {
20
+ type: () => ProgressBar[];
21
+ required: true;
22
+ };
15
23
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
24
  "component-error": (...args: any[]) => void;
17
25
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -19,6 +27,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
19
27
  type: StringConstructor;
20
28
  default: undefined;
21
29
  };
30
+ bars: {
31
+ type: () => ProgressBar[];
32
+ required: true;
33
+ };
22
34
  }>> & Readonly<{
23
35
  "onComponent-error"?: ((...args: any[]) => any) | undefined;
24
36
  }>, {
@@ -1,9 +1,12 @@
1
1
  import { PropType } from 'vue';
2
- import { Tag } from '../types';
2
+ import { Tag, TabPane } from '../types';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
5
  slots: {
6
- default?(_: {}): any;
6
+ pane?(_: {
7
+ pane: TabPane;
8
+ index: number;
9
+ }): any;
7
10
  };
8
11
  refs: {};
9
12
  rootEl: any;
@@ -18,6 +21,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
18
21
  type: PropType<Tag>;
19
22
  default: string;
20
23
  };
24
+ panes: {
25
+ type: () => TabPane[];
26
+ required: true;
27
+ };
28
+ fade: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
21
32
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
33
  "component-error": (...args: any[]) => void;
23
34
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -29,11 +40,20 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
29
40
  type: PropType<Tag>;
30
41
  default: string;
31
42
  };
43
+ panes: {
44
+ type: () => TabPane[];
45
+ required: true;
46
+ };
47
+ fade: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
32
51
  }>> & Readonly<{
33
52
  "onComponent-error"?: ((...args: any[]) => any) | undefined;
34
53
  }>, {
35
54
  tag: Tag;
36
55
  id: string;
56
+ fade: boolean;
37
57
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
58
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
59
  export default _default;
@@ -5,7 +5,9 @@ declare function __VLS_template(): {
5
5
  header?(_: {}): any;
6
6
  default?(_: {}): any;
7
7
  };
8
- refs: {};
8
+ refs: {
9
+ toastRef: HTMLDivElement;
10
+ };
9
11
  rootEl: HTMLDivElement;
10
12
  };
11
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -80,7 +82,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
80
82
  id: string;
81
83
  autohide: boolean;
82
84
  delay: number;
83
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
85
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
86
+ toastRef: HTMLDivElement;
87
+ }, HTMLDivElement>;
84
88
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
85
89
  export default _default;
86
90
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -9,38 +9,23 @@ import { default as VibeContainer } from './VibeContainer.vue';
9
9
  import { default as VibeRow } from './VibeRow.vue';
10
10
  import { default as VibeCol } from './VibeCol.vue';
11
11
  import { default as VibeCard } from './VibeCard.vue';
12
- import { default as VibeCardHeader } from './VibeCardHeader.vue';
13
- import { default as VibeCardBody } from './VibeCardBody.vue';
14
- import { default as VibeCardFooter } from './VibeCardFooter.vue';
15
- import { default as VibeCardImg } from './VibeCardImg.vue';
16
- import { default as VibeCardTitle } from './VibeCardTitle.vue';
17
- import { default as VibeCardText } from './VibeCardText.vue';
18
12
  import { default as VibeBreadcrumb } from './VibeBreadcrumb.vue';
19
- import { default as VibeBreadcrumbItem } from './VibeBreadcrumbItem.vue';
20
13
  import { default as VibeNav } from './VibeNav.vue';
21
- import { default as VibeNavItem } from './VibeNavItem.vue';
22
14
  import { default as VibeNavbar } from './VibeNavbar.vue';
23
15
  import { default as VibeNavbarBrand } from './VibeNavbarBrand.vue';
24
16
  import { default as VibeNavbarToggle } from './VibeNavbarToggle.vue';
25
17
  import { default as VibeNavbarNav } from './VibeNavbarNav.vue';
26
18
  import { default as VibePagination } from './VibePagination.vue';
27
- import { default as VibePaginationItem } from './VibePaginationItem.vue';
28
19
  import { default as VibeTabContent } from './VibeTabContent.vue';
29
- import { default as VibeTabPane } from './VibeTabPane.vue';
30
20
  import { default as VibeListGroup } from './VibeListGroup.vue';
31
- import { default as VibeListGroupItem } from './VibeListGroupItem.vue';
32
21
  import { default as VibeProgress } from './VibeProgress.vue';
33
- import { default as VibeProgressBar } from './VibeProgressBar.vue';
34
22
  import { default as VibeAccordion } from './VibeAccordion.vue';
35
- import { default as VibeAccordionItem } from './VibeAccordionItem.vue';
36
23
  import { default as VibeCollapse } from './VibeCollapse.vue';
37
24
  import { default as VibeDropdown } from './VibeDropdown.vue';
38
- import { default as VibeDropdownItem } from './VibeDropdownItem.vue';
39
25
  import { default as VibeModal } from './VibeModal.vue';
40
26
  import { default as VibeOffcanvas } from './VibeOffcanvas.vue';
41
27
  import { default as VibeToast } from './VibeToast.vue';
42
28
  import { default as VibeCarousel } from './VibeCarousel.vue';
43
- import { default as VibeCarouselSlide } from './VibeCarouselSlide.vue';
44
29
  import { default as VibeTooltip } from './VibeTooltip.vue';
45
30
  import { default as VibePopover } from './VibePopover.vue';
46
31
  import { default as VibeScrollspy } from './VibeScrollspy.vue';
@@ -56,8 +41,7 @@ import { default as VibeFormRadio } from './VibeFormRadio.vue';
56
41
  import { default as VibeFormSwitch } from './VibeFormSwitch.vue';
57
42
  import { default as VibeFormGroup } from './VibeFormGroup.vue';
58
43
  import { default as VibeFormWysiwyg } from './VibeFormWysiwyg.vue';
59
- export { VibeAlert, VibeBadge, VibeButton, VibeButtonGroup, VibeCloseButton, VibeSpinner, VibePlaceholder, VibeContainer, VibeRow, VibeCol, VibeCard, VibeCardHeader, VibeCardBody, VibeCardFooter, VibeCardImg, VibeCardTitle, VibeCardText, VibeBreadcrumb, VibeBreadcrumbItem, VibeNav, VibeNavItem, VibeNavbar, VibeNavbarBrand, VibeNavbarToggle, VibeNavbarNav, VibePagination, VibePaginationItem, VibeTabContent, VibeTabPane, VibeListGroup, VibeListGroupItem, VibeProgress, VibeProgressBar, VibeAccordion, VibeAccordionItem, VibeCollapse, VibeDropdown, VibeDropdownItem, VibeModal, VibeOffcanvas, VibeToast, VibeCarousel, VibeCarouselSlide, VibeTooltip, VibePopover, VibeScrollspy, VibeIcon, VibeDataTable, VibeFormInput, VibeFormSelect, VibeFormTextarea, VibeFormSpinbutton, VibeFormDatepicker, VibeFormCheckbox, VibeFormRadio, VibeFormSwitch, VibeFormGroup, VibeFormWysiwyg };
60
- declare const _default: {
61
- install(app: any): void;
62
- };
63
- export default _default;
44
+ import { Plugin } from 'vue';
45
+ export { VibeAlert, VibeBadge, VibeButton, VibeButtonGroup, VibeCloseButton, VibeSpinner, VibePlaceholder, VibeContainer, VibeRow, VibeCol, VibeCard, VibeBreadcrumb, VibeNav, VibeNavbar, VibeNavbarBrand, VibeNavbarToggle, VibeNavbarNav, VibePagination, VibeTabContent, VibeListGroup, VibeProgress, VibeAccordion, VibeCollapse, VibeDropdown, VibeModal, VibeOffcanvas, VibeToast, VibeCarousel, VibeTooltip, VibePopover, VibeScrollspy, VibeIcon, VibeDataTable, VibeFormInput, VibeFormSelect, VibeFormTextarea, VibeFormSpinbutton, VibeFormDatepicker, VibeFormCheckbox, VibeFormRadio, VibeFormSwitch, VibeFormGroup, VibeFormWysiwyg };
46
+ declare const VibeUIPlugin: Plugin;
47
+ export default VibeUIPlugin;
@@ -1,11 +1,13 @@
1
+ import { Ref } from 'vue';
1
2
  import { ValidationState, ValidationRule, ValidatorFunction, FormValidationResult } from '../types';
2
- export declare function useFormValidation(initialValue?: any): {
3
- value: import('vue').Ref<any, any>;
4
- validationState: import('vue').Ref<ValidationState, ValidationState>;
5
- validationMessage: import('vue').Ref<string, string>;
6
- isDirty: import('vue').Ref<boolean, boolean>;
7
- isTouched: import('vue').Ref<boolean, boolean>;
8
- isValidating: import('vue').Ref<boolean, boolean>;
3
+ export type FormFieldValue = string | number | boolean | null | undefined;
4
+ export declare function useFormValidation<T extends FormFieldValue = string>(initialValue?: T): {
5
+ value: Ref<T, T>;
6
+ validationState: Ref<ValidationState, ValidationState>;
7
+ validationMessage: Ref<string, string>;
8
+ isDirty: Ref<boolean, boolean>;
9
+ isTouched: Ref<boolean, boolean>;
10
+ isValidating: Ref<boolean, boolean>;
9
11
  isValid: import('vue').ComputedRef<boolean>;
10
12
  isInvalid: import('vue').ComputedRef<boolean>;
11
13
  validate: (rules: ValidationRule[] | ValidatorFunction | undefined) => Promise<FormValidationResult>;
@@ -22,5 +24,5 @@ export declare const validators: {
22
24
  max: (max: number, message?: string) => ValidationRule;
23
25
  pattern: (regex: RegExp, message?: string) => ValidationRule;
24
26
  url: (message?: string) => ValidationRule;
25
- async: (validatorFn: (value: any) => Promise<boolean | string>) => ValidationRule;
27
+ async: (validatorFn: (value: unknown) => Promise<boolean | string>) => ValidationRule;
26
28
  };
package/dist/types.d.ts CHANGED
@@ -82,6 +82,22 @@ export interface CarouselItem {
82
82
  active?: boolean;
83
83
  interval?: number;
84
84
  }
85
+ export interface ProgressBar {
86
+ value: number;
87
+ max?: number;
88
+ variant?: Variant;
89
+ striped?: boolean;
90
+ animated?: boolean;
91
+ label?: string;
92
+ showValue?: boolean;
93
+ }
94
+ export interface TabPane {
95
+ id: string;
96
+ title: string;
97
+ content?: string;
98
+ active?: boolean;
99
+ disabled?: boolean;
100
+ }
85
101
  export type InputType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' | 'month' | 'week' | 'color';
86
102
  export type ValidationState = 'valid' | 'invalid' | null;
87
103
  export type ValidatorFunction = (value: any) => boolean | string | Promise<boolean | string>;
package/dist/vibeui.css CHANGED
@@ -1 +1 @@
1
- .vibe-datatable[data-v-48221c7b]{width:100%}.datatable-info[data-v-48221c7b]{padding:.5rem 0;color:#6c757d}.input-group-vertical[data-v-f7aee3b4]{flex-direction:column}.input-group-vertical[data-v-f7aee3b4]>*{width:100%}.vibe-wysiwyg-container[data-v-792a0bda]{border:1px solid #ced4da;border-radius:.375rem}.vibe-wysiwyg-container.is-valid[data-v-792a0bda]{border-color:#198754}.vibe-wysiwyg-container.is-invalid[data-v-792a0bda]{border-color:#dc3545}.vibe-wysiwyg-container.disabled[data-v-792a0bda]{background-color:#e9ecef;opacity:.6;cursor:not-allowed}.vibe-wysiwyg-container[data-v-792a0bda] .ql-container{border:none;font-size:1rem}.vibe-wysiwyg-container[data-v-792a0bda] .ql-toolbar{border:none;border-bottom:1px solid #ced4da;border-top-left-radius:.375rem;border-top-right-radius:.375rem}.vibe-wysiwyg-container[data-v-792a0bda] .ql-editor{min-height:150px}
1
+ .vibe-datatable[data-v-bafec986]{width:100%}.datatable-info[data-v-bafec986]{padding:.5rem 0;color:#6c757d}.input-group-vertical[data-v-fbee244e]{flex-direction:column}.input-group-vertical[data-v-fbee244e]>*{width:100%}.vibe-wysiwyg-container[data-v-8e6e81b0]{border:1px solid #ced4da;border-radius:.375rem}.vibe-wysiwyg-container.is-valid[data-v-8e6e81b0]{border-color:#198754}.vibe-wysiwyg-container.is-invalid[data-v-8e6e81b0]{border-color:#dc3545}.vibe-wysiwyg-container.disabled[data-v-8e6e81b0]{background-color:#e9ecef;opacity:.6;cursor:not-allowed}.vibe-wysiwyg-container[data-v-8e6e81b0] .ql-container{border:none;font-size:1rem}.vibe-wysiwyg-container[data-v-8e6e81b0] .ql-toolbar{border:none;border-bottom:1px solid #ced4da;border-top-left-radius:.375rem;border-top-right-radius:.375rem}.vibe-wysiwyg-container[data-v-8e6e81b0] .ql-editor{min-height:150px}