@algorithm-shift/design-system 1.2.2 → 1.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -54,32 +54,1561 @@ function Button({
54
54
  );
55
55
  }
56
56
 
57
- // src/components/CustomButton.tsx
57
+ // src/components/Layout/Flex.tsx
58
58
  import { jsx as jsx2 } from "react/jsx-runtime";
59
- function CustomButton({
59
+ var Flex = ({
60
+ children,
61
+ className,
62
+ style
63
+ }) => {
64
+ return /* @__PURE__ */ jsx2("div", { className, style, children });
65
+ };
66
+ var Flex_default = Flex;
67
+
68
+ // src/components/Layout/Grid.tsx
69
+ import { jsx as jsx3 } from "react/jsx-runtime";
70
+ var Grid = ({
71
+ children,
72
+ className,
73
+ style
74
+ }) => {
75
+ return /* @__PURE__ */ jsx3("div", { className, style, children });
76
+ };
77
+ var Grid_default = Grid;
78
+
79
+ // src/components/Basic/Typography/Typography.tsx
80
+ import React from "react";
81
+
82
+ // src/components/Basic/Shape/Shape.tsx
83
+ import { jsx as jsx4 } from "react/jsx-runtime";
84
+
85
+ // src/components/Inputs/TextInput/TextInput.tsx
86
+ import * as React2 from "react";
87
+
88
+ // src/components/ui/input.tsx
89
+ import { jsx as jsx5 } from "react/jsx-runtime";
90
+ function Input({ className, type, ...props }) {
91
+ return /* @__PURE__ */ jsx5(
92
+ "input",
93
+ {
94
+ type,
95
+ "data-slot": "input",
96
+ className: cn(
97
+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
98
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
99
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
100
+ className
101
+ ),
102
+ ...props
103
+ }
104
+ );
105
+ }
106
+
107
+ // src/components/Inputs/TextInput/TextInput.tsx
108
+ import { Fragment, jsx as jsx6, jsxs } from "react/jsx-runtime";
109
+ var TextInput = ({ className, style, ...props }) => {
110
+ const placeholder = props.placeholder || "Placeholder text";
111
+ const regexPattern = props.regexPattern ?? "";
112
+ const errorMessage = props.errorMessage ?? "Required";
113
+ const noOfCharacters = props.noOfCharacters ?? 100;
114
+ const isRequired = props.isRequired ?? false;
115
+ const isEditable = props.isEditable ?? true;
116
+ const isDisabled = props.isDisabled ?? false;
117
+ const isReadonly = props.isReadonly ?? false;
118
+ const isAutocomplete = props.isAutocomplete ?? false;
119
+ const [value, setValue] = React2.useState("");
120
+ const [error, setError] = React2.useState(null);
121
+ const handleChange = (e) => {
122
+ const val = e.target.value;
123
+ if (val.length > noOfCharacters) return;
124
+ setValue(val);
125
+ if (isRequired && val.trim() === "") {
126
+ setError(errorMessage);
127
+ } else if (regexPattern && !new RegExp(regexPattern).test(val)) {
128
+ setError(errorMessage);
129
+ } else {
130
+ setError(null);
131
+ }
132
+ };
133
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
134
+ /* @__PURE__ */ jsx6(
135
+ Input,
136
+ {
137
+ type: "text",
138
+ className,
139
+ style,
140
+ value,
141
+ autoComplete: isAutocomplete ? "on" : "off",
142
+ placeholder,
143
+ onChange: handleChange,
144
+ disabled: isDisabled || !isEditable,
145
+ readOnly: isReadonly,
146
+ required: isRequired,
147
+ maxLength: noOfCharacters,
148
+ pattern: regexPattern || void 0
149
+ }
150
+ ),
151
+ error && /* @__PURE__ */ jsx6("p", { className: "mt-1 text-xs text-red-500", children: error })
152
+ ] });
153
+ };
154
+
155
+ // src/components/Inputs/EmailInput/EmailInput.tsx
156
+ import * as React3 from "react";
157
+
158
+ // node_modules/lucide-react/dist/esm/createLucideIcon.js
159
+ import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
160
+
161
+ // node_modules/lucide-react/dist/esm/shared/src/utils.js
162
+ var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
163
+ var toCamelCase = (string) => string.replace(
164
+ /^([A-Z])|[\s-_]+(\w)/g,
165
+ (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
166
+ );
167
+ var toPascalCase = (string) => {
168
+ const camelCase = toCamelCase(string);
169
+ return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
170
+ };
171
+ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
172
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
173
+ }).join(" ").trim();
174
+ var hasA11yProp = (props) => {
175
+ for (const prop in props) {
176
+ if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
177
+ return true;
178
+ }
179
+ }
180
+ };
181
+
182
+ // node_modules/lucide-react/dist/esm/Icon.js
183
+ import { forwardRef, createElement } from "react";
184
+
185
+ // node_modules/lucide-react/dist/esm/defaultAttributes.js
186
+ var defaultAttributes = {
187
+ xmlns: "http://www.w3.org/2000/svg",
188
+ width: 24,
189
+ height: 24,
190
+ viewBox: "0 0 24 24",
191
+ fill: "none",
192
+ stroke: "currentColor",
193
+ strokeWidth: 2,
194
+ strokeLinecap: "round",
195
+ strokeLinejoin: "round"
196
+ };
197
+
198
+ // node_modules/lucide-react/dist/esm/Icon.js
199
+ var Icon = forwardRef(
200
+ ({
201
+ color = "currentColor",
202
+ size = 24,
203
+ strokeWidth = 2,
204
+ absoluteStrokeWidth,
205
+ className = "",
206
+ children,
207
+ iconNode,
208
+ ...rest
209
+ }, ref) => createElement(
210
+ "svg",
211
+ {
212
+ ref,
213
+ ...defaultAttributes,
214
+ width: size,
215
+ height: size,
216
+ stroke: color,
217
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
218
+ className: mergeClasses("lucide", className),
219
+ ...!children && !hasA11yProp(rest) && { "aria-hidden": "true" },
220
+ ...rest
221
+ },
222
+ [
223
+ ...iconNode.map(([tag, attrs]) => createElement(tag, attrs)),
224
+ ...Array.isArray(children) ? children : [children]
225
+ ]
226
+ )
227
+ );
228
+
229
+ // node_modules/lucide-react/dist/esm/createLucideIcon.js
230
+ var createLucideIcon = (iconName, iconNode) => {
231
+ const Component = forwardRef2(
232
+ ({ className, ...props }, ref) => createElement2(Icon, {
233
+ ref,
234
+ iconNode,
235
+ className: mergeClasses(
236
+ `lucide-${toKebabCase(toPascalCase(iconName))}`,
237
+ `lucide-${iconName}`,
238
+ className
239
+ ),
240
+ ...props
241
+ })
242
+ );
243
+ Component.displayName = toPascalCase(iconName);
244
+ return Component;
245
+ };
246
+
247
+ // node_modules/lucide-react/dist/esm/icons/check.js
248
+ var __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
249
+ var Check = createLucideIcon("check", __iconNode);
250
+
251
+ // node_modules/lucide-react/dist/esm/icons/chevron-down.js
252
+ var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
253
+ var ChevronDown = createLucideIcon("chevron-down", __iconNode2);
254
+
255
+ // node_modules/lucide-react/dist/esm/icons/chevron-left.js
256
+ var __iconNode3 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
257
+ var ChevronLeft = createLucideIcon("chevron-left", __iconNode3);
258
+
259
+ // node_modules/lucide-react/dist/esm/icons/chevron-right.js
260
+ var __iconNode4 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
261
+ var ChevronRight = createLucideIcon("chevron-right", __iconNode4);
262
+
263
+ // node_modules/lucide-react/dist/esm/icons/chevron-up.js
264
+ var __iconNode5 = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
265
+ var ChevronUp = createLucideIcon("chevron-up", __iconNode5);
266
+
267
+ // node_modules/lucide-react/dist/esm/icons/circle.js
268
+ var __iconNode6 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
269
+ var Circle = createLucideIcon("circle", __iconNode6);
270
+
271
+ // node_modules/lucide-react/dist/esm/icons/mail.js
272
+ var __iconNode7 = [
273
+ ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
274
+ ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
275
+ ];
276
+ var Mail = createLucideIcon("mail", __iconNode7);
277
+
278
+ // node_modules/lucide-react/dist/esm/icons/scan-eye.js
279
+ var __iconNode8 = [
280
+ ["path", { d: "M3 7V5a2 2 0 0 1 2-2h2", key: "aa7l1z" }],
281
+ ["path", { d: "M17 3h2a2 2 0 0 1 2 2v2", key: "4qcy5o" }],
282
+ ["path", { d: "M21 17v2a2 2 0 0 1-2 2h-2", key: "6vwrx8" }],
283
+ ["path", { d: "M7 21H5a2 2 0 0 1-2-2v-2", key: "ioqczr" }],
284
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
285
+ [
286
+ "path",
287
+ {
288
+ d: "M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0",
289
+ key: "11ak4c"
290
+ }
291
+ ]
292
+ ];
293
+ var ScanEye = createLucideIcon("scan-eye", __iconNode8);
294
+
295
+ // src/components/Inputs/EmailInput/EmailInput.tsx
296
+ import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
297
+ var EmailInput = ({ className, style, ...props }) => {
298
+ const placeholder = props.placeholder ?? "Placeholder text";
299
+ const regexPattern = props.regexPattern ?? "";
300
+ const errorMessage = props.errorMessage ?? "Required";
301
+ const noOfCharacters = props.noOfCharacters ?? 100;
302
+ const isRequired = props.isRequired ?? false;
303
+ const isEditable = props.isEditable ?? true;
304
+ const isDisabled = props.isDisabled ?? false;
305
+ const isReadonly = props.isReadonly ?? false;
306
+ const isAutocomplete = props.isAutocomplete ?? false;
307
+ const [value, setValue] = React3.useState("");
308
+ const [error, setError] = React3.useState(null);
309
+ const handleChange = (e) => {
310
+ const val = e.target.value;
311
+ if (val.length > noOfCharacters) return;
312
+ setValue(val);
313
+ if (isRequired && val.trim() === "") {
314
+ setError(errorMessage);
315
+ } else if (regexPattern && !new RegExp(regexPattern).test(val)) {
316
+ setError(errorMessage);
317
+ } else {
318
+ setError(null);
319
+ }
320
+ };
321
+ return /* @__PURE__ */ jsxs2(Fragment2, { children: [
322
+ /* @__PURE__ */ jsxs2("div", { className: "flex justify-start items-center relative", children: [
323
+ /* @__PURE__ */ jsx7(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
324
+ /* @__PURE__ */ jsx7(
325
+ Input,
326
+ {
327
+ type: "email",
328
+ value,
329
+ className,
330
+ style,
331
+ autoComplete: isAutocomplete ? "on" : "off",
332
+ placeholder,
333
+ onChange: handleChange,
334
+ disabled: isDisabled || !isEditable,
335
+ readOnly: isReadonly,
336
+ required: isRequired,
337
+ maxLength: noOfCharacters,
338
+ pattern: regexPattern || void 0
339
+ }
340
+ )
341
+ ] }),
342
+ error && /* @__PURE__ */ jsx7("p", { className: "mt-1 text-xs text-red-500", children: error })
343
+ ] });
344
+ };
345
+
346
+ // src/components/Inputs/PasswordInput/PasswordInput.tsx
347
+ import * as React4 from "react";
348
+ import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
349
+ var PasswordInput = ({ className, style, ...props }) => {
350
+ const placeholder = props.placeholder ?? "Placeholder text";
351
+ const regexPattern = props.regexPattern ?? "";
352
+ const errorMessage = props.errorMessage ?? "Required";
353
+ const noOfCharacters = props.noOfCharacters ?? 100;
354
+ const isRequired = props.isRequired ?? false;
355
+ const isEditable = props.isEditable ?? true;
356
+ const isDisabled = props.isDisabled ?? false;
357
+ const isReadonly = props.isReadonly ?? false;
358
+ const isAutocomplete = props.isAutocomplete ?? false;
359
+ const [value, setValue] = React4.useState("");
360
+ const [error, setError] = React4.useState(null);
361
+ const handleChange = (e) => {
362
+ const val = e.target.value;
363
+ if (val.length > noOfCharacters) return;
364
+ setValue(val);
365
+ if (isRequired && val.trim() === "") {
366
+ setError(errorMessage);
367
+ } else if (regexPattern && !new RegExp(regexPattern).test(val)) {
368
+ setError(errorMessage);
369
+ } else {
370
+ setError(null);
371
+ }
372
+ };
373
+ return /* @__PURE__ */ jsxs3(Fragment3, { children: [
374
+ /* @__PURE__ */ jsxs3("div", { className: "flex justify-start items-center relative", children: [
375
+ /* @__PURE__ */ jsx8(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
376
+ /* @__PURE__ */ jsx8(
377
+ Input,
378
+ {
379
+ type: "password",
380
+ id: "password-field",
381
+ className,
382
+ style,
383
+ value,
384
+ autoComplete: isAutocomplete ? "on" : "off",
385
+ placeholder,
386
+ onChange: handleChange,
387
+ disabled: isDisabled || !isEditable,
388
+ readOnly: isReadonly,
389
+ required: isRequired,
390
+ maxLength: noOfCharacters,
391
+ pattern: regexPattern || void 0
392
+ }
393
+ )
394
+ ] }),
395
+ error && /* @__PURE__ */ jsx8("p", { className: "mt-1 text-xs text-red-500", children: error })
396
+ ] });
397
+ };
398
+
399
+ // src/components/Inputs/Textarea/Textarea.tsx
400
+ import * as React5 from "react";
401
+
402
+ // src/components/ui/textarea.tsx
403
+ import { jsx as jsx9 } from "react/jsx-runtime";
404
+ function Textarea({ className, ...props }) {
405
+ return /* @__PURE__ */ jsx9(
406
+ "textarea",
407
+ {
408
+ "data-slot": "textarea",
409
+ className: cn(
410
+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
411
+ className
412
+ ),
413
+ ...props
414
+ }
415
+ );
416
+ }
417
+
418
+ // src/components/Inputs/Textarea/Textarea.tsx
419
+ import { Fragment as Fragment4, jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
420
+ var Textarea2 = ({ className, style, ...props }) => {
421
+ const placeholder = props.placeholder ?? "Placeholder text";
422
+ const regexPattern = props.regexPattern ?? "";
423
+ const errorMessage = props.errorMessage ?? "Required";
424
+ const noOfCharacters = props.noOfCharacters ?? 100;
425
+ const isRequired = props.isRequired ?? false;
426
+ const isEditable = props.isEditable ?? true;
427
+ const isDisabled = props.isDisabled ?? false;
428
+ const isReadonly = props.isReadonly ?? false;
429
+ const isAutocomplete = props.isAutocomplete ?? false;
430
+ const [value, setValue] = React5.useState("");
431
+ const [error, setError] = React5.useState(null);
432
+ const handleChange = (e) => {
433
+ const val = e.target.value;
434
+ if (val.length > noOfCharacters) return;
435
+ setValue(val);
436
+ if (isRequired && val.trim() === "") {
437
+ setError(errorMessage);
438
+ } else if (regexPattern && !new RegExp(regexPattern).test(val)) {
439
+ setError(errorMessage);
440
+ } else {
441
+ setError(null);
442
+ }
443
+ };
444
+ return /* @__PURE__ */ jsxs4(Fragment4, { children: [
445
+ /* @__PURE__ */ jsx10(
446
+ Textarea,
447
+ {
448
+ id: "textarea-field",
449
+ className,
450
+ style,
451
+ value,
452
+ autoComplete: isAutocomplete ? "on" : "off",
453
+ placeholder,
454
+ onChange: handleChange,
455
+ disabled: isDisabled || !isEditable,
456
+ readOnly: isReadonly,
457
+ required: isRequired,
458
+ maxLength: noOfCharacters
459
+ }
460
+ ),
461
+ error && /* @__PURE__ */ jsx10("p", { className: "mt-1 text-xs text-red-500", children: error })
462
+ ] });
463
+ };
464
+
465
+ // src/components/Inputs/UrlInput/UrlInput.tsx
466
+ import * as React6 from "react";
467
+ import { Fragment as Fragment5, jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
468
+ var UrlInput = ({ className, style, ...props }) => {
469
+ const placeholder = props.placeholder ?? "Placeholder text";
470
+ const regexPattern = props.regexPattern ?? "";
471
+ const errorMessage = props.errorMessage ?? "Required";
472
+ const noOfCharacters = props.noOfCharacters ?? 100;
473
+ const isRequired = props.isRequired ?? false;
474
+ const isEditable = props.isEditable ?? true;
475
+ const isDisabled = props.isDisabled ?? false;
476
+ const isReadonly = props.isReadonly ?? false;
477
+ const isAutocomplete = props.isAutocomplete ?? false;
478
+ const [value, setValue] = React6.useState("");
479
+ const [error, setError] = React6.useState(null);
480
+ const handleChange = (e) => {
481
+ const val = e.target.value;
482
+ if (val.length > noOfCharacters) return;
483
+ setValue(val);
484
+ if (isRequired && val.trim() === "") {
485
+ setError(errorMessage);
486
+ } else if (regexPattern && !new RegExp(regexPattern).test(val)) {
487
+ setError(errorMessage);
488
+ } else {
489
+ setError(null);
490
+ }
491
+ };
492
+ return /* @__PURE__ */ jsxs5(Fragment5, { children: [
493
+ /* @__PURE__ */ jsxs5("div", { className: "flex justify-start items-center relative", children: [
494
+ /* @__PURE__ */ jsx11("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://" }),
495
+ /* @__PURE__ */ jsx11(
496
+ Input,
497
+ {
498
+ type: "url",
499
+ className,
500
+ style,
501
+ id: "url-field",
502
+ value,
503
+ autoComplete: isAutocomplete ? "on" : "off",
504
+ placeholder,
505
+ onChange: handleChange,
506
+ disabled: isDisabled || !isEditable,
507
+ readOnly: isReadonly,
508
+ required: isRequired,
509
+ maxLength: noOfCharacters,
510
+ pattern: regexPattern || void 0
511
+ }
512
+ )
513
+ ] }),
514
+ error && /* @__PURE__ */ jsx11("p", { className: "mt-1 text-xs text-red-500", children: error })
515
+ ] });
516
+ };
517
+
518
+ // src/components/ui/checkbox.tsx
519
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
520
+ import { jsx as jsx12 } from "react/jsx-runtime";
521
+ function Checkbox({
60
522
  className,
61
- asChild = false,
62
523
  ...props
63
524
  }) {
64
- return /* @__PURE__ */ jsx2(
65
- "button",
525
+ return /* @__PURE__ */ jsx12(
526
+ CheckboxPrimitive.Root,
66
527
  {
67
- "data-slot": "button",
68
- className: "bg-red-500 text-white shadow-xs hover:bg-red-600 focus-visible:ring-red-200 dark:focus-visible:ring-red-400 dark:bg-red-700",
528
+ "data-slot": "checkbox",
529
+ className: cn(
530
+ "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
531
+ className
532
+ ),
533
+ ...props,
534
+ children: /* @__PURE__ */ jsx12(
535
+ CheckboxPrimitive.Indicator,
536
+ {
537
+ "data-slot": "checkbox-indicator",
538
+ className: "flex items-center justify-center text-current transition-none",
539
+ children: /* @__PURE__ */ jsx12(Check, { className: "size-3.5" })
540
+ }
541
+ )
542
+ }
543
+ );
544
+ }
545
+
546
+ // src/components/ui/label.tsx
547
+ import * as LabelPrimitive from "@radix-ui/react-label";
548
+ import { jsx as jsx13 } from "react/jsx-runtime";
549
+ function Label({
550
+ className,
551
+ ...props
552
+ }) {
553
+ return /* @__PURE__ */ jsx13(
554
+ LabelPrimitive.Root,
555
+ {
556
+ "data-slot": "label",
557
+ className: cn(
558
+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
559
+ className
560
+ ),
69
561
  ...props
70
562
  }
71
563
  );
72
564
  }
73
565
 
74
- // src/components/Layout/Flex.tsx
75
- import { jsx as jsx3 } from "react/jsx-runtime";
566
+ // src/components/Inputs/Checkbox/Checkbox.tsx
567
+ import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
568
+ var CheckboxInput = ({ className, style, ...props }) => {
569
+ const text = props.text ? props.text : "Subscribe";
570
+ return /* @__PURE__ */ jsx14("div", { className, style, children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center space-x-2", children: [
571
+ /* @__PURE__ */ jsx14(Checkbox, { id: "newsletter" }),
572
+ /* @__PURE__ */ jsx14(Label, { htmlFor: "newsletter", children: text })
573
+ ] }) });
574
+ };
76
575
 
77
- // src/components/Layout/Grid.tsx
78
- import { jsx as jsx4 } from "react/jsx-runtime";
576
+ // src/components/ui/radio-group.tsx
577
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
578
+ import { jsx as jsx15 } from "react/jsx-runtime";
579
+ function RadioGroup({
580
+ className,
581
+ ...props
582
+ }) {
583
+ return /* @__PURE__ */ jsx15(
584
+ RadioGroupPrimitive.Root,
585
+ {
586
+ "data-slot": "radio-group",
587
+ className: cn("grid gap-3", className),
588
+ ...props
589
+ }
590
+ );
591
+ }
592
+ function RadioGroupItem({
593
+ className,
594
+ ...props
595
+ }) {
596
+ return /* @__PURE__ */ jsx15(
597
+ RadioGroupPrimitive.Item,
598
+ {
599
+ "data-slot": "radio-group-item",
600
+ className: cn(
601
+ "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
602
+ className
603
+ ),
604
+ ...props,
605
+ children: /* @__PURE__ */ jsx15(
606
+ RadioGroupPrimitive.Indicator,
607
+ {
608
+ "data-slot": "radio-group-indicator",
609
+ className: "relative flex items-center justify-center",
610
+ children: /* @__PURE__ */ jsx15(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
611
+ }
612
+ )
613
+ }
614
+ );
615
+ }
616
+
617
+ // src/components/Inputs/RadioInput/RadioInput.tsx
618
+ import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
619
+ var RadioInput = ({ className, style, ...props }) => {
620
+ const text = Array.isArray(props.text) ? props.text : [props.text ?? "Subscribe"];
621
+ return /* @__PURE__ */ jsx16("div", { className, style, children: /* @__PURE__ */ jsx16(RadioGroup, { defaultValue: "option-1", children: text?.map((item, index) => /* @__PURE__ */ jsxs7("div", { className: "flex items-center space-x-2", children: [
622
+ /* @__PURE__ */ jsx16(RadioGroupItem, { value: item, id: `r${index}` }),
623
+ /* @__PURE__ */ jsx16(Label, { htmlFor: `r${index}`, children: item })
624
+ ] }, index)) }) });
625
+ };
626
+
627
+ // src/components/Inputs/MultiCheckbox/MultiCheckbox.tsx
628
+ import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
629
+ var MultiCheckbox = ({ className, style, ...props }) => {
630
+ const text = Array.isArray(props.text) ? props.text : [props.text ?? "Subscribe"];
631
+ return /* @__PURE__ */ jsx17("div", { className, style, children: /* @__PURE__ */ jsx17("div", { className: "flex gap-3 flex-col", children: text?.map((item, index) => /* @__PURE__ */ jsxs8("div", { className: "flex items-center space-x-2", children: [
632
+ /* @__PURE__ */ jsx17(Checkbox, { id: `newsletter-${index}` }),
633
+ /* @__PURE__ */ jsx17(Label, { htmlFor: `newsletter-${index}`, children: item })
634
+ ] }, index)) }) });
635
+ };
636
+
637
+ // src/components/Global/TinyMceEditor.tsx
638
+ import { useMemo, useRef } from "react";
639
+ import { Editor } from "@tinymce/tinymce-react";
640
+ import { jsx as jsx18 } from "react/jsx-runtime";
641
+
642
+ // src/components/Inputs/RichText/RichText.tsx
643
+ import { jsx as jsx19 } from "react/jsx-runtime";
644
+
645
+ // src/components/Inputs/Dropdown/Dropdown.tsx
646
+ import * as React7 from "react";
647
+
648
+ // src/components/ui/select.tsx
649
+ import * as SelectPrimitive from "@radix-ui/react-select";
650
+ import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
651
+ function Select({
652
+ ...props
653
+ }) {
654
+ return /* @__PURE__ */ jsx20(SelectPrimitive.Root, { "data-slot": "select", ...props });
655
+ }
656
+ function SelectValue({
657
+ ...props
658
+ }) {
659
+ return /* @__PURE__ */ jsx20(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
660
+ }
661
+ function SelectTrigger({
662
+ className,
663
+ size = "default",
664
+ children,
665
+ ...props
666
+ }) {
667
+ return /* @__PURE__ */ jsxs9(
668
+ SelectPrimitive.Trigger,
669
+ {
670
+ "data-slot": "select-trigger",
671
+ "data-size": size,
672
+ className: cn(
673
+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
674
+ className
675
+ ),
676
+ ...props,
677
+ children: [
678
+ children,
679
+ /* @__PURE__ */ jsx20(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx20(ChevronDown, { className: "size-4 opacity-50" }) })
680
+ ]
681
+ }
682
+ );
683
+ }
684
+ function SelectContent({
685
+ className,
686
+ children,
687
+ position = "popper",
688
+ ...props
689
+ }) {
690
+ return /* @__PURE__ */ jsx20(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs9(
691
+ SelectPrimitive.Content,
692
+ {
693
+ "data-slot": "select-content",
694
+ className: cn(
695
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
696
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
697
+ className
698
+ ),
699
+ position,
700
+ ...props,
701
+ children: [
702
+ /* @__PURE__ */ jsx20(SelectScrollUpButton, {}),
703
+ /* @__PURE__ */ jsx20(
704
+ SelectPrimitive.Viewport,
705
+ {
706
+ className: cn(
707
+ "p-1",
708
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
709
+ ),
710
+ children
711
+ }
712
+ ),
713
+ /* @__PURE__ */ jsx20(SelectScrollDownButton, {})
714
+ ]
715
+ }
716
+ ) });
717
+ }
718
+ function SelectItem({
719
+ className,
720
+ children,
721
+ ...props
722
+ }) {
723
+ return /* @__PURE__ */ jsxs9(
724
+ SelectPrimitive.Item,
725
+ {
726
+ "data-slot": "select-item",
727
+ className: cn(
728
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
729
+ className
730
+ ),
731
+ ...props,
732
+ children: [
733
+ /* @__PURE__ */ jsx20("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx20(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx20(Check, { className: "size-4" }) }) }),
734
+ /* @__PURE__ */ jsx20(SelectPrimitive.ItemText, { children })
735
+ ]
736
+ }
737
+ );
738
+ }
739
+ function SelectScrollUpButton({
740
+ className,
741
+ ...props
742
+ }) {
743
+ return /* @__PURE__ */ jsx20(
744
+ SelectPrimitive.ScrollUpButton,
745
+ {
746
+ "data-slot": "select-scroll-up-button",
747
+ className: cn(
748
+ "flex cursor-default items-center justify-center py-1",
749
+ className
750
+ ),
751
+ ...props,
752
+ children: /* @__PURE__ */ jsx20(ChevronUp, { className: "size-4" })
753
+ }
754
+ );
755
+ }
756
+ function SelectScrollDownButton({
757
+ className,
758
+ ...props
759
+ }) {
760
+ return /* @__PURE__ */ jsx20(
761
+ SelectPrimitive.ScrollDownButton,
762
+ {
763
+ "data-slot": "select-scroll-down-button",
764
+ className: cn(
765
+ "flex cursor-default items-center justify-center py-1",
766
+ className
767
+ ),
768
+ ...props,
769
+ children: /* @__PURE__ */ jsx20(ChevronDown, { className: "size-4" })
770
+ }
771
+ );
772
+ }
773
+
774
+ // src/components/Global/SelectDropdown.tsx
775
+ import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
776
+ function SelectDropdown({
777
+ options,
778
+ placeholder = "Select an option",
779
+ value,
780
+ onChange,
781
+ className,
782
+ id,
783
+ disabled,
784
+ readOnly,
785
+ style
786
+ }) {
787
+ return /* @__PURE__ */ jsxs10(Select, { value, onValueChange: onChange, disabled, children: [
788
+ /* @__PURE__ */ jsx21(
789
+ SelectTrigger,
790
+ {
791
+ id,
792
+ className,
793
+ style: style ?? {},
794
+ "aria-readonly": readOnly,
795
+ children: /* @__PURE__ */ jsx21(SelectValue, { placeholder })
796
+ }
797
+ ),
798
+ /* @__PURE__ */ jsx21(SelectContent, { children: options.map((opt) => /* @__PURE__ */ jsx21(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
799
+ ] });
800
+ }
801
+
802
+ // src/components/Inputs/Dropdown/Dropdown.tsx
803
+ import { Fragment as Fragment6, jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
804
+ var Dropdown = ({ className, style, ...props }) => {
805
+ const text = Array.isArray(props.text) ? props.text : [props.text ?? "Default"];
806
+ const placeholder = props.placeholder ? props.placeholder : "Placeholder text";
807
+ const formatList = text.map((item) => ({
808
+ label: item || "value1",
809
+ value: item
810
+ }));
811
+ const regexPattern = props.regexPattern ?? "";
812
+ const errorMessage = props.errorMessage ?? "Required";
813
+ const isRequired = props.isRequired ?? false;
814
+ const isEditable = props.isEditable ?? true;
815
+ const isDisabled = props.isDisabled ?? false;
816
+ const isReadonly = props.isReadonly ?? false;
817
+ const isAutocomplete = props.isAutocomplete ?? false;
818
+ const [value, setValue] = React7.useState("");
819
+ const [error, setError] = React7.useState(null);
820
+ const handleChange = (val) => {
821
+ setValue(val);
822
+ if (isRequired && val.trim() === "") {
823
+ setError(errorMessage);
824
+ } else if (regexPattern && !new RegExp(regexPattern).test(val)) {
825
+ setError(errorMessage);
826
+ } else {
827
+ setError(null);
828
+ }
829
+ };
830
+ return /* @__PURE__ */ jsxs11(Fragment6, { children: [
831
+ /* @__PURE__ */ jsx22("div", { className: "flex gap-3 flex-col", children: /* @__PURE__ */ jsx22(
832
+ SelectDropdown,
833
+ {
834
+ options: formatList,
835
+ placeholder,
836
+ id: "select-field",
837
+ value,
838
+ className,
839
+ style,
840
+ autoComplete: isAutocomplete ? "on" : "off",
841
+ onChange: handleChange,
842
+ disabled: isDisabled || !isEditable,
843
+ readOnly: isReadonly,
844
+ required: isRequired,
845
+ pattern: regexPattern || void 0
846
+ }
847
+ ) }),
848
+ error && /* @__PURE__ */ jsx22("p", { className: "mt-1 text-xs text-red-500", children: error })
849
+ ] });
850
+ };
851
+
852
+ // src/components/ui/switch.tsx
853
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
854
+ import { jsx as jsx23 } from "react/jsx-runtime";
855
+ function Switch({
856
+ className,
857
+ ...props
858
+ }) {
859
+ return /* @__PURE__ */ jsx23(
860
+ SwitchPrimitive.Root,
861
+ {
862
+ "data-slot": "switch",
863
+ className: cn(
864
+ "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
865
+ className
866
+ ),
867
+ ...props,
868
+ children: /* @__PURE__ */ jsx23(
869
+ SwitchPrimitive.Thumb,
870
+ {
871
+ "data-slot": "switch-thumb",
872
+ className: cn(
873
+ "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
874
+ )
875
+ }
876
+ )
877
+ }
878
+ );
879
+ }
880
+
881
+ // src/components/Inputs/SwitchToggle/SwitchToggle.tsx
882
+ import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
883
+ var SwitchToggle = ({ className, style, ...props }) => {
884
+ const text = Array.isArray(props.text) ? props.text : [props.text ?? "Subscribe"];
885
+ return /* @__PURE__ */ jsx24("div", { className, style, children: text?.map((item, index) => /* @__PURE__ */ jsxs12("div", { className: "flex items-center space-x-2 mb-2", children: [
886
+ /* @__PURE__ */ jsx24(Switch, { id: `switch-${index}` }),
887
+ /* @__PURE__ */ jsx24(Label, { htmlFor: `switch-${index}`, children: item })
888
+ ] }, index)) });
889
+ };
890
+
891
+ // src/components/Inputs/PhoneInput/PhoneInput.tsx
892
+ import * as React8 from "react";
893
+ import { PhoneInput as PhoneInputField } from "react-international-phone";
894
+ import "react-international-phone/style.css";
895
+ import { Fragment as Fragment7, jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
896
+ var PhoneInput = ({ className, style, ...props }) => {
897
+ const placeholder = props.placeholder ?? "Enter phone number";
898
+ const [value, setValue] = React8.useState("");
899
+ const regexPattern = props.regexPattern ?? "";
900
+ const errorMessage = props.errorMessage ?? "Required";
901
+ const noOfCharacters = props.noOfCharacters ?? 100;
902
+ const isRequired = props.isRequired ?? false;
903
+ const isEditable = props.isEditable ?? true;
904
+ const isDisabled = props.isDisabled ?? false;
905
+ const [error, setError] = React8.useState(null);
906
+ const handleChange = (val) => {
907
+ if (val.length > noOfCharacters) return;
908
+ setValue(val);
909
+ if (isRequired && val.trim() === "") {
910
+ setError(errorMessage);
911
+ } else if (regexPattern && !new RegExp(regexPattern).test(val)) {
912
+ setError(errorMessage);
913
+ } else {
914
+ setError(null);
915
+ }
916
+ };
917
+ return /* @__PURE__ */ jsxs13(Fragment7, { children: [
918
+ /* @__PURE__ */ jsx25(
919
+ PhoneInputField,
920
+ {
921
+ defaultCountry: "in",
922
+ value,
923
+ onChange: (phone) => handleChange(phone),
924
+ inputProps: {
925
+ id: "phone-field",
926
+ required: isRequired
927
+ },
928
+ placeholder,
929
+ disabled: isDisabled || !isEditable,
930
+ required: isRequired,
931
+ className,
932
+ style
933
+ }
934
+ ),
935
+ error && /* @__PURE__ */ jsx25("p", { className: "mt-1 text-xs text-red-500", children: error })
936
+ ] });
937
+ };
938
+
939
+ // src/components/Inputs/DatePicker/DatePicker.tsx
940
+ import React9 from "react";
941
+ import { Fragment as Fragment8, jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
942
+
943
+ // src/components/Inputs/DateRange/DateRange.tsx
944
+ import * as React11 from "react";
945
+ import { addDays, format } from "date-fns";
946
+
947
+ // src/components/ui/calendar.tsx
948
+ import * as React10 from "react";
949
+ import { DayPicker, getDefaultClassNames } from "react-day-picker";
950
+ import { jsx as jsx27 } from "react/jsx-runtime";
951
+ function Calendar({
952
+ className,
953
+ classNames,
954
+ showOutsideDays = true,
955
+ captionLayout = "label",
956
+ buttonVariant = "ghost",
957
+ formatters,
958
+ components,
959
+ ...props
960
+ }) {
961
+ const defaultClassNames = getDefaultClassNames();
962
+ return /* @__PURE__ */ jsx27(
963
+ DayPicker,
964
+ {
965
+ showOutsideDays,
966
+ className: cn(
967
+ "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
968
+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
969
+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
970
+ className
971
+ ),
972
+ captionLayout,
973
+ formatters: {
974
+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
975
+ ...formatters
976
+ },
977
+ classNames: {
978
+ root: cn("w-fit", defaultClassNames.root),
979
+ months: cn(
980
+ "flex gap-4 flex-col md:flex-row relative",
981
+ defaultClassNames.months
982
+ ),
983
+ month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
984
+ nav: cn(
985
+ "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
986
+ defaultClassNames.nav
987
+ ),
988
+ button_previous: cn(
989
+ buttonVariants({ variant: buttonVariant }),
990
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
991
+ defaultClassNames.button_previous
992
+ ),
993
+ button_next: cn(
994
+ buttonVariants({ variant: buttonVariant }),
995
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
996
+ defaultClassNames.button_next
997
+ ),
998
+ month_caption: cn(
999
+ "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
1000
+ defaultClassNames.month_caption
1001
+ ),
1002
+ dropdowns: cn(
1003
+ "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
1004
+ defaultClassNames.dropdowns
1005
+ ),
1006
+ dropdown_root: cn(
1007
+ "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
1008
+ defaultClassNames.dropdown_root
1009
+ ),
1010
+ dropdown: cn(
1011
+ "absolute bg-popover inset-0 opacity-0",
1012
+ defaultClassNames.dropdown
1013
+ ),
1014
+ caption_label: cn(
1015
+ "select-none font-medium",
1016
+ captionLayout === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
1017
+ defaultClassNames.caption_label
1018
+ ),
1019
+ table: "w-full border-collapse",
1020
+ weekdays: cn("flex", defaultClassNames.weekdays),
1021
+ weekday: cn(
1022
+ "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
1023
+ defaultClassNames.weekday
1024
+ ),
1025
+ week: cn("flex w-full mt-2", defaultClassNames.week),
1026
+ week_number_header: cn(
1027
+ "select-none w-(--cell-size)",
1028
+ defaultClassNames.week_number_header
1029
+ ),
1030
+ week_number: cn(
1031
+ "text-[0.8rem] select-none text-muted-foreground",
1032
+ defaultClassNames.week_number
1033
+ ),
1034
+ day: cn(
1035
+ "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
1036
+ defaultClassNames.day
1037
+ ),
1038
+ range_start: cn(
1039
+ "rounded-l-md bg-accent",
1040
+ defaultClassNames.range_start
1041
+ ),
1042
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
1043
+ range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
1044
+ today: cn(
1045
+ "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
1046
+ defaultClassNames.today
1047
+ ),
1048
+ outside: cn(
1049
+ "text-muted-foreground aria-selected:text-muted-foreground",
1050
+ defaultClassNames.outside
1051
+ ),
1052
+ disabled: cn(
1053
+ "text-muted-foreground opacity-50",
1054
+ defaultClassNames.disabled
1055
+ ),
1056
+ hidden: cn("invisible", defaultClassNames.hidden),
1057
+ ...classNames
1058
+ },
1059
+ components: {
1060
+ Root: ({ className: className2, rootRef, ...props2 }) => {
1061
+ return /* @__PURE__ */ jsx27(
1062
+ "div",
1063
+ {
1064
+ "data-slot": "calendar",
1065
+ ref: rootRef,
1066
+ className: cn(className2),
1067
+ ...props2
1068
+ }
1069
+ );
1070
+ },
1071
+ Chevron: ({ className: className2, orientation, ...props2 }) => {
1072
+ if (orientation === "left") {
1073
+ return /* @__PURE__ */ jsx27(ChevronLeft, { className: cn("size-4", className2), ...props2 });
1074
+ }
1075
+ if (orientation === "right") {
1076
+ return /* @__PURE__ */ jsx27(
1077
+ ChevronRight,
1078
+ {
1079
+ className: cn("size-4", className2),
1080
+ ...props2
1081
+ }
1082
+ );
1083
+ }
1084
+ return /* @__PURE__ */ jsx27(ChevronDown, { className: cn("size-4", className2), ...props2 });
1085
+ },
1086
+ DayButton: CalendarDayButton,
1087
+ WeekNumber: ({ children, ...props2 }) => {
1088
+ return /* @__PURE__ */ jsx27("td", { ...props2, children: /* @__PURE__ */ jsx27("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
1089
+ },
1090
+ ...components
1091
+ },
1092
+ ...props
1093
+ }
1094
+ );
1095
+ }
1096
+ function CalendarDayButton({
1097
+ className,
1098
+ day,
1099
+ modifiers,
1100
+ ...props
1101
+ }) {
1102
+ const defaultClassNames = getDefaultClassNames();
1103
+ const ref = React10.useRef(null);
1104
+ React10.useEffect(() => {
1105
+ if (modifiers.focused) ref.current?.focus();
1106
+ }, [modifiers.focused]);
1107
+ return /* @__PURE__ */ jsx27(
1108
+ Button,
1109
+ {
1110
+ ref,
1111
+ variant: "ghost",
1112
+ size: "icon",
1113
+ "data-day": day.date.toLocaleDateString(),
1114
+ "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
1115
+ "data-range-start": modifiers.range_start,
1116
+ "data-range-end": modifiers.range_end,
1117
+ "data-range-middle": modifiers.range_middle,
1118
+ className: cn(
1119
+ "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
1120
+ defaultClassNames.day,
1121
+ className
1122
+ ),
1123
+ ...props
1124
+ }
1125
+ );
1126
+ }
1127
+
1128
+ // src/components/ui/popover.tsx
1129
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
1130
+ import { jsx as jsx28 } from "react/jsx-runtime";
1131
+ function Popover({
1132
+ ...props
1133
+ }) {
1134
+ return /* @__PURE__ */ jsx28(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
1135
+ }
1136
+ function PopoverTrigger({
1137
+ ...props
1138
+ }) {
1139
+ return /* @__PURE__ */ jsx28(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
1140
+ }
1141
+ function PopoverContent({
1142
+ className,
1143
+ align = "center",
1144
+ sideOffset = 4,
1145
+ ...props
1146
+ }) {
1147
+ return /* @__PURE__ */ jsx28(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx28(
1148
+ PopoverPrimitive.Content,
1149
+ {
1150
+ "data-slot": "popover-content",
1151
+ align,
1152
+ sideOffset,
1153
+ className: cn(
1154
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
1155
+ className
1156
+ ),
1157
+ ...props
1158
+ }
1159
+ ) });
1160
+ }
1161
+
1162
+ // src/components/Inputs/DateRange/DateRange.tsx
1163
+ import { Fragment as Fragment9, jsx as jsx29, jsxs as jsxs15 } from "react/jsx-runtime";
1164
+ var DateRange = ({ className, style }) => {
1165
+ const [date, setDate] = React11.useState({
1166
+ from: /* @__PURE__ */ new Date(),
1167
+ to: addDays(/* @__PURE__ */ new Date(), 7)
1168
+ });
1169
+ return /* @__PURE__ */ jsx29("div", { className, style, children: /* @__PURE__ */ jsxs15(Popover, { children: [
1170
+ /* @__PURE__ */ jsx29(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx29(
1171
+ Button,
1172
+ {
1173
+ id: "date",
1174
+ variant: "outline",
1175
+ className: cn(
1176
+ "w-[300px] justify-start text-left font-normal text-[11px]",
1177
+ !date && "text-muted-foreground"
1178
+ ),
1179
+ children: date?.from ? date.to ? /* @__PURE__ */ jsxs15(Fragment9, { children: [
1180
+ format(date.from, "LLL dd, y"),
1181
+ " -",
1182
+ " ",
1183
+ format(date.to, "LLL dd, y")
1184
+ ] }) : format(date.from, "LLL dd, y") : /* @__PURE__ */ jsx29("span", { children: "Pick a date range" })
1185
+ }
1186
+ ) }),
1187
+ /* @__PURE__ */ jsx29(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsx29(
1188
+ Calendar,
1189
+ {
1190
+ mode: "range",
1191
+ defaultMonth: date?.from,
1192
+ selected: date,
1193
+ onSelect: setDate,
1194
+ numberOfMonths: 2
1195
+ }
1196
+ ) })
1197
+ ] }) });
1198
+ };
1199
+
1200
+ // src/components/ui/data-table.tsx
1201
+ import {
1202
+ flexRender,
1203
+ getCoreRowModel,
1204
+ useReactTable
1205
+ } from "@tanstack/react-table";
1206
+
1207
+ // src/components/ui/table.tsx
1208
+ import { jsx as jsx30 } from "react/jsx-runtime";
1209
+ function Table({ className, ...props }) {
1210
+ return /* @__PURE__ */ jsx30(
1211
+ "div",
1212
+ {
1213
+ "data-slot": "table-container",
1214
+ className: "relative w-full overflow-x-auto rounded-md border border-gray-200 bg-white",
1215
+ children: /* @__PURE__ */ jsx30(
1216
+ "table",
1217
+ {
1218
+ "data-slot": "table",
1219
+ className: cn("w-full text-sm", className),
1220
+ ...props
1221
+ }
1222
+ )
1223
+ }
1224
+ );
1225
+ }
1226
+ function TableHeader({ className, ...props }) {
1227
+ return /* @__PURE__ */ jsx30(
1228
+ "thead",
1229
+ {
1230
+ "data-slot": "table-header",
1231
+ className: cn(
1232
+ "bg-gray-100 text-gray-700 [&>tr]:border-b [&>tr]:border-gray-200 [&>tr>th]:border-r [&>tr>th]:border-gray-200 [&>tr>th]:last:border-r-0",
1233
+ className
1234
+ ),
1235
+ ...props
1236
+ }
1237
+ );
1238
+ }
1239
+ function TableBody({ className, ...props }) {
1240
+ return /* @__PURE__ */ jsx30(
1241
+ "tbody",
1242
+ {
1243
+ "data-slot": "table-body",
1244
+ className: cn(
1245
+ "[&>tr]:border-b [&>tr]:border-gray-200 [&>tr:last-child]:border-0 [&>tr>td]:border-r [&>tr>td]:border-gray-200 [&>tr>td]:last:border-r-0",
1246
+ className
1247
+ ),
1248
+ ...props
1249
+ }
1250
+ );
1251
+ }
1252
+ function TableRow({ className, ...props }) {
1253
+ return /* @__PURE__ */ jsx30(
1254
+ "tr",
1255
+ {
1256
+ "data-slot": "table-row",
1257
+ className: cn(
1258
+ "border-b border-gray-200 hover:bg-gray-50 transition-colors",
1259
+ className
1260
+ ),
1261
+ ...props
1262
+ }
1263
+ );
1264
+ }
1265
+ function TableHead({ className, ...props }) {
1266
+ return /* @__PURE__ */ jsx30(
1267
+ "th",
1268
+ {
1269
+ "data-slot": "table-head",
1270
+ className: cn(
1271
+ "h-12 px-6 text-left align-middle font-semibold whitespace-nowrap",
1272
+ className
1273
+ ),
1274
+ ...props
1275
+ }
1276
+ );
1277
+ }
1278
+ function TableCell({ className, ...props }) {
1279
+ return /* @__PURE__ */ jsx30(
1280
+ "td",
1281
+ {
1282
+ "data-slot": "table-cell",
1283
+ className: cn(
1284
+ "px-6 py-4 align-middle text-gray-700",
1285
+ className
1286
+ ),
1287
+ ...props
1288
+ }
1289
+ );
1290
+ }
1291
+
1292
+ // src/components/ui/data-table.tsx
1293
+ import { Fragment as Fragment10, jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
1294
+ function DataTable({
1295
+ columns,
1296
+ rowActions,
1297
+ data,
1298
+ loading,
1299
+ getRowSelection,
1300
+ onCellClick,
1301
+ cellClickEnabled = () => false
1302
+ }) {
1303
+ const table = useReactTable({
1304
+ data,
1305
+ columns,
1306
+ enableRowSelection: true,
1307
+ onRowSelectionChange: getRowSelection ? (updaterOrValue) => {
1308
+ const value = typeof updaterOrValue === "function" ? updaterOrValue(table.getState().rowSelection) : updaterOrValue;
1309
+ getRowSelection(value);
1310
+ } : void 0,
1311
+ getCoreRowModel: getCoreRowModel()
1312
+ });
1313
+ const handleCellClick = (rowData, columnId) => {
1314
+ if (onCellClick) {
1315
+ onCellClick(rowData, columnId);
1316
+ }
1317
+ };
1318
+ return /* @__PURE__ */ jsx31("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ jsxs16(Table, { children: [
1319
+ /* @__PURE__ */ jsx31(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx31(TableRow, { children: headerGroup.headers.map((header) => {
1320
+ return /* @__PURE__ */ jsx31(TableHead, { children: header.isPlaceholder ? null : flexRender(
1321
+ header.column.columnDef.header,
1322
+ header.getContext()
1323
+ ) }, header.id);
1324
+ }) }, headerGroup.id)) }),
1325
+ /* @__PURE__ */ jsx31(TableBody, { children: loading ? /* @__PURE__ */ jsx31(TableRow, { children: /* @__PURE__ */ jsx31(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "Loading..." }) }) : /* @__PURE__ */ jsx31(Fragment10, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsxs16(
1326
+ TableRow,
1327
+ {
1328
+ "data-state": row.getIsSelected() && "selected",
1329
+ className: "relative group",
1330
+ children: [
1331
+ row.getVisibleCells().map((cell) => {
1332
+ const isCellClickable = cellClickEnabled(row.original, cell.column.id);
1333
+ const dynamicClass = cell.column.columnDef.meta?.cellClass || "";
1334
+ const dynamicStyle = cell.column.columnDef.meta?.cellStyle || {};
1335
+ return /* @__PURE__ */ jsx31(
1336
+ TableCell,
1337
+ {
1338
+ className: `${dynamicClass} ${isCellClickable ? "underline cursor-pointer" : ""}`,
1339
+ style: dynamicStyle,
1340
+ onClick: () => {
1341
+ if (isCellClickable) {
1342
+ handleCellClick(row.original, cell.column.id);
1343
+ }
1344
+ },
1345
+ children: flexRender(cell.column.columnDef.cell, cell.getContext())
1346
+ },
1347
+ cell.id
1348
+ );
1349
+ }),
1350
+ rowActions.length > 0 && /* @__PURE__ */ jsx31("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__ */ jsx31("p", { className: "text-[#383838] text-[12px] cursor-pointer font-[400]", children: action.header }, index)) })
1351
+ ]
1352
+ },
1353
+ row.id
1354
+ )) : /* @__PURE__ */ jsx31(TableRow, { children: /* @__PURE__ */ jsx31(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
1355
+ ] }) });
1356
+ }
1357
+
1358
+ // src/components/DataDisplay/Table/Table.tsx
1359
+ import { jsx as jsx32 } from "react/jsx-runtime";
1360
+ var Table2 = ({ columns, data, rowActions }) => {
1361
+ const rawColumns = Array.isArray(columns) ? columns : [];
1362
+ const rawData = Array.isArray(data) ? data : [];
1363
+ const rawRowActions = Array.isArray(rowActions) ? rowActions : [];
1364
+ return /* @__PURE__ */ jsx32(DataTable, { columns: rawColumns, data: rawData, rowActions: rawRowActions });
1365
+ };
1366
+ var Table_default = Table2;
1367
+
1368
+ // src/components/ui/dropdown-menu.tsx
1369
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1370
+ import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
1371
+ function DropdownMenu({
1372
+ ...props
1373
+ }) {
1374
+ return /* @__PURE__ */ jsx33(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
1375
+ }
1376
+ function DropdownMenuTrigger({
1377
+ ...props
1378
+ }) {
1379
+ return /* @__PURE__ */ jsx33(
1380
+ DropdownMenuPrimitive.Trigger,
1381
+ {
1382
+ "data-slot": "dropdown-menu-trigger",
1383
+ ...props
1384
+ }
1385
+ );
1386
+ }
1387
+ function DropdownMenuContent({
1388
+ className,
1389
+ sideOffset = 4,
1390
+ ...props
1391
+ }) {
1392
+ return /* @__PURE__ */ jsx33(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx33(
1393
+ DropdownMenuPrimitive.Content,
1394
+ {
1395
+ "data-slot": "dropdown-menu-content",
1396
+ sideOffset,
1397
+ className: cn(
1398
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1399
+ className
1400
+ ),
1401
+ ...props
1402
+ }
1403
+ ) });
1404
+ }
1405
+ function DropdownMenuItem({
1406
+ className,
1407
+ inset,
1408
+ variant = "default",
1409
+ ...props
1410
+ }) {
1411
+ return /* @__PURE__ */ jsx33(
1412
+ DropdownMenuPrimitive.Item,
1413
+ {
1414
+ "data-slot": "dropdown-menu-item",
1415
+ "data-inset": inset,
1416
+ "data-variant": variant,
1417
+ className: cn(
1418
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1419
+ className
1420
+ ),
1421
+ ...props
1422
+ }
1423
+ );
1424
+ }
1425
+
1426
+ // src/components/Navigation/Tabs/Tabs.tsx
1427
+ import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
1428
+ var Tabs = ({ tabs, className, style }) => {
1429
+ const rawTabs = Array.isArray(tabs) ? tabs : [];
1430
+ 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 ";
1431
+ const activeClasses = "bg-white/10 text-white";
1432
+ const hoverClasses = "hover:bg-white/5";
1433
+ return /* @__PURE__ */ jsx34("div", { className, style, children: rawTabs.map((tab, index) => {
1434
+ const finalClasses = [
1435
+ baseClasses,
1436
+ tab.isActive ? activeClasses : hoverClasses,
1437
+ tab.className || ""
1438
+ ].join(" ");
1439
+ const hasDropdown = Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown;
1440
+ if (hasDropdown) {
1441
+ return /* @__PURE__ */ jsxs18(DropdownMenu, { children: [
1442
+ /* @__PURE__ */ jsxs18(
1443
+ DropdownMenuTrigger,
1444
+ {
1445
+ className: `${finalClasses} inline-flex items-center gap-1`,
1446
+ children: [
1447
+ tab.header,
1448
+ /* @__PURE__ */ jsx34(ChevronDown, { className: "h-4 w-4 opacity-80" })
1449
+ ]
1450
+ }
1451
+ ),
1452
+ /* @__PURE__ */ jsx34(
1453
+ DropdownMenuContent,
1454
+ {
1455
+ align: "start",
1456
+ sideOffset: 6,
1457
+ className: "z-50 min-w-[160px] rounded-md border border-gray-200 bg-white p-1 shadow-lg",
1458
+ children: tab.children.map((item) => /* @__PURE__ */ jsx34(
1459
+ DropdownMenuItem,
1460
+ {
1461
+ asChild: true,
1462
+ className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100 focus:bg-gray-100",
1463
+ children: item.header
1464
+ },
1465
+ item.id
1466
+ ))
1467
+ }
1468
+ )
1469
+ ] }, index);
1470
+ }
1471
+ return /* @__PURE__ */ jsx34("div", { className: finalClasses, style: { backgroundColor: "transparent", border: "none", ...tab.style }, role: "button", tabIndex: 0, children: tab.header }, index);
1472
+ }) });
1473
+ };
1474
+ var Tabs_default = Tabs;
1475
+
1476
+ // src/components/Navigation/Stages/Stages.tsx
1477
+ import React12 from "react";
1478
+ import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
1479
+ var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
1480
+ return /* @__PURE__ */ jsx35("div", { className, style, children: /* @__PURE__ */ jsxs19("div", { className: "flex items-center justify-between bg-gray-50 p-2 rounded-lg border border-gray-200 w-full", children: [
1481
+ /* @__PURE__ */ jsx35("div", { className: "flex items-center", children: /* @__PURE__ */ jsx35("button", { className: "p-2 hover:bg-gray-100 rounded", children: /* @__PURE__ */ jsx35("svg", { className: "w-4 h-4 text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx35("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }) }) }),
1482
+ /* @__PURE__ */ jsx35("div", { className: "flex items-center flex-1 px-2", children: stages.map((stage, index) => /* @__PURE__ */ jsxs19(React12.Fragment, { children: [
1483
+ /* @__PURE__ */ jsx35(
1484
+ "button",
1485
+ {
1486
+ className: `
1487
+ 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"}`,
1488
+ children: stage.header
1489
+ }
1490
+ ),
1491
+ index < stages.length - 1 && /* @__PURE__ */ jsx35("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
1492
+ ] }, stage.id)) }),
1493
+ isShowBtn && /* @__PURE__ */ jsx35("div", { className: "flex items-center", children: /* @__PURE__ */ jsx35("button", { className: "bg-[#034486] text-white px-6 py-2 rounded-lg text-sm font-medium transition-colors duration-200 shadow-sm", children: buttonText }) })
1494
+ ] }) });
1495
+ };
1496
+ var Stages_default = StagesComponent;
1497
+
1498
+ // src/components/Navigation/Spacer/Spacer.tsx
1499
+ import { jsx as jsx36 } from "react/jsx-runtime";
1500
+ var Spacer = ({ className, style }) => {
1501
+ return /* @__PURE__ */ jsx36("div", { className: `${className}`, style });
1502
+ };
1503
+ var Spacer_default = Spacer;
1504
+
1505
+ // src/components/Navigation/Profile/Profile.tsx
1506
+ import { jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
1507
+ var Profile = ({ profileType, showName, userName, className, style }) => {
1508
+ return /* @__PURE__ */ jsx37("div", { className, style, children: /* @__PURE__ */ jsxs20("div", { className: "flex gap-2 items-center justify-between w-30 cursor-pointer", children: [
1509
+ showName && /* @__PURE__ */ jsx37("h4", { className: "text-[#000000] dark:text-[#fff] text-[13px] font-[500] mb-0", children: userName }),
1510
+ profileType === "avatar" ? /* @__PURE__ */ jsx37(
1511
+ "img",
1512
+ {
1513
+ src: "https://builder.development.algorithmshift.ai/images/toolset/profile.svg",
1514
+ alt: "auto",
1515
+ width: 24,
1516
+ height: 24
1517
+ }
1518
+ ) : /* @__PURE__ */ jsx37("div", { className: "w-6 h-6 bg-[#12715b] rounded-full text-[#fff] text-center text-[11px] flex items-center justify-center", children: "A" })
1519
+ ] }) });
1520
+ };
1521
+ var Profile_default = Profile;
1522
+
1523
+ // src/components/Navigation/Notification/Notification.tsx
1524
+ import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
1525
+ var Notification = ({ className, style, badgeType, badgeCount, hideBadgeWhenZero }) => {
1526
+ return /* @__PURE__ */ jsx38("div", { className, style, children: /* @__PURE__ */ jsxs21("div", { className: "w-[34px] h-[34px] bg-[#E9E9E9] rounded-md text-center flex items-center justify-center relative", children: [
1527
+ /* @__PURE__ */ jsx38(
1528
+ "img",
1529
+ {
1530
+ src: "https://builder.development.algorithmshift.ai/images/toolset/notification.svg",
1531
+ alt: "auto",
1532
+ width: 18,
1533
+ height: 18
1534
+ }
1535
+ ),
1536
+ badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && badgeCount > 0 ? /* @__PURE__ */ jsx38("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__ */ jsx38("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]" })
1537
+ ] }) });
1538
+ };
1539
+ var Notification_default = Notification;
1540
+
1541
+ // src/components/Navigation/Logo/Logo.tsx
1542
+ import { jsx as jsx39 } from "react/jsx-runtime";
1543
+ var ImageControl = ({
1544
+ className,
1545
+ style,
1546
+ imageUrl
1547
+ }) => {
1548
+ let src;
1549
+ let extraProps;
1550
+ if (imageUrl) {
1551
+ src = imageUrl;
1552
+ extraProps = {
1553
+ className: "w-full h-full"
1554
+ };
1555
+ } else {
1556
+ src = "https://builder.development.algorithmshift.ai/_next/image?url=%2Fdrag_and_drop.png&w=1920&q=75";
1557
+ extraProps = {
1558
+ width: 50,
1559
+ height: 50,
1560
+ className: "opacity-50"
1561
+ };
1562
+ }
1563
+ return /* @__PURE__ */ jsx39("div", { className, style, children: /* @__PURE__ */ jsx39("img", { src, alt: "Preview", sizes: "100vw", ...extraProps }) });
1564
+ };
1565
+ var Logo_default = ImageControl;
79
1566
  export {
80
1567
  Button,
81
- CustomButton,
1568
+ CheckboxInput,
1569
+ DateRange,
1570
+ Dropdown,
1571
+ EmailInput,
1572
+ Flex_default as FlexLayout,
1573
+ Grid_default as GridLayout,
1574
+ Logo_default as Logo,
1575
+ MultiCheckbox,
1576
+ Notification_default as Notification,
1577
+ PasswordInput,
1578
+ PhoneInput,
1579
+ Profile_default as Profile,
1580
+ RadioInput,
1581
+ Spacer_default as Spacer,
1582
+ Stages_default as Stages,
1583
+ SwitchToggle,
1584
+ Table_default as Table,
1585
+ Tabs_default as Tabs,
1586
+ TextInput,
1587
+ Textarea2 as Textarea,
1588
+ UrlInput,
82
1589
  buttonVariants,
83
1590
  cn
84
1591
  };
1592
+ /*! Bundled license information:
1593
+
1594
+ lucide-react/dist/esm/shared/src/utils.js:
1595
+ lucide-react/dist/esm/defaultAttributes.js:
1596
+ lucide-react/dist/esm/Icon.js:
1597
+ lucide-react/dist/esm/createLucideIcon.js:
1598
+ lucide-react/dist/esm/icons/check.js:
1599
+ lucide-react/dist/esm/icons/chevron-down.js:
1600
+ lucide-react/dist/esm/icons/chevron-left.js:
1601
+ lucide-react/dist/esm/icons/chevron-right.js:
1602
+ lucide-react/dist/esm/icons/chevron-up.js:
1603
+ lucide-react/dist/esm/icons/circle.js:
1604
+ lucide-react/dist/esm/icons/mail.js:
1605
+ lucide-react/dist/esm/icons/scan-eye.js:
1606
+ lucide-react/dist/esm/lucide-react.js:
1607
+ (**
1608
+ * @license lucide-react v0.542.0 - ISC
1609
+ *
1610
+ * This source code is licensed under the ISC license.
1611
+ * See the LICENSE file in the root directory of this source tree.
1612
+ *)
1613
+ */
85
1614
  //# sourceMappingURL=index.mjs.map