@returnless/focus-ui 0.0.37 → 0.0.38

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.
@@ -0,0 +1,28 @@
1
+ declare let __VLS_typeProps: {
2
+ label: string;
3
+ labelHidden?: boolean;
4
+ placeholder?: string | null;
5
+ };
6
+ type __VLS_PublicProps = {
7
+ modelValue?: string;
8
+ } & typeof __VLS_typeProps;
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<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:modelValue": (modelValue: string) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,20 @@
1
+ declare function __VLS_template(): {
2
+ slots: {
3
+ default?(_: {}): any;
4
+ };
5
+ refs: {};
6
+ attrs: Partial<{}>;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import("vue").DefineComponent<{
10
+ label: string;
11
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
12
+ label: string;
13
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,17 @@
1
+ import { PrimitiveProps } from 'radix-vue';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import("vue").DefineComponent<PrimitiveProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PrimitiveProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,3 @@
1
+ export { default as Autocomplete } from './Autocomplete.vue';
2
+ export { default as AutocompleteGroup } from './AutocompleteGroup.vue';
3
+ export { default as AutocompleteItem } from './AutocompleteItem.vue';
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
17
  "onUpdate:modelValue"?: ((modelValue: File[]) => any) | undefined;
18
18
  }>, {
19
- accepts: FileAccepts;
20
19
  multiple: boolean;
20
+ accepts: FileAccepts;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  export default _default;
@@ -22,8 +22,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
23
  "onUpdate:modelValue"?: ((modelValue: File[]) => any) | undefined;
24
24
  }>, {
25
- accepts: FileAccepts;
26
25
  multiple: boolean;
26
+ accepts: FileAccepts;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
29
  export default _default;
@@ -11,9 +11,13 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import("vue").DefineComponent<{
12
12
  /** Navigation component to render in the left column */
13
13
  navigation?: Component;
14
+ /** Size of the page */
15
+ size?: "default" | "compact";
14
16
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
15
17
  /** Navigation component to render in the left column */
16
18
  navigation?: Component;
19
+ /** Size of the page */
20
+ size?: "default" | "compact";
17
21
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
23
  export default _default;
@@ -11,20 +11,24 @@ declare function __VLS_template(): {
11
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: import("vue").DefineComponent<{
13
13
  /** The trigger event of the popper */
14
- trigger: "click" | "hover";
14
+ trigger?: "click" | "hover" | "manual";
15
15
  /** The placement of the popper */
16
16
  placement: Placement;
17
17
  /** The delay in milliseconds before hiding the popper */
18
18
  timeout?: number;
19
+ open?: boolean;
19
20
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
20
21
  /** The trigger event of the popper */
21
- trigger: "click" | "hover";
22
+ trigger?: "click" | "hover" | "manual";
22
23
  /** The placement of the popper */
23
24
  placement: Placement;
24
25
  /** The delay in milliseconds before hiding the popper */
25
26
  timeout?: number;
27
+ open?: boolean;
26
28
  }> & Readonly<{}>, {
29
+ trigger: "click" | "hover" | "manual";
27
30
  timeout: number;
31
+ open: boolean;
28
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
34
  export default _default;
@@ -41,8 +41,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
41
41
  required: boolean;
42
42
  disabled: boolean;
43
43
  labelHidden: boolean;
44
- helpText: string | null;
45
44
  placeholder: string | null;
45
+ helpText: string | null;
46
46
  readonly: boolean;
47
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
48
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,5 +1,11 @@
1
- import { type FunctionalComponent, type HTMLAttributes, type VNodeProps } from 'vue';
1
+ import { type FunctionalComponent, type HTMLAttributes, type VNodeProps, type Component } from 'vue';
2
+ import { type AsTag } from 'radix-vue';
2
3
  declare let __VLS_typeProps: {
4
+ /**
5
+ * The element or component this component should render as. Can be overwrite by `asChild`
6
+ * @defaultValue "div"
7
+ */
8
+ as?: AsTag | Component | null;
3
9
  /** Enable automatic completion by the browser. Set to "off" when you do not want the browser to fill in info */
4
10
  autoComplete?: string | null;
5
11
  /** Whether the input is disabled. */
@@ -43,13 +49,14 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
43
49
  type: "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
44
50
  id: string | null;
45
51
  required: boolean;
52
+ as: AsTag | Component | null;
46
53
  disabled: boolean;
47
54
  icon: string | FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
48
55
  labelHidden: boolean;
49
- helpText: string | null;
56
+ placeholder: string | null;
50
57
  autoComplete: string | null;
58
+ helpText: string | null;
51
59
  multiline: boolean;
52
- placeholder: string | null;
53
60
  readonly: boolean;
54
61
  maxLength: number | null;
55
62
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -27,8 +27,8 @@ declare const __VLS_component: import("vue").DefineComponent<{
27
27
  onClose?: (() => any) | undefined;
28
28
  }>, {
29
29
  duration: number;
30
- variant: ToastVariant;
31
30
  open: boolean;
31
+ variant: ToastVariant;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
34
  export default _default;
@@ -3,6 +3,7 @@ export { ActionList, ActionListBody, ActionListItem, ActionListSection, ActionLi
3
3
  export { Alert, AlertDescription, AlertTitle } from './Alert';
4
4
  export { AlertDialog, AlertDialogActionButton, AlertDialogCancelButton, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from './AlertDialog';
5
5
  export { AspectRatio } from './AspectRatio';
6
+ export { Autocomplete, AutocompleteGroup, AutocompleteItem } from './Autocomplete';
6
7
  export { Avatar } from './Avatar';
7
8
  export { Badge, BadgeContent, BadgeIcon } from './Badge';
8
9
  export { type BarChartCategory, BarChart } from './BarChart';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@returnless/focus-ui",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -26,13 +26,13 @@
26
26
  "@testing-library/jest-dom": "^6.5.0",
27
27
  "@testing-library/vue": "^8.1.0",
28
28
  "@types/jest-axe": "^3.5.9",
29
- "@types/node": "^20.13.0",
29
+ "@types/node": "^22.7.4",
30
30
  "@types/sortablejs": "^1.15.8",
31
31
  "@typescript-eslint/eslint-plugin": "^7.11.0",
32
32
  "@vitejs/plugin-vue": "^5.0.5",
33
- "@vitest/coverage-istanbul": "^2.0.5",
33
+ "@vitest/coverage-istanbul": "^2.1.2",
34
34
  "@vue/test-utils": "^2.4.6",
35
- "@vueuse/core": "^10.11.0",
35
+ "@vueuse/core": "^11.1.0",
36
36
  "autoprefixer": "^10.4.19",
37
37
  "collect.js": "^4.36.1",
38
38
  "dayjs": "^1.11.11",
@@ -44,7 +44,7 @@
44
44
  "jsdom": "^25.0.0",
45
45
  "postcss": "^8.4.38",
46
46
  "radix-vue": "^1.9.6",
47
- "rimraf": "^5.0.7",
47
+ "rimraf": "^6.0.1",
48
48
  "sortablejs": "^1.15.2",
49
49
  "tailwindcss": "^3.4.3",
50
50
  "typescript": "^5.4.5",