@necto-react/components 1.2.11 → 1.2.13

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.cjs CHANGED
@@ -1,389 +1,265 @@
1
- "use strict";var zo=Object.create;var B=Object.defineProperty;var Uo=Object.getOwnPropertyDescriptor;var Ko=Object.getOwnPropertyNames;var Vo=Object.getPrototypeOf,Zo=Object.prototype.hasOwnProperty;var Xo=(o,t)=>{for(var r in t)B(o,r,{get:t[r],enumerable:!0})},S=(o,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ko(t))!Zo.call(o,n)&&n!==r&&B(o,n,{get:()=>t[n],enumerable:!(i=Uo(t,n))||i.enumerable});return o};var f=(o,t,r)=>(r=o!=null?zo(Vo(o)):{},S(t||!o||!o.__esModule?B(r,"default",{value:o,enumerable:!0}):r,o)),qo=o=>S(B({},"__esModule",{value:!0}),o);var at={};Xo(at,{AppleButton:()=>P,AtlassianButton:()=>T,BitbucketButton:()=>F,DiscordButton:()=>L,DropboxButton:()=>H,Else:()=>E,FacebookButton:()=>M,GitHubButton:()=>$,GitLabButton:()=>_,GoogleButton:()=>I,If:()=>b,Primitive:()=>g});module.exports=qo(at);var U=require("@necto/constants"),K=require("@necto/dom"),d=require("react"),V=require("react/jsx-runtime"),Jo=K.HTMLElements.Div,z=({as:o,asChild:t,children:r,...i},n)=>{let s=o??Jo;if(t){let e=d.Children.only(r);return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,{...i,ref:e.ref??n}):null}return(0,V.jsx)(s,{ref:n,...i,children:r})},g=Object.assign((0,d.forwardRef)(z),U.DOM.HTML_TAGS.reduce((o,t)=>{let r=t,i=t[0].toUpperCase()+t.slice(1),n=(0,d.forwardRef)((s,e)=>z({...s,as:t},e));return o[r]=n,o[i]=n,o},{}));var Z=require("react"),X=require("react/jsx-runtime"),E=o=>{let{children:t}=o;return(0,X.jsx)(Z.Fragment,{children:typeof t=="function"?t():t})};var h=require("react"),q=require("react/jsx-runtime"),b=o=>{let{condition:t,keepAlive:r,children:i}=o;if(!i)return null;let n=!!(typeof t=="function"?t():t);return(0,q.jsx)(h.Fragment,{children:h.Children.toArray(i).find(s=>s.type!==E!=!n)||null})};var Q=f(require("clsx"),1),W=require("react"),Y=f(require("@emotion/styled"),1),j=require("react-icons/fa");var J=require("@necto/dom");var w=require("react");var u=require("react/jsx-runtime"),Qo=J.HTMLElements.Button,c=(0,w.forwardRef)(function({as:t=Qo,asChild:r=!1,children:i,icon:n,showIcon:s=!0,iconPosition:e="left",disabled:a,className:l,...p},Io){let So=(t?.toLowerCase?.()??"")==="button"?{disabled:a}:{role:"button",tabIndex:a?-1:0,"aria-disabled":!!a,onKeyDown:x=>{a||(x.key==="Enter"||x.key===" ")&&(p.onClick?.(x),x.preventDefault())}},y=n?(0,u.jsx)("span",{className:"_necto:brand-icon",style:{flexShrink:0,lineHeight:0,display:"inline-flex"},children:n}):null;return(0,u.jsx)(g,{as:t,ref:Io,asChild:r,className:l,...So,...p,children:(0,u.jsxs)(w.Fragment,{children:[(0,u.jsx)(b,{condition:!!y&&s&&e==="left",children:y}),i,(0,u.jsx)(b,{condition:!!y&&s&&e==="right",children:y})]})})});var R=require("react/jsx-runtime"),oo="AppleButton",Wo=(0,Y.default)(c)`
2
- display: inline-flex;
3
- align-items: center;
4
- justify-content: center;
5
- gap: 10px;
1
+ "use strict";var eo=Object.create;var R=Object.defineProperty;var ro=Object.getOwnPropertyDescriptor;var no=Object.getOwnPropertyNames;var so=Object.getPrototypeOf,io=Object.prototype.hasOwnProperty;var ao=(t,o)=>{for(var e in o)R(t,e,{get:o[e],enumerable:!0})},K=(t,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of no(o))!io.call(t,r)&&r!==e&&R(t,r,{get:()=>o[r],enumerable:!(s=ro(o,r))||s.enumerable});return t};var l=(t,o,e)=>(e=t!=null?eo(so(t)):{},K(o||!t||!t.__esModule?R(e,"default",{value:t,enumerable:!0}):e,t)),co=t=>K(R({},"__esModule",{value:!0}),t);var ie={};ao(ie,{AppleButton:()=>x,AtlassianButton:()=>A,BitbucketButton:()=>G,DiscordButton:()=>$,DropboxButton:()=>k,Else:()=>E,FacebookButton:()=>D,GitHubButton:()=>S,GitLabButton:()=>N,GoogleButton:()=>V,If:()=>g,Primitive:()=>y});module.exports=co(ie);var X=require("@necto/constants"),W=require("@necto/dom"),d=require("react"),Z=require("@emotion/react/jsx-runtime"),po=W.HTMLElements.Div,z=({as:t,asChild:o,children:e,...s},r)=>{let i=t??po;if(o){let n=d.Children.only(e);return(0,d.isValidElement)(n)?(0,d.cloneElement)(n,{...s,ref:n.ref??r}):null}return(0,Z.jsx)(i,{ref:r,...s,children:e})},y=Object.assign((0,d.forwardRef)(z),X.DOM.HTML_TAGS.reduce((t,o)=>{let e=o,s=o[0].toUpperCase()+o.slice(1),r=(0,d.forwardRef)((i,n)=>z({...i,as:o},n));return t[e]=r,t[s]=r,t},{}));var q=require("react"),J=require("@emotion/react/jsx-runtime"),E=t=>{let{children:o}=t;return(0,J.jsx)(q.Fragment,{children:typeof o=="function"?o():o})};var _=require("react"),Q=require("@emotion/react/jsx-runtime"),g=t=>{let{condition:o,keepAlive:e,children:s}=t;if(!s)return null;let r=!!(typeof o=="function"?o():o);return(0,Q.jsx)(_.Fragment,{children:_.Children.toArray(s).find(i=>i.type!==E!=!r)||null})};var tt=l(require("clsx"),1),ot=require("react"),et=l(require("@emotion/styled"),1),rt=require("react-icons/fa");var L=require("@emotion/react"),Y=require("@necto/dom");var v=require("react");var b=require("@emotion/react/jsx-runtime"),lo=Y.HTMLElements.Button,f=(0,v.forwardRef)(function({as:o=lo,asChild:e=!1,children:s,icon:r,showIcon:i=!0,iconPosition:n="left",disabled:a,className:p,...c},C){let jt=(o?.toLowerCase?.()??"")==="button"?{disabled:a}:{role:"button",tabIndex:a?-1:0,"aria-disabled":!!a,onKeyDown:B=>{a||(B.key==="Enter"||B.key===" ")&&(c.onClick?.(B),B.preventDefault())}},O=r?(0,b.jsx)("span",{className:"_necto:BrandIcon",css:L.css`
2
+ flex-shrink: 0;
3
+ line-height: 0;
4
+ display: inline-flex;
5
+ `,children:r}):null,to=L.css`
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ gap: 10px;
10
+ min-height: 40px;
11
+ width: 100%;
12
+ border-radius: 8px;
13
+ font-size: 14px;
14
+ line-height: 20px;
15
+ cursor: pointer;
16
+ user-select: none;
17
+ text-decoration: none;
18
+ transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
19
+
20
+ &:focus-visible {
21
+ outline: none;
22
+ }
23
+
24
+ ${a&&`
25
+ opacity: 0.7;
26
+ cursor: not-allowed;
27
+ pointer-events: none;
28
+ `}
29
+ `;return(0,b.jsx)(y,{as:o,ref:C,asChild:e,className:p,css:to,...jt,...(()=>{let{css:B,...oo}=c;return oo})(),children:(0,b.jsxs)(v.Fragment,{children:[(0,b.jsx)(g,{condition:!!O&&i&&n==="left",children:O}),s,(0,b.jsx)(g,{condition:!!O&&i&&n==="right",children:O})]})})});var T=require("@emotion/react/jsx-runtime"),nt="AppleButton",j="#000000",fo="#1a1a1a",mo="#333333",uo="#ffffff",bo="rgba(0, 0, 0, 0.3)",Bo=(0,et.default)(f)`
6
30
  padding: 0 18px;
7
- min-height: 40px;
8
- background-color: #000000;
9
- color: #ffffff;
31
+ background-color: var(--necto-apple-bg, ${j});
32
+ color: var(--necto-apple-text, ${uo});
10
33
  border: none;
11
- border-radius: 8px;
12
- font-size: 14px;
13
34
  font-weight: 400;
14
35
  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
36
 
21
37
  &:hover {
22
- background-color: #1a1a1a;
38
+ background-color: var(--necto-apple-bg-hover, ${fo});
23
39
  }
24
40
 
25
41
  &:active {
26
- background-color: #333333;
42
+ background-color: var(--necto-apple-bg-active, ${mo});
27
43
  }
28
44
 
29
45
  &:focus-visible {
30
- outline: none;
31
- box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
46
+ box-shadow: 0 0 0 3px var(--necto-apple-focus-shadow, ${bo});
32
47
  }
33
48
 
34
- ${o=>o.$disabled&&`
35
- opacity: 0.7;
36
- cursor: not-allowed;
37
- pointer-events: none;
38
-
49
+ ${t=>t.$disabled&&`
39
50
  &:hover,
40
51
  &:active {
41
- background-color: #000000;
52
+ background-color: var(--necto-apple-bg, ${j});
42
53
  }
43
54
  `}
44
- `,P=(0,W.forwardRef)(({as:o,asChild:t,children:r="Continue with Apple",iconPosition:i="left",showIcon:n=!0,iconSize:s=20,disabled:e,className:a,...l},p)=>(0,R.jsx)(Wo,{as:o,ref:p,asChild:t,icon:(0,R.jsx)(j.FaApple,{size:s}),showIcon:n,disabled:e,$disabled:e,iconPosition:i,className:(0,Q.default)(a,`_necto:${oo}`),...l,children:r}));P.displayName=oo;var to=f(require("clsx"),1),eo=require("react"),ro=f(require("@emotion/styled"),1);var no=require("react-icons/fa"),k=require("react/jsx-runtime"),io="AtlassianButton",Yo=(0,ro.default)(c)`
45
- display: inline-flex;
46
- align-items: center;
47
- justify-content: center;
48
- gap: 10px;
55
+ `,x=(0,ot.forwardRef)(({as:t,asChild:o,children:e="Continue with Apple",iconPosition:s="left",showIcon:r=!0,iconSize:i=20,disabled:n,className:a,...p},c)=>(0,T.jsx)(Bo,{as:t,ref:c,asChild:o,icon:(0,T.jsx)(rt.FaApple,{size:i}),showIcon:r,disabled:n,$disabled:n,iconPosition:s,className:(0,tt.default)(`_necto:${nt}`,a),...p,children:e}));x.displayName=nt;var it=l(require("clsx"),1),at=require("react"),ct=l(require("@emotion/styled"),1);var pt=require("react-icons/fa"),h=require("@emotion/react/jsx-runtime"),lt="AtlassianButton",st="#0052cc",go="#0747a6",Oo="#003d99",Ro="#ffffff",yo="rgba(0, 82, 204, 0.3)",Eo=(0,ct.default)(f)`
49
56
  padding: 0 18px;
50
- min-height: 40px;
51
- background-color: #0052cc;
52
- color: #ffffff;
57
+ background-color: var(--necto-atlassian-bg, ${st});
58
+ color: var(--necto-atlassian-text, ${Ro});
53
59
  border: none;
54
- border-radius: 8px;
55
- font-size: 14px;
56
60
  font-weight: 500;
57
61
  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
62
 
64
63
  &:hover {
65
- background-color: #0747a6;
64
+ background-color: var(--necto-atlassian-bg-hover, ${go});
66
65
  }
67
66
 
68
67
  &:active {
69
- background-color: #003d99;
68
+ background-color: var(--necto-atlassian-bg-active, ${Oo});
70
69
  }
71
70
 
72
71
  &:focus-visible {
73
- outline: none;
74
- box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.3);
72
+ box-shadow: 0 0 0 3px var(--necto-atlassian-focus-shadow, ${yo});
75
73
  }
76
74
 
77
- ${o=>o.$disabled&&`
78
- opacity: 0.7;
79
- cursor: not-allowed;
80
- pointer-events: none;
81
-
75
+ ${t=>t.$disabled&&`
82
76
  &:hover,
83
77
  &:active {
84
- background-color: #0052cc;
78
+ background-color: var(--necto-atlassian-bg, ${st});
85
79
  }
86
80
  `}
87
- `,T=(0,eo.forwardRef)(({as:o,asChild:t,children:r="Continue with Atlassian",iconPosition:i="left",showIcon:n=!0,iconSize:s=20,disabled:e,className:a,...l},p)=>(0,k.jsx)(Yo,{as:o,ref:p,asChild:t,showIcon:n,disabled:e,$disabled:e,iconPosition:i,icon:(0,k.jsx)(no.FaAtlassian,{size:s}),className:(0,to.default)(a,`_necto:${io}`),...l,children:r}));T.displayName=io;var ao=f(require("clsx"),1),po=require("react"),lo=f(require("@emotion/styled"),1);var m=require("react/jsx-runtime"),so=({size:o})=>(0,m.jsxs)("svg",{width:o,height:o,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("title",{children:"Bitbucket"}),(0,m.jsx)("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)"}),(0,m.jsx)("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}}),(0,m.jsx)("defs",{children:(0,m.jsxs)("linearGradient",{id:"paint0_linear_5907_10188",x1:"60.8078",y1:"35.1603",x2:"37.2868",y2:"51.0791",gradientUnits:"userSpaceOnUse",children:[(0,m.jsx)("stop",{offset:"0.0718327","stop-color":"white","stop-opacity":"0.4",style:{stopColor:"white",stopOpacity:.4}}),(0,m.jsx)("stop",{offset:"1","stop-color":"white",style:{stopColor:"white",stopOpacity:1}})]})})]});var v=require("react/jsx-runtime"),co="BitbucketButton",jo=(0,lo.default)(c)`
88
- display: inline-flex;
89
- align-items: center;
90
- justify-content: center;
91
- gap: 10px;
81
+ `,A=(0,at.forwardRef)(({as:t,asChild:o,children:e="Continue with Atlassian",iconPosition:s="left",showIcon:r=!0,iconSize:i=20,disabled:n,className:a,...p},c)=>(0,h.jsx)(Eo,{as:t,ref:c,asChild:o,showIcon:r,disabled:n,$disabled:n,iconPosition:s,icon:(0,h.jsx)(pt.FaAtlassian,{size:i}),className:(0,it.default)(`_necto:${lt}`,a),...p,children:e}));A.displayName=lt;var dt=l(require("clsx"),1),ut=require("react"),bt=l(require("@emotion/styled"),1);var m=require("@emotion/react/jsx-runtime"),ft=({size:t})=>(0,m.jsxs)("svg",{width:t,height:t,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,m.jsx)("title",{children:"Bitbucket"}),(0,m.jsx)("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)"}),(0,m.jsx)("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}}),(0,m.jsx)("defs",{children:(0,m.jsxs)("linearGradient",{id:"paint0_linear_5907_10188",x1:"60.8078",y1:"35.1603",x2:"37.2868",y2:"51.0791",gradientUnits:"userSpaceOnUse",children:[(0,m.jsx)("stop",{offset:"0.0718327","stop-color":"white","stop-opacity":"0.4",style:{stopColor:"white",stopOpacity:.4}}),(0,m.jsx)("stop",{offset:"1","stop-color":"white",style:{stopColor:"white",stopOpacity:1}})]})})]});var w=require("@emotion/react/jsx-runtime"),Bt="BitbucketButton",mt="#0052cc",_o="#0747a6",vo="#003d99",Co="#ffffff",Lo="rgba(0, 82, 204, 0.3)",To=(0,bt.default)(f)`
92
82
  padding: 0 18px;
93
- min-height: 40px;
94
- background-color: #0052cc;
95
- color: #ffffff;
83
+ background-color: var(--necto-bitbucket-bg, ${mt});
84
+ color: var(--necto-bitbucket-text, ${Co});
96
85
  border: none;
97
- border-radius: 8px;
98
- font-size: 14px;
99
86
  font-weight: 500;
100
87
  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
88
 
107
89
  &:hover {
108
- background-color: #0747a6;
90
+ background-color: var(--necto-bitbucket-bg-hover, ${_o});
109
91
  }
110
92
 
111
93
  &:active {
112
- background-color: #003d99;
94
+ background-color: var(--necto-bitbucket-bg-active, ${vo});
113
95
  }
114
96
 
115
97
  &:focus-visible {
116
- outline: none;
117
- box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.3);
98
+ box-shadow: 0 0 0 3px var(--necto-bitbucket-focus-shadow, ${Lo});
118
99
  }
