@dolanske/vui 1.4.7 → 1.5.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.
Files changed (30) hide show
  1. package/dist/components/Accordion/Accordion.vue.d.ts +1 -0
  2. package/dist/components/Alert/Alert.vue.d.ts +2 -4
  3. package/dist/components/Avatar/Avatar.vue.d.ts +2 -0
  4. package/dist/components/Button/Button.vue.d.ts +9 -3
  5. package/dist/components/Checkbox/Checkbox.vue.d.ts +0 -2
  6. package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +6 -1
  7. package/dist/components/Dropdown/Dropdown.vue.d.ts +16 -4
  8. package/dist/components/Dropdown/DropdownItem.vue.d.ts +2 -2
  9. package/dist/components/Grid/Grid.vue.d.ts +1 -0
  10. package/dist/components/Input/Textarea.vue.d.ts +2 -0
  11. package/dist/components/Kbd/Kbd.vue.d.ts +16 -1
  12. package/dist/components/Modal/Confirm.vue.d.ts +1 -1
  13. package/dist/components/Modal/Modal.vue.d.ts +1 -1
  14. package/dist/components/Popout/Popout.vue.d.ts +13 -2
  15. package/dist/components/Radio/RadioGroup.vue.d.ts +2 -2
  16. package/dist/components/Sheet/Sheet.vue.d.ts +4 -2
  17. package/dist/components/Tabs/Tab.vue.d.ts +0 -1
  18. package/dist/components/Toast/Toasts.vue.d.ts +5 -1
  19. package/dist/fonts/geist-mono-v3-latin-600.woff2 +0 -0
  20. package/dist/fonts/geist-mono-v3-latin-regular.woff2 +0 -0
  21. package/dist/fonts/inter-v18-latin-300.woff2 +0 -0
  22. package/dist/fonts/inter-v18-latin-500.woff2 +0 -0
  23. package/dist/fonts/inter-v18-latin-600.woff2 +0 -0
  24. package/dist/fonts/inter-v18-latin-700.woff2 +0 -0
  25. package/dist/fonts/inter-v18-latin-800.woff2 +0 -0
  26. package/dist/fonts/inter-v18-latin-900.woff2 +0 -0
  27. package/dist/fonts/inter-v18-latin-regular.woff2 +0 -0
  28. package/dist/vui.css +1 -1
  29. package/dist/vui.js +6061 -7226
  30. package/package.json +2 -2
@@ -2,6 +2,7 @@ export interface AccordionProps {
2
2
  open?: boolean;
3
3
  label?: string;
4
4
  card?: boolean;
5
+ unstyled?: boolean;
5
6
  }
6
7
  declare function open(): void;
7
8
  declare function close(): void;
@@ -1,9 +1,5 @@
1
1
  interface Props {
2
2
  variant?: 'neutral' | 'info' | 'success' | 'warning' | 'danger';
3
- /**
4
- * Override the variant's default icon
5
- */
6
- icon?: string;
7
3
  /**
8
4
  * Setting a title and description will use slightly different styling other
9
5
  * than slots.
@@ -13,11 +9,13 @@ interface Props {
13
9
  * Use strong color
14
10
  */
15
11
  filled?: boolean;
12
+ filledStrong?: boolean;
16
13
  description?: string;
17
14
  }
