@algorithm-shift/design-system 1.2.4 → 1.2.6

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.js CHANGED
@@ -32,18 +32,25 @@ var index_exports = {};
32
32
  __export(index_exports, {
33
33
  Button: () => Button,
34
34
  CheckboxInput: () => CheckboxInput,
35
- DateRange: () => DateRange,
35
+ DatePicker: () => DatePicker,
36
+ DateRange: () => DateRange_default,
36
37
  Dropdown: () => Dropdown,
37
38
  EmailInput: () => EmailInput,
39
+ FileInput: () => FileInput,
38
40
  FlexLayout: () => Flex_default,
39
41
  GridLayout: () => Grid_default,
42
+ Image: () => Image_default,
40
43
  Logo: () => Logo_default,
41
44
  MultiCheckbox: () => MultiCheckbox,
42
45
  Notification: () => Notification_default,
46
+ NumberInput: () => NumberInput,
43
47
  PasswordInput: () => PasswordInput,
44
48
  PhoneInput: () => PhoneInput,
45
49
  Profile: () => Profile_default,
46
50
  RadioInput: () => RadioInput,
51
+ RichText: () => RichText,
52
+ SearchInput: () => SearchInput,
53
+ Shape: () => Shape_default,
47
54
  Spacer: () => Spacer_default,
48
55
  Stages: () => Stages_default,
49
56
  SwitchToggle: () => SwitchToggle,
@@ -51,6 +58,7 @@ __export(index_exports, {
51
58
  Tabs: () => Tabs_default,
52
59
  TextInput: () => TextInput,
53
60
  Textarea: () => Textarea2,
61
+ Typography: () => Typography_default,
54
62
  UrlInput: () => UrlInput,
55
63
  buttonVariants: () => buttonVariants,
56
64
  cn: () => cn
@@ -137,17 +145,85 @@ var Grid_default = Grid;
137
145
 
138
146
  // src/components/Basic/Typography/Typography.tsx
139
147
  var import_react = __toESM(require("react"));
148
+ var Typography = ({
149
+ className,
150
+ style,
151
+ tagName,
152
+ textContent
153
+ }) => {
154
+ const Tag = tagName || "h1";
155
+ return import_react.default.createElement(
156
+ Tag,
157
+ {
158
+ style,
159
+ className: cn(className, "pointer-events-auto")
160
+ },
161
+ [
162
+ import_react.default.createElement("span", {
163
+ key: "html",
164
+ className: "pointer-events-none",
165
+ dangerouslySetInnerHTML: { __html: textContent }
166
+ })
167
+ ]
168
+ );
169
+ };
170
+ var Typography_default = Typography;
140
171
 
141
172
  // src/components/Basic/Shape/Shape.tsx
142
173
  var import_jsx_runtime4 = require("react/jsx-runtime");
174
+ var Shape = ({
175
+ children,
176
+ className,
177
+ style
178
+ }) => {
179
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className, style, children });
180
+ };
181
+ var Shape_default = Shape;
182
+
183
+ // src/components/Basic/Image/Image.tsx
184
+ var import_jsx_runtime5 = require("react/jsx-runtime");
185
+ var ImageControl = ({
186
+ className,
187
+ style,
188
+ imageUrl,
189
+ altText = "Preview"
190
+ }) => {
191
+ const imageClass = cn(
192
+ "relative group",
193
+ "h-[200px] w-[200px] border-1",
194
+ "border-2 border-dashed border-gray-400 flex items-center justify-center cursor-pointer hover:border-blue-500 transition",
195
+ className
196
+ );
197
+ const defaultImgClass = cn(
198
+ "w-full h-full",
199
+ className
200
+ );
201
+ let src;
202
+ let extraProps;
203
+ if (imageUrl) {
204
+ src = imageUrl;
205
+ extraProps = {
206
+ className: defaultImgClass
207
+ };
208
+ } else {
209
+ src = "./image-placeholder.png";
210
+ extraProps = {
211
+ width: 50,
212
+ height: 50,
213
+ className: "opacity-50"
214
+ };
215
+ }
216
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: imageClass, style, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("img", { src, alt: altText, ...extraProps }) });
217
+ };
218
+ var Image_default = ImageControl;
143
219
 
144
220
  // src/components/Inputs/TextInput/TextInput.tsx
145
221
  var React2 = __toESM(require("react"));
146
222
 
147
223
  // src/components/ui/input.tsx
148
- var import_jsx_runtime5 = require("react/jsx-runtime");
224
+ var import_jsx_runtime6 = require("react/jsx-runtime");
149
225
  function Input({ className, type, ...props }) {
150
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
226
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
151
227
  "input",
152
228
  {
153
229
  type,
@@ -164,7 +240,7 @@ function Input({ className, type, ...props }) {
164
240
  }
165
241
 
166
242
  // src/components/Inputs/TextInput/TextInput.tsx
167
- var import_jsx_runtime6 = require("react/jsx-runtime");
243
+ var import_jsx_runtime7 = require("react/jsx-runtime");
168
244
  var TextInput = ({ className, style, ...props }) => {
169
245
  const placeholder = props.placeholder || "Placeholder text";
170
246
  const regexPattern = props.regexPattern ?? "";
@@ -189,8 +265,8 @@ var TextInput = ({ className, style, ...props }) => {
189
265
  setError(null);
190
266
  }
191
267
  };
192
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
193
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
268
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
269
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
194
270
  Input,
195
271
  {
196
272
  type: "text",
@@ -207,11 +283,11 @@ var TextInput = ({ className, style, ...props }) => {
207
283
  pattern: regexPattern || void 0
208
284
  }
209
285
  ),
210
- error && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
286
+ error && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
211
287
  ] });
212
288
  };
213
289
 
214
- // src/components/Inputs/EmailInput/EmailInput.tsx
290
+ // src/components/Inputs/NumberInput/NumberInput.tsx
215
291
  var React3 = __toESM(require("react"));
216
292
 
217
293
  // node_modules/lucide-react/dist/esm/createLucideIcon.js
@@ -303,39 +379,63 @@ var createLucideIcon = (iconName, iconNode) => {
303
379
  return Component;
304
380
  };
305
381
 
382
+ // node_modules/lucide-react/dist/esm/icons/calculator.js
383
+ var __iconNode = [
384
+ ["rect", { width: "16", height: "20", x: "4", y: "2", rx: "2", key: "1nb95v" }],
385
+ ["line", { x1: "8", x2: "16", y1: "6", y2: "6", key: "x4nwl0" }],
386
+ ["line", { x1: "16", x2: "16", y1: "14", y2: "18", key: "wjye3r" }],
387
+ ["path", { d: "M16 10h.01", key: "1m94wz" }],
388
+ ["path", { d: "M12 10h.01", key: "1nrarc" }],
389
+ ["path", { d: "M8 10h.01", key: "19clt8" }],
390
+ ["path", { d: "M12 14h.01", key: "1etili" }],
391
+ ["path", { d: "M8 14h.01", key: "6423bh" }],
392
+ ["path", { d: "M12 18h.01", key: "mhygvu" }],
393
+ ["path", { d: "M8 18h.01", key: "lrp35t" }]
394
+ ];
395
+ var Calculator = createLucideIcon("calculator", __iconNode);
396
+
397
+ // node_modules/lucide-react/dist/esm/icons/calendar.js
398
+ var __iconNode2 = [
399
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
400
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
401
+ ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
402
+ ["path", { d: "M3 10h18", key: "8toen8" }]
403
+ ];
404
+ var Calendar = createLucideIcon("calendar", __iconNode2);
405
+
306
406
  // node_modules/lucide-react/dist/esm/icons/check.js
307
- var __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
308
- var Check = createLucideIcon("check", __iconNode);
407
+ var __iconNode3 = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
408
+ var Check = createLucideIcon("check", __iconNode3);
309
409
 
310
410
  // node_modules/lucide-react/dist/esm/icons/chevron-down.js
311
- var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
312
- var ChevronDown = createLucideIcon("chevron-down", __iconNode2);
411
+ var __iconNode4 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
412
+ var ChevronDown = createLucideIcon("chevron-down", __iconNode4);
313
413
 
314
414
  // node_modules/lucide-react/dist/esm/icons/chevron-left.js
315
- var __iconNode3 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
316
- var ChevronLeft = createLucideIcon("chevron-left", __iconNode3);
415
+ var __iconNode5 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
416
+ var ChevronLeft = createLucideIcon("chevron-left", __iconNode5);
317
417
 
