@returnless/focus-ui 0.0.59 → 0.0.60

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,30 @@
1
+ type __VLS_Props = {
2
+ /** The label for the input field. */
3
+ label?: string | null;
4
+ /** The id of the input field. */
5
+ labelFor?: string | null;
6
+ /** The error message for the input field. */
7
+ error?: string | null;
8
+ /** The helper text for the input field. */
9
+ helpText?: string | null;
10
+ };
11
+ declare function __VLS_template(): {
12
+ attrs: Partial<{}>;
13
+ slots: Readonly<Record<string, any>> & Record<string, any>;
14
+ refs: {};
15
+ rootEl: HTMLDivElement;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ error: string | null;
20
+ label: string | null;
21
+ labelFor: string | null;
22
+ helpText: string | null;
23
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1 @@
1
+ export { default as ActionField } from './ActionField.vue';
@@ -21,8 +21,8 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
21
21
  "onUpdate:modelValue"?: ((value: boolean | (string | number | boolean)[]) => any) | undefined;
22
22
  }>, {
23
23
  id: string | null;
24
- labelHidden: boolean;
25
24
  helpText: string | null;
25
+ labelHidden: boolean;
26
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
27
27
  $checkboxElement: HTMLInputElement;
28
28
  }, HTMLDivElement>;
