@ctrliq/quantic-components 1.60.1 → 1.61.0

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.
@@ -32740,7 +32740,7 @@ const{I:Ze}=re,Ge=()=>document.createComment(""),Ne=(e,t,i)=>{const n=e._$AA.par
32740
32740
  );
32741
32741
  color: var(--quantic-text-tertiary);
32742
32742
  }
32743
- `,t([Le({type:"string",default:"",reflect:!0,description:"Currently selected value submitted with the form."})],e.Combobox.prototype,"value",void 0),t([Le({type:"string",description:"Name submitted with form data."})],e.Combobox.prototype,"name",void 0),t([Le({type:"string",description:"Placeholder shown when no option is selected."})],e.Combobox.prototype,"placeholder",void 0),t([Le({type:"ComboboxOption[]",default:"[]",description:"Options to display. Each item must have a label (display text) and value (form value). Set this prop reactively to implement async/server-side filtering."})],e.Combobox.prototype,"options",void 0),t([Le({type:"ComboboxSize",options:Object.values(Oi),default:Oi.Medium,description:"Controls padding and font size."})],e.Combobox.prototype,"size",void 0),t([Le({type:"boolean",default:"false",reflect:!0,description:"Prevents interaction."})],e.Combobox.prototype,"disabled",void 0),t([Le({type:"boolean",default:"false",reflect:!0,description:"Marks the field as required for form validation."})],e.Combobox.prototype,"required",void 0),t([Le({type:"boolean",default:"false",reflect:!0,description:"Applies error styling. Set alongside an error message in the parent quantic-combobox-field."})],e.Combobox.prototype,"invalid",void 0),t([Le({type:"string",default:"No results",description:"Text shown in the listbox when no options match the input."})],e.Combobox.prototype,"emptyLabel",void 0),t([Le({type:"(option: ComboboxOption, inputValue: string) => boolean",description:"Custom filter predicate. If omitted, defaults to case-insensitive substring match on option.label."})],e.Combobox.prototype,"filterFn",void 0),t([ve()],e.Combobox.prototype,"_open",void 0),t([ve()],e.Combobox.prototype,"_inputValue",void 0),t([ve()],e.Combobox.prototype,"_activeIndex",void 0),e.Combobox=t([Ie("value-changed",{description:"Fired when the user selects an option from the list.",detail:"{ value: string }"}),Ie("input-changed",{description:"Fired on every keystroke in the text field. Use to drive async filtering by updating the options prop in response.",detail:"{ value: string }"}),Ie("focus",{forwarded:!0}),Ie("blur",{forwarded:!0}),Ce("quantic-combobox")],e.Combobox);const $i=Bi,_i={Small:"sm",Medium:"md",Large:"lg"};e.Badge=class extends fe{constructor(){super(...arguments),this.color=$i.Brand,this.size=_i.Medium,this.rounded=!1,this.icon=!1}render(){const e=Oe({main:!0,[`size--${this.size}`]:!0,[`color--${this.color}`]:!0,icon:this.icon,rounded:this.rounded});return je`
32743
+ `,t([Le({type:"string",default:"",reflect:!0,description:"Currently selected value submitted with the form."})],e.Combobox.prototype,"value",void 0),t([Le({type:"string",description:"Name submitted with form data."})],e.Combobox.prototype,"name",void 0),t([Le({type:"string",description:"Placeholder shown when no option is selected."})],e.Combobox.prototype,"placeholder",void 0),t([Le({type:"ComboboxOption[]",default:"[]",description:"Options to display. Each item must have a label (display text) and value (form value). Set this prop reactively to implement async/server-side filtering."})],e.Combobox.prototype,"options",void 0),t([Le({type:"ComboboxSize",options:Object.values(Oi),default:Oi.Medium,description:"Controls padding and font size."})],e.Combobox.prototype,"size",void 0),t([Le({type:"boolean",default:"false",reflect:!0,description:"Prevents interaction."})],e.Combobox.prototype,"disabled",void 0),t([Le({type:"boolean",default:"false",reflect:!0,description:"Marks the field as required for form validation."})],e.Combobox.prototype,"required",void 0),t([Le({type:"boolean",default:"false",reflect:!0,description:"Applies error styling. Set alongside an error message in the parent quantic-combobox-field."})],e.Combobox.prototype,"invalid",void 0),t([Le({type:"string",default:"No results",description:"Text shown in the listbox when no options match the input."})],e.Combobox.prototype,"emptyLabel",void 0),t([Le({type:"(option: ComboboxOption, inputValue: string) => boolean",description:"Custom filter predicate. If omitted, defaults to case-insensitive substring match on option.label."})],e.Combobox.prototype,"filterFn",void 0),t([ve()],e.Combobox.prototype,"_open",void 0),t([ve()],e.Combobox.prototype,"_inputValue",void 0),t([ve()],e.Combobox.prototype,"_activeIndex",void 0),e.Combobox=t([Ie("value-changed",{description:"Fired when the user selects an option from the list.",detail:"{ value: string }"}),Ie("input-changed",{description:"Fired on every keystroke in the text field. Use to drive async filtering by updating the options prop in response.",detail:"{ value: string }"}),Ie("focus",{forwarded:!0}),Ie("blur",{forwarded:!0}),Ce("quantic-combobox")],e.Combobox);const $i=Bi,_i={ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"};e.Badge=class extends fe{constructor(){super(...arguments),this.color=$i.Brand,this.size=_i.Medium,this.rounded=!1,this.icon=!1}render(){const e=Oe({main:!0,[`size--${this.size}`]:!0,[`color--${this.color}`]:!0,icon:this.icon,rounded:this.rounded});return je`
32744
32744
  <div class=${e}>
32745
32745
  <slot name="before" data-description="Content before the label (e.g. icon)."></slot>
32746
32746
  <slot data-description="Badge label text or icon."></slot>
@@ -32765,6 +32765,11 @@ const{I:Ze}=re,Ge=()=>document.createComment(""),Ne=(e,t,i)=>{const n=e._$AA.par
32765
32765
  border-radius: var(--quantic-radius-sm);
32766
32766
  }
32767
32767
 
32768
+ .size--xs {
32769
+ padding: 0 var(--quantic-spacing-1);
32770
+ font-size: var(--quantic-font-size-body-xs);
32771
+ }
32772
+
32768
32773
  .size--sm {
32769
32774
  padding: var(--quantic-spacing-0-5) var(--quantic-spacing-1-5);
32770
32775
  font-size: var(--quantic-font-size-body-xs);
@@ -32791,6 +32796,11 @@ const{I:Ze}=re,Ge=()=>document.createComment(""),Ne=(e,t,i)=>{const n=e._$AA.par
32791
32796
  line-height: 100%;
32792
32797
  }
32793
32798
 
32799
+ .icon.size--xs {
32800
+ width: calc(var(--quantic-line-height-body-xs) + 2px);
32801
+ height: calc(var(--quantic-line-height-body-xs) + 2px);
32802
+ }
32803
+
32794
32804
  .icon.size--sm {
32795
32805
  width: calc(var(--quantic-line-height-body-xs) + 4px);
32796
32806
  height: calc(var(--quantic-line-height-body-xs) + 4px);