@velkymx/vibeui 0.9.0 → 1.1.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.
- package/AGENTS.md +44 -0
- package/CLAUDE.md +48 -0
- package/README.md +222 -197
- package/dist/App.vue.d.ts +2 -1
- package/dist/components/HelloWorld.vue.d.ts +2 -1
- package/dist/components/VibeAccordion.vue.d.ts +39 -40
- package/dist/components/VibeAlert.vue.d.ts +21 -37
- package/dist/components/VibeAutocomplete.vue.d.ts +59 -31
- package/dist/components/VibeBadge.vue.d.ts +10 -18
- package/dist/components/VibeBreadcrumb.vue.d.ts +25 -21
- package/dist/components/VibeButton.vue.d.ts +13 -17
- package/dist/components/VibeButtonGroup.vue.d.ts +11 -19
- package/dist/components/VibeCard.vue.d.ts +51 -24
- package/dist/components/VibeCarousel.vue.d.ts +27 -49
- package/dist/components/VibeChartBar.vue.d.ts +61 -0
- package/dist/components/VibeChartLine.vue.d.ts +70 -0
- package/dist/components/VibeChartPie.vue.d.ts +34 -0
- package/dist/components/VibeCloseButton.vue.d.ts +9 -7
- package/dist/components/VibeCol.vue.d.ts +9 -17
- package/dist/components/VibeCollapse.vue.d.ts +24 -32
- package/dist/components/VibeContainer.vue.d.ts +9 -17
- package/dist/components/VibeDataTable.vue.d.ts +122 -63
- package/dist/components/VibeDatePicker.vue.d.ts +4 -6
- package/dist/components/VibeDraggable.vue.d.ts +9 -13
- package/dist/components/VibeDropdown.vue.d.ts +46 -43
- package/dist/components/VibeDroppable.vue.d.ts +9 -13
- package/dist/components/VibeFileInput.vue.d.ts +14 -20
- package/dist/components/VibeFormCheckbox.vue.d.ts +30 -22
- package/dist/components/VibeFormDatepicker.vue.d.ts +27 -30
- package/dist/components/VibeFormErrorSummary.vue.d.ts +17 -0
- package/dist/components/VibeFormGroup.vue.d.ts +10 -13
- package/dist/components/VibeFormInput.vue.d.ts +60 -25
- package/dist/components/VibeFormRadio.vue.d.ts +23 -24
- package/dist/components/VibeFormSelect.vue.d.ts +28 -34
- package/dist/components/VibeFormSpinbutton.vue.d.ts +31 -34
- package/dist/components/VibeFormSwitch.vue.d.ts +22 -23
- package/dist/components/VibeFormTextarea.vue.d.ts +24 -25
- package/dist/components/VibeFormWysiwyg.vue.d.ts +23 -22
- package/dist/components/VibeHero.vue.d.ts +117 -0
- package/dist/components/VibeIcon.vue.d.ts +27 -7
- package/dist/components/VibeInputGroup.vue.d.ts +12 -14
- package/dist/components/VibeLink.vue.d.ts +14 -18
- package/dist/components/VibeListGroup.vue.d.ts +26 -22
- package/dist/components/VibeModal.vue.d.ts +47 -45
- package/dist/components/VibeNav.vue.d.ts +40 -20
- package/dist/components/VibeNavbar.vue.d.ts +12 -19
- package/dist/components/VibeNavbarBrand.vue.d.ts +9 -17
- package/dist/components/VibeNavbarNav.vue.d.ts +52 -33
- package/dist/components/VibeNavbarToggle.vue.d.ts +7 -5
- package/dist/components/VibeOffcanvas.vue.d.ts +28 -43
- package/dist/components/VibePagination.vue.d.ts +38 -29
- package/dist/components/VibePlaceholder.vue.d.ts +9 -17
- package/dist/components/VibePopover.vue.d.ts +17 -40
- package/dist/components/VibeProgress.vue.d.ts +13 -21
- package/dist/components/VibeResizable.vue.d.ts +10 -14
- package/dist/components/VibeRow.vue.d.ts +9 -17
- package/dist/components/VibeScrollspy.vue.d.ts +37 -25
- package/dist/components/VibeSkeleton.vue.d.ts +2 -1
- package/dist/components/VibeSlider.vue.d.ts +4 -5
- package/dist/components/VibeSortable.vue.d.ts +37 -18
- package/dist/components/VibeSpinner.vue.d.ts +4 -7
- package/dist/components/VibeStepper.vue.d.ts +32 -31
- package/dist/components/VibeTab.vue.d.ts +7 -11
- package/dist/components/VibeTabContent.vue.d.ts +13 -31
- package/dist/components/VibeTabs.vue.d.ts +9 -13
- package/dist/components/VibeToast.vue.d.ts +31 -44
- package/dist/components/VibeToastHost.vue.d.ts +2 -1
- package/dist/components/VibeTooltip.vue.d.ts +16 -39
- package/dist/components/chart/chartColors.d.ts +3 -0
- package/dist/components/chart/chartResize.d.ts +2 -0
- package/dist/components/chart/chartTooltip.d.ts +2 -0
- package/dist/components/chart/chartTypes.d.ts +6 -0
- package/dist/components/chart/drawBar.d.ts +5 -0
- package/dist/components/chart/drawLine.d.ts +18 -0
- package/dist/components/chart/drawPie.d.ts +4 -0
- package/dist/components/dndStore.d.ts +1 -0
- package/dist/components/index.d.ts +6 -1
- package/dist/composables/useBreakpoints.d.ts +1 -0
- package/dist/composables/useColorMode.d.ts +1 -1
- package/dist/composables/useId.d.ts +1 -4
- package/dist/directives/vTooltip.d.ts +2 -3
- package/dist/injectionKeys.d.ts +34 -0
- package/dist/purify.es-eYghtX9j.mjs +735 -0
- package/dist/types.d.ts +23 -2
- package/dist/utils/routeKey.d.ts +11 -0
- package/dist/utils/safeCss.d.ts +16 -0
- package/dist/utils/safeHref.d.ts +7 -0
- package/dist/utils/sanitizeHtml.d.ts +13 -0
- package/dist/vibeui.css +2 -1
- package/dist/vibeui.es.js +8527 -5855
- package/dist/vibeui.umd.js +3 -1
- package/docs/README.md +225 -0
- package/docs/components/advanced/popover.md +125 -0
- package/docs/components/advanced/scrollspy.md +106 -0
- package/docs/components/advanced/tooltip.md +90 -0
- package/docs/components/card/card.md +223 -0
- package/docs/components/charts/chart-bar.md +129 -0
- package/docs/components/charts/chart-line.md +136 -0
- package/docs/components/charts/chart-pie.md +102 -0
- package/docs/components/core/alert.md +94 -0
- package/docs/components/core/badge.md +75 -0
- package/docs/components/core/button-group.md +99 -0
- package/docs/components/core/button.md +145 -0
- package/docs/components/core/close-button.md +82 -0
- package/docs/components/core/link.md +79 -0
- package/docs/components/core/placeholder.md +129 -0
- package/docs/components/core/skeleton.md +40 -0
- package/docs/components/core/spinner.md +103 -0
- package/docs/components/data/datatable.md +437 -0
- package/docs/components/hero/hero.md +65 -0
- package/docs/components/interactive/accordion.md +121 -0
- package/docs/components/interactive/carousel.md +112 -0
- package/docs/components/interactive/collapse.md +106 -0
- package/docs/components/interactive/date-picker.md +78 -0
- package/docs/components/interactive/draggable.md +91 -0
- package/docs/components/interactive/dropdown.md +129 -0
- package/docs/components/interactive/modal.md +151 -0
- package/docs/components/interactive/offcanvas.md +92 -0
- package/docs/components/interactive/resizable.md +73 -0
- package/docs/components/interactive/slider.md +57 -0
- package/docs/components/interactive/sortable.md +52 -0
- package/docs/components/interactive/stepper.md +83 -0
- package/docs/components/interactive/tabs.md +66 -0
- package/docs/components/interactive/toast.md +177 -0
- package/docs/components/layout/col.md +117 -0
- package/docs/components/layout/container.md +53 -0
- package/docs/components/layout/row.md +107 -0
- package/docs/components/list/list-group.md +225 -0
- package/docs/components/navigation/breadcrumb.md +120 -0
- package/docs/components/navigation/nav.md +151 -0
- package/docs/components/navigation/navbar.md +114 -0
- package/docs/components/navigation/pagination.md +163 -0
- package/docs/components/progress/progress.md +188 -0
- package/docs/composables/back-button.md +28 -0
- package/docs/composables/breakpoints.md +54 -0
- package/docs/composables/color-mode.md +179 -0
- package/docs/composables/use-form.md +78 -0
- package/docs/composables/use-position.md +68 -0
- package/docs/composables/use-toast.md +91 -0
- package/docs/directives/v-tooltip.md +58 -0
- package/docs/forms/README.md +87 -0
- package/docs/forms/autocomplete.md +96 -0
- package/docs/forms/file-input.md +97 -0
- package/docs/forms/form-checkbox.md +100 -0
- package/docs/forms/form-datepicker.md +80 -0
- package/docs/forms/form-error-summary.md +96 -0
- package/docs/forms/form-group.md +118 -0
- package/docs/forms/form-input.md +140 -0
- package/docs/forms/form-radio.md +82 -0
- package/docs/forms/form-select.md +98 -0
- package/docs/forms/form-spinbutton.md +94 -0
- package/docs/forms/form-switch.md +75 -0
- package/docs/forms/form-textarea.md +82 -0
- package/docs/forms/form-wysiwyg.md +99 -0
- package/docs/forms/input-group.md +70 -0
- package/docs/forms/validation.md +213 -0
- package/docs/getting-started/starter-template.md +136 -0
- package/docs/superpowers/plans/2026-05-12-vibe-charts.md +1999 -0
- package/docs/superpowers/plans/2026-05-29-e2e-browser-testing.md +615 -0
- package/docs/superpowers/specs/2026-05-12-charting-design.md +185 -0
- package/docs/superpowers/specs/2026-05-29-e2e-browser-testing-design.md +168 -0
- package/docs/utilities/position.md +82 -0
- package/docs/versioning.md +57 -0
- package/examples/README.md +201 -0
- package/examples/album.html +262 -0
- package/examples/blog.html +166 -0
- package/examples/carousel.html +114 -0
- package/examples/checkout.html +275 -0
- package/examples/cover.html +89 -0
- package/examples/dashboard.html +156 -0
- package/examples/index.html +129 -0
- package/examples/jumbotron.html +56 -0
- package/examples/mobile-dashboard.html +138 -0
- package/examples/pricing.html +172 -0
- package/examples/product.html +145 -0
- package/examples/sidebars.html +166 -0
- package/examples/sign-in.html +119 -0
- package/examples/starter.html +314 -0
- package/examples/sticky-footer-navbar.html +70 -0
- package/examples/sticky-footer.html +60 -0
- package/examples/test-simple.html +91 -0
- package/llms.txt +801 -0
- package/package.json +44 -14
- package/dist/types/index.d.ts +0 -6
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import { Variant, ToastPlacement } from '../types';
|
|
1
|
+
import { Variant, ToastPlacement, ComponentError } from '../types';
|
|
2
2
|
interface BootstrapToast {
|
|
3
3
|
show: () => void;
|
|
4
4
|
hide: () => void;
|
|
5
5
|
dispose: () => void;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
toastRef: HTMLDivElement;
|
|
17
|
-
};
|
|
18
|
-
rootEl: any;
|
|
7
|
+
declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
header?: (props: typeof __VLS_7) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: typeof __VLS_9) => any;
|
|
12
|
+
} & {
|
|
13
|
+
header?: (props: typeof __VLS_11) => any;
|
|
14
|
+
} & {
|
|
15
|
+
default?: (props: typeof __VLS_13) => any;
|
|
19
16
|
};
|
|
20
|
-
|
|
21
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
17
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
22
18
|
id: {
|
|
23
19
|
type: StringConstructor;
|
|
24
|
-
default:
|
|
20
|
+
default: undefined;
|
|
25
21
|
};
|
|
26
22
|
modelValue: {
|
|
27
23
|
type: BooleanConstructor;
|
|
@@ -58,26 +54,18 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
58
54
|
}>, {
|
|
59
55
|
show: () => void | undefined;
|
|
60
56
|
hide: () => void | undefined;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} | null>;
|
|
70
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
71
|
-
"update:modelValue": (...args: any[]) => void;
|
|
72
|
-
"component-error": (...args: any[]) => void;
|
|
73
|
-
show: (...args: any[]) => void;
|
|
74
|
-
shown: (...args: any[]) => void;
|
|
75
|
-
hide: (...args: any[]) => void;
|
|
76
|
-
hidden: (...args: any[]) => void;
|
|
57
|
+
_unsafe_bsInstance: import('vue').ShallowRef<BootstrapToast | null, BootstrapToast | null>;
|
|
58
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
59
|
+
"update:modelValue": (value: boolean) => any;
|
|
60
|
+
"component-error": (error: ComponentError) => any;
|
|
61
|
+
show: () => any;
|
|
62
|
+
hidden: () => any;
|
|
63
|
+
hide: () => any;
|
|
64
|
+
shown: () => any;
|
|
77
65
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
78
66
|
id: {
|
|
79
67
|
type: StringConstructor;
|
|
80
|
-
default:
|
|
68
|
+
default: undefined;
|
|
81
69
|
};
|
|
82
70
|
modelValue: {
|
|
83
71
|
type: BooleanConstructor;
|
|
@@ -112,12 +100,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
112
100
|
default: boolean;
|
|
113
101
|
};
|
|
114
102
|
}>> & Readonly<{
|
|
115
|
-
"onUpdate:modelValue"?: ((
|
|
116
|
-
"onComponent-error"?: ((
|
|
117
|
-
onShow?: ((
|
|
118
|
-
|
|
119
|
-
onHide?: ((
|
|
120
|
-
|
|
103
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
104
|
+
"onComponent-error"?: ((error: ComponentError) => any) | undefined;
|
|
105
|
+
onShow?: (() => any) | undefined;
|
|
106
|
+
onHidden?: (() => any) | undefined;
|
|
107
|
+
onHide?: (() => any) | undefined;
|
|
108
|
+
onShown?: (() => any) | undefined;
|
|
121
109
|
}>, {
|
|
122
110
|
variant: Variant;
|
|
123
111
|
modelValue: boolean;
|
|
@@ -128,12 +116,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
128
116
|
autohide: boolean;
|
|
129
117
|
delay: number;
|
|
130
118
|
noContainer: boolean;
|
|
131
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
119
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
120
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
121
|
+
declare const _default: typeof __VLS_export;
|
|
135
122
|
export default _default;
|
|
136
|
-
type
|
|
123
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
137
124
|
new (): {
|
|
138
125
|
$slots: S;
|
|
139
126
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ToastPlacement } from '../types';
|
|
2
|
-
declare const
|
|
2
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
3
|
defaultPlacement: {
|
|
4
4
|
type: () => ToastPlacement;
|
|
5
5
|
default: string;
|
|
@@ -12,4 +12,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
12
12
|
}>> & Readonly<{}>, {
|
|
13
13
|
defaultPlacement: ToastPlacement;
|
|
14
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
15
16
|
export default _default;
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TooltipPlacement, ComponentError } from '../types';
|
|
2
2
|
interface BootstrapTooltip {
|
|
3
3
|
dispose: () => void;
|
|
4
4
|
setContent: (content: object) => void;
|
|
5
5
|
}
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
};
|
|
11
|
-
refs: {
|
|
12
|
-
tooltipRef: HTMLSpanElement;
|
|
13
|
-
};
|
|
14
|
-
rootEl: HTMLSpanElement;
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
15
9
|
};
|
|
16
|
-
|
|
17
|
-
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
18
11
|
content: {
|
|
19
12
|
type: StringConstructor;
|
|
20
13
|
default: undefined;
|
|
@@ -24,27 +17,17 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
24
17
|
default: undefined;
|
|
25
18
|
};
|
|
26
19
|
placement: {
|
|
27
|
-
type: () =>
|
|
20
|
+
type: () => TooltipPlacement;
|
|
28
21
|
default: string;
|
|
29
22
|
};
|
|
30
23
|
trigger: {
|
|
31
24
|
type: StringConstructor;
|
|
32
25
|
default: string;
|
|
33
26
|
};
|
|
34
|
-
html: {
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
default: boolean;
|
|
37
|
-
};
|
|
38
27
|
}>, {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} | null, BootstrapTooltip | {
|
|
43
|
-
dispose: () => void;
|
|
44
|
-
setContent: (content: object) => void;
|
|
45
|
-
} | null>;
|
|
46
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
|
-
"component-error": (...args: any[]) => void;
|
|
28
|
+
_unsafe_bsInstance: import('vue').ShallowRef<BootstrapTooltip | null, BootstrapTooltip | null>;
|
|
29
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
30
|
+
"component-error": (error: ComponentError) => any;
|
|
48
31
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
49
32
|
content: {
|
|
50
33
|
type: StringConstructor;
|
|
@@ -55,31 +38,25 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
55
38
|
default: undefined;
|
|
56
39
|
};
|
|
57
40
|
placement: {
|
|
58
|
-
type: () =>
|
|
41
|
+
type: () => TooltipPlacement;
|
|
59
42
|
default: string;
|
|
60
43
|
};
|
|
61
44
|
trigger: {
|
|
62
45
|
type: StringConstructor;
|
|
63
46
|
default: string;
|
|
64
47
|
};
|
|
65
|
-
html: {
|
|
66
|
-
type: BooleanConstructor;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
48
|
}>> & Readonly<{
|
|
70
|
-
"onComponent-error"?: ((
|
|
49
|
+
"onComponent-error"?: ((error: ComponentError) => any) | undefined;
|
|
71
50
|
}>, {
|
|
72
|
-
html: boolean;
|
|
73
51
|
text: string;
|
|
74
|
-
placement: Placement;
|
|
75
52
|
content: string;
|
|
53
|
+
placement: TooltipPlacement;
|
|
76
54
|
trigger: string;
|
|
77
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
56
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
57
|
+
declare const _default: typeof __VLS_export;
|
|
81
58
|
export default _default;
|
|
82
|
-
type
|
|
59
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
83
60
|
new (): {
|
|
84
61
|
$slots: S;
|
|
85
62
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChartData } from '../../types';
|
|
2
|
+
import { TooltipHit } from './chartTypes';
|
|
3
|
+
export declare function getMaxVal(data: ChartData, stacked: boolean): number;
|
|
4
|
+
export declare function drawBar(ctx: CanvasRenderingContext2D, data: ChartData, w: number, h: number, colors: string[], showAxes: boolean, showGrid: boolean, stacked: boolean): void;
|
|
5
|
+
export declare function hitTestBar(x: number, y: number, data: ChartData, w: number, h: number, showAxes: boolean, stacked: boolean, maxVal: number): TooltipHit | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChartData } from '../../types';
|
|
2
|
+
import { TooltipHit } from './chartTypes';
|
|
3
|
+
export declare function drawLine(ctx: CanvasRenderingContext2D, data: ChartData, w: number, h: number, colors: string[], showAxes: boolean, showGrid: boolean, smooth: boolean, fill: boolean): void;
|
|
4
|
+
/**
|
|
5
|
+
* Compute the {min, max, range} across all dataset values, or null for empty data.
|
|
6
|
+
* Exposed so the chart component can precompute it once per data change and pass it to
|
|
7
|
+
* hitTestLine, instead of re-scanning every value on every mousemove.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getLineExtent(data: ChartData): {
|
|
10
|
+
min: number;
|
|
11
|
+
max: number;
|
|
12
|
+
range: number;
|
|
13
|
+
} | null;
|
|
14
|
+
export declare function hitTestLine(x: number, y: number, data: ChartData, w: number, h: number, showAxes: boolean, extent: {
|
|
15
|
+
min: number;
|
|
16
|
+
max: number;
|
|
17
|
+
range: number;
|
|
18
|
+
} | null): TooltipHit | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ChartData } from '../../types';
|
|
2
|
+
import { TooltipHit } from './chartTypes';
|
|
3
|
+
export declare function drawPie(ctx: CanvasRenderingContext2D, data: ChartData, w: number, h: number, colors: string[]): void;
|
|
4
|
+
export declare function hitTestPie(x: number, y: number, data: ChartData, w: number, h: number): TooltipHit | null;
|
|
@@ -10,6 +10,7 @@ import { default as VibeContainer } from './VibeContainer.vue';
|
|
|
10
10
|
import { default as VibeRow } from './VibeRow.vue';
|
|
11
11
|
import { default as VibeCol } from './VibeCol.vue';
|
|
12
12
|
import { default as VibeCard } from './VibeCard.vue';
|
|
13
|
+
import { default as VibeHero } from './VibeHero.vue';
|
|
13
14
|
import { default as VibeBreadcrumb } from './VibeBreadcrumb.vue';
|
|
14
15
|
import { default as VibeNav } from './VibeNav.vue';
|
|
15
16
|
import { default as VibeNavbar } from './VibeNavbar.vue';
|
|
@@ -34,6 +35,9 @@ import { default as VibeTooltip } from './VibeTooltip.vue';
|
|
|
34
35
|
import { default as VibePopover } from './VibePopover.vue';
|
|
35
36
|
import { default as VibeScrollspy } from './VibeScrollspy.vue';
|
|
36
37
|
import { default as VibeIcon } from './VibeIcon.vue';
|
|
38
|
+
import { default as VibeChartLine } from './VibeChartLine.vue';
|
|
39
|
+
import { default as VibeChartBar } from './VibeChartBar.vue';
|
|
40
|
+
import { default as VibeChartPie } from './VibeChartPie.vue';
|
|
37
41
|
import { default as VibeDataTable } from './VibeDataTable.vue';
|
|
38
42
|
import { default as VibeFormInput } from './VibeFormInput.vue';
|
|
39
43
|
import { default as VibeFormSelect } from './VibeFormSelect.vue';
|
|
@@ -53,10 +57,11 @@ import { default as VibeFormCheckbox } from './VibeFormCheckbox.vue';
|
|
|
53
57
|
import { default as VibeFormRadio } from './VibeFormRadio.vue';
|
|
54
58
|
import { default as VibeFormSwitch } from './VibeFormSwitch.vue';
|
|
55
59
|
import { default as VibeFormGroup } from './VibeFormGroup.vue';
|
|
60
|
+
import { default as VibeFormErrorSummary } from './VibeFormErrorSummary.vue';
|
|
56
61
|
import { default as VibeFormWysiwyg } from './VibeFormWysiwyg.vue';
|
|
57
62
|
import { default as VibeInputGroup } from './VibeInputGroup.vue';
|
|
58
63
|
import { default as VibeLink } from './VibeLink.vue';
|
|
59
64
|
import { Plugin } from 'vue';
|
|
60
|
-
export { VibeAlert, VibeBadge, VibeButton, VibeButtonGroup, VibeCloseButton, VibeSpinner, VibePlaceholder, VibeSkeleton, VibeContainer, VibeRow, VibeCol, VibeCard, VibeBreadcrumb, VibeNav, VibeNavbar, VibeNavbarBrand, VibeNavbarToggle, VibeNavbarNav, VibePagination, VibeTabContent, VibeTabs, VibeTab, VibeListGroup, VibeProgress, VibeAccordion, VibeCollapse, VibeDropdown, VibeModal, VibeOffcanvas, VibeToast, VibeToastHost, VibeCarousel, VibeTooltip, VibePopover, VibeScrollspy, VibeIcon, VibeDataTable, VibeFormInput, VibeFormSelect, VibeFormTextarea, VibeFormSpinbutton, VibeFormDatepicker, VibeFileInput, VibeSlider, VibeStepper, VibeAutocomplete, VibeSortable, VibeDraggable, VibeDroppable, VibeResizable, VibeDatePicker, VibeFormCheckbox, VibeFormRadio, VibeFormSwitch, VibeFormGroup, VibeFormWysiwyg, VibeInputGroup, VibeLink };
|
|
65
|
+
export { VibeAlert, VibeBadge, VibeButton, VibeButtonGroup, VibeCloseButton, VibeSpinner, VibePlaceholder, VibeSkeleton, VibeContainer, VibeRow, VibeCol, VibeCard, VibeHero, VibeBreadcrumb, VibeNav, VibeNavbar, VibeNavbarBrand, VibeNavbarToggle, VibeNavbarNav, VibePagination, VibeTabContent, VibeTabs, VibeTab, VibeListGroup, VibeProgress, VibeAccordion, VibeCollapse, VibeDropdown, VibeModal, VibeOffcanvas, VibeToast, VibeToastHost, VibeCarousel, VibeTooltip, VibePopover, VibeScrollspy, VibeIcon, VibeChartLine, VibeChartBar, VibeChartPie, VibeDataTable, VibeFormInput, VibeFormSelect, VibeFormTextarea, VibeFormSpinbutton, VibeFormDatepicker, VibeFileInput, VibeSlider, VibeStepper, VibeAutocomplete, VibeSortable, VibeDraggable, VibeDroppable, VibeResizable, VibeDatePicker, VibeFormCheckbox, VibeFormRadio, VibeFormSwitch, VibeFormGroup, VibeFormErrorSummary, VibeFormWysiwyg, VibeInputGroup, VibeLink };
|
|
61
66
|
declare const VibeUIPlugin: Plugin;
|
|
62
67
|
export default VibeUIPlugin;
|
|
@@ -5,7 +5,7 @@ export declare function useColorMode(): {
|
|
|
5
5
|
toggleColorMode: () => void;
|
|
6
6
|
initColorMode: () => void;
|
|
7
7
|
clearColorMode: () => void;
|
|
8
|
-
onColorModeChange: (callback: (mode: ColorMode) => void) => void;
|
|
8
|
+
onColorModeChange: (callback: (mode: ColorMode) => void) => () => void;
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* For testing only — not re-exported from the package index.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Directive } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { TooltipPlacement } from '../types';
|
|
3
3
|
interface BootstrapTooltipInstance {
|
|
4
4
|
dispose: () => void;
|
|
5
5
|
setContent: (content: Record<string, string>) => void;
|
|
@@ -8,9 +8,8 @@ interface TooltipOptions {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
text?: string;
|
|
10
10
|
content?: string;
|
|
11
|
-
placement?:
|
|
11
|
+
placement?: TooltipPlacement;
|
|
12
12
|
trigger?: string;
|
|
13
|
-
html?: boolean;
|
|
14
13
|
}
|
|
15
14
|
type TooltipBindingValue = string | TooltipOptions | undefined;
|
|
16
15
|
declare const INSTANCE_KEY: unique symbol;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { InjectionKey, ComputedRef } from 'vue';
|
|
2
|
+
export interface FormGroupContext {
|
|
3
|
+
/** The group's computed element id — shared with the first control that calls consumeId(). */
|
|
4
|
+
id: ComputedRef<string>;
|
|
5
|
+
/**
|
|
6
|
+
* Claim the group id for label association.
|
|
7
|
+
* Only the first control that calls this receives the id — subsequent calls get null.
|
|
8
|
+
* Prevents duplicate id attributes when multiple controls are inside one group.
|
|
9
|
+
*/
|
|
10
|
+
consumeId: () => string | null;
|
|
11
|
+
hasLabel: ComputedRef<boolean>;
|
|
12
|
+
hasValidation: ComputedRef<boolean>;
|
|
13
|
+
hasHelp: ComputedRef<boolean>;
|
|
14
|
+
/**
|
|
15
|
+
* WCAG 1.3.1 / 3.3.1: ids of the help text and feedback elements rendered by
|
|
16
|
+
* this group so nested controls can reference them in aria-describedby.
|
|
17
|
+
*/
|
|
18
|
+
helpId: ComputedRef<string | null>;
|
|
19
|
+
feedbackId: ComputedRef<string | null>;
|
|
20
|
+
}
|
|
21
|
+
export declare const FORM_GROUP_KEY: InjectionKey<FormGroupContext | null>;
|
|
22
|
+
export interface NavbarCollapseContext {
|
|
23
|
+
collapseStates: Record<string, boolean>;
|
|
24
|
+
toggleCollapse: (id: string) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const NAVBAR_COLLAPSE_KEY: InjectionKey<NavbarCollapseContext | null>;
|
|
27
|
+
export interface TabsContext {
|
|
28
|
+
register: (name: string, label: string, disabled: boolean) => void;
|
|
29
|
+
unregister: (name: string) => void;
|
|
30
|
+
isActive: (name: string) => boolean;
|
|
31
|
+
hasBeenActive: (name: string) => boolean;
|
|
32
|
+
lazy: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare const TABS_CONTEXT_KEY: InjectionKey<TabsContext | null>;
|