property-practice-ui 0.1.2 → 0.1.3
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/CHANGELOG.md +6 -0
- package/dist/atoms.cjs +264 -114
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.js +202 -83
- package/dist/atoms.js.map +1 -1
- package/dist/index.cjs +1089 -653
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +988 -572
- package/dist/index.js.map +1 -1
- package/dist/types.cjs +29 -4
- package/dist/types.cjs.map +1 -1
- package/dist/types.js +3 -3
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/molecules/Dropdown/Dropdown.tsx +1 -1
- package/tsup.config.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { createContext, useContext, useMemo, useState, useEffect, useRef, Fragment as Fragment$1 } from 'react';
|
|
2
|
-
import styled39, { keyframes } from 'styled-components';
|
|
3
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
|
-
import { HiArrowUpRight, HiMinus, HiPlus, HiArrowLeft, HiArrowRight } from 'react-icons/hi2';
|
|
5
|
-
import { FaMinus, FaPlus as FaPlus$1, FaCheckCircle } from 'react-icons/fa';
|
|
6
|
-
import Link2 from 'next/link';
|
|
7
|
-
import { tv } from 'tailwind-variants';
|
|
8
|
-
import { TrashIcon, ClockIcon, HomeIcon } from 'property-practice-icons';
|
|
9
|
-
import { Transition, Dialog as Dialog$1, DialogPanel, DialogTitle, Button as Button$1 } from '@headlessui/react';
|
|
10
|
-
import { useAnimation, motion } from 'framer-motion';
|
|
11
|
-
import { FaPlus, FaCircleCheck, FaCircleExclamation, FaHouse, FaRegFolderOpen, FaCaretUp, FaCaretDown } from 'react-icons/fa6';
|
|
12
|
-
import { HiX } from 'react-icons/hi';
|
|
13
|
-
|
|
14
1
|
// src/molecules/Dropdown/Dropdown.tsx
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import styled21 from "styled-components";
|
|
4
|
+
|
|
5
|
+
// src/atoms/Label/Label.tsx
|
|
6
|
+
import styled from "styled-components";
|
|
15
7
|
|
|
16
8
|
// src/tokens/colors.ts
|
|
17
9
|
var colors = {
|
|
@@ -56,9 +48,12 @@ var colors = {
|
|
|
56
48
|
// src/tokens/sizes.ts
|
|
57
49
|
var sizes = {
|
|
58
50
|
sm: "12px",
|
|
51
|
+
md: "14px",
|
|
59
52
|
lg: "18px",
|
|
60
53
|
xl: "24px",
|
|
61
|
-
0: "1px"
|
|
54
|
+
0: "1px",
|
|
55
|
+
0.5: "1.5px"
|
|
56
|
+
};
|
|
62
57
|
|
|
63
58
|
// src/tokens/spaces.ts
|
|
64
59
|
var spaces = {
|
|
@@ -82,12 +77,15 @@ var spaces = {
|
|
|
82
77
|
9: "56px",
|
|
83
78
|
20: "150px"
|
|
84
79
|
};
|
|
85
|
-
|
|
80
|
+
|
|
81
|
+
// src/atoms/Label/Label.tsx
|
|
82
|
+
import { jsx } from "react/jsx-runtime";
|
|
83
|
+
var StyledLabel = styled.span`
|
|
86
84
|
color: ${(props) => colors.text[props?.color]};
|
|
87
85
|
font-size: ${sizes.sm};
|
|
88
86
|
font-weight: ${(props) => props.fontWeight};
|
|
89
87
|
`;
|
|
90
|
-
var StyledFloatingLabel =
|
|
88
|
+
var StyledFloatingLabel = styled(StyledLabel)`
|
|
91
89
|
position: absolute;
|
|
92
90
|
left: 0;
|
|
93
91
|
bottom: 100%;
|
|
@@ -111,8 +109,16 @@ var FloatingLabel = ({
|
|
|
111
109
|
}) => {
|
|
112
110
|
return /* @__PURE__ */ jsx(StyledFloatingLabel, { color, fontWeight, children: value });
|
|
113
111
|
};
|
|
112
|
+
|
|
113
|
+
// src/molecules/InputContainer/InputContainer.tsx
|
|
114
|
+
import styled20 from "styled-components";
|
|
115
|
+
|
|
116
|
+
// src/atoms/ArrowButton/ArrowButton.tsx
|
|
117
|
+
import { HiArrowUpRight } from "react-icons/hi2";
|
|
118
|
+
import styled2 from "styled-components";
|
|
119
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
114
120
|
var variants = ["brand", "teal", "blue"];
|
|
115
|
-
var StyledContainer =
|
|
121
|
+
var StyledContainer = styled2.button`
|
|
116
122
|
padding: 0.75rem;
|
|
117
123
|
${(props) => props.as === "button" ? `
|
|
118
124
|
width: 2.5rem;
|
|
@@ -142,7 +148,7 @@ var StyledContainer = styled39.button`
|
|
|
142
148
|
transform: rotate(45deg);
|
|
143
149
|
}
|
|
144
150
|
`;
|
|
145
|
-
var StyledIcon =
|
|
151
|
+
var StyledIcon = styled2(HiArrowUpRight)`
|
|
146
152
|
width: 1rem;
|
|
147
153
|
height: 1rem;
|
|
148
154
|
color: ${colors.text.secondary};
|
|
@@ -153,18 +159,21 @@ var ArrowButton = ({
|
|
|
153
159
|
asChild = false,
|
|
154
160
|
variant = "brand"
|
|
155
161
|
}) => {
|
|
156
|
-
return /* @__PURE__ */
|
|
162
|
+
return /* @__PURE__ */ jsx2(
|
|
157
163
|
StyledContainer,
|
|
158
164
|
{
|
|
159
165
|
as: asChild ? "div" : "button",
|
|
160
166
|
onClick,
|
|
161
167
|
variant,
|
|
162
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ jsx2(StyledIcon, { "aria-hidden": true })
|
|
163
169
|
}
|
|
164
170
|
);
|
|
165
171
|
};
|
|
166
172
|
ArrowButton.variants = variants;
|
|
167
173
|
|
|
174
|
+
// src/atoms/Button/Button.tsx
|
|
175
|
+
import styled4 from "styled-components";
|
|
176
|
+
|
|
168
177
|
// src/tokens/radii.ts
|
|
169
178
|
var radii = {
|
|
170
179
|
sm: "4px",
|
|
@@ -172,10 +181,14 @@ var radii = {
|
|
|
172
181
|
lg: "10px",
|
|
173
182
|
xl: "16px"
|
|
174
183
|
};
|
|
184
|
+
|
|
185
|
+
// src/atoms/Loader/Loader.tsx
|
|
186
|
+
import styled3, { keyframes } from "styled-components";
|
|
187
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
175
188
|
var spin = keyframes`
|
|
176
189
|
to { transform: rotate(360deg); }
|
|
177
190
|
`;
|
|
178
|
-
var Ring =
|
|
191
|
+
var Ring = styled3.span`
|
|
179
192
|
display: inline-block;
|
|
180
193
|
width: ${({ size }) => typeof size === "number" ? `${size}px` : size};
|
|
181
194
|
height: ${({ size }) => typeof size === "number" ? `${size}px` : size};
|
|
@@ -198,7 +211,7 @@ var Loader = ({
|
|
|
198
211
|
thickness = 3,
|
|
199
212
|
speed = "0.8s"
|
|
200
213
|
}) => {
|
|
201
|
-
return /* @__PURE__ */
|
|
214
|
+
return /* @__PURE__ */ jsx3(
|
|
202
215
|
Ring,
|
|
203
216
|
{
|
|
204
217
|
role: "status",
|
|
@@ -209,8 +222,11 @@ var Loader = ({
|
|
|
209
222
|
}
|
|
210
223
|
);
|
|
211
224
|
};
|
|
225
|
+
|
|
226
|
+
// src/atoms/Button/Button.tsx
|
|
227
|
+
import { Fragment, jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
212
228
|
var ButtonTypes = ["submit", "reset", "button"];
|
|
213
|
-
var StyledButton =
|
|
229
|
+
var StyledButton = styled4.button`
|
|
214
230
|
padding: ${spaces[2]} ${spaces[4]};
|
|
215
231
|
background-color: ${(props) => props.variant === "light" ? colors.button.primary : colors.button.secondary};
|
|
216
232
|
border-radius: ${radii.lg};
|
|
@@ -237,7 +253,7 @@ var StyledButton = styled39.button`
|
|
|
237
253
|
color: ${colors.text.primary};
|
|
238
254
|
}
|
|
239
255
|
`;
|
|
240
|
-
var ButtonText =
|
|
256
|
+
var ButtonText = styled4.span`
|
|
241
257
|
font-size: 12px;
|
|
242
258
|
font-weight: 700;
|
|
243
259
|
`;
|
|
@@ -250,7 +266,7 @@ var Button = ({
|
|
|
250
266
|
variant = "light",
|
|
251
267
|
isLoading
|
|
252
268
|
}) => {
|
|
253
|
-
return /* @__PURE__ */
|
|
269
|
+
return /* @__PURE__ */ jsx4(
|
|
254
270
|
StyledButton,
|
|
255
271
|
{
|
|
256
272
|
type,
|
|
@@ -259,14 +275,18 @@ var Button = ({
|
|
|
259
275
|
variant,
|
|
260
276
|
children: !isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
261
277
|
typeof icon !== "undefined" && icon,
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
] }) : /* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ jsx4(ButtonText, { children: text })
|
|
279
|
+
] }) : /* @__PURE__ */ jsx4(Loader, { size: "20px" })
|
|
264
280
|
}
|
|
265
281
|
);
|
|
266
282
|
};
|
|
267
283
|
Button.types = ButtonTypes;
|
|
284
|
+
|
|
285
|
+
// src/atoms/Description/Description.tsx
|
|
286
|
+
import styled5 from "styled-components";
|
|
287
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
268
288
|
var variants2 = ["primary", "secondary", "subtle", "error"];
|
|
269
|
-
var StyledDescription =
|
|
289
|
+
var StyledDescription = styled5.p`
|
|
270
290
|
margin: 0;
|
|
271
291
|
font-size: 1rem;
|
|
272
292
|
line-height: 1.6;
|
|
@@ -289,10 +309,14 @@ var Description = ({
|
|
|
289
309
|
children,
|
|
290
310
|
variant = "primary"
|
|
291
311
|
}) => {
|
|
292
|
-
return /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ jsx5(StyledDescription, { variant, children });
|
|
293
313
|
};
|
|
294
314
|
Description.variants = variants2;
|
|
295
|
-
|
|
315
|
+
|
|
316
|
+
// src/atoms/ExtendedButton/ExtendedButton.tsx
|
|
317
|
+
import styled6 from "styled-components";
|
|
318
|
+
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
319
|
+
var StyledButton2 = styled6.button`
|
|
296
320
|
display: flex;
|
|
297
321
|
align-items: center;
|
|
298
322
|
height: 2.5rem;
|
|
@@ -313,17 +337,21 @@ var ExtendedButton = ({
|
|
|
313
337
|
textBgVariant = "brand",
|
|
314
338
|
textVariant = "secondary"
|
|
315
339
|
}) => {
|
|
316
|
-
return /* @__PURE__ */
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
/* @__PURE__ */
|
|
340
|
+
return /* @__PURE__ */ jsxs2(StyledButton2, { onClick, children: [
|
|
341
|
+
/* @__PURE__ */ jsx6(ArrowButton, { asChild: true, variant: arrowVariant }),
|
|
342
|
+
/* @__PURE__ */ jsx6(TextButton, { asChild: true, text, bgVariant: textBgVariant, textVariant, uppercase: false })
|
|
319
343
|
] });
|
|
320
344
|
};
|
|
321
|
-
|
|
345
|
+
|
|
346
|
+
// src/atoms/FeatureItem/FeatureItem.tsx
|
|
347
|
+
import styled7 from "styled-components";
|
|
348
|
+
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
349
|
+
var Container = styled7.div`
|
|
322
350
|
display: flex;
|
|
323
351
|
gap: 1rem;
|
|
324
352
|
background-color: transparent;
|
|
325
353
|
`;
|
|
326
|
-
var ThumbnailWrapper =
|
|
354
|
+
var ThumbnailWrapper = styled7.div`
|
|
327
355
|
width: ${(props) => props.$size || "3rem"};
|
|
328
356
|
height: ${(props) => props.$size || "3rem"};
|
|
329
357
|
border-radius: 50%;
|
|
@@ -333,18 +361,18 @@ var ThumbnailWrapper = styled39.div`
|
|
|
333
361
|
justify-content: center;
|
|
334
362
|
flex-shrink: 0;
|
|
335
363
|
`;
|
|
336
|
-
var Content =
|
|
364
|
+
var Content = styled7.div`
|
|
337
365
|
display: flex;
|
|
338
366
|
flex-direction: column;
|
|
339
367
|
gap: 0.25rem;
|
|
340
368
|
`;
|
|
341
|
-
var Title =
|
|
369
|
+
var Title = styled7.h3`
|
|
342
370
|
margin: 0;
|
|
343
371
|
font-size: 1rem;
|
|
344
372
|
font-weight: 600;
|
|
345
373
|
color: ${(props) => colors.text[props.titleColor]};
|
|
346
374
|
`;
|
|
347
|
-
var Description2 =
|
|
375
|
+
var Description2 = styled7.p`
|
|
348
376
|
margin: 0;
|
|
349
377
|
font-size: 0.875rem;
|
|
350
378
|
line-height: 1.5;
|
|
@@ -373,25 +401,35 @@ var FeatureItem = ({
|
|
|
373
401
|
return "subtle";
|
|
374
402
|
}
|
|
375
403
|
};
|
|
376
|
-
return /* @__PURE__ */
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
/* @__PURE__ */
|
|
404
|
+
return /* @__PURE__ */ jsxs3(Container, { children: [
|
|
405
|
+
/* @__PURE__ */ jsx7(ThumbnailWrapper, { $size: thumbnailSize, thumbnailBgColor, children: thumbnail }),
|
|
406
|
+
/* @__PURE__ */ jsxs3(Content, { children: [
|
|
407
|
+
/* @__PURE__ */ jsx7(Title, { titleColor, children: title }),
|
|
408
|
+
/* @__PURE__ */ jsx7(Description2, { descriptionColor: getDescriptionColor(), children: description })
|
|
381
409
|
] })
|
|
382
410
|
] });
|
|
383
411
|
};
|
|
384
412
|
|
|
413
|
+
// src/atoms/FormContainer/FormContainer.tsx
|
|
414
|
+
import styled8 from "styled-components";
|
|
415
|
+
|
|
385
416
|
// src/tokens/breakpoints.ts
|
|
386
417
|
var breakpoints = {
|
|
387
418
|
sm: "640px",
|
|
388
|
-
|
|
389
|
-
|
|
419
|
+
md: "768px",
|
|
420
|
+
lg: "1024px",
|
|
421
|
+
xl: "1280px",
|
|
422
|
+
"2xl": "1536px"
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
// src/atoms/FormContainer/FormContainer.tsx
|
|
426
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
427
|
+
var Container2 = styled8.div`
|
|
390
428
|
width: 100%;
|
|
391
429
|
display: flex;
|
|
392
430
|
justify-content: center;
|
|
393
431
|
`;
|
|
394
|
-
|
|
432
|
+
var InnerContainer = styled8.div`
|
|
395
433
|
display: flex;
|
|
396
434
|
flex-direction: column;
|
|
397
435
|
padding: ${spaces[4]};
|
|
@@ -399,6 +437,10 @@ styled39.div`
|
|
|
399
437
|
max-width: ${breakpoints.lg};
|
|
400
438
|
gap: ${(props) => spaces[props.space]};
|
|
401
439
|
`;
|
|
440
|
+
|
|
441
|
+
// src/atoms/Header/Header.tsx
|
|
442
|
+
import styled9 from "styled-components";
|
|
443
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
402
444
|
var variants3 = {
|
|
403
445
|
h1: {
|
|
404
446
|
fontSize: "24px",
|
|
@@ -419,7 +461,7 @@ var variants3 = {
|
|
|
419
461
|
letterSpacing: "0.2px"
|
|
420
462
|
}
|
|
421
463
|
};
|
|
422
|
-
var StyledText =
|
|
464
|
+
var StyledText = styled9.h1`
|
|
423
465
|
color: ${(props) => colors.text[props?.color]};
|
|
424
466
|
font-size: ${(props) => variants3[props.variant].fontSize};
|
|
425
467
|
font-weight: ${(props) => variants3[props.variant].fontWeight};
|
|
@@ -431,12 +473,18 @@ var Header = ({
|
|
|
431
473
|
variant = "h1",
|
|
432
474
|
color = "primary"
|
|
433
475
|
}) => {
|
|
434
|
-
return /* @__PURE__ */
|
|
476
|
+
return /* @__PURE__ */ jsx9(StyledText, { variant, color, children });
|
|
435
477
|
};
|
|
436
478
|
|
|
479
|
+
// src/atoms/Input/Input.tsx
|
|
480
|
+
import styled10 from "styled-components";
|
|
481
|
+
|
|
437
482
|
// src/types.ts
|
|
438
483
|
var InputTypes = ["number", "text", "email", "date"];
|
|
439
|
-
|
|
484
|
+
|
|
485
|
+
// src/atoms/Input/Input.tsx
|
|
486
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
487
|
+
var StyledInput = styled10.input`
|
|
440
488
|
display: block;
|
|
441
489
|
height: 100%;
|
|
442
490
|
width: 100%;
|
|
@@ -446,11 +494,15 @@ var StyledInput = styled39.input`
|
|
|
446
494
|
font-weight: 600;
|
|
447
495
|
`;
|
|
448
496
|
var Input = ({ name, onChange, ...rest }) => {
|
|
449
|
-
return /* @__PURE__ */
|
|
497
|
+
return /* @__PURE__ */ jsx10(StyledInput, { name, onChange, ...rest });
|
|
450
498
|
};
|
|
451
499
|
Input.types = InputTypes;
|
|
500
|
+
|
|
501
|
+
// src/atoms/Pill/Pill.tsx
|
|
502
|
+
import styled11 from "styled-components";
|
|
503
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
452
504
|
var variants4 = ["primary", "secondary", "subtle", "error"];
|
|
453
|
-
var StyledPill =
|
|
505
|
+
var StyledPill = styled11.span`
|
|
454
506
|
display: inline-block;
|
|
455
507
|
padding: 0.5rem 1rem;
|
|
456
508
|
border-radius: 9999px;
|
|
@@ -509,10 +561,15 @@ var Pill = ({
|
|
|
509
561
|
variant = "primary",
|
|
510
562
|
inverse = false
|
|
511
563
|
}) => {
|
|
512
|
-
return /* @__PURE__ */
|
|
564
|
+
return /* @__PURE__ */ jsx11(StyledPill, { variant, $inverse: inverse, children });
|
|
513
565
|
};
|
|
514
566
|
Pill.variants = variants4;
|
|
515
|
-
|
|
567
|
+
|
|
568
|
+
// src/atoms/RadioItem/RadioItem.tsx
|
|
569
|
+
import { FaCheckCircle } from "react-icons/fa";
|
|
570
|
+
import styled12 from "styled-components";
|
|
571
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
572
|
+
var Container3 = styled12.div`
|
|
516
573
|
border-radius: ${radii.md};
|
|
517
574
|
padding: ${spaces["3"]};
|
|
518
575
|
display: flex;
|
|
@@ -538,21 +595,25 @@ var Container3 = styled39.div`
|
|
|
538
595
|
background-color: rgba(255, 255, 255, 0.92);
|
|
539
596
|
}
|
|
540
597
|
`;
|
|
541
|
-
var Label2 =
|
|
598
|
+
var Label2 = styled12.span`
|
|
542
599
|
font-size: 16px;
|
|
543
600
|
font-weight: ${(props) => props.isSelected ? "800" : "400"};
|
|
544
601
|
text-align: center;
|
|
545
602
|
`;
|
|
546
603
|
var RadioItem = ({ label, isSelected, onClick }) => {
|
|
547
|
-
return /* @__PURE__ */
|
|
548
|
-
isSelected && /* @__PURE__ */
|
|
549
|
-
/* @__PURE__ */
|
|
604
|
+
return /* @__PURE__ */ jsxs4(Container3, { onClick, children: [
|
|
605
|
+
isSelected && /* @__PURE__ */ jsx12(FaCheckCircle, { color: colors.background.blue }),
|
|
606
|
+
/* @__PURE__ */ jsx12(Label2, { isSelected, children: label })
|
|
550
607
|
] });
|
|
551
608
|
};
|
|
552
|
-
|
|
609
|
+
|
|
610
|
+
// src/atoms/SecondaryInput/SecondaryInput.tsx
|
|
611
|
+
import styled13 from "styled-components";
|
|
612
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
613
|
+
var Container4 = styled13.div`
|
|
553
614
|
width: 100%;
|
|
554
615
|
`;
|
|
555
|
-
var Label3 =
|
|
616
|
+
var Label3 = styled13.label`
|
|
556
617
|
display: block;
|
|
557
618
|
font-size: 13px;
|
|
558
619
|
font-weight: 600;
|
|
@@ -560,12 +621,12 @@ var Label3 = styled39.label`
|
|
|
560
621
|
opacity: 0.8;
|
|
561
622
|
margin-bottom: 0.5rem;
|
|
562
623
|
`;
|
|
563
|
-
var StyledInput2 =
|
|
624
|
+
var StyledInput2 = styled13.input`
|
|
564
625
|
height: 2.75rem;
|
|
565
626
|
width: 100%;
|
|
566
627
|
border-radius: 6px;
|
|
567
628
|
border: 1px solid ${(props) => props.$borderColor || "#d1d5db"};
|
|
568
|
-
background-color: ${(props) => props.$bgColor ? colors.background[props.$bgColor] : colors.background?.light};
|
|
629
|
+
background-color: ${(props) => props.$bgColor ? colors.background[props.$bgColor] : colors.background?.light || "#f9fafb"};
|
|
569
630
|
padding: 0 0.75rem;
|
|
570
631
|
font-size: 15px;
|
|
571
632
|
color: ${(props) => props.$textColor ? colors.text[props.$textColor] : colors.text.primary};
|
|
@@ -582,11 +643,11 @@ var StyledInput2 = styled39.input`
|
|
|
582
643
|
}};
|
|
583
644
|
}
|
|
584
645
|
`;
|
|
585
|
-
var StyledTextArea =
|
|
646
|
+
var StyledTextArea = styled13.textarea`
|
|
586
647
|
width: 100%;
|
|
587
648
|
border-radius: 6px;
|
|
588
649
|
border: 1px solid ${(props) => props.$borderColor || "#d1d5db"};
|
|
589
|
-
background-color: ${(props) => props.$bgColor ? colors.background[props.$bgColor] : colors.background?.light};
|
|
650
|
+
background-color: ${(props) => props.$bgColor ? colors.background[props.$bgColor] : colors.background?.light || "#f9fafb"};
|
|
590
651
|
padding: 0.75rem;
|
|
591
652
|
font-size: 15px;
|
|
592
653
|
color: ${(props) => props.$textColor ? colors.text[props.$textColor] : colors.text.primary};
|
|
@@ -614,9 +675,9 @@ var SecondaryInput = ({
|
|
|
614
675
|
focusRingColor = "brand",
|
|
615
676
|
...rest
|
|
616
677
|
}) => {
|
|
617
|
-
return /* @__PURE__ */
|
|
618
|
-
typeof label === "string" && /* @__PURE__ */
|
|
619
|
-
isTextArea ? /* @__PURE__ */
|
|
678
|
+
return /* @__PURE__ */ jsxs5(Container4, { children: [
|
|
679
|
+
typeof label === "string" && /* @__PURE__ */ jsx13(Label3, { $color: labelColor, children: label }),
|
|
680
|
+
isTextArea ? /* @__PURE__ */ jsx13(
|
|
620
681
|
StyledTextArea,
|
|
621
682
|
{
|
|
622
683
|
...rest,
|
|
@@ -627,7 +688,7 @@ var SecondaryInput = ({
|
|
|
627
688
|
$borderColor: borderColor,
|
|
628
689
|
$focusRingColor: focusRingColor
|
|
629
690
|
}
|
|
630
|
-
) : /* @__PURE__ */
|
|
691
|
+
) : /* @__PURE__ */ jsx13(
|
|
631
692
|
StyledInput2,
|
|
632
693
|
{
|
|
633
694
|
...rest,
|
|
@@ -640,8 +701,12 @@ var SecondaryInput = ({
|
|
|
640
701
|
)
|
|
641
702
|
] });
|
|
642
703
|
};
|
|
704
|
+
|
|
705
|
+
// src/atoms/SocialButton/SocialButton.tsx
|
|
706
|
+
import styled14 from "styled-components";
|
|
707
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
643
708
|
var variants5 = ["primary", "secondary", "inverse", "filled"];
|
|
644
|
-
var StyledButton3 =
|
|
709
|
+
var StyledButton3 = styled14.button`
|
|
645
710
|
width: 2.5rem;
|
|
646
711
|
height: 2.5rem;
|
|
647
712
|
display: flex;
|
|
@@ -705,7 +770,7 @@ var SocialButton = ({
|
|
|
705
770
|
variant = "primary",
|
|
706
771
|
ariaLabel
|
|
707
772
|
}) => {
|
|
708
|
-
return /* @__PURE__ */
|
|
773
|
+
return /* @__PURE__ */ jsx14(
|
|
709
774
|
StyledButton3,
|
|
710
775
|
{
|
|
711
776
|
onClick,
|
|
@@ -716,8 +781,12 @@ var SocialButton = ({
|
|
|
716
781
|
);
|
|
717
782
|
};
|
|
718
783
|
SocialButton.variants = variants5;
|
|
784
|
+
|
|
785
|
+
// src/atoms/TermsCheckbox/TermsCheckbox.tsx
|
|
786
|
+
import styled15 from "styled-components";
|
|
787
|
+
import { jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
719
788
|
var variants6 = ["primary", "secondary", "subtle"];
|
|
720
|
-
var CheckboxContainer =
|
|
789
|
+
var CheckboxContainer = styled15.label`
|
|
721
790
|
display: flex;
|
|
722
791
|
align-items: flex-start;
|
|
723
792
|
gap: 0.75rem;
|
|
@@ -725,12 +794,12 @@ var CheckboxContainer = styled39.label`
|
|
|
725
794
|
font-size: 0.875rem;
|
|
726
795
|
line-height: 1.5;
|
|
727
796
|
`;
|
|
728
|
-
var HiddenCheckbox =
|
|
797
|
+
var HiddenCheckbox = styled15.input.attrs({ type: "checkbox" })`
|
|
729
798
|
position: absolute;
|
|
730
799
|
opacity: 0;
|
|
731
800
|
cursor: pointer;
|
|
732
801
|
`;
|
|
733
|
-
var StyledCheckbox =
|
|
802
|
+
var StyledCheckbox = styled15.div`
|
|
734
803
|
width: 1.25rem;
|
|
735
804
|
height: 1.25rem;
|
|
736
805
|
border: 2px solid ${(props) => {
|
|
@@ -778,7 +847,7 @@ var StyledCheckbox = styled39.div`
|
|
|
778
847
|
display: ${(props) => props.$checked ? "block" : "none"};
|
|
779
848
|
}
|
|
780
849
|
`;
|
|
781
|
-
var Text =
|
|
850
|
+
var Text = styled15.span`
|
|
782
851
|
color: ${(props) => {
|
|
783
852
|
switch (props.variant) {
|
|
784
853
|
case "primary":
|
|
@@ -792,7 +861,7 @@ var Text = styled39.span`
|
|
|
792
861
|
}
|
|
793
862
|
}};
|
|
794
863
|
`;
|
|
795
|
-
var Link =
|
|
864
|
+
var Link = styled15.a`
|
|
796
865
|
color: ${(props) => {
|
|
797
866
|
switch (props.variant) {
|
|
798
867
|
case "primary":
|
|
@@ -823,27 +892,31 @@ var TermsCheckbox = ({
|
|
|
823
892
|
cookieUrl = "/cookie-policy",
|
|
824
893
|
variant = "primary"
|
|
825
894
|
}) => {
|
|
826
|
-
return /* @__PURE__ */
|
|
827
|
-
/* @__PURE__ */
|
|
895
|
+
return /* @__PURE__ */ jsxs6(CheckboxContainer, { children: [
|
|
896
|
+
/* @__PURE__ */ jsx15(
|
|
828
897
|
HiddenCheckbox,
|
|
829
898
|
{
|
|
830
899
|
checked,
|
|
831
900
|
onChange: (e) => onChange(e.target.checked)
|
|
832
901
|
}
|
|
833
902
|
),
|
|
834
|
-
/* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
903
|
+
/* @__PURE__ */ jsx15(StyledCheckbox, { $checked: checked, variant }),
|
|
904
|
+
/* @__PURE__ */ jsxs6(Text, { variant, children: [
|
|
836
905
|
text,
|
|
837
906
|
" ",
|
|
838
|
-
/* @__PURE__ */
|
|
907
|
+
/* @__PURE__ */ jsx15(Link, { href: termsUrl, variant, target: "_blank", rel: "noopener noreferrer", children: termsText }),
|
|
839
908
|
" ",
|
|
840
909
|
"and",
|
|
841
910
|
" ",
|
|
842
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ jsx15(Link, { href: cookieUrl, variant, target: "_blank", rel: "noopener noreferrer", children: cookieText })
|
|
843
912
|
] })
|
|
844
913
|
] });
|
|
845
914
|
};
|
|
846
915
|
TermsCheckbox.variants = variants6;
|
|
916
|
+
|
|
917
|
+
// src/atoms/Text/Text.tsx
|
|
918
|
+
import styled16 from "styled-components";
|
|
919
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
847
920
|
var sizes2 = ["sm", "md", "lg"];
|
|
848
921
|
var variants7 = {
|
|
849
922
|
sm: {
|
|
@@ -859,7 +932,7 @@ var variants7 = {
|
|
|
859
932
|
fontWeight: 500
|
|
860
933
|
}
|
|
861
934
|
};
|
|
862
|
-
var StyledText2 =
|
|
935
|
+
var StyledText2 = styled16.h1`
|
|
863
936
|
color: ${(props) => colors.text[props?.color]};
|
|
864
937
|
font-size: ${(props) => variants7[props.variant].fontSize};
|
|
865
938
|
font-weight: ${(props) => variants7[props.variant].fontWeight};
|
|
@@ -869,10 +942,14 @@ var Text2 = ({
|
|
|
869
942
|
color = "primary",
|
|
870
943
|
variant = "md"
|
|
871
944
|
}) => {
|
|
872
|
-
return /* @__PURE__ */
|
|
945
|
+
return /* @__PURE__ */ jsx16(StyledText2, { color, variant, children });
|
|
873
946
|
};
|
|
874
947
|
Text2.variants = sizes2;
|
|
875
|
-
|
|
948
|
+
|
|
949
|
+
// src/atoms/Textarea/Textarea.tsx
|
|
950
|
+
import styled17 from "styled-components";
|
|
951
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
952
|
+
var StyledTextarea = styled17.textarea`
|
|
876
953
|
display: block;
|
|
877
954
|
width: 100%;
|
|
878
955
|
height: 100%;
|
|
@@ -888,12 +965,16 @@ var Textarea = ({
|
|
|
888
965
|
rows = 3,
|
|
889
966
|
...rest
|
|
890
967
|
}) => {
|
|
891
|
-
return /* @__PURE__ */
|
|
968
|
+
return /* @__PURE__ */ jsx17(StyledTextarea, { name, onChange, rows, ...rest });
|
|
892
969
|
};
|
|
893
970
|
Textarea.types = InputTypes;
|
|
971
|
+
|
|
972
|
+
// src/atoms/TextButton/TextButton.tsx
|
|
973
|
+
import styled18 from "styled-components";
|
|
974
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
894
975
|
var bgVariants = ["primary", "secondary", "tertiary", "subtle", "blue", "brand", "light", "transparent"];
|
|
895
976
|
var textVariants = ["brand", "primary", "secondary", "tertiary", "subtle", "light", "error", "blue"];
|
|
896
|
-
var StyledContainer2 =
|
|
977
|
+
var StyledContainer2 = styled18.button`
|
|
897
978
|
padding: 0 1rem;
|
|
898
979
|
height: 2.5rem;
|
|
899
980
|
display: flex;
|
|
@@ -912,7 +993,7 @@ var StyledContainer2 = styled39.button`
|
|
|
912
993
|
opacity: 0.9;
|
|
913
994
|
}
|
|
914
995
|
`;
|
|
915
|
-
var StyledText3 =
|
|
996
|
+
var StyledText3 = styled18.span`
|
|
916
997
|
color: ${(props) => colors.text[props.textVariant]};
|
|
917
998
|
font-size: 0.75rem;
|
|
918
999
|
letter-spacing: 0.05em;
|
|
@@ -928,19 +1009,24 @@ var TextButton = ({
|
|
|
928
1009
|
uppercase = true,
|
|
929
1010
|
bold = false
|
|
930
1011
|
}) => {
|
|
931
|
-
return /* @__PURE__ */
|
|
1012
|
+
return /* @__PURE__ */ jsx18(
|
|
932
1013
|
StyledContainer2,
|
|
933
1014
|
{
|
|
934
1015
|
as: asChild ? "div" : "button",
|
|
935
1016
|
onClick,
|
|
936
1017
|
bgVariant,
|
|
937
|
-
children: /* @__PURE__ */
|
|
1018
|
+
children: /* @__PURE__ */ jsx18(StyledText3, { textVariant, $uppercase: uppercase, $bold: bold, children: text })
|
|
938
1019
|
}
|
|
939
1020
|
);
|
|
940
1021
|
};
|
|
941
1022
|
TextButton.bgVariants = bgVariants;
|
|
942
1023
|
TextButton.textVariants = textVariants;
|
|
943
|
-
|
|
1024
|
+
|
|
1025
|
+
// src/atoms/ToggleButton/ToggleButton.tsx
|
|
1026
|
+
import styled19 from "styled-components";
|
|
1027
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1028
|
+
var variants8 = ["primary", "secondary", "subtle"];
|
|
1029
|
+
var ToggleContainer = styled19.div`
|
|
944
1030
|
display: inline-flex;
|
|
945
1031
|
background-color: ${(props) => {
|
|
946
1032
|
switch (props.variant) {
|
|
@@ -958,7 +1044,7 @@ styled39.div`
|
|
|
958
1044
|
padding: 0.25rem;
|
|
959
1045
|
gap: 0.25rem;
|
|
960
1046
|
`;
|
|
961
|
-
|
|
1047
|
+
var ToggleOption = styled19.button`
|
|
962
1048
|
padding: 0.5rem 1.5rem;
|
|
963
1049
|
border-radius: 9999px;
|
|
964
1050
|
border: none;
|
|
@@ -1003,10 +1089,31 @@ styled39.button`
|
|
|
1003
1089
|
opacity: ${(props) => props.$isActive ? 1 : 0.7};
|
|
1004
1090
|
}
|
|
1005
1091
|
`;
|
|
1006
|
-
var
|
|
1092
|
+
var ToggleButton = ({
|
|
1093
|
+
options,
|
|
1094
|
+
activeOption,
|
|
1095
|
+
onChange,
|
|
1096
|
+
variant = "primary"
|
|
1097
|
+
}) => {
|
|
1098
|
+
return /* @__PURE__ */ jsx19(ToggleContainer, { variant, children: options.map((option) => /* @__PURE__ */ jsx19(
|
|
1099
|
+
ToggleOption,
|
|
1100
|
+
{
|
|
1101
|
+
$isActive: activeOption === option,
|
|
1102
|
+
variant,
|
|
1103
|
+
onClick: () => onChange(option),
|
|
1104
|
+
children: option
|
|
1105
|
+
},
|
|
1106
|
+
option
|
|
1107
|
+
)) });
|
|
1108
|
+
};
|
|
1109
|
+
ToggleButton.variants = variants8;
|
|
1110
|
+
|
|
1111
|
+
// src/molecules/InputContainer/InputContainer.tsx
|
|
1112
|
+
import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1113
|
+
var Container5 = styled20.div`
|
|
1007
1114
|
width: 100%;
|
|
1008
1115
|
`;
|
|
1009
|
-
var InnerContainer2 =
|
|
1116
|
+
var InnerContainer2 = styled20.div`
|
|
1010
1117
|
position: relative;
|
|
1011
1118
|
width: 100%;
|
|
1012
1119
|
min-height: 58px;
|
|
@@ -1034,12 +1141,15 @@ var InputContainer = ({
|
|
|
1034
1141
|
children,
|
|
1035
1142
|
variant = "outline"
|
|
1036
1143
|
}) => {
|
|
1037
|
-
return /* @__PURE__ */
|
|
1038
|
-
/* @__PURE__ */
|
|
1039
|
-
typeof error === "string" && /* @__PURE__ */
|
|
1144
|
+
return /* @__PURE__ */ jsxs7(Container5, { children: [
|
|
1145
|
+
/* @__PURE__ */ jsx20(InnerContainer2, { error, variant, children }),
|
|
1146
|
+
typeof error === "string" && /* @__PURE__ */ jsx20(Label, { value: error, color: "error" })
|
|
1040
1147
|
] });
|
|
1041
1148
|
};
|
|
1042
|
-
|
|
1149
|
+
|
|
1150
|
+
// src/molecules/Dropdown/Dropdown.tsx
|
|
1151
|
+
import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1152
|
+
var Select = styled21.select`
|
|
1043
1153
|
width: 100%;
|
|
1044
1154
|
color: ${colors.text.subtle};
|
|
1045
1155
|
background: transparent;
|
|
@@ -1061,7 +1171,7 @@ var Select = styled39.select`
|
|
|
1061
1171
|
color: ${colors.text.subtle};
|
|
1062
1172
|
}
|
|
1063
1173
|
`;
|
|
1064
|
-
var OptionItem =
|
|
1174
|
+
var OptionItem = styled21.option`
|
|
1065
1175
|
color: ${(props) => props.disabled ? colors.text.light : colors.text.subtle};
|
|
1066
1176
|
`;
|
|
1067
1177
|
var Dropdown = ({
|
|
@@ -1075,11 +1185,11 @@ var Dropdown = ({
|
|
|
1075
1185
|
disabled
|
|
1076
1186
|
}) => {
|
|
1077
1187
|
const isInvalid = useMemo(
|
|
1078
|
-
() => typeof error === "string" && error?.length > 0,
|
|
1188
|
+
() => error ? typeof error === "string" && error?.length > 0 : false,
|
|
1079
1189
|
[error]
|
|
1080
1190
|
);
|
|
1081
|
-
return /* @__PURE__ */
|
|
1082
|
-
typeof label === "string" && /* @__PURE__ */
|
|
1191
|
+
return /* @__PURE__ */ jsxs8(InputContainer, { error, children: [
|
|
1192
|
+
typeof label === "string" && /* @__PURE__ */ jsx21(
|
|
1083
1193
|
FloatingLabel,
|
|
1084
1194
|
{
|
|
1085
1195
|
value: label,
|
|
@@ -1087,7 +1197,7 @@ var Dropdown = ({
|
|
|
1087
1197
|
fontWeight: "600"
|
|
1088
1198
|
}
|
|
1089
1199
|
),
|
|
1090
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ jsxs8(
|
|
1091
1201
|
Select,
|
|
1092
1202
|
{
|
|
1093
1203
|
name,
|
|
@@ -1096,13 +1206,16 @@ var Dropdown = ({
|
|
|
1096
1206
|
isInvalid,
|
|
1097
1207
|
disabled,
|
|
1098
1208
|
children: [
|
|
1099
|
-
/* @__PURE__ */
|
|
1100
|
-
options.map((option) => /* @__PURE__ */
|
|
1209
|
+
/* @__PURE__ */ jsx21(OptionItem, { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
1210
|
+
options.map((option) => /* @__PURE__ */ jsx21(OptionItem, { value: option.value, children: option.label }, option.value))
|
|
1101
1211
|
]
|
|
1102
1212
|
}
|
|
1103
1213
|
)
|
|
1104
1214
|
] });
|
|
1105
1215
|
};
|
|
1216
|
+
|
|
1217
|
+
// src/components/Filter/Filter.tsx
|
|
1218
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1106
1219
|
function Filter({
|
|
1107
1220
|
name,
|
|
1108
1221
|
label,
|
|
@@ -1111,7 +1224,7 @@ function Filter({
|
|
|
1111
1224
|
onChange,
|
|
1112
1225
|
placeholder = "Filter by User"
|
|
1113
1226
|
}) {
|
|
1114
|
-
return /* @__PURE__ */
|
|
1227
|
+
return /* @__PURE__ */ jsx22(
|
|
1115
1228
|
Dropdown,
|
|
1116
1229
|
{
|
|
1117
1230
|
name,
|
|
@@ -1123,6 +1236,11 @@ function Filter({
|
|
|
1123
1236
|
}
|
|
1124
1237
|
);
|
|
1125
1238
|
}
|
|
1239
|
+
|
|
1240
|
+
// src/components/NavMenu.tsx
|
|
1241
|
+
import Link2 from "next/link";
|
|
1242
|
+
import { tv } from "tailwind-variants";
|
|
1243
|
+
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1126
1244
|
function NavMenu({ direction, items, selected = "" }) {
|
|
1127
1245
|
const containerStyle = tv({
|
|
1128
1246
|
base: "flex",
|
|
@@ -1136,22 +1254,22 @@ function NavMenu({ direction, items, selected = "" }) {
|
|
|
1136
1254
|
direction: "horizontal"
|
|
1137
1255
|
}
|
|
1138
1256
|
});
|
|
1139
|
-
return /* @__PURE__ */
|
|
1257
|
+
return /* @__PURE__ */ jsx23("ul", { className: containerStyle({ direction }), children: items.map((item, i) => /* @__PURE__ */ jsxs9(
|
|
1140
1258
|
"li",
|
|
1141
1259
|
{
|
|
1142
1260
|
className: "mb-2 max-h-10 hover:max-h-400 transition-all overflow-hidden duration-500",
|
|
1143
1261
|
children: [
|
|
1144
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ jsxs9(
|
|
1145
1263
|
Link2,
|
|
1146
1264
|
{
|
|
1147
1265
|
href: item.link || "",
|
|
1148
1266
|
className: ` ${item.link == selected ? "font-bold text-gray-100" : "font-semibold text-gray-200"} flex mb-2 py-3 px-4 items-center justify-between text-sm rounded-2xl hover:underline hover:font-bold transition duration-200`,
|
|
1149
1267
|
children: [
|
|
1150
|
-
/* @__PURE__ */
|
|
1268
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-2", children: [
|
|
1151
1269
|
item.icon && item.icon,
|
|
1152
|
-
/* @__PURE__ */
|
|
1270
|
+
/* @__PURE__ */ jsx23("span", { children: item.title })
|
|
1153
1271
|
] }),
|
|
1154
|
-
item.items && /* @__PURE__ */
|
|
1272
|
+
item.items && /* @__PURE__ */ jsx23("span", { className: "transform", children: /* @__PURE__ */ jsx23(
|
|
1155
1273
|
"svg",
|
|
1156
1274
|
{
|
|
1157
1275
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1159,7 +1277,7 @@ function NavMenu({ direction, items, selected = "" }) {
|
|
|
1159
1277
|
height: 20,
|
|
1160
1278
|
viewBox: "0 0 24 24",
|
|
1161
1279
|
fill: "none",
|
|
1162
|
-
children: /* @__PURE__ */
|
|
1280
|
+
children: /* @__PURE__ */ jsx23(
|
|
1163
1281
|
"path",
|
|
1164
1282
|
{
|
|
1165
1283
|
d: "M15.1746 10.1204C15.3843 9.94067 15.6999 9.96495 15.8796 10.1746C16.0593 10.3843 16.0351 10.6999 15.8254 10.8796L12.3254 13.8796C12.1382 14.0401 11.8619 14.0401 11.6746 13.8796L8.17461 10.8796C7.96495 10.6999 7.94067 10.3843 8.12038 10.1746C8.30009 9.96495 8.61574 9.94067 8.8254 10.1204L12 12.8415L15.1746 10.1204Z",
|
|
@@ -1171,20 +1289,20 @@ function NavMenu({ direction, items, selected = "" }) {
|
|
|
1171
1289
|
]
|
|
1172
1290
|
}
|
|
1173
1291
|
),
|
|
1174
|
-
/* @__PURE__ */
|
|
1292
|
+
/* @__PURE__ */ jsx23("div", { children: item.items && /* @__PURE__ */ jsx23("ul", { className: "pl-8 p-4 rounded-md", children: item.items.map((subItem, i2) => /* @__PURE__ */ jsx23("li", { className: "mb-2", children: /* @__PURE__ */ jsxs9(
|
|
1175
1293
|
Link2,
|
|
1176
1294
|
{
|
|
1177
1295
|
href: subItem.link || "#",
|
|
1178
1296
|
className: "flex mb-2 py-3 px-4 items-center text-gray-300 font-semibold text-xs rounded-2xl hover:underline hover:font-bold hover:text-gray-800 transition duration-200",
|
|
1179
1297
|
children: [
|
|
1180
|
-
subItem.icon && /* @__PURE__ */
|
|
1298
|
+
subItem.icon && /* @__PURE__ */ jsx23(
|
|
1181
1299
|
"span",
|
|
1182
1300
|
{
|
|
1183
1301
|
className: "mr-2",
|
|
1184
1302
|
dangerouslySetInnerHTML: { __html: subItem.icon }
|
|
1185
1303
|
}
|
|
1186
1304
|
),
|
|
1187
|
-
/* @__PURE__ */
|
|
1305
|
+
/* @__PURE__ */ jsx23("span", { children: subItem.title })
|
|
1188
1306
|
]
|
|
1189
1307
|
}
|
|
1190
1308
|
) }, i2)) }) })
|
|
@@ -1193,6 +1311,10 @@ function NavMenu({ direction, items, selected = "" }) {
|
|
|
1193
1311
|
i
|
|
1194
1312
|
)) });
|
|
1195
1313
|
}
|
|
1314
|
+
|
|
1315
|
+
// src/components/SearchBar/Search.tsx
|
|
1316
|
+
import { useEffect, useState } from "react";
|
|
1317
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1196
1318
|
var Search = ({
|
|
1197
1319
|
value,
|
|
1198
1320
|
onChange,
|
|
@@ -1209,7 +1331,7 @@ var Search = ({
|
|
|
1209
1331
|
const handleChange = (e) => {
|
|
1210
1332
|
setSearchTerm(e.target.value);
|
|
1211
1333
|
};
|
|
1212
|
-
return /* @__PURE__ */
|
|
1334
|
+
return /* @__PURE__ */ jsx24(
|
|
1213
1335
|
"input",
|
|
1214
1336
|
{
|
|
1215
1337
|
type: "text",
|
|
@@ -1221,6 +1343,10 @@ var Search = ({
|
|
|
1221
1343
|
}
|
|
1222
1344
|
);
|
|
1223
1345
|
};
|
|
1346
|
+
|
|
1347
|
+
// src/components/SortBy/SortBy.tsx
|
|
1348
|
+
import { useEffect as useEffect2, useState as useState2 } from "react";
|
|
1349
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1224
1350
|
var Options = [
|
|
1225
1351
|
{
|
|
1226
1352
|
value: "desc",
|
|
@@ -1232,25 +1358,28 @@ var Options = [
|
|
|
1232
1358
|
}
|
|
1233
1359
|
];
|
|
1234
1360
|
var SortBy = ({ value, onChange }) => {
|
|
1235
|
-
const [selected, setSelected] =
|
|
1236
|
-
|
|
1361
|
+
const [selected, setSelected] = useState2(value);
|
|
1362
|
+
useEffect2(() => {
|
|
1237
1363
|
const handler = setTimeout(() => {
|
|
1238
1364
|
onChange(selected);
|
|
1239
1365
|
});
|
|
1240
1366
|
return () => clearTimeout(handler);
|
|
1241
1367
|
}, [selected, onChange]);
|
|
1242
|
-
return /* @__PURE__ */
|
|
1368
|
+
return /* @__PURE__ */ jsx25(
|
|
1243
1369
|
"select",
|
|
1244
1370
|
{
|
|
1245
1371
|
value: selected,
|
|
1246
1372
|
onChange: (e) => setSelected(e.target.value),
|
|
1247
1373
|
className: "border border-gray-300 rounded-md px-4 py-2 w-48 text-sm text-gray-900 focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
1248
|
-
children: Options.map((option) => /* @__PURE__ */
|
|
1374
|
+
children: Options.map((option) => /* @__PURE__ */ jsx25("option", { value: option.value, children: option.label }, option.value))
|
|
1249
1375
|
}
|
|
1250
1376
|
);
|
|
1251
1377
|
};
|
|
1378
|
+
|
|
1379
|
+
// src/components/Spinner.tsx
|
|
1380
|
+
import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1252
1381
|
function Spinner(props) {
|
|
1253
|
-
return /* @__PURE__ */
|
|
1382
|
+
return /* @__PURE__ */ jsx26(Fragment2, { children: /* @__PURE__ */ jsxs10(
|
|
1254
1383
|
"svg",
|
|
1255
1384
|
{
|
|
1256
1385
|
"aria-hidden": "true",
|
|
@@ -1260,14 +1389,14 @@ function Spinner(props) {
|
|
|
1260
1389
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1261
1390
|
...props,
|
|
1262
1391
|
children: [
|
|
1263
|
-
/* @__PURE__ */
|
|
1392
|
+
/* @__PURE__ */ jsx26(
|
|
1264
1393
|
"path",
|
|
1265
1394
|
{
|
|
1266
1395
|
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
1267
1396
|
fill: "currentColor"
|
|
1268
1397
|
}
|
|
1269
1398
|
),
|
|
1270
|
-
/* @__PURE__ */
|
|
1399
|
+
/* @__PURE__ */ jsx26(
|
|
1271
1400
|
"path",
|
|
1272
1401
|
{
|
|
1273
1402
|
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
@@ -1278,6 +1407,30 @@ function Spinner(props) {
|
|
|
1278
1407
|
}
|
|
1279
1408
|
) });
|
|
1280
1409
|
}
|
|
1410
|
+
|
|
1411
|
+
// src/components/Table/Table.tsx
|
|
1412
|
+
import { useMemo as useMemo3 } from "react";
|
|
1413
|
+
|
|
1414
|
+
// src/components/TableRow/TableRow.tsx
|
|
1415
|
+
import Link3 from "next/link";
|
|
1416
|
+
import {
|
|
1417
|
+
ClockIcon,
|
|
1418
|
+
HomeIcon,
|
|
1419
|
+
TrashIcon
|
|
1420
|
+
} from "property-practice-icons";
|
|
1421
|
+
import { useEffect as useEffect3, useMemo as useMemo2, useState as useState3 } from "react";
|
|
1422
|
+
import { tv as tv2 } from "tailwind-variants";
|
|
1423
|
+
|
|
1424
|
+
// src/components/Dialog/Dialog.tsx
|
|
1425
|
+
import {
|
|
1426
|
+
Button as Button2,
|
|
1427
|
+
Dialog as DefaultDialog,
|
|
1428
|
+
DialogPanel,
|
|
1429
|
+
DialogTitle,
|
|
1430
|
+
Transition
|
|
1431
|
+
} from "@headlessui/react";
|
|
1432
|
+
import { Fragment as Fragment3 } from "react";
|
|
1433
|
+
import { jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1281
1434
|
var Dialog = ({
|
|
1282
1435
|
open,
|
|
1283
1436
|
onClose,
|
|
@@ -1288,8 +1441,8 @@ var Dialog = ({
|
|
|
1288
1441
|
secondaryText,
|
|
1289
1442
|
secondaryHandler
|
|
1290
1443
|
}) => {
|
|
1291
|
-
return /* @__PURE__ */
|
|
1292
|
-
|
|
1444
|
+
return /* @__PURE__ */ jsx27(Transition, { appear: true, show: open, as: Fragment3, children: /* @__PURE__ */ jsxs11(
|
|
1445
|
+
DefaultDialog,
|
|
1293
1446
|
{
|
|
1294
1447
|
open,
|
|
1295
1448
|
as: "div",
|
|
@@ -1297,28 +1450,28 @@ var Dialog = ({
|
|
|
1297
1450
|
onClose,
|
|
1298
1451
|
__demoMode: true,
|
|
1299
1452
|
children: [
|
|
1300
|
-
/* @__PURE__ */
|
|
1453
|
+
/* @__PURE__ */ jsx27(
|
|
1301
1454
|
Transition.Child,
|
|
1302
1455
|
{
|
|
1303
|
-
as:
|
|
1456
|
+
as: Fragment3,
|
|
1304
1457
|
enter: "ease-out duration-300",
|
|
1305
1458
|
leave: "ease-in duration-500",
|
|
1306
1459
|
enterFrom: "opacity-0",
|
|
1307
1460
|
enterTo: "opacity-100",
|
|
1308
1461
|
leaveFrom: "opacity-100",
|
|
1309
1462
|
leaveTo: "opacity-0",
|
|
1310
|
-
children: /* @__PURE__ */
|
|
1463
|
+
children: /* @__PURE__ */ jsx27("div", { className: "fixed inset-0 bg-black/30" })
|
|
1311
1464
|
}
|
|
1312
1465
|
),
|
|
1313
|
-
/* @__PURE__ */
|
|
1466
|
+
/* @__PURE__ */ jsx27("div", { className: "fixed inset-0 z-10 w-screen overflow-y-auto", children: /* @__PURE__ */ jsx27("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ jsxs11(
|
|
1314
1467
|
DialogPanel,
|
|
1315
1468
|
{
|
|
1316
1469
|
transition: true,
|
|
1317
1470
|
className: "w-full max-w-md rounded-lg bg-white dark:bg-white/5 p-6 backdrop-blur-1xl duration-300 ease-out",
|
|
1318
1471
|
style: { maxWidth: "515px" },
|
|
1319
1472
|
children: [
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex justify-between items-center mb-2", children: [
|
|
1474
|
+
/* @__PURE__ */ jsx27(
|
|
1322
1475
|
DialogTitle,
|
|
1323
1476
|
{
|
|
1324
1477
|
as: "h3",
|
|
@@ -1326,7 +1479,7 @@ var Dialog = ({
|
|
|
1326
1479
|
children: title
|
|
1327
1480
|
}
|
|
1328
1481
|
),
|
|
1329
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ jsx27(
|
|
1330
1483
|
"button",
|
|
1331
1484
|
{
|
|
1332
1485
|
type: "button",
|
|
@@ -1339,21 +1492,21 @@ var Dialog = ({
|
|
|
1339
1492
|
)
|
|
1340
1493
|
] }),
|
|
1341
1494
|
children,
|
|
1342
|
-
/* @__PURE__ */
|
|
1495
|
+
/* @__PURE__ */ jsxs11(
|
|
1343
1496
|
"div",
|
|
1344
1497
|
{
|
|
1345
1498
|
className: `${secondaryHandler && secondaryText ? "flex justify-center mt-4 gap-4" : "mt-4"}`,
|
|
1346
1499
|
children: [
|
|
1347
|
-
buttonHandler && /* @__PURE__ */
|
|
1348
|
-
|
|
1500
|
+
buttonHandler && /* @__PURE__ */ jsx27(
|
|
1501
|
+
Button2,
|
|
1349
1502
|
{
|
|
1350
1503
|
className: "inline-flex items-center gap-2 rounded-md bg-gray-700 px-3 py-1.5 text-sm/6 font-semibold text-white shadow-inner shadow-white/10 focus:not-data-focus:outline-none data-focus:outline data-focus:outline-white data-hover:bg-gray-600 data-open:bg-gray-700",
|
|
1351
1504
|
onClick: buttonHandler,
|
|
1352
1505
|
children: buttonText
|
|
1353
1506
|
}
|
|
1354
1507
|
),
|
|
1355
|
-
secondaryHandler && secondaryText && /* @__PURE__ */
|
|
1356
|
-
|
|
1508
|
+
secondaryHandler && secondaryText && /* @__PURE__ */ jsx27(
|
|
1509
|
+
Button2,
|
|
1357
1510
|
{
|
|
1358
1511
|
className: "bg-gray-200 text-gray-800 px-4 py-2 w-24 rounded hover:bg-gray-300",
|
|
1359
1512
|
onClick: secondaryHandler,
|
|
@@ -1370,7 +1523,10 @@ var Dialog = ({
|
|
|
1370
1523
|
}
|
|
1371
1524
|
) });
|
|
1372
1525
|
};
|
|
1373
|
-
|
|
1526
|
+
|
|
1527
|
+
// src/components/TableRow/TableRow.tsx
|
|
1528
|
+
import { jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1529
|
+
var itemContainer = tv2({
|
|
1374
1530
|
base: "rounded-2xl mb-2 px-8 py-3 flex flex-wrap items-center justify-between gap-4",
|
|
1375
1531
|
variants: {
|
|
1376
1532
|
variant: {
|
|
@@ -1397,30 +1553,30 @@ var getStatusBadge = (status, transactionType) => {
|
|
|
1397
1553
|
const base = "px-3 rounded-xl py-1 text-gray-400 text-xs font-bold uppercase";
|
|
1398
1554
|
switch (status) {
|
|
1399
1555
|
case "DRAFT":
|
|
1400
|
-
return /* @__PURE__ */
|
|
1556
|
+
return /* @__PURE__ */ jsx28("span", { className: `${base} bg-purple-400`, children: "Draft" });
|
|
1401
1557
|
case "PENDING":
|
|
1402
|
-
return /* @__PURE__ */
|
|
1558
|
+
return /* @__PURE__ */ jsx28("span", { className: `${base} bg-yellow-200`, children: transactionType?.toUpperCase() === "LEASE" ? "Awaiting Lessor Information" : "Awaiting Seller Information" });
|
|
1403
1559
|
case "ACTIVE":
|
|
1404
|
-
return /* @__PURE__ */
|
|
1560
|
+
return /* @__PURE__ */ jsx28("span", { className: `${base} bg-blue-400`, children: "Active" });
|
|
1405
1561
|
case "FINALISED":
|
|
1406
|
-
return /* @__PURE__ */
|
|
1562
|
+
return /* @__PURE__ */ jsx28("span", { className: `${base} bg-green-400`, children: "Finalised" });
|
|
1407
1563
|
case "ARCHIVED":
|
|
1408
|
-
return /* @__PURE__ */
|
|
1564
|
+
return /* @__PURE__ */ jsx28("span", { className: `${base} bg-red-400`, children: "Archived" });
|
|
1409
1565
|
default:
|
|
1410
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ jsx28("span", { className: `${base} bg-gray-200`, children: status });
|
|
1411
1567
|
}
|
|
1412
1568
|
};
|
|
1413
1569
|
var RowCell = ({
|
|
1414
1570
|
header,
|
|
1415
1571
|
item
|
|
1416
|
-
}) => /* @__PURE__ */
|
|
1417
|
-
/* @__PURE__ */
|
|
1418
|
-
header.filterAccessor === "status" && /* @__PURE__ */
|
|
1572
|
+
}) => /* @__PURE__ */ jsxs12("div", { className: "flex-1 min-w-[120px]", children: [
|
|
1573
|
+
/* @__PURE__ */ jsxs12("p", { className: "font-semibold text-gray-300 text-sm tracking-wide flex items-center gap-1", children: [
|
|
1574
|
+
header.filterAccessor === "status" && /* @__PURE__ */ jsx28(ClockIcon, {}),
|
|
1419
1575
|
header.heading
|
|
1420
1576
|
] }),
|
|
1421
|
-
/* @__PURE__ */
|
|
1422
|
-
header.filterAccessor === "formattedAddress" && /* @__PURE__ */
|
|
1423
|
-
header.filterAccessor === "formattedAddress" ? /* @__PURE__ */
|
|
1577
|
+
/* @__PURE__ */ jsxs12("p", { className: "text-base font-medium text-gray-400 flex items-center gap-1", children: [
|
|
1578
|
+
header.filterAccessor === "formattedAddress" && /* @__PURE__ */ jsx28(HomeIcon, {}),
|
|
1579
|
+
header.filterAccessor === "formattedAddress" ? /* @__PURE__ */ jsx28("span", { className: "break-words max-w-[200px] block", children: item[header.filterAccessor] }) : header.filterAccessor === "status" ? getStatusBadge(item[header.filterAccessor], item.transactionType) : header.filterAccessor === "createdAt" ? formatDate(item[header.filterAccessor]) : header.filterAccessor === "-" ? "-" : item[header.filterAccessor]
|
|
1424
1580
|
] })
|
|
1425
1581
|
] });
|
|
1426
1582
|
var DeleteDialog = ({
|
|
@@ -1428,7 +1584,7 @@ var DeleteDialog = ({
|
|
|
1428
1584
|
onClose,
|
|
1429
1585
|
onConfirm,
|
|
1430
1586
|
isDeleting
|
|
1431
|
-
}) => /* @__PURE__ */
|
|
1587
|
+
}) => /* @__PURE__ */ jsx28(
|
|
1432
1588
|
Dialog,
|
|
1433
1589
|
{
|
|
1434
1590
|
open,
|
|
@@ -1438,9 +1594,9 @@ var DeleteDialog = ({
|
|
|
1438
1594
|
buttonHandler: onConfirm,
|
|
1439
1595
|
secondaryText: "Cancel",
|
|
1440
1596
|
secondaryHandler: onClose,
|
|
1441
|
-
children: /* @__PURE__ */
|
|
1442
|
-
/* @__PURE__ */
|
|
1443
|
-
/* @__PURE__ */
|
|
1597
|
+
children: /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center text-center", children: [
|
|
1598
|
+
/* @__PURE__ */ jsx28(TrashIcon, {}),
|
|
1599
|
+
/* @__PURE__ */ jsx28("p", { className: "text-sm text-gray-600 mb-4", children: "Are you sure you want to delete this transaction? This will remove the property from the list (soft delete)." })
|
|
1444
1600
|
] })
|
|
1445
1601
|
}
|
|
1446
1602
|
);
|
|
@@ -1451,22 +1607,22 @@ var TableRow = ({
|
|
|
1451
1607
|
onDelete,
|
|
1452
1608
|
variant = "Primary"
|
|
1453
1609
|
}) => {
|
|
1454
|
-
const [perPage, setPerPage] =
|
|
1610
|
+
const [perPage, setPerPage] = useState3(
|
|
1455
1611
|
paginationOptions.perPage ?? 10
|
|
1456
1612
|
);
|
|
1457
|
-
const [page, setPage] =
|
|
1458
|
-
const [isDialogOpen, setIsDialogOpen] =
|
|
1459
|
-
const [selectedTransactionId, setSelectedTransactionId] =
|
|
1460
|
-
const [isDeleting, setIsDeleting] =
|
|
1461
|
-
const totalPages =
|
|
1613
|
+
const [page, setPage] = useState3(0);
|
|
1614
|
+
const [isDialogOpen, setIsDialogOpen] = useState3(false);
|
|
1615
|
+
const [selectedTransactionId, setSelectedTransactionId] = useState3(null);
|
|
1616
|
+
const [isDeleting, setIsDeleting] = useState3(false);
|
|
1617
|
+
const totalPages = useMemo2(
|
|
1462
1618
|
() => Math.ceil(data.length / perPage),
|
|
1463
1619
|
[data, perPage]
|
|
1464
1620
|
);
|
|
1465
|
-
const paginatedData =
|
|
1621
|
+
const paginatedData = useMemo2(
|
|
1466
1622
|
() => data.slice(page * perPage, (page + 1) * perPage),
|
|
1467
1623
|
[data, page, perPage]
|
|
1468
1624
|
);
|
|
1469
|
-
|
|
1625
|
+
useEffect3(() => {
|
|
1470
1626
|
if (paginationOptions.perPage) {
|
|
1471
1627
|
setPerPage(paginationOptions.perPage);
|
|
1472
1628
|
}
|
|
@@ -1495,23 +1651,23 @@ var TableRow = ({
|
|
|
1495
1651
|
setPerPage(value);
|
|
1496
1652
|
setPage(0);
|
|
1497
1653
|
};
|
|
1498
|
-
return /* @__PURE__ */
|
|
1499
|
-
paginatedData.map((item, idx) => /* @__PURE__ */
|
|
1654
|
+
return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col", children: [
|
|
1655
|
+
paginatedData.map((item, idx) => /* @__PURE__ */ jsxs12(
|
|
1500
1656
|
"div",
|
|
1501
1657
|
{
|
|
1502
1658
|
className: `${itemContainer({ variant })} ${idx % 2 === 0 ? "bg-gray-50 dark:bg-gray-600" : ""}`,
|
|
1503
1659
|
children: [
|
|
1504
|
-
headers.map((header) => /* @__PURE__ */
|
|
1505
|
-
/* @__PURE__ */
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
-
|
|
1660
|
+
headers.map((header) => /* @__PURE__ */ jsx28(RowCell, { header, item }, header.filterAccessor)),
|
|
1661
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-start gap-1", children: [
|
|
1662
|
+
/* @__PURE__ */ jsx28("p", { className: "font-semibold text-[#033c89] text-sm tracking-wide", children: /* @__PURE__ */ jsx28(
|
|
1663
|
+
Link3,
|
|
1508
1664
|
{
|
|
1509
1665
|
href: `${item.url}`,
|
|
1510
1666
|
className: "text-[#033c89] hover:underline",
|
|
1511
1667
|
children: "View Details"
|
|
1512
1668
|
}
|
|
1513
1669
|
) }),
|
|
1514
|
-
onDelete && /* @__PURE__ */
|
|
1670
|
+
onDelete && /* @__PURE__ */ jsxs12(
|
|
1515
1671
|
"button",
|
|
1516
1672
|
{
|
|
1517
1673
|
onClick: (e) => {
|
|
@@ -1521,8 +1677,8 @@ var TableRow = ({
|
|
|
1521
1677
|
},
|
|
1522
1678
|
className: "flex items-center gap-1 text-red-500 hover:text-red-700",
|
|
1523
1679
|
children: [
|
|
1524
|
-
/* @__PURE__ */
|
|
1525
|
-
/* @__PURE__ */
|
|
1680
|
+
/* @__PURE__ */ jsx28(TrashIcon, {}),
|
|
1681
|
+
/* @__PURE__ */ jsx28("span", { className: "text-sm font-medium", children: "Delete" })
|
|
1526
1682
|
]
|
|
1527
1683
|
}
|
|
1528
1684
|
)
|
|
@@ -1531,33 +1687,33 @@ var TableRow = ({
|
|
|
1531
1687
|
},
|
|
1532
1688
|
item.id
|
|
1533
1689
|
)),
|
|
1534
|
-
/* @__PURE__ */
|
|
1535
|
-
/* @__PURE__ */
|
|
1536
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ jsxs12("div", { className: "flex flex-wrap items-center px-6 pt-8 border-t border-gray-400", children: [
|
|
1691
|
+
/* @__PURE__ */ jsx28("div", { className: "w-full sm:w-auto mb-4 sm:mb-0 mr-auto", children: /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-2", children: [
|
|
1692
|
+
/* @__PURE__ */ jsxs12(
|
|
1537
1693
|
"button",
|
|
1538
1694
|
{
|
|
1539
1695
|
disabled: true,
|
|
1540
1696
|
className: "flex items-center justify-center h-6 w-11 bg-gray-100 dark:bg-gray-600 rounded-full",
|
|
1541
1697
|
children: [
|
|
1542
|
-
/* @__PURE__ */
|
|
1543
|
-
/* @__PURE__ */
|
|
1698
|
+
/* @__PURE__ */ jsx28("div", { className: "h-5 w-5 rounded-full dark:bg-gray-400 bg-gray-50" }),
|
|
1699
|
+
/* @__PURE__ */ jsx28("div", { className: "h-5 w-5 rounded-full bg-transparent" })
|
|
1544
1700
|
]
|
|
1545
1701
|
}
|
|
1546
1702
|
),
|
|
1547
|
-
/* @__PURE__ */
|
|
1703
|
+
/* @__PURE__ */ jsx28("span", { className: "text-sm text-gray-200 dark:text-gray-400 font-medium", children: "Dense" })
|
|
1548
1704
|
] }) }),
|
|
1549
|
-
/* @__PURE__ */
|
|
1550
|
-
/* @__PURE__ */
|
|
1551
|
-
/* @__PURE__ */
|
|
1705
|
+
/* @__PURE__ */ jsx28("div", { className: "w-full sm:w-auto mb-6 sm:mb-0 sm:mr-6", children: /* @__PURE__ */ jsx28("div", { className: "flex items-center justify-end ml-auto", children: /* @__PURE__ */ jsxs12("div", { className: "sm:mr-8 flex items-center gap-2", children: [
|
|
1706
|
+
/* @__PURE__ */ jsx28("span", { className: "text-sm text-gray-400 font-medium", children: "Rows per page" }),
|
|
1707
|
+
/* @__PURE__ */ jsx28(
|
|
1552
1708
|
"select",
|
|
1553
1709
|
{
|
|
1554
1710
|
value: perPage,
|
|
1555
1711
|
onChange: (e) => handleRowsPerPageChange(Number(e.target.value)),
|
|
1556
1712
|
className: "text-sm text-gray-200 font-medium bg-transparent outline-none",
|
|
1557
|
-
children: [5, 10, 20].map((size) => /* @__PURE__ */
|
|
1713
|
+
children: [5, 10, 20].map((size) => /* @__PURE__ */ jsx28("option", { value: size, children: size }, size))
|
|
1558
1714
|
}
|
|
1559
1715
|
),
|
|
1560
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ jsxs12("span", { className: "hidden sm:inline text-sm text-gray-400 font-medium", children: [
|
|
1561
1717
|
page * perPage + 1,
|
|
1562
1718
|
"-",
|
|
1563
1719
|
Math.min((page + 1) * perPage, data.length),
|
|
@@ -1565,8 +1721,8 @@ var TableRow = ({
|
|
|
1565
1721
|
data.length
|
|
1566
1722
|
] })
|
|
1567
1723
|
] }) }) }),
|
|
1568
|
-
/* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1724
|
+
/* @__PURE__ */ jsx28("div", { className: "w-full sm:w-auto mb-6 sm:mb-0", children: /* @__PURE__ */ jsxs12("div", { className: "flex items-center justify-end", children: [
|
|
1725
|
+
/* @__PURE__ */ jsx28(
|
|
1570
1726
|
"a",
|
|
1571
1727
|
{
|
|
1572
1728
|
onClick: (e) => {
|
|
@@ -1575,7 +1731,7 @@ var TableRow = ({
|
|
|
1575
1731
|
},
|
|
1576
1732
|
className: `inline-flex items-center justify-center h-8 w-12 p-1 mr-3 text-xs font-semibold rounded-lg transition duration-200 ${page === 0 ? "bg-gray-600 text-gray-400 cursor-not-allowed" : "text-gray-400 bg-gray-600 hover:bg-gray-700"}`,
|
|
1577
1733
|
href: "#",
|
|
1578
|
-
children: /* @__PURE__ */
|
|
1734
|
+
children: /* @__PURE__ */ jsx28(
|
|
1579
1735
|
"svg",
|
|
1580
1736
|
{
|
|
1581
1737
|
width: 6,
|
|
@@ -1583,7 +1739,7 @@ var TableRow = ({
|
|
|
1583
1739
|
viewBox: "0 0 6 8",
|
|
1584
1740
|
fill: "none",
|
|
1585
1741
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1586
|
-
children: /* @__PURE__ */
|
|
1742
|
+
children: /* @__PURE__ */ jsx28(
|
|
1587
1743
|
"path",
|
|
1588
1744
|
{
|
|
1589
1745
|
d: "M2.52655 3.99988L4.88655 1.63988C5.01072 1.51498 5.08041 1.34601 5.08041 1.16988C5.08041 0.993761 5.01072 0.824793 4.88655 0.699884C4.82457 0.637399 4.75084 0.587802 4.6696 0.553957C4.58836 0.520111 4.50122 0.502686 4.41321 0.502686C4.32521 0.502686 4.23807 0.520111 4.15683 0.553957C4.07559 0.587802 4.00186 0.637399 3.93988 0.699884L1.11321 3.52655C1.05073 3.58853 1.00113 3.66226 0.967287 3.7435C0.933441 3.82474 0.916016 3.91188 0.916016 3.99988C0.916016 4.08789 0.933441 4.17503 0.967287 4.25627C1.00113 4.33751 1.05073 4.41124 1.11321 4.47322L3.93988 7.33322C4.00217 7.39501 4.07605 7.44389 4.15728 7.47707C4.2385 7.51024 4.32548 7.52706 4.41321 7.52655C4.50095 7.52706 4.58793 7.51024 4.66915 7.47707C4.75038 7.44389 4.82425 7.39501 4.88655 7.33322C5.01072 7.20831 5.08041 7.03934 5.08041 6.86322C5.08041 6.68709 5.01072 6.51813 4.88655 6.39322L2.52655 3.99988Z",
|
|
@@ -1594,7 +1750,7 @@ var TableRow = ({
|
|
|
1594
1750
|
)
|
|
1595
1751
|
}
|
|
1596
1752
|
),
|
|
1597
|
-
/* @__PURE__ */
|
|
1753
|
+
/* @__PURE__ */ jsx28(
|
|
1598
1754
|
"a",
|
|
1599
1755
|
{
|
|
1600
1756
|
onClick: (e) => {
|
|
@@ -1603,7 +1759,7 @@ var TableRow = ({
|
|
|
1603
1759
|
},
|
|
1604
1760
|
className: `inline-flex items-center justify-center h-8 w-12 p-1 text-xs font-semibold rounded-lg transition duration-200 ${page >= totalPages - 1 || totalPages === 0 ? "bg-blue-500 text-blue-100 cursor-not-allowed" : "bg-[#033c89] text-blue-50 hover:bg-blue-600"}`,
|
|
1605
1761
|
href: "#",
|
|
1606
|
-
children: /* @__PURE__ */
|
|
1762
|
+
children: /* @__PURE__ */ jsx28(
|
|
1607
1763
|
"svg",
|
|
1608
1764
|
{
|
|
1609
1765
|
width: 6,
|
|
@@ -1611,7 +1767,7 @@ var TableRow = ({
|
|
|
1611
1767
|
viewBox: "0 0 6 10",
|
|
1612
1768
|
fill: "none",
|
|
1613
1769
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1614
|
-
children: /* @__PURE__ */
|
|
1770
|
+
children: /* @__PURE__ */ jsx28(
|
|
1615
1771
|
"path",
|
|
1616
1772
|
{
|
|
1617
1773
|
d: "M5.36015 4.52661L1.58682 0.759943C1.52484 0.697457 1.45111 0.647861 1.36987 0.614016C1.28863 0.58017 1.20149 0.562744 1.11348 0.562744C1.02548 0.562744 0.938339 0.58017 0.8571 0.614016C0.77586 0.647861 0.702126 0.697457 0.640151 0.759943C0.515983 0.884851 0.446289 1.05382 0.446289 1.22994C0.446289 1.40607 0.515983 1.57503 0.640151 1.69994L3.94015 5.03328L0.640151 8.33328C0.515983 8.45818 0.446289 8.62715 0.446289 8.80328C0.446289 8.9794 0.515983 9.14837 0.640151 9.27328C0.701894 9.33627 0.775524 9.38638 0.856774 9.42071C0.938024 9.45504 1.02528 9.47291 1.11348 9.47328C1.20169 9.47291 1.28894 9.45504 1.37019 9.42071C1.45144 9.38638 1.52507 9.33627 1.58682 9.27328L5.36015 5.50661C5.42782 5.44418 5.48183 5.36841 5.51876 5.28408C5.5557 5.19975 5.57477 5.10868 5.57477 5.01661C5.57477 4.92454 5.5557 4.83347 5.51876 4.74914C5.48183 4.66481 5.42782 4.58904 5.36015 4.52661Z",
|
|
@@ -1624,7 +1780,7 @@ var TableRow = ({
|
|
|
1624
1780
|
)
|
|
1625
1781
|
] }) })
|
|
1626
1782
|
] }),
|
|
1627
|
-
/* @__PURE__ */
|
|
1783
|
+
/* @__PURE__ */ jsx28(
|
|
1628
1784
|
DeleteDialog,
|
|
1629
1785
|
{
|
|
1630
1786
|
open: isDialogOpen,
|
|
@@ -1635,23 +1791,34 @@ var TableRow = ({
|
|
|
1635
1791
|
)
|
|
1636
1792
|
] });
|
|
1637
1793
|
};
|
|
1794
|
+
|
|
1795
|
+
// src/components/Table/Table.tsx
|
|
1796
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1638
1797
|
var Table = ({ data, headers, onDelete }) => {
|
|
1639
|
-
|
|
1640
|
-
return /* @__PURE__ */
|
|
1798
|
+
const isNotempty = useMemo3(() => data?.length > 0, [data]);
|
|
1799
|
+
return /* @__PURE__ */ jsx29("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsx29("div", { className: "w-full border-collapse", children: /* @__PURE__ */ jsx29(TableRow, { data, headers, onDelete }) }) });
|
|
1641
1800
|
};
|
|
1801
|
+
|
|
1802
|
+
// src/components/TableInner/TableInner.tsx
|
|
1803
|
+
import { useMemo as useMemo4 } from "react";
|
|
1804
|
+
import { Fragment as Fragment4, jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1642
1805
|
var TableInner = ({
|
|
1643
1806
|
data = [],
|
|
1644
1807
|
headers = [],
|
|
1645
1808
|
renderOnEmpty = null,
|
|
1646
1809
|
onDelete
|
|
1647
1810
|
}) => {
|
|
1648
|
-
const isNotEmpty =
|
|
1649
|
-
return /* @__PURE__ */
|
|
1650
|
-
/* @__PURE__ */
|
|
1811
|
+
const isNotEmpty = useMemo4(() => data.length > 0, [data]);
|
|
1812
|
+
return /* @__PURE__ */ jsxs13(Fragment4, { children: [
|
|
1813
|
+
/* @__PURE__ */ jsx30(Table, { data, headers, onDelete }),
|
|
1651
1814
|
!isNotEmpty && renderOnEmpty
|
|
1652
1815
|
] });
|
|
1653
1816
|
};
|
|
1654
|
-
|
|
1817
|
+
|
|
1818
|
+
// src/components/TableList.tsx
|
|
1819
|
+
import { tv as tv3 } from "tailwind-variants";
|
|
1820
|
+
import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1821
|
+
var itemContainer2 = tv3({
|
|
1655
1822
|
base: "rounded-2xl mb-2 px-8 py-3 flex flex-wrap items-center justify-between gap-4",
|
|
1656
1823
|
variants: {
|
|
1657
1824
|
variant: {
|
|
@@ -1683,28 +1850,28 @@ function TableListItem({
|
|
|
1683
1850
|
const statusDisplay = (status) => {
|
|
1684
1851
|
switch (status) {
|
|
1685
1852
|
case "DRAFT":
|
|
1686
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ jsx31("span", { className: "px-3 rounded-xl py-1 bg-purple-400 text-gray-400 text-xs font-bold uppercase", children: "Draft" });
|
|
1687
1854
|
case "PENDING":
|
|
1688
|
-
return /* @__PURE__ */
|
|
1855
|
+
return /* @__PURE__ */ jsx31("span", { className: "px-3 rounded-xl py-1 bg-yellow-200 text-gray-400 text-xs font-bold uppercase", children: "Pending" });
|
|
1689
1856
|
case "ACTIVE":
|
|
1690
|
-
return /* @__PURE__ */
|
|
1857
|
+
return /* @__PURE__ */ jsx31("span", { className: "px-3 rounded-xl py-1 bg-blue-400 text-gray-400 text-xs font-bold uppercase", children: "Active" });
|
|
1691
1858
|
case "FINALISED":
|
|
1692
|
-
return /* @__PURE__ */
|
|
1859
|
+
return /* @__PURE__ */ jsx31("span", { className: "px-3 rounded-xl py-1 bg-green-400 text-gray-400 text-xs font-bold uppercase", children: "Finalised" });
|
|
1693
1860
|
case "ARCHIVED":
|
|
1694
|
-
return /* @__PURE__ */
|
|
1861
|
+
return /* @__PURE__ */ jsx31("span", { className: "px-3 rounded-xl py-1 bg-red-400 text-gray-400 text-xs font-bold uppercase", children: "Archived" });
|
|
1695
1862
|
default:
|
|
1696
|
-
return /* @__PURE__ */
|
|
1863
|
+
return /* @__PURE__ */ jsx31("span", { className: "px-3 rounded-xl py-1 bg-gray-200 text-gray-400 text-xs font-bold uppercase", children: status });
|
|
1697
1864
|
}
|
|
1698
1865
|
};
|
|
1699
|
-
return /* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ jsxs14(
|
|
1700
1867
|
"div",
|
|
1701
1868
|
{
|
|
1702
1869
|
className: `${itemContainer2({ variant })} ${alt ? "bg-gray-50 dark:bg-gray-600" : ""}`,
|
|
1703
1870
|
children: [
|
|
1704
|
-
/* @__PURE__ */
|
|
1705
|
-
/* @__PURE__ */
|
|
1706
|
-
/* @__PURE__ */
|
|
1707
|
-
/* @__PURE__ */
|
|
1871
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-2 w-52", children: [
|
|
1872
|
+
/* @__PURE__ */ jsx31("p", { className: "font-semibold text-gray-300 text-sm -tracking-widest", children: "Title" }),
|
|
1873
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex flex-row items-center", children: [
|
|
1874
|
+
/* @__PURE__ */ jsx31("div", { className: "p-5 mr-2 inline-flex rounded-2xl", children: /* @__PURE__ */ jsxs14(
|
|
1708
1875
|
"svg",
|
|
1709
1876
|
{
|
|
1710
1877
|
className: "w-4 h-4",
|
|
@@ -1714,7 +1881,7 @@ function TableListItem({
|
|
|
1714
1881
|
fill: "none",
|
|
1715
1882
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1716
1883
|
children: [
|
|
1717
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ jsx31(
|
|
1718
1885
|
"path",
|
|
1719
1886
|
{
|
|
1720
1887
|
d: "M12.5 14H3.49951C3.3669 14 3.23973 13.9473 3.14596 13.8536C3.05219 13.7598 2.99951 13.6326 2.99951 13.5V2.5C2.99951 2.36739 3.05219 2.24021 3.14596 2.14645C3.23973 2.05268 3.3669 2 3.49951 2H9.5L13 5.5V13.5C13 13.5657 12.9871 13.6307 12.9619 13.6913C12.9368 13.752 12.9 13.8071 12.8536 13.8536C12.8071 13.9 12.752 13.9368 12.6913 13.9619C12.6307 13.9871 12.5657 14 12.5 14Z",
|
|
@@ -1724,7 +1891,7 @@ function TableListItem({
|
|
|
1724
1891
|
strokeLinejoin: "round"
|
|
1725
1892
|
}
|
|
1726
1893
|
),
|
|
1727
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ jsx31(
|
|
1728
1895
|
"path",
|
|
1729
1896
|
{
|
|
1730
1897
|
d: "M9.5 2V5.5H13.0005",
|
|
@@ -1734,7 +1901,7 @@ function TableListItem({
|
|
|
1734
1901
|
strokeLinejoin: "round"
|
|
1735
1902
|
}
|
|
1736
1903
|
),
|
|
1737
|
-
/* @__PURE__ */
|
|
1904
|
+
/* @__PURE__ */ jsx31(
|
|
1738
1905
|
"path",
|
|
1739
1906
|
{
|
|
1740
1907
|
d: "M6.5 9.5H9.5",
|
|
@@ -1747,23 +1914,23 @@ function TableListItem({
|
|
|
1747
1914
|
]
|
|
1748
1915
|
}
|
|
1749
1916
|
) }),
|
|
1750
|
-
/* @__PURE__ */
|
|
1917
|
+
/* @__PURE__ */ jsx31("p", { className: "text-gray-300 font-semibold w-xs text-sm grow", children: item.title })
|
|
1751
1918
|
] })
|
|
1752
1919
|
] }),
|
|
1753
|
-
item.status && /* @__PURE__ */
|
|
1754
|
-
/* @__PURE__ */
|
|
1920
|
+
item.status && /* @__PURE__ */ jsxs14("div", { className: "flex flex-col items-end gap-2", children: [
|
|
1921
|
+
/* @__PURE__ */ jsx31("p", { className: "font-semibold text-gray-300 text-sm -tracking-widest", children: "Status" }),
|
|
1755
1922
|
statusDisplay(item.status)
|
|
1756
1923
|
] }),
|
|
1757
|
-
/* @__PURE__ */
|
|
1758
|
-
item.type && /* @__PURE__ */
|
|
1759
|
-
/* @__PURE__ */
|
|
1924
|
+
/* @__PURE__ */ jsx31("div", { className: "text-gray-300 text-sm", children: dateTimeFormatter(item.date) }),
|
|
1925
|
+
item.type && /* @__PURE__ */ jsx31("div", { className: "text-gray-300 text-sm", children: item.type }),
|
|
1926
|
+
/* @__PURE__ */ jsxs14(
|
|
1760
1927
|
"a",
|
|
1761
1928
|
{
|
|
1762
1929
|
className: "inline-flex h-9 p-3 mr-2 items-center cursor-pointer justify-center bg-gray-700 hover:bg-gray-700 rounded-lg transition duration-200",
|
|
1763
1930
|
href: item.url,
|
|
1764
1931
|
onClick: selectItemHandler ? () => selectItemHandler() : void 0,
|
|
1765
1932
|
children: [
|
|
1766
|
-
/* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ jsx31(
|
|
1767
1934
|
"svg",
|
|
1768
1935
|
{
|
|
1769
1936
|
width: "14",
|
|
@@ -1771,7 +1938,7 @@ function TableListItem({
|
|
|
1771
1938
|
viewBox: "0 0 14 15",
|
|
1772
1939
|
fill: "none",
|
|
1773
1940
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1774
|
-
children: /* @__PURE__ */
|
|
1941
|
+
children: /* @__PURE__ */ jsx31(
|
|
1775
1942
|
"path",
|
|
1776
1943
|
{
|
|
1777
1944
|
d: "M13.0002 7.50012C12.8234 7.50012 12.6538 7.57036 12.5288 7.69538C12.4037 7.82041 12.3335 7.98998 12.3335 8.16679V12.1668C12.3335 12.3436 12.2633 12.5132 12.1382 12.6382C12.0132 12.7632 11.8436 12.8335 11.6668 12.8335H2.3335C2.15669 12.8335 1.98712 12.7632 1.86209 12.6382C1.73707 12.5132 1.66683 12.3436 1.66683 12.1668V2.83346C1.66683 2.65664 1.73707 2.48708 1.86209 2.36205C1.98712 2.23703 2.15669 2.16679 2.3335 2.16679H6.3335C6.51031 2.16679 6.67988 2.09655 6.8049 1.97153C6.92992 1.8465 7.00016 1.67693 7.00016 1.50012C7.00016 1.32331 6.92992 1.15374 6.8049 1.02872C6.67988 0.903693 6.51031 0.833455 6.3335 0.833455H2.3335C1.80306 0.833455 1.29436 1.04417 0.919283 1.41924C0.54421 1.79431 0.333496 2.30302 0.333496 2.83346V12.1668C0.333496 12.6972 0.54421 13.2059 0.919283 13.581C1.29436 13.9561 1.80306 14.1668 2.3335 14.1668H11.6668C12.1973 14.1668 12.706 13.9561 13.081 13.581C13.4561 13.2059 13.6668 12.6972 13.6668 12.1668V8.16679C13.6668 7.98998 13.5966 7.82041 13.4716 7.69538C13.3465 7.57036 13.177 7.50012 13.0002 7.50012ZM3.00016 8.00679V10.8335C3.00016 11.0103 3.0704 11.1798 3.19543 11.3049C3.32045 11.4299 3.49002 11.5001 3.66683 11.5001H6.4935C6.58123 11.5006 6.66821 11.4838 6.74943 11.4506C6.83066 11.4175 6.90454 11.3686 6.96683 11.3068L11.5802 6.68679L13.4735 4.83346C13.536 4.77148 13.5856 4.69775 13.6194 4.61651C13.6533 4.53527 13.6707 4.44813 13.6707 4.36012C13.6707 4.27211 13.6533 4.18498 13.6194 4.10374C13.5856 4.0225 13.536 3.94876 13.4735 3.88679L10.6468 1.02679C10.5849 0.964303 10.5111 0.914707 10.4299 0.880861C10.3486 0.847015 10.2615 0.82959 10.1735 0.82959C10.0855 0.82959 9.99835 0.847015 9.91711 0.880861C9.83587 0.914707 9.76214 0.964303 9.70016 1.02679L7.82016 2.91346L3.1935 7.53346C3.13171 7.59575 3.08283 7.66963 3.04965 7.75085C3.01647 7.83208 2.99966 7.91905 3.00016 8.00679ZM10.1735 2.44012L12.0602 4.32679L11.1135 5.27346L9.22683 3.38679L10.1735 2.44012ZM4.3335 8.28012L8.28683 4.32679L10.1735 6.21346L6.22016 10.1668H4.3335V8.28012Z",
|
|
@@ -1780,7 +1947,7 @@ function TableListItem({
|
|
|
1780
1947
|
)
|
|
1781
1948
|
}
|
|
1782
1949
|
),
|
|
1783
|
-
/* @__PURE__ */
|
|
1950
|
+
/* @__PURE__ */ jsx31("span", { className: "ml-2 text-xs text-gray-200 font-semibold", children: "View" })
|
|
1784
1951
|
]
|
|
1785
1952
|
}
|
|
1786
1953
|
)
|
|
@@ -1792,14 +1959,17 @@ function TableHeader({
|
|
|
1792
1959
|
headers,
|
|
1793
1960
|
variant = "Primary"
|
|
1794
1961
|
}) {
|
|
1795
|
-
return /* @__PURE__ */
|
|
1962
|
+
return /* @__PURE__ */ jsx31(
|
|
1796
1963
|
"div",
|
|
1797
1964
|
{
|
|
1798
1965
|
className: `${itemContainer2({ variant })} bg-[#033c89] dark:bg-gray-800`,
|
|
1799
|
-
children: headers.map((item, i) => /* @__PURE__ */
|
|
1966
|
+
children: headers.map((item, i) => /* @__PURE__ */ jsx31("div", { className: `flex items-center ${i == 0 ? "w-52" : ""}`, children: /* @__PURE__ */ jsx31("p", { className: "text-gray-300 font-bold w-xs text-sm", children: item }) }, i))
|
|
1800
1967
|
}
|
|
1801
1968
|
);
|
|
1802
1969
|
}
|
|
1970
|
+
|
|
1971
|
+
// src/components/Tabs/Tabs.tsx
|
|
1972
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1803
1973
|
var Tabs = ({
|
|
1804
1974
|
value: tabValue,
|
|
1805
1975
|
onTabChange,
|
|
@@ -1808,18 +1978,23 @@ var Tabs = ({
|
|
|
1808
1978
|
const handleTabChange = (newTab) => {
|
|
1809
1979
|
onTabChange(newTab);
|
|
1810
1980
|
};
|
|
1811
|
-
return /* @__PURE__ */
|
|
1981
|
+
return /* @__PURE__ */ jsx32("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx32("div", { className: "px-4 border-b border-gray-300 bg-white", children: /* @__PURE__ */ jsx32("div", { className: "flex gap-x-10 py-3", children: options.map(({ label, value }) => /* @__PURE__ */ jsx32(
|
|
1812
1982
|
"button",
|
|
1813
1983
|
{
|
|
1814
1984
|
type: "button",
|
|
1815
1985
|
onClick: () => handleTabChange(value),
|
|
1816
1986
|
className: `text-base font-semibold cursor-pointer px-6 py-2 rounded-t-lg border-b-4 transition-colors duration-200 ${tabValue === value ? "border-blue-600 text-[#033c89]" : "border-transparent text-gray-400 dark:text-[#033c89]"}`,
|
|
1817
|
-
children: label
|
|
1987
|
+
children: label
|
|
1818
1988
|
},
|
|
1819
1989
|
value
|
|
1820
1990
|
)) }) }) });
|
|
1821
1991
|
};
|
|
1822
|
-
|
|
1992
|
+
|
|
1993
|
+
// src/components/Toast.tsx
|
|
1994
|
+
import { useEffect as useEffect4 } from "react";
|
|
1995
|
+
import { tv as tv4 } from "tailwind-variants";
|
|
1996
|
+
import { jsx as jsx33, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1997
|
+
var toastVariants = tv4({
|
|
1823
1998
|
base: "z-[100] fixed left-0 bottom-0 p-4 transition-all duration-500 transform",
|
|
1824
1999
|
variants: {
|
|
1825
2000
|
show: {
|
|
@@ -1828,7 +2003,7 @@ var toastVariants = tv({
|
|
|
1828
2003
|
}
|
|
1829
2004
|
}
|
|
1830
2005
|
});
|
|
1831
|
-
var containerVariants =
|
|
2006
|
+
var containerVariants = tv4({
|
|
1832
2007
|
base: "rounded-lg shadow overflow-hidden p-2",
|
|
1833
2008
|
variants: {
|
|
1834
2009
|
type: {
|
|
@@ -1840,7 +2015,7 @@ var containerVariants = tv({
|
|
|
1840
2015
|
}
|
|
1841
2016
|
}
|
|
1842
2017
|
});
|
|
1843
|
-
var iconVariants =
|
|
2018
|
+
var iconVariants = tv4({
|
|
1844
2019
|
base: "flex-shrink-0 self-start inline-flex items-center justify-center w-10 h-10 mr-3 rounded-xl bg-opacity-20",
|
|
1845
2020
|
variants: {
|
|
1846
2021
|
type: {
|
|
@@ -1860,7 +2035,7 @@ function Toast({
|
|
|
1860
2035
|
duration = 5e3,
|
|
1861
2036
|
onClear
|
|
1862
2037
|
}) {
|
|
1863
|
-
|
|
2038
|
+
useEffect4(() => {
|
|
1864
2039
|
if (duration && visible) {
|
|
1865
2040
|
const timer = setTimeout(() => {
|
|
1866
2041
|
setVisible && setVisible(false);
|
|
@@ -1872,7 +2047,7 @@ function Toast({
|
|
|
1872
2047
|
const icon = () => {
|
|
1873
2048
|
switch (type) {
|
|
1874
2049
|
case "Success":
|
|
1875
|
-
return /* @__PURE__ */
|
|
2050
|
+
return /* @__PURE__ */ jsx33(
|
|
1876
2051
|
"svg",
|
|
1877
2052
|
{
|
|
1878
2053
|
width: "20",
|
|
@@ -1881,7 +2056,7 @@ function Toast({
|
|
|
1881
2056
|
fill: "none",
|
|
1882
2057
|
stroke: "#a1a1a1",
|
|
1883
2058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1884
|
-
children: /* @__PURE__ */
|
|
2059
|
+
children: /* @__PURE__ */ jsx33(
|
|
1885
2060
|
"path",
|
|
1886
2061
|
{
|
|
1887
2062
|
fillRule: "evenodd",
|
|
@@ -1893,7 +2068,7 @@ function Toast({
|
|
|
1893
2068
|
}
|
|
1894
2069
|
);
|
|
1895
2070
|
case "Warning":
|
|
1896
|
-
return /* @__PURE__ */
|
|
2071
|
+
return /* @__PURE__ */ jsx33(
|
|
1897
2072
|
"svg",
|
|
1898
2073
|
{
|
|
1899
2074
|
width: "24",
|
|
@@ -1902,7 +2077,7 @@ function Toast({
|
|
|
1902
2077
|
fill: "none",
|
|
1903
2078
|
stroke: "#a1a1a1",
|
|
1904
2079
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1905
|
-
children: /* @__PURE__ */
|
|
2080
|
+
children: /* @__PURE__ */ jsx33(
|
|
1906
2081
|
"path",
|
|
1907
2082
|
{
|
|
1908
2083
|
d: "M12.0005 15C11.8027 15 11.6093 15.0586 11.4449 15.1685C11.2804 15.2784 11.1523 15.4346 11.0766 15.6173C11.0009 15.8 10.9811 16.0011 11.0197 16.1951C11.0583 16.3891 11.1535 16.5673 11.2933 16.7071C11.4332 16.847 11.6114 16.9422 11.8054 16.9808C11.9993 17.0194 12.2004 16.9996 12.3831 16.9239C12.5659 16.8482 12.722 16.72 12.8319 16.5556C12.9418 16.3911 13.0005 16.1978 13.0005 16C13.0005 15.7348 12.8951 15.4804 12.7076 15.2929C12.52 15.1054 12.2657 15 12.0005 15ZM22.6705 16.47L14.6205 2.47C14.3603 2.00351 13.9802 1.61495 13.5196 1.34447C13.0591 1.07398 12.5346 0.931366 12.0005 0.931366C11.4663 0.931366 10.9419 1.07398 10.4813 1.34447C10.0207 1.61495 9.64065 2.00351 9.38046 2.47L1.38046 16.47C1.11125 16.924 0.966598 17.441 0.9611 17.9688C0.955602 18.4966 1.08945 19.0165 1.34914 19.476C1.60883 19.9356 1.98516 20.3185 2.44014 20.586C2.89512 20.8536 3.41264 20.9964 3.94046 21H20.0605C20.5925 21.0052 21.1164 20.8689 21.5784 20.6049C22.0403 20.3409 22.4238 19.9588 22.6894 19.4978C22.9551 19.0368 23.0933 18.5134 23.09 17.9813C23.0866 17.4493 22.9418 16.9277 22.6705 16.47ZM20.9405 18.47C20.8528 18.6259 20.7249 18.7555 20.5701 18.8452C20.4154 18.9349 20.2393 18.9815 20.0605 18.98H3.94046C3.76157 18.9815 3.58556 18.9349 3.43077 18.8452C3.27599 18.7555 3.14811 18.6259 3.06046 18.47C2.97269 18.318 2.92648 18.1455 2.92648 17.97C2.92648 17.7945 2.97269 17.622 3.06046 17.47L11.0605 3.47C11.1444 3.3062 11.2719 3.16873 11.4289 3.07274C11.5859 2.97675 11.7664 2.92596 11.9505 2.92596C12.1345 2.92596 12.315 2.97675 12.472 3.07274C12.629 3.16873 12.7565 3.3062 12.8405 3.47L20.8905 17.47C20.9897 17.6198 21.0467 17.7936 21.0555 17.9731C21.0643 18.1526 21.0245 18.3312 20.9405 18.49V18.47ZM12.0005 7C11.7352 7 11.4809 7.10535 11.2933 7.29289C11.1058 7.48043 11.0005 7.73478 11.0005 8V12C11.0005 12.2652 11.1058 12.5196 11.2933 12.7071C11.4809 12.8946 11.7352 13 12.0005 13C12.2657 13 12.52 12.8946 12.7076 12.7071C12.8951 12.5196 13.0005 12.2652 13.0005 12V8C13.0005 7.73478 12.8951 7.48043 12.7076 7.29289C12.52 7.10535 12.2657 7 12.0005 7Z",
|
|
@@ -1912,7 +2087,7 @@ function Toast({
|
|
|
1912
2087
|
}
|
|
1913
2088
|
);
|
|
1914
2089
|
case "Error":
|
|
1915
|
-
return /* @__PURE__ */
|
|
2090
|
+
return /* @__PURE__ */ jsx33(
|
|
1916
2091
|
"svg",
|
|
1917
2092
|
{
|
|
1918
2093
|
width: "20",
|
|
@@ -1921,7 +2096,7 @@ function Toast({
|
|
|
1921
2096
|
fill: "none",
|
|
1922
2097
|
stroke: "#a1a1a1",
|
|
1923
2098
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1924
|
-
children: /* @__PURE__ */
|
|
2099
|
+
children: /* @__PURE__ */ jsx33(
|
|
1925
2100
|
"path",
|
|
1926
2101
|
{
|
|
1927
2102
|
d: "M10 12C9.75278 12 9.5111 12.0733 9.30554 12.2107C9.09998 12.348 8.93976 12.5432 8.84516 12.7716C8.75055 13.0001 8.72579 13.2514 8.77402 13.4939C8.82225 13.7363 8.94131 13.9591 9.11612 14.1339C9.29094 14.3087 9.51367 14.4277 9.75614 14.476C9.99862 14.5242 10.25 14.4995 10.4784 14.4049C10.7068 14.3102 10.902 14.15 11.0393 13.9445C11.1767 13.7389 11.25 13.4972 11.25 13.25C11.25 12.9185 11.1183 12.6005 10.8839 12.3661C10.6495 12.1317 10.3315 12 10 12ZM10 10.5C10.2652 10.5 10.5196 10.3946 10.7071 10.2071C10.8946 10.0196 11 9.76522 11 9.5V6.5C11 6.23478 10.8946 5.98043 10.7071 5.79289C10.5196 5.60536 10.2652 5.5 10 5.5C9.73479 5.5 9.48043 5.60536 9.2929 5.79289C9.10536 5.98043 9 6.23478 9 6.5V9.5C9 9.76522 9.10536 10.0196 9.2929 10.2071C9.48043 10.3946 9.73479 10.5 10 10.5ZM10 0C8.02219 0 6.08879 0.58649 4.4443 1.6853C2.79981 2.78412 1.51809 4.3459 0.761209 6.17317C0.00433284 8.00043 -0.193701 10.0111 0.192152 11.9509C0.578004 13.8907 1.53041 15.6725 2.92894 17.0711C4.32746 18.4696 6.10929 19.422 8.0491 19.8079C9.98891 20.1937 11.9996 19.9957 13.8268 19.2388C15.6541 18.4819 17.2159 17.2002 18.3147 15.5557C19.4135 13.9112 20 11.9778 20 10C19.9971 7.34874 18.9425 4.80691 17.0678 2.93219C15.1931 1.05746 12.6513 0.00294858 10 0ZM10 18C8.41775 18 6.87104 17.5308 5.55544 16.6518C4.23985 15.7727 3.21447 14.5233 2.60897 13.0615C2.00347 11.5997 1.84504 9.99113 2.15372 8.43928C2.4624 6.88743 3.22433 5.46197 4.34315 4.34315C5.46197 3.22433 6.88743 2.4624 8.43928 2.15372C9.99113 1.84504 11.5997 2.00346 13.0615 2.60896C14.5233 3.21447 15.7727 4.23984 16.6518 5.55544C17.5308 6.87103 18 8.41775 18 10C17.9976 12.121 17.1539 14.1544 15.6542 15.6542C14.1544 17.1539 12.121 17.9976 10 18Z",
|
|
@@ -1931,7 +2106,7 @@ function Toast({
|
|
|
1931
2106
|
}
|
|
1932
2107
|
);
|
|
1933
2108
|
case "Message":
|
|
1934
|
-
return /* @__PURE__ */
|
|
2109
|
+
return /* @__PURE__ */ jsx33(
|
|
1935
2110
|
"svg",
|
|
1936
2111
|
{
|
|
1937
2112
|
width: "20",
|
|
@@ -1940,7 +2115,7 @@ function Toast({
|
|
|
1940
2115
|
fill: "none",
|
|
1941
2116
|
stroke: "#a1a1a1",
|
|
1942
2117
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1943
|
-
children: /* @__PURE__ */
|
|
2118
|
+
children: /* @__PURE__ */ jsx33(
|
|
1944
2119
|
"path",
|
|
1945
2120
|
{
|
|
1946
2121
|
fillRule: "evenodd",
|
|
@@ -1958,14 +2133,14 @@ function Toast({
|
|
|
1958
2133
|
const toast = () => {
|
|
1959
2134
|
switch (type) {
|
|
1960
2135
|
case "Default":
|
|
1961
|
-
return /* @__PURE__ */
|
|
2136
|
+
return /* @__PURE__ */ jsx33("div", { className: "flex flex-wrap w-full h-full items-center justify-between", children: /* @__PURE__ */ jsx33("div", { className: "w-full sm:w-auto px-4 py-4 sm:py-0 border-b border-gray-400 sm:border-transparent", children: /* @__PURE__ */ jsx33("span", { className: "text-sm leading-5 text-gray-200 font-semibold", children: message }) }) });
|
|
1962
2137
|
default:
|
|
1963
|
-
return /* @__PURE__ */
|
|
1964
|
-
/* @__PURE__ */
|
|
1965
|
-
/* @__PURE__ */
|
|
1966
|
-
/* @__PURE__ */
|
|
2138
|
+
return /* @__PURE__ */ jsxs15("div", { className: "flex flex-wrap w-full h-full items-center justify-between", children: [
|
|
2139
|
+
/* @__PURE__ */ jsx33("div", { className: "w-full sm:w-auto px-4 py-4 sm:py-0", children: /* @__PURE__ */ jsxs15("div", { className: "flex items-center pr-6", children: [
|
|
2140
|
+
/* @__PURE__ */ jsx33("div", { className: iconVariants({ type }), children: icon() }),
|
|
2141
|
+
/* @__PURE__ */ jsx33("span", { className: "text-sm leading-5 text-gray-200", children: message })
|
|
1967
2142
|
] }) }),
|
|
1968
|
-
/* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ jsx33("div", { className: "w-20 h-16 border-l border-gray-800", children: /* @__PURE__ */ jsx33(
|
|
1969
2144
|
"button",
|
|
1970
2145
|
{
|
|
1971
2146
|
onClick: () => {
|
|
@@ -1979,9 +2154,15 @@ function Toast({
|
|
|
1979
2154
|
] });
|
|
1980
2155
|
}
|
|
1981
2156
|
};
|
|
1982
|
-
return /* @__PURE__ */
|
|
2157
|
+
return /* @__PURE__ */ jsx33("div", { className: toastVariants({ show: visible }), children: /* @__PURE__ */ jsx33("div", { className: containerVariants({ type }), children: toast() }) });
|
|
1983
2158
|
}
|
|
1984
|
-
|
|
2159
|
+
|
|
2160
|
+
// src/components/TopMenu.tsx
|
|
2161
|
+
import { motion, useAnimation } from "framer-motion";
|
|
2162
|
+
import { useEffect as useEffect5, useState as useState4 } from "react";
|
|
2163
|
+
import { tv as tv5 } from "tailwind-variants";
|
|
2164
|
+
import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2165
|
+
var navbar = tv5({
|
|
1985
2166
|
base: "sticky top-0 z-40 w-full transition-all duration-500",
|
|
1986
2167
|
variants: {
|
|
1987
2168
|
scrolled: {
|
|
@@ -1991,9 +2172,9 @@ var navbar = tv({
|
|
|
1991
2172
|
}
|
|
1992
2173
|
});
|
|
1993
2174
|
function TopMenu({ logoUrl, children }) {
|
|
1994
|
-
const [scrolled, setScrolled] =
|
|
2175
|
+
const [scrolled, setScrolled] = useState4(false);
|
|
1995
2176
|
const controls = useAnimation();
|
|
1996
|
-
|
|
2177
|
+
useEffect5(() => {
|
|
1997
2178
|
const onScroll = () => {
|
|
1998
2179
|
const hasScrolled = window.scrollY > 30;
|
|
1999
2180
|
setScrolled(hasScrolled);
|
|
@@ -2007,28 +2188,42 @@ function TopMenu({ logoUrl, children }) {
|
|
|
2007
2188
|
window.addEventListener("scroll", onScroll);
|
|
2008
2189
|
return () => window.removeEventListener("scroll", onScroll);
|
|
2009
2190
|
}, [controls]);
|
|
2010
|
-
return /* @__PURE__ */
|
|
2011
|
-
/* @__PURE__ */
|
|
2012
|
-
/* @__PURE__ */
|
|
2013
|
-
/* @__PURE__ */
|
|
2191
|
+
return /* @__PURE__ */ jsx34(motion.nav, { animate: controls, className: navbar({ scrolled }), children: /* @__PURE__ */ jsxs16("div", { className: "max-w-7xl font-bold mx-auto bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 px-4 py-4 flex justify-between items-center", children: [
|
|
2192
|
+
/* @__PURE__ */ jsx34("div", { className: "flex flex-row", children: logoUrl && /* @__PURE__ */ jsxs16(Fragment5, { children: [
|
|
2193
|
+
/* @__PURE__ */ jsx34("a", { className: "block", href: "#", children: /* @__PURE__ */ jsx34("img", { src: logoUrl, className: "h-7 mx-auto", alt: "" }) }),
|
|
2194
|
+
/* @__PURE__ */ jsx34("span", { className: "text-gray-700 dark:text-gray-300 my-auto font-medium text-xl ml-4", children: "Property Practice" })
|
|
2014
2195
|
] }) }),
|
|
2015
|
-
/* @__PURE__ */
|
|
2196
|
+
/* @__PURE__ */ jsx34("div", { className: "space-x-4 text-sm font-medium ", children })
|
|
2016
2197
|
] }) });
|
|
2017
2198
|
}
|
|
2018
|
-
|
|
2199
|
+
|
|
2200
|
+
// src/molecules/Accordion/Accordion.tsx
|
|
2201
|
+
import { useState as useState5 } from "react";
|
|
2202
|
+
import styled24 from "styled-components";
|
|
2203
|
+
|
|
2204
|
+
// src/molecules/AccordionContent/AccordionContent.tsx
|
|
2205
|
+
import styled22 from "styled-components";
|
|
2206
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2207
|
+
var Container6 = styled22.div`
|
|
2019
2208
|
width: 100%;
|
|
2020
2209
|
padding: ${spaces[4]};
|
|
2021
2210
|
`;
|
|
2022
2211
|
var AccordionContent = ({ children }) => {
|
|
2023
|
-
return /* @__PURE__ */
|
|
2212
|
+
return /* @__PURE__ */ jsx35(Container6, { children });
|
|
2024
2213
|
};
|
|
2025
|
-
|
|
2214
|
+
|
|
2215
|
+
// src/molecules/AccordionHeader/AccordionHeader.tsx
|
|
2216
|
+
import { FaMinus, FaPlus } from "react-icons/fa";
|
|
2217
|
+
import { FaPlus as FaP } from "react-icons/fa6";
|
|
2218
|
+
import styled23 from "styled-components";
|
|
2219
|
+
import { Fragment as Fragment6, jsx as jsx36, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2220
|
+
var Container7 = styled23.div`
|
|
2026
2221
|
display: flex;
|
|
2027
2222
|
align-items: center;
|
|
2028
2223
|
justify-content: space-between;
|
|
2029
2224
|
width: 100%;
|
|
2030
2225
|
`;
|
|
2031
|
-
var HeaderContainer =
|
|
2226
|
+
var HeaderContainer = styled23.div`
|
|
2032
2227
|
display: flex;
|
|
2033
2228
|
align-items: center;
|
|
2034
2229
|
gap: ${spaces[2]};
|
|
@@ -2045,22 +2240,25 @@ var AccordionHeader = ({
|
|
|
2045
2240
|
onButtonPress,
|
|
2046
2241
|
rightElement
|
|
2047
2242
|
}) => {
|
|
2048
|
-
return /* @__PURE__ */
|
|
2049
|
-
/* @__PURE__ */
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
-
/* @__PURE__ */
|
|
2243
|
+
return /* @__PURE__ */ jsxs17(Container7, { children: [
|
|
2244
|
+
/* @__PURE__ */ jsxs17(HeaderContainer, { onClick: onAccordionPress, children: [
|
|
2245
|
+
/* @__PURE__ */ jsx36(Fragment6, { children: isOpen ? /* @__PURE__ */ jsx36(FaMinus, { color: colors.text.primary, size: sizes.lg }) : /* @__PURE__ */ jsx36(FaPlus, { color: colors.text.primary, size: sizes.lg }) }),
|
|
2246
|
+
/* @__PURE__ */ jsx36(Header, { variant: "h2", children: title })
|
|
2052
2247
|
] }),
|
|
2053
|
-
rightElement ? rightElement : /* @__PURE__ */
|
|
2248
|
+
rightElement ? rightElement : /* @__PURE__ */ jsx36(
|
|
2054
2249
|
Button,
|
|
2055
2250
|
{
|
|
2056
2251
|
text: buttonText,
|
|
2057
|
-
icon: /* @__PURE__ */
|
|
2252
|
+
icon: /* @__PURE__ */ jsx36(FaP, { fontSize: "10px" }),
|
|
2058
2253
|
onClick: onButtonPress
|
|
2059
2254
|
}
|
|
2060
2255
|
)
|
|
2061
2256
|
] });
|
|
2062
2257
|
};
|
|
2063
|
-
|
|
2258
|
+
|
|
2259
|
+
// src/molecules/Accordion/Accordion.tsx
|
|
2260
|
+
import { jsx as jsx37, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2261
|
+
var Container8 = styled24.div`
|
|
2064
2262
|
border-radius: ${radii.lg};
|
|
2065
2263
|
background-color: ${colors.background.secondary};
|
|
2066
2264
|
padding: ${spaces[4]};
|
|
@@ -2072,9 +2270,9 @@ var Accordion = ({
|
|
|
2072
2270
|
children,
|
|
2073
2271
|
rightElement
|
|
2074
2272
|
}) => {
|
|
2075
|
-
const [isOpen, setIsOpen] =
|
|
2076
|
-
return /* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2273
|
+
const [isOpen, setIsOpen] = useState5(false);
|
|
2274
|
+
return /* @__PURE__ */ jsxs18(Container8, { children: [
|
|
2275
|
+
/* @__PURE__ */ jsx37(
|
|
2078
2276
|
AccordionHeader,
|
|
2079
2277
|
{
|
|
2080
2278
|
isOpen,
|
|
@@ -2085,23 +2283,27 @@ var Accordion = ({
|
|
|
2085
2283
|
rightElement
|
|
2086
2284
|
}
|
|
2087
2285
|
),
|
|
2088
|
-
isOpen && /* @__PURE__ */
|
|
2286
|
+
isOpen && /* @__PURE__ */ jsx37(AccordionContent, { children })
|
|
2089
2287
|
] });
|
|
2090
2288
|
};
|
|
2289
|
+
|
|
2290
|
+
// src/molecules/Address/Address.tsx
|
|
2291
|
+
import styled25 from "styled-components";
|
|
2292
|
+
import { jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2091
2293
|
var variants9 = ["primary", "inverse", "subtle"];
|
|
2092
|
-
var AddressContainer =
|
|
2294
|
+
var AddressContainer = styled25.div`
|
|
2093
2295
|
display: flex;
|
|
2094
2296
|
flex-direction: column;
|
|
2095
2297
|
gap: 1rem;
|
|
2096
2298
|
background-color: transparent;
|
|
2097
2299
|
padding: 2rem;
|
|
2098
2300
|
`;
|
|
2099
|
-
var InfoSection =
|
|
2301
|
+
var InfoSection = styled25.div`
|
|
2100
2302
|
display: flex;
|
|
2101
2303
|
flex-direction: column;
|
|
2102
2304
|
gap: 0.5rem;
|
|
2103
2305
|
`;
|
|
2104
|
-
var InfoText =
|
|
2306
|
+
var InfoText = styled25.p`
|
|
2105
2307
|
margin: 0;
|
|
2106
2308
|
font-size: 0.875rem;
|
|
2107
2309
|
line-height: 1.6;
|
|
@@ -2119,7 +2321,7 @@ var InfoText = styled39.p`
|
|
|
2119
2321
|
}};
|
|
2120
2322
|
font-weight: ${(props) => props.$bold ? 600 : 400};
|
|
2121
2323
|
`;
|
|
2122
|
-
var ButtonWrapper =
|
|
2324
|
+
var ButtonWrapper = styled25.div`
|
|
2123
2325
|
margin-top: 0.5rem;
|
|
2124
2326
|
`;
|
|
2125
2327
|
var Address = ({
|
|
@@ -2168,14 +2370,14 @@ var Address = ({
|
|
|
2168
2370
|
return "primary";
|
|
2169
2371
|
}
|
|
2170
2372
|
};
|
|
2171
|
-
return /* @__PURE__ */
|
|
2172
|
-
/* @__PURE__ */
|
|
2173
|
-
/* @__PURE__ */
|
|
2174
|
-
phone && /* @__PURE__ */
|
|
2175
|
-
email && /* @__PURE__ */
|
|
2176
|
-
addressLines.map((line, index) => /* @__PURE__ */
|
|
2373
|
+
return /* @__PURE__ */ jsxs19(AddressContainer, { children: [
|
|
2374
|
+
/* @__PURE__ */ jsx38(Header, { variant: "h1", color: getHeaderVariant(), children: title }),
|
|
2375
|
+
/* @__PURE__ */ jsxs19(InfoSection, { children: [
|
|
2376
|
+
phone && /* @__PURE__ */ jsx38(InfoText, { variant, children: phone }),
|
|
2377
|
+
email && /* @__PURE__ */ jsx38(InfoText, { variant, $bold: true, children: email.toUpperCase() }),
|
|
2378
|
+
addressLines.map((line, index) => /* @__PURE__ */ jsx38(InfoText, { variant, children: line }, index))
|
|
2177
2379
|
] }),
|
|
2178
|
-
/* @__PURE__ */
|
|
2380
|
+
/* @__PURE__ */ jsx38(ButtonWrapper, { children: /* @__PURE__ */ jsx38(
|
|
2179
2381
|
TextButton,
|
|
2180
2382
|
{
|
|
2181
2383
|
text: directionsText,
|
|
@@ -2188,7 +2390,14 @@ var Address = ({
|
|
|
2188
2390
|
] });
|
|
2189
2391
|
};
|
|
2190
2392
|
Address.variants = variants9;
|
|
2191
|
-
|
|
2393
|
+
|
|
2394
|
+
// src/molecules/Checkbox/Checkbox.tsx
|
|
2395
|
+
import styled27 from "styled-components";
|
|
2396
|
+
|
|
2397
|
+
// src/atoms/CheckboxItem/CheckboxItem.tsx
|
|
2398
|
+
import styled26 from "styled-components";
|
|
2399
|
+
import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2400
|
+
var CheckboxWrapper = styled26.label`
|
|
2192
2401
|
display: flex;
|
|
2193
2402
|
align-items: center;
|
|
2194
2403
|
gap: ${spaces[2]};
|
|
@@ -2196,10 +2405,10 @@ var CheckboxWrapper = styled39.label`
|
|
|
2196
2405
|
font-size: 16px;
|
|
2197
2406
|
color: ${colors.text.subtle};
|
|
2198
2407
|
`;
|
|
2199
|
-
var HiddenCheckbox2 =
|
|
2408
|
+
var HiddenCheckbox2 = styled26.input.attrs({ type: "checkbox" })`
|
|
2200
2409
|
display: none;
|
|
2201
2410
|
`;
|
|
2202
|
-
var StyledCheckbox2 =
|
|
2411
|
+
var StyledCheckbox2 = styled26.span`
|
|
2203
2412
|
width: ${sizes.lg};
|
|
2204
2413
|
height: ${sizes.lg};
|
|
2205
2414
|
border: 1.5px solid ${colors.background.tertiary};
|
|
@@ -2212,17 +2421,20 @@ var CheckboxItem = ({
|
|
|
2212
2421
|
onClick,
|
|
2213
2422
|
checked
|
|
2214
2423
|
}) => {
|
|
2215
|
-
return /* @__PURE__ */
|
|
2216
|
-
/* @__PURE__ */
|
|
2217
|
-
/* @__PURE__ */
|
|
2424
|
+
return /* @__PURE__ */ jsxs20(CheckboxWrapper, { onClick, children: [
|
|
2425
|
+
/* @__PURE__ */ jsx39(HiddenCheckbox2, { checked, readOnly: true }),
|
|
2426
|
+
/* @__PURE__ */ jsx39(StyledCheckbox2, { checked }),
|
|
2218
2427
|
label
|
|
2219
2428
|
] });
|
|
2220
2429
|
};
|
|
2221
|
-
|
|
2430
|
+
|
|
2431
|
+
// src/molecules/Checkbox/Checkbox.tsx
|
|
2432
|
+
import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2433
|
+
var Container9 = styled27.div`
|
|
2222
2434
|
display: flex;
|
|
2223
2435
|
flex-direction: column;
|
|
2224
2436
|
`;
|
|
2225
|
-
var OptionsContainer =
|
|
2437
|
+
var OptionsContainer = styled27.div`
|
|
2226
2438
|
display: flex;
|
|
2227
2439
|
gap: ${spaces[4]};
|
|
2228
2440
|
`;
|
|
@@ -2233,8 +2445,8 @@ var Checkbox = ({
|
|
|
2233
2445
|
options,
|
|
2234
2446
|
value
|
|
2235
2447
|
}) => {
|
|
2236
|
-
return /* @__PURE__ */
|
|
2237
|
-
typeof label === "string" && label?.length ? /* @__PURE__ */
|
|
2448
|
+
return /* @__PURE__ */ jsxs21(Container9, { children: [
|
|
2449
|
+
typeof label === "string" && label?.length ? /* @__PURE__ */ jsx40(
|
|
2238
2450
|
Label,
|
|
2239
2451
|
{
|
|
2240
2452
|
value: label,
|
|
@@ -2242,7 +2454,7 @@ var Checkbox = ({
|
|
|
2242
2454
|
fontWeight: "600"
|
|
2243
2455
|
}
|
|
2244
2456
|
) : null,
|
|
2245
|
-
/* @__PURE__ */
|
|
2457
|
+
/* @__PURE__ */ jsx40(OptionsContainer, { children: options.map((option) => /* @__PURE__ */ jsx40(
|
|
2246
2458
|
CheckboxItem,
|
|
2247
2459
|
{
|
|
2248
2460
|
checked: value === option.value,
|
|
@@ -2253,7 +2465,11 @@ var Checkbox = ({
|
|
|
2253
2465
|
)) })
|
|
2254
2466
|
] });
|
|
2255
2467
|
};
|
|
2256
|
-
|
|
2468
|
+
|
|
2469
|
+
// src/molecules/ContentCard/ContentCard.tsx
|
|
2470
|
+
import styled28 from "styled-components";
|
|
2471
|
+
import { jsx as jsx41, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2472
|
+
var Container10 = styled28.div`
|
|
2257
2473
|
display: flex;
|
|
2258
2474
|
flex-direction: column;
|
|
2259
2475
|
gap: 1rem;
|
|
@@ -2264,7 +2480,7 @@ var Container10 = styled39.div`
|
|
|
2264
2480
|
border-radius: 8px;
|
|
2265
2481
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
2266
2482
|
`;
|
|
2267
|
-
var ThumbnailWrapper2 =
|
|
2483
|
+
var ThumbnailWrapper2 = styled28.div`
|
|
2268
2484
|
width: 180px;
|
|
2269
2485
|
height: 180px;
|
|
2270
2486
|
border-radius: 50%;
|
|
@@ -2275,7 +2491,7 @@ var ThumbnailWrapper2 = styled39.div`
|
|
|
2275
2491
|
flex-shrink: 0;
|
|
2276
2492
|
align-self: center;
|
|
2277
2493
|
`;
|
|
2278
|
-
var ButtonWrapper2 =
|
|
2494
|
+
var ButtonWrapper2 = styled28.div`
|
|
2279
2495
|
display: flex;
|
|
2280
2496
|
justify-content: flex-start;
|
|
2281
2497
|
margin-top: auto;
|
|
@@ -2291,11 +2507,11 @@ var ContentCard = ({
|
|
|
2291
2507
|
arrowVariant = "teal",
|
|
2292
2508
|
thumbnailBgColor = "brand"
|
|
2293
2509
|
}) => {
|
|
2294
|
-
return /* @__PURE__ */
|
|
2295
|
-
/* @__PURE__ */
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
/* @__PURE__ */
|
|
2298
|
-
/* @__PURE__ */
|
|
2510
|
+
return /* @__PURE__ */ jsxs22(Container10, { children: [
|
|
2511
|
+
/* @__PURE__ */ jsx41(ThumbnailWrapper2, { thumbnailBgColor, children: thumbnail }),
|
|
2512
|
+
/* @__PURE__ */ jsx41(Header, { variant: headerVariant, color: titleColor, children: title }),
|
|
2513
|
+
/* @__PURE__ */ jsx41(Description, { variant: descriptionVariant, children: description }),
|
|
2514
|
+
/* @__PURE__ */ jsx41(ButtonWrapper2, { children: /* @__PURE__ */ jsx41(
|
|
2299
2515
|
ArrowButton,
|
|
2300
2516
|
{
|
|
2301
2517
|
onClick: onArrowClick,
|
|
@@ -2304,8 +2520,12 @@ var ContentCard = ({
|
|
|
2304
2520
|
) })
|
|
2305
2521
|
] });
|
|
2306
2522
|
};
|
|
2523
|
+
|
|
2524
|
+
// src/molecules/CTAContainer/CTAContainer.tsx
|
|
2525
|
+
import styled29 from "styled-components";
|
|
2526
|
+
import { jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2307
2527
|
var variants10 = ["primary", "secondary", "transparent"];
|
|
2308
|
-
var Container11 =
|
|
2528
|
+
var Container11 = styled29.div`
|
|
2309
2529
|
display: flex;
|
|
2310
2530
|
flex-direction: column;
|
|
2311
2531
|
gap: 1.5rem;
|
|
@@ -2313,20 +2533,20 @@ var Container11 = styled39.div`
|
|
|
2313
2533
|
|
|
2314
2534
|
max-width: 500px;
|
|
2315
2535
|
`;
|
|
2316
|
-
var Header2 =
|
|
2536
|
+
var Header2 = styled29.h1`
|
|
2317
2537
|
margin: 0;
|
|
2318
2538
|
font-size: 2.5rem;
|
|
2319
2539
|
font-weight: 700;
|
|
2320
2540
|
line-height: 1.2;
|
|
2321
2541
|
color: ${(props) => colors.text[props.textColor]};
|
|
2322
2542
|
`;
|
|
2323
|
-
var Description3 =
|
|
2543
|
+
var Description3 = styled29.p`
|
|
2324
2544
|
margin: 0;
|
|
2325
2545
|
font-size: 1.125rem;
|
|
2326
2546
|
line-height: 1.6;
|
|
2327
2547
|
color: ${(props) => colors.text[props.textColor]};
|
|
2328
2548
|
`;
|
|
2329
|
-
var ButtonGroup =
|
|
2549
|
+
var ButtonGroup = styled29.div`
|
|
2330
2550
|
display: flex;
|
|
2331
2551
|
gap: 1rem;
|
|
2332
2552
|
align-items: center;
|
|
@@ -2347,11 +2567,11 @@ var CTAContainer = ({
|
|
|
2347
2567
|
secondaryBgVariant = "transparent",
|
|
2348
2568
|
secondaryTextVariant = "secondary"
|
|
2349
2569
|
}) => {
|
|
2350
|
-
return /* @__PURE__ */
|
|
2351
|
-
/* @__PURE__ */
|
|
2352
|
-
/* @__PURE__ */
|
|
2353
|
-
/* @__PURE__ */
|
|
2354
|
-
/* @__PURE__ */
|
|
2570
|
+
return /* @__PURE__ */ jsxs23(Container11, { variant, children: [
|
|
2571
|
+
/* @__PURE__ */ jsx42(Header2, { textColor: headerTextColor, children: header }),
|
|
2572
|
+
/* @__PURE__ */ jsx42(Description3, { textColor: descriptionTextColor, children: description }),
|
|
2573
|
+
/* @__PURE__ */ jsxs23(ButtonGroup, { children: [
|
|
2574
|
+
/* @__PURE__ */ jsx42(
|
|
2355
2575
|
ExtendedButton,
|
|
2356
2576
|
{
|
|
2357
2577
|
text: primaryButtonText,
|
|
@@ -2361,7 +2581,7 @@ var CTAContainer = ({
|
|
|
2361
2581
|
textVariant: primaryTextVariant
|
|
2362
2582
|
}
|
|
2363
2583
|
),
|
|
2364
|
-
secondaryButtonText && /* @__PURE__ */
|
|
2584
|
+
secondaryButtonText && /* @__PURE__ */ jsx42(
|
|
2365
2585
|
TextButton,
|
|
2366
2586
|
{
|
|
2367
2587
|
text: secondaryButtonText,
|
|
@@ -2374,11 +2594,17 @@ var CTAContainer = ({
|
|
|
2374
2594
|
] });
|
|
2375
2595
|
};
|
|
2376
2596
|
CTAContainer.variants = variants10;
|
|
2377
|
-
|
|
2378
|
-
|
|
2597
|
+
|
|
2598
|
+
// src/molecules/FAQAccordion/FAQAccordion.tsx
|
|
2599
|
+
import { useState as useState6 } from "react";
|
|
2600
|
+
import { HiMinus, HiPlus } from "react-icons/hi2";
|
|
2601
|
+
import styled30 from "styled-components";
|
|
2602
|
+
import { jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2603
|
+
var AccordionContainer = styled30.div`
|
|
2604
|
+
border-bottom: 1px solid ${colors.text.light || "#d1d5db"};
|
|
2379
2605
|
padding: 1.5rem 0;
|
|
2380
2606
|
`;
|
|
2381
|
-
var AccordionHeader2 =
|
|
2607
|
+
var AccordionHeader2 = styled30.button`
|
|
2382
2608
|
width: 100%;
|
|
2383
2609
|
display: flex;
|
|
2384
2610
|
align-items: center;
|
|
@@ -2389,23 +2615,23 @@ var AccordionHeader2 = styled39.button`
|
|
|
2389
2615
|
text-align: left;
|
|
2390
2616
|
padding: 0;
|
|
2391
2617
|
`;
|
|
2392
|
-
var NumberBadge =
|
|
2618
|
+
var NumberBadge = styled30.span`
|
|
2393
2619
|
font-size: 1rem;
|
|
2394
2620
|
font-weight: 600;
|
|
2395
2621
|
color: ${(props) => colors.text[props.numberColor]};
|
|
2396
2622
|
flex-shrink: 0;
|
|
2397
2623
|
`;
|
|
2398
|
-
var HeaderWrapper =
|
|
2624
|
+
var HeaderWrapper = styled30.div`
|
|
2399
2625
|
flex-grow: 1;
|
|
2400
2626
|
`;
|
|
2401
|
-
var IconWrapper =
|
|
2627
|
+
var IconWrapper = styled30.div`
|
|
2402
2628
|
color: ${(props) => colors.text[props.iconColor]};
|
|
2403
2629
|
flex-shrink: 0;
|
|
2404
2630
|
display: flex;
|
|
2405
2631
|
align-items: center;
|
|
2406
2632
|
justify-content: center;
|
|
2407
2633
|
`;
|
|
2408
|
-
var AccordionContent2 =
|
|
2634
|
+
var AccordionContent2 = styled30.div`
|
|
2409
2635
|
max-height: ${(props) => props.$isOpen ? "1000px" : "0"};
|
|
2410
2636
|
overflow: hidden;
|
|
2411
2637
|
transition: max-height 0.3s ease-in-out;
|
|
@@ -2423,21 +2649,25 @@ var FAQAccordion = ({
|
|
|
2423
2649
|
iconColor = "brand",
|
|
2424
2650
|
contentVariant = "primary"
|
|
2425
2651
|
}) => {
|
|
2426
|
-
const [isOpen, setIsOpen] =
|
|
2427
|
-
return /* @__PURE__ */
|
|
2428
|
-
/* @__PURE__ */
|
|
2429
|
-
/* @__PURE__ */
|
|
2430
|
-
/* @__PURE__ */
|
|
2431
|
-
/* @__PURE__ */
|
|
2652
|
+
const [isOpen, setIsOpen] = useState6(defaultOpen);
|
|
2653
|
+
return /* @__PURE__ */ jsxs24(AccordionContainer, { children: [
|
|
2654
|
+
/* @__PURE__ */ jsxs24(AccordionHeader2, { onClick: () => setIsOpen(!isOpen), children: [
|
|
2655
|
+
/* @__PURE__ */ jsx43(NumberBadge, { numberColor, children: number }),
|
|
2656
|
+
/* @__PURE__ */ jsx43(HeaderWrapper, { children: /* @__PURE__ */ jsx43(Header, { variant: headerVariant, color: titleColor, children: title }) }),
|
|
2657
|
+
/* @__PURE__ */ jsx43(IconWrapper, { iconColor, children: isOpen ? /* @__PURE__ */ jsx43(HiMinus, { size: 24 }) : /* @__PURE__ */ jsx43(HiPlus, { size: 24 }) })
|
|
2432
2658
|
] }),
|
|
2433
|
-
/* @__PURE__ */
|
|
2659
|
+
/* @__PURE__ */ jsx43(AccordionContent2, { $isOpen: isOpen, children: /* @__PURE__ */ jsx43(Description, { variant: contentVariant, children: content }) })
|
|
2434
2660
|
] });
|
|
2435
2661
|
};
|
|
2436
|
-
|
|
2662
|
+
|
|
2663
|
+
// src/molecules/FeatureContainer/FeatureContainer.tsx
|
|
2664
|
+
import styled31 from "styled-components";
|
|
2665
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
2666
|
+
var Container12 = styled31.div`
|
|
2437
2667
|
display: flex;
|
|
2438
2668
|
flex-direction: column;
|
|
2439
2669
|
`;
|
|
2440
|
-
var FeatureWrapper =
|
|
2670
|
+
var FeatureWrapper = styled31.div`
|
|
2441
2671
|
padding: 1rem 0;
|
|
2442
2672
|
border-bottom: 1px solid #e5e7eb;
|
|
2443
2673
|
|
|
@@ -2451,7 +2681,7 @@ var FeatureContainer = ({
|
|
|
2451
2681
|
titleColor = "primary",
|
|
2452
2682
|
descriptionVariant = "subtle"
|
|
2453
2683
|
}) => {
|
|
2454
|
-
return /* @__PURE__ */
|
|
2684
|
+
return /* @__PURE__ */ jsx44(Container12, { children: items.map((item, index) => /* @__PURE__ */ jsx44(FeatureWrapper, { children: /* @__PURE__ */ jsx44(
|
|
2455
2685
|
FeatureItem,
|
|
2456
2686
|
{
|
|
2457
2687
|
thumbnail: item.thumbnail,
|
|
@@ -2464,6 +2694,11 @@ var FeatureContainer = ({
|
|
|
2464
2694
|
}
|
|
2465
2695
|
) }, index)) });
|
|
2466
2696
|
};
|
|
2697
|
+
|
|
2698
|
+
// src/molecules/FileButton/FileButton.tsx
|
|
2699
|
+
import { useRef } from "react";
|
|
2700
|
+
import { FaPlus as FaPlus2 } from "react-icons/fa6";
|
|
2701
|
+
import { Fragment as Fragment7, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2467
2702
|
var FileButton = ({
|
|
2468
2703
|
onFileSelect,
|
|
2469
2704
|
accept = [".pdf"],
|
|
@@ -2482,16 +2717,16 @@ var FileButton = ({
|
|
|
2482
2717
|
Array.from(files).forEach((file) => onFileSelect(file));
|
|
2483
2718
|
}
|
|
2484
2719
|
};
|
|
2485
|
-
return /* @__PURE__ */
|
|
2486
|
-
/* @__PURE__ */
|
|
2720
|
+
return /* @__PURE__ */ jsxs25(Fragment7, { children: [
|
|
2721
|
+
/* @__PURE__ */ jsx45(
|
|
2487
2722
|
Button,
|
|
2488
2723
|
{
|
|
2489
2724
|
...rest,
|
|
2490
|
-
icon: /* @__PURE__ */
|
|
2725
|
+
icon: /* @__PURE__ */ jsx45(FaPlus2, { fontSize: "10px" }),
|
|
2491
2726
|
onClick: handleClick
|
|
2492
2727
|
}
|
|
2493
2728
|
),
|
|
2494
|
-
/* @__PURE__ */
|
|
2729
|
+
/* @__PURE__ */ jsx45(
|
|
2495
2730
|
"input",
|
|
2496
2731
|
{
|
|
2497
2732
|
type: "file",
|
|
@@ -2504,13 +2739,17 @@ var FileButton = ({
|
|
|
2504
2739
|
)
|
|
2505
2740
|
] });
|
|
2506
2741
|
};
|
|
2742
|
+
|
|
2743
|
+
// src/molecules/Input/Input.tsx
|
|
2744
|
+
import { useMemo as useMemo5 } from "react";
|
|
2745
|
+
import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2507
2746
|
var Input2 = ({ label, error, ...rest }) => {
|
|
2508
|
-
const isInvalid =
|
|
2747
|
+
const isInvalid = useMemo5(
|
|
2509
2748
|
() => typeof error === "string" && error.length > 0,
|
|
2510
2749
|
[error]
|
|
2511
2750
|
);
|
|
2512
|
-
return /* @__PURE__ */
|
|
2513
|
-
typeof label === "string" && /* @__PURE__ */
|
|
2751
|
+
return /* @__PURE__ */ jsxs26(InputContainer, { error, children: [
|
|
2752
|
+
typeof label === "string" && /* @__PURE__ */ jsx46(
|
|
2514
2753
|
FloatingLabel,
|
|
2515
2754
|
{
|
|
2516
2755
|
color: isInvalid ? "error" : "subtle",
|
|
@@ -2518,19 +2757,28 @@ var Input2 = ({ label, error, ...rest }) => {
|
|
|
2518
2757
|
fontWeight: "600"
|
|
2519
2758
|
}
|
|
2520
2759
|
),
|
|
2521
|
-
/* @__PURE__ */
|
|
2760
|
+
/* @__PURE__ */ jsx46(Input, { ...rest })
|
|
2522
2761
|
] });
|
|
2523
2762
|
};
|
|
2524
2763
|
Input2.types = Input.types;
|
|
2525
|
-
|
|
2764
|
+
|
|
2765
|
+
// src/molecules/Modal/Modal.tsx
|
|
2766
|
+
import styled32 from "styled-components";
|
|
2767
|
+
|
|
2768
|
+
// src/tokens/animations.ts
|
|
2769
|
+
import { keyframes as keyframes2 } from "styled-components";
|
|
2770
|
+
var fadeIn = keyframes2`
|
|
2526
2771
|
from { opacity: 0 }
|
|
2527
2772
|
to { opacity: 1 }
|
|
2528
2773
|
`;
|
|
2529
|
-
|
|
2774
|
+
var popIn = keyframes2`
|
|
2530
2775
|
from { transform: translateY(8px) scale(.98); opacity: 0 }
|
|
2531
2776
|
to { transform: translateY(0) scale(1); opacity: 1 }
|
|
2532
2777
|
`;
|
|
2533
|
-
|
|
2778
|
+
|
|
2779
|
+
// src/molecules/Modal/Modal.tsx
|
|
2780
|
+
import { Fragment as Fragment8, jsx as jsx47 } from "react/jsx-runtime";
|
|
2781
|
+
var Overlay = styled32.div`
|
|
2534
2782
|
height: 100vh;
|
|
2535
2783
|
width: 100vw;
|
|
2536
2784
|
background-color: rgba(0, 0, 0, 0.4);
|
|
@@ -2542,7 +2790,7 @@ var Overlay = styled39.div`
|
|
|
2542
2790
|
justify-content: center;
|
|
2543
2791
|
animation: ${fadeIn} 160ms ease-out;
|
|
2544
2792
|
`;
|
|
2545
|
-
var ContentContainer =
|
|
2793
|
+
var ContentContainer = styled32.div`
|
|
2546
2794
|
position: relative;
|
|
2547
2795
|
width: min(${breakpoints.sm}, 92vw);
|
|
2548
2796
|
max-height: 86vh;
|
|
@@ -2563,10 +2811,15 @@ var Modal = ({
|
|
|
2563
2811
|
onClose();
|
|
2564
2812
|
}
|
|
2565
2813
|
}
|
|
2566
|
-
if (!visible) return /* @__PURE__ */
|
|
2567
|
-
return /* @__PURE__ */
|
|
2814
|
+
if (!visible) return /* @__PURE__ */ jsx47(Fragment8, {});
|
|
2815
|
+
return /* @__PURE__ */ jsx47(Overlay, { contentPosition, onClick: onDismiss, children: /* @__PURE__ */ jsx47(ContentContainer, { onClick: (e) => e.stopPropagation(), children }) });
|
|
2568
2816
|
};
|
|
2569
|
-
|
|
2817
|
+
|
|
2818
|
+
// src/molecules/OverviewRowItem/OverviewRowItem.tsx
|
|
2819
|
+
import { FaCircleCheck, FaCircleExclamation } from "react-icons/fa6";
|
|
2820
|
+
import styled33 from "styled-components";
|
|
2821
|
+
import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2822
|
+
var Container13 = styled33.div`
|
|
2570
2823
|
display: flex;
|
|
2571
2824
|
align-items: center ;
|
|
2572
2825
|
justify-content: space-between;
|
|
@@ -2574,35 +2827,39 @@ padding: ${spaces[2]} ${spaces[3]};
|
|
|
2574
2827
|
background-color: ${(props) => props.isComplete ? colors.background.blue : colors.background.light};
|
|
2575
2828
|
border-radius: ${radii.sm};
|
|
2576
2829
|
`;
|
|
2577
|
-
var Row =
|
|
2830
|
+
var Row = styled33.div`
|
|
2578
2831
|
display: flex;
|
|
2579
2832
|
align-items: center;
|
|
2580
2833
|
gap: ${spaces[2]};
|
|
2581
2834
|
`;
|
|
2582
2835
|
var OverviewRowItem = ({ isComplete, isMainHeader, title }) => {
|
|
2583
|
-
return /* @__PURE__ */
|
|
2584
|
-
/* @__PURE__ */
|
|
2585
|
-
/* @__PURE__ */
|
|
2586
|
-
/* @__PURE__ */
|
|
2587
|
-
isComplete ? /* @__PURE__ */
|
|
2836
|
+
return /* @__PURE__ */ jsxs27(Container13, { isComplete, children: [
|
|
2837
|
+
/* @__PURE__ */ jsx48(Header, { variant: isMainHeader ? "h2" : "h3", color: isComplete ? "secondary" : "primary", children: title }),
|
|
2838
|
+
/* @__PURE__ */ jsxs27(Row, { children: [
|
|
2839
|
+
/* @__PURE__ */ jsx48(Header, { variant: "h3", color: isComplete ? "secondary" : "primary", children: isComplete ? "Complete" : "Information Outstanding" }),
|
|
2840
|
+
isComplete ? /* @__PURE__ */ jsx48(FaCircleCheck, { color: colors.background.success }) : /* @__PURE__ */ jsx48(FaCircleExclamation, { color: colors.background.error })
|
|
2588
2841
|
] })
|
|
2589
2842
|
] });
|
|
2590
2843
|
};
|
|
2591
|
-
|
|
2844
|
+
|
|
2845
|
+
// src/molecules/PageLayout/PageLayout.tsx
|
|
2846
|
+
import styled34 from "styled-components";
|
|
2847
|
+
import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2848
|
+
var Container14 = styled34.div`
|
|
2592
2849
|
width: '100%';
|
|
2593
2850
|
min-height: '100vh';
|
|
2594
2851
|
padding-bottom: ${spaces[9]};
|
|
2595
2852
|
`;
|
|
2596
|
-
var HeaderContainer2 =
|
|
2853
|
+
var HeaderContainer2 = styled34.div`
|
|
2597
2854
|
padding: ${spaces[4.5]} ${spaces[6]};
|
|
2598
2855
|
display: flex;
|
|
2599
2856
|
align-items: center;
|
|
2600
2857
|
justify-content: space-between;
|
|
2601
2858
|
`;
|
|
2602
|
-
var ContentContainer2 =
|
|
2859
|
+
var ContentContainer2 = styled34.div`
|
|
2603
2860
|
border-top: 1px solid ${colors.border.hover};
|
|
2604
2861
|
`;
|
|
2605
|
-
var SpinnerContainer =
|
|
2862
|
+
var SpinnerContainer = styled34.div`
|
|
2606
2863
|
display: flex;
|
|
2607
2864
|
width: 100%;
|
|
2608
2865
|
padding: ${spaces[6]};
|
|
@@ -2615,17 +2872,27 @@ var PageLayout = ({
|
|
|
2615
2872
|
isLoading = false,
|
|
2616
2873
|
rightElement
|
|
2617
2874
|
}) => {
|
|
2618
|
-
return /* @__PURE__ */
|
|
2619
|
-
/* @__PURE__ */
|
|
2620
|
-
/* @__PURE__ */
|
|
2875
|
+
return /* @__PURE__ */ jsxs28(Container14, { children: [
|
|
2876
|
+
/* @__PURE__ */ jsxs28(HeaderContainer2, { children: [
|
|
2877
|
+
/* @__PURE__ */ jsx49(Header, { color: "subtle", children: title }),
|
|
2621
2878
|
" ",
|
|
2622
2879
|
rightElement && rightElement
|
|
2623
2880
|
] }),
|
|
2624
|
-
isLoading ? /* @__PURE__ */
|
|
2881
|
+
isLoading ? /* @__PURE__ */ jsx49(SpinnerContainer, { children: /* @__PURE__ */ jsx49(Spinner, {}) }) : /* @__PURE__ */ jsx49(ContentContainer2, { children })
|
|
2625
2882
|
] });
|
|
2626
2883
|
};
|
|
2884
|
+
|
|
2885
|
+
// src/molecules/PDFPreviewer/PDFPreviewer.tsx
|
|
2886
|
+
import { useEffect as useEffect6, useState as useState7 } from "react";
|
|
2887
|
+
import styled36 from "styled-components";
|
|
2888
|
+
|
|
2889
|
+
// src/molecules/EmptyState/EmptyState.tsx
|
|
2890
|
+
import { useMemo as useMemo6 } from "react";
|
|
2891
|
+
import { FaHouse, FaRegFolderOpen } from "react-icons/fa6";
|
|
2892
|
+
import styled35 from "styled-components";
|
|
2893
|
+
import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2627
2894
|
var variants11 = ["documents", "properties"];
|
|
2628
|
-
var Container15 =
|
|
2895
|
+
var Container15 = styled35.div`
|
|
2629
2896
|
display: flex;
|
|
2630
2897
|
flex-direction: column;
|
|
2631
2898
|
align-items: center;
|
|
@@ -2637,27 +2904,30 @@ var Container15 = styled39.div`
|
|
|
2637
2904
|
var EmptyState = ({ variant, message }) => {
|
|
2638
2905
|
const size = sizes.xl;
|
|
2639
2906
|
const color = colors.text.primary;
|
|
2640
|
-
const Icon =
|
|
2907
|
+
const Icon = useMemo6(() => {
|
|
2641
2908
|
switch (variant) {
|
|
2642
2909
|
case "documents":
|
|
2643
|
-
return /* @__PURE__ */
|
|
2910
|
+
return /* @__PURE__ */ jsx50(FaRegFolderOpen, { size, color });
|
|
2644
2911
|
case "properties":
|
|
2645
|
-
return /* @__PURE__ */
|
|
2912
|
+
return /* @__PURE__ */ jsx50(FaHouse, { size, color });
|
|
2646
2913
|
}
|
|
2647
2914
|
}, [variant]);
|
|
2648
|
-
return /* @__PURE__ */
|
|
2915
|
+
return /* @__PURE__ */ jsxs29(Container15, { children: [
|
|
2649
2916
|
Icon,
|
|
2650
|
-
/* @__PURE__ */
|
|
2917
|
+
/* @__PURE__ */ jsx50(Header, { variant: "h3", children: message })
|
|
2651
2918
|
] });
|
|
2652
2919
|
};
|
|
2653
2920
|
EmptyState.variants = variants11;
|
|
2654
|
-
|
|
2921
|
+
|
|
2922
|
+
// src/molecules/PDFPreviewer/PDFPreviewer.tsx
|
|
2923
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2924
|
+
var Container16 = styled36.div`
|
|
2655
2925
|
width: 100%;
|
|
2656
2926
|
height: 100%;
|
|
2657
2927
|
`;
|
|
2658
2928
|
var PDFPreviewer = ({ url }) => {
|
|
2659
|
-
const [error, setError] =
|
|
2660
|
-
|
|
2929
|
+
const [error, setError] = useState7(null);
|
|
2930
|
+
useEffect6(() => {
|
|
2661
2931
|
setError(null);
|
|
2662
2932
|
try {
|
|
2663
2933
|
new URL(url);
|
|
@@ -2666,8 +2936,8 @@ var PDFPreviewer = ({ url }) => {
|
|
|
2666
2936
|
}
|
|
2667
2937
|
}, [url]);
|
|
2668
2938
|
if (typeof error === "string")
|
|
2669
|
-
return /* @__PURE__ */
|
|
2670
|
-
return /* @__PURE__ */
|
|
2939
|
+
return /* @__PURE__ */ jsx51(EmptyState, { message: "Failed to load this document", variant: "documents" });
|
|
2940
|
+
return /* @__PURE__ */ jsx51(Container16, { children: /* @__PURE__ */ jsx51(
|
|
2671
2941
|
"iframe",
|
|
2672
2942
|
{
|
|
2673
2943
|
src: `${url}#view=FitH&toolbar=1&navpanes=0`,
|
|
@@ -2678,13 +2948,17 @@ var PDFPreviewer = ({ url }) => {
|
|
|
2678
2948
|
}
|
|
2679
2949
|
) });
|
|
2680
2950
|
};
|
|
2681
|
-
|
|
2951
|
+
|
|
2952
|
+
// src/molecules/ProductInfo/ProductInfo.tsx
|
|
2953
|
+
import styled37 from "styled-components";
|
|
2954
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2955
|
+
var Container17 = styled37.div`
|
|
2682
2956
|
display: flex;
|
|
2683
2957
|
gap: 1.5rem;
|
|
2684
2958
|
align-items: center;
|
|
2685
2959
|
max-width: 600px;
|
|
2686
2960
|
`;
|
|
2687
|
-
var ImageWrapper =
|
|
2961
|
+
var ImageWrapper = styled37.div`
|
|
2688
2962
|
flex-shrink: 0;
|
|
2689
2963
|
width: 180px;
|
|
2690
2964
|
height: 180px;
|
|
@@ -2697,12 +2971,12 @@ var ImageWrapper = styled39.div`
|
|
|
2697
2971
|
object-fit: cover;
|
|
2698
2972
|
}
|
|
2699
2973
|
`;
|
|
2700
|
-
var ContentWrapper =
|
|
2974
|
+
var ContentWrapper = styled37.div`
|
|
2701
2975
|
display: flex;
|
|
2702
2976
|
flex-direction: column;
|
|
2703
2977
|
gap: 1rem;
|
|
2704
2978
|
`;
|
|
2705
|
-
var LogoWrapper =
|
|
2979
|
+
var LogoWrapper = styled37.div`
|
|
2706
2980
|
max-width: 200px;
|
|
2707
2981
|
|
|
2708
2982
|
img {
|
|
@@ -2722,12 +2996,12 @@ var ProductInfo = ({
|
|
|
2722
2996
|
buttonTextBgVariant = "brand",
|
|
2723
2997
|
buttonTextVariant = "secondary"
|
|
2724
2998
|
}) => {
|
|
2725
|
-
return /* @__PURE__ */
|
|
2726
|
-
/* @__PURE__ */
|
|
2727
|
-
/* @__PURE__ */
|
|
2728
|
-
/* @__PURE__ */
|
|
2729
|
-
/* @__PURE__ */
|
|
2730
|
-
/* @__PURE__ */
|
|
2999
|
+
return /* @__PURE__ */ jsxs30(Container17, { children: [
|
|
3000
|
+
/* @__PURE__ */ jsx52(ImageWrapper, { children: /* @__PURE__ */ jsx52("img", { src: image, alt: "Product" }) }),
|
|
3001
|
+
/* @__PURE__ */ jsxs30(ContentWrapper, { children: [
|
|
3002
|
+
/* @__PURE__ */ jsx52(LogoWrapper, { children: /* @__PURE__ */ jsx52("img", { src: logoImage, alt: "Logo" }) }),
|
|
3003
|
+
/* @__PURE__ */ jsx52(Header, { variant: titleVariant, color: titleColor, children: title }),
|
|
3004
|
+
/* @__PURE__ */ jsx52(
|
|
2731
3005
|
ExtendedButton,
|
|
2732
3006
|
{
|
|
2733
3007
|
text: buttonText,
|
|
@@ -2740,15 +3014,19 @@ var ProductInfo = ({
|
|
|
2740
3014
|
] })
|
|
2741
3015
|
] });
|
|
2742
3016
|
};
|
|
2743
|
-
|
|
2744
|
-
|
|
3017
|
+
|
|
3018
|
+
// src/molecules/RadioGroup/RadioGroup.tsx
|
|
3019
|
+
import styled38 from "styled-components";
|
|
3020
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3021
|
+
var Container18 = styled38.div``;
|
|
3022
|
+
var OptionsContainer2 = styled38.div`
|
|
2745
3023
|
margin-top: ${spaces[2]};
|
|
2746
3024
|
display: flex;
|
|
2747
3025
|
flex-direction: row;
|
|
2748
3026
|
flex: 1;
|
|
2749
3027
|
gap: ${spaces[2]};
|
|
2750
3028
|
`;
|
|
2751
|
-
var LabelContainer =
|
|
3029
|
+
var LabelContainer = styled38.div`
|
|
2752
3030
|
padding-left: ${spaces[1]};
|
|
2753
3031
|
`;
|
|
2754
3032
|
var RadioGroup = ({
|
|
@@ -2758,9 +3036,9 @@ var RadioGroup = ({
|
|
|
2758
3036
|
onClick,
|
|
2759
3037
|
className
|
|
2760
3038
|
}) => {
|
|
2761
|
-
return /* @__PURE__ */
|
|
2762
|
-
typeof label === "string" && /* @__PURE__ */
|
|
2763
|
-
/* @__PURE__ */
|
|
3039
|
+
return /* @__PURE__ */ jsxs31(Container18, { className, children: [
|
|
3040
|
+
typeof label === "string" && /* @__PURE__ */ jsx53(LabelContainer, { children: /* @__PURE__ */ jsx53(Label, { value: label, fontWeight: "600" }) }),
|
|
3041
|
+
/* @__PURE__ */ jsx53(OptionsContainer2, { children: options.map((option, idx) => /* @__PURE__ */ jsx53(
|
|
2764
3042
|
RadioItem,
|
|
2765
3043
|
{
|
|
2766
3044
|
isSelected: value === option.value,
|
|
@@ -2772,6 +3050,11 @@ var RadioGroup = ({
|
|
|
2772
3050
|
)) })
|
|
2773
3051
|
] });
|
|
2774
3052
|
};
|
|
3053
|
+
|
|
3054
|
+
// src/molecules/RatesChart/RatesChart.tsx
|
|
3055
|
+
import { HiX } from "react-icons/hi";
|
|
3056
|
+
import styled39 from "styled-components";
|
|
3057
|
+
import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2775
3058
|
var variants12 = ["primary", "secondary", "subtle"];
|
|
2776
3059
|
var Overlay2 = styled39.div`
|
|
2777
3060
|
position: fixed;
|
|
@@ -2894,25 +3177,29 @@ var RatesChart = ({
|
|
|
2894
3177
|
return "brand";
|
|
2895
3178
|
}
|
|
2896
3179
|
};
|
|
2897
|
-
return /* @__PURE__ */
|
|
2898
|
-
/* @__PURE__ */
|
|
2899
|
-
/* @__PURE__ */
|
|
2900
|
-
/* @__PURE__ */
|
|
3180
|
+
return /* @__PURE__ */ jsx54(Overlay2, { onClick: onClose, children: /* @__PURE__ */ jsxs32(ChartContainer, { onClick: (e) => e.stopPropagation(), children: [
|
|
3181
|
+
/* @__PURE__ */ jsxs32(HeaderSection, { children: [
|
|
3182
|
+
/* @__PURE__ */ jsx54(Header, { variant: "h2", color: getHeaderColor(), children: title }),
|
|
3183
|
+
/* @__PURE__ */ jsx54(CloseButton, { onClick: onClose, variant, children: /* @__PURE__ */ jsx54(HiX, { size: 20 }) })
|
|
2901
3184
|
] }),
|
|
2902
|
-
/* @__PURE__ */
|
|
2903
|
-
/* @__PURE__ */
|
|
2904
|
-
/* @__PURE__ */
|
|
2905
|
-
/* @__PURE__ */
|
|
3185
|
+
/* @__PURE__ */ jsxs32(Table2, { children: [
|
|
3186
|
+
/* @__PURE__ */ jsx54(TableHeader2, { children: /* @__PURE__ */ jsxs32("tr", { children: [
|
|
3187
|
+
/* @__PURE__ */ jsx54(TableHeaderCell, { variant, children: "Transaction type" }),
|
|
3188
|
+
/* @__PURE__ */ jsx54(TableHeaderCell, { variant, children: "Price" })
|
|
2906
3189
|
] }) }),
|
|
2907
|
-
/* @__PURE__ */
|
|
2908
|
-
/* @__PURE__ */
|
|
2909
|
-
/* @__PURE__ */
|
|
3190
|
+
/* @__PURE__ */ jsx54(TableBody, { children: rates.map((rate, index) => /* @__PURE__ */ jsxs32(TableRow2, { children: [
|
|
3191
|
+
/* @__PURE__ */ jsx54(TableCell, { variant, children: rate.transactionType }),
|
|
3192
|
+
/* @__PURE__ */ jsx54(TableCell, { variant, children: rate.price })
|
|
2910
3193
|
] }, index)) })
|
|
2911
3194
|
] })
|
|
2912
3195
|
] }) });
|
|
2913
3196
|
};
|
|
2914
3197
|
RatesChart.variants = variants12;
|
|
2915
|
-
|
|
3198
|
+
|
|
3199
|
+
// src/molecules/SideNav/SideNav.tsx
|
|
3200
|
+
import styled40 from "styled-components";
|
|
3201
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3202
|
+
var StyledNav = styled40.nav`
|
|
2916
3203
|
width: 195px;
|
|
2917
3204
|
background-color: #ffffff;
|
|
2918
3205
|
border-right: 1px solid #e5e7eb;
|
|
@@ -2922,17 +3209,17 @@ var StyledNav = styled39.nav`
|
|
|
2922
3209
|
height: 100vh;
|
|
2923
3210
|
padding-bottom: 15px;
|
|
2924
3211
|
`;
|
|
2925
|
-
var NavList =
|
|
3212
|
+
var NavList = styled40.ul`
|
|
2926
3213
|
display: flex;
|
|
2927
3214
|
flex-direction: column;
|
|
2928
3215
|
list-style: none;
|
|
2929
3216
|
margin: 0;
|
|
2930
3217
|
padding: 0;
|
|
2931
3218
|
`;
|
|
2932
|
-
var NavItem =
|
|
3219
|
+
var NavItem = styled40.li`
|
|
2933
3220
|
display: flex;
|
|
2934
3221
|
`;
|
|
2935
|
-
var NavLink =
|
|
3222
|
+
var NavLink = styled40.a`
|
|
2936
3223
|
display: flex;
|
|
2937
3224
|
align-items: center;
|
|
2938
3225
|
text-decoration: none;
|
|
@@ -2945,7 +3232,7 @@ var NavLink = styled39.a`
|
|
|
2945
3232
|
}
|
|
2946
3233
|
`}
|
|
2947
3234
|
`;
|
|
2948
|
-
var ActiveTriangle =
|
|
3235
|
+
var ActiveTriangle = styled40.div`
|
|
2949
3236
|
width: 0;
|
|
2950
3237
|
height: 0;
|
|
2951
3238
|
border-top: 4px solid transparent;
|
|
@@ -2954,17 +3241,17 @@ var ActiveTriangle = styled39.div`
|
|
|
2954
3241
|
flex-shrink: 0;
|
|
2955
3242
|
margin-left: 1.5rem;
|
|
2956
3243
|
`;
|
|
2957
|
-
var InactiveSpacer =
|
|
3244
|
+
var InactiveSpacer = styled40.span`
|
|
2958
3245
|
width: 6px;
|
|
2959
3246
|
margin-right: 0.5rem;
|
|
2960
3247
|
flex-shrink: 0;
|
|
2961
3248
|
`;
|
|
2962
|
-
var Divider =
|
|
3249
|
+
var Divider = styled40.div`
|
|
2963
3250
|
height: 1px;
|
|
2964
3251
|
background-color: ${(props) => colors.border[props.dividerColor]};
|
|
2965
3252
|
margin: 1rem;
|
|
2966
3253
|
`;
|
|
2967
|
-
var Spacer =
|
|
3254
|
+
var Spacer = styled40.div`
|
|
2968
3255
|
flex-grow: 1;
|
|
2969
3256
|
`;
|
|
2970
3257
|
var SideNav = ({
|
|
@@ -2980,13 +3267,13 @@ var SideNav = ({
|
|
|
2980
3267
|
backToTopBgVariant = "transparent",
|
|
2981
3268
|
backToTopTextVariant = "subtle"
|
|
2982
3269
|
}) => {
|
|
2983
|
-
return /* @__PURE__ */
|
|
2984
|
-
/* @__PURE__ */
|
|
2985
|
-
/* @__PURE__ */
|
|
3270
|
+
return /* @__PURE__ */ jsxs33(StyledNav, { children: [
|
|
3271
|
+
/* @__PURE__ */ jsx55(Spacer, {}),
|
|
3272
|
+
/* @__PURE__ */ jsx55(NavList, { children: items.map((item) => {
|
|
2986
3273
|
const isActive = activeItem === item.href;
|
|
2987
|
-
return /* @__PURE__ */
|
|
2988
|
-
isActive ? /* @__PURE__ */
|
|
2989
|
-
/* @__PURE__ */
|
|
3274
|
+
return /* @__PURE__ */ jsx55(NavItem, { children: /* @__PURE__ */ jsxs33(NavLink, { href: item.href, $isActive: isActive, children: [
|
|
3275
|
+
isActive ? /* @__PURE__ */ jsx55(ActiveTriangle, { triangleColor }) : /* @__PURE__ */ jsx55(InactiveSpacer, {}),
|
|
3276
|
+
/* @__PURE__ */ jsx55(
|
|
2990
3277
|
TextButton,
|
|
2991
3278
|
{
|
|
2992
3279
|
asChild: true,
|
|
@@ -2999,9 +3286,9 @@ var SideNav = ({
|
|
|
2999
3286
|
)
|
|
3000
3287
|
] }) }, item.href);
|
|
3001
3288
|
}) }),
|
|
3002
|
-
/* @__PURE__ */
|
|
3003
|
-
/* @__PURE__ */
|
|
3004
|
-
/* @__PURE__ */
|
|
3289
|
+
/* @__PURE__ */ jsx55(Divider, { dividerColor }),
|
|
3290
|
+
/* @__PURE__ */ jsx55(Spacer, {}),
|
|
3291
|
+
/* @__PURE__ */ jsx55(
|
|
3005
3292
|
TextButton,
|
|
3006
3293
|
{
|
|
3007
3294
|
text: "Back to top",
|
|
@@ -3013,7 +3300,12 @@ var SideNav = ({
|
|
|
3013
3300
|
)
|
|
3014
3301
|
] });
|
|
3015
3302
|
};
|
|
3016
|
-
|
|
3303
|
+
|
|
3304
|
+
// src/molecules/SidePanel/SidePanel.tsx
|
|
3305
|
+
import { HiX as HiX2 } from "react-icons/hi";
|
|
3306
|
+
import styled41 from "styled-components";
|
|
3307
|
+
import { jsx as jsx56, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3308
|
+
var Overlay3 = styled41.div`
|
|
3017
3309
|
position: fixed;
|
|
3018
3310
|
top: 0;
|
|
3019
3311
|
left: 0;
|
|
@@ -3024,7 +3316,7 @@ var Overlay3 = styled39.div`
|
|
|
3024
3316
|
justify-content: flex-end;
|
|
3025
3317
|
z-index: 1000;
|
|
3026
3318
|
`;
|
|
3027
|
-
var PanelContainer =
|
|
3319
|
+
var PanelContainer = styled41.div`
|
|
3028
3320
|
background-color: #ffffff;
|
|
3029
3321
|
width: 100%;
|
|
3030
3322
|
max-width: 400px;
|
|
@@ -3038,7 +3330,7 @@ var PanelContainer = styled39.div`
|
|
|
3038
3330
|
transition: transform 0.3s ease-in-out;
|
|
3039
3331
|
overflow-y: auto;
|
|
3040
3332
|
`;
|
|
3041
|
-
var CloseButton2 =
|
|
3333
|
+
var CloseButton2 = styled41.button`
|
|
3042
3334
|
position: absolute;
|
|
3043
3335
|
top: 1.5rem;
|
|
3044
3336
|
right: 1.5rem;
|
|
@@ -3059,7 +3351,7 @@ var CloseButton2 = styled39.button`
|
|
|
3059
3351
|
opacity: 0.8;
|
|
3060
3352
|
}
|
|
3061
3353
|
`;
|
|
3062
|
-
var IconWrapper2 =
|
|
3354
|
+
var IconWrapper2 = styled41.div`
|
|
3063
3355
|
width: 100%;
|
|
3064
3356
|
display: flex;
|
|
3065
3357
|
justify-content: center;
|
|
@@ -3076,7 +3368,7 @@ var IconWrapper2 = styled39.div`
|
|
|
3076
3368
|
object-fit: contain;
|
|
3077
3369
|
}
|
|
3078
3370
|
`;
|
|
3079
|
-
var ContentWrapper2 =
|
|
3371
|
+
var ContentWrapper2 = styled41.div`
|
|
3080
3372
|
display: flex;
|
|
3081
3373
|
flex-direction: column;
|
|
3082
3374
|
gap: 1.5rem;
|
|
@@ -3096,13 +3388,13 @@ var SidePanel = ({
|
|
|
3096
3388
|
buttonTextBgVariant = "brand",
|
|
3097
3389
|
buttonTextVariant = "secondary"
|
|
3098
3390
|
}) => {
|
|
3099
|
-
return /* @__PURE__ */
|
|
3100
|
-
/* @__PURE__ */
|
|
3101
|
-
/* @__PURE__ */
|
|
3102
|
-
/* @__PURE__ */
|
|
3103
|
-
/* @__PURE__ */
|
|
3104
|
-
/* @__PURE__ */
|
|
3105
|
-
/* @__PURE__ */
|
|
3391
|
+
return /* @__PURE__ */ jsx56(Overlay3, { $isOpen: isOpen, onClick: onClose, children: /* @__PURE__ */ jsxs34(PanelContainer, { $isOpen: isOpen, onClick: (e) => e.stopPropagation(), children: [
|
|
3392
|
+
/* @__PURE__ */ jsx56(CloseButton2, { onClick: onClose, closeButtonBgColor, children: /* @__PURE__ */ jsx56(HiX2, { size: 24 }) }),
|
|
3393
|
+
/* @__PURE__ */ jsx56(IconWrapper2, { children: icon }),
|
|
3394
|
+
/* @__PURE__ */ jsxs34(ContentWrapper2, { children: [
|
|
3395
|
+
/* @__PURE__ */ jsx56(Header, { variant: "h2", color: titleColor, children: title }),
|
|
3396
|
+
/* @__PURE__ */ jsx56(Description, { variant: descriptionVariant, children: description }),
|
|
3397
|
+
/* @__PURE__ */ jsx56(
|
|
3106
3398
|
ExtendedButton,
|
|
3107
3399
|
{
|
|
3108
3400
|
text: buttonText,
|
|
@@ -3115,7 +3407,11 @@ var SidePanel = ({
|
|
|
3115
3407
|
] })
|
|
3116
3408
|
] }) });
|
|
3117
3409
|
};
|
|
3118
|
-
|
|
3410
|
+
|
|
3411
|
+
// src/molecules/StepperHeaderTab/StepperHeaderTab.tsx
|
|
3412
|
+
import styled42 from "styled-components";
|
|
3413
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
3414
|
+
var Container19 = styled42.div`
|
|
3119
3415
|
width: 100%;
|
|
3120
3416
|
background-color: ${(props) => props.isSelected ? colors.background.blue : colors.background.primary};
|
|
3121
3417
|
border: 1px solid ${colors.background.blue};
|
|
@@ -3126,7 +3422,7 @@ var Container19 = styled39.div`
|
|
|
3126
3422
|
padding: ${spaces[2]} ${spaces[3]};
|
|
3127
3423
|
cursor: pointer;
|
|
3128
3424
|
`;
|
|
3129
|
-
var StyledLabel2 =
|
|
3425
|
+
var StyledLabel2 = styled42.span`
|
|
3130
3426
|
color: ${(props) => props.isSelected ? colors.text.secondary : colors.text.blue};
|
|
3131
3427
|
font-size: ${sizes.sm};
|
|
3132
3428
|
font-weight: 700;
|
|
@@ -3136,15 +3432,19 @@ var StepperHeaderTab = ({
|
|
|
3136
3432
|
isSelected,
|
|
3137
3433
|
onClick
|
|
3138
3434
|
}) => {
|
|
3139
|
-
return /* @__PURE__ */
|
|
3435
|
+
return /* @__PURE__ */ jsx57(Container19, { isSelected, onClick, children: /* @__PURE__ */ jsx57(StyledLabel2, { isSelected, children: title }) });
|
|
3140
3436
|
};
|
|
3437
|
+
|
|
3438
|
+
// src/molecules/Textarea/Textarea.tsx
|
|
3439
|
+
import { useMemo as useMemo7 } from "react";
|
|
3440
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3141
3441
|
var Textarea2 = ({ label, error, ...rest }) => {
|
|
3142
|
-
const isInvalid =
|
|
3442
|
+
const isInvalid = useMemo7(
|
|
3143
3443
|
() => typeof error === "string" && error.length > 0,
|
|
3144
3444
|
[error]
|
|
3145
3445
|
);
|
|
3146
|
-
return /* @__PURE__ */
|
|
3147
|
-
typeof label === "string" && /* @__PURE__ */
|
|
3446
|
+
return /* @__PURE__ */ jsxs35(InputContainer, { children: [
|
|
3447
|
+
typeof label === "string" && /* @__PURE__ */ jsx58(
|
|
3148
3448
|
FloatingLabel,
|
|
3149
3449
|
{
|
|
3150
3450
|
color: isInvalid ? "error" : "subtle",
|
|
@@ -3152,10 +3452,14 @@ var Textarea2 = ({ label, error, ...rest }) => {
|
|
|
3152
3452
|
fontWeight: "600"
|
|
3153
3453
|
}
|
|
3154
3454
|
),
|
|
3155
|
-
/* @__PURE__ */
|
|
3455
|
+
/* @__PURE__ */ jsx58(Textarea, { ...rest })
|
|
3156
3456
|
] });
|
|
3157
3457
|
};
|
|
3158
|
-
|
|
3458
|
+
|
|
3459
|
+
// src/organism/ContactForm/ContactForm.tsx
|
|
3460
|
+
import styled43 from "styled-components";
|
|
3461
|
+
import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3462
|
+
var Container20 = styled43.div`
|
|
3159
3463
|
display: flex;
|
|
3160
3464
|
flex-direction: column;
|
|
3161
3465
|
gap: ${spaces[4]};
|
|
@@ -3163,7 +3467,7 @@ var Container20 = styled39.div`
|
|
|
3163
3467
|
gap: ${spaces[2]};
|
|
3164
3468
|
}
|
|
3165
3469
|
`;
|
|
3166
|
-
var NameContainer =
|
|
3470
|
+
var NameContainer = styled43.div`
|
|
3167
3471
|
display: flex;
|
|
3168
3472
|
gap: ${spaces[4]};
|
|
3169
3473
|
@media (max-width: ${breakpoints.sm}) {
|
|
@@ -3172,9 +3476,9 @@ var NameContainer = styled39.div`
|
|
|
3172
3476
|
flex: 1;
|
|
3173
3477
|
`;
|
|
3174
3478
|
var ContactForm = ({}) => {
|
|
3175
|
-
return /* @__PURE__ */
|
|
3176
|
-
/* @__PURE__ */
|
|
3177
|
-
/* @__PURE__ */
|
|
3479
|
+
return /* @__PURE__ */ jsxs36(Container20, { children: [
|
|
3480
|
+
/* @__PURE__ */ jsxs36(NameContainer, { children: [
|
|
3481
|
+
/* @__PURE__ */ jsx59(
|
|
3178
3482
|
SecondaryInput,
|
|
3179
3483
|
{
|
|
3180
3484
|
name: "firstName",
|
|
@@ -3183,7 +3487,7 @@ var ContactForm = ({}) => {
|
|
|
3183
3487
|
placeholder: "First name"
|
|
3184
3488
|
}
|
|
3185
3489
|
),
|
|
3186
|
-
/* @__PURE__ */
|
|
3490
|
+
/* @__PURE__ */ jsx59(
|
|
3187
3491
|
SecondaryInput,
|
|
3188
3492
|
{
|
|
3189
3493
|
name: "lastName",
|
|
@@ -3193,10 +3497,10 @@ var ContactForm = ({}) => {
|
|
|
3193
3497
|
}
|
|
3194
3498
|
)
|
|
3195
3499
|
] }),
|
|
3196
|
-
/* @__PURE__ */
|
|
3197
|
-
/* @__PURE__ */
|
|
3198
|
-
/* @__PURE__ */
|
|
3199
|
-
/* @__PURE__ */
|
|
3500
|
+
/* @__PURE__ */ jsx59(SecondaryInput, { name: "company", label: "Company", placeholder: "Company" }),
|
|
3501
|
+
/* @__PURE__ */ jsx59(SecondaryInput, { name: "email", label: "Email", placeholder: "Email", required: true }),
|
|
3502
|
+
/* @__PURE__ */ jsx59(SecondaryInput, { name: "phone", label: "Phone number", placeholder: "Phone number" }),
|
|
3503
|
+
/* @__PURE__ */ jsx59(
|
|
3200
3504
|
SecondaryInput,
|
|
3201
3505
|
{
|
|
3202
3506
|
name: "message",
|
|
@@ -3208,7 +3512,15 @@ var ContactForm = ({}) => {
|
|
|
3208
3512
|
)
|
|
3209
3513
|
] });
|
|
3210
3514
|
};
|
|
3211
|
-
|
|
3515
|
+
|
|
3516
|
+
// src/organism/DocumentListAccordion/DocumentListAccordion.tsx
|
|
3517
|
+
import styled46 from "styled-components";
|
|
3518
|
+
|
|
3519
|
+
// src/molecules/DocumentAccordionHeader/DocumentAccordionHeader.tsx
|
|
3520
|
+
import { FaCaretDown, FaCaretUp } from "react-icons/fa6";
|
|
3521
|
+
import styled44 from "styled-components";
|
|
3522
|
+
import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
3523
|
+
var Container21 = styled44.div`
|
|
3212
3524
|
display: flex;
|
|
3213
3525
|
width: ${`${100 / 4}%`};
|
|
3214
3526
|
overflow: scroll;
|
|
@@ -3225,7 +3537,7 @@ var Container21 = styled39.div`
|
|
|
3225
3537
|
-ms-overflow-style: none;
|
|
3226
3538
|
scrollbar-width: none;
|
|
3227
3539
|
`;
|
|
3228
|
-
var IconContainer =
|
|
3540
|
+
var IconContainer = styled44.div`
|
|
3229
3541
|
display: flex;
|
|
3230
3542
|
flex-direction: column;
|
|
3231
3543
|
align-items: center;
|
|
@@ -3235,15 +3547,19 @@ var DocumentAccordionHeader = ({
|
|
|
3235
3547
|
onClick,
|
|
3236
3548
|
title
|
|
3237
3549
|
}) => {
|
|
3238
|
-
return /* @__PURE__ */
|
|
3239
|
-
/* @__PURE__ */
|
|
3240
|
-
onClick && /* @__PURE__ */
|
|
3241
|
-
/* @__PURE__ */
|
|
3242
|
-
/* @__PURE__ */
|
|
3550
|
+
return /* @__PURE__ */ jsxs37(Container21, { onClick, children: [
|
|
3551
|
+
/* @__PURE__ */ jsx60(Text2, { children: title }),
|
|
3552
|
+
onClick && /* @__PURE__ */ jsxs37(IconContainer, { children: [
|
|
3553
|
+
/* @__PURE__ */ jsx60(FaCaretUp, { size: 10 }),
|
|
3554
|
+
/* @__PURE__ */ jsx60(FaCaretDown, { size: 10 })
|
|
3243
3555
|
] })
|
|
3244
3556
|
] });
|
|
3245
3557
|
};
|
|
3246
|
-
|
|
3558
|
+
|
|
3559
|
+
// src/molecules/DocumentAccordionRow/DocumentAccordionRow.tsx
|
|
3560
|
+
import styled45 from "styled-components";
|
|
3561
|
+
import { Fragment as Fragment9, jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
3562
|
+
var ItemContainer = styled45.div`
|
|
3247
3563
|
display: flex;
|
|
3248
3564
|
align-items: center;
|
|
3249
3565
|
cursor: ${(props) => props?.onClick ? "pointer" : "auto"};
|
|
@@ -3264,10 +3580,10 @@ var DocumentAccordionRow = ({
|
|
|
3264
3580
|
file,
|
|
3265
3581
|
onViewDetail
|
|
3266
3582
|
}) => {
|
|
3267
|
-
return /* @__PURE__ */
|
|
3268
|
-
/* @__PURE__ */
|
|
3269
|
-
/* @__PURE__ */
|
|
3270
|
-
/* @__PURE__ */
|
|
3583
|
+
return /* @__PURE__ */ jsxs38(Fragment9, { children: [
|
|
3584
|
+
/* @__PURE__ */ jsx61(ItemContainer, { children: /* @__PURE__ */ jsx61(Label, { value: file.name, color: "brand" }) }),
|
|
3585
|
+
/* @__PURE__ */ jsx61(ItemContainer, { children: /* @__PURE__ */ jsx61(Label, { value: file.sourceFile, color: "primary" }) }),
|
|
3586
|
+
/* @__PURE__ */ jsx61(ItemContainer, { children: /* @__PURE__ */ jsx61(
|
|
3271
3587
|
Label,
|
|
3272
3588
|
{
|
|
3273
3589
|
value: typeof file.status === "string" ? file.status : "-",
|
|
@@ -3275,7 +3591,7 @@ var DocumentAccordionRow = ({
|
|
|
3275
3591
|
fontWeight: "700"
|
|
3276
3592
|
}
|
|
3277
3593
|
) }),
|
|
3278
|
-
/* @__PURE__ */
|
|
3594
|
+
/* @__PURE__ */ jsx61(ItemContainer, { children: /* @__PURE__ */ jsx61(
|
|
3279
3595
|
Label,
|
|
3280
3596
|
{
|
|
3281
3597
|
value: typeof file.createdAt === "string" ? file.createdAt : "-",
|
|
@@ -3283,17 +3599,20 @@ var DocumentAccordionRow = ({
|
|
|
3283
3599
|
fontWeight: "700"
|
|
3284
3600
|
}
|
|
3285
3601
|
) }),
|
|
3286
|
-
/* @__PURE__ */
|
|
3602
|
+
/* @__PURE__ */ jsx61(ItemContainer, { onClick: onViewDetail, children: /* @__PURE__ */ jsx61(Label, { value: "View Details", color: "brand", fontWeight: "700" }) })
|
|
3287
3603
|
] });
|
|
3288
3604
|
};
|
|
3289
|
-
|
|
3605
|
+
|
|
3606
|
+
// src/organism/DocumentListAccordion/DocumentListAccordion.tsx
|
|
3607
|
+
import { jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
3608
|
+
var HeadersContainer = styled46.div`
|
|
3290
3609
|
width: 100%;
|
|
3291
3610
|
display: flex;
|
|
3292
3611
|
flex-direction: row;
|
|
3293
3612
|
align-items: center;
|
|
3294
3613
|
gap: ${spaces[6]};
|
|
3295
3614
|
`;
|
|
3296
|
-
var Container22 =
|
|
3615
|
+
var Container22 = styled46.div`
|
|
3297
3616
|
display: flex;
|
|
3298
3617
|
flex-direction: column;
|
|
3299
3618
|
gap: ${spaces[3]};
|
|
@@ -3309,10 +3628,10 @@ var DocumentListAccordion = ({
|
|
|
3309
3628
|
const onClick = (accessor) => {
|
|
3310
3629
|
onSortBy && onSortBy(accessor);
|
|
3311
3630
|
};
|
|
3312
|
-
return /* @__PURE__ */
|
|
3631
|
+
return /* @__PURE__ */ jsx62(
|
|
3313
3632
|
Accordion,
|
|
3314
3633
|
{
|
|
3315
|
-
rightElement: /* @__PURE__ */
|
|
3634
|
+
rightElement: /* @__PURE__ */ jsx62(
|
|
3316
3635
|
FileButton,
|
|
3317
3636
|
{
|
|
3318
3637
|
onFileSelect,
|
|
@@ -3321,46 +3640,46 @@ var DocumentListAccordion = ({
|
|
|
3321
3640
|
}
|
|
3322
3641
|
),
|
|
3323
3642
|
title,
|
|
3324
|
-
children: /* @__PURE__ */
|
|
3325
|
-
/* @__PURE__ */
|
|
3326
|
-
/* @__PURE__ */
|
|
3643
|
+
children: /* @__PURE__ */ jsxs39(Container22, { children: [
|
|
3644
|
+
/* @__PURE__ */ jsxs39(HeadersContainer, { children: [
|
|
3645
|
+
/* @__PURE__ */ jsx62(
|
|
3327
3646
|
DocumentAccordionHeader,
|
|
3328
3647
|
{
|
|
3329
3648
|
title: "File Name",
|
|
3330
3649
|
onClick: () => onClick("name")
|
|
3331
3650
|
}
|
|
3332
3651
|
),
|
|
3333
|
-
/* @__PURE__ */
|
|
3652
|
+
/* @__PURE__ */ jsx62(
|
|
3334
3653
|
DocumentAccordionHeader,
|
|
3335
3654
|
{
|
|
3336
3655
|
title: "Source File Name",
|
|
3337
3656
|
onClick: () => onClick("status")
|
|
3338
3657
|
}
|
|
3339
3658
|
),
|
|
3340
|
-
/* @__PURE__ */
|
|
3659
|
+
/* @__PURE__ */ jsx62(
|
|
3341
3660
|
DocumentAccordionHeader,
|
|
3342
3661
|
{
|
|
3343
3662
|
title: "File Status",
|
|
3344
3663
|
onClick: () => onClick("status")
|
|
3345
3664
|
}
|
|
3346
3665
|
),
|
|
3347
|
-
/* @__PURE__ */
|
|
3666
|
+
/* @__PURE__ */ jsx62(
|
|
3348
3667
|
DocumentAccordionHeader,
|
|
3349
3668
|
{
|
|
3350
3669
|
title: "Date Created",
|
|
3351
3670
|
onClick: () => onClick("createdAt")
|
|
3352
3671
|
}
|
|
3353
3672
|
),
|
|
3354
|
-
/* @__PURE__ */
|
|
3673
|
+
/* @__PURE__ */ jsx62(DocumentAccordionHeader, { title: "File Options" })
|
|
3355
3674
|
] }),
|
|
3356
|
-
files?.length === 0 && /* @__PURE__ */
|
|
3675
|
+
files?.length === 0 && /* @__PURE__ */ jsx62(
|
|
3357
3676
|
EmptyState,
|
|
3358
3677
|
{
|
|
3359
3678
|
message: "No documents have been added to this record",
|
|
3360
3679
|
variant: "documents"
|
|
3361
3680
|
}
|
|
3362
3681
|
),
|
|
3363
|
-
files?.length > 0 && files.map((file) => /* @__PURE__ */
|
|
3682
|
+
files?.length > 0 && files.map((file) => /* @__PURE__ */ jsx62(HeadersContainer, { children: /* @__PURE__ */ jsx62(
|
|
3364
3683
|
DocumentAccordionRow,
|
|
3365
3684
|
{
|
|
3366
3685
|
file,
|
|
@@ -3371,33 +3690,39 @@ var DocumentListAccordion = ({
|
|
|
3371
3690
|
}
|
|
3372
3691
|
);
|
|
3373
3692
|
};
|
|
3374
|
-
|
|
3693
|
+
|
|
3694
|
+
// src/organism/FeatureCarousel/FeatureCarousel.tsx
|
|
3695
|
+
import { useState as useState8 } from "react";
|
|
3696
|
+
import { HiArrowLeft, HiArrowRight } from "react-icons/hi2";
|
|
3697
|
+
import styled47 from "styled-components";
|
|
3698
|
+
import { jsx as jsx63, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
3699
|
+
var CarouselContainer = styled47.div`
|
|
3375
3700
|
width: 1000px;
|
|
3376
3701
|
overflow: hidden;
|
|
3377
3702
|
position: relative;
|
|
3378
3703
|
margin: 0 auto;
|
|
3379
3704
|
`;
|
|
3380
|
-
var CardsWrapper =
|
|
3705
|
+
var CardsWrapper = styled47.div`
|
|
3381
3706
|
display: flex;
|
|
3382
3707
|
gap: 1.5rem;
|
|
3383
3708
|
overflow-x: hidden;
|
|
3384
3709
|
scroll-behavior: smooth;
|
|
3385
3710
|
padding: 1rem 0;
|
|
3386
3711
|
`;
|
|
3387
|
-
var CardContainer =
|
|
3712
|
+
var CardContainer = styled47.div`
|
|
3388
3713
|
display: flex;
|
|
3389
3714
|
gap: 1.5rem;
|
|
3390
3715
|
transform: translateX(${(props) => props.$translateX}px);
|
|
3391
3716
|
transition: transform 0.3s ease-in-out;
|
|
3392
3717
|
`;
|
|
3393
|
-
var NavigationWrapper =
|
|
3718
|
+
var NavigationWrapper = styled47.div`
|
|
3394
3719
|
display: flex;
|
|
3395
3720
|
justify-content: left;
|
|
3396
3721
|
align-items: center;
|
|
3397
3722
|
gap: 1rem;
|
|
3398
3723
|
margin-top: 1.5rem;
|
|
3399
3724
|
`;
|
|
3400
|
-
var NavButton =
|
|
3725
|
+
var NavButton = styled47.button`
|
|
3401
3726
|
width: 2.5rem;
|
|
3402
3727
|
height: 2.5rem;
|
|
3403
3728
|
border-radius: 50%;
|
|
@@ -3414,11 +3739,11 @@ var NavButton = styled39.button`
|
|
|
3414
3739
|
opacity: ${(props) => props.$disabled ? 1 : 0.8};
|
|
3415
3740
|
}
|
|
3416
3741
|
`;
|
|
3417
|
-
var Indicators =
|
|
3742
|
+
var Indicators = styled47.div`
|
|
3418
3743
|
display: flex;
|
|
3419
3744
|
gap: 0.5rem;
|
|
3420
3745
|
`;
|
|
3421
|
-
var Indicator =
|
|
3746
|
+
var Indicator = styled47.div`
|
|
3422
3747
|
width: 0.5rem;
|
|
3423
3748
|
height: 0.5rem;
|
|
3424
3749
|
border-radius: 50%;
|
|
@@ -3434,7 +3759,7 @@ var FeatureCarousel = ({
|
|
|
3434
3759
|
navButtonColor = "brand",
|
|
3435
3760
|
indicatorColor = "brand"
|
|
3436
3761
|
}) => {
|
|
3437
|
-
const [currentIndex, setCurrentIndex] =
|
|
3762
|
+
const [currentIndex, setCurrentIndex] = useState8(0);
|
|
3438
3763
|
const cardWidth = 284;
|
|
3439
3764
|
const gap = 24;
|
|
3440
3765
|
const cardsToShow = 3;
|
|
@@ -3446,8 +3771,8 @@ var FeatureCarousel = ({
|
|
|
3446
3771
|
setCurrentIndex((prev) => Math.min(maxIndex, prev + 1));
|
|
3447
3772
|
};
|
|
3448
3773
|
const translateX = -currentIndex * (cardWidth + gap);
|
|
3449
|
-
return /* @__PURE__ */
|
|
3450
|
-
/* @__PURE__ */
|
|
3774
|
+
return /* @__PURE__ */ jsxs40(CarouselContainer, { children: [
|
|
3775
|
+
/* @__PURE__ */ jsx63(CardsWrapper, { children: /* @__PURE__ */ jsx63(CardContainer, { $translateX: translateX, children: cards.map((card, index) => /* @__PURE__ */ jsx63(
|
|
3451
3776
|
ContentCard,
|
|
3452
3777
|
{
|
|
3453
3778
|
thumbnail: card.thumbnail,
|
|
@@ -3461,17 +3786,17 @@ var FeatureCarousel = ({
|
|
|
3461
3786
|
},
|
|
3462
3787
|
index
|
|
3463
3788
|
)) }) }),
|
|
3464
|
-
/* @__PURE__ */
|
|
3465
|
-
/* @__PURE__ */
|
|
3789
|
+
/* @__PURE__ */ jsxs40(NavigationWrapper, { children: [
|
|
3790
|
+
/* @__PURE__ */ jsx63(
|
|
3466
3791
|
NavButton,
|
|
3467
3792
|
{
|
|
3468
3793
|
onClick: handlePrev,
|
|
3469
3794
|
$disabled: currentIndex === 0,
|
|
3470
3795
|
navColor: navButtonColor,
|
|
3471
|
-
children: /* @__PURE__ */
|
|
3796
|
+
children: /* @__PURE__ */ jsx63(HiArrowLeft, { size: 24 })
|
|
3472
3797
|
}
|
|
3473
3798
|
),
|
|
3474
|
-
/* @__PURE__ */
|
|
3799
|
+
/* @__PURE__ */ jsx63(Indicators, { children: Array.from({ length: maxIndex + 1 }).map((_, index) => /* @__PURE__ */ jsx63(
|
|
3475
3800
|
Indicator,
|
|
3476
3801
|
{
|
|
3477
3802
|
$active: index === currentIndex,
|
|
@@ -3479,20 +3804,24 @@ var FeatureCarousel = ({
|
|
|
3479
3804
|
},
|
|
3480
3805
|
index
|
|
3481
3806
|
)) }),
|
|
3482
|
-
/* @__PURE__ */
|
|
3807
|
+
/* @__PURE__ */ jsx63(
|
|
3483
3808
|
NavButton,
|
|
3484
3809
|
{
|
|
3485
3810
|
onClick: handleNext,
|
|
3486
3811
|
$disabled: currentIndex === maxIndex,
|
|
3487
3812
|
navColor: navButtonColor,
|
|
3488
|
-
children: /* @__PURE__ */
|
|
3813
|
+
children: /* @__PURE__ */ jsx63(HiArrowRight, { size: 24 })
|
|
3489
3814
|
}
|
|
3490
3815
|
)
|
|
3491
3816
|
] })
|
|
3492
3817
|
] });
|
|
3493
3818
|
};
|
|
3819
|
+
|
|
3820
|
+
// src/organism/Footer/Footer.tsx
|
|
3821
|
+
import styled48 from "styled-components";
|
|
3822
|
+
import { jsx as jsx64, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
3494
3823
|
var variants13 = ["primary", "secondary"];
|
|
3495
|
-
var FooterContainer =
|
|
3824
|
+
var FooterContainer = styled48.footer`
|
|
3496
3825
|
background-color: ${(props) => {
|
|
3497
3826
|
switch (props.variant) {
|
|
3498
3827
|
case "primary":
|
|
@@ -3506,7 +3835,7 @@ var FooterContainer = styled39.footer`
|
|
|
3506
3835
|
padding: 3rem 2rem 2rem;
|
|
3507
3836
|
color: #ffffff;
|
|
3508
3837
|
`;
|
|
3509
|
-
var TopSection =
|
|
3838
|
+
var TopSection = styled48.div`
|
|
3510
3839
|
display: flex;
|
|
3511
3840
|
justify-content: space-between;
|
|
3512
3841
|
align-items: center;
|
|
@@ -3520,18 +3849,18 @@ var TopSection = styled39.div`
|
|
|
3520
3849
|
align-items: flex-start;
|
|
3521
3850
|
}
|
|
3522
3851
|
`;
|
|
3523
|
-
var LogoWrapper2 =
|
|
3852
|
+
var LogoWrapper2 = styled48.div`
|
|
3524
3853
|
img {
|
|
3525
3854
|
height: 100px;
|
|
3526
3855
|
width: auto;
|
|
3527
3856
|
}
|
|
3528
3857
|
`;
|
|
3529
|
-
var ButtonGroup2 =
|
|
3858
|
+
var ButtonGroup2 = styled48.div`
|
|
3530
3859
|
display: flex;
|
|
3531
3860
|
gap: 1rem;
|
|
3532
3861
|
align-items: center;
|
|
3533
3862
|
`;
|
|
3534
|
-
var MiddleSection =
|
|
3863
|
+
var MiddleSection = styled48.div`
|
|
3535
3864
|
display: grid;
|
|
3536
3865
|
grid-template-columns: 1fr 1fr auto;
|
|
3537
3866
|
gap: 3rem;
|
|
@@ -3546,12 +3875,12 @@ var MiddleSection = styled39.div`
|
|
|
3546
3875
|
grid-template-columns: 1fr;
|
|
3547
3876
|
}
|
|
3548
3877
|
`;
|
|
3549
|
-
var SocialButtonGroup =
|
|
3878
|
+
var SocialButtonGroup = styled48.div`
|
|
3550
3879
|
display: flex;
|
|
3551
3880
|
gap: 1rem;
|
|
3552
3881
|
flex-wrap: wrap;
|
|
3553
3882
|
`;
|
|
3554
|
-
var BottomSection =
|
|
3883
|
+
var BottomSection = styled48.div`
|
|
3555
3884
|
display: flex;
|
|
3556
3885
|
justify-content: space-between;
|
|
3557
3886
|
align-items: center;
|
|
@@ -3564,7 +3893,7 @@ var BottomSection = styled39.div`
|
|
|
3564
3893
|
align-items: flex-start;
|
|
3565
3894
|
}
|
|
3566
3895
|
`;
|
|
3567
|
-
var LegalLinks =
|
|
3896
|
+
var LegalLinks = styled48.div`
|
|
3568
3897
|
display: flex;
|
|
3569
3898
|
gap: 2rem;
|
|
3570
3899
|
|
|
@@ -3573,7 +3902,7 @@ var LegalLinks = styled39.div`
|
|
|
3573
3902
|
gap: 0.5rem;
|
|
3574
3903
|
}
|
|
3575
3904
|
`;
|
|
3576
|
-
var LegalLink =
|
|
3905
|
+
var LegalLink = styled48.a`
|
|
3577
3906
|
color: #ffffff;
|
|
3578
3907
|
text-decoration: none;
|
|
3579
3908
|
font-size: 0.875rem;
|
|
@@ -3585,7 +3914,7 @@ var LegalLink = styled39.a`
|
|
|
3585
3914
|
opacity: 0.8;
|
|
3586
3915
|
}
|
|
3587
3916
|
`;
|
|
3588
|
-
var Copyright =
|
|
3917
|
+
var Copyright = styled48.p`
|
|
3589
3918
|
margin: 0;
|
|
3590
3919
|
font-size: 0.875rem;
|
|
3591
3920
|
color: rgba(255, 255, 255, 0.8);
|
|
@@ -3607,11 +3936,11 @@ var Footer = ({
|
|
|
3607
3936
|
secondaryBgVariant = "transparent",
|
|
3608
3937
|
secondaryTextVariant = "secondary"
|
|
3609
3938
|
}) => {
|
|
3610
|
-
return /* @__PURE__ */
|
|
3611
|
-
/* @__PURE__ */
|
|
3612
|
-
/* @__PURE__ */
|
|
3613
|
-
/* @__PURE__ */
|
|
3614
|
-
/* @__PURE__ */
|
|
3939
|
+
return /* @__PURE__ */ jsxs41(FooterContainer, { variant, children: [
|
|
3940
|
+
/* @__PURE__ */ jsxs41(TopSection, { children: [
|
|
3941
|
+
/* @__PURE__ */ jsx64(LogoWrapper2, { children: /* @__PURE__ */ jsx64("img", { src: logo, alt: "Logo" }) }),
|
|
3942
|
+
/* @__PURE__ */ jsxs41(ButtonGroup2, { children: [
|
|
3943
|
+
/* @__PURE__ */ jsx64(
|
|
3615
3944
|
ExtendedButton,
|
|
3616
3945
|
{
|
|
3617
3946
|
text: primaryButtonText,
|
|
@@ -3621,7 +3950,7 @@ var Footer = ({
|
|
|
3621
3950
|
textVariant: primaryTextVariant
|
|
3622
3951
|
}
|
|
3623
3952
|
),
|
|
3624
|
-
/* @__PURE__ */
|
|
3953
|
+
/* @__PURE__ */ jsx64(
|
|
3625
3954
|
TextButton,
|
|
3626
3955
|
{
|
|
3627
3956
|
text: secondaryButtonText,
|
|
@@ -3633,8 +3962,8 @@ var Footer = ({
|
|
|
3633
3962
|
)
|
|
3634
3963
|
] })
|
|
3635
3964
|
] }),
|
|
3636
|
-
/* @__PURE__ */
|
|
3637
|
-
addresses.map((address, index) => /* @__PURE__ */
|
|
3965
|
+
/* @__PURE__ */ jsxs41(MiddleSection, { children: [
|
|
3966
|
+
addresses.map((address, index) => /* @__PURE__ */ jsx64(
|
|
3638
3967
|
Address,
|
|
3639
3968
|
{
|
|
3640
3969
|
title: address.title,
|
|
@@ -3645,7 +3974,7 @@ var Footer = ({
|
|
|
3645
3974
|
},
|
|
3646
3975
|
index
|
|
3647
3976
|
)),
|
|
3648
|
-
/* @__PURE__ */
|
|
3977
|
+
/* @__PURE__ */ jsx64(SocialButtonGroup, { children: socialLinks.map((social, index) => /* @__PURE__ */ jsx64(
|
|
3649
3978
|
SocialButton,
|
|
3650
3979
|
{
|
|
3651
3980
|
icon: social.icon,
|
|
@@ -3656,21 +3985,25 @@ var Footer = ({
|
|
|
3656
3985
|
index
|
|
3657
3986
|
)) })
|
|
3658
3987
|
] }),
|
|
3659
|
-
/* @__PURE__ */
|
|
3660
|
-
/* @__PURE__ */
|
|
3661
|
-
/* @__PURE__ */
|
|
3988
|
+
/* @__PURE__ */ jsxs41(BottomSection, { children: [
|
|
3989
|
+
/* @__PURE__ */ jsx64(LegalLinks, { children: legalLinks.map((link, index) => /* @__PURE__ */ jsx64(LegalLink, { href: link.url, children: link.text }, index)) }),
|
|
3990
|
+
/* @__PURE__ */ jsx64(Copyright, { children: copyrightText })
|
|
3662
3991
|
] })
|
|
3663
3992
|
] });
|
|
3664
3993
|
};
|
|
3665
3994
|
Footer.variants = variants13;
|
|
3666
|
-
|
|
3995
|
+
|
|
3996
|
+
// src/organism/Header/Header.tsx
|
|
3997
|
+
import styled49 from "styled-components";
|
|
3998
|
+
import { jsx as jsx65, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
3999
|
+
var HeaderContainer3 = styled49.header`
|
|
3667
4000
|
display: flex;
|
|
3668
4001
|
justify-content: space-between;
|
|
3669
4002
|
align-items: center;
|
|
3670
4003
|
background-color: #ffffff;
|
|
3671
4004
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
3672
4005
|
`;
|
|
3673
|
-
var LogoWrapper3 =
|
|
4006
|
+
var LogoWrapper3 = styled49.div`
|
|
3674
4007
|
display: flex;
|
|
3675
4008
|
align-items: center;
|
|
3676
4009
|
|
|
@@ -3679,7 +4012,7 @@ var LogoWrapper3 = styled39.div`
|
|
|
3679
4012
|
width: auto;
|
|
3680
4013
|
}
|
|
3681
4014
|
`;
|
|
3682
|
-
var ButtonGroup3 =
|
|
4015
|
+
var ButtonGroup3 = styled49.div`
|
|
3683
4016
|
display: flex;
|
|
3684
4017
|
gap: 1rem;
|
|
3685
4018
|
align-items: center;
|
|
@@ -3696,10 +4029,10 @@ var Header3 = ({
|
|
|
3696
4029
|
secondaryBgVariant = "transparent",
|
|
3697
4030
|
secondaryTextVariant = "brand"
|
|
3698
4031
|
}) => {
|
|
3699
|
-
return /* @__PURE__ */
|
|
3700
|
-
/* @__PURE__ */
|
|
3701
|
-
/* @__PURE__ */
|
|
3702
|
-
/* @__PURE__ */
|
|
4032
|
+
return /* @__PURE__ */ jsxs42(HeaderContainer3, { children: [
|
|
4033
|
+
/* @__PURE__ */ jsx65(LogoWrapper3, { children: /* @__PURE__ */ jsx65("img", { src: logo, alt: "Logo" }) }),
|
|
4034
|
+
/* @__PURE__ */ jsxs42(ButtonGroup3, { children: [
|
|
4035
|
+
/* @__PURE__ */ jsx65(
|
|
3703
4036
|
ExtendedButton,
|
|
3704
4037
|
{
|
|
3705
4038
|
text: primaryButtonText,
|
|
@@ -3709,7 +4042,7 @@ var Header3 = ({
|
|
|
3709
4042
|
textVariant: primaryTextVariant
|
|
3710
4043
|
}
|
|
3711
4044
|
),
|
|
3712
|
-
/* @__PURE__ */
|
|
4045
|
+
/* @__PURE__ */ jsx65(
|
|
3713
4046
|
TextButton,
|
|
3714
4047
|
{
|
|
3715
4048
|
text: secondaryButtonText,
|
|
@@ -3722,12 +4055,16 @@ var Header3 = ({
|
|
|
3722
4055
|
] })
|
|
3723
4056
|
] });
|
|
3724
4057
|
};
|
|
3725
|
-
|
|
4058
|
+
|
|
4059
|
+
// src/organism/OverviewList/OverviewList.tsx
|
|
4060
|
+
import styled50 from "styled-components";
|
|
4061
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
4062
|
+
var Container23 = styled50.div`
|
|
3726
4063
|
display: flex;
|
|
3727
4064
|
flex-direction: column;
|
|
3728
4065
|
gap: ${spaces[2]};
|
|
3729
4066
|
`;
|
|
3730
|
-
|
|
4067
|
+
var RowContainer = styled50.div`
|
|
3731
4068
|
display: flex;
|
|
3732
4069
|
flex-direction: column;
|
|
3733
4070
|
gap: ${spaces[2]};
|
|
@@ -3743,18 +4080,22 @@ var OverviewList = ({ overviews }) => {
|
|
|
3743
4080
|
});
|
|
3744
4081
|
return isCompleted;
|
|
3745
4082
|
}
|
|
3746
|
-
return /* @__PURE__ */
|
|
4083
|
+
return /* @__PURE__ */ jsx66(Container23, { children: overviews.map((overview) => /* @__PURE__ */ jsx66(Container23, { children: /* @__PURE__ */ jsx66(OverviewRowItem, { title: overview.header, isMainHeader: true, isComplete: isAllCompleted(overview.overviewItems) }) }, overview.header)) });
|
|
3747
4084
|
};
|
|
4085
|
+
|
|
4086
|
+
// src/organism/ToastProvider/ToastProvider.tsx
|
|
4087
|
+
import { createContext, useContext, useState as useState9 } from "react";
|
|
4088
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3748
4089
|
var ToastContext = createContext({ showToast: () => {
|
|
3749
4090
|
} });
|
|
3750
4091
|
var useToast = () => useContext(ToastContext);
|
|
3751
4092
|
var ToastProvider = ({ children }) => {
|
|
3752
|
-
const [toast, setToast] =
|
|
4093
|
+
const [toast, setToast] = useState9();
|
|
3753
4094
|
function showToast({ message, type = "Success" }) {
|
|
3754
4095
|
setToast({ message, type });
|
|
3755
4096
|
}
|
|
3756
|
-
return /* @__PURE__ */
|
|
3757
|
-
/* @__PURE__ */
|
|
4097
|
+
return /* @__PURE__ */ jsxs43(ToastContext.Provider, { value: { showToast }, children: [
|
|
4098
|
+
/* @__PURE__ */ jsx67(
|
|
3758
4099
|
Toast,
|
|
3759
4100
|
{
|
|
3760
4101
|
type: toast?.type ?? "Success",
|
|
@@ -3766,10 +4107,17 @@ var ToastProvider = ({ children }) => {
|
|
|
3766
4107
|
children
|
|
3767
4108
|
] });
|
|
3768
4109
|
};
|
|
4110
|
+
|
|
4111
|
+
// src/organism/VersionLabel/VersionLabel.tsx
|
|
4112
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
3769
4113
|
var VersionLabel = ({ versionNumber }) => {
|
|
3770
|
-
return /* @__PURE__ */
|
|
4114
|
+
return /* @__PURE__ */ jsx68(Label, { value: `V${versionNumber}` });
|
|
3771
4115
|
};
|
|
3772
|
-
|
|
4116
|
+
|
|
4117
|
+
// src/templates/AboutUs/AboutUs.tsx
|
|
4118
|
+
import styled51 from "styled-components";
|
|
4119
|
+
import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
4120
|
+
var AboutUsContainer = styled51.section`
|
|
3773
4121
|
display: grid;
|
|
3774
4122
|
grid-template-columns: 35% 65%;
|
|
3775
4123
|
gap: 3rem;
|
|
@@ -3777,13 +4125,13 @@ var AboutUsContainer = styled39.section`
|
|
|
3777
4125
|
max-width: 1200px;
|
|
3778
4126
|
margin: 0 auto;
|
|
3779
4127
|
align-items: start;
|
|
3780
|
-
background-color: ${colors.background?.light};
|
|
4128
|
+
background-color: ${colors.background?.light || "#000"};
|
|
3781
4129
|
|
|
3782
4130
|
@media (max-width: 768px) {
|
|
3783
4131
|
grid-template-columns: 1fr;
|
|
3784
4132
|
}
|
|
3785
4133
|
`;
|
|
3786
|
-
var ImageWrapper2 =
|
|
4134
|
+
var ImageWrapper2 = styled51.div`
|
|
3787
4135
|
width: 100%;
|
|
3788
4136
|
aspect-ratio: 3 / 4;
|
|
3789
4137
|
border-radius: 8px;
|
|
@@ -3796,7 +4144,7 @@ var ImageWrapper2 = styled39.div`
|
|
|
3796
4144
|
object-fit: cover;
|
|
3797
4145
|
}
|
|
3798
4146
|
`;
|
|
3799
|
-
var ContentWrapper3 =
|
|
4147
|
+
var ContentWrapper3 = styled51.div`
|
|
3800
4148
|
display: flex;
|
|
3801
4149
|
flex-direction: column;
|
|
3802
4150
|
gap: 1.5rem;
|
|
@@ -3816,13 +4164,13 @@ var AboutUs = ({
|
|
|
3816
4164
|
buttonTextBgVariant = "transparent",
|
|
3817
4165
|
buttonTextVariant = "brand"
|
|
3818
4166
|
}) => {
|
|
3819
|
-
return /* @__PURE__ */
|
|
3820
|
-
/* @__PURE__ */
|
|
3821
|
-
/* @__PURE__ */
|
|
3822
|
-
/* @__PURE__ */
|
|
3823
|
-
/* @__PURE__ */
|
|
3824
|
-
/* @__PURE__ */
|
|
3825
|
-
/* @__PURE__ */
|
|
4167
|
+
return /* @__PURE__ */ jsxs44(AboutUsContainer, { children: [
|
|
4168
|
+
/* @__PURE__ */ jsx69(ImageWrapper2, { children: /* @__PURE__ */ jsx69("img", { src: image, alt: "About Us" }) }),
|
|
4169
|
+
/* @__PURE__ */ jsxs44(ContentWrapper3, { children: [
|
|
4170
|
+
/* @__PURE__ */ jsx69(Pill, { variant: pillVariant, inverse: true, children: pillText }),
|
|
4171
|
+
/* @__PURE__ */ jsx69(Header, { variant: "h1", color: headerColor, children: headerText }),
|
|
4172
|
+
/* @__PURE__ */ jsx69(Description, { variant: descriptionVariant, children: description }),
|
|
4173
|
+
/* @__PURE__ */ jsx69(
|
|
3826
4174
|
ExtendedButton,
|
|
3827
4175
|
{
|
|
3828
4176
|
text: buttonText,
|
|
@@ -3835,15 +4183,19 @@ var AboutUs = ({
|
|
|
3835
4183
|
] })
|
|
3836
4184
|
] });
|
|
3837
4185
|
};
|
|
3838
|
-
|
|
4186
|
+
|
|
4187
|
+
// src/templates/Contact/Contact.tsx
|
|
4188
|
+
import styled52 from "styled-components";
|
|
4189
|
+
import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
4190
|
+
var ContactSection = styled52.section`
|
|
3839
4191
|
display: flex;
|
|
3840
4192
|
justify-content: center;
|
|
3841
4193
|
align-items: center;
|
|
3842
4194
|
padding: 4rem 2rem;
|
|
3843
4195
|
min-height: 100vh;
|
|
3844
|
-
background-color: ${colors.background?.light};
|
|
4196
|
+
background-color: ${colors.background?.light || "#f9fafb"};
|
|
3845
4197
|
`;
|
|
3846
|
-
var ContentWrapper4 =
|
|
4198
|
+
var ContentWrapper4 = styled52.div`
|
|
3847
4199
|
display: grid;
|
|
3848
4200
|
grid-template-columns: 1fr 1fr;
|
|
3849
4201
|
gap: 0;
|
|
@@ -3855,7 +4207,7 @@ var ContentWrapper4 = styled39.div`
|
|
|
3855
4207
|
grid-template-columns: 1fr;
|
|
3856
4208
|
}
|
|
3857
4209
|
`;
|
|
3858
|
-
var ImageWrapper3 =
|
|
4210
|
+
var ImageWrapper3 = styled52.div`
|
|
3859
4211
|
width: 100%;
|
|
3860
4212
|
height: 100%;
|
|
3861
4213
|
min-height: 600px;
|
|
@@ -3871,19 +4223,19 @@ var ImageWrapper3 = styled39.div`
|
|
|
3871
4223
|
min-height: 400px;
|
|
3872
4224
|
}
|
|
3873
4225
|
`;
|
|
3874
|
-
var FormContainer2 =
|
|
4226
|
+
var FormContainer2 = styled52.div`
|
|
3875
4227
|
display: flex;
|
|
3876
4228
|
flex-direction: column;
|
|
3877
4229
|
gap: 2rem;
|
|
3878
4230
|
padding: 4rem 3rem;
|
|
3879
4231
|
background-color: #ffffff;
|
|
3880
4232
|
`;
|
|
3881
|
-
var FormWrapper =
|
|
4233
|
+
var FormWrapper = styled52.div`
|
|
3882
4234
|
display: flex;
|
|
3883
4235
|
flex-direction: column;
|
|
3884
4236
|
gap: 2rem;
|
|
3885
4237
|
`;
|
|
3886
|
-
var ButtonWrapper3 =
|
|
4238
|
+
var ButtonWrapper3 = styled52.div`
|
|
3887
4239
|
display: flex;
|
|
3888
4240
|
justify-content: flex-start;
|
|
3889
4241
|
`;
|
|
@@ -3900,13 +4252,13 @@ var Contact = ({
|
|
|
3900
4252
|
buttonTextBgVariant = "brand",
|
|
3901
4253
|
buttonTextVariant = "secondary"
|
|
3902
4254
|
}) => {
|
|
3903
|
-
return /* @__PURE__ */
|
|
3904
|
-
/* @__PURE__ */
|
|
3905
|
-
/* @__PURE__ */
|
|
3906
|
-
/* @__PURE__ */
|
|
3907
|
-
/* @__PURE__ */
|
|
3908
|
-
/* @__PURE__ */
|
|
3909
|
-
/* @__PURE__ */
|
|
4255
|
+
return /* @__PURE__ */ jsx70(ContactSection, { children: /* @__PURE__ */ jsxs45(ContentWrapper4, { children: [
|
|
4256
|
+
/* @__PURE__ */ jsx70(ImageWrapper3, { children: /* @__PURE__ */ jsx70("img", { src: image, alt: "Contact" }) }),
|
|
4257
|
+
/* @__PURE__ */ jsxs45(FormContainer2, { children: [
|
|
4258
|
+
/* @__PURE__ */ jsx70(Header, { variant: "h1", color: headerColor, children: headerText }),
|
|
4259
|
+
/* @__PURE__ */ jsxs45(FormWrapper, { children: [
|
|
4260
|
+
/* @__PURE__ */ jsx70(ContactForm, {}),
|
|
4261
|
+
/* @__PURE__ */ jsx70(
|
|
3910
4262
|
TermsCheckbox,
|
|
3911
4263
|
{
|
|
3912
4264
|
checked: termsChecked,
|
|
@@ -3914,7 +4266,7 @@ var Contact = ({
|
|
|
3914
4266
|
variant: termsVariant
|
|
3915
4267
|
}
|
|
3916
4268
|
),
|
|
3917
|
-
/* @__PURE__ */
|
|
4269
|
+
/* @__PURE__ */ jsx70(ButtonWrapper3, { children: /* @__PURE__ */ jsx70(
|
|
3918
4270
|
ExtendedButton,
|
|
3919
4271
|
{
|
|
3920
4272
|
text: buttonText,
|
|
@@ -3928,21 +4280,25 @@ var Contact = ({
|
|
|
3928
4280
|
] })
|
|
3929
4281
|
] }) });
|
|
3930
4282
|
};
|
|
3931
|
-
|
|
4283
|
+
|
|
4284
|
+
// src/templates/FAQ/FAQ.tsx
|
|
4285
|
+
import styled53 from "styled-components";
|
|
4286
|
+
import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
4287
|
+
var FAQContainer = styled53.section`
|
|
3932
4288
|
display: flex;
|
|
3933
4289
|
flex-direction: column;
|
|
3934
4290
|
gap: 2rem;
|
|
3935
4291
|
padding: 4rem 2rem;
|
|
3936
4292
|
min-height: 100vh;
|
|
3937
|
-
background-color: ${colors.background?.primary};
|
|
4293
|
+
background-color: ${colors.background?.primary || "#f9fafb"};
|
|
3938
4294
|
`;
|
|
3939
|
-
var HeaderSection2 =
|
|
4295
|
+
var HeaderSection2 = styled53.div`
|
|
3940
4296
|
display: flex;
|
|
3941
4297
|
flex-direction: column;
|
|
3942
4298
|
gap: 1.5rem;
|
|
3943
4299
|
align-items: flex-start;
|
|
3944
4300
|
`;
|
|
3945
|
-
var AccordionList =
|
|
4301
|
+
var AccordionList = styled53.div`
|
|
3946
4302
|
display: flex;
|
|
3947
4303
|
flex-direction: column;
|
|
3948
4304
|
max-width: 900px;
|
|
@@ -3960,12 +4316,12 @@ var FAQ = ({
|
|
|
3960
4316
|
accordionIconColor = "brand",
|
|
3961
4317
|
accordionContentVariant = "primary"
|
|
3962
4318
|
}) => {
|
|
3963
|
-
return /* @__PURE__ */
|
|
3964
|
-
/* @__PURE__ */
|
|
3965
|
-
/* @__PURE__ */
|
|
3966
|
-
/* @__PURE__ */
|
|
4319
|
+
return /* @__PURE__ */ jsxs46(FAQContainer, { children: [
|
|
4320
|
+
/* @__PURE__ */ jsxs46(HeaderSection2, { children: [
|
|
4321
|
+
/* @__PURE__ */ jsx71(Pill, { variant: pillVariant, inverse: true, children: pillText }),
|
|
4322
|
+
/* @__PURE__ */ jsx71(Header, { variant: headerVariant, color: headerColor, children: headerText })
|
|
3967
4323
|
] }),
|
|
3968
|
-
/* @__PURE__ */
|
|
4324
|
+
/* @__PURE__ */ jsx71(AccordionList, { children: accordionItems.map((item, index) => /* @__PURE__ */ jsx71(
|
|
3969
4325
|
FAQAccordion,
|
|
3970
4326
|
{
|
|
3971
4327
|
number: item.number,
|
|
@@ -3981,7 +4337,11 @@ var FAQ = ({
|
|
|
3981
4337
|
)) })
|
|
3982
4338
|
] });
|
|
3983
4339
|
};
|
|
3984
|
-
|
|
4340
|
+
|
|
4341
|
+
// src/templates/Features/Features.tsx
|
|
4342
|
+
import styled54 from "styled-components";
|
|
4343
|
+
import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
4344
|
+
var FeaturesContainer = styled54.section`
|
|
3985
4345
|
display: flex;
|
|
3986
4346
|
flex-direction: column;
|
|
3987
4347
|
align-items: flex-start;
|
|
@@ -3989,9 +4349,9 @@ var FeaturesContainer = styled39.section`
|
|
|
3989
4349
|
gap: 2rem;
|
|
3990
4350
|
padding: 4rem 2rem;
|
|
3991
4351
|
min-height: 100vh;
|
|
3992
|
-
background-color: ${colors.background?.light};
|
|
4352
|
+
background-color: ${colors.background?.light || "#000"};
|
|
3993
4353
|
`;
|
|
3994
|
-
var HeaderWrapper2 =
|
|
4354
|
+
var HeaderWrapper2 = styled54.div`
|
|
3995
4355
|
text-align: left;
|
|
3996
4356
|
`;
|
|
3997
4357
|
var Features = ({
|
|
@@ -4007,10 +4367,10 @@ var Features = ({
|
|
|
4007
4367
|
navButtonColor = "brand",
|
|
4008
4368
|
indicatorColor = "brand"
|
|
4009
4369
|
}) => {
|
|
4010
|
-
return /* @__PURE__ */
|
|
4011
|
-
/* @__PURE__ */
|
|
4012
|
-
/* @__PURE__ */
|
|
4013
|
-
/* @__PURE__ */
|
|
4370
|
+
return /* @__PURE__ */ jsxs47(FeaturesContainer, { children: [
|
|
4371
|
+
/* @__PURE__ */ jsx72(Pill, { variant: pillVariant, inverse: true, children: pillText }),
|
|
4372
|
+
/* @__PURE__ */ jsx72(HeaderWrapper2, { children: /* @__PURE__ */ jsx72(Header, { variant: "h1", color: headerColor, children: headerText }) }),
|
|
4373
|
+
/* @__PURE__ */ jsx72(
|
|
4014
4374
|
FeatureCarousel,
|
|
4015
4375
|
{
|
|
4016
4376
|
cards,
|
|
@@ -4024,7 +4384,11 @@ var Features = ({
|
|
|
4024
4384
|
)
|
|
4025
4385
|
] });
|
|
4026
4386
|
};
|
|
4027
|
-
|
|
4387
|
+
|
|
4388
|
+
// src/templates/Hero/Hero.tsx
|
|
4389
|
+
import styled55 from "styled-components";
|
|
4390
|
+
import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
4391
|
+
var HeroContainer = styled55.section`
|
|
4028
4392
|
display: grid;
|
|
4029
4393
|
grid-template-columns: 1fr 1fr;
|
|
4030
4394
|
gap: 2rem;
|
|
@@ -4058,13 +4422,13 @@ var HeroContainer = styled39.section`
|
|
|
4058
4422
|
padding: 2rem;
|
|
4059
4423
|
}
|
|
4060
4424
|
`;
|
|
4061
|
-
var Column =
|
|
4425
|
+
var Column = styled55.div`
|
|
4062
4426
|
position: relative;
|
|
4063
4427
|
z-index: 2;
|
|
4064
4428
|
display: flex;
|
|
4065
4429
|
align-items: center;
|
|
4066
4430
|
`;
|
|
4067
|
-
var FeaturesColumn =
|
|
4431
|
+
var FeaturesColumn = styled55(Column)`
|
|
4068
4432
|
/* Hide on mobile and tablet */
|
|
4069
4433
|
@media (max-width: 1024px) {
|
|
4070
4434
|
display: none;
|
|
@@ -4091,8 +4455,8 @@ var Hero = ({
|
|
|
4091
4455
|
featureTitleColor = "secondary",
|
|
4092
4456
|
featureDescriptionVariant = "secondary"
|
|
4093
4457
|
}) => {
|
|
4094
|
-
return /* @__PURE__ */
|
|
4095
|
-
/* @__PURE__ */
|
|
4458
|
+
return /* @__PURE__ */ jsxs48(HeroContainer, { $bgImage: bgImage, $overlayColor: overlayColor, children: [
|
|
4459
|
+
/* @__PURE__ */ jsx73(Column, { children: /* @__PURE__ */ jsx73(
|
|
4096
4460
|
CTAContainer,
|
|
4097
4461
|
{
|
|
4098
4462
|
header: ctaHeader,
|
|
@@ -4112,7 +4476,7 @@ var Hero = ({
|
|
|
4112
4476
|
primaryTextVariant
|
|
4113
4477
|
}
|
|
4114
4478
|
) }),
|
|
4115
|
-
/* @__PURE__ */
|
|
4479
|
+
/* @__PURE__ */ jsx73(FeaturesColumn, { children: /* @__PURE__ */ jsx73(
|
|
4116
4480
|
FeatureContainer,
|
|
4117
4481
|
{
|
|
4118
4482
|
items: featureItems,
|
|
@@ -4123,20 +4487,24 @@ var Hero = ({
|
|
|
4123
4487
|
) })
|
|
4124
4488
|
] });
|
|
4125
4489
|
};
|
|
4126
|
-
|
|
4490
|
+
|
|
4491
|
+
// src/templates/OtherProducts/OtherProducts.tsx
|
|
4492
|
+
import styled56 from "styled-components";
|
|
4493
|
+
import { jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
4494
|
+
var SectionContainer = styled56.section`
|
|
4127
4495
|
display: flex;
|
|
4128
4496
|
flex-direction: column;
|
|
4129
4497
|
padding: 4rem 2rem;
|
|
4130
4498
|
max-width: 1200px;
|
|
4131
4499
|
margin: 0 auto;
|
|
4132
4500
|
`;
|
|
4133
|
-
var SectionHeader =
|
|
4501
|
+
var SectionHeader = styled56.div`
|
|
4134
4502
|
padding-bottom: 2rem;
|
|
4135
|
-
border-bottom: 1px solid ${colors.text.light};
|
|
4503
|
+
border-bottom: 1px solid ${colors.text.light || "#d1d5db"};
|
|
4136
4504
|
`;
|
|
4137
|
-
var ProductItem =
|
|
4505
|
+
var ProductItem = styled56.div`
|
|
4138
4506
|
padding: 2rem 0;
|
|
4139
|
-
border-bottom: 1px solid ${colors.text.light};
|
|
4507
|
+
border-bottom: 1px solid ${colors.text.light || "#d1d5db"};
|
|
4140
4508
|
|
|
4141
4509
|
&:last-child {
|
|
4142
4510
|
border-bottom: none;
|
|
@@ -4152,9 +4520,9 @@ var OtherProducts = ({
|
|
|
4152
4520
|
productButtonTextBgVariant = "brand",
|
|
4153
4521
|
productButtonTextVariant = "secondary"
|
|
4154
4522
|
}) => {
|
|
4155
|
-
return /* @__PURE__ */
|
|
4156
|
-
/* @__PURE__ */
|
|
4157
|
-
products.map((product, index) => /* @__PURE__ */
|
|
4523
|
+
return /* @__PURE__ */ jsxs49(SectionContainer, { children: [
|
|
4524
|
+
/* @__PURE__ */ jsx74(SectionHeader, { children: /* @__PURE__ */ jsx74(Header, { variant: headerVariant, color: headerColor, children: headerText }) }),
|
|
4525
|
+
products.map((product, index) => /* @__PURE__ */ jsx74(ProductItem, { children: /* @__PURE__ */ jsx74(
|
|
4158
4526
|
ProductInfo,
|
|
4159
4527
|
{
|
|
4160
4528
|
image: product.image,
|
|
@@ -4171,7 +4539,55 @@ var OtherProducts = ({
|
|
|
4171
4539
|
) }, index))
|
|
4172
4540
|
] });
|
|
4173
4541
|
};
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4542
|
+
export {
|
|
4543
|
+
AboutUs,
|
|
4544
|
+
Accordion,
|
|
4545
|
+
Address,
|
|
4546
|
+
CTAContainer,
|
|
4547
|
+
Checkbox,
|
|
4548
|
+
Contact,
|
|
4549
|
+
ContactForm,
|
|
4550
|
+
ContentCard,
|
|
4551
|
+
DocumentListAccordion,
|
|
4552
|
+
Dropdown,
|
|
4553
|
+
FAQ,
|
|
4554
|
+
FAQAccordion,
|
|
4555
|
+
FeatureCarousel,
|
|
4556
|
+
FeatureContainer,
|
|
4557
|
+
Features,
|
|
4558
|
+
FileButton,
|
|
4559
|
+
Filter,
|
|
4560
|
+
Footer,
|
|
4561
|
+
Header3 as Header,
|
|
4562
|
+
Hero,
|
|
4563
|
+
Input2 as Input,
|
|
4564
|
+
Modal,
|
|
4565
|
+
NavMenu,
|
|
4566
|
+
OtherProducts,
|
|
4567
|
+
OverviewList,
|
|
4568
|
+
OverviewRowItem,
|
|
4569
|
+
PDFPreviewer,
|
|
4570
|
+
PageLayout,
|
|
4571
|
+
ProductInfo,
|
|
4572
|
+
RadioGroup,
|
|
4573
|
+
RatesChart,
|
|
4574
|
+
Search,
|
|
4575
|
+
SideNav,
|
|
4576
|
+
SidePanel,
|
|
4577
|
+
SortBy,
|
|
4578
|
+
Spinner,
|
|
4579
|
+
StepperHeaderTab,
|
|
4580
|
+
Table,
|
|
4581
|
+
TableHeader,
|
|
4582
|
+
TableInner,
|
|
4583
|
+
TableListItem,
|
|
4584
|
+
TableRow,
|
|
4585
|
+
Tabs,
|
|
4586
|
+
Textarea2 as Textarea,
|
|
4587
|
+
Toast,
|
|
4588
|
+
ToastProvider,
|
|
4589
|
+
TopMenu,
|
|
4590
|
+
VersionLabel,
|
|
4591
|
+
useToast
|
|
4592
|
+
};
|
|
4177
4593
|
//# sourceMappingURL=index.js.map
|