@descope/web-components-ui 1.0.132 → 1.0.134

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -1443,6 +1443,7 @@ const booleanFieldMixin = (superclass) =>
1443
1443
  'size',
1444
1444
  'label',
1445
1445
  'invalid',
1446
+ 'disabled'
1446
1447
  ]
1447
1448
  });
1448
1449
 
@@ -1460,6 +1461,7 @@ ${resetInputFieldDefaultWidth()}
1460
1461
 
1461
1462
  .wrapper {
1462
1463
  display: flex;
1464
+ box-sizing: border-box;
1463
1465
  }
1464
1466
 
1465
1467
  vaadin-text-field {
@@ -1562,6 +1564,7 @@ const CheckboxClass = compose(
1562
1564
  labelTextColor: [
1563
1565
  { ...label$8, property: 'color' },
1564
1566
  { ...requiredIndicator$7, property: 'color' },
1567
+ { ...label$8, property: '-webkit-text-fill-color' }
1565
1568
  ],
1566
1569
  labelRequiredIndicator: { ...requiredIndicator$7, property: 'content' },
1567
1570
 
@@ -1575,19 +1578,26 @@ const CheckboxClass = compose(
1575
1578
  ],
1576
1579
  inputValueTextColor: { ...checkboxSurface, property: 'color' },
1577
1580
  inputBackgroundColor: { ...checkboxElement, property: 'background-color' },
1581
+
1578
1582
  inputBorderRadius: { ...checkboxElement, property: 'border-radius' },
1583
+ inputBorderWidth: { ...checkboxElement, property: 'border-width' },
1584
+ inputBorderOffset: { ...checkboxElement, property: 'border-offset' },
1585
+ inputBorderColor: { ...checkboxElement, property: 'border-color' },
1586
+ inputBorderStyle: { ...checkboxElement, property: 'border-style' },
1587
+
1579
1588
  inputOutlineWidth: { ...checkboxElement, property: 'outline-width' },
1580
1589
  inputOutlineOffset: { ...checkboxElement, property: 'outline-offset' },
1581
1590
  inputOutlineColor: { ...checkboxElement, property: 'outline-color' },
1582
1591
  inputOutlineStyle: { ...checkboxElement, property: 'outline-style' },
1592
+
1583
1593
  inputSize: [
1584
1594
  { ...checkboxElement, property: 'width' },
1585
- { ...label$8, property: 'margin-left' },
1586
1595
  { ...checkboxElement, property: 'height' },
1587
1596
  { ...checkboxSurface, property: 'font-size' },
1588
1597
  { ...component$1, property: 'font-size' },
1598
+ { ...checkboxHiddenLabel$1, property: 'line-height' },
1599
+ { ...label$8, property: 'margin-left' },
1589
1600
  { ...label$8, property: 'line-height' },
1590
- { ...checkboxHiddenLabel$1, property: 'line-height' }
1591
1601
  ],
1592
1602
  },
1593
1603
  }),
@@ -1689,6 +1699,7 @@ const SwitchToggleClass = compose(
1689
1699
  labelTextColor: [
1690
1700
  { ...label$7, property: 'color' },
1691
1701
  { ...requiredIndicator$6, property: 'color' },
1702
+ { ...label$7, property: '-webkit-text-fill-color' }
1692
1703
  ],
1693
1704
  labelRequiredIndicator: { ...requiredIndicator$6, property: 'content' },
1694
1705
  inputOutlineWidth: { ...track, property: 'outline-width' },
@@ -1714,9 +1725,6 @@ const SwitchToggleClass = compose(
1714
1725
  vaadin-checkbox[active]::part(checkbox) {
1715
1726
  transform: none;
1716
1727
  }
1717
- vaadin-checkbox[checked]::part(checkbox) {
1718
- background: none;
1719
- }
1720
1728
  vaadin-checkbox::part(checkbox)::after {
1721
1729
  position: absolute;
1722
1730
  opacity: 1;
@@ -2172,6 +2180,10 @@ class RawLink extends createBaseClass({ componentName: componentName$e, baseSele
2172
2180
  }
2173
2181
  :host a {
2174
2182
  display: inline;
2183
+ text-decoration: none;
2184
+ }
2185
+ :host a:hover {
2186
+ text-decoration: underline;
2175
2187
  }
2176
2188
  </style>
2177
2189
  <div>
@@ -2215,10 +2227,7 @@ const LinkClass = compose(
2215
2227
  { ...text$2, property: TextClass.cssVarList.textColor }
2216
2228
  ],
2217
2229
  cursor: anchor,
2218
- textUnderlineWidth: { ...anchor, property: 'border-bottom-width' },
2219
- textUnderlineStyle: { ...anchor, property: 'border-bottom-style' },
2220
- textUnderlineColor: { ...anchor, property: 'border-bottom-color' }
2221
- },
2230
+ }
2222
2231
  }),
