@designcrowd/fe-shared-lib 1.2.0 → 1.2.1-ml-input-changes
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.
- package/.storybook-static/assets/Auth-Cog6hw8U.css +1 -0
- package/.storybook-static/assets/Auth.stories-CbTWisKB.js +490 -0
- package/.storybook-static/assets/AuthCrazyDomains.stories-Dsjxh-je.js +73 -0
- package/.storybook-static/assets/Button-Dt0lL0uX.css +1 -0
- package/.storybook-static/assets/Button-IgCxbLvL.js +1 -0
- package/.storybook-static/assets/ButtonGroup-JjgCZ8Bt.css +1 -0
- package/.storybook-static/assets/ButtonGroup.stories-yhUiem6j.js +494 -0
- package/.storybook-static/assets/ButtonPrimary-CFNYtrCi.css +1 -0
- package/.storybook-static/assets/ButtonPrimary-Ce51KkgM.js +1 -0
- package/.storybook-static/assets/Buttons.stories-C7AZ07ow.js +699 -0
- package/.storybook-static/assets/ButtonsCrazyDomains.stories-DgtyyoFM.js +199 -0
- package/.storybook-static/assets/Checkbox.mixin-DkHpdvGa.js +1 -0
- package/.storybook-static/assets/Checkbox.stories-12upKauG.js +203 -0
- package/.storybook-static/assets/Checktile.stories-8H8_5ia-.js +88 -0
- package/.storybook-static/assets/CollapsiblePanel.stories-Cs6gaONK.js +39 -0
- package/.storybook-static/assets/Color-RQJUDNI5-B-WwomMi.js +1 -0
- package/.storybook-static/assets/ColorPicker.stories-DriJaUqB.js +73 -0
- package/.storybook-static/assets/CopyToClipboardText.stories-r9YFXGiX.js +32 -0
- package/.storybook-static/assets/DocsRenderer-K4EAMTCU-BflUCOHA.js +513 -0
- package/.storybook-static/assets/Dropdown.stories-D1RPdExw.js +154 -0
- package/.storybook-static/assets/DropdownItem-BQ0eJTHo.css +1 -0
- package/.storybook-static/assets/DropdownItem-C4PFbXSv.js +1 -0
- package/.storybook-static/assets/FormControl.mixin-BIPKWa5J.js +1 -0
- package/.storybook-static/assets/HashRouteModal.stories-jZo8F3lr.js +64 -0
- package/.storybook-static/assets/HelloBar-CXc7uecf.js +1 -0
- package/.storybook-static/assets/HelloBar.stories-DJPqn9T0.js +342 -0
- package/.storybook-static/assets/Icon-B8lXgcc0.js +1 -0
- package/.storybook-static/assets/Icon.stories-B2K3kKRW.js +735 -0
- package/.storybook-static/assets/Icon.stories-z4pz6mSi.js +126 -0
- package/.storybook-static/assets/Loader-D6_mUM4g.js +1 -0
- package/.storybook-static/assets/LogoBusinessBrandColours-7RXxlPF7.js +1 -0
- package/.storybook-static/assets/LogoBusinessBrandColours-8SUh_BWV.css +1 -0
- package/.storybook-static/assets/LogoBusinessBrandColours.stories-Cc65CQQK.js +36 -0
- package/.storybook-static/assets/Masonry-Q4MdMr0_.css +1 -0
- package/.storybook-static/assets/Masonry.stories-CB-rWe0y.js +71 -0
- package/.storybook-static/assets/Modal-BOHOQzO4.js +1 -0
- package/.storybook-static/assets/Modal-MZ2jF3mP.css +1 -0
- package/.storybook-static/assets/Modal.stories-Hbi4v2MQ.js +380 -0
- package/.storybook-static/assets/Notice.stories-ChRjh1h1.js +222 -0
- package/.storybook-static/assets/NumberStepper.stories-D4c10_Cl.js +48 -0
- package/.storybook-static/assets/PaymentConfigList.stories-EUp7r4Ga.js +126 -0
- package/.storybook-static/assets/Picture-AUjTe_FO.js +1 -0
- package/.storybook-static/assets/Picture.stories-7_37X1oI.js +119 -0
- package/.storybook-static/assets/Pill-DEH_ScBa.js +1 -0
- package/.storybook-static/assets/Pill.stories-CKakcDo1.js +18 -0
- package/.storybook-static/assets/PillBar-BeJSf_Pk.css +1 -0
- package/.storybook-static/assets/PillBar.stories-BNwlQM4p.js +41 -0
- package/.storybook-static/assets/Price-BzFp3dn5.js +1 -0
- package/.storybook-static/assets/Price.stories-m0jztoEd.js +221 -0
- package/.storybook-static/assets/PublishBrandPageModal-BOGSPjB0.css +1 -0
- package/.storybook-static/assets/PublishBrandPageModal.stories-Bt2eK5tM.js +349 -0
- package/.storybook-static/assets/SearchBar.stories-DE7D9jqF.js +12 -0
- package/.storybook-static/assets/Select-BkD_4Yie.css +1 -0
- package/.storybook-static/assets/Select.stories-vMzrjNuo.js +108 -0
- package/.storybook-static/assets/SellDomainNameList.fixtures-LC6fjr_b.js +1 -0
- package/.storybook-static/assets/SellDomainNameListModal-DAV6wUWy.js +1 -0
- package/.storybook-static/assets/SellDomainNameListModal-geQc7R-K.css +1 -0
- package/.storybook-static/assets/SellDomainNameListModal.stories-BOCkiwOR.js +71 -0
- package/.storybook-static/assets/SellDomainNameListSearchResult-DP3zr-UL.js +1 -0
- package/.storybook-static/assets/SellDomainNameListSearchResult-Dtf2vM3k.css +1 -0
- package/.storybook-static/assets/SellDomainNameSearchWithResults--W028-5L.js +1 -0
- package/.storybook-static/assets/SellDomainNameSearchWithResults.stories-CCYgVB46.js +37 -0
- package/.storybook-static/assets/SellDomainNameWidget.stories-ukdr-BaU.js +36 -0
- package/.storybook-static/assets/SignIn-B9RTmsHO.css +1 -0
- package/.storybook-static/assets/SignIn-yR2yVQBY.js +1 -0
- package/.storybook-static/assets/Slider-CQ7DbC3q.css +1 -0
- package/.storybook-static/assets/Slider.stories-CwIY_YjL.js +129 -0
- package/.storybook-static/assets/StarRating-BRQqs_py.css +1 -0
- package/.storybook-static/assets/StarRating.stories-B2ZK1FmW.js +45 -0
- package/.storybook-static/assets/TabMenu.stories-Cr3TQSxW.js +47 -0
- package/.storybook-static/assets/TextCopyField-BuZ5L-lt.js +1 -0
- package/.storybook-static/assets/TextCopyField.stories-ivRqKsNm.js +47 -0
- package/.storybook-static/assets/TextInput-BepJC9nE.js +1 -0
- package/.storybook-static/assets/TextInput.stories-BW4TEkLR.js +233 -0
- package/.storybook-static/assets/Textarea.stories-DWkB6BWG.js +207 -0
- package/.storybook-static/assets/Toggle.stories-C_GsxzOh.js +161 -0
- package/.storybook-static/assets/Tooltip-BHf5qq0n.css +1 -0
- package/.storybook-static/assets/Tooltip-BQfusa53.js +1 -0
- package/.storybook-static/assets/Tooltip.stories-CAIFG7b2.js +953 -0
- package/.storybook-static/assets/UploadYourLogoApplication-CeFWp7qz.css +9 -0
- package/.storybook-static/assets/UploadYourLogoApplication.stories-C-OLYLzi.js +194 -0
- package/.storybook-static/assets/UploadYourLogoDropzone-BZeSfjIk.css +1 -0
- package/.storybook-static/assets/UploadYourLogoDropzone-Cxgdqo37.js +24 -0
- package/.storybook-static/assets/UploadYourLogoDropzone.stories-X-I5FYLu.js +35 -0
- package/.storybook-static/assets/UploadedLogoSearchResultCard.stories-B2kj1FVv.js +79 -0
- package/.storybook-static/assets/WithTooltip-Y7J54OF7-DkTQ6h6H.js +1 -0
- package/.storybook-static/assets/_commonjsHelpers-BosuxZz1.js +1 -0
- package/.storybook-static/assets/_plugin-vue_export-helper-DlAUqK2U.js +1 -0
- package/.storybook-static/assets/api-lSJGRrF2.js +1 -0
- package/.storybook-static/assets/axe-CeoKsdFO.js +30 -0
- package/.storybook-static/assets/axios-dxcvQi4N.js +6 -0
- package/.storybook-static/assets/brand-crowd-api.client-CfTgrTzo.js +1 -0
- package/.storybook-static/assets/carousel-B0jomWUs.css +1 -0
- package/.storybook-static/assets/carousel.stories-B1RxWT1u.js +374 -0
- package/.storybook-static/assets/entry-preview-CMasyaBj.js +1 -0
- package/.storybook-static/assets/entry-preview-docs-DfJD_mNC.js +14 -0
- package/.storybook-static/assets/event-constants-6ydiL1p5.js +1 -0
- package/.storybook-static/assets/formatter-B5HCVTEV-CmCZjaYl.js +58 -0
- package/.storybook-static/assets/iframe-B6RguKdJ.js +7 -0
- package/.storybook-static/assets/index-BqKh95Lf.js +24 -0
- package/.storybook-static/assets/index-BwDkhjyp.js +9 -0
- package/.storybook-static/assets/index-D-8MO0q_.js +1 -0
- package/.storybook-static/assets/index-DK28puIS.js +3 -0
- package/.storybook-static/assets/index-DlpNa54Y.js +1 -0
- package/.storybook-static/assets/index-DrFu-skq.js +6 -0
- package/.storybook-static/assets/preview-B4GcaC1c.js +1 -0
- package/.storybook-static/assets/preview-BAz7FMXc.js +396 -0
- package/.storybook-static/assets/preview-BJPLiuSt.js +1 -0
- package/.storybook-static/assets/preview-CBGjgnh2.js +1 -0
- package/.storybook-static/assets/preview-Cv3rAi2i.js +7 -0
- package/.storybook-static/assets/preview-CwqMn10d.js +20 -0
- package/.storybook-static/assets/preview-DF-d5FoE.js +1 -0
- package/.storybook-static/assets/preview-Db4Idchh.js +1 -0
- package/.storybook-static/assets/preview-DvOZkz_N.js +7 -0
- package/.storybook-static/assets/preview-G-5UVXmd.js +1 -0
- package/.storybook-static/assets/preview-efJowmDL.js +7 -0
- package/.storybook-static/assets/syntaxhighlighter-JOJW2KGS-DjsQUJyu.js +1 -0
- package/.storybook-static/assets/tracking-ATsLLehC.js +1 -0
- package/.storybook-static/assets/vue.esm-bundler-C7QvyiW1.js +47 -0
- package/.storybook-static/css/tailwind-brandCrowd.css +2344 -0
- package/.storybook-static/css/tailwind-brandPage.css +2032 -0
- package/.storybook-static/css/tailwind-crazyDomains.css +2344 -0
- package/.storybook-static/css/tailwind-designCom.css +2344 -0
- package/.storybook-static/css/tailwind-designCrowd.css +2344 -0
- package/.storybook-static/favicon.svg +7 -0
- package/.storybook-static/iframe.html +501 -0
- package/.storybook-static/index.html +163 -0
- package/.storybook-static/index.json +1 -0
- package/.storybook-static/project.json +1 -0
- package/.storybook-static/sb-addons/a11y-1/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/a11y-1/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/actions-2/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/controls-3/manager-bundle.js +60 -0
- package/.storybook-static/sb-addons/controls-3/manager-bundle.js.LEGAL.txt +18 -0
- package/.storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +12 -0
- package/.storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/links-9/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/links-9/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/themes-10/manager-bundle.js +3 -0
- package/.storybook-static/sb-addons/themes-10/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-common-assets/fonts.css +31 -0
- package/.storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/.storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/.storybook-static/sb-manager/WithTooltip-Y7J54OF7-3AIPQNGM.js +1 -0
- package/.storybook-static/sb-manager/chunk-KCJCJECS.js +234 -0
- package/.storybook-static/sb-manager/chunk-TZAR34JC.js +6 -0
- package/.storybook-static/sb-manager/chunk-UOBNU442.js +347 -0
- package/.storybook-static/sb-manager/chunk-VCJ56UEM.js +183 -0
- package/.storybook-static/sb-manager/chunk-VMGB76WP.js +9 -0
- package/.storybook-static/sb-manager/chunk-XP3HGWTR.js +1 -0
- package/.storybook-static/sb-manager/formatter-B5HCVTEV-7DCBOGO6.js +58 -0
- package/.storybook-static/sb-manager/globals-module-info.js +1 -0
- package/.storybook-static/sb-manager/globals-runtime.js +1 -0
- package/.storybook-static/sb-manager/globals.js +1 -0
- package/.storybook-static/sb-manager/index.js +1 -0
- package/.storybook-static/sb-manager/runtime.js +1 -0
- package/.storybook-static/sb-manager/syntaxhighlighter-JOJW2KGS-7BF26SBB.js +1 -0
- package/.storybook-static/sb-preview/globals.js +1 -0
- package/.storybook-static/sb-preview/runtime.js +128 -0
- package/dist/css/tailwind-brandCrowd.css +2459 -0
- package/dist/css/tailwind-brandPage.css +2147 -0
- package/dist/css/tailwind-crazyDomains.css +2459 -0
- package/dist/css/tailwind-designCom.css +2459 -0
- package/dist/css/tailwind-designCrowd.css +2459 -0
- package/package.json +1 -1
- package/public/css/tailwind-brandCrowd.css +4 -0
- package/public/css/tailwind-brandPage.css +4 -0
- package/public/css/tailwind-crazyDomains.css +4 -0
- package/public/css/tailwind-designCom.css +4 -0
- package/public/css/tailwind-designCrowd.css +4 -0
- package/src/atoms/components/Button/Button.vue +3 -0
- package/src/atoms/components/Button/Buttons.stories.js +24 -0
- package/src/atoms/components/Button/variants/ButtonAi.vue +2 -2
- package/src/atoms/components/Button/variants/ButtonOutlinePrimary.vue +53 -0
- package/src/atoms/components/Dropdown/Dropdown.stories.js +5 -5
- package/src/atoms/components/FormControl/FormControl.mixin.js +7 -1
- package/src/atoms/components/TextInput/TextInput.vue +5 -0
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +1 -0
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
import{I as k}from"./Icon-B8lXgcc0.js";import{c as n,F as x,f as N,h as O,g as we,o,n as y,a as _,r as Se,m as G,t as f,e as V,i as ve}from"./vue.esm-bundler-C7QvyiW1.js";import{_ as ge}from"./_plugin-vue_export-helper-DlAUqK2U.js";const me={components:{Icon:k},props:{options:{type:Array,required:!0},variant:{type:String,required:!1,default:void 0},btnStyleVariant:{type:String,validator(t){return["compressed"].includes(t)},required:!1,default:void 0},columns:{type:Number,required:!1,default:void 0},padding:{type:Number,required:!1,default:void 0},lineHeight:{type:Number,required:!1,default:void 0}},computed:{isGridDisplay(){return!!this.columns},buttonGroupStyle(){return this.isGridDisplay?{display:"grid",gap:"0.5rem",gridTemplateColumns:`repeat(${this.options.length===3&&this.columns===2?this.options.length:this.columns}, minmax(0, 1fr))`}:{}}}},Be=["onClick"],be={key:0,class:"tw-w-full tw-text-center tw-font-bold tw-font-sans tw-text-xs tw-mb-0 tw-mt-2"},ye=["onClick"],fe={key:0,class:"tw-w-full tw-text-center tw-font-bold"},he=["onClick"],xe=["src","alt"],Ne={key:2,class:"tw-w-full tw-text-center tw-font-bold tw-font-sans tw-text-xs tw-mb-0 tw-mt-2"},Oe=["onClick"];function _e(t,Ge,l,Ve,ke,i){const pe=we("Icon");return l.variant==="custom"?(o(),n("div",{key:0,class:"button-group",style:O(i.buttonGroupStyle)},[(o(!0),n(x,null,N(l.options,(e,s)=>(o(),n("div",{key:`button-${e.value}`,class:y({"tw-ml-2":s>0&&!i.isGridDisplay,"tw-w-full":e.title||e.label})},[_("button",G({class:["button-group-item tw-text-xs tw-shadow-inner tw-w-full tw-py-2",{"!tw-shadow-[0_0_0_2px] !tw-shadow-info-500":e.isSelected,"!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500":!e.isSelected}]},e.dataAttribute?{[e.dataAttribute]:""}:{},{onClick:h=>t.$emit("on-select",e)}),[Se(t.$slots,"content",{option:e},void 0,!0)],16,Be),e.title?(o(),n("p",be,f(e.title),1)):V("",!0)],2))),128))],4)):l.variant==="icon"||l.variant==="image"?(o(),n("div",{key:1,class:"button-group",style:O(i.buttonGroupStyle)},[(o(!0),n(x,null,N(l.options,(e,s)=>(o(),n("div",{key:`button-${e.value}`,class:y({"tw-ml-2":s>0&&!i.isGridDisplay,"tw-w-full":e.title})},[l.variant==="icon"?(o(),n("button",G({key:0,class:[{"!tw-shadow-[0_0_0_2px] !tw-shadow-info-500":e.isSelected,"!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500":!e.isSelected,"tw-px-2":!e.iconViewBox,"tw-px-px":e.iconViewBox&&!e.isSelected&&!e.iconName.includes("display-style")&&l.btnStyleVariant,"tw-px-0.5":e.iconViewBox&&e.isSelected,"tw-py-2":!e.iconName.includes("display-style")&&!l.btnStyleVariant,"tw-px-0 tw-py-0":e.iconName.includes("display-style")||l.btnStyleVariant==="compressed"},"tw-text-xs button-group-icon-button tw-shadow-inner"],style:e.iconName.includes("display-style")?{lineHeight:0}:{}},e.dataAttribute?{[e.dataAttribute]:""}:{},{onClick:h=>t.$emit("on-select",e)}),[_("div",{class:y({"tw-flex tw-flex-cols-2 tw-gap-4 tw-items-center tw-justify-center":e.iconName.includes("column-")})},[e.iconName.includes("column-")?(o(),n("p",fe,f(e.label),1)):V("",!0),ve(pe,{name:e.iconName,size:e.iconSize?e.iconSize:e.iconViewBox,"view-box":e.iconViewBox},null,8,["name","size","view-box"])],2)],16,ye)):(o(),n("button",G({key:1,class:[{"!tw-shadow-[0_0_0_2px] !tw-shadow-info-500":e.isSelected,"!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500":!e.isSelected},"tw-text-xs button-group-image-button tw-shadow-inner"]},e.dataAttribute?{[e.dataAttribute]:""}:{},{onClick:h=>t.$emit("on-select",e)}),[_("img",{src:e.src,alt:e.alt,class:"tw-w-full tw-h-full"},null,8,xe)],16,he)),e.title?(o(),n("p",Ne,f(e.title),1)):V("",!0)],2))),128))],4)):(o(),n("div",{key:2,class:"button-group",style:O(i.buttonGroupStyle)},[(o(!0),n(x,null,N(l.options,(e,s)=>(o(),n("button",{key:`button-${e.value}`,class:y([{"tw-ml-2":s>0&&!l.columns,"!tw-shadow-[0_0_0_2px] !tw-shadow-info-500":e.isSelected,"!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500":!e.isSelected},"tw-text-xs button-group-button tw-shadow-inner"]),onClick:h=>t.$emit("on-select",e)},f(e.label),11,Oe))),128))],4))}const a=ge(me,[["render",_e],["__scopeId","data-v-a6e76c21"]]);me.__docgenInfo={exportName:"default",displayName:"ButtonGroup",description:"",tags:{},props:[{name:"options",type:{name:"array"},required:!0},{name:"variant",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"undefined"}},{name:"btnStyleVariant",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"undefined"},values:["compressed"]},{name:"columns",type:{name:"number"},required:!1,defaultValue:{func:!1,value:"undefined"}},{name:"padding",type:{name:"number"},required:!1,defaultValue:{func:!1,value:"undefined"}},{name:"lineHeight",type:{name:"number"},required:!1,defaultValue:{func:!1,value:"undefined"}}],events:[{name:"on-select"}],slots:[{name:"content",scoped:!0,bindings:[{name:"option",title:"binding"}]}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/ButtonGroup/ButtonGroup.vue"]};const Ie={title:"Components/ButtonGroup",component:a},c=()=>({components:{ButtonGroup:a},data:()=>({options:[{label:"Small",value:"small",isSelected:!0},{label:"Medium",value:"medium"},{label:"Large",value:"large"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
2
|
+
<div class="tw-w-1/3">
|
|
3
|
+
<ButtonGroup :options="options" @on-select="onButtonOptionSelected" />
|
|
4
|
+
</div>
|
|
5
|
+
`});c.story={name:"Sample (3 buttons)"};const r=()=>({components:{ButtonGroup:a},data:()=>({options:[{label:"Option 1",value:"option1",isSelected:!0},{label:"Option 2",value:"option2"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
6
|
+
<div class="tw-w-1/3">
|
|
7
|
+
<ButtonGroup :options="options" @on-select="onButtonOptionSelected" />
|
|
8
|
+
</div>
|
|
9
|
+
`});r.story={name:"Sample (2 buttons)"};const u=()=>({components:{ButtonGroup:a},data:()=>({options:[{value:"left",iconName:"maker-align-left",isSelected:!0},{value:"center",iconName:"maker-align-center"},{value:"right",iconName:"maker-align-right"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
10
|
+
<div class="tw-w-1/3">
|
|
11
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
12
|
+
</div>
|
|
13
|
+
`});u.story={name:"Sample (icons - alignment)"};const d=()=>({components:{ButtonGroup:a},data:()=>({options:[{value:"bold",iconName:"maker-bold",isSelected:!0},{value:"italic",iconName:"maker-italic"},{value:"underline",iconName:"maker-underline"},{value:"strikethrough",iconName:"maker-strikethrough"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
14
|
+
<div class="tw-w-1/3">
|
|
15
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
16
|
+
</div>
|
|
17
|
+
`});d.story={name:"Sample (icons - text style)"};const m=()=>({components:{ButtonGroup:a},data:()=>({options:[{value:"grid",iconName:"image-gallery-grid",isSelected:!0,title:"Grid",iconViewBox:"0 0 94 24"},{value:"carousel",iconName:"image-gallery-carousel",title:"Carousel",iconViewBox:"0 0 94 24"},{value:"masonry",iconName:"image-gallery-masonry",title:"Masonry",iconViewBox:"0 0 94 24"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
18
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
19
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
20
|
+
</div>
|
|
21
|
+
`});m.story={name:"Sample (icons - carousel style)"};const p=()=>({components:{ButtonGroup:a},data:()=>({options:[{value:"none",iconName:"icon-style-no-bg",isSelected:!0,title:"None",iconViewBox:"0 0 94 24"},{value:"square",iconName:"icon-style-square-bg",title:"Square",iconViewBox:"0 0 94 24"},{value:"circle",iconName:"icon-style-circle-bg",title:"Circle",iconViewBox:"0 0 94 24"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
22
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
23
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
24
|
+
</div>
|
|
25
|
+
`});p.story={name:"Sample (icons - display style)"};const w=()=>({components:{ButtonGroup:a},data:()=>({options:[{value:"centered",iconName:"banner-centered",title:"Centered",iconViewBox:"0 0 94 24",dataAttribute:"data-test-centered"},{value:"left",iconName:"banner-left",title:"Left aligned",iconViewBox:"0 0 94 24",dataAttribute:"data-test-left"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
26
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
27
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
28
|
+
</div>
|
|
29
|
+
`});w.story={name:"Sample (banner)"};const S=()=>({components:{ButtonGroup:a},data:()=>({options:[{value:"left",iconName:"text-image-left",isSelected:!0,title:"Left aligned",iconViewBox:"0 0 94 24"},{value:"right",iconName:"text-image-right",title:"Right aligned",iconViewBox:"0 0 94 24"},{value:"centered",iconName:"text-image-center",title:"Centered",iconViewBox:"0 0 94 24"},{value:"image-only",iconName:"text-image-only",title:"Image Only",iconViewBox:"0 0 94 24"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
30
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
31
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" :columns="2" />
|
|
32
|
+
</div>
|
|
33
|
+
`});S.story={name:"Sample (text image)"};const v=()=>({components:{ButtonGroup:a},data:()=>({options:[{value:"left-aligned",iconName:"header-left",title:"Left Aligned",iconViewBox:"0 0 94 24"},{value:"centered",iconName:"header-centered",title:"Centered",iconViewBox:"0 0 94 24"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
34
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
35
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
36
|
+
</div>
|
|
37
|
+
`});v.story={name:"Sample (header align)"};const g=()=>({components:{ButtonGroup:a},data:()=>({options:[{src:"https://bcassetcdn.com/assets/images/icons/qr-code/qrcode-style-a-a1.svg",alt:"qrcode style a-a1",value:"line_a_a1",title:"a-a1",isSelected:!0},{src:"https://bcassetcdn.com/assets/images/icons/qr-code/qrcode-style-a-b1.svg",alt:"qrcode style a-b1",value:"dot_a_b1",title:"a-b1"},{src:"https://bcassetcdn.com/assets/images/icons/qr-code/qrcode-style-a2.svg",alt:"qrcode style a2",value:"dot_a2",title:"a2"}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
38
|
+
<div class="tw-w-1/3">
|
|
39
|
+
<ButtonGroup variant="image" :options="options" @on-select="onButtonOptionSelected" :columns="3"/>
|
|
40
|
+
</div>
|
|
41
|
+
`});g.story={name:"Sample (3 images)"};const B=()=>({components:{ButtonGroup:a,Icon:k},data:()=>({options:[{value:"url",iconName:"globe",label:"URL",iconSize:"md",isSelected:!0},{value:"email",iconName:"maker-email",label:"Email",iconSize:"md",isSelected:!1},{value:"phone",iconName:"phone",label:"Phone",iconSize:"md",isSelected:!1},{value:"sms",iconName:"sms",label:"SMS",iconSize:"md",isSelected:!1},{value:"vCard",iconName:"business-card-filled",label:"VCard",iconSize:"md",isSelected:!1},{value:"calendar",iconName:"calendar",label:"Event",iconSize:"md",isSelected:!1}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
42
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
43
|
+
<ButtonGroup variant="custom" :options="options" @on-select="onButtonOptionSelected" :columns="3">
|
|
44
|
+
<template #content="{ option }">
|
|
45
|
+
<div class="tw-text-secondary-500">
|
|
46
|
+
<Icon :name="option.iconName" :size="option.iconSize" />
|
|
47
|
+
<p
|
|
48
|
+
v-if="option.label"
|
|
49
|
+
class="tw-w-full tw-text-center tw-font-bold tw-font-sans tw-text-sm tw-mb-0 tw-mt-1"
|
|
50
|
+
>
|
|
51
|
+
{{ option.label }}
|
|
52
|
+
</p>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
</ButtonGroup>
|
|
56
|
+
</div>
|
|
57
|
+
`});B.story={name:"Sample Custom"};const b=()=>({components:{ButtonGroup:a,Icon:k},data:()=>({options:[{value:"url",iconName:"column-1",label:"1",iconSize:"md",isSelected:!0},{value:"email",iconName:"column-2",label:"2",iconSize:"md",isSelected:!1},{value:"phone",iconName:"column-3",label:"3",iconSize:"md",isSelected:!1},{value:"sms",iconName:"column-4",label:"4",iconSize:"md",isSelected:!1}]}),methods:{onButtonOptionSelected(t){console.log("Button Option Selected",t)}},template:`
|
|
58
|
+
<div class="tw-w-full">
|
|
59
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
60
|
+
</div>
|
|
61
|
+
`});b.story={name:"Sample Column"};var q,C,z;c.parameters={...c.parameters,docs:{...(q=c.parameters)==null?void 0:q.docs,source:{originalSource:`() => {
|
|
62
|
+
return {
|
|
63
|
+
components: {
|
|
64
|
+
ButtonGroup
|
|
65
|
+
},
|
|
66
|
+
data: () => ({
|
|
67
|
+
options: [{
|
|
68
|
+
label: 'Small',
|
|
69
|
+
value: 'small',
|
|
70
|
+
isSelected: true
|
|
71
|
+
}, {
|
|
72
|
+
label: 'Medium',
|
|
73
|
+
value: 'medium'
|
|
74
|
+
}, {
|
|
75
|
+
label: 'Large',
|
|
76
|
+
value: 'large'
|
|
77
|
+
}]
|
|
78
|
+
}),
|
|
79
|
+
methods: {
|
|
80
|
+
onButtonOptionSelected(option) {
|
|
81
|
+
console.log('Button Option Selected', option);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
template: \`
|
|
85
|
+
<div class="tw-w-1/3">
|
|
86
|
+
<ButtonGroup :options="options" @on-select="onButtonOptionSelected" />
|
|
87
|
+
</div>
|
|
88
|
+
\`
|
|
89
|
+
};
|
|
90
|
+
}`,...(z=(C=c.parameters)==null?void 0:C.docs)==null?void 0:z.source}}};var I,A,L;r.parameters={...r.parameters,docs:{...(I=r.parameters)==null?void 0:I.docs,source:{originalSource:`() => {
|
|
91
|
+
return {
|
|
92
|
+
components: {
|
|
93
|
+
ButtonGroup
|
|
94
|
+
},
|
|
95
|
+
data: () => ({
|
|
96
|
+
options: [{
|
|
97
|
+
label: 'Option 1',
|
|
98
|
+
value: 'option1',
|
|
99
|
+
isSelected: true
|
|
100
|
+
}, {
|
|
101
|
+
label: 'Option 2',
|
|
102
|
+
value: 'option2'
|
|
103
|
+
}]
|
|
104
|
+
}),
|
|
105
|
+
methods: {
|
|
106
|
+
onButtonOptionSelected(option) {
|
|
107
|
+
console.log('Button Option Selected', option);
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
template: \`
|
|
111
|
+
<div class="tw-w-1/3">
|
|
112
|
+
<ButtonGroup :options="options" @on-select="onButtonOptionSelected" />
|
|
113
|
+
</div>
|
|
114
|
+
\`
|
|
115
|
+
};
|
|
116
|
+
}`,...(L=(A=r.parameters)==null?void 0:A.docs)==null?void 0:L.source}}};var D,T,E;u.parameters={...u.parameters,docs:{...(D=u.parameters)==null?void 0:D.docs,source:{originalSource:`() => {
|
|
117
|
+
return {
|
|
118
|
+
components: {
|
|
119
|
+
ButtonGroup
|
|
120
|
+
},
|
|
121
|
+
data: () => ({
|
|
122
|
+
options: [{
|
|
123
|
+
value: 'left',
|
|
124
|
+
iconName: 'maker-align-left',
|
|
125
|
+
isSelected: true
|
|
126
|
+
}, {
|
|
127
|
+
value: 'center',
|
|
128
|
+
iconName: 'maker-align-center'
|
|
129
|
+
}, {
|
|
130
|
+
value: 'right',
|
|
131
|
+
iconName: 'maker-align-right'
|
|
132
|
+
}]
|
|
133
|
+
}),
|
|
134
|
+
methods: {
|
|
135
|
+
onButtonOptionSelected(option) {
|
|
136
|
+
console.log('Button Option Selected', option);
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
template: \`
|
|
140
|
+
<div class="tw-w-1/3">
|
|
141
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
142
|
+
</div>
|
|
143
|
+
\`
|
|
144
|
+
};
|
|
145
|
+
}`,...(E=(T=u.parameters)==null?void 0:T.docs)==null?void 0:E.source}}};var M,H,P;d.parameters={...d.parameters,docs:{...(M=d.parameters)==null?void 0:M.docs,source:{originalSource:`() => {
|
|
146
|
+
return {
|
|
147
|
+
components: {
|
|
148
|
+
ButtonGroup
|
|
149
|
+
},
|
|
150
|
+
data: () => ({
|
|
151
|
+
options: [{
|
|
152
|
+
value: 'bold',
|
|
153
|
+
iconName: 'maker-bold',
|
|
154
|
+
isSelected: true
|
|
155
|
+
}, {
|
|
156
|
+
value: 'italic',
|
|
157
|
+
iconName: 'maker-italic'
|
|
158
|
+
}, {
|
|
159
|
+
value: 'underline',
|
|
160
|
+
iconName: 'maker-underline'
|
|
161
|
+
}, {
|
|
162
|
+
value: 'strikethrough',
|
|
163
|
+
iconName: 'maker-strikethrough'
|
|
164
|
+
}]
|
|
165
|
+
}),
|
|
166
|
+
methods: {
|
|
167
|
+
onButtonOptionSelected(option) {
|
|
168
|
+
console.log('Button Option Selected', option);
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
template: \`
|
|
172
|
+
<div class="tw-w-1/3">
|
|
173
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
174
|
+
</div>
|
|
175
|
+
\`
|
|
176
|
+
};
|
|
177
|
+
}`,...(P=(H=d.parameters)==null?void 0:H.docs)==null?void 0:P.source}}};var R,F,U;m.parameters={...m.parameters,docs:{...(R=m.parameters)==null?void 0:R.docs,source:{originalSource:`() => {
|
|
178
|
+
return {
|
|
179
|
+
components: {
|
|
180
|
+
ButtonGroup
|
|
181
|
+
},
|
|
182
|
+
data: () => ({
|
|
183
|
+
options: [{
|
|
184
|
+
value: 'grid',
|
|
185
|
+
iconName: 'image-gallery-grid',
|
|
186
|
+
isSelected: true,
|
|
187
|
+
title: 'Grid',
|
|
188
|
+
iconViewBox: '0 0 94 24'
|
|
189
|
+
}, {
|
|
190
|
+
value: 'carousel',
|
|
191
|
+
iconName: 'image-gallery-carousel',
|
|
192
|
+
title: 'Carousel',
|
|
193
|
+
iconViewBox: '0 0 94 24'
|
|
194
|
+
}, {
|
|
195
|
+
value: 'masonry',
|
|
196
|
+
iconName: 'image-gallery-masonry',
|
|
197
|
+
title: 'Masonry',
|
|
198
|
+
iconViewBox: '0 0 94 24'
|
|
199
|
+
}]
|
|
200
|
+
}),
|
|
201
|
+
methods: {
|
|
202
|
+
onButtonOptionSelected(option) {
|
|
203
|
+
console.log('Button Option Selected', option);
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
template: \`
|
|
207
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
208
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
209
|
+
</div>
|
|
210
|
+
\`
|
|
211
|
+
};
|
|
212
|
+
}`,...(U=(F=m.parameters)==null?void 0:F.docs)==null?void 0:U.source}}};var j,$,J;p.parameters={...p.parameters,docs:{...(j=p.parameters)==null?void 0:j.docs,source:{originalSource:`() => {
|
|
213
|
+
return {
|
|
214
|
+
components: {
|
|
215
|
+
ButtonGroup
|
|
216
|
+
},
|
|
217
|
+
data: () => ({
|
|
218
|
+
options: [{
|
|
219
|
+
value: 'none',
|
|
220
|
+
iconName: 'icon-style-no-bg',
|
|
221
|
+
isSelected: true,
|
|
222
|
+
title: 'None',
|
|
223
|
+
iconViewBox: '0 0 94 24'
|
|
224
|
+
}, {
|
|
225
|
+
value: 'square',
|
|
226
|
+
iconName: 'icon-style-square-bg',
|
|
227
|
+
title: 'Square',
|
|
228
|
+
iconViewBox: '0 0 94 24'
|
|
229
|
+
}, {
|
|
230
|
+
value: 'circle',
|
|
231
|
+
iconName: 'icon-style-circle-bg',
|
|
232
|
+
title: 'Circle',
|
|
233
|
+
iconViewBox: '0 0 94 24'
|
|
234
|
+
}]
|
|
235
|
+
}),
|
|
236
|
+
methods: {
|
|
237
|
+
onButtonOptionSelected(option) {
|
|
238
|
+
console.log('Button Option Selected', option);
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
template: \`
|
|
242
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
243
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
244
|
+
</div>
|
|
245
|
+
\`
|
|
246
|
+
};
|
|
247
|
+
}`,...(J=($=p.parameters)==null?void 0:$.docs)==null?void 0:J.source}}};var K,Q,W;w.parameters={...w.parameters,docs:{...(K=w.parameters)==null?void 0:K.docs,source:{originalSource:`() => {
|
|
248
|
+
return {
|
|
249
|
+
components: {
|
|
250
|
+
ButtonGroup
|
|
251
|
+
},
|
|
252
|
+
data: () => ({
|
|
253
|
+
options: [{
|
|
254
|
+
value: 'centered',
|
|
255
|
+
iconName: 'banner-centered',
|
|
256
|
+
title: 'Centered',
|
|
257
|
+
iconViewBox: '0 0 94 24',
|
|
258
|
+
dataAttribute: 'data-test-centered'
|
|
259
|
+
}, {
|
|
260
|
+
value: 'left',
|
|
261
|
+
iconName: 'banner-left',
|
|
262
|
+
title: 'Left aligned',
|
|
263
|
+
iconViewBox: '0 0 94 24',
|
|
264
|
+
dataAttribute: 'data-test-left'
|
|
265
|
+
}]
|
|
266
|
+
}),
|
|
267
|
+
methods: {
|
|
268
|
+
onButtonOptionSelected(option) {
|
|
269
|
+
console.log('Button Option Selected', option);
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
template: \`
|
|
273
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
274
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
275
|
+
</div>
|
|
276
|
+
\`
|
|
277
|
+
};
|
|
278
|
+
}`,...(W=(Q=w.parameters)==null?void 0:Q.docs)==null?void 0:W.source}}};var X,Y,Z;S.parameters={...S.parameters,docs:{...(X=S.parameters)==null?void 0:X.docs,source:{originalSource:`() => {
|
|
279
|
+
return {
|
|
280
|
+
components: {
|
|
281
|
+
ButtonGroup
|
|
282
|
+
},
|
|
283
|
+
data: () => ({
|
|
284
|
+
options: [{
|
|
285
|
+
value: 'left',
|
|
286
|
+
iconName: 'text-image-left',
|
|
287
|
+
isSelected: true,
|
|
288
|
+
title: 'Left aligned',
|
|
289
|
+
iconViewBox: '0 0 94 24'
|
|
290
|
+
}, {
|
|
291
|
+
value: 'right',
|
|
292
|
+
iconName: 'text-image-right',
|
|
293
|
+
title: 'Right aligned',
|
|
294
|
+
iconViewBox: '0 0 94 24'
|
|
295
|
+
}, {
|
|
296
|
+
value: 'centered',
|
|
297
|
+
iconName: 'text-image-center',
|
|
298
|
+
title: 'Centered',
|
|
299
|
+
iconViewBox: '0 0 94 24'
|
|
300
|
+
}, {
|
|
301
|
+
value: 'image-only',
|
|
302
|
+
iconName: 'text-image-only',
|
|
303
|
+
title: 'Image Only',
|
|
304
|
+
iconViewBox: '0 0 94 24'
|
|
305
|
+
}]
|
|
306
|
+
}),
|
|
307
|
+
methods: {
|
|
308
|
+
onButtonOptionSelected(option) {
|
|
309
|
+
console.log('Button Option Selected', option);
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
template: \`
|
|
313
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
314
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" :columns="2" />
|
|
315
|
+
</div>
|
|
316
|
+
\`
|
|
317
|
+
};
|
|
318
|
+
}`,...(Z=(Y=S.parameters)==null?void 0:Y.docs)==null?void 0:Z.source}}};var ee,te,ne;v.parameters={...v.parameters,docs:{...(ee=v.parameters)==null?void 0:ee.docs,source:{originalSource:`() => {
|
|
319
|
+
return {
|
|
320
|
+
components: {
|
|
321
|
+
ButtonGroup
|
|
322
|
+
},
|
|
323
|
+
data: () => ({
|
|
324
|
+
options: [{
|
|
325
|
+
value: 'left-aligned',
|
|
326
|
+
iconName: 'header-left',
|
|
327
|
+
title: 'Left Aligned',
|
|
328
|
+
iconViewBox: '0 0 94 24'
|
|
329
|
+
}, {
|
|
330
|
+
value: 'centered',
|
|
331
|
+
iconName: 'header-centered',
|
|
332
|
+
title: 'Centered',
|
|
333
|
+
iconViewBox: '0 0 94 24'
|
|
334
|
+
}]
|
|
335
|
+
}),
|
|
336
|
+
methods: {
|
|
337
|
+
onButtonOptionSelected(option) {
|
|
338
|
+
console.log('Button Option Selected', option);
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
template: \`
|
|
342
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
343
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
344
|
+
</div>
|
|
345
|
+
\`
|
|
346
|
+
};
|
|
347
|
+
}`,...(ne=(te=v.parameters)==null?void 0:te.docs)==null?void 0:ne.source}}};var oe,ae,le;g.parameters={...g.parameters,docs:{...(oe=g.parameters)==null?void 0:oe.docs,source:{originalSource:`() => {
|
|
348
|
+
return {
|
|
349
|
+
components: {
|
|
350
|
+
ButtonGroup
|
|
351
|
+
},
|
|
352
|
+
data: () => ({
|
|
353
|
+
options: [{
|
|
354
|
+
src: 'https://bcassetcdn.com/assets/images/icons/qr-code/qrcode-style-a-a1.svg',
|
|
355
|
+
alt: 'qrcode style a-a1',
|
|
356
|
+
value: 'line_a_a1',
|
|
357
|
+
title: 'a-a1',
|
|
358
|
+
isSelected: true
|
|
359
|
+
}, {
|
|
360
|
+
src: 'https://bcassetcdn.com/assets/images/icons/qr-code/qrcode-style-a-b1.svg',
|
|
361
|
+
alt: 'qrcode style a-b1',
|
|
362
|
+
value: 'dot_a_b1',
|
|
363
|
+
title: 'a-b1'
|
|
364
|
+
}, {
|
|
365
|
+
src: 'https://bcassetcdn.com/assets/images/icons/qr-code/qrcode-style-a2.svg',
|
|
366
|
+
alt: 'qrcode style a2',
|
|
367
|
+
value: 'dot_a2',
|
|
368
|
+
title: 'a2'
|
|
369
|
+
}]
|
|
370
|
+
}),
|
|
371
|
+
methods: {
|
|
372
|
+
onButtonOptionSelected(option) {
|
|
373
|
+
console.log('Button Option Selected', option);
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
template: \`
|
|
377
|
+
<div class="tw-w-1/3">
|
|
378
|
+
<ButtonGroup variant="image" :options="options" @on-select="onButtonOptionSelected" :columns="3"/>
|
|
379
|
+
</div>
|
|
380
|
+
\`
|
|
381
|
+
};
|
|
382
|
+
}`,...(le=(ae=g.parameters)==null?void 0:ae.docs)==null?void 0:le.source}}};var ie,se,ce;B.parameters={...B.parameters,docs:{...(ie=B.parameters)==null?void 0:ie.docs,source:{originalSource:`() => {
|
|
383
|
+
return {
|
|
384
|
+
components: {
|
|
385
|
+
ButtonGroup,
|
|
386
|
+
Icon
|
|
387
|
+
},
|
|
388
|
+
data: () => ({
|
|
389
|
+
options: [{
|
|
390
|
+
value: 'url',
|
|
391
|
+
iconName: 'globe',
|
|
392
|
+
label: 'URL',
|
|
393
|
+
iconSize: 'md',
|
|
394
|
+
isSelected: true
|
|
395
|
+
}, {
|
|
396
|
+
value: 'email',
|
|
397
|
+
iconName: 'maker-email',
|
|
398
|
+
label: 'Email',
|
|
399
|
+
iconSize: 'md',
|
|
400
|
+
isSelected: false
|
|
401
|
+
}, {
|
|
402
|
+
value: 'phone',
|
|
403
|
+
iconName: 'phone',
|
|
404
|
+
label: 'Phone',
|
|
405
|
+
iconSize: 'md',
|
|
406
|
+
isSelected: false
|
|
407
|
+
}, {
|
|
408
|
+
value: 'sms',
|
|
409
|
+
iconName: 'sms',
|
|
410
|
+
label: 'SMS',
|
|
411
|
+
iconSize: 'md',
|
|
412
|
+
isSelected: false
|
|
413
|
+
}, {
|
|
414
|
+
value: 'vCard',
|
|
415
|
+
iconName: 'business-card-filled',
|
|
416
|
+
label: 'VCard',
|
|
417
|
+
iconSize: 'md',
|
|
418
|
+
isSelected: false
|
|
419
|
+
}, {
|
|
420
|
+
value: 'calendar',
|
|
421
|
+
iconName: 'calendar',
|
|
422
|
+
label: 'Event',
|
|
423
|
+
iconSize: 'md',
|
|
424
|
+
isSelected: false
|
|
425
|
+
}]
|
|
426
|
+
}),
|
|
427
|
+
methods: {
|
|
428
|
+
onButtonOptionSelected(option) {
|
|
429
|
+
console.log('Button Option Selected', option);
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
template: \`
|
|
433
|
+
<div class="tw-w-1/3 tw-bg-grayscale-400 tw-p-8">
|
|
434
|
+
<ButtonGroup variant="custom" :options="options" @on-select="onButtonOptionSelected" :columns="3">
|
|
435
|
+
<template #content="{ option }">
|
|
436
|
+
<div class="tw-text-secondary-500">
|
|
437
|
+
<Icon :name="option.iconName" :size="option.iconSize" />
|
|
438
|
+
<p
|
|
439
|
+
v-if="option.label"
|
|
440
|
+
class="tw-w-full tw-text-center tw-font-bold tw-font-sans tw-text-sm tw-mb-0 tw-mt-1"
|
|
441
|
+
>
|
|
442
|
+
{{ option.label }}
|
|
443
|
+
</p>
|
|
444
|
+
</div>
|
|
445
|
+
</template>
|
|
446
|
+
</ButtonGroup>
|
|
447
|
+
</div>
|
|
448
|
+
\`
|
|
449
|
+
};
|
|
450
|
+
}`,...(ce=(se=B.parameters)==null?void 0:se.docs)==null?void 0:ce.source}}};var re,ue,de;b.parameters={...b.parameters,docs:{...(re=b.parameters)==null?void 0:re.docs,source:{originalSource:`() => {
|
|
451
|
+
return {
|
|
452
|
+
components: {
|
|
453
|
+
ButtonGroup,
|
|
454
|
+
Icon
|
|
455
|
+
},
|
|
456
|
+
data: () => ({
|
|
457
|
+
options: [{
|
|
458
|
+
value: 'url',
|
|
459
|
+
iconName: 'column-1',
|
|
460
|
+
label: '1',
|
|
461
|
+
iconSize: 'md',
|
|
462
|
+
isSelected: true
|
|
463
|
+
}, {
|
|
464
|
+
value: 'email',
|
|
465
|
+
iconName: 'column-2',
|
|
466
|
+
label: '2',
|
|
467
|
+
iconSize: 'md',
|
|
468
|
+
isSelected: false
|
|
469
|
+
}, {
|
|
470
|
+
value: 'phone',
|
|
471
|
+
iconName: 'column-3',
|
|
472
|
+
label: '3',
|
|
473
|
+
iconSize: 'md',
|
|
474
|
+
isSelected: false
|
|
475
|
+
}, {
|
|
476
|
+
value: 'sms',
|
|
477
|
+
iconName: 'column-4',
|
|
478
|
+
label: '4',
|
|
479
|
+
iconSize: 'md',
|
|
480
|
+
isSelected: false
|
|
481
|
+
}]
|
|
482
|
+
}),
|
|
483
|
+
methods: {
|
|
484
|
+
onButtonOptionSelected(option) {
|
|
485
|
+
console.log('Button Option Selected', option);
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
template: \`
|
|
489
|
+
<div class="tw-w-full">
|
|
490
|
+
<ButtonGroup variant="icon" :options="options" @on-select="onButtonOptionSelected" />
|
|
491
|
+
</div>
|
|
492
|
+
\`
|
|
493
|
+
};
|
|
494
|
+
}`,...(de=(ue=b.parameters)==null?void 0:ue.docs)==null?void 0:de.source}}};const Ae=["Sample","SampleTwoButtons","SampleIconsAlignment","SampleIconsTextStyle","SampleIconsCarouselStyle","SampleIconsDisplayStyle","SampleIconsBanner","SampleIconsTextImage","SampleHeaderAlign","SampleImages","SampleCustom","SampleColumn"];export{c as Sample,b as SampleColumn,B as SampleCustom,v as SampleHeaderAlign,u as SampleIconsAlignment,w as SampleIconsBanner,m as SampleIconsCarouselStyle,p as SampleIconsDisplayStyle,S as SampleIconsTextImage,d as SampleIconsTextStyle,g as SampleImages,r as SampleTwoButtons,Ae as __namedExportsOrder,Ie as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.no-rounded-l[data-v-838c2b9b]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.no-rounded-r[data-v-838c2b9b]{border-top-right-radius:0!important;border-bottom-right-radius:0!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as n,c as r,r as u,m as l}from"./vue.esm-bundler-C7QvyiW1.js";import{_ as o}from"./_plugin-vue_export-helper-DlAUqK2U.js";const i={props:{attrs:{type:Object,required:!1,default:()=>({})},classes:{type:[String,Object],required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},isBusy:{type:Boolean,required:!1,default:!1},download:{type:String,required:!1,default:void 0},size:{type:String,required:!1,default:null},url:{type:String,required:!1,default:null},icon:{type:String,required:!1,default:null},iconViewBox:{type:String,required:!1,default:null},fullWidth:{type:Boolean,required:!1,default:!1},fullHeight:{type:Boolean,required:!1,default:!1},onClick:{type:Function,required:!1,default:null},rounded:{type:Boolean,required:!0},roundedLeft:{type:Boolean,required:!0},roundedRight:{type:Boolean,required:!0},roundedSmall:{type:Boolean,required:!1,default:!1},active:{type:Boolean,required:!1,default:!1},target:{type:String,required:!1,default:"_self"},type:{type:String,required:!1,default:void 0}},data(){return{commonUrlButtonClasses:""}},computed:{computedUrl(){return this.disabled?"javascript:":this.url},computedClasses(){return{"tw-text-xs tw-py-1 tw-px-2":this.size==="small","tw-text-xs tw-py-2 tw-px-5":this.size==="small-wide","tw-text-sm tw-py-1.5 tw-px-4":this.size==="small-medium","tw-text-sm tw-py-3 tw-px-4":!this.size||this.size==="medium","tw-text-base tw-py-4 tw-px-8":this.size==="large","tw-w-full":this.fullWidth,"tw-h-full":this.fullHeight,"tw-rounded":this.rounded&&!this.roundedSmall,"tw-rounded-l":this.roundedLeft,"tw-rounded-r":this.roundedRight,"tw-rounded-sm":this.roundedSmall,"tw-rounded-l-none":!this.rounded&&!this.roundedLeft,"tw-rounded-r-none":!this.rounded&&!this.roundedRight}}}};i.__docgenInfo={exportName:"default",displayName:"ButtonVariant.mixin",description:"",tags:{},props:[{name:"attrs",type:{name:"object"},required:!1,defaultValue:{func:!1,value:"{}"}},{name:"classes",type:{name:"string|object"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"disabled",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isBusy",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"download",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"undefined"}},{name:"size",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"url",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"icon",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"iconViewBox",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"fullWidth",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"fullHeight",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"onClick",type:{name:"func"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"rounded",type:{name:"boolean"},required:!0},{name:"roundedLeft",type:{name:"boolean"},required:!0},{name:"roundedRight",type:{name:"boolean"},required:!0},{name:"roundedSmall",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"active",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"target",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'_self'"}},{name:"type",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"undefined"}}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/Button/ButtonVariant.mixin.vue"]};const s={mixins:[i]},d=["disabled","type"],f=["href","download","target"];function m(e,a,p,y,c,w){return e.url?(n(),r("a",l({key:1,href:e.computedUrl,class:["tw-justify-center tw-font-sans tw-inline-flex tw-border-2 tw-font-bold tw-text-white tw-uppercase tw-border-solid tw-transition-colors tw-duration-300 tw-no-underline",[e.commonUrlButtonClasses,e.classes,e.computedClasses,{"no-rounded-l":!e.rounded&&!e.roundedLeft,"no-rounded-r":!e.rounded&&!e.roundedRight,"tw-cursor-pointer tw-bg-primary-500 tw-border-primary-500 hover:tw-border-primary-700 hover:tw-bg-primary-600":!e.disabled,"tw-bg-primary-300 tw-border-primary-300 tw-cursor-not-allowed":e.disabled,"tw-border-grayscale-500 tw-bg-grayscale-400 hover:tw-bg-grayscale-300 hover:tw-border-grayscale-400 tw-text-grayscale-600":e.isBusy}]],download:e.download},e.attrs,{target:e.target,onClick:a[1]||(a[1]=(...t)=>e.onClick&&e.onClick(...t))}),[u(e.$slots,"default",{},void 0,!0)],16,f)):(n(),r("button",l({key:0,class:["tw-font-sans tw-border-2 tw-font-bold tw-text-white tw-uppercase tw-border-solid tw-transition-colors tw-duration-300",[e.classes,e.computedClasses,{"no-rounded-l":!e.rounded&&!e.roundedLeft,"no-rounded-r":!e.rounded&&!e.roundedRight,"tw-cursor-pointer tw-bg-primary-500 tw-border-primary-500 hover:tw-border-primary-700 hover:tw-bg-primary-600":!e.disabled,"tw-bg-primary-300 tw-border-primary-300 tw-cursor-not-allowed":e.disabled,"tw-border-grayscale-500 tw-bg-grayscale-400 hover:tw-bg-grayscale-300 hover:tw-border-grayscale-400 tw-text-grayscale-600":e.isBusy}]],disabled:e.disabled,type:e.type},e.attrs,{onClick:a[0]||(a[0]=(...t)=>e.onClick&&e.onClick(...t))}),[u(e.$slots,"default",{},void 0,!0)],16,d))}const h=o(s,[["render",m],["__scopeId","data-v-838c2b9b"]]);s.__docgenInfo={exportName:"default",displayName:"ButtonPrimary",description:"",tags:{},props:[{name:"attrs",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"object"},required:!1,defaultValue:{func:!1,value:"{}"}},{name:"classes",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"string|object"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"disabled",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"isBusy",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"download",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"undefined"}},{name:"size",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"url",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"icon",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"iconViewBox",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"fullWidth",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"fullHeight",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"onClick",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"func"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"rounded",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"boolean"},required:!0},{name:"roundedLeft",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"boolean"},required:!0},{name:"roundedRight",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"boolean"},required:!0},{name:"roundedSmall",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"active",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"target",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'_self'"}},{name:"type",mixin:{name:"ButtonVariant.mixin",path:"../ButtonVariant.mixin.vue"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"undefined"}}],slots:[{name:"default"}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/Button/ButtonVariant.mixin.vue","/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/Button/variants/ButtonPrimary.vue"]};export{h as B,i as _};
|