318
418
  // node_modules/lucide-react/dist/esm/icons/chevron-right.js
319
- var __iconNode4 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
320
- var ChevronRight = createLucideIcon("chevron-right", __iconNode4);
419
+ var __iconNode6 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
420
+ var ChevronRight = createLucideIcon("chevron-right", __iconNode6);
321
421
 
322
422
  // node_modules/lucide-react/dist/esm/icons/chevron-up.js
323
- var __iconNode5 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
324
- var ChevronUp = createLucideIcon("chevron-up", __iconNode5);
423
+ var __iconNode7 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
424
+ var ChevronUp = createLucideIcon("chevron-up", __iconNode7);
325
425
 
326
426
  // node_modules/lucide-react/dist/esm/icons/circle.js
327
- var __iconNode6 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
328
- var Circle = createLucideIcon("circle", __iconNode6);
427
+ var __iconNode8 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
428
+ var Circle = createLucideIcon("circle", __iconNode8);
329
429
 
330
430
  // node_modules/lucide-react/dist/esm/icons/mail.js
331
- var __iconNode7 = [
431
+ var __iconNode9 = [
332
432
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
333
433
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
334
434
  ];
335
- var Mail = createLucideIcon("mail", __iconNode7);
435
+ var Mail = createLucideIcon("mail", __iconNode9);
336
436
 
337
437
  // node_modules/lucide-react/dist/esm/icons/scan-eye.js
338
- var __iconNode8 = [
438
+ var __iconNode10 = [
339
439
  ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
340
440
  ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
341
441
  ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
@@ -349,11 +449,18 @@ var __iconNode8 = [
349
449
  }
350
450
  ]
351
451
  ];
352
- var ScanEye = createLucideIcon("scan-eye", __iconNode8);
452
+ var ScanEye = createLucideIcon("scan-eye", __iconNode10);
353
453
 
354
- // src/components/Inputs/EmailInput/EmailInput.tsx
355
- var import_jsx_runtime7 = require("react/jsx-runtime");
356
- var EmailInput = ({ className, style, ...props }) => {
454
+ // node_modules/lucide-react/dist/esm/icons/search.js
455
+ var __iconNode11 = [
456
+ ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
457
+ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
458
+ ];
459
+ var Search = createLucideIcon("search", __iconNode11);
460
+
461
+ // src/components/Inputs/NumberInput/NumberInput.tsx
462
+ var import_jsx_runtime8 = require("react/jsx-runtime");
463
+ var NumberInput = ({ className, style, ...props }) => {
357
464
  const placeholder = props.placeholder ?? "Placeholder text";
358
465
  const regexPattern = props.regexPattern ?? "";
359
466
  const errorMessage = props.errorMessage ?? "Required";
@@ -377,13 +484,14 @@ var EmailInput = ({ className, style, ...props }) => {
377
484
  setError(null);
378
485
  }
379
486
  };
380
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
381
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex justify-start items-center relative", children: [
382
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
383
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
487
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
488
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex justify-start items-center relative", children: [
489
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Calculator, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
490
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
384
491
  Input,
385
492
  {
386
- type: "email",
493
+ type: "number",
494
+ id: "number-field",
387
495
  value,
388
496
  className,
389
497
  style,
@@ -398,14 +506,14 @@ var EmailInput = ({ className, style, ...props }) => {
398
506
  }
399
507
  )
400
508
  ] }),
401
- error && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
509
+ error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
402
510
  ] });
403
511
  };
404
512
 
405
- // src/components/Inputs/PasswordInput/PasswordInput.tsx
513
+ // src/components/Inputs/EmailInput/EmailInput.tsx
406
514
  var React4 = __toESM(require("react"));
407
- var import_jsx_runtime8 = require("react/jsx-runtime");
408
- var PasswordInput = ({ className, style, ...props }) => {
515
+ var import_jsx_runtime9 = require("react/jsx-runtime");
516
+ var EmailInput = ({ className, style, ...props }) => {
409
517
  const placeholder = props.placeholder ?? "Placeholder text";
410
518
  const regexPattern = props.regexPattern ?? "";
411
519
  const errorMessage = props.errorMessage ?? "Required";
@@ -429,10 +537,62 @@ var PasswordInput = ({ className, style, ...props }) => {
429
537
  setError(null);
430
538
  }
431
539
  };
432
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
433
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex justify-start items-center relative", children: [
434
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
435
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
540
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
541
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex justify-start items-center relative", children: [
542
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
543
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
544
+ Input,
545
+ {
546
+ type: "email",
547
+ value,
548
+ className,
549
+ style,
550
+ autoComplete: isAutocomplete ? "on" : "off",
551
+ placeholder,
552
+ onChange: handleChange,
553
+ disabled: isDisabled || !isEditable,
554
+ readOnly: isReadonly,
555
+ required: isRequired,
556
+ maxLength: noOfCharacters,
557
+ pattern: regexPattern || void 0
558
+ }
559
+ )
560
+ ] }),
561
+ error && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
562
+ ] });
563
+ };
564
+
565
+ // src/components/Inputs/PasswordInput/PasswordInput.tsx
566
+ var React5 = __toESM(require("react"));
567
+ var import_jsx_runtime10 = require("react/jsx-runtime");
568
+ var PasswordInput = ({ className, style, ...props }) => {
569
+ const placeholder = props.placeholder ?? "Placeholder text";
570
+ const regexPattern = props.regexPattern ?? "";
571
+ const errorMessage = props.errorMessage ?? "Required";
572
+ const noOfCharacters = props.noOfCharacters ?? 100;
573
+ const isRequired = props.isRequired ?? false;
574
+ const isEditable = props.isEditable ?? true;
575
+ const isDisabled = props.isDisabled ?? false;
576
+ const isReadonly = props.isReadonly ?? false;
577
+ const isAutocomplete = props.isAutocomplete ?? false;
578
+ const [value, setValue] = React5.useState("");
579
+ const [error, setError] = React5.useState(null);
580
+ const handleChange = (e) => {
581
+ const val = e.target.value;
582
+ if (val.length > noOfCharacters) return;
583
+ setValue(val);
584
+ if (isRequired && val.trim() === "") {
585
+ setError(errorMessage);
586
+ } else if (regexPattern && !new RegExp(regexPattern).test(val)) {
587
+ setError(errorMessage);
588
+ } else {
589
+ setError(null);
590
+ }
591
+ };
592
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
593
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex justify-start items-center relative", children: [
594
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
595
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
436
596
  Input,
437
597
  {
438
598
  type: "password",
@@ -451,17 +611,17 @@ var PasswordInput = ({ className, style, ...props }) => {
451
611
  }
452
612
  )
453
613
  ] }),
454
- error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
614
+ error && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
455
615
  ] });
456
616
  };
457
617
 
458
618
  // src/components/Inputs/Textarea/Textarea.tsx
459
- var React5 = __toESM(require("react"));
619
+ var React6 = __toESM(require("react"));
460
620
 
461
621
  // src/components/ui/textarea.tsx
462
- var import_jsx_runtime9 = require("react/jsx-runtime");
622
+ var import_jsx_runtime11 = require("react/jsx-runtime");
463
623
  function Textarea({ className, ...props }) {
464
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
624
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
465
625
  "textarea",
466
626
  {
467
627
  "data-slot": "textarea",
@@ -475,7 +635,7 @@ function Textarea({ className, ...props }) {
475
635
  }
476
636
 
477
637
  // src/components/Inputs/Textarea/Textarea.tsx
478
- var import_jsx_runtime10 = require("react/jsx-runtime");
638
+ var import_jsx_runtime12 = require("react/jsx-runtime");
479
639
  var Textarea2 = ({ className, style, ...props }) => {
480
640
  const placeholder = props.placeholder ?? "Placeholder text";
481
641
  const regexPattern = props.regexPattern ?? "";
@@ -486,8 +646,8 @@ var Textarea2 = ({ className, style, ...props }) => {
486
646
  const isDisabled = props.isDisabled ?? false;
487
647
  const isReadonly = props.isReadonly ?? false;
488
648
  const isAutocomplete = props.isAutocomplete ?? false;
489
- const [value, setValue] = React5.useState("");
490
- const [error, setError] = React5.useState(null);
649
+ const [value, setValue] = React6.useState("");
650
+ const [error, setError] = React6.useState(null);
491
651
  const handleChange = (e) => {
492
652
  const val = e.target.value;
493
653
  if (val.length > noOfCharacters) return;
@@ -500,8 +660,8 @@ var Textarea2 = ({ className, style, ...props }) => {
500
660
  setError(null);
501
661
  }
502
662
  };
503
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
504
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
663
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
664
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
505
665
  Textarea,
506
666
  {
507
667
  id: "textarea-field",
@@ -517,13 +677,13 @@ var Textarea2 = ({ className, style, ...props }) => {
517
677
  maxLength: noOfCharacters
518
678
  }
519
679
  ),
520
- error && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
680
+ error && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
521
681
  ] });
522
682
  };