2223
2232
  draggableMixin,
2224
2233
  componentNameValidationMixin
@@ -5559,15 +5568,15 @@ const globals = {
5559
5568
  };
5560
5569
  const vars$m = getThemeVars(globals);
5561
5570
 
5562
- const globalRefs$c = getThemeRefs(globals);
5571
+ const globalRefs$b = getThemeRefs(globals);
5563
5572
  const compVars$2 = ButtonClass.cssVarList;
5564
5573
 
5565
5574
  const mode = {
5566
- primary: globalRefs$c.colors.primary,
5567
- secondary: globalRefs$c.colors.secondary,
5568
- success: globalRefs$c.colors.success,
5569
- error: globalRefs$c.colors.error,
5570
- surface: globalRefs$c.colors.surface
5575
+ primary: globalRefs$b.colors.primary,
5576
+ secondary: globalRefs$b.colors.secondary,
5577
+ success: globalRefs$b.colors.success,
5578
+ error: globalRefs$b.colors.error,
5579
+ surface: globalRefs$b.colors.surface
5571
5580
  };
5572
5581
 
5573
5582
  const [helperTheme$3, helperRefs$3, helperVars$2] = createHelperVars({ mode }, componentName$o);
@@ -5578,11 +5587,11 @@ const horizontalPaddingRatio = 2;
5578
5587
  const button = {
5579
5588
  ...helperTheme$3,
5580
5589
 
5581
- [compVars$2.fontFamily]: globalRefs$c.fonts.font1.family,
5590
+ [compVars$2.fontFamily]: globalRefs$b.fonts.font1.family,
5582
5591
 
5583
5592
  [compVars$2.cursor]: 'pointer',
5584
5593
 
5585
- [compVars$2.borderRadius]: globalRefs$c.radius.sm,
5594
+ [compVars$2.borderRadius]: globalRefs$b.radius.sm,
5586
5595
  [compVars$2.borderWidth]: '2px',
5587
5596
  [compVars$2.borderStyle]: 'solid',
5588
5597
  [compVars$2.borderColor]: 'transparent',
@@ -5664,19 +5673,19 @@ var button$1 = /*#__PURE__*/Object.freeze({
5664
5673
  });
5665
5674
 
5666
5675
  const componentName = getComponentName('input-wrapper');
5667
- const globalRefs$b = getThemeRefs(globals);
5676
+ const globalRefs$a = getThemeRefs(globals);
5668
5677
 
5669
5678
  const [theme$1, refs, vars$k] = createHelperVars({
5670
- labelTextColor: globalRefs$b.colors.surface.contrast,
5671
- valueTextColor: globalRefs$b.colors.surface.contrast,
5672
- placeholderTextColor: globalRefs$b.colors.surface.main,
5679
+ labelTextColor: globalRefs$a.colors.surface.contrast,
5680
+ valueTextColor: globalRefs$a.colors.surface.contrast,
5681
+ placeholderTextColor: globalRefs$a.colors.surface.main,
5673
5682
  requiredIndicator: "'*'",
5674
5683
 
5675
- borderWidth: globalRefs$b.border.xs,
5676
- borderRadius: globalRefs$b.radius.xs,
5684
+ borderWidth: globalRefs$a.border.xs,
5685
+ borderRadius: globalRefs$a.radius.xs,
5677
5686
  borderColor: 'transparent',
5678
5687
 
5679
- outlineWidth: globalRefs$b.border.sm,
5688
+ outlineWidth: globalRefs$a.border.sm,
5680
5689
  outlineStyle: 'solid',
5681
5690
  outlineColor: 'transparent',
5682
5691
  outlineOffset: '0px', // we need to keep the px unit even for 0 value, as this var is used for calc in different component classes
@@ -5687,9 +5696,9 @@ const [theme$1, refs, vars$k] = createHelperVars({
5687
5696
  horizontalPadding: '0.5em',
5688
5697
  verticalPadding: '0.5em',
5689
5698
 
5690
- backgroundColor: globalRefs$b.colors.surface.light,
5699
+ backgroundColor: globalRefs$a.colors.surface.light,
5691
5700
 
5692
- fontFamily: globalRefs$b.fonts.font1.family,
5701
+ fontFamily: globalRefs$a.fonts.font1.family,
5693
5702
 
5694
5703
  size: {
5695
5704
  xs: { fontSize: '12px' },
@@ -5703,26 +5712,27 @@ const [theme$1, refs, vars$k] = createHelperVars({
5703
5712
  },
5704
5713
 
5705
5714
  _focused: {
5706
- outlineColor: globalRefs$b.colors.surface.main,
5715
+ outlineColor: globalRefs$a.colors.surface.main,
5707
5716
  _invalid: {
5708
- outlineColor: globalRefs$b.colors.error.main,
5717
+ outlineColor: globalRefs$a.colors.error.main,
5709
5718
  }
5710
5719
  },
5711
5720
 
5712
5721
  _bordered: {
5713
- outlineWidth: globalRefs$b.border.xs,
5714
- borderColor: globalRefs$b.colors.surface.main,
5722
+ outlineWidth: globalRefs$a.border.xs,
5723
+ borderColor: globalRefs$a.colors.surface.main,
5715
5724
  borderStyle: 'solid',
5716
5725
  _invalid: {
5717
- borderColor: globalRefs$b.colors.error.main,
5726
+ borderColor: globalRefs$a.colors.error.main,
5718
5727
  }
5719
5728
  },
5720
5729
 
5721
5730
  _disabled: {
5722
- labelTextColor: globalRefs$b.colors.surface.main,
5723
- valueTextColor: globalRefs$b.colors.surface.dark,
5724
- placeholderTextColor: globalRefs$b.colors.surface.dark,
5725
- backgroundColor: globalRefs$b.colors.surface.main
5731
+ labelTextColor: globalRefs$a.colors.surface.main,
5732
+ borderColor: globalRefs$a.colors.surface.main,
5733
+ valueTextColor: globalRefs$a.colors.surface.dark,
5734
+ placeholderTextColor: globalRefs$a.colors.surface.dark,
5735
+ backgroundColor: globalRefs$a.colors.surface.main
5726
5736
  }
5727
5737
  }, componentName);
5728
5738
 
@@ -5764,7 +5774,7 @@ var textField$1 = /*#__PURE__*/Object.freeze({
5764
5774
  vars: vars$j
5765
5775
  });
5766
5776
 
5767
- const globalRefs$a = getThemeRefs(globals);
5777
+ const globalRefs$9 = getThemeRefs(globals);
5768
5778
  const vars$i = PasswordClass.cssVarList;
5769
5779
 
5770
5780
  const password = {
@@ -5786,7 +5796,7 @@ const password = {
5786
5796
  [vars$i.inputOutlineStyle]: refs.outlineStyle,
5787
5797
  [vars$i.inputOutlineColor]: refs.outlineColor,
5788
5798
  [vars$i.inputOutlineOffset]: refs.outlineOffset,
5789
- [vars$i.revealButtonOffset]: globalRefs$a.spacing.md,
5799
+ [vars$i.revealButtonOffset]: globalRefs$9.spacing.md,
5790
5800
  [vars$i.revealButtonSize]: refs.toggleButtonSize
5791
5801
  };
5792
5802
 
@@ -5856,7 +5866,7 @@ var emailField$1 = /*#__PURE__*/Object.freeze({
5856
5866
  vars: vars$g
5857
5867
  });
5858
5868
 
5859
- const globalRefs$9 = getThemeRefs(globals);
5869
+ const globalRefs$8 = getThemeRefs(globals);
5860
5870
  const vars$f = TextAreaClass.cssVarList;
5861
5871
 
5862
5872
  const textArea = {
@@ -5880,7 +5890,7 @@ const textArea = {
5880
5890
  [vars$f.inputResizeType]: 'vertical',
5881
5891
 
5882
5892
  _disabled: {
5883
- [vars$f.inputBackgroundColor]: globalRefs$9.colors.surface.light,
5893
+ [vars$f.inputBackgroundColor]: globalRefs$8.colors.surface.light,
5884
5894
  },
5885
5895
 
5886
5896
  _readonly: {
@@ -5894,7 +5904,7 @@ var textArea$1 = /*#__PURE__*/Object.freeze({
5894
5904
  vars: vars$f
5895
5905
  });
5896
5906
 
5897
- const globalRefs$8 = getThemeRefs(globals);
5907
+ getThemeRefs(globals);
5898
5908
  const vars$e = CheckboxClass.cssVarList;
5899
5909
 
5900
5910
  const checkbox = {
@@ -5904,22 +5914,25 @@ const checkbox = {
5904
5914
  [vars$e.labelTextColor]: refs.labelTextColor,
5905
5915
  [vars$e.labelRequiredIndicator]: refs.requiredIndicator,
5906
5916
  [vars$e.labelFontWeight]: '400',
5907
- [vars$e.labelSpacing]: '0.5em',
5917
+ [vars$e.labelSpacing]: '0.75em',
5908
5918
  [vars$e.inputOutlineWidth]: refs.outlineWidth,
5909
5919
  [vars$e.inputOutlineOffset]: refs.outlineOffset,
5910
5920
  [vars$e.inputOutlineColor]: refs.outlineColor,
5911
5921
  [vars$e.inputOutlineStyle]: refs.outlineStyle,
5912
5922
  [vars$e.inputBorderRadius]: refs.borderRadius,
5913
- [vars$e.inputBackgroundColor]: globalRefs$8.colors.surface.main,
5923
+ [vars$e.inputBorderColor]: refs.borderColor,
5924
+ [vars$e.inputBorderWidth]: refs.borderWidth,
5925
+ [vars$e.inputBorderStyle]: refs.borderStyle,
5926
+ [vars$e.inputBackgroundColor]: refs.inputBackgroundColor,
5914
5927
  [vars$e.inputSize]: '2em',
5915
5928
 
5916
5929
  _checked: {
5917
- [vars$e.inputBackgroundColor]: globalRefs$8.colors.primary.main,
5918
- [vars$e.inputValueTextColor]: globalRefs$8.colors.primary.contrast,
5930
+ [vars$e.inputBackgroundColor]: refs.backgroundColor,
5931
+ [vars$e.inputValueTextColor]: refs.valueTextColor,
5919
5932
  },
5920
5933
 
5921
5934
  _disabled: {
5922
- [vars$e.inputBackgroundColor]: globalRefs$8.colors.surface.main,
5935
+ [vars$e.labelTextColor]: refs.labelTextColor,
5923
5936
  },
5924
5937
  };
5925
5938
 
@@ -5946,7 +5959,7 @@ const switchToggle = {
5946
5959
 
5947
5960
  [vars$d.trackBorderStyle]: refs.borderStyle,
5948
5961
  [vars$d.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
5949
- [vars$d.trackBorderColor]: globalRefs$7.colors.surface.contrast,
5962
+ [vars$d.trackBorderColor]: refs.borderColor,
5950
5963
  [vars$d.trackBackgroundColor]: 'none',
5951
5964
  [vars$d.trackBorderRadius]: globalRefs$7.radius.md,
5952
5965
  [vars$d.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
@@ -5968,16 +5981,22 @@ const switchToggle = {
5968
5981
  [vars$d.hostWidth]: refs.width,
5969
5982
 
5970
5983
  _checked: {
5971
- [vars$d.trackBorderColor]: globalRefs$7.colors.primary.main,
5984
+ [vars$d.trackBorderColor]: refs.borderColor,
5985
+ [vars$d.trackBackgroundColor]: refs.backgroundColor,
5972
5986
  [vars$d.knobLeftOffset]: `calc(100% - var(${vars$d.knobSize}) - ${knobMargin})`,
5973
- [vars$d.knobColor]: globalRefs$7.colors.primary.main,
5987
+ [vars$d.knobColor]: refs.valueTextColor,
5974
5988
  [vars$d.knobTextColor]: refs.valueTextColor,
5975
5989
  },
5976
5990
 
5977
5991
  _disabled: {
5978
- [vars$d.knobColor]: globalRefs$7.colors.surface.main,
5992
+ [vars$d.knobColor]: globalRefs$7.colors.surface.light,
5979
5993
  [vars$d.trackBorderColor]: globalRefs$7.colors.surface.main,
5980
- [vars$d.trackBackgroundColor]: globalRefs$7.colors.surface.light,
5994
+ [vars$d.trackBackgroundColor]: globalRefs$7.colors.surface.main,
5995
+ [vars$d.labelTextColor]: refs.labelTextColor,
5996
+ _checked: {
5997
+ [vars$d.knobColor]: globalRefs$7.colors.surface.light,
5998
+ [vars$d.trackBackgroundColor]: globalRefs$7.colors.surface.main,
5999
+ }
5981
6000
  },
5982
6001
 
5983
6002
  _invalid: {
@@ -6225,10 +6244,6 @@ const link = {
6225
6244
  [vars$9.hostWidth]: '100%'
6226
6245
  },
6227
6246
 
6228
- _hover: {
6229
- [vars$9.textUnderlineColor]: 'currentColor'
6230
- },
6231
-
6232
6247
  mode: {
6233
6248
  primary: {
6234
6249
  [vars$9.textColor]: globalRefs$4.colors.primary.main,