@designcrowd/fe-shared-lib 1.0.1-pre → 1.0.1
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/{public → dist}/css/tailwind-brandCrowd.css +565 -490
- package/{.storybook-static → dist}/css/tailwind-brandPage.css +489 -414
- package/{.storybook-static → dist}/css/tailwind-crazyDomains.css +565 -490
- package/{.storybook-static → dist}/css/tailwind-designCom.css +565 -490
- package/{public → dist}/css/tailwind-designCrowd.css +565 -490
- package/index.js +0 -1
- package/package.json +1 -1
- package/.storybook-static/assets/Auth-Cog6hw8U.css +0 -1
- package/.storybook-static/assets/Auth.stories-CbTWisKB.js +0 -490
- package/.storybook-static/assets/AuthCrazyDomains.stories-Dsjxh-je.js +0 -73
- package/.storybook-static/assets/Button-Dt0lL0uX.css +0 -1
- package/.storybook-static/assets/Button-IgCxbLvL.js +0 -1
- package/.storybook-static/assets/ButtonGroup-JjgCZ8Bt.css +0 -1
- package/.storybook-static/assets/ButtonGroup.stories-yhUiem6j.js +0 -494
- package/.storybook-static/assets/ButtonPrimary-CFNYtrCi.css +0 -1
- package/.storybook-static/assets/ButtonPrimary-Ce51KkgM.js +0 -1
- package/.storybook-static/assets/Buttons.stories-C7AZ07ow.js +0 -699
- package/.storybook-static/assets/ButtonsCrazyDomains.stories-DgtyyoFM.js +0 -199
- package/.storybook-static/assets/Checkbox.mixin-DkHpdvGa.js +0 -1
- package/.storybook-static/assets/Checkbox.stories-12upKauG.js +0 -203
- package/.storybook-static/assets/Checktile.stories-8H8_5ia-.js +0 -88
- package/.storybook-static/assets/CollapsiblePanel.stories-Cs6gaONK.js +0 -39
- package/.storybook-static/assets/Color-RQJUDNI5-B-WwomMi.js +0 -1
- package/.storybook-static/assets/ColorPicker.stories-DriJaUqB.js +0 -73
- package/.storybook-static/assets/CopyToClipboardText.stories-r9YFXGiX.js +0 -32
- package/.storybook-static/assets/DocsRenderer-K4EAMTCU-BflUCOHA.js +0 -513
- package/.storybook-static/assets/Dropdown.stories-D1RPdExw.js +0 -154
- package/.storybook-static/assets/DropdownItem-BQ0eJTHo.css +0 -1
- package/.storybook-static/assets/DropdownItem-C4PFbXSv.js +0 -1
- package/.storybook-static/assets/FormControl.mixin-BIPKWa5J.js +0 -1
- package/.storybook-static/assets/HashRouteModal.stories-jZo8F3lr.js +0 -64
- package/.storybook-static/assets/HelloBar-CXc7uecf.js +0 -1
- package/.storybook-static/assets/HelloBar.stories-DJPqn9T0.js +0 -342
- package/.storybook-static/assets/Icon-B8lXgcc0.js +0 -1
- package/.storybook-static/assets/Icon.stories-B2K3kKRW.js +0 -735
- package/.storybook-static/assets/Icon.stories-z4pz6mSi.js +0 -126
- package/.storybook-static/assets/Loader-D6_mUM4g.js +0 -1
- package/.storybook-static/assets/LogoBusinessBrandColours-7RXxlPF7.js +0 -1
- package/.storybook-static/assets/LogoBusinessBrandColours-8SUh_BWV.css +0 -1
- package/.storybook-static/assets/LogoBusinessBrandColours.stories-Cc65CQQK.js +0 -36
- package/.storybook-static/assets/Masonry-Q4MdMr0_.css +0 -1
- package/.storybook-static/assets/Masonry.stories-CB-rWe0y.js +0 -71
- package/.storybook-static/assets/Modal-BOHOQzO4.js +0 -1
- package/.storybook-static/assets/Modal-MZ2jF3mP.css +0 -1
- package/.storybook-static/assets/Modal.stories-Hbi4v2MQ.js +0 -380
- package/.storybook-static/assets/Notice.stories-ChRjh1h1.js +0 -222
- package/.storybook-static/assets/NumberStepper.stories-D4c10_Cl.js +0 -48
- package/.storybook-static/assets/PaymentConfigList.stories-EUp7r4Ga.js +0 -126
- package/.storybook-static/assets/Picture-AUjTe_FO.js +0 -1
- package/.storybook-static/assets/Picture.stories-7_37X1oI.js +0 -119
- package/.storybook-static/assets/Pill-DEH_ScBa.js +0 -1
- package/.storybook-static/assets/Pill.stories-CKakcDo1.js +0 -18
- package/.storybook-static/assets/PillBar-BeJSf_Pk.css +0 -1
- package/.storybook-static/assets/PillBar.stories-BNwlQM4p.js +0 -41
- package/.storybook-static/assets/Price-BzFp3dn5.js +0 -1
- package/.storybook-static/assets/Price.stories-m0jztoEd.js +0 -221
- package/.storybook-static/assets/PublishBrandPageModal-BOGSPjB0.css +0 -1
- package/.storybook-static/assets/PublishBrandPageModal.stories-Bt2eK5tM.js +0 -349
- package/.storybook-static/assets/SearchBar.stories-DE7D9jqF.js +0 -12
- package/.storybook-static/assets/Select-BkD_4Yie.css +0 -1
- package/.storybook-static/assets/Select.stories-vMzrjNuo.js +0 -108
- package/.storybook-static/assets/SellDomainNameList.fixtures-LC6fjr_b.js +0 -1
- package/.storybook-static/assets/SellDomainNameListModal-DAV6wUWy.js +0 -1
- package/.storybook-static/assets/SellDomainNameListModal-geQc7R-K.css +0 -1
- package/.storybook-static/assets/SellDomainNameListModal.stories-BOCkiwOR.js +0 -71
- package/.storybook-static/assets/SellDomainNameListSearchResult-DP3zr-UL.js +0 -1
- package/.storybook-static/assets/SellDomainNameListSearchResult-Dtf2vM3k.css +0 -1
- package/.storybook-static/assets/SellDomainNameSearchWithResults--W028-5L.js +0 -1
- package/.storybook-static/assets/SellDomainNameSearchWithResults.stories-CCYgVB46.js +0 -37
- package/.storybook-static/assets/SellDomainNameWidget.stories-ukdr-BaU.js +0 -36
- package/.storybook-static/assets/SignIn-B9RTmsHO.css +0 -1
- package/.storybook-static/assets/SignIn-yR2yVQBY.js +0 -1
- package/.storybook-static/assets/Slider-CQ7DbC3q.css +0 -1
- package/.storybook-static/assets/Slider.stories-CwIY_YjL.js +0 -129
- package/.storybook-static/assets/StarRating-BRQqs_py.css +0 -1
- package/.storybook-static/assets/StarRating.stories-B2ZK1FmW.js +0 -45
- package/.storybook-static/assets/TabMenu.stories-Cr3TQSxW.js +0 -47
- package/.storybook-static/assets/TextCopyField-BuZ5L-lt.js +0 -1
- package/.storybook-static/assets/TextCopyField.stories-ivRqKsNm.js +0 -47
- package/.storybook-static/assets/TextInput-BepJC9nE.js +0 -1
- package/.storybook-static/assets/TextInput.stories-BW4TEkLR.js +0 -233
- package/.storybook-static/assets/Textarea.stories-DWkB6BWG.js +0 -207
- package/.storybook-static/assets/Toggle.stories-C_GsxzOh.js +0 -161
- package/.storybook-static/assets/Tooltip-BHf5qq0n.css +0 -1
- package/.storybook-static/assets/Tooltip-BQfusa53.js +0 -1
- package/.storybook-static/assets/Tooltip.stories-CAIFG7b2.js +0 -953
- package/.storybook-static/assets/UploadYourLogoApplication-CeFWp7qz.css +0 -9
- package/.storybook-static/assets/UploadYourLogoApplication.stories-C-OLYLzi.js +0 -194
- package/.storybook-static/assets/UploadYourLogoDropzone-BZeSfjIk.css +0 -1
- package/.storybook-static/assets/UploadYourLogoDropzone-Cxgdqo37.js +0 -24
- package/.storybook-static/assets/UploadYourLogoDropzone.stories-X-I5FYLu.js +0 -35
- package/.storybook-static/assets/UploadedLogoSearchResultCard.stories-B2kj1FVv.js +0 -79
- package/.storybook-static/assets/WithTooltip-Y7J54OF7-DkTQ6h6H.js +0 -1
- package/.storybook-static/assets/_commonjsHelpers-BosuxZz1.js +0 -1
- package/.storybook-static/assets/_plugin-vue_export-helper-DlAUqK2U.js +0 -1
- package/.storybook-static/assets/api-lSJGRrF2.js +0 -1
- package/.storybook-static/assets/axe-CeoKsdFO.js +0 -30
- package/.storybook-static/assets/axios-dxcvQi4N.js +0 -6
- package/.storybook-static/assets/brand-crowd-api.client-CfTgrTzo.js +0 -1
- package/.storybook-static/assets/carousel-B0jomWUs.css +0 -1
- package/.storybook-static/assets/carousel.stories-B1RxWT1u.js +0 -374
- package/.storybook-static/assets/entry-preview-CMasyaBj.js +0 -1
- package/.storybook-static/assets/entry-preview-docs-DfJD_mNC.js +0 -14
- package/.storybook-static/assets/event-constants-6ydiL1p5.js +0 -1
- package/.storybook-static/assets/formatter-B5HCVTEV-CmCZjaYl.js +0 -58
- package/.storybook-static/assets/iframe-B6RguKdJ.js +0 -7
- package/.storybook-static/assets/index-BqKh95Lf.js +0 -24
- package/.storybook-static/assets/index-BwDkhjyp.js +0 -9
- package/.storybook-static/assets/index-D-8MO0q_.js +0 -1
- package/.storybook-static/assets/index-DK28puIS.js +0 -3
- package/.storybook-static/assets/index-DlpNa54Y.js +0 -1
- package/.storybook-static/assets/index-DrFu-skq.js +0 -6
- package/.storybook-static/assets/preview-B4GcaC1c.js +0 -1
- package/.storybook-static/assets/preview-BAz7FMXc.js +0 -396
- package/.storybook-static/assets/preview-BJPLiuSt.js +0 -1
- package/.storybook-static/assets/preview-CBGjgnh2.js +0 -1
- package/.storybook-static/assets/preview-Cv3rAi2i.js +0 -7
- package/.storybook-static/assets/preview-CwqMn10d.js +0 -20
- package/.storybook-static/assets/preview-DF-d5FoE.js +0 -1
- package/.storybook-static/assets/preview-Db4Idchh.js +0 -1
- package/.storybook-static/assets/preview-DvOZkz_N.js +0 -7
- package/.storybook-static/assets/preview-G-5UVXmd.js +0 -1
- package/.storybook-static/assets/preview-efJowmDL.js +0 -7
- package/.storybook-static/assets/syntaxhighlighter-JOJW2KGS-DjsQUJyu.js +0 -1
- package/.storybook-static/assets/tracking-ATsLLehC.js +0 -1
- package/.storybook-static/assets/vue.esm-bundler-C7QvyiW1.js +0 -47
- package/.storybook-static/css/tailwind-brandCrowd.css +0 -2344
- package/.storybook-static/css/tailwind-designCrowd.css +0 -2344
- package/.storybook-static/favicon.svg +0 -7
- package/.storybook-static/iframe.html +0 -501
- package/.storybook-static/index.html +0 -163
- package/.storybook-static/index.json +0 -1
- package/.storybook-static/project.json +0 -1
- package/.storybook-static/sb-addons/a11y-1/manager-bundle.js +0 -3
- package/.storybook-static/sb-addons/a11y-1/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/actions-2/manager-bundle.js +0 -3
- package/.storybook-static/sb-addons/actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-addons/controls-3/manager-bundle.js +0 -60
- package/.storybook-static/sb-addons/controls-3/manager-bundle.js.LEGAL.txt +0 -18
- package/.storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +0 -12
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- package/.storybook-static/sb-addons/themes-10/manager-bundle.js.LEGAL.txt +0 -0
- package/.storybook-static/sb-common-assets/fonts.css +0 -31
- 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 +0 -1
- package/.storybook-static/sb-manager/chunk-KCJCJECS.js +0 -234
- package/.storybook-static/sb-manager/chunk-TZAR34JC.js +0 -6
- package/.storybook-static/sb-manager/chunk-UOBNU442.js +0 -347
- package/.storybook-static/sb-manager/chunk-VCJ56UEM.js +0 -183
- package/.storybook-static/sb-manager/chunk-VMGB76WP.js +0 -9
- package/.storybook-static/sb-manager/chunk-XP3HGWTR.js +0 -1
- package/.storybook-static/sb-manager/formatter-B5HCVTEV-7DCBOGO6.js +0 -58
- package/.storybook-static/sb-manager/globals-module-info.js +0 -1
- package/.storybook-static/sb-manager/globals-runtime.js +0 -1
- package/.storybook-static/sb-manager/globals.js +0 -1
- package/.storybook-static/sb-manager/index.js +0 -1
- package/.storybook-static/sb-manager/runtime.js +0 -1
- package/.storybook-static/sb-manager/syntaxhighlighter-JOJW2KGS-7BF26SBB.js +0 -1
- package/.storybook-static/sb-preview/globals.js +0 -1
- package/.storybook-static/sb-preview/runtime.js +0 -128
- package/public/css/tailwind-brandPage.css +0 -2032
- package/public/css/tailwind-crazyDomains.css +0 -2344
- package/public/css/tailwind-designCom.css +0 -2344
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import{C as X}from"./Checkbox.mixin-DkHpdvGa.js";import{c as h,a as t,n as o,j as Y,t as Z,e as k,o as g}from"./vue.esm-bundler-C7QvyiW1.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";const K={mixins:[X]},ee=["for"],ne={key:0,class:"tw-text-error-500"},te={class:"tw-flex tw-justify-between tw-items-center"},oe=["id","checked","disabled"];function re(e,b,ae,se,le,ce){return g(),h("div",{class:o(["tw-box-border",{"tw-cursor-pointer tw-pointer-events-none tw-opacity-30":e.disabled}])},[t("label",{for:`scl-input-${e.id}`,class:o(["tw-cursor-pointer",{"tw-flex tw-items-center":e.inline}])},[e.label?(g(),h("span",{key:0,class:o(["tw-font-sans tw-text-grayscale-600 tw-text-sm tw-block tw-font-semibold",{"tw-sr-only":e.showLabelScreenReaderOnly,"tw-mb-2":!e.inline,"tw-ml-2 tw-order-last":e.inline}])},[Y(Z(e.label)+" ",1),e.required?(g(),h("span",ne,"*")):k("",!0)],2)):k("",!0),t("div",te,[t("input",{id:`scl-input-${e.id}`,checked:e.modelValue,type:"checkbox",class:"tw-sr-only",disabled:e.disabled,onChange:b[0]||(b[0]=Q=>e.$emit("update:modelValue",Q.target.checked))},null,40,oe),t("div",{class:o(["tw-flex tw-items-center tw-rounded-full tw-p-1 tw-duration-300 tw-ease-in-out tw-box-border",{"tw-bg-primary-500":e.modelValue&&e.color==="primary","tw-bg-success-500":e.modelValue&&e.color==="success","tw-bg-error-500":e.modelValue&&e.color==="error","tw-bg-info-500":e.modelValue&&e.color==="info","tw-bg-warning-500":e.modelValue&&e.color==="warning","tw-bg-grayscale-500":!e.modelValue,"tw-w-10 tw-h-5":e.size==="sm","tw-w-12 tw-h-6":e.size==="md"}])},[t("div",{class:o(["tw-bg-white tw-rounded-full tw-shadow-sm tw-transform tw-duration-300 tw-ease-in-out",{"tw-w-3 tw-h-3":e.size==="sm","tw-w-4 tw-h-4":e.size==="md","tw-translate-x-5":e.size==="sm"&&e.modelValue,"tw-translate-x-6":e.size==="md"&&e.modelValue}])},null,2)],2)])],10,ee)],2)}const n=_(K,[["render",re]]);K.__docgenInfo={exportName:"default",displayName:"Toggle",description:"",tags:{},props:[{name:"modelValue",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"boolean"},required:!0},{name:"id",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"string"},required:!0},{name:"label",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"undefined"}},{name:"showLabelScreenReaderOnly",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"inline",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"required",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"disabled",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"color",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'success'"}},{name:"size",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'md'"}},{name:"showBorder",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"classes",mixin:{name:"Checkbox.mixin",path:"../Checkbox/Checkbox.mixin.js"},type:{name:"string|object"},required:!1,defaultValue:{func:!1,value:"''"}}],events:[{name:"update:modelValue"}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/Checkbox/Checkbox.mixin.js","/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/Toggle/Toggle.vue"]};const ue={title:"Components/Toggle",component:n},r=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
2
|
-
<Toggle v-model="checked" id="test" />
|
|
3
|
-
`}),a=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
4
|
-
<Toggle v-model="checked" id="test" label="Do you love switches?" />
|
|
5
|
-
`}),s=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
6
|
-
<Toggle v-model="checked" id="test" label="Do you love switches?" :inline="true" />
|
|
7
|
-
`}),l=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
8
|
-
<Toggle v-model="checked" id="test" label="Do you love switches?" :required="true" />
|
|
9
|
-
`}),c=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
10
|
-
<Toggle v-model="checked" id="test" color="success" />
|
|
11
|
-
`}),d=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
12
|
-
<Toggle v-model="checked" id="test" color="error" />
|
|
13
|
-
`}),i=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
14
|
-
<Toggle v-model="checked" id="test" color="info" />
|
|
15
|
-
`}),m=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
16
|
-
<Toggle v-model="checked" id="test" color="warning" />
|
|
17
|
-
`}),u=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
18
|
-
<Toggle v-model="checked" id="test" :disabled="true" />
|
|
19
|
-
`}),p=()=>({components:{Toggle:n},data(){return{checked:!0}},template:`
|
|
20
|
-
<Toggle v-model="checked" id="test" size="sm" />
|
|
21
|
-
`});var f,w,x;r.parameters={...r.parameters,docs:{...(f=r.parameters)==null?void 0:f.docs,source:{originalSource:`() => {
|
|
22
|
-
return {
|
|
23
|
-
components: {
|
|
24
|
-
Toggle
|
|
25
|
-
},
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
checked: true
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
template: \`
|
|
32
|
-
<Toggle v-model="checked" id="test" />
|
|
33
|
-
\`
|
|
34
|
-
};
|
|
35
|
-
}`,...(x=(w=r.parameters)==null?void 0:w.docs)==null?void 0:x.source}}};var v,C,T;a.parameters={...a.parameters,docs:{...(v=a.parameters)==null?void 0:v.docs,source:{originalSource:`() => {
|
|
36
|
-
return {
|
|
37
|
-
components: {
|
|
38
|
-
Toggle
|
|
39
|
-
},
|
|
40
|
-
data() {
|
|
41
|
-
return {
|
|
42
|
-
checked: true
|
|
43
|
-
};
|
|
44
|
-
},
|
|
45
|
-
template: \`
|
|
46
|
-
<Toggle v-model="checked" id="test" label="Do you love switches?" />
|
|
47
|
-
\`
|
|
48
|
-
};
|
|
49
|
-
}`,...(T=(C=a.parameters)==null?void 0:C.docs)==null?void 0:T.source}}};var y,V,S;s.parameters={...s.parameters,docs:{...(y=s.parameters)==null?void 0:y.docs,source:{originalSource:`() => {
|
|
50
|
-
return {
|
|
51
|
-
components: {
|
|
52
|
-
Toggle
|
|
53
|
-
},
|
|
54
|
-
data() {
|
|
55
|
-
return {
|
|
56
|
-
checked: true
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
template: \`
|
|
60
|
-
<Toggle v-model="checked" id="test" label="Do you love switches?" :inline="true" />
|
|
61
|
-
\`
|
|
62
|
-
};
|
|
63
|
-
}`,...(S=(V=s.parameters)==null?void 0:V.docs)==null?void 0:S.source}}};var j,q,z;l.parameters={...l.parameters,docs:{...(j=l.parameters)==null?void 0:j.docs,source:{originalSource:`() => {
|
|
64
|
-
return {
|
|
65
|
-
components: {
|
|
66
|
-
Toggle
|
|
67
|
-
},
|
|
68
|
-
data() {
|
|
69
|
-
return {
|
|
70
|
-
checked: true
|
|
71
|
-
};
|
|
72
|
-
},
|
|
73
|
-
template: \`
|
|
74
|
-
<Toggle v-model="checked" id="test" label="Do you love switches?" :required="true" />
|
|
75
|
-
\`
|
|
76
|
-
};
|
|
77
|
-
}`,...(z=(q=l.parameters)==null?void 0:q.docs)==null?void 0:z.source}}};var D,$,L;c.parameters={...c.parameters,docs:{...(D=c.parameters)==null?void 0:D.docs,source:{originalSource:`() => {
|
|
78
|
-
return {
|
|
79
|
-
components: {
|
|
80
|
-
Toggle
|
|
81
|
-
},
|
|
82
|
-
data() {
|
|
83
|
-
return {
|
|
84
|
-
checked: true
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
template: \`
|
|
88
|
-
<Toggle v-model="checked" id="test" color="success" />
|
|
89
|
-
\`
|
|
90
|
-
};
|
|
91
|
-
}`,...(L=($=c.parameters)==null?void 0:$.docs)==null?void 0:L.source}}};var I,N,B;d.parameters={...d.parameters,docs:{...(I=d.parameters)==null?void 0:I.docs,source:{originalSource:`() => {
|
|
92
|
-
return {
|
|
93
|
-
components: {
|
|
94
|
-
Toggle
|
|
95
|
-
},
|
|
96
|
-
data() {
|
|
97
|
-
return {
|
|
98
|
-
checked: true
|
|
99
|
-
};
|
|
100
|
-
},
|
|
101
|
-
template: \`
|
|
102
|
-
<Toggle v-model="checked" id="test" color="error" />
|
|
103
|
-
\`
|
|
104
|
-
};
|
|
105
|
-
}`,...(B=(N=d.parameters)==null?void 0:N.docs)==null?void 0:B.source}}};var E,R,O;i.parameters={...i.parameters,docs:{...(E=i.parameters)==null?void 0:E.docs,source:{originalSource:`() => {
|
|
106
|
-
return {
|
|
107
|
-
components: {
|
|
108
|
-
Toggle
|
|
109
|
-
},
|
|
110
|
-
data() {
|
|
111
|
-
return {
|
|
112
|
-
checked: true
|
|
113
|
-
};
|
|
114
|
-
},
|
|
115
|
-
template: \`
|
|
116
|
-
<Toggle v-model="checked" id="test" color="info" />
|
|
117
|
-
\`
|
|
118
|
-
};
|
|
119
|
-
}`,...(O=(R=i.parameters)==null?void 0:R.docs)==null?void 0:O.source}}};var P,U,W;m.parameters={...m.parameters,docs:{...(P=m.parameters)==null?void 0:P.docs,source:{originalSource:`() => {
|
|
120
|
-
return {
|
|
121
|
-
components: {
|
|
122
|
-
Toggle
|
|
123
|
-
},
|
|
124
|
-
data() {
|
|
125
|
-
return {
|
|
126
|
-
checked: true
|
|
127
|
-
};
|
|
128
|
-
},
|
|
129
|
-
template: \`
|
|
130
|
-
<Toggle v-model="checked" id="test" color="warning" />
|
|
131
|
-
\`
|
|
132
|
-
};
|
|
133
|
-
}`,...(W=(U=m.parameters)==null?void 0:U.docs)==null?void 0:W.source}}};var F,M,A;u.parameters={...u.parameters,docs:{...(F=u.parameters)==null?void 0:F.docs,source:{originalSource:`() => {
|
|
134
|
-
return {
|
|
135
|
-
components: {
|
|
136
|
-
Toggle
|
|
137
|
-
},
|
|
138
|
-
data() {
|
|
139
|
-
return {
|
|
140
|
-
checked: true
|
|
141
|
-
};
|
|
142
|
-
},
|
|
143
|
-
template: \`
|
|
144
|
-
<Toggle v-model="checked" id="test" :disabled="true" />
|
|
145
|
-
\`
|
|
146
|
-
};
|
|
147
|
-
}`,...(A=(M=u.parameters)==null?void 0:M.docs)==null?void 0:A.source}}};var G,H,J;p.parameters={...p.parameters,docs:{...(G=p.parameters)==null?void 0:G.docs,source:{originalSource:`() => {
|
|
148
|
-
return {
|
|
149
|
-
components: {
|
|
150
|
-
Toggle
|
|
151
|
-
},
|
|
152
|
-
data() {
|
|
153
|
-
return {
|
|
154
|
-
checked: true
|
|
155
|
-
};
|
|
156
|
-
},
|
|
157
|
-
template: \`
|
|
158
|
-
<Toggle v-model="checked" id="test" size="sm" />
|
|
159
|
-
\`
|
|
160
|
-
};
|
|
161
|
-
}`,...(J=(H=p.parameters)==null?void 0:H.docs)==null?void 0:J.source}}};const pe=["Sample","Label","LabelInline","Required","Success","Error","Info","Warning","Disabled","Small"];export{u as Disabled,d as Error,i as Info,a as Label,s as LabelInline,l as Required,r as Sample,p as Small,c as Success,m as Warning,pe as __namedExportsOrder,ue as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.shared-tooltip__body[data-v-dd32b50d]{max-width:15rem}.shared-tooltip__extended-body[data-v-dd32b50d]{max-width:27rem;width:27rem}.shared-tooltip__open[data-v-dd32b50d]:hover{cursor:help}.shared-tooltip__open:hover+.shared-tooltip__content[data-v-dd32b50d]{display:flex}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as w}from"./Icon-B8lXgcc0.js";import{c as h,a as f,r as d,n as o,b as s,e as c,g as p,o as l}from"./vue.esm-bundler-C7QvyiW1.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";const m={components:{Icon:w},props:{color:{type:String,required:!1,default:"info-500"},direction:{type:String,required:!1,default:"top"},alignment:{type:String,required:!1,default:"left"},hasExtendedWidth:{type:Boolean,required:!1,default:!1},fullWidth:{type:Boolean,default:!1},isRoundedCorner:{type:Boolean,default:!1},shouldShowIcon:{type:Boolean,default:!0}},data(){return{tooltipDirection:null,tooltipBodyRef:"js-tooltip-body"}},mounted(){this.tooltipDirection=this.direction},methods:{getTooltipDirection(){const i=this.$refs[this.tooltipBodyRef].getBoundingClientRect();this.direction==="top"&&(i.top<0?this.tooltipDirection="bottom":this.tooltipDirection="top"),this.direction==="right"&&(i.right>window.innerWidth?this.tooltipDirection="left":this.tooltipDirection="right"),this.direction==="bottom"&&(i.bottom>window.innerHeight?this.tooltipDirection="top":this.tooltipDirection="bottom"),this.direction==="left"&&(i.left<0?this.tooltipDirection="right":this.tooltipDirection="left")}}};function D(i,n,t,y,e,u){const r=p("Icon");return l(),h("div",{class:o({"tw-inline-flex tw-relative":!0,"tw-justify-center":t.alignment==="center"&&(e.tooltipDirection==="top"||e.tooltipDirection==="bottom"),"tw-justify-end":t.alignment==="right"&&(e.tooltipDirection==="top"||e.tooltipDirection==="bottom"),"tw-items-center":t.alignment==="middle"&&(e.tooltipDirection==="right"||e.tooltipDirection==="left"),"tw-items-end":t.alignment==="top"&&(e.tooltipDirection==="right"||e.tooltipDirection==="left")})},[f("span",{class:o(["shared-tooltip__open",{"tw-w-full":t.fullWidth}]),onMouseover:n[0]||(n[0]=(...a)=>u.getTooltipDirection&&u.getTooltipDirection(...a)),onMouseleave:n[1]||(n[1]=a=>e.tooltipDirection=t.direction)},[d(i.$slots,"open",{},void 0,!0)],34),f("div",{class:o({"shared-tooltip__content tw-absolute tw-hidden":!0,"tw-m-3":!t.shouldShowIcon,"tw-bottom-full tw-flex-col-reverse":e.tooltipDirection==="top","tw-left-full tw-flex-row":e.tooltipDirection==="right","tw-top-full tw-flex-col":e.tooltipDirection==="bottom","tw-right-full tw-flex-row-reverse":e.tooltipDirection==="left"})},[t.shouldShowIcon&&e.tooltipDirection==="top"?(l(),s(r,{key:0,class:o({"tw-flex tw-z-20 tw--mt-px":!0,"tw-justify-end":t.alignment==="right","tw-justify-center":t.alignment==="center"}),name:"tooltip-bottom",color:t.color},null,8,["class","color"])):c("",!0),t.shouldShowIcon&&e.tooltipDirection==="right"?(l(),s(r,{key:1,class:o({"tw-flex tw-z-20 tw--mr-1.5":!0,"tw-items-end":t.alignment==="top","tw-items-center":t.alignment==="middle"}),name:"tooltip-left",color:t.color},null,8,["class","color"])):c("",!0),t.shouldShowIcon&&e.tooltipDirection==="bottom"?(l(),s(r,{key:2,class:o({"tw-flex tw-z-20 tw--mb-1.5":!0,"tw-justify-end":t.alignment==="right","tw-justify-center":t.alignment==="center"}),name:"tooltip-top",color:t.color},null,8,["class","color"])):c("",!0),t.shouldShowIcon&&e.tooltipDirection==="left"?(l(),s(r,{key:3,class:o({"tw-flex tw-z-20 tw--ml-px":!0,"tw-items-end":t.alignment==="top","tw-items-center":t.alignment==="middle"}),name:"tooltip-right",color:t.color},null,8,["class","color"])):c("",!0),f("div",{ref:e.tooltipBodyRef,class:o({[`tw-border-${t.color} tw-bg-white tw-border tw-border-solid tw-shadow tw-p-3 tw-z-10 tw-text-left`]:!0,"tw-w-60":!t.fullWidth,"tw-w-full":t.fullWidth,"shared-tooltip__body":!t.hasExtendedWidth,"shared-tooltip__extended-body":t.hasExtendedWidth,"tw-bottom-full":e.tooltipDirection==="top","tw-left-full tw--ml-px":e.tooltipDirection==="right","tw-top-full tw--mt-px":e.tooltipDirection==="bottom","tw-right-full":e.tooltipDirection==="left","tw-rounded":t.isRoundedCorner})},[d(i.$slots,"content",{},void 0,!0)],2)],2)],2)}const _=g(m,[["render",D],["__scopeId","data-v-dd32b50d"]]);m.__docgenInfo={exportName:"default",displayName:"Tooltip",description:"",tags:{},props:[{name:"color",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'info-500'"}},{name:"direction",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'top'"}},{name:"alignment",type:{name:"string"},required:!1,defaultValue:{func:!1,value:"'left'"}},{name:"hasExtendedWidth",type:{name:"boolean"},required:!1,defaultValue:{func:!1,value:"false"}},{name:"fullWidth",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"isRoundedCorner",type:{name:"boolean"},defaultValue:{func:!1,value:"false"}},{name:"shouldShowIcon",type:{name:"boolean"},defaultValue:{func:!1,value:"true"}}],slots:[{name:"open"},{name:"content"}],sourceFiles:["/Users/brooke.couchman/Projects/fe-shared-lib/src/atoms/components/Tooltip/Tooltip.vue"]};export{_ as T};
|