@randstad-uca/design-system 1.0.114 → 1.0.115

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.
@@ -3,6 +3,7 @@ import '../components/Button';
3
3
  import '../components/Icon';
4
4
  interface PopupAction {
5
5
  icon: string;
6
+ iconColor: string;
6
7
  label: string;
7
8
  value: string;
8
9
  }
@@ -10,6 +11,7 @@ export declare class CustomPopup extends LitElement {
10
11
  open: boolean;
11
12
  type: 'default' | 'stacked' | 'other';
12
13
  icon: string;
14
+ iconColor: string;
13
15
  title: string;
14
16
  description: string;
15
17
  width: string;
package/dist/index.js CHANGED
@@ -1797,7 +1797,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1797
1797
  `}
1798
1798
  </div>
1799
1799
  </div>
1800
- `}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],lt.prototype,"open",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"title",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"subtitle",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showNotice",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"noticeType",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeMessage",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeIcon",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showPrimaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"primaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showSecondaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"secondaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isFooterCustom",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryLoader",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryDisabled",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalWidth",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalHeight",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"maxHeight",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"hideFooter",void 0),n([B(),s("design:type",Object)],lt.prototype,"scrollable",void 0),n([B(),s("design:type",Object)],lt.prototype,"hasDropdownOpen",void 0),n([B(),s("design:type",Object)],lt.prototype,"hasCalendarOpen",void 0),lt=n([a("custom-modal")],lt);let dt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="",this.description="",this.width="400px",this.height="",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.closeOnOutsideClick=!1,this.stackedActions=[],this._onBackgroundClick=t=>{if(!this.closeOnOutsideClick)return;const e=t.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!e.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=o`
1800
+ `}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],lt.prototype,"open",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"title",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"subtitle",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showNotice",void 0),n([L({type:String}),s("design:type",String)],lt.prototype,"noticeType",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeMessage",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"noticeIcon",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showPrimaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"primaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"showSecondaryButton",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"secondaryButtonLabel",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isFooterCustom",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryLoader",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"isPrimaryDisabled",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalWidth",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"modalHeight",void 0),n([L({type:String}),s("design:type",Object)],lt.prototype,"maxHeight",void 0),n([L({type:Boolean}),s("design:type",Object)],lt.prototype,"hideFooter",void 0),n([B(),s("design:type",Object)],lt.prototype,"scrollable",void 0),n([B(),s("design:type",Object)],lt.prototype,"hasDropdownOpen",void 0),n([B(),s("design:type",Object)],lt.prototype,"hasCalendarOpen",void 0),lt=n([a("custom-modal")],lt);let dt=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.iconColor="var(--primary-color)",this.title="",this.description="",this.width="400px",this.height="",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No",this.closeOnOutsideClick=!1,this.stackedActions=[],this._onBackgroundClick=t=>{if(!this.closeOnOutsideClick)return;const e=t.composedPath(),i=this.renderRoot.querySelector(".popup");i&&!e.includes(i)&&(this.dispatchEvent(new CustomEvent("popup-close",{detail:null})),this.open=!1)}}static{this.styles=o`
1801
1801
  :host {
1802
1802
  display: none;
1803
1803
  position: fixed;
@@ -1859,7 +1859,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1859
1859
  display: flex;
1860
1860
  flex-direction: column;
1861
1861
  gap: 8px;
1862
- align-items: center;
1862
+ align-items: center;
1863
1863
  }
1864
1864
 
1865
1865
  .popup-title {
@@ -1915,7 +1915,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1915
1915
  .icon-circle {
1916
1916
  width: 32px;
1917
1917
  height: 32px;
1918
- background: var(--primary-color-20, #D3E3F7);
1918
+ background: rgb(from var(--icon-color) r g b / 0.2);
1919
1919
  border-radius: 50%;
1920
1920
  display: flex;
1921
1921
  align-items: center;
@@ -1931,12 +1931,12 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1931
1931
  ${"default"!==this.type?e`aria-labelledby="popup-title"`:i}
1932
1932
  aria-describedby="popup-description"
1933
1933
  >
1934
- ${"stacked"!==this.type&&this.icon?e`<randstad-icon name=${this.icon} size="56px" color="#D3E3F7" />`:i}
1934
+ ${"stacked"!==this.type&&this.icon?e`<randstad-icon name=${this.icon} size="56px" color=${this.iconColor} />`:i}
1935
1935
 
1936
1936
  <div class="popup-content">
1937
1937
  ${"default"===this.type?e`
1938
1938
  ${this.title?e`<h2 id="popup-title" class="popup-title">${this.title}</h2>`:i}
1939
-
1939
+
1940
1940
  ${this.description?e`<p id="popup-description" class="popup-description">${this.description}</p>`:i}
1941
1941
 
1942
1942
  <div class="buttons-container">
@@ -1954,11 +1954,11 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1954
1954
  class="action-item"
1955
1955
  @click=${()=>this.closePopup(t.value)}
1956
1956
  >
1957
- <div class="icon-circle">
1957
+ <div class="icon-circle" style="--icon-color:${t.iconColor}">
1958
1958
  <randstad-icon
1959
1959
  name=${t.icon}
1960
1960
  size="24px"
1961
- .color=${"var( --primary-color )"}
1961
+ color=${t.iconColor}
1962
1962
  >
1963
1963
  </randstad-icon>
1964
1964
  </div>
@@ -1969,7 +1969,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1969
1969
  `:e`
1970
1970
  <div class="titles-container">
1971
1971
  <h2 id="popup-title" class="popup-title">${this.title}</h2>
1972
-
1972
+
1973
1973
  ${this.description?e`<p id="popup-description" class="popup-description">${this.description}</p>`:i}
1974
1974
  </div>
1975
1975
 
@@ -1993,7 +1993,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
1993
1993
  `}
1994
1994
  </div>
1995
1995
  </div>
1996
- `}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],dt.prototype,"open",void 0),n([L({type:String}),s("design:type",String)],dt.prototype,"type",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"icon",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"title",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"description",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"width",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"height",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"buttonText",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"confirmText",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"cancelText",void 0),n([L({type:Boolean}),s("design:type",Object)],dt.prototype,"closeOnOutsideClick",void 0),n([L({type:Array}),s("design:type",Array)],dt.prototype,"stackedActions",void 0),dt=n([a("custom-popup")],dt);let ct=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
1996
+ `}};n([L({type:Boolean,reflect:!0}),s("design:type",Object)],dt.prototype,"open",void 0),n([L({type:String}),s("design:type",String)],dt.prototype,"type",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"icon",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"iconColor",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"title",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"description",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"width",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"height",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"buttonText",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"confirmText",void 0),n([L({type:String}),s("design:type",Object)],dt.prototype,"cancelText",void 0),n([L({type:Boolean}),s("design:type",Object)],dt.prototype,"closeOnOutsideClick",void 0),n([L({type:Array}),s("design:type",Array)],dt.prototype,"stackedActions",void 0),dt=n([a("custom-popup")],dt);let ct=class extends t{constructor(){super(...arguments),this.value=0,this.max=5}static{this.styles=o`
1997
1997
  :host {
1998
1998
  display: inline-block;
1999
1999
  width: 64px;