@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,126 @@
|
|
|
1
|
+
import{a as c}from"./axios-dxcvQi4N.js";import{M as C}from"./index-BqKh95Lf.js";import{L as z}from"./Loader-D6_mUM4g.js";import{c as s,i as f,F as H,f as W,g as m,o as t,a as w,j as D,t as r,n as _,e as g,b as v,A as d}from"./vue.esm-bundler-C7QvyiW1.js";import{_ as J}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{B as oe}from"./Button-IgCxbLvL.js";import{D as se,a as re}from"./DropdownItem-C4PFbXSv.js";import{P as ie}from"./Pill-DEH_ScBa.js";import"./_commonjsHelpers-BosuxZz1.js";import"./ButtonPrimary-Ce51KkgM.js";import"./Icon-B8lXgcc0.js";let Q;const de=e=>{Q=e},me=()=>Q||c,ce=async e=>{try{const n=await me().get(`/maker/api/brand-pages/${e}/payment-configs`);return n.status===200?n.data:null}catch{return null}},pe={setBrandPageApiClientAxios:de,getPaymentConfigsByBrandPageToken:ce},o=Object.freeze({active:"Active",pendingPreOnboarding:"PendingPreOnboarding",pendingPostOnboarding:"PendingPostOnboarding",unactivatedByCustomer:"UnactivatedByCustomer"}),X={props:{brandPageToken:{type:String,required:!1},showPaymentProviderExternalId:{type:Boolean,required:!1,default:!0},statusFilters:{type:Array,required:!1,default:void 0}},data:()=>({isLoading:!0,paymentConfigs:[]}),methods:{getPaymentConfigStatusDisplayText(e){switch(e){case o.pendingPreOnboarding:return"Onboarding Incomplete";case o.pendingPostOnboarding:return"Pending Verification";case o.active:return"Connected";case o.unactivatedByCustomer:return"Inactive";default:return null}},getPaymentConfigStatusDisplayClasses(e){switch(e){case o.pendingPreOnboarding:case o.pendingPostOnboarding:return"tw-bg-warning-500";case o.active:return"tw-bg-success-500";case o.unactivatedByCustomer:return"tw-bg-grayscale-600";default:return null}},async updatePaymentConfigs(){if(this.brandPageToken)try{this.isLoading=!0;const e=await pe.getPaymentConfigsByBrandPageToken(this.brandPageToken);e&&(this.paymentConfigs=Array.isArray(this.statusFilters)?e.filter(n=>this.statusFilters.some(i=>n.status===i)):e,this.$emit("on-load",this.paymentConfigs))}finally{this.isLoading=!1}}}},Z={components:{Loader:z},mixins:[X],async mounted(){await this.updatePaymentConfigs()}},le={key:0,class:"tw-w-full tw-flex tw-justify-center tw-p-2"},ge={key:1},fe=["href"],ue=["src"];function ye(e,n,i,ne,te,p){const E=m("Loader");return t(),s("div",null,[e.isLoading?(t(),s("div",le,[f(E)])):(t(),s("div",ge,[(t(!0),s(H,null,W(e.paymentConfigs,(a,h)=>(t(),s("a",{key:a.id,href:a.dashboardUrl,target:"_blank"},[w("div",{class:_(["tw-w-full tw-flex tw-font-sans tw-text-sm tw-items-center tw-p-3 tw-gap-2 tw-rounded tw-bg-white tw-border tw-border-solid tw-border-grayscale-500 tw-text-secondary-500 hover:tw-bg-grayscale-200",{"tw-mb-2":h!==e.paymentConfigs.length-1}])},[w("img",{class:"tw-h-6",src:a.paymentProviderImageUrl,alt:"Payment provider's logo"},null,8,ue),D(" "+r(a.paymentProviderName)+" "+r(a.defaultCurrency)+" ",1),w("p",{class:_(["tw-ml-auto tw-text-xs tw-rounded-full tw-py-0.5 tw-my-0 tw-text-white tw-px-4 tw-outline-none tw-uppercase",e.getPaymentConfigStatusDisplayClasses(a.status)])},r(e.getPaymentConfigStatusDisplayText(a.status)),3)],2)],8,fe))),128))]))])}const T=J(Z,[["render",ye]]);Z.__docgenInfo={exportName:"default",displayName:"PaymentConfigList",description:"",tags:{},props:[{name:"brandPageToken",mixin:{name:"PaymentConfig.mixin",path:"PaymentConfig.mixin.js"},type:{name:"string"},required:!1},{name:"showPaymentProviderExternalId",mixin:{name:"PaymentConfig.mixin",path:"PaymentConfig.mixin.js"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"true"}},{name:"statusFilters",mixin:{name:"PaymentConfig.mixin",path:"PaymentConfig.mixin.js"},type:{name:"array"},required:!1,defaultValue:{func:!1,value:"undefined"}}],events:[{name:"on-load",mixin:{name:"PaymentConfig.mixin",path:"PaymentConfig.mixin.js"},type:{names:["undefined"]}}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js","/Users/brooke.couchman/Projects/fe-shared-lib/src/experiences/components/PaymentConfigList/PaymentConfigList.vue"]};const ee={components:{Button:oe,Dropdown:se,DropdownItem:re,Loader:z,Pill:ie},mixins:[X],props:{showAddPaymentProvider:{type:Boolean,default:!0},paymentConfigId:{type:String,required:!1,default:void 0}},data:()=>({isAddPaymentProviderButtonVisible:!1,selectedPaymentConfig:void 0}),watch:{paymentConfig(e){this.selectedPaymentConfig=e}},async mounted(){if(this.brandPageToken){if(await this.updatePaymentConfigs(),!this.selectedPaymentConfig&&this.paymentConfigs.length===0){this.isAddPaymentProviderButtonVisible=!0;return}const e=this.paymentConfigs.find(n=>n.id===this.paymentConfigId);if(e)this.setSelectedPaymentConfig(e);else if(this.paymentConfigs.length>0){const n=this.paymentConfigs.find(i=>i.status===o.active);this.setSelectedPaymentConfig(n||this.paymentConfigs[0])}}else this.isLoading=!1,this.isAddPaymentProviderButtonVisible=!0},methods:{onAddPaymentProviderButtonClick(){this.$emit("on-add-payment-provider-click")},onPaymentConfigClick(e){this.setSelectedPaymentConfig(e),this.$refs.dropdown.hideMenu()},setSelectedPaymentConfig(e){this.selectedPaymentConfig=e,this.$emit("on-payment-config-selected",this.selectedPaymentConfig)}}},Pe={key:0,class:"tw-w-full tw-flex tw-justify-center tw-p-2"},be={key:0,class:"tw-flex"},we={class:"tw-text-sm tw-grow tw-select-none"},Ce={class:"tw-text-sm tw-grow tw-select-none"};function ke(e,n,i,ne,te,p){const E=m("Loader"),a=m("Button"),h=m("Pill"),O=m("DropdownItem"),ae=m("Dropdown");return t(),s("div",null,[e.isLoading?(t(),s("div",Pe,[f(E)])):g("",!0),e.isAddPaymentProviderButtonVisible?(t(),v(a,{key:1,label:"Add Payment Provider",size:"small",variant:"outline",onOnClick:p.onAddPaymentProviderButtonClick},null,8,["onOnClick"])):g("",!0),!e.isLoading&&!e.isAddPaymentProviderButtonVisible?(t(),v(ae,{key:2,ref:"dropdown"},{title:d(()=>[e.selectedPaymentConfig?(t(),s("div",be,[w("span",we,r(e.selectedPaymentConfig.name),1),f(h,{class:_(["tw-text-white tw-mr-2",e.getPaymentConfigStatusDisplayClasses(e.selectedPaymentConfig.status)])},{default:d(()=>[D(r(e.getPaymentConfigStatusDisplayText(e.selectedPaymentConfig.status)),1)]),_:1},8,["class"])])):g("",!0)]),default:d(()=>[(t(!0),s(H,null,W(e.paymentConfigs,l=>(t(),v(O,{key:`payment-config-${l.id}`,onClick:he=>p.onPaymentConfigClick(l)},{default:d(()=>[w("span",Ce,r(l.name),1),f(h,{class:_(["tw-text-white",e.getPaymentConfigStatusDisplayClasses(l.status)])},{default:d(()=>[D(r(e.getPaymentConfigStatusDisplayText(l.status)),1)]),_:2},1032,["class"])]),_:2},1032,["onClick"]))),128)),i.showAddPaymentProvider?(t(),v(O,{key:0,class:"tw-border-t-2",onClick:p.onAddPaymentProviderButtonClick},{default:d(()=>[f(a,{"full-width":!0,label:"Add Payment Provider",size:"small",variant:"outline",onOnClick:p.onAddPaymentProviderButtonClick},null,8,["onOnClick"])]),_:1},8,["onClick"])):g("",!0)]),_:1},512)):g("",!0)])}const A=J(ee,[["render",ke]]);ee.__docgenInfo={exportName:"default",displayName:"PaymentConfigDropdown",description:"",tags:{},props:[{name:"brandPageToken",mixin:{name:"PaymentConfig.mixin",path:"PaymentConfig.mixin.js"},type:{name:"string"},required:!1},{name:"showPaymentProviderExternalId",mixin:{name:"PaymentConfig.mixin",path:"PaymentConfig.mixin.js"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"true"}},{name:"statusFilters",mixin:{name:"PaymentConfig.mixin",path:"PaymentConfig.mixin.js"},type:{name:"array"},required:!1,defaultValue:{func:!1,value:"undefined"}},{name:"showAddPaymentProvider",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"paymentConfigId",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"undefined"}}],events:[{name:"on-load",mixin:{name:"PaymentConfig.mixin",path:"PaymentConfig.mixin.js"},type:{names:["undefined"]}},{name:"on-add-payment-provider-click"},{name:"on-payment-config-selected",type:{names:["undefined"]}}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/experiences/components/PaymentConfigList/PaymentConfig.mixin.js","/Users/brooke.couchman/Projects/fe-shared-lib/src/experiences/components/PaymentConfigList/PaymentConfigDropdown.vue"]};const Be={title:"Components/PaymentConfigList",component:T},k=2e3,x=[{id:"32e1c01c-6276-4edb-821d-16f9d8a5e16b",name:"Stripe AUD",paymentProviderExternalId:void 0,paymentProviderImageUrl:"https://staging.bcassetcdn.com/assets/brand-page/payment-providers/stripe_wordmark_purple.svg",paymentProviderName:"Stripe",defaultCurrency:"USD",dashboardUrl:"https://dashboard.stripe.com",status:"PendingPreOnboarding"},{id:"ea1a0933-f3a5-486a-8943-3cea44d4c7ee",name:"Stripe USD",paymentProviderImageUrl:"https://staging.bcassetcdn.com/assets/brand-page/payment-providers/stripe_wordmark_purple.svg",paymentProviderExternalId:"acct_123456789abcdefg",paymentProviderName:"Stripe",defaultCurrency:"USD",dashboardUrl:"https://dashboard.stripe.com",status:"PendingPostOnboarding"},{id:"87dea6c0-68de-4172-984c-ff443c93413c",name:"Stripe GBP",paymentProviderExternalId:"acct_123456789abcdefg",paymentProviderImageUrl:"https://staging.bcassetcdn.com/assets/brand-page/payment-providers/stripe_wordmark_purple.svg",paymentProviderName:"Stripe",defaultCurrency:"AUD",dashboardUrl:"https://dashboard.stripe.com",status:"UnactivatedByCustomer"},{id:"450507c3-ac55-449d-b944-6daa1adba3f1",name:"Stripe EUR",paymentProviderExternalId:"acct_123456789abcdefg",paymentProviderImageUrl:"https://staging.bcassetcdn.com/assets/brand-page/payment-providers/stripe_wordmark_purple.svg",paymentProviderName:"Stripe",defaultCurrency:"GBP",dashboardUrl:"https://dashboard.stripe.com",status:"Active"}],S=()=>{const e=new C(c,{delayResponse:k}),n="6bc3885c-7e5c-4c9e-9b54-21dcd06ca647";return e.onGet(`/maker/api/brand-pages/${n}/payment-configs`).reply(200,x),{components:{PaymentConfigList:T},data(){return{brandPageToken:n}},template:`
|
|
2
|
+
<div class="tw-w-full tw-p-4" style="background: #f4f4f4">
|
|
3
|
+
<PaymentConfigList :brand-page-token="brandPageToken"/>
|
|
4
|
+
</div>
|
|
5
|
+
`}},u=()=>{const e=new C(c,{delayResponse:k}),n="6bc3885c-7e5c-4c9e-9b54-21dcd06ca647";return e.onGet(`/maker/api/brand-pages/${n}/payment-configs`).reply(200,x),{components:{PaymentConfigList:T},data(){return{brandPageToken:n}},template:`
|
|
6
|
+
<div class="tw-w-full tw-p-4" style="background: #f4f4f4">
|
|
7
|
+
<PaymentConfigList :brand-page-token="brandPageToken" :show-payment-provider-external-id="false"/>
|
|
8
|
+
</div>
|
|
9
|
+
`}};u.story={name:"Sample Stripe (Hidden External Id)"};const y=()=>{const e=new C(c,{delayResponse:k}),n="6bc3885c-7e5c-4c9e-9b54-21dcd06ca647";return e.onGet(`/maker/api/brand-pages/${n}/payment-configs`).reply(200,x),{components:{PaymentConfigDropdown:A},data(){return{brandPageToken:n}},template:`
|
|
10
|
+
<div class="tw-w-1/3 tw-p-4" style="background: #f4f4f4">
|
|
11
|
+
<PaymentConfigDropdown :brand-page-token="brandPageToken"/>
|
|
12
|
+
</div>
|
|
13
|
+
`}};y.story={name:"Dropdown Stripe"};const P=()=>{const e=new C(c,{delayResponse:k}),n="6bc3885c-7e5c-4c9e-9b54-21dcd06ca647";return e.onGet(`/maker/api/brand-pages/${n}/payment-configs`).reply(200,x),{components:{PaymentConfigDropdown:A},data(){return{brandPageToken:n}},template:`
|
|
14
|
+
<div class="tw-w-full tw-p-4" style="background: #f4f4f4">
|
|
15
|
+
<PaymentConfigDropdown :brand-page-token="brandPageToken" :status-filters="['Active']"/>
|
|
16
|
+
</div>
|
|
17
|
+
`}};P.story={name:"Dropdown Stripe with filter"};const b=()=>{const e=new C(c,{delayResponse:k}),n="00000000-0000-0000-0000-000000000000";return e.onGet(`/maker/api/brand-pages/${n}/payment-configs`).reply(200,[]),{components:{PaymentConfigDropdown:A},data(){return{brandPageToken:n}},template:`
|
|
18
|
+
<div class="tw-w-1/3 tw-p-4" style="background: #f4f4f4">
|
|
19
|
+
<PaymentConfigDropdown :brand-page-token="brandPageToken"/>
|
|
20
|
+
</div>
|
|
21
|
+
`}};b.SampleDropdownEmpty={name:"Dropdown Empty"};var L,N,B;S.parameters={...S.parameters,docs:{...(L=S.parameters)==null?void 0:L.docs,source:{originalSource:`() => {
|
|
22
|
+
const mock = new MockAdapter(axios, {
|
|
23
|
+
delayResponse: MOCK_RESPONSE_DELAY
|
|
24
|
+
});
|
|
25
|
+
const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
|
|
26
|
+
mock.onGet(\`/maker/api/brand-pages/\${brandPageToken}/payment-configs\`).reply(200, PAYMENT_CONFIGS_RESPONSE);
|
|
27
|
+
return {
|
|
28
|
+
components: {
|
|
29
|
+
PaymentConfigList
|
|
30
|
+
},
|
|
31
|
+
data() {
|
|
32
|
+
return {
|
|
33
|
+
brandPageToken
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
template: \`
|
|
37
|
+
<div class="tw-w-full tw-p-4" style="background: #f4f4f4">
|
|
38
|
+
<PaymentConfigList :brand-page-token="brandPageToken"/>
|
|
39
|
+
</div>
|
|
40
|
+
\`
|
|
41
|
+
};
|
|
42
|
+
}`,...(B=(N=S.parameters)==null?void 0:N.docs)==null?void 0:B.source}}};var I,$,R;u.parameters={...u.parameters,docs:{...(I=u.parameters)==null?void 0:I.docs,source:{originalSource:`() => {
|
|
43
|
+
const mock = new MockAdapter(axios, {
|
|
44
|
+
delayResponse: MOCK_RESPONSE_DELAY
|
|
45
|
+
});
|
|
46
|
+
const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
|
|
47
|
+
mock.onGet(\`/maker/api/brand-pages/\${brandPageToken}/payment-configs\`).reply(200, PAYMENT_CONFIGS_RESPONSE);
|
|
48
|
+
return {
|
|
49
|
+
components: {
|
|
50
|
+
PaymentConfigList
|
|
51
|
+
},
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
brandPageToken
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
template: \`
|
|
58
|
+
<div class="tw-w-full tw-p-4" style="background: #f4f4f4">
|
|
59
|
+
<PaymentConfigList :brand-page-token="brandPageToken" :show-payment-provider-external-id="false"/>
|
|
60
|
+
</div>
|
|
61
|
+
\`
|
|
62
|
+
};
|
|
63
|
+
}`,...(R=($=u.parameters)==null?void 0:$.docs)==null?void 0:R.source}}};var U,M,j;y.parameters={...y.parameters,docs:{...(U=y.parameters)==null?void 0:U.docs,source:{originalSource:`() => {
|
|
64
|
+
const mock = new MockAdapter(axios, {
|
|
65
|
+
delayResponse: MOCK_RESPONSE_DELAY
|
|
66
|
+
});
|
|
67
|
+
const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
|
|
68
|
+
mock.onGet(\`/maker/api/brand-pages/\${brandPageToken}/payment-configs\`).reply(200, PAYMENT_CONFIGS_RESPONSE);
|
|
69
|
+
return {
|
|
70
|
+
components: {
|
|
71
|
+
PaymentConfigDropdown
|
|
72
|
+
},
|
|
73
|
+
data() {
|
|
74
|
+
return {
|
|
75
|
+
brandPageToken
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
template: \`
|
|
79
|
+
<div class="tw-w-1/3 tw-p-4" style="background: #f4f4f4">
|
|
80
|
+
<PaymentConfigDropdown :brand-page-token="brandPageToken"/>
|
|
81
|
+
</div>
|
|
82
|
+
\`
|
|
83
|
+
};
|
|
84
|
+
}`,...(j=(M=y.parameters)==null?void 0:M.docs)==null?void 0:j.source}}};var G,F,V;P.parameters={...P.parameters,docs:{...(G=P.parameters)==null?void 0:G.docs,source:{originalSource:`() => {
|
|
85
|
+
const mock = new MockAdapter(axios, {
|
|
86
|
+
delayResponse: MOCK_RESPONSE_DELAY
|
|
87
|
+
});
|
|
88
|
+
const brandPageToken = '6bc3885c-7e5c-4c9e-9b54-21dcd06ca647';
|
|
89
|
+
mock.onGet(\`/maker/api/brand-pages/\${brandPageToken}/payment-configs\`).reply(200, PAYMENT_CONFIGS_RESPONSE);
|
|
90
|
+
return {
|
|
91
|
+
components: {
|
|
92
|
+
PaymentConfigDropdown
|
|
93
|
+
},
|
|
94
|
+
data() {
|
|
95
|
+
return {
|
|
96
|
+
brandPageToken
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
template: \`
|
|
100
|
+
<div class="tw-w-full tw-p-4" style="background: #f4f4f4">
|
|
101
|
+
<PaymentConfigDropdown :brand-page-token="brandPageToken" :status-filters="['Active']"/>
|
|
102
|
+
</div>
|
|
103
|
+
\`
|
|
104
|
+
};
|
|
105
|
+
}`,...(V=(F=P.parameters)==null?void 0:F.docs)==null?void 0:V.source}}};var q,Y,K;b.parameters={...b.parameters,docs:{...(q=b.parameters)==null?void 0:q.docs,source:{originalSource:`() => {
|
|
106
|
+
const mock = new MockAdapter(axios, {
|
|
107
|
+
delayResponse: MOCK_RESPONSE_DELAY
|
|
108
|
+
});
|
|
109
|
+
const brandPageToken = '00000000-0000-0000-0000-000000000000';
|
|
110
|
+
mock.onGet(\`/maker/api/brand-pages/\${brandPageToken}/payment-configs\`).reply(200, []);
|
|
111
|
+
return {
|
|
112
|
+
components: {
|
|
113
|
+
PaymentConfigDropdown
|
|
114
|
+
},
|
|
115
|
+
data() {
|
|
116
|
+
return {
|
|
117
|
+
brandPageToken
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
template: \`
|
|
121
|
+
<div class="tw-w-1/3 tw-p-4" style="background: #f4f4f4">
|
|
122
|
+
<PaymentConfigDropdown :brand-page-token="brandPageToken"/>
|
|
123
|
+
</div>
|
|
124
|
+
\`
|
|
125
|
+
};
|
|
126
|
+
}`,...(K=(Y=b.parameters)==null?void 0:Y.docs)==null?void 0:K.source}}};const Ie=["SampleStripe","SampleStripeHideExternalId","SampleDropdownStripe","SampleDropdownStripeWithFilter","SampleDropdownEmpty"];export{b as SampleDropdownEmpty,y as SampleDropdownStripe,P as SampleDropdownStripeWithFilter,S as SampleStripe,u as SampleStripeHideExternalId,Ie as __namedExportsOrder,Be as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as l,F as f,f as o,a as m,n as c,h as g,o as s}from"./vue.esm-bundler-C7QvyiW1.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const d={props:{classes:{type:[String,Object],default:""},defaultImageUrl:{type:String,required:!0},alt:{type:String,default:void 0},sources:{type:Array,default:()=>[]},dataAttribute:{type:String,default:void 0},lazyLoad:{type:Boolean,default:!0},width:{type:String,default:void 0},height:{type:String,default:void 0},styles:{type:Object,default:void 0}},data(){return{imageTagRef:"js-image-tag"}},computed:{isLazyLoading(){return this.lazyLoad?"lazy":!1}},mounted(){this.dataAttribute&&this.$refs[this.imageTagRef].setAttribute(this.dataAttribute,"")},methods:{onContextMenu(n){this.$emit("contextmenu",n)},onImgLoad(n){this.$emit("onImgLoad",n)}}},h=["srcset","media"],p=["loading","src","alt","width","height"];function L(n,u,e,b,i,a){return s(),l("picture",null,[(s(!0),l(f,null,o(e.sources,(t,r)=>(s(),l("source",{key:r,srcset:t.srcset,media:t.mediaQuery},null,8,h))),128)),m("img",{ref:i.imageTagRef,class:c(["tw-block tw-w-full",e.classes]),loading:a.isLazyLoading,src:e.defaultImageUrl,alt:e.alt,width:e.width,height:e.height,style:g(e.styles),onContextmenu:u[0]||(u[0]=(...t)=>a.onContextMenu&&a.onContextMenu(...t)),onLoad:u[1]||(u[1]=(...t)=>a.onImgLoad&&a.onImgLoad(...t))},null,46,p)])}const x=y(d,[["render",L]]);d.__docgenInfo={exportName:"default",displayName:"Picture",description:"",tags:{},props:[{name:"classes",type:{name:"string|object"},defaultValue:{func:!1,value:"''"}},{name:"defaultImageUrl",type:{name:"string"},required:!0},{name:"alt",type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"sources",type:{name:"array"},defaultValue:{func:!1,value:"[]"}},{name:"dataAttribute",type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"lazyLoad",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}},{name:"width",type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"height",type:{name:"string"},defaultValue:{func:!1,value:"undefined"}},{name:"styles",type:{name:"object"},defaultValue:{func:!1,value:"undefined"}}],events:[{name:"contextmenu",type:{names:["undefined"]}},{name:"onImgLoad",type:{names:["undefined"]}}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/Picture/Picture.vue"]};export{x as P};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import{P as s}from"./Picture-AUjTe_FO.js";import"./vue.esm-bundler-C7QvyiW1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const a={standard:{defaultImageUrl:"https://bcassetcdn.com/assets/images/web/features/features-facebook-cover@2x.png",alt:"Facebook cover",sources:[{srcset:"https://bcassetcdn.com/assets/images/web/features/features-facebook-cover.png",mediaQuery:"(min-width: 1024px)"}]},logoSearchResultsGrid:{defaultImageUrl:"https://via.placeholder.com/600x480",alt:"Logo search result thumbnail",sources:[{srcset:"https://via.placeholder.com/300x240, https://via.placeholder.com/600x480 2x"}]},designSearchResultsGrid:{defaultImageUrl:"https://via.placeholder.com/800x304",alt:"Logo search result thumbnail",sources:[{srcset:"https://via.placeholder.com/480x182, https://via.placeholder.com/960x364 2x",mediaQuery:"(max-width: 767px)"},{srcset:"https://via.placeholder.com/400x152, https://via.placeholder.com/800x304 2x",mediaQuery:"(min-width: 768px)"}]}},v={title:"Components/Picture",component:s},t=()=>({components:{Picture:s},data(){return{picture:a.standard}},template:`
|
|
2
|
+
<Picture
|
|
3
|
+
:default-image-url="picture.defaultImageUrl"
|
|
4
|
+
:sources="picture.sources"
|
|
5
|
+
:alt="picture.alt"
|
|
6
|
+
data-attribute="data-test-preview"
|
|
7
|
+
/>
|
|
8
|
+
`}),e=()=>({components:{Picture:s},data(){return{picture:a.logoSearchResultsGrid}},template:`
|
|
9
|
+
<div class="tw-container tw-max-w-300 tw-mx-auto tw-px-2 lg:tw-px-2.5 tw-mb-4">
|
|
10
|
+
<div class="tw-grid md:tw-grid-cols-3 tw-gap-5 tw-pt-8 tw-mb-12 lg:tw-grid-cols-4 tw-grid-cols-2 tw-px-2.5">
|
|
11
|
+
<div
|
|
12
|
+
v-for="index in 30"
|
|
13
|
+
:key="index"
|
|
14
|
+
class="tw-border tw-border-solid tw-border-grayscale-400"
|
|
15
|
+
>
|
|
16
|
+
<Picture
|
|
17
|
+
classes="tw-object-cover tw-w-full tw-object-top"
|
|
18
|
+
:default-image-url="picture.defaultImageUrl"
|
|
19
|
+
:sources="picture.sources"
|
|
20
|
+
:alt="picture.alt"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
`}),r=()=>({components:{Picture:s},data(){return{picture:a.designSearchResultsGrid}},template:`
|
|
26
|
+
<div class="tw-container tw-max-w-300 tw-mx-auto tw-px-2 lg:tw-px-2.5 tw-mb-4">
|
|
27
|
+
<div class="tw-grid md:tw-grid-cols-3 tw-gap-5 tw-pt-8 tw-mb-12 lg:tw-grid-cols-3 tw-grid-cols-1 tw-px-2.5">
|
|
28
|
+
<div
|
|
29
|
+
v-for="index in 30"
|
|
30
|
+
:key="index"
|
|
31
|
+
class="tw-border tw-border-solid tw-border-grayscale-400"
|
|
32
|
+
>
|
|
33
|
+
<Picture
|
|
34
|
+
classes="tw-object-cover tw-w-full tw-object-top"
|
|
35
|
+
:default-image-url="picture.defaultImageUrl"
|
|
36
|
+
:sources="picture.sources"
|
|
37
|
+
:alt="picture.alt"
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
`});var c,o,i;t.parameters={...t.parameters,docs:{...(c=t.parameters)==null?void 0:c.docs,source:{originalSource:`() => {
|
|
43
|
+
return {
|
|
44
|
+
components: {
|
|
45
|
+
Picture
|
|
46
|
+
},
|
|
47
|
+
data() {
|
|
48
|
+
return {
|
|
49
|
+
picture: pictureFixtures.standard
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
template: \`
|
|
53
|
+
<Picture
|
|
54
|
+
:default-image-url="picture.defaultImageUrl"
|
|
55
|
+
:sources="picture.sources"
|
|
56
|
+
:alt="picture.alt"
|
|
57
|
+
data-attribute="data-test-preview"
|
|
58
|
+
/>
|
|
59
|
+
\`
|
|
60
|
+
};
|
|
61
|
+
}`,...(i=(o=t.parameters)==null?void 0:o.docs)==null?void 0:i.source}}};var n,d,l;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`() => {
|
|
62
|
+
return {
|
|
63
|
+
components: {
|
|
64
|
+
Picture
|
|
65
|
+
},
|
|
66
|
+
data() {
|
|
67
|
+
return {
|
|
68
|
+
picture: pictureFixtures.logoSearchResultsGrid
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
template: \`
|
|
72
|
+
<div class="tw-container tw-max-w-300 tw-mx-auto tw-px-2 lg:tw-px-2.5 tw-mb-4">
|
|
73
|
+
<div class="tw-grid md:tw-grid-cols-3 tw-gap-5 tw-pt-8 tw-mb-12 lg:tw-grid-cols-4 tw-grid-cols-2 tw-px-2.5">
|
|
74
|
+
<div
|
|
75
|
+
v-for="index in 30"
|
|
76
|
+
:key="index"
|
|
77
|
+
class="tw-border tw-border-solid tw-border-grayscale-400"
|
|
78
|
+
>
|
|
79
|
+
<Picture
|
|
80
|
+
classes="tw-object-cover tw-w-full tw-object-top"
|
|
81
|
+
:default-image-url="picture.defaultImageUrl"
|
|
82
|
+
:sources="picture.sources"
|
|
83
|
+
:alt="picture.alt"
|
|
84
|
+
/>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
\`
|
|
89
|
+
};
|
|
90
|
+
}`,...(l=(d=e.parameters)==null?void 0:d.docs)==null?void 0:l.source}}};var u,p,w;r.parameters={...r.parameters,docs:{...(u=r.parameters)==null?void 0:u.docs,source:{originalSource:`() => {
|
|
91
|
+
return {
|
|
92
|
+
components: {
|
|
93
|
+
Picture
|
|
94
|
+
},
|
|
95
|
+
data() {
|
|
96
|
+
return {
|
|
97
|
+
picture: pictureFixtures.designSearchResultsGrid
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
template: \`
|
|
101
|
+
<div class="tw-container tw-max-w-300 tw-mx-auto tw-px-2 lg:tw-px-2.5 tw-mb-4">
|
|
102
|
+
<div class="tw-grid md:tw-grid-cols-3 tw-gap-5 tw-pt-8 tw-mb-12 lg:tw-grid-cols-3 tw-grid-cols-1 tw-px-2.5">
|
|
103
|
+
<div
|
|
104
|
+
v-for="index in 30"
|
|
105
|
+
:key="index"
|
|
106
|
+
class="tw-border tw-border-solid tw-border-grayscale-400"
|
|
107
|
+
>
|
|
108
|
+
<Picture
|
|
109
|
+
classes="tw-object-cover tw-w-full tw-object-top"
|
|
110
|
+
:default-image-url="picture.defaultImageUrl"
|
|
111
|
+
:sources="picture.sources"
|
|
112
|
+
:alt="picture.alt"
|
|
113
|
+
/>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
\`
|
|
118
|
+
};
|
|
119
|
+
}`,...(w=(p=r.parameters)==null?void 0:p.docs)==null?void 0:w.source}}};const b=["Standard","LogoSearchResultsGrid","DesignSearchResultsGrid"];export{r as DesignSearchResultsGrid,e as LogoSearchResultsGrid,t as Standard,b as __namedExportsOrder,v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as o,r as s,o as r}from"./vue.esm-bundler-C7QvyiW1.js";import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";const e={},c={class:"tw-rounded-full tw-outline-none tw-uppercase tw-py-0.5 tw-px-4 tw-select-none tw-text-center tw-text-xs"};function l(t,a,i,p,d,u){return r(),o("div",c,[s(t.$slots,"default")])}const _=n(e,[["render",l]]);e.__docgenInfo={exportName:"default",displayName:"Pill",description:"",tags:{},slots:[{name:"default"}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/Pill/Pill.vue"]};export{_ as P};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{P as n}from"./Pill-DEH_ScBa.js";import"./vue.esm-bundler-C7QvyiW1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const i={title:"Components/Pill",component:n},t=()=>({components:{Pill:n},template:`
|
|
2
|
+
<div class="tw-font-sans">
|
|
3
|
+
<Pill class="tw-text-white tw-my-2 tw-w-8" :style="{ background: 'blue' }">Blue</Pill>
|
|
4
|
+
<Pill class="tw-text-white tw-my-2 tw-w-8" :style="{ background: 'red' }">Red</Pill>
|
|
5
|
+
</div>
|
|
6
|
+
`});var e,l,s;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:`() => {
|
|
7
|
+
return {
|
|
8
|
+
components: {
|
|
9
|
+
Pill
|
|
10
|
+
},
|
|
11
|
+
template: \`
|
|
12
|
+
<div class="tw-font-sans">
|
|
13
|
+
<Pill class="tw-text-white tw-my-2 tw-w-8" :style="{ background: 'blue' }">Blue</Pill>
|
|
14
|
+
<Pill class="tw-text-white tw-my-2 tw-w-8" :style="{ background: 'red' }">Red</Pill>
|
|
15
|
+
</div>
|
|
16
|
+
\`
|
|
17
|
+
};
|
|
18
|
+
}`,...(s=(l=t.parameters)==null?void 0:l.docs)==null?void 0:s.source}}};const c=["Sample"];export{t as Sample,c as __namedExportsOrder,i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.carousel-filter__category{white-space:nowrap}.carousel-filter__category:not(:last-child){margin-right:.75rem}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import{B as k}from"./Button-IgCxbLvL.js";import{c as n,F as w,f as U,g as x,o as i,i as D}from"./vue.esm-bundler-C7QvyiW1.js";import{_ as P}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ButtonPrimary-Ce51KkgM.js";import"./Icon-B8lXgcc0.js";const p={components:{Button:k},props:{categories:{type:Array,required:!0,default:()=>[]},initialCategory:{type:String,required:!1,default:"Popular"},isDarkMode:{type:Boolean,default:!1}},data(){return{selectedCategory:null}},created(){this.selectedCategory=this.initialCategory},methods:{onSelectCategory(r){this.selectedCategory=r.name,this.$emit("on-click-category",r)}}},N={class:"tw-list-none tw-flex tw-overflow-y-hidden tw-overflow-x-auto tw-m-0 tw-p-0"};function I(r,v,o,B,y,b){const h=x("Button");return i(),n("ul",N,[(i(!0),n(w,null,U(o.categories,e=>(i(),n("li",{key:e.name,class:"carousel-filter__category"},[D(h,{label:e.name,variant:o.isDarkMode?"dark-mode-pill":"pill",active:e.name===y.selectedCategory,onOnClick:S=>b.onSelectCategory(e)},null,8,["label","variant","active","onOnClick"])]))),128))])}const s=P(p,[["render",I]]);p.__docgenInfo={exportName:"default",displayName:"PillBar",description:"",tags:{},props:[{name:"categories",type:{name:"array"},required:!0,defaultValue:{func:!1,value:"[]"}},{name:"initialCategory",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'Popular'"}},{name:"isDarkMode",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}}],events:[{name:"on-click-category",type:{names:["undefined"]}}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/PillBar/PillBar.vue"]};const f=[{name:"Popular",templateTypes:[{name:"Logo Designs",category:"Brand Identity",editorUrl:"logo-design-modal",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-logo-design@2x.png",carouselImageUrl:null,dimensions:"1280 x 1024",description:"View and edit your logo",height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Logo Designs",pluralName:"Logo Designs",token:"b0349875-33ac-4b93-a581-42f93255f461"},{name:"Business Card",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/business%20card%20horizontal",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-business-card@2x.png",carouselImageUrl:null,dimensions:"3.5 x 2 in",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:null,pluralName:"Business Cards",token:"4b6158b3-c992-4799-a838-d060565c32e7"},{name:"Facebook cover",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/facebook%20cover",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-facebook@2x.png",carouselImageUrl:null,dimensions:"820 x 312 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Facebook Cover",pluralName:"Facebook Covers",token:"fd5a796f-4f74-46a4-b5eb-cf5e478cd095"},{name:"Instagram post",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/instagram%20post",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-instagram@2x.png",carouselImageUrl:null,dimensions:"1080 x 1080 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Instagram Post",pluralName:"Instagram Posts",token:"bce84983-7d85-499e-8b82-3474b625867e"},{name:"Brand Page",category:"Website",editorUrl:"/maker/brand-page/manage/create?logoDraftToken=32e0c206-edc5-4452-9925-2ab43ffd947c",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-business-card-vertical@2x.png",carouselImageUrl:null,dimensions:"Default",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Web Page",pluralName:"Web Pages",token:"88102dd6-2601-48b2-b6a3-1ab6f5600ce7"},{name:"Facebook post",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/facebook%20post",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-facebook@2x.png",carouselImageUrl:null,dimensions:"940 x 788 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Facebook Post",pluralName:"Facebook Posts",token:"f6ecd7bd-ed25-4e9e-b500-a1452defb15e"},{name:"YouTube cover (channel art)",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/youtube%20cover%20(channel%20art)",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-youtube@2x.png",carouselImageUrl:null,dimensions:"2560 x 1440 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"YouTube Banner",pluralName:"YouTube Banners",token:"b5f801a9-625f-45df-bf31-af2ccf594018"}]},{name:"Social Media Covers",templateTypes:[{name:"Facebook cover",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/facebook%20cover",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-facebook@2x.png",carouselImageUrl:null,dimensions:"820 x 312 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Facebook Cover",pluralName:"Facebook Covers",token:"fd5a796f-4f74-46a4-b5eb-cf5e478cd095"},{name:"YouTube cover (channel art)",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/youtube%20cover%20(channel%20art)",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-youtube@2x.png",carouselImageUrl:null,dimensions:"2560 x 1440 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"YouTube Banner",pluralName:"YouTube Banners",token:"b5f801a9-625f-45df-bf31-af2ccf594018"},{name:"Twitch banner",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/twitch%20banner",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-tiwtch@2x.png",carouselImageUrl:null,dimensions:"1920 x 480 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Twitch Banner",pluralName:"Twitch Banners",token:"73529324-07c5-4306-b230-89a200f30f76"},{name:"LinkedIn banner",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/linkedin%20banner",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-linkedin@2x.png",carouselImageUrl:null,dimensions:"1584 x 396 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"LinkedIn Banner",pluralName:"LinkedIn Banners",token:"47b661fe-05f7-4d75-ae79-7c1b2d582978"},{name:"Facebook event cover",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/facebook%20event%20cover",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-facebook-event@2x.png",carouselImageUrl:null,dimensions:"1920 x 1080 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Facebook Event Cover",pluralName:"Facebook Event Covers",token:"b239cf78-9c34-492f-a9ff-e66e3e1b40e7"},{name:"SoundCloud banner",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/soundcloud%20banner",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-soundcloud@2x.png",carouselImageUrl:null,dimensions:"2480 x 520 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"SoundCloud Banner",pluralName:"SoundCloud Banners",token:"7344e35c-e6ba-4f20-8957-9fb3bc02d190"},{name:"Tumblr banner",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/tumblr%20banner",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-tumblr@2x.png",carouselImageUrl:null,dimensions:"3000 x 1055 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Tumblr Banner",pluralName:"Tumblr Banners",token:"709b5da5-9cd3-469d-9ed0-b93649b0803e"},{name:"Twitter header (cover)",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/twitter%20header%20(cover)",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-twitter@2x.png",carouselImageUrl:null,dimensions:"1500 x 500 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Twitter Header",pluralName:"Twitter Headers",token:"f99d0426-fd9e-4d59-a38c-b3160949a089"},{name:"Pinterest board cover",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/pinterest%20board%20cover",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-pinterest@2x.png",carouselImageUrl:null,dimensions:"222 x 150 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Pinterest Covers",pluralName:"Pinterest Board Covers",token:"c4b8232c-cb16-4126-9a01-2312d70e1e88"},{name:"Zoom background",category:"Social Media Covers",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/zoom%20background",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-cover-zoom@2x.png",carouselImageUrl:null,dimensions:"1280 x 720 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Zoom Background",pluralName:"Zoom Backgrounds",token:"c08e1a37-0472-444b-95a2-f37a663c0f5f"}]},{name:"Social Media Posts",templateTypes:[{name:"Instagram post",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/instagram%20post",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-instagram@2x.png",carouselImageUrl:null,dimensions:"1080 x 1080 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Instagram Post",pluralName:"Instagram Posts",token:"bce84983-7d85-499e-8b82-3474b625867e"},{name:"Instagram story",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/instagram%20story",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-instagram-story@2x.png",carouselImageUrl:null,dimensions:"1080 x 1920 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Instagram Story",pluralName:"Instagram Stories",token:"606e1476-be7e-40d1-b41e-fd656bf7d7df"},{name:"Facebook post",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/facebook%20post",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-facebook@2x.png",carouselImageUrl:null,dimensions:"940 x 788 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Facebook Post",pluralName:"Facebook Posts",token:"f6ecd7bd-ed25-4e9e-b500-a1452defb15e"},{name:"Tumblr post",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/tumblr%20post",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-tumblr@2x.png",carouselImageUrl:null,dimensions:"500 x 750 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Tumblr Post",pluralName:"Tumblr Posts",token:"cce321b7-3fa9-4b9b-b588-0bce143b92e5"},{name:"Facebook story",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/facebook%20story",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-facebook-story@2x.png",carouselImageUrl:null,dimensions:"1080 x 1920 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Facebook Story",pluralName:"Facebook Stories",token:"b9500b5e-a010-4654-a1d1-572e8465ecbe"},{name:"Whatsapp story",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/whatsapp%20story",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-whatsapp@2x.png",carouselImageUrl:null,dimensions:"1080 x 1920 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Whatsapp Story",pluralName:"Whatsapp Stories",token:"a7b11991-2fb2-4e99-82b2-ac6303f3b0e1"},{name:"YouTube thumbnail (on videos)",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/youtube%20thumbnail%20(on%20videos)",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-youtube-thumbnail@2x.png",carouselImageUrl:null,dimensions:"1280 x 720 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"YouTube Thumbnail",pluralName:"YouTube Thumbnails",token:"f414305c-eda8-4af0-a7a3-8de64f696c01"},{name:"Facebook ad",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/facebook%20ad",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-facebook-ad@2x.png",carouselImageUrl:null,dimensions:"1200 x 628 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Facebook Ad",pluralName:"Facebook Ads",token:"a5c8754a-ebe3-4074-8a57-a0b70f1e47b9"},{name:"Twitter post",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/twitter%20post",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-twitter@2x.png",carouselImageUrl:null,dimensions:"1024 x 512 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Twitter Post",pluralName:"Twitter Posts",token:"e5dc0278-7e12-48dc-813f-f212bbbc747e"},{name:"Snapchat geofilters, ads and lenses",category:"Social Media Posts",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/snapchat%20geofilters,%20ads%20and%20lenses",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-social-media-post-snapchat@2x.png",carouselImageUrl:null,dimensions:"1080 x 1920 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Snapchat Design",pluralName:"Snapchat Designs",token:"16680a40-3922-4e52-9787-ba0ecbd05ea9"}]},{name:"Profile Pictures",templateTypes:[{name:"Facebook profile picture",category:"Profile Pictures",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/facebook%20profile%20picture",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-facebook@2x.png",carouselImageUrl:null,dimensions:"1000 x 1000 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Facebook Profile Picture",pluralName:"Facebook Profile Pictures",token:"de3f1998-4daa-4f00-94f1-805d44909ca9"},{name:"Instagram profile picture",category:"Profile Pictures",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/instagram%20profile%20picture",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-instagram@2x.png",carouselImageUrl:null,dimensions:"1000 x 1000 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Instagram Profile Picture",pluralName:"Instagram Profile Pictures",token:"c935053f-449a-4c15-8c66-73f7899d8de7"},{name:"Twitch profile picture",category:"Profile Pictures",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/twitch%20profile%20picture",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-twitch@2x.png",carouselImageUrl:null,dimensions:"1000 x 1000 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Twitch Profile Picture",pluralName:"Twitch Profile Pictures",token:"590a763d-0c35-4ec8-ad43-cd20a06f40e8"},{name:"LinkedIn profile picture",category:"Profile Pictures",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/linkedin%20profile%20picture",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-linkedin@2x.png",carouselImageUrl:null,dimensions:"1000 x 1000 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"LinkedIn Profile Picture",pluralName:"LinkedIn Profile Pictures",token:"9e372479-f436-4349-8ed1-911ea2f914c7"},{name:"YouTube channel icon",category:"Profile Pictures",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/youtube%20channel%20icon",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-youtube@2x.png",carouselImageUrl:null,dimensions:"1000 x 1000 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"YouTube Channel Icon",pluralName:"YouTube Channel Icons",token:"4a2314ac-927f-466e-97eb-36d84fb67a44"},{name:"Twitter profile picture",category:"Profile Pictures",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/twitter%20profile%20picture",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-twitter@2x.png",carouselImageUrl:null,dimensions:"1000 x 1000 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Twitter Profile Picture",pluralName:"Twitter Profile Pictures",token:"11e94819-27dc-44b8-b6ff-6d2961a25f84"},{name:"SoundCloud profile picture",category:"Profile Pictures",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/soundcloud%20profile%20picture",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-soundcloud@2x.png",carouselImageUrl:null,dimensions:"1000 x 1000 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"SoundCloud Profile Picture",pluralName:"SoundCloud Profile Pictures",token:"5d9756fa-1e59-4e53-b4b1-e44bfad6f83f"},{name:"Pinterest profile picture",category:"Profile Pictures",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/pinterest%20profile%20picture",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-pinterest@2x.png",carouselImageUrl:null,dimensions:"1000 x 1000 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Pinterest Profile Picture",pluralName:"Pinterest Profile Pictures",token:"40d1de23-89c5-4806-83d5-6dd653bd07e1"},{name:"Tumblr profile picture",category:"Profile Pictures",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/tumblr%20profile%20picture",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-profile-pic-tumblr@2x.png",carouselImageUrl:null,dimensions:"1000 x 1000 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Tumblr Profile Picture",pluralName:"Tumblr Profile Pictures",token:"3a892cea-41b0-422b-bea3-29bb3497ba6c"}]},{name:"Brand Identity",templateTypes:[{name:"Business card horizontal",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/business%20card%20horizontal",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-business-card@2x.png",carouselImageUrl:null,dimensions:"3.5 x 2 in",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Business Card",pluralName:"Business cards horizontal",token:"4b6158b3-c992-4799-a838-d060565c32e7"},{name:"Business card square",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/business%20card%20square",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-business-card-square@2x.png",carouselImageUrl:null,dimensions:"2.5 x 2.5 in",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Business Card",pluralName:"Business cards square",token:"0707e6b7-f460-4b11-808f-24a9178e304f"},{name:"Business card vertical",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/business%20card%20vertical",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-business-card-vertical@2x.png",carouselImageUrl:null,dimensions:"2 x 3.5 in",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Business Card",pluralName:"Business cards vertical",token:"1e42a0e3-3c5a-4226-b884-3e3bcaa5d3f4"},{name:"Email Signature",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/email%20signature",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-email-signature@2x.png",carouselImageUrl:null,dimensions:"600 x 200 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Email Signature",pluralName:"Email Signatures",token:"ef11f0d4-5549-4c26-9e3f-ccac8c91e4a2"},{name:"Letterhead",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/letterhead",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-letterhead@2x.png",carouselImageUrl:null,dimensions:"21 x 29.7 cm (A4)",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Letterhead",pluralName:"Letterheads",token:"eef6343e-4d4e-49e5-b4ae-ea73418daf3e"},{name:"Favicon",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/favicon",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-favicon@2x.png",carouselImageUrl:null,dimensions:"32 x 32 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Favicon",pluralName:"Favicons",token:"c83da9fb-e514-450c-995b-240f6b68966d"},{name:"Poster",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/poster",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-poster@2x.png",carouselImageUrl:null,dimensions:"598 x 845 mm (A1)",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Poster",pluralName:"Posters",token:"ff5b1fe0-ac40-4ad2-9ca1-99eae9daad7f"},{name:"Flyer",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/flyer",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-flyer@2x.png",carouselImageUrl:null,dimensions:"21 x 29.7 cm (A4)",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Flyer",pluralName:"Flyers",token:"c34f4e0b-ea57-4d5d-9a64-ac410fd647d2"},{name:"Invoice",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/invoice",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-invoice@2x.png",carouselImageUrl:null,dimensions:"21 x 29.7 cm (A4)",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Invoice",pluralName:"Invoices",token:"60456c4c-158e-4c90-a3cc-1d0d20ae2eb6"},{name:"Menu",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/menu",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-menu@2x.png",carouselImageUrl:null,dimensions:"21 x 29.7 cm (A4)",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Menu",pluralName:"Menus",token:"ab7d3c84-63b6-4ac5-8b76-11190c220869"},{name:"Postcard",category:"Brand Identity",editorUrl:"/maker/mydesigns/new/32e0c206-edc5-4452-9925-2ab43ffd947c/postcard",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-postcard@2x.png",carouselImageUrl:null,dimensions:"151 x 108 mm (A6)",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Postcard",pluralName:"Postcards",token:"581e5ddd-b180-4789-b573-b1f2330b9a0f"},{name:"Logo Designs",category:"Brand Identity",editorUrl:"logo-design-modal",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-brand-identity-logo-design@2x.png",carouselImageUrl:null,dimensions:"1280 x 1024",description:"View and edit your logo",height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:"Logo Designs",pluralName:"Logo Designs",token:"b0349875-33ac-4b93-a581-42f93255f461"}]},{name:"Custom Design",templateTypes:[{name:"Square",category:null,editorUrl:"/maker/mydesigns/new/customdesign?h=1080&w=1080&logoDraftToken=32e0c206-edc5-4452-9925-2ab43ffd947c",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-custom-square.png",carouselImageUrl:null,dimensions:"1080 x 1080 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:null,pluralName:"Square",token:"00000000-0000-0000-0000-000000000000"},{name:"Portrait",category:null,editorUrl:"/maker/mydesigns/new/customdesign?h=1080&w=720&logoDraftToken=32e0c206-edc5-4452-9925-2ab43ffd947c",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-custom-portrait.png",carouselImageUrl:null,dimensions:"1080 x 720 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:null,pluralName:"Portrait",token:"00000000-0000-0000-0000-000000000000"},{name:"Landscape",category:null,editorUrl:"/maker/mydesigns/new/customdesign?h=720&w=1080&logoDraftToken=32e0c206-edc5-4452-9925-2ab43ffd947c",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-custom-landscape.png",carouselImageUrl:null,dimensions:"720 x 1080 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:null,pluralName:"Landscape",token:"00000000-0000-0000-0000-000000000000"},{name:"Tall",category:null,editorUrl:"/maker/mydesigns/new/customdesign?h=1280&w=640&logoDraftToken=32e0c206-edc5-4452-9925-2ab43ffd947c",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-custom-tall.png",carouselImageUrl:null,dimensions:"1280 x 640 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:null,pluralName:"Tall",token:"00000000-0000-0000-0000-000000000000"},{name:"Wide",category:null,editorUrl:"/maker/mydesigns/new/customdesign?h=640&w=1280&logoDraftToken=32e0c206-edc5-4452-9925-2ab43ffd947c",imageUrl:"https://localhost:8101/images/brandcrowd/maker/maker-generic-custom-wide.png",carouselImageUrl:null,dimensions:"640 x 1280 px",description:null,height:null,width:null,smallDisplay:0,largeDisplay:0,slug:null,friendlyName:null,pluralName:"Wide",token:"00000000-0000-0000-0000-000000000000"}]}],L={title:"Components/PillBar",component:s},l=()=>({components:{PillBar:s},data(){return{categories:f}},template:`
|
|
2
|
+
<div class="tw-max-w-300">
|
|
3
|
+
<PillBar :categories="categories" />
|
|
4
|
+
</div>
|
|
5
|
+
`}),a=()=>({components:{PillBar:s},data(){return{categories:f}},template:`
|
|
6
|
+
<div class="tw-max-w-300 tw-bg-black tw-p-8">
|
|
7
|
+
<PillBar :categories="categories" is-dark-mode />
|
|
8
|
+
</div>
|
|
9
|
+
`});var t,c,d;l.parameters={...l.parameters,docs:{...(t=l.parameters)==null?void 0:t.docs,source:{originalSource:`() => {
|
|
10
|
+
return {
|
|
11
|
+
components: {
|
|
12
|
+
PillBar
|
|
13
|
+
},
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
categories
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
template: \`
|
|
20
|
+
<div class="tw-max-w-300">
|
|
21
|
+
<PillBar :categories="categories" />
|
|
22
|
+
</div>
|
|
23
|
+
\`
|
|
24
|
+
};
|
|
25
|
+
}`,...(d=(c=l.parameters)==null?void 0:c.docs)==null?void 0:d.source}}};var m,u,g;a.parameters={...a.parameters,docs:{...(m=a.parameters)==null?void 0:m.docs,source:{originalSource:`() => {
|
|
26
|
+
return {
|
|
27
|
+
components: {
|
|
28
|
+
PillBar
|
|
29
|
+
},
|
|
30
|
+
data() {
|
|
31
|
+
return {
|
|
32
|
+
categories
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
template: \`
|
|
36
|
+
<div class="tw-max-w-300 tw-bg-black tw-p-8">
|
|
37
|
+
<PillBar :categories="categories" is-dark-mode />
|
|
38
|
+
</div>
|
|
39
|
+
\`
|
|
40
|
+
};
|
|
41
|
+
}`,...(g=(u=a.parameters)==null?void 0:u.docs)==null?void 0:g.source}}};const Y=["Sample","SampleDarkMode"];export{l as Sample,a as SampleDarkMode,Y as __namedExportsOrder,L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s,t as a,o as i}from"./vue.esm-bundler-C7QvyiW1.js";import{_ as l}from"./_plugin-vue_export-helper-DlAUqK2U.js";const n={props:{amount:{type:[Number,String],required:!1,default:null},alwaysShowFraction:{type:Boolean,required:!1,default:!0},currency:{type:Object,required:!1,default:null},fraction:{type:[Number,String],required:!1,default:0},showAbbreviation:{type:Boolean,required:!1,default:!1},wrapInParentheses:{type:Boolean,requred:!1,default:!1},suffix:{type:String,required:!1,default:""},isDomainCredit:{type:Boolean,required:!1,default:!1}},computed:{amountFormatted(){if(this.isDomainCredit)return"Domain credit used";if(!this.amount||this.amount===0)return"Free";const e=Number.parseFloat(this.amount);return Number.isNaN(e)?this.amount:!(e%1!==0)&&!this.alwaysShowFraction?e.toFixed(0):e.toFixed(this.fraction)},currencyAbbreviation(){var e,r;return this.showAbbreviation&&this.amount>0?(r=(e=this.currency)==null?void 0:e.abbreviation)==null?void 0:r.trim():""},currencySymbol(){var e,r;return!this.amount||this.amount===0?"":((r=(e=this.currency)==null?void 0:e.symbol)==null?void 0:r.trim())??"$"},isSymbolPlacedBeforePrice(){var e,r;return((e=this.currency)==null?void 0:e.isSymbolPlacedBeforePrice)==null?!0:((r=this.currency)==null?void 0:r.isSymbolPlacedBeforePrice)===!0},currencySymbolBefore(){return this.isSymbolPlacedBeforePrice?this.currencySymbol:""},currencySymbolAfter(){return this.isSymbolPlacedBeforePrice?"":this.currencySymbol},optionalLeftParenthesis(){return this.wrapInParentheses?"(":""},optionalRightParenthesis(){return this.wrapInParentheses?")":""}}},o={class:"notranslate"};function c(e,r,u,f,m,t){return i(),s("span",o,a(t.optionalLeftParenthesis)+a(t.currencyAbbreviation)+a(t.currencySymbolBefore)+a(t.amountFormatted)+a(t.currencySymbolAfter)+a(t.optionalRightParenthesis)+a(u.suffix),1)}const h=l(n,[["render",c]]);n.__docgenInfo={exportName:"default",displayName:"Price",description:"",tags:{},props:[{name:"amount",type:{name:"number|string"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"alwaysShowFraction",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"true"}},{name:"currency",type:{name:"object"},required:!1,defaultValue:{func:!1,value:"null"}},{name:"fraction",type:{name:"number|string"},required:!1,defaultValue:{func:!1,value:"0"}},{name:"showAbbreviation",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"wrapInParentheses",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"suffix",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"''"}},{name:"isDomainCredit",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/Price/Price.vue"]};export{h as P};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import{P as a}from"./Price-BzFp3dn5.js";import"./vue.esm-bundler-C7QvyiW1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const N={id:1,name:"United State Dollars",iso4127Code:"USD",symbol:"$",abbreviation:"US"},T={id:2,name:"Australian Dollars",iso4127Code:"AUD",symbol:"$",abbreviation:"AU"},j={id:999,name:"Euro",iso4127Code:"EUR",symbol:"€",abbreviation:"EU"},s=[N,T,j],U={title:"Components/Price",component:a,args:{currencyName:s[0].name},argTypes:{amount:{type:"number"},currencyName:{control:{type:"select"},options:s.map(n=>n.name)}}},t={render:(n,{argTypes:e})=>({components:{Price:a},props:Object.keys(e),setup(){return{args:n}},computed:{selectedCurrency(){return s.find(r=>r.name===this.args.currencyName)}},template:`
|
|
2
|
+
<span>
|
|
3
|
+
<price
|
|
4
|
+
v-bind="args"
|
|
5
|
+
:currency="selectedCurrency"
|
|
6
|
+
/>
|
|
7
|
+
</span>
|
|
8
|
+
`}),args:{amount:45}},c={render:(n,{argTypes:e})=>({components:{Price:a},props:Object.keys(e),setup(){return{args:n}},computed:{selectedCurrency(){return s.find(r=>r.name===this.args.currencyName)}},template:`
|
|
9
|
+
<span>
|
|
10
|
+
<price
|
|
11
|
+
v-bind="args"
|
|
12
|
+
:currency="selectedCurrency"
|
|
13
|
+
fraction="2"
|
|
14
|
+
:show-abbreviation="true"
|
|
15
|
+
/>
|
|
16
|
+
</span>
|
|
17
|
+
`}),args:{amount:22.5}},o={render:(n,{argTypes:e})=>({components:{Price:a},props:Object.keys(e),setup(){return{args:n}},computed:{selectedCurrency(){return s.find(r=>r.name===this.args.currencyName)}},template:`
|
|
18
|
+
<span>
|
|
19
|
+
<price
|
|
20
|
+
v-bind="args"
|
|
21
|
+
:always-show-fraction="true"
|
|
22
|
+
:currency="selectedCurrency"
|
|
23
|
+
fraction="2"
|
|
24
|
+
:show-abbreviation="true"
|
|
25
|
+
/>
|
|
26
|
+
</span>
|
|
27
|
+
`}),args:{amount:22}},u={render:(n,{argTypes:e})=>({components:{Price:a},props:Object.keys(e),setup(){return{args:n}},computed:{selectedCurrency(){return s.find(r=>r.name===this.args.currencyName)}},template:`
|
|
28
|
+
<span>
|
|
29
|
+
<price
|
|
30
|
+
v-bind="args"
|
|
31
|
+
:always-show-fraction="false"
|
|
32
|
+
:currency="selectedCurrency"
|
|
33
|
+
fraction="2"
|
|
34
|
+
:show-abbreviation="true"
|
|
35
|
+
/>
|
|
36
|
+
</span>
|
|
37
|
+
`}),args:{amount:22}},p={render:(n,{argTypes:e})=>({components:{Price:a},props:Object.keys(e),setup(){return{args:n}},computed:{selectedCurrency(){return s.find(r=>r.name===this.args.currencyName)}},template:`
|
|
38
|
+
<span>
|
|
39
|
+
<price
|
|
40
|
+
v-bind="args"
|
|
41
|
+
:always-show-fraction="true"
|
|
42
|
+
:currency="selectedCurrency"
|
|
43
|
+
fraction="2"
|
|
44
|
+
:show-abbreviation="true"
|
|
45
|
+
:suffix="suffix"
|
|
46
|
+
/>
|
|
47
|
+
</span>
|
|
48
|
+
`}),args:{amount:22,suffix:"/yr"}};var i,m,d;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`{
|
|
49
|
+
render: (args, {
|
|
50
|
+
argTypes
|
|
51
|
+
}) => {
|
|
52
|
+
return {
|
|
53
|
+
components: {
|
|
54
|
+
Price
|
|
55
|
+
},
|
|
56
|
+
props: Object.keys(argTypes),
|
|
57
|
+
setup() {
|
|
58
|
+
return {
|
|
59
|
+
args
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
computed: {
|
|
63
|
+
selectedCurrency() {
|
|
64
|
+
return currencies.find(x => x.name === this.args.currencyName);
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
template: \`
|
|
68
|
+
<span>
|
|
69
|
+
<price
|
|
70
|
+
v-bind="args"
|
|
71
|
+
:currency="selectedCurrency"
|
|
72
|
+
/>
|
|
73
|
+
</span>
|
|
74
|
+
\`
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
args: {
|
|
78
|
+
amount: 45
|
|
79
|
+
}
|
|
80
|
+
}`,...(d=(m=t.parameters)==null?void 0:m.docs)==null?void 0:d.source}}};var y,l,g;c.parameters={...c.parameters,docs:{...(y=c.parameters)==null?void 0:y.docs,source:{originalSource:`{
|
|
81
|
+
render: (args, {
|
|
82
|
+
argTypes
|
|
83
|
+
}) => {
|
|
84
|
+
return {
|
|
85
|
+
components: {
|
|
86
|
+
Price
|
|
87
|
+
},
|
|
88
|
+
props: Object.keys(argTypes),
|
|
89
|
+
setup() {
|
|
90
|
+
return {
|
|
91
|
+
args
|
|
92
|
+
};
|
|
93
|
+
},
|
|
94
|
+
computed: {
|
|
95
|
+
selectedCurrency() {
|
|
96
|
+
return currencies.find(x => x.name === this.args.currencyName);
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
template: \`
|
|
100
|
+
<span>
|
|
101
|
+
<price
|
|
102
|
+
v-bind="args"
|
|
103
|
+
:currency="selectedCurrency"
|
|
104
|
+
fraction="2"
|
|
105
|
+
:show-abbreviation="true"
|
|
106
|
+
/>
|
|
107
|
+
</span>
|
|
108
|
+
\`
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
args: {
|
|
112
|
+
amount: 22.5
|
|
113
|
+
}
|
|
114
|
+
}`,...(g=(l=c.parameters)==null?void 0:l.docs)==null?void 0:g.source}}};var f,b,h;o.parameters={...o.parameters,docs:{...(f=o.parameters)==null?void 0:f.docs,source:{originalSource:`{
|
|
115
|
+
render: (args, {
|
|
116
|
+
argTypes
|
|
117
|
+
}) => {
|
|
118
|
+
return {
|
|
119
|
+
components: {
|
|
120
|
+
Price
|
|
121
|
+
},
|
|
122
|
+
props: Object.keys(argTypes),
|
|
123
|
+
setup() {
|
|
124
|
+
return {
|
|
125
|
+
args
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
computed: {
|
|
129
|
+
selectedCurrency() {
|
|
130
|
+
return currencies.find(x => x.name === this.args.currencyName);
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
template: \`
|
|
134
|
+
<span>
|
|
135
|
+
<price
|
|
136
|
+
v-bind="args"
|
|
137
|
+
:always-show-fraction="true"
|
|
138
|
+
:currency="selectedCurrency"
|
|
139
|
+
fraction="2"
|
|
140
|
+
:show-abbreviation="true"
|
|
141
|
+
/>
|
|
142
|
+
</span>
|
|
143
|
+
\`
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
args: {
|
|
147
|
+
amount: 22.0
|
|
148
|
+
}
|
|
149
|
+
}`,...(h=(b=o.parameters)==null?void 0:b.docs)==null?void 0:h.source}}};var w,C,v;u.parameters={...u.parameters,docs:{...(w=u.parameters)==null?void 0:w.docs,source:{originalSource:`{
|
|
150
|
+
render: (args, {
|
|
151
|
+
argTypes
|
|
152
|
+
}) => {
|
|
153
|
+
return {
|
|
154
|
+
components: {
|
|
155
|
+
Price
|
|
156
|
+
},
|
|
157
|
+
props: Object.keys(argTypes),
|
|
158
|
+
setup() {
|
|
159
|
+
return {
|
|
160
|
+
args
|
|
161
|
+
};
|
|
162
|
+
},
|
|
163
|
+
computed: {
|
|
164
|
+
selectedCurrency() {
|
|
165
|
+
return currencies.find(x => x.name === this.args.currencyName);
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
template: \`
|
|
169
|
+
<span>
|
|
170
|
+
<price
|
|
171
|
+
v-bind="args"
|
|
172
|
+
:always-show-fraction="false"
|
|
173
|
+
:currency="selectedCurrency"
|
|
174
|
+
fraction="2"
|
|
175
|
+
:show-abbreviation="true"
|
|
176
|
+
/>
|
|
177
|
+
</span>
|
|
178
|
+
\`
|
|
179
|
+
};
|
|
180
|
+
},
|
|
181
|
+
args: {
|
|
182
|
+
amount: 22.0
|
|
183
|
+
}
|
|
184
|
+
}`,...(v=(C=u.parameters)==null?void 0:C.docs)==null?void 0:v.source}}};var x,S,O;p.parameters={...p.parameters,docs:{...(x=p.parameters)==null?void 0:x.docs,source:{originalSource:`{
|
|
185
|
+
render: (args, {
|
|
186
|
+
argTypes
|
|
187
|
+
}) => {
|
|
188
|
+
return {
|
|
189
|
+
components: {
|
|
190
|
+
Price
|
|
191
|
+
},
|
|
192
|
+
props: Object.keys(argTypes),
|
|
193
|
+
setup() {
|
|
194
|
+
return {
|
|
195
|
+
args
|
|
196
|
+
};
|
|
197
|
+
},
|
|
198
|
+
computed: {
|
|
199
|
+
selectedCurrency() {
|
|
200
|
+
return currencies.find(x => x.name === this.args.currencyName);
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
template: \`
|
|
204
|
+
<span>
|
|
205
|
+
<price
|
|
206
|
+
v-bind="args"
|
|
207
|
+
:always-show-fraction="true"
|
|
208
|
+
:currency="selectedCurrency"
|
|
209
|
+
fraction="2"
|
|
210
|
+
:show-abbreviation="true"
|
|
211
|
+
:suffix="suffix"
|
|
212
|
+
/>
|
|
213
|
+
</span>
|
|
214
|
+
\`
|
|
215
|
+
};
|
|
216
|
+
},
|
|
217
|
+
args: {
|
|
218
|
+
amount: 22.0,
|
|
219
|
+
suffix: '/yr'
|
|
220
|
+
}
|
|
221
|
+
}`,...(O=(S=p.parameters)==null?void 0:S.docs)==null?void 0:O.source}}};const F=["Sample","WithFraction","AlwaysShowFractionOn","AlwaysShowFractionOff","WithSuffix"];export{u as AlwaysShowFractionOff,o as AlwaysShowFractionOn,t as Sample,c as WithFraction,p as WithSuffix,F as __namedExportsOrder,U as default};
|