@cm-sigoo-temp/ui 0.1.2

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.
Files changed (69) hide show
  1. package/README.md +20 -0
  2. package/dist/lib/api/index.d.ts +2 -0
  3. package/dist/lib/api/permisos.d.ts +2 -0
  4. package/dist/lib/api/terminales.d.ts +2 -0
  5. package/dist/lib/auth/auth.d.ts +6 -0
  6. package/dist/lib/auth/index.d.ts +7 -0
  7. package/dist/lib/auth/openID.d.ts +50 -0
  8. package/dist/lib/cm-sigoo-temp-ui.js +22109 -0
  9. package/dist/lib/cm-sigoo-temp-ui.js.map +1 -0
  10. package/dist/lib/components/Assets/GoogleLogo.d.ts +3 -0
  11. package/dist/lib/components/Assets/SigooLogo.d.ts +3 -0
  12. package/dist/lib/components/Assets/index.d.ts +2 -0
  13. package/dist/lib/components/Auth/AuthLayout.d.ts +3 -0
  14. package/dist/lib/components/Auth/Keycloak/Keycloak.d.ts +12 -0
  15. package/dist/lib/components/Auth/Keycloak/index.d.ts +1 -0
  16. package/dist/lib/components/Auth/OpenID/GoogleButton.d.ts +1 -0
  17. package/dist/lib/components/Auth/OpenID/Login.d.ts +10 -0
  18. package/dist/lib/components/Auth/OpenID/OpenID.d.ts +14 -0
  19. package/dist/lib/components/Auth/OpenID/index.d.ts +3 -0
  20. package/dist/lib/components/Auth/estado.d.ts +16 -0
  21. package/dist/lib/components/Auth/index.d.ts +2 -0
  22. package/dist/lib/components/Decorators/StorySibling.d.ts +23 -0
  23. package/dist/lib/components/Decorators/index.d.ts +1 -0
  24. package/dist/lib/components/Drawer/Drawer.d.ts +7 -0
  25. package/dist/lib/components/Drawer/DrawerMargin.d.ts +1 -0
  26. package/dist/lib/components/Drawer/MenuItem.d.ts +8 -0
  27. package/dist/lib/components/Drawer/SubMenuItem.d.ts +6 -0
  28. package/dist/lib/components/Drawer/index.d.ts +4 -0
  29. package/dist/lib/components/Layout/Layout.d.ts +5 -0
  30. package/dist/lib/components/Layout/index.d.ts +1 -0
  31. package/dist/lib/components/Toolbar/DatosSesion/Avatar.d.ts +7 -0
  32. package/dist/lib/components/Toolbar/DatosSesion/DatosSesion.d.ts +7 -0
  33. package/dist/lib/components/Toolbar/DatosSesion/SelectorTerminal.d.ts +1 -0
  34. package/dist/lib/components/Toolbar/DatosSesion/index.d.ts +3 -0
  35. package/dist/lib/components/Toolbar/Toolbar.d.ts +9 -0
  36. package/dist/lib/components/Toolbar/index.d.ts +2 -0
  37. package/dist/lib/components/index.d.ts +4 -0
  38. package/dist/lib/constantes/colores.d.ts +20 -0
  39. package/dist/lib/constantes/drawer.d.ts +1 -0
  40. package/dist/lib/constantes/index.d.ts +3 -0
  41. package/dist/lib/constantes/tema/components.d.ts +2 -0
  42. package/dist/lib/constantes/tema/index.d.ts +1 -0
  43. package/dist/lib/constantes/tema/palette.d.ts +76 -0
  44. package/dist/lib/constantes/tema/tema.d.ts +1 -0
  45. package/dist/lib/estado/drawer.d.ts +8 -0
  46. package/dist/lib/estado/index.d.ts +2 -0
  47. package/dist/lib/estado/toolbar.d.ts +20 -0
  48. package/dist/lib/importmap.json +7 -0
  49. package/dist/lib/lib.d.ts +7 -0
  50. package/dist/lib/main.d.ts +1 -0
  51. package/dist/lib/stories/Drawer.d.ts +3 -0
  52. package/dist/lib/stories/Drawer.stories.d.ts +13 -0
  53. package/dist/lib/stories/DrawerMargin.stories.d.ts +12 -0
  54. package/dist/lib/stories/Toolbar.stories.d.ts +12 -0
  55. package/dist/lib/tipos/Api/Permisos.d.ts +39 -0
  56. package/dist/lib/tipos/Api/Terminales.d.ts +11 -0
  57. package/dist/lib/tipos/Api/Usuarios.d.ts +38 -0
  58. package/dist/lib/tipos/Api/index.d.ts +2 -0
  59. package/dist/lib/tipos/Auth/Keycloak.d.ts +25 -0
  60. package/dist/lib/tipos/Auth/OpenID.d.ts +58 -0
  61. package/dist/lib/tipos/Auth/index.d.ts +2 -0
  62. package/dist/lib/tipos/Drawer.d.ts +26 -0
  63. package/dist/lib/tipos/Layout.d.ts +8 -0
  64. package/dist/lib/tipos/Toolbar.d.ts +20 -0
  65. package/dist/lib/tipos/index.d.ts +5 -0
  66. package/dist/lib/utils/URL.d.ts +1 -0
  67. package/dist/lib/utils/cookies.d.ts +13 -0
  68. package/dist/lib/utils/index.d.ts +2 -0
  69. package/package.json +92 -0
