@komensal/ui 0.15.0 → 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.
@@ -25,6 +25,15 @@ declare const uiLocales: {
25
25
  spinner: {
26
26
  loading: string;
27
27
  };
28
+ breadcrumb: {
29
+ label: string;
30
+ };
31
+ timeColumns: {
32
+ am: string;
33
+ pm: string;
34
+ hours: string;
35
+ minutes: string;
36
+ };
28
37
  };
29
38
  };
30
39
  };
@@ -1,30 +1,6 @@
1
- // src/locales/es/ui.json
2
- var ui_default = {
3
- inputField: {
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/es/ui.json","../../src/locales/index.ts"],"sourcesContent":["{\n \"inputField\": {\n \"showPassword\": \"Mostrar contraseña\",\n \"hidePassword\": \"Ocultar contraseña\",\n \"clear\": \"Limpiar\"\n },\n \"dialog\": {\n \"close\": \"Cerrar\"\n },\n \"selectInput\": {\n \"placeholder\": \"Selecciona...\",\n \"loading\": \"Cargando...\",\n \"search\": \"Buscar...\",\n \"noResults\": \"Sin resultados.\",\n \"clear\": \"Limpiar selección\"\n },\n \"passwordChecklist\": {\n \"minLength\": \"Mínimo {{min}} caracteres\",\n \"hasUpperAndLower\": \"Una mayúscula y minúscula\",\n \"hasNumber\": \"Un número\",\n \"hasSpecialChar\": \"Un carácter especial\"\n },\n \"spinner\": {\n \"loading\": \"Cargando...\"\n }\n}\n","import uiEs from './es/ui.json'\n\nexport const uiLocales = {\n es: {\n ui: uiEs\n }\n}\n"],"mappings":";AAAA;AAAA,EACE,YAAc;AAAA,IACZ,cAAgB;AAAA,IAChB,cAAgB;AAAA,IAChB,OAAS;AAAA,EACX;AAAA,EACA,QAAU;AAAA,IACR,OAAS;AAAA,EACX;AAAA,EACA,aAAe;AAAA,IACb,aAAe;AAAA,IACf,SAAW;AAAA,IACX,QAAU;AAAA,IACV,WAAa;AAAA,IACb,OAAS;AAAA,EACX;AAAA,EACA,mBAAqB;AAAA,IACnB,WAAa;AAAA,IACb,kBAAoB;AAAA,IACpB,WAAa;AAAA,IACb,gBAAkB;AAAA,EACpB;AAAA,EACA,SAAW;AAAA,IACT,SAAW;AAAA,EACb;AACF;;;ACvBO,IAAM,YAAY;AAAA,EACvB,IAAI;AAAA,IACF,IAAI;AAAA,EACN;AACF;","names":[]}
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
@@ -0,0 +1,9 @@
1
+ import {
2
+ GoogleMapPicker,
3
+ MapPickerField
4
+ } from "./chunk-5VBG6IKL.js";
5
+ export {
6
+ GoogleMapPicker,
7
+ MapPickerField
8
+ };
9
+ //# sourceMappingURL=maps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,3 +1,4 @@
1
+ @import 'tw-animate-css';
1
2
  @import './theme.css';
2
3
 
3
4
  @source '../';
@@ -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.15.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
- "./styles": "./dist/styles/index.css",
17
- "./icons": {
18
- "types": "./dist/icons.d.ts",
19
- "import": "./dist/icons.js"
20
- },
21
- "./locales": {
22
- "types": "./dist/locales/index.d.ts",
23
- "import": "./dist/locales/index.js"
24
- }
25
- },
26
- "scripts": {
27
- "build": "tsup && node scripts/copy-assets.mjs",
28
- "typecheck": "tsc --noEmit",
29
- "lint": "eslint .",
30
- "lint-fix": "eslint . --fix",
31
- "prepublishOnly": "pnpm build"
32
- },
33
- "peerDependencies": {
34
- "react": "^19.0.0",
35
- "react-dom": "^19.0.0",
36
- "react-hook-form": "^7.71.0",
37
- "react-i18next": "^16.5.0"
38
- },
39
- "dependencies": {
40
- "@phosphor-icons/react": "^2.1.10",
41
- "@radix-ui/react-dialog": "^1.1.15",
42
- "@radix-ui/react-label": "^2.1.8",
43
- "@radix-ui/react-popover": "^1.1.15",
44
- "@radix-ui/react-slot": "^1.2.4",
45
- "@radix-ui/react-switch": "^1.3.3",
46
- "@radix-ui/react-tooltip": "^1.2.8",
47
- "@vis.gl/react-google-maps": "^1.8.3",
48
- "class-variance-authority": "^0.7.1",
49
- "clsx": "^2.1.1",
50
- "cmdk": "^1.1.1",
51
- "i18next": "^26.3.1",
52
- "input-otp": "^1.4.2",
53
- "tailwind-merge": "^3.5.0"
54
- },
55
- "devDependencies": {
56
- "@eslint/js": "^9.39.5",
57
- "@types/google.maps": "^3.64.0",
58
- "@types/react": "^19.2.14",
59
- "@types/react-dom": "^19.2.3",
60
- "eslint": "^9.39.5",
61
- "eslint-config-prettier": "^9.1.2",
62
- "eslint-plugin-perfectionist": "^5.10.0",
63
- "eslint-plugin-prettier": "^5.5.6",
64
- "eslint-plugin-react": "^7.37.5",
65
- "eslint-plugin-react-hooks": "^7.1.1",
66
- "globals": "^17.7.0",
67
- "prettier": "^3.9.5",
68
- "prettier-plugin-tailwindcss": "^0.8.1",
69
- "react-hook-form": "^7.71.1",
70
- "react-i18next": "^16.5.4",
71
- "tsup": "^8.5.0",
72
- "typescript": "~5.9.3",
73
- "typescript-eslint": "^8.64.0"
74
- },
75
- "publishConfig": {
76
- "access": "public"
77
- },
78
- "files": [
79
- "dist"
80
- ]
81
- }
1
+ {
2
+ "name": "@komensal/ui",
3
+ "version": "0.16.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
+ "./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
+ }