@randstad-uca/design-system 1.0.119 → 1.0.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1547,13 +1547,32 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1547
1547
  background: var(--ui-informative-10);
1548
1548
  --icon-color: var(--ui-informative);
1549
1549
  }
1550
+
1551
+ @media (max-width:500px){
1552
+ .container {
1553
+ padding: 8px;
1554
+ font-size: 14px;
1555
+ gap:5px;
1556
+ }
1557
+ .icon-box {
1558
+ width: 16px;
1559
+ display: flex;
1560
+ align-items: center;
1561
+ justify-content: center;
1562
+ height: 24px;
1563
+ }
1564
+ randstad-icon {
1565
+ --icon-size: 16px !important;
1566
+ }
1567
+ }
1550
1568
  `}render(){return e`
1551
1569
  <div class="container ${this.open?"":"hidden"} ${this.type}">
1552
- <randstad-icon
1553
- name="${this.icon}"
1554
- >
1555
- </randstad-icon>
1556
-
1570
+ <div class="icon-box">
1571
+ <randstad-icon
1572
+ name="${this.icon}"
1573
+ >
1574
+ </randstad-icon>
1575
+ </div>
1557
1576
  <span class="message">${this.message}</span>
1558
1577
  </div>
1559
1578
  `}};n([L({type:String}),s("design:type",String)],at.prototype,"type",void 0),n([L({type:String}),s("design:type",String)],at.prototype,"icon",void 0),n([L({type:String}),s("design:type",String)],at.prototype,"message",void 0),n([L({type:Boolean}),s("design:type",Boolean)],at.prototype,"open",void 0),at=n([a("randstad-notice")],at);let lt=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar",this.isFooterCustom=!1,this.isPrimaryLoader=!1,this.isPrimaryDisabled=!1,this.modalWidth="500px",this.modalHeight="80dvh",this.maxHeight="90dvh",this.hideFooter=!1,this.scrollable=!1,this.hasDropdownOpen=!1,this.hasCalendarOpen=!1,this.handleDropdownOpen=t=>{const e=t.detail;e&&"boolean"==typeof e.open?this.hasDropdownOpen=e.open:this.hasDropdownOpen=!0},this.handleCalendarOpen=t=>{const e=t.detail;e&&"boolean"==typeof e.open?this.hasCalendarOpen=e.open:this.hasCalendarOpen=!0},this.setScrollableMode=()=>{this.scrollable=window.innerWidth>940}}static{this.styles=[J,o`
@@ -1734,6 +1753,12 @@ function V(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1734
1753
  background-color: transparent;
1735
1754
  }
1736
1755
  }
1756
+
1757
+ @media (max-width:500px){
1758
+ .modal-body {
1759
+ padding: 16px;
1760
+ }
1761
+ }
1737
1762
  `]}closeModal(){this.dispatchEvent(new CustomEvent("modal-close"))}connectedCallback(){super.connectedCallback(),this.setScrollableMode(),window.addEventListener("resize",this.setScrollableMode),this.addEventListener("dropdown-toggle",this.handleDropdownOpen),this.addEventListener("calendar-toggle",this.handleDropdownOpen),this.addEventListener("dropdown-toggle-calendar",this.handleCalendarOpen)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.setScrollableMode),this.removeEventListener("dropdown-toggle",this.handleDropdownOpen),this.removeEventListener("calendar-toggle",this.handleDropdownOpen),this.removeEventListener("dropdown-toggle-calendar",this.handleCalendarOpen)}getFooterClass(){return!this.isFooterCustom||this.showPrimaryButton||this.showSecondaryButton?this.showPrimaryButton&&this.showSecondaryButton?"two-buttons":"one-button":"footer-custom"}render(){return e`
1738
1763
  <div class="overlay" role="dialog" aria-modal="true">
1739
1764
  <div class="modal" style="--modal-width: ${this.modalWidth}; --modal-height: ${this.modalHeight}; --modal-max-height: ${this.maxHeight};">