@dolanske/vui 1.7.0 → 1.7.2

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.
@@ -31,11 +31,11 @@ declare const __VLS_component: import('vue').DefineComponent<AccordionProps, {
31
31
  toggle: typeof toggle;
32
32
  isOpen: import('vue').Ref<boolean, boolean>;
33
33
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
- open: () => any;
35
34
  close: () => any;
35
+ open: () => any;
36
36
  }, string, import('vue').PublicProps, Readonly<AccordionProps> & Readonly<{
37
- onOpen?: (() => any) | undefined;
38
37
  onClose?: (() => any) | undefined;
38
+ onOpen?: (() => any) | undefined;
39
39
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
40
40
  content: HTMLDivElement;
41
41
  }, HTMLDivElement>;
@@ -42,12 +42,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
42
  plain: BooleanConstructor;
43
43
  }>> & Readonly<{}>, {
44
44
  size: Sizes;
45
- variant: Variants;
46
- outline: boolean;
47
45
  loading: boolean;
48
46
  expand: boolean;
49
47
  square: boolean;
48
+ outline: boolean;
50
49
  disabled: boolean;
51
50
  plain: boolean;
51
+ variant: Variants;
52
52
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
53
53
  export default _default;
@@ -0,0 +1,108 @@
1
+ import { VNode } from 'vue';
2
+ export interface Command {
3
+ title: string;
4
+ description?: string;
5
+ group?: string;
6
+ icon?: VNode;
7
+ shortcut?: string;
8
+ href?: string;
9
+ handler?: () => void;
10
+ }
11
+ interface Props {
12
+ open: boolean;
13
+ search?: string;
14
+ placeholder?: string;
15
+ commands: Command[];
16
+ }
17
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
+ close: () => any;
19
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
20
+ onClose?: (() => any) | undefined;
21
+ }>, {
22
+ placeholder: string;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
+ searchRef: ({
25
+ $: import('vue').ComponentInternalInstance;
26
+ $data: {};
27
+ $props: {
28
+ readonly modelValue?: string | number | undefined;
29
+ readonly type?: import('../Input/Input.vue').InputType | undefined;
30
+ readonly label?: string | undefined;
31
+ readonly hint?: string | undefined;
32
+ readonly limit?: number | string | undefined;
33
+ readonly expand?: boolean | undefined;
34
+ readonly placeholder?: string | undefined;
35
+ readonly required?: boolean | undefined;
36
+ readonly readonly?: boolean | undefined;
37
+ readonly focus?: boolean | undefined;
38
+ readonly errors?: string[] | undefined;
39
+ readonly accept?: string | undefined;
40
+ readonly multiple?: boolean | undefined;
41
+ readonly min?: number | undefined;
42
+ readonly max?: number | undefined;
43
+ readonly disabled?: boolean | undefined;
44
+ readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
45
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
46
+ $attrs: {
47
+ [x: string]: unknown;
48
+ };
49
+ $refs: {
50
+ [x: string]: unknown;
51
+ } & {
52
+ input: HTMLInputElement;
53
+ };
54
+ $slots: Readonly<{
55
+ [name: string]: import('vue').Slot<any> | undefined;
56
+ }>;
57
+ $root: import('vue').ComponentPublicInstance | null;
58
+ $parent: import('vue').ComponentPublicInstance | null;
59
+ $host: Element | null;
60
+ $emit: (event: "update:modelValue", value: string | number) => void;
61
+ $el: HTMLDivElement;
62
+ $options: import('vue').ComponentOptionsBase<Readonly<{
63
+ modelValue?: string | number;
64
+ } & import('../Input/Input.vue').InputProps> & Readonly<{
65
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
66
+ }>, {
67
+ focus: () => void;
68
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
69
+ "update:modelValue": (value: string | number) => any;
70
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
71
+ beforeCreate?: (() => void) | (() => void)[];
72
+ created?: (() => void) | (() => void)[];
73
+ beforeMount?: (() => void) | (() => void)[];
74
+ mounted?: (() => void) | (() => void)[];
75
+ beforeUpdate?: (() => void) | (() => void)[];
76
+ updated?: (() => void) | (() => void)[];
77
+ activated?: (() => void) | (() => void)[];
78
+ deactivated?: (() => void) | (() => void)[];
79
+ beforeDestroy?: (() => void) | (() => void)[];
80
+ beforeUnmount?: (() => void) | (() => void)[];
81
+ destroyed?: (() => void) | (() => void)[];
82
+ unmounted?: (() => void) | (() => void)[];
83
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
84
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
85
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
86
+ };
87
+ $forceUpdate: () => void;
88
+ $nextTick: typeof import('vue').nextTick;
89
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
90
+ } & Readonly<{}> & Omit<Readonly<{
91
+ modelValue?: string | number;
92
+ } & import('../Input/Input.vue').InputProps> & Readonly<{
93
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
94
+ }>, "focus"> & import('vue').ShallowUnwrapRef<{
95
+ focus: () => void;
96
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
97
+ $slots: {
98
+ before?(_: {}): any;
99
+ start?(_: {}): any;
100
+ __internal_replace_input?(_: {
101
+ inputId: string;
102
+ }): any;
103
+ end?(_: {}): any;
104
+ after?(_: {}): any;
105
+ };
106
+ }) | null;
107
+ }, any>;
108
+ export default _default;
@@ -18,18 +18,18 @@ declare function __VLS_template(): {
18
18
  };
19
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
20
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- close: () => any;
22
21
  cancel: () => any;
22
+ close: () => any;
23
23
  confirm: () => any;
24
24
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
25
- onClose?: (() => any) | undefined;
26
25
  onCancel?: (() => any) | undefined;
26
+ onClose?: (() => any) | undefined;
27
27
  onConfirm?: (() => any) | undefined;
28
28
  }>, {
29
- open: boolean;
30
29
  size: import('../../shared/types').Sizes | "screen";
31
- cancelText: string;
30
+ open: boolean;
32
31
  canDismiss: boolean;
32
+ cancelText: string;
33
33
  confirmText: string;
34
34
  confirmVariant: Variants;
35
35
  showCancel: boolean;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Command, default as Commands } from './components/Commands/Commands.vue';
