ingeniuscliq-core 0.4.0 → 0.4.1

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.
@@ -6,6 +6,7 @@ interface FormCheckboxProps<T extends FieldValues = FieldValues> extends BaseSty
6
6
  readonly name: Path<T>;
7
7
  readonly placeholder?: string;
8
8
  readonly checkboxProps?: React.ComponentProps<typeof CheckboxPrimitive.Root>;
9
+ readonly required?: boolean;
9
10
  }
10
- export declare function FormCheckbox<T extends FieldValues = FieldValues>({ control, name, placeholder, className, checkboxProps }: FormCheckboxProps<T>): import("react/jsx-runtime").JSX.Element;
11
+ export declare function FormCheckbox<T extends FieldValues = FieldValues>({ control, name, placeholder, className, checkboxProps, required }: FormCheckboxProps<T>): import("react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -13,6 +13,10 @@ interface FormInputProps<T extends FieldValues = FieldValues> extends BaseStyleP
13
13
  readonly placeholder?: string;
14
14
  readonly type?: keyof typeof SUPPORTED_INPUT_TYPES;
15
15
  readonly inputProps?: React.ComponentProps<"input"> & InputExtendedProps;
16
+ readonly withinLabel?: boolean;
17
+ readonly withinMessage?: boolean;
18
+ readonly withinControl?: boolean;
19
+ readonly required?: boolean;
16
20
  }
17
- export declare function FormInput<T extends FieldValues = FieldValues>({ control, name, placeholder, type, className, inputProps }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
21
+ export declare function FormInput<T extends FieldValues = FieldValues>({ control, name, placeholder, type, className, inputProps, withinControl, withinLabel, withinMessage, required }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
18
22
  export {};
@@ -9,10 +9,12 @@ interface FormSelectProps<T extends FieldValues = FieldValues> extends BaseStyle
9
9
  value: string;
10
10
  label: string;
11
11
  }>;
12
- readonly className: string;
13
- readonly selectClassName: string;
12
+ readonly className?: string;
13
+ readonly selectClassName?: string;
14
+ readonly selectItemClassName?: string;
14
15
  readonly onValueChange?: (value: string) => void;
15
16
  readonly selectProps?: React.ComponentProps<typeof Select>;
17
+ readonly required?: boolean;
16
18
  }
17
- export declare function FormSelect<T extends FieldValues = FieldValues>({ control, name, placeholder, className, options, selectClassName, onValueChange, selectProps }: FormSelectProps<T>): import("react/jsx-runtime").JSX.Element;
19
+ export declare function FormSelect<T extends FieldValues = FieldValues>({ control, name, placeholder, className, options, selectClassName, selectItemClassName, onValueChange, selectProps, required }: FormSelectProps<T>): import("react/jsx-runtime").JSX.Element;
18
20
  export {};
@@ -4,6 +4,7 @@ interface FormInputProps<T extends FieldValues = FieldValues> extends BaseStyleP
4
4
  readonly control: Control<T>;
5
5
  readonly name: Path<T>;
6
6
  readonly placeholder?: string;
7
+ readonly required?: boolean;
7
8
  }
8
- export declare function FormTextArea<T extends FieldValues = FieldValues>({ control, name, placeholder, className }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
9
+ export declare function FormTextArea<T extends FieldValues = FieldValues>({ control, name, placeholder, className, required }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -2,6 +2,7 @@ import { BaseStyleProps } from '../../../types/ui/main';
2
2
  interface LogoProps extends BaseStyleProps {
3
3
  to?: string;
4
4
  icon?: string;
5
+ fallback?: string;
5
6
  }
6
- export declare function Logo({ className, to, icon }: LogoProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function Logo({ className, to, icon, fallback }: LogoProps): import("react/jsx-runtime").JSX.Element;
7
8
  export {};
@@ -1,6 +1,7 @@
1
1
  export type SUPPORTED_LANGUAGES = 'es' | 'en';
2
- export declare function useLanguage(lang?: SUPPORTED_LANGUAGES): {
2
+ export declare function useLanguage(): {
3
3
  t: import('i18next').TFunction<"translation", undefined>;
4
+ languageOptions: string[];
4
5
  language: string;
5
6
  i18n: import('i18next').i18n;
6
7
  setLanguage: (newLang?: SUPPORTED_LANGUAGES) => void;
@@ -37,6 +37,7 @@ export declare const resources: {
37
37
  };
38
38
  };
39
39
  readonly fields: {
40
+ label: string;
40
41
  name: string;
41
42
  lastname: string;
42
43
  email: string;
@@ -53,6 +54,15 @@ export declare const resources: {
53
54
  customer_phone: string;
54
55
  customer_address: string;
55
56
  is_default: string;
57
+ message: string;
58
+ beneficiary_name: string;
59
+ beneficiary_email: string;
60
+ beneficiary_phone: string;
61
+ province: string;
62
+ municipality: string;
63
+ fieldLabel: {
64
+ optional: string;
65
+ };
56
66
  };
57
67
  readonly menu: {
58
68
  store: string;
@@ -65,6 +75,24 @@ export declare const resources: {
65
75
  noAccount: string;
66
76
  alreadyHaveAccount: string;
67
77
  };
78
+ readonly pagination: {
79
+ previous: string;
80
+ next: string;
81
+ more: string;
82
+ };
83
+ readonly button: {
84
+ send: string;
85
+ save: string;
86
+ back: string;
87
+ next: string;
88
+ pay: string;
89
+ edit: string;
90
+ delete: string;
91
+ close: string;
92
+ update: string;
93
+ cancel: string;
94
+ confirm: string;
95
+ };
68
96
  };
69
97
  };
70
98
  readonly es: {
@@ -104,6 +132,7 @@ export declare const resources: {
104
132
  };
105
133
  };
106
134
  readonly fields: {
135
+ label: string;
107
136
  name: string;
108
137
  lastname: string;
109
138
  email: string;
@@ -120,6 +149,15 @@ export declare const resources: {
120
149
  customer_phone: string;
121
150
  customer_address: string;
122
151
  is_default: string;
152
+ message: string;
153
+ beneficiary_name: string;
154
+ beneficiary_email: string;
155
+ beneficiary_phone: string;
156
+ province: string;
157
+ municipality: string;
158
+ fieldLabel: {
159
+ optional: string;
160
+ };
123
161
  };
124
162
  readonly menu: {
125
163
  store: string;
@@ -132,6 +170,24 @@ export declare const resources: {
132
170
  noAccount: string;
133
171
  alreadyHaveAccount: string;
134
172
  };
173
+ readonly pagination: {
174
+ previous: string;
175
+ next: string;
176
+ more: string;
177
+ };
178
+ readonly button: {
179
+ send: string;
180
+ save: string;
181
+ back: string;
182
+ next: string;
183
+ pay: string;
184
+ edit: string;
185
+ delete: string;
186
+ close: string;
187
+ update: string;
188
+ cancel: string;
189
+ confirm: string;
190
+ };
135
191
  };
136
192
  };
137
193
  };