@rededor/cura 2.0.0-alpha.14 → 2.0.0-alpha.16

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 (112) hide show
  1. package/dist/cjs/cura-accordion_22.cjs.entry.js +39 -83
  2. package/dist/cjs/cura-display.cjs.entry.js +1 -1
  3. package/dist/cjs/cura-input-textarea.cjs.entry.js +236 -0
  4. package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
  5. package/dist/cjs/cura-radio.cjs.entry.js +1 -1
  6. package/dist/cjs/cura-switch.cjs.entry.js +1 -1
  7. package/dist/cjs/cura-tabs-button.cjs.entry.js +1 -1
  8. package/dist/cjs/cura-tabs-transparent.cjs.entry.js +1 -1
  9. package/dist/cjs/cura.cjs.js +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/utils-DMHZ2n4p.js +47 -0
  12. package/dist/collection/collection-manifest.json +1 -0
  13. package/dist/collection/components/cura-calendar/cura-calendar.js +20 -27
  14. package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.css +174 -0
  15. package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.js +613 -0
  16. package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.stories.js +222 -0
  17. package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
  18. package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
  19. package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
  20. package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
  21. package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
  22. package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
  23. package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
  24. package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +1 -1
  25. package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +1 -1
  26. package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +1 -1
  27. package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +1 -1
  28. package/dist/collection/components/text/cura-display/cura-display.js +1 -1
  29. package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
  30. package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
  31. package/dist/components/cura-accordion-item.js +1 -1
  32. package/dist/components/cura-alert.js +1 -1
  33. package/dist/components/cura-badge-counter.js +1 -1
  34. package/dist/components/cura-badge-distance.js +1 -1
  35. package/dist/components/cura-badge-pill.js +1 -1
  36. package/dist/components/cura-button-outline.js +1 -1
  37. package/dist/components/cura-button-select.js +1 -1
  38. package/dist/components/cura-button-transparent.js +1 -1
  39. package/dist/components/cura-button.js +1 -1
  40. package/dist/components/cura-calendar.js +1 -1
  41. package/dist/components/cura-checkbox.js +1 -1
  42. package/dist/components/cura-display.js +1 -1
  43. package/dist/components/cura-dropdown-search-category.js +1 -1
  44. package/dist/components/cura-dropdown-search-not-found.js +1 -1
  45. package/dist/components/cura-dropdown-search.js +1 -1
  46. package/dist/components/cura-heading.js +1 -1
  47. package/dist/components/cura-icons-view.js +1 -1
  48. package/dist/components/cura-input-date.js +1 -1
  49. package/dist/components/cura-input-text.js +1 -1
  50. package/dist/components/cura-input-textarea.d.ts +11 -0
  51. package/dist/components/cura-input-textarea.js +1 -0
  52. package/dist/components/cura-label.js +1 -1
  53. package/dist/components/cura-loader-bar.js +1 -1
  54. package/dist/components/cura-loader-circle.js +1 -1
  55. package/dist/components/cura-modal.js +1 -1
  56. package/dist/components/cura-paragraph.js +1 -1
  57. package/dist/components/cura-radio.js +1 -1
  58. package/dist/components/cura-select-option.js +1 -1
  59. package/dist/components/cura-select.js +1 -1
  60. package/dist/components/cura-stepper-item.js +1 -1
  61. package/dist/components/cura-stepper.js +1 -1
  62. package/dist/components/cura-switch.js +1 -1
  63. package/dist/components/cura-tabs-button.js +1 -1
  64. package/dist/components/cura-tabs-group.js +1 -1
  65. package/dist/components/cura-tabs-transparent.js +1 -1
  66. package/dist/components/cura-tabs.js +1 -1
  67. package/dist/components/cura-toast.js +1 -1
  68. package/dist/components/cura-tooltip.js +1 -1
  69. package/dist/components/index.js +1 -1
  70. package/dist/components/p-B2TDH4aP.js +1 -0
  71. package/dist/components/{p-Oyg5hynZ.js → p-BHVSbubb.js} +1 -1
  72. package/dist/components/{p-BBtCzdwH.js → p-BKDpza6x.js} +1 -1
  73. package/dist/components/{p-BOQ-9WHP.js → p-BuETJyzc.js} +1 -1
  74. package/dist/components/{p-BGBnVlL3.js → p-CksTHXxZ.js} +1 -1
  75. package/dist/components/{p-I4AXUk2V.js → p-D4hCuriT.js} +1 -1
  76. package/dist/components/p-DQP7jRHp.js +1 -0
  77. package/dist/components/p-DgK8dEko.js +1 -0
  78. package/dist/components/{p-BXFxWVl3.js → p-DgQJ968V.js} +1 -1
  79. package/dist/components/{p-BFGkepgq.js → p-Dmalf4Oj.js} +1 -1
  80. package/dist/components/{p-DbZtk_CM.js → p-KovUKiTX.js} +1 -1
  81. package/dist/components/{p-Bac-rr_f.js → p-PiUhcFob.js} +1 -1
  82. package/dist/components/{p-BmMvoH-m.js → p-TnCIk87O.js} +1 -1
  83. package/dist/components/{p-Cm1Vfoc6.js → p-i55vIhdM.js} +1 -1
  84. package/dist/cura/cura.esm.js +1 -1
  85. package/dist/cura/{p-71fffffa.entry.js → p-1c48aaa7.entry.js} +1 -1
  86. package/dist/cura/{p-2572a4f9.entry.js → p-4178e3e6.entry.js} +1 -1
  87. package/dist/cura/p-5b26a166.entry.js +1 -0
  88. package/dist/cura/p-CUmwazb8.js +1 -0
  89. package/dist/cura/p-a305e17a.entry.js +1 -0
  90. package/dist/cura/{p-8b29b763.entry.js → p-b157025d.entry.js} +1 -1
  91. package/dist/cura/{p-1ecb2249.entry.js → p-bd649bed.entry.js} +1 -1
  92. package/dist/cura/{p-04b5c710.entry.js → p-d43fb791.entry.js} +1 -1
  93. package/dist/cura/{p-a5c4849c.entry.js → p-d64ef37d.entry.js} +1 -1
  94. package/dist/esm/cura-accordion_22.entry.js +32 -76
  95. package/dist/esm/cura-display.entry.js +1 -1
  96. package/dist/esm/cura-input-textarea.entry.js +234 -0
  97. package/dist/esm/cura-loader-bar.entry.js +1 -1
  98. package/dist/esm/cura-radio.entry.js +1 -1
  99. package/dist/esm/cura-switch.entry.js +1 -1
  100. package/dist/esm/cura-tabs-button.entry.js +1 -1
  101. package/dist/esm/cura-tabs-transparent.entry.js +1 -1
  102. package/dist/esm/cura.js +1 -1
  103. package/dist/esm/loader.js +1 -1
  104. package/dist/esm/utils-BZCR971L.js +41 -0
  105. package/dist/types/components/cura-calendar/cura-calendar.d.ts +3 -6
  106. package/dist/types/components/forms/cura-input-textarea/cura-input-textarea.d.ts +116 -0
  107. package/dist/types/components/forms/cura-input-textarea/cura-input-textarea.stories.d.ts +188 -0
  108. package/dist/types/components.d.ts +210 -0
  109. package/package.json +2 -2
  110. package/dist/components/p-BJafC0R3.js +0 -1
  111. package/dist/components/p-nqT7t82E.js +0 -1
  112. package/dist/cura/p-c287c69e.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as s,H as h,g as o}from"./p-BxFVLGIR.js";import"./p-BTIDzOyO.js";const l=class{constructor(s){t(this,s),this.level=1,this.size="large",this.spotColor="accent-dark",this.marginBlock="1.25em",this.lineHeight="120%",this.theme=window.CuraAPI.theme,this.styles={}}handleChangeColor(){this.setColors()}connectedCallback(){this.setFontProperties(),this.setColors()}setFontProperties(){this.weights=this.theme.fonts.getWeights(),this.fontSizeBase=this.theme.fonts.getSize(),this.styles={"--font-family":window.CuraAPI.theme.fonts.getFamily("display"),"--font-size":window.CuraAPI.theme.fonts.getSize(),"--font-weight-bold":this.weights.bold,"--font-weight-medium":this.weights.medium}}hostCSSProperties(){return{"--margin-block":this.marginBlock,"--font-size-base":this.fontSizeBase,"--line-height":this.lineHeight}}setColors(){const t=this.color?this.theme.colors.getColor(this.color):this.theme.fonts.getColor();this.styles=Object.assign(Object.assign({},this.styles),{"--color-body":t||this.theme.colors.getColor("neutral-darker"),"--color-link":this.theme.colors.getColor(`${this.spotColor}`)})}getClasses(){var t;const s={};return s[`${null===(t=this.size)||void 0===t?void 0:t.toLowerCase()}`]=!0,s}getHeadingTag(){const t=this.getClasses(),h={1:s("h1",{style:this.styles,class:t},s("slot",null)),2:s("h2",{style:this.styles,class:t},s("slot",null)),3:s("h3",{style:this.styles,class:t},s("slot",null)),4:s("h4",{style:this.styles,class:t},s("slot",null)),5:s("h5",{style:this.styles,class:t},s("slot",null)),6:s("h6",{style:this.styles,class:t},s("slot",null)),default:s("h1",{style:this.styles,class:t},s("slot",null))};return h[`${this.level}`]||h.default}render(){return s(h,{key:"343caf7e121561a5339ea553ccadb8aeed553c37",style:this.hostCSSProperties(),role:"heading","aria-level":this.level},this.getHeadingTag())}get host(){return o(this)}static get watchers(){return{color:[{handleChangeColor:0}],spotColor:[{handleChangeColor:0}]}}};l.style=":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:3em;font-weight:var(--font-weight-bold);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:2.2857142857em;letter-spacing:-1.68px}:host h1 ::slotted(b),:host h1 ::slotted(strong),:host h2 ::slotted(b),:host h2 ::slotted(strong),:host h3 ::slotted(b),:host h3 ::slotted(strong),:host h4 ::slotted(b),:host h4 ::slotted(strong),:host h5 ::slotted(b),:host h5 ::slotted(strong),:host h6 ::slotted(b),:host h6 ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1 ::slotted(a),:host h2 ::slotted(a),:host h3 ::slotted(a),:host h4 ::slotted(a),:host h5 ::slotted(a),:host h6 ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%;cursor:pointer}:host h1 ::slotted(u),:host h2 ::slotted(u),:host h3 ::slotted(u),:host h4 ::slotted(u),:host h5 ::slotted(u),:host h6 ::slotted(u){text-underline-offset:10%}:host h1 ::slotted(i),:host h1 ::slotted(em),:host h2 ::slotted(i),:host h2 ::slotted(em),:host h3 ::slotted(i),:host h3 ::slotted(em),:host h4 ::slotted(i),:host h4 ::slotted(em),:host h5 ::slotted(i),:host h5 ::slotted(em),:host h6 ::slotted(i),:host h6 ::slotted(em){font-style:italic;font-weight:var(--font-weight-medium)}:host h1 ::slotted(abbr),:host h2 ::slotted(abbr),:host h3 ::slotted(abbr),:host h4 ::slotted(abbr),:host h5 ::slotted(abbr),:host h6 ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:3.429em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:2.8571428571em;letter-spacing:-1.92px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:4.286em;line-height:calc(var(--line-height) + 5%)}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3.5714285714em;letter-spacing:-1.2px}}";export{l as cura_display}
