@rededor/cura 1.6.0-alpha.2 → 1.6.0-alpha.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 (62) hide show
  1. package/dist/cjs/cura-accordion_18.cjs.entry.js +30 -21
  2. package/dist/cjs/cura-accordion_18.cjs.entry.js.map +1 -1
  3. package/dist/cjs/cura-display.cjs.entry.js +1 -1
  4. package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
  5. package/dist/cjs/cura.cjs.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.js +2 -3
  8. package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.js.map +1 -1
  9. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +3 -2
  10. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  11. package/dist/collection/components/forms/cura-label/cura-label.css +12 -3
  12. package/dist/collection/components/forms/cura-label/cura-label.js +26 -5
  13. package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
  14. package/dist/collection/components/forms/cura-label/cura-label.stories.js +13 -1
  15. package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +1 -1
  16. package/dist/collection/components/text/cura-display/cura-display.css +22 -22
  17. package/dist/collection/components/text/cura-heading/cura-heading.css +9 -0
  18. package/dist/collection/components/text/cura-heading/cura-heading.js +23 -2
  19. package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
  20. package/dist/collection/components/text/cura-heading/cura-heading.stories.js +13 -1
  21. package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -1
  22. package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +36 -28
  23. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +27 -6
  24. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
  25. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +13 -1
  26. package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -1
  27. package/dist/components/cura-display.js +1 -1
  28. package/dist/components/cura-display.js.map +1 -1
  29. package/dist/components/cura-dropdown-search-new.js +2 -3
  30. package/dist/components/cura-dropdown-search-new.js.map +1 -1
  31. package/dist/components/cura-heading2.js +7 -3
  32. package/dist/components/cura-heading2.js.map +1 -1
  33. package/dist/components/cura-input-text2.js +3 -2
  34. package/dist/components/cura-input-text2.js.map +1 -1
  35. package/dist/components/cura-label2.js +10 -6
  36. package/dist/components/cura-label2.js.map +1 -1
  37. package/dist/components/cura-paragraph2.js +11 -7
  38. package/dist/components/cura-paragraph2.js.map +1 -1
  39. package/dist/cura/cura.esm.js +1 -1
  40. package/dist/cura/cura.esm.js.map +1 -1
  41. package/dist/cura/p-8fb3bede.entry.js +2 -0
  42. package/dist/cura/p-8fb3bede.entry.js.map +1 -0
  43. package/dist/cura/p-b3582389.entry.js +2 -0
  44. package/dist/cura/p-b3582389.entry.js.map +1 -0
  45. package/dist/esm/cura-accordion_18.entry.js +30 -21
  46. package/dist/esm/cura-accordion_18.entry.js.map +1 -1
  47. package/dist/esm/cura-display.entry.js +1 -1
  48. package/dist/esm/cura-display.entry.js.map +1 -1
  49. package/dist/esm/cura.js +1 -1
  50. package/dist/esm/loader.js +1 -1
  51. package/dist/types/components/forms/cura-label/cura-label.d.ts +8 -1
  52. package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +15 -0
  53. package/dist/types/components/text/cura-heading/cura-heading.d.ts +8 -1
  54. package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +15 -0
  55. package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +8 -1
  56. package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +15 -0
  57. package/dist/types/components.d.ts +24 -0
  58. package/package.json +2 -2
  59. package/dist/cura/p-823d0bb5.entry.js +0 -2
  60. package/dist/cura/p-823d0bb5.entry.js.map +0 -1
  61. package/dist/cura/p-9dd47ec6.entry.js +0 -2
  62. package/dist/cura/p-9dd47ec6.entry.js.map +0 -1
@@ -3898,8 +3898,9 @@ const CuraInputText = /*@__PURE__*/ proxyCustomElement(class CuraInputText exten
3898
3898
  success: { name: 'checkCircle', color: 'success-dark' },
3899
3899
  error: { name: 'alertCircle', color: 'error-dark' },
3900
3900
  default: { name: this.iconName, color: 'neutral-dark' },
3901
+ disabled: { name: this.iconName, color: 'neutral-medium' },
3901
3902
  };
3902
- const iconConfig = iconMap[this.isLoading ? 'loading' : this.status || 'default'];
3903
+ const iconConfig = iconMap[this.isLoading ? 'loading' : this.disabled ? 'disabled' : this.status || 'default'];
3903
3904
  return (h("div", { class: "feedback-icon", style: this.styles }, h("cura-icon", { name: iconConfig.name, iconset: "default", size: baseIconSize, color: iconConfig.color })));
