@algorithm-shift/design-system 1.2.59 → 1.2.61

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.mjs CHANGED
@@ -6,15 +6,30 @@ import {
6
6
  } from "./chunk-27YZ2WSP.mjs";
7
7
 
8
8
  // src/components/Layout/Modal.tsx
9
+ import { useEffect } from "react";
9
10
  import { jsx, jsxs } from "react/jsx-runtime";
10
11
  var Modal = ({
11
12
  children,
12
- onClose,
13
- label,
14
13
  className,
15
- style
14
+ style,
15
+ showModal,
16
+ onModalClose,
17
+ label
16
18
  }) => {
17
- return /* @__PURE__ */ jsx("div", { className, style, children: /* @__PURE__ */ jsxs("div", { className: "min-h-80", children: [
19
+ useEffect(() => {
20
+ if (showModal) {
21
+ const wrapper = document.getElementById("canvas-wrapper") || document.getElementById("canvas-preview");
22
+ if (!wrapper) return;
23
+ const overlay = document.createElement("div");
24
+ overlay.className = "absolute flex inset-0 bg-black opacity-50 z-10 w-full h-full";
25
+ wrapper.appendChild(overlay);
26
+ return () => {
27
+ if (wrapper.contains(overlay)) wrapper.removeChild(overlay);
28
+ };
29
+ }
30
+ }, [showModal]);
31
+ if (!showModal) return null;
32
+ return /* @__PURE__ */ jsx("div", { className: `${className} top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 shadow-lg rounded-md z-90 bg-[#fff] `, style: { position: "fixed", ...style }, children: /* @__PURE__ */ jsxs("div", { className: "min-h-80", children: [
18
33
  /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center p-4 border-b border-gray-300 bg-gray-100", children: [
19
34
  /* @__PURE__ */ jsx("h4", { className: "text-[#000]", children: label || "Modal Title" }),
20
35
  /* @__PURE__ */ jsx(
@@ -22,7 +37,7 @@ var Modal = ({
22
37
  {
23
38
  className: "cursor-pointer text-[#000]",
24
39
  role: "presentation",
25
- onClick: onClose,
40
+ onClick: () => onModalClose && onModalClose(false),
26
41
  children: "X"
27
42
  }
28
43
  )
@@ -122,10 +137,59 @@ var AccordionGroup = ({ children, style, className }) => {
122
137
  };
123
138
  var AccordionGroup_default = AccordionGroup;
124
139
 
140
+ // src/components/Layout/TabList.tsx
141
+ import { jsx as jsx8 } from "react/jsx-runtime";
142
+ function TabList({
143
+ children,
144
+ style,
145
+ className,
146
+ activeTab,
147
+ tabId
148
+ }) {
149
+ return /* @__PURE__ */ jsx8(
150
+ "div",
151
+ {
152
+ className: `min-h-30 ${className} ${activeTab === tabId ? "visible" : "hidden"}`,
153
+ style,
154
+ children
155
+ }
156
+ );
157
+ }
158
+
159
+ // src/components/Layout/TabGroup.tsx
160
+ import { useMemo } from "react";
161
+ import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
162
+ function TabGroupComponent({
163
+ children,
164
+ style,
165
+ className,
166
+ list,
167
+ activeTab,
168
+ onTabChange
169
+ }) {
170
+ const formatedList = useMemo(
171
+ () => Array.isArray(list) ? [...list].sort((a, b) => (a.orderNumber ?? 0) - (b.orderNumber ?? 0)) : [],
172
+ [list]
173
+ );
174
+ return /* @__PURE__ */ jsxs3("div", { className, style, children: [
175
+ /* @__PURE__ */ jsx9("div", { className: "flex border-b border-gray-200 gap-1", children: formatedList.map((tab) => /* @__PURE__ */ jsx9(
176
+ "button",
177
+ {
178
+ "data-id": tab.tabId,
179
+ className: `px-4 py-2 text-sm border-b-2 font-medium transition-colors cursor-pointer ${activeTab === tab.tabId ? " bg-blue-500 text-white" : "bg-gray-100 "}`,
180
+ onClick: () => onTabChange && onTabChange(tab.tabId),
181
+ children: tab.name || "Tab List"
182
+ },
183
+ tab.tabId
184
+ )) }),
185
+ children
186
+ ] });
187
+ }
188
+
125
189
  // src/components/ui/button.tsx
126
190
  import { Slot as Slot2 } from "@radix-ui/react-slot";
127
191
  import { cva } from "class-variance-authority";
128
- import { jsx as jsx8 } from "react/jsx-runtime";
192
+ import { jsx as jsx10 } from "react/jsx-runtime";
129
193
  var buttonVariants = cva(
130
194
  "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",
131
195
  {
@@ -159,7 +223,7 @@ function Button({
159
223
  ...props
160
224
  }) {
161
225
  const Comp = asChild ? Slot2 : "button";
162
- return /* @__PURE__ */ jsx8(
226
+ return /* @__PURE__ */ jsx10(
163
227
  Comp,
164
228
  {
165
229
  "data-slot": "button",
@@ -170,20 +234,23 @@ function Button({
170
234
  }
171
235
 
172
236
  // src/components/Basic/Button/Button.tsx
173
- import { jsx as jsx9 } from "react/jsx-runtime";
237
+ import { jsx as jsx11 } from "react/jsx-runtime";
174
238
  var ButtonWrapper = ({
175
239
  className,
176
240
  style,
177
241
  textContent = "Button",
242
+ loadingText = "Loading...",
243
+ loading = false,
178
244
  ...props
179
245
  }) => {
180
- return /* @__PURE__ */ jsx9(
246
+ return /* @__PURE__ */ jsx11(
181
247
  Button,
182
248
  {
183
249
  ...props,
184
250
  className,
185
251
  style,
186
- children: textContent
252
+ disabled: props.disabled || loading,
253
+ children: loading ? loadingText : textContent
187
254
  }
188
255
  );
189
256
  };
@@ -193,7 +260,7 @@ var Button_default = ButtonWrapper;
193
260
  var image_placeholder_default = "data:image/png;base64,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";
194
261
 
195
262
  // src/components/Basic/Image/Image.tsx
196
- import { jsx as jsx10 } from "react/jsx-runtime";
263
+ import { jsx as jsx12 } from "react/jsx-runtime";
197
264
  var ImageControl = ({
198
265
  className,
199
266
  style,
@@ -210,21 +277,21 @@ var ImageControl = ({
210
277
  className
211
278
  );
212
279
  if (!imageUrl && !imageUrlExternal) {
213
- return /* @__PURE__ */ jsx10("div", { className: imageClass, children: /* @__PURE__ */ jsx10("img", { src: image_placeholder_default, alt: altText, className: "opacity-50", width: 50, height: 50 }) });
280
+ return /* @__PURE__ */ jsx12("div", { className: imageClass, children: /* @__PURE__ */ jsx12("img", { src: image_placeholder_default, alt: altText, className: "opacity-50", width: 50, height: 50 }) });
214
281
  }
215
282
  const url = imageUrlExternal || imageUrl;
216
- return /* @__PURE__ */ jsx10("img", { src: url, alt: altText, className: defaultImgClass, style });
283
+ return /* @__PURE__ */ jsx12("img", { src: url, alt: altText, className: defaultImgClass, style });
217
284
  };
218
285
  var Image_default = ImageControl;
219
286
 
220
287
  // src/components/Basic/Shape/Shape.tsx
221
- import { jsx as jsx11 } from "react/jsx-runtime";
288
+ import { jsx as jsx13 } from "react/jsx-runtime";
222
289
  var Shape = ({
223
290
  children,
224
291
  className,
225
292
  style
226
293
  }) => {
227
- return /* @__PURE__ */ jsx11("div", { className, style, children });
294
+ return /* @__PURE__ */ jsx13("div", { className, style, children });
228
295
  };
229
296
  var Shape_default = Shape;
230
297
 
@@ -26562,9 +26629,9 @@ var ZoomOut = createLucideIcon("zoom-out", __iconNode1634);
26562
26629
 
26563
26630
  // src/components/Basic/Breadcrumb/Breadcrumb.tsx
26564
26631
  import Link3 from "next/link";
26565
- import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
26632
+ import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
26566
26633
  var Breadcrumb = ({ list = [], className, style }) => {
26567
- return /* @__PURE__ */ jsx12(
26634
+ return /* @__PURE__ */ jsx14(
26568
26635
  "nav",
26569
26636
  {
26570
26637
  "aria-label": "breadcrumb",
@@ -26572,16 +26639,16 @@ var Breadcrumb = ({ list = [], className, style }) => {
26572
26639
  style,
26573
26640
  children: list.map((item, index) => {
26574
26641
  const isLast = index === list.length - 1;
26575
- return /* @__PURE__ */ jsxs3("div", { className: "flex items-center", children: [
26576
- item.url && !isLast ? /* @__PURE__ */ jsx12(
26642
+ return /* @__PURE__ */ jsxs4("div", { className: "flex items-center", children: [
26643
+ item.url && !isLast ? /* @__PURE__ */ jsx14(
26577
26644
  Link3,
26578
26645
  {
26579
26646
  href: item.url,
26580
26647
  className: "hover:text-foreground transition-colors",
26581
26648
  children: item.header
26582
26649
  }
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" })
26650
+ ) : /* @__PURE__ */ jsx14("span", { className: "text-foreground font-medium", children: item.header }),
26651
+ !isLast && /* @__PURE__ */ jsx14(ChevronRight, { className: "mx-2 h-4 w-4 text-muted-foreground" })
26585
26652
  ] }, item.id);
26586
26653
  })
26587
26654
  }
@@ -26591,16 +26658,16 @@ var Breadcrumb_default = Breadcrumb;
26591
26658
 
26592
26659
  // src/components/ui/dropdown-menu.tsx
26593
26660
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
26594
- import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
26661
+ import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
26595
26662
  function DropdownMenu({
26596
26663
  ...props
26597
26664
  }) {
26598
- return /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
26665
+ return /* @__PURE__ */ jsx15(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
26599
26666
  }
26600
26667
  function DropdownMenuTrigger({
26601
26668
  ...props
26602
26669
  }) {
26603
- return /* @__PURE__ */ jsx13(
26670
+ return /* @__PURE__ */ jsx15(
26604
26671
  DropdownMenuPrimitive.Trigger,
26605
26672
  {
26606
26673
  "data-slot": "dropdown-menu-trigger",
@@ -26613,7 +26680,7 @@ function DropdownMenuContent({
26613
26680
  sideOffset = 4,
26614
26681
  ...props
26615
26682
  }) {
26616
- return /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx13(
26683
+ return /* @__PURE__ */ jsx15(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx15(
26617
26684
  DropdownMenuPrimitive.Content,
26618
26685
  {
26619
26686
  "data-slot": "dropdown-menu-content",
@@ -26632,7 +26699,7 @@ function DropdownMenuItem({
26632
26699
  variant = "default",
26633
26700
  ...props
26634
26701
  }) {
26635
- return /* @__PURE__ */ jsx13(
26702
+ return /* @__PURE__ */ jsx15(
26636
26703
  DropdownMenuPrimitive.Item,
26637
26704
  {
26638
26705
  "data-slot": "dropdown-menu-item",
@@ -26649,7 +26716,7 @@ function DropdownMenuItem({
26649
26716
  function DropdownMenuSub({
26650
26717
  ...props
26651
26718
  }) {
26652
- return /* @__PURE__ */ jsx13(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
26719
+ return /* @__PURE__ */ jsx15(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
26653
26720
  }
26654
26721
  function DropdownMenuSubTrigger({
26655
26722
  className,
@@ -26657,7 +26724,7 @@ function DropdownMenuSubTrigger({
26657
26724
  children,
26658
26725
  ...props
26659
26726
  }) {
26660
- return /* @__PURE__ */ jsxs4(
26727
+ return /* @__PURE__ */ jsxs5(
26661
26728
  DropdownMenuPrimitive.SubTrigger,
26662
26729
  {
26663
26730
  "data-slot": "dropdown-menu-sub-trigger",
@@ -26669,7 +26736,7 @@ function DropdownMenuSubTrigger({
26669
26736
  ...props,
26670
26737
  children: [
26671
26738
  children,
26672
- /* @__PURE__ */ jsx13(ChevronRight, { className: "ml-auto size-4" })
26739
+ /* @__PURE__ */ jsx15(ChevronRight, { className: "ml-auto size-4" })
26673
26740
  ]
26674
26741
  }
26675
26742
  );
@@ -26678,7 +26745,7 @@ function DropdownMenuSubContent({
26678
26745
  className,
26679
26746
  ...props
26680
26747
  }) {
26681
- return /* @__PURE__ */ jsx13(
26748
+ return /* @__PURE__ */ jsx15(
26682
26749
  DropdownMenuPrimitive.SubContent,
26683
26750
  {
26684
26751
  "data-slot": "dropdown-menu-sub-content",
@@ -26693,11 +26760,11 @@ function DropdownMenuSubContent({
26693
26760
 
26694
26761
  // src/components/Basic/ButtonGroup/ButtonGroup.tsx
26695
26762
  import Link4 from "next/link";
26696
- import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
26763
+ import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
26697
26764
  function SplitButton({ style, textContent, className, list = [] }) {
26698
26765
  const bgColor = style?.backgroundColor || "";
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: [
26700
- /* @__PURE__ */ jsx14(
26766
+ return /* @__PURE__ */ jsxs6("div", { className: "inline-flex rounded-md overflow-hidden border border-teal-200 bg-teal-700 items-center focus:ring-0", style: { backgroundColor: bgColor }, children: [
26767
+ /* @__PURE__ */ jsx16(
26701
26768
  Button,
26702
26769
  {
26703
26770
  className: `rounded-none border-r px-4 py-2 text-whit focus:ring-0 ${className || ""}`,
@@ -26705,17 +26772,17 @@ function SplitButton({ style, textContent, className, list = [] }) {
26705
26772
  children: textContent || "Button"
26706
26773
  }
26707
26774
  ),
26708
- /* @__PURE__ */ jsxs5(DropdownMenu, { children: [
26709
- /* @__PURE__ */ jsx14(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx14(
26775
+ /* @__PURE__ */ jsxs6(DropdownMenu, { children: [
26776
+ /* @__PURE__ */ jsx16(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx16(
26710
26777
  Button,
26711
26778
  {
26712
26779
  className: "rounded-none bg-teal-700 px-4 py-2 text-white ring-0 shadow-none hover:bg-teal-600 focus:ring-0",
26713
26780
  "aria-label": "Open Dropdown",
26714
26781
  style: { backgroundColor: bgColor },
26715
- children: /* @__PURE__ */ jsx14(ChevronDown, { className: "w-4 h-4" })
26782
+ children: /* @__PURE__ */ jsx16(ChevronDown, { className: "w-4 h-4" })
26716
26783
  }
26717
26784
  ) }),
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)) })
26785
+ /* @__PURE__ */ jsx16(DropdownMenuContent, { align: "end", className: "bg-white min-w-[120px]", children: list.map((item) => /* @__PURE__ */ jsx16(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ jsx16(Link4, { href: item.url || "#", children: item.header }) }, item.id)) })
26719
26786
  ] })
26720
26787
  ] });
26721
26788
  }
@@ -26723,7 +26790,7 @@ function SplitButton({ style, textContent, className, list = [] }) {
26723
26790
  // src/components/Basic/Icon/Icon.tsx
26724
26791
  import * as faSolid from "@fortawesome/free-solid-svg-icons";
26725
26792
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
26726
- import { jsx as jsx15 } from "react/jsx-runtime";
26793
+ import { jsx as jsx17 } from "react/jsx-runtime";
26727
26794
  var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize = 10, style }) => {
26728
26795
  let content = null;
26729
26796
  if (iconType === "fontawesome") {
@@ -26732,7 +26799,7 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
26732
26799
  if (!faIcon) {
26733
26800
  return null;
26734
26801
  }
26735
- content = /* @__PURE__ */ jsx15(
26802
+ content = /* @__PURE__ */ jsx17(
26736
26803
  FontAwesomeIcon,
26737
26804
  {
26738
26805
  icon: faIcon,
@@ -26746,16 +26813,19 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
26746
26813
  if (!Lucide) {
26747
26814
  return null;
26748
26815
  }
26749
- content = /* @__PURE__ */ jsx15(Lucide, { className: cn("w-5 h-5"), size: fontSize, style: { color: style?.color } });
26816
+ content = /* @__PURE__ */ jsx17(Lucide, { className: cn("w-5 h-5"), size: fontSize, style: { color: style?.color } });
26750
26817
  }
26751
- return /* @__PURE__ */ jsx15("div", { style, className, children: content });
26818
+ return /* @__PURE__ */ jsx17("div", { style, className, children: content });
26752
26819
  };
26753
26820
  var Icon_default = Icon2;
26754
26821
 
26822
+ // src/components/Inputs/TextInput/TextInput.tsx
26823
+ import { useEffect as useEffect2 } from "react";
26824
+
26755
26825
  // src/components/ui/input.tsx
26756
- import { jsx as jsx16 } from "react/jsx-runtime";
26826
+ import { jsx as jsx18 } from "react/jsx-runtime";
26757
26827
  function Input({ className, type, ...props }) {
26758
- return /* @__PURE__ */ jsx16(
26828
+ return /* @__PURE__ */ jsx18(
26759
26829
  "input",
26760
26830
  {
26761
26831
  type,
@@ -26772,18 +26842,24 @@ function Input({ className, type, ...props }) {
26772
26842
  }
26773
26843
 
26774
26844
  // src/components/Inputs/TextInput/TextInput.tsx
26775
- import { Fragment as Fragment2, jsx as jsx17, jsxs as jsxs6 } from "react/jsx-runtime";
26845
+ import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
26776
26846
  var TextInput = ({ className, style, ...props }) => {
26777
26847
  const placeholder = props.placeholder || "Placeholder text";
26778
26848
  const isEditable = props.isEditable ?? true;
26779
26849
  const isDisabled = props.isDisabled ?? false;
26780
26850
  const isReadonly = props.isReadonly ?? false;
26781
26851
  const isAutocomplete = props.isAutocomplete ?? false;
26852
+ useEffect2(() => {
26853
+ if (props.value !== void 0) {
26854
+ const e = { target: { value: props.value } };
26855
+ handleChange?.(e);
26856
+ }
26857
+ }, []);
26782
26858
  const handleChange = (e) => {
26783
26859
  props.onChange?.(e);
26784
26860
  };
26785
- return /* @__PURE__ */ jsxs6(Fragment2, { children: [
26786
- /* @__PURE__ */ jsx17(
26861
+ return /* @__PURE__ */ jsxs7(Fragment2, { children: [
26862
+ /* @__PURE__ */ jsx19(
26787
26863
  Input,
26788
26864
  {
26789
26865
  type: "text",
@@ -26801,26 +26877,33 @@ var TextInput = ({ className, style, ...props }) => {
26801
26877
  readOnly: isReadonly
26802
26878
  }
26803
26879
  ),
26804
- props.errorMessage && /* @__PURE__ */ jsx17("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26880
+ props.errorMessage && /* @__PURE__ */ jsx19("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26805
26881
  ] });
26806
26882
  };
26807
26883
  var TextInput_default = TextInput;
26808
26884
 
26809
26885
  // src/components/Inputs/NumberInput/NumberInput.tsx
26810
- import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
26886
+ import { useEffect as useEffect3 } from "react";
26887
+ import { Fragment as Fragment3, jsx as jsx20, jsxs as jsxs8 } from "react/jsx-runtime";
26811
26888
  var NumberInput = ({ className, style, ...props }) => {
26812
26889
  const placeholder = props.placeholder ?? "Placeholder text";
26813
26890
  const isEditable = props.isEditable ?? true;
26814
26891
  const isDisabled = props.isDisabled ?? false;
26815
26892
  const isReadonly = props.isReadonly ?? false;
26816
26893
  const isAutocomplete = props.isAutocomplete ?? false;
26894
+ useEffect3(() => {
26895
+ if (props.value !== void 0) {
26896
+ const e = { target: { value: props.value } };
26897
+ handleChange?.(e);
26898
+ }
26899
+ }, []);
26817
26900
  const handleChange = (e) => {
26818
26901
  props.onChange?.(e);
26819
26902
  };
26820
- return /* @__PURE__ */ jsxs7(Fragment3, { children: [
26821
- /* @__PURE__ */ jsxs7("div", { className: "flex justify-start items-center relative", children: [
26822
- /* @__PURE__ */ jsx18(Calculator, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26823
- /* @__PURE__ */ jsx18(
26903
+ return /* @__PURE__ */ jsxs8(Fragment3, { children: [
26904
+ /* @__PURE__ */ jsxs8("div", { className: "flex justify-start items-center relative", children: [
26905
+ /* @__PURE__ */ jsx20(Calculator, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26906
+ /* @__PURE__ */ jsx20(
26824
26907
  Input,
26825
26908
  {
26826
26909
  type: "number",
@@ -26840,26 +26923,33 @@ var NumberInput = ({ className, style, ...props }) => {
26840
26923
  }
26841
26924
  )
26842
26925
  ] }),
26843
- props.errorMessage && /* @__PURE__ */ jsx18("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26926
+ props.errorMessage && /* @__PURE__ */ jsx20("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26844
26927
  ] });
26845
26928
  };
26846
26929
  var NumberInput_default = NumberInput;
26847
26930
 
26848
26931
  // src/components/Inputs/EmailInput/EmailInput.tsx
26849
- import { Fragment as Fragment4, jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
26932
+ import { useEffect as useEffect4 } from "react";
26933
+ import { Fragment as Fragment4, jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
26850
26934
  var EmailInput = ({ className, style, ...props }) => {
26851
26935
  const placeholder = props.placeholder ?? "Placeholder text";
26852
26936
  const isEditable = props.isEditable ?? true;
26853
26937
  const isDisabled = props.isDisabled ?? false;
26854
26938
  const isReadonly = props.isReadonly ?? false;
26855
26939
  const isAutocomplete = props.isAutocomplete ?? false;
26940
+ useEffect4(() => {
26941
+ if (props.value !== void 0) {
26942
+ const e = { target: { value: props.value } };
26943
+ handleChange?.(e);
26944
+ }
26945
+ }, []);
26856
26946
  const handleChange = (e) => {
26857
26947
  props.onChange?.(e);
26858
26948
  };
26859
- return /* @__PURE__ */ jsxs8(Fragment4, { children: [
26860
- /* @__PURE__ */ jsxs8("div", { className: "flex justify-start items-center relative", children: [
26861
- /* @__PURE__ */ jsx19(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26862
- /* @__PURE__ */ jsx19(
26949
+ return /* @__PURE__ */ jsxs9(Fragment4, { children: [
26950
+ /* @__PURE__ */ jsxs9("div", { className: "flex justify-start items-center relative", children: [
26951
+ /* @__PURE__ */ jsx21(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26952
+ /* @__PURE__ */ jsx21(
26863
26953
  Input,
26864
26954
  {
26865
26955
  type: "email",
@@ -26878,26 +26968,33 @@ var EmailInput = ({ className, style, ...props }) => {
26878
26968
  }
26879
26969
  )
26880
26970
  ] }),
26881
- props.errorMessage && /* @__PURE__ */ jsx19("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26971
+ props.errorMessage && /* @__PURE__ */ jsx21("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26882
26972
  ] });
26883
26973
  };
26884
26974
  var EmailInput_default = EmailInput;
26885
26975
 
26886
26976
  // src/components/Inputs/PasswordInput/PasswordInput.tsx
26887
- import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
26977
+ import { useEffect as useEffect5 } from "react";
26978
+ import { Fragment as Fragment5, jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
26888
26979
  var PasswordInput = ({ className, style, ...props }) => {
26889
26980
  const placeholder = props.placeholder ?? "Placeholder text";
26890
26981
  const isEditable = props.isEditable ?? true;
26891
26982
  const isDisabled = props.isDisabled ?? false;
26892
26983
  const isReadonly = props.isReadonly ?? false;
26893
26984
  const isAutocomplete = props.isAutocomplete ?? false;
26985
+ useEffect5(() => {
26986
+ if (props.value !== void 0) {
26987
+ const e = { target: { value: props.value } };
26988
+ handleChange?.(e);
26989
+ }
26990
+ }, []);
26894
26991
  const handleChange = (e) => {
26895
26992
  props.onChange?.(e);
26896
26993
  };
26897
- return /* @__PURE__ */ jsxs9(Fragment5, { children: [
26898
- /* @__PURE__ */ jsxs9("div", { className: "flex justify-start items-center relative", children: [
26899
- /* @__PURE__ */ jsx20(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26900
- /* @__PURE__ */ jsx20(
26994
+ return /* @__PURE__ */ jsxs10(Fragment5, { children: [
26995
+ /* @__PURE__ */ jsxs10("div", { className: "flex justify-start items-center relative", children: [
26996
+ /* @__PURE__ */ jsx22(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
26997
+ /* @__PURE__ */ jsx22(
26901
26998
  Input,
26902
26999
  {
26903
27000
  type: "password",
@@ -26917,15 +27014,18 @@ var PasswordInput = ({ className, style, ...props }) => {
26917
27014
  }
26918
27015
  )
26919
27016
  ] }),
26920
- props.errorMessage && /* @__PURE__ */ jsx20("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27017
+ props.errorMessage && /* @__PURE__ */ jsx22("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26921
27018
  ] });
26922
27019
  };
26923
27020
  var PasswordInput_default = PasswordInput;
26924
27021
 
27022
+ // src/components/Inputs/Textarea/Textarea.tsx
27023
+ import { useEffect as useEffect6 } from "react";
27024
+
26925
27025
  // src/components/ui/textarea.tsx
26926
- import { jsx as jsx21 } from "react/jsx-runtime";
27026
+ import { jsx as jsx23 } from "react/jsx-runtime";
26927
27027
  function Textarea({ className, ...props }) {
26928
- return /* @__PURE__ */ jsx21(
27028
+ return /* @__PURE__ */ jsx23(
26929
27029
  "textarea",
26930
27030
  {
26931
27031
  "data-slot": "textarea",
@@ -26939,18 +27039,24 @@ function Textarea({ className, ...props }) {
26939
27039
  }
26940
27040
 
26941
27041
  // src/components/Inputs/Textarea/Textarea.tsx
26942
- import { Fragment as Fragment6, jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
27042
+ import { Fragment as Fragment6, jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
26943
27043
  var Textarea2 = ({ className, style, ...props }) => {
26944
27044
  const placeholder = props.placeholder ?? "Placeholder text";
26945
27045
  const isEditable = props.isEditable ?? true;
26946
27046
  const isDisabled = props.isDisabled ?? false;
26947
27047
  const isReadonly = props.isReadonly ?? false;
26948
27048
  const isAutocomplete = props.isAutocomplete ?? false;
27049
+ useEffect6(() => {
27050
+ if (props.value !== void 0) {
27051
+ const e = { target: { value: props.value } };
27052
+ handleChange?.(e);
27053
+ }
27054
+ }, []);
26949
27055
  const handleChange = (e) => {
26950
27056
  props.onChange?.(e);
26951
27057
  };
26952
- return /* @__PURE__ */ jsxs10(Fragment6, { children: [
26953
- /* @__PURE__ */ jsx22(
27058
+ return /* @__PURE__ */ jsxs11(Fragment6, { children: [
27059
+ /* @__PURE__ */ jsx24(
26954
27060
  Textarea,
26955
27061
  {
26956
27062
  id: "textarea-field",
@@ -26968,26 +27074,33 @@ var Textarea2 = ({ className, style, ...props }) => {
26968
27074
  readOnly: isReadonly
26969
27075
  }
26970
27076
  ),
26971
- props.errorMessage && /* @__PURE__ */ jsx22("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27077
+ props.errorMessage && /* @__PURE__ */ jsx24("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
26972
27078
  ] });
26973
27079
  };
26974
27080
  var Textarea_default = Textarea2;
26975
27081
 
26976
27082
  // src/components/Inputs/UrlInput/UrlInput.tsx
26977
- import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
27083
+ import { useEffect as useEffect7 } from "react";
27084
+ import { Fragment as Fragment7, jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
26978
27085
  var UrlInput = ({ className, style, ...props }) => {
26979
27086
  const placeholder = props.placeholder ?? "Placeholder text";
26980
27087
  const isEditable = props.isEditable ?? true;
26981
27088
  const isDisabled = props.isDisabled ?? false;
26982
27089
  const isReadonly = props.isReadonly ?? false;
26983
27090
  const isAutocomplete = props.isAutocomplete ?? false;
27091
+ useEffect7(() => {
27092
+ if (props.value !== void 0) {
27093
+ const e = { target: { value: props.value } };
27094
+ handleChange?.(e);
27095
+ }
27096
+ }, []);
26984
27097
  const handleChange = (e) => {
26985
27098
  props.onChange?.(e);
26986
27099
  };
26987
- return /* @__PURE__ */ jsxs11(Fragment7, { children: [
26988
- /* @__PURE__ */ jsxs11("div", { className: "flex justify-start items-center relative", children: [
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(
27100
+ return /* @__PURE__ */ jsxs12(Fragment7, { children: [
27101
+ /* @__PURE__ */ jsxs12("div", { className: "flex justify-start items-center relative", children: [
27102
+ /* @__PURE__ */ jsx25("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://" }),
27103
+ /* @__PURE__ */ jsx25(
26991
27104
  Input,
26992
27105
  {
26993
27106
  id: "url-field",
@@ -27007,19 +27120,22 @@ var UrlInput = ({ className, style, ...props }) => {
27007
27120
  }
27008
27121
  )
27009
27122
  ] }),
27010
- props.errorMessage && /* @__PURE__ */ jsx23("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27123
+ props.errorMessage && /* @__PURE__ */ jsx25("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27011
27124
  ] });
27012
27125
  };
27013
27126
  var UrlInput_default = UrlInput;
27014
27127
 
27128
+ // src/components/Inputs/Checkbox/Checkbox.tsx
27129
+ import { useEffect as useEffect8 } from "react";
27130
+
27015
27131
  // src/components/ui/checkbox.tsx
27016
27132
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
27017
- import { jsx as jsx24 } from "react/jsx-runtime";
27133
+ import { jsx as jsx26 } from "react/jsx-runtime";
27018
27134
  function Checkbox({
27019
27135
  className,
27020
27136
  ...props
27021
27137
  }) {
27022
- return /* @__PURE__ */ jsx24(
27138
+ return /* @__PURE__ */ jsx26(
27023
27139
  CheckboxPrimitive.Root,
27024
27140
  {
27025
27141
  "data-slot": "checkbox",
@@ -27028,12 +27144,12 @@ function Checkbox({
27028
27144
  className
27029
27145
  ),
27030
27146
  ...props,
27031
- children: /* @__PURE__ */ jsx24(
27147
+ children: /* @__PURE__ */ jsx26(
27032
27148
  CheckboxPrimitive.Indicator,
27033
27149
  {
27034
27150
  "data-slot": "checkbox-indicator",
27035
27151
  className: "flex items-center justify-center text-current transition-none",
27036
- children: /* @__PURE__ */ jsx24(Check, { className: "size-3.5" })
27152
+ children: /* @__PURE__ */ jsx26(Check, { className: "size-3.5" })
27037
27153
  }
27038
27154
  )
27039
27155
  }
@@ -27042,12 +27158,12 @@ function Checkbox({
27042
27158
 
27043
27159
  // src/components/ui/label.tsx
27044
27160
  import * as LabelPrimitive from "@radix-ui/react-label";
27045
- import { jsx as jsx25 } from "react/jsx-runtime";
27161
+ import { jsx as jsx27 } from "react/jsx-runtime";
27046
27162
  function Label2({
27047
27163
  className,
27048
27164
  ...props
27049
27165
  }) {
27050
- return /* @__PURE__ */ jsx25(
27166
+ return /* @__PURE__ */ jsx27(
27051
27167
  LabelPrimitive.Root,
27052
27168
  {
27053
27169
  "data-slot": "label",
@@ -27061,17 +27177,22 @@ function Label2({
27061
27177
  }
27062
27178
 
27063
27179
  // src/components/Inputs/Checkbox/Checkbox.tsx
27064
- import { Fragment as Fragment8, jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
27180
+ import { Fragment as Fragment8, jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
27065
27181
  var CheckboxInput = ({ className, style, ...props }) => {
27066
27182
  const isEditable = props.isEditable ?? true;
27067
27183
  const isDisabled = props.isDisabled ?? false;
27068
27184
  const text = props.text ? props.text : "Subscribe";
27185
+ useEffect8(() => {
27186
+ if (props.value) {
27187
+ handleChange(props.value);
27188
+ }
27189
+ }, []);
27069
27190
  const handleChange = (value) => {
27070
27191
  props.onChange?.(value);
27071
27192
  };
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(
27193
+ return /* @__PURE__ */ jsxs13(Fragment8, { children: [
27194
+ /* @__PURE__ */ jsx28("div", { className, style, children: /* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-2", children: [
27195
+ /* @__PURE__ */ jsx28(
27075
27196
  Checkbox,
27076
27197
  {
27077
27198
  id: props.name || "checkbox",
@@ -27080,21 +27201,24 @@ var CheckboxInput = ({ className, style, ...props }) => {
27080
27201
  disabled: !isEditable || isDisabled
27081
27202
  }
27082
27203
  ),
27083
- /* @__PURE__ */ jsx26(Label2, { htmlFor: props.name || "checkbox", children: text })
27204
+ /* @__PURE__ */ jsx28(Label2, { htmlFor: props.name || "checkbox", children: text })
27084
27205
  ] }) }),
27085
- props.errorMessage && /* @__PURE__ */ jsx26("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27206
+ props.errorMessage && /* @__PURE__ */ jsx28("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27086
27207
  ] });
27087
27208
  };
27088
27209
  var Checkbox_default = CheckboxInput;
27089
27210
 
27211
+ // src/components/Inputs/RadioInput/RadioInput.tsx
27212
+ import { useEffect as useEffect9 } from "react";
27213
+
27090
27214
  // src/components/ui/radio-group.tsx
27091
27215
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
27092
- import { jsx as jsx27 } from "react/jsx-runtime";
27216
+ import { jsx as jsx29 } from "react/jsx-runtime";
27093
27217
  function RadioGroup2({
27094
27218
  className,
27095
27219
  ...props
27096
27220
  }) {
27097
- return /* @__PURE__ */ jsx27(
27221
+ return /* @__PURE__ */ jsx29(
27098
27222
  RadioGroupPrimitive.Root,
27099
27223
  {
27100
27224
  "data-slot": "radio-group",
@@ -27107,7 +27231,7 @@ function RadioGroupItem({
27107
27231
  className,
27108
27232
  ...props
27109
27233
  }) {
27110
- return /* @__PURE__ */ jsx27(
27234
+ return /* @__PURE__ */ jsx29(
27111
27235
  RadioGroupPrimitive.Item,
27112
27236
  {
27113
27237
  "data-slot": "radio-group-item",
@@ -27116,12 +27240,12 @@ function RadioGroupItem({
27116
27240
  className
27117
27241
  ),
27118
27242
  ...props,
27119
- children: /* @__PURE__ */ jsx27(
27243
+ children: /* @__PURE__ */ jsx29(
27120
27244
  RadioGroupPrimitive.Indicator,
27121
27245
  {
27122
27246
  "data-slot": "radio-group-indicator",
27123
27247
  className: "relative flex items-center justify-center",
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" })
27248
+ children: /* @__PURE__ */ jsx29(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
27125
27249
  }
27126
27250
  )
27127
27251
  }
@@ -27129,7 +27253,7 @@ function RadioGroupItem({
27129
27253
  }
27130
27254
 
27131
27255
  // src/components/Inputs/RadioInput/RadioInput.tsx
27132
- import { Fragment as Fragment9, jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
27256
+ import { Fragment as Fragment9, jsx as jsx30, jsxs as jsxs14 } from "react/jsx-runtime";
27133
27257
  var RadioInput = ({
27134
27258
  className,
27135
27259
  style,
@@ -27145,33 +27269,38 @@ var RadioInput = ({
27145
27269
  value: item[dataKey || "value"],
27146
27270
  label: item[dataLabel || "label"]
27147
27271
  }));
27272
+ useEffect9(() => {
27273
+ if (props.value !== void 0) {
27274
+ handleChange?.(props.value);
27275
+ }
27276
+ }, []);
27148
27277
  const handleChange = (value) => {
27149
27278
  onChange?.(value);
27150
27279
  };
27151
27280
  const resolvedDefaultValue = (typeof defaultValue === "string" ? defaultValue : void 0) ?? options[0]?.value;
27152
- return /* @__PURE__ */ jsxs13(Fragment9, { children: [
27153
- /* @__PURE__ */ jsx28("div", { className, style, children: /* @__PURE__ */ jsxs13(
27281
+ return /* @__PURE__ */ jsxs14(Fragment9, { children: [
27282
+ /* @__PURE__ */ jsx30("div", { className, style, children: /* @__PURE__ */ jsxs14(
27154
27283
  RadioGroup2,
27155
27284
  {
27156
27285
  defaultValue: resolvedDefaultValue,
27157
27286
  onValueChange: handleChange,
27158
27287
  children: [
27159
- options.length === 0 && /* @__PURE__ */ jsx28("div", { className: "text-sm text-gray-500", children: "No options available" }),
27160
- options.map((item) => /* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-2", children: [
27161
- /* @__PURE__ */ jsx28(RadioGroupItem, { value: item.value, id: `radio-${item.value}` }),
27162
- /* @__PURE__ */ jsx28(Label2, { htmlFor: `radio-${item.value}`, children: item.label })
27288
+ options.length === 0 && /* @__PURE__ */ jsx30("div", { className: "text-sm text-gray-500", children: "No options available" }),
27289
+ options.map((item) => /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-2", children: [
27290
+ /* @__PURE__ */ jsx30(RadioGroupItem, { value: item.value, id: `radio-${item.value}` }),
27291
+ /* @__PURE__ */ jsx30(Label2, { htmlFor: `radio-${item.value}`, children: item.label })
27163
27292
  ] }, item.value))
27164
27293
  ]
27165
27294
  }
27166
27295
  ) }),
27167
- props.errorMessage && /* @__PURE__ */ jsx28("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27296
+ props.errorMessage && /* @__PURE__ */ jsx30("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27168
27297
  ] });
27169
27298
  };
27170
27299
  var RadioInput_default = RadioInput;
27171
27300
 
27172
27301
  // src/components/Inputs/MultiCheckbox/MultiCheckbox.tsx
27173
- import { useCallback, useState as useState2 } from "react";
27174
- import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
27302
+ import { useCallback, useEffect as useEffect10, useState as useState2 } from "react";
27303
+ import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
27175
27304
  var MultiCheckbox = ({
27176
27305
  className,
27177
27306
  style,
@@ -27189,6 +27318,11 @@ var MultiCheckbox = ({
27189
27318
  value: item[dataKey || "value"],
27190
27319
  label: item[dataLabel || "label"]
27191
27320
  }));
27321
+ useEffect10(() => {
27322
+ if (propValue !== void 0) {
27323
+ onChange?.(propValue);
27324
+ }
27325
+ }, []);
27192
27326
  const handleChange = useCallback(
27193
27327
  (key, checked) => {
27194
27328
  setValue((prev) => {
@@ -27199,15 +27333,15 @@ var MultiCheckbox = ({
27199
27333
  },
27200
27334
  [onChange]
27201
27335
  );
27202
- return /* @__PURE__ */ jsxs14(
27336
+ return /* @__PURE__ */ jsxs15(
27203
27337
  "div",
27204
27338
  {
27205
27339
  className: cn("flex flex-col gap-3", className),
27206
27340
  style,
27207
27341
  children: [
27208
- options.length === 0 && /* @__PURE__ */ jsx29("p", { className: "text-sm text-gray-500", children: "No options available." }),
27209
- options.map((opt) => /* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-2", children: [
27210
- /* @__PURE__ */ jsx29(
27342
+ options.length === 0 && /* @__PURE__ */ jsx31("p", { className: "text-sm text-gray-500", children: "No options available." }),
27343
+ options.map((opt) => /* @__PURE__ */ jsxs15("div", { className: "flex items-center space-x-2", children: [
27344
+ /* @__PURE__ */ jsx31(
27211
27345
  Checkbox,
27212
27346
  {
27213
27347
  id: opt.value,
@@ -27216,7 +27350,7 @@ var MultiCheckbox = ({
27216
27350
  disabled: !isEditable || isDisabled
27217
27351
  }
27218
27352
  ),
27219
- /* @__PURE__ */ jsx29(Label2, { htmlFor: opt.value, children: opt.label })
27353
+ /* @__PURE__ */ jsx31(Label2, { htmlFor: opt.value, children: opt.label })
27220
27354
  ] }, opt.value))
27221
27355
  ]
27222
27356
  }
@@ -27224,10 +27358,13 @@ var MultiCheckbox = ({
27224
27358
  };
27225
27359
  var MultiCheckbox_default = MultiCheckbox;
27226
27360
 
27361
+ // src/components/Inputs/RichText/RichText.tsx
27362
+ import { useEffect as useEffect11 } from "react";
27363
+
27227
27364
  // src/components/Global/TinyMceEditor.tsx
27228
- import { useMemo, useRef } from "react";
27365
+ import { useMemo as useMemo2, useRef } from "react";
27229
27366
  import { Editor } from "@tinymce/tinymce-react";
27230
- import { jsx as jsx30 } from "react/jsx-runtime";
27367
+ import { jsx as jsx32 } from "react/jsx-runtime";
27231
27368
  function MyEditor({
27232
27369
  value,
27233
27370
  onChange,
@@ -27245,14 +27382,14 @@ function MyEditor({
27245
27382
  }
27246
27383
  return trimmedHtml;
27247
27384
  }
27248
- const isDefaultToolbar = useMemo(() => {
27385
+ const isDefaultToolbar = useMemo2(() => {
27249
27386
  let toolbar = "undo redo | formatselect | bold italic forecolor";
27250
27387
  if (isDefault) {
27251
27388
  toolbar = "undo redo | blocks | bold italic forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help";
27252
27389
  }
27253
27390
  return toolbar;
27254
27391
  }, [isDefault]);
27255
- return /* @__PURE__ */ jsx30(
27392
+ return /* @__PURE__ */ jsx32(
27256
27393
  Editor,
27257
27394
  {
27258
27395
  apiKey: process.env.NEXT_PUBLIC_TINYMCE_API_KEY,
@@ -27296,9 +27433,17 @@ function MyEditor({
27296
27433
  }
27297
27434
 
27298
27435
  // src/components/Inputs/RichText/RichText.tsx
27299
- import { jsx as jsx31, jsxs as jsxs15 } from "react/jsx-runtime";
27436
+ import { jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
27300
27437
  function RichText({ className, style, ...props }) {
27301
- return /* @__PURE__ */ jsxs15(
27438
+ useEffect11(() => {
27439
+ if (props.value !== void 0) {
27440
+ handleChange?.(props.value);
27441
+ }
27442
+ }, []);
27443
+ const handleChange = (content) => {
27444
+ props.onChange?.(content);
27445
+ };
27446
+ return /* @__PURE__ */ jsxs16(
27302
27447
  "div",
27303
27448
  {
27304
27449
  className: cn(className, props.errorMessage ? "border-red-500" : ""),
@@ -27307,25 +27452,28 @@ function RichText({ className, style, ...props }) {
27307
27452
  borderColor: props.errorMessage ? "#f87171" : style?.borderColor
27308
27453
  },
27309
27454
  children: [
27310
- /* @__PURE__ */ jsx31(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value || "", isDefault: true }),
27311
- props.errorMessage && /* @__PURE__ */ jsx31("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27455
+ /* @__PURE__ */ jsx33(MyEditor, { onChange: handleChange, value: props.value || "", isDefault: true }),
27456
+ props.errorMessage && /* @__PURE__ */ jsx33("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27312
27457
  ]
27313
27458
  }
27314
27459
  );
27315
27460
  }
27316
27461
 
27462
+ // src/components/Inputs/Dropdown/Dropdown.tsx
27463
+ import { useEffect as useEffect12 } from "react";
27464
+
27317
27465
  // src/components/ui/select.tsx
27318
27466
  import * as SelectPrimitive from "@radix-ui/react-select";
27319
- import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
27467
+ import { jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
27320
27468
  function Select({
27321
27469
  ...props
27322
27470
  }) {
27323
- return /* @__PURE__ */ jsx32(SelectPrimitive.Root, { "data-slot": "select", ...props });
27471
+ return /* @__PURE__ */ jsx34(SelectPrimitive.Root, { "data-slot": "select", ...props });
27324
27472
  }
27325
27473
  function SelectValue({
27326
27474
  ...props
27327
27475
  }) {
27328
- return /* @__PURE__ */ jsx32(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
27476
+ return /* @__PURE__ */ jsx34(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
27329
27477
  }
27330
27478
  function SelectTrigger({
27331
27479
  className,
@@ -27333,7 +27481,7 @@ function SelectTrigger({
27333
27481
  children,
27334
27482
  ...props
27335
27483
  }) {
27336
- return /* @__PURE__ */ jsxs16(
27484
+ return /* @__PURE__ */ jsxs17(
27337
27485
  SelectPrimitive.Trigger,
27338
27486
  {
27339
27487
  "data-slot": "select-trigger",
@@ -27345,7 +27493,7 @@ function SelectTrigger({
27345
27493
  ...props,
27346
27494
  children: [
27347
27495
  children,
27348
- /* @__PURE__ */ jsx32(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx32(ChevronDown, { className: "size-4 opacity-50" }) })
27496
+ /* @__PURE__ */ jsx34(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx34(ChevronDown, { className: "size-4 opacity-50" }) })
27349
27497
  ]
27350
27498
  }
27351
27499
  );
@@ -27356,7 +27504,7 @@ function SelectContent({
27356
27504
  position = "popper",
27357
27505
  ...props
27358
27506
  }) {
27359
- return /* @__PURE__ */ jsx32(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs16(
27507
+ return /* @__PURE__ */ jsx34(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs17(
27360
27508
  SelectPrimitive.Content,
27361
27509
  {
27362
27510
  "data-slot": "select-content",
@@ -27368,8 +27516,8 @@ function SelectContent({
27368
27516
  position,
27369
27517
  ...props,
27370
27518
  children: [
27371
- /* @__PURE__ */ jsx32(SelectScrollUpButton, {}),
27372
- /* @__PURE__ */ jsx32(
27519
+ /* @__PURE__ */ jsx34(SelectScrollUpButton, {}),
27520
+ /* @__PURE__ */ jsx34(
27373
27521
  SelectPrimitive.Viewport,
27374
27522
  {
27375
27523
  className: cn(
@@ -27379,7 +27527,7 @@ function SelectContent({
27379
27527
  children
27380
27528
  }
27381
27529
  ),
27382
- /* @__PURE__ */ jsx32(SelectScrollDownButton, {})
27530
+ /* @__PURE__ */ jsx34(SelectScrollDownButton, {})
27383
27531
  ]
27384
27532
  }
27385
27533
  ) });
@@ -27389,7 +27537,7 @@ function SelectItem({
27389
27537
  children,
27390
27538
  ...props
27391
27539
  }) {
27392
- return /* @__PURE__ */ jsxs16(
27540
+ return /* @__PURE__ */ jsxs17(
27393
27541
  SelectPrimitive.Item,
27394
27542
  {
27395
27543
  "data-slot": "select-item",
@@ -27399,8 +27547,8 @@ function SelectItem({
27399
27547
  ),
27400
27548
  ...props,
27401
27549
  children: [
27402
- /* @__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" }) }) }),
27403
- /* @__PURE__ */ jsx32(SelectPrimitive.ItemText, { children })
27550
+ /* @__PURE__ */ jsx34("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx34(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx34(Check, { className: "size-4" }) }) }),
27551
+ /* @__PURE__ */ jsx34(SelectPrimitive.ItemText, { children })
27404
27552
  ]
27405
27553
  }
27406
27554
  );
@@ -27409,7 +27557,7 @@ function SelectScrollUpButton({
27409
27557
  className,
27410
27558
  ...props
27411
27559
  }) {
27412
- return /* @__PURE__ */ jsx32(
27560
+ return /* @__PURE__ */ jsx34(
27413
27561
  SelectPrimitive.ScrollUpButton,
27414
27562
  {
27415
27563
  "data-slot": "select-scroll-up-button",
@@ -27418,7 +27566,7 @@ function SelectScrollUpButton({
27418
27566
  className
27419
27567
  ),
27420
27568
  ...props,
27421
- children: /* @__PURE__ */ jsx32(ChevronUp, { className: "size-4" })
27569
+ children: /* @__PURE__ */ jsx34(ChevronUp, { className: "size-4" })
27422
27570
  }
27423
27571
  );
27424
27572
  }
@@ -27426,7 +27574,7 @@ function SelectScrollDownButton({
27426
27574
  className,
27427
27575
  ...props
27428
27576
  }) {
27429
- return /* @__PURE__ */ jsx32(
27577
+ return /* @__PURE__ */ jsx34(
27430
27578
  SelectPrimitive.ScrollDownButton,
27431
27579
  {
27432
27580
  "data-slot": "select-scroll-down-button",
@@ -27435,19 +27583,24 @@ function SelectScrollDownButton({
27435
27583
  className
27436
27584
  ),
27437
27585
  ...props,
27438
- children: /* @__PURE__ */ jsx32(ChevronDown, { className: "size-4" })
27586
+ children: /* @__PURE__ */ jsx34(ChevronDown, { className: "size-4" })
27439
27587
  }
27440
27588
  );
27441
27589
  }
27442
27590
 
27443
27591
  // src/components/Inputs/Dropdown/Dropdown.tsx
27444
- import { Fragment as Fragment10, jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
27592
+ import { Fragment as Fragment10, jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
27445
27593
  var Dropdown = ({ className, style, ...props }) => {
27446
27594
  const list = Array.isArray(props?.data) ? props.data : [];
27447
27595
  const placeholder = props.placeholder ? props.placeholder : "Placeholder text";
27448
27596
  const isEditable = props.isEditable ?? true;
27449
27597
  const isDisabled = props.isDisabled ?? false;
27450
27598
  const isReadonly = props.isReadonly ?? false;
27599
+ useEffect12(() => {
27600
+ if (props.value !== void 0) {
27601
+ handleChange(props.value);
27602
+ }
27603
+ }, []);
27451
27604
  const handleChange = (value) => {
27452
27605
  props.onChange?.(value);
27453
27606
  };
@@ -27457,9 +27610,9 @@ var Dropdown = ({ className, style, ...props }) => {
27457
27610
  value: item[dataKey],
27458
27611
  label: item[dataLabel]
27459
27612
  }));
27460
- return /* @__PURE__ */ jsxs17(Fragment10, { children: [
27461
- /* @__PURE__ */ jsxs17(Select, { name: props.name, value: props.value || "", onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
27462
- /* @__PURE__ */ jsx33(
27613
+ return /* @__PURE__ */ jsxs18(Fragment10, { children: [
27614
+ /* @__PURE__ */ jsxs18(Select, { name: props.name, value: props.value || "", onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
27615
+ /* @__PURE__ */ jsx35(
27463
27616
  SelectTrigger,
27464
27617
  {
27465
27618
  id: props.name || "select-field",
@@ -27469,24 +27622,31 @@ var Dropdown = ({ className, style, ...props }) => {
27469
27622
  borderColor: props.errorMessage ? "#f87171" : style?.borderColor
27470
27623
  },
27471
27624
  "aria-readonly": isReadonly,
27472
- children: /* @__PURE__ */ jsx33(SelectValue, { placeholder })
27625
+ children: /* @__PURE__ */ jsx35(SelectValue, { placeholder })
27473
27626
  }
27474
27627
  ),
27475
- /* @__PURE__ */ jsx33(SelectContent, { children: options.map((opt) => /* @__PURE__ */ jsx33(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
27628
+ /* @__PURE__ */ jsxs18(SelectContent, { children: [
27629
+ props.dataLoading && /* @__PURE__ */ jsx35(SelectItem, { value: "none", disabled: true, children: "Loading..." }),
27630
+ !props.dataLoading && options.length === 0 && /* @__PURE__ */ jsx35(SelectItem, { value: "none", disabled: true, children: "No options" }),
27631
+ options.map((opt) => /* @__PURE__ */ jsx35(SelectItem, { value: opt.value, children: opt.label }, opt.value))
27632
+ ] })
27476
27633
  ] }),
27477
- props.errorMessage && /* @__PURE__ */ jsx33("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27634
+ props.errorMessage && /* @__PURE__ */ jsx35("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27478
27635
  ] });
27479
27636
  };
27480
27637
  var Dropdown_default = Dropdown;
27481
27638
 
27639
+ // src/components/Inputs/SwitchToggle/SwitchToggle.tsx
27640
+ import { useEffect as useEffect13 } from "react";
27641
+
27482
27642
  // src/components/ui/switch.tsx
27483
27643
  import * as SwitchPrimitive from "@radix-ui/react-switch";
27484
- import { jsx as jsx34 } from "react/jsx-runtime";
27644
+ import { jsx as jsx36 } from "react/jsx-runtime";
27485
27645
  function Switch({
27486
27646
  className,
27487
27647
  ...props
27488
27648
  }) {
27489
- return /* @__PURE__ */ jsx34(
27649
+ return /* @__PURE__ */ jsx36(
27490
27650
  SwitchPrimitive.Root,
27491
27651
  {
27492
27652
  "data-slot": "switch",
@@ -27495,7 +27655,7 @@ function Switch({
27495
27655
  className
27496
27656
  ),
27497
27657
  ...props,
27498
- children: /* @__PURE__ */ jsx34(
27658
+ children: /* @__PURE__ */ jsx36(
27499
27659
  SwitchPrimitive.Thumb,
27500
27660
  {
27501
27661
  "data-slot": "switch-thumb",
@@ -27509,16 +27669,21 @@ function Switch({
27509
27669
  }
27510
27670
 
27511
27671
  // src/components/Inputs/SwitchToggle/SwitchToggle.tsx
27512
- import { Fragment as Fragment11, jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
27672
+ import { Fragment as Fragment11, jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
27513
27673
  var SwitchToggle = ({ className, style, ...props }) => {
27514
27674
  const isEditable = props.isEditable ?? true;
27515
27675
  const isDisabled = props.isDisabled ?? false;
27676
+ useEffect13(() => {
27677
+ if (props.value !== void 0) {
27678
+ handleChange?.(props.value);
27679
+ }
27680
+ }, []);
27516
27681
  const handleChange = (value) => {
27517
27682
  props.onChange?.(value);
27518
27683
  };
27519
- return /* @__PURE__ */ jsxs18(Fragment11, { children: [
27520
- /* @__PURE__ */ jsx35("div", { className, style, children: /* @__PURE__ */ jsxs18("div", { className: "flex items-center space-x-2 mb-2", children: [
27521
- /* @__PURE__ */ jsx35(
27684
+ return /* @__PURE__ */ jsxs19(Fragment11, { children: [
27685
+ /* @__PURE__ */ jsx37("div", { className, style, children: /* @__PURE__ */ jsxs19("div", { className: "flex items-center space-x-2 mb-2", children: [
27686
+ /* @__PURE__ */ jsx37(
27522
27687
  Switch,
27523
27688
  {
27524
27689
  id: props.name || "switch",
@@ -27527,26 +27692,32 @@ var SwitchToggle = ({ className, style, ...props }) => {
27527
27692
  disabled: isDisabled || !isEditable
27528
27693
  }
27529
27694
  ),
27530
- /* @__PURE__ */ jsx35(Label2, { htmlFor: props.name || "switch", children: props.text })
27695
+ /* @__PURE__ */ jsx37(Label2, { htmlFor: props.name || "switch", children: props.text })
27531
27696
  ] }) }),
27532
- props.errorMessage && /* @__PURE__ */ jsx35("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27697
+ props.errorMessage && /* @__PURE__ */ jsx37("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27533
27698
  ] });
27534
27699
  };
27535
27700
  var SwitchToggle_default = SwitchToggle;
27536
27701
 
27537
27702
  // src/components/Inputs/PhoneInput/PhoneInput.tsx
27703
+ import { useEffect as useEffect14 } from "react";
27538
27704
  import { PhoneInput as PhoneInputField } from "react-international-phone";
27539
27705
  import "react-international-phone/style.css";
27540
- import { Fragment as Fragment12, jsx as jsx36, jsxs as jsxs19 } from "react/jsx-runtime";
27706
+ import { Fragment as Fragment12, jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
27541
27707
  var PhoneInput = ({ className, style, ...props }) => {
27542
27708
  const placeholder = props.placeholder ?? "Enter phone number";
27543
27709
  const isEditable = props.isEditable ?? true;
27544
27710
  const isDisabled = props.isDisabled ?? false;
27711
+ useEffect14(() => {
27712
+ if (props.value !== void 0) {
27713
+ handleChange?.(props.value);
27714
+ }
27715
+ }, []);
27545
27716
  const handleChange = (val) => {
27546
27717
  props.onChange?.(val);
27547
27718
  };
27548
- return /* @__PURE__ */ jsxs19(Fragment12, { children: [
27549
- /* @__PURE__ */ jsx36(
27719
+ return /* @__PURE__ */ jsxs20(Fragment12, { children: [
27720
+ /* @__PURE__ */ jsx38(
27550
27721
  PhoneInputField,
27551
27722
  {
27552
27723
  defaultCountry: "in",
@@ -27570,26 +27741,33 @@ var PhoneInput = ({ className, style, ...props }) => {
27570
27741
  disabled: isDisabled || !isEditable
27571
27742
  }
27572
27743
  ),
27573
- props.errorMessage && /* @__PURE__ */ jsx36("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27744
+ props.errorMessage && /* @__PURE__ */ jsx38("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27574
27745
  ] });
27575
27746
  };
27576
27747
  var PhoneInput_default = PhoneInput;
27577
27748
 
27578
27749
  // src/components/Inputs/SearchInput/SearchInput.tsx
27579
- import { Fragment as Fragment13, jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
27750
+ import { useEffect as useEffect15 } from "react";
27751
+ import { Fragment as Fragment13, jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
27580
27752
  var SearchInput = ({ className, style, ...props }) => {
27581
27753
  const placeholder = props.placeholder ?? "Placeholder text";
27582
27754
  const isEditable = props.isEditable ?? true;
27583
27755
  const isDisabled = props.isDisabled ?? false;
27584
27756
  const isReadonly = props.isReadonly ?? false;
27585
27757
  const isAutocomplete = props.isAutocomplete ?? false;
27758
+ useEffect15(() => {
27759
+ if (props.value !== void 0) {
27760
+ const e = { target: { value: props.value } };
27761
+ handleChange?.(e);
27762
+ }
27763
+ }, []);
27586
27764
  const handleChange = (e) => {
27587
27765
  props.onChange?.(e);
27588
27766
  };
27589
- return /* @__PURE__ */ jsxs20(Fragment13, { children: [
27590
- /* @__PURE__ */ jsxs20("div", { className: "flex justify-start items-center relative", children: [
27591
- /* @__PURE__ */ jsx37(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27592
- /* @__PURE__ */ jsx37(
27767
+ return /* @__PURE__ */ jsxs21(Fragment13, { children: [
27768
+ /* @__PURE__ */ jsxs21("div", { className: "flex justify-start items-center relative", children: [
27769
+ /* @__PURE__ */ jsx39(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27770
+ /* @__PURE__ */ jsx39(
27593
27771
  Input,
27594
27772
  {
27595
27773
  type: "text",
@@ -27609,17 +27787,27 @@ var SearchInput = ({ className, style, ...props }) => {
27609
27787
  }
27610
27788
  )
27611
27789
  ] }),
27612
- props.errorMessage && /* @__PURE__ */ jsx37("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27790
+ props.errorMessage && /* @__PURE__ */ jsx39("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27613
27791
  ] });
27614
27792
  };
27615
27793
  var SearchInput_default = SearchInput;
27616
27794
 
27617
27795
  // src/components/Inputs/FileInput/FileInput.tsx
27618
- import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
27796
+ import { useEffect as useEffect16 } from "react";
27797
+ import { jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
27619
27798
  var FileInput2 = ({ className, style, ...props }) => {
27620
27799
  const placeholder = props.placeholder ?? "Placeholder text";
27621
- return /* @__PURE__ */ jsxs21("div", { className: "d-flex items-center relative align-middle", children: [
27622
- /* @__PURE__ */ jsx38(
27800
+ useEffect16(() => {
27801
+ if (props.value !== void 0) {
27802
+ const e = { target: { value: props.value } };
27803
+ handleChange?.(e);
27804
+ }
27805
+ }, []);
27806
+ const handleChange = (e) => {
27807
+ props.onChange?.(e);
27808
+ };
27809
+ return /* @__PURE__ */ jsxs22("div", { className: "d-flex items-center relative align-middle", children: [
27810
+ /* @__PURE__ */ jsx40(
27623
27811
  Input,
27624
27812
  {
27625
27813
  type: "file",
@@ -27633,18 +27821,17 @@ var FileInput2 = ({ className, style, ...props }) => {
27633
27821
  },
27634
27822
  autoComplete: "off",
27635
27823
  placeholder,
27636
- onChange: (e) => {
27637
- props.onChange?.(e);
27638
- }
27824
+ onChange: handleChange
27639
27825
  }
27640
27826
  ),
27641
- props.errorMessage && /* @__PURE__ */ jsx38("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27827
+ props.errorMessage && /* @__PURE__ */ jsx40("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27642
27828
  ] });
27643
27829
  };
27644
27830
  var FileInput_default = FileInput2;
27645
27831
 
27646
27832
  // src/components/Inputs/DatePicker/DatePicker.tsx
27647
- import { Fragment as Fragment14, jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
27833
+ import { useEffect as useEffect17 } from "react";
27834
+ import { Fragment as Fragment14, jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
27648
27835
  function DatePicker({ className, style, ...props }) {
27649
27836
  const placeholder = props.placeholder ?? "Placeholder text";
27650
27837
  const minimumDate = props.minimumDate ?? "none";
@@ -27669,13 +27856,18 @@ function DatePicker({ className, style, ...props }) {
27669
27856
  };
27670
27857
  const minDate = resolveDate(minimumDate, customMinimumDate);
27671
27858
  const maxDate = resolveDate(maximumDate, customMaximumDate);
27859
+ useEffect17(() => {
27860
+ if (props.value !== void 0) {
27861
+ handleChange(props.value);
27862
+ }
27863
+ }, []);
27672
27864
  const handleChange = (e) => {
27673
27865
  props.onChange?.(e);
27674
27866
  };
27675
- return /* @__PURE__ */ jsxs22(Fragment14, { children: [
27676
- /* @__PURE__ */ jsxs22("div", { className: "flex justify-start items-center relative", children: [
27677
- /* @__PURE__ */ jsx39(Calendar, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27678
- /* @__PURE__ */ jsx39(
27867
+ return /* @__PURE__ */ jsxs23(Fragment14, { children: [
27868
+ /* @__PURE__ */ jsxs23("div", { className: "flex justify-start items-center relative", children: [
27869
+ /* @__PURE__ */ jsx41(Calendar, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
27870
+ /* @__PURE__ */ jsx41(
27679
27871
  Input,
27680
27872
  {
27681
27873
  type: "date",
@@ -27701,18 +27893,18 @@ function DatePicker({ className, style, ...props }) {
27701
27893
  }
27702
27894
  )
27703
27895
  ] }),
27704
- props.errorMessage && /* @__PURE__ */ jsx39("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27896
+ props.errorMessage && /* @__PURE__ */ jsx41("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27705
27897
  ] });
27706
27898
  }
27707
27899
 
27708
27900
  // src/components/Inputs/DateRange/DateRange.tsx
27709
- import * as React4 from "react";
27901
+ import React5, { useEffect as useEffect19 } from "react";
27710
27902
  import { addDays, format } from "date-fns";
27711
27903
 
27712
27904
  // src/components/ui/calendar.tsx
27713
- import * as React3 from "react";
27905
+ import * as React4 from "react";
27714
27906
  import { DayPicker, getDefaultClassNames } from "react-day-picker";
27715
- import { jsx as jsx40 } from "react/jsx-runtime";
27907
+ import { jsx as jsx42 } from "react/jsx-runtime";
27716
27908
  function Calendar2({
27717
27909
  className,
27718
27910
  classNames,
@@ -27724,7 +27916,7 @@ function Calendar2({
27724
27916
  ...props
27725
27917
  }) {
27726
27918
  const defaultClassNames = getDefaultClassNames();
27727
- return /* @__PURE__ */ jsx40(
27919
+ return /* @__PURE__ */ jsx42(
27728
27920
  DayPicker,
27729
27921
  {
27730
27922
  showOutsideDays,
@@ -27823,7 +28015,7 @@ function Calendar2({
27823
28015
  },
27824
28016
  components: {
27825
28017
  Root: ({ className: className2, rootRef, ...props2 }) => {
27826
- return /* @__PURE__ */ jsx40(
28018
+ return /* @__PURE__ */ jsx42(
27827
28019
  "div",
27828
28020
  {
27829
28021
  "data-slot": "calendar",
@@ -27835,10 +28027,10 @@ function Calendar2({
27835
28027
  },
27836
28028
  Chevron: ({ className: className2, orientation, ...props2 }) => {
27837
28029
  if (orientation === "left") {
27838
- return /* @__PURE__ */ jsx40(ChevronLeft, { className: cn("size-4", className2), ...props2 });
28030
+ return /* @__PURE__ */ jsx42(ChevronLeft, { className: cn("size-4", className2), ...props2 });
27839
28031
  }
27840
28032
  if (orientation === "right") {
27841
- return /* @__PURE__ */ jsx40(
28033
+ return /* @__PURE__ */ jsx42(
27842
28034
  ChevronRight,
27843
28035
  {
27844
28036
  className: cn("size-4", className2),
@@ -27846,11 +28038,11 @@ function Calendar2({
27846
28038
  }
27847
28039
  );
27848
28040
  }
27849
- return /* @__PURE__ */ jsx40(ChevronDown, { className: cn("size-4", className2), ...props2 });
28041
+ return /* @__PURE__ */ jsx42(ChevronDown, { className: cn("size-4", className2), ...props2 });
27850
28042
  },
27851
28043
  DayButton: CalendarDayButton,
27852
28044
  WeekNumber: ({ children, ...props2 }) => {
27853
- return /* @__PURE__ */ jsx40("td", { ...props2, children: /* @__PURE__ */ jsx40("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
28045
+ return /* @__PURE__ */ jsx42("td", { ...props2, children: /* @__PURE__ */ jsx42("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
27854
28046
  },
27855
28047
  ...components
27856
28048
  },
@@ -27865,11 +28057,11 @@ function CalendarDayButton({
27865
28057
  ...props
27866
28058
  }) {
27867
28059
  const defaultClassNames = getDefaultClassNames();
27868
- const ref = React3.useRef(null);
27869
- React3.useEffect(() => {
28060
+ const ref = React4.useRef(null);
28061
+ React4.useEffect(() => {
27870
28062
  if (modifiers.focused) ref.current?.focus();
27871
28063
  }, [modifiers.focused]);
27872
- return /* @__PURE__ */ jsx40(
28064
+ return /* @__PURE__ */ jsx42(
27873
28065
  Button,
27874
28066
  {
27875
28067
  ref,
@@ -27892,16 +28084,16 @@ function CalendarDayButton({
27892
28084
 
27893
28085
  // src/components/ui/popover.tsx
27894
28086
  import * as PopoverPrimitive from "@radix-ui/react-popover";
27895
- import { jsx as jsx41 } from "react/jsx-runtime";
28087
+ import { jsx as jsx43 } from "react/jsx-runtime";
27896
28088
  function Popover({
27897
28089
  ...props
27898
28090
  }) {
27899
- return /* @__PURE__ */ jsx41(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
28091
+ return /* @__PURE__ */ jsx43(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
27900
28092
  }
27901
28093
  function PopoverTrigger({
27902
28094
  ...props
27903
28095
  }) {
27904
- return /* @__PURE__ */ jsx41(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
28096
+ return /* @__PURE__ */ jsx43(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
27905
28097
  }
27906
28098
  function PopoverContent({
27907
28099
  className,
@@ -27909,7 +28101,7 @@ function PopoverContent({
27909
28101
  sideOffset = 4,
27910
28102
  ...props
27911
28103
  }) {
27912
- return /* @__PURE__ */ jsx41(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx41(
28104
+ return /* @__PURE__ */ jsx43(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx43(
27913
28105
  PopoverPrimitive.Content,
27914
28106
  {
27915
28107
  "data-slot": "popover-content",
@@ -27925,24 +28117,29 @@ function PopoverContent({
27925
28117
  }
27926
28118
 
27927
28119
  // src/components/Inputs/DateRange/DateRange.tsx
27928
- import { Fragment as Fragment15, jsx as jsx42, jsxs as jsxs23 } from "react/jsx-runtime";
28120
+ import { Fragment as Fragment15, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
27929
28121
  var DateRange = ({ className, style, ...props }) => {
27930
28122
  const isDateRange = (val) => !!val && val.from instanceof Date;
27931
- const [date, setDate] = React4.useState(
28123
+ const [date, setDate] = React5.useState(
27932
28124
  isDateRange(props.value) ? props.value : {
27933
28125
  from: /* @__PURE__ */ new Date(),
27934
28126
  to: addDays(/* @__PURE__ */ new Date(), 7)
27935
28127
  }
27936
28128
  );
28129
+ useEffect19(() => {
28130
+ if (props.value && isDateRange(props.value)) {
28131
+ handleChange?.(props.value);
28132
+ }
28133
+ }, []);
27937
28134
  const handleChange = (value) => {
27938
28135
  setDate(value);
27939
28136
  if (value) {
27940
28137
  props.onChange?.(value);
27941
28138
  }
27942
28139
  };
27943
- return /* @__PURE__ */ jsxs23(Fragment15, { children: [
27944
- /* @__PURE__ */ jsx42("div", { className, style, children: /* @__PURE__ */ jsxs23(Popover, { children: [
27945
- /* @__PURE__ */ jsx42(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx42(
28140
+ return /* @__PURE__ */ jsxs24(Fragment15, { children: [
28141
+ /* @__PURE__ */ jsx44("div", { className, style, children: /* @__PURE__ */ jsxs24(Popover, { children: [
28142
+ /* @__PURE__ */ jsx44(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx44(
27946
28143
  Button,
27947
28144
  {
27948
28145
  id: "date",
@@ -27951,15 +28148,15 @@ var DateRange = ({ className, style, ...props }) => {
27951
28148
  "w-full justify-start text-left font-normal text-[11px] border-[#BDBDBD]",
27952
28149
  !date && "text-muted-foreground"
27953
28150
  ),
27954
- children: date?.from ? date.to ? /* @__PURE__ */ jsxs23(Fragment15, { children: [
28151
+ children: date?.from ? date.to ? /* @__PURE__ */ jsxs24(Fragment15, { children: [
27955
28152
  format(date.from, "LLL dd, y"),
27956
28153
  " -",
27957
28154
  " ",
27958
28155
  format(date.to, "LLL dd, y")
27959
- ] }) : format(date.from, "LLL dd, y") : /* @__PURE__ */ jsx42("span", { children: "Pick a date range" })
28156
+ ] }) : format(date.from, "LLL dd, y") : /* @__PURE__ */ jsx44("span", { children: "Pick a date range" })
27960
28157
  }
27961
28158
  ) }),
27962
- /* @__PURE__ */ jsx42(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsx42(
28159
+ /* @__PURE__ */ jsx44(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsx44(
27963
28160
  Calendar2,
27964
28161
  {
27965
28162
  mode: "range",
@@ -27970,24 +28167,31 @@ var DateRange = ({ className, style, ...props }) => {
27970
28167
  }
27971
28168
  ) })
27972
28169
  ] }) }),
27973
- props.errorMessage && /* @__PURE__ */ jsx42("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
28170
+ props.errorMessage && /* @__PURE__ */ jsx44("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
27974
28171
  ] });
27975
28172
  };
27976
28173
  var DateRange_default = DateRange;
27977
28174
 
27978
28175
  // src/components/Inputs/TextInputGroup/TextInputGroup.tsx
27979
- import { Fragment as Fragment16, jsx as jsx43, jsxs as jsxs24 } from "react/jsx-runtime";
28176
+ import { useEffect as useEffect20 } from "react";
28177
+ import { Fragment as Fragment16, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
27980
28178
  var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
27981
28179
  const placeholder = props.placeholder ?? "Placeholder text";
27982
28180
  const isEditable = props.isEditable ?? true;
27983
28181
  const isDisabled = props.isDisabled ?? false;
27984
28182
  const isReadonly = props.isReadonly ?? false;
27985
28183
  const isAutocomplete = props.isAutocomplete ?? false;
28184
+ useEffect20(() => {
28185
+ if (props.value !== void 0) {
28186
+ const e = { target: { value: props.value } };
28187
+ handleChange?.(e);
28188
+ }
28189
+ }, []);
27986
28190
  const handleChange = (e) => {
27987
28191
  props.onChange?.(e);
27988
28192
  };
27989
- return /* @__PURE__ */ jsxs24(Fragment16, { children: [
27990
- /* @__PURE__ */ jsxs24(
28193
+ return /* @__PURE__ */ jsxs25(Fragment16, { children: [
28194
+ /* @__PURE__ */ jsxs25(
27991
28195
  "div",
27992
28196
  {
27993
28197
  className: cn(
@@ -27997,8 +28201,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
27997
28201
  props.errorMessage ? "border-red-500" : ""
27998
28202
  ),
27999
28203
  children: [
28000
- prepend && /* @__PURE__ */ jsx43("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-l-md", children: prepend }),
28001
- /* @__PURE__ */ jsx43(
28204
+ prepend && /* @__PURE__ */ jsx45("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-l-md", children: prepend }),
28205
+ /* @__PURE__ */ jsx45(
28002
28206
  Input,
28003
28207
  {
28004
28208
  id: props.name || "prepend-input",
@@ -28020,17 +28224,17 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
28020
28224
  readOnly: isReadonly
28021
28225
  }
28022
28226
  ),
28023
- append && /* @__PURE__ */ jsx43("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-r-md", children: append })
28227
+ append && /* @__PURE__ */ jsx45("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-r-md", children: append })
28024
28228
  ]
28025
28229
  }
28026
28230
  ),
28027
- props.errorMessage && /* @__PURE__ */ jsx43("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
28231
+ props.errorMessage && /* @__PURE__ */ jsx45("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
28028
28232
  ] });
28029
28233
  };
28030
28234
  var TextInputGroup_default = TextInputGroup;
28031
28235
 
28032
28236
  // src/components/DataDisplay/Table/Table.tsx
28033
- import { useState as useState4, useEffect as useEffect2 } from "react";
28237
+ import { useState as useState3, useEffect as useEffect21 } from "react";
28034
28238
 
28035
28239
  // src/components/ui/data-table.tsx
28036
28240
  import {
@@ -28040,14 +28244,14 @@ import {
28040
28244
  } from "@tanstack/react-table";
28041
28245
 
28042
28246
  // src/components/ui/table.tsx
28043
- import { jsx as jsx44 } from "react/jsx-runtime";
28247
+ import { jsx as jsx46 } from "react/jsx-runtime";
28044
28248
  function Table3({ className, ...props }) {
28045
- return /* @__PURE__ */ jsx44(
28249
+ return /* @__PURE__ */ jsx46(
28046
28250
  "div",
28047
28251
  {
28048
28252
  "data-slot": "table-container",
28049
28253
  className: "relative w-full overflow-x-auto rounded-md border border-gray-200 bg-white",
28050
- children: /* @__PURE__ */ jsx44(
28254
+ children: /* @__PURE__ */ jsx46(
28051
28255
  "table",
28052
28256
  {
28053
28257
  "data-slot": "table",
@@ -28059,7 +28263,7 @@ function Table3({ className, ...props }) {
28059
28263
  );
28060
28264
  }
28061
28265
  function TableHeader({ className, ...props }) {
28062
- return /* @__PURE__ */ jsx44(
28266
+ return /* @__PURE__ */ jsx46(
28063
28267
  "thead",
28064
28268
  {
28065
28269
  "data-slot": "table-header",
@@ -28072,7 +28276,7 @@ function TableHeader({ className, ...props }) {
28072
28276
  );
28073
28277
  }
28074
28278
  function TableBody({ className, ...props }) {
28075
- return /* @__PURE__ */ jsx44(
28279
+ return /* @__PURE__ */ jsx46(
28076
28280
  "tbody",
28077
28281
  {
28078
28282
  "data-slot": "table-body",
@@ -28085,7 +28289,7 @@ function TableBody({ className, ...props }) {
28085
28289
  );
28086
28290
  }
28087
28291
  function TableRow({ className, ...props }) {
28088
- return /* @__PURE__ */ jsx44(
28292
+ return /* @__PURE__ */ jsx46(
28089
28293
  "tr",
28090
28294
  {
28091
28295
  "data-slot": "table-row",
@@ -28098,7 +28302,7 @@ function TableRow({ className, ...props }) {
28098
28302
  );
28099
28303
  }
28100
28304
  function TableHead({ className, ...props }) {
28101
- return /* @__PURE__ */ jsx44(
28305
+ return /* @__PURE__ */ jsx46(
28102
28306
  "th",
28103
28307
  {
28104
28308
  "data-slot": "table-head",
@@ -28111,7 +28315,7 @@ function TableHead({ className, ...props }) {
28111
28315
  );
28112
28316
  }
28113
28317
  function TableCell({ className, ...props }) {
28114
- return /* @__PURE__ */ jsx44(
28318
+ return /* @__PURE__ */ jsx46(
28115
28319
  "td",
28116
28320
  {
28117
28321
  "data-slot": "table-cell",
@@ -28125,7 +28329,7 @@ function TableCell({ className, ...props }) {
28125
28329
  }
28126
28330
 
28127
28331
  // src/components/ui/data-table.tsx
28128
- import { Fragment as Fragment17, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
28332
+ import { Fragment as Fragment17, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
28129
28333
  function DataTable({
28130
28334
  columns,
28131
28335
  rowActions,
@@ -28150,14 +28354,14 @@ function DataTable({
28150
28354
  onCellClick(rowData, columnId);
28151
28355
  }
28152
28356
  };
28153
- return /* @__PURE__ */ jsx45("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ jsxs25(Table3, { children: [
28154
- /* @__PURE__ */ jsx45(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx45(TableRow, { children: headerGroup.headers.map((header) => {
28155
- return /* @__PURE__ */ jsx45(TableHead, { children: header.isPlaceholder ? null : flexRender(
28357
+ return /* @__PURE__ */ jsx47("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ jsxs26(Table3, { children: [
28358
+ /* @__PURE__ */ jsx47(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx47(TableRow, { children: headerGroup.headers.map((header) => {
28359
+ return /* @__PURE__ */ jsx47(TableHead, { children: header.isPlaceholder ? null : flexRender(
28156
28360
  header.column.columnDef.header,
28157
28361
  header.getContext()
28158
28362
  ) }, header.id);
28159
28363
  }) }, headerGroup.id)) }),
28160
- /* @__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(
28364
+ /* @__PURE__ */ jsx47(TableBody, { children: loading ? /* @__PURE__ */ jsx47(TableRow, { children: /* @__PURE__ */ jsx47(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "Loading..." }) }) : /* @__PURE__ */ jsx47(Fragment17, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsxs26(
28161
28365
  TableRow,
28162
28366
  {
28163
28367
  "data-state": row.getIsSelected() && "selected",
@@ -28167,7 +28371,7 @@ function DataTable({
28167
28371
  const isCellClickable = cellClickEnabled(row.original, cell.column.id);
28168
28372
  const dynamicClass = cell.column.columnDef.meta?.cellClass || "";
28169
28373
  const dynamicStyle = cell.column.columnDef.meta?.cellStyle || {};
28170
- return /* @__PURE__ */ jsx45(
28374
+ return /* @__PURE__ */ jsx47(
28171
28375
  TableCell,
28172
28376
  {
28173
28377
  className: `${dynamicClass} ${isCellClickable ? "underline cursor-pointer" : ""}`,
@@ -28182,18 +28386,18 @@ function DataTable({
28182
28386
  cell.id
28183
28387
  );
28184
28388
  }),
28185
- 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)) })
28389
+ rowActions.length > 0 && /* @__PURE__ */ jsx47("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__ */ jsx47("p", { className: "text-[#383838] text-[12px] cursor-pointer font-[400]", children: action.header }, index)) })
28186
28390
  ]
28187
28391
  },
28188
28392
  row.id
28189
- )) : /* @__PURE__ */ jsx45(TableRow, { children: /* @__PURE__ */ jsx45(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
28393
+ )) : /* @__PURE__ */ jsx47(TableRow, { children: /* @__PURE__ */ jsx47(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
28190
28394
  ] }) });
28191
28395
  }
28192
28396
 
28193
28397
  // src/components/ui/pagination.tsx
28194
- import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
28398
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
28195
28399
  function Pagination({ className, ...props }) {
28196
- return /* @__PURE__ */ jsx46(
28400
+ return /* @__PURE__ */ jsx48(
28197
28401
  "nav",
28198
28402
  {
28199
28403
  role: "navigation",
@@ -28208,7 +28412,7 @@ function PaginationContent({
28208
28412
  className,
28209
28413
  ...props
28210
28414
  }) {
28211
- return /* @__PURE__ */ jsx46(
28415
+ return /* @__PURE__ */ jsx48(
28212
28416
  "ul",
28213
28417
  {
28214
28418
  "data-slot": "pagination-content",
@@ -28218,7 +28422,7 @@ function PaginationContent({
28218
28422
  );
28219
28423
  }
28220
28424
  function PaginationItem({ ...props }) {
28221
- return /* @__PURE__ */ jsx46("li", { "data-slot": "pagination-item", ...props });
28425
+ return /* @__PURE__ */ jsx48("li", { "data-slot": "pagination-item", ...props });
28222
28426
  }
28223
28427
  function PaginationLink({
28224
28428
  className,
@@ -28226,7 +28430,7 @@ function PaginationLink({
28226
28430
  size = "icon",
28227
28431
  ...props
28228
28432
  }) {
28229
- return /* @__PURE__ */ jsx46(
28433
+ return /* @__PURE__ */ jsx48(
28230
28434
  "a",
28231
28435
  {
28232
28436
  "aria-current": isActive ? "page" : void 0,
@@ -28247,7 +28451,7 @@ function PaginationPrevious({
28247
28451
  className,
28248
28452
  ...props
28249
28453
  }) {
28250
- return /* @__PURE__ */ jsxs26(
28454
+ return /* @__PURE__ */ jsxs27(
28251
28455
  PaginationLink,
28252
28456
  {
28253
28457
  "aria-label": "Go to previous page",
@@ -28255,8 +28459,8 @@ function PaginationPrevious({
28255
28459
  className: cn("gap-1 px-2.5 sm:pl-2.5", className),
28256
28460
  ...props,
28257
28461
  children: [
28258
- /* @__PURE__ */ jsx46(ChevronLeft, {}),
28259
- /* @__PURE__ */ jsx46("span", { className: "hidden sm:block", children: "Previous" })
28462
+ /* @__PURE__ */ jsx48(ChevronLeft, {}),
28463
+ /* @__PURE__ */ jsx48("span", { className: "hidden sm:block", children: "Previous" })
28260
28464
  ]
28261
28465
  }
28262
28466
  );
@@ -28265,7 +28469,7 @@ function PaginationNext({
28265
28469
  className,
28266
28470
  ...props
28267
28471
  }) {
28268
- return /* @__PURE__ */ jsxs26(
28472
+ return /* @__PURE__ */ jsxs27(
28269
28473
  PaginationLink,
28270
28474
  {
28271
28475
  "aria-label": "Go to next page",
@@ -28273,8 +28477,8 @@ function PaginationNext({
28273
28477
  className: cn("gap-1 px-2.5 sm:pr-2.5", className),
28274
28478
  ...props,
28275
28479
  children: [
28276
- /* @__PURE__ */ jsx46("span", { className: "hidden sm:block", children: "Next" }),
28277
- /* @__PURE__ */ jsx46(ChevronRight, {})
28480
+ /* @__PURE__ */ jsx48("span", { className: "hidden sm:block", children: "Next" }),
28481
+ /* @__PURE__ */ jsx48(ChevronRight, {})
28278
28482
  ]
28279
28483
  }
28280
28484
  );
@@ -28283,7 +28487,7 @@ function PaginationEllipsis({
28283
28487
  className,
28284
28488
  ...props
28285
28489
  }) {
28286
- return /* @__PURE__ */ jsxs26(
28490
+ return /* @__PURE__ */ jsxs27(
28287
28491
  "span",
28288
28492
  {
28289
28493
  "aria-hidden": true,
@@ -28291,15 +28495,15 @@ function PaginationEllipsis({
28291
28495
  className: cn("flex size-9 items-center justify-center", className),
28292
28496
  ...props,
28293
28497
  children: [
28294
- /* @__PURE__ */ jsx46(Ellipsis, { className: "size-4" }),
28295
- /* @__PURE__ */ jsx46("span", { className: "sr-only", children: "More pages" })
28498
+ /* @__PURE__ */ jsx48(Ellipsis, { className: "size-4" }),
28499
+ /* @__PURE__ */ jsx48("span", { className: "sr-only", children: "More pages" })
28296
28500
  ]
28297
28501
  }
28298
28502
  );
28299
28503
  }
28300
28504
 
28301
28505
  // src/components/DataDisplay/Pagination/Pagination.tsx
28302
- import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
28506
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
28303
28507
  var CustomPagination = ({
28304
28508
  totalPages,
28305
28509
  currentPage,
@@ -28345,10 +28549,10 @@ var CustomPagination = ({
28345
28549
  }
28346
28550
  };
28347
28551
  const pageNumbers = getPageNumbers();
28348
- return /* @__PURE__ */ jsxs27("div", { className: "flex flex-row gap-1 w-full items-center justify-between", children: [
28349
- /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
28350
- /* @__PURE__ */ jsx47("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: "Items per page:" }),
28351
- /* @__PURE__ */ jsxs27(
28552
+ return /* @__PURE__ */ jsxs28("div", { className: "flex flex-row gap-1 w-full items-center justify-between", children: [
28553
+ /* @__PURE__ */ jsxs28("div", { className: "flex items-center gap-2", children: [
28554
+ /* @__PURE__ */ jsx49("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: "Items per page:" }),
28555
+ /* @__PURE__ */ jsxs28(
28352
28556
  Select,
28353
28557
  {
28354
28558
  defaultValue: String(perPage),
@@ -28356,26 +28560,26 @@ var CustomPagination = ({
28356
28560
  onPageChange({ page: 1, itemsPerPage: Number(value) });
28357
28561
  },
28358
28562
  children: [
28359
- /* @__PURE__ */ jsx47(SelectTrigger, { className: "w-[100px]", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Select" }) }),
28360
- /* @__PURE__ */ jsxs27(SelectContent, { children: [
28361
- /* @__PURE__ */ jsx47(SelectItem, { value: "5", children: "5" }),
28362
- /* @__PURE__ */ jsx47(SelectItem, { value: "10", children: "10" }),
28363
- /* @__PURE__ */ jsx47(SelectItem, { value: "20", children: "20" }),
28364
- /* @__PURE__ */ jsx47(SelectItem, { value: "50", children: "50" })
28563
+ /* @__PURE__ */ jsx49(SelectTrigger, { className: "w-[100px]", children: /* @__PURE__ */ jsx49(SelectValue, { placeholder: "Select" }) }),
28564
+ /* @__PURE__ */ jsxs28(SelectContent, { children: [
28565
+ /* @__PURE__ */ jsx49(SelectItem, { value: "5", children: "5" }),
28566
+ /* @__PURE__ */ jsx49(SelectItem, { value: "10", children: "10" }),
28567
+ /* @__PURE__ */ jsx49(SelectItem, { value: "20", children: "20" }),
28568
+ /* @__PURE__ */ jsx49(SelectItem, { value: "50", children: "50" })
28365
28569
  ] })
28366
28570
  ]
28367
28571
  }
28368
28572
  )
28369
28573
  ] }),
28370
- /* @__PURE__ */ jsx47(Pagination, { className: "justify-end", children: /* @__PURE__ */ jsxs27(PaginationContent, { children: [
28371
- /* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(
28574
+ /* @__PURE__ */ jsx49(Pagination, { className: "justify-end", children: /* @__PURE__ */ jsxs28(PaginationContent, { children: [
28575
+ /* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(
28372
28576
  PaginationPrevious,
28373
28577
  {
28374
28578
  onClick: () => handlePageChange(currentPage - 1),
28375
28579
  className: currentPage === 1 ? "pointer-events-none opacity-50" : "cursor-pointer"
28376
28580
  }
28377
28581
  ) }),
28378
- pageNumbers.map((pageNumber, index) => /* @__PURE__ */ jsx47(PaginationItem, { children: pageNumber === "..." ? /* @__PURE__ */ jsx47(PaginationEllipsis, {}) : /* @__PURE__ */ jsx47(
28582
+ pageNumbers.map((pageNumber, index) => /* @__PURE__ */ jsx49(PaginationItem, { children: pageNumber === "..." ? /* @__PURE__ */ jsx49(PaginationEllipsis, {}) : /* @__PURE__ */ jsx49(
28379
28583
  PaginationLink,
28380
28584
  {
28381
28585
  onClick: () => handlePageChange(pageNumber),
@@ -28384,7 +28588,7 @@ var CustomPagination = ({
28384
28588
  children: pageNumber
28385
28589
  }
28386
28590
  ) }, index)),
28387
- /* @__PURE__ */ jsx47(PaginationItem, { children: /* @__PURE__ */ jsx47(
28591
+ /* @__PURE__ */ jsx49(PaginationItem, { children: /* @__PURE__ */ jsx49(
28388
28592
  PaginationNext,
28389
28593
  {
28390
28594
  onClick: () => handlePageChange(currentPage + 1),
@@ -28397,7 +28601,7 @@ var CustomPagination = ({
28397
28601
  var Pagination_default = CustomPagination;
28398
28602
 
28399
28603
  // src/components/DataDisplay/Table/Table.tsx
28400
- import { jsx as jsx48, jsxs as jsxs28 } from "react/jsx-runtime";
28604
+ import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
28401
28605
  var Table4 = ({
28402
28606
  columns,
28403
28607
  data,
@@ -28417,9 +28621,9 @@ var Table4 = ({
28417
28621
  const rawData = Array.isArray(data) ? data : [];
28418
28622
  const rawRowActions = Array.isArray(rowActions) ? rowActions : [];
28419
28623
  const isControlled = typeof page === "number";
28420
- const [internalPage, setInternalPage] = useState4(1);
28624
+ const [internalPage, setInternalPage] = useState3(1);
28421
28625
  const currentPage = isControlled ? page : internalPage;
28422
- useEffect2(() => {
28626
+ useEffect21(() => {
28423
28627
  if (isControlled) return;
28424
28628
  if (currentPage > 1 && !pagination) setInternalPage(1);
28425
28629
  }, [pagination, isControlled]);
@@ -28443,8 +28647,8 @@ var Table4 = ({
28443
28647
  if (!selectedColumn) return false;
28444
28648
  return selectedColumn.isClickable ?? false;
28445
28649
  };
28446
- return /* @__PURE__ */ jsxs28("div", { className: `${className || ""} space-y-3`, style, children: [
28447
- /* @__PURE__ */ jsx48(
28650
+ return /* @__PURE__ */ jsxs29("div", { className: `${className || ""} space-y-3`, style, children: [
28651
+ /* @__PURE__ */ jsx50(
28448
28652
  DataTable,
28449
28653
  {
28450
28654
  ...props,
@@ -28455,7 +28659,7 @@ var Table4 = ({
28455
28659
  cellClickEnabled: isCellClickEnabled
28456
28660
  }
28457
28661
  ),
28458
- enablePagination && /* @__PURE__ */ jsx48(
28662
+ enablePagination && /* @__PURE__ */ jsx50(
28459
28663
  Pagination_default,
28460
28664
  {
28461
28665
  perPage: itemsPerPage,
@@ -28470,7 +28674,7 @@ var Table_default = Table4;
28470
28674
 
28471
28675
  // src/components/Navigation/Tabs/Tabs.tsx
28472
28676
  import Link5 from "next/link";
28473
- import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
28677
+ import { jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
28474
28678
  var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28475
28679
  const rawTabs = Array.isArray(tabs) ? tabs : [];
28476
28680
  const baseClasses = "text-[12px] text-foreground p-2 text-center rounded-md transition-colors";
@@ -28483,23 +28687,23 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28483
28687
  const renderDesktopTab = (tab, index) => {
28484
28688
  const finalClasses = [baseClasses, isActive(tab.url) ? activeClasses : hoverClasses, tab.className || ""].join(" ");
28485
28689
  if (Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown) {
28486
- return /* @__PURE__ */ jsxs29(DropdownMenu, { children: [
28487
- /* @__PURE__ */ jsxs29(DropdownMenuTrigger, { className: `${finalClasses} inline-flex items-center gap-1`, children: [
28690
+ return /* @__PURE__ */ jsxs30(DropdownMenu, { children: [
28691
+ /* @__PURE__ */ jsxs30(DropdownMenuTrigger, { className: `${finalClasses} inline-flex items-center gap-1`, children: [
28488
28692
  tab.header,
28489
- /* @__PURE__ */ jsx49(ChevronDown, { className: "h-4 w-4 opacity-80" })
28693
+ /* @__PURE__ */ jsx51(ChevronDown, { className: "h-4 w-4 opacity-80" })
28490
28694
  ] }),
28491
- /* @__PURE__ */ jsx49(
28695
+ /* @__PURE__ */ jsx51(
28492
28696
  DropdownMenuContent,
28493
28697
  {
28494
28698
  align: "start",
28495
28699
  sideOffset: 6,
28496
28700
  className: "z-50 min-w-[160px] rounded-md border border-gray-200 bg-white p-1 shadow-lg",
28497
- children: tab.children.map((item) => /* @__PURE__ */ jsx49(
28701
+ children: tab.children.map((item) => /* @__PURE__ */ jsx51(
28498
28702
  DropdownMenuItem,
28499
28703
  {
28500
28704
  asChild: true,
28501
28705
  className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100 focus:bg-gray-100",
28502
- children: /* @__PURE__ */ jsx49(Link5, { href: item.url || "#", children: item.header })
28706
+ children: /* @__PURE__ */ jsx51(Link5, { href: item.url || "#", children: item.header })
28503
28707
  },
28504
28708
  item.id
28505
28709
  ))
@@ -28507,14 +28711,14 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28507
28711
  )
28508
28712
  ] }, index);
28509
28713
  }
28510
- 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);
28714
+ return tab.url ? /* @__PURE__ */ jsx51(Link5, { href: tab.url, className: finalClasses, style: tab.style, children: tab.header }, index) : /* @__PURE__ */ jsx51("div", { className: finalClasses, style: tab.style, role: "button", tabIndex: 0, children: tab.header }, index);
28511
28715
  };
28512
- const renderMobileMenu = () => /* @__PURE__ */ jsxs29(DropdownMenu, { children: [
28513
- /* @__PURE__ */ jsxs29(DropdownMenuTrigger, { className: "flex items-center gap-2 px-3 py-2 rounded-md bg-white/10 text-white text-sm", children: [
28514
- /* @__PURE__ */ jsx49(Menu, { className: "h-4 w-4" }),
28716
+ const renderMobileMenu = () => /* @__PURE__ */ jsxs30(DropdownMenu, { children: [
28717
+ /* @__PURE__ */ jsxs30(DropdownMenuTrigger, { className: "flex items-center gap-2 px-3 py-2 rounded-md bg-white/10 text-white text-sm", children: [
28718
+ /* @__PURE__ */ jsx51(Menu, { className: "h-4 w-4" }),
28515
28719
  "Menu"
28516
28720
  ] }),
28517
- /* @__PURE__ */ jsx49(
28721
+ /* @__PURE__ */ jsx51(
28518
28722
  DropdownMenuContent,
28519
28723
  {
28520
28724
  align: "start",
@@ -28523,25 +28727,25 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28523
28727
  children: rawTabs.map((tab, i) => {
28524
28728
  const hasChildren = Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown;
28525
28729
  if (hasChildren) {
28526
- return /* @__PURE__ */ jsxs29(DropdownMenuSub, { children: [
28527
- /* @__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 }),
28528
- /* @__PURE__ */ jsx49(DropdownMenuSubContent, { className: "bg-white border shadow-lg rounded-md p-1", children: tab.children.map((item) => /* @__PURE__ */ jsx49(
28730
+ return /* @__PURE__ */ jsxs30(DropdownMenuSub, { children: [
28731
+ /* @__PURE__ */ jsx51(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 }),
28732
+ /* @__PURE__ */ jsx51(DropdownMenuSubContent, { className: "bg-white border shadow-lg rounded-md p-1", children: tab.children.map((item) => /* @__PURE__ */ jsx51(
28529
28733
  DropdownMenuItem,
28530
28734
  {
28531
28735
  asChild: true,
28532
28736
  className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100",
28533
- children: /* @__PURE__ */ jsx49(Link5, { href: item.url || "#", children: item.header })
28737
+ children: /* @__PURE__ */ jsx51(Link5, { href: item.url || "#", children: item.header })
28534
28738
  },
28535
28739
  item.id
28536
28740
  )) })
28537
28741
  ] }, i);
28538
28742
  }
28539
- return /* @__PURE__ */ jsx49(
28743
+ return /* @__PURE__ */ jsx51(
28540
28744
  DropdownMenuItem,
28541
28745
  {
28542
28746
  asChild: true,
28543
28747
  className: "cursor-pointer rounded-sm px-3 py-2 text-[13px] text-gray-800 hover:bg-gray-100",
28544
- children: /* @__PURE__ */ jsx49(Link5, { href: tab.url || "#", children: tab.header })
28748
+ children: /* @__PURE__ */ jsx51(Link5, { href: tab.url || "#", children: tab.header })
28545
28749
  },
28546
28750
  i
28547
28751
  );
@@ -28551,56 +28755,56 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
28551
28755
  ] });
28552
28756
  const forceMobile = canvasMode === "mobile" || canvasMode === "tablet";
28553
28757
  const forceDesktop = canvasMode === "desktop";
28554
- return /* @__PURE__ */ jsxs29("div", { className, style, children: [
28555
- 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) }) }),
28556
- forceMobile && /* @__PURE__ */ jsx49("div", { children: renderMobileMenu() }),
28557
- /* @__PURE__ */ jsx49("div", { className: "md:hidden", children: renderMobileMenu() })
28758
+ return /* @__PURE__ */ jsxs30("div", { className, style, children: [
28759
+ forceDesktop && /* @__PURE__ */ jsx51("div", { className: "hidden md:flex", children: /* @__PURE__ */ jsx51("div", { className: `flex gap-2 ${verticalMenu ? "flex-col items-start" : "flex-row"}`, children: rawTabs.map(renderDesktopTab) }) }),
28760
+ forceMobile && /* @__PURE__ */ jsx51("div", { children: renderMobileMenu() }),
28761
+ /* @__PURE__ */ jsx51("div", { className: "md:hidden", children: renderMobileMenu() })
28558
28762
  ] });
28559
28763
  };
28560
28764
  var Tabs_default = Tabs;
28561
28765
 
28562
28766
  // src/components/Navigation/Stages/Stages.tsx
28563
- import React5 from "react";
28564
- import { jsx as jsx50, jsxs as jsxs30 } from "react/jsx-runtime";
28767
+ import React6 from "react";
28768
+ import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
28565
28769
  var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
28566
- 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: [
28567
- /* @__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" }) }) }) }),
28568
- /* @__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: [
28569
- /* @__PURE__ */ jsx50(
28770
+ return /* @__PURE__ */ jsx52("div", { className, style, children: /* @__PURE__ */ jsxs31("div", { className: "flex items-center justify-between bg-red p-2 rounded-lg border border-gray-200 w-full", children: [
28771
+ /* @__PURE__ */ jsx52("div", { className: "flex items-center", children: /* @__PURE__ */ jsx52("button", { className: "p-2 hover:bg-gray-100 rounded", children: /* @__PURE__ */ jsx52("svg", { className: "w-4 h-4 text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx52("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }) }) }),
28772
+ /* @__PURE__ */ jsx52("div", { className: "flex items-center flex-1 px-2 flex-wrap gap-2", children: stages?.length > 0 && stages?.map((stage, index) => /* @__PURE__ */ jsxs31(React6.Fragment, { children: [
28773
+ /* @__PURE__ */ jsx52(
28570
28774
  "button",
28571
28775
  {
28572
28776
  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"}`,
28573
28777
  children: stage.header
28574
28778
  }
28575
28779
  ),
28576
- index < stages.length - 1 && /* @__PURE__ */ jsx50("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
28780
+ index < stages.length - 1 && /* @__PURE__ */ jsx52("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
28577
28781
  ] }, stage.id)) }),
28578
- 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 }) })
28782
+ isShowBtn && /* @__PURE__ */ jsx52("div", { className: "flex items-center", children: /* @__PURE__ */ jsx52("button", { className: "bg-[#034486] text-white px-6 py-2 rounded-lg text-sm font-medium transition-colors duration-200 shadow-sm", children: buttonText }) })
28579
28783
  ] }) });
28580
28784
  };
28581
28785
  var Stages_default = StagesComponent;
28582
28786
 
28583
28787
  // src/components/Navigation/Spacer/Spacer.tsx
28584
- import { jsx as jsx51 } from "react/jsx-runtime";
28788
+ import { jsx as jsx53 } from "react/jsx-runtime";
28585
28789
  var Spacer = ({ className, style }) => {
28586
- return /* @__PURE__ */ jsx51("div", { className: `${className}`, style });
28790
+ return /* @__PURE__ */ jsx53("div", { className: `${className}`, style });
28587
28791
  };
28588
28792
  var Spacer_default = Spacer;
28589
28793
 
28590
28794
  // src/components/Navigation/Profile/Profile.tsx
28591
- import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
28795
+ import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
28592
28796
 
28593
28797
  // src/components/Navigation/Notification/Notification.tsx
28594
- import { jsx as jsx53, jsxs as jsxs32 } from "react/jsx-runtime";
28798
+ import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
28595
28799
 
28596
28800
  // src/components/Navigation/Logo/Logo.tsx
28597
- import { jsx as jsx54 } from "react/jsx-runtime";
28801
+ import { jsx as jsx56 } from "react/jsx-runtime";
28598
28802
 
28599
28803
  // src/components/ui/avatar.tsx
28600
- import * as React6 from "react";
28804
+ import * as React7 from "react";
28601
28805
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
28602
- import { jsx as jsx55 } from "react/jsx-runtime";
28603
- var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx55(
28806
+ import { jsx as jsx57 } from "react/jsx-runtime";
28807
+ var Avatar = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx57(
28604
28808
  AvatarPrimitive.Root,
28605
28809
  {
28606
28810
  ref,
@@ -28612,7 +28816,7 @@ var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
28612
28816
  }
28613
28817
  ));
28614
28818
  Avatar.displayName = AvatarPrimitive.Root.displayName;
28615
- var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx55(
28819
+ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx57(
28616
28820
  AvatarPrimitive.Image,
28617
28821
  {
28618
28822
  ref,
@@ -28621,7 +28825,7 @@ var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
28621
28825
  }
28622
28826
  ));
28623
28827
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
28624
- var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx55(
28828
+ var AvatarFallback = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx57(
28625
28829
  AvatarPrimitive.Fallback,
28626
28830
  {
28627
28831
  ref,
@@ -28637,7 +28841,8 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
28637
28841
  // src/components/Navigation/Navbar/Navbar.tsx
28638
28842
  import Link6 from "next/link";
28639
28843
  import Image3 from "next/image";
28640
- import { Fragment as Fragment18, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
28844
+ import { DropdownMenuSeparator } from "@radix-ui/react-dropdown-menu";
28845
+ import { Fragment as Fragment18, jsx as jsx58, jsxs as jsxs34 } from "react/jsx-runtime";
28641
28846
  function Navbar({
28642
28847
  style,
28643
28848
  badgeType,
@@ -28649,12 +28854,13 @@ function Navbar({
28649
28854
  altText = "Logo",
28650
28855
  canvasMode = "desktop",
28651
28856
  list = [],
28857
+ profileMenu = [],
28652
28858
  userName = "Guest User"
28653
28859
  }) {
28654
28860
  const isMobileView = canvasMode === "mobile" || canvasMode === "tablet";
28655
- 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-4", children: [
28656
- /* @__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" }) }),
28657
- !isMobileView && /* @__PURE__ */ jsx56("div", { className: "flex items-center space-x-6 sm:hidden md:flex", children: list.map((item) => /* @__PURE__ */ jsx56(
28861
+ return /* @__PURE__ */ jsx58("nav", { className: "w-full border-b bg-white shadow-sm", style, children: /* @__PURE__ */ jsxs34("div", { className: "mx-auto flex max-w-7xl items-center justify-between px-4 py-4", children: [
28862
+ /* @__PURE__ */ jsx58(Link6, { href: "/", className: "flex items-center space-x-2", children: imageUrl ? /* @__PURE__ */ jsx58(Image3, { src: imageUrl, alt: altText, width: 200, height: 200 }) : /* @__PURE__ */ jsx58("span", { className: "font-semibold text-blue-700", children: "Logo" }) }),
28863
+ !isMobileView && /* @__PURE__ */ jsx58("div", { className: "flex items-center space-x-6 sm:hidden md:flex", children: list.map((item) => /* @__PURE__ */ jsx58(
28658
28864
  Link6,
28659
28865
  {
28660
28866
  href: item.url || "#",
@@ -28663,54 +28869,60 @@ function Navbar({
28663
28869
  },
28664
28870
  item.id
28665
28871
  )) }),
28666
- /* @__PURE__ */ jsxs33("div", { className: "flex items-center space-x-3", children: [
28667
- !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: [
28668
- /* @__PURE__ */ jsx56(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400" }),
28669
- /* @__PURE__ */ jsx56(Input, { placeholder: "Search", className: "pl-9 text-gray-400" })
28670
- ] }) }) : /* @__PURE__ */ jsx56(
28872
+ /* @__PURE__ */ jsxs34("div", { className: "flex items-center space-x-3", children: [
28873
+ !isMobileView ? /* @__PURE__ */ jsx58("div", { className: "flex-1 px-6", children: /* @__PURE__ */ jsxs34("div", { className: "relative w-full max-w-md border border-gray-300 rounded-md", children: [
28874
+ /* @__PURE__ */ jsx58(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400" }),
28875
+ /* @__PURE__ */ jsx58(Input, { placeholder: "Search", className: "pl-9 text-gray-400" })
28876
+ ] }) }) : /* @__PURE__ */ jsx58(
28671
28877
  Button,
28672
28878
  {
28673
28879
  variant: "ghost",
28674
28880
  size: "icon",
28675
28881
  className: "border border-gray-400",
28676
- children: /* @__PURE__ */ jsx56(Search, { className: "h-5 w-5 text-gray-400" })
28882
+ children: /* @__PURE__ */ jsx58(Search, { className: "h-5 w-5 text-gray-400" })
28677
28883
  }
28678
28884
  ),
28679
- /* @__PURE__ */ jsxs33("div", { className: "relative bg-[#E9E9E9] rounded-md", children: [
28680
- /* @__PURE__ */ jsx56(Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsx56(Bell, { className: "h-5 w-5 text-[#1C1B1F]" }) }),
28681
- 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" })
28885
+ /* @__PURE__ */ jsxs34("div", { className: "relative bg-[#E9E9E9] rounded-md", children: [
28886
+ /* @__PURE__ */ jsx58(Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsx58(Bell, { className: "h-5 w-5 text-[#1C1B1F]" }) }),
28887
+ badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && Number(badgeCount) > 0 ? /* @__PURE__ */ jsx58("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__ */ jsx58("span", { className: "absolute -top-1 -right-1 flex h-2 w-2 items-center justify-center rounded-full bg-red-500" })
28682
28888
  ] }),
28683
- /* @__PURE__ */ jsxs33(DropdownMenu, { children: [
28684
- /* @__PURE__ */ jsx56(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs33("div", { className: "flex items-center space-x-2", children: [
28685
- !isMobileView && showName && /* @__PURE__ */ jsx56("h4", { className: "text-[#000000] text-[13px] font-[500] mb-0", children: userName }),
28686
- !isMobileView ? /* @__PURE__ */ jsxs33(Fragment18, { children: [
28687
- /* @__PURE__ */ jsx56(Avatar, { className: "cursor-pointer h-8 w-8 text-gray-900", children: profileType === "avatar" ? /* @__PURE__ */ jsx56(
28889
+ /* @__PURE__ */ jsxs34(DropdownMenu, { children: [
28890
+ /* @__PURE__ */ jsx58(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs34("div", { className: "flex items-center space-x-2", children: [
28891
+ !isMobileView && showName && /* @__PURE__ */ jsx58("h4", { className: "text-[#000000] text-[13px] font-[500] mb-0", children: userName }),
28892
+ !isMobileView ? /* @__PURE__ */ jsxs34(Fragment18, { children: [
28893
+ /* @__PURE__ */ jsx58(Avatar, { className: "cursor-pointer h-8 w-8 text-gray-900", children: profileType === "avatar" ? /* @__PURE__ */ jsx58(
28688
28894
  AvatarImage,
28689
28895
  {
28690
28896
  src: "/images/appbuilder/toolset/profile.svg",
28691
28897
  alt: "Profile"
28692
28898
  }
28693
- ) : /* @__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) }) }),
28694
- /* @__PURE__ */ jsx56(
28899
+ ) : /* @__PURE__ */ jsx58("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) }) }),
28900
+ /* @__PURE__ */ jsx58(
28695
28901
  Button,
28696
28902
  {
28697
28903
  variant: "ghost",
28698
28904
  size: "icon",
28699
28905
  className: "text-gray-900 md:hidden",
28700
- children: /* @__PURE__ */ jsx56(Menu, { className: "h-6 w-6" })
28906
+ children: /* @__PURE__ */ jsx58(Menu, { className: "h-6 w-6" })
28701
28907
  }
28702
28908
  )
28703
- ] }) : /* @__PURE__ */ jsx56(
28909
+ ] }) : /* @__PURE__ */ jsx58(
28704
28910
  Button,
28705
28911
  {
28706
28912
  variant: "ghost",
28707
28913
  size: "icon",
28708
28914
  className: "text-gray-900",
28709
- children: /* @__PURE__ */ jsx56(Menu, { className: "h-6 w-6" })
28915
+ children: /* @__PURE__ */ jsx58(Menu, { className: "h-6 w-6" })
28710
28916
  }
28711
28917
  )
28712
28918
  ] }) }),
28713
- /* @__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)) }) })
28919
+ /* @__PURE__ */ jsxs34(DropdownMenuContent, { align: "end", className: "bg-white", children: [
28920
+ profileMenu && profileMenu.length > 0 && /* @__PURE__ */ jsx58(Fragment18, { children: profileMenu.map((item) => /* @__PURE__ */ jsx58(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ jsx58(Link6, { href: item.url || "#", children: item.header }) }, item.id)) }),
28921
+ /* @__PURE__ */ jsxs34("div", { className: "md:hidden", children: [
28922
+ /* @__PURE__ */ jsx58(DropdownMenuSeparator, {}),
28923
+ list && list.length > 0 && /* @__PURE__ */ jsx58(Fragment18, { children: list.map((item) => /* @__PURE__ */ jsx58(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ jsx58(Link6, { href: item.url || "#", children: item.header }) }, item.id)) })
28924
+ ] })
28925
+ ] })
28714
28926
  ] })
28715
28927
  ] })
28716
28928
  ] }) });
@@ -28718,28 +28930,28 @@ function Navbar({
28718
28930
 
28719
28931
  // src/components/Chart/BarChart.tsx
28720
28932
  import { BarChart, Bar, Area, AreaChart, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, Legend } from "recharts";
28721
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
28933
+ import { jsx as jsx59, jsxs as jsxs35 } from "react/jsx-runtime";
28722
28934
  var ChartComponent = ({ className, style, ...props }) => {
28723
28935
  const data = Array.isArray(props?.data) ? props.data : [];
28724
28936
  const chartType = props.chartType || "bar";
28725
28937
  const legendsPosition = props.legendsPosition === "middle" || props.legendsPosition === "bottom" ? props.legendsPosition : "top";
28726
- 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: [
28727
- /* @__PURE__ */ jsx57(CartesianGrid, { strokeDasharray: "3 3" }),
28728
- /* @__PURE__ */ jsx57(XAxis, { dataKey: "name" }),
28729
- /* @__PURE__ */ jsx57(YAxis, {}),
28730
- /* @__PURE__ */ jsx57(Tooltip, {}),
28731
- /* @__PURE__ */ jsx57(Legend, { verticalAlign: legendsPosition, align: "center" }),
28732
- /* @__PURE__ */ jsx57(Bar, { dataKey: "value", fill: "#00695C" })
28733
- ] }) : /* @__PURE__ */ jsxs34(AreaChart, { data, children: [
28734
- /* @__PURE__ */ jsx57("defs", { children: /* @__PURE__ */ jsxs34("linearGradient", { id: "colorCount", x1: "0", y1: "0", x2: "0", y2: "1", children: [
28735
- /* @__PURE__ */ jsx57("stop", { offset: "5%", stopColor: "#00695C", stopOpacity: 0.8 }),
28736
- /* @__PURE__ */ jsx57("stop", { offset: "95%", stopColor: "#00695C", stopOpacity: 0 })
28938
+ return /* @__PURE__ */ jsx59("div", { className: `${className} h-[400px]`, style, children: data.length > 0 && /* @__PURE__ */ jsx59(ResponsiveContainer, { width: "100%", height: "100%", children: chartType === "bar" ? /* @__PURE__ */ jsxs35(BarChart, { data, children: [
28939
+ /* @__PURE__ */ jsx59(CartesianGrid, { strokeDasharray: "3 3" }),
28940
+ /* @__PURE__ */ jsx59(XAxis, { dataKey: "name" }),
28941
+ /* @__PURE__ */ jsx59(YAxis, {}),
28942
+ /* @__PURE__ */ jsx59(Tooltip, {}),
28943
+ /* @__PURE__ */ jsx59(Legend, { verticalAlign: legendsPosition, align: "center" }),
28944
+ /* @__PURE__ */ jsx59(Bar, { dataKey: "value", fill: "#00695C" })
28945
+ ] }) : /* @__PURE__ */ jsxs35(AreaChart, { data, children: [
28946
+ /* @__PURE__ */ jsx59("defs", { children: /* @__PURE__ */ jsxs35("linearGradient", { id: "colorCount", x1: "0", y1: "0", x2: "0", y2: "1", children: [
28947
+ /* @__PURE__ */ jsx59("stop", { offset: "5%", stopColor: "#00695C", stopOpacity: 0.8 }),
28948
+ /* @__PURE__ */ jsx59("stop", { offset: "95%", stopColor: "#00695C", stopOpacity: 0 })
28737
28949
  ] }) }),
28738
- /* @__PURE__ */ jsx57(CartesianGrid, { strokeDasharray: "3 3" }),
28739
- /* @__PURE__ */ jsx57(XAxis, { dataKey: "name" }),
28740
- /* @__PURE__ */ jsx57(YAxis, {}),
28741
- /* @__PURE__ */ jsx57(Tooltip, {}),
28742
- /* @__PURE__ */ jsx57(
28950
+ /* @__PURE__ */ jsx59(CartesianGrid, { strokeDasharray: "3 3" }),
28951
+ /* @__PURE__ */ jsx59(XAxis, { dataKey: "name" }),
28952
+ /* @__PURE__ */ jsx59(YAxis, {}),
28953
+ /* @__PURE__ */ jsx59(Tooltip, {}),
28954
+ /* @__PURE__ */ jsx59(
28743
28955
  Area,
28744
28956
  {
28745
28957
  type: "monotone",
@@ -28755,7 +28967,7 @@ var BarChart_default = ChartComponent;
28755
28967
 
28756
28968
  // src/components/Chart/PieChart.tsx
28757
28969
  import { PieChart, Pie, Cell, ResponsiveContainer as ResponsiveContainer2, Tooltip as Tooltip2, LabelList } from "recharts";
28758
- import { Fragment as Fragment19, jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
28970
+ import { Fragment as Fragment19, jsx as jsx60, jsxs as jsxs36 } from "react/jsx-runtime";
28759
28971
  var DonutChart = ({ className, style, ...props }) => {
28760
28972
  const data = Array.isArray(props?.data) ? props.data : [];
28761
28973
  const total = data.reduce((sum, d) => sum + d.value, 0);
@@ -28766,7 +28978,7 @@ var DonutChart = ({ className, style, ...props }) => {
28766
28978
  const renderLabel = ({ value, x, y }) => {
28767
28979
  if (value == null) return null;
28768
28980
  const percentage = (Number(value) / total * 100).toFixed(0);
28769
- return /* @__PURE__ */ jsxs35(
28981
+ return /* @__PURE__ */ jsxs36(
28770
28982
  "text",
28771
28983
  {
28772
28984
  x,
@@ -28788,33 +29000,33 @@ var DonutChart = ({ className, style, ...props }) => {
28788
29000
  const wrapperClass = canvasMode ? forceDesktop ? "flex-row" : "flex-col" : "flex-col md:flex-row";
28789
29001
  const renderLegends = () => {
28790
29002
  if (!showLegends) return null;
28791
- return /* @__PURE__ */ jsx58(Fragment19, { children: data.map((d) => /* @__PURE__ */ jsxs35(
29003
+ return /* @__PURE__ */ jsx60(Fragment19, { children: data.map((d) => /* @__PURE__ */ jsxs36(
28792
29004
  "div",
28793
29005
  {
28794
29006
  className: "flex items-center space-x-2 rounded-md border border-gray-200 px-3 py-2 w-[48%] md:w-auto",
28795
29007
  children: [
28796
- /* @__PURE__ */ jsx58(
29008
+ /* @__PURE__ */ jsx60(
28797
29009
  "span",
28798
29010
  {
28799
29011
  className: "inline-block w-[16px] h-[16px] rounded",
28800
29012
  style: { backgroundColor: d.color }
28801
29013
  }
28802
29014
  ),
28803
- /* @__PURE__ */ jsx58("span", { className: "text-[#000000] text-[12px] md:text-[13px] font-[500]", children: d.name })
29015
+ /* @__PURE__ */ jsx60("span", { className: "text-[#000000] text-[12px] md:text-[13px] font-[500]", children: d.name })
28804
29016
  ]
28805
29017
  },
28806
29018
  d.name
28807
29019
  )) });
28808
29020
  };
28809
- return /* @__PURE__ */ jsxs35(
29021
+ return /* @__PURE__ */ jsxs36(
28810
29022
  "div",
28811
29023
  {
28812
29024
  className: `relative flex items-center ${wrapperClass} ${className}`,
28813
29025
  style,
28814
29026
  children: [
28815
- /* @__PURE__ */ jsxs35("div", { className: "relative w-full md:w-[70%] h-[300px] md:h-[400px] flex items-center justify-center", children: [
28816
- data.length > 0 && /* @__PURE__ */ jsx58(ResponsiveContainer2, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs35(PieChart, { children: [
28817
- /* @__PURE__ */ jsxs35(
29027
+ /* @__PURE__ */ jsxs36("div", { className: "relative w-full md:w-[70%] h-[300px] md:h-[400px] flex items-center justify-center", children: [
29028
+ data.length > 0 && /* @__PURE__ */ jsx60(ResponsiveContainer2, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs36(PieChart, { children: [
29029
+ /* @__PURE__ */ jsxs36(
28818
29030
  Pie,
28819
29031
  {
28820
29032
  data,
@@ -28826,8 +29038,8 @@ var DonutChart = ({ className, style, ...props }) => {
28826
29038
  labelLine: false,
28827
29039
  isAnimationActive: false,
28828
29040
  children: [
28829
- data.map((entry, index) => /* @__PURE__ */ jsx58(Cell, { fill: entry.color }, `cell-${index}`)),
28830
- /* @__PURE__ */ jsx58(
29041
+ data.map((entry, index) => /* @__PURE__ */ jsx60(Cell, { fill: entry.color }, `cell-${index}`)),
29042
+ /* @__PURE__ */ jsx60(
28831
29043
  LabelList,
28832
29044
  {
28833
29045
  dataKey: "value",
@@ -28838,14 +29050,14 @@ var DonutChart = ({ className, style, ...props }) => {
28838
29050
  ]
28839
29051
  }
28840
29052
  ),
28841
- /* @__PURE__ */ jsx58(Tooltip2, { formatter: (value, name) => [`${value}k`, name] })
29053
+ /* @__PURE__ */ jsx60(Tooltip2, { formatter: (value, name) => [`${value}k`, name] })
28842
29054
  ] }) }),
28843
- /* @__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: [
29055
+ /* @__PURE__ */ jsxs36("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: [
28844
29056
  total,
28845
29057
  "k"
28846
29058
  ] })
28847
29059
  ] }),
28848
- /* @__PURE__ */ jsx58("div", { className: `flex ${forceDesktop ? "flex-col ml-auto space-y-3" : "flex-wrap justify-center gap-2 mt-4"}
29060
+ /* @__PURE__ */ jsx60("div", { className: `flex ${forceDesktop ? "flex-col ml-auto space-y-3" : "flex-wrap justify-center gap-2 mt-4"}
28849
29061
  w-full md:w-auto`, children: renderLegends() })
28850
29062
  ]
28851
29063
  }
@@ -28854,10 +29066,10 @@ var DonutChart = ({ className, style, ...props }) => {
28854
29066
  var PieChart_default = DonutChart;
28855
29067
 
28856
29068
  // src/components/Blocks/EmailComposer.tsx
28857
- import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
29069
+ import { jsx as jsx61, jsxs as jsxs37 } from "react/jsx-runtime";
28858
29070
  function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }) {
28859
- 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: [
28860
- /* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsx59(
29071
+ return /* @__PURE__ */ jsx61("div", { className, style, children: /* @__PURE__ */ jsxs37("div", { className: "border rounded-md shadow bg-[#fff] p-4 mx-auto z-[50] relative", children: [
29072
+ /* @__PURE__ */ jsx61("div", { className: "mb-3", children: /* @__PURE__ */ jsx61(
28861
29073
  "input",
28862
29074
  {
28863
29075
  type: "email",
@@ -28866,8 +29078,8 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28866
29078
  required: true
28867
29079
  }
28868
29080
  ) }),
28869
- /* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2", children: [
28870
- /* @__PURE__ */ jsx59(
29081
+ /* @__PURE__ */ jsx61("div", { className: "mb-3", children: /* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-2", children: [
29082
+ /* @__PURE__ */ jsx61(
28871
29083
  "input",
28872
29084
  {
28873
29085
  type: "email",
@@ -28878,7 +29090,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28878
29090
  required: true
28879
29091
  }
28880
29092
  ),
28881
- !showCc && /* @__PURE__ */ jsx59(
29093
+ !showCc && /* @__PURE__ */ jsx61(
28882
29094
  "button",
28883
29095
  {
28884
29096
  onClick: () => setShowCc?.(true),
@@ -28886,7 +29098,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28886
29098
  children: "Cc"
28887
29099
  }
28888
29100
  ),
28889
- !showBcc && /* @__PURE__ */ jsx59(
29101
+ !showBcc && /* @__PURE__ */ jsx61(
28890
29102
  "button",
28891
29103
  {
28892
29104
  onClick: () => setShowBcc?.(true),
@@ -28895,7 +29107,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28895
29107
  }
28896
29108
  )
28897
29109
  ] }) }),
28898
- showCc && /* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsx59(
29110
+ showCc && /* @__PURE__ */ jsx61("div", { className: "mb-3", children: /* @__PURE__ */ jsx61(
28899
29111
  "input",
28900
29112
  {
28901
29113
  type: "text",
@@ -28905,7 +29117,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28905
29117
  className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
28906
29118
  }
28907
29119
  ) }),
28908
- showBcc && /* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsx59(
29120
+ showBcc && /* @__PURE__ */ jsx61("div", { className: "mb-3", children: /* @__PURE__ */ jsx61(
28909
29121
  "input",
28910
29122
  {
28911
29123
  type: "text",
@@ -28915,7 +29127,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28915
29127
  className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
28916
29128
  }
28917
29129
  ) }),
28918
- /* @__PURE__ */ jsx59("div", { className: "mb-3", children: /* @__PURE__ */ jsx59(
29130
+ /* @__PURE__ */ jsx61("div", { className: "mb-3", children: /* @__PURE__ */ jsx61(
28919
29131
  "input",
28920
29132
  {
28921
29133
  type: "text",
@@ -28925,11 +29137,11 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
28925
29137
  className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
28926
29138
  }
28927
29139
  ) }),
28928
- /* @__PURE__ */ jsx59("div", { className: "mb-4", children: /* @__PURE__ */ jsx59(MyEditor, { value: body, onChange: setBody }) }),
28929
- /* @__PURE__ */ jsxs36("div", { className: "flex justify-end gap-2", children: [
28930
- /* @__PURE__ */ jsx59("button", { className: "px-4 py-2 rounded-md text-gray-600 hover:bg-gray-100", children: "Discard" }),
28931
- /* @__PURE__ */ jsx59("button", { className: "px-4 py-2 rounded-md border text-[#12715B] border-[#12715B]", children: "Reset" }),
28932
- /* @__PURE__ */ jsx59("button", { className: "px-4 py-2 rounded-md bg-[#12715B] text-white", children: "Send" })
29140
+ /* @__PURE__ */ jsx61("div", { className: "mb-4", children: /* @__PURE__ */ jsx61(MyEditor, { value: body, onChange: setBody }) }),
29141
+ /* @__PURE__ */ jsxs37("div", { className: "flex justify-end gap-2", children: [
29142
+ /* @__PURE__ */ jsx61("button", { className: "px-4 py-2 rounded-md text-gray-600 hover:bg-gray-100", children: "Discard" }),
29143
+ /* @__PURE__ */ jsx61("button", { className: "px-4 py-2 rounded-md border text-[#12715B] border-[#12715B]", children: "Reset" }),
29144
+ /* @__PURE__ */ jsx61("button", { className: "px-4 py-2 rounded-md bg-[#12715B] text-white", children: "Send" })
28933
29145
  ] })
28934
29146
  ] }) });
28935
29147
  }
@@ -29005,6 +29217,8 @@ export {
29005
29217
  Spacer_default as Spacer,
29006
29218
  Stages_default as Stages,
29007
29219
  SwitchToggle_default as SwitchToggle,
29220
+ TabGroupComponent as TabGroup,
29221
+ TabList,
29008
29222
  Table_default as Table,
29009
29223
  Tabs_default as Tabs,
29010
29224
  TextInput_default as Text,