18
15
  declare function __VLS_template(): {
19
16
  attrs: Partial<{}>;
20
17
  slots: {
18
+ icon?(_: {}): any;
21
19
  default?(_: {}): any;
22
20
  default?(_: {}): any;
23
21
  end?(_: {}): any;
@@ -5,11 +5,13 @@ interface Props {
5
5
  fallback?: string;
6
6
  icon?: string;
7
7
  alt?: string;
8
+ radius?: Sizes | 'xs' | number;
8
9
  }
9
10
  declare function __VLS_template(): {
10
11
  attrs: Partial<{}>;
11
12
  slots: {
12
13
  default?(_: {}): any;
14
+ icon?(_: {}): any;
13
15
  };
14
16
  refs: {};
15
17
  rootEl: HTMLDivElement;
@@ -1,11 +1,17 @@
1
1
  import { Sizes } from '../../shared/types';
2
2
  export type Variants = 'fill' | 'danger' | 'success' | 'link' | 'accent' | 'gray';
3
3
  interface Props {
4
+ /**
5
+ * Allows rendering the button as a HTML anchor element.
6
+ */
7
+ href?: string;
8
+ /**
9
+ * Display a spinner.
10
+ */
4
11
  loading?: boolean;
5
12
  size?: Sizes;
6
13
  expand?: boolean;
7
14
  square?: boolean;
8
- icon?: string;
9
15
  variant?: Variants;
10
16
  outline?: boolean;
11
17
  disabled?: boolean;
@@ -19,10 +25,10 @@ declare function __VLS_template(): {
19
25
  end?(_: {}): any;
20
26
  };
21
27
  refs: {};
22
- rootEl: HTMLButtonElement;
28
+ rootEl: any;
23
29
  };
24
30
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
31
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
32
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
33
  export default _default;
28
34
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,7 +1,5 @@
1
1
  interface Props {
2
2
  label?: string;
3
- iconOn?: string;
4
- iconOff?: string;
5
3
  disabled?: boolean;
6
4
  checked?: boolean;
7
5
  accent?: boolean;
@@ -1,16 +1,21 @@
1
+ import { Placement } from '@floating-ui/vue';
1
2
  interface Props {
2
3
  /**
3
4
  * Text to copy
4
5
  */
5
6
  text: string;
6
7
  /**
7
- * Wether to show a tooltip after successful copy
8
+ * Whether to show a tooltip after successful copy
8
9
  */
9
10
  confirm?: string | boolean;
10
11
  /**
11
12
  * How long will the copy confirmation tooltip be visible in milliseconds.
12
13
  */
13
14
  confirmTime?: number;
15
+ /**
16
+ * Tooltip position. Default is top
17
+ */
18
+ confirmPlacement?: Placement;
14
19
  }
15
20
  declare function __VLS_template(): {
16
21
  attrs: Partial<{}>;
@@ -51,7 +51,11 @@ declare function __VLS_template(): {
51
51
  $attrs: {
52
52
  [x: string]: unknown;
53
53
  };
54
- $refs: any;
54
+ $refs: {
55
+ [x: string]: unknown;
56
+ } & {
57
+ popout: HTMLDivElement;
58
+ };
55
59
  $slots: Readonly<{
56
60
  [name: string]: import('vue').Slot<any> | undefined;
57
61
  }>;
@@ -93,7 +97,9 @@ declare function __VLS_template(): {
93
97
  }> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
94
98
  onClickOutside?: (() => any) | undefined;
95
99
  }>, "offset" | "placement"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
96
- $slots: any;
100
+ $slots: {
101
+ default?(_: {}): any;
102
+ };
97
103
  }) | null;
98
104
  };
99
105
  rootEl: any;
@@ -123,7 +129,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
123
129
  $attrs: {
124
130
  [x: string]: unknown;
125
131
  };
126
- $refs: any;
132
+ $refs: {
133
+ [x: string]: unknown;
134
+ } & {
135
+ popout: HTMLDivElement;
136
+ };
127
137
  $slots: Readonly<{
128
138
  [name: string]: import('vue').Slot<any> | undefined;
129
139
  }>;
@@ -165,7 +175,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
165
175
  }> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
166
176
  onClickOutside?: (() => any) | undefined;
167
177
  }>, "offset" | "placement"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
168
- $slots: any;
178
+ $slots: {
179
+ default?(_: {}): any;
180
+ };
169
181
  }) | null;
170
182
  }, any>;
171
183
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,13 +1,13 @@
1
1
  interface Props {
2
2
  disabled?: boolean;
3
- icon?: string;
4
- iconEnd?: string;
5
3
  }
