-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstories-BCTab-stories.c663b789.iframe.bundle.js
1 lines (1 loc) · 1.96 KB
/
stories-BCTab-stories.c663b789.iframe.bundle.js
1
"use strict";(self.webpackChunkbuildcorp_uikits=self.webpackChunkbuildcorp_uikits||[]).push([[935],{"./src/stories/BCTab.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>BCTab_stories});var react=__webpack_require__("./node_modules/react/index.js"),lib=__webpack_require__("./node_modules/@fluentui/style-utilities/lib/index.js"),Pivot=__webpack_require__("./node_modules/@fluentui/react/lib/components/Pivot/Pivot.js"),PivotItem=__webpack_require__("./node_modules/@fluentui/react/lib/components/Pivot/PivotItem.js");const BCTab=({data})=>{const customPivotStyles=(0,lib.Zq)({selectors:{".ms-Pivot-link.is-selected::before":{backgroundColor:"#589E21"},".ms-Pivot-link.is-selected::after":{backgroundColor:"#589E21"}}});return react.createElement(Pivot.f,{className:customPivotStyles},data.map((item=>react.createElement(PivotItem.y,{key:item.headerText,headerText:item.headerText,itemCount:item.itemCount,itemIcon:item.itemIcon},item.children))))},Tab_BCTab=BCTab;BCTab.__docgenInfo={description:"",methods:[],displayName:"BCTab",props:{data:{required:!0,tsType:{name:"Array",elements:[{name:"IPivotItemProps"}],raw:"IPivotItemProps[]"},description:""}}};const BCTab_stories={title:"Example/BCTab",component:Tab_BCTab},Default=(args=>react.createElement(Tab_BCTab,args)).bind({});Default.args={data:[{headerText:"Home",itemIcon:"Home",children:react.createElement("div",null,"Home Content")},{headerText:"Store",itemIcon:"Ringer",children:react.createElement("div",null,"Store Content")},{headerText:"Product",itemCount:42,children:react.createElement("div",null,"Product Content")}]};const __namedExportsOrder=["Default"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"(args: BCTabProps) => <BCTab {...args} />",...Default.parameters?.docs?.source}}}}}]);