@descope/web-components-ui 1.0.160 → 1.0.162
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.cjs.js +125 -122
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +125 -122
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/descope-combo-box-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-combo-box/ComboBoxClass.js +4 -5
- package/src/theme/components/loader/loaderRadial.js +22 -19
package/dist/index.esm.js
CHANGED
@@ -3127,18 +3127,17 @@ const ComboBoxMixin = (superclass) =>
|
|
3127
3127
|
// so we override it to open inside the shadow DOM
|
3128
3128
|
#overrideOverlaySettings() {
|
3129
3129
|
const overlay = this.baseElement.shadowRoot.querySelector('vaadin-combo-box-overlay');
|
3130
|
-
|
3131
3130
|
overlay._attachOverlay = () => {
|
3132
|
-
|
3131
|
+
overlay.bringToFront();
|
3133
3132
|
};
|
3134
|
-
overlay._detachOverlay = () => {};
|
3135
|
-
overlay._enterModalState = () => {};
|
3133
|
+
overlay._detachOverlay = () => { };
|
3134
|
+
overlay._enterModalState = () => { };
|
3136
3135
|
}
|
3137
3136
|
|
3138
3137
|
init() {
|
3139
3138
|
super.init?.();
|
3140
3139
|
|
3141
|
-
this.#overrideOverlaySettings
|
3140
|
+
this.#overrideOverlaySettings();
|
3142
3141
|
observeChildren(this, this.#onChildrenChange.bind(this));
|
3143
3142
|
}
|
3144
3143
|
};
|
@@ -5935,7 +5934,7 @@ const globals = {
|
|
5935
5934
|
const vars$o = getThemeVars(globals);
|
5936
5935
|
|
5937
5936
|
const globalRefs$b = getThemeRefs(globals);
|
5938
|
-
const compVars$
|
5937
|
+
const compVars$3 = ButtonClass.cssVarList;
|
5939
5938
|
|
5940
5939
|
const mode = {
|
5941
5940
|
primary: globalRefs$b.colors.primary,
|
@@ -5945,7 +5944,7 @@ const mode = {
|
|
5945
5944
|
surface: globalRefs$b.colors.surface,
|
5946
5945
|
};
|
5947
5946
|
|
5948
|
-
const [helperTheme$3, helperRefs$3, helperVars$
|
5947
|
+
const [helperTheme$3, helperRefs$3, helperVars$3] = createHelperVars({ mode }, componentName$r);
|
5949
5948
|
|
5950
5949
|
const verticalPaddingRatio = 3;
|
5951
5950
|
const horizontalPaddingRatio = 2;
|
@@ -5953,88 +5952,88 @@ const horizontalPaddingRatio = 2;
|
|
5953
5952
|
const button = {
|
5954
5953
|
...helperTheme$3,
|
5955
5954
|
|
5956
|
-
[compVars$
|
5955
|
+
[compVars$3.fontFamily]: globalRefs$b.fonts.font1.family,
|
5957
5956
|
|
5958
|
-
[compVars$
|
5959
|
-
[compVars$
|
5957
|
+
[compVars$3.cursor]: 'pointer',
|
5958
|
+
[compVars$3.hostHeight]: '3em',
|
5960
5959
|
|
5961
|
-
[compVars$
|
5962
|
-
[compVars$
|
5963
|
-
[compVars$
|
5964
|
-
[compVars$
|
5960
|
+
[compVars$3.borderRadius]: globalRefs$b.radius.sm,
|
5961
|
+
[compVars$3.borderWidth]: globalRefs$b.border.xs,
|
5962
|
+
[compVars$3.borderStyle]: 'solid',
|
5963
|
+
[compVars$3.borderColor]: 'transparent',
|
5965
5964
|
|
5966
|
-
[compVars$
|
5965
|
+
[compVars$3.labelSpacing]: '0.25em',
|
5967
5966
|
|
5968
|
-
[compVars$
|
5969
|
-
[compVars$
|
5967
|
+
[compVars$3.verticalPadding]: `calc(var(${compVars$3.fontSize}) / ${verticalPaddingRatio})`,
|
5968
|
+
[compVars$3.horizontalPadding]: `calc(var(${compVars$3.fontSize}) / ${horizontalPaddingRatio})`,
|
5970
5969
|
|
5971
|
-
[compVars$
|
5972
|
-
[compVars$
|
5973
|
-
[compVars$
|
5974
|
-
[compVars$
|
5970
|
+
[compVars$3.outlineWidth]: globals.border.sm,
|
5971
|
+
[compVars$3.outlineOffset]: '0px', // keep `px` unit for external calc
|
5972
|
+
[compVars$3.outlineStyle]: 'solid',
|
5973
|
+
[compVars$3.outlineColor]: 'transparent',
|
5975
5974
|
|
5976
5975
|
size: {
|
5977
|
-
xs: { [compVars$
|
5978
|
-
sm: { [compVars$
|
5979
|
-
md: { [compVars$
|
5980
|
-
lg: { [compVars$
|
5976
|
+
xs: { [compVars$3.fontSize]: '12px' },
|
5977
|
+
sm: { [compVars$3.fontSize]: '14px' },
|
5978
|
+
md: { [compVars$3.fontSize]: '16px' },
|
5979
|
+
lg: { [compVars$3.fontSize]: '18px' },
|
5981
5980
|
},
|
5982
5981
|
|
5983
5982
|
_fullWidth: {
|
5984
|
-
[compVars$
|
5983
|
+
[compVars$3.hostWidth]: '100%',
|
5985
5984
|
},
|
5986
5985
|
|
5987
5986
|
_loading: {
|
5988
|
-
[compVars$
|
5989
|
-
[compVars$
|
5987
|
+
[compVars$3.cursor]: 'wait',
|
5988
|
+
[compVars$3.labelTextColor]: helperRefs$3.main,
|
5990
5989
|
},
|
5991
5990
|
|
5992
5991
|
variant: {
|
5993
5992
|
contained: {
|
5994
|
-
[compVars$
|
5995
|
-
[compVars$
|
5993
|
+
[compVars$3.labelTextColor]: helperRefs$3.contrast,
|
5994
|
+
[compVars$3.backgroundColor]: helperRefs$3.main,
|
5996
5995
|
_hover: {
|
5997
|
-
[compVars$
|
5996
|
+
[compVars$3.backgroundColor]: helperRefs$3.dark,
|
5998
5997
|
_loading: {
|
5999
|
-
[compVars$
|
5998
|
+
[compVars$3.backgroundColor]: helperRefs$3.main,
|
6000
5999
|
},
|
6001
6000
|
},
|
6002
6001
|
_active: {
|
6003
|
-
[compVars$
|
6002
|
+
[compVars$3.backgroundColor]: helperRefs$3.main,
|
6004
6003
|
},
|
6005
6004
|
},
|
6006
6005
|
|
6007
6006
|
outline: {
|
6008
|
-
[compVars$
|
6009
|
-
[compVars$
|
6007
|
+
[compVars$3.labelTextColor]: helperRefs$3.main,
|
6008
|
+
[compVars$3.borderColor]: 'currentColor',
|
6010
6009
|
_hover: {
|
6011
|
-
[compVars$
|
6010
|
+
[compVars$3.labelTextColor]: helperRefs$3.dark,
|
6012
6011
|
},
|
6013
6012
|
_active: {
|
6014
|
-
[compVars$
|
6013
|
+
[compVars$3.labelTextColor]: helperRefs$3.main,
|
6015
6014
|
},
|
6016
6015
|
},
|
6017
6016
|
|
6018
6017
|
link: {
|
6019
|
-
[compVars$
|
6018
|
+
[compVars$3.labelTextColor]: helperRefs$3.main,
|
6020
6019
|
_hover: {
|
6021
|
-
[compVars$
|
6022
|
-
[compVars$
|
6020
|
+
[compVars$3.labelTextColor]: helperRefs$3.dark,
|
6021
|
+
[compVars$3.labelTextDecoration]: 'underline',
|
6023
6022
|
},
|
6024
6023
|
_active: {
|
6025
|
-
[compVars$
|
6024
|
+
[compVars$3.labelTextColor]: helperRefs$3.dark,
|
6026
6025
|
},
|
6027
6026
|
},
|
6028
6027
|
},
|
6029
6028
|
|
6030
6029
|
_focused: {
|
6031
|
-
[compVars$
|
6030
|
+
[compVars$3.outlineColor]: globalRefs$b.colors.surface.main,
|
6032
6031
|
},
|
6033
6032
|
};
|
6034
6033
|
|
6035
6034
|
const vars$n = {
|
6036
|
-
...compVars$
|
6037
|
-
...helperVars$
|
6035
|
+
...compVars$3,
|
6036
|
+
...helperVars$3,
|
6038
6037
|
};
|
6039
6038
|
|
6040
6039
|
var button$1 = /*#__PURE__*/Object.freeze({
|
@@ -6395,7 +6394,7 @@ var switchToggle$1 = /*#__PURE__*/Object.freeze({
|
|
6395
6394
|
|
6396
6395
|
const globalRefs$6 = getThemeRefs(globals);
|
6397
6396
|
|
6398
|
-
const compVars$
|
6397
|
+
const compVars$2 = ContainerClass.cssVarList;
|
6399
6398
|
|
6400
6399
|
const verticalAlignment = {
|
6401
6400
|
start: { verticalAlignment: 'start' },
|
@@ -6409,7 +6408,7 @@ const horizontalAlignment = {
|
|
6409
6408
|
end: { horizontalAlignment: 'end' },
|
6410
6409
|
};
|
6411
6410
|
|
6412
|
-
const [helperTheme$2, helperRefs$2, helperVars$
|
6411
|
+
const [helperTheme$2, helperRefs$2, helperVars$2] = createHelperVars(
|
6413
6412
|
{
|
6414
6413
|
verticalAlignment,
|
6415
6414
|
horizontalAlignment,
|
@@ -6423,85 +6422,85 @@ const { shadowColor } = helperRefs$2;
|
|
6423
6422
|
const container = {
|
6424
6423
|
...helperTheme$2,
|
6425
6424
|
|
6426
|
-
[compVars$
|
6427
|
-
[compVars$
|
6428
|
-
[compVars$
|
6429
|
-
[compVars$
|
6425
|
+
[compVars$2.hostWidth]: '100%',
|
6426
|
+
[compVars$2.boxShadow]: 'none',
|
6427
|
+
[compVars$2.backgroundColor]: globalRefs$6.colors.surface.light,
|
6428
|
+
[compVars$2.color]: globalRefs$6.colors.surface.contrast,
|
6430
6429
|
|
6431
6430
|
verticalPadding: {
|
6432
|
-
sm: { [compVars$
|
6433
|
-
md: { [compVars$
|
6434
|
-
lg: { [compVars$
|
6431
|
+
sm: { [compVars$2.verticalPadding]: '5px' },
|
6432
|
+
md: { [compVars$2.verticalPadding]: '10px' },
|
6433
|
+
lg: { [compVars$2.verticalPadding]: '20px' },
|
6435
6434
|
},
|
6436
6435
|
|
6437
6436
|
horizontalPadding: {
|
6438
|
-
sm: { [compVars$
|
6439
|
-
md: { [compVars$
|
6440
|
-
lg: { [compVars$
|
6437
|
+
sm: { [compVars$2.horizontalPadding]: '5px' },
|
6438
|
+
md: { [compVars$2.horizontalPadding]: '10px' },
|
6439
|
+
lg: { [compVars$2.horizontalPadding]: '20px' },
|
6441
6440
|
},
|
6442
6441
|
|
6443
6442
|
direction: {
|
6444
6443
|
row: {
|
6445
|
-
[compVars$
|
6446
|
-
[compVars$
|
6447
|
-
[compVars$
|
6448
|
-
[compVars$
|
6444
|
+
[compVars$2.flexDirection]: 'row',
|
6445
|
+
[compVars$2.alignItems]: helperRefs$2.verticalAlignment,
|
6446
|
+
[compVars$2.justifyContent]: helperRefs$2.horizontalAlignment,
|
6447
|
+
[compVars$2.flexWrap]: 'wrap',
|
6449
6448
|
horizontalAlignment: {
|
6450
6449
|
spaceBetween: {
|
6451
|
-
[helperVars$
|
6450
|
+
[helperVars$2.horizontalAlignment]: 'space-between',
|
6452
6451
|
},
|
6453
6452
|
},
|
6454
6453
|
},
|
6455
6454
|
column: {
|
6456
|
-
[compVars$
|
6457
|
-
[compVars$
|
6458
|
-
[compVars$
|
6455
|
+
[compVars$2.flexDirection]: 'column',
|
6456
|
+
[compVars$2.alignItems]: helperRefs$2.horizontalAlignment,
|
6457
|
+
[compVars$2.justifyContent]: helperRefs$2.verticalAlignment,
|
6459
6458
|
verticalAlignment: {
|
6460
6459
|
spaceBetween: {
|
6461
|
-
[helperVars$
|
6460
|
+
[helperVars$2.verticalAlignment]: 'space-between',
|
6462
6461
|
},
|
6463
6462
|
},
|
6464
6463
|
},
|
6465
6464
|
},
|
6466
6465
|
|
6467
6466
|
spaceBetween: {
|
6468
|
-
sm: { [compVars$
|
6469
|
-
md: { [compVars$
|
6470
|
-
lg: { [compVars$
|
6467
|
+
sm: { [compVars$2.gap]: '10px' },
|
6468
|
+
md: { [compVars$2.gap]: '20px' },
|
6469
|
+
lg: { [compVars$2.gap]: '30px' },
|
6471
6470
|
},
|
6472
6471
|
|
6473
6472
|
shadow: {
|
6474
6473
|
sm: {
|
6475
|
-
[compVars$
|
6474
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide.sm} ${shadowColor}, ${globalRefs$6.shadow.narrow.sm} ${shadowColor}`,
|
6476
6475
|
},
|
6477
6476
|
md: {
|
6478
|
-
[compVars$
|
6477
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide.md} ${shadowColor}, ${globalRefs$6.shadow.narrow.md} ${shadowColor}`,
|
6479
6478
|
},
|
6480
6479
|
lg: {
|
6481
|
-
[compVars$
|
6480
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide.lg} ${shadowColor}, ${globalRefs$6.shadow.narrow.lg} ${shadowColor}`,
|
6482
6481
|
},
|
6483
6482
|
xl: {
|
6484
|
-
[compVars$
|
6483
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide.xl} ${shadowColor}, ${globalRefs$6.shadow.narrow.xl} ${shadowColor}`,
|
6485
6484
|
},
|
6486
6485
|
'2xl': {
|
6487
|
-
[helperVars$
|
6488
|
-
[compVars$
|
6486
|
+
[helperVars$2.shadowColor]: '#00000050', // mimic daisyUI shadow settings
|
6487
|
+
[compVars$2.boxShadow]: `${globalRefs$6.shadow.wide['2xl']} ${shadowColor}`,
|
6489
6488
|
},
|
6490
6489
|
},
|
6491
6490
|
|
6492
6491
|
borderRadius: {
|
6493
|
-
sm: { [compVars$
|
6494
|
-
md: { [compVars$
|
6495
|
-
lg: { [compVars$
|
6496
|
-
xl: { [compVars$
|
6497
|
-
'2xl': { [compVars$
|
6498
|
-
'3xl': { [compVars$
|
6492
|
+
sm: { [compVars$2.borderRadius]: globalRefs$6.radius.sm },
|
6493
|
+
md: { [compVars$2.borderRadius]: globalRefs$6.radius.md },
|
6494
|
+
lg: { [compVars$2.borderRadius]: globalRefs$6.radius.lg },
|
6495
|
+
xl: { [compVars$2.borderRadius]: globalRefs$6.radius.xl },
|
6496
|
+
'2xl': { [compVars$2.borderRadius]: globalRefs$6.radius['2xl'] },
|
6497
|
+
'3xl': { [compVars$2.borderRadius]: globalRefs$6.radius['3xl'] },
|
6499
6498
|
},
|
6500
6499
|
};
|
6501
6500
|
|
6502
6501
|
const vars$e = {
|
6503
|
-
...compVars$
|
6504
|
-
...helperVars$
|
6502
|
+
...compVars$2,
|
6503
|
+
...helperVars$2,
|
6505
6504
|
};
|
6506
6505
|
|
6507
6506
|
var container$1 = /*#__PURE__*/Object.freeze({
|
@@ -6664,9 +6663,9 @@ var link$1 = /*#__PURE__*/Object.freeze({
|
|
6664
6663
|
});
|
6665
6664
|
|
6666
6665
|
const globalRefs$3 = getThemeRefs(globals);
|
6667
|
-
const compVars = DividerClass.cssVarList;
|
6666
|
+
const compVars$1 = DividerClass.cssVarList;
|
6668
6667
|
|
6669
|
-
const [helperTheme$1, helperRefs$1, helperVars] = createHelperVars(
|
6668
|
+
const [helperTheme$1, helperRefs$1, helperVars$1] = createHelperVars(
|
6670
6669
|
{
|
6671
6670
|
thickness: '2px',
|
6672
6671
|
spacing: '10px',
|
@@ -6677,32 +6676,32 @@ const [helperTheme$1, helperRefs$1, helperVars] = createHelperVars(
|
|
6677
6676
|
const divider = {
|
6678
6677
|
...helperTheme$1,
|
6679
6678
|
|
6680
|
-
[compVars.alignItems]: 'center',
|
6681
|
-
[compVars.flexDirection]: 'row',
|
6682
|
-
[compVars.alignSelf]: 'stretch',
|
6683
|
-
[compVars.hostWidth]: '100%',
|
6684
|
-
[compVars.stripeColor]: globalRefs$3.colors.surface.main,
|
6685
|
-
[compVars.stripeColorOpacity]: '0.5',
|
6686
|
-
[compVars.stripeHorizontalThickness]: helperRefs$1.thickness,
|
6687
|
-
[compVars.labelTextWidth]: 'fit-content',
|
6688
|
-
[compVars.labelTextMaxWidth]: 'calc(100% - 100px)',
|
6689
|
-
[compVars.labelTextHorizontalSpacing]: helperRefs$1.spacing,
|
6679
|
+
[compVars$1.alignItems]: 'center',
|
6680
|
+
[compVars$1.flexDirection]: 'row',
|
6681
|
+
[compVars$1.alignSelf]: 'stretch',
|
6682
|
+
[compVars$1.hostWidth]: '100%',
|
6683
|
+
[compVars$1.stripeColor]: globalRefs$3.colors.surface.main,
|
6684
|
+
[compVars$1.stripeColorOpacity]: '0.5',
|
6685
|
+
[compVars$1.stripeHorizontalThickness]: helperRefs$1.thickness,
|
6686
|
+
[compVars$1.labelTextWidth]: 'fit-content',
|
6687
|
+
[compVars$1.labelTextMaxWidth]: 'calc(100% - 100px)',
|
6688
|
+
[compVars$1.labelTextHorizontalSpacing]: helperRefs$1.spacing,
|
6690
6689
|
|
6691
6690
|
_vertical: {
|
6692
|
-
[compVars.minHeight]: '200px',
|
6693
|
-
[compVars.flexDirection]: 'column',
|
6694
|
-
[compVars.hostWidth]: 'fit-content',
|
6695
|
-
[compVars.hostPadding]: `0 calc(${helperRefs$1.thickness} * 3)`,
|
6696
|
-
[compVars.stripeVerticalThickness]: helperRefs$1.thickness,
|
6697
|
-
[compVars.labelTextWidth]: 'fit-content',
|
6698
|
-
[compVars.labelTextMaxWidth]: '100%',
|
6699
|
-
[compVars.labelTextVerticalSpacing]: helperRefs$1.spacing,
|
6691
|
+
[compVars$1.minHeight]: '200px',
|
6692
|
+
[compVars$1.flexDirection]: 'column',
|
6693
|
+
[compVars$1.hostWidth]: 'fit-content',
|
6694
|
+
[compVars$1.hostPadding]: `0 calc(${helperRefs$1.thickness} * 3)`,
|
6695
|
+
[compVars$1.stripeVerticalThickness]: helperRefs$1.thickness,
|
6696
|
+
[compVars$1.labelTextWidth]: 'fit-content',
|
6697
|
+
[compVars$1.labelTextMaxWidth]: '100%',
|
6698
|
+
[compVars$1.labelTextVerticalSpacing]: helperRefs$1.spacing,
|
6700
6699
|
},
|
6701
6700
|
};
|
6702
6701
|
|
6703
6702
|
const vars$9 = {
|
6704
|
-
...compVars,
|
6705
|
-
...helperVars,
|
6703
|
+
...compVars$1,
|
6704
|
+
...helperVars$1,
|
6706
6705
|
};
|
6707
6706
|
|
6708
6707
|
var divider$1 = /*#__PURE__*/Object.freeze({
|
@@ -6786,9 +6785,9 @@ var loaderLinear$1 = /*#__PURE__*/Object.freeze({
|
|
6786
6785
|
});
|
6787
6786
|
|
6788
6787
|
const globalRefs$1 = getThemeRefs(globals);
|
6789
|
-
const
|
6788
|
+
const compVars = LoaderRadialClass.cssVarList;
|
6790
6789
|
|
6791
|
-
const [helperTheme, helperRefs] = createHelperVars(
|
6790
|
+
const [helperTheme, helperRefs, helperVars] = createHelperVars(
|
6792
6791
|
{
|
6793
6792
|
spinnerColor: globalRefs$1.colors.surface.contrast,
|
6794
6793
|
mode: {
|
@@ -6806,29 +6805,33 @@ const [helperTheme, helperRefs] = createHelperVars(
|
|
6806
6805
|
const loaderRadial = {
|
6807
6806
|
...helperTheme,
|
6808
6807
|
|
6809
|
-
[
|
6810
|
-
[
|
6811
|
-
[
|
6812
|
-
[
|
6813
|
-
[
|
6814
|
-
[
|
6815
|
-
[
|
6816
|
-
[
|
6817
|
-
[
|
6818
|
-
[
|
6808
|
+
[compVars.animationDuration]: '2s',
|
6809
|
+
[compVars.animationTimingFunction]: 'linear',
|
6810
|
+
[compVars.animationIterationCount]: 'infinite',
|
6811
|
+
[compVars.spinnerBorderStyle]: 'solid',
|
6812
|
+
[compVars.spinnerBorderWidth]: '0.2em',
|
6813
|
+
[compVars.spinnerBorderRadius]: '50%',
|
6814
|
+
[compVars.spinnerQuadrant1Color]: helperRefs.spinnerColor,
|
6815
|
+
[compVars.spinnerQuadrant2Color]: 'transparent',
|
6816
|
+
[compVars.spinnerQuadrant3Color]: helperRefs.spinnerColor,
|
6817
|
+
[compVars.spinnerQuadrant4Color]: 'transparent',
|
6819
6818
|
|
6820
6819
|
size: {
|
6821
|
-
xs: { [
|
6822
|
-
sm: { [
|
6823
|
-
md: { [
|
6824
|
-
lg: { [
|
6825
|
-
xl: { [
|
6820
|
+
xs: { [compVars.spinnerSize]: '20px' },
|
6821
|
+
sm: { [compVars.spinnerSize]: '30px' },
|
6822
|
+
md: { [compVars.spinnerSize]: '40px' },
|
6823
|
+
lg: { [compVars.spinnerSize]: '60px' },
|
6824
|
+
xl: { [compVars.spinnerSize]: '80px' },
|
6826
6825
|
},
|
6827
6826
|
|
6828
6827
|
_hidden: {
|
6829
|
-
[
|
6828
|
+
[compVars.hostDisplay]: 'none',
|
6830
6829
|
},
|
6831
6830
|
};
|
6831
|
+
const vars$6 = {
|
6832
|
+
...compVars,
|
6833
|
+
...helperVars,
|
6834
|
+
};
|
6832
6835
|
|
6833
6836
|
var loaderRadial$1 = /*#__PURE__*/Object.freeze({
|
6834
6837
|
__proto__: null,
|