@thunderid/vue 1.0.4 → 1.0.6

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.
Files changed (51) hide show
  1. package/dist/cjs/index.cjs +806 -606
  2. package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts.map +1 -1
  3. package/dist/components/auth/sign-in/BaseSignIn.css.d.ts +12 -0
  4. package/dist/components/auth/sign-in/BaseSignIn.css.d.ts.map +1 -0
  5. package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -1
  6. package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -1
  7. package/dist/components/factories/FieldFactory.d.ts.map +1 -1
  8. package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts +1 -1
  9. package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts.map +1 -1
  10. package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +1 -1
  11. package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts.map +1 -1
  12. package/dist/components/presentation/user-profile/UserProfile.css.d.ts +1 -1
  13. package/dist/components/presentation/user-profile/UserProfile.css.d.ts.map +1 -1
  14. package/dist/components/primitives/Alert/Alert.css.d.ts +1 -1
  15. package/dist/components/primitives/Alert/Alert.css.d.ts.map +1 -1
  16. package/dist/components/primitives/Button/Button.css.d.ts +1 -1
  17. package/dist/components/primitives/Button/Button.css.d.ts.map +1 -1
  18. package/dist/components/primitives/Card/Card.css.d.ts +1 -1
  19. package/dist/components/primitives/Card/Card.css.d.ts.map +1 -1
  20. package/dist/components/primitives/Checkbox/Checkbox.css.d.ts +1 -1
  21. package/dist/components/primitives/Checkbox/Checkbox.css.d.ts.map +1 -1
  22. package/dist/components/primitives/DatePicker/DatePicker.css.d.ts +1 -1
  23. package/dist/components/primitives/DatePicker/DatePicker.css.d.ts.map +1 -1
  24. package/dist/components/primitives/Divider/Divider.css.d.ts +1 -1
  25. package/dist/components/primitives/Divider/Divider.css.d.ts.map +1 -1
  26. package/dist/components/primitives/Logo/Logo.css.d.ts +1 -1
  27. package/dist/components/primitives/Logo/Logo.css.d.ts.map +1 -1
  28. package/dist/components/primitives/OtpField/OtpField.css.d.ts +1 -1
  29. package/dist/components/primitives/OtpField/OtpField.css.d.ts.map +1 -1
  30. package/dist/components/primitives/OtpField/OtpField.d.ts.map +1 -1
  31. package/dist/components/primitives/PasswordField/PasswordField.css.d.ts +1 -1
  32. package/dist/components/primitives/PasswordField/PasswordField.css.d.ts.map +1 -1
  33. package/dist/components/primitives/Select/Select.css.d.ts +1 -1
  34. package/dist/components/primitives/Select/Select.css.d.ts.map +1 -1
  35. package/dist/components/primitives/Spinner/Spinner.css.d.ts +1 -1
  36. package/dist/components/primitives/Spinner/Spinner.css.d.ts.map +1 -1
  37. package/dist/components/primitives/TextField/TextField.css.d.ts +1 -1
  38. package/dist/components/primitives/TextField/TextField.css.d.ts.map +1 -1
  39. package/dist/components/primitives/Typography/Typography.css.d.ts +1 -1
  40. package/dist/components/primitives/Typography/Typography.css.d.ts.map +1 -1
  41. package/dist/composables/useOAuthCallback.d.ts.map +1 -1
  42. package/dist/index.d.ts +3 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +803 -607
  45. package/dist/providers/FlowMetaProvider.d.ts.map +1 -1
  46. package/dist/providers/ThemeProvider.d.ts.map +1 -1
  47. package/dist/styles/defaults.css.d.ts +2 -2
  48. package/dist/styles/defaults.css.d.ts.map +1 -1
  49. package/dist/styles/injectStyles.d.ts.map +1 -1
  50. package/dist/utils/resolveTranslationsInObject.d.ts.map +1 -1
  51. package/package.json +2 -2
@@ -58,14 +58,24 @@ const I18N_KEY = Symbol("thunderid-i18n");
58
58
  //#region src/providers/FlowMetaProvider.ts
