@rededor/cura 1.8.0 → 1.8.2-alpha.0

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 (30) hide show
  1. package/dist/cjs/cura-accordion_20.cjs.entry.js +4 -4
  2. package/dist/cjs/cura-accordion_20.cjs.entry.js.map +1 -1
  3. package/dist/cjs/index-BK9MSAiE.js.map +1 -1
  4. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +3 -3
  5. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  6. package/dist/collection/components/forms/cura-select/cura-select.js +2 -2
  7. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
  8. package/dist/components/cura-calendar.js +1 -1
  9. package/dist/components/cura-dropdown-search.js +1 -1
  10. package/dist/components/cura-input-date.js +3 -3
  11. package/dist/components/cura-input-text.js +1 -1
  12. package/dist/components/cura-select.js +1 -1
  13. package/dist/components/{p-e-P5qR3J.js → p-BGnJiNyu.js} +3 -3
  14. package/dist/components/{p-e-P5qR3J.js.map → p-BGnJiNyu.js.map} +1 -1
  15. package/dist/components/{p-y6Cly9DJ.js → p-BTt-pVTn.js} +4 -4
  16. package/dist/components/p-BTt-pVTn.js.map +1 -0
  17. package/dist/components/{p-zz_zOPBZ.js → p-CgMS6FUK.js} +4 -4
  18. package/dist/components/p-CgMS6FUK.js.map +1 -0
  19. package/dist/components/p-D1cPOZpG.js.map +1 -1
  20. package/dist/cura/cura.esm.js +1 -1
  21. package/dist/cura/p-PPMZr_VE.js.map +1 -1
  22. package/dist/cura/{p-fc3b57a8.entry.js → p-d8aeca82.entry.js} +2 -2
  23. package/dist/cura/p-d8aeca82.entry.js.map +1 -0
  24. package/dist/esm/cura-accordion_20.entry.js +4 -4
  25. package/dist/esm/cura-accordion_20.entry.js.map +1 -1
  26. package/dist/esm/index-OdKytJIH.js.map +1 -1
  27. package/package.json +2 -2
  28. package/dist/components/p-y6Cly9DJ.js.map +0 -1
  29. package/dist/components/p-zz_zOPBZ.js.map +0 -1
  30. package/dist/cura/p-fc3b57a8.entry.js.map +0 -1
@@ -5051,7 +5051,7 @@ const CuraInputText = class {
5051
5051
  return 'neutral-black';
5052
5052
  return 'neutral-dark';
5053
5053
  })();
5054
- return (h("div", { style: this.styles, class: "helper-text", part: "cura-input-text-helper" }, isDefault && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: colorText }, h("slot", null))), isError && this.mode === "default" && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "error-dark" }, h("slot", null))), isError && this.mode === "transparent" && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "neutral-black" }, h("slot", null))), isSuccess && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "success-dark" }, h("slot", null)))));
5054
+ return (h("div", { style: this.styles, class: "helper-text", part: "cura-input-text-helper" }, isDefault && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: colorText }, h("slot", null))), isError && this.mode === 'default' && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "error-dark" }, h("slot", null))), isError && this.mode === 'transparent' && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "neutral-black" }, h("slot", null))), isSuccess && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "success-dark" }, h("slot", null)))));
5055
5055
  }
5056
5056
  handleMouseEnter() {
5057
5057
  this.isHovered = true;
@@ -5199,7 +5199,7 @@ const CuraInputText = class {
5199
5199
  e.preventDefault();
5200
5200
  }
5201
5201
  render() {
5202
- return (h(Host, { key: '5a4b1e0b0a3e31bd326c46638d098a0d069b7d0a', role: "textbox", "aria-disabled": this.disabled, "aria-required": this.required, "aria-invalid": this.status === 'error' }, h("div", { key: '1fbeec280f94e847c3a33a56821630d60731b0fd', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, h("div", { key: 'de6052e2bde4e58d4e0bf50a1173d5df2c51fe57', class: "input-wrapper" }, this.label && (h("cura-label", { key: '99b52d19c5f4949bc5acbd5fe31000784a0ca68f', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && h("span", { key: '7800fc5a6db7a6a8b79883d6e2cae98d7e3de7c5', class: "required" }, "* "))), h("div", { key: '6f11952021b7bc6dfb102b29c0ed18db7afed57d', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), h("input", { key: '8727859bc6389dcbcfdee9633cf779ffeb25e0a6', 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: '7f51029a8f9784f9a8366bfd71af0c4f6a895879', 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: '679b460b9ed484c41eddd96e5cb8278d56c5e313', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
5202
+ return (h(Host, { key: 'ca2aecb12b93ceb875b3009b250aaad74cdae987', role: "textbox", "aria-disabled": this.disabled, "aria-required": this.required, "aria-invalid": this.status === 'error' }, h("div", { key: 'cf01002eab6f77101c36e03c5cf849d7aaeac09e', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, h("div", { key: '632acdd25d3b425b26c6bd10b60f92f37af834c3', class: "input-wrapper" }, this.label && (h("cura-label", { key: '0cc9fa6b402907f8292188ff7450945d6e31edd8', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && h("span", { key: 'aebf6ded909742c6d09c963172064b3035a5f141', class: "required" }, "* "))), h("div", { key: '8906d48f519c5053936d55d4ad9c4bc3570c70d4', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), h("input", { key: 'e0954c117932336172cb4bc83ccc18038341dcd3', 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: '26ea6fcc1cd8df12ee9d0c40f1d20600d696fbe9', size: this.size === 'large' || this.mode === 'transparent' ? 20 : 16, color: "primary-base", name: "closeCircle", iconset: "default", class: "clear-button", onMouseDown: () => this.handleClearInput() })), this.isLoading && h("cura-loader-circle", { key: '292a9c476520f9d03a9d7c2f4242d103dd157b90', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
5203
5203
  }
5204
5204
  static get formAssociated() { return true; }
5205
5205
  get host() { return getElement(this); }
@@ -5650,14 +5650,14 @@ const CuraSelect = class {
5650
5650
  * Initializes the options for the select component.
5651
5651
  */
5652
5652
  componentWillLoad() {
5653
- // this.initializeOptions();
5653
+ this.initializeOptions();
5654
5654
  }
5655
5655
  /**
5656
5656
  * Lifecycle method called after the component is rendered.
5657
5657
  * Initializes select-related functionality.
5658
5658
  */
5659
5659
  componentDidLoad() {
5660
- this.initializeOptions();
5660
+ // this.initializeOptions();
5661
5661
  this.setupMutationObserver();
5662
5662
  this.addOutsideClickListener();
5663
5663
  }