@reinosoft-ui/core 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +79 -0
  2. package/dist/components/Autocomplete/Autocomplete.d.ts +24 -0
  3. package/dist/components/Autocomplete/Autocomplete.vue.d.ts +37 -0
  4. package/dist/components/Avatar/Avatar.vue.d.ts +17 -0
  5. package/dist/components/Avatar/types.d.ts +8 -0
  6. package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts +16 -0
  7. package/dist/components/Breadcrumb/types.d.ts +11 -0
  8. package/dist/components/Button/Button.vue.d.ts +15 -0
  9. package/dist/components/Button/index.d.ts +3 -0
  10. package/dist/components/Card/Card.vue.d.ts +24 -0
  11. package/dist/components/Card/CardBody.vue.d.ts +13 -0
  12. package/dist/components/Card/CardFooter.vue.d.ts +18 -0
  13. package/dist/components/Card/CardHeader.vue.d.ts +18 -0
  14. package/dist/components/Card/index.d.ts +10 -0
  15. package/dist/components/Carousel/Carousel.vue.d.ts +31 -0
  16. package/dist/components/Carousel/CarouselItem.vue.d.ts +13 -0
  17. package/dist/components/Carousel/index.d.ts +8 -0
  18. package/dist/components/Carousel/types.d.ts +9 -0
  19. package/dist/components/Checkbox/Checkbox.d.ts +11 -0
  20. package/dist/components/Checkbox/Checkbox.vue.d.ts +31 -0
  21. package/dist/components/Dropdown/Dropdown.vue.d.ts +13 -0
  22. package/dist/components/Dropdown/DropdownItem.vue.d.ts +13 -0
  23. package/dist/components/Dropdown/DropdownMenu.vue.d.ts +13 -0
  24. package/dist/components/Dropdown/DropdownTrigger.vue.d.ts +13 -0
  25. package/dist/components/Dropdown/index.d.ts +10 -0
  26. package/dist/components/Dropdown/types.d.ts +16 -0
  27. package/dist/components/Editor/Editor.vue.d.ts +16 -0
  28. package/dist/components/Editor/EditorContent.vue.d.ts +11 -0
  29. package/dist/components/Editor/FloatingToolbar.vue.d.ts +12 -0
  30. package/dist/components/Editor/editorBlocks.d.ts +11 -0
  31. package/dist/components/Editor/index.d.ts +3 -0
  32. package/dist/components/Editor/types.d.ts +12 -0
  33. package/dist/components/Editor/useEditor.d.ts +23 -0
  34. package/dist/components/Highlight/Highlight.vue.d.ts +7 -0
  35. package/dist/components/Icon/Icon.vue.d.ts +8 -0
  36. package/dist/components/Icon/icons/bold.d.ts +2 -0
  37. package/dist/components/Icon/icons/clock.d.ts +2 -0
  38. package/dist/components/Icon/icons/close.d.ts +2 -0
  39. package/dist/components/Icon/icons/closeSolid.d.ts +2 -0
  40. package/dist/components/Icon/icons/directionDown.d.ts +2 -0
  41. package/dist/components/Icon/icons/disk.d.ts +2 -0
  42. package/dist/components/Icon/icons/edit.d.ts +2 -0
  43. package/dist/components/Icon/icons/eye-off.d.ts +2 -0
  44. package/dist/components/Icon/icons/eye.d.ts +2 -0
  45. package/dist/components/Icon/icons/head.d.ts +2 -0
  46. package/dist/components/Icon/icons/home.d.ts +2 -0
  47. package/dist/components/Icon/icons/image.d.ts +2 -0
  48. package/dist/components/Icon/icons/index.d.ts +39 -0
  49. package/dist/components/Icon/icons/info.d.ts +2 -0
  50. package/dist/components/Icon/icons/italic.d.ts +2 -0
  51. package/dist/components/Icon/icons/link.d.ts +2 -0
  52. package/dist/components/Icon/icons/loading.d.ts +2 -0
  53. package/dist/components/Icon/icons/location.d.ts +2 -0
  54. package/dist/components/Icon/icons/login.d.ts +2 -0
  55. package/dist/components/Icon/icons/logout.d.ts +2 -0
  56. package/dist/components/Icon/icons/oList.d.ts +2 -0
  57. package/dist/components/Icon/icons/profile.d.ts +2 -0
  58. package/dist/components/Icon/icons/search.d.ts +2 -0
  59. package/dist/components/Icon/icons/shopping-bag.d.ts +2 -0
  60. package/dist/components/Icon/icons/shopping-basket.d.ts +2 -0
  61. package/dist/components/Icon/icons/sort.d.ts +2 -0
  62. package/dist/components/Icon/icons/sortAsc.d.ts +2 -0
  63. package/dist/components/Icon/icons/sortDesc.d.ts +2 -0
  64. package/dist/components/Icon/icons/star.d.ts +2 -0
  65. package/dist/components/Icon/icons/starSolid.d.ts +2 -0
  66. package/dist/components/Icon/icons/tick.d.ts +2 -0
  67. package/dist/components/Icon/icons/ticket.d.ts +2 -0
  68. package/dist/components/Icon/icons/trash.d.ts +2 -0
  69. package/dist/components/Icon/icons/uList.d.ts +2 -0
  70. package/dist/components/Icon/icons/upload.d.ts +2 -0
  71. package/dist/components/Icon/icons/user.d.ts +2 -0
  72. package/dist/components/Icon/icons/warning.d.ts +2 -0
  73. package/dist/components/Icon/types.d.ts +32 -0
  74. package/dist/components/Image/Image.d.ts +17 -0
  75. package/dist/components/Image/Image.vue.d.ts +25 -0
  76. package/dist/components/Image/index.d.ts +3 -0
  77. package/dist/components/ImageGallery/GalleryCarousel.vue.d.ts +33 -0
  78. package/dist/components/ImageGallery/GalleryGrid.vue.d.ts +11 -0
  79. package/dist/components/ImageGallery/GalleryGridWithLightbox.vue.d.ts +8 -0
  80. package/dist/components/ImageGallery/GalleryMasonry.vue.d.ts +8 -0
  81. package/dist/components/ImageGallery/ImageGallery.d.ts +21 -0
  82. package/dist/components/ImageGallery/ImageGallery.vue.d.ts +21 -0
  83. package/dist/components/ImageGallery/index.d.ts +3 -0
  84. package/dist/components/Input/Input.vue.d.ts +33 -0
  85. package/dist/components/Link/Link.vue.d.ts +41 -0
  86. package/dist/components/Modal/Modal.d.ts +76 -0
  87. package/dist/components/Modal/index.d.ts +104 -0
  88. package/dist/components/RadioButton/RadioButton.d.ts +15 -0
  89. package/dist/components/RadioButton/RadioButton.vue.d.ts +15 -0
  90. package/dist/components/Select/Select.vue.d.ts +38 -0
  91. package/dist/components/Select/types.d.ts +7 -0
  92. package/dist/components/Shared/ErrorMessage.vue.d.ts +8 -0
  93. package/dist/components/Shared/Hint.vue.d.ts +16 -0
  94. package/dist/components/Shared/RequiredHint.vue.d.ts +7 -0
  95. package/dist/components/Spinner/Spinner.vue.d.ts +6 -0
  96. package/dist/components/Steps/Step.vue.d.ts +24 -0
  97. package/dist/components/Steps/Steps.d.ts +2 -0
  98. package/dist/components/Steps/Steps.vue.d.ts +20 -0
  99. package/dist/components/Steps/StepsItem.vue.d.ts +16 -0
  100. package/dist/components/Steps/index.d.ts +8 -0
  101. package/dist/components/Tab/Tabs.d.ts +76 -0
  102. package/dist/components/Table/Table.d.ts +69 -0
  103. package/dist/components/Tag/Tag.d.ts +15 -0
  104. package/dist/components/Tag/Tag.vue.d.ts +29 -0
  105. package/dist/components/Textarea/Textarea.vue.d.ts +33 -0
  106. package/dist/components/Timeline/Timeline.vue.d.ts +16 -0
  107. package/dist/components/Timeline/TimelineItem.vue.d.ts +25 -0
  108. package/dist/components/Timeline/index.d.ts +8 -0
  109. package/dist/components/Timeline/types.d.ts +4 -0
  110. package/dist/components/Toast/Toast.d.ts +51 -0
  111. package/dist/components/Toast/ToastRoot.vue.d.ts +23 -0
  112. package/dist/components/Toast/ToastViewport.vue.d.ts +3 -0
  113. package/dist/components/Toast/index.d.ts +11 -0
  114. package/dist/components/Tooltip/Tooltip.vue.d.ts +20 -0
  115. package/dist/components/Tooltip/index.d.ts +3 -0
  116. package/dist/components/Tooltip/tooltip.d.ts +8 -0
  117. package/dist/components/Upload/Upload.vue.d.ts +55 -0
  118. package/dist/components/Upload/index.d.ts +3 -0
  119. package/dist/components/Upload/types.d.ts +28 -0
  120. package/dist/index.d.ts +32 -0
  121. package/dist/reinosoft-ui.es.js +1464 -1385
  122. package/dist/reinosoft-ui.umd.js +1 -1
  123. package/dist/style.css +1 -1
  124. package/dist/utils/Utils.d.ts +21 -0
  125. package/package.json +3 -2
