@dolanske/vui 0.5.0 → 1.0.0

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 (152) hide show
  1. package/README.md +5 -4
  2. package/dist/components/Alert/Alert.vue.d.ts +7 -1
  3. package/dist/components/Avatar/Avatar.vue.d.ts +15 -1
  4. package/dist/components/Badge/Badge.vue.d.ts +1 -1
  5. package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +1 -1
  6. package/dist/components/Button/Button.vue.d.ts +5 -15
  7. package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +2 -0
  8. package/dist/components/Calendar/Calendar.vue.d.ts +1 -1
  9. package/dist/components/Checkbox/Checkbox.vue.d.ts +1 -0
  10. package/dist/components/Dropdown/Dropdown.vue.d.ts +19 -4
  11. package/dist/components/Dropdown/DropdownTitle.vue.d.ts +5 -1
  12. package/dist/components/Grid/Grid.vue.d.ts +4 -1
  13. package/dist/components/Input/Dropzone.vue.d.ts +1 -1
  14. package/dist/components/Input/Input.vue.d.ts +2 -2
  15. package/dist/components/Kbd/KbdGroup.vue.d.ts +3 -11
  16. package/dist/components/Modal/Confirm.vue.d.ts +1 -1
  17. package/dist/components/Modal/Modal.vue.d.ts +1 -1
  18. package/dist/components/Pagination/Pagination.vue.d.ts +3 -0
  19. package/dist/components/Popout/Popout.vue.d.ts +8 -1
  20. package/dist/components/Progress/Progress.vue.d.ts +2 -0
  21. package/dist/components/Radio/Radio.vue.d.ts +1 -0
  22. package/dist/components/Select/Select.vue.d.ts +2 -0
  23. package/dist/components/Sheet/Sheet.vue.d.ts +3 -0
  24. package/dist/components/Switch/Switch.vue.d.ts +1 -0
  25. package/dist/components/Table/index.d.ts +6 -0
  26. package/dist/components/Table/table.d.ts +1 -1
  27. package/dist/components/Tabs/Tab.vue.d.ts +16 -3
  28. package/dist/components/Toast/toast.d.ts +245 -0
  29. package/dist/index.d.ts +2 -7
  30. package/dist/shared/helpers.d.ts +9 -0
  31. package/dist/shared/theme.d.ts +3 -0
  32. package/dist/style.css +1 -1
  33. package/dist/vui.js +6418 -6049
  34. package/package.json +7 -3
  35. package/src/App.vue +90 -171
  36. package/src/components/Accordion/accordion.scss +1 -0
  37. package/src/components/Alert/Alert.vue +11 -5
  38. package/src/components/Alert/alert.scss +104 -23
  39. package/src/components/Avatar/Avatar.vue +4 -1
  40. package/src/components/Avatar/avatar.scss +1 -1
  41. package/src/components/Badge/Badge.vue +1 -1
  42. package/src/components/Badge/badge.scss +134 -17
  43. package/src/components/Breadcrumbs/BreadcrumbItem.vue +2 -2
  44. package/src/components/Breadcrumbs/Breadcrumbs.vue +1 -2
  45. package/src/components/Breadcrumbs/breadcrumbs.scss +2 -1
  46. package/src/components/Button/Button.vue +15 -20
  47. package/src/components/Button/button.scss +156 -55
  48. package/src/components/ButtonGroup/ButtonGroup.vue +4 -1
  49. package/src/components/ButtonGroup/button-group.scss +2 -2
  50. package/src/components/Calendar/Calendar.vue +4 -1
  51. package/src/components/Calendar/calendar.scss +25 -2
  52. package/src/components/Card/Card.vue +2 -2
  53. package/src/components/Card/card.scss +4 -4
  54. package/src/components/Checkbox/Checkbox.vue +4 -1
  55. package/src/components/Checkbox/checkbox.scss +17 -12
  56. package/src/components/CopyClipboard/CopyClipboard.vue +15 -6
  57. package/src/components/CopyClipboard/copy-clipboard.scss +10 -2
  58. package/src/components/Drawer/Drawer.vue +4 -4
  59. package/src/components/Drawer/drawer.scss +1 -0
  60. package/src/components/Dropdown/Dropdown.vue +44 -20
  61. package/src/components/Dropdown/DropdownItem.vue +4 -4
  62. package/src/components/Dropdown/DropdownTitle.vue +7 -1
  63. package/src/components/Dropdown/dropdown-item.scss +9 -2
  64. package/src/components/Dropdown/dropdown.scss +21 -7
  65. package/src/components/Grid/Grid.vue +21 -1
  66. package/src/components/Input/Color.vue +26 -0
  67. package/src/components/Input/Counter.vue +12 -16
  68. package/src/components/Input/Dropzone.vue +1 -1
  69. package/src/components/Input/File.vue +1 -1
  70. package/src/components/Input/Input.vue +8 -6
  71. package/src/components/Input/Password.vue +1 -13
  72. package/src/components/Input/Textarea.vue +4 -2
  73. package/src/components/Input/input.scss +110 -16
  74. package/src/components/Kbd/KbdGroup.vue +2 -6
  75. package/src/components/Kbd/kbd.scss +6 -5
  76. package/src/components/Modal/Confirm.vue +1 -1
  77. package/src/components/Modal/Modal.vue +23 -15
  78. package/src/components/Modal/modal.scss +11 -6
  79. package/src/components/OTP/otp.scss +8 -7
  80. package/src/components/Pagination/Pagination.vue +6 -3
  81. package/src/components/Popout/Popout.vue +15 -5
  82. package/src/components/Popout/popout.scss +8 -1
  83. package/src/components/Progress/Progress.vue +18 -5
  84. package/src/components/Progress/progress.scss +7 -1
  85. package/src/components/Radio/Radio.vue +4 -2
  86. package/src/components/Radio/radio.scss +18 -8
  87. package/src/components/Select/Select.vue +49 -18
  88. package/src/components/Select/select.scss +35 -2
  89. package/src/components/Sheet/Sheet.vue +8 -2
  90. package/src/components/Sheet/sheet.scss +9 -0
  91. package/src/components/Sidebar/Sidebar.vue +24 -11
  92. package/src/components/Sidebar/sidebar.scss +6 -5
  93. package/src/components/Spinner/spinner.scss +2 -1
  94. package/src/components/Switch/Switch.vue +4 -3
  95. package/src/components/Switch/switch.scss +39 -6
  96. package/src/components/Table/{Header.vue → Head.vue} +5 -5
  97. package/src/components/Table/{Table.vue → Root.vue} +2 -2
  98. package/src/components/Table/SelectRow.vue +2 -1
  99. package/src/components/Table/index.ts +7 -0
  100. package/src/components/Table/table.scss +25 -5
  101. package/src/components/Table/table.ts +7 -3
  102. package/src/components/Tabs/Tab.vue +7 -9
  103. package/src/components/Tabs/Tabs.vue +2 -2
  104. package/src/components/Tabs/tabs.scss +10 -3
  105. package/src/components/Toast/Toasts.vue +5 -0
  106. package/src/components/Toast/toast.scss +6 -2
  107. package/src/components/Toast/toast.ts +7 -0
  108. package/src/components/Tooltip/Tooltip.vue +9 -9
  109. package/src/components/Tooltip/tooltip.scss +4 -0
  110. package/src/examples/ExampleAccordions.vue +58 -0
  111. package/src/examples/ExampleAlerts.vue +78 -0
  112. package/src/examples/ExampleAvatars.vue +44 -0
  113. package/src/examples/ExampleBadges.vue +48 -0
  114. package/src/examples/ExampleBreadcrumbs.vue +46 -0
  115. package/src/examples/ExampleButtons.vue +140 -0
  116. package/src/examples/ExampleCalendars.vue +40 -0
  117. package/src/examples/ExampleCards.vue +94 -0
  118. package/src/examples/ExampleCheckboxes.vue +123 -0
  119. package/src/examples/ExampleCopyClipboard.vue +47 -0
  120. package/src/examples/ExampleDividers.vue +39 -0
  121. package/src/examples/ExampleDrawers.vue +67 -0
  122. package/src/examples/ExampleDropdowns.vue +114 -0
  123. package/src/examples/ExampleFlexGrid.vue +122 -0
  124. package/src/examples/ExampleInputs.vue +234 -0
  125. package/src/examples/ExampleKBD.vue +65 -0
  126. package/src/examples/ExampleModals.vue +143 -0
  127. package/src/examples/ExamplePalette.vue +159 -0
  128. package/src/examples/ExamplePopouts.vue +41 -0
  129. package/src/examples/ExampleSheets.vue +77 -0
  130. package/src/examples/ExampleSidebars.vue +270 -0
  131. package/src/examples/ExampleSkeletons.vue +26 -0
  132. package/src/examples/ExampleSpinners.vue +78 -0
  133. package/src/examples/ExampleTables.vue +195 -0
  134. package/src/examples/ExampleTabs.vue +119 -0
  135. package/src/examples/ExampleToasts.vue +96 -0
  136. package/src/examples/ExampleTooltips.vue +70 -0
  137. package/src/examples/shared/ExampleColor.vue +28 -0
  138. package/src/index.ts +4 -11
  139. package/src/internal/Backdrop/backdrop.scss +7 -1
  140. package/src/shared/helpers.ts +43 -0
  141. package/src/shared/theme.ts +22 -0
  142. package/src/style/animation.scss +1 -0
  143. package/src/style/core.scss +30 -55
  144. package/src/style/layout.scss +74 -9
  145. package/src/style/text.scss +18 -0
  146. package/src/style/theme.scss +195 -0
  147. package/src/style/tooltip.scss +22 -4
  148. package/src/style/typography.scss +95 -18
  149. package/dist/components/Table/Row.vue.d.ts +0 -16
  150. package/src/components/Table/Row.vue +0 -9
  151. /package/dist/components/Table/{Header.vue.d.ts → Head.vue.d.ts} +0 -0
  152. /package/dist/components/Table/{Table.vue.d.ts → Root.vue.d.ts} +0 -0