@@ -24,8 +24,8 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
24
24
  }>, {
25
25
  error: string | null;
26
26
  id: string | null;
27
- disabled: boolean;
28
- labelHidden: boolean;
29
27
  helpText: string | null;
28
+ labelHidden: boolean;
29
+ disabled: boolean;
30
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
31
31
  export default _default;
@@ -35,10 +35,10 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
35
35
  }>, {
36
36
  error: string | null;
37
37
  id: string | null;
38
+ helpText: string | null;
39
+ labelHidden: boolean;
38
40
  required: boolean;
39
41
  disabled: boolean;
40
- labelHidden: boolean;
41
- helpText: string | null;
42
42
  multiple: boolean;
43
43
  accept: FileAccepts | FileAccepts[];
44
44
  filesizeLimit: number;
@@ -1,4 +1,6 @@
1
+ import { HTMLAttributes } from 'vue';
1
2
  type __VLS_Props = {
3
+ class?: HTMLAttributes['class'];
2
4
  /** The label text. */
3
5
  label: string;
4
6
  /** The ID of the input the label is associated with. */
@@ -7,6 +9,7 @@ type __VLS_Props = {
7
9
  labelHidden?: boolean;
8
10
  };
9
11
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ class: HTMLAttributes["class"];
10
13
  labelHidden: boolean;
11
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
15
  export default _default;
@@ -39,11 +39,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
39
39
  }>, {
40
40
  error: string | null;
41
41
  id: string | null;
42
+ helpText: string | null;
43
+ labelHidden: boolean;
42
44
  required: boolean;
43
45
  disabled: boolean;
44
- labelHidden: boolean;
45
46
  placeholder: string | null;
46
- helpText: string | null;
47
47
  readonly: boolean;
48
48
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
49
49
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,4 +1,4 @@
1
- import { type FunctionalComponent, type HTMLAttributes, type VNodeProps, type Component } from 'vue';
1
+ import { type Component, type FunctionalComponent, type HTMLAttributes, type VNodeProps } from 'vue';
2
2
  import { type AsTag } from 'reka-ui';
3
3
  type __VLS_Props = {
4
4
  /**
@@ -50,19 +50,17 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
50
50
  error: string | null;
51
51
  type: "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
52
52
  id: string | null;
53
+ helpText: string | null;
54
+ labelHidden: boolean;
53
55
  required: boolean;
54
56
  as: AsTag | Component | null;
55
57
  disabled: boolean;
56
58
  icon: string | FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
57
- labelHidden: boolean;
58
59
  placeholder: string | null;
59
60
  autoComplete: string | null;
60
- helpText: string | null;
61
61
  multiline: boolean;
62
62
  passwordReveal: boolean;
63
63
  readonly: boolean;
64
64
  maxLength: number | null;
65
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
66
- $inputElement: unknown;
67
- }, HTMLDivElement>;
65
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
68
66
  export default _default;
@@ -0,0 +1,61 @@
1
+ import { type Component, FunctionalComponent, HTMLAttributes, VNodeProps } from 'vue';
2
+ import { type AsTag } from 'reka-ui';
3
+ type __VLS_Props = {
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;
9
+ /** The placeholder text. */
10
+ placeholder?: string | null;
11
+ /** Whether the password should be revealed. */
12
+ passwordReveal?: boolean;
13
+ /** The name of the input. */
14
+ name: string;
15
+ /** Enable automatic completion by the browser. Set to "off" when you do not want the browser to fill in info */
16
+ autoComplete?: string | null;
17
+ /** Whether the input is a textarea. */
18
+ multiline?: boolean;
19
+ /** The type of the input. */
20
+ type?: 'text' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'url' | 'date' | 'datetime-local' | 'month' | 'time' | 'week' | 'currency';
21
+ /** The ID of the input the label is associated with. */
22
+ id?: string | null;
23
+ /** The error to display below the input. */
24
+ error?: string | null;
25
+ /** Whether the input is disabled. */
26
+ disabled?: boolean;
27
+ /** Whether the input is read-only. */
28
+ readonly?: boolean;
29
+ /** Whether the input is required. */
30
+ required?: boolean;
31
+ /** The maximum number of characters allowed in the input. */
32
+ maxLength?: number | null;
33
+ /** The icon to display inside the input. */
34
+ icon?: FunctionalComponent<HTMLAttributes & VNodeProps> | string | undefined;
35
+ };
36
+ type __VLS_PublicProps = {
37
+ modelValue?: string;
38
+ } & __VLS_Props;
39
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ "update:modelValue": (value: string) => any;
41
+ "character-count": (count: number) => any;
42
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
43
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
44
+ "onCharacter-count"?: ((count: number) => any) | undefined;
45
+ }>, {
46
+ error: string | null;
47
+ type: "text" | "email" | "number" | "password" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "time" | "week" | "currency";
48
+ id: string | null;
49
+ required: boolean;
50
+ as: AsTag | Component | null;
51
+ disabled: boolean;
52
+ icon: string | FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
53
+ placeholder: string | null;
54
+ autoComplete: string | null;
55
+ passwordReveal: boolean;
56
+ readonly: boolean;
57
+ maxLength: number | null;
58
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
59
+ $inputElement: unknown;
60
+ }, HTMLDivElement>;
61
+ export default _default;
@@ -1 +1,2 @@
1
1
  export { default as TextField } from './TextField.vue';
2
+ export { default as TextFieldInput } from './TextFieldInput.vue';
@@ -0,0 +1,25 @@
1
+ export declare const textFieldStyles: import("tailwind-variants").TVReturnType<{
2
+ withIcon: {
3
+ true: string;
4
+ };
5
+ error: {
6
+ true: (string | string[])[];
7
+ false: string | string[];
8
+ };
9
+ }, undefined, string[], {
10
+ withIcon: {
11
+ true: string;
12
+ };
13
+ error: {
14
+ true: (string | string[])[];
15
+ false: string | string[];
16
+ };
17
+ }, undefined, import("tailwind-variants").TVReturnType<{
18
+ withIcon: {
19
+ true: string;
20
+ };
21
+ error: {
22
+ true: (string | string[])[];
23
+ false: string | string[];
24
+ };
25
+ }, undefined, string[], unknown, unknown, undefined>>;
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
17
17
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
18
18
  }>, {
19
19
  id: string | null;
20
- disabled: boolean;
21
20
  helpText: string | null;
21
+ disabled: boolean;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
23
23
  export default _default;
@@ -1,4 +1,5 @@
1
1
  export * from './Accordion';
2
+ export * from './ActionField';
2
3
  export * from './ActionList';
3
4
  export * from './Alert';
4
5
  export * from './AlertDialog';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@returnless/focus-ui",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {