@necto-react/components 1.2.9 → 1.2.11

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.js CHANGED
@@ -1,2 +1,389 @@
1
- import{DOM as bt}from"@necto/constants";import{HTMLElements as ct}from"@necto/dom";import{forwardRef as x,isValidElement as lt,cloneElement as st,Children as rt}from"react";import{jsx as dt}from"react/jsx-runtime";var at=ct.Div,W=({as:t,asChild:o,children:c,...b},n)=>{let i=t??at;if(o){let e=rt.only(c);return lt(e)?st(e,{...b,ref:e.ref??n}):null}return dt(i,{ref:n,...b,children:c})},B=Object.assign(x(W),bt.HTML_TAGS.reduce((t,o)=>{let c=o,b=o[0].toUpperCase()+o.slice(1),n=x((i,e)=>W({...i,as:o},e));return t[c]=n,t[b]=n,t},{}));import{Fragment as mt}from"react";import{jsx as ut}from"react/jsx-runtime";var g=t=>{let{children:o}=t;return ut(mt,{children:typeof o=="function"?o():o})};import{Fragment as It,Children as pt}from"react";import{jsx as Bt}from"react/jsx-runtime";var I=t=>{let{condition:o,keepAlive:c,children:b}=t;if(!b)return null;let n=!!(typeof o=="function"?o():o);return Bt(It,{children:pt.toArray(b).find(i=>i.type!==g!=!n)||null})};import ft from"clsx";import{forwardRef as Qt}from"react";import Xt from"styled-components";import{FaApple as Rt}from"react-icons/fa";import{HTMLElements as gt}from"@necto/dom";import{forwardRef as Gt,Fragment as Zt}from"react";import{jsx as p,jsxs as yt}from"react/jsx-runtime";var Ct=gt.Button,a=Gt(function({as:o=Ct,asChild:c=!1,children:b,icon:n,showIcon:i=!0,iconPosition:e="left",disabled:l,className:r,...s},it){let nt=(o?.toLowerCase?.()??"")==="button"?{disabled:l}:{role:"button",tabIndex:l?-1:0,"aria-disabled":!!l,onKeyDown:u=>{l||(u.key==="Enter"||u.key===" ")&&(s.onClick?.(u),u.preventDefault())}},m=n?p("span",{className:"_necto:brand-icon",style:{flexShrink:0,lineHeight:0,display:"inline-flex"},children:n}):null;return p(B,{as:o,ref:it,asChild:c,className:r,...nt,...s,children:yt(Zt,{children:[p(I,{condition:!!m&&i&&e==="left",children:m}),b,p(I,{condition:!!m&&i&&e==="right",children:m})]})})});var G={};import{jsx as N}from"react/jsx-runtime";var A="AppleButton",xt=Xt(a).attrs(t=>({className:`${G.AppleButton} ${t.$disabled?G.disabled:""}`.trim()}))``,Y=Qt(({as:t,asChild:o,children:c="Continue with Apple",iconPosition:b="left",showIcon:n=!0,iconSize:i=20,disabled:e,className:l,...r},s)=>N(xt,{as:t,ref:s,asChild:o,icon:N(Rt,{size:i}),showIcon:n,iconSize:i,disabled:e,$disabled:e,iconPosition:b,className:ft(l,`_necto:${A}`),...r,children:c}));Y.displayName=A;import Nt from"clsx";import{forwardRef as At}from"react";import Yt from"styled-components";import{FaAtlassian as ht}from"react-icons/fa";var Z={};import{jsx as h}from"react/jsx-runtime";var V="AtlassianButton",Vt=Yt(a).attrs(t=>({className:`${Z.AtlassianButton} ${t.$disabled?Z.disabled:""}`.trim()}))``,v=At(({as:t,asChild:o,children:c="Continue with Atlassian",iconPosition:b="left",showIcon:n=!0,iconSize:i=20,disabled:e,className:l,...r},s)=>h(Vt,{as:t,ref:s,asChild:o,showIcon:n,iconSize:i,disabled:e,$disabled:e,iconPosition:b,icon:h(ht,{size:i}),className:Nt(l,`_necto:${V}`),...r,children:c}));v.displayName=V;import Ut from"clsx";import{forwardRef as Lt}from"react";import jt from"styled-components";var C={};import{jsx as d,jsxs as U}from"react/jsx-runtime";var L=({size:t})=>U("svg",{width:t,height:t,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("title",{children:"Bitbucket"}),d("path",{d:"M58.8295 28.5831H43.8317L41.332 43.3331H30.9168L18.6685 57.9163C18.6685 57.9163 19.2517 58.4163 20.0849 58.4163H52.7472C53.4971 58.4163 54.1637 57.8331 54.3303 57.083L58.8295 28.5831Z",fill:"url(#paint0_linear_5907_10188)"}),d("path",{d:"M12.5863 13.5C11.5864 13.5 10.8366 14.4167 11.0033 15.3333L17.7524 56.6666C17.8357 57.1667 18.0857 57.6667 18.5023 58C18.5023 58 19.0855 58.5 19.9187 58.5L32.5838 43.3334H30.834L28.0843 28.5834H43.8323H58.8304L60.9967 15.3333C61.1635 14.3333 60.4135 13.5 59.4136 13.5H12.5863Z",fill:"white",style:{fill:"white",fillOpacity:1}}),d("defs",{children:U("linearGradient",{id:"paint0_linear_5907_10188",x1:"60.8078",y1:"35.1603",x2:"37.2868",y2:"51.0791",gradientUnits:"userSpaceOnUse",children:[d("stop",{offset:"0.0718327","stop-color":"white","stop-opacity":"0.4",style:{stopColor:"white",stopOpacity:.4}}),d("stop",{offset:"1","stop-color":"white",style:{stopColor:"white",stopOpacity:1}})]})})]});import{jsx as j}from"react/jsx-runtime";var O="BitbucketButton",Ot=jt(a).attrs(t=>({className:`${C.BitbucketButton} ${t.$disabled?C.disabled:""}`.trim()}))``,z=Lt(({as:t,asChild:o,children:c="Continue with Bitbucket",iconPosition:b="left",showIcon:n=!0,iconSize:i=22,disabled:e,className:l,...r},s)=>j(Ot,{as:t,ref:s,asChild:o,showIcon:n,iconSize:i,disabled:e,$disabled:e,iconPosition:b,icon:j(L,{size:i}),className:Ut(l,`_necto:${O}`),...r,children:c}));z.displayName=O;import Tt from"clsx";import{forwardRef as Jt}from"react";import Et from"styled-components";import{FaDiscord as Dt}from"react-icons/fa";var y={};import{jsx as T}from"react/jsx-runtime";var J="DiscordButton",wt=Et(a).attrs(t=>({className:`${y.DiscordButton} ${t.$disabled?y.disabled:""}`.trim()}))``,E=Jt(({as:t,asChild:o,children:c="Continue with Discord",iconPosition:b="left",showIcon:n=!0,iconSize:i=20,disabled:e,className:l,...r},s)=>T(wt,{as:t,ref:s,asChild:o,showIcon:n,iconSize:i,disabled:e,$disabled:e,iconPosition:b,icon:T(Dt,{size:i}),className:Tt(l,`_necto:${J}`),...r,children:c}));E.displayName=J;import Mt from"clsx";import{forwardRef as Ht}from"react";import St from"styled-components";import{FaDropbox as Pt}from"react-icons/fa";var F={};import{jsx as D}from"react/jsx-runtime";var w="DropboxButton",$t=St(a).attrs(t=>({className:`${F.DropboxButton} ${t.$disabled?F.disabled:""}`.trim()}))``,k=Ht(({as:t,asChild:o,children:c="Continue with Dropbox",iconPosition:b="left",showIcon:n=!0,iconSize:i=20,disabled:e,className:l,...r},s)=>D($t,{as:t,ref:s,asChild:o,icon:D(Pt,{size:i}),showIcon:n,iconSize:i,disabled:e,$disabled:e,iconPosition:b,className:Mt(l,`_necto:${w}`),...r,children:c}));k.displayName=w;import Kt from"clsx";import{forwardRef as qt}from"react";import to from"styled-components";import{FaFacebook as oo}from"react-icons/fa6";var f={};import{jsx as M}from"react/jsx-runtime";var H="FacebookButton",eo=to(a).attrs(t=>({className:`${f.FacebookButton} ${t.$disabled?f.disabled:""}`.trim()}))``,S=qt(({as:t,asChild:o,children:c="Continue with Facebook",iconPosition:b="left",showIcon:n=!0,iconSize:i=20,disabled:e,className:l,...r},s)=>M(eo,{as:t,ref:s,asChild:o,showIcon:n,iconSize:i,disabled:e,$disabled:e,iconPosition:b,icon:M(oo,{size:i}),className:Kt(l,`_necto:${H}`),...r,children:c}));S.displayName=H;import no from"clsx";import{forwardRef as bo}from"react";import co from"styled-components";import{FaGithub as lo}from"react-icons/fa";var Q={};import{jsx as P}from"react/jsx-runtime";var $="GitHubButton",so=co(a).attrs(t=>({className:`${Q.GitHubButton} ${t.$disabled?Q.disabled:""}`.trim()}))``,_=bo(({as:t,asChild:o,children:c="Continue with GitHub",iconPosition:b="left",showIcon:n=!0,iconSize:i=20,disabled:e,className:l,...r},s)=>P(so,{as:t,ref:s,asChild:o,showIcon:n,iconSize:i,disabled:e,$disabled:e,iconPosition:b,icon:P(lo,{size:i}),className:no(l,`_necto:${$}`),...r,children:c}));_.displayName=$;import ao from"clsx";import{forwardRef as mo}from"react";import uo from"styled-components";var X={};import{FaGitlab as Io}from"react-icons/fa6";import{jsx as K}from"react/jsx-runtime";var q="GitLabButton",po=uo(a).attrs(t=>({className:`${X.GitLabButton} ${t.$disabled?X.disabled:""}`.trim()}))``,tt=mo(({as:t,asChild:o,children:c="Continue with GitLab",iconPosition:b="left",showIcon:n=!0,iconSize:i=20,disabled:e,className:l,...r},s)=>K(po,{as:t,ref:s,asChild:o,showIcon:n,iconSize:i,disabled:e,$disabled:e,iconPosition:b,icon:K(Io,{size:i}),className:ao(l,`_necto:${q}`),...r,children:c}));tt.displayName=q;import{forwardRef as go}from"react";import Go from"styled-components";import{FcGoogle as Zo}from"react-icons/fc";var R={};import{jsx as ot}from"react/jsx-runtime";var Co="GoogleButton",yo=Go(a).attrs(t=>({className:`${R.GoogleButton} ${t.$disabled?R.disabled:""}`.trim()}))``,et=go(({as:t,asChild:o,children:c="Continue with Google",iconPosition:b="left",showIcon:n=!0,iconSize:i=20,disabled:e,className:l,...r},s)=>ot(yo,{as:t,ref:s,asChild:o,showIcon:n,disabled:e,$disabled:e,className:l,iconPosition:b,icon:ot(Zo,{size:i}),...r,children:c}));et.displayName=Co;export{Y as AppleButton,v as AtlassianButton,z as BitbucketButton,E as DiscordButton,k as DropboxButton,g as Else,S as FacebookButton,_ as GitHubButton,tt as GitLabButton,et as GoogleButton,I as If,B as Primitive};
1
+ import{DOM as Q}from"@necto/constants";import{HTMLElements as W}from"@necto/dom";import{forwardRef as B,isValidElement as Y,cloneElement as j,Children as oo}from"react";import{jsx as eo}from"react/jsx-runtime";var to=W.Div,g=({as:o,asChild:t,children:s,...n},r)=>{let i=o??to;if(t){let e=oo.only(s);return Y(e)?j(e,{...n,ref:e.ref??r}):null}return eo(i,{ref:r,...n,children:s})},y=Object.assign(B(g),Q.HTML_TAGS.reduce((o,t)=>{let s=t,n=t[0].toUpperCase()+t.slice(1),r=B((i,e)=>g({...i,as:t},e));return o[s]=r,o[n]=r,o},{}));import{Fragment as ro}from"react";import{jsx as no}from"react/jsx-runtime";var x=o=>{let{children:t}=o;return no(ro,{children:typeof t=="function"?t():t})};import{Fragment as io,Children as so}from"react";import{jsx as ao}from"react/jsx-runtime";var u=o=>{let{condition:t,keepAlive:s,children:n}=o;if(!n)return null;let r=!!(typeof t=="function"?t():t);return ao(io,{children:so.toArray(n).find(i=>i.type!==x!=!r)||null})};import uo from"clsx";import{forwardRef as bo}from"react";import yo from"@emotion/styled";import{FaApple as xo}from"react-icons/fa";import{HTMLElements as po}from"@necto/dom";import{forwardRef as lo,Fragment as co}from"react";import{jsx as b,jsxs as mo}from"react/jsx-runtime";var fo=po.Button,c=lo(function({as:t=fo,asChild:s=!1,children:n,icon:r,showIcon:i=!0,iconPosition:e="left",disabled:a,className:l,...p},q){let J=(t?.toLowerCase?.()??"")==="button"?{disabled:a}:{role:"button",tabIndex:a?-1:0,"aria-disabled":!!a,onKeyDown:d=>{a||(d.key==="Enter"||d.key===" ")&&(p.onClick?.(d),d.preventDefault())}},m=r?b("span",{className:"_necto:brand-icon",style:{flexShrink:0,lineHeight:0,display:"inline-flex"},children:r}):null;return b(y,{as:t,ref:q,asChild:s,className:l,...J,...p,children:mo(co,{children:[b(u,{condition:!!m&&i&&e==="left",children:m}),n,b(u,{condition:!!m&&i&&e==="right",children:m})]})})});import{jsx as E}from"react/jsx-runtime";var h="AppleButton",Bo=yo(c)`
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ gap: 10px;
6
+ padding: 0 18px;
7
+ min-height: 40px;
8
+ background-color: #000000;
9
+ color: #ffffff;
10
+ border: none;
11
+ border-radius: 8px;
12
+ font-size: 14px;
13
+ font-weight: 400;
14
+ font-family: 'Roboto', system-ui, -apple-system, sans-serif;
15
+ line-height: 20px;
16
+ cursor: pointer;
17
+ user-select: none;
18
+ text-decoration: none;
19
+ transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
20
+
21
+ &:hover {
22
+ background-color: #1a1a1a;
23
+ }
24
+
25
+ &:active {
26
+ background-color: #333333;
27
+ }
28
+
29
+ &:focus-visible {
30
+ outline: none;
31
+ box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
32
+ }
33
+
34
+ ${o=>o.$disabled&&`
35
+ opacity: 0.7;
36
+ cursor: not-allowed;
37
+ pointer-events: none;
38
+
39
+ &:hover,
40
+ &:active {
41
+ background-color: #000000;
42
+ }
43
+ `}
44
+ `,w=bo(({as:o,asChild:t,children:s="Continue with Apple",iconPosition:n="left",showIcon:r=!0,iconSize:i=20,disabled:e,className:a,...l},p)=>E(Bo,{as:o,ref:p,asChild:t,icon:E(xo,{size:i}),showIcon:r,disabled:e,$disabled:e,iconPosition:n,className:uo(a,`_necto:${h}`),...l,children:s}));w.displayName=h;import go from"clsx";import{forwardRef as Eo}from"react";import ho from"@emotion/styled";import{FaAtlassian as wo}from"react-icons/fa";import{jsx as R}from"react/jsx-runtime";var P="AtlassianButton",Ro=ho(c)`
45
+ display: inline-flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ gap: 10px;
49
+ padding: 0 18px;
50
+ min-height: 40px;
51
+ background-color: #0052cc;
52
+ color: #ffffff;
53
+ border: none;
54
+ border-radius: 8px;
55
+ font-size: 14px;
56
+ font-weight: 500;
57
+ font-family: system-ui, -apple-system, sans-serif;
58
+ line-height: 20px;
59
+ cursor: pointer;
60
+ user-select: none;
61
+ text-decoration: none;
62
+ transition: background-color 0.2s, box-shadow 0.2s;
63
+
64
+ &:hover {
65
+ background-color: #0747a6;
66
+ }
67
+
68
+ &:active {
69
+ background-color: #003d99;
70
+ }
71
+
72
+ &:focus-visible {
73
+ outline: none;
74
+ box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.3);
75
+ }
76
+
77
+ ${o=>o.$disabled&&`
78
+ opacity: 0.7;
79
+ cursor: not-allowed;
80
+ pointer-events: none;
81
+
82
+ &:hover,
83
+ &:active {
84
+ background-color: #0052cc;
85
+ }
86
+ `}
87
+ `,k=Eo(({as:o,asChild:t,children:s="Continue with Atlassian",iconPosition:n="left",showIcon:r=!0,iconSize:i=20,disabled:e,className:a,...l},p)=>R(Ro,{as:o,ref:p,asChild:t,showIcon:r,disabled:e,$disabled:e,iconPosition:n,icon:R(wo,{size:i}),className:go(a,`_necto:${P}`),...l,children:s}));k.displayName=P;import Po from"clsx";import{forwardRef as ko}from"react";import To from"@emotion/styled";import{jsx as f,jsxs as T}from"react/jsx-runtime";var v=({size:o})=>T("svg",{width:o,height:o,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[f("title",{children:"Bitbucket"}),f("path",{d:"M58.8295 28.5831H43.8317L41.332 43.3331H30.9168L18.6685 57.9163C18.6685 57.9163 19.2517 58.4163 20.0849 58.4163H52.7472C53.4971 58.4163 54.1637 57.8331 54.3303 57.083L58.8295 28.5831Z",fill:"url(#paint0_linear_5907_10188)"}),f("path",{d:"M12.5863 13.5C11.5864 13.5 10.8366 14.4167 11.0033 15.3333L17.7524 56.6666C17.8357 57.1667 18.0857 57.6667 18.5023 58C18.5023 58 19.0855 58.5 19.9187 58.5L32.5838 43.3334H30.834L28.0843 28.5834H43.8323H58.8304L60.9967 15.3333C61.1635 14.3333 60.4135 13.5 59.4136 13.5H12.5863Z",fill:"white",style:{fill:"white",fillOpacity:1}}),f("defs",{children:T("linearGradient",{id:"paint0_linear_5907_10188",x1:"60.8078",y1:"35.1603",x2:"37.2868",y2:"51.0791",gradientUnits:"userSpaceOnUse",children:[f("stop",{offset:"0.0718327","stop-color":"white","stop-opacity":"0.4",style:{stopColor:"white",stopOpacity:.4}}),f("stop",{offset:"1","stop-color":"white",style:{stopColor:"white",stopOpacity:1}})]})})]});import{jsx as F}from"react/jsx-runtime";var A="BitbucketButton",vo=To(c)`
88
+ display: inline-flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ gap: 10px;
92
+ padding: 0 18px;
93
+ min-height: 40px;
94
+ background-color: #0052cc;
95
+ color: #ffffff;
96
+ border: none;
97
+ border-radius: 8px;
98
+ font-size: 14px;
99
+ font-weight: 500;
100
+ font-family: system-ui, -apple-system, sans-serif;
101
+ line-height: 20px;
102
+ cursor: pointer;
103
+ user-select: none;
104
+ text-decoration: none;
105
+ transition: background-color 0.2s, box-shadow 0.2s;
106
+
107
+ &:hover {
108
+ background-color: #0747a6;
109
+ }
110
+
111
+ &:active {
112
+ background-color: #003d99;
113
+ }
114
+
115
+ &:focus-visible {
116
+ outline: none;
117
+ box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.3);
118
+ }
119
+
120
+ ${o=>o.$disabled&&`
121
+ opacity: 0.7;
122
+ cursor: not-allowed;
123
+ pointer-events: none;
124
+
125
+ &:hover,
126
+ &:active {
127
+ background-color: #0052cc;
128
+ }
129
+ `}
130
+ `,L=ko(({as:o,asChild:t,children:s="Continue with Bitbucket",iconPosition:n="left",showIcon:r=!0,iconSize:i=22,disabled:e,className:a,...l},p)=>F(vo,{as:o,ref:p,asChild:t,showIcon:r,disabled:e,$disabled:e,iconPosition:n,icon:F(v,{size:i}),className:Po(a,`_necto:${A}`),...l,children:s}));L.displayName=A;import Fo from"clsx";import{forwardRef as Ao}from"react";import Lo from"@emotion/styled";import{FaDiscord as Co}from"react-icons/fa";import{jsx as C}from"react/jsx-runtime";var H="DiscordButton",Ho=Lo(c)`
131
+ display: inline-flex;
132
+ align-items: center;
133
+ justify-content: center;
134
+ gap: 10px;
135
+ padding: 0 18px;
136
+ min-height: 40px;
137
+ background-color: #5865f2;
138
+ color: #ffffff;
139
+ border: none;
140
+ border-radius: 8px;
141
+ font-size: 14px;
142
+ font-weight: 500;
143
+ font-family: 'Roboto', system-ui, -apple-system, sans-serif;
144
+ line-height: 20px;
145
+ cursor: pointer;
146
+ user-select: none;
147
+ text-decoration: none;
148
+ transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
149
+
150
+ &:hover {
151
+ background-color: #4752d9;
152
+ }
153
+
154
+ &:active {
155
+ background-color: #3c45c0;
156
+ }
157
+
158
+ &:focus-visible {
159
+ outline: none;
160
+ box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.3);
161
+ }
162
+
163
+ ${o=>o.$disabled&&`
164
+ opacity: 0.7;
165
+ cursor: not-allowed;
166
+ pointer-events: none;
167
+
168
+ &:hover,
169
+ &:active {
170
+ background-color: #5865f2;
171
+ }
172
+ `}
173
+ `,G=Ao(({as:o,asChild:t,children:s="Continue with Discord",iconPosition:n="left",showIcon:r=!0,iconSize:i=20,disabled:e,className:a,...l},p)=>C(Ho,{as:o,ref:p,asChild:t,showIcon:r,disabled:e,$disabled:e,iconPosition:n,icon:C(Co,{size:i}),className:Fo(a,`_necto:${H}`),...l,children:s}));G.displayName=H;import Go from"clsx";import{forwardRef as Mo}from"react";import No from"@emotion/styled";import{FaDropbox as $o}from"react-icons/fa";import{jsx as M}from"react/jsx-runtime";var N="DropboxButton",Do=No(c)`
174
+ display: inline-flex;
175
+ align-items: center;
176
+ justify-content: center;
177
+ gap: 10px;
178
+ padding: 0 18px;
179
+ min-height: 40px;
180
+ background-color: #0061ff;
181
+ color: #ffffff;
182
+ border: none;
183
+ border-radius: 8px;
184
+ font-size: 14px;
185
+ font-weight: 500;
186
+ font-family: 'Roboto', system-ui, -apple-system, sans-serif;
187
+ line-height: 20px;
188
+ cursor: pointer;
189
+ user-select: none;
190
+ text-decoration: none;
191
+ transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
192
+
193
+ &:hover {
194
+ background-color: #0056e0;
195
+ }
196
+
197
+ &:active {
198
+ background-color: #004bc5;
199
+ }
200
+
201
+ &:focus-visible {
202
+ outline: none;
203
+ box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.3);
204
+ }
205
+
206
+ ${o=>o.$disabled&&`
207
+ opacity: 0.7;
208
+ cursor: not-allowed;
209
+ pointer-events: none;
210
+
211
+ &:hover,
212
+ &:active {
213
+ background-color: #0061ff;
214
+ }
215
+ `}
216
+ `,$=Mo(({as:o,asChild:t,children:s="Continue with Dropbox",iconPosition:n="left",showIcon:r=!0,iconSize:i=20,disabled:e,className:a,...l},p)=>M(Do,{as:o,ref:p,asChild:t,icon:M($o,{size:i}),showIcon:r,disabled:e,$disabled:e,iconPosition:n,className:Go(a,`_necto:${N}`),...l,children:s}));$.displayName=N;import _o from"clsx";import{forwardRef as Oo}from"react";import Io from"@emotion/styled";import{FaFacebook as So}from"react-icons/fa6";import{jsx as D}from"react/jsx-runtime";var _="FacebookButton",zo=Io(c)`
217
+ display: inline-flex;
218
+ align-items: center;
219
+ justify-content: center;
220
+ gap: 10px;
221
+ padding: 0 18px;
222
+ min-height: 40px;
223
+ background-color: #1877f2;
224
+ color: #ffffff;
225
+ border: 1px solid #1877f2;
226
+ border-radius: 8px;
227
+ font-size: 14px;
228
+ font-weight: 500;
229
+ font-family: system-ui, -apple-system, sans-serif;
230
+ line-height: 20px;
231
+ cursor: pointer;
232
+ user-select: none;
233
+ text-decoration: none;
234
+ transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
235
+
236
+ &:hover {
237
+ background-color: #166fe5;
238
+ }
239
+
240
+ &:active {
241
+ background-color: #1467d6;
242
+ }
243
+
244
+ &:focus-visible {
245
+ outline: none;
246
+ box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.3);
247
+ }
248
+
249
+ ${o=>o.$disabled&&`
250
+ opacity: 0.7;
251
+ cursor: not-allowed;
252
+ pointer-events: none;
253
+
254
+ &:hover,
255
+ &:active {
256
+ background-color: #1877f2;
257
+ }
258
+ `}
259
+ `,O=Oo(({as:o,asChild:t,children:s="Continue with Facebook",iconPosition:n="left",showIcon:r=!0,iconSize:i=20,disabled:e,className:a,...l},p)=>D(zo,{as:o,ref:p,asChild:t,showIcon:r,disabled:e,$disabled:e,iconPosition:n,icon:D(So,{size:i}),className:_o(a,`_necto:${_}`),...l,children:s}));O.displayName=_;import Uo from"clsx";import{forwardRef as Ko}from"react";import Vo from"@emotion/styled";import{FaGithub as Zo}from"react-icons/fa";import{jsx as I}from"react/jsx-runtime";var S="GitHubButton",Xo=Vo(c)`
260
+ display: inline-flex;
261
+ align-items: center;
262
+ justify-content: center;
263
+ gap: 10px;
264
+ padding: 0 18px;
265
+ min-height: 40px;
266
+ background-color: #24292f;
267
+ color: #ffffff;
268
+ border: 1px solid #24292f;
269
+ border-radius: 8px;
270
+ font-size: 14px;
271
+ font-weight: 500;
272
+ font-family: system-ui, -apple-system, sans-serif;
273
+ line-height: 20px;
274
+ cursor: pointer;
275
+ user-select: none;
276
+ text-decoration: none;
277
+ transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
278
+
279
+ &:hover {
280
+ background-color: #2c3237;
281
+ }
282
+
283
+ &:active {
284
+ background-color: #373e47;
285
+ }
286
+
287
+ &:focus-visible {
288
+ outline: none;
289
+ box-shadow: 0 0 0 3px rgba(36, 41, 47, 0.3);
290
+ }
291
+
292
+ ${o=>o.$disabled&&`
293
+ opacity: 0.7;
294
+ cursor: not-allowed;
295
+ pointer-events: none;
296
+
297
+ &:hover,
298
+ &:active {
299
+ background-color: #24292f;
300
+ }
301
+ `}
302
+ `,z=Ko(({as:o,asChild:t,children:s="Continue with GitHub",iconPosition:n="left",showIcon:r=!0,iconSize:i=20,disabled:e,className:a,...l},p)=>I(Xo,{as:o,ref:p,asChild:t,showIcon:r,disabled:e,$disabled:e,iconPosition:n,icon:I(Zo,{size:i}),className:Uo(a,`_necto:${S}`),...l,children:s}));z.displayName=S;import qo from"clsx";import{forwardRef as Jo}from"react";import Qo from"@emotion/styled";import{FaGitlab as Wo}from"react-icons/fa6";import{jsx as U}from"react/jsx-runtime";var K="GitLabButton",Yo=Qo(c)`
303
+ display: inline-flex;
304
+ align-items: center;
305
+ justify-content: center;
306
+ gap: 10px;
307
+ padding: 0 18px;
308
+ min-height: 40px;
309
+ background-color: #fc6d26;
310
+ color: #ffffff;
311
+ border: none;
312
+ border-radius: 8px;
313
+ font-size: 14px;
314
+ font-weight: 500;
315
+ font-family: system-ui, -apple-system, sans-serif;
316
+ line-height: 20px;
317
+ cursor: pointer;
318
+ user-select: none;
319
+ text-decoration: none;
320
+ transition: background-color 0.2s, box-shadow 0.2s;
321
+
322
+ &:hover {
323
+ background-color: #e24329;
324
+ }
325
+
326
+ &:active {
327
+ background-color: #c73b1c;
328
+ }
329
+
330
+ &:focus-visible {
331
+ outline: none;
332
+ box-shadow: 0 0 0 3px rgba(252, 109, 38, 0.3);
333
+ }
334
+
335
+ ${o=>o.$disabled&&`
336
+ opacity: 0.7;
337
+ cursor: not-allowed;
338
+ pointer-events: none;
339
+
340
+ &:hover,
341
+ &:active {
342
+ background-color: #fc6d26;
343
+ }
344
+ `}
345
+ `,V=Jo(({as:o,asChild:t,children:s="Continue with GitLab",iconPosition:n="left",showIcon:r=!0,iconSize:i=20,disabled:e,className:a,...l},p)=>U(Yo,{as:o,ref:p,asChild:t,showIcon:r,disabled:e,$disabled:e,iconPosition:n,icon:U(Wo,{size:i}),className:qo(a,`_necto:${K}`),...l,children:s}));V.displayName=K;import{forwardRef as jo}from"react";import ot from"@emotion/styled";import{FcGoogle as tt}from"react-icons/fc";import{jsx as Z}from"react/jsx-runtime";var et="GoogleButton",rt=ot(c)`
346
+ display: inline-flex;
347
+ align-items: center;
348
+ justify-content: center;
349
+ gap: 10px;
350
+ padding: 0 12px 0 12px;
351
+ min-height: 40px;
352
+ background-color: #ffffff;
353
+ color: #1f1f1f;
354
+ border: 1px solid #747775;
355
+ border-radius: 8px;
356
+ font-size: 14px;
357
+ font-weight: 500;
358
+ font-family: 'Roboto Medium', system-ui, -apple-system, sans-serif;
359
+ line-height: 20px;
360
+ cursor: pointer;
361
+ user-select: none;
362
+ text-decoration: none;
363
+ transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
364
+
365
+ &:hover {
366
+ background-color: #f8f9fa;
367
+ }
368
+
369
+ &:active {
370
+ background-color: #eceff1;
371
+ }
372
+
373
+ &:focus-visible {
374
+ outline: none;
375
+ box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
376
+ }
377
+
378
+ ${o=>o.$disabled&&`
379
+ opacity: 0.7;
380
+ cursor: not-allowed;
381
+ pointer-events: none;
382
+
383
+ &:hover,
384
+ &:active {
385
+ background-color: #ffffff;
386
+ }
387
+ `}
388
+ `,X=jo(({as:o,asChild:t,children:s="Continue with Google",iconPosition:n="left",showIcon:r=!0,iconSize:i=20,disabled:e,className:a,...l},p)=>Z(rt,{as:o,ref:p,asChild:t,showIcon:r,disabled:e,$disabled:e,className:a,iconPosition:n,icon:Z(tt,{size:i}),...l,children:s}));X.displayName=et;export{w as AppleButton,k as AtlassianButton,L as BitbucketButton,G as DiscordButton,$ as DropboxButton,x as Else,O as FacebookButton,z as GitHubButton,V as GitLabButton,X as GoogleButton,u as If,y as Primitive};
2
389
  //# sourceMappingURL=index.js.map