@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.
- package/dist/cjs/cura-accordion_18.cjs.entry.js +30 -21
- package/dist/cjs/cura-accordion_18.cjs.entry.js.map +1 -1
- package/dist/cjs/cura-display.cjs.entry.js +1 -1
- package/dist/cjs/cura-display.cjs.entry.js.map +1 -1
- package/dist/cjs/cura.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.js +2 -3
- package/dist/collection/components/cura-dropdown-search-new/cura-dropdown-search-new.js.map +1 -1
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js +3 -2
- package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.css +12 -3
- package/dist/collection/components/forms/cura-label/cura-label.js +26 -5
- package/dist/collection/components/forms/cura-label/cura-label.js.map +1 -1
- package/dist/collection/components/forms/cura-label/cura-label.stories.js +13 -1
- package/dist/collection/components/forms/cura-label/cura-label.stories.js.map +1 -1
- package/dist/collection/components/text/cura-display/cura-display.css +22 -22
- package/dist/collection/components/text/cura-heading/cura-heading.css +9 -0
- package/dist/collection/components/text/cura-heading/cura-heading.js +23 -2
- package/dist/collection/components/text/cura-heading/cura-heading.js.map +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js +13 -1
- package/dist/collection/components/text/cura-heading/cura-heading.stories.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.css +36 -28
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +27 -6
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js.map +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js +13 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.stories.js.map +1 -1
- package/dist/components/cura-display.js +1 -1
- package/dist/components/cura-display.js.map +1 -1
- package/dist/components/cura-dropdown-search-new.js +2 -3
- package/dist/components/cura-dropdown-search-new.js.map +1 -1
- package/dist/components/cura-heading2.js +7 -3
- package/dist/components/cura-heading2.js.map +1 -1
- package/dist/components/cura-input-text2.js +3 -2
- package/dist/components/cura-input-text2.js.map +1 -1
- package/dist/components/cura-label2.js +10 -6
- package/dist/components/cura-label2.js.map +1 -1
- package/dist/components/cura-paragraph2.js +11 -7
- package/dist/components/cura-paragraph2.js.map +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/cura.esm.js.map +1 -1
- package/dist/cura/p-8fb3bede.entry.js +2 -0
- package/dist/cura/p-8fb3bede.entry.js.map +1 -0
- package/dist/cura/p-b3582389.entry.js +2 -0
- package/dist/cura/p-b3582389.entry.js.map +1 -0
- package/dist/esm/cura-accordion_18.entry.js +30 -21
- package/dist/esm/cura-accordion_18.entry.js.map +1 -1
- package/dist/esm/cura-display.entry.js +1 -1
- package/dist/esm/cura-display.entry.js.map +1 -1
- package/dist/esm/cura.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/forms/cura-label/cura-label.d.ts +8 -1
- package/dist/types/components/forms/cura-label/cura-label.stories.d.ts +15 -0
- package/dist/types/components/text/cura-heading/cura-heading.d.ts +8 -1
- package/dist/types/components/text/cura-heading/cura-heading.stories.d.ts +15 -0
- package/dist/types/components/text/cura-paragraph/cura-paragraph.d.ts +8 -1
- package/dist/types/components/text/cura-paragraph/cura-paragraph.stories.d.ts +15 -0
- package/dist/types/components.d.ts +24 -0
- package/package.json +2 -2
- package/dist/cura/p-823d0bb5.entry.js +0 -2
- package/dist/cura/p-823d0bb5.entry.js.map +0 -1
- package/dist/cura/p-9dd47ec6.entry.js +0 -2
- 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: '
|
|
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; }
|