@returnless/focus-ui 0.0.53 → 0.0.55
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/dist/focus-ui.js +14052 -12076
- package/dist/focus-ui.umd.cjs +27 -27
- package/dist/src/components/Autocomplete/AutocompleteItem.vue.d.ts +1 -1
- package/dist/src/components/DropdownMenu/DropdownMenu.vue.d.ts +1 -1
- package/dist/src/components/DropdownMenu/DropdownMenuCheckboxItem.vue.d.ts +31 -0
- package/dist/src/components/DropdownMenu/DropdownMenuContent.vue.d.ts +7 -7
- package/dist/src/components/DropdownMenu/DropdownMenuItem.vue.d.ts +1 -1
- package/dist/src/components/DropdownMenu/DropdownMenuRadioGroup.vue.d.ts +22 -0
- package/dist/src/components/DropdownMenu/DropdownMenuRadioItem.vue.d.ts +27 -0
- package/dist/src/components/DropdownMenu/DropdownMenuSeparator.vue.d.ts +1 -1
- package/dist/src/components/DropdownMenu/DropdownMenuTrigger.vue.d.ts +1 -1
- package/dist/src/components/DropdownMenu/index.d.ts +3 -0
- package/dist/src/components/TextField/TextField.vue.d.ts +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type FunctionalComponent, type HTMLAttributes, type VNodeProps } from 'vue';
|
|
2
|
+
import { type DropdownMenuCheckboxItemProps } from 'reka-ui';
|
|
3
|
+
type ValueType = string | number;
|
|
4
|
+
type __VLS_Props = DropdownMenuCheckboxItemProps & {
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
icon?: FunctionalComponent<HTMLAttributes & VNodeProps> | null;
|
|
7
|
+
variant?: 'default' | 'destructive';
|
|
8
|
+
modelValue: ValueType[];
|
|
9
|
+
value: ValueType;
|
|
10
|
+
};
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (args_0: ValueType[]) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
"onUpdate:modelValue"?: ((args_0: ValueType[]) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'vue';
|
|
2
|
-
import { type DropdownMenuContentProps } from '
|
|
2
|
+
import { type DropdownMenuContentProps } from 'reka-ui';
|
|
3
3
|
type __VLS_Props = DropdownMenuContentProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
5
|
};
|
|
@@ -14,15 +14,15 @@ declare function __VLS_template(): {
|
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
15
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
16
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
17
|
-
pointerDownOutside: (event: import("
|
|
18
|
-
focusOutside: (event: import("
|
|
19
|
-
interactOutside: (event: import("
|
|
17
|
+
pointerDownOutside: (event: import("reka-ui").PointerDownOutsideEvent) => any;
|
|
18
|
+
focusOutside: (event: import("reka-ui").FocusOutsideEvent) => any;
|
|
19
|
+
interactOutside: (event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any;
|
|
20
20
|
closeAutoFocus: (event: Event) => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
22
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
23
|
-
onPointerDownOutside?: ((event: import("
|
|
24
|
-
onFocusOutside?: ((event: import("
|
|
25
|
-
onInteractOutside?: ((event: import("
|
|
23
|
+
onPointerDownOutside?: ((event: import("reka-ui").PointerDownOutsideEvent) => any) | undefined;
|
|
24
|
+
onFocusOutside?: ((event: import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
25
|
+
onInteractOutside?: ((event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => any) | undefined;
|
|
26
26
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
28
|
class: HTMLAttributes["class"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FunctionalComponent, HTMLAttributes, VNodeProps } from 'vue';
|
|
2
|
-
import { type DropdownMenuItemProps } from '
|
|
2
|
+
import { type DropdownMenuItemProps } from 'reka-ui';
|
|
3
3
|
type __VLS_Props = DropdownMenuItemProps & {
|
|
4
4
|
class?: HTMLAttributes['class'];
|
|
5
5
|
icon?: FunctionalComponent<HTMLAttributes & VNodeProps> | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DropdownMenuRadioGroupProps } from 'reka-ui';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: any;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<DropdownMenuRadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (payload: string) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<DropdownMenuRadioGroupProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DropdownMenuRadioItemProps } from 'reka-ui';
|
|
2
|
+
import type { FunctionalComponent, HTMLAttributes, VNodeProps } from 'vue';
|
|
3
|
+
type __VLS_Props = DropdownMenuRadioItemProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
icon?: FunctionalComponent<HTMLAttributes & VNodeProps> | null;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
slots: {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
select: (event: Event) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
onSelect?: ((event: Event) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { default as DropdownMenu } from './DropdownMenu.vue';
|
|
2
|
+
export { default as DropdownMenuCheckboxItem } from './DropdownMenuCheckboxItem.vue';
|
|
2
3
|
export { default as DropdownMenuContent } from './DropdownMenuContent.vue';
|
|
3
4
|
export { default as DropdownMenuItem } from './DropdownMenuItem.vue';
|
|
4
5
|
export { default as DropdownMenuItemShortcutIndicator } from './DropdownMenuItemShortcutIndicator.vue';
|
|
6
|
+
export { default as DropdownMenuRadioGroup } from './DropdownMenuRadioGroup.vue';
|
|
7
|
+
export { default as DropdownMenuRadioItem } from './DropdownMenuRadioItem.vue';
|
|
5
8
|
export { default as DropdownMenuSeparator } from './DropdownMenuSeparator.vue';
|
|
6
9
|
export { default as DropdownMenuTrigger } from './DropdownMenuTrigger.vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FunctionalComponent, type HTMLAttributes, type VNodeProps, type Component } from 'vue';
|
|
2
|
-
import { type AsTag } from '
|
|
2
|
+
import { type AsTag } from 'reka-ui';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
/**
|
|
5
5
|
* The element or component this component should render as. Can be overwrite by `asChild`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@returnless/focus-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
31
31
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
32
32
|
"@vue/test-utils": "^2.4.6",
|
|
33
|
-
"@vueuse/core": "^13.
|
|
33
|
+
"@vueuse/core": "^13.9.0",
|
|
34
34
|
"autoprefixer": "^10.4.19",
|
|
35
35
|
"clsx": "^2.1.1",
|
|
36
36
|
"collect.js": "^4.36.1",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"eslint-plugin-vue": "^9.32.0",
|
|
41
41
|
"front-matter": "^4.0.2",
|
|
42
42
|
"jest-axe": "^9.0.0",
|
|
43
|
-
"jsdom": "^26.
|
|
43
|
+
"jsdom": "^26.1.0",
|
|
44
44
|
"postcss": "^8.4.49",
|
|
45
|
-
"
|
|
45
|
+
"reka-ui": "^2.5.0",
|
|
46
46
|
"rimraf": "^6.0.1",
|
|
47
47
|
"sortablejs": "^1.15.6",
|
|
48
48
|
"tailwind-merge": "^3.2.0",
|