@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,35 @@
|
|
|
1
|
+
import{E}from"./event-constants-6ydiL1p5.js";import{U as r}from"./UploadYourLogoDropzone-Cxgdqo37.js";import"./vue.esm-bundler-C7QvyiW1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const L={title:"Components/UploadYourLogoDropzone",component:r},o=()=>(window.addEventListener(E.BeginUploadLogoExperience,n=>{console.log("BEGIN_UPLOAD_LOGO_EXPERIENCE",n)}),{components:{UploadYourLogoDropzone:r},template:`
|
|
2
|
+
<UploadYourLogoDropzone />
|
|
3
|
+
`}),e=()=>(window.addEventListener(E.BeginUploadLogoExperience,n=>{console.log("BEGIN_UPLOAD_LOGO_EXPERIENCE",n)}),{components:{UploadYourLogoDropzone:r},template:`
|
|
4
|
+
<div>
|
|
5
|
+
<UploadYourLogoDropzone
|
|
6
|
+
:should-open-upload-when-mounted="true" />
|
|
7
|
+
</div>
|
|
8
|
+
`});var p,t,a;o.parameters={...o.parameters,docs:{...(p=o.parameters)==null?void 0:p.docs,source:{originalSource:`() => {
|
|
9
|
+
window.addEventListener(Events.BeginUploadLogoExperience, e => {
|
|
10
|
+
console.log('BEGIN_UPLOAD_LOGO_EXPERIENCE', e);
|
|
11
|
+
});
|
|
12
|
+
return {
|
|
13
|
+
components: {
|
|
14
|
+
UploadYourLogoDropzone
|
|
15
|
+
},
|
|
16
|
+
template: \`
|
|
17
|
+
<UploadYourLogoDropzone />
|
|
18
|
+
\`
|
|
19
|
+
};
|
|
20
|
+
}`,...(a=(t=o.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};var d,s,l;e.parameters={...e.parameters,docs:{...(d=e.parameters)==null?void 0:d.docs,source:{originalSource:`() => {
|
|
21
|
+
window.addEventListener(Events.BeginUploadLogoExperience, e => {
|
|
22
|
+
console.log('BEGIN_UPLOAD_LOGO_EXPERIENCE', e);
|
|
23
|
+
});
|
|
24
|
+
return {
|
|
25
|
+
components: {
|
|
26
|
+
UploadYourLogoDropzone
|
|
27
|
+
},
|
|
28
|
+
template: \`
|
|
29
|
+
<div>
|
|
30
|
+
<UploadYourLogoDropzone
|
|
31
|
+
:should-open-upload-when-mounted="true" />
|
|
32
|
+
</div>
|
|
33
|
+
\`
|
|
34
|
+
};
|
|
35
|
+
}`,...(l=(s=e.parameters)==null?void 0:s.docs)==null?void 0:l.source}}};const g=["Sample","SampleExternallyInvoked"];export{o as Sample,e as SampleExternallyInvoked,g as __namedExportsOrder,L as default};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import{a as B}from"./axios-dxcvQi4N.js";import{B as j}from"./Button-IgCxbLvL.js";import{E as c}from"./event-constants-6ydiL1p5.js";import{A as g}from"./api-lSJGRrF2.js";import{t as f}from"./tracking-ATsLLehC.js";import{c as u,a as t,h as E,n as o,j as k,i as M,t as T,g as I,o as w}from"./vue.esm-bundler-C7QvyiW1.js";import{_ as q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ButtonPrimary-Ce51KkgM.js";import"./Icon-B8lXgcc0.js";const R={components:{Button:j},props:{logoImageUrl:{type:String,required:!0},aspectRatio:{type:Number,required:!0},eventCategory:{type:String,required:!0},useLandscapeTile:{type:Boolean,required:!1,default:!1},alternativeLayout:{type:Boolean,required:!1,default:!1}},data(){return{extraWideLandscape:this.useLandscapeTile&&this.aspectRatio<=30}},computed:{replaceButtonLabel(){return this.alternativeLayout?"Replace":"Replace Logo"},deleteButtonLabel(){return this.alternativeLayout?"Delete":"Delete Logo"}},methods:{onDeleteButtonClick(){this.isRunning||(this.isRunning=!0,f({eventCategory:this.eventCategory,eventAction:"deleteLogo",eventLabel:"Clicked_Delete_Logo_Search",event:"click"}),B({method:"post",url:g.BYO_LOGO_API_URL+g.BYO_LOGO_API_DELETE_LOGO_ENDPOINT}).then(a=>{a.status===200?this.$emit("on-delete-success",a):this.$emit("on-delete-error",a),this.isRunning=!1}).catch(a=>{this.$emit("on-delete-error",a),this.isRunning=!1}))},onReplaceButtonClick(a){a.preventDefault(),this.$refs.fileInput.click(),f({eventCategory:this.eventCategory,eventAction:"replaceLogo",eventLabel:"Clicked_Replace_Logo_Search",event:"click"})},onReplaceFileChange(a){a.target.files.length&&window.dispatchEvent(new CustomEvent(c.BeginUploadLogoExperience,{detail:{file:a.target.files[0]}}))}}},W={key:0},H={class:"tw-absolute tw-top-0 tw-left-0 tw-object-cover tw-h-full tw-w-full tw-object-top tw-flex tw-justify-center"},D={class:"tw-flex tw-items-center tw-justify-center tw-h-full tw-w-full"},O=["src"],z=["src"],N={for:"replace-logo-file",class:"tw-sr-only"};function Y(a,d,e,A,n,l){const S=I("Button");return w(),u("div",{class:o(["tw-flex tw-flex-col tw-bg-white tw-border tw-border-solid tw-border-grayscale-400 tw-p-4",{"md:tw-grid md:tw-grid-cols-2 md:tw-gap-2 md:tw-items-center md:tw-justify-center md:tw-p-3":e.useLandscapeTile&&!n.extraWideLandscape,"md:tw-items-center md:tw-justify-center md:tw-p-6":e.alternativeLayout&&!n.extraWideLandscape,"md:tw-flex md:tw-flex-row md:tw-justify-start md:tw-items-center md:tw-p-2":n.extraWideLandscape}])},[e.alternativeLayout?(w(),u("div",{key:1,class:o({"md:tw-w-full md:tw-flex md:tw-items-end":e.alternativeLayout&&!e.useLandscapeTile,"md:tw-flex md:tw-justify-start md:tw-w-auto":n.extraWideLandscape})},[t("figure",{class:o(["tw-max-h-full tw-mb-4 tw-pb-0",{"md:tw-h-full md:tw-mb-0":e.useLandscapeTile,"md:tw-w-full":e.alternativeLayout&&!n.extraWideLandscape,"md:tw-flex md:tw-items-start md:tw-w-auto":n.extraWideLandscape}])},[t("div",{class:o(["tw-object-cover",{"md:tw-object-contain":n.extraWideLandscape}])},[t("div",{class:o(["tw-flex tw-items-center tw-justify-center tw-h-full tw-w-full",{"md:tw-h-20":n.extraWideLandscape}])},[t("img",{src:e.logoImageUrl,class:"tw-block tw-max-h-full",alt:"logo"},null,8,z)],2)],2)],2)],2)):(w(),u("div",W,[t("figure",{class:"tw-relative tw-overflow-visible tw-h-0 tw-mb-4 tw-pb-0",style:E({"padding-bottom":`${e.aspectRatio}%`})},[t("div",H,[t("div",D,[t("img",{src:e.logoImageUrl,class:"tw-block tw-max-h-full",alt:"logo"},null,8,O)])])],4)])),t("div",{class:o(["tw-w-full tw-flex tw-items-center tw-justify-center",{"md:tw-items-start":e.alternativeLayout,"md:tw-justify-start md:tw-ml-4":n.extraWideLandscape}])},[t("label",N,[k(" Replace logo "),t("input",{id:"replace-logo-file",ref:"fileInput",type:"file",accept:".jpg,.jpeg,.png,.svg,.eps",onChange:d[0]||(d[0]=(...p)=>l.onReplaceFileChange&&l.onReplaceFileChange(...p))},null,544)]),t("div",{class:o(["tw-flex tw-items-center tw-justify-center",{"md:tw-items-center":e.useLandscapeTile,"md:tw-flex-col":e.aspectRatio>30&&e.useLandscapeTile,"md:tw-flex-row":e.aspectRatio<=30&&e.useLandscapeTile,"md:tw-flex-row md:tw-items-center":e.alternativeLayout}])},[M(S,{variant:"outline",size:"small",label:l.replaceButtonLabel,"data-test-replace-logo-btn":"",onOnClick:l.onReplaceButtonClick},null,8,["label","onOnClick"]),t("button",{class:o(["tw-uppercase tw-ml-6 tw-text-xs tw-text-secondary tw-font-sans tw-font-bold",{"md:tw-mt-3":e.useLandscapeTile&&!n.extraWideLandscape,"md:tw-ml-0":e.useLandscapeTile,"md:tw-ml-3":e.alternativeLayout&&!e.useLandscapeTile||n.extraWideLandscape}]),"data-test-delete-logo-btn":"",onClick:d[1]||(d[1]=(...p)=>l.onDeleteButtonClick&&l.onDeleteButtonClick(...p))},T(l.deleteButtonLabel),3)],2)],2)],2)}const m=q(R,[["render",Y]]);R.__docgenInfo={exportName:"default",displayName:"UploadedLogoSearchResultCard",description:"",tags:{},props:[{name:"logoImageUrl",type:{name:"string"},required:!0},{name:"aspectRatio",type:{name:"number"},required:!0},{name:"eventCategory",type:{name:"string"},required:!0},{name:"useLandscapeTile",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"alternativeLayout",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}}],events:[{name:"on-delete-success",type:{names:["undefined"]}},{name:"on-delete-error",type:{names:["undefined"]}}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/experiences/components/UploadedLogoSearchResultCard/UploadedLogoSearchResultCard.vue"]};const $={title:"Components/UploadedLogoSearchResultCard",component:m},r=()=>({components:{UploadedLogoSearchResultCard:m},mounted(){window.addEventListener(c.BeginUploadLogoExperience,()=>{alert("begin upload")})},template:`
|
|
2
|
+
<div class="tw-grid tw-grid-cols-4 tw-gap-4">
|
|
3
|
+
<UploadedLogoSearchResultCard
|
|
4
|
+
logoImageUrl="https://dynamic.brandcrowd.com/template/preview/design/36c5c49c-611d-46f5-8f58-d7b686cc0809/2dcb43a1-7a00-4932-ba5c-5d817a80408b?v=4&size=design-preview-3col"
|
|
5
|
+
aspect-ratio="58.49609375%"
|
|
6
|
+
/>
|
|
7
|
+
</div>
|
|
8
|
+
`});r.story={name:"Horizontal (16x9)"};const s=()=>({components:{UploadedLogoSearchResultCard:m},mounted(){window.addEventListener(c.BeginUploadLogoExperience,()=>{alert("begin upload")})},template:`
|
|
9
|
+
<div class="tw-grid tw-grid-cols-4 tw-gap-4">
|
|
10
|
+
<UploadedLogoSearchResultCard
|
|
11
|
+
logoImageUrl="https://images.unsplash.com/photo-1636355761620-712e88f86ade?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=235&ixid=MnwxfDB8MXxyYW5kb218MHx8fHx8fHx8MTYzNjUxMTY5OA&ixlib=rb-1.2.1&q=80&w=325"
|
|
12
|
+
aspect-ratio="100%"
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
`});s.story={name:"Square (1:1)"};const i=()=>({components:{UploadedLogoSearchResultCard:m},mounted(){window.addEventListener(c.BeginUploadLogoExperience,()=>{alert("begin upload")})},template:`
|
|
16
|
+
<div class="tw-grid tw-grid-cols-4 tw-gap-4">
|
|
17
|
+
<UploadedLogoSearchResultCard
|
|
18
|
+
logoImageUrl="https://images.unsplash.com/photo-1634737118699-8bbb06e3fa2a?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=555&ixid=MnwxfDB8MXxyYW5kb218MHx8fHx8fHx8MTYzNjUxMjIxMA&ixlib=rb-1.2.1&q=80&w=325"
|
|
19
|
+
aspect-ratio="170%"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
`});i.story={name:"Vertical (65:111)"};var x,L,b;r.parameters={...r.parameters,docs:{...(x=r.parameters)==null?void 0:x.docs,source:{originalSource:`() => {
|
|
23
|
+
return {
|
|
24
|
+
components: {
|
|
25
|
+
UploadedLogoSearchResultCard
|
|
26
|
+
},
|
|
27
|
+
mounted() {
|
|
28
|
+
window.addEventListener(Events.BeginUploadLogoExperience, () => {
|
|
29
|
+
alert('begin upload');
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
template: \`
|
|
33
|
+
<div class="tw-grid tw-grid-cols-4 tw-gap-4">
|
|
34
|
+
<UploadedLogoSearchResultCard
|
|
35
|
+
logoImageUrl="https://dynamic.brandcrowd.com/template/preview/design/36c5c49c-611d-46f5-8f58-d7b686cc0809/2dcb43a1-7a00-4932-ba5c-5d817a80408b?v=4&size=design-preview-3col"
|
|
36
|
+
aspect-ratio="58.49609375%"
|
|
37
|
+
/>
|
|
38
|
+
</div>
|
|
39
|
+
\`
|
|
40
|
+
};
|
|
41
|
+
}`,...(b=(L=r.parameters)==null?void 0:L.docs)==null?void 0:b.source}}};var h,v,y;s.parameters={...s.parameters,docs:{...(h=s.parameters)==null?void 0:h.docs,source:{originalSource:`() => {
|
|
42
|
+
return {
|
|
43
|
+
components: {
|
|
44
|
+
UploadedLogoSearchResultCard
|
|
45
|
+
},
|
|
46
|
+
mounted() {
|
|
47
|
+
window.addEventListener(Events.BeginUploadLogoExperience, () => {
|
|
48
|
+
alert('begin upload');
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
template: \`
|
|
52
|
+
<div class="tw-grid tw-grid-cols-4 tw-gap-4">
|
|
53
|
+
<UploadedLogoSearchResultCard
|
|
54
|
+
logoImageUrl="https://images.unsplash.com/photo-1636355761620-712e88f86ade?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=235&ixid=MnwxfDB8MXxyYW5kb218MHx8fHx8fHx8MTYzNjUxMTY5OA&ixlib=rb-1.2.1&q=80&w=325"
|
|
55
|
+
aspect-ratio="100%"
|
|
56
|
+
/>
|
|
57
|
+
</div>
|
|
58
|
+
\`
|
|
59
|
+
};
|
|
60
|
+
}`,...(y=(v=s.parameters)==null?void 0:v.docs)==null?void 0:y.source}}};var C,U,_;i.parameters={...i.parameters,docs:{...(C=i.parameters)==null?void 0:C.docs,source:{originalSource:`() => {
|
|
61
|
+
return {
|
|
62
|
+
components: {
|
|
63
|
+
UploadedLogoSearchResultCard
|
|
64
|
+
},
|
|
65
|
+
mounted() {
|
|
66
|
+
window.addEventListener(Events.BeginUploadLogoExperience, () => {
|
|
67
|
+
alert('begin upload');
|
|
68
|
+
});
|
|
69
|
+
},
|
|
70
|
+
template: \`
|
|
71
|
+
<div class="tw-grid tw-grid-cols-4 tw-gap-4">
|
|
72
|
+
<UploadedLogoSearchResultCard
|
|
73
|
+
logoImageUrl="https://images.unsplash.com/photo-1634737118699-8bbb06e3fa2a?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&h=555&ixid=MnwxfDB8MXxyYW5kb218MHx8fHx8fHx8MTYzNjUxMjIxMA&ixlib=rb-1.2.1&q=80&w=325"
|
|
74
|
+
aspect-ratio="170%"
|
|
75
|
+
/>
|
|
76
|
+
</div>
|
|
77
|
+
\`
|
|
78
|
+
};
|
|
79
|
+
}`,...(_=(U=i.parameters)==null?void 0:U.docs)==null?void 0:_.source}}};const ee=["SampleHorizontal","SampleSquare","SampleVertical"];export{r as SampleHorizontal,s as SampleSquare,i as SampleVertical,ee as __namedExportsOrder,$ as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as e,W as h,b as l}from"./DocsRenderer-K4EAMTCU-BflUCOHA.js";import"./iframe-B6RguKdJ.js";import"../sb-preview/runtime.js";import"./index-BwDkhjyp.js";import"./_commonjsHelpers-BosuxZz1.js";import"./index-D-8MO0q_.js";import"./index-DK28puIS.js";import"./index-DrFu-skq.js";export{e as WithToolTipState,h as WithTooltip,l as WithTooltipPure};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}export{l as a,u as c,f as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _={BYO_LOGO_API_URL:"/maker/api",BYO_LOGO_API_UPLOAD_LOGO_ENDPOINT:"/user-logos/logo-image",BYO_LOGO_API_SAVE_ENDPOINT:"/user-logos",BYO_LOGO_API_DELETE_LOGO_ENDPOINT:"/user-logos/delete-user-logo",BYO_LOGO_API_LINK_TEMPLATE_ENDPOINT:"/user-logos/link-user-logo-template",DOMAIN_NAME_SEARCH_API_URL:"/maker/api/domain-names/suggest"};export{_ as A};
|