@descope/web-components-ui 1.0.50 → 1.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -464,7 +464,7 @@ const compose =
464
464
  (val) =>
465
465
  fns.reduceRight((res, fn) => fn(res), val);
466
466
 
467
- const componentName$b = getComponentName('button');
467
+ const componentName$c = getComponentName('button');
468
468
 
469
469
  const editorOverrides = `vaadin-button::part(label) { pointer-events: none; }`;
470
470
  const resetStyles = `
@@ -518,7 +518,7 @@ const Button = compose(
518
518
  style: () =>
519
519
  `${resetStyles} ${editorOverrides} ${iconStyles} ${loadingIndicatorStyles}`,
520
520
  excludeAttrsSync: ['tabindex'],
521
- componentName: componentName$b
521
+ componentName: componentName$c
522
522
  })
523
523
  );
524
524
 
@@ -551,7 +551,7 @@ const loadingIndicatorStyles = `
551
551
  }
552
552
  `;
553
553
 
554
- customElements.define(componentName$b, Button);
554
+ customElements.define(componentName$c, Button);
555
555
 
556
556
  const selectors$1 = {
557
557
  label: '::part(label)',
@@ -588,7 +588,7 @@ var textFieldMappings = {
588
588
  placeholderColor: { selector: selectors$1.placeholder, property: 'color' }
589
589
  };
590
590
 
591
- const componentName$a = getComponentName('text-field');
591
+ const componentName$b = getComponentName('text-field');
592
592
 
593
593
  let overrides$5 = ``;
594
594
 
@@ -605,7 +605,7 @@ const TextField = compose(
605
605
  wrappedEleName: 'vaadin-text-field',
606
606
  style: () => overrides$5,
607
607
  excludeAttrsSync: ['tabindex'],
608
- componentName: componentName$a
608
+ componentName: componentName$b
609
609
  })
610
610
  );
611
611
 
@@ -650,11 +650,11 @@ overrides$5 = `
650
650
  }
651
651
  `;
652
652
 
653
- customElements.define(componentName$a, TextField);
653
+ customElements.define(componentName$b, TextField);
654
654
 
655
655
  const template = document.createElement('template');
656
656
 
657
- const componentName$9 = getComponentName('combo');
657
+ const componentName$a = getComponentName('combo');
658
658
 
659
659
  template.innerHTML = `
660
660
  <descope-button></descope-button>
@@ -671,9 +671,9 @@ class Combo extends HTMLElement {
671
671
  }
672
672
  }
673
673
 
674
- customElements.define(componentName$9, Combo);
674
+ customElements.define(componentName$a, Combo);
675
675
 
676
- const componentName$8 = getComponentName('number-field');
676
+ const componentName$9 = getComponentName('number-field');
677
677
 
678
678
  let overrides$4 = ``;
679
679
 
@@ -692,7 +692,7 @@ const NumberField = compose(
692
692
  wrappedEleName: 'vaadin-number-field',
693
693
  style: () => overrides$4,
694
694
  excludeAttrsSync: ['tabindex'],
695
- componentName: componentName$8
695
+ componentName: componentName$9
696
696
  })
697
697
  );
698
698
 
@@ -736,9 +736,9 @@ overrides$4 = `
736
736
  }
737
737
  `;
738
738
 
739
- customElements.define(componentName$8, NumberField);
739
+ customElements.define(componentName$9, NumberField);
740
740
 
741
- const componentName$7 = getComponentName('email-field');
741
+ const componentName$8 = getComponentName('email-field');
742
742
 
743
743
  let overrides$3 = ``;
744
744
 
@@ -757,7 +757,7 @@ const EmailField = compose(
757
757
  wrappedEleName: 'vaadin-email-field',
758
758
  style: () => overrides$3,
759
759
  excludeAttrsSync: ['tabindex'],
760
- componentName: componentName$7
760
+ componentName: componentName$8
761
761
  })
762
762
  );
763
763
 
@@ -801,9 +801,9 @@ overrides$3 = `
801
801
  }
802
802
  `;
803
803
 
804
- customElements.define(componentName$7, EmailField);
804
+ customElements.define(componentName$8, EmailField);
805
805
 
806
- const componentName$6 = getComponentName('password-field');
806
+ const componentName$7 = getComponentName('password-field');
807
807
 
808
808
  let overrides$2 = ``;
809
809
 
@@ -829,7 +829,7 @@ const PasswordField = compose(
829
829
  wrappedEleName: 'vaadin-password-field',
830
830
  style: () => overrides$2,
831
831
  excludeAttrsSync: ['tabindex'],
832
- componentName: componentName$6
832
+ componentName: componentName$7
833
833
  })
834
834
  );
835
835
 
@@ -873,9 +873,9 @@ overrides$2 = `
873
873
  }
874
874
  `;
875
875
 
876
- customElements.define(componentName$6, PasswordField);
876
+ customElements.define(componentName$7, PasswordField);
877
877
 
