@open-xamu-co/ui-common-types 4.0.0-next.12 → 4.0.0-next.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xamu-co/ui-common-types",
3
- "version": "4.0.0-next.12",
3
+ "version": "4.0.0-next.14",
4
4
  "description": "Xamu shared types",
5
5
  "author": "@xamu-co",
6
6
  "main": "src/index.ts",
package/src/form/class.ts CHANGED
@@ -12,7 +12,7 @@ import type {
12
12
  tFormAutocomplete,
13
13
  tFormIcon,
14
14
  tOptionsLoaderFn,
15
- } from "./types";
15
+ } from "./types.js";
16
16
 
17
17
  export declare abstract class tFormInputDefault<
18
18
  T extends eFormTypeBase | eFormTypeSimple | eFormTypeComplex = eFormTypeSimple,
@@ -46,6 +46,7 @@ export declare abstract class tFormInput<
46
46
  public readonly optionsFilter?: tOptionsLoaderFn;
47
47
  // public
48
48
  public multiple: boolean;
49
+ public unique: boolean;
49
50
  public min: number;
50
51
  public max: number;
51
52
  public meta?: Record<string, any>;
package/src/form/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./class";
2
- export * from "./types";
1
+ export * from "./class.js";
2
+ export * from "./types.js";
package/src/form/types.ts CHANGED
@@ -168,6 +168,10 @@ export interface iFormInput<
168
168
  * Ex: { multiple: true, min:3, max:3 } would make 3 values a requirement
169
169
  */
170
170
  multiple?: boolean;
171
+ /**
172
+ * If multiple options are accepted, whether to accept or not duplicate values.
173
+ */
174
+ unique?: boolean;
171
175
  /**
172
176
  * if muliple is set to true this optional value would be the required minimun amount of values
173
177
  */
package/src/locale.ts CHANGED
@@ -84,8 +84,14 @@ export type tLocaleInput = {
84
84
  select_placeholder: string;
85
85
  /** @example "Restablish field" */
86
86
  select_restablish_field: string;
87
- /** @example "Type or Double click for options" */
87
+ /** @example "Type for options" */
88
88
  select_filter_options: string;
89
+ /** @example "Searching..." */
90
+ select_filter_searching: string;
91
+ /** @example "Type something first | No coincidences" */
92
+ select_filter_no_content: string;
93
+ /** @example "Select {value}" */
94
+ select_filter_select_value: string;
89
95
  /** @example "{count} of {amount}" */
90
96
  file_one_of_amount: string;
91
97
  /** @example "Delete file | Delete files" */
package/src/props.ts CHANGED
@@ -2,4 +2,8 @@ export type tProp<T extends string = string> = T | Record<T, boolean>;
2
2
  export type tProps<T extends string = string> = tProp<T> | tProp<T>[];
3
3
  export type tPropsModifier<T extends string = string> = boolean | tProps<T>;
4
4
 
5
+ /**
6
+ * Country indicative code type
7
+ * @example CO+57, US+1
8
+ */
5
9
  export type tIndicative = `${string}+${number}`;