@rededor/cura 1.5.0-alpha.1 → 1.5.0-alpha.2

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 (95) hide show
  1. package/dist/assets/assets/icons/iconset-default-list.ts +1 -1
  2. package/dist/assets/assets/icons/iconset-default-tmp.svg +26 -0
  3. package/dist/assets/assets/icons/iconset-default.svg +1 -1
  4. package/dist/cjs/{cura-accordion_13.cjs.entry.js → cura-accordion_12.cjs.entry.js} +25 -75
  5. package/dist/cjs/cura-accordion_12.cjs.entry.js.map +1 -0
  6. package/dist/cjs/cura-badge-pill.cjs.entry.js +9 -13
  7. package/dist/cjs/cura-badge-pill.cjs.entry.js.map +1 -1
  8. package/dist/cjs/cura-dropdown-search.cjs.entry.js +5 -4
  9. package/dist/cjs/cura-dropdown-search.cjs.entry.js.map +1 -1
  10. package/dist/cjs/cura-icons-view.cjs.entry.js +1 -1
  11. package/dist/cjs/cura-icons-view.cjs.entry.js.map +1 -1
  12. package/dist/cjs/cura-modal.cjs.entry.js +73 -0
  13. package/dist/cjs/cura-modal.cjs.entry.js.map +1 -0
  14. package/dist/cjs/cura-stepper.cjs.entry.js +1 -1
  15. package/dist/cjs/cura-stepper.cjs.entry.js.map +1 -1
  16. package/dist/cjs/cura.cjs.js +1 -1
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/collection/assets/icons/iconset-default-list.js +1 -1
  19. package/dist/collection/assets/icons/iconset-default-list.js.map +1 -1
  20. package/dist/collection/assets/icons/iconset-default-tmp.svg +26 -0
  21. package/dist/collection/assets/icons/iconset-default.svg +1 -1
  22. package/dist/collection/assets-raw/icons/default/accessibility2.svg +4 -0
  23. package/dist/collection/assets-raw/icons/default/accessibility3.svg +5 -0
  24. package/dist/collection/assets-raw/icons/default/accessibility4.svg +4 -0
  25. package/dist/collection/assets-raw/icons/default/elevator.svg +5 -0
  26. package/dist/collection/assets-raw/icons/default/parking.svg +3 -0
  27. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js +10 -14
  28. package/dist/collection/components/badges/cura-badge-pill/cura-badge-pill.js.map +1 -1
  29. package/dist/collection/components/cura-modal/cura-modal.css +0 -1
  30. package/dist/collection/components/cura-stepper/cura-stepper.js +1 -1
  31. package/dist/collection/components/cura-stepper/cura-stepper.js.map +1 -1
  32. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js +5 -4
  33. package/dist/collection/components/forms/cura-dropdown-search/cura-dropdown-search.js.map +1 -1
  34. package/dist/collection/components/forms/cura-input-text/cura-input-text.js +3 -1
  35. package/dist/collection/components/forms/cura-input-text/cura-input-text.js.map +1 -1
  36. package/dist/collection/components/forms/cura-select/cura-select.js +70 -8
  37. package/dist/collection/components/forms/cura-select/cura-select.js.map +1 -1
  38. package/dist/collection/components/forms/cura-select/cura-select.stories.js +61 -15
  39. package/dist/collection/components/forms/cura-select/cura-select.stories.js.map +1 -1
  40. package/dist/components/cura-badge-pill2.js +10 -14
  41. package/dist/components/cura-badge-pill2.js.map +1 -1
  42. package/dist/components/cura-dropdown-search.js +5 -4
  43. package/dist/components/cura-dropdown-search.js.map +1 -1
  44. package/dist/components/cura-icons-view.js +1 -1
  45. package/dist/components/cura-icons-view.js.map +1 -1
  46. package/dist/components/cura-input-text2.js +3 -1
  47. package/dist/components/cura-input-text2.js.map +1 -1
  48. package/dist/components/cura-modal.js +1 -1
  49. package/dist/components/cura-modal.js.map +1 -1
  50. package/dist/components/cura-select2.js +23 -8
  51. package/dist/components/cura-select2.js.map +1 -1
  52. package/dist/components/cura-stepper.js +1 -1
  53. package/dist/components/cura-stepper.js.map +1 -1
  54. package/dist/cura/cura.esm.js +1 -1
  55. package/dist/cura/cura.esm.js.map +1 -1
  56. package/dist/cura/p-629c34fe.entry.js +2 -0
  57. package/dist/cura/p-629c34fe.entry.js.map +1 -0
  58. package/dist/cura/p-7f25f4dc.entry.js +2 -0
  59. package/dist/cura/p-7f25f4dc.entry.js.map +1 -0
  60. package/dist/cura/p-9d7c6e96.entry.js +2 -0
  61. package/dist/cura/p-9d7c6e96.entry.js.map +1 -0
  62. package/dist/cura/p-a4a1f6c6.entry.js +2 -0
  63. package/dist/cura/p-a4a1f6c6.entry.js.map +1 -0
  64. package/dist/cura/{p-cfbe2bce.entry.js → p-bd99ef4c.entry.js} +2 -2
  65. package/dist/cura/{p-cfbe2bce.entry.js.map → p-bd99ef4c.entry.js.map} +1 -1
  66. package/dist/cura/{p-46eaee31.entry.js → p-ced52230.entry.js} +2 -2
  67. package/dist/cura/p-ced52230.entry.js.map +1 -0
  68. package/dist/esm/{cura-accordion_13.entry.js → cura-accordion_12.entry.js} +26 -75
  69. package/dist/esm/cura-accordion_12.entry.js.map +1 -0
  70. package/dist/esm/cura-badge-pill.entry.js +9 -13
  71. package/dist/esm/cura-badge-pill.entry.js.map +1 -1
  72. package/dist/esm/cura-dropdown-search.entry.js +5 -4
  73. package/dist/esm/cura-dropdown-search.entry.js.map +1 -1
  74. package/dist/esm/cura-icons-view.entry.js +1 -1
  75. package/dist/esm/cura-icons-view.entry.js.map +1 -1
  76. package/dist/esm/cura-modal.entry.js +69 -0
  77. package/dist/esm/cura-modal.entry.js.map +1 -0
  78. package/dist/esm/cura-stepper.entry.js +1 -1
  79. package/dist/esm/cura-stepper.entry.js.map +1 -1
  80. package/dist/esm/cura.js +1 -1
  81. package/dist/esm/loader.js +1 -1
  82. package/dist/types/components/badges/cura-badge-pill/cura-badge-pill.d.ts +1 -1
  83. package/dist/types/components/forms/cura-select/cura-select.d.ts +10 -0
  84. package/dist/types/components/forms/cura-select/cura-select.stories.d.ts +25 -0
  85. package/dist/types/components.d.ts +15 -0
  86. package/package.json +2 -2
  87. package/dist/cjs/cura-accordion_13.cjs.entry.js.map +0 -1
  88. package/dist/cura/p-23fa2246.entry.js +0 -2
  89. package/dist/cura/p-23fa2246.entry.js.map +0 -1
  90. package/dist/cura/p-2af6216a.entry.js +0 -2
  91. package/dist/cura/p-2af6216a.entry.js.map +0 -1
  92. package/dist/cura/p-46eaee31.entry.js.map +0 -1
  93. package/dist/cura/p-7ba80d78.entry.js +0 -2
  94. package/dist/cura/p-7ba80d78.entry.js.map +0 -1
  95. package/dist/esm/cura-accordion_13.entry.js.map +0 -1
