@petnow/ui 1.2.1 → 1.2.2
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/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/select/LabeledSelect.d.ts +0 -1
- package/package.json +1 -1
- package/dist/style.css +0 -1
package/dist/index.umd.js
CHANGED
|
@@ -37,5 +37,5 @@ React keys must be passed directly to JSX without using spread:
|
|
|
37
37
|
${s?"bg-[#E8E8E8]":"bg-[#F8F8F8]"}
|
|
38
38
|
${a&&"bg-[#D8D8D8]"}`,children:l.name})},l.name))})]})}),Hc=({label:e,placeholder:n,value:t,options:r,onChange:o,disabled:i,helperText:l})=>{const[s,a]=c.useState(""),[d,u]=c.useState(t),f=s===""?r.slice(0,4):r.filter(g=>g.name.replace(/ /g,"").includes(s.replace(/ /g,""))).slice(0,4);return I.jsxs("div",{children:[I.jsx("div",{className:"relative flex flex-col text-deepGray",children:I.jsxs(ju,{onChange:g=>{u(g?g.name:""),o(g)},disabled:i,children:[I.jsx(Jt,{className:"text-xl font-bold text-lightBlack",children:e}),I.jsx(si,{className:"mt-4 flex w-full items-center justify-between rounded-xl bg-[#F8F8F8] p-4 text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",value:d,onChange:g=>{u(void 0),a(g.target.value)},placeholder:n,autoComplete:"off"}),I.jsx(ai,{className:"absolute top-[104px] z-10 max-h-60 w-full overflow-hidden overflow-y-auto rounded-xl shadow-md",style:{bottom:-f.length*60},children:f.map(g=>I.jsx(ui,{value:g,as:c.Fragment,children:({focus:p,selected:h})=>I.jsx("li",{className:`flex w-full cursor-pointer justify-between p-4 text-start text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50
|
|
39
39
|
${p?"bg-[#E8E8E8]":"bg-[#F8F8F8]"}
|
|
40
|
-
${h&&"bg-[#D8D8D8]"}`,children:g.name})},g.name))})]})}),l&&I.jsx("p",{className:"mt-2 px-4 text-[#8B919A]",children:l})]})},Wc=({tabList:e,onTabChange:n})=>{const[t,r]=c.useState(e[0]);return I.jsx("div",{className:"flex flex-row text-2xl font-bold",children:e.map(o=>I.jsxs("div",{className:"flex flex-1 flex-col",children:[I.jsx("button",{className:`py-5 hover:text-lightBlack ${o===t?"text-lightBlack":"text-[#8B919A]"}`,onClick:()=>{r(o),n(o)},children:o.displayName}),I.jsx("div",{className:`h-[2px] w-full transition-colors duration-200 ${o===t?"bg-petnowOrange":"bg-lightGray"}`})]},o.key))})};be.AccordionCard=Nc,be.
|
|
40
|
+
${h&&"bg-[#D8D8D8]"}`,children:g.name})},g.name))})]})}),l&&I.jsx("p",{className:"mt-2 px-4 text-[#8B919A]",children:l})]})},Wc=({tabList:e,onTabChange:n})=>{const[t,r]=c.useState(e[0]);return I.jsx("div",{className:"flex flex-row text-2xl font-bold",children:e.map(o=>I.jsxs("div",{className:"flex flex-1 flex-col",children:[I.jsx("button",{className:`py-5 hover:text-lightBlack ${o===t?"text-lightBlack":"text-[#8B919A]"}`,onClick:()=>{r(o),n(o)},children:o.displayName}),I.jsx("div",{className:`h-[2px] w-full transition-colors duration-200 ${o===t?"bg-petnowOrange":"bg-lightGray"}`})]},o.key))})};be.AccordionCard=Nc,be.Checkbox=kc,be.CtaButton=Mr,be.LabeledAddressInput=Ac,be.LabeledAutocomplete=Hc,be.LabeledSelect=Bc,be.Modal=Dc,be.Tabs=Wc,Object.defineProperty(be,Symbol.toStringTag,{value:"Module"})});
|
|
41
41
|
//# sourceMappingURL=index.umd.js.map
|