@descope/web-components-ui 2.2.13 → 2.2.15

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.
@@ -3381,10 +3381,10 @@ const mode = {
3381
3381
  surface: globalRefs$H.colors.surface,
3382
3382
  };
3383
3383
 
3384
- const [helperTheme$5, helperRefs$5, helperVars$5] = createHelperVars$1({ mode }, componentName$1e);
3384
+ const [helperTheme$6, helperRefs$6, helperVars$6] = createHelperVars$1({ mode }, componentName$1e);
3385
3385
 
3386
3386
  const button = {
3387
- ...helperTheme$5,
3387
+ ...helperTheme$6,
3388
3388
 
3389
3389
  [compVars$9.fontFamily]: globalRefs$H.fonts.font1.family,
3390
3390
 
@@ -3436,66 +3436,66 @@ const button = {
3436
3436
 
3437
3437
  _loading: {
3438
3438
  [compVars$9.cursor]: 'wait',
3439
- [compVars$9.labelTextColor]: helperRefs$5.main,
3439
+ [compVars$9.labelTextColor]: helperRefs$6.main,
3440
3440
  },
3441
3441
 
3442
3442
  _disabled: {
3443
- [helperVars$5.main]: globalRefs$H.colors.surface.light,
3444
- [helperVars$5.dark]: globalRefs$H.colors.surface.dark,
3445
- [helperVars$5.light]: globalRefs$H.colors.surface.light,
3446
- [helperVars$5.contrast]: globalRefs$H.colors.surface.main,
3443
+ [helperVars$6.main]: globalRefs$H.colors.surface.light,
3444
+ [helperVars$6.dark]: globalRefs$H.colors.surface.dark,
3445
+ [helperVars$6.light]: globalRefs$H.colors.surface.light,
3446
+ [helperVars$6.contrast]: globalRefs$H.colors.surface.main,
3447
3447
  [compVars$9.iconColor]: globalRefs$H.colors.surface.main,
3448
3448
  },
3449
3449
 
3450
3450
  variant: {
3451
3451
  contained: {
3452
- [compVars$9.labelTextColor]: helperRefs$5.contrast,
3453
- [compVars$9.backgroundColor]: helperRefs$5.main,
3452
+ [compVars$9.labelTextColor]: helperRefs$6.contrast,
3453
+ [compVars$9.backgroundColor]: helperRefs$6.main,
3454
3454
  _hover: {
3455
- [compVars$9.backgroundColor]: helperRefs$5.dark,
3455
+ [compVars$9.backgroundColor]: helperRefs$6.dark,
3456
3456
  _loading: {
3457
- [compVars$9.backgroundColor]: helperRefs$5.main,
3457
+ [compVars$9.backgroundColor]: helperRefs$6.main,
3458
3458
  },
3459
3459
  },
3460
3460
  _active: {
3461
- [compVars$9.backgroundColor]: helperRefs$5.main,
3461
+ [compVars$9.backgroundColor]: helperRefs$6.main,
3462
3462
  },
3463
3463
  },
3464
3464
 
3465
3465
  outline: {
3466
- [compVars$9.labelTextColor]: helperRefs$5.main,
3467
- [compVars$9.borderColor]: helperRefs$5.main,
3466
+ [compVars$9.labelTextColor]: helperRefs$6.main,
3467
+ [compVars$9.borderColor]: helperRefs$6.main,
3468
3468
  _hover: {
3469
- [compVars$9.labelTextColor]: helperRefs$5.dark,
3470
- [compVars$9.borderColor]: helperRefs$5.dark,
3469
+ [compVars$9.labelTextColor]: helperRefs$6.dark,
3470
+ [compVars$9.borderColor]: helperRefs$6.dark,
3471
3471
  },
3472
3472
  _active: {
3473
- [compVars$9.labelTextColor]: helperRefs$5.main,
3474
- [compVars$9.borderColor]: helperRefs$5.main,
3473
+ [compVars$9.labelTextColor]: helperRefs$6.main,
3474
+ [compVars$9.borderColor]: helperRefs$6.main,
3475
3475
  },
3476
3476
  },
3477
3477
 
3478
3478
  link: {
3479
- [compVars$9.labelTextColor]: helperRefs$5.main,
3479
+ [compVars$9.labelTextColor]: helperRefs$6.main,
3480
3480
  [compVars$9.horizontalPadding]: '0.125em',
3481
3481
  _hover: {
3482
- [compVars$9.labelTextColor]: helperRefs$5.dark,
3482
+ [compVars$9.labelTextColor]: helperRefs$6.dark,
3483
3483
  [compVars$9.labelTextDecoration]: 'underline',
3484
3484
  },
3485
3485
  _active: {
3486
- [compVars$9.labelTextColor]: helperRefs$5.main,
3486
+ [compVars$9.labelTextColor]: helperRefs$6.main,
3487
3487
  },
3488
3488
  },
3489
3489
  },
3490
3490
 
3491
3491
  _focused: {
3492
- [compVars$9.outlineColor]: helperRefs$5.light,
3492
+ [compVars$9.outlineColor]: helperRefs$6.light,
3493
3493
  },
3494
3494
  };
3495
3495
 
3496
3496
  const vars$13 = {
3497
3497
  ...compVars$9,
3498
- ...helperVars$5,
3498
+ ...helperVars$6,
3499
3499
  };
3500
3500
 
3501
3501
  var button$1 = /*#__PURE__*/Object.freeze({
@@ -7013,7 +7013,7 @@ const horizontalAlignment = {
7013
7013
  end: { horizontalAlignment: 'end' },
7014
7014
  };
7015
7015
 
7016
- const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars(
7016
+ const [helperTheme$5, helperRefs$5, helperVars$5] = createHelperVars(
7017
7017
  {
7018
7018
  verticalAlignment,
7019
7019
  horizontalAlignment,
@@ -7022,10 +7022,10 @@ const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars(
7022
7022
  componentName$13
7023
7023
  );
7024
7024
 
7025
- const { shadowColor: shadowColor$4 } = helperRefs$4;
7025
+ const { shadowColor: shadowColor$5 } = helperRefs$5;
7026
7026
 
7027
7027
  const container = {
7028
- ...helperTheme$4,
7028
+ ...helperTheme$5,
7029
7029
 
7030
7030
  [compVars$8.itemsGrow]: '0',
7031
7031
  [compVars$8.hostWidth]: '100%',
@@ -7062,22 +7062,22 @@ const container = {
7062
7062
  direction: {
7063
7063
  row: {
7064
7064
  [compVars$8.flexDirection]: 'row',
7065
- [compVars$8.alignItems]: helperRefs$4.verticalAlignment,
7066
- [compVars$8.justifyContent]: helperRefs$4.horizontalAlignment,
7065
+ [compVars$8.alignItems]: helperRefs$5.verticalAlignment,
7066
+ [compVars$8.justifyContent]: helperRefs$5.horizontalAlignment,
7067
7067
  [compVars$8.flexWrap]: 'wrap',
7068
7068
  horizontalAlignment: {
7069
7069
  spaceBetween: {
7070
- [helperVars$4.horizontalAlignment]: 'space-between',
7070
+ [helperVars$5.horizontalAlignment]: 'space-between',
7071
7071
  },
7072
7072
  },
7073
7073
  },
7074
7074
  column: {
7075
7075
  [compVars$8.flexDirection]: 'column',
7076
- [compVars$8.alignItems]: helperRefs$4.horizontalAlignment,
7077
- [compVars$8.justifyContent]: helperRefs$4.verticalAlignment,
7076
+ [compVars$8.alignItems]: helperRefs$5.horizontalAlignment,
7077
+ [compVars$8.justifyContent]: helperRefs$5.verticalAlignment,
7078
7078
  verticalAlignment: {
7079
7079
  spaceBetween: {
7080
- [helperVars$4.verticalAlignment]: 'space-between',
7080
+ [helperVars$5.verticalAlignment]: 'space-between',
7081
7081
  },
7082
7082
  },
7083
7083
  },
@@ -7091,20 +7091,20 @@ const container = {
7091
7091
 
7092
7092
  shadow: {
7093
7093
  sm: {
7094
- [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.sm} ${shadowColor$4}, ${globalRefs$C.shadow.narrow.sm} ${shadowColor$4}`,
7094
+ [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.sm} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.sm} ${shadowColor$5}`,
7095
7095
  },
7096
7096
  md: {
7097
- [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.md} ${shadowColor$4}, ${globalRefs$C.shadow.narrow.md} ${shadowColor$4}`,
7097
+ [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.md} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.md} ${shadowColor$5}`,
7098
7098
  },
7099
7099
  lg: {
7100
- [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.lg} ${shadowColor$4}, ${globalRefs$C.shadow.narrow.lg} ${shadowColor$4}`,
7100
+ [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.lg} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.lg} ${shadowColor$5}`,
7101
7101
  },
7102
7102
  xl: {
7103
- [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.xl} ${shadowColor$4}, ${globalRefs$C.shadow.narrow.xl} ${shadowColor$4}`,
7103
+ [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.xl} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.xl} ${shadowColor$5}`,
7104
7104
  },
7105
7105
  '2xl': {
7106
- [helperVars$4.shadowColor]: '#00000050', // mimic daisyUI shadow settings
7107
- [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide['2xl']} ${shadowColor$4}`,
7106
+ [helperVars$5.shadowColor]: '#00000050', // mimic daisyUI shadow settings
7107
+ [compVars$8.boxShadow]: `${globalRefs$C.shadow.wide['2xl']} ${shadowColor$5}`,
7108
7108
  },
7109
7109
  },
7110
7110
 
@@ -7121,7 +7121,7 @@ const container = {
7121
7121
 
7122
7122
  const vars$W = {
7123
7123
  ...compVars$8,
7124
- ...helperVars$4,
7124
+ ...helperVars$5,
7125
7125
  };
7126
7126
 
7127
7127
  var container$1 = /*#__PURE__*/Object.freeze({
@@ -7676,7 +7676,7 @@ const DividerClass = compose$1(
7676
7676
  const globalRefs$y = getThemeRefs(globals$1);
7677
7677
  const compVars$7 = DividerClass.cssVarList;
7678
7678
 
7679
- const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars(
7679
+ const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars(
7680
7680
  {
7681
7681
  thickness: '2px',
7682
7682
  spacing: '10px',
@@ -7685,7 +7685,7 @@ const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars(
7685
7685
  );
7686
7686
 
7687
7687
  const divider = {
7688
- ...helperTheme$3,
7688
+ ...helperTheme$4,
7689
7689
 
7690
7690
  [compVars$7.hostDirection]: globalRefs$y.direction,
7691
7691
  [compVars$7.alignItems]: 'center',
@@ -7694,27 +7694,27 @@ const divider = {
7694
7694
  [compVars$7.hostWidth]: '100%',
7695
7695
  [compVars$7.stripeColor]: globalRefs$y.colors.surface.light,
7696
7696
  [compVars$7.stripeColorOpacity]: '0.5',
7697
- [compVars$7.stripeHorizontalThickness]: helperRefs$3.thickness,
7697
+ [compVars$7.stripeHorizontalThickness]: helperRefs$4.thickness,
7698
7698
  [compVars$7.labelTextWidth]: 'fit-content',
7699
7699
  [compVars$7.labelTextMaxWidth]: 'calc(100% - 100px)',
7700
- [compVars$7.labelTextHorizontalSpacing]: helperRefs$3.spacing,
7700
+ [compVars$7.labelTextHorizontalSpacing]: helperRefs$4.spacing,
7701
7701
  [compVars$7.textAlign]: 'center',
7702
7702
 
7703
7703
  _vertical: {
7704
7704
  [compVars$7.minHeight]: '200px',
7705
7705
  [compVars$7.flexDirection]: 'column',
7706
7706
  [compVars$7.hostWidth]: 'fit-content',
7707
- [compVars$7.hostPadding]: `0 calc(${helperRefs$3.thickness} * 3)`,
7708
- [compVars$7.stripeVerticalThickness]: helperRefs$3.thickness,
7707
+ [compVars$7.hostPadding]: `0 calc(${helperRefs$4.thickness} * 3)`,
7708
+ [compVars$7.stripeVerticalThickness]: helperRefs$4.thickness,
7709
7709
  [compVars$7.labelTextWidth]: 'fit-content',
7710
7710
  [compVars$7.labelTextMaxWidth]: '100%',
7711
- [compVars$7.labelTextVerticalSpacing]: helperRefs$3.spacing,
7711
+ [compVars$7.labelTextVerticalSpacing]: helperRefs$4.spacing,
7712
7712
  },
7713
7713
  };
7714
7714
 
7715
7715
  const vars$P = {
7716
7716
  ...compVars$7,
7717
- ...helperVars$3,
7717
+ ...helperVars$4,
7718
7718
  };
7719
7719
 
7720
7720
  var divider$1 = /*#__PURE__*/Object.freeze({
@@ -8168,7 +8168,7 @@ var loaderLinear$1 = /*#__PURE__*/Object.freeze({
8168
8168
  const globalRefs$w = getThemeRefs(globals$1);
8169
8169
  const compVars$6 = LoaderRadialClass.cssVarList;
8170
8170
 
8171
- const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
8171
+ const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars(
8172
8172
  {
8173
8173
  spinnerColor: globalRefs$w.colors.surface.contrast,
8174
8174
  mode: {
@@ -8184,7 +8184,7 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
8184
8184
  );
8185
8185
 
8186
8186
  const loaderRadial = {
8187
- ...helperTheme$2,
8187
+ ...helperTheme$3,
8188
8188
 
8189
8189
  [compVars$6.animationDuration]: '2s',
8190
8190
  [compVars$6.animationTimingFunction]: 'linear',
@@ -8192,9 +8192,9 @@ const loaderRadial = {
8192
8192
  [compVars$6.spinnerBorderStyle]: 'solid',
8193
8193
  [compVars$6.spinnerBorderWidth]: '0.2em',
8194
8194
  [compVars$6.spinnerBorderRadius]: '50%',
8195
- [compVars$6.spinnerQuadrant1Color]: helperRefs$2.spinnerColor,
8195
+ [compVars$6.spinnerQuadrant1Color]: helperRefs$3.spinnerColor,
8196
8196
  [compVars$6.spinnerQuadrant2Color]: 'transparent',
8197
- [compVars$6.spinnerQuadrant3Color]: helperRefs$2.spinnerColor,
8197
+ [compVars$6.spinnerQuadrant3Color]: helperRefs$3.spinnerColor,
8198
8198
  [compVars$6.spinnerQuadrant4Color]: 'transparent',
8199
8199
 
8200
8200
  size: {
@@ -8211,7 +8211,7 @@ const loaderRadial = {
8211
8211
  };
8212
8212
  const vars$M = {
8213
8213
  ...compVars$6,
8214
- ...helperVars$2,
8214
+ ...helperVars$3,
8215
8215
  };
8216
8216
 
8217
8217
  var loaderRadial$1 = /*#__PURE__*/Object.freeze({
@@ -13329,7 +13329,7 @@ const NotificationCardClass = compose$1(
13329
13329
  const globalRefs$o = getThemeRefs(globals$1);
13330
13330
  const vars$B = NotificationCardClass.cssVarList;
13331
13331
 
13332
- const shadowColor$3 = '#00000020';
13332
+ const shadowColor$4 = '#00000020';
13333
13333
 
13334
13334
  const notification = {
13335
13335
  [vars$B.hostMinWidth]: '415px',
@@ -13337,7 +13337,7 @@ const notification = {
13337
13337
  [vars$B.fontSize]: globalRefs$o.typography.body1.size,
13338
13338
  [vars$B.backgroundColor]: globalRefs$o.colors.surface.main,
13339
13339
  [vars$B.textColor]: globalRefs$o.colors.surface.contrast,
13340
- [vars$B.boxShadow]: `${globalRefs$o.shadow.wide.xl} ${shadowColor$3}, ${globalRefs$o.shadow.narrow.xl} ${shadowColor$3}`,
13340
+ [vars$B.boxShadow]: `${globalRefs$o.shadow.wide.xl} ${shadowColor$4}, ${globalRefs$o.shadow.narrow.xl} ${shadowColor$4}`,
13341
13341
  [vars$B.verticalPadding]: '0.625em',
13342
13342
  [vars$B.horizontalPadding]: '1.5em',
13343
13343
  [vars$B.borderRadius]: globalRefs$o.radius.xs,
@@ -18212,7 +18212,7 @@ const DateFieldClass = compose$1(
18212
18212
  )(RawDateFieldClass);
18213
18213
 
18214
18214
  const globalRefs$c = getThemeRefs(globals$1);
18215
- const shadowColor$2 = '#00000020';
18215
+ const shadowColor$3 = '#00000020';
18216
18216
  const { shadow } = globalRefs$c;
18217
18217
 
18218
18218
  const vars$m = DateFieldClass.cssVarList;
@@ -18226,7 +18226,7 @@ const dateField = {
18226
18226
  [vars$m.overlay.backgroundColor]: refs$1.backgroundColor,
18227
18227
  [vars$m.overlay.backdropBackgroundColor]: 'transparent',
18228
18228
  [vars$m.overlay.backdropPointerEvents]: 'all',
18229
- [vars$m.overlay.boxShadow]: `${shadow.wide.xl} ${shadowColor$2}, ${shadow.narrow.xl} ${shadowColor$2}`,
18229
+ [vars$m.overlay.boxShadow]: `${shadow.wide.xl} ${shadowColor$3}, ${shadow.narrow.xl} ${shadowColor$3}`,
18230
18230
  [vars$m.overlay.outlineWidth]: '0',
18231
18231
  [vars$m.overlay.outlineColor]: 'transparent',
18232
18232
  [vars$m.overlay.outlineStyle]: 'none',
@@ -18678,15 +18678,15 @@ const globalRefs$a = getThemeRefs$1(globals);
18678
18678
 
18679
18679
  const compVars$3 = ListClass.cssVarList;
18680
18680
 
18681
- const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars$1(
18681
+ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars$1(
18682
18682
  { shadowColor: '#00000020' },
18683
18683
  componentName$n
18684
18684
  );
18685
18685
 
18686
- const { shadowColor: shadowColor$1 } = helperRefs$1;
18686
+ const { shadowColor: shadowColor$2 } = helperRefs$2;
18687
18687
 
18688
18688
  const list = {
18689
- ...helperTheme$1,
18689
+ ...helperTheme$2,
18690
18690
 
18691
18691
  [compVars$3.hostWidth]: '100%',
18692
18692
  [compVars$3.backgroundColor]: globalRefs$a.colors.surface.main,
@@ -18698,7 +18698,7 @@ const list = {
18698
18698
  [compVars$3.gap]: globalRefs$a.spacing.md,
18699
18699
  [compVars$3.verticalPadding]: globalRefs$a.spacing.lg,
18700
18700
  [compVars$3.horizontalPadding]: globalRefs$a.spacing.lg,
18701
- [compVars$3.boxShadow]: `${globalRefs$a.shadow.wide.sm} ${shadowColor$1}, ${globalRefs$a.shadow.narrow.sm} ${shadowColor$1}`,
18701
+ [compVars$3.boxShadow]: `${globalRefs$a.shadow.wide.sm} ${shadowColor$2}, ${globalRefs$a.shadow.narrow.sm} ${shadowColor$2}`,
18702
18702
  [compVars$3.maxHeight]: '100%',
18703
18703
  [compVars$3.hostDirection]: globalRefs$a.direction,
18704
18704
  [compVars$3.minItemsWidth]: '150px',
@@ -18722,7 +18722,7 @@ const list = {
18722
18722
 
18723
18723
  const vars$k = {
18724
18724
  ...compVars$3,
18725
- ...helperVars$1,
18725
+ ...helperVars$2,
18726
18726
  };
18727
18727
 
18728
18728
  var list$1 = /*#__PURE__*/Object.freeze({
@@ -21944,17 +21944,17 @@ const globalRefs$2 = getThemeRefs$1(globals);
21944
21944
 
21945
21945
  const compVars$1 = CollapsibleContainerClass.cssVarList;
21946
21946
 
21947
- const [helperTheme, helperRefs, helperVars] = createHelperVars$1(
21947
+ const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars$1(
21948
21948
  {
21949
21949
  shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
21950
21950
  },
21951
21951
  componentName$7
21952
21952
  );
21953
21953
 
21954
- const { shadowColor } = helperRefs;
21954
+ const { shadowColor: shadowColor$1 } = helperRefs$1;
21955
21955
 
21956
21956
  const collapsibleContainer = {
21957
- ...helperTheme,
21957
+ ...helperTheme$1,
21958
21958
 
21959
21959
  [compVars$1.hostWidth]: '100%',
21960
21960
  [compVars$1.boxShadow]: 'none',
@@ -22002,20 +22002,20 @@ const collapsibleContainer = {
22002
22002
 
22003
22003
  shadow: {
22004
22004
  sm: {
22005
- [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.sm} ${shadowColor}, ${globalRefs$2.shadow.narrow.sm} ${shadowColor}`,
22005
+ [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.sm} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.sm} ${shadowColor$1}`,
22006
22006
  },
22007
22007
  md: {
22008
- [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.md} ${shadowColor}, ${globalRefs$2.shadow.narrow.md} ${shadowColor}`,
22008
+ [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.md} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.md} ${shadowColor$1}`,
22009
22009
  },
22010
22010
  lg: {
22011
- [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.lg} ${shadowColor}, ${globalRefs$2.shadow.narrow.lg} ${shadowColor}`,
22011
+ [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.lg} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.lg} ${shadowColor$1}`,
22012
22012
  },
22013
22013
  xl: {
22014
- [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.xl} ${shadowColor}, ${globalRefs$2.shadow.narrow.xl} ${shadowColor}`,
22014
+ [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.xl} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.xl} ${shadowColor$1}`,
22015
22015
  },
22016
22016
  '2xl': {
22017
- [helperVars.shadowColor]: '#00000050', // mimic daisyUI shadow settings
22018
- [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide['2xl']} ${shadowColor}`,
22017
+ [helperVars$1.shadowColor]: '#00000050', // mimic daisyUI shadow settings
22018
+ [compVars$1.boxShadow]: `${globalRefs$2.shadow.wide['2xl']} ${shadowColor$1}`,
22019
22019
  },
22020
22020
  },
22021
22021
 
@@ -22050,7 +22050,7 @@ const collapsibleContainer = {
22050
22050
 
22051
22051
  const vars$6 = {
22052
22052
  ...compVars$1,
22053
- ...helperVars,
22053
+ ...helperVars$1,
22054
22054
  };
22055
22055
 
22056
22056
  var collapsibleContainer$1 = /*#__PURE__*/Object.freeze({
@@ -23145,6 +23145,24 @@ class RawTooltip extends BaseClass$1 {
23145
23145
  return this.getAttribute('text')?.trim() || '';
23146
23146
  }
23147
23147
 
23148
+ get isStaticDisplay() {
23149
+ return this.getAttribute('static-display') === 'true';
23150
+ }
23151
+
23152
+ // We use `static-display` for presentation purposes, to show the tooltip content.
23153
+ // This should be used only when `opened` is `true`. Once `static-display` is set,
23154
+ // the overlay would become a `static` element, and will have layout in the presenting page.
23155
+ // This is mainly aimed to solve the presentation problem on our Styles Page in the Console.
23156
+ #handleStaticDisplay() {
23157
+ if (this.isStaticDisplay) {
23158
+ this.#revealWrappedParts();
23159
+ this.setAttribute('inert', 'true');
23160
+ } else {
23161
+ this.#hideWrappedParts();
23162
+ this.removeAttribute('inert');
23163
+ }
23164
+ }
23165
+
23148
23166
  init() {
23149
23167
  super.init();
23150
23168
 
@@ -23153,15 +23171,29 @@ class RawTooltip extends BaseClass$1 {
23153
23171
  this.insertAdjacentHTML('beforeend', '<vaadin-tooltip></vaadin-tooltip>');
23154
23172
  this.tooltip = this.querySelector('vaadin-tooltip');
23155
23173
 
23174
+ this.#hideWrappedParts();
23175
+
23176
+ this.#setTooltipTarget();
23177
+
23178
+ setTimeout(() => this.#onOverlayReady());
23179
+ }
23180
+
23181
+ #hideWrappedParts() {
23156
23182
  this.tooltip.style.width = '0';
23157
23183
  this.tooltip.style.height = '0';
23158
23184
  this.tooltip.style.display = 'block';
23159
23185
  this.tooltip.style.overflow = 'hidden';
23160
23186
  this.tooltip.style.position = 'absolute';
23161
-
23162
- this.#setTooltipTarget();
23163
-
23164
- setTimeout(() => this.#onOverlayReady());
23187
+ }
23188
+
23189
+ #revealWrappedParts() {
23190
+ this.tooltip.style.width = '100%';
23191
+ this.tooltip.style.height = '100%';
23192
+ this.tooltip.style.position = 'static';
23193
+ this.tooltip.style.overflow = 'visible';
23194
+ this.tooltip.textContent = '';
23195
+ this.overlay.style.display = 'block';
23196
+ this.overlay.style.position = 'static';
23165
23197
  }
23166
23198
 
23167
23199
  #onOverlayReady() {
@@ -23226,7 +23258,10 @@ class RawTooltip extends BaseClass$1 {
23226
23258
  // When `opened` attr is used, vaadin doesn't execute `_attachOverlay`,
23227
23259
  // and the overlay element is rendered outside the component, on the top
23228
23260
  // level. We need to move it back to the local component's DOM.
23229
- setTimeout(() => this.tooltip.shadowRoot.appendChild(this.overlay));
23261
+ setTimeout(() => {
23262
+ this.tooltip.shadowRoot.appendChild(this.overlay);
23263
+ this.#handleStaticDisplay();
23264
+ });
23230
23265
  } else {
23231
23266
  this.overlay._detachOverlay = () => {};
23232
23267
 
@@ -23320,7 +23355,18 @@ const TooltipClass = compose(
23320
23355
  const globalRefs = getThemeRefs$1(globals);
23321
23356
  const vars$1 = TooltipClass.cssVarList;
23322
23357
 
23358
+ const [helperTheme, helperRefs, helperVars] = createHelperVars$1(
23359
+ {
23360
+ shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
23361
+ },
23362
+ componentName$2
23363
+ );
23364
+
23365
+ const { shadowColor } = helperRefs;
23366
+ const defaultShadow = `${globalRefs.shadow.wide.sm} ${shadowColor}, ${globalRefs.shadow.narrow.sm} ${shadowColor}`;
23367
+
23323
23368
  const tooltip = {
23369
+ ...helperTheme,
23324
23370
  [vars$1.fontFamily]: globalRefs.fonts.font1.family,
23325
23371
  [vars$1.fontSize]: globals.typography.body2.size,
23326
23372
  [vars$1.fontWeight]: globals.typography.body2.weight,
@@ -23333,7 +23379,26 @@ const tooltip = {
23333
23379
  [vars$1.borderRadius]: globalRefs.radius.xs,
23334
23380
  [vars$1.horizontalPadding]: globalRefs.spacing.md,
23335
23381
  [vars$1.verticalPadding]: globalRefs.spacing.sm,
23336
- [vars$1.boxShadow]: globalRefs.shadow.wide.sm,
23382
+ [vars$1.boxShadow]: defaultShadow,
23383
+
23384
+ shadow: {
23385
+ sm: {
23386
+ [vars$1.boxShadow]: defaultShadow,
23387
+ },
23388
+ md: {
23389
+ [vars$1.boxShadow]: `${globalRefs.shadow.wide.md} ${shadowColor}, ${globalRefs.shadow.narrow.md} ${shadowColor}`,
23390
+ },
23391
+ lg: {
23392
+ [vars$1.boxShadow]: `${globalRefs.shadow.wide.lg} ${shadowColor}, ${globalRefs.shadow.narrow.lg} ${shadowColor}`,
23393
+ },
23394
+ xl: {
23395
+ [vars$1.boxShadow]: `${globalRefs.shadow.wide.xl} ${shadowColor}, ${globalRefs.shadow.narrow.xl} ${shadowColor}`,
23396
+ },
23397
+ '2xl': {
23398
+ [helperVars.shadowColor]: '#00000050', // mimic daisyUI shadow settings
23399
+ [vars$1.boxShadow]: `${globalRefs.shadow.wide['2xl']} ${shadowColor}`,
23400
+ },
23401
+ },
23337
23402
  };
23338
23403
 
23339
23404
  var tooltip$1 = /*#__PURE__*/Object.freeze({