@dskripchenko/ui 0.0.1
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/README.md +75 -0
- package/dist/UidIcon-5947kXOj.js +31 -0
- package/dist/UidIcon-DUeT_lN-.cjs +1 -0
- package/dist/components/Accordion/UidAccordion.vue.d.ts +32 -0
- package/dist/components/Accordion/UidAccordionItem.vue.d.ts +28 -0
- package/dist/components/Accordion/context.d.ts +6 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/Alert/UidAlert.vue.d.ts +38 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Avatar/UidAvatar.vue.d.ts +15 -0
- package/dist/components/Avatar/UidAvatarGroup.vue.d.ts +25 -0
- package/dist/components/Avatar/index.d.ts +4 -0
- package/dist/components/Badge/UidBadge.vue.d.ts +30 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Breadcrumb/UidBreadcrumb.vue.d.ts +26 -0
- package/dist/components/Breadcrumb/UidBreadcrumbItem.vue.d.ts +26 -0
- package/dist/components/Breadcrumb/index.d.ts +4 -0
- package/dist/components/Button/UidButton.vue.d.ts +42 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Card/UidCard.vue.d.ts +32 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Checkbox/UidCheckbox.vue.d.ts +33 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/ColorPicker/UidColorPicker.vue.d.ts +26 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/Command/UidCommand.vue.d.ts +30 -0
- package/dist/components/Command/index.d.ts +2 -0
- package/dist/components/Container/UidContainer.vue.d.ts +28 -0
- package/dist/components/Container/index.d.ts +2 -0
- package/dist/components/DatePicker/UidDatePicker.vue.d.ts +26 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/Divider/UidDivider.vue.d.ts +9 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Drawer/UidDrawer.vue.d.ts +52 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/FormField/UidFormField.vue.d.ts +36 -0
- package/dist/components/FormField/UidLabel.vue.d.ts +28 -0
- package/dist/components/FormField/index.d.ts +4 -0
- package/dist/components/Grid/UidGrid.vue.d.ts +36 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Input/UidInput.vue.d.ts +58 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Link/UidLink.vue.d.ts +33 -0
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Menu/UidMenu.vue.d.ts +27 -0
- package/dist/components/Menu/UidMenuItem.vue.d.ts +33 -0
- package/dist/components/Menu/UidMenuSeparator.vue.d.ts +2 -0
- package/dist/components/Menu/context.d.ts +2 -0
- package/dist/components/Menu/index.d.ts +4 -0
- package/dist/components/Modal/UidModal.vue.d.ts +48 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Pagination/UidInfiniteScroll.vue.d.ts +17 -0
- package/dist/components/Pagination/UidLoadMore.vue.d.ts +15 -0
- package/dist/components/Pagination/UidPageSize.vue.d.ts +17 -0
- package/dist/components/Pagination/UidPagination.vue.d.ts +20 -0
- package/dist/components/Pagination/UidPaginationCursor.vue.d.ts +19 -0
- package/dist/components/Pagination/index.d.ts +10 -0
- package/dist/components/Popover/UidPopover.vue.d.ts +33 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Progress/UidProgress.vue.d.ts +19 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Radio/UidRadio.vue.d.ts +23 -0
- package/dist/components/Radio/UidRadioGroup.vue.d.ts +45 -0
- package/dist/components/Radio/context.d.ts +9 -0
- package/dist/components/Radio/index.d.ts +5 -0
- package/dist/components/Select/UidSelect.vue.d.ts +37 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Skeleton/UidSkeleton.vue.d.ts +13 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Slider/UidSlider.vue.d.ts +27 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Spinner/UidSpinner.vue.d.ts +10 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Stack/UidStack.vue.d.ts +36 -0
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/Stepper/UidStepper.vue.d.ts +14 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/Switch/UidSwitch.vue.d.ts +32 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Table/UidTable.vue.d.ts +49 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/UidTab.vue.d.ts +26 -0
- package/dist/components/Tabs/UidTabPanel.vue.d.ts +23 -0
- package/dist/components/Tabs/UidTabs.vue.d.ts +35 -0
- package/dist/components/Tabs/context.d.ts +8 -0
- package/dist/components/Tabs/index.d.ts +7 -0
- package/dist/components/Tag/UidTag.vue.d.ts +34 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/Textarea/UidTextarea.vue.d.ts +53 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Toast/UidToast.vue.d.ts +16 -0
- package/dist/components/Toast/UidToastProvider.vue.d.ts +2 -0
- package/dist/components/Toast/index.d.ts +3 -0
- package/dist/components/Tooltip/UidTooltip.vue.d.ts +34 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/VirtualList/UidVirtualList.vue.d.ts +29 -0
- package/dist/components/VirtualList/index.d.ts +2 -0
- package/dist/composables/useCommandPalette.d.ts +6 -0
- package/dist/composables/useField.d.ts +14 -0
- package/dist/composables/useFocusTrap.d.ts +5 -0
- package/dist/composables/usePopover.d.ts +17 -0
- package/dist/composables/useScrollLock.d.ts +4 -0
- package/dist/composables/useSidebar.d.ts +9 -0
- package/dist/composables/useTheme.d.ts +8 -0
- package/dist/composables/useToast.d.ts +38 -0
- package/dist/composables/useWizard.d.ts +2 -0
- package/dist/icons/UidIcon.vue.d.ts +12 -0
- package/dist/icons/index.cjs +1 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/icons/index.mjs +3 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.mjs +3479 -0
- package/dist/layouts/Auth/UidAuthLayout.vue.d.ts +24 -0
- package/dist/layouts/Auth/index.d.ts +2 -0
- package/dist/layouts/Sidebar/UidSidebarLayout.vue.d.ts +33 -0
- package/dist/layouts/Sidebar/index.d.ts +2 -0
- package/dist/layouts/Simple/UidSimpleLayout.vue.d.ts +24 -0
- package/dist/layouts/Simple/index.d.ts +2 -0
- package/dist/layouts/Wizard/UidWizardLayout.vue.d.ts +20 -0
- package/dist/layouts/Wizard/index.d.ts +1 -0
- package/dist/patterns/EmptyState/UidEmptyState.vue.d.ts +32 -0
- package/dist/patterns/EmptyState/index.d.ts +2 -0
- package/dist/patterns/ErrorState/UidErrorState.vue.d.ts +34 -0
- package/dist/patterns/ErrorState/index.d.ts +2 -0
- package/dist/patterns/Footer/UidFooter.vue.d.ts +28 -0
- package/dist/patterns/Footer/index.d.ts +2 -0
- package/dist/patterns/Header/UidHeader.vue.d.ts +34 -0
- package/dist/patterns/Header/index.d.ts +2 -0
- package/dist/patterns/PageHeader/UidPageHeader.vue.d.ts +40 -0
- package/dist/patterns/PageHeader/index.d.ts +2 -0
- package/dist/patterns/Sidebar/UidSidebar.vue.d.ts +32 -0
- package/dist/patterns/Sidebar/UidSidebarDivider.vue.d.ts +2 -0
- package/dist/patterns/Sidebar/UidSidebarGroup.vue.d.ts +26 -0
- package/dist/patterns/Sidebar/UidSidebarItem.vue.d.ts +37 -0
- package/dist/patterns/Sidebar/index.d.ts +7 -0
- package/dist/patterns/Wizard/UidWizard.vue.d.ts +39 -0
- package/dist/patterns/Wizard/UidWizardStep.vue.d.ts +23 -0
- package/dist/patterns/Wizard/context.d.ts +17 -0
- package/dist/patterns/Wizard/index.d.ts +5 -0
- package/dist/styles/UidIcon.css +1 -0
- package/dist/styles/index.css +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/utils/validation/index.d.ts +4 -0
- package/dist/utils/validation/messages.d.ts +3 -0
- package/dist/utils/validation/parseRules.d.ts +3 -0
- package/dist/utils/validation/rules.d.ts +18 -0
- package/dist/utils/validation/types.d.ts +11 -0
- package/package.json +70 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface UidDrawerProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
side?: 'right' | 'left' | 'bottom';
|
|
4
|
+
closeOnOverlay?: boolean;
|
|
5
|
+
hideClose?: boolean;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = UidDrawerProps;
|
|
10
|
+
type __VLS_PublicProps = {
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
} & __VLS_Props;
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: Readonly<{
|
|
16
|
+
default(): unknown;
|
|
17
|
+
header?(): unknown;
|
|
18
|
+
footer?(): unknown;
|
|
19
|
+
}> & {
|
|
20
|
+
default(): unknown;
|
|
21
|
+
header?(): unknown;
|
|
22
|
+
footer?(): unknown;
|
|
23
|
+
};
|
|
24
|
+
refs: {
|
|
25
|
+
panelRef: HTMLDivElement;
|
|
26
|
+
};
|
|
27
|
+
rootEl: any;
|
|
28
|
+
};
|
|
29
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
30
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (value: boolean) => any;
|
|
32
|
+
close: () => any;
|
|
33
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
34
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
35
|
+
onClose?: (() => any) | undefined;
|
|
36
|
+
}>, {
|
|
37
|
+
title: string;
|
|
38
|
+
width: string;
|
|
39
|
+
height: string;
|
|
40
|
+
closeOnOverlay: boolean;
|
|
41
|
+
hideClose: boolean;
|
|
42
|
+
side: "right" | "left" | "bottom";
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
44
|
+
panelRef: HTMLDivElement;
|
|
45
|
+
}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface UidFormFieldProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
labelFor?: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
default(): unknown;
|
|
13
|
+
label?(): unknown;
|
|
14
|
+
}> & {
|
|
15
|
+
default(): unknown;
|
|
16
|
+
label?(): unknown;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<UidFormFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidFormFieldProps> & Readonly<{}>, {
|
|
23
|
+
label: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
hint: string;
|
|
27
|
+
error: string;
|
|
28
|
+
labelFor: string;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface UidLabelProps {
|
|
2
|
+
for?: string;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<{
|
|
9
|
+
default(): unknown;
|
|
10
|
+
}> & {
|
|
11
|
+
default(): unknown;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: HTMLLabelElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<UidLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidLabelProps> & Readonly<{}>, {
|
|
18
|
+
required: boolean;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
for: string;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface UidGridProps {
|
|
2
|
+
cols?: number | string;
|
|
3
|
+
gap?: string;
|
|
4
|
+
rowGap?: string;
|
|
5
|
+
colGap?: string;
|
|
6
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
7
|
+
justify?: 'start' | 'center' | 'end' | 'stretch';
|
|
8
|
+
as?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: Readonly<{
|
|
13
|
+
default(): unknown;
|
|
14
|
+
}> & {
|
|
15
|
+
default(): unknown;
|
|
16
|
+
};
|
|
17
|
+
refs: {};
|
|
18
|
+
rootEl: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<UidGridProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidGridProps> & Readonly<{}>, {
|
|
22
|
+
as: string;
|
|
23
|
+
gap: string;
|
|
24
|
+
align: "start" | "center" | "end" | "stretch";
|
|
25
|
+
justify: "start" | "center" | "end" | "stretch";
|
|
26
|
+
cols: number | string;
|
|
27
|
+
rowGap: string;
|
|
28
|
+
colGap: string;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Size } from '../../types/index.js';
|
|
2
|
+
import { RuleInput } from '../../utils/validation/types.js';
|
|
3
|
+
export interface UidInputProps {
|
|
4
|
+
type?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
readonly?: boolean;
|
|
8
|
+
size?: Size;
|
|
9
|
+
label?: string;
|
|
10
|
+
hint?: string;
|
|
11
|
+
error?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
name?: string;
|
|
14
|
+
rules?: RuleInput;
|
|
15
|
+
id?: string;
|
|
16
|
+
autocomplete?: string;
|
|
17
|
+
}
|
|
18
|
+
type __VLS_Props = UidInputProps;
|
|
19
|
+
type __VLS_PublicProps = {
|
|
20
|
+
modelValue?: string;
|
|
21
|
+
} & __VLS_Props;
|
|
22
|
+
declare function __VLS_template(): {
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
slots: Readonly<{
|
|
25
|
+
prepend?(): unknown;
|
|
26
|
+
append?(): unknown;
|
|
27
|
+
}> & {
|
|
28
|
+
prepend?(): unknown;
|
|
29
|
+
append?(): unknown;
|
|
30
|
+
};
|
|
31
|
+
refs: {};
|
|
32
|
+
rootEl: HTMLDivElement;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
36
|
+
validate: () => boolean;
|
|
37
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
38
|
+
blur: (event: FocusEvent) => any;
|
|
39
|
+
focus: (event: FocusEvent) => any;
|
|
40
|
+
"update:modelValue": (value: string) => any;
|
|
41
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
42
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
43
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
44
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
size: Size;
|
|
47
|
+
type: string;
|
|
48
|
+
required: boolean;
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
readonly: boolean;
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
52
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export interface UidLinkProps {
|
|
3
|
+
href?: string;
|
|
4
|
+
to?: string | Record<string, unknown>;
|
|
5
|
+
external?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
as?: string | Component;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
default(): unknown;
|
|
13
|
+
}> & {
|
|
14
|
+
default(): unknown;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<UidLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidLinkProps> & Readonly<{}>, {
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
href: string;
|
|
23
|
+
to: string | Record<string, unknown>;
|
|
24
|
+
external: boolean;
|
|
25
|
+
as: string | Component;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: Readonly<{
|
|
4
|
+
trigger(): unknown;
|
|
5
|
+
default(): unknown;
|
|
6
|
+
}> & {
|
|
7
|
+
trigger(): unknown;
|
|
8
|
+
default(): unknown;
|
|
9
|
+
};
|
|
10
|
+
refs: {
|
|
11
|
+
triggerRef: HTMLDivElement;
|
|
12
|
+
menuRef: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
18
|
+
triggerRef: HTMLDivElement;
|
|
19
|
+
menuRef: HTMLDivElement;
|
|
20
|
+
}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
export interface UidMenuItemProps {
|
|
3
|
+
icon?: Component;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
variant?: 'default' | 'danger';
|
|
6
|
+
}
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
default(): unknown;
|
|
11
|
+
}> & {
|
|
12
|
+
default(): unknown;
|
|
13
|
+
};
|
|
14
|
+
refs: {};
|
|
15
|
+
rootEl: HTMLButtonElement;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
+
declare const __VLS_component: import('vue').DefineComponent<UidMenuItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
click: (event: MouseEvent) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<UidMenuItemProps> & Readonly<{
|
|
21
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
icon: Component;
|
|
24
|
+
variant: "default" | "danger";
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface UidModalProps {
|
|
2
|
+
title?: string;
|
|
3
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
closeOnOverlay?: boolean;
|
|
5
|
+
hideClose?: boolean;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = UidModalProps;
|
|
8
|
+
type __VLS_PublicProps = {
|
|
9
|
+
modelValue?: boolean;
|
|
10
|
+
} & __VLS_Props;
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: Readonly<{
|
|
14
|
+
default(): unknown;
|
|
15
|
+
header?(): unknown;
|
|
16
|
+
footer?(): unknown;
|
|
17
|
+
}> & {
|
|
18
|
+
default(): unknown;
|
|
19
|
+
header?(): unknown;
|
|
20
|
+
footer?(): unknown;
|
|
21
|
+
};
|
|
22
|
+
refs: {
|
|
23
|
+
dialogRef: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
rootEl: any;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
"update:modelValue": (value: boolean) => any;
|
|
30
|
+
close: () => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
33
|
+
onClose?: (() => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
size: "sm" | "md" | "lg" | "xl";
|
|
36
|
+
title: string;
|
|
37
|
+
closeOnOverlay: boolean;
|
|
38
|
+
hideClose: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
40
|
+
dialogRef: HTMLDivElement;
|
|
41
|
+
}, any>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface UidInfiniteScrollProps {
|
|
2
|
+
loading?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
rootMargin?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<UidInfiniteScrollProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
load: () => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<UidInfiniteScrollProps> & Readonly<{
|
|
9
|
+
onLoad?: (() => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
rootMargin: string;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
+
sentinelRef: HTMLDivElement;
|
|
16
|
+
}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface UidLoadMoreProps {
|
|
2
|
+
loading?: boolean;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<UidLoadMoreProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
load: () => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<UidLoadMoreProps> & Readonly<{
|
|
9
|
+
onLoad?: (() => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
label: string;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface UidPageSizeProps {
|
|
2
|
+
options?: number[];
|
|
3
|
+
label?: string;
|
|
4
|
+
}
|
|
5
|
+
type __VLS_Props = UidPageSizeProps;
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
modelValue?: number;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: number) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
label: string;
|
|
15
|
+
options: number[];
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface UidPaginationProps {
|
|
2
|
+
total: number;
|
|
3
|
+
perPage?: number;
|
|
4
|
+
siblingCount?: number;
|
|
5
|
+
showEdges?: boolean;
|
|
6
|
+
}
|
|
7
|
+
type __VLS_Props = UidPaginationProps;
|
|
8
|
+
type __VLS_PublicProps = {
|
|
9
|
+
modelValue?: number;
|
|
10
|
+
} & __VLS_Props;
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: number) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
perPage: number;
|
|
17
|
+
siblingCount: number;
|
|
18
|
+
showEdges: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface UidPaginationCursorProps {
|
|
2
|
+
hasPrev?: boolean;
|
|
3
|
+
hasNext?: boolean;
|
|
4
|
+
prevLabel?: string;
|
|
5
|
+
nextLabel?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<UidPaginationCursorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
prev: () => any;
|
|
9
|
+
next: () => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<UidPaginationCursorProps> & Readonly<{
|
|
11
|
+
onPrev?: (() => any) | undefined;
|
|
12
|
+
onNext?: (() => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
hasPrev: boolean;
|
|
15
|
+
hasNext: boolean;
|
|
16
|
+
prevLabel: string;
|
|
17
|
+
nextLabel: string;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as UidPagination } from './UidPagination.vue';
|
|
2
|
+
export { default as UidPaginationCursor } from './UidPaginationCursor.vue';
|
|
3
|
+
export { default as UidLoadMore } from './UidLoadMore.vue';
|
|
4
|
+
export { default as UidInfiniteScroll } from './UidInfiniteScroll.vue';
|
|
5
|
+
export { default as UidPageSize } from './UidPageSize.vue';
|
|
6
|
+
export type { UidPaginationProps } from './UidPagination.vue';
|
|
7
|
+
export type { UidPaginationCursorProps } from './UidPaginationCursor.vue';
|
|
8
|
+
export type { UidLoadMoreProps } from './UidLoadMore.vue';
|
|
9
|
+
export type { UidInfiniteScrollProps } from './UidInfiniteScroll.vue';
|
|
10
|
+
export type { UidPageSizeProps } from './UidPageSize.vue';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Placement } from '../../composables/usePopover.js';
|
|
2
|
+
export interface UidPopoverProps {
|
|
3
|
+
placement?: Placement;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Readonly<{
|
|
8
|
+
trigger(): unknown;
|
|
9
|
+
default(): unknown;
|
|
10
|
+
}> & {
|
|
11
|
+
trigger(): unknown;
|
|
12
|
+
default(): unknown;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
referenceRef: HTMLDivElement;
|
|
16
|
+
floatingRef: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
rootEl: any;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<UidPopoverProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidPopoverProps> & Readonly<{}>, {
|
|
22
|
+
placement: Placement;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
referenceRef: HTMLDivElement;
|
|
25
|
+
floatingRef: HTMLDivElement;
|
|
26
|
+
}, any>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Tone } from '../../types/index.js';
|
|
2
|
+
export type UidProgressVariant = Tone | 'default';
|
|
3
|
+
export interface UidProgressProps {
|
|
4
|
+
value?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
variant?: UidProgressVariant;
|
|
8
|
+
label?: string;
|
|
9
|
+
showValue?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import('vue').DefineComponent<UidProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidProgressProps> & Readonly<{}>, {
|
|
12
|
+
size: "sm" | "md" | "lg";
|
|
13
|
+
label: string;
|
|
14
|
+
variant: UidProgressVariant;
|
|
15
|
+
max: number;
|
|
16
|
+
value: number;
|
|
17
|
+
showValue: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { RadioValue } from './context.js';
|
|
2
|
+
export interface UidRadioProps {
|
|
3
|
+
value: RadioValue;
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
name?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = UidRadioProps;
|
|
10
|
+
type __VLS_PublicProps = {
|
|
11
|
+
modelValue?: RadioValue;
|
|
12
|
+
} & __VLS_Props;
|
|
13
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (value: RadioValue) => any;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: RadioValue) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
label: string;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
name: string;
|
|
21
|
+
id: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { RadioValue } from './context.js';
|
|
2
|
+
export interface UidRadioGroupProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
direction?: 'horizontal' | 'vertical';
|
|
10
|
+
}
|
|
11
|
+
type __VLS_Props = UidRadioGroupProps;
|
|
12
|
+
type __VLS_PublicProps = {
|
|
13
|
+
modelValue?: RadioValue;
|
|
14
|
+
} & __VLS_Props;
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: Readonly<{
|
|
18
|
+
default(): unknown;
|
|
19
|
+
}> & {
|
|
20
|
+
default(): unknown;
|
|
21
|
+
};
|
|
22
|
+
refs: {};
|
|
23
|
+
rootEl: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (value: RadioValue) => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: RadioValue) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
label: string;
|
|
32
|
+
required: boolean;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
hint: string;
|
|
35
|
+
error: string;
|
|
36
|
+
name: string;
|
|
37
|
+
direction: "horizontal" | "vertical";
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export type RadioValue = string | number | boolean | null | undefined;
|
|
3
|
+
export interface RadioGroupContext {
|
|
4
|
+
modelValue: Ref<RadioValue>;
|
|
5
|
+
update: (value: RadioValue) => void;
|
|
6
|
+
name: string;
|
|
7
|
+
disabled: Ref<boolean>;
|
|
8
|
+
}
|
|
9
|
+
export declare const RADIO_GROUP_KEY: InjectionKey<RadioGroupContext>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as UidRadio } from './UidRadio.vue';
|
|
2
|
+
export type { UidRadioProps } from './UidRadio.vue';
|
|
3
|
+
export { default as UidRadioGroup } from './UidRadioGroup.vue';
|
|
4
|
+
export type { UidRadioGroupProps } from './UidRadioGroup.vue';
|
|
5
|
+
export type { RadioValue } from './context.js';
|