@open-xamu-co/ui-common-types 3.0.0-next.1 → 3.0.0-next.3

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.1",
3
+ "version": "3.0.0-next.3",
4
4
  "description": "Xamu shared types",
5
5
  "author": "@xamu-co",
6
6
  "main": "src/index.ts",
@@ -31,10 +31,8 @@
31
31
  "build:legacy": "rimraf dist && tsc --outDir dist --declaration --emitDeclarationOnly"
32
32
  },
33
33
  "dependencies": {
34
- "@open-xamu-co/ui-common-enums": "^2.0.0"
35
- },
36
- "devDependencies": {
37
34
  "@fortawesome/fontawesome-common-types": "^6.4.0",
35
+ "@open-xamu-co/ui-common-enums": "^2.0.1-next.1",
38
36
  "sweetalert2": "^11.7.5"
39
37
  },
40
38
  "engines": {
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/swal.ts CHANGED
@@ -1,7 +1,4 @@
1
- import DefaultSwal, {
2
- type SweetAlertOptions,
3
- type SweetAlertResult,
4
- } from "sweetalert2/dist/sweetalert2.js";
1
+ import DefaultSwal, { type SweetAlertOptions, type SweetAlertResult } from "sweetalert2";
5
2
 
6
3
  /**
7
4
  * Extended SweetAlert2 class