@descope/web-components-ui 1.0.161 → 1.0.162
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 +121 -117
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +121 -117
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/theme/components/loader/loaderRadial.js +22 -19
package/dist/cjs/index.cjs.js
CHANGED
@@ -1640,7 +1640,7 @@ loadingIndicatorStyles = `
|
|
1640
1640
|
`;
|
1641
1641
|
|
1642
1642
|
const globalRefs$b = getThemeRefs(globals);
|
1643
|
-
const compVars$
|
1643
|
+
const compVars$3 = ButtonClass.cssVarList;
|
1644
1644
|
|
1645
1645
|
const mode = {
|
1646
1646
|
primary: globalRefs$b.colors.primary,
|
@@ -1650,7 +1650,7 @@ const mode = {
|
|
1650
1650
|
surface: globalRefs$b.colors.surface,
|
1651
1651
|
};
|
1652
1652
|
|
1653
|
-
const [helperTheme$3, helperRefs$3, helperVars$
|
1653
|
+
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$r);
|
1654
1654
|
|
1655
1655
|
const verticalPaddingRatio = 3;
|
1656
1656
|
const horizontalPaddingRatio = 2;
|
@@ -1658,88 +1658,88 @@ const horizontalPaddingRatio = 2;
|
|
1658
1658
|
const button = {
|
1659
1659
|
...helperTheme$3,
|
1660
1660
|
|
1661
|
-
[compVars$
|
1661
|
+
[compVars$3.fontFamily]: globalRefs$b.fonts.font1.family,
|
1662
1662
|
|
1663
|
-
[compVars$
|
1664
|
-
[compVars$
|
1663
|
+
[compVars$3.cursor]: 'pointer',
|
1664
|
+
[compVars$3.hostHeight]: '3em',
|
1665
1665
|
|
1666
|
-
[compVars$
|
1667
|
-
[compVars$
|
1668
|
-
[compVars$
|
1669
|
-
[compVars$
|
1666
|
+
[compVars$3.borderRadius]: globalRefs$b.radius.sm,
|
1667
|
+
[compVars$3.borderWidth]: globalRefs$b.border.xs,
|
1668
|
+
[compVars$3.borderStyle]: 'solid',
|
1669
|
+
[compVars$3.borderColor]: 'transparent',
|
1670
1670
|
|
1671
|
-
[compVars$
|
1671
|
+
[compVars$3.labelSpacing]: '0.25em',
|
1672
1672
|
|
1673
|
-
[compVars$
|
1674
|
-
[compVars$
|
1673
|
+
[compVars$3.verticalPadding]: `calc(var(${compVars$3.fontSize}) / ${verticalPaddingRatio})`,
|
1674
|
+
[compVars$3.horizontalPadding]: `calc(var(${compVars$3.fontSize}) / ${horizontalPaddingRatio})`,
|
1675
1675
|
|
1676
|
-
[compVars$
|
1677
|
-
[compVars$
|
1678
|
-
[compVars$
|
1679
|
-
[compVars$
|
1676
|
+
[compVars$3.outlineWidth]: globals.border.sm,
|
1677
|
+
[compVars$3.outlineOffset]: '0px', // keep `px` unit for external calc
|
1678
|
+
[compVars$3.outlineStyle]: 'solid',
|
1679
|
+
[compVars$3.outlineColor]: 'transparent',
|
1680
1680
|
|
1681
1681
|
size: {
|
1682
|
-
xs: { [compVars$
|
1683
|
-
sm: { [compVars$
|
1684
|
-
md: { [compVars$
|
1685
|
-
lg: { [compVars$
|
1682
|
+
xs: { [compVars$3.fontSize]: '12px' },
|
1683
|
+
sm: { [compVars$3.fontSize]: '14px' },
|
1684
|
+
md: { [compVars$3.fontSize]: '16px' },
|
1685
|
+
lg: { [compVars$3.fontSize]: '18px' },
|
1686
1686
|
},
|
1687
1687
|
|
1688
1688
|
_fullWidth: {
|
1689
|
-
[compVars$
|
1689
|
+
[compVars$3.hostWidth]: '100%',
|
1690
1690
|
},
|
1691
1691
|
|
1692
1692
|
_loading: {
|
1693
|
-
[compVars$
|
1694
|
-
[compVars$
|
1693
|
+
[compVars$3.cursor]: 'wait',
|
1694
|
+
[compVars$3.labelTextColor]: helperRefs$3.main,
|
1695
1695
|
},
|
1696
1696
|
|
1697
1697
|
variant: {
|
1698
1698
|
contained: {
|
1699
|
-
[compVars$
|
1700
|
-
[compVars$
|
1699
|
+
[compVars$3.labelTextColor]: helperRefs$3.contrast,
|
1700
|
+
[compVars$3.backgroundColor]: helperRefs$3.main,
|
1701
1701
|
_hover: {
|
1702
|
-
[compVars$
|
1702
|
+
[compVars$3.backgroundColor]: helperRefs$3.dark,
|
1703
1703
|
_loading: {
|
1704
|
-
[compVars$
|
1704
|
+
[compVars$3.backgroundColor]: helperRefs$3.main,
|
1705
1705
|
},
|
1706
1706
|
},
|
1707
1707
|
_active: {
|
1708
|
-
[compVars$
|
1708
|
+
[compVars$3.backgroundColor]: helperRefs$3.main,
|
1709
1709
|
},
|
1710
1710
|
},
|
1711
1711
|
|
1712
1712
|
outline: {
|
1713
|
-
[compVars$
|
1714
|
-
[compVars$
|
1713
|
+
[compVars$3.labelTextColor]: helperRefs$3.main,
|
1714
|
+
[compVars$3.borderColor]: 'currentColor',
|
1715
1715
|
_hover: {
|
1716
|
-
[compVars$
|
1716
|
+
[compVars$3.labelTextColor]: helperRefs$3.dark,
|
1717
1717
|
},
|
1718
1718
|
_active: {
|
1719
|
-
[compVars$
|
1719
|
+
[compVars$3.labelTextColor]: helperRefs$3.main,
|
1720
1720
|
},
|
1721
1721
|
},
|
1722
1722
|
|
1723
1723
|
link: {
|
1724
|
-
[compVars$
|
1724
|
+
[compVars$3.labelTextColor]: helperRefs$3.main,
|
1725
1725
|
_hover: {
|
1726
|
-
[compVars$
|
1727
|
-
[compVars$
|
1726
|
+
[compVars$3.labelTextColor]: helperRefs$3.dark,
|
1727
|
+
[compVars$3.labelTextDecoration]: 'underline',
|
1728
1728
|
},
|
1729
1729
|
_active: {
|
1730
|
-
[compVars$
|
1730
|
+
[compVars$3.labelTextColor]: helperRefs$3.dark,
|
1731
1731
|
},
|
1732
1732
|
},
|
1733
1733
|
},
|
1734
1734
|
|
1735
1735
|
_focused: {
|
1736
|
-
[compVars$
|
1736
|
+
[compVars$3.outlineColor]: globalRefs$b.colors.surface.main,
|
1737
1737
|
},
|
1738
1738
|
};
|
1739
1739
|
|
1740
1740
|
const vars$n = {
|
1741
|
-
...compVars$
|
1742
|
-
...helperVars$
|
1741
|
+
...compVars$3,
|
1742
|
+
...helperVars$3,
|
1743
1743
|
};
|
1744
1744
|
|
1745
1745
|
var button$1 = /*#__PURE__*/Object.freeze({
|
@@ -2967,7 +2967,7 @@ const ContainerClass = compose(
|
|
2967
2967
|
|
2968
2968
|
const globalRefs$6 = getThemeRefs(globals);
|
2969
2969
|
|
2970
|
-
const compVars$
|
2970
|
+
const compVars$2 = ContainerClass.cssVarList;
|
2971
2971
|
|
2972
2972
|
const verticalAlignment = {
|
2973
2973
|
start: { verticalAlignment: 'start' },
|
@@ -2981,7 +2981,7 @@ const horizontalAlignment = {
|
|
2981
2981
|
end: { horizontalAlignment: 'end' },
|
2982
2982
|
};
|
2983
2983
|
|
2984
|
-
const [helperTheme$2, helperRefs$2, helperVars$
|
2984
|
+
const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
|
2985
2985
|
{
|
2986
2986
|
verticalAlignment,
|
2987
2987
|
horizontalAlignment,
|
@@ -2995,85 +2995,85 @@ const { shadowColor } = helperRefs$2;
|
|
2995
2995
|
const container = {
|
2996
2996
|
...helperTheme$2,
|
2997
2997
|
|
2998
|
-
[compVars$
|
2999
|
-
[compVars$
|
3000
|
-
[compVars$
|
3001
|
-
[compVars$
|
2998
|
+
[compVars$2.hostWidth]: '100%',
|
2999
|
+
[compVars$2.boxShadow]: 'none',
|
3000
|
+
[compVars$2.backgroundColor]: globalRefs$6.colors.surface.light,
|
3001
|
+
[compVars$2.color]: globalRefs$6.colors.surface.contrast,
|
3002
3002
|
|
3003
3003
|
verticalPadding: {
|
3004
|
-
sm: { [compVars$
|
3005
|
-
md: { [compVars$
|
3006
|
-
lg: { [compVars$
|
3004
|
+
sm: { [compVars$2.verticalPadding]: '5px' },
|
3005
|
+
md: { [compVars$2.verticalPadding]: '10px' },
|
3006
|
+
lg: { [compVars$2.verticalPadding]: '20px' },
|
3007
3007
|
},
|
3008
3008
|
|
3009
3009
|
horizontalPadding: {
|
3010
|
-
sm: { [compVars$
|
3011
|
-
md: { [compVars$
|
3012
|
-
lg: { [compVars$
|
3010
|
+
sm: { [compVars$2.horizontalPadding]: '5px' },
|
3011
|
+
md: { [compVars$2.horizontalPadding]: '10px' },
|
3012
|
+
lg: { [compVars$2.horizontalPadding]: '20px' },
|
3013
3013
|
},
|
3014
3014
|
|
3015
3015
|
direction: {
|
3016
3016
|
row: {
|
3017
|
-
[compVars$
|
3018
|
-
[compVars$
|
3019
|
-
[compVars$
|
3020
|
-
[compVars$
|
3017
|
+
[compVars$2.flexDirection]: 'row',
|
3018
|
+
[compVars$2.alignItems]: helperRefs$2.verticalAlignment,
|
3019
|
+
[compVars$2.justifyContent]: helperRefs$2.horizontalAlignment,
|
3020
|
+
[compVars$2.flexWrap]: 'wrap',
|
3021
3021
|
horizontalAlignment: {
|
3022
3022
|
spaceBetween: {
|
3023
|
-
[helperVars$
|
3023
|
+
[helperVars$2.horizontalAlignment]: 'space-between',
|
3024
3024
|
},
|
3025
3025
|
},
|
3026
3026
|
},
|
3027
3027
|
column: {
|
3028
|
-
[compVars$
|
3029
|
-
[compVars$
|
3030
|
-
[compVars$
|
3028
|
+
[compVars$2.flexDirection]: 'column',
|
3029
|
+
[compVars$2.alignItems]: helperRefs$2.horizontalAlignment,
|
3030
|
+
[compVars$2.justifyContent]: helperRefs$2.verticalAlignment,
|
3031
3031
|
verticalAlignment: {
|
3032
3032
|
spaceBetween: {
|
3033
|
-
[helperVars$
|
3033
|
+
[helperVars$2.verticalAlignment]: 'space-between',
|
3034
3034
|
},
|
3035
3035
|
},
|
3036
3036
|
},
|
3037
3037
|
},
|
3038
3038
|
|
3039
3039
|
spaceBetween: {
|
3040
|
-
sm: { [compVars$
|
3041
|
-
md: { [compVars$
|
3042
|
-
lg: { [compVars$
|
3040
|
+
sm: { [compVars$2.gap]: '10px' },
|
3041
|
+
md: { [compVars$2.gap]: '20px' },
|
3042
|
+
lg: { [compVars$2.gap]: '30px' },
|
3043
3043
|
},
|
3044
3044
|
|
3045
3045
|
shadow: {
|
3046
3046
|
sm: {
|
3047
|
-
[compVars$
|
3047
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide.sm} ${shadowColor}, ${globalRefs$6.shadow.narrow.sm} ${shadowColor}`,
|
3048
3048
|
},
|
3049
3049
|
md: {
|
3050
|
-
[compVars$
|
3050
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide.md} ${shadowColor}, ${globalRefs$6.shadow.narrow.md} ${shadowColor}`,
|
3051
3051
|
},
|
3052
3052
|
lg: {
|
3053
|
-
[compVars$
|
3053
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide.lg} ${shadowColor}, ${globalRefs$6.shadow.narrow.lg} ${shadowColor}`,
|
3054
3054
|
},
|
3055
3055
|
xl: {
|
3056
|
-
[compVars$
|
3056
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide.xl} ${shadowColor}, ${globalRefs$6.shadow.narrow.xl} ${shadowColor}`,
|
3057
3057
|
},
|
3058
3058
|
'2xl': {
|
3059
|
-
[helperVars$
|
3060
|
-
[compVars$
|
3059
|
+
[helperVars$2.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
3060
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide['2xl']} ${shadowColor}`,
|
3061
3061
|
},
|
3062
3062
|
},
|
3063
3063
|
|
3064
3064
|
borderRadius: {
|
3065
|
-
sm: { [compVars$
|
3066
|
-
md: { [compVars$
|
3067
|
-
lg: { [compVars$
|
3068
|
-
xl: { [compVars$
|
3069
|
-
'2xl': { [compVars$
|
3070
|
-
'3xl': { [compVars$
|
3065
|
+
sm: { [compVars$2.borderRadius]: globalRefs$6.radius.sm },
|
3066
|
+
md: { [compVars$2.borderRadius]: globalRefs$6.radius.md },
|
3067
|
+
lg: { [compVars$2.borderRadius]: globalRefs$6.radius.lg },
|
3068
|
+
xl: { [compVars$2.borderRadius]: globalRefs$6.radius.xl },
|
3069
|
+
'2xl': { [compVars$2.borderRadius]: globalRefs$6.radius['2xl'] },
|
3070
|
+
'3xl': { [compVars$2.borderRadius]: globalRefs$6.radius['3xl'] },
|
3071
3071
|
},
|
3072
3072
|
};
|
3073
3073
|
|
3074
3074
|
const vars$e = {
|
3075
|
-
...compVars$
|
3076
|
-
...helperVars$
|
3075
|
+
...compVars$2,
|
3076
|
+
...helperVars$2,
|
3077
3077
|
};
|
3078
3078
|
|
3079
3079
|
var container$1 = /*#__PURE__*/Object.freeze({
|
@@ -3509,9 +3509,9 @@ const DividerClass = compose(
|
|
3509
3509
|
)(RawDivider);
|
3510
3510
|
|
3511
3511
|
const globalRefs$3 = getThemeRefs(globals);
|
3512
|
-
const compVars = DividerClass.cssVarList;
|
3512
|
+
const compVars$1 = DividerClass.cssVarList;
|
3513
3513
|
|
3514
|
-
const [helperTheme$1, helperRefs$1, helperVars] = createHelperVars(
|
3514
|
+
const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
3515
3515
|
{
|
3516
3516
|
thickness: '2px',
|
3517
3517
|
spacing: '10px',
|
@@ -3522,32 +3522,32 @@ const [helperTheme$1, helperRefs$1, helperVars] = createHelperVars(
|
|
3522
3522
|
const divider = {
|
3523
3523
|
...helperTheme$1,
|
3524
3524
|
|
3525
|
-
[compVars.alignItems]: 'center',
|
3526
|
-
[compVars.flexDirection]: 'row',
|
3527
|
-
[compVars.alignSelf]: 'stretch',
|
3528
|
-
[compVars.hostWidth]: '100%',
|
3529
|
-
[compVars.stripeColor]: globalRefs$3.colors.surface.main,
|
3530
|
-
[compVars.stripeColorOpacity]: '0.5',
|
3531
|
-
[compVars.stripeHorizontalThickness]: helperRefs$1.thickness,
|
3532
|
-
[compVars.labelTextWidth]: 'fit-content',
|
3533
|
-
[compVars.labelTextMaxWidth]: 'calc(100% - 100px)',
|
3534
|
-
[compVars.labelTextHorizontalSpacing]: helperRefs$1.spacing,
|
3525
|
+
[compVars$1.alignItems]: 'center',
|
3526
|
+
[compVars$1.flexDirection]: 'row',
|
3527
|
+
[compVars$1.alignSelf]: 'stretch',
|
3528
|
+
[compVars$1.hostWidth]: '100%',
|
3529
|
+
[compVars$1.stripeColor]: globalRefs$3.colors.surface.main,
|
3530
|
+
[compVars$1.stripeColorOpacity]: '0.5',
|
3531
|
+
[compVars$1.stripeHorizontalThickness]: helperRefs$1.thickness,
|
3532
|
+
[compVars$1.labelTextWidth]: 'fit-content',
|
3533
|
+
[compVars$1.labelTextMaxWidth]: 'calc(100% - 100px)',
|
3534
|
+
[compVars$1.labelTextHorizontalSpacing]: helperRefs$1.spacing,
|
3535
3535
|
|
3536
3536
|
_vertical: {
|
3537
|
-
[compVars.minHeight]: '200px',
|
3538
|
-
[compVars.flexDirection]: 'column',
|
3539
|
-
[compVars.hostWidth]: 'fit-content',
|
3540
|
-
[compVars.hostPadding]: `0 calc(${helperRefs$1.thickness} * 3)`,
|
3541
|
-
[compVars.stripeVerticalThickness]: helperRefs$1.thickness,
|
3542
|
-
[compVars.labelTextWidth]: 'fit-content',
|
3543
|
-
[compVars.labelTextMaxWidth]: '100%',
|
3544
|
-
[compVars.labelTextVerticalSpacing]: helperRefs$1.spacing,
|
3537
|
+
[compVars$1.minHeight]: '200px',
|
3538
|
+
[compVars$1.flexDirection]: 'column',
|
3539
|
+
[compVars$1.hostWidth]: 'fit-content',
|
3540
|
+
[compVars$1.hostPadding]: `0 calc(${helperRefs$1.thickness} * 3)`,
|
3541
|
+
[compVars$1.stripeVerticalThickness]: helperRefs$1.thickness,
|
3542
|
+
[compVars$1.labelTextWidth]: 'fit-content',
|
3543
|
+
[compVars$1.labelTextMaxWidth]: '100%',
|
3544
|
+
[compVars$1.labelTextVerticalSpacing]: helperRefs$1.spacing,
|
3545
3545
|
},
|
3546
3546
|
};
|
3547
3547
|
|
3548
3548
|
const vars$9 = {
|
3549
|
-
...compVars,
|
3550
|
-
...helperVars,
|
3549
|
+
...compVars$1,
|
3550
|
+
...helperVars$1,
|
3551
3551
|
};
|
3552
3552
|
|
3553
3553
|
var divider$1 = /*#__PURE__*/Object.freeze({
|
@@ -3919,9 +3919,9 @@ const LoaderRadialClass = compose(
|
|
3919
3919
|
)(RawLoaderRadial);
|
3920
3920
|
|
3921
3921
|
const globalRefs$1 = getThemeRefs(globals);
|
3922
|
-
const
|
3922
|
+
const compVars = LoaderRadialClass.cssVarList;
|
3923
3923
|
|
3924
|
-
const [helperTheme, helperRefs] = createHelperVars(
|
3924
|
+
const [helperTheme, helperRefs, helperVars] = createHelperVars(
|
3925
3925
|
{
|
3926
3926
|
spinnerColor: globalRefs$1.colors.surface.contrast,
|
3927
3927
|
mode: {
|
@@ -3939,29 +3939,33 @@ const [helperTheme, helperRefs] = createHelperVars(
|
|
3939
3939
|
const loaderRadial = {
|
3940
3940
|
...helperTheme,
|
3941
3941
|
|
3942
|
-
[
|
3943
|
-
[
|
3944
|
-
[
|
3945
|
-
[
|
3946
|
-
[
|
3947
|
-
[
|
3948
|
-
[
|
3949
|
-
[
|
3950
|
-
[
|
3951
|
-
[
|
3942
|
+
[compVars.animationDuration]: '2s',
|
3943
|
+
[compVars.animationTimingFunction]: 'linear',
|
3944
|
+
[compVars.animationIterationCount]: 'infinite',
|
3945
|
+
[compVars.spinnerBorderStyle]: 'solid',
|
3946
|
+
[compVars.spinnerBorderWidth]: '0.2em',
|
3947
|
+
[compVars.spinnerBorderRadius]: '50%',
|
3948
|
+
[compVars.spinnerQuadrant1Color]: helperRefs.spinnerColor,
|
3949
|
+
[compVars.spinnerQuadrant2Color]: 'transparent',
|
3950
|
+
[compVars.spinnerQuadrant3Color]: helperRefs.spinnerColor,
|
3951
|
+
[compVars.spinnerQuadrant4Color]: 'transparent',
|
3952
3952
|
|
3953
3953
|
size: {
|
3954
|
-
xs: { [
|
3955
|
-
sm: { [
|
3956
|
-
md: { [
|
3957
|
-
lg: { [
|
3958
|
-
xl: { [
|
3954
|
+
xs: { [compVars.spinnerSize]: '20px' },
|
3955
|
+
sm: { [compVars.spinnerSize]: '30px' },
|
3956
|
+
md: { [compVars.spinnerSize]: '40px' },
|
3957
|
+
lg: { [compVars.spinnerSize]: '60px' },
|
3958
|
+
xl: { [compVars.spinnerSize]: '80px' },
|
3959
3959
|
},
|
3960
3960
|
|
3961
3961
|
_hidden: {
|
3962
|
-
[
|
3962
|
+
[compVars.hostDisplay]: 'none',
|
3963
3963
|
},
|
3964
3964
|
};
|
3965
|
+
const vars$6 = {
|
3966
|
+
...compVars,
|
3967
|
+
...helperVars,
|
3968
|
+
};
|
3965
3969
|
|
3966
3970
|
var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
3967
3971
|
__proto__: null,
|