@@ -0,0 +1,8 @@
1
+ import { TMenuDrawer } from './Drawer';
2
+ export type TAutenticacionLayout = 'keycloak' | 'open-id' | 'legacy';
3
+ export type TMenuLayout = TMenuDrawer & {
4
+ permisos?: {
5
+ menu: string;
6
+ subMenu?: string;
7
+ };
8
+ };
@@ -0,0 +1,20 @@
1
+ import { MenuItemProps, SvgIconTypeMap } from '@mui/material';
2
+ import { OverridableComponent } from '@mui/material/OverridableComponent';
3
+ export type TTerminalToolbar = {
4
+ codigo: number;
5
+ nombre?: string;
6
+ abreviado?: string;
7
+ };
8
+ export type TUsuarioToolbar = {
9
+ nombre: string;
10
+ avatar?: string;
11
+ };
12
+ export type TAccionToolbar = {
13
+ nombre: string;
14
+ icono?: string | (OverridableComponent<SvgIconTypeMap<object, 'svg'>> & {
15
+ muiName: string;
16
+ });
17
+ slotProps?: {
18
+ MenuItem: MenuItemProps;
19
+ };
20
+ };
@@ -0,0 +1,5 @@
1
+ export * from './Api';
2
+ export * from './Auth';
3
+ export * from './Drawer';
4
+ export * from './Layout';
5
+ export * from './Toolbar';
@@ -0,0 +1 @@
1
+ export declare const obtenerHash: <HashKey extends string>(url: string | URL) => Record<HashKey, string | null>;
@@ -0,0 +1,13 @@
1
+ export declare const obtenerCookie: (name: string) => string | null;
2
+ type CookieOptions = {
3
+ domain?: string;
4
+ expires?: Date;
5
+ maxAge?: number;
6
+ partitioned?: boolean;
7
+ path?: string;
8
+ sameSite?: 'strict' | 'lax' | 'none';
9
+ secure?: boolean;
10
+ };
11
+ export declare const setCookie: (name: string, value: string, options: CookieOptions) => void;
12
+ export declare const removeCookie: (name: string) => string;
13
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './cookies';
2
+ export * from './URL';
package/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@cm-sigoo-temp/ui",
3
+ "version": "0.1.2",
4
+ "type": "module",
5
+ "main": "dist/lib/cm-sigoo-temp-ui.js",
6
+ "types": "dist/lib/lib.d.ts",
7
+ "files": ["dist/lib/*"],
8
+ "scripts": {
9
+ "dev": "vite",
10
+ "build": "npm run build:app && npm run build:lib && npm run build:storybook && npm run afterbuild",
11
+ "build:lib": "tsc -b && vite build -c vite.lib.config.ts",
12
+ "build:app": "tsc -b && vite build -c vite.app.config.ts",
13
+ "build:storybook": "storybook build -o dist/storybook",
14
+ "afterbuild": "node --experimental-strip-types afterbuild.ts",
15
+ "lint": "eslint .",
16
+ "preview": "vite preview -c vite.app.config.ts",
17
+ "prepare": "husky",
18
+ "storybook": "storybook dev -p 6006"
19
+ },
20
+ "dependencies": {
21
+ "@emotion/react": "^11.14.0",
22
+ "@emotion/styled": "^11.14.0",
23
+ "@fontsource/roboto": "^5.2.5",
24
+ "@mui/icons-material": "^7.0.1",
25
+ "@mui/material": "^7.0.1",
26
+ "@mui/x-date-pickers": "^7.28.3",
27
+ "jose": "^6.0.10",
28
+ "keycloak-js": "26.1.5",
29
+ "react": "^19.0.0",
30
+ "react-dom": "^19.0.0",
31
+ "react-router": "^7.5.0",
32
+ "zustand": "^5.0.3"
33
+ },
34
+ "devDependencies": {
35
+ "@chromatic-com/storybook": "^3.2.6",
36
+ "@commitlint/cli": "^19.8.0",
37
+ "@commitlint/config-conventional": "^19.8.0",
38
+ "@eslint/js": "^9.21.0",
39
+ "@storybook/addon-essentials": "^8.6.12",
40
+ "@storybook/addon-onboarding": "^8.6.12",
41
+ "@storybook/blocks": "^8.6.12",
42
+ "@storybook/experimental-addon-test": "^8.6.12",
43
+ "@storybook/react": "^8.6.12",
44
+ "@storybook/react-vite": "^8.6.12",
45
+ "@storybook/test": "^8.6.12",
46
+ "@types/node": "^22.14.0",
47
+ "@types/react": "^19.0.10",
48
+ "@types/react-dom": "^19.0.4",
49
+ "@vitejs/plugin-react": "^4.3.4",
50
+ "@vitest/browser": "^3.1.1",
51
+ "@vitest/coverage-v8": "^3.1.1",
52
+ "dotenv": "^16.5.0",
53
+ "eslint": "^9.21.0",
54
+ "eslint-config-prettier": "^10.1.2",
55
+ "eslint-plugin-prettier": "^5.2.6",
56
+ "eslint-plugin-react-hooks": "^5.2.0",
57
+ "eslint-plugin-react-refresh": "^0.4.20",
58
+ "eslint-plugin-storybook": "^0.12.0",
59
+ "globals": "^15.15.0",
60
+ "husky": "^9.1.7",
61
+ "playwright": "^1.51.1",
62
+ "prettier": "^3.5.3",
63
+ "storybook": "^8.6.12",
64
+ "typescript": "~5.7.2",
65
+ "typescript-eslint": "^8.24.1",
66
+ "vite": "^6.2.0",
67
+ "vite-plugin-dts": "^4.5.3",
68
+ "vitest": "^3.1.1"
69
+ },
70
+ "prettier": {
71
+ "singleQuote": true,
72
+ "proseWrap": "always",
73
+ "htmlWhitespaceSensitivity": "strict"
74
+ },
75
+ "lint-staged": {
76
+ "*.{js,jsx,ts,tsx}": [
77
+ "eslint --fix",
78
+ "prettier --write"
79
+ ],
80
+ "*.{json,md,yml}": [
81
+ "prettier --write"
82
+ ]
83
+ },
84
+ "commitlint": {
85
+ "extends": [
86
+ "@commitlint/config-conventional"
87
+ ]
88
+ },
89
+ "engines": {
90
+ "node": "^22.9.0"
91
+ }
92
+ }