878
- const componentName$5 = getComponentName('text-area');
878
+ const componentName$6 = getComponentName('text-area');
879
879
 
880
880
  const selectors = {
881
881
  label: '::part(label)',
@@ -910,7 +910,7 @@ const TextArea = compose(
910
910
  wrappedEleName: 'vaadin-text-area',
911
911
  style: () => overrides$1,
912
912
  excludeAttrsSync: ['tabindex'],
913
- componentName: componentName$5
913
+ componentName: componentName$6
914
914
  })
915
915
  );
916
916
 
@@ -935,29 +935,29 @@ overrides$1 = `
935
935
  }
936
936
  `;
937
937
 
938
- customElements.define(componentName$5, TextArea);
938
+ customElements.define(componentName$6, TextArea);
939
939
 
940
- const componentName$4 = getComponentName('date-picker');
940
+ const componentName$5 = getComponentName('date-picker');
941
941
 
942
942
  const DatePicker = compose(
943
943
  draggableMixin,
944
944
  componentNameValidationMixin
945
945
  )(
946
946
  createProxy({
947
- componentName: componentName$4,
947
+ componentName: componentName$5,
948
948
  slots: ['prefix', 'suffix'],
949
949
  wrappedEleName: 'vaadin-date-picker',
950
950
  style: ``
951
951
  })
952
952
  );
953
953
 
954
- customElements.define(componentName$4, DatePicker);
954
+ customElements.define(componentName$5, DatePicker);
955
955
 
956
- const componentName$3 = getComponentName('container');
956
+ const componentName$4 = getComponentName('container');
957
957
 
