@komensal/ui 0.15.0 → 0.16.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.
- package/dist/chunk-5VBG6IKL.js +649 -0
- package/dist/chunk-5VBG6IKL.js.map +1 -0
- package/dist/chunk-FDVY36KS.js +41 -0
- package/dist/chunk-FDVY36KS.js.map +1 -0
- package/dist/index.d.ts +27 -45
- package/dist/index.js +405 -854
- package/dist/index.js.map +1 -1
- package/dist/locales/index.d.ts +9 -0
- package/dist/locales/index.js +3 -27
- package/dist/locales/index.js.map +1 -1
- package/dist/maps.d.ts +46 -0
- package/dist/maps.js +9 -0
- package/dist/maps.js.map +1 -0
- package/dist/styles/index.css +1 -0
- package/dist/styles/theme.css +16 -0
- package/package.json +97 -81
package/dist/locales/index.d.ts
CHANGED
package/dist/locales/index.js
CHANGED
|
@@ -1,30 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
showPassword: "Mostrar contrase\xF1a",
|
|
5
|
-
hidePassword: "Ocultar contrase\xF1a",
|
|
6
|
-
clear: "Limpiar"
|
|
7
|
-
},
|
|
8
|
-
dialog: {
|
|
9
|
-
close: "Cerrar"
|
|
10
|
-
},
|
|
11
|
-
selectInput: {
|
|
12
|
-
placeholder: "Selecciona...",
|
|
13
|
-
loading: "Cargando...",
|
|
14
|
-
search: "Buscar...",
|
|
15
|
-
noResults: "Sin resultados.",
|
|
16
|
-
clear: "Limpiar selecci\xF3n"
|
|
17
|
-
},
|
|
18
|
-
passwordChecklist: {
|
|
19
|
-
minLength: "M\xEDnimo {{min}} caracteres",
|
|
20
|
-
hasUpperAndLower: "Una may\xFAscula y min\xFAscula",
|
|
21
|
-
hasNumber: "Un n\xFAmero",
|
|
22
|
-
hasSpecialChar: "Un car\xE1cter especial"
|
|
23
|
-
},
|
|
24
|
-
spinner: {
|
|
25
|
-
loading: "Cargando..."
|
|
26
|
-
}
|
|
27
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
ui_default
|
|
3
|
+
} from "../chunk-FDVY36KS.js";
|
|
28
4
|
|
|
29
5
|
// src/locales/index.ts
|
|
30
6
|
var uiLocales = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/locales/
|
|
1
|
+
{"version":3,"sources":["../../src/locales/index.ts"],"sourcesContent":["import uiEs from './es/ui.json'\n\nexport const uiLocales = {\n es: {\n ui: uiEs\n }\n}\n"],"mappings":";;;;;AAEO,IAAM,YAAY;AAAA,EACvB,IAAI;AAAA,IACF,IAAI;AAAA,EACN;AACF;","names":[]}
|
package/dist/maps.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { FieldValues, Control, Path } from 'react-hook-form';
|
|
3
|
+
|
|
4
|
+
interface GoogleMapPickerProps {
|
|
5
|
+
apiKey?: string;
|
|
6
|
+
'aria-describedby'?: string;
|
|
7
|
+
'aria-invalid'?: boolean;
|
|
8
|
+
'aria-label'?: string;
|
|
9
|
+
'aria-labelledby'?: string;
|
|
10
|
+
centerOn?: google.maps.LatLngLiteral;
|
|
11
|
+
countryCode?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
hasError?: boolean;
|
|
14
|
+
id?: string;
|
|
15
|
+
initialPosition?: google.maps.LatLngLiteral;
|
|
16
|
+
locationQuery?: string;
|
|
17
|
+
locationZoom?: number;
|
|
18
|
+
mapId?: string;
|
|
19
|
+
onAddressResolved?: (resolved: ResolvedAddress) => void;
|
|
20
|
+
onChange: (address: string) => void;
|
|
21
|
+
onError?: (error: unknown) => void;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}
|
|
25
|
+
interface ResolvedAddress {
|
|
26
|
+
address: string;
|
|
27
|
+
city: null | string;
|
|
28
|
+
country: null | string;
|
|
29
|
+
countryName: null | string;
|
|
30
|
+
department: null | string;
|
|
31
|
+
lat: null | number;
|
|
32
|
+
lng: null | number;
|
|
33
|
+
}
|
|
34
|
+
declare const GoogleMapPicker: (props: GoogleMapPickerProps) => React.JSX.Element;
|
|
35
|
+
|
|
36
|
+
type MapPickerFieldProps<T extends FieldValues> = Omit<GoogleMapPickerProps, 'hasError' | 'onChange' | 'value'> & {
|
|
37
|
+
control: Control<T>;
|
|
38
|
+
label?: string;
|
|
39
|
+
labelClassName?: string;
|
|
40
|
+
mainClassName?: string;
|
|
41
|
+
name: Path<T>;
|
|
42
|
+
visualRequired?: boolean;
|
|
43
|
+
};
|
|
44
|
+
declare const MapPickerField: <T extends FieldValues>({ control, label, labelClassName, mainClassName, name, visualRequired, ...pickerProps }: MapPickerFieldProps<T>) => React.JSX.Element;
|
|
45
|
+
|
|
46
|
+
export { GoogleMapPicker, type GoogleMapPickerProps, MapPickerField, type ResolvedAddress };
|
package/dist/maps.js
ADDED
package/dist/maps.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/styles/index.css
CHANGED
package/dist/styles/theme.css
CHANGED
|
@@ -78,3 +78,19 @@
|
|
|
78
78
|
|
|
79
79
|
--font-poppins: 'Poppins', sans-serif;
|
|
80
80
|
}
|
|
81
|
+
|
|
82
|
+
@theme {
|
|
83
|
+
--animate-caret-blink: komensal-caret-blink 1.25s ease-out infinite;
|
|
84
|
+
|
|
85
|
+
@keyframes komensal-caret-blink {
|
|
86
|
+
0%,
|
|
87
|
+
70%,
|
|
88
|
+
100% {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}
|
|
91
|
+
20%,
|
|
92
|
+
50% {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
package/package.json
CHANGED
|
@@ -1,81 +1,97 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@komensal/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"module": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"sideEffects": [
|
|
9
|
-
"**/*.css"
|
|
10
|
-
],
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"types": "./dist/index.d.ts",
|
|
14
|
-
"import": "./dist/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"./
|
|
22
|
-
"types": "./dist/
|
|
23
|
-
"import": "./dist/
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
},
|
|
39
|
-
"
|
|
40
|
-
"@phosphor-icons/react": "^2.1.10",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"eslint
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"react
|
|
70
|
-
"react-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@komensal/ui",
|
|
3
|
+
"version": "0.16.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"**/*.css"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./maps": {
|
|
17
|
+
"types": "./dist/maps.d.ts",
|
|
18
|
+
"import": "./dist/maps.js"
|
|
19
|
+
},
|
|
20
|
+
"./styles": "./dist/styles/index.css",
|
|
21
|
+
"./icons": {
|
|
22
|
+
"types": "./dist/icons.d.ts",
|
|
23
|
+
"import": "./dist/icons.js"
|
|
24
|
+
},
|
|
25
|
+
"./locales": {
|
|
26
|
+
"types": "./dist/locales/index.d.ts",
|
|
27
|
+
"import": "./dist/locales/index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsup && node scripts/copy-assets.mjs",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"lint": "eslint .",
|
|
34
|
+
"lint-fix": "eslint . --fix",
|
|
35
|
+
"prepublishOnly": "pnpm build",
|
|
36
|
+
"test": "vitest",
|
|
37
|
+
"test:run": "vitest run"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
41
|
+
"i18next": "^25.0.0 || ^26.0.0",
|
|
42
|
+
"react": "^19.0.0",
|
|
43
|
+
"react-dom": "^19.0.0",
|
|
44
|
+
"react-hook-form": "^7.71.0",
|
|
45
|
+
"react-i18next": "^16.5.0"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
49
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
50
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
51
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
52
|
+
"@radix-ui/react-switch": "^1.3.3",
|
|
53
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
54
|
+
"@vis.gl/react-google-maps": "^1.8.3",
|
|
55
|
+
"class-variance-authority": "^0.7.1",
|
|
56
|
+
"clsx": "^2.1.1",
|
|
57
|
+
"cmdk": "^1.1.1",
|
|
58
|
+
"input-otp": "^1.4.2",
|
|
59
|
+
"tailwind-merge": "^3.5.0",
|
|
60
|
+
"tw-animate-css": "^1.4.0"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"@eslint/js": "^9.39.5",
|
|
64
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
65
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
66
|
+
"@testing-library/react": "^16.3.3",
|
|
67
|
+
"@testing-library/user-event": "^14.6.7",
|
|
68
|
+
"@types/google.maps": "^3.64.0",
|
|
69
|
+
"@types/react": "^19.2.14",
|
|
70
|
+
"@types/react-dom": "^19.2.3",
|
|
71
|
+
"eslint": "^9.39.5",
|
|
72
|
+
"eslint-config-prettier": "^9.1.2",
|
|
73
|
+
"eslint-plugin-perfectionist": "^5.10.0",
|
|
74
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
75
|
+
"eslint-plugin-react": "^7.37.5",
|
|
76
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
77
|
+
"globals": "^17.7.0",
|
|
78
|
+
"i18next": "^26.3.1",
|
|
79
|
+
"jsdom": "^28.1.0",
|
|
80
|
+
"prettier": "^3.9.5",
|
|
81
|
+
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
82
|
+
"react": "^19.2.0",
|
|
83
|
+
"react-dom": "^19.2.0",
|
|
84
|
+
"react-hook-form": "^7.71.1",
|
|
85
|
+
"react-i18next": "^16.5.4",
|
|
86
|
+
"tsup": "^8.5.0",
|
|
87
|
+
"typescript": "~5.9.3",
|
|
88
|
+
"typescript-eslint": "^8.64.0",
|
|
89
|
+
"vitest": "^4.1.11"
|
|
90
|
+
},
|
|
91
|
+
"publishConfig": {
|
|
92
|
+
"access": "public"
|
|
93
|
+
},
|
|
94
|
+
"files": [
|
|
95
|
+
"dist"
|
|
96
|
+
]
|
|
97
|
+
}
|