@huntflow/ui 0.2.28 → 0.2.31

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.
@@ -27,3 +27,5 @@ export { UiCheckbox } from './ui-checkbox';
27
27
  export type { UiCheckboxProps } from './ui-checkbox';
28
28
  export { UiCheckboxGroup } from './ui-checkbox-group';
29
29
  export type { UiCheckboxGroupProps } from './ui-checkbox-group';
30
+ export { UiDropzone } from './ui-dropzone';
31
+ export type { UiDropzoneProps } from './ui-dropzone';
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ loading?: boolean;
3
+ /**
4
+ * Указывает, должна ли зона покрывать весь экран.
5
+ * Не влияет на внешний вид. Отключает действия браузера по умолчанию на события перетаскивания.
6
+ */
7
+ fullscreen?: boolean;
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ loading?(_: {}): any;
13
+ hovered?(_: {}): any;
14
+ default?(_: {}): any;
15
+ };
16
+ refs: {
17
+ root: HTMLDivElement;
18
+ };
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
+ change: (files: File[]) => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onChange?: ((files: File[]) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
27
+ root: HTMLDivElement;
28
+ }, HTMLDivElement>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,33 @@
1
+ import { UiDropzoneProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ icon?(_: {}): any;
6
+ label?(_: {}): any;
7
+ help?(_: {}): any;
8
+ loading?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<UiDropzoneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ error: (invalidFiles: {
16
+ exceeded?: File[];
17
+ invalidType?: File[];
18
+ }) => any;
19
+ change: (files: File[]) => any;
20
+ }, string, import('vue').PublicProps, Readonly<UiDropzoneProps> & Readonly<{
21
+ onError?: ((invalidFiles: {
22
+ exceeded?: File[];
23
+ invalidType?: File[];
24
+ }) => any) | undefined;
25
+ onChange?: ((files: File[]) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
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,10 @@
1
+ export declare const icons: {
2
+ readonly default: string;
3
+ readonly avatar: string;
4
+ readonly document: string;
5
+ readonly spreadsheet: string;
6
+ readonly image: string;
7
+ readonly json: string;
8
+ };
9
+ export type IconType = keyof typeof icons;
10
+ export declare function getIcon(type: IconType): string;
@@ -0,0 +1,3 @@
1
+ import { default as UiDropzone } from './dropzone.vue';
2
+ export type { UiDropzoneProps } from './types';
3
+ export { UiDropzone };
@@ -0,0 +1,13 @@
1
+ import { IconType } from './icons';
2
+ export type UiDropzoneProps = {
3
+ labelMessage?: string;
4
+ helpMessage?: string;
5
+ iconType?: IconType;
6
+ accept?: string;
7
+ multiple?: boolean;
8
+ loading?: boolean;
9
+ fullscreen?: boolean;
10
+ allowedTypes?: string[];
11
+ hoveredMessage?: string;
12
+ maxFileSize?: number;
13
+ };