523
683
 
524
684
  // src/components/Inputs/UrlInput/UrlInput.tsx
525
- var React6 = __toESM(require("react"));
526
- var import_jsx_runtime11 = require("react/jsx-runtime");
685
+ var React7 = __toESM(require("react"));
686
+ var import_jsx_runtime13 = require("react/jsx-runtime");
527
687
  var UrlInput = ({ className, style, ...props }) => {
528
688
  const placeholder = props.placeholder ?? "Placeholder text";
529
689
  const regexPattern = props.regexPattern ?? "";
@@ -534,8 +694,8 @@ var UrlInput = ({ className, style, ...props }) => {
534
694
  const isDisabled = props.isDisabled ?? false;
535
695
  const isReadonly = props.isReadonly ?? false;
536
696
  const isAutocomplete = props.isAutocomplete ?? false;
537
- const [value, setValue] = React6.useState("");
538
- const [error, setError] = React6.useState(null);
697
+ const [value, setValue] = React7.useState("");
698
+ const [error, setError] = React7.useState(null);
539
699
  const handleChange = (e) => {
540
700
  const val = e.target.value;
541
701
  if (val.length > noOfCharacters) return;
@@ -548,10 +708,10 @@ var UrlInput = ({ className, style, ...props }) => {
548
708
  setError(null);
549
709
  }
550
710
  };
551
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
552
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex justify-start items-center relative", children: [
553
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("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://" }),
554
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
711
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
712
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex justify-start items-center relative", children: [
713
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("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://" }),
714
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
555
715
  Input,
556
716
  {
557
717
  type: "url",
@@ -570,18 +730,18 @@ var UrlInput = ({ className, style, ...props }) => {
570
730
  }
571
731
  )
572
732
  ] }),
573
- error && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
733
+ error && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
574
734
  ] });
575
735
  };
576
736
 
577
737
  // src/components/ui/checkbox.tsx
578
738
  var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
579
- var import_jsx_runtime12 = require("react/jsx-runtime");
739
+ var import_jsx_runtime14 = require("react/jsx-runtime");
580
740
  function Checkbox({
581
741
  className,
582
742
  ...props
583
743
  }) {
584
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
744
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
585
745
  CheckboxPrimitive.Root,
586
746
  {
587
747
  "data-slot": "checkbox",
@@ -590,12 +750,12 @@ function Checkbox({
590
750
  className
591
751
  ),
592
752
  ...props,
593
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
753
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
594
754
  CheckboxPrimitive.Indicator,
595
755
  {
596
756
  "data-slot": "checkbox-indicator",
597
757
  className: "flex items-center justify-center text-current transition-none",
598
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Check, { className: "size-3.5" })
758
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Check, { className: "size-3.5" })
599
759
  }
600
760
  )
601
761
  }
@@ -604,12 +764,12 @@ function Checkbox({
604
764
 
605
765
  // src/components/ui/label.tsx
606
766
  var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
607
- var import_jsx_runtime13 = require("react/jsx-runtime");
767
+ var import_jsx_runtime15 = require("react/jsx-runtime");
608
768
  function Label({
609
769
  className,
610
770
  ...props
611
771
  }) {
612
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
772
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
613
773
  LabelPrimitive.Root,
614
774
  {
615
775
  "data-slot": "label",
@@ -623,23 +783,23 @@ function Label({
623
783
  }
624
784
 
625
785
  // src/components/Inputs/Checkbox/Checkbox.tsx
626
- var import_jsx_runtime14 = require("react/jsx-runtime");
786
+ var import_jsx_runtime16 = require("react/jsx-runtime");
627
787
  var CheckboxInput = ({ className, style, ...props }) => {
628
788
  const text = props.text ? props.text : "Subscribe";
629
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center space-x-2", children: [
630
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Checkbox, { id: "newsletter" }),
631
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Label, { htmlFor: "newsletter", children: text })
789
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center space-x-2", children: [
790
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Checkbox, { id: "newsletter" }),
791
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Label, { htmlFor: "newsletter", children: text })
632
792
  ] }) });
633
793
  };
634
794
 
635
795
  // src/components/ui/radio-group.tsx
636
796
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
637
- var import_jsx_runtime15 = require("react/jsx-runtime");
797
+ var import_jsx_runtime17 = require("react/jsx-runtime");
638
798
  function RadioGroup({
639
799
  className,
640
800
  ...props
641
801
  }) {
642
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
802
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
643
803
  RadioGroupPrimitive.Root,
644
804
  {
645
805
  "data-slot": "radio-group",
@@ -652,7 +812,7 @@ function RadioGroupItem({
652
812
  className,
653
813
  ...props
654
814
  }) {
655
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
815
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
656
816
  RadioGroupPrimitive.Item,
657
817
  {
658
818
  "data-slot": "radio-group-item",
@@ -661,12 +821,12 @@ function RadioGroupItem({
661
821
  className
662
822
  ),
663
823
  ...props,
664
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
824
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
665
825
  RadioGroupPrimitive.Indicator,
666
826
  {
667
827
  "data-slot": "radio-group-indicator",
668
828
  className: "relative flex items-center justify-center",
669
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
829
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
670
830
  }
671
831
  )
672
832
  }
@@ -674,48 +834,117 @@ function RadioGroupItem({
674
834
  }
675
835
 
676
836
  // src/components/Inputs/RadioInput/RadioInput.tsx
677
- var import_jsx_runtime16 = require("react/jsx-runtime");
837
+ var import_jsx_runtime18 = require("react/jsx-runtime");
678
838
  var RadioInput = ({ className, style, ...props }) => {
679
839
  const text = Array.isArray(props.text) ? props.text : [props.text ?? "Subscribe"];
680
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(RadioGroup, { defaultValue: "option-1", children: text?.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center space-x-2", children: [
681
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(RadioGroupItem, { value: item, id: `r${index}` }),
682
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Label, { htmlFor: `r${index}`, children: item })
840
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RadioGroup, { defaultValue: "option-1", children: text?.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center space-x-2", children: [
841
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(RadioGroupItem, { value: item, id: `r${index}` }),
842
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Label, { htmlFor: `r${index}`, children: item })
683
843
  ] }, index)) }) });
684
844
  };
685
845
 
686
846
  // src/components/Inputs/MultiCheckbox/MultiCheckbox.tsx
687
- var import_jsx_runtime17 = require("react/jsx-runtime");
847
+ var import_jsx_runtime19 = require("react/jsx-runtime");
688
848
  var MultiCheckbox = ({ className, style, ...props }) => {
689
849
  const text = Array.isArray(props.text) ? props.text : [props.text ?? "Subscribe"];
690
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex gap-3 flex-col", children: text?.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center space-x-2", children: [
691
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Checkbox, { id: `newsletter-${index}` }),
692
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Label, { htmlFor: `newsletter-${index}`, children: item })
850
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "flex gap-3 flex-col", children: text?.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center space-x-2", children: [
851
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Checkbox, { id: `newsletter-${index}` }),
852
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Label, { htmlFor: `newsletter-${index}`, children: item })
693
853
  ] }, index)) }) });
694
854
  };
695
855
 
696
856
  // src/components/Global/TinyMceEditor.tsx
697
857
  var import_react4 = require("react");
698
858
  var import_tinymce_react = require("@tinymce/tinymce-react");
