@algorithm-shift/design-system 1.2.55 → 1.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +17 -13
- package/dist/index.d.ts +17 -13
- package/dist/index.js +365 -346
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +322 -305
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -106,10 +106,26 @@ var Accordion = ({
|
|
|
106
106
|
};
|
|
107
107
|
var Accordion_default = Accordion;
|
|
108
108
|
|
|
109
|
+
// src/components/Layout/Slot.tsx
|
|
110
|
+
import { Fragment, jsx as jsx6 } from "react/jsx-runtime";
|
|
111
|
+
var Slot = ({
|
|
112
|
+
children
|
|
113
|
+
}) => {
|
|
114
|
+
return /* @__PURE__ */ jsx6(Fragment, { children });
|
|
115
|
+
};
|
|
116
|
+
var Slot_default = Slot;
|
|
117
|
+
|
|
118
|
+
// src/components/Layout/AccordionGroup.tsx
|
|
119
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
120
|
+
var AccordionGroup = ({ children, style, className }) => {
|
|
121
|
+
return /* @__PURE__ */ jsx7("div", { className, style, children });
|
|
122
|
+
};
|
|
123
|
+
var AccordionGroup_default = AccordionGroup;
|
|
124
|
+
|
|
109
125
|
// src/components/ui/button.tsx
|
|
110
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
126
|
+
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
111
127
|
import { cva } from "class-variance-authority";
|
|
112
|
-
import { jsx as
|
|
128
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
113
129
|
var buttonVariants = cva(
|
|
114
130
|
"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",
|
|
115
131
|
{
|
|
@@ -142,8 +158,8 @@ function Button({
|
|
|
142
158
|
asChild = false,
|
|
143
159
|
...props
|
|
144
160
|
}) {
|
|
145
|
-
const Comp = asChild ?
|
|
146
|
-
return /* @__PURE__ */
|
|
161
|
+
const Comp = asChild ? Slot2 : "button";
|
|
162
|
+
return /* @__PURE__ */ jsx8(
|
|
147
163
|
Comp,
|
|
148
164
|
{
|
|
149
165
|
"data-slot": "button",
|
|
@@ -154,14 +170,14 @@ function Button({
|
|
|
154
170
|
}
|
|
155
171
|
|
|
156
172
|
// src/components/Basic/Button/Button.tsx
|
|
157
|
-
import { jsx as
|
|
173
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
158
174
|
var ButtonWrapper = ({
|
|
159
175
|
className,
|
|
160
176
|
style,
|
|
161
177
|
textContent = "Button",
|
|
162
178
|
...props
|
|
163
179
|
}) => {
|
|
164
|
-
return /* @__PURE__ */
|
|
180
|
+
return /* @__PURE__ */ jsx9(
|
|
165
181
|
Button,
|
|
166
182
|
{
|
|
167
183
|
...props,
|
|
@@ -177,7 +193,7 @@ var Button_default = ButtonWrapper;
|
|
|
177
193
|
var image_placeholder_default = "data:image/png;base64,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";
|
|
178
194
|
|
|
179
195
|
// src/components/Basic/Image/Image.tsx
|
|
180
|
-
import { jsx as
|
|
196
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
181
197
|
var ImageControl = ({
|
|
182
198
|
className,
|
|
183
199
|
style,
|
|
@@ -194,21 +210,21 @@ var ImageControl = ({
|
|
|
194
210
|
className
|
|
195
211
|
);
|
|
196
212
|
if (!imageUrl && !imageUrlExternal) {
|
|
197
|
-
return /* @__PURE__ */
|
|
213
|
+
return /* @__PURE__ */ jsx10("div", { className: imageClass, children: /* @__PURE__ */ jsx10("img", { src: image_placeholder_default, alt: altText, className: "opacity-50", width: 50, height: 50 }) });
|
|
198
214
|
}
|
|
199
215
|
const url = imageUrlExternal || imageUrl;
|
|
200
|
-
return /* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ jsx10("img", { src: url, alt: altText, className: defaultImgClass, style });
|
|
201
217
|
};
|
|
202
218
|
var Image_default = ImageControl;
|
|
203
219
|
|
|
204
220
|
// src/components/Basic/Shape/Shape.tsx
|
|
205
|
-
import { jsx as
|
|
221
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
206
222
|
var Shape = ({
|
|
207
223
|
children,
|
|
208
224
|
className,
|
|
209
225
|
style
|
|
210
226
|
}) => {
|
|
211
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ jsx11("div", { className, style, children });
|
|
212
228
|
};
|
|
213
229
|
var Shape_default = Shape;
|
|
214
230
|
|
|
@@ -26546,9 +26562,9 @@ var ZoomOut = createLucideIcon("zoom-out", __iconNode1634);
|
|
|
26546
26562
|
|
|
26547
26563
|
// src/components/Basic/Breadcrumb/Breadcrumb.tsx
|
|
26548
26564
|
import Link3 from "next/link";
|
|
26549
|
-
import { jsx as
|
|
26565
|
+
import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
26550
26566
|
var Breadcrumb = ({ list = [], className, style }) => {
|
|
26551
|
-
return /* @__PURE__ */
|
|
26567
|
+
return /* @__PURE__ */ jsx12(
|
|
26552
26568
|
"nav",
|
|
26553
26569
|
{
|
|
26554
26570
|
"aria-label": "breadcrumb",
|
|
@@ -26557,15 +26573,15 @@ var Breadcrumb = ({ list = [], className, style }) => {
|
|
|
26557
26573
|
children: list.map((item, index) => {
|
|
26558
26574
|
const isLast = index === list.length - 1;
|
|
26559
26575
|
return /* @__PURE__ */ jsxs3("div", { className: "flex items-center", children: [
|
|
26560
|
-
item.url && !isLast ? /* @__PURE__ */
|
|
26576
|
+
item.url && !isLast ? /* @__PURE__ */ jsx12(
|
|
26561
26577
|
Link3,
|
|
26562
26578
|
{
|
|
26563
26579
|
href: item.url,
|
|
26564
26580
|
className: "hover:text-foreground transition-colors",
|
|
26565
26581
|
children: item.header
|
|
26566
26582
|
}
|
|
26567
|
-
) : /* @__PURE__ */
|
|
26568
|
-
!isLast && /* @__PURE__ */
|
|
26583
|
+
) : /* @__PURE__ */ jsx12("span", { className: "text-foreground font-medium", children: item.header }),
|
|
26584
|
+
!isLast && /* @__PURE__ */ jsx12(ChevronRight, { className: "mx-2 h-4 w-4 text-muted-foreground" })
|
|
26569
26585
|
] }, item.id);
|
|
26570
26586
|
})
|
|
26571
26587
|
}
|
|
@@ -26575,16 +26591,16 @@ var Breadcrumb_default = Breadcrumb;
|
|
|
26575
26591
|
|
|
26576
26592
|
// src/components/ui/dropdown-menu.tsx
|
|
26577
26593
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
26578
|
-
import { jsx as
|
|
26594
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
26579
26595
|
function DropdownMenu({
|
|
26580
26596
|
...props
|
|
26581
26597
|
}) {
|
|
26582
|
-
return /* @__PURE__ */
|
|
26598
|
+
return /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
26583
26599
|
}
|
|
26584
26600
|
function DropdownMenuTrigger({
|
|
26585
26601
|
...props
|
|
26586
26602
|
}) {
|
|
26587
|
-
return /* @__PURE__ */
|
|
26603
|
+
return /* @__PURE__ */ jsx13(
|
|
26588
26604
|
DropdownMenuPrimitive.Trigger,
|
|
26589
26605
|
{
|
|
26590
26606
|
"data-slot": "dropdown-menu-trigger",
|
|
@@ -26597,7 +26613,7 @@ function DropdownMenuContent({
|
|
|
26597
26613
|
sideOffset = 4,
|
|
26598
26614
|
...props
|
|
26599
26615
|
}) {
|
|
26600
|
-
return /* @__PURE__ */
|
|
26616
|
+
return /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx13(
|
|
26601
26617
|
DropdownMenuPrimitive.Content,
|
|
26602
26618
|
{
|
|
26603
26619
|
"data-slot": "dropdown-menu-content",
|
|
@@ -26616,7 +26632,7 @@ function DropdownMenuItem({
|
|
|
26616
26632
|
variant = "default",
|
|
26617
26633
|
...props
|
|
26618
26634
|
}) {
|
|
26619
|
-
return /* @__PURE__ */
|
|
26635
|
+
return /* @__PURE__ */ jsx13(
|
|
26620
26636
|
DropdownMenuPrimitive.Item,
|
|
26621
26637
|
{
|
|
26622
26638
|
"data-slot": "dropdown-menu-item",
|
|
@@ -26633,7 +26649,7 @@ function DropdownMenuItem({
|
|
|
26633
26649
|
function DropdownMenuSub({
|
|
26634
26650
|
...props
|
|
26635
26651
|
}) {
|
|
26636
|
-
return /* @__PURE__ */
|
|
26652
|
+
return /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
26637
26653
|
}
|
|
26638
26654
|
function DropdownMenuSubTrigger({
|
|
26639
26655
|
className,
|
|
@@ -26653,7 +26669,7 @@ function DropdownMenuSubTrigger({
|
|
|
26653
26669
|
...props,
|
|
26654
26670
|
children: [
|
|
26655
26671
|
children,
|
|
26656
|
-
/* @__PURE__ */
|
|
26672
|
+
/* @__PURE__ */ jsx13(ChevronRight, { className: "ml-auto size-4" })
|
|
26657
26673
|
]
|
|
26658
26674
|
}
|
|
26659
26675
|
);
|
|
@@ -26662,7 +26678,7 @@ function DropdownMenuSubContent({
|
|
|
26662
26678
|
className,
|
|
26663
26679
|
...props
|
|
26664
26680
|
}) {
|
|
26665
|
-
return /* @__PURE__ */
|
|
26681
|
+
return /* @__PURE__ */ jsx13(
|
|
26666
26682
|
DropdownMenuPrimitive.SubContent,
|
|
26667
26683
|
{
|
|
26668
26684
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -26677,11 +26693,11 @@ function DropdownMenuSubContent({
|
|
|
26677
26693
|
|
|
26678
26694
|
// src/components/Basic/ButtonGroup/ButtonGroup.tsx
|
|
26679
26695
|
import Link4 from "next/link";
|
|
26680
|
-
import { jsx as
|
|
26696
|
+
import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
26681
26697
|
function SplitButton({ style, textContent, className, list = [] }) {
|
|
26682
26698
|
const bgColor = style?.backgroundColor || "";
|
|
26683
26699
|
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: [
|
|
26684
|
-
/* @__PURE__ */
|
|
26700
|
+
/* @__PURE__ */ jsx14(
|
|
26685
26701
|
Button,
|
|
26686
26702
|
{
|
|
26687
26703
|
className: `rounded-none border-r px-4 py-2 text-whit focus:ring-0 ${className || ""}`,
|
|
@@ -26690,16 +26706,16 @@ function SplitButton({ style, textContent, className, list = [] }) {
|
|
|
26690
26706
|
}
|
|
26691
26707
|
),
|
|
26692
26708
|
/* @__PURE__ */ jsxs5(DropdownMenu, { children: [
|
|
26693
|
-
/* @__PURE__ */
|
|
26709
|
+
/* @__PURE__ */ jsx14(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx14(
|
|
26694
26710
|
Button,
|
|
26695
26711
|
{
|
|
26696
26712
|
className: "rounded-none bg-teal-700 px-4 py-2 text-white ring-0 shadow-none hover:bg-teal-600 focus:ring-0",
|
|
26697
26713
|
"aria-label": "Open Dropdown",
|
|
26698
26714
|
style: { backgroundColor: bgColor },
|
|
26699
|
-
children: /* @__PURE__ */
|
|
26715
|
+
children: /* @__PURE__ */ jsx14(ChevronDown, { className: "w-4 h-4" })
|
|
26700
26716
|
}
|
|
26701
26717
|
) }),
|
|
26702
|
-
/* @__PURE__ */
|
|
26718
|
+
/* @__PURE__ */ jsx14(DropdownMenuContent, { align: "end", className: "bg-white min-w-[120px]", children: list.map((item) => /* @__PURE__ */ jsx14(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ jsx14(Link4, { href: item.url || "#", children: item.header }) }, item.id)) })
|
|
26703
26719
|
] })
|
|
26704
26720
|
] });
|
|
26705
26721
|
}
|
|
@@ -26707,7 +26723,7 @@ function SplitButton({ style, textContent, className, list = [] }) {
|
|
|
26707
26723
|
// src/components/Basic/Icon/Icon.tsx
|
|
26708
26724
|
import * as faSolid from "@fortawesome/free-solid-svg-icons";
|
|
26709
26725
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
26710
|
-
import { jsx as
|
|
26726
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
26711
26727
|
var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize = 10, style }) => {
|
|
26712
26728
|
let content = null;
|
|
26713
26729
|
if (iconType === "fontawesome") {
|
|
@@ -26716,7 +26732,7 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
|
|
|
26716
26732
|
if (!faIcon) {
|
|
26717
26733
|
return null;
|
|
26718
26734
|
}
|
|
26719
|
-
content = /* @__PURE__ */
|
|
26735
|
+
content = /* @__PURE__ */ jsx15(
|
|
26720
26736
|
FontAwesomeIcon,
|
|
26721
26737
|
{
|
|
26722
26738
|
icon: faIcon,
|
|
@@ -26730,16 +26746,16 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
|
|
|
26730
26746
|
if (!Lucide) {
|
|
26731
26747
|
return null;
|
|
26732
26748
|
}
|
|
26733
|
-
content = /* @__PURE__ */
|
|
26749
|
+
content = /* @__PURE__ */ jsx15(Lucide, { className: cn("w-5 h-5"), size: fontSize, style: { color: style?.color } });
|
|
26734
26750
|
}
|
|
26735
|
-
return /* @__PURE__ */
|
|
26751
|
+
return /* @__PURE__ */ jsx15("div", { style, className, children: content });
|
|
26736
26752
|
};
|
|
26737
26753
|
var Icon_default = Icon2;
|
|
26738
26754
|
|
|
26739
26755
|
// src/components/ui/input.tsx
|
|
26740
|
-
import { jsx as
|
|
26756
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
26741
26757
|
function Input({ className, type, ...props }) {
|
|
26742
|
-
return /* @__PURE__ */
|
|
26758
|
+
return /* @__PURE__ */ jsx16(
|
|
26743
26759
|
"input",
|
|
26744
26760
|
{
|
|
26745
26761
|
type,
|
|
@@ -26756,7 +26772,7 @@ function Input({ className, type, ...props }) {
|
|
|
26756
26772
|
}
|
|
26757
26773
|
|
|
26758
26774
|
// src/components/Inputs/TextInput/TextInput.tsx
|
|
26759
|
-
import { Fragment, jsx as
|
|
26775
|
+
import { Fragment as Fragment2, jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
26760
26776
|
var TextInput = ({ className, style, ...props }) => {
|
|
26761
26777
|
const placeholder = props.placeholder || "Placeholder text";
|
|
26762
26778
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26766,8 +26782,8 @@ var TextInput = ({ className, style, ...props }) => {
|
|
|
26766
26782
|
const handleChange = (e) => {
|
|
26767
26783
|
props.onChange?.(e);
|
|
26768
26784
|
};
|
|
26769
|
-
return /* @__PURE__ */ jsxs6(
|
|
26770
|
-
/* @__PURE__ */
|
|
26785
|
+
return /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
26786
|
+
/* @__PURE__ */ jsx17(
|
|
26771
26787
|
Input,
|
|
26772
26788
|
{
|
|
26773
26789
|
type: "text",
|
|
@@ -26785,13 +26801,13 @@ var TextInput = ({ className, style, ...props }) => {
|
|
|
26785
26801
|
readOnly: isReadonly
|
|
26786
26802
|
}
|
|
26787
26803
|
),
|
|
26788
|
-
props.errorMessage && /* @__PURE__ */
|
|
26804
|
+
props.errorMessage && /* @__PURE__ */ jsx17("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26789
26805
|
] });
|
|
26790
26806
|
};
|
|
26791
26807
|
var TextInput_default = TextInput;
|
|
26792
26808
|
|
|
26793
26809
|
// src/components/Inputs/NumberInput/NumberInput.tsx
|
|
26794
|
-
import { Fragment as
|
|
26810
|
+
import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
26795
26811
|
var NumberInput = ({ className, style, ...props }) => {
|
|
26796
26812
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26797
26813
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26801,10 +26817,10 @@ var NumberInput = ({ className, style, ...props }) => {
|
|
|
26801
26817
|
const handleChange = (e) => {
|
|
26802
26818
|
props.onChange?.(e);
|
|
26803
26819
|
};
|
|
26804
|
-
return /* @__PURE__ */ jsxs7(
|
|
26820
|
+
return /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
26805
26821
|
/* @__PURE__ */ jsxs7("div", { className: "flex justify-start items-center relative", children: [
|
|
26806
|
-
/* @__PURE__ */
|
|
26807
|
-
/* @__PURE__ */
|
|
26822
|
+
/* @__PURE__ */ jsx18(Calculator, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
26823
|
+
/* @__PURE__ */ jsx18(
|
|
26808
26824
|
Input,
|
|
26809
26825
|
{
|
|
26810
26826
|
type: "number",
|
|
@@ -26824,13 +26840,13 @@ var NumberInput = ({ className, style, ...props }) => {
|
|
|
26824
26840
|
}
|
|
26825
26841
|
)
|
|
26826
26842
|
] }),
|
|
26827
|
-
props.errorMessage && /* @__PURE__ */
|
|
26843
|
+
props.errorMessage && /* @__PURE__ */ jsx18("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26828
26844
|
] });
|
|
26829
26845
|
};
|
|
26830
26846
|
var NumberInput_default = NumberInput;
|
|
26831
26847
|
|
|
26832
26848
|
// src/components/Inputs/EmailInput/EmailInput.tsx
|
|
26833
|
-
import { Fragment as
|
|
26849
|
+
import { Fragment as Fragment4, jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
26834
26850
|
var EmailInput = ({ className, style, ...props }) => {
|
|
26835
26851
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26836
26852
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26840,10 +26856,10 @@ var EmailInput = ({ className, style, ...props }) => {
|
|
|
26840
26856
|
const handleChange = (e) => {
|
|
26841
26857
|
props.onChange?.(e);
|
|
26842
26858
|
};
|
|
26843
|
-
return /* @__PURE__ */ jsxs8(
|
|
26859
|
+
return /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
26844
26860
|
/* @__PURE__ */ jsxs8("div", { className: "flex justify-start items-center relative", children: [
|
|
26845
|
-
/* @__PURE__ */
|
|
26846
|
-
/* @__PURE__ */
|
|
26861
|
+
/* @__PURE__ */ jsx19(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
26862
|
+
/* @__PURE__ */ jsx19(
|
|
26847
26863
|
Input,
|
|
26848
26864
|
{
|
|
26849
26865
|
type: "email",
|
|
@@ -26862,13 +26878,13 @@ var EmailInput = ({ className, style, ...props }) => {
|
|
|
26862
26878
|
}
|
|
26863
26879
|
)
|
|
26864
26880
|
] }),
|
|
26865
|
-
props.errorMessage && /* @__PURE__ */
|
|
26881
|
+
props.errorMessage && /* @__PURE__ */ jsx19("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26866
26882
|
] });
|
|
26867
26883
|
};
|
|
26868
26884
|
var EmailInput_default = EmailInput;
|
|
26869
26885
|
|
|
26870
26886
|
// src/components/Inputs/PasswordInput/PasswordInput.tsx
|
|
26871
|
-
import { Fragment as
|
|
26887
|
+
import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
26872
26888
|
var PasswordInput = ({ className, style, ...props }) => {
|
|
26873
26889
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26874
26890
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26878,10 +26894,10 @@ var PasswordInput = ({ className, style, ...props }) => {
|
|
|
26878
26894
|
const handleChange = (e) => {
|
|
26879
26895
|
props.onChange?.(e);
|
|
26880
26896
|
};
|
|
26881
|
-
return /* @__PURE__ */ jsxs9(
|
|
26897
|
+
return /* @__PURE__ */ jsxs9(Fragment5, { children: [
|
|
26882
26898
|
/* @__PURE__ */ jsxs9("div", { className: "flex justify-start items-center relative", children: [
|
|
26883
|
-
/* @__PURE__ */
|
|
26884
|
-
/* @__PURE__ */
|
|
26899
|
+
/* @__PURE__ */ jsx20(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
26900
|
+
/* @__PURE__ */ jsx20(
|
|
26885
26901
|
Input,
|
|
26886
26902
|
{
|
|
26887
26903
|
type: "password",
|
|
@@ -26901,15 +26917,15 @@ var PasswordInput = ({ className, style, ...props }) => {
|
|
|
26901
26917
|
}
|
|
26902
26918
|
)
|
|
26903
26919
|
] }),
|
|
26904
|
-
props.errorMessage && /* @__PURE__ */
|
|
26920
|
+
props.errorMessage && /* @__PURE__ */ jsx20("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26905
26921
|
] });
|
|
26906
26922
|
};
|
|
26907
26923
|
var PasswordInput_default = PasswordInput;
|
|
26908
26924
|
|
|
26909
26925
|
// src/components/ui/textarea.tsx
|
|
26910
|
-
import { jsx as
|
|
26926
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
26911
26927
|
function Textarea({ className, ...props }) {
|
|
26912
|
-
return /* @__PURE__ */
|
|
26928
|
+
return /* @__PURE__ */ jsx21(
|
|
26913
26929
|
"textarea",
|
|
26914
26930
|
{
|
|
26915
26931
|
"data-slot": "textarea",
|
|
@@ -26923,7 +26939,7 @@ function Textarea({ className, ...props }) {
|
|
|
26923
26939
|
}
|
|
26924
26940
|
|
|
26925
26941
|
// src/components/Inputs/Textarea/Textarea.tsx
|
|
26926
|
-
import { Fragment as
|
|
26942
|
+
import { Fragment as Fragment6, jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
26927
26943
|
var Textarea2 = ({ className, style, ...props }) => {
|
|
26928
26944
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26929
26945
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26933,8 +26949,8 @@ var Textarea2 = ({ className, style, ...props }) => {
|
|
|
26933
26949
|
const handleChange = (e) => {
|
|
26934
26950
|
props.onChange?.(e);
|
|
26935
26951
|
};
|
|
26936
|
-
return /* @__PURE__ */ jsxs10(
|
|
26937
|
-
/* @__PURE__ */
|
|
26952
|
+
return /* @__PURE__ */ jsxs10(Fragment6, { children: [
|
|
26953
|
+
/* @__PURE__ */ jsx22(
|
|
26938
26954
|
Textarea,
|
|
26939
26955
|
{
|
|
26940
26956
|
id: "textarea-field",
|
|
@@ -26952,13 +26968,13 @@ var Textarea2 = ({ className, style, ...props }) => {
|
|
|
26952
26968
|
readOnly: isReadonly
|
|
26953
26969
|
}
|
|
26954
26970
|
),
|
|
26955
|
-
props.errorMessage && /* @__PURE__ */
|
|
26971
|
+
props.errorMessage && /* @__PURE__ */ jsx22("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26956
26972
|
] });
|
|
26957
26973
|
};
|
|
26958
26974
|
var Textarea_default = Textarea2;
|
|
26959
26975
|
|
|
26960
26976
|
// src/components/Inputs/UrlInput/UrlInput.tsx
|
|
26961
|
-
import { Fragment as
|
|
26977
|
+
import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
26962
26978
|
var UrlInput = ({ className, style, ...props }) => {
|
|
26963
26979
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26964
26980
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26968,10 +26984,10 @@ var UrlInput = ({ className, style, ...props }) => {
|
|
|
26968
26984
|
const handleChange = (e) => {
|
|
26969
26985
|
props.onChange?.(e);
|
|
26970
26986
|
};
|
|
26971
|
-
return /* @__PURE__ */ jsxs11(
|
|
26987
|
+
return /* @__PURE__ */ jsxs11(Fragment7, { children: [
|
|
26972
26988
|
/* @__PURE__ */ jsxs11("div", { className: "flex justify-start items-center relative", children: [
|
|
26973
|
-
/* @__PURE__ */
|
|
26974
|
-
/* @__PURE__ */
|
|
26989
|
+
/* @__PURE__ */ jsx23("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://" }),
|
|
26990
|
+
/* @__PURE__ */ jsx23(
|
|
26975
26991
|
Input,
|
|
26976
26992
|
{
|
|
26977
26993
|
id: "url-field",
|
|
@@ -26991,19 +27007,19 @@ var UrlInput = ({ className, style, ...props }) => {
|
|
|
26991
27007
|
}
|
|
26992
27008
|
)
|
|
26993
27009
|
] }),
|
|
26994
|
-
props.errorMessage && /* @__PURE__ */
|
|
27010
|
+
props.errorMessage && /* @__PURE__ */ jsx23("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26995
27011
|
] });
|
|
26996
27012
|
};
|
|
26997
27013
|
var UrlInput_default = UrlInput;
|
|
26998
27014
|
|
|
26999
27015
|
// src/components/ui/checkbox.tsx
|
|
27000
27016
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
27001
|
-
import { jsx as
|
|
27017
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
27002
27018
|
function Checkbox({
|
|
27003
27019
|
className,
|
|
27004
27020
|
...props
|
|
27005
27021
|
}) {
|
|
27006
|
-
return /* @__PURE__ */
|
|
27022
|
+
return /* @__PURE__ */ jsx24(
|
|
27007
27023
|
CheckboxPrimitive.Root,
|
|
27008
27024
|
{
|
|
27009
27025
|
"data-slot": "checkbox",
|
|
@@ -27012,12 +27028,12 @@ function Checkbox({
|
|
|
27012
27028
|
className
|
|
27013
27029
|
),
|
|
27014
27030
|
...props,
|
|
27015
|
-
children: /* @__PURE__ */
|
|
27031
|
+
children: /* @__PURE__ */ jsx24(
|
|
27016
27032
|
CheckboxPrimitive.Indicator,
|
|
27017
27033
|
{
|
|
27018
27034
|
"data-slot": "checkbox-indicator",
|
|
27019
27035
|
className: "flex items-center justify-center text-current transition-none",
|
|
27020
|
-
children: /* @__PURE__ */
|
|
27036
|
+
children: /* @__PURE__ */ jsx24(Check, { className: "size-3.5" })
|
|
27021
27037
|
}
|
|
27022
27038
|
)
|
|
27023
27039
|
}
|
|
@@ -27026,12 +27042,12 @@ function Checkbox({
|
|
|
27026
27042
|
|
|
27027
27043
|
// src/components/ui/label.tsx
|
|
27028
27044
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
27029
|
-
import { jsx as
|
|
27045
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
27030
27046
|
function Label2({
|
|
27031
27047
|
className,
|
|
27032
27048
|
...props
|
|
27033
27049
|
}) {
|
|
27034
|
-
return /* @__PURE__ */
|
|
27050
|
+
return /* @__PURE__ */ jsx25(
|
|
27035
27051
|
LabelPrimitive.Root,
|
|
27036
27052
|
{
|
|
27037
27053
|
"data-slot": "label",
|
|
@@ -27045,7 +27061,7 @@ function Label2({
|
|
|
27045
27061
|
}
|
|
27046
27062
|
|
|
27047
27063
|
// src/components/Inputs/Checkbox/Checkbox.tsx
|
|
27048
|
-
import { Fragment as
|
|
27064
|
+
import { Fragment as Fragment8, jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
27049
27065
|
var CheckboxInput = ({ className, style, ...props }) => {
|
|
27050
27066
|
const isEditable = props.isEditable ?? true;
|
|
27051
27067
|
const isDisabled = props.isDisabled ?? false;
|
|
@@ -27053,9 +27069,9 @@ var CheckboxInput = ({ className, style, ...props }) => {
|
|
|
27053
27069
|
const handleChange = (value) => {
|
|
27054
27070
|
props.onChange?.(value);
|
|
27055
27071
|
};
|
|
27056
|
-
return /* @__PURE__ */ jsxs12(
|
|
27057
|
-
/* @__PURE__ */
|
|
27058
|
-
/* @__PURE__ */
|
|
27072
|
+
return /* @__PURE__ */ jsxs12(Fragment8, { children: [
|
|
27073
|
+
/* @__PURE__ */ jsx26("div", { className, style, children: /* @__PURE__ */ jsxs12("div", { className: "flex items-center space-x-2", children: [
|
|
27074
|
+
/* @__PURE__ */ jsx26(
|
|
27059
27075
|
Checkbox,
|
|
27060
27076
|
{
|
|
27061
27077
|
id: props.name || "checkbox",
|
|
@@ -27064,21 +27080,21 @@ var CheckboxInput = ({ className, style, ...props }) => {
|
|
|
27064
27080
|
disabled: !isEditable || isDisabled
|
|
27065
27081
|
}
|
|
27066
27082
|
),
|
|
27067
|
-
/* @__PURE__ */
|
|
27083
|
+
/* @__PURE__ */ jsx26(Label2, { htmlFor: props.name || "checkbox", children: text })
|
|
27068
27084
|
] }) }),
|
|
27069
|
-
props.errorMessage && /* @__PURE__ */
|
|
27085
|
+
props.errorMessage && /* @__PURE__ */ jsx26("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27070
27086
|
] });
|
|
27071
27087
|
};
|
|
27072
27088
|
var Checkbox_default = CheckboxInput;
|
|
27073
27089
|
|
|
27074
27090
|
// src/components/ui/radio-group.tsx
|
|
27075
27091
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
27076
|
-
import { jsx as
|
|
27092
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
27077
27093
|
function RadioGroup2({
|
|
27078
27094
|
className,
|
|
27079
27095
|
...props
|
|
27080
27096
|
}) {
|
|
27081
|
-
return /* @__PURE__ */
|
|
27097
|
+
return /* @__PURE__ */ jsx27(
|
|
27082
27098
|
RadioGroupPrimitive.Root,
|
|
27083
27099
|
{
|
|
27084
27100
|
"data-slot": "radio-group",
|
|
@@ -27091,7 +27107,7 @@ function RadioGroupItem({
|
|
|
27091
27107
|
className,
|
|
27092
27108
|
...props
|
|
27093
27109
|
}) {
|
|
27094
|
-
return /* @__PURE__ */
|
|
27110
|
+
return /* @__PURE__ */ jsx27(
|
|
27095
27111
|
RadioGroupPrimitive.Item,
|
|
27096
27112
|
{
|
|
27097
27113
|
"data-slot": "radio-group-item",
|
|
@@ -27100,12 +27116,12 @@ function RadioGroupItem({
|
|
|
27100
27116
|
className
|
|
27101
27117
|
),
|
|
27102
27118
|
...props,
|
|
27103
|
-
children: /* @__PURE__ */
|
|
27119
|
+
children: /* @__PURE__ */ jsx27(
|
|
27104
27120
|
RadioGroupPrimitive.Indicator,
|
|
27105
27121
|
{
|
|
27106
27122
|
"data-slot": "radio-group-indicator",
|
|
27107
27123
|
className: "relative flex items-center justify-center",
|
|
27108
|
-
children: /* @__PURE__ */
|
|
27124
|
+
children: /* @__PURE__ */ jsx27(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
27109
27125
|
}
|
|
27110
27126
|
)
|
|
27111
27127
|
}
|
|
@@ -27113,7 +27129,7 @@ function RadioGroupItem({
|
|
|
27113
27129
|
}
|
|
27114
27130
|
|
|
27115
27131
|
// src/components/Inputs/RadioInput/RadioInput.tsx
|
|
27116
|
-
import { Fragment as
|
|
27132
|
+
import { Fragment as Fragment9, jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
27117
27133
|
var RadioInput = ({
|
|
27118
27134
|
className,
|
|
27119
27135
|
style,
|
|
@@ -27132,29 +27148,29 @@ var RadioInput = ({
|
|
|
27132
27148
|
onChange?.(value);
|
|
27133
27149
|
};
|
|
27134
27150
|
const resolvedDefaultValue = (typeof defaultValue === "string" ? defaultValue : void 0) ?? options[0]?.value;
|
|
27135
|
-
return /* @__PURE__ */ jsxs13(
|
|
27136
|
-
/* @__PURE__ */
|
|
27151
|
+
return /* @__PURE__ */ jsxs13(Fragment9, { children: [
|
|
27152
|
+
/* @__PURE__ */ jsx28("div", { className, style, children: /* @__PURE__ */ jsxs13(
|
|
27137
27153
|
RadioGroup2,
|
|
27138
27154
|
{
|
|
27139
27155
|
defaultValue: resolvedDefaultValue,
|
|
27140
27156
|
onValueChange: handleChange,
|
|
27141
27157
|
children: [
|
|
27142
|
-
options.length === 0 && /* @__PURE__ */
|
|
27158
|
+
options.length === 0 && /* @__PURE__ */ jsx28("div", { className: "text-sm text-gray-500", children: "No options available" }),
|
|
27143
27159
|
options.map((item) => /* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-2", children: [
|
|
27144
|
-
/* @__PURE__ */
|
|
27145
|
-
/* @__PURE__ */
|
|
27160
|
+
/* @__PURE__ */ jsx28(RadioGroupItem, { value: item.value, id: `radio-${item.value}` }),
|
|
27161
|
+
/* @__PURE__ */ jsx28(Label2, { htmlFor: `radio-${item.value}`, children: item.label })
|
|
27146
27162
|
] }, item.value))
|
|
27147
27163
|
]
|
|
27148
27164
|
}
|
|
27149
27165
|
) }),
|
|
27150
|
-
props.errorMessage && /* @__PURE__ */
|
|
27166
|
+
props.errorMessage && /* @__PURE__ */ jsx28("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27151
27167
|
] });
|
|
27152
27168
|
};
|
|
27153
27169
|
var RadioInput_default = RadioInput;
|
|
27154
27170
|
|
|
27155
27171
|
// src/components/Inputs/MultiCheckbox/MultiCheckbox.tsx
|
|
27156
27172
|
import { useCallback, useState as useState2 } from "react";
|
|
27157
|
-
import { jsx as
|
|
27173
|
+
import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
27158
27174
|
var MultiCheckbox = ({
|
|
27159
27175
|
className,
|
|
27160
27176
|
style,
|
|
@@ -27187,9 +27203,9 @@ var MultiCheckbox = ({
|
|
|
27187
27203
|
className: cn("flex flex-col gap-3", className),
|
|
27188
27204
|
style,
|
|
27189
27205
|
children: [
|
|
27190
|
-
options.length === 0 && /* @__PURE__ */
|
|
27206
|
+
options.length === 0 && /* @__PURE__ */ jsx29("p", { className: "text-sm text-gray-500", children: "No options available." }),
|
|
27191
27207
|
options.map((opt) => /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-2", children: [
|
|
27192
|
-
/* @__PURE__ */
|
|
27208
|
+
/* @__PURE__ */ jsx29(
|
|
27193
27209
|
Checkbox,
|
|
27194
27210
|
{
|
|
27195
27211
|
id: opt.value,
|
|
@@ -27198,7 +27214,7 @@ var MultiCheckbox = ({
|
|
|
27198
27214
|
disabled: !isEditable || isDisabled
|
|
27199
27215
|
}
|
|
27200
27216
|
),
|
|
27201
|
-
/* @__PURE__ */
|
|
27217
|
+
/* @__PURE__ */ jsx29(Label2, { htmlFor: opt.value, children: opt.label })
|
|
27202
27218
|
] }, opt.value))
|
|
27203
27219
|
]
|
|
27204
27220
|
}
|
|
@@ -27209,7 +27225,7 @@ var MultiCheckbox_default = MultiCheckbox;
|
|
|
27209
27225
|
// src/components/Global/TinyMceEditor.tsx
|
|
27210
27226
|
import { useMemo, useRef } from "react";
|
|
27211
27227
|
import { Editor } from "@tinymce/tinymce-react";
|
|
27212
|
-
import { jsx as
|
|
27228
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
27213
27229
|
function MyEditor({
|
|
27214
27230
|
value,
|
|
27215
27231
|
onChange,
|
|
@@ -27234,7 +27250,7 @@ function MyEditor({
|
|
|
27234
27250
|
}
|
|
27235
27251
|
return toolbar;
|
|
27236
27252
|
}, [isDefault]);
|
|
27237
|
-
return /* @__PURE__ */
|
|
27253
|
+
return /* @__PURE__ */ jsx30(
|
|
27238
27254
|
Editor,
|
|
27239
27255
|
{
|
|
27240
27256
|
apiKey: process.env.NEXT_PUBLIC_TINYMCE_API_KEY,
|
|
@@ -27278,7 +27294,7 @@ function MyEditor({
|
|
|
27278
27294
|
}
|
|
27279
27295
|
|
|
27280
27296
|
// src/components/Inputs/RichText/RichText.tsx
|
|
27281
|
-
import { jsx as
|
|
27297
|
+
import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
27282
27298
|
function RichText({ className, style, ...props }) {
|
|
27283
27299
|
return /* @__PURE__ */ jsxs15(
|
|
27284
27300
|
"div",
|
|
@@ -27289,8 +27305,8 @@ function RichText({ className, style, ...props }) {
|
|
|
27289
27305
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
27290
27306
|
},
|
|
27291
27307
|
children: [
|
|
27292
|
-
/* @__PURE__ */
|
|
27293
|
-
props.errorMessage && /* @__PURE__ */
|
|
27308
|
+
/* @__PURE__ */ jsx31(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value, isDefault: true }),
|
|
27309
|
+
props.errorMessage && /* @__PURE__ */ jsx31("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27294
27310
|
]
|
|
27295
27311
|
}
|
|
27296
27312
|
);
|
|
@@ -27298,16 +27314,16 @@ function RichText({ className, style, ...props }) {
|
|
|
27298
27314
|
|
|
27299
27315
|
// src/components/ui/select.tsx
|
|
27300
27316
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
27301
|
-
import { jsx as
|
|
27317
|
+
import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
27302
27318
|
function Select({
|
|
27303
27319
|
...props
|
|
27304
27320
|
}) {
|
|
27305
|
-
return /* @__PURE__ */
|
|
27321
|
+
return /* @__PURE__ */ jsx32(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
27306
27322
|
}
|
|
27307
27323
|
function SelectValue({
|
|
27308
27324
|
...props
|
|
27309
27325
|
}) {
|
|
27310
|
-
return /* @__PURE__ */
|
|
27326
|
+
return /* @__PURE__ */ jsx32(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
27311
27327
|
}
|
|
27312
27328
|
function SelectTrigger({
|
|
27313
27329
|
className,
|
|
@@ -27327,7 +27343,7 @@ function SelectTrigger({
|
|
|
27327
27343
|
...props,
|
|
27328
27344
|
children: [
|
|
27329
27345
|
children,
|
|
27330
|
-
/* @__PURE__ */
|
|
27346
|
+
/* @__PURE__ */ jsx32(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx32(ChevronDown, { className: "size-4 opacity-50" }) })
|
|
27331
27347
|
]
|
|
27332
27348
|
}
|
|
27333
27349
|
);
|
|
@@ -27338,7 +27354,7 @@ function SelectContent({
|
|
|
27338
27354
|
position = "popper",
|
|
27339
27355
|
...props
|
|
27340
27356
|
}) {
|
|
27341
|
-
return /* @__PURE__ */
|
|
27357
|
+
return /* @__PURE__ */ jsx32(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs16(
|
|
27342
27358
|
SelectPrimitive.Content,
|
|
27343
27359
|
{
|
|
27344
27360
|
"data-slot": "select-content",
|
|
@@ -27350,8 +27366,8 @@ function SelectContent({
|
|
|
27350
27366
|
position,
|
|
27351
27367
|
...props,
|
|
27352
27368
|
children: [
|
|
27353
|
-
/* @__PURE__ */
|
|
27354
|
-
/* @__PURE__ */
|
|
27369
|
+
/* @__PURE__ */ jsx32(SelectScrollUpButton, {}),
|
|
27370
|
+
/* @__PURE__ */ jsx32(
|
|
27355
27371
|
SelectPrimitive.Viewport,
|
|
27356
27372
|
{
|
|
27357
27373
|
className: cn(
|
|
@@ -27361,7 +27377,7 @@ function SelectContent({
|
|
|
27361
27377
|
children
|
|
27362
27378
|
}
|
|
27363
27379
|
),
|
|
27364
|
-
/* @__PURE__ */
|
|
27380
|
+
/* @__PURE__ */ jsx32(SelectScrollDownButton, {})
|
|
27365
27381
|
]
|
|
27366
27382
|
}
|
|
27367
27383
|
) });
|
|
@@ -27381,8 +27397,8 @@ function SelectItem({
|
|
|
27381
27397
|
),
|
|
27382
27398
|
...props,
|
|
27383
27399
|
children: [
|
|
27384
|
-
/* @__PURE__ */
|
|
27385
|
-
/* @__PURE__ */
|
|
27400
|
+
/* @__PURE__ */ jsx32("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx32(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx32(Check, { className: "size-4" }) }) }),
|
|
27401
|
+
/* @__PURE__ */ jsx32(SelectPrimitive.ItemText, { children })
|
|
27386
27402
|
]
|
|
27387
27403
|
}
|
|
27388
27404
|
);
|
|
@@ -27391,7 +27407,7 @@ function SelectScrollUpButton({
|
|
|
27391
27407
|
className,
|
|
27392
27408
|
...props
|
|
27393
27409
|
}) {
|
|
27394
|
-
return /* @__PURE__ */
|
|
27410
|
+
return /* @__PURE__ */ jsx32(
|
|
27395
27411
|
SelectPrimitive.ScrollUpButton,
|
|
27396
27412
|
{
|
|
27397
27413
|
"data-slot": "select-scroll-up-button",
|
|
@@ -27400,7 +27416,7 @@ function SelectScrollUpButton({
|
|
|
27400
27416
|
className
|
|
27401
27417
|
),
|
|
27402
27418
|
...props,
|
|
27403
|
-
children: /* @__PURE__ */
|
|
27419
|
+
children: /* @__PURE__ */ jsx32(ChevronUp, { className: "size-4" })
|
|
27404
27420
|
}
|
|
27405
27421
|
);
|
|
27406
27422
|
}
|
|
@@ -27408,7 +27424,7 @@ function SelectScrollDownButton({
|
|
|
27408
27424
|
className,
|
|
27409
27425
|
...props
|
|
27410
27426
|
}) {
|
|
27411
|
-
return /* @__PURE__ */
|
|
27427
|
+
return /* @__PURE__ */ jsx32(
|
|
27412
27428
|
SelectPrimitive.ScrollDownButton,
|
|
27413
27429
|
{
|
|
27414
27430
|
"data-slot": "select-scroll-down-button",
|
|
@@ -27417,13 +27433,13 @@ function SelectScrollDownButton({
|
|
|
27417
27433
|
className
|
|
27418
27434
|
),
|
|
27419
27435
|
...props,
|
|
27420
|
-
children: /* @__PURE__ */
|
|
27436
|
+
children: /* @__PURE__ */ jsx32(ChevronDown, { className: "size-4" })
|
|
27421
27437
|
}
|
|
27422
27438
|
);
|
|
27423
27439
|
}
|
|
27424
27440
|
|
|
27425
27441
|
// src/components/Inputs/Dropdown/Dropdown.tsx
|
|
27426
|
-
import { Fragment as
|
|
27442
|
+
import { Fragment as Fragment10, jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
27427
27443
|
var Dropdown = ({ className, style, ...props }) => {
|
|
27428
27444
|
const list = props.data || [];
|
|
27429
27445
|
const placeholder = props.placeholder ? props.placeholder : "Placeholder text";
|
|
@@ -27439,9 +27455,9 @@ var Dropdown = ({ className, style, ...props }) => {
|
|
|
27439
27455
|
value: item[dataKey],
|
|
27440
27456
|
label: item[dataLabel]
|
|
27441
27457
|
}));
|
|
27442
|
-
return /* @__PURE__ */ jsxs17(
|
|
27458
|
+
return /* @__PURE__ */ jsxs17(Fragment10, { children: [
|
|
27443
27459
|
/* @__PURE__ */ jsxs17(Select, { name: props.name, value: props.value, onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
|
|
27444
|
-
/* @__PURE__ */
|
|
27460
|
+
/* @__PURE__ */ jsx33(
|
|
27445
27461
|
SelectTrigger,
|
|
27446
27462
|
{
|
|
27447
27463
|
id: props.name || "select-field",
|
|
@@ -27451,24 +27467,24 @@ var Dropdown = ({ className, style, ...props }) => {
|
|
|
27451
27467
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
27452
27468
|
},
|
|
27453
27469
|
"aria-readonly": isReadonly,
|
|
27454
|
-
children: /* @__PURE__ */
|
|
27470
|
+
children: /* @__PURE__ */ jsx33(SelectValue, { placeholder })
|
|
27455
27471
|
}
|
|
27456
27472
|
),
|
|
27457
|
-
/* @__PURE__ */
|
|
27473
|
+
/* @__PURE__ */ jsx33(SelectContent, { children: options.map((opt) => /* @__PURE__ */ jsx33(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
27458
27474
|
] }),
|
|
27459
|
-
props.errorMessage && /* @__PURE__ */
|
|
27475
|
+
props.errorMessage && /* @__PURE__ */ jsx33("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27460
27476
|
] });
|
|
27461
27477
|
};
|
|
27462
27478
|
var Dropdown_default = Dropdown;
|
|
27463
27479
|
|
|
27464
27480
|
// src/components/ui/switch.tsx
|
|
27465
27481
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
27466
|
-
import { jsx as
|
|
27482
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
27467
27483
|
function Switch({
|
|
27468
27484
|
className,
|
|
27469
27485
|
...props
|
|
27470
27486
|
}) {
|
|
27471
|
-
return /* @__PURE__ */
|
|
27487
|
+
return /* @__PURE__ */ jsx34(
|
|
27472
27488
|
SwitchPrimitive.Root,
|
|
27473
27489
|
{
|
|
27474
27490
|
"data-slot": "switch",
|
|
@@ -27477,7 +27493,7 @@ function Switch({
|
|
|
27477
27493
|
className
|
|
27478
27494
|
),
|
|
27479
27495
|
...props,
|
|
27480
|
-
children: /* @__PURE__ */
|
|
27496
|
+
children: /* @__PURE__ */ jsx34(
|
|
27481
27497
|
SwitchPrimitive.Thumb,
|
|
27482
27498
|
{
|
|
27483
27499
|
"data-slot": "switch-thumb",
|
|
@@ -27491,16 +27507,16 @@ function Switch({
|
|
|
27491
27507
|
}
|
|
27492
27508
|
|
|
27493
27509
|
// src/components/Inputs/SwitchToggle/SwitchToggle.tsx
|
|
27494
|
-
import { Fragment as
|
|
27510
|
+
import { Fragment as Fragment11, jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
27495
27511
|
var SwitchToggle = ({ className, style, ...props }) => {
|
|
27496
27512
|
const isEditable = props.isEditable ?? true;
|
|
27497
27513
|
const isDisabled = props.isDisabled ?? false;
|
|
27498
27514
|
const handleChange = (value) => {
|
|
27499
27515
|
props.onChange?.(value);
|
|
27500
27516
|
};
|
|
27501
|
-
return /* @__PURE__ */ jsxs18(
|
|
27502
|
-
/* @__PURE__ */
|
|
27503
|
-
/* @__PURE__ */
|
|
27517
|
+
return /* @__PURE__ */ jsxs18(Fragment11, { children: [
|
|
27518
|
+
/* @__PURE__ */ jsx35("div", { className, style, children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center space-x-2 mb-2", children: [
|
|
27519
|
+
/* @__PURE__ */ jsx35(
|
|
27504
27520
|
Switch,
|
|
27505
27521
|
{
|
|
27506
27522
|
id: props.name || "switch",
|
|
@@ -27509,9 +27525,9 @@ var SwitchToggle = ({ className, style, ...props }) => {
|
|
|
27509
27525
|
disabled: isDisabled || !isEditable
|
|
27510
27526
|
}
|
|
27511
27527
|
),
|
|
27512
|
-
/* @__PURE__ */
|
|
27528
|
+
/* @__PURE__ */ jsx35(Label2, { htmlFor: props.name || "switch", children: props.text })
|
|
27513
27529
|
] }) }),
|
|
27514
|
-
props.errorMessage && /* @__PURE__ */
|
|
27530
|
+
props.errorMessage && /* @__PURE__ */ jsx35("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27515
27531
|
] });
|
|
27516
27532
|
};
|
|
27517
27533
|
var SwitchToggle_default = SwitchToggle;
|
|
@@ -27519,7 +27535,7 @@ var SwitchToggle_default = SwitchToggle;
|
|
|
27519
27535
|
// src/components/Inputs/PhoneInput/PhoneInput.tsx
|
|
27520
27536
|
import { PhoneInput as PhoneInputField } from "react-international-phone";
|
|
27521
27537
|
import "react-international-phone/style.css";
|
|
27522
|
-
import { Fragment as
|
|
27538
|
+
import { Fragment as Fragment12, jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
27523
27539
|
var PhoneInput = ({ className, style, ...props }) => {
|
|
27524
27540
|
const placeholder = props.placeholder ?? "Enter phone number";
|
|
27525
27541
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27527,8 +27543,8 @@ var PhoneInput = ({ className, style, ...props }) => {
|
|
|
27527
27543
|
const handleChange = (val) => {
|
|
27528
27544
|
props.onChange?.(val);
|
|
27529
27545
|
};
|
|
27530
|
-
return /* @__PURE__ */ jsxs19(
|
|
27531
|
-
/* @__PURE__ */
|
|
27546
|
+
return /* @__PURE__ */ jsxs19(Fragment12, { children: [
|
|
27547
|
+
/* @__PURE__ */ jsx36(
|
|
27532
27548
|
PhoneInputField,
|
|
27533
27549
|
{
|
|
27534
27550
|
defaultCountry: "in",
|
|
@@ -27547,13 +27563,13 @@ var PhoneInput = ({ className, style, ...props }) => {
|
|
|
27547
27563
|
disabled: isDisabled || !isEditable
|
|
27548
27564
|
}
|
|
27549
27565
|
),
|
|
27550
|
-
props.errorMessage && /* @__PURE__ */
|
|
27566
|
+
props.errorMessage && /* @__PURE__ */ jsx36("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27551
27567
|
] });
|
|
27552
27568
|
};
|
|
27553
27569
|
var PhoneInput_default = PhoneInput;
|
|
27554
27570
|
|
|
27555
27571
|
// src/components/Inputs/SearchInput/SearchInput.tsx
|
|
27556
|
-
import { Fragment as
|
|
27572
|
+
import { Fragment as Fragment13, jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
27557
27573
|
var SearchInput = ({ className, style, ...props }) => {
|
|
27558
27574
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27559
27575
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27563,10 +27579,10 @@ var SearchInput = ({ className, style, ...props }) => {
|
|
|
27563
27579
|
const handleChange = (e) => {
|
|
27564
27580
|
props.onChange?.(e);
|
|
27565
27581
|
};
|
|
27566
|
-
return /* @__PURE__ */ jsxs20(
|
|
27582
|
+
return /* @__PURE__ */ jsxs20(Fragment13, { children: [
|
|
27567
27583
|
/* @__PURE__ */ jsxs20("div", { className: "flex justify-start items-center relative", children: [
|
|
27568
|
-
/* @__PURE__ */
|
|
27569
|
-
/* @__PURE__ */
|
|
27584
|
+
/* @__PURE__ */ jsx37(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
27585
|
+
/* @__PURE__ */ jsx37(
|
|
27570
27586
|
Input,
|
|
27571
27587
|
{
|
|
27572
27588
|
type: "text",
|
|
@@ -27586,17 +27602,17 @@ var SearchInput = ({ className, style, ...props }) => {
|
|
|
27586
27602
|
}
|
|
27587
27603
|
)
|
|
27588
27604
|
] }),
|
|
27589
|
-
props.errorMessage && /* @__PURE__ */
|
|
27605
|
+
props.errorMessage && /* @__PURE__ */ jsx37("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27590
27606
|
] });
|
|
27591
27607
|
};
|
|
27592
27608
|
var SearchInput_default = SearchInput;
|
|
27593
27609
|
|
|
27594
27610
|
// src/components/Inputs/FileInput/FileInput.tsx
|
|
27595
|
-
import { jsx as
|
|
27611
|
+
import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
27596
27612
|
var FileInput2 = ({ className, style, ...props }) => {
|
|
27597
27613
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27598
27614
|
return /* @__PURE__ */ jsxs21("div", { className: "d-flex items-center relative align-middle", children: [
|
|
27599
|
-
/* @__PURE__ */
|
|
27615
|
+
/* @__PURE__ */ jsx38(
|
|
27600
27616
|
Input,
|
|
27601
27617
|
{
|
|
27602
27618
|
type: "file",
|
|
@@ -27615,13 +27631,13 @@ var FileInput2 = ({ className, style, ...props }) => {
|
|
|
27615
27631
|
}
|
|
27616
27632
|
}
|
|
27617
27633
|
),
|
|
27618
|
-
props.errorMessage && /* @__PURE__ */
|
|
27634
|
+
props.errorMessage && /* @__PURE__ */ jsx38("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27619
27635
|
] });
|
|
27620
27636
|
};
|
|
27621
27637
|
var FileInput_default = FileInput2;
|
|
27622
27638
|
|
|
27623
27639
|
// src/components/Inputs/DatePicker/DatePicker.tsx
|
|
27624
|
-
import { Fragment as
|
|
27640
|
+
import { Fragment as Fragment14, jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
27625
27641
|
function DatePicker({ className, style, ...props }) {
|
|
27626
27642
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27627
27643
|
const minimumDate = props.minimumDate ?? "none";
|
|
@@ -27649,10 +27665,10 @@ function DatePicker({ className, style, ...props }) {
|
|
|
27649
27665
|
const handleChange = (e) => {
|
|
27650
27666
|
props.onChange?.(e);
|
|
27651
27667
|
};
|
|
27652
|
-
return /* @__PURE__ */ jsxs22(
|
|
27668
|
+
return /* @__PURE__ */ jsxs22(Fragment14, { children: [
|
|
27653
27669
|
/* @__PURE__ */ jsxs22("div", { className: "flex justify-start items-center relative", children: [
|
|
27654
|
-
/* @__PURE__ */
|
|
27655
|
-
/* @__PURE__ */
|
|
27670
|
+
/* @__PURE__ */ jsx39(Calendar, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
27671
|
+
/* @__PURE__ */ jsx39(
|
|
27656
27672
|
Input,
|
|
27657
27673
|
{
|
|
27658
27674
|
type: "date",
|
|
@@ -27678,7 +27694,7 @@ function DatePicker({ className, style, ...props }) {
|
|
|
27678
27694
|
}
|
|
27679
27695
|
)
|
|
27680
27696
|
] }),
|
|
27681
|
-
props.errorMessage && /* @__PURE__ */
|
|
27697
|
+
props.errorMessage && /* @__PURE__ */ jsx39("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27682
27698
|
] });
|
|
27683
27699
|
}
|
|
27684
27700
|
|
|
@@ -27689,7 +27705,7 @@ import { addDays, format } from "date-fns";
|
|
|
27689
27705
|
// src/components/ui/calendar.tsx
|
|
27690
27706
|
import * as React3 from "react";
|
|
27691
27707
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
27692
|
-
import { jsx as
|
|
27708
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
27693
27709
|
function Calendar2({
|
|
27694
27710
|
className,
|
|
27695
27711
|
classNames,
|
|
@@ -27701,7 +27717,7 @@ function Calendar2({
|
|
|
27701
27717
|
...props
|
|
27702
27718
|
}) {
|
|
27703
27719
|
const defaultClassNames = getDefaultClassNames();
|
|
27704
|
-
return /* @__PURE__ */
|
|
27720
|
+
return /* @__PURE__ */ jsx40(
|
|
27705
27721
|
DayPicker,
|
|
27706
27722
|
{
|
|
27707
27723
|
showOutsideDays,
|
|
@@ -27800,7 +27816,7 @@ function Calendar2({
|
|
|
27800
27816
|
},
|
|
27801
27817
|
components: {
|
|
27802
27818
|
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
27803
|
-
return /* @__PURE__ */
|
|
27819
|
+
return /* @__PURE__ */ jsx40(
|
|
27804
27820
|
"div",
|
|
27805
27821
|
{
|
|
27806
27822
|
"data-slot": "calendar",
|
|
@@ -27812,10 +27828,10 @@ function Calendar2({
|
|
|
27812
27828
|
},
|
|
27813
27829
|
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
27814
27830
|
if (orientation === "left") {
|
|
27815
|
-
return /* @__PURE__ */
|
|
27831
|
+
return /* @__PURE__ */ jsx40(ChevronLeft, { className: cn("size-4", className2), ...props2 });
|
|
27816
27832
|
}
|
|
27817
27833
|
if (orientation === "right") {
|
|
27818
|
-
return /* @__PURE__ */
|
|
27834
|
+
return /* @__PURE__ */ jsx40(
|
|
27819
27835
|
ChevronRight,
|
|
27820
27836
|
{
|
|
27821
27837
|
className: cn("size-4", className2),
|
|
@@ -27823,11 +27839,11 @@ function Calendar2({
|
|
|
27823
27839
|
}
|
|
27824
27840
|
);
|
|
27825
27841
|
}
|
|
27826
|
-
return /* @__PURE__ */
|
|
27842
|
+
return /* @__PURE__ */ jsx40(ChevronDown, { className: cn("size-4", className2), ...props2 });
|
|
27827
27843
|
},
|
|
27828
27844
|
DayButton: CalendarDayButton,
|
|
27829
27845
|
WeekNumber: ({ children, ...props2 }) => {
|
|
27830
|
-
return /* @__PURE__ */
|
|
27846
|
+
return /* @__PURE__ */ jsx40("td", { ...props2, children: /* @__PURE__ */ jsx40("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
|
|
27831
27847
|
},
|
|
27832
27848
|
...components
|
|
27833
27849
|
},
|
|
@@ -27846,7 +27862,7 @@ function CalendarDayButton({
|
|
|
27846
27862
|
React3.useEffect(() => {
|
|
27847
27863
|
if (modifiers.focused) ref.current?.focus();
|
|
27848
27864
|
}, [modifiers.focused]);
|
|
27849
|
-
return /* @__PURE__ */
|
|
27865
|
+
return /* @__PURE__ */ jsx40(
|
|
27850
27866
|
Button,
|
|
27851
27867
|
{
|
|
27852
27868
|
ref,
|
|
@@ -27869,16 +27885,16 @@ function CalendarDayButton({
|
|
|
27869
27885
|
|
|
27870
27886
|
// src/components/ui/popover.tsx
|
|
27871
27887
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
27872
|
-
import { jsx as
|
|
27888
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
27873
27889
|
function Popover({
|
|
27874
27890
|
...props
|
|
27875
27891
|
}) {
|
|
27876
|
-
return /* @__PURE__ */
|
|
27892
|
+
return /* @__PURE__ */ jsx41(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
27877
27893
|
}
|
|
27878
27894
|
function PopoverTrigger({
|
|
27879
27895
|
...props
|
|
27880
27896
|
}) {
|
|
27881
|
-
return /* @__PURE__ */
|
|
27897
|
+
return /* @__PURE__ */ jsx41(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
27882
27898
|
}
|
|
27883
27899
|
function PopoverContent({
|
|
27884
27900
|
className,
|
|
@@ -27886,7 +27902,7 @@ function PopoverContent({
|
|
|
27886
27902
|
sideOffset = 4,
|
|
27887
27903
|
...props
|
|
27888
27904
|
}) {
|
|
27889
|
-
return /* @__PURE__ */
|
|
27905
|
+
return /* @__PURE__ */ jsx41(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx41(
|
|
27890
27906
|
PopoverPrimitive.Content,
|
|
27891
27907
|
{
|
|
27892
27908
|
"data-slot": "popover-content",
|
|
@@ -27902,7 +27918,7 @@ function PopoverContent({
|
|
|
27902
27918
|
}
|
|
27903
27919
|
|
|
27904
27920
|
// src/components/Inputs/DateRange/DateRange.tsx
|
|
27905
|
-
import { Fragment as
|
|
27921
|
+
import { Fragment as Fragment15, jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
27906
27922
|
var DateRange = ({ className, style, ...props }) => {
|
|
27907
27923
|
const isDateRange = (val) => !!val && val.from instanceof Date;
|
|
27908
27924
|
const [date, setDate] = React4.useState(
|
|
@@ -27917,9 +27933,9 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
27917
27933
|
props.onChange?.(value);
|
|
27918
27934
|
}
|
|
27919
27935
|
};
|
|
27920
|
-
return /* @__PURE__ */ jsxs23(
|
|
27921
|
-
/* @__PURE__ */
|
|
27922
|
-
/* @__PURE__ */
|
|
27936
|
+
return /* @__PURE__ */ jsxs23(Fragment15, { children: [
|
|
27937
|
+
/* @__PURE__ */ jsx42("div", { className, style, children: /* @__PURE__ */ jsxs23(Popover, { children: [
|
|
27938
|
+
/* @__PURE__ */ jsx42(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx42(
|
|
27923
27939
|
Button,
|
|
27924
27940
|
{
|
|
27925
27941
|
id: "date",
|
|
@@ -27928,15 +27944,15 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
27928
27944
|
"w-full justify-start text-left font-normal text-[11px] border-[#BDBDBD]",
|
|
27929
27945
|
!date && "text-muted-foreground"
|
|
27930
27946
|
),
|
|
27931
|
-
children: date?.from ? date.to ? /* @__PURE__ */ jsxs23(
|
|
27947
|
+
children: date?.from ? date.to ? /* @__PURE__ */ jsxs23(Fragment15, { children: [
|
|
27932
27948
|
format(date.from, "LLL dd, y"),
|
|
27933
27949
|
" -",
|
|
27934
27950
|
" ",
|
|
27935
27951
|
format(date.to, "LLL dd, y")
|
|
27936
|
-
] }) : format(date.from, "LLL dd, y") : /* @__PURE__ */
|
|
27952
|
+
] }) : format(date.from, "LLL dd, y") : /* @__PURE__ */ jsx42("span", { children: "Pick a date range" })
|
|
27937
27953
|
}
|
|
27938
27954
|
) }),
|
|
27939
|
-
/* @__PURE__ */
|
|
27955
|
+
/* @__PURE__ */ jsx42(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsx42(
|
|
27940
27956
|
Calendar2,
|
|
27941
27957
|
{
|
|
27942
27958
|
mode: "range",
|
|
@@ -27947,13 +27963,13 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
27947
27963
|
}
|
|
27948
27964
|
) })
|
|
27949
27965
|
] }) }),
|
|
27950
|
-
props.errorMessage && /* @__PURE__ */
|
|
27966
|
+
props.errorMessage && /* @__PURE__ */ jsx42("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27951
27967
|
] });
|
|
27952
27968
|
};
|
|
27953
27969
|
var DateRange_default = DateRange;
|
|
27954
27970
|
|
|
27955
27971
|
// src/components/Inputs/TextInputGroup/TextInputGroup.tsx
|
|
27956
|
-
import { Fragment as
|
|
27972
|
+
import { Fragment as Fragment16, jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
27957
27973
|
var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
27958
27974
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27959
27975
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27963,7 +27979,7 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
27963
27979
|
const handleChange = (e) => {
|
|
27964
27980
|
props.onChange?.(e);
|
|
27965
27981
|
};
|
|
27966
|
-
return /* @__PURE__ */ jsxs24(
|
|
27982
|
+
return /* @__PURE__ */ jsxs24(Fragment16, { children: [
|
|
27967
27983
|
/* @__PURE__ */ jsxs24(
|
|
27968
27984
|
"div",
|
|
27969
27985
|
{
|
|
@@ -27974,8 +27990,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
27974
27990
|
props.errorMessage ? "border-red-500" : ""
|
|
27975
27991
|
),
|
|
27976
27992
|
children: [
|
|
27977
|
-
prepend && /* @__PURE__ */
|
|
27978
|
-
/* @__PURE__ */
|
|
27993
|
+
prepend && /* @__PURE__ */ jsx43("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-l-md", children: prepend }),
|
|
27994
|
+
/* @__PURE__ */ jsx43(
|
|
27979
27995
|
Input,
|
|
27980
27996
|
{
|
|
27981
27997
|
id: props.name || "prepend-input",
|
|
@@ -27997,11 +28013,11 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
27997
28013
|
readOnly: isReadonly
|
|
27998
28014
|
}
|
|
27999
28015
|
),
|
|
28000
|
-
append && /* @__PURE__ */
|
|
28016
|
+
append && /* @__PURE__ */ jsx43("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-r-md", children: append })
|
|
28001
28017
|
]
|
|
28002
28018
|
}
|
|
28003
28019
|
),
|
|
28004
|
-
props.errorMessage && /* @__PURE__ */
|
|
28020
|
+
props.errorMessage && /* @__PURE__ */ jsx43("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
28005
28021
|
] });
|
|
28006
28022
|
};
|
|
28007
28023
|
var TextInputGroup_default = TextInputGroup;
|
|
@@ -28017,14 +28033,14 @@ import {
|
|
|
28017
28033
|
} from "@tanstack/react-table";
|
|
28018
28034
|
|
|
28019
28035
|
// src/components/ui/table.tsx
|
|
28020
|
-
import { jsx as
|
|
28036
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
28021
28037
|
function Table3({ className, ...props }) {
|
|
28022
|
-
return /* @__PURE__ */
|
|
28038
|
+
return /* @__PURE__ */ jsx44(
|
|
28023
28039
|
"div",
|
|
28024
28040
|
{
|
|
28025
28041
|
"data-slot": "table-container",
|
|
28026
28042
|
className: "relative w-full overflow-x-auto rounded-md border border-gray-200 bg-white",
|
|
28027
|
-
children: /* @__PURE__ */
|
|
28043
|
+
children: /* @__PURE__ */ jsx44(
|
|
28028
28044
|
"table",
|
|
28029
28045
|
{
|
|
28030
28046
|
"data-slot": "table",
|
|
@@ -28036,7 +28052,7 @@ function Table3({ className, ...props }) {
|
|
|
28036
28052
|
);
|
|
28037
28053
|
}
|
|
28038
28054
|
function TableHeader({ className, ...props }) {
|
|
28039
|
-
return /* @__PURE__ */
|
|
28055
|
+
return /* @__PURE__ */ jsx44(
|
|
28040
28056
|
"thead",
|
|
28041
28057
|
{
|
|
28042
28058
|
"data-slot": "table-header",
|
|
@@ -28049,7 +28065,7 @@ function TableHeader({ className, ...props }) {
|
|
|
28049
28065
|
);
|
|
28050
28066
|
}
|
|
28051
28067
|
function TableBody({ className, ...props }) {
|
|
28052
|
-
return /* @__PURE__ */
|
|
28068
|
+
return /* @__PURE__ */ jsx44(
|
|
28053
28069
|
"tbody",
|
|
28054
28070
|
{
|
|
28055
28071
|
"data-slot": "table-body",
|
|
@@ -28062,7 +28078,7 @@ function TableBody({ className, ...props }) {
|
|
|
28062
28078
|
);
|
|
28063
28079
|
}
|
|
28064
28080
|
function TableRow({ className, ...props }) {
|
|
28065
|
-
return /* @__PURE__ */
|
|
28081
|
+
return /* @__PURE__ */ jsx44(
|
|
28066
28082
|
"tr",
|
|
28067
28083
|
{
|
|
28068
28084
|
"data-slot": "table-row",
|
|
@@ -28075,7 +28091,7 @@ function TableRow({ className, ...props }) {
|
|
|
28075
28091
|
);
|
|
28076
28092
|
}
|
|
28077
28093
|
function TableHead({ className, ...props }) {
|
|
28078
|
-
return /* @__PURE__ */
|
|
28094
|
+
return /* @__PURE__ */ jsx44(
|
|
28079
28095
|
"th",
|
|
28080
28096
|
{
|
|
28081
28097
|
"data-slot": "table-head",
|
|
@@ -28088,7 +28104,7 @@ function TableHead({ className, ...props }) {
|
|
|
28088
28104
|
);
|
|
28089
28105
|
}
|
|
28090
28106
|
function TableCell({ className, ...props }) {
|
|
28091
|
-
return /* @__PURE__ */
|
|
28107
|
+
return /* @__PURE__ */ jsx44(
|
|
28092
28108
|
"td",
|
|
28093
28109
|
{
|
|
28094
28110
|
"data-slot": "table-cell",
|
|
@@ -28102,7 +28118,7 @@ function TableCell({ className, ...props }) {
|
|
|
28102
28118
|
}
|
|
28103
28119
|
|
|
28104
28120
|
// src/components/ui/data-table.tsx
|
|
28105
|
-
import { Fragment as
|
|
28121
|
+
import { Fragment as Fragment17, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
28106
28122
|
function DataTable({
|
|
28107
28123
|
columns,
|
|
28108
28124
|
rowActions,
|
|
@@ -28127,14 +28143,14 @@ function DataTable({
|
|
|
28127
28143
|
onCellClick(rowData, columnId);
|
|
28128
28144
|
}
|
|
28129
28145
|
};
|
|
28130
|
-
return /* @__PURE__ */
|
|
28131
|
-
/* @__PURE__ */
|
|
28132
|
-
return /* @__PURE__ */
|
|
28146
|
+
return /* @__PURE__ */ jsx45("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ jsxs25(Table3, { children: [
|
|
28147
|
+
/* @__PURE__ */ jsx45(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx45(TableRow, { children: headerGroup.headers.map((header) => {
|
|
28148
|
+
return /* @__PURE__ */ jsx45(TableHead, { children: header.isPlaceholder ? null : flexRender(
|
|
28133
28149
|
header.column.columnDef.header,
|
|
28134
28150
|
header.getContext()
|
|
28135
28151
|
) }, header.id);
|
|
28136
28152
|
}) }, headerGroup.id)) }),
|
|
28137
|
-
/* @__PURE__ */
|
|
28153
|
+
/* @__PURE__ */ jsx45(TableBody, { children: loading ? /* @__PURE__ */ jsx45(TableRow, { children: /* @__PURE__ */ jsx45(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "Loading..." }) }) : /* @__PURE__ */ jsx45(Fragment17, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsxs25(
|
|
28138
28154
|
TableRow,
|
|
28139
28155
|
{
|
|
28140
28156
|
"data-state": row.getIsSelected() && "selected",
|
|
@@ -28144,7 +28160,7 @@ function DataTable({
|
|
|
28144
28160
|
const isCellClickable = cellClickEnabled(row.original, cell.column.id);
|
|
28145
28161
|
const dynamicClass = cell.column.columnDef.meta?.cellClass || "";
|
|
28146
28162
|
const dynamicStyle = cell.column.columnDef.meta?.cellStyle || {};
|
|
28147
|
-
return /* @__PURE__ */
|
|
28163
|
+
return /* @__PURE__ */ jsx45(
|
|
28148
28164
|
TableCell,
|
|
28149
28165
|
{
|
|
28150
28166
|
className: `${dynamicClass} ${isCellClickable ? "underline cursor-pointer" : ""}`,
|
|
@@ -28159,18 +28175,18 @@ function DataTable({
|
|
|
28159
28175
|
cell.id
|
|
28160
28176
|
);
|
|
28161
28177
|
}),
|
|
28162
|
-
rowActions.length > 0 && /* @__PURE__ */
|
|
28178
|
+
rowActions.length > 0 && /* @__PURE__ */ jsx45("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__ */ jsx45("p", { className: "text-[#383838] text-[12px] cursor-pointer font-[400]", children: action.header }, index)) })
|
|
28163
28179
|
]
|
|
28164
28180
|
},
|
|
28165
28181
|
row.id
|
|
28166
|
-
)) : /* @__PURE__ */
|
|
28182
|
+
)) : /* @__PURE__ */ jsx45(TableRow, { children: /* @__PURE__ */ jsx45(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
|
|
28167
28183
|
] }) });
|
|
28168
28184
|
}
|
|
28169
28185
|
|
|
28170
28186
|
// src/components/ui/pagination.tsx
|
|
28171
|
-
import { jsx as
|
|
28187
|
+
import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
28172
28188
|
function Pagination({ className, ...props }) {
|
|
28173
|
-
return /* @__PURE__ */
|
|
28189
|
+
return /* @__PURE__ */ jsx46(
|
|
28174
28190
|
"nav",
|
|
28175
28191
|
{
|
|
28176
28192
|
role: "navigation",
|
|
@@ -28185,7 +28201,7 @@ function PaginationContent({
|
|
|
28185
28201
|
className,
|
|
28186
28202
|
...props
|
|
28187
28203
|
}) {
|
|
28188
|
-
return /* @__PURE__ */
|
|
28204
|
+
return /* @__PURE__ */ jsx46(
|
|
28189
28205
|
"ul",
|
|
28190
28206
|
{
|
|
28191
28207
|
"data-slot": "pagination-content",
|
|
@@ -28195,7 +28211,7 @@ function PaginationContent({
|
|
|
28195
28211
|
);
|
|
28196
28212
|
}
|
|
28197
28213
|
function PaginationItem({ ...props }) {
|
|
28198
|
-
return /* @__PURE__ */
|
|
28214
|
+
return /* @__PURE__ */ jsx46("li", { "data-slot": "pagination-item", ...props });
|
|
28199
28215
|
}
|
|
28200
28216
|
function PaginationLink({
|
|
28201
28217
|
className,
|
|
@@ -28203,7 +28219,7 @@ function PaginationLink({
|
|
|
28203
28219
|
size = "icon",
|
|
28204
28220
|
...props
|
|
28205
28221
|
}) {
|
|
28206
|
-
return /* @__PURE__ */
|
|
28222
|
+
return /* @__PURE__ */ jsx46(
|
|
28207
28223
|
"a",
|
|
28208
28224
|
{
|
|
28209
28225
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -28232,8 +28248,8 @@ function PaginationPrevious({
|
|
|
28232
28248
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
28233
28249
|
...props,
|
|
28234
28250
|
children: [
|
|
28235
|
-
/* @__PURE__ */
|
|
28236
|
-
/* @__PURE__ */
|
|
28251
|
+
/* @__PURE__ */ jsx46(ChevronLeft, {}),
|
|
28252
|
+
/* @__PURE__ */ jsx46("span", { className: "hidden sm:block", children: "Previous" })
|
|
28237
28253
|
]
|
|
28238
28254
|
}
|
|
28239
28255
|
);
|
|
@@ -28250,8 +28266,8 @@ function PaginationNext({
|
|
|
28250
28266
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
28251
28267
|
...props,
|
|
28252
28268
|
children: [
|
|
28253
|
-
/* @__PURE__ */
|
|
28254
|
-
/* @__PURE__ */
|
|
28269
|
+
/* @__PURE__ */ jsx46("span", { className: "hidden sm:block", children: "Next" }),
|
|
28270
|
+
/* @__PURE__ */ jsx46(ChevronRight, {})
|
|
28255
28271
|
]
|
|
28256
28272
|
}
|
|
28257
28273
|
);
|
|
@@ -28268,15 +28284,15 @@ function PaginationEllipsis({
|
|
|
28268
28284
|
className: cn("flex size-9 items-center justify-center", className),
|
|
28269
28285
|
...props,
|
|
28270
28286
|
children: [
|
|
28271
|
-
/* @__PURE__ */
|
|
28272
|
-
/* @__PURE__ */
|
|
28287
|
+
/* @__PURE__ */ jsx46(Ellipsis, { className: "size-4" }),
|
|
28288
|
+
/* @__PURE__ */ jsx46("span", { className: "sr-only", children: "More pages" })
|
|
28273
28289
|
]
|
|
28274
28290
|
}
|
|
28275
28291
|
);
|
|
28276
28292
|
}
|
|
28277
28293
|
|
|
28278
28294
|
// src/components/DataDisplay/Pagination/Pagination.tsx
|
|
28279
|
-
import { jsx as
|
|
28295
|
+
import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
28280
28296
|
var CustomPagination = ({
|
|
28281
28297
|
totalPages,
|
|
28282
28298
|
currentPage,
|
|
@@ -28324,7 +28340,7 @@ var CustomPagination = ({
|
|
|
28324
28340
|
const pageNumbers = getPageNumbers();
|
|
28325
28341
|
return /* @__PURE__ */ jsxs27("div", { className: "flex flex-row gap-1 w-full items-center justify-between", children: [
|
|
28326
28342
|
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
|
|
28327
|
-
/* @__PURE__ */
|
|
28343
|
+
/* @__PURE__ */ jsx47("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: "Items per page:" }),
|
|
28328
28344
|
/* @__PURE__ */ jsxs27(
|
|
28329
28345
|
Select,
|
|
28330
28346
|
{
|
|
@@ -28333,26 +28349,26 @@ var CustomPagination = ({
|
|
|
28333
28349
|
onPageChange({ page: 1, itemsPerPage: Number(value) });
|
|
28334
28350
|
},
|
|
28335
28351
|
children: [
|
|
28336
|
-
/* @__PURE__ */
|
|
28352
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-[100px]", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select" }) }),
|
|
28337
28353
|
/* @__PURE__ */ jsxs27(SelectContent, { children: [
|
|
28338
|
-
/* @__PURE__ */
|
|
28339
|
-
/* @__PURE__ */
|
|
28340
|
-
/* @__PURE__ */
|
|
28341
|
-
/* @__PURE__ */
|
|
28354
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "5", children: "5" }),
|
|
28355
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "10", children: "10" }),
|
|
28356
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "20", children: "20" }),
|
|
28357
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "50", children: "50" })
|
|
28342
28358
|
] })
|
|
28343
28359
|
]
|
|
28344
28360
|
}
|
|
28345
28361
|
)
|
|
28346
28362
|
] }),
|
|
28347
|
-
/* @__PURE__ */
|
|
28348
|
-
/* @__PURE__ */
|
|
28363
|
+
/* @__PURE__ */ jsx47(Pagination, { className: "justify-end", children: /* @__PURE__ */ jsxs27(PaginationContent, { children: [
|
|
28364
|
+
/* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(
|
|
28349
28365
|
PaginationPrevious,
|
|
28350
28366
|
{
|
|
28351
28367
|
onClick: () => handlePageChange(currentPage - 1),
|
|
28352
28368
|
className: currentPage === 1 ? "pointer-events-none opacity-50" : "cursor-pointer"
|
|
28353
28369
|
}
|
|
28354
28370
|
) }),
|
|
28355
|
-
pageNumbers.map((pageNumber, index) => /* @__PURE__ */
|
|
28371
|
+
pageNumbers.map((pageNumber, index) => /* @__PURE__ */ jsx47(PaginationItem, { children: pageNumber === "..." ? /* @__PURE__ */ jsx47(PaginationEllipsis, {}) : /* @__PURE__ */ jsx47(
|
|
28356
28372
|
PaginationLink,
|
|
28357
28373
|
{
|
|
28358
28374
|
onClick: () => handlePageChange(pageNumber),
|
|
@@ -28361,7 +28377,7 @@ var CustomPagination = ({
|
|
|
28361
28377
|
children: pageNumber
|
|
28362
28378
|
}
|
|
28363
28379
|
) }, index)),
|
|
28364
|
-
/* @__PURE__ */
|
|
28380
|
+
/* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(
|
|
28365
28381
|
PaginationNext,
|
|
28366
28382
|
{
|
|
28367
28383
|
onClick: () => handlePageChange(currentPage + 1),
|
|
@@ -28374,7 +28390,7 @@ var CustomPagination = ({
|
|
|
28374
28390
|
var Pagination_default = CustomPagination;
|
|
28375
28391
|
|
|
28376
28392
|
// src/components/DataDisplay/Table/Table.tsx
|
|
28377
|
-
import { jsx as
|
|
28393
|
+
import { jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
28378
28394
|
var Table4 = ({
|
|
28379
28395
|
columns,
|
|
28380
28396
|
data,
|
|
@@ -28421,7 +28437,7 @@ var Table4 = ({
|
|
|
28421
28437
|
return selectedColumn.isClickable ?? false;
|
|
28422
28438
|
};
|
|
28423
28439
|
return /* @__PURE__ */ jsxs28("div", { className: `${className || ""} space-y-3`, style, children: [
|
|
28424
|
-
/* @__PURE__ */
|
|
28440
|
+
/* @__PURE__ */ jsx48(
|
|
28425
28441
|
DataTable,
|
|
28426
28442
|
{
|
|
28427
28443
|
...props,
|
|
@@ -28432,7 +28448,7 @@ var Table4 = ({
|
|
|
28432
28448
|
cellClickEnabled: isCellClickEnabled
|
|
28433
28449
|
}
|
|
28434
28450
|
),
|
|
28435
|
-
enablePagination && /* @__PURE__ */
|
|
28451
|
+
enablePagination && /* @__PURE__ */ jsx48(
|
|
28436
28452
|
Pagination_default,
|
|
28437
28453
|
{
|
|
28438
28454
|
perPage: itemsPerPage,
|
|
@@ -28447,7 +28463,7 @@ var Table_default = Table4;
|
|
|
28447
28463
|
|
|
28448
28464
|
// src/components/Navigation/Tabs/Tabs.tsx
|
|
28449
28465
|
import Link5 from "next/link";
|
|
28450
|
-
import { jsx as
|
|
28466
|
+
import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
28451
28467
|
var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
28452
28468
|
const rawTabs = Array.isArray(tabs) ? tabs : [];
|
|
28453
28469
|
const baseClasses = "text-[12px] text-foreground p-2 text-center rounded-md transition-colors";
|
|
@@ -28463,20 +28479,20 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
|
28463
28479
|
return /* @__PURE__ */ jsxs29(DropdownMenu, { children: [
|
|
28464
28480
|
/* @__PURE__ */ jsxs29(DropdownMenuTrigger, { className: `${finalClasses} inline-flex items-center gap-1`, children: [
|
|
28465
28481
|
tab.header,
|
|
28466
|
-
/* @__PURE__ */
|
|
28482
|
+
/* @__PURE__ */ jsx49(ChevronDown, { className: "h-4 w-4 opacity-80" })
|
|
28467
28483
|
] }),
|
|
28468
|
-
/* @__PURE__ */
|
|
28484
|
+
/* @__PURE__ */ jsx49(
|
|
28469
28485
|
DropdownMenuContent,
|
|
28470
28486
|
{
|
|
28471
28487
|
align: "start",
|
|
28472
28488
|
sideOffset: 6,
|
|
28473
28489
|
className: "z-50 min-w-[160px] rounded-md border border-gray-200 bg-white p-1 shadow-lg",
|
|
28474
|
-
children: tab.children.map((item) => /* @__PURE__ */
|
|
28490
|
+
children: tab.children.map((item) => /* @__PURE__ */ jsx49(
|
|
28475
28491
|
DropdownMenuItem,
|
|
28476
28492
|
{
|
|
28477
28493
|
asChild: true,
|
|
28478
28494
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100 focus:bg-gray-100",
|
|
28479
|
-
children: /* @__PURE__ */
|
|
28495
|
+
children: /* @__PURE__ */ jsx49(Link5, { href: item.url || "#", children: item.header })
|
|
28480
28496
|
},
|
|
28481
28497
|
item.id
|
|
28482
28498
|
))
|
|
@@ -28484,14 +28500,14 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
|
28484
28500
|
)
|
|
28485
28501
|
] }, index);
|
|
28486
28502
|
}
|
|
28487
|
-
return tab.url ? /* @__PURE__ */
|
|
28503
|
+
return tab.url ? /* @__PURE__ */ jsx49(Link5, { href: tab.url, className: finalClasses, style: tab.style, children: tab.header }, index) : /* @__PURE__ */ jsx49("div", { className: finalClasses, style: tab.style, role: "button", tabIndex: 0, children: tab.header }, index);
|
|
28488
28504
|
};
|
|
28489
28505
|
const renderMobileMenu = () => /* @__PURE__ */ jsxs29(DropdownMenu, { children: [
|
|
28490
28506
|
/* @__PURE__ */ jsxs29(DropdownMenuTrigger, { className: "flex items-center gap-2 px-3 py-2 rounded-md bg-white/10 text-white text-sm", children: [
|
|
28491
|
-
/* @__PURE__ */
|
|
28507
|
+
/* @__PURE__ */ jsx49(Menu, { className: "h-4 w-4" }),
|
|
28492
28508
|
"Menu"
|
|
28493
28509
|
] }),
|
|
28494
|
-
/* @__PURE__ */
|
|
28510
|
+
/* @__PURE__ */ jsx49(
|
|
28495
28511
|
DropdownMenuContent,
|
|
28496
28512
|
{
|
|
28497
28513
|
align: "start",
|
|
@@ -28501,24 +28517,24 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
|
28501
28517
|
const hasChildren = Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown;
|
|
28502
28518
|
if (hasChildren) {
|
|
28503
28519
|
return /* @__PURE__ */ jsxs29(DropdownMenuSub, { children: [
|
|
28504
|
-
/* @__PURE__ */
|
|
28505
|
-
/* @__PURE__ */
|
|
28520
|
+
/* @__PURE__ */ jsx49(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 }),
|
|
28521
|
+
/* @__PURE__ */ jsx49(DropdownMenuSubContent, { className: "bg-white border shadow-lg rounded-md p-1", children: tab.children.map((item) => /* @__PURE__ */ jsx49(
|
|
28506
28522
|
DropdownMenuItem,
|
|
28507
28523
|
{
|
|
28508
28524
|
asChild: true,
|
|
28509
28525
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100",
|
|
28510
|
-
children: /* @__PURE__ */
|
|
28526
|
+
children: /* @__PURE__ */ jsx49(Link5, { href: item.url || "#", children: item.header })
|
|
28511
28527
|
},
|
|
28512
28528
|
item.id
|
|
28513
28529
|
)) })
|
|
28514
28530
|
] }, i);
|
|
28515
28531
|
}
|
|
28516
|
-
return /* @__PURE__ */
|
|
28532
|
+
return /* @__PURE__ */ jsx49(
|
|
28517
28533
|
DropdownMenuItem,
|
|
28518
28534
|
{
|
|
28519
28535
|
asChild: true,
|
|
28520
28536
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[13px] text-gray-800 hover:bg-gray-100",
|
|
28521
|
-
children: /* @__PURE__ */
|
|
28537
|
+
children: /* @__PURE__ */ jsx49(Link5, { href: tab.url || "#", children: tab.header })
|
|
28522
28538
|
},
|
|
28523
28539
|
i
|
|
28524
28540
|
);
|
|
@@ -28529,56 +28545,55 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
|
28529
28545
|
const forceMobile = canvasMode === "mobile" || canvasMode === "tablet";
|
|
28530
28546
|
const forceDesktop = canvasMode === "desktop";
|
|
28531
28547
|
return /* @__PURE__ */ jsxs29("div", { className, style, children: [
|
|
28532
|
-
forceDesktop && /* @__PURE__ */
|
|
28533
|
-
forceMobile && /* @__PURE__ */
|
|
28534
|
-
/* @__PURE__ */
|
|
28548
|
+
forceDesktop && /* @__PURE__ */ jsx49("div", { className: "hidden md:flex", children: /* @__PURE__ */ jsx49("div", { className: `flex gap-2 ${verticalMenu ? "flex-col items-start" : "flex-row"}`, children: rawTabs.map(renderDesktopTab) }) }),
|
|
28549
|
+
forceMobile && /* @__PURE__ */ jsx49("div", { children: renderMobileMenu() }),
|
|
28550
|
+
/* @__PURE__ */ jsx49("div", { className: "md:hidden", children: renderMobileMenu() })
|
|
28535
28551
|
] });
|
|
28536
28552
|
};
|
|
28537
28553
|
var Tabs_default = Tabs;
|
|
28538
28554
|
|
|
28539
28555
|
// src/components/Navigation/Stages/Stages.tsx
|
|
28540
28556
|
import React5 from "react";
|
|
28541
|
-
import { jsx as
|
|
28557
|
+
import { jsx as jsx50, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
28542
28558
|
var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
|
|
28543
|
-
return /* @__PURE__ */
|
|
28544
|
-
/* @__PURE__ */
|
|
28545
|
-
/* @__PURE__ */
|
|
28546
|
-
/* @__PURE__ */
|
|
28559
|
+
return /* @__PURE__ */ jsx50("div", { className, style, children: /* @__PURE__ */ jsxs30("div", { className: "flex items-center justify-between bg-red p-2 rounded-lg border border-gray-200 w-full", children: [
|
|
28560
|
+
/* @__PURE__ */ jsx50("div", { className: "flex items-center", children: /* @__PURE__ */ jsx50("button", { className: "p-2 hover:bg-gray-100 rounded", children: /* @__PURE__ */ jsx50("svg", { className: "w-4 h-4 text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx50("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }) }) }),
|
|
28561
|
+
/* @__PURE__ */ jsx50("div", { className: "flex items-center flex-1 px-2 flex-wrap gap-2", children: stages?.length > 0 && stages?.map((stage, index) => /* @__PURE__ */ jsxs30(React5.Fragment, { children: [
|
|
28562
|
+
/* @__PURE__ */ jsx50(
|
|
28547
28563
|
"button",
|
|
28548
28564
|
{
|
|
28549
|
-
className: `
|
|
28550
|
-
min-w-[120px] px-4 py-2 rounded-full text-sm font-medium transition-colors duration-200 whitespace-nowrap ${stage.isActive ? "bg-[#034486] text-white shadow-md" : "bg-white text-gray-700 hover:bg-gray-100 border border-gray-200"}`,
|
|
28565
|
+
className: `min-w-[120px] px-4 py-2 rounded-full text-sm font-medium transition-colors duration-200 whitespace-nowrap ${stage.isActive ? "bg-[#034486] text-white shadow-md" : "bg-white text-gray-700 hover:bg-gray-100 border border-gray-200"}`,
|
|
28551
28566
|
children: stage.header
|
|
28552
28567
|
}
|
|
28553
28568
|
),
|
|
28554
|
-
index < stages.length - 1 && /* @__PURE__ */
|
|
28569
|
+
index < stages.length - 1 && /* @__PURE__ */ jsx50("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
|
|
28555
28570
|
] }, stage.id)) }),
|
|
28556
|
-
isShowBtn && /* @__PURE__ */
|
|
28571
|
+
isShowBtn && /* @__PURE__ */ jsx50("div", { className: "flex items-center", children: /* @__PURE__ */ jsx50("button", { className: "bg-[#034486] text-white px-6 py-2 rounded-lg text-sm font-medium transition-colors duration-200 shadow-sm", children: buttonText }) })
|
|
28557
28572
|
] }) });
|
|
28558
28573
|
};
|
|
28559
28574
|
var Stages_default = StagesComponent;
|
|
28560
28575
|
|
|
28561
28576
|
// src/components/Navigation/Spacer/Spacer.tsx
|
|
28562
|
-
import { jsx as
|
|
28577
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
28563
28578
|
var Spacer = ({ className, style }) => {
|
|
28564
|
-
return /* @__PURE__ */
|
|
28579
|
+
return /* @__PURE__ */ jsx51("div", { className: `${className}`, style });
|
|
28565
28580
|
};
|
|
28566
28581
|
var Spacer_default = Spacer;
|
|
28567
28582
|
|
|
28568
28583
|
// src/components/Navigation/Profile/Profile.tsx
|
|
28569
|
-
import { jsx as
|
|
28584
|
+
import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
28570
28585
|
|
|
28571
28586
|
// src/components/Navigation/Notification/Notification.tsx
|
|
28572
|
-
import { jsx as
|
|
28587
|
+
import { jsx as jsx53, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
28573
28588
|
|
|
28574
28589
|
// src/components/Navigation/Logo/Logo.tsx
|
|
28575
|
-
import { jsx as
|
|
28590
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
28576
28591
|
|
|
28577
28592
|
// src/components/ui/avatar.tsx
|
|
28578
28593
|
import * as React6 from "react";
|
|
28579
28594
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
28580
|
-
import { jsx as
|
|
28581
|
-
var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28595
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
28596
|
+
var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx55(
|
|
28582
28597
|
AvatarPrimitive.Root,
|
|
28583
28598
|
{
|
|
28584
28599
|
ref,
|
|
@@ -28590,7 +28605,7 @@ var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
28590
28605
|
}
|
|
28591
28606
|
));
|
|
28592
28607
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
28593
|
-
var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28608
|
+
var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx55(
|
|
28594
28609
|
AvatarPrimitive.Image,
|
|
28595
28610
|
{
|
|
28596
28611
|
ref,
|
|
@@ -28599,7 +28614,7 @@ var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
28599
28614
|
}
|
|
28600
28615
|
));
|
|
28601
28616
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
28602
|
-
var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
28617
|
+
var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx55(
|
|
28603
28618
|
AvatarPrimitive.Fallback,
|
|
28604
28619
|
{
|
|
28605
28620
|
ref,
|
|
@@ -28615,7 +28630,7 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
28615
28630
|
// src/components/Navigation/Navbar/Navbar.tsx
|
|
28616
28631
|
import Link6 from "next/link";
|
|
28617
28632
|
import Image3 from "next/image";
|
|
28618
|
-
import { Fragment as
|
|
28633
|
+
import { Fragment as Fragment18, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
28619
28634
|
function Navbar({
|
|
28620
28635
|
style,
|
|
28621
28636
|
badgeType,
|
|
@@ -28630,9 +28645,9 @@ function Navbar({
|
|
|
28630
28645
|
userName = "Guest User"
|
|
28631
28646
|
}) {
|
|
28632
28647
|
const isMobileView = canvasMode === "mobile" || canvasMode === "tablet";
|
|
28633
|
-
return /* @__PURE__ */
|
|
28634
|
-
/* @__PURE__ */
|
|
28635
|
-
!isMobileView && /* @__PURE__ */
|
|
28648
|
+
return /* @__PURE__ */ jsx56("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: [
|
|
28649
|
+
/* @__PURE__ */ jsx56(Link6, { href: "/", className: "flex items-center space-x-2", children: imageUrl ? /* @__PURE__ */ jsx56(Image3, { src: imageUrl, alt: altText, width: 200, height: 200 }) : /* @__PURE__ */ jsx56("span", { className: "font-semibold text-blue-700", children: "Logo" }) }),
|
|
28650
|
+
!isMobileView && /* @__PURE__ */ jsx56("div", { className: "flex items-center space-x-6 sm:hidden md:flex", children: list.map((item) => /* @__PURE__ */ jsx56(
|
|
28636
28651
|
Link6,
|
|
28637
28652
|
{
|
|
28638
28653
|
href: item.url || "#",
|
|
@@ -28642,53 +28657,53 @@ function Navbar({
|
|
|
28642
28657
|
item.id
|
|
28643
28658
|
)) }),
|
|
28644
28659
|
/* @__PURE__ */ jsxs33("div", { className: "flex items-center space-x-3", children: [
|
|
28645
|
-
!isMobileView ? /* @__PURE__ */
|
|
28646
|
-
/* @__PURE__ */
|
|
28647
|
-
/* @__PURE__ */
|
|
28648
|
-
] }) }) : /* @__PURE__ */
|
|
28660
|
+
!isMobileView ? /* @__PURE__ */ jsx56("div", { className: "flex-1 px-6", children: /* @__PURE__ */ jsxs33("div", { className: "relative w-full max-w-md border border-gray-300 rounded-md", children: [
|
|
28661
|
+
/* @__PURE__ */ jsx56(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400" }),
|
|
28662
|
+
/* @__PURE__ */ jsx56(Input, { placeholder: "Search", className: "pl-9 text-gray-400" })
|
|
28663
|
+
] }) }) : /* @__PURE__ */ jsx56(
|
|
28649
28664
|
Button,
|
|
28650
28665
|
{
|
|
28651
28666
|
variant: "ghost",
|
|
28652
28667
|
size: "icon",
|
|
28653
28668
|
className: "border border-gray-400",
|
|
28654
|
-
children: /* @__PURE__ */
|
|
28669
|
+
children: /* @__PURE__ */ jsx56(Search, { className: "h-5 w-5 text-gray-400" })
|
|
28655
28670
|
}
|
|
28656
28671
|
),
|
|
28657
28672
|
/* @__PURE__ */ jsxs33("div", { className: "relative bg-[#E9E9E9] rounded-md", children: [
|
|
28658
|
-
/* @__PURE__ */
|
|
28659
|
-
badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && badgeCount > 0 ? /* @__PURE__ */
|
|
28673
|
+
/* @__PURE__ */ jsx56(Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsx56(Bell, { className: "h-5 w-5 text-[#1C1B1F]" }) }),
|
|
28674
|
+
badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && Number(badgeCount) > 0 ? /* @__PURE__ */ jsx56("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__ */ jsx56("span", { className: "absolute -top-1 -right-1 flex h-2 w-2 items-center justify-center rounded-full bg-red-500" })
|
|
28660
28675
|
] }),
|
|
28661
28676
|
/* @__PURE__ */ jsxs33(DropdownMenu, { children: [
|
|
28662
|
-
/* @__PURE__ */
|
|
28663
|
-
!isMobileView && showName && /* @__PURE__ */
|
|
28664
|
-
!isMobileView ? /* @__PURE__ */ jsxs33(
|
|
28665
|
-
/* @__PURE__ */
|
|
28677
|
+
/* @__PURE__ */ jsx56(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center space-x-2", children: [
|
|
28678
|
+
!isMobileView && showName && /* @__PURE__ */ jsx56("h4", { className: "text-[#000000] text-[13px] font-[500] mb-0", children: userName }),
|
|
28679
|
+
!isMobileView ? /* @__PURE__ */ jsxs33(Fragment18, { children: [
|
|
28680
|
+
/* @__PURE__ */ jsx56(Avatar, { className: "cursor-pointer h-8 w-8 text-gray-900", children: profileType === "avatar" ? /* @__PURE__ */ jsx56(
|
|
28666
28681
|
AvatarImage,
|
|
28667
28682
|
{
|
|
28668
28683
|
src: "/images/appbuilder/toolset/profile.svg",
|
|
28669
28684
|
alt: "Profile"
|
|
28670
28685
|
}
|
|
28671
|
-
) : /* @__PURE__ */
|
|
28672
|
-
/* @__PURE__ */
|
|
28686
|
+
) : /* @__PURE__ */ jsx56("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) }) }),
|
|
28687
|
+
/* @__PURE__ */ jsx56(
|
|
28673
28688
|
Button,
|
|
28674
28689
|
{
|
|
28675
28690
|
variant: "ghost",
|
|
28676
28691
|
size: "icon",
|
|
28677
28692
|
className: "text-gray-900 md:hidden",
|
|
28678
|
-
children: /* @__PURE__ */
|
|
28693
|
+
children: /* @__PURE__ */ jsx56(Menu, { className: "h-6 w-6" })
|
|
28679
28694
|
}
|
|
28680
28695
|
)
|
|
28681
|
-
] }) : /* @__PURE__ */
|
|
28696
|
+
] }) : /* @__PURE__ */ jsx56(
|
|
28682
28697
|
Button,
|
|
28683
28698
|
{
|
|
28684
28699
|
variant: "ghost",
|
|
28685
28700
|
size: "icon",
|
|
28686
28701
|
className: "text-gray-900",
|
|
28687
|
-
children: /* @__PURE__ */
|
|
28702
|
+
children: /* @__PURE__ */ jsx56(Menu, { className: "h-6 w-6" })
|
|
28688
28703
|
}
|
|
28689
28704
|
)
|
|
28690
28705
|
] }) }),
|
|
28691
|
-
/* @__PURE__ */
|
|
28706
|
+
/* @__PURE__ */ jsx56(DropdownMenuContent, { align: "end", className: "bg-white", children: list && list.length > 0 && /* @__PURE__ */ jsx56(Fragment18, { children: list.map((item) => /* @__PURE__ */ jsx56(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ jsx56(Link6, { href: item.url || "#", children: item.header }) }, item.id)) }) })
|
|
28692
28707
|
] })
|
|
28693
28708
|
] })
|
|
28694
28709
|
] }) });
|
|
@@ -28696,28 +28711,28 @@ function Navbar({
|
|
|
28696
28711
|
|
|
28697
28712
|
// src/components/Chart/BarChart.tsx
|
|
28698
28713
|
import { BarChart, Bar, Area, AreaChart, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Legend } from "recharts";
|
|
28699
|
-
import { jsx as
|
|
28714
|
+
import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
28700
28715
|
var ChartComponent = ({ className, style, ...props }) => {
|
|
28701
28716
|
const data = Array.isArray(props?.data) ? props.data : [];
|
|
28702
28717
|
const chartType = props.chartType || "bar";
|
|
28703
28718
|
const legendsPosition = props.legendsPosition === "middle" || props.legendsPosition === "bottom" ? props.legendsPosition : "top";
|
|
28704
|
-
return /* @__PURE__ */
|
|
28705
|
-
/* @__PURE__ */
|
|
28706
|
-
/* @__PURE__ */
|
|
28707
|
-
/* @__PURE__ */
|
|
28708
|
-
/* @__PURE__ */
|
|
28709
|
-
/* @__PURE__ */
|
|
28710
|
-
/* @__PURE__ */
|
|
28719
|
+
return /* @__PURE__ */ jsx57("div", { className: `${className} h-[400px]`, style, children: data.length > 0 && /* @__PURE__ */ jsx57(ResponsiveContainer, { width: "100%", height: "100%", children: chartType === "bar" ? /* @__PURE__ */ jsxs34(BarChart, { data, children: [
|
|
28720
|
+
/* @__PURE__ */ jsx57(CartesianGrid, { strokeDasharray: "3 3" }),
|
|
28721
|
+
/* @__PURE__ */ jsx57(XAxis, { dataKey: "name" }),
|
|
28722
|
+
/* @__PURE__ */ jsx57(YAxis, {}),
|
|
28723
|
+
/* @__PURE__ */ jsx57(Tooltip, {}),
|
|
28724
|
+
/* @__PURE__ */ jsx57(Legend, { verticalAlign: legendsPosition, align: "center" }),
|
|
28725
|
+
/* @__PURE__ */ jsx57(Bar, { dataKey: "value", fill: "#00695C" })
|
|
28711
28726
|
] }) : /* @__PURE__ */ jsxs34(AreaChart, { data, children: [
|
|
28712
|
-
/* @__PURE__ */
|
|
28713
|
-
/* @__PURE__ */
|
|
28714
|
-
/* @__PURE__ */
|
|
28727
|
+
/* @__PURE__ */ jsx57("defs", { children: /* @__PURE__ */ jsxs34("linearGradient", { id: "colorCount", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
28728
|
+
/* @__PURE__ */ jsx57("stop", { offset: "5%", stopColor: "#00695C", stopOpacity: 0.8 }),
|
|
28729
|
+
/* @__PURE__ */ jsx57("stop", { offset: "95%", stopColor: "#00695C", stopOpacity: 0 })
|
|
28715
28730
|
] }) }),
|
|
28716
|
-
/* @__PURE__ */
|
|
28717
|
-
/* @__PURE__ */
|
|
28718
|
-
/* @__PURE__ */
|
|
28719
|
-
/* @__PURE__ */
|
|
28720
|
-
/* @__PURE__ */
|
|
28731
|
+
/* @__PURE__ */ jsx57(CartesianGrid, { strokeDasharray: "3 3" }),
|
|
28732
|
+
/* @__PURE__ */ jsx57(XAxis, { dataKey: "name" }),
|
|
28733
|
+
/* @__PURE__ */ jsx57(YAxis, {}),
|
|
28734
|
+
/* @__PURE__ */ jsx57(Tooltip, {}),
|
|
28735
|
+
/* @__PURE__ */ jsx57(
|
|
28721
28736
|
Area,
|
|
28722
28737
|
{
|
|
28723
28738
|
type: "monotone",
|
|
@@ -28733,7 +28748,7 @@ var BarChart_default = ChartComponent;
|
|
|
28733
28748
|
|
|
28734
28749
|
// src/components/Chart/PieChart.tsx
|
|
28735
28750
|
import { PieChart, Pie, Cell, ResponsiveContainer as ResponsiveContainer2, Tooltip as Tooltip2, LabelList } from "recharts";
|
|
28736
|
-
import { Fragment as
|
|
28751
|
+
import { Fragment as Fragment19, jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
28737
28752
|
var DonutChart = ({ className, style, ...props }) => {
|
|
28738
28753
|
const data = Array.isArray(props?.data) ? props.data : [];
|
|
28739
28754
|
const total = data.reduce((sum, d) => sum + d.value, 0);
|
|
@@ -28766,19 +28781,19 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28766
28781
|
const wrapperClass = canvasMode ? forceDesktop ? "flex-row" : "flex-col" : "flex-col md:flex-row";
|
|
28767
28782
|
const renderLegends = () => {
|
|
28768
28783
|
if (!showLegends) return null;
|
|
28769
|
-
return /* @__PURE__ */
|
|
28784
|
+
return /* @__PURE__ */ jsx58(Fragment19, { children: data.map((d) => /* @__PURE__ */ jsxs35(
|
|
28770
28785
|
"div",
|
|
28771
28786
|
{
|
|
28772
28787
|
className: "flex items-center space-x-2 rounded-md border border-gray-200 px-3 py-2 w-[48%] md:w-auto",
|
|
28773
28788
|
children: [
|
|
28774
|
-
/* @__PURE__ */
|
|
28789
|
+
/* @__PURE__ */ jsx58(
|
|
28775
28790
|
"span",
|
|
28776
28791
|
{
|
|
28777
28792
|
className: "inline-block w-[16px] h-[16px] rounded",
|
|
28778
28793
|
style: { backgroundColor: d.color }
|
|
28779
28794
|
}
|
|
28780
28795
|
),
|
|
28781
|
-
/* @__PURE__ */
|
|
28796
|
+
/* @__PURE__ */ jsx58("span", { className: "text-[#000000] text-[12px] md:text-[13px] font-[500]", children: d.name })
|
|
28782
28797
|
]
|
|
28783
28798
|
},
|
|
28784
28799
|
d.name
|
|
@@ -28791,7 +28806,7 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28791
28806
|
style,
|
|
28792
28807
|
children: [
|
|
28793
28808
|
/* @__PURE__ */ jsxs35("div", { className: "relative w-full md:w-[70%] h-[300px] md:h-[400px] flex items-center justify-center", children: [
|
|
28794
|
-
data.length > 0 && /* @__PURE__ */
|
|
28809
|
+
data.length > 0 && /* @__PURE__ */ jsx58(ResponsiveContainer2, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs35(PieChart, { children: [
|
|
28795
28810
|
/* @__PURE__ */ jsxs35(
|
|
28796
28811
|
Pie,
|
|
28797
28812
|
{
|
|
@@ -28804,8 +28819,8 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28804
28819
|
labelLine: false,
|
|
28805
28820
|
isAnimationActive: false,
|
|
28806
28821
|
children: [
|
|
28807
|
-
data.map((entry, index) => /* @__PURE__ */
|
|
28808
|
-
/* @__PURE__ */
|
|
28822
|
+
data.map((entry, index) => /* @__PURE__ */ jsx58(Cell, { fill: entry.color }, `cell-${index}`)),
|
|
28823
|
+
/* @__PURE__ */ jsx58(
|
|
28809
28824
|
LabelList,
|
|
28810
28825
|
{
|
|
28811
28826
|
dataKey: "value",
|
|
@@ -28816,14 +28831,14 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28816
28831
|
]
|
|
28817
28832
|
}
|
|
28818
28833
|
),
|
|
28819
|
-
/* @__PURE__ */
|
|
28834
|
+
/* @__PURE__ */ jsx58(Tooltip2, { formatter: (value, name) => [`${value}k`, name] })
|
|
28820
28835
|
] }) }),
|
|
28821
28836
|
/* @__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: [
|
|
28822
28837
|
total,
|
|
28823
28838
|
"k"
|
|
28824
28839
|
] })
|
|
28825
28840
|
] }),
|
|
28826
|
-
/* @__PURE__ */
|
|
28841
|
+
/* @__PURE__ */ jsx58("div", { className: `flex ${forceDesktop ? "flex-col ml-auto space-y-3" : "flex-wrap justify-center gap-2 mt-4"}
|
|
28827
28842
|
w-full md:w-auto`, children: renderLegends() })
|
|
28828
28843
|
]
|
|
28829
28844
|
}
|
|
@@ -28832,10 +28847,10 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28832
28847
|
var PieChart_default = DonutChart;
|
|
28833
28848
|
|
|
28834
28849
|
// src/components/Blocks/EmailComposer.tsx
|
|
28835
|
-
import { jsx as
|
|
28850
|
+
import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
28836
28851
|
function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }) {
|
|
28837
|
-
return /* @__PURE__ */
|
|
28838
|
-
/* @__PURE__ */
|
|
28852
|
+
return /* @__PURE__ */ jsx59("div", { className, style, children: /* @__PURE__ */ jsxs36("div", { className: "border rounded-md shadow bg-[#fff] p-4 mx-auto z-[50] relative", children: [
|
|
28853
|
+
/* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsx59(
|
|
28839
28854
|
"input",
|
|
28840
28855
|
{
|
|
28841
28856
|
type: "email",
|
|
@@ -28844,8 +28859,8 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28844
28859
|
required: true
|
|
28845
28860
|
}
|
|
28846
28861
|
) }),
|
|
28847
|
-
/* @__PURE__ */
|
|
28848
|
-
/* @__PURE__ */
|
|
28862
|
+
/* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2", children: [
|
|
28863
|
+
/* @__PURE__ */ jsx59(
|
|
28849
28864
|
"input",
|
|
28850
28865
|
{
|
|
28851
28866
|
type: "email",
|
|
@@ -28856,7 +28871,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28856
28871
|
required: true
|
|
28857
28872
|
}
|
|
28858
28873
|
),
|
|
28859
|
-
!showCc && /* @__PURE__ */
|
|
28874
|
+
!showCc && /* @__PURE__ */ jsx59(
|
|
28860
28875
|
"button",
|
|
28861
28876
|
{
|
|
28862
28877
|
onClick: () => setShowCc?.(true),
|
|
@@ -28864,7 +28879,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28864
28879
|
children: "Cc"
|
|
28865
28880
|
}
|
|
28866
28881
|
),
|
|
28867
|
-
!showBcc && /* @__PURE__ */
|
|
28882
|
+
!showBcc && /* @__PURE__ */ jsx59(
|
|
28868
28883
|
"button",
|
|
28869
28884
|
{
|
|
28870
28885
|
onClick: () => setShowBcc?.(true),
|
|
@@ -28873,7 +28888,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28873
28888
|
}
|
|
28874
28889
|
)
|
|
28875
28890
|
] }) }),
|
|
28876
|
-
showCc && /* @__PURE__ */
|
|
28891
|
+
showCc && /* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsx59(
|
|
28877
28892
|
"input",
|
|
28878
28893
|
{
|
|
28879
28894
|
type: "text",
|
|
@@ -28883,7 +28898,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28883
28898
|
className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
|
|
28884
28899
|
}
|
|
28885
28900
|
) }),
|
|
28886
|
-
showBcc && /* @__PURE__ */
|
|
28901
|
+
showBcc && /* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsx59(
|
|
28887
28902
|
"input",
|
|
28888
28903
|
{
|
|
28889
28904
|
type: "text",
|
|
@@ -28893,7 +28908,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28893
28908
|
className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
|
|
28894
28909
|
}
|
|
28895
28910
|
) }),
|
|
28896
|
-
/* @__PURE__ */
|
|
28911
|
+
/* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsx59(
|
|
28897
28912
|
"input",
|
|
28898
28913
|
{
|
|
28899
28914
|
type: "text",
|
|
@@ -28903,11 +28918,11 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28903
28918
|
className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
|
|
28904
28919
|
}
|
|
28905
28920
|
) }),
|
|
28906
|
-
/* @__PURE__ */
|
|
28921
|
+
/* @__PURE__ */ jsx59("div", { className: "mb-4", children: /* @__PURE__ */ jsx59(MyEditor, { value: body, onChange: setBody }) }),
|
|
28907
28922
|
/* @__PURE__ */ jsxs36("div", { className: "flex justify-end gap-2", children: [
|
|
28908
|
-
/* @__PURE__ */
|
|
28909
|
-
/* @__PURE__ */
|
|
28910
|
-
/* @__PURE__ */
|
|
28923
|
+
/* @__PURE__ */ jsx59("button", { className: "px-4 py-2 rounded-md text-gray-600 hover:bg-gray-100", children: "Discard" }),
|
|
28924
|
+
/* @__PURE__ */ jsx59("button", { className: "px-4 py-2 rounded-md border text-[#12715B] border-[#12715B]", children: "Reset" }),
|
|
28925
|
+
/* @__PURE__ */ jsx59("button", { className: "px-4 py-2 rounded-md bg-[#12715B] text-white", children: "Send" })
|
|
28911
28926
|
] })
|
|
28912
28927
|
] }) });
|
|
28913
28928
|
}
|
|
@@ -28950,6 +28965,7 @@ function showSonnerToast({
|
|
|
28950
28965
|
}
|
|
28951
28966
|
export {
|
|
28952
28967
|
Accordion_default as Accordion,
|
|
28968
|
+
AccordionGroup_default as AccordionGroup,
|
|
28953
28969
|
BarChart_default as BarChart,
|
|
28954
28970
|
Breadcrumb_default as Breadcrumb,
|
|
28955
28971
|
Button_default as Button,
|
|
@@ -28978,6 +28994,7 @@ export {
|
|
|
28978
28994
|
RichText,
|
|
28979
28995
|
SearchInput_default as Search,
|
|
28980
28996
|
Shape_default as Shape,
|
|
28997
|
+
Slot_default as Slot,
|
|
28981
28998
|
Spacer_default as Spacer,
|
|
28982
28999
|
Stages_default as Stages,
|
|
28983
29000
|
SwitchToggle_default as SwitchToggle,
|