@returnless/focus-ui 0.0.42 → 0.0.44

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.
@@ -10,15 +10,15 @@ type __VLS_Props = {
10
10
  /** Whether the label is hidden. */
11
11
  labelHidden?: boolean;
12
12
  /** The value of the checkbox. */
13
- value: string | number;
13
+ value: string | number | boolean;
14
14
  };
15
15
  type __VLS_PublicProps = {
16
- modelValue?: boolean | Array<string | number>;
16
+ modelValue?: boolean | Array<string | number | boolean>;
17
17
  } & __VLS_Props;
18
18
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- "update:modelValue": (value: boolean | (string | number)[]) => any;
19
+ "update:modelValue": (value: boolean | (string | number | boolean)[]) => any;
20
20
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
- "onUpdate:modelValue"?: ((value: boolean | (string | number)[]) => any) | undefined;
21
+ "onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
22
22
  }>, {
23
23
  id: string | null;
24
24
  labelHidden: boolean;
@@ -0,0 +1,46 @@
1
+ type FileAccepts = 'image' | 'video' | 'document';
2
+ type __VLS_Props = {
3
+ /** Whether the input is disabled. */
4
+ disabled?: boolean;
5
+ /** The error to display below the input. */
6
+ error?: string | null;
7
+ /** The help text to display below the input. */
8
+ helpText?: string | null;
9
+ /** The ID of the input the label is associated with. */
10
+ id?: string | null;
11
+ /** The label text. */
12
+ label: string;
13
+ /** Whether the label is hidden. */
14
+ labelHidden?: boolean;
15
+ /** The accept attribute for file inputs. */
16
+ accept?: FileAccepts | FileAccepts[];
17
+ /** The name of the input. */
18
+ name: string;
19
+ /** Whether the input accepts multiple files. */
20
+ multiple?: boolean;
21
+ /** Whether the input is required. */
22
+ required?: boolean;
23
+ /** The maximum file size in megabytes. */
24
+ filesizeLimit?: number;
25
+ };
26
+ type __VLS_PublicProps = {
27
+ modelValue: File | File[] | null;
28
+ } & __VLS_Props;
29
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ "update:modelValue": (value: File | File[] | null) => any;
31
+ filesizeExceeded: () => any;
32
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
33
+ "onUpdate:modelValue"?: ((value: File | File[] | null) => any) | undefined;
34
+ onFilesizeExceeded?: (() => any) | undefined;
35
+ }>, {
36
+ error: string | null;
37
+ id: string | null;
38
+ required: boolean;
39
+ disabled: boolean;
40
+ labelHidden: boolean;
41
+ helpText: string | null;
42
+ multiple: boolean;
43
+ accept: FileAccepts | FileAccepts[];
44
+ filesizeLimit: number;
45
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
46
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as FileField } from './FileField.vue';
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLParagraphElement;
8
+ };
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, {}, HTMLParagraphElement>;
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 @@
1
+ export { default as HelpText } from './HelpText.vue';
@@ -35,7 +35,7 @@ type __VLS_Props = {
35
35
  /** Whether the input is required. */
36
36
  required?: boolean;
37
37
  /** The type of the input. */
38
- type?: 'text' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'datetime-local' | 'month' | 'time' | 'week' | 'currency' | 'file';
38
+ type?: 'text' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'datetime-local' | 'month' | 'time' | 'week' | 'currency';
39
39
  /** The maximum number of characters allowed in the input. */
40
40
  maxLength?: number | null;
41
41
  };
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
48
48
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
49
49
  }>, {
50
50
  error: string | null;
51
- type: "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency" | "file";
51
+ type: "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
52
52
  id: string | null;
53
53
  required: boolean;
54
54
  as: AsTag | Component | null;
@@ -26,10 +26,12 @@ export * from './DropZone';
26
26
  export * from './EmptyState';
27
27
  export * from './FeatureList';
28
28
  export * from './Feed';
29
+ export * from './FileField';
29
30
  export * from './FileUploadButton';
30
31
  export * from './Form';
31
32
  export * from './FormLayout';
32
33
  export * from './Heading';
34
+ export * from './HelpText';
33
35
  export * from './Image';
34
36
  export * from './InertiaLink';
35
37
  export * from './InlineError';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@returnless/focus-ui",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,16 +21,16 @@
21
21
  "@heroicons/vue": "^2.2.0",
22
22
  "@inertiajs/vue3": "^1.1.0",
23
23
  "@internationalized/date": "^3.5.5",
24
- "@stylistic/eslint-plugin": "^2.11.0",
24
+ "@stylistic/eslint-plugin": "^2.12.1",
25
25
  "@tailwindcss/typography": "^0.5.13",
26
26
  "@testing-library/jest-dom": "^6.6.3",
27
27
  "@testing-library/vue": "^8.1.0",
28
28
  "@types/jest-axe": "^3.5.9",
29
- "@types/node": "^22.9.0",
29
+ "@types/node": "^22.10.2",
30
30
  "@types/sortablejs": "^1.15.8",
31
31
  "@typescript-eslint/eslint-plugin": "^7.11.0",
32
- "@vitejs/plugin-vue": "^5.2.0",
33
- "@vitest/coverage-istanbul": "^2.1.4",
32
+ "@vitejs/plugin-vue": "^5.2.1",
33
+ "@vitest/coverage-istanbul": "^2.1.8",
34
34
  "@vue/test-utils": "^2.4.6",
35
35
  "@vueuse/core": "^11.2.0",
36
36
  "autoprefixer": "^10.4.19",
@@ -38,16 +38,16 @@
38
38
  "dayjs": "^1.11.11",
39
39
  "eslint": "^8.57.0",
40
40
  "eslint-plugin-tailwindcss": "^3.17.5",
41
- "eslint-plugin-vue": "^9.31.0",
41
+ "eslint-plugin-vue": "^9.32.0",
42
42
  "front-matter": "^4.0.2",
43
43
  "jest-axe": "^9.0.0",
44
44
  "jsdom": "^25.0.0",
45
45
  "postcss": "^8.4.49",
46
- "radix-vue": "^1.9.10",
46
+ "radix-vue": "^1.9.11",
47
47
  "rimraf": "^6.0.1",
48
- "sortablejs": "^1.15.2",
49
- "tailwindcss": "^3.4.14",
50
- "typescript": "^5.6.3",
48
+ "sortablejs": "^1.15.6",
49
+ "tailwindcss": "^3.4.17",
50
+ "typescript": "^5.7.2",
51
51
  "vite": "^5.4.11",
52
52
  "vitepress": "^1.5.0",
53
53
  "vitest": "^2.0.5",