@@ -0,0 +1,79 @@
1
+ import { type Ref } from 'vue';
2
+ import './accordion.css';
3
+ export interface AccordionContext {
4
+ multiple: boolean;
5
+ openItems: Ref<Set<string>>;
6
+ toggle: (id: string) => void;
7
+ defaultOpen?: Ref<Set<string>>;
8
+ registerHeader: (el: HTMLButtonElement) => void;
9
+ unregisterHeader: (el: HTMLButtonElement) => void;
10
+ focusNext: (current: HTMLButtonElement) => void;
11
+ focusPrev: (current: HTMLButtonElement) => void;
12
+ focusFirst: () => void;
13
+ focusLast: () => void;
14
+ }
15
+ export type AccordionProps = {
16
+ id: string;
17
+ disabled?: boolean;
18
+ };
19
+ export interface AccordionItemProps extends AccordionProps {
20
+ }
21
+ export interface AccordionHeaderProps extends AccordionProps {
22
+ }
23
+ export interface AccordionPanelProps extends AccordionProps {
24
+ }
25
+ export declare const Accordion: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
26
+ multiple: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ defaultOpen: {
31
+ type: () => string[];
32
+ default: () => never[];
33
+ };
34
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
+ [key: string]: any;
36
+ }>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
37
+ multiple: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ defaultOpen: {
42
+ type: () => string[];
43
+ default: () => never[];
44
+ };
45
+ }>> & Readonly<{}>, {
46
+ multiple: boolean;
47
+ defaultOpen: string[];
48
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
49
+ export declare const AccordionItem: import("vue").DefineComponent<{
50
+ id: string;
51
+ disabled?: boolean | undefined;
52
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
53
+ [key: string]: any;
54
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
55
+ id: string;
56
+ disabled?: boolean | undefined;
57
+ }> & Readonly<{}>, {
58
+ disabled: boolean;
59
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
60
+ export declare const AccordionHeader: import("vue").DefineComponent<{
61
+ id: string;
62
+ disabled?: boolean | undefined;
63
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
64
+ [key: string]: any;
65
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
66
+ id: string;
67
+ disabled?: boolean | undefined;
68
+ }> & Readonly<{}>, {
69
+ disabled: boolean;
70
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
71
+ export declare const AccordionPanel: import("vue").DefineComponent<{
72
+ id: string;
73
+ disabled?: boolean | undefined;
74
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
75
+ [key: string]: any;
76
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
77
+ id: string;
78
+ disabled?: boolean | undefined;
79
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,24 @@
1
+ export type Key = string | number;
2
+ export type AutocompleteModel = Key;
3
+ export interface AutocompleteProps<T> {
4
+ id?: string;
5
+ type?: 'text' | 'number';
6
+ options: T[];
7
+ label: string;
8
+ disabled?: boolean;
9
+ required?: any;
10
+ loading?: boolean;
11
+ minChars?: number;
12
+ filterable?: boolean;
13
+ showSuggestionsOnFocus?: boolean;
14
+ suggestionsLimit?: number;
15
+ getKey: (item: T) => Key;
16
+ getValue: (item: T) => string;
17
+ isDisabled?: (item: T) => boolean;
18
+ }
19
+ export interface AutocompleteEmits {
20
+ (e: 'change', query: string): void;
21
+ (e: 'select', option: Key): void;
22
+ (e: 'focus', event: FocusEvent): void;
23
+ (e: 'blur', event: FocusEvent): void;
24
+ }
@@ -0,0 +1,37 @@
1
+ import type { AutocompleteEmits, AutocompleteModel, AutocompleteProps } from './Autocomplete';
2
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<(AutocompleteProps<T> & {
4
+ modelValue: AutocompleteModel;
5
+ }) & {
6
+ onSelect?: ((option: import("./Autocomplete").Key) => any) | undefined;
7
+ onBlur?: ((event: FocusEvent) => any) | undefined;
8
+ onChange?: ((query: string) => any) | undefined;
9
+ onFocus?: ((event: FocusEvent) => any) | undefined;
10
+ "onUpdate:modelValue"?: ((value: import("./Autocomplete").Key) => any) | undefined;
11
+ }> & (typeof globalThis extends {
12
+ __VLS_PROPS_FALLBACK: infer P;
13
+ } ? P : {});
14
+ expose: (exposed: {}) => void;
15
+ attrs: any;
16
+ slots: {
17
+ option?: (props: {
18
+ option: T;
19
+ value: string;
20
+ query: string;
21
+ selected: boolean;
22
+ active: boolean;
23
+ }) => any;
24
+ } & {
25
+ icon?: (props: {}) => any;
26
+ };
27
+ emit: AutocompleteEmits & ((evt: "update:modelValue", value: import("./Autocomplete").Key) => void);
28
+ }>) => import("vue").VNode & {
29
+ __ctx?: Awaited<typeof __VLS_setup>;
30
+ };
31
+ declare const _default: typeof __VLS_export;
32
+ export default _default;
33
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
34
+ [K in keyof T]: T[K];
35
+ } : {
36
+ [K in keyof T as K]: T[K];
37
+ }) & {};
@@ -0,0 +1,17 @@
1
+ import type { Props } from './types';
2
+ declare var __VLS_9: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_9) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
7
+ size: "xs" | "sm" | "md" | "lg" | "xl";
8
+ shape: "circle" | "square";
9
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,8 @@
1
+ export type AvatarState = 'loading' | 'loaded' | 'error';
2
+ export interface Props {
3
+ src?: string;
4
+ alt?: string;
5
+ name?: string;
6
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
7
+ shape?: 'circle' | 'square';
8
+ }
@@ -0,0 +1,16 @@
1
+ import type { Props } from './types';
2
+ declare var __VLS_7: {};
3
+ type __VLS_Slots = {} & {
4
+ separator?: (props: typeof __VLS_7) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
7
+ separator: string;
8
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,11 @@
1
+ export interface BreadcrumbItem {
2
+ label: string;
3
+ to?: string;
4
+ href?: string;
5
+ disabled?: boolean;
6
+ external?: boolean;
7
+ }
8
+ export interface Props {
9
+ items: BreadcrumbItem[];
10
+ separator?: string;
11
+ }
@@ -0,0 +1,15 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {
6
+ el: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
7
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,3 @@
1
+ import Button from './Button.vue';
2
+ export { Button };
3
+ export default Button;
@@ -0,0 +1,24 @@
1
+ type __VLS_Props = {
2
+ as?: keyof HTMLElementTagNameMap;
3
+ clickable?: boolean;
4
+ };
5
+ declare var __VLS_12: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_12) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ click: () => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onClick?: (() => any) | undefined;
13
+ }>, {
14
+ as: keyof HTMLElementTagNameMap;
15
+ clickable: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ as?: keyof HTMLElementTagNameMap;
3
+ };
4
+ declare var __VLS_8: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_8) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ as: keyof HTMLElementTagNameMap;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ as?: keyof HTMLElementTagNameMap;
3
+ };
4
+ declare var __VLS_8: {};
5
+ type __VLS_Slots = {} & {
6
+ default?: (props: typeof __VLS_8) => any;
7
+ };
8
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ as: keyof HTMLElementTagNameMap;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,10 @@
1
+ import type { App } from 'vue';
2
+ import Card from './Card.vue';
3
+ import CardHeader from './CardHeader.vue';
4
+ import CardBody from './CardBody.vue';
5
+ import CardFooter from './CardFooter.vue';
6
+ export { Card, CardHeader, CardBody, CardFooter };
7
+ declare const _default: {
8
+ install(app: App): void;
9
+ };
10
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import type { Props } from './types';
2
+ declare const model: import("vue").ModelRef<number, string, number, number>;
3
+ type __VLS_Props = Props;
4
+ type __VLS_ModelProps = {
5
+ modelValue?: typeof model['value'];
6
+ };
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare var __VLS_1: {};
9
+ type __VLS_Slots = {} & {
10
+ default?: (props: typeof __VLS_1) => any;
11
+ };
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (value: number) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
16
+ }>, {
17
+ ariaLabel: string;
18
+ loop: boolean;
19
+ showIndicators: boolean;
20
+ itemsPerView: import("./types").ResponsiveItemsPerView;
21
+ autoplay: boolean;
22
+ autoplayDelay: number;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,8 @@
1
+ import type { App } from 'vue';
2
+ import Carousel from './Carousel.vue';
3
+ import CarouselItem from './CarouselItem.vue';
4
+ export { Carousel, CarouselItem };
5
+ declare const _default: {
6
+ install(app: App): void;
7
+ };
8
+ export default _default;
@@ -0,0 +1,9 @@
1
+ export type ResponsiveItemsPerView = number | Record<number, number>;
2
+ export interface Props {
3
+ ariaLabel?: string;
4
+ showIndicators?: boolean;
5
+ loop?: boolean;
6
+ itemsPerView?: ResponsiveItemsPerView;
7
+ autoplay?: boolean;
8
+ autoplayDelay?: number;
9
+ }
@@ -0,0 +1,11 @@
1
+ export type TriState = true | false | undefined;
2
+ export interface Props {
3
+ id?: string;
4
+ disabled?: boolean;
5
+ required?: boolean;
6
+ invalid?: boolean;
7
+ triState?: boolean;
8
+ }
9
+ export interface Emits {
10
+ (e: 'change', value: TriState): void;
11
+ }
@@ -0,0 +1,31 @@
1
+ import type { Props, TriState } from './Checkbox';
2
+ type __VLS_Props = Props;
3
+ type __VLS_ModelProps = {
4
+ modelValue: TriState;
5
+ };
6
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
+ declare var __VLS_1: {};
8
+ type __VLS_Slots = {} & {
9
+ default?: (props: typeof __VLS_1) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: TriState) => any;
13
+ } & {
14
+ change: (value: TriState) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
+ onChange?: ((value: TriState) => any) | undefined;
17
+ "onUpdate:modelValue"?: ((value: TriState) => any) | undefined;
18
+ }>, {
19
+ required: boolean;
20
+ invalid: boolean;
21
+ disabled: boolean;
22
+ triState: boolean;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
+ declare const _default: typeof __VLS_export;
26
+ export default _default;
27
+ type __VLS_WithSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_7: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_7) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_12: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_12) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,10 @@
1
+ import type { App } from 'vue';
2
+ import Dropdown from './Dropdown.vue';
3
+ import DropdownTrigger from './DropdownTrigger.vue';
4
+ import DropdownMenu from './DropdownMenu.vue';
5
+ import DropdownItem from './DropdownItem.vue';
6
+ export { Dropdown, DropdownTrigger, DropdownMenu, DropdownItem };
7
+ declare const _default: {
8
+ install(app: App): void;
9
+ };
10
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { Ref } from "vue";
2
+ export interface Context {
3
+ open: () => void;
4
+ close: () => void;
5
+ toggle: () => void;
6
+ isOpen: Ref<boolean>;
7
+ registerItem: (el: HTMLElement) => string;
8
+ focusItem: (id: string) => void;
9
+ focusNextItem: (id: string) => void;
10
+ focusPrevItem: (id: string) => void;
11
+ focusFirstItem: () => void;
12
+ focusLastItem: () => void;
13
+ triggerRef: Ref<HTMLElement | null>;
14
+ menuId: string;
15
+ triggerId: string;
16
+ }
@@ -0,0 +1,16 @@
1
+ import type { EditorButton } from './types';
2
+ type __VLS_Props = {
3
+ ariaLabel: string;
4
+ buttons?: EditorButton[];
5
+ };
6
+ type __VLS_ModelProps = {
7
+ modelValue: string;
8
+ };
9
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:modelValue": (value: string) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { useEditor } from './useEditor';
2
+ type __VLS_Props = {
3
+ editor: ReturnType<typeof useEditor> | null;
4
+ editorId: string;
5
+ ariaLabel?: string;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
8
+ getRoot: () => import("vue").Ref<HTMLElement | null, HTMLElement | null>;
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { useEditor } from './useEditor';
2
+ import type { EditorButton } from './types';
3
+ type __VLS_Props = {
4
+ editor: ReturnType<typeof useEditor> | null;
5
+ editorId: string;
6
+ buttons?: EditorButton[];
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
9
+ focusFirstButton: () => Promise<void>;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import type { EditorApi } from "./useEditor";
2
+ export declare const getClosestBlock: (node: Node | null) => HTMLElement | null;
3
+ export declare const getClosestInline: (node: Node | null, tag: string, root: HTMLElement) => HTMLElement | null;
4
+ export declare const unwrapInline: (el: HTMLElement) => void;
5
+ export declare const createBlock: (tag?: "p" | "h1" | "blockquote") => HTMLQuoteElement | HTMLHeadingElement | HTMLParagraphElement;
6
+ export declare const placeCursorAtStart: (el: HTMLElement) => void;
7
+ export declare const handleEnter: (e: KeyboardEvent, editor: EditorApi | null) => void;
8
+ export declare const splitBlock: (e: KeyboardEvent, editor: EditorApi | null) => void;
9
+ export declare const insertLineBreak: () => void;
10
+ export declare const handleBackspace: (e: KeyboardEvent) => void;
11
+ export declare const placeCursorAtEnd: (el: HTMLElement) => void;
@@ -0,0 +1,3 @@
1
+ import Editor from './Editor.vue';
2
+ export { Editor };
3
+ export default Editor;
@@ -0,0 +1,12 @@
1
+ import type { EditorApi } from "./useEditor";
2
+ export type IconType = 'icon' | 'text';
3
+ export interface EditorButton {
4
+ key: string;
5
+ label: string;
6
+ icon?: string;
7
+ size?: number;
8
+ type?: IconType;
9
+ ariaLabel?: string;
10
+ action: (editor: EditorApi) => void;
11
+ isActive?: (editor: EditorApi) => boolean;
12
+ }
@@ -0,0 +1,23 @@
1
+ import { type Ref } from 'vue';
2
+ import type { EditorButton } from './types';
3
+ export type Tags = 'strong' | 'em' | 'code';
4
+ export interface EditorOptions {
5
+ buttons?: EditorButton[];
6
+ }
7
+ export type EditorApi = {
8
+ toggleInline: (tag: Tags) => void;
9
+ toggleBlock: (tag: string) => void;
10
+ normalize: () => void;
11
+ rootElement: HTMLElement;
12
+ saveSelection: () => void;
13
+ restoreSelection: () => void;
14
+ isInlineActive: (tag: string) => boolean;
15
+ isBlockActive: (tag: string) => boolean;
16
+ focus: () => void;
17
+ toolbarRef: Ref<any>;
18
+ focusFirstToolbarButton: () => void;
19
+ replaceCurrentBlock: (transform: (block: HTMLElement) => HTMLElement) => void;
20
+ buttons: EditorButton[];
21
+ announce: (message: string) => void;
22
+ };
23
+ export declare const useEditor: (rootElement: HTMLElement, options?: EditorOptions) => EditorApi;
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ text: string;
3
+ query: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ size?: number;
4
+ spin?: boolean;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import type { IconDefinition } from '../types';
2
+ export declare const bold: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import type { IconDefinition } from '../types';
2
+ export declare const clock: IconDefinition;
@@ -0,0 +1,2 @@
1
+ import type { IconDefinition } from '../types';
2
+ export declare const close: IconDefinition;