@thunderid/vue 0.0.4 → 0.0.5
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/ThunderIDVueClient.d.ts +4 -10
- package/dist/ThunderIDVueClient.d.ts.map +1 -1
- package/dist/cjs/index.cjs +391 -609
- package/dist/components/auth/sign-in/SignIn.d.ts +1 -1
- package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts +2 -2
- package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts.map +1 -1
- package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts +3 -3
- package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts.map +1 -1
- package/dist/components/presentation/organization-list/OrganizationList.css.d.ts +2 -2
- package/dist/components/presentation/organization-list/OrganizationList.css.d.ts.map +1 -1
- package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts +2 -2
- package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts.map +1 -1
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts +3 -3
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts.map +1 -1
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +2 -2
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts.map +1 -1
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts +2 -2
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts.map +1 -1
- package/dist/components/primitives/Alert/Alert.css.d.ts +2 -2
- package/dist/components/primitives/Alert/Alert.css.d.ts.map +1 -1
- package/dist/components/primitives/Button/Button.css.d.ts +2 -2
- package/dist/components/primitives/Button/Button.css.d.ts.map +1 -1
- package/dist/components/primitives/Card/Card.css.d.ts +2 -2
- package/dist/components/primitives/Card/Card.css.d.ts.map +1 -1
- package/dist/components/primitives/Checkbox/Checkbox.css.d.ts +2 -2
- package/dist/components/primitives/Checkbox/Checkbox.css.d.ts.map +1 -1
- package/dist/components/primitives/DatePicker/DatePicker.css.d.ts +2 -2
- package/dist/components/primitives/DatePicker/DatePicker.css.d.ts.map +1 -1
- package/dist/components/primitives/Divider/Divider.css.d.ts +2 -2
- package/dist/components/primitives/Divider/Divider.css.d.ts.map +1 -1
- package/dist/components/primitives/Logo/Logo.css.d.ts +2 -2
- package/dist/components/primitives/Logo/Logo.css.d.ts.map +1 -1
- package/dist/components/primitives/OtpField/OtpField.css.d.ts +2 -2
- package/dist/components/primitives/OtpField/OtpField.css.d.ts.map +1 -1
- package/dist/components/primitives/PasswordField/PasswordField.css.d.ts +2 -2
- package/dist/components/primitives/PasswordField/PasswordField.css.d.ts.map +1 -1
- package/dist/components/primitives/Select/Select.css.d.ts +2 -2
- package/dist/components/primitives/Select/Select.css.d.ts.map +1 -1
- package/dist/components/primitives/Spinner/Spinner.css.d.ts +2 -2
- package/dist/components/primitives/Spinner/Spinner.css.d.ts.map +1 -1
- package/dist/components/primitives/TextField/TextField.css.d.ts +2 -2
- package/dist/components/primitives/TextField/TextField.css.d.ts.map +1 -1
- package/dist/components/primitives/Typography/Typography.css.d.ts +2 -2
- package/dist/components/primitives/Typography/Typography.css.d.ts.map +1 -1
- package/dist/index.js +387 -605
- package/dist/models/contexts.d.ts +2 -2
- package/dist/models/contexts.d.ts.map +1 -1
- package/dist/providers/ThunderIDProvider.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/__temp__/api.d.ts +0 -64
- package/dist/__temp__/api.d.ts.map +0 -1
- package/dist/__temp__/models.d.ts +0 -44
- package/dist/__temp__/models.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApplicationNativeAuthenticationConstants, DEFAULT_THEME, EmbeddedFlowActionVariantV2 as EmbeddedFlowActionVariant, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowComponentTypeV2, EmbeddedFlowComponentTypeV2 as EmbeddedFlowComponentType, EmbeddedFlowEventTypeV2, EmbeddedFlowEventTypeV2 as EmbeddedFlowEventType, EmbeddedFlowResponseType, EmbeddedFlowStatus, EmbeddedFlowTextVariantV2 as EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowAuthenticatorKnownIdPType, EmbeddedSignInFlowAuthenticatorParamType, EmbeddedSignInFlowAuthenticatorPromptType, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowStatusV2, EmbeddedSignInFlowStatusV2 as EmbeddedSignInFlowStatus, EmbeddedSignInFlowStepType, EmbeddedSignInFlowTypeV2, EmbeddedSignInFlowTypeV2 as EmbeddedSignInFlowType, FieldType, FieldType as FieldType$1, FlowMetaType,
|
|
1
|
+
import { ApplicationNativeAuthenticationConstants, DEFAULT_THEME, EmbeddedFlowActionVariantV2 as EmbeddedFlowActionVariant, EmbeddedFlowComponentType as EmbeddedFlowComponentType$1, EmbeddedFlowComponentTypeV2, EmbeddedFlowComponentTypeV2 as EmbeddedFlowComponentType, EmbeddedFlowEventTypeV2, EmbeddedFlowEventTypeV2 as EmbeddedFlowEventType, EmbeddedFlowResponseType, EmbeddedFlowStatus, EmbeddedFlowTextVariantV2 as EmbeddedFlowTextVariant, EmbeddedFlowType, EmbeddedSignInFlowAuthenticatorKnownIdPType, EmbeddedSignInFlowAuthenticatorParamType, EmbeddedSignInFlowAuthenticatorPromptType, EmbeddedSignInFlowStatus as EmbeddedSignInFlowStatus$1, EmbeddedSignInFlowStatusV2, EmbeddedSignInFlowStatusV2 as EmbeddedSignInFlowStatus, EmbeddedSignInFlowStepType, EmbeddedSignInFlowTypeV2, EmbeddedSignInFlowTypeV2 as EmbeddedSignInFlowType, FetchHttpClient, FieldType, FieldType as FieldType$1, FlowMetaType, Platform, ThunderIDAPIError, ThunderIDBrowserClient, ThunderIDError, ThunderIDRuntimeError, ThunderIDRuntimeError as ThunderIDRuntimeError$1, TranslationBundleConstants, WellKnownSchemaIds, arrayBufferToBase64url, base64urlToArrayBuffer, createClassObserver, createClassObserver as createClassObserver$1, createMediaQueryListener, createMediaQueryListener as createMediaQueryListener$1, createPackageComponentLogger, createPackageLogger, createTheme, deepMerge, deriveOrganizationHandleFromBaseUrl, detectThemeMode, detectThemeMode as detectThemeMode$1, executeEmbeddedSignInFlowV2, executeEmbeddedSignUpFlowV2, extractEmojiFromUri, extractUserClaimsFromIdToken, flattenUserSchema, generateFlattenedUserProfile, generateUserProfile, get, getActiveTheme, getAllOrganizations, getDefaultI18nBundles, getFlowMetaV2, getMeOrganizations, getSchemas, getScim2Me, handleWebAuthnAuthentication, handleWebAuthnAuthentication as handleWebAuthnAuthentication$1, hasAuthParamsInUrl, hasAuthParamsInUrl as hasAuthParamsInUrl$1, hasCalledForThisInstanceInUrl, http, isEmojiUri, isEmpty, navigate, navigate as navigate$1, normalizeTranslations, resolveFlowTemplateLiterals, transformBrandingPreferenceToTheme, updateMeProfile, withVendorCSSClassPrefix } from "@thunderid/browser";
|
|
2
2
|
import { Fragment, computed, defineComponent, h, inject, nextTick, onBeforeUnmount, onMounted, onUnmounted, provide, readonly, ref, shallowReadonly, shallowRef, watch } from "vue";
|
|
3
3
|
import DOMPurify from "dompurify";
|
|
4
4
|
|
|
@@ -774,164 +774,11 @@ const UserProvider = defineComponent({
|
|
|
774
774
|
});
|
|
775
775
|
var UserProvider_default = UserProvider;
|
|
776
776
|
|
|
777
|
-
//#endregion
|
|
778
|
-
//#region src/__temp__/api.ts
|
|
779
|
-
var AuthAPI = class AuthAPI {
|
|
780
|
-
static DEFAULT_STATE;
|
|
781
|
-
authState = AuthAPI.DEFAULT_STATE;
|
|
782
|
-
client;
|
|
783
|
-
apiInstanceId;
|
|
784
|
-
loadingState;
|
|
785
|
-
constructor(spaClient, instanceId = 0) {
|
|
786
|
-
this.apiInstanceId = instanceId;
|
|
787
|
-
this.client = spaClient ?? ThunderIDSPAClient.getInstance(instanceId);
|
|
788
|
-
this.getState = this.getState.bind(this);
|
|
789
|
-
this.init = this.init.bind(this);
|
|
790
|
-
this.signIn = this.signIn.bind(this);
|
|
791
|
-
this.signOut = this.signOut.bind(this);
|
|
792
|
-
this.updateState = this.updateState.bind(this);
|
|
793
|
-
}
|
|
794
|
-
getInstanceId() {
|
|
795
|
-
return this.apiInstanceId;
|
|
796
|
-
}
|
|
797
|
-
setLoadingState(isLoading) {
|
|
798
|
-
this.loadingState = isLoading;
|
|
799
|
-
}
|
|
800
|
-
getLoadingState() {
|
|
801
|
-
return this.loadingState;
|
|
802
|
-
}
|
|
803
|
-
isLoading() {
|
|
804
|
-
return this.getLoadingState();
|
|
805
|
-
}
|
|
806
|
-
getState() {
|
|
807
|
-
return this.authState;
|
|
808
|
-
}
|
|
809
|
-
async init(config) {
|
|
810
|
-
return this.client.initialize(config);
|
|
811
|
-
}
|
|
812
|
-
async getConfigData() {
|
|
813
|
-
return this.client.getConfigData();
|
|
814
|
-
}
|
|
815
|
-
async getStorageManager() {
|
|
816
|
-
return this.client.getStorageManager();
|
|
817
|
-
}
|
|
818
|
-
async isInitialized() {
|
|
819
|
-
return this.client.isInitialized();
|
|
820
|
-
}
|
|
821
|
-
async signIn(config, authorizationCode, sessionState, authState, callback, tokenRequestConfig) {
|
|
822
|
-
return this.client.signIn(config, authorizationCode, sessionState, authState, tokenRequestConfig).then(async (response) => {
|
|
823
|
-
if (!response) return null;
|
|
824
|
-
if (await this.client.isSignedIn()) {
|
|
825
|
-
const stateToUpdate = {
|
|
826
|
-
displayName: response.displayName,
|
|
827
|
-
email: response.email,
|
|
828
|
-
isLoading: false,
|
|
829
|
-
isSignedIn: true,
|
|
830
|
-
username: response.username
|
|
831
|
-
};
|
|
832
|
-
this.updateState(stateToUpdate);
|
|
833
|
-
this.setLoadingState(false);
|
|
834
|
-
if (callback) callback(response);
|
|
835
|
-
}
|
|
836
|
-
return response;
|
|
837
|
-
}).catch((error) => Promise.reject(error));
|
|
838
|
-
}
|
|
839
|
-
signOut(callback) {
|
|
840
|
-
return this.client.signOut().then((response) => {
|
|
841
|
-
if (callback) callback(response);
|
|
842
|
-
return response;
|
|
843
|
-
}).catch((error) => Promise.reject(error));
|
|
844
|
-
}
|
|
845
|
-
updateState(state) {
|
|
846
|
-
this.authState = {
|
|
847
|
-
...this.authState,
|
|
848
|
-
...state
|
|
849
|
-
};
|
|
850
|
-
}
|
|
851
|
-
async getUser() {
|
|
852
|
-
return this.client.getUser();
|
|
853
|
-
}
|
|
854
|
-
async httpRequest(config) {
|
|
855
|
-
return this.client.httpRequest(config);
|
|
856
|
-
}
|
|
857
|
-
async httpRequestAll(configs) {
|
|
858
|
-
return this.client.httpRequestAll(configs);
|
|
859
|
-
}
|
|
860
|
-
exchangeToken(config, callback) {
|
|
861
|
-
return this.client.exchangeToken(config).then((response) => {
|
|
862
|
-
if (!response) return null;
|
|
863
|
-
if (config.returnsSession) this.updateState({
|
|
864
|
-
...this.getState(),
|
|
865
|
-
...response,
|
|
866
|
-
isLoading: false,
|
|
867
|
-
isSignedIn: true
|
|
868
|
-
});
|
|
869
|
-
if (callback) callback(response);
|
|
870
|
-
return response;
|
|
871
|
-
}).catch((error) => Promise.reject(error));
|
|
872
|
-
}
|
|
873
|
-
async getOpenIDProviderEndpoints() {
|
|
874
|
-
return this.client.getOpenIDProviderEndpoints();
|
|
875
|
-
}
|
|
876
|
-
async getHttpClient() {
|
|
877
|
-
return this.client.getHttpClient();
|
|
878
|
-
}
|
|
879
|
-
async decodeJwtToken(token) {
|
|
880
|
-
return this.client.decodeJwtToken(token);
|
|
881
|
-
}
|
|
882
|
-
async getDecodedIdToken(sessionId) {
|
|
883
|
-
return this.client.getDecodedIdToken(sessionId);
|
|
884
|
-
}
|
|
885
|
-
async getIdToken() {
|
|
886
|
-
return this.client.getIdToken();
|
|
887
|
-
}
|
|
888
|
-
async getAccessToken(sessionId) {
|
|
889
|
-
return this.client.getAccessToken(sessionId);
|
|
890
|
-
}
|
|
891
|
-
async refreshAccessToken() {
|
|
892
|
-
return this.client.refreshAccessToken();
|
|
893
|
-
}
|
|
894
|
-
async isSignedIn() {
|
|
895
|
-
return this.client.isSignedIn();
|
|
896
|
-
}
|
|
897
|
-
async enableHttpHandler() {
|
|
898
|
-
return this.client.enableHttpHandler();
|
|
899
|
-
}
|
|
900
|
-
async disableHttpHandler() {
|
|
901
|
-
return this.client.disableHttpHandler();
|
|
902
|
-
}
|
|
903
|
-
async reInitialize(config) {
|
|
904
|
-
return this.client.reInitialize(config);
|
|
905
|
-
}
|
|
906
|
-
on(hook, callback, id) {
|
|
907
|
-
if (hook === Hooks.CustomGrant) return this.client.on(hook, callback, id);
|
|
908
|
-
return this.client.on(hook, callback);
|
|
909
|
-
}
|
|
910
|
-
async signInSilently(additionalParams, tokenRequestConfig) {
|
|
911
|
-
return this.client.signInSilently(additionalParams, tokenRequestConfig).then(async (response) => {
|
|
912
|
-
if (!response) return false;
|
|
913
|
-
return response;
|
|
914
|
-
}).catch((error) => Promise.reject(error));
|
|
915
|
-
}
|
|
916
|
-
clearSession(sessionId) {
|
|
917
|
-
this.client.clearSession(sessionId);
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
|
-
AuthAPI.DEFAULT_STATE = {
|
|
921
|
-
displayName: "",
|
|
922
|
-
email: "",
|
|
923
|
-
isLoading: true,
|
|
924
|
-
isSignedIn: false,
|
|
925
|
-
username: ""
|
|
926
|
-
};
|
|
927
|
-
var api_default = AuthAPI;
|
|
928
|
-
|
|
929
777
|
//#endregion
|
|
930
778
|
//#region src/api/getAllOrganizations.ts
|
|
931
779
|
const getAllOrganizations$1 = async ({ fetcher, instanceId = 0,...requestConfig }) => {
|
|
932
780
|
const defaultFetcher = async (url, config) => {
|
|
933
|
-
const
|
|
934
|
-
const response = await client.httpRequest.bind(client)({
|
|
781
|
+
const response = await FetchHttpClient.getInstance(instanceId).request({
|
|
935
782
|
headers: config.headers,
|
|
936
783
|
method: config.method || "GET",
|
|
937
784
|
url
|
|
@@ -955,8 +802,7 @@ var getAllOrganizations_default = getAllOrganizations$1;
|
|
|
955
802
|
//#region src/api/getMeOrganizations.ts
|
|
956
803
|
const getMeOrganizations$1 = async ({ fetcher, instanceId = 0,...requestConfig }) => {
|
|
957
804
|
const defaultFetcher = async (url, config) => {
|
|
958
|
-
const
|
|
959
|
-
const response = await client.httpRequest.bind(client)({
|
|
805
|
+
const response = await FetchHttpClient.getInstance(instanceId).request({
|
|
960
806
|
headers: config.headers,
|
|
961
807
|
method: config.method || "GET",
|
|
962
808
|
url
|
|
@@ -980,8 +826,7 @@ var getMeOrganizations_default = getMeOrganizations$1;
|
|
|
980
826
|
//#region src/api/getSchemas.ts
|
|
981
827
|
const getSchemas$1 = async ({ fetcher, instanceId = 0,...requestConfig }) => {
|
|
982
828
|
const defaultFetcher = async (url, config) => {
|
|
983
|
-
const
|
|
984
|
-
const response = await client.httpRequest.bind(client)({
|
|
829
|
+
const response = await FetchHttpClient.getInstance(instanceId).request({
|
|
985
830
|
headers: config.headers,
|
|
986
831
|
method: config.method || "GET",
|
|
987
832
|
url
|
|
@@ -1005,8 +850,7 @@ var getSchemas_default = getSchemas$1;
|
|
|
1005
850
|
//#region src/api/getScim2Me.ts
|
|
1006
851
|
const getScim2Me$1 = async ({ fetcher, instanceId = 0,...requestConfig }) => {
|
|
1007
852
|
const defaultFetcher = async (url, config) => {
|
|
1008
|
-
const
|
|
1009
|
-
const response = await client.httpRequest.bind(client)({
|
|
853
|
+
const response = await FetchHttpClient.getInstance(instanceId).request({
|
|
1010
854
|
headers: config.headers,
|
|
1011
855
|
method: config.method || "GET",
|
|
1012
856
|
url
|
|
@@ -1035,16 +879,9 @@ var getScim2Me_default = getScim2Me$1;
|
|
|
1035
879
|
* @typeParam T - Configuration type that extends ThunderIDVueConfig.
|
|
1036
880
|
*/
|
|
1037
881
|
var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
1038
|
-
authApi;
|
|
1039
882
|
loadingState = false;
|
|
1040
|
-
clientInstanceId;
|
|
1041
883
|
constructor(instanceId = 0) {
|
|
1042
|
-
super();
|
|
1043
|
-
this.clientInstanceId = instanceId;
|
|
1044
|
-
this.authApi = new api_default(void 0, instanceId);
|
|
1045
|
-
}
|
|
1046
|
-
getInstanceId() {
|
|
1047
|
-
return this.clientInstanceId;
|
|
884
|
+
super(instanceId);
|
|
1048
885
|
}
|
|
1049
886
|
setLoading(loading) {
|
|
1050
887
|
this.loadingState = loading;
|
|
@@ -1060,7 +897,7 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
1060
897
|
initialize(config) {
|
|
1061
898
|
let resolvedOrganizationHandle = config?.organizationHandle;
|
|
1062
899
|
if (!resolvedOrganizationHandle) resolvedOrganizationHandle = deriveOrganizationHandleFromBaseUrl(config?.baseUrl);
|
|
1063
|
-
return this.withLoading(async () =>
|
|
900
|
+
return this.withLoading(async () => super.initialize({
|
|
1064
901
|
...config,
|
|
1065
902
|
organizationHandle: resolvedOrganizationHandle
|
|
1066
903
|
}));
|
|
@@ -1069,7 +906,7 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
1069
906
|
return this.withLoading(async () => {
|
|
1070
907
|
let isInitialized;
|
|
1071
908
|
try {
|
|
1072
|
-
await
|
|
909
|
+
await super.reInitialize(config);
|
|
1073
910
|
isInitialized = true;
|
|
1074
911
|
} catch (error) {
|
|
1075
912
|
throw new ThunderIDRuntimeError$1(`Failed to check if the client is initialized: ${error instanceof Error ? error.message : String(error)}`, "ThunderIDVueClient-reInitialize-RuntimeError-001", "vue", "An error occurred while checking the initialization status of the client.");
|
|
@@ -1083,23 +920,23 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
1083
920
|
async getUser(options) {
|
|
1084
921
|
try {
|
|
1085
922
|
let baseUrl = options?.baseUrl;
|
|
1086
|
-
if (!baseUrl) baseUrl =
|
|
923
|
+
if (!baseUrl) baseUrl = this.getStorageManager().getConfigData()?.baseUrl;
|
|
1087
924
|
return generateUserProfile(await getScim2Me_default({ baseUrl }), flattenUserSchema(await getSchemas_default({ baseUrl })));
|
|
1088
925
|
} catch (error) {
|
|
1089
926
|
return extractUserClaimsFromIdToken(await this.getDecodedIdToken());
|
|
1090
927
|
}
|
|
1091
928
|
}
|
|
1092
929
|
async getDecodedIdToken(sessionId) {
|
|
1093
|
-
return
|
|
930
|
+
return await super.getDecodedIdToken(sessionId);
|
|
1094
931
|
}
|
|
1095
932
|
async getIdToken() {
|
|
1096
|
-
return this.withLoading(async () =>
|
|
933
|
+
return this.withLoading(async () => super.getIdToken());
|
|
1097
934
|
}
|
|
1098
935
|
async getUserProfile(options) {
|
|
1099
936
|
return this.withLoading(async () => {
|
|
1100
937
|
try {
|
|
1101
938
|
let baseUrl = options?.baseUrl;
|
|
1102
|
-
if (!baseUrl) baseUrl =
|
|
939
|
+
if (!baseUrl) baseUrl = this.getStorageManager().getConfigData()?.baseUrl;
|
|
1103
940
|
const profile = await getScim2Me_default({
|
|
1104
941
|
baseUrl,
|
|
1105
942
|
instanceId: this.getInstanceId()
|
|
@@ -1125,7 +962,7 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
1125
962
|
async getMyOrganizations(options) {
|
|
1126
963
|
try {
|
|
1127
964
|
let baseUrl = options?.baseUrl;
|
|
1128
|
-
if (!baseUrl) baseUrl =
|
|
965
|
+
if (!baseUrl) baseUrl = this.getStorageManager().getConfigData()?.baseUrl;
|
|
1129
966
|
return await getMeOrganizations_default({
|
|
1130
967
|
baseUrl,
|
|
1131
968
|
instanceId: this.getInstanceId()
|
|
@@ -1137,7 +974,7 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
1137
974
|
async getAllOrganizations(options) {
|
|
1138
975
|
try {
|
|
1139
976
|
let baseUrl = options?.baseUrl;
|
|
1140
|
-
if (!baseUrl) baseUrl =
|
|
977
|
+
if (!baseUrl) baseUrl = this.getStorageManager().getConfigData()?.baseUrl;
|
|
1141
978
|
return await getAllOrganizations_default({
|
|
1142
979
|
baseUrl,
|
|
1143
980
|
instanceId: this.getInstanceId()
|
|
@@ -1163,7 +1000,7 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
1163
1000
|
async switchOrganization(organization) {
|
|
1164
1001
|
return this.withLoading(async () => {
|
|
1165
1002
|
try {
|
|
1166
|
-
const sourceInstanceId =
|
|
1003
|
+
const sourceInstanceId = this.getStorageManager().getConfigData()?.organizationChain?.sourceInstanceId;
|
|
1167
1004
|
if (!organization.id) throw new ThunderIDRuntimeError$1("Organization ID is required for switching organizations", "vue-ThunderIDVueClient-SwitchOrganizationError-001", "vue", "The organization object must contain a valid ID to perform the organization switch.");
|
|
1168
1005
|
const exchangeConfig = {
|
|
1169
1006
|
attachToken: false,
|
|
@@ -1178,47 +1015,42 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
1178
1015
|
returnsSession: true,
|
|
1179
1016
|
signInRequired: sourceInstanceId === void 0
|
|
1180
1017
|
};
|
|
1181
|
-
return await
|
|
1018
|
+
return await super.exchangeToken(exchangeConfig);
|
|
1182
1019
|
} catch (error) {
|
|
1183
1020
|
throw new ThunderIDRuntimeError$1(`Failed to switch organization: ${error.message || error}`, "vue-ThunderIDVueClient-SwitchOrganizationError-003", "vue", "An error occurred while switching to the specified organization. Please try again.");
|
|
1184
1021
|
}
|
|
1185
1022
|
});
|
|
1186
1023
|
}
|
|
1187
1024
|
isLoading() {
|
|
1188
|
-
return this.loadingState ||
|
|
1025
|
+
return this.loadingState || super.isLoading();
|
|
1189
1026
|
}
|
|
1190
1027
|
async isInitialized() {
|
|
1191
|
-
return
|
|
1028
|
+
return super.isInitialized();
|
|
1192
1029
|
}
|
|
1193
1030
|
async isSignedIn() {
|
|
1194
|
-
return
|
|
1195
|
-
}
|
|
1196
|
-
getConfiguration() {
|
|
1197
|
-
return this.authApi.getConfigData();
|
|
1031
|
+
return await super.isSignedIn();
|
|
1198
1032
|
}
|
|
1199
1033
|
async exchangeToken(config) {
|
|
1200
|
-
return this.withLoading(async () =>
|
|
1034
|
+
return this.withLoading(async () => await super.exchangeToken(config));
|
|
1201
1035
|
}
|
|
1202
1036
|
async signIn(...args) {
|
|
1203
1037
|
return this.withLoading(async () => {
|
|
1204
1038
|
const arg1 = args[0];
|
|
1205
1039
|
const arg2 = args[1];
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
if (isV2Platform && typeof arg1 === "object" && arg1 !== null && arg1.callOnlyOnRedirect === true) return;
|
|
1210
|
-
if (isV2Platform && typeof arg1 === "object" && arg1 !== null && !isEmpty(arg1) && ("executionId" in arg1 || "applicationId" in arg1)) {
|
|
1040
|
+
if (typeof arg1 === "object" && arg1 !== null && arg1.callOnlyOnRedirect === true) return;
|
|
1041
|
+
if (typeof arg1 === "object" && arg1 !== null && !isEmpty(arg1) && ("executionId" in arg1 || "applicationId" in arg1)) {
|
|
1042
|
+
const configData = this.getStorageManager().getConfigData();
|
|
1211
1043
|
const authIdFromUrl = new URL(window.location.href).searchParams.get("authId");
|
|
1212
1044
|
const authIdFromStorage = sessionStorage.getItem("thunderid_auth_id");
|
|
1213
1045
|
const authId = authIdFromUrl || authIdFromStorage;
|
|
1214
1046
|
const baseUrlFromStorage = sessionStorage.getItem("thunderid_base_url");
|
|
1215
1047
|
const response = await executeEmbeddedSignInFlowV2({
|
|
1216
1048
|
authId,
|
|
1217
|
-
baseUrl:
|
|
1049
|
+
baseUrl: configData?.baseUrl || baseUrlFromStorage,
|
|
1218
1050
|
payload: arg1,
|
|
1219
1051
|
url: arg2?.url
|
|
1220
1052
|
});
|
|
1221
|
-
if (
|
|
1053
|
+
if (response && typeof response === "object" && response.flowStatus === EmbeddedSignInFlowStatusV2.Complete && response.assertion) {
|
|
1222
1054
|
const decodedAssertion = await this.decodeJwtToken(response.assertion);
|
|
1223
1055
|
const createdAt = decodedAssertion.iat ? decodedAssertion.iat * 1e3 : Date.now();
|
|
1224
1056
|
const expiresIn = decodedAssertion.exp && decodedAssertion.iat ? decodedAssertion.exp - decodedAssertion.iat : 3600;
|
|
@@ -1230,75 +1062,53 @@ var ThunderIDVueClient = class extends ThunderIDBrowserClient {
|
|
|
1230
1062
|
scope: decodedAssertion.scope,
|
|
1231
1063
|
token_type: "Bearer"
|
|
1232
1064
|
});
|
|
1065
|
+
this.notifySignIn(extractUserClaimsFromIdToken(decodedAssertion));
|
|
1233
1066
|
}
|
|
1234
1067
|
return response;
|
|
1235
1068
|
}
|
|
1236
|
-
|
|
1237
|
-
payload: arg1,
|
|
1238
|
-
url: arg2.url
|
|
1239
|
-
});
|
|
1240
|
-
return await this.authApi.signIn(arg1);
|
|
1069
|
+
return await super.signIn(arg1);
|
|
1241
1070
|
});
|
|
1242
1071
|
}
|
|
1243
1072
|
async signInSilently(options) {
|
|
1244
|
-
return
|
|
1245
|
-
}
|
|
1246
|
-
async signOut(...args) {
|
|
1247
|
-
let afterSignOut;
|
|
1248
|
-
if (typeof args[1] === "string") [, , afterSignOut] = args;
|
|
1249
|
-
else if (typeof args[1] === "function") [, afterSignOut] = args;
|
|
1250
|
-
const config = await this.authApi.getConfigData();
|
|
1251
|
-
if (config.platform === Platform.ThunderIDV2) {
|
|
1252
|
-
this.authApi.clearSession();
|
|
1253
|
-
if (config.signInUrl) navigate$1(config.signInUrl);
|
|
1254
|
-
else this.signIn(config.signInOptions);
|
|
1255
|
-
afterSignOut?.(config.afterSignOutUrl || "");
|
|
1256
|
-
return Promise.resolve(config.afterSignOutUrl || "");
|
|
1257
|
-
}
|
|
1258
|
-
const response = await this.authApi.signOut(afterSignOut);
|
|
1259
|
-
return Promise.resolve(String(response));
|
|
1073
|
+
return await super.signInSilently(options);
|
|
1260
1074
|
}
|
|
1261
1075
|
async signUp(...args) {
|
|
1262
|
-
const
|
|
1076
|
+
const configData = this.getStorageManager().getConfigData();
|
|
1263
1077
|
const firstArg = args[0];
|
|
1264
|
-
const baseUrl =
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
authId,
|
|
1272
|
-
baseUrl,
|
|
1273
|
-
payload: typeof firstArg === "object" && "flowType" in firstArg ? {
|
|
1274
|
-
...firstArg,
|
|
1275
|
-
verbose: true
|
|
1276
|
-
} : firstArg
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
if (typeof firstArg === "object" && "flowType" in firstArg) return executeEmbeddedSignUpFlow({
|
|
1078
|
+
const baseUrl = configData?.baseUrl;
|
|
1079
|
+
const authIdFromUrl = new URL(window.location.href).searchParams.get("authId");
|
|
1080
|
+
const authIdFromStorage = sessionStorage.getItem("thunderid_auth_id");
|
|
1081
|
+
const authId = authIdFromUrl || authIdFromStorage;
|
|
1082
|
+
if (authIdFromUrl && !authIdFromStorage) sessionStorage.setItem("thunderid_auth_id", authIdFromUrl);
|
|
1083
|
+
return executeEmbeddedSignUpFlowV2({
|
|
1084
|
+
authId,
|
|
1280
1085
|
baseUrl,
|
|
1281
|
-
payload: firstArg
|
|
1086
|
+
payload: typeof firstArg === "object" && "flowType" in firstArg ? {
|
|
1087
|
+
...firstArg,
|
|
1088
|
+
verbose: true
|
|
1089
|
+
} : firstArg
|
|
1282
1090
|
});
|
|
1283
|
-
navigate$1(getRedirectBasedSignUpUrl(config));
|
|
1284
1091
|
}
|
|
1285
1092
|
async request(requestConfig) {
|
|
1286
|
-
return this.
|
|
1093
|
+
return this.httpRequest(requestConfig);
|
|
1287
1094
|
}
|
|
1288
1095
|
async requestAll(requestConfigs) {
|
|
1289
|
-
return this.
|
|
1096
|
+
return this.httpRequestAll(requestConfigs);
|
|
1290
1097
|
}
|
|
1291
1098
|
async getAccessToken(sessionId) {
|
|
1292
|
-
return
|
|
1099
|
+
return super.getAccessToken(sessionId);
|
|
1293
1100
|
}
|
|
1294
1101
|
clearSession(sessionId) {
|
|
1295
|
-
|
|
1102
|
+
super.clearSession(sessionId);
|
|
1296
1103
|
}
|
|
1297
1104
|
async setSession(sessionData, sessionId) {
|
|
1298
|
-
return
|
|
1105
|
+
return this.getStorageManager().setSessionData(sessionData, sessionId);
|
|
1299
1106
|
}
|
|
1300
1107
|
decodeJwtToken(token) {
|
|
1301
|
-
return
|
|
1108
|
+
return super.decodeJwtToken(token);
|
|
1109
|
+
}
|
|
1110
|
+
getStorageManager() {
|
|
1111
|
+
return super.getStorageManager();
|
|
1302
1112
|
}
|
|
1303
1113
|
};
|
|
1304
1114
|
var ThunderIDVueClient_default = ThunderIDVueClient;
|
|
@@ -1309,7 +1119,7 @@ var ThunderIDVueClient_default = ThunderIDVueClient;
|
|
|
1309
1119
|
* Checks if the current URL contains authentication parameters.
|
|
1310
1120
|
*/
|
|
1311
1121
|
function hasAuthParams(url, afterSignInUrl) {
|
|
1312
|
-
return hasAuthParamsInUrl$1() && new URL(url.origin + url.pathname).toString() === new URL(afterSignInUrl).toString() || url.searchParams.get("error") !== null;
|
|
1122
|
+
return hasAuthParamsInUrl$1() && !!afterSignInUrl && new URL(url.origin + url.pathname).toString() === new URL(afterSignInUrl).toString() || url.searchParams.get("error") !== null;
|
|
1313
1123
|
}
|
|
1314
1124
|
/**
|
|
1315
1125
|
* Root provider component for the ThunderID Vue SDK.
|
|
@@ -1330,11 +1140,11 @@ const ThunderIDProvider = defineComponent({
|
|
|
1330
1140
|
name: "ThunderIDProvider",
|
|
1331
1141
|
props: {
|
|
1332
1142
|
afterSignInUrl: {
|
|
1333
|
-
default:
|
|
1143
|
+
default: void 0,
|
|
1334
1144
|
type: String
|
|
1335
1145
|
},
|
|
1336
1146
|
afterSignOutUrl: {
|
|
1337
|
-
default:
|
|
1147
|
+
default: void 0,
|
|
1338
1148
|
type: String
|
|
1339
1149
|
},
|
|
1340
1150
|
applicationId: {
|
|
@@ -1412,7 +1222,6 @@ const ThunderIDProvider = defineComponent({
|
|
|
1412
1222
|
clientId: props.clientId,
|
|
1413
1223
|
organizationChain: props.organizationChain,
|
|
1414
1224
|
organizationHandle: props.organizationHandle,
|
|
1415
|
-
platform: props.platform,
|
|
1416
1225
|
scopes: props.scopes,
|
|
1417
1226
|
signInOptions: props.signInOptions,
|
|
1418
1227
|
signInUrl: props.signInUrl,
|
|
@@ -1431,28 +1240,13 @@ const ThunderIDProvider = defineComponent({
|
|
|
1431
1240
|
baseUrl = `${(await client.getConfiguration()).baseUrl}/o`;
|
|
1432
1241
|
resolvedBaseUrl.value = baseUrl;
|
|
1433
1242
|
}
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
};
|
|
1442
|
-
} else {
|
|
1443
|
-
try {
|
|
1444
|
-
user.value = await client.getUser({ baseUrl });
|
|
1445
|
-
} catch {}
|
|
1446
|
-
try {
|
|
1447
|
-
currentOrganization.value = await client.getCurrentOrganization();
|
|
1448
|
-
} catch {}
|
|
1449
|
-
try {
|
|
1450
|
-
myOrganizations.value = await client.getMyOrganizations({ baseUrl }) || [];
|
|
1451
|
-
} catch {}
|
|
1452
|
-
try {
|
|
1453
|
-
userProfile.value = await client.getUserProfile({ baseUrl });
|
|
1454
|
-
} catch {}
|
|
1455
|
-
}
|
|
1243
|
+
const claims = extractUserClaimsFromIdToken(decodedToken);
|
|
1244
|
+
user.value = claims;
|
|
1245
|
+
userProfile.value = {
|
|
1246
|
+
flattenedProfile: claims,
|
|
1247
|
+
profile: claims,
|
|
1248
|
+
schemas: []
|
|
1249
|
+
};
|
|
1456
1250
|
isSignedIn.value = await client.isSignedIn();
|
|
1457
1251
|
} catch {} finally {
|
|
1458
1252
|
isUpdatingSession = false;
|
|
@@ -1461,16 +1255,13 @@ const ThunderIDProvider = defineComponent({
|
|
|
1461
1255
|
}
|
|
1462
1256
|
async function signIn(...args) {
|
|
1463
1257
|
const arg1 = args[0];
|
|
1464
|
-
const isV2FlowRequest =
|
|
1258
|
+
const isV2FlowRequest = typeof arg1 === "object" && arg1 !== null && ("executionId" in arg1 || "applicationId" in arg1);
|
|
1465
1259
|
try {
|
|
1466
1260
|
if (!isV2FlowRequest) {
|
|
1467
1261
|
isUpdatingSession = true;
|
|
1468
1262
|
isLoading.value = true;
|
|
1469
1263
|
}
|
|
1470
|
-
|
|
1471
|
-
if (isV2FlowRequest || response && typeof response === "object" && "flowStatus" in response) return response;
|
|
1472
|
-
if (await client.isSignedIn()) await updateSession();
|
|
1473
|
-
return response;
|
|
1264
|
+
return await client.signIn(...args);
|
|
1474
1265
|
} catch (error) {
|
|
1475
1266
|
throw new ThunderIDRuntimeError$1(`Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`, "thunderid-signIn-Error", "vue", "An error occurred while trying to sign in.");
|
|
1476
1267
|
} finally {
|
|
@@ -1490,9 +1281,7 @@ const ThunderIDProvider = defineComponent({
|
|
|
1490
1281
|
try {
|
|
1491
1282
|
isUpdatingSession = true;
|
|
1492
1283
|
isLoading.value = true;
|
|
1493
|
-
|
|
1494
|
-
if (await client.isSignedIn()) await updateSession();
|
|
1495
|
-
return response;
|
|
1284
|
+
return await client.signInSilently(options);
|
|
1496
1285
|
} catch (error) {
|
|
1497
1286
|
throw new ThunderIDRuntimeError$1(`Error while signing in silently: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`, "thunderid-signInSilently-Error", "vue", "An error occurred while trying to sign in silently.");
|
|
1498
1287
|
} finally {
|
|
@@ -1536,7 +1325,7 @@ const ThunderIDProvider = defineComponent({
|
|
|
1536
1325
|
isSignedIn,
|
|
1537
1326
|
organization: currentOrganization,
|
|
1538
1327
|
organizationHandle: props.organizationHandle,
|
|
1539
|
-
platform:
|
|
1328
|
+
platform: Platform.ThunderID,
|
|
1540
1329
|
reInitialize: async (config) => {
|
|
1541
1330
|
const result = await client.reInitialize(config);
|
|
1542
1331
|
return typeof result === "boolean" ? result : true;
|
|
@@ -1556,24 +1345,24 @@ const ThunderIDProvider = defineComponent({
|
|
|
1556
1345
|
const config = buildConfig();
|
|
1557
1346
|
await client.initialize(config);
|
|
1558
1347
|
const initializedConfig = client.getConfiguration();
|
|
1559
|
-
if (initializedConfig?.platform) sessionStorage.setItem("thunderid_platform", initializedConfig.platform);
|
|
1560
1348
|
if (initializedConfig?.baseUrl) sessionStorage.setItem("thunderid_base_url", initializedConfig.baseUrl);
|
|
1561
1349
|
try {
|
|
1562
1350
|
isInitialized.value = await client.isInitialized();
|
|
1563
1351
|
} catch {
|
|
1564
1352
|
isInitialized.value = false;
|
|
1565
1353
|
}
|
|
1354
|
+
await client.on("sign-in", async () => {
|
|
1355
|
+
await updateSession();
|
|
1356
|
+
});
|
|
1566
1357
|
if (await client.isSignedIn()) await updateSession();
|
|
1567
1358
|
else {
|
|
1568
1359
|
const currentUrl = new URL(window.location.href);
|
|
1569
|
-
if (hasAuthParams(currentUrl,
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
if (code && !executionIdFromUrl && !storedExecutionId) await signIn();
|
|
1576
|
-
} else await signIn({ callOnlyOnRedirect: true });
|
|
1360
|
+
if (hasAuthParams(currentUrl, initializedConfig?.afterSignInUrl) && hasCalledForThisInstanceInUrl(props.instanceId ?? 0, currentUrl.search)) try {
|
|
1361
|
+
const urlParams = currentUrl.searchParams;
|
|
1362
|
+
const code = urlParams.get("code");
|
|
1363
|
+
const executionIdFromUrl = urlParams.get("executionId");
|
|
1364
|
+
const storedExecutionId = sessionStorage.getItem("thunderid_execution_id");
|
|
1365
|
+
if (code && !executionIdFromUrl && !storedExecutionId) await signIn();
|
|
1577
1366
|
} catch (error) {
|
|
1578
1367
|
throw new ThunderIDRuntimeError$1(`Sign in failed: ${error instanceof Error ? error.message : String(JSON.stringify(error))}`, "thunderid-signIn-Error", "vue", "An error occurred while trying to sign in.");
|
|
1579
1368
|
}
|
|
@@ -1596,7 +1385,7 @@ const ThunderIDProvider = defineComponent({
|
|
|
1596
1385
|
loadingCheckInterval = setInterval(() => {
|
|
1597
1386
|
if (isUpdatingSession) return;
|
|
1598
1387
|
const currentUrl = new URL(window.location.href);
|
|
1599
|
-
if (!isSignedIn.value && hasAuthParams(currentUrl,
|
|
1388
|
+
if (!isSignedIn.value && hasAuthParams(currentUrl, initializedConfig?.afterSignInUrl)) return;
|
|
1600
1389
|
isLoading.value = client.isLoading();
|
|
1601
1390
|
}, 100);
|
|
1602
1391
|
});
|
|
@@ -1604,7 +1393,7 @@ const ThunderIDProvider = defineComponent({
|
|
|
1604
1393
|
if (signInCheckInterval) clearInterval(signInCheckInterval);
|
|
1605
1394
|
if (loadingCheckInterval) clearInterval(loadingCheckInterval);
|
|
1606
1395
|
});
|
|
1607
|
-
return () => h(I18nProvider_default, null, { default: () => h(FlowMetaProvider_default, { enabled:
|
|
1396
|
+
return () => h(I18nProvider_default, null, { default: () => h(FlowMetaProvider_default, { enabled: true }, { default: () => h(BrandingProvider_default, null, { default: () => h(ThemeProvider_default, null, { default: () => h(FlowProvider_default, null, { default: () => h(UserProvider_default, {
|
|
1608
1397
|
onUpdateProfile: (updatedUser) => {
|
|
1609
1398
|
user.value = updatedUser;
|
|
1610
1399
|
userProfile.value = {
|
|
@@ -1615,20 +1404,14 @@ const ThunderIDProvider = defineComponent({
|
|
|
1615
1404
|
},
|
|
1616
1405
|
profile: userProfile.value,
|
|
1617
1406
|
revalidateProfile: async () => {
|
|
1618
|
-
if (buildConfig().platform === Platform.ThunderIDV2) {
|
|
1619
|
-
try {
|
|
1620
|
-
const claims = extractUserClaimsFromIdToken(await client.getDecodedIdToken());
|
|
1621
|
-
user.value = claims;
|
|
1622
|
-
userProfile.value = {
|
|
1623
|
-
flattenedProfile: claims,
|
|
1624
|
-
profile: claims,
|
|
1625
|
-
schemas: []
|
|
1626
|
-
};
|
|
1627
|
-
} catch {}
|
|
1628
|
-
return;
|
|
1629
|
-
}
|
|
1630
1407
|
try {
|
|
1631
|
-
|
|
1408
|
+
const claims = extractUserClaimsFromIdToken(await client.getDecodedIdToken());
|
|
1409
|
+
user.value = claims;
|
|
1410
|
+
userProfile.value = {
|
|
1411
|
+
flattenedProfile: claims,
|
|
1412
|
+
profile: claims,
|
|
1413
|
+
schemas: []
|
|
1414
|
+
};
|
|
1632
1415
|
} catch {}
|
|
1633
1416
|
}
|
|
1634
1417
|
}, { default: () => h(OrganizationProvider_default, {
|
|
@@ -1922,7 +1705,7 @@ var defaults_css_default = DEFAULTS_CSS;
|
|
|
1922
1705
|
/**
|
|
1923
1706
|
* Styles for the CreateOrganization presentation component.
|
|
1924
1707
|
*
|
|
1925
|
-
* BEM block: `.
|
|
1708
|
+
* BEM block: `.thunderid-create-organization`
|
|
1926
1709
|
*
|
|
1927
1710
|
* The root element is a Card, whose padding is intentionally kept
|
|
1928
1711
|
* as this is a full form panel.
|
|
@@ -1939,7 +1722,7 @@ const CREATE_ORGANIZATION_CSS = `
|
|
|
1939
1722
|
CreateOrganization
|
|
1940
1723
|
============================================================ */
|
|
1941
1724
|
|
|
1942
|
-
.
|
|
1725
|
+
.thunderid-create-organization {
|
|
1943
1726
|
display: flex;
|
|
1944
1727
|
flex-direction: column;
|
|
1945
1728
|
gap: calc(var(--thunder-spacing-unit) * 1.75);
|
|
@@ -1949,20 +1732,20 @@ const CREATE_ORGANIZATION_CSS = `
|
|
|
1949
1732
|
|
|
1950
1733
|
/* Title & description --------------------------------------- */
|
|
1951
1734
|
|
|
1952
|
-
.
|
|
1735
|
+
.thunderid-create-organization__description {
|
|
1953
1736
|
margin-top: calc(var(--thunder-spacing-unit) * -0.75);
|
|
1954
1737
|
color: var(--thunder-color-text-secondary);
|
|
1955
1738
|
}
|
|
1956
1739
|
|
|
1957
1740
|
/* Input ----------------------------------------------------- */
|
|
1958
1741
|
|
|
1959
|
-
.
|
|
1742
|
+
.thunderid-create-organization__input {
|
|
1960
1743
|
width: 100%;
|
|
1961
1744
|
}
|
|
1962
1745
|
|
|
1963
1746
|
/* Submit ---------------------------------------------------- */
|
|
1964
1747
|
|
|
1965
|
-
.
|
|
1748
|
+
.thunderid-create-organization__submit {
|
|
1966
1749
|
align-self: flex-start;
|
|
1967
1750
|
}
|
|
1968
1751
|
`;
|
|
@@ -1990,9 +1773,9 @@ var CreateOrganization_css_default = CREATE_ORGANIZATION_CSS;
|
|
|
1990
1773
|
/**
|
|
1991
1774
|
* Styles for the LanguageSwitcher presentation component.
|
|
1992
1775
|
*
|
|
1993
|
-
* BEM block: `.
|
|
1776
|
+
* BEM block: `.thunderid-language-switcher`
|
|
1994
1777
|
*
|
|
1995
|
-
* The root element is a Card (`.
|
|
1778
|
+
* The root element is a Card (`.thunderid-card`). We override its default
|
|
1996
1779
|
* padding to 0 so the trigger button fills the surface edge-to-edge,
|
|
1997
1780
|
* and apply `position: relative` to anchor the absolute dropdown.
|
|
1998
1781
|
* The Card's border-radius and shadow are intentionally kept.
|
|
@@ -2010,7 +1793,7 @@ const LANGUAGE_SWITCHER_CSS = `
|
|
|
2010
1793
|
============================================================ */
|
|
2011
1794
|
|
|
2012
1795
|
/* Override Card's default padding so the trigger fills the surface */
|
|
2013
|
-
.
|
|
1796
|
+
.thunderid-language-switcher.thunderid-card {
|
|
2014
1797
|
padding: 0;
|
|
2015
1798
|
position: relative;
|
|
2016
1799
|
display: inline-block;
|
|
@@ -2018,7 +1801,7 @@ const LANGUAGE_SWITCHER_CSS = `
|
|
|
2018
1801
|
|
|
2019
1802
|
/* Trigger ---------------------------------------------------- */
|
|
2020
1803
|
|
|
2021
|
-
.
|
|
1804
|
+
.thunderid-language-switcher__trigger {
|
|
2022
1805
|
display: inline-flex;
|
|
2023
1806
|
align-items: center;
|
|
2024
1807
|
gap: calc(var(--thunder-spacing-unit) * 0.5);
|
|
@@ -2035,23 +1818,23 @@ const LANGUAGE_SWITCHER_CSS = `
|
|
|
2035
1818
|
box-sizing: border-box;
|
|
2036
1819
|
}
|
|
2037
1820
|
|
|
2038
|
-
.
|
|
1821
|
+
.thunderid-language-switcher__trigger:hover {
|
|
2039
1822
|
background-color: var(--thunder-color-action-hover);
|
|
2040
1823
|
}
|
|
2041
1824
|
|
|
2042
|
-
.
|
|
1825
|
+
.thunderid-language-switcher__trigger:focus-visible {
|
|
2043
1826
|
outline: none;
|
|
2044
1827
|
box-shadow: inset 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
|
|
2045
1828
|
border-radius: var(--thunder-dropdown-borderRadius);
|
|
2046
1829
|
}
|
|
2047
1830
|
|
|
2048
|
-
.
|
|
1831
|
+
.thunderid-language-switcher__trigger-label {
|
|
2049
1832
|
flex: 0 0 auto;
|
|
2050
1833
|
}
|
|
2051
1834
|
|
|
2052
1835
|
/* Dropdown --------------------------------------------------- */
|
|
2053
1836
|
|
|
2054
|
-
.
|
|
1837
|
+
.thunderid-language-switcher__dropdown {
|
|
2055
1838
|
position: absolute;
|
|
2056
1839
|
top: calc(100% + calc(var(--thunder-spacing-unit) * 0.5));
|
|
2057
1840
|
right: 0;
|
|
@@ -2069,7 +1852,7 @@ const LANGUAGE_SWITCHER_CSS = `
|
|
|
2069
1852
|
|
|
2070
1853
|
/* Items ----------------------------------------------------- */
|
|
2071
1854
|
|
|
2072
|
-
.
|
|
1855
|
+
.thunderid-language-switcher__item {
|
|
2073
1856
|
display: flex;
|
|
2074
1857
|
align-items: center;
|
|
2075
1858
|
width: 100%;
|
|
@@ -2085,17 +1868,17 @@ const LANGUAGE_SWITCHER_CSS = `
|
|
|
2085
1868
|
box-sizing: border-box;
|
|
2086
1869
|
}
|
|
2087
1870
|
|
|
2088
|
-
.
|
|
1871
|
+
.thunderid-language-switcher__item:hover {
|
|
2089
1872
|
background-color: var(--thunder-color-action-hover);
|
|
2090
1873
|
}
|
|
2091
1874
|
|
|
2092
|
-
.
|
|
1875
|
+
.thunderid-language-switcher__item--active {
|
|
2093
1876
|
background-color: var(--thunder-color-action-selected);
|
|
2094
1877
|
color: var(--thunder-color-primary-main);
|
|
2095
1878
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
2096
1879
|
}
|
|
2097
1880
|
|
|
2098
|
-
.
|
|
1881
|
+
.thunderid-language-switcher__item--active:hover {
|
|
2099
1882
|
background-color: var(--thunder-color-action-focus);
|
|
2100
1883
|
}
|
|
2101
1884
|
`;
|
|
@@ -2123,7 +1906,7 @@ var LanguageSwitcher_css_default = LANGUAGE_SWITCHER_CSS;
|
|
|
2123
1906
|
/**
|
|
2124
1907
|
* Styles for the OrganizationList presentation component.
|
|
2125
1908
|
*
|
|
2126
|
-
* BEM block: `.
|
|
1909
|
+
* BEM block: `.thunderid-organization-list`
|
|
2127
1910
|
*
|
|
2128
1911
|
* The root element is a plain `div`. There is no Card wrapper here,
|
|
2129
1912
|
* so this file provides the full layout including border and spacing.
|
|
@@ -2138,7 +1921,7 @@ const ORGANIZATION_LIST_CSS = `
|
|
|
2138
1921
|
OrganizationList
|
|
2139
1922
|
============================================================ */
|
|
2140
1923
|
|
|
2141
|
-
.
|
|
1924
|
+
.thunderid-organization-list {
|
|
2142
1925
|
display: flex;
|
|
2143
1926
|
flex-direction: column;
|
|
2144
1927
|
gap: calc(var(--thunder-spacing-unit) * 0.5);
|
|
@@ -2147,8 +1930,8 @@ const ORGANIZATION_LIST_CSS = `
|
|
|
2147
1930
|
|
|
2148
1931
|
/* Loading / Empty ------------------------------------------- */
|
|
2149
1932
|
|
|
2150
|
-
.
|
|
2151
|
-
.
|
|
1933
|
+
.thunderid-organization-list__loading,
|
|
1934
|
+
.thunderid-organization-list__empty {
|
|
2152
1935
|
display: flex;
|
|
2153
1936
|
align-items: center;
|
|
2154
1937
|
justify-content: center;
|
|
@@ -2158,7 +1941,7 @@ const ORGANIZATION_LIST_CSS = `
|
|
|
2158
1941
|
|
|
2159
1942
|
/* Items ----------------------------------------------------- */
|
|
2160
1943
|
|
|
2161
|
-
.
|
|
1944
|
+
.thunderid-organization-list__item {
|
|
2162
1945
|
display: flex;
|
|
2163
1946
|
align-items: center;
|
|
2164
1947
|
gap: calc(var(--thunder-spacing-unit) * 1.25);
|
|
@@ -2179,12 +1962,12 @@ const ORGANIZATION_LIST_CSS = `
|
|
|
2179
1962
|
box-sizing: border-box;
|
|
2180
1963
|
}
|
|
2181
1964
|
|
|
2182
|
-
.
|
|
1965
|
+
.thunderid-organization-list__item:hover {
|
|
2183
1966
|
background-color: var(--thunder-color-primary-light);
|
|
2184
1967
|
border-color: var(--thunder-color-primary-main);
|
|
2185
1968
|
}
|
|
2186
1969
|
|
|
2187
|
-
.
|
|
1970
|
+
.thunderid-organization-list__item:focus-visible {
|
|
2188
1971
|
outline: none;
|
|
2189
1972
|
box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
|
|
2190
1973
|
}
|
|
@@ -2213,14 +1996,14 @@ var OrganizationList_css_default = ORGANIZATION_LIST_CSS;
|
|
|
2213
1996
|
/**
|
|
2214
1997
|
* Styles for the OrganizationProfile presentation component.
|
|
2215
1998
|
*
|
|
2216
|
-
* BEM block: `.
|
|
1999
|
+
* BEM block: `.thunderid-organization-profile`
|
|
2217
2000
|
*/
|
|
2218
2001
|
const ORGANIZATION_PROFILE_CSS = `
|
|
2219
2002
|
/* ============================================================
|
|
2220
2003
|
OrganizationProfile
|
|
2221
2004
|
============================================================ */
|
|
2222
2005
|
|
|
2223
|
-
.
|
|
2006
|
+
.thunderid-organization-profile {
|
|
2224
2007
|
display: flex;
|
|
2225
2008
|
flex-direction: column;
|
|
2226
2009
|
min-width: 320px;
|
|
@@ -2230,22 +2013,22 @@ const ORGANIZATION_PROFILE_CSS = `
|
|
|
2230
2013
|
|
|
2231
2014
|
/* Header: title + divider ------------------------------------ */
|
|
2232
2015
|
|
|
2233
|
-
.
|
|
2016
|
+
.thunderid-organization-profile__header {
|
|
2234
2017
|
padding: calc(var(--thunder-spacing-unit) * 2) calc(var(--thunder-spacing-unit) * 2.5);
|
|
2235
2018
|
padding-bottom: calc(var(--thunder-spacing-unit) * 1.5);
|
|
2236
2019
|
}
|
|
2237
2020
|
|
|
2238
|
-
.
|
|
2021
|
+
.thunderid-organization-profile__title {
|
|
2239
2022
|
margin: 0;
|
|
2240
2023
|
}
|
|
2241
2024
|
|
|
2242
|
-
.
|
|
2025
|
+
.thunderid-organization-profile__header-divider {
|
|
2243
2026
|
margin: 0;
|
|
2244
2027
|
}
|
|
2245
2028
|
|
|
2246
2029
|
/* Identity: avatar + org name + handle ----------------------- */
|
|
2247
2030
|
|
|
2248
|
-
.
|
|
2031
|
+
.thunderid-organization-profile__identity {
|
|
2249
2032
|
display: flex;
|
|
2250
2033
|
flex-direction: column;
|
|
2251
2034
|
align-items: center;
|
|
@@ -2253,7 +2036,7 @@ const ORGANIZATION_PROFILE_CSS = `
|
|
|
2253
2036
|
gap: calc(var(--thunder-spacing-unit) * 0.5);
|
|
2254
2037
|
}
|
|
2255
2038
|
|
|
2256
|
-
.
|
|
2039
|
+
.thunderid-organization-profile__avatar {
|
|
2257
2040
|
width: var(--thunder-avatar-size);
|
|
2258
2041
|
height: var(--thunder-avatar-size);
|
|
2259
2042
|
border-radius: 50%;
|
|
@@ -2264,7 +2047,7 @@ const ORGANIZATION_PROFILE_CSS = `
|
|
|
2264
2047
|
margin-bottom: calc(var(--thunder-spacing-unit) * 0.375);
|
|
2265
2048
|
}
|
|
2266
2049
|
|
|
2267
|
-
.
|
|
2050
|
+
.thunderid-organization-profile__avatar-initials {
|
|
2268
2051
|
color: #ffffff;
|
|
2269
2052
|
font-size: var(--thunder-avatar-fontSize);
|
|
2270
2053
|
font-weight: 600;
|
|
@@ -2274,28 +2057,28 @@ const ORGANIZATION_PROFILE_CSS = `
|
|
|
2274
2057
|
user-select: none;
|
|
2275
2058
|
}
|
|
2276
2059
|
|
|
2277
|
-
.
|
|
2060
|
+
.thunderid-organization-profile__org-name {
|
|
2278
2061
|
margin: 0;
|
|
2279
2062
|
text-align: center;
|
|
2280
2063
|
}
|
|
2281
2064
|
|
|
2282
|
-
.
|
|
2065
|
+
.thunderid-organization-profile__org-handle {
|
|
2283
2066
|
color: var(--thunder-color-text-secondary);
|
|
2284
2067
|
text-align: center;
|
|
2285
2068
|
}
|
|
2286
2069
|
|
|
2287
|
-
.
|
|
2070
|
+
.thunderid-organization-profile__identity-divider {
|
|
2288
2071
|
margin: 0;
|
|
2289
2072
|
}
|
|
2290
2073
|
|
|
2291
2074
|
/* Fields ---------------------------------------------------- */
|
|
2292
2075
|
|
|
2293
|
-
.
|
|
2076
|
+
.thunderid-organization-profile__fields {
|
|
2294
2077
|
display: flex;
|
|
2295
2078
|
flex-direction: column;
|
|
2296
2079
|
}
|
|
2297
2080
|
|
|
2298
|
-
.
|
|
2081
|
+
.thunderid-organization-profile__field {
|
|
2299
2082
|
display: grid;
|
|
2300
2083
|
grid-template-columns: 36% 64%;
|
|
2301
2084
|
align-items: center;
|
|
@@ -2305,28 +2088,28 @@ const ORGANIZATION_PROFILE_CSS = `
|
|
|
2305
2088
|
transition: background-color var(--thunder-transition-fast);
|
|
2306
2089
|
}
|
|
2307
2090
|
|
|
2308
|
-
.
|
|
2091
|
+
.thunderid-organization-profile__field:hover {
|
|
2309
2092
|
background-color: var(--thunder-color-action-hover);
|
|
2310
2093
|
}
|
|
2311
2094
|
|
|
2312
|
-
.
|
|
2095
|
+
.thunderid-organization-profile__field + .thunderid-organization-profile__field {
|
|
2313
2096
|
border-top: 1px solid var(--thunder-color-border);
|
|
2314
2097
|
}
|
|
2315
2098
|
|
|
2316
|
-
.
|
|
2099
|
+
.thunderid-organization-profile__field-label-col {
|
|
2317
2100
|
/* label column */
|
|
2318
2101
|
}
|
|
2319
2102
|
|
|
2320
|
-
.
|
|
2103
|
+
.thunderid-organization-profile__field-label {
|
|
2321
2104
|
color: var(--thunder-color-text-secondary);
|
|
2322
2105
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
2323
2106
|
}
|
|
2324
2107
|
|
|
2325
|
-
.
|
|
2108
|
+
.thunderid-organization-profile__field-value-col {
|
|
2326
2109
|
/* value column */
|
|
2327
2110
|
}
|
|
2328
2111
|
|
|
2329
|
-
.
|
|
2112
|
+
.thunderid-organization-profile__field-display {
|
|
2330
2113
|
display: flex;
|
|
2331
2114
|
align-items: center;
|
|
2332
2115
|
justify-content: space-between;
|
|
@@ -2334,21 +2117,21 @@ const ORGANIZATION_PROFILE_CSS = `
|
|
|
2334
2117
|
min-height: 1.5rem;
|
|
2335
2118
|
}
|
|
2336
2119
|
|
|
2337
|
-
.
|
|
2120
|
+
.thunderid-organization-profile__field-value {
|
|
2338
2121
|
color: var(--thunder-color-text-primary);
|
|
2339
2122
|
word-break: break-word;
|
|
2340
2123
|
flex: 1;
|
|
2341
2124
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
2342
2125
|
}
|
|
2343
2126
|
|
|
2344
|
-
.
|
|
2127
|
+
.thunderid-organization-profile__field-value--id {
|
|
2345
2128
|
font-size: calc(var(--thunder-typography-fontSize-sm) * 0.9);
|
|
2346
2129
|
color: var(--thunder-color-text-secondary);
|
|
2347
2130
|
font-family: monospace;
|
|
2348
2131
|
word-break: break-all;
|
|
2349
2132
|
}
|
|
2350
2133
|
|
|
2351
|
-
.
|
|
2134
|
+
.thunderid-organization-profile__field-placeholder {
|
|
2352
2135
|
color: var(--thunder-color-primary-main);
|
|
2353
2136
|
font-style: italic;
|
|
2354
2137
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
@@ -2361,7 +2144,7 @@ const ORGANIZATION_PROFILE_CSS = `
|
|
|
2361
2144
|
|
|
2362
2145
|
/* Edit button (pencil icon) --------------------------------- */
|
|
2363
2146
|
|
|
2364
|
-
.
|
|
2147
|
+
.thunderid-organization-profile__field-edit-btn {
|
|
2365
2148
|
display: inline-flex;
|
|
2366
2149
|
align-items: center;
|
|
2367
2150
|
justify-content: center;
|
|
@@ -2380,16 +2163,16 @@ const ORGANIZATION_PROFILE_CSS = `
|
|
|
2380
2163
|
line-height: 0;
|
|
2381
2164
|
}
|
|
2382
2165
|
|
|
2383
|
-
.
|
|
2166
|
+
.thunderid-organization-profile__field:hover .thunderid-organization-profile__field-edit-btn {
|
|
2384
2167
|
opacity: 1;
|
|
2385
2168
|
}
|
|
2386
2169
|
|
|
2387
|
-
.
|
|
2170
|
+
.thunderid-organization-profile__field-edit-btn:hover {
|
|
2388
2171
|
color: var(--thunder-color-primary-main);
|
|
2389
2172
|
background-color: var(--thunder-color-primary-light);
|
|
2390
2173
|
}
|
|
2391
2174
|
|
|
2392
|
-
.
|
|
2175
|
+
.thunderid-organization-profile__field-edit-btn:focus-visible {
|
|
2393
2176
|
opacity: 1;
|
|
2394
2177
|
outline: none;
|
|
2395
2178
|
box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
|
|
@@ -2397,13 +2180,13 @@ const ORGANIZATION_PROFILE_CSS = `
|
|
|
2397
2180
|
|
|
2398
2181
|
/* Edit mode ------------------------------------------------- */
|
|
2399
2182
|
|
|
2400
|
-
.
|
|
2183
|
+
.thunderid-organization-profile__field-edit {
|
|
2401
2184
|
display: flex;
|
|
2402
2185
|
flex-direction: column;
|
|
2403
2186
|
gap: calc(var(--thunder-spacing-unit) * 0.75);
|
|
2404
2187
|
}
|
|
2405
2188
|
|
|
2406
|
-
.
|
|
2189
|
+
.thunderid-organization-profile__field-edit-actions {
|
|
2407
2190
|
display: flex;
|
|
2408
2191
|
align-items: center;
|
|
2409
2192
|
gap: calc(var(--thunder-spacing-unit) * 0.75);
|
|
@@ -2433,9 +2216,9 @@ var OrganizationProfile_css_default = ORGANIZATION_PROFILE_CSS;
|
|
|
2433
2216
|
/**
|
|
2434
2217
|
* Styles for the OrganizationSwitcher presentation component.
|
|
2435
2218
|
*
|
|
2436
|
-
* BEM block: `.
|
|
2219
|
+
* BEM block: `.thunderid-organization-switcher`
|
|
2437
2220
|
*
|
|
2438
|
-
* The root element is a Card (`.
|
|
2221
|
+
* The root element is a Card (`.thunderid-card`), so we override its
|
|
2439
2222
|
* default padding to let the trigger button fill the surface edge-to-edge,
|
|
2440
2223
|
* and apply `position: relative` to anchor the absolute dropdown.
|
|
2441
2224
|
*
|
|
@@ -2456,7 +2239,7 @@ const ORGANIZATION_SWITCHER_CSS = `
|
|
|
2456
2239
|
============================================================ */
|
|
2457
2240
|
|
|
2458
2241
|
/* Override Card's default padding so the trigger button fills the surface */
|
|
2459
|
-
.
|
|
2242
|
+
.thunderid-organization-switcher.thunderid-card {
|
|
2460
2243
|
padding: 0;
|
|
2461
2244
|
position: relative;
|
|
2462
2245
|
display: inline-block;
|
|
@@ -2465,7 +2248,7 @@ const ORGANIZATION_SWITCHER_CSS = `
|
|
|
2465
2248
|
|
|
2466
2249
|
/* Trigger ---------------------------------------------------- */
|
|
2467
2250
|
|
|
2468
|
-
.
|
|
2251
|
+
.thunderid-organization-switcher__trigger {
|
|
2469
2252
|
display: flex;
|
|
2470
2253
|
align-items: center;
|
|
2471
2254
|
gap: calc(var(--thunder-spacing-unit) * 0.75);
|
|
@@ -2483,17 +2266,17 @@ const ORGANIZATION_SWITCHER_CSS = `
|
|
|
2483
2266
|
box-sizing: border-box;
|
|
2484
2267
|
}
|
|
2485
2268
|
|
|
2486
|
-
.
|
|
2269
|
+
.thunderid-organization-switcher__trigger:hover {
|
|
2487
2270
|
background-color: var(--thunder-color-action-hover);
|
|
2488
2271
|
}
|
|
2489
2272
|
|
|
2490
|
-
.
|
|
2273
|
+
.thunderid-organization-switcher__trigger:focus-visible {
|
|
2491
2274
|
outline: none;
|
|
2492
2275
|
box-shadow: inset 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
|
|
2493
2276
|
border-radius: var(--thunder-dropdown-borderRadius);
|
|
2494
2277
|
}
|
|
2495
2278
|
|
|
2496
|
-
.
|
|
2279
|
+
.thunderid-organization-switcher__trigger-label {
|
|
2497
2280
|
flex: 1;
|
|
2498
2281
|
text-align: left;
|
|
2499
2282
|
overflow: hidden;
|
|
@@ -2503,7 +2286,7 @@ const ORGANIZATION_SWITCHER_CSS = `
|
|
|
2503
2286
|
|
|
2504
2287
|
/* Dropdown --------------------------------------------------- */
|
|
2505
2288
|
|
|
2506
|
-
.
|
|
2289
|
+
.thunderid-organization-switcher__dropdown {
|
|
2507
2290
|
position: absolute;
|
|
2508
2291
|
top: calc(100% + calc(var(--thunder-spacing-unit) * 0.5));
|
|
2509
2292
|
left: 0;
|
|
@@ -2522,8 +2305,8 @@ const ORGANIZATION_SWITCHER_CSS = `
|
|
|
2522
2305
|
|
|
2523
2306
|
/* Loading / Empty states ------------------------------------ */
|
|
2524
2307
|
|
|
2525
|
-
.
|
|
2526
|
-
.
|
|
2308
|
+
.thunderid-organization-switcher__loading,
|
|
2309
|
+
.thunderid-organization-switcher__empty {
|
|
2527
2310
|
display: flex;
|
|
2528
2311
|
align-items: center;
|
|
2529
2312
|
justify-content: center;
|
|
@@ -2533,7 +2316,7 @@ const ORGANIZATION_SWITCHER_CSS = `
|
|
|
2533
2316
|
|
|
2534
2317
|
/* Items ----------------------------------------------------- */
|
|
2535
2318
|
|
|
2536
|
-
.
|
|
2319
|
+
.thunderid-organization-switcher__item {
|
|
2537
2320
|
display: flex;
|
|
2538
2321
|
align-items: center;
|
|
2539
2322
|
gap: calc(var(--thunder-spacing-unit) * 0.75);
|
|
@@ -2550,17 +2333,17 @@ const ORGANIZATION_SWITCHER_CSS = `
|
|
|
2550
2333
|
box-sizing: border-box;
|
|
2551
2334
|
}
|
|
2552
2335
|
|
|
2553
|
-
.
|
|
2336
|
+
.thunderid-organization-switcher__item:hover {
|
|
2554
2337
|
background-color: var(--thunder-color-action-hover);
|
|
2555
2338
|
}
|
|
2556
2339
|
|
|
2557
|
-
.
|
|
2340
|
+
.thunderid-organization-switcher__item--active {
|
|
2558
2341
|
background-color: var(--thunder-color-action-selected);
|
|
2559
2342
|
color: var(--thunder-color-primary-main);
|
|
2560
2343
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
2561
2344
|
}
|
|
2562
2345
|
|
|
2563
|
-
.
|
|
2346
|
+
.thunderid-organization-switcher__item--active:hover {
|
|
2564
2347
|
background-color: var(--thunder-color-action-focus);
|
|
2565
2348
|
}
|
|
2566
2349
|
`;
|
|
@@ -2588,7 +2371,7 @@ var OrganizationSwitcher_css_default = ORGANIZATION_SWITCHER_CSS;
|
|
|
2588
2371
|
/**
|
|
2589
2372
|
* Styles for the UserDropdown presentation component.
|
|
2590
2373
|
*
|
|
2591
|
-
* BEM block: `.
|
|
2374
|
+
* BEM block: `.thunderid-user-dropdown`
|
|
2592
2375
|
*
|
|
2593
2376
|
* Trigger modifiers:
|
|
2594
2377
|
* __trigger--open – ring + border while menu is visible
|
|
@@ -2616,7 +2399,7 @@ const USER_DROPDOWN_CSS = `
|
|
|
2616
2399
|
UserDropdown
|
|
2617
2400
|
============================================================ */
|
|
2618
2401
|
|
|
2619
|
-
.
|
|
2402
|
+
.thunderid-user-dropdown {
|
|
2620
2403
|
position: relative;
|
|
2621
2404
|
display: inline-block;
|
|
2622
2405
|
font-family: var(--thunder-typography-fontFamily);
|
|
@@ -2624,7 +2407,7 @@ const USER_DROPDOWN_CSS = `
|
|
|
2624
2407
|
|
|
2625
2408
|
/* ── Trigger ─────────────────────────────────────────────────── */
|
|
2626
2409
|
|
|
2627
|
-
.
|
|
2410
|
+
.thunderid-user-dropdown__trigger {
|
|
2628
2411
|
display: inline-flex;
|
|
2629
2412
|
align-items: center;
|
|
2630
2413
|
gap: calc(var(--thunder-spacing-unit) * 0.5);
|
|
@@ -2641,23 +2424,23 @@ const USER_DROPDOWN_CSS = `
|
|
|
2641
2424
|
outline: none;
|
|
2642
2425
|
}
|
|
2643
2426
|
|
|
2644
|
-
.
|
|
2427
|
+
.thunderid-user-dropdown__trigger:hover {
|
|
2645
2428
|
border-color: var(--thunder-color-primary-main);
|
|
2646
2429
|
}
|
|
2647
2430
|
|
|
2648
|
-
.
|
|
2431
|
+
.thunderid-user-dropdown__trigger--open {
|
|
2649
2432
|
border-color: var(--thunder-color-primary-main);
|
|
2650
2433
|
box-shadow: 0 0 0 3px var(--thunder-focus-ring-color);
|
|
2651
2434
|
}
|
|
2652
2435
|
|
|
2653
|
-
.
|
|
2436
|
+
.thunderid-user-dropdown__trigger:focus-visible {
|
|
2654
2437
|
border-color: var(--thunder-color-primary-main);
|
|
2655
2438
|
box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
|
|
2656
2439
|
}
|
|
2657
2440
|
|
|
2658
2441
|
/* ── Trigger avatar ──────────────────────────────────────────── */
|
|
2659
2442
|
|
|
2660
|
-
.
|
|
2443
|
+
.thunderid-user-dropdown__avatar {
|
|
2661
2444
|
display: flex;
|
|
2662
2445
|
align-items: center;
|
|
2663
2446
|
justify-content: center;
|
|
@@ -2674,14 +2457,14 @@ const USER_DROPDOWN_CSS = `
|
|
|
2674
2457
|
}
|
|
2675
2458
|
|
|
2676
2459
|
/* sm — 28 px */
|
|
2677
|
-
.
|
|
2460
|
+
.thunderid-user-dropdown__avatar--sm {
|
|
2678
2461
|
width: 28px;
|
|
2679
2462
|
height: 28px;
|
|
2680
2463
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
2681
2464
|
}
|
|
2682
2465
|
|
|
2683
2466
|
/* lg — 38 px */
|
|
2684
|
-
.
|
|
2467
|
+
.thunderid-user-dropdown__avatar--lg {
|
|
2685
2468
|
width: 38px;
|
|
2686
2469
|
height: 38px;
|
|
2687
2470
|
font-size: var(--thunder-typography-fontSize-md);
|
|
@@ -2689,7 +2472,7 @@ const USER_DROPDOWN_CSS = `
|
|
|
2689
2472
|
|
|
2690
2473
|
/* ── Chevron ─────────────────────────────────────────────────── */
|
|
2691
2474
|
|
|
2692
|
-
.
|
|
2475
|
+
.thunderid-user-dropdown__chevron {
|
|
2693
2476
|
display: inline-flex;
|
|
2694
2477
|
align-items: center;
|
|
2695
2478
|
color: var(--thunder-color-text-secondary);
|
|
@@ -2697,13 +2480,13 @@ const USER_DROPDOWN_CSS = `
|
|
|
2697
2480
|
padding-right: calc(var(--thunder-spacing-unit) * 0.25);
|
|
2698
2481
|
}
|
|
2699
2482
|
|
|
2700
|
-
.
|
|
2483
|
+
.thunderid-user-dropdown__trigger--open .thunderid-user-dropdown__chevron {
|
|
2701
2484
|
transform: rotate(180deg);
|
|
2702
2485
|
}
|
|
2703
2486
|
|
|
2704
2487
|
/* ── Dropdown menu ───────────────────────────────────────────── */
|
|
2705
2488
|
|
|
2706
|
-
.
|
|
2489
|
+
.thunderid-user-dropdown__menu {
|
|
2707
2490
|
position: absolute;
|
|
2708
2491
|
top: calc(100% + calc(var(--thunder-spacing-unit) * 0.75));
|
|
2709
2492
|
right: 0;
|
|
@@ -2721,51 +2504,51 @@ const USER_DROPDOWN_CSS = `
|
|
|
2721
2504
|
|
|
2722
2505
|
/* Alignment */
|
|
2723
2506
|
|
|
2724
|
-
.
|
|
2507
|
+
.thunderid-user-dropdown__menu--align-left {
|
|
2725
2508
|
right: auto;
|
|
2726
2509
|
left: 0;
|
|
2727
2510
|
}
|
|
2728
2511
|
|
|
2729
2512
|
/* Size: sm */
|
|
2730
2513
|
|
|
2731
|
-
.
|
|
2514
|
+
.thunderid-user-dropdown__menu--size-sm {
|
|
2732
2515
|
min-width: 180px;
|
|
2733
2516
|
}
|
|
2734
2517
|
|
|
2735
|
-
.
|
|
2518
|
+
.thunderid-user-dropdown__menu--size-sm .thunderid-user-dropdown__menu-header {
|
|
2736
2519
|
padding: calc(var(--thunder-spacing-unit) * 1.25) calc(var(--thunder-spacing-unit) * 1.5);
|
|
2737
2520
|
gap: calc(var(--thunder-spacing-unit) * 1);
|
|
2738
2521
|
}
|
|
2739
2522
|
|
|
2740
|
-
.
|
|
2523
|
+
.thunderid-user-dropdown__menu--size-sm .thunderid-user-dropdown__menu-header-avatar {
|
|
2741
2524
|
width: 30px;
|
|
2742
2525
|
height: 30px;
|
|
2743
2526
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
2744
2527
|
}
|
|
2745
2528
|
|
|
2746
|
-
.
|
|
2529
|
+
.thunderid-user-dropdown__menu--size-sm .thunderid-user-dropdown__item {
|
|
2747
2530
|
padding: calc(var(--thunder-spacing-unit) * 0.75) calc(var(--thunder-spacing-unit) * 1.5);
|
|
2748
2531
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
2749
2532
|
}
|
|
2750
2533
|
|
|
2751
2534
|
/* Size: lg */
|
|
2752
2535
|
|
|
2753
|
-
.
|
|
2536
|
+
.thunderid-user-dropdown__menu--size-lg {
|
|
2754
2537
|
min-width: 280px;
|
|
2755
2538
|
}
|
|
2756
2539
|
|
|
2757
|
-
.
|
|
2540
|
+
.thunderid-user-dropdown__menu--size-lg .thunderid-user-dropdown__menu-header {
|
|
2758
2541
|
padding: calc(var(--thunder-spacing-unit) * 2) calc(var(--thunder-spacing-unit) * 2);
|
|
2759
2542
|
gap: calc(var(--thunder-spacing-unit) * 1.5);
|
|
2760
2543
|
}
|
|
2761
2544
|
|
|
2762
|
-
.
|
|
2545
|
+
.thunderid-user-dropdown__menu--size-lg .thunderid-user-dropdown__menu-header-avatar {
|
|
2763
2546
|
width: 42px;
|
|
2764
2547
|
height: 42px;
|
|
2765
2548
|
font-size: var(--thunder-typography-fontSize-lg);
|
|
2766
2549
|
}
|
|
2767
2550
|
|
|
2768
|
-
.
|
|
2551
|
+
.thunderid-user-dropdown__menu--size-lg .thunderid-user-dropdown__item {
|
|
2769
2552
|
padding: calc(var(--thunder-spacing-unit) * 1.25) calc(var(--thunder-spacing-unit) * 2);
|
|
2770
2553
|
font-size: var(--thunder-typography-fontSize-md);
|
|
2771
2554
|
}
|
|
@@ -2783,14 +2566,14 @@ const USER_DROPDOWN_CSS = `
|
|
|
2783
2566
|
|
|
2784
2567
|
/* ── Menu header (user identity) ─────────────────────────────── */
|
|
2785
2568
|
|
|
2786
|
-
.
|
|
2569
|
+
.thunderid-user-dropdown__menu-header {
|
|
2787
2570
|
display: flex;
|
|
2788
2571
|
align-items: center;
|
|
2789
2572
|
gap: calc(var(--thunder-spacing-unit) * 1.25);
|
|
2790
2573
|
padding: calc(var(--thunder-spacing-unit) * 1.5) calc(var(--thunder-spacing-unit) * 1.75);
|
|
2791
2574
|
}
|
|
2792
2575
|
|
|
2793
|
-
.
|
|
2576
|
+
.thunderid-user-dropdown__menu-header-avatar {
|
|
2794
2577
|
display: flex;
|
|
2795
2578
|
align-items: center;
|
|
2796
2579
|
justify-content: center;
|
|
@@ -2805,14 +2588,14 @@ const USER_DROPDOWN_CSS = `
|
|
|
2805
2588
|
user-select: none;
|
|
2806
2589
|
}
|
|
2807
2590
|
|
|
2808
|
-
.
|
|
2591
|
+
.thunderid-user-dropdown__menu-header-info {
|
|
2809
2592
|
display: flex;
|
|
2810
2593
|
flex-direction: column;
|
|
2811
2594
|
gap: 2px;
|
|
2812
2595
|
min-width: 0;
|
|
2813
2596
|
}
|
|
2814
2597
|
|
|
2815
|
-
.
|
|
2598
|
+
.thunderid-user-dropdown__menu-header-name {
|
|
2816
2599
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
2817
2600
|
font-weight: var(--thunder-typography-fontWeight-semibold);
|
|
2818
2601
|
color: var(--thunder-color-text-primary);
|
|
@@ -2822,7 +2605,7 @@ const USER_DROPDOWN_CSS = `
|
|
|
2822
2605
|
line-height: var(--thunder-typography-lineHeight-tight);
|
|
2823
2606
|
}
|
|
2824
2607
|
|
|
2825
|
-
.
|
|
2608
|
+
.thunderid-user-dropdown__menu-header-subtitle {
|
|
2826
2609
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
2827
2610
|
color: var(--thunder-color-text-secondary);
|
|
2828
2611
|
white-space: nowrap;
|
|
@@ -2833,7 +2616,7 @@ const USER_DROPDOWN_CSS = `
|
|
|
2833
2616
|
|
|
2834
2617
|
/* ── Menu divider ────────────────────────────────────────────── */
|
|
2835
2618
|
|
|
2836
|
-
.
|
|
2619
|
+
.thunderid-user-dropdown__menu-divider {
|
|
2837
2620
|
height: 1px;
|
|
2838
2621
|
background-color: var(--thunder-color-border);
|
|
2839
2622
|
margin: calc(var(--thunder-spacing-unit) * 0.5) 0;
|
|
@@ -2842,7 +2625,7 @@ const USER_DROPDOWN_CSS = `
|
|
|
2842
2625
|
|
|
2843
2626
|
/* ── Menu items ──────────────────────────────────────────────── */
|
|
2844
2627
|
|
|
2845
|
-
.
|
|
2628
|
+
.thunderid-user-dropdown__item {
|
|
2846
2629
|
display: flex;
|
|
2847
2630
|
align-items: center;
|
|
2848
2631
|
gap: calc(var(--thunder-spacing-unit) * 1);
|
|
@@ -2859,28 +2642,28 @@ const USER_DROPDOWN_CSS = `
|
|
|
2859
2642
|
box-sizing: border-box;
|
|
2860
2643
|
}
|
|
2861
2644
|
|
|
2862
|
-
.
|
|
2645
|
+
.thunderid-user-dropdown__item:hover {
|
|
2863
2646
|
background-color: var(--thunder-color-action-hover);
|
|
2864
2647
|
}
|
|
2865
2648
|
|
|
2866
|
-
.
|
|
2649
|
+
.thunderid-user-dropdown__item:focus-visible {
|
|
2867
2650
|
outline: none;
|
|
2868
2651
|
background-color: var(--thunder-color-action-focus);
|
|
2869
2652
|
}
|
|
2870
2653
|
|
|
2871
2654
|
/* Danger variant (sign-out) */
|
|
2872
2655
|
|
|
2873
|
-
.
|
|
2656
|
+
.thunderid-user-dropdown__item--danger {
|
|
2874
2657
|
color: var(--thunder-color-error-main);
|
|
2875
2658
|
}
|
|
2876
2659
|
|
|
2877
|
-
.
|
|
2660
|
+
.thunderid-user-dropdown__item--danger:hover {
|
|
2878
2661
|
background-color: var(--thunder-color-error-light);
|
|
2879
2662
|
}
|
|
2880
2663
|
|
|
2881
2664
|
/* ── Modal overlay ───────────────────────────────────────────── */
|
|
2882
2665
|
|
|
2883
|
-
.
|
|
2666
|
+
.thunderid-user-dropdown__modal-overlay {
|
|
2884
2667
|
position: fixed;
|
|
2885
2668
|
inset: 0;
|
|
2886
2669
|
background-color: rgba(0, 0, 0, 0.45);
|
|
@@ -2899,7 +2682,7 @@ const USER_DROPDOWN_CSS = `
|
|
|
2899
2682
|
|
|
2900
2683
|
/* ── Modal content ───────────────────────────────────────────── */
|
|
2901
2684
|
|
|
2902
|
-
.
|
|
2685
|
+
.thunderid-user-dropdown__modal-content {
|
|
2903
2686
|
background: var(--thunder-color-background-surface);
|
|
2904
2687
|
border-radius: var(--thunder-border-radius-large);
|
|
2905
2688
|
box-shadow: var(--thunder-shadow-large);
|
|
@@ -2924,7 +2707,7 @@ const USER_DROPDOWN_CSS = `
|
|
|
2924
2707
|
|
|
2925
2708
|
/* ── Modal close button ──────────────────────────────────────── */
|
|
2926
2709
|
|
|
2927
|
-
.
|
|
2710
|
+
.thunderid-user-dropdown__modal-close {
|
|
2928
2711
|
position: absolute;
|
|
2929
2712
|
top: calc(var(--thunder-spacing-unit) * 1.25);
|
|
2930
2713
|
right: calc(var(--thunder-spacing-unit) * 1.25);
|
|
@@ -2944,12 +2727,12 @@ const USER_DROPDOWN_CSS = `
|
|
|
2944
2727
|
line-height: 0;
|
|
2945
2728
|
}
|
|
2946
2729
|
|
|
2947
|
-
.
|
|
2730
|
+
.thunderid-user-dropdown__modal-close:hover {
|
|
2948
2731
|
color: var(--thunder-color-text-primary);
|
|
2949
2732
|
background-color: var(--thunder-color-action-hover);
|
|
2950
2733
|
}
|
|
2951
2734
|
|
|
2952
|
-
.
|
|
2735
|
+
.thunderid-user-dropdown__modal-close:focus-visible {
|
|
2953
2736
|
outline: none;
|
|
2954
2737
|
box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
|
|
2955
2738
|
}
|
|
@@ -2978,7 +2761,7 @@ var UserDropdown_css_default = USER_DROPDOWN_CSS;
|
|
|
2978
2761
|
/**
|
|
2979
2762
|
* Styles for the UserProfile presentation component.
|
|
2980
2763
|
*
|
|
2981
|
-
* BEM block: `.
|
|
2764
|
+
* BEM block: `.thunderid-user-profile`
|
|
2982
2765
|
*
|
|
2983
2766
|
* Modifiers:
|
|
2984
2767
|
* --compact – reduced field padding for modal / dropdown embedding
|
|
@@ -2994,7 +2777,7 @@ const USER_PROFILE_CSS = `
|
|
|
2994
2777
|
UserProfile (modern redesign)
|
|
2995
2778
|
============================================================ */
|
|
2996
2779
|
|
|
2997
|
-
.
|
|
2780
|
+
.thunderid-user-profile {
|
|
2998
2781
|
display: flex;
|
|
2999
2782
|
flex-direction: column;
|
|
3000
2783
|
min-width: 320px;
|
|
@@ -3004,7 +2787,7 @@ const USER_PROFILE_CSS = `
|
|
|
3004
2787
|
|
|
3005
2788
|
/* ── Header ─────────────────────────────────────────────────── */
|
|
3006
2789
|
|
|
3007
|
-
.
|
|
2790
|
+
.thunderid-user-profile__header {
|
|
3008
2791
|
display: flex;
|
|
3009
2792
|
align-items: center;
|
|
3010
2793
|
justify-content: space-between;
|
|
@@ -3012,7 +2795,7 @@ const USER_PROFILE_CSS = `
|
|
|
3012
2795
|
calc(var(--thunder-spacing-unit) * 1.75);
|
|
3013
2796
|
}
|
|
3014
2797
|
|
|
3015
|
-
.
|
|
2798
|
+
.thunderid-user-profile__title {
|
|
3016
2799
|
margin: 0;
|
|
3017
2800
|
font-size: var(--thunder-typography-fontSize-md);
|
|
3018
2801
|
font-weight: var(--thunder-typography-fontWeight-semibold);
|
|
@@ -3020,13 +2803,13 @@ const USER_PROFILE_CSS = `
|
|
|
3020
2803
|
letter-spacing: var(--thunder-typography-letterSpacing-tight);
|
|
3021
2804
|
}
|
|
3022
2805
|
|
|
3023
|
-
.
|
|
2806
|
+
.thunderid-user-profile__header-divider {
|
|
3024
2807
|
margin: 0;
|
|
3025
2808
|
}
|
|
3026
2809
|
|
|
3027
2810
|
/* ── Hero (avatar + name + subtitle) ────────────────────────── */
|
|
3028
2811
|
|
|
3029
|
-
.
|
|
2812
|
+
.thunderid-user-profile__hero {
|
|
3030
2813
|
display: flex;
|
|
3031
2814
|
flex-direction: column;
|
|
3032
2815
|
align-items: center;
|
|
@@ -3041,7 +2824,7 @@ const USER_PROFILE_CSS = `
|
|
|
3041
2824
|
border-bottom: 1px solid var(--thunder-color-border);
|
|
3042
2825
|
}
|
|
3043
2826
|
|
|
3044
|
-
.
|
|
2827
|
+
.thunderid-user-profile__avatar-wrapper {
|
|
3045
2828
|
position: relative;
|
|
3046
2829
|
border-radius: 50%;
|
|
3047
2830
|
padding: 3px;
|
|
@@ -3053,7 +2836,7 @@ const USER_PROFILE_CSS = `
|
|
|
3053
2836
|
box-shadow: 0 4px 14px rgba(75, 110, 245, 0.28);
|
|
3054
2837
|
}
|
|
3055
2838
|
|
|
3056
|
-
.
|
|
2839
|
+
.thunderid-user-profile__avatar {
|
|
3057
2840
|
width: var(--thunder-avatar-size, 72px);
|
|
3058
2841
|
height: var(--thunder-avatar-size, 72px);
|
|
3059
2842
|
border-radius: 50%;
|
|
@@ -3066,34 +2849,34 @@ const USER_PROFILE_CSS = `
|
|
|
3066
2849
|
|
|
3067
2850
|
/* Avatar size variants */
|
|
3068
2851
|
|
|
3069
|
-
.
|
|
2852
|
+
.thunderid-user-profile__avatar--sm {
|
|
3070
2853
|
width: 48px;
|
|
3071
2854
|
height: 48px;
|
|
3072
2855
|
}
|
|
3073
2856
|
|
|
3074
|
-
.
|
|
2857
|
+
.thunderid-user-profile__avatar--sm .thunderid-user-profile__avatar-initials {
|
|
3075
2858
|
font-size: 1rem;
|
|
3076
2859
|
}
|
|
3077
2860
|
|
|
3078
|
-
.
|
|
2861
|
+
.thunderid-user-profile__avatar--md {
|
|
3079
2862
|
width: 64px;
|
|
3080
2863
|
height: 64px;
|
|
3081
2864
|
}
|
|
3082
2865
|
|
|
3083
|
-
.
|
|
2866
|
+
.thunderid-user-profile__avatar--md .thunderid-user-profile__avatar-initials {
|
|
3084
2867
|
font-size: 1.25rem;
|
|
3085
2868
|
}
|
|
3086
2869
|
|
|
3087
|
-
.
|
|
2870
|
+
.thunderid-user-profile__avatar--lg {
|
|
3088
2871
|
width: 80px;
|
|
3089
2872
|
height: 80px;
|
|
3090
2873
|
}
|
|
3091
2874
|
|
|
3092
|
-
.
|
|
2875
|
+
.thunderid-user-profile__avatar--lg .thunderid-user-profile__avatar-initials {
|
|
3093
2876
|
font-size: 1.625rem;
|
|
3094
2877
|
}
|
|
3095
2878
|
|
|
3096
|
-
.
|
|
2879
|
+
.thunderid-user-profile__avatar-initials {
|
|
3097
2880
|
color: #ffffff;
|
|
3098
2881
|
font-weight: var(--thunder-typography-fontWeight-semibold);
|
|
3099
2882
|
line-height: 1;
|
|
@@ -3102,7 +2885,7 @@ const USER_PROFILE_CSS = `
|
|
|
3102
2885
|
user-select: none;
|
|
3103
2886
|
}
|
|
3104
2887
|
|
|
3105
|
-
.
|
|
2888
|
+
.thunderid-user-profile__hero-info {
|
|
3106
2889
|
display: flex;
|
|
3107
2890
|
flex-direction: column;
|
|
3108
2891
|
align-items: center;
|
|
@@ -3110,7 +2893,7 @@ const USER_PROFILE_CSS = `
|
|
|
3110
2893
|
text-align: center;
|
|
3111
2894
|
}
|
|
3112
2895
|
|
|
3113
|
-
.
|
|
2896
|
+
.thunderid-user-profile__hero-name {
|
|
3114
2897
|
font-size: var(--thunder-typography-fontSize-lg);
|
|
3115
2898
|
font-weight: var(--thunder-typography-fontWeight-semibold);
|
|
3116
2899
|
color: var(--thunder-color-text-primary);
|
|
@@ -3118,7 +2901,7 @@ const USER_PROFILE_CSS = `
|
|
|
3118
2901
|
letter-spacing: var(--thunder-typography-letterSpacing-tight);
|
|
3119
2902
|
}
|
|
3120
2903
|
|
|
3121
|
-
.
|
|
2904
|
+
.thunderid-user-profile__hero-subtitle {
|
|
3122
2905
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
3123
2906
|
color: var(--thunder-color-text-secondary);
|
|
3124
2907
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
@@ -3126,12 +2909,12 @@ const USER_PROFILE_CSS = `
|
|
|
3126
2909
|
|
|
3127
2910
|
/* ── Alerts & loading ────────────────────────────────────────── */
|
|
3128
2911
|
|
|
3129
|
-
.
|
|
2912
|
+
.thunderid-user-profile__error {
|
|
3130
2913
|
margin: calc(var(--thunder-spacing-unit) * 1.5) calc(var(--thunder-spacing-unit) * 2.5)
|
|
3131
2914
|
calc(var(--thunder-spacing-unit) * 0.5);
|
|
3132
2915
|
}
|
|
3133
2916
|
|
|
3134
|
-
.
|
|
2917
|
+
.thunderid-user-profile__loading {
|
|
3135
2918
|
display: flex;
|
|
3136
2919
|
align-items: center;
|
|
3137
2920
|
justify-content: center;
|
|
@@ -3140,12 +2923,12 @@ const USER_PROFILE_CSS = `
|
|
|
3140
2923
|
|
|
3141
2924
|
/* ── Fields ──────────────────────────────────────────────────── */
|
|
3142
2925
|
|
|
3143
|
-
.
|
|
2926
|
+
.thunderid-user-profile__fields {
|
|
3144
2927
|
display: flex;
|
|
3145
2928
|
flex-direction: column;
|
|
3146
2929
|
}
|
|
3147
2930
|
|
|
3148
|
-
.
|
|
2931
|
+
.thunderid-user-profile__field {
|
|
3149
2932
|
display: grid;
|
|
3150
2933
|
grid-template-columns: 38% 62%;
|
|
3151
2934
|
align-items: start;
|
|
@@ -3155,22 +2938,22 @@ const USER_PROFILE_CSS = `
|
|
|
3155
2938
|
transition: background-color var(--thunder-transition-fast);
|
|
3156
2939
|
}
|
|
3157
2940
|
|
|
3158
|
-
.
|
|
2941
|
+
.thunderid-user-profile__field:hover {
|
|
3159
2942
|
background-color: var(--thunder-color-action-hover);
|
|
3160
2943
|
}
|
|
3161
2944
|
|
|
3162
|
-
.
|
|
2945
|
+
.thunderid-user-profile__field + .thunderid-user-profile__field {
|
|
3163
2946
|
border-top: 1px solid var(--thunder-color-border);
|
|
3164
2947
|
}
|
|
3165
2948
|
|
|
3166
|
-
.
|
|
2949
|
+
.thunderid-user-profile__field-label {
|
|
3167
2950
|
color: var(--thunder-color-text-secondary);
|
|
3168
2951
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
3169
2952
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
3170
2953
|
padding-top: 2px;
|
|
3171
2954
|
}
|
|
3172
2955
|
|
|
3173
|
-
.
|
|
2956
|
+
.thunderid-user-profile__field-display {
|
|
3174
2957
|
display: flex;
|
|
3175
2958
|
align-items: center;
|
|
3176
2959
|
justify-content: space-between;
|
|
@@ -3178,14 +2961,14 @@ const USER_PROFILE_CSS = `
|
|
|
3178
2961
|
min-height: 1.5rem;
|
|
3179
2962
|
}
|
|
3180
2963
|
|
|
3181
|
-
.
|
|
2964
|
+
.thunderid-user-profile__field-value {
|
|
3182
2965
|
color: var(--thunder-color-text-primary);
|
|
3183
2966
|
word-break: break-word;
|
|
3184
2967
|
flex: 1;
|
|
3185
2968
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
3186
2969
|
}
|
|
3187
2970
|
|
|
3188
|
-
.
|
|
2971
|
+
.thunderid-user-profile__field-placeholder {
|
|
3189
2972
|
color: var(--thunder-color-primary-main);
|
|
3190
2973
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
3191
2974
|
font-style: italic;
|
|
@@ -3198,13 +2981,13 @@ const USER_PROFILE_CSS = `
|
|
|
3198
2981
|
transition: opacity var(--thunder-transition-fast);
|
|
3199
2982
|
}
|
|
3200
2983
|
|
|
3201
|
-
.
|
|
2984
|
+
.thunderid-user-profile__field-placeholder:hover {
|
|
3202
2985
|
opacity: 1;
|
|
3203
2986
|
}
|
|
3204
2987
|
|
|
3205
2988
|
/* ── Edit button (pencil) ────────────────────────────────────── */
|
|
3206
2989
|
|
|
3207
|
-
.
|
|
2990
|
+
.thunderid-user-profile__field-edit-btn {
|
|
3208
2991
|
display: inline-flex;
|
|
3209
2992
|
align-items: center;
|
|
3210
2993
|
justify-content: center;
|
|
@@ -3223,16 +3006,16 @@ const USER_PROFILE_CSS = `
|
|
|
3223
3006
|
line-height: 0;
|
|
3224
3007
|
}
|
|
3225
3008
|
|
|
3226
|
-
.
|
|
3009
|
+
.thunderid-user-profile__field:hover .thunderid-user-profile__field-edit-btn {
|
|
3227
3010
|
opacity: 1;
|
|
3228
3011
|
}
|
|
3229
3012
|
|
|
3230
|
-
.
|
|
3013
|
+
.thunderid-user-profile__field-edit-btn:hover {
|
|
3231
3014
|
color: var(--thunder-color-primary-main);
|
|
3232
3015
|
background-color: var(--thunder-color-primary-light);
|
|
3233
3016
|
}
|
|
3234
3017
|
|
|
3235
|
-
.
|
|
3018
|
+
.thunderid-user-profile__field-edit-btn:focus-visible {
|
|
3236
3019
|
opacity: 1;
|
|
3237
3020
|
outline: none;
|
|
3238
3021
|
box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
|
|
@@ -3240,14 +3023,14 @@ const USER_PROFILE_CSS = `
|
|
|
3240
3023
|
|
|
3241
3024
|
/* ── Edit mode ───────────────────────────────────────────────── */
|
|
3242
3025
|
|
|
3243
|
-
.
|
|
3026
|
+
.thunderid-user-profile__field-edit {
|
|
3244
3027
|
display: flex;
|
|
3245
3028
|
flex-direction: column;
|
|
3246
3029
|
gap: calc(var(--thunder-spacing-unit) * 0.75);
|
|
3247
3030
|
padding: calc(var(--thunder-spacing-unit) * 0.25) 0;
|
|
3248
3031
|
}
|
|
3249
3032
|
|
|
3250
|
-
.
|
|
3033
|
+
.thunderid-user-profile__field-edit-actions {
|
|
3251
3034
|
display: flex;
|
|
3252
3035
|
align-items: center;
|
|
3253
3036
|
gap: calc(var(--thunder-spacing-unit) * 0.75);
|
|
@@ -3255,31 +3038,31 @@ const USER_PROFILE_CSS = `
|
|
|
3255
3038
|
|
|
3256
3039
|
/* ── Footer slot ─────────────────────────────────────────────── */
|
|
3257
3040
|
|
|
3258
|
-
.
|
|
3041
|
+
.thunderid-user-profile__footer {
|
|
3259
3042
|
padding: calc(var(--thunder-spacing-unit) * 1.5) calc(var(--thunder-spacing-unit) * 2.5);
|
|
3260
3043
|
border-top: 1px solid var(--thunder-color-border);
|
|
3261
3044
|
}
|
|
3262
3045
|
|
|
3263
3046
|
/* ── Compact modifier ────────────────────────────────────────── */
|
|
3264
3047
|
|
|
3265
|
-
.
|
|
3048
|
+
.thunderid-user-profile--compact .thunderid-user-profile__hero {
|
|
3266
3049
|
padding: calc(var(--thunder-spacing-unit) * 2) calc(var(--thunder-spacing-unit) * 2);
|
|
3267
3050
|
}
|
|
3268
3051
|
|
|
3269
|
-
.
|
|
3052
|
+
.thunderid-user-profile--compact .thunderid-user-profile__avatar--lg {
|
|
3270
3053
|
width: 56px;
|
|
3271
3054
|
height: 56px;
|
|
3272
3055
|
}
|
|
3273
3056
|
|
|
3274
|
-
.
|
|
3057
|
+
.thunderid-user-profile--compact .thunderid-user-profile__avatar--lg .thunderid-user-profile__avatar-initials {
|
|
3275
3058
|
font-size: 1.125rem;
|
|
3276
3059
|
}
|
|
3277
3060
|
|
|
3278
|
-
.
|
|
3061
|
+
.thunderid-user-profile--compact .thunderid-user-profile__field {
|
|
3279
3062
|
padding: calc(var(--thunder-spacing-unit) * 1) calc(var(--thunder-spacing-unit) * 2);
|
|
3280
3063
|
}
|
|
3281
3064
|
|
|
3282
|
-
.
|
|
3065
|
+
.thunderid-user-profile--compact .thunderid-user-profile__hero-name {
|
|
3283
3066
|
font-size: var(--thunder-typography-fontSize-md);
|
|
3284
3067
|
}
|
|
3285
3068
|
`;
|
|
@@ -3307,7 +3090,7 @@ var UserProfile_css_default = USER_PROFILE_CSS;
|
|
|
3307
3090
|
/**
|
|
3308
3091
|
* Styles for the Alert primitive component.
|
|
3309
3092
|
*
|
|
3310
|
-
* BEM block: `.
|
|
3093
|
+
* BEM block: `.thunderid-alert`
|
|
3311
3094
|
*
|
|
3312
3095
|
* Modifiers:
|
|
3313
3096
|
* Severity: --info | --success | --warning | --error
|
|
@@ -3320,7 +3103,7 @@ const ALERT_CSS = `
|
|
|
3320
3103
|
Alert
|
|
3321
3104
|
============================================================ */
|
|
3322
3105
|
|
|
3323
|
-
.
|
|
3106
|
+
.thunderid-alert {
|
|
3324
3107
|
display: flex;
|
|
3325
3108
|
align-items: flex-start;
|
|
3326
3109
|
justify-content: space-between;
|
|
@@ -3335,35 +3118,35 @@ const ALERT_CSS = `
|
|
|
3335
3118
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
3336
3119
|
}
|
|
3337
3120
|
|
|
3338
|
-
.
|
|
3121
|
+
.thunderid-alert__content {
|
|
3339
3122
|
flex: 1;
|
|
3340
3123
|
}
|
|
3341
3124
|
|
|
3342
|
-
.
|
|
3125
|
+
.thunderid-alert--info {
|
|
3343
3126
|
background-color: var(--thunder-color-info-light);
|
|
3344
3127
|
border-color: var(--thunder-color-info-main);
|
|
3345
3128
|
color: var(--thunder-color-info-contrastText);
|
|
3346
3129
|
}
|
|
3347
3130
|
|
|
3348
|
-
.
|
|
3131
|
+
.thunderid-alert--success {
|
|
3349
3132
|
background-color: var(--thunder-color-success-light);
|
|
3350
3133
|
border-color: var(--thunder-color-success-main);
|
|
3351
3134
|
color: var(--thunder-color-success-contrastText);
|
|
3352
3135
|
}
|
|
3353
3136
|
|
|
3354
|
-
.
|
|
3137
|
+
.thunderid-alert--warning {
|
|
3355
3138
|
background-color: var(--thunder-color-warning-light);
|
|
3356
3139
|
border-color: var(--thunder-color-warning-main);
|
|
3357
3140
|
color: var(--thunder-color-warning-contrastText);
|
|
3358
3141
|
}
|
|
3359
3142
|
|
|
3360
|
-
.
|
|
3143
|
+
.thunderid-alert--error {
|
|
3361
3144
|
background-color: var(--thunder-color-error-light);
|
|
3362
3145
|
border-color: var(--thunder-color-error-main);
|
|
3363
3146
|
color: var(--thunder-color-error-contrastText);
|
|
3364
3147
|
}
|
|
3365
3148
|
|
|
3366
|
-
.
|
|
3149
|
+
.thunderid-alert__dismiss {
|
|
3367
3150
|
background: none;
|
|
3368
3151
|
border: none;
|
|
3369
3152
|
cursor: pointer;
|
|
@@ -3376,7 +3159,7 @@ const ALERT_CSS = `
|
|
|
3376
3159
|
flex-shrink: 0;
|
|
3377
3160
|
transition: opacity var(--thunder-transition-fast), background-color var(--thunder-transition-fast);
|
|
3378
3161
|
}
|
|
3379
|
-
.
|
|
3162
|
+
.thunderid-alert__dismiss:hover {
|
|
3380
3163
|
opacity: 1;
|
|
3381
3164
|
background-color: var(--thunder-color-action-hover);
|
|
3382
3165
|
}
|
|
@@ -3405,7 +3188,7 @@ var Alert_css_default = ALERT_CSS;
|
|
|
3405
3188
|
/**
|
|
3406
3189
|
* Styles for the Button primitive component.
|
|
3407
3190
|
*
|
|
3408
|
-
* BEM block: `.
|
|
3191
|
+
* BEM block: `.thunderid-button`
|
|
3409
3192
|
*
|
|
3410
3193
|
* Modifiers:
|
|
3411
3194
|
* Variant: --solid | --outline | --ghost | --text
|
|
@@ -3424,7 +3207,7 @@ const BUTTON_CSS = `
|
|
|
3424
3207
|
Button
|
|
3425
3208
|
============================================================ */
|
|
3426
3209
|
|
|
3427
|
-
.
|
|
3210
|
+
.thunderid-button {
|
|
3428
3211
|
display: inline-flex;
|
|
3429
3212
|
align-items: center;
|
|
3430
3213
|
justify-content: center;
|
|
@@ -3454,26 +3237,26 @@ const BUTTON_CSS = `
|
|
|
3454
3237
|
user-select: none;
|
|
3455
3238
|
}
|
|
3456
3239
|
|
|
3457
|
-
.
|
|
3240
|
+
.thunderid-button:focus-visible {
|
|
3458
3241
|
outline: none;
|
|
3459
3242
|
box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
|
|
3460
3243
|
}
|
|
3461
3244
|
|
|
3462
3245
|
/* -- Sizes -- */
|
|
3463
3246
|
|
|
3464
|
-
.
|
|
3247
|
+
.thunderid-button--small {
|
|
3465
3248
|
padding: 0 var(--thunder-button-sm-paddingX);
|
|
3466
3249
|
font-size: var(--thunder-button-sm-fontSize);
|
|
3467
3250
|
height: var(--thunder-button-sm-height);
|
|
3468
3251
|
}
|
|
3469
3252
|
|
|
3470
|
-
.
|
|
3253
|
+
.thunderid-button--medium {
|
|
3471
3254
|
padding: 0 var(--thunder-button-md-paddingX);
|
|
3472
3255
|
font-size: var(--thunder-button-md-fontSize);
|
|
3473
3256
|
height: var(--thunder-button-md-height);
|
|
3474
3257
|
}
|
|
3475
3258
|
|
|
3476
|
-
.
|
|
3259
|
+
.thunderid-button--large {
|
|
3477
3260
|
padding: 0 var(--thunder-button-lg-paddingX);
|
|
3478
3261
|
font-size: var(--thunder-button-lg-fontSize);
|
|
3479
3262
|
height: var(--thunder-button-lg-height);
|
|
@@ -3481,12 +3264,12 @@ const BUTTON_CSS = `
|
|
|
3481
3264
|
|
|
3482
3265
|
/* -- Modifiers -- */
|
|
3483
3266
|
|
|
3484
|
-
.
|
|
3267
|
+
.thunderid-button--full-width {
|
|
3485
3268
|
width: 100%;
|
|
3486
3269
|
}
|
|
3487
3270
|
|
|
3488
|
-
.
|
|
3489
|
-
.
|
|
3271
|
+
.thunderid-button--loading,
|
|
3272
|
+
.thunderid-button:disabled {
|
|
3490
3273
|
cursor: not-allowed;
|
|
3491
3274
|
opacity: 0.55;
|
|
3492
3275
|
pointer-events: none;
|
|
@@ -3494,172 +3277,172 @@ const BUTTON_CSS = `
|
|
|
3494
3277
|
|
|
3495
3278
|
/* -- Solid variants -- */
|
|
3496
3279
|
|
|
3497
|
-
.
|
|
3280
|
+
.thunderid-button--solid.thunderid-button--primary {
|
|
3498
3281
|
background-color: var(--thunder-color-primary-main);
|
|
3499
3282
|
color: var(--thunder-color-primary-contrastText);
|
|
3500
3283
|
border-color: var(--thunder-color-primary-main);
|
|
3501
3284
|
}
|
|
3502
|
-
.
|
|
3285
|
+
.thunderid-button--solid.thunderid-button--primary:hover:not(:disabled) {
|
|
3503
3286
|
background-color: var(--thunder-color-primary-dark);
|
|
3504
3287
|
border-color: var(--thunder-color-primary-dark);
|
|
3505
3288
|
}
|
|
3506
|
-
.
|
|
3289
|
+
.thunderid-button--solid.thunderid-button--primary:active:not(:disabled) {
|
|
3507
3290
|
transform: scale(0.98);
|
|
3508
3291
|
}
|
|
3509
3292
|
|
|
3510
|
-
.
|
|
3293
|
+
.thunderid-button--solid.thunderid-button--secondary {
|
|
3511
3294
|
background-color: var(--thunder-color-secondary-light);
|
|
3512
3295
|
color: var(--thunder-color-secondary-main);
|
|
3513
3296
|
border-color: var(--thunder-color-border);
|
|
3514
3297
|
}
|
|
3515
|
-
.
|
|
3298
|
+
.thunderid-button--solid.thunderid-button--secondary:hover:not(:disabled) {
|
|
3516
3299
|
background-color: var(--thunder-color-border);
|
|
3517
3300
|
border-color: var(--thunder-color-border);
|
|
3518
3301
|
}
|
|
3519
|
-
.
|
|
3302
|
+
.thunderid-button--solid.thunderid-button--secondary:active:not(:disabled) {
|
|
3520
3303
|
transform: scale(0.98);
|
|
3521
3304
|
}
|
|
3522
3305
|
|
|
3523
|
-
.
|
|
3306
|
+
.thunderid-button--solid.thunderid-button--danger {
|
|
3524
3307
|
background-color: var(--thunder-color-error-main);
|
|
3525
3308
|
color: #ffffff;
|
|
3526
3309
|
border-color: var(--thunder-color-error-main);
|
|
3527
3310
|
}
|
|
3528
|
-
.
|
|
3311
|
+
.thunderid-button--solid.thunderid-button--danger:hover:not(:disabled) {
|
|
3529
3312
|
filter: brightness(0.92);
|
|
3530
3313
|
}
|
|
3531
|
-
.
|
|
3314
|
+
.thunderid-button--solid.thunderid-button--danger:active:not(:disabled) {
|
|
3532
3315
|
transform: scale(0.98);
|
|
3533
3316
|
}
|
|
3534
3317
|
|
|
3535
3318
|
/* -- Outline variants -- */
|
|
3536
3319
|
|
|
3537
|
-
.
|
|
3320
|
+
.thunderid-button--outline.thunderid-button--primary {
|
|
3538
3321
|
background-color: transparent;
|
|
3539
3322
|
color: var(--thunder-color-primary-main);
|
|
3540
3323
|
border-color: var(--thunder-color-primary-main);
|
|
3541
3324
|
}
|
|
3542
|
-
.
|
|
3325
|
+
.thunderid-button--outline.thunderid-button--primary:hover:not(:disabled) {
|
|
3543
3326
|
background-color: var(--thunder-color-primary-light);
|
|
3544
3327
|
}
|
|
3545
|
-
.
|
|
3328
|
+
.thunderid-button--outline.thunderid-button--primary:active:not(:disabled) {
|
|
3546
3329
|
transform: scale(0.98);
|
|
3547
3330
|
}
|
|
3548
3331
|
|
|
3549
|
-
.
|
|
3332
|
+
.thunderid-button--outline.thunderid-button--secondary {
|
|
3550
3333
|
background-color: transparent;
|
|
3551
3334
|
color: var(--thunder-color-secondary-main);
|
|
3552
3335
|
border-color: var(--thunder-color-border);
|
|
3553
3336
|
}
|
|
3554
|
-
.
|
|
3337
|
+
.thunderid-button--outline.thunderid-button--secondary:hover:not(:disabled) {
|
|
3555
3338
|
background-color: var(--thunder-color-secondary-light);
|
|
3556
3339
|
border-color: var(--thunder-color-secondary-main);
|
|
3557
3340
|
}
|
|
3558
|
-
.
|
|
3341
|
+
.thunderid-button--outline.thunderid-button--secondary:active:not(:disabled) {
|
|
3559
3342
|
transform: scale(0.98);
|
|
3560
3343
|
}
|
|
3561
3344
|
|
|
3562
|
-
.
|
|
3345
|
+
.thunderid-button--outline.thunderid-button--danger {
|
|
3563
3346
|
background-color: transparent;
|
|
3564
3347
|
color: var(--thunder-color-error-main);
|
|
3565
3348
|
border-color: var(--thunder-color-error-main);
|
|
3566
3349
|
}
|
|
3567
|
-
.
|
|
3350
|
+
.thunderid-button--outline.thunderid-button--danger:hover:not(:disabled) {
|
|
3568
3351
|
background-color: var(--thunder-color-error-light);
|
|
3569
3352
|
}
|
|
3570
|
-
.
|
|
3353
|
+
.thunderid-button--outline.thunderid-button--danger:active:not(:disabled) {
|
|
3571
3354
|
transform: scale(0.98);
|
|
3572
3355
|
}
|
|
3573
3356
|
|
|
3574
3357
|
/* -- Ghost variants -- */
|
|
3575
3358
|
|
|
3576
|
-
.
|
|
3359
|
+
.thunderid-button--ghost.thunderid-button--primary {
|
|
3577
3360
|
background-color: transparent;
|
|
3578
3361
|
color: var(--thunder-color-primary-main);
|
|
3579
3362
|
border-color: transparent;
|
|
3580
3363
|
}
|
|
3581
|
-
.
|
|
3364
|
+
.thunderid-button--ghost.thunderid-button--primary:hover:not(:disabled) {
|
|
3582
3365
|
background-color: var(--thunder-color-primary-light);
|
|
3583
3366
|
border-color: transparent;
|
|
3584
3367
|
}
|
|
3585
3368
|
|
|
3586
|
-
.
|
|
3369
|
+
.thunderid-button--ghost.thunderid-button--secondary {
|
|
3587
3370
|
background-color: transparent;
|
|
3588
3371
|
color: var(--thunder-color-secondary-main);
|
|
3589
3372
|
border-color: transparent;
|
|
3590
3373
|
}
|
|
3591
|
-
.
|
|
3374
|
+
.thunderid-button--ghost.thunderid-button--secondary:hover:not(:disabled) {
|
|
3592
3375
|
background-color: var(--thunder-color-action-hover);
|
|
3593
3376
|
border-color: transparent;
|
|
3594
3377
|
}
|
|
3595
3378
|
|
|
3596
|
-
.
|
|
3379
|
+
.thunderid-button--ghost.thunderid-button--danger {
|
|
3597
3380
|
background-color: transparent;
|
|
3598
3381
|
color: var(--thunder-color-error-main);
|
|
3599
3382
|
border-color: transparent;
|
|
3600
3383
|
}
|
|
3601
|
-
.
|
|
3384
|
+
.thunderid-button--ghost.thunderid-button--danger:hover:not(:disabled) {
|
|
3602
3385
|
background-color: var(--thunder-color-error-light);
|
|
3603
3386
|
border-color: transparent;
|
|
3604
3387
|
}
|
|
3605
3388
|
|
|
3606
3389
|
/* -- Text variants -- */
|
|
3607
3390
|
|
|
3608
|
-
.
|
|
3391
|
+
.thunderid-button--text {
|
|
3609
3392
|
border-color: transparent;
|
|
3610
3393
|
background-color: transparent;
|
|
3611
3394
|
padding-left: calc(var(--thunder-spacing-unit) * 0.25);
|
|
3612
3395
|
padding-right: calc(var(--thunder-spacing-unit) * 0.25);
|
|
3613
3396
|
}
|
|
3614
3397
|
|
|
3615
|
-
.
|
|
3398
|
+
.thunderid-button--text.thunderid-button--primary {
|
|
3616
3399
|
color: var(--thunder-color-primary-main);
|
|
3617
3400
|
}
|
|
3618
|
-
.
|
|
3401
|
+
.thunderid-button--text.thunderid-button--primary:hover:not(:disabled) {
|
|
3619
3402
|
color: var(--thunder-color-primary-dark);
|
|
3620
3403
|
text-decoration: underline;
|
|
3621
3404
|
text-underline-offset: 2px;
|
|
3622
3405
|
}
|
|
3623
3406
|
|
|
3624
|
-
.
|
|
3407
|
+
.thunderid-button--text.thunderid-button--secondary {
|
|
3625
3408
|
color: var(--thunder-color-secondary-main);
|
|
3626
3409
|
}
|
|
3627
|
-
.
|
|
3410
|
+
.thunderid-button--text.thunderid-button--secondary:hover:not(:disabled) {
|
|
3628
3411
|
color: var(--thunder-color-text-primary);
|
|
3629
3412
|
text-decoration: underline;
|
|
3630
3413
|
text-underline-offset: 2px;
|
|
3631
3414
|
}
|
|
3632
3415
|
|
|
3633
|
-
.
|
|
3416
|
+
.thunderid-button--text.thunderid-button--danger {
|
|
3634
3417
|
color: var(--thunder-color-error-main);
|
|
3635
3418
|
}
|
|
3636
|
-
.
|
|
3419
|
+
.thunderid-button--text.thunderid-button--danger:hover:not(:disabled) {
|
|
3637
3420
|
text-decoration: underline;
|
|
3638
3421
|
text-underline-offset: 2px;
|
|
3639
3422
|
}
|
|
3640
3423
|
|
|
3641
3424
|
/* -- Inner elements -- */
|
|
3642
3425
|
|
|
3643
|
-
.
|
|
3644
|
-
.
|
|
3426
|
+
.thunderid-button__start-icon,
|
|
3427
|
+
.thunderid-button__end-icon {
|
|
3645
3428
|
display: inline-flex;
|
|
3646
3429
|
align-items: center;
|
|
3647
3430
|
justify-content: center;
|
|
3648
3431
|
flex-shrink: 0;
|
|
3649
3432
|
line-height: 0;
|
|
3650
3433
|
}
|
|
3651
|
-
.
|
|
3652
|
-
.
|
|
3434
|
+
.thunderid-button--small .thunderid-button__start-icon svg,
|
|
3435
|
+
.thunderid-button--small .thunderid-button__end-icon svg {
|
|
3653
3436
|
width: 14px;
|
|
3654
3437
|
height: 14px;
|
|
3655
3438
|
}
|
|
3656
3439
|
|
|
3657
|
-
.
|
|
3440
|
+
.thunderid-button__content {
|
|
3658
3441
|
display: inline-flex;
|
|
3659
3442
|
align-items: center;
|
|
3660
3443
|
}
|
|
3661
3444
|
|
|
3662
|
-
.
|
|
3445
|
+
.thunderid-button__spinner {
|
|
3663
3446
|
display: inline-block;
|
|
3664
3447
|
width: 1em;
|
|
3665
3448
|
height: 1em;
|
|
@@ -3694,7 +3477,7 @@ var Button_css_default = BUTTON_CSS;
|
|
|
3694
3477
|
/**
|
|
3695
3478
|
* Styles for the Card primitive component.
|
|
3696
3479
|
*
|
|
3697
|
-
* BEM block: `.
|
|
3480
|
+
* BEM block: `.thunderid-card`
|
|
3698
3481
|
*
|
|
3699
3482
|
* Modifiers:
|
|
3700
3483
|
* --elevated – medium drop shadow
|
|
@@ -3706,7 +3489,7 @@ const CARD_CSS = `
|
|
|
3706
3489
|
Card
|
|
3707
3490
|
============================================================ */
|
|
3708
3491
|
|
|
3709
|
-
.
|
|
3492
|
+
.thunderid-card {
|
|
3710
3493
|
background-color: var(--thunder-color-background-surface);
|
|
3711
3494
|
border-radius: var(--thunder-card-borderRadius);
|
|
3712
3495
|
padding: var(--thunder-card-padding);
|
|
@@ -3714,15 +3497,15 @@ const CARD_CSS = `
|
|
|
3714
3497
|
transition: box-shadow var(--thunder-transition-normal);
|
|
3715
3498
|
}
|
|
3716
3499
|
|
|
3717
|
-
.
|
|
3500
|
+
.thunderid-card--elevated {
|
|
3718
3501
|
box-shadow: var(--thunder-card-shadow);
|
|
3719
3502
|
}
|
|
3720
3503
|
|
|
3721
|
-
.
|
|
3504
|
+
.thunderid-card--outlined {
|
|
3722
3505
|
border: 1px solid var(--thunder-card-borderColor);
|
|
3723
3506
|
}
|
|
3724
3507
|
|
|
3725
|
-
/* .
|
|
3508
|
+
/* .thunderid-card--flat: no shadow or border */
|
|
3726
3509
|
`;
|
|
3727
3510
|
var Card_css_default = CARD_CSS;
|
|
3728
3511
|
|
|
@@ -3748,7 +3531,7 @@ var Card_css_default = CARD_CSS;
|
|
|
3748
3531
|
/**
|
|
3749
3532
|
* Styles for the Checkbox primitive component.
|
|
3750
3533
|
*
|
|
3751
|
-
* BEM block: `.
|
|
3534
|
+
* BEM block: `.thunderid-checkbox`
|
|
3752
3535
|
*
|
|
3753
3536
|
* Modifiers:
|
|
3754
3537
|
* --error – shows validation error state
|
|
@@ -3761,14 +3544,14 @@ const CHECKBOX_CSS = `
|
|
|
3761
3544
|
Checkbox
|
|
3762
3545
|
============================================================ */
|
|
3763
3546
|
|
|
3764
|
-
.
|
|
3547
|
+
.thunderid-checkbox {
|
|
3765
3548
|
display: flex;
|
|
3766
3549
|
flex-direction: column;
|
|
3767
3550
|
gap: calc(var(--thunder-spacing-unit) * 0.5);
|
|
3768
3551
|
font-family: var(--thunder-typography-fontFamily);
|
|
3769
3552
|
}
|
|
3770
3553
|
|
|
3771
|
-
.
|
|
3554
|
+
.thunderid-checkbox__wrapper {
|
|
3772
3555
|
display: inline-flex;
|
|
3773
3556
|
align-items: center;
|
|
3774
3557
|
gap: calc(var(--thunder-spacing-unit) * 0.75);
|
|
@@ -3776,7 +3559,7 @@ const CHECKBOX_CSS = `
|
|
|
3776
3559
|
user-select: none;
|
|
3777
3560
|
}
|
|
3778
3561
|
|
|
3779
|
-
.
|
|
3562
|
+
.thunderid-checkbox__input {
|
|
3780
3563
|
width: var(--thunder-checkbox-size);
|
|
3781
3564
|
height: var(--thunder-checkbox-size);
|
|
3782
3565
|
cursor: pointer;
|
|
@@ -3784,22 +3567,22 @@ const CHECKBOX_CSS = `
|
|
|
3784
3567
|
flex-shrink: 0;
|
|
3785
3568
|
border-radius: var(--thunder-border-radius-xs);
|
|
3786
3569
|
}
|
|
3787
|
-
.
|
|
3570
|
+
.thunderid-checkbox__input:focus-visible {
|
|
3788
3571
|
outline: none;
|
|
3789
3572
|
box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
|
|
3790
3573
|
}
|
|
3791
|
-
.
|
|
3574
|
+
.thunderid-checkbox__input:disabled {
|
|
3792
3575
|
cursor: not-allowed;
|
|
3793
3576
|
opacity: 0.5;
|
|
3794
3577
|
}
|
|
3795
3578
|
|
|
3796
|
-
.
|
|
3579
|
+
.thunderid-checkbox__label {
|
|
3797
3580
|
font-size: var(--thunder-typography-fontSize-md);
|
|
3798
3581
|
color: var(--thunder-color-text-primary);
|
|
3799
3582
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
3800
3583
|
}
|
|
3801
3584
|
|
|
3802
|
-
.
|
|
3585
|
+
.thunderid-checkbox__error {
|
|
3803
3586
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
3804
3587
|
color: var(--thunder-color-error-contrastText);
|
|
3805
3588
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
@@ -3829,7 +3612,7 @@ var Checkbox_css_default = CHECKBOX_CSS;
|
|
|
3829
3612
|
/**
|
|
3830
3613
|
* Styles for the DatePicker primitive component.
|
|
3831
3614
|
*
|
|
3832
|
-
* BEM block: `.
|
|
3615
|
+
* BEM block: `.thunderid-date-picker`
|
|
3833
3616
|
*
|
|
3834
3617
|
* Modifiers:
|
|
3835
3618
|
* --error – shows validation error state
|
|
@@ -3842,7 +3625,7 @@ const DATE_PICKER_CSS = `
|
|
|
3842
3625
|
DatePicker
|
|
3843
3626
|
============================================================ */
|
|
3844
3627
|
|
|
3845
|
-
.
|
|
3628
|
+
.thunderid-date-picker {
|
|
3846
3629
|
display: flex;
|
|
3847
3630
|
flex-direction: column;
|
|
3848
3631
|
gap: calc(var(--thunder-spacing-unit) * 0.5);
|
|
@@ -3851,7 +3634,7 @@ const DATE_PICKER_CSS = `
|
|
|
3851
3634
|
box-sizing: border-box;
|
|
3852
3635
|
}
|
|
3853
3636
|
|
|
3854
|
-
.
|
|
3637
|
+
.thunderid-date-picker__label {
|
|
3855
3638
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
3856
3639
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
3857
3640
|
color: var(--thunder-color-text-primary);
|
|
@@ -3859,12 +3642,12 @@ const DATE_PICKER_CSS = `
|
|
|
3859
3642
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
3860
3643
|
}
|
|
3861
3644
|
|
|
3862
|
-
.
|
|
3645
|
+
.thunderid-date-picker__required {
|
|
3863
3646
|
color: var(--thunder-color-error-main);
|
|
3864
3647
|
margin-left: 2px;
|
|
3865
3648
|
}
|
|
3866
3649
|
|
|
3867
|
-
.
|
|
3650
|
+
.thunderid-date-picker__input {
|
|
3868
3651
|
width: 100%;
|
|
3869
3652
|
height: var(--thunder-input-height);
|
|
3870
3653
|
padding: 0 var(--thunder-input-paddingX);
|
|
@@ -3881,23 +3664,23 @@ const DATE_PICKER_CSS = `
|
|
|
3881
3664
|
outline: none;
|
|
3882
3665
|
cursor: pointer;
|
|
3883
3666
|
}
|
|
3884
|
-
.
|
|
3667
|
+
.thunderid-date-picker__input:focus {
|
|
3885
3668
|
border-color: var(--thunder-input-focusBorderColor);
|
|
3886
3669
|
box-shadow: var(--thunder-input-focusRing);
|
|
3887
3670
|
}
|
|
3888
|
-
.
|
|
3671
|
+
.thunderid-date-picker--error .thunderid-date-picker__input {
|
|
3889
3672
|
border-color: var(--thunder-color-error-main);
|
|
3890
3673
|
}
|
|
3891
|
-
.
|
|
3674
|
+
.thunderid-date-picker--error .thunderid-date-picker__input:focus {
|
|
3892
3675
|
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
|
|
3893
3676
|
}
|
|
3894
|
-
.
|
|
3677
|
+
.thunderid-date-picker__input:disabled {
|
|
3895
3678
|
background-color: var(--thunder-color-background-disabled);
|
|
3896
3679
|
color: var(--thunder-color-action-disabled);
|
|
3897
3680
|
cursor: not-allowed;
|
|
3898
3681
|
}
|
|
3899
3682
|
|
|
3900
|
-
.
|
|
3683
|
+
.thunderid-date-picker__error {
|
|
3901
3684
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
3902
3685
|
color: var(--thunder-color-error-contrastText);
|
|
3903
3686
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
@@ -3927,7 +3710,7 @@ var DatePicker_css_default = DATE_PICKER_CSS;
|
|
|
3927
3710
|
/**
|
|
3928
3711
|
* Styles for the Divider primitive component.
|
|
3929
3712
|
*
|
|
3930
|
-
* BEM block: `.
|
|
3713
|
+
* BEM block: `.thunderid-divider`
|
|
3931
3714
|
*
|
|
3932
3715
|
* Modifiers:
|
|
3933
3716
|
* --horizontal – full-width horizontal rule
|
|
@@ -3942,18 +3725,18 @@ const DIVIDER_CSS = `
|
|
|
3942
3725
|
Divider
|
|
3943
3726
|
============================================================ */
|
|
3944
3727
|
|
|
3945
|
-
.
|
|
3728
|
+
.thunderid-divider {
|
|
3946
3729
|
box-sizing: border-box;
|
|
3947
3730
|
}
|
|
3948
3731
|
|
|
3949
|
-
.
|
|
3732
|
+
.thunderid-divider--horizontal {
|
|
3950
3733
|
width: 100%;
|
|
3951
3734
|
border: none;
|
|
3952
3735
|
border-top: 1px solid var(--thunder-color-border);
|
|
3953
3736
|
margin: calc(var(--thunder-spacing-unit) * 1) 0;
|
|
3954
3737
|
}
|
|
3955
3738
|
|
|
3956
|
-
.
|
|
3739
|
+
.thunderid-divider--vertical {
|
|
3957
3740
|
display: inline-block;
|
|
3958
3741
|
width: 1px;
|
|
3959
3742
|
height: 100%;
|
|
@@ -3964,7 +3747,7 @@ const DIVIDER_CSS = `
|
|
|
3964
3747
|
align-self: stretch;
|
|
3965
3748
|
}
|
|
3966
3749
|
|
|
3967
|
-
.
|
|
3750
|
+
.thunderid-divider--with-content {
|
|
3968
3751
|
display: flex;
|
|
3969
3752
|
align-items: center;
|
|
3970
3753
|
gap: calc(var(--thunder-spacing-unit) * 1);
|
|
@@ -3972,13 +3755,13 @@ const DIVIDER_CSS = `
|
|
|
3972
3755
|
margin: calc(var(--thunder-spacing-unit) * 1) 0;
|
|
3973
3756
|
}
|
|
3974
3757
|
|
|
3975
|
-
.
|
|
3758
|
+
.thunderid-divider__line {
|
|
3976
3759
|
flex: 1;
|
|
3977
3760
|
height: 1px;
|
|
3978
3761
|
background-color: var(--thunder-color-border);
|
|
3979
3762
|
}
|
|
3980
3763
|
|
|
3981
|
-
.
|
|
3764
|
+
.thunderid-divider__content {
|
|
3982
3765
|
flex-shrink: 0;
|
|
3983
3766
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
3984
3767
|
color: var(--thunder-color-text-secondary);
|
|
@@ -4013,7 +3796,7 @@ var Divider_css_default = DIVIDER_CSS;
|
|
|
4013
3796
|
/**
|
|
4014
3797
|
* Styles for the Logo primitive component.
|
|
4015
3798
|
*
|
|
4016
|
-
* BEM block: `.
|
|
3799
|
+
* BEM block: `.thunderid-logo`
|
|
4017
3800
|
*
|
|
4018
3801
|
* Elements:
|
|
4019
3802
|
* __image
|
|
@@ -4023,18 +3806,18 @@ const LOGO_CSS = `
|
|
|
4023
3806
|
Logo
|
|
4024
3807
|
============================================================ */
|
|
4025
3808
|
|
|
4026
|
-
.
|
|
3809
|
+
.thunderid-logo {
|
|
4027
3810
|
display: inline-flex;
|
|
4028
3811
|
align-items: center;
|
|
4029
3812
|
text-decoration: none;
|
|
4030
3813
|
transition: opacity var(--thunder-transition-fast);
|
|
4031
3814
|
}
|
|
4032
3815
|
|
|
4033
|
-
.
|
|
3816
|
+
.thunderid-logo:hover {
|
|
4034
3817
|
opacity: 0.85;
|
|
4035
3818
|
}
|
|
4036
3819
|
|
|
4037
|
-
.
|
|
3820
|
+
.thunderid-logo__image {
|
|
4038
3821
|
display: block;
|
|
4039
3822
|
max-height: 100%;
|
|
4040
3823
|
width: auto;
|
|
@@ -4066,7 +3849,7 @@ var Logo_css_default = LOGO_CSS;
|
|
|
4066
3849
|
/**
|
|
4067
3850
|
* Styles for the OtpField primitive component.
|
|
4068
3851
|
*
|
|
4069
|
-
* BEM block: `.
|
|
3852
|
+
* BEM block: `.thunderid-otp-field`
|
|
4070
3853
|
*
|
|
4071
3854
|
* Elements:
|
|
4072
3855
|
* __label | __required | __inputs | __digit | __error
|
|
@@ -4076,14 +3859,14 @@ const OTP_FIELD_CSS = `
|
|
|
4076
3859
|
OtpField
|
|
4077
3860
|
============================================================ */
|
|
4078
3861
|
|
|
4079
|
-
.
|
|
3862
|
+
.thunderid-otp-field {
|
|
4080
3863
|
display: flex;
|
|
4081
3864
|
flex-direction: column;
|
|
4082
3865
|
gap: calc(var(--thunder-spacing-unit) * 0.75);
|
|
4083
3866
|
font-family: var(--thunder-typography-fontFamily);
|
|
4084
3867
|
}
|
|
4085
3868
|
|
|
4086
|
-
.
|
|
3869
|
+
.thunderid-otp-field__label {
|
|
4087
3870
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
4088
3871
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
4089
3872
|
color: var(--thunder-color-text-primary);
|
|
@@ -4091,17 +3874,17 @@ const OTP_FIELD_CSS = `
|
|
|
4091
3874
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
4092
3875
|
}
|
|
4093
3876
|
|
|
4094
|
-
.
|
|
3877
|
+
.thunderid-otp-field__required {
|
|
4095
3878
|
color: var(--thunder-color-error-main);
|
|
4096
3879
|
margin-left: 2px;
|
|
4097
3880
|
}
|
|
4098
3881
|
|
|
4099
|
-
.
|
|
3882
|
+
.thunderid-otp-field__inputs {
|
|
4100
3883
|
display: flex;
|
|
4101
3884
|
gap: calc(var(--thunder-spacing-unit) * 0.75);
|
|
4102
3885
|
}
|
|
4103
3886
|
|
|
4104
|
-
.
|
|
3887
|
+
.thunderid-otp-field__digit {
|
|
4105
3888
|
width: var(--thunder-input-height);
|
|
4106
3889
|
height: var(--thunder-input-height);
|
|
4107
3890
|
text-align: center;
|
|
@@ -4118,17 +3901,17 @@ const OTP_FIELD_CSS = `
|
|
|
4118
3901
|
border-color var(--thunder-transition-fast),
|
|
4119
3902
|
box-shadow var(--thunder-transition-fast);
|
|
4120
3903
|
}
|
|
4121
|
-
.
|
|
3904
|
+
.thunderid-otp-field__digit:focus {
|
|
4122
3905
|
border-color: var(--thunder-input-focusBorderColor);
|
|
4123
3906
|
box-shadow: var(--thunder-input-focusRing);
|
|
4124
3907
|
}
|
|
4125
|
-
.
|
|
3908
|
+
.thunderid-otp-field__digit:disabled {
|
|
4126
3909
|
background-color: var(--thunder-color-background-disabled);
|
|
4127
3910
|
color: var(--thunder-color-action-disabled);
|
|
4128
3911
|
cursor: not-allowed;
|
|
4129
3912
|
}
|
|
4130
3913
|
|
|
4131
|
-
.
|
|
3914
|
+
.thunderid-otp-field__error {
|
|
4132
3915
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
4133
3916
|
color: var(--thunder-color-error-contrastText);
|
|
4134
3917
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
@@ -4158,7 +3941,7 @@ var OtpField_css_default = OTP_FIELD_CSS;
|
|
|
4158
3941
|
/**
|
|
4159
3942
|
* Styles for the PasswordField primitive component.
|
|
4160
3943
|
*
|
|
4161
|
-
* BEM block: `.
|
|
3944
|
+
* BEM block: `.thunderid-password-field`
|
|
4162
3945
|
*
|
|
4163
3946
|
* Modifiers:
|
|
4164
3947
|
* --error – shows validation error state
|
|
@@ -4171,7 +3954,7 @@ const PASSWORD_FIELD_CSS = `
|
|
|
4171
3954
|
PasswordField
|
|
4172
3955
|
============================================================ */
|
|
4173
3956
|
|
|
4174
|
-
.
|
|
3957
|
+
.thunderid-password-field {
|
|
4175
3958
|
display: flex;
|
|
4176
3959
|
flex-direction: column;
|
|
4177
3960
|
gap: calc(var(--thunder-spacing-unit) * 0.5);
|
|
@@ -4180,7 +3963,7 @@ const PASSWORD_FIELD_CSS = `
|
|
|
4180
3963
|
box-sizing: border-box;
|
|
4181
3964
|
}
|
|
4182
3965
|
|
|
4183
|
-
.
|
|
3966
|
+
.thunderid-password-field__label {
|
|
4184
3967
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
4185
3968
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
4186
3969
|
color: var(--thunder-color-text-primary);
|
|
@@ -4188,12 +3971,12 @@ const PASSWORD_FIELD_CSS = `
|
|
|
4188
3971
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
4189
3972
|
}
|
|
4190
3973
|
|
|
4191
|
-
.
|
|
3974
|
+
.thunderid-password-field__required {
|
|
4192
3975
|
color: var(--thunder-color-error-main);
|
|
4193
3976
|
margin-left: 2px;
|
|
4194
3977
|
}
|
|
4195
3978
|
|
|
4196
|
-
.
|
|
3979
|
+
.thunderid-password-field__wrapper {
|
|
4197
3980
|
display: flex;
|
|
4198
3981
|
align-items: center;
|
|
4199
3982
|
height: var(--thunder-input-height);
|
|
@@ -4206,18 +3989,18 @@ const PASSWORD_FIELD_CSS = `
|
|
|
4206
3989
|
overflow: hidden;
|
|
4207
3990
|
box-sizing: border-box;
|
|
4208
3991
|
}
|
|
4209
|
-
.
|
|
3992
|
+
.thunderid-password-field__wrapper:focus-within {
|
|
4210
3993
|
border-color: var(--thunder-input-focusBorderColor);
|
|
4211
3994
|
box-shadow: var(--thunder-input-focusRing);
|
|
4212
3995
|
}
|
|
4213
|
-
.
|
|
3996
|
+
.thunderid-password-field--error .thunderid-password-field__wrapper {
|
|
4214
3997
|
border-color: var(--thunder-color-error-main);
|
|
4215
3998
|
}
|
|
4216
|
-
.
|
|
3999
|
+
.thunderid-password-field--error .thunderid-password-field__wrapper:focus-within {
|
|
4217
4000
|
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
|
|
4218
4001
|
}
|
|
4219
4002
|
|
|
4220
|
-
.
|
|
4003
|
+
.thunderid-password-field__input {
|
|
4221
4004
|
flex: 1;
|
|
4222
4005
|
padding: 0 var(--thunder-input-paddingX);
|
|
4223
4006
|
border: none;
|
|
@@ -4231,14 +4014,14 @@ const PASSWORD_FIELD_CSS = `
|
|
|
4231
4014
|
box-sizing: border-box;
|
|
4232
4015
|
min-width: 0;
|
|
4233
4016
|
}
|
|
4234
|
-
.
|
|
4017
|
+
.thunderid-password-field__input::placeholder {
|
|
4235
4018
|
color: var(--thunder-color-text-secondary);
|
|
4236
4019
|
}
|
|
4237
|
-
.
|
|
4020
|
+
.thunderid-password-field__input:disabled {
|
|
4238
4021
|
cursor: not-allowed;
|
|
4239
4022
|
}
|
|
4240
4023
|
|
|
4241
|
-
.
|
|
4024
|
+
.thunderid-password-field__toggle {
|
|
4242
4025
|
background: none;
|
|
4243
4026
|
border: none;
|
|
4244
4027
|
cursor: pointer;
|
|
@@ -4252,11 +4035,11 @@ const PASSWORD_FIELD_CSS = `
|
|
|
4252
4035
|
height: 100%;
|
|
4253
4036
|
transition: color var(--thunder-transition-fast);
|
|
4254
4037
|
}
|
|
4255
|
-
.
|
|
4038
|
+
.thunderid-password-field__toggle:hover {
|
|
4256
4039
|
color: var(--thunder-color-text-primary);
|
|
4257
4040
|
}
|
|
4258
4041
|
|
|
4259
|
-
.
|
|
4042
|
+
.thunderid-password-field__error {
|
|
4260
4043
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
4261
4044
|
color: var(--thunder-color-error-contrastText);
|
|
4262
4045
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
@@ -4286,7 +4069,7 @@ var PasswordField_css_default = PASSWORD_FIELD_CSS;
|
|
|
4286
4069
|
/**
|
|
4287
4070
|
* Styles for the Select primitive component.
|
|
4288
4071
|
*
|
|
4289
|
-
* BEM block: `.
|
|
4072
|
+
* BEM block: `.thunderid-select`
|
|
4290
4073
|
*
|
|
4291
4074
|
* Modifiers:
|
|
4292
4075
|
* --error – shows validation error state
|
|
@@ -4299,7 +4082,7 @@ const SELECT_CSS = `
|
|
|
4299
4082
|
Select
|
|
4300
4083
|
============================================================ */
|
|
4301
4084
|
|
|
4302
|
-
.
|
|
4085
|
+
.thunderid-select {
|
|
4303
4086
|
display: flex;
|
|
4304
4087
|
flex-direction: column;
|
|
4305
4088
|
gap: calc(var(--thunder-spacing-unit) * 0.5);
|
|
@@ -4308,7 +4091,7 @@ const SELECT_CSS = `
|
|
|
4308
4091
|
box-sizing: border-box;
|
|
4309
4092
|
}
|
|
4310
4093
|
|
|
4311
|
-
.
|
|
4094
|
+
.thunderid-select__label {
|
|
4312
4095
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
4313
4096
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
4314
4097
|
color: var(--thunder-color-text-primary);
|
|
@@ -4316,12 +4099,12 @@ const SELECT_CSS = `
|
|
|
4316
4099
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
4317
4100
|
}
|
|
4318
4101
|
|
|
4319
|
-
.
|
|
4102
|
+
.thunderid-select__required {
|
|
4320
4103
|
color: var(--thunder-color-error-main);
|
|
4321
4104
|
margin-left: 2px;
|
|
4322
4105
|
}
|
|
4323
4106
|
|
|
4324
|
-
.
|
|
4107
|
+
.thunderid-select__input {
|
|
4325
4108
|
width: 100%;
|
|
4326
4109
|
height: var(--thunder-input-height);
|
|
4327
4110
|
padding: 0 calc(var(--thunder-spacing-unit) * 4) 0 var(--thunder-input-paddingX);
|
|
@@ -4344,30 +4127,30 @@ const SELECT_CSS = `
|
|
|
4344
4127
|
outline: none;
|
|
4345
4128
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
4346
4129
|
}
|
|
4347
|
-
.
|
|
4130
|
+
.thunderid-select__input:focus {
|
|
4348
4131
|
border-color: var(--thunder-input-focusBorderColor);
|
|
4349
4132
|
box-shadow: var(--thunder-input-focusRing);
|
|
4350
4133
|
}
|
|
4351
|
-
.
|
|
4134
|
+
.thunderid-select__input:disabled {
|
|
4352
4135
|
background-color: var(--thunder-color-background-disabled);
|
|
4353
4136
|
color: var(--thunder-color-action-disabled);
|
|
4354
4137
|
cursor: not-allowed;
|
|
4355
4138
|
}
|
|
4356
4139
|
|
|
4357
|
-
.
|
|
4140
|
+
.thunderid-select--error .thunderid-select__input {
|
|
4358
4141
|
border-color: var(--thunder-color-error-main);
|
|
4359
4142
|
}
|
|
4360
|
-
.
|
|
4143
|
+
.thunderid-select--error .thunderid-select__input:focus {
|
|
4361
4144
|
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
|
|
4362
4145
|
}
|
|
4363
4146
|
|
|
4364
|
-
.
|
|
4147
|
+
.thunderid-select__error {
|
|
4365
4148
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
4366
4149
|
color: var(--thunder-color-error-contrastText);
|
|
4367
4150
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
4368
4151
|
}
|
|
4369
4152
|
|
|
4370
|
-
.
|
|
4153
|
+
.thunderid-select__helper {
|
|
4371
4154
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
4372
4155
|
color: var(--thunder-color-text-secondary);
|
|
4373
4156
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
@@ -4397,7 +4180,7 @@ var Select_css_default = SELECT_CSS;
|
|
|
4397
4180
|
/**
|
|
4398
4181
|
* Styles for the Spinner primitive component.
|
|
4399
4182
|
*
|
|
4400
|
-
* BEM block: `.
|
|
4183
|
+
* BEM block: `.thunderid-spinner`
|
|
4401
4184
|
*
|
|
4402
4185
|
* Modifiers:
|
|
4403
4186
|
* Size: --small | --medium | --large
|
|
@@ -4413,35 +4196,35 @@ const SPINNER_CSS = `
|
|
|
4413
4196
|
Spinner
|
|
4414
4197
|
============================================================ */
|
|
4415
4198
|
|
|
4416
|
-
.
|
|
4199
|
+
.thunderid-spinner {
|
|
4417
4200
|
display: inline-flex;
|
|
4418
4201
|
align-items: center;
|
|
4419
4202
|
justify-content: center;
|
|
4420
4203
|
color: var(--thunder-color-primary-main);
|
|
4421
4204
|
}
|
|
4422
4205
|
|
|
4423
|
-
.
|
|
4206
|
+
.thunderid-spinner--small {
|
|
4424
4207
|
width: calc(var(--thunder-spacing-unit) * 2);
|
|
4425
4208
|
height: calc(var(--thunder-spacing-unit) * 2);
|
|
4426
4209
|
}
|
|
4427
4210
|
|
|
4428
|
-
.
|
|
4211
|
+
.thunderid-spinner--medium {
|
|
4429
4212
|
width: calc(var(--thunder-spacing-unit) * 2.5);
|
|
4430
4213
|
height: calc(var(--thunder-spacing-unit) * 2.5);
|
|
4431
4214
|
}
|
|
4432
4215
|
|
|
4433
|
-
.
|
|
4216
|
+
.thunderid-spinner--large {
|
|
4434
4217
|
width: calc(var(--thunder-spacing-unit) * 3.5);
|
|
4435
4218
|
height: calc(var(--thunder-spacing-unit) * 3.5);
|
|
4436
4219
|
}
|
|
4437
4220
|
|
|
4438
|
-
.
|
|
4221
|
+
.thunderid-spinner__svg {
|
|
4439
4222
|
width: 100%;
|
|
4440
4223
|
height: 100%;
|
|
4441
4224
|
animation: thunder-spin 1.4s linear infinite;
|
|
4442
4225
|
}
|
|
4443
4226
|
|
|
4444
|
-
.
|
|
4227
|
+
.thunderid-spinner__circle {
|
|
4445
4228
|
stroke-dasharray: 80, 200;
|
|
4446
4229
|
stroke-dashoffset: 0;
|
|
4447
4230
|
animation: thunder-spinner-dash 1.4s ease-in-out infinite;
|
|
@@ -4471,7 +4254,7 @@ var Spinner_css_default = SPINNER_CSS;
|
|
|
4471
4254
|
/**
|
|
4472
4255
|
* Styles for the TextField primitive component.
|
|
4473
4256
|
*
|
|
4474
|
-
* BEM block: `.
|
|
4257
|
+
* BEM block: `.thunderid-text-field`
|
|
4475
4258
|
*
|
|
4476
4259
|
* Modifiers:
|
|
4477
4260
|
* --error – shows validation error state
|
|
@@ -4484,7 +4267,7 @@ const TEXT_FIELD_CSS = `
|
|
|
4484
4267
|
TextField
|
|
4485
4268
|
============================================================ */
|
|
4486
4269
|
|
|
4487
|
-
.
|
|
4270
|
+
.thunderid-text-field {
|
|
4488
4271
|
display: flex;
|
|
4489
4272
|
flex-direction: column;
|
|
4490
4273
|
gap: calc(var(--thunder-spacing-unit) * 0.5);
|
|
@@ -4493,7 +4276,7 @@ const TEXT_FIELD_CSS = `
|
|
|
4493
4276
|
box-sizing: border-box;
|
|
4494
4277
|
}
|
|
4495
4278
|
|
|
4496
|
-
.
|
|
4279
|
+
.thunderid-text-field__label {
|
|
4497
4280
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
4498
4281
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
4499
4282
|
color: var(--thunder-color-text-primary);
|
|
@@ -4501,12 +4284,12 @@ const TEXT_FIELD_CSS = `
|
|
|
4501
4284
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
4502
4285
|
}
|
|
4503
4286
|
|
|
4504
|
-
.
|
|
4287
|
+
.thunderid-text-field__required {
|
|
4505
4288
|
color: var(--thunder-color-error-main);
|
|
4506
4289
|
margin-left: 2px;
|
|
4507
4290
|
}
|
|
4508
4291
|
|
|
4509
|
-
.
|
|
4292
|
+
.thunderid-text-field__input {
|
|
4510
4293
|
width: 100%;
|
|
4511
4294
|
height: var(--thunder-input-height);
|
|
4512
4295
|
padding: 0 var(--thunder-input-paddingX);
|
|
@@ -4522,33 +4305,33 @@ const TEXT_FIELD_CSS = `
|
|
|
4522
4305
|
box-shadow var(--thunder-transition-fast);
|
|
4523
4306
|
outline: none;
|
|
4524
4307
|
}
|
|
4525
|
-
.
|
|
4308
|
+
.thunderid-text-field__input:focus {
|
|
4526
4309
|
border-color: var(--thunder-input-focusBorderColor);
|
|
4527
4310
|
box-shadow: var(--thunder-input-focusRing);
|
|
4528
4311
|
}
|
|
4529
|
-
.
|
|
4312
|
+
.thunderid-text-field__input::placeholder {
|
|
4530
4313
|
color: var(--thunder-color-text-secondary);
|
|
4531
4314
|
}
|
|
4532
|
-
.
|
|
4315
|
+
.thunderid-text-field__input:disabled {
|
|
4533
4316
|
background-color: var(--thunder-color-background-disabled);
|
|
4534
4317
|
color: var(--thunder-color-action-disabled);
|
|
4535
4318
|
cursor: not-allowed;
|
|
4536
4319
|
}
|
|
4537
4320
|
|
|
4538
|
-
.
|
|
4321
|
+
.thunderid-text-field--error .thunderid-text-field__input {
|
|
4539
4322
|
border-color: var(--thunder-color-error-main);
|
|
4540
4323
|
}
|
|
4541
|
-
.
|
|
4324
|
+
.thunderid-text-field--error .thunderid-text-field__input:focus {
|
|
4542
4325
|
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
|
|
4543
4326
|
}
|
|
4544
4327
|
|
|
4545
|
-
.
|
|
4328
|
+
.thunderid-text-field__error {
|
|
4546
4329
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
4547
4330
|
color: var(--thunder-color-error-contrastText);
|
|
4548
4331
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
4549
4332
|
}
|
|
4550
4333
|
|
|
4551
|
-
.
|
|
4334
|
+
.thunderid-text-field__helper {
|
|
4552
4335
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
4553
4336
|
color: var(--thunder-color-text-secondary);
|
|
4554
4337
|
line-height: var(--thunder-typography-lineHeight-normal);
|
|
@@ -4578,7 +4361,7 @@ var TextField_css_default = TEXT_FIELD_CSS;
|
|
|
4578
4361
|
/**
|
|
4579
4362
|
* Styles for the Typography primitive component.
|
|
4580
4363
|
*
|
|
4581
|
-
* BEM block: `.
|
|
4364
|
+
* BEM block: `.thunderid-typography`
|
|
4582
4365
|
*
|
|
4583
4366
|
* Modifiers (variant):
|
|
4584
4367
|
* --h1 | --h2 | --h3 | --h4 | --h5 | --h6
|
|
@@ -4591,7 +4374,7 @@ const TYPOGRAPHY_CSS = `
|
|
|
4591
4374
|
Typography
|
|
4592
4375
|
============================================================ */
|
|
4593
4376
|
|
|
4594
|
-
.
|
|
4377
|
+
.thunderid-typography {
|
|
4595
4378
|
font-family: var(--thunder-typography-fontFamily);
|
|
4596
4379
|
color: var(--thunder-color-text-primary);
|
|
4597
4380
|
margin: 0;
|
|
@@ -4600,74 +4383,74 @@ const TYPOGRAPHY_CSS = `
|
|
|
4600
4383
|
-moz-osx-font-smoothing: grayscale;
|
|
4601
4384
|
}
|
|
4602
4385
|
|
|
4603
|
-
.
|
|
4386
|
+
.thunderid-typography--h1 {
|
|
4604
4387
|
font-size: var(--thunder-typography-fontSize-3xl);
|
|
4605
4388
|
font-weight: var(--thunder-typography-fontWeight-bold);
|
|
4606
4389
|
line-height: var(--thunder-typography-lineHeight-tight);
|
|
4607
4390
|
letter-spacing: var(--thunder-typography-letterSpacing-tight);
|
|
4608
4391
|
}
|
|
4609
4392
|
|
|
4610
|
-
.
|
|
4393
|
+
.thunderid-typography--h2 {
|
|
4611
4394
|
font-size: var(--thunder-typography-fontSize-2xl);
|
|
4612
4395
|
font-weight: var(--thunder-typography-fontWeight-bold);
|
|
4613
4396
|
line-height: var(--thunder-typography-lineHeight-tight);
|
|
4614
4397
|
letter-spacing: var(--thunder-typography-letterSpacing-tight);
|
|
4615
4398
|
}
|
|
4616
4399
|
|
|
4617
|
-
.
|
|
4400
|
+
.thunderid-typography--h3 {
|
|
4618
4401
|
font-size: var(--thunder-typography-fontSize-xl);
|
|
4619
4402
|
font-weight: var(--thunder-typography-fontWeight-semibold);
|
|
4620
4403
|
line-height: var(--thunder-typography-lineHeight-tight);
|
|
4621
4404
|
}
|
|
4622
4405
|
|
|
4623
|
-
.
|
|
4406
|
+
.thunderid-typography--h4 {
|
|
4624
4407
|
font-size: var(--thunder-typography-fontSize-lg);
|
|
4625
4408
|
font-weight: var(--thunder-typography-fontWeight-semibold);
|
|
4626
4409
|
}
|
|
4627
4410
|
|
|
4628
|
-
.
|
|
4411
|
+
.thunderid-typography--h5 {
|
|
4629
4412
|
font-size: var(--thunder-typography-fontSize-md);
|
|
4630
4413
|
font-weight: var(--thunder-typography-fontWeight-semibold);
|
|
4631
4414
|
}
|
|
4632
4415
|
|
|
4633
|
-
.
|
|
4416
|
+
.thunderid-typography--h6 {
|
|
4634
4417
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
4635
4418
|
font-weight: var(--thunder-typography-fontWeight-semibold);
|
|
4636
4419
|
text-transform: uppercase;
|
|
4637
4420
|
letter-spacing: var(--thunder-typography-letterSpacing-wide);
|
|
4638
4421
|
}
|
|
4639
4422
|
|
|
4640
|
-
.
|
|
4423
|
+
.thunderid-typography--subtitle1 {
|
|
4641
4424
|
font-size: var(--thunder-typography-fontSize-lg);
|
|
4642
4425
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
4643
4426
|
}
|
|
4644
4427
|
|
|
4645
|
-
.
|
|
4428
|
+
.thunderid-typography--subtitle2 {
|
|
4646
4429
|
font-size: var(--thunder-typography-fontSize-md);
|
|
4647
4430
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
4648
4431
|
color: var(--thunder-color-text-secondary);
|
|
4649
4432
|
}
|
|
4650
4433
|
|
|
4651
|
-
.
|
|
4434
|
+
.thunderid-typography--body1 {
|
|
4652
4435
|
font-size: var(--thunder-typography-fontSize-md);
|
|
4653
4436
|
font-weight: var(--thunder-typography-fontWeight-normal);
|
|
4654
4437
|
line-height: var(--thunder-typography-lineHeight-relaxed);
|
|
4655
4438
|
}
|
|
4656
4439
|
|
|
4657
|
-
.
|
|
4440
|
+
.thunderid-typography--body2 {
|
|
4658
4441
|
font-size: var(--thunder-typography-fontSize-sm);
|
|
4659
4442
|
font-weight: var(--thunder-typography-fontWeight-normal);
|
|
4660
4443
|
line-height: var(--thunder-typography-lineHeight-relaxed);
|
|
4661
4444
|
color: var(--thunder-color-text-secondary);
|
|
4662
4445
|
}
|
|
4663
4446
|
|
|
4664
|
-
.
|
|
4447
|
+
.thunderid-typography--caption {
|
|
4665
4448
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
4666
4449
|
font-weight: var(--thunder-typography-fontWeight-normal);
|
|
4667
4450
|
color: var(--thunder-color-text-secondary);
|
|
4668
4451
|
}
|
|
4669
4452
|
|
|
4670
|
-
.
|
|
4453
|
+
.thunderid-typography--overline {
|
|
4671
4454
|
font-size: var(--thunder-typography-fontSize-xs);
|
|
4672
4455
|
font-weight: var(--thunder-typography-fontWeight-medium);
|
|
4673
4456
|
text-transform: uppercase;
|
|
@@ -8867,7 +8650,7 @@ var SignIn_default$2 = SignIn$1;
|
|
|
8867
8650
|
* SignIn — platform-aware sign-in component.
|
|
8868
8651
|
*
|
|
8869
8652
|
* Routes to the V1 (authenticator-based) flow by default or the V2
|
|
8870
|
-
* (component-driven) flow when `platform` is set to `Platform.
|
|
8653
|
+
* (component-driven) flow when `platform` is set to `Platform.ThunderID`.
|
|
8871
8654
|
*/
|
|
8872
8655
|
const SignIn = defineComponent({
|
|
8873
8656
|
name: "SignIn",
|
|
@@ -8889,7 +8672,7 @@ const SignIn = defineComponent({
|
|
|
8889
8672
|
setup(props, { slots, emit, attrs }) {
|
|
8890
8673
|
const { platform } = useThunderID_default();
|
|
8891
8674
|
return () => {
|
|
8892
|
-
if (platform === Platform.
|
|
8675
|
+
if (platform === Platform.ThunderID) return h(SignIn_default$2, {
|
|
8893
8676
|
...attrs,
|
|
8894
8677
|
class: props.className,
|
|
8895
8678
|
onError: (err) => emit("error", err),
|
|
@@ -8924,7 +8707,7 @@ const BaseSignIn = defineComponent({
|
|
|
8924
8707
|
setup(_props, { attrs, slots }) {
|
|
8925
8708
|
const { platform } = useThunderID_default();
|
|
8926
8709
|
return () => {
|
|
8927
|
-
if (platform === Platform.
|
|
8710
|
+
if (platform === Platform.ThunderID) return h(BaseSignIn_default$2, { ...attrs }, slots);
|
|
8928
8711
|
return h(BaseSignIn_default$1, { ...attrs }, slots);
|
|
8929
8712
|
};
|
|
8930
8713
|
}
|
|
@@ -10291,7 +10074,7 @@ const SignUp = defineComponent({
|
|
|
10291
10074
|
setup(_props, { attrs, slots }) {
|
|
10292
10075
|
const { platform } = useThunderID_default();
|
|
10293
10076
|
return () => {
|
|
10294
|
-
if (platform === Platform.
|
|
10077
|
+
if (platform === Platform.ThunderID) return h(SignUp_default$2, { ...attrs }, slots);
|
|
10295
10078
|
return h(SignUp_default$1, { ...attrs }, slots);
|
|
10296
10079
|
};
|
|
10297
10080
|
}
|
|
@@ -10317,7 +10100,7 @@ const BaseSignUp = defineComponent({
|
|
|
10317
10100
|
setup(_props, { attrs, slots }) {
|
|
10318
10101
|
const { platform } = useThunderID_default();
|
|
10319
10102
|
return () => {
|
|
10320
|
-
if (platform === Platform.
|
|
10103
|
+
if (platform === Platform.ThunderID) return h(BaseSignUp_default$2, { ...attrs }, slots);
|
|
10321
10104
|
return h(BaseSignUp_default$1, { ...attrs }, slots);
|
|
10322
10105
|
};
|
|
10323
10106
|
}
|
|
@@ -10905,8 +10688,7 @@ var BaseUserProfile_default = BaseUserProfile;
|
|
|
10905
10688
|
//#region src/api/updateMeProfile.ts
|
|
10906
10689
|
const updateMeProfile$1 = async ({ fetcher, instanceId = 0,...requestConfig }) => {
|
|
10907
10690
|
const defaultFetcher = async (url, config) => {
|
|
10908
|
-
const
|
|
10909
|
-
const response = await client.httpRequest.bind(client)({
|
|
10691
|
+
const response = await FetchHttpClient.getInstance(instanceId).request({
|
|
10910
10692
|
data: config.body ? JSON.parse(config.body) : void 0,
|
|
10911
10693
|
headers: config.headers,
|
|
10912
10694
|
method: config.method || "PATCH",
|