@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
@@ -3308,6 +3308,7 @@ const ButtonClass = compose(
3308
3308
  hostDirection: { ...host$x, property: 'direction' },
3309
3309
  fontSize: {},
3310
3310
  fontFamily: {},
3311
+ fontWeight: {},
3311
3312
 
3312
3313
  cursor: {},
3313
3314
  backgroundColor: {},
@@ -3322,7 +3323,10 @@ const ButtonClass = compose(
3322
3323
  borderStyle: {},
3323
3324
  borderWidth: {},
3324
3325
 
3325
- verticalPadding: [{ property: 'padding-top' }, { property: 'padding-bottom' }],
3326
+ verticalPadding: [
3327
+ { property: 'padding-top' },
3328
+ { property: 'padding-bottom' },
3329
+ ],
3326
3330
  horizontalPadding: [
3327
3331
  { property: 'padding-right', fallback: '0.875em' },
3328
3332
  { property: 'padding-left', fallback: '0.875em' },
@@ -3330,9 +3334,9 @@ const ButtonClass = compose(
3330
3334
 
3331
3335
  labelTextColor: { property: 'color' },
3332
3336
  iconColor: {
3333
- selector: () => `::slotted(*)`,
3334
- property: IconClass.cssVarList.fill
3335
- },
3337
+ selector: () => `::slotted(*)`,
3338
+ property: IconClass.cssVarList.fill,
3339
+ },
3336
3340
  labelTextDecoration: { ...label$a, property: 'text-decoration' },
3337
3341
  labelSpacing: { ...label$a, property: 'gap' },
3338
3342
  textAlign: { ...label$a, property: 'justify-content', fallback: 'center' },
@@ -3345,7 +3349,7 @@ const ButtonClass = compose(
3345
3349
  }),
3346
3350
  clickableMixin,
3347
3351
  draggableMixin$1,
3348
- componentNameValidationMixin$1
3352
+ componentNameValidationMixin$1,
3349
3353
  )(
3350
3354
  createProxy$1({
3351
3355
  slots: ['', 'prefix', 'label', 'suffix'],
@@ -3371,7 +3375,7 @@ const ButtonClass = compose(
3371
3375
  `,
3372
3376
  excludeAttrsSync: ['tabindex', 'class', 'style'],
3373
3377
  componentName: componentName$1i,
3374
- })
3378
+ }),
3375
3379
  );
3376
3380
 
3377
3381
  const { color, fontSize } = ButtonClass.cssVarList;
@@ -3418,12 +3422,16 @@ const mode = {
3418
3422
  surface: globalRefs$H.colors.surface,
3419
3423
  };
3420
3424
 
3421
- const [helperTheme$7, helperRefs$7, helperVars$6] = createHelperVars$1({ mode }, componentName$1i);
3425
+ const [helperTheme$7, helperRefs$7, helperVars$6] = createHelperVars$1(
3426
+ { mode },
3427
+ componentName$1i,
3428
+ );
3422
3429
 
3423
3430
  const button = {
3424
3431
  ...helperTheme$7,
3425
3432
 
3426
3433
  [compVars$9.fontFamily]: globalRefs$H.fonts.font1.family,
3434
+ [compVars$9.fontWeight]: '400',
3427
3435
 
3428
3436
  [compVars$9.cursor]: 'pointer',
3429
3437
  [compVars$9.hostHeight]: '3em',
@@ -3946,7 +3954,16 @@ const EnrichedTextClass = compose(
3946
3954
 
3947
3955
  const componentName$1f = getComponentName('link');
3948
3956
 
3949
- class RawLink extends createBaseClass$1({ componentName: componentName$1f, baseSelector: ':host a' }) {
3957
+ const observedAttrs$6 = ['href', 'readonly'];
3958
+
3959
+ class RawLink extends createBaseClass$1({
3960
+ componentName: componentName$1f,
3961
+ baseSelector: ':host a',
3962
+ }) {
3963
+ static get observedAttributes() {
3964
+ return observedAttrs$6.concat(super.observedAttributes || []);
3965
+ }
3966
+
3950
3967
  constructor() {
3951
3968
  super();
3952
3969
 
@@ -3979,10 +3996,12 @@ class RawLink extends createBaseClass$1({ componentName: componentName$1f, baseS
3979
3996
  white-space: nowrap;
3980
3997
  }
3981
3998
  `,
3982
- this
3999
+ this,
3983
4000
  );
3984
4001
 
3985
- forwardAttrs(this, this.shadowRoot.querySelector('a'), {
4002
+ this.anchor = this.shadowRoot.querySelector('a');
4003
+
4004
+ forwardAttrs(this, this.anchor, {
3986
4005
  includeAttrs: ['href', 'target', 'tooltip'],
3987
4006
  mapAttrs: {
3988
4007
  tooltip: 'title',
@@ -3992,6 +4011,16 @@ class RawLink extends createBaseClass$1({ componentName: componentName$1f, baseS
3992
4011
  forwardAttrs(this, this.shadowRoot.querySelector('descope-text'), {
3993
4012
  includeAttrs: ['mode', 'variant'],
3994
4013
  });
4014
+
4015
+ this.anchor.addEventListener('click', (e) => {
4016
+ if (this.readOnly) {
4017
+ e.preventDefault();
4018
+ }
4019
+ });
4020
+ }
4021
+
4022
+ get readOnly() {
4023
+ return this.getAttribute('readonly') === 'true';
3995
4024
  }
3996
4025
  }
3997
4026
 
@@ -4011,7 +4040,11 @@ const LinkClass = compose(
4011
4040
  hostWidth: { ...host$v, property: 'width' },
4012
4041
  hostDirection: { ...text$2, property: 'direction' },
4013
4042
  textAlign: wrapper$1,
4014
- textDecoration: { ...link$3, property: 'text-decoration', fallback: 'none' },
4043
+ textDecoration: {
4044
+ ...link$3,
4045
+ property: 'text-decoration',
4046
+ fallback: 'none',
4047
+ },
4015
4048
  textColor: [
4016
4049
  { ...anchor, property: 'color' },
4017
4050
  { ...text$2, property: TextClass.cssVarList.textColor },
@@ -4020,7 +4053,7 @@ const LinkClass = compose(
4020
4053
  },
4021
4054
  }),
4022
4055
  draggableMixin$1,
4023
- componentNameValidationMixin$1
4056
+ componentNameValidationMixin$1,
4024
4057
  )(RawLink);
4025
4058
 
4026
4059
  const globalRefs$F = getThemeRefs$1(globals);