@algorithm-shift/design-system 1.2.55 → 1.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +17 -13
- package/dist/index.d.ts +17 -13
- package/dist/index.js +365 -346
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +322 -305
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
32
32
|
var src_exports = {};
|
|
33
33
|
__export(src_exports, {
|
|
34
34
|
Accordion: () => Accordion_default,
|
|
35
|
+
AccordionGroup: () => AccordionGroup_default,
|
|
35
36
|
BarChart: () => BarChart_default,
|
|
36
37
|
Breadcrumb: () => Breadcrumb_default,
|
|
37
38
|
Button: () => Button_default,
|
|
@@ -60,6 +61,7 @@ __export(src_exports, {
|
|
|
60
61
|
RichText: () => RichText,
|
|
61
62
|
Search: () => SearchInput_default,
|
|
62
63
|
Shape: () => Shape_default,
|
|
64
|
+
Slot: () => Slot_default,
|
|
63
65
|
Spacer: () => Spacer_default,
|
|
64
66
|
Stages: () => Stages_default,
|
|
65
67
|
SwitchToggle: () => SwitchToggle_default,
|
|
@@ -177,6 +179,22 @@ var Accordion = ({
|
|
|
177
179
|
};
|
|
178
180
|
var Accordion_default = Accordion;
|
|
179
181
|
|
|
182
|
+
// src/components/Layout/Slot.tsx
|
|
183
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
184
|
+
var Slot = ({
|
|
185
|
+
children
|
|
186
|
+
}) => {
|
|
187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children });
|
|
188
|
+
};
|
|
189
|
+
var Slot_default = Slot;
|
|
190
|
+
|
|
191
|
+
// src/components/Layout/AccordionGroup.tsx
|
|
192
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
193
|
+
var AccordionGroup = ({ children, style, className }) => {
|
|
194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className, style, children });
|
|
195
|
+
};
|
|
196
|
+
var AccordionGroup_default = AccordionGroup;
|
|
197
|
+
|
|
180
198
|
// src/components/ui/button.tsx
|
|
181
199
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
182
200
|
var import_class_variance_authority = require("class-variance-authority");
|
|
@@ -199,7 +217,7 @@ function getInitials(name) {
|
|
|
199
217
|
}
|
|
200
218
|
|
|
201
219
|
// src/components/ui/button.tsx
|
|
202
|
-
var
|
|
220
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
203
221
|
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
204
222
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
205
223
|
{
|
|
@@ -233,7 +251,7 @@ function Button({
|
|
|
233
251
|
...props
|
|
234
252
|
}) {
|
|
235
253
|
const Comp = asChild ? import_react_slot.Slot : "button";
|
|
236
|
-
return /* @__PURE__ */ (0,
|
|
254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
237
255
|
Comp,
|
|
238
256
|
{
|
|
239
257
|
"data-slot": "button",
|
|
@@ -244,14 +262,14 @@ function Button({
|
|
|
244
262
|
}
|
|
245
263
|
|
|
246
264
|
// src/components/Basic/Button/Button.tsx
|
|
247
|
-
var
|
|
265
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
248
266
|
var ButtonWrapper = ({
|
|
249
267
|
className,
|
|
250
268
|
style,
|
|
251
269
|
textContent = "Button",
|
|
252
270
|
...props
|
|
253
271
|
}) => {
|
|
254
|
-
return /* @__PURE__ */ (0,
|
|
272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
255
273
|
Button,
|
|
256
274
|
{
|
|
257
275
|
...props,
|
|
@@ -267,7 +285,7 @@ var Button_default = ButtonWrapper;
|
|
|
267
285
|
var image_placeholder_default = "data:image/png;base64,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";
|
|
268
286
|
|
|
269
287
|
// src/components/Basic/Image/Image.tsx
|
|
270
|
-
var
|
|
288
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
271
289
|
var ImageControl = ({
|
|
272
290
|
className,
|
|
273
291
|
style,
|
|
@@ -284,21 +302,21 @@ var ImageControl = ({
|
|
|
284
302
|
className
|
|
285
303
|
);
|
|
286
304
|
if (!imageUrl && !imageUrlExternal) {
|
|
287
|
-
return /* @__PURE__ */ (0,
|
|
305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: imageClass, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("img", { src: image_placeholder_default, alt: altText, className: "opacity-50", width: 50, height: 50 }) });
|
|
288
306
|
}
|
|
289
307
|
const url = imageUrlExternal || imageUrl;
|
|
290
|
-
return /* @__PURE__ */ (0,
|
|
308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("img", { src: url, alt: altText, className: defaultImgClass, style });
|
|
291
309
|
};
|
|
292
310
|
var Image_default = ImageControl;
|
|
293
311
|
|
|
294
312
|
// src/components/Basic/Shape/Shape.tsx
|
|
295
|
-
var
|
|
313
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
296
314
|
var Shape = ({
|
|
297
315
|
children,
|
|
298
316
|
className,
|
|
299
317
|
style
|
|
300
318
|
}) => {
|
|
301
|
-
return /* @__PURE__ */ (0,
|
|
319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className, style, children });
|
|
302
320
|
};
|
|
303
321
|
var Shape_default = Shape;
|
|
304
322
|
|
|
@@ -26636,9 +26654,9 @@ var ZoomOut = createLucideIcon("zoom-out", __iconNode1634);
|
|
|
26636
26654
|
|
|
26637
26655
|
// src/components/Basic/Breadcrumb/Breadcrumb.tsx
|
|
26638
26656
|
var import_link3 = __toESM(require("next/link"));
|
|
26639
|
-
var
|
|
26657
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
26640
26658
|
var Breadcrumb = ({ list = [], className, style }) => {
|
|
26641
|
-
return /* @__PURE__ */ (0,
|
|
26659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
26642
26660
|
"nav",
|
|
26643
26661
|
{
|
|
26644
26662
|
"aria-label": "breadcrumb",
|
|
@@ -26646,16 +26664,16 @@ var Breadcrumb = ({ list = [], className, style }) => {
|
|
|
26646
26664
|
style,
|
|
26647
26665
|
children: list.map((item, index) => {
|
|
26648
26666
|
const isLast = index === list.length - 1;
|
|
26649
|
-
return /* @__PURE__ */ (0,
|
|
26650
|
-
item.url && !isLast ? /* @__PURE__ */ (0,
|
|
26667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center", children: [
|
|
26668
|
+
item.url && !isLast ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
26651
26669
|
import_link3.default,
|
|
26652
26670
|
{
|
|
26653
26671
|
href: item.url,
|
|
26654
26672
|
className: "hover:text-foreground transition-colors",
|
|
26655
26673
|
children: item.header
|
|
26656
26674
|
}
|
|
26657
|
-
) : /* @__PURE__ */ (0,
|
|
26658
|
-
!isLast && /* @__PURE__ */ (0,
|
|
26675
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-foreground font-medium", children: item.header }),
|
|
26676
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ChevronRight, { className: "mx-2 h-4 w-4 text-muted-foreground" })
|
|
26659
26677
|
] }, item.id);
|
|
26660
26678
|
})
|
|
26661
26679
|
}
|
|
@@ -26665,16 +26683,16 @@ var Breadcrumb_default = Breadcrumb;
|
|
|
26665
26683
|
|
|
26666
26684
|
// src/components/ui/dropdown-menu.tsx
|
|
26667
26685
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
26668
|
-
var
|
|
26686
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
26669
26687
|
function DropdownMenu({
|
|
26670
26688
|
...props
|
|
26671
26689
|
}) {
|
|
26672
|
-
return /* @__PURE__ */ (0,
|
|
26690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
26673
26691
|
}
|
|
26674
26692
|
function DropdownMenuTrigger({
|
|
26675
26693
|
...props
|
|
26676
26694
|
}) {
|
|
26677
|
-
return /* @__PURE__ */ (0,
|
|
26695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
26678
26696
|
DropdownMenuPrimitive.Trigger,
|
|
26679
26697
|
{
|
|
26680
26698
|
"data-slot": "dropdown-menu-trigger",
|
|
@@ -26687,7 +26705,7 @@ function DropdownMenuContent({
|
|
|
26687
26705
|
sideOffset = 4,
|
|
26688
26706
|
...props
|
|
26689
26707
|
}) {
|
|
26690
|
-
return /* @__PURE__ */ (0,
|
|
26708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
26691
26709
|
DropdownMenuPrimitive.Content,
|
|
26692
26710
|
{
|
|
26693
26711
|
"data-slot": "dropdown-menu-content",
|
|
@@ -26706,7 +26724,7 @@ function DropdownMenuItem({
|
|
|
26706
26724
|
variant = "default",
|
|
26707
26725
|
...props
|
|
26708
26726
|
}) {
|
|
26709
|
-
return /* @__PURE__ */ (0,
|
|
26727
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
26710
26728
|
DropdownMenuPrimitive.Item,
|
|
26711
26729
|
{
|
|
26712
26730
|
"data-slot": "dropdown-menu-item",
|
|
@@ -26723,7 +26741,7 @@ function DropdownMenuItem({
|
|
|
26723
26741
|
function DropdownMenuSub({
|
|
26724
26742
|
...props
|
|
26725
26743
|
}) {
|
|
26726
|
-
return /* @__PURE__ */ (0,
|
|
26744
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
26727
26745
|
}
|
|
26728
26746
|
function DropdownMenuSubTrigger({
|
|
26729
26747
|
className,
|
|
@@ -26731,7 +26749,7 @@ function DropdownMenuSubTrigger({
|
|
|
26731
26749
|
children,
|
|
26732
26750
|
...props
|
|
26733
26751
|
}) {
|
|
26734
|
-
return /* @__PURE__ */ (0,
|
|
26752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
26735
26753
|
DropdownMenuPrimitive.SubTrigger,
|
|
26736
26754
|
{
|
|
26737
26755
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
@@ -26743,7 +26761,7 @@ function DropdownMenuSubTrigger({
|
|
|
26743
26761
|
...props,
|
|
26744
26762
|
children: [
|
|
26745
26763
|
children,
|
|
26746
|
-
/* @__PURE__ */ (0,
|
|
26764
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ChevronRight, { className: "ml-auto size-4" })
|
|
26747
26765
|
]
|
|
26748
26766
|
}
|
|
26749
26767
|
);
|
|
@@ -26752,7 +26770,7 @@ function DropdownMenuSubContent({
|
|
|
26752
26770
|
className,
|
|
26753
26771
|
...props
|
|
26754
26772
|
}) {
|
|
26755
|
-
return /* @__PURE__ */ (0,
|
|
26773
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
26756
26774
|
DropdownMenuPrimitive.SubContent,
|
|
26757
26775
|
{
|
|
26758
26776
|
"data-slot": "dropdown-menu-sub-content",
|
|
@@ -26767,11 +26785,11 @@ function DropdownMenuSubContent({
|
|
|
26767
26785
|
|
|
26768
26786
|
// src/components/Basic/ButtonGroup/ButtonGroup.tsx
|
|
26769
26787
|
var import_link4 = __toESM(require("next/link"));
|
|
26770
|
-
var
|
|
26788
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
26771
26789
|
function SplitButton({ style, textContent, className, list = [] }) {
|
|
26772
26790
|
const bgColor = style?.backgroundColor || "";
|
|
26773
|
-
return /* @__PURE__ */ (0,
|
|
26774
|
-
/* @__PURE__ */ (0,
|
|
26791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "inline-flex rounded-md overflow-hidden border border-teal-200 bg-teal-700 items-center focus:ring-0", style: { backgroundColor: bgColor }, children: [
|
|
26792
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
26775
26793
|
Button,
|
|
26776
26794
|
{
|
|
26777
26795
|
className: `rounded-none border-r px-4 py-2 text-whit focus:ring-0 ${className || ""}`,
|
|
@@ -26779,17 +26797,17 @@ function SplitButton({ style, textContent, className, list = [] }) {
|
|
|
26779
26797
|
children: textContent || "Button"
|
|
26780
26798
|
}
|
|
26781
26799
|
),
|
|
26782
|
-
/* @__PURE__ */ (0,
|
|
26783
|
-
/* @__PURE__ */ (0,
|
|
26800
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(DropdownMenu, { children: [
|
|
26801
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
26784
26802
|
Button,
|
|
26785
26803
|
{
|
|
26786
26804
|
className: "rounded-none bg-teal-700 px-4 py-2 text-white ring-0 shadow-none hover:bg-teal-600 focus:ring-0",
|
|
26787
26805
|
"aria-label": "Open Dropdown",
|
|
26788
26806
|
style: { backgroundColor: bgColor },
|
|
26789
|
-
children: /* @__PURE__ */ (0,
|
|
26807
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChevronDown, { className: "w-4 h-4" })
|
|
26790
26808
|
}
|
|
26791
26809
|
) }),
|
|
26792
|
-
/* @__PURE__ */ (0,
|
|
26810
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuContent, { align: "end", className: "bg-white min-w-[120px]", children: list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_link4.default, { href: item.url || "#", children: item.header }) }, item.id)) })
|
|
26793
26811
|
] })
|
|
26794
26812
|
] });
|
|
26795
26813
|
}
|
|
@@ -26797,7 +26815,7 @@ function SplitButton({ style, textContent, className, list = [] }) {
|
|
|
26797
26815
|
// src/components/Basic/Icon/Icon.tsx
|
|
26798
26816
|
var faSolid = __toESM(require("@fortawesome/free-solid-svg-icons"));
|
|
26799
26817
|
var import_react_fontawesome = require("@fortawesome/react-fontawesome");
|
|
26800
|
-
var
|
|
26818
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
26801
26819
|
var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize = 10, style }) => {
|
|
26802
26820
|
let content = null;
|
|
26803
26821
|
if (iconType === "fontawesome") {
|
|
@@ -26806,7 +26824,7 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
|
|
|
26806
26824
|
if (!faIcon) {
|
|
26807
26825
|
return null;
|
|
26808
26826
|
}
|
|
26809
|
-
content = /* @__PURE__ */ (0,
|
|
26827
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
26810
26828
|
import_react_fontawesome.FontAwesomeIcon,
|
|
26811
26829
|
{
|
|
26812
26830
|
icon: faIcon,
|
|
@@ -26820,16 +26838,16 @@ var Icon2 = ({ iconType = "fontawesome", name = "Envelope", className, fontSize
|
|
|
26820
26838
|
if (!Lucide) {
|
|
26821
26839
|
return null;
|
|
26822
26840
|
}
|
|
26823
|
-
content = /* @__PURE__ */ (0,
|
|
26841
|
+
content = /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Lucide, { className: cn("w-5 h-5"), size: fontSize, style: { color: style?.color } });
|
|
26824
26842
|
}
|
|
26825
|
-
return /* @__PURE__ */ (0,
|
|
26843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style, className, children: content });
|
|
26826
26844
|
};
|
|
26827
26845
|
var Icon_default = Icon2;
|
|
26828
26846
|
|
|
26829
26847
|
// src/components/ui/input.tsx
|
|
26830
|
-
var
|
|
26848
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
26831
26849
|
function Input({ className, type, ...props }) {
|
|
26832
|
-
return /* @__PURE__ */ (0,
|
|
26850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
26833
26851
|
"input",
|
|
26834
26852
|
{
|
|
26835
26853
|
type,
|
|
@@ -26846,7 +26864,7 @@ function Input({ className, type, ...props }) {
|
|
|
26846
26864
|
}
|
|
26847
26865
|
|
|
26848
26866
|
// src/components/Inputs/TextInput/TextInput.tsx
|
|
26849
|
-
var
|
|
26867
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
26850
26868
|
var TextInput = ({ className, style, ...props }) => {
|
|
26851
26869
|
const placeholder = props.placeholder || "Placeholder text";
|
|
26852
26870
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26856,8 +26874,8 @@ var TextInput = ({ className, style, ...props }) => {
|
|
|
26856
26874
|
const handleChange = (e) => {
|
|
26857
26875
|
props.onChange?.(e);
|
|
26858
26876
|
};
|
|
26859
|
-
return /* @__PURE__ */ (0,
|
|
26860
|
-
/* @__PURE__ */ (0,
|
|
26877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
26878
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
26861
26879
|
Input,
|
|
26862
26880
|
{
|
|
26863
26881
|
type: "text",
|
|
@@ -26875,13 +26893,13 @@ var TextInput = ({ className, style, ...props }) => {
|
|
|
26875
26893
|
readOnly: isReadonly
|
|
26876
26894
|
}
|
|
26877
26895
|
),
|
|
26878
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
26896
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26879
26897
|
] });
|
|
26880
26898
|
};
|
|
26881
26899
|
var TextInput_default = TextInput;
|
|
26882
26900
|
|
|
26883
26901
|
// src/components/Inputs/NumberInput/NumberInput.tsx
|
|
26884
|
-
var
|
|
26902
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
26885
26903
|
var NumberInput = ({ className, style, ...props }) => {
|
|
26886
26904
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26887
26905
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26891,10 +26909,10 @@ var NumberInput = ({ className, style, ...props }) => {
|
|
|
26891
26909
|
const handleChange = (e) => {
|
|
26892
26910
|
props.onChange?.(e);
|
|
26893
26911
|
};
|
|
26894
|
-
return /* @__PURE__ */ (0,
|
|
26895
|
-
/* @__PURE__ */ (0,
|
|
26896
|
-
/* @__PURE__ */ (0,
|
|
26897
|
-
/* @__PURE__ */ (0,
|
|
26912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
26913
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex justify-start items-center relative", children: [
|
|
26914
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Calculator, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
26915
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
26898
26916
|
Input,
|
|
26899
26917
|
{
|
|
26900
26918
|
type: "number",
|
|
@@ -26914,13 +26932,13 @@ var NumberInput = ({ className, style, ...props }) => {
|
|
|
26914
26932
|
}
|
|
26915
26933
|
)
|
|
26916
26934
|
] }),
|
|
26917
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
26935
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26918
26936
|
] });
|
|
26919
26937
|
};
|
|
26920
26938
|
var NumberInput_default = NumberInput;
|
|
26921
26939
|
|
|
26922
26940
|
// src/components/Inputs/EmailInput/EmailInput.tsx
|
|
26923
|
-
var
|
|
26941
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
26924
26942
|
var EmailInput = ({ className, style, ...props }) => {
|
|
26925
26943
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26926
26944
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26930,10 +26948,10 @@ var EmailInput = ({ className, style, ...props }) => {
|
|
|
26930
26948
|
const handleChange = (e) => {
|
|
26931
26949
|
props.onChange?.(e);
|
|
26932
26950
|
};
|
|
26933
|
-
return /* @__PURE__ */ (0,
|
|
26934
|
-
/* @__PURE__ */ (0,
|
|
26935
|
-
/* @__PURE__ */ (0,
|
|
26936
|
-
/* @__PURE__ */ (0,
|
|
26951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
|
|
26952
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex justify-start items-center relative", children: [
|
|
26953
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Mail, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
26954
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
26937
26955
|
Input,
|
|
26938
26956
|
{
|
|
26939
26957
|
type: "email",
|
|
@@ -26952,13 +26970,13 @@ var EmailInput = ({ className, style, ...props }) => {
|
|
|
26952
26970
|
}
|
|
26953
26971
|
)
|
|
26954
26972
|
] }),
|
|
26955
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
26973
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26956
26974
|
] });
|
|
26957
26975
|
};
|
|
26958
26976
|
var EmailInput_default = EmailInput;
|
|
26959
26977
|
|
|
26960
26978
|
// src/components/Inputs/PasswordInput/PasswordInput.tsx
|
|
26961
|
-
var
|
|
26979
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
26962
26980
|
var PasswordInput = ({ className, style, ...props }) => {
|
|
26963
26981
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
26964
26982
|
const isEditable = props.isEditable ?? true;
|
|
@@ -26968,10 +26986,10 @@ var PasswordInput = ({ className, style, ...props }) => {
|
|
|
26968
26986
|
const handleChange = (e) => {
|
|
26969
26987
|
props.onChange?.(e);
|
|
26970
26988
|
};
|
|
26971
|
-
return /* @__PURE__ */ (0,
|
|
26972
|
-
/* @__PURE__ */ (0,
|
|
26973
|
-
/* @__PURE__ */ (0,
|
|
26974
|
-
/* @__PURE__ */ (0,
|
|
26989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
26990
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex justify-start items-center relative", children: [
|
|
26991
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ScanEye, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
26992
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
26975
26993
|
Input,
|
|
26976
26994
|
{
|
|
26977
26995
|
type: "password",
|
|
@@ -26991,15 +27009,15 @@ var PasswordInput = ({ className, style, ...props }) => {
|
|
|
26991
27009
|
}
|
|
26992
27010
|
)
|
|
26993
27011
|
] }),
|
|
26994
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27012
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
26995
27013
|
] });
|
|
26996
27014
|
};
|
|
26997
27015
|
var PasswordInput_default = PasswordInput;
|
|
26998
27016
|
|
|
26999
27017
|
// src/components/ui/textarea.tsx
|
|
27000
|
-
var
|
|
27018
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
27001
27019
|
function Textarea({ className, ...props }) {
|
|
27002
|
-
return /* @__PURE__ */ (0,
|
|
27020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
27003
27021
|
"textarea",
|
|
27004
27022
|
{
|
|
27005
27023
|
"data-slot": "textarea",
|
|
@@ -27013,7 +27031,7 @@ function Textarea({ className, ...props }) {
|
|
|
27013
27031
|
}
|
|
27014
27032
|
|
|
27015
27033
|
// src/components/Inputs/Textarea/Textarea.tsx
|
|
27016
|
-
var
|
|
27034
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
27017
27035
|
var Textarea2 = ({ className, style, ...props }) => {
|
|
27018
27036
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27019
27037
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27023,8 +27041,8 @@ var Textarea2 = ({ className, style, ...props }) => {
|
|
|
27023
27041
|
const handleChange = (e) => {
|
|
27024
27042
|
props.onChange?.(e);
|
|
27025
27043
|
};
|
|
27026
|
-
return /* @__PURE__ */ (0,
|
|
27027
|
-
/* @__PURE__ */ (0,
|
|
27044
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
|
|
27045
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
27028
27046
|
Textarea,
|
|
27029
27047
|
{
|
|
27030
27048
|
id: "textarea-field",
|
|
@@ -27042,13 +27060,13 @@ var Textarea2 = ({ className, style, ...props }) => {
|
|
|
27042
27060
|
readOnly: isReadonly
|
|
27043
27061
|
}
|
|
27044
27062
|
),
|
|
27045
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27063
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27046
27064
|
] });
|
|
27047
27065
|
};
|
|
27048
27066
|
var Textarea_default = Textarea2;
|
|
27049
27067
|
|
|
27050
27068
|
// src/components/Inputs/UrlInput/UrlInput.tsx
|
|
27051
|
-
var
|
|
27069
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
27052
27070
|
var UrlInput = ({ className, style, ...props }) => {
|
|
27053
27071
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27054
27072
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27058,10 +27076,10 @@ var UrlInput = ({ className, style, ...props }) => {
|
|
|
27058
27076
|
const handleChange = (e) => {
|
|
27059
27077
|
props.onChange?.(e);
|
|
27060
27078
|
};
|
|
27061
|
-
return /* @__PURE__ */ (0,
|
|
27062
|
-
/* @__PURE__ */ (0,
|
|
27063
|
-
/* @__PURE__ */ (0,
|
|
27064
|
-
/* @__PURE__ */ (0,
|
|
27079
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
|
|
27080
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex justify-start items-center relative", children: [
|
|
27081
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.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://" }),
|
|
27082
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
27065
27083
|
Input,
|
|
27066
27084
|
{
|
|
27067
27085
|
id: "url-field",
|
|
@@ -27081,19 +27099,19 @@ var UrlInput = ({ className, style, ...props }) => {
|
|
|
27081
27099
|
}
|
|
27082
27100
|
)
|
|
27083
27101
|
] }),
|
|
27084
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27102
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27085
27103
|
] });
|
|
27086
27104
|
};
|
|
27087
27105
|
var UrlInput_default = UrlInput;
|
|
27088
27106
|
|
|
27089
27107
|
// src/components/ui/checkbox.tsx
|
|
27090
27108
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
|
27091
|
-
var
|
|
27109
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
27092
27110
|
function Checkbox({
|
|
27093
27111
|
className,
|
|
27094
27112
|
...props
|
|
27095
27113
|
}) {
|
|
27096
|
-
return /* @__PURE__ */ (0,
|
|
27114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
27097
27115
|
CheckboxPrimitive.Root,
|
|
27098
27116
|
{
|
|
27099
27117
|
"data-slot": "checkbox",
|
|
@@ -27102,12 +27120,12 @@ function Checkbox({
|
|
|
27102
27120
|
className
|
|
27103
27121
|
),
|
|
27104
27122
|
...props,
|
|
27105
|
-
children: /* @__PURE__ */ (0,
|
|
27123
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
27106
27124
|
CheckboxPrimitive.Indicator,
|
|
27107
27125
|
{
|
|
27108
27126
|
"data-slot": "checkbox-indicator",
|
|
27109
27127
|
className: "flex items-center justify-center text-current transition-none",
|
|
27110
|
-
children: /* @__PURE__ */ (0,
|
|
27128
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Check, { className: "size-3.5" })
|
|
27111
27129
|
}
|
|
27112
27130
|
)
|
|
27113
27131
|
}
|
|
@@ -27116,12 +27134,12 @@ function Checkbox({
|
|
|
27116
27134
|
|
|
27117
27135
|
// src/components/ui/label.tsx
|
|
27118
27136
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
27119
|
-
var
|
|
27137
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
27120
27138
|
function Label2({
|
|
27121
27139
|
className,
|
|
27122
27140
|
...props
|
|
27123
27141
|
}) {
|
|
27124
|
-
return /* @__PURE__ */ (0,
|
|
27142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
27125
27143
|
LabelPrimitive.Root,
|
|
27126
27144
|
{
|
|
27127
27145
|
"data-slot": "label",
|
|
@@ -27135,7 +27153,7 @@ function Label2({
|
|
|
27135
27153
|
}
|
|
27136
27154
|
|
|
27137
27155
|
// src/components/Inputs/Checkbox/Checkbox.tsx
|
|
27138
|
-
var
|
|
27156
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
27139
27157
|
var CheckboxInput = ({ className, style, ...props }) => {
|
|
27140
27158
|
const isEditable = props.isEditable ?? true;
|
|
27141
27159
|
const isDisabled = props.isDisabled ?? false;
|
|
@@ -27143,9 +27161,9 @@ var CheckboxInput = ({ className, style, ...props }) => {
|
|
|
27143
27161
|
const handleChange = (value) => {
|
|
27144
27162
|
props.onChange?.(value);
|
|
27145
27163
|
};
|
|
27146
|
-
return /* @__PURE__ */ (0,
|
|
27147
|
-
/* @__PURE__ */ (0,
|
|
27148
|
-
/* @__PURE__ */ (0,
|
|
27164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
|
|
27165
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
27166
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
27149
27167
|
Checkbox,
|
|
27150
27168
|
{
|
|
27151
27169
|
id: props.name || "checkbox",
|
|
@@ -27154,21 +27172,21 @@ var CheckboxInput = ({ className, style, ...props }) => {
|
|
|
27154
27172
|
disabled: !isEditable || isDisabled
|
|
27155
27173
|
}
|
|
27156
27174
|
),
|
|
27157
|
-
/* @__PURE__ */ (0,
|
|
27175
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Label2, { htmlFor: props.name || "checkbox", children: text })
|
|
27158
27176
|
] }) }),
|
|
27159
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27177
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27160
27178
|
] });
|
|
27161
27179
|
};
|
|
27162
27180
|
var Checkbox_default = CheckboxInput;
|
|
27163
27181
|
|
|
27164
27182
|
// src/components/ui/radio-group.tsx
|
|
27165
27183
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
|
|
27166
|
-
var
|
|
27184
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
27167
27185
|
function RadioGroup2({
|
|
27168
27186
|
className,
|
|
27169
27187
|
...props
|
|
27170
27188
|
}) {
|
|
27171
|
-
return /* @__PURE__ */ (0,
|
|
27189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
27172
27190
|
RadioGroupPrimitive.Root,
|
|
27173
27191
|
{
|
|
27174
27192
|
"data-slot": "radio-group",
|
|
@@ -27181,7 +27199,7 @@ function RadioGroupItem({
|
|
|
27181
27199
|
className,
|
|
27182
27200
|
...props
|
|
27183
27201
|
}) {
|
|
27184
|
-
return /* @__PURE__ */ (0,
|
|
27202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
27185
27203
|
RadioGroupPrimitive.Item,
|
|
27186
27204
|
{
|
|
27187
27205
|
"data-slot": "radio-group-item",
|
|
@@ -27190,12 +27208,12 @@ function RadioGroupItem({
|
|
|
27190
27208
|
className
|
|
27191
27209
|
),
|
|
27192
27210
|
...props,
|
|
27193
|
-
children: /* @__PURE__ */ (0,
|
|
27211
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
27194
27212
|
RadioGroupPrimitive.Indicator,
|
|
27195
27213
|
{
|
|
27196
27214
|
"data-slot": "radio-group-indicator",
|
|
27197
27215
|
className: "relative flex items-center justify-center",
|
|
27198
|
-
children: /* @__PURE__ */ (0,
|
|
27216
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Circle, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
27199
27217
|
}
|
|
27200
27218
|
)
|
|
27201
27219
|
}
|
|
@@ -27203,7 +27221,7 @@ function RadioGroupItem({
|
|
|
27203
27221
|
}
|
|
27204
27222
|
|
|
27205
27223
|
// src/components/Inputs/RadioInput/RadioInput.tsx
|
|
27206
|
-
var
|
|
27224
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
27207
27225
|
var RadioInput = ({
|
|
27208
27226
|
className,
|
|
27209
27227
|
style,
|
|
@@ -27222,29 +27240,29 @@ var RadioInput = ({
|
|
|
27222
27240
|
onChange?.(value);
|
|
27223
27241
|
};
|
|
27224
27242
|
const resolvedDefaultValue = (typeof defaultValue === "string" ? defaultValue : void 0) ?? options[0]?.value;
|
|
27225
|
-
return /* @__PURE__ */ (0,
|
|
27226
|
-
/* @__PURE__ */ (0,
|
|
27243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
27244
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
27227
27245
|
RadioGroup2,
|
|
27228
27246
|
{
|
|
27229
27247
|
defaultValue: resolvedDefaultValue,
|
|
27230
27248
|
onValueChange: handleChange,
|
|
27231
27249
|
children: [
|
|
27232
|
-
options.length === 0 && /* @__PURE__ */ (0,
|
|
27233
|
-
options.map((item) => /* @__PURE__ */ (0,
|
|
27234
|
-
/* @__PURE__ */ (0,
|
|
27235
|
-
/* @__PURE__ */ (0,
|
|
27250
|
+
options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "text-sm text-gray-500", children: "No options available" }),
|
|
27251
|
+
options.map((item) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
27252
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(RadioGroupItem, { value: item.value, id: `radio-${item.value}` }),
|
|
27253
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Label2, { htmlFor: `radio-${item.value}`, children: item.label })
|
|
27236
27254
|
] }, item.value))
|
|
27237
27255
|
]
|
|
27238
27256
|
}
|
|
27239
27257
|
) }),
|
|
27240
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27258
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27241
27259
|
] });
|
|
27242
27260
|
};
|
|
27243
27261
|
var RadioInput_default = RadioInput;
|
|
27244
27262
|
|
|
27245
27263
|
// src/components/Inputs/MultiCheckbox/MultiCheckbox.tsx
|
|
27246
27264
|
var import_react5 = require("react");
|
|
27247
|
-
var
|
|
27265
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
27248
27266
|
var MultiCheckbox = ({
|
|
27249
27267
|
className,
|
|
27250
27268
|
style,
|
|
@@ -27271,15 +27289,15 @@ var MultiCheckbox = ({
|
|
|
27271
27289
|
},
|
|
27272
27290
|
[onChange]
|
|
27273
27291
|
);
|
|
27274
|
-
return /* @__PURE__ */ (0,
|
|
27292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
27275
27293
|
"div",
|
|
27276
27294
|
{
|
|
27277
27295
|
className: cn("flex flex-col gap-3", className),
|
|
27278
27296
|
style,
|
|
27279
27297
|
children: [
|
|
27280
|
-
options.length === 0 && /* @__PURE__ */ (0,
|
|
27281
|
-
options.map((opt) => /* @__PURE__ */ (0,
|
|
27282
|
-
/* @__PURE__ */ (0,
|
|
27298
|
+
options.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-sm text-gray-500", children: "No options available." }),
|
|
27299
|
+
options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
27300
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
27283
27301
|
Checkbox,
|
|
27284
27302
|
{
|
|
27285
27303
|
id: opt.value,
|
|
@@ -27288,7 +27306,7 @@ var MultiCheckbox = ({
|
|
|
27288
27306
|
disabled: !isEditable || isDisabled
|
|
27289
27307
|
}
|
|
27290
27308
|
),
|
|
27291
|
-
/* @__PURE__ */ (0,
|
|
27309
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Label2, { htmlFor: opt.value, children: opt.label })
|
|
27292
27310
|
] }, opt.value))
|
|
27293
27311
|
]
|
|
27294
27312
|
}
|
|
@@ -27299,7 +27317,7 @@ var MultiCheckbox_default = MultiCheckbox;
|
|
|
27299
27317
|
// src/components/Global/TinyMceEditor.tsx
|
|
27300
27318
|
var import_react6 = require("react");
|
|
27301
27319
|
var import_tinymce_react = require("@tinymce/tinymce-react");
|
|
27302
|
-
var
|
|
27320
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
27303
27321
|
function MyEditor({
|
|
27304
27322
|
value,
|
|
27305
27323
|
onChange,
|
|
@@ -27324,7 +27342,7 @@ function MyEditor({
|
|
|
27324
27342
|
}
|
|
27325
27343
|
return toolbar;
|
|
27326
27344
|
}, [isDefault]);
|
|
27327
|
-
return /* @__PURE__ */ (0,
|
|
27345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
27328
27346
|
import_tinymce_react.Editor,
|
|
27329
27347
|
{
|
|
27330
27348
|
apiKey: process.env.NEXT_PUBLIC_TINYMCE_API_KEY,
|
|
@@ -27368,9 +27386,9 @@ function MyEditor({
|
|
|
27368
27386
|
}
|
|
27369
27387
|
|
|
27370
27388
|
// src/components/Inputs/RichText/RichText.tsx
|
|
27371
|
-
var
|
|
27389
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
27372
27390
|
function RichText({ className, style, ...props }) {
|
|
27373
|
-
return /* @__PURE__ */ (0,
|
|
27391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
27374
27392
|
"div",
|
|
27375
27393
|
{
|
|
27376
27394
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
@@ -27379,8 +27397,8 @@ function RichText({ className, style, ...props }) {
|
|
|
27379
27397
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
27380
27398
|
},
|
|
27381
27399
|
children: [
|
|
27382
|
-
/* @__PURE__ */ (0,
|
|
27383
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27400
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value, isDefault: true }),
|
|
27401
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27384
27402
|
]
|
|
27385
27403
|
}
|
|
27386
27404
|
);
|
|
@@ -27388,16 +27406,16 @@ function RichText({ className, style, ...props }) {
|
|
|
27388
27406
|
|
|
27389
27407
|
// src/components/ui/select.tsx
|
|
27390
27408
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
27391
|
-
var
|
|
27409
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
27392
27410
|
function Select({
|
|
27393
27411
|
...props
|
|
27394
27412
|
}) {
|
|
27395
|
-
return /* @__PURE__ */ (0,
|
|
27413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
27396
27414
|
}
|
|
27397
27415
|
function SelectValue({
|
|
27398
27416
|
...props
|
|
27399
27417
|
}) {
|
|
27400
|
-
return /* @__PURE__ */ (0,
|
|
27418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
27401
27419
|
}
|
|
27402
27420
|
function SelectTrigger({
|
|
27403
27421
|
className,
|
|
@@ -27405,7 +27423,7 @@ function SelectTrigger({
|
|
|
27405
27423
|
children,
|
|
27406
27424
|
...props
|
|
27407
27425
|
}) {
|
|
27408
|
-
return /* @__PURE__ */ (0,
|
|
27426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
27409
27427
|
SelectPrimitive.Trigger,
|
|
27410
27428
|
{
|
|
27411
27429
|
"data-slot": "select-trigger",
|
|
@@ -27417,7 +27435,7 @@ function SelectTrigger({
|
|
|
27417
27435
|
...props,
|
|
27418
27436
|
children: [
|
|
27419
27437
|
children,
|
|
27420
|
-
/* @__PURE__ */ (0,
|
|
27438
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronDown, { className: "size-4 opacity-50" }) })
|
|
27421
27439
|
]
|
|
27422
27440
|
}
|
|
27423
27441
|
);
|
|
@@ -27428,7 +27446,7 @@ function SelectContent({
|
|
|
27428
27446
|
position = "popper",
|
|
27429
27447
|
...props
|
|
27430
27448
|
}) {
|
|
27431
|
-
return /* @__PURE__ */ (0,
|
|
27449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
27432
27450
|
SelectPrimitive.Content,
|
|
27433
27451
|
{
|
|
27434
27452
|
"data-slot": "select-content",
|
|
@@ -27440,8 +27458,8 @@ function SelectContent({
|
|
|
27440
27458
|
position,
|
|
27441
27459
|
...props,
|
|
27442
27460
|
children: [
|
|
27443
|
-
/* @__PURE__ */ (0,
|
|
27444
|
-
/* @__PURE__ */ (0,
|
|
27461
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectScrollUpButton, {}),
|
|
27462
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
27445
27463
|
SelectPrimitive.Viewport,
|
|
27446
27464
|
{
|
|
27447
27465
|
className: cn(
|
|
@@ -27451,7 +27469,7 @@ function SelectContent({
|
|
|
27451
27469
|
children
|
|
27452
27470
|
}
|
|
27453
27471
|
),
|
|
27454
|
-
/* @__PURE__ */ (0,
|
|
27472
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectScrollDownButton, {})
|
|
27455
27473
|
]
|
|
27456
27474
|
}
|
|
27457
27475
|
) });
|
|
@@ -27461,7 +27479,7 @@ function SelectItem({
|
|
|
27461
27479
|
children,
|
|
27462
27480
|
...props
|
|
27463
27481
|
}) {
|
|
27464
|
-
return /* @__PURE__ */ (0,
|
|
27482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
27465
27483
|
SelectPrimitive.Item,
|
|
27466
27484
|
{
|
|
27467
27485
|
"data-slot": "select-item",
|
|
@@ -27471,8 +27489,8 @@ function SelectItem({
|
|
|
27471
27489
|
),
|
|
27472
27490
|
...props,
|
|
27473
27491
|
children: [
|
|
27474
|
-
/* @__PURE__ */ (0,
|
|
27475
|
-
/* @__PURE__ */ (0,
|
|
27492
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Check, { className: "size-4" }) }) }),
|
|
27493
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectPrimitive.ItemText, { children })
|
|
27476
27494
|
]
|
|
27477
27495
|
}
|
|
27478
27496
|
);
|
|
@@ -27481,7 +27499,7 @@ function SelectScrollUpButton({
|
|
|
27481
27499
|
className,
|
|
27482
27500
|
...props
|
|
27483
27501
|
}) {
|
|
27484
|
-
return /* @__PURE__ */ (0,
|
|
27502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
27485
27503
|
SelectPrimitive.ScrollUpButton,
|
|
27486
27504
|
{
|
|
27487
27505
|
"data-slot": "select-scroll-up-button",
|
|
@@ -27490,7 +27508,7 @@ function SelectScrollUpButton({
|
|
|
27490
27508
|
className
|
|
27491
27509
|
),
|
|
27492
27510
|
...props,
|
|
27493
|
-
children: /* @__PURE__ */ (0,
|
|
27511
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronUp, { className: "size-4" })
|
|
27494
27512
|
}
|
|
27495
27513
|
);
|
|
27496
27514
|
}
|
|
@@ -27498,7 +27516,7 @@ function SelectScrollDownButton({
|
|
|
27498
27516
|
className,
|
|
27499
27517
|
...props
|
|
27500
27518
|
}) {
|
|
27501
|
-
return /* @__PURE__ */ (0,
|
|
27519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
27502
27520
|
SelectPrimitive.ScrollDownButton,
|
|
27503
27521
|
{
|
|
27504
27522
|
"data-slot": "select-scroll-down-button",
|
|
@@ -27507,13 +27525,13 @@ function SelectScrollDownButton({
|
|
|
27507
27525
|
className
|
|
27508
27526
|
),
|
|
27509
27527
|
...props,
|
|
27510
|
-
children: /* @__PURE__ */ (0,
|
|
27528
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(ChevronDown, { className: "size-4" })
|
|
27511
27529
|
}
|
|
27512
27530
|
);
|
|
27513
27531
|
}
|
|
27514
27532
|
|
|
27515
27533
|
// src/components/Inputs/Dropdown/Dropdown.tsx
|
|
27516
|
-
var
|
|
27534
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
27517
27535
|
var Dropdown = ({ className, style, ...props }) => {
|
|
27518
27536
|
const list = props.data || [];
|
|
27519
27537
|
const placeholder = props.placeholder ? props.placeholder : "Placeholder text";
|
|
@@ -27529,9 +27547,9 @@ var Dropdown = ({ className, style, ...props }) => {
|
|
|
27529
27547
|
value: item[dataKey],
|
|
27530
27548
|
label: item[dataLabel]
|
|
27531
27549
|
}));
|
|
27532
|
-
return /* @__PURE__ */ (0,
|
|
27533
|
-
/* @__PURE__ */ (0,
|
|
27534
|
-
/* @__PURE__ */ (0,
|
|
27550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
27551
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Select, { name: props.name, value: props.value, onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
|
|
27552
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
27535
27553
|
SelectTrigger,
|
|
27536
27554
|
{
|
|
27537
27555
|
id: props.name || "select-field",
|
|
@@ -27541,24 +27559,24 @@ var Dropdown = ({ className, style, ...props }) => {
|
|
|
27541
27559
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
27542
27560
|
},
|
|
27543
27561
|
"aria-readonly": isReadonly,
|
|
27544
|
-
children: /* @__PURE__ */ (0,
|
|
27562
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectValue, { placeholder })
|
|
27545
27563
|
}
|
|
27546
27564
|
),
|
|
27547
|
-
/* @__PURE__ */ (0,
|
|
27565
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectContent, { children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
27548
27566
|
] }),
|
|
27549
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27567
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27550
27568
|
] });
|
|
27551
27569
|
};
|
|
27552
27570
|
var Dropdown_default = Dropdown;
|
|
27553
27571
|
|
|
27554
27572
|
// src/components/ui/switch.tsx
|
|
27555
27573
|
var SwitchPrimitive = __toESM(require("@radix-ui/react-switch"));
|
|
27556
|
-
var
|
|
27574
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
27557
27575
|
function Switch({
|
|
27558
27576
|
className,
|
|
27559
27577
|
...props
|
|
27560
27578
|
}) {
|
|
27561
|
-
return /* @__PURE__ */ (0,
|
|
27579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
27562
27580
|
SwitchPrimitive.Root,
|
|
27563
27581
|
{
|
|
27564
27582
|
"data-slot": "switch",
|
|
@@ -27567,7 +27585,7 @@ function Switch({
|
|
|
27567
27585
|
className
|
|
27568
27586
|
),
|
|
27569
27587
|
...props,
|
|
27570
|
-
children: /* @__PURE__ */ (0,
|
|
27588
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
27571
27589
|
SwitchPrimitive.Thumb,
|
|
27572
27590
|
{
|
|
27573
27591
|
"data-slot": "switch-thumb",
|
|
@@ -27581,16 +27599,16 @@ function Switch({
|
|
|
27581
27599
|
}
|
|
27582
27600
|
|
|
27583
27601
|
// src/components/Inputs/SwitchToggle/SwitchToggle.tsx
|
|
27584
|
-
var
|
|
27602
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
27585
27603
|
var SwitchToggle = ({ className, style, ...props }) => {
|
|
27586
27604
|
const isEditable = props.isEditable ?? true;
|
|
27587
27605
|
const isDisabled = props.isDisabled ?? false;
|
|
27588
27606
|
const handleChange = (value) => {
|
|
27589
27607
|
props.onChange?.(value);
|
|
27590
27608
|
};
|
|
27591
|
-
return /* @__PURE__ */ (0,
|
|
27592
|
-
/* @__PURE__ */ (0,
|
|
27593
|
-
/* @__PURE__ */ (0,
|
|
27609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
27610
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex items-center space-x-2 mb-2", children: [
|
|
27611
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
27594
27612
|
Switch,
|
|
27595
27613
|
{
|
|
27596
27614
|
id: props.name || "switch",
|
|
@@ -27599,9 +27617,9 @@ var SwitchToggle = ({ className, style, ...props }) => {
|
|
|
27599
27617
|
disabled: isDisabled || !isEditable
|
|
27600
27618
|
}
|
|
27601
27619
|
),
|
|
27602
|
-
/* @__PURE__ */ (0,
|
|
27620
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Label2, { htmlFor: props.name || "switch", children: props.text })
|
|
27603
27621
|
] }) }),
|
|
27604
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27622
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27605
27623
|
] });
|
|
27606
27624
|
};
|
|
27607
27625
|
var SwitchToggle_default = SwitchToggle;
|
|
@@ -27609,7 +27627,7 @@ var SwitchToggle_default = SwitchToggle;
|
|
|
27609
27627
|
// src/components/Inputs/PhoneInput/PhoneInput.tsx
|
|
27610
27628
|
var import_react_international_phone = require("react-international-phone");
|
|
27611
27629
|
var import_style = require("react-international-phone/style.css");
|
|
27612
|
-
var
|
|
27630
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
27613
27631
|
var PhoneInput = ({ className, style, ...props }) => {
|
|
27614
27632
|
const placeholder = props.placeholder ?? "Enter phone number";
|
|
27615
27633
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27617,8 +27635,8 @@ var PhoneInput = ({ className, style, ...props }) => {
|
|
|
27617
27635
|
const handleChange = (val) => {
|
|
27618
27636
|
props.onChange?.(val);
|
|
27619
27637
|
};
|
|
27620
|
-
return /* @__PURE__ */ (0,
|
|
27621
|
-
/* @__PURE__ */ (0,
|
|
27638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
27639
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
27622
27640
|
import_react_international_phone.PhoneInput,
|
|
27623
27641
|
{
|
|
27624
27642
|
defaultCountry: "in",
|
|
@@ -27637,13 +27655,13 @@ var PhoneInput = ({ className, style, ...props }) => {
|
|
|
27637
27655
|
disabled: isDisabled || !isEditable
|
|
27638
27656
|
}
|
|
27639
27657
|
),
|
|
27640
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27658
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27641
27659
|
] });
|
|
27642
27660
|
};
|
|
27643
27661
|
var PhoneInput_default = PhoneInput;
|
|
27644
27662
|
|
|
27645
27663
|
// src/components/Inputs/SearchInput/SearchInput.tsx
|
|
27646
|
-
var
|
|
27664
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
27647
27665
|
var SearchInput = ({ className, style, ...props }) => {
|
|
27648
27666
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27649
27667
|
const isEditable = props.isEditable ?? true;
|
|
@@ -27653,10 +27671,10 @@ var SearchInput = ({ className, style, ...props }) => {
|
|
|
27653
27671
|
const handleChange = (e) => {
|
|
27654
27672
|
props.onChange?.(e);
|
|
27655
27673
|
};
|
|
27656
|
-
return /* @__PURE__ */ (0,
|
|
27657
|
-
/* @__PURE__ */ (0,
|
|
27658
|
-
/* @__PURE__ */ (0,
|
|
27659
|
-
/* @__PURE__ */ (0,
|
|
27674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
27675
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex justify-start items-center relative", children: [
|
|
27676
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
27677
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
27660
27678
|
Input,
|
|
27661
27679
|
{
|
|
27662
27680
|
type: "text",
|
|
@@ -27676,17 +27694,17 @@ var SearchInput = ({ className, style, ...props }) => {
|
|
|
27676
27694
|
}
|
|
27677
27695
|
)
|
|
27678
27696
|
] }),
|
|
27679
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27697
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27680
27698
|
] });
|
|
27681
27699
|
};
|
|
27682
27700
|
var SearchInput_default = SearchInput;
|
|
27683
27701
|
|
|
27684
27702
|
// src/components/Inputs/FileInput/FileInput.tsx
|
|
27685
|
-
var
|
|
27703
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
27686
27704
|
var FileInput2 = ({ className, style, ...props }) => {
|
|
27687
27705
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27688
|
-
return /* @__PURE__ */ (0,
|
|
27689
|
-
/* @__PURE__ */ (0,
|
|
27706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "d-flex items-center relative align-middle", children: [
|
|
27707
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
27690
27708
|
Input,
|
|
27691
27709
|
{
|
|
27692
27710
|
type: "file",
|
|
@@ -27705,13 +27723,13 @@ var FileInput2 = ({ className, style, ...props }) => {
|
|
|
27705
27723
|
}
|
|
27706
27724
|
}
|
|
27707
27725
|
),
|
|
27708
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27726
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27709
27727
|
] });
|
|
27710
27728
|
};
|
|
27711
27729
|
var FileInput_default = FileInput2;
|
|
27712
27730
|
|
|
27713
27731
|
// src/components/Inputs/DatePicker/DatePicker.tsx
|
|
27714
|
-
var
|
|
27732
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
27715
27733
|
function DatePicker({ className, style, ...props }) {
|
|
27716
27734
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
27717
27735
|
const minimumDate = props.minimumDate ?? "none";
|
|
@@ -27739,10 +27757,10 @@ function DatePicker({ className, style, ...props }) {
|
|
|
27739
27757
|
const handleChange = (e) => {
|
|
27740
27758
|
props.onChange?.(e);
|
|
27741
27759
|
};
|
|
27742
|
-
return /* @__PURE__ */ (0,
|
|
27743
|
-
/* @__PURE__ */ (0,
|
|
27744
|
-
/* @__PURE__ */ (0,
|
|
27745
|
-
/* @__PURE__ */ (0,
|
|
27760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
27761
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex justify-start items-center relative", children: [
|
|
27762
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Calendar, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#BDBDBD]" }),
|
|
27763
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
27746
27764
|
Input,
|
|
27747
27765
|
{
|
|
27748
27766
|
type: "date",
|
|
@@ -27768,7 +27786,7 @@ function DatePicker({ className, style, ...props }) {
|
|
|
27768
27786
|
}
|
|
27769
27787
|
)
|
|
27770
27788
|
] }),
|
|
27771
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
27789
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27772
27790
|
] });
|
|
27773
27791
|
}
|
|
27774
27792
|
|
|
@@ -27779,7 +27797,7 @@ var import_date_fns = require("date-fns");
|
|
|
27779
27797
|
// src/components/ui/calendar.tsx
|
|
27780
27798
|
var React3 = __toESM(require("react"));
|
|
27781
27799
|
var import_react_day_picker = require("react-day-picker");
|
|
27782
|
-
var
|
|
27800
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
27783
27801
|
function Calendar2({
|
|
27784
27802
|
className,
|
|
27785
27803
|
classNames,
|
|
@@ -27791,7 +27809,7 @@ function Calendar2({
|
|
|
27791
27809
|
...props
|
|
27792
27810
|
}) {
|
|
27793
27811
|
const defaultClassNames = (0, import_react_day_picker.getDefaultClassNames)();
|
|
27794
|
-
return /* @__PURE__ */ (0,
|
|
27812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
27795
27813
|
import_react_day_picker.DayPicker,
|
|
27796
27814
|
{
|
|
27797
27815
|
showOutsideDays,
|
|
@@ -27890,7 +27908,7 @@ function Calendar2({
|
|
|
27890
27908
|
},
|
|
27891
27909
|
components: {
|
|
27892
27910
|
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
27893
|
-
return /* @__PURE__ */ (0,
|
|
27911
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
27894
27912
|
"div",
|
|
27895
27913
|
{
|
|
27896
27914
|
"data-slot": "calendar",
|
|
@@ -27902,10 +27920,10 @@ function Calendar2({
|
|
|
27902
27920
|
},
|
|
27903
27921
|
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
27904
27922
|
if (orientation === "left") {
|
|
27905
|
-
return /* @__PURE__ */ (0,
|
|
27923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChevronLeft, { className: cn("size-4", className2), ...props2 });
|
|
27906
27924
|
}
|
|
27907
27925
|
if (orientation === "right") {
|
|
27908
|
-
return /* @__PURE__ */ (0,
|
|
27926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
27909
27927
|
ChevronRight,
|
|
27910
27928
|
{
|
|
27911
27929
|
className: cn("size-4", className2),
|
|
@@ -27913,11 +27931,11 @@ function Calendar2({
|
|
|
27913
27931
|
}
|
|
27914
27932
|
);
|
|
27915
27933
|
}
|
|
27916
|
-
return /* @__PURE__ */ (0,
|
|
27934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChevronDown, { className: cn("size-4", className2), ...props2 });
|
|
27917
27935
|
},
|
|
27918
27936
|
DayButton: CalendarDayButton,
|
|
27919
27937
|
WeekNumber: ({ children, ...props2 }) => {
|
|
27920
|
-
return /* @__PURE__ */ (0,
|
|
27938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("td", { ...props2, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
|
|
27921
27939
|
},
|
|
27922
27940
|
...components
|
|
27923
27941
|
},
|
|
@@ -27936,7 +27954,7 @@ function CalendarDayButton({
|
|
|
27936
27954
|
React3.useEffect(() => {
|
|
27937
27955
|
if (modifiers.focused) ref.current?.focus();
|
|
27938
27956
|
}, [modifiers.focused]);
|
|
27939
|
-
return /* @__PURE__ */ (0,
|
|
27957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
27940
27958
|
Button,
|
|
27941
27959
|
{
|
|
27942
27960
|
ref,
|
|
@@ -27959,16 +27977,16 @@ function CalendarDayButton({
|
|
|
27959
27977
|
|
|
27960
27978
|
// src/components/ui/popover.tsx
|
|
27961
27979
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
27962
|
-
var
|
|
27980
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
27963
27981
|
function Popover({
|
|
27964
27982
|
...props
|
|
27965
27983
|
}) {
|
|
27966
|
-
return /* @__PURE__ */ (0,
|
|
27984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
27967
27985
|
}
|
|
27968
27986
|
function PopoverTrigger({
|
|
27969
27987
|
...props
|
|
27970
27988
|
}) {
|
|
27971
|
-
return /* @__PURE__ */ (0,
|
|
27989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
|
|
27972
27990
|
}
|
|
27973
27991
|
function PopoverContent({
|
|
27974
27992
|
className,
|
|
@@ -27976,7 +27994,7 @@ function PopoverContent({
|
|
|
27976
27994
|
sideOffset = 4,
|
|
27977
27995
|
...props
|
|
27978
27996
|
}) {
|
|
27979
|
-
return /* @__PURE__ */ (0,
|
|
27997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
27980
27998
|
PopoverPrimitive.Content,
|
|
27981
27999
|
{
|
|
27982
28000
|
"data-slot": "popover-content",
|
|
@@ -27992,7 +28010,7 @@ function PopoverContent({
|
|
|
27992
28010
|
}
|
|
27993
28011
|
|
|
27994
28012
|
// src/components/Inputs/DateRange/DateRange.tsx
|
|
27995
|
-
var
|
|
28013
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
27996
28014
|
var DateRange = ({ className, style, ...props }) => {
|
|
27997
28015
|
const isDateRange = (val) => !!val && val.from instanceof Date;
|
|
27998
28016
|
const [date, setDate] = React4.useState(
|
|
@@ -28007,9 +28025,9 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
28007
28025
|
props.onChange?.(value);
|
|
28008
28026
|
}
|
|
28009
28027
|
};
|
|
28010
|
-
return /* @__PURE__ */ (0,
|
|
28011
|
-
/* @__PURE__ */ (0,
|
|
28012
|
-
/* @__PURE__ */ (0,
|
|
28028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
28029
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(Popover, { children: [
|
|
28030
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
28013
28031
|
Button,
|
|
28014
28032
|
{
|
|
28015
28033
|
id: "date",
|
|
@@ -28018,15 +28036,15 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
28018
28036
|
"w-full justify-start text-left font-normal text-[11px] border-[#BDBDBD]",
|
|
28019
28037
|
!date && "text-muted-foreground"
|
|
28020
28038
|
),
|
|
28021
|
-
children: date?.from ? date.to ? /* @__PURE__ */ (0,
|
|
28039
|
+
children: date?.from ? date.to ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
28022
28040
|
(0, import_date_fns.format)(date.from, "LLL dd, y"),
|
|
28023
28041
|
" -",
|
|
28024
28042
|
" ",
|
|
28025
28043
|
(0, import_date_fns.format)(date.to, "LLL dd, y")
|
|
28026
|
-
] }) : (0, import_date_fns.format)(date.from, "LLL dd, y") : /* @__PURE__ */ (0,
|
|
28044
|
+
] }) : (0, import_date_fns.format)(date.from, "LLL dd, y") : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: "Pick a date range" })
|
|
28027
28045
|
}
|
|
28028
28046
|
) }),
|
|
28029
|
-
/* @__PURE__ */ (0,
|
|
28047
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
28030
28048
|
Calendar2,
|
|
28031
28049
|
{
|
|
28032
28050
|
mode: "range",
|
|
@@ -28037,13 +28055,13 @@ var DateRange = ({ className, style, ...props }) => {
|
|
|
28037
28055
|
}
|
|
28038
28056
|
) })
|
|
28039
28057
|
] }) }),
|
|
28040
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
28058
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
28041
28059
|
] });
|
|
28042
28060
|
};
|
|
28043
28061
|
var DateRange_default = DateRange;
|
|
28044
28062
|
|
|
28045
28063
|
// src/components/Inputs/TextInputGroup/TextInputGroup.tsx
|
|
28046
|
-
var
|
|
28064
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
28047
28065
|
var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
28048
28066
|
const placeholder = props.placeholder ?? "Placeholder text";
|
|
28049
28067
|
const isEditable = props.isEditable ?? true;
|
|
@@ -28053,8 +28071,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
28053
28071
|
const handleChange = (e) => {
|
|
28054
28072
|
props.onChange?.(e);
|
|
28055
28073
|
};
|
|
28056
|
-
return /* @__PURE__ */ (0,
|
|
28057
|
-
/* @__PURE__ */ (0,
|
|
28074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
|
28075
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
28058
28076
|
"div",
|
|
28059
28077
|
{
|
|
28060
28078
|
className: cn(
|
|
@@ -28064,8 +28082,8 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
28064
28082
|
props.errorMessage ? "border-red-500" : ""
|
|
28065
28083
|
),
|
|
28066
28084
|
children: [
|
|
28067
|
-
prepend && /* @__PURE__ */ (0,
|
|
28068
|
-
/* @__PURE__ */ (0,
|
|
28085
|
+
prepend && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-l-md", children: prepend }),
|
|
28086
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
28069
28087
|
Input,
|
|
28070
28088
|
{
|
|
28071
28089
|
id: props.name || "prepend-input",
|
|
@@ -28087,11 +28105,11 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
28087
28105
|
readOnly: isReadonly
|
|
28088
28106
|
}
|
|
28089
28107
|
),
|
|
28090
|
-
append && /* @__PURE__ */ (0,
|
|
28108
|
+
append && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "px-3 flex items-center bg-gray-500 text-white h-10 rounded-r-md", children: append })
|
|
28091
28109
|
]
|
|
28092
28110
|
}
|
|
28093
28111
|
),
|
|
28094
|
-
props.errorMessage && /* @__PURE__ */ (0,
|
|
28112
|
+
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
28095
28113
|
] });
|
|
28096
28114
|
};
|
|
28097
28115
|
var TextInputGroup_default = TextInputGroup;
|
|
@@ -28103,14 +28121,14 @@ var import_react7 = require("react");
|
|
|
28103
28121
|
var import_react_table = require("@tanstack/react-table");
|
|
28104
28122
|
|
|
28105
28123
|
// src/components/ui/table.tsx
|
|
28106
|
-
var
|
|
28124
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
28107
28125
|
function Table3({ className, ...props }) {
|
|
28108
|
-
return /* @__PURE__ */ (0,
|
|
28126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
28109
28127
|
"div",
|
|
28110
28128
|
{
|
|
28111
28129
|
"data-slot": "table-container",
|
|
28112
28130
|
className: "relative w-full overflow-x-auto rounded-md border border-gray-200 bg-white",
|
|
28113
|
-
children: /* @__PURE__ */ (0,
|
|
28131
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
28114
28132
|
"table",
|
|
28115
28133
|
{
|
|
28116
28134
|
"data-slot": "table",
|
|
@@ -28122,7 +28140,7 @@ function Table3({ className, ...props }) {
|
|
|
28122
28140
|
);
|
|
28123
28141
|
}
|
|
28124
28142
|
function TableHeader({ className, ...props }) {
|
|
28125
|
-
return /* @__PURE__ */ (0,
|
|
28143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
28126
28144
|
"thead",
|
|
28127
28145
|
{
|
|
28128
28146
|
"data-slot": "table-header",
|
|
@@ -28135,7 +28153,7 @@ function TableHeader({ className, ...props }) {
|
|
|
28135
28153
|
);
|
|
28136
28154
|
}
|
|
28137
28155
|
function TableBody({ className, ...props }) {
|
|
28138
|
-
return /* @__PURE__ */ (0,
|
|
28156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
28139
28157
|
"tbody",
|
|
28140
28158
|
{
|
|
28141
28159
|
"data-slot": "table-body",
|
|
@@ -28148,7 +28166,7 @@ function TableBody({ className, ...props }) {
|
|
|
28148
28166
|
);
|
|
28149
28167
|
}
|
|
28150
28168
|
function TableRow({ className, ...props }) {
|
|
28151
|
-
return /* @__PURE__ */ (0,
|
|
28169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
28152
28170
|
"tr",
|
|
28153
28171
|
{
|
|
28154
28172
|
"data-slot": "table-row",
|
|
@@ -28161,7 +28179,7 @@ function TableRow({ className, ...props }) {
|
|
|
28161
28179
|
);
|
|
28162
28180
|
}
|
|
28163
28181
|
function TableHead({ className, ...props }) {
|
|
28164
|
-
return /* @__PURE__ */ (0,
|
|
28182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
28165
28183
|
"th",
|
|
28166
28184
|
{
|
|
28167
28185
|
"data-slot": "table-head",
|
|
@@ -28174,7 +28192,7 @@ function TableHead({ className, ...props }) {
|
|
|
28174
28192
|
);
|
|
28175
28193
|
}
|
|
28176
28194
|
function TableCell({ className, ...props }) {
|
|
28177
|
-
return /* @__PURE__ */ (0,
|
|
28195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
28178
28196
|
"td",
|
|
28179
28197
|
{
|
|
28180
28198
|
"data-slot": "table-cell",
|
|
@@ -28188,7 +28206,7 @@ function TableCell({ className, ...props }) {
|
|
|
28188
28206
|
}
|
|
28189
28207
|
|
|
28190
28208
|
// src/components/ui/data-table.tsx
|
|
28191
|
-
var
|
|
28209
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
28192
28210
|
function DataTable({
|
|
28193
28211
|
columns,
|
|
28194
28212
|
rowActions,
|
|
@@ -28213,14 +28231,14 @@ function DataTable({
|
|
|
28213
28231
|
onCellClick(rowData, columnId);
|
|
28214
28232
|
}
|
|
28215
28233
|
};
|
|
28216
|
-
return /* @__PURE__ */ (0,
|
|
28217
|
-
/* @__PURE__ */ (0,
|
|
28218
|
-
return /* @__PURE__ */ (0,
|
|
28234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "overflow-hidden rounded-md border w-full", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Table3, { children: [
|
|
28235
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableHeader, { children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableRow, { children: headerGroup.headers.map((header) => {
|
|
28236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableHead, { children: header.isPlaceholder ? null : (0, import_react_table.flexRender)(
|
|
28219
28237
|
header.column.columnDef.header,
|
|
28220
28238
|
header.getContext()
|
|
28221
28239
|
) }, header.id);
|
|
28222
28240
|
}) }, headerGroup.id)) }),
|
|
28223
|
-
/* @__PURE__ */ (0,
|
|
28241
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableBody, { children: loading ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "Loading..." }) }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
28224
28242
|
TableRow,
|
|
28225
28243
|
{
|
|
28226
28244
|
"data-state": row.getIsSelected() && "selected",
|
|
@@ -28230,7 +28248,7 @@ function DataTable({
|
|
|
28230
28248
|
const isCellClickable = cellClickEnabled(row.original, cell.column.id);
|
|
28231
28249
|
const dynamicClass = cell.column.columnDef.meta?.cellClass || "";
|
|
28232
28250
|
const dynamicStyle = cell.column.columnDef.meta?.cellStyle || {};
|
|
28233
|
-
return /* @__PURE__ */ (0,
|
|
28251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
28234
28252
|
TableCell,
|
|
28235
28253
|
{
|
|
28236
28254
|
className: `${dynamicClass} ${isCellClickable ? "underline cursor-pointer" : ""}`,
|
|
@@ -28245,18 +28263,18 @@ function DataTable({
|
|
|
28245
28263
|
cell.id
|
|
28246
28264
|
);
|
|
28247
28265
|
}),
|
|
28248
|
-
rowActions.length > 0 && /* @__PURE__ */ (0,
|
|
28266
|
+
rowActions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime45.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_runtime45.jsx)("p", { className: "text-[#383838] text-[12px] cursor-pointer font-[400]", children: action.header }, index)) })
|
|
28249
28267
|
]
|
|
28250
28268
|
},
|
|
28251
28269
|
row.id
|
|
28252
|
-
)) : /* @__PURE__ */ (0,
|
|
28270
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(TableCell, { colSpan: columns.length, className: "h-24 text-center", children: "No results." }) }) }) })
|
|
28253
28271
|
] }) });
|
|
28254
28272
|
}
|
|
28255
28273
|
|
|
28256
28274
|
// src/components/ui/pagination.tsx
|
|
28257
|
-
var
|
|
28275
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
28258
28276
|
function Pagination({ className, ...props }) {
|
|
28259
|
-
return /* @__PURE__ */ (0,
|
|
28277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
28260
28278
|
"nav",
|
|
28261
28279
|
{
|
|
28262
28280
|
role: "navigation",
|
|
@@ -28271,7 +28289,7 @@ function PaginationContent({
|
|
|
28271
28289
|
className,
|
|
28272
28290
|
...props
|
|
28273
28291
|
}) {
|
|
28274
|
-
return /* @__PURE__ */ (0,
|
|
28292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
28275
28293
|
"ul",
|
|
28276
28294
|
{
|
|
28277
28295
|
"data-slot": "pagination-content",
|
|
@@ -28281,7 +28299,7 @@ function PaginationContent({
|
|
|
28281
28299
|
);
|
|
28282
28300
|
}
|
|
28283
28301
|
function PaginationItem({ ...props }) {
|
|
28284
|
-
return /* @__PURE__ */ (0,
|
|
28302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("li", { "data-slot": "pagination-item", ...props });
|
|
28285
28303
|
}
|
|
28286
28304
|
function PaginationLink({
|
|
28287
28305
|
className,
|
|
@@ -28289,7 +28307,7 @@ function PaginationLink({
|
|
|
28289
28307
|
size = "icon",
|
|
28290
28308
|
...props
|
|
28291
28309
|
}) {
|
|
28292
|
-
return /* @__PURE__ */ (0,
|
|
28310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
28293
28311
|
"a",
|
|
28294
28312
|
{
|
|
28295
28313
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -28310,7 +28328,7 @@ function PaginationPrevious({
|
|
|
28310
28328
|
className,
|
|
28311
28329
|
...props
|
|
28312
28330
|
}) {
|
|
28313
|
-
return /* @__PURE__ */ (0,
|
|
28331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
28314
28332
|
PaginationLink,
|
|
28315
28333
|
{
|
|
28316
28334
|
"aria-label": "Go to previous page",
|
|
@@ -28318,8 +28336,8 @@ function PaginationPrevious({
|
|
|
28318
28336
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
28319
28337
|
...props,
|
|
28320
28338
|
children: [
|
|
28321
|
-
/* @__PURE__ */ (0,
|
|
28322
|
-
/* @__PURE__ */ (0,
|
|
28339
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChevronLeft, {}),
|
|
28340
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "hidden sm:block", children: "Previous" })
|
|
28323
28341
|
]
|
|
28324
28342
|
}
|
|
28325
28343
|
);
|
|
@@ -28328,7 +28346,7 @@ function PaginationNext({
|
|
|
28328
28346
|
className,
|
|
28329
28347
|
...props
|
|
28330
28348
|
}) {
|
|
28331
|
-
return /* @__PURE__ */ (0,
|
|
28349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
28332
28350
|
PaginationLink,
|
|
28333
28351
|
{
|
|
28334
28352
|
"aria-label": "Go to next page",
|
|
@@ -28336,8 +28354,8 @@ function PaginationNext({
|
|
|
28336
28354
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
28337
28355
|
...props,
|
|
28338
28356
|
children: [
|
|
28339
|
-
/* @__PURE__ */ (0,
|
|
28340
|
-
/* @__PURE__ */ (0,
|
|
28357
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "hidden sm:block", children: "Next" }),
|
|
28358
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChevronRight, {})
|
|
28341
28359
|
]
|
|
28342
28360
|
}
|
|
28343
28361
|
);
|
|
@@ -28346,7 +28364,7 @@ function PaginationEllipsis({
|
|
|
28346
28364
|
className,
|
|
28347
28365
|
...props
|
|
28348
28366
|
}) {
|
|
28349
|
-
return /* @__PURE__ */ (0,
|
|
28367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
28350
28368
|
"span",
|
|
28351
28369
|
{
|
|
28352
28370
|
"aria-hidden": true,
|
|
@@ -28354,15 +28372,15 @@ function PaginationEllipsis({
|
|
|
28354
28372
|
className: cn("flex size-9 items-center justify-center", className),
|
|
28355
28373
|
...props,
|
|
28356
28374
|
children: [
|
|
28357
|
-
/* @__PURE__ */ (0,
|
|
28358
|
-
/* @__PURE__ */ (0,
|
|
28375
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Ellipsis, { className: "size-4" }),
|
|
28376
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
28359
28377
|
]
|
|
28360
28378
|
}
|
|
28361
28379
|
);
|
|
28362
28380
|
}
|
|
28363
28381
|
|
|
28364
28382
|
// src/components/DataDisplay/Pagination/Pagination.tsx
|
|
28365
|
-
var
|
|
28383
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
28366
28384
|
var CustomPagination = ({
|
|
28367
28385
|
totalPages,
|
|
28368
28386
|
currentPage,
|
|
@@ -28408,10 +28426,10 @@ var CustomPagination = ({
|
|
|
28408
28426
|
}
|
|
28409
28427
|
};
|
|
28410
28428
|
const pageNumbers = getPageNumbers();
|
|
28411
|
-
return /* @__PURE__ */ (0,
|
|
28412
|
-
/* @__PURE__ */ (0,
|
|
28413
|
-
/* @__PURE__ */ (0,
|
|
28414
|
-
/* @__PURE__ */ (0,
|
|
28429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-row gap-1 w-full items-center justify-between", children: [
|
|
28430
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
28431
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "text-sm text-muted-foreground whitespace-nowrap", children: "Items per page:" }),
|
|
28432
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
28415
28433
|
Select,
|
|
28416
28434
|
{
|
|
28417
28435
|
defaultValue: String(perPage),
|
|
@@ -28419,26 +28437,26 @@ var CustomPagination = ({
|
|
|
28419
28437
|
onPageChange({ page: 1, itemsPerPage: Number(value) });
|
|
28420
28438
|
},
|
|
28421
28439
|
children: [
|
|
28422
|
-
/* @__PURE__ */ (0,
|
|
28423
|
-
/* @__PURE__ */ (0,
|
|
28424
|
-
/* @__PURE__ */ (0,
|
|
28425
|
-
/* @__PURE__ */ (0,
|
|
28426
|
-
/* @__PURE__ */ (0,
|
|
28427
|
-
/* @__PURE__ */ (0,
|
|
28440
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectTrigger, { className: "w-[100px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectValue, { placeholder: "Select" }) }),
|
|
28441
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(SelectContent, { children: [
|
|
28442
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "5", children: "5" }),
|
|
28443
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "10", children: "10" }),
|
|
28444
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "20", children: "20" }),
|
|
28445
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectItem, { value: "50", children: "50" })
|
|
28428
28446
|
] })
|
|
28429
28447
|
]
|
|
28430
28448
|
}
|
|
28431
28449
|
)
|
|
28432
28450
|
] }),
|
|
28433
|
-
/* @__PURE__ */ (0,
|
|
28434
|
-
/* @__PURE__ */ (0,
|
|
28451
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Pagination, { className: "justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(PaginationContent, { children: [
|
|
28452
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
28435
28453
|
PaginationPrevious,
|
|
28436
28454
|
{
|
|
28437
28455
|
onClick: () => handlePageChange(currentPage - 1),
|
|
28438
28456
|
className: currentPage === 1 ? "pointer-events-none opacity-50" : "cursor-pointer"
|
|
28439
28457
|
}
|
|
28440
28458
|
) }),
|
|
28441
|
-
pageNumbers.map((pageNumber, index) => /* @__PURE__ */ (0,
|
|
28459
|
+
pageNumbers.map((pageNumber, index) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationItem, { children: pageNumber === "..." ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationEllipsis, {}) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
28442
28460
|
PaginationLink,
|
|
28443
28461
|
{
|
|
28444
28462
|
onClick: () => handlePageChange(pageNumber),
|
|
@@ -28447,7 +28465,7 @@ var CustomPagination = ({
|
|
|
28447
28465
|
children: pageNumber
|
|
28448
28466
|
}
|
|
28449
28467
|
) }, index)),
|
|
28450
|
-
/* @__PURE__ */ (0,
|
|
28468
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
28451
28469
|
PaginationNext,
|
|
28452
28470
|
{
|
|
28453
28471
|
onClick: () => handlePageChange(currentPage + 1),
|
|
@@ -28460,7 +28478,7 @@ var CustomPagination = ({
|
|
|
28460
28478
|
var Pagination_default = CustomPagination;
|
|
28461
28479
|
|
|
28462
28480
|
// src/components/DataDisplay/Table/Table.tsx
|
|
28463
|
-
var
|
|
28481
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
28464
28482
|
var Table4 = ({
|
|
28465
28483
|
columns,
|
|
28466
28484
|
data,
|
|
@@ -28506,8 +28524,8 @@ var Table4 = ({
|
|
|
28506
28524
|
if (!selectedColumn) return false;
|
|
28507
28525
|
return selectedColumn.isClickable ?? false;
|
|
28508
28526
|
};
|
|
28509
|
-
return /* @__PURE__ */ (0,
|
|
28510
|
-
/* @__PURE__ */ (0,
|
|
28527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: `${className || ""} space-y-3`, style, children: [
|
|
28528
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
28511
28529
|
DataTable,
|
|
28512
28530
|
{
|
|
28513
28531
|
...props,
|
|
@@ -28518,7 +28536,7 @@ var Table4 = ({
|
|
|
28518
28536
|
cellClickEnabled: isCellClickEnabled
|
|
28519
28537
|
}
|
|
28520
28538
|
),
|
|
28521
|
-
enablePagination && /* @__PURE__ */ (0,
|
|
28539
|
+
enablePagination && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
28522
28540
|
Pagination_default,
|
|
28523
28541
|
{
|
|
28524
28542
|
perPage: itemsPerPage,
|
|
@@ -28533,7 +28551,7 @@ var Table_default = Table4;
|
|
|
28533
28551
|
|
|
28534
28552
|
// src/components/Navigation/Tabs/Tabs.tsx
|
|
28535
28553
|
var import_link5 = __toESM(require("next/link"));
|
|
28536
|
-
var
|
|
28554
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
28537
28555
|
var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
28538
28556
|
const rawTabs = Array.isArray(tabs) ? tabs : [];
|
|
28539
28557
|
const baseClasses = "text-[12px] text-foreground p-2 text-center rounded-md transition-colors";
|
|
@@ -28546,23 +28564,23 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
|
28546
28564
|
const renderDesktopTab = (tab, index) => {
|
|
28547
28565
|
const finalClasses = [baseClasses, isActive(tab.url) ? activeClasses : hoverClasses, tab.className || ""].join(" ");
|
|
28548
28566
|
if (Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown) {
|
|
28549
|
-
return /* @__PURE__ */ (0,
|
|
28550
|
-
/* @__PURE__ */ (0,
|
|
28567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenu, { children: [
|
|
28568
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenuTrigger, { className: `${finalClasses} inline-flex items-center gap-1`, children: [
|
|
28551
28569
|
tab.header,
|
|
28552
|
-
/* @__PURE__ */ (0,
|
|
28570
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ChevronDown, { className: "h-4 w-4 opacity-80" })
|
|
28553
28571
|
] }),
|
|
28554
|
-
/* @__PURE__ */ (0,
|
|
28572
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
28555
28573
|
DropdownMenuContent,
|
|
28556
28574
|
{
|
|
28557
28575
|
align: "start",
|
|
28558
28576
|
sideOffset: 6,
|
|
28559
28577
|
className: "z-50 min-w-[160px] rounded-md border border-gray-200 bg-white p-1 shadow-lg",
|
|
28560
|
-
children: tab.children.map((item) => /* @__PURE__ */ (0,
|
|
28578
|
+
children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
28561
28579
|
DropdownMenuItem,
|
|
28562
28580
|
{
|
|
28563
28581
|
asChild: true,
|
|
28564
28582
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100 focus:bg-gray-100",
|
|
28565
|
-
children: /* @__PURE__ */ (0,
|
|
28583
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_link5.default, { href: item.url || "#", children: item.header })
|
|
28566
28584
|
},
|
|
28567
28585
|
item.id
|
|
28568
28586
|
))
|
|
@@ -28570,14 +28588,14 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
|
28570
28588
|
)
|
|
28571
28589
|
] }, index);
|
|
28572
28590
|
}
|
|
28573
|
-
return tab.url ? /* @__PURE__ */ (0,
|
|
28591
|
+
return tab.url ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_link5.default, { href: tab.url, className: finalClasses, style: tab.style, children: tab.header }, index) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: finalClasses, style: tab.style, role: "button", tabIndex: 0, children: tab.header }, index);
|
|
28574
28592
|
};
|
|
28575
|
-
const renderMobileMenu = () => /* @__PURE__ */ (0,
|
|
28576
|
-
/* @__PURE__ */ (0,
|
|
28577
|
-
/* @__PURE__ */ (0,
|
|
28593
|
+
const renderMobileMenu = () => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenu, { children: [
|
|
28594
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenuTrigger, { className: "flex items-center gap-2 px-3 py-2 rounded-md bg-white/10 text-white text-sm", children: [
|
|
28595
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Menu, { className: "h-4 w-4" }),
|
|
28578
28596
|
"Menu"
|
|
28579
28597
|
] }),
|
|
28580
|
-
/* @__PURE__ */ (0,
|
|
28598
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
28581
28599
|
DropdownMenuContent,
|
|
28582
28600
|
{
|
|
28583
28601
|
align: "start",
|
|
@@ -28586,25 +28604,25 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
|
28586
28604
|
children: rawTabs.map((tab, i) => {
|
|
28587
28605
|
const hasChildren = Array.isArray(tab.children) && tab.children.length > 0 && tab.isDropDown;
|
|
28588
28606
|
if (hasChildren) {
|
|
28589
|
-
return /* @__PURE__ */ (0,
|
|
28590
|
-
/* @__PURE__ */ (0,
|
|
28591
|
-
/* @__PURE__ */ (0,
|
|
28607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(DropdownMenuSub, { children: [
|
|
28608
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DropdownMenuSubTrigger, { className: "flex items-center justify-between cursor-pointer rounded-sm px-3 py-2 text-[13px] text-foreground hover:text-foreground", children: tab.header }),
|
|
28609
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DropdownMenuSubContent, { className: "bg-white border shadow-lg rounded-md p-1", children: tab.children.map((item) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
28592
28610
|
DropdownMenuItem,
|
|
28593
28611
|
{
|
|
28594
28612
|
asChild: true,
|
|
28595
28613
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[12px] text-gray-800 hover:bg-gray-100",
|
|
28596
|
-
children: /* @__PURE__ */ (0,
|
|
28614
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_link5.default, { href: item.url || "#", children: item.header })
|
|
28597
28615
|
},
|
|
28598
28616
|
item.id
|
|
28599
28617
|
)) })
|
|
28600
28618
|
] }, i);
|
|
28601
28619
|
}
|
|
28602
|
-
return /* @__PURE__ */ (0,
|
|
28620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
28603
28621
|
DropdownMenuItem,
|
|
28604
28622
|
{
|
|
28605
28623
|
asChild: true,
|
|
28606
28624
|
className: "cursor-pointer rounded-sm px-3 py-2 text-[13px] text-gray-800 hover:bg-gray-100",
|
|
28607
|
-
children: /* @__PURE__ */ (0,
|
|
28625
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_link5.default, { href: tab.url || "#", children: tab.header })
|
|
28608
28626
|
},
|
|
28609
28627
|
i
|
|
28610
28628
|
);
|
|
@@ -28614,57 +28632,56 @@ var Tabs = ({ className, style, tabs, verticalMenu, pathname, canvasMode }) => {
|
|
|
28614
28632
|
] });
|
|
28615
28633
|
const forceMobile = canvasMode === "mobile" || canvasMode === "tablet";
|
|
28616
28634
|
const forceDesktop = canvasMode === "desktop";
|
|
28617
|
-
return /* @__PURE__ */ (0,
|
|
28618
|
-
forceDesktop && /* @__PURE__ */ (0,
|
|
28619
|
-
forceMobile && /* @__PURE__ */ (0,
|
|
28620
|
-
/* @__PURE__ */ (0,
|
|
28635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className, style, children: [
|
|
28636
|
+
forceDesktop && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "hidden md:flex", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: `flex gap-2 ${verticalMenu ? "flex-col items-start" : "flex-row"}`, children: rawTabs.map(renderDesktopTab) }) }),
|
|
28637
|
+
forceMobile && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: renderMobileMenu() }),
|
|
28638
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "md:hidden", children: renderMobileMenu() })
|
|
28621
28639
|
] });
|
|
28622
28640
|
};
|
|
28623
28641
|
var Tabs_default = Tabs;
|
|
28624
28642
|
|
|
28625
28643
|
// src/components/Navigation/Stages/Stages.tsx
|
|
28626
28644
|
var import_react8 = __toESM(require("react"));
|
|
28627
|
-
var
|
|
28645
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
28628
28646
|
var StagesComponent = ({ stages, isShowBtn, buttonText, className, style }) => {
|
|
28629
|
-
return /* @__PURE__ */ (0,
|
|
28630
|
-
/* @__PURE__ */ (0,
|
|
28631
|
-
/* @__PURE__ */ (0,
|
|
28632
|
-
/* @__PURE__ */ (0,
|
|
28647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center justify-between bg-red p-2 rounded-lg border border-gray-200 w-full", children: [
|
|
28648
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("button", { className: "p-2 hover:bg-gray-100 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { className: "w-4 h-4 text-gray-600", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }) }) }),
|
|
28649
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center flex-1 px-2 flex-wrap gap-2", children: stages?.length > 0 && stages?.map((stage, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react8.default.Fragment, { children: [
|
|
28650
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
28633
28651
|
"button",
|
|
28634
28652
|
{
|
|
28635
|
-
className: `
|
|
28636
|
-
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"}`,
|
|
28653
|
+
className: `min-w-[120px] px-4 py-2 rounded-full text-sm font-medium transition-colors duration-200 whitespace-nowrap ${stage.isActive ? "bg-[#034486] text-white shadow-md" : "bg-white text-gray-700 hover:bg-gray-100 border border-gray-200"}`,
|
|
28637
28654
|
children: stage.header
|
|
28638
28655
|
}
|
|
28639
28656
|
),
|
|
28640
|
-
index < stages.length - 1 && /* @__PURE__ */ (0,
|
|
28657
|
+
index < stages.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex-shrink-0 w-3 h-px bg-gray-300" })
|
|
28641
28658
|
] }, stage.id)) }),
|
|
28642
|
-
isShowBtn && /* @__PURE__ */ (0,
|
|
28659
|
+
isShowBtn && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.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 }) })
|
|
28643
28660
|
] }) });
|
|
28644
28661
|
};
|
|
28645
28662
|
var Stages_default = StagesComponent;
|
|
28646
28663
|
|
|
28647
28664
|
// src/components/Navigation/Spacer/Spacer.tsx
|
|
28648
|
-
var
|
|
28665
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
28649
28666
|
var Spacer = ({ className, style }) => {
|
|
28650
|
-
return /* @__PURE__ */ (0,
|
|
28667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: `${className}`, style });
|
|
28651
28668
|
};
|
|
28652
28669
|
var Spacer_default = Spacer;
|
|
28653
28670
|
|
|
28654
28671
|
// src/components/Navigation/Profile/Profile.tsx
|
|
28655
|
-
var
|
|
28672
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
28656
28673
|
|
|
28657
28674
|
// src/components/Navigation/Notification/Notification.tsx
|
|
28658
|
-
var
|
|
28675
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
28659
28676
|
|
|
28660
28677
|
// src/components/Navigation/Logo/Logo.tsx
|
|
28661
|
-
var
|
|
28678
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
28662
28679
|
|
|
28663
28680
|
// src/components/ui/avatar.tsx
|
|
28664
28681
|
var React6 = __toESM(require("react"));
|
|
28665
28682
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"));
|
|
28666
|
-
var
|
|
28667
|
-
var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28683
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
28684
|
+
var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
28668
28685
|
AvatarPrimitive.Root,
|
|
28669
28686
|
{
|
|
28670
28687
|
ref,
|
|
@@ -28676,7 +28693,7 @@ var Avatar = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
28676
28693
|
}
|
|
28677
28694
|
));
|
|
28678
28695
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
28679
|
-
var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28696
|
+
var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
28680
28697
|
AvatarPrimitive.Image,
|
|
28681
28698
|
{
|
|
28682
28699
|
ref,
|
|
@@ -28685,7 +28702,7 @@ var AvatarImage = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
28685
28702
|
}
|
|
28686
28703
|
));
|
|
28687
28704
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
28688
|
-
var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
28705
|
+
var AvatarFallback = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
28689
28706
|
AvatarPrimitive.Fallback,
|
|
28690
28707
|
{
|
|
28691
28708
|
ref,
|
|
@@ -28701,7 +28718,7 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
28701
28718
|
// src/components/Navigation/Navbar/Navbar.tsx
|
|
28702
28719
|
var import_link6 = __toESM(require("next/link"));
|
|
28703
28720
|
var import_image3 = __toESM(require("next/image"));
|
|
28704
|
-
var
|
|
28721
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
28705
28722
|
function Navbar({
|
|
28706
28723
|
style,
|
|
28707
28724
|
badgeType,
|
|
@@ -28716,9 +28733,9 @@ function Navbar({
|
|
|
28716
28733
|
userName = "Guest User"
|
|
28717
28734
|
}) {
|
|
28718
28735
|
const isMobileView = canvasMode === "mobile" || canvasMode === "tablet";
|
|
28719
|
-
return /* @__PURE__ */ (0,
|
|
28720
|
-
/* @__PURE__ */ (0,
|
|
28721
|
-
!isMobileView && /* @__PURE__ */ (0,
|
|
28736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("nav", { className: "w-full border-b bg-white shadow-sm", style, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "mx-auto flex max-w-7xl items-center justify-between px-4 py-2", children: [
|
|
28737
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_link6.default, { href: "/", className: "flex items-center space-x-2", children: imageUrl ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_image3.default, { src: imageUrl, alt: altText, width: 200, height: 200 }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "font-semibold text-blue-700", children: "Logo" }) }),
|
|
28738
|
+
!isMobileView && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex items-center space-x-6 sm:hidden md:flex", children: list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
28722
28739
|
import_link6.default,
|
|
28723
28740
|
{
|
|
28724
28741
|
href: item.url || "#",
|
|
@@ -28727,54 +28744,54 @@ function Navbar({
|
|
|
28727
28744
|
},
|
|
28728
28745
|
item.id
|
|
28729
28746
|
)) }),
|
|
28730
|
-
/* @__PURE__ */ (0,
|
|
28731
|
-
!isMobileView ? /* @__PURE__ */ (0,
|
|
28732
|
-
/* @__PURE__ */ (0,
|
|
28733
|
-
/* @__PURE__ */ (0,
|
|
28734
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
28747
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center space-x-3", children: [
|
|
28748
|
+
!isMobileView ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex-1 px-6", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "relative w-full max-w-md border border-gray-300 rounded-md", children: [
|
|
28749
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400" }),
|
|
28750
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Input, { placeholder: "Search", className: "pl-9 text-gray-400" })
|
|
28751
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
28735
28752
|
Button,
|
|
28736
28753
|
{
|
|
28737
28754
|
variant: "ghost",
|
|
28738
28755
|
size: "icon",
|
|
28739
28756
|
className: "border border-gray-400",
|
|
28740
|
-
children: /* @__PURE__ */ (0,
|
|
28757
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Search, { className: "h-5 w-5 text-gray-400" })
|
|
28741
28758
|
}
|
|
28742
28759
|
),
|
|
28743
|
-
/* @__PURE__ */ (0,
|
|
28744
|
-
/* @__PURE__ */ (0,
|
|
28745
|
-
badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && badgeCount > 0 ? /* @__PURE__ */ (0,
|
|
28760
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "relative bg-[#E9E9E9] rounded-md", children: [
|
|
28761
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Bell, { className: "h-5 w-5 text-[#1C1B1F]" }) }),
|
|
28762
|
+
badgeType === "number" && !(hideBadgeWhenZero && badgeCount === 0) && Number(badgeCount) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full bg-red-500 text-[10px] text-white leading-8", children: badgeCount }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "absolute -top-1 -right-1 flex h-2 w-2 items-center justify-center rounded-full bg-red-500" })
|
|
28746
28763
|
] }),
|
|
28747
|
-
/* @__PURE__ */ (0,
|
|
28748
|
-
/* @__PURE__ */ (0,
|
|
28749
|
-
!isMobileView && showName && /* @__PURE__ */ (0,
|
|
28750
|
-
!isMobileView ? /* @__PURE__ */ (0,
|
|
28751
|
-
/* @__PURE__ */ (0,
|
|
28764
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(DropdownMenu, { children: [
|
|
28765
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
28766
|
+
!isMobileView && showName && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h4", { className: "text-[#000000] text-[13px] font-[500] mb-0", children: userName }),
|
|
28767
|
+
!isMobileView ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
28768
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Avatar, { className: "cursor-pointer h-8 w-8 text-gray-900", children: profileType === "avatar" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
28752
28769
|
AvatarImage,
|
|
28753
28770
|
{
|
|
28754
28771
|
src: "/images/appbuilder/toolset/profile.svg",
|
|
28755
28772
|
alt: "Profile"
|
|
28756
28773
|
}
|
|
28757
|
-
) : /* @__PURE__ */ (0,
|
|
28758
|
-
/* @__PURE__ */ (0,
|
|
28774
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-8 h-8 bg-[#12715b] rounded-full text-[#fff] text-center text-[11px] flex items-center justify-center", children: userName && getInitials(userName) }) }),
|
|
28775
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
28759
28776
|
Button,
|
|
28760
28777
|
{
|
|
28761
28778
|
variant: "ghost",
|
|
28762
28779
|
size: "icon",
|
|
28763
28780
|
className: "text-gray-900 md:hidden",
|
|
28764
|
-
children: /* @__PURE__ */ (0,
|
|
28781
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Menu, { className: "h-6 w-6" })
|
|
28765
28782
|
}
|
|
28766
28783
|
)
|
|
28767
|
-
] }) : /* @__PURE__ */ (0,
|
|
28784
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
28768
28785
|
Button,
|
|
28769
28786
|
{
|
|
28770
28787
|
variant: "ghost",
|
|
28771
28788
|
size: "icon",
|
|
28772
28789
|
className: "text-gray-900",
|
|
28773
|
-
children: /* @__PURE__ */ (0,
|
|
28790
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Menu, { className: "h-6 w-6" })
|
|
28774
28791
|
}
|
|
28775
28792
|
)
|
|
28776
28793
|
] }) }),
|
|
28777
|
-
/* @__PURE__ */ (0,
|
|
28794
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DropdownMenuContent, { align: "end", className: "bg-white", children: list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DropdownMenuItem, { className: "text-black", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_link6.default, { href: item.url || "#", children: item.header }) }, item.id)) }) })
|
|
28778
28795
|
] })
|
|
28779
28796
|
] })
|
|
28780
28797
|
] }) });
|
|
@@ -28782,28 +28799,28 @@ function Navbar({
|
|
|
28782
28799
|
|
|
28783
28800
|
// src/components/Chart/BarChart.tsx
|
|
28784
28801
|
var import_recharts = require("recharts");
|
|
28785
|
-
var
|
|
28802
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
28786
28803
|
var ChartComponent = ({ className, style, ...props }) => {
|
|
28787
28804
|
const data = Array.isArray(props?.data) ? props.data : [];
|
|
28788
28805
|
const chartType = props.chartType || "bar";
|
|
28789
28806
|
const legendsPosition = props.legendsPosition === "middle" || props.legendsPosition === "bottom" ? props.legendsPosition : "top";
|
|
28790
|
-
return /* @__PURE__ */ (0,
|
|
28791
|
-
/* @__PURE__ */ (0,
|
|
28792
|
-
/* @__PURE__ */ (0,
|
|
28793
|
-
/* @__PURE__ */ (0,
|
|
28794
|
-
/* @__PURE__ */ (0,
|
|
28795
|
-
/* @__PURE__ */ (0,
|
|
28796
|
-
/* @__PURE__ */ (0,
|
|
28797
|
-
] }) : /* @__PURE__ */ (0,
|
|
28798
|
-
/* @__PURE__ */ (0,
|
|
28799
|
-
/* @__PURE__ */ (0,
|
|
28800
|
-
/* @__PURE__ */ (0,
|
|
28807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: `${className} h-[400px]`, style, children: data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: chartType === "bar" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_recharts.BarChart, { data, children: [
|
|
28808
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.CartesianGrid, { strokeDasharray: "3 3" }),
|
|
28809
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.XAxis, { dataKey: "name" }),
|
|
28810
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.YAxis, {}),
|
|
28811
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Tooltip, {}),
|
|
28812
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Legend, { verticalAlign: legendsPosition, align: "center" }),
|
|
28813
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Bar, { dataKey: "value", fill: "#00695C" })
|
|
28814
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_recharts.AreaChart, { data, children: [
|
|
28815
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("linearGradient", { id: "colorCount", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
28816
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("stop", { offset: "5%", stopColor: "#00695C", stopOpacity: 0.8 }),
|
|
28817
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("stop", { offset: "95%", stopColor: "#00695C", stopOpacity: 0 })
|
|
28801
28818
|
] }) }),
|
|
28802
|
-
/* @__PURE__ */ (0,
|
|
28803
|
-
/* @__PURE__ */ (0,
|
|
28804
|
-
/* @__PURE__ */ (0,
|
|
28805
|
-
/* @__PURE__ */ (0,
|
|
28806
|
-
/* @__PURE__ */ (0,
|
|
28819
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.CartesianGrid, { strokeDasharray: "3 3" }),
|
|
28820
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.XAxis, { dataKey: "name" }),
|
|
28821
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.YAxis, {}),
|
|
28822
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_recharts.Tooltip, {}),
|
|
28823
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
28807
28824
|
import_recharts.Area,
|
|
28808
28825
|
{
|
|
28809
28826
|
type: "monotone",
|
|
@@ -28819,7 +28836,7 @@ var BarChart_default = ChartComponent;
|
|
|
28819
28836
|
|
|
28820
28837
|
// src/components/Chart/PieChart.tsx
|
|
28821
28838
|
var import_recharts2 = require("recharts");
|
|
28822
|
-
var
|
|
28839
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
28823
28840
|
var DonutChart = ({ className, style, ...props }) => {
|
|
28824
28841
|
const data = Array.isArray(props?.data) ? props.data : [];
|
|
28825
28842
|
const total = data.reduce((sum, d) => sum + d.value, 0);
|
|
@@ -28830,7 +28847,7 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28830
28847
|
const renderLabel = ({ value, x, y }) => {
|
|
28831
28848
|
if (value == null) return null;
|
|
28832
28849
|
const percentage = (Number(value) / total * 100).toFixed(0);
|
|
28833
|
-
return /* @__PURE__ */ (0,
|
|
28850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
28834
28851
|
"text",
|
|
28835
28852
|
{
|
|
28836
28853
|
x,
|
|
@@ -28852,33 +28869,33 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28852
28869
|
const wrapperClass = canvasMode ? forceDesktop ? "flex-row" : "flex-col" : "flex-col md:flex-row";
|
|
28853
28870
|
const renderLegends = () => {
|
|
28854
28871
|
if (!showLegends) return null;
|
|
28855
|
-
return /* @__PURE__ */ (0,
|
|
28872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: data.map((d) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
28856
28873
|
"div",
|
|
28857
28874
|
{
|
|
28858
28875
|
className: "flex items-center space-x-2 rounded-md border border-gray-200 px-3 py-2 w-[48%] md:w-auto",
|
|
28859
28876
|
children: [
|
|
28860
|
-
/* @__PURE__ */ (0,
|
|
28877
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
28861
28878
|
"span",
|
|
28862
28879
|
{
|
|
28863
28880
|
className: "inline-block w-[16px] h-[16px] rounded",
|
|
28864
28881
|
style: { backgroundColor: d.color }
|
|
28865
28882
|
}
|
|
28866
28883
|
),
|
|
28867
|
-
/* @__PURE__ */ (0,
|
|
28884
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-[#000000] text-[12px] md:text-[13px] font-[500]", children: d.name })
|
|
28868
28885
|
]
|
|
28869
28886
|
},
|
|
28870
28887
|
d.name
|
|
28871
28888
|
)) });
|
|
28872
28889
|
};
|
|
28873
|
-
return /* @__PURE__ */ (0,
|
|
28890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
28874
28891
|
"div",
|
|
28875
28892
|
{
|
|
28876
28893
|
className: `relative flex items-center ${wrapperClass} ${className}`,
|
|
28877
28894
|
style,
|
|
28878
28895
|
children: [
|
|
28879
|
-
/* @__PURE__ */ (0,
|
|
28880
|
-
data.length > 0 && /* @__PURE__ */ (0,
|
|
28881
|
-
/* @__PURE__ */ (0,
|
|
28896
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "relative w-full md:w-[70%] h-[300px] md:h-[400px] flex items-center justify-center", children: [
|
|
28897
|
+
data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_recharts2.PieChart, { children: [
|
|
28898
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
28882
28899
|
import_recharts2.Pie,
|
|
28883
28900
|
{
|
|
28884
28901
|
data,
|
|
@@ -28890,8 +28907,8 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28890
28907
|
labelLine: false,
|
|
28891
28908
|
isAnimationActive: false,
|
|
28892
28909
|
children: [
|
|
28893
|
-
data.map((entry, index) => /* @__PURE__ */ (0,
|
|
28894
|
-
/* @__PURE__ */ (0,
|
|
28910
|
+
data.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_recharts2.Cell, { fill: entry.color }, `cell-${index}`)),
|
|
28911
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
28895
28912
|
import_recharts2.LabelList,
|
|
28896
28913
|
{
|
|
28897
28914
|
dataKey: "value",
|
|
@@ -28902,14 +28919,14 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28902
28919
|
]
|
|
28903
28920
|
}
|
|
28904
28921
|
),
|
|
28905
|
-
/* @__PURE__ */ (0,
|
|
28922
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_recharts2.Tooltip, { formatter: (value, name) => [`${value}k`, name] })
|
|
28906
28923
|
] }) }),
|
|
28907
|
-
/* @__PURE__ */ (0,
|
|
28924
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-2xl md:text-4xl font-bold text-[#000]", children: [
|
|
28908
28925
|
total,
|
|
28909
28926
|
"k"
|
|
28910
28927
|
] })
|
|
28911
28928
|
] }),
|
|
28912
|
-
/* @__PURE__ */ (0,
|
|
28929
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: `flex ${forceDesktop ? "flex-col ml-auto space-y-3" : "flex-wrap justify-center gap-2 mt-4"}
|
|
28913
28930
|
w-full md:w-auto`, children: renderLegends() })
|
|
28914
28931
|
]
|
|
28915
28932
|
}
|
|
@@ -28918,10 +28935,10 @@ var DonutChart = ({ className, style, ...props }) => {
|
|
|
28918
28935
|
var PieChart_default = DonutChart;
|
|
28919
28936
|
|
|
28920
28937
|
// src/components/Blocks/EmailComposer.tsx
|
|
28921
|
-
var
|
|
28938
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
28922
28939
|
function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc, setShowBcc, cc, setCc, bcc, setBcc, subject, setSubject, body, setBody }) {
|
|
28923
|
-
return /* @__PURE__ */ (0,
|
|
28924
|
-
/* @__PURE__ */ (0,
|
|
28940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "border rounded-md shadow bg-[#fff] p-4 mx-auto z-[50] relative", children: [
|
|
28941
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
28925
28942
|
"input",
|
|
28926
28943
|
{
|
|
28927
28944
|
type: "email",
|
|
@@ -28930,8 +28947,8 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28930
28947
|
required: true
|
|
28931
28948
|
}
|
|
28932
28949
|
) }),
|
|
28933
|
-
/* @__PURE__ */ (0,
|
|
28934
|
-
/* @__PURE__ */ (0,
|
|
28950
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
28951
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
28935
28952
|
"input",
|
|
28936
28953
|
{
|
|
28937
28954
|
type: "email",
|
|
@@ -28942,7 +28959,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28942
28959
|
required: true
|
|
28943
28960
|
}
|
|
28944
28961
|
),
|
|
28945
|
-
!showCc && /* @__PURE__ */ (0,
|
|
28962
|
+
!showCc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
28946
28963
|
"button",
|
|
28947
28964
|
{
|
|
28948
28965
|
onClick: () => setShowCc?.(true),
|
|
@@ -28950,7 +28967,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28950
28967
|
children: "Cc"
|
|
28951
28968
|
}
|
|
28952
28969
|
),
|
|
28953
|
-
!showBcc && /* @__PURE__ */ (0,
|
|
28970
|
+
!showBcc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
28954
28971
|
"button",
|
|
28955
28972
|
{
|
|
28956
28973
|
onClick: () => setShowBcc?.(true),
|
|
@@ -28959,7 +28976,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28959
28976
|
}
|
|
28960
28977
|
)
|
|
28961
28978
|
] }) }),
|
|
28962
|
-
showCc && /* @__PURE__ */ (0,
|
|
28979
|
+
showCc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
28963
28980
|
"input",
|
|
28964
28981
|
{
|
|
28965
28982
|
type: "text",
|
|
@@ -28969,7 +28986,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28969
28986
|
className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
|
|
28970
28987
|
}
|
|
28971
28988
|
) }),
|
|
28972
|
-
showBcc && /* @__PURE__ */ (0,
|
|
28989
|
+
showBcc && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
28973
28990
|
"input",
|
|
28974
28991
|
{
|
|
28975
28992
|
type: "text",
|
|
@@ -28979,7 +28996,7 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28979
28996
|
className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
|
|
28980
28997
|
}
|
|
28981
28998
|
) }),
|
|
28982
|
-
/* @__PURE__ */ (0,
|
|
28999
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-3", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
28983
29000
|
"input",
|
|
28984
29001
|
{
|
|
28985
29002
|
type: "text",
|
|
@@ -28989,11 +29006,11 @@ function EmailComposer({ className, style, to, setTo, showCc, setShowCc, showBcc
|
|
|
28989
29006
|
className: "w-full flex-1 border-2 rounded-md h-[40px] px-3 focus:outline-none border-[#E9E9E9] text-[#383838]"
|
|
28990
29007
|
}
|
|
28991
29008
|
) }),
|
|
28992
|
-
/* @__PURE__ */ (0,
|
|
28993
|
-
/* @__PURE__ */ (0,
|
|
28994
|
-
/* @__PURE__ */ (0,
|
|
28995
|
-
/* @__PURE__ */ (0,
|
|
28996
|
-
/* @__PURE__ */ (0,
|
|
29009
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(MyEditor, { value: body, onChange: setBody }) }),
|
|
29010
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex justify-end gap-2", children: [
|
|
29011
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("button", { className: "px-4 py-2 rounded-md text-gray-600 hover:bg-gray-100", children: "Discard" }),
|
|
29012
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("button", { className: "px-4 py-2 rounded-md border text-[#12715B] border-[#12715B]", children: "Reset" }),
|
|
29013
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("button", { className: "px-4 py-2 rounded-md bg-[#12715B] text-white", children: "Send" })
|
|
28997
29014
|
] })
|
|
28998
29015
|
] }) });
|
|
28999
29016
|
}
|
|
@@ -29037,6 +29054,7 @@ function showSonnerToast({
|
|
|
29037
29054
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29038
29055
|
0 && (module.exports = {
|
|
29039
29056
|
Accordion,
|
|
29057
|
+
AccordionGroup,
|
|
29040
29058
|
BarChart,
|
|
29041
29059
|
Breadcrumb,
|
|
29042
29060
|
Button,
|
|
@@ -29065,6 +29083,7 @@ function showSonnerToast({
|
|
|
29065
29083
|
RichText,
|
|
29066
29084
|
Search,
|
|
29067
29085
|
Shape,
|
|
29086
|
+
Slot,
|
|
29068
29087
|
Spacer,
|
|
29069
29088
|
Stages,
|
|
29070
29089
|
SwitchToggle,
|