@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
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# @dskripchenko/ui
|
|
2
|
+
|
|
3
|
+
Набор Vue 3 компонентов, токенов и тем на CSS custom properties.
|
|
4
|
+
|
|
5
|
+
> **Статус:** ранняя разработка. API нестабилен.
|
|
6
|
+
|
|
7
|
+
## Стек
|
|
8
|
+
|
|
9
|
+
- Vue 3 + TypeScript
|
|
10
|
+
- Стилизация — собственные CSS-переменные (design tokens)
|
|
11
|
+
- Темы — `light` / `dark` через `data-theme` на `:root`
|
|
12
|
+
- Документация и demo — Storybook
|
|
13
|
+
- Сборка библиотеки — Vite (library mode)
|
|
14
|
+
|
|
15
|
+
## Установка
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @dskripchenko/ui
|
|
19
|
+
# или
|
|
20
|
+
pnpm add @dskripchenko/ui
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Быстрый старт
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
// main.ts
|
|
27
|
+
import { createApp } from 'vue'
|
|
28
|
+
import App from './App.vue'
|
|
29
|
+
|
|
30
|
+
import '@dskripchenko/ui/styles/tokens.css'
|
|
31
|
+
import '@dskripchenko/ui/styles/themes.css'
|
|
32
|
+
|
|
33
|
+
createApp(App).mount('#app')
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<!-- App.vue -->
|
|
38
|
+
<script setup lang="ts">
|
|
39
|
+
import { UidButton, UidIcon } from '@dskripchenko/ui'
|
|
40
|
+
import { Check } from '@dskripchenko/ui/icons'
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<template>
|
|
44
|
+
<UidButton variant="primary">
|
|
45
|
+
<UidIcon :icon="Check" /> Привет
|
|
46
|
+
</UidButton>
|
|
47
|
+
</template>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Иконки — ~1500 [Lucide](https://lucide.dev/icons) «из коробки», подробно в [`docs/ICONS.md`](./docs/ICONS.md).
|
|
51
|
+
|
|
52
|
+
Переключение темы:
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<html data-theme="dark">
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Документация
|
|
59
|
+
|
|
60
|
+
Вся проектная документация — в [`docs/`](./docs):
|
|
61
|
+
|
|
62
|
+
- [Архитектура](./docs/ARCHITECTURE.md) — структура пакета, сборка, экспорт
|
|
63
|
+
- [Дизайн-токены](./docs/TOKENS.md) — система CSS-переменных
|
|
64
|
+
- [Темизация](./docs/THEMING.md) — light/dark и кастомизация
|
|
65
|
+
- [Гайдлайны компонентов](./docs/COMPONENT_GUIDELINES.md) — правила и шаблон
|
|
66
|
+
- [Иконки](./docs/ICONS.md) — `UidIcon` + ~1500 Lucide-иконок «из коробки»
|
|
67
|
+
- [Валидация форм](./docs/VALIDATION.md) — useField, useForm, встроенные правила
|
|
68
|
+
- [Patterns и Layouts](./docs/PATTERNS.md) — составные блоки и шаблоны страниц
|
|
69
|
+
- [Roadmap](./docs/ROADMAP.md) — план разработки по фазам
|
|
70
|
+
- [Контрибьютинг](./docs/CONTRIBUTING.md) — workflow разработки и релизов
|
|
71
|
+
- [Инициализация проекта](./docs/SETUP.md) — от нуля до работающего Storybook
|
|
72
|
+
|
|
73
|
+
## Лицензия
|
|
74
|
+
|
|
75
|
+
MIT
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createBlock as e, defineComponent as t, openBlock as n, resolveDynamicComponent as r } from "vue";
|
|
2
|
+
//#endregion
|
|
3
|
+
//#region src/icons/UidIcon.vue
|
|
4
|
+
var i = /* @__PURE__ */ t({
|
|
5
|
+
__name: "UidIcon",
|
|
6
|
+
props: {
|
|
7
|
+
icon: {},
|
|
8
|
+
size: { default: 20 },
|
|
9
|
+
strokeWidth: { default: 2 },
|
|
10
|
+
label: {}
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
return (i, a) => (n(), e(r(t.icon), {
|
|
14
|
+
class: "uid-icon",
|
|
15
|
+
width: t.size,
|
|
16
|
+
height: t.size,
|
|
17
|
+
"stroke-width": t.strokeWidth,
|
|
18
|
+
"aria-label": t.label,
|
|
19
|
+
"aria-hidden": t.label ? void 0 : "true",
|
|
20
|
+
role: "img"
|
|
21
|
+
}, null, 8, [
|
|
22
|
+
"width",
|
|
23
|
+
"height",
|
|
24
|
+
"stroke-width",
|
|
25
|
+
"aria-label",
|
|
26
|
+
"aria-hidden"
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
export { i as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require(`vue`);var t=(0,e.defineComponent)({__name:`UidIcon`,props:{icon:{},size:{default:20},strokeWidth:{default:2},label:{}},setup(t){return(n,r)=>((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(t.icon),{class:`uid-icon`,width:t.size,height:t.size,"stroke-width":t.strokeWidth,"aria-label":t.label,"aria-hidden":t.label?void 0:`true`,role:`img`},null,8,[`width`,`height`,`stroke-width`,`aria-label`,`aria-hidden`]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface UidAccordionProps {
|
|
2
|
+
multiple?: boolean;
|
|
3
|
+
}
|
|
4
|
+
type __VLS_Props = UidAccordionProps;
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
modelValue?: string | string[];
|
|
7
|
+
} & __VLS_Props;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: Readonly<{
|
|
11
|
+
default(): unknown;
|
|
12
|
+
}> & {
|
|
13
|
+
default(): unknown;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: string | string[]) => any;
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string | string[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
multiple: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface UidAccordionItemProps {
|
|
2
|
+
value: string;
|
|
3
|
+
title: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<{
|
|
9
|
+
default(): unknown;
|
|
10
|
+
title?(): unknown;
|
|
11
|
+
}> & {
|
|
12
|
+
default(): unknown;
|
|
13
|
+
title?(): unknown;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<UidAccordionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidAccordionItemProps> & Readonly<{}>, {
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
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,38 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { Tone } from '../../types/index.js';
|
|
3
|
+
export interface UidAlertProps {
|
|
4
|
+
variant?: Tone;
|
|
5
|
+
title?: string;
|
|
6
|
+
dismissible?: boolean;
|
|
7
|
+
icon?: Component;
|
|
8
|
+
}
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
default(): unknown;
|
|
13
|
+
icon?(): unknown;
|
|
14
|
+
}> & {
|
|
15
|
+
default(): unknown;
|
|
16
|
+
icon?(): unknown;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<UidAlertProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
dismiss: () => any;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<UidAlertProps> & Readonly<{
|
|
25
|
+
onDismiss?: (() => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
icon: Component;
|
|
28
|
+
variant: Tone;
|
|
29
|
+
title: string;
|
|
30
|
+
dismissible: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface UidAvatarProps {
|
|
2
|
+
src?: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
shape?: 'circle' | 'square';
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<UidAvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidAvatarProps> & Readonly<{}>, {
|
|
9
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
10
|
+
name: string;
|
|
11
|
+
src: string;
|
|
12
|
+
alt: string;
|
|
13
|
+
shape: "circle" | "square";
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface UidAvatarGroupProps {
|
|
3
|
+
max?: number;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Readonly<{
|
|
8
|
+
default?(): VNode[];
|
|
9
|
+
}> & {
|
|
10
|
+
default?(): VNode[];
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<UidAvatarGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidAvatarGroupProps> & Readonly<{}>, {
|
|
17
|
+
max: number;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Tone } from '../../types/index.js';
|
|
2
|
+
export type UidBadgeVariant = Tone | 'default';
|
|
3
|
+
export interface UidBadgeProps {
|
|
4
|
+
variant?: UidBadgeVariant;
|
|
5
|
+
size?: 'sm' | 'md';
|
|
6
|
+
dot?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: Readonly<{
|
|
11
|
+
default?(): unknown;
|
|
12
|
+
}> & {
|
|
13
|
+
default?(): unknown;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLSpanElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<UidBadgeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidBadgeProps> & Readonly<{}>, {
|
|
20
|
+
size: "sm" | "md";
|
|
21
|
+
variant: UidBadgeVariant;
|
|
22
|
+
dot: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface UidBreadcrumbProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
separator?: string;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Readonly<{
|
|
8
|
+
default(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
default(): unknown;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<UidBreadcrumbProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidBreadcrumbProps> & Readonly<{}>, {
|
|
17
|
+
label: string;
|
|
18
|
+
separator: string;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface UidBreadcrumbItemProps {
|
|
2
|
+
href?: string;
|
|
3
|
+
current?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Readonly<{
|
|
8
|
+
default(): unknown;
|
|
9
|
+
}> & {
|
|
10
|
+
default(): unknown;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: HTMLLIElement;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<UidBreadcrumbItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidBreadcrumbItemProps> & Readonly<{}>, {
|
|
17
|
+
href: string;
|
|
18
|
+
current: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as UidBreadcrumb } from './UidBreadcrumb.vue';
|
|
2
|
+
export { default as UidBreadcrumbItem } from './UidBreadcrumbItem.vue';
|
|
3
|
+
export type { UidBreadcrumbProps } from './UidBreadcrumb.vue';
|
|
4
|
+
export type { UidBreadcrumbItemProps } from './UidBreadcrumbItem.vue';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type UidButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
2
|
+
export type UidButtonSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface UidButtonProps {
|
|
4
|
+
variant?: UidButtonVariant;
|
|
5
|
+
size?: UidButtonSize;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
type?: 'button' | 'submit' | 'reset';
|
|
9
|
+
}
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: Readonly<{
|
|
13
|
+
default(): unknown;
|
|
14
|
+
prepend?(): unknown;
|
|
15
|
+
append?(): unknown;
|
|
16
|
+
}> & {
|
|
17
|
+
default(): unknown;
|
|
18
|
+
prepend?(): unknown;
|
|
19
|
+
append?(): unknown;
|
|
20
|
+
};
|
|
21
|
+
refs: {};
|
|
22
|
+
rootEl: HTMLButtonElement;
|
|
23
|
+
};
|
|
24
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<UidButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
+
click: (event: MouseEvent) => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<UidButtonProps> & Readonly<{
|
|
28
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
size: UidButtonSize;
|
|
31
|
+
type: "button" | "submit" | "reset";
|
|
32
|
+
variant: UidButtonVariant;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
loading: boolean;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface UidCardProps {
|
|
2
|
+
padding?: 'none' | 'sm' | 'md' | 'lg';
|
|
3
|
+
clickable?: boolean;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Readonly<{
|
|
8
|
+
media?(): unknown;
|
|
9
|
+
header?(): unknown;
|
|
10
|
+
default(): unknown;
|
|
11
|
+
footer?(): unknown;
|
|
12
|
+
}> & {
|
|
13
|
+
media?(): unknown;
|
|
14
|
+
header?(): unknown;
|
|
15
|
+
default(): unknown;
|
|
16
|
+
footer?(): unknown;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: HTMLDivElement;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<UidCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidCardProps> & Readonly<{}>, {
|
|
23
|
+
padding: "none" | "sm" | "md" | "lg";
|
|
24
|
+
clickable: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface UidCheckboxProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
hint?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
indeterminate?: boolean;
|
|
10
|
+
}
|
|
11
|
+
type __VLS_Props = UidCheckboxProps;
|
|
12
|
+
type __VLS_PublicProps = {
|
|
13
|
+
modelValue?: boolean;
|
|
14
|
+
} & __VLS_Props;
|
|
15
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: boolean) => any;
|
|
17
|
+
change: (value: boolean) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
label: string;
|
|
23
|
+
required: boolean;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
hint: string;
|
|
26
|
+
error: string;
|
|
27
|
+
name: string;
|
|
28
|
+
id: string;
|
|
29
|
+
indeterminate: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
31
|
+
inputRef: HTMLInputElement;
|
|
32
|
+
}, HTMLDivElement>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface UidColorPickerProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
presets?: string[];
|
|
4
|
+
alpha?: boolean;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = UidColorPickerProps;
|
|
7
|
+
type __VLS_PublicProps = {
|
|
8
|
+
modelValue?: string | null;
|
|
9
|
+
} & __VLS_Props;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: string | null) => any;
|
|
12
|
+
change: (value: string | null) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
15
|
+
onChange?: ((value: string | null) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
presets: string[];
|
|
19
|
+
alpha: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
containerRef: HTMLDivElement;
|
|
22
|
+
gradientRef: HTMLDivElement;
|
|
23
|
+
hueSliderRef: HTMLDivElement;
|
|
24
|
+
alphaSliderRef: HTMLDivElement;
|
|
25
|
+
}, HTMLDivElement>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface CommandItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
shortcut?: string[];
|
|
6
|
+
group?: string;
|
|
7
|
+
action: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface UidCommandProps {
|
|
10
|
+
commands: CommandItem[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
emptyText?: string;
|
|
13
|
+
}
|
|
14
|
+
type __VLS_Props = UidCommandProps;
|
|
15
|
+
type __VLS_PublicProps = {
|
|
16
|
+
modelValue?: boolean;
|
|
17
|
+
} & __VLS_Props;
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
+
"update:modelValue": (value: boolean) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
placeholder: string;
|
|
24
|
+
emptyText: string;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
+
panelRef: HTMLDivElement;
|
|
27
|
+
inputRef: HTMLInputElement;
|
|
28
|
+
listRef: HTMLDivElement;
|
|
29
|
+
}, any>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface UidContainerProps {
|
|
2
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
3
|
+
padding?: boolean;
|
|
4
|
+
as?: string;
|
|
5
|
+
}
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: Readonly<{
|
|
9
|
+
default(): unknown;
|
|
10
|
+
}> & {
|
|
11
|
+
default(): unknown;
|
|
12
|
+
};
|
|
13
|
+
refs: {};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<UidContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidContainerProps> & Readonly<{}>, {
|
|
18
|
+
size: "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
19
|
+
as: string;
|
|
20
|
+
padding: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
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,26 @@
|
|
|
1
|
+
export interface UidDatePickerProps {
|
|
2
|
+
min?: string;
|
|
3
|
+
max?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
format?: (date: Date) => string;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = UidDatePickerProps;
|
|
9
|
+
type __VLS_PublicProps = {
|
|
10
|
+
modelValue?: string | null;
|
|
11
|
+
} & __VLS_Props;
|
|
12
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
"update:modelValue": (value: string | null) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
15
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
min: string;
|
|
19
|
+
max: string;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
format: (date: Date) => string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
23
|
+
containerRef: HTMLDivElement;
|
|
24
|
+
triggerRef: HTMLDivElement;
|
|
25
|
+
}, HTMLDivElement>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface UidDividerProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
orientation?: 'horizontal' | 'vertical';
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<UidDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UidDividerProps> & Readonly<{}>, {
|
|
6
|
+
label: string;
|
|
7
|
+
orientation: "horizontal" | "vertical";
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|