@algorithm-shift/design-system 1.2.52 → 1.2.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-27YZ2WSP.mjs +10 -5
- package/dist/chunk-27YZ2WSP.mjs.map +1 -1
- package/dist/client.js +116 -64
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +48 -28
- package/dist/client.mjs.map +1 -1
- package/dist/index.js +713 -472
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +583 -340
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,29 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
11
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
12
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
13
|
-
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
14
|
-
import { Editor } from '@tinymce/tinymce-react';
|
|
15
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
16
|
-
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
17
|
-
import { PhoneInput as PhoneInput$1 } from 'react-international-phone';
|
|
18
|
-
import 'react-international-phone/style.css';
|
|
19
|
-
import { addDays, format } from 'date-fns';
|
|
20
|
-
import { getDefaultClassNames, DayPicker } from 'react-day-picker';
|
|
21
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
22
|
-
import { useReactTable, getCoreRowModel, flexRender } from '@tanstack/react-table';
|
|
23
|
-
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
24
|
-
import { ResponsiveContainer, BarChart, CartesianGrid, XAxis, YAxis, Tooltip, Legend, Bar, AreaChart, Area, PieChart, Pie, Cell, LabelList } from 'recharts';
|
|
25
|
-
import { toast } from 'sonner';
|
|
26
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
__export,
|
|
4
|
+
cn,
|
|
5
|
+
getInitials
|
|
6
|
+
} from "./chunk-27YZ2WSP.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/Layout/Modal.tsx
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
10
|
var Modal = ({
|
|
28
11
|
children,
|
|
29
12
|
onClose,
|
|
@@ -48,33 +31,46 @@ var Modal = ({
|
|
|
48
31
|
] }) });
|
|
49
32
|
};
|
|
50
33
|
var Modal_default = Modal;
|
|
34
|
+
|
|
35
|
+
// src/components/Layout/Flex.tsx
|
|
36
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
51
37
|
var Flex = ({
|
|
52
38
|
children,
|
|
53
39
|
className,
|
|
54
40
|
style,
|
|
55
41
|
...props
|
|
56
42
|
}) => {
|
|
57
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ jsx2("div", { ...props, className, style, children });
|
|
58
44
|
};
|
|
59
45
|
var Flex_default = Flex;
|
|
46
|
+
|
|
47
|
+
// src/components/Layout/Grid.tsx
|
|
48
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
60
49
|
var Grid = ({
|
|
61
50
|
children,
|
|
62
51
|
className,
|
|
63
52
|
style,
|
|
64
53
|
...props
|
|
65
54
|
}) => {
|
|
66
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ jsx3("div", { ...props, className, style, children });
|
|
67
56
|
};
|
|
68
57
|
var Grid_default = Grid;
|
|
58
|
+
|
|
59
|
+
// src/components/Layout/Container.tsx
|
|
60
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
69
61
|
var Container = ({
|
|
70
62
|
children,
|
|
71
63
|
className,
|
|
72
64
|
style,
|
|
73
65
|
...props
|
|
74
66
|
}) => {
|
|
75
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ jsx4("div", { ...props, className, style, children });
|
|
76
68
|
};
|
|
77
69
|
var Container_default = Container;
|
|
70
|
+
|
|
71
|
+
// src/components/Layout/Accordion.tsx
|
|
72
|
+
import { useState } from "react";
|
|
73
|
+
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
78
74
|
var Accordion = ({
|
|
79
75
|
children,
|
|
80
76
|
name = "Accordion",
|
|
@@ -85,16 +81,16 @@ var Accordion = ({
|
|
|
85
81
|
const onToggleCollapse = () => {
|
|
86
82
|
setIsOpen((prev) => !prev);
|
|
87
83
|
};
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
/* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ jsxs2("div", { className: `bg-white border rounded overflow-hidden ${className} min-h-auto`, style: { backgroundColor: style?.backgroundColor }, children: [
|
|
85
|
+
/* @__PURE__ */ jsxs2(
|
|
90
86
|
"div",
|
|
91
87
|
{
|
|
92
88
|
className: "flex justify-between items-center p-2 px-4 border-b bg-transparent cursor-pointer",
|
|
93
89
|
onClick: onToggleCollapse,
|
|
94
90
|
role: "presentation",
|
|
95
91
|
children: [
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ jsx5("span", { className: "text-[14px] text-[#000]", children: name }),
|
|
93
|
+
/* @__PURE__ */ jsx5(
|
|
98
94
|
"button",
|
|
99
95
|
{
|
|
100
96
|
className: "ml-2 px-2 py-1 text-sm text-[#000] rounded transition",
|
|
@@ -105,10 +101,15 @@ var Accordion = ({
|
|
|
105
101
|
]
|
|
106
102
|
}
|
|
107
103
|
),
|
|
108
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ jsx5("div", { className: ` bg-white relative transition-all duration-200 ${isOpen ? "min-h-30 p-4" : "max-h-0 p-0 overflow-hidden"}`, children })
|
|
109
105
|
] });
|
|
110
106
|
};
|
|
111
107
|
var Accordion_default = Accordion;
|
|
108
|
+
|
|
109
|
+
// src/components/ui/button.tsx
|
|
110
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
111
|
+
import { cva } from "class-variance-authority";
|
|
112
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
112
113
|
var buttonVariants = cva(
|
|
113
114
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
114
115
|
{
|
|
@@ -142,7 +143,7 @@ function Button({
|
|
|
142
143
|
...props
|
|
143
144
|
}) {
|
|
144
145
|
const Comp = asChild ? Slot : "button";
|
|
145
|
-
return /* @__PURE__ */
|
|
146
|
+
return /* @__PURE__ */ jsx6(
|
|
146
147
|
Comp,
|
|
147
148
|
{
|
|
148
149
|
"data-slot": "button",
|
|
@@ -151,13 +152,16 @@ function Button({
|
|
|
151
152
|
}
|
|
152
153
|
);
|
|
153
154
|
}
|
|
155
|
+
|
|
156
|
+
// src/components/Basic/Button/Button.tsx
|
|
157
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
154
158
|
var ButtonWrapper = ({
|
|
155
159
|
className,
|
|
156
160
|
style,
|
|
157
161
|
textContent = "Button",
|
|
158
162
|
...props
|
|
159
163
|
}) => {
|
|
160
|
-
return /* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ jsx7(
|
|
161
165
|
Button,
|
|
162
166
|
{
|
|
163
167
|
...props,
|
|
@@ -171,6 +175,9 @@ var Button_default = ButtonWrapper;
|
|
|
171
175
|
|
|
172
176
|
// src/assets/image-placeholder.png
|
|
173
177
|
var image_placeholder_default = "data:image/png;base64,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";
|
|
178
|
+
|
|
179
|
+
// src/components/Basic/Image/Image.tsx
|
|
180
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
174
181
|
var ImageControl = ({
|
|
175
182
|
className,
|
|
176
183
|
style,
|
|
@@ -187,20 +194,26 @@ var ImageControl = ({
|
|
|
187
194
|
className
|
|
188
195
|
);
|
|
189
196
|
if (!imageUrl && !imageUrlExternal) {
|
|
190
|
-
return /* @__PURE__ */
|
|
197
|
+
return /* @__PURE__ */ jsx8("div", { className: imageClass, children: /* @__PURE__ */ jsx8("img", { src: image_placeholder_default, alt: altText, className: "opacity-50", width: 50, height: 50 }) });
|
|
191
198
|
}
|
|
192
199
|
const url = imageUrlExternal || imageUrl;
|
|
193
|
-
return /* @__PURE__ */
|
|
200
|
+
return /* @__PURE__ */ jsx8("img", { src: url, alt: altText, className: defaultImgClass, style });
|
|
194
201
|
};
|
|
195
202
|
var Image_default = ImageControl;
|
|
203
|
+
|
|
204
|
+
// src/components/Basic/Shape/Shape.tsx
|
|
205
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
196
206
|
var Shape = ({
|
|
197
207
|
children,
|
|
198
208
|
className,
|
|
199
209
|
style
|
|
200
210
|
}) => {
|
|
201
|
-
return /* @__PURE__ */
|
|
211
|
+
return /* @__PURE__ */ jsx9("div", { className, style, children });
|
|
202
212
|
};
|
|
203
213
|
var Shape_default = Shape;
|
|
214
|
+
|
|
215
|
+
// src/components/Basic/Typography/Typography.tsx
|
|
216
|
+
import React2 from "react";
|
|
204
217
|
var Typography = ({
|
|
205
218
|
className,
|
|
206
219
|
style,
|
|
@@ -208,14 +221,14 @@ var Typography = ({
|
|
|
208
221
|
textContent
|
|
209
222
|
}) => {
|
|
210
223
|
const Tag2 = tagName || "h1";
|
|
211
|
-
return
|
|
224
|
+
return React2.createElement(
|
|
212
225
|
Tag2,
|
|
213
226
|
{
|
|
214
227
|
style,
|
|
215
228
|
className: cn(className, "pointer-events-auto")
|
|
216
229
|
},
|
|
217
230
|
[
|
|
218
|
-
|
|
231
|
+
React2.createElement("span", {
|
|
219
232
|
key: "html",
|
|
220
233
|
className: "pointer-events-none",
|
|
221
234
|
dangerouslySetInnerHTML: { __html: textContent }
|
|
@@ -7422,6 +7435,9 @@ __export(icons_exports, {
|
|
|
7422
7435
|
ZoomOut: () => ZoomOut
|
|
7423
7436
|
});
|
|
7424
7437
|
|
|
7438
|
+
// node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
7439
|
+
import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
|
|
7440
|
+
|
|
7425
7441
|
// node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
7426
7442
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
7427
7443
|
var toCamelCase = (string) => string.replace(
|
|
@@ -7443,6 +7459,9 @@ var hasA11yProp = (props) => {
|
|
|
7443
7459
|
}
|
|
7444
7460
|
};
|
|
7445
7461
|
|
|
7462
|
+
// node_modules/lucide-react/dist/esm/Icon.js
|
|
7463
|
+
import { forwardRef, createElement } from "react";
|
|
7464
|
+
|
|
7446
7465
|
// node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
7447
7466
|
var defaultAttributes = {
|
|
7448
7467
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7489,8 +7508,8 @@ var Icon = forwardRef(
|
|
|
7489
7508
|
|
|
7490
7509
|
// node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
7491
7510
|
var createLucideIcon = (iconName, iconNode) => {
|
|
7492
|
-
const Component2 =
|
|
7493
|
-
({ className, ...props }, ref) =>
|
|
7511
|
+
const Component2 = forwardRef2(
|
|
7512
|
+
({ className, ...props }, ref) => createElement2(Icon, {
|
|
7494
7513
|
ref,
|
|
7495
7514
|
iconNode,
|
|
7496
7515
|
className: mergeClasses(
|
|
@@ -26524,8 +26543,11 @@ var __iconNode1634 = [
|
|
|
26524
26543
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
26525
26544
|
];
|
|
26526
26545
|
var ZoomOut = createLucideIcon("zoom-out", __iconNode1634);
|
|
26546
|
+
|
|
26547
|
+
// src/components/Basic/Breadcrumb/Breadcrumb.tsx
|
|
26548
|
+
import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
26527
26549
|
var Breadcrumb = ({ list = [], className, style, LinkComponent }) => {
|
|
26528
|
-
return /* @__PURE__ */
|
|
26550
|
+
return /* @__PURE__ */ jsx10(
|
|
26529
26551
|
"nav",
|
|
26530
26552
|
{
|
|
26531
26553
|
"aria-label": "breadcrumb",
|
|
@@ -26533,31 +26555,35 @@ var Breadcrumb = ({ list = [], className, style, LinkComponent }) => {
|
|
|
26533
26555
|
style,
|
|
26534
26556
|
children: list.map((item, index) => {
|
|
26535
26557
|
const isLast = index === list.length - 1;
|
|
26536
|
-
return /* @__PURE__ */
|
|
26537
|
-
item.url && !isLast && LinkComponent ? /* @__PURE__ */
|
|
26558
|
+
return /* @__PURE__ */ jsxs3("div", { className: "flex items-center", children: [
|
|
26559
|
+
item.url && !isLast && LinkComponent ? /* @__PURE__ */ jsx10(
|
|
26538
26560
|
LinkComponent,
|
|
26539
26561
|
{
|
|
26540
26562
|
href: item.url,
|
|
26541
26563
|
className: "hover:text-foreground transition-colors",
|
|
26542
26564
|
children: item.header
|
|
26543
26565
|
}
|
|
26544
|
-
) : /* @__PURE__ */
|
|
26545
|
-
!isLast && /* @__PURE__ */
|
|
26566
|
+
) : /* @__PURE__ */ jsx10("span", { className: "text-foreground font-medium", children: item.header }),
|
|
26567
|
+
!isLast && /* @__PURE__ */ jsx10(ChevronRight, { className: "mx-2 h-4 w-4 text-muted-foreground" })
|
|
26546
26568
|
] }, item.id);
|
|
26547
26569
|
})
|
|
26548
26570
|
}
|
|
26549
26571
|
);
|
|
26550
26572
|
};
|
|
26551
26573
|
var Breadcrumb_default = Breadcrumb;
|
|
26574
|
+
|
|
26575
|
+
// src/components/ui/dropdown-menu.tsx
|
|
26576
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
26577
|
+
import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
26552
26578
|
function DropdownMenu({
|
|
26553
26579
|
...props
|
|
26554
26580
|
}) {
|
|
26555
|
-
return /* @__PURE__ */
|
|
26581
|
+
return /* @__PURE__ */ jsx11(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
26556
26582
|
}
|
|
26557
26583
|
function DropdownMenuTrigger({
|
|
26558
26584
|
...props
|
|
26559
26585
|
}) {
|
|
26560
|
-
return /* @__PURE__ */
|
|
26586
|
+
return /* @__PURE__ */ jsx11(
|
|
26561
26587
|
DropdownMenuPrimitive.Trigger,
|
|
26562
26588
|
{
|
|
26563
26589
|
"data-slot": "dropdown-menu-trigger",
|
|
@@ -26570,7 +26596,7 @@ function DropdownMenuContent({
|
|
|
26570
26596
|
sideOffset = 4,
|
|
26571
26597
|
...props
|
|
26572
26598
|
}) {
|
|
26573
|
-
return /* @__PURE__ */
|
|
26599
|
+
return /* @__PURE__ */ jsx11(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx11(
|
|
26574
26600
|
DropdownMenuPrimitive.Content,
|
|
26575
26601
|
{
|
|
26576
26602
|
"data-slot": "dropdown-menu-content",
|
|
@@ -26589,7 +26615,7 @@ function DropdownMenuItem({
|
|
|
26589
26615
|
variant = "default",
|
|
26590
26616
|
...props
|
|
26591
26617
|
}) {
|
|
26592
|
-
return /* @__PURE__ */
|
|
26618
|
+
return /* @__PURE__ */ jsx11(
|
|
26593
26619
|
DropdownMenuPrimitive.Item,
|
|
26594
26620
|
{
|
|
26595
26621
|
"data-slot": "dropdown-menu-item",
|
|
@@ -26606,7 +26632,7 @@ function DropdownMenuItem({
|
|
|
26606
26632
|
function DropdownMenuSub({
|
|
26607
26633
|
...props
|
|
26608
26634
|
}) {
|
|
26609
|
-
return /* @__PURE__ */
|
|
26635
|
+
return /* @__PURE__ */ jsx11(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
26610
26636
|
}
|
|
26611
26637
|
function DropdownMenuSubTrigger({
|
|
26612
26638
|
className,
|
|
@@ -26614,7 +26640,7 @@ function DropdownMenuSubTrigger({
|
|
|
26614
26640
|
children,
|
|
26615
26641
|
...props
|
|
26616
26642
|
}) {
|
|
26617
|
-
return /* @__PURE__ */
|
|
26643
|
+
return /* @__PURE__ */ jsxs4(
|
|
26618
26644
|
DropdownMenuPrimitive.SubTrigger,
|
|
26619
26645
|
{
|
|
26620
26646
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -26626,7 +26652,7 @@ function DropdownMenuSubTrigger({
|
|
|
26626
26652
|
...props,
|
|
26627
26653
|
children: [
|
|
26628
26654
|
children,
|
|
26629
|
-
/* @__PURE__ */
|
|
26655
|
+
/* @__PURE__ */ jsx11(ChevronRight, { className: "ml-auto size-4" })
|
|
26630
26656
|
]
|
|
26631
26657
|
}
|
|
26632
26658
|
);
|
|
@@ -26635,7 +26661,7 @@ function DropdownMenuSubContent({
|
|
|
26635
26661
|
className,
|
|
26636
26662
|
...props
|
|
26637
26663
|
}) {
|
|
26638
|
-
return /* @__PURE__ */
|
|
26664
|
+
return /* @__PURE__ */ jsx11(
|
|
26639
26665
|
DropdownMenuPrimitive.SubContent,
|
|
26640
26666
|
{
|
|
26641
26667
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -26647,10 +26673,13 @@ function DropdownMenuSubContent({
|
|
|
26647
26673
|
}
|
|
26648
26674
|
);
|
|
26649
26675
|
}
|
|
26676
|
+
|
|
26677
|
+
// src/components/Basic/ButtonGroup/ButtonGroup.tsx
|
|
26678
|
+
import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
26650
26679
|
function SplitButton({ style, textContent, className, list = [], LinkComponent }) {
|
|
26651
26680
|
const bgColor = style?.backgroundColor || "";
|
|
26652
|
-
return /* @__PURE__ */
|
|
26653
|
-
/* @__PURE__ */
|
|
26681
|
+
return /* @__PURE__ */ jsxs5("div", { className: "inline-flex rounded-md overflow-hidden border border-teal-200 bg-teal-700 items-center focus:ring-0", style: { backgroundColor: bgColor }, children: [
|
|
26682
|
+
/* @__PURE__ */ jsx12(
|
|
26654
26683
|
Button,
|
|
26655
26684
|
{
|
|
26656
26685
|
className: `rounded-none border-r px-4 py-2 text-whit focus:ring-0 ${className || ""}`,
|
|
@@ -26658,20 +26687,25 @@ function SplitButton({ style, textContent, className, list = [], LinkComponent }
|
|
|
26658
26687
|
children: textContent || "Button"
|
|
26659
26688
|
}
|
|
26660
26689
|
),
|
|
26661
|
-
/* @__PURE__ */
|
|
26662
|
-
/* @__PURE__ */
|
|
26690
|
+
/* @__PURE__ */ jsxs5(DropdownMenu, { children: [
|
|
26691
|
+
/* @__PURE__ */ jsx12(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx12(
|
|
26663
26692
|
Button,
|
|
26664
26693
|
{
|
|
26665
26694
|
className: "rounded-none bg-teal-700 px-4 py-2 text-white ring-0 shadow-none hover:bg-teal-600 focus:ring-0",
|
|
26666
26695
|
"aria-label": "Open Dropdown",
|
|
26667
26696
|
style: { backgroundColor: bgColor },
|
|
26668
|
-
children: /* @__PURE__ */
|
|
26697
|
+
children: /* @__PURE__ */ jsx12(ChevronDown, { className: "w-4 h-4" })
|
|
26669
26698
|
}
|
|
26670
26699
|
) }),
|
|
26671
|
-
/* @__PURE__ */
|
|
26700
|
+
/* @__PURE__ */ jsx12(DropdownMenuContent, { align: "end", className: "bg-white min-w-[120px]", children: list.map((item) => /* @__PURE__ */ jsx12(DropdownMenuItem, { className: "text-black", children: LinkComponent ? /* @__PURE__ */ jsx12(LinkComponent, { href: item.url || "#", children: item.header }) : item.header }, item.id)) })
|
|
26672
26701
|
] })
|
|
26673
26702
|
] });
|
|
26674
26703
|
}
|
|
26704
|
+
|
|
26705
|
+
// src/components/Basic/Icon/Icon.tsx
|
|
26706
|
+
import * as faSolid from "@fortawesome/free-solid-svg-icons";
|
|
26707
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
26708
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
26675
26709
|
var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize = 10, style }) => {
|
|
26676
26710
|
let content = null;
|
|
26677
26711
|
if (iconType === "fontawesome") {
|
|
@@ -26680,7 +26714,7 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
|
|
|
26680
26714
|
if (!faIcon) {
|
|
26681
26715
|
return null;
|
|
26682
26716
|
}
|
|
26683
|
-
content = /* @__PURE__ */
|
|
26717
|
+
content = /* @__PURE__ */ jsx13(
|
|
26684
26718
|
FontAwesomeIcon,
|
|
26685
26719
|
{
|
|
26686
26720
|
icon: faIcon,
|
|
@@ -26694,13 +26728,16 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
|
|
|
26694
26728
|
if (!Lucide) {
|
|
26695
26729
|
return null;
|
|
26696
26730
|
}
|
|
26697
|
-
content = /* @__PURE__ */
|
|
26731
|
+
content = /* @__PURE__ */ jsx13(Lucide, { className: cn("w-5 h-5"), size: fontSize, style: { color: style?.color } });
|
|
26698
26732
|
}
|
|
26699
|
-
return /* @__PURE__ */
|
|
26733
|
+
return /* @__PURE__ */ jsx13("div", { style, className, children: content });
|
|
26700
26734
|
};
|
|
26701
26735
|
var Icon_default = Icon2;
|
|
26736
|
+
|
|
26737
|
+
// src/components/ui/input.tsx
|
|
26738
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
26702
26739
|
function Input({ className, type, ...props }) {
|
|
26703
|
-
return /* @__PURE__ */
|
|
26740
|
+
return /* @__PURE__ */ jsx14(
|
|
26704
26741
|
"input",
|
|
26705
26742
|
{
|
|
26706
26743
|
type,
|
|
@@ -26715,6 +26752,9 @@ function Input({ className, type, ...props }) {
|
|
|
26715
26752
|
}
|
|
26716
26753
|
);
|
|
26717
26754
|
}
|
|
26755
|
+
|
|
26756
|
+
// src/components/Inputs/TextInput/TextInput.tsx
|
|
26757
|
+
import { Fragment, jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
26718
26758
|
var TextInput = ({ className, style, ...props }) => {
|
|
26719
26759
|
const placeholder = props.placeholder || "Placeholder text";
|
|
26720
26760
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26724,8 +26764,8 @@ var TextInput = ({ className, style, ...props }) => {
|
|
|
26724
26764
|
const handleChange = (e) => {
|
|
26725
26765
|
props.onChange?.(e);
|
|
26726
26766
|
};
|
|
26727
|
-
return /* @__PURE__ */
|
|
26728
|
-
/* @__PURE__ */
|
|
26767
|
+
return /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
26768
|
+
/* @__PURE__ */ jsx15(
|
|
26729
26769
|
Input,
|
|
26730
26770
|
{
|
|
26731
26771
|
type: "text",
|
|
@@ -26743,10 +26783,13 @@ var TextInput = ({ className, style, ...props }) => {
|
|
|
26743
26783
|
readOnly: isReadonly
|
|
26744
26784
|
}
|
|
26745
26785
|
),
|
|
26746
|
-
props.errorMessage && /* @__PURE__ */
|
|
26786
|
+
props.errorMessage && /* @__PURE__ */ jsx15("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26747
26787
|
] });
|
|
26748
26788
|
};
|
|
26749
26789
|
var TextInput_default = TextInput;
|
|
26790
|
+
|
|
26791
|
+
// src/components/Inputs/NumberInput/NumberInput.tsx
|
|
26792
|
+
import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
26750
26793
|
var NumberInput = ({ className, style, ...props }) => {
|
|
26751
26794
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26752
26795
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26756,10 +26799,10 @@ var NumberInput = ({ className, style, ...props }) => {
|
|
|
26756
26799
|
const handleChange = (e) => {
|
|
26757
26800
|
props.onChange?.(e);
|
|
26758
26801
|
};
|
|
26759
|
-
return /* @__PURE__ */
|
|
26760
|
-
/* @__PURE__ */
|
|
26761
|
-
/* @__PURE__ */
|
|
26762
|
-
/* @__PURE__ */
|
|
26802
|
+
return /* @__PURE__ */ jsxs7(Fragment2, { children: [
|
|
26803
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex justify-start items-center relative", children: [
|
|
26804
|
+
/* @__PURE__ */ jsx16(Calculator, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
26805
|
+
/* @__PURE__ */ jsx16(
|
|
26763
26806
|
Input,
|
|
26764
26807
|
{
|
|
26765
26808
|
type: "number",
|
|
@@ -26779,10 +26822,13 @@ var NumberInput = ({ className, style, ...props }) => {
|
|
|
26779
26822
|
}
|
|
26780
26823
|
)
|
|
26781
26824
|
] }),
|
|
26782
|
-
props.errorMessage && /* @__PURE__ */
|
|
26825
|
+
props.errorMessage && /* @__PURE__ */ jsx16("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26783
26826
|
] });
|
|
26784
26827
|
};
|
|
26785
26828
|
var NumberInput_default = NumberInput;
|
|
26829
|
+
|
|
26830
|
+
// src/components/Inputs/EmailInput/EmailInput.tsx
|
|
26831
|
+
import { Fragment as Fragment3, jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
26786
26832
|
var EmailInput = ({ className, style, ...props }) => {
|
|
26787
26833
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26788
26834
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26792,10 +26838,10 @@ var EmailInput = ({ className, style, ...props }) => {
|
|
|
26792
26838
|
const handleChange = (e) => {
|
|
26793
26839
|
props.onChange?.(e);
|
|
26794
26840
|
};
|
|
26795
|
-
return /* @__PURE__ */
|
|
26796
|
-
/* @__PURE__ */
|
|
26797
|
-
/* @__PURE__ */
|
|
26798
|
-
/* @__PURE__ */
|
|
26841
|
+
return /* @__PURE__ */ jsxs8(Fragment3, { children: [
|
|
26842
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex justify-start items-center relative", children: [
|
|
26843
|
+
/* @__PURE__ */ jsx17(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
26844
|
+
/* @__PURE__ */ jsx17(
|
|
26799
26845
|
Input,
|
|
26800
26846
|
{
|
|
26801
26847
|
type: "email",
|
|
@@ -26814,10 +26860,13 @@ var EmailInput = ({ className, style, ...props }) => {
|
|
|
26814
26860
|
}
|
|
26815
26861
|
)
|
|
26816
26862
|
] }),
|
|
26817
|
-
props.errorMessage && /* @__PURE__ */
|
|
26863
|
+
props.errorMessage && /* @__PURE__ */ jsx17("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26818
26864
|
] });
|
|
26819
26865
|
};
|
|
26820
26866
|
var EmailInput_default = EmailInput;
|
|
26867
|
+
|
|
26868
|
+
// src/components/Inputs/PasswordInput/PasswordInput.tsx
|
|
26869
|
+
import { Fragment as Fragment4, jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
26821
26870
|
var PasswordInput = ({ className, style, ...props }) => {
|
|
26822
26871
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26823
26872
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26827,10 +26876,10 @@ var PasswordInput = ({ className, style, ...props }) => {
|
|
|
26827
26876
|
const handleChange = (e) => {
|
|
26828
26877
|
props.onChange?.(e);
|
|
26829
26878
|
};
|
|
26830
|
-
return /* @__PURE__ */
|
|
26831
|
-
/* @__PURE__ */
|
|
26832
|
-
/* @__PURE__ */
|
|
26833
|
-
/* @__PURE__ */
|
|
26879
|
+
return /* @__PURE__ */ jsxs9(Fragment4, { children: [
|
|
26880
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex justify-start items-center relative", children: [
|
|
26881
|
+
/* @__PURE__ */ jsx18(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
26882
|
+
/* @__PURE__ */ jsx18(
|
|
26834
26883
|
Input,
|
|
26835
26884
|
{
|
|
26836
26885
|
type: "password",
|
|
@@ -26850,12 +26899,15 @@ var PasswordInput = ({ className, style, ...props }) => {
|
|
|
26850
26899
|
}
|
|
26851
26900
|
)
|
|
26852
26901
|
] }),
|
|
26853
|
-
props.errorMessage && /* @__PURE__ */
|
|
26902
|
+
props.errorMessage && /* @__PURE__ */ jsx18("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26854
26903
|
] });
|
|
26855
26904
|
};
|
|
26856
26905
|
var PasswordInput_default = PasswordInput;
|
|
26906
|
+
|
|
26907
|
+
// src/components/ui/textarea.tsx
|
|
26908
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
26857
26909
|
function Textarea({ className, ...props }) {
|
|
26858
|
-
return /* @__PURE__ */
|
|
26910
|
+
return /* @__PURE__ */ jsx19(
|
|
26859
26911
|
"textarea",
|
|
26860
26912
|
{
|
|
26861
26913
|
"data-slot": "textarea",
|
|
@@ -26867,6 +26919,9 @@ function Textarea({ className, ...props }) {
|
|
|
26867
26919
|
}
|
|
26868
26920
|
);
|
|
26869
26921
|
}
|
|
26922
|
+
|
|
26923
|
+
// src/components/Inputs/Textarea/Textarea.tsx
|
|
26924
|
+
import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
26870
26925
|
var Textarea2 = ({ className, style, ...props }) => {
|
|
26871
26926
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26872
26927
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26876,8 +26931,8 @@ var Textarea2 = ({ className, style, ...props }) => {
|
|
|
26876
26931
|
const handleChange = (e) => {
|
|
26877
26932
|
props.onChange?.(e);
|
|
26878
26933
|
};
|
|
26879
|
-
return /* @__PURE__ */
|
|
26880
|
-
/* @__PURE__ */
|
|
26934
|
+
return /* @__PURE__ */ jsxs10(Fragment5, { children: [
|
|
26935
|
+
/* @__PURE__ */ jsx20(
|
|
26881
26936
|
Textarea,
|
|
26882
26937
|
{
|
|
26883
26938
|
id: "textarea-field",
|
|
@@ -26895,10 +26950,13 @@ var Textarea2 = ({ className, style, ...props }) => {
|
|
|
26895
26950
|
readOnly: isReadonly
|
|
26896
26951
|
}
|
|
26897
26952
|
),
|
|
26898
|
-
props.errorMessage && /* @__PURE__ */
|
|
26953
|
+
props.errorMessage && /* @__PURE__ */ jsx20("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26899
26954
|
] });
|
|
26900
26955
|
};
|
|
26901
26956
|
var Textarea_default = Textarea2;
|
|
26957
|
+
|
|
26958
|
+
// src/components/Inputs/UrlInput/UrlInput.tsx
|
|
26959
|
+
import { Fragment as Fragment6, jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
26902
26960
|
var UrlInput = ({ className, style, ...props }) => {
|
|
26903
26961
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26904
26962
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26908,10 +26966,10 @@ var UrlInput = ({ className, style, ...props }) => {
|
|
|
26908
26966
|
const handleChange = (e) => {
|
|
26909
26967
|
props.onChange?.(e);
|
|
26910
26968
|
};
|
|
26911
|
-
return /* @__PURE__ */
|
|
26912
|
-
/* @__PURE__ */
|
|
26913
|
-
/* @__PURE__ */
|
|
26914
|
-
/* @__PURE__ */
|
|
26969
|
+
return /* @__PURE__ */ jsxs11(Fragment6, { children: [
|
|
26970
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex justify-start items-center relative", children: [
|
|
26971
|
+
/* @__PURE__ */ jsx21("div", { className: "bg-[#E9E9E9] absolute px-10 text-center top-1/2 h-full justify-center items-center flex w-10 -translate-y-1/2 text-[#383838] font-[500] text-[12px]", children: "https://" }),
|
|
26972
|
+
/* @__PURE__ */ jsx21(
|
|
26915
26973
|
Input,
|
|
26916
26974
|
{
|
|
26917
26975
|
id: "url-field",
|
|
@@ -26931,15 +26989,19 @@ var UrlInput = ({ className, style, ...props }) => {
|
|
|
26931
26989
|
}
|
|
26932
26990
|
)
|
|
26933
26991
|
] }),
|
|
26934
|
-
props.errorMessage && /* @__PURE__ */
|
|
26992
|
+
props.errorMessage && /* @__PURE__ */ jsx21("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26935
26993
|
] });
|
|
26936
26994
|
};
|
|
26937
26995
|
var UrlInput_default = UrlInput;
|
|
26996
|
+
|
|
26997
|
+
// src/components/ui/checkbox.tsx
|
|
26998
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
26999
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
26938
27000
|
function Checkbox({
|
|
26939
27001
|
className,
|
|
26940
27002
|
...props
|
|
26941
27003
|
}) {
|
|
26942
|
-
return /* @__PURE__ */
|
|
27004
|
+
return /* @__PURE__ */ jsx22(
|
|
26943
27005
|
CheckboxPrimitive.Root,
|
|
26944
27006
|
{
|
|
26945
27007
|
"data-slot": "checkbox",
|
|
@@ -26948,22 +27010,26 @@ function Checkbox({
|
|
|
26948
27010
|
className
|
|
26949
27011
|
),
|
|
26950
27012
|
...props,
|
|
26951
|
-
children: /* @__PURE__ */
|
|
27013
|
+
children: /* @__PURE__ */ jsx22(
|
|
26952
27014
|
CheckboxPrimitive.Indicator,
|
|
26953
27015
|
{
|
|
26954
27016
|
"data-slot": "checkbox-indicator",
|
|
26955
27017
|
className: "flex items-center justify-center text-current transition-none",
|
|
26956
|
-
children: /* @__PURE__ */
|
|
27018
|
+
children: /* @__PURE__ */ jsx22(Check, { className: "size-3.5" })
|
|
26957
27019
|
}
|
|
26958
27020
|
)
|
|
26959
27021
|
}
|
|
26960
27022
|
);
|
|
26961
27023
|
}
|
|
27024
|
+
|
|
27025
|
+
// src/components/ui/label.tsx
|
|
27026
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
27027
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
26962
27028
|
function Label2({
|
|
26963
27029
|
className,
|
|
26964
27030
|
...props
|
|
26965
27031
|
}) {
|
|
26966
|
-
return /* @__PURE__ */
|
|
27032
|
+
return /* @__PURE__ */ jsx23(
|
|
26967
27033
|
LabelPrimitive.Root,
|
|
26968
27034
|
{
|
|
26969
27035
|
"data-slot": "label",
|
|
@@ -26975,6 +27041,9 @@ function Label2({
|
|
|
26975
27041
|
}
|
|
26976
27042
|
);
|
|
26977
27043
|
}
|
|
27044
|
+
|
|
27045
|
+
// src/components/Inputs/Checkbox/Checkbox.tsx
|
|
27046
|
+
import { Fragment as Fragment7, jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
26978
27047
|
var CheckboxInput = ({ className, style, ...props }) => {
|
|
26979
27048
|
const isEditable = props.isEditable ?? true;
|
|
26980
27049
|
const isDisabled = props.isDisabled ?? false;
|
|
@@ -26982,9 +27051,9 @@ var CheckboxInput = ({ className, style, ...props }) => {
|
|
|
26982
27051
|
const handleChange = (value) => {
|
|
26983
27052
|
props.onChange?.(value);
|
|
26984
27053
|
};
|
|
26985
|
-
return /* @__PURE__ */
|
|
26986
|
-
/* @__PURE__ */
|
|
26987
|
-
/* @__PURE__ */
|
|
27054
|
+
return /* @__PURE__ */ jsxs12(Fragment7, { children: [
|
|
27055
|
+
/* @__PURE__ */ jsx24("div", { className, style, children: /* @__PURE__ */ jsxs12("div", { className: "flex items-center space-x-2", children: [
|
|
27056
|
+
/* @__PURE__ */ jsx24(
|
|
26988
27057
|
Checkbox,
|
|
26989
27058
|
{
|
|
26990
27059
|
id: props.name || "checkbox",
|
|
@@ -26993,17 +27062,21 @@ var CheckboxInput = ({ className, style, ...props }) => {
|
|
|
26993
27062
|
disabled: !isEditable || isDisabled
|
|
26994
27063
|
}
|
|
26995
27064
|
),
|
|
26996
|
-
/* @__PURE__ */
|
|
27065
|
+
/* @__PURE__ */ jsx24(Label2, { htmlFor: props.name || "checkbox", children: text })
|
|
26997
27066
|
] }) }),
|
|
26998
|
-
props.errorMessage && /* @__PURE__ */
|
|
27067
|
+
props.errorMessage && /* @__PURE__ */ jsx24("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26999
27068
|
] });
|
|
27000
27069
|
};
|
|
27001
27070
|
var Checkbox_default = CheckboxInput;
|
|
27071
|
+
|
|
27072
|
+
// src/components/ui/radio-group.tsx
|
|
27073
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
27074
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
27002
27075
|
function RadioGroup2({
|
|
27003
27076
|
className,
|
|
27004
27077
|
...props
|
|
27005
27078
|
}) {
|
|
27006
|
-
return /* @__PURE__ */
|
|
27079
|
+
return /* @__PURE__ */ jsx25(
|
|
27007
27080
|
RadioGroupPrimitive.Root,
|
|
27008
27081
|
{
|
|
27009
27082
|
"data-slot": "radio-group",
|
|
@@ -27016,7 +27089,7 @@ function RadioGroupItem({
|
|
|
27016
27089
|
className,
|
|
27017
27090
|
...props
|
|
27018
27091
|
}) {
|
|
27019
|
-
return /* @__PURE__ */
|
|
27092
|
+
return /* @__PURE__ */ jsx25(
|
|
27020
27093
|
RadioGroupPrimitive.Item,
|
|
27021
27094
|
{
|
|
27022
27095
|
"data-slot": "radio-group-item",
|
|
@@ -27025,17 +27098,20 @@ function RadioGroupItem({
|
|
|
27025
27098
|
className
|
|
27026
27099
|
),
|
|
27027
27100
|
...props,
|
|
27028
|
-
children: /* @__PURE__ */
|
|
27101
|
+
children: /* @__PURE__ */ jsx25(
|
|
27029
27102
|
RadioGroupPrimitive.Indicator,
|
|
27030
27103
|
{
|
|
27031
27104
|
"data-slot": "radio-group-indicator",
|
|
27032
27105
|
className: "relative flex items-center justify-center",
|
|
27033
|
-
children: /* @__PURE__ */
|
|
27106
|
+
children: /* @__PURE__ */ jsx25(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
27034
27107
|
}
|
|
27035
27108
|
)
|
|
27036
27109
|
}
|
|
27037
27110
|
);
|
|
27038
27111
|
}
|
|
27112
|
+
|
|
27113
|
+
// src/components/Inputs/RadioInput/RadioInput.tsx
|
|
27114
|
+
import { Fragment as Fragment8, jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
27039
27115
|
var RadioInput = ({
|
|
27040
27116
|
className,
|
|
27041
27117
|
style,
|
|
@@ -27054,25 +27130,29 @@ var RadioInput = ({
|
|
|
27054
27130
|
onChange?.(value);
|
|
27055
27131
|
};
|
|
27056
27132
|
const resolvedDefaultValue = (typeof defaultValue === "string" ? defaultValue : void 0) ?? options[0]?.value;
|
|
27057
|
-
return /* @__PURE__ */
|
|
27058
|
-
/* @__PURE__ */
|
|
27133
|
+
return /* @__PURE__ */ jsxs13(Fragment8, { children: [
|
|
27134
|
+
/* @__PURE__ */ jsx26("div", { className, style, children: /* @__PURE__ */ jsxs13(
|
|
27059
27135
|
RadioGroup2,
|
|
27060
27136
|
{
|
|
27061
27137
|
defaultValue: resolvedDefaultValue,
|
|
27062
27138
|
onValueChange: handleChange,
|
|
27063
27139
|
children: [
|
|
27064
|
-
options.length === 0 && /* @__PURE__ */
|
|
27065
|
-
options.map((item) => /* @__PURE__ */
|
|
27066
|
-
/* @__PURE__ */
|
|
27067
|
-
/* @__PURE__ */
|
|
27140
|
+
options.length === 0 && /* @__PURE__ */ jsx26("div", { className: "text-sm text-gray-500", children: "No options available" }),
|
|
27141
|
+
options.map((item) => /* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-2", children: [
|
|
27142
|
+
/* @__PURE__ */ jsx26(RadioGroupItem, { value: item.value, id: `radio-${item.value}` }),
|
|
27143
|
+
/* @__PURE__ */ jsx26(Label2, { htmlFor: `radio-${item.value}`, children: item.label })
|
|
27068
27144
|
] }, item.value))
|
|
27069
27145
|
]
|
|
27070
27146
|
}
|
|
27071
27147
|
) }),
|
|
27072
|
-
props.errorMessage && /* @__PURE__ */
|
|
27148
|
+
props.errorMessage && /* @__PURE__ */ jsx26("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27073
27149
|
] });
|
|
27074
27150
|
};
|
|
27075
27151
|
var RadioInput_default = RadioInput;
|
|
27152
|
+
|
|
27153
|
+
// src/components/Inputs/MultiCheckbox/MultiCheckbox.tsx
|
|
27154
|
+
import { useCallback, useState as useState2 } from "react";
|
|
27155
|
+
import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
27076
27156
|
var MultiCheckbox = ({
|
|
27077
27157
|
className,
|
|
27078
27158
|
style,
|
|
@@ -27084,7 +27164,7 @@ var MultiCheckbox = ({
|
|
|
27084
27164
|
isEditable = true,
|
|
27085
27165
|
isDisabled = false
|
|
27086
27166
|
}) => {
|
|
27087
|
-
const [value, setValue] =
|
|
27167
|
+
const [value, setValue] = useState2(propValue);
|
|
27088
27168
|
const options = (data || []).map((item) => ({
|
|
27089
27169
|
value: item[dataKey || "value"],
|
|
27090
27170
|
label: item[dataLabel || "label"]
|
|
@@ -27099,15 +27179,15 @@ var MultiCheckbox = ({
|
|
|
27099
27179
|
},
|
|
27100
27180
|
[onChange]
|
|
27101
27181
|
);
|
|
27102
|
-
return /* @__PURE__ */
|
|
27182
|
+
return /* @__PURE__ */ jsxs14(
|
|
27103
27183
|
"div",
|
|
27104
27184
|
{
|
|
27105
27185
|
className: cn("flex flex-col gap-3", className),
|
|
27106
27186
|
style,
|
|
27107
27187
|
children: [
|
|
27108
|
-
options.length === 0 && /* @__PURE__ */
|
|
27109
|
-
options.map((opt) => /* @__PURE__ */
|
|
27110
|
-
/* @__PURE__ */
|
|
27188
|
+
options.length === 0 && /* @__PURE__ */ jsx27("p", { className: "text-sm text-gray-500", children: "No options available." }),
|
|
27189
|
+
options.map((opt) => /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-2", children: [
|
|
27190
|
+
/* @__PURE__ */ jsx27(
|
|
27111
27191
|
Checkbox,
|
|
27112
27192
|
{
|
|
27113
27193
|
id: opt.value,
|
|
@@ -27116,13 +27196,18 @@ var MultiCheckbox = ({
|
|
|
27116
27196
|
disabled: !isEditable || isDisabled
|
|
27117
27197
|
}
|
|
27118
27198
|
),
|
|
27119
|
-
/* @__PURE__ */
|
|
27199
|
+
/* @__PURE__ */ jsx27(Label2, { htmlFor: opt.value, children: opt.label })
|
|
27120
27200
|
] }, opt.value))
|
|
27121
27201
|
]
|
|
27122
27202
|
}
|
|
27123
27203
|
);
|
|
27124
27204
|
};
|
|
27125
27205
|
var MultiCheckbox_default = MultiCheckbox;
|
|
27206
|
+
|
|
27207
|
+
// src/components/Global/TinyMceEditor.tsx
|
|
27208
|
+
import { useMemo, useRef } from "react";
|
|
27209
|
+
import { Editor } from "@tinymce/tinymce-react";
|
|
27210
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
27126
27211
|
function MyEditor({
|
|
27127
27212
|
value,
|
|
27128
27213
|
onChange,
|
|
@@ -27147,7 +27232,7 @@ function MyEditor({
|
|
|
27147
27232
|
}
|
|
27148
27233
|
return toolbar;
|
|
27149
27234
|
}, [isDefault]);
|
|
27150
|
-
return /* @__PURE__ */
|
|
27235
|
+
return /* @__PURE__ */ jsx28(
|
|
27151
27236
|
Editor,
|
|
27152
27237
|
{
|
|
27153
27238
|
apiKey: process.env.NEXT_PUBLIC_TINYMCE_API_KEY,
|
|
@@ -27189,8 +27274,11 @@ function MyEditor({
|
|
|
27189
27274
|
}
|
|
27190
27275
|
);
|
|
27191
27276
|
}
|
|
27277
|
+
|
|
27278
|
+
// src/components/Inputs/RichText/RichText.tsx
|
|
27279
|
+
import { jsx as jsx29, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
27192
27280
|
function RichText({ className, style, ...props }) {
|
|
27193
|
-
return /* @__PURE__ */
|
|
27281
|
+
return /* @__PURE__ */ jsxs15(
|
|
27194
27282
|
"div",
|
|
27195
27283
|
{
|
|
27196
27284
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
@@ -27199,21 +27287,25 @@ function RichText({ className, style, ...props }) {
|
|
|
27199
27287
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
27200
27288
|
},
|
|
27201
27289
|
children: [
|
|
27202
|
-
/* @__PURE__ */
|
|
27203
|
-
props.errorMessage && /* @__PURE__ */
|
|
27290
|
+
/* @__PURE__ */ jsx29(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value, isDefault: true }),
|
|
27291
|
+
props.errorMessage && /* @__PURE__ */ jsx29("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27204
27292
|
]
|
|
27205
27293
|
}
|
|
27206
27294
|
);
|
|
27207
27295
|
}
|
|
27296
|
+
|
|
27297
|
+
// src/components/ui/select.tsx
|
|
27298
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
27299
|
+
import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
27208
27300
|
function Select({
|
|
27209
27301
|
...props
|
|
27210
27302
|
}) {
|
|
27211
|
-
return /* @__PURE__ */
|
|
27303
|
+
return /* @__PURE__ */ jsx30(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
27212
27304
|
}
|
|
27213
27305
|
function SelectValue({
|
|
27214
27306
|
...props
|
|
27215
27307
|
}) {
|
|
27216
|
-
return /* @__PURE__ */
|
|
27308
|
+
return /* @__PURE__ */ jsx30(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
27217
27309
|
}
|
|
27218
27310
|
function SelectTrigger({
|
|
27219
27311
|
className,
|
|
@@ -27221,7 +27313,7 @@ function SelectTrigger({
|
|
|
27221
27313
|
children,
|
|
27222
27314
|
...props
|
|
27223
27315
|
}) {
|
|
27224
|
-
return /* @__PURE__ */
|
|
27316
|
+
return /* @__PURE__ */ jsxs16(
|
|
27225
27317
|
SelectPrimitive.Trigger,
|
|
27226
27318
|
{
|
|
27227
27319
|
"data-slot": "select-trigger",
|
|
@@ -27233,7 +27325,7 @@ function SelectTrigger({
|
|
|
27233
27325
|
...props,
|
|
27234
27326
|
children: [
|
|
27235
27327
|
children,
|
|
27236
|
-
/* @__PURE__ */
|
|
27328
|
+
/* @__PURE__ */ jsx30(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx30(ChevronDown, { className: "size-4 opacity-50" }) })
|
|
27237
27329
|
]
|
|
27238
27330
|
}
|
|
27239
27331
|
);
|
|
@@ -27244,7 +27336,7 @@ function SelectContent({
|
|
|
27244
27336
|
position = "popper",
|
|
27245
27337
|
...props
|
|
27246
27338
|
}) {
|
|
27247
|
-
return /* @__PURE__ */
|
|
27339
|
+
return /* @__PURE__ */ jsx30(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs16(
|
|
27248
27340
|
SelectPrimitive.Content,
|
|
27249
27341
|
{
|
|
27250
27342
|
"data-slot": "select-content",
|
|
@@ -27256,8 +27348,8 @@ function SelectContent({
|
|
|
27256
27348
|
position,
|
|
27257
27349
|
...props,
|
|
27258
27350
|
children: [
|
|
27259
|
-
/* @__PURE__ */
|
|
27260
|
-
/* @__PURE__ */
|
|
27351
|
+
/* @__PURE__ */ jsx30(SelectScrollUpButton, {}),
|
|
27352
|
+
/* @__PURE__ */ jsx30(
|
|
27261
27353
|
SelectPrimitive.Viewport,
|
|
27262
27354
|
{
|
|
27263
27355
|
className: cn(
|
|
@@ -27267,7 +27359,7 @@ function SelectContent({
|
|
|
27267
27359
|
children
|
|
27268
27360
|
}
|
|
27269
27361
|
),
|
|
27270
|
-
/* @__PURE__ */
|
|
27362
|
+
/* @__PURE__ */ jsx30(SelectScrollDownButton, {})
|
|
27271
27363
|
]
|
|
27272
27364
|
}
|
|
27273
27365
|
) });
|
|
@@ -27277,7 +27369,7 @@ function SelectItem({
|
|
|
27277
27369
|
children,
|
|
27278
27370
|
...props
|
|
27279
27371
|
}) {
|
|
27280
|
-
return /* @__PURE__ */
|
|
27372
|
+
return /* @__PURE__ */ jsxs16(
|
|
27281
27373
|
SelectPrimitive.Item,
|
|
27282
27374
|
{
|
|
27283
27375
|
"data-slot": "select-item",
|
|
@@ -27287,8 +27379,8 @@ function SelectItem({
|
|
|
27287
27379
|
),
|
|
27288
27380
|
...props,
|
|
27289
27381
|
children: [
|
|
27290
|
-
/* @__PURE__ */
|
|
27291
|
-
/* @__PURE__ */
|
|
27382
|
+
/* @__PURE__ */ jsx30("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx30(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx30(Check, { className: "size-4" }) }) }),
|
|
27383
|
+
/* @__PURE__ */ jsx30(SelectPrimitive.ItemText, { children })
|
|
27292
27384
|
]
|
|
27293
27385
|
}
|
|
27294
27386
|
);
|
|
@@ -27297,7 +27389,7 @@ function SelectScrollUpButton({
|
|
|
27297
27389
|
className,
|
|
27298
27390
|
...props
|
|
27299
27391
|
}) {
|
|
27300
|
-
return /* @__PURE__ */
|
|
27392
|
+
return /* @__PURE__ */ jsx30(
|
|
27301
27393
|
SelectPrimitive.ScrollUpButton,
|
|
27302
27394
|
{
|
|
27303
27395
|
"data-slot": "select-scroll-up-button",
|
|
@@ -27306,7 +27398,7 @@ function SelectScrollUpButton({
|
|
|
27306
27398
|
className
|
|
27307
27399
|
),
|
|
27308
27400
|
...props,
|
|
27309
|
-
children: /* @__PURE__ */
|
|
27401
|
+
children: /* @__PURE__ */ jsx30(ChevronUp, { className: "size-4" })
|
|
27310
27402
|
}
|
|
27311
27403
|
);
|
|
27312
27404
|
}
|
|
@@ -27314,7 +27406,7 @@ function SelectScrollDownButton({
|
|
|
27314
27406
|
className,
|
|
27315
27407
|
...props
|
|
27316
27408
|
}) {
|
|
27317
|
-
return /* @__PURE__ */
|
|
27409
|
+
return /* @__PURE__ */ jsx30(
|
|
27318
27410
|
SelectPrimitive.ScrollDownButton,
|
|
27319
27411
|
{
|
|
27320
27412
|
"data-slot": "select-scroll-down-button",
|
|
@@ -27323,10 +27415,13 @@ function SelectScrollDownButton({
|
|
|
27323
27415
|
className
|
|
27324
27416
|
),
|
|
27325
27417
|
...props,
|
|
27326
|
-
children: /* @__PURE__ */
|
|
27418
|
+
children: /* @__PURE__ */ jsx30(ChevronDown, { className: "size-4" })
|
|
27327
27419
|
}
|
|
27328
27420
|
);
|
|
27329
27421
|
}
|
|
27422
|
+
|
|
27423
|
+
// src/components/Inputs/Dropdown/Dropdown.tsx
|
|
27424
|
+
import { Fragment as Fragment9, jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
27330
27425
|
var Dropdown = ({ className, style, ...props }) => {
|
|
27331
27426
|
const list = props.data || [];
|
|
27332
27427
|
const placeholder = props.placeholder ? props.placeholder : "Placeholder text";
|
|
@@ -27342,9 +27437,9 @@ var Dropdown = ({ className, style, ...props }) => {
|
|
|
27342
27437
|
value: item[dataKey],
|
|
27343
27438
|
label: item[dataLabel]
|
|
27344
27439
|
}));
|
|
27345
|
-
return /* @__PURE__ */
|
|
27346
|
-
/* @__PURE__ */
|
|
27347
|
-
/* @__PURE__ */
|
|
27440
|
+
return /* @__PURE__ */ jsxs17(Fragment9, { children: [
|
|
27441
|
+
/* @__PURE__ */ jsxs17(Select, { name: props.name, value: props.value, onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
|
|
27442
|
+
/* @__PURE__ */ jsx31(
|
|
27348
27443
|
SelectTrigger,
|
|
27349
27444
|
{
|
|
27350
27445
|
id: props.name || "select-field",
|
|
@@ -27354,20 +27449,24 @@ var Dropdown = ({ className, style, ...props }) => {
|
|
|
27354
27449
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
27355
27450
|
},
|
|
27356
27451
|
"aria-readonly": isReadonly,
|
|
27357
|
-
children: /* @__PURE__ */
|
|
27452
|
+
children: /* @__PURE__ */ jsx31(SelectValue, { placeholder })
|
|
27358
27453
|
}
|
|
27359
27454
|
),
|
|
27360
|
-
/* @__PURE__ */
|
|
27455
|
+
/* @__PURE__ */ jsx31(SelectContent, { children: options.map((opt) => /* @__PURE__ */ jsx31(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
27361
27456
|
] }),
|
|
27362
|
-
props.errorMessage && /* @__PURE__ */
|
|
27457
|
+
props.errorMessage && /* @__PURE__ */ jsx31("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27363
27458
|
] });
|
|
27364
27459
|
};
|
|
27365
27460
|
var Dropdown_default = Dropdown;
|
|
27461
|
+
|
|
27462
|
+
// src/components/ui/switch.tsx
|
|
27463
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
27464
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
27366
27465
|
function Switch({
|
|
27367
27466
|
className,
|
|
27368
27467
|
...props
|
|
27369
27468
|
}) {
|
|
27370
|
-
return /* @__PURE__ */
|
|
27469
|
+
return /* @__PURE__ */ jsx32(
|
|
27371
27470
|
SwitchPrimitive.Root,
|
|
27372
27471
|
{
|
|
27373
27472
|
"data-slot": "switch",
|
|
@@ -27376,7 +27475,7 @@ function Switch({
|
|
|
27376
27475
|
className
|
|
27377
27476
|
),
|
|
27378
27477
|
...props,
|
|
27379
|
-
children: /* @__PURE__ */
|
|
27478
|
+
children: /* @__PURE__ */ jsx32(
|
|
27380
27479
|
SwitchPrimitive.Thumb,
|
|
27381
27480
|
{
|
|
27382
27481
|
"data-slot": "switch-thumb",
|
|
@@ -27388,15 +27487,18 @@ function Switch({
|
|
|
27388
27487
|
}
|
|
27389
27488
|
);
|
|
27390
27489
|
}
|
|
27490
|
+
|
|
27491
|
+
// src/components/Inputs/SwitchToggle/SwitchToggle.tsx
|
|
27492
|
+
import { Fragment as Fragment10, jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
27391
27493
|
var SwitchToggle = ({ className, style, ...props }) => {
|
|
27392
27494
|
const isEditable = props.isEditable ?? true;
|
|
27393
27495
|
const isDisabled = props.isDisabled ?? false;
|
|
27394
27496
|
const handleChange = (value) => {
|
|
27395
27497
|
props.onChange?.(value);
|
|
27396
27498
|
};
|
|
27397
|
-
return /* @__PURE__ */
|
|
27398
|
-
/* @__PURE__ */
|
|
27399
|
-
/* @__PURE__ */
|
|
27499
|
+
return /* @__PURE__ */ jsxs18(Fragment10, { children: [
|
|
27500
|
+
/* @__PURE__ */ jsx33("div", { className, style, children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center space-x-2 mb-2", children: [
|
|
27501
|
+
/* @__PURE__ */ jsx33(
|
|
27400
27502
|
Switch,
|
|
27401
27503
|
{
|
|
27402
27504
|
id: props.name || "switch",
|
|
@@ -27405,12 +27507,17 @@ var SwitchToggle = ({ className, style, ...props }) => {
|
|
|
27405
27507
|
disabled: isDisabled || !isEditable
|
|
27406
27508
|
}
|
|
27407
27509
|
),
|
|
27408
|
-
/* @__PURE__ */
|
|
27510
|
+
/* @__PURE__ */ jsx33(Label2, { htmlFor: props.name || "switch", children: props.text })
|
|
27409
27511
|
] }) }),
|
|
27410
|
-
props.errorMessage && /* @__PURE__ */
|
|
27512
|
+
props.errorMessage && /* @__PURE__ */ jsx33("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27411
27513
|
] });
|
|
27412
27514
|
};
|
|
27413
27515
|
var SwitchToggle_default = SwitchToggle;
|
|
27516
|
+
|
|
27517
|
+
// src/components/Inputs/PhoneInput/PhoneInput.tsx
|
|
27518
|
+
import { PhoneInput as PhoneInputField } from "react-international-phone";
|
|
27519
|
+
import "react-international-phone/style.css";
|
|
27520
|
+
import { Fragment as Fragment11, jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
27414
27521
|
var PhoneInput = ({ className, style, ...props }) => {
|
|
27415
27522
|
const placeholder = props.placeholder ?? "Enter phone number";
|
|
27416
27523
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27418,9 +27525,9 @@ var PhoneInput = ({ className, style, ...props }) => {
|
|
|
27418
27525
|
const handleChange = (val) => {
|
|
27419
27526
|
props.onChange?.(val);
|
|
27420
27527
|
};
|
|
27421
|
-
return /* @__PURE__ */
|
|
27422
|
-
/* @__PURE__ */
|
|
27423
|
-
|
|
27528
|
+
return /* @__PURE__ */ jsxs19(Fragment11, { children: [
|
|
27529
|
+
/* @__PURE__ */ jsx34(
|
|
27530
|
+
PhoneInputField,
|
|
27424
27531
|
{
|
|
27425
27532
|
defaultCountry: "in",
|
|
27426
27533
|
name: props.name,
|
|
@@ -27438,10 +27545,13 @@ var PhoneInput = ({ className, style, ...props }) => {
|
|
|
27438
27545
|
disabled: isDisabled || !isEditable
|
|
27439
27546
|
}
|
|
27440
27547
|
),
|
|
27441
|
-
props.errorMessage && /* @__PURE__ */
|
|
27548
|
+
props.errorMessage && /* @__PURE__ */ jsx34("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27442
27549
|
] });
|
|
27443
27550
|
};
|
|
27444
27551
|
var PhoneInput_default = PhoneInput;
|
|
27552
|
+
|
|
27553
|
+
// src/components/Inputs/SearchInput/SearchInput.tsx
|
|
27554
|
+
import { Fragment as Fragment12, jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
27445
27555
|
var SearchInput = ({ className, style, ...props }) => {
|
|
27446
27556
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27447
27557
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27451,10 +27561,10 @@ var SearchInput = ({ className, style, ...props }) => {
|
|
|
27451
27561
|
const handleChange = (e) => {
|
|
27452
27562
|
props.onChange?.(e);
|
|
27453
27563
|
};
|
|
27454
|
-
return /* @__PURE__ */
|
|
27455
|
-
/* @__PURE__ */
|
|
27456
|
-
/* @__PURE__ */
|
|
27457
|
-
/* @__PURE__ */
|
|
27564
|
+
return /* @__PURE__ */ jsxs20(Fragment12, { children: [
|
|
27565
|
+
/* @__PURE__ */ jsxs20("div", { className: "flex justify-start items-center relative", children: [
|
|
27566
|
+
/* @__PURE__ */ jsx35(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
27567
|
+
/* @__PURE__ */ jsx35(
|
|
27458
27568
|
Input,
|
|
27459
27569
|
{
|
|
27460
27570
|
type: "text",
|
|
@@ -27474,14 +27584,17 @@ var SearchInput = ({ className, style, ...props }) => {
|
|
|
27474
27584
|
}
|
|
27475
27585
|
)
|
|
27476
27586
|
] }),
|
|
27477
|
-
props.errorMessage && /* @__PURE__ */
|
|
27587
|
+
props.errorMessage && /* @__PURE__ */ jsx35("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27478
27588
|
] });
|
|
27479
27589
|
};
|
|
27480
27590
|
var SearchInput_default = SearchInput;
|
|
27591
|
+
|
|
27592
|
+
// src/components/Inputs/FileInput/FileInput.tsx
|
|
27593
|
+
import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
27481
27594
|
var FileInput2 = ({ className, style, ...props }) => {
|
|
27482
27595
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27483
|
-
return /* @__PURE__ */
|
|
27484
|
-
/* @__PURE__ */
|
|
27596
|
+
return /* @__PURE__ */ jsxs21("div", { className: "d-flex items-center relative align-middle", children: [
|
|
27597
|
+
/* @__PURE__ */ jsx36(
|
|
27485
27598
|
Input,
|
|
27486
27599
|
{
|
|
27487
27600
|
type: "file",
|
|
@@ -27500,10 +27613,13 @@ var FileInput2 = ({ className, style, ...props }) => {
|
|
|
27500
27613
|
}
|
|
27501
27614
|
}
|
|
27502
27615
|
),
|
|
27503
|
-
props.errorMessage && /* @__PURE__ */
|
|
27616
|
+
props.errorMessage && /* @__PURE__ */ jsx36("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27504
27617
|
] });
|
|
27505
27618
|
};
|
|
27506
27619
|
var FileInput_default = FileInput2;
|
|
27620
|
+
|
|
27621
|
+
// src/components/Inputs/DatePicker/DatePicker.tsx
|
|
27622
|
+
import { Fragment as Fragment13, jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
27507
27623
|
function DatePicker({ className, style, ...props }) {
|
|
27508
27624
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27509
27625
|
const minimumDate = props.minimumDate ?? "none";
|
|
@@ -27531,10 +27647,10 @@ function DatePicker({ className, style, ...props }) {
|
|
|
27531
27647
|
const handleChange = (e) => {
|
|
27532
27648
|
props.onChange?.(e);
|
|
27533
27649
|
};
|
|
27534
|
-
return /* @__PURE__ */
|
|
27535
|
-
/* @__PURE__ */
|
|
27536
|
-
/* @__PURE__ */
|
|
27537
|
-
/* @__PURE__ */
|
|
27650
|
+
return /* @__PURE__ */ jsxs22(Fragment13, { children: [
|
|
27651
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex justify-start items-center relative", children: [
|
|
27652
|
+
/* @__PURE__ */ jsx37(Calendar, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
27653
|
+
/* @__PURE__ */ jsx37(
|
|
27538
27654
|
Input,
|
|
27539
27655
|
{
|
|
27540
27656
|
type: "date",
|
|
@@ -27560,9 +27676,18 @@ function DatePicker({ className, style, ...props }) {
|
|
|
27560
27676
|
}
|
|
27561
27677
|
)
|
|
27562
27678
|
] }),
|
|
27563
|
-
props.errorMessage && /* @__PURE__ */
|
|
27679
|
+
props.errorMessage && /* @__PURE__ */ jsx37("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27564
27680
|
] });
|
|
27565
27681
|
}
|
|
27682
|
+
|
|
27683
|
+
// src/components/Inputs/DateRange/DateRange.tsx
|
|
27684
|
+
import * as React4 from "react";
|
|
27685
|
+
import { addDays, format } from "date-fns";
|
|
27686
|
+
|
|
27687
|
+
// src/components/ui/calendar.tsx
|
|
27688
|
+
import * as React3 from "react";
|
|
27689
|
+
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
27690
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
27566
27691
|
function Calendar2({
|
|
27567
27692
|
className,
|
|
27568
27693
|
classNames,
|
|
@@ -27574,7 +27699,7 @@ function Calendar2({
|
|
|
27574
27699
|
...props
|
|
27575
27700
|
}) {
|
|
27576
27701
|
const defaultClassNames = getDefaultClassNames();
|
|
27577
|
-
return /* @__PURE__ */
|
|
27702
|
+
return /* @__PURE__ */ jsx38(
|
|
27578
27703
|
DayPicker,
|
|
27579
27704
|
{
|
|
27580
27705
|
showOutsideDays,
|
|
@@ -27673,7 +27798,7 @@ function Calendar2({
|
|
|
27673
27798
|
},
|
|
27674
27799
|
components: {
|
|
27675
27800
|
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
27676
|
-
return /* @__PURE__ */
|
|
27801
|
+
return /* @__PURE__ */ jsx38(
|
|
27677
27802
|
"div",
|
|
27678
27803
|
{
|
|
27679
27804
|
"data-slot": "calendar",
|
|
@@ -27685,10 +27810,10 @@ function Calendar2({
|
|
|
27685
27810
|
},
|
|
27686
27811
|
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
27687
27812
|
if (orientation === "left") {
|
|
27688
|
-
return /* @__PURE__ */
|
|
27813
|
+
return /* @__PURE__ */ jsx38(ChevronLeft, { className: cn("size-4", className2), ...props2 });
|
|
27689
27814
|
}
|
|
27690
27815
|
if (orientation === "right") {
|
|
27691
|
-
return /* @__PURE__ */
|
|
27816
|
+
return /* @__PURE__ */ jsx38(
|
|
27692
27817
|
ChevronRight,
|
|
27693
27818
|
{
|
|
27694
27819
|
className: cn("size-4", className2),
|
|
@@ -27696,11 +27821,11 @@ function Calendar2({
|
|
|
27696
27821
|
}
|
|
27697
27822
|
);
|
|
27698
27823
|
}
|
|
27699
|
-
return /* @__PURE__ */
|
|
27824
|
+
return /* @__PURE__ */ jsx38(ChevronDown, { className: cn("size-4", className2), ...props2 });
|
|
27700
27825
|
},
|
|
27701
27826
|
DayButton: CalendarDayButton,
|
|
27702
27827
|
WeekNumber: ({ children, ...props2 }) => {
|
|
27703
|
-
return /* @__PURE__ */
|
|
27828
|
+
return /* @__PURE__ */ jsx38("td", { ...props2, children: /* @__PURE__ */ jsx38("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
|
|
27704
27829
|
},
|
|
27705
27830
|
...components
|
|
27706
27831
|
},
|
|
@@ -27715,11 +27840,11 @@ function CalendarDayButton({
|
|
|
27715
27840
|
...props
|
|
27716
27841
|
}) {
|
|
27717
27842
|
const defaultClassNames = getDefaultClassNames();
|
|
27718
|
-
const ref =
|
|
27719
|
-
|
|
27843
|
+
const ref = React3.useRef(null);
|
|
27844
|
+
React3.useEffect(() => {
|
|
27720
27845
|
if (modifiers.focused) ref.current?.focus();
|
|
27721
27846
|
}, [modifiers.focused]);
|
|
27722
|
-
return /* @__PURE__ */
|
|
27847
|
+
return /* @__PURE__ */ jsx38(
|
|
27723
27848
|
Button,
|
|
27724
27849
|
{
|
|
27725
27850
|
ref,
|
|
@@ -27739,15 +27864,19 @@ function CalendarDayButton({
|
|
|
27739
27864
|
}
|
|
27740
27865
|
);
|
|
27741
27866
|
}
|
|
27867
|
+
|
|
27868
|
+
// src/components/ui/popover.tsx
|
|
27869
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
27870
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
27742
27871
|
function Popover({
|
|
27743
27872
|
...props
|
|
27744
27873
|
}) {
|
|
27745
|
-
return /* @__PURE__ */
|
|
27874
|
+
return /* @__PURE__ */ jsx39(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
27746
27875
|
}
|
|
27747
27876
|
function PopoverTrigger({
|
|
27748
27877
|
...props
|
|
27749
27878
|
}) {
|
|
27750
|
-
return /* @__PURE__ */
|
|
27879
|
+
return /* @__PURE__ */ jsx39(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
27751
27880
|
}
|
|
27752
27881
|
function PopoverContent({
|
|
27753
27882
|
className,
|
|
@@ -27755,7 +27884,7 @@ function PopoverContent({
|
|
|
27755
27884
|
sideOffset = 4,
|
|
27756
27885
|
...props
|
|
27757
27886
|
}) {
|
|
27758
|
-
return /* @__PURE__ */
|
|
27887
|
+
return /* @__PURE__ */ jsx39(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx39(
|
|
27759
27888
|
PopoverPrimitive.Content,
|
|
27760
27889
|
{
|
|
27761
27890
|
"data-slot": "popover-content",
|
|
@@ -27769,9 +27898,12 @@ function PopoverContent({
|
|
|
27769
27898
|
}
|
|
27770
27899
|
) });
|
|
27771
27900
|
}
|
|
27901
|
+
|
|
27902
|
+
// src/components/Inputs/DateRange/DateRange.tsx
|
|
27903
|
+
import { Fragment as Fragment14, jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
27772
27904
|
var DateRange = ({ className, style, ...props }) => {
|
|
27773
27905
|
const isDateRange = (val) => !!val && val.from instanceof Date;
|
|
27774
|
-
const [date, setDate] =
|
|
27906
|
+
const [date, setDate] = React4.useState(
|
|
27775
27907
|
isDateRange(props.value) ? props.value : {
|
|
27776
27908
|
from: /* @__PURE__ */ new Date(),
|
|
27777
27909
|
to: addDays(/* @__PURE__ */ new Date(), 7)
|
|
@@ -27783,9 +27915,9 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
27783
27915
|
props.onChange?.(value);
|
|
27784
27916
|
}
|
|
27785
27917
|
};
|
|
27786
|
-
return /* @__PURE__ */
|
|
27787
|
-
/* @__PURE__ */
|
|
27788
|
-
/* @__PURE__ */
|
|
27918
|
+
return /* @__PURE__ */ jsxs23(Fragment14, { children: [
|
|
27919
|
+
/* @__PURE__ */ jsx40("div", { className, style, children: /* @__PURE__ */ jsxs23(Popover, { children: [
|
|
27920
|
+
/* @__PURE__ */ jsx40(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx40(
|
|
27789
27921
|
Button,
|
|
27790
27922
|
{
|
|
27791
27923
|
id: "date",
|
|
@@ -27794,15 +27926,15 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
27794
27926
|
"w-[300px] justify-start text-left font-normal text-[11px]",
|
|
27795
27927
|
!date && "text-muted-foreground"
|
|
27796
27928
|
),
|
|
27797
|
-
children: date?.from ? date.to ? /* @__PURE__ */
|
|
27929
|
+
children: date?.from ? date.to ? /* @__PURE__ */ jsxs23(Fragment14, { children: [
|
|
27798
27930
|
format(date.from, "LLL dd, y"),
|
|
27799
27931
|
" -",
|
|
27800
27932
|
" ",
|
|
27801
27933
|
format(date.to, "LLL dd, y")
|
|
27802
|
-
] }) : format(date.from, "LLL dd, y") : /* @__PURE__ */
|
|
27934
|
+
] }) : format(date.from, "LLL dd, y") : /* @__PURE__ */ jsx40("span", { children: "Pick a date range" })
|
|
27803
27935
|
}
|
|
27804
27936
|
) }),
|
|
27805
|
-
/* @__PURE__ */
|
|
27937
|
+
/* @__PURE__ */ jsx40(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsx40(
|
|
27806
27938
|
Calendar2,
|
|
27807
27939
|
{
|
|
27808
27940
|
mode: "range",
|
|
@@ -27813,10 +27945,13 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
27813
27945
|
}
|
|
27814
27946
|
) })
|
|
27815
27947
|
] }) }),
|
|
27816
|
-
props.errorMessage && /* @__PURE__ */
|
|
27948
|
+
props.errorMessage && /* @__PURE__ */ jsx40("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27817
27949
|
] });
|
|
27818
27950
|
};
|
|
27819
27951
|
var DateRange_default = DateRange;
|
|
27952
|
+
|
|
27953
|
+
// src/components/Inputs/TextInputGroup/TextInputGroup.tsx
|
|
27954
|
+
import { Fragment as Fragment15, jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
27820
27955
|
var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
27821
27956
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27822
27957
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27826,8 +27961,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
27826
27961
|
const handleChange = (e) => {
|
|
27827
27962
|
props.onChange?.(e);
|
|
27828
27963
|
};
|
|
27829
|
-
return /* @__PURE__ */
|
|
27830
|
-
/* @__PURE__ */
|
|
27964
|
+
return /* @__PURE__ */ jsxs24(Fragment15, { children: [
|
|
27965
|
+
/* @__PURE__ */ jsxs24(
|
|
27831
27966
|
"div",
|
|
27832
27967
|
{
|
|
27833
27968
|
className: cn(
|
|
@@ -27837,8 +27972,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
27837
27972
|
props.errorMessage ? "border-red-500" : ""
|
|
27838
27973
|
),
|
|
27839
27974
|
children: [
|
|
27840
|
-
prepend && /* @__PURE__ */
|
|
27841
|
-
/* @__PURE__ */
|
|
27975
|
+
prepend && /* @__PURE__ */ jsx41("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-l-md", children: prepend }),
|
|
27976
|
+
/* @__PURE__ */ jsx41(
|
|
27842
27977
|
Input,
|
|
27843
27978
|
{
|
|
27844
27979
|
id: props.name || "prepend-input",
|
|
@@ -27860,21 +27995,34 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
27860
27995
|
readOnly: isReadonly
|
|
27861
27996
|
}
|
|
27862
27997
|
),
|
|
27863
|
-
append && /* @__PURE__ */
|
|
27998
|
+
append && /* @__PURE__ */ jsx41("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-r-md", children: append })
|
|
27864
27999
|
]
|
|
27865
28000
|
}
|
|
27866
28001
|
),
|
|
27867
|
-
props.errorMessage && /* @__PURE__ */
|
|
28002
|
+
props.errorMessage && /* @__PURE__ */ jsx41("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27868
28003
|
] });
|
|
27869
28004
|
};
|
|
27870
28005
|
var TextInputGroup_default = TextInputGroup;
|
|
28006
|
+
|
|
28007
|
+
// src/components/DataDisplay/Table/Table.tsx
|
|
28008
|
+
import { useState as useState4, useEffect as useEffect2 } from "react";
|
|
28009
|
+
|
|
28010
|
+
// src/components/ui/data-table.tsx
|
|
28011
|
+
import {
|
|
28012
|
+
flexRender,
|
|
28013
|
+
getCoreRowModel,
|
|
28014
|
+
useReactTable
|
|
28015
|
+
} from "@tanstack/react-table";
|
|
28016
|
+
|
|
28017
|
+
// src/components/ui/table.tsx
|
|
28018
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
27871
28019
|
function Table3({ className, ...props }) {
|
|
27872
|
-
return /* @__PURE__ */
|
|
28020
|
+
return /* @__PURE__ */ jsx42(
|
|
27873
28021
|
"div",
|
|
27874
28022
|
{
|
|
27875
28023
|
"data-slot": "table-container",
|
|
27876
28024
|
className: "relative w-full overflow-x-auto rounded-md border border-gray-200 bg-white",
|
|
27877
|
-
children: /* @__PURE__ */
|
|
28025
|
+
children: /* @__PURE__ */ jsx42(
|
|
27878
28026
|
"table",
|
|
27879
28027
|
{
|
|
27880
28028
|
"data-slot": "table",
|
|
@@ -27886,7 +28034,7 @@ function Table3({ className, ...props }) {
|
|
|
27886
28034
|
);
|
|
27887
28035
|
}
|
|
27888
28036
|
function TableHeader({ className, ...props }) {
|
|
27889
|
-
return /* @__PURE__ */
|
|
28037
|
+
return /* @__PURE__ */ jsx42(
|
|
27890
28038
|
"thead",
|
|
27891
28039
|
{
|
|
27892
28040
|
"data-slot": "table-header",
|
|
@@ -27899,7 +28047,7 @@ function TableHeader({ className, ...props }) {
|
|
|
27899
28047
|
);
|
|
27900
28048
|
}
|
|
27901
28049
|
function TableBody({ className, ...props }) {
|
|
27902
|
-
return /* @__PURE__ */
|
|
28050
|
+
return /* @__PURE__ */ jsx42(
|
|
27903
28051
|
"tbody",
|
|
27904
28052
|
{
|
|
27905
28053
|
"data-slot": "table-body",
|
|
@@ -27912,7 +28060,7 @@ function TableBody({ className, ...props }) {
|
|
|
27912
28060
|
);
|
|
27913
28061
|
}
|
|
27914
28062
|
function TableRow({ className, ...props }) {
|
|
27915
|
-
return /* @__PURE__ */
|
|
28063
|
+
return /* @__PURE__ */ jsx42(
|
|
27916
28064
|
"tr",
|
|
27917
28065
|
{
|
|
27918
28066
|
"data-slot": "table-row",
|
|
@@ -27925,7 +28073,7 @@ function TableRow({ className, ...props }) {
|
|
|
27925
28073
|
);
|
|
27926
28074
|
}
|
|
27927
28075
|
function TableHead({ className, ...props }) {
|
|
27928
|
-
return /* @__PURE__ */
|
|
28076
|
+
return /* @__PURE__ */ jsx42(
|
|
27929
28077
|
"th",
|
|
27930
28078
|
{
|
|
27931
28079
|
"data-slot": "table-head",
|
|
@@ -27938,7 +28086,7 @@ function TableHead({ className, ...props }) {
|
|
|
27938
28086
|
);
|
|
27939
28087
|
}
|
|
27940
28088
|
function TableCell({ className, ...props }) {
|
|
27941
|
-
return /* @__PURE__ */
|
|
28089
|
+
return /* @__PURE__ */ jsx42(
|
|
27942
28090
|
"td",
|
|
27943
28091
|
{
|
|
27944
28092
|
"data-slot": "table-cell",
|
|
@@ -27950,6 +28098,9 @@ function TableCell({ className, ...props }) {
|
|
|
27950
28098
|
}
|
|
27951
28099
|
);
|
|
27952
28100
|
}
|
|
28101
|
+
|
|
28102
|
+
// src/components/ui/data-table.tsx
|
|
28103
|
+
import { Fragment as Fragment16, jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
27953
28104
|
function DataTable({
|
|
27954
28105
|
columns,
|
|
27955
28106
|
rowActions,
|
|
@@ -27974,14 +28125,14 @@ function DataTable({
|
|
|
27974
28125
|
onCellClick(rowData, columnId);
|
|
27975
28126
|
}
|
|
27976
28127
|
};
|
|
27977
|
-
return /* @__PURE__ */
|
|
27978
|
-
/* @__PURE__ */
|
|
27979
|
-
return /* @__PURE__ */
|
|
28128
|
+
return /* @__PURE__ */ jsx43("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ jsxs25(Table3, { children: [
|
|
28129
|
+
/* @__PURE__ */ jsx43(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx43(TableRow, { children: headerGroup.headers.map((header) => {
|
|
28130
|
+
return /* @__PURE__ */ jsx43(TableHead, { children: header.isPlaceholder ? null : flexRender(
|
|
27980
28131
|
header.column.columnDef.header,
|
|
27981
28132
|
header.getContext()
|
|
27982
28133
|
) }, header.id);
|
|
27983
28134
|
}) }, headerGroup.id)) }),
|
|
27984
|
-
/* @__PURE__ */
|
|
28135
|
+
/* @__PURE__ */ jsx43(TableBody, { children: loading ? /* @__PURE__ */ jsx43(TableRow, { children: /* @__PURE__ */ jsx43(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "Loading..." }) }) : /* @__PURE__ */ jsx43(Fragment16, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsxs25(
|
|
27985
28136
|
TableRow,
|
|
27986
28137
|
{
|
|
27987
28138
|
"data-state": row.getIsSelected() && "selected",
|
|
@@ -27991,7 +28142,7 @@ function DataTable({
|
|
|
27991
28142
|
const isCellClickable = cellClickEnabled(row.original, cell.column.id);
|
|
27992
28143
|
const dynamicClass = cell.column.columnDef.meta?.cellClass || "";
|
|
27993
28144
|
const dynamicStyle = cell.column.columnDef.meta?.cellStyle || {};
|
|
27994
|
-
return /* @__PURE__ */
|
|
28145
|
+
return /* @__PURE__ */ jsx43(
|
|
27995
28146
|
TableCell,
|
|
27996
28147
|
{
|
|
27997
28148
|
className: `${dynamicClass} ${isCellClickable ? "underline cursor-pointer" : ""}`,
|
|
@@ -28006,15 +28157,18 @@ function DataTable({
|
|
|
28006
28157
|
cell.id
|
|
28007
28158
|
);
|
|
28008
28159
|
}),
|
|
28009
|
-
rowActions.length > 0 && /* @__PURE__ */
|
|
28160
|
+
rowActions.length > 0 && /* @__PURE__ */ jsx43("div", { className: "absolute top-0 right-0 bg-white py-3 min-w-[100px] z-50 shadow-md flex items-center justify-center gap-3 p-2 opacity-0 group-hover:opacity-100 duration-300 h-full", children: rowActions.map((action, index) => /* @__PURE__ */ jsx43("p", { className: "text-[#383838] text-[12px] cursor-pointer font-[400]", children: action.header }, index)) })
|
|
28010
28161
|
]
|
|
28011
28162
|
},
|
|
28012
28163
|
row.id
|
|
28013
|
-
)) : /* @__PURE__ */
|
|
28164
|
+
)) : /* @__PURE__ */ jsx43(TableRow, { children: /* @__PURE__ */ jsx43(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
|
|
28014
28165
|
] }) });
|
|
28015
28166
|
}
|
|
28167
|
+
|
|
28168
|
+
// src/components/ui/pagination.tsx
|
|
28169
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
28016
28170
|
function Pagination({ className, ...props }) {
|
|
28017
|
-
return /* @__PURE__ */
|
|
28171
|
+
return /* @__PURE__ */ jsx44(
|
|
28018
28172
|
"nav",
|
|
28019
28173
|
{
|
|
28020
28174
|
role: "navigation",
|
|
@@ -28029,7 +28183,7 @@ function PaginationContent({
|
|
|
28029
28183
|
className,
|
|
28030
28184
|
...props
|
|
28031
28185
|
}) {
|
|
28032
|
-
return /* @__PURE__ */
|
|
28186
|
+
return /* @__PURE__ */ jsx44(
|
|
28033
28187
|
"ul",
|
|
28034
28188
|
{
|
|
28035
28189
|
"data-slot": "pagination-content",
|
|
@@ -28039,7 +28193,7 @@ function PaginationContent({
|
|
|
28039
28193
|
);
|
|
28040
28194
|
}
|
|
28041
28195
|
function PaginationItem({ ...props }) {
|
|
28042
|
-
return /* @__PURE__ */
|
|
28196
|
+
return /* @__PURE__ */ jsx44("li", { "data-slot": "pagination-item", ...props });
|
|
28043
28197
|
}
|
|
28044
28198
|
function PaginationLink({
|
|
28045
28199
|
className,
|
|
@@ -28047,7 +28201,7 @@ function PaginationLink({
|
|
|
28047
28201
|
size = "icon",
|
|
28048
28202
|
...props
|
|
28049
28203
|
}) {
|
|
28050
|
-
return /* @__PURE__ */
|
|
28204
|
+
return /* @__PURE__ */ jsx44(
|
|
28051
28205
|
"a",
|
|
28052
28206
|
{
|
|
28053
28207
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -28068,7 +28222,7 @@ function PaginationPrevious({
|
|
|
28068
28222
|
className,
|
|
28069
28223
|
...props
|
|
28070
28224
|
}) {
|
|
28071
|
-
return /* @__PURE__ */
|
|
28225
|
+
return /* @__PURE__ */ jsxs26(
|
|
28072
28226
|
PaginationLink,
|
|
28073
28227
|
{
|
|
28074
28228
|
"aria-label": "Go to previous page",
|
|
@@ -28076,8 +28230,8 @@ function PaginationPrevious({
|
|
|
28076
28230
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
28077
28231
|
...props,
|
|
28078
28232
|
children: [
|
|
28079
|
-
/* @__PURE__ */
|
|
28080
|
-
/* @__PURE__ */
|
|
28233
|
+
/* @__PURE__ */ jsx44(ChevronLeft, {}),
|
|
28234
|
+
/* @__PURE__ */ jsx44("span", { className: "hidden sm:block", children: "Previous" })
|
|
28081
28235
|
]
|
|
28082
28236
|
}
|
|
28083
28237
|
);
|
|
@@ -28086,7 +28240,7 @@ function PaginationNext({
|
|
|
28086
28240
|
className,
|
|
28087
28241
|
...props
|
|
28088
28242
|
}) {
|
|
28089
|
-
return /* @__PURE__ */
|
|
28243
|
+
return /* @__PURE__ */ jsxs26(
|
|
28090
28244
|
PaginationLink,
|
|
28091
28245
|
{
|
|
28092
28246
|
"aria-label": "Go to next page",
|
|
@@ -28094,8 +28248,8 @@ function PaginationNext({
|
|
|
28094
28248
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
28095
28249
|
...props,
|
|
28096
28250
|
children: [
|
|
28097
|
-
/* @__PURE__ */
|
|
28098
|
-
/* @__PURE__ */
|
|
28251
|
+
/* @__PURE__ */ jsx44("span", { className: "hidden sm:block", children: "Next" }),
|
|
28252
|
+
/* @__PURE__ */ jsx44(ChevronRight, {})
|
|
28099
28253
|
]
|
|
28100
28254
|
}
|
|
28101
28255
|
);
|
|
@@ -28104,7 +28258,7 @@ function PaginationEllipsis({
|
|
|
28104
28258
|
className,
|
|
28105
28259
|
...props
|
|
28106
28260
|
}) {
|
|
28107
|
-
return /* @__PURE__ */
|
|
28261
|
+
return /* @__PURE__ */ jsxs26(
|
|
28108
28262
|
"span",
|
|
28109
28263
|
{
|
|
28110
28264
|
"aria-hidden": true,
|
|
@@ -28112,12 +28266,15 @@ function PaginationEllipsis({
|
|
|
28112
28266
|
className: cn("flex size-9 items-center justify-center", className),
|
|
28113
28267
|
...props,
|
|
28114
28268
|
children: [
|
|
28115
|
-
/* @__PURE__ */
|
|
28116
|
-
/* @__PURE__ */
|
|
28269
|
+
/* @__PURE__ */ jsx44(Ellipsis, { className: "size-4" }),
|
|
28270
|
+
/* @__PURE__ */ jsx44("span", { className: "sr-only", children: "More pages" })
|
|
28117
28271
|
]
|
|
28118
28272
|
}
|
|
28119
28273
|
);
|
|
28120
28274
|
}
|
|
28275
|
+
|
|
28276
|
+
// src/components/DataDisplay/Pagination/Pagination.tsx
|
|
28277
|
+
import { jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
28121
28278
|
var CustomPagination = ({
|
|
28122
28279
|
totalPages,
|
|
28123
28280
|
currentPage,
|
|
@@ -28163,10 +28320,10 @@ var CustomPagination = ({
|
|
|
28163
28320
|
}
|
|
28164
28321
|
};
|
|
28165
28322
|
const pageNumbers = getPageNumbers();
|
|
28166
|
-
return /* @__PURE__ */
|
|
28167
|
-
/* @__PURE__ */
|
|
28168
|
-
/* @__PURE__ */
|
|
28169
|
-
/* @__PURE__ */
|
|
28323
|
+
return /* @__PURE__ */ jsxs27("div", { className: "flex flex-row gap-1 w-full items-center justify-between", children: [
|
|
28324
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
|
|
28325
|
+
/* @__PURE__ */ jsx45("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: "Items per page:" }),
|
|
28326
|
+
/* @__PURE__ */ jsxs27(
|
|
28170
28327
|
Select,
|
|
28171
28328
|
{
|
|
28172
28329
|
defaultValue: String(perPage),
|
|
@@ -28174,26 +28331,26 @@ var CustomPagination = ({
|
|
|
28174
28331
|
onPageChange({ page: 1, itemsPerPage: Number(value) });
|
|
28175
28332
|
},
|
|
28176
28333
|
children: [
|
|
28177
|
-
/* @__PURE__ */
|
|
28178
|
-
/* @__PURE__ */
|
|
28179
|
-
/* @__PURE__ */
|
|
28180
|
-
/* @__PURE__ */
|
|
28181
|
-
/* @__PURE__ */
|
|
28182
|
-
/* @__PURE__ */
|
|
28334
|
+
/* @__PURE__ */ jsx45(SelectTrigger, { className: "w-[100px]", children: /* @__PURE__ */ jsx45(SelectValue, { placeholder: "Select" }) }),
|
|
28335
|
+
/* @__PURE__ */ jsxs27(SelectContent, { children: [
|
|
28336
|
+
/* @__PURE__ */ jsx45(SelectItem, { value: "5", children: "5" }),
|
|
28337
|
+
/* @__PURE__ */ jsx45(SelectItem, { value: "10", children: "10" }),
|
|
28338
|
+
/* @__PURE__ */ jsx45(SelectItem, { value: "20", children: "20" }),
|
|
28339
|
+
/* @__PURE__ */ jsx45(SelectItem, { value: "50", children: "50" })
|
|
28183
28340
|
] })
|
|
28184
28341
|
]
|
|
28185
28342
|
}
|
|
28186
28343
|
)
|
|
28187
28344
|
] }),
|
|
28188
|
-
/* @__PURE__ */
|
|
28189
|
-
/* @__PURE__ */
|
|
28345
|
+
/* @__PURE__ */ jsx45(Pagination, { className: "justify-end", children: /* @__PURE__ */ jsxs27(PaginationContent, { children: [
|
|
28346
|
+
/* @__PURE__ */ jsx45(PaginationItem, { children: /* @__PURE__ */ jsx45(
|
|
28190
28347
|
PaginationPrevious,
|
|
28191
28348
|
{
|
|
28192
28349
|
onClick: () => handlePageChange(currentPage - 1),
|
|
28193
28350
|
className: currentPage === 1 ? "pointer-events-none opacity-50" : "cursor-pointer"
|
|
28194
28351
|
}
|
|
28195
28352
|
) }),
|
|
28196
|
-
pageNumbers.map((pageNumber, index) => /* @__PURE__ */
|
|
28353
|
+
pageNumbers.map((pageNumber, index) => /* @__PURE__ */ jsx45(PaginationItem, { children: pageNumber === "..." ? /* @__PURE__ */ jsx45(PaginationEllipsis, {}) : /* @__PURE__ */ jsx45(
|
|
28197
28354
|
PaginationLink,
|
|
28198
28355
|
{
|
|
28199
28356
|
onClick: () => handlePageChange(pageNumber),
|
|
@@ -28202,7 +28359,7 @@ var CustomPagination = ({
|
|
|
28202
28359
|
children: pageNumber
|
|
28203
28360
|
}
|
|
28204
28361
|
) }, index)),
|
|
28205
|
-
/* @__PURE__ */
|
|
28362
|
+
/* @__PURE__ */ jsx45(PaginationItem, { children: /* @__PURE__ */ jsx45(
|
|
28206
28363
|
PaginationNext,
|
|
28207
28364
|
{
|
|
28208
28365
|
onClick: () => handlePageChange(currentPage + 1),
|
|
@@ -28213,6 +28370,9 @@ var CustomPagination = ({
|
|
|
28213
28370
|
] });
|
|
28214
28371
|
};
|
|
28215
28372
|
var Pagination_default = CustomPagination;
|
|
28373
|
+
|
|
28374
|
+
// src/components/DataDisplay/Table/Table.tsx
|
|
28375
|
+
import { jsx as jsx46, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
28216
28376
|
var Table4 = ({
|
|
28217
28377
|
columns,
|
|
28218
28378
|
data,
|
|
@@ -28232,9 +28392,9 @@ var Table4 = ({
|
|
|
28232
28392
|
const rawData = Array.isArray(data) ? data : [];
|
|
28233
28393
|
const rawRowActions = Array.isArray(rowActions) ? rowActions : [];
|
|
28234
28394
|
const isControlled = typeof page === "number";
|
|
28235
|
-
const [internalPage, setInternalPage] =
|
|
28395
|
+
const [internalPage, setInternalPage] = useState4(1);
|
|
28236
28396
|
const currentPage = isControlled ? page : internalPage;
|
|
28237
|
-
|
|
28397
|
+
useEffect2(() => {
|
|
28238
28398
|
if (isControlled) return;
|
|
28239
28399
|
if (currentPage > 1 && !pagination) setInternalPage(1);
|
|
28240
28400
|
}, [pagination, isControlled]);
|
|
@@ -28258,8 +28418,8 @@ var Table4 = ({
|
|
|
28258
28418
|
if (!selectedColumn) return false;
|
|
28259
28419
|
return selectedColumn.isClickable ?? false;
|
|
28260
28420
|
};
|
|
28261
|
-
return /* @__PURE__ */
|
|
28262
|
-
/* @__PURE__ */
|
|
28421
|
+
return /* @__PURE__ */ jsxs28("div", { className: `${className || ""} space-y-3`, style, children: [
|
|
28422
|
+
/* @__PURE__ */ jsx46(
|
|
28263
28423
|
DataTable,
|
|
28264
28424
|
{
|
|
28265
28425
|
...props,
|
|
@@ -28270,7 +28430,7 @@ var Table4 = ({
|
|
|
28270
28430
|
cellClickEnabled: isCellClickEnabled
|
|
28271
28431
|
}
|
|
28272
28432
|
),
|
|
28273
|
-
enablePagination && /* @__PURE__ */
|
|
28433
|
+
enablePagination && /* @__PURE__ */ jsx46(
|
|
28274
28434
|
Pagination_default,
|
|
28275
28435
|
{
|
|
28276
28436
|
perPage: itemsPerPage,
|
|
@@ -28282,6 +28442,9 @@ var Table4 = ({
|
|
|
28282
28442
|
] });
|
|
28283
28443
|
};
|
|
28284
28444
|
var Table_default = Table4;
|
|
28445
|
+
|
|
28446
|
+
// src/components/Navigation/Tabs/Tabs.tsx
|
|
28447
|
+
import { jsx as jsx47, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
28285
28448
|
var Tabs = ({ className, style, tabs, verticalMenu, LinkComponent, pathname, canvasMode }) => {
|
|
28286
28449
|
const rawTabs = Array.isArray(tabs) ? tabs : [];
|
|
28287
28450
|
const baseClasses = "text-[12px] text-foreground p-2 text-center rounded-md transition-colors";
|
|
@@ -28294,23 +28457,23 @@ var Tabs = ({ className, style, tabs, verticalMenu, LinkComponent, pathname, can
|
|
|
28294
28457
|
const renderDesktopTab = (tab, index) => {
|
|
28295
28458
|
const finalClasses = [baseClasses, isActive(tab.url) ? activeClasses : hoverClasses, tab.className || ""].join(" ");
|
|
28296
28459
|
if (Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown) {
|
|
28297
|
-
return /* @__PURE__ */
|
|
28298
|
-
/* @__PURE__ */
|
|
28460
|
+
return /* @__PURE__ */ jsxs29(DropdownMenu, { children: [
|
|
28461
|
+
/* @__PURE__ */ jsxs29(DropdownMenuTrigger, { className: `${finalClasses} inline-flex items-center gap-1`, children: [
|
|
28299
28462
|
tab.header,
|
|
28300
|
-
/* @__PURE__ */
|
|
28463
|
+
/* @__PURE__ */ jsx47(ChevronDown, { className: "h-4 w-4 opacity-80" })
|
|
28301
28464
|
] }),
|
|
28302
|
-
/* @__PURE__ */
|
|
28465
|
+
/* @__PURE__ */ jsx47(
|
|
28303
28466
|
DropdownMenuContent,
|
|
28304
28467
|
{
|
|
28305
28468
|
align: "start",
|
|
28306
28469
|
sideOffset: 6,
|
|
28307
28470
|
className: "z-50 min-w-[160px] rounded-md border border-gray-200 bg-white p-1 shadow-lg",
|
|
28308
|
-
children: tab.children.map((item) => /* @__PURE__ */
|
|
28471
|
+
children: tab.children.map((item) => /* @__PURE__ */ jsx47(
|
|
28309
28472
|
DropdownMenuItem,
|
|
28310
28473
|
{
|
|
28311
28474
|
asChild: true,
|
|
28312
28475
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100 focus:bg-gray-100",
|
|
28313
|
-
children: LinkComponent ? /* @__PURE__ */
|
|
28476
|
+
children: LinkComponent ? /* @__PURE__ */ jsx47(LinkComponent, { href: item.url || "#", children: item.header }) : item.header
|
|
28314
28477
|
},
|
|
28315
28478
|
item.id
|
|
28316
28479
|
))
|
|
@@ -28318,14 +28481,14 @@ var Tabs = ({ className, style, tabs, verticalMenu, LinkComponent, pathname, can
|
|
|
28318
28481
|
)
|
|
28319
28482
|
] }, index);
|
|
28320
28483
|
}
|
|
28321
|
-
return tab.url && LinkComponent ? /* @__PURE__ */
|
|
28484
|
+
return tab.url && LinkComponent ? /* @__PURE__ */ jsx47(LinkComponent, { href: tab.url, className: finalClasses, style: tab.style, children: tab.header }, index) : /* @__PURE__ */ jsx47("div", { className: finalClasses, style: tab.style, role: "button", tabIndex: 0, children: tab.header }, index);
|
|
28322
28485
|
};
|
|
28323
|
-
const renderMobileMenu = () => /* @__PURE__ */
|
|
28324
|
-
/* @__PURE__ */
|
|
28325
|
-
/* @__PURE__ */
|
|
28486
|
+
const renderMobileMenu = () => /* @__PURE__ */ jsxs29(DropdownMenu, { children: [
|
|
28487
|
+
/* @__PURE__ */ jsxs29(DropdownMenuTrigger, { className: "flex items-center gap-2 px-3 py-2 rounded-md bg-white/10 text-white text-sm", children: [
|
|
28488
|
+
/* @__PURE__ */ jsx47(Menu, { className: "h-4 w-4" }),
|
|
28326
28489
|
"Menu"
|
|
28327
28490
|
] }),
|
|
28328
|
-
/* @__PURE__ */
|
|
28491
|
+
/* @__PURE__ */ jsx47(
|
|
28329
28492
|
DropdownMenuContent,
|
|
28330
28493
|
{
|
|
28331
28494
|
align: "start",
|
|
@@ -28334,25 +28497,25 @@ var Tabs = ({ className, style, tabs, verticalMenu, LinkComponent, pathname, can
|
|
|
28334
28497
|
children: rawTabs.map((tab, i) => {
|
|
28335
28498
|
const hasChildren = Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown;
|
|
28336
28499
|
if (hasChildren) {
|
|
28337
|
-
return /* @__PURE__ */
|
|
28338
|
-
/* @__PURE__ */
|
|
28339
|
-
/* @__PURE__ */
|
|
28500
|
+
return /* @__PURE__ */ jsxs29(DropdownMenuSub, { children: [
|
|
28501
|
+
/* @__PURE__ */ jsx47(DropdownMenuSubTrigger, { className: "flex items-center justify-between cursor-pointer rounded-sm px-3 py-2 text-[13px] text-foreground hover:text-foreground", children: tab.header }),
|
|
28502
|
+
/* @__PURE__ */ jsx47(DropdownMenuSubContent, { className: "bg-white border shadow-lg rounded-md p-1", children: tab.children.map((item) => /* @__PURE__ */ jsx47(
|
|
28340
28503
|
DropdownMenuItem,
|
|
28341
28504
|
{
|
|
28342
28505
|
asChild: true,
|
|
28343
28506
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100",
|
|
28344
|
-
children: LinkComponent ? /* @__PURE__ */
|
|
28507
|
+
children: LinkComponent ? /* @__PURE__ */ jsx47(LinkComponent, { href: item.url || "#", children: item.header }) : item.header
|
|
28345
28508
|
},
|
|
28346
28509
|
item.id
|
|
28347
28510
|
)) })
|
|
28348
28511
|
] }, i);
|
|
28349
28512
|
}
|
|
28350
|
-
return /* @__PURE__ */
|
|
28513
|
+
return /* @__PURE__ */ jsx47(
|
|
28351
28514
|
DropdownMenuItem,
|
|
28352
28515
|
{
|
|
28353
28516
|
asChild: true,
|
|
28354
28517
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[13px] text-gray-800 hover:bg-gray-100",
|
|
28355
|
-
children: LinkComponent ? /* @__PURE__ */
|
|
28518
|
+
children: LinkComponent ? /* @__PURE__ */ jsx47(LinkComponent, { href: tab.url || "#", children: tab.header }) : tab.header
|
|
28356
28519
|
},
|
|
28357
28520
|
i
|
|
28358
28521
|
);
|
|
@@ -28362,18 +28525,22 @@ var Tabs = ({ className, style, tabs, verticalMenu, LinkComponent, pathname, can
|
|
|
28362
28525
|
] });
|
|
28363
28526
|
const forceMobile = canvasMode === "mobile" || canvasMode === "tablet";
|
|
28364
28527
|
const forceDesktop = canvasMode === "desktop";
|
|
28365
|
-
return /* @__PURE__ */
|
|
28366
|
-
forceDesktop && /* @__PURE__ */
|
|
28367
|
-
forceMobile && /* @__PURE__ */
|
|
28368
|
-
/* @__PURE__ */
|
|
28528
|
+
return /* @__PURE__ */ jsxs29("div", { className, style, children: [
|
|
28529
|
+
forceDesktop && /* @__PURE__ */ jsx47("div", { className: "hidden md:flex", children: /* @__PURE__ */ jsx47("div", { className: `flex gap-2 ${verticalMenu ? "flex-col items-start" : "flex-row"}`, children: rawTabs.map(renderDesktopTab) }) }),
|
|
28530
|
+
forceMobile && /* @__PURE__ */ jsx47("div", { children: renderMobileMenu() }),
|
|
28531
|
+
/* @__PURE__ */ jsx47("div", { className: "md:hidden", children: renderMobileMenu() })
|
|
28369
28532
|
] });
|
|
28370
28533
|
};
|
|
28371
28534
|
var Tabs_default = Tabs;
|
|
28535
|
+
|
|
28536
|
+
// src/components/Navigation/Stages/Stages.tsx
|
|
28537
|
+
import React5 from "react";
|
|
28538
|
+
import { jsx as jsx48, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
28372
28539
|
var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
|
|
28373
|
-
return /* @__PURE__ */
|
|
28374
|
-
/* @__PURE__ */
|
|
28375
|
-
/* @__PURE__ */
|
|
28376
|
-
/* @__PURE__ */
|
|
28540
|
+
return /* @__PURE__ */ jsx48("div", { className, style, children: /* @__PURE__ */ jsxs30("div", { className: "flex items-center justify-between bg-gray-50 p-2 rounded-lg border border-gray-200 w-full", children: [
|
|
28541
|
+
/* @__PURE__ */ jsx48("div", { className: "flex items-center", children: /* @__PURE__ */ jsx48("button", { className: "p-2 hover:bg-gray-100 rounded", children: /* @__PURE__ */ jsx48("svg", { className: "w-4 h-4 text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx48("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }) }) }),
|
|
28542
|
+
/* @__PURE__ */ jsx48("div", { className: "flex items-center flex-1 px-2", children: stages?.length > 0 && stages?.map((stage, index) => /* @__PURE__ */ jsxs30(React5.Fragment, { children: [
|
|
28543
|
+
/* @__PURE__ */ jsx48(
|
|
28377
28544
|
"button",
|
|
28378
28545
|
{
|
|
28379
28546
|
className: `
|
|
@@ -28381,17 +28548,34 @@ var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
|
|
|
28381
28548
|
children: stage.header
|
|
28382
28549
|
}
|
|
28383
28550
|
),
|
|
28384
|
-
index < stages.length - 1 && /* @__PURE__ */
|
|
28551
|
+
index < stages.length - 1 && /* @__PURE__ */ jsx48("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
|
|
28385
28552
|
] }, stage.id)) }),
|
|
28386
|
-
isShowBtn && /* @__PURE__ */
|
|
28553
|
+
isShowBtn && /* @__PURE__ */ jsx48("div", { className: "flex items-center", children: /* @__PURE__ */ jsx48("button", { className: "bg-[#034486] text-white px-6 py-2 rounded-lg text-sm font-medium transition-colors duration-200 shadow-sm", children: buttonText }) })
|
|
28387
28554
|
] }) });
|
|
28388
28555
|
};
|
|
28389
28556
|
var Stages_default = StagesComponent;
|
|
28557
|
+
|
|
28558
|
+
// src/components/Navigation/Spacer/Spacer.tsx
|
|
28559
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
28390
28560
|
var Spacer = ({ className, style }) => {
|
|
28391
|
-
return /* @__PURE__ */
|
|
28561
|
+
return /* @__PURE__ */ jsx49("div", { className: `${className}`, style });
|
|
28392
28562
|
};
|
|
28393
28563
|
var Spacer_default = Spacer;
|
|
28394
|
-
|
|
28564
|
+
|
|
28565
|
+
// src/components/Navigation/Profile/Profile.tsx
|
|
28566
|
+
import { jsx as jsx50, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
28567
|
+
|
|
28568
|
+
// src/components/Navigation/Notification/Notification.tsx
|
|
28569
|
+
import { jsx as jsx51, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
28570
|
+
|
|
28571
|
+
// src/components/Navigation/Logo/Logo.tsx
|
|
28572
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
28573
|
+
|
|
28574
|
+
// src/components/ui/avatar.tsx
|
|
28575
|
+
import * as React6 from "react";
|
|
28576
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
28577
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
28578
|
+
var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx53(
|
|
28395
28579
|
AvatarPrimitive.Root,
|
|
28396
28580
|
{
|
|
28397
28581
|
ref,
|
|
@@ -28403,7 +28587,7 @@ var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
28403
28587
|
}
|
|
28404
28588
|
));
|
|
28405
28589
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
28406
|
-
var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28590
|
+
var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx53(
|
|
28407
28591
|
AvatarPrimitive.Image,
|
|
28408
28592
|
{
|
|
28409
28593
|
ref,
|
|
@@ -28412,7 +28596,7 @@ var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
28412
28596
|
}
|
|
28413
28597
|
));
|
|
28414
28598
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
28415
|
-
var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28599
|
+
var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx53(
|
|
28416
28600
|
AvatarPrimitive.Fallback,
|
|
28417
28601
|
{
|
|
28418
28602
|
ref,
|
|
@@ -28424,6 +28608,9 @@ var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
28424
28608
|
}
|
|
28425
28609
|
));
|
|
28426
28610
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
28611
|
+
|
|
28612
|
+
// src/components/Navigation/Navbar/Navbar.tsx
|
|
28613
|
+
import { Fragment as Fragment17, jsx as jsx54, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
28427
28614
|
function Navbar({
|
|
28428
28615
|
style,
|
|
28429
28616
|
badgeType,
|
|
@@ -28440,9 +28627,9 @@ function Navbar({
|
|
|
28440
28627
|
userName = "Guest User"
|
|
28441
28628
|
}) {
|
|
28442
28629
|
const isMobileView = canvasMode === "mobile" || canvasMode === "tablet";
|
|
28443
|
-
return /* @__PURE__ */
|
|
28444
|
-
LinkComponent && ImageComponent ? /* @__PURE__ */
|
|
28445
|
-
!isMobileView && LinkComponent && /* @__PURE__ */
|
|
28630
|
+
return /* @__PURE__ */ jsx54("nav", { className: "w-full border-b bg-white shadow-sm", style, children: /* @__PURE__ */ jsxs33("div", { className: "mx-auto flex max-w-7xl items-center justify-between px-4 py-2", children: [
|
|
28631
|
+
LinkComponent && ImageComponent ? /* @__PURE__ */ jsx54(LinkComponent, { href: "/", className: "flex items-center space-x-2", children: imageUrl ? /* @__PURE__ */ jsx54(ImageComponent, { src: imageUrl, alt: altText, width: 200, height: 200 }) : /* @__PURE__ */ jsx54("span", { className: "font-semibold text-blue-700", children: "Logo" }) }) : /* @__PURE__ */ jsx54("span", { className: "font-semibold text-blue-700", children: "Logo" }),
|
|
28632
|
+
!isMobileView && LinkComponent && /* @__PURE__ */ jsx54("div", { className: "flex items-center space-x-6 sm:hidden md:flex", children: list.map((item) => /* @__PURE__ */ jsx54(
|
|
28446
28633
|
LinkComponent,
|
|
28447
28634
|
{
|
|
28448
28635
|
href: item.url || "#",
|
|
@@ -28451,79 +28638,83 @@ function Navbar({
|
|
|
28451
28638
|
},
|
|
28452
28639
|
item.id
|
|
28453
28640
|
)) }),
|
|
28454
|
-
/* @__PURE__ */
|
|
28455
|
-
!isMobileView ? /* @__PURE__ */
|
|
28456
|
-
/* @__PURE__ */
|
|
28457
|
-
/* @__PURE__ */
|
|
28458
|
-
] }) }) : /* @__PURE__ */
|
|
28641
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex items-center space-x-3", children: [
|
|
28642
|
+
!isMobileView ? /* @__PURE__ */ jsx54("div", { className: "flex-1 px-6", children: /* @__PURE__ */ jsxs33("div", { className: "relative w-full max-w-md border border-gray-300 rounded-md", children: [
|
|
28643
|
+
/* @__PURE__ */ jsx54(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400" }),
|
|
28644
|
+
/* @__PURE__ */ jsx54(Input, { placeholder: "Search", className: "pl-9 text-gray-400" })
|
|
28645
|
+
] }) }) : /* @__PURE__ */ jsx54(
|
|
28459
28646
|
Button,
|
|
28460
28647
|
{
|
|
28461
28648
|
variant: "ghost",
|
|
28462
28649
|
size: "icon",
|
|
28463
28650
|
className: "border border-gray-400",
|
|
28464
|
-
children: /* @__PURE__ */
|
|
28651
|
+
children: /* @__PURE__ */ jsx54(Search, { className: "h-5 w-5 text-gray-400" })
|
|
28465
28652
|
}
|
|
28466
28653
|
),
|
|
28467
|
-
/* @__PURE__ */
|
|
28468
|
-
/* @__PURE__ */
|
|
28469
|
-
badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && badgeCount > 0 ? /* @__PURE__ */
|
|
28654
|
+
/* @__PURE__ */ jsxs33("div", { className: "relative bg-[#E9E9E9] rounded-md", children: [
|
|
28655
|
+
/* @__PURE__ */ jsx54(Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsx54(Bell, { className: "h-5 w-5 text-[#1C1B1F]" }) }),
|
|
28656
|
+
badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && badgeCount > 0 ? /* @__PURE__ */ jsx54("span", { className: "absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full bg-red-500 text-[10px] text-white leading-8", children: badgeCount }) : /* @__PURE__ */ jsx54("span", { className: "absolute -top-1 -right-1 flex h-2 w-2 items-center justify-center rounded-full bg-red-500" })
|
|
28470
28657
|
] }),
|
|
28471
|
-
/* @__PURE__ */
|
|
28472
|
-
/* @__PURE__ */
|
|
28473
|
-
!isMobileView && showName && /* @__PURE__ */
|
|
28474
|
-
!isMobileView ? /* @__PURE__ */
|
|
28475
|
-
/* @__PURE__ */
|
|
28658
|
+
/* @__PURE__ */ jsxs33(DropdownMenu, { children: [
|
|
28659
|
+
/* @__PURE__ */ jsx54(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center space-x-2", children: [
|
|
28660
|
+
!isMobileView && showName && /* @__PURE__ */ jsx54("h4", { className: "text-[#000000] text-[13px] font-[500] mb-0", children: userName }),
|
|
28661
|
+
!isMobileView ? /* @__PURE__ */ jsxs33(Fragment17, { children: [
|
|
28662
|
+
/* @__PURE__ */ jsx54(Avatar, { className: "cursor-pointer h-8 w-8 text-gray-900", children: profileType === "avatar" ? /* @__PURE__ */ jsx54(
|
|
28476
28663
|
AvatarImage,
|
|
28477
28664
|
{
|
|
28478
28665
|
src: "/images/appbuilder/toolset/profile.svg",
|
|
28479
28666
|
alt: "Profile"
|
|
28480
28667
|
}
|
|
28481
|
-
) : /* @__PURE__ */
|
|
28482
|
-
/* @__PURE__ */
|
|
28668
|
+
) : /* @__PURE__ */ jsx54("div", { className: "w-8 h-8 bg-[#12715b] rounded-full text-[#fff] text-center text-[11px] flex items-center justify-center", children: userName && getInitials(userName) }) }),
|
|
28669
|
+
/* @__PURE__ */ jsx54(
|
|
28483
28670
|
Button,
|
|
28484
28671
|
{
|
|
28485
28672
|
variant: "ghost",
|
|
28486
28673
|
size: "icon",
|
|
28487
28674
|
className: "text-gray-900 md:hidden",
|
|
28488
|
-
children: /* @__PURE__ */
|
|
28675
|
+
children: /* @__PURE__ */ jsx54(Menu, { className: "h-6 w-6" })
|
|
28489
28676
|
}
|
|
28490
28677
|
)
|
|
28491
|
-
] }) : /* @__PURE__ */
|
|
28678
|
+
] }) : /* @__PURE__ */ jsx54(
|
|
28492
28679
|
Button,
|
|
28493
28680
|
{
|
|
28494
28681
|
variant: "ghost",
|
|
28495
28682
|
size: "icon",
|
|
28496
28683
|
className: "text-gray-900",
|
|
28497
|
-
children: /* @__PURE__ */
|
|
28684
|
+
children: /* @__PURE__ */ jsx54(Menu, { className: "h-6 w-6" })
|
|
28498
28685
|
}
|
|
28499
28686
|
)
|
|
28500
28687
|
] }) }),
|
|
28501
|
-
/* @__PURE__ */
|
|
28688
|
+
/* @__PURE__ */ jsx54(DropdownMenuContent, { align: "end", className: "bg-white", children: LinkComponent && /* @__PURE__ */ jsx54(Fragment17, { children: list && list.length > 0 && /* @__PURE__ */ jsx54(Fragment17, { children: list.map((item) => /* @__PURE__ */ jsx54(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ jsx54(LinkComponent, { href: item.url || "#", children: item.header }) }, item.id)) }) }) })
|
|
28502
28689
|
] })
|
|
28503
28690
|
] })
|
|
28504
28691
|
] }) });
|
|
28505
28692
|
}
|
|
28693
|
+
|
|
28694
|
+
// src/components/Chart/BarChart.tsx
|
|
28695
|
+
import { BarChart, Bar, Area, AreaChart, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Legend } from "recharts";
|
|
28696
|
+
import { jsx as jsx55, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
28506
28697
|
var ChartComponent = ({ className, style, ...props }) => {
|
|
28507
28698
|
const data = Array.isArray(props?.data) ? props.data : [];
|
|
28508
28699
|
const chartType = props.chartType || "bar";
|
|
28509
28700
|
const legendsPosition = props.legendsPosition === "middle" || props.legendsPosition === "bottom" ? props.legendsPosition : "top";
|
|
28510
|
-
return /* @__PURE__ */
|
|
28511
|
-
/* @__PURE__ */
|
|
28512
|
-
/* @__PURE__ */
|
|
28513
|
-
/* @__PURE__ */
|
|
28514
|
-
/* @__PURE__ */
|
|
28515
|
-
/* @__PURE__ */
|
|
28516
|
-
/* @__PURE__ */
|
|
28517
|
-
] }) : /* @__PURE__ */
|
|
28518
|
-
/* @__PURE__ */
|
|
28519
|
-
/* @__PURE__ */
|
|
28520
|
-
/* @__PURE__ */
|
|
28701
|
+
return /* @__PURE__ */ jsx55("div", { className: `${className} h-[400px]`, style, children: data.length > 0 && /* @__PURE__ */ jsx55(ResponsiveContainer, { width: "100%", height: "100%", children: chartType === "bar" ? /* @__PURE__ */ jsxs34(BarChart, { data, children: [
|
|
28702
|
+
/* @__PURE__ */ jsx55(CartesianGrid, { strokeDasharray: "3 3" }),
|
|
28703
|
+
/* @__PURE__ */ jsx55(XAxis, { dataKey: "name" }),
|
|
28704
|
+
/* @__PURE__ */ jsx55(YAxis, {}),
|
|
28705
|
+
/* @__PURE__ */ jsx55(Tooltip, {}),
|
|
28706
|
+
/* @__PURE__ */ jsx55(Legend, { verticalAlign: legendsPosition, align: "center" }),
|
|
28707
|
+
/* @__PURE__ */ jsx55(Bar, { dataKey: "value", fill: "#00695C" })
|
|
28708
|
+
] }) : /* @__PURE__ */ jsxs34(AreaChart, { data, children: [
|
|
28709
|
+
/* @__PURE__ */ jsx55("defs", { children: /* @__PURE__ */ jsxs34("linearGradient", { id: "colorCount", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
28710
|
+
/* @__PURE__ */ jsx55("stop", { offset: "5%", stopColor: "#00695C", stopOpacity: 0.8 }),
|
|
28711
|
+
/* @__PURE__ */ jsx55("stop", { offset: "95%", stopColor: "#00695C", stopOpacity: 0 })
|
|
28521
28712
|
] }) }),
|
|
28522
|
-
/* @__PURE__ */
|
|
28523
|
-
/* @__PURE__ */
|
|
28524
|
-
/* @__PURE__ */
|
|
28525
|
-
/* @__PURE__ */
|
|
28526
|
-
/* @__PURE__ */
|
|
28713
|
+
/* @__PURE__ */ jsx55(CartesianGrid, { strokeDasharray: "3 3" }),
|
|
28714
|
+
/* @__PURE__ */ jsx55(XAxis, { dataKey: "name" }),
|
|
28715
|
+
/* @__PURE__ */ jsx55(YAxis, {}),
|
|
28716
|
+
/* @__PURE__ */ jsx55(Tooltip, {}),
|
|
28717
|
+
/* @__PURE__ */ jsx55(
|
|
28527
28718
|
Area,
|
|
28528
28719
|
{
|
|
28529
28720
|
type: "monotone",
|
|
@@ -28536,6 +28727,10 @@ var ChartComponent = ({ className, style, ...props }) => {
|
|
|
28536
28727
|
] }) }) });
|
|
28537
28728
|
};
|
|
28538
28729
|
var BarChart_default = ChartComponent;
|
|
28730
|
+
|
|
28731
|
+
// src/components/Chart/PieChart.tsx
|
|
28732
|
+
import { PieChart, Pie, Cell, ResponsiveContainer as ResponsiveContainer2, Tooltip as Tooltip2, LabelList } from "recharts";
|
|
28733
|
+
import { Fragment as Fragment18, jsx as jsx56, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
28539
28734
|
var DonutChart = ({ className, style, ...props }) => {
|
|
28540
28735
|
const data = Array.isArray(props?.data) ? props.data : [];
|
|
28541
28736
|
const total = data.reduce((sum, d) => sum + d.value, 0);
|
|
@@ -28546,7 +28741,7 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28546
28741
|
const renderLabel = ({ value, x, y }) => {
|
|
28547
28742
|
if (value == null) return null;
|
|
28548
28743
|
const percentage = (Number(value) / total * 100).toFixed(0);
|
|
28549
|
-
return /* @__PURE__ */
|
|
28744
|
+
return /* @__PURE__ */ jsxs35(
|
|
28550
28745
|
"text",
|
|
28551
28746
|
{
|
|
28552
28747
|
x,
|
|
@@ -28563,37 +28758,38 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28563
28758
|
}
|
|
28564
28759
|
);
|
|
28565
28760
|
};
|
|
28761
|
+
const forceMobile = canvasMode === "mobile" || canvasMode === "tablet";
|
|
28566
28762
|
const forceDesktop = canvasMode === "desktop";
|
|
28567
28763
|
const wrapperClass = canvasMode ? forceDesktop ? "flex-row" : "flex-col" : "flex-col md:flex-row";
|
|
28568
28764
|
const renderLegends = () => {
|
|
28569
28765
|
if (!showLegends) return null;
|
|
28570
|
-
return /* @__PURE__ */
|
|
28766
|
+
return /* @__PURE__ */ jsx56(Fragment18, { children: data.map((d) => /* @__PURE__ */ jsxs35(
|
|
28571
28767
|
"div",
|
|
28572
28768
|
{
|
|
28573
28769
|
className: "flex items-center space-x-2 rounded-md border border-gray-200 px-3 py-2 w-[48%] md:w-auto",
|
|
28574
28770
|
children: [
|
|
28575
|
-
/* @__PURE__ */
|
|
28771
|
+
/* @__PURE__ */ jsx56(
|
|
28576
28772
|
"span",
|
|
28577
28773
|
{
|
|
28578
28774
|
className: "inline-block w-[16px] h-[16px] rounded",
|
|
28579
28775
|
style: { backgroundColor: d.color }
|
|
28580
28776
|
}
|
|
28581
28777
|
),
|
|
28582
|
-
/* @__PURE__ */
|
|
28778
|
+
/* @__PURE__ */ jsx56("span", { className: "text-[#000000] text-[12px] md:text-[13px] font-[500]", children: d.name })
|
|
28583
28779
|
]
|
|
28584
28780
|
},
|
|
28585
28781
|
d.name
|
|
28586
28782
|
)) });
|
|
28587
28783
|
};
|
|
28588
|
-
return /* @__PURE__ */
|
|
28784
|
+
return /* @__PURE__ */ jsxs35(
|
|
28589
28785
|
"div",
|
|
28590
28786
|
{
|
|
28591
28787
|
className: `relative flex items-center ${wrapperClass} ${className}`,
|
|
28592
28788
|
style,
|
|
28593
28789
|
children: [
|
|
28594
|
-
/* @__PURE__ */
|
|
28595
|
-
data.length > 0 && /* @__PURE__ */
|
|
28596
|
-
/* @__PURE__ */
|
|
28790
|
+
/* @__PURE__ */ jsxs35("div", { className: "relative w-full md:w-[70%] h-[300px] md:h-[400px] flex items-center justify-center", children: [
|
|
28791
|
+
data.length > 0 && /* @__PURE__ */ jsx56(ResponsiveContainer2, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs35(PieChart, { children: [
|
|
28792
|
+
/* @__PURE__ */ jsxs35(
|
|
28597
28793
|
Pie,
|
|
28598
28794
|
{
|
|
28599
28795
|
data,
|
|
@@ -28605,8 +28801,8 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28605
28801
|
labelLine: false,
|
|
28606
28802
|
isAnimationActive: false,
|
|
28607
28803
|
children: [
|
|
28608
|
-
data.map((entry, index) => /* @__PURE__ */
|
|
28609
|
-
/* @__PURE__ */
|
|
28804
|
+
data.map((entry, index) => /* @__PURE__ */ jsx56(Cell, { fill: entry.color }, `cell-${index}`)),
|
|
28805
|
+
/* @__PURE__ */ jsx56(
|
|
28610
28806
|
LabelList,
|
|
28611
28807
|
{
|
|
28612
28808
|
dataKey: "value",
|
|
@@ -28617,23 +28813,26 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28617
28813
|
]
|
|
28618
28814
|
}
|
|
28619
28815
|
),
|
|
28620
|
-
/* @__PURE__ */
|
|
28816
|
+
/* @__PURE__ */ jsx56(Tooltip2, { formatter: (value, name) => [`${value}k`, name] })
|
|
28621
28817
|
] }) }),
|
|
28622
|
-
/* @__PURE__ */
|
|
28818
|
+
/* @__PURE__ */ jsxs35("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-2xl md:text-4xl font-bold text-[#000]", children: [
|
|
28623
28819
|
total,
|
|
28624
28820
|
"k"
|
|
28625
28821
|
] })
|
|
28626
28822
|
] }),
|
|
28627
|
-
/* @__PURE__ */
|
|
28823
|
+
/* @__PURE__ */ jsx56("div", { className: `flex ${forceDesktop ? "flex-col ml-auto space-y-3" : "flex-wrap justify-center gap-2 mt-4"}
|
|
28628
28824
|
w-full md:w-auto`, children: renderLegends() })
|
|
28629
28825
|
]
|
|
28630
28826
|
}
|
|
28631
28827
|
);
|
|
28632
28828
|
};
|
|
28633
28829
|
var PieChart_default = DonutChart;
|
|
28830
|
+
|
|
28831
|
+
// src/components/Blocks/EmailComposer.tsx
|
|
28832
|
+
import { jsx as jsx57, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
28634
28833
|
function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }) {
|
|
28635
|
-
return /* @__PURE__ */
|
|
28636
|
-
/* @__PURE__ */
|
|
28834
|
+
return /* @__PURE__ */ jsx57("div", { className, style, children: /* @__PURE__ */ jsxs36("div", { className: "border rounded-md shadow bg-[#fff] p-4 mx-auto z-[50] relative", children: [
|
|
28835
|
+
/* @__PURE__ */ jsx57("div", { className: "mb-3", children: /* @__PURE__ */ jsx57(
|
|
28637
28836
|
"input",
|
|
28638
28837
|
{
|
|
28639
28838
|
type: "email",
|
|
@@ -28642,8 +28841,8 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28642
28841
|
required: true
|
|
28643
28842
|
}
|
|
28644
28843
|
) }),
|
|
28645
|
-
/* @__PURE__ */
|
|
28646
|
-
/* @__PURE__ */
|
|
28844
|
+
/* @__PURE__ */ jsx57("div", { className: "mb-3", children: /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2", children: [
|
|
28845
|
+
/* @__PURE__ */ jsx57(
|
|
28647
28846
|
"input",
|
|
28648
28847
|
{
|
|
28649
28848
|
type: "email",
|
|
@@ -28654,7 +28853,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28654
28853
|
required: true
|
|
28655
28854
|
}
|
|
28656
28855
|
),
|
|
28657
|
-
!showCc && /* @__PURE__ */
|
|
28856
|
+
!showCc && /* @__PURE__ */ jsx57(
|
|
28658
28857
|
"button",
|
|
28659
28858
|
{
|
|
28660
28859
|
onClick: () => setShowCc?.(true),
|
|
@@ -28662,7 +28861,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28662
28861
|
children: "Cc"
|
|
28663
28862
|
}
|
|
28664
28863
|
),
|
|
28665
|
-
!showBcc && /* @__PURE__ */
|
|
28864
|
+
!showBcc && /* @__PURE__ */ jsx57(
|
|
28666
28865
|
"button",
|
|
28667
28866
|
{
|
|
28668
28867
|
onClick: () => setShowBcc?.(true),
|
|
@@ -28671,7 +28870,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28671
28870
|
}
|
|
28672
28871
|
)
|
|
28673
28872
|
] }) }),
|
|
28674
|
-
showCc && /* @__PURE__ */
|
|
28873
|
+
showCc && /* @__PURE__ */ jsx57("div", { className: "mb-3", children: /* @__PURE__ */ jsx57(
|
|
28675
28874
|
"input",
|
|
28676
28875
|
{
|
|
28677
28876
|
type: "text",
|
|
@@ -28681,7 +28880,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28681
28880
|
className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
|
|
28682
28881
|
}
|
|
28683
28882
|
) }),
|
|
28684
|
-
showBcc && /* @__PURE__ */
|
|
28883
|
+
showBcc && /* @__PURE__ */ jsx57("div", { className: "mb-3", children: /* @__PURE__ */ jsx57(
|
|
28685
28884
|
"input",
|
|
28686
28885
|
{
|
|
28687
28886
|
type: "text",
|
|
@@ -28691,7 +28890,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28691
28890
|
className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
|
|
28692
28891
|
}
|
|
28693
28892
|
) }),
|
|
28694
|
-
/* @__PURE__ */
|
|
28893
|
+
/* @__PURE__ */ jsx57("div", { className: "mb-3", children: /* @__PURE__ */ jsx57(
|
|
28695
28894
|
"input",
|
|
28696
28895
|
{
|
|
28697
28896
|
type: "text",
|
|
@@ -28701,14 +28900,17 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28701
28900
|
className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
|
|
28702
28901
|
}
|
|
28703
28902
|
) }),
|
|
28704
|
-
/* @__PURE__ */
|
|
28705
|
-
/* @__PURE__ */
|
|
28706
|
-
/* @__PURE__ */
|
|
28707
|
-
/* @__PURE__ */
|
|
28708
|
-
/* @__PURE__ */
|
|
28903
|
+
/* @__PURE__ */ jsx57("div", { className: "mb-4", children: /* @__PURE__ */ jsx57(MyEditor, { value: body, onChange: setBody }) }),
|
|
28904
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex justify-end gap-2", children: [
|
|
28905
|
+
/* @__PURE__ */ jsx57("button", { className: "px-4 py-2 rounded-md text-gray-600 hover:bg-gray-100", children: "Discard" }),
|
|
28906
|
+
/* @__PURE__ */ jsx57("button", { className: "px-4 py-2 rounded-md border text-[#12715B] border-[#12715B]", children: "Reset" }),
|
|
28907
|
+
/* @__PURE__ */ jsx57("button", { className: "px-4 py-2 rounded-md bg-[#12715B] text-white", children: "Send" })
|
|
28709
28908
|
] })
|
|
28710
28909
|
] }) });
|
|
28711
28910
|
}
|
|
28911
|
+
|
|
28912
|
+
// src/components/ui/sonner-toast.tsx
|
|
28913
|
+
import { toast } from "sonner";
|
|
28712
28914
|
function showSonnerToast({
|
|
28713
28915
|
title,
|
|
28714
28916
|
description,
|
|
@@ -28743,6 +28945,50 @@ function showSonnerToast({
|
|
|
28743
28945
|
toast(title, options);
|
|
28744
28946
|
}
|
|
28745
28947
|
}
|
|
28948
|
+
export {
|
|
28949
|
+
Accordion_default as Accordion,
|
|
28950
|
+
BarChart_default as BarChart,
|
|
28951
|
+
Breadcrumb_default as Breadcrumb,
|
|
28952
|
+
Button_default as Button,
|
|
28953
|
+
SplitButton as ButtonGroup,
|
|
28954
|
+
Checkbox_default as Checkbox,
|
|
28955
|
+
Container_default as Container,
|
|
28956
|
+
DatePicker,
|
|
28957
|
+
DateRange_default as DateRange,
|
|
28958
|
+
Dropdown_default as Dropdown,
|
|
28959
|
+
EmailInput_default as Email,
|
|
28960
|
+
EmailComposer,
|
|
28961
|
+
FileInput_default as FileInput,
|
|
28962
|
+
Flex_default as FlexLayout,
|
|
28963
|
+
Grid_default as GridLayout,
|
|
28964
|
+
Icon_default as Icon,
|
|
28965
|
+
Image_default as Image,
|
|
28966
|
+
Modal_default as Modal,
|
|
28967
|
+
MultiCheckbox_default as MultiCheckbox,
|
|
28968
|
+
Navbar,
|
|
28969
|
+
NumberInput_default as NumberInput,
|
|
28970
|
+
Pagination_default as Pagination,
|
|
28971
|
+
PasswordInput_default as Password,
|
|
28972
|
+
PhoneInput_default as Phone,
|
|
28973
|
+
PieChart_default as PieChart,
|
|
28974
|
+
RadioInput_default as RadioGroup,
|
|
28975
|
+
RichText,
|
|
28976
|
+
SearchInput_default as Search,
|
|
28977
|
+
Shape_default as Shape,
|
|
28978
|
+
Spacer_default as Spacer,
|
|
28979
|
+
Stages_default as Stages,
|
|
28980
|
+
SwitchToggle_default as SwitchToggle,
|
|
28981
|
+
Table_default as Table,
|
|
28982
|
+
Tabs_default as Tabs,
|
|
28983
|
+
TextInput_default as Text,
|
|
28984
|
+
TextInputGroup_default as TextInputGroup,
|
|
28985
|
+
Textarea_default as Textarea,
|
|
28986
|
+
Typography_default as Typography,
|
|
28987
|
+
UrlInput_default as URL,
|
|
28988
|
+
cn,
|
|
28989
|
+
getInitials,
|
|
28990
|
+
showSonnerToast
|
|
28991
|
+
};
|
|
28746
28992
|
/*! Bundled license information:
|
|
28747
28993
|
|
|
28748
28994
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
@@ -30392,7 +30638,4 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
30392
30638
|
* See the LICENSE file in the root directory of this source tree.
|
|
30393
30639
|
*)
|
|
30394
30640
|
*/
|
|
30395
|
-
|
|
30396
|
-
export { Accordion_default as Accordion, BarChart_default as BarChart, Breadcrumb_default as Breadcrumb, Button_default as Button, SplitButton as ButtonGroup, Checkbox_default as Checkbox, Container_default as Container, DatePicker, DateRange_default as DateRange, Dropdown_default as Dropdown, EmailInput_default as Email, EmailComposer, FileInput_default as FileInput, Flex_default as FlexLayout, Grid_default as GridLayout, Icon_default as Icon, Image_default as Image, Modal_default as Modal, MultiCheckbox_default as MultiCheckbox, Navbar, NumberInput_default as NumberInput, Pagination_default as Pagination, PasswordInput_default as Password, PhoneInput_default as Phone, PieChart_default as PieChart, RadioInput_default as RadioGroup, RichText, SearchInput_default as Search, Shape_default as Shape, Spacer_default as Spacer, Stages_default as Stages, SwitchToggle_default as SwitchToggle, Table_default as Table, Tabs_default as Tabs, TextInput_default as Text, TextInputGroup_default as TextInputGroup, Textarea_default as Textarea, Typography_default as Typography, UrlInput_default as URL, showSonnerToast };
|
|
30397
|
-
//# sourceMappingURL=index.mjs.map
|
|
30398
30641
|
//# sourceMappingURL=index.mjs.map
|