1
+ import{r as t,h as s,H as h,g as o}from"./p-BxFVLGIR.js";import"./p-BTIDzOyO.js";const l=class{constructor(s){t(this,s),this.level=1,this.size="large",this.spotColor="accent-dark",this.marginBlock="1.25em",this.lineHeight="120%",this.theme=window.CuraAPI.theme,this.styles={}}handleChangeColor(){this.setColors()}connectedCallback(){this.setFontProperties(),this.setColors()}setFontProperties(){this.weights=this.theme.fonts.getWeights(),this.fontSizeBase=this.theme.fonts.getSize(),this.styles={"--font-family":window.CuraAPI.theme.fonts.getFamily("display"),"--font-size":window.CuraAPI.theme.fonts.getSize(),"--font-weight-bold":this.weights.bold,"--font-weight-medium":this.weights.medium}}hostCSSProperties(){return{"--margin-block":this.marginBlock,"--font-size-base":this.fontSizeBase,"--line-height":this.lineHeight}}setColors(){const t=this.color?this.theme.colors.getColor(this.color):this.theme.fonts.getColor();this.styles=Object.assign(Object.assign({},this.styles),{"--color-body":t||this.theme.colors.getColor("neutral-darker"),"--color-link":this.theme.colors.getColor(`${this.spotColor}`)})}getClasses(){var t;const s={};return s[`${null===(t=this.size)||void 0===t?void 0:t.toLowerCase()}`]=!0,s}getHeadingTag(){const t=this.getClasses(),h={1:s("h1",{style:this.styles,class:t},s("slot",null)),2:s("h2",{style:this.styles,class:t},s("slot",null)),3:s("h3",{style:this.styles,class:t},s("slot",null)),4:s("h4",{style:this.styles,class:t},s("slot",null)),5:s("h5",{style:this.styles,class:t},s("slot",null)),6:s("h6",{style:this.styles,class:t},s("slot",null)),default:s("h1",{style:this.styles,class:t},s("slot",null))};return h[`${this.level}`]||h.default}render(){return s(h,{key:"b9264ba7f3ff79b474f02107824441c9f6e67ec1",style:this.hostCSSProperties(),role:"heading","aria-level":this.level},this.getHeadingTag())}get host(){return o(this)}static get watchers(){return{color:[{handleChangeColor:0}],spotColor:[{handleChangeColor:0}]}}};l.style=":host{display:block;font-size:var(--font-size-base)}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-family:var(--font-family);font-size:3em;font-weight:var(--font-weight-bold);color:var(--color-body);line-height:var(--line-height);margin-block:var(--margin-block);letter-spacing:0px}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:2.2857142857em;letter-spacing:-1.68px}:host h1 ::slotted(b),:host h1 ::slotted(strong),:host h2 ::slotted(b),:host h2 ::slotted(strong),:host h3 ::slotted(b),:host h3 ::slotted(strong),:host h4 ::slotted(b),:host h4 ::slotted(strong),:host h5 ::slotted(b),:host h5 ::slotted(strong),:host h6 ::slotted(b),:host h6 ::slotted(strong){font-weight:var(--font-weight-bold)}:host h1 ::slotted(a),:host h2 ::slotted(a),:host h3 ::slotted(a),:host h4 ::slotted(a),:host h5 ::slotted(a),:host h6 ::slotted(a){font-weight:var(--font-weight-bold);color:var(--color-link);text-underline-offset:10%;cursor:pointer}:host h1 ::slotted(u),:host h2 ::slotted(u),:host h3 ::slotted(u),:host h4 ::slotted(u),:host h5 ::slotted(u),:host h6 ::slotted(u){text-underline-offset:10%}:host h1 ::slotted(i),:host h1 ::slotted(em),:host h2 ::slotted(i),:host h2 ::slotted(em),:host h3 ::slotted(i),:host h3 ::slotted(em),:host h4 ::slotted(i),:host h4 ::slotted(em),:host h5 ::slotted(i),:host h5 ::slotted(em),:host h6 ::slotted(i),:host h6 ::slotted(em){font-style:italic;font-weight:var(--font-weight-medium)}:host h1 ::slotted(abbr),:host h2 ::slotted(abbr),:host h3 ::slotted(abbr),:host h4 ::slotted(abbr),:host h5 ::slotted(abbr),:host h6 ::slotted(abbr){color:var(--color-link);text-decoration:underline dashed 1px var(--color-link);text-underline-offset:10%;cursor:default}@media (min-width: 769px) and (max-width: 1920px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:3.429em}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:2.8571428571em;letter-spacing:-1.92px}}@media (min-width: 1921px){:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{font-size:4.286em;line-height:calc(var(--line-height) + 5%)}:host h1.small,:host h2.small,:host h3.small,:host h4.small,:host h5.small,:host h6.small{font-size:3.5714285714em;letter-spacing:-1.2px}}";export{l as cura_display}
@@ -1 +1 @@
1
- import{r as t,c as e,h as r,H as a}from"./p-BxFVLGIR.js";import{l as o}from"./p-CHcd-uKK.js";import"./p-BTIDzOyO.js";const s=class{constructor(r){t(this,r),this.tabSelect=e(this,"tabSelect"),this.counter=1,this.selected=!1,this.disabled=!1,this.size="large",this.colorMode="light",this.hovered=!1,this.styles={}}setColors(){[{name:"--background-color-selected",theme:"light"===this.colorMode?"primary-base":"primary-light"},{name:"--background-color-hover",theme:"light"===this.colorMode?"primary-light":null},{name:"--background-disabled-selected",theme:"light"===this.colorMode?"neutral-white":"neutral-black"},{name:"--border-color",theme:"light"===this.colorMode?"primary-base":"primary-light"}].forEach((t=>{t.theme&&(this.styles[t.name]=window.CuraAPI.theme.colors.getColor(t.theme))})),this.styles=Object.assign({},this.styles)}computeContentColor(){return this.disabled?"neutral-dark":"dark"===this.colorMode?this.hovered&&!this.selected?"neutral-purewhite":this.selected?"neutral-black":"primary-lighter":this.selected?"neutral-purewhite":"primary-dark"}getIcon(){if(!this.iconName)return"";const t="large"===this.size?20:16,e=this.computeContentColor();return r("cura-icon",{name:this.iconName,size:t,color:e})}getClasses(){return{[this.size]:!0,[this.colorMode]:!0,selected:this.selected,disabled:this.disabled}}getCounter(){return r("cura-badge-counter",{number:this.counter,color:"primary",disabled:this.disabled,class:"badge-number"})}connectedCallback(){this.styles=Object.assign(Object.assign({},this.styles),{"--primary-dark":window.CuraAPI.theme.colors.getColor("primary-dark"),"--neutral-purewhite":window.CuraAPI.theme.colors.getColor("neutral-purewhite"),"--neutral-dark":window.CuraAPI.theme.colors.getColor("neutral-dark"),"--base-spacing":window.CuraAPI.theme.spacing.getSpacing()}),this.setColors()}handleMouseEnter(){this.disabled||(this.hovered=!0)}handleMouseLeave(){this.hovered=!1}handleClick(t){this.disabled?t.preventDefault():(this.selected=!this.selected,this.tabSelect.emit({name:this.name}))}render(){const t=o[this.size]||o.default,e=this.computeContentColor();return r(a,{key:"e1b96aaf534d4a6c65f875413a0ad28b524c7d97",role:"button","aria-pressed":this.selected,"aria-disabled":this.disabled},r("button",{key:"dd6436cf0820f4038dfda6f5a45bcdf828d342bd",class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),disabled:this.disabled,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},this.getIcon(),r("cura-label",{key:"8bebb4e66694fbcedcd218cba0f13de2253ae587",size:t,color:e,lineHeight:"0",marginBlock:"0"},r("slot",{key:"b6fab707b8b4cab36131bfec148746e9459302e8"})),this.counter>0&&this.getCounter()))}static get watchers(){return{colorMode:[{setColors:0}]}}};s.style=":host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none;display:flex;align-items:center;justify-content:center;min-width:120px;width:fit-content;border:2px solid var(--border-color);border-radius:4px}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button:not(.selected),:host a:not(.selected){border:2px solid var(--border-color)}:host button:not(.disabled,.selected):hover,:host a:not(.disabled,.selected):hover{background-color:var(--background-color-hover)}:host button:not(.disabled,.selected):hover.dark,:host a:not(.disabled,.selected):hover.dark{border-color:var(--neutral-purewhite)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 2px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px)}:host button:focus,:host a:focus{border-color:var(--primary-light)}:host button cura-icon,:host a cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button cura-badge-counter,:host a cura-badge-counter{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.selected,:host a.selected{cursor:pointer;background-color:var(--background-color-selected)}:host button.selected.disabled,:host a.selected.disabled{border-color:transparent;background-color:var(--background-disabled-selected)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.disabled:not(.selected),:host a.disabled:not(.selected){border-color:var(--neutral-dark)}";export{s as cura_tabs_button}
1
+ import{r as t,c as e,h as r,H as a}from"./p-BxFVLGIR.js";import{l as o}from"./p-CHcd-uKK.js";import"./p-BTIDzOyO.js";const s=class{constructor(r){t(this,r),this.tabSelect=e(this,"tabSelect"),this.counter=1,this.selected=!1,this.disabled=!1,this.size="large",this.colorMode="light",this.hovered=!1,this.styles={}}setColors(){[{name:"--background-color-selected",theme:"light"===this.colorMode?"primary-base":"primary-light"},{name:"--background-color-hover",theme:"light"===this.colorMode?"primary-light":null},{name:"--background-disabled-selected",theme:"light"===this.colorMode?"neutral-white":"neutral-black"},{name:"--border-color",theme:"light"===this.colorMode?"primary-base":"primary-light"}].forEach((t=>{t.theme&&(this.styles[t.name]=window.CuraAPI.theme.colors.getColor(t.theme))})),this.styles=Object.assign({},this.styles)}computeContentColor(){return this.disabled?"neutral-dark":"dark"===this.colorMode?this.hovered&&!this.selected?"neutral-purewhite":this.selected?"neutral-black":"primary-lighter":this.selected?"neutral-purewhite":"primary-dark"}getIcon(){if(!this.iconName)return"";const t="large"===this.size?20:16,e=this.computeContentColor();return r("cura-icon",{name:this.iconName,size:t,color:e})}getClasses(){return{[this.size]:!0,[this.colorMode]:!0,selected:this.selected,disabled:this.disabled}}getCounter(){return r("cura-badge-counter",{number:this.counter,color:"primary",disabled:this.disabled,class:"badge-number"})}connectedCallback(){this.styles=Object.assign(Object.assign({},this.styles),{"--primary-dark":window.CuraAPI.theme.colors.getColor("primary-dark"),"--neutral-purewhite":window.CuraAPI.theme.colors.getColor("neutral-purewhite"),"--neutral-dark":window.CuraAPI.theme.colors.getColor("neutral-dark"),"--base-spacing":window.CuraAPI.theme.spacing.getSpacing()}),this.setColors()}handleMouseEnter(){this.disabled||(this.hovered=!0)}handleMouseLeave(){this.hovered=!1}handleClick(t){this.disabled?t.preventDefault():(this.selected=!this.selected,this.tabSelect.emit({name:this.name}))}render(){const t=o[this.size]||o.default,e=this.computeContentColor();return r(a,{key:"8c6b0887fb2077909547c732cecb8655842d4a93",role:"button","aria-pressed":this.selected,"aria-disabled":this.disabled},r("button",{key:"f91ddf1d31dbebb6e097e48838b64b6787a88148",class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),disabled:this.disabled,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},this.getIcon(),r("cura-label",{key:"0ca8313f7b54bc0d238c1b56abb75c940789471f",size:t,color:e,lineHeight:"0",marginBlock:"0"},r("slot",{key:"964538375a7c4560a996cc8c069753f07120ba9e"})),this.counter>0&&this.getCounter()))}static get watchers(){return{colorMode:[{setColors:0}]}}};s.style=":host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none;display:flex;align-items:center;justify-content:center;min-width:120px;width:fit-content;border:2px solid var(--border-color);border-radius:4px}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button:not(.selected),:host a:not(.selected){border:2px solid var(--border-color)}:host button:not(.disabled,.selected):hover,:host a:not(.disabled,.selected):hover{background-color:var(--background-color-hover)}:host button:not(.disabled,.selected):hover.dark,:host a:not(.disabled,.selected):hover.dark{border-color:var(--neutral-purewhite)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 2px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px)}:host button:focus,:host a:focus{border-color:var(--primary-light)}:host button cura-icon,:host a cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button cura-badge-counter,:host a cura-badge-counter{margin-left:calc(var(--cura-spacing-base) * 2px)}:host button.selected,:host a.selected{cursor:pointer;background-color:var(--background-color-selected)}:host button.selected.disabled,:host a.selected.disabled{border-color:transparent;background-color:var(--background-disabled-selected)}:host button.disabled,:host a.disabled{cursor:not-allowed}:host button.disabled:not(.selected),:host a.disabled:not(.selected){border-color:var(--neutral-dark)}";export{s as cura_tabs_button}
@@ -1 +1 @@
1
- import{r as s,h as r,H as e,g as a}from"./p-BxFVLGIR.js";import"./p-BTIDzOyO.js";const t=class{constructor(r){s(this,r),this.color="primary-base",this.progress=0,this.styles={}}handleChangeColor(){this.setColor()}handleProgress(){this.setProgress()}connectedCallback(){this.setColor(),this.setProgress()}render(){return r(e,{key:"dd27615093a7ab333175afb1e48bbe5455d7406b",role:"progressbar","aria-valuenow":this.progress,"aria-valuemin":0,"aria-valuemax":100},r("div",{key:"c3c76b76826c558769d43e441d9e0c573fb7eb7b",id:"progress-bar",class:"progress-bar",style:this.styles},r("span",{key:"0e8e361bdf63e558fa34cca67c3446b1147c2643",class:"progress-bar-fill"})))}setColor(){this.styles=Object.assign(Object.assign({},this.styles),{"--neutral-base":window.CuraAPI.theme.colors.getColor("neutral-base",.2),"--color-base":window.CuraAPI.theme.colors.getColor(this.color)})}setProgress(){this.styles=Object.assign(Object.assign({},this.styles),{"--bar-width":`${this.progress}%`})}get host(){return a(this)}static get watchers(){return{color:[{handleChangeColor:0}],progress:[{handleProgress:0}]}}};t.style=":host{display:block}:host .progress-bar{position:absolute;left:0;bottom:0;width:100%;height:4px;background-color:var(--neutral-base)}:host .progress-bar span{position:absolute;left:0;bottom:0;width:var(--bar-width);height:100%;border-radius:0 2px 2px 0;background-color:var(--color-base);transition:width 0.2s linear}";export{t as cura_loader_bar}
1
+ import{r as s,h as r,H as a,g as e}from"./p-BxFVLGIR.js";import"./p-BTIDzOyO.js";const t=class{constructor(r){s(this,r),this.color="primary-base",this.progress=0,this.styles={}}handleChangeColor(){this.setColor()}handleProgress(){this.setProgress()}connectedCallback(){this.setColor(),this.setProgress()}render(){return r(a,{key:"1cad7226bfde87284c61f4786c3bccf66f967d40",role:"progressbar","aria-valuenow":this.progress,"aria-valuemin":0,"aria-valuemax":100},r("div",{key:"59320656c2a679ff5600ef803fa215f1ed5d218d",id:"progress-bar",class:"progress-bar",style:this.styles},r("span",{key:"6d66523c36dfaece1e9d7a3d60c8fbf7dbef5efa",class:"progress-bar-fill"})))}setColor(){this.styles=Object.assign(Object.assign({},this.styles),{"--neutral-base":window.CuraAPI.theme.colors.getColor("neutral-base",.2),"--color-base":window.CuraAPI.theme.colors.getColor(this.color)})}setProgress(){this.styles=Object.assign(Object.assign({},this.styles),{"--bar-width":`${this.progress}%`})}get host(){return e(this)}static get watchers(){return{color:[{handleChangeColor:0}],progress:[{handleProgress:0}]}}};t.style=":host{display:block}:host .progress-bar{position:absolute;left:0;bottom:0;width:100%;height:4px;background-color:var(--neutral-base)}:host .progress-bar span{position:absolute;left:0;bottom:0;width:var(--bar-width);height:100%;border-radius:0 2px 2px 0;background-color:var(--color-base);transition:width 0.2s linear}";export{t as cura_loader_bar}
@@ -1 +1 @@
1
- import{r as t,c as e,h as o,H as r}from"./p-BxFVLGIR.js";import{l as s}from"./p-CHcd-uKK.js";import"./p-BTIDzOyO.js";const a=class{constructor(o){t(this,o),this.tabSelect=e(this,"tabSelect"),this.selected=!1,this.disabled=!1,this.borderBottom=!0,this.size="large",this.colorMode="light",this.hovered=!1,this.styles={}}setColors(){[{name:"--border-bottom-color",theme:"light"===this.colorMode?"neutral-base":"primary"},{name:"--border-bottom-color-selected",theme:"light"===this.colorMode?"primary-dark":"primary-lighter"}].forEach((t=>{t.theme&&(this.styles[t.name]=window.CuraAPI.theme.colors.getColor(t.theme))})),this.styles=Object.assign({},this.styles)}computeContentColor(){return this.disabled?"neutral-dark":"dark"===this.colorMode?this.hovered&&!this.selected?"neutral-purewhite":this.selected?"primary-lighter":"neutral-purewhite":this.hovered&&!this.selected?"primary-dark":this.selected?"primary-base":"neutral-black"}getIcon(){if(!this.iconName)return"";const t="large"===this.size?20:16,e=this.computeContentColor();return o("cura-icon",{name:this.iconName,size:t,color:e})}getClasses(){return{[this.size]:!0,[this.colorMode]:!0,selected:this.selected,disabled:this.disabled,"border-bottom":this.borderBottom}}connectedCallback(){this.styles=Object.assign(Object.assign({},this.styles),{"--primary-dark":window.CuraAPI.theme.colors.getColor("primary-dark"),"--neutral-purewhite":window.CuraAPI.theme.colors.getColor("neutral-purewhite"),"--base-spacing":window.CuraAPI.theme.spacing.getSpacing()}),this.setColors()}handleMouseEnter(){this.disabled||(this.hovered=!0)}handleMouseLeave(){this.hovered=!1}handleClick(t){this.disabled?t.preventDefault():(this.selected=!this.selected,this.tabSelect.emit({name:this.name}))}render(){const t=s[this.size]||s.default,e=this.computeContentColor();return o(r,{key:"09e06aa0e52ca852fa5e4409429f50242fa5c6a9",role:"button","aria-pressed":this.selected,"aria-disabled":this.disabled},o("button",{key:"a4c5f800f22b23e24b89366766660c02abfd7091",class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),disabled:this.disabled,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},this.getIcon(),o("cura-label",{key:"73de8c0f84a1128a92fd840c4b6d9b3415071a99",size:t,color:e,lineHeight:"0",marginBlock:"0"},o("slot",{key:"2514d0f1bd9752635fcc2d453c8994d09ef7f5d1"}))))}static get watchers(){return{colorMode:[{setColors:0}]}}};a.style=":host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none;min-width:120px;width:fit-content;display:flex;align-items:center;justify-content:center}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.border-bottom,:host a.border-bottom{border-bottom:1px solid var(--border-bottom-color)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 2px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px)}:host button:not(.selected),:host a:not(.selected){border-color:var(--border-color)}:host button:focus,:host a:focus{border-color:var(--primary-light)}:host button:not(.disabled,.selected):hover,:host a:not(.disabled,.selected):hover{background-color:var(--background-color-hover)}:host button:not(.disabled,.selected):hover.dark,:host a:not(.disabled,.selected):hover.dark{border-color:var(--neutral-purewhite)}:host button cura-icon,:host a cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.selected,:host a.selected{cursor:pointer}:host button.selected:not(.disabled),:host a.selected:not(.disabled){border-bottom:1px solid var(--border-bottom-color-selected)}:host button.disabled,:host a.disabled{cursor:not-allowed}";export{a as cura_tabs_transparent}
1
+ import{r as t,c as e,h as o,H as r}from"./p-BxFVLGIR.js";import{l as s}from"./p-CHcd-uKK.js";import"./p-BTIDzOyO.js";const a=class{constructor(o){t(this,o),this.tabSelect=e(this,"tabSelect"),this.selected=!1,this.disabled=!1,this.borderBottom=!0,this.size="large",this.colorMode="light",this.hovered=!1,this.styles={}}setColors(){[{name:"--border-bottom-color",theme:"light"===this.colorMode?"neutral-base":"primary"},{name:"--border-bottom-color-selected",theme:"light"===this.colorMode?"primary-dark":"primary-lighter"}].forEach((t=>{t.theme&&(this.styles[t.name]=window.CuraAPI.theme.colors.getColor(t.theme))})),this.styles=Object.assign({},this.styles)}computeContentColor(){return this.disabled?"neutral-dark":"dark"===this.colorMode?this.hovered&&!this.selected?"neutral-purewhite":this.selected?"primary-lighter":"neutral-purewhite":this.hovered&&!this.selected?"primary-dark":this.selected?"primary-base":"neutral-black"}getIcon(){if(!this.iconName)return"";const t="large"===this.size?20:16,e=this.computeContentColor();return o("cura-icon",{name:this.iconName,size:t,color:e})}getClasses(){return{[this.size]:!0,[this.colorMode]:!0,selected:this.selected,disabled:this.disabled,"border-bottom":this.borderBottom}}connectedCallback(){this.styles=Object.assign(Object.assign({},this.styles),{"--primary-dark":window.CuraAPI.theme.colors.getColor("primary-dark"),"--neutral-purewhite":window.CuraAPI.theme.colors.getColor("neutral-purewhite"),"--base-spacing":window.CuraAPI.theme.spacing.getSpacing()}),this.setColors()}handleMouseEnter(){this.disabled||(this.hovered=!0)}handleMouseLeave(){this.hovered=!1}handleClick(t){this.disabled?t.preventDefault():(this.selected=!this.selected,this.tabSelect.emit({name:this.name}))}render(){const t=s[this.size]||s.default,e=this.computeContentColor();return o(r,{key:"3a165e58646df4462994a4368ef6d58a843bdc5c",role:"button","aria-pressed":this.selected,"aria-disabled":this.disabled},o("button",{key:"50bfeaf2ec27682b6168f0c173b140bee1249229",class:this.getClasses(),style:this.styles,onClick:t=>this.handleClick(t),disabled:this.disabled,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},this.getIcon(),o("cura-label",{key:"5f2c83984da3d83ec0e6719eff67e901195366fa",size:t,color:e,lineHeight:"0",marginBlock:"0"},o("slot",{key:"317de55115567fed9ece59b8c4da507e20f9c57e"}))))}static get watchers(){return{colorMode:[{setColors:0}]}}};a.style=":host button,:host a{outline:none;box-shadow:none;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:center;text-decoration:none !important;font-size:var(--font-size);cursor:pointer;transition:background-color 0.07s linear, box-shadow 0.07s linear, border-color 0.07s linear;border-radius:var(--border-radius);position:relative;background-color:transparent;box-sizing:border-box;border:none;min-width:120px;width:fit-content;display:flex;align-items:center;justify-content:center}:host button:focus,:host a:focus{outline:2px solid #6EA8FF}:host button.border-bottom,:host a.border-bottom{border-bottom:1px solid var(--border-bottom-color)}:host button.small,:host a.small{padding:calc(var(--cura-spacing-base) * 2px) calc(var(--cura-spacing-base) * 2px)}:host button.medium,:host a.medium{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 3px)}:host button.large,:host a.large{padding:calc(var(--cura-spacing-base) * 3px) calc(var(--cura-spacing-base) * 4px)}:host button:not(.selected),:host a:not(.selected){border-color:var(--border-color)}:host button:focus,:host a:focus{border-color:var(--primary-light)}:host button:not(.disabled,.selected):hover,:host a:not(.disabled,.selected):hover{background-color:var(--background-color-hover)}:host button:not(.disabled,.selected):hover.dark,:host a:not(.disabled,.selected):hover.dark{border-color:var(--neutral-purewhite)}:host button cura-icon,:host a cura-icon{margin-right:calc(var(--cura-spacing-base) * 2px)}:host button.selected,:host a.selected{cursor:pointer}:host button.selected:not(.disabled),:host a.selected:not(.disabled){border-bottom:1px solid var(--border-bottom-color-selected)}:host button.disabled,:host a.disabled{cursor:not-allowed}";export{a as cura_tabs_transparent}
@@ -1,10 +1,11 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-Ce1Pxw3V.js';
2
2
  import { l as labelSizes } from './cura-button.definitions-BSI2FkNn.js';
3
3
  import { r as requiredArgs, t as toDate, _ as _typeof, i as isBefore, a as isAfter } from './index-964stZ3D.js';
4
- import { S as Static } from './static-DfJS7YqS.js';
4
+ import { a as addBodyScrollLockClass, r as removeBodyScrollLockClass, c as checkMobile, b as checkIOS, f as fakeInputIOSHack } from './utils-BZCR971L.js';
5
5
  import { i as iconSizes } from './cura-icon.definitions-sjLA93YY.js';
6
6
  import { l as labelSizes$1 } from './cura-tabs.definitions-CHcd-uKK.js';
7
7
  import './theme-legacy-default-BTIDzOyO.js';
8
+ import './static-DfJS7YqS.js';
8
9
 
9
10
  const curaAccordionCss = () => `:host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}`;
10
11
 
@@ -6801,7 +6802,6 @@ const CuraCalendar = class {
6801
6802
  registerInstance(this, hostRef);
6802
6803
  this.onchangeday = createEvent(this, "onchangeday");
6803
6804
  this.changeDateInView = createEvent(this, "changeDateInView");
6804
- this.isMounted = false;
6805
6805
  /**
6806
6806
  * Disable component
6807
6807
  *
@@ -7143,6 +7143,7 @@ const CuraCalendar = class {
7143
7143
  if (direction === 'next')
7144
7144
  newMonth = addMonths(this.currentDate, 1);
7145
7145
  this.currentDate = newMonth;
7146
+ this.sendEventChangeDateInView(Boolean(this.collapsed), newMonth);
7146
7147
  }
7147
7148
  /**
7148
7149
  * Handle the month dropdown change.
@@ -7153,7 +7154,9 @@ const CuraCalendar = class {
7153
7154
  const { months } = this.fetchMonthNames();
7154
7155
  const newMonth = event.detail;
7155
7156
  this.selectMonth = newMonth;
7156
- this.currentDate = new Date(getYear(this.currentDate), months.indexOf(newMonth), 1);
7157
+ const currentDateUpdated = new Date(getYear(this.currentDate), months.indexOf(newMonth), 1);
7158
+ this.currentDate = currentDateUpdated;
7159
+ this.sendEventChangeDateInView(Boolean(this.collapsed), currentDateUpdated);
7157
7160
  }
7158
7161
  /**
7159
7162
  * Handle the year input change.
@@ -7163,7 +7166,9 @@ const CuraCalendar = class {
7163
7166
  onYearDropdownChange(event) {
7164
7167
  const newYear = event.detail;
7165
7168
  this.selectYear = newYear;
7166
- this.currentDate = new Date(newYear, getMonth(this.currentDate), 1);
7169
+ const currentDateUpdated = new Date(newYear, getMonth(this.currentDate), 1);
7170
+ this.currentDate = currentDateUpdated;
7171
+ this.sendEventChangeDateInView(Boolean(this.collapsed), currentDateUpdated);
7167
7172
  }
7168
7173
  /**
7169
7174
  * Flatten date ranges into individual dates.
@@ -7270,10 +7275,10 @@ const CuraCalendar = class {
7270
7275
  this.collapsed = true;
7271
7276
  return this.fetchDaysOfWeek();
7272
7277
  }
7273
- fetchDaysOfWeek() {
7278
+ fetchDaysOfWeek(currentDate) {
7274
7279
  const DAYS_IN_CALENDAR_VIEW = 7;
7275
- const start = startOfWeek(this.currentDate);
7276
- const end = endOfWeek(this.currentDate);
7280
+ const start = startOfWeek(currentDate || this.currentDate);
7281
+ const end = endOfWeek(currentDate || this.currentDate);
7277
7282
  const daysIncurrentDate = eachDayOfInterval({ start, end });
7278
7283
  return daysIncurrentDate.slice(0, DAYS_IN_CALENDAR_VIEW);
7279
7284
  }
@@ -7284,11 +7289,12 @@ const CuraCalendar = class {
7284
7289
  if (direction === 'next')
7285
7290
  newWeek = addWeeks(this.currentDate, 1);
7286
7291
  this.currentDate = newWeek;
7292
+ this.sendEventChangeDateInView(Boolean(this.collapsed), newWeek);
7287
7293
  }
7288
- fetchDaysOfMonth() {
7294
+ fetchDaysOfMonth(currentDate) {
7289
7295
  const DAYS_IN_CALENDAR_VIEW = 35;
7290
- const start = startOfMonth(this.currentDate);
7291
- const end = endOfMonth(this.currentDate);
7296
+ const start = startOfMonth(currentDate || this.currentDate);
7297
+ const end = endOfMonth(currentDate || this.currentDate);
7292
7298
  const daysIncurrentDate = eachDayOfInterval({ start, end });
7293
7299
  const startWeekDay = getDay(start);
7294
7300
  const prevMonthEnd = endOfMonth(subMonths(start, 1));
@@ -7418,10 +7424,10 @@ const CuraCalendar = class {
7418
7424
  '--color-neutral-purewhite': window.CuraAPI.theme.colors.getColor(`neutral-purewhite`)
7419
7425
  };
7420
7426
  }
7421
- sendEventChangeDateInView(isCollapsed) {
7427
+ sendEventChangeDateInView(isCollapsed, currentDate) {
7422
7428
  const eventData = {
7423
- datesInView: isCollapsed ? this.fetchDaysOfWeek() : this.fetchDaysOfMonth(),
7424
- monthDays: this.fetchDaysOfMonth()
7429
+ datesInView: isCollapsed ? this.fetchDaysOfWeek(currentDate) : this.fetchDaysOfMonth(currentDate),
7430
+ monthDays: this.fetchDaysOfMonth(currentDate)
7425
7431
  };
7426
7432
  this.changeDateInView.emit(eventData);
7427
7433
  }
@@ -7441,23 +7447,14 @@ const CuraCalendar = class {
7441
7447
  }
7442
7448
  this.defaultDates = this.expandDateRanges(newValue);
7443
7449
  }
7444
- watchDatesInViewChange() {
7445
- if (!this.isMounted) {
7446
- return;
7447
- }
7448
- this.sendEventChangeDateInView(Boolean(this.collapsed));
7449
- }
7450
7450
  watchCollapse(isCollapsed) {
7451
- this.sendEventChangeDateInView(isCollapsed);
7452
- }
7453
- componentDidLoad() {
7454
- this.isMounted = true;
7451
+ this.sendEventChangeDateInView(isCollapsed, this.currentDate);
7455
7452
  }
7456
7453
  render() {
7457
7454
  const { months } = this.fetchMonthNames();
7458
- return (h(Host, { key: '9667bc4f47b6581724dcc658ce322b375622906a', style: this.getHostCSSProperties() }, h("div", { key: '231bc0e3890949e6696338e386a3db4e9744c5b6', class: `calendar ${this.floating ? 'floating' : ''} ${this.embedded ? 'embedded' : ''} ${this.getDisabledClassModifier()}`, style: this.styles }, h("header", { key: '88357e185b812e45d4632aa20759cf078e51af19', class: "header" }, h("div", { key: '93cf9ecfbce8772e64cdad26090119257f47b77b', class: `month-year ${this.type === 'dropdown' && 'dropdown'}` }, h("cura-icon", { key: 'c188f28ca53ffb79ad9d13b1ef7b19ab6d26b10d', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "left", disabled: this.isDisabled, color: this.determinePrevButtonColor(), onClick: this.handlePrevMonth }), this.type === 'dropdown' ? (h("div", { class: "select" }, h("cura-select", { disabled: this.isDisabled, size: "small", class: "drop-month", mode: "transparent", value: months[getMonth(this.currentDate)], onSelected: e => this.onMonthDropdownChange(e) }, months.map((month, index) => (h("cura-select-option", { size: "xsmall", key: index, value: month }, month)))), h("cura-select", { disabled: this.isDisabled, size: "small", class: "drop-year", mode: "transparent", value: getYear(this.currentDate).toString(), onSelected: e => this.onYearDropdownChange(e) }, this.fetchYearList().map((year, index) => (h("cura-select-option", { key: index, value: year.toString() }, year.toString())))))) : (h("cura-label", { color: !this.isDisabled ? 'neutral-black' : 'neutral-dark', size: "small" }, months[getMonth(this.currentDate)].slice(0, 3), ", ", getYear(this.currentDate))), h("cura-icon", { key: 'c890a280637b8c50d2b8cb8ac1ab9a685d742cc3', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "right", disabled: this.isDisabled, color: "primary-base", onClick: this.handleNextMonth }))), h("span", { key: 'fac87075df8335c9ad1464a5dc6caebfbd79cf38', class: "days-of-week" }, this.fetchWeekDays().map(this.renderItemWeekDays)), h("div", { key: 'e3d08f781cb7765f2c74e88ebd040d8dd28e7e9f', class: "dates" }, !this.collapsed
7455
+ return (h(Host, { key: 'ce5e455df204f6d7a8a3a34eba8198d33e1dd798', style: this.getHostCSSProperties() }, h("div", { key: 'b09f8c9ae06a38f0c04022a3c76ca89aed67f694', class: `calendar ${this.floating ? 'floating' : ''} ${this.embedded ? 'embedded' : ''} ${this.getDisabledClassModifier()}`, style: this.styles }, h("header", { key: 'c70bc378b8427424d4128f98b6f39f3a43d18e8b', class: "header" }, h("div", { key: 'cdda360107fd69b8a32e7773dfcb9f94bc63b517', class: `month-year ${this.type === 'dropdown' && 'dropdown'}` }, h("cura-icon", { key: 'a19af085d074aa74ba3a51712ed62228a4244911', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "left", disabled: this.isDisabled, color: this.determinePrevButtonColor(), onClick: this.handlePrevMonth }), this.type === 'dropdown' ? (h("div", { class: "select" }, h("cura-select", { disabled: this.isDisabled, size: "small", class: "drop-month", mode: "transparent", value: months[getMonth(this.currentDate)], onSelected: e => this.onMonthDropdownChange(e) }, months.map((month, index) => (h("cura-select-option", { size: "xsmall", key: index, value: month }, month)))), h("cura-select", { disabled: this.isDisabled, size: "small", class: "drop-year", mode: "transparent", value: getYear(this.currentDate).toString(), onSelected: e => this.onYearDropdownChange(e) }, this.fetchYearList().map((year, index) => (h("cura-select-option", { key: index, value: year.toString() }, year.toString())))))) : (h("cura-label", { color: !this.isDisabled ? 'neutral-black' : 'neutral-dark', size: "small" }, months[getMonth(this.currentDate)].slice(0, 3), ", ", getYear(this.currentDate))), h("cura-icon", { key: '0e9917d69adf95a5f4566d1269738d8ea4a11036', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "right", disabled: this.isDisabled, color: "primary-base", onClick: this.handleNextMonth }))), h("span", { key: 'f5249c9c7ebeae18af57c43bbd988aa7c21b7b04', class: "days-of-week" }, this.fetchWeekDays().map(this.renderItemWeekDays)), h("div", { key: '2465a9c40856462242a80f1fda2abf7dc2648012', class: "dates" }, !this.collapsed
7459
7456
  ? this.fetchDaysOfMonth().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))
7460
- : this.fetchDaysOfWeek().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))), this.collapsed !== null ? (this.collapsed ? (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { disabled: this.isDisabled, onClick: () => this.showNotColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "plusCircle" }, "Veja mais datas"))) : (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { onClick: () => this.showColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "minusCircle" }, "Veja menos datas")))) : null, this.isLoading && (h("div", { key: '91af6d390271d126ad380f26a2018e5e06c0f762', class: "loading-container" }, h("cura-loader-circle", { key: '032105471ed76a221fbbc50eac62d52250328d57', color: "primary", size: "large" }), h("slot", { key: '2cb6ce4b2cffc2d4ec704f4ba8fb746d59c1b0a0', name: "loadingMessage" }))))));
7457
+ : this.fetchDaysOfWeek().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))), this.collapsed !== null ? (this.collapsed ? (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { disabled: this.isDisabled, onClick: () => this.showNotColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "plusCircle" }, "Veja mais datas"))) : (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { onClick: () => this.showColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "minusCircle" }, "Veja menos datas")))) : null, this.isLoading && (h("div", { key: 'fba41e2fd1b743d534f763e690b8eaf8f741f2f4', class: "loading-container" }, h("cura-loader-circle", { key: '9780c689a48c0c6ef2804ba6e9864338dd6a21a9', color: "primary", size: "large" }), h("slot", { key: 'c0e9eee4818991d9fd6ac8322aa183cf574abb65', name: "loadingMessage" }))))));
7461
7458
  }
7462
7459
  static get watchers() { return {
7463
7460
  "defaultDate": [{
@@ -7468,9 +7465,6 @@ const CuraCalendar = class {
7468
7465
  "customDates": [{
7469
7466
  "watchDefaultDatesArray": 0
7470
7467
  }],
7471
- "currentDate": [{
7472
- "watchDatesInViewChange": 0
7473
- }],
7474
7468
  "collapsed": [{
7475
7469
  "watchCollapse": 0
7476
7470
  }]
@@ -7550,44 +7544,6 @@ const CuraCard = class {
7550
7544
  };
7551
7545
  CuraCard.style = curaCardCss();
7552
7546
 
7553
- function checkMobile() {
7554
- return (window === null || window === void 0 ? void 0 : window.innerWidth) < Static.breakpoints.medium.min;
7555
- }
7556
- function checkIOS() {
7557
- return [
7558
- 'iPad Simulator',
7559
- 'iPhone Simulator',
7560
- 'iPod Simulator',
7561
- 'iPad',
7562
- 'iPhone',
7563
- 'iPod'
7564
- ].includes(navigator.userAgent)
7565
- // iPad on iOS 13 detection
7566
- || (navigator.userAgent.includes("Mac") && "ontouchend" in document);
7567
- }
7568
- function fakeInputIOSHack(targetElement) {
7569
- if (!checkMobile() || !checkIOS())
7570
- return null;
7571
- const fakeInput = document.createElement('input');
7572
- fakeInput.setAttribute('type', 'text');
7573
- fakeInput.style.position = 'absolute';
7574
- fakeInput.style.opacity = '0';
7575
- fakeInput.style.height = '0';
7576
- fakeInput.style.fontSize = '16px'; // disable auto zoom
7577
- targetElement.prepend(fakeInput);
7578
- // focus so that subsequent async focus will work
7579
- fakeInput.focus();
7580
- return fakeInput;
7581
- }
7582
- function addBodyScrollLockClass() {
7583
- document.body.classList.add("cura-body-scroll-lock");
7584
- }
7585
- function removeBodyScrollLockClass() {
7586
- if (document.body.classList.contains("cura-body-scroll-lock")) {
7587
- document.body.classList.remove("cura-body-scroll-lock");
7588
- }
7589
- }
7590
-
7591
7547
  class FixedElementScrollBehavior {
7592
7548
  constructor(hostElement, scrollableElement) {
7593
7549
  this._stopPropagationEvent = (e) => {
@@ -8154,7 +8110,7 @@ const CuraHeading = class {
8154
8110
  return tags[`${this.level}`] || tags['default'];
8155
8111
  }
8156
8112
  render() {
8157
- return (h(Host, { key: 'e28268e7d797af495f6accb8536e88ac49ef608f', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
8113
+ return (h(Host, { key: '611cbd1aff08cda4926fc82ba821c86c5df3e954', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
8158
8114
  }
8159
8115
  get host() { return getElement(this); }
8160
8116
  };
@@ -12330,7 +12286,7 @@ const CuraLabel = class {
12330
12286
  };
12331
12287
  }
12332
12288
  render() {
12333
- return (h(Host, { key: '720f13cf286fb7f938e46c6f0a968c4e0f109d50', style: this.hostCSSProperties() }, h("p", { key: '0ff31e9b99761b045b24ed8042b27e47b186bf48', style: this.styles, class: this.getClasses() }, h("slot", { key: '0986ae8c63cc44b4656f403556c48a7ca6410073' }))));
12289
+ return (h(Host, { key: '80bddd4f902e7084628ed2cbfe1144a6ddcf2674', style: this.hostCSSProperties() }, h("p", { key: 'bc507c1b119459c6efbb81120a7cc33c1e305800', style: this.styles, class: this.getClasses() }, h("slot", { key: '451674e41f86b0b3db3f2f29b498aa49c489a7ec' }))));
12334
12290
  }
12335
12291
  get host() { return getElement(this); }
12336
12292
  static get watchers() { return {
@@ -12373,7 +12329,7 @@ const CuraLoaderCircle = class {
12373
12329
  };
12374
12330
  }
12375
12331
  render() {
12376
- return (h(Host, { key: 'c4615da9001f98d1b9e3663cc3be35d2171730e1', style: this.getStyles(), role: "progressbar" }, h("svg", { key: '9c37222a3fe0da848f113ad6d8c75e9b2a0cc9cc', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: 'f4a18be935decddbe888d70a37b1433044e05fb0' }, h("circle", { key: 'd681798065754082c40a289af01d0d68fc41dca4', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), h("path", { key: '3f0bba399b4fad8870467ef82bbc73bd18a2e9de', d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), h("defs", { key: '7e74e8efbd8fd28de95b40c856462e1c1dbefec1' }, h("linearGradient", { key: 'd8f4d5a79e13f25a72b73219d9398df4dbc1635c', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, h("stop", { key: '38d78b4fe60768fd5987cb44bbbcd76bdb82b7c4' }), h("stop", { key: 'ea7961e56c62437260bf7e0e8270073d1dd5bbe4', offset: "1" }))))));
12332
+ return (h(Host, { key: '628e3341e2bc0bef9a18362ab46625d99a7f6800', style: this.getStyles(), role: "progressbar" }, h("svg", { key: 'c0e5366cef003222ec7a60fcaed02a1e2376acd5', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '194989f5d872562dffc46ca981a699183de87603' }, h("circle", { key: '6ffa4ee0394f80b4328e5bda459f849387086568', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), h("path", { key: '9cc41c580811d999769f1ebe1443bd63a092eae0', d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), h("defs", { key: '1190920b737c9306a96ac9854207a339ac312815' }, h("linearGradient", { key: '11921fe3939bef2f32a4688058a3c818600c5781', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, h("stop", { key: 'fa3f8b029d39912abea7adef004f24e99f76d453' }), h("stop", { key: '53b8efce47f6101c36ccf9f05beca7ab76ffb886', offset: "1" }))))));
12377
12333
  }
12378
12334
  };
12379
12335
  CuraLoaderCircle.style = curaLoaderCircleCss();
@@ -12468,7 +12424,7 @@ const CuraParagraph = class {
12468
12424
  return classes;
12469
12425
  }
12470
12426
  render() {
12471
- return (h(Host, { key: '411b5363e280ac45fdd05b52beb4d778f9a65f81', style: this.hostCSSProperties() }, h("p", { key: '4dcf7ab9518dfe6baea24e5ecf340074d5cc0531', style: this.styles, class: this.getClasses() }, h("slot", { key: 'cfbd348562f33ef233cda512d596844f49bf3453' }))));
12427
+ return (h(Host, { key: '33b3d1d2e739523255fbfbfd8b6afd67aa5dbc2d', style: this.hostCSSProperties() }, h("p", { key: '1baf909ffcc9c682bc9fba3b36d173e53020d084', style: this.styles, class: this.getClasses() }, h("slot", { key: 'b836160b6c94a6f3a2f5a7c4c1802bc5340bd5b5' }))));
12472
12428
  }
12473
12429
  get host() { return getElement(this); }
12474
12430
  };
@@ -14553,10 +14509,10 @@ const CuraSelect = class {
14553
14509
  });
14554
14510
  }
14555
14511
  render() {
14556
- return (h(Host, { key: '13d03dc2dae8a2aea0a40a9f3f8cff4f8dd5e2f7', style: this.styles, role: "combobox", "aria-label": this.label, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error') }, h("div", { key: '70d1e6e1e196d9955e29705e7859e60e25116321', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: '17a8be580d7e66295756dd0d4c50023315ade905', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: '5d3e76ce07f6214eb9925e2b1bdd1a8ea0d59e43', class: "required" }, "* "))), h("div", { key: '57da69c886f2f94bc9311ba987a697f3caff7bbf', class: {
14512
+ return (h(Host, { key: '7621641772e6c166b5359346f0d0681a614c1f5c', style: this.styles, role: "combobox", "aria-label": this.label, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error') }, h("div", { key: '7cc11beb3a10ada937c4668fdfcdb98b380200e0', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: 'd10426c84bb97db84074430f537293407f7afa05', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: '82808b9add65b3c6abf03e56fe63dccd574229f3', class: "required" }, "* "))), h("div", { key: 'e37b1468d0bf2bdac3f1c2096c22840fe7e0eced', class: {
14557
14513
  'cura-input-field': true,
14558
14514
  'open': this.isOpen,
14559
- }, ref: el => (this.inputWrapper = el) }, this.renderIcon(), h("input", { key: '783caf1d2e7e55d1e50ce870ed62ee358b63d2c5', 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: '626d2a26a771babd5353bba45448a5410c4886e3', class: "up-down-button" }, h("cura-icon", { key: 'e331e0dde7ece240f8f80768150679262bb88ab6', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), h("cura-label", { key: '458647bd83c8e8a0d68f49f2b08b7f61bed7e5af', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: '7ef8488495f4e03694bc65930aad0fa6caa8b51f' })), this.isOpen && (h("div", { key: '2ba839bf8b7d85ffd7be60f1575fe94f3057155a', class: {
14515
+ }, ref: el => (this.inputWrapper = el) }, this.renderIcon(), h("input", { key: '7fabd1a5fc59c479ea09d95f7552f49f8448125e', 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: '9fa767799517d3872d60e33a9d71562bfe24d0c5', class: "up-down-button" }, h("cura-icon", { key: '2299a69d28c72eba5f2a18faa87c653226105034', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), h("cura-label", { key: '6c88858d35cdf9c756b9ee7d9e93f5ff0596e372', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: '55a075d118ba10f7921d6cf13331c7c0a0ddae46' })), this.isOpen && (h("div", { key: 'd36637fb50aeefbb10991dd2fa8212886293fff3', class: {
14560
14516
  menu: true,
14561
14517
  open: this.isOpen,
14562
14518
  [this.preferredPlacement]: true,
@@ -14569,7 +14525,7 @@ const CuraSelect = class {
14569
14525
  visibility: this.isPositioned ? 'visible' : 'hidden',
14570
14526
  opacity: this.isPositioned ? '1' : '0',
14571
14527
  pointerEvents: this.isPositioned ? 'auto' : 'none',
14572
- } }, h("slot", { key: '8cb789b3f8cf850a6965ed7be11264a654f26c60', name: "option" }))))));
14528
+ } }, h("slot", { key: '399d62fd686ed4c0a0729d336a3502b53918e371', name: "option" }))))));
14573
14529
  }
14574
14530
  static get formAssociated() { return true; }
14575
14531
  get host() { return getElement(this); }
@@ -14623,7 +14579,7 @@ const CuraSelectOption = class {
14623
14579
  };
14624
14580
  }
14625
14581
  render() {
14626
- return (h(Host, { key: '1959cfad9e9f91de0a6614517e0a696ff832a8b4', slot: "option", role: "option", "aria-selected": this.selected }, h("div", { key: 'f22474011fa2a0def2d272477bbb6ba3c7c5dd59', class: this.getClasses(), style: this.styles }, h("cura-label", { key: 'a1236553e347a88c478e50cea6809c54ced8f55d', color: `${this.selected ? 'primary-base' : 'neutral-black'}`, size: this.getSize('label'), "margin-block": "0" }, h("slot", { key: '3655ebfdd77515ddd8f8dcb6aa736b0dfcca4802' })), this.selected && h("cura-icon", { key: 'cc0051639d6878aaeff7c8eb4a2a15a9c73276da', name: 'check', size: this.getSize('icon'), color: "primary-base" }))));
14582
+ return (h(Host, { key: '351cadffe0228ba5af1a9d6019c8dece886061c6', slot: "option", role: "option", "aria-selected": this.selected }, h("div", { key: '0bbe81fd481f3d7d83e42bcbeb69c8b88ce23804', class: this.getClasses(), style: this.styles }, h("cura-label", { key: 'fa4ae11397845ed517f756fd4537f80bb7580e4f', color: `${this.selected ? 'primary-base' : 'neutral-black'}`, size: this.getSize('label'), "margin-block": "0" }, h("slot", { key: 'c3b653b8a65d3b7afe0253fd9aafe922fdaebcfc' })), this.selected && h("cura-icon", { key: 'd7420da36a93c1f873ac79e6d55e1fa697a4eaad', name: 'check', size: this.getSize('icon'), color: "primary-base" }))));
14627
14583
  }
14628
14584
  get host() { return getElement(this); }
14629
14585
  static get watchers() { return {
@@ -14723,7 +14679,7 @@ const CuraTabs = class {
14723
14679
  const labelSize = labelSizes$1[this.size] || labelSizes$1['default'];
14724
14680
  const labelColor = this.computeContentColor();
14725
14681
  this.updateDynamicStyles();
14726
- return (h(Host, { key: 'fc0a87968ffd898bd8fc7b287eca4c43183d5b22', role: "button", "aria-pressed": this.selected, "aria-disabled": this.disabled }, h("button", { key: '00fe656ab46b7f57dae2a7a1dead6a55759ec729', class: this.getClasses(), style: this.styles, onClick: e => this.handleClick(e), disabled: this.disabled, onMouseEnter: this.handleMouseEnter.bind(this), onMouseLeave: this.handleMouseLeave.bind(this) }, this.getIcon(), h("cura-label", { key: 'c291da87ab7e8beda3c547570a80914bba5e5836', size: labelSize, color: labelColor, lineHeight: "0", marginBlock: "0" }, h("slot", { key: '7233f8f990b33a841e815746f0c18fad27b907f1' })))));
14682
+ return (h(Host, { key: 'd12ccbd8e900c1a21dfee2ee7363e167772acad4', role: "button", "aria-pressed": this.selected, "aria-disabled": this.disabled }, h("button", { key: '2e77d02614e38baaca599d7830f5ba4dcb048519', class: this.getClasses(), style: this.styles, onClick: e => this.handleClick(e), disabled: this.disabled, onMouseEnter: this.handleMouseEnter.bind(this), onMouseLeave: this.handleMouseLeave.bind(this) }, this.getIcon(), h("cura-label", { key: '343f0d566d70ea2f132ea55ca588c57cb2ce20f2', size: labelSize, color: labelColor, lineHeight: "0", marginBlock: "0" }, h("slot", { key: '9acebd9e763f88d698ca6c0a08e97c3960701730' })))));
14727
14683
  }
14728
14684
  static get watchers() { return {
14729
14685
  "colorMode": [{
@@ -14762,7 +14718,7 @@ const CuraTabsGroup = class {
14762
14718
  this.styles = Object.assign(Object.assign({}, this.styles), { '--border-color': window.CuraAPI.theme.colors.getColor(this.colorMode === 'light' ? 'neutral-base' : 'primary-base'), '--gap': `${this.gap}px` });
14763
14719
  }
14764
14720
  render() {
14765
- return (h(Host, { key: '19ab029f51ded1870e7a59518c57cd4270241ac9', role: "tablist", style: this.styles, class: this.getClasses() }, h("slot", { key: 'eda90f855125cfdee50efdb11ffd05ec83e7cfe0' })));
14721
+ return (h(Host, { key: '1a2babd4b23b2f54644cfe9d0129736c897f50c3', role: "tablist", style: this.styles, class: this.getClasses() }, h("slot", { key: 'ba78df56f01619de8df14cbfde08dd501b15048e' })));
14766
14722
  }
14767
14723
  get host() { return getElement(this); }
14768
14724
  };
@@ -84,7 +84,7 @@ const CuraDisplay = class {
84
84
  return tags[`${this.level}`] || tags['default'];
85
85
  }
86
86
  render() {
87
- return (h(Host, { key: '343caf7e121561a5339ea553ccadb8aeed553c37', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
87
+ return (h(Host, { key: 'b9264ba7f3ff79b474f02107824441c9f6e67ec1', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
88
88
  }
89
89
  get host() { return getElement(this); }
90
90
  static get watchers() { return {
@@ -0,0 +1,234 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-Ce1Pxw3V.js';
2
+ import { c as checkMobile, b as checkIOS, f as fakeInputIOSHack } from './utils-BZCR971L.js';
3
+ import './theme-legacy-default-BTIDzOyO.js';
4
+ import './static-DfJS7YqS.js';
5
+
6
+ const curaInputTextareaCss = () => `:host{display:block;box-sizing:border-box;width:100%}.required{color:var(--error-base)}.cura-textarea-group{width:100%;font-family:var(--font-family);text-align:left !important}.cura-textarea-group .helper-max-wrapper{display:flex;justify-content:space-between;align-items:center}.cura-textarea-group .helper-text{margin-top:8px;color:var(--neutral-dark)}.cura-textarea-group .max-length{display:flex}.cura-textarea-group cura-label{margin-bottom:8px}.cura-textarea-group .cura-textarea-field{width:100%;height:64px;display:flex;flex-direction:row;background-color:var(--neutral-purewhite);border:2px solid var(--neutral-medium);border-radius:4px;color:var(--primary-base);letter-spacing:0.32px;line-height:20px;overflow:hidden;box-sizing:border-box}.cura-textarea-group .cura-textarea-field textarea{flex:1;width:100%;height:100%;background:transparent;border:none;outline:none;color:var(--neutral-dark);font-family:var(--font-family);font-weight:var(--font-weight-medium);font-size:14px;box-sizing:border-box;padding:16px 16px 0px 8px;min-height:64px;resize:vertical}.cura-textarea-group .cura-textarea-field textarea:not(.resizable){resize:none}.cura-textarea-group .cura-textarea-field textarea::placeholder{color:var(--neutral-dark)}.cura-textarea-group .cura-textarea-field .feedback-icon{padding-left:16px;padding-top:16px}.cura-textarea-group .cura-textarea-field cura-loader-circle{margin:0px 12px}.cura-textarea-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly) .cura-textarea-field{border-color:var(--neutral-dark)}.cura-textarea-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly) .cura-textarea-field textarea{color:var(--neutral-dark)}.cura-textarea-group:hover:not(.disabled):not(.isLoading):not(.success):not(.error):not(.isFocused):not(.readOnly) .cura-textarea-field textarea::placeholder{color:var(--neutral-dark)}.cura-textarea-group:focus-within .cura-textarea-field{border:2px solid var(--info-base) !important;background-color:var(--neutral-purewhite);outline:none}.cura-textarea-group:focus-within .cura-textarea-field textarea{color:var(--neutral-black) !important}.cura-textarea-group.success .cura-textarea-field{border:2px solid var(--success-dark) !important;background-color:var(--success-lighter) !important}.cura-textarea-group.success .cura-textarea-field textarea{color:var(--success-darker) !important}.cura-textarea-group.success .cura-textarea-field textarea::placeholder{color:var(--success-darker) !important}.cura-textarea-group.error .cura-textarea-field{border:2px solid var(--error-dark) !important;background-color:var(--error-lighter) !important}.cura-textarea-group.error .cura-textarea-field textarea{color:var(--error-darker) !important}.cura-textarea-group.error .cura-textarea-field textarea::placeholder{color:var(--error-darker) !important}.cura-textarea-group.isLoading{cursor:wait}.cura-textarea-group.isLoading .cura-textarea-field{background-color:var(--neutral-white) !important;border:2px solid var(--primary-base) !important}.cura-textarea-group.isLoading .cura-textarea-field textarea{cursor:wait;color:var(--primary-base) !important}.cura-textarea-group.isLoading .cura-textarea-field textarea::placeholder{color:var(--primary-base) !important}.cura-textarea-group.disabled .cura-textarea-field{background-color:var(--neutral-white);border:2px solid var(--neutral-base)}.cura-textarea-group.disabled .cura-textarea-field textarea{color:var(--neutral-medium)}.cura-textarea-group.disabled .cura-textarea-field textarea::placeholder{color:var(--neutral-medium)}.cura-textarea-group.readOnly[read-only] .cura-textarea-field{cursor:default}.cura-textarea-group.readOnly[read-only] .cura-textarea-field textarea{cursor:default}.cura-textarea-group.small .cura-textarea-field{height:64px}.cura-textarea-group.small .cura-textarea-field textarea{font-size:12px;line-height:13px;letter-spacing:0.72px;min-height:64px}.cura-textarea-group.small .helper-text{font-weight:var(--font-weight-regular)}.cura-textarea-group.medium .cura-textarea-field{height:64px}.cura-textarea-group.medium .cura-textarea-field textarea{font-size:14px;line-height:16px;letter-spacing:0.56px;min-height:64px}.cura-textarea-group.medium .helper-text{font-weight:var(--font-weight-regular)}.cura-textarea-group.large .cura-textarea-field{height:64px}.cura-textarea-group.large .cura-textarea-field textarea{font-size:16px;min-height:64px}.cura-textarea-group.large .helper-text{font-weight:var(--font-weight-bold)}`;
7
+
8
+ const CuraInputTextArea = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.valueChange = createEvent(this, "valueChange");
12
+ this.inputClear = createEvent(this, "inputClear");
13
+ if (hostRef.$hostElement$["s-ei"]) {
14
+ this.internals = hostRef.$hostElement$["s-ei"];
15
+ }
16
+ else {
17
+ this.internals = hostRef.$hostElement$.attachInternals();
18
+ hostRef.$hostElement$["s-ei"] = this.internals;
19
+ }
20
+ /**
21
+ * Indicates input status (default: 'default')
22
+ */
23
+ this.status = 'default';
24
+ /**
25
+ * Size of the textarea: 'small', 'medium', or 'large' (default: 'medium')
26
+ */
27
+ this.size = 'medium';
28
+ /**
29
+ * Label text for the textarea
30
+ */
31
+ this.label = '';
32
+ /**
33
+ * Name for the textarea
34
+ */
35
+ this.name = '';
36
+ /**
37
+ * Placeholder text
38
+ */
39
+ this.placeholder = null;
40
+ /**
41
+ * Initial value of the textarea
42
+ */
43
+ this.value = '';
44
+ /**
45
+ * Cura icon name to display
46
+ */
47
+ this.iconName = '';
48
+ /**
49
+ * Whether the textarea is disabled (default: false)
50
+ */
51
+ this.disabled = false;
52
+ /**
53
+ * Whether the textarea is required (default: false)
54
+ */
55
+ this.required = false;
56
+ /**
57
+ * Whether the textarea is read-only (default: false)
58
+ */
59
+ this.readOnly = false;
60
+ /**
61
+ * Whether the textarea is resizable (default: true)
62
+ */
63
+ this.resizable = true;
64
+ /**
65
+ * Whether the textarea is in loading state (default: false)
66
+ */
67
+ this.isLoading = false;
68
+ this.isHovered = false;
69
+ this.isFocused = false;
70
+ this.currentValue = '';
71
+ this.fieldStyles = { height: 'auto' };
72
+ /**
73
+ * Removes the alertCircle icon when necessary (as used in CuraDropdownSearch)
74
+ */
75
+ this.hideErrorIcon = false;
76
+ /**
77
+ * Whether the textarea should have autocomplete
78
+ */
79
+ this.autocomplete = 'on';
80
+ this.styles = {};
81
+ }
82
+ async setFocus() {
83
+ const timeoutMs = checkMobile() && checkIOS() ? 1000 : 200;
84
+ let fakeInput = fakeInputIOSHack(this.host);
85
+ setTimeout(() => {
86
+ this.inputRef.focus();
87
+ if (fakeInput)
88
+ fakeInput.remove();
89
+ }, timeoutMs);
90
+ }
91
+ formStateRestoreCallback(state) {
92
+ this.currentValue = state.value;
93
+ this.internals.setFormValue(this.currentValue);
94
+ }
95
+ formAssociatedCallback(form) {
96
+ form.ariaLabel = this.label;
97
+ }
98
+ formResetCallback() {
99
+ this.handleClearInput();
100
+ this.internals.setValidity({});
101
+ this.internals.setFormValue('');
102
+ }
103
+ formDisabledCallback(disabled) {
104
+ this.disabled = disabled;
105
+ }
106
+ connectedCallback() {
107
+ this.styles['--primary-base'] = window.CuraAPI.theme.colors.getColor(`primary-base`);
108
+ this.styles['--neutral-purewhite'] = window.CuraAPI.theme.colors.getColor(`neutral-purewhite`);
109
+ this.styles['--neutral-white'] = window.CuraAPI.theme.colors.getColor(`neutral-white`);
110
+ this.styles['--neutral-black'] = window.CuraAPI.theme.colors.getColor(`neutral-black`);
111
+ this.styles['--neutral-medium'] = window.CuraAPI.theme.colors.getColor(`neutral-medium`);
112
+ this.styles['--neutral-base'] = window.CuraAPI.theme.colors.getColor(`neutral-base`);
113
+ this.styles['--neutral-dark'] = window.CuraAPI.theme.colors.getColor(`neutral-dark`);
114
+ this.styles['--success-dark'] = window.CuraAPI.theme.colors.getColor(`success-dark`);
115
+ this.styles['--success-darker'] = window.CuraAPI.theme.colors.getColor(`success-darker`);
116
+ this.styles['--success-lighter'] = window.CuraAPI.theme.colors.getColor(`success-lighter`);
117
+ this.styles['--error-lighter'] = window.CuraAPI.theme.colors.getColor(`error-lighter`);
118
+ this.styles['--error-dark'] = window.CuraAPI.theme.colors.getColor(`error-dark`);
119
+ this.styles['--error-darker'] = window.CuraAPI.theme.colors.getColor(`error-darker`);
120
+ this.styles['--error-base'] = window.CuraAPI.theme.colors.getColor(`error-base`);
121
+ this.styles['--info-base'] = window.CuraAPI.theme.colors.getColor(`info-base`);
122
+ this.styles['--font-family'] = window.CuraAPI.theme.fonts.getFamily();
123
+ this.styles['--font-size'] = window.CuraAPI.theme.fonts.getSize();
124
+ this.styles['--font-color'] = window.CuraAPI.theme.fonts.getColor();
125
+ this.weights = window.CuraAPI.theme.fonts.getWeights();
126
+ this.breakpoints = window.CuraAPI.theme.breakpoints.get();
127
+ this.styles['--font-weight-medium'] = this.weights.medium;
128
+ this.styles['--font-weight-bold'] = this.weights.bold;
129
+ this.styles['--font-weight-regular'] = this.weights.regular;
130
+ }
131
+ componentWillLoad() {
132
+ this.currentValue = this.value;
133
+ }
134
+ getClasses() {
135
+ return {
136
+ [this.size.toLowerCase()]: true,
137
+ disabled: !!this.disabled,
138
+ isLoading: !!this.isLoading,
139
+ isFocused: this.isFocused && !this.disabled && !this.readOnly && !this.isLoading,
140
+ isHovered: this.isHovered,
141
+ [this.status]: true,
142
+ resizable: !!this.resizable,
143
+ };
144
+ }
145
+ getLabelColor() {
146
+ if (!!this.disabled) {
147
+ return 'neutral-medium';
148
+ }
149
+ else if (((this.isFocused || this.isHovered || this.status === 'success' || this.status === 'error') && !this.readOnly) || this.isHovered) {
150
+ return 'neutral-black';
151
+ }
152
+ else {
153
+ return 'neutral-dark';
154
+ }
155
+ }
156
+ renderIcon() {
157
+ if (this.iconName === '' && this.status === 'default') {
158
+ return;
159
+ }
160
+ if (this.status === 'error' && this.hideErrorIcon) {
161
+ return;
162
+ }
163
+ const baseIconSize = this.size === 'large' ? 20 : 16;
164
+ const iconMap = {
165
+ loading: { name: this.iconName, color: 'primary-base' },
166
+ success: { name: 'checkCircle', color: 'success-dark' },
167
+ error: { name: 'alertCircle', color: 'error-dark' },
168
+ default: { name: this.iconName, color: 'neutral-dark' },
169
+ disabled: { name: this.iconName, color: 'neutral-medium' },
170
+ };
171
+ const iconConfig = iconMap[this.isLoading ? 'loading' : this.disabled ? 'disabled' : this.status || 'default'];
172
+ return (h("div", { class: "feedback-icon", style: this.styles }, h("cura-icon", { name: iconConfig.name, iconset: "default", size: baseIconSize, color: iconConfig.color })));
173
+ }
174
+ renderHelperText() {
175
+ const isError = this.status === 'error';
176
+ const isSuccess = this.status === 'success';
177
+ const isDefault = this.status === 'default';
178
+ const helperTextSize = this.size === 'large' ? 'small' : 'xsmall';
179
+ const colorText = (() => {
180
+ if (this.disabled)
181
+ return 'neutral-medium';
182
+ if (this.isLoading)
183
+ return 'primary-base';
184
+ if (this.isFocused || this.isHovered)
185
+ return 'neutral-black';
186
+ return 'neutral-dark';
187
+ })();
188
+ return (h("div", { style: this.styles, class: "helper-text", part: "cura-input-text-helper" }, isDefault && (h("cura-label", { size: helperTextSize, color: colorText }, h("slot", null))), isError && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "error-dark" }, h("slot", null))), isSuccess && (h("cura-label", { size: helperTextSize, lineHeight: "xsmall", color: "success-dark" }, h("slot", null)))));
189
+ }
190
+ renderMaxLength() {
191
+ var _a;
192
+ if (!this.maxlength)
193
+ return null;
194
+ return (h("div", { class: "max-length" }, h("cura-label", { size: "xsmall", weight: 'bold', color: "neutral-dark" }, `${((_a = this.currentValue) === null || _a === void 0 ? void 0 : _a.toString().length) || 0}`), h("cura-label", { size: "xsmall", weight: 'bold', color: "neutral-darker" }, `/${this.maxlength}`)));
195
+ }
196
+ handleMouseEnter() {
197
+ this.isHovered = true;
198
+ }
199
+ handleMouseLeave() {
200
+ this.isHovered = false;
201
+ }
202
+ handleClearInput() {
203
+ this.currentValue = '';
204
+ this.inputRef.value = '';
205
+ this.valueChange.emit(this.currentValue);
206
+ this.inputClear.emit(this.currentValue);
207
+ this.setFocus();
208
+ }
209
+ handleInputFocus() {
210
+ this.isFocused = true;
211
+ }
212
+ handleInputBlur() {
213
+ setTimeout(() => {
214
+ this.isFocused = false;
215
+ }, 150);
216
+ }
217
+ handleInputChange(event) {
218
+ const inputValue = event.target.value;
219
+ this.valueChange.emit(inputValue);
220
+ this.handleTextInputChange(inputValue);
221
+ this.internals.setFormValue(this.currentValue);
222
+ }
223
+ handleTextInputChange(inputValue) {
224
+ this.currentValue = inputValue;
225
+ }
226
+ render() {
227
+ return (h(Host, { key: '05f1a1a3b51e4bb1bc54cab3c8d5b6062a95d32a', role: "textbox", "aria-disabled": this.disabled, "aria-required": this.required, "aria-invalid": this.status === 'error' }, h("div", { key: '47eb10b6f3c3e697ae1558fd53d4d9cb9a2b6065', style: this.styles, onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave(), class: Object.assign({ 'cura-textarea-group': true }, this.getClasses()) }, h("div", { key: 'c090b7b2eb353dbe929810c4835f49860bfe9c80', class: "input-wrapper" }, this.label && (h("cura-label", { key: 'a957db2fb6e2779d3c33f7504124cff353e41c2c', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getLabelColor() }, this.label, " ", this.required && h("span", { key: '1928a3597976bd5b1f4076c49dae803a69139cb5', class: "required" }, "* "))), h("div", { key: '58c1cab70c203e9ca106ddec09d606943814b65c', class: "cura-textarea-field", part: "cura-textarea-field", style: this.fieldStyles }, this.renderIcon(), h("textarea", { key: 'd6a59a727dfc5a8655ea496111dd46718101b0be', name: this.name ? this.name : '', 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.currentValue !== undefined && this.currentValue !== null ? this.currentValue : '', autocomplete: this.autocomplete }), this.isLoading && h("cura-loader-circle", { key: '0476538f94ba6ffc0dc89b4bd125c048f420d415', size: this.size === 'large' ? 'medium' : 'small', color: "primary-base" })), h("div", { key: '84b14a2904cfa97adc766bd65cbbf48cb390d6c6', class: "helper-max-wrapper" }, this.renderHelperText(), " ", this.renderMaxLength())))));
228
+ }
229
+ static get formAssociated() { return true; }
230
+ get host() { return getElement(this); }
231
+ };
232
+ CuraInputTextArea.style = curaInputTextareaCss();
233
+
234
+ export { CuraInputTextArea as cura_input_textarea };