@descope/flow-components 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/fm/148.js +1 -1
- package/dist/fm/181.js +1 -1
- package/dist/fm/222.js +1 -1
- package/dist/fm/985.js +1 -1
- package/dist/fm/@mf-types/compiled-types/Tooltip/Tooltip.d.ts +2 -0
- package/dist/fm/@mf-types.zip +0 -0
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/mf-manifest.json +1 -1
- package/dist/fm/mf-stats.json +1 -1
- package/dist/index.cjs.js +143 -78
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +1 -1
- package/dist/types/Tooltip/Tooltip.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -82899,10 +82899,10 @@ function requireIndex_cjs () {
|
|
|
82899
82899
|
surface: globalRefs$H.colors.surface,
|
|
82900
82900
|
};
|
|
82901
82901
|
|
|
82902
|
-
const [helperTheme$
|
|
82902
|
+
const [helperTheme$6, helperRefs$6, helperVars$6] = createHelperVars$1({ mode }, componentName$1e);
|
|
82903
82903
|
|
|
82904
82904
|
const button = {
|
|
82905
|
-
...helperTheme$
|
|
82905
|
+
...helperTheme$6,
|
|
82906
82906
|
|
|
82907
82907
|
[compVars$9.fontFamily]: globalRefs$H.fonts.font1.family,
|
|
82908
82908
|
|
|
@@ -82954,66 +82954,66 @@ function requireIndex_cjs () {
|
|
|
82954
82954
|
|
|
82955
82955
|
_loading: {
|
|
82956
82956
|
[compVars$9.cursor]: 'wait',
|
|
82957
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
82957
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
82958
82958
|
},
|
|
82959
82959
|
|
|
82960
82960
|
_disabled: {
|
|
82961
|
-
[helperVars$
|
|
82962
|
-
[helperVars$
|
|
82963
|
-
[helperVars$
|
|
82964
|
-
[helperVars$
|
|
82961
|
+
[helperVars$6.main]: globalRefs$H.colors.surface.light,
|
|
82962
|
+
[helperVars$6.dark]: globalRefs$H.colors.surface.dark,
|
|
82963
|
+
[helperVars$6.light]: globalRefs$H.colors.surface.light,
|
|
82964
|
+
[helperVars$6.contrast]: globalRefs$H.colors.surface.main,
|
|
82965
82965
|
[compVars$9.iconColor]: globalRefs$H.colors.surface.main,
|
|
82966
82966
|
},
|
|
82967
82967
|
|
|
82968
82968
|
variant: {
|
|
82969
82969
|
contained: {
|
|
82970
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
82971
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
82970
|
+
[compVars$9.labelTextColor]: helperRefs$6.contrast,
|
|
82971
|
+
[compVars$9.backgroundColor]: helperRefs$6.main,
|
|
82972
82972
|
_hover: {
|
|
82973
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
82973
|
+
[compVars$9.backgroundColor]: helperRefs$6.dark,
|
|
82974
82974
|
_loading: {
|
|
82975
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
82975
|
+
[compVars$9.backgroundColor]: helperRefs$6.main,
|
|
82976
82976
|
},
|
|
82977
82977
|
},
|
|
82978
82978
|
_active: {
|
|
82979
|
-
[compVars$9.backgroundColor]: helperRefs$
|
|
82979
|
+
[compVars$9.backgroundColor]: helperRefs$6.main,
|
|
82980
82980
|
},
|
|
82981
82981
|
},
|
|
82982
82982
|
|
|
82983
82983
|
outline: {
|
|
82984
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
82985
|
-
[compVars$9.borderColor]: helperRefs$
|
|
82984
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
82985
|
+
[compVars$9.borderColor]: helperRefs$6.main,
|
|
82986
82986
|
_hover: {
|
|
82987
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
82988
|
-
[compVars$9.borderColor]: helperRefs$
|
|
82987
|
+
[compVars$9.labelTextColor]: helperRefs$6.dark,
|
|
82988
|
+
[compVars$9.borderColor]: helperRefs$6.dark,
|
|
82989
82989
|
},
|
|
82990
82990
|
_active: {
|
|
82991
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
82992
|
-
[compVars$9.borderColor]: helperRefs$
|
|
82991
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
82992
|
+
[compVars$9.borderColor]: helperRefs$6.main,
|
|
82993
82993
|
},
|
|
82994
82994
|
},
|
|
82995
82995
|
|
|
82996
82996
|
link: {
|
|
82997
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
82997
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
82998
82998
|
[compVars$9.horizontalPadding]: '0.125em',
|
|
82999
82999
|
_hover: {
|
|
83000
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
83000
|
+
[compVars$9.labelTextColor]: helperRefs$6.dark,
|
|
83001
83001
|
[compVars$9.labelTextDecoration]: 'underline',
|
|
83002
83002
|
},
|
|
83003
83003
|
_active: {
|
|
83004
|
-
[compVars$9.labelTextColor]: helperRefs$
|
|
83004
|
+
[compVars$9.labelTextColor]: helperRefs$6.main,
|
|
83005
83005
|
},
|
|
83006
83006
|
},
|
|
83007
83007
|
},
|
|
83008
83008
|
|
|
83009
83009
|
_focused: {
|
|
83010
|
-
[compVars$9.outlineColor]: helperRefs$
|
|
83010
|
+
[compVars$9.outlineColor]: helperRefs$6.light,
|
|
83011
83011
|
},
|
|
83012
83012
|
};
|
|
83013
83013
|
|
|
83014
83014
|
const vars$13 = {
|
|
83015
83015
|
...compVars$9,
|
|
83016
|
-
...helperVars$
|
|
83016
|
+
...helperVars$6,
|
|
83017
83017
|
};
|
|
83018
83018
|
|
|
83019
83019
|
var button$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -86531,7 +86531,7 @@ descope-enriched-text {
|
|
|
86531
86531
|
end: { horizontalAlignment: 'end' },
|
|
86532
86532
|
};
|
|
86533
86533
|
|
|
86534
|
-
const [helperTheme$
|
|
86534
|
+
const [helperTheme$5, helperRefs$5, helperVars$5] = createHelperVars(
|
|
86535
86535
|
{
|
|
86536
86536
|
verticalAlignment,
|
|
86537
86537
|
horizontalAlignment,
|
|
@@ -86540,10 +86540,10 @@ descope-enriched-text {
|
|
|
86540
86540
|
componentName$13
|
|
86541
86541
|
);
|
|
86542
86542
|
|
|
86543
|
-
const { shadowColor: shadowColor$
|
|
86543
|
+
const { shadowColor: shadowColor$5 } = helperRefs$5;
|
|
86544
86544
|
|
|
86545
86545
|
const container = {
|
|
86546
|
-
...helperTheme$
|
|
86546
|
+
...helperTheme$5,
|
|
86547
86547
|
|
|
86548
86548
|
[compVars$8.itemsGrow]: '0',
|
|
86549
86549
|
[compVars$8.hostWidth]: '100%',
|
|
@@ -86580,22 +86580,22 @@ descope-enriched-text {
|
|
|
86580
86580
|
direction: {
|
|
86581
86581
|
row: {
|
|
86582
86582
|
[compVars$8.flexDirection]: 'row',
|
|
86583
|
-
[compVars$8.alignItems]: helperRefs$
|
|
86584
|
-
[compVars$8.justifyContent]: helperRefs$
|
|
86583
|
+
[compVars$8.alignItems]: helperRefs$5.verticalAlignment,
|
|
86584
|
+
[compVars$8.justifyContent]: helperRefs$5.horizontalAlignment,
|
|
86585
86585
|
[compVars$8.flexWrap]: 'wrap',
|
|
86586
86586
|
horizontalAlignment: {
|
|
86587
86587
|
spaceBetween: {
|
|
86588
|
-
[helperVars$
|
|
86588
|
+
[helperVars$5.horizontalAlignment]: 'space-between',
|
|
86589
86589
|
},
|
|
86590
86590
|
},
|
|
86591
86591
|
},
|
|
86592
86592
|
column: {
|
|
86593
86593
|
[compVars$8.flexDirection]: 'column',
|
|
86594
|
-
[compVars$8.alignItems]: helperRefs$
|
|
86595
|
-
[compVars$8.justifyContent]: helperRefs$
|
|
86594
|
+
[compVars$8.alignItems]: helperRefs$5.horizontalAlignment,
|
|
86595
|
+
[compVars$8.justifyContent]: helperRefs$5.verticalAlignment,
|
|
86596
86596
|
verticalAlignment: {
|
|
86597
86597
|
spaceBetween: {
|
|
86598
|
-
[helperVars$
|
|
86598
|
+
[helperVars$5.verticalAlignment]: 'space-between',
|
|
86599
86599
|
},
|
|
86600
86600
|
},
|
|
86601
86601
|
},
|
|
@@ -86609,20 +86609,20 @@ descope-enriched-text {
|
|
|
86609
86609
|
|
|
86610
86610
|
shadow: {
|
|
86611
86611
|
sm: {
|
|
86612
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.sm} ${shadowColor$
|
|
86612
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.sm} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.sm} ${shadowColor$5}`,
|
|
86613
86613
|
},
|
|
86614
86614
|
md: {
|
|
86615
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.md} ${shadowColor$
|
|
86615
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.md} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.md} ${shadowColor$5}`,
|
|
86616
86616
|
},
|
|
86617
86617
|
lg: {
|
|
86618
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.lg} ${shadowColor$
|
|
86618
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.lg} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.lg} ${shadowColor$5}`,
|
|
86619
86619
|
},
|
|
86620
86620
|
xl: {
|
|
86621
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.xl} ${shadowColor$
|
|
86621
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide.xl} ${shadowColor$5}, ${globalRefs$C.shadow.narrow.xl} ${shadowColor$5}`,
|
|
86622
86622
|
},
|
|
86623
86623
|
'2xl': {
|
|
86624
|
-
[helperVars$
|
|
86625
|
-
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide['2xl']} ${shadowColor$
|
|
86624
|
+
[helperVars$5.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
86625
|
+
[compVars$8.boxShadow]: `${globalRefs$C.shadow.wide['2xl']} ${shadowColor$5}`,
|
|
86626
86626
|
},
|
|
86627
86627
|
},
|
|
86628
86628
|
|
|
@@ -86639,7 +86639,7 @@ descope-enriched-text {
|
|
|
86639
86639
|
|
|
86640
86640
|
const vars$W = {
|
|
86641
86641
|
...compVars$8,
|
|
86642
|
-
...helperVars$
|
|
86642
|
+
...helperVars$5,
|
|
86643
86643
|
};
|
|
86644
86644
|
|
|
86645
86645
|
var container$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -87194,7 +87194,7 @@ descope-enriched-text {
|
|
|
87194
87194
|
const globalRefs$y = getThemeRefs(globals$1);
|
|
87195
87195
|
const compVars$7 = DividerClass.cssVarList;
|
|
87196
87196
|
|
|
87197
|
-
const [helperTheme$
|
|
87197
|
+
const [helperTheme$4, helperRefs$4, helperVars$4] = createHelperVars(
|
|
87198
87198
|
{
|
|
87199
87199
|
thickness: '2px',
|
|
87200
87200
|
spacing: '10px',
|
|
@@ -87203,7 +87203,7 @@ descope-enriched-text {
|
|
|
87203
87203
|
);
|
|
87204
87204
|
|
|
87205
87205
|
const divider = {
|
|
87206
|
-
...helperTheme$
|
|
87206
|
+
...helperTheme$4,
|
|
87207
87207
|
|
|
87208
87208
|
[compVars$7.hostDirection]: globalRefs$y.direction,
|
|
87209
87209
|
[compVars$7.alignItems]: 'center',
|
|
@@ -87212,27 +87212,27 @@ descope-enriched-text {
|
|
|
87212
87212
|
[compVars$7.hostWidth]: '100%',
|
|
87213
87213
|
[compVars$7.stripeColor]: globalRefs$y.colors.surface.light,
|
|
87214
87214
|
[compVars$7.stripeColorOpacity]: '0.5',
|
|
87215
|
-
[compVars$7.stripeHorizontalThickness]: helperRefs$
|
|
87215
|
+
[compVars$7.stripeHorizontalThickness]: helperRefs$4.thickness,
|
|
87216
87216
|
[compVars$7.labelTextWidth]: 'fit-content',
|
|
87217
87217
|
[compVars$7.labelTextMaxWidth]: 'calc(100% - 100px)',
|
|
87218
|
-
[compVars$7.labelTextHorizontalSpacing]: helperRefs$
|
|
87218
|
+
[compVars$7.labelTextHorizontalSpacing]: helperRefs$4.spacing,
|
|
87219
87219
|
[compVars$7.textAlign]: 'center',
|
|
87220
87220
|
|
|
87221
87221
|
_vertical: {
|
|
87222
87222
|
[compVars$7.minHeight]: '200px',
|
|
87223
87223
|
[compVars$7.flexDirection]: 'column',
|
|
87224
87224
|
[compVars$7.hostWidth]: 'fit-content',
|
|
87225
|
-
[compVars$7.hostPadding]: `0 calc(${helperRefs$
|
|
87226
|
-
[compVars$7.stripeVerticalThickness]: helperRefs$
|
|
87225
|
+
[compVars$7.hostPadding]: `0 calc(${helperRefs$4.thickness} * 3)`,
|
|
87226
|
+
[compVars$7.stripeVerticalThickness]: helperRefs$4.thickness,
|
|
87227
87227
|
[compVars$7.labelTextWidth]: 'fit-content',
|
|
87228
87228
|
[compVars$7.labelTextMaxWidth]: '100%',
|
|
87229
|
-
[compVars$7.labelTextVerticalSpacing]: helperRefs$
|
|
87229
|
+
[compVars$7.labelTextVerticalSpacing]: helperRefs$4.spacing,
|
|
87230
87230
|
},
|
|
87231
87231
|
};
|
|
87232
87232
|
|
|
87233
87233
|
const vars$P = {
|
|
87234
87234
|
...compVars$7,
|
|
87235
|
-
...helperVars$
|
|
87235
|
+
...helperVars$4,
|
|
87236
87236
|
};
|
|
87237
87237
|
|
|
87238
87238
|
var divider$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -87686,7 +87686,7 @@ descope-enriched-text {
|
|
|
87686
87686
|
const globalRefs$w = getThemeRefs(globals$1);
|
|
87687
87687
|
const compVars$6 = LoaderRadialClass.cssVarList;
|
|
87688
87688
|
|
|
87689
|
-
const [helperTheme$
|
|
87689
|
+
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars(
|
|
87690
87690
|
{
|
|
87691
87691
|
spinnerColor: globalRefs$w.colors.surface.contrast,
|
|
87692
87692
|
mode: {
|
|
@@ -87702,7 +87702,7 @@ descope-enriched-text {
|
|
|
87702
87702
|
);
|
|
87703
87703
|
|
|
87704
87704
|
const loaderRadial = {
|
|
87705
|
-
...helperTheme$
|
|
87705
|
+
...helperTheme$3,
|
|
87706
87706
|
|
|
87707
87707
|
[compVars$6.animationDuration]: '2s',
|
|
87708
87708
|
[compVars$6.animationTimingFunction]: 'linear',
|
|
@@ -87710,9 +87710,9 @@ descope-enriched-text {
|
|
|
87710
87710
|
[compVars$6.spinnerBorderStyle]: 'solid',
|
|
87711
87711
|
[compVars$6.spinnerBorderWidth]: '0.2em',
|
|
87712
87712
|
[compVars$6.spinnerBorderRadius]: '50%',
|
|
87713
|
-
[compVars$6.spinnerQuadrant1Color]: helperRefs$
|
|
87713
|
+
[compVars$6.spinnerQuadrant1Color]: helperRefs$3.spinnerColor,
|
|
87714
87714
|
[compVars$6.spinnerQuadrant2Color]: 'transparent',
|
|
87715
|
-
[compVars$6.spinnerQuadrant3Color]: helperRefs$
|
|
87715
|
+
[compVars$6.spinnerQuadrant3Color]: helperRefs$3.spinnerColor,
|
|
87716
87716
|
[compVars$6.spinnerQuadrant4Color]: 'transparent',
|
|
87717
87717
|
|
|
87718
87718
|
size: {
|
|
@@ -87729,7 +87729,7 @@ descope-enriched-text {
|
|
|
87729
87729
|
};
|
|
87730
87730
|
const vars$M = {
|
|
87731
87731
|
...compVars$6,
|
|
87732
|
-
...helperVars$
|
|
87732
|
+
...helperVars$3,
|
|
87733
87733
|
};
|
|
87734
87734
|
|
|
87735
87735
|
var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -92847,7 +92847,7 @@ descope-enriched-text {
|
|
|
92847
92847
|
const globalRefs$o = getThemeRefs(globals$1);
|
|
92848
92848
|
const vars$B = NotificationCardClass.cssVarList;
|
|
92849
92849
|
|
|
92850
|
-
const shadowColor$
|
|
92850
|
+
const shadowColor$4 = '#00000020';
|
|
92851
92851
|
|
|
92852
92852
|
const notification = {
|
|
92853
92853
|
[vars$B.hostMinWidth]: '415px',
|
|
@@ -92855,7 +92855,7 @@ descope-enriched-text {
|
|
|
92855
92855
|
[vars$B.fontSize]: globalRefs$o.typography.body1.size,
|
|
92856
92856
|
[vars$B.backgroundColor]: globalRefs$o.colors.surface.main,
|
|
92857
92857
|
[vars$B.textColor]: globalRefs$o.colors.surface.contrast,
|
|
92858
|
-
[vars$B.boxShadow]: `${globalRefs$o.shadow.wide.xl} ${shadowColor$
|
|
92858
|
+
[vars$B.boxShadow]: `${globalRefs$o.shadow.wide.xl} ${shadowColor$4}, ${globalRefs$o.shadow.narrow.xl} ${shadowColor$4}`,
|
|
92859
92859
|
[vars$B.verticalPadding]: '0.625em',
|
|
92860
92860
|
[vars$B.horizontalPadding]: '1.5em',
|
|
92861
92861
|
[vars$B.borderRadius]: globalRefs$o.radius.xs,
|
|
@@ -97730,7 +97730,7 @@ descope-enriched-text {
|
|
|
97730
97730
|
)(RawDateFieldClass);
|
|
97731
97731
|
|
|
97732
97732
|
const globalRefs$c = getThemeRefs(globals$1);
|
|
97733
|
-
const shadowColor$
|
|
97733
|
+
const shadowColor$3 = '#00000020';
|
|
97734
97734
|
const { shadow } = globalRefs$c;
|
|
97735
97735
|
|
|
97736
97736
|
const vars$m = DateFieldClass.cssVarList;
|
|
@@ -97744,7 +97744,7 @@ descope-enriched-text {
|
|
|
97744
97744
|
[vars$m.overlay.backgroundColor]: refs$1.backgroundColor,
|
|
97745
97745
|
[vars$m.overlay.backdropBackgroundColor]: 'transparent',
|
|
97746
97746
|
[vars$m.overlay.backdropPointerEvents]: 'all',
|
|
97747
|
-
[vars$m.overlay.boxShadow]: `${shadow.wide.xl} ${shadowColor$
|
|
97747
|
+
[vars$m.overlay.boxShadow]: `${shadow.wide.xl} ${shadowColor$3}, ${shadow.narrow.xl} ${shadowColor$3}`,
|
|
97748
97748
|
[vars$m.overlay.outlineWidth]: '0',
|
|
97749
97749
|
[vars$m.overlay.outlineColor]: 'transparent',
|
|
97750
97750
|
[vars$m.overlay.outlineStyle]: 'none',
|
|
@@ -98196,15 +98196,15 @@ descope-enriched-text {
|
|
|
98196
98196
|
|
|
98197
98197
|
const compVars$3 = ListClass.cssVarList;
|
|
98198
98198
|
|
|
98199
|
-
const [helperTheme$
|
|
98199
|
+
const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars$1(
|
|
98200
98200
|
{ shadowColor: '#00000020' },
|
|
98201
98201
|
componentName$n
|
|
98202
98202
|
);
|
|
98203
98203
|
|
|
98204
|
-
const { shadowColor: shadowColor$
|
|
98204
|
+
const { shadowColor: shadowColor$2 } = helperRefs$2;
|
|
98205
98205
|
|
|
98206
98206
|
const list = {
|
|
98207
|
-
...helperTheme$
|
|
98207
|
+
...helperTheme$2,
|
|
98208
98208
|
|
|
98209
98209
|
[compVars$3.hostWidth]: '100%',
|
|
98210
98210
|
[compVars$3.backgroundColor]: globalRefs$a.colors.surface.main,
|
|
@@ -98216,7 +98216,7 @@ descope-enriched-text {
|
|
|
98216
98216
|
[compVars$3.gap]: globalRefs$a.spacing.md,
|
|
98217
98217
|
[compVars$3.verticalPadding]: globalRefs$a.spacing.lg,
|
|
98218
98218
|
[compVars$3.horizontalPadding]: globalRefs$a.spacing.lg,
|
|
98219
|
-
[compVars$3.boxShadow]: `${globalRefs$a.shadow.wide.sm} ${shadowColor$
|
|
98219
|
+
[compVars$3.boxShadow]: `${globalRefs$a.shadow.wide.sm} ${shadowColor$2}, ${globalRefs$a.shadow.narrow.sm} ${shadowColor$2}`,
|
|
98220
98220
|
[compVars$3.maxHeight]: '100%',
|
|
98221
98221
|
[compVars$3.hostDirection]: globalRefs$a.direction,
|
|
98222
98222
|
[compVars$3.minItemsWidth]: '150px',
|
|
@@ -98240,7 +98240,7 @@ descope-enriched-text {
|
|
|
98240
98240
|
|
|
98241
98241
|
const vars$k = {
|
|
98242
98242
|
...compVars$3,
|
|
98243
|
-
...helperVars$
|
|
98243
|
+
...helperVars$2,
|
|
98244
98244
|
};
|
|
98245
98245
|
|
|
98246
98246
|
var list$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -101462,17 +101462,17 @@ descope-enriched-text {
|
|
|
101462
101462
|
|
|
101463
101463
|
const compVars$1 = CollapsibleContainerClass.cssVarList;
|
|
101464
101464
|
|
|
101465
|
-
const [helperTheme, helperRefs, helperVars] = createHelperVars$1(
|
|
101465
|
+
const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars$1(
|
|
101466
101466
|
{
|
|
101467
101467
|
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
101468
101468
|
},
|
|
101469
101469
|
componentName$7
|
|
101470
101470
|
);
|
|
101471
101471
|
|
|
101472
|
-
const { shadowColor } = helperRefs;
|
|
101472
|
+
const { shadowColor: shadowColor$1 } = helperRefs$1;
|
|
101473
101473
|
|
|
101474
101474
|
const collapsibleContainer = {
|
|
101475
|
-
...helperTheme,
|
|
101475
|
+
...helperTheme$1,
|
|
101476
101476
|
|
|
101477
101477
|
[compVars$1.hostWidth]: '100%',
|
|
101478
101478
|
[compVars$1.boxShadow]: 'none',
|
|
@@ -101520,20 +101520,20 @@ descope-enriched-text {
|
|
|
101520
101520
|
|
|
101521
101521
|
shadow: {
|
|
101522
101522
|
sm: {
|
|
101523
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.sm} ${shadowColor}, ${globalRefs$2.shadow.narrow.sm} ${shadowColor}`,
|
|
101523
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.sm} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.sm} ${shadowColor$1}`,
|
|
101524
101524
|
},
|
|
101525
101525
|
md: {
|
|
101526
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.md} ${shadowColor}, ${globalRefs$2.shadow.narrow.md} ${shadowColor}`,
|
|
101526
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.md} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.md} ${shadowColor$1}`,
|
|
101527
101527
|
},
|
|
101528
101528
|
lg: {
|
|
101529
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.lg} ${shadowColor}, ${globalRefs$2.shadow.narrow.lg} ${shadowColor}`,
|
|
101529
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.lg} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.lg} ${shadowColor$1}`,
|
|
101530
101530
|
},
|
|
101531
101531
|
xl: {
|
|
101532
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.xl} ${shadowColor}, ${globalRefs$2.shadow.narrow.xl} ${shadowColor}`,
|
|
101532
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide.xl} ${shadowColor$1}, ${globalRefs$2.shadow.narrow.xl} ${shadowColor$1}`,
|
|
101533
101533
|
},
|
|
101534
101534
|
'2xl': {
|
|
101535
|
-
[helperVars.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
101536
|
-
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide['2xl']} ${shadowColor}`,
|
|
101535
|
+
[helperVars$1.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
101536
|
+
[compVars$1.boxShadow]: `${globalRefs$2.shadow.wide['2xl']} ${shadowColor$1}`,
|
|
101537
101537
|
},
|
|
101538
101538
|
},
|
|
101539
101539
|
|
|
@@ -101568,7 +101568,7 @@ descope-enriched-text {
|
|
|
101568
101568
|
|
|
101569
101569
|
const vars$6 = {
|
|
101570
101570
|
...compVars$1,
|
|
101571
|
-
...helperVars,
|
|
101571
|
+
...helperVars$1,
|
|
101572
101572
|
};
|
|
101573
101573
|
|
|
101574
101574
|
var collapsibleContainer$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -102663,6 +102663,24 @@ descope-enriched-text {
|
|
|
102663
102663
|
return this.getAttribute('text')?.trim() || '';
|
|
102664
102664
|
}
|
|
102665
102665
|
|
|
102666
|
+
get isStaticDisplay() {
|
|
102667
|
+
return this.getAttribute('static-display') === 'true';
|
|
102668
|
+
}
|
|
102669
|
+
|
|
102670
|
+
// We use `static-display` for presentation purposes, to show the tooltip content.
|
|
102671
|
+
// This should be used only when `opened` is `true`. Once `static-display` is set,
|
|
102672
|
+
// the overlay would become a `static` element, and will have layout in the presenting page.
|
|
102673
|
+
// This is mainly aimed to solve the presentation problem on our Styles Page in the Console.
|
|
102674
|
+
#handleStaticDisplay() {
|
|
102675
|
+
if (this.isStaticDisplay) {
|
|
102676
|
+
this.#revealWrappedParts();
|
|
102677
|
+
this.setAttribute('inert', 'true');
|
|
102678
|
+
} else {
|
|
102679
|
+
this.#hideWrappedParts();
|
|
102680
|
+
this.removeAttribute('inert');
|
|
102681
|
+
}
|
|
102682
|
+
}
|
|
102683
|
+
|
|
102666
102684
|
init() {
|
|
102667
102685
|
super.init();
|
|
102668
102686
|
|
|
@@ -102671,15 +102689,29 @@ descope-enriched-text {
|
|
|
102671
102689
|
this.insertAdjacentHTML('beforeend', '<vaadin-tooltip></vaadin-tooltip>');
|
|
102672
102690
|
this.tooltip = this.querySelector('vaadin-tooltip');
|
|
102673
102691
|
|
|
102692
|
+
this.#hideWrappedParts();
|
|
102693
|
+
|
|
102694
|
+
this.#setTooltipTarget();
|
|
102695
|
+
|
|
102696
|
+
setTimeout(() => this.#onOverlayReady());
|
|
102697
|
+
}
|
|
102698
|
+
|
|
102699
|
+
#hideWrappedParts() {
|
|
102674
102700
|
this.tooltip.style.width = '0';
|
|
102675
102701
|
this.tooltip.style.height = '0';
|
|
102676
102702
|
this.tooltip.style.display = 'block';
|
|
102677
102703
|
this.tooltip.style.overflow = 'hidden';
|
|
102678
102704
|
this.tooltip.style.position = 'absolute';
|
|
102679
|
-
|
|
102680
|
-
|
|
102681
|
-
|
|
102682
|
-
|
|
102705
|
+
}
|
|
102706
|
+
|
|
102707
|
+
#revealWrappedParts() {
|
|
102708
|
+
this.tooltip.style.width = '100%';
|
|
102709
|
+
this.tooltip.style.height = '100%';
|
|
102710
|
+
this.tooltip.style.position = 'static';
|
|
102711
|
+
this.tooltip.style.overflow = 'visible';
|
|
102712
|
+
this.tooltip.textContent = '';
|
|
102713
|
+
this.overlay.style.display = 'block';
|
|
102714
|
+
this.overlay.style.position = 'static';
|
|
102683
102715
|
}
|
|
102684
102716
|
|
|
102685
102717
|
#onOverlayReady() {
|
|
@@ -102744,7 +102776,10 @@ descope-enriched-text {
|
|
|
102744
102776
|
// When `opened` attr is used, vaadin doesn't execute `_attachOverlay`,
|
|
102745
102777
|
// and the overlay element is rendered outside the component, on the top
|
|
102746
102778
|
// level. We need to move it back to the local component's DOM.
|
|
102747
|
-
setTimeout(() =>
|
|
102779
|
+
setTimeout(() => {
|
|
102780
|
+
this.tooltip.shadowRoot.appendChild(this.overlay);
|
|
102781
|
+
this.#handleStaticDisplay();
|
|
102782
|
+
});
|
|
102748
102783
|
} else {
|
|
102749
102784
|
this.overlay._detachOverlay = () => {};
|
|
102750
102785
|
|
|
@@ -102838,7 +102873,18 @@ descope-enriched-text {
|
|
|
102838
102873
|
const globalRefs = getThemeRefs$1(globals);
|
|
102839
102874
|
const vars$1 = TooltipClass.cssVarList;
|
|
102840
102875
|
|
|
102876
|
+
const [helperTheme, helperRefs, helperVars] = createHelperVars$1(
|
|
102877
|
+
{
|
|
102878
|
+
shadowColor: '#00000020', // if we want to support transparency vars, we should use different color format
|
|
102879
|
+
},
|
|
102880
|
+
componentName$2
|
|
102881
|
+
);
|
|
102882
|
+
|
|
102883
|
+
const { shadowColor } = helperRefs;
|
|
102884
|
+
const defaultShadow = `${globalRefs.shadow.wide.sm} ${shadowColor}, ${globalRefs.shadow.narrow.sm} ${shadowColor}`;
|
|
102885
|
+
|
|
102841
102886
|
const tooltip = {
|
|
102887
|
+
...helperTheme,
|
|
102842
102888
|
[vars$1.fontFamily]: globalRefs.fonts.font1.family,
|
|
102843
102889
|
[vars$1.fontSize]: globals.typography.body2.size,
|
|
102844
102890
|
[vars$1.fontWeight]: globals.typography.body2.weight,
|
|
@@ -102851,7 +102897,26 @@ descope-enriched-text {
|
|
|
102851
102897
|
[vars$1.borderRadius]: globalRefs.radius.xs,
|
|
102852
102898
|
[vars$1.horizontalPadding]: globalRefs.spacing.md,
|
|
102853
102899
|
[vars$1.verticalPadding]: globalRefs.spacing.sm,
|
|
102854
|
-
[vars$1.boxShadow]:
|
|
102900
|
+
[vars$1.boxShadow]: defaultShadow,
|
|
102901
|
+
|
|
102902
|
+
shadow: {
|
|
102903
|
+
sm: {
|
|
102904
|
+
[vars$1.boxShadow]: defaultShadow,
|
|
102905
|
+
},
|
|
102906
|
+
md: {
|
|
102907
|
+
[vars$1.boxShadow]: `${globalRefs.shadow.wide.md} ${shadowColor}, ${globalRefs.shadow.narrow.md} ${shadowColor}`,
|
|
102908
|
+
},
|
|
102909
|
+
lg: {
|
|
102910
|
+
[vars$1.boxShadow]: `${globalRefs.shadow.wide.lg} ${shadowColor}, ${globalRefs.shadow.narrow.lg} ${shadowColor}`,
|
|
102911
|
+
},
|
|
102912
|
+
xl: {
|
|
102913
|
+
[vars$1.boxShadow]: `${globalRefs.shadow.wide.xl} ${shadowColor}, ${globalRefs.shadow.narrow.xl} ${shadowColor}`,
|
|
102914
|
+
},
|
|
102915
|
+
'2xl': {
|
|
102916
|
+
[helperVars.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
|
102917
|
+
[vars$1.boxShadow]: `${globalRefs.shadow.wide['2xl']} ${shadowColor}`,
|
|
102918
|
+
},
|
|
102919
|
+
},
|
|
102855
102920
|
};
|
|
102856
102921
|
|
|
102857
102922
|
var tooltip$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -103594,7 +103659,7 @@ const Icon = ({ icon, noColor, ...props }) => {
|
|
|
103594
103659
|
return React__default.default.createElement("descope-icon", { "fill-color": noColor, src: icon });
|
|
103595
103660
|
};
|
|
103596
103661
|
|
|
103597
|
-
const Tooltip = React__default.default.forwardRef(({ text, hideDelay = 0, hoverDelay = 0, children, readonly, ...props }, ref) => (React__default.default.createElement("descope-tooltip", { text: text, "hide-delay": hideDelay, "hover-delay": hoverDelay, readonly: readonly, ref: ref, ...props }, children)));
|
|
103662
|
+
const Tooltip = React__default.default.forwardRef(({ text, hideDelay = 0, hoverDelay = 0, children, readonly, staticDisplay, ...props }, ref) => (React__default.default.createElement("descope-tooltip", { text: text, "hide-delay": hideDelay, "hover-delay": hoverDelay, readonly: readonly, "static-display": staticDisplay, ref: ref, ...props }, children)));
|
|
103598
103663
|
|
|
103599
103664
|
const Button = React__default.default.forwardRef(({
|
|
103600
103665
|
// Button props
|
package/dist/index.d.ts
CHANGED
|
@@ -134,6 +134,7 @@ type Props$M = {
|
|
|
134
134
|
hideDelay?: number;
|
|
135
135
|
opened?: boolean;
|
|
136
136
|
readonly?: boolean;
|
|
137
|
+
staticDisplay?: boolean;
|
|
137
138
|
children?: React.ReactNode;
|
|
138
139
|
};
|
|
139
140
|
declare module 'react' {
|
|
@@ -158,6 +159,7 @@ interface ITooltip {
|
|
|
158
159
|
tooltipHideDelay?: number;
|
|
159
160
|
tooltipOpened?: boolean;
|
|
160
161
|
tooltipReadOnly?: boolean;
|
|
162
|
+
tooltipStaticDisplay?: boolean;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
declare global {
|
package/dist/index.esm.js
CHANGED
|
@@ -152,7 +152,7 @@ const Icon = ({ icon, noColor, ...props }) => {
|
|
|
152
152
|
return React.createElement("descope-icon", { "fill-color": noColor, src: icon });
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
const Tooltip = React.forwardRef(({ text, hideDelay = 0, hoverDelay = 0, children, readonly, ...props }, ref) => (React.createElement("descope-tooltip", { text: text, "hide-delay": hideDelay, "hover-delay": hoverDelay, readonly: readonly, ref: ref, ...props }, children)));
|
|
155
|
+
const Tooltip = React.forwardRef(({ text, hideDelay = 0, hoverDelay = 0, children, readonly, staticDisplay, ...props }, ref) => (React.createElement("descope-tooltip", { text: text, "hide-delay": hideDelay, "hover-delay": hoverDelay, readonly: readonly, "static-display": staticDisplay, ref: ref, ...props }, children)));
|
|
156
156
|
|
|
157
157
|
const Button = React.forwardRef(({
|
|
158
158
|
// Button props
|
|
@@ -7,6 +7,7 @@ type Props = {
|
|
|
7
7
|
hideDelay?: number;
|
|
8
8
|
opened?: boolean;
|
|
9
9
|
readonly?: boolean;
|
|
10
|
+
staticDisplay?: boolean;
|
|
10
11
|
children?: React.ReactNode;
|
|
11
12
|
};
|
|
12
13
|
declare module 'react' {
|
|
@@ -31,4 +32,5 @@ export interface ITooltip {
|
|
|
31
32
|
tooltipHideDelay?: number;
|
|
32
33
|
tooltipOpened?: boolean;
|
|
33
34
|
tooltipReadOnly?: boolean;
|
|
35
|
+
tooltipStaticDisplay?: boolean;
|
|
34
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"webpack-dev-server": "5.2.2"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@descope/web-components-ui": "2.2.
|
|
99
|
+
"@descope/web-components-ui": "2.2.15"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"react": ">= 18"
|