699
- var import_jsx_runtime18 = require("react/jsx-runtime");
859
+ var import_jsx_runtime20 = require("react/jsx-runtime");
860
+ function MyEditor({
861
+ value,
862
+ onChange,
863
+ isDefault
864
+ }) {
865
+ const editorRef = (0, import_react4.useRef)(null);
866
+ function stripOuterP(html) {
867
+ const trimmedHtml = html.trim();
868
+ if (!trimmedHtml) return "";
869
+ const div = document.createElement("div");
870
+ div.innerHTML = trimmedHtml;
871
+ const firstChild = div.firstElementChild;
872
+ if (div.childElementCount === 1 && firstChild?.tagName === "P") {
873
+ return firstChild.innerHTML;
874
+ }
875
+ return trimmedHtml;
876
+ }
877
+ const isDefaultToolbar = (0, import_react4.useMemo)(() => {
878
+ let toolbar = "undo redo | formatselect | bold italic forecolor";
879
+ if (isDefault) {
880
+ toolbar = "undo redo | blocks | bold italic forecolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help";
881
+ }
882
+ return toolbar;
883
+ }, [isDefault]);
884
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
885
+ import_tinymce_react.Editor,
886
+ {
887
+ apiKey: process.env.NEXT_PUBLIC_TINYMCE_API_KEY,
888
+ tinymceScriptSrc: process.env.NEXT_PUBLIC_TINYMCE_SCRIPT_SRC,
889
+ onInit: (_evt, editor) => editorRef.current = editor,
890
+ value,
891
+ licenseKey: "gpl",
892
+ init: {
893
+ height: 300,
894
+ menubar: false,
895
+ forced_root_block: false,
896
+ plugins: [
897
+ "advlist",
898
+ "autolink",
899
+ "lists",
900
+ "link",
901
+ "image",
902
+ "charmap",
903
+ "preview",
904
+ "anchor",
905
+ "searchreplace",
906
+ "visualblocks",
907
+ "code",
908
+ "fullscreen",
909
+ "insertdatetime",
910
+ "media",
911
+ "table",
912
+ "help",
913
+ "wordcount"
914
+ ],
915
+ toolbar: isDefaultToolbar,
916
+ content_style: `
917
+ body {
918
+ outline: none;
919
+ }
920
+ `
921
+ },
922
+ onEditorChange: (content) => onChange?.(stripOuterP(content))
923
+ }
924
+ );
925
+ }
700
926
 
701
927
  // src/components/Inputs/RichText/RichText.tsx
702
- var import_jsx_runtime19 = require("react/jsx-runtime");
928
+ var import_jsx_runtime21 = require("react/jsx-runtime");
929
+ function RichText({ className, style }) {
930
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(MyEditor, { isDefault: true }) });
931
+ }
703
932
 
704
933
  // src/components/Inputs/Dropdown/Dropdown.tsx
705
- var React7 = __toESM(require("react"));
934
+ var React8 = __toESM(require("react"));
706
935
 
707
936
  // src/components/ui/select.tsx
708
937
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
709
- var import_jsx_runtime20 = require("react/jsx-runtime");
938
+ var import_jsx_runtime22 = require("react/jsx-runtime");
710
939
  function Select({
711
940
  ...props
712
941
  }) {
713
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
942
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
714
943
  }
715
944
  function SelectValue({
716
945
  ...props
717
946
  }) {
718
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
947
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
719
948
  }
720
949
  function SelectTrigger({
721
950
  className,
@@ -723,7 +952,7 @@ function SelectTrigger({
723
952
  children,
724
953
  ...props
725
954
  }) {
726
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
955
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
727
956
  SelectPrimitive.Trigger,
728
957
  {
729
958
  "data-slot": "select-trigger",
@@ -735,7 +964,7 @@ function SelectTrigger({
735
964
  ...props,
736
965
  children: [
737
966
  children,
738
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronDown, { className: "size-4 opacity-50" }) })
967
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ChevronDown, { className: "size-4 opacity-50" }) })
739
968
  ]
740
969
  }
741
970
  );
@@ -746,7 +975,7 @@ function SelectContent({
746
975
  position = "popper",
747
976
  ...props
748
977
  }) {
749
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
978
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
750
979
  SelectPrimitive.Content,
751
980
  {
752
981
  "data-slot": "select-content",
@@ -758,8 +987,8 @@ function SelectContent({
758
987
  position,
759
988
  ...props,
760
989
  children: [
761
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectScrollUpButton, {}),
762
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
990
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectScrollUpButton, {}),
991
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
763
992
  SelectPrimitive.Viewport,
764
993
  {
765
994
  className: cn(
@@ -769,7 +998,7 @@ function SelectContent({
769
998
  children
770
999
  }
771
1000
  ),
772
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectScrollDownButton, {})
1001
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectScrollDownButton, {})
773
1002
  ]
774
1003
  }
775
1004
  ) });
@@ -779,7 +1008,7 @@ function SelectItem({
779
1008
  children,
780
1009
  ...props
781
1010
  }) {
782
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
1011
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
783
1012
  SelectPrimitive.Item,
784
1013
  {
785
1014
  "data-slot": "select-item",
@@ -789,8 +1018,8 @@ function SelectItem({
789
1018
  ),
790
1019
  ...props,
791
1020
  children: [
792
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Check, { className: "size-4" }) }) }),
793
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectPrimitive.ItemText, { children })
1021
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Check, { className: "size-4" }) }) }),
1022
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectPrimitive.ItemText, { children })
794
1023
  ]
795
1024
  }
796
1025
  );
@@ -799,7 +1028,7 @@ function SelectScrollUpButton({
799
1028
  className,
800
1029
  ...props
801
1030
  }) {
802
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1031
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
803
1032
  SelectPrimitive.ScrollUpButton,
804
1033
  {
805
1034
  "data-slot": "select-scroll-up-button",
@@ -808,7 +1037,7 @@ function SelectScrollUpButton({
808
1037
  className
809
1038
  ),
810
1039
  ...props,
811
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronUp, { className: "size-4" })
1040
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ChevronUp, { className: "size-4" })
812
1041
  }
813
1042
  );
814
1043
  }
@@ -816,7 +1045,7 @@ function SelectScrollDownButton({
816
1045
  className,
817
1046
  ...props
818
1047
  }) {
819
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1048
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
820
1049
  SelectPrimitive.ScrollDownButton,
821
1050
  {
822
1051
  "data-slot": "select-scroll-down-button",
@@ -825,13 +1054,13 @@ function SelectScrollDownButton({
825
1054
  className
826
1055
  ),
827
1056
  ...props,
828
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronDown, { className: "size-4" })
1057
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ChevronDown, { className: "size-4" })
829
1058
  }
830
1059
  );
831
1060
  }
832
1061
 
833
1062
  // src/components/Global/SelectDropdown.tsx
834
- var import_jsx_runtime21 = require("react/jsx-runtime");
1063
+ var import_jsx_runtime23 = require("react/jsx-runtime");
835
1064
  function SelectDropdown({
836
1065
  options,
837
1066
  placeholder = "Select an option",
@@ -843,23 +1072,23 @@ function SelectDropdown({
843
1072
  readOnly,
844
1073
  style
845
1074
  }) {
846
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Select, { value, onValueChange: onChange, disabled, children: [
847
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1075
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Select, { value, onValueChange: onChange, disabled, children: [
1076
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
848
1077
  SelectTrigger,
849
1078
  {
850
1079
  id,
851
1080
  className,
852
1081
  style: style ?? {},
853
1082
  "aria-readonly": readOnly,
854
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectValue, { placeholder })
1083
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectValue, { placeholder })
855
1084
  }
856
1085
  ),
857
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectContent, { children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
1086
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectContent, { children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
858
1087
  ] });
859
1088
  }
860
1089
 
861
1090
  // src/components/Inputs/Dropdown/Dropdown.tsx
862
- var import_jsx_runtime22 = require("react/jsx-runtime");
1091
+ var import_jsx_runtime24 = require("react/jsx-runtime");
863
1092
  var Dropdown = ({ className, style, ...props }) => {
864
1093
  const text = Array.isArray(props.text) ? props.text : [props.text ?? "Default"];
865
1094
  const placeholder = props.placeholder ? props.placeholder : "Placeholder text";
@@ -874,8 +1103,8 @@ var Dropdown = ({ className, style, ...props }) => {
874
1103
  const isDisabled = props.isDisabled ?? false;
875
1104
  const isReadonly = props.isReadonly ?? false;
876
1105
  const isAutocomplete = props.isAutocomplete ?? false;
877
- const [value, setValue] = React7.useState("");
878
- const [error, setError] = React7.useState(null);
1106
+ const [value, setValue] = React8.useState("");
1107
+ const [error, setError] = React8.useState(null);
879
1108
  const handleChange = (val) => {
880
1109
  setValue(val);
881
1110
  if (isRequired && val.trim() === "") {
@@ -886,8 +1115,8 @@ var Dropdown = ({ className, style, ...props }) => {
886
1115
  setError(null);
887
1116
  }
888
1117
  };
889
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
890
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex gap-3 flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1118
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1119
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex gap-3 flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
891
1120
  SelectDropdown,
892
1121
  {
893
1122
  options: formatList,
@@ -904,18 +1133,18 @@ var Dropdown = ({ className, style, ...props }) => {
904
1133
  pattern: regexPattern || void 0
905
1134
  }
906
1135
  ) }),
907
- error && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
1136
+ error && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
908
1137
  ] });
