@open-xamu-co/ui-common-types 3.0.0-next.2 → 3.0.0-next.4

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": "3.0.0-next.2",
3
+ "version": "3.0.0-next.4",
4
4
  "description": "Xamu shared types",
5
5
  "author": "@xamu-co",
6
6
  "main": "src/index.ts",
package/src/fetch.ts CHANGED
@@ -1,5 +1,3 @@
1
- import type { eOrders } from "@open-xamu-co/ui-common-enums";
2
-
3
1
  export type tOrderBy = [string, ("desc" | "asc")?];
4
2
 
5
3
  export interface iPageEdge<T, C extends string | number = string> {
@@ -21,7 +19,7 @@ export interface iPage<T, C extends string | number = string> {
21
19
  totalCount: number;
22
20
  }
23
21
 
24
- export interface iPagination<O extends tOrderBy | Record<string, eOrders> = tOrderBy> {
22
+ export interface iPagination<O = tOrderBy> {
25
23
  /**
26
24
  * Identificador del elemento donde empieza la paginacion
27
25
  *
package/src/form.ts CHANGED
@@ -171,6 +171,8 @@ export interface iFormResponse<R = any, T = any> {
171
171
  errors?: any;
172
172
  /**
173
173
  * Swal target
174
+ *
175
+ * If the swal was triggered from a modal, then use it as render target
174
176
  */
175
177
  modalTarget?: T;
176
178
  }
package/src/locale.ts CHANGED
@@ -72,6 +72,8 @@ export interface iLocaleBase {
72
72
  * @localeType
73
73
  */
74
74
  export interface iLocaleInput {
75
+ /** @example "Selected" */
76
+ select_selected: string;
75
77
  /** @example "--SELECT--" */
76
78
  select_placeholder: string;
77
79
  /** @example "Restablish field" */