@@ -4225,6 +4225,8 @@ const CuraInputText = class {
4225
4225
  }
4226
4226
  }
4227
4227
  initializeAdvancedMask() {
4228
+ if (!this.inputRef)
4229
+ return;
4228
4230
  try {
4229
4231
  const config = typeof this.maskAdvanced === 'string' ? JSON.parse(this.maskAdvanced) : this.maskAdvanced;
4230
4232
  this.maskedInput = IMask(this.inputRef, config);
@@ -4295,7 +4297,7 @@ const CuraInputText = class {
4295
4297
  e.preventDefault();
4296
4298
  }
4297
4299
  render() {
4298
- return (h(Host, { key: '7e2ba6e0ecae174b2ecc2592264d2d836b4ec63f' }, h("div", { key: '0ed1e0e943b1b9b14c09f4b5a3f7bbe7211205c4', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, h("div", { key: '5eb22b6c40ada7afb122d49fc997c661848edd7d', class: "input-wrapper" }, this.label && (h("cura-label", { key: '3d1b76bae46fe021dcd4b8ccd6dba663b0d97f91', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && h("span", { key: 'debbb27cc068069717077a2437ca239e700d688d', class: "required" }, "* "))), h("div", { key: '5a4884cfefd1218a625f77e640a5b372c5b453ad', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), h("input", { key: '8ee9aa8d28c522a22b1b10701569bfe1029ad64a', 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: 'f4839d9819657d2599c9d68b947624fd543fef36', 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: '017c815c741c8113d9992ba3eefdda740f2a885d', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
4300
+ return (h(Host, { key: '0aebf7d545af0e2eec1f542e5545ef34d0356e33' }, h("div", { key: '22e428a2706273d1613e39f860a721a73cab6d03', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-input-group': true }, this.getClasses()) }, h("div", { key: '8ef0bc3f5bf3427abdbd247a8c78b722eaaca541', class: "input-wrapper" }, this.label && (h("cura-label", { key: '4aef20d0c2880ed38c1821e2690829a31fe7fea8', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && h("span", { key: 'a3bb15165ae1ffedae59a32a1e299c9a36ad9b2c', class: "required" }, "* "))), h("div", { key: '0b12a41f21a4c26273390dd15f362a5baccb0f2d', class: "cura-input-field", part: "cura-input-field", style: this.styles }, this.renderIcon(), h("input", { key: 'da03ef422267592fa3c732cb553e16fd1209bdf0', 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: '7d46e420487a37b6fa90d93b25ba8d84d9197e43', 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: '2ecef2f802b1807f214a9ca72099b690189898fd', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), this.renderHelperText()))));
4299
4301
  }
4300
4302
  static get formAssociated() { return true; }
4301
4303
  static get watchers() { return {
@@ -4400,70 +4402,6 @@ const CuraLoaderCircle = class {
4400
4402
  };
4401
4403
  CuraLoaderCircle.style = CuraLoaderCircleStyle0;
4402
4404
 
4403
- const curaModalCss = ":host{display:block}.modal{position:fixed;height:100%;width:100%;top:var(--top-offset);bottom:var(--bottom-offset);left:var(--left-offset);right:var(--right-offset);z-index:-1;margin-top:var(--offset-top)}.modal.open{z-index:var(--zIndex)}.modal.open .backdrop,.modal.open .wrapper{opacity:1;visibility:visible;animation:fadeIn 0.3s ease-out}.container{display:flex;align-items:center;justify-content:center}.backdrop,.wrapper{opacity:0;visibility:hidden;transition:opacity 0.3s ease, visibility 0.3s ease}.backdrop{background-color:var(--background-color);z-index:calc(var(--zIndex) - 10);animation:fadeIn 0.3s ease-out}.wrapper{position:fixed;background-color:var(--neutral-white);border:2px solid var(--neutral-light);border-radius:calc(var(--base-spacing) * 3px);width:700px;max-width:600px;min-width:200px;padding:0px calc(var(--base-spacing) * 4px) calc(var(--base-spacing) * 4px) calc(var(--base-spacing) * 4px);z-index:var(--zIndex);box-shadow:0px 8px 16px 0px var(--neutral-black-shadow-4, rgba(38, 38, 38, 0.12));transform:scale(0.95);transition:transform 0.3s ease-out, opacity 0.3s ease, visibility 0.3s ease}.wrapper ::slotted(*){max-height:80vh;overflow:auto;padding-right:calc(var(--base-spacing) * 5px)}.modal.open .wrapper{transform:scale(1);opacity:1;visibility:visible}.close{justify-self:flex-end;padding-top:calc(var(--base-spacing) * 4px);background:none;border:none;cursor:pointer}.close.mobile{display:none}.close.desktop{display:flex}@media (max-width: 768px){.wrapper{position:fixed;bottom:0px;width:80%;padding-top:calc(var(--base-spacing) * 4px);padding-bottom:0px;border-radius:calc(var(--base-spacing) * 3px) calc(var(--base-spacing) * 3px) 0px 0px;border-bottom:none}.close{align-items:center;border-top:1px dashed var(--neutral-light);margin-top:calc(var(--base-spacing) * 4px);padding:calc(var(--base-spacing) * 4px) 0px;justify-content:center;width:100%}.close.mobile{display:flex;gap:calc(var(--base-spacing) * 2px)}.close.desktop{display:none}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}";
4404
- const CuraModalStyle0 = curaModalCss;
4405
-
4406
- const CuraModal = class {
4407
- constructor(hostRef) {
4408
- registerInstance(this, hostRef);
4409
- this.modalClose = createEvent(this, "modalClose", 7);
4410
- this.handleClose = () => {
4411
- this.modalClose.emit();
4412
- this.open = false;
4413
- };
4414
- this.open = false;
4415
- this.background = 'light';
4416
- this.top = 0;
4417
- this.bottom = 0;
4418
- this.left = 0;
4419
- this.right = 0;
4420
- this.mobileCloseLabel = 'Fechar';
4421
- this.zindex = '100';
4422
- this.styles = {};
4423
- }
4424
- setColors() {
4425
- const backgroundTheme = {
4426
- dark: window.CuraAPI.theme.colors.getColor('neutral-black', 0.4),
4427
- light: window.CuraAPI.theme.colors.getColor('primary-darker', 0.8),
4428
- };
4429
- this.styles = Object.assign(Object.assign({}, this.styles), { '--background-color': backgroundTheme[this.background] });
4430
- }
4431
- setOffset(name, value) {
4432
- this.styles = Object.assign(Object.assign({}, this.styles), { [`--${name}-offset`]: `${value}px` });
4433
- }
4434
- setTop() {
4435
- this.setOffset('top', this.top);
4436
- }
4437
- setBottom() {
4438
- this.setOffset('bottom', this.bottom);
4439
- }
4440
- setLeft() {
4441
- this.setOffset('left', this.left);
4442
- }
4443
- setRight() {
4444
- this.setOffset('right', this.right);
4445
- }
4446
- connectedCallback() {
4447
- this.styles = Object.assign(Object.assign({}, this.styles), { '--neutral-white': window.CuraAPI.theme.colors.getColor('neutral-white'), '--neutral-light': window.CuraAPI.theme.colors.getColor('neutral-light'), '--base-spacing': window.CuraAPI.theme.spacing.getSpacing() });
4448
- this.setColors();
4449
- this.setTop();
4450
- this.setBottom();
4451
- this.setLeft();
4452
- this.setRight();
4453
- }
4454
- render() {
4455
- return (h(Host, { key: '50f4146aed5392ae16803fb060d4921a5e8a3271', role: "dialog", "aria-modal": "true", style: { '--zIndex': this.zindex } }, h("div", { key: '149e99a4b8b479515ed3d67c5c8aea08d4d96d1c', class: this.open ? 'modal container open' : 'modal container', style: this.styles }, h("div", { key: 'f32f7f7e16475c51babf95e1ca5f4fea449c1bb0', class: this.open ? 'modal backdrop open' : 'modal backdrop', onClick: this.handleClose }), h("div", { key: '183f7ab8f2cee8106795f6104c38a2c93272387f', class: "wrapper" }, h("button", { key: '28778c8120c92dfcae0443dccd21f55a204bd82e', class: "close desktop", onClick: this.handleClose }, h("cura-icon", { key: 'a847de5c1314ea1460673870334f3f98e98f1cf9', name: "close", color: "error-dark", size: "small" })), h("slot", { key: 'e08b556b7232425c2b83a21dac75d30fb4361a83' }), h("button", { key: 'e736a95f878ff5a2ad6897d9140fd74b26939445', class: "close mobile", onClick: this.handleClose }, h("cura-icon", { key: '9eaeaca6f4ea9d3cde5fd44e108de389c727f991', name: "close", color: "error-dark", size: "16" }), h("cura-paragraph", { key: '2476b85e5dd7d6092d3d1d1714ee4a79b73b12d0', color: "error-dark", size: "small", marginBlock: "0" }, this.mobileCloseLabel))))));
4456
- }
4457
- static get watchers() { return {
4458
- "background": ["setColors"],
4459
- "top": ["setTop"],
4460
- "bottom": ["setBottom"],
4461
- "left": ["setLeft"],
4462
- "right": ["setRight"]
4463
- }; }
4464
- };
4465
- CuraModal.style = CuraModalStyle0;
4466
-
4467
4405
  const curaPageTemplateCss = ":host{display:block}:host .grid-template{display:grid;grid-template-rows:auto;grid-template-columns:auto;grid-template-areas:\"sub-header\" \"header\" \"pre-content\" \"content-container\" \"post-body\" \"footer\" \"sub-footer\"}:host .grid-template #sub-header{grid-area:sub-header}:host .grid-template #header{grid-area:header}:host .grid-template #pre-content{grid-area:pre-content}:host .grid-template #content-container{grid-area:content-container}:host .grid-template #post-body{grid-area:post-body}:host .grid-template #footer{grid-area:footer}:host .grid-template #sub-footer{grid-area:sub-footer}@media (max-width: 768px){:host .grid-template{padding:0px}}@media (min-width: 769px) and (max-width: 992px){:host .grid-template{padding:0px}}@media (min-width: 993px) and (max-width: 1920px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 5px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 5px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}}@media (min-width: 1921px){:host .grid-template{padding:0px}:host .grid-template #content-container #sidebar-left ::slotted(div[slot=sidebar-left]){margin-right:calc(var(--spacing) * 7px)}:host .grid-template #content-container #sidebar-right ::slotted(div[slot=sidebar-right]){margin-left:calc(var(--spacing) * 7px)}:host .grid-template #content-container{display:flex}:host .grid-template #content-container #content{flex-grow:1}:host .grid-template #content-container #sidebar-left,:host .grid-template #content-container #sidebar-right{max-width:20%}:host .grid-template #content-container.centered{max-width:1921px;justify-self:center}}";
4468
4406
  const CuraPageTemplateStyle0 = curaPageTemplateCss;
4469
4407
 
@@ -4556,6 +4494,7 @@ const CuraSelect = class {
4556
4494
  constructor(hostRef) {
4557
4495
  registerInstance(this, hostRef);
4558
4496
  this.selected = createEvent(this, "selected", 7);
4497
+ this.searchTermInput = createEvent(this, "searchTermInput", 7);
4559
4498
  if (hostRef.$hostElement$["s-ei"]) {
4560
4499
  this.internals = hostRef.$hostElement$["s-ei"];
4561
4500
  }
@@ -4632,10 +4571,12 @@ const CuraSelect = class {
4632
4571
  this.value = '';
4633
4572
  this.mode = 'default';
4634
4573
  this.size = 'medium';
4574
+ this.iconName = undefined;
4635
4575
  this.status = 'default';
4636
4576
  this.disabled = false;
4637
4577
  this.required = false;
4638
4578
  this.searchBehavior = false;
4579
+ this.caseSensitive = true;
4639
4580
  this.isHovered = false;
4640
4581
  this.isFocused = false;
4641
4582
  this.isOpen = false;
@@ -4650,13 +4591,23 @@ const CuraSelect = class {
4650
4591
  * Filters the options based on the current input value.
4651
4592
  */
4652
4593
  filterOptions(newText) {
4594
+ this.searchTermInput.emit(newText);
4653
4595
  if (!this.isOpen || !this.searchBehavior) {
4654
4596
  return;
4655
4597
  }
4598
+ const removeAccents = (str) => {
4599
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
4600
+ };
4601
+ let searchTerm = newText;
4602
+ if (!this.caseSensitive) {
4603
+ searchTerm = removeAccents(searchTerm).toLocaleLowerCase();
4604
+ }
4656
4605
  this.options.forEach(option => {
4657
- var _a;
4658
- const optionValue = ((_a = option.textContent) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '';
4659
- const isVisible = optionValue.includes(newText.toLocaleLowerCase());
4606
+ let optionValue = option.textContent || '';
4607
+ if (!this.caseSensitive) {
4608
+ optionValue = removeAccents(optionValue === null || optionValue === void 0 ? void 0 : optionValue.toLowerCase());
4609
+ }
4610
+ const isVisible = optionValue.includes(searchTerm);
4660
4611
  option.style.display = isVisible ? 'block' : 'none';
4661
4612
  });
4662
4613
  }
@@ -4834,19 +4785,19 @@ const CuraSelect = class {
4834
4785
  * Renders the icon based on the component's status.
4835
4786
  */
4836
4787
  renderIcon() {
4837
- if (this.status === 'default')
4788
+ if (this.status === 'default' && !this.iconName)
4838
4789
  return null;
4839
- const icon = { success: 'checkCircle', error: 'alertCircle' }[this.status];
4790
+ const icon = { default: this.iconName, success: 'checkCircle', error: 'alertCircle' }[this.status];
4840
4791
  return h("cura-icon", { class: "feedback-icon", name: icon, iconset: "default", size: this.size === 'large' ? 20 : 16, color: this.getColor('icon'), style: this.styles });
4841
4792
  }
4842
4793
  render() {
4843
- return (h(Host, { key: 'd0433e214411ca390ff69ffbfdc2d8d3f6364b9c', style: this.styles }, h("div", { key: 'e644f2ff6f37867ab5d6737f99d772c72fdf17b9', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: '7f382f95d58b6e90b9e7f82ade4d55a4ae74a952', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: 'e782b69050063221f9f8c011c753f03bff1b2fed', class: "required" }, "* "))), h("div", { key: 'b9b1c4a4ad3b19bbec7640bbbe7921fc2e2dc2a9', class: {
4794
+ return (h(Host, { key: 'c4d3b518ddf6b9498e3a038b42d96cc36ea5b9af', style: this.styles }, h("div", { key: 'b469ec6460df4faa9dbf33ae46efd25b16e8dede', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: 'b1e96f454e136f74a34d3fe2ad915a76b8892383', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: 'f6df4c9fd66179b157545354c9d7bce3a1965383', class: "required" }, "* "))), h("div", { key: '3c99013ba59cbc7520fcd9e54e4911be88e257e8', class: {
4844
4795
  'cura-input-field': true,
4845
4796
  'open': this.isOpen,
4846
- } }, this.renderIcon(), h("input", { key: 'f107ce1837c7eb5e2be8e21073bc514861e36de5', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), h("button", { key: '2d535a37f67c28eee7a868de1d5fe5297aa91a1d', class: "up-down-button" }, h("cura-icon", { key: '9292fb9f72d3c4f67b0cffaafdc3c0cceefb5b07', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), h("cura-label", { key: '344572553d1920a66cab43912cae5f24200789c5', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: 'a2dd9204ad33c6fb2518dca1bfaa18cc51c19d2a' })), this.isOpen && (h("div", { key: '73fd79fd3073b0a9a4537e104e9e1721129da480', class: {
4797
+ } }, this.renderIcon(), h("input", { key: '5c4cca3aa11ca5a43679551ef0db5d3b4a2672c1', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), h("button", { key: '0e4ae1fc33090cb1c2a5f6616302262093c709f3', class: "up-down-button" }, h("cura-icon", { key: '7aa46c48d670725d6010e00ff74772dd76f04358', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), h("cura-label", { key: 'b37bbce2d092b368509778cb39e830fbfba40107', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: 'b8090f03acc7d34e75088cdd8b7f375b2be21aaf' })), this.isOpen && (h("div", { key: '4d279e833a3c4311972b11c259d616b7480fc5b5', class: {
4847
4798
  menu: true,
4848
4799
  open: this.isOpen,
4849
- } }, h("slot", { key: 'dfd5a1f698dddeab8efec68beb5ff038024571dd', name: "option" }))))));
4800
+ } }, h("slot", { key: '0c20c0bbfb9ed727825bb6cc7e06ab671350d37b', name: "option" }))))));
4850
4801
  }
4851
4802
  static get formAssociated() { return true; }
4852
4803
  get host() { return getElement(this); }
@@ -4905,6 +4856,6 @@ const CuraSelectOption = class {
4905
4856
  };
4906
4857
  CuraSelectOption.style = CuraSelectOptionStyle0;
4907
4858
 
4908
- export { CuraAccordion as cura_accordion, CuraAccordionItem as cura_accordion_item, CuraButton as cura_button, CuraHeading as cura_heading, CuraIcon as cura_icon, CuraInputText as cura_input_text, CuraLabel as cura_label, CuraLoaderCircle as cura_loader_circle, CuraModal as cura_modal, CuraPageTemplate as cura_page_template, CuraParagraph as cura_paragraph, CuraSelect as cura_select, CuraSelectOption as cura_select_option };
4859
+ export { CuraAccordion as cura_accordion, CuraAccordionItem as cura_accordion_item, CuraButton as cura_button, CuraHeading as cura_heading, CuraIcon as cura_icon, CuraInputText as cura_input_text, CuraLabel as cura_label, CuraLoaderCircle as cura_loader_circle, CuraPageTemplate as cura_page_template, CuraParagraph as cura_paragraph, CuraSelect as cura_select, CuraSelectOption as cura_select_option };
4909
4860
 
4910
- //# sourceMappingURL=cura-accordion_13.entry.js.map
4861
+ //# sourceMappingURL=cura-accordion_12.entry.js.map