-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 797d29d 🚀
- Loading branch information
1 parent
e3e87bd
commit 12420ea
Showing
141 changed files
with
1,483 additions
and
1,233 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import{B as e}from"./BaseButton-DpIDzJwf.js";const k={title:"Components/Base/BaseButton",argTypes:{label:{type:"string",description:"Button label"},ariaLabel:{type:"string",description:"ARIA label. Recommended if your button label isn't descriptive, or if it only contains an icon."},variant:{type:"string",description:"Button variant type",control:{type:"select",options:["primary","secondary","dark","social"]},table:{defaultValue:{summary:"default"}}},link:{type:"string",description:"Button URL"},caret:{type:"boolean",description:"Display caret",control:{type:"boolean"},table:{defaultValue:{summary:"false"}}},compact:{type:"boolean",description:"",control:{type:"boolean"},table:{defaultValue:{summary:"false"}}},disabled:{type:"boolean",description:"",control:{type:"boolean"},table:{defaultValue:{summary:"false"}}},icon:{type:"string",description:"Button variant type",control:{type:"select",options:["next","prev","expand","external","facebook","twitter","instagram","youtube","reddit","dropdown"]},table:{defaultValue:{summary:"none"}}},iconBefore:{type:"boolean",description:"If the icon should be positioned before the text.",control:{type:"boolean"},table:{defaultValue:{summary:"false"}}},iconOnly:{type:"boolean",description:"If the button will only include an icon and no text.",control:{type:"boolean"},table:{defaultValue:{summary:"false"}}}},parameters:{docs:{description:{component:"Simple button with several style variations."}}}},n=e.bind({});n.storyName="Primary Button";n.args={label:"Explore",variant:"primary",link:"#",caret:!1,compact:!1,disabled:!1,icon:null,iconBefore:!1,iconOnly:!1};const c=e.bind({});c.args={label:"Explore",variant:"primary",link:"#",caret:!1,compact:!1,disabled:!1};const d=e.bind({});d.args={label:"Explore",variant:"secondary",link:"#",caret:!1,compact:!1,disabled:!1};const l=e.bind({});l.args={label:"Explore",variant:"dark",link:"#",caret:!1,compact:!1,disabled:!1};l.decorators=[t=>`<div class="p-5 bg-dark-blue">${t()}</div>`];const u=e.bind({});u.args={label:"Explore",variant:"primary",link:"#",caret:!1,compact:!1,disabled:!1,icon:"next",iconOnly:!0};const b=e.bind({});b.args={label:"Explore",variant:"secondary",link:"#",caret:!1,compact:!1,disabled:!1,icon:"next",iconOnly:!0};const o=e.bind({});o.args={label:"Explore",variant:"dark",link:"#",caret:!1,compact:!1,disabled:!1,icon:"next",iconOnly:!0};o.decorators=[t=>`<div class="p-5 bg-dark-blue">${t()}</div>`];const a=()=>{let t=e({label:"Facebook",variant:"social",link:"#",caret:!1,compact:!0,disabled:!1,icon:"facebook",iconOnly:!0,cssClass:"-facebook w-12 h-12 text-2xl mr-3"}),f=e({label:"X",variant:"social",link:"#",caret:!1,compact:!0,disabled:!1,icon:"twitter",iconOnly:!0,cssClass:"-twitter w-12 h-12 text-2xl mr-3"}),y=e({label:"Instagram",variant:"social",link:"#",caret:!1,compact:!0,disabled:!1,icon:"instagram",iconOnly:!0,cssClass:"-instagram w-12 h-12 text-2xl mr-3"}),B=e({label:"YouTube",variant:"social",link:"#",caret:!1,compact:!0,disabled:!1,icon:"youtube",iconOnly:!0,cssClass:"-youtube w-12 h-12 text-2xl mr-3"}),x=e({label:"Reddit",variant:"social",link:"#",caret:!1,compact:!0,disabled:!1,icon:"reddit",iconOnly:!0,cssClass:"-reddit w-12 h-12 text-2xl mr-3"});return`${t} ${f} ${y} ${B} ${x}`};a.decorators=[t=>`<div class="p-5 flex items-center">${t()}</div>`];const p=e.bind({});p.args={label:"Explore",variant:"primary",link:"#",caret:!1,compact:!1,disabled:!0};const m=e.bind({});m.args={label:"Explore",variant:"primary",link:"#",caret:!1,compact:!1,disabled:!0,icon:"next",iconOnly:!0};var r,s,i;a.parameters={...a.parameters,docs:{...(r=a.parameters)==null?void 0:r.docs,source:{originalSource:`() => { | ||
let facebook = BaseButtonTemplate({ | ||
label: 'Facebook', | ||
variant: 'social', | ||
link: '#', | ||
caret: false, | ||
compact: true, | ||
disabled: false, | ||
icon: 'facebook', | ||
iconOnly: true, | ||
cssClass: '-facebook w-12 h-12 text-2xl mr-3' | ||
}); | ||
let twitter = BaseButtonTemplate({ | ||
label: 'X', | ||
variant: 'social', | ||
link: '#', | ||
caret: false, | ||
compact: true, | ||
disabled: false, | ||
icon: 'twitter', | ||
iconOnly: true, | ||
cssClass: '-twitter w-12 h-12 text-2xl mr-3' | ||
}); | ||
let instagram = BaseButtonTemplate({ | ||
label: 'Instagram', | ||
variant: 'social', | ||
link: '#', | ||
caret: false, | ||
compact: true, | ||
disabled: false, | ||
icon: 'instagram', | ||
iconOnly: true, | ||
cssClass: '-instagram w-12 h-12 text-2xl mr-3' | ||
}); | ||
let youtube = BaseButtonTemplate({ | ||
label: 'YouTube', | ||
variant: 'social', | ||
link: '#', | ||
caret: false, | ||
compact: true, | ||
disabled: false, | ||
icon: 'youtube', | ||
iconOnly: true, | ||
cssClass: '-youtube w-12 h-12 text-2xl mr-3' | ||
}); | ||
let reddit = BaseButtonTemplate({ | ||
label: 'Reddit', | ||
variant: 'social', | ||
link: '#', | ||
caret: false, | ||
compact: true, | ||
disabled: false, | ||
icon: 'reddit', | ||
iconOnly: true, | ||
cssClass: '-reddit w-12 h-12 text-2xl mr-3' | ||
}); | ||
return \`\${facebook} \${twitter} \${instagram} \${youtube} \${reddit}\`; | ||
}`,...(i=(s=a.parameters)==null?void 0:s.docs)==null?void 0:i.source}}};const _=["Default","Primary_Internal_Button","Secondary_Button","Dark_Button","Primary_Icon_Button","Secondary_Icon_Button","Dark_Icon_Button","Social_Icon_Button","Disabled_Button","Disabled_Icon_Button"],g=Object.freeze(Object.defineProperty({__proto__:null,Dark_Button:l,Dark_Icon_Button:o,Default:n,Disabled_Button:p,Disabled_Icon_Button:m,Primary_Icon_Button:u,Primary_Internal_Button:c,Secondary_Button:d,Secondary_Icon_Button:b,Social_Icon_Button:a,__namedExportsOrder:_,default:k},Symbol.toStringTag,{value:"Module"}));export{g as B}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import{B as e}from"./BaseHeading-2dYQ5eTW.js";import{I as h}from"./IconLocation-CUyqMFQl.js";import{I as l}from"./IconArrows-f9_vo7fG.js";import{I as H}from"./IconUser-CqYZ7HgZ.js";const f={title:"Components/Base/BaseHeading",argTypes:{text:{type:"string"},size:{type:{name:"string",required:!0},description:"The display size of the heading.",control:{type:"select",options:["h1","h2","h3","h4","h5","h6"]},table:{defaultValue:{summary:"h3"}}},tag:{type:{name:"string",required:!1},description:"The semantic heading tag if different from the display size (ex: a heading looks like an `h4`, but semantically, it is an `h1`.",control:{type:"select",options:["h1","h2","h3","h4","h5","h6"]}}},parameters:{viewMode:"docs",docs:{description:{component:"Base component for headings. Allows for retaining semantic markup while varying the text size."}}}},a=e.bind({});a.storyName="H1";a.args={text:"Heading 1",size:"h1",tag:"h1"};const o=e.bind({});o.storyName="H2";o.args={text:"Heading 2",size:"h2",tag:"h2"};const i=e.bind({});i.storyName="H3";i.args={text:"Heading 3",size:"h3",tag:"h3"};const r=e.bind({});r.storyName="H4";r.args={text:"Heading 4",size:"h4",tag:"h4"};const c=e.bind({});c.storyName="H5";c.args={text:"Heading 5",size:"h5",tag:"h5"};const d=e.bind({});d.storyName="H6";d.args={text:"Heading 6",size:"h6",tag:"h6"};const t=(n=>{const s={customClass:"inline"};return` | ||
${e({...n,icon:h(s)})} | ||
${e({...n,icon:H(s)})} | ||
${e({...n,icon:l(s)})} | ||
`}).bind({});t.args={text:"Heading 3",size:"h3",tag:"h3",headingClass:"mt-8"};var g,m,p;t.parameters={...t.parameters,docs:{...(g=t.parameters)==null?void 0:g.docs,source:{originalSource:`(args => { | ||
const iconProps = { | ||
customClass: 'inline' | ||
}; | ||
// Test with icons of different shapes. | ||
return \` | ||
\${BaseHeadingTemplate({ | ||
...args, | ||
icon: IconLocationTemplate(iconProps) | ||
})} | ||
\${BaseHeadingTemplate({ | ||
...args, | ||
icon: IconUserTemplate(iconProps) | ||
})} | ||
\${BaseHeadingTemplate({ | ||
...args, | ||
icon: IconArrowsTemplate(iconProps) | ||
})} | ||
\`; | ||
}).bind({})`,...(p=(m=t.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};const u=["Default","H2","H3","H4","H5","H6","HeadingsWithIcons"],z=Object.freeze(Object.defineProperty({__proto__:null,Default:a,H2:o,H3:i,H4:r,H5:c,H6:d,HeadingsWithIcons:t,__namedExportsOrder:u,default:f},Symbol.toStringTag,{value:"Module"}));export{z as B}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.