3904
3905
  }
3905
3906
  renderHelperText() {
@@ -4064,7 +4065,7 @@ const CuraInputText = /*@__PURE__*/ proxyCustomElement(class CuraInputText exten
4064
4065
  e.preventDefault();
4065
4066
  }
4066
4067
  render() {
4067
- return (h(Host, { key: '6c14493558642a993e4fa541b2a932e6cf9308a1' }, h("div", { key: '0084cfcd8ba41736f0cd2ca56a5183b1921c9c52', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, h("div", { key: '27998cb277338c329ee0c4afefd7dbf2a7621990', class: "input-wrapper" }, this.label && (h("cura-label", { key: '2f57bdcff2b1bdbfcfb9bd01faedec5f372dfe5d', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && h("span", { key: 'da05203184e4772fd25853407640de241382f050', class: "required" }, "* "))), h("div", { key: '03cbae962e628e3ea3bb7ba0d8cfd0f89f37b758', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), h("input", { key: 'e89fdaf2fc20169474afc960b320d64fcc8579bd', name: this.name ? this.name : '', type: this.type, onKeyDown: event => this.handleKeyDown(event), onBlur: this.handleInputBlur.bind(this), onFocus: this.handleInputFocus.bind(this), onInput: event => this.handleInputChange(event), class: this.getClasses(), style: this.styles, placeholder: this.placeholder, disabled: this.disabled || this.isLoading, required: this.required, readonly: this.readOnly, maxlength: this.maxlength, value: this.value !== undefined && this.value !== null ? this.value : '', inputmode: this.maskPreset ? 'tel' : this.inputMode, ref: ref => (this.inputRef = ref), autocomplete: this.autocomplete }), !!this.clearIcon && !this.readOnly && !this.isLoading && !this.disabled && this.value && this.isFocused && (h("cura-icon", { key: 'ea541b239b97920ab02fd88aafec39169c20c5a0', size: this.size === 'large' || this.mode === 'transparent' ? 20 : 16, color: "primary-base", name: "closeCircle", iconset: "default", class: "clear-button", onClick: () => this.handleClearInput() })), this.isLoading && h("cura-loader-circle", { key: 'ecb67fbc7e3796009f30bd16b0a1c2ce82052666', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
4068
+ return (h(Host, { key: 'c53dc04465ff2231ccff332ac8b484160ab9132a' }, h("div", { key: '58692ae518ada377a5c3e3ff1063b67e486bba27', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, h("div", { key: '3b7beaaed8856c2b6effc496e613bc9c5bfeedcb', class: "input-wrapper" }, this.label && (h("cura-label", { key: 'fd0bac070c03084ad9ad310f042564740f07873e', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && h("span", { key: '71a1c36a7326c7c1383321d80ecdb90ddd09ee24', class: "required" }, "* "))), h("div", { key: '1be4fd76aa1e419eebc8feaa0a648579385b8bd2', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), h("input", { key: '57df52c9261513ee1cd7d8e00e653e7c1f2c92af', name: this.name ? this.name : '', type: this.type, onKeyDown: event => this.handleKeyDown(event), onBlur: this.handleInputBlur.bind(this), onFocus: this.handleInputFocus.bind(this), onInput: event => this.handleInputChange(event), class: this.getClasses(), style: this.styles, placeholder: this.placeholder, disabled: this.disabled || this.isLoading, required: this.required, readonly: this.readOnly, maxlength: this.maxlength, value: this.value !== undefined && this.value !== null ? this.value : '', inputmode: this.maskPreset ? 'tel' : this.inputMode, ref: ref => (this.inputRef = ref), autocomplete: this.autocomplete }), !!this.clearIcon && !this.readOnly && !this.isLoading && !this.disabled && this.value && this.isFocused && (h("cura-icon", { key: '4c6e7fdd3dd5670019fea38c02ce077dec5fa4ad', size: this.size === 'large' || this.mode === 'transparent' ? 20 : 16, color: "primary-base", name: "closeCircle", iconset: "default", class: "clear-button", onClick: () => this.handleClearInput() })), this.isLoading && h("cura-loader-circle", { key: 'e0aecafef20fac68dbeaff9669ea63df8cfd3ef6', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
4068
4069
  }
4069
4070
  static get formAssociated() { return true; }
4070
4071
  get host() { return this; }