59
59
  const FlowMetaProvider = (0, vue.defineComponent)({
60
60
  name: "FlowMetaProvider",
61
- props: { enabled: {
62
- default: true,
63
- type: Boolean
64
- } },
61
+ props: {
62
+ enabled: {
63
+ default: true,
64
+ type: Boolean
65
+ },
66
+ fetchMeta: {
67
+ default: void 0,
68
+ type: Function
69
+ },
70
+ initialMeta: {
71
+ default: null,
72
+ type: Object
73
+ }
74
+ },
65
75
  setup(props, { slots }) {
66
76
  const thunderIDContext = (0, vue.inject)(THUNDERID_KEY);
67
77
  const i18nContext = (0, vue.inject)(I18N_KEY, null);
68
- const meta = (0, vue.ref)(null);
78
+ const meta = (0, vue.ref)(props.initialMeta ?? null);
69
79
  const isLoading = (0, vue.ref)(false);
70
80
  const error = (0, vue.ref)(null);
71
81
  const pendingLanguage = (0, vue.ref)(null);
@@ -80,7 +90,7 @@ const FlowMetaProvider = (0, vue.defineComponent)({
80
90
  isLoading.value = true;
81
91
  error.value = null;
82
92
  try {
83
- meta.value = await (0, __thunderid_browser.getFlowMeta)({
93
+ meta.value = props.fetchMeta ? await props.fetchMeta({ applicationId }) : await (0, __thunderid_browser.getFlowMeta)({
84
94
  baseUrl,
85
95
  url: flowMetaUrl,
86
96
  ...applicationId ? {
@@ -99,7 +109,10 @@ const FlowMetaProvider = (0, vue.defineComponent)({
99
109
  isLoading.value = true;
100
110
  error.value = null;
101
111
  try {
102
- const result = await (0, __thunderid_browser.getFlowMeta)({
112
+ const result = props.fetchMeta ? await props.fetchMeta({
113
+ applicationId,
114
+ language
115
+ }) : await (0, __thunderid_browser.getFlowMeta)({
103
116
  baseUrl,
104
117
  url: flowMetaUrl,
105
118
  ...applicationId ? {
@@ -150,6 +163,7 @@ const FlowMetaProvider = (0, vue.defineComponent)({
150
163
  i18nContext.injectBundles(bundlesToInject);
151
164
  });
152
165
  (0, vue.onMounted)(() => {
166
+ if (props.initialMeta) return;
153
167
  fetchFlowMeta();
154
168
  });
155
169
  (0, vue.provide)(FLOW_META_KEY, {
@@ -484,6 +498,42 @@ const I18nProvider = (0, vue.defineComponent)({
484
498
  });
485
499
  var I18nProvider_default = I18nProvider;
486
500
 
501
+ //#endregion
502
+ //#region src/utils/buildThemeConfigFromFlowMeta.ts
503
+ /**
504
+ * Converts a v2 `FlowMetaTheme` into a `RecursivePartial<ThemeConfig>` that
505
+ * `createTheme` can consume.
506
+ *
507
+ * Only fields explicitly present in the FlowMeta response are included so that
508
+ * `createTheme` can deep-merge them onto its base (light/dark) defaults without
509
+ * accidentally dropping sibling keys that were not returned by the server.
510
+ */
511
+ const buildThemeConfigFromFlowMeta = (flowMetaTheme, colorScheme) => {
512
+ const scheme = flowMetaTheme.colorSchemes?.[colorScheme];
513
+ const borderRadiusConfig = (0, __thunderid_browser.normalizeBorderRadius)(flowMetaTheme.shape?.borderRadius);
514
+ let colors;
515
+ if (scheme?.palette) {
516
+ colors = {};
517
+ if (scheme.palette.primary) colors.primary = scheme.palette.primary;
518
+ if (scheme.palette.secondary) colors.secondary = scheme.palette.secondary;
519
+ if (scheme.palette.text) colors.text = scheme.palette.text;
520
+ if (scheme.palette.background) {
521
+ const bg = {};
522
+ if (scheme.palette.background.default) bg.body = { main: scheme.palette.background.default };
523
+ if (scheme.palette.background.paper) bg.surface = scheme.palette.background.paper;
524
+ if (Object.keys(bg).length > 0) colors.background = bg;
525
+ }
526
+ }
527
+ return {
528
+ ...flowMetaTheme,
529
+ ...flowMetaTheme.direction ? { direction: flowMetaTheme.direction } : {},
530
+ ...borderRadiusConfig ? { borderRadius: borderRadiusConfig } : {},
531
+ ...colors && Object.keys(colors).length > 0 ? { colors } : {},
532
+ ...flowMetaTheme.typography?.fontFamily ? { typography: { fontFamily: flowMetaTheme.typography.fontFamily } } : {}
533
+ };
534
+ };
535
+ var buildThemeConfigFromFlowMeta_default = buildThemeConfigFromFlowMeta;
536
+
487
537
  //#endregion
488
538
  //#region src/providers/ThemeProvider.ts
489
539
  const ThemeProvider = (0, vue.defineComponent)({
@@ -503,13 +553,38 @@ const ThemeProvider = (0, vue.defineComponent)({
503
553
  }
504
554
  },
505
555
  setup(props, { slots }) {
556
+ const flowMetaContext = (0, vue.inject)(FLOW_META_KEY, null);
557
+ const flowMetaTheme = (0, vue.computed)(() => flowMetaContext?.meta.value?.design?.theme ?? null);
506
558
  const initColorScheme = () => {
507
559
  if (props.mode === "light" || props.mode === "dark") return props.mode;
508
- if (props.mode === "branding") return (0, __thunderid_browser.detectThemeMode)("system", props.detection);
560
+ if (props.mode === "branding") return flowMetaTheme.value?.defaultColorScheme ?? (0, __thunderid_browser.detectThemeMode)("system", props.detection);
509
561
  return (0, __thunderid_browser.detectThemeMode)(props.mode, props.detection);
510
562
  };
511
563
  const colorScheme = (0, vue.ref)(initColorScheme());
512
- const finalThemeConfig = (0, vue.computed)(() => props.theme);
564
+ (0, vue.watch)(() => flowMetaTheme.value?.defaultColorScheme, (defaultColorScheme) => {
565
+ if (props.mode === "branding" && defaultColorScheme) colorScheme.value = defaultColorScheme;
566
+ });
567
+ const finalThemeConfig = (0, vue.computed)(() => {
568
+ if (!flowMetaTheme.value) return props.theme;
569
+ const metaConfig = buildThemeConfigFromFlowMeta_default(flowMetaTheme.value, colorScheme.value);
570
+ if (!props.theme) return metaConfig;
571
+ return {
572
+ ...metaConfig,
573
+ ...props.theme,
574
+ borderRadius: {
575
+ ...metaConfig.borderRadius,
576
+ ...props.theme.borderRadius
577
+ },
578
+ colors: {
579
+ ...metaConfig.colors,
580
+ ...props.theme.colors
581
+ },
582
+ ...metaConfig.typography || props.theme.typography ? { typography: {
583
+ ...metaConfig.typography,
584
+ ...props.theme.typography
585
+ } } : {}
586
+ };
587
+ });
513
588
  const resolvedTheme = (0, vue.computed)(() => (0, __thunderid_browser.createTheme)(finalThemeConfig.value, colorScheme.value === "dark"));
514
589
  const direction = (0, vue.computed)(() => finalThemeConfig.value?.direction || "ltr");
515
590
  const toggleTheme = () => {
@@ -1210,7 +1285,7 @@ var animations_css_default = ANIMATIONS_CSS;
1210
1285
  * automatically — no special cascade tricks required.
1211
1286
  *
1212
1287
  * Design token naming follows the pattern:
1213
- * --thunder-{category}-{sub}-{scale?}
1288
+ * --thunderid-{category}-{sub}-{scale?}
1214
1289
  */
1215
1290
  const DEFAULTS_CSS = `
1216
1291
  /* ============================================================
@@ -1219,154 +1294,154 @@ const DEFAULTS_CSS = `
1219
1294
  ============================================================ */
1220
1295
  :root {
1221
1296
  /* --- Colors: Primary --- */
1222
- --thunder-color-primary-main: #4b6ef5;
1223
- --thunder-color-primary-light: #eef1fe;
1224
- --thunder-color-primary-dark: #3451d1;
1225
- --thunder-color-primary-contrastText: #ffffff;
1297
+ --thunderid-color-primary-main: #4b6ef5;
1298
+ --thunderid-color-primary-light: #eef1fe;
1299
+ --thunderid-color-primary-dark: #3451d1;
1300
+ --thunderid-color-primary-contrastText: #ffffff;
1226
1301
 
1227
1302
  /* --- Colors: Secondary --- */
1228
- --thunder-color-secondary-main: #4b5563;
1229
- --thunder-color-secondary-light: #f3f4f6;
1230
- --thunder-color-secondary-contrastText: #ffffff;
1303
+ --thunderid-color-secondary-main: #4b5563;
1304
+ --thunderid-color-secondary-light: #f3f4f6;
1305
+ --thunderid-color-secondary-contrastText: #ffffff;
1231
1306
 
1232
1307
  /* --- Colors: Background --- */
1233
- --thunder-color-background-surface: #ffffff;
1234
- --thunder-color-background-body: #f9fafb;
1235
- --thunder-color-background-disabled: #f3f4f6;
1236
- --thunder-color-background-muted: #f1f3f5;
1308
+ --thunderid-color-background-surface: #ffffff;
1309
+ --thunderid-color-background-body: #f9fafb;
1310
+ --thunderid-color-background-disabled: #f3f4f6;
1311
+ --thunderid-color-background-muted: #f1f3f5;
1237
1312
 
1238
1313
  /* --- Colors: Text --- */
1239
- --thunder-color-text-primary: #111827;
1240
- --thunder-color-text-secondary: #6b7280;
1314
+ --thunderid-color-text-primary: #111827;
1315
+ --thunderid-color-text-secondary: #6b7280;
1241
1316
 
1242
1317
  /* --- Colors: Border --- */
1243
- --thunder-color-border: #e5e7eb;
1244
- --thunder-color-border-focus: var(--thunder-color-primary-main);
1318
+ --thunderid-color-border: #e5e7eb;
1319
+ --thunderid-color-border-focus: var(--thunderid-color-primary-main);
1245
1320
 
1246
1321
  /* --- Colors: Action states --- */
1247
- --thunder-color-action-hover: rgba(0, 0, 0, 0.04);
1248
- --thunder-color-action-selected: rgba(75, 110, 245, 0.08);
1249
- --thunder-color-action-focus: rgba(75, 110, 245, 0.12);
1250
- --thunder-color-action-disabled: rgba(0, 0, 0, 0.26);
1251
- --thunder-color-action-disabledBackground: rgba(0, 0, 0, 0.08);
1322
+ --thunderid-color-action-hover: rgba(0, 0, 0, 0.04);
1323
+ --thunderid-color-action-selected: rgba(75, 110, 245, 0.08);
1324
+ --thunderid-color-action-focus: rgba(75, 110, 245, 0.12);
1325
+ --thunderid-color-action-disabled: rgba(0, 0, 0, 0.26);
1326
+ --thunderid-color-action-disabledBackground: rgba(0, 0, 0, 0.08);
1252
1327
 
1253
1328
  /* --- Colors: Semantic --- */
1254
- --thunder-color-error-main: #ef4444;
1255
- --thunder-color-error-light: #fef2f2;
1256
- --thunder-color-error-contrastText: #991b1b;
1257
- --thunder-color-success-main: #22c55e;
1258
- --thunder-color-success-light: #f0fdf4;
1259
- --thunder-color-success-contrastText: #166534;
1260
- --thunder-color-warning-main: #f59e0b;
1261
- --thunder-color-warning-light: #fffbeb;
1262
- --thunder-color-warning-contrastText: #92400e;
1263
- --thunder-color-info-main: #3b82f6;
1264
- --thunder-color-info-light: #eff6ff;
1265
- --thunder-color-info-contrastText: #1e40af;
1329
+ --thunderid-color-error-main: #ef4444;
1330
+ --thunderid-color-error-light: #fef2f2;
1331
+ --thunderid-color-error-contrastText: #991b1b;
1332
+ --thunderid-color-success-main: #22c55e;
1333
+ --thunderid-color-success-light: #f0fdf4;
1334
+ --thunderid-color-success-contrastText: #166534;
1335
+ --thunderid-color-warning-main: #f59e0b;
1336
+ --thunderid-color-warning-light: #fffbeb;
1337
+ --thunderid-color-warning-contrastText: #92400e;
1338
+ --thunderid-color-info-main: #3b82f6;
1339
+ --thunderid-color-info-light: #eff6ff;
1340
+ --thunderid-color-info-contrastText: #1e40af;
1266
1341
 
1267
1342
  /* --- Spacing --- */
1268
- --thunder-spacing-unit: 8px;
1343
+ --thunderid-spacing-unit: 8px;
1269
1344
 
1270
1345
  /* --- Border Radius --- */
1271
- --thunder-border-radius-xs: 4px;
1272
- --thunder-border-radius-small: 6px;
1273
- --thunder-border-radius-medium: 10px;
1274
- --thunder-border-radius-large: 14px;
1275
- --thunder-border-radius-full: 9999px;
1346
+ --thunderid-border-radius-xs: 4px;
1347
+ --thunderid-border-radius-small: 6px;
1348
+ --thunderid-border-radius-medium: 10px;
1349
+ --thunderid-border-radius-large: 14px;
1350
+ --thunderid-border-radius-full: 9999px;
1276
1351
 
1277
1352
  /* --- Shadows --- */
1278
- --thunder-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
1279
- --thunder-shadow-small: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
1280
- --thunder-shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
1281
- --thunder-shadow-large: 0 10px 25px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
1353
+ --thunderid-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
1354
+ --thunderid-shadow-small: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
1355
+ --thunderid-shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
1356
+ --thunderid-shadow-large: 0 10px 25px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
1282
1357
 
1283
1358
  /* --- Transitions --- */
1284
- --thunder-transition-fast: 120ms ease;
1285
- --thunder-transition-normal: 180ms ease;
1286
- --thunder-transition-slow: 280ms ease;
1359
+ --thunderid-transition-fast: 120ms ease;
1360
+ --thunderid-transition-normal: 180ms ease;
1361
+ --thunderid-transition-slow: 280ms ease;
1287
1362
 
1288
1363
  /* --- Focus Ring --- */
1289
- --thunder-focus-ring-width: 2px;
1290
- --thunder-focus-ring-offset: 2px;
1291
- --thunder-focus-ring-color: rgba(75, 110, 245, 0.35);
1364
+ --thunderid-focus-ring-width: 2px;
1365
+ --thunderid-focus-ring-offset: 2px;
1366
+ --thunderid-focus-ring-color: rgba(75, 110, 245, 0.35);
1292
1367
 
1293
1368
  /* --- Typography: Font Family --- */
1294
- --thunder-typography-fontFamily: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
1369
+ --thunderid-typography-fontFamily: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
1295
1370
 
1296
1371
  /* --- Typography: Font Sizes --- */
1297
- --thunder-typography-fontSize-xs: 0.6875rem; /* 11px */
1298
- --thunder-typography-fontSize-sm: 0.8125rem; /* 13px */
1299
- --thunder-typography-fontSize-md: 0.875rem; /* 14px */
1300
- --thunder-typography-fontSize-lg: 1rem; /* 16px */
1301
- --thunder-typography-fontSize-xl: 1.125rem; /* 18px */
1302
- --thunder-typography-fontSize-2xl: 1.375rem; /* 22px */
1303
- --thunder-typography-fontSize-3xl: 1.75rem; /* 28px */
1372
+ --thunderid-typography-fontSize-xs: 0.6875rem; /* 11px */
1373
+ --thunderid-typography-fontSize-sm: 0.8125rem; /* 13px */
1374
+ --thunderid-typography-fontSize-md: 0.875rem; /* 14px */
1375
+ --thunderid-typography-fontSize-lg: 1rem; /* 16px */
1376
+ --thunderid-typography-fontSize-xl: 1.125rem; /* 18px */
1377
+ --thunderid-typography-fontSize-2xl: 1.375rem; /* 22px */
1378
+ --thunderid-typography-fontSize-3xl: 1.75rem; /* 28px */
1304
1379
 
1305
1380
  /* --- Typography: Font Weights --- */
1306
- --thunder-typography-fontWeight-normal: 400;
1307
- --thunder-typography-fontWeight-medium: 500;
1308
- --thunder-typography-fontWeight-semibold: 600;
1309
- --thunder-typography-fontWeight-bold: 700;
1381
+ --thunderid-typography-fontWeight-normal: 400;
1382
+ --thunderid-typography-fontWeight-medium: 500;
1383
+ --thunderid-typography-fontWeight-semibold: 600;
1384
+ --thunderid-typography-fontWeight-bold: 700;
1310
1385
 
1311
1386
  /* --- Typography: Line Heights --- */
1312
- --thunder-typography-lineHeight-tight: 1.25;
1313
- --thunder-typography-lineHeight-normal: 1.5;
1314
- --thunder-typography-lineHeight-relaxed: 1.625;
1387
+ --thunderid-typography-lineHeight-tight: 1.25;
1388
+ --thunderid-typography-lineHeight-normal: 1.5;
1389
+ --thunderid-typography-lineHeight-relaxed: 1.625;
1315
1390
 
1316
1391
  /* --- Typography: Letter Spacing --- */
1317
- --thunder-typography-letterSpacing-tight: -0.01em;
1318
- --thunder-typography-letterSpacing-normal: 0;
1319
- --thunder-typography-letterSpacing-wide: 0.025em;
1392
+ --thunderid-typography-letterSpacing-tight: -0.01em;
1393
+ --thunderid-typography-letterSpacing-normal: 0;
1394
+ --thunderid-typography-letterSpacing-wide: 0.025em;
1320
1395
 
1321
1396
  /* --- Component: Button --- */
1322
- --thunder-button-borderRadius: var(--thunder-border-radius-small);
1323
- --thunder-button-fontWeight: var(--thunder-typography-fontWeight-medium);
1324
- --thunder-button-sm-height: 30px;
1325
- --thunder-button-sm-paddingX: calc(var(--thunder-spacing-unit) * 1.25);
1326
- --thunder-button-sm-fontSize: var(--thunder-typography-fontSize-sm);
1327
- --thunder-button-md-height: 36px;
1328
- --thunder-button-md-paddingX: calc(var(--thunder-spacing-unit) * 2);
1329
- --thunder-button-md-fontSize: var(--thunder-typography-fontSize-md);
1330
- --thunder-button-lg-height: 42px;
1331
- --thunder-button-lg-paddingX: calc(var(--thunder-spacing-unit) * 2.5);
1332
- --thunder-button-lg-fontSize: var(--thunder-typography-fontSize-lg);
1397
+ --thunderid-button-borderRadius: var(--thunderid-border-radius-small);
1398
+ --thunderid-button-fontWeight: var(--thunderid-typography-fontWeight-medium);
1399
+ --thunderid-button-sm-height: 30px;
1400
+ --thunderid-button-sm-paddingX: calc(var(--thunderid-spacing-unit) * 1.25);
1401
+ --thunderid-button-sm-fontSize: var(--thunderid-typography-fontSize-sm);
1402
+ --thunderid-button-md-height: 36px;
1403
+ --thunderid-button-md-paddingX: calc(var(--thunderid-spacing-unit) * 2);
1404
+ --thunderid-button-md-fontSize: var(--thunderid-typography-fontSize-md);
1405
+ --thunderid-button-lg-height: 42px;
1406
+ --thunderid-button-lg-paddingX: calc(var(--thunderid-spacing-unit) * 2.5);
1407
+ --thunderid-button-lg-fontSize: var(--thunderid-typography-fontSize-lg);
1333
1408
 
1334
1409
  /* --- Component: Input fields --- */
1335
- --thunder-input-borderRadius: var(--thunder-border-radius-small);
1336
- --thunder-input-height: 36px;
1337
- --thunder-input-paddingX: calc(var(--thunder-spacing-unit) * 1.25);
1338
- --thunder-input-fontSize: var(--thunder-typography-fontSize-md);
1339
- --thunder-input-borderColor: var(--thunder-color-border);
1340
- --thunder-input-focusBorderColor: var(--thunder-color-primary-main);
1341
- --thunder-input-focusRing: 0 0 0 3px var(--thunder-focus-ring-color);
1410
+ --thunderid-input-borderRadius: var(--thunderid-border-radius-small);
1411
+ --thunderid-input-height: 36px;
1412
+ --thunderid-input-paddingX: calc(var(--thunderid-spacing-unit) * 1.25);
1413
+ --thunderid-input-fontSize: var(--thunderid-typography-fontSize-md);
1414
+ --thunderid-input-borderColor: var(--thunderid-color-border);
1415
+ --thunderid-input-focusBorderColor: var(--thunderid-color-primary-main);
1416
+ --thunderid-input-focusRing: 0 0 0 3px var(--thunderid-focus-ring-color);
1342
1417
 
1343
1418
  /* --- Component: Card --- */
1344
- --thunder-card-borderRadius: var(--thunder-border-radius-medium);
1345
- --thunder-card-padding: calc(var(--thunder-spacing-unit) * 2.5);
1346
- --thunder-card-shadow: var(--thunder-shadow-small);
1347
- --thunder-card-borderColor: var(--thunder-color-border);
1419
+ --thunderid-card-borderRadius: var(--thunderid-border-radius-medium);
1420
+ --thunderid-card-padding: calc(var(--thunderid-spacing-unit) * 2.5);
1421
+ --thunderid-card-shadow: var(--thunderid-shadow-small);
1422
+ --thunderid-card-borderColor: var(--thunderid-color-border);
1348
1423
 
1349
1424
  /* --- Component: Alert --- */
1350
- --thunder-alert-borderRadius: var(--thunder-border-radius-small);
1351
- --thunder-alert-paddingX: calc(var(--thunder-spacing-unit) * 1.5);
1352
- --thunder-alert-paddingY: calc(var(--thunder-spacing-unit) * 1.25);
1425
+ --thunderid-alert-borderRadius: var(--thunderid-border-radius-small);
1426
+ --thunderid-alert-paddingX: calc(var(--thunderid-spacing-unit) * 1.5);
1427
+ --thunderid-alert-paddingY: calc(var(--thunderid-spacing-unit) * 1.25);
1353
1428
 
1354
1429
  /* --- Component: Checkbox --- */
1355
- --thunder-checkbox-size: 16px;
1430
+ --thunderid-checkbox-size: 16px;
1356
1431
 
1357
1432
  /* --- Component: Avatar --- */
1358
- --thunder-avatar-size: 64px;
1359
- --thunder-avatar-fontSize: 1.375rem;
1433
+ --thunderid-avatar-size: 64px;
1434
+ --thunderid-avatar-fontSize: 1.375rem;
1360
1435
 
1361
1436
  /* --- Component: Dropdown --- */
1362
- --thunder-dropdown-borderRadius: var(--thunder-border-radius-medium);
1363
- --thunder-dropdown-shadow: var(--thunder-shadow-medium);
1364
- --thunder-dropdown-itemPaddingX: calc(var(--thunder-spacing-unit) * 1.5);
1365
- --thunder-dropdown-itemPaddingY: calc(var(--thunder-spacing-unit) * 1);
1437
+ --thunderid-dropdown-borderRadius: var(--thunderid-border-radius-medium);
1438
+ --thunderid-dropdown-shadow: var(--thunderid-shadow-medium);
1439
+ --thunderid-dropdown-itemPaddingX: calc(var(--thunderid-spacing-unit) * 1.5);
1440
+ --thunderid-dropdown-itemPaddingY: calc(var(--thunderid-spacing-unit) * 1);
1366
1441
 
1367
1442
  /* --- Component overrides (set by ThemeProvider when configured) --- */
1368
- --thunder-component-button-root-borderRadius: var(--thunder-button-borderRadius);
1369
- --thunder-component-field-root-borderRadius: var(--thunder-input-borderRadius);
1443
+ --thunderid-component-button-root-borderRadius: var(--thunderid-button-borderRadius);
1444
+ --thunderid-component-field-root-borderRadius: var(--thunderid-input-borderRadius);
1370
1445
  }
1371
1446
  `;
1372
1447
  var defaults_css_default = DEFAULTS_CSS;
@@ -1407,28 +1482,28 @@ const LANGUAGE_SWITCHER_CSS = `
1407
1482
  .thunderid-language-switcher__trigger {
1408
1483
  display: inline-flex;
1409
1484
  align-items: center;
1410
- gap: calc(var(--thunder-spacing-unit) * 0.5);
1411
- padding: var(--thunder-dropdown-itemPaddingY) var(--thunder-dropdown-itemPaddingX);
1485
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
1486
+ padding: var(--thunderid-dropdown-itemPaddingY) var(--thunderid-dropdown-itemPaddingX);
1412
1487
  background: none;
1413
1488
  border: none;
1414
1489
  cursor: pointer;
1415
- color: var(--thunder-color-text-primary);
1416
- font-family: var(--thunder-typography-fontFamily);
1417
- font-size: var(--thunder-typography-fontSize-md);
1418
- border-radius: var(--thunder-dropdown-borderRadius);
1419
- transition: background-color var(--thunder-transition-fast);
1490
+ color: var(--thunderid-color-text-primary);
1491
+ font-family: var(--thunderid-typography-fontFamily);
1492
+ font-size: var(--thunderid-typography-fontSize-md);
1493
+ border-radius: var(--thunderid-dropdown-borderRadius);
1494
+ transition: background-color var(--thunderid-transition-fast);
1420
1495
  white-space: nowrap;
1421
1496
  box-sizing: border-box;
1422
1497
  }
1423
1498
 
1424
1499
  .thunderid-language-switcher__trigger:hover {
1425
- background-color: var(--thunder-color-action-hover);
1500
+ background-color: var(--thunderid-color-action-hover);
1426
1501
  }
1427
1502
 
1428
1503
  .thunderid-language-switcher__trigger:focus-visible {
1429
1504
  outline: none;
1430
- box-shadow: inset 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
1431
- border-radius: var(--thunder-dropdown-borderRadius);
1505
+ box-shadow: inset 0 0 0 var(--thunderid-focus-ring-width) var(--thunderid-focus-ring-color);
1506
+ border-radius: var(--thunderid-dropdown-borderRadius);
1432
1507
  }
1433
1508
 
1434
1509
  .thunderid-language-switcher__trigger-label {
@@ -1439,18 +1514,18 @@ const LANGUAGE_SWITCHER_CSS = `
1439
1514
 
1440
1515
  .thunderid-language-switcher__dropdown {
1441
1516
  position: absolute;
1442
- top: calc(100% + calc(var(--thunder-spacing-unit) * 0.5));
1517
+ top: calc(100% + calc(var(--thunderid-spacing-unit) * 0.5));
1443
1518
  right: 0;
1444
1519
  z-index: 1000;
1445
- background-color: var(--thunder-color-background-surface);
1446
- border: 1px solid var(--thunder-color-border);
1447
- border-radius: var(--thunder-dropdown-borderRadius);
1448
- box-shadow: var(--thunder-dropdown-shadow);
1520
+ background-color: var(--thunderid-color-background-surface);
1521
+ border: 1px solid var(--thunderid-color-border);
1522
+ border-radius: var(--thunderid-dropdown-borderRadius);
1523
+ box-shadow: var(--thunderid-dropdown-shadow);
1449
1524
  overflow: hidden;
1450
1525
  min-width: 130px;
1451
1526
  display: flex;
1452
1527
  flex-direction: column;
1453
- padding: calc(var(--thunder-spacing-unit) * 0.5) 0;
1528
+ padding: calc(var(--thunderid-spacing-unit) * 0.5) 0;
1454
1529
  }
1455
1530
 
1456
1531
  /* Items ----------------------------------------------------- */
@@ -1459,30 +1534,30 @@ const LANGUAGE_SWITCHER_CSS = `
1459
1534
  display: flex;
1460
1535
  align-items: center;
1461
1536
  width: 100%;
1462
- padding: var(--thunder-dropdown-itemPaddingY) var(--thunder-dropdown-itemPaddingX);
1537
+ padding: var(--thunderid-dropdown-itemPaddingY) var(--thunderid-dropdown-itemPaddingX);
1463
1538
  background: none;
1464
1539
  border: none;
1465
1540
  cursor: pointer;
1466
1541
  text-align: left;
1467
- font-family: var(--thunder-typography-fontFamily);
1468
- font-size: var(--thunder-typography-fontSize-md);
1469
- color: var(--thunder-color-text-primary);
1470
- transition: background-color var(--thunder-transition-fast);
1542
+ font-family: var(--thunderid-typography-fontFamily);
1543
+ font-size: var(--thunderid-typography-fontSize-md);
1544
+ color: var(--thunderid-color-text-primary);
1545
+ transition: background-color var(--thunderid-transition-fast);
1471
1546
  box-sizing: border-box;
1472
1547
  }
1473
1548
 
1474
1549
  .thunderid-language-switcher__item:hover {
1475
- background-color: var(--thunder-color-action-hover);
1550
+ background-color: var(--thunderid-color-action-hover);
1476
1551
  }
1477
1552
 
1478
1553
  .thunderid-language-switcher__item--active {
1479
- background-color: var(--thunder-color-action-selected);
1480
- color: var(--thunder-color-primary-main);
1481
- font-weight: var(--thunder-typography-fontWeight-medium);
1554
+ background-color: var(--thunderid-color-action-selected);
1555
+ color: var(--thunderid-color-primary-main);
1556
+ font-weight: var(--thunderid-typography-fontWeight-medium);
1482
1557
  }
1483
1558
 
1484
1559
  .thunderid-language-switcher__item--active:hover {
1485
- background-color: var(--thunder-color-action-focus);
1560
+ background-color: var(--thunderid-color-action-focus);
1486
1561
  }
1487
1562
  `;
1488
1563
  var LanguageSwitcher_css_default = LANGUAGE_SWITCHER_CSS;
@@ -1523,7 +1598,7 @@ const USER_DROPDOWN_CSS = `
1523
1598
  .thunderid-user-dropdown {
1524
1599
  position: relative;
1525
1600
  display: inline-block;
1526
- font-family: var(--thunder-typography-fontFamily);
1601
+ font-family: var(--thunderid-typography-fontFamily);
1527
1602
  }
1528
1603
 
1529
1604
  /* ── Trigger ─────────────────────────────────────────────────── */
@@ -1531,32 +1606,32 @@ const USER_DROPDOWN_CSS = `
1531
1606
  .thunderid-user-dropdown__trigger {
1532
1607
  display: inline-flex;
1533
1608
  align-items: center;
1534
- gap: calc(var(--thunder-spacing-unit) * 0.5);
1609
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
1535
1610
  padding: 3px;
1536
1611
  background: none;
1537
1612
  border: 2px solid transparent;
1538
- border-radius: var(--thunder-border-radius-full);
1613
+ border-radius: var(--thunderid-border-radius-full);
1539
1614
  cursor: pointer;
1540
- color: var(--thunder-color-text-primary);
1615
+ color: var(--thunderid-color-text-primary);
1541
1616
  transition:
1542
- border-color var(--thunder-transition-fast),
1543
- box-shadow var(--thunder-transition-fast);
1617
+ border-color var(--thunderid-transition-fast),
1618
+ box-shadow var(--thunderid-transition-fast);
1544
1619
  box-sizing: border-box;
1545
1620
  outline: none;
1546
1621
  }
1547
1622
 
1548
1623
  .thunderid-user-dropdown__trigger:hover {
1549
- border-color: var(--thunder-color-primary-main);
1624
+ border-color: var(--thunderid-color-primary-main);
1550
1625
  }
1551
1626
 
1552
1627
  .thunderid-user-dropdown__trigger--open {
1553
- border-color: var(--thunder-color-primary-main);
1554
- box-shadow: 0 0 0 3px var(--thunder-focus-ring-color);
1628
+ border-color: var(--thunderid-color-primary-main);
1629
+ box-shadow: 0 0 0 3px var(--thunderid-focus-ring-color);
1555
1630
  }
1556
1631
 
1557
1632
  .thunderid-user-dropdown__trigger:focus-visible {
1558
- border-color: var(--thunder-color-primary-main);
1559
- box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
1633
+ border-color: var(--thunderid-color-primary-main);
1634
+ box-shadow: 0 0 0 var(--thunderid-focus-ring-width) var(--thunderid-focus-ring-color);
1560
1635
  }
1561
1636
 
1562
1637
  /* ── Trigger avatar ──────────────────────────────────────────── */
@@ -1572,8 +1647,8 @@ const USER_DROPDOWN_CSS = `
1572
1647
  border-radius: 50%;
1573
1648
  color: #ffffff;
1574
1649
  flex-shrink: 0;
1575
- font-size: var(--thunder-typography-fontSize-sm);
1576
- font-weight: var(--thunder-typography-fontWeight-semibold);
1650
+ font-size: var(--thunderid-typography-fontSize-sm);
1651
+ font-weight: var(--thunderid-typography-fontWeight-semibold);
1577
1652
  line-height: 1;
1578
1653
  user-select: none;
1579
1654
  pointer-events: none;
@@ -1591,7 +1666,7 @@ img.thunderid-user-dropdown__avatar {
1591
1666
  height: 28px;
1592
1667
  max-width: 28px;
1593
1668
  max-height: 28px;
1594
- font-size: var(--thunder-typography-fontSize-xs);
1669
+ font-size: var(--thunderid-typography-fontSize-xs);
1595
1670
  }
1596
1671
 
1597
1672
  /* lg — 38 px */
@@ -1600,7 +1675,7 @@ img.thunderid-user-dropdown__avatar {
1600
1675
  height: 38px;
1601
1676
  max-width: 38px;
1602
1677
  max-height: 38px;
1603
- font-size: var(--thunder-typography-fontSize-md);
1678
+ font-size: var(--thunderid-typography-fontSize-md);
1604
1679
  }
1605
1680
 
1606
1681
  /* ── Chevron ─────────────────────────────────────────────────── */
@@ -1608,9 +1683,9 @@ img.thunderid-user-dropdown__avatar {
1608
1683
  .thunderid-user-dropdown__chevron {
1609
1684
  display: inline-flex;
1610
1685
  align-items: center;
1611
- color: var(--thunder-color-text-secondary);
1612
- transition: transform var(--thunder-transition-normal);
1613
- padding-right: calc(var(--thunder-spacing-unit) * 0.25);
1686
+ color: var(--thunderid-color-text-secondary);
1687
+ transition: transform var(--thunderid-transition-normal);
1688
+ padding-right: calc(var(--thunderid-spacing-unit) * 0.25);
1614
1689
  }
1615
1690
 
1616
1691
  .thunderid-user-dropdown__trigger--open .thunderid-user-dropdown__chevron {
@@ -1621,18 +1696,18 @@ img.thunderid-user-dropdown__avatar {
1621
1696
 
1622
1697
  .thunderid-user-dropdown__menu {
1623
1698
  position: absolute;
1624
- top: calc(100% + calc(var(--thunder-spacing-unit) * 0.75));
1699
+ top: calc(100% + calc(var(--thunderid-spacing-unit) * 0.75));
1625
1700
  right: 0;
1626
1701
  z-index: 1000;
1627
- background-color: var(--thunder-color-background-surface);
1628
- border: 1px solid var(--thunder-color-border);
1629
- border-radius: var(--thunder-dropdown-borderRadius);
1630
- box-shadow: var(--thunder-dropdown-shadow);
1702
+ background-color: var(--thunderid-color-background-surface);
1703
+ border: 1px solid var(--thunderid-color-border);
1704
+ border-radius: var(--thunderid-dropdown-borderRadius);
1705
+ box-shadow: var(--thunderid-dropdown-shadow);
1631
1706
  overflow: hidden;
1632
1707
  min-width: 220px;
1633
1708
  display: flex;
1634
1709
  flex-direction: column;
1635
- animation: thunderid-dropdown-enter var(--thunder-transition-fast) ease;
1710
+ animation: thunderid-dropdown-enter var(--thunderid-transition-fast) ease;
1636
1711
  }
1637
1712
 
1638
1713
  /* Alignment */
@@ -1649,19 +1724,19 @@ img.thunderid-user-dropdown__avatar {
1649
1724
  }
1650
1725
 
1651
1726
  .thunderid-user-dropdown__menu--size-sm .thunderid-user-dropdown__menu-header {
1652
- padding: calc(var(--thunder-spacing-unit) * 1.25) calc(var(--thunder-spacing-unit) * 1.5);
1653
- gap: calc(var(--thunder-spacing-unit) * 1);
1727
+ padding: calc(var(--thunderid-spacing-unit) * 1.25) calc(var(--thunderid-spacing-unit) * 1.5);
1728
+ gap: calc(var(--thunderid-spacing-unit) * 1);
1654
1729
  }
1655
1730
 
1656
1731
  .thunderid-user-dropdown__menu--size-sm .thunderid-user-dropdown__menu-header-avatar {
1657
1732
  width: 30px;
1658
1733
  height: 30px;
1659
- font-size: var(--thunder-typography-fontSize-sm);
1734
+ font-size: var(--thunderid-typography-fontSize-sm);
1660
1735
  }
1661
1736
 
1662
1737
  .thunderid-user-dropdown__menu--size-sm .thunderid-user-dropdown__item {
1663
- padding: calc(var(--thunder-spacing-unit) * 0.75) calc(var(--thunder-spacing-unit) * 1.5);
1664
- font-size: var(--thunder-typography-fontSize-xs);
1738
+ padding: calc(var(--thunderid-spacing-unit) * 0.75) calc(var(--thunderid-spacing-unit) * 1.5);
1739
+ font-size: var(--thunderid-typography-fontSize-xs);
1665
1740
  }
1666
1741
 
1667
1742
  /* Size: lg */
@@ -1671,19 +1746,19 @@ img.thunderid-user-dropdown__avatar {
1671
1746
  }
1672
1747
 
1673
1748
  .thunderid-user-dropdown__menu--size-lg .thunderid-user-dropdown__menu-header {
1674
- padding: calc(var(--thunder-spacing-unit) * 2) calc(var(--thunder-spacing-unit) * 2);
1675
- gap: calc(var(--thunder-spacing-unit) * 1.5);
1749
+ padding: calc(var(--thunderid-spacing-unit) * 2) calc(var(--thunderid-spacing-unit) * 2);
1750
+ gap: calc(var(--thunderid-spacing-unit) * 1.5);
1676
1751
  }
1677
1752
 
1678
1753
  .thunderid-user-dropdown__menu--size-lg .thunderid-user-dropdown__menu-header-avatar {
1679
1754
  width: 42px;
1680
1755
  height: 42px;
1681
- font-size: var(--thunder-typography-fontSize-lg);
1756
+ font-size: var(--thunderid-typography-fontSize-lg);
1682
1757
  }
1683
1758
 
1684
1759
  .thunderid-user-dropdown__menu--size-lg .thunderid-user-dropdown__item {
1685
- padding: calc(var(--thunder-spacing-unit) * 1.25) calc(var(--thunder-spacing-unit) * 2);
1686
- font-size: var(--thunder-typography-fontSize-md);
1760
+ padding: calc(var(--thunderid-spacing-unit) * 1.25) calc(var(--thunderid-spacing-unit) * 2);
1761
+ font-size: var(--thunderid-typography-fontSize-md);
1687
1762
  }
1688
1763
 
1689
1764
  @keyframes thunderid-dropdown-enter {
@@ -1702,8 +1777,8 @@ img.thunderid-user-dropdown__avatar {
1702
1777
  .thunderid-user-dropdown__menu-header {
1703
1778
  display: flex;
1704
1779
  align-items: center;
1705
- gap: calc(var(--thunder-spacing-unit) * 1.25);
1706
- padding: calc(var(--thunder-spacing-unit) * 1.5) calc(var(--thunder-spacing-unit) * 1.75);
1780
+ gap: calc(var(--thunderid-spacing-unit) * 1.25);
1781
+ padding: calc(var(--thunderid-spacing-unit) * 1.5) calc(var(--thunderid-spacing-unit) * 1.75);
1707
1782
  }
1708
1783
 
1709
1784
  .thunderid-user-dropdown__menu-header-avatar {
@@ -1715,8 +1790,8 @@ img.thunderid-user-dropdown__avatar {
1715
1790
  border-radius: 50%;
1716
1791
  color: #ffffff;
1717
1792
  flex-shrink: 0;
1718
- font-size: var(--thunder-typography-fontSize-md);
1719
- font-weight: var(--thunder-typography-fontWeight-semibold);
1793
+ font-size: var(--thunderid-typography-fontSize-md);
1794
+ font-weight: var(--thunderid-typography-fontWeight-semibold);
1720
1795
  line-height: 1;
1721
1796
  user-select: none;
1722
1797
  object-fit: cover;
@@ -1735,30 +1810,30 @@ img.thunderid-user-dropdown__menu-header-avatar {
1735
1810
  }
1736
1811
 
1737
1812
  .thunderid-user-dropdown__menu-header-name {
1738
- font-size: var(--thunder-typography-fontSize-sm);
1739
- font-weight: var(--thunder-typography-fontWeight-semibold);
1740
- color: var(--thunder-color-text-primary);
1813
+ font-size: var(--thunderid-typography-fontSize-sm);
1814
+ font-weight: var(--thunderid-typography-fontWeight-semibold);
1815
+ color: var(--thunderid-color-text-primary);
1741
1816
  white-space: nowrap;
1742
1817
  overflow: hidden;
1743
1818
  text-overflow: ellipsis;
1744
- line-height: var(--thunder-typography-lineHeight-tight);
1819
+ line-height: var(--thunderid-typography-lineHeight-tight);
1745
1820
  }
1746
1821
 
1747
1822
  .thunderid-user-dropdown__menu-header-subtitle {
1748
- font-size: var(--thunder-typography-fontSize-xs);
1749
- color: var(--thunder-color-text-secondary);
1823
+ font-size: var(--thunderid-typography-fontSize-xs);
1824
+ color: var(--thunderid-color-text-secondary);
1750
1825
  white-space: nowrap;
1751
1826
  overflow: hidden;
1752
1827
  text-overflow: ellipsis;
1753
- line-height: var(--thunder-typography-lineHeight-normal);
1828
+ line-height: var(--thunderid-typography-lineHeight-normal);
1754
1829
  }
1755
1830
 
1756
1831
  /* ── Menu divider ────────────────────────────────────────────── */
1757
1832
 
1758
1833
  .thunderid-user-dropdown__menu-divider {
1759
1834
  height: 1px;
1760
- background-color: var(--thunder-color-border);
1761
- margin: calc(var(--thunder-spacing-unit) * 0.5) 0;
1835
+ background-color: var(--thunderid-color-border);
1836
+ margin: calc(var(--thunderid-spacing-unit) * 0.5) 0;
1762
1837
  flex-shrink: 0;
1763
1838
  }
1764
1839
 
@@ -1767,37 +1842,37 @@ img.thunderid-user-dropdown__menu-header-avatar {
1767
1842
  .thunderid-user-dropdown__item {
1768
1843
  display: flex;
1769
1844
  align-items: center;
1770
- gap: calc(var(--thunder-spacing-unit) * 1);
1845
+ gap: calc(var(--thunderid-spacing-unit) * 1);
1771
1846
  width: 100%;
1772
- padding: calc(var(--thunder-spacing-unit) * 1) calc(var(--thunder-spacing-unit) * 1.75);
1847
+ padding: calc(var(--thunderid-spacing-unit) * 1) calc(var(--thunderid-spacing-unit) * 1.75);
1773
1848
  background: none;
1774
1849
  border: none;
1775
1850
  cursor: pointer;
1776
1851
  text-align: left;
1777
- font-family: var(--thunder-typography-fontFamily);
1778
- font-size: var(--thunder-typography-fontSize-sm);
1779
- color: var(--thunder-color-text-primary);
1780
- transition: background-color var(--thunder-transition-fast);
1852
+ font-family: var(--thunderid-typography-fontFamily);
1853
+ font-size: var(--thunderid-typography-fontSize-sm);
1854
+ color: var(--thunderid-color-text-primary);
1855
+ transition: background-color var(--thunderid-transition-fast);
1781
1856
  box-sizing: border-box;
1782
1857
  }
1783
1858
 
1784
1859
  .thunderid-user-dropdown__item:hover {
1785
- background-color: var(--thunder-color-action-hover);
1860
+ background-color: var(--thunderid-color-action-hover);
1786
1861
  }
1787
1862
 
1788
1863
  .thunderid-user-dropdown__item:focus-visible {
1789
1864
  outline: none;
1790
- background-color: var(--thunder-color-action-focus);
1865
+ background-color: var(--thunderid-color-action-focus);
1791
1866
  }
1792
1867
 
1793
1868
  /* Danger variant (sign-out) */
1794
1869
 
1795
1870
  .thunderid-user-dropdown__item--danger {
1796
- color: var(--thunder-color-error-main);
1871
+ color: var(--thunderid-color-error-main);
1797
1872
  }
1798
1873
 
1799
1874
  .thunderid-user-dropdown__item--danger:hover {
1800
- background-color: var(--thunder-color-error-light);
1875
+ background-color: var(--thunderid-color-error-light);
1801
1876
  }
1802
1877
 
1803
1878
  /* ── Modal overlay ───────────────────────────────────────────── */
@@ -1812,7 +1887,7 @@ img.thunderid-user-dropdown__menu-header-avatar {
1812
1887
  z-index: 9999;
1813
1888
  backdrop-filter: blur(3px);
1814
1889
  box-sizing: border-box;
1815
- animation: thunderid-overlay-enter var(--thunder-transition-fast) ease;
1890
+ animation: thunderid-overlay-enter var(--thunderid-transition-fast) ease;
1816
1891
  }
1817
1892
 
1818
1893
  @keyframes thunderid-overlay-enter {
@@ -1823,18 +1898,18 @@ img.thunderid-user-dropdown__menu-header-avatar {
1823
1898
  /* ── Modal content ───────────────────────────────────────────── */
1824
1899
 
1825
1900
  .thunderid-user-dropdown__modal-content {
1826
- background: var(--thunder-color-background-surface);
1827
- border-radius: var(--thunder-border-radius-large);
1828
- box-shadow: var(--thunder-shadow-large);
1901
+ background: var(--thunderid-color-background-surface);
1902
+ border-radius: var(--thunderid-border-radius-large);
1903
+ box-shadow: var(--thunderid-shadow-large);
1829
1904
  max-width: 640px;
1830
1905
  width: 92%;
1831
1906
  max-height: 90vh;
1832
1907
  overflow-y: auto;
1833
1908
  position: relative;
1834
1909
  margin: auto;
1835
- padding: calc(var(--thunder-spacing-unit) * 3);
1910
+ padding: calc(var(--thunderid-spacing-unit) * 3);
1836
1911
  box-sizing: border-box;
1837
- animation: thunderid-modal-enter var(--thunder-transition-normal) ease;
1912
+ animation: thunderid-modal-enter var(--thunderid-transition-normal) ease;
1838
1913
  }
1839
1914
 
1840
1915
  @keyframes thunderid-modal-enter {
@@ -1852,32 +1927,32 @@ img.thunderid-user-dropdown__menu-header-avatar {
1852
1927
 
1853
1928
  .thunderid-user-dropdown__modal-close {
1854
1929
  position: absolute;
1855
- top: calc(var(--thunder-spacing-unit) * 1.25);
1856
- right: calc(var(--thunder-spacing-unit) * 1.25);
1930
+ top: calc(var(--thunderid-spacing-unit) * 1.25);
1931
+ right: calc(var(--thunderid-spacing-unit) * 1.25);
1857
1932
  background: none;
1858
1933
  border: none;
1859
1934
  cursor: pointer;
1860
- color: var(--thunder-color-text-secondary);
1935
+ color: var(--thunderid-color-text-secondary);
1861
1936
  display: flex;
1862
1937
  align-items: center;
1863
1938
  justify-content: center;
1864
- padding: calc(var(--thunder-spacing-unit) * 0.625);
1865
- border-radius: var(--thunder-border-radius-small);
1939
+ padding: calc(var(--thunderid-spacing-unit) * 0.625);
1940
+ border-radius: var(--thunderid-border-radius-small);
1866
1941
  z-index: 10001;
1867
1942
  transition:
1868
- color var(--thunder-transition-fast),
1869
- background-color var(--thunder-transition-fast);
1943
+ color var(--thunderid-transition-fast),
1944
+ background-color var(--thunderid-transition-fast);
1870
1945
  line-height: 0;
1871
1946
  }
1872
1947
 
1873
1948
  .thunderid-user-dropdown__modal-close:hover {
1874
- color: var(--thunder-color-text-primary);
1875
- background-color: var(--thunder-color-action-hover);
1949
+ color: var(--thunderid-color-text-primary);
1950
+ background-color: var(--thunderid-color-action-hover);
1876
1951
  }
1877
1952
 
1878
1953
  .thunderid-user-dropdown__modal-close:focus-visible {
1879
1954
  outline: none;
1880
- box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
1955
+ box-shadow: 0 0 0 var(--thunderid-focus-ring-width) var(--thunderid-focus-ring-color);
1881
1956
  }
1882
1957
  `;
1883
1958
  var UserDropdown_css_default = USER_DROPDOWN_CSS;
@@ -1896,13 +1971,13 @@ const USER_PROFILE_CSS = `
1896
1971
  .thunderid-user-profile {
1897
1972
  display: flex;
1898
1973
  flex-direction: column;
1899
- padding: calc(var(--thunder-spacing-unit) * 4);
1974
+ padding: calc(var(--thunderid-spacing-unit) * 4);
1900
1975
  width: 100%;
1901
1976
  max-width: 600px;
1902
1977
  margin: 0 auto;
1903
- font-family: var(--thunder-typography-fontFamily);
1904
- background: var(--thunder-color-background-surface);
1905
- border-radius: var(--thunder-border-radius-large, 8px);
1978
+ font-family: var(--thunderid-typography-fontFamily);
1979
+ background: var(--thunderid-color-background-surface);
1980
+ border-radius: var(--thunderid-border-radius-large, 8px);
1906
1981
  box-sizing: border-box;
1907
1982
  }
1908
1983
 
@@ -1912,10 +1987,10 @@ const USER_PROFILE_CSS = `
1912
1987
  display: flex;
1913
1988
  flex-direction: column;
1914
1989
  align-items: flex-start;
1915
- gap: calc(var(--thunder-spacing-unit) * 1);
1916
- padding-bottom: calc(var(--thunder-spacing-unit) * 2);
1917
- margin-bottom: calc(var(--thunder-spacing-unit) * 2);
1918
- border-bottom: 1px solid var(--thunder-color-border);
1990
+ gap: calc(var(--thunderid-spacing-unit) * 1);
1991
+ padding-bottom: calc(var(--thunderid-spacing-unit) * 2);
1992
+ margin-bottom: calc(var(--thunderid-spacing-unit) * 2);
1993
+ border-bottom: 1px solid var(--thunderid-color-border);
1919
1994
  }
1920
1995
 
1921
1996
  .thunderid-user-profile__avatar-wrapper {
@@ -1926,6 +2001,10 @@ const USER_PROFILE_CSS = `
1926
2001
  .thunderid-user-profile__avatar {
1927
2002
  border-radius: 50%;
1928
2003
  object-fit: cover;
2004
+ display: flex;
2005
+ align-items: center;
2006
+ justify-content: center;
2007
+ flex-shrink: 0;
1929
2008
  }
1930
2009
 
1931
2010
  img.thunderid-user-profile__avatar {
@@ -1933,11 +2012,6 @@ img.thunderid-user-profile__avatar {
1933
2012
  object-fit: cover;
1934
2013
  width: 70px;
1935
2014
  height: 70px;
1936
- border-radius: 50%;
1937
- display: flex;
1938
- align-items: center;
1939
- justify-content: center;
1940
- flex-shrink: 0;
1941
2015
  }
1942
2016
 
1943
2017
  .thunderid-user-profile__avatar--sm {
@@ -1969,7 +2043,7 @@ img.thunderid-user-profile__avatar {
1969
2043
 
1970
2044
  .thunderid-user-profile__avatar-initials {
1971
2045
  color: #ffffff;
1972
- font-weight: var(--thunder-typography-fontWeight-semibold, 600);
2046
+ font-weight: var(--thunderid-typography-fontWeight-semibold, 600);
1973
2047
  line-height: 1;
1974
2048
  letter-spacing: 0.02em;
1975
2049
  pointer-events: none;
@@ -1980,35 +2054,35 @@ img.thunderid-user-profile__avatar {
1980
2054
  display: flex;
1981
2055
  flex-direction: column;
1982
2056
  align-items: flex-start;
1983
- margin-top: calc(var(--thunder-spacing-unit) * 0.5);
2057
+ margin-top: calc(var(--thunderid-spacing-unit) * 0.5);
1984
2058
  }
1985
2059
 
1986
2060
  .thunderid-user-profile__hero-name {
1987
- font-size: var(--thunder-typography-fontSize-xl, 1.5rem);
1988
- font-weight: var(--thunder-typography-fontWeight-semibold, 600);
1989
- color: var(--thunder-color-text-primary);
2061
+ font-size: var(--thunderid-typography-fontSize-xl, 1.5rem);
2062
+ font-weight: var(--thunderid-typography-fontWeight-semibold, 600);
2063
+ color: var(--thunderid-color-text-primary);
1990
2064
  margin: 0;
1991
- line-height: var(--thunder-typography-lineHeight-tight, 1.2);
2065
+ line-height: var(--thunderid-typography-lineHeight-tight, 1.2);
1992
2066
  }
1993
2067
 
1994
2068
  .thunderid-user-profile__hero-subtitle {
1995
- font-size: var(--thunder-typography-fontSize-sm, 0.875rem);
1996
- color: var(--thunder-color-text-secondary);
1997
- margin-top: calc(var(--thunder-spacing-unit) * 0.5);
1998
- line-height: var(--thunder-typography-lineHeight-normal, 1.4);
2069
+ font-size: var(--thunderid-typography-fontSize-sm, 0.875rem);
2070
+ color: var(--thunderid-color-text-secondary);
2071
+ margin-top: calc(var(--thunderid-spacing-unit) * 0.5);
2072
+ line-height: var(--thunderid-typography-lineHeight-normal, 1.4);
1999
2073
  }
2000
2074
 
2001
2075
  /* ── Alerts & loading ────────────────────────────────────────── */
2002
2076
 
2003
2077
  .thunderid-user-profile__error {
2004
- margin-bottom: calc(var(--thunder-spacing-unit) * 3);
2078
+ margin-bottom: calc(var(--thunderid-spacing-unit) * 3);
2005
2079
  }
2006
2080
 
2007
2081
  .thunderid-user-profile__loading {
2008
2082
  display: flex;
2009
2083
  align-items: center;
2010
2084
  justify-content: center;
2011
- padding: calc(var(--thunder-spacing-unit) * 4) 0;
2085
+ padding: calc(var(--thunderid-spacing-unit) * 4) 0;
2012
2086
  }
2013
2087
 
2014
2088
  /* ── Fields ──────────────────────────────────────────────────── */
@@ -2022,8 +2096,8 @@ img.thunderid-user-profile__avatar {
2022
2096
  display: flex;
2023
2097
  align-items: center;
2024
2098
  justify-content: space-between;
2025
- padding: calc(var(--thunder-spacing-unit) * 1.5) 0;
2026
- border-bottom: 1px solid var(--thunder-color-border);
2099
+ padding: calc(var(--thunderid-spacing-unit) * 1.5) 0;
2100
+ border-bottom: 1px solid var(--thunderid-color-border);
2027
2101
  min-height: 28px;
2028
2102
  box-sizing: border-box;
2029
2103
  }
@@ -2036,13 +2110,13 @@ img.thunderid-user-profile__avatar {
2036
2110
  flex: 1;
2037
2111
  display: flex;
2038
2112
  align-items: center;
2039
- gap: var(--thunder-spacing-unit);
2113
+ gap: var(--thunderid-spacing-unit);
2040
2114
  }
2041
2115
 
2042
2116
  .thunderid-user-profile__field-label {
2043
- font-size: var(--thunder-typography-fontSize-sm, 0.875rem);
2044
- font-weight: var(--thunder-typography-fontWeight-medium, 500);
2045
- color: var(--thunder-color-text-secondary);
2117
+ font-size: var(--thunderid-typography-fontSize-sm, 0.875rem);
2118
+ font-weight: var(--thunderid-typography-fontWeight-medium, 500);
2119
+ color: var(--thunderid-color-text-secondary);
2046
2120
  width: 120px;
2047
2121
  flex-shrink: 0;
2048
2122
  line-height: 28px;
@@ -2050,11 +2124,11 @@ img.thunderid-user-profile__avatar {
2050
2124
  }
2051
2125
 
2052
2126
  .thunderid-user-profile__field-value {
2053
- color: var(--thunder-color-text-primary);
2127
+ color: var(--thunderid-color-text-primary);
2054
2128
  flex: 1;
2055
2129
  display: inline-block;
2056
2130
  align-items: center;
2057
- font-size: var(--thunder-typography-fontSize-sm, 0.875rem);
2131
+ font-size: var(--thunderid-typography-fontSize-sm, 0.875rem);
2058
2132
  line-height: 28px;
2059
2133
  word-break: break-word;
2060
2134
  text-overflow: ellipsis;
@@ -2065,9 +2139,9 @@ img.thunderid-user-profile__avatar {
2065
2139
  }
2066
2140
 
2067
2141
  .thunderid-user-profile__field-placeholder {
2068
- font-size: var(--thunder-typography-fontSize-sm, 0.875rem);
2142
+ font-size: var(--thunderid-typography-fontSize-sm, 0.875rem);
2069
2143
  font-style: italic;
2070
- color: var(--thunder-color-text-secondary);
2144
+ color: var(--thunderid-color-text-secondary);
2071
2145
  opacity: 0.7;
2072
2146
  cursor: pointer;
2073
2147
  text-decoration: underline;
@@ -2081,9 +2155,9 @@ img.thunderid-user-profile__avatar {
2081
2155
 
2082
2156
  .thunderid-user-profile__field-actions {
2083
2157
  display: flex;
2084
- gap: calc(var(--thunder-spacing-unit) * 0.5);
2158
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
2085
2159
  align-items: center;
2086
- margin-inline-start: calc(var(--thunder-spacing-unit) * 4);
2160
+ margin-inline-start: calc(var(--thunderid-spacing-unit) * 4);
2087
2161
  }
2088
2162
 
2089
2163
  .thunderid-user-profile__field-edit-btn {
@@ -2093,12 +2167,12 @@ img.thunderid-user-profile__avatar {
2093
2167
  background: transparent;
2094
2168
  border: none;
2095
2169
  cursor: pointer;
2096
- color: var(--thunder-color-text-secondary);
2170
+ color: var(--thunderid-color-text-secondary);
2097
2171
  padding: 0;
2098
2172
  min-height: auto;
2099
2173
  opacity: 0.7;
2100
2174
  line-height: 0;
2101
- transition: opacity var(--thunder-transition-fast, 0.15s ease);
2175
+ transition: opacity var(--thunderid-transition-fast, 0.15s ease);
2102
2176
  }
2103
2177
 
2104
2178
  .thunderid-user-profile__field-edit-btn:hover {
@@ -2110,27 +2184,27 @@ img.thunderid-user-profile__avatar {
2110
2184
  flex: 1;
2111
2185
  display: flex;
2112
2186
  flex-direction: column;
2113
- gap: calc(var(--thunder-spacing-unit) * 0.5);
2187
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
2114
2188
  }
2115
2189
 
2116
2190
  .thunderid-user-profile__field-error {
2117
- color: var(--thunder-color-error, #d32f2f);
2118
- font-size: var(--thunder-typography-fontSize-xs, 0.8rem);
2119
- font-weight: var(--thunder-typography-fontWeight-medium, 500);
2120
- margin-top: calc(var(--thunder-spacing-unit) * 0.5);
2191
+ color: var(--thunderid-color-error, #d32f2f);
2192
+ font-size: var(--thunderid-typography-fontSize-xs, 0.8rem);
2193
+ font-weight: var(--thunderid-typography-fontWeight-medium, 500);
2194
+ margin-top: calc(var(--thunderid-spacing-unit) * 0.5);
2121
2195
  }
2122
2196
 
2123
2197
  /* ── Footer ──────────────────────────────────────────────────── */
2124
2198
 
2125
2199
  .thunderid-user-profile__footer {
2126
- padding-top: calc(var(--thunder-spacing-unit) * 2);
2127
- border-top: 1px solid var(--thunder-color-border);
2200
+ padding-top: calc(var(--thunderid-spacing-unit) * 2);
2201
+ border-top: 1px solid var(--thunderid-color-border);
2128
2202
  }
2129
2203
 
2130
2204
  /* ── Compact modifier ────────────────────────────────────────── */
2131
2205
 
2132
2206
  .thunderid-user-profile--compact {
2133
- padding: calc(var(--thunder-spacing-unit) * 2);
2207
+ padding: calc(var(--thunderid-spacing-unit) * 2);
2134
2208
  width: 100%;
2135
2209
  }
2136
2210
  `;
@@ -2158,15 +2232,15 @@ const ALERT_CSS = `
2158
2232
  display: flex;
2159
2233
  align-items: flex-start;
2160
2234
  justify-content: space-between;
2161
- gap: calc(var(--thunder-spacing-unit) * 1);
2162
- padding: var(--thunder-alert-paddingY) var(--thunder-alert-paddingX);
2163
- border-radius: var(--thunder-alert-borderRadius);
2235
+ gap: calc(var(--thunderid-spacing-unit) * 1);
2236
+ padding: var(--thunderid-alert-paddingY) var(--thunderid-alert-paddingX);
2237
+ border-radius: var(--thunderid-alert-borderRadius);
2164
2238
  border: 1px solid transparent;
2165
- font-family: var(--thunder-typography-fontFamily);
2166
- font-size: var(--thunder-typography-fontSize-sm);
2239
+ font-family: var(--thunderid-typography-fontFamily);
2240
+ font-size: var(--thunderid-typography-fontSize-sm);
2167
2241
  box-sizing: border-box;
2168
2242
  width: 100%;
2169
- line-height: var(--thunder-typography-lineHeight-normal);
2243
+ line-height: var(--thunderid-typography-lineHeight-normal);
2170
2244
  }
2171
2245
 
2172
2246
  .thunderid-alert__content {
@@ -2174,27 +2248,27 @@ const ALERT_CSS = `
2174
2248
  }
2175
2249
 
2176
2250
  .thunderid-alert--info {
2177
- background-color: var(--thunder-color-info-light);
2178
- border-color: var(--thunder-color-info-main);
2179
- color: var(--thunder-color-info-contrastText);
2251
+ background-color: var(--thunderid-color-info-light);
2252
+ border-color: var(--thunderid-color-info-main);
2253
+ color: var(--thunderid-color-info-contrastText);
2180
2254
  }
2181
2255
 
2182
2256
  .thunderid-alert--success {
2183
- background-color: var(--thunder-color-success-light);
2184
- border-color: var(--thunder-color-success-main);
2185
- color: var(--thunder-color-success-contrastText);
2257
+ background-color: var(--thunderid-color-success-light);
2258
+ border-color: var(--thunderid-color-success-main);
2259
+ color: var(--thunderid-color-success-contrastText);
2186
2260
  }
2187
2261
 
2188
2262
  .thunderid-alert--warning {
2189
- background-color: var(--thunder-color-warning-light);
2190
- border-color: var(--thunder-color-warning-main);
2191
- color: var(--thunder-color-warning-contrastText);
2263
+ background-color: var(--thunderid-color-warning-light);
2264
+ border-color: var(--thunderid-color-warning-main);
2265
+ color: var(--thunderid-color-warning-contrastText);
2192
2266
  }
2193
2267
 
2194
2268
  .thunderid-alert--error {
2195
- background-color: var(--thunder-color-error-light);
2196
- border-color: var(--thunder-color-error-main);
2197
- color: var(--thunder-color-error-contrastText);
2269
+ background-color: var(--thunderid-color-error-light);
2270
+ border-color: var(--thunderid-color-error-main);
2271
+ color: var(--thunderid-color-error-contrastText);
2198
2272
  }
2199
2273
 
2200
2274
  .thunderid-alert__dismiss {
@@ -2203,16 +2277,16 @@ const ALERT_CSS = `
2203
2277
  cursor: pointer;
2204
2278
  font-size: 1em;
2205
2279
  line-height: 0;
2206
- padding: calc(var(--thunder-spacing-unit) * 0.25);
2207
- border-radius: var(--thunder-border-radius-xs);
2280
+ padding: calc(var(--thunderid-spacing-unit) * 0.25);
2281
+ border-radius: var(--thunderid-border-radius-xs);
2208
2282
  color: inherit;
2209
2283
  opacity: 0.6;
2210
2284
  flex-shrink: 0;
2211
- transition: opacity var(--thunder-transition-fast), background-color var(--thunder-transition-fast);
2285
+ transition: opacity var(--thunderid-transition-fast), background-color var(--thunderid-transition-fast);
2212
2286
  }
2213
2287
  .thunderid-alert__dismiss:hover {
2214
2288
  opacity: 1;
2215
- background-color: var(--thunder-color-action-hover);
2289
+ background-color: var(--thunderid-color-action-hover);
2216
2290
  }
2217
2291
  `;
2218
2292
  var Alert_css_default = ALERT_CSS;
@@ -2245,11 +2319,11 @@ const BUTTON_CSS = `
2245
2319
  display: inline-flex;
2246
2320
  align-items: center;
2247
2321
  justify-content: center;
2248
- gap: calc(var(--thunder-spacing-unit) * 0.75);
2249
- border-radius: var(--thunder-button-borderRadius);
2250
- font-family: var(--thunder-typography-fontFamily);
2251
- font-weight: var(--thunder-button-fontWeight);
2252
- letter-spacing: var(--thunder-typography-letterSpacing-normal);
2322
+ gap: calc(var(--thunderid-spacing-unit) * 0.75);
2323
+ border-radius: var(--thunderid-button-borderRadius);
2324
+ font-family: var(--thunderid-typography-fontFamily);
2325
+ font-weight: var(--thunderid-button-fontWeight);
2326
+ letter-spacing: var(--thunderid-typography-letterSpacing-normal);
2253
2327
  cursor: pointer;
2254
2328
  outline: none;
2255
2329
  text-decoration: none;
@@ -2258,12 +2332,12 @@ const BUTTON_CSS = `
2258
2332
  border-style: solid;
2259
2333
  box-sizing: border-box;
2260
2334
  transition:
2261
- background-color var(--thunder-transition-fast),
2262
- color var(--thunder-transition-fast),
2263
- border-color var(--thunder-transition-fast),
2264
- box-shadow var(--thunder-transition-fast),
2265
- opacity var(--thunder-transition-fast),
2266
- transform var(--thunder-transition-fast);
2335
+ background-color var(--thunderid-transition-fast),
2336
+ color var(--thunderid-transition-fast),
2337
+ border-color var(--thunderid-transition-fast),
2338
+ box-shadow var(--thunderid-transition-fast),
2339
+ opacity var(--thunderid-transition-fast),
2340
+ transform var(--thunderid-transition-fast);
2267
2341
  position: relative;
2268
2342
  vertical-align: middle;
2269
2343
  -webkit-font-smoothing: antialiased;
@@ -2273,27 +2347,27 @@ const BUTTON_CSS = `
2273
2347
 
2274
2348
  .thunderid-button:focus-visible {
2275
2349
  outline: none;
2276
- box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
2350
+ box-shadow: 0 0 0 var(--thunderid-focus-ring-width) var(--thunderid-focus-ring-color);
2277
2351
  }
2278
2352
 
2279
2353
  /* -- Sizes -- */
2280
2354
 
2281
2355
  .thunderid-button--small {
2282
- padding: 0 var(--thunder-button-sm-paddingX);
2283
- font-size: var(--thunder-button-sm-fontSize);
2284
- height: var(--thunder-button-sm-height);
2356
+ padding: 0 var(--thunderid-button-sm-paddingX);
2357
+ font-size: var(--thunderid-button-sm-fontSize);
2358
+ height: var(--thunderid-button-sm-height);
2285
2359
  }
2286
2360
 
2287
2361
  .thunderid-button--medium {
2288
- padding: 0 var(--thunder-button-md-paddingX);
2289
- font-size: var(--thunder-button-md-fontSize);
2290
- height: var(--thunder-button-md-height);
2362
+ padding: 0 var(--thunderid-button-md-paddingX);
2363
+ font-size: var(--thunderid-button-md-fontSize);
2364
+ height: var(--thunderid-button-md-height);
2291
2365
  }
2292
2366
 
2293
2367
  .thunderid-button--large {
2294
- padding: 0 var(--thunder-button-lg-paddingX);
2295
- font-size: var(--thunder-button-lg-fontSize);
2296
- height: var(--thunder-button-lg-height);
2368
+ padding: 0 var(--thunderid-button-lg-paddingX);
2369
+ font-size: var(--thunderid-button-lg-fontSize);
2370
+ height: var(--thunderid-button-lg-height);
2297
2371
  }
2298
2372
 
2299
2373
  /* -- Modifiers -- */
@@ -2312,35 +2386,35 @@ const BUTTON_CSS = `
2312
2386
  /* -- Solid variants -- */
2313
2387
 
2314
2388
  .thunderid-button--solid.thunderid-button--primary {
2315
- background-color: var(--thunder-color-primary-main);
2316
- color: var(--thunder-color-primary-contrastText);
2317
- border-color: var(--thunder-color-primary-main);
2389
+ background-color: var(--thunderid-color-primary-main);
2390
+ color: var(--thunderid-color-primary-contrastText);
2391
+ border-color: var(--thunderid-color-primary-main);
2318
2392
  }
2319
2393
  .thunderid-button--solid.thunderid-button--primary:hover:not(:disabled) {
2320
- background-color: var(--thunder-color-primary-dark);
2321
- border-color: var(--thunder-color-primary-dark);
2394
+ background-color: var(--thunderid-color-primary-dark);
2395
+ border-color: var(--thunderid-color-primary-dark);
2322
2396
  }
2323
2397
  .thunderid-button--solid.thunderid-button--primary:active:not(:disabled) {
2324
2398
  transform: scale(0.98);
2325
2399
  }
2326
2400
 
2327
2401
  .thunderid-button--solid.thunderid-button--secondary {
2328
- background-color: var(--thunder-color-secondary-light);
2329
- color: var(--thunder-color-secondary-main);
2330
- border-color: var(--thunder-color-border);
2402
+ background-color: var(--thunderid-color-secondary-light);
2403
+ color: var(--thunderid-color-secondary-main);
2404
+ border-color: var(--thunderid-color-border);
2331
2405
  }
2332
2406
  .thunderid-button--solid.thunderid-button--secondary:hover:not(:disabled) {
2333
- background-color: var(--thunder-color-border);
2334
- border-color: var(--thunder-color-border);
2407
+ background-color: var(--thunderid-color-border);
2408
+ border-color: var(--thunderid-color-border);
2335
2409
  }
2336
2410
  .thunderid-button--solid.thunderid-button--secondary:active:not(:disabled) {
2337
2411
  transform: scale(0.98);
2338
2412
  }
2339
2413
 
2340
2414
  .thunderid-button--solid.thunderid-button--danger {
2341
- background-color: var(--thunder-color-error-main);
2415
+ background-color: var(--thunderid-color-error-main);
2342
2416
  color: #ffffff;
2343
- border-color: var(--thunder-color-error-main);
2417
+ border-color: var(--thunderid-color-error-main);
2344
2418
  }
2345
2419
  .thunderid-button--solid.thunderid-button--danger:hover:not(:disabled) {
2346
2420
  filter: brightness(0.92);
@@ -2353,11 +2427,11 @@ const BUTTON_CSS = `
2353
2427
 
2354
2428
  .thunderid-button--outline.thunderid-button--primary {
2355
2429
  background-color: transparent;
2356
- color: var(--thunder-color-primary-main);
2357
- border-color: var(--thunder-color-primary-main);
2430
+ color: var(--thunderid-color-primary-main);
2431
+ border-color: var(--thunderid-color-primary-main);
2358
2432
  }
2359
2433
  .thunderid-button--outline.thunderid-button--primary:hover:not(:disabled) {
2360
- background-color: var(--thunder-color-primary-light);
2434
+ background-color: var(--thunderid-color-primary-light);
2361
2435
  }
2362
2436
  .thunderid-button--outline.thunderid-button--primary:active:not(:disabled) {
2363
2437
  transform: scale(0.98);
@@ -2365,12 +2439,12 @@ const BUTTON_CSS = `
2365
2439
 
2366
2440
  .thunderid-button--outline.thunderid-button--secondary {
2367
2441
  background-color: transparent;
2368
- color: var(--thunder-color-secondary-main);
2369
- border-color: var(--thunder-color-border);
2442
+ color: var(--thunderid-color-secondary-main);
2443
+ border-color: var(--thunderid-color-border);
2370
2444
  }
2371
2445
  .thunderid-button--outline.thunderid-button--secondary:hover:not(:disabled) {
2372
- background-color: var(--thunder-color-secondary-light);
2373
- border-color: var(--thunder-color-secondary-main);
2446
+ background-color: var(--thunderid-color-secondary-light);
2447
+ border-color: var(--thunderid-color-secondary-main);
2374
2448
  }
2375
2449
  .thunderid-button--outline.thunderid-button--secondary:active:not(:disabled) {
2376
2450
  transform: scale(0.98);
@@ -2378,11 +2452,11 @@ const BUTTON_CSS = `
2378
2452
 
2379
2453
  .thunderid-button--outline.thunderid-button--danger {
2380
2454
  background-color: transparent;
2381
- color: var(--thunder-color-error-main);
2382
- border-color: var(--thunder-color-error-main);
2455
+ color: var(--thunderid-color-error-main);
2456
+ border-color: var(--thunderid-color-error-main);
2383
2457
  }
2384
2458
  .thunderid-button--outline.thunderid-button--danger:hover:not(:disabled) {
2385
- background-color: var(--thunder-color-error-light);
2459
+ background-color: var(--thunderid-color-error-light);
2386
2460
  }
2387
2461
  .thunderid-button--outline.thunderid-button--danger:active:not(:disabled) {
2388
2462
  transform: scale(0.98);
@@ -2392,31 +2466,31 @@ const BUTTON_CSS = `
2392
2466
 
2393
2467
  .thunderid-button--ghost.thunderid-button--primary {
2394
2468
  background-color: transparent;
2395
- color: var(--thunder-color-primary-main);
2469
+ color: var(--thunderid-color-primary-main);
2396
2470
  border-color: transparent;
2397
2471
  }
2398
2472
  .thunderid-button--ghost.thunderid-button--primary:hover:not(:disabled) {
2399
- background-color: var(--thunder-color-primary-light);
2473
+ background-color: var(--thunderid-color-primary-light);
2400
2474
  border-color: transparent;
2401
2475
  }
2402
2476
 
2403
2477
  .thunderid-button--ghost.thunderid-button--secondary {
2404
2478
  background-color: transparent;
2405
- color: var(--thunder-color-secondary-main);
2479
+ color: var(--thunderid-color-secondary-main);
2406
2480
  border-color: transparent;
2407
2481
  }
2408
2482
  .thunderid-button--ghost.thunderid-button--secondary:hover:not(:disabled) {
2409
- background-color: var(--thunder-color-action-hover);
2483
+ background-color: var(--thunderid-color-action-hover);
2410
2484
  border-color: transparent;
2411
2485
  }
2412
2486
 
2413
2487
  .thunderid-button--ghost.thunderid-button--danger {
2414
2488
  background-color: transparent;
2415
- color: var(--thunder-color-error-main);
2489
+ color: var(--thunderid-color-error-main);
2416
2490
  border-color: transparent;
2417
2491
  }
2418
2492
  .thunderid-button--ghost.thunderid-button--danger:hover:not(:disabled) {
2419
- background-color: var(--thunder-color-error-light);
2493
+ background-color: var(--thunderid-color-error-light);
2420
2494
  border-color: transparent;
2421
2495
  }
2422
2496
 
@@ -2425,30 +2499,30 @@ const BUTTON_CSS = `
2425
2499
  .thunderid-button--text {
2426
2500
  border-color: transparent;
2427
2501
  background-color: transparent;
2428
- padding-left: calc(var(--thunder-spacing-unit) * 0.25);
2429
- padding-right: calc(var(--thunder-spacing-unit) * 0.25);
2502
+ padding-left: calc(var(--thunderid-spacing-unit) * 0.25);
2503
+ padding-right: calc(var(--thunderid-spacing-unit) * 0.25);
2430
2504
  }
2431
2505
 
2432
2506
  .thunderid-button--text.thunderid-button--primary {
2433
- color: var(--thunder-color-primary-main);
2507
+ color: var(--thunderid-color-primary-main);
2434
2508
  }
2435
2509
  .thunderid-button--text.thunderid-button--primary:hover:not(:disabled) {
2436
- color: var(--thunder-color-primary-dark);
2510
+ color: var(--thunderid-color-primary-dark);
2437
2511
  text-decoration: underline;
2438
2512
  text-underline-offset: 2px;
2439
2513
  }
2440
2514
 
2441
2515
  .thunderid-button--text.thunderid-button--secondary {
2442
- color: var(--thunder-color-secondary-main);
2516
+ color: var(--thunderid-color-secondary-main);
2443
2517
  }
2444
2518
  .thunderid-button--text.thunderid-button--secondary:hover:not(:disabled) {
2445
- color: var(--thunder-color-text-primary);
2519
+ color: var(--thunderid-color-text-primary);
2446
2520
  text-decoration: underline;
2447
2521
  text-underline-offset: 2px;
2448
2522
  }
2449
2523
 
2450
2524
  .thunderid-button--text.thunderid-button--danger {
2451
- color: var(--thunder-color-error-main);
2525
+ color: var(--thunderid-color-error-main);
2452
2526
  }
2453
2527
  .thunderid-button--text.thunderid-button--danger:hover:not(:disabled) {
2454
2528
  text-decoration: underline;
@@ -2484,7 +2558,7 @@ const BUTTON_CSS = `
2484
2558
  border-right-color: transparent;
2485
2559
  border-radius: 50%;
2486
2560
  animation: thunder-spin 0.6s linear infinite;
2487
- margin-left: calc(var(--thunder-spacing-unit) * 0.5);
2561
+ margin-left: calc(var(--thunderid-spacing-unit) * 0.5);
2488
2562
  }
2489
2563
  `;
2490
2564
  var Button_css_default = BUTTON_CSS;
@@ -2507,19 +2581,19 @@ const CARD_CSS = `
2507
2581
  ============================================================ */
2508
2582
 
2509
2583
  .thunderid-card {
2510
- background-color: var(--thunder-color-background-surface);
2511
- border-radius: var(--thunder-card-borderRadius);
2512
- padding: var(--thunder-card-padding);
2584
+ background-color: var(--thunderid-color-background-surface);
2585
+ border-radius: var(--thunderid-card-borderRadius);
2586
+ padding: var(--thunderid-card-padding);
2513
2587
  box-sizing: border-box;
2514
- transition: box-shadow var(--thunder-transition-normal);
2588
+ transition: box-shadow var(--thunderid-transition-normal);
2515
2589
  }
2516
2590
 
2517
2591
  .thunderid-card--elevated {
2518
- box-shadow: var(--thunder-card-shadow);
2592
+ box-shadow: var(--thunderid-card-shadow);
2519
2593
  }
2520
2594
 
2521
2595
  .thunderid-card--outlined {
2522
- border: 1px solid var(--thunder-card-borderColor);
2596
+ border: 1px solid var(--thunderid-card-borderColor);
2523
2597
  }
2524
2598
 
2525
2599
  /* .thunderid-card--flat: no shadow or border */
@@ -2547,29 +2621,29 @@ const CHECKBOX_CSS = `
2547
2621
  .thunderid-checkbox {
2548
2622
  display: flex;
2549
2623
  flex-direction: column;
2550
- gap: calc(var(--thunder-spacing-unit) * 0.5);
2551
- font-family: var(--thunder-typography-fontFamily);
2624
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
2625
+ font-family: var(--thunderid-typography-fontFamily);
2552
2626
  }
2553
2627
 
2554
2628
  .thunderid-checkbox__wrapper {
2555
2629
  display: inline-flex;
2556
2630
  align-items: center;
2557
- gap: calc(var(--thunder-spacing-unit) * 0.75);
2631
+ gap: calc(var(--thunderid-spacing-unit) * 0.75);
2558
2632
  cursor: pointer;
2559
2633
  user-select: none;
2560
2634
  }
2561
2635
 
2562
2636
  .thunderid-checkbox__input {
2563
- width: var(--thunder-checkbox-size);
2564
- height: var(--thunder-checkbox-size);
2637
+ width: var(--thunderid-checkbox-size);
2638
+ height: var(--thunderid-checkbox-size);
2565
2639
  cursor: pointer;
2566
- accent-color: var(--thunder-color-primary-main);
2640
+ accent-color: var(--thunderid-color-primary-main);
2567
2641
  flex-shrink: 0;
2568
- border-radius: var(--thunder-border-radius-xs);
2642
+ border-radius: var(--thunderid-border-radius-xs);
2569
2643
  }
2570
2644
  .thunderid-checkbox__input:focus-visible {
2571
2645
  outline: none;
2572
- box-shadow: 0 0 0 var(--thunder-focus-ring-width) var(--thunder-focus-ring-color);
2646
+ box-shadow: 0 0 0 var(--thunderid-focus-ring-width) var(--thunderid-focus-ring-color);
2573
2647
  }
2574
2648
  .thunderid-checkbox__input:disabled {
2575
2649
  cursor: not-allowed;
@@ -2577,15 +2651,15 @@ const CHECKBOX_CSS = `
2577
2651
  }
2578
2652
 
2579
2653
  .thunderid-checkbox__label {
2580
- font-size: var(--thunder-typography-fontSize-md);
2581
- color: var(--thunder-color-text-primary);
2582
- line-height: var(--thunder-typography-lineHeight-normal);
2654
+ font-size: var(--thunderid-typography-fontSize-md);
2655
+ color: var(--thunderid-color-text-primary);
2656
+ line-height: var(--thunderid-typography-lineHeight-normal);
2583
2657
  }
2584
2658
 
2585
2659
  .thunderid-checkbox__error {
2586
- font-size: var(--thunder-typography-fontSize-xs);
2587
- color: var(--thunder-color-error-contrastText);
2588
- line-height: var(--thunder-typography-lineHeight-normal);
2660
+ font-size: var(--thunderid-typography-fontSize-xs);
2661
+ color: var(--thunderid-color-error-contrastText);
2662
+ line-height: var(--thunderid-typography-lineHeight-normal);
2589
2663
  }
2590
2664
  `;
2591
2665
  var Checkbox_css_default = CHECKBOX_CSS;
@@ -2611,62 +2685,62 @@ const DATE_PICKER_CSS = `
2611
2685
  .thunderid-date-picker {
2612
2686
  display: flex;
2613
2687
  flex-direction: column;
2614
- gap: calc(var(--thunder-spacing-unit) * 0.5);
2615
- font-family: var(--thunder-typography-fontFamily);
2688
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
2689
+ font-family: var(--thunderid-typography-fontFamily);
2616
2690
  width: 100%;
2617
2691
  box-sizing: border-box;
2618
2692
  }
2619
2693
 
2620
2694
  .thunderid-date-picker__label {
2621
- font-size: var(--thunder-typography-fontSize-sm);
2622
- font-weight: var(--thunder-typography-fontWeight-medium);
2623
- color: var(--thunder-color-text-primary);
2695
+ font-size: var(--thunderid-typography-fontSize-sm);
2696
+ font-weight: var(--thunderid-typography-fontWeight-medium);
2697
+ color: var(--thunderid-color-text-primary);
2624
2698
  display: block;
2625
- line-height: var(--thunder-typography-lineHeight-normal);
2699
+ line-height: var(--thunderid-typography-lineHeight-normal);
2626
2700
  }
2627
2701
 
2628
2702
  .thunderid-date-picker__required {
2629
- color: var(--thunder-color-error-main);
2703
+ color: var(--thunderid-color-error-main);
2630
2704
  margin-left: 2px;
2631
2705
  }
2632
2706
 
2633
2707
  .thunderid-date-picker__input {
2634
2708
  width: 100%;
2635
- height: var(--thunder-input-height);
2636
- padding: 0 var(--thunder-input-paddingX);
2637
- border: 1px solid var(--thunder-input-borderColor);
2638
- border-radius: var(--thunder-input-borderRadius);
2639
- font-family: var(--thunder-typography-fontFamily);
2640
- font-size: var(--thunder-input-fontSize);
2641
- color: var(--thunder-color-text-primary);
2642
- background-color: var(--thunder-color-background-surface);
2709
+ height: var(--thunderid-input-height);
2710
+ padding: 0 var(--thunderid-input-paddingX);
2711
+ border: 1px solid var(--thunderid-input-borderColor);
2712
+ border-radius: var(--thunderid-input-borderRadius);
2713
+ font-family: var(--thunderid-typography-fontFamily);
2714
+ font-size: var(--thunderid-input-fontSize);
2715
+ color: var(--thunderid-color-text-primary);
2716
+ background-color: var(--thunderid-color-background-surface);
2643
2717
  box-sizing: border-box;
2644
2718
  transition:
2645
- border-color var(--thunder-transition-fast),
2646
- box-shadow var(--thunder-transition-fast);
2719
+ border-color var(--thunderid-transition-fast),
2720
+ box-shadow var(--thunderid-transition-fast);
2647
2721
  outline: none;
2648
2722
  cursor: pointer;
2649
2723
  }
2650
2724
  .thunderid-date-picker__input:focus {
2651
- border-color: var(--thunder-input-focusBorderColor);
2652
- box-shadow: var(--thunder-input-focusRing);
2725
+ border-color: var(--thunderid-input-focusBorderColor);
2726
+ box-shadow: var(--thunderid-input-focusRing);
2653
2727
  }
2654
2728
  .thunderid-date-picker--error .thunderid-date-picker__input {
2655
- border-color: var(--thunder-color-error-main);
2729
+ border-color: var(--thunderid-color-error-main);
2656
2730
  }
2657
2731
  .thunderid-date-picker--error .thunderid-date-picker__input:focus {
2658
2732
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
2659
2733
  }
2660
2734
  .thunderid-date-picker__input:disabled {
2661
- background-color: var(--thunder-color-background-disabled);
2662
- color: var(--thunder-color-action-disabled);
2735
+ background-color: var(--thunderid-color-background-disabled);
2736
+ color: var(--thunderid-color-action-disabled);
2663
2737
  cursor: not-allowed;
2664
2738
  }
2665
2739
 
2666
2740
  .thunderid-date-picker__error {
2667
- font-size: var(--thunder-typography-fontSize-xs);
2668
- color: var(--thunder-color-error-contrastText);
2669
- line-height: var(--thunder-typography-lineHeight-normal);
2741
+ font-size: var(--thunderid-typography-fontSize-xs);
2742
+ color: var(--thunderid-color-error-contrastText);
2743
+ line-height: var(--thunderid-typography-lineHeight-normal);
2670
2744
  }
2671
2745
  `;
2672
2746
  var DatePicker_css_default = DATE_PICKER_CSS;
@@ -2698,8 +2772,8 @@ const DIVIDER_CSS = `
2698
2772
  .thunderid-divider--horizontal {
2699
2773
  width: 100%;
2700
2774
  border: none;
2701
- border-top: 1px solid var(--thunder-color-border);
2702
- margin: calc(var(--thunder-spacing-unit) * 1) 0;
2775
+ border-top: 1px solid var(--thunderid-color-border);
2776
+ margin: calc(var(--thunderid-spacing-unit) * 1) 0;
2703
2777
  }
2704
2778
 
2705
2779
  .thunderid-divider--vertical {
@@ -2708,34 +2782,34 @@ const DIVIDER_CSS = `
2708
2782
  height: 100%;
2709
2783
  min-height: 1em;
2710
2784
  border: none;
2711
- background-color: var(--thunder-color-border);
2712
- margin: 0 calc(var(--thunder-spacing-unit) * 1);
2785
+ background-color: var(--thunderid-color-border);
2786
+ margin: 0 calc(var(--thunderid-spacing-unit) * 1);
2713
2787
  align-self: stretch;
2714
2788
  }
2715
2789
 
2716
2790
  .thunderid-divider--with-content {
2717
2791
  display: flex;
2718
2792
  align-items: center;
2719
- gap: calc(var(--thunder-spacing-unit) * 1);
2793
+ gap: calc(var(--thunderid-spacing-unit) * 1);
2720
2794
  border: none;
2721
- margin: calc(var(--thunder-spacing-unit) * 1) 0;
2795
+ margin: calc(var(--thunderid-spacing-unit) * 1) 0;
2722
2796
  }
2723
2797
 
2724
2798
  .thunderid-divider__line {
2725
2799
  flex: 1;
2726
2800
  height: 1px;
2727
- background-color: var(--thunder-color-border);
2801
+ background-color: var(--thunderid-color-border);
2728
2802
  }
2729
2803
 
2730
2804
  .thunderid-divider__content {
2731
2805
  flex-shrink: 0;
2732
- font-size: var(--thunder-typography-fontSize-xs);
2733
- color: var(--thunder-color-text-secondary);
2734
- padding: 0 calc(var(--thunder-spacing-unit) * 0.5);
2735
- font-family: var(--thunder-typography-fontFamily);
2806
+ font-size: var(--thunderid-typography-fontSize-xs);
2807
+ color: var(--thunderid-color-text-secondary);
2808
+ padding: 0 calc(var(--thunderid-spacing-unit) * 0.5);
2809
+ font-family: var(--thunderid-typography-fontFamily);
2736
2810
  text-transform: uppercase;
2737
- letter-spacing: var(--thunder-typography-letterSpacing-wide);
2738
- font-weight: var(--thunder-typography-fontWeight-medium);
2811
+ letter-spacing: var(--thunderid-typography-letterSpacing-wide);
2812
+ font-weight: var(--thunderid-typography-fontWeight-medium);
2739
2813
  }
2740
2814
  `;
2741
2815
  var Divider_css_default = DIVIDER_CSS;
@@ -2759,7 +2833,7 @@ const LOGO_CSS = `
2759
2833
  display: inline-flex;
2760
2834
  align-items: center;
2761
2835
  text-decoration: none;
2762
- transition: opacity var(--thunder-transition-fast);
2836
+ transition: opacity var(--thunderid-transition-fast);
2763
2837
  }
2764
2838
 
2765
2839
  .thunderid-logo:hover {
@@ -2802,59 +2876,67 @@ const OTP_FIELD_CSS = `
2802
2876
  .thunderid-otp-field {
2803
2877
  display: flex;
2804
2878
  flex-direction: column;
2805
- gap: calc(var(--thunder-spacing-unit) * 0.75);
2806
- font-family: var(--thunder-typography-fontFamily);
2879
+ gap: calc(var(--thunderid-spacing-unit) * 0.75);
2880
+ font-family: var(--thunderid-typography-fontFamily);
2807
2881
  }
2808
2882
 
2809
2883
  .thunderid-otp-field__label {
2810
- font-size: var(--thunder-typography-fontSize-sm);
2811
- font-weight: var(--thunder-typography-fontWeight-medium);
2812
- color: var(--thunder-color-text-primary);
2884
+ font-size: var(--thunderid-typography-fontSize-sm);
2885
+ font-weight: var(--thunderid-typography-fontWeight-medium);
2886
+ color: var(--thunderid-color-text-primary);
2813
2887
  display: block;
2814
- line-height: var(--thunder-typography-lineHeight-normal);
2888
+ line-height: var(--thunderid-typography-lineHeight-normal);
2815
2889
  }
2816
2890
 
2817
2891
  .thunderid-otp-field__required {
2818
- color: var(--thunder-color-error-main);
2892
+ color: var(--thunderid-color-error-main);
2819
2893
  margin-left: 2px;
2820
2894
  }
2821
2895
 
2822
2896
  .thunderid-otp-field__inputs {
2823
2897
  display: flex;
2824
- gap: calc(var(--thunder-spacing-unit) * 0.75);
2898
+ flex-wrap: wrap;
2899
+ align-items: center;
2900
+ justify-content: space-between;
2901
+ gap: var(--thunderid-spacing-unit);
2825
2902
  }
2826
2903
 
2827
2904
  .thunderid-otp-field__digit {
2828
- width: var(--thunder-input-height);
2829
- height: var(--thunder-input-height);
2905
+ flex: none;
2906
+ width: calc(var(--thunderid-spacing-unit) * 6);
2907
+ height: calc(var(--thunderid-spacing-unit) * 6);
2830
2908
  text-align: center;
2831
- border: 1px solid var(--thunder-input-borderColor);
2832
- border-radius: var(--thunder-input-borderRadius);
2833
- font-family: var(--thunder-typography-fontFamily);
2834
- font-size: var(--thunder-typography-fontSize-lg);
2835
- font-weight: var(--thunder-typography-fontWeight-semibold);
2836
- color: var(--thunder-color-text-primary);
2837
- background-color: var(--thunder-color-background-surface);
2909
+ border: 2px solid var(--thunderid-input-borderColor);
2910
+ /* Keeps the digit box's corners between a subtle minimum and 25% of its own
2911
+ size, so a brand radius token of 0 (sharp cards/buttons) doesn't render
2912
+ as a harsh square here, and an oversized token can't turn it into a
2913
+ near-circle. */
2914
+ border-radius: clamp(4px, var(--thunderid-border-radius-medium), 25%);
2915
+ font-family: var(--thunderid-typography-fontFamily);
2916
+ font-size: var(--thunderid-typography-fontSize-xl);
2917
+ font-weight: var(--thunderid-typography-fontWeight-medium);
2918
+ color: var(--thunderid-color-text-primary);
2919
+ background-color: var(--thunderid-color-background-surface);
2838
2920
  box-sizing: border-box;
2839
2921
  outline: none;
2840
2922
  transition:
2841
- border-color var(--thunder-transition-fast),
2842
- box-shadow var(--thunder-transition-fast);
2923
+ border-color var(--thunderid-transition-fast),
2924
+ box-shadow var(--thunderid-transition-fast);
2843
2925
  }
2844
2926
  .thunderid-otp-field__digit:focus {
2845
- border-color: var(--thunder-input-focusBorderColor);
2846
- box-shadow: var(--thunder-input-focusRing);
2927
+ border-color: var(--thunderid-input-focusBorderColor);
2928
+ box-shadow: var(--thunderid-input-focusRing);
2847
2929
  }
2848
2930
  .thunderid-otp-field__digit:disabled {
2849
- background-color: var(--thunder-color-background-disabled);
2850
- color: var(--thunder-color-action-disabled);
2931
+ background-color: var(--thunderid-color-background-disabled);
2932
+ color: var(--thunderid-color-action-disabled);
2851
2933
  cursor: not-allowed;
2852
2934
  }
2853
2935
 
2854
2936
  .thunderid-otp-field__error {
2855
- font-size: var(--thunder-typography-fontSize-xs);
2856
- color: var(--thunder-color-error-contrastText);
2857
- line-height: var(--thunder-typography-lineHeight-normal);
2937
+ font-size: var(--thunderid-typography-fontSize-xs);
2938
+ color: var(--thunderid-color-error-contrastText);
2939
+ line-height: var(--thunderid-typography-lineHeight-normal);
2858
2940
  }
2859
2941
  `;
2860
2942
  var OtpField_css_default = OTP_FIELD_CSS;
@@ -2880,44 +2962,44 @@ const PASSWORD_FIELD_CSS = `
2880
2962
  .thunderid-password-field {
2881
2963
  display: flex;
2882
2964
  flex-direction: column;
2883
- gap: calc(var(--thunder-spacing-unit) * 0.5);
2884
- font-family: var(--thunder-typography-fontFamily);
2965
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
2966
+ font-family: var(--thunderid-typography-fontFamily);
2885
2967
  width: 100%;
2886
2968
  box-sizing: border-box;
2887
2969
  }
2888
2970
 
2889
2971
  .thunderid-password-field__label {
2890
- font-size: var(--thunder-typography-fontSize-sm);
2891
- font-weight: var(--thunder-typography-fontWeight-medium);
2892
- color: var(--thunder-color-text-primary);
2972
+ font-size: var(--thunderid-typography-fontSize-sm);
2973
+ font-weight: var(--thunderid-typography-fontWeight-medium);
2974
+ color: var(--thunderid-color-text-primary);
2893
2975
  display: block;
2894
- line-height: var(--thunder-typography-lineHeight-normal);
2976
+ line-height: var(--thunderid-typography-lineHeight-normal);
2895
2977
  }
2896
2978
 
2897
2979
  .thunderid-password-field__required {
2898
- color: var(--thunder-color-error-main);
2980
+ color: var(--thunderid-color-error-main);
2899
2981
  margin-left: 2px;
2900
2982
  }
2901
2983
 
2902
2984
  .thunderid-password-field__wrapper {
2903
2985
  display: flex;
2904
2986
  align-items: center;
2905
- height: var(--thunder-input-height);
2906
- border: 1px solid var(--thunder-input-borderColor);
2907
- border-radius: var(--thunder-input-borderRadius);
2908
- background-color: var(--thunder-color-background-surface);
2987
+ height: var(--thunderid-input-height);
2988
+ border: 1px solid var(--thunderid-input-borderColor);
2989
+ border-radius: var(--thunderid-input-borderRadius);
2990
+ background-color: var(--thunderid-color-background-surface);
2909
2991
  transition:
2910
- border-color var(--thunder-transition-fast),
2911
- box-shadow var(--thunder-transition-fast);
2992
+ border-color var(--thunderid-transition-fast),
2993
+ box-shadow var(--thunderid-transition-fast);
2912
2994
  overflow: hidden;
2913
2995
  box-sizing: border-box;
2914
2996
  }
2915
2997
  .thunderid-password-field__wrapper:focus-within {
2916
- border-color: var(--thunder-input-focusBorderColor);
2917
- box-shadow: var(--thunder-input-focusRing);
2998
+ border-color: var(--thunderid-input-focusBorderColor);
2999
+ box-shadow: var(--thunderid-input-focusRing);
2918
3000
  }
2919
3001
  .thunderid-password-field--error .thunderid-password-field__wrapper {
2920
- border-color: var(--thunder-color-error-main);
3002
+ border-color: var(--thunderid-color-error-main);
2921
3003
  }
2922
3004
  .thunderid-password-field--error .thunderid-password-field__wrapper:focus-within {
2923
3005
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
@@ -2925,12 +3007,12 @@ const PASSWORD_FIELD_CSS = `
2925
3007
 
2926
3008
  .thunderid-password-field__input {
2927
3009
  flex: 1;
2928
- padding: 0 var(--thunder-input-paddingX);
3010
+ padding: 0 var(--thunderid-input-paddingX);
2929
3011
  border: none;
2930
3012
  outline: none;
2931
- font-family: var(--thunder-typography-fontFamily);
2932
- font-size: var(--thunder-input-fontSize);
2933
- color: var(--thunder-color-text-primary);
3013
+ font-family: var(--thunderid-typography-fontFamily);
3014
+ font-size: var(--thunderid-input-fontSize);
3015
+ color: var(--thunderid-color-text-primary);
2934
3016
  background: transparent;
2935
3017
  width: 100%;
2936
3018
  height: 100%;
@@ -2938,7 +3020,7 @@ const PASSWORD_FIELD_CSS = `
2938
3020
  min-width: 0;
2939
3021
  }
2940
3022
  .thunderid-password-field__input::placeholder {
2941
- color: var(--thunder-color-text-secondary);
3023
+ color: var(--thunderid-color-text-secondary);
2942
3024
  }
2943
3025
  .thunderid-password-field__input:disabled {
2944
3026
  cursor: not-allowed;
@@ -2948,24 +3030,24 @@ const PASSWORD_FIELD_CSS = `
2948
3030
  background: none;
2949
3031
  border: none;
2950
3032
  cursor: pointer;
2951
- padding: 0 var(--thunder-input-paddingX);
2952
- color: var(--thunder-color-text-secondary);
2953
- font-size: var(--thunder-typography-fontSize-md);
3033
+ padding: 0 var(--thunderid-input-paddingX);
3034
+ color: var(--thunderid-color-text-secondary);
3035
+ font-size: var(--thunderid-typography-fontSize-md);
2954
3036
  display: flex;
2955
3037
  align-items: center;
2956
3038
  justify-content: center;
2957
3039
  flex-shrink: 0;
2958
3040
  height: 100%;
2959
- transition: color var(--thunder-transition-fast);
3041
+ transition: color var(--thunderid-transition-fast);
2960
3042
  }
2961
3043
  .thunderid-password-field__toggle:hover {
2962
- color: var(--thunder-color-text-primary);
3044
+ color: var(--thunderid-color-text-primary);
2963
3045
  }
2964
3046
 
2965
3047
  .thunderid-password-field__error {
2966
- font-size: var(--thunder-typography-fontSize-xs);
2967
- color: var(--thunder-color-error-contrastText);
2968
- line-height: var(--thunder-typography-lineHeight-normal);
3048
+ font-size: var(--thunderid-typography-fontSize-xs);
3049
+ color: var(--thunderid-color-error-contrastText);
3050
+ line-height: var(--thunderid-typography-lineHeight-normal);
2969
3051
  }
2970
3052
  `;
2971
3053
  var PasswordField_css_default = PASSWORD_FIELD_CSS;
@@ -2991,75 +3073,75 @@ const SELECT_CSS = `
2991
3073
  .thunderid-select {
2992
3074
  display: flex;
2993
3075
  flex-direction: column;
2994
- gap: calc(var(--thunder-spacing-unit) * 0.5);
2995
- font-family: var(--thunder-typography-fontFamily);
3076
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
3077
+ font-family: var(--thunderid-typography-fontFamily);
2996
3078
  width: 100%;
2997
3079
  box-sizing: border-box;
2998
3080
  }
2999
3081
 
3000
3082
  .thunderid-select__label {
3001
- font-size: var(--thunder-typography-fontSize-sm);
3002
- font-weight: var(--thunder-typography-fontWeight-medium);
3003
- color: var(--thunder-color-text-primary);
3083
+ font-size: var(--thunderid-typography-fontSize-sm);
3084
+ font-weight: var(--thunderid-typography-fontWeight-medium);
3085
+ color: var(--thunderid-color-text-primary);
3004
3086
  display: block;
3005
- line-height: var(--thunder-typography-lineHeight-normal);
3087
+ line-height: var(--thunderid-typography-lineHeight-normal);
3006
3088
  }
3007
3089
 
3008
3090
  .thunderid-select__required {
3009
- color: var(--thunder-color-error-main);
3091
+ color: var(--thunderid-color-error-main);
3010
3092
  margin-left: 2px;
3011
3093
  }
3012
3094
 
3013
3095
  .thunderid-select__input {
3014
3096
  width: 100%;
3015
- height: var(--thunder-input-height);
3016
- padding: 0 calc(var(--thunder-spacing-unit) * 4) 0 var(--thunder-input-paddingX);
3017
- border: 1px solid var(--thunder-input-borderColor);
3018
- border-radius: var(--thunder-input-borderRadius);
3019
- font-family: var(--thunder-typography-fontFamily);
3020
- font-size: var(--thunder-input-fontSize);
3021
- color: var(--thunder-color-text-primary);
3022
- background-color: var(--thunder-color-background-surface);
3097
+ height: var(--thunderid-input-height);
3098
+ padding: 0 calc(var(--thunderid-spacing-unit) * 4) 0 var(--thunderid-input-paddingX);
3099
+ border: 1px solid var(--thunderid-input-borderColor);
3100
+ border-radius: var(--thunderid-input-borderRadius);
3101
+ font-family: var(--thunderid-typography-fontFamily);
3102
+ font-size: var(--thunderid-input-fontSize);
3103
+ color: var(--thunderid-color-text-primary);
3104
+ background-color: var(--thunderid-color-background-surface);
3023
3105
  appearance: none;
3024
3106
  -webkit-appearance: none;
3025
3107
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
3026
3108
  background-repeat: no-repeat;
3027
- background-position: right var(--thunder-input-paddingX) center;
3109
+ background-position: right var(--thunderid-input-paddingX) center;
3028
3110
  cursor: pointer;
3029
3111
  box-sizing: border-box;
3030
3112
  transition:
3031
- border-color var(--thunder-transition-fast),
3032
- box-shadow var(--thunder-transition-fast);
3113
+ border-color var(--thunderid-transition-fast),
3114
+ box-shadow var(--thunderid-transition-fast);
3033
3115
  outline: none;
3034
- line-height: var(--thunder-typography-lineHeight-normal);
3116
+ line-height: var(--thunderid-typography-lineHeight-normal);
3035
3117
  }
3036
3118
  .thunderid-select__input:focus {
3037
- border-color: var(--thunder-input-focusBorderColor);
3038
- box-shadow: var(--thunder-input-focusRing);
3119
+ border-color: var(--thunderid-input-focusBorderColor);
3120
+ box-shadow: var(--thunderid-input-focusRing);
3039
3121
  }
3040
3122
  .thunderid-select__input:disabled {
3041
- background-color: var(--thunder-color-background-disabled);
3042
- color: var(--thunder-color-action-disabled);
3123
+ background-color: var(--thunderid-color-background-disabled);
3124
+ color: var(--thunderid-color-action-disabled);
3043
3125
  cursor: not-allowed;
3044
3126
  }
3045
3127
 
3046
3128
  .thunderid-select--error .thunderid-select__input {
3047
- border-color: var(--thunder-color-error-main);
3129
+ border-color: var(--thunderid-color-error-main);
3048
3130
  }
3049
3131
  .thunderid-select--error .thunderid-select__input:focus {
3050
3132
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
3051
3133
  }
3052
3134
 
3053
3135
  .thunderid-select__error {
3054
- font-size: var(--thunder-typography-fontSize-xs);
3055
- color: var(--thunder-color-error-contrastText);
3056
- line-height: var(--thunder-typography-lineHeight-normal);
3136
+ font-size: var(--thunderid-typography-fontSize-xs);
3137
+ color: var(--thunderid-color-error-contrastText);
3138
+ line-height: var(--thunderid-typography-lineHeight-normal);
3057
3139
  }
3058
3140
 
3059
3141
  .thunderid-select__helper {
3060
- font-size: var(--thunder-typography-fontSize-xs);
3061
- color: var(--thunder-color-text-secondary);
3062
- line-height: var(--thunder-typography-lineHeight-normal);
3142
+ font-size: var(--thunderid-typography-fontSize-xs);
3143
+ color: var(--thunderid-color-text-secondary);
3144
+ line-height: var(--thunderid-typography-lineHeight-normal);
3063
3145
  }
3064
3146
  `;
3065
3147
  var Select_css_default = SELECT_CSS;
@@ -3089,22 +3171,22 @@ const SPINNER_CSS = `
3089
3171
  display: inline-flex;
3090
3172
  align-items: center;
3091
3173
  justify-content: center;
3092
- color: var(--thunder-color-primary-main);
3174
+ color: var(--thunderid-color-primary-main);
3093
3175
  }
3094
3176
 
3095
3177
  .thunderid-spinner--small {
3096
- width: calc(var(--thunder-spacing-unit) * 2);
3097
- height: calc(var(--thunder-spacing-unit) * 2);
3178
+ width: calc(var(--thunderid-spacing-unit) * 2);
3179
+ height: calc(var(--thunderid-spacing-unit) * 2);
3098
3180
  }
3099
3181
 
3100
3182
  .thunderid-spinner--medium {
3101
- width: calc(var(--thunder-spacing-unit) * 2.5);
3102
- height: calc(var(--thunder-spacing-unit) * 2.5);
3183
+ width: calc(var(--thunderid-spacing-unit) * 2.5);
3184
+ height: calc(var(--thunderid-spacing-unit) * 2.5);
3103
3185
  }
3104
3186
 
3105
3187
  .thunderid-spinner--large {
3106
- width: calc(var(--thunder-spacing-unit) * 3.5);
3107
- height: calc(var(--thunder-spacing-unit) * 3.5);
3188
+ width: calc(var(--thunderid-spacing-unit) * 3.5);
3189
+ height: calc(var(--thunderid-spacing-unit) * 3.5);
3108
3190
  }
3109
3191
 
3110
3192
  .thunderid-spinner__svg {
@@ -3142,71 +3224,71 @@ const TEXT_FIELD_CSS = `
3142
3224
  .thunderid-text-field {
3143
3225
  display: flex;
3144
3226
  flex-direction: column;
3145
- gap: calc(var(--thunder-spacing-unit) * 0.5);
3146
- font-family: var(--thunder-typography-fontFamily);
3227
+ gap: calc(var(--thunderid-spacing-unit) * 0.5);
3228
+ font-family: var(--thunderid-typography-fontFamily);
3147
3229
  width: 100%;
3148
3230
  box-sizing: border-box;
3149
3231
  }
3150
3232
 
3151
3233
  .thunderid-text-field__label {
3152
- font-size: var(--thunder-typography-fontSize-sm);
3153
- font-weight: var(--thunder-typography-fontWeight-medium);
3154
- color: var(--thunder-color-text-primary);
3234
+ font-size: var(--thunderid-typography-fontSize-sm);
3235
+ font-weight: var(--thunderid-typography-fontWeight-medium);
3236
+ color: var(--thunderid-color-text-primary);
3155
3237
  display: block;
3156
- line-height: var(--thunder-typography-lineHeight-normal);
3238
+ line-height: var(--thunderid-typography-lineHeight-normal);
3157
3239
  }
3158
3240
 
3159
3241
  .thunderid-text-field__required {
3160
- color: var(--thunder-color-error-main);
3242
+ color: var(--thunderid-color-error-main);
3161
3243
  margin-left: 2px;
3162
3244
  }
3163
3245
 
3164
3246
  .thunderid-text-field__input {
3165
3247
  width: 100%;
3166
- height: var(--thunder-input-height);
3167
- padding: 0 var(--thunder-input-paddingX);
3168
- border: 1px solid var(--thunder-input-borderColor);
3169
- border-radius: var(--thunder-input-borderRadius);
3170
- font-family: var(--thunder-typography-fontFamily);
3171
- font-size: var(--thunder-input-fontSize);
3172
- color: var(--thunder-color-text-primary);
3173
- background-color: var(--thunder-color-background-surface);
3248
+ height: var(--thunderid-input-height);
3249
+ padding: 0 var(--thunderid-input-paddingX);
3250
+ border: 1px solid var(--thunderid-input-borderColor);
3251
+ border-radius: var(--thunderid-input-borderRadius);
3252
+ font-family: var(--thunderid-typography-fontFamily);
3253
+ font-size: var(--thunderid-input-fontSize);
3254
+ color: var(--thunderid-color-text-primary);
3255
+ background-color: var(--thunderid-color-background-surface);
3174
3256
  box-sizing: border-box;
3175
3257
  transition:
3176
- border-color var(--thunder-transition-fast),
3177
- box-shadow var(--thunder-transition-fast);
3258
+ border-color var(--thunderid-transition-fast),
3259
+ box-shadow var(--thunderid-transition-fast);
3178
3260
  outline: none;
3179
3261
  }
3180
3262
  .thunderid-text-field__input:focus {
3181
- border-color: var(--thunder-input-focusBorderColor);
3182
- box-shadow: var(--thunder-input-focusRing);
3263
+ border-color: var(--thunderid-input-focusBorderColor);
3264
+ box-shadow: var(--thunderid-input-focusRing);
3183
3265
  }
3184
3266
  .thunderid-text-field__input::placeholder {
3185
- color: var(--thunder-color-text-secondary);
3267
+ color: var(--thunderid-color-text-secondary);
3186
3268
  }
3187
3269
  .thunderid-text-field__input:disabled {
3188
- background-color: var(--thunder-color-background-disabled);
3189
- color: var(--thunder-color-action-disabled);
3270
+ background-color: var(--thunderid-color-background-disabled);
3271
+ color: var(--thunderid-color-action-disabled);
3190
3272
  cursor: not-allowed;
3191
3273
  }
3192
3274
 
3193
3275
  .thunderid-text-field--error .thunderid-text-field__input {
3194
- border-color: var(--thunder-color-error-main);
3276
+ border-color: var(--thunderid-color-error-main);
3195
3277
  }
3196
3278
  .thunderid-text-field--error .thunderid-text-field__input:focus {
3197
3279
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
3198
3280
  }
3199
3281
 
3200
3282
  .thunderid-text-field__error {
3201
- font-size: var(--thunder-typography-fontSize-xs);
3202
- color: var(--thunder-color-error-contrastText);
3203
- line-height: var(--thunder-typography-lineHeight-normal);
3283
+ font-size: var(--thunderid-typography-fontSize-xs);
3284
+ color: var(--thunderid-color-error-contrastText);
3285
+ line-height: var(--thunderid-typography-lineHeight-normal);
3204
3286
  }
3205
3287
 
3206
3288
  .thunderid-text-field__helper {
3207
- font-size: var(--thunder-typography-fontSize-xs);
3208
- color: var(--thunder-color-text-secondary);
3209
- line-height: var(--thunder-typography-lineHeight-normal);
3289
+ font-size: var(--thunderid-typography-fontSize-xs);
3290
+ color: var(--thunderid-color-text-secondary);
3291
+ line-height: var(--thunderid-typography-lineHeight-normal);
3210
3292
  }
3211
3293
  `;
3212
3294
  var TextField_css_default = TEXT_FIELD_CSS;
@@ -3230,91 +3312,140 @@ const TYPOGRAPHY_CSS = `
3230
3312
  ============================================================ */
3231
3313
 
3232
3314
  .thunderid-typography {
3233
- font-family: var(--thunder-typography-fontFamily);
3234
- color: var(--thunder-color-text-primary);
3315
+ font-family: var(--thunderid-typography-fontFamily);
3316
+ color: var(--thunderid-color-text-primary);
3235
3317
  margin: 0;
3236
- line-height: var(--thunder-typography-lineHeight-normal);
3318
+ line-height: var(--thunderid-typography-lineHeight-normal);
3237
3319
  -webkit-font-smoothing: antialiased;
3238
3320
  -moz-osx-font-smoothing: grayscale;
3239
3321
  }
3240
3322
 
3241
3323
  .thunderid-typography--h1 {
3242
- font-size: var(--thunder-typography-fontSize-3xl);
3243
- font-weight: var(--thunder-typography-fontWeight-bold);
3244
- line-height: var(--thunder-typography-lineHeight-tight);
3245
- letter-spacing: var(--thunder-typography-letterSpacing-tight);
3324
+ font-size: var(--thunderid-typography-fontSize-3xl);
3325
+ font-weight: var(--thunderid-typography-fontWeight-bold);
3326
+ line-height: var(--thunderid-typography-lineHeight-tight);
3327
+ letter-spacing: var(--thunderid-typography-letterSpacing-tight);
3246
3328
  }
3247
3329
 
3248
3330
  .thunderid-typography--h2 {
3249
- font-size: var(--thunder-typography-fontSize-2xl);
3250
- font-weight: var(--thunder-typography-fontWeight-bold);
3251
- line-height: var(--thunder-typography-lineHeight-tight);
3252
- letter-spacing: var(--thunder-typography-letterSpacing-tight);
3331
+ font-size: var(--thunderid-typography-fontSize-2xl);
3332
+ font-weight: var(--thunderid-typography-fontWeight-bold);
3333
+ line-height: var(--thunderid-typography-lineHeight-tight);
3334
+ letter-spacing: var(--thunderid-typography-letterSpacing-tight);
3253
3335
  }
3254
3336
 
3255
3337
  .thunderid-typography--h3 {
3256
- font-size: var(--thunder-typography-fontSize-xl);
3257
- font-weight: var(--thunder-typography-fontWeight-semibold);
3258
- line-height: var(--thunder-typography-lineHeight-tight);
3338
+ font-size: var(--thunderid-typography-fontSize-xl);
3339
+ font-weight: var(--thunderid-typography-fontWeight-semibold);
3340
+ line-height: var(--thunderid-typography-lineHeight-tight);
3259
3341
  }
3260
3342
 
3261
3343
  .thunderid-typography--h4 {
3262
- font-size: var(--thunder-typography-fontSize-lg);
3263
- font-weight: var(--thunder-typography-fontWeight-semibold);
3344
+ font-size: var(--thunderid-typography-fontSize-lg);
3345
+ font-weight: var(--thunderid-typography-fontWeight-semibold);
3264
3346
  }
3265
3347
 
3266
3348
  .thunderid-typography--h5 {
3267
- font-size: var(--thunder-typography-fontSize-md);
3268
- font-weight: var(--thunder-typography-fontWeight-semibold);
3349
+ font-size: var(--thunderid-typography-fontSize-md);
3350
+ font-weight: var(--thunderid-typography-fontWeight-semibold);
3269
3351
  }
3270
3352
 
3271
3353
  .thunderid-typography--h6 {
3272
- font-size: var(--thunder-typography-fontSize-sm);
3273
- font-weight: var(--thunder-typography-fontWeight-semibold);
3354
+ font-size: var(--thunderid-typography-fontSize-sm);
3355
+ font-weight: var(--thunderid-typography-fontWeight-semibold);
3274
3356
  text-transform: uppercase;
3275
- letter-spacing: var(--thunder-typography-letterSpacing-wide);
3357
+ letter-spacing: var(--thunderid-typography-letterSpacing-wide);
3276
3358
  }
3277
3359
 
3278
3360
  .thunderid-typography--subtitle1 {
3279
- font-size: var(--thunder-typography-fontSize-lg);
3280
- font-weight: var(--thunder-typography-fontWeight-medium);
3361
+ font-size: var(--thunderid-typography-fontSize-lg);
3362
+ font-weight: var(--thunderid-typography-fontWeight-medium);
3281
3363
  }
3282
3364
 
3283
3365
  .thunderid-typography--subtitle2 {
3284
- font-size: var(--thunder-typography-fontSize-md);
3285
- font-weight: var(--thunder-typography-fontWeight-medium);
3286
- color: var(--thunder-color-text-secondary);
3366
+ font-size: var(--thunderid-typography-fontSize-md);
3367
+ font-weight: var(--thunderid-typography-fontWeight-medium);
3368
+ color: var(--thunderid-color-text-secondary);
3287
3369
  }
3288
3370
 
3289
3371
  .thunderid-typography--body1 {
3290
- font-size: var(--thunder-typography-fontSize-md);
3291
- font-weight: var(--thunder-typography-fontWeight-normal);
3292
- line-height: var(--thunder-typography-lineHeight-relaxed);
3372
+ font-size: var(--thunderid-typography-fontSize-md);
3373
+ font-weight: var(--thunderid-typography-fontWeight-normal);
3374
+ line-height: var(--thunderid-typography-lineHeight-relaxed);
3293
3375
  }
3294
3376
 
3295
3377
  .thunderid-typography--body2 {
3296
- font-size: var(--thunder-typography-fontSize-sm);
3297
- font-weight: var(--thunder-typography-fontWeight-normal);
3298
- line-height: var(--thunder-typography-lineHeight-relaxed);
3299
- color: var(--thunder-color-text-secondary);
3378
+ font-size: var(--thunderid-typography-fontSize-sm);
3379
+ font-weight: var(--thunderid-typography-fontWeight-normal);
3380
+ line-height: var(--thunderid-typography-lineHeight-relaxed);
3381
+ color: var(--thunderid-color-text-secondary);
3300
3382
  }
3301
3383
 
3302
3384
  .thunderid-typography--caption {
3303
- font-size: var(--thunder-typography-fontSize-xs);
3304
- font-weight: var(--thunder-typography-fontWeight-normal);
3305
- color: var(--thunder-color-text-secondary);
3385
+ font-size: var(--thunderid-typography-fontSize-xs);
3386
+ font-weight: var(--thunderid-typography-fontWeight-normal);
3387
+ color: var(--thunderid-color-text-secondary);
3306
3388
  }
3307
3389
 
3308
3390
  .thunderid-typography--overline {
3309
- font-size: var(--thunder-typography-fontSize-xs);
3310
- font-weight: var(--thunder-typography-fontWeight-medium);
3391
+ font-size: var(--thunderid-typography-fontSize-xs);
3392
+ font-weight: var(--thunderid-typography-fontWeight-medium);
3311
3393
  text-transform: uppercase;
3312
3394
  letter-spacing: 0.08em;
3313
- color: var(--thunder-color-text-secondary);
3395
+ color: var(--thunderid-color-text-secondary);
3314
3396
  }
3315
3397
  `;
3316
3398
  var Typography_css_default = TYPOGRAPHY_CSS;
3317
3399
 
3400
+ //#endregion
3401
+ //#region src/components/auth/sign-in/BaseSignIn.css.ts
3402
+ /**
3403
+ * Layout styles for the BaseSignIn composition.
3404
+ *
3405
+ * BEM block: `.thunderid-signin`
3406
+ *
3407
+ * Mirrors the layout constants in the React SDK's `BaseSignIn.styles.ts`
3408
+ * (min-width, content gap, logo sizing) so the sign-in card renders with the
3409
+ * same proportions across frameworks.
3410
+ */
3411
+ const BASE_SIGN_IN_CSS = `
3412
+ /* ============================================================
3413
+ BaseSignIn
3414
+ ============================================================ */
3415
+
3416
+ .thunderid-signin {
3417
+ min-width: 420px;
3418
+ margin: 0 auto;
3419
+ font-family: var(--thunderid-typography-fontFamily, inherit);
3420
+ border-radius: var(--thunderid-border-radius-large);
3421
+ }
3422
+
3423
+ .thunderid-signin__content {
3424
+ display: flex;
3425
+ flex-direction: column;
3426
+ gap: calc(var(--thunderid-spacing-unit) * 2);
3427
+ }
3428
+
3429
+ .thunderid-signin__content > img,
3430
+ .thunderid-signin__content > span[role='img'] {
3431
+ /* Flex column's default 'stretch' would otherwise force width: auto to fill
3432
+ the container instead of shrinking to the image's intrinsic size. */
3433
+ align-self: center;
3434
+ display: block;
3435
+ margin: 0 0 calc(var(--thunderid-spacing-unit) * 1) 0;
3436
+ border-radius: var(--thunderid-border-radius-small);
3437
+ }
3438
+
3439
+ .thunderid-signin__messages {
3440
+ margin-top: calc(var(--thunderid-spacing-unit) * 2);
3441
+ }
3442
+
3443
+ .thunderid-signin__messages > * + * {
3444
+ margin-top: calc(var(--thunderid-spacing-unit) * 1);
3445
+ }
3446
+ `;
3447
+ var BaseSignIn_css_default = BASE_SIGN_IN_CSS;
3448
+
3318
3449
  //#endregion
3319
3450
  //#region src/styles/injectStyles.ts
3320
3451
  /**
@@ -3340,6 +3471,7 @@ const STYLES = [
3340
3471
  Divider_css_default,
3341
3472
  Logo_css_default,
3342
3473
  Spinner_css_default,
3474
+ BaseSignIn_css_default,
3343
3475
  LanguageSwitcher_css_default,
3344
3476
  UserDropdown_css_default,
3345
3477
  UserProfile_css_default
@@ -3637,6 +3769,7 @@ function useOAuthCallback({ currentFlowId, flowIdStorageKey = "thunderid_flow_id
3637
3769
  isSubmitting?.value
3638
3770
  ], ([initialized, , submitting]) => {
3639
3771
  if (!initialized || submitting) return;
3772
+ if (typeof window === "undefined") return;
3640
3773
  const urlParams = new URLSearchParams(window.location.search);
3641
3774
  const code = urlParams.get("code");
3642
3775
  const nonce = urlParams.get("nonce");
@@ -4189,7 +4322,7 @@ var PasswordField_default = PasswordField;
4189
4322
  //#endregion
4190
4323
  //#region src/components/primitives/Select/Select.ts
4191
4324
  const Select = (0, vue.defineComponent)({
4192
- name: "ThunderIDSelect",
4325
+ name: "Select",
4193
4326
  props: {
4194
4327
  disabled: {
4195
4328
  default: false,
@@ -4275,7 +4408,7 @@ var Select_default = Select;
4275
4408
  //#endregion
4276
4409
  //#region src/components/primitives/Checkbox/Checkbox.ts
4277
4410
  const Checkbox = (0, vue.defineComponent)({
4278
- name: "ThunderIDCheckbox",
4411
+ name: "Checkbox",
4279
4412
  props: {
4280
4413
  disabled: {
4281
4414
  default: false,
@@ -4331,7 +4464,7 @@ var Checkbox_default = Checkbox;
4331
4464
  //#endregion
4332
4465
  //#region src/components/primitives/DatePicker/DatePicker.ts
4333
4466
  const DatePicker = (0, vue.defineComponent)({
4334
- name: "ThunderIDDatePicker",
4467
+ name: "DatePicker",
4335
4468
  props: {
4336
4469
  disabled: {
4337
4470
  default: false,
@@ -4456,6 +4589,23 @@ const OtpField = (0, vue.defineComponent)({
4456
4589
  const handleKeydown = (index, e) => {
4457
4590
  if (e.key === "Backspace" && !e.target.value && index > 0) (0, vue.nextTick)(() => inputRefs.value[index - 1]?.focus());
4458
4591
  };
4592
+ const handlePaste = (index, e) => {
4593
+ e.preventDefault();
4594
+ const rawData = e.clipboardData?.getData("text") || "";
4595
+ const pasted = props.numericOnly ? rawData.replace(NON_NUMERIC_OTP_CHARS, "") : rawData.toUpperCase().replace(NON_ALPHANUMERIC_OTP_CHARS, "");
4596
+ if (!pasted) return;
4597
+ const current = (props.modelValue || "").split("");
4598
+ while (current.length < props.length) current.push("");
4599
+ let cursor = index;
4600
+ for (const char of pasted) {
4601
+ if (cursor >= props.length) break;
4602
+ current[cursor] = char;
4603
+ cursor += 1;
4604
+ }
4605
+ emit("update:modelValue", current.join(""));
4606
+ const nextIndex = Math.min(cursor, props.length - 1);
4607
+ (0, vue.nextTick)(() => inputRefs.value[nextIndex]?.focus());
4608
+ };
4459
4609
  return () => {
4460
4610
  const digits = (props.modelValue || "").split("");
4461
4611
  while (digits.length < props.length) digits.push("");
@@ -4473,6 +4623,7 @@ const OtpField = (0, vue.defineComponent)({
4473
4623
  maxlength: 1,
4474
4624
  onInput: (e) => handleInput(i, e),
4475
4625
  onKeydown: (e) => handleKeydown(i, e),
4626
+ onPaste: (e) => handlePaste(i, e),
4476
4627
  ref: (el) => setRef(el, i),
4477
4628
  type: "text",
4478
4629
  value: digits[i]
@@ -5721,6 +5872,12 @@ const createField = (config) => {
5721
5872
  "onUpdate:modelValue": onChange,
5722
5873
  type: "email"
5723
5874
  });
5875
+ case __thunderid_browser.FieldType.Tel: return (0, vue.h)(TextField_default, {
5876
+ ...commonProps,
5877
+ autocomplete: "tel",
5878
+ "onUpdate:modelValue": onChange,
5879
+ type: "tel"
5880
+ });
5724
5881
  case __thunderid_browser.FieldType.Date: return (0, vue.h)(DatePicker_default, {
5725
5882
  ...commonProps,
5726
5883
  "onUpdate:modelValue": onChange
@@ -5872,6 +6029,7 @@ const resolveEmojiUrisInHtml = (html) => {
5872
6029
  const getFieldType = (variant) => {
5873
6030
  switch (variant) {
5874
6031
  case __thunderid_browser.EmbeddedFlowComponentType.EmailInput: return __thunderid_browser.FieldType.Email;
6032
+ case __thunderid_browser.EmbeddedFlowComponentType.PhoneInput: return __thunderid_browser.FieldType.Tel;
5875
6033
  case __thunderid_browser.EmbeddedFlowComponentType.PasswordInput: return __thunderid_browser.FieldType.Password;
5876
6034
  case __thunderid_browser.EmbeddedFlowComponentType.TextInput:
5877
6035
  default: return __thunderid_browser.FieldType.Text;
@@ -5922,7 +6080,8 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
5922
6080
  switch (component.type) {
5923
6081
  case __thunderid_browser.EmbeddedFlowComponentType.TextInput:
5924
6082
  case __thunderid_browser.EmbeddedFlowComponentType.PasswordInput:
5925
- case __thunderid_browser.EmbeddedFlowComponentType.EmailInput: {
6083
+ case __thunderid_browser.EmbeddedFlowComponentType.EmailInput:
6084
+ case __thunderid_browser.EmbeddedFlowComponentType.PhoneInput: {
5926
6085
  const identifier = component.ref ?? "";
5927
6086
  const value = formValues[identifier] || "";
5928
6087
  const error = touchedFields[identifier] || false ? formErrors[identifier] : void 0;
@@ -5940,6 +6099,28 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
5940
6099
  value
5941
6100
  });
5942
6101
  }
6102
+ case __thunderid_browser.EmbeddedFlowComponentType.OtpInput: {
6103
+ const identifier = component.ref ?? "";
6104
+ const value = formValues[identifier] || "";
6105
+ const error = touchedFields[identifier] || false ? formErrors[identifier] : void 0;
6106
+ const reportedLength = Number(options.additionalData?.["otpLength"]);
6107
+ const otpLength = Number.isInteger(reportedLength) && reportedLength > 0 ? reportedLength : void 0;
6108
+ const numericOnly = options.additionalData?.["otpNumericOnly"] !== "false";
6109
+ return createField({
6110
+ className: options.inputClassName,
6111
+ error,
6112
+ label: resolve(component.label) || "",
6113
+ length: otpLength,
6114
+ name: identifier,
6115
+ numericOnly,
6116
+ onBlur: () => options.onInputBlur?.(identifier),
6117
+ onChange: (newValue) => onInputChange(identifier, newValue),
6118
+ placeholder: resolve(component.placeholder) || "",
6119
+ required: component.required || false,
6120
+ type: __thunderid_browser.FieldType.Otp,
6121
+ value
6122
+ });
6123
+ }
5943
6124
  case __thunderid_browser.EmbeddedFlowComponentType.Action: {
5944
6125
  const actionId = component.id;
5945
6126
  const eventType = component.eventType || "";
@@ -6085,7 +6266,13 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
6085
6266
  })).filter(Boolean);
6086
6267
  return (0, vue.h)("form", {
6087
6268
  id: component.id,
6088
- key
6269
+ key,
6270
+ onSubmit: (event) => event.preventDefault(),
6271
+ style: {
6272
+ display: "flex",
6273
+ flexDirection: "column",
6274
+ gap: "calc(var(--thunderid-spacing-unit) * 2)"
6275
+ }
6089
6276
  }, blockChildren);
6090
6277
  }
6091
6278
  return null;
@@ -6095,16 +6282,33 @@ const createAuthComponentFromFlow = (component, formValues, touchedFields, formE
6095
6282
  style: { overflowWrap: "anywhere" }
6096
6283
  });
6097
6284
  case __thunderid_browser.EmbeddedFlowComponentType.Image: {
6098
- const explicitHeight = resolve(component.height?.toString());
6099
- const explicitWidth = resolve(component.width?.toString());
6285
+ const toCSSLength = (value) => /^\d+(\.\d+)?$/.test(value) ? `${value}px` : value;
6286
+ const explicitHeight = toCSSLength(resolve(component.height?.toString()));
6287
+ const explicitWidth = toCSSLength(resolve(component.width?.toString()));
6288
+ const alt = resolve(component.alt) || resolve(component.label) || "Image";
6289
+ const resolvedSrc = resolve(component.src);
6290
+ const height = explicitHeight || (explicitWidth ? "auto" : options.inStack ? "50px" : "auto");
6291
+ const width = explicitWidth || (explicitHeight ? "auto" : options.inStack ? "50px" : "100%");
6292
+ if (!resolvedSrc) return null;
6293
+ const resolvedLogo = (0, __thunderid_browser.resolveLogoUri)(resolvedSrc, alt);
6294
+ if (resolvedLogo.kind === "emoji") return (0, vue.h)("span", {
6295
+ "aria-label": alt,
6296
+ key,
6297
+ role: "img",
6298
+ style: {
6299
+ display: "inline-block",
6300
+ fontSize: height !== "auto" ? height : "2.5em",
6301
+ lineHeight: 1
6302
+ }
6303
+ }, resolvedLogo.glyph);
6100
6304
  return (0, vue.h)("img", {
6101
- alt: resolve(component.alt) || resolve(component.label) || "Image",
6305
+ alt,
6102
6306
  key,
6103
- src: resolve(component.src),
6307
+ src: resolvedLogo.imgSrc,
6104
6308
  style: {
6105
- height: explicitHeight || (options.inStack ? "50px" : "auto"),
6309
+ height,
6106
6310
  objectFit: "contain",
6107
- width: explicitWidth || (options.inStack ? "50px" : "100%")
6311
+ width
6108
6312
  }
6109
6313
  });
6110
6314
  }
@@ -6191,7 +6395,9 @@ const resolveTranslationsInObject = (obj, t, properties = [
6191
6395
  "placeholder",
6192
6396
  "text",
6193
6397
  "title",
6194
- "subtitle"
6398
+ "subtitle",
6399
+ "alt",
6400
+ "src"
6195
6401
  ], meta) => {
6196
6402
  const resolved = { ...obj };
6197
6403
  properties.forEach((prop) => {
@@ -6413,6 +6619,10 @@ const BaseSignIn = (0, vue.defineComponent)({
6413
6619
  default: "",
6414
6620
  type: String
6415
6621
  },
6622
+ onSubmit: {
6623
+ default: void 0,
6624
+ type: Function
6625
+ },
6416
6626
  size: {
6417
6627
  default: "medium",
6418
6628
  type: String
@@ -6571,8 +6781,8 @@ const BaseSignIn = (0, vue.defineComponent)({
6571
6781
  values: formValues.value
6572
6782
  };
6573
6783
  return (0, vue.h)("div", {
6574
- class: containerClass,
6575
- ...attrs
6784
+ ...attrs,
6785
+ class: [containerClass, attrs.class].filter(Boolean).join(" ")
6576
6786
  }, slots["default"](renderProps));
6577
6787
  }
6578
6788
  if (isLoading.value && (!props.components || props.components.length === 0)) return (0, vue.h)(Card_default, {
@@ -6586,8 +6796,8 @@ const BaseSignIn = (0, vue.defineComponent)({
6586
6796
  const messages = flowMessages.value || [];
6587
6797
  const externalError = props.error;
6588
6798
  return (0, vue.h)(Card_default, {
6589
- class: containerClass,
6590
6799
  ...attrs,
6800
+ class: [containerClass, attrs.class].filter(Boolean).join(" "),
6591
6801
  variant: props.variant
6592
6802
  }, () => [(externalError || messages.length > 0) && (0, vue.h)("div", { class: [(0, __thunderid_browser.withVendorCSSClassPrefix)("signin__messages"), props.messageClassName].filter(Boolean).join(" ") }, [externalError && (0, vue.h)(Alert_default, { severity: "error" }, () => (0, vue.h)(Typography_default, { variant: "body2" }, () => externalError.message)), ...messages.map((msg, index) => (0, vue.h)(Alert_default, {
6593
6803
  key: index,
@@ -6754,6 +6964,7 @@ const SignIn = (0, vue.defineComponent)({
6754
6964
  const components = (0, vue.ref)([]);
6755
6965
  const additionalData = (0, vue.ref)({});
6756
6966
  const currentExecutionId = (0, vue.ref)(null);
6967
+ const challengeTokenRef = { current: null };
6757
6968
  const isFlowInitialized = (0, vue.ref)(false);
6758
6969
  const flowError = (0, vue.ref)(null);
6759
6970
  const isSubmitting = (0, vue.ref)(false);
@@ -6777,6 +6988,7 @@ const SignIn = (0, vue.defineComponent)({
6777
6988
  const clearFlowState = async () => {
6778
6989
  persistExecutionId(null);
6779
6990
  isFlowInitialized.value = false;
6991
+ await setChallengeToken(null);
6780
6992
  const sm = getStorageManager();
6781
6993
  if (sm) await sm.removeHybridDataParameter("authId");
6782
6994
  isTimeoutDisabled.value = false;
@@ -6822,6 +7034,18 @@ const SignIn = (0, vue.defineComponent)({
6822
7034
  isFlowInitialized.value = true;
6823
7035
  emit("error", error);
6824
7036
  };
7037
+ /**
7038
+ * Updates challengeTokenRef immediately and persists via the provider's
7039
+ * StorageManager so the token survives OAuth redirects.
7040
+ */
7041
+ const setChallengeToken = async (challengeToken) => {
7042
+ challengeTokenRef.current = challengeToken;
7043
+ try {
7044
+ const sm = getStorageManager();
7045
+ if (sm) if (challengeToken) await sm.setTemporaryDataParameter("challengeToken", challengeToken);
7046
+ else await sm.removeTemporaryDataParameter("challengeToken");
7047
+ } catch {}
7048
+ };
6825
7049
  const initializeFlow = async () => {
6826
7050
  const urlParams = getUrlParams$1();
6827
7051
  oauthCodeProcessedFlag.value = false;
@@ -6858,6 +7082,7 @@ const SignIn = (0, vue.defineComponent)({
6858
7082
  }
6859
7083
  const { executionId: normalizedExecutionId, components: normalizedComponents, additionalData: normalizedAdditionalData } = normalizeFlowResponse(response, t, { resolveTranslations: false }, flowMeta.value);
6860
7084
  if (normalizedExecutionId && normalizedComponents) {
7085
+ await setChallengeToken(response.challengeToken ?? null);
6861
7086
  persistExecutionId(normalizedExecutionId);
6862
7087
  components.value = normalizedComponents;
6863
7088
  additionalData.value = normalizedAdditionalData ?? {};
@@ -6918,6 +7143,7 @@ const SignIn = (0, vue.defineComponent)({
6918
7143
  flowError.value = null;
6919
7144
  const response = await signIn({
6920
7145
  executionId: effectiveExecutionId,
7146
+ ...challengeTokenRef.current ? { challengeToken: challengeTokenRef.current } : {},
6921
7147
  ...payload,
6922
7148
  inputs: processedInputs
6923
7149
  });
@@ -6948,6 +7174,7 @@ const SignIn = (0, vue.defineComponent)({
6948
7174
  isSubmitting.value = false;
6949
7175
  return;
6950
7176
  }
7177
+ await setChallengeToken(response.challengeToken ?? null);
6951
7178
  const { executionId: normalizedExecutionId, components: normalizedComponents, additionalData: normalizedAdditionalData } = normalizeFlowResponse(response, t, { resolveTranslations: false }, flowMeta.value);
6952
7179
  if (response.flowStatus === __thunderid_browser.EmbeddedSignInFlowStatus.Error) {
6953
7180
  clearFlowState();
@@ -6964,6 +7191,7 @@ const SignIn = (0, vue.defineComponent)({
6964
7191
  const sm = getStorageManager();
6965
7192
  if (sm) await sm.removeHybridDataParameter("authId");
6966
7193
  cleanupOAuthUrlParams();
7194
+ await setChallengeToken(null);
6967
7195
  emit("success", {
6968
7196
  redirectUrl: finalRedirectUrl,
6969
7197
  ...response.data || {}
@@ -7081,6 +7309,10 @@ const SignIn = (0, vue.defineComponent)({
7081
7309
  });
7082
7310
  (0, vue.onMounted)(async () => {
7083
7311
  const urlParams = getUrlParams$1();
7312
+ try {
7313
+ const tempData = await getStorageManager()?.getTemporaryData?.();
7314
+ if (tempData?.challengeToken) challengeTokenRef.current = tempData.challengeToken;
7315
+ } catch {}
7084
7316
  if (urlParams.authId) {
7085
7317
  const sm = getStorageManager();
7086
7318
  if (sm) await sm.setHybridDataParameter("authId", urlParams.authId);
@@ -9712,7 +9944,7 @@ const BaseInviteUser = (0, vue.defineComponent)({
9712
9944
  (0, vue.h)("div", { style: "margin-top:1rem" }, [(0, vue.h)(Typography_default, {
9713
9945
  style: "margin-bottom:0.5rem",
9714
9946
  variant: "body2"
9715
- }, () => "Invite Link"), (0, vue.h)("div", { style: "display:flex;align-items:center;gap:0.5rem;padding:0.75rem;background:var(--thunder-color-background-secondary,#f5f5f5);border-radius:4px;word-break:break-all" }, [(0, vue.h)(Typography_default, {
9947
+ }, () => "Invite Link"), (0, vue.h)("div", { style: "display:flex;align-items:center;gap:0.5rem;padding:0.75rem;background:var(--thunderid-color-background-secondary,#f5f5f5);border-radius:4px;word-break:break-all" }, [(0, vue.h)(Typography_default, {
9716
9948
  style: "flex:1",
9717
9949
  variant: "body2"
9718
9950
  }, () => inviteLink.value), (0, vue.h)(Button_default, {
@@ -9976,42 +10208,6 @@ const LanguageSwitcher = (0, vue.defineComponent)({
9976
10208
  });
9977
10209
  var LanguageSwitcher_default = LanguageSwitcher;
9978
10210
 
9979
- //#endregion
9980
- //#region src/utils/buildThemeConfigFromFlowMeta.ts
9981
- /**
9982
- * Converts a v2 `FlowMetaTheme` into a `RecursivePartial<ThemeConfig>` that
9983
- * `createTheme` can consume.
9984
- *
9985
- * Only fields explicitly present in the FlowMeta response are included so that
9986
- * `createTheme` can deep-merge them onto its base (light/dark) defaults without
9987
- * accidentally dropping sibling keys that were not returned by the server.
9988
- */
9989
- const buildThemeConfigFromFlowMeta = (flowMetaTheme, colorScheme) => {
9990
- const scheme = flowMetaTheme.colorSchemes?.[colorScheme];
9991
- const borderRadiusConfig = (0, __thunderid_browser.normalizeBorderRadius)(flowMetaTheme.shape?.borderRadius);
9992
- let colors;
9993
- if (scheme?.palette) {
9994
- colors = {};
9995
- if (scheme.palette.primary) colors.primary = scheme.palette.primary;
9996
- if (scheme.palette.secondary) colors.secondary = scheme.palette.secondary;
9997
- if (scheme.palette.text) colors.text = scheme.palette.text;
9998
- if (scheme.palette.background) {
9999
- const bg = {};
10000
- if (scheme.palette.background.default) bg.body = { main: scheme.palette.background.default };
10001
- if (scheme.palette.background.paper) bg.surface = scheme.palette.background.paper;
10002
- if (Object.keys(bg).length > 0) colors.background = bg;
10003
- }
10004
- }
10005
- return {
10006
- ...flowMetaTheme,
10007
- ...flowMetaTheme.direction ? { direction: flowMetaTheme.direction } : {},
10008
- ...borderRadiusConfig ? { borderRadius: borderRadiusConfig } : {},
10009
- ...colors && Object.keys(colors).length > 0 ? { colors } : {},
10010
- ...flowMetaTheme.typography?.fontFamily ? { typography: { fontFamily: flowMetaTheme.typography.fontFamily } } : {}
10011
- };
10012
- };
10013
- var buildThemeConfigFromFlowMeta_default = buildThemeConfigFromFlowMeta;
10014
-
10015
10211
  //#endregion
10016
10212
  //#region src/router/guard.ts
10017
10213
  const logger = createVueLogger("Guard");
@@ -10303,6 +10499,7 @@ Object.defineProperty(exports, 'detectThemeMode', {
10303
10499
  return __thunderid_browser.detectThemeMode;
10304
10500
  }
10305
10501
  });
10502
+ exports.extractErrorMessage = extractErrorMessage;
10306
10503
  Object.defineProperty(exports, 'getActiveTheme', {
10307
10504
  enumerable: true,
10308
10505
  get: function () {
@@ -10311,6 +10508,8 @@ Object.defineProperty(exports, 'getActiveTheme', {
10311
10508
  });
10312
10509
  exports.getAuthComponentHeadings = getAuthComponentHeadings_default;
10313
10510
  exports.getUsersMeMeta = getUsersMeMeta_default;
10511
+ exports.handlePasskeyAuthentication = handlePasskeyAuthentication;
10512
+ exports.handlePasskeyRegistration = handlePasskeyRegistration;
10314
10513
  Object.defineProperty(exports, 'handleWebAuthnAuthentication', {
10315
10514
  enumerable: true,
10316
10515
  get: function () {
@@ -10336,6 +10535,7 @@ Object.defineProperty(exports, 'navigate', {
10336
10535
  return __thunderid_browser.navigate;
10337
10536
  }
10338
10537
  });
10538
+ exports.normalizeFlowResponse = normalizeFlowResponse;
10339
10539
  exports.useFlow = useFlow_default;
10340
10540
  exports.useFlowMeta = useFlowMeta_default;
10341
10541
  exports.useI18n = useI18n_default;