import{j as o}from"./jsx-runtime-CnH95YSl.js";import{f as A}from"./index-BJMTVygn.js";import{O as B}from"./OdysseyStorybookThemeDecorator-BuDiOG2V.js";import{M}from"./DataFilters-BnT_U3-o.js";import{M as F}from"./Box-1mvP3NLW.js";import{M as l}from"./Button-BEA5U6Tg.js";import{M as j}from"./Bug-CQIUmZ-N.js";import{M as D}from"./Settings-2rTKyez8.js";const I={component:M,decorators:[B],argTypes:{onChangeSearch:{description:"",table:{type:{summary:"(value: string) => void"}}},onChangeFilters:{description:"",table:{type:{summary:"(filters: Array<DataFilter>) => void"}}},hasSearchSubmitButton:{control:"boolean",description:"",table:{type:{summary:"boolean"}}},searchDelayTime:{control:"number",description:"",table:{type:{summary:"number"}}},defaultSearchTerm:{control:"text",description:"",table:{type:{summary:"string"}}},additionalActions:{description:"",table:{type:{summary:"ReactNode"}}},filters:{description:"",table:{type:{summary:"Array<DataFilter>"}}}},args:{onChangeFilters:A()}},i=[{id:"text-filter",label:"Text filter",variant:"text"},{id:"autocomplete-filter",label:"Autocomplete filter",variant:"autocomplete",options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}]},{id:"number-filter",label:"Number filter",variant:"range"},{id:"checkbox-filter",label:"Checkbox filter",variant:"multi-select",options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}]},{id:"radio-filter",label:"Radio filter",variant:"select",options:[{label:"Option 1",value:"option1"},{label:"Option 2",value:"option2"},{label:"Option 3",value:"option3"}]}],a={args:{filters:i,onChangeSearch:e=>console.log(e)}},t={args:{filters:i,onChangeSearch:void 0}},r={args:{filters:[],onChangeSearch:e=>console.log(e)}},n={args:{filters:[],hasSearchSubmitButton:!0,onChangeSearch:e=>console.log(e)}},s={args:{filters:i,onChangeSearch:e=>console.log(e),additionalActions:o.jsxs(F,{children:[o.jsx(l,{endIcon:o.jsx(j,{}),label:"Another button",variant:"secondary"}),o.jsx(l,{ariaLabel:"Settings",endIcon:o.jsx(D,{}),variant:"secondary"})]})}};var c,m,u;a.parameters={...a.parameters,docs:{...(c=a.parameters)==null?void 0:c.docs,source:{originalSource:`{
  args: {
    filters: demoFilters,
    onChangeSearch: value => console.log(value)
  }
}`,...(u=(m=a.parameters)==null?void 0:m.docs)==null?void 0:u.source}}};var p,d,g;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`{
  args: {
    filters: demoFilters,
    onChangeSearch: undefined
  }
}`,...(g=(d=t.parameters)==null?void 0:d.docs)==null?void 0:g.source}}};var b,h,S;r.parameters={...r.parameters,docs:{...(b=r.parameters)==null?void 0:b.docs,source:{originalSource:`{
  args: {
    filters: [],
    onChangeSearch: value => console.log(value)
  }
}`,...(S=(h=r.parameters)==null?void 0:h.docs)==null?void 0:S.source}}};var f,v,y;n.parameters={...n.parameters,docs:{...(f=n.parameters)==null?void 0:f.docs,source:{originalSource:`{
  args: {
    filters: [],
    hasSearchSubmitButton: true,
    onChangeSearch: value => console.log(value)
  }
}`,...(y=(v=n.parameters)==null?void 0:v.docs)==null?void 0:y.source}}};var x,O,C;s.parameters={...s.parameters,docs:{...(x=s.parameters)==null?void 0:x.docs,source:{originalSource:`{
  args: {
    filters: demoFilters,
    onChangeSearch: value => console.log(value),
    additionalActions: <Box>
        <Button endIcon={<BugIcon />} label="Another button" variant="secondary" />
        <Button ariaLabel="Settings" endIcon={<SettingsIcon />} variant="secondary" />
      </Box>
  }
}`,...(C=(O=s.parameters)==null?void 0:O.docs)==null?void 0:C.source}}};const z=["Default","NoSearch","JustSearch","SearchOnSubmit","AdditionalActions"],P=Object.freeze(Object.defineProperty({__proto__:null,AdditionalActions:s,Default:a,JustSearch:r,NoSearch:t,SearchOnSubmit:n,__namedExportsOrder:z,default:I},Symbol.toStringTag,{value:"Module"}));export{s as A,P as D,r as J,t as N,n as S};