6
4
  declare function __VLS_template(): {
7
5
  attrs: Partial<{}>;
8
6
  slots: {
7
+ icon?(_: {}): any;
9
8
  default?(_: {}): any;
10
9
  hint?(_: {}): any;
10
+ iconEnd?(_: {}): any;
11
11
  };
12
12
  refs: {};
13
13
  rootEl: HTMLButtonElement;
@@ -11,6 +11,7 @@ interface Props {
11
11
  yStart?: boolean;
12
12
  yEnd?: boolean;
13
13
  yBaseline?: boolean;
14
+ yStretch?: boolean;
14
15
  expand?: boolean;
15
16
  }
16
17
  declare function __VLS_template(): {
@@ -2,6 +2,8 @@ import { InputProps } from './Input.vue';
2
2
  type Props = Omit<InputProps, 'type'> & {
3
3
  resize?: boolean | 'vertical' | 'horizontal';
4
4
  autoResize?: boolean;
5
+ rows?: number;
6
+ cols?: number;
5
7
  };
6
8
  type __VLS_Props = Props;
7
9
  type __VLS_PublicProps = {
@@ -15,9 +15,24 @@ interface Props {
15
15
  */
16
16
  highlight?: boolean;
17
17
  }
18
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ declare function __VLS_template(): {
19
+ attrs: Partial<{}>;
20
+ slots: {
21
+ default?(_: {}): any;
22
+ };
23
+ refs: {};
24
+ rootEl: HTMLElement;
25
+ };
26
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
28
  trigger: () => any;
20
29
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
21
30
  onTrigger?: (() => any) | undefined;
22
31
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
32
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
33
  export default _default;
34
+ type __VLS_WithTemplateSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -27,7 +27,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
27
27
  onCancel?: (() => any) | undefined;
28
28
  }>, {
29
29
  open: boolean;
30
- size: import('../../shared/types').Sizes | "full" | "screen";
30
+ size: import('../../shared/types').Sizes | "screen";
31
31
  cancelText: string;
32
32
  canDismiss: boolean;
33
33
  confirmText: string;
@@ -8,7 +8,7 @@ export interface ModalProps {
8
8
  /**
9
9
  * Controls the width of the modal
10
10
  */
11
- size?: Sizes | 'full' | 'screen';
11
+ size?: Sizes | 'screen';
12
12
  /**
13
13
  * Modal wraps a floating card. You can optinally pass in any props you'd pass
14
14
  * into the <Card /> component.
@@ -17,7 +17,16 @@ export interface Props {
17
17
  */
18
18
  visible: boolean;
19
19
  }
20
- declare function __VLS_template(): any;
20
+ declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ };
25
+ refs: {
26
+ popout: HTMLDivElement;
27
+ };
28
+ rootEl: any;
29
+ };
21
30
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
31
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
32
  clickOutside: () => any;
@@ -26,7 +35,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
26
35
  }>, {
27
36
  offset: number;
28
37
  placement: Placement;
29
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
39
+ popout: HTMLDivElement;
40
+ }, any>;
30
41
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
42
  export default _default;
32
43
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -10,14 +10,14 @@ declare function __VLS_template(): {
10
10
  attrs: Partial<{}>;
11
11
  slots: Readonly<Record<string, any>> & Record<string, any>;
12
12
  refs: {};
13
- rootEl: HTMLDivElement;
13
+ rootEl: HTMLFieldSetElement;
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
17
  "update:modelValue": (value: any) => any;
18
18
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
19
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
20
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
21
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
22
  export default _default;
23
23
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,3 +1,4 @@
1
+ import { Props as CardProps } from '../Card/Card.vue';
1
2
  interface Props {
2
3
  /**
3
4
  * Controls the visibility of the sheet
@@ -12,9 +13,10 @@ interface Props {
12
13
  */
13
14
  size?: number | string;
14
15
  /**
15
- * Wether to show a divider between header and content
16
+ * Modal wraps a floating card. You can optinally pass in any props you'd pass
17
+ * into the <Card /> component.
16
18
  */
17
- separator?: boolean;
19
+ card?: CardProps;
18
20
  }
19
21
  declare function __VLS_template(): {
20
22
  attrs: Partial<{}>;
@@ -1,7 +1,6 @@
1
1
  export interface TabProps {
2
2
  disabled?: boolean;
3
3
  value: string;
4
- icon?: string;
5
4
  }
6
5
  declare function __VLS_template(): {
7
6
  attrs: Partial<{}>;
@@ -1,2 +1,6 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ import { Placement } from '../../shared/types';
2
+ interface Props {
3
+ placement?: Placement;
4
+ }
5
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
6
  export default _default;