@dolanske/vui 1.2.1 → 1.3.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.
package/README.md CHANGED
@@ -6,37 +6,14 @@
6
6
 
7
7
  ---
8
8
 
9
- ## 1.0 Checklist
10
-
11
- - [ ] Real life 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
- - [ ] Make sure it works on mobile down to 340px
17
- - [ ] Components
18
- - [ ] Scale down Typography
19
- - [x] Sidebar
20
-
21
- ---
22
-
23
- ### Post 1.2 components
9
+ ## TODO
24
10
 
11
+ - [ ] Bump target from ES2022 whenever vite-plugin-dts is fixed
25
12
  - [ ] Carousel (slider)
26
13
  - [ ] CodeBlock
27
14
  - [ ] Code highlighting
28
15
  - [ ] Copy code
29
16
  - [ ] Type, padding, etc
30
17
  - [ ] Use this https://shiki.style/guide/install
31
- - [ ] Command dropdown
32
- - [ ] Documentation
33
- - [ ] Design my own documentation site (GENERIC?!)
34
- - [ ] Pages
35
- - [ ] CSS variable setup, accent, fonts
36
- - [ ] CSS helpers
37
- - [ ] Components
38
- - [ ] Typography page
39
-
40
- ### Whenever
41
-
42
- - [ ] Bump target from ES2022 whenever vite-plugin-dts is fixed
18
+ - [ ] Command menu
19
+ - [ ] Documentation site using my own template
@@ -33,7 +33,7 @@ declare function __VLS_template(): {
33
33
  open: typeof open;
34
34
  close: typeof close;
35
35
  toggle: typeof toggle;
36
- isOpen: true;
36
+ isOpen: boolean;
37
37
  }): any;
38
38
  };
39
39
  refs: {
@@ -45,16 +45,13 @@ declare function __VLS_template(): {
45
45
  readonly anchor: import('../../shared/types').PopoutMaybeElement<HTMLElement>;
46
46
  readonly placement?: Placement | undefined;
47
47
  readonly offset?: number | undefined;
48
+ readonly visible: boolean;
48
49
  readonly onClickOutside?: (() => any) | undefined;
49
50
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
50
51
  $attrs: {
51
52
  [x: string]: unknown;
52
53
  };
53
- $refs: {
54
- [x: string]: unknown;
55
- } & {
56
- popout: HTMLDivElement;
57
- };
54
+ $refs: any;
58
55
  $slots: Readonly<{
59
56
  [name: string]: import('vue').Slot<any> | undefined;
60
57
  }>;
@@ -62,13 +59,14 @@ declare function __VLS_template(): {
62
59
  $parent: import('vue').ComponentPublicInstance | null;
63
60
  $host: Element | null;
64
61
  $emit: (event: "clickOutside") => void;
65
- $el: HTMLDivElement;
62
+ $el: any;
66
63
  $options: import('vue').ComponentOptionsBase<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
67
64
  onClickOutside?: (() => any) | undefined;
68
65
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
69
66
  clickOutside: () => any;
70
67
  }, string, {
71
68
  offset: number;
69
+ placement: Placement;
72
70
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
73
71
  beforeCreate?: (() => void) | (() => void)[];
74
72
  created?: (() => void) | (() => void)[];
@@ -91,12 +89,11 @@ declare function __VLS_template(): {
91
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;
92
90
  } & Readonly<{
93
91
  offset: number;
92
+ placement: Placement;
94
93
  }> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
95
94
  onClickOutside?: (() => any) | undefined;
96
- }>, "offset"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
97
- $slots: {
98
- default?(_: {}): any;
99
- };
95
+ }>, "offset" | "placement"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
96
+ $slots: any;
100
97
  }) | null;
101
98
  };
102
99
  rootEl: any;
@@ -120,16 +117,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
120
117
  readonly anchor: import('../../shared/types').PopoutMaybeElement<HTMLElement>;
121
118
  readonly placement?: Placement | undefined;
122
119
  readonly offset?: number | undefined;
120
+ readonly visible: boolean;
123
121
  readonly onClickOutside?: (() => any) | undefined;
124
122
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
125
123
  $attrs: {
126
124
  [x: string]: unknown;
127
125
  };
128
- $refs: {
129
- [x: string]: unknown;
130
- } & {
131
- popout: HTMLDivElement;
132
- };
126
+ $refs: any;
133
127
  $slots: Readonly<{
134
128
  [name: string]: import('vue').Slot<any> | undefined;
135
129
  }>;
@@ -137,13 +131,14 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
137
131
  $parent: import('vue').ComponentPublicInstance | null;
138
132
  $host: Element | null;
139
133
  $emit: (event: "clickOutside") => void;
140
- $el: HTMLDivElement;
134
+ $el: any;
141
135
  $options: import('vue').ComponentOptionsBase<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
142
136
  onClickOutside?: (() => any) | undefined;
143
137
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
144
138
  clickOutside: () => any;
145
139
  }, string, {
146
140
  offset: number;
141
+ placement: Placement;
147
142
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
148
143
  beforeCreate?: (() => void) | (() => void)[];
149
144
  created?: (() => void) | (() => void)[];
@@ -166,12 +161,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
166
161
  $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;
167
162
  } & Readonly<{
168
163
  offset: number;
164
+ placement: Placement;
169
165
  }> & Omit<Readonly<import('../Popout/Popout.vue').Props> & Readonly<{
170
166
  onClickOutside?: (() => any) | undefined;
171
- }>, "offset"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
172
- $slots: {
173
- default?(_: {}): any;
174
- };
167
+ }>, "offset" | "placement"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
168
+ $slots: any;
175
169
  }) | null;
176
170
  }, any>;
177
171
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -12,17 +12,12 @@ export interface Props {
12
12
  * Distance between the anchor and the rendered tooltip
13
13
  */
14
14
  offset?: number;
15
+ /**
16
+ * Set the visibility of the dropdown
17
+ */
18
+ visible: boolean;
15
19
  }
16
- declare function __VLS_template(): {
17
- attrs: Partial<{}>;
18
- slots: {
19
- default?(_: {}): any;
20
- };
21
- refs: {
22
- popout: HTMLDivElement;
23
- };
24
- rootEl: HTMLDivElement;
25
- };
20
+ declare function __VLS_template(): any;
26
21
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
22
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
23
  clickOutside: () => any;
@@ -30,9 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
30
25
  onClickOutside?: (() => any) | undefined;
31
26
  }>, {
32
27
  offset: number;
33
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
- popout: HTMLDivElement;
35
- }, HTMLDivElement>;
28
+ placement: Placement;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, any, any>;
36
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
31
  export default _default;
38
32
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,3 +1,4 @@
1
+ import { Placement } from '@floating-ui/vue';
1
2
  export declare function createArray(length: number, startOffset?: number): number[];
2
3
  export declare function searchString(match: string | string[], input: string): boolean;
3
4
  export declare function getMaybeRefLength(value: string | number): number;
@@ -30,3 +31,4 @@ export declare function clamp(min: number, max: number, value: number): number;
30
31
  * @returns If object is inside the set
31
32
  */
32
33
  export declare function isObjectInSet(set: Set<any>, obj: any): boolean;
34
+ export declare function getPlacementAnimationName(position: Placement): string;