@melv1c/ui-kit 1.0.1 → 1.1.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-5SGT7Y7J.js +172 -0
- package/dist/chunk-5SGT7Y7J.js.map +1 -0
- package/dist/chunk-RKE7ZPNV.cjs +180 -0
- package/dist/chunk-RKE7ZPNV.cjs.map +1 -0
- package/dist/code-editors/index.cjs +0 -43
- package/dist/code-editors/index.cjs.map +1 -1
- package/dist/code-editors/index.js +0 -43
- package/dist/code-editors/index.js.map +1 -1
- package/dist/index.cjs +426 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +63 -1
- package/dist/index.d.ts +63 -1
- package/dist/index.js +413 -2
- package/dist/index.js.map +1 -1
- package/dist/locales/index.cjs +7 -7
- package/dist/locales/index.d.cts +132 -6
- package/dist/locales/index.d.ts +132 -6
- package/dist/locales/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-4H5OSMBC.js +0 -52
- package/dist/chunk-4H5OSMBC.js.map +0 -1
- package/dist/chunk-QV4CTFLS.cjs +0 -60
- package/dist/chunk-QV4CTFLS.cjs.map +0 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { __export } from './chunk-PZ5AY32C.js';
|
|
2
|
+
|
|
3
|
+
// src/locales/index.ts
|
|
4
|
+
var locales_exports = {};
|
|
5
|
+
__export(locales_exports, {
|
|
6
|
+
de: () => de_default,
|
|
7
|
+
en: () => en_default,
|
|
8
|
+
es: () => es_default,
|
|
9
|
+
fr: () => fr_default,
|
|
10
|
+
it: () => it_default,
|
|
11
|
+
nl: () => nl_default
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// src/locales/de.json
|
|
15
|
+
var de_default = {
|
|
16
|
+
next: "Weiter",
|
|
17
|
+
previous: "Zur\xFCck",
|
|
18
|
+
loginForm: {
|
|
19
|
+
title: "Anmelden bei Ihrem Konto",
|
|
20
|
+
description: "Geben Sie Ihre Anmeldedaten ein, um auf Ihr Konto zuzugreifen",
|
|
21
|
+
email: "E-Mail",
|
|
22
|
+
emailPlaceholder: "name@beispiel.com",
|
|
23
|
+
password: "Passwort",
|
|
24
|
+
forgotPassword: "Passwort vergessen?",
|
|
25
|
+
login: "Anmelden",
|
|
26
|
+
loggingIn: "Anmeldung l\xE4uft...",
|
|
27
|
+
orContinueWith: "oder fortfahren mit",
|
|
28
|
+
noAccount: "Sie haben noch kein Konto?",
|
|
29
|
+
signUp: "Registrieren",
|
|
30
|
+
providers: {
|
|
31
|
+
google: "Mit Google fortfahren",
|
|
32
|
+
github: "Mit GitHub fortfahren",
|
|
33
|
+
apple: "Mit Apple fortfahren",
|
|
34
|
+
microsoft: "Mit Microsoft fortfahren",
|
|
35
|
+
facebook: "Mit Facebook fortfahren"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// src/locales/en.json
|
|
41
|
+
var en_default = {
|
|
42
|
+
next: "Next",
|
|
43
|
+
previous: "Previous",
|
|
44
|
+
loginForm: {
|
|
45
|
+
title: "Login to your account",
|
|
46
|
+
description: "Enter your credentials to access your account",
|
|
47
|
+
email: "Email",
|
|
48
|
+
emailPlaceholder: "name@example.com",
|
|
49
|
+
password: "Password",
|
|
50
|
+
forgotPassword: "Forgot password?",
|
|
51
|
+
login: "Login",
|
|
52
|
+
loggingIn: "Logging in...",
|
|
53
|
+
orContinueWith: "or continue with",
|
|
54
|
+
noAccount: "Don't have an account?",
|
|
55
|
+
signUp: "Sign up",
|
|
56
|
+
providers: {
|
|
57
|
+
google: "Continue with Google",
|
|
58
|
+
github: "Continue with GitHub",
|
|
59
|
+
apple: "Continue with Apple",
|
|
60
|
+
microsoft: "Continue with Microsoft",
|
|
61
|
+
facebook: "Continue with Facebook"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// src/locales/es.json
|
|
67
|
+
var es_default = {
|
|
68
|
+
next: "Siguiente",
|
|
69
|
+
previous: "Anterior",
|
|
70
|
+
loginForm: {
|
|
71
|
+
title: "Iniciar sesi\xF3n en su cuenta",
|
|
72
|
+
description: "Introduzca sus credenciales para acceder a su cuenta",
|
|
73
|
+
email: "Correo electr\xF3nico",
|
|
74
|
+
emailPlaceholder: "nombre@ejemplo.com",
|
|
75
|
+
password: "Contrase\xF1a",
|
|
76
|
+
forgotPassword: "\xBFOlvid\xF3 su contrase\xF1a?",
|
|
77
|
+
login: "Iniciar sesi\xF3n",
|
|
78
|
+
loggingIn: "Iniciando sesi\xF3n...",
|
|
79
|
+
orContinueWith: "o continuar con",
|
|
80
|
+
noAccount: "\xBFNo tiene una cuenta?",
|
|
81
|
+
signUp: "Registrarse",
|
|
82
|
+
providers: {
|
|
83
|
+
google: "Continuar con Google",
|
|
84
|
+
github: "Continuar con GitHub",
|
|
85
|
+
apple: "Continuar con Apple",
|
|
86
|
+
microsoft: "Continuar con Microsoft",
|
|
87
|
+
facebook: "Continuar con Facebook"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// src/locales/fr.json
|
|
93
|
+
var fr_default = {
|
|
94
|
+
next: "Suivant",
|
|
95
|
+
previous: "Pr\xE9c\xE9dent",
|
|
96
|
+
loginForm: {
|
|
97
|
+
title: "Connexion \xE0 votre compte",
|
|
98
|
+
description: "Entrez vos identifiants pour acc\xE9der \xE0 votre compte",
|
|
99
|
+
email: "Email",
|
|
100
|
+
emailPlaceholder: "nom@exemple.com",
|
|
101
|
+
password: "Mot de passe",
|
|
102
|
+
forgotPassword: "Mot de passe oubli\xE9 ?",
|
|
103
|
+
login: "Se connecter",
|
|
104
|
+
loggingIn: "Connexion en cours...",
|
|
105
|
+
orContinueWith: "ou continuer avec",
|
|
106
|
+
noAccount: "Vous n'avez pas de compte ?",
|
|
107
|
+
signUp: "S'inscrire",
|
|
108
|
+
providers: {
|
|
109
|
+
google: "Continuer avec Google",
|
|
110
|
+
github: "Continuer avec GitHub",
|
|
111
|
+
apple: "Continuer avec Apple",
|
|
112
|
+
microsoft: "Continuer avec Microsoft",
|
|
113
|
+
facebook: "Continuer avec Facebook"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
// src/locales/it.json
|
|
119
|
+
var it_default = {
|
|
120
|
+
next: "Successivo",
|
|
121
|
+
previous: "Precedente",
|
|
122
|
+
loginForm: {
|
|
123
|
+
title: "Accedi al tuo account",
|
|
124
|
+
description: "Inserisci le tue credenziali per accedere al tuo account",
|
|
125
|
+
email: "Email",
|
|
126
|
+
emailPlaceholder: "nome@esempio.com",
|
|
127
|
+
password: "Password",
|
|
128
|
+
forgotPassword: "Password dimenticata?",
|
|
129
|
+
login: "Accedi",
|
|
130
|
+
loggingIn: "Accesso in corso...",
|
|
131
|
+
orContinueWith: "o continua con",
|
|
132
|
+
noAccount: "Non hai un account?",
|
|
133
|
+
signUp: "Registrati",
|
|
134
|
+
providers: {
|
|
135
|
+
google: "Continua con Google",
|
|
136
|
+
github: "Continua con GitHub",
|
|
137
|
+
apple: "Continua con Apple",
|
|
138
|
+
microsoft: "Continua con Microsoft",
|
|
139
|
+
facebook: "Continua con Facebook"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// src/locales/nl.json
|
|
145
|
+
var nl_default = {
|
|
146
|
+
next: "Volgende",
|
|
147
|
+
previous: "Vorige",
|
|
148
|
+
loginForm: {
|
|
149
|
+
title: "Inloggen op uw account",
|
|
150
|
+
description: "Voer uw gegevens in om toegang te krijgen tot uw account",
|
|
151
|
+
email: "E-mail",
|
|
152
|
+
emailPlaceholder: "naam@voorbeeld.com",
|
|
153
|
+
password: "Wachtwoord",
|
|
154
|
+
forgotPassword: "Wachtwoord vergeten?",
|
|
155
|
+
login: "Inloggen",
|
|
156
|
+
loggingIn: "Bezig met inloggen...",
|
|
157
|
+
orContinueWith: "of ga verder met",
|
|
158
|
+
noAccount: "Heeft u geen account?",
|
|
159
|
+
signUp: "Registreren",
|
|
160
|
+
providers: {
|
|
161
|
+
google: "Doorgaan met Google",
|
|
162
|
+
github: "Doorgaan met GitHub",
|
|
163
|
+
apple: "Doorgaan met Apple",
|
|
164
|
+
microsoft: "Doorgaan met Microsoft",
|
|
165
|
+
facebook: "Doorgaan met Facebook"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export { de_default, en_default, es_default, fr_default, it_default, locales_exports, nl_default };
|
|
171
|
+
//# sourceMappingURL=chunk-5SGT7Y7J.js.map
|
|
172
|
+
//# sourceMappingURL=chunk-5SGT7Y7J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/locales/index.ts","../src/locales/de.json","../src/locales/en.json","../src/locales/es.json","../src/locales/fr.json","../src/locales/it.json","../src/locales/nl.json"],"names":[],"mappings":";;;AAAA,IAAA,eAAA,GAAA;AAAA,QAAA,CAAA,eAAA,EAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA;AAAA,CAAA,CAAA;;;ACAA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,QAAA;AAAA,EACR,QAAA,EAAY,WAAA;AAAA,EACZ,SAAA,EAAa;AAAA,IACX,KAAA,EAAS,0BAAA;AAAA,IACT,WAAA,EAAe,+DAAA;AAAA,IACf,KAAA,EAAS,QAAA;AAAA,IACT,gBAAA,EAAoB,mBAAA;AAAA,IACpB,QAAA,EAAY,UAAA;AAAA,IACZ,cAAA,EAAkB,qBAAA;AAAA,IAClB,KAAA,EAAS,UAAA;AAAA,IACT,SAAA,EAAa,uBAAA;AAAA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,IAClB,KAAA,EAAS,QAAA;AAAA,IACT,SAAA,EAAa,qBAAA;AAAA,IACb,cAAA,EAAkB,gBAAA;AAAA,IAClB,SAAA,EAAa,qBAAA;AAAA,IACb,MAAA,EAAU,YAAA;AAAA,IACV,SAAA,EAAa;AAAA,MACX,MAAA,EAAU,qBAAA;AAAA,MACV,MAAA,EAAU,qBAAA;AAAA,MACV,KAAA,EAAS,oBAAA;AAAA,MACT,SAAA,EAAa,wBAAA;AAAA,MACb,QAAA,EAAY;AAAA;AACd;AAEJ;;;ACvBA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,UAAA;AAAA,EACR,QAAA,EAAY,QAAA;AAAA,EACZ,SAAA,EAAa;AAAA,IACX,KAAA,EAAS,wBAAA;AAAA,IACT,WAAA,EAAe,0DAAA;AAAA,IACf,KAAA,EAAS,QAAA;AAAA,IACT,gBAAA,EAAoB,oBAAA;AAAA,IACpB,QAAA,EAAY,YAAA;AAAA,IACZ,cAAA,EAAkB,sBAAA;AAAA,IAClB,KAAA,EAAS,UAAA;AAAA,IACT,SAAA,EAAa,uBAAA;AAAA,IACb,cAAA,EAAkB,kBAAA;AAAA,IAClB,SAAA,EAAa,uBAAA;AAAA,IACb,MAAA,EAAU,aAAA;AAAA,IACV,SAAA,EAAa;AAAA,MACX,MAAA,EAAU,qBAAA;AAAA,MACV,MAAA,EAAU,qBAAA;AAAA,MACV,KAAA,EAAS,oBAAA;AAAA,MACT,SAAA,EAAa,wBAAA;AAAA,MACb,QAAA,EAAY;AAAA;AACd;AAEJ","file":"chunk-5SGT7Y7J.js","sourcesContent":["export { default as de } from \"./de.json\";\nexport { default as en } from \"./en.json\";\nexport { default as es } from \"./es.json\";\nexport { default as fr } from \"./fr.json\";\nexport { default as it } from \"./it.json\";\nexport { default as nl } from \"./nl.json\";\n","{\n \"next\": \"Weiter\",\n \"previous\": \"Zurück\",\n \"loginForm\": {\n \"title\": \"Anmelden bei Ihrem Konto\",\n \"description\": \"Geben Sie Ihre Anmeldedaten ein, um auf Ihr Konto zuzugreifen\",\n \"email\": \"E-Mail\",\n \"emailPlaceholder\": \"name@beispiel.com\",\n \"password\": \"Passwort\",\n \"forgotPassword\": \"Passwort vergessen?\",\n \"login\": \"Anmelden\",\n \"loggingIn\": \"Anmeldung läuft...\",\n \"orContinueWith\": \"oder fortfahren mit\",\n \"noAccount\": \"Sie haben noch kein Konto?\",\n \"signUp\": \"Registrieren\",\n \"providers\": {\n \"google\": \"Mit Google fortfahren\",\n \"github\": \"Mit GitHub fortfahren\",\n \"apple\": \"Mit Apple fortfahren\",\n \"microsoft\": \"Mit Microsoft fortfahren\",\n \"facebook\": \"Mit Facebook fortfahren\"\n }\n }\n}\n","{\n \"next\": \"Next\",\n \"previous\": \"Previous\",\n \"loginForm\": {\n \"title\": \"Login to your account\",\n \"description\": \"Enter your credentials to access your account\",\n \"email\": \"Email\",\n \"emailPlaceholder\": \"name@example.com\",\n \"password\": \"Password\",\n \"forgotPassword\": \"Forgot password?\",\n \"login\": \"Login\",\n \"loggingIn\": \"Logging in...\",\n \"orContinueWith\": \"or continue with\",\n \"noAccount\": \"Don't have an account?\",\n \"signUp\": \"Sign up\",\n \"providers\": {\n \"google\": \"Continue with Google\",\n \"github\": \"Continue with GitHub\",\n \"apple\": \"Continue with Apple\",\n \"microsoft\": \"Continue with Microsoft\",\n \"facebook\": \"Continue with Facebook\"\n }\n }\n}\n","{\n \"next\": \"Siguiente\",\n \"previous\": \"Anterior\",\n \"loginForm\": {\n \"title\": \"Iniciar sesión en su cuenta\",\n \"description\": \"Introduzca sus credenciales para acceder a su cuenta\",\n \"email\": \"Correo electrónico\",\n \"emailPlaceholder\": \"nombre@ejemplo.com\",\n \"password\": \"Contraseña\",\n \"forgotPassword\": \"¿Olvidó su contraseña?\",\n \"login\": \"Iniciar sesión\",\n \"loggingIn\": \"Iniciando sesión...\",\n \"orContinueWith\": \"o continuar con\",\n \"noAccount\": \"¿No tiene una cuenta?\",\n \"signUp\": \"Registrarse\",\n \"providers\": {\n \"google\": \"Continuar con Google\",\n \"github\": \"Continuar con GitHub\",\n \"apple\": \"Continuar con Apple\",\n \"microsoft\": \"Continuar con Microsoft\",\n \"facebook\": \"Continuar con Facebook\"\n }\n }\n}\n","{\n \"next\": \"Suivant\",\n \"previous\": \"Précédent\",\n \"loginForm\": {\n \"title\": \"Connexion à votre compte\",\n \"description\": \"Entrez vos identifiants pour accéder à votre compte\",\n \"email\": \"Email\",\n \"emailPlaceholder\": \"nom@exemple.com\",\n \"password\": \"Mot de passe\",\n \"forgotPassword\": \"Mot de passe oublié ?\",\n \"login\": \"Se connecter\",\n \"loggingIn\": \"Connexion en cours...\",\n \"orContinueWith\": \"ou continuer avec\",\n \"noAccount\": \"Vous n'avez pas de compte ?\",\n \"signUp\": \"S'inscrire\",\n \"providers\": {\n \"google\": \"Continuer avec Google\",\n \"github\": \"Continuer avec GitHub\",\n \"apple\": \"Continuer avec Apple\",\n \"microsoft\": \"Continuer avec Microsoft\",\n \"facebook\": \"Continuer avec Facebook\"\n }\n }\n}\n","{\n \"next\": \"Successivo\",\n \"previous\": \"Precedente\",\n \"loginForm\": {\n \"title\": \"Accedi al tuo account\",\n \"description\": \"Inserisci le tue credenziali per accedere al tuo account\",\n \"email\": \"Email\",\n \"emailPlaceholder\": \"nome@esempio.com\",\n \"password\": \"Password\",\n \"forgotPassword\": \"Password dimenticata?\",\n \"login\": \"Accedi\",\n \"loggingIn\": \"Accesso in corso...\",\n \"orContinueWith\": \"o continua con\",\n \"noAccount\": \"Non hai un account?\",\n \"signUp\": \"Registrati\",\n \"providers\": {\n \"google\": \"Continua con Google\",\n \"github\": \"Continua con GitHub\",\n \"apple\": \"Continua con Apple\",\n \"microsoft\": \"Continua con Microsoft\",\n \"facebook\": \"Continua con Facebook\"\n }\n }\n}\n","{\n \"next\": \"Volgende\",\n \"previous\": \"Vorige\",\n \"loginForm\": {\n \"title\": \"Inloggen op uw account\",\n \"description\": \"Voer uw gegevens in om toegang te krijgen tot uw account\",\n \"email\": \"E-mail\",\n \"emailPlaceholder\": \"naam@voorbeeld.com\",\n \"password\": \"Wachtwoord\",\n \"forgotPassword\": \"Wachtwoord vergeten?\",\n \"login\": \"Inloggen\",\n \"loggingIn\": \"Bezig met inloggen...\",\n \"orContinueWith\": \"of ga verder met\",\n \"noAccount\": \"Heeft u geen account?\",\n \"signUp\": \"Registreren\",\n \"providers\": {\n \"google\": \"Doorgaan met Google\",\n \"github\": \"Doorgaan met GitHub\",\n \"apple\": \"Doorgaan met Apple\",\n \"microsoft\": \"Doorgaan met Microsoft\",\n \"facebook\": \"Doorgaan met Facebook\"\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkQ7SFCCGT_cjs = require('./chunk-Q7SFCCGT.cjs');
|
|
4
|
+
|
|
5
|
+
// src/locales/index.ts
|
|
6
|
+
var locales_exports = {};
|
|
7
|
+
chunkQ7SFCCGT_cjs.__export(locales_exports, {
|
|
8
|
+
de: () => de_default,
|
|
9
|
+
en: () => en_default,
|
|
10
|
+
es: () => es_default,
|
|
11
|
+
fr: () => fr_default,
|
|
12
|
+
it: () => it_default,
|
|
13
|
+
nl: () => nl_default
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
// src/locales/de.json
|
|
17
|
+
var de_default = {
|
|
18
|
+
next: "Weiter",
|
|
19
|
+
previous: "Zur\xFCck",
|
|
20
|
+
loginForm: {
|
|
21
|
+
title: "Anmelden bei Ihrem Konto",
|
|
22
|
+
description: "Geben Sie Ihre Anmeldedaten ein, um auf Ihr Konto zuzugreifen",
|
|
23
|
+
email: "E-Mail",
|
|
24
|
+
emailPlaceholder: "name@beispiel.com",
|
|
25
|
+
password: "Passwort",
|
|
26
|
+
forgotPassword: "Passwort vergessen?",
|
|
27
|
+
login: "Anmelden",
|
|
28
|
+
loggingIn: "Anmeldung l\xE4uft...",
|
|
29
|
+
orContinueWith: "oder fortfahren mit",
|
|
30
|
+
noAccount: "Sie haben noch kein Konto?",
|
|
31
|
+
signUp: "Registrieren",
|
|
32
|
+
providers: {
|
|
33
|
+
google: "Mit Google fortfahren",
|
|
34
|
+
github: "Mit GitHub fortfahren",
|
|
35
|
+
apple: "Mit Apple fortfahren",
|
|
36
|
+
microsoft: "Mit Microsoft fortfahren",
|
|
37
|
+
facebook: "Mit Facebook fortfahren"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// src/locales/en.json
|
|
43
|
+
var en_default = {
|
|
44
|
+
next: "Next",
|
|
45
|
+
previous: "Previous",
|
|
46
|
+
loginForm: {
|
|
47
|
+
title: "Login to your account",
|
|
48
|
+
description: "Enter your credentials to access your account",
|
|
49
|
+
email: "Email",
|
|
50
|
+
emailPlaceholder: "name@example.com",
|
|
51
|
+
password: "Password",
|
|
52
|
+
forgotPassword: "Forgot password?",
|
|
53
|
+
login: "Login",
|
|
54
|
+
loggingIn: "Logging in...",
|
|
55
|
+
orContinueWith: "or continue with",
|
|
56
|
+
noAccount: "Don't have an account?",
|
|
57
|
+
signUp: "Sign up",
|
|
58
|
+
providers: {
|
|
59
|
+
google: "Continue with Google",
|
|
60
|
+
github: "Continue with GitHub",
|
|
61
|
+
apple: "Continue with Apple",
|
|
62
|
+
microsoft: "Continue with Microsoft",
|
|
63
|
+
facebook: "Continue with Facebook"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
// src/locales/es.json
|
|
69
|
+
var es_default = {
|
|
70
|
+
next: "Siguiente",
|
|
71
|
+
previous: "Anterior",
|
|
72
|
+
loginForm: {
|
|
73
|
+
title: "Iniciar sesi\xF3n en su cuenta",
|
|
74
|
+
description: "Introduzca sus credenciales para acceder a su cuenta",
|
|
75
|
+
email: "Correo electr\xF3nico",
|
|
76
|
+
emailPlaceholder: "nombre@ejemplo.com",
|
|
77
|
+
password: "Contrase\xF1a",
|
|
78
|
+
forgotPassword: "\xBFOlvid\xF3 su contrase\xF1a?",
|
|
79
|
+
login: "Iniciar sesi\xF3n",
|
|
80
|
+
loggingIn: "Iniciando sesi\xF3n...",
|
|
81
|
+
orContinueWith: "o continuar con",
|
|
82
|
+
noAccount: "\xBFNo tiene una cuenta?",
|
|
83
|
+
signUp: "Registrarse",
|
|
84
|
+
providers: {
|
|
85
|
+
google: "Continuar con Google",
|
|
86
|
+
github: "Continuar con GitHub",
|
|
87
|
+
apple: "Continuar con Apple",
|
|
88
|
+
microsoft: "Continuar con Microsoft",
|
|
89
|
+
facebook: "Continuar con Facebook"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
// src/locales/fr.json
|
|
95
|
+
var fr_default = {
|
|
96
|
+
next: "Suivant",
|
|
97
|
+
previous: "Pr\xE9c\xE9dent",
|
|
98
|
+
loginForm: {
|
|
99
|
+
title: "Connexion \xE0 votre compte",
|
|
100
|
+
description: "Entrez vos identifiants pour acc\xE9der \xE0 votre compte",
|
|
101
|
+
email: "Email",
|
|
102
|
+
emailPlaceholder: "nom@exemple.com",
|
|
103
|
+
password: "Mot de passe",
|
|
104
|
+
forgotPassword: "Mot de passe oubli\xE9 ?",
|
|
105
|
+
login: "Se connecter",
|
|
106
|
+
loggingIn: "Connexion en cours...",
|
|
107
|
+
orContinueWith: "ou continuer avec",
|
|
108
|
+
noAccount: "Vous n'avez pas de compte ?",
|
|
109
|
+
signUp: "S'inscrire",
|
|
110
|
+
providers: {
|
|
111
|
+
google: "Continuer avec Google",
|
|
112
|
+
github: "Continuer avec GitHub",
|
|
113
|
+
apple: "Continuer avec Apple",
|
|
114
|
+
microsoft: "Continuer avec Microsoft",
|
|
115
|
+
facebook: "Continuer avec Facebook"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// src/locales/it.json
|
|
121
|
+
var it_default = {
|
|
122
|
+
next: "Successivo",
|
|
123
|
+
previous: "Precedente",
|
|
124
|
+
loginForm: {
|
|
125
|
+
title: "Accedi al tuo account",
|
|
126
|
+
description: "Inserisci le tue credenziali per accedere al tuo account",
|
|
127
|
+
email: "Email",
|
|
128
|
+
emailPlaceholder: "nome@esempio.com",
|
|
129
|
+
password: "Password",
|
|
130
|
+
forgotPassword: "Password dimenticata?",
|
|
131
|
+
login: "Accedi",
|
|
132
|
+
loggingIn: "Accesso in corso...",
|
|
133
|
+
orContinueWith: "o continua con",
|
|
134
|
+
noAccount: "Non hai un account?",
|
|
135
|
+
signUp: "Registrati",
|
|
136
|
+
providers: {
|
|
137
|
+
google: "Continua con Google",
|
|
138
|
+
github: "Continua con GitHub",
|
|
139
|
+
apple: "Continua con Apple",
|
|
140
|
+
microsoft: "Continua con Microsoft",
|
|
141
|
+
facebook: "Continua con Facebook"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// src/locales/nl.json
|
|
147
|
+
var nl_default = {
|
|
148
|
+
next: "Volgende",
|
|
149
|
+
previous: "Vorige",
|
|
150
|
+
loginForm: {
|
|
151
|
+
title: "Inloggen op uw account",
|
|
152
|
+
description: "Voer uw gegevens in om toegang te krijgen tot uw account",
|
|
153
|
+
email: "E-mail",
|
|
154
|
+
emailPlaceholder: "naam@voorbeeld.com",
|
|
155
|
+
password: "Wachtwoord",
|
|
156
|
+
forgotPassword: "Wachtwoord vergeten?",
|
|
157
|
+
login: "Inloggen",
|
|
158
|
+
loggingIn: "Bezig met inloggen...",
|
|
159
|
+
orContinueWith: "of ga verder met",
|
|
160
|
+
noAccount: "Heeft u geen account?",
|
|
161
|
+
signUp: "Registreren",
|
|
162
|
+
providers: {
|
|
163
|
+
google: "Doorgaan met Google",
|
|
164
|
+
github: "Doorgaan met GitHub",
|
|
165
|
+
apple: "Doorgaan met Apple",
|
|
166
|
+
microsoft: "Doorgaan met Microsoft",
|
|
167
|
+
facebook: "Doorgaan met Facebook"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
exports.de_default = de_default;
|
|
173
|
+
exports.en_default = en_default;
|
|
174
|
+
exports.es_default = es_default;
|
|
175
|
+
exports.fr_default = fr_default;
|
|
176
|
+
exports.it_default = it_default;
|
|
177
|
+
exports.locales_exports = locales_exports;
|
|
178
|
+
exports.nl_default = nl_default;
|
|
179
|
+
//# sourceMappingURL=chunk-RKE7ZPNV.cjs.map
|
|
180
|
+
//# sourceMappingURL=chunk-RKE7ZPNV.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/locales/index.ts","../src/locales/de.json","../src/locales/en.json","../src/locales/es.json","../src/locales/fr.json","../src/locales/it.json","../src/locales/nl.json"],"names":["__export"],"mappings":";;;;;AAAA,IAAA,eAAA,GAAA;AAAAA,0BAAA,CAAA,eAAA,EAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA,UAAA;AAAA,EAAA,EAAA,EAAA,MAAA;AAAA,CAAA,CAAA;;;ACAA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,QAAA;AAAA,EACR,QAAA,EAAY,WAAA;AAAA,EACZ,SAAA,EAAa;AAAA,IACX,KAAA,EAAS,0BAAA;AAAA,IACT,WAAA,EAAe,+DAAA;AAAA,IACf,KAAA,EAAS,QAAA;AAAA,IACT,gBAAA,EAAoB,mBAAA;AAAA,IACpB,QAAA,EAAY,UAAA;AAAA,IACZ,cAAA,EAAkB,qBAAA;AAAA,IAClB,KAAA,EAAS,UAAA;AAAA,IACT,SAAA,EAAa,uBAAA;AAAA,IACb,cAAA,EAAkB,qBAAA;AAAA,IAClB,SAAA,EAAa,4BAAA;AAAA,IACb,MAAA,EAAU,cAAA;AAAA,IACV,S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SAAA,EAAa,qBAAA;AAAA,IACb,MAAA,EAAU,YAAA;AAAA,IACV,SAAA,EAAa;AAAA,MACX,MAAA,EAAU,qBAAA;AAAA,MACV,MAAA,EAAU,qBAAA;AAAA,MACV,KAAA,EAAS,oBAAA;AAAA,MACT,SAAA,EAAa,wBAAA;AAAA,MACb,QAAA,EAAY;AAAA;AACd;AAEJ;;;ACvBA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,UAAA;AAAA,EACR,QAAA,EAAY,QAAA;AAAA,EACZ,SAAA,EAAa;AAAA,IACX,KAAA,EAAS,wBAAA;AAAA,IACT,WAAA,EAAe,0DAAA;AAAA,IACf,KAAA,EAAS,QAAA;AAAA,IACT,gBAAA,EAAoB,oBAAA;AAAA,IACpB,QAAA,EAAY,YAAA;AAAA,IACZ,cAAA,EAAkB,sBAAA;AAAA,IAClB,KAAA,EAAS,UAAA;AAAA,IACT,SAAA,EAAa,uBAAA;AAAA,IACb,cAAA,EAAkB,kBAAA;AAAA,IAClB,SAAA,EAAa,uBAAA;AAAA,IACb,MAAA,EAAU,aAAA;AAAA,IACV,SAAA,EAAa;AAAA,MACX,MAAA,EAAU,qBAAA;AAAA,MACV,MAAA,EAAU,qBAAA;AAAA,MACV,KAAA,EAAS,oBAAA;AAAA,MACT,SAAA,EAAa,wBAAA;AAAA,MACb,QAAA,EAAY;AAAA;AACd;AAEJ","file":"chunk-RKE7ZPNV.cjs","sourcesContent":["export { default as de } from \"./de.json\";\nexport { default as en } from \"./en.json\";\nexport { default as es } from \"./es.json\";\nexport { default as fr } from \"./fr.json\";\nexport { default as it } from \"./it.json\";\nexport { default as nl } from \"./nl.json\";\n","{\n \"next\": \"Weiter\",\n \"previous\": \"Zurück\",\n \"loginForm\": {\n \"title\": \"Anmelden bei Ihrem Konto\",\n \"description\": \"Geben Sie Ihre Anmeldedaten ein, um auf Ihr Konto zuzugreifen\",\n \"email\": \"E-Mail\",\n \"emailPlaceholder\": \"name@beispiel.com\",\n \"password\": \"Passwort\",\n \"forgotPassword\": \"Passwort vergessen?\",\n \"login\": \"Anmelden\",\n \"loggingIn\": \"Anmeldung läuft...\",\n \"orContinueWith\": \"oder fortfahren mit\",\n \"noAccount\": \"Sie haben noch kein Konto?\",\n \"signUp\": \"Registrieren\",\n \"providers\": {\n \"google\": \"Mit Google fortfahren\",\n \"github\": \"Mit GitHub fortfahren\",\n \"apple\": \"Mit Apple fortfahren\",\n \"microsoft\": \"Mit Microsoft fortfahren\",\n \"facebook\": \"Mit Facebook fortfahren\"\n }\n }\n}\n","{\n \"next\": \"Next\",\n \"previous\": \"Previous\",\n \"loginForm\": {\n \"title\": \"Login to your account\",\n \"description\": \"Enter your credentials to access your account\",\n \"email\": \"Email\",\n \"emailPlaceholder\": \"name@example.com\",\n \"password\": \"Password\",\n \"forgotPassword\": \"Forgot password?\",\n \"login\": \"Login\",\n \"loggingIn\": \"Logging in...\",\n \"orContinueWith\": \"or continue with\",\n \"noAccount\": \"Don't have an account?\",\n \"signUp\": \"Sign up\",\n \"providers\": {\n \"google\": \"Continue with Google\",\n \"github\": \"Continue with GitHub\",\n \"apple\": \"Continue with Apple\",\n \"microsoft\": \"Continue with Microsoft\",\n \"facebook\": \"Continue with Facebook\"\n }\n }\n}\n","{\n \"next\": \"Siguiente\",\n \"previous\": \"Anterior\",\n \"loginForm\": {\n \"title\": \"Iniciar sesión en su cuenta\",\n \"description\": \"Introduzca sus credenciales para acceder a su cuenta\",\n \"email\": \"Correo electrónico\",\n \"emailPlaceholder\": \"nombre@ejemplo.com\",\n \"password\": \"Contraseña\",\n \"forgotPassword\": \"¿Olvidó su contraseña?\",\n \"login\": \"Iniciar sesión\",\n \"loggingIn\": \"Iniciando sesión...\",\n \"orContinueWith\": \"o continuar con\",\n \"noAccount\": \"¿No tiene una cuenta?\",\n \"signUp\": \"Registrarse\",\n \"providers\": {\n \"google\": \"Continuar con Google\",\n \"github\": \"Continuar con GitHub\",\n \"apple\": \"Continuar con Apple\",\n \"microsoft\": \"Continuar con Microsoft\",\n \"facebook\": \"Continuar con Facebook\"\n }\n }\n}\n","{\n \"next\": \"Suivant\",\n \"previous\": \"Précédent\",\n \"loginForm\": {\n \"title\": \"Connexion à votre compte\",\n \"description\": \"Entrez vos identifiants pour accéder à votre compte\",\n \"email\": \"Email\",\n \"emailPlaceholder\": \"nom@exemple.com\",\n \"password\": \"Mot de passe\",\n \"forgotPassword\": \"Mot de passe oublié ?\",\n \"login\": \"Se connecter\",\n \"loggingIn\": \"Connexion en cours...\",\n \"orContinueWith\": \"ou continuer avec\",\n \"noAccount\": \"Vous n'avez pas de compte ?\",\n \"signUp\": \"S'inscrire\",\n \"providers\": {\n \"google\": \"Continuer avec Google\",\n \"github\": \"Continuer avec GitHub\",\n \"apple\": \"Continuer avec Apple\",\n \"microsoft\": \"Continuer avec Microsoft\",\n \"facebook\": \"Continuer avec Facebook\"\n }\n }\n}\n","{\n \"next\": \"Successivo\",\n \"previous\": \"Precedente\",\n \"loginForm\": {\n \"title\": \"Accedi al tuo account\",\n \"description\": \"Inserisci le tue credenziali per accedere al tuo account\",\n \"email\": \"Email\",\n \"emailPlaceholder\": \"nome@esempio.com\",\n \"password\": \"Password\",\n \"forgotPassword\": \"Password dimenticata?\",\n \"login\": \"Accedi\",\n \"loggingIn\": \"Accesso in corso...\",\n \"orContinueWith\": \"o continua con\",\n \"noAccount\": \"Non hai un account?\",\n \"signUp\": \"Registrati\",\n \"providers\": {\n \"google\": \"Continua con Google\",\n \"github\": \"Continua con GitHub\",\n \"apple\": \"Continua con Apple\",\n \"microsoft\": \"Continua con Microsoft\",\n \"facebook\": \"Continua con Facebook\"\n }\n }\n}\n","{\n \"next\": \"Volgende\",\n \"previous\": \"Vorige\",\n \"loginForm\": {\n \"title\": \"Inloggen op uw account\",\n \"description\": \"Voer uw gegevens in om toegang te krijgen tot uw account\",\n \"email\": \"E-mail\",\n \"emailPlaceholder\": \"naam@voorbeeld.com\",\n \"password\": \"Wachtwoord\",\n \"forgotPassword\": \"Wachtwoord vergeten?\",\n \"login\": \"Inloggen\",\n \"loggingIn\": \"Bezig met inloggen...\",\n \"orContinueWith\": \"of ga verder met\",\n \"noAccount\": \"Heeft u geen account?\",\n \"signUp\": \"Registreren\",\n \"providers\": {\n \"google\": \"Doorgaan met Google\",\n \"github\": \"Doorgaan met GitHub\",\n \"apple\": \"Doorgaan met Apple\",\n \"microsoft\": \"Doorgaan met Microsoft\",\n \"facebook\": \"Doorgaan met Facebook\"\n }\n }\n}\n"]}
|
|
@@ -8,39 +8,6 @@ var react = require('react');
|
|
|
8
8
|
var classVarianceAuthority = require('class-variance-authority');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
10
|
|
|
11
|
-
// src/components/optionals/code-editors/qualifio-themes.ts
|
|
12
|
-
async function defineQualifioThemes(monaco) {
|
|
13
|
-
monaco.editor.defineTheme("qualifio", {
|
|
14
|
-
base: "vs",
|
|
15
|
-
inherit: true,
|
|
16
|
-
rules: [],
|
|
17
|
-
colors: {
|
|
18
|
-
"editor.foreground": "#666666",
|
|
19
|
-
"editor.background": "#f8fafb",
|
|
20
|
-
"editor.lineHighlightBackground": "#f8fafb",
|
|
21
|
-
"editorCursor.foreground": "#666666",
|
|
22
|
-
"editorLineNumber.foreground": "#D8D8D8",
|
|
23
|
-
"editorLineNumber.activeForeground": "#D8D8D8",
|
|
24
|
-
"editor.selectionBackground": "#dff5fb",
|
|
25
|
-
"editor.selectionHighlightBackground": "#dff5fb",
|
|
26
|
-
"editor.wordHighlightBackground": "#dff5fb",
|
|
27
|
-
"editor.wordHighlightStrongBackground": "#dff5fb",
|
|
28
|
-
"editor.findMatchBackground": "#FFF7E2",
|
|
29
|
-
"editor.findMatchHighlightBackground": "#FFF7E2",
|
|
30
|
-
"editorBracketMatch.background": "#f2f2f2",
|
|
31
|
-
"editorBracketMatch.border": "#D8D8D8",
|
|
32
|
-
"editorIndentGuide.background": "#D8D8D8",
|
|
33
|
-
"editorIndentGuide.activeBackground": "#666666",
|
|
34
|
-
"editorWidget.background": "#FFFFFF",
|
|
35
|
-
"editorWidget.border": "#D8D8D8",
|
|
36
|
-
"editorSuggestWidget.background": "#FFFFFF",
|
|
37
|
-
"editorSuggestWidget.border": "#D8D8D8",
|
|
38
|
-
"editorSuggestWidget.selectedBackground": "#dff5fb",
|
|
39
|
-
"editorHoverWidget.background": "#FFFFFF",
|
|
40
|
-
"editorHoverWidget.border": "#D8D8D8"
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
11
|
var codeEditorVariants = classVarianceAuthority.cva(
|
|
45
12
|
"relative overflow-hidden rounded-md border transition-[color,box-shadow] outline-none focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]",
|
|
46
13
|
{
|
|
@@ -110,11 +77,6 @@ function CodeDiffEditor({
|
|
|
110
77
|
theme,
|
|
111
78
|
original,
|
|
112
79
|
modified,
|
|
113
|
-
beforeMount: (monaco) => {
|
|
114
|
-
defineQualifioThemes(monaco).catch((error) => {
|
|
115
|
-
console.error("Failed to define Qualifio themes:", error);
|
|
116
|
-
});
|
|
117
|
-
},
|
|
118
80
|
onMount,
|
|
119
81
|
options: editorOptions,
|
|
120
82
|
loading: /* @__PURE__ */ jsxRuntime.jsx(LoadingFallback, {})
|
|
@@ -179,11 +141,6 @@ function CodeEditor({
|
|
|
179
141
|
value,
|
|
180
142
|
defaultValue,
|
|
181
143
|
onChange,
|
|
182
|
-
beforeMount: (monaco) => {
|
|
183
|
-
defineQualifioThemes(monaco).catch((error) => {
|
|
184
|
-
console.error("Failed to define Qualifio themes:", error);
|
|
185
|
-
});
|
|
186
|
-
},
|
|
187
144
|
onMount,
|
|
188
145
|
onValidate,
|
|
189
146
|
options: editorOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/optionals/code-editors/qualifio-themes.ts","../../src/components/optionals/code-editors/variants.ts","../../src/components/optionals/code-editors/code-diff-editor.tsx","../../src/components/optionals/code-editors/code-editor.tsx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gBAAAA,EAAA,EAAgB;AAAA;AAAA;AAC5B;AAAA,GACF;AAEJ","file":"index.cjs","sourcesContent":["import type { Monaco } from \"@monaco-editor/react\";\n\n/**\n * Defines the Qualifio theme for Monaco Editor\n * This function should be called once when Monaco is loaded\n */\nexport async function defineQualifioThemes(monaco: Monaco) {\n monaco.editor.defineTheme(\"qualifio\", {\n base: \"vs\",\n inherit: true,\n rules: [],\n colors: {\n \"editor.foreground\": \"#666666\",\n \"editor.background\": \"#f8fafb\",\n \"editor.lineHighlightBackground\": \"#f8fafb\",\n \"editorCursor.foreground\": \"#666666\",\n \"editorLineNumber.foreground\": \"#D8D8D8\",\n \"editorLineNumber.activeForeground\": \"#D8D8D8\",\n \"editor.selectionBackground\": \"#dff5fb\",\n \"editor.selectionHighlightBackground\": \"#dff5fb\",\n \"editor.wordHighlightBackground\": \"#dff5fb\",\n \"editor.wordHighlightStrongBackground\": \"#dff5fb\",\n \"editor.findMatchBackground\": \"#FFF7E2\",\n \"editor.findMatchHighlightBackground\": \"#FFF7E2\",\n \"editorBracketMatch.background\": \"#f2f2f2\",\n \"editorBracketMatch.border\": \"#D8D8D8\",\n \"editorIndentGuide.background\": \"#D8D8D8\",\n \"editorIndentGuide.activeBackground\": \"#666666\",\n \"editorWidget.background\": \"#FFFFFF\",\n \"editorWidget.border\": \"#D8D8D8\",\n \"editorSuggestWidget.background\": \"#FFFFFF\",\n \"editorSuggestWidget.border\": \"#D8D8D8\",\n \"editorSuggestWidget.selectedBackground\": \"#dff5fb\",\n \"editorHoverWidget.background\": \"#FFFFFF\",\n \"editorHoverWidget.border\": \"#D8D8D8\",\n },\n });\n}\n","import { cva } from \"class-variance-authority\";\n\nexport const codeEditorVariants = cva(\n \"relative overflow-hidden rounded-md border transition-[color,box-shadow] outline-none focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]\",\n {\n variants: {\n variant: {\n default: \"border-input bg-transparent dark:bg-input/30\",\n ghost: \"border-transparent bg-transparent\",\n card: \"border-border bg-card shadow-sm\",\n },\n size: {\n default: \"h-[300px]\",\n sm: \"h-[150px]\",\n lg: \"h-[500px]\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n","import { Skeleton } from \"@/components/base/skeleton\";\nimport { cn } from \"@/lib/utils\";\nimport {\n DiffEditor,\n type DiffEditorProps,\n type Monaco,\n} from \"@monaco-editor/react\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { editor } from \"monaco-editor\";\nimport { type HTMLAttributes, useMemo } from \"react\";\nimport { defineQualifioThemes } from \"./qualifio-themes\";\nimport type { EditorTheme, SupportedLanguage } from \"./types\";\nimport { codeEditorVariants } from \"./variants\";\n\ninterface CodeDiffEditorProps\n extends\n VariantProps<typeof codeEditorVariants>,\n Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n original?: string;\n modified?: string;\n language: SupportedLanguage;\n theme?: EditorTheme;\n readOnly?: boolean;\n disabled?: boolean;\n onMount?: (editor: editor.IStandaloneDiffEditor, monaco: Monaco) => void;\n options?: editor.IDiffEditorConstructionOptions;\n}\n\nfunction LoadingFallback() {\n return <Skeleton className=\"h-full w-full\" />;\n}\n\nfunction CodeDiffEditor({\n original,\n modified,\n language,\n theme = \"qualifio\",\n readOnly = false,\n disabled = false,\n className,\n variant,\n size,\n onMount,\n options,\n ...props\n}: CodeDiffEditorProps) {\n const editorOptions = useMemo(\n () => ({\n readOnly: readOnly || disabled,\n fontSize: 14,\n fontFamily: \"'Menlo', 'Monaco', Consolas, monospace\",\n scrollBeyondLastLine: false,\n automaticLayout: true,\n padding: { top: 12, bottom: 12 },\n renderSideBySide: true,\n enableSplitViewResizing: true,\n ...options,\n }),\n [readOnly, disabled, options],\n );\n\n return (\n <div\n data-slot=\"code-diff-editor\"\n className={cn(\n codeEditorVariants({ variant, size }),\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n <DiffEditor\n language={language}\n theme={theme}\n original={original}\n modified={modified}\n beforeMount={(monaco) => {\n defineQualifioThemes(monaco).catch((error) => {\n console.error(\"Failed to define Qualifio themes:\", error);\n });\n }}\n onMount={onMount}\n options={editorOptions}\n loading={<LoadingFallback />}\n />\n </div>\n );\n}\n\nexport { CodeDiffEditor, type DiffEditorProps };\n","import { Editor, type Monaco } from \"@monaco-editor/react\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { editor } from \"monaco-editor\";\nimport { type HTMLAttributes, useMemo } from \"react\";\nimport { Skeleton } from \"@/components/base/skeleton\";\nimport { cn } from \"@/lib/utils\";\nimport { defineQualifioThemes } from \"./qualifio-themes\";\nimport type { EditorTheme, SupportedLanguage } from \"./types\";\nimport { codeEditorVariants } from \"./variants\";\n\ninterface CodeEditorProps\n extends\n VariantProps<typeof codeEditorVariants>,\n Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n value?: string;\n defaultValue?: string;\n language: SupportedLanguage;\n theme?: EditorTheme;\n readOnly?: boolean;\n disabled?: boolean;\n lineNumbers?: boolean;\n wordWrap?: boolean;\n minimap?: boolean;\n onChange?: (value: string | undefined) => void;\n onMount?: (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;\n onValidate?: (markers: editor.IMarker[]) => void;\n options?: editor.IStandaloneEditorConstructionOptions;\n}\n\nfunction LoadingFallback() {\n return <Skeleton className=\"h-full w-full\" />;\n}\n\nfunction CodeEditor({\n value,\n defaultValue,\n language,\n theme = \"qualifio\",\n readOnly = false,\n disabled = false,\n lineNumbers = true,\n wordWrap = false,\n minimap = false,\n className,\n variant,\n size,\n onChange,\n onMount,\n onValidate,\n options,\n ...props\n}: CodeEditorProps) {\n const editorOptions = useMemo(\n () => ({\n readOnly: readOnly || disabled,\n lineNumbers: lineNumbers ? (\"on\" as const) : (\"off\" as const),\n wordWrap: wordWrap ? (\"on\" as const) : (\"off\" as const),\n minimap: { enabled: minimap },\n fontSize: 14,\n fontFamily: \"'Menlo', 'Monaco', Consolas, monospace\",\n scrollBeyondLastLine: false,\n automaticLayout: true,\n padding: { top: 12, bottom: 12 },\n bracketPairColorization: { enabled: true },\n ...options,\n }),\n [readOnly, disabled, lineNumbers, wordWrap, minimap, options],\n );\n\n return (\n <div\n data-slot=\"code-editor\"\n className={cn(\n codeEditorVariants({ variant, size }),\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n <Editor\n language={language}\n theme={theme}\n value={value}\n defaultValue={defaultValue}\n onChange={onChange}\n beforeMount={(monaco) => {\n defineQualifioThemes(monaco).catch((error) => {\n console.error(\"Failed to define Qualifio themes:\", error);\n });\n }}\n onMount={onMount}\n onValidate={onValidate}\n options={editorOptions}\n loading={<LoadingFallback />}\n />\n </div>\n );\n}\n\nexport { CodeEditor, type CodeEditorProps };\nexport type { EditorTheme, SupportedLanguage } from \"./types\";\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/optionals/code-editors/variants.ts","../../src/components/optionals/code-editors/code-diff-editor.tsx","../../src/components/optionals/code-editors/code-editor.tsx"],"names":["cva","jsx","Skeleton","useMemo","cn","DiffEditor","LoadingFallback","Editor"],"mappings":";;;;;;;;;;AAEO,IAAM,kBAAA,GAAqBA,0BAAA;AAAA,EAChC,kKAAA;AAAA,EACA;AAAA,IACE,QAAA,EAAU;AAAA,MACR,OAAA,EAAS;AAAA,QACP,OAAA,EAAS,8CAAA;AAAA,QACT,KAAA,EAAO,mCAAA;AAAA,QACP,IAAA,EAAM;AAAA,OACR;AAAA,MACA,IAAA,EAAM;AAAA,QACJ,OAAA,EAAS,WAAA;AAAA,QACT,EAAA,EAAI,WAAA;AAAA,QACJ,EAAA,EAAI;AAAA;AACN,KACF;AAAA,IACA,eAAA,EAAiB;AAAA,MACf,OAAA,EAAS,SAAA;AAAA,MACT,IAAA,EAAM;AAAA;AACR;AAEJ,CAAA;ACKA,SAAS,eAAA,GAAkB;AACzB,EAAA,uBAAOC,cAAA,CAACC,0BAAA,EAAA,EAAS,SAAA,EAAU,eAAA,EAAgB,CAAA;AAC7C;AA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WAAA,EAAU,aAAA;AAAA,MACV,SAAA,EAAWG,oBAAA;AAAA,QACT,kBAAA,CAAmB,EAAE,OAAA,EAAS,IAAA,EAAM,CAAA;AAAA,QACpC,QAAA,IAAY,+BAAA;AAAA,QACZ;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAAH,cAAAA;AAAA,QAACM,cAAA;AAAA,QAAA;AAAA,UACC,QAAA;AAAA,UACA,KAAA;AAAA,UACA,KAAA;AAAA,UACA,YAAA;AAAA,UACA,QAAA;AAAA,UACA,OAAA;AAAA,UACA,UAAA;AAAA,UACA,OAAA,EAAS,aAAA;AAAA,UACT,OAAA,kBAASN,cAAAA,CAACK,gBAAAA,EAAA,EAAgB;AAAA;AAAA;AAC5B;AAAA,GACF;AAEJ","file":"index.cjs","sourcesContent":["import { cva } from \"class-variance-authority\";\n\nexport const codeEditorVariants = cva(\n \"relative overflow-hidden rounded-md border transition-[color,box-shadow] outline-none focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]\",\n {\n variants: {\n variant: {\n default: \"border-input bg-transparent dark:bg-input/30\",\n ghost: \"border-transparent bg-transparent\",\n card: \"border-border bg-card shadow-sm\",\n },\n size: {\n default: \"h-[300px]\",\n sm: \"h-[150px]\",\n lg: \"h-[500px]\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n","import { Skeleton } from \"@/components/base/skeleton\";\nimport { cn } from \"@/lib/utils\";\nimport {\n DiffEditor,\n type DiffEditorProps,\n type Monaco,\n} from \"@monaco-editor/react\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { editor } from \"monaco-editor\";\nimport { type HTMLAttributes, useMemo } from \"react\";\nimport type { EditorTheme, SupportedLanguage } from \"./types\";\nimport { codeEditorVariants } from \"./variants\";\n\ninterface CodeDiffEditorProps\n extends\n VariantProps<typeof codeEditorVariants>,\n Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n original?: string;\n modified?: string;\n language: SupportedLanguage;\n theme?: EditorTheme;\n readOnly?: boolean;\n disabled?: boolean;\n onMount?: (editor: editor.IStandaloneDiffEditor, monaco: Monaco) => void;\n options?: editor.IDiffEditorConstructionOptions;\n}\n\nfunction LoadingFallback() {\n return <Skeleton className=\"h-full w-full\" />;\n}\n\nfunction CodeDiffEditor({\n original,\n modified,\n language,\n theme = \"qualifio\",\n readOnly = false,\n disabled = false,\n className,\n variant,\n size,\n onMount,\n options,\n ...props\n}: CodeDiffEditorProps) {\n const editorOptions = useMemo(\n () => ({\n readOnly: readOnly || disabled,\n fontSize: 14,\n fontFamily: \"'Menlo', 'Monaco', Consolas, monospace\",\n scrollBeyondLastLine: false,\n automaticLayout: true,\n padding: { top: 12, bottom: 12 },\n renderSideBySide: true,\n enableSplitViewResizing: true,\n ...options,\n }),\n [readOnly, disabled, options],\n );\n\n return (\n <div\n data-slot=\"code-diff-editor\"\n className={cn(\n codeEditorVariants({ variant, size }),\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n <DiffEditor\n language={language}\n theme={theme}\n original={original}\n modified={modified}\n onMount={onMount}\n options={editorOptions}\n loading={<LoadingFallback />}\n />\n </div>\n );\n}\n\nexport { CodeDiffEditor, type DiffEditorProps };\n","import { Skeleton } from \"@/components/base/skeleton\";\nimport { cn } from \"@/lib/utils\";\nimport { Editor, type Monaco } from \"@monaco-editor/react\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { editor } from \"monaco-editor\";\nimport { type HTMLAttributes, useMemo } from \"react\";\nimport type { EditorTheme, SupportedLanguage } from \"./types\";\nimport { codeEditorVariants } from \"./variants\";\n\ninterface CodeEditorProps\n extends\n VariantProps<typeof codeEditorVariants>,\n Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n value?: string;\n defaultValue?: string;\n language: SupportedLanguage;\n theme?: EditorTheme;\n readOnly?: boolean;\n disabled?: boolean;\n lineNumbers?: boolean;\n wordWrap?: boolean;\n minimap?: boolean;\n onChange?: (value: string | undefined) => void;\n onMount?: (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;\n onValidate?: (markers: editor.IMarker[]) => void;\n options?: editor.IStandaloneEditorConstructionOptions;\n}\n\nfunction LoadingFallback() {\n return <Skeleton className=\"h-full w-full\" />;\n}\n\nfunction CodeEditor({\n value,\n defaultValue,\n language,\n theme = \"qualifio\",\n readOnly = false,\n disabled = false,\n lineNumbers = true,\n wordWrap = false,\n minimap = false,\n className,\n variant,\n size,\n onChange,\n onMount,\n onValidate,\n options,\n ...props\n}: CodeEditorProps) {\n const editorOptions = useMemo(\n () => ({\n readOnly: readOnly || disabled,\n lineNumbers: lineNumbers ? (\"on\" as const) : (\"off\" as const),\n wordWrap: wordWrap ? (\"on\" as const) : (\"off\" as const),\n minimap: { enabled: minimap },\n fontSize: 14,\n fontFamily: \"'Menlo', 'Monaco', Consolas, monospace\",\n scrollBeyondLastLine: false,\n automaticLayout: true,\n padding: { top: 12, bottom: 12 },\n bracketPairColorization: { enabled: true },\n ...options,\n }),\n [readOnly, disabled, lineNumbers, wordWrap, minimap, options],\n );\n\n return (\n <div\n data-slot=\"code-editor\"\n className={cn(\n codeEditorVariants({ variant, size }),\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n <Editor\n language={language}\n theme={theme}\n value={value}\n defaultValue={defaultValue}\n onChange={onChange}\n onMount={onMount}\n onValidate={onValidate}\n options={editorOptions}\n loading={<LoadingFallback />}\n />\n </div>\n );\n}\n\nexport type { EditorTheme, SupportedLanguage } from \"./types\";\nexport { CodeEditor, type CodeEditorProps };\n"]}
|
|
@@ -6,39 +6,6 @@ import { useMemo } from 'react';
|
|
|
6
6
|
import { cva } from 'class-variance-authority';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
|
-
// src/components/optionals/code-editors/qualifio-themes.ts
|
|
10
|
-
async function defineQualifioThemes(monaco) {
|
|
11
|
-
monaco.editor.defineTheme("qualifio", {
|
|
12
|
-
base: "vs",
|
|
13
|
-
inherit: true,
|
|
14
|
-
rules: [],
|
|
15
|
-
colors: {
|
|
16
|
-
"editor.foreground": "#666666",
|
|
17
|
-
"editor.background": "#f8fafb",
|
|
18
|
-
"editor.lineHighlightBackground": "#f8fafb",
|
|
19
|
-
"editorCursor.foreground": "#666666",
|
|
20
|
-
"editorLineNumber.foreground": "#D8D8D8",
|
|
21
|
-
"editorLineNumber.activeForeground": "#D8D8D8",
|
|
22
|
-
"editor.selectionBackground": "#dff5fb",
|
|
23
|
-
"editor.selectionHighlightBackground": "#dff5fb",
|
|
24
|
-
"editor.wordHighlightBackground": "#dff5fb",
|
|
25
|
-
"editor.wordHighlightStrongBackground": "#dff5fb",
|
|
26
|
-
"editor.findMatchBackground": "#FFF7E2",
|
|
27
|
-
"editor.findMatchHighlightBackground": "#FFF7E2",
|
|
28
|
-
"editorBracketMatch.background": "#f2f2f2",
|
|
29
|
-
"editorBracketMatch.border": "#D8D8D8",
|
|
30
|
-
"editorIndentGuide.background": "#D8D8D8",
|
|
31
|
-
"editorIndentGuide.activeBackground": "#666666",
|
|
32
|
-
"editorWidget.background": "#FFFFFF",
|
|
33
|
-
"editorWidget.border": "#D8D8D8",
|
|
34
|
-
"editorSuggestWidget.background": "#FFFFFF",
|
|
35
|
-
"editorSuggestWidget.border": "#D8D8D8",
|
|
36
|
-
"editorSuggestWidget.selectedBackground": "#dff5fb",
|
|
37
|
-
"editorHoverWidget.background": "#FFFFFF",
|
|
38
|
-
"editorHoverWidget.border": "#D8D8D8"
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
9
|
var codeEditorVariants = cva(
|
|
43
10
|
"relative overflow-hidden rounded-md border transition-[color,box-shadow] outline-none focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]",
|
|
44
11
|
{
|
|
@@ -108,11 +75,6 @@ function CodeDiffEditor({
|
|
|
108
75
|
theme,
|
|
109
76
|
original,
|
|
110
77
|
modified,
|
|
111
|
-
beforeMount: (monaco) => {
|
|
112
|
-
defineQualifioThemes(monaco).catch((error) => {
|
|
113
|
-
console.error("Failed to define Qualifio themes:", error);
|
|
114
|
-
});
|
|
115
|
-
},
|
|
116
78
|
onMount,
|
|
117
79
|
options: editorOptions,
|
|
118
80
|
loading: /* @__PURE__ */ jsx(LoadingFallback, {})
|
|
@@ -177,11 +139,6 @@ function CodeEditor({
|
|
|
177
139
|
value,
|
|
178
140
|
defaultValue,
|
|
179
141
|
onChange,
|
|
180
|
-
beforeMount: (monaco) => {
|
|
181
|
-
defineQualifioThemes(monaco).catch((error) => {
|
|
182
|
-
console.error("Failed to define Qualifio themes:", error);
|
|
183
|
-
});
|
|
184
|
-
},
|
|
185
142
|
onMount,
|
|
186
143
|
onValidate,
|
|
187
144
|
options: editorOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/optionals/code-editors/qualifio-themes.ts","../../src/components/optionals/code-editors/variants.ts","../../src/components/optionals/code-editors/code-diff-editor.tsx","../../src/components/optionals/code-editors/code-editor.tsx"],"names":["LoadingFallback","jsx","useMemo"],"mappings":";;;;;;;;;AAMA,eAAsB,qBAAqB,MAAA,EAAgB;AACzD,EAAA,MAAA,CAAO,MAAA,CAAO,YAAY,UAAA,EAAY;AAAA,IACpC,IAAA,EAAM,IAAA;AAAA,IACN,OAAA,EAAS,IAAA;AAAA,IACT,OAAO,EAAC;AAAA,IACR,MAAA,EAAQ;AAAA,MACN,mBAAA,EAAqB,SAAA;AAAA,MACrB,mBAAA,EAAqB,SAAA;AAAA,MACrB,gCAAA,EAAkC,SAAA;AAAA,MAClC,yBAAA,EAA2B,SAAA;AAAA,MAC3B,6BAAA,EAA+B,SAAA;AAAA,MAC/B,mCAAA,EAAqC,SAAA;AAAA,MACrC,4BAAA,EAA8B,SAAA;AAAA,MAC9B,qCAAA,EAAuC,SAAA;AAAA,MACvC,gCAAA,EAAkC,SAAA;AAAA,MAClC,sCAAA,EAAwC,SAA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AA,EAAW,EAAA;AAAA,QACT,kBAAA,CAAmB,EAAE,OAAA,EAAS,IAAA,EAAM,CAAA;AAAA,QACpC,QAAA,IAAY,+BAAA;AAAA,QACZ;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAAA,GAAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACC,QAAA;AAAA,UACA,KAAA;AAAA,UACA,KAAA;AAAA,UACA,YAAA;AAAA,UACA,QAAA;AAAA,UACA,WAAA,EAAa,CAAC,MAAA,KAAW;AACvB,YAAA,oBAAA,CAAqB,MAAM,CAAA,CAAE,KAAA,CAAM,CAAC,KAAA,KAAU;AAC5C,cAAA,OAAA,CAAQ,KAAA,CAAM,qCAAqC,KAAK,CAAA;AAAA,YAC1D,CAAC,CAAA;AAAA,UACH,CAAA;AAAA,UACA,OAAA;AAAA,UACA,UAAA;AAAA,UACA,OAAA,EAAS,aAAA;AAAA,UACT,OAAA,kBAASA,GAAAA,CAACD,gBAAAA,EAAA,EAAgB;AAAA;AAAA;AAC5B;AAAA,GACF;AAEJ","file":"index.js","sourcesContent":["import type { Monaco } from \"@monaco-editor/react\";\n\n/**\n * Defines the Qualifio theme for Monaco Editor\n * This function should be called once when Monaco is loaded\n */\nexport async function defineQualifioThemes(monaco: Monaco) {\n monaco.editor.defineTheme(\"qualifio\", {\n base: \"vs\",\n inherit: true,\n rules: [],\n colors: {\n \"editor.foreground\": \"#666666\",\n \"editor.background\": \"#f8fafb\",\n \"editor.lineHighlightBackground\": \"#f8fafb\",\n \"editorCursor.foreground\": \"#666666\",\n \"editorLineNumber.foreground\": \"#D8D8D8\",\n \"editorLineNumber.activeForeground\": \"#D8D8D8\",\n \"editor.selectionBackground\": \"#dff5fb\",\n \"editor.selectionHighlightBackground\": \"#dff5fb\",\n \"editor.wordHighlightBackground\": \"#dff5fb\",\n \"editor.wordHighlightStrongBackground\": \"#dff5fb\",\n \"editor.findMatchBackground\": \"#FFF7E2\",\n \"editor.findMatchHighlightBackground\": \"#FFF7E2\",\n \"editorBracketMatch.background\": \"#f2f2f2\",\n \"editorBracketMatch.border\": \"#D8D8D8\",\n \"editorIndentGuide.background\": \"#D8D8D8\",\n \"editorIndentGuide.activeBackground\": \"#666666\",\n \"editorWidget.background\": \"#FFFFFF\",\n \"editorWidget.border\": \"#D8D8D8\",\n \"editorSuggestWidget.background\": \"#FFFFFF\",\n \"editorSuggestWidget.border\": \"#D8D8D8\",\n \"editorSuggestWidget.selectedBackground\": \"#dff5fb\",\n \"editorHoverWidget.background\": \"#FFFFFF\",\n \"editorHoverWidget.border\": \"#D8D8D8\",\n },\n });\n}\n","import { cva } from \"class-variance-authority\";\n\nexport const codeEditorVariants = cva(\n \"relative overflow-hidden rounded-md border transition-[color,box-shadow] outline-none focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]\",\n {\n variants: {\n variant: {\n default: \"border-input bg-transparent dark:bg-input/30\",\n ghost: \"border-transparent bg-transparent\",\n card: \"border-border bg-card shadow-sm\",\n },\n size: {\n default: \"h-[300px]\",\n sm: \"h-[150px]\",\n lg: \"h-[500px]\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n","import { Skeleton } from \"@/components/base/skeleton\";\nimport { cn } from \"@/lib/utils\";\nimport {\n DiffEditor,\n type DiffEditorProps,\n type Monaco,\n} from \"@monaco-editor/react\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { editor } from \"monaco-editor\";\nimport { type HTMLAttributes, useMemo } from \"react\";\nimport { defineQualifioThemes } from \"./qualifio-themes\";\nimport type { EditorTheme, SupportedLanguage } from \"./types\";\nimport { codeEditorVariants } from \"./variants\";\n\ninterface CodeDiffEditorProps\n extends\n VariantProps<typeof codeEditorVariants>,\n Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n original?: string;\n modified?: string;\n language: SupportedLanguage;\n theme?: EditorTheme;\n readOnly?: boolean;\n disabled?: boolean;\n onMount?: (editor: editor.IStandaloneDiffEditor, monaco: Monaco) => void;\n options?: editor.IDiffEditorConstructionOptions;\n}\n\nfunction LoadingFallback() {\n return <Skeleton className=\"h-full w-full\" />;\n}\n\nfunction CodeDiffEditor({\n original,\n modified,\n language,\n theme = \"qualifio\",\n readOnly = false,\n disabled = false,\n className,\n variant,\n size,\n onMount,\n options,\n ...props\n}: CodeDiffEditorProps) {\n const editorOptions = useMemo(\n () => ({\n readOnly: readOnly || disabled,\n fontSize: 14,\n fontFamily: \"'Menlo', 'Monaco', Consolas, monospace\",\n scrollBeyondLastLine: false,\n automaticLayout: true,\n padding: { top: 12, bottom: 12 },\n renderSideBySide: true,\n enableSplitViewResizing: true,\n ...options,\n }),\n [readOnly, disabled, options],\n );\n\n return (\n <div\n data-slot=\"code-diff-editor\"\n className={cn(\n codeEditorVariants({ variant, size }),\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n <DiffEditor\n language={language}\n theme={theme}\n original={original}\n modified={modified}\n beforeMount={(monaco) => {\n defineQualifioThemes(monaco).catch((error) => {\n console.error(\"Failed to define Qualifio themes:\", error);\n });\n }}\n onMount={onMount}\n options={editorOptions}\n loading={<LoadingFallback />}\n />\n </div>\n );\n}\n\nexport { CodeDiffEditor, type DiffEditorProps };\n","import { Editor, type Monaco } from \"@monaco-editor/react\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { editor } from \"monaco-editor\";\nimport { type HTMLAttributes, useMemo } from \"react\";\nimport { Skeleton } from \"@/components/base/skeleton\";\nimport { cn } from \"@/lib/utils\";\nimport { defineQualifioThemes } from \"./qualifio-themes\";\nimport type { EditorTheme, SupportedLanguage } from \"./types\";\nimport { codeEditorVariants } from \"./variants\";\n\ninterface CodeEditorProps\n extends\n VariantProps<typeof codeEditorVariants>,\n Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n value?: string;\n defaultValue?: string;\n language: SupportedLanguage;\n theme?: EditorTheme;\n readOnly?: boolean;\n disabled?: boolean;\n lineNumbers?: boolean;\n wordWrap?: boolean;\n minimap?: boolean;\n onChange?: (value: string | undefined) => void;\n onMount?: (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;\n onValidate?: (markers: editor.IMarker[]) => void;\n options?: editor.IStandaloneEditorConstructionOptions;\n}\n\nfunction LoadingFallback() {\n return <Skeleton className=\"h-full w-full\" />;\n}\n\nfunction CodeEditor({\n value,\n defaultValue,\n language,\n theme = \"qualifio\",\n readOnly = false,\n disabled = false,\n lineNumbers = true,\n wordWrap = false,\n minimap = false,\n className,\n variant,\n size,\n onChange,\n onMount,\n onValidate,\n options,\n ...props\n}: CodeEditorProps) {\n const editorOptions = useMemo(\n () => ({\n readOnly: readOnly || disabled,\n lineNumbers: lineNumbers ? (\"on\" as const) : (\"off\" as const),\n wordWrap: wordWrap ? (\"on\" as const) : (\"off\" as const),\n minimap: { enabled: minimap },\n fontSize: 14,\n fontFamily: \"'Menlo', 'Monaco', Consolas, monospace\",\n scrollBeyondLastLine: false,\n automaticLayout: true,\n padding: { top: 12, bottom: 12 },\n bracketPairColorization: { enabled: true },\n ...options,\n }),\n [readOnly, disabled, lineNumbers, wordWrap, minimap, options],\n );\n\n return (\n <div\n data-slot=\"code-editor\"\n className={cn(\n codeEditorVariants({ variant, size }),\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n <Editor\n language={language}\n theme={theme}\n value={value}\n defaultValue={defaultValue}\n onChange={onChange}\n beforeMount={(monaco) => {\n defineQualifioThemes(monaco).catch((error) => {\n console.error(\"Failed to define Qualifio themes:\", error);\n });\n }}\n onMount={onMount}\n onValidate={onValidate}\n options={editorOptions}\n loading={<LoadingFallback />}\n />\n </div>\n );\n}\n\nexport { CodeEditor, type CodeEditorProps };\nexport type { EditorTheme, SupportedLanguage } from \"./types\";\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/optionals/code-editors/variants.ts","../../src/components/optionals/code-editors/code-diff-editor.tsx","../../src/components/optionals/code-editors/code-editor.tsx"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IAAA,GAAkB,KAAA;AAAA,MAC9C,QAAA,EAAU,WAAY,IAAA,GAAkB,KAAA;AAAA,MACxC,OAAA,EAAS,EAAE,OAAA,EAAS,OAAA,EAAQ;AAAA,MAC5B,QAAA,EAAU,EAAA;AAAA,MACV,UAAA,EAAY,wCAAA;AAAA,MACZ,oBAAA,EAAsB,KAAA;AAAA,MACtB,eAAA,EAAiB,IAAA;AAAA,MACjB,OAAA,EAAS,EAAE,GAAA,EAAK,EAAA,EAAI,QAAQ,EAAA,EAAG;AAAA,MAC/B,uBAAA,EAAyB,EAAE,OAAA,EAAS,IAAA,EAAK;AAAA,MACzC,GAAG;AAAA,KACL,CAAA;AAAA,IACA,CAAC,QAAA,EAAU,QAAA,EAAU,WAAA,EAAa,QAAA,EAAU,SAAS,OAAO;AAAA,GAC9D;AAEA,EAAA,uBACED,GAAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,aAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACT,kBAAA,CAAmB,EAAE,OAAA,EAAS,IAAA,EAAM,CAAA;AAAA,QACpC,QAAA,IAAY,+BAAA;AAAA,QACZ;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAAA,GAAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACC,QAAA;AAAA,UACA,KAAA;AAAA,UACA,KAAA;AAAA,UACA,YAAA;AAAA,UACA,QAAA;AAAA,UACA,OAAA;AAAA,UACA,UAAA;AAAA,UACA,OAAA,EAAS,aAAA;AAAA,UACT,OAAA,kBAASA,GAAAA,CAACD,gBAAAA,EAAA,EAAgB;AAAA;AAAA;AAC5B;AAAA,GACF;AAEJ","file":"index.js","sourcesContent":["import { cva } from \"class-variance-authority\";\n\nexport const codeEditorVariants = cva(\n \"relative overflow-hidden rounded-md border transition-[color,box-shadow] outline-none focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]\",\n {\n variants: {\n variant: {\n default: \"border-input bg-transparent dark:bg-input/30\",\n ghost: \"border-transparent bg-transparent\",\n card: \"border-border bg-card shadow-sm\",\n },\n size: {\n default: \"h-[300px]\",\n sm: \"h-[150px]\",\n lg: \"h-[500px]\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n },\n);\n","import { Skeleton } from \"@/components/base/skeleton\";\nimport { cn } from \"@/lib/utils\";\nimport {\n DiffEditor,\n type DiffEditorProps,\n type Monaco,\n} from \"@monaco-editor/react\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { editor } from \"monaco-editor\";\nimport { type HTMLAttributes, useMemo } from \"react\";\nimport type { EditorTheme, SupportedLanguage } from \"./types\";\nimport { codeEditorVariants } from \"./variants\";\n\ninterface CodeDiffEditorProps\n extends\n VariantProps<typeof codeEditorVariants>,\n Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n original?: string;\n modified?: string;\n language: SupportedLanguage;\n theme?: EditorTheme;\n readOnly?: boolean;\n disabled?: boolean;\n onMount?: (editor: editor.IStandaloneDiffEditor, monaco: Monaco) => void;\n options?: editor.IDiffEditorConstructionOptions;\n}\n\nfunction LoadingFallback() {\n return <Skeleton className=\"h-full w-full\" />;\n}\n\nfunction CodeDiffEditor({\n original,\n modified,\n language,\n theme = \"qualifio\",\n readOnly = false,\n disabled = false,\n className,\n variant,\n size,\n onMount,\n options,\n ...props\n}: CodeDiffEditorProps) {\n const editorOptions = useMemo(\n () => ({\n readOnly: readOnly || disabled,\n fontSize: 14,\n fontFamily: \"'Menlo', 'Monaco', Consolas, monospace\",\n scrollBeyondLastLine: false,\n automaticLayout: true,\n padding: { top: 12, bottom: 12 },\n renderSideBySide: true,\n enableSplitViewResizing: true,\n ...options,\n }),\n [readOnly, disabled, options],\n );\n\n return (\n <div\n data-slot=\"code-diff-editor\"\n className={cn(\n codeEditorVariants({ variant, size }),\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n <DiffEditor\n language={language}\n theme={theme}\n original={original}\n modified={modified}\n onMount={onMount}\n options={editorOptions}\n loading={<LoadingFallback />}\n />\n </div>\n );\n}\n\nexport { CodeDiffEditor, type DiffEditorProps };\n","import { Skeleton } from \"@/components/base/skeleton\";\nimport { cn } from \"@/lib/utils\";\nimport { Editor, type Monaco } from \"@monaco-editor/react\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { editor } from \"monaco-editor\";\nimport { type HTMLAttributes, useMemo } from \"react\";\nimport type { EditorTheme, SupportedLanguage } from \"./types\";\nimport { codeEditorVariants } from \"./variants\";\n\ninterface CodeEditorProps\n extends\n VariantProps<typeof codeEditorVariants>,\n Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n value?: string;\n defaultValue?: string;\n language: SupportedLanguage;\n theme?: EditorTheme;\n readOnly?: boolean;\n disabled?: boolean;\n lineNumbers?: boolean;\n wordWrap?: boolean;\n minimap?: boolean;\n onChange?: (value: string | undefined) => void;\n onMount?: (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;\n onValidate?: (markers: editor.IMarker[]) => void;\n options?: editor.IStandaloneEditorConstructionOptions;\n}\n\nfunction LoadingFallback() {\n return <Skeleton className=\"h-full w-full\" />;\n}\n\nfunction CodeEditor({\n value,\n defaultValue,\n language,\n theme = \"qualifio\",\n readOnly = false,\n disabled = false,\n lineNumbers = true,\n wordWrap = false,\n minimap = false,\n className,\n variant,\n size,\n onChange,\n onMount,\n onValidate,\n options,\n ...props\n}: CodeEditorProps) {\n const editorOptions = useMemo(\n () => ({\n readOnly: readOnly || disabled,\n lineNumbers: lineNumbers ? (\"on\" as const) : (\"off\" as const),\n wordWrap: wordWrap ? (\"on\" as const) : (\"off\" as const),\n minimap: { enabled: minimap },\n fontSize: 14,\n fontFamily: \"'Menlo', 'Monaco', Consolas, monospace\",\n scrollBeyondLastLine: false,\n automaticLayout: true,\n padding: { top: 12, bottom: 12 },\n bracketPairColorization: { enabled: true },\n ...options,\n }),\n [readOnly, disabled, lineNumbers, wordWrap, minimap, options],\n );\n\n return (\n <div\n data-slot=\"code-editor\"\n className={cn(\n codeEditorVariants({ variant, size }),\n disabled && \"cursor-not-allowed opacity-50\",\n className,\n )}\n {...props}\n >\n <Editor\n language={language}\n theme={theme}\n value={value}\n defaultValue={defaultValue}\n onChange={onChange}\n onMount={onMount}\n onValidate={onValidate}\n options={editorOptions}\n loading={<LoadingFallback />}\n />\n </div>\n );\n}\n\nexport type { EditorTheme, SupportedLanguage } from \"./types\";\nexport { CodeEditor, type CodeEditorProps };\n"]}
|