1
2
  import { default as Accordion } from './components/Accordion/Accordion.vue';
2
3
  import { default as AccordionGroup } from './components/Accordion/AccordionGroup.vue';
3
4
  import { default as Alert } from './components/Alert/Alert.vue';
@@ -53,4 +54,4 @@ import { default as Backdrop } from './internal/Backdrop/Backdrop.vue';
53
54
  import { searchString } from './shared/helpers';
54
55
  import { setColorTheme, theme } from './shared/theme';
55
56
  import * as Table from './components/Table';
56
- export { Accordion, AccordionGroup, Alert, Avatar, Backdrop, Badge, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Color, Confirm, CopyClipboard, Counter, defineTable, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Input, Kbd, KbdGroup, Modal, OTP, OTPItem, paginate, Pagination, Password, Popout, Progress, pushToast, Radio, RadioGroup, removeToast, searchString, Select, setColorTheme, Sheet, Sidebar, Skeleton, Spinner, Switch, Tab, Table, Tabs, Textarea, theme, Toasts, Tooltip, };
57
+ export { Accordion, AccordionGroup, Alert, Avatar, Backdrop, Badge, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Color, type Command, Commands, Confirm, CopyClipboard, Counter, defineTable, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Input, Kbd, KbdGroup, Modal, OTP, OTPItem, paginate, Pagination, Password, Popout, Progress, pushToast, Radio, RadioGroup, removeToast, searchString, Select, setColorTheme, Sheet, Sidebar, Skeleton, Spinner, Switch, Tab, Table, Tabs, Textarea, theme, Toasts, Tooltip, };