119
100
 
120
- ${o=>o.$disabled&&`
121
- opacity: 0.7;
122
- cursor: not-allowed;
123
- pointer-events: none;
124
-
101
+ ${t=>t.$disabled&&`
125
102
  &:hover,
126
103
  &:active {
127
- background-color: #0052cc;
104
+ background-color: var(--necto-bitbucket-bg, ${mt});
128
105
  }
129
106
  `}
130
- `,F=(0,po.forwardRef)(({as:o,asChild:t,children:r="Continue with Bitbucket",iconPosition:i="left",showIcon:n=!0,iconSize:s=22,disabled:e,className:a,...l},p)=>(0,v.jsx)(jo,{as:o,ref:p,asChild:t,showIcon:n,disabled:e,$disabled:e,iconPosition:i,icon:(0,v.jsx)(so,{size:s}),className:(0,ao.default)(a,`_necto:${co}`),...l,children:r}));F.displayName=co;var fo=f(require("clsx"),1),mo=require("react"),uo=f(require("@emotion/styled"),1);var bo=require("react-icons/fa"),A=require("react/jsx-runtime"),yo="DiscordButton",ot=(0,uo.default)(c)`
131
- display: inline-flex;
132
- align-items: center;
133
- justify-content: center;
134
- gap: 10px;
107
+ `,G=(0,ut.forwardRef)(({as:t,asChild:o,children:e="Continue with Bitbucket",iconPosition:s="left",showIcon:r=!0,iconSize:i=22,disabled:n,className:a,...p},c)=>(0,w.jsx)(To,{as:t,ref:c,asChild:o,showIcon:r,disabled:n,$disabled:n,iconPosition:s,icon:(0,w.jsx)(ft,{size:i}),className:(0,dt.default)(`_necto:${Bt}`,a),...p,children:e}));G.displayName=Bt;var Ot=l(require("clsx"),1),Rt=require("react"),yt=l(require("@emotion/styled"),1);var Et=require("react-icons/fa"),P=require("@emotion/react/jsx-runtime"),_t="DiscordButton",gt="#5865f2",xo="#4752d9",ho="#3c45c0",Ao="#ffffff",wo="rgba(88, 101, 242, 0.3)",Go=(0,yt.default)(f)`
135
108
  padding: 0 18px;
136
- min-height: 40px;
137
- background-color: #5865f2;
138
- color: #ffffff;
109
+ background-color: var(--necto-discord-bg, ${gt});
110
+ color: var(--necto-discord-text, ${Ao});
139
111
  border: none;
140
- border-radius: 8px;
141
- font-size: 14px;
142
112
  font-weight: 500;
143
113
  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
114
 
150
115
  &:hover {
151
- background-color: #4752d9;
116
+ background-color: var(--necto-discord-bg-hover, ${xo});
152
117
  }
153
118
 
154
119
  &:active {
155
- background-color: #3c45c0;
120
+ background-color: var(--necto-discord-bg-active, ${ho});
156
121
  }
157
122
 
158
123
  &:focus-visible {
159
- outline: none;
160
- box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.3);
124
+ box-shadow: 0 0 0 3px var(--necto-discord-focus-shadow, ${wo});
161
125
  }
162
126
 
163
- ${o=>o.$disabled&&`
164
- opacity: 0.7;
165
- cursor: not-allowed;
166
- pointer-events: none;
167
-
127
+ ${t=>t.$disabled&&`
168
128
  &:hover,
169
129
  &:active {
170
- background-color: #5865f2;
130
+ background-color: var(--necto-discord-bg, ${gt});
171
131
  }
172
132
  `}
173
- `,L=(0,mo.forwardRef)(({as:o,asChild:t,children:r="Continue with Discord",iconPosition:i="left",showIcon:n=!0,iconSize:s=20,disabled:e,className:a,...l},p)=>(0,A.jsx)(ot,{as:o,ref:p,asChild:t,showIcon:n,disabled:e,$disabled:e,iconPosition:i,icon:(0,A.jsx)(bo.FaDiscord,{size:s}),className:(0,fo.default)(a,`_necto:${yo}`),...l,children:r}));L.displayName=yo;var xo=f(require("clsx"),1),Bo=require("react"),go=f(require("@emotion/styled"),1);var Eo=require("react-icons/fa"),C=require("react/jsx-runtime"),ho="DropboxButton",tt=(0,go.default)(c)`
174
- display: inline-flex;
175
- align-items: center;
176
- justify-content: center;
177
- gap: 10px;
133
+ `,$=(0,Rt.forwardRef)(({as:t,asChild:o,children:e="Continue with Discord",iconPosition:s="left",showIcon:r=!0,iconSize:i=20,disabled:n,className:a,...p},c)=>(0,P.jsx)(Go,{as:t,ref:c,asChild:o,showIcon:r,disabled:n,$disabled:n,iconPosition:s,icon:(0,P.jsx)(Et.FaDiscord,{size:i}),className:(0,Ot.default)(`_necto:${_t}`,a),...p,children:e}));$.displayName=_t;var Ct=l(require("clsx"),1),Lt=require("react"),Tt=l(require("@emotion/styled"),1);var xt=require("react-icons/fa"),F=require("@emotion/react/jsx-runtime"),ht="DropboxButton",vt="#0061ff",Po="#0056e0",$o="#004bc5",Fo="#ffffff",ko="rgba(0, 97, 255, 0.3)",Ho=(0,Tt.default)(f)`
178
134
  padding: 0 18px;
179
- min-height: 40px;
180
- background-color: #0061ff;
181
- color: #ffffff;
135
+ background-color: var(--necto-dropbox-bg, ${vt});
136
+ color: var(--necto-dropbox-text, ${Fo});
182
137
  border: none;
183
- border-radius: 8px;
184
- font-size: 14px;
185
138
  font-weight: 500;
186
139
  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
140
 
193
141
  &:hover {
194
- background-color: #0056e0;
142
+ background-color: var(--necto-dropbox-bg-hover, ${Po});
195
143
  }
196
144
 
197
145
  &:active {
198
- background-color: #004bc5;
146
+ background-color: var(--necto-dropbox-bg-active, ${$o});
199
147
  }
200
148
 
201
149
  &:focus-visible {
202
- outline: none;
203
- box-shadow: 0 0 0 3px rgba(0, 97, 255, 0.3);
150
+ box-shadow: 0 0 0 3px var(--necto-dropbox-focus-shadow, ${ko});
204
151
  }
205
152
 
206
- ${o=>o.$disabled&&`
207
- opacity: 0.7;
208
- cursor: not-allowed;
209
- pointer-events: none;
210
-
153
+ ${t=>t.$disabled&&`
211
154
  &:hover,
212
155
  &:active {
213
- background-color: #0061ff;
156
+ background-color: var(--necto-dropbox-bg, ${vt});
214
157
  }
215
158
  `}
216
- `,H=(0,Bo.forwardRef)(({as:o,asChild:t,children:r="Continue with Dropbox",iconPosition:i="left",showIcon:n=!0,iconSize:s=20,disabled:e,className:a,...l},p)=>(0,C.jsx)(tt,{as:o,ref:p,asChild:t,icon:(0,C.jsx)(Eo.FaDropbox,{size:s}),showIcon:n,disabled:e,$disabled:e,iconPosition:i,className:(0,xo.default)(a,`_necto:${ho}`),...l,children:r}));H.displayName=ho;var wo=f(require("clsx"),1),Ro=require("react"),Po=f(require("@emotion/styled"),1);var ko=require("react-icons/fa6"),G=require("react/jsx-runtime"),To="FacebookButton",et=(0,Po.default)(c)`
217
- display: inline-flex;
218
- align-items: center;
219
- justify-content: center;
220
- gap: 10px;
159
+ `,k=(0,Lt.forwardRef)(({as:t,asChild:o,children:e="Continue with Dropbox",iconPosition:s="left",showIcon:r=!0,iconSize:i=20,disabled:n,className:a,...p},c)=>(0,F.jsx)(Ho,{as:t,ref:c,asChild:o,icon:(0,F.jsx)(xt.FaDropbox,{size:i}),showIcon:r,disabled:n,$disabled:n,iconPosition:s,className:(0,Ct.default)(`_necto:${ht}`,a),...p,children:e}));k.displayName=ht;var wt=l(require("clsx"),1),Gt=require("react"),Pt=l(require("@emotion/styled"),1);var $t=require("react-icons/fa6"),H=require("@emotion/react/jsx-runtime"),Ft="FacebookButton",At="#1877f2",Do="#166fe5",Io="#1467d6",So="#ffffff",Mo="#1877f2",No="rgba(24, 119, 242, 0.3)",Uo=(0,Pt.default)(f)`
221
160
  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;
161
+ background-color: var(--necto-facebook-bg, ${At});
162
+ color: var(--necto-facebook-text, ${So});
163
+ border: 1px solid var(--necto-facebook-border, ${Mo});
228
164
  font-weight: 500;
229
165
  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
166
 
236
167
  &:hover {
237
- background-color: #166fe5;
168
+ background-color: var(--necto-facebook-bg-hover, ${Do});
238
169
  }
239
170
 
240
171
  &:active {
241
- background-color: #1467d6;
172
+ background-color: var(--necto-facebook-bg-active, ${Io});
242
173
  }
243
174
 
244
175
  &:focus-visible {
245
- outline: none;
246
- box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.3);
176
+ box-shadow: 0 0 0 3px var(--necto-facebook-focus-shadow, ${No});
247
177
  }
248
178
 
249
- ${o=>o.$disabled&&`
250
- opacity: 0.7;
251
- cursor: not-allowed;
252
- pointer-events: none;
253
-
179
+ ${t=>t.$disabled&&`
254
180
  &:hover,
255
181
  &:active {
256
- background-color: #1877f2;
182
+ background-color: var(--necto-facebook-bg, ${At});
257
183
  }
258
184
  `}
259
- `,M=(0,Ro.forwardRef)(({as:o,asChild:t,children:r="Continue with Facebook",iconPosition:i="left",showIcon:n=!0,iconSize:s=20,disabled:e,className:a,...l},p)=>(0,G.jsx)(et,{as:o,ref:p,asChild:t,showIcon:n,disabled:e,$disabled:e,iconPosition:i,icon:(0,G.jsx)(ko.FaFacebook,{size:s}),className:(0,wo.default)(a,`_necto:${To}`),...l,children:r}));M.displayName=To;var vo=f(require("clsx"),1),Fo=require("react"),Ao=f(require("@emotion/styled"),1);var Lo=require("react-icons/fa"),N=require("react/jsx-runtime"),Co="GitHubButton",rt=(0,Ao.default)(c)`
260
- display: inline-flex;
261
- align-items: center;
262
- justify-content: center;
263
- gap: 10px;
185
+ `,D=(0,Gt.forwardRef)(({as:t,asChild:o,children:e="Continue with Facebook",iconPosition:s="left",showIcon:r=!0,iconSize:i=20,disabled:n,className:a,...p},c)=>(0,H.jsx)(Uo,{as:t,ref:c,asChild:o,showIcon:r,disabled:n,$disabled:n,iconPosition:s,icon:(0,H.jsx)($t.FaFacebook,{size:i}),className:(0,wt.default)(`_necto:${Ft}`,a),...p,children:e}));D.displayName=Ft;var Ht=l(require("clsx"),1),Dt=require("react"),It=l(require("@emotion/styled"),1);var St=require("react-icons/fa"),I=require("@emotion/react/jsx-runtime"),Mt="GitHubButton",kt="#24292f",Vo="#2c3237",Ko="#373e47",zo="#ffffff",Xo="#24292f",Wo="rgba(36, 41, 47, 0.3)",Zo=(0,It.default)(f)`
264
186
  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;
187
+ background-color: var(--necto-github-bg, ${kt});
188
+ color: var(--necto-github-text, ${zo});
189
+ border: 1px solid var(--necto-github-border, ${Xo});
271
190
  font-weight: 500;
272
191
  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
192
 
279
193
  &:hover {
280
- background-color: #2c3237;
194
+ background-color: var(--necto-github-bg-hover, ${Vo});
281
195
  }
282
196
 
283
197
  &:active {
284
- background-color: #373e47;
198
+ background-color: var(--necto-github-bg-active, ${Ko});
285
199
  }
286
200
 
287
201
  &:focus-visible {
288
- outline: none;
289
- box-shadow: 0 0 0 3px rgba(36, 41, 47, 0.3);
202
+ box-shadow: 0 0 0 3px var(--necto-github-focus-shadow, ${Wo});
290
203
  }
291
204
 
292
- ${o=>o.$disabled&&`
293
- opacity: 0.7;
294
- cursor: not-allowed;
295
- pointer-events: none;
296
-
205
+ ${t=>t.$disabled&&`
297
206
  &:hover,
298
207
  &:active {
299
- background-color: #24292f;
208
+ background-color: var(--necto-github-bg, ${kt});
300
209
  }
301
210
  `}
302
- `,$=(0,Fo.forwardRef)(({as:o,asChild:t,children:r="Continue with GitHub",iconPosition:i="left",showIcon:n=!0,iconSize:s=20,disabled:e,className:a,...l},p)=>(0,N.jsx)(rt,{as:o,ref:p,asChild:t,showIcon:n,disabled:e,$disabled:e,iconPosition:i,icon:(0,N.jsx)(Lo.FaGithub,{size:s}),className:(0,vo.default)(a,`_necto:${Co}`),...l,children:r}));$.displayName=Co;var Ho=f(require("clsx"),1),Go=require("react"),Mo=f(require("@emotion/styled"),1);var No=require("react-icons/fa6"),D=require("react/jsx-runtime"),$o="GitLabButton",nt=(0,Mo.default)(c)`
303
- display: inline-flex;
304
- align-items: center;
305
- justify-content: center;
306
- gap: 10px;
211
+ `,S=(0,Dt.forwardRef)(({as:t,asChild:o,children:e="Continue with GitHub",iconPosition:s="left",showIcon:r=!0,iconSize:i=20,disabled:n,className:a,...p},c)=>(0,I.jsx)(Zo,{as:t,ref:c,asChild:o,showIcon:r,disabled:n,$disabled:n,iconPosition:s,icon:(0,I.jsx)(St.FaGithub,{size:i}),className:(0,Ht.default)(`_necto:${Mt}`,a),...p,children:e}));S.displayName=Mt;var Vt=l(require("clsx"),1),Kt=require("react"),zt=l(require("@emotion/styled"),1);var u=require("@emotion/react/jsx-runtime"),Nt=({size:t,color:o})=>{let e=o==null;return(0,u.jsxs)("svg",{width:t,height:t,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("title",{children:"GitLab Icon"}),(0,u.jsx)("path",{fill:e?"#E24329":o,d:"M29.5 13.2v-.1l-3.8-9.9c-.1-.2-.2-.4-.4-.5c-.4-.2-.8-.2-1.2.1c-.1.1-.3.2-.3.4l-2.6 7.9H10.8L8.2 3.2c0-.2-.2-.3-.3-.5c-.4-.2-.8-.3-1.2 0c-.2.1-.3.2-.4.4L2.5 13v.1c-1.1 2.9-.2 6.3 2.3 8.2l5.8 4.3l2.9 2.2l1.7 1.3c.4.3 1 .3 1.4 0l1.7-1.3l2.9-2.2l5.8-4.4c2.7-1.7 3.7-5.1 2.5-8"}),(0,u.jsx)("path",{fill:e?"#FC6D26":o,d:"M29.5 13.2v-.1c-1.9.4-3.6 1.2-5.1 2.3L16 21.7c2.9 2.2 5.3 4 5.3 4l5.8-4.4c2.6-1.8 3.6-5.2 2.4-8.1"}),(0,u.jsx)("path",{fill:e?"#FCA326":o,d:"m10.7 25.8l2.9 2.2l1.7 1.3c.4.3 1 .3 1.4 0l1.7-1.3l2.9-2.2s-2.5-1.9-5.3-4c-2.9 2.1-5.3 4-5.3 4"}),(0,u.jsx)("path",{fill:e?"#FC6D26":o,d:"M7.6 15.4c-1.5-1.1-3.3-1.9-5.1-2.3v.1c-1.1 2.9-.2 6.3 2.3 8.2l5.8 4.3s2.5-1.9 5.3-4z"})]})};var M=require("@emotion/react/jsx-runtime"),Xt="GitLabButton",Ut="#fc6d26",qo="#e24329",Jo="#c73b1c",Qo="#ffffff",Yo="rgba(252, 109, 38, 0.3)",jo=(0,zt.default)(f)`
307
212
  padding: 0 18px;
308
- min-height: 40px;
309
- background-color: #fc6d26;
310
- color: #ffffff;
213
+ background-color: var(--necto-gitlab-bg, ${Ut});
214
+ color: var(--necto-gitlab-text, ${Qo});
311
215
  border: none;
312
- border-radius: 8px;
313
- font-size: 14px;
314
216
  font-weight: 500;
315
217
  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
218
 
322
219
  &:hover {
323
- background-color: #e24329;
220
+ background-color: var(--necto-gitlab-bg-hover, ${qo});
324
221
  }
325
222
 
326
223
  &:active {
327
- background-color: #c73b1c;
224
+ background-color: var(--necto-gitlab-bg-active, ${Jo});
328
225
  }
329
226
 
330
227
  &:focus-visible {
331
- outline: none;
332
- box-shadow: 0 0 0 3px rgba(252, 109, 38, 0.3);
228
+ box-shadow: 0 0 0 3px var(--necto-gitlab-focus-shadow, ${Yo});
333
229
  }
334
230
 
335
- ${o=>o.$disabled&&`
336
- opacity: 0.7;
337
- cursor: not-allowed;
338
- pointer-events: none;
339
-
231
+ ${t=>t.$disabled&&`
340
232
  &:hover,
341
233
  &:active {
342
- background-color: #fc6d26;
234
+ background-color: var(--necto-gitlab-bg, ${Ut});
343
235
  }
344
236
  `}
345
- `,_=(0,Go.forwardRef)(({as:o,asChild:t,children:r="Continue with GitLab",iconPosition:i="left",showIcon:n=!0,iconSize:s=20,disabled:e,className:a,...l},p)=>(0,D.jsx)(nt,{as:o,ref:p,asChild:t,showIcon:n,disabled:e,$disabled:e,iconPosition:i,icon:(0,D.jsx)(No.FaGitlab,{size:s}),className:(0,Ho.default)(a,`_necto:${$o}`),...l,children:r}));_.displayName=$o;var Do=require("react"),_o=f(require("@emotion/styled"),1);var Oo=require("react-icons/fc"),O=require("react/jsx-runtime"),it="GoogleButton",st=(0,_o.default)(c)`
346
- display: inline-flex;
347
- align-items: center;
348
- justify-content: center;
349
- gap: 10px;
237
+ `,N=(0,Kt.forwardRef)(({as:t,asChild:o,iconColor:e="#fff",children:s="Continue with GitLab",iconPosition:r="left",showIcon:i=!0,iconSize:n=20,disabled:a,className:p,...c},C)=>(0,M.jsx)(jo,{as:t,ref:C,asChild:o,showIcon:i,disabled:a,$disabled:a,iconPosition:r,icon:(0,M.jsx)(Nt,{size:n,color:e}),className:(0,Vt.default)(`_necto:${Xt}`,p),...c,children:s}));N.displayName=Xt;var Zt=l(require("clsx"),1),qt=require("react"),Jt=l(require("@emotion/styled"),1);var Qt=require("react-icons/fc"),U=require("@emotion/react/jsx-runtime"),Yt="GoogleButton",Wt="#ffffff",te="#f8f9fa",oe="#eceff1",ee="#1f1f1f",re="#747775",ne="rgba(66, 133, 244, 0.3)",se=(0,Jt.default)(f)`
350
238
  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;
239
+ height: 40px;
240
+ background-color: var(--necto-google-bg, ${Wt});
241
+ color: var(--necto-google-text, ${ee});
242
+ border: 1px solid var(--necto-google-border, ${re});
357
243
  font-weight: 500;
358
244
  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
245
 
365
246
  &:hover {
366
- background-color: #f8f9fa;
247
+ background-color: var(--necto-google-bg-hover, ${te});
367
248
  }
368
249
 
369
250
  &:active {
370
- background-color: #eceff1;
251
+ background-color: var(--necto-google-bg-active, ${oe});
371
252
  }
372
253
 
373
254
  &:focus-visible {
374
- outline: none;
375
- box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
255
+ box-shadow: 0 0 0 3px var(--necto-google-focus-shadow, ${ne});
376
256
  }
377
257
 
378
- ${o=>o.$disabled&&`
379
- opacity: 0.7;
380
- cursor: not-allowed;
381
- pointer-events: none;
382
-
258
+ ${t=>t.$disabled&&`
383
259
  &:hover,
384
260
  &:active {
385
- background-color: #ffffff;
261
+ background-color: var(--necto-google-bg, ${Wt});
386
262
  }
387
263
  `}
388
- `,I=(0,Do.forwardRef)(({as:o,asChild:t,children:r="Continue with Google",iconPosition:i="left",showIcon:n=!0,iconSize:s=20,disabled:e,className:a,...l},p)=>(0,O.jsx)(st,{as:o,ref:p,asChild:t,showIcon:n,disabled:e,$disabled:e,className:a,iconPosition:i,icon:(0,O.jsx)(Oo.FcGoogle,{size:s}),...l,children:r}));I.displayName=it;0&&(module.exports={AppleButton,AtlassianButton,BitbucketButton,DiscordButton,DropboxButton,Else,FacebookButton,GitHubButton,GitLabButton,GoogleButton,If,Primitive});
264
+ `,V=(0,qt.forwardRef)(({as:t,asChild:o,children:e="Continue with Google",iconPosition:s="left",showIcon:r=!0,iconSize:i=20,disabled:n,className:a,...p},c)=>(0,U.jsx)(se,{as:t,ref:c,asChild:o,showIcon:r,disabled:n,$disabled:n,className:(0,Zt.default)(`_necto:${Yt}`,a),iconPosition:s,icon:(0,U.jsx)(Qt.FcGoogle,{size:i}),...p,children:e}));V.displayName=Yt;0&&(module.exports={AppleButton,AtlassianButton,BitbucketButton,DiscordButton,DropboxButton,Else,FacebookButton,GitHubButton,GitLabButton,GoogleButton,If,Primitive});
389
265
  //# sourceMappingURL=index.cjs.map