909
1138
  };
910
1139
 
911
1140
  // src/components/ui/switch.tsx
912
1141
  var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"));
913
- var import_jsx_runtime23 = require("react/jsx-runtime");
1142
+ var import_jsx_runtime25 = require("react/jsx-runtime");
914
1143
  function Switch({
915
1144
  className,
916
1145
  ...props
917
1146
  }) {
918
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1147
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
919
1148
  SwitchPrimitive.Root,
920
1149
  {
921
1150
  "data-slot": "switch",
@@ -924,7 +1153,7 @@ function Switch({
924
1153
  className
925
1154
  ),
926
1155
  ...props,
927
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1156
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
928
1157
  SwitchPrimitive.Thumb,
929
1158
  {
930
1159
  "data-slot": "switch-thumb",
@@ -938,30 +1167,30 @@ function Switch({
938
1167
  }
939
1168
 
940
1169
  // src/components/Inputs/SwitchToggle/SwitchToggle.tsx
941
- var import_jsx_runtime24 = require("react/jsx-runtime");
1170
+ var import_jsx_runtime26 = require("react/jsx-runtime");
942
1171
  var SwitchToggle = ({ className, style, ...props }) => {
943
1172
  const text = Array.isArray(props.text) ? props.text : [props.text ?? "Subscribe"];
944
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className, style, children: text?.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center space-x-2 mb-2", children: [
945
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Switch, { id: `switch-${index}` }),
946
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Label, { htmlFor: `switch-${index}`, children: item })
1173
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className, style, children: text?.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center space-x-2 mb-2", children: [
1174
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Switch, { id: `switch-${index}` }),
1175
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Label, { htmlFor: `switch-${index}`, children: item })
947
1176
  ] }, index)) });
948
1177
  };
949
1178
 
950
1179
  // src/components/Inputs/PhoneInput/PhoneInput.tsx
951
- var React8 = __toESM(require("react"));
1180
+ var React9 = __toESM(require("react"));
952
1181
  var import_react_international_phone = require("react-international-phone");
953
1182
  var import_style = require("react-international-phone/style.css");
954
- var import_jsx_runtime25 = require("react/jsx-runtime");
1183
+ var import_jsx_runtime27 = require("react/jsx-runtime");
955
1184
  var PhoneInput = ({ className, style, ...props }) => {
956
1185
  const placeholder = props.placeholder ?? "Enter phone number";
957
- const [value, setValue] = React8.useState("");
1186
+ const [value, setValue] = React9.useState("");
958
1187
  const regexPattern = props.regexPattern ?? "";
959
1188
  const errorMessage = props.errorMessage ?? "Required";
960
1189
  const noOfCharacters = props.noOfCharacters ?? 100;
961
1190
  const isRequired = props.isRequired ?? false;
962
1191
  const isEditable = props.isEditable ?? true;
963
1192
  const isDisabled = props.isDisabled ?? false;
964
- const [error, setError] = React8.useState(null);
1193
+ const [error, setError] = React9.useState(null);
965
1194
  const handleChange = (val) => {
966
1195
  if (val.length > noOfCharacters) return;
967
1196
  setValue(val);
@@ -973,8 +1202,8 @@ var PhoneInput = ({ className, style, ...props }) => {
973
1202
  setError(null);
974
1203
  }
975
1204
  };
976
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
977
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1205
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
1206
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
978
1207
  import_react_international_phone.PhoneInput,
979
1208
  {
980
1209
  defaultCountry: "in",
@@ -991,23 +1220,158 @@ var PhoneInput = ({ className, style, ...props }) => {
991
1220
  style
992
1221
  }
993
1222
  ),
994
- error && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
1223
+ error && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
1224
+ ] });
1225
+ };
1226
+
1227
+ // src/components/Inputs/SearchInput/SearchInput.tsx
1228
+ var React10 = __toESM(require("react"));
1229
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1230
+ var SearchInput = ({ className, style, ...props }) => {
1231
+ const placeholder = props.placeholder ?? "Placeholder text";
1232
+ const regexPattern = props.regexPattern ?? "";
1233
+ const errorMessage = props.errorMessage ?? "Required";
1234
+ const noOfCharacters = props.noOfCharacters ?? 100;
1235
+ const isRequired = props.isRequired ?? false;
1236
+ const isEditable = props.isEditable ?? true;
1237
+ const isDisabled = props.isDisabled ?? false;
1238
+ const isReadonly = props.isReadonly ?? false;
1239
+ const isAutocomplete = props.isAutocomplete ?? false;
1240
+ const [value, setValue] = React10.useState("");
1241
+ const [error, setError] = React10.useState(null);
1242
+ const handleChange = (e) => {
1243
+ const val = e.target.value;
1244
+ if (val.length > noOfCharacters) return;
1245
+ setValue(val);
1246
+ if (isRequired && val.trim() === "") {
1247
+ setError(errorMessage);
1248
+ } else if (regexPattern && !new RegExp(regexPattern).test(val)) {
1249
+ setError(errorMessage);
1250
+ } else {
1251
+ setError(null);
1252
+ }
1253
+ };
1254
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
1255
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex justify-start items-center relative", children: [
1256
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
1257
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1258
+ Input,
1259
+ {
1260
+ type: "text",
1261
+ id: "text-field",
1262
+ className,
1263
+ style,
1264
+ value,
1265
+ autoComplete: isAutocomplete ? "on" : "off",
1266
+ placeholder,
1267
+ onChange: handleChange,
1268
+ disabled: isDisabled || !isEditable,
1269
+ readOnly: isReadonly,
1270
+ required: isRequired,
1271
+ maxLength: noOfCharacters,
1272
+ pattern: regexPattern || void 0
1273
+ }
1274
+ )
1275
+ ] }),
1276
+ error && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
1277
+ ] });
1278
+ };
1279
+
1280
+ // src/components/Inputs/FileInput/FileInput.tsx
1281
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1282
+ var FileInput = ({ className, style, ...props }) => {
1283
+ const placeholder = props.placeholder ?? "Placeholder text";
1284
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "d-flex items-center relative align-middle", children: [
1285
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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-[11px]", children: "Browse" }),
1286
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1287
+ Input,
1288
+ {
1289
+ type: "file",
1290
+ id: "file",
1291
+ autoComplete: "off",
1292
+ placeholder,
1293
+ className,
1294
+ style
1295
+ }
1296
+ )
995
1297
  ] });
996
1298
  };
997
1299
 
998
1300
  // src/components/Inputs/DatePicker/DatePicker.tsx
999
1301
  var import_react5 = __toESM(require("react"));
1000
- var import_jsx_runtime26 = require("react/jsx-runtime");
1302
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1303
+ function DatePicker({ className, style, ...props }) {
1304
+ const placeholder = props.placeholder ?? "Placeholder text";
1305
+ const minimumDate = props.minimumDate ?? "none";
1306
+ const customMinimumDate = props.customMinimumDate ?? "";
1307
+ const maximumDate = props.maximumDate ?? "none";
1308
+ const customMaximumDate = props.customMaximumDate ?? "";
1309
+ const errorMessage = props.errorMessage ?? "Required";
1310
+ const isRequired = props.isRequired ?? false;
1311
+ const isEditable = props.isEditable ?? true;
1312
+ const isDisabled = props.isDisabled ?? false;
1313
+ const isReadonly = props.isReadonly ?? false;
1314
+ const isAutocomplete = props.isAutocomplete ?? false;
1315
+ const [value, setValue] = import_react5.default.useState("");
1316
+ const [error, setError] = import_react5.default.useState(null);
1317
+ const resolveDate = (option, customOption) => {
1318
+ if (!option) return void 0;
1319
+ switch (option) {
1320
+ case "today":
1321
+ return (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
1322
+ case "custom":
1323
+ return customOption ?? void 0;
1324
+ case "none":
1325
+ default:
1326
+ return void 0;
1327
+ }
1328
+ };
1329
+ const minDate = resolveDate(minimumDate, customMinimumDate);
1330
+ const maxDate = resolveDate(maximumDate, customMaximumDate);
1331
+ const handleChange = (e) => {
1332
+ const val = e.target.value;
1333
+ setValue(val);
1334
+ if (isRequired && val.trim() === "") {
1335
+ setError(errorMessage);
1336
+ } else {
1337
+ setError(null);
1338
+ }
1339
+ };
1340
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
1341
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex justify-start items-center relative", children: [
1342
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Calendar, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
1343
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1344
+ Input,
1345
+ {
1346
+ type: "date",
1347
+ id: "date",
1348
+ autoComplete: isAutocomplete ? "on" : "off",
1349
+ onChange: handleChange,
1350
+ disabled: isDisabled || !isEditable,
1351
+ value,
1352
+ readOnly: isReadonly,
1353
+ required: isRequired,
1354
+ placeholder,
1355
+ min: minDate,
1356
+ max: maxDate,
1357
+ className,
1358
+ style
1359
+ }
1360
+ )
1361
+ ] }),
1362
+ error && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "mt-1 text-xs text-red-500", children: error })
1363
+ ] });
1364
+ }
1001
1365
 
