@descope/web-components-ui 3.3.2 → 3.3.4

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.
Files changed (44) hide show
  1. package/dist/cjs/index.cjs.js +45 -12
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +45 -12
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/9582.js +1 -1
  6. package/dist/umd/9582.js.map +1 -1
  7. package/dist/umd/DescopeDev.js +1 -1
  8. package/dist/umd/DescopeDev.js.map +1 -1
  9. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  10. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js.map +1 -1
  11. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
  12. package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.map +1 -1
  13. package/dist/umd/descope-alert-index-js.js +1 -1
  14. package/dist/umd/descope-alert-index-js.js.map +1 -1
  15. package/dist/umd/descope-button.js +1 -1
  16. package/dist/umd/descope-button.js.map +1 -1
  17. package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
  18. package/dist/umd/descope-date-field-descope-calendar-index-js.js.map +1 -1
  19. package/dist/umd/descope-enriched-text.js +1 -1
  20. package/dist/umd/descope-enriched-text.js.map +1 -1
  21. package/dist/umd/descope-link.js +1 -1
  22. package/dist/umd/descope-link.js.map +1 -1
  23. package/dist/umd/descope-outbound-app-button.js +1 -1
  24. package/dist/umd/descope-outbound-app-button.js.map +1 -1
  25. package/dist/umd/descope-outbound-apps.js +1 -1
  26. package/dist/umd/descope-outbound-apps.js.map +1 -1
  27. package/dist/umd/descope-timer-button.js +1 -1
  28. package/dist/umd/descope-timer-button.js.map +1 -1
  29. package/dist/umd/descope-tooltip.js +1 -1
  30. package/dist/umd/descope-tooltip.js.map +1 -1
  31. package/dist/umd/descope-trusted-devices.js +1 -1
  32. package/dist/umd/descope-trusted-devices.js.map +1 -1
  33. package/dist/umd/descope-upload-file-index-js.js +1 -1
  34. package/dist/umd/descope-upload-file-index-js.js.map +1 -1
  35. package/dist/umd/descope-user-attribute-index-js.js +1 -1
  36. package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
  37. package/dist/umd/descope-user-auth-method-index-js.js +1 -1
  38. package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
  39. package/dist/umd/index.js +1 -1
  40. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  41. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.map +1 -1
  42. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  43. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js.map +1 -1
  44. package/package.json +32 -32