package/README.md CHANGED
@@ -9,10 +9,10 @@
9
9
  ## 1.0 Checklist
10
10
 
11
11
  - [ ] Real life test
12
- - [ ] Might be useful to build this in the hivecom project
13
- - [ ] Build an example page with 100% of the components
14
- - [ ] Run accessibility tools on it
15
- - [ ] Run color contrast test
12
+ - [x] Might be useful to build this in the hivecom project
13
+ - [x] Build an example page with 100% of the components
14
+ - [x] Run accessibility tools on it
15
+ - [x] Run color contrast test
16
16
  - [ ] Make sure it works on mobile down to 340px
17
17
  - [ ] Components
18
18
  - [ ] Scale down Typography
@@ -27,6 +27,7 @@
27
27
  - [ ] Code highlighting
28
28
  - [ ] Copy code
29
29
  - [ ] Type, padding, etc
30
+ - [ ] Use this https://shiki.style/guide/install
30
31
  - [ ] Command dropdown
31
32
  - [ ] Documentation
32
33
  - [ ] Design my own documentation site (GENERIC?!)
@@ -5,13 +5,19 @@ interface Props {
5
5
  */
6
6
  icon?: string;
7
7
  /**
8
- * Setting a title and description will use slightly different styling other than slots.
8
+ * Setting a title and description will use slightly different styling other
9
+ * than slots.
9
10
  */
10
11
  title?: string;
12
+ /**
13
+ * Use strong color
14
+ */
15
+ filled?: boolean;
11
16
  description?: string;
12
17
  }