1002
1366
  // src/components/Inputs/DateRange/DateRange.tsx
1003
- var React11 = __toESM(require("react"));
1367
+ var React13 = __toESM(require("react"));
1004
1368
  var import_date_fns = require("date-fns");
1005
1369
 
1006
1370
  // src/components/ui/calendar.tsx
1007
- var React10 = __toESM(require("react"));
1371
+ var React12 = __toESM(require("react"));
1008
1372
  var import_react_day_picker = require("react-day-picker");
1009
- var import_jsx_runtime27 = require("react/jsx-runtime");
1010
- function Calendar({
1373
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1374
+ function Calendar2({
1011
1375
  className,
1012
1376
  classNames,
1013
1377
  showOutsideDays = true,
@@ -1018,7 +1382,7 @@ function Calendar({
1018
1382
  ...props
1019
1383
  }) {
1020
1384
  const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
1021
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1385
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1022
1386
  import_react_day_picker.DayPicker,
1023
1387
  {
1024
1388
  showOutsideDays,
@@ -1117,7 +1481,7 @@ function Calendar({
1117
1481
  },
1118
1482
  components: {
1119
1483
  Root: ({ className: className2, rootRef, ...props2 }) => {
1120
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1484
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1121
1485
  "div",
1122
1486
  {
1123
1487
  "data-slot": "calendar",
@@ -1129,10 +1493,10 @@ function Calendar({
1129
1493
  },
1130
1494
  Chevron: ({ className: className2, orientation, ...props2 }) => {
1131
1495
  if (orientation === "left") {
1132
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronLeft, { className: cn("size-4", className2), ...props2 });
1496
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronLeft, { className: cn("size-4", className2), ...props2 });
1133
1497
  }
1134
1498
  if (orientation === "right") {
1135
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1499
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1136
1500
  ChevronRight,
1137
1501
  {
1138
1502
  className: cn("size-4", className2),
@@ -1140,11 +1504,11 @@ function Calendar({
1140
1504
  }
1141
1505
  );
1142
1506
  }
1143
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ChevronDown, { className: cn("size-4", className2), ...props2 });
1507
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronDown, { className: cn("size-4", className2), ...props2 });
1144
1508
  },
1145
1509
  DayButton: CalendarDayButton,
1146
1510
  WeekNumber: ({ children, ...props2 }) => {
1147
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
1511
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("td", { ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
1148
1512
  },
1149
1513
  ...components
1150
1514
  },
@@ -1159,11 +1523,11 @@ function CalendarDayButton({
1159
1523
  ...props
1160
1524
  }) {
1161
1525
  const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
1162
- const ref = React10.useRef(null);
1163
- React10.useEffect(() => {
1526
+ const ref = React12.useRef(null);
1527
+ React12.useEffect(() => {
1164
1528
  if (modifiers.focused) ref.current?.focus();
1165
1529
  }, [modifiers.focused]);
1166
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1530
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1167
1531
  Button,
1168
1532
  {
1169
1533
  ref,
@@ -1186,16 +1550,16 @@ function CalendarDayButton({
1186
1550
 
1187
1551
  // src/components/ui/popover.tsx
1188
1552
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
1189
- var import_jsx_runtime28 = require("react/jsx-runtime");
1553
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1190
1554
  function Popover({
1191
1555
  ...props
1192
1556
  }) {
1193
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
1557
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
1194
1558
  }
1195
1559
  function PopoverTrigger({
1196
1560
  ...props
1197
1561
  }) {
1198
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
1562
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
1199
1563
  }
1200
1564
  function PopoverContent({
1201
1565
  className,
@@ -1203,7 +1567,7 @@ function PopoverContent({
1203
1567
  sideOffset = 4,
1204
1568
  ...props
1205
1569
  }) {
1206
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1570
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1207
1571
  PopoverPrimitive.Content,
1208
1572
  {
1209
1573
  "data-slot": "popover-content",
@@ -1219,14 +1583,14 @@ function PopoverContent({
1219
1583
  }
1220
1584
 
1221
1585
  // src/components/Inputs/DateRange/DateRange.tsx
1222
- var import_jsx_runtime29 = require("react/jsx-runtime");
1586
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1223
1587
  var DateRange = ({ className, style }) => {
1224
- const [date, setDate] = React11.useState({
1588
+ const [date, setDate] = React13.useState({
1225
1589
  from: /* @__PURE__ */ new Date(),
1226
1590
  to: (0, import_date_fns.addDays)(/* @__PURE__ */ new Date(), 7)
1227
1591
  });
1228
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(Popover, { children: [
1229
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1592
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Popover, { children: [
1593
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1230
1594
  Button,
1231
1595
  {
1232
1596
  id: "date",
@@ -1235,16 +1599,16 @@ var DateRange = ({ className, style }) => {
1235
1599
  "w-[300px] justify-start text-left font-normal text-[11px]",
1236
1600
  !date && "text-muted-foreground"
1237
1601
  ),
1238
- children: date?.from ? date.to ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
1602
+ children: date?.from ? date.to ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
1239
1603
  (0, import_date_fns.format)(date.from, "LLL dd, y"),
1240
1604
  " -",
1241
1605
  " ",
1242
1606
  (0, import_date_fns.format)(date.to, "LLL dd, y")
1243
- ] }) : (0, import_date_fns.format)(date.from, "LLL dd, y") : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: "Pick a date range" })
1607
+ ] }) : (0, import_date_fns.format)(date.from, "LLL dd, y") : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { children: "Pick a date range" })
1244
1608
  }
1245
1609
  ) }),
1246
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
1247
- Calendar,
1610
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1611
+ Calendar2,
1248
1612
  {
1249
1613
  mode: "range",
1250
1614
  defaultMonth: date?.from,
@@ -1255,19 +1619,20 @@ var DateRange = ({ className, style }) => {
1255
1619
  ) })
1256
1620
  ] }) });
1257
1621
  };
1622
+ var DateRange_default = DateRange;
1258
1623
 
1259
1624
  // src/components/ui/data-table.tsx
1260
1625
  var import_react_table = require("@tanstack/react-table");
1261
1626
 
1262
1627
  // src/components/ui/table.tsx
1263
- var import_jsx_runtime30 = require("react/jsx-runtime");
1628
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1264
1629
  function Table({ className, ...props }) {
1265
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1630
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1266
1631
  "div",
1267
1632
  {
1268
1633
  "data-slot": "table-container",
1269
1634
  className: "relative w-full overflow-x-auto rounded-md border border-gray-200 bg-white",
1270
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1635
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1271
1636
  "table",
1272
1637
  {
1273
1638
  "data-slot": "table",
@@ -1279,7 +1644,7 @@ function Table({ className, ...props }) {
1279
1644
  );
1280
1645
  }
1281
1646
  function TableHeader({ className, ...props }) {
1282
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1647
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1283
1648
  "thead",
1284
1649
  {
1285
1650
  "data-slot": "table-header",
@@ -1292,7 +1657,7 @@ function TableHeader({ className, ...props }) {
1292
1657
  );
1293
1658
  }
1294
1659
  function TableBody({ className, ...props }) {
1295
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1660
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1296
1661
  "tbody",
1297
1662
  {
1298
1663
  "data-slot": "table-body",
@@ -1305,7 +1670,7 @@ function TableBody({ className, ...props }) {
1305
1670
  );
1306
1671
  }
1307
1672
  function TableRow({ className, ...props }) {
1308
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1673
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1309
1674
  "tr",
1310
1675
  {
1311
1676
  "data-slot": "table-row",
@@ -1318,7 +1683,7 @@ function TableRow({ className, ...props }) {
1318
1683
  );
1319
1684
  }
1320
1685
  function TableHead({ className, ...props }) {
1321
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1686
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1322
1687
  "th",
1323
1688
  {
1324
1689
  "data-slot": "table-head",
@@ -1331,7 +1696,7 @@ function TableHead({ className, ...props }) {
1331
1696
  );
1332
1697
  }
1333
1698
  function TableCell({ className, ...props }) {
1334
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1699
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1335
1700
  "td",
1336
1701
  {
1337
1702
  "data-slot": "table-cell",
@@ -1345,7 +1710,7 @@ function TableCell({ className, ...props }) {
1345
1710
  }
1346
1711
 
1347
1712
  // src/components/ui/data-table.tsx
1348
- var import_jsx_runtime31 = require("react/jsx-runtime");
1713
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1349
1714
  function DataTable({
1350
1715
  columns,
1351
1716
  rowActions,
@@ -1370,14 +1735,14 @@ function DataTable({
1370
1735
  onCellClick(rowData, columnId);
1371
1736
  }
1372
1737
  };
1373
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Table, { children: [
1374
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TableRow, { children: headerGroup.headers.map((header) => {
1375
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TableHead, { children: header.isPlaceholder ? null : (0, import_react_table.flexRender)(
1738
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(Table, { children: [
1739
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TableRow, { children: headerGroup.headers.map((header) => {
1740
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TableHead, { children: header.isPlaceholder ? null : (0, import_react_table.flexRender)(
1376
1741
  header.column.columnDef.header,
1377
1742
  header.getContext()
1378
1743
  ) }, header.id);
1379
1744
  }) }, headerGroup.id)) }),
1380
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TableBody, { children: loading ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "Loading..." }) }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
1745
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TableBody, { children: loading ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "Loading..." }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_jsx_runtime35.Fragment, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1381
1746
  TableRow,
1382
1747
  {
1383
1748
  "data-state": row.getIsSelected() && "selected",
@@ -1387,7 +1752,7 @@ function DataTable({
1387
1752
  const isCellClickable = cellClickEnabled(row.original, cell.column.id);
1388
1753
  const dynamicClass = cell.column.columnDef.meta?.cellClass || "";
1389
1754
  const dynamicStyle = cell.column.columnDef.meta?.cellStyle || {};
1390
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1755
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1391
1756
  TableCell,
1392
1757
  {
1393
1758
  className: `${dynamicClass} ${isCellClickable ? "underline cursor-pointer" : ""}`,
@@ -1402,36 +1767,36 @@ function DataTable({
1402
1767
  cell.id
1403
1768
  );
1404
1769
  }),
1405
- rowActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("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__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-[#383838] text-[12px] cursor-pointer font-[400]", children: action.header }, index)) })
1770
+ rowActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("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__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-[#383838] text-[12px] cursor-pointer font-[400]", children: action.header }, index)) })
1406
1771
  ]
1407
1772
  },
1408
1773
  row.id
1409
- )) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
1774
+ )) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
1410
1775
  ] }) });
1411
1776
  }
1412
1777
 
1413
1778
  // src/components/DataDisplay/Table/Table.tsx
1414
- var import_jsx_runtime32 = require("react/jsx-runtime");
1779
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1415
1780
  var Table2 = ({ columns, data, rowActions }) => {
1416
1781
  const rawColumns = Array.isArray(columns) ? columns : [];
1417
1782
  const rawData = Array.isArray(data) ? data : [];
1418
1783
  const rawRowActions = Array.isArray(rowActions) ? rowActions : [];
1419
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DataTable, { columns: rawColumns, data: rawData, rowActions: rawRowActions });
1784
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DataTable, { columns: rawColumns, data: rawData, rowActions: rawRowActions });
1420
1785
  };
1421
1786
  var Table_default = Table2;
1422
1787
 
1423
1788
  // src/components/ui/dropdown-menu.tsx
1424
1789
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
1425
- var import_jsx_runtime33 = require("react/jsx-runtime");
1790
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1426
1791
  function DropdownMenu({
1427
1792
  ...props
1428
1793
  }) {
1429
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
1794
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
1430
1795
  }
1431
1796
  function DropdownMenuTrigger({
1432
1797
  ...props
1433
1798
  }) {
1434
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1799
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1435
1800
  DropdownMenuPrimitive.Trigger,
1436
1801
  {
1437
1802
  "data-slot": "dropdown-menu-trigger",
@@ -1444,7 +1809,7 @@ function DropdownMenuContent({
1444
1809
  sideOffset = 4,
1445
1810
  ...props
1446
1811
  }) {
1447
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1812
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1448
1813
  DropdownMenuPrimitive.Content,
1449
1814
  {
1450
1815
  "data-slot": "dropdown-menu-content",
@@ -1463,7 +1828,7 @@ function DropdownMenuItem({
1463
1828
  variant = "default",
1464
1829
  ...props
1465
1830
  }) {
1466
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1831
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1467
1832
  DropdownMenuPrimitive.Item,
1468
1833
  {
1469
1834
  "data-slot": "dropdown-menu-item",
@@ -1479,13 +1844,13 @@ function DropdownMenuItem({
1479
1844
  }
1480
1845
 
1481
1846
  // src/components/Navigation/Tabs/Tabs.tsx
1482
- var import_jsx_runtime34 = require("react/jsx-runtime");
1847
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1483
1848
  var Tabs = ({ tabs, className, style }) => {
1484
1849
  const rawTabs = Array.isArray(tabs) ? tabs : [];
1485
1850
  const baseClasses = "text-[12px] text-[#E9E9E9] p-2 text-center rounded-md transition-colors border-none outline-none focus:outline-none focus:ring-0 focus:ring-offset-0 cursor-pointer select-none ";
1486
1851
  const activeClasses = "bg-white/10 text-white";
1487
1852
  const hoverClasses = "hover:bg-white/5";
1488
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className, style, children: rawTabs.map((tab, index) => {
1853
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className, style, children: rawTabs.map((tab, index) => {
1489
1854
  const finalClasses = [
1490
1855
  baseClasses,
1491
1856
  tab.isActive ? activeClasses : hoverClasses,
@@ -1493,24 +1858,24 @@ var Tabs = ({ tabs, className, style }) => {
1493
1858
  ].join(" ");
1494
1859
  const hasDropdown = Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown;
1495
1860
  if (hasDropdown) {
1496
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(DropdownMenu, { children: [
1497
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1861
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(DropdownMenu, { children: [
1862
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1498
1863
  DropdownMenuTrigger,
1499
1864
  {
1500
1865
  className: `${finalClasses} inline-flex items-center gap-1`,
1501
1866
  children: [
1502
1867
  tab.header,
1503
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronDown, { className: "h-4 w-4 opacity-80" })
1868
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChevronDown, { className: "h-4 w-4 opacity-80" })
1504
1869
  ]
1505
1870
  }
1506
1871
  ),
1507
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1872
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1508
1873
  DropdownMenuContent,
1509
1874
  {
1510
1875
  align: "start",
1511
1876
  sideOffset: 6,
1512
1877
  className: "z-50 min-w-[160px] rounded-md border border-gray-200 bg-white p-1 shadow-lg",
1513
- children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1878
+ children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1514
1879
  DropdownMenuItem,
1515
1880
  {
1516
1881
  asChild: true,
@@ -1523,19 +1888,19 @@ var Tabs = ({ tabs, className, style }) => {
1523
1888
  )
1524
1889
  ] }, index);
1525
1890
  }
1526
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: finalClasses, style: { backgroundColor: "transparent", border: "none", ...tab.style }, role: "button", tabIndex: 0, children: tab.header }, index);
1891
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: finalClasses, style: { backgroundColor: "transparent", border: "none", ...tab.style }, role: "button", tabIndex: 0, children: tab.header }, index);
1527
1892
  }) });
1528
1893
  };
1529
1894
  var Tabs_default = Tabs;
1530
1895
 
1531
1896
  // src/components/Navigation/Stages/Stages.tsx
1532
1897
  var import_react6 = __toESM(require("react"));
1533
- var import_jsx_runtime35 = require("react/jsx-runtime");
1898
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1534
1899
  var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
1535
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center justify-between bg-gray-50 p-2 rounded-lg border border-gray-200 w-full", children: [
1536
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("button", { className: "p-2 hover:bg-gray-100 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { className: "w-4 h-4 text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }) }) }),
1537
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex items-center flex-1 px-2", children: stages.map((stage, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react6.default.Fragment, { children: [
1538
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
1900
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex items-center justify-between bg-gray-50 p-2 rounded-lg border border-gray-200 w-full", children: [
1901
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("button", { className: "p-2 hover:bg-gray-100 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("svg", { className: "w-4 h-4 text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }) }) }),
1902
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex items-center flex-1 px-2", children: stages?.length > 0 && stages?.map((stage, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react6.default.Fragment, { children: [
1903
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1539
1904
  "button",
1540
1905
  {
1541
1906
  className: `
@@ -1543,26 +1908,26 @@ var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
1543
1908
  children: stage.header
1544
1909
  }
1545
1910
  ),
1546
- index < stages.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
1911
+ index < stages.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
1547
1912
  ] }, stage.id)) }),
1548
- isShowBtn && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("button", { className: "bg-[#034486] text-white px-6 py-2 rounded-lg text-sm font-medium transition-colors duration-200 shadow-sm", children: buttonText }) })
1913
+ isShowBtn && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("button", { className: "bg-[#034486] text-white px-6 py-2 rounded-lg text-sm font-medium transition-colors duration-200 shadow-sm", children: buttonText }) })
1549
1914
  ] }) });
1550
1915
  };
1551
1916
  var Stages_default = StagesComponent;
1552
1917
 
1553
1918
  // src/components/Navigation/Spacer/Spacer.tsx
1554
- var import_jsx_runtime36 = require("react/jsx-runtime");
1919
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1555
1920
  var Spacer = ({ className, style }) => {
1556
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: `${className}`, style });
1921
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: `${className}`, style });
1557
1922
  };
1558
1923
  var Spacer_default = Spacer;
1559
1924
 
1560
1925
  // src/components/Navigation/Profile/Profile.tsx
1561
- var import_jsx_runtime37 = require("react/jsx-runtime");
1926
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1562
1927
  var Profile = ({ profileType, showName, userName, className, style }) => {
1563
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex gap-2 items-center justify-between w-30 cursor-pointer", children: [
1564
- showName && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h4", { className: "text-[#000000] dark:text-[#fff] text-[13px] font-[500] mb-0", children: userName }),
1565
- profileType === "avatar" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1928
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex gap-2 items-center justify-between w-30 cursor-pointer", children: [
1929
+ showName && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("h4", { className: "text-[#000000] dark:text-[#fff] text-[13px] font-[500] mb-0", children: userName }),
1930
+ profileType === "avatar" ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
1566
1931
  "img",
1567
1932
  {
1568
1933
  src: "https://builder.development.algorithmshift.ai/images/toolset/profile.svg",
@@ -1570,16 +1935,16 @@ var Profile = ({ profileType, showName, userName, className, style }) => {
1570
1935
  width: 24,
1571
1936
  height: 24
1572
1937
  }
1573
- ) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "w-6 h-6 bg-[#12715b] rounded-full text-[#fff] text-center text-[11px] flex items-center justify-center", children: "A" })
1938
+ ) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "w-6 h-6 bg-[#12715b] rounded-full text-[#fff] text-center text-[11px] flex items-center justify-center", children: "A" })
1574
1939
  ] }) });
1575
1940
  };
1576
1941
  var Profile_default = Profile;
1577
1942
 
1578
1943
  // src/components/Navigation/Notification/Notification.tsx
1579
- var import_jsx_runtime38 = require("react/jsx-runtime");
1580
- var Notification = ({ className, style, badgeType, badgeCount, hideBadgeWhenZero }) => {
1581
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "w-[34px] h-[34px] bg-[#E9E9E9] rounded-md text-center flex items-center justify-center relative", children: [
1582
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1944
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1945
+ var Notification = ({ className, style, badgeType, badgeCount = 0, hideBadgeWhenZero }) => {
1946
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "w-[34px] h-[34px] bg-[#E9E9E9] rounded-md text-center flex items-center justify-center relative", children: [
1947
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
1583
1948
  "img",
1584
1949
  {
1585
1950
  src: "https://builder.development.algorithmshift.ai/images/toolset/notification.svg",
@@ -1588,14 +1953,14 @@ var Notification = ({ className, style, badgeType, badgeCount, hideBadgeWhenZero
1588
1953
  height: 18
1589
1954
  }
1590
1955
  ),
1591
- badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && badgeCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-[10px] text-[#fff] bg-[#FF4A4A] w-[20px] h-[20px] rounded-full absolute top-0 right-0 transform translate-x-1/2 -translate-y-1/2 leading-[20px]", children: badgeCount }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "bg-[#FF4A4A] w-[10px] h-[10px] rounded-full absolute top-0 right-0 transform translate-x-1/2 -translate-y-1/2 leading-[20px]" })
1956
+ badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && badgeCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-[10px] text-[#fff] bg-[#FF4A4A] w-[20px] h-[20px] rounded-full absolute top-0 right-0 transform translate-x-1/2 -translate-y-1/2 leading-[20px]", children: badgeCount }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "bg-[#FF4A4A] w-[10px] h-[10px] rounded-full absolute top-0 right-0 transform translate-x-1/2 -translate-y-1/2 leading-[20px]" })
1592
1957
  ] }) });
1593
1958
  };
1594
1959
  var Notification_default = Notification;
1595
1960
 
1596
1961
  // src/components/Navigation/Logo/Logo.tsx
1597
- var import_jsx_runtime39 = require("react/jsx-runtime");
1598
- var ImageControl = ({
1962
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1963
+ var ImageControl2 = ({
1599
1964
  className,
1600
1965
  style,
1601
1966
  imageUrl
@@ -1615,25 +1980,32 @@ var ImageControl = ({
1615
1980
  className: "opacity-50"
1616
1981
  };
1617
1982
  }
1618
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("img", { src, alt: "Preview", sizes: "100vw", ...extraProps }) });
1983
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("img", { src, alt: "Preview", sizes: "100vw", ...extraProps }) });
1619
1984
  };
1620
- var Logo_default = ImageControl;
1985
+ var Logo_default = ImageControl2;
1621
1986
  // Annotate the CommonJS export names for ESM import in node:
1622
1987
  0 && (module.exports = {
1623
1988
  Button,
1624
1989
  CheckboxInput,
1990
+ DatePicker,
1625
1991
  DateRange,
1626
1992
  Dropdown,
1627
1993
  EmailInput,
1994
+ FileInput,
1628
1995
  FlexLayout,
1629
1996
  GridLayout,
1997
+ Image,
1630
1998
  Logo,
1631
1999
  MultiCheckbox,
1632
2000
  Notification,
2001
+ NumberInput,
1633
2002
  PasswordInput,
1634
2003
  PhoneInput,
1635
2004
  Profile,
1636
2005
  RadioInput,
2006
+ RichText,
2007
+ SearchInput,
2008
+ Shape,
1637
2009
  Spacer,
1638
2010
  Stages,
1639
2011
  SwitchToggle,
@@ -1641,6 +2013,7 @@ var Logo_default = ImageControl;
1641
2013
  Tabs,
1642
2014
  TextInput,
1643
2015
  Textarea,
2016
+ Typography,
1644
2017
  UrlInput,
1645
2018
  buttonVariants,
1646
2019
  cn
@@ -1651,6 +2024,8 @@ lucide-react/dist/esm/shared/src/utils.js:
1651
2024
  lucide-react/dist/esm/defaultAttributes.js:
1652
2025
  lucide-react/dist/esm/Icon.js:
1653
2026
  lucide-react/dist/esm/createLucideIcon.js:
2027
+ lucide-react/dist/esm/icons/calculator.js:
2028
+ lucide-react/dist/esm/icons/calendar.js:
1654
2029
  lucide-react/dist/esm/icons/check.js:
1655
2030
  lucide-react/dist/esm/icons/chevron-down.js:
1656
2031
  lucide-react/dist/esm/icons/chevron-left.js:
@@ -1659,6 +2034,7 @@ lucide-react/dist/esm/icons/chevron-up.js:
1659
2034
  lucide-react/dist/esm/icons/circle.js:
1660
2035
  lucide-react/dist/esm/icons/mail.js:
1661
2036
  lucide-react/dist/esm/icons/scan-eye.js:
2037
+ lucide-react/dist/esm/icons/search.js:
1662
2038
  lucide-react/dist/esm/lucide-react.js:
1663
2039
  (**
1664
2040
  * @license lucide-react v0.542.0 - ISC