package/dist/index.esm.js CHANGED
@@ -4817,7 +4817,16 @@ const TextClass = compose$1(
4817
4817
 
4818
4818
  const componentName$1l = getComponentName$1('link');
4819
4819
 
4820
- class RawLink extends createBaseClass$1({ componentName: componentName$1l, baseSelector: ':host a' }) {
4820
+ const observedAttrs$7 = ['href', 'readonly'];
4821
+
4822
+ class RawLink extends createBaseClass$1({
4823
+ componentName: componentName$1l,
4824
+ baseSelector: ':host a',
4825
+ }) {
4826
+ static get observedAttributes() {
4827
+ return observedAttrs$7.concat(super.observedAttributes || []);
4828
+ }
4829
+
4821
4830
  constructor() {
4822
4831
  super();
4823
4832
 
@@ -4850,10 +4859,12 @@ class RawLink extends createBaseClass$1({ componentName: componentName$1l, baseS
4850
4859
  white-space: nowrap;
4851
4860
  }
4852
4861
  `,
4853
- this
4862
+ this,
4854
4863
  );
4855
4864
 
4856
- forwardAttrs$1(this, this.shadowRoot.querySelector('a'), {
4865
+ this.anchor = this.shadowRoot.querySelector('a');
4866
+
4867
+ forwardAttrs$1(this, this.anchor, {
4857
4868
  includeAttrs: ['href', 'target', 'tooltip'],
4858
4869
  mapAttrs: {
4859
4870
  tooltip: 'title',
@@ -4863,6 +4874,16 @@ class RawLink extends createBaseClass$1({ componentName: componentName$1l, baseS
4863
4874
  forwardAttrs$1(this, this.shadowRoot.querySelector('descope-text'), {
4864
4875
  includeAttrs: ['mode', 'variant'],
4865
4876
  });
4877
+
4878
+ this.anchor.addEventListener('click', (e) => {
4879
+ if (this.readOnly) {
4880
+ e.preventDefault();
4881
+ }
4882
+ });
4883
+ }
4884
+
4885
+ get readOnly() {
4886
+ return this.getAttribute('readonly') === 'true';
4866
4887
  }
4867
4888
  }
4868
4889
 
@@ -4882,7 +4903,11 @@ const LinkClass = compose$1(
4882
4903
  hostWidth: { ...host$v, property: 'width' },
4883
4904
  hostDirection: { ...text$4, property: 'direction' },
4884
4905
  textAlign: wrapper$1,
4885
- textDecoration: { ...link$3, property: 'text-decoration', fallback: 'none' },
4906
+ textDecoration: {
4907
+ ...link$3,
4908
+ property: 'text-decoration',
4909
+ fallback: 'none',
4910
+ },
4886
4911
  textColor: [
4887
4912
  { ...anchor, property: 'color' },
4888
4913
  { ...text$4, property: TextClass.cssVarList.textColor },
@@ -4891,7 +4916,7 @@ const LinkClass = compose$1(
4891
4916
  },
4892
4917
  }),
4893
4918
  draggableMixin$1,
4894
- componentNameValidationMixin$1
4919
+ componentNameValidationMixin$1,
4895
4920
  )(RawLink);
4896
4921
 
4897
4922
  customElements.define(componentName$1m, TextClass);
@@ -6219,6 +6244,7 @@ const ButtonClass = compose$1(
6219
6244
  hostDirection: { ...host$r, property: 'direction' },
6220
6245
  fontSize: {},
6221
6246
  fontFamily: {},
6247
+ fontWeight: {},
6222
6248
 
6223
6249
  cursor: {},
6224
6250
  backgroundColor: {},
@@ -6233,7 +6259,10 @@ const ButtonClass = compose$1(
6233
6259
  borderStyle: {},
6234
6260
  borderWidth: {},
6235
6261
 
6236
- verticalPadding: [{ property: 'padding-top' }, { property: 'padding-bottom' }],
6262
+ verticalPadding: [
6263
+ { property: 'padding-top' },
6264
+ { property: 'padding-bottom' },
6265
+ ],
6237
6266
  horizontalPadding: [
6238
6267
  { property: 'padding-right', fallback: '0.875em' },
6239
6268
  { property: 'padding-left', fallback: '0.875em' },
@@ -6241,9 +6270,9 @@ const ButtonClass = compose$1(
6241
6270
 
6242
6271
  labelTextColor: { property: 'color' },
6243
6272
  iconColor: {
6244
- selector: () => `::slotted(*)`,
6245
- property: IconClass.cssVarList.fill
6246
- },
6273
+ selector: () => `::slotted(*)`,
6274
+ property: IconClass.cssVarList.fill,
6275
+ },
6247
6276
  labelTextDecoration: { ...label$9, property: 'text-decoration' },
6248
6277
  labelSpacing: { ...label$9, property: 'gap' },
6249
6278
  textAlign: { ...label$9, property: 'justify-content', fallback: 'center' },
@@ -6256,7 +6285,7 @@ const ButtonClass = compose$1(
6256
6285
  }),
6257
6286
  clickableMixin,
6258
6287
  draggableMixin$1,
6259
- componentNameValidationMixin$1
6288
+ componentNameValidationMixin$1,
6260
6289
  )(
6261
6290
  createProxy$1({
6262
6291
  slots: ['', 'prefix', 'label', 'suffix'],
@@ -6282,7 +6311,7 @@ const ButtonClass = compose$1(
6282
6311
  `,
6283
6312
  excludeAttrsSync: ['tabindex', 'class', 'style'],
6284
6313
  componentName: componentName$1d,
6285
- })
6314
+ }),
6286
6315
  );
6287
6316
 
6288
6317
  const { color, fontSize } = ButtonClass.cssVarList;
@@ -20055,12 +20084,16 @@ const mode = {
20055
20084
  surface: globalRefs$H.colors.surface,
20056
20085
  };
20057
20086
 
20058
- const [helperTheme$7, helperRefs$7, helperVars$6] = createHelperVars$1({ mode }, componentName$1d);
20087
+ const [helperTheme$7, helperRefs$7, helperVars$6] = createHelperVars$1(
20088
+ { mode },
20089
+ componentName$1d,
20090
+ );
20059
20091
 
20060
20092
  const button = {
20061
20093
  ...helperTheme$7,
20062
20094
 
20063
20095
  [compVars$9.fontFamily]: globalRefs$H.fonts.font1.family,
20096
+ [compVars$9.fontWeight]: '400',
20064
20097
 
20065
20098
  [compVars$9.cursor]: 'pointer',
20066
20099
  [compVars$9.hostHeight]: '3em',