@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.
- package/dist/cjs/index.cjs.js +142 -77
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +142 -77
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-tooltip.js +1 -1
- package/dist/umd/descope-tooltip.js.map +1 -1
- package/package.json +29 -29
package/dist/index.esm.js
CHANGED
|
@@ -19809,10 +19809,10 @@ const mode = {
|
|
|
19809
19809
|
surface: globalRefs$H.colors.surface,
|
|
19810
19810
|
};
|
|
19811
19811
|
|
|
19812
|
-
const [helperTheme$
|
|
19812
|
+
const [helperTheme$6, helperRefs$6, helperVars$6] = createHelperVars$1({ mode }, componentName$19);
|
|
19813
19813
|
|
|
19814
19814
|
const button = {
|
|
19815
|
-
...helperTheme$
|
|
19815
|
+
...helperTheme$6,
|
|
19816
19816
|
|
|
19817
19817
|
[compVars$9.fontFamily]: globalRefs$H.fonts.font1.family,
|
|
19818
19818
|
|
|
@@ -19864,66 +19864,66 @@ const button = {
|
|
|
19864
19864
|
|
|
19865
19865
|
_loading: {
|
|
19866
19866
|
[compVars$9.cursor]: 'wait',
|
|
19867
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
19867
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
19868
19868
|
},
|
|
19869
19869
|
|
|
19870
19870
|
_disabled: {
|
|
19871
|
-
[helperVars$
|
|
19872
|
-
[helperVars$
|
|
19873
|
-
[helperVars$
|
|
19874
|
-
[helperVars$
|
|
19871
|
+
[helperVars$6.main]: globalRefs$H.colors.surface.light,
|
|
19872
|
+
[helperVars$6.dark]: globalRefs$H.colors.surface.dark,
|
|
19873
|
+
[helperVars$6.light]: globalRefs$H.colors.surface.light,
|
|
19874
|
+
[helperVars$6.contrast]: globalRefs$H.colors.surface.main,
|
|
19875
19875
|
[compVars$9.iconColor]: globalRefs$H.colors.surface.main,
|
|
19876
19876
|
},
|
|
19877
19877
|
|
|
19878
19878
|
variant: {
|
|
19879
19879
|
contained: {
|
|
19880
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
19881
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
19880
|
+
[compVars$9.labelTextColor]: helperRefs$6.contrast,
|
|
19881
|
+
[compVars$9.backgroundColor]: helperRefs$6.main,
|
|
19882
19882
|
_hover: {
|
|
19883
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
19883
|
+
[compVars$9.backgroundColor]: helperRefs$6.dark,
|
|
19884
19884
|
_loading: {
|
|
19885
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
19885
|
+
[compVars$9.backgroundColor]: helperRefs$6.main,
|
|
19886
19886
|
},
|
|
19887
19887
|
},
|
|
19888
19888
|
_active: {
|
|
19889
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
19889
|
+
[compVars$9.backgroundColor]: helperRefs$6.main,
|
|
19890
19890
|
},
|
|
19891
19891
|
},
|
|
19892
19892
|
|
|
19893
19893
|
outline: {
|
|
19894
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
19895
|
-
[compVars$9.borderColor]: helperRefs$
|
|
19894
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
19895
|
+
[compVars$9.borderColor]: helperRefs$6.main,
|
|
19896
19896
|
_hover: {
|
|
19897
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
19898
|
-
[compVars$9.borderColor]: helperRefs$
|
|
19897
|
+
[compVars$9.labelTextColor]: helperRefs$6.dark,
|
|
19898
|
+
[compVars$9.borderColor]: helperRefs$6.dark,
|
|
19899
19899
|
},
|
|
19900
19900
|
_active: {
|
|
19901
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
19902
|
-
[compVars$9.borderColor]: helperRefs$
|
|
19901
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
19902
|
+
[compVars$9.borderColor]: helperRefs$6.main,
|
|
19903
19903
|
},
|
|
19904
19904
|
},
|
|
19905
19905
|
|
|
19906
19906
|
link: {
|
|
19907
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
19907
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
19908
19908
|
[compVars$9.horizontalPadding]: '0.125em',
|
|
19909
19909
|
_hover: {
|
|
19910
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
19910
|
+
[compVars$9.labelTextColor]: helperRefs$6.dark,
|
|
19911
19911
|
[compVars$9.labelTextDecoration]: 'underline',
|
|
19912
19912
|
},
|
|
19913
19913
|
_active: {
|
|
19914
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
19914
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
19915
19915
|
},
|
|
19916
19916
|
},
|
|
19917
19917
|
},
|
|
19918
19918
|
|
|
19919
19919
|
_focused: {
|
|
19920
|
-
[compVars$9.outlineColor]: helperRefs$
|
|
19920
|
+
[compVars$9.outlineColor]: helperRefs$6.light,
|
|
19921
19921
|
},
|
|
19922
19922
|
};
|
|
19923
19923
|
|
|
19924
19924
|
const vars$13 = {
|
|
19925
19925
|
...compVars$9,
|
|
19926
|
-
...helperVars$
|
|
19926
|
+
...helperVars$6,
|
|
19927
19927
|
};
|
|
19928
19928
|
|
|
19929
19929
|
var button$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -20471,7 +20471,7 @@ const horizontalAlignment = {
|
|
|
20471
20471
|
end: { horizontalAlignment: 'end' },
|
|
20472
20472
|
};
|
|
20473
20473
|
|
|
20474
|
-
const [helperTheme$
|
|
20474
|
+
const [helperTheme$5, helperRefs$5, helperVars$5] = createHelperVars(
|
|
20475
20475
|
{
|
|
20476
20476
|
verticalAlignment,
|
|
20477
20477
|
horizontalAlignment,
|
|
@@ -20480,10 +20480,10 @@ const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars(
|
|
|
20480
20480
|
componentName$1d
|
|
20481
20481
|
);
|
|
20482
20482
|
|
|
20483
|
-
const { shadowColor: shadowColor$
|
|
20483
|
+
const { shadowColor: shadowColor$5 } = helperRefs$5;
|
|
20484
20484
|
|
|
20485
20485
|
const container = {
|
|
20486
|
-
...helperTheme$
|
|
20486
|
+
...helperTheme$5,
|
|
20487
20487
|
|
|
20488
20488
|
[compVars$8.itemsGrow]: '0',
|
|
20489
20489
|
[compVars$8.hostWidth]: '100%',
|
|
@@ -20520,22 +20520,22 @@ const container = {
|
|
|
20520
20520
|
direction: {
|
|
20521
20521
|
row: {
|
|
20522
20522
|
[compVars$8.flexDirection]: 'row',
|
|
20523
|
-
[compVars$8.alignItems]: helperRefs$
|
|
20524
|
-
[compVars$8.justifyContent]: helperRefs$
|
|
20523
|
+
[compVars$8.alignItems]: helperRefs$5.verticalAlignment,
|
|
20524
|
+
[compVars$8.justifyContent]: helperRefs$5.horizontalAlignment,
|
|
20525
20525
|
[compVars$8.flexWrap]: 'wrap',
|
|
20526
20526
|
horizontalAlignment: {
|
|
20527
20527
|
spaceBetween: {
|
|
20528
|
-
[helperVars$
|
|
20528
|
+
[helperVars$5.horizontalAlignment]: 'space-between',
|
|
20529
20529
|
},
|
|
20530
20530
|
},
|
|
20531
20531
|
},
|
|
20532
20532
|
column: {
|
|
20533
20533
|
[compVars$8.flexDirection]: 'column',
|
|
20534
|
-
[compVars$8.alignItems]: helperRefs$
|
|
20535
|
-
[compVars$8.justifyContent]: helperRefs$
|
|
20534
|
+
[compVars$8.alignItems]: helperRefs$5.horizontalAlignment,
|
|
20535
|
+
[compVars$8.justifyContent]: helperRefs$5.verticalAlignment,
|
|
20536
20536
|
verticalAlignment: {
|
|
20537
20537
|
spaceBetween: {
|
|
20538
|
-
[helperVars$
|
|
20538
|
+
[helperVars$5.verticalAlignment]: 'space-between',
|
|
20539
20539
|
},
|
|
20540
20540
|
},
|
|
20541
20541
|
},
|
|
@@ -20549,20 +20549,20 @@ const container = {
|
|
|
20549
20549
|
|
|
20550
20550
|
shadow: {
|
|
20551
20551
|
sm: {
|
|
20552
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.sm} ${shadowColor$
|
|
20552
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.sm} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.sm} ${shadowColor$5}`,
|
|
20553
20553
|
},
|
|
20554
20554
|
md: {
|
|
20555
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.md} ${shadowColor$
|
|
20555
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.md} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.md} ${shadowColor$5}`,
|
|
20556
20556
|
},
|
|
20557
20557
|
lg: {
|
|
20558
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.lg} ${shadowColor$
|
|
20558
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.lg} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.lg} ${shadowColor$5}`,
|
|
20559
20559
|
},
|
|
20560
20560
|
xl: {
|
|
20561
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.xl} ${shadowColor$
|
|
20561
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.xl} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.xl} ${shadowColor$5}`,
|
|
20562
20562
|
},
|
|
20563
20563
|
'2xl': {
|
|
20564
|
-
[helperVars$
|
|
20565
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide['2xl']} ${shadowColor$
|
|
20564
|
+
[helperVars$5.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
20565
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide['2xl']} ${shadowColor$5}`,
|
|
20566
20566
|
},
|
|
20567
20567
|
},
|
|
20568
20568
|
|
|
@@ -20579,7 +20579,7 @@ const container = {
|
|
|
20579
20579
|
|
|
20580
20580
|
const vars$W = {
|
|
20581
20581
|
...compVars$8,
|
|
20582
|
-
...helperVars$
|
|
20582
|
+
...helperVars$5,
|
|
20583
20583
|
};
|
|
20584
20584
|
|
|
20585
20585
|
var container$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -20804,7 +20804,7 @@ var enrichedText$1 = /*#__PURE__*/Object.freeze({
|
|
|
20804
20804
|
const globalRefs$y = getThemeRefs(globals$1);
|
|
20805
20805
|
const compVars$7 = DividerClass.cssVarList;
|
|
20806
20806
|
|
|
20807
|
-
const [helperTheme$
|
|
20807
|
+
const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars(
|
|
20808
20808
|
{
|
|
20809
20809
|
thickness: '2px',
|
|
20810
20810
|
spacing: '10px',
|
|
@@ -20813,7 +20813,7 @@ const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars(
|
|
|
20813
20813
|
);
|
|
20814
20814
|
|
|
20815
20815
|
const divider = {
|
|
20816
|
-
...helperTheme$
|
|
20816
|
+
...helperTheme$4,
|
|
20817
20817
|
|
|
20818
20818
|
[compVars$7.hostDirection]: globalRefs$y.direction,
|
|
20819
20819
|
[compVars$7.alignItems]: 'center',
|
|
@@ -20822,27 +20822,27 @@ const divider = {
|
|
|
20822
20822
|
[compVars$7.hostWidth]: '100%',
|
|
20823
20823
|
[compVars$7.stripeColor]: globalRefs$y.colors.surface.light,
|
|
20824
20824
|
[compVars$7.stripeColorOpacity]: '0.5',
|
|
20825
|
-
[compVars$7.stripeHorizontalThickness]: helperRefs$
|
|
20825
|
+
[compVars$7.stripeHorizontalThickness]: helperRefs$4.thickness,
|
|
20826
20826
|
[compVars$7.labelTextWidth]: 'fit-content',
|
|
20827
20827
|
[compVars$7.labelTextMaxWidth]: 'calc(100% - 100px)',
|
|
20828
|
-
[compVars$7.labelTextHorizontalSpacing]: helperRefs$
|
|
20828
|
+
[compVars$7.labelTextHorizontalSpacing]: helperRefs$4.spacing,
|
|
20829
20829
|
[compVars$7.textAlign]: 'center',
|
|
20830
20830
|
|
|
20831
20831
|
_vertical: {
|
|
20832
20832
|
[compVars$7.minHeight]: '200px',
|
|
20833
20833
|
[compVars$7.flexDirection]: 'column',
|
|
20834
20834
|
[compVars$7.hostWidth]: 'fit-content',
|
|
20835
|
-
[compVars$7.hostPadding]: `0 calc(${helperRefs$
|
|
20836
|
-
[compVars$7.stripeVerticalThickness]: helperRefs$
|
|
20835
|
+
[compVars$7.hostPadding]: `0 calc(${helperRefs$4.thickness} * 3)`,
|
|
20836
|
+
[compVars$7.stripeVerticalThickness]: helperRefs$4.thickness,
|
|
20837
20837
|
[compVars$7.labelTextWidth]: 'fit-content',
|
|
20838
20838
|
[compVars$7.labelTextMaxWidth]: '100%',
|
|
20839
|
-
[compVars$7.labelTextVerticalSpacing]: helperRefs$
|
|
20839
|
+
[compVars$7.labelTextVerticalSpacing]: helperRefs$4.spacing,
|
|
20840
20840
|
},
|
|
20841
20841
|
};
|
|
20842
20842
|
|
|
20843
20843
|
const vars$P = {
|
|
20844
20844
|
...compVars$7,
|
|
20845
|
-
...helperVars$
|
|
20845
|
+
...helperVars$4,
|
|
20846
20846
|
};
|
|
20847
20847
|
|
|
20848
20848
|
var divider$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -20948,7 +20948,7 @@ var loaderLinear$1 = /*#__PURE__*/Object.freeze({
|
|
|
20948
20948
|
const globalRefs$w = getThemeRefs(globals$1);
|
|
20949
20949
|
const compVars$6 = LoaderRadialClass.cssVarList;
|
|
20950
20950
|
|
|
20951
|
-
const [helperTheme$
|
|
20951
|
+
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars(
|
|
20952
20952
|
{
|
|
20953
20953
|
spinnerColor: globalRefs$w.colors.surface.contrast,
|
|
20954
20954
|
mode: {
|
|
@@ -20964,7 +20964,7 @@ const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
|
|
|
20964
20964
|
);
|
|
20965
20965
|
|
|
20966
20966
|
const loaderRadial = {
|
|
20967
|
-
...helperTheme$
|
|
20967
|
+
...helperTheme$3,
|
|
20968
20968
|
|
|
20969
20969
|
[compVars$6.animationDuration]: '2s',
|
|
20970
20970
|
[compVars$6.animationTimingFunction]: 'linear',
|
|
@@ -20972,9 +20972,9 @@ const loaderRadial = {
|
|
|
20972
20972
|
[compVars$6.spinnerBorderStyle]: 'solid',
|
|
20973
20973
|
[compVars$6.spinnerBorderWidth]: '0.2em',
|
|
20974
20974
|
[compVars$6.spinnerBorderRadius]: '50%',
|
|
20975
|
-
[compVars$6.spinnerQuadrant1Color]: helperRefs$
|
|
20975
|
+
[compVars$6.spinnerQuadrant1Color]: helperRefs$3.spinnerColor,
|
|
20976
20976
|
[compVars$6.spinnerQuadrant2Color]: 'transparent',
|
|
20977
|
-
[compVars$6.spinnerQuadrant3Color]: helperRefs$
|
|
20977
|
+
[compVars$6.spinnerQuadrant3Color]: helperRefs$3.spinnerColor,
|
|
20978
20978
|
[compVars$6.spinnerQuadrant4Color]: 'transparent',
|
|
20979
20979
|
|
|
20980
20980
|
size: {
|
|
@@ -20991,7 +20991,7 @@ const loaderRadial = {
|
|
|
20991
20991
|
};
|
|
20992
20992
|
const vars$M = {
|
|
20993
20993
|
...compVars$6,
|
|
20994
|
-
...helperVars$
|
|
20994
|
+
...helperVars$3,
|
|
20995
20995
|
};
|
|
20996
20996
|
|
|
20997
20997
|
var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -21591,7 +21591,7 @@ var grid$1 = /*#__PURE__*/Object.freeze({
|
|
|
21591
21591
|
const globalRefs$o = getThemeRefs(globals$1);
|
|
21592
21592
|
const vars$B = NotificationCardClass.cssVarList;
|
|
21593
21593
|
|
|
21594
|
-
const shadowColor$
|
|
21594
|
+
const shadowColor$4 = '#00000020';
|
|
21595
21595
|
|
|
21596
21596
|
const notification = {
|
|
21597
21597
|
[vars$B.hostMinWidth]: '415px',
|
|
@@ -21599,7 +21599,7 @@ const notification = {
|
|
|
21599
21599
|
[vars$B.fontSize]: globalRefs$o.typography.body1.size,
|
|
21600
21600
|
[vars$B.backgroundColor]: globalRefs$o.colors.surface.main,
|
|
21601
21601
|
[vars$B.textColor]: globalRefs$o.colors.surface.contrast,
|
|
21602
|
-
[vars$B.boxShadow]: `${globalRefs$o.shadow.wide.xl} ${shadowColor$
|
|
21602
|
+
[vars$B.boxShadow]: `${globalRefs$o.shadow.wide.xl} ${shadowColor$4}, ${globalRefs$o.shadow.narrow.xl} ${shadowColor$4}`,
|
|
21603
21603
|
[vars$B.verticalPadding]: '0.625em',
|
|
21604
21604
|
[vars$B.horizontalPadding]: '1.5em',
|
|
21605
21605
|
[vars$B.borderRadius]: globalRefs$o.radius.xs,
|
|
@@ -22421,7 +22421,7 @@ var calendar$1 = /*#__PURE__*/Object.freeze({
|
|
|
22421
22421
|
});
|
|
22422
22422
|
|
|
22423
22423
|
const globalRefs$c = getThemeRefs(globals$1);
|
|
22424
|
-
const shadowColor$
|
|
22424
|
+
const shadowColor$3 = '#00000020';
|
|
22425
22425
|
const { shadow } = globalRefs$c;
|
|
22426
22426
|
|
|
22427
22427
|
const vars$m = DateFieldClass.cssVarList;
|
|
@@ -22435,7 +22435,7 @@ const dateField = {
|
|
|
22435
22435
|
[vars$m.overlay.backgroundColor]: refs$1.backgroundColor,
|
|
22436
22436
|
[vars$m.overlay.backdropBackgroundColor]: 'transparent',
|
|
22437
22437
|
[vars$m.overlay.backdropPointerEvents]: 'all',
|
|
22438
|
-
[vars$m.overlay.boxShadow]: `${shadow.wide.xl} ${shadowColor$
|
|
22438
|
+
[vars$m.overlay.boxShadow]: `${shadow.wide.xl} ${shadowColor$3}, ${shadow.narrow.xl} ${shadowColor$3}`,
|
|
22439
22439
|
[vars$m.overlay.outlineWidth]: '0',
|
|
22440
22440
|
[vars$m.overlay.outlineColor]: 'transparent',
|
|
22441
22441
|
[vars$m.overlay.outlineStyle]: 'none',
|
|
@@ -22657,15 +22657,15 @@ const globalRefs$a = getThemeRefs$1(globals);
|
|
|
22657
22657
|
|
|
22658
22658
|
const compVars$3 = ListClass.cssVarList;
|
|
22659
22659
|
|
|
22660
|
-
const [helperTheme$
|
|
22660
|
+
const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars$1(
|
|
22661
22661
|
{ shadowColor: '#00000020' },
|
|
22662
22662
|
componentName$n
|
|
22663
22663
|
);
|
|
22664
22664
|
|
|
22665
|
-
const { shadowColor: shadowColor$
|
|
22665
|
+
const { shadowColor: shadowColor$2 } = helperRefs$2;
|
|
22666
22666
|
|
|
22667
22667
|
const list = {
|
|
22668
|
-
...helperTheme$
|
|
22668
|
+
...helperTheme$2,
|
|
22669
22669
|
|
|
22670
22670
|
[compVars$3.hostWidth]: '100%',
|
|
22671
22671
|
[compVars$3.backgroundColor]: globalRefs$a.colors.surface.main,
|
|
@@ -22677,7 +22677,7 @@ const list = {
|
|
|
22677
22677
|
[compVars$3.gap]: globalRefs$a.spacing.md,
|
|
22678
22678
|
[compVars$3.verticalPadding]: globalRefs$a.spacing.lg,
|
|
22679
22679
|
[compVars$3.horizontalPadding]: globalRefs$a.spacing.lg,
|
|
22680
|
-
[compVars$3.boxShadow]: `${globalRefs$a.shadow.wide.sm} ${shadowColor$
|
|
22680
|
+
[compVars$3.boxShadow]: `${globalRefs$a.shadow.wide.sm} ${shadowColor$2}, ${globalRefs$a.shadow.narrow.sm} ${shadowColor$2}`,
|
|
22681
22681
|
[compVars$3.maxHeight]: '100%',
|
|
22682
22682
|
[compVars$3.hostDirection]: globalRefs$a.direction,
|
|
22683
22683
|
[compVars$3.minItemsWidth]: '150px',
|
|
@@ -22701,7 +22701,7 @@ const list = {
|
|
|
22701
22701
|
|
|
22702
22702
|
const vars$k = {
|
|
22703
22703
|
...compVars$3,
|
|
22704
|
-
...helperVars$
|
|
22704
|
+
...helperVars$2,
|
|
22705
22705
|
};
|
|
22706
22706
|
|
|
22707
22707
|
var list$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -24688,17 +24688,17 @@ const globalRefs$2 = getThemeRefs$1(globals);
|
|
|
24688
24688
|
|
|
24689
24689
|
const compVars$1 = CollapsibleContainerClass.cssVarList;
|
|
24690
24690
|
|
|
24691
|
-
const [helperTheme, helperRefs, helperVars] = createHelperVars$1(
|
|
24691
|
+
const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars$1(
|
|
24692
24692
|
{
|
|
24693
24693
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
24694
24694
|
},
|
|
24695
24695
|
componentName$5
|
|
24696
24696
|
);
|
|
24697
24697
|
|
|
24698
|
-
const { shadowColor } = helperRefs;
|
|
24698
|
+
const { shadowColor: shadowColor$1 } = helperRefs$1;
|
|
24699
24699
|
|
|
24700
24700
|
const collapsibleContainer = {
|
|
24701
|
-
...helperTheme,
|
|
24701
|
+
...helperTheme$1,
|
|
24702
24702
|
|
|
24703
24703
|
[compVars$1.hostWidth]: '100%',
|
|
24704
24704
|
[compVars$1.boxShadow]: 'none',
|
|
@@ -24746,20 +24746,20 @@ const collapsibleContainer = {
|
|
|
24746
24746
|
|
|
24747
24747
|
shadow: {
|
|
24748
24748
|
sm: {
|
|
24749
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.sm} ${shadowColor}, ${globalRefs$2.shadow.narrow.sm} ${shadowColor}`,
|
|
24749
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.sm} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.sm} ${shadowColor$1}`,
|
|
24750
24750
|
},
|
|
24751
24751
|
md: {
|
|
24752
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.md} ${shadowColor}, ${globalRefs$2.shadow.narrow.md} ${shadowColor}`,
|
|
24752
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.md} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.md} ${shadowColor$1}`,
|
|
24753
24753
|
},
|
|
24754
24754
|
lg: {
|
|
24755
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.lg} ${shadowColor}, ${globalRefs$2.shadow.narrow.lg} ${shadowColor}`,
|
|
24755
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.lg} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.lg} ${shadowColor$1}`,
|
|
24756
24756
|
},
|
|
24757
24757
|
xl: {
|
|
24758
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.xl} ${shadowColor}, ${globalRefs$2.shadow.narrow.xl} ${shadowColor}`,
|
|
24758
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.xl} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.xl} ${shadowColor$1}`,
|
|
24759
24759
|
},
|
|
24760
24760
|
'2xl': {
|
|
24761
|
-
[helperVars.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
24762
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide['2xl']} ${shadowColor}`,
|
|
24761
|
+
[helperVars$1.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
24762
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide['2xl']} ${shadowColor$1}`,
|
|
24763
24763
|
},
|
|
24764
24764
|
},
|
|
24765
24765
|
|
|
@@ -24794,7 +24794,7 @@ const collapsibleContainer = {
|
|
|
24794
24794
|
|
|
24795
24795
|
const vars$6 = {
|
|
24796
24796
|
...compVars$1,
|
|
24797
|
-
...helperVars,
|
|
24797
|
+
...helperVars$1,
|
|
24798
24798
|
};
|
|
24799
24799
|
|
|
24800
24800
|
var collapsibleContainer$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -25889,6 +25889,24 @@ class RawTooltip extends BaseClass {
|
|
|
25889
25889
|
return this.getAttribute('text')?.trim() || '';
|
|
25890
25890
|
}
|
|
25891
25891
|
|
|
25892
|
+
get isStaticDisplay() {
|
|
25893
|
+
return this.getAttribute('static-display') === 'true';
|
|
25894
|
+
}
|
|
25895
|
+
|
|
25896
|
+
// We use `static-display` for presentation purposes, to show the tooltip content.
|
|
25897
|
+
// This should be used only when `opened` is `true`. Once `static-display` is set,
|
|
25898
|
+
// the overlay would become a `static` element, and will have layout in the presenting page.
|
|
25899
|
+
// This is mainly aimed to solve the presentation problem on our Styles Page in the Console.
|
|
25900
|
+
#handleStaticDisplay() {
|
|
25901
|
+
if (this.isStaticDisplay) {
|
|
25902
|
+
this.#revealWrappedParts();
|
|
25903
|
+
this.setAttribute('inert', 'true');
|
|
25904
|
+
} else {
|
|
25905
|
+
this.#hideWrappedParts();
|
|
25906
|
+
this.removeAttribute('inert');
|
|
25907
|
+
}
|
|
25908
|
+
}
|
|
25909
|
+
|
|
25892
25910
|
init() {
|
|
25893
25911
|
super.init();
|
|
25894
25912
|
|
|
@@ -25897,15 +25915,29 @@ class RawTooltip extends BaseClass {
|
|
|
25897
25915
|
this.insertAdjacentHTML('beforeend', '<vaadin-tooltip></vaadin-tooltip>');
|
|
25898
25916
|
this.tooltip = this.querySelector('vaadin-tooltip');
|
|
25899
25917
|
|
|
25918
|
+
this.#hideWrappedParts();
|
|
25919
|
+
|
|
25920
|
+
this.#setTooltipTarget();
|
|
25921
|
+
|
|
25922
|
+
setTimeout(() => this.#onOverlayReady());
|
|
25923
|
+
}
|
|
25924
|
+
|
|
25925
|
+
#hideWrappedParts() {
|
|
25900
25926
|
this.tooltip.style.width = '0';
|
|
25901
25927
|
this.tooltip.style.height = '0';
|
|
25902
25928
|
this.tooltip.style.display = 'block';
|
|
25903
25929
|
this.tooltip.style.overflow = 'hidden';
|
|
25904
25930
|
this.tooltip.style.position = 'absolute';
|
|
25905
|
-
|
|
25906
|
-
|
|
25907
|
-
|
|
25908
|
-
|
|
25931
|
+
}
|
|
25932
|
+
|
|
25933
|
+
#revealWrappedParts() {
|
|
25934
|
+
this.tooltip.style.width = '100%';
|
|
25935
|
+
this.tooltip.style.height = '100%';
|
|
25936
|
+
this.tooltip.style.position = 'static';
|
|
25937
|
+
this.tooltip.style.overflow = 'visible';
|
|
25938
|
+
this.tooltip.textContent = '';
|
|
25939
|
+
this.overlay.style.display = 'block';
|
|
25940
|
+
this.overlay.style.position = 'static';
|
|
25909
25941
|
}
|
|
25910
25942
|
|
|
25911
25943
|
#onOverlayReady() {
|
|
@@ -25970,7 +26002,10 @@ class RawTooltip extends BaseClass {
|
|
|
25970
26002
|
// When `opened` attr is used, vaadin doesn't execute `_attachOverlay`,
|
|
25971
26003
|
// and the overlay element is rendered outside the component, on the top
|
|
25972
26004
|
// level. We need to move it back to the local component's DOM.
|
|
25973
|
-
setTimeout(() =>
|
|
26005
|
+
setTimeout(() => {
|
|
26006
|
+
this.tooltip.shadowRoot.appendChild(this.overlay);
|
|
26007
|
+
this.#handleStaticDisplay();
|
|
26008
|
+
});
|
|
25974
26009
|
} else {
|
|
25975
26010
|
this.overlay._detachOverlay = () => {};
|
|
25976
26011
|
|
|
@@ -26064,7 +26099,18 @@ const TooltipClass = compose$1(
|
|
|
26064
26099
|
const globalRefs = getThemeRefs$1(globals);
|
|
26065
26100
|
const vars$1 = TooltipClass.cssVarList;
|
|
26066
26101
|
|
|
26102
|
+
const [helperTheme, helperRefs, helperVars] = createHelperVars$1(
|
|
26103
|
+
{
|
|
26104
|
+
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
26105
|
+
},
|
|
26106
|
+
componentName
|
|
26107
|
+
);
|
|
26108
|
+
|
|
26109
|
+
const { shadowColor } = helperRefs;
|
|
26110
|
+
const defaultShadow = `${globalRefs.shadow.wide.sm} ${shadowColor}, ${globalRefs.shadow.narrow.sm} ${shadowColor}`;
|
|
26111
|
+
|
|
26067
26112
|
const tooltip = {
|
|
26113
|
+
...helperTheme,
|
|
26068
26114
|
[vars$1.fontFamily]: globalRefs.fonts.font1.family,
|
|
26069
26115
|
[vars$1.fontSize]: globals.typography.body2.size,
|
|
26070
26116
|
[vars$1.fontWeight]: globals.typography.body2.weight,
|
|
@@ -26077,7 +26123,26 @@ const tooltip = {
|
|
|
26077
26123
|
[vars$1.borderRadius]: globalRefs.radius.xs,
|
|
26078
26124
|
[vars$1.horizontalPadding]: globalRefs.spacing.md,
|
|
26079
26125
|
[vars$1.verticalPadding]: globalRefs.spacing.sm,
|
|
26080
|
-
[vars$1.boxShadow]:
|
|
26126
|
+
[vars$1.boxShadow]: defaultShadow,
|
|
26127
|
+
|
|
26128
|
+
shadow: {
|
|
26129
|
+
sm: {
|
|
26130
|
+
[vars$1.boxShadow]: defaultShadow,
|
|
26131
|
+
},
|
|
26132
|
+
md: {
|
|
26133
|
+
[vars$1.boxShadow]: `${globalRefs.shadow.wide.md} ${shadowColor}, ${globalRefs.shadow.narrow.md} ${shadowColor}`,
|
|
26134
|
+
},
|
|
26135
|
+
lg: {
|
|
26136
|
+
[vars$1.boxShadow]: `${globalRefs.shadow.wide.lg} ${shadowColor}, ${globalRefs.shadow.narrow.lg} ${shadowColor}`,
|
|
26137
|
+
},
|
|
26138
|
+
xl: {
|
|
26139
|
+
[vars$1.boxShadow]: `${globalRefs.shadow.wide.xl} ${shadowColor}, ${globalRefs.shadow.narrow.xl} ${shadowColor}`,
|
|
26140
|
+
},
|
|
26141
|
+
'2xl': {
|
|
26142
|
+
[helperVars.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
26143
|
+
[vars$1.boxShadow]: `${globalRefs.shadow.wide['2xl']} ${shadowColor}`,
|
|
26144
|
+
},
|
|
26145
|
+
},
|
|
26081
26146
|
};
|
|
26082
26147
|
|
|
26083
26148
|
var tooltip$1 = /*#__PURE__*/Object.freeze({
|