@komensal/ui 0.14.1 → 0.16.0
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 +28 -46
- package/dist/index.js +396 -849
- 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 +22 -6
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@komensal/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"import": "./dist/index.js"
|
|
15
15
|
},
|
|
16
|
+
"./maps": {
|
|
17
|
+
"types": "./dist/maps.d.ts",
|
|
18
|
+
"import": "./dist/maps.js"
|
|
19
|
+
},
|
|
16
20
|
"./styles": "./dist/styles/index.css",
|
|
17
21
|
"./icons": {
|
|
18
22
|
"types": "./dist/icons.d.ts",
|
|
@@ -28,16 +32,19 @@
|
|
|
28
32
|
"typecheck": "tsc --noEmit",
|
|
29
33
|
"lint": "eslint .",
|
|
30
34
|
"lint-fix": "eslint . --fix",
|
|
31
|
-
"prepublishOnly": "pnpm build"
|
|
35
|
+
"prepublishOnly": "pnpm build",
|
|
36
|
+
"test": "vitest",
|
|
37
|
+
"test:run": "vitest run"
|
|
32
38
|
},
|
|
33
39
|
"peerDependencies": {
|
|
40
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
41
|
+
"i18next": "^25.0.0 || ^26.0.0",
|
|
34
42
|
"react": "^19.0.0",
|
|
35
43
|
"react-dom": "^19.0.0",
|
|
36
44
|
"react-hook-form": "^7.71.0",
|
|
37
45
|
"react-i18next": "^16.5.0"
|
|
38
46
|
},
|
|
39
47
|
"dependencies": {
|
|
40
|
-
"@phosphor-icons/react": "^2.1.10",
|
|
41
48
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
42
49
|
"@radix-ui/react-label": "^2.1.8",
|
|
43
50
|
"@radix-ui/react-popover": "^1.1.15",
|
|
@@ -48,12 +55,16 @@
|
|
|
48
55
|
"class-variance-authority": "^0.7.1",
|
|
49
56
|
"clsx": "^2.1.1",
|
|
50
57
|
"cmdk": "^1.1.1",
|
|
51
|
-
"i18next": "^26.3.1",
|
|
52
58
|
"input-otp": "^1.4.2",
|
|
53
|
-
"tailwind-merge": "^3.5.0"
|
|
59
|
+
"tailwind-merge": "^3.5.0",
|
|
60
|
+
"tw-animate-css": "^1.4.0"
|
|
54
61
|
},
|
|
55
62
|
"devDependencies": {
|
|
56
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",
|
|
57
68
|
"@types/google.maps": "^3.64.0",
|
|
58
69
|
"@types/react": "^19.2.14",
|
|
59
70
|
"@types/react-dom": "^19.2.3",
|
|
@@ -64,13 +75,18 @@
|
|
|
64
75
|
"eslint-plugin-react": "^7.37.5",
|
|
65
76
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
66
77
|
"globals": "^17.7.0",
|
|
78
|
+
"i18next": "^26.3.1",
|
|
79
|
+
"jsdom": "^28.1.0",
|
|
67
80
|
"prettier": "^3.9.5",
|
|
68
81
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
82
|
+
"react": "^19.2.0",
|
|
83
|
+
"react-dom": "^19.2.0",
|
|
69
84
|
"react-hook-form": "^7.71.1",
|
|
70
85
|
"react-i18next": "^16.5.4",
|
|
71
86
|
"tsup": "^8.5.0",
|
|
72
87
|
"typescript": "~5.9.3",
|
|
73
|
-
"typescript-eslint": "^8.64.0"
|
|
88
|
+
"typescript-eslint": "^8.64.0",
|
|
89
|
+
"vitest": "^4.1.11"
|
|
74
90
|
},
|
|
75
91
|
"publishConfig": {
|
|
76
92
|
"access": "public"
|