property-practice-ui 0.1.3 → 0.1.4
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 +114 -264
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.js +83 -202
- package/dist/atoms.js.map +1 -1
- package/dist/index.cjs +651 -1087
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +570 -986
- package/dist/index.js.map +1 -1
- package/dist/types.cjs +4 -29
- 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/tsup.config.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
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';
|
|
4
13
|
|
|
5
|
-
// src/
|
|
6
|
-
import styled from "styled-components";
|
|
14
|
+
// src/molecules/Dropdown/Dropdown.tsx
|
|
7
15
|
|
|
8
16
|
// src/tokens/colors.ts
|
|
9
17
|
var colors = {
|
|
@@ -48,12 +56,9 @@ var colors = {
|
|
|
48
56
|
// src/tokens/sizes.ts
|
|
49
57
|
var sizes = {
|
|
50
58
|
sm: "12px",
|
|
51
|
-
md: "14px",
|
|
52
59
|
lg: "18px",
|
|
53
60
|
xl: "24px",
|
|
54
|
-
0: "1px"
|
|
55
|
-
0.5: "1.5px"
|
|
56
|
-
};
|
|
61
|
+
0: "1px"};
|
|
57
62
|
|
|
58
63
|
// src/tokens/spaces.ts
|
|
59
64
|
var spaces = {
|
|
@@ -77,15 +82,12 @@ var spaces = {
|
|
|
77
82
|
9: "56px",
|
|
78
83
|
20: "150px"
|
|
79
84
|
};
|
|
80
|
-
|
|
81
|
-
// src/atoms/Label/Label.tsx
|
|
82
|
-
import { jsx } from "react/jsx-runtime";
|
|
83
|
-
var StyledLabel = styled.span`
|
|
85
|
+
var StyledLabel = styled39.span`
|
|
84
86
|
color: ${(props) => colors.text[props?.color]};
|
|
85
87
|
font-size: ${sizes.sm};
|
|
86
88
|
font-weight: ${(props) => props.fontWeight};
|
|
87
89
|
`;
|
|
88
|
-
var StyledFloatingLabel =
|
|
90
|
+
var StyledFloatingLabel = styled39(StyledLabel)`
|
|
89
91
|
position: absolute;
|
|
90
92
|
left: 0;
|
|
91
93
|
bottom: 100%;
|
|
@@ -109,16 +111,8 @@ var FloatingLabel = ({
|
|
|
109
111
|
}) => {
|
|
110
112
|
return /* @__PURE__ */ jsx(StyledFloatingLabel, { color, fontWeight, children: value });
|
|
111
113
|
};
|
|
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";
|
|
120
114
|
var variants = ["brand", "teal", "blue"];
|
|
121
|
-
var StyledContainer =
|
|
115
|
+
var StyledContainer = styled39.button`
|
|
122
116
|
padding: 0.75rem;
|
|
123
117
|
${(props) => props.as === "button" ? `
|
|
124
118
|
width: 2.5rem;
|
|
@@ -148,7 +142,7 @@ var StyledContainer = styled2.button`
|
|
|
148
142
|
transform: rotate(45deg);
|
|
149
143
|
}
|
|
150
144
|
`;
|
|
151
|
-
var StyledIcon =
|
|
145
|
+
var StyledIcon = styled39(HiArrowUpRight)`
|
|
152
146
|
width: 1rem;
|
|
153
147
|
height: 1rem;
|
|
154
148
|
color: ${colors.text.secondary};
|
|
@@ -159,21 +153,18 @@ var ArrowButton = ({
|
|
|
159
153
|
asChild = false,
|
|
160
154
|
variant = "brand"
|
|
161
155
|
}) => {
|
|
162
|
-
return /* @__PURE__ */
|
|
156
|
+
return /* @__PURE__ */ jsx(
|
|
163
157
|
StyledContainer,
|
|
164
158
|
{
|
|
165
159
|
as: asChild ? "div" : "button",
|
|
166
160
|
onClick,
|
|
167
161
|
variant,
|
|
168
|
-
children: /* @__PURE__ */
|
|
162
|
+
children: /* @__PURE__ */ jsx(StyledIcon, { "aria-hidden": true })
|
|
169
163
|
}
|
|
170
164
|
);
|
|
171
165
|
};
|
|
172
166
|
ArrowButton.variants = variants;
|
|
173
167
|
|
|
174
|
-
// src/atoms/Button/Button.tsx
|
|
175
|
-
import styled4 from "styled-components";
|
|
176
|
-
|
|
177
168
|
// src/tokens/radii.ts
|
|
178
169
|
var radii = {
|
|
179
170
|
sm: "4px",
|
|
@@ -181,14 +172,10 @@ var radii = {
|
|
|
181
172
|
lg: "10px",
|
|
182
173
|
xl: "16px"
|
|
183
174
|
};
|
|
184
|
-
|
|
185
|
-
// src/atoms/Loader/Loader.tsx
|
|
186
|
-
import styled3, { keyframes } from "styled-components";
|
|
187
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
188
175
|
var spin = keyframes`
|
|
189
176
|
to { transform: rotate(360deg); }
|
|
190
177
|
`;
|
|
191
|
-
var Ring =
|
|
178
|
+
var Ring = styled39.span`
|
|
192
179
|
display: inline-block;
|
|
193
180
|
width: ${({ size }) => typeof size === "number" ? `${size}px` : size};
|
|
194
181
|
height: ${({ size }) => typeof size === "number" ? `${size}px` : size};
|
|
@@ -211,7 +198,7 @@ var Loader = ({
|
|
|
211
198
|
thickness = 3,
|
|
212
199
|
speed = "0.8s"
|
|
213
200
|
}) => {
|
|
214
|
-
return /* @__PURE__ */
|
|
201
|
+
return /* @__PURE__ */ jsx(
|
|
215
202
|
Ring,
|
|
216
203
|
{
|
|
217
204
|
role: "status",
|
|
@@ -222,11 +209,8 @@ var Loader = ({
|
|
|
222
209
|
}
|
|
223
210
|
);
|
|
224
211
|
};
|
|
225
|
-
|
|
226
|
-
// src/atoms/Button/Button.tsx
|
|
227
|
-
import { Fragment, jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
228
212
|
var ButtonTypes = ["submit", "reset", "button"];
|
|
229
|
-
var StyledButton =
|
|
213
|
+
var StyledButton = styled39.button`
|
|
230
214
|
padding: ${spaces[2]} ${spaces[4]};
|
|
231
215
|
background-color: ${(props) => props.variant === "light" ? colors.button.primary : colors.button.secondary};
|
|
232
216
|
border-radius: ${radii.lg};
|
|
@@ -253,7 +237,7 @@ var StyledButton = styled4.button`
|
|
|
253
237
|
color: ${colors.text.primary};
|
|
254
238
|
}
|
|
255
239
|
`;
|
|
256
|
-
var ButtonText =
|
|
240
|
+
var ButtonText = styled39.span`
|
|
257
241
|
font-size: 12px;
|
|
258
242
|
font-weight: 700;
|
|
259
243
|
`;
|
|
@@ -266,7 +250,7 @@ var Button = ({
|
|
|
266
250
|
variant = "light",
|
|
267
251
|
isLoading
|
|
268
252
|
}) => {
|
|
269
|
-
return /* @__PURE__ */
|
|
253
|
+
return /* @__PURE__ */ jsx(
|
|
270
254
|
StyledButton,
|
|
271
255
|
{
|
|
272
256
|
type,
|
|
@@ -275,18 +259,14 @@ var Button = ({
|
|
|
275
259
|
variant,
|
|
276
260
|
children: !isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
277
261
|
typeof icon !== "undefined" && icon,
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
] }) : /* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ jsx(ButtonText, { children: text })
|
|
263
|
+
] }) : /* @__PURE__ */ jsx(Loader, { size: "20px" })
|
|
280
264
|
}
|
|
281
265
|
);
|
|
282
266
|
};
|
|
283
267
|
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";
|
|
288
268
|
var variants2 = ["primary", "secondary", "subtle", "error"];
|
|
289
|
-
var StyledDescription =
|
|
269
|
+
var StyledDescription = styled39.p`
|
|
290
270
|
margin: 0;
|
|
291
271
|
font-size: 1rem;
|
|
292
272
|
line-height: 1.6;
|
|
@@ -309,14 +289,10 @@ var Description = ({
|
|
|
309
289
|
children,
|
|
310
290
|
variant = "primary"
|
|
311
291
|
}) => {
|
|
312
|
-
return /* @__PURE__ */
|
|
292
|
+
return /* @__PURE__ */ jsx(StyledDescription, { variant, children });
|
|
313
293
|
};
|
|
314
294
|
Description.variants = variants2;
|
|
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`
|
|
295
|
+
var StyledButton2 = styled39.button`
|
|
320
296
|
display: flex;
|
|
321
297
|
align-items: center;
|
|
322
298
|
height: 2.5rem;
|
|
@@ -337,21 +313,17 @@ var ExtendedButton = ({
|
|
|
337
313
|
textBgVariant = "brand",
|
|
338
314
|
textVariant = "secondary"
|
|
339
315
|
}) => {
|
|
340
|
-
return /* @__PURE__ */
|
|
341
|
-
/* @__PURE__ */
|
|
342
|
-
/* @__PURE__ */
|
|
316
|
+
return /* @__PURE__ */ jsxs(StyledButton2, { onClick, children: [
|
|
317
|
+
/* @__PURE__ */ jsx(ArrowButton, { asChild: true, variant: arrowVariant }),
|
|
318
|
+
/* @__PURE__ */ jsx(TextButton, { asChild: true, text, bgVariant: textBgVariant, textVariant, uppercase: false })
|
|
343
319
|
] });
|
|
344
320
|
};
|
|
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`
|
|
321
|
+
var Container = styled39.div`
|
|
350
322
|
display: flex;
|
|
351
323
|
gap: 1rem;
|
|
352
324
|
background-color: transparent;
|
|
353
325
|
`;
|
|
354
|
-
var ThumbnailWrapper =
|
|
326
|
+
var ThumbnailWrapper = styled39.div`
|
|
355
327
|
width: ${(props) => props.$size || "3rem"};
|
|
356
328
|
height: ${(props) => props.$size || "3rem"};
|
|
357
329
|
border-radius: 50%;
|
|
@@ -361,18 +333,18 @@ var ThumbnailWrapper = styled7.div`
|
|
|
361
333
|
justify-content: center;
|
|
362
334
|
flex-shrink: 0;
|
|
363
335
|
`;
|
|
364
|
-
var Content =
|
|
336
|
+
var Content = styled39.div`
|
|
365
337
|
display: flex;
|
|
366
338
|
flex-direction: column;
|
|
367
339
|
gap: 0.25rem;
|
|
368
340
|
`;
|
|
369
|
-
var Title =
|
|
341
|
+
var Title = styled39.h3`
|
|
370
342
|
margin: 0;
|
|
371
343
|
font-size: 1rem;
|
|
372
344
|
font-weight: 600;
|
|
373
345
|
color: ${(props) => colors.text[props.titleColor]};
|
|
374
346
|
`;
|
|
375
|
-
var Description2 =
|
|
347
|
+
var Description2 = styled39.p`
|
|
376
348
|
margin: 0;
|
|
377
349
|
font-size: 0.875rem;
|
|
378
350
|
line-height: 1.5;
|
|
@@ -401,35 +373,25 @@ var FeatureItem = ({
|
|
|
401
373
|
return "subtle";
|
|
402
374
|
}
|
|
403
375
|
};
|
|
404
|
-
return /* @__PURE__ */
|
|
405
|
-
/* @__PURE__ */
|
|
406
|
-
/* @__PURE__ */
|
|
407
|
-
/* @__PURE__ */
|
|
408
|
-
/* @__PURE__ */
|
|
376
|
+
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
377
|
+
/* @__PURE__ */ jsx(ThumbnailWrapper, { $size: thumbnailSize, thumbnailBgColor, children: thumbnail }),
|
|
378
|
+
/* @__PURE__ */ jsxs(Content, { children: [
|
|
379
|
+
/* @__PURE__ */ jsx(Title, { titleColor, children: title }),
|
|
380
|
+
/* @__PURE__ */ jsx(Description2, { descriptionColor: getDescriptionColor(), children: description })
|
|
409
381
|
] })
|
|
410
382
|
] });
|
|
411
383
|
};
|
|
412
384
|
|
|
413
|
-
// src/atoms/FormContainer/FormContainer.tsx
|
|
414
|
-
import styled8 from "styled-components";
|
|
415
|
-
|
|
416
385
|
// src/tokens/breakpoints.ts
|
|
417
386
|
var breakpoints = {
|
|
418
387
|
sm: "640px",
|
|
419
|
-
|
|
420
|
-
|
|
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`
|
|
388
|
+
lg: "1024px"};
|
|
389
|
+
styled39.div`
|
|
428
390
|
width: 100%;
|
|
429
391
|
display: flex;
|
|
430
392
|
justify-content: center;
|
|
431
393
|
`;
|
|
432
|
-
|
|
394
|
+
styled39.div`
|
|
433
395
|
display: flex;
|
|
434
396
|
flex-direction: column;
|
|
435
397
|
padding: ${spaces[4]};
|
|
@@ -437,10 +399,6 @@ var InnerContainer = styled8.div`
|
|
|
437
399
|
max-width: ${breakpoints.lg};
|
|
438
400
|
gap: ${(props) => spaces[props.space]};
|
|
439
401
|
`;
|
|
440
|
-
|
|
441
|
-
// src/atoms/Header/Header.tsx
|
|
442
|
-
import styled9 from "styled-components";
|
|
443
|
-
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
444
402
|
var variants3 = {
|
|
445
403
|
h1: {
|
|
446
404
|
fontSize: "24px",
|
|
@@ -461,7 +419,7 @@ var variants3 = {
|
|
|
461
419
|
letterSpacing: "0.2px"
|
|
462
420
|
}
|
|
463
421
|
};
|
|
464
|
-
var StyledText =
|
|
422
|
+
var StyledText = styled39.h1`
|
|
465
423
|
color: ${(props) => colors.text[props?.color]};
|
|
466
424
|
font-size: ${(props) => variants3[props.variant].fontSize};
|
|
467
425
|
font-weight: ${(props) => variants3[props.variant].fontWeight};
|
|
@@ -473,18 +431,12 @@ var Header = ({
|
|
|
473
431
|
variant = "h1",
|
|
474
432
|
color = "primary"
|
|
475
433
|
}) => {
|
|
476
|
-
return /* @__PURE__ */
|
|
434
|
+
return /* @__PURE__ */ jsx(StyledText, { variant, color, children });
|
|
477
435
|
};
|
|
478
436
|
|
|
479
|
-
// src/atoms/Input/Input.tsx
|
|
480
|
-
import styled10 from "styled-components";
|
|
481
|
-
|
|
482
437
|
// src/types.ts
|
|
483
438
|
var InputTypes = ["number", "text", "email", "date"];
|
|
484
|
-
|
|
485
|
-
// src/atoms/Input/Input.tsx
|
|
486
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
487
|
-
var StyledInput = styled10.input`
|
|
439
|
+
var StyledInput = styled39.input`
|
|
488
440
|
display: block;
|
|
489
441
|
height: 100%;
|
|
490
442
|
width: 100%;
|
|
@@ -494,15 +446,11 @@ var StyledInput = styled10.input`
|
|
|
494
446
|
font-weight: 600;
|
|
495
447
|
`;
|
|
496
448
|
var Input = ({ name, onChange, ...rest }) => {
|
|
497
|
-
return /* @__PURE__ */
|
|
449
|
+
return /* @__PURE__ */ jsx(StyledInput, { name, onChange, ...rest });
|
|
498
450
|
};
|
|
499
451
|
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";
|
|
504
452
|
var variants4 = ["primary", "secondary", "subtle", "error"];
|
|
505
|
-
var StyledPill =
|
|
453
|
+
var StyledPill = styled39.span`
|
|
506
454
|
display: inline-block;
|
|
507
455
|
padding: 0.5rem 1rem;
|
|
508
456
|
border-radius: 9999px;
|
|
@@ -561,15 +509,10 @@ var Pill = ({
|
|
|
561
509
|
variant = "primary",
|
|
562
510
|
inverse = false
|
|
563
511
|
}) => {
|
|
564
|
-
return /* @__PURE__ */
|
|
512
|
+
return /* @__PURE__ */ jsx(StyledPill, { variant, $inverse: inverse, children });
|
|
565
513
|
};
|
|
566
514
|
Pill.variants = variants4;
|
|
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`
|
|
515
|
+
var Container3 = styled39.div`
|
|
573
516
|
border-radius: ${radii.md};
|
|
574
517
|
padding: ${spaces["3"]};
|
|
575
518
|
display: flex;
|
|
@@ -595,25 +538,21 @@ var Container3 = styled12.div`
|
|
|
595
538
|
background-color: rgba(255, 255, 255, 0.92);
|
|
596
539
|
}
|
|
597
540
|
`;
|
|
598
|
-
var Label2 =
|
|
541
|
+
var Label2 = styled39.span`
|
|
599
542
|
font-size: 16px;
|
|
600
543
|
font-weight: ${(props) => props.isSelected ? "800" : "400"};
|
|
601
544
|
text-align: center;
|
|
602
545
|
`;
|
|
603
546
|
var RadioItem = ({ label, isSelected, onClick }) => {
|
|
604
|
-
return /* @__PURE__ */
|
|
605
|
-
isSelected && /* @__PURE__ */
|
|
606
|
-
/* @__PURE__ */
|
|
547
|
+
return /* @__PURE__ */ jsxs(Container3, { onClick, children: [
|
|
548
|
+
isSelected && /* @__PURE__ */ jsx(FaCheckCircle, { color: colors.background.blue }),
|
|
549
|
+
/* @__PURE__ */ jsx(Label2, { isSelected, children: label })
|
|
607
550
|
] });
|
|
608
551
|
};
|
|
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`
|
|
552
|
+
var Container4 = styled39.div`
|
|
614
553
|
width: 100%;
|
|
615
554
|
`;
|
|
616
|
-
var Label3 =
|
|
555
|
+
var Label3 = styled39.label`
|
|
617
556
|
display: block;
|
|
618
557
|
font-size: 13px;
|
|
619
558
|
font-weight: 600;
|
|
@@ -621,12 +560,12 @@ var Label3 = styled13.label`
|
|
|
621
560
|
opacity: 0.8;
|
|
622
561
|
margin-bottom: 0.5rem;
|
|
623
562
|
`;
|
|
624
|
-
var StyledInput2 =
|
|
563
|
+
var StyledInput2 = styled39.input`
|
|
625
564
|
height: 2.75rem;
|
|
626
565
|
width: 100%;
|
|
627
566
|
border-radius: 6px;
|
|
628
567
|
border: 1px solid ${(props) => props.$borderColor || "#d1d5db"};
|
|
629
|
-
background-color: ${(props) => props.$bgColor ? colors.background[props.$bgColor] : colors.background?.light
|
|
568
|
+
background-color: ${(props) => props.$bgColor ? colors.background[props.$bgColor] : colors.background?.light};
|
|
630
569
|
padding: 0 0.75rem;
|
|
631
570
|
font-size: 15px;
|
|
632
571
|
color: ${(props) => props.$textColor ? colors.text[props.$textColor] : colors.text.primary};
|
|
@@ -643,11 +582,11 @@ var StyledInput2 = styled13.input`
|
|
|
643
582
|
}};
|
|
644
583
|
}
|
|
645
584
|
`;
|
|
646
|
-
var StyledTextArea =
|
|
585
|
+
var StyledTextArea = styled39.textarea`
|
|
647
586
|
width: 100%;
|
|
648
587
|
border-radius: 6px;
|
|
649
588
|
border: 1px solid ${(props) => props.$borderColor || "#d1d5db"};
|
|
650
|
-
background-color: ${(props) => props.$bgColor ? colors.background[props.$bgColor] : colors.background?.light
|
|
589
|
+
background-color: ${(props) => props.$bgColor ? colors.background[props.$bgColor] : colors.background?.light};
|
|
651
590
|
padding: 0.75rem;
|
|
652
591
|
font-size: 15px;
|
|
653
592
|
color: ${(props) => props.$textColor ? colors.text[props.$textColor] : colors.text.primary};
|
|
@@ -675,9 +614,9 @@ var SecondaryInput = ({
|
|
|
675
614
|
focusRingColor = "brand",
|
|
676
615
|
...rest
|
|
677
616
|
}) => {
|
|
678
|
-
return /* @__PURE__ */
|
|
679
|
-
typeof label === "string" && /* @__PURE__ */
|
|
680
|
-
isTextArea ? /* @__PURE__ */
|
|
617
|
+
return /* @__PURE__ */ jsxs(Container4, { children: [
|
|
618
|
+
typeof label === "string" && /* @__PURE__ */ jsx(Label3, { $color: labelColor, children: label }),
|
|
619
|
+
isTextArea ? /* @__PURE__ */ jsx(
|
|
681
620
|
StyledTextArea,
|
|
682
621
|
{
|
|
683
622
|
...rest,
|
|
@@ -688,7 +627,7 @@ var SecondaryInput = ({
|
|
|
688
627
|
$borderColor: borderColor,
|
|
689
628
|
$focusRingColor: focusRingColor
|
|
690
629
|
}
|
|
691
|
-
) : /* @__PURE__ */
|
|
630
|
+
) : /* @__PURE__ */ jsx(
|
|
692
631
|
StyledInput2,
|
|
693
632
|
{
|
|
694
633
|
...rest,
|
|
@@ -701,12 +640,8 @@ var SecondaryInput = ({
|
|
|
701
640
|
)
|
|
702
641
|
] });
|
|
703
642
|
};
|
|
704
|
-
|
|
705
|
-
// src/atoms/SocialButton/SocialButton.tsx
|
|
706
|
-
import styled14 from "styled-components";
|
|
707
|
-
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
708
643
|
var variants5 = ["primary", "secondary", "inverse", "filled"];
|
|
709
|
-
var StyledButton3 =
|
|
644
|
+
var StyledButton3 = styled39.button`
|
|
710
645
|
width: 2.5rem;
|
|
711
646
|
height: 2.5rem;
|
|
712
647
|
display: flex;
|
|
@@ -770,7 +705,7 @@ var SocialButton = ({
|
|
|
770
705
|
variant = "primary",
|
|
771
706
|
ariaLabel
|
|
772
707
|
}) => {
|
|
773
|
-
return /* @__PURE__ */
|
|
708
|
+
return /* @__PURE__ */ jsx(
|
|
774
709
|
StyledButton3,
|
|
775
710
|
{
|
|
776
711
|
onClick,
|
|
@@ -781,12 +716,8 @@ var SocialButton = ({
|
|
|
781
716
|
);
|
|
782
717
|
};
|
|
783
718
|
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";
|
|
788
719
|
var variants6 = ["primary", "secondary", "subtle"];
|
|
789
|
-
var CheckboxContainer =
|
|
720
|
+
var CheckboxContainer = styled39.label`
|
|
790
721
|
display: flex;
|
|
791
722
|
align-items: flex-start;
|
|
792
723
|
gap: 0.75rem;
|
|
@@ -794,12 +725,12 @@ var CheckboxContainer = styled15.label`
|
|
|
794
725
|
font-size: 0.875rem;
|
|
795
726
|
line-height: 1.5;
|
|
796
727
|
`;
|
|
797
|
-
var HiddenCheckbox =
|
|
728
|
+
var HiddenCheckbox = styled39.input.attrs({ type: "checkbox" })`
|
|
798
729
|
position: absolute;
|
|
799
730
|
opacity: 0;
|
|
800
731
|
cursor: pointer;
|
|
801
732
|
`;
|
|
802
|
-
var StyledCheckbox =
|
|
733
|
+
var StyledCheckbox = styled39.div`
|
|
803
734
|
width: 1.25rem;
|
|
804
735
|
height: 1.25rem;
|
|
805
736
|
border: 2px solid ${(props) => {
|
|
@@ -847,7 +778,7 @@ var StyledCheckbox = styled15.div`
|
|
|
847
778
|
display: ${(props) => props.$checked ? "block" : "none"};
|
|
848
779
|
}
|
|
849
780
|
`;
|
|
850
|
-
var Text =
|
|
781
|
+
var Text = styled39.span`
|
|
851
782
|
color: ${(props) => {
|
|
852
783
|
switch (props.variant) {
|
|
853
784
|
case "primary":
|
|
@@ -861,7 +792,7 @@ var Text = styled15.span`
|
|
|
861
792
|
}
|
|
862
793
|
}};
|
|
863
794
|
`;
|
|
864
|
-
var Link =
|
|
795
|
+
var Link = styled39.a`
|
|
865
796
|
color: ${(props) => {
|
|
866
797
|
switch (props.variant) {
|
|
867
798
|
case "primary":
|
|
@@ -892,31 +823,27 @@ var TermsCheckbox = ({
|
|
|
892
823
|
cookieUrl = "/cookie-policy",
|
|
893
824
|
variant = "primary"
|
|
894
825
|
}) => {
|
|
895
|
-
return /* @__PURE__ */
|
|
896
|
-
/* @__PURE__ */
|
|
826
|
+
return /* @__PURE__ */ jsxs(CheckboxContainer, { children: [
|
|
827
|
+
/* @__PURE__ */ jsx(
|
|
897
828
|
HiddenCheckbox,
|
|
898
829
|
{
|
|
899
830
|
checked,
|
|
900
831
|
onChange: (e) => onChange(e.target.checked)
|
|
901
832
|
}
|
|
902
833
|
),
|
|
903
|
-
/* @__PURE__ */
|
|
904
|
-
/* @__PURE__ */
|
|
834
|
+
/* @__PURE__ */ jsx(StyledCheckbox, { $checked: checked, variant }),
|
|
835
|
+
/* @__PURE__ */ jsxs(Text, { variant, children: [
|
|
905
836
|
text,
|
|
906
837
|
" ",
|
|
907
|
-
/* @__PURE__ */
|
|
838
|
+
/* @__PURE__ */ jsx(Link, { href: termsUrl, variant, target: "_blank", rel: "noopener noreferrer", children: termsText }),
|
|
908
839
|
" ",
|
|
909
840
|
"and",
|
|
910
841
|
" ",
|
|
911
|
-
/* @__PURE__ */
|
|
842
|
+
/* @__PURE__ */ jsx(Link, { href: cookieUrl, variant, target: "_blank", rel: "noopener noreferrer", children: cookieText })
|
|
912
843
|
] })
|
|
913
844
|
] });
|
|
914
845
|
};
|
|
915
846
|
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";
|
|
920
847
|
var sizes2 = ["sm", "md", "lg"];
|
|
921
848
|
var variants7 = {
|
|
922
849
|
sm: {
|
|
@@ -932,7 +859,7 @@ var variants7 = {
|
|
|
932
859
|
fontWeight: 500
|
|
933
860
|
}
|
|
934
861
|
};
|
|
935
|
-
var StyledText2 =
|
|
862
|
+
var StyledText2 = styled39.h1`
|
|
936
863
|
color: ${(props) => colors.text[props?.color]};
|
|
937
864
|
font-size: ${(props) => variants7[props.variant].fontSize};
|
|
938
865
|
font-weight: ${(props) => variants7[props.variant].fontWeight};
|
|
@@ -942,14 +869,10 @@ var Text2 = ({
|
|
|
942
869
|
color = "primary",
|
|
943
870
|
variant = "md"
|
|
944
871
|
}) => {
|
|
945
|
-
return /* @__PURE__ */
|
|
872
|
+
return /* @__PURE__ */ jsx(StyledText2, { color, variant, children });
|
|
946
873
|
};
|
|
947
874
|
Text2.variants = sizes2;
|
|
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`
|
|
875
|
+
var StyledTextarea = styled39.textarea`
|
|
953
876
|
display: block;
|
|
954
877
|
width: 100%;
|
|
955
878
|
height: 100%;
|
|
@@ -965,16 +888,12 @@ var Textarea = ({
|
|
|
965
888
|
rows = 3,
|
|
966
889
|
...rest
|
|
967
890
|
}) => {
|
|
968
|
-
return /* @__PURE__ */
|
|
891
|
+
return /* @__PURE__ */ jsx(StyledTextarea, { name, onChange, rows, ...rest });
|
|
969
892
|
};
|
|
970
893
|
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";
|
|
975
894
|
var bgVariants = ["primary", "secondary", "tertiary", "subtle", "blue", "brand", "light", "transparent"];
|
|
976
895
|
var textVariants = ["brand", "primary", "secondary", "tertiary", "subtle", "light", "error", "blue"];
|
|
977
|
-
var StyledContainer2 =
|
|
896
|
+
var StyledContainer2 = styled39.button`
|
|
978
897
|
padding: 0 1rem;
|
|
979
898
|
height: 2.5rem;
|
|
980
899
|
display: flex;
|
|
@@ -993,7 +912,7 @@ var StyledContainer2 = styled18.button`
|
|
|
993
912
|
opacity: 0.9;
|
|
994
913
|
}
|
|
995
914
|
`;
|
|
996
|
-
var StyledText3 =
|
|
915
|
+
var StyledText3 = styled39.span`
|
|
997
916
|
color: ${(props) => colors.text[props.textVariant]};
|
|
998
917
|
font-size: 0.75rem;
|
|
999
918
|
letter-spacing: 0.05em;
|
|
@@ -1009,24 +928,19 @@ var TextButton = ({
|
|
|
1009
928
|
uppercase = true,
|
|
1010
929
|
bold = false
|
|
1011
930
|
}) => {
|
|
1012
|
-
return /* @__PURE__ */
|
|
931
|
+
return /* @__PURE__ */ jsx(
|
|
1013
932
|
StyledContainer2,
|
|
1014
933
|
{
|
|
1015
934
|
as: asChild ? "div" : "button",
|
|
1016
935
|
onClick,
|
|
1017
936
|
bgVariant,
|
|
1018
|
-
children: /* @__PURE__ */
|
|
937
|
+
children: /* @__PURE__ */ jsx(StyledText3, { textVariant, $uppercase: uppercase, $bold: bold, children: text })
|
|
1019
938
|
}
|
|
1020
939
|
);
|
|
1021
940
|
};
|
|
1022
941
|
TextButton.bgVariants = bgVariants;
|
|
1023
942
|
TextButton.textVariants = textVariants;
|
|
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`
|
|
943
|
+
styled39.div`
|
|
1030
944
|
display: inline-flex;
|
|
1031
945
|
background-color: ${(props) => {
|
|
1032
946
|
switch (props.variant) {
|
|
@@ -1044,7 +958,7 @@ var ToggleContainer = styled19.div`
|
|
|
1044
958
|
padding: 0.25rem;
|
|
1045
959
|
gap: 0.25rem;
|
|
1046
960
|
`;
|
|
1047
|
-
|
|
961
|
+
styled39.button`
|
|
1048
962
|
padding: 0.5rem 1.5rem;
|
|
1049
963
|
border-radius: 9999px;
|
|
1050
964
|
border: none;
|
|
@@ -1089,31 +1003,10 @@ var ToggleOption = styled19.button`
|
|
|
1089
1003
|
opacity: ${(props) => props.$isActive ? 1 : 0.7};
|
|
1090
1004
|
}
|
|
1091
1005
|
`;
|
|
1092
|
-
var
|
|
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`
|
|
1006
|
+
var Container5 = styled39.div`
|
|
1114
1007
|
width: 100%;
|
|
1115
1008
|
`;
|
|
1116
|
-
var InnerContainer2 =
|
|
1009
|
+
var InnerContainer2 = styled39.div`
|
|
1117
1010
|
position: relative;
|
|
1118
1011
|
width: 100%;
|
|
1119
1012
|
min-height: 58px;
|
|
@@ -1141,15 +1034,12 @@ var InputContainer = ({
|
|
|
1141
1034
|
children,
|
|
1142
1035
|
variant = "outline"
|
|
1143
1036
|
}) => {
|
|
1144
|
-
return /* @__PURE__ */
|
|
1145
|
-
/* @__PURE__ */
|
|
1146
|
-
typeof error === "string" && /* @__PURE__ */
|
|
1037
|
+
return /* @__PURE__ */ jsxs(Container5, { children: [
|
|
1038
|
+
/* @__PURE__ */ jsx(InnerContainer2, { error, variant, children }),
|
|
1039
|
+
typeof error === "string" && /* @__PURE__ */ jsx(Label, { value: error, color: "error" })
|
|
1147
1040
|
] });
|
|
1148
1041
|
};
|
|
1149
|
-
|
|
1150
|
-
// src/molecules/Dropdown/Dropdown.tsx
|
|
1151
|
-
import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1152
|
-
var Select = styled21.select`
|
|
1042
|
+
var Select = styled39.select`
|
|
1153
1043
|
width: 100%;
|
|
1154
1044
|
color: ${colors.text.subtle};
|
|
1155
1045
|
background: transparent;
|
|
@@ -1171,7 +1061,7 @@ var Select = styled21.select`
|
|
|
1171
1061
|
color: ${colors.text.subtle};
|
|
1172
1062
|
}
|
|
1173
1063
|
`;
|
|
1174
|
-
var OptionItem =
|
|
1064
|
+
var OptionItem = styled39.option`
|
|
1175
1065
|
color: ${(props) => props.disabled ? colors.text.light : colors.text.subtle};
|
|
1176
1066
|
`;
|
|
1177
1067
|
var Dropdown = ({
|
|
@@ -1188,8 +1078,8 @@ var Dropdown = ({
|
|
|
1188
1078
|
() => error ? typeof error === "string" && error?.length > 0 : false,
|
|
1189
1079
|
[error]
|
|
1190
1080
|
);
|
|
1191
|
-
return /* @__PURE__ */
|
|
1192
|
-
typeof label === "string" && /* @__PURE__ */
|
|
1081
|
+
return /* @__PURE__ */ jsxs(InputContainer, { error, children: [
|
|
1082
|
+
typeof label === "string" && /* @__PURE__ */ jsx(
|
|
1193
1083
|
FloatingLabel,
|
|
1194
1084
|
{
|
|
1195
1085
|
value: label,
|
|
@@ -1197,7 +1087,7 @@ var Dropdown = ({
|
|
|
1197
1087
|
fontWeight: "600"
|
|
1198
1088
|
}
|
|
1199
1089
|
),
|
|
1200
|
-
/* @__PURE__ */
|
|
1090
|
+
/* @__PURE__ */ jsxs(
|
|
1201
1091
|
Select,
|
|
1202
1092
|
{
|
|
1203
1093
|
name,
|
|
@@ -1206,16 +1096,13 @@ var Dropdown = ({
|
|
|
1206
1096
|
isInvalid,
|
|
1207
1097
|
disabled,
|
|
1208
1098
|
children: [
|
|
1209
|
-
/* @__PURE__ */
|
|
1210
|
-
options.map((option) => /* @__PURE__ */
|
|
1099
|
+
/* @__PURE__ */ jsx(OptionItem, { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
1100
|
+
options.map((option) => /* @__PURE__ */ jsx(OptionItem, { value: option.value, children: option.label }, option.value))
|
|
1211
1101
|
]
|
|
1212
1102
|
}
|
|
1213
1103
|
)
|
|
1214
1104
|
] });
|
|
1215
1105
|
};
|
|
1216
|
-
|
|
1217
|
-
// src/components/Filter/Filter.tsx
|
|
1218
|
-
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1219
1106
|
function Filter({
|
|
1220
1107
|
name,
|
|
1221
1108
|
label,
|
|
@@ -1224,7 +1111,7 @@ function Filter({
|
|
|
1224
1111
|
onChange,
|
|
1225
1112
|
placeholder = "Filter by User"
|
|
1226
1113
|
}) {
|
|
1227
|
-
return /* @__PURE__ */
|
|
1114
|
+
return /* @__PURE__ */ jsx(
|
|
1228
1115
|
Dropdown,
|
|
1229
1116
|
{
|
|
1230
1117
|
name,
|
|
@@ -1236,11 +1123,6 @@ function Filter({
|
|
|
1236
1123
|
}
|
|
1237
1124
|
);
|
|
1238
1125
|
}
|
|
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";
|
|
1244
1126
|
function NavMenu({ direction, items, selected = "" }) {
|
|
1245
1127
|
const containerStyle = tv({
|
|
1246
1128
|
base: "flex",
|
|
@@ -1254,22 +1136,22 @@ function NavMenu({ direction, items, selected = "" }) {
|
|
|
1254
1136
|
direction: "horizontal"
|
|
1255
1137
|
}
|
|
1256
1138
|
});
|
|
1257
|
-
return /* @__PURE__ */
|
|
1139
|
+
return /* @__PURE__ */ jsx("ul", { className: containerStyle({ direction }), children: items.map((item, i) => /* @__PURE__ */ jsxs(
|
|
1258
1140
|
"li",
|
|
1259
1141
|
{
|
|
1260
1142
|
className: "mb-2 max-h-10 hover:max-h-400 transition-all overflow-hidden duration-500",
|
|
1261
1143
|
children: [
|
|
1262
|
-
/* @__PURE__ */
|
|
1144
|
+
/* @__PURE__ */ jsxs(
|
|
1263
1145
|
Link2,
|
|
1264
1146
|
{
|
|
1265
1147
|
href: item.link || "",
|
|
1266
1148
|
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`,
|
|
1267
1149
|
children: [
|
|
1268
|
-
/* @__PURE__ */
|
|
1150
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1269
1151
|
item.icon && item.icon,
|
|
1270
|
-
/* @__PURE__ */
|
|
1152
|
+
/* @__PURE__ */ jsx("span", { children: item.title })
|
|
1271
1153
|
] }),
|
|
1272
|
-
item.items && /* @__PURE__ */
|
|
1154
|
+
item.items && /* @__PURE__ */ jsx("span", { className: "transform", children: /* @__PURE__ */ jsx(
|
|
1273
1155
|
"svg",
|
|
1274
1156
|
{
|
|
1275
1157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1277,7 +1159,7 @@ function NavMenu({ direction, items, selected = "" }) {
|
|
|
1277
1159
|
height: 20,
|
|
1278
1160
|
viewBox: "0 0 24 24",
|
|
1279
1161
|
fill: "none",
|
|
1280
|
-
children: /* @__PURE__ */
|
|
1162
|
+
children: /* @__PURE__ */ jsx(
|
|
1281
1163
|
"path",
|
|
1282
1164
|
{
|
|
1283
1165
|
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",
|
|
@@ -1289,20 +1171,20 @@ function NavMenu({ direction, items, selected = "" }) {
|
|
|
1289
1171
|
]
|
|
1290
1172
|
}
|
|
1291
1173
|
),
|
|
1292
|
-
/* @__PURE__ */
|
|
1174
|
+
/* @__PURE__ */ jsx("div", { children: item.items && /* @__PURE__ */ jsx("ul", { className: "pl-8 p-4 rounded-md", children: item.items.map((subItem, i2) => /* @__PURE__ */ jsx("li", { className: "mb-2", children: /* @__PURE__ */ jsxs(
|
|
1293
1175
|
Link2,
|
|
1294
1176
|
{
|
|
1295
1177
|
href: subItem.link || "#",
|
|
1296
1178
|
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",
|
|
1297
1179
|
children: [
|
|
1298
|
-
subItem.icon && /* @__PURE__ */
|
|
1180
|
+
subItem.icon && /* @__PURE__ */ jsx(
|
|
1299
1181
|
"span",
|
|
1300
1182
|
{
|
|
1301
1183
|
className: "mr-2",
|
|
1302
1184
|
dangerouslySetInnerHTML: { __html: subItem.icon }
|
|
1303
1185
|
}
|
|
1304
1186
|
),
|
|
1305
|
-
/* @__PURE__ */
|
|
1187
|
+
/* @__PURE__ */ jsx("span", { children: subItem.title })
|
|
1306
1188
|
]
|
|
1307
1189
|
}
|
|
1308
1190
|
) }, i2)) }) })
|
|
@@ -1311,10 +1193,6 @@ function NavMenu({ direction, items, selected = "" }) {
|
|
|
1311
1193
|
i
|
|
1312
1194
|
)) });
|
|
1313
1195
|
}
|
|
1314
|
-
|
|
1315
|
-
// src/components/SearchBar/Search.tsx
|
|
1316
|
-
import { useEffect, useState } from "react";
|
|
1317
|
-
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1318
1196
|
var Search = ({
|
|
1319
1197
|
value,
|
|
1320
1198
|
onChange,
|
|
@@ -1331,7 +1209,7 @@ var Search = ({
|
|
|
1331
1209
|
const handleChange = (e) => {
|
|
1332
1210
|
setSearchTerm(e.target.value);
|
|
1333
1211
|
};
|
|
1334
|
-
return /* @__PURE__ */
|
|
1212
|
+
return /* @__PURE__ */ jsx(
|
|
1335
1213
|
"input",
|
|
1336
1214
|
{
|
|
1337
1215
|
type: "text",
|
|
@@ -1343,10 +1221,6 @@ var Search = ({
|
|
|
1343
1221
|
}
|
|
1344
1222
|
);
|
|
1345
1223
|
};
|
|
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";
|
|
1350
1224
|
var Options = [
|
|
1351
1225
|
{
|
|
1352
1226
|
value: "desc",
|
|
@@ -1358,28 +1232,25 @@ var Options = [
|
|
|
1358
1232
|
}
|
|
1359
1233
|
];
|
|
1360
1234
|
var SortBy = ({ value, onChange }) => {
|
|
1361
|
-
const [selected, setSelected] =
|
|
1362
|
-
|
|
1235
|
+
const [selected, setSelected] = useState(value);
|
|
1236
|
+
useEffect(() => {
|
|
1363
1237
|
const handler = setTimeout(() => {
|
|
1364
1238
|
onChange(selected);
|
|
1365
1239
|
});
|
|
1366
1240
|
return () => clearTimeout(handler);
|
|
1367
1241
|
}, [selected, onChange]);
|
|
1368
|
-
return /* @__PURE__ */
|
|
1242
|
+
return /* @__PURE__ */ jsx(
|
|
1369
1243
|
"select",
|
|
1370
1244
|
{
|
|
1371
1245
|
value: selected,
|
|
1372
1246
|
onChange: (e) => setSelected(e.target.value),
|
|
1373
1247
|
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",
|
|
1374
|
-
children: Options.map((option) => /* @__PURE__ */
|
|
1248
|
+
children: Options.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value))
|
|
1375
1249
|
}
|
|
1376
1250
|
);
|
|
1377
1251
|
};
|
|
1378
|
-
|
|
1379
|
-
// src/components/Spinner.tsx
|
|
1380
|
-
import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1381
1252
|
function Spinner(props) {
|
|
1382
|
-
return /* @__PURE__ */
|
|
1253
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
1383
1254
|
"svg",
|
|
1384
1255
|
{
|
|
1385
1256
|
"aria-hidden": "true",
|
|
@@ -1389,14 +1260,14 @@ function Spinner(props) {
|
|
|
1389
1260
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1390
1261
|
...props,
|
|
1391
1262
|
children: [
|
|
1392
|
-
/* @__PURE__ */
|
|
1263
|
+
/* @__PURE__ */ jsx(
|
|
1393
1264
|
"path",
|
|
1394
1265
|
{
|
|
1395
1266
|
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",
|
|
1396
1267
|
fill: "currentColor"
|
|
1397
1268
|
}
|
|
1398
1269
|
),
|
|
1399
|
-
/* @__PURE__ */
|
|
1270
|
+
/* @__PURE__ */ jsx(
|
|
1400
1271
|
"path",
|
|
1401
1272
|
{
|
|
1402
1273
|
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",
|
|
@@ -1407,30 +1278,6 @@ function Spinner(props) {
|
|
|
1407
1278
|
}
|
|
1408
1279
|
) });
|
|
1409
1280
|
}
|
|
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";
|
|
1434
1281
|
var Dialog = ({
|
|
1435
1282
|
open,
|
|
1436
1283
|
onClose,
|
|
@@ -1441,8 +1288,8 @@ var Dialog = ({
|
|
|
1441
1288
|
secondaryText,
|
|
1442
1289
|
secondaryHandler
|
|
1443
1290
|
}) => {
|
|
1444
|
-
return /* @__PURE__ */
|
|
1445
|
-
|
|
1291
|
+
return /* @__PURE__ */ jsx(Transition, { appear: true, show: open, as: Fragment$1, children: /* @__PURE__ */ jsxs(
|
|
1292
|
+
Dialog$1,
|
|
1446
1293
|
{
|
|
1447
1294
|
open,
|
|
1448
1295
|
as: "div",
|
|
@@ -1450,28 +1297,28 @@ var Dialog = ({
|
|
|
1450
1297
|
onClose,
|
|
1451
1298
|
__demoMode: true,
|
|
1452
1299
|
children: [
|
|
1453
|
-
/* @__PURE__ */
|
|
1300
|
+
/* @__PURE__ */ jsx(
|
|
1454
1301
|
Transition.Child,
|
|
1455
1302
|
{
|
|
1456
|
-
as:
|
|
1303
|
+
as: Fragment$1,
|
|
1457
1304
|
enter: "ease-out duration-300",
|
|
1458
1305
|
leave: "ease-in duration-500",
|
|
1459
1306
|
enterFrom: "opacity-0",
|
|
1460
1307
|
enterTo: "opacity-100",
|
|
1461
1308
|
leaveFrom: "opacity-100",
|
|
1462
1309
|
leaveTo: "opacity-0",
|
|
1463
|
-
children: /* @__PURE__ */
|
|
1310
|
+
children: /* @__PURE__ */ jsx("div", { className: "fixed inset-0 bg-black/30" })
|
|
1464
1311
|
}
|
|
1465
1312
|
),
|
|
1466
|
-
/* @__PURE__ */
|
|
1313
|
+
/* @__PURE__ */ jsx("div", { className: "fixed inset-0 z-10 w-screen overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: "flex min-h-full items-center justify-center p-4", children: /* @__PURE__ */ jsxs(
|
|
1467
1314
|
DialogPanel,
|
|
1468
1315
|
{
|
|
1469
1316
|
transition: true,
|
|
1470
1317
|
className: "w-full max-w-md rounded-lg bg-white dark:bg-white/5 p-6 backdrop-blur-1xl duration-300 ease-out",
|
|
1471
1318
|
style: { maxWidth: "515px" },
|
|
1472
1319
|
children: [
|
|
1473
|
-
/* @__PURE__ */
|
|
1474
|
-
/* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-2", children: [
|
|
1321
|
+
/* @__PURE__ */ jsx(
|
|
1475
1322
|
DialogTitle,
|
|
1476
1323
|
{
|
|
1477
1324
|
as: "h3",
|
|
@@ -1479,7 +1326,7 @@ var Dialog = ({
|
|
|
1479
1326
|
children: title
|
|
1480
1327
|
}
|
|
1481
1328
|
),
|
|
1482
|
-
/* @__PURE__ */
|
|
1329
|
+
/* @__PURE__ */ jsx(
|
|
1483
1330
|
"button",
|
|
1484
1331
|
{
|
|
1485
1332
|
type: "button",
|
|
@@ -1492,21 +1339,21 @@ var Dialog = ({
|
|
|
1492
1339
|
)
|
|
1493
1340
|
] }),
|
|
1494
1341
|
children,
|
|
1495
|
-
/* @__PURE__ */
|
|
1342
|
+
/* @__PURE__ */ jsxs(
|
|
1496
1343
|
"div",
|
|
1497
1344
|
{
|
|
1498
1345
|
className: `${secondaryHandler && secondaryText ? "flex justify-center mt-4 gap-4" : "mt-4"}`,
|
|
1499
1346
|
children: [
|
|
1500
|
-
buttonHandler && /* @__PURE__ */
|
|
1501
|
-
|
|
1347
|
+
buttonHandler && /* @__PURE__ */ jsx(
|
|
1348
|
+
Button$1,
|
|
1502
1349
|
{
|
|
1503
1350
|
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",
|
|
1504
1351
|
onClick: buttonHandler,
|
|
1505
1352
|
children: buttonText
|
|
1506
1353
|
}
|
|
1507
1354
|
),
|
|
1508
|
-
secondaryHandler && secondaryText && /* @__PURE__ */
|
|
1509
|
-
|
|
1355
|
+
secondaryHandler && secondaryText && /* @__PURE__ */ jsx(
|
|
1356
|
+
Button$1,
|
|
1510
1357
|
{
|
|
1511
1358
|
className: "bg-gray-200 text-gray-800 px-4 py-2 w-24 rounded hover:bg-gray-300",
|
|
1512
1359
|
onClick: secondaryHandler,
|
|
@@ -1523,10 +1370,7 @@ var Dialog = ({
|
|
|
1523
1370
|
}
|
|
1524
1371
|
) });
|
|
1525
1372
|
};
|
|
1526
|
-
|
|
1527
|
-
// src/components/TableRow/TableRow.tsx
|
|
1528
|
-
import { jsx as jsx28, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1529
|
-
var itemContainer = tv2({
|
|
1373
|
+
var itemContainer = tv({
|
|
1530
1374
|
base: "rounded-2xl mb-2 px-8 py-3 flex flex-wrap items-center justify-between gap-4",
|
|
1531
1375
|
variants: {
|
|
1532
1376
|
variant: {
|
|
@@ -1553,30 +1397,30 @@ var getStatusBadge = (status, transactionType) => {
|
|
|
1553
1397
|
const base = "px-3 rounded-xl py-1 text-gray-400 text-xs font-bold uppercase";
|
|
1554
1398
|
switch (status) {
|
|
1555
1399
|
case "DRAFT":
|
|
1556
|
-
return /* @__PURE__ */
|
|
1400
|
+
return /* @__PURE__ */ jsx("span", { className: `${base} bg-purple-400`, children: "Draft" });
|
|
1557
1401
|
case "PENDING":
|
|
1558
|
-
return /* @__PURE__ */
|
|
1402
|
+
return /* @__PURE__ */ jsx("span", { className: `${base} bg-yellow-200`, children: transactionType?.toUpperCase() === "LEASE" ? "Awaiting Lessor Information" : "Awaiting Seller Information" });
|
|
1559
1403
|
case "ACTIVE":
|
|
1560
|
-
return /* @__PURE__ */
|
|
1404
|
+
return /* @__PURE__ */ jsx("span", { className: `${base} bg-blue-400`, children: "Active" });
|
|
1561
1405
|
case "FINALISED":
|
|
1562
|
-
return /* @__PURE__ */
|
|
1406
|
+
return /* @__PURE__ */ jsx("span", { className: `${base} bg-green-400`, children: "Finalised" });
|
|
1563
1407
|
case "ARCHIVED":
|
|
1564
|
-
return /* @__PURE__ */
|
|
1408
|
+
return /* @__PURE__ */ jsx("span", { className: `${base} bg-red-400`, children: "Archived" });
|
|
1565
1409
|
default:
|
|
1566
|
-
return /* @__PURE__ */
|
|
1410
|
+
return /* @__PURE__ */ jsx("span", { className: `${base} bg-gray-200`, children: status });
|
|
1567
1411
|
}
|
|
1568
1412
|
};
|
|
1569
1413
|
var RowCell = ({
|
|
1570
1414
|
header,
|
|
1571
1415
|
item
|
|
1572
|
-
}) => /* @__PURE__ */
|
|
1573
|
-
/* @__PURE__ */
|
|
1574
|
-
header.filterAccessor === "status" && /* @__PURE__ */
|
|
1416
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-[120px]", children: [
|
|
1417
|
+
/* @__PURE__ */ jsxs("p", { className: "font-semibold text-gray-300 text-sm tracking-wide flex items-center gap-1", children: [
|
|
1418
|
+
header.filterAccessor === "status" && /* @__PURE__ */ jsx(ClockIcon, {}),
|
|
1575
1419
|
header.heading
|
|
1576
1420
|
] }),
|
|
1577
|
-
/* @__PURE__ */
|
|
1578
|
-
header.filterAccessor === "formattedAddress" && /* @__PURE__ */
|
|
1579
|
-
header.filterAccessor === "formattedAddress" ? /* @__PURE__ */
|
|
1421
|
+
/* @__PURE__ */ jsxs("p", { className: "text-base font-medium text-gray-400 flex items-center gap-1", children: [
|
|
1422
|
+
header.filterAccessor === "formattedAddress" && /* @__PURE__ */ jsx(HomeIcon, {}),
|
|
1423
|
+
header.filterAccessor === "formattedAddress" ? /* @__PURE__ */ jsx("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]
|
|
1580
1424
|
] })
|
|
1581
1425
|
] });
|
|
1582
1426
|
var DeleteDialog = ({
|
|
@@ -1584,7 +1428,7 @@ var DeleteDialog = ({
|
|
|
1584
1428
|
onClose,
|
|
1585
1429
|
onConfirm,
|
|
1586
1430
|
isDeleting
|
|
1587
|
-
}) => /* @__PURE__ */
|
|
1431
|
+
}) => /* @__PURE__ */ jsx(
|
|
1588
1432
|
Dialog,
|
|
1589
1433
|
{
|
|
1590
1434
|
open,
|
|
@@ -1594,9 +1438,9 @@ var DeleteDialog = ({
|
|
|
1594
1438
|
buttonHandler: onConfirm,
|
|
1595
1439
|
secondaryText: "Cancel",
|
|
1596
1440
|
secondaryHandler: onClose,
|
|
1597
|
-
children: /* @__PURE__ */
|
|
1598
|
-
/* @__PURE__ */
|
|
1599
|
-
/* @__PURE__ */
|
|
1441
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center", children: [
|
|
1442
|
+
/* @__PURE__ */ jsx(TrashIcon, {}),
|
|
1443
|
+
/* @__PURE__ */ jsx("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)." })
|
|
1600
1444
|
] })
|
|
1601
1445
|
}
|
|
1602
1446
|
);
|
|
@@ -1607,22 +1451,22 @@ var TableRow = ({
|
|
|
1607
1451
|
onDelete,
|
|
1608
1452
|
variant = "Primary"
|
|
1609
1453
|
}) => {
|
|
1610
|
-
const [perPage, setPerPage] =
|
|
1454
|
+
const [perPage, setPerPage] = useState(
|
|
1611
1455
|
paginationOptions.perPage ?? 10
|
|
1612
1456
|
);
|
|
1613
|
-
const [page, setPage] =
|
|
1614
|
-
const [isDialogOpen, setIsDialogOpen] =
|
|
1615
|
-
const [selectedTransactionId, setSelectedTransactionId] =
|
|
1616
|
-
const [isDeleting, setIsDeleting] =
|
|
1617
|
-
const totalPages =
|
|
1457
|
+
const [page, setPage] = useState(0);
|
|
1458
|
+
const [isDialogOpen, setIsDialogOpen] = useState(false);
|
|
1459
|
+
const [selectedTransactionId, setSelectedTransactionId] = useState(null);
|
|
1460
|
+
const [isDeleting, setIsDeleting] = useState(false);
|
|
1461
|
+
const totalPages = useMemo(
|
|
1618
1462
|
() => Math.ceil(data.length / perPage),
|
|
1619
1463
|
[data, perPage]
|
|
1620
1464
|
);
|
|
1621
|
-
const paginatedData =
|
|
1465
|
+
const paginatedData = useMemo(
|
|
1622
1466
|
() => data.slice(page * perPage, (page + 1) * perPage),
|
|
1623
1467
|
[data, page, perPage]
|
|
1624
1468
|
);
|
|
1625
|
-
|
|
1469
|
+
useEffect(() => {
|
|
1626
1470
|
if (paginationOptions.perPage) {
|
|
1627
1471
|
setPerPage(paginationOptions.perPage);
|
|
1628
1472
|
}
|
|
@@ -1651,23 +1495,23 @@ var TableRow = ({
|
|
|
1651
1495
|
setPerPage(value);
|
|
1652
1496
|
setPage(0);
|
|
1653
1497
|
};
|
|
1654
|
-
return /* @__PURE__ */
|
|
1655
|
-
paginatedData.map((item, idx) => /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
1499
|
+
paginatedData.map((item, idx) => /* @__PURE__ */ jsxs(
|
|
1656
1500
|
"div",
|
|
1657
1501
|
{
|
|
1658
1502
|
className: `${itemContainer({ variant })} ${idx % 2 === 0 ? "bg-gray-50 dark:bg-gray-600" : ""}`,
|
|
1659
1503
|
children: [
|
|
1660
|
-
headers.map((header) => /* @__PURE__ */
|
|
1661
|
-
/* @__PURE__ */
|
|
1662
|
-
/* @__PURE__ */
|
|
1663
|
-
|
|
1504
|
+
headers.map((header) => /* @__PURE__ */ jsx(RowCell, { header, item }, header.filterAccessor)),
|
|
1505
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-1", children: [
|
|
1506
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-[#033c89] text-sm tracking-wide", children: /* @__PURE__ */ jsx(
|
|
1507
|
+
Link2,
|
|
1664
1508
|
{
|
|
1665
1509
|
href: `${item.url}`,
|
|
1666
1510
|
className: "text-[#033c89] hover:underline",
|
|
1667
1511
|
children: "View Details"
|
|
1668
1512
|
}
|
|
1669
1513
|
) }),
|
|
1670
|
-
onDelete && /* @__PURE__ */
|
|
1514
|
+
onDelete && /* @__PURE__ */ jsxs(
|
|
1671
1515
|
"button",
|
|
1672
1516
|
{
|
|
1673
1517
|
onClick: (e) => {
|
|
@@ -1677,8 +1521,8 @@ var TableRow = ({
|
|
|
1677
1521
|
},
|
|
1678
1522
|
className: "flex items-center gap-1 text-red-500 hover:text-red-700",
|
|
1679
1523
|
children: [
|
|
1680
|
-
/* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1524
|
+
/* @__PURE__ */ jsx(TrashIcon, {}),
|
|
1525
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Delete" })
|
|
1682
1526
|
]
|
|
1683
1527
|
}
|
|
1684
1528
|
)
|
|
@@ -1687,33 +1531,33 @@ var TableRow = ({
|
|
|
1687
1531
|
},
|
|
1688
1532
|
item.id
|
|
1689
1533
|
)),
|
|
1690
|
-
/* @__PURE__ */
|
|
1691
|
-
/* @__PURE__ */
|
|
1692
|
-
/* @__PURE__ */
|
|
1534
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center px-6 pt-8 border-t border-gray-400", children: [
|
|
1535
|
+
/* @__PURE__ */ jsx("div", { className: "w-full sm:w-auto mb-4 sm:mb-0 mr-auto", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
1536
|
+
/* @__PURE__ */ jsxs(
|
|
1693
1537
|
"button",
|
|
1694
1538
|
{
|
|
1695
1539
|
disabled: true,
|
|
1696
1540
|
className: "flex items-center justify-center h-6 w-11 bg-gray-100 dark:bg-gray-600 rounded-full",
|
|
1697
1541
|
children: [
|
|
1698
|
-
/* @__PURE__ */
|
|
1699
|
-
/* @__PURE__ */
|
|
1542
|
+
/* @__PURE__ */ jsx("div", { className: "h-5 w-5 rounded-full dark:bg-gray-400 bg-gray-50" }),
|
|
1543
|
+
/* @__PURE__ */ jsx("div", { className: "h-5 w-5 rounded-full bg-transparent" })
|
|
1700
1544
|
]
|
|
1701
1545
|
}
|
|
1702
1546
|
),
|
|
1703
|
-
/* @__PURE__ */
|
|
1547
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-gray-200 dark:text-gray-400 font-medium", children: "Dense" })
|
|
1704
1548
|
] }) }),
|
|
1705
|
-
/* @__PURE__ */
|
|
1706
|
-
/* @__PURE__ */
|
|
1707
|
-
/* @__PURE__ */
|
|
1549
|
+
/* @__PURE__ */ jsx("div", { className: "w-full sm:w-auto mb-6 sm:mb-0 sm:mr-6", children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-end ml-auto", children: /* @__PURE__ */ jsxs("div", { className: "sm:mr-8 flex items-center gap-2", children: [
|
|
1550
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-gray-400 font-medium", children: "Rows per page" }),
|
|
1551
|
+
/* @__PURE__ */ jsx(
|
|
1708
1552
|
"select",
|
|
1709
1553
|
{
|
|
1710
1554
|
value: perPage,
|
|
1711
1555
|
onChange: (e) => handleRowsPerPageChange(Number(e.target.value)),
|
|
1712
1556
|
className: "text-sm text-gray-200 font-medium bg-transparent outline-none",
|
|
1713
|
-
children: [5, 10, 20].map((size) => /* @__PURE__ */
|
|
1557
|
+
children: [5, 10, 20].map((size) => /* @__PURE__ */ jsx("option", { value: size, children: size }, size))
|
|
1714
1558
|
}
|
|
1715
1559
|
),
|
|
1716
|
-
/* @__PURE__ */
|
|
1560
|
+
/* @__PURE__ */ jsxs("span", { className: "hidden sm:inline text-sm text-gray-400 font-medium", children: [
|
|
1717
1561
|
page * perPage + 1,
|
|
1718
1562
|
"-",
|
|
1719
1563
|
Math.min((page + 1) * perPage, data.length),
|
|
@@ -1721,8 +1565,8 @@ var TableRow = ({
|
|
|
1721
1565
|
data.length
|
|
1722
1566
|
] })
|
|
1723
1567
|
] }) }) }),
|
|
1724
|
-
/* @__PURE__ */
|
|
1725
|
-
/* @__PURE__ */
|
|
1568
|
+
/* @__PURE__ */ jsx("div", { className: "w-full sm:w-auto mb-6 sm:mb-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end", children: [
|
|
1569
|
+
/* @__PURE__ */ jsx(
|
|
1726
1570
|
"a",
|
|
1727
1571
|
{
|
|
1728
1572
|
onClick: (e) => {
|
|
@@ -1731,7 +1575,7 @@ var TableRow = ({
|
|
|
1731
1575
|
},
|
|
1732
1576
|
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"}`,
|
|
1733
1577
|
href: "#",
|
|
1734
|
-
children: /* @__PURE__ */
|
|
1578
|
+
children: /* @__PURE__ */ jsx(
|
|
1735
1579
|
"svg",
|
|
1736
1580
|
{
|
|
1737
1581
|
width: 6,
|
|
@@ -1739,7 +1583,7 @@ var TableRow = ({
|
|
|
1739
1583
|
viewBox: "0 0 6 8",
|
|
1740
1584
|
fill: "none",
|
|
1741
1585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1742
|
-
children: /* @__PURE__ */
|
|
1586
|
+
children: /* @__PURE__ */ jsx(
|
|
1743
1587
|
"path",
|
|
1744
1588
|
{
|
|
1745
1589
|
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",
|
|
@@ -1750,7 +1594,7 @@ var TableRow = ({
|
|
|
1750
1594
|
)
|
|
1751
1595
|
}
|
|
1752
1596
|
),
|
|
1753
|
-
/* @__PURE__ */
|
|
1597
|
+
/* @__PURE__ */ jsx(
|
|
1754
1598
|
"a",
|
|
1755
1599
|
{
|
|
1756
1600
|
onClick: (e) => {
|
|
@@ -1759,7 +1603,7 @@ var TableRow = ({
|
|
|
1759
1603
|
},
|
|
1760
1604
|
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"}`,
|
|
1761
1605
|
href: "#",
|
|
1762
|
-
children: /* @__PURE__ */
|
|
1606
|
+
children: /* @__PURE__ */ jsx(
|
|
1763
1607
|
"svg",
|
|
1764
1608
|
{
|
|
1765
1609
|
width: 6,
|
|
@@ -1767,7 +1611,7 @@ var TableRow = ({
|
|
|
1767
1611
|
viewBox: "0 0 6 10",
|
|
1768
1612
|
fill: "none",
|
|
1769
1613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1770
|
-
children: /* @__PURE__ */
|
|
1614
|
+
children: /* @__PURE__ */ jsx(
|
|
1771
1615
|
"path",
|
|
1772
1616
|
{
|
|
1773
1617
|
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",
|
|
@@ -1780,7 +1624,7 @@ var TableRow = ({
|
|
|
1780
1624
|
)
|
|
1781
1625
|
] }) })
|
|
1782
1626
|
] }),
|
|
1783
|
-
/* @__PURE__ */
|
|
1627
|
+
/* @__PURE__ */ jsx(
|
|
1784
1628
|
DeleteDialog,
|
|
1785
1629
|
{
|
|
1786
1630
|
open: isDialogOpen,
|
|
@@ -1791,34 +1635,23 @@ var TableRow = ({
|
|
|
1791
1635
|
)
|
|
1792
1636
|
] });
|
|
1793
1637
|
};
|
|
1794
|
-
|
|
1795
|
-
// src/components/Table/Table.tsx
|
|
1796
|
-
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1797
1638
|
var Table = ({ data, headers, onDelete }) => {
|
|
1798
|
-
|
|
1799
|
-
return /* @__PURE__ */
|
|
1639
|
+
useMemo(() => data?.length > 0, [data]);
|
|
1640
|
+
return /* @__PURE__ */ jsx("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsx("div", { className: "w-full border-collapse", children: /* @__PURE__ */ jsx(TableRow, { data, headers, onDelete }) }) });
|
|
1800
1641
|
};
|
|
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";
|
|
1805
1642
|
var TableInner = ({
|
|
1806
1643
|
data = [],
|
|
1807
1644
|
headers = [],
|
|
1808
1645
|
renderOnEmpty = null,
|
|
1809
1646
|
onDelete
|
|
1810
1647
|
}) => {
|
|
1811
|
-
const isNotEmpty =
|
|
1812
|
-
return /* @__PURE__ */
|
|
1813
|
-
/* @__PURE__ */
|
|
1648
|
+
const isNotEmpty = useMemo(() => data.length > 0, [data]);
|
|
1649
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1650
|
+
/* @__PURE__ */ jsx(Table, { data, headers, onDelete }),
|
|
1814
1651
|
!isNotEmpty && renderOnEmpty
|
|
1815
1652
|
] });
|
|
1816
1653
|
};
|
|
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({
|
|
1654
|
+
var itemContainer2 = tv({
|
|
1822
1655
|
base: "rounded-2xl mb-2 px-8 py-3 flex flex-wrap items-center justify-between gap-4",
|
|
1823
1656
|
variants: {
|
|
1824
1657
|
variant: {
|
|
@@ -1850,28 +1683,28 @@ function TableListItem({
|
|
|
1850
1683
|
const statusDisplay = (status) => {
|
|
1851
1684
|
switch (status) {
|
|
1852
1685
|
case "DRAFT":
|
|
1853
|
-
return /* @__PURE__ */
|
|
1686
|
+
return /* @__PURE__ */ jsx("span", { className: "px-3 rounded-xl py-1 bg-purple-400 text-gray-400 text-xs font-bold uppercase", children: "Draft" });
|
|
1854
1687
|
case "PENDING":
|
|
1855
|
-
return /* @__PURE__ */
|
|
1688
|
+
return /* @__PURE__ */ jsx("span", { className: "px-3 rounded-xl py-1 bg-yellow-200 text-gray-400 text-xs font-bold uppercase", children: "Pending" });
|
|
1856
1689
|
case "ACTIVE":
|
|
1857
|
-
return /* @__PURE__ */
|
|
1690
|
+
return /* @__PURE__ */ jsx("span", { className: "px-3 rounded-xl py-1 bg-blue-400 text-gray-400 text-xs font-bold uppercase", children: "Active" });
|
|
1858
1691
|
case "FINALISED":
|
|
1859
|
-
return /* @__PURE__ */
|
|
1692
|
+
return /* @__PURE__ */ jsx("span", { className: "px-3 rounded-xl py-1 bg-green-400 text-gray-400 text-xs font-bold uppercase", children: "Finalised" });
|
|
1860
1693
|
case "ARCHIVED":
|
|
1861
|
-
return /* @__PURE__ */
|
|
1694
|
+
return /* @__PURE__ */ jsx("span", { className: "px-3 rounded-xl py-1 bg-red-400 text-gray-400 text-xs font-bold uppercase", children: "Archived" });
|
|
1862
1695
|
default:
|
|
1863
|
-
return /* @__PURE__ */
|
|
1696
|
+
return /* @__PURE__ */ jsx("span", { className: "px-3 rounded-xl py-1 bg-gray-200 text-gray-400 text-xs font-bold uppercase", children: status });
|
|
1864
1697
|
}
|
|
1865
1698
|
};
|
|
1866
|
-
return /* @__PURE__ */
|
|
1699
|
+
return /* @__PURE__ */ jsxs(
|
|
1867
1700
|
"div",
|
|
1868
1701
|
{
|
|
1869
1702
|
className: `${itemContainer2({ variant })} ${alt ? "bg-gray-50 dark:bg-gray-600" : ""}`,
|
|
1870
1703
|
children: [
|
|
1871
|
-
/* @__PURE__ */
|
|
1872
|
-
/* @__PURE__ */
|
|
1873
|
-
/* @__PURE__ */
|
|
1874
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 w-52", children: [
|
|
1705
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-gray-300 text-sm -tracking-widest", children: "Title" }),
|
|
1706
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center", children: [
|
|
1707
|
+
/* @__PURE__ */ jsx("div", { className: "p-5 mr-2 inline-flex rounded-2xl", children: /* @__PURE__ */ jsxs(
|
|
1875
1708
|
"svg",
|
|
1876
1709
|
{
|
|
1877
1710
|
className: "w-4 h-4",
|
|
@@ -1881,7 +1714,7 @@ function TableListItem({
|
|
|
1881
1714
|
fill: "none",
|
|
1882
1715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1883
1716
|
children: [
|
|
1884
|
-
/* @__PURE__ */
|
|
1717
|
+
/* @__PURE__ */ jsx(
|
|
1885
1718
|
"path",
|
|
1886
1719
|
{
|
|
1887
1720
|
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",
|
|
@@ -1891,7 +1724,7 @@ function TableListItem({
|
|
|
1891
1724
|
strokeLinejoin: "round"
|
|
1892
1725
|
}
|
|
1893
1726
|
),
|
|
1894
|
-
/* @__PURE__ */
|
|
1727
|
+
/* @__PURE__ */ jsx(
|
|
1895
1728
|
"path",
|
|
1896
1729
|
{
|
|
1897
1730
|
d: "M9.5 2V5.5H13.0005",
|
|
@@ -1901,7 +1734,7 @@ function TableListItem({
|
|
|
1901
1734
|
strokeLinejoin: "round"
|
|
1902
1735
|
}
|
|
1903
1736
|
),
|
|
1904
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ jsx(
|
|
1905
1738
|
"path",
|
|
1906
1739
|
{
|
|
1907
1740
|
d: "M6.5 9.5H9.5",
|
|
@@ -1914,23 +1747,23 @@ function TableListItem({
|
|
|
1914
1747
|
]
|
|
1915
1748
|
}
|
|
1916
1749
|
) }),
|
|
1917
|
-
/* @__PURE__ */
|
|
1750
|
+
/* @__PURE__ */ jsx("p", { className: "text-gray-300 font-semibold w-xs text-sm grow", children: item.title })
|
|
1918
1751
|
] })
|
|
1919
1752
|
] }),
|
|
1920
|
-
item.status && /* @__PURE__ */
|
|
1921
|
-
/* @__PURE__ */
|
|
1753
|
+
item.status && /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end gap-2", children: [
|
|
1754
|
+
/* @__PURE__ */ jsx("p", { className: "font-semibold text-gray-300 text-sm -tracking-widest", children: "Status" }),
|
|
1922
1755
|
statusDisplay(item.status)
|
|
1923
1756
|
] }),
|
|
1924
|
-
/* @__PURE__ */
|
|
1925
|
-
item.type && /* @__PURE__ */
|
|
1926
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ jsx("div", { className: "text-gray-300 text-sm", children: dateTimeFormatter(item.date) }),
|
|
1758
|
+
item.type && /* @__PURE__ */ jsx("div", { className: "text-gray-300 text-sm", children: item.type }),
|
|
1759
|
+
/* @__PURE__ */ jsxs(
|
|
1927
1760
|
"a",
|
|
1928
1761
|
{
|
|
1929
1762
|
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",
|
|
1930
1763
|
href: item.url,
|
|
1931
1764
|
onClick: selectItemHandler ? () => selectItemHandler() : void 0,
|
|
1932
1765
|
children: [
|
|
1933
|
-
/* @__PURE__ */
|
|
1766
|
+
/* @__PURE__ */ jsx(
|
|
1934
1767
|
"svg",
|
|
1935
1768
|
{
|
|
1936
1769
|
width: "14",
|
|
@@ -1938,7 +1771,7 @@ function TableListItem({
|
|
|
1938
1771
|
viewBox: "0 0 14 15",
|
|
1939
1772
|
fill: "none",
|
|
1940
1773
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1941
|
-
children: /* @__PURE__ */
|
|
1774
|
+
children: /* @__PURE__ */ jsx(
|
|
1942
1775
|
"path",
|
|
1943
1776
|
{
|
|
1944
1777
|
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",
|
|
@@ -1947,7 +1780,7 @@ function TableListItem({
|
|
|
1947
1780
|
)
|
|
1948
1781
|
}
|
|
1949
1782
|
),
|
|
1950
|
-
/* @__PURE__ */
|
|
1783
|
+
/* @__PURE__ */ jsx("span", { className: "ml-2 text-xs text-gray-200 font-semibold", children: "View" })
|
|
1951
1784
|
]
|
|
1952
1785
|
}
|
|
1953
1786
|
)
|
|
@@ -1959,17 +1792,14 @@ function TableHeader({
|
|
|
1959
1792
|
headers,
|
|
1960
1793
|
variant = "Primary"
|
|
1961
1794
|
}) {
|
|
1962
|
-
return /* @__PURE__ */
|
|
1795
|
+
return /* @__PURE__ */ jsx(
|
|
1963
1796
|
"div",
|
|
1964
1797
|
{
|
|
1965
1798
|
className: `${itemContainer2({ variant })} bg-[#033c89] dark:bg-gray-800`,
|
|
1966
|
-
children: headers.map((item, i) => /* @__PURE__ */
|
|
1799
|
+
children: headers.map((item, i) => /* @__PURE__ */ jsx("div", { className: `flex items-center ${i == 0 ? "w-52" : ""}`, children: /* @__PURE__ */ jsx("p", { className: "text-gray-300 font-bold w-xs text-sm", children: item }) }, i))
|
|
1967
1800
|
}
|
|
1968
1801
|
);
|
|
1969
1802
|
}
|
|
1970
|
-
|
|
1971
|
-
// src/components/Tabs/Tabs.tsx
|
|
1972
|
-
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1973
1803
|
var Tabs = ({
|
|
1974
1804
|
value: tabValue,
|
|
1975
1805
|
onTabChange,
|
|
@@ -1978,7 +1808,7 @@ var Tabs = ({
|
|
|
1978
1808
|
const handleTabChange = (newTab) => {
|
|
1979
1809
|
onTabChange(newTab);
|
|
1980
1810
|
};
|
|
1981
|
-
return /* @__PURE__ */
|
|
1811
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx("div", { className: "px-4 border-b border-gray-300 bg-white", children: /* @__PURE__ */ jsx("div", { className: "flex gap-x-10 py-3", children: options.map(({ label, value }) => /* @__PURE__ */ jsx(
|
|
1982
1812
|
"button",
|
|
1983
1813
|
{
|
|
1984
1814
|
type: "button",
|
|
@@ -1989,12 +1819,7 @@ var Tabs = ({
|
|
|
1989
1819
|
value
|
|
1990
1820
|
)) }) }) });
|
|
1991
1821
|
};
|
|
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({
|
|
1822
|
+
var toastVariants = tv({
|
|
1998
1823
|
base: "z-[100] fixed left-0 bottom-0 p-4 transition-all duration-500 transform",
|
|
1999
1824
|
variants: {
|
|
2000
1825
|
show: {
|
|
@@ -2003,7 +1828,7 @@ var toastVariants = tv4({
|
|
|
2003
1828
|
}
|
|
2004
1829
|
}
|
|
2005
1830
|
});
|
|
2006
|
-
var containerVariants =
|
|
1831
|
+
var containerVariants = tv({
|
|
2007
1832
|
base: "rounded-lg shadow overflow-hidden p-2",
|
|
2008
1833
|
variants: {
|
|
2009
1834
|
type: {
|
|
@@ -2015,7 +1840,7 @@ var containerVariants = tv4({
|
|
|
2015
1840
|
}
|
|
2016
1841
|
}
|
|
2017
1842
|
});
|
|
2018
|
-
var iconVariants =
|
|
1843
|
+
var iconVariants = tv({
|
|
2019
1844
|
base: "flex-shrink-0 self-start inline-flex items-center justify-center w-10 h-10 mr-3 rounded-xl bg-opacity-20",
|
|
2020
1845
|
variants: {
|
|
2021
1846
|
type: {
|
|
@@ -2035,7 +1860,7 @@ function Toast({
|
|
|
2035
1860
|
duration = 5e3,
|
|
2036
1861
|
onClear
|
|
2037
1862
|
}) {
|
|
2038
|
-
|
|
1863
|
+
useEffect(() => {
|
|
2039
1864
|
if (duration && visible) {
|
|
2040
1865
|
const timer = setTimeout(() => {
|
|
2041
1866
|
setVisible && setVisible(false);
|
|
@@ -2047,7 +1872,7 @@ function Toast({
|
|
|
2047
1872
|
const icon = () => {
|
|
2048
1873
|
switch (type) {
|
|
2049
1874
|
case "Success":
|
|
2050
|
-
return /* @__PURE__ */
|
|
1875
|
+
return /* @__PURE__ */ jsx(
|
|
2051
1876
|
"svg",
|
|
2052
1877
|
{
|
|
2053
1878
|
width: "20",
|
|
@@ -2056,7 +1881,7 @@ function Toast({
|
|
|
2056
1881
|
fill: "none",
|
|
2057
1882
|
stroke: "#a1a1a1",
|
|
2058
1883
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2059
|
-
children: /* @__PURE__ */
|
|
1884
|
+
children: /* @__PURE__ */ jsx(
|
|
2060
1885
|
"path",
|
|
2061
1886
|
{
|
|
2062
1887
|
fillRule: "evenodd",
|
|
@@ -2068,7 +1893,7 @@ function Toast({
|
|
|
2068
1893
|
}
|
|
2069
1894
|
);
|
|
2070
1895
|
case "Warning":
|
|
2071
|
-
return /* @__PURE__ */
|
|
1896
|
+
return /* @__PURE__ */ jsx(
|
|
2072
1897
|
"svg",
|
|
2073
1898
|
{
|
|
2074
1899
|
width: "24",
|
|
@@ -2077,7 +1902,7 @@ function Toast({
|
|
|
2077
1902
|
fill: "none",
|
|
2078
1903
|
stroke: "#a1a1a1",
|
|
2079
1904
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2080
|
-
children: /* @__PURE__ */
|
|
1905
|
+
children: /* @__PURE__ */ jsx(
|
|
2081
1906
|
"path",
|
|
2082
1907
|
{
|
|
2083
1908
|
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",
|
|
@@ -2087,7 +1912,7 @@ function Toast({
|
|
|
2087
1912
|
}
|
|
2088
1913
|
);
|
|
2089
1914
|
case "Error":
|
|
2090
|
-
return /* @__PURE__ */
|
|
1915
|
+
return /* @__PURE__ */ jsx(
|
|
2091
1916
|
"svg",
|
|
2092
1917
|
{
|
|
2093
1918
|
width: "20",
|
|
@@ -2096,7 +1921,7 @@ function Toast({
|
|
|
2096
1921
|
fill: "none",
|
|
2097
1922
|
stroke: "#a1a1a1",
|
|
2098
1923
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2099
|
-
children: /* @__PURE__ */
|
|
1924
|
+
children: /* @__PURE__ */ jsx(
|
|
2100
1925
|
"path",
|
|
2101
1926
|
{
|
|
2102
1927
|
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",
|
|
@@ -2106,7 +1931,7 @@ function Toast({
|
|
|
2106
1931
|
}
|
|
2107
1932
|
);
|
|
2108
1933
|
case "Message":
|
|
2109
|
-
return /* @__PURE__ */
|
|
1934
|
+
return /* @__PURE__ */ jsx(
|
|
2110
1935
|
"svg",
|
|
2111
1936
|
{
|
|
2112
1937
|
width: "20",
|
|
@@ -2115,7 +1940,7 @@ function Toast({
|
|
|
2115
1940
|
fill: "none",
|
|
2116
1941
|
stroke: "#a1a1a1",
|
|
2117
1942
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2118
|
-
children: /* @__PURE__ */
|
|
1943
|
+
children: /* @__PURE__ */ jsx(
|
|
2119
1944
|
"path",
|
|
2120
1945
|
{
|
|
2121
1946
|
fillRule: "evenodd",
|
|
@@ -2133,14 +1958,14 @@ function Toast({
|
|
|
2133
1958
|
const toast = () => {
|
|
2134
1959
|
switch (type) {
|
|
2135
1960
|
case "Default":
|
|
2136
|
-
return /* @__PURE__ */
|
|
1961
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-wrap w-full h-full items-center justify-between", children: /* @__PURE__ */ jsx("div", { className: "w-full sm:w-auto px-4 py-4 sm:py-0 border-b border-gray-400 sm:border-transparent", children: /* @__PURE__ */ jsx("span", { className: "text-sm leading-5 text-gray-200 font-semibold", children: message }) }) });
|
|
2137
1962
|
default:
|
|
2138
|
-
return /* @__PURE__ */
|
|
2139
|
-
/* @__PURE__ */
|
|
2140
|
-
/* @__PURE__ */
|
|
2141
|
-
/* @__PURE__ */
|
|
1963
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap w-full h-full items-center justify-between", children: [
|
|
1964
|
+
/* @__PURE__ */ jsx("div", { className: "w-full sm:w-auto px-4 py-4 sm:py-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center pr-6", children: [
|
|
1965
|
+
/* @__PURE__ */ jsx("div", { className: iconVariants({ type }), children: icon() }),
|
|
1966
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm leading-5 text-gray-200", children: message })
|
|
2142
1967
|
] }) }),
|
|
2143
|
-
/* @__PURE__ */
|
|
1968
|
+
/* @__PURE__ */ jsx("div", { className: "w-20 h-16 border-l border-gray-800", children: /* @__PURE__ */ jsx(
|
|
2144
1969
|
"button",
|
|
2145
1970
|
{
|
|
2146
1971
|
onClick: () => {
|
|
@@ -2154,15 +1979,9 @@ function Toast({
|
|
|
2154
1979
|
] });
|
|
2155
1980
|
}
|
|
2156
1981
|
};
|
|
2157
|
-
return /* @__PURE__ */
|
|
1982
|
+
return /* @__PURE__ */ jsx("div", { className: toastVariants({ show: visible }), children: /* @__PURE__ */ jsx("div", { className: containerVariants({ type }), children: toast() }) });
|
|
2158
1983
|
}
|
|
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({
|
|
1984
|
+
var navbar = tv({
|
|
2166
1985
|
base: "sticky top-0 z-40 w-full transition-all duration-500",
|
|
2167
1986
|
variants: {
|
|
2168
1987
|
scrolled: {
|
|
@@ -2172,9 +1991,9 @@ var navbar = tv5({
|
|
|
2172
1991
|
}
|
|
2173
1992
|
});
|
|
2174
1993
|
function TopMenu({ logoUrl, children }) {
|
|
2175
|
-
const [scrolled, setScrolled] =
|
|
1994
|
+
const [scrolled, setScrolled] = useState(false);
|
|
2176
1995
|
const controls = useAnimation();
|
|
2177
|
-
|
|
1996
|
+
useEffect(() => {
|
|
2178
1997
|
const onScroll = () => {
|
|
2179
1998
|
const hasScrolled = window.scrollY > 30;
|
|
2180
1999
|
setScrolled(hasScrolled);
|
|
@@ -2188,42 +2007,28 @@ function TopMenu({ logoUrl, children }) {
|
|
|
2188
2007
|
window.addEventListener("scroll", onScroll);
|
|
2189
2008
|
return () => window.removeEventListener("scroll", onScroll);
|
|
2190
2009
|
}, [controls]);
|
|
2191
|
-
return /* @__PURE__ */
|
|
2192
|
-
/* @__PURE__ */
|
|
2193
|
-
/* @__PURE__ */
|
|
2194
|
-
/* @__PURE__ */
|
|
2010
|
+
return /* @__PURE__ */ jsx(motion.nav, { animate: controls, className: navbar({ scrolled }), children: /* @__PURE__ */ jsxs("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: [
|
|
2011
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-row", children: logoUrl && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2012
|
+
/* @__PURE__ */ jsx("a", { className: "block", href: "#", children: /* @__PURE__ */ jsx("img", { src: logoUrl, className: "h-7 mx-auto", alt: "" }) }),
|
|
2013
|
+
/* @__PURE__ */ jsx("span", { className: "text-gray-700 dark:text-gray-300 my-auto font-medium text-xl ml-4", children: "Property Practice" })
|
|
2195
2014
|
] }) }),
|
|
2196
|
-
/* @__PURE__ */
|
|
2015
|
+
/* @__PURE__ */ jsx("div", { className: "space-x-4 text-sm font-medium ", children })
|
|
2197
2016
|
] }) });
|
|
2198
2017
|
}
|
|
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`
|
|
2018
|
+
var Container6 = styled39.div`
|
|
2208
2019
|
width: 100%;
|
|
2209
2020
|
padding: ${spaces[4]};
|
|
2210
2021
|
`;
|
|
2211
2022
|
var AccordionContent = ({ children }) => {
|
|
2212
|
-
return /* @__PURE__ */
|
|
2023
|
+
return /* @__PURE__ */ jsx(Container6, { children });
|
|
2213
2024
|
};
|
|
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`
|
|
2025
|
+
var Container7 = styled39.div`
|
|
2221
2026
|
display: flex;
|
|
2222
2027
|
align-items: center;
|
|
2223
2028
|
justify-content: space-between;
|
|
2224
2029
|
width: 100%;
|
|
2225
2030
|
`;
|
|
2226
|
-
var HeaderContainer =
|
|
2031
|
+
var HeaderContainer = styled39.div`
|
|
2227
2032
|
display: flex;
|
|
2228
2033
|
align-items: center;
|
|
2229
2034
|
gap: ${spaces[2]};
|
|
@@ -2240,25 +2045,22 @@ var AccordionHeader = ({
|
|
|
2240
2045
|
onButtonPress,
|
|
2241
2046
|
rightElement
|
|
2242
2047
|
}) => {
|
|
2243
|
-
return /* @__PURE__ */
|
|
2244
|
-
/* @__PURE__ */
|
|
2245
|
-
/* @__PURE__ */
|
|
2246
|
-
/* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ jsxs(Container7, { children: [
|
|
2049
|
+
/* @__PURE__ */ jsxs(HeaderContainer, { onClick: onAccordionPress, children: [
|
|
2050
|
+
/* @__PURE__ */ jsx(Fragment, { children: isOpen ? /* @__PURE__ */ jsx(FaMinus, { color: colors.text.primary, size: sizes.lg }) : /* @__PURE__ */ jsx(FaPlus$1, { color: colors.text.primary, size: sizes.lg }) }),
|
|
2051
|
+
/* @__PURE__ */ jsx(Header, { variant: "h2", children: title })
|
|
2247
2052
|
] }),
|
|
2248
|
-
rightElement ? rightElement : /* @__PURE__ */
|
|
2053
|
+
rightElement ? rightElement : /* @__PURE__ */ jsx(
|
|
2249
2054
|
Button,
|
|
2250
2055
|
{
|
|
2251
2056
|
text: buttonText,
|
|
2252
|
-
icon: /* @__PURE__ */
|
|
2057
|
+
icon: /* @__PURE__ */ jsx(FaPlus, { fontSize: "10px" }),
|
|
2253
2058
|
onClick: onButtonPress
|
|
2254
2059
|
}
|
|
2255
2060
|
)
|
|
2256
2061
|
] });
|
|
2257
2062
|
};
|
|
2258
|
-
|
|
2259
|
-
// src/molecules/Accordion/Accordion.tsx
|
|
2260
|
-
import { jsx as jsx37, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2261
|
-
var Container8 = styled24.div`
|
|
2063
|
+
var Container8 = styled39.div`
|
|
2262
2064
|
border-radius: ${radii.lg};
|
|
2263
2065
|
background-color: ${colors.background.secondary};
|
|
2264
2066
|
padding: ${spaces[4]};
|
|
@@ -2270,9 +2072,9 @@ var Accordion = ({
|
|
|
2270
2072
|
children,
|
|
2271
2073
|
rightElement
|
|
2272
2074
|
}) => {
|
|
2273
|
-
const [isOpen, setIsOpen] =
|
|
2274
|
-
return /* @__PURE__ */
|
|
2275
|
-
/* @__PURE__ */
|
|
2075
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
2076
|
+
return /* @__PURE__ */ jsxs(Container8, { children: [
|
|
2077
|
+
/* @__PURE__ */ jsx(
|
|
2276
2078
|
AccordionHeader,
|
|
2277
2079
|
{
|
|
2278
2080
|
isOpen,
|
|
@@ -2283,27 +2085,23 @@ var Accordion = ({
|
|
|
2283
2085
|
rightElement
|
|
2284
2086
|
}
|
|
2285
2087
|
),
|
|
2286
|
-
isOpen && /* @__PURE__ */
|
|
2088
|
+
isOpen && /* @__PURE__ */ jsx(AccordionContent, { children })
|
|
2287
2089
|
] });
|
|
2288
2090
|
};
|
|
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";
|
|
2293
2091
|
var variants9 = ["primary", "inverse", "subtle"];
|
|
2294
|
-
var AddressContainer =
|
|
2092
|
+
var AddressContainer = styled39.div`
|
|
2295
2093
|
display: flex;
|
|
2296
2094
|
flex-direction: column;
|
|
2297
2095
|
gap: 1rem;
|
|
2298
2096
|
background-color: transparent;
|
|
2299
2097
|
padding: 2rem;
|
|
2300
2098
|
`;
|
|
2301
|
-
var InfoSection =
|
|
2099
|
+
var InfoSection = styled39.div`
|
|
2302
2100
|
display: flex;
|
|
2303
2101
|
flex-direction: column;
|
|
2304
2102
|
gap: 0.5rem;
|
|
2305
2103
|
`;
|
|
2306
|
-
var InfoText =
|
|
2104
|
+
var InfoText = styled39.p`
|
|
2307
2105
|
margin: 0;
|
|
2308
2106
|
font-size: 0.875rem;
|
|
2309
2107
|
line-height: 1.6;
|
|
@@ -2321,7 +2119,7 @@ var InfoText = styled25.p`
|
|
|
2321
2119
|
}};
|
|
2322
2120
|
font-weight: ${(props) => props.$bold ? 600 : 400};
|
|
2323
2121
|
`;
|
|
2324
|
-
var ButtonWrapper =
|
|
2122
|
+
var ButtonWrapper = styled39.div`
|
|
2325
2123
|
margin-top: 0.5rem;
|
|
2326
2124
|
`;
|
|
2327
2125
|
var Address = ({
|
|
@@ -2370,14 +2168,14 @@ var Address = ({
|
|
|
2370
2168
|
return "primary";
|
|
2371
2169
|
}
|
|
2372
2170
|
};
|
|
2373
|
-
return /* @__PURE__ */
|
|
2374
|
-
/* @__PURE__ */
|
|
2375
|
-
/* @__PURE__ */
|
|
2376
|
-
phone && /* @__PURE__ */
|
|
2377
|
-
email && /* @__PURE__ */
|
|
2378
|
-
addressLines.map((line, index) => /* @__PURE__ */
|
|
2171
|
+
return /* @__PURE__ */ jsxs(AddressContainer, { children: [
|
|
2172
|
+
/* @__PURE__ */ jsx(Header, { variant: "h1", color: getHeaderVariant(), children: title }),
|
|
2173
|
+
/* @__PURE__ */ jsxs(InfoSection, { children: [
|
|
2174
|
+
phone && /* @__PURE__ */ jsx(InfoText, { variant, children: phone }),
|
|
2175
|
+
email && /* @__PURE__ */ jsx(InfoText, { variant, $bold: true, children: email.toUpperCase() }),
|
|
2176
|
+
addressLines.map((line, index) => /* @__PURE__ */ jsx(InfoText, { variant, children: line }, index))
|
|
2379
2177
|
] }),
|
|
2380
|
-
/* @__PURE__ */
|
|
2178
|
+
/* @__PURE__ */ jsx(ButtonWrapper, { children: /* @__PURE__ */ jsx(
|
|
2381
2179
|
TextButton,
|
|
2382
2180
|
{
|
|
2383
2181
|
text: directionsText,
|
|
@@ -2390,14 +2188,7 @@ var Address = ({
|
|
|
2390
2188
|
] });
|
|
2391
2189
|
};
|
|
2392
2190
|
Address.variants = variants9;
|
|
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`
|
|
2191
|
+
var CheckboxWrapper = styled39.label`
|
|
2401
2192
|
display: flex;
|
|
2402
2193
|
align-items: center;
|
|
2403
2194
|
gap: ${spaces[2]};
|
|
@@ -2405,10 +2196,10 @@ var CheckboxWrapper = styled26.label`
|
|
|
2405
2196
|
font-size: 16px;
|
|
2406
2197
|
color: ${colors.text.subtle};
|
|
2407
2198
|
`;
|
|
2408
|
-
var HiddenCheckbox2 =
|
|
2199
|
+
var HiddenCheckbox2 = styled39.input.attrs({ type: "checkbox" })`
|
|
2409
2200
|
display: none;
|
|
2410
2201
|
`;
|
|
2411
|
-
var StyledCheckbox2 =
|
|
2202
|
+
var StyledCheckbox2 = styled39.span`
|
|
2412
2203
|
width: ${sizes.lg};
|
|
2413
2204
|
height: ${sizes.lg};
|
|
2414
2205
|
border: 1.5px solid ${colors.background.tertiary};
|
|
@@ -2421,20 +2212,17 @@ var CheckboxItem = ({
|
|
|
2421
2212
|
onClick,
|
|
2422
2213
|
checked
|
|
2423
2214
|
}) => {
|
|
2424
|
-
return /* @__PURE__ */
|
|
2425
|
-
/* @__PURE__ */
|
|
2426
|
-
/* @__PURE__ */
|
|
2215
|
+
return /* @__PURE__ */ jsxs(CheckboxWrapper, { onClick, children: [
|
|
2216
|
+
/* @__PURE__ */ jsx(HiddenCheckbox2, { checked, readOnly: true }),
|
|
2217
|
+
/* @__PURE__ */ jsx(StyledCheckbox2, { checked }),
|
|
2427
2218
|
label
|
|
2428
2219
|
] });
|
|
2429
2220
|
};
|
|
2430
|
-
|
|
2431
|
-
// src/molecules/Checkbox/Checkbox.tsx
|
|
2432
|
-
import { jsx as jsx40, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2433
|
-
var Container9 = styled27.div`
|
|
2221
|
+
var Container9 = styled39.div`
|
|
2434
2222
|
display: flex;
|
|
2435
2223
|
flex-direction: column;
|
|
2436
2224
|
`;
|
|
2437
|
-
var OptionsContainer =
|
|
2225
|
+
var OptionsContainer = styled39.div`
|
|
2438
2226
|
display: flex;
|
|
2439
2227
|
gap: ${spaces[4]};
|
|
2440
2228
|
`;
|
|
@@ -2445,8 +2233,8 @@ var Checkbox = ({
|
|
|
2445
2233
|
options,
|
|
2446
2234
|
value
|
|
2447
2235
|
}) => {
|
|
2448
|
-
return /* @__PURE__ */
|
|
2449
|
-
typeof label === "string" && label?.length ? /* @__PURE__ */
|
|
2236
|
+
return /* @__PURE__ */ jsxs(Container9, { children: [
|
|
2237
|
+
typeof label === "string" && label?.length ? /* @__PURE__ */ jsx(
|
|
2450
2238
|
Label,
|
|
2451
2239
|
{
|
|
2452
2240
|
value: label,
|
|
@@ -2454,7 +2242,7 @@ var Checkbox = ({
|
|
|
2454
2242
|
fontWeight: "600"
|
|
2455
2243
|
}
|
|
2456
2244
|
) : null,
|
|
2457
|
-
/* @__PURE__ */
|
|
2245
|
+
/* @__PURE__ */ jsx(OptionsContainer, { children: options.map((option) => /* @__PURE__ */ jsx(
|
|
2458
2246
|
CheckboxItem,
|
|
2459
2247
|
{
|
|
2460
2248
|
checked: value === option.value,
|
|
@@ -2465,11 +2253,7 @@ var Checkbox = ({
|
|
|
2465
2253
|
)) })
|
|
2466
2254
|
] });
|
|
2467
2255
|
};
|
|
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`
|
|
2256
|
+
var Container10 = styled39.div`
|
|
2473
2257
|
display: flex;
|
|
2474
2258
|
flex-direction: column;
|
|
2475
2259
|
gap: 1rem;
|
|
@@ -2480,7 +2264,7 @@ var Container10 = styled28.div`
|
|
|
2480
2264
|
border-radius: 8px;
|
|
2481
2265
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
2482
2266
|
`;
|
|
2483
|
-
var ThumbnailWrapper2 =
|
|
2267
|
+
var ThumbnailWrapper2 = styled39.div`
|
|
2484
2268
|
width: 180px;
|
|
2485
2269
|
height: 180px;
|
|
2486
2270
|
border-radius: 50%;
|
|
@@ -2491,7 +2275,7 @@ var ThumbnailWrapper2 = styled28.div`
|
|
|
2491
2275
|
flex-shrink: 0;
|
|
2492
2276
|
align-self: center;
|
|
2493
2277
|
`;
|
|
2494
|
-
var ButtonWrapper2 =
|
|
2278
|
+
var ButtonWrapper2 = styled39.div`
|
|
2495
2279
|
display: flex;
|
|
2496
2280
|
justify-content: flex-start;
|
|
2497
2281
|
margin-top: auto;
|
|
@@ -2507,11 +2291,11 @@ var ContentCard = ({
|
|
|
2507
2291
|
arrowVariant = "teal",
|
|
2508
2292
|
thumbnailBgColor = "brand"
|
|
2509
2293
|
}) => {
|
|
2510
|
-
return /* @__PURE__ */
|
|
2511
|
-
/* @__PURE__ */
|
|
2512
|
-
/* @__PURE__ */
|
|
2513
|
-
/* @__PURE__ */
|
|
2514
|
-
/* @__PURE__ */
|
|
2294
|
+
return /* @__PURE__ */ jsxs(Container10, { children: [
|
|
2295
|
+
/* @__PURE__ */ jsx(ThumbnailWrapper2, { thumbnailBgColor, children: thumbnail }),
|
|
2296
|
+
/* @__PURE__ */ jsx(Header, { variant: headerVariant, color: titleColor, children: title }),
|
|
2297
|
+
/* @__PURE__ */ jsx(Description, { variant: descriptionVariant, children: description }),
|
|
2298
|
+
/* @__PURE__ */ jsx(ButtonWrapper2, { children: /* @__PURE__ */ jsx(
|
|
2515
2299
|
ArrowButton,
|
|
2516
2300
|
{
|
|
2517
2301
|
onClick: onArrowClick,
|
|
@@ -2520,12 +2304,8 @@ var ContentCard = ({
|
|
|
2520
2304
|
) })
|
|
2521
2305
|
] });
|
|
2522
2306
|
};
|
|
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";
|
|
2527
2307
|
var variants10 = ["primary", "secondary", "transparent"];
|
|
2528
|
-
var Container11 =
|
|
2308
|
+
var Container11 = styled39.div`
|
|
2529
2309
|
display: flex;
|
|
2530
2310
|
flex-direction: column;
|
|
2531
2311
|
gap: 1.5rem;
|
|
@@ -2533,20 +2313,20 @@ var Container11 = styled29.div`
|
|
|
2533
2313
|
|
|
2534
2314
|
max-width: 500px;
|
|
2535
2315
|
`;
|
|
2536
|
-
var Header2 =
|
|
2316
|
+
var Header2 = styled39.h1`
|
|
2537
2317
|
margin: 0;
|
|
2538
2318
|
font-size: 2.5rem;
|
|
2539
2319
|
font-weight: 700;
|
|
2540
2320
|
line-height: 1.2;
|
|
2541
2321
|
color: ${(props) => colors.text[props.textColor]};
|
|
2542
2322
|
`;
|
|
2543
|
-
var Description3 =
|
|
2323
|
+
var Description3 = styled39.p`
|
|
2544
2324
|
margin: 0;
|
|
2545
2325
|
font-size: 1.125rem;
|
|
2546
2326
|
line-height: 1.6;
|
|
2547
2327
|
color: ${(props) => colors.text[props.textColor]};
|
|
2548
2328
|
`;
|
|
2549
|
-
var ButtonGroup =
|
|
2329
|
+
var ButtonGroup = styled39.div`
|
|
2550
2330
|
display: flex;
|
|
2551
2331
|
gap: 1rem;
|
|
2552
2332
|
align-items: center;
|
|
@@ -2567,11 +2347,11 @@ var CTAContainer = ({
|
|
|
2567
2347
|
secondaryBgVariant = "transparent",
|
|
2568
2348
|
secondaryTextVariant = "secondary"
|
|
2569
2349
|
}) => {
|
|
2570
|
-
return /* @__PURE__ */
|
|
2571
|
-
/* @__PURE__ */
|
|
2572
|
-
/* @__PURE__ */
|
|
2573
|
-
/* @__PURE__ */
|
|
2574
|
-
/* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ jsxs(Container11, { variant, children: [
|
|
2351
|
+
/* @__PURE__ */ jsx(Header2, { textColor: headerTextColor, children: header }),
|
|
2352
|
+
/* @__PURE__ */ jsx(Description3, { textColor: descriptionTextColor, children: description }),
|
|
2353
|
+
/* @__PURE__ */ jsxs(ButtonGroup, { children: [
|
|
2354
|
+
/* @__PURE__ */ jsx(
|
|
2575
2355
|
ExtendedButton,
|
|
2576
2356
|
{
|
|
2577
2357
|
text: primaryButtonText,
|
|
@@ -2581,7 +2361,7 @@ var CTAContainer = ({
|
|
|
2581
2361
|
textVariant: primaryTextVariant
|
|
2582
2362
|
}
|
|
2583
2363
|
),
|
|
2584
|
-
secondaryButtonText && /* @__PURE__ */
|
|
2364
|
+
secondaryButtonText && /* @__PURE__ */ jsx(
|
|
2585
2365
|
TextButton,
|
|
2586
2366
|
{
|
|
2587
2367
|
text: secondaryButtonText,
|
|
@@ -2594,17 +2374,11 @@ var CTAContainer = ({
|
|
|
2594
2374
|
] });
|
|
2595
2375
|
};
|
|
2596
2376
|
CTAContainer.variants = variants10;
|
|
2597
|
-
|
|
2598
|
-
|
|
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"};
|
|
2377
|
+
var AccordionContainer = styled39.div`
|
|
2378
|
+
border-bottom: 1px solid ${colors.text.light};
|
|
2605
2379
|
padding: 1.5rem 0;
|
|
2606
2380
|
`;
|
|
2607
|
-
var AccordionHeader2 =
|
|
2381
|
+
var AccordionHeader2 = styled39.button`
|
|
2608
2382
|
width: 100%;
|
|
2609
2383
|
display: flex;
|
|
2610
2384
|
align-items: center;
|
|
@@ -2615,23 +2389,23 @@ var AccordionHeader2 = styled30.button`
|
|
|
2615
2389
|
text-align: left;
|
|
2616
2390
|
padding: 0;
|
|
2617
2391
|
`;
|
|
2618
|
-
var NumberBadge =
|
|
2392
|
+
var NumberBadge = styled39.span`
|
|
2619
2393
|
font-size: 1rem;
|
|
2620
2394
|
font-weight: 600;
|
|
2621
2395
|
color: ${(props) => colors.text[props.numberColor]};
|
|
2622
2396
|
flex-shrink: 0;
|
|
2623
2397
|
`;
|
|
2624
|
-
var HeaderWrapper =
|
|
2398
|
+
var HeaderWrapper = styled39.div`
|
|
2625
2399
|
flex-grow: 1;
|
|
2626
2400
|
`;
|
|
2627
|
-
var IconWrapper =
|
|
2401
|
+
var IconWrapper = styled39.div`
|
|
2628
2402
|
color: ${(props) => colors.text[props.iconColor]};
|
|
2629
2403
|
flex-shrink: 0;
|
|
2630
2404
|
display: flex;
|
|
2631
2405
|
align-items: center;
|
|
2632
2406
|
justify-content: center;
|
|
2633
2407
|
`;
|
|
2634
|
-
var AccordionContent2 =
|
|
2408
|
+
var AccordionContent2 = styled39.div`
|
|
2635
2409
|
max-height: ${(props) => props.$isOpen ? "1000px" : "0"};
|
|
2636
2410
|
overflow: hidden;
|
|
2637
2411
|
transition: max-height 0.3s ease-in-out;
|
|
@@ -2649,25 +2423,21 @@ var FAQAccordion = ({
|
|
|
2649
2423
|
iconColor = "brand",
|
|
2650
2424
|
contentVariant = "primary"
|
|
2651
2425
|
}) => {
|
|
2652
|
-
const [isOpen, setIsOpen] =
|
|
2653
|
-
return /* @__PURE__ */
|
|
2654
|
-
/* @__PURE__ */
|
|
2655
|
-
/* @__PURE__ */
|
|
2656
|
-
/* @__PURE__ */
|
|
2657
|
-
/* @__PURE__ */
|
|
2426
|
+
const [isOpen, setIsOpen] = useState(defaultOpen);
|
|
2427
|
+
return /* @__PURE__ */ jsxs(AccordionContainer, { children: [
|
|
2428
|
+
/* @__PURE__ */ jsxs(AccordionHeader2, { onClick: () => setIsOpen(!isOpen), children: [
|
|
2429
|
+
/* @__PURE__ */ jsx(NumberBadge, { numberColor, children: number }),
|
|
2430
|
+
/* @__PURE__ */ jsx(HeaderWrapper, { children: /* @__PURE__ */ jsx(Header, { variant: headerVariant, color: titleColor, children: title }) }),
|
|
2431
|
+
/* @__PURE__ */ jsx(IconWrapper, { iconColor, children: isOpen ? /* @__PURE__ */ jsx(HiMinus, { size: 24 }) : /* @__PURE__ */ jsx(HiPlus, { size: 24 }) })
|
|
2658
2432
|
] }),
|
|
2659
|
-
/* @__PURE__ */
|
|
2433
|
+
/* @__PURE__ */ jsx(AccordionContent2, { $isOpen: isOpen, children: /* @__PURE__ */ jsx(Description, { variant: contentVariant, children: content }) })
|
|
2660
2434
|
] });
|
|
2661
2435
|
};
|
|
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`
|
|
2436
|
+
var Container12 = styled39.div`
|
|
2667
2437
|
display: flex;
|
|
2668
2438
|
flex-direction: column;
|
|
2669
2439
|
`;
|
|
2670
|
-
var FeatureWrapper =
|
|
2440
|
+
var FeatureWrapper = styled39.div`
|
|
2671
2441
|
padding: 1rem 0;
|
|
2672
2442
|
border-bottom: 1px solid #e5e7eb;
|
|
2673
2443
|
|
|
@@ -2681,7 +2451,7 @@ var FeatureContainer = ({
|
|
|
2681
2451
|
titleColor = "primary",
|
|
2682
2452
|
descriptionVariant = "subtle"
|
|
2683
2453
|
}) => {
|
|
2684
|
-
return /* @__PURE__ */
|
|
2454
|
+
return /* @__PURE__ */ jsx(Container12, { children: items.map((item, index) => /* @__PURE__ */ jsx(FeatureWrapper, { children: /* @__PURE__ */ jsx(
|
|
2685
2455
|
FeatureItem,
|
|
2686
2456
|
{
|
|
2687
2457
|
thumbnail: item.thumbnail,
|
|
@@ -2694,11 +2464,6 @@ var FeatureContainer = ({
|
|
|
2694
2464
|
}
|
|
2695
2465
|
) }, index)) });
|
|
2696
2466
|
};
|
|
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";
|
|
2702
2467
|
var FileButton = ({
|
|
2703
2468
|
onFileSelect,
|
|
2704
2469
|
accept = [".pdf"],
|
|
@@ -2717,16 +2482,16 @@ var FileButton = ({
|
|
|
2717
2482
|
Array.from(files).forEach((file) => onFileSelect(file));
|
|
2718
2483
|
}
|
|
2719
2484
|
};
|
|
2720
|
-
return /* @__PURE__ */
|
|
2721
|
-
/* @__PURE__ */
|
|
2485
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2486
|
+
/* @__PURE__ */ jsx(
|
|
2722
2487
|
Button,
|
|
2723
2488
|
{
|
|
2724
2489
|
...rest,
|
|
2725
|
-
icon: /* @__PURE__ */
|
|
2490
|
+
icon: /* @__PURE__ */ jsx(FaPlus, { fontSize: "10px" }),
|
|
2726
2491
|
onClick: handleClick
|
|
2727
2492
|
}
|
|
2728
2493
|
),
|
|
2729
|
-
/* @__PURE__ */
|
|
2494
|
+
/* @__PURE__ */ jsx(
|
|
2730
2495
|
"input",
|
|
2731
2496
|
{
|
|
2732
2497
|
type: "file",
|
|
@@ -2739,17 +2504,13 @@ var FileButton = ({
|
|
|
2739
2504
|
)
|
|
2740
2505
|
] });
|
|
2741
2506
|
};
|
|
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";
|
|
2746
2507
|
var Input2 = ({ label, error, ...rest }) => {
|
|
2747
|
-
const isInvalid =
|
|
2508
|
+
const isInvalid = useMemo(
|
|
2748
2509
|
() => typeof error === "string" && error.length > 0,
|
|
2749
2510
|
[error]
|
|
2750
2511
|
);
|
|
2751
|
-
return /* @__PURE__ */
|
|
2752
|
-
typeof label === "string" && /* @__PURE__ */
|
|
2512
|
+
return /* @__PURE__ */ jsxs(InputContainer, { error, children: [
|
|
2513
|
+
typeof label === "string" && /* @__PURE__ */ jsx(
|
|
2753
2514
|
FloatingLabel,
|
|
2754
2515
|
{
|
|
2755
2516
|
color: isInvalid ? "error" : "subtle",
|
|
@@ -2757,28 +2518,19 @@ var Input2 = ({ label, error, ...rest }) => {
|
|
|
2757
2518
|
fontWeight: "600"
|
|
2758
2519
|
}
|
|
2759
2520
|
),
|
|
2760
|
-
/* @__PURE__ */
|
|
2521
|
+
/* @__PURE__ */ jsx(Input, { ...rest })
|
|
2761
2522
|
] });
|
|
2762
2523
|
};
|
|
2763
2524
|
Input2.types = Input.types;
|
|
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`
|
|
2525
|
+
var fadeIn = keyframes`
|
|
2771
2526
|
from { opacity: 0 }
|
|
2772
2527
|
to { opacity: 1 }
|
|
2773
2528
|
`;
|
|
2774
|
-
|
|
2529
|
+
keyframes`
|
|
2775
2530
|
from { transform: translateY(8px) scale(.98); opacity: 0 }
|
|
2776
2531
|
to { transform: translateY(0) scale(1); opacity: 1 }
|
|
2777
2532
|
`;
|
|
2778
|
-
|
|
2779
|
-
// src/molecules/Modal/Modal.tsx
|
|
2780
|
-
import { Fragment as Fragment8, jsx as jsx47 } from "react/jsx-runtime";
|
|
2781
|
-
var Overlay = styled32.div`
|
|
2533
|
+
var Overlay = styled39.div`
|
|
2782
2534
|
height: 100vh;
|
|
2783
2535
|
width: 100vw;
|
|
2784
2536
|
background-color: rgba(0, 0, 0, 0.4);
|
|
@@ -2790,7 +2542,7 @@ var Overlay = styled32.div`
|
|
|
2790
2542
|
justify-content: center;
|
|
2791
2543
|
animation: ${fadeIn} 160ms ease-out;
|
|
2792
2544
|
`;
|
|
2793
|
-
var ContentContainer =
|
|
2545
|
+
var ContentContainer = styled39.div`
|
|
2794
2546
|
position: relative;
|
|
2795
2547
|
width: min(${breakpoints.sm}, 92vw);
|
|
2796
2548
|
max-height: 86vh;
|
|
@@ -2811,15 +2563,10 @@ var Modal = ({
|
|
|
2811
2563
|
onClose();
|
|
2812
2564
|
}
|
|
2813
2565
|
}
|
|
2814
|
-
if (!visible) return /* @__PURE__ */
|
|
2815
|
-
return /* @__PURE__ */
|
|
2566
|
+
if (!visible) return /* @__PURE__ */ jsx(Fragment, {});
|
|
2567
|
+
return /* @__PURE__ */ jsx(Overlay, { contentPosition, onClick: onDismiss, children: /* @__PURE__ */ jsx(ContentContainer, { onClick: (e) => e.stopPropagation(), children }) });
|
|
2816
2568
|
};
|
|
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`
|
|
2569
|
+
var Container13 = styled39.div`
|
|
2823
2570
|
display: flex;
|
|
2824
2571
|
align-items: center ;
|
|
2825
2572
|
justify-content: space-between;
|
|
@@ -2827,39 +2574,35 @@ padding: ${spaces[2]} ${spaces[3]};
|
|
|
2827
2574
|
background-color: ${(props) => props.isComplete ? colors.background.blue : colors.background.light};
|
|
2828
2575
|
border-radius: ${radii.sm};
|
|
2829
2576
|
`;
|
|
2830
|
-
var Row =
|
|
2577
|
+
var Row = styled39.div`
|
|
2831
2578
|
display: flex;
|
|
2832
2579
|
align-items: center;
|
|
2833
2580
|
gap: ${spaces[2]};
|
|
2834
2581
|
`;
|
|
2835
2582
|
var OverviewRowItem = ({ isComplete, isMainHeader, title }) => {
|
|
2836
|
-
return /* @__PURE__ */
|
|
2837
|
-
/* @__PURE__ */
|
|
2838
|
-
/* @__PURE__ */
|
|
2839
|
-
/* @__PURE__ */
|
|
2840
|
-
isComplete ? /* @__PURE__ */
|
|
2583
|
+
return /* @__PURE__ */ jsxs(Container13, { isComplete, children: [
|
|
2584
|
+
/* @__PURE__ */ jsx(Header, { variant: isMainHeader ? "h2" : "h3", color: isComplete ? "secondary" : "primary", children: title }),
|
|
2585
|
+
/* @__PURE__ */ jsxs(Row, { children: [
|
|
2586
|
+
/* @__PURE__ */ jsx(Header, { variant: "h3", color: isComplete ? "secondary" : "primary", children: isComplete ? "Complete" : "Information Outstanding" }),
|
|
2587
|
+
isComplete ? /* @__PURE__ */ jsx(FaCircleCheck, { color: colors.background.success }) : /* @__PURE__ */ jsx(FaCircleExclamation, { color: colors.background.error })
|
|
2841
2588
|
] })
|
|
2842
2589
|
] });
|
|
2843
2590
|
};
|
|
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`
|
|
2591
|
+
var Container14 = styled39.div`
|
|
2849
2592
|
width: '100%';
|
|
2850
2593
|
min-height: '100vh';
|
|
2851
2594
|
padding-bottom: ${spaces[9]};
|
|
2852
2595
|
`;
|
|
2853
|
-
var HeaderContainer2 =
|
|
2596
|
+
var HeaderContainer2 = styled39.div`
|
|
2854
2597
|
padding: ${spaces[4.5]} ${spaces[6]};
|
|
2855
2598
|
display: flex;
|
|
2856
2599
|
align-items: center;
|
|
2857
2600
|
justify-content: space-between;
|
|
2858
2601
|
`;
|
|
2859
|
-
var ContentContainer2 =
|
|
2602
|
+
var ContentContainer2 = styled39.div`
|
|
2860
2603
|
border-top: 1px solid ${colors.border.hover};
|
|
2861
2604
|
`;
|
|
2862
|
-
var SpinnerContainer =
|
|
2605
|
+
var SpinnerContainer = styled39.div`
|
|
2863
2606
|
display: flex;
|
|
2864
2607
|
width: 100%;
|
|
2865
2608
|
padding: ${spaces[6]};
|
|
@@ -2872,27 +2615,17 @@ var PageLayout = ({
|
|
|
2872
2615
|
isLoading = false,
|
|
2873
2616
|
rightElement
|
|
2874
2617
|
}) => {
|
|
2875
|
-
return /* @__PURE__ */
|
|
2876
|
-
/* @__PURE__ */
|
|
2877
|
-
/* @__PURE__ */
|
|
2618
|
+
return /* @__PURE__ */ jsxs(Container14, { children: [
|
|
2619
|
+
/* @__PURE__ */ jsxs(HeaderContainer2, { children: [
|
|
2620
|
+
/* @__PURE__ */ jsx(Header, { color: "subtle", children: title }),
|
|
2878
2621
|
" ",
|
|
2879
2622
|
rightElement && rightElement
|
|
2880
2623
|
] }),
|
|
2881
|
-
isLoading ? /* @__PURE__ */
|
|
2624
|
+
isLoading ? /* @__PURE__ */ jsx(SpinnerContainer, { children: /* @__PURE__ */ jsx(Spinner, {}) }) : /* @__PURE__ */ jsx(ContentContainer2, { children })
|
|
2882
2625
|
] });
|
|
2883
2626
|
};
|
|
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";
|
|
2894
2627
|
var variants11 = ["documents", "properties"];
|
|
2895
|
-
var Container15 =
|
|
2628
|
+
var Container15 = styled39.div`
|
|
2896
2629
|
display: flex;
|
|
2897
2630
|
flex-direction: column;
|
|
2898
2631
|
align-items: center;
|
|
@@ -2904,30 +2637,27 @@ var Container15 = styled35.div`
|
|
|
2904
2637
|
var EmptyState = ({ variant, message }) => {
|
|
2905
2638
|
const size = sizes.xl;
|
|
2906
2639
|
const color = colors.text.primary;
|
|
2907
|
-
const Icon =
|
|
2640
|
+
const Icon = useMemo(() => {
|
|
2908
2641
|
switch (variant) {
|
|
2909
2642
|
case "documents":
|
|
2910
|
-
return /* @__PURE__ */
|
|
2643
|
+
return /* @__PURE__ */ jsx(FaRegFolderOpen, { size, color });
|
|
2911
2644
|
case "properties":
|
|
2912
|
-
return /* @__PURE__ */
|
|
2645
|
+
return /* @__PURE__ */ jsx(FaHouse, { size, color });
|
|
2913
2646
|
}
|
|
2914
2647
|
}, [variant]);
|
|
2915
|
-
return /* @__PURE__ */
|
|
2648
|
+
return /* @__PURE__ */ jsxs(Container15, { children: [
|
|
2916
2649
|
Icon,
|
|
2917
|
-
/* @__PURE__ */
|
|
2650
|
+
/* @__PURE__ */ jsx(Header, { variant: "h3", children: message })
|
|
2918
2651
|
] });
|
|
2919
2652
|
};
|
|
2920
2653
|
EmptyState.variants = variants11;
|
|
2921
|
-
|
|
2922
|
-
// src/molecules/PDFPreviewer/PDFPreviewer.tsx
|
|
2923
|
-
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2924
|
-
var Container16 = styled36.div`
|
|
2654
|
+
var Container16 = styled39.div`
|
|
2925
2655
|
width: 100%;
|
|
2926
2656
|
height: 100%;
|
|
2927
2657
|
`;
|
|
2928
2658
|
var PDFPreviewer = ({ url }) => {
|
|
2929
|
-
const [error, setError] =
|
|
2930
|
-
|
|
2659
|
+
const [error, setError] = useState(null);
|
|
2660
|
+
useEffect(() => {
|
|
2931
2661
|
setError(null);
|
|
2932
2662
|
try {
|
|
2933
2663
|
new URL(url);
|
|
@@ -2936,8 +2666,8 @@ var PDFPreviewer = ({ url }) => {
|
|
|
2936
2666
|
}
|
|
2937
2667
|
}, [url]);
|
|
2938
2668
|
if (typeof error === "string")
|
|
2939
|
-
return /* @__PURE__ */
|
|
2940
|
-
return /* @__PURE__ */
|
|
2669
|
+
return /* @__PURE__ */ jsx(EmptyState, { message: "Failed to load this document", variant: "documents" });
|
|
2670
|
+
return /* @__PURE__ */ jsx(Container16, { children: /* @__PURE__ */ jsx(
|
|
2941
2671
|
"iframe",
|
|
2942
2672
|
{
|
|
2943
2673
|
src: `${url}#view=FitH&toolbar=1&navpanes=0`,
|
|
@@ -2948,17 +2678,13 @@ var PDFPreviewer = ({ url }) => {
|
|
|
2948
2678
|
}
|
|
2949
2679
|
) });
|
|
2950
2680
|
};
|
|
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`
|
|
2681
|
+
var Container17 = styled39.div`
|
|
2956
2682
|
display: flex;
|
|
2957
2683
|
gap: 1.5rem;
|
|
2958
2684
|
align-items: center;
|
|
2959
2685
|
max-width: 600px;
|
|
2960
2686
|
`;
|
|
2961
|
-
var ImageWrapper =
|
|
2687
|
+
var ImageWrapper = styled39.div`
|
|
2962
2688
|
flex-shrink: 0;
|
|
2963
2689
|
width: 180px;
|
|
2964
2690
|
height: 180px;
|
|
@@ -2971,12 +2697,12 @@ var ImageWrapper = styled37.div`
|
|
|
2971
2697
|
object-fit: cover;
|
|
2972
2698
|
}
|
|
2973
2699
|
`;
|
|
2974
|
-
var ContentWrapper =
|
|
2700
|
+
var ContentWrapper = styled39.div`
|
|
2975
2701
|
display: flex;
|
|
2976
2702
|
flex-direction: column;
|
|
2977
2703
|
gap: 1rem;
|
|
2978
2704
|
`;
|
|
2979
|
-
var LogoWrapper =
|
|
2705
|
+
var LogoWrapper = styled39.div`
|
|
2980
2706
|
max-width: 200px;
|
|
2981
2707
|
|
|
2982
2708
|
img {
|
|
@@ -2996,12 +2722,12 @@ var ProductInfo = ({
|
|
|
2996
2722
|
buttonTextBgVariant = "brand",
|
|
2997
2723
|
buttonTextVariant = "secondary"
|
|
2998
2724
|
}) => {
|
|
2999
|
-
return /* @__PURE__ */
|
|
3000
|
-
/* @__PURE__ */
|
|
3001
|
-
/* @__PURE__ */
|
|
3002
|
-
/* @__PURE__ */
|
|
3003
|
-
/* @__PURE__ */
|
|
3004
|
-
/* @__PURE__ */
|
|
2725
|
+
return /* @__PURE__ */ jsxs(Container17, { children: [
|
|
2726
|
+
/* @__PURE__ */ jsx(ImageWrapper, { children: /* @__PURE__ */ jsx("img", { src: image, alt: "Product" }) }),
|
|
2727
|
+
/* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
|
2728
|
+
/* @__PURE__ */ jsx(LogoWrapper, { children: /* @__PURE__ */ jsx("img", { src: logoImage, alt: "Logo" }) }),
|
|
2729
|
+
/* @__PURE__ */ jsx(Header, { variant: titleVariant, color: titleColor, children: title }),
|
|
2730
|
+
/* @__PURE__ */ jsx(
|
|
3005
2731
|
ExtendedButton,
|
|
3006
2732
|
{
|
|
3007
2733
|
text: buttonText,
|
|
@@ -3014,19 +2740,15 @@ var ProductInfo = ({
|
|
|
3014
2740
|
] })
|
|
3015
2741
|
] });
|
|
3016
2742
|
};
|
|
3017
|
-
|
|
3018
|
-
|
|
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`
|
|
2743
|
+
var Container18 = styled39.div``;
|
|
2744
|
+
var OptionsContainer2 = styled39.div`
|
|
3023
2745
|
margin-top: ${spaces[2]};
|
|
3024
2746
|
display: flex;
|
|
3025
2747
|
flex-direction: row;
|
|
3026
2748
|
flex: 1;
|
|
3027
2749
|
gap: ${spaces[2]};
|
|
3028
2750
|
`;
|
|
3029
|
-
var LabelContainer =
|
|
2751
|
+
var LabelContainer = styled39.div`
|
|
3030
2752
|
padding-left: ${spaces[1]};
|
|
3031
2753
|
`;
|
|
3032
2754
|
var RadioGroup = ({
|
|
@@ -3036,9 +2758,9 @@ var RadioGroup = ({
|
|
|
3036
2758
|
onClick,
|
|
3037
2759
|
className
|
|
3038
2760
|
}) => {
|
|
3039
|
-
return /* @__PURE__ */
|
|
3040
|
-
typeof label === "string" && /* @__PURE__ */
|
|
3041
|
-
/* @__PURE__ */
|
|
2761
|
+
return /* @__PURE__ */ jsxs(Container18, { className, children: [
|
|
2762
|
+
typeof label === "string" && /* @__PURE__ */ jsx(LabelContainer, { children: /* @__PURE__ */ jsx(Label, { value: label, fontWeight: "600" }) }),
|
|
2763
|
+
/* @__PURE__ */ jsx(OptionsContainer2, { children: options.map((option, idx) => /* @__PURE__ */ jsx(
|
|
3042
2764
|
RadioItem,
|
|
3043
2765
|
{
|
|
3044
2766
|
isSelected: value === option.value,
|
|
@@ -3050,11 +2772,6 @@ var RadioGroup = ({
|
|
|
3050
2772
|
)) })
|
|
3051
2773
|
] });
|
|
3052
2774
|
};
|
|
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";
|
|
3058
2775
|
var variants12 = ["primary", "secondary", "subtle"];
|
|
3059
2776
|
var Overlay2 = styled39.div`
|
|
3060
2777
|
position: fixed;
|
|
@@ -3177,29 +2894,25 @@ var RatesChart = ({
|
|
|
3177
2894
|
return "brand";
|
|
3178
2895
|
}
|
|
3179
2896
|
};
|
|
3180
|
-
return /* @__PURE__ */
|
|
3181
|
-
/* @__PURE__ */
|
|
3182
|
-
/* @__PURE__ */
|
|
3183
|
-
/* @__PURE__ */
|
|
2897
|
+
return /* @__PURE__ */ jsx(Overlay2, { onClick: onClose, children: /* @__PURE__ */ jsxs(ChartContainer, { onClick: (e) => e.stopPropagation(), children: [
|
|
2898
|
+
/* @__PURE__ */ jsxs(HeaderSection, { children: [
|
|
2899
|
+
/* @__PURE__ */ jsx(Header, { variant: "h2", color: getHeaderColor(), children: title }),
|
|
2900
|
+
/* @__PURE__ */ jsx(CloseButton, { onClick: onClose, variant, children: /* @__PURE__ */ jsx(HiX, { size: 20 }) })
|
|
3184
2901
|
] }),
|
|
3185
|
-
/* @__PURE__ */
|
|
3186
|
-
/* @__PURE__ */
|
|
3187
|
-
/* @__PURE__ */
|
|
3188
|
-
/* @__PURE__ */
|
|
2902
|
+
/* @__PURE__ */ jsxs(Table2, { children: [
|
|
2903
|
+
/* @__PURE__ */ jsx(TableHeader2, { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
2904
|
+
/* @__PURE__ */ jsx(TableHeaderCell, { variant, children: "Transaction type" }),
|
|
2905
|
+
/* @__PURE__ */ jsx(TableHeaderCell, { variant, children: "Price" })
|
|
3189
2906
|
] }) }),
|
|
3190
|
-
/* @__PURE__ */
|
|
3191
|
-
/* @__PURE__ */
|
|
3192
|
-
/* @__PURE__ */
|
|
2907
|
+
/* @__PURE__ */ jsx(TableBody, { children: rates.map((rate, index) => /* @__PURE__ */ jsxs(TableRow2, { children: [
|
|
2908
|
+
/* @__PURE__ */ jsx(TableCell, { variant, children: rate.transactionType }),
|
|
2909
|
+
/* @__PURE__ */ jsx(TableCell, { variant, children: rate.price })
|
|
3193
2910
|
] }, index)) })
|
|
3194
2911
|
] })
|
|
3195
2912
|
] }) });
|
|
3196
2913
|
};
|
|
3197
2914
|
RatesChart.variants = variants12;
|
|
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`
|
|
2915
|
+
var StyledNav = styled39.nav`
|
|
3203
2916
|
width: 195px;
|
|
3204
2917
|
background-color: #ffffff;
|
|
3205
2918
|
border-right: 1px solid #e5e7eb;
|
|
@@ -3209,17 +2922,17 @@ var StyledNav = styled40.nav`
|
|
|
3209
2922
|
height: 100vh;
|
|
3210
2923
|
padding-bottom: 15px;
|
|
3211
2924
|
`;
|
|
3212
|
-
var NavList =
|
|
2925
|
+
var NavList = styled39.ul`
|
|
3213
2926
|
display: flex;
|
|
3214
2927
|
flex-direction: column;
|
|
3215
2928
|
list-style: none;
|
|
3216
2929
|
margin: 0;
|
|
3217
2930
|
padding: 0;
|
|
3218
2931
|
`;
|
|
3219
|
-
var NavItem =
|
|
2932
|
+
var NavItem = styled39.li`
|
|
3220
2933
|
display: flex;
|
|
3221
2934
|
`;
|
|
3222
|
-
var NavLink =
|
|
2935
|
+
var NavLink = styled39.a`
|
|
3223
2936
|
display: flex;
|
|
3224
2937
|
align-items: center;
|
|
3225
2938
|
text-decoration: none;
|
|
@@ -3232,7 +2945,7 @@ var NavLink = styled40.a`
|
|
|
3232
2945
|
}
|
|
3233
2946
|
`}
|
|
3234
2947
|
`;
|
|
3235
|
-
var ActiveTriangle =
|
|
2948
|
+
var ActiveTriangle = styled39.div`
|
|
3236
2949
|
width: 0;
|
|
3237
2950
|
height: 0;
|
|
3238
2951
|
border-top: 4px solid transparent;
|
|
@@ -3241,17 +2954,17 @@ var ActiveTriangle = styled40.div`
|
|
|
3241
2954
|
flex-shrink: 0;
|
|
3242
2955
|
margin-left: 1.5rem;
|
|
3243
2956
|
`;
|
|
3244
|
-
var InactiveSpacer =
|
|
2957
|
+
var InactiveSpacer = styled39.span`
|
|
3245
2958
|
width: 6px;
|
|
3246
2959
|
margin-right: 0.5rem;
|
|
3247
2960
|
flex-shrink: 0;
|
|
3248
2961
|
`;
|
|
3249
|
-
var Divider =
|
|
2962
|
+
var Divider = styled39.div`
|
|
3250
2963
|
height: 1px;
|
|
3251
2964
|
background-color: ${(props) => colors.border[props.dividerColor]};
|
|
3252
2965
|
margin: 1rem;
|
|
3253
2966
|
`;
|
|
3254
|
-
var Spacer =
|
|
2967
|
+
var Spacer = styled39.div`
|
|
3255
2968
|
flex-grow: 1;
|
|
3256
2969
|
`;
|
|
3257
2970
|
var SideNav = ({
|
|
@@ -3267,13 +2980,13 @@ var SideNav = ({
|
|
|
3267
2980
|
backToTopBgVariant = "transparent",
|
|
3268
2981
|
backToTopTextVariant = "subtle"
|
|
3269
2982
|
}) => {
|
|
3270
|
-
return /* @__PURE__ */
|
|
3271
|
-
/* @__PURE__ */
|
|
3272
|
-
/* @__PURE__ */
|
|
2983
|
+
return /* @__PURE__ */ jsxs(StyledNav, { children: [
|
|
2984
|
+
/* @__PURE__ */ jsx(Spacer, {}),
|
|
2985
|
+
/* @__PURE__ */ jsx(NavList, { children: items.map((item) => {
|
|
3273
2986
|
const isActive = activeItem === item.href;
|
|
3274
|
-
return /* @__PURE__ */
|
|
3275
|
-
isActive ? /* @__PURE__ */
|
|
3276
|
-
/* @__PURE__ */
|
|
2987
|
+
return /* @__PURE__ */ jsx(NavItem, { children: /* @__PURE__ */ jsxs(NavLink, { href: item.href, $isActive: isActive, children: [
|
|
2988
|
+
isActive ? /* @__PURE__ */ jsx(ActiveTriangle, { triangleColor }) : /* @__PURE__ */ jsx(InactiveSpacer, {}),
|
|
2989
|
+
/* @__PURE__ */ jsx(
|
|
3277
2990
|
TextButton,
|
|
3278
2991
|
{
|
|
3279
2992
|
asChild: true,
|
|
@@ -3286,9 +2999,9 @@ var SideNav = ({
|
|
|
3286
2999
|
)
|
|
3287
3000
|
] }) }, item.href);
|
|
3288
3001
|
}) }),
|
|
3289
|
-
/* @__PURE__ */
|
|
3290
|
-
/* @__PURE__ */
|
|
3291
|
-
/* @__PURE__ */
|
|
3002
|
+
/* @__PURE__ */ jsx(Divider, { dividerColor }),
|
|
3003
|
+
/* @__PURE__ */ jsx(Spacer, {}),
|
|
3004
|
+
/* @__PURE__ */ jsx(
|
|
3292
3005
|
TextButton,
|
|
3293
3006
|
{
|
|
3294
3007
|
text: "Back to top",
|
|
@@ -3300,12 +3013,7 @@ var SideNav = ({
|
|
|
3300
3013
|
)
|
|
3301
3014
|
] });
|
|
3302
3015
|
};
|
|
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`
|
|
3016
|
+
var Overlay3 = styled39.div`
|
|
3309
3017
|
position: fixed;
|
|
3310
3018
|
top: 0;
|
|
3311
3019
|
left: 0;
|
|
@@ -3316,7 +3024,7 @@ var Overlay3 = styled41.div`
|
|
|
3316
3024
|
justify-content: flex-end;
|
|
3317
3025
|
z-index: 1000;
|
|
3318
3026
|
`;
|
|
3319
|
-
var PanelContainer =
|
|
3027
|
+
var PanelContainer = styled39.div`
|
|
3320
3028
|
background-color: #ffffff;
|
|
3321
3029
|
width: 100%;
|
|
3322
3030
|
max-width: 400px;
|
|
@@ -3330,7 +3038,7 @@ var PanelContainer = styled41.div`
|
|
|
3330
3038
|
transition: transform 0.3s ease-in-out;
|
|
3331
3039
|
overflow-y: auto;
|
|
3332
3040
|
`;
|
|
3333
|
-
var CloseButton2 =
|
|
3041
|
+
var CloseButton2 = styled39.button`
|
|
3334
3042
|
position: absolute;
|
|
3335
3043
|
top: 1.5rem;
|
|
3336
3044
|
right: 1.5rem;
|
|
@@ -3351,7 +3059,7 @@ var CloseButton2 = styled41.button`
|
|
|
3351
3059
|
opacity: 0.8;
|
|
3352
3060
|
}
|
|
3353
3061
|
`;
|
|
3354
|
-
var IconWrapper2 =
|
|
3062
|
+
var IconWrapper2 = styled39.div`
|
|
3355
3063
|
width: 100%;
|
|
3356
3064
|
display: flex;
|
|
3357
3065
|
justify-content: center;
|
|
@@ -3368,7 +3076,7 @@ var IconWrapper2 = styled41.div`
|
|
|
3368
3076
|
object-fit: contain;
|
|
3369
3077
|
}
|
|
3370
3078
|
`;
|
|
3371
|
-
var ContentWrapper2 =
|
|
3079
|
+
var ContentWrapper2 = styled39.div`
|
|
3372
3080
|
display: flex;
|
|
3373
3081
|
flex-direction: column;
|
|
3374
3082
|
gap: 1.5rem;
|
|
@@ -3388,13 +3096,13 @@ var SidePanel = ({
|
|
|
3388
3096
|
buttonTextBgVariant = "brand",
|
|
3389
3097
|
buttonTextVariant = "secondary"
|
|
3390
3098
|
}) => {
|
|
3391
|
-
return /* @__PURE__ */
|
|
3392
|
-
/* @__PURE__ */
|
|
3393
|
-
/* @__PURE__ */
|
|
3394
|
-
/* @__PURE__ */
|
|
3395
|
-
/* @__PURE__ */
|
|
3396
|
-
/* @__PURE__ */
|
|
3397
|
-
/* @__PURE__ */
|
|
3099
|
+
return /* @__PURE__ */ jsx(Overlay3, { $isOpen: isOpen, onClick: onClose, children: /* @__PURE__ */ jsxs(PanelContainer, { $isOpen: isOpen, onClick: (e) => e.stopPropagation(), children: [
|
|
3100
|
+
/* @__PURE__ */ jsx(CloseButton2, { onClick: onClose, closeButtonBgColor, children: /* @__PURE__ */ jsx(HiX, { size: 24 }) }),
|
|
3101
|
+
/* @__PURE__ */ jsx(IconWrapper2, { children: icon }),
|
|
3102
|
+
/* @__PURE__ */ jsxs(ContentWrapper2, { children: [
|
|
3103
|
+
/* @__PURE__ */ jsx(Header, { variant: "h2", color: titleColor, children: title }),
|
|
3104
|
+
/* @__PURE__ */ jsx(Description, { variant: descriptionVariant, children: description }),
|
|
3105
|
+
/* @__PURE__ */ jsx(
|
|
3398
3106
|
ExtendedButton,
|
|
3399
3107
|
{
|
|
3400
3108
|
text: buttonText,
|
|
@@ -3407,11 +3115,7 @@ var SidePanel = ({
|
|
|
3407
3115
|
] })
|
|
3408
3116
|
] }) });
|
|
3409
3117
|
};
|
|
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`
|
|
3118
|
+
var Container19 = styled39.div`
|
|
3415
3119
|
width: 100%;
|
|
3416
3120
|
background-color: ${(props) => props.isSelected ? colors.background.blue : colors.background.primary};
|
|
3417
3121
|
border: 1px solid ${colors.background.blue};
|
|
@@ -3422,7 +3126,7 @@ var Container19 = styled42.div`
|
|
|
3422
3126
|
padding: ${spaces[2]} ${spaces[3]};
|
|
3423
3127
|
cursor: pointer;
|
|
3424
3128
|
`;
|
|
3425
|
-
var StyledLabel2 =
|
|
3129
|
+
var StyledLabel2 = styled39.span`
|
|
3426
3130
|
color: ${(props) => props.isSelected ? colors.text.secondary : colors.text.blue};
|
|
3427
3131
|
font-size: ${sizes.sm};
|
|
3428
3132
|
font-weight: 700;
|
|
@@ -3432,19 +3136,15 @@ var StepperHeaderTab = ({
|
|
|
3432
3136
|
isSelected,
|
|
3433
3137
|
onClick
|
|
3434
3138
|
}) => {
|
|
3435
|
-
return /* @__PURE__ */
|
|
3139
|
+
return /* @__PURE__ */ jsx(Container19, { isSelected, onClick, children: /* @__PURE__ */ jsx(StyledLabel2, { isSelected, children: title }) });
|
|
3436
3140
|
};
|
|
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";
|
|
3441
3141
|
var Textarea2 = ({ label, error, ...rest }) => {
|
|
3442
|
-
const isInvalid =
|
|
3142
|
+
const isInvalid = useMemo(
|
|
3443
3143
|
() => typeof error === "string" && error.length > 0,
|
|
3444
3144
|
[error]
|
|
3445
3145
|
);
|
|
3446
|
-
return /* @__PURE__ */
|
|
3447
|
-
typeof label === "string" && /* @__PURE__ */
|
|
3146
|
+
return /* @__PURE__ */ jsxs(InputContainer, { children: [
|
|
3147
|
+
typeof label === "string" && /* @__PURE__ */ jsx(
|
|
3448
3148
|
FloatingLabel,
|
|
3449
3149
|
{
|
|
3450
3150
|
color: isInvalid ? "error" : "subtle",
|
|
@@ -3452,14 +3152,10 @@ var Textarea2 = ({ label, error, ...rest }) => {
|
|
|
3452
3152
|
fontWeight: "600"
|
|
3453
3153
|
}
|
|
3454
3154
|
),
|
|
3455
|
-
/* @__PURE__ */
|
|
3155
|
+
/* @__PURE__ */ jsx(Textarea, { ...rest })
|
|
3456
3156
|
] });
|
|
3457
3157
|
};
|
|
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`
|
|
3158
|
+
var Container20 = styled39.div`
|
|
3463
3159
|
display: flex;
|
|
3464
3160
|
flex-direction: column;
|
|
3465
3161
|
gap: ${spaces[4]};
|
|
@@ -3467,7 +3163,7 @@ var Container20 = styled43.div`
|
|
|
3467
3163
|
gap: ${spaces[2]};
|
|
3468
3164
|
}
|
|
3469
3165
|
`;
|
|
3470
|
-
var NameContainer =
|
|
3166
|
+
var NameContainer = styled39.div`
|
|
3471
3167
|
display: flex;
|
|
3472
3168
|
gap: ${spaces[4]};
|
|
3473
3169
|
@media (max-width: ${breakpoints.sm}) {
|
|
@@ -3476,9 +3172,9 @@ var NameContainer = styled43.div`
|
|
|
3476
3172
|
flex: 1;
|
|
3477
3173
|
`;
|
|
3478
3174
|
var ContactForm = ({}) => {
|
|
3479
|
-
return /* @__PURE__ */
|
|
3480
|
-
/* @__PURE__ */
|
|
3481
|
-
/* @__PURE__ */
|
|
3175
|
+
return /* @__PURE__ */ jsxs(Container20, { children: [
|
|
3176
|
+
/* @__PURE__ */ jsxs(NameContainer, { children: [
|
|
3177
|
+
/* @__PURE__ */ jsx(
|
|
3482
3178
|
SecondaryInput,
|
|
3483
3179
|
{
|
|
3484
3180
|
name: "firstName",
|
|
@@ -3487,7 +3183,7 @@ var ContactForm = ({}) => {
|
|
|
3487
3183
|
placeholder: "First name"
|
|
3488
3184
|
}
|
|
3489
3185
|
),
|
|
3490
|
-
/* @__PURE__ */
|
|
3186
|
+
/* @__PURE__ */ jsx(
|
|
3491
3187
|
SecondaryInput,
|
|
3492
3188
|
{
|
|
3493
3189
|
name: "lastName",
|
|
@@ -3497,10 +3193,10 @@ var ContactForm = ({}) => {
|
|
|
3497
3193
|
}
|
|
3498
3194
|
)
|
|
3499
3195
|
] }),
|
|
3500
|
-
/* @__PURE__ */
|
|
3501
|
-
/* @__PURE__ */
|
|
3502
|
-
/* @__PURE__ */
|
|
3503
|
-
/* @__PURE__ */
|
|
3196
|
+
/* @__PURE__ */ jsx(SecondaryInput, { name: "company", label: "Company", placeholder: "Company" }),
|
|
3197
|
+
/* @__PURE__ */ jsx(SecondaryInput, { name: "email", label: "Email", placeholder: "Email", required: true }),
|
|
3198
|
+
/* @__PURE__ */ jsx(SecondaryInput, { name: "phone", label: "Phone number", placeholder: "Phone number" }),
|
|
3199
|
+
/* @__PURE__ */ jsx(
|
|
3504
3200
|
SecondaryInput,
|
|
3505
3201
|
{
|
|
3506
3202
|
name: "message",
|
|
@@ -3512,15 +3208,7 @@ var ContactForm = ({}) => {
|
|
|
3512
3208
|
)
|
|
3513
3209
|
] });
|
|
3514
3210
|
};
|
|
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`
|
|
3211
|
+
var Container21 = styled39.div`
|
|
3524
3212
|
display: flex;
|
|
3525
3213
|
width: ${`${100 / 4}%`};
|
|
3526
3214
|
overflow: scroll;
|
|
@@ -3537,7 +3225,7 @@ var Container21 = styled44.div`
|
|
|
3537
3225
|
-ms-overflow-style: none;
|
|
3538
3226
|
scrollbar-width: none;
|
|
3539
3227
|
`;
|
|
3540
|
-
var IconContainer =
|
|
3228
|
+
var IconContainer = styled39.div`
|
|
3541
3229
|
display: flex;
|
|
3542
3230
|
flex-direction: column;
|
|
3543
3231
|
align-items: center;
|
|
@@ -3547,19 +3235,15 @@ var DocumentAccordionHeader = ({
|
|
|
3547
3235
|
onClick,
|
|
3548
3236
|
title
|
|
3549
3237
|
}) => {
|
|
3550
|
-
return /* @__PURE__ */
|
|
3551
|
-
/* @__PURE__ */
|
|
3552
|
-
onClick && /* @__PURE__ */
|
|
3553
|
-
/* @__PURE__ */
|
|
3554
|
-
/* @__PURE__ */
|
|
3238
|
+
return /* @__PURE__ */ jsxs(Container21, { onClick, children: [
|
|
3239
|
+
/* @__PURE__ */ jsx(Text2, { children: title }),
|
|
3240
|
+
onClick && /* @__PURE__ */ jsxs(IconContainer, { children: [
|
|
3241
|
+
/* @__PURE__ */ jsx(FaCaretUp, { size: 10 }),
|
|
3242
|
+
/* @__PURE__ */ jsx(FaCaretDown, { size: 10 })
|
|
3555
3243
|
] })
|
|
3556
3244
|
] });
|
|
3557
3245
|
};
|
|
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`
|
|
3246
|
+
var ItemContainer = styled39.div`
|
|
3563
3247
|
display: flex;
|
|
3564
3248
|
align-items: center;
|
|
3565
3249
|
cursor: ${(props) => props?.onClick ? "pointer" : "auto"};
|
|
@@ -3580,10 +3264,10 @@ var DocumentAccordionRow = ({
|
|
|
3580
3264
|
file,
|
|
3581
3265
|
onViewDetail
|
|
3582
3266
|
}) => {
|
|
3583
|
-
return /* @__PURE__ */
|
|
3584
|
-
/* @__PURE__ */
|
|
3585
|
-
/* @__PURE__ */
|
|
3586
|
-
/* @__PURE__ */
|
|
3267
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3268
|
+
/* @__PURE__ */ jsx(ItemContainer, { children: /* @__PURE__ */ jsx(Label, { value: file.name, color: "brand" }) }),
|
|
3269
|
+
/* @__PURE__ */ jsx(ItemContainer, { children: /* @__PURE__ */ jsx(Label, { value: file.sourceFile, color: "primary" }) }),
|
|
3270
|
+
/* @__PURE__ */ jsx(ItemContainer, { children: /* @__PURE__ */ jsx(
|
|
3587
3271
|
Label,
|
|
3588
3272
|
{
|
|
3589
3273
|
value: typeof file.status === "string" ? file.status : "-",
|
|
@@ -3591,7 +3275,7 @@ var DocumentAccordionRow = ({
|
|
|
3591
3275
|
fontWeight: "700"
|
|
3592
3276
|
}
|
|
3593
3277
|
) }),
|
|
3594
|
-
/* @__PURE__ */
|
|
3278
|
+
/* @__PURE__ */ jsx(ItemContainer, { children: /* @__PURE__ */ jsx(
|
|
3595
3279
|
Label,
|
|
3596
3280
|
{
|
|
3597
3281
|
value: typeof file.createdAt === "string" ? file.createdAt : "-",
|
|
@@ -3599,20 +3283,17 @@ var DocumentAccordionRow = ({
|
|
|
3599
3283
|
fontWeight: "700"
|
|
3600
3284
|
}
|
|
3601
3285
|
) }),
|
|
3602
|
-
/* @__PURE__ */
|
|
3286
|
+
/* @__PURE__ */ jsx(ItemContainer, { onClick: onViewDetail, children: /* @__PURE__ */ jsx(Label, { value: "View Details", color: "brand", fontWeight: "700" }) })
|
|
3603
3287
|
] });
|
|
3604
3288
|
};
|
|
3605
|
-
|
|
3606
|
-
// src/organism/DocumentListAccordion/DocumentListAccordion.tsx
|
|
3607
|
-
import { jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
3608
|
-
var HeadersContainer = styled46.div`
|
|
3289
|
+
var HeadersContainer = styled39.div`
|
|
3609
3290
|
width: 100%;
|
|
3610
3291
|
display: flex;
|
|
3611
3292
|
flex-direction: row;
|
|
3612
3293
|
align-items: center;
|
|
3613
3294
|
gap: ${spaces[6]};
|
|
3614
3295
|
`;
|
|
3615
|
-
var Container22 =
|
|
3296
|
+
var Container22 = styled39.div`
|
|
3616
3297
|
display: flex;
|
|
3617
3298
|
flex-direction: column;
|
|
3618
3299
|
gap: ${spaces[3]};
|
|
@@ -3628,10 +3309,10 @@ var DocumentListAccordion = ({
|
|
|
3628
3309
|
const onClick = (accessor) => {
|
|
3629
3310
|
onSortBy && onSortBy(accessor);
|
|
3630
3311
|
};
|
|
3631
|
-
return /* @__PURE__ */
|
|
3312
|
+
return /* @__PURE__ */ jsx(
|
|
3632
3313
|
Accordion,
|
|
3633
3314
|
{
|
|
3634
|
-
rightElement: /* @__PURE__ */
|
|
3315
|
+
rightElement: /* @__PURE__ */ jsx(
|
|
3635
3316
|
FileButton,
|
|
3636
3317
|
{
|
|
3637
3318
|
onFileSelect,
|
|
@@ -3640,46 +3321,46 @@ var DocumentListAccordion = ({
|
|
|
3640
3321
|
}
|
|
3641
3322
|
),
|
|
3642
3323
|
title,
|
|
3643
|
-
children: /* @__PURE__ */
|
|
3644
|
-
/* @__PURE__ */
|
|
3645
|
-
/* @__PURE__ */
|
|
3324
|
+
children: /* @__PURE__ */ jsxs(Container22, { children: [
|
|
3325
|
+
/* @__PURE__ */ jsxs(HeadersContainer, { children: [
|
|
3326
|
+
/* @__PURE__ */ jsx(
|
|
3646
3327
|
DocumentAccordionHeader,
|
|
3647
3328
|
{
|
|
3648
3329
|
title: "File Name",
|
|
3649
3330
|
onClick: () => onClick("name")
|
|
3650
3331
|
}
|
|
3651
3332
|
),
|
|
3652
|
-
/* @__PURE__ */
|
|
3333
|
+
/* @__PURE__ */ jsx(
|
|
3653
3334
|
DocumentAccordionHeader,
|
|
3654
3335
|
{
|
|
3655
3336
|
title: "Source File Name",
|
|
3656
3337
|
onClick: () => onClick("status")
|
|
3657
3338
|
}
|
|
3658
3339
|
),
|
|
3659
|
-
/* @__PURE__ */
|
|
3340
|
+
/* @__PURE__ */ jsx(
|
|
3660
3341
|
DocumentAccordionHeader,
|
|
3661
3342
|
{
|
|
3662
3343
|
title: "File Status",
|
|
3663
3344
|
onClick: () => onClick("status")
|
|
3664
3345
|
}
|
|
3665
3346
|
),
|
|
3666
|
-
/* @__PURE__ */
|
|
3347
|
+
/* @__PURE__ */ jsx(
|
|
3667
3348
|
DocumentAccordionHeader,
|
|
3668
3349
|
{
|
|
3669
3350
|
title: "Date Created",
|
|
3670
3351
|
onClick: () => onClick("createdAt")
|
|
3671
3352
|
}
|
|
3672
3353
|
),
|
|
3673
|
-
/* @__PURE__ */
|
|
3354
|
+
/* @__PURE__ */ jsx(DocumentAccordionHeader, { title: "File Options" })
|
|
3674
3355
|
] }),
|
|
3675
|
-
files?.length === 0 && /* @__PURE__ */
|
|
3356
|
+
files?.length === 0 && /* @__PURE__ */ jsx(
|
|
3676
3357
|
EmptyState,
|
|
3677
3358
|
{
|
|
3678
3359
|
message: "No documents have been added to this record",
|
|
3679
3360
|
variant: "documents"
|
|
3680
3361
|
}
|
|
3681
3362
|
),
|
|
3682
|
-
files?.length > 0 && files.map((file) => /* @__PURE__ */
|
|
3363
|
+
files?.length > 0 && files.map((file) => /* @__PURE__ */ jsx(HeadersContainer, { children: /* @__PURE__ */ jsx(
|
|
3683
3364
|
DocumentAccordionRow,
|
|
3684
3365
|
{
|
|
3685
3366
|
file,
|
|
@@ -3690,39 +3371,33 @@ var DocumentListAccordion = ({
|
|
|
3690
3371
|
}
|
|
3691
3372
|
);
|
|
3692
3373
|
};
|
|
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`
|
|
3374
|
+
var CarouselContainer = styled39.div`
|
|
3700
3375
|
width: 1000px;
|
|
3701
3376
|
overflow: hidden;
|
|
3702
3377
|
position: relative;
|
|
3703
3378
|
margin: 0 auto;
|
|
3704
3379
|
`;
|
|
3705
|
-
var CardsWrapper =
|
|
3380
|
+
var CardsWrapper = styled39.div`
|
|
3706
3381
|
display: flex;
|
|
3707
3382
|
gap: 1.5rem;
|
|
3708
3383
|
overflow-x: hidden;
|
|
3709
3384
|
scroll-behavior: smooth;
|
|
3710
3385
|
padding: 1rem 0;
|
|
3711
3386
|
`;
|
|
3712
|
-
var CardContainer =
|
|
3387
|
+
var CardContainer = styled39.div`
|
|
3713
3388
|
display: flex;
|
|
3714
3389
|
gap: 1.5rem;
|
|
3715
3390
|
transform: translateX(${(props) => props.$translateX}px);
|
|
3716
3391
|
transition: transform 0.3s ease-in-out;
|
|
3717
3392
|
`;
|
|
3718
|
-
var NavigationWrapper =
|
|
3393
|
+
var NavigationWrapper = styled39.div`
|
|
3719
3394
|
display: flex;
|
|
3720
3395
|
justify-content: left;
|
|
3721
3396
|
align-items: center;
|
|
3722
3397
|
gap: 1rem;
|
|
3723
3398
|
margin-top: 1.5rem;
|
|
3724
3399
|
`;
|
|
3725
|
-
var NavButton =
|
|
3400
|
+
var NavButton = styled39.button`
|
|
3726
3401
|
width: 2.5rem;
|
|
3727
3402
|
height: 2.5rem;
|
|
3728
3403
|
border-radius: 50%;
|
|
@@ -3739,11 +3414,11 @@ var NavButton = styled47.button`
|
|
|
3739
3414
|
opacity: ${(props) => props.$disabled ? 1 : 0.8};
|
|
3740
3415
|
}
|
|
3741
3416
|
`;
|
|
3742
|
-
var Indicators =
|
|
3417
|
+
var Indicators = styled39.div`
|
|
3743
3418
|
display: flex;
|
|
3744
3419
|
gap: 0.5rem;
|
|
3745
3420
|
`;
|
|
3746
|
-
var Indicator =
|
|
3421
|
+
var Indicator = styled39.div`
|
|
3747
3422
|
width: 0.5rem;
|
|
3748
3423
|
height: 0.5rem;
|
|
3749
3424
|
border-radius: 50%;
|
|
@@ -3759,7 +3434,7 @@ var FeatureCarousel = ({
|
|
|
3759
3434
|
navButtonColor = "brand",
|
|
3760
3435
|
indicatorColor = "brand"
|
|
3761
3436
|
}) => {
|
|
3762
|
-
const [currentIndex, setCurrentIndex] =
|
|
3437
|
+
const [currentIndex, setCurrentIndex] = useState(0);
|
|
3763
3438
|
const cardWidth = 284;
|
|
3764
3439
|
const gap = 24;
|
|
3765
3440
|
const cardsToShow = 3;
|
|
@@ -3771,8 +3446,8 @@ var FeatureCarousel = ({
|
|
|
3771
3446
|
setCurrentIndex((prev) => Math.min(maxIndex, prev + 1));
|
|
3772
3447
|
};
|
|
3773
3448
|
const translateX = -currentIndex * (cardWidth + gap);
|
|
3774
|
-
return /* @__PURE__ */
|
|
3775
|
-
/* @__PURE__ */
|
|
3449
|
+
return /* @__PURE__ */ jsxs(CarouselContainer, { children: [
|
|
3450
|
+
/* @__PURE__ */ jsx(CardsWrapper, { children: /* @__PURE__ */ jsx(CardContainer, { $translateX: translateX, children: cards.map((card, index) => /* @__PURE__ */ jsx(
|
|
3776
3451
|
ContentCard,
|
|
3777
3452
|
{
|
|
3778
3453
|
thumbnail: card.thumbnail,
|
|
@@ -3786,17 +3461,17 @@ var FeatureCarousel = ({
|
|
|
3786
3461
|
},
|
|
3787
3462
|
index
|
|
3788
3463
|
)) }) }),
|
|
3789
|
-
/* @__PURE__ */
|
|
3790
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ jsxs(NavigationWrapper, { children: [
|
|
3465
|
+
/* @__PURE__ */ jsx(
|
|
3791
3466
|
NavButton,
|
|
3792
3467
|
{
|
|
3793
3468
|
onClick: handlePrev,
|
|
3794
3469
|
$disabled: currentIndex === 0,
|
|
3795
3470
|
navColor: navButtonColor,
|
|
3796
|
-
children: /* @__PURE__ */
|
|
3471
|
+
children: /* @__PURE__ */ jsx(HiArrowLeft, { size: 24 })
|
|
3797
3472
|
}
|
|
3798
3473
|
),
|
|
3799
|
-
/* @__PURE__ */
|
|
3474
|
+
/* @__PURE__ */ jsx(Indicators, { children: Array.from({ length: maxIndex + 1 }).map((_, index) => /* @__PURE__ */ jsx(
|
|
3800
3475
|
Indicator,
|
|
3801
3476
|
{
|
|
3802
3477
|
$active: index === currentIndex,
|
|
@@ -3804,24 +3479,20 @@ var FeatureCarousel = ({
|
|
|
3804
3479
|
},
|
|
3805
3480
|
index
|
|
3806
3481
|
)) }),
|
|
3807
|
-
/* @__PURE__ */
|
|
3482
|
+
/* @__PURE__ */ jsx(
|
|
3808
3483
|
NavButton,
|
|
3809
3484
|
{
|
|
3810
3485
|
onClick: handleNext,
|
|
3811
3486
|
$disabled: currentIndex === maxIndex,
|
|
3812
3487
|
navColor: navButtonColor,
|
|
3813
|
-
children: /* @__PURE__ */
|
|
3488
|
+
children: /* @__PURE__ */ jsx(HiArrowRight, { size: 24 })
|
|
3814
3489
|
}
|
|
3815
3490
|
)
|
|
3816
3491
|
] })
|
|
3817
3492
|
] });
|
|
3818
3493
|
};
|
|
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";
|
|
3823
3494
|
var variants13 = ["primary", "secondary"];
|
|
3824
|
-
var FooterContainer =
|
|
3495
|
+
var FooterContainer = styled39.footer`
|
|
3825
3496
|
background-color: ${(props) => {
|
|
3826
3497
|
switch (props.variant) {
|
|
3827
3498
|
case "primary":
|
|
@@ -3835,7 +3506,7 @@ var FooterContainer = styled48.footer`
|
|
|
3835
3506
|
padding: 3rem 2rem 2rem;
|
|
3836
3507
|
color: #ffffff;
|
|
3837
3508
|
`;
|
|
3838
|
-
var TopSection =
|
|
3509
|
+
var TopSection = styled39.div`
|
|
3839
3510
|
display: flex;
|
|
3840
3511
|
justify-content: space-between;
|
|
3841
3512
|
align-items: center;
|
|
@@ -3849,18 +3520,18 @@ var TopSection = styled48.div`
|
|
|
3849
3520
|
align-items: flex-start;
|
|
3850
3521
|
}
|
|
3851
3522
|
`;
|
|
3852
|
-
var LogoWrapper2 =
|
|
3523
|
+
var LogoWrapper2 = styled39.div`
|
|
3853
3524
|
img {
|
|
3854
3525
|
height: 100px;
|
|
3855
3526
|
width: auto;
|
|
3856
3527
|
}
|
|
3857
3528
|
`;
|
|
3858
|
-
var ButtonGroup2 =
|
|
3529
|
+
var ButtonGroup2 = styled39.div`
|
|
3859
3530
|
display: flex;
|
|
3860
3531
|
gap: 1rem;
|
|
3861
3532
|
align-items: center;
|
|
3862
3533
|
`;
|
|
3863
|
-
var MiddleSection =
|
|
3534
|
+
var MiddleSection = styled39.div`
|
|
3864
3535
|
display: grid;
|
|
3865
3536
|
grid-template-columns: 1fr 1fr auto;
|
|
3866
3537
|
gap: 3rem;
|
|
@@ -3875,12 +3546,12 @@ var MiddleSection = styled48.div`
|
|
|
3875
3546
|
grid-template-columns: 1fr;
|
|
3876
3547
|
}
|
|
3877
3548
|
`;
|
|
3878
|
-
var SocialButtonGroup =
|
|
3549
|
+
var SocialButtonGroup = styled39.div`
|
|
3879
3550
|
display: flex;
|
|
3880
3551
|
gap: 1rem;
|
|
3881
3552
|
flex-wrap: wrap;
|
|
3882
3553
|
`;
|
|
3883
|
-
var BottomSection =
|
|
3554
|
+
var BottomSection = styled39.div`
|
|
3884
3555
|
display: flex;
|
|
3885
3556
|
justify-content: space-between;
|
|
3886
3557
|
align-items: center;
|
|
@@ -3893,7 +3564,7 @@ var BottomSection = styled48.div`
|
|
|
3893
3564
|
align-items: flex-start;
|
|
3894
3565
|
}
|
|
3895
3566
|
`;
|
|
3896
|
-
var LegalLinks =
|
|
3567
|
+
var LegalLinks = styled39.div`
|
|
3897
3568
|
display: flex;
|
|
3898
3569
|
gap: 2rem;
|
|
3899
3570
|
|
|
@@ -3902,7 +3573,7 @@ var LegalLinks = styled48.div`
|
|
|
3902
3573
|
gap: 0.5rem;
|
|
3903
3574
|
}
|
|
3904
3575
|
`;
|
|
3905
|
-
var LegalLink =
|
|
3576
|
+
var LegalLink = styled39.a`
|
|
3906
3577
|
color: #ffffff;
|
|
3907
3578
|
text-decoration: none;
|
|
3908
3579
|
font-size: 0.875rem;
|
|
@@ -3914,7 +3585,7 @@ var LegalLink = styled48.a`
|
|
|
3914
3585
|
opacity: 0.8;
|
|
3915
3586
|
}
|
|
3916
3587
|
`;
|
|
3917
|
-
var Copyright =
|
|
3588
|
+
var Copyright = styled39.p`
|
|
3918
3589
|
margin: 0;
|
|
3919
3590
|
font-size: 0.875rem;
|
|
3920
3591
|
color: rgba(255, 255, 255, 0.8);
|
|
@@ -3936,11 +3607,11 @@ var Footer = ({
|
|
|
3936
3607
|
secondaryBgVariant = "transparent",
|
|
3937
3608
|
secondaryTextVariant = "secondary"
|
|
3938
3609
|
}) => {
|
|
3939
|
-
return /* @__PURE__ */
|
|
3940
|
-
/* @__PURE__ */
|
|
3941
|
-
/* @__PURE__ */
|
|
3942
|
-
/* @__PURE__ */
|
|
3943
|
-
/* @__PURE__ */
|
|
3610
|
+
return /* @__PURE__ */ jsxs(FooterContainer, { variant, children: [
|
|
3611
|
+
/* @__PURE__ */ jsxs(TopSection, { children: [
|
|
3612
|
+
/* @__PURE__ */ jsx(LogoWrapper2, { children: /* @__PURE__ */ jsx("img", { src: logo, alt: "Logo" }) }),
|
|
3613
|
+
/* @__PURE__ */ jsxs(ButtonGroup2, { children: [
|
|
3614
|
+
/* @__PURE__ */ jsx(
|
|
3944
3615
|
ExtendedButton,
|
|
3945
3616
|
{
|
|
3946
3617
|
text: primaryButtonText,
|
|
@@ -3950,7 +3621,7 @@ var Footer = ({
|
|
|
3950
3621
|
textVariant: primaryTextVariant
|
|
3951
3622
|
}
|
|
3952
3623
|
),
|
|
3953
|
-
/* @__PURE__ */
|
|
3624
|
+
/* @__PURE__ */ jsx(
|
|
3954
3625
|
TextButton,
|
|
3955
3626
|
{
|
|
3956
3627
|
text: secondaryButtonText,
|
|
@@ -3962,8 +3633,8 @@ var Footer = ({
|
|
|
3962
3633
|
)
|
|
3963
3634
|
] })
|
|
3964
3635
|
] }),
|
|
3965
|
-
/* @__PURE__ */
|
|
3966
|
-
addresses.map((address, index) => /* @__PURE__ */
|
|
3636
|
+
/* @__PURE__ */ jsxs(MiddleSection, { children: [
|
|
3637
|
+
addresses.map((address, index) => /* @__PURE__ */ jsx(
|
|
3967
3638
|
Address,
|
|
3968
3639
|
{
|
|
3969
3640
|
title: address.title,
|
|
@@ -3974,7 +3645,7 @@ var Footer = ({
|
|
|
3974
3645
|
},
|
|
3975
3646
|
index
|
|
3976
3647
|
)),
|
|
3977
|
-
/* @__PURE__ */
|
|
3648
|
+
/* @__PURE__ */ jsx(SocialButtonGroup, { children: socialLinks.map((social, index) => /* @__PURE__ */ jsx(
|
|
3978
3649
|
SocialButton,
|
|
3979
3650
|
{
|
|
3980
3651
|
icon: social.icon,
|
|
@@ -3985,25 +3656,21 @@ var Footer = ({
|
|
|
3985
3656
|
index
|
|
3986
3657
|
)) })
|
|
3987
3658
|
] }),
|
|
3988
|
-
/* @__PURE__ */
|
|
3989
|
-
/* @__PURE__ */
|
|
3990
|
-
/* @__PURE__ */
|
|
3659
|
+
/* @__PURE__ */ jsxs(BottomSection, { children: [
|
|
3660
|
+
/* @__PURE__ */ jsx(LegalLinks, { children: legalLinks.map((link, index) => /* @__PURE__ */ jsx(LegalLink, { href: link.url, children: link.text }, index)) }),
|
|
3661
|
+
/* @__PURE__ */ jsx(Copyright, { children: copyrightText })
|
|
3991
3662
|
] })
|
|
3992
3663
|
] });
|
|
3993
3664
|
};
|
|
3994
3665
|
Footer.variants = variants13;
|
|
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`
|
|
3666
|
+
var HeaderContainer3 = styled39.header`
|
|
4000
3667
|
display: flex;
|
|
4001
3668
|
justify-content: space-between;
|
|
4002
3669
|
align-items: center;
|
|
4003
3670
|
background-color: #ffffff;
|
|
4004
3671
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
4005
3672
|
`;
|
|
4006
|
-
var LogoWrapper3 =
|
|
3673
|
+
var LogoWrapper3 = styled39.div`
|
|
4007
3674
|
display: flex;
|
|
4008
3675
|
align-items: center;
|
|
4009
3676
|
|
|
@@ -4012,7 +3679,7 @@ var LogoWrapper3 = styled49.div`
|
|
|
4012
3679
|
width: auto;
|
|
4013
3680
|
}
|
|
4014
3681
|
`;
|
|
4015
|
-
var ButtonGroup3 =
|
|
3682
|
+
var ButtonGroup3 = styled39.div`
|
|
4016
3683
|
display: flex;
|
|
4017
3684
|
gap: 1rem;
|
|
4018
3685
|
align-items: center;
|
|
@@ -4029,10 +3696,10 @@ var Header3 = ({
|
|
|
4029
3696
|
secondaryBgVariant = "transparent",
|
|
4030
3697
|
secondaryTextVariant = "brand"
|
|
4031
3698
|
}) => {
|
|
4032
|
-
return /* @__PURE__ */
|
|
4033
|
-
/* @__PURE__ */
|
|
4034
|
-
/* @__PURE__ */
|
|
4035
|
-
/* @__PURE__ */
|
|
3699
|
+
return /* @__PURE__ */ jsxs(HeaderContainer3, { children: [
|
|
3700
|
+
/* @__PURE__ */ jsx(LogoWrapper3, { children: /* @__PURE__ */ jsx("img", { src: logo, alt: "Logo" }) }),
|
|
3701
|
+
/* @__PURE__ */ jsxs(ButtonGroup3, { children: [
|
|
3702
|
+
/* @__PURE__ */ jsx(
|
|
4036
3703
|
ExtendedButton,
|
|
4037
3704
|
{
|
|
4038
3705
|
text: primaryButtonText,
|
|
@@ -4042,7 +3709,7 @@ var Header3 = ({
|
|
|
4042
3709
|
textVariant: primaryTextVariant
|
|
4043
3710
|
}
|
|
4044
3711
|
),
|
|
4045
|
-
/* @__PURE__ */
|
|
3712
|
+
/* @__PURE__ */ jsx(
|
|
4046
3713
|
TextButton,
|
|
4047
3714
|
{
|
|
4048
3715
|
text: secondaryButtonText,
|
|
@@ -4055,16 +3722,12 @@ var Header3 = ({
|
|
|
4055
3722
|
] })
|
|
4056
3723
|
] });
|
|
4057
3724
|
};
|
|
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`
|
|
3725
|
+
var Container23 = styled39.div`
|
|
4063
3726
|
display: flex;
|
|
4064
3727
|
flex-direction: column;
|
|
4065
3728
|
gap: ${spaces[2]};
|
|
4066
3729
|
`;
|
|
4067
|
-
|
|
3730
|
+
styled39.div`
|
|
4068
3731
|
display: flex;
|
|
4069
3732
|
flex-direction: column;
|
|
4070
3733
|
gap: ${spaces[2]};
|
|
@@ -4080,22 +3743,18 @@ var OverviewList = ({ overviews }) => {
|
|
|
4080
3743
|
});
|
|
4081
3744
|
return isCompleted;
|
|
4082
3745
|
}
|
|
4083
|
-
return /* @__PURE__ */
|
|
3746
|
+
return /* @__PURE__ */ jsx(Container23, { children: overviews.map((overview) => /* @__PURE__ */ jsx(Container23, { children: /* @__PURE__ */ jsx(OverviewRowItem, { title: overview.header, isMainHeader: true, isComplete: isAllCompleted(overview.overviewItems) }) }, overview.header)) });
|
|
4084
3747
|
};
|
|
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";
|
|
4089
3748
|
var ToastContext = createContext({ showToast: () => {
|
|
4090
3749
|
} });
|
|
4091
3750
|
var useToast = () => useContext(ToastContext);
|
|
4092
3751
|
var ToastProvider = ({ children }) => {
|
|
4093
|
-
const [toast, setToast] =
|
|
3752
|
+
const [toast, setToast] = useState();
|
|
4094
3753
|
function showToast({ message, type = "Success" }) {
|
|
4095
3754
|
setToast({ message, type });
|
|
4096
3755
|
}
|
|
4097
|
-
return /* @__PURE__ */
|
|
4098
|
-
/* @__PURE__ */
|
|
3756
|
+
return /* @__PURE__ */ jsxs(ToastContext.Provider, { value: { showToast }, children: [
|
|
3757
|
+
/* @__PURE__ */ jsx(
|
|
4099
3758
|
Toast,
|
|
4100
3759
|
{
|
|
4101
3760
|
type: toast?.type ?? "Success",
|
|
@@ -4107,17 +3766,10 @@ var ToastProvider = ({ children }) => {
|
|
|
4107
3766
|
children
|
|
4108
3767
|
] });
|
|
4109
3768
|
};
|
|
4110
|
-
|
|
4111
|
-
// src/organism/VersionLabel/VersionLabel.tsx
|
|
4112
|
-
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
4113
3769
|
var VersionLabel = ({ versionNumber }) => {
|
|
4114
|
-
return /* @__PURE__ */
|
|
3770
|
+
return /* @__PURE__ */ jsx(Label, { value: `V${versionNumber}` });
|
|
4115
3771
|
};
|
|
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`
|
|
3772
|
+
var AboutUsContainer = styled39.section`
|
|
4121
3773
|
display: grid;
|
|
4122
3774
|
grid-template-columns: 35% 65%;
|
|
4123
3775
|
gap: 3rem;
|
|
@@ -4125,13 +3777,13 @@ var AboutUsContainer = styled51.section`
|
|
|
4125
3777
|
max-width: 1200px;
|
|
4126
3778
|
margin: 0 auto;
|
|
4127
3779
|
align-items: start;
|
|
4128
|
-
background-color: ${colors.background?.light
|
|
3780
|
+
background-color: ${colors.background?.light};
|
|
4129
3781
|
|
|
4130
3782
|
@media (max-width: 768px) {
|
|
4131
3783
|
grid-template-columns: 1fr;
|
|
4132
3784
|
}
|
|
4133
3785
|
`;
|
|
4134
|
-
var ImageWrapper2 =
|
|
3786
|
+
var ImageWrapper2 = styled39.div`
|
|
4135
3787
|
width: 100%;
|
|
4136
3788
|
aspect-ratio: 3 / 4;
|
|
4137
3789
|
border-radius: 8px;
|
|
@@ -4144,7 +3796,7 @@ var ImageWrapper2 = styled51.div`
|
|
|
4144
3796
|
object-fit: cover;
|
|
4145
3797
|
}
|
|
4146
3798
|
`;
|
|
4147
|
-
var ContentWrapper3 =
|
|
3799
|
+
var ContentWrapper3 = styled39.div`
|
|
4148
3800
|
display: flex;
|
|
4149
3801
|
flex-direction: column;
|
|
4150
3802
|
gap: 1.5rem;
|
|
@@ -4164,13 +3816,13 @@ var AboutUs = ({
|
|
|
4164
3816
|
buttonTextBgVariant = "transparent",
|
|
4165
3817
|
buttonTextVariant = "brand"
|
|
4166
3818
|
}) => {
|
|
4167
|
-
return /* @__PURE__ */
|
|
4168
|
-
/* @__PURE__ */
|
|
4169
|
-
/* @__PURE__ */
|
|
4170
|
-
/* @__PURE__ */
|
|
4171
|
-
/* @__PURE__ */
|
|
4172
|
-
/* @__PURE__ */
|
|
4173
|
-
/* @__PURE__ */
|
|
3819
|
+
return /* @__PURE__ */ jsxs(AboutUsContainer, { children: [
|
|
3820
|
+
/* @__PURE__ */ jsx(ImageWrapper2, { children: /* @__PURE__ */ jsx("img", { src: image, alt: "About Us" }) }),
|
|
3821
|
+
/* @__PURE__ */ jsxs(ContentWrapper3, { children: [
|
|
3822
|
+
/* @__PURE__ */ jsx(Pill, { variant: pillVariant, inverse: true, children: pillText }),
|
|
3823
|
+
/* @__PURE__ */ jsx(Header, { variant: "h1", color: headerColor, children: headerText }),
|
|
3824
|
+
/* @__PURE__ */ jsx(Description, { variant: descriptionVariant, children: description }),
|
|
3825
|
+
/* @__PURE__ */ jsx(
|
|
4174
3826
|
ExtendedButton,
|
|
4175
3827
|
{
|
|
4176
3828
|
text: buttonText,
|
|
@@ -4183,19 +3835,15 @@ var AboutUs = ({
|
|
|
4183
3835
|
] })
|
|
4184
3836
|
] });
|
|
4185
3837
|
};
|
|
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`
|
|
3838
|
+
var ContactSection = styled39.section`
|
|
4191
3839
|
display: flex;
|
|
4192
3840
|
justify-content: center;
|
|
4193
3841
|
align-items: center;
|
|
4194
3842
|
padding: 4rem 2rem;
|
|
4195
3843
|
min-height: 100vh;
|
|
4196
|
-
background-color: ${colors.background?.light
|
|
3844
|
+
background-color: ${colors.background?.light};
|
|
4197
3845
|
`;
|
|
4198
|
-
var ContentWrapper4 =
|
|
3846
|
+
var ContentWrapper4 = styled39.div`
|
|
4199
3847
|
display: grid;
|
|
4200
3848
|
grid-template-columns: 1fr 1fr;
|
|
4201
3849
|
gap: 0;
|
|
@@ -4207,7 +3855,7 @@ var ContentWrapper4 = styled52.div`
|
|
|
4207
3855
|
grid-template-columns: 1fr;
|
|
4208
3856
|
}
|
|
4209
3857
|
`;
|
|
4210
|
-
var ImageWrapper3 =
|
|
3858
|
+
var ImageWrapper3 = styled39.div`
|
|
4211
3859
|
width: 100%;
|
|
4212
3860
|
height: 100%;
|
|
4213
3861
|
min-height: 600px;
|
|
@@ -4223,19 +3871,19 @@ var ImageWrapper3 = styled52.div`
|
|
|
4223
3871
|
min-height: 400px;
|
|
4224
3872
|
}
|
|
4225
3873
|
`;
|
|
4226
|
-
var FormContainer2 =
|
|
3874
|
+
var FormContainer2 = styled39.div`
|
|
4227
3875
|
display: flex;
|
|
4228
3876
|
flex-direction: column;
|
|
4229
3877
|
gap: 2rem;
|
|
4230
3878
|
padding: 4rem 3rem;
|
|
4231
3879
|
background-color: #ffffff;
|
|
4232
3880
|
`;
|
|
4233
|
-
var FormWrapper =
|
|
3881
|
+
var FormWrapper = styled39.div`
|
|
4234
3882
|
display: flex;
|
|
4235
3883
|
flex-direction: column;
|
|
4236
3884
|
gap: 2rem;
|
|
4237
3885
|
`;
|
|
4238
|
-
var ButtonWrapper3 =
|
|
3886
|
+
var ButtonWrapper3 = styled39.div`
|
|
4239
3887
|
display: flex;
|
|
4240
3888
|
justify-content: flex-start;
|
|
4241
3889
|
`;
|
|
@@ -4252,13 +3900,13 @@ var Contact = ({
|
|
|
4252
3900
|
buttonTextBgVariant = "brand",
|
|
4253
3901
|
buttonTextVariant = "secondary"
|
|
4254
3902
|
}) => {
|
|
4255
|
-
return /* @__PURE__ */
|
|
4256
|
-
/* @__PURE__ */
|
|
4257
|
-
/* @__PURE__ */
|
|
4258
|
-
/* @__PURE__ */
|
|
4259
|
-
/* @__PURE__ */
|
|
4260
|
-
/* @__PURE__ */
|
|
4261
|
-
/* @__PURE__ */
|
|
3903
|
+
return /* @__PURE__ */ jsx(ContactSection, { children: /* @__PURE__ */ jsxs(ContentWrapper4, { children: [
|
|
3904
|
+
/* @__PURE__ */ jsx(ImageWrapper3, { children: /* @__PURE__ */ jsx("img", { src: image, alt: "Contact" }) }),
|
|
3905
|
+
/* @__PURE__ */ jsxs(FormContainer2, { children: [
|
|
3906
|
+
/* @__PURE__ */ jsx(Header, { variant: "h1", color: headerColor, children: headerText }),
|
|
3907
|
+
/* @__PURE__ */ jsxs(FormWrapper, { children: [
|
|
3908
|
+
/* @__PURE__ */ jsx(ContactForm, {}),
|
|
3909
|
+
/* @__PURE__ */ jsx(
|
|
4262
3910
|
TermsCheckbox,
|
|
4263
3911
|
{
|
|
4264
3912
|
checked: termsChecked,
|
|
@@ -4266,7 +3914,7 @@ var Contact = ({
|
|
|
4266
3914
|
variant: termsVariant
|
|
4267
3915
|
}
|
|
4268
3916
|
),
|
|
4269
|
-
/* @__PURE__ */
|
|
3917
|
+
/* @__PURE__ */ jsx(ButtonWrapper3, { children: /* @__PURE__ */ jsx(
|
|
4270
3918
|
ExtendedButton,
|
|
4271
3919
|
{
|
|
4272
3920
|
text: buttonText,
|
|
@@ -4280,25 +3928,21 @@ var Contact = ({
|
|
|
4280
3928
|
] })
|
|
4281
3929
|
] }) });
|
|
4282
3930
|
};
|
|
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`
|
|
3931
|
+
var FAQContainer = styled39.section`
|
|
4288
3932
|
display: flex;
|
|
4289
3933
|
flex-direction: column;
|
|
4290
3934
|
gap: 2rem;
|
|
4291
3935
|
padding: 4rem 2rem;
|
|
4292
3936
|
min-height: 100vh;
|
|
4293
|
-
background-color: ${colors.background?.primary
|
|
3937
|
+
background-color: ${colors.background?.primary};
|
|
4294
3938
|
`;
|
|
4295
|
-
var HeaderSection2 =
|
|
3939
|
+
var HeaderSection2 = styled39.div`
|
|
4296
3940
|
display: flex;
|
|
4297
3941
|
flex-direction: column;
|
|
4298
3942
|
gap: 1.5rem;
|
|
4299
3943
|
align-items: flex-start;
|
|
4300
3944
|
`;
|
|
4301
|
-
var AccordionList =
|
|
3945
|
+
var AccordionList = styled39.div`
|
|
4302
3946
|
display: flex;
|
|
4303
3947
|
flex-direction: column;
|
|
4304
3948
|
max-width: 900px;
|
|
@@ -4316,12 +3960,12 @@ var FAQ = ({
|
|
|
4316
3960
|
accordionIconColor = "brand",
|
|
4317
3961
|
accordionContentVariant = "primary"
|
|
4318
3962
|
}) => {
|
|
4319
|
-
return /* @__PURE__ */
|
|
4320
|
-
/* @__PURE__ */
|
|
4321
|
-
/* @__PURE__ */
|
|
4322
|
-
/* @__PURE__ */
|
|
3963
|
+
return /* @__PURE__ */ jsxs(FAQContainer, { children: [
|
|
3964
|
+
/* @__PURE__ */ jsxs(HeaderSection2, { children: [
|
|
3965
|
+
/* @__PURE__ */ jsx(Pill, { variant: pillVariant, inverse: true, children: pillText }),
|
|
3966
|
+
/* @__PURE__ */ jsx(Header, { variant: headerVariant, color: headerColor, children: headerText })
|
|
4323
3967
|
] }),
|
|
4324
|
-
/* @__PURE__ */
|
|
3968
|
+
/* @__PURE__ */ jsx(AccordionList, { children: accordionItems.map((item, index) => /* @__PURE__ */ jsx(
|
|
4325
3969
|
FAQAccordion,
|
|
4326
3970
|
{
|
|
4327
3971
|
number: item.number,
|
|
@@ -4337,11 +3981,7 @@ var FAQ = ({
|
|
|
4337
3981
|
)) })
|
|
4338
3982
|
] });
|
|
4339
3983
|
};
|
|
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`
|
|
3984
|
+
var FeaturesContainer = styled39.section`
|
|
4345
3985
|
display: flex;
|
|
4346
3986
|
flex-direction: column;
|
|
4347
3987
|
align-items: flex-start;
|
|
@@ -4349,9 +3989,9 @@ var FeaturesContainer = styled54.section`
|
|
|
4349
3989
|
gap: 2rem;
|
|
4350
3990
|
padding: 4rem 2rem;
|
|
4351
3991
|
min-height: 100vh;
|
|
4352
|
-
background-color: ${colors.background?.light
|
|
3992
|
+
background-color: ${colors.background?.light};
|
|
4353
3993
|
`;
|
|
4354
|
-
var HeaderWrapper2 =
|
|
3994
|
+
var HeaderWrapper2 = styled39.div`
|
|
4355
3995
|
text-align: left;
|
|
4356
3996
|
`;
|
|
4357
3997
|
var Features = ({
|
|
@@ -4367,10 +4007,10 @@ var Features = ({
|
|
|
4367
4007
|
navButtonColor = "brand",
|
|
4368
4008
|
indicatorColor = "brand"
|
|
4369
4009
|
}) => {
|
|
4370
|
-
return /* @__PURE__ */
|
|
4371
|
-
/* @__PURE__ */
|
|
4372
|
-
/* @__PURE__ */
|
|
4373
|
-
/* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ jsxs(FeaturesContainer, { children: [
|
|
4011
|
+
/* @__PURE__ */ jsx(Pill, { variant: pillVariant, inverse: true, children: pillText }),
|
|
4012
|
+
/* @__PURE__ */ jsx(HeaderWrapper2, { children: /* @__PURE__ */ jsx(Header, { variant: "h1", color: headerColor, children: headerText }) }),
|
|
4013
|
+
/* @__PURE__ */ jsx(
|
|
4374
4014
|
FeatureCarousel,
|
|
4375
4015
|
{
|
|
4376
4016
|
cards,
|
|
@@ -4384,11 +4024,7 @@ var Features = ({
|
|
|
4384
4024
|
)
|
|
4385
4025
|
] });
|
|
4386
4026
|
};
|
|
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`
|
|
4027
|
+
var HeroContainer = styled39.section`
|
|
4392
4028
|
display: grid;
|
|
4393
4029
|
grid-template-columns: 1fr 1fr;
|
|
4394
4030
|
gap: 2rem;
|
|
@@ -4422,13 +4058,13 @@ var HeroContainer = styled55.section`
|
|
|
4422
4058
|
padding: 2rem;
|
|
4423
4059
|
}
|
|
4424
4060
|
`;
|
|
4425
|
-
var Column =
|
|
4061
|
+
var Column = styled39.div`
|
|
4426
4062
|
position: relative;
|
|
4427
4063
|
z-index: 2;
|
|
4428
4064
|
display: flex;
|
|
4429
4065
|
align-items: center;
|
|
4430
4066
|
`;
|
|
4431
|
-
var FeaturesColumn =
|
|
4067
|
+
var FeaturesColumn = styled39(Column)`
|
|
4432
4068
|
/* Hide on mobile and tablet */
|
|
4433
4069
|
@media (max-width: 1024px) {
|
|
4434
4070
|
display: none;
|
|
@@ -4455,8 +4091,8 @@ var Hero = ({
|
|
|
4455
4091
|
featureTitleColor = "secondary",
|
|
4456
4092
|
featureDescriptionVariant = "secondary"
|
|
4457
4093
|
}) => {
|
|
4458
|
-
return /* @__PURE__ */
|
|
4459
|
-
/* @__PURE__ */
|
|
4094
|
+
return /* @__PURE__ */ jsxs(HeroContainer, { $bgImage: bgImage, $overlayColor: overlayColor, children: [
|
|
4095
|
+
/* @__PURE__ */ jsx(Column, { children: /* @__PURE__ */ jsx(
|
|
4460
4096
|
CTAContainer,
|
|
4461
4097
|
{
|
|
4462
4098
|
header: ctaHeader,
|
|
@@ -4476,7 +4112,7 @@ var Hero = ({
|
|
|
4476
4112
|
primaryTextVariant
|
|
4477
4113
|
}
|
|
4478
4114
|
) }),
|
|
4479
|
-
/* @__PURE__ */
|
|
4115
|
+
/* @__PURE__ */ jsx(FeaturesColumn, { children: /* @__PURE__ */ jsx(
|
|
4480
4116
|
FeatureContainer,
|
|
4481
4117
|
{
|
|
4482
4118
|
items: featureItems,
|
|
@@ -4487,24 +4123,20 @@ var Hero = ({
|
|
|
4487
4123
|
) })
|
|
4488
4124
|
] });
|
|
4489
4125
|
};
|
|
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`
|
|
4126
|
+
var SectionContainer = styled39.section`
|
|
4495
4127
|
display: flex;
|
|
4496
4128
|
flex-direction: column;
|
|
4497
4129
|
padding: 4rem 2rem;
|
|
4498
4130
|
max-width: 1200px;
|
|
4499
4131
|
margin: 0 auto;
|
|
4500
4132
|
`;
|
|
4501
|
-
var SectionHeader =
|
|
4133
|
+
var SectionHeader = styled39.div`
|
|
4502
4134
|
padding-bottom: 2rem;
|
|
4503
|
-
border-bottom: 1px solid ${colors.text.light
|
|
4135
|
+
border-bottom: 1px solid ${colors.text.light};
|
|
4504
4136
|
`;
|
|
4505
|
-
var ProductItem =
|
|
4137
|
+
var ProductItem = styled39.div`
|
|
4506
4138
|
padding: 2rem 0;
|
|
4507
|
-
border-bottom: 1px solid ${colors.text.light
|
|
4139
|
+
border-bottom: 1px solid ${colors.text.light};
|
|
4508
4140
|
|
|
4509
4141
|
&:last-child {
|
|
4510
4142
|
border-bottom: none;
|
|
@@ -4520,9 +4152,9 @@ var OtherProducts = ({
|
|
|
4520
4152
|
productButtonTextBgVariant = "brand",
|
|
4521
4153
|
productButtonTextVariant = "secondary"
|
|
4522
4154
|
}) => {
|
|
4523
|
-
return /* @__PURE__ */
|
|
4524
|
-
/* @__PURE__ */
|
|
4525
|
-
products.map((product, index) => /* @__PURE__ */
|
|
4155
|
+
return /* @__PURE__ */ jsxs(SectionContainer, { children: [
|
|
4156
|
+
/* @__PURE__ */ jsx(SectionHeader, { children: /* @__PURE__ */ jsx(Header, { variant: headerVariant, color: headerColor, children: headerText }) }),
|
|
4157
|
+
products.map((product, index) => /* @__PURE__ */ jsx(ProductItem, { children: /* @__PURE__ */ jsx(
|
|
4526
4158
|
ProductInfo,
|
|
4527
4159
|
{
|
|
4528
4160
|
image: product.image,
|
|
@@ -4539,55 +4171,7 @@ var OtherProducts = ({
|
|
|
4539
4171
|
) }, index))
|
|
4540
4172
|
] });
|
|
4541
4173
|
};
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
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
|
-
};
|
|
4174
|
+
|
|
4175
|
+
export { AboutUs, Accordion, Address, CTAContainer, Checkbox, Contact, ContactForm, ContentCard, DocumentListAccordion, Dropdown, FAQ, FAQAccordion, FeatureCarousel, FeatureContainer, Features, FileButton, Filter, Footer, Header3 as Header, Hero, Input2 as Input, Modal, NavMenu, OtherProducts, OverviewList, OverviewRowItem, PDFPreviewer, PageLayout, ProductInfo, RadioGroup, RatesChart, Search, SideNav, SidePanel, SortBy, Spinner, StepperHeaderTab, Table, TableHeader, TableInner, TableListItem, TableRow, Tabs, Textarea2 as Textarea, Toast, ToastProvider, TopMenu, VersionLabel, useToast };
|
|
4176
|
+
//# sourceMappingURL=index.js.map
|
|
4593
4177
|
//# sourceMappingURL=index.js.map
|