@stackshift-ui/navigation 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,373 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+
18
+ 1.4. "Covered Software"
19
+ means Source Code Form to which the initial Contributor has attached
20
+ the notice in Exhibit A, the Executable Form of such Source Code
21
+ Form, and Modifications of such Source Code Form, in each case
22
+ including portions thereof.
23
+
24
+ 1.5. "Incompatible With Secondary Licenses"
25
+ means
26
+
27
+ (a) that the initial Contributor has attached the notice described
28
+ in Exhibit B to the Covered Software; or
29
+
30
+ (b) that the Covered Software was made available under the terms of
31
+ version 1.1 or earlier of the License, but not also under the
32
+ terms of a Secondary License.
33
+
34
+ 1.6. "Executable Form"
35
+ means any form of the work other than Source Code Form.
36
+
37
+ 1.7. "Larger Work"
38
+ means a work that combines Covered Software with other material, in
39
+ a separate file or files, that is not Covered Software.
40
+
41
+ 1.8. "License"
42
+ means this document.
43
+
44
+ 1.9. "Licensable"
45
+ means having the right to grant, to the maximum extent possible,
46
+ whether at the time of the initial grant or subsequently, any and
47
+ all of the rights conveyed by this License.
48
+
49
+ 1.10. "Modifications"
50
+ means any of the following:
51
+
52
+ (a) any file in Source Code Form that results from an addition to,
53
+ deletion from, or modification of the contents of Covered
54
+ Software; or
55
+
56
+ (b) any new file in Source Code Form that contains any Covered
57
+ Software.
58
+
59
+ 1.11. "Patent Claims" of a Contributor
60
+ means any patent claim(s), including without limitation, method,
61
+ process, and apparatus claims, in any patent Licensable by such
62
+ Contributor that would be infringed, but for the grant of the
63
+ License, by the making, using, selling, offering for sale, having
64
+ made, import, or transfer of either its Contributions or its
65
+ Contributor Version.
66
+
67
+ 1.12. "Secondary License"
68
+ means either the GNU General Public License, Version 2.0, the GNU
69
+ Lesser General Public License, Version 2.1, the GNU Affero General
70
+ Public License, Version 3.0, or any later versions of those
71
+ licenses.
72
+
73
+ 1.13. "Source Code Form"
74
+ means the form of the work preferred for making modifications.
75
+
76
+ 1.14. "You" (or "Your")
77
+ means an individual or a legal entity exercising rights under this
78
+ License. For legal entities, "You" includes any entity that
79
+ controls, is controlled by, or is under common control with You. For
80
+ purposes of this definition, "control" means (a) the power, direct
81
+ or indirect, to cause the direction or management of such entity,
82
+ whether by contract or otherwise, or (b) ownership of more than
83
+ fifty percent (50%) of the outstanding shares or beneficial
84
+ ownership of such entity.
85
+
86
+ 2. License Grants and Conditions
87
+ --------------------------------
88
+
89
+ 2.1. Grants
90
+
91
+ Each Contributor hereby grants You a world-wide, royalty-free,
92
+ non-exclusive license:
93
+
94
+ (a) under intellectual property rights (other than patent or trademark)
95
+ Licensable by such Contributor to use, reproduce, make available,
96
+ modify, display, perform, distribute, and otherwise exploit its
97
+ Contributions, either on an unmodified basis, with Modifications, or
98
+ as part of a Larger Work; and
99
+
100
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
101
+ for sale, have made, import, and otherwise transfer either its
102
+ Contributions or its Contributor Version.
103
+
104
+ 2.2. Effective Date
105
+
106
+ The licenses granted in Section 2.1 with respect to any Contribution
107
+ become effective for each Contribution on the date the Contributor first
108
+ distributes such Contribution.
109
+
110
+ 2.3. Limitations on Grant Scope
111
+
112
+ The licenses granted in this Section 2 are the only rights granted under
113
+ this License. No additional rights or licenses will be implied from the
114
+ distribution or licensing of Covered Software under this License.
115
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
116
+ Contributor:
117
+
118
+ (a) for any code that a Contributor has removed from Covered Software;
119
+ or
120
+
121
+ (b) for infringements caused by: (i) Your and any other third party's
122
+ modifications of Covered Software, or (ii) the combination of its
123
+ Contributions with other software (except as part of its Contributor
124
+ Version); or
125
+
126
+ (c) under Patent Claims infringed by Covered Software in the absence of
127
+ its Contributions.
128
+
129
+ This License does not grant any rights in the trademarks, service marks,
130
+ or logos of any Contributor (except as may be necessary to comply with
131
+ the notice requirements in Section 3.4).
132
+
133
+ 2.4. Subsequent Licenses
134
+
135
+ No Contributor makes additional grants as a result of Your choice to
136
+ distribute the Covered Software under a subsequent version of this
137
+ License (see Section 10.2) or under the terms of a Secondary License (if
138
+ permitted under the terms of Section 3.3).
139
+
140
+ 2.5. Representation
141
+
142
+ Each Contributor represents that the Contributor believes its
143
+ Contributions are its original creation(s) or it has sufficient rights
144
+ to grant the rights to its Contributions conveyed by this License.
145
+
146
+ 2.6. Fair Use
147
+
148
+ This License is not intended to limit any rights You have under
149
+ applicable copyright doctrines of fair use, fair dealing, or other
150
+ equivalents.
151
+
152
+ 2.7. Conditions
153
+
154
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155
+ in Section 2.1.
156
+
157
+ 3. Responsibilities
158
+ -------------------
159
+
160
+ 3.1. Distribution of Source Form
161
+
162
+ All distribution of Covered Software in Source Code Form, including any
163
+ Modifications that You create or to which You contribute, must be under
164
+ the terms of this License. You must inform recipients that the Source
165
+ Code Form of the Covered Software is governed by the terms of this
166
+ License, and how they can obtain a copy of this License. You may not
167
+ attempt to alter or restrict the recipients' rights in the Source Code
168
+ Form.
169
+
170
+ 3.2. Distribution of Executable Form
171
+
172
+ If You distribute Covered Software in Executable Form then:
173
+
174
+ (a) such Covered Software must also be made available in Source Code
175
+ Form, as described in Section 3.1, and You must inform recipients of
176
+ the Executable Form how they can obtain a copy of such Source Code
177
+ Form by reasonable means in a timely manner, at a charge no more
178
+ than the cost of distribution to the recipient; and
179
+
180
+ (b) You may distribute such Executable Form under the terms of this
181
+ License, or sublicense it under different terms, provided that the
182
+ license for the Executable Form does not attempt to limit or alter
183
+ the recipients' rights in the Source Code Form under this License.
184
+
185
+ 3.3. Distribution of a Larger Work
186
+
187
+ You may create and distribute a Larger Work under terms of Your choice,
188
+ provided that You also comply with the requirements of this License for
189
+ the Covered Software. If the Larger Work is a combination of Covered
190
+ Software with a work governed by one or more Secondary Licenses, and the
191
+ Covered Software is not Incompatible With Secondary Licenses, this
192
+ License permits You to additionally distribute such Covered Software
193
+ under the terms of such Secondary License(s), so that the recipient of
194
+ the Larger Work may, at their option, further distribute the Covered
195
+ Software under the terms of either this License or such Secondary
196
+ License(s).
197
+
198
+ 3.4. Notices
199
+
200
+ You may not remove or alter the substance of any license notices
201
+ (including copyright notices, patent notices, disclaimers of warranty,
202
+ or limitations of liability) contained within the Source Code Form of
203
+ the Covered Software, except that You may alter any license notices to
204
+ the extent required to remedy known factual inaccuracies.
205
+
206
+ 3.5. Application of Additional Terms
207
+
208
+ You may choose to offer, and to charge a fee for, warranty, support,
209
+ indemnity or liability obligations to one or more recipients of Covered
210
+ Software. However, You may do so only on Your own behalf, and not on
211
+ behalf of any Contributor. You must make it absolutely clear that any
212
+ such warranty, support, indemnity, or liability obligation is offered by
213
+ You alone, and You hereby agree to indemnify every Contributor for any
214
+ liability incurred by such Contributor as a result of warranty, support,
215
+ indemnity or liability terms You offer. You may include additional
216
+ disclaimers of warranty and limitations of liability specific to any
217
+ jurisdiction.
218
+
219
+ 4. Inability to Comply Due to Statute or Regulation
220
+ ---------------------------------------------------
221
+
222
+ If it is impossible for You to comply with any of the terms of this
223
+ License with respect to some or all of the Covered Software due to
224
+ statute, judicial order, or regulation then You must: (a) comply with
225
+ the terms of this License to the maximum extent possible; and (b)
226
+ describe the limitations and the code they affect. Such description must
227
+ be placed in a text file included with all distributions of the Covered
228
+ Software under this License. Except to the extent prohibited by statute
229
+ or regulation, such description must be sufficiently detailed for a
230
+ recipient of ordinary skill to be able to understand it.
231
+
232
+ 5. Termination
233
+ --------------
234
+
235
+ 5.1. The rights granted under this License will terminate automatically
236
+ if You fail to comply with any of its terms. However, if You become
237
+ compliant, then the rights granted under this License from a particular
238
+ Contributor are reinstated (a) provisionally, unless and until such
239
+ Contributor explicitly and finally terminates Your grants, and (b) on an
240
+ ongoing basis, if such Contributor fails to notify You of the
241
+ non-compliance by some reasonable means prior to 60 days after You have
242
+ come back into compliance. Moreover, Your grants from a particular
243
+ Contributor are reinstated on an ongoing basis if such Contributor
244
+ notifies You of the non-compliance by some reasonable means, this is the
245
+ first time You have received notice of non-compliance with this License
246
+ from such Contributor, and You become compliant prior to 30 days after
247
+ Your receipt of the notice.
248
+
249
+ 5.2. If You initiate litigation against any entity by asserting a patent
250
+ infringement claim (excluding declaratory judgment actions,
251
+ counter-claims, and cross-claims) alleging that a Contributor Version
252
+ directly or indirectly infringes any patent, then the rights granted to
253
+ You by any and all Contributors for the Covered Software under Section
254
+ 2.1 of this License shall terminate.
255
+
256
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257
+ end user license agreements (excluding distributors and resellers) which
258
+ have been validly granted by You or Your distributors under this License
259
+ prior to termination shall survive termination.
260
+
261
+ ************************************************************************
262
+ * *
263
+ * 6. Disclaimer of Warranty *
264
+ * ------------------------- *
265
+ * *
266
+ * Covered Software is provided under this License on an "as is" *
267
+ * basis, without warranty of any kind, either expressed, implied, or *
268
+ * statutory, including, without limitation, warranties that the *
269
+ * Covered Software is free of defects, merchantable, fit for a *
270
+ * particular purpose or non-infringing. The entire risk as to the *
271
+ * quality and performance of the Covered Software is with You. *
272
+ * Should any Covered Software prove defective in any respect, You *
273
+ * (not any Contributor) assume the cost of any necessary servicing, *
274
+ * repair, or correction. This disclaimer of warranty constitutes an *
275
+ * essential part of this License. No use of any Covered Software is *
276
+ * authorized under this License except under this disclaimer. *
277
+ * *
278
+ ************************************************************************
279
+
280
+ ************************************************************************
281
+ * *
282
+ * 7. Limitation of Liability *
283
+ * -------------------------- *
284
+ * *
285
+ * Under no circumstances and under no legal theory, whether tort *
286
+ * (including negligence), contract, or otherwise, shall any *
287
+ * Contributor, or anyone who distributes Covered Software as *
288
+ * permitted above, be liable to You for any direct, indirect, *
289
+ * special, incidental, or consequential damages of any character *
290
+ * including, without limitation, damages for lost profits, loss of *
291
+ * goodwill, work stoppage, computer failure or malfunction, or any *
292
+ * and all other commercial damages or losses, even if such party *
293
+ * shall have been informed of the possibility of such damages. This *
294
+ * limitation of liability shall not apply to liability for death or *
295
+ * personal injury resulting from such party's negligence to the *
296
+ * extent applicable law prohibits such limitation. Some *
297
+ * jurisdictions do not allow the exclusion or limitation of *
298
+ * incidental or consequential damages, so this exclusion and *
299
+ * limitation may not apply to You. *
300
+ * *
301
+ ************************************************************************
302
+
303
+ 8. Litigation
304
+ -------------
305
+
306
+ Any litigation relating to this License may be brought only in the
307
+ courts of a jurisdiction where the defendant maintains its principal
308
+ place of business and such litigation shall be governed by laws of that
309
+ jurisdiction, without reference to its conflict-of-law provisions.
310
+ Nothing in this Section shall prevent a party's ability to bring
311
+ cross-claims or counter-claims.
312
+
313
+ 9. Miscellaneous
314
+ ----------------
315
+
316
+ This License represents the complete agreement concerning the subject
317
+ matter hereof. If any provision of this License is held to be
318
+ unenforceable, such provision shall be reformed only to the extent
319
+ necessary to make it enforceable. Any law or regulation which provides
320
+ that the language of a contract shall be construed against the drafter
321
+ shall not be used to construe this License against a Contributor.
322
+
323
+ 10. Versions of the License
324
+ ---------------------------
325
+
326
+ 10.1. New Versions
327
+
328
+ Mozilla Foundation is the license steward. Except as provided in Section
329
+ 10.3, no one other than the license steward has the right to modify or
330
+ publish new versions of this License. Each version will be given a
331
+ distinguishing version number.
332
+
333
+ 10.2. Effect of New Versions
334
+
335
+ You may distribute the Covered Software under the terms of the version
336
+ of the License under which You originally received the Covered Software,
337
+ or under the terms of any subsequent version published by the license
338
+ steward.
339
+
340
+ 10.3. Modified Versions
341
+
342
+ If you create software not governed by this License, and you want to
343
+ create a new license for such software, you may create and use a
344
+ modified version of this License if you rename the license and remove
345
+ any references to the name of the license steward (except to note that
346
+ such modified license differs from this License).
347
+
348
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
349
+ Licenses
350
+
351
+ If You choose to distribute Source Code Form that is Incompatible With
352
+ Secondary Licenses under the terms of this version of the License, the
353
+ notice described in Exhibit B of this License must be attached.
354
+
355
+ Exhibit A - Source Code Form License Notice
356
+ -------------------------------------------
357
+
358
+ This Source Code Form is subject to the terms of the Mozilla Public
359
+ License, v. 2.0. If a copy of the MPL was not distributed with this
360
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
361
+
362
+ If it is not possible or desirable to put the notice in a particular
363
+ file, then You may include the notice in a location (such as a LICENSE
364
+ file in a relevant directory) where a recipient would be likely to look
365
+ for such a notice.
366
+
367
+ You may add additional accurate notices of copyright ownership.
368
+
369
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
370
+ ---------------------------------------------------------
371
+
372
+ This Source Code Form is "Incompatible With Secondary Licenses", as
373
+ defined by the Mozilla Public License, v. 2.0.
package/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # @stackshift-ui/navigation
2
+
3
+ Please refer to the [documentation](https://stackshift-ui.webriq.com/docs/components/navigation) for more information.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ yarn add @stackshift-ui/navigation
9
+ # or
10
+ npm i @stackshift-ui/navigation
11
+ ```
12
+
13
+ ## Contribution
14
+
15
+ Yes please! See the
16
+ [contributing guidelines](https://github.com/stackshift-ui/components/master/CONTRIBUTING.md)
17
+ for details.
18
+
19
+ ## License
20
+
21
+ This project is licensed under the terms of the
22
+ [MIT license](https://github.com/stackshift-ui/components/master/LICENSE).
@@ -0,0 +1 @@
1
+ import{lazy as o}from"react";import{jsx as g}from"react/jsx-runtime";var n={variant_a:o(()=>import("./navigation_a.mjs")),variant_b:o(()=>import("./navigation_b.mjs")),variant_c:o(()=>import("./navigation_c.mjs")),variant_d:o(()=>import("./navigation_d.mjs"))},L="Navigation",R=({data:e})=>{var t,s,u,p,l,y,v,c,m,b;let i=e==null?void 0:e.variant,r=i&&(n==null?void 0:n[i]),f={logo:(s=(t=e==null?void 0:e.variants)==null?void 0:t.logo)!=null?s:void 0,links:(p=(u=e==null?void 0:e.variants)==null?void 0:u.routes)!=null?p:void 0,primaryButton:(y=(l=e==null?void 0:e.variants)==null?void 0:l.primaryButton)!=null?y:void 0,secondaryButton:(c=(v=e==null?void 0:e.variants)==null?void 0:v.secondaryButton)!=null?c:void 0,banner:(b=(m=e==null?void 0:e.variants)==null?void 0:m.banner)!=null?b:void 0};return r?g(r,{...f}):null};R.displayName=L;export{R as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-KQFO7OZP.mjs";import v from"react";import{Button as b}from"@stackshift-ui/button";import{Text as x}from"@stackshift-ui/text";import{Link as d}from"@stackshift-ui/link";import{Image as f}from"@stackshift-ui/image";import{Section as c}from"@stackshift-ui/section";import{Container as h}from"@stackshift-ui/container";import{Flex as u}from"@stackshift-ui/flex";import{jsx as a,jsxs as n}from"react/jsx-runtime";function N({links:e,primaryButton:l,secondaryButton:i,logo:t}){let[r,s]=v.useState(!1),m=()=>{s(g=>!g)};return n(c,{className:"bg-background",children:[a("nav",{className:"relative py-6",children:a(h,{maxWidth:1e3,children:n(u,{align:"center",justify:"between",children:[a(p,{logo:t}),a(k,{showMenu:m}),a(w,{links:e}),a(R,{primaryButton:l,secondaryButton:i})]})})}),a(F,{menu:r,showMenu:m,links:e,primaryButton:l,secondaryButton:i})]})}function p({logo:e}){var l;return e?a(d,{"aria-label":`Go to ${o(e)==="/"?"home page":o(e)}`,className:"text-3xl font-bold leading-none",href:o(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:a(f,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function w({links:e}){return e?a("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((l,i)=>n(v.Fragment,{children:[(l==null?void 0:l.label)&&a(L,{link:l},i),e.length!==i+1?a(M,{}):null]},i))}):null}function L({link:e}){return e?a("li",{children:a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function M(){return a("li",{className:"text-gray-500",children:a("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function R({primaryButton:e,secondaryButton:l}){return n(v.Fragment,{children:[(e==null?void 0:e.label)&&a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&a(b,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function k({showMenu:e}){return a("div",{className:"lg:hidden",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[a("title",{children:"Mobile menu"}),a("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function F({menu:e,showMenu:l,links:i,primaryButton:t,secondaryButton:r}){return a(v.Fragment,{children:n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[a("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),n("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[a("div",{className:"flex items-center mb-8",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:a("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),i&&a("ul",{children:i==null?void 0:i.map((s,m)=>a("li",{className:"mb-1",children:a(b,{as:"link",ariaLabel:s==null?void 0:s.label,link:s,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:s==null?void 0:s.label})},m))}),n("div",{className:"mt-auto",children:[n("div",{className:"pt-6",children:[(t==null?void 0:t.label)&&a(b,{as:"link",ariaLabel:t==null?void 0:t.label,link:t,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}),(r==null?void 0:r.label)&&a(b,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label})]}),a(x,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:a("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}export{N as a};
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-KQFO7OZP.mjs";import x from"react";import{Button as o}from"@stackshift-ui/button";import{Text as g}from"@stackshift-ui/text";import{Link as f}from"@stackshift-ui/link";import{Image as u}from"@stackshift-ui/image";import{Section as c}from"@stackshift-ui/section";import{Flex as b}from"@stackshift-ui/flex";import{jsx as l,jsxs as n}from"react/jsx-runtime";function h({links:e,primaryButton:a,secondaryButton:i,logo:t}){let[r,s]=x.useState(!1),v=()=>{s(d=>!d)};return n(c,{className:"bg-background",children:[n(b,{align:"center",justify:"between",className:"px-6 py-6",children:[l(p,{logo:t}),l(w,{links:e}),l(k,{primaryButton:a,secondaryButton:i}),l(R,{showMenu:v})]}),l(M,{menu:r,showMenu:v,links:e,primaryButton:a,secondaryButton:i})]})}function p({logo:e}){var a;return e?l(f,{"aria-label":`Go to ${m(e)==="/"?"home page":m(e)}`,className:"text-3xl font-bold leading-none",href:m(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:l(u,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function N(){return l("li",{className:"text-gray-500",children:l("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function w({links:e}){return e?l(b,{children:l("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,i)=>n(x.Fragment,{children:[l(L,{link:a},a._key),e.length!==i+1?l(N,{}):null]},i))})}):null}function L({link:e}){return e!=null&&e.label?l("li",{children:l(o,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function M({menu:e,showMenu:a,links:i,primaryButton:t,secondaryButton:r}){return n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[l("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),n(b,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[l(F,{showMenu:a}),l("div",{className:"w-full",children:i?l("ul",{children:i==null?void 0:i.map((s,v)=>l("li",{className:"mb-1",children:l(o,{as:"link",ariaLabel:s==null?void 0:s.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:s,children:s==null?void 0:s.label})},v))}):null}),n("div",{className:"w-full mt-auto",children:[n(b,{direction:"col",className:"pt-6 space-x-2",children:[t!=null&&t.label?l(o,{as:"link",link:t,ariaLabel:t==null?void 0:t.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}):null,r!=null&&r.label?l(o,{as:"link",link:r,ariaLabel:r==null?void 0:r.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}):null]}),l(g,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:l("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function R({showMenu:e}){return l("div",{className:"lg:hidden",children:l(o,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[l("title",{children:"Mobile menu"}),l("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function k({primaryButton:e,secondaryButton:a}){return n(b,{gap:4,children:[e!=null&&e.label?l(o,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-gray hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,a!=null&&a.label?l(o,{as:"link",link:a,ariaLabel:a==null?void 0:a.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label}):null]})}function F({showMenu:e}){return l("div",{className:"flex items-center mb-8",children:l(o,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:l("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})})}export{h as a};
@@ -0,0 +1 @@
1
+ import{Text as n}from"@stackshift-ui/text";import{jsx as o}from"react/jsx-runtime";var m={block:{normal:({children:e})=>o(n,{fontSize:"xs",weight:"bold",className:"text-white ",children:e})},code:({value:e})=>o("pre",{"data-language":e.language,children:o("code",{children:e.code})}),marks:{strong:({children:e})=>o("strong",{children:e}),em:({children:e})=>o("em",{children:e}),code:({children:e})=>o("code",{children:e}),link:({children:e,value:r})=>{var t;return o("a",{"aria-label":(t=r==null?void 0:r.href)!=null?t:"external link",className:"text-primary-foreground hover:text-secondary-foreground",href:r==null?void 0:r.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};export{m as a};
@@ -0,0 +1 @@
1
+ import{a as v}from"./chunk-KQFO7OZP.mjs";import o from"react";import{Button as b}from"@stackshift-ui/button";import{Text as d}from"@stackshift-ui/text";import{Link as x}from"@stackshift-ui/link";import{Image as f}from"@stackshift-ui/image";import{Section as c}from"@stackshift-ui/section";import{Container as h}from"@stackshift-ui/container";import{Flex as N}from"@stackshift-ui/flex";import{jsx as a,jsxs as n}from"react/jsx-runtime";function p({links:e,primaryButton:l,secondaryButton:r,logo:t}){let[i,s]=o.useState(!1),m=()=>{s(g=>!g)};return n(c,{className:"bg-background",children:[a("nav",{className:"relative px-6 py-6",children:a(h,{maxWidth:1e3,children:n(N,{align:"center",children:[a(u,{links:e}),a(k,{logo:t}),a(M,{primaryButton:l,secondaryButton:r}),a(R,{showMenu:m})]})})}),a(z,{menu:i,showMenu:m,links:e,primaryButton:l,secondaryButton:r})]})}function u({links:e}){return e?a("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((l,r)=>n(o.Fragment,{children:[(l==null?void 0:l.label)&&a(w,{link:l}),e.length!==r+1&&a(L,{})]},r))}):null}function w({link:e}){return e?a("li",{children:a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function L(){return a("li",{className:"text-gray-500",children:a("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function k({logo:e}){var l;return e?a("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:a(x,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:a(f,{src:e==null?void 0:e.image,alt:(l=e==null?void 0:e.alt)!=null?l:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function M({primaryButton:e,secondaryButton:l}){return n(o.Fragment,{children:[(e==null?void 0:e.label)&&a(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&a(b,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]})}function R({showMenu:e}){return a("div",{className:"ml-auto lg:hidden",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[a("title",{children:"Mobile menu"}),a("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function z({menu:e,showMenu:l,links:r,primaryButton:t,secondaryButton:i}){return n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[a("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:l}),n("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[a("div",{className:"flex items-center mb-8",children:a(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:l,children:a("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),a("div",{children:a("ul",{children:r&&(r==null?void 0:r.map((s,m)=>a("li",{className:"mb-1",children:a(b,{as:"link",ariaLabel:s==null?void 0:s.label,link:s,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:s==null?void 0:s.label})},m)))})}),n("div",{className:"mt-auto",children:[n("div",{className:"pt-6",children:[(t==null?void 0:t.label)&&a(b,{as:"link",ariaLabel:t==null?void 0:t.label,link:t,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}),(i==null?void 0:i.label)&&a(b,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label})]}),a(d,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:a("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}export{p as a};
@@ -0,0 +1 @@
1
+ var i=n=>{var e,r,t;return n!=null&&n.internalLink&&(n==null?void 0:n.type)==="linkInternal"?(r=(e=n==null?void 0:n.internalLink)==null?void 0:e.toLowerCase())!=null&&r.includes("home")?"/":`/${n.internalLink}`:n!=null&&n.externalLink&&(n==null?void 0:n.type)==="linkExternal"&&(t=n==null?void 0:n.externalLink)!=null?t:"/"};export{i as a};
@@ -0,0 +1 @@
1
+ import{a as v}from"./chunk-KQFO7OZP.mjs";import o from"react";import{Button as b}from"@stackshift-ui/button";import{Text as d}from"@stackshift-ui/text";import{Link as x}from"@stackshift-ui/link";import{Image as f}from"@stackshift-ui/image";import{Section as h}from"@stackshift-ui/section";import{Container as c}from"@stackshift-ui/container";import{Flex as N}from"@stackshift-ui/flex";import{jsx as l,jsxs as n}from"react/jsx-runtime";function u({links:e,primaryButton:a,secondaryButton:r,logo:t}){let[i,s]=o.useState(!1),m=()=>{s(g=>!g)};return n(h,{className:"bg-background",children:[l("nav",{className:"relative py-6",children:l(c,{maxWidth:1280,children:n(N,{align:"center",children:[l(p,{links:e}),l(M,{logo:t}),l(k,{primaryButton:a,secondaryButton:r}),l(R,{showMenu:m})]})})}),l(z,{menu:i,showMenu:m,links:e,primaryButton:a,secondaryButton:r})]})}function p({links:e}){return e?l("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,r)=>n(o.Fragment,{children:[(a==null?void 0:a.label)&&l(w,{link:a}),e.length!==r+1?l(L,{}):null]},r))}):null}function w({link:e}){return e?l("li",{children:l(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function L(){return l("li",{className:"text-gray-500",children:l("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function M({logo:e}){var a;return e?l("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-y-1/2 lg:transform",children:l(x,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:l(f,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function k({primaryButton:e,secondaryButton:a}){return n("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&l(b,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&l(b,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function R({showMenu:e}){return l("div",{className:"ml-auto lg:hidden",children:l(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:n("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[l("title",{children:"Mobile menu"}),l("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function z({menu:e,showMenu:a,links:r,primaryButton:t,secondaryButton:i}){return n("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[l("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),n("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-y-auto bg-white border-r",children:[l("div",{className:"flex items-center mb-8",children:l(b,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:l("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})}),l("div",{children:l("ul",{children:r&&(r==null?void 0:r.map((s,m)=>l("li",{className:"mb-1",children:l(b,{as:"link",ariaLabel:s==null?void 0:s.label,link:s,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:s==null?void 0:s.label})},m)))})}),n("div",{className:"mt-auto",children:[n("div",{className:"pt-6",children:[(t==null?void 0:t.label)&&l(b,{as:"link",ariaLabel:t==null?void 0:t.label,link:t,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:t==null?void 0:t.label}),(i==null?void 0:i.label)&&l(b,{as:"link",ariaLabel:i==null?void 0:i.label,link:i,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:i==null?void 0:i.label})]}),l(d,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:l("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}export{u as a};
@@ -0,0 +1,2 @@
1
+ import { MyPortableTextComponents } from "../types";
2
+ export declare const blockStyle: MyPortableTextComponents;
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var f=(e,o)=>{for(var t in o)a(e,t,{get:o[t],enumerable:!0})},p=(e,o,t,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of s(o))!g.call(e,n)&&n!==t&&a(e,n,{get:()=>o[n],enumerable:!(m=d(o,n))||m.enumerable});return e};var x=e=>p(a({},"__esModule",{value:!0}),e);var l={};f(l,{blockStyle:()=>i});module.exports=x(l);var c=require("@stackshift-ui/text"),r=require("react/jsx-runtime"),i={block:{normal:({children:e})=>(0,r.jsx)(c.Text,{fontSize:"xs",weight:"bold",className:"text-white ",children:e})},code:({value:e})=>(0,r.jsx)("pre",{"data-language":e.language,children:(0,r.jsx)("code",{children:e.code})}),marks:{strong:({children:e})=>(0,r.jsx)("strong",{children:e}),em:({children:e})=>(0,r.jsx)("em",{children:e}),code:({children:e})=>(0,r.jsx)("code",{children:e}),link:({children:e,value:o})=>{var t;return(0,r.jsx)("a",{"aria-label":(t=o==null?void 0:o.href)!=null?t:"external link",className:"text-primary-foreground hover:text-secondary-foreground",href:o==null?void 0:o.href,target:"_blank",rel:"noopener noreferrer",children:e})}}};0&&(module.exports={blockStyle});
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-IMQB7ODR.mjs";export{a as blockStyle};
@@ -0,0 +1,2 @@
1
+ import { Logo } from "../types";
2
+ export declare const logoLink: (logo: Logo) => string;
@@ -0,0 +1 @@
1
+ "use strict";var L=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var u=(n,e)=>{for(var r in e)L(n,r,{get:e[r],enumerable:!0})},f=(n,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of k(e))!s.call(n,i)&&i!==r&&L(n,i,{get:()=>e[i],enumerable:!(t=a(e,i))||t.enumerable});return n};var p=n=>f(L({},"__esModule",{value:!0}),n);var m={};u(m,{logoLink:()=>x});module.exports=p(m);var x=n=>{var e,r,t;return n!=null&&n.internalLink&&(n==null?void 0:n.type)==="linkInternal"?(r=(e=n==null?void 0:n.internalLink)==null?void 0:e.toLowerCase())!=null&&r.includes("home")?"/":`/${n.internalLink}`:n!=null&&n.externalLink&&(n==null?void 0:n.type)==="linkExternal"&&(t=n==null?void 0:n.externalLink)!=null?t:"/"};0&&(module.exports={logoLink});
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-KQFO7OZP.mjs";export{a as logoLink};
@@ -0,0 +1,5 @@
1
+ export * from "./navigation";
2
+ export * from "./navigation_a";
3
+ export * from "./navigation_b";
4
+ export * from "./navigation_c";
5
+ export * from "./navigation_d";
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use strict";var he=Object.create;var M=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Le=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty;var h=(e,a)=>()=>(e&&(a=e(e=0)),a);var p=(e,a)=>{for(var t in a)M(e,t,{get:a[t],enumerable:!0})},Y=(e,a,t,r)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of Ne(a))!we.call(e,l)&&l!==t&&M(e,l,{get:()=>a[l],enumerable:!(r=pe(a,l))||r.enumerable});return e};var k=(e,a,t)=>(t=e!=null?he(Le(e)):{},Y(a||!e||!e.__esModule?M(t,"default",{value:e,enumerable:!0}):t,e)),Me=e=>Y(M({},"__esModule",{value:!0}),e);var v,N=h(()=>{"use strict";v=e=>{var a,t,r;return e!=null&&e.internalLink&&(e==null?void 0:e.type)==="linkInternal"?(t=(a=e==null?void 0:e.internalLink)==null?void 0:a.toLowerCase())!=null&&t.includes("home")?"/":`/${e.internalLink}`:e!=null&&e.externalLink&&(e==null?void 0:e.type)==="linkExternal"&&(r=e==null?void 0:e.externalLink)!=null?r:"/"}});var Q={};p(Q,{Navigation_A:()=>F,default:()=>F});function F({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,o]=z.default.useState(!1),m=()=>{o(x=>!x)};return(0,s.jsxs)(O.Section,{className:"bg-background",children:[(0,s.jsxs)(u.Flex,{align:"center",justify:"between",className:"px-6 py-6",children:[(0,s.jsx)(ke,{logo:r}),(0,s.jsx)(ze,{links:e}),(0,s.jsx)(Se,{primaryButton:a,secondaryButton:t}),(0,s.jsx)(We,{showMenu:m})]}),(0,s.jsx)(Ce,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function ke({logo:e}){var a;return e?(0,s.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,s.jsx)(J.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:50,height:50,className:"text-3xl font-bold leading-none"})}):null}function Re(){return(0,s.jsx)("li",{className:"text-gray-500",children:(0,s.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function ze({links:e}){return e?(0,s.jsx)(u.Flex,{children:(0,s.jsx)("ul",{className:"hidden lg:flex lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,s.jsxs)(z.default.Fragment,{children:[(0,s.jsx)(Fe,{link:a},a._key),e.length!==t+1?(0,s.jsx)(Re,{}):null]},t))})}):null}function Fe({link:e}){return e!=null&&e.label?(0,s.jsx)("li",{children:(0,s.jsx)(g.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Ce({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,s.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,s.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,s.jsxs)(u.Flex,{as:"nav",direction:"col",className:"fixed top-0 bottom-0 left-0 w-5/6 max-w-sm px-6 py-6 overflow-O-auto bg-white border-r",children:[(0,s.jsx)(Pe,{showMenu:a}),(0,s.jsx)("div",{className:"w-full",children:t?(0,s.jsx)("ul",{children:t==null?void 0:t.map((o,m)=>(0,s.jsx)("li",{className:"mb-1",children:(0,s.jsx)(g.Button,{as:"link",ariaLabel:o==null?void 0:o.label,className:"block w-full cursor-pointer p-4 text-sm font-semibold text-gray-900 no-underline rounded hover:bg-secondary-foreground hover:text-primary",link:o,children:o==null?void 0:o.label})},m))}):null}),(0,s.jsxs)("div",{className:"w-full mt-auto",children:[(0,s.jsxs)(u.Flex,{direction:"col",className:"pt-6 space-x-2",children:[r!=null&&r.label?(0,s.jsx)(g.Button,{as:"link",link:r,ariaLabel:r==null?void 0:r.label,variant:"outline",className:"block w-full px-4 py-3 mb-3 text-xs cursor-pointer font-semibold leading-loose text-center text-gray-900 bg-gray-50 hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}):null,l!=null&&l.label?(0,s.jsx)(g.Button,{as:"link",link:l,ariaLabel:l==null?void 0:l.label,variant:"solid",className:"block w-full px-4 py-3 mb-2 cursor-pointer leading-loose text-xs text-center font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label}):null]}),(0,s.jsx)(E.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,s.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}function We({showMenu:e}){return(0,s.jsx)("div",{className:"lg:hidden",children:(0,s.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,s.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:"Mobile menu"}),(0,s.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Se({primaryButton:e,secondaryButton:a}){return(0,s.jsxs)(u.Flex,{gap:4,children:[e!=null&&e.label?(0,s.jsx)(g.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,variant:"outline",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-gray-900 bg-gray hover:bg-gray-100 rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}):null,a!=null&&a.label?(0,s.jsx)(g.Button,{as:"link",link:a,ariaLabel:a==null?void 0:a.label,variant:"solid",className:"hidden lg:flex px-4 py-3 mb-2 leading-loose text-center font-semibold text-white bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label}):null]})}function Pe({showMenu:e}){return(0,s.jsx)("div",{className:"flex items-center mb-8",children:(0,s.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation Menu",className:"navbar-close",onClick:e,children:(0,s.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})})}var z,g,E,q,J,O,u,s,C=h(()=>{"use strict";z=k(require("react")),g=require("@stackshift-ui/button"),E=require("@stackshift-ui/text"),q=require("@stackshift-ui/link"),J=require("@stackshift-ui/image"),O=require("@stackshift-ui/section"),u=require("@stackshift-ui/flex");N();s=require("react/jsx-runtime")});var ae={};p(ae,{Navigation_B:()=>W,default:()=>W});function W({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,o]=L.default.useState(!1),m=()=>{o(x=>!x)};return(0,b.jsxs)(O.Section,{className:"bg-background",children:[(0,b.jsx)("nav",{className:"relative py-6",children:(0,b.jsx)(B.Container,{maxWidth:1e3,children:(0,b.jsxs)(u.Flex,{align:"center",justify:"between",children:[(0,b.jsx)(Te,{logo:r}),(0,b.jsx)(He,{showMenu:m}),(0,b.jsx)(Ie,{links:e}),(0,b.jsx)($e,{primaryButton:a,secondaryButton:t})]})})}),(0,b.jsx)(Ve,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function Te({logo:e}){var a;return e?(0,b.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,b.jsx)(J.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:48,height:48,className:"text-3xl font-bold leading-none"})}):null}function Ie({links:e}){return e?(0,b.jsx)("ul",{className:"absolute hidden transform -translate-x-1/2 -translate-O-1/2 left-1/2 top-1/2 lg:mx-auto lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,b.jsxs)(L.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,b.jsx)(Ke,{link:a},t),e.length!==t+1?(0,b.jsx)(_e,{}):null]},t))}):null}function Ke({link:e}){return e?(0,b.jsx)("li",{children:(0,b.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function _e(){return(0,b.jsx)("li",{className:"text-gray-500",children:(0,b.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function $e({primaryButton:e,secondaryButton:a}){return(0,b.jsxs)(L.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function He({showMenu:e}){return(0,b.jsx)("div",{className:"lg:hidden",children:(0,b.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,b.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,b.jsx)("title",{children:"Mobile menu"}),(0,b.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function Ve({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,b.jsx)(L.default.Fragment,{children:(0,b.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,b.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,b.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-O-auto bg-white border-r",children:[(0,b.jsx)("div",{className:"flex items-center mb-8",children:(0,b.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,b.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,b.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})}),t&&(0,b.jsx)("ul",{children:t==null?void 0:t.map((o,m)=>(0,b.jsx)("li",{className:"mb-1",children:(0,b.jsx)(g.Button,{as:"link",ariaLabel:o==null?void 0:o.label,link:o,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:o==null?void 0:o.label})},m))}),(0,b.jsxs)("div",{className:"mt-auto",children:[(0,b.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(l==null?void 0:l.label)&&(0,b.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,b.jsx)(E.Text,{fontSize:"xs",className:"my-4 text-center text-gray-900",children:(0,b.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})})}var L,g,E,q,J,O,B,u,b,S=h(()=>{"use strict";L=k(require("react")),B=require("@stackshift-ui/container");N();b=require("react/jsx-runtime")});var be={};p(be,{Navigation_C:()=>T,default:()=>T});function T({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,o]=P.default.useState(!1),m=()=>{o(x=>!x)};return(0,i.jsxs)(O.Section,{className:"bg-background",children:[(0,i.jsx)("nav",{className:"relative py-6",children:(0,i.jsx)(B.Container,{maxWidth:1280,children:(0,i.jsxs)(u.Flex,{align:"center",children:[(0,i.jsx)(je,{links:e}),(0,i.jsx)(Ge,{logo:r}),(0,i.jsx)(Ye,{primaryButton:a,secondaryButton:t}),(0,i.jsx)(Ee,{showMenu:m})]})})}),(0,i.jsx)(qe,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function je({links:e}){return e?(0,i.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-6",children:e==null?void 0:e.map((a,t)=>(0,i.jsxs)(P.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,i.jsx)(Ae,{link:a}),e.length!==t+1?(0,i.jsx)(De,{}):null]},t))}):null}function Ae({link:e}){return e?(0,i.jsx)("li",{children:(0,i.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function De(){return(0,i.jsx)("li",{className:"text-gray-500",children:(0,i.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ge({logo:e}){var a;return e?(0,i.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-O-1/2 lg:transform",children:(0,i.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,i.jsx)(J.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:60,height:60,className:"text-3xl font-bold leading-none"})})}):null}function Ye({primaryButton:e,secondaryButton:a}){return(0,i.jsxs)("div",{className:"hidden text-right lg:ml-auto lg:block lg:w-1/3",children:[(e==null?void 0:e.label)&&(0,i.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,i.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ee({showMenu:e}){return(0,i.jsx)("div",{className:"ml-auto lg:hidden",children:(0,i.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,i.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("title",{children:"Mobile menu"}),(0,i.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function qe({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,i.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,i.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,i.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-O-auto bg-white border-r",children:[(0,i.jsx)("div",{className:"flex items-center mb-8",children:(0,i.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,i.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,i.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})}),(0,i.jsx)("div",{children:(0,i.jsx)("ul",{children:t&&(t==null?void 0:t.map((o,m)=>(0,i.jsx)("li",{className:"mb-1",children:(0,i.jsx)(g.Button,{as:"link",ariaLabel:o==null?void 0:o.label,link:o,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:o==null?void 0:o.label})},m)))})}),(0,i.jsxs)("div",{className:"mt-auto",children:[(0,i.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,i.jsx)(g.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(l==null?void 0:l.label)&&(0,i.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,i.jsx)(E.Text,{fontSize:"xs",className:"my-4 text-center text-gray-700",children:(0,i.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var P,g,E,q,J,O,B,u,i,I=h(()=>{"use strict";P=k(require("react"));N();i=require("react/jsx-runtime")});var fe={};p(fe,{Navigation_D:()=>K,default:()=>K});function K({links:e,primaryButton:a,secondaryButton:t,logo:r}){let[l,o]=R.default.useState(!1),m=()=>{o(x=>!x)};return(0,n.jsxs)(O.Section,{className:"bg-background",children:[(0,n.jsx)("nav",{className:"relative px-6 py-6",children:(0,n.jsx)(B.Container,{maxWidth:1e3,children:(0,n.jsxs)(u.Flex,{align:"center",children:[(0,n.jsx)(Je,{links:e}),(0,n.jsx)(Ue,{logo:r}),(0,n.jsx)(Xe,{primaryButton:a,secondaryButton:t}),(0,n.jsx)(Ze,{showMenu:m})]})})}),(0,n.jsx)(ye,{menu:l,showMenu:m,links:e,primaryButton:a,secondaryButton:t})]})}function Je({links:e}){return e?(0,n.jsx)("ul",{className:"hidden lg:flex lg:w-auto lg:items-center lg:space-x-5",children:e.map((a,t)=>(0,n.jsxs)(R.default.Fragment,{children:[(a==null?void 0:a.label)&&(0,n.jsx)(Oe,{link:a}),e.length!==t+1&&(0,n.jsx)(Qe,{})]},t))}):null}function Oe({link:e}){return e?(0,n.jsx)("li",{children:(0,n.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"text-sm text-gray-500 no-underline hover:text-gray-900",children:e==null?void 0:e.label})}):null}function Qe(){return(0,n.jsx)("li",{className:"text-gray-500",children:(0,n.jsx)("svg",{className:"w-4 h-4 current-fill",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})})})}function Ue({logo:e}){var a;return e?(0,n.jsx)("div",{className:"lg:absolute lg:left-1/2 lg:top-1/2 lg:-translate-x-1/2 lg:-translate-O-1/2 lg:transform",children:(0,n.jsx)(q.Link,{"aria-label":`Go to ${v(e)==="/"?"home page":v(e)}`,className:"text-3xl font-bold leading-none",href:v(e),target:e==null?void 0:e.linkTarget,rel:(e==null?void 0:e.linkTarget)==="_blank"?"noopener noreferrer":"",children:(0,n.jsx)(J.Image,{src:e==null?void 0:e.image,alt:(a=e==null?void 0:e.alt)!=null?a:"navigation-logo",width:100,height:100,className:"text-3xl font-bold leading-none"})})}):null}function Xe({primaryButton:e,secondaryButton:a}){return(0,n.jsxs)(R.default.Fragment,{children:[(e==null?void 0:e.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:e==null?void 0:e.label,link:e,className:"hidden lg:inline-block px-4 py-3 mb-2 text-gray-900 lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:e==null?void 0:e.label}),(a==null?void 0:a.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:a==null?void 0:a.label,link:a,className:"hidden lg:inline-block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:a==null?void 0:a.label})]})}function Ze({showMenu:e}){return(0,n.jsx)("div",{className:"ml-auto lg:hidden",children:(0,n.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"flex items-center p-3 navbar-burger text-primary",onClick:e,children:(0,n.jsxs)("svg",{className:"block w-4 h-4 fill-current",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:"Mobile menu"}),(0,n.jsx)("path",{g:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"})]})})})}function ye({menu:e,showMenu:a,links:t,primaryButton:r,secondaryButton:l}){return(0,n.jsxs)("div",{className:`${e?null:"hidden"} mobile-nav relative z-50`,children:[(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-800 opacity-25 navbar-backdrop",onClick:a}),(0,n.jsxs)("nav",{className:"fixed top-0 bottom-0 left-0 flex flex-col w-5/6 max-w-sm px-6 py-6 overflow-O-auto bg-white border-r",children:[(0,n.jsx)("div",{className:"flex items-center mb-8",children:(0,n.jsx)(g.Button,{variant:"unstyled",as:"button",ariaLabel:"Navigation menu",className:"navbar-close",onClick:a,children:(0,n.jsx)("svg",{className:"w-6 h-6 text-gray-500 cursor-pointer hover:text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",g:"M6 18L18 6M6 6l12 12"})})})}),(0,n.jsx)("div",{children:(0,n.jsx)("ul",{children:t&&(t==null?void 0:t.map((o,m)=>(0,n.jsx)("li",{className:"mb-1",children:(0,n.jsx)(g.Button,{as:"link",ariaLabel:o==null?void 0:o.label,link:o,className:"block p-4 text-sm font-semibold text-gray-700 no-underline rounded hover:bg-secondary-foreground hover:text-primary",children:o==null?void 0:o.label})},m)))})}),(0,n.jsxs)("div",{className:"mt-auto",children:[(0,n.jsxs)("div",{className:"pt-6",children:[(r==null?void 0:r.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:r==null?void 0:r.label,link:r,className:"block px-4 py-3 mb-2 text-gray-900 text-center lg:ml-auto lg:mr-3 bg-gray-50 hover:bg-gray-100 font-semibold rounded-l-xl rounded-t-xl",children:r==null?void 0:r.label}),(l==null?void 0:l.label)&&(0,n.jsx)(g.Button,{as:"link",ariaLabel:l==null?void 0:l.label,link:l,className:"block px-4 py-3 mb-2 leading-loose text-center text-white font-semibold bg-primary hover:bg-primary-foreground rounded-l-xl rounded-t-xl",children:l==null?void 0:l.label})]}),(0,n.jsx)(E.Text,{fontSize:"xs",muted:!0,className:"my-4 text-center ",children:(0,n.jsx)("span",{children:`\xA9 ${new Date().getFullYear()} All rights reserved.`})})]})]})]})}var R,g,E,q,J,O,B,u,n,_=h(()=>{"use strict";R=k(require("react"));N();n=require("react/jsx-runtime")});var ea={};p(ea,{Navigation:()=>ce,Navigation_A:()=>F,Navigation_B:()=>W,Navigation_C:()=>T,Navigation_D:()=>K});module.exports=Me(ea);var w=require("react"),ue=require("react/jsx-runtime"),$={variant_a:(0,w.lazy)(()=>Promise.resolve().then(()=>(C(),Q))),variant_b:(0,w.lazy)(()=>Promise.resolve().then(()=>(S(),ae))),variant_c:(0,w.lazy)(()=>Promise.resolve().then(()=>(I(),be))),variant_d:(0,w.lazy)(()=>Promise.resolve().then(()=>(_(),fe)))},Be="Navigation",ce=({data:e})=>{var l,o,m,x,H,V,j,A,D,G;let a=e==null?void 0:e.variant,t=a&&($==null?void 0:$[a]),r={logo:(o=(l=e==null?void 0:e.variants)==null?void 0:l.logo)!=null?o:void 0,links:(x=(m=e==null?void 0:e.variants)==null?void 0:m.routes)!=null?x:void 0,primaryButton:(V=(H=e==null?void 0:e.variants)==null?void 0:H.primaryButton)!=null?V:void 0,secondaryButton:(A=(j=e==null?void 0:e.variants)==null?void 0:j.secondaryButton)!=null?A:void 0,banner:(G=(D=e==null?void 0:e.variants)==null?void 0:D.banner)!=null?G:void 0};return t?(0,ue.jsx)(t,{...r}):null};ce.displayName=Be;C();S();I();_();0&&(module.exports={Navigation,Navigation_A,Navigation_B,Navigation_C,Navigation_D});
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use strict";import{a as f}from"./chunk-3DFREOSA.mjs";import{a as o}from"./chunk-6Y7ZEVQW.mjs";import{a as r}from"./chunk-52BNTFA3.mjs";import{a as e}from"./chunk-YFDMEEFC.mjs";import{a as t}from"./chunk-INJUL3VL.mjs";import"./chunk-KQFO7OZP.mjs";export{f as Navigation,o as Navigation_A,r as Navigation_B,e as Navigation_C,t as Navigation_D};
@@ -0,0 +1,17 @@
1
+ import { LabeledRoute, LabeledRouteWithKey, Logo, SectionsProps } from "./types";
2
+ export interface ResponsiveNavLinksProps {
3
+ menu: boolean;
4
+ showMenu: () => void;
5
+ links?: LabeledRouteWithKey[];
6
+ primaryButton?: LabeledRoute;
7
+ secondaryButton?: LabeledRoute;
8
+ }
9
+ export interface NavigationProps {
10
+ template?: any;
11
+ logo?: Logo;
12
+ links?: LabeledRouteWithKey[];
13
+ primaryButton?: LabeledRoute;
14
+ secondaryButton?: LabeledRoute;
15
+ banner?: any;
16
+ }
17
+ export declare const Navigation: React.FC<SectionsProps>;