"use strict";(self.webpackChunk_grafana_ui=self.webpackChunk_grafana_ui||[]).push([[3234],{"./src/components/Icon/Icon.story.tsx":function(M,y,e){e.r(y),e.d(y,{IconsOverview:function(){return C},default:function(){return B}});var t=e("../../node_modules/@emotion/css/dist/emotion-css.esm.js"),a=e("../../node_modules/react/index.js"),b=e("../grafana-data/src/types/icon.ts"),u=e("./src/components/Icon/Icon.tsx"),d=e("./src/components/Forms/Field.tsx"),m=e("./src/components/Input/Input.tsx"),p=e("./src/themes/ThemeContext.tsx"),x=e("./src/types/icon.ts"),o=e("../../node_modules/react/jsx-runtime.js"),E=e("../../node_modules/@mdx-js/react/lib/index.js"),I=e("../../node_modules/@storybook/blocks/dist/index.mjs");function S(_){const s=Object.assign({h1:"h1",p:"p",a:"a",h3:"h3",code:"code",pre:"pre"},(0,E.RP)(),_.components);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(I.W8,{title:"MDX|Icon",component:u.I}),`
`,(0,o.jsx)(s.h1,{id:"icon",children:"Icon"}),`
`,(0,o.jsxs)(s.p,{children:["Grafana's wrapper component over ",(0,o.jsx)(s.a,{href:"https://fontawesome.com/",target:"_blank",rel:"nofollow noopener noreferrer",children:"Font Awesome"})," and Unicons icons"]}),`
`,(0,o.jsx)(s.h3,{id:"changing-icon-size",children:"Changing icon size"}),`
`,(0,o.jsxs)(s.p,{children:["By default ",(0,o.jsx)(s.code,{children:"Icon"})," has width and height of ",(0,o.jsx)(s.code,{children:"16px"})," and font-size of ",(0,o.jsx)(s.code,{children:"14px"}),". Pass ",(0,o.jsx)(s.code,{children:"className"})," to control icon's size:"]}),`
`,(0,o.jsx)(s.pre,{children:(0,o.jsx)(s.code,{className:"language-jsx",children:`import { css } from '@emotion/css';

<Icon name="check" />;
`})}),`
`,(0,o.jsx)(I.ov,{of:u.I})]})}function w(_={}){const{wrapper:s}=Object.assign({},(0,E.RP)(),_.components);return s?(0,o.jsx)(s,Object.assign({},_,{children:(0,o.jsx)(S,_)})):S(_)}var l=w,v=Object.defineProperty,c=Object.defineProperties,r=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,f=(_,s,P)=>s in _?v(_,s,{enumerable:!0,configurable:!0,writable:!0,value:P}):_[s]=P,h=(_,s)=>{for(var P in s||(s={}))g.call(s,P)&&f(_,P,s[P]);if(i)for(var P of i(s))n.call(s,P)&&f(_,P,s[P]);return _},O=(_,s)=>c(_,r(s)),R,V,T;const A={title:"Docs overview/Icon",component:u.I,parameters:{options:{showPanel:!1},docs:{page:l}}},N=({name:_})=>{const s=(0,p.$j)(),P=s.colors.border.medium;return a.createElement("div",{className:(0,t.AH)({width:"150px",padding:"12px",border:`1px solid ${P}`,textAlign:"center","&:hover":{background:P}})},a.createElement(u.I,{name:_}),a.createElement("div",{className:(0,t.AH)({paddingTop:"16px",wordBreak:"break-all",fontFamily:s.typography.fontFamilyMonospace,fontSize:s.typography.size.xs})},_))},D=[...(0,x.GO)()];D.sort((_,s)=>_.localeCompare(s));const C=()=>{const[_,s]=(0,a.useState)(""),P=L=>{s(L.target.value)};return a.createElement("div",{className:(0,t.AH)({display:"flex",flexDirection:"column",height:"100%",overflow:"auto",width:"100%"})},a.createElement(d.D,{className:(0,t.AH)({width:"300px"})},a.createElement(m.p,{onChange:P,placeholder:"Search icons by name"})),a.createElement("div",{className:(0,t.AH)({display:"flex",flexWrap:"wrap"})},D.filter(L=>L.includes(_)).map(L=>a.createElement(N,{name:(0,b.Uo)(L),key:L}))))};var B=A;C.parameters=O(h({},C.parameters),{docs:O(h({},(R=C.parameters)==null?void 0:R.docs),{source:h({originalSource:`() => {
  const [filter, setFilter] = useState('');
  const searchIcon = (event: ChangeEvent<HTMLInputElement>) => {
    setFilter(event.target.value);
  };
  return <div className={css({
    display: 'flex',
    flexDirection: 'column',
    height: '100%',
    overflow: 'auto',
    width: '100%'
  })}>
      <Field className={css({
      width: '300px'
    })}>
        <Input onChange={searchIcon} placeholder="Search icons by name" />
      </Field>
      <div className={css({
      display: 'flex',
      flexWrap: 'wrap'
    })}>
        {icons.filter(val => val.includes(filter)).map(i => {
        return <IconWrapper name={toIconName(i)!} key={i} />;
      })}
      </div>
    </div>;
}`},(T=(V=C.parameters)==null?void 0:V.docs)==null?void 0:T.source)})})},"../grafana-data/src/types/dataFrame.ts":function(M,y,e){e.d(y,{Bc:function(){return a},LE:function(){return b},PU:function(){return t}});var t=(d=>(d.time="time",d.number="number",d.string="string",d.boolean="boolean",d.trace="trace",d.geo="geo",d.enum="enum",d.other="other",d.frame="frame",d.nestedFrames="nestedFrames",d))(t||{});const a="Value",b="Time",u="Metric"},"../grafana-data/src/types/icon.ts":function(M,y,e){e.d(y,{Uo:function(){return b},az:function(){return t},n6:function(){return a}});const t={google:!0,microsoft:!0,github:!0,gitlab:!0,okta:!0,discord:!0,hipchat:!0,amazon:!0,"google-hangouts-alt":!0,pagerduty:!0,line:!0,anchor:!0,"adjust-circle":!0,"angle-double-down":!0,"angle-double-right":!0,"angle-double-up":!0,"angle-down":!0,"angle-left":!0,"angle-right":!0,"angle-up":!0,"align-left":!0,"align-right":!0,"application-observability":!0,apps:!0,"archive-alt":!0,arrow:!0,"arrow-down":!0,"arrow-from-right":!0,"arrow-left":!0,"arrow-random":!0,"arrow-right":!0,"arrow-to-right":!0,"arrow-up":!0,"arrows-h":!0,"arrows-v":!0,asserts:!0,"expand-arrows":!0,at:!0,ai:!0,backward:!0,bars:!0,bell:!0,"bell-slash":!0,bolt:!0,book:!0,bookmark:!0,"book-open":!0,"brackets-curly":!0,bug:!0,building:!0,"calculator-alt":!0,"calendar-alt":!0,"calendar-slash":!0,camera:!0,capture:!0,"channel-add":!0,"chart-line":!0,check:!0,"check-circle":!0,"check-square":!0,circle:!0,"circle-mono":!0,"clipboard-alt":!0,"clock-nine":!0,cloud:!0,"cloud-download":!0,"cloud-upload":!0,"code-branch":!0,cog:!0,columns:!0,"comment-alt":!0,"comment-alt-message":!0,"comment-alt-share":!0,"comments-alt":!0,compass:!0,copy:!0,"corner-down-right-alt":!0,"create-dashboard":!0,"credit-card":!0,crosshair:!0,cube:!0,dashboard:!0,database:!0,"dice-three":!0,docker:!0,"document-info":!0,"download-alt":!0,draggabledots:!0,edit:!0,"ellipsis-v":!0,envelope:!0,"exchange-alt":!0,"exclamation-triangle":!0,"exclamation-circle":!0,"external-link-alt":!0,eye:!0,"eye-slash":!0,"ellipsis-h":!0,"fa fa-spinner":!0,favorite:!0,"file-alt":!0,"file-blank":!0,"file-copy-alt":!0,"file-download":!0,"file-edit-alt":!0,"file-landscape-alt":!0,filter:!0,flip:!0,folder:!0,font:!0,fire:!0,"folder-open":!0,"folder-plus":!0,"folder-upload":!0,forward:!0,"frontend-observability":!0,"gf-bar-alignment-after":!0,"gf-bar-alignment-before":!0,"gf-bar-alignment-center":!0,"gf-glue":!0,"gf-grid":!0,"gf-interpolation-linear":!0,"gf-interpolation-smooth":!0,"gf-interpolation-step-after":!0,"gf-interpolation-step-before":!0,"gf-landscape":!0,"gf-layout-simple":!0,"gf-logs":!0,"gf-ml":!0,"gf-movepane-left":!0,"gf-movepane-right":!0,"gf-portrait":!0,"gf-service-account":!0,"gf-show-context":!0,"gf-pin":!0,"gf-prometheus":!0,"gf-traces":!0,globe:!0,grafana:!0,"graph-bar":!0,heart:!0,"heart-rate":!0,"heart-break":!0,history:!0,"history-alt":!0,home:!0,"home-alt":!0,"horizontal-align-center":!0,"horizontal-align-left":!0,"horizontal-align-right":!0,hourglass:!0,import:!0,info:!0,"info-circle":!0,k6:!0,"key-skeleton-alt":!0,keyboard:!0,"layer-group":!0,"layers-alt":!0,"library-panel":!0,"line-alt":!0,link:!0,"list-ui-alt":!0,"list-ul":!0,"list-ol":!0,lock:!0,"map-marker":!0,"map-marker-plus":!0,"map-marker-minus":!0,message:!0,minus:!0,"minus-circle":!0,"mobile-android":!0,monitor:!0,palette:!0,"panel-add":!0,"pathfinder-unite":!0,pause:!0,pen:!0,percentage:!0,play:!0,plug:!0,plus:!0,"plus-circle":!0,"plus-square":!0,power:!0,"presentation-play":!0,process:!0,"question-circle":!0,"record-audio":!0,repeat:!0,rocket:!0,"ruler-combined":!0,save:!0,search:!0,"search-minus":!0,"search-plus":!0,"share-alt":!0,shield:!0,"shield-exclamation":!0,signal:!0,signin:!0,signout:!0,sitemap:!0,slack:!0,"sliders-v-alt":!0,spinner:!0,"sort-amount-down":!0,"sort-amount-up":!0,"square-shape":!0,star:!0,"step-backward":!0,stopwatch:!0,"stopwatch-slash":!0,sync:!0,"sync-slash":!0,table:!0,"tag-alt":!0,"telegram-alt":!0,"text-fields":!0,"thumbs-up":!0,times:!0,"times-circle":!0,"toggle-on":!0,"toggle-off":!0,"trash-alt":!0,unarchive:!0,unlock:!0,upload:!0,user:!0,"users-alt":!0,"user-arrows":!0,"vertical-align-bottom":!0,"vertical-align-center":!0,"vertical-align-top":!0,"web-section-alt":!0,"wrap-text":!0,rss:!0,x:!0};function a(u){return!u||typeof u!="string"?!1:u in t}function b(u){if(a(u))return u}},"./src/components/Forms/Field.tsx":function(M,y,e){e.d(y,{D:function(){return l}});var t=e("../../node_modules/@emotion/css/dist/emotion-css.esm.js"),a=e("../../node_modules/react/index.js"),b=e("./src/themes/ThemeContext.tsx"),u=e("./src/utils/reactUtils.ts"),d=e("./src/components/Forms/FieldValidationMessage.tsx"),m=e("./src/components/Forms/Label.tsx"),p=Object.defineProperty,x=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,I=(r,i,g)=>i in r?p(r,i,{enumerable:!0,configurable:!0,writable:!0,value:g}):r[i]=g,S=(r,i)=>{for(var g in i||(i={}))o.call(i,g)&&I(r,g,i[g]);if(x)for(var g of x(i))E.call(i,g)&&I(r,g,i[g]);return r},w=(r,i)=>{var g={};for(var n in r)o.call(r,n)&&i.indexOf(n)<0&&(g[n]=r[n]);if(r!=null&&x)for(var n of x(r))i.indexOf(n)<0&&E.call(r,n)&&(g[n]=r[n]);return g};const l=a.forwardRef((r,i)=>{var g=r,{label:n,description:f,horizontal:h,invalid:O,loading:R,disabled:V,required:T,error:A,children:N,className:D,validationMessageHorizontalOverflow:C,htmlFor:B}=g,_=w(g,["label","description","horizontal","invalid","loading","disabled","required","error","children","className","validationMessageHorizontalOverflow","htmlFor"]);const s=(0,b.of)(c),P=B??(0,u.e)(N),L=typeof n=="string"?a.createElement(m.J,{htmlFor:P,description:f},`${n}${T?" *":""}`):n,z=v({invalid:O,disabled:V,loading:R});return a.createElement("div",S({className:(0,t.cx)(s.field,h&&s.fieldHorizontal,D)},_),L,a.createElement("div",null,a.createElement("div",{ref:i},a.cloneElement(N,z)),O&&A&&!h&&a.createElement("div",{className:(0,t.cx)(s.fieldValidationWrapper,{[s.validationMessageHorizontalOverflow]:!!C})},a.createElement(d.P,null,A))),O&&A&&h&&a.createElement("div",{className:(0,t.cx)(s.fieldValidationWrapper,s.fieldValidationWrapperHorizontal,{[s.validationMessageHorizontalOverflow]:!!C})},a.createElement(d.P,null,A)))});l.displayName="Field";function v(r){for(const i in r)r[i]===void 0&&delete r[i];return r}const c=r=>({field:(0,t.AH)({display:"flex",flexDirection:"column",marginBottom:r.spacing(2)}),fieldHorizontal:(0,t.AH)({flexDirection:"row",justifyContent:"space-between",flexWrap:"wrap"}),fieldValidationWrapper:(0,t.AH)({marginTop:r.spacing(.5)}),fieldValidationWrapperHorizontal:(0,t.AH)({flex:"1 1 100%"}),validationMessageHorizontalOverflow:(0,t.AH)({width:0,overflowX:"visible","& > *":{whiteSpace:"nowrap"}})});try{l.displayName="Field",l.__docgenInfo={description:"",displayName:"Field",props:{children:{defaultValue:null,description:"Form input element, i.e Input or Switch",name:"children",required:!0,type:{name:"ReactElement<any, string | JSXElementConstructor<any>>"}},label:{defaultValue:null,description:"Label for the field",name:"label",required:!1,type:{name:"ReactNode"}},description:{defaultValue:null,description:"Description of the field",name:"description",required:!1,type:{name:"ReactNode"}},invalid:{defaultValue:null,description:"Indicates if field is in invalid state",name:"invalid",required:!1,type:{name:"boolean"}},loading:{defaultValue:null,description:"Indicates if field is in loading state",name:"loading",required:!1,type:{name:"boolean"}},disabled:{defaultValue:null,description:"Indicates if field is disabled",name:"disabled",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"Indicates if field is required",name:"required",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"Error message to display",name:"error",required:!1,type:{name:"ReactNode"}},horizontal:{defaultValue:null,description:"Indicates horizontal layout of the field",name:"horizontal",required:!1,type:{name:"boolean"}},validationMessageHorizontalOverflow:{defaultValue:null,description:"make validation message overflow horizontally. Prevents pushing out adjacent inline components",name:"validationMessageHorizontalOverflow",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},htmlFor:{defaultValue:null,description:"A unique id that associates the label of the Field component with the control with the unique id.\nIf the `htmlFor` property is missing the `htmlFor` will be inferred from the `id` or `inputId` property of the first child.\nhttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/label#attr-for",name:"htmlFor",required:!1,type:{name:"string"}}}},typeof STORYBOOK_REACT_CLASSES<"u"&&(STORYBOOK_REACT_CLASSES["src/components/Forms/Field.tsx#Field"]={docgenInfo:l.__docgenInfo,name:"Field",path:"src/components/Forms/Field.tsx#Field"})}catch{}},"./src/components/Forms/FieldValidationMessage.tsx":function(M,y,e){e.d(y,{P:function(){return d}});var t=e("../../node_modules/@emotion/css/dist/emotion-css.esm.js"),a=e("../../node_modules/react/index.js"),b=e("./src/themes/ThemeContext.tsx"),u=e("./src/components/Icon/Icon.tsx");const d=({children:p,horizontal:x,className:o})=>{const E=(0,b.of)(m),I=(0,t.cx)(x?E.horizontal:E.vertical,o);return a.createElement("div",{role:"alert",className:I},a.createElement(u.I,{className:E.fieldValidationMessageIcon,name:"exclamation-triangle"}),p)},m=p=>{const x=`
      font-size: ${p.typography.size.sm};
      font-weight: ${p.typography.fontWeightMedium};
      padding: ${p.spacing(.5,1)};
      color: ${p.colors.error.contrastText};
      background: ${p.colors.error.main};
      border-radius: ${p.shape.radius.default};
      position: relative;
      display: inline-block;
      align-self: flex-start;

      a {
        color: ${p.colors.error.contrastText};
        text-decoration: underline;
      }

      a:hover {
        text-decoration: none;
      }
    `;return{vertical:(0,t.AH)(x,{margin:p.spacing(.5,0,0,0),"&:before":{content:'""',position:"absolute",left:"9px",top:"-5px",width:0,height:0,borderWidth:"0 4px 5px 4px",borderColor:`transparent transparent ${p.colors.error.main} transparent`,borderStyle:"solid"}}),horizontal:(0,t.AH)(x,{marginLeft:"10px","&:before":{content:'""',position:"absolute",left:"-5px",top:"9px",width:0,height:0,borderWidth:"4px 5px 4px 0",borderColor:"transparent #e02f44 transparent transparent",borderStyle:"solid"}}),fieldValidationMessageIcon:(0,t.AH)({marginRight:p.spacing()})}};try{d.displayName="FieldValidationMessage",d.__docgenInfo={description:"",displayName:"FieldValidationMessage",props:{className:{defaultValue:null,description:"Override component style",name:"className",required:!1,type:{name:"string"}},horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"boolean"}}}},typeof STORYBOOK_REACT_CLASSES<"u"&&(STORYBOOK_REACT_CLASSES["src/components/Forms/FieldValidationMessage.tsx#FieldValidationMessage"]={docgenInfo:d.__docgenInfo,name:"FieldValidationMessage",path:"src/components/Forms/FieldValidationMessage.tsx#FieldValidationMessage"})}catch{}try{m.displayName="getFieldValidationMessageStyles",m.__docgenInfo={description:"",displayName:"getFieldValidationMessageStyles",props:{name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},isDark:{defaultValue:null,description:"",name:"isDark",required:!0,type:{name:"boolean"}},isLight:{defaultValue:null,description:"",name:"isLight",required:!0,type:{name:"boolean"}},colors:{defaultValue:null,description:"",name:"colors",required:!0,type:{name:"ThemeColors"}},breakpoints:{defaultValue:null,description:"",name:"breakpoints",required:!0,type:{name:"ThemeBreakpoints"}},spacing:{defaultValue:null,description:"",name:"spacing",required:!0,type:{name:"ThemeSpacing"}},shape:{defaultValue:null,description:"",name:"shape",required:!0,type:{name:"ThemeShape"}},components:{defaultValue:null,description:"",name:"components",required:!0,type:{name:"ThemeComponents"}},typography:{defaultValue:null,description:"",name:"typography",required:!0,type:{name:"ThemeTypography"}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!0,type:{name:"{ activePanel: number; navbarFixed: number; sidemenu: number; dropdown: number; typeahead: number; tooltip: number; modalBackdrop: number; modal: number; portal: number; }"}},shadows:{defaultValue:null,description:"",name:"shadows",required:!0,type:{name:"ThemeShadows"}},visualization:{defaultValue:null,description:"",name:"visualization",required:!0,type:{name:"ThemeVisualizationColors"}},transitions:{defaultValue:null,description:"",name:"transitions",required:!0,type:{name:"ThemeTransitions"}},v1:{defaultValue:null,description:"@deprecated Will be removed in a future version",name:"v1",required:!0,type:{name:"GrafanaTheme"}},flags:{defaultValue:null,description:"feature flags that might impact component looks",name:"flags",required:!0,type:{name:"{}"}}}},typeof STORYBOOK_REACT_CLASSES<"u"&&(STORYBOOK_REACT_CLASSES["src/components/Forms/FieldValidationMessage.tsx#getFieldValidationMessageStyles"]={docgenInfo:m.__docgenInfo,name:"getFieldValidationMessageStyles",path:"src/components/Forms/FieldValidationMessage.tsx#getFieldValidationMessageStyles"})}catch{}},"./src/components/Forms/Label.tsx":function(M,y,e){e.d(y,{J:function(){return S},f:function(){return w}});var t=e("../../node_modules/@emotion/css/dist/emotion-css.esm.js"),a=e("../../node_modules/react/index.js"),b=e("./src/themes/ThemeContext.tsx"),u=e("./src/components/Icon/Icon.tsx"),d=Object.defineProperty,m=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,o=(l,v,c)=>v in l?d(l,v,{enumerable:!0,configurable:!0,writable:!0,value:c}):l[v]=c,E=(l,v)=>{for(var c in v||(v={}))p.call(v,c)&&o(l,c,v[c]);if(m)for(var c of m(v))x.call(v,c)&&o(l,c,v[c]);return l},I=(l,v)=>{var c={};for(var r in l)p.call(l,r)&&v.indexOf(r)<0&&(c[r]=l[r]);if(l!=null&&m)for(var r of m(l))v.indexOf(r)<0&&x.call(l,r)&&(c[r]=l[r]);return c};const S=l=>{var v=l,{children:c,description:r,className:i,category:g}=v,n=I(v,["children","description","className","category"]);const f=(0,b.of)(w),h=g?.map((O,R)=>a.createElement("span",{className:f.categories,key:`${O}/${R}`},a.createElement("span",null,O),a.createElement(u.I,{name:"angle-right",className:f.chevron})));return a.createElement("div",{className:(0,t.cx)(f.label,i)},a.createElement("label",E({},n),a.createElement("div",{className:f.labelContent},h,c),r&&a.createElement("span",{className:f.description},r)))},w=l=>({label:(0,t.AH)({label:"Label",fontSize:l.typography.size.sm,fontWeight:l.typography.fontWeightMedium,lineHeight:1.25,marginBottom:l.spacing(.5),color:l.colors.text.primary,maxWidth:"480px"}),labelContent:(0,t.AH)({display:"flex",alignItems:"center"}),description:(0,t.AH)({label:"Label-description",color:l.colors.text.secondary,fontSize:l.typography.size.sm,fontWeight:l.typography.fontWeightRegular,marginTop:l.spacing(.25),display:"block"}),categories:(0,t.AH)({label:"Label-categories",display:"inline-flex",alignItems:"center"}),chevron:(0,t.AH)({margin:l.spacing(0,.25)})});try{S.displayName="Label",S.__docgenInfo={description:"",displayName:"Label",props:{description:{defaultValue:null,description:"",name:"description",required:!1,type:{name:"ReactNode"}},category:{defaultValue:null,description:"",name:"category",required:!1,type:{name:"ReactNode[]"}}}},typeof STORYBOOK_REACT_CLASSES<"u"&&(STORYBOOK_REACT_CLASSES["src/components/Forms/Label.tsx#Label"]={docgenInfo:S.__docgenInfo,name:"Label",path:"src/components/Forms/Label.tsx#Label"})}catch{}try{w.displayName="getLabelStyles",w.__docgenInfo={description:"",displayName:"getLabelStyles",props:{name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string"}},isDark:{defaultValue:null,description:"",name:"isDark",required:!0,type:{name:"boolean"}},isLight:{defaultValue:null,description:"",name:"isLight",required:!0,type:{name:"boolean"}},colors:{defaultValue:null,description:"",name:"colors",required:!0,type:{name:"ThemeColors"}},breakpoints:{defaultValue:null,description:"",name:"breakpoints",required:!0,type:{name:"ThemeBreakpoints"}},spacing:{defaultValue:null,description:"",name:"spacing",required:!0,type:{name:"ThemeSpacing"}},shape:{defaultValue:null,description:"",name:"shape",required:!0,type:{name:"ThemeShape"}},components:{defaultValue:null,description:"",name:"components",required:!0,type:{name:"ThemeComponents"}},typography:{defaultValue:null,description:"",name:"typography",required:!0,type:{name:"ThemeTypography"}},zIndex:{defaultValue:null,description:"",name:"zIndex",required:!0,type:{name:"{ activePanel: number; navbarFixed: number; sidemenu: number; dropdown: number; typeahead: number; tooltip: number; modalBackdrop: number; modal: number; portal: number; }"}},shadows:{defaultValue:null,description:"",name:"shadows",required:!0,type:{name:"ThemeShadows"}},visualization:{defaultValue:null,description:"",name:"visualization",required:!0,type:{name:"ThemeVisualizationColors"}},transitions:{defaultValue:null,description:"",name:"transitions",required:!0,type:{name:"ThemeTransitions"}},v1:{defaultValue:null,description:"@deprecated Will be removed in a future version",name:"v1",required:!0,type:{name:"GrafanaTheme"}},flags:{defaultValue:null,description:"feature flags that might impact component looks",name:"flags",required:!0,type:{name:"{}"}}}},typeof STORYBOOK_REACT_CLASSES<"u"&&(STORYBOOK_REACT_CLASSES["src/components/Forms/Label.tsx#getLabelStyles"]={docgenInfo:w.__docgenInfo,name:"getLabelStyles",path:"src/components/Forms/Label.tsx#getLabelStyles"})}catch{}},"./src/components/Forms/commonStyles.ts":function(M,y,e){e.d(y,{SM:function(){return x},Xb:function(){return u},g$:function(){return d},gm:function(){return b},lH:function(){return m}});var t=e("../../node_modules/@emotion/css/dist/emotion-css.esm.js"),a=e("./src/themes/mixins.ts");const b=o=>(0,t.AH)({"&:focus":(0,a.Hi)(o)}),u=(o,E=!1)=>{const I=E?o.colors.error.border:o.components.input.borderColor,S=E?o.colors.error.shade:o.components.input.borderHover,w=o.components.input.background,l=o.components.input.text,v=o.isDark?"#2e2f35":"#bab4ca";return(0,t.cx)(d(o),(0,t.AH)({background:w,lineHeight:o.typography.body.lineHeight,fontSize:o.typography.size.md,color:l,border:`1px solid ${I}`,"&:-webkit-autofill, &:-webkit-autofill:hover":{boxShadow:`inset 0 0 0 1px rgba(255, 255, 255, 0), inset 0 0 0 100px ${w}!important`,WebkitTextFillColor:`${l} !important`,borderColor:v},"&:-webkit-autofill:focus":{boxShadow:`0 0 0 2px ${o.colors.background.primary}, 0 0 0px 4px ${o.colors.primary.main}, inset 0 0 0 1px rgba(255, 255, 255, 0), inset 0 0 0 100px ${w}!important`,WebkitTextFillColor:`${l} !important`},"&:hover":{borderColor:S},"&:focus":{outline:"none"},"&:disabled":{backgroundColor:o.colors.action.disabledBackground,color:o.colors.action.disabledText,border:`1px solid ${o.colors.action.disabledBackground}`,"&:hover":{borderColor:I}},"&::placeholder":{color:o.colors.text.disabled,opacity:1}}))},d=o=>(0,t.AH)({padding:o.spacing(0,1,0,1)}),m=()=>({sm:(0,t.AH)({width:p("sm")}),md:(0,t.AH)({width:p("md")}),lg:(0,t.AH)({width:p("lg")}),auto:(0,t.AH)({width:p("auto")})}),p=o=>{switch(o){case"sm":return"200px";case"md":return"320px";case"lg":return"580px";case"auto":default:return"auto"}};function x(o,E){switch(o){case"sm":return{padding:1,fontSize:E.typography.size.sm,height:E.components.height.sm};case"lg":return{padding:3,fontSize:E.typography.size.lg,height:E.components.height.lg};case"md":default:return{padding:2,fontSize:E.typography.size.md,height:E.components.height.md}}}},"./src/components/Icon/Icon.tsx":function(M,y,e){e.d(y,{I:function(){return v}});var t=e("../../node_modules/@emotion/css/dist/emotion-css.esm.js"),a=e("../../node_modules/react/index.js"),b=e("../../node_modules/react-inlinesvg/esm/index.js"),u=e("../grafana-data/src/types/icon.ts"),d=e("./src/themes/ThemeContext.tsx"),m=e("./src/components/Icon/utils.ts"),p=Object.defineProperty,x=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,I=(c,r,i)=>r in c?p(c,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[r]=i,S=(c,r)=>{for(var i in r||(r={}))o.call(r,i)&&I(c,i,r[i]);if(x)for(var i of x(r))E.call(r,i)&&I(c,i,r[i]);return c},w=(c,r)=>{var i={};for(var g in c)o.call(c,g)&&r.indexOf(g)<0&&(i[g]=c[g]);if(c!=null&&x)for(var g of x(c))r.indexOf(g)<0&&E.call(c,g)&&(i[g]=c[g]);return i};const l=c=>({icon:(0,t.AH)({display:"inline-block",fill:"currentColor",flexShrink:0,label:"Icon",lineHeight:0,verticalAlign:"middle"}),orange:(0,t.AH)({fill:c.v1.palette.orange})}),v=a.forwardRef((c,r)=>{var i=c,{size:g="md",type:n="default",name:f,className:h,style:O,title:R=""}=i,V=w(i,["size","type","name","className","style","title"]);const T=(0,d.of)(l);(0,u.n6)(f)||console.warn("Icon component passed an invalid icon name",f);const A=f==="fa fa-spinner"?"spinner":f,N=(0,m.Wj)(),D=(0,m.cs)(g),C=D,B=f.startsWith("gf-bar-align")?16:f.startsWith("gf-interp")?30:D,_=(0,m.Xi)(A,n),s=`${N}${_}/${A}.svg`,P=(0,t.cx)(T.icon,h,n==="mono"?{[T.orange]:f==="favorite"}:"",A==="spinner"&&"fa-spin");return a.createElement(b.A,S({innerRef:r,src:s,width:B,height:C,title:R,className:P,style:O},V))});v.displayName="Icon";try{v.displayName="Icon",v.__docgenInfo={description:"",displayName:"Icon",props:{name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"enum",value:[{value:'"play"'},{value:'"google"'},{value:'"microsoft"'},{value:'"github"'},{value:'"gitlab"'},{value:'"okta"'},{value:'"discord"'},{value:'"hipchat"'},{value:'"amazon"'},{value:'"google-hangouts-alt"'},{value:'"pagerduty"'},{value:'"line"'},{value:'"anchor"'},{value:'"adjust-circle"'},{value:'"angle-double-down"'},{value:'"angle-double-right"'},{value:'"angle-double-up"'},{value:'"angle-down"'},{value:'"angle-left"'},{value:'"angle-right"'},{value:'"angle-up"'},{value:'"align-left"'},{value:'"align-right"'},{value:'"application-observability"'},{value:'"apps"'},{value:'"archive-alt"'},{value:'"arrow"'},{value:'"arrow-down"'},{value:'"arrow-from-right"'},{value:'"arrow-left"'},{value:'"arrow-random"'},{value:'"arrow-right"'},{value:'"arrow-to-right"'},{value:'"arrow-up"'},{value:'"arrows-h"'},{value:'"arrows-v"'},{value:'"asserts"'},{value:'"expand-arrows"'},{value:'"at"'},{value:'"ai"'},{value:'"backward"'},{value:'"bars"'},{value:'"bell"'},{value:'"bell-slash"'},{value:'"bolt"'},{value:'"book"'},{value:'"bookmark"'},{value:'"book-open"'},{value:'"brackets-curly"'},{value:'"bug"'},{value:'"building"'},{value:'"calculator-alt"'},{value:'"calendar-alt"'},{value:'"calendar-slash"'},{value:'"camera"'},{value:'"capture"'},{value:'"channel-add"'},{value:'"chart-line"'},{value:'"check"'},{value:'"check-circle"'},{value:'"check-square"'},{value:'"circle"'},{value:'"circle-mono"'},{value:'"clipboard-alt"'},{value:'"clock-nine"'},{value:'"cloud"'},{value:'"cloud-download"'},{value:'"cloud-upload"'},{value:'"code-branch"'},{value:'"cog"'},{value:'"columns"'},{value:'"comment-alt"'},{value:'"comment-alt-message"'},{value:'"comment-alt-share"'},{value:'"comments-alt"'},{value:'"compass"'},{value:'"copy"'},{value:'"corner-down-right-alt"'},{value:'"create-dashboard"'},{value:'"credit-card"'},{value:'"crosshair"'},{value:'"cube"'},{value:'"dashboard"'},{value:'"database"'},{value:'"dice-three"'},{value:'"docker"'},{value:'"document-info"'},{value:'"download-alt"'},{value:'"draggabledots"'},{value:'"edit"'},{value:'"ellipsis-v"'},{value:'"envelope"'},{value:'"exchange-alt"'},{value:'"exclamation-triangle"'},{value:'"exclamation-circle"'},{value:'"external-link-alt"'},{value:'"eye"'},{value:'"eye-slash"'},{value:'"ellipsis-h"'},{value:'"fa fa-spinner"'},{value:'"favorite"'},{value:'"file-alt"'},{value:'"file-blank"'},{value:'"file-copy-alt"'},{value:'"file-download"'},{value:'"file-edit-alt"'},{value:'"file-landscape-alt"'},{value:'"filter"'},{value:'"flip"'},{value:'"folder"'},{value:'"font"'},{value:'"fire"'},{value:'"folder-open"'},{value:'"folder-plus"'},{value:'"folder-upload"'},{value:'"forward"'},{value:'"frontend-observability"'},{value:'"gf-bar-alignment-after"'},{value:'"gf-bar-alignment-before"'},{value:'"gf-bar-alignment-center"'},{value:'"gf-glue"'},{value:'"gf-grid"'},{value:'"gf-interpolation-linear"'},{value:'"gf-interpolation-smooth"'},{value:'"gf-interpolation-step-after"'},{value:'"gf-interpolation-step-before"'},{value:'"gf-landscape"'},{value:'"gf-layout-simple"'},{value:'"gf-logs"'},{value:'"gf-ml"'},{value:'"gf-movepane-left"'},{value:'"gf-movepane-right"'},{value:'"gf-portrait"'},{value:'"gf-service-account"'},{value:'"gf-show-context"'},{value:'"gf-pin"'},{value:'"gf-prometheus"'},{value:'"gf-traces"'},{value:'"globe"'},{value:'"grafana"'},{value:'"graph-bar"'},{value:'"heart"'},{value:'"heart-rate"'},{value:'"heart-break"'},{value:'"history"'},{value:'"history-alt"'},{value:'"home"'},{value:'"home-alt"'},{value:'"horizontal-align-center"'},{value:'"horizontal-align-left"'},{value:'"horizontal-align-right"'},{value:'"hourglass"'},{value:'"import"'},{value:'"info"'},{value:'"info-circle"'},{value:'"k6"'},{value:'"key-skeleton-alt"'},{value:'"keyboard"'},{value:'"layer-group"'},{value:'"layers-alt"'},{value:'"library-panel"'},{value:'"line-alt"'},{value:'"link"'},{value:'"list-ui-alt"'},{value:'"list-ul"'},{value:'"list-ol"'},{value:'"lock"'},{value:'"map-marker"'},{value:'"map-marker-plus"'},{value:'"map-marker-minus"'},{value:'"message"'},{value:'"minus"'},{value:'"minus-circle"'},{value:'"mobile-android"'},{value:'"monitor"'},{value:'"palette"'},{value:'"panel-add"'},{value:'"pathfinder-unite"'},{value:'"pause"'},{value:'"pen"'},{value:'"percentage"'},{value:'"plug"'},{value:'"plus"'},{value:'"plus-circle"'},{value:'"plus-square"'},{value:'"power"'},{value:'"presentation-play"'},{value:'"process"'},{value:'"question-circle"'},{value:'"record-audio"'},{value:'"repeat"'},{value:'"rocket"'},{value:'"ruler-combined"'},{value:'"save"'},{value:'"search"'},{value:'"search-minus"'},{value:'"search-plus"'},{value:'"share-alt"'},{value:'"shield"'},{value:'"shield-exclamation"'},{value:'"signal"'},{value:'"signin"'},{value:'"signout"'},{value:'"sitemap"'},{value:'"slack"'},{value:'"sliders-v-alt"'},{value:'"spinner"'},{value:'"sort-amount-down"'},{value:'"sort-amount-up"'},{value:'"square-shape"'},{value:'"star"'},{value:'"step-backward"'},{value:'"stopwatch"'},{value:'"stopwatch-slash"'},{value:'"sync"'},{value:'"sync-slash"'},{value:'"table"'},{value:'"tag-alt"'},{value:'"telegram-alt"'},{value:'"text-fields"'},{value:'"thumbs-up"'},{value:'"times"'},{value:'"times-circle"'},{value:'"toggle-on"'},{value:'"toggle-off"'},{value:'"trash-alt"'},{value:'"unarchive"'},{value:'"unlock"'},{value:'"upload"'},{value:'"user"'},{value:'"users-alt"'},{value:'"user-arrows"'},{value:'"vertical-align-bottom"'},{value:'"vertical-align-center"'},{value:'"vertical-align-top"'},{value:'"web-section-alt"'},{value:'"wrap-text"'},{value:'"rss"'},{value:'"x"'}]}},size:{defaultValue:{value:"md"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'},{value:'"xxl"'},{value:'"xxxl"'}]}},type:{defaultValue:{value:"default"},description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"solid"'},{value:'"default"'},{value:'"mono"'}]}},title:{defaultValue:{value:""},description:"",name:"title",required:!1,type:{name:"string"}}}},typeof STORYBOOK_REACT_CLASSES<"u"&&(STORYBOOK_REACT_CLASSES["src/components/Icon/Icon.tsx#Icon"]={docgenInfo:v.__docgenInfo,name:"Icon",path:"src/components/Icon/Icon.tsx#Icon"})}catch{}},"./src/components/Icon/utils.ts":function(M,y,e){e.d(y,{Wj:function(){return d},Xi:function(){return a},cs:function(){return b}});const t=["grafana","favorite","heart-break","heart","panel-add","library-panel","circle-mono"];function a(m,p){return m?.startsWith("gf-")?"custom":t.includes(m)?"mono":p==="default"?"unicons":p==="solid"?"solid":"mono"}function b(m){switch(m){case"xs":return 12;case"sm":return 14;case"md":return 16;case"lg":return 18;case"xl":return 24;case"xxl":return 36;case"xxxl":return 48}}let u;function d(){if(u)return u;const m=typeof window<"u"&&window.__grafana_public_path__;return m?u=m+"img/icons/":u="public/img/icons/",u}},"./src/components/Input/Input.tsx":function(M,y,e){e.d(y,{n:function(){return g},p:function(){return i}});var t=e("../../node_modules/@emotion/css/dist/emotion-css.esm.js"),a=e("../../node_modules/react/index.js"),b=e("../../node_modules/react-use/lib/useMeasure.js"),u=e("./src/themes/ThemeContext.tsx"),d=e("./src/themes/stylesFactory.ts"),m=e("./src/components/Forms/commonStyles.ts"),p=e("./src/components/Spinner/Spinner.tsx"),x=Object.defineProperty,o=Object.defineProperties,E=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,l=(n,f,h)=>f in n?x(n,f,{enumerable:!0,configurable:!0,writable:!0,value:h}):n[f]=h,v=(n,f)=>{for(var h in f||(f={}))S.call(f,h)&&l(n,h,f[h]);if(I)for(var h of I(f))w.call(f,h)&&l(n,h,f[h]);return n},c=(n,f)=>o(n,E(f)),r=(n,f)=>{var h={};for(var O in n)S.call(n,O)&&f.indexOf(O)<0&&(h[O]=n[O]);if(n!=null&&I)for(var O of I(n))f.indexOf(O)<0&&w.call(n,O)&&(h[O]=n[O]);return h};const i=a.forwardRef((n,f)=>{const h=n,{className:O,addonAfter:R,addonBefore:V,prefix:T,suffix:A,invalid:N,loading:D,width:C=0}=h,B=r(h,["className","addonAfter","addonBefore","prefix","suffix","invalid","loading","width"]),[_,s]=(0,b.A)(),[P,L]=(0,b.A)(),z=(0,u.$j)(),F=g({theme:z,invalid:!!N,width:C});return a.createElement("div",{className:(0,t.cx)(F.wrapper,O),"data-testid":"input-wrapper"},!!V&&a.createElement("div",{className:F.addon},V),a.createElement("div",{className:F.inputWrapper},T&&a.createElement("div",{className:F.prefix,ref:_},T),a.createElement("input",c(v({ref:f,className:F.input},B),{style:{paddingLeft:T?s.width+12:void 0,paddingRight:A||D?L.width+12:void 0}})),(A||D)&&a.createElement("div",{className:F.suffix,ref:P},D&&a.createElement(p.y,{className:F.loadingIndicator,inline:!0}),A)),!!R&&a.createElement("div",{className:F.addon},R))});i.displayName="Input";const g=(0,d.N)(({theme:n,invalid:f=!1,width:h})=>{const O="28px",R=(0,t.AH)({position:"absolute",top:0,zIndex:1,display:"flex",alignItems:"center",justifyContent:"center",flexGrow:0,flexShrink:0,fontSize:n.typography.size.md,height:"100%",minWidth:O,color:n.colors.text.secondary});return{wrapper:(0,t.cx)((0,t.AH)({label:"input-wrapper",display:"flex",width:h?n.spacing(h):"100%",height:n.spacing(n.components.height.md),borderRadius:n.shape.radius.default,"&:hover":{"> .prefix, .suffix, .input":{borderColor:f?n.colors.error.border:n.colors.primary.border},"input[type='number']":{appearance:"textfield"},"input[type='number']::-webkit-inner-spin-button, input[type='number']::-webkit-outer-spin-button":{WebkitAppearance:"inner-spin-button !important",opacity:1}}})),inputWrapper:(0,t.AH)({label:"input-inputWrapper",position:"relative",flexGrow:1,zIndex:1,"&:not(:first-child):last-child":{"> input":{borderLeft:"none",borderTopLeftRadius:0,borderBottomLeftRadius:0}},"&:first-child:not(:last-child)":{"> input":{borderRight:"none",borderTopRightRadius:0,borderBottomRightRadius:0}},"&:not(:first-child):not(:last-child)":{"> input":{borderRight:"none",borderTopRightRadius:0,borderBottomRightRadius:0,borderTopLeftRadius:0,borderBottomLeftRadius:0}},input:{"&:not(:first-child)":{paddingLeft:O},"&:not(:last-child)":{paddingRight:O},"&[readonly]":{cursor:"default"}}}),input:(0,t.cx)((0,m.gm)(n),(0,m.Xb)(n,f),(0,t.AH)({label:"input-input",position:"relative",zIndex:0,flexGrow:1,borderRadius:n.shape.radius.default,height:"100%",width:"100%"})),inputDisabled:(0,t.AH)({backgroundColor:n.colors.action.disabledBackground,color:n.colors.action.disabledText,border:`1px solid ${n.colors.action.disabledBackground}`,"&:focus":{boxShadow:"none"}}),addon:(0,t.AH)({label:"input-addon",display:"flex",justifyContent:"center",alignItems:"center",flexGrow:0,flexShrink:0,position:"relative","&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0,"> :last-child":{borderTopRightRadius:0,borderBottomRightRadius:0}},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0,"> :first-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0}},"> *:focus":{zIndex:2}}),prefix:(0,t.cx)(R,(0,t.AH)({label:"input-prefix",paddingLeft:n.spacing(1),paddingRight:n.spacing(.5),borderRight:"none",borderTopRightRadius:0,borderBottomRightRadius:0})),suffix:(0,t.cx)(R,(0,t.AH)({label:"input-suffix",paddingLeft:n.spacing(1),paddingRight:n.spacing(1),marginBottom:"-2px",borderLeft:"none",borderTopLeftRadius:0,borderBottomLeftRadius:0,right:0})),loadingIndicator:(0,t.AH)({"& + *":{marginLeft:n.spacing(.5)}})}});try{i.displayName="Input",i.__docgenInfo={description:"",displayName:"Input",props:{width:{defaultValue:null,description:"Sets the width to a multiple of 8px. Should only be used with inline forms. Setting width of the container is preferred in other cases.",name:"width",required:!1,type:{name:"number"}},prefix:{defaultValue:null,description:"Show an icon as a prefix in the input",name:"prefix",required:!1,type:{name:"ReactNode"}},invalid:{defaultValue:null,description:"Show an invalid state around the input",name:"invalid",required:!1,type:{name:"boolean"}},suffix:{defaultValue:null,description:"Show an icon as a suffix in the input",name:"suffix",required:!1,type:{name:"ReactNode"}},loading:{defaultValue:null,description:"Show a loading indicator as a suffix in the input",name:"loading",required:!1,type:{name:"boolean"}},addonBefore:{defaultValue:null,description:"Add a component as an addon before the input",name:"addonBefore",required:!1,type:{name:"ReactNode"}},addonAfter:{defaultValue:null,description:"Add a component as an addon after the input",name:"addonAfter",required:!1,type:{name:"ReactNode"}}}},typeof STORYBOOK_REACT_CLASSES<"u"&&(STORYBOOK_REACT_CLASSES["src/components/Input/Input.tsx#Input"]={docgenInfo:i.__docgenInfo,name:"Input",path:"src/components/Input/Input.tsx#Input"})}catch{}},"./src/components/Spinner/Spinner.tsx":function(M,y,e){e.d(y,{y:function(){return x}});var t=e("../../node_modules/@emotion/css/dist/emotion-css.esm.js"),a=e("../../node_modules/react/index.js"),b=e("../../node_modules/react-inlinesvg/esm/index.js"),u=e("./src/themes/ThemeContext.tsx"),d=e("./src/types/icon.ts"),m=e("./src/components/Icon/Icon.tsx"),p=e("./src/components/Icon/utils.ts");const x=({className:I,inline:S=!1,iconClassName:w,style:l,size:v="md"})=>{const c=(0,u.of)(o),r=(0,u.of)(E,v);if(typeof v!="string"||!(0,d.rJ)(v)){const i=(0,p.Wj)(),g="spinner",n=(0,p.Xi)(g,"default"),f=`${i}${n}/${g}.svg`;return a.createElement("div",{"data-testid":"Spinner",style:l,className:(0,t.cx)({[c.inline]:S},r.wrapper,I)},a.createElement(b.A,{src:f,width:v,height:v,className:(0,t.cx)("fa-spin",r.icon,I),style:l}))}return a.createElement("div",{"data-testid":"Spinner",style:l,className:(0,t.cx)({[c.inline]:S},I)},a.createElement(m.I,{className:(0,t.cx)("fa-spin",w),name:"spinner",size:v,"aria-label":"loading spinner"}))},o=I=>({inline:(0,t.AH)({display:"inline-block"})}),E=(I,S)=>({wrapper:(0,t.AH)({fontSize:typeof S=="string"?S:`${S}px`}),icon:(0,t.AH)({display:"inline-block",fill:"currentColor",flexShrink:0,label:"Icon",lineHeight:0,verticalAlign:"middle"})});try{x.displayName="Spinner",x.__docgenInfo={description:"",displayName:"Spinner",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"CSSProperties"}},iconClassName:{defaultValue:null,description:"",name:"iconClassName",required:!1,type:{name:"string"}},inline:{defaultValue:{value:"false"},description:"",name:"inline",required:!1,type:{name:"boolean"}},size:{defaultValue:{value:"md"},description:"",name:"size",required:!1,type:{name:"string | number"}}}},typeof STORYBOOK_REACT_CLASSES<"u"&&(STORYBOOK_REACT_CLASSES["src/components/Spinner/Spinner.tsx#Spinner"]={docgenInfo:x.__docgenInfo,name:"Spinner",path:"src/components/Spinner/Spinner.tsx#Spinner"})}catch{}},"./src/themes/stylesFactory.ts":function(M,y,e){e.d(y,{N:function(){return b}});var t=e("../../node_modules/micro-memoize/dist/micro-memoize.js"),a=e.n(t);function b(u){return a()(u)}},"./src/types/icon.ts":function(M,y,e){e.d(y,{GO:function(){return u},SS:function(){return d},rJ:function(){return b}});var t=e("../grafana-data/src/types/icon.ts"),a=e("../grafana-data/src/types/dataFrame.ts");const b=p=>["xs","sm","md","lg","xl","xxl","xxxl"].includes(p),u=()=>Object.keys(t.az);function d(p){return m(p?.type)}function m(p){if(p)switch(p){case a.PU.time:return"clock-nine";case a.PU.string:return"font";case a.PU.number:return"calculator-alt";case a.PU.boolean:return"toggle-on";case a.PU.trace:return"info-circle";case a.PU.enum:return"list-ol";case a.PU.geo:return"map-marker";case a.PU.other:return"brackets-curly"}return"question-circle"}},"./src/utils/reactUtils.ts":function(M,y,e){e.d(y,{b:function(){return b},e:function(){return a}});var t=e("../../node_modules/react/index.js");function a(u){let d;const m=t.Children.only(u);return"id"in m?.props?d=m.props.id:"inputId"in m.props&&(d=m?.props.inputId),typeof d=="string"?d:void 0}function b(u,d){if(t.isValidElement(u)||typeof u=="string"||typeof u=="number")return u;if(typeof u=="function"&&d)return u(d);throw new Error(`${u} is not a React element nor a function that returns React element`)}}}]);
