@descope/web-components-ui 3.1.13 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,6 @@ var zxcvbnEnPackage__namespace = /*#__PURE__*/_interopNamespaceDefault(zxcvbnEnP
34
34
  const DESCOPE_PREFIX$1 = 'descope';
35
35
  const CSS_SELECTOR_SPECIFIER_MULTIPLY$1 = 5;
36
36
  const BASE_THEME_SECTION$1 = 'host';
37
- const PORTAL_THEME_PREFIX = '@';
38
37
 
39
38
  const kebabCase$1 = (str) =>
40
39
  str
@@ -953,6 +952,13 @@ function splitAmpersands(str) {
953
952
  return [match[1] || '', match[2] || ''];
954
953
  }
955
954
 
955
+ const CONTAINER_QUERY_PREFIX = '@container';
956
+ const isContainerQuery = (key) => key.startsWith(CONTAINER_QUERY_PREFIX);
957
+
958
+ const BREAKPOINTS_KEY = '$breakpoints';
959
+ const BREAKPOINTS_REF_PREFIX = '$breakpoints.';
960
+ const isBreakpointRef = (key) => key.startsWith(BREAKPOINTS_REF_PREFIX);
961
+
956
962
  // st attributes are also using selector multiplication
957
963
  // so we need to limit the multiplication
958
964
  const MAX_SELECTOR_MULTIPLY = 3;
@@ -960,6 +966,10 @@ const MAX_SELECTOR_MULTIPLY = 3;
960
966
  const componentsThemeToStyleObj = (componentsTheme) =>
961
967
  transformTheme(componentsTheme, [], (path, val) => {
962
968
  const [component, ...restPath] = path;
969
+
970
+ // skip $breakpoints definitions — they are metadata, not CSS output
971
+ if (restPath[0] === BREAKPOINTS_KEY) return {};
972
+
963
973
  const property = restPath.pop();
964
974
  const componentName = getComponentName$1(component);
965
975
 
@@ -968,15 +978,27 @@ const componentsThemeToStyleObj = (componentsTheme) =>
968
978
  console.warn(componentName, `theme value: "${val}" is mapped to an invalid property`);
969
979
  }
970
980
 
971
- // we need a support for portal components theme (e.g. overlay)
972
- // this allows us to generate those themes under different sections
973
- // if the theme has root level attribute that starts with #
974
- // we are generating a new theme
975
- let themeName = BASE_THEME_SECTION$1;
981
+ const themeName = BASE_THEME_SECTION$1;
976
982
 
977
- if (restPath[0] && restPath[0].startsWith(PORTAL_THEME_PREFIX)) {
978
- themeName = restPath.shift();
983
+ // extract @container queries from restPath at any position,
984
+ // resolving breakpoints.X references via the component's $breakpoints map
985
+ const componentBreakpoints = componentsTheme[component]?.[BREAKPOINTS_KEY] || {};
986
+ const resolveKey = (key) =>
987
+ isBreakpointRef(key)
988
+ ? `${CONTAINER_QUERY_PREFIX} ${componentBreakpoints[key.slice(BREAKPOINTS_REF_PREFIX.length)]}`
989
+ : key;
990
+ const breakpointRefs = restPath.filter(isBreakpointRef);
991
+ const missingRef = breakpointRefs.find(
992
+ (key) => !componentBreakpoints[key.slice(BREAKPOINTS_REF_PREFIX.length)]
993
+ );
994
+ if (missingRef) {
995
+ // eslint-disable-next-line no-console
996
+ console.warn(componentName, `theme references undefined breakpoint "${missingRef}"`);
997
+ return {};
979
998
  }
999
+ const containerQueries = breakpointRefs.map(resolveKey);
1000
+ // remove breakpoint refs from restPath so the remaining parts are processed as attribute selectors
1001
+ restPath.splice(0, restPath.length, ...restPath.filter((s) => !isBreakpointRef(s)));
980
1002
 
981
1003
  // do not start with underscore -> key:value, must have 2 no underscore attrs in a row
982
1004
  // starts with underscore -> attribute selector
@@ -1015,25 +1037,29 @@ const componentsThemeToStyleObj = (componentsTheme) =>
1015
1037
 
1016
1038
  const selector = `:host${attrsSelector ? `(${attrsSelector})` : ''}`;
1017
1039
 
1040
+ // wrap the selector rule in container queries from innermost to outermost
1041
+ // e.g. ['@container (max-width: 80px)'] + { ':host': { prop: val } }
1042
+ // => { '@container (max-width: 80px)': { ':host': { prop: val } } }
1043
+ const leaf = containerQueries.reduceRight((acc, query) => ({ [query]: acc }), {
1044
+ [selector]: { [property]: getCssVarValue(val) },
1045
+ });
1046
+
1018
1047
  return {
1019
1048
  [componentName]: {
1020
- [themeName]: {
1021
- [selector]: {
1022
- [property]: getCssVarValue(val),
1023
- },
1024
- },
1049
+ [themeName]: leaf,
1025
1050
  },
1026
1051
  };
1027
1052
  });
1028
1053
 
1029
1054
  const componentsThemeToStyle = (componentsTheme) =>
1030
- Object.entries(componentsTheme).reduce(
1031
- (acc, [selector, vars]) =>
1032
- `${acc}${selector} { \n${Object.entries(vars)
1033
- .map(([key, val]) => `${key}: ${val}`)
1034
- .join(';\n')} \n}\n\n`,
1035
- ''
1036
- );
1055
+ Object.entries(componentsTheme).reduce((acc, [key, value]) => {
1056
+ if (isContainerQuery(key)) {
1057
+ return `${acc}${key} {\n${componentsThemeToStyle(value)}}\n\n`;
1058
+ }
1059
+ return `${acc}${key} { \n${Object.entries(value)
1060
+ .map(([prop, val]) => `${prop}: ${val}`)
1061
+ .join(';\n')} \n}\n\n`;
1062
+ }, '');
1037
1063
 
1038
1064
  const createComponentsTheme = (componentsTheme) => {
1039
1065
  const styleObj = componentsThemeToStyleObj(componentsTheme);
@@ -1263,7 +1289,7 @@ const globals$1 = {
1263
1289
  fonts: fonts$1,
1264
1290
  direction: direction$1,
1265
1291
  };
1266
- const vars$15 = getThemeVars(globals$1);
1292
+ const vars$16 = getThemeVars(globals$1);
1267
1293
 
1268
1294
  const direction = 'ltr';
1269
1295
 
@@ -3059,12 +3085,12 @@ const createImage = async (src, altText) => {
3059
3085
 
3060
3086
  /* eslint-disable no-use-before-define */
3061
3087
 
3062
- const componentName$1j = getComponentName('image');
3088
+ const componentName$1k = getComponentName('image');
3063
3089
 
3064
3090
  const srcAttrs = ['src', 'src-dark'];
3065
3091
 
3066
3092
  class RawImage extends createBaseClass$1({
3067
- componentName: componentName$1j,
3093
+ componentName: componentName$1k,
3068
3094
  baseSelector: 'slot',
3069
3095
  }) {
3070
3096
  static get observedAttributes() {
@@ -3192,7 +3218,7 @@ const ImageClass = compose(
3192
3218
  componentNameValidationMixin$1,
3193
3219
  )(RawImage);
3194
3220
 
3195
- const componentName$1i = getComponentName('icon');
3221
+ const componentName$1j = getComponentName('icon');
3196
3222
 
3197
3223
  const IconClass = compose(
3198
3224
  createStyleMixin$1({
@@ -3213,7 +3239,7 @@ const IconClass = compose(
3213
3239
  }
3214
3240
  `,
3215
3241
  excludeAttrsSync: ['tabindex', 'class', 'style'],
3216
- componentName: componentName$1i,
3242
+ componentName: componentName$1j,
3217
3243
  }),
3218
3244
  );
3219
3245
 
@@ -3228,7 +3254,7 @@ const clickableMixin = (superclass) =>
3228
3254
  }
3229
3255
  };
3230
3256
 
3231
- const componentName$1h = getComponentName('button');
3257
+ const componentName$1i = getComponentName('button');
3232
3258
 
3233
3259
  const resetStyles = `
3234
3260
  :host {
@@ -3344,7 +3370,7 @@ const ButtonClass = compose(
3344
3370
  }
3345
3371
  `,
3346
3372
  excludeAttrsSync: ['tabindex', 'class', 'style'],
3347
- componentName: componentName$1h,
3373
+ componentName: componentName$1i,
3348
3374
  })
3349
3375
  );
3350
3376
 
@@ -3392,10 +3418,10 @@ const mode = {
3392
3418
  surface: globalRefs$H.colors.surface,
3393
3419
  };
3394
3420
 
3395
- const [helperTheme$6, helperRefs$6, helperVars$6] = createHelperVars$1({ mode }, componentName$1h);
3421
+ const [helperTheme$7, helperRefs$7, helperVars$6] = createHelperVars$1({ mode }, componentName$1i);
3396
3422
 
3397
3423
  const button = {
3398
- ...helperTheme$6,
3424
+ ...helperTheme$7,
3399
3425
 
3400
3426
  [compVars$9.fontFamily]: globalRefs$H.fonts.font1.family,
3401
3427
 
@@ -3447,7 +3473,7 @@ const button = {
3447
3473
 
3448
3474
  _loading: {
3449
3475
  [compVars$9.cursor]: 'wait',
3450
- [compVars$9.labelTextColor]: helperRefs$6.main,
3476
+ [compVars$9.labelTextColor]: helperRefs$7.main,
3451
3477
  },
3452
3478
 
3453
3479
  _disabled: {
@@ -3460,51 +3486,51 @@ const button = {
3460
3486
 
3461
3487
  variant: {
3462
3488
  contained: {
3463
- [compVars$9.labelTextColor]: helperRefs$6.contrast,
3464
- [compVars$9.backgroundColor]: helperRefs$6.main,
3489
+ [compVars$9.labelTextColor]: helperRefs$7.contrast,
3490
+ [compVars$9.backgroundColor]: helperRefs$7.main,
3465
3491
  _hover: {
3466
- [compVars$9.backgroundColor]: helperRefs$6.dark,
3492
+ [compVars$9.backgroundColor]: helperRefs$7.dark,
3467
3493
  _loading: {
3468
- [compVars$9.backgroundColor]: helperRefs$6.main,
3494
+ [compVars$9.backgroundColor]: helperRefs$7.main,
3469
3495
  },
3470
3496
  },
3471
3497
  _active: {
3472
- [compVars$9.backgroundColor]: helperRefs$6.main,
3498
+ [compVars$9.backgroundColor]: helperRefs$7.main,
3473
3499
  },
3474
3500
  },
3475
3501
 
3476
3502
  outline: {
3477
- [compVars$9.labelTextColor]: helperRefs$6.main,
3478
- [compVars$9.borderColor]: helperRefs$6.main,
3503
+ [compVars$9.labelTextColor]: helperRefs$7.main,
3504
+ [compVars$9.borderColor]: helperRefs$7.main,
3479
3505
  _hover: {
3480
- [compVars$9.labelTextColor]: helperRefs$6.dark,
3481
- [compVars$9.borderColor]: helperRefs$6.dark,
3506
+ [compVars$9.labelTextColor]: helperRefs$7.dark,
3507
+ [compVars$9.borderColor]: helperRefs$7.dark,
3482
3508
  },
3483
3509
  _active: {
3484
- [compVars$9.labelTextColor]: helperRefs$6.main,
3485
- [compVars$9.borderColor]: helperRefs$6.main,
3510
+ [compVars$9.labelTextColor]: helperRefs$7.main,
3511
+ [compVars$9.borderColor]: helperRefs$7.main,
3486
3512
  },
3487
3513
  },
3488
3514
 
3489
3515
  link: {
3490
- [compVars$9.labelTextColor]: helperRefs$6.main,
3516
+ [compVars$9.labelTextColor]: helperRefs$7.main,
3491
3517
  [compVars$9.horizontalPadding]: '0.125em',
3492
3518
  _hover: {
3493
- [compVars$9.labelTextColor]: helperRefs$6.dark,
3519
+ [compVars$9.labelTextColor]: helperRefs$7.dark,
3494
3520
  [compVars$9.labelTextDecoration]: 'underline',
3495
3521
  },
3496
3522
  _active: {
3497
- [compVars$9.labelTextColor]: helperRefs$6.main,
3523
+ [compVars$9.labelTextColor]: helperRefs$7.main,
3498
3524
  },
3499
3525
  },
3500
3526
  },
3501
3527
 
3502
3528
  _focused: {
3503
- [compVars$9.outlineColor]: helperRefs$6.light,
3529
+ [compVars$9.outlineColor]: helperRefs$7.light,
3504
3530
  },
3505
3531
  };
3506
3532
 
3507
- const vars$14 = {
3533
+ const vars$15 = {
3508
3534
  ...compVars$9,
3509
3535
  ...helperVars$6,
3510
3536
  };
@@ -3512,13 +3538,13 @@ const vars$14 = {
3512
3538
  var button$1 = /*#__PURE__*/Object.freeze({
3513
3539
  __proto__: null,
3514
3540
  default: button,
3515
- vars: vars$14
3541
+ vars: vars$15
3516
3542
  });
3517
3543
 
3518
- const componentName$1g = getComponentName('text');
3544
+ const componentName$1h = getComponentName('text');
3519
3545
 
3520
3546
  class RawText extends createBaseClass$1({
3521
- componentName: componentName$1g,
3547
+ componentName: componentName$1h,
3522
3548
  baseSelector: ':host > slot',
3523
3549
  }) {
3524
3550
  constructor() {
@@ -3585,106 +3611,106 @@ const TextClass = compose(
3585
3611
  )(RawText);
3586
3612
 
3587
3613
  const globalRefs$G = getThemeRefs$1(globals);
3588
- const vars$13 = TextClass.cssVarList;
3614
+ const vars$14 = TextClass.cssVarList;
3589
3615
 
3590
3616
  const text$3 = {
3591
- [vars$13.hostDirection]: globalRefs$G.direction,
3592
- [vars$13.textLineHeight]: '1.35em',
3593
- [vars$13.textAlign]: 'start',
3594
- [vars$13.textColor]: globalRefs$G.colors.surface.dark,
3617
+ [vars$14.hostDirection]: globalRefs$G.direction,
3618
+ [vars$14.textLineHeight]: '1.35em',
3619
+ [vars$14.textAlign]: 'start',
3620
+ [vars$14.textColor]: globalRefs$G.colors.surface.dark,
3595
3621
 
3596
3622
  variant: {
3597
3623
  h1: {
3598
- [vars$13.fontSize]: globalRefs$G.typography.h1.size,
3599
- [vars$13.fontWeight]: globalRefs$G.typography.h1.weight,
3600
- [vars$13.fontFamily]: globalRefs$G.typography.h1.font,
3624
+ [vars$14.fontSize]: globalRefs$G.typography.h1.size,
3625
+ [vars$14.fontWeight]: globalRefs$G.typography.h1.weight,
3626
+ [vars$14.fontFamily]: globalRefs$G.typography.h1.font,
3601
3627
  },
3602
3628
  h2: {
3603
- [vars$13.fontSize]: globalRefs$G.typography.h2.size,
3604
- [vars$13.fontWeight]: globalRefs$G.typography.h2.weight,
3605
- [vars$13.fontFamily]: globalRefs$G.typography.h2.font,
3629
+ [vars$14.fontSize]: globalRefs$G.typography.h2.size,
3630
+ [vars$14.fontWeight]: globalRefs$G.typography.h2.weight,
3631
+ [vars$14.fontFamily]: globalRefs$G.typography.h2.font,
3606
3632
  },
3607
3633
  h3: {
3608
- [vars$13.fontSize]: globalRefs$G.typography.h3.size,
3609
- [vars$13.fontWeight]: globalRefs$G.typography.h3.weight,
3610
- [vars$13.fontFamily]: globalRefs$G.typography.h3.font,
3634
+ [vars$14.fontSize]: globalRefs$G.typography.h3.size,
3635
+ [vars$14.fontWeight]: globalRefs$G.typography.h3.weight,
3636
+ [vars$14.fontFamily]: globalRefs$G.typography.h3.font,
3611
3637
  },
3612
3638
  subtitle1: {
3613
- [vars$13.fontSize]: globalRefs$G.typography.subtitle1.size,
3614
- [vars$13.fontWeight]: globalRefs$G.typography.subtitle1.weight,
3615
- [vars$13.fontFamily]: globalRefs$G.typography.subtitle1.font,
3639
+ [vars$14.fontSize]: globalRefs$G.typography.subtitle1.size,
3640
+ [vars$14.fontWeight]: globalRefs$G.typography.subtitle1.weight,
3641
+ [vars$14.fontFamily]: globalRefs$G.typography.subtitle1.font,
3616
3642
  },
3617
3643
  subtitle2: {
3618
- [vars$13.fontSize]: globalRefs$G.typography.subtitle2.size,
3619
- [vars$13.fontWeight]: globalRefs$G.typography.subtitle2.weight,
3620
- [vars$13.fontFamily]: globalRefs$G.typography.subtitle2.font,
3644
+ [vars$14.fontSize]: globalRefs$G.typography.subtitle2.size,
3645
+ [vars$14.fontWeight]: globalRefs$G.typography.subtitle2.weight,
3646
+ [vars$14.fontFamily]: globalRefs$G.typography.subtitle2.font,
3621
3647
  },
3622
3648
  body1: {
3623
- [vars$13.fontSize]: globalRefs$G.typography.body1.size,
3624
- [vars$13.fontWeight]: globalRefs$G.typography.body1.weight,
3625
- [vars$13.fontFamily]: globalRefs$G.typography.body1.font,
3649
+ [vars$14.fontSize]: globalRefs$G.typography.body1.size,
3650
+ [vars$14.fontWeight]: globalRefs$G.typography.body1.weight,
3651
+ [vars$14.fontFamily]: globalRefs$G.typography.body1.font,
3626
3652
  },
3627
3653
  body2: {
3628
- [vars$13.fontSize]: globalRefs$G.typography.body2.size,
3629
- [vars$13.fontWeight]: globalRefs$G.typography.body2.weight,
3630
- [vars$13.fontFamily]: globalRefs$G.typography.body2.font,
3654
+ [vars$14.fontSize]: globalRefs$G.typography.body2.size,
3655
+ [vars$14.fontWeight]: globalRefs$G.typography.body2.weight,
3656
+ [vars$14.fontFamily]: globalRefs$G.typography.body2.font,
3631
3657
  },
3632
3658
  },
3633
3659
 
3634
3660
  mode: {
3635
3661
  primary: {
3636
- [vars$13.textColor]: globalRefs$G.colors.surface.contrast,
3662
+ [vars$14.textColor]: globalRefs$G.colors.surface.contrast,
3637
3663
  },
3638
3664
  secondary: {
3639
- [vars$13.textColor]: globalRefs$G.colors.surface.dark,
3665
+ [vars$14.textColor]: globalRefs$G.colors.surface.dark,
3640
3666
  },
3641
3667
  error: {
3642
- [vars$13.textColor]: globalRefs$G.colors.error.main,
3668
+ [vars$14.textColor]: globalRefs$G.colors.error.main,
3643
3669
  },
3644
3670
  'error-dark': {
3645
- [vars$13.textColor]: globalRefs$G.colors.error.dark,
3671
+ [vars$14.textColor]: globalRefs$G.colors.error.dark,
3646
3672
  },
3647
3673
  success: {
3648
- [vars$13.textColor]: globalRefs$G.colors.success.main,
3674
+ [vars$14.textColor]: globalRefs$G.colors.success.main,
3649
3675
  },
3650
3676
  'success-dark': {
3651
- [vars$13.textColor]: globalRefs$G.colors.success.dark,
3677
+ [vars$14.textColor]: globalRefs$G.colors.success.dark,
3652
3678
  },
3653
3679
  warning: {
3654
- [vars$13.textColor]: globalRefs$G.colors.warning.main,
3680
+ [vars$14.textColor]: globalRefs$G.colors.warning.main,
3655
3681
  },
3656
3682
  'warning-dark': {
3657
- [vars$13.textColor]: globalRefs$G.colors.warning.dark,
3683
+ [vars$14.textColor]: globalRefs$G.colors.warning.dark,
3658
3684
  },
3659
3685
  },
3660
3686
 
3661
3687
  textAlign: {
3662
- right: { [vars$13.textAlign]: 'right' },
3663
- left: { [vars$13.textAlign]: 'left' },
3664
- center: { [vars$13.textAlign]: 'center' },
3688
+ right: { [vars$14.textAlign]: 'right' },
3689
+ left: { [vars$14.textAlign]: 'left' },
3690
+ center: { [vars$14.textAlign]: 'center' },
3665
3691
  },
3666
3692
 
3667
3693
  _fullWidth: {
3668
- [vars$13.hostWidth]: '100%',
3694
+ [vars$14.hostWidth]: '100%',
3669
3695
  },
3670
3696
 
3671
3697
  _italic: {
3672
- [vars$13.fontStyle]: 'italic',
3698
+ [vars$14.fontStyle]: 'italic',
3673
3699
  },
3674
3700
 
3675
3701
  _uppercase: {
3676
- [vars$13.textTransform]: 'uppercase',
3702
+ [vars$14.textTransform]: 'uppercase',
3677
3703
  },
3678
3704
 
3679
3705
  _lowercase: {
3680
- [vars$13.textTransform]: 'lowercase',
3706
+ [vars$14.textTransform]: 'lowercase',
3681
3707
  },
3682
3708
  };
3683
3709
 
3684
3710
  var text$4 = /*#__PURE__*/Object.freeze({
3685
3711
  __proto__: null,
3686
3712
  default: text$3,
3687
- vars: vars$13
3713
+ vars: vars$14
3688
3714
  });
3689
3715
 
3690
3716
  const disableRules = [
@@ -3711,9 +3737,9 @@ const decodeHTML = (html) => {
3711
3737
  /* eslint-disable no-param-reassign */
3712
3738
 
3713
3739
 
3714
- const componentName$1f = getComponentName('enriched-text');
3740
+ const componentName$1g = getComponentName('enriched-text');
3715
3741
 
3716
- class EnrichedText extends createBaseClass$1({ componentName: componentName$1f, baseSelector: ':host > div' }) {
3742
+ class EnrichedText extends createBaseClass$1({ componentName: componentName$1g, baseSelector: ':host > div' }) {
3717
3743
  #origLinkRenderer;
3718
3744
 
3719
3745
  #origEmRenderer;
@@ -3918,9 +3944,9 @@ const EnrichedTextClass = compose(
3918
3944
  componentNameValidationMixin$1
3919
3945
  )(EnrichedText);
3920
3946
 
3921
- const componentName$1e = getComponentName('link');
3947
+ const componentName$1f = getComponentName('link');
3922
3948
 
3923
- class RawLink extends createBaseClass$1({ componentName: componentName$1e, baseSelector: ':host a' }) {
3949
+ class RawLink extends createBaseClass$1({ componentName: componentName$1f, baseSelector: ':host a' }) {
3924
3950
  constructor() {
3925
3951
  super();
3926
3952
 
@@ -3998,31 +4024,31 @@ const LinkClass = compose(
3998
4024
  )(RawLink);
3999
4025
 
4000
4026
  const globalRefs$F = getThemeRefs$1(globals);
4001
- const vars$12 = LinkClass.cssVarList;
4027
+ const vars$13 = LinkClass.cssVarList;
4002
4028
 
4003
4029
  const link$1 = {
4004
- [vars$12.hostDirection]: globalRefs$F.direction,
4005
- [vars$12.cursor]: 'pointer',
4030
+ [vars$13.hostDirection]: globalRefs$F.direction,
4031
+ [vars$13.cursor]: 'pointer',
4006
4032
 
4007
- [vars$12.textColor]: globalRefs$F.colors.primary.main,
4033
+ [vars$13.textColor]: globalRefs$F.colors.primary.main,
4008
4034
 
4009
4035
  textAlign: {
4010
- right: { [vars$12.textAlign]: 'right' },
4011
- left: { [vars$12.textAlign]: 'left' },
4012
- center: { [vars$12.textAlign]: 'center' },
4036
+ right: { [vars$13.textAlign]: 'right' },
4037
+ left: { [vars$13.textAlign]: 'left' },
4038
+ center: { [vars$13.textAlign]: 'center' },
4013
4039
  },
4014
4040
 
4015
4041
  _fullWidth: {
4016
- [vars$12.hostWidth]: '100%',
4042
+ [vars$13.hostWidth]: '100%',
4017
4043
  },
4018
4044
 
4019
4045
  _hover: {
4020
- [vars$12.textDecoration]: 'underline',
4046
+ [vars$13.textDecoration]: 'underline',
4021
4047
  },
4022
4048
 
4023
4049
  mode: {
4024
4050
  secondary: {
4025
- [vars$12.textColor]: globalRefs$F.colors.secondary.main,
4051
+ [vars$13.textColor]: globalRefs$F.colors.secondary.main,
4026
4052
  },
4027
4053
  },
4028
4054
  };
@@ -4030,37 +4056,37 @@ const link$1 = {
4030
4056
  var link$2 = /*#__PURE__*/Object.freeze({
4031
4057
  __proto__: null,
4032
4058
  default: link$1,
4033
- vars: vars$12
4059
+ vars: vars$13
4034
4060
  });
4035
4061
 
4036
4062
  const globalRefs$E = getThemeRefs$1(globals);
4037
- const vars$11 = EnrichedTextClass.cssVarList;
4063
+ const vars$12 = EnrichedTextClass.cssVarList;
4038
4064
 
4039
4065
  const enrichedText = {
4040
- [vars$11.hostDirection]: globalRefs$E.direction,
4041
- [vars$11.hostWidth]: useVar$1(vars$13.hostWidth),
4066
+ [vars$12.hostDirection]: globalRefs$E.direction,
4067
+ [vars$12.hostWidth]: useVar$1(vars$14.hostWidth),
4042
4068
 
4043
- [vars$11.textLineHeight]: useVar$1(vars$13.textLineHeight),
4044
- [vars$11.textColor]: useVar$1(vars$13.textColor),
4045
- [vars$11.textAlign]: useVar$1(vars$13.textAlign),
4069
+ [vars$12.textLineHeight]: useVar$1(vars$14.textLineHeight),
4070
+ [vars$12.textColor]: useVar$1(vars$14.textColor),
4071
+ [vars$12.textAlign]: useVar$1(vars$14.textAlign),
4046
4072
 
4047
- [vars$11.fontSize]: useVar$1(vars$13.fontSize),
4048
- [vars$11.fontWeight]: useVar$1(vars$13.fontWeight),
4049
- [vars$11.fontFamily]: useVar$1(vars$13.fontFamily),
4073
+ [vars$12.fontSize]: useVar$1(vars$14.fontSize),
4074
+ [vars$12.fontWeight]: useVar$1(vars$14.fontWeight),
4075
+ [vars$12.fontFamily]: useVar$1(vars$14.fontFamily),
4050
4076
 
4051
- [vars$11.linkColor]: useVar$1(vars$12.textColor),
4052
- [vars$11.linkTextDecoration]: 'none',
4053
- [vars$11.linkHoverTextDecoration]: 'underline',
4077
+ [vars$12.linkColor]: useVar$1(vars$13.textColor),
4078
+ [vars$12.linkTextDecoration]: 'none',
4079
+ [vars$12.linkHoverTextDecoration]: 'underline',
4054
4080
 
4055
- [vars$11.fontWeightBold]: '900',
4056
- [vars$11.minWidth]: '0.25em',
4057
- [vars$11.minHeight]: '1.35em',
4081
+ [vars$12.fontWeightBold]: '900',
4082
+ [vars$12.minWidth]: '0.25em',
4083
+ [vars$12.minHeight]: '1.35em',
4058
4084
 
4059
- [vars$11.hostDisplay]: 'inline-block',
4085
+ [vars$12.hostDisplay]: 'inline-block',
4060
4086
 
4061
4087
  _empty: {
4062
4088
  _hideWhenEmpty: {
4063
- [vars$11.hostDisplay]: 'none',
4089
+ [vars$12.hostDisplay]: 'none',
4064
4090
  },
4065
4091
  },
4066
4092
  };
@@ -4068,10 +4094,10 @@ const enrichedText = {
4068
4094
  var enrichedText$1 = /*#__PURE__*/Object.freeze({
4069
4095
  __proto__: null,
4070
4096
  default: enrichedText,
4071
- vars: vars$11
4097
+ vars: vars$12
4072
4098
  });
4073
4099
 
4074
- const componentName$1d = getComponentName('combo-box');
4100
+ const componentName$1e = getComponentName('combo-box');
4075
4101
 
4076
4102
  const ComboBoxMixin = (superclass) =>
4077
4103
  class ComboBoxMixinClass extends superclass {
@@ -4755,12 +4781,12 @@ const ComboBoxClass = compose(
4755
4781
  // and reset items to an empty array, and opening the list box with no items
4756
4782
  // to display.
4757
4783
  excludeAttrsSync: ['tabindex', 'size', 'data', 'loading', 'style'],
4758
- componentName: componentName$1d,
4784
+ componentName: componentName$1e,
4759
4785
  includeForwardProps: ['items', 'renderer', 'selectedItem'],
4760
4786
  }),
4761
4787
  );
4762
4788
 
4763
- const componentName$1c = getComponentName('input-wrapper');
4789
+ const componentName$1d = getComponentName('input-wrapper');
4764
4790
  const globalRefs$D = getThemeRefs$1(globals);
4765
4791
 
4766
4792
  const [theme$2, refs$1] = createHelperVars$1(
@@ -4883,103 +4909,103 @@ const [theme$2, refs$1] = createHelperVars$1(
4883
4909
  backgroundColor: globalRefs$D.colors.surface.main,
4884
4910
  },
4885
4911
  },
4886
- componentName$1c,
4912
+ componentName$1d,
4887
4913
  );
4888
4914
 
4889
4915
  const globalRefs$C = getThemeRefs$1(globals);
4890
- const vars$10 = ComboBoxClass.cssVarList;
4916
+ const vars$11 = ComboBoxClass.cssVarList;
4891
4917
 
4892
4918
  const comboBox = {
4893
- [vars$10.hostWidth]: refs$1.width,
4894
- [vars$10.hostDirection]: refs$1.direction,
4895
- [vars$10.fontSize]: refs$1.fontSize,
4896
- [vars$10.fontFamily]: refs$1.fontFamily,
4897
- [vars$10.labelFontSize]: refs$1.labelFontSize,
4898
- [vars$10.labelFontWeight]: refs$1.labelFontWeight,
4899
- [vars$10.labelTextColor]: refs$1.labelTextColor,
4900
- [vars$10.errorMessageTextColor]: refs$1.errorMessageTextColor,
4901
- [vars$10.inputBorderColor]: refs$1.borderColor,
4902
- [vars$10.inputBorderWidth]: refs$1.borderWidth,
4903
- [vars$10.inputBorderStyle]: refs$1.borderStyle,
4904
- [vars$10.inputBorderRadius]: refs$1.borderRadius,
4905
- [vars$10.inputOutlineColor]: refs$1.outlineColor,
4906
- [vars$10.inputOutlineOffset]: refs$1.outlineOffset,
4907
- [vars$10.inputOutlineWidth]: refs$1.outlineWidth,
4908
- [vars$10.inputOutlineStyle]: refs$1.outlineStyle,
4909
- [vars$10.labelRequiredIndicator]: refs$1.requiredIndicator,
4910
- [vars$10.inputValueTextColor]: refs$1.valueTextColor,
4911
- [vars$10.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
4912
- [vars$10.inputBackgroundColor]: refs$1.backgroundColor,
4913
- [vars$10.inputHorizontalPadding]: refs$1.horizontalPadding,
4914
- [vars$10.inputHeight]: refs$1.inputHeight,
4915
- [vars$10.inputDropdownButtonColor]: globalRefs$C.colors.surface.dark,
4916
- [vars$10.inputDropdownButtonCursor]: 'pointer',
4917
- [vars$10.inputDropdownButtonSize]: refs$1.toggleButtonSize,
4918
- [vars$10.inputDropdownButtonOffset]: globalRefs$C.spacing.xs,
4919
- [vars$10.overlayItemPaddingInlineStart]: globalRefs$C.spacing.xs,
4920
- [vars$10.overlayItemPaddingInlineEnd]: globalRefs$C.spacing.lg,
4921
- [vars$10.labelPosition]: refs$1.labelPosition,
4922
- [vars$10.labelTopPosition]: refs$1.labelTopPosition,
4923
- [vars$10.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
4924
- [vars$10.inputTransformY]: refs$1.inputTransformY,
4925
- [vars$10.inputTransition]: refs$1.inputTransition,
4926
- [vars$10.marginInlineStart]: refs$1.marginInlineStart,
4927
- [vars$10.placeholderOpacity]: refs$1.placeholderOpacity,
4928
- [vars$10.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
4929
- [vars$10.valueInputHeight]: refs$1.valueInputHeight,
4930
- [vars$10.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
4919
+ [vars$11.hostWidth]: refs$1.width,
4920
+ [vars$11.hostDirection]: refs$1.direction,
4921
+ [vars$11.fontSize]: refs$1.fontSize,
4922
+ [vars$11.fontFamily]: refs$1.fontFamily,
4923
+ [vars$11.labelFontSize]: refs$1.labelFontSize,
4924
+ [vars$11.labelFontWeight]: refs$1.labelFontWeight,
4925
+ [vars$11.labelTextColor]: refs$1.labelTextColor,
4926
+ [vars$11.errorMessageTextColor]: refs$1.errorMessageTextColor,
4927
+ [vars$11.inputBorderColor]: refs$1.borderColor,
4928
+ [vars$11.inputBorderWidth]: refs$1.borderWidth,
4929
+ [vars$11.inputBorderStyle]: refs$1.borderStyle,
4930
+ [vars$11.inputBorderRadius]: refs$1.borderRadius,
4931
+ [vars$11.inputOutlineColor]: refs$1.outlineColor,
4932
+ [vars$11.inputOutlineOffset]: refs$1.outlineOffset,
4933
+ [vars$11.inputOutlineWidth]: refs$1.outlineWidth,
4934
+ [vars$11.inputOutlineStyle]: refs$1.outlineStyle,
4935
+ [vars$11.labelRequiredIndicator]: refs$1.requiredIndicator,
4936
+ [vars$11.inputValueTextColor]: refs$1.valueTextColor,
4937
+ [vars$11.inputPlaceholderTextColor]: refs$1.placeholderTextColor,
4938
+ [vars$11.inputBackgroundColor]: refs$1.backgroundColor,
4939
+ [vars$11.inputHorizontalPadding]: refs$1.horizontalPadding,
4940
+ [vars$11.inputHeight]: refs$1.inputHeight,
4941
+ [vars$11.inputDropdownButtonColor]: globalRefs$C.colors.surface.dark,
4942
+ [vars$11.inputDropdownButtonCursor]: 'pointer',
4943
+ [vars$11.inputDropdownButtonSize]: refs$1.toggleButtonSize,
4944
+ [vars$11.inputDropdownButtonOffset]: globalRefs$C.spacing.xs,
4945
+ [vars$11.overlayItemPaddingInlineStart]: globalRefs$C.spacing.xs,
4946
+ [vars$11.overlayItemPaddingInlineEnd]: globalRefs$C.spacing.lg,
4947
+ [vars$11.labelPosition]: refs$1.labelPosition,
4948
+ [vars$11.labelTopPosition]: refs$1.labelTopPosition,
4949
+ [vars$11.labelHorizontalPosition]: refs$1.labelHorizontalPosition,
4950
+ [vars$11.inputTransformY]: refs$1.inputTransformY,
4951
+ [vars$11.inputTransition]: refs$1.inputTransition,
4952
+ [vars$11.marginInlineStart]: refs$1.marginInlineStart,
4953
+ [vars$11.placeholderOpacity]: refs$1.placeholderOpacity,
4954
+ [vars$11.inputVerticalAlignment]: refs$1.inputVerticalAlignment,
4955
+ [vars$11.valueInputHeight]: refs$1.valueInputHeight,
4956
+ [vars$11.valueInputMarginBottom]: refs$1.valueInputMarginBottom,
4931
4957
 
4932
4958
  // error message icon
4933
- [vars$10.errorMessageIcon]: refs$1.errorMessageIcon,
4934
- [vars$10.errorMessageIconSize]: refs$1.errorMessageIconSize,
4935
- [vars$10.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
4936
- [vars$10.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
4937
- [vars$10.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
4938
- [vars$10.errorMessageFontSize]: refs$1.errorMessageFontSize,
4959
+ [vars$11.errorMessageIcon]: refs$1.errorMessageIcon,
4960
+ [vars$11.errorMessageIconSize]: refs$1.errorMessageIconSize,
4961
+ [vars$11.errorMessageIconPadding]: refs$1.errorMessageIconPadding,
4962
+ [vars$11.errorMessageIconRepeat]: refs$1.errorMessageIconRepeat,
4963
+ [vars$11.errorMessageIconPosition]: refs$1.errorMessageIconPosition,
4964
+ [vars$11.errorMessageFontSize]: refs$1.errorMessageFontSize,
4939
4965
 
4940
4966
  _readonly: {
4941
- [vars$10.inputDropdownButtonCursor]: 'default',
4967
+ [vars$11.inputDropdownButtonCursor]: 'default',
4942
4968
  },
4943
4969
 
4944
4970
  // Overlay theme exposed via the component:
4945
- [vars$10.overlayFontSize]: refs$1.fontSize,
4946
- [vars$10.overlayFontFamily]: refs$1.fontFamily,
4947
- [vars$10.overlayCursor]: 'pointer',
4948
- [vars$10.overlayItemBoxShadow]: 'none',
4949
- [vars$10.overlayBackground]: refs$1.backgroundColor,
4950
- [vars$10.overlayTextColor]: refs$1.valueTextColor,
4951
- [vars$10.overlayCheckmarkDisplay]: 'initial',
4952
- [vars$10.overlaySelectedItemBackground]: 'initial',
4953
- [vars$10.overlaySelectedItemHoverBackground]:
4971
+ [vars$11.overlayFontSize]: refs$1.fontSize,
4972
+ [vars$11.overlayFontFamily]: refs$1.fontFamily,
4973
+ [vars$11.overlayCursor]: 'pointer',
4974
+ [vars$11.overlayItemBoxShadow]: 'none',
4975
+ [vars$11.overlayBackground]: refs$1.backgroundColor,
4976
+ [vars$11.overlayTextColor]: refs$1.valueTextColor,
4977
+ [vars$11.overlayCheckmarkDisplay]: 'initial',
4978
+ [vars$11.overlaySelectedItemBackground]: 'initial',
4979
+ [vars$11.overlaySelectedItemHoverBackground]:
4954
4980
  globalRefs$C.colors.primary.highlight,
4955
- [vars$10.overlaySelectedItemFocusBackground]:
4981
+ [vars$11.overlaySelectedItemFocusBackground]:
4956
4982
  globalRefs$C.colors.primary.highlight,
4957
- [vars$10.overlayItemHoverBackground]: globalRefs$C.colors.primary.highlight,
4958
- [vars$10.overlayItemFocusBackground]: globalRefs$C.colors.primary.highlight,
4983
+ [vars$11.overlayItemHoverBackground]: globalRefs$C.colors.primary.highlight,
4984
+ [vars$11.overlayItemFocusBackground]: globalRefs$C.colors.primary.highlight,
4959
4985
 
4960
4986
  // Overlay direct theme:
4961
- [vars$10.overlay.minHeight]: '400px',
4962
- [vars$10.overlay.margin]: '0',
4987
+ [vars$11.overlay.minHeight]: '400px',
4988
+ [vars$11.overlay.margin]: '0',
4963
4989
 
4964
- [vars$10.overlay.contentHeight]: '100%',
4965
- [vars$10.overlay.contentOpacity]: '1',
4966
- [vars$10.overlay.scrollerMinHeight]: '1px',
4990
+ [vars$11.overlay.contentHeight]: '100%',
4991
+ [vars$11.overlay.contentOpacity]: '1',
4992
+ [vars$11.overlay.scrollerMinHeight]: '1px',
4967
4993
  _loading: {
4968
- [vars$10.overlay.loaderTop]: '50%',
4969
- [vars$10.overlay.loaderLeft]: '50%',
4970
- [vars$10.overlay.loaderRight]: 'auto',
4994
+ [vars$11.overlay.loaderTop]: '50%',
4995
+ [vars$11.overlay.loaderLeft]: '50%',
4996
+ [vars$11.overlay.loaderRight]: 'auto',
4971
4997
  // Margin has to be negative to center the loader, "transform" can't be used because the animation uses it
4972
4998
  // Margin has to be half of the width/height of the loader to center it
4973
- [vars$10.overlay.loaderMargin]: '-15px 0 0 -15px',
4974
- [vars$10.overlay.loaderWidth]: '30px',
4975
- [vars$10.overlay.loaderHeight]: '30px',
4976
- [vars$10.overlay.loaderBorder]: '2px solid transparent',
4977
- [vars$10.overlay.loaderBorderColor]:
4999
+ [vars$11.overlay.loaderMargin]: '-15px 0 0 -15px',
5000
+ [vars$11.overlay.loaderWidth]: '30px',
5001
+ [vars$11.overlay.loaderHeight]: '30px',
5002
+ [vars$11.overlay.loaderBorder]: '2px solid transparent',
5003
+ [vars$11.overlay.loaderBorderColor]:
4978
5004
  `${globalRefs$C.colors.primary.highlight} ${globalRefs$C.colors.primary.highlight} ${globalRefs$C.colors.primary.main} ${globalRefs$C.colors.primary.main}`,
4979
- [vars$10.overlay.loaderBorderRadius]: '50%',
4980
- [vars$10.overlay.contentHeight]: '100px',
4981
- [vars$10.overlay.scrollerMinHeight]: '100px',
4982
- [vars$10.overlay.contentOpacity]: '0',
5005
+ [vars$11.overlay.loaderBorderRadius]: '50%',
5006
+ [vars$11.overlay.contentHeight]: '100px',
5007
+ [vars$11.overlay.scrollerMinHeight]: '100px',
5008
+ [vars$11.overlay.contentOpacity]: '0',
4983
5009
  },
4984
5010
  };
4985
5011
 
@@ -4987,13 +5013,13 @@ var comboBox$1 = /*#__PURE__*/Object.freeze({
4987
5013
  __proto__: null,
4988
5014
  comboBox: comboBox,
4989
5015
  default: comboBox,
4990
- vars: vars$10
5016
+ vars: vars$11
4991
5017
  });
4992
5018
 
4993
- const componentName$1b = getComponentName('badge');
5019
+ const componentName$1c = getComponentName('badge');
4994
5020
 
4995
5021
  class RawBadge extends createBaseClass$1({
4996
- componentName: componentName$1b,
5022
+ componentName: componentName$1c,
4997
5023
  baseSelector: ':host > div',
4998
5024
  }) {
4999
5025
  constructor() {
@@ -5011,6 +5037,7 @@ class RawBadge extends createBaseClass$1({
5011
5037
  display: inline-flex;
5012
5038
  }
5013
5039
  :host > div {
5040
+ position: relative;
5014
5041
  width: 100%;
5015
5042
  text-overflow: ellipsis;
5016
5043
  overflow: hidden;
@@ -5026,6 +5053,7 @@ const BadgeClass = compose(
5026
5053
  createStyleMixin$1({
5027
5054
  mappings: {
5028
5055
  hostWidth: [{ selector: () => ':host', property: 'width' }],
5056
+ hostHeight: [{ selector: () => ':host', property: 'height' }],
5029
5057
  hostDirection: { property: 'direction' },
5030
5058
 
5031
5059
  fontFamily: {},
@@ -5050,6 +5078,8 @@ const BadgeClass = compose(
5050
5078
 
5051
5079
  textColor: { property: 'color' },
5052
5080
  textAlign: {},
5081
+ boxShadow: {},
5082
+ textIndent: {},
5053
5083
  },
5054
5084
  }),
5055
5085
  draggableMixin$1,
@@ -5058,79 +5088,125 @@ const BadgeClass = compose(
5058
5088
 
5059
5089
  const globalRefs$B = getThemeRefs$1(globals);
5060
5090
 
5061
- const vars$$ = BadgeClass.cssVarList;
5091
+ const [helperTheme$6, helperRefs$6] = createHelperVars$1(
5092
+ {
5093
+ shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
5094
+ },
5095
+ componentName$1c,
5096
+ );
5097
+
5098
+ const { shadowColor: shadowColor$6 } = helperRefs$6;
5099
+
5100
+ const vars$10 = BadgeClass.cssVarList;
5062
5101
 
5063
5102
  const badge$2 = {
5064
- [vars$$.hostWidth]: 'fit-content',
5065
- [vars$$.hostDirection]: globalRefs$B.direction,
5103
+ ...helperTheme$6,
5066
5104
 
5067
- [vars$$.textAlign]: 'center',
5105
+ [vars$10.hostWidth]: 'fit-content',
5106
+ [vars$10.hostDirection]: globalRefs$B.direction,
5068
5107
 
5069
- [vars$$.fontFamily]: globalRefs$B.fonts.font1.family,
5070
- [vars$$.fontWeight]: '400',
5108
+ [vars$10.textAlign]: 'center',
5071
5109
 
5072
- [vars$$.verticalPadding]: '0.25em',
5073
- [vars$$.horizontalPadding]: '0.5em',
5110
+ [vars$10.fontFamily]: globalRefs$B.fonts.font1.family,
5111
+ [vars$10.fontWeight]: '400',
5074
5112
 
5075
- [vars$$.borderWidth]: globalRefs$B.border.xs,
5076
- [vars$$.borderRadius]: globalRefs$B.radius.xs,
5077
- [vars$$.borderColor]: 'transparent',
5078
- [vars$$.borderStyle]: 'solid',
5113
+ [vars$10.verticalPadding]: '0.25em',
5114
+ [vars$10.horizontalPadding]: '0.5em',
5115
+
5116
+ [vars$10.borderWidth]: globalRefs$B.border.xs,
5117
+ [vars$10.borderRadius]: globalRefs$B.radius.xs,
5118
+ [vars$10.borderColor]: 'transparent',
5119
+ [vars$10.borderStyle]: 'solid',
5079
5120
 
5080
5121
  _fullWidth: {
5081
- [vars$$.hostWidth]: '100%',
5122
+ [vars$10.hostWidth]: '100%',
5082
5123
  },
5083
5124
 
5084
5125
  size: {
5085
- xs: { [vars$$.fontSize]: '12px' },
5086
- sm: { [vars$$.fontSize]: '14px' },
5087
- md: { [vars$$.fontSize]: '16px' },
5088
- lg: { [vars$$.fontSize]: '18px' },
5126
+ xs: { [vars$10.fontSize]: '12px' },
5127
+ sm: { [vars$10.fontSize]: '14px' },
5128
+ md: { [vars$10.fontSize]: '16px' },
5129
+ lg: { [vars$10.fontSize]: '18px' },
5130
+ },
5131
+
5132
+ variant: {
5133
+ contained: {
5134
+ [vars$10.backgroundColor]: globalRefs$B.colors.surface.main,
5135
+ },
5136
+ },
5137
+
5138
+ $breakpoints: {
5139
+ indicator: '(max-width: 65px)',
5140
+ },
5141
+
5142
+ _shrinkToIndicator: {
5143
+ '$breakpoints.indicator': {
5144
+ [vars$10.hostWidth]: '13px',
5145
+ [vars$10.hostHeight]: '13px',
5146
+ [vars$10.borderRadius]: '50%',
5147
+ [vars$10.fontSize]: '0',
5148
+ [vars$10.textIndent]: '-9999px',
5149
+ },
5089
5150
  },
5090
5151
 
5091
5152
  mode: {
5092
5153
  default: {
5093
- [vars$$.textColor]: globalRefs$B.colors.surface.dark,
5154
+ [vars$10.textColor]: globalRefs$B.colors.surface.dark,
5094
5155
  _bordered: {
5095
- [vars$$.borderColor]: globalRefs$B.colors.surface.light,
5156
+ [vars$10.borderColor]: globalRefs$B.colors.surface.light,
5096
5157
  },
5097
5158
  },
5098
5159
  primary: {
5099
- [vars$$.textColor]: globalRefs$B.colors.primary.main,
5160
+ [vars$10.textColor]: globalRefs$B.colors.primary.main,
5100
5161
  _bordered: {
5101
- [vars$$.borderColor]: globalRefs$B.colors.primary.light,
5162
+ [vars$10.borderColor]: globalRefs$B.colors.primary.light,
5102
5163
  },
5103
5164
  },
5104
5165
  secondary: {
5105
- [vars$$.textColor]: globalRefs$B.colors.secondary.main,
5166
+ [vars$10.textColor]: globalRefs$B.colors.secondary.main,
5106
5167
  _bordered: {
5107
- [vars$$.borderColor]: globalRefs$B.colors.secondary.light,
5168
+ [vars$10.borderColor]: globalRefs$B.colors.secondary.light,
5108
5169
  },
5109
5170
  },
5110
5171
  error: {
5111
- [vars$$.textColor]: globalRefs$B.colors.error.main,
5172
+ [vars$10.textColor]: globalRefs$B.colors.error.main,
5112
5173
  _bordered: {
5113
- [vars$$.borderColor]: globalRefs$B.colors.error.light,
5174
+ [vars$10.borderColor]: globalRefs$B.colors.error.light,
5114
5175
  },
5115
5176
  },
5116
5177
  success: {
5117
- [vars$$.textColor]: globalRefs$B.colors.success.main,
5178
+ [vars$10.textColor]: globalRefs$B.colors.success.main,
5118
5179
  _bordered: {
5119
- [vars$$.borderColor]: globalRefs$B.colors.success.light,
5180
+ [vars$10.borderColor]: globalRefs$B.colors.success.light,
5120
5181
  },
5121
5182
  },
5122
5183
  },
5184
+
5185
+ shadow: {
5186
+ sm: {
5187
+ [vars$10.boxShadow]: `${globalRefs$B.shadow.wide.sm} ${shadowColor$6}, ${globalRefs$B.shadow.narrow.sm} ${shadowColor$6}`,
5188
+ },
5189
+ md: {
5190
+ [vars$10.boxShadow]: `${globalRefs$B.shadow.wide.md} ${shadowColor$6}, ${globalRefs$B.shadow.narrow.md} ${shadowColor$6}`,
5191
+ },
5192
+ lg: {
5193
+ [vars$10.boxShadow]: `${globalRefs$B.shadow.wide.lg} ${shadowColor$6}, ${globalRefs$B.shadow.narrow.lg} ${shadowColor$6}`,
5194
+ },
5195
+ xl: {
5196
+ [vars$10.boxShadow]: `${globalRefs$B.shadow.wide.xl} ${shadowColor$6}, ${globalRefs$B.shadow.narrow.xl} ${shadowColor$6}`,
5197
+ },
5198
+ },
5123
5199
  };
5124
5200
 
5125
5201
  var badge$3 = /*#__PURE__*/Object.freeze({
5126
5202
  __proto__: null,
5127
5203
  default: badge$2,
5128
- vars: vars$$
5204
+ vars: vars$10
5129
5205
  });
5130
5206
 
5131
- const componentName$1a = getComponentName('avatar');
5207
+ const componentName$1b = getComponentName('avatar');
5132
5208
  class RawAvatar extends createBaseClass$1({
5133
- componentName: componentName$1a,
5209
+ componentName: componentName$1b,
5134
5210
  baseSelector: ':host > .wrapper',
5135
5211
  }) {
5136
5212
  constructor() {
@@ -5281,37 +5357,37 @@ const avatar = {
5281
5357
  },
5282
5358
  };
5283
5359
 
5284
- const vars$_ = {
5360
+ const vars$$ = {
5285
5361
  ...compVars$8,
5286
5362
  };
5287
5363
 
5288
5364
  var avatar$1 = /*#__PURE__*/Object.freeze({
5289
5365
  __proto__: null,
5290
5366
  default: avatar,
5291
- vars: vars$_
5367
+ vars: vars$$
5292
5368
  });
5293
5369
 
5294
- const vars$Z = IconClass.cssVarList;
5370
+ const vars$_ = IconClass.cssVarList;
5295
5371
 
5296
5372
  const icon$3 = {};
5297
5373
 
5298
5374
  var icon$4 = /*#__PURE__*/Object.freeze({
5299
5375
  __proto__: null,
5300
5376
  default: icon$3,
5301
- vars: vars$Z
5377
+ vars: vars$_
5302
5378
  });
5303
5379
 
5304
- const vars$Y = ImageClass.cssVarList;
5380
+ const vars$Z = ImageClass.cssVarList;
5305
5381
 
5306
5382
  const image = {};
5307
5383
 
5308
5384
  var image$1 = /*#__PURE__*/Object.freeze({
5309
5385
  __proto__: null,
5310
5386
  default: image,
5311
- vars: vars$Y
5387
+ vars: vars$Z
5312
5388
  });
5313
5389
 
5314
- const componentName$19 = getComponentName('list-item');
5390
+ const componentName$1a = getComponentName('list-item');
5315
5391
 
5316
5392
  const customMixin$f = (superclass) =>
5317
5393
  class ListItemMixinClass extends superclass {
@@ -5368,12 +5444,12 @@ const ListItemClass = compose(
5368
5444
  componentNameValidationMixin$1,
5369
5445
  customMixin$f,
5370
5446
  activeableMixin,
5371
- )(createBaseClass$1({ componentName: componentName$19, baseSelector: 'slot' }));
5447
+ )(createBaseClass$1({ componentName: componentName$1a, baseSelector: 'slot' }));
5372
5448
 
5373
- const componentName$18 = getComponentName('list');
5449
+ const componentName$19 = getComponentName('list');
5374
5450
 
5375
5451
  class RawList extends createBaseClass$1({
5376
- componentName: componentName$18,
5452
+ componentName: componentName$19,
5377
5453
  baseSelector: '.wrapper',
5378
5454
  }) {
5379
5455
  static get observedAttributes() {
@@ -5544,7 +5620,7 @@ const ListClass = compose(
5544
5620
  componentNameValidationMixin$1,
5545
5621
  )(RawList);
5546
5622
 
5547
- const componentName$17 = getComponentName('apps-list');
5623
+ const componentName$18 = getComponentName('apps-list');
5548
5624
 
5549
5625
  const itemRenderer$4 = ({ name, icon, url }, _, ref) => `
5550
5626
  <a ${url ? `href="${url}" title="${url}"` : ''} ${ref.openInSameWindow ? '' : 'target="_blank"'}>
@@ -5668,7 +5744,7 @@ const AppsListClass = compose(
5668
5744
  slots: ['empty-state'],
5669
5745
  wrappedEleName: 'descope-list',
5670
5746
  excludeAttrsSync: ['tabindex', 'class', 'empty', 'style'],
5671
- componentName: componentName$17,
5747
+ componentName: componentName$18,
5672
5748
  style: () => `
5673
5749
  :host {
5674
5750
  width: 100%;
@@ -5703,60 +5779,60 @@ const AppsListClass = compose(
5703
5779
  }),
5704
5780
  );
5705
5781
 
5706
- const vars$X = AppsListClass.cssVarList;
5782
+ const vars$Y = AppsListClass.cssVarList;
5707
5783
  const globalRefs$z = getThemeRefs$1(globals);
5708
5784
 
5709
5785
  const defaultHeight = '400px';
5710
5786
 
5711
5787
  const appsList = {
5712
- [vars$X.itemsTextAlign]: 'start',
5713
- [vars$X.hostDirection]: globalRefs$z.direction,
5714
- [vars$X.maxHeight]: defaultHeight,
5715
- [vars$X.itemHoverBackgroundColor]: globalRefs$z.colors.surface.highlight,
5788
+ [vars$Y.itemsTextAlign]: 'start',
5789
+ [vars$Y.hostDirection]: globalRefs$z.direction,
5790
+ [vars$Y.maxHeight]: defaultHeight,
5791
+ [vars$Y.itemHoverBackgroundColor]: globalRefs$z.colors.surface.highlight,
5716
5792
 
5717
5793
  _empty: {
5718
- [vars$X.minHeight]: defaultHeight,
5794
+ [vars$Y.minHeight]: defaultHeight,
5719
5795
  },
5720
5796
 
5721
5797
  size: {
5722
5798
  xs: {
5723
- [vars$X.itemsFontSize]: '14px',
5724
- [vars$X.itemsFontWeight]: 'normal',
5799
+ [vars$Y.itemsFontSize]: '14px',
5800
+ [vars$Y.itemsFontWeight]: 'normal',
5725
5801
  },
5726
5802
  sm: {
5727
- [vars$X.itemsFontSize]: '14px',
5728
- [vars$X.itemsFontWeight]: 'normal',
5803
+ [vars$Y.itemsFontSize]: '14px',
5804
+ [vars$Y.itemsFontWeight]: 'normal',
5729
5805
  },
5730
5806
  md: {
5731
- [vars$X.itemsFontSize]: '16px',
5732
- [vars$X.itemsFontWeight]: 'normal',
5807
+ [vars$Y.itemsFontSize]: '16px',
5808
+ [vars$Y.itemsFontWeight]: 'normal',
5733
5809
  },
5734
5810
  lg: {
5735
- [vars$X.itemsFontSize]: '20px',
5736
- [vars$X.itemsFontWeight]: 'normal',
5811
+ [vars$Y.itemsFontSize]: '20px',
5812
+ [vars$Y.itemsFontWeight]: 'normal',
5737
5813
  },
5738
5814
  },
5739
5815
 
5740
5816
  itemPadding: {
5741
5817
  xs: {
5742
- [vars$X.itemVerticalPadding]: globalRefs$z.spacing.xs,
5743
- [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.xs,
5818
+ [vars$Y.itemVerticalPadding]: globalRefs$z.spacing.xs,
5819
+ [vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.xs,
5744
5820
  },
5745
5821
  sm: {
5746
- [vars$X.itemVerticalPadding]: globalRefs$z.spacing.sm,
5747
- [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.sm,
5822
+ [vars$Y.itemVerticalPadding]: globalRefs$z.spacing.sm,
5823
+ [vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.sm,
5748
5824
  },
5749
5825
  md: {
5750
- [vars$X.itemVerticalPadding]: globalRefs$z.spacing.md,
5751
- [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.md,
5826
+ [vars$Y.itemVerticalPadding]: globalRefs$z.spacing.md,
5827
+ [vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.md,
5752
5828
  },
5753
5829
  lg: {
5754
- [vars$X.itemVerticalPadding]: globalRefs$z.spacing.lg,
5755
- [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.lg,
5830
+ [vars$Y.itemVerticalPadding]: globalRefs$z.spacing.lg,
5831
+ [vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.lg,
5756
5832
  },
5757
5833
  xl: {
5758
- [vars$X.itemVerticalPadding]: globalRefs$z.spacing.xl,
5759
- [vars$X.itemHorizontalPadding]: globalRefs$z.spacing.xl,
5834
+ [vars$Y.itemVerticalPadding]: globalRefs$z.spacing.xl,
5835
+ [vars$Y.itemHorizontalPadding]: globalRefs$z.spacing.xl,
5760
5836
  },
5761
5837
  },
5762
5838
  };
@@ -5764,7 +5840,7 @@ const appsList = {
5764
5840
  var appsList$1 = /*#__PURE__*/Object.freeze({
5765
5841
  __proto__: null,
5766
5842
  default: appsList,
5767
- vars: vars$X
5843
+ vars: vars$Y
5768
5844
  });
5769
5845
 
5770
5846
  const globalRefs$y = getThemeRefs$1(globals);
@@ -5773,7 +5849,7 @@ const compVars$7 = ListClass.cssVarList;
5773
5849
 
5774
5850
  const [helperTheme$5, helperRefs$5, helperVars$5] = createHelperVars$1(
5775
5851
  { shadowColor: '#00000020' },
5776
- componentName$18,
5852
+ componentName$19,
5777
5853
  );
5778
5854
 
5779
5855
  const { shadowColor: shadowColor$5 } = helperRefs$5;
@@ -5834,7 +5910,7 @@ const list = {
5834
5910
  },
5835
5911
  };
5836
5912
 
5837
- const vars$W = {
5913
+ const vars$X = {
5838
5914
  ...compVars$7,
5839
5915
  ...helperVars$5,
5840
5916
  };
@@ -5842,60 +5918,60 @@ const vars$W = {
5842
5918
  var list$1 = /*#__PURE__*/Object.freeze({
5843
5919
  __proto__: null,
5844
5920
  default: list,
5845
- vars: vars$W
5921
+ vars: vars$X
5846
5922
  });
5847
5923
 
5848
5924
  const globalRefs$x = getThemeRefs$1(globals);
5849
5925
 
5850
- const vars$V = ListItemClass.cssVarList;
5926
+ const vars$W = ListItemClass.cssVarList;
5851
5927
 
5852
5928
  const listItem = {
5853
- [vars$V.backgroundColor]: globalRefs$x.colors.surface.main,
5854
- [vars$V.verticalPadding]: globalRefs$x.spacing.lg,
5855
- [vars$V.horizontalPadding]: globalRefs$x.spacing.lg,
5856
- [vars$V.gap]: globalRefs$x.spacing.md,
5857
- [vars$V.borderStyle]: 'solid',
5858
- [vars$V.borderWidth]: globalRefs$x.border.xs,
5859
- [vars$V.borderColor]: globalRefs$x.colors.surface.main,
5860
- [vars$V.borderRadius]: globalRefs$x.radius.sm,
5861
- [vars$V.cursor]: 'pointer',
5862
- [vars$V.alignItems]: 'center',
5863
- [vars$V.flexDirection]: 'row',
5864
- [vars$V.transition]: 'border-color 0.2s, background-color 0.2s',
5929
+ [vars$W.backgroundColor]: globalRefs$x.colors.surface.main,
5930
+ [vars$W.verticalPadding]: globalRefs$x.spacing.lg,
5931
+ [vars$W.horizontalPadding]: globalRefs$x.spacing.lg,
5932
+ [vars$W.gap]: globalRefs$x.spacing.md,
5933
+ [vars$W.borderStyle]: 'solid',
5934
+ [vars$W.borderWidth]: globalRefs$x.border.xs,
5935
+ [vars$W.borderColor]: globalRefs$x.colors.surface.main,
5936
+ [vars$W.borderRadius]: globalRefs$x.radius.sm,
5937
+ [vars$W.cursor]: 'pointer',
5938
+ [vars$W.alignItems]: 'center',
5939
+ [vars$W.flexDirection]: 'row',
5940
+ [vars$W.transition]: 'border-color 0.2s, background-color 0.2s',
5865
5941
 
5866
5942
  variant: {
5867
5943
  tile: {
5868
- [vars$V.alignItems]: 'flex-start',
5869
- [vars$V.flexDirection]: 'column',
5870
- [vars$V.borderColor]: globalRefs$x.colors.surface.light,
5944
+ [vars$W.alignItems]: 'flex-start',
5945
+ [vars$W.flexDirection]: 'column',
5946
+ [vars$W.borderColor]: globalRefs$x.colors.surface.light,
5871
5947
  },
5872
5948
  },
5873
5949
 
5874
5950
  _hover: {
5875
- [vars$V.backgroundColor]: globalRefs$x.colors.surface.highlight,
5951
+ [vars$W.backgroundColor]: globalRefs$x.colors.surface.highlight,
5876
5952
  },
5877
5953
 
5878
5954
  _active: {
5879
- [vars$V.backgroundColor]: globalRefs$x.colors.surface.main,
5880
- [vars$V.borderColor]: globalRefs$x.colors.primary.light,
5881
- [vars$V.outline]: `1px solid ${globalRefs$x.colors.primary.light}`,
5955
+ [vars$W.backgroundColor]: globalRefs$x.colors.surface.main,
5956
+ [vars$W.borderColor]: globalRefs$x.colors.primary.light,
5957
+ [vars$W.outline]: `1px solid ${globalRefs$x.colors.primary.light}`,
5882
5958
  },
5883
5959
  };
5884
5960
 
5885
5961
  var listItem$1 = /*#__PURE__*/Object.freeze({
5886
5962
  __proto__: null,
5887
5963
  default: listItem,
5888
- vars: vars$V
5964
+ vars: vars$W
5889
5965
  });
5890
5966
 
5891
- const componentName$16 = getComponentName('autocomplete-field-internal');
5967
+ const componentName$17 = getComponentName('autocomplete-field-internal');
5892
5968
 
5893
5969
  createBaseInputClass$1({
5894
- componentName: componentName$16,
5970
+ componentName: componentName$17,
5895
5971
  baseSelector: '',
5896
5972
  });
5897
5973
 
5898
- const componentName$15 = getComponentName('autocomplete-field');
5974
+ const componentName$16 = getComponentName('autocomplete-field');
5899
5975
 
5900
5976
  const customMixin$d = (superclass) =>
5901
5977
  class AutocompleteFieldMixinClass extends superclass {
@@ -5916,15 +5992,15 @@ const customMixin$d = (superclass) =>
5916
5992
  const template = document.createElement('template');
5917
5993
 
5918
5994
  template.innerHTML = `
5919
- <${componentName$16}
5995
+ <${componentName$17}
5920
5996
  tabindex="-1"
5921
- ></${componentName$16}>
5997
+ ></${componentName$17}>
5922
5998
  `;
5923
5999
 
5924
6000
  this.baseElement.appendChild(template.content.cloneNode(true));
5925
6001
 
5926
6002
  this.inputElement = this.shadowRoot.querySelector(
5927
- componentName$16,
6003
+ componentName$17,
5928
6004
  );
5929
6005
 
5930
6006
  forwardAttrs(this, this.inputElement, {
@@ -6043,34 +6119,34 @@ const AutocompleteFieldClass = compose(
6043
6119
  }
6044
6120
  `,
6045
6121
  excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
6046
- componentName: componentName$15,
6122
+ componentName: componentName$16,
6047
6123
  }),
6048
6124
  );
6049
6125
 
6050
- const vars$U = AutocompleteFieldClass.cssVarList;
6126
+ const vars$V = AutocompleteFieldClass.cssVarList;
6051
6127
  const globalRefs$w = getThemeRefs$1(globals);
6052
6128
 
6053
6129
  const autocompleteField = {
6054
- [vars$U.hostWidth]: refs$1.width,
6055
- [vars$U.hostDirection]: refs$1.direction,
6056
- [vars$U.fontSize]: refs$1.fontSize,
6057
- [vars$U.checkmarkDisplay]: 'none',
6058
- [vars$U.itemPaddingInlineStart]: globalRefs$w.spacing.lg,
6059
- [vars$U.itemPaddingInlineEnd]: globalRefs$w.spacing.lg,
6060
- [vars$U.selectedItemBackground]: globalRefs$w.colors.primary.light,
6061
- [vars$U.selectedItemHoverBackground]: globalRefs$w.colors.primary.light,
6062
- [vars$U.selectedItemFocusBackground]: globalRefs$w.colors.primary.light,
6063
- [vars$U.itemHoverBackground]: globalRefs$w.colors.primary.highlight,
6130
+ [vars$V.hostWidth]: refs$1.width,
6131
+ [vars$V.hostDirection]: refs$1.direction,
6132
+ [vars$V.fontSize]: refs$1.fontSize,
6133
+ [vars$V.checkmarkDisplay]: 'none',
6134
+ [vars$V.itemPaddingInlineStart]: globalRefs$w.spacing.lg,
6135
+ [vars$V.itemPaddingInlineEnd]: globalRefs$w.spacing.lg,
6136
+ [vars$V.selectedItemBackground]: globalRefs$w.colors.primary.light,
6137
+ [vars$V.selectedItemHoverBackground]: globalRefs$w.colors.primary.light,
6138
+ [vars$V.selectedItemFocusBackground]: globalRefs$w.colors.primary.light,
6139
+ [vars$V.itemHoverBackground]: globalRefs$w.colors.primary.highlight,
6064
6140
 
6065
6141
  _fullWidth: {
6066
- [vars$U.hostWidth]: '100%',
6142
+ [vars$V.hostWidth]: '100%',
6067
6143
  },
6068
6144
  };
6069
6145
 
6070
6146
  var autocompleteField$1 = /*#__PURE__*/Object.freeze({
6071
6147
  __proto__: null,
6072
6148
  default: autocompleteField,
6073
- vars: vars$U
6149
+ vars: vars$V
6074
6150
  });
6075
6151
 
6076
6152
  const initGoogleMapsLoader = (apiKey) => {
@@ -6297,7 +6373,7 @@ class RadarConnector extends createBaseConnectorClass() {
6297
6373
  }
6298
6374
  }
6299
6375
 
6300
- const componentName$14 = getComponentName('address-field-internal');
6376
+ const componentName$15 = getComponentName('address-field-internal');
6301
6377
 
6302
6378
  const GOOGLE_MAPS_CONNECTOR_TEMPLATE = 'google-maps-places';
6303
6379
  const RADAR_CONNECTOR_TEMPLATE = 'radar';
@@ -6308,7 +6384,7 @@ const CONNECTOR_CLASSES = {
6308
6384
  };
6309
6385
 
6310
6386
  const BaseInputClass$5 = createBaseInputClass$1({
6311
- componentName: componentName$14,
6387
+ componentName: componentName$15,
6312
6388
  baseSelector: '',
6313
6389
  });
6314
6390
  const initConnectorAttrs = ['public-api-key'];
@@ -6415,7 +6491,7 @@ compose(
6415
6491
  connectorMixin({ connectorClasses: CONNECTOR_CLASSES }),
6416
6492
  )(RawAddressFieldInternal);
6417
6493
 
6418
- const componentName$13 = getComponentName('address-field');
6494
+ const componentName$14 = getComponentName('address-field');
6419
6495
 
6420
6496
  const customMixin$c = (superclass) =>
6421
6497
  class AddressFieldMixinClass extends superclass {
@@ -6444,15 +6520,15 @@ const customMixin$c = (superclass) =>
6444
6520
  const template = document.createElement('template');
6445
6521
 
6446
6522
  template.innerHTML = `
6447
- <${componentName$14}
6523
+ <${componentName$15}
6448
6524
  tabindex="-1"
6449
- ></${componentName$14}>
6525
+ ></${componentName$15}>
6450
6526
  `;
6451
6527
 
6452
6528
  this.baseElement.appendChild(template.content.cloneNode(true));
6453
6529
 
6454
6530
  this.inputElement = this.shadowRoot.querySelector(
6455
- componentName$14,
6531
+ componentName$15,
6456
6532
  );
6457
6533
 
6458
6534
  forwardAttrs(this, this.inputElement, {
@@ -6530,7 +6606,7 @@ const AddressFieldClass = compose(
6530
6606
  width: 100%;
6531
6607
  }
6532
6608
 
6533
- ${componentName$14} {
6609
+ ${componentName$15} {
6534
6610
  display: inline-block;
6535
6611
  box-sizing: border-box;
6536
6612
  user-select: none;
@@ -6538,30 +6614,30 @@ const AddressFieldClass = compose(
6538
6614
  max-width: 100%;
6539
6615
  }
6540
6616
 
6541
- ${componentName$14} ::slotted {
6617
+ ${componentName$15} ::slotted {
6542
6618
  padding: 0;
6543
6619
  }
6544
6620
  `,
6545
6621
  excludeAttrsSync: ['tabindex', 'error-message', 'label', 'style'],
6546
- componentName: componentName$13,
6622
+ componentName: componentName$14,
6547
6623
  }),
6548
6624
  );
6549
6625
 
6550
- const vars$T = AddressFieldClass.cssVarList;
6626
+ const vars$U = AddressFieldClass.cssVarList;
6551
6627
 
6552
6628
  const addressField = {
6553
- [vars$T.hostWidth]: refs$1.width,
6554
- [vars$T.hostDirection]: refs$1.direction,
6629
+ [vars$U.hostWidth]: refs$1.width,
6630
+ [vars$U.hostDirection]: refs$1.direction,
6555
6631
 
6556
6632
  _fullWidth: {
6557
- [vars$T.hostWidth]: '100%',
6633
+ [vars$U.hostWidth]: '100%',
6558
6634
  },
6559
6635
  };
6560
6636
 
6561
6637
  var addressField$1 = /*#__PURE__*/Object.freeze({
6562
6638
  __proto__: null,
6563
6639
  default: addressField,
6564
- vars: vars$T
6640
+ vars: vars$U
6565
6641
  });
6566
6642
 
6567
6643
  var clockIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgdmlld0JveD0iMCAwIDEwNCAxMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01MC4zMzM0IDAuMzMzMjUyQzIyLjgzMzQgMC4zMzMyNTIgMC4zMzMzNzQgMjIuODMzMyAwLjMzMzM3NCA1MC4zMzMzQzAuMzMzMzc0IDc3LjgzMzMgMjIuODMzNCAxMDAuMzMzIDUwLjMzMzQgMTAwLjMzM0M3Ny44MzM0IDEwMC4zMzMgMTAwLjMzMyA3Ny44MzMzIDEwMC4zMzMgNTAuMzMzM0MxMDAuMzMzIDIyLjgzMzMgNzcuODMzNCAwLjMzMzI1MiA1MC4zMzM0IDAuMzMzMjUyWk01MC4zMzM0IDg3LjgzMzNDMjkuNzA4NCA4Ny44MzMzIDEyLjgzMzQgNzAuOTU4MyAxMi44MzM0IDUwLjMzMzNDMTIuODMzNCAyOS43MDgzIDI5LjcwODQgMTIuODMzMyA1MC4zMzM0IDEyLjgzMzNDNzAuOTU4NCAxMi44MzMzIDg3LjgzMzQgMjkuNzA4MyA4Ny44MzM0IDUwLjMzMzNDODcuODMzNCA3MC45NTgzIDcwLjk1ODQgODcuODMzMyA1MC4zMzM0IDg3LjgzMzNaIiBmaWxsPSIjMTgxQTFDIi8+CjxwYXRoIGQ9Ik01MC4zMzI4IDE5LjA4MzNINDQuMDgyOFY1Ni41ODMySDc1LjMzMjhWNTAuMzMzMkg1MC4zMzI4VjE5LjA4MzNaIiBmaWxsPSIjMTgxQTFDIi8+Cjwvc3ZnPgo=";
@@ -6583,12 +6659,12 @@ const formatTime = (ms = 0) => {
6583
6659
  return timeParts.join(':');
6584
6660
  };
6585
6661
 
6586
- const componentName$12 = getComponentName('timer');
6662
+ const componentName$13 = getComponentName('timer');
6587
6663
 
6588
6664
  const observedAttributes$5 = ['seconds', 'hide-icon', 'paused'];
6589
6665
 
6590
6666
  const BaseClass$7 = createBaseClass$1({
6591
- componentName: componentName$12,
6667
+ componentName: componentName$13,
6592
6668
  baseSelector: ':host > .wrapper',
6593
6669
  });
6594
6670
 
@@ -6772,44 +6848,44 @@ const TimerClass = compose(
6772
6848
  )(RawTimer);
6773
6849
 
6774
6850
  const globalRefs$v = getThemeRefs$1(globals);
6775
- const vars$S = TimerClass.cssVarList;
6851
+ const vars$T = TimerClass.cssVarList;
6776
6852
 
6777
6853
  const timer = {
6778
- [vars$S.hostDirection]: globalRefs$v.direction,
6779
- [vars$S.gap]: '0.25em',
6780
- [vars$S.fontFamily]: globalRefs$v.fonts.font1.family,
6781
- [vars$S.minHeight]: '1.5em',
6782
- [vars$S.lineHeight]: '1em',
6783
- [vars$S.fontWeight]: globalRefs$v.fonts.font1.fontWeight,
6784
- [vars$S.textColor]: globalRefs$v.colors.surface.contrast,
6785
- [vars$S.iconColor]: globalRefs$v.colors.surface.contrast,
6786
- [vars$S.iconSize]: '1em',
6854
+ [vars$T.hostDirection]: globalRefs$v.direction,
6855
+ [vars$T.gap]: '0.25em',
6856
+ [vars$T.fontFamily]: globalRefs$v.fonts.font1.family,
6857
+ [vars$T.minHeight]: '1.5em',
6858
+ [vars$T.lineHeight]: '1em',
6859
+ [vars$T.fontWeight]: globalRefs$v.fonts.font1.fontWeight,
6860
+ [vars$T.textColor]: globalRefs$v.colors.surface.contrast,
6861
+ [vars$T.iconColor]: globalRefs$v.colors.surface.contrast,
6862
+ [vars$T.iconSize]: '1em',
6787
6863
 
6788
6864
  size: {
6789
- xs: { [vars$S.fontSize]: '12px' },
6790
- sm: { [vars$S.fontSize]: '14px' },
6791
- md: { [vars$S.fontSize]: '16px' },
6792
- lg: { [vars$S.fontSize]: '18px' },
6865
+ xs: { [vars$T.fontSize]: '12px' },
6866
+ sm: { [vars$T.fontSize]: '14px' },
6867
+ md: { [vars$T.fontSize]: '16px' },
6868
+ lg: { [vars$T.fontSize]: '18px' },
6793
6869
  },
6794
6870
 
6795
6871
  textAlign: {
6796
- right: { [vars$S.textAlign]: 'right' },
6797
- left: { [vars$S.textAlign]: 'left' },
6798
- center: { [vars$S.textAlign]: 'center' },
6872
+ right: { [vars$T.textAlign]: 'right' },
6873
+ left: { [vars$T.textAlign]: 'left' },
6874
+ center: { [vars$T.textAlign]: 'center' },
6799
6875
  },
6800
6876
 
6801
6877
  _fullWidth: {
6802
- [vars$S.hostWidth]: '100%',
6878
+ [vars$T.hostWidth]: '100%',
6803
6879
  },
6804
6880
  };
6805
6881
 
6806
6882
  var timer$1 = /*#__PURE__*/Object.freeze({
6807
6883
  __proto__: null,
6808
6884
  default: timer,
6809
- vars: vars$S
6885
+ vars: vars$T
6810
6886
  });
6811
6887
 
6812
- const componentName$11 = getComponentName('timer-button');
6888
+ const componentName$12 = getComponentName('timer-button');
6813
6889
 
6814
6890
  const buttonAttrs = [
6815
6891
  'button-variant',
@@ -6840,7 +6916,7 @@ const mapTimerAttrs = {
6840
6916
  };
6841
6917
 
6842
6918
  const BaseClass$6 = createBaseClass$1({
6843
- componentName: componentName$11,
6919
+ componentName: componentName$12,
6844
6920
  baseSelector: ':host > div',
6845
6921
  });
6846
6922
 
@@ -6949,30 +7025,30 @@ const TimerButtonClass = compose(
6949
7025
  )(RawTimerButton);
6950
7026
 
6951
7027
  const globalRefs$u = getThemeRefs$1(globals);
6952
- const vars$R = TimerButtonClass.cssVarList;
7028
+ const vars$S = TimerButtonClass.cssVarList;
6953
7029
 
6954
7030
  const timerButton = {
6955
- [vars$R.gap]: globalRefs$u.spacing.sm,
6956
- [vars$R.flexDirection]: 'column',
7031
+ [vars$S.gap]: globalRefs$u.spacing.sm,
7032
+ [vars$S.flexDirection]: 'column',
6957
7033
 
6958
7034
  _horizontal: {
6959
- [vars$R.flexDirection]: 'row',
7035
+ [vars$S.flexDirection]: 'row',
6960
7036
  },
6961
7037
 
6962
7038
  _fullWidth: {
6963
- [vars$R.hostWidth]: '100%',
7039
+ [vars$S.hostWidth]: '100%',
6964
7040
  },
6965
7041
  };
6966
7042
 
6967
7043
  var timerButton$1 = /*#__PURE__*/Object.freeze({
6968
7044
  __proto__: null,
6969
7045
  default: timerButton,
6970
- vars: vars$R
7046
+ vars: vars$S
6971
7047
  });
6972
7048
 
6973
- const componentName$10 = getComponentName('password-strength');
7049
+ const componentName$11 = getComponentName('password-strength');
6974
7050
  class RawPasswordStrength extends createBaseClass$1({
6975
- componentName: componentName$10,
7051
+ componentName: componentName$11,
6976
7052
  baseSelector: ':host > .wrapper',
6977
7053
  }) {
6978
7054
  static get observedAttributes() {
@@ -7163,22 +7239,22 @@ const passwordStrength = {
7163
7239
  }
7164
7240
  };
7165
7241
 
7166
- const vars$Q = {
7242
+ const vars$R = {
7167
7243
  ...compVars$6,
7168
7244
  };
7169
7245
 
7170
7246
  var passwordStrength$1 = /*#__PURE__*/Object.freeze({
7171
7247
  __proto__: null,
7172
7248
  default: passwordStrength,
7173
- vars: vars$Q
7249
+ vars: vars$R
7174
7250
  });
7175
7251
 
7176
7252
  var chevronIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iYmxhY2siIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNy4yMTkzIDkuMjcyODNDMTcuNjU4NCA4Ljg3OTEyIDE4LjMzMzQgOC45MTU4NyAxOC43MjcyIDkuMzU0OTJDMTkuMTIwOSA5Ljc5Mzk3IDE5LjA4NDEgMTAuNDY5MSAxOC42NDUxIDEwLjg2MjhDMTguNjQ1MSAxMC44NjI4IDEzLjA0NTcgMTYuMDAyMiAxMi42NCAxNi4zNjZDMTIuMjM0MyAxNi43Mjk4IDExLjc2MDggMTYuNzI5OCAxMS4zNTUyIDE2LjM2Nkw1LjM1NDkyIDEwLjg2MjhDNC45MTU4NyAxMC40NjkxIDQuODc5MTIgOS43OTM5NyA1LjI3MjgzIDkuMzU0OTJDNS42NjY1NSA4LjkxNTg3IDYuMzQxNjQgOC44NzkxMiA2Ljc4MDY5IDkuMjcyODNMMTIgMTQuMTM2OEwxNy4yMTkzIDkuMjcyODNaIi8+Cjwvc3ZnPgo=";
7177
7253
 
7178
- const componentName$$ = getComponentName('collapsible-container');
7254
+ const componentName$10 = getComponentName('collapsible-container');
7179
7255
 
7180
7256
  class RawCollapsibleContainer extends createBaseClass$1({
7181
- componentName: componentName$$,
7257
+ componentName: componentName$10,
7182
7258
  baseSelector: 'slot',
7183
7259
  }) {
7184
7260
  static get observedAttributes() {
@@ -7413,7 +7489,7 @@ const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars$1(
7413
7489
  {
7414
7490
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
7415
7491
  },
7416
- componentName$$
7492
+ componentName$10
7417
7493
  );
7418
7494
 
7419
7495
  const { shadowColor: shadowColor$4 } = helperRefs$4;
@@ -7513,7 +7589,7 @@ const collapsibleContainer = {
7513
7589
  }
7514
7590
  };
7515
7591
 
7516
- const vars$P = {
7592
+ const vars$Q = {
7517
7593
  ...compVars$5,
7518
7594
  ...helperVars$4,
7519
7595
  };
@@ -7521,10 +7597,10 @@ const vars$P = {
7521
7597
  var collapsibleContainer$1 = /*#__PURE__*/Object.freeze({
7522
7598
  __proto__: null,
7523
7599
  default: collapsibleContainer,
7524
- vars: vars$P
7600
+ vars: vars$Q
7525
7601
  });
7526
7602
 
7527
- const componentName$_ = getComponentName('recovery-codes');
7603
+ const componentName$$ = getComponentName('recovery-codes');
7528
7604
 
7529
7605
  const itemRenderer$3 = ({ value }, _, ref) => {
7530
7606
  return `
@@ -7535,7 +7611,7 @@ const itemRenderer$3 = ({ value }, _, ref) => {
7535
7611
  };
7536
7612
 
7537
7613
  class RawRecoveryCodes extends createBaseClass$1({
7538
- componentName: componentName$_,
7614
+ componentName: componentName$$,
7539
7615
  baseSelector: ':host > div',
7540
7616
  }) {
7541
7617
  static get observedAttributes() {
@@ -7675,35 +7751,35 @@ const RecoveryCodesClass = compose(
7675
7751
  )(RawRecoveryCodes);
7676
7752
 
7677
7753
  const globalRefs$r = getThemeRefs$1(globals);
7678
- const vars$O = RecoveryCodesClass.cssVarList;
7754
+ const vars$P = RecoveryCodesClass.cssVarList;
7679
7755
  const textVars$5 = TextClass.cssVarList;
7680
7756
 
7681
7757
  const recoveryCodes = {
7682
- [vars$O.hostMinWidth]: '190px',
7683
- [vars$O.hostDirection]: globalRefs$r.direction,
7684
- [vars$O.iconColor]: useVar$1(textVars$5.textColor),
7685
- [vars$O.iconSize]: useVar$1(textVars$5.fontSize),
7686
- [vars$O.iconGap]: '8px',
7687
- [vars$O.bulletGap]: '0.35em',
7758
+ [vars$P.hostMinWidth]: '190px',
7759
+ [vars$P.hostDirection]: globalRefs$r.direction,
7760
+ [vars$P.iconColor]: useVar$1(textVars$5.textColor),
7761
+ [vars$P.iconSize]: useVar$1(textVars$5.fontSize),
7762
+ [vars$P.iconGap]: '8px',
7763
+ [vars$P.bulletGap]: '0.35em',
7688
7764
 
7689
7765
  textAlign: {
7690
- right: { [vars$O.textAlign]: 'flex-end' },
7691
- left: { [vars$O.textAlign]: 'flex-start' },
7692
- center: { [vars$O.textAlign]: 'center' },
7766
+ right: { [vars$P.textAlign]: 'flex-end' },
7767
+ left: { [vars$P.textAlign]: 'flex-start' },
7768
+ center: { [vars$P.textAlign]: 'center' },
7693
7769
  },
7694
7770
 
7695
7771
  _fullWidth: {
7696
- [vars$O.hostWidth]: '100%',
7772
+ [vars$P.hostWidth]: '100%',
7697
7773
  },
7698
7774
  };
7699
7775
 
7700
7776
  var recoveryCodes$1 = /*#__PURE__*/Object.freeze({
7701
7777
  __proto__: null,
7702
7778
  default: recoveryCodes,
7703
- vars: vars$O
7779
+ vars: vars$P
7704
7780
  });
7705
7781
 
7706
- const componentName$Z = getComponentName('outbound-apps');
7782
+ const componentName$_ = getComponentName('outbound-apps');
7707
7783
 
7708
7784
  const itemRenderer$2 = (
7709
7785
  { name, description, logo, appId, isConnected },
@@ -7749,7 +7825,7 @@ const itemRenderer$2 = (
7749
7825
  };
7750
7826
 
7751
7827
  const BaseClass$5 = createBaseClass$1({
7752
- componentName: componentName$Z,
7828
+ componentName: componentName$_,
7753
7829
  baseSelector: 'descope-list',
7754
7830
  });
7755
7831
 
@@ -7925,36 +8001,36 @@ const OutboundAppsClass = compose(
7925
8001
  componentNameValidationMixin$1,
7926
8002
  )(RawOutboundAppsClass);
7927
8003
 
7928
- const vars$N = OutboundAppsClass.cssVarList;
8004
+ const vars$O = OutboundAppsClass.cssVarList;
7929
8005
 
7930
8006
  const outboundApps = {
7931
- [vars$N.iconColor]: globals.colors.primary.main,
7932
- [vars$N.errorIconColor]: globals.colors.error.main,
8007
+ [vars$O.iconColor]: globals.colors.primary.main,
8008
+ [vars$O.errorIconColor]: globals.colors.error.main,
7933
8009
 
7934
- [vars$N.appLogoGap]: globals.spacing.md,
7935
- [vars$N.contentGap]: globals.spacing.xs,
8010
+ [vars$O.appLogoGap]: globals.spacing.md,
8011
+ [vars$O.contentGap]: globals.spacing.xs,
7936
8012
 
7937
8013
  // list-item overrides
7938
- [vars$N.itemCursor]: 'default',
7939
- [vars$N.itemOutline]: 'none',
7940
- [vars$N.itemBorderColor]: 'transparent',
8014
+ [vars$O.itemCursor]: 'default',
8015
+ [vars$O.itemOutline]: 'none',
8016
+ [vars$O.itemBorderColor]: 'transparent',
7941
8017
 
7942
- [vars$N.listPadding]: '0',
7943
- [vars$N.listBorderWidth]: '0',
7944
- [vars$N.listBoxShadow]: 'none',
8018
+ [vars$O.listPadding]: '0',
8019
+ [vars$O.listBorderWidth]: '0',
8020
+ [vars$O.listBoxShadow]: 'none',
7945
8021
 
7946
8022
  size: {
7947
8023
  xs: {
7948
- [vars$N.fontSize]: '0.6em',
8024
+ [vars$O.fontSize]: '0.6em',
7949
8025
  },
7950
8026
  sm: {
7951
- [vars$N.fontSize]: '0.8em',
8027
+ [vars$O.fontSize]: '0.8em',
7952
8028
  },
7953
8029
  md: {
7954
- [vars$N.fontSize]: '1em',
8030
+ [vars$O.fontSize]: '1em',
7955
8031
  },
7956
8032
  lg: {
7957
- [vars$N.fontSize]: '1.5em',
8033
+ [vars$O.fontSize]: '1.5em',
7958
8034
  },
7959
8035
  },
7960
8036
  };
@@ -7962,13 +8038,13 @@ const outboundApps = {
7962
8038
  var outboundApps$1 = /*#__PURE__*/Object.freeze({
7963
8039
  __proto__: null,
7964
8040
  default: outboundApps,
7965
- vars: vars$N
8041
+ vars: vars$O
7966
8042
  });
7967
8043
 
7968
- const componentName$Y = getComponentName('outbound-app-button');
8044
+ const componentName$Z = getComponentName('outbound-app-button');
7969
8045
 
7970
8046
  class RawOutboundAppButton extends createBaseClass$1({
7971
- componentName: componentName$Y,
8047
+ componentName: componentName$Z,
7972
8048
  baseSelector: ':host > descope-button',
7973
8049
  }) {
7974
8050
  static get observedAttributes() {
@@ -8067,12 +8143,12 @@ const outboundAppButton = {
8067
8143
  },
8068
8144
  };
8069
8145
 
8070
- const vars$M = compVars$4;
8146
+ const vars$N = compVars$4;
8071
8147
 
8072
8148
  var outboundAppButton$1 = /*#__PURE__*/Object.freeze({
8073
8149
  __proto__: null,
8074
8150
  default: outboundAppButton,
8075
- vars: vars$M
8151
+ vars: vars$N
8076
8152
  });
8077
8153
 
8078
8154
  var desktopDeviceIconLight = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwIDE4QzIxLjEgMTggMjEuOTkgMTcuMSAyMS45OSAxNkwyMiA2QzIyIDQuOSAyMS4xIDQgMjAgNEg0QzIuOSA0IDIgNC45IDIgNlYxNkMyIDE3LjEgMi45IDE4IDQgMThIMFYyMEgyNFYxOEgyMFpNNCA2SDIwVjE2SDRWNloiIGZpbGw9IiM2MzZDNzQiLz4KPC9zdmc+Cg==";
@@ -8150,7 +8226,7 @@ const getDeviceIcon = (deviceType) => {
8150
8226
  };
8151
8227
  };
8152
8228
 
8153
- const componentName$X = getComponentName('trusted-devices');
8229
+ const componentName$Y = getComponentName('trusted-devices');
8154
8230
 
8155
8231
  const itemRenderer$1 = (
8156
8232
  { id, name, lastLoginDate, deviceType, isCurrent },
@@ -8239,7 +8315,7 @@ const itemRenderer$1 = (
8239
8315
  };
8240
8316
 
8241
8317
  const BaseClass$4 = createBaseClass$1({
8242
- componentName: componentName$X,
8318
+ componentName: componentName$Y,
8243
8319
  baseSelector: ListClass.componentName,
8244
8320
  });
8245
8321
 
@@ -8529,51 +8605,51 @@ const TrustedDevicesClass = compose(
8529
8605
  componentNameValidationMixin$1,
8530
8606
  )(RawTrustedDevicesClass);
8531
8607
 
8532
- const vars$L = TrustedDevicesClass.cssVarList;
8608
+ const vars$M = TrustedDevicesClass.cssVarList;
8533
8609
 
8534
8610
  const TrustedDevices = {
8535
- [vars$L.hostWidth]: 'auto',
8536
- [vars$L.hostWidth]: '300px',
8537
- [vars$L.hostMinWidth]: '300px',
8538
-
8539
- [vars$L.listBackgroundColor]: 'transparent',
8540
- [vars$L.listBorderRadius]: '0',
8541
- [vars$L.listBorderWidth]: '0',
8542
- [vars$L.listPadding]: '0',
8543
- [vars$L.listBoxShadow]: 'none',
8544
- [vars$L.listItemsGap]: globals.spacing.lg,
8545
-
8546
- [vars$L.itemBorderColor]: globals.colors.surface.light,
8547
- [vars$L.itemVerticalPadding]: globals.spacing.lg,
8548
- [vars$L.itemHorizontalPadding]: globals.spacing.lg,
8549
- [vars$L.itemBorderRadius]: globals.radius.xs,
8550
- [vars$L.itemOutline]: 'transparent',
8551
- [vars$L.itemBackgroundColor]: 'transparent',
8552
- [vars$L.itemCursor]: 'default',
8553
- [vars$L.itemContentGap]: globals.spacing.sm,
8554
-
8555
- [vars$L.badgeBorderColor]: globals.colors.surface.light,
8556
- [vars$L.badgeTextColor]: globals.colors.surface.dark,
8557
- [vars$L.badgeBorderRadius]: globals.radius.xs,
8558
- [vars$L.badgeBackgroundColor]: globals.colors.surface.main,
8559
-
8560
- [vars$L.devicePanelGap]: globals.spacing.md,
8561
- [vars$L.deviceIconGap]: globals.spacing.md,
8562
- [vars$L.deviceIconSize]: '24px',
8563
- [vars$L.lastLoginLabelGap]: globals.spacing.xs,
8611
+ [vars$M.hostWidth]: 'auto',
8612
+ [vars$M.hostWidth]: '300px',
8613
+ [vars$M.hostMinWidth]: '300px',
8614
+
8615
+ [vars$M.listBackgroundColor]: 'transparent',
8616
+ [vars$M.listBorderRadius]: '0',
8617
+ [vars$M.listBorderWidth]: '0',
8618
+ [vars$M.listPadding]: '0',
8619
+ [vars$M.listBoxShadow]: 'none',
8620
+ [vars$M.listItemsGap]: globals.spacing.lg,
8621
+
8622
+ [vars$M.itemBorderColor]: globals.colors.surface.light,
8623
+ [vars$M.itemVerticalPadding]: globals.spacing.lg,
8624
+ [vars$M.itemHorizontalPadding]: globals.spacing.lg,
8625
+ [vars$M.itemBorderRadius]: globals.radius.xs,
8626
+ [vars$M.itemOutline]: 'transparent',
8627
+ [vars$M.itemBackgroundColor]: 'transparent',
8628
+ [vars$M.itemCursor]: 'default',
8629
+ [vars$M.itemContentGap]: globals.spacing.sm,
8630
+
8631
+ [vars$M.badgeBorderColor]: globals.colors.surface.light,
8632
+ [vars$M.badgeTextColor]: globals.colors.surface.dark,
8633
+ [vars$M.badgeBorderRadius]: globals.radius.xs,
8634
+ [vars$M.badgeBackgroundColor]: globals.colors.surface.main,
8635
+
8636
+ [vars$M.devicePanelGap]: globals.spacing.md,
8637
+ [vars$M.deviceIconGap]: globals.spacing.md,
8638
+ [vars$M.deviceIconSize]: '24px',
8639
+ [vars$M.lastLoginLabelGap]: globals.spacing.xs,
8564
8640
 
8565
8641
  _fullWidth: {
8566
- [vars$L.hostWidth]: '100%',
8642
+ [vars$M.hostWidth]: '100%',
8567
8643
  },
8568
8644
  };
8569
8645
 
8570
8646
  var trustedDevices = /*#__PURE__*/Object.freeze({
8571
8647
  __proto__: null,
8572
8648
  default: TrustedDevices,
8573
- vars: vars$L
8649
+ vars: vars$M
8574
8650
  });
8575
8651
 
8576
- const componentName$W = getComponentName('tooltip');
8652
+ const componentName$X = getComponentName('tooltip');
8577
8653
 
8578
8654
  const tooltipAttrs = [
8579
8655
  'text',
@@ -8584,7 +8660,7 @@ const tooltipAttrs = [
8584
8660
  ];
8585
8661
 
8586
8662
  const BaseClass$3 = createBaseClass$1({
8587
- componentName: componentName$W,
8663
+ componentName: componentName$X,
8588
8664
  baseSelector: 'vaadin-tooltip',
8589
8665
  });
8590
8666
 
@@ -8833,13 +8909,13 @@ const TooltipClass = compose(
8833
8909
  )(RawTooltip);
8834
8910
 
8835
8911
  const globalRefs$q = getThemeRefs$1(globals);
8836
- const vars$K = TooltipClass.cssVarList;
8912
+ const vars$L = TooltipClass.cssVarList;
8837
8913
 
8838
8914
  const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars$1(
8839
8915
  {
8840
8916
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
8841
8917
  },
8842
- componentName$W
8918
+ componentName$X
8843
8919
  );
8844
8920
 
8845
8921
  const { shadowColor: shadowColor$3 } = helperRefs$3;
@@ -8847,36 +8923,36 @@ const defaultShadow = `${globalRefs$q.shadow.wide.sm} ${shadowColor$3}, ${global
8847
8923
 
8848
8924
  const tooltip = {
8849
8925
  ...helperTheme$3,
8850
- [vars$K.fontFamily]: globalRefs$q.fonts.font1.family,
8851
- [vars$K.fontSize]: globals.typography.body2.size,
8852
- [vars$K.fontWeight]: globals.typography.body2.weight,
8853
- [vars$K.textColor]: globalRefs$q.colors.surface.contrast,
8854
- [vars$K.hostDirection]: globalRefs$q.direction,
8855
- [vars$K.backgroundColor]: globalRefs$q.colors.surface.main,
8856
- [vars$K.borderColor]: globalRefs$q.colors.surface.light,
8857
- [vars$K.borderStyle]: 'solid',
8858
- [vars$K.borderWidth]: globalRefs$q.border.xs,
8859
- [vars$K.borderRadius]: globalRefs$q.radius.xs,
8860
- [vars$K.horizontalPadding]: globalRefs$q.spacing.md,
8861
- [vars$K.verticalPadding]: globalRefs$q.spacing.sm,
8862
- [vars$K.boxShadow]: defaultShadow,
8926
+ [vars$L.fontFamily]: globalRefs$q.fonts.font1.family,
8927
+ [vars$L.fontSize]: globals.typography.body2.size,
8928
+ [vars$L.fontWeight]: globals.typography.body2.weight,
8929
+ [vars$L.textColor]: globalRefs$q.colors.surface.contrast,
8930
+ [vars$L.hostDirection]: globalRefs$q.direction,
8931
+ [vars$L.backgroundColor]: globalRefs$q.colors.surface.main,
8932
+ [vars$L.borderColor]: globalRefs$q.colors.surface.light,
8933
+ [vars$L.borderStyle]: 'solid',
8934
+ [vars$L.borderWidth]: globalRefs$q.border.xs,
8935
+ [vars$L.borderRadius]: globalRefs$q.radius.xs,
8936
+ [vars$L.horizontalPadding]: globalRefs$q.spacing.md,
8937
+ [vars$L.verticalPadding]: globalRefs$q.spacing.sm,
8938
+ [vars$L.boxShadow]: defaultShadow,
8863
8939
 
8864
8940
  shadow: {
8865
8941
  sm: {
8866
- [vars$K.boxShadow]: defaultShadow,
8942
+ [vars$L.boxShadow]: defaultShadow,
8867
8943
  },
8868
8944
  md: {
8869
- [vars$K.boxShadow]: `${globalRefs$q.shadow.wide.md} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.md} ${shadowColor$3}`,
8945
+ [vars$L.boxShadow]: `${globalRefs$q.shadow.wide.md} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.md} ${shadowColor$3}`,
8870
8946
  },
8871
8947
  lg: {
8872
- [vars$K.boxShadow]: `${globalRefs$q.shadow.wide.lg} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.lg} ${shadowColor$3}`,
8948
+ [vars$L.boxShadow]: `${globalRefs$q.shadow.wide.lg} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.lg} ${shadowColor$3}`,
8873
8949
  },
8874
8950
  xl: {
8875
- [vars$K.boxShadow]: `${globalRefs$q.shadow.wide.xl} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.xl} ${shadowColor$3}`,
8951
+ [vars$L.boxShadow]: `${globalRefs$q.shadow.wide.xl} ${shadowColor$3}, ${globalRefs$q.shadow.narrow.xl} ${shadowColor$3}`,
8876
8952
  },
8877
8953
  '2xl': {
8878
8954
  [helperVars$3.shadowColor]: '#00000050', // mimic daisyUI shadow settings
8879
- [vars$K.boxShadow]: `${globalRefs$q.shadow.wide['2xl']} ${shadowColor$3}`,
8955
+ [vars$L.boxShadow]: `${globalRefs$q.shadow.wide['2xl']} ${shadowColor$3}`,
8880
8956
  },
8881
8957
  },
8882
8958
  };
@@ -8884,7 +8960,7 @@ const tooltip = {
8884
8960
  var tooltip$1 = /*#__PURE__*/Object.freeze({
8885
8961
  __proto__: null,
8886
8962
  default: tooltip,
8887
- vars: vars$K
8963
+ vars: vars$L
8888
8964
  });
8889
8965
 
8890
8966
  // Data service for country/subdivision/city data.
@@ -8937,7 +9013,7 @@ const fetchLabels = async (baseUrl) => {
8937
9013
  const fetchCitiesForCountry = async (countryIso2, baseUrl) =>
8938
9014
  fetchJson(`${baseUrl}/countries/${countryIso2}/cities.json`);
8939
9015
 
8940
- const componentName$V = getComponentName(
9016
+ const componentName$W = getComponentName(
8941
9017
  'country-subdivision-city-field-internal',
8942
9018
  );
8943
9019
 
@@ -8997,7 +9073,7 @@ const comboBoxHTML = (id) =>
8997
9073
  // --- Base class ---
8998
9074
 
8999
9075
  const BaseInputClass$4 = createBaseInputClass$1({
9000
- componentName: componentName$V,
9076
+ componentName: componentName$W,
9001
9077
  baseSelector: '',
9002
9078
  });
9003
9079
 
@@ -9173,7 +9249,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
9173
9249
  if (e.isTrusted) {
9174
9250
  const firstInvalidCombo = this.#allCombos.find(
9175
9251
  (combo) =>
9176
- !combo.classList.contains(`${componentName$V}-hidden`) &&
9252
+ !combo.classList.contains(`${componentName$W}-hidden`) &&
9177
9253
  !combo.checkValidity(),
9178
9254
  );
9179
9255
  (firstInvalidCombo || this.#getFirstVisibleCombo())?.focus();
@@ -9270,7 +9346,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
9270
9346
  // Iterate in reverse so reportValidity's focus() lands on the first invalid combo last.
9271
9347
  #handleInvalidCombos() {
9272
9348
  for (const combo of [...this.#allCombos].reverse()) {
9273
- if (combo.classList.contains(`${componentName$V}-hidden`)) continue;
9349
+ if (combo.classList.contains(`${componentName$W}-hidden`)) continue;
9274
9350
  if (!combo.checkValidity()) combo.reportValidity();
9275
9351
  }
9276
9352
  }
@@ -9543,7 +9619,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
9543
9619
  if (!this.#pendingValue && this.#defaultCountry)
9544
9620
  this.#onCountrySelected(this.#defaultCountry);
9545
9621
  } catch (e) {
9546
- console.error(`[${componentName$V}] Failed to load countries`, e);
9622
+ console.error(`[${componentName$W}] Failed to load countries`, e);
9547
9623
  } finally {
9548
9624
  this.#countryComboBox.removeAttribute('loading');
9549
9625
  }
@@ -9568,7 +9644,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
9568
9644
  }
9569
9645
  } catch (e) {
9570
9646
  console.error(
9571
- `[${componentName$V}] Failed to load subdivisions for ${countryIso2}`,
9647
+ `[${componentName$W}] Failed to load subdivisions for ${countryIso2}`,
9572
9648
  e,
9573
9649
  );
9574
9650
  this.#subdivisionVisible = false;
@@ -9596,7 +9672,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
9596
9672
  }
9597
9673
  } catch (e) {
9598
9674
  console.error(
9599
- `[${componentName$V}] Failed to load cities for ${countryIso2}${stateCode ? `/${stateCode}` : ''}`,
9675
+ `[${componentName$W}] Failed to load cities for ${countryIso2}${stateCode ? `/${stateCode}` : ''}`,
9600
9676
  e,
9601
9677
  );
9602
9678
  } finally {
@@ -9688,7 +9764,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
9688
9764
  }
9689
9765
 
9690
9766
  #setVisible(el, visible) {
9691
- el?.classList.toggle(`${componentName$V}-hidden`, !visible);
9767
+ el?.classList.toggle(`${componentName$W}-hidden`, !visible);
9692
9768
  }
9693
9769
 
9694
9770
  #updateRequiredOnCombos() {
@@ -9758,7 +9834,7 @@ class RawCountrySubdivisionCityFieldInternal extends BaseInputClass$4 {
9758
9834
 
9759
9835
  #getFirstVisibleCombo() {
9760
9836
  return this.#allCombos.find(
9761
- (combo) => !combo.classList.contains(`${componentName$V}-hidden`),
9837
+ (combo) => !combo.classList.contains(`${componentName$W}-hidden`),
9762
9838
  );
9763
9839
  }
9764
9840
 
@@ -9775,7 +9851,7 @@ compose()(
9775
9851
  RawCountrySubdivisionCityFieldInternal,
9776
9852
  );
9777
9853
 
9778
- const componentName$U = getComponentName('country-subdivision-city-field');
9854
+ const componentName$V = getComponentName('country-subdivision-city-field');
9779
9855
 
9780
9856
  const customMixin$b = (superclass) =>
9781
9857
  class CountrySubdivisionCityFieldMixinClass extends superclass {
@@ -9785,15 +9861,15 @@ const customMixin$b = (superclass) =>
9785
9861
  const template = document.createElement('template');
9786
9862
 
9787
9863
  template.innerHTML = `
9788
- <${componentName$V}
9864
+ <${componentName$W}
9789
9865
  tabindex="-1"
9790
- ></${componentName$V}>
9866
+ ></${componentName$W}>
9791
9867
  `;
9792
9868
 
9793
9869
  this.baseElement.appendChild(template.content.cloneNode(true));
9794
9870
 
9795
9871
  this.inputElement = this.shadowRoot.querySelector(
9796
- componentName$V,
9872
+ componentName$W,
9797
9873
  );
9798
9874
 
9799
9875
  forwardAttrs(this, this.inputElement, {
@@ -9830,11 +9906,11 @@ const customMixin$b = (superclass) =>
9830
9906
  const host$l = { selector: () => ':host' };
9831
9907
 
9832
9908
  const internalWrapper$2 = {
9833
- selector: `${componentName$V} > .wrapper`,
9909
+ selector: `${componentName$W} > .wrapper`,
9834
9910
  };
9835
9911
 
9836
9912
  const internalComboBoxes = {
9837
- selector: `${componentName$V} > .wrapper > descope-combo-box`,
9913
+ selector: `${componentName$W} > .wrapper > descope-combo-box`,
9838
9914
  };
9839
9915
 
9840
9916
  const CountrySubdivisionCityFieldClass = compose(
@@ -9884,7 +9960,7 @@ const CountrySubdivisionCityFieldClass = compose(
9884
9960
  width: 100%;
9885
9961
  }
9886
9962
 
9887
- ${componentName$V} {
9963
+ ${componentName$W} {
9888
9964
  display: inline-block;
9889
9965
  box-sizing: border-box;
9890
9966
  user-select: none;
@@ -9892,47 +9968,241 @@ const CountrySubdivisionCityFieldClass = compose(
9892
9968
  max-width: 100%;
9893
9969
  }
9894
9970
 
9895
- ${componentName$V} > .wrapper {
9971
+ ${componentName$W} > .wrapper {
9896
9972
  display: flex;
9897
9973
  width: 100%;
9898
9974
  flex-wrap: wrap;
9899
9975
  }
9900
9976
 
9901
- .${componentName$V}-hidden {
9977
+ .${componentName$W}-hidden {
9902
9978
  display: none;
9903
9979
  }
9904
9980
 
9905
9981
  `,
9906
9982
  excludeAttrsSync: ['tabindex', 'style', 'error-message'],
9907
- componentName: componentName$U,
9983
+ componentName: componentName$V,
9908
9984
  }),
9909
9985
  );
9910
9986
 
9911
- const vars$J = CountrySubdivisionCityFieldClass.cssVarList;
9987
+ const vars$K = CountrySubdivisionCityFieldClass.cssVarList;
9912
9988
 
9913
9989
  const countrySubdivisionCityField = {
9914
- [vars$J.hostWidth]: refs$1.width,
9915
- [vars$J.hostDirection]: refs$1.direction,
9916
- [vars$J.flexDirection]: 'column',
9917
- [vars$J.flexGap]: '0.5em',
9918
- [vars$J.itemAlignment]: 'stretch',
9919
- [vars$J.itemFlexGrow]: '0',
9920
- [vars$J.itemWidth]: 'auto',
9990
+ [vars$K.hostWidth]: refs$1.width,
9991
+ [vars$K.hostDirection]: refs$1.direction,
9992
+ [vars$K.flexDirection]: 'column',
9993
+ [vars$K.flexGap]: '0.5em',
9994
+ [vars$K.itemAlignment]: 'stretch',
9995
+ [vars$K.itemFlexGrow]: '0',
9996
+ [vars$K.itemWidth]: 'auto',
9921
9997
 
9922
9998
  _fullWidth: {
9923
- [vars$J.hostWidth]: '100%',
9999
+ [vars$K.hostWidth]: '100%',
9924
10000
  },
9925
10001
 
9926
10002
  _horizontal: {
9927
- [vars$J.flexDirection]: 'row',
9928
- [vars$J.itemFlexGrow]: '1',
10003
+ [vars$K.flexDirection]: 'row',
10004
+ [vars$K.itemFlexGrow]: '1',
9929
10005
  },
9930
10006
  };
9931
10007
 
9932
10008
  var countrySubdivisionCityField$1 = /*#__PURE__*/Object.freeze({
9933
10009
  __proto__: null,
9934
10010
  default: countrySubdivisionCityField,
9935
- vars: vars$J
10011
+ vars: vars$K
10012
+ });
10013
+
10014
+ const componentName$U = getComponentName('attachment');
10015
+
10016
+ const ATTACHMENT_POSITIONS = [
10017
+ 'top-end',
10018
+ 'top-start',
10019
+ 'top-center',
10020
+ 'bottom-start',
10021
+ 'bottom-end',
10022
+ 'bottom-center',
10023
+ ];
10024
+
10025
+ const DEFAULT_POSITION = ATTACHMENT_POSITIONS[0];
10026
+
10027
+ class RawAttachment extends createBaseClass$1({
10028
+ componentName: componentName$U,
10029
+ baseSelector: ':host > .wrapper',
10030
+ }) {
10031
+ constructor() {
10032
+ super();
10033
+
10034
+ this.attachShadow({ mode: 'open' }).innerHTML = `
10035
+ <div class="wrapper">
10036
+ <slot></slot>
10037
+ <div class="attachment-container">
10038
+ <slot name="attachment"></slot>
10039
+ </div>
10040
+ </div>
10041
+ `;
10042
+
10043
+ this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
10044
+ this.attachmentSlot = this.shadowRoot.querySelector(
10045
+ 'slot[name="attachment"]',
10046
+ );
10047
+ }
10048
+
10049
+ static get observedAttributes() {
10050
+ return [...(super.observedAttributes || []), 'position'];
10051
+ }
10052
+
10053
+ attributeChangedCallback(name, oldVal, newVal) {
10054
+ super.attributeChangedCallback?.(name, oldVal, newVal);
10055
+ if (name === 'position' && oldVal !== newVal) {
10056
+ this.#handlePositionChange();
10057
+ }
10058
+ }
10059
+
10060
+ init() {
10061
+ super.init?.();
10062
+
10063
+ injectStyle(
10064
+ `
10065
+ :host {
10066
+ display: inline-block;
10067
+ }
10068
+ .wrapper {
10069
+ position: relative;
10070
+ display: inline-flex;
10071
+ }
10072
+ .attachment-container {
10073
+ position: absolute;
10074
+ z-index: 1;
10075
+ pointer-events: none;
10076
+ width: 100%;
10077
+ display: flex;
10078
+ align-items: center;
10079
+ container-type: inline-size;
10080
+ }
10081
+ :host(.hidden) {
10082
+ display: none;
10083
+ }
10084
+ `,
10085
+ this,
10086
+ );
10087
+
10088
+ this.#handlePositionChange();
10089
+
10090
+ this.defaultSlot.addEventListener('slotchange', () => {
10091
+ this.#setVisibility();
10092
+ this.#syncDirection();
10093
+ });
10094
+
10095
+ window.requestAnimationFrame(() => {
10096
+ this.#setVisibility();
10097
+ this.#syncDirection();
10098
+ });
10099
+ }
10100
+
10101
+ #setVisibility() {
10102
+ const hasAnchor = this.defaultSlot?.assignedElements()?.length > 0;
10103
+ this.classList.toggle('hidden', !hasAnchor);
10104
+ }
10105
+
10106
+ #syncDirection() {
10107
+ const child = this.defaultSlot?.assignedElements()?.[0];
10108
+ if (!child) return;
10109
+
10110
+ const { direction } = window.getComputedStyle(child);
10111
+
10112
+ // currently we support direction sync only for web-components-ui
10113
+ // elements, which support st-host-direction attribute.
10114
+ this.attachmentSlot?.assignedElements().forEach((el) => {
10115
+ el.setAttribute('st-host-direction', direction);
10116
+ });
10117
+ }
10118
+
10119
+ get offsetX() {
10120
+ return this.getAttribute('offset-x') || '0px';
10121
+ }
10122
+
10123
+ get offsetY() {
10124
+ return this.getAttribute('offset-y') || '0px';
10125
+ }
10126
+
10127
+ #handlePositionChange() {
10128
+ const pos = this.getAttribute('position');
10129
+ if (!ATTACHMENT_POSITIONS.includes(pos)) {
10130
+ this.setAttribute('position', DEFAULT_POSITION);
10131
+ }
10132
+ }
10133
+ }
10134
+
10135
+ const attachmentContainer = { selector: () => '.attachment-container' };
10136
+
10137
+ const AttachmentClass = compose(
10138
+ createStyleMixin$1({
10139
+ mappings: {
10140
+ transform: { ...attachmentContainer },
10141
+ justifyContent: { ...attachmentContainer },
10142
+ maxWidth: { ...attachmentContainer },
10143
+ top: { ...attachmentContainer },
10144
+ bottom: { ...attachmentContainer },
10145
+ left: { ...attachmentContainer },
10146
+ right: { ...attachmentContainer },
10147
+ offsetX: {},
10148
+ offsetY: {},
10149
+ },
10150
+ }),
10151
+ draggableMixin$1,
10152
+ componentNameValidationMixin$1,
10153
+ )(RawAttachment);
10154
+
10155
+ const vars$J = AttachmentClass.cssVarList;
10156
+
10157
+ const defaultOffset = '8px';
10158
+ const insetCalc = `calc(${defaultOffset} + var(${vars$J.offsetX}))`;
10159
+
10160
+ const attachment = {
10161
+ [vars$J.maxWidth]: `calc(100% - 2 * ${defaultOffset})`,
10162
+
10163
+ position: {
10164
+ 'top-start': {
10165
+ [vars$J.transform]: 'translateY(-50%)',
10166
+ [vars$J.justifyContent]: 'start',
10167
+ [vars$J.left]: insetCalc,
10168
+ [vars$J.top]: useVar$1(vars$J.offsetY),
10169
+ },
10170
+ 'top-center': {
10171
+ [vars$J.transform]: 'translate(-50%, -50%)',
10172
+ [vars$J.justifyContent]: 'center',
10173
+ [vars$J.top]: useVar$1(vars$J.offsetY),
10174
+ [vars$J.left]: '50%',
10175
+ },
10176
+ 'top-end': {
10177
+ [vars$J.transform]: 'translateY(-50%)',
10178
+ [vars$J.justifyContent]: 'end',
10179
+ [vars$J.right]: insetCalc,
10180
+ [vars$J.top]: useVar$1(vars$J.offsetY),
10181
+ },
10182
+ 'bottom-start': {
10183
+ [vars$J.transform]: 'translateY(50%)',
10184
+ [vars$J.justifyContent]: 'start',
10185
+ [vars$J.left]: insetCalc,
10186
+ [vars$J.bottom]: useVar$1(vars$J.offsetY),
10187
+ },
10188
+ 'bottom-center': {
10189
+ [vars$J.bottom]: useVar$1(vars$J.offsetY),
10190
+ [vars$J.transform]: 'translate(-50%, 50%)',
10191
+ [vars$J.justifyContent]: 'center',
10192
+ [vars$J.left]: '50%',
10193
+ },
10194
+ 'bottom-end': {
10195
+ [vars$J.transform]: 'translateY(50%)',
10196
+ [vars$J.justifyContent]: 'end',
10197
+ [vars$J.right]: insetCalc,
10198
+ [vars$J.bottom]: useVar$1(vars$J.offsetY),
10199
+ },
10200
+ },
10201
+ };
10202
+
10203
+ var attachment$1 = /*#__PURE__*/Object.freeze({
10204
+ __proto__: null,
10205
+ default: attachment
9936
10206
  });
9937
10207
 
9938
10208
  const getOverrideCssVarName = (origVarName) => `${origVarName}__override`;
@@ -15645,10 +15915,6 @@ const phoneField = {
15645
15915
  [vars$s.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
15646
15916
  [vars$s.errorMessageIconPosition]: refs.errorMessageIconPosition,
15647
15917
  [vars$s.errorMessageFontSize]: refs.errorMessageFontSize,
15648
-
15649
- // '@overlay': {
15650
- // overlayItemBackgroundColor: 'red'
15651
- // }
15652
15918
  };
15653
15919
 
15654
15920
  var phoneField$1 = /*#__PURE__*/Object.freeze({
@@ -24490,7 +24756,7 @@ const alert = {
24490
24756
  [vars$2.horizontalPadding]: '0',
24491
24757
  [vars$2.verticalPadding]: '0',
24492
24758
  [vars$2.gap]: `0.5em`,
24493
- [vars$2.fontSize]: useVar(vars$13.fontSize),
24759
+ [vars$2.fontSize]: useVar(vars$14.fontSize),
24494
24760
 
24495
24761
  mode: {
24496
24762
  error: {
@@ -24782,6 +25048,7 @@ const components = {
24782
25048
  outboundAppButton: outboundAppButton$1,
24783
25049
  trustedDevices,
24784
25050
  tooltip: tooltip$1,
25051
+ attachment: attachment$1,
24785
25052
  };
24786
25053
 
24787
25054
  const theme = Object.keys(components).reduce(
@@ -24794,7 +25061,7 @@ const vars = Object.keys(components).reduce(
24794
25061
  );
24795
25062
 
24796
25063
  const defaultTheme = { globals: globals$1, components: theme };
24797
- const themeVars = { globals: vars$15, components: vars };
25064
+ const themeVars = { globals: vars$16, components: vars };
24798
25065
 
24799
25066
  const colors = {
24800
25067
  surface: {
@@ -25298,6 +25565,7 @@ var calcScore = /*#__PURE__*/Object.freeze({
25298
25565
  exports.AddressFieldClass = AddressFieldClass;
25299
25566
  exports.AlertClass = AlertClass;
25300
25567
  exports.AppsListClass = AppsListClass;
25568
+ exports.AttachmentClass = AttachmentClass;
25301
25569
  exports.AutocompleteFieldClass = AutocompleteFieldClass;
25302
25570
  exports.AvatarClass = AvatarClass;
25303
25571
  exports.BadgeClass = BadgeClass;