@randstad-uca/design-system 1.0.121 → 1.0.122

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
@@ -3382,6 +3382,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3382
3382
  :host {
3383
3383
  display: block;
3384
3384
  font-family: 'Graphik', sans-serif;
3385
+ -webkit-tap-highlight-color: transparent;
3385
3386
  }
3386
3387
 
3387
3388
  .container {
@@ -3395,12 +3396,11 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3395
3396
  align-items: stretch;
3396
3397
  flex: 0 1 auto;
3397
3398
  min-width: 0;
3398
- max-width: 386px;
3399
3399
  height: 49px;
3400
3400
  padding: 4px;
3401
3401
  box-sizing: border-box;
3402
3402
  border-radius: 9999px;
3403
- border: 1px solid var(--secondary-color-20, #CFD1D9);
3403
+ border: 1px solid var(--secondary-color-10, #E7E8EC);
3404
3404
  background-color: var(--white, #FFFFFF);
3405
3405
  overflow: hidden;
3406
3406
  }
@@ -3416,7 +3416,7 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3416
3416
  justify-content: center;
3417
3417
  gap: 4px;
3418
3418
  flex: 0 0 auto;
3419
- padding: 0 16px;
3419
+ padding: 8px 24px;
3420
3420
  border: none;
3421
3421
  border-radius: 9999px;
3422
3422
  background: transparent;
@@ -3427,10 +3427,11 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3427
3427
  }
3428
3428
 
3429
3429
  .item:hover:not(:disabled):not(.selected) {
3430
- background-color: var(--white, #FFFFFF);
3430
+ background-color: var(--randstad-blue-10, #E8F1FB);
3431
3431
  }
3432
3432
 
3433
3433
  .item:focus-visible {
3434
+ background-color: var(--primary-color-20, #D3E3F7);
3434
3435
  outline: 2px solid var(--primary-color, #2175D9);
3435
3436
  outline-offset: -2px;
3436
3437
  }
@@ -3441,7 +3442,13 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3441
3442
  }
3442
3443
 
3443
3444
  .item.selected:hover:not(:disabled) {
3444
- background-color: var(--primary-color, #2175D9);
3445
+ background-color: var(--primary-button-hover, #175197);
3446
+ }
3447
+
3448
+ .item.selected:focus-visible {
3449
+ background-color: var(--primary-button-active, #124077);
3450
+ outline: 2px solid var(--white, #FFFFFF);
3451
+ outline-offset: -2px;
3445
3452
  }
3446
3453
 
3447
3454
  .item:disabled {
@@ -3475,6 +3482,34 @@ function T(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
3475
3482
  randstad-button::part(button) {
3476
3483
  box-shadow: none !important;
3477
3484
  border: 1px solid var(--secondary-color-10, #E7E8EC);
3485
+ -webkit-tap-highlight-color: transparent;
3486
+ }
3487
+
3488
+ randstad-button::part(button):hover:not(:disabled) {
3489
+ border-color: var(--primary-color, #2175D9);
3490
+ }
3491
+
3492
+ randstad-button::part(button):focus-visible {
3493
+ background-color: var(--primary-color-20, #D3E3F7);
3494
+ border-color: var(--primary-color, #2175D9);
3495
+ }
3496
+
3497
+ @media (max-width: 940px) {
3498
+ .items {
3499
+ width: 100%;
3500
+ flex: 1 1 auto;
3501
+ min-width: 0;
3502
+ height: 39px;
3503
+ }
3504
+ .item {
3505
+ ${P}
3506
+ padding: 8px 4px;
3507
+ flex: 1 1 0;
3508
+ }
3509
+ randstad-button::part(button) {
3510
+ width: 40px !important;
3511
+ height: 40px !important;
3512
+ }
3478
3513
  }
3479
3514
  `}willUpdate(t){const e=t.has("items"),i=t.has("selectedValue");if(e&&(this.validatedItems=_t(this.items)),e||i){const t=i?this.selectedValue:this.internalSelected??void 0;this.internalSelected=St(this.validatedItems,t)??null}}firstUpdated(t){super.firstUpdated(t),this.measureCounts(),this.observeItems()}connectedCallback(){super.connectedCallback(),this.hasUpdated&&(this.measureCounts(),this.observeItems())}updated(t){if(super.updated(t),null!==this.pendingFocusValue){const t=this.pendingFocusValue;this.pendingFocusValue=null,this.focusItemByValue(t)}this.measureCounts()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.resizeObserver=null}observeItems(){if("undefined"==typeof ResizeObserver||null!==this.resizeObserver)return;const t=this.renderRoot.querySelector(".items");if(null===t)return;this.resizeObserver=new ResizeObserver((()=>this.measureCounts())),this.resizeObserver.observe(t);const e=this.renderRoot.querySelector(".container");null!==e&&this.resizeObserver.observe(e)}measureCounts(){const t=this.renderRoot.querySelector(".items");null!==t&&(t.removeAttribute("data-counts-hidden"),this.countsHidden=Ot(t.scrollWidth,t.clientWidth),this.countsHidden&&t.setAttribute("data-counts-hidden",""))}focusItemByValue(t){const e=Array.from(this.renderRoot.querySelectorAll(".item"));for(const i of e)if(i.dataset.value===t)return void i.focus()}selectItem(t){this.disabled||!0===t.disabled||this.internalSelected!==t.value&&(this.internalSelected=t.value,this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:t.value,item:t},bubbles:!0,composed:!0})))}handleItemKeydown(t,e){if(this.disabled||!0===e.disabled)return;const i=t.key;if("Enter"===i||" "===i)return t.preventDefault(),void this.selectItem(e);const o=this.validatedItems.filter((t=>!0!==t.disabled));if(0===o.length)return;const n=o.findIndex((t=>t.value===e.value));let r;switch(i){case"ArrowRight":case"ArrowDown":r=n<0?0:(n+1)%o.length;break;case"ArrowLeft":case"ArrowUp":r=n<0?o.length-1:(n-1+o.length)%o.length;break;case"Home":r=0;break;case"End":r=o.length-1;break;default:return}t.preventDefault();const s=o[r];if(void 0===s)return;const a=this.internalSelected!==s.value;this.selectItem(s),a&&(this.pendingFocusValue=s.value)}renderItem(t){const o=this.internalSelected===t.value,r=this.disabled||!0===t.disabled,s=Mt(t.count);return e`
3480
3515
  <button