958
958
  class RawContainer extends HTMLElement {
959
959
  static get componentName() {
960
- return componentName$3;
960
+ return componentName$4;
961
961
  }
962
962
  constructor() {
963
963
  super();
@@ -1007,7 +1007,45 @@ const Container = compose(
1007
1007
  componentNameValidationMixin
1008
1008
  )(RawContainer);
1009
1009
 
1010
- customElements.define(componentName$3, Container);
1010
+ customElements.define(componentName$4, Container);
1011
+
1012
+ const componentName$3 = getComponentName('text');
1013
+
1014
+ class RawText extends HTMLElement {
1015
+ static get componentName() {
1016
+ return componentName$3;
1017
+ }
1018
+ constructor() {
1019
+ super();
1020
+ const template = document.createElement('template');
1021
+ template.innerHTML = `<slot></slot>`;
1022
+
1023
+ this.attachShadow({ mode: 'open' });
1024
+ this.shadowRoot.appendChild(template.content.cloneNode(true));
1025
+
1026
+ this.baseSelector = ':host > slot';
1027
+ }
1028
+ }
1029
+
1030
+ const Text = compose(
1031
+ createStyleMixin({
1032
+ mappings: {
1033
+ fontFamily: {},
1034
+ lineHeight: {},
1035
+ fontStyle: {},
1036
+ fontSize: {},
1037
+ fontWeight: {},
1038
+ width: {},
1039
+ color: {},
1040
+ textAlign: matchHostStyle(),
1041
+ display: matchHostStyle()
1042
+ }
1043
+ }),
1044
+ draggableMixin,
1045
+ componentNameValidationMixin
1046
+ )(RawText);
1047
+
1048
+ customElements.define(componentName$3, Text);
1011
1049
 
1012
1050
  const getVarName = (path) => getCssVarName(DESCOPE_PREFIX, ...path);
1013
1051
 
@@ -1156,21 +1194,47 @@ const colors = genColors({
1156
1194
  error: 'red'
1157
1195
  });
1158
1196
 
1197
+ const fonts = {
1198
+ font1: ['Roboto', 'sans-serif'],
1199
+ font2: ['Oswald', 'serif']
1200
+ };
1201
+ const fontsRef = getThemeRefs({ fonts }).fonts;
1202
+
1159
1203
  const typography = {
1160
1204
  h1: {
1161
- font: ['Courier New', 'Arial', 'sans-serif'],
1162
- weight: '700',
1205
+ font: fontsRef.font1,
1206
+ weight: '900',
1163
1207
  size: '48px'
1164
1208
  },
1165
1209
  h2: {
1166
- font: ['Courier New', 'sans-serif'],
1167
- weight: '500',
1210
+ font: fontsRef.font1,
1211
+ weight: '800',
1168
1212
  size: '38px'
1169
1213
  },
1170
1214
  h3: {
1171
- font: ['Courier New', 'sans-serif'],
1172
- weight: '300',
1215
+ font: fontsRef.font1,
1216
+ weight: '600',
1173
1217
  size: '28px'
1218
+ },
1219
+ subtitle1: {
1220
+ font: fontsRef.font2,
1221
+ weight: '500',
1222
+ size: '22px'
1223
+ },
1224
+ subtitle2: {
1225
+ font: fontsRef.font2,
1226
+ weight: '400',
1227
+ size: '20px'
1228
+ },
1229
+ body1: {
1230
+ font: fontsRef.font1,
1231
+ weight: '300',
1232
+ size: '16px'
1233
+ },
1234
+ body2: {
1235
+ font: fontsRef.font1,
1236
+ weight: '200',
1237
+ size: '14px'
1174
1238
  }
1175
1239
  };
1176
1240
 
@@ -1195,20 +1259,20 @@ const radius = {
1195
1259
  };
1196
1260
 
1197
1261
  const shadow = {
1198
- wide: {
1199
- sm: '0 2px 3px -0.5px',
1200
- md: '0 4px 6px -1px',
1201
- lg: '0 10px 15px -3px',
1202
- xl: '0 20px 25px -5px',
1203
- '2xl': '0 25px 50px -12px',
1204
- },
1205
- narrow: {
1206
- sm: '0 1px 2px -1px',
1207
- md: '0 2px 4px -2px',
1208
- lg: '0 4px 6px -4px',
1209
- xl: '0 8px 10px -6px',
1210
- '2xl': '0 16px 16px -8px',
1211
- }
1262
+ wide: {
1263
+ sm: '0 2px 3px -0.5px',
1264
+ md: '0 4px 6px -1px',
1265
+ lg: '0 10px 15px -3px',
1266
+ xl: '0 20px 25px -5px',
1267
+ '2xl': '0 25px 50px -12px'
1268
+ },
1269
+ narrow: {
1270
+ sm: '0 1px 2px -1px',
1271
+ md: '0 2px 4px -2px',
1272
+ lg: '0 4px 6px -4px',
1273
+ xl: '0 8px 10px -6px',
1274
+ '2xl': '0 16px 16px -8px'
1275
+ }
1212
1276
  };
1213
1277
 
1214
1278
  var globals = {
@@ -1217,153 +1281,154 @@ var globals = {
1217
1281
  spacing,
1218
1282
  border,
1219
1283
  radius,
1220
- shadow
1284
+ shadow,
1285
+ fonts
1221
1286
  };
1222
1287
 
1223
- const globalRefs$3 = getThemeRefs(globals);
1224
- const vars$7 = Button.cssVarList;
1288
+ const globalRefs$4 = getThemeRefs(globals);
1289
+ const vars$8 = Button.cssVarList;
1225
1290
 
1226
1291
  const mode = {
1227
- primary: globalRefs$3.colors.primary,
1228
- secondary: globalRefs$3.colors.secondary,
1229
- success: globalRefs$3.colors.success,
1230
- error: globalRefs$3.colors.error,
1231
- surface: globalRefs$3.colors.surface
1292
+ primary: globalRefs$4.colors.primary,
1293
+ secondary: globalRefs$4.colors.secondary,
1294
+ success: globalRefs$4.colors.success,
1295
+ error: globalRefs$4.colors.error,
1296
+ surface: globalRefs$4.colors.surface
1232
1297
  };
1233
1298
 
1234
- const [helperTheme$1, helperRefs$1] = createHelperVars({ mode }, componentName$b);
1299
+ const [helperTheme$1, helperRefs$1] = createHelperVars({ mode }, componentName$c);
1235
1300
 
1236
1301
  const button = {
1237
1302
  ...helperTheme$1,
1238
1303
 
1239
1304
  size: {
1240
1305
  xs: {
1241
- [vars$7.height]: '10px',
1242
- [vars$7.fontSize]: '10px',
1243
- [vars$7.padding]: `0 ${globalRefs$3.spacing.xs}`
1306
+ [vars$8.height]: '10px',
1307
+ [vars$8.fontSize]: '10px',
1308
+ [vars$8.padding]: `0 ${globalRefs$4.spacing.xs}`
1244
1309
  },
1245
1310
  sm: {
1246
- [vars$7.height]: '20px',
1247
- [vars$7.fontSize]: '10px',
1248
- [vars$7.padding]: `0 ${globalRefs$3.spacing.sm}`
1311
+ [vars$8.height]: '20px',
1312
+ [vars$8.fontSize]: '10px',
1313
+ [vars$8.padding]: `0 ${globalRefs$4.spacing.sm}`
1249
1314
  },
1250
1315
  md: {
1251
- [vars$7.height]: '30px',
1252
- [vars$7.fontSize]: '14px',
1253
- [vars$7.padding]: `0 ${globalRefs$3.spacing.md}`
1316
+ [vars$8.height]: '30px',
1317
+ [vars$8.fontSize]: '14px',
1318
+ [vars$8.padding]: `0 ${globalRefs$4.spacing.md}`
1254
1319
  },
1255
1320
  lg: {
1256
- [vars$7.height]: '40px',
1257
- [vars$7.fontSize]: '20px',
1258
- [vars$7.padding]: `0 ${globalRefs$3.spacing.lg}`
1321
+ [vars$8.height]: '40px',
1322
+ [vars$8.fontSize]: '20px',
1323
+ [vars$8.padding]: `0 ${globalRefs$4.spacing.lg}`
1259
1324
  },
1260
1325
  xl: {
1261
- [vars$7.height]: '50px',
1262
- [vars$7.fontSize]: '25px',
1263
- [vars$7.padding]: `0 ${globalRefs$3.spacing.xl}`
1326
+ [vars$8.height]: '50px',
1327
+ [vars$8.fontSize]: '25px',
1328
+ [vars$8.padding]: `0 ${globalRefs$4.spacing.xl}`
1264
1329
  }
1265
1330
  },
1266
1331
 
1267
- [vars$7.borderRadius]: globalRefs$3.radius.lg,
1268
- [vars$7.cursor]: 'pointer',
1269
- [vars$7.borderWidth]: '2px',
1270
- [vars$7.borderStyle]: 'solid',
1271
- [vars$7.borderColor]: 'transparent',
1332
+ [vars$8.borderRadius]: globalRefs$4.radius.lg,
1333
+ [vars$8.cursor]: 'pointer',
1334
+ [vars$8.borderWidth]: '2px',
1335
+ [vars$8.borderStyle]: 'solid',
1336
+ [vars$8.borderColor]: 'transparent',
1272
1337
 
1273
1338
  _fullWidth: {
1274
- [vars$7.width]: '100%'
1339
+ [vars$8.width]: '100%'
1275
1340
  },
1276
1341
  _loading: {
1277
- [vars$7.cursor]: 'wait'
1342
+ [vars$8.cursor]: 'wait'
1278
1343
  },
1279
1344
 
1280
1345
  variant: {
1281
1346
  contained: {
1282
- [vars$7.color]: helperRefs$1.contrast,
1283
- [vars$7.backgroundColor]: helperRefs$1.main,
1347
+ [vars$8.color]: helperRefs$1.contrast,
1348
+ [vars$8.backgroundColor]: helperRefs$1.main,
1284
1349
  _hover: {
1285
- [vars$7.backgroundColor]: helperRefs$1.dark
1350
+ [vars$8.backgroundColor]: helperRefs$1.dark
1286
1351
  },
1287
1352
  _loading: {
1288
- [vars$7.backgroundColor]: helperRefs$1.main
1353
+ [vars$8.backgroundColor]: helperRefs$1.main
1289
1354
  }
1290
1355
  },
1291
1356
  outline: {
1292
- [vars$7.color]: helperRefs$1.main,
1293
- [vars$7.borderColor]: helperRefs$1.main,
1357
+ [vars$8.color]: helperRefs$1.main,
1358
+ [vars$8.borderColor]: helperRefs$1.main,
1294
1359
  _hover: {
1295
- [vars$7.color]: helperRefs$1.dark,
1296
- [vars$7.borderColor]: helperRefs$1.dark,
1360
+ [vars$8.color]: helperRefs$1.dark,
1361
+ [vars$8.borderColor]: helperRefs$1.dark,
1297
1362
  _error: {
1298
- [vars$7.color]: helperRefs$1.error
1363
+ [vars$8.color]: helperRefs$1.error
1299
1364
  }
1300
1365
  }
1301
1366
  },
1302
1367
  link: {
1303
- [vars$7.color]: helperRefs$1.main,
1304
- [vars$7.padding]: 0,
1305
- [vars$7.margin]: 0,
1306
- [vars$7.lineHeight]: helperRefs$1.height,
1307
- [vars$7.borderRadius]: 0,
1368
+ [vars$8.color]: helperRefs$1.main,
1369
+ [vars$8.padding]: 0,
1370
+ [vars$8.margin]: 0,
1371
+ [vars$8.lineHeight]: helperRefs$1.height,
1372
+ [vars$8.borderRadius]: 0,
1308
1373
  _hover: {
1309
- [vars$7.color]: helperRefs$1.main,
1310
- [vars$7.textDecoration]: 'underline'
1374
+ [vars$8.color]: helperRefs$1.main,
1375
+ [vars$8.textDecoration]: 'underline'
1311
1376
  }
1312
1377
  }
1313
1378
  }
1314
1379
  };
1315
1380
 
1316
- const globalRefs$2 = getThemeRefs(globals);
1381
+ const globalRefs$3 = getThemeRefs(globals);
1317
1382
 
1318
- const vars$6 = TextField.cssVarList;
1383
+ const vars$7 = TextField.cssVarList;
1319
1384
 
1320
1385
  const textField = (vars) => ({
1321
1386
  size: {
1322
1387
  xs: {
1323
1388
  [vars.height]: '14px',
1324
1389
  [vars.fontSize]: '8px',
1325
- [vars.padding]: `0 ${globalRefs$2.spacing.xs}`
1390
+ [vars.padding]: `0 ${globalRefs$3.spacing.xs}`
1326
1391
  },
1327
1392
  sm: {
1328
1393
  [vars.height]: '20px',
1329
1394
  [vars.fontSize]: '10px',
1330
- [vars.padding]: `0 ${globalRefs$2.spacing.sm}`
1395
+ [vars.padding]: `0 ${globalRefs$3.spacing.sm}`
1331
1396
  },
1332
1397
  md: {
1333
1398
  [vars.height]: '30px',
1334
1399
  [vars.fontSize]: '14px',
1335
- [vars.padding]: `0 ${globalRefs$2.spacing.md}`
1400
+ [vars.padding]: `0 ${globalRefs$3.spacing.md}`
1336
1401
  },
1337
1402
  lg: {
1338
1403
  [vars.height]: '40px',
1339
1404
  [vars.fontSize]: '16px',
1340
- [vars.padding]: `0 ${globalRefs$2.spacing.lg}`
1405
+ [vars.padding]: `0 ${globalRefs$3.spacing.lg}`
1341
1406
  },
1342
1407
  xl: {
1343
1408
  [vars.height]: '50px',
1344
1409
  [vars.fontSize]: '25px',
1345
- [vars.padding]: `0 ${globalRefs$2.spacing.xl}`
1410
+ [vars.padding]: `0 ${globalRefs$3.spacing.xl}`
1346
1411
  }
1347
1412
  },
1348
1413
 
1349
- [vars.color]: globalRefs$2.colors.surface.contrast,
1350
- [vars.placeholderColor]: globalRefs$2.colors.surface.contrast,
1414
+ [vars.color]: globalRefs$3.colors.surface.contrast,
1415
+ [vars.placeholderColor]: globalRefs$3.colors.surface.contrast,
1351
1416
 
1352
- [vars.backgroundColor]: globalRefs$2.colors.surface.light,
1417
+ [vars.backgroundColor]: globalRefs$3.colors.surface.light,
1353
1418
 
1354
1419
  [vars.borderWidth]: '1px',
1355
1420
  [vars.borderStyle]: 'solid',
1356
1421
  [vars.borderColor]: 'transparent',
1357
- [vars.borderRadius]: globalRefs$2.radius.sm,
1422
+ [vars.borderRadius]: globalRefs$3.radius.sm,
1358
1423
 
1359
1424
  _borderOffset: {
1360
1425
  [vars.outlineOffset]: '2px'
1361
1426
  },
1362
1427
 
1363
1428
  _disabled: {
1364
- [vars.color]: globalRefs$2.colors.surface.dark,
1365
- [vars.placeholderColor]: globalRefs$2.colors.surface.light,
1366
- [vars.backgroundColor]: globalRefs$2.colors.surface.main
1429
+ [vars.color]: globalRefs$3.colors.surface.dark,
1430
+ [vars.placeholderColor]: globalRefs$3.colors.surface.light,
1431
+ [vars.backgroundColor]: globalRefs$3.colors.surface.main
1367
1432
  },
1368
1433
 
1369
1434
  _fullWidth: {
@@ -1371,27 +1436,27 @@ const textField = (vars) => ({
1371
1436
  },
1372
1437
 
1373
1438
  _focused: {
1374
- [vars.outline]: `2px solid ${globalRefs$2.colors.surface.main}`
1439
+ [vars.outline]: `2px solid ${globalRefs$3.colors.surface.main}`
1375
1440
  },
1376
1441
 
1377
1442
  _bordered: {
1378
- [vars.borderColor]: globalRefs$2.colors.surface.main
1443
+ [vars.borderColor]: globalRefs$3.colors.surface.main
1379
1444
  },
1380
1445
 
1381
1446
  _hasErrorMessage: {
1382
- [vars.borderColor]: globalRefs$2.colors.error.main,
1383
- [vars.color]: globalRefs$2.colors.error.main,
1384
- [vars.placeholderColor]: globalRefs$2.colors.error.light
1447
+ [vars.borderColor]: globalRefs$3.colors.error.main,
1448
+ [vars.color]: globalRefs$3.colors.error.main,
1449
+ [vars.placeholderColor]: globalRefs$3.colors.error.light
1385
1450
  }
1386
1451
  });
1387
1452
 
1388
- var textField$1 = textField(vars$6);
1453
+ var textField$1 = textField(vars$7);
1389
1454
 
1390
- const vars$5 = PasswordField.cssVarList;
1455
+ const vars$6 = PasswordField.cssVarList;
1391
1456
 
1392
1457
  const passwordField = {
1393
- ...textField(vars$5),
1394
- [vars$5.revealCursor]: 'pointer'
1458
+ ...textField(vars$6),
1459
+ [vars$6.revealCursor]: 'pointer'
1395
1460
  };
1396
1461
 
1397
1462
  const numberField = {
@@ -1402,41 +1467,41 @@ const emailField = {
1402
1467
  ...textField(EmailField.cssVarList)
1403
1468
  };
1404
1469
 
1405
- const globalRefs$1 = getThemeRefs(globals);
1406
- const vars$4 = TextArea.cssVarList;
1470
+ const globalRefs$2 = getThemeRefs(globals);
1471
+ const vars$5 = TextArea.cssVarList;
1407
1472
 
1408
1473
  const textArea = {
1409
- [vars$4.color]: globalRefs$1.colors.primary.main,
1410
- [vars$4.backgroundColor]: globalRefs$1.colors.surface.light,
1411
- [vars$4.resize]: 'vertical',
1474
+ [vars$5.color]: globalRefs$2.colors.primary.main,
1475
+ [vars$5.backgroundColor]: globalRefs$2.colors.surface.light,
1476
+ [vars$5.resize]: 'vertical',
1412
1477
 
1413
- [vars$4.borderRadius]: globalRefs$1.radius.sm,
1414
- [vars$4.borderWidth]: '1px',
1415
- [vars$4.borderStyle]: 'solid',
1416
- [vars$4.borderColor]: 'transparent',
1478
+ [vars$5.borderRadius]: globalRefs$2.radius.sm,
1479
+ [vars$5.borderWidth]: '1px',
1480
+ [vars$5.borderStyle]: 'solid',
1481
+ [vars$5.borderColor]: 'transparent',
1417
1482
 
1418
1483
  _borderOffset: {
1419
- [vars$4.outlineOffset]: '2px'
1484
+ [vars$5.outlineOffset]: '2px'
1420
1485
  },
1421
1486
 
1422
1487
  _bordered: {
1423
- [vars$4.borderColor]: globalRefs$1.colors.surface.main
1488
+ [vars$5.borderColor]: globalRefs$2.colors.surface.main
1424
1489
  },
1425
1490
 
1426
1491
  _focused: {
1427
- [vars$4.outline]: `2px solid ${globalRefs$1.colors.surface.main}`
1492
+ [vars$5.outline]: `2px solid ${globalRefs$2.colors.surface.main}`
1428
1493
  },
1429
1494
 
1430
1495
  _fullWidth: {
1431
- [vars$4.width]: '100%'
1496
+ [vars$5.width]: '100%'
1432
1497
  },
1433
1498
 
1434
1499
  _disabled: {
1435
- [vars$4.cursor]: 'not-allowed'
1500
+ [vars$5.cursor]: 'not-allowed'
1436
1501
  },
1437
1502
 
1438
1503
  _invalid: {
1439
- [vars$4.outline]: `2px solid ${globalRefs$1.colors.error.main}`
1504
+ [vars$5.outline]: `2px solid ${globalRefs$2.colors.error.main}`
1440
1505
  }
1441
1506
  };
1442
1507
 
@@ -1466,10 +1531,10 @@ const Checkbox = compose(
1466
1531
  })
1467
1532
  );
1468
1533
 
1469
- const vars$3 = Checkbox.cssVarList;
1534
+ const vars$4 = Checkbox.cssVarList;
1470
1535
 
1471
1536
  const checkbox = {
1472
- [vars$3.cursor]: 'pointer'
1537
+ [vars$4.cursor]: 'pointer'
1473
1538
  };
1474
1539
 
1475
1540
  const componentName$1 = getComponentName('switch-toggle');
@@ -1546,16 +1611,16 @@ overrides = `
1546
1611
  }
1547
1612
  `;
1548
1613
 
1549
- const vars$2 = SwitchToggle.cssVarList;
1614
+ const vars$3 = SwitchToggle.cssVarList;
1550
1615
 
1551
1616
  const swtichToggle = {
1552
- [vars$2.width]: '70px',
1553
- [vars$2.cursor]: [{}, { selector: '> label' }]
1617
+ [vars$3.width]: '70px',
1618
+ [vars$3.cursor]: [{}, { selector: '> label' }]
1554
1619
  };
1555
1620
 
1556
- const globalRefs = getThemeRefs(globals);
1621
+ const globalRefs$1 = getThemeRefs(globals);
1557
1622
 
1558
- const vars$1 = Container.cssVarList;
1623
+ const vars$2 = Container.cssVarList;
1559
1624
 
1560
1625
  const verticalAlignment = {
1561
1626
  start: { verticalAlignment: 'start' },
@@ -1578,31 +1643,31 @@ const [helperTheme, helperRefs, helperVars] =
1578
1643
 
1579
1644
  const container = {
1580
1645
  ...helperTheme,
1581
- [vars$1.display]: 'flex',
1646
+ [vars$2.display]: 'flex',
1582
1647
  verticalPadding: {
1583
- sm: { [vars$1.verticalPadding]: '5px' },
1584
- md: { [vars$1.verticalPadding]: '10px' },
1585
- lg: { [vars$1.verticalPadding]: '20px' },
1648
+ sm: { [vars$2.verticalPadding]: '5px' },
1649
+ md: { [vars$2.verticalPadding]: '10px' },
1650
+ lg: { [vars$2.verticalPadding]: '20px' },
1586
1651
  },
1587
1652
  horizontalPadding: {
1588
- sm: { [vars$1.horizontalPadding]: '5px' },
1589
- md: { [vars$1.horizontalPadding]: '10px' },
1590
- lg: { [vars$1.horizontalPadding]: '20px' },
1653
+ sm: { [vars$2.horizontalPadding]: '5px' },
1654
+ md: { [vars$2.horizontalPadding]: '10px' },
1655
+ lg: { [vars$2.horizontalPadding]: '20px' },
1591
1656
  },
1592
1657
  direction: {
1593
1658
  row: {
1594
- [vars$1.flexDirection]: 'row',
1595
- [vars$1.alignItems]: helperRefs.verticalAlignment,
1596
- [vars$1.justifyContent]: helperRefs.horizontalAlignment,
1659
+ [vars$2.flexDirection]: 'row',
1660
+ [vars$2.alignItems]: helperRefs.verticalAlignment,
1661
+ [vars$2.justifyContent]: helperRefs.horizontalAlignment,
1597
1662
  horizontalAlignment: {
1598
1663
  spaceBetween: { [helperVars.horizontalAlignment]: 'space-between' },
1599
1664
  }
1600
1665
  },
1601
1666
 
1602
1667
  column: {
1603
- [vars$1.flexDirection]: 'column',
1604
- [vars$1.alignItems]: helperRefs.horizontalAlignment,
1605
- [vars$1.justifyContent]: helperRefs.verticalAlignment,
1668
+ [vars$2.flexDirection]: 'column',
1669
+ [vars$2.alignItems]: helperRefs.horizontalAlignment,
1670
+ [vars$2.justifyContent]: helperRefs.verticalAlignment,
1606
1671
  verticalAlignment: {
1607
1672
  spaceBetween: { [helperVars.verticalAlignment]: 'space-between' }
1608
1673
  }
@@ -1611,44 +1676,44 @@ const container = {
1611
1676
 
1612
1677
  spaceBetween: {
1613
1678
  sm: {
1614
- [vars$1.gap]: '10px'
1679
+ [vars$2.gap]: '10px'
1615
1680
  },
1616
1681
  md: {
1617
- [vars$1.gap]: '20px'
1682
+ [vars$2.gap]: '20px'
1618
1683
  },
1619
1684
  lg: {
1620
- [vars$1.gap]: '30px'
1685
+ [vars$2.gap]: '30px'
1621
1686
  }
1622
1687
  },
1623
1688
 
1624
1689
  shadow: {
1625
1690
  sm: {
1626
- [vars$1.boxShadow]: `${globalRefs.shadow.wide.sm} ${helperRefs.shadowColor}, ${globalRefs.shadow.narrow.sm} ${helperRefs.shadowColor}`
1691
+ [vars$2.boxShadow]: `${globalRefs$1.shadow.wide.sm} ${helperRefs.shadowColor}, ${globalRefs$1.shadow.narrow.sm} ${helperRefs.shadowColor}`
1627
1692
  },
1628
1693
  md: {
1629
- [vars$1.boxShadow]: `${globalRefs.shadow.wide.md} ${helperRefs.shadowColor}, ${globalRefs.shadow.narrow.md} ${helperRefs.shadowColor}`
1694
+ [vars$2.boxShadow]: `${globalRefs$1.shadow.wide.md} ${helperRefs.shadowColor}, ${globalRefs$1.shadow.narrow.md} ${helperRefs.shadowColor}`
1630
1695
  },
1631
1696
  lg: {
1632
- [vars$1.boxShadow]: `${globalRefs.shadow.wide.lg} ${helperRefs.shadowColor}, ${globalRefs.shadow.narrow.lg} ${helperRefs.shadowColor}`
1697
+ [vars$2.boxShadow]: `${globalRefs$1.shadow.wide.lg} ${helperRefs.shadowColor}, ${globalRefs$1.shadow.narrow.lg} ${helperRefs.shadowColor}`
1633
1698
  },
1634
1699
  xl: {
1635
- [vars$1.boxShadow]: `${globalRefs.shadow.wide.xl} ${helperRefs.shadowColor}, ${globalRefs.shadow.narrow.xl} ${helperRefs.shadowColor}`
1700
+ [vars$2.boxShadow]: `${globalRefs$1.shadow.wide.xl} ${helperRefs.shadowColor}, ${globalRefs$1.shadow.narrow.xl} ${helperRefs.shadowColor}`
1636
1701
  },
1637
1702
  '2xl': {
1638
1703
  [helperVars.shadowColor]: '#00000050',
1639
- [vars$1.boxShadow]: `${globalRefs.shadow.wide['2xl']} ${helperRefs.shadowColor}`
1704
+ [vars$2.boxShadow]: `${globalRefs$1.shadow.wide['2xl']} ${helperRefs.shadowColor}`
1640
1705
  },
1641
1706
  },
1642
1707
 
1643
1708
  borderRadius: {
1644
1709
  sm: {
1645
- [vars$1.borderRadius]: globalRefs.radius.sm
1710
+ [vars$2.borderRadius]: globalRefs$1.radius.sm
1646
1711
  },
1647
1712
  md: {
1648
- [vars$1.borderRadius]: globalRefs.radius.md
1713
+ [vars$2.borderRadius]: globalRefs$1.radius.md
1649
1714
  },
1650
1715
  lg: {
1651
- [vars$1.borderRadius]: globalRefs.radius.lg
1716
+ [vars$2.borderRadius]: globalRefs$1.radius.lg
1652
1717
  },
1653
1718
  }
1654
1719
  };
@@ -1701,10 +1766,84 @@ style = `
1701
1766
  }
1702
1767
  `;
1703
1768
 
1704
- const vars = Logo.cssVarList;
1769
+ const vars$1 = Logo.cssVarList;
1705
1770
 
1706
1771
  const logo = {
1707
- [vars.fallbackUrl]: 'url(https://content.app.descope.com/assets/flows/noLogoPlaceholder.svg)'
1772
+ [vars$1.fallbackUrl]: 'url(https://content.app.descope.com/assets/flows/noLogoPlaceholder.svg)'
1773
+ };
1774
+
1775
+ const globalRefs = getThemeRefs(globals);
1776
+
1777
+ const vars = Text.cssVarList;
1778
+
1779
+ const text = {
1780
+ [vars.lineHeight]: '1em',
1781
+ [vars.display]: 'inline-block',
1782
+ [vars.textAlign]: 'left',
1783
+ [vars.color]: globalRefs.colors.surface.dark,
1784
+ variant: {
1785
+ h1: {
1786
+ [vars.fontSize]: globalRefs.typography.h1.size,
1787
+ [vars.fontWeight]: globalRefs.typography.h1.weight,
1788
+ [vars.fontFamily]: globalRefs.typography.h1.font
1789
+ },
1790
+ h2: {
1791
+ [vars.fontSize]: globalRefs.typography.h2.size,
1792
+ [vars.fontWeight]: globalRefs.typography.h2.weight,
1793
+ [vars.fontFamily]: globalRefs.typography.h2.font
1794
+ },
1795
+ h3: {
1796
+ [vars.fontSize]: globalRefs.typography.h3.size,
1797
+ [vars.fontWeight]: globalRefs.typography.h3.weight,
1798
+ [vars.fontFamily]: globalRefs.typography.h3.font
1799
+ },
1800
+ subtitle1: {
1801
+ [vars.fontSize]: globalRefs.typography.subtitle1.size,
1802
+ [vars.fontWeight]: globalRefs.typography.subtitle1.weight,
1803
+ [vars.fontFamily]: globalRefs.typography.subtitle1.font
1804
+ },
1805
+ subtitle2: {
1806
+ [vars.fontSize]: globalRefs.typography.subtitle2.size,
1807
+ [vars.fontWeight]: globalRefs.typography.subtitle2.weight,
1808
+ [vars.fontFamily]: globalRefs.typography.subtitle2.font
1809
+ },
1810
+ body1: {
1811
+ [vars.fontSize]: globalRefs.typography.body1.size,
1812
+ [vars.fontWeight]: globalRefs.typography.body1.weight,
1813
+ [vars.fontFamily]: globalRefs.typography.body1.font
1814
+ },
1815
+ body2: {
1816
+ [vars.fontSize]: globalRefs.typography.body2.size,
1817
+ [vars.fontWeight]: globalRefs.typography.body2.weight,
1818
+ [vars.fontFamily]: globalRefs.typography.body2.font
1819
+ }
1820
+ },
1821
+ mode: {
1822
+ primary: {
1823
+ [vars.color]: globalRefs.colors.primary.main
1824
+ },
1825
+ secondary: {
1826
+ [vars.color]: globalRefs.colors.secondary.main
1827
+ },
1828
+ error: {
1829
+ [vars.color]: globalRefs.colors.error.main
1830
+ },
1831
+ success: {
1832
+ [vars.color]: globalRefs.colors.success.main
1833
+ }
1834
+ },
1835
+ textAlign: {
1836
+ right: { [vars.textAlign]: 'right' },
1837
+ left: { [vars.textAlign]: 'left' },
1838
+ center: { [vars.textAlign]: 'center' }
1839
+ },
1840
+ _fullWidth: {
1841
+ [vars.width]: '100%',
1842
+ [vars.display]: 'block'
1843
+ },
1844
+ _italic: {
1845
+ [vars.fontStyle]: 'italic'
1846
+ }
1708
1847
  };
1709
1848
 
1710
1849
  var components = {
@@ -1717,7 +1856,8 @@ var components = {
1717
1856
  checkbox,
1718
1857
  switchToggle: swtichToggle,
1719
1858
  container,
1720
- logo
1859
+ logo,
1860
+ text
1721
1861
  };
1722
1862
 
1723
1863
  var index = { globals, components };