@descope/web-components-ui 1.0.126 → 1.0.128
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 +36 -26
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +36 -26
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/241.js +1 -1
- package/dist/umd/481.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-password/PasswordClass.js +4 -0
- package/src/mixins/proxyInputMixin.js +4 -0
- package/src/theme/components/password.js +4 -0
package/dist/index.esm.js
CHANGED
|
@@ -878,6 +878,10 @@ const proxyInputMixin = (superclass) =>
|
|
|
878
878
|
}, 0);
|
|
879
879
|
}
|
|
880
880
|
|
|
881
|
+
get name () {
|
|
882
|
+
return this.getAttribute('name');
|
|
883
|
+
}
|
|
884
|
+
|
|
881
885
|
get inputElement() {
|
|
882
886
|
this.warnIfInputElementIsMissing();
|
|
883
887
|
|
|
@@ -2763,6 +2767,7 @@ const {
|
|
|
2763
2767
|
inputField: inputField$3,
|
|
2764
2768
|
inputElement,
|
|
2765
2769
|
inputElementPlaceholder,
|
|
2770
|
+
revealButtonContainer,
|
|
2766
2771
|
revealButtonIcon,
|
|
2767
2772
|
label: label$4,
|
|
2768
2773
|
requiredIndicator: requiredIndicator$3,
|
|
@@ -2773,6 +2778,7 @@ const {
|
|
|
2773
2778
|
inputField: { selector: '::part(input-field)' },
|
|
2774
2779
|
inputElement: { selector: '> input' },
|
|
2775
2780
|
inputElementPlaceholder: { selector: '> input:placeholder-shown' },
|
|
2781
|
+
revealButtonContainer: { selector: () => '::part(reveal-button)' },
|
|
2776
2782
|
revealButtonIcon: { selector: () => '::part(reveal-button)::before' },
|
|
2777
2783
|
label: { selector: '::part(label)' },
|
|
2778
2784
|
requiredIndicator: { selector: '[required]::part(required-indicator)::after' },
|
|
@@ -2818,6 +2824,8 @@ const PasswordClass = compose(
|
|
|
2818
2824
|
{ ...revealButtonIcon, property: 'color' }
|
|
2819
2825
|
],
|
|
2820
2826
|
inputPlaceholderTextColor: { ...inputElementPlaceholder, property: 'color' },
|
|
2827
|
+
|
|
2828
|
+
revealButtonOffset: { ...revealButtonContainer, property: 'margin' }
|
|
2821
2829
|
}
|
|
2822
2830
|
}),
|
|
2823
2831
|
draggableMixin,
|
|
@@ -5523,15 +5531,15 @@ const globals = {
|
|
|
5523
5531
|
};
|
|
5524
5532
|
const vars$m = getThemeVars(globals);
|
|
5525
5533
|
|
|
5526
|
-
const globalRefs$
|
|
5534
|
+
const globalRefs$c = getThemeRefs(globals);
|
|
5527
5535
|
const compVars$2 = ButtonClass.cssVarList;
|
|
5528
5536
|
|
|
5529
5537
|
const mode = {
|
|
5530
|
-
primary: globalRefs$
|
|
5531
|
-
secondary: globalRefs$
|
|
5532
|
-
success: globalRefs$
|
|
5533
|
-
error: globalRefs$
|
|
5534
|
-
surface: globalRefs$
|
|
5538
|
+
primary: globalRefs$c.colors.primary,
|
|
5539
|
+
secondary: globalRefs$c.colors.secondary,
|
|
5540
|
+
success: globalRefs$c.colors.success,
|
|
5541
|
+
error: globalRefs$c.colors.error,
|
|
5542
|
+
surface: globalRefs$c.colors.surface
|
|
5535
5543
|
};
|
|
5536
5544
|
|
|
5537
5545
|
const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$o);
|
|
@@ -5542,11 +5550,11 @@ const horizontalPaddingRatio = 2;
|
|
|
5542
5550
|
const button = {
|
|
5543
5551
|
...helperTheme$3,
|
|
5544
5552
|
|
|
5545
|
-
[compVars$2.fontFamily]: globalRefs$
|
|
5553
|
+
[compVars$2.fontFamily]: globalRefs$c.fonts.font1.family,
|
|
5546
5554
|
|
|
5547
5555
|
[compVars$2.cursor]: 'pointer',
|
|
5548
5556
|
|
|
5549
|
-
[compVars$2.borderRadius]: globalRefs$
|
|
5557
|
+
[compVars$2.borderRadius]: globalRefs$c.radius.sm,
|
|
5550
5558
|
[compVars$2.borderWidth]: '2px',
|
|
5551
5559
|
[compVars$2.borderStyle]: 'solid',
|
|
5552
5560
|
[compVars$2.borderColor]: 'transparent',
|
|
@@ -5629,28 +5637,28 @@ var button$1 = /*#__PURE__*/Object.freeze({
|
|
|
5629
5637
|
});
|
|
5630
5638
|
|
|
5631
5639
|
const componentName = getComponentName('input-wrapper');
|
|
5632
|
-
const globalRefs$
|
|
5640
|
+
const globalRefs$b = getThemeRefs(globals);
|
|
5633
5641
|
|
|
5634
5642
|
const [theme$1, refs, vars$k] = createHelperVars({
|
|
5635
|
-
labelTextColor: globalRefs$
|
|
5636
|
-
valueTextColor: globalRefs$
|
|
5637
|
-
placeholderTextColor: globalRefs$
|
|
5643
|
+
labelTextColor: globalRefs$b.colors.surface.contrast,
|
|
5644
|
+
valueTextColor: globalRefs$b.colors.surface.contrast,
|
|
5645
|
+
placeholderTextColor: globalRefs$b.colors.surface.main,
|
|
5638
5646
|
requiredIndicator: "'*'",
|
|
5639
5647
|
|
|
5640
|
-
borderWidth: globalRefs$
|
|
5641
|
-
borderRadius: globalRefs$
|
|
5648
|
+
borderWidth: globalRefs$b.border.xs,
|
|
5649
|
+
borderRadius: globalRefs$b.radius.xs,
|
|
5642
5650
|
borderColor: 'transparent',
|
|
5643
5651
|
|
|
5644
|
-
outlineWidth: globalRefs$
|
|
5652
|
+
outlineWidth: globalRefs$b.border.sm,
|
|
5645
5653
|
outlineStyle: 'solid',
|
|
5646
5654
|
outlineColor: 'transparent',
|
|
5647
5655
|
outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
|
|
5648
5656
|
|
|
5649
5657
|
inputHeight: '2em',
|
|
5650
5658
|
|
|
5651
|
-
backgroundColor: globalRefs$
|
|
5659
|
+
backgroundColor: globalRefs$b.colors.surface.light,
|
|
5652
5660
|
|
|
5653
|
-
fontFamily: globalRefs$
|
|
5661
|
+
fontFamily: globalRefs$b.fonts.font1.family,
|
|
5654
5662
|
|
|
5655
5663
|
size: {
|
|
5656
5664
|
xs: { fontSize: '8px' },
|
|
@@ -5665,26 +5673,26 @@ const [theme$1, refs, vars$k] = createHelperVars({
|
|
|
5665
5673
|
},
|
|
5666
5674
|
|
|
5667
5675
|
_focused: {
|
|
5668
|
-
outlineColor: globalRefs$
|
|
5676
|
+
outlineColor: globalRefs$b.colors.surface.main,
|
|
5669
5677
|
_invalid: {
|
|
5670
|
-
outlineColor: globalRefs$
|
|
5678
|
+
outlineColor: globalRefs$b.colors.error.main,
|
|
5671
5679
|
}
|
|
5672
5680
|
},
|
|
5673
5681
|
|
|
5674
5682
|
_bordered: {
|
|
5675
|
-
outlineWidth: globalRefs$
|
|
5676
|
-
borderColor: globalRefs$
|
|
5683
|
+
outlineWidth: globalRefs$b.border.xs,
|
|
5684
|
+
borderColor: globalRefs$b.colors.surface.main,
|
|
5677
5685
|
borderStyle: 'solid',
|
|
5678
5686
|
_invalid: {
|
|
5679
|
-
borderColor: globalRefs$
|
|
5687
|
+
borderColor: globalRefs$b.colors.error.main,
|
|
5680
5688
|
}
|
|
5681
5689
|
},
|
|
5682
5690
|
|
|
5683
5691
|
_disabled: {
|
|
5684
|
-
labelTextColor: globalRefs$
|
|
5685
|
-
valueTextColor: globalRefs$
|
|
5686
|
-
placeholderTextColor: globalRefs$
|
|
5687
|
-
backgroundColor: globalRefs$
|
|
5692
|
+
labelTextColor: globalRefs$b.colors.surface.main,
|
|
5693
|
+
valueTextColor: globalRefs$b.colors.surface.dark,
|
|
5694
|
+
placeholderTextColor: globalRefs$b.colors.surface.dark,
|
|
5695
|
+
backgroundColor: globalRefs$b.colors.surface.main
|
|
5688
5696
|
}
|
|
5689
5697
|
}, componentName);
|
|
5690
5698
|
|
|
@@ -5724,6 +5732,7 @@ var textField$1 = /*#__PURE__*/Object.freeze({
|
|
|
5724
5732
|
vars: vars$j
|
|
5725
5733
|
});
|
|
5726
5734
|
|
|
5735
|
+
const globalRefs$a = getThemeRefs(globals);
|
|
5727
5736
|
const vars$i = PasswordClass.cssVarList;
|
|
5728
5737
|
|
|
5729
5738
|
const password = {
|
|
@@ -5744,6 +5753,7 @@ const password = {
|
|
|
5744
5753
|
[vars$i.inputOutlineStyle]: refs.outlineStyle,
|
|
5745
5754
|
[vars$i.inputOutlineColor]: refs.outlineColor,
|
|
5746
5755
|
[vars$i.inputOutlineOffset]: refs.outlineOffset,
|
|
5756
|
+
[vars$i.revealButtonOffset]: globalRefs$a.spacing.md
|
|
5747
5757
|
};
|
|
5748
5758
|
|
|
5749
5759
|
var password$1 = /*#__PURE__*/Object.freeze({
|