13
18
  declare function __VLS_template(): {
14
19
  slots: {
20
+ default?(_: {}): any;
15
21
  default?(_: {}): any;
16
22
  end?(_: {}): any;
17
23
  };
@@ -6,5 +6,19 @@ interface Props {
6
6
  icon?: string;
7
7
  alt?: string;
8
8
  }
9
- 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>;
9
+ declare function __VLS_template(): {
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ attrs: Partial<{}>;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ 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>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
10
19
  export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -1,5 +1,5 @@
1
1
  interface Props {
2
- variant?: 'neutral' | 'danger' | 'warning' | 'success' | 'info';
2
+ variant?: 'neutral' | 'danger' | 'warning' | 'success' | 'info' | 'accent';
3
3
  outline?: boolean;
4
4
  filled?: boolean;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  export interface BreadcrumbItemProps {
2
2
  label?: string;
3
- path?: string;
3
+ href?: string;
4
4
  }
5
5
  declare function __VLS_template(): {
6
6
  slots: {
@@ -1,25 +1,15 @@
1
1
  import { Sizes } from '../../shared/types';
2
- export type Variants = 'default' | 'danger' | 'success' | 'link' | 'blue' | 'accent';
2
+ export type Variants = 'fill' | 'danger' | 'success' | 'link' | 'accent' | 'gray';
3
3
  interface Props {
4
4
  loading?: boolean;
5
+ size?: Sizes;
5
6
  expand?: boolean;
6
7
  square?: boolean;
7
- dashed?: boolean;
8
+ icon?: string;
9
+ variant?: Variants;
10
+ outline?: boolean;
8
11
  disabled?: boolean;
9
- size?: Sizes;
10
- /**
11
- * Sets the hover styling property
12
- */
13
- active?: boolean;
14
- /**
15
- * No styling applied to the button unless hovered
16
- */
17
12
  plain?: boolean;
18
- variant?: Variants;
19
- /**
20
- * The children will be set to an icon and the icon will become a square
21
- */
22
- icon?: string;
23
13
  }
24
14
  declare function __VLS_template(): {
25
15
  slots: {
@@ -1,5 +1,7 @@
1
+ import { Space } from '../../shared/types';
1
2
  interface Props {
2
3
  vertical?: boolean;
4
+ gap?: Space | number;
3
5
  }
4
6
  declare function __VLS_template(): {
5
7
  slots: {
@@ -12,11 +12,11 @@ declare const __VLS_component: import('vue').DefineComponent<VueDatePickerProps
12
12
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VueDatePickerProps & {
13
13
  expand?: boolean;
14
14
  }> & Readonly<{}>, {
15
- dark: boolean;
16
15
  expand: boolean;
17
16
  format: string | ((date: Date) => string) | ((dates: Date[]) => string);
18
17
  autoApply: boolean;
19
18
  autoPosition: boolean | "top" | "bottom";
19
+ monthNameFormat: "long" | "short";
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
22
  export default _default;
@@ -4,6 +4,7 @@ interface Props {
4
4
  iconOff?: string;
5
5
  disabled?: boolean;
6
6
  checked?: boolean;
7
+ accent?: boolean;
7
8
  }
8
9
  declare let __VLS_typeProps: Props;
9
10
  type __VLS_PublicProps = {
@@ -12,6 +12,10 @@ export interface Props {
12
12
  * Sets the width of the dropdown to the width of its anchor
13
13
  */
14
14
  expand?: boolean;
15
+ /**
16
+ * Set he max height of the dropdown element before it starts scrolling
17
+ */
18
+ maxHeight?: number | string;
15
19
  }
16
20
  declare function open(): void;
17
21
  declare function close(): void;
@@ -40,6 +44,7 @@ declare function __VLS_template(): {
40
44
  readonly anchor: import('../../shared/types').PopoutMaybeElement<HTMLElement>;
41
45
  readonly placement?: Placement | undefined;
42
46
  readonly offset?: number | undefined;
47
+ readonly onClickOutside?: (() => any) | undefined;
43
48
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
44
49
  $attrs: {
45
50
  [x: string]: unknown;
@@ -55,9 +60,13 @@ declare function __VLS_template(): {
55
60
  $root: import('vue').ComponentPublicInstance | null;
56
61
  $parent: import('vue').ComponentPublicInstance | null;
57
62
  $host: Element | null;
58
- $emit: (event: string, ...args: any[]) => void;
63
+ $emit: (event: "clickOutside") => void;
59
64
  $el: any;
60
- $options: import('vue').ComponentOptionsBase<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
65
+ $options: import('vue').ComponentOptionsBase<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
66
+ onClickOutside?: (() => any) | undefined;
67
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
68
+ clickOutside: () => any;
69
+ }, string, {
61
70
  offset: number;
62
71
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
63
72
  beforeCreate?: (() => void) | (() => void)[];
@@ -81,7 +90,9 @@ declare function __VLS_template(): {
81
90
  $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;
82
91
  } & Readonly<{
83
92
  offset: number;
84
- }> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{}>, "offset"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
93
+ }> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
94
+ onClickOutside?: (() => any) | undefined;
95
+ }>, "offset"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
85
96
  $slots: {
86
97
  default?(_: {}): any;
87
98
  };
@@ -95,7 +106,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
95
106
  close: typeof close;
96
107
  toggle: typeof toggle;
97
108
  isOpen: import('vue').Ref<boolean, boolean>;
98
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
109
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
110
+ close: () => any;
111
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
112
+ onClose?: (() => any) | undefined;
113
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
99
114
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
100
115
  export default _default;
101
116
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -7,7 +7,11 @@ declare function __VLS_template(): {
7
7
  attrs: Partial<{}>;
8
8
  };
9
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{
11
+ sticky?: boolean;
12
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
13
+ sticky?: boolean;
14
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
16
  export default _default;
13
17
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -7,7 +7,10 @@ interface Props {
7
7
  gap?: Space | number;
8
8
  rows?: number | string;
9
9
  columns?: number | string;
10
- areas?: string[];
10
+ alignCenter?: boolean;
11
+ alignStart?: boolean;
12
+ alignEnd?: boolean;
13
+ alignBaseline?: boolean;
11
14
  }
12
15
  declare function __VLS_template(): {
13
16
  slots: {
@@ -12,7 +12,7 @@ declare function __VLS_template(): {
12
12
  $data: {};
13
13
  $props: {
14
14
  readonly modelValue?: (string | number) | undefined;
15
- readonly type?: import('vue').InputTypeHTMLAttribute | undefined;
15
+ readonly type?: import('./Input.vue').InputType | undefined;
16
16
  readonly label?: string | undefined;
17
17
  readonly hint?: string | undefined;
18
18
  readonly limit?: (number | string) | undefined;
@@ -1,6 +1,6 @@
1
- import { InputTypeHTMLAttribute } from 'vue';
1
+ export type InputType = 'text' | 'password' | 'color' | 'date' | 'email' | 'number' | 'range' | 'search' | 'tel' | 'time' | 'url' | 'file';
2
2
  export interface InputProps {
3
- type?: InputTypeHTMLAttribute;
3
+ type?: InputType;
4
4
  label?: string;
5
5
  hint?: string;
6
6
  limit?: number | string;
@@ -1,17 +1,9 @@
1
- import { VNode } from 'vue';
1
+ import { default as Kbd } from './Kbd.vue';
2
2
  declare function __VLS_template(): {
3
3
  slots: Readonly<{
4
- default: () => Array<VNode & {
5
- props: {
6
- keys: string;
7
- };
8
- }>;
4
+ default: () => Array<typeof Kbd>;
9
5
  }> & {
10
- default: () => Array<VNode & {
11
- props: {
12
- keys: string;
13
- };
14
- }>;
6
+ default: () => Array<typeof Kbd>;
15
7
  };
16
8
  refs: {};
17
9
  attrs: Partial<{}>;
@@ -29,7 +29,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
29
29
  onConfirm?: (() => any) | undefined;
30
30
  onCancel?: (() => any) | undefined;
31
31
  }>, {
32
- size: import('../../shared/types').Sizes | "full";
32
+ size: import('../../shared/types').Sizes | "full" | "screen";
33
33
  cancelText: string;
34
34
  canDismiss: boolean;
35
35
  confirmText: string;
@@ -1,7 +1,7 @@
1
1
  import { Sizes } from '../../shared/types';
2
2
  import { Props as CardProps } from '../Card/Card.vue';
3
3
  export interface ModalProps {
4
- size?: Sizes | 'full';
4
+ size?: Sizes | 'full' | 'screen';
5
5
  /**
6
6
  * Modal wraps a floating card. You can optinally pass in any props you'd pass
7
7
  * into the <Card /> component.
@@ -1,9 +1,11 @@
1
+ import { Variants } from '../Button/Button.vue';
1
2
  import { Pagination } from './pagination';
2
3
  interface Props {
3
4
  numbers?: boolean;
4
5
  pagination: Pagination;
5
6
  prevNext?: boolean;
6
7
  firstLast?: boolean;
8
+ variant?: Variants;
7
9
  }
8
10
  declare function setNext(): void;
9
11
  declare function setPrev(): void;
@@ -29,6 +31,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
29
31
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
30
32
  onChange?: ((page: number) => any) | undefined;
31
33
  }>, {
34
+ variant: Variants;
32
35
  numbers: boolean;
33
36
  prevNext: boolean;
34
37
  firstLast: boolean;
@@ -1,5 +1,8 @@
1
1
  import { Placement, PopoutMaybeElement } from '../../shared/types';
2
2
  export interface Props {
3
+ /**
4
+ * Reference to the HTML element the Popout is anchored to
5
+ */
3
6
  anchor: PopoutMaybeElement<HTMLElement>;
4
7
  /**
5
8
  * Override the autoPlacement option
@@ -20,7 +23,11 @@ declare function __VLS_template(): {
20
23
  attrs: Partial<{}>;
21
24
  };
22
25
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
23
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
26
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ clickOutside: () => any;
28
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
29
+ onClickOutside?: (() => any) | undefined;
30
+ }>, {
24
31
  offset: number;
25
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
26
33
  popout: HTMLDivElement;
@@ -22,8 +22,10 @@ type __VLS_PublicProps = {
22
22
  modelValue?: number;
23
23
  } & typeof __VLS_typeProps;
24
24
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ done: () => any;
25
26
  "update:modelValue": (modelValue: number) => any;
26
27
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ onDone?: (() => any) | undefined;
27
29
  "onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
28
30
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
31
  progress: HTMLDivElement;
@@ -2,6 +2,7 @@ export interface RadioProps {
2
2
  label?: string;
3
3
  disabled?: boolean;
4
4
  value: any;
5
+ accent?: boolean;
5
6
  }
6
7
  declare let __VLS_typeProps: RadioProps;
7
8
  type __VLS_PublicProps = {
@@ -19,6 +19,8 @@ declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>
19
19
  search?: boolean;
20
20
  maxActiveOptions?: number;
21
21
  showClear?: boolean;
22
+ disabled?: boolean;
23
+ errors?: string[];
22
24
  })> & import('vue').PublicProps;
23
25
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
24
26
  attrs: any;
@@ -16,6 +16,9 @@ declare function __VLS_template(): {
16
16
  default?(_: {
17
17
  close: typeof close;
18
18
  }): any;
19
+ footer?(_: {
20
+ close: typeof close;
21
+ }): any;
19
22
  };
20
23
  refs: {};
21
24
  attrs: Partial<{}>;
@@ -1,6 +1,7 @@
1
1
  interface Props {
2
2
  label?: string;
3
3
  disabled?: boolean;
4
+ accent?: boolean;
4
5
  }
5
6
  declare let __VLS_typeProps: Props;
6
7
  type __VLS_PublicProps = {
@@ -0,0 +1,6 @@
1
+ import { default as Cell } from './Cell.vue';
2
+ import { default as Head } from './Head.vue';
3
+ import { default as Root } from './Root.vue';
4
+ import { default as SelectAll } from './SelectAll.vue';
5
+ import { default as SelectRow } from './SelectRow.vue';
6
+ export { Cell, Head, Root, SelectAll, SelectRow };
@@ -22,7 +22,7 @@ interface TableOptionsInput {
22
22
  };
23
23
  select?: boolean;
24
24
  }
25
- export declare function defineTable<const Dataset extends Array<BaseRow>>(computedDataset: MaybeRefOrGetter<Dataset>, tableOptions?: TableOptionsInput): {
25
+ export declare function defineTable<const Dataset extends any[]>(computedDataset: MaybeRefOrGetter<Dataset>, tableOptions?: TableOptionsInput): {
26
26
  setSort: (key: keyof Dataset[number], type?: "asc" | "desc" | "toggle") => void;
27
27
  clearSort: () => void;
28
28
  search: Ref<string | undefined, string | undefined>;
@@ -1,8 +1,21 @@
1
1
  export interface TabProps {
2
2
  disabled?: boolean;
3
- id?: string;
4
- label: string;
3
+ label?: string;
5
4
  icon?: string;
6
5
  }
7
- declare const _default: import('vue').DefineComponent<TabProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare function __VLS_template(): {
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ attrs: Partial<{}>;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<TabProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
8
16
  export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };