pxengine 0.1.95 → 0.1.97
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.cjs +769 -658
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.mjs +548 -437
- package/dist/index.mjs.map +1 -1
- package/dist/registry.json +11 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __export = (target, all) => {
|
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
// src/render/PXEngineRenderer.tsx
|
|
8
|
-
import
|
|
8
|
+
import React118 from "react";
|
|
9
9
|
|
|
10
10
|
// src/atoms/index.ts
|
|
11
11
|
var atoms_exports = {};
|
|
@@ -24796,6 +24796,9 @@ var CardAtom = ({
|
|
|
24796
24796
|
);
|
|
24797
24797
|
};
|
|
24798
24798
|
|
|
24799
|
+
// src/atoms/InputAtom.tsx
|
|
24800
|
+
import React14 from "react";
|
|
24801
|
+
|
|
24799
24802
|
// src/components/ui/input.tsx
|
|
24800
24803
|
import * as React5 from "react";
|
|
24801
24804
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
@@ -25122,8 +25125,24 @@ var InputAtom = ({
|
|
|
25122
25125
|
config,
|
|
25123
25126
|
labelColor,
|
|
25124
25127
|
className,
|
|
25125
|
-
style
|
|
25128
|
+
style,
|
|
25129
|
+
fieldKey,
|
|
25130
|
+
id,
|
|
25131
|
+
onValueChange
|
|
25126
25132
|
}) => {
|
|
25133
|
+
const [liveValue, setLiveValue] = React14.useState(defaultValue);
|
|
25134
|
+
const isInteractive = typeof onValueChange === "function";
|
|
25135
|
+
React14.useEffect(() => {
|
|
25136
|
+
if (isInteractive) {
|
|
25137
|
+
setLiveValue(defaultValue);
|
|
25138
|
+
}
|
|
25139
|
+
}, [defaultValue, isInteractive]);
|
|
25140
|
+
const handleChange = (val) => {
|
|
25141
|
+
setLiveValue(val);
|
|
25142
|
+
if (onValueChange) {
|
|
25143
|
+
onValueChange(fieldKey || id || label || "field", val);
|
|
25144
|
+
}
|
|
25145
|
+
};
|
|
25127
25146
|
const containerClass = cn("flex flex-col gap-2 w-full", className);
|
|
25128
25147
|
const getAlignmentClass = (textAlign2) => {
|
|
25129
25148
|
switch (textAlign2) {
|
|
@@ -25168,12 +25187,14 @@ var InputAtom = ({
|
|
|
25168
25187
|
},
|
|
25169
25188
|
...remainingStyle
|
|
25170
25189
|
};
|
|
25190
|
+
const currentValue = isInteractive ? liveValue : defaultValue;
|
|
25171
25191
|
const commonProps = {
|
|
25172
25192
|
placeholder,
|
|
25173
|
-
value:
|
|
25193
|
+
value: currentValue,
|
|
25174
25194
|
disabled,
|
|
25175
25195
|
required,
|
|
25176
|
-
readOnly
|
|
25196
|
+
// Only readOnly when not in interactive mode
|
|
25197
|
+
...isInteractive ? {} : { readOnly: true },
|
|
25177
25198
|
className: cn(
|
|
25178
25199
|
"rounded-xl border-border bg-transparent focus:ring-primary shadow-none",
|
|
25179
25200
|
className
|
|
@@ -25182,29 +25203,45 @@ var InputAtom = ({
|
|
|
25182
25203
|
};
|
|
25183
25204
|
switch (inputType) {
|
|
25184
25205
|
case "textarea":
|
|
25185
|
-
return /* @__PURE__ */ jsx17(
|
|
25206
|
+
return /* @__PURE__ */ jsx17(
|
|
25207
|
+
Textarea,
|
|
25208
|
+
{
|
|
25209
|
+
...commonProps,
|
|
25210
|
+
rows: config?.rows || 3,
|
|
25211
|
+
onChange: isInteractive ? (e) => handleChange(e.target.value) : void 0
|
|
25212
|
+
}
|
|
25213
|
+
);
|
|
25186
25214
|
case "select":
|
|
25187
|
-
return /* @__PURE__ */ jsxs6(
|
|
25188
|
-
|
|
25189
|
-
|
|
25190
|
-
|
|
25191
|
-
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25196
|
-
|
|
25197
|
-
|
|
25215
|
+
return /* @__PURE__ */ jsxs6(
|
|
25216
|
+
Select,
|
|
25217
|
+
{
|
|
25218
|
+
value: currentValue,
|
|
25219
|
+
disabled,
|
|
25220
|
+
onValueChange: isInteractive ? (val) => handleChange(val) : void 0,
|
|
25221
|
+
children: [
|
|
25222
|
+
/* @__PURE__ */ jsx17(
|
|
25223
|
+
SelectTrigger,
|
|
25224
|
+
{
|
|
25225
|
+
className: cn("rounded-xl border-border bg-transparent shadow-none", className),
|
|
25226
|
+
style: remainingStyle,
|
|
25227
|
+
children: /* @__PURE__ */ jsx17(SelectValue, { placeholder: placeholder || "Select option" })
|
|
25228
|
+
}
|
|
25229
|
+
),
|
|
25230
|
+
/* @__PURE__ */ jsx17(SelectContent, { className: "rounded-xl border-border shadow-xl", children: options?.map((opt) => /* @__PURE__ */ jsx17(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
25231
|
+
]
|
|
25232
|
+
}
|
|
25233
|
+
);
|
|
25198
25234
|
case "slider":
|
|
25199
25235
|
return /* @__PURE__ */ jsx17("div", { className: "pt-2 pb-1 w-full bg-transparent", style: remainingStyle, children: /* @__PURE__ */ jsx17(
|
|
25200
25236
|
Slider,
|
|
25201
25237
|
{
|
|
25202
|
-
value: [
|
|
25238
|
+
value: [currentValue ?? config?.min ?? 0],
|
|
25203
25239
|
max: config?.max || 100,
|
|
25204
25240
|
min: config?.min || 0,
|
|
25205
25241
|
step: config?.step || 1,
|
|
25206
25242
|
disabled,
|
|
25207
|
-
className: cn("py-4", className)
|
|
25243
|
+
className: cn("py-4", className),
|
|
25244
|
+
onValueChange: isInteractive ? ([val]) => handleChange(val) : void 0
|
|
25208
25245
|
}
|
|
25209
25246
|
) });
|
|
25210
25247
|
case "checkbox":
|
|
@@ -25213,9 +25250,10 @@ var InputAtom = ({
|
|
|
25213
25250
|
Checkbox,
|
|
25214
25251
|
{
|
|
25215
25252
|
id: label,
|
|
25216
|
-
checked:
|
|
25253
|
+
checked: Boolean(currentValue),
|
|
25217
25254
|
disabled,
|
|
25218
|
-
className: "rounded-[6px] border-border data-[state=checked]:bg-primary"
|
|
25255
|
+
className: "rounded-[6px] border-border data-[state=checked]:bg-primary",
|
|
25256
|
+
onCheckedChange: isInteractive ? (checked) => handleChange(Boolean(checked)) : void 0
|
|
25219
25257
|
}
|
|
25220
25258
|
),
|
|
25221
25259
|
/* @__PURE__ */ jsx17(
|
|
@@ -25243,9 +25281,10 @@ var InputAtom = ({
|
|
|
25243
25281
|
Switch,
|
|
25244
25282
|
{
|
|
25245
25283
|
id: label,
|
|
25246
|
-
checked:
|
|
25284
|
+
checked: Boolean(currentValue),
|
|
25247
25285
|
disabled,
|
|
25248
|
-
className: "data-[state=checked]:bg-primary"
|
|
25286
|
+
className: "data-[state=checked]:bg-primary",
|
|
25287
|
+
onCheckedChange: isInteractive ? (checked) => handleChange(Boolean(checked)) : void 0
|
|
25249
25288
|
}
|
|
25250
25289
|
)
|
|
25251
25290
|
] });
|
|
@@ -25253,10 +25292,11 @@ var InputAtom = ({
|
|
|
25253
25292
|
return /* @__PURE__ */ jsx17(
|
|
25254
25293
|
RadioGroup,
|
|
25255
25294
|
{
|
|
25256
|
-
value:
|
|
25295
|
+
value: currentValue,
|
|
25257
25296
|
disabled,
|
|
25258
25297
|
className: cn("gap-2.5 bg-transparent", className),
|
|
25259
25298
|
style: remainingStyle,
|
|
25299
|
+
onValueChange: isInteractive ? (val) => handleChange(val) : void 0,
|
|
25260
25300
|
children: options?.map((opt) => /* @__PURE__ */ jsxs6("div", { className: "flex items-center space-x-3 bg-transparent", children: [
|
|
25261
25301
|
/* @__PURE__ */ jsx17(
|
|
25262
25302
|
RadioGroupItem,
|
|
@@ -25279,21 +25319,31 @@ var InputAtom = ({
|
|
|
25279
25319
|
}
|
|
25280
25320
|
);
|
|
25281
25321
|
case "otp":
|
|
25282
|
-
return /* @__PURE__ */ jsx17("div", { className: "flex justify-center py-2 bg-transparent", style: remainingStyle, children: /* @__PURE__ */ jsx17(
|
|
25283
|
-
|
|
25322
|
+
return /* @__PURE__ */ jsx17("div", { className: "flex justify-center py-2 bg-transparent", style: remainingStyle, children: /* @__PURE__ */ jsx17(
|
|
25323
|
+
InputOTP,
|
|
25284
25324
|
{
|
|
25285
|
-
|
|
25286
|
-
|
|
25287
|
-
|
|
25288
|
-
|
|
25289
|
-
|
|
25325
|
+
maxLength: config?.maxLength || 6,
|
|
25326
|
+
disabled,
|
|
25327
|
+
value: currentValue ?? "",
|
|
25328
|
+
onChange: isInteractive ? (val) => handleChange(val) : void 0,
|
|
25329
|
+
children: /* @__PURE__ */ jsx17(InputOTPGroup, { className: "gap-2 bg-transparent", children: Array.from({ length: config?.maxLength || 6 }).map((_, i) => /* @__PURE__ */ jsx17(
|
|
25330
|
+
InputOTPSlot,
|
|
25331
|
+
{
|
|
25332
|
+
index: i,
|
|
25333
|
+
className: "rounded-xl border border-border bg-transparent"
|
|
25334
|
+
},
|
|
25335
|
+
i
|
|
25336
|
+
)) })
|
|
25337
|
+
}
|
|
25338
|
+
) });
|
|
25290
25339
|
default:
|
|
25291
25340
|
return /* @__PURE__ */ jsx17(
|
|
25292
25341
|
Input,
|
|
25293
25342
|
{
|
|
25294
25343
|
...commonProps,
|
|
25295
25344
|
type: inputType,
|
|
25296
|
-
className: cn("rounded-xl border-border bg-transparent focus:ring-primary h-11 shadow-none", className)
|
|
25345
|
+
className: cn("rounded-xl border-border bg-transparent focus:ring-primary h-11 shadow-none", className),
|
|
25346
|
+
onChange: isInteractive ? (e) => handleChange(e.target.value) : void 0
|
|
25297
25347
|
}
|
|
25298
25348
|
);
|
|
25299
25349
|
}
|
|
@@ -25367,10 +25417,10 @@ var BadgeAtom = ({
|
|
|
25367
25417
|
};
|
|
25368
25418
|
|
|
25369
25419
|
// src/components/ui/avatar.tsx
|
|
25370
|
-
import * as
|
|
25420
|
+
import * as React15 from "react";
|
|
25371
25421
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
25372
25422
|
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
25373
|
-
var Avatar =
|
|
25423
|
+
var Avatar = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
25374
25424
|
AvatarPrimitive.Root,
|
|
25375
25425
|
{
|
|
25376
25426
|
ref,
|
|
@@ -25382,7 +25432,7 @@ var Avatar = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
25382
25432
|
}
|
|
25383
25433
|
));
|
|
25384
25434
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
25385
|
-
var AvatarImage =
|
|
25435
|
+
var AvatarImage = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
25386
25436
|
AvatarPrimitive.Image,
|
|
25387
25437
|
{
|
|
25388
25438
|
ref,
|
|
@@ -25391,7 +25441,7 @@ var AvatarImage = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
25391
25441
|
}
|
|
25392
25442
|
));
|
|
25393
25443
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
25394
|
-
var AvatarFallback =
|
|
25444
|
+
var AvatarFallback = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
25395
25445
|
AvatarPrimitive.Fallback,
|
|
25396
25446
|
{
|
|
25397
25447
|
ref,
|
|
@@ -25433,14 +25483,14 @@ var AvatarAtom = ({
|
|
|
25433
25483
|
};
|
|
25434
25484
|
|
|
25435
25485
|
// src/atoms/TabsAtom.tsx
|
|
25436
|
-
import
|
|
25486
|
+
import React17 from "react";
|
|
25437
25487
|
|
|
25438
25488
|
// src/components/ui/tabs.tsx
|
|
25439
|
-
import * as
|
|
25489
|
+
import * as React16 from "react";
|
|
25440
25490
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
25441
25491
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
25442
25492
|
var Tabs = TabsPrimitive.Root;
|
|
25443
|
-
var TabsList =
|
|
25493
|
+
var TabsList = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
25444
25494
|
TabsPrimitive.List,
|
|
25445
25495
|
{
|
|
25446
25496
|
ref,
|
|
@@ -25452,7 +25502,7 @@ var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
25452
25502
|
}
|
|
25453
25503
|
));
|
|
25454
25504
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
25455
|
-
var TabsTrigger =
|
|
25505
|
+
var TabsTrigger = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
25456
25506
|
TabsPrimitive.Trigger,
|
|
25457
25507
|
{
|
|
25458
25508
|
ref,
|
|
@@ -25464,7 +25514,7 @@ var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
25464
25514
|
}
|
|
25465
25515
|
));
|
|
25466
25516
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
25467
|
-
var TabsContent =
|
|
25517
|
+
var TabsContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
25468
25518
|
TabsPrimitive.Content,
|
|
25469
25519
|
{
|
|
25470
25520
|
ref,
|
|
@@ -25495,19 +25545,19 @@ var TabsAtom = ({
|
|
|
25495
25545
|
},
|
|
25496
25546
|
tab.value
|
|
25497
25547
|
)) }),
|
|
25498
|
-
tabs.map((tab) => /* @__PURE__ */ jsx23(TabsContent, { value: tab.value, className: "mt-4", children: tab.content.map((child) => /* @__PURE__ */ jsx23(
|
|
25548
|
+
tabs.map((tab) => /* @__PURE__ */ jsx23(TabsContent, { value: tab.value, className: "mt-4", children: tab.content.map((child) => /* @__PURE__ */ jsx23(React17.Fragment, { children: renderComponent(child) }, child.id)) }, tab.value))
|
|
25499
25549
|
] });
|
|
25500
25550
|
};
|
|
25501
25551
|
|
|
25502
25552
|
// src/atoms/AccordionAtom.tsx
|
|
25503
|
-
import
|
|
25553
|
+
import React19 from "react";
|
|
25504
25554
|
|
|
25505
25555
|
// src/components/ui/accordion.tsx
|
|
25506
|
-
import * as
|
|
25556
|
+
import * as React18 from "react";
|
|
25507
25557
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
25508
25558
|
import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
25509
25559
|
var Accordion = AccordionPrimitive.Root;
|
|
25510
|
-
var AccordionItem =
|
|
25560
|
+
var AccordionItem = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
25511
25561
|
AccordionPrimitive.Item,
|
|
25512
25562
|
{
|
|
25513
25563
|
ref,
|
|
@@ -25516,7 +25566,7 @@ var AccordionItem = React17.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
25516
25566
|
}
|
|
25517
25567
|
));
|
|
25518
25568
|
AccordionItem.displayName = "AccordionItem";
|
|
25519
|
-
var AccordionTrigger =
|
|
25569
|
+
var AccordionTrigger = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx24(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs9(
|
|
25520
25570
|
AccordionPrimitive.Trigger,
|
|
25521
25571
|
{
|
|
25522
25572
|
ref,
|
|
@@ -25532,7 +25582,7 @@ var AccordionTrigger = React17.forwardRef(({ className, children, ...props }, re
|
|
|
25532
25582
|
}
|
|
25533
25583
|
) }));
|
|
25534
25584
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
25535
|
-
var AccordionContent =
|
|
25585
|
+
var AccordionContent = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
25536
25586
|
AccordionPrimitive.Content,
|
|
25537
25587
|
{
|
|
25538
25588
|
ref,
|
|
@@ -25557,7 +25607,7 @@ var AccordionAtom = ({
|
|
|
25557
25607
|
className: "border-gray-100",
|
|
25558
25608
|
children: [
|
|
25559
25609
|
/* @__PURE__ */ jsx25(AccordionTrigger, { className: "text-sm font-semibold hover:no-underline hover:text-purple600 py-4", children: item.trigger }),
|
|
25560
|
-
/* @__PURE__ */ jsx25(AccordionContent, { children: /* @__PURE__ */ jsx25("div", { className: "pt-2 pb-4", children: item.content.map((child) => /* @__PURE__ */ jsx25(
|
|
25610
|
+
/* @__PURE__ */ jsx25(AccordionContent, { children: /* @__PURE__ */ jsx25("div", { className: "pt-2 pb-4", children: item.content.map((child) => /* @__PURE__ */ jsx25(React19.Fragment, { children: renderComponent(child) }, child.id)) }) })
|
|
25561
25611
|
]
|
|
25562
25612
|
},
|
|
25563
25613
|
item.value
|
|
@@ -25565,10 +25615,10 @@ var AccordionAtom = ({
|
|
|
25565
25615
|
};
|
|
25566
25616
|
|
|
25567
25617
|
// src/components/ui/progress.tsx
|
|
25568
|
-
import * as
|
|
25618
|
+
import * as React20 from "react";
|
|
25569
25619
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
25570
25620
|
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
25571
|
-
var Progress =
|
|
25621
|
+
var Progress = React20.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx26(
|
|
25572
25622
|
ProgressPrimitive.Root,
|
|
25573
25623
|
{
|
|
25574
25624
|
ref,
|
|
@@ -25649,7 +25699,7 @@ var SkeletonAtom = ({
|
|
|
25649
25699
|
};
|
|
25650
25700
|
|
|
25651
25701
|
// src/components/ui/alert.tsx
|
|
25652
|
-
import * as
|
|
25702
|
+
import * as React21 from "react";
|
|
25653
25703
|
import { cva as cva4 } from "class-variance-authority";
|
|
25654
25704
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
25655
25705
|
var alertVariants = cva4(
|
|
@@ -25666,7 +25716,7 @@ var alertVariants = cva4(
|
|
|
25666
25716
|
}
|
|
25667
25717
|
}
|
|
25668
25718
|
);
|
|
25669
|
-
var Alert =
|
|
25719
|
+
var Alert = React21.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
25670
25720
|
"div",
|
|
25671
25721
|
{
|
|
25672
25722
|
ref,
|
|
@@ -25676,7 +25726,7 @@ var Alert = React20.forwardRef(({ className, variant, ...props }, ref) => /* @__
|
|
|
25676
25726
|
}
|
|
25677
25727
|
));
|
|
25678
25728
|
Alert.displayName = "Alert";
|
|
25679
|
-
var AlertTitle =
|
|
25729
|
+
var AlertTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
25680
25730
|
"h5",
|
|
25681
25731
|
{
|
|
25682
25732
|
ref,
|
|
@@ -25685,7 +25735,7 @@ var AlertTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
25685
25735
|
}
|
|
25686
25736
|
));
|
|
25687
25737
|
AlertTitle.displayName = "AlertTitle";
|
|
25688
|
-
var AlertDescription =
|
|
25738
|
+
var AlertDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
25689
25739
|
"div",
|
|
25690
25740
|
{
|
|
25691
25741
|
ref,
|
|
@@ -25745,10 +25795,10 @@ var AlertAtom = ({
|
|
|
25745
25795
|
};
|
|
25746
25796
|
|
|
25747
25797
|
// src/components/ui/separator.tsx
|
|
25748
|
-
import * as
|
|
25798
|
+
import * as React22 from "react";
|
|
25749
25799
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
25750
25800
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
25751
|
-
var Separator2 =
|
|
25801
|
+
var Separator2 = React22.forwardRef(
|
|
25752
25802
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
25753
25803
|
SeparatorPrimitive.Root,
|
|
25754
25804
|
{
|
|
@@ -25789,9 +25839,9 @@ var SeparatorAtom = ({
|
|
|
25789
25839
|
};
|
|
25790
25840
|
|
|
25791
25841
|
// src/components/ui/table.tsx
|
|
25792
|
-
import * as
|
|
25842
|
+
import * as React23 from "react";
|
|
25793
25843
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
25794
|
-
var Table3 =
|
|
25844
|
+
var Table3 = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx34(
|
|
25795
25845
|
"table",
|
|
25796
25846
|
{
|
|
25797
25847
|
ref,
|
|
@@ -25800,9 +25850,9 @@ var Table3 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
25800
25850
|
}
|
|
25801
25851
|
) }));
|
|
25802
25852
|
Table3.displayName = "Table";
|
|
25803
|
-
var TableHeader =
|
|
25853
|
+
var TableHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
25804
25854
|
TableHeader.displayName = "TableHeader";
|
|
25805
|
-
var TableBody =
|
|
25855
|
+
var TableBody = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
25806
25856
|
"tbody",
|
|
25807
25857
|
{
|
|
25808
25858
|
ref,
|
|
@@ -25811,7 +25861,7 @@ var TableBody = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
25811
25861
|
}
|
|
25812
25862
|
));
|
|
25813
25863
|
TableBody.displayName = "TableBody";
|
|
25814
|
-
var TableFooter =
|
|
25864
|
+
var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
25815
25865
|
"tfoot",
|
|
25816
25866
|
{
|
|
25817
25867
|
ref,
|
|
@@ -25823,7 +25873,7 @@ var TableFooter = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
25823
25873
|
}
|
|
25824
25874
|
));
|
|
25825
25875
|
TableFooter.displayName = "TableFooter";
|
|
25826
|
-
var TableRow =
|
|
25876
|
+
var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
25827
25877
|
"tr",
|
|
25828
25878
|
{
|
|
25829
25879
|
ref,
|
|
@@ -25835,7 +25885,7 @@ var TableRow = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
25835
25885
|
}
|
|
25836
25886
|
));
|
|
25837
25887
|
TableRow.displayName = "TableRow";
|
|
25838
|
-
var TableHead =
|
|
25888
|
+
var TableHead = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
25839
25889
|
"th",
|
|
25840
25890
|
{
|
|
25841
25891
|
ref,
|
|
@@ -25847,7 +25897,7 @@ var TableHead = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
25847
25897
|
}
|
|
25848
25898
|
));
|
|
25849
25899
|
TableHead.displayName = "TableHead";
|
|
25850
|
-
var TableCell =
|
|
25900
|
+
var TableCell = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
25851
25901
|
"td",
|
|
25852
25902
|
{
|
|
25853
25903
|
ref,
|
|
@@ -25856,7 +25906,7 @@ var TableCell = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
25856
25906
|
}
|
|
25857
25907
|
));
|
|
25858
25908
|
TableCell.displayName = "TableCell";
|
|
25859
|
-
var TableCaption =
|
|
25909
|
+
var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
25860
25910
|
"caption",
|
|
25861
25911
|
{
|
|
25862
25912
|
ref,
|
|
@@ -25941,13 +25991,13 @@ var TableAtom = ({
|
|
|
25941
25991
|
};
|
|
25942
25992
|
|
|
25943
25993
|
// src/atoms/ScrollAreaAtom.tsx
|
|
25944
|
-
import
|
|
25994
|
+
import React25 from "react";
|
|
25945
25995
|
|
|
25946
25996
|
// src/components/ui/scroll-area.tsx
|
|
25947
|
-
import * as
|
|
25997
|
+
import * as React24 from "react";
|
|
25948
25998
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
25949
25999
|
import { jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
25950
|
-
var ScrollArea =
|
|
26000
|
+
var ScrollArea = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
25951
26001
|
ScrollAreaPrimitive.Root,
|
|
25952
26002
|
{
|
|
25953
26003
|
ref,
|
|
@@ -25961,7 +26011,7 @@ var ScrollArea = React23.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
25961
26011
|
}
|
|
25962
26012
|
));
|
|
25963
26013
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
25964
|
-
var ScrollBar =
|
|
26014
|
+
var ScrollBar = React24.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx36(
|
|
25965
26015
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
25966
26016
|
{
|
|
25967
26017
|
ref,
|
|
@@ -25992,7 +26042,7 @@ var ScrollAreaAtom = ({
|
|
|
25992
26042
|
className: cn("rounded-xl border", className),
|
|
25993
26043
|
style: { height: maxHeight },
|
|
25994
26044
|
children: [
|
|
25995
|
-
/* @__PURE__ */ jsx37("div", { className: "p-4", children: children.map((child) => /* @__PURE__ */ jsx37(
|
|
26045
|
+
/* @__PURE__ */ jsx37("div", { className: "p-4", children: children.map((child) => /* @__PURE__ */ jsx37(React25.Fragment, { children: renderComponent(child) }, child.id)) }),
|
|
25996
26046
|
/* @__PURE__ */ jsx37(ScrollBar, { orientation: "vertical" })
|
|
25997
26047
|
]
|
|
25998
26048
|
}
|
|
@@ -26000,21 +26050,21 @@ var ScrollAreaAtom = ({
|
|
|
26000
26050
|
};
|
|
26001
26051
|
|
|
26002
26052
|
// src/atoms/CarouselAtom.tsx
|
|
26003
|
-
import
|
|
26053
|
+
import React27 from "react";
|
|
26004
26054
|
|
|
26005
26055
|
// src/components/ui/carousel.tsx
|
|
26006
|
-
import * as
|
|
26056
|
+
import * as React26 from "react";
|
|
26007
26057
|
import useEmblaCarousel from "embla-carousel-react";
|
|
26008
26058
|
import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
26009
|
-
var CarouselContext =
|
|
26059
|
+
var CarouselContext = React26.createContext(null);
|
|
26010
26060
|
function useCarousel() {
|
|
26011
|
-
const context =
|
|
26061
|
+
const context = React26.useContext(CarouselContext);
|
|
26012
26062
|
if (!context) {
|
|
26013
26063
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
26014
26064
|
}
|
|
26015
26065
|
return context;
|
|
26016
26066
|
}
|
|
26017
|
-
var Carousel =
|
|
26067
|
+
var Carousel = React26.forwardRef(
|
|
26018
26068
|
({
|
|
26019
26069
|
orientation = "horizontal",
|
|
26020
26070
|
opts,
|
|
@@ -26031,22 +26081,22 @@ var Carousel = React25.forwardRef(
|
|
|
26031
26081
|
},
|
|
26032
26082
|
plugins
|
|
26033
26083
|
);
|
|
26034
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
26035
|
-
const [canScrollNext, setCanScrollNext] =
|
|
26036
|
-
const onSelect =
|
|
26084
|
+
const [canScrollPrev, setCanScrollPrev] = React26.useState(false);
|
|
26085
|
+
const [canScrollNext, setCanScrollNext] = React26.useState(false);
|
|
26086
|
+
const onSelect = React26.useCallback((api2) => {
|
|
26037
26087
|
if (!api2) {
|
|
26038
26088
|
return;
|
|
26039
26089
|
}
|
|
26040
26090
|
setCanScrollPrev(api2.canScrollPrev());
|
|
26041
26091
|
setCanScrollNext(api2.canScrollNext());
|
|
26042
26092
|
}, []);
|
|
26043
|
-
const scrollPrev =
|
|
26093
|
+
const scrollPrev = React26.useCallback(() => {
|
|
26044
26094
|
api?.scrollPrev();
|
|
26045
26095
|
}, [api]);
|
|
26046
|
-
const scrollNext =
|
|
26096
|
+
const scrollNext = React26.useCallback(() => {
|
|
26047
26097
|
api?.scrollNext();
|
|
26048
26098
|
}, [api]);
|
|
26049
|
-
const handleKeyDown =
|
|
26099
|
+
const handleKeyDown = React26.useCallback(
|
|
26050
26100
|
(event) => {
|
|
26051
26101
|
if (event.key === "ArrowLeft") {
|
|
26052
26102
|
event.preventDefault();
|
|
@@ -26058,13 +26108,13 @@ var Carousel = React25.forwardRef(
|
|
|
26058
26108
|
},
|
|
26059
26109
|
[scrollPrev, scrollNext]
|
|
26060
26110
|
);
|
|
26061
|
-
|
|
26111
|
+
React26.useEffect(() => {
|
|
26062
26112
|
if (!api || !setApi) {
|
|
26063
26113
|
return;
|
|
26064
26114
|
}
|
|
26065
26115
|
setApi(api);
|
|
26066
26116
|
}, [api, setApi]);
|
|
26067
|
-
|
|
26117
|
+
React26.useEffect(() => {
|
|
26068
26118
|
if (!api) {
|
|
26069
26119
|
return;
|
|
26070
26120
|
}
|
|
@@ -26105,7 +26155,7 @@ var Carousel = React25.forwardRef(
|
|
|
26105
26155
|
}
|
|
26106
26156
|
);
|
|
26107
26157
|
Carousel.displayName = "Carousel";
|
|
26108
|
-
var CarouselContent =
|
|
26158
|
+
var CarouselContent = React26.forwardRef(({ className, ...props }, ref) => {
|
|
26109
26159
|
const { carouselRef, orientation } = useCarousel();
|
|
26110
26160
|
return /* @__PURE__ */ jsx38("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx38(
|
|
26111
26161
|
"div",
|
|
@@ -26121,7 +26171,7 @@ var CarouselContent = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
26121
26171
|
) });
|
|
26122
26172
|
});
|
|
26123
26173
|
CarouselContent.displayName = "CarouselContent";
|
|
26124
|
-
var CarouselItem =
|
|
26174
|
+
var CarouselItem = React26.forwardRef(({ className, ...props }, ref) => {
|
|
26125
26175
|
const { orientation } = useCarousel();
|
|
26126
26176
|
return /* @__PURE__ */ jsx38(
|
|
26127
26177
|
"div",
|
|
@@ -26139,7 +26189,7 @@ var CarouselItem = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
26139
26189
|
);
|
|
26140
26190
|
});
|
|
26141
26191
|
CarouselItem.displayName = "CarouselItem";
|
|
26142
|
-
var CarouselPrevious =
|
|
26192
|
+
var CarouselPrevious = React26.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
26143
26193
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
26144
26194
|
return /* @__PURE__ */ jsxs15(
|
|
26145
26195
|
Button,
|
|
@@ -26163,7 +26213,7 @@ var CarouselPrevious = React25.forwardRef(({ className, variant = "outline", siz
|
|
|
26163
26213
|
);
|
|
26164
26214
|
});
|
|
26165
26215
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
26166
|
-
var CarouselNext =
|
|
26216
|
+
var CarouselNext = React26.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
26167
26217
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
26168
26218
|
return /* @__PURE__ */ jsxs15(
|
|
26169
26219
|
Button,
|
|
@@ -26196,14 +26246,14 @@ var CarouselAtom = ({
|
|
|
26196
26246
|
renderComponent
|
|
26197
26247
|
}) => {
|
|
26198
26248
|
return /* @__PURE__ */ jsxs16(Carousel, { className: cn("w-full max-w-xs mx-auto", className), children: [
|
|
26199
|
-
/* @__PURE__ */ jsx39(CarouselContent, { children: items.map((slide, index) => /* @__PURE__ */ jsx39(CarouselItem, { children: /* @__PURE__ */ jsx39("div", { className: "p-1", children: slide.map((child) => /* @__PURE__ */ jsx39(
|
|
26249
|
+
/* @__PURE__ */ jsx39(CarouselContent, { children: items.map((slide, index) => /* @__PURE__ */ jsx39(CarouselItem, { children: /* @__PURE__ */ jsx39("div", { className: "p-1", children: slide.map((child) => /* @__PURE__ */ jsx39(React27.Fragment, { children: renderComponent(child) }, child.id)) }) }, index)) }),
|
|
26200
26250
|
/* @__PURE__ */ jsx39(CarouselPrevious, {}),
|
|
26201
26251
|
/* @__PURE__ */ jsx39(CarouselNext, {})
|
|
26202
26252
|
] });
|
|
26203
26253
|
};
|
|
26204
26254
|
|
|
26205
26255
|
// src/atoms/AspectRatioAtom.tsx
|
|
26206
|
-
import
|
|
26256
|
+
import React28 from "react";
|
|
26207
26257
|
|
|
26208
26258
|
// src/components/ui/aspect-ratio.tsx
|
|
26209
26259
|
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
@@ -26217,11 +26267,11 @@ var AspectRatioAtom = ({
|
|
|
26217
26267
|
className,
|
|
26218
26268
|
renderComponent
|
|
26219
26269
|
}) => {
|
|
26220
|
-
return /* @__PURE__ */ jsx40("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx40(AspectRatio, { ratio, children: children.map((child) => /* @__PURE__ */ jsx40(
|
|
26270
|
+
return /* @__PURE__ */ jsx40("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsx40(AspectRatio, { ratio, children: children.map((child) => /* @__PURE__ */ jsx40(React28.Fragment, { children: renderComponent(child) }, child.id)) }) });
|
|
26221
26271
|
};
|
|
26222
26272
|
|
|
26223
26273
|
// src/atoms/CollapsibleAtom.tsx
|
|
26224
|
-
import
|
|
26274
|
+
import React29 from "react";
|
|
26225
26275
|
|
|
26226
26276
|
// src/components/ui/collapsible.tsx
|
|
26227
26277
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
@@ -26244,24 +26294,24 @@ var CollapsibleAtom = ({
|
|
|
26244
26294
|
defaultOpen,
|
|
26245
26295
|
className: cn("w-full space-y-2", className),
|
|
26246
26296
|
children: [
|
|
26247
|
-
/* @__PURE__ */ jsx41(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ jsx41("div", { className: "flex items-center justify-between space-x-4 px-4 py-2 bg-gray-50 rounded-lg cursor-pointer hover:bg-gray-100 transition-colors", children: trigger.map((child) => /* @__PURE__ */ jsx41(
|
|
26248
|
-
/* @__PURE__ */ jsx41(CollapsibleContent2, { className: "space-y-2", children: content.map((child) => /* @__PURE__ */ jsx41(
|
|
26297
|
+
/* @__PURE__ */ jsx41(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ jsx41("div", { className: "flex items-center justify-between space-x-4 px-4 py-2 bg-gray-50 rounded-lg cursor-pointer hover:bg-gray-100 transition-colors", children: trigger.map((child) => /* @__PURE__ */ jsx41(React29.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
26298
|
+
/* @__PURE__ */ jsx41(CollapsibleContent2, { className: "space-y-2", children: content.map((child) => /* @__PURE__ */ jsx41(React29.Fragment, { children: renderComponent(child) }, child.id)) })
|
|
26249
26299
|
]
|
|
26250
26300
|
}
|
|
26251
26301
|
);
|
|
26252
26302
|
};
|
|
26253
26303
|
|
|
26254
26304
|
// src/atoms/TooltipAtom.tsx
|
|
26255
|
-
import
|
|
26305
|
+
import React31 from "react";
|
|
26256
26306
|
|
|
26257
26307
|
// src/components/ui/tooltip.tsx
|
|
26258
|
-
import * as
|
|
26308
|
+
import * as React30 from "react";
|
|
26259
26309
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
26260
26310
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
26261
26311
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
26262
26312
|
var Tooltip = TooltipPrimitive.Root;
|
|
26263
26313
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
26264
|
-
var TooltipContent =
|
|
26314
|
+
var TooltipContent = React30.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx42(
|
|
26265
26315
|
TooltipPrimitive.Content,
|
|
26266
26316
|
{
|
|
26267
26317
|
ref,
|
|
@@ -26284,21 +26334,21 @@ var TooltipAtom = ({
|
|
|
26284
26334
|
renderComponent
|
|
26285
26335
|
}) => {
|
|
26286
26336
|
return /* @__PURE__ */ jsx43(TooltipProvider, { children: /* @__PURE__ */ jsxs18(Tooltip, { children: [
|
|
26287
|
-
/* @__PURE__ */ jsx43(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx43("div", { className: cn("inline-block", className), children: children.map((child) => /* @__PURE__ */ jsx43(
|
|
26337
|
+
/* @__PURE__ */ jsx43(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx43("div", { className: cn("inline-block", className), children: children.map((child) => /* @__PURE__ */ jsx43(React31.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
26288
26338
|
/* @__PURE__ */ jsx43(TooltipContent, { className: "bg-gray-900 text-white border-none rounded-lg shadow-xl px-3 py-1.5 text-xs", children: content })
|
|
26289
26339
|
] }) });
|
|
26290
26340
|
};
|
|
26291
26341
|
|
|
26292
26342
|
// src/atoms/PopoverAtom.tsx
|
|
26293
|
-
import
|
|
26343
|
+
import React33 from "react";
|
|
26294
26344
|
|
|
26295
26345
|
// src/components/ui/popover.tsx
|
|
26296
|
-
import * as
|
|
26346
|
+
import * as React32 from "react";
|
|
26297
26347
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
26298
26348
|
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
26299
26349
|
var Popover = PopoverPrimitive.Root;
|
|
26300
26350
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
26301
|
-
var PopoverContent =
|
|
26351
|
+
var PopoverContent = React32.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx44(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx44(
|
|
26302
26352
|
PopoverPrimitive.Content,
|
|
26303
26353
|
{
|
|
26304
26354
|
ref,
|
|
@@ -26322,23 +26372,23 @@ var PopoverAtom = ({
|
|
|
26322
26372
|
renderComponent
|
|
26323
26373
|
}) => {
|
|
26324
26374
|
return /* @__PURE__ */ jsxs19(Popover, { children: [
|
|
26325
|
-
/* @__PURE__ */ jsx45(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx45("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx45(
|
|
26326
|
-
/* @__PURE__ */ jsx45(PopoverContent, { className: "w-80 rounded-2xl shadow-2xl border-gray-100 p-4 bg-white/95 backdrop-blur-sm", children: content.map((child) => /* @__PURE__ */ jsx45(
|
|
26375
|
+
/* @__PURE__ */ jsx45(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx45("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx45(React33.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
26376
|
+
/* @__PURE__ */ jsx45(PopoverContent, { className: "w-80 rounded-2xl shadow-2xl border-gray-100 p-4 bg-white/95 backdrop-blur-sm", children: content.map((child) => /* @__PURE__ */ jsx45(React33.Fragment, { children: renderComponent(child) }, child.id)) })
|
|
26327
26377
|
] });
|
|
26328
26378
|
};
|
|
26329
26379
|
|
|
26330
26380
|
// src/atoms/DialogAtom.tsx
|
|
26331
|
-
import
|
|
26381
|
+
import React35 from "react";
|
|
26332
26382
|
|
|
26333
26383
|
// src/components/ui/dialog.tsx
|
|
26334
|
-
import * as
|
|
26384
|
+
import * as React34 from "react";
|
|
26335
26385
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
26336
26386
|
import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
26337
26387
|
var Dialog = DialogPrimitive.Root;
|
|
26338
26388
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
26339
26389
|
var DialogPortal = DialogPrimitive.Portal;
|
|
26340
26390
|
var DialogClose = DialogPrimitive.Close;
|
|
26341
|
-
var DialogOverlay =
|
|
26391
|
+
var DialogOverlay = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
26342
26392
|
DialogPrimitive.Overlay,
|
|
26343
26393
|
{
|
|
26344
26394
|
ref,
|
|
@@ -26350,7 +26400,7 @@ var DialogOverlay = React33.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
26350
26400
|
}
|
|
26351
26401
|
));
|
|
26352
26402
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
26353
|
-
var DialogContent =
|
|
26403
|
+
var DialogContent = React34.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs20(DialogPortal, { children: [
|
|
26354
26404
|
/* @__PURE__ */ jsx46(DialogOverlay, {}),
|
|
26355
26405
|
/* @__PURE__ */ jsxs20(
|
|
26356
26406
|
DialogPrimitive.Content,
|
|
@@ -26400,7 +26450,7 @@ var DialogFooter = ({
|
|
|
26400
26450
|
}
|
|
26401
26451
|
);
|
|
26402
26452
|
DialogFooter.displayName = "DialogFooter";
|
|
26403
|
-
var DialogTitle =
|
|
26453
|
+
var DialogTitle = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
26404
26454
|
DialogPrimitive.Title,
|
|
26405
26455
|
{
|
|
26406
26456
|
ref,
|
|
@@ -26412,7 +26462,7 @@ var DialogTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
26412
26462
|
}
|
|
26413
26463
|
));
|
|
26414
26464
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
26415
|
-
var DialogDescription =
|
|
26465
|
+
var DialogDescription = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
26416
26466
|
DialogPrimitive.Description,
|
|
26417
26467
|
{
|
|
26418
26468
|
ref,
|
|
@@ -26434,23 +26484,23 @@ var DialogAtom = ({
|
|
|
26434
26484
|
renderComponent
|
|
26435
26485
|
}) => {
|
|
26436
26486
|
return /* @__PURE__ */ jsxs21(Dialog, { children: [
|
|
26437
|
-
/* @__PURE__ */ jsx47(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx47("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx47(
|
|
26487
|
+
/* @__PURE__ */ jsx47(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx47("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx47(React35.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
26438
26488
|
/* @__PURE__ */ jsxs21(DialogContent, { className: "sm:max-w-[425px] rounded-3xl p-6 bg-white/95 backdrop-blur-md shadow-3xl border-gray-100", children: [
|
|
26439
26489
|
/* @__PURE__ */ jsxs21(DialogHeader, { children: [
|
|
26440
26490
|
/* @__PURE__ */ jsx47(DialogTitle, { className: "text-xl font-bold bg-gradient-to-r from-purple600 to-indigo-600 bg-clip-text text-transparent", children: title }),
|
|
26441
26491
|
description && /* @__PURE__ */ jsx47(DialogDescription, { className: "text-gray-500 font-medium pt-1", children: description })
|
|
26442
26492
|
] }),
|
|
26443
|
-
/* @__PURE__ */ jsx47("div", { className: "py-4", children: children.map((child) => /* @__PURE__ */ jsx47(
|
|
26444
|
-
footer && /* @__PURE__ */ jsx47(DialogFooter, { className: "pt-2", children: footer.map((child) => /* @__PURE__ */ jsx47(
|
|
26493
|
+
/* @__PURE__ */ jsx47("div", { className: "py-4", children: children.map((child) => /* @__PURE__ */ jsx47(React35.Fragment, { children: renderComponent(child) }, child.id)) }),
|
|
26494
|
+
footer && /* @__PURE__ */ jsx47(DialogFooter, { className: "pt-2", children: footer.map((child) => /* @__PURE__ */ jsx47(React35.Fragment, { children: renderComponent(child) }, child.id)) })
|
|
26445
26495
|
] })
|
|
26446
26496
|
] });
|
|
26447
26497
|
};
|
|
26448
26498
|
|
|
26449
26499
|
// src/atoms/SheetAtom.tsx
|
|
26450
|
-
import
|
|
26500
|
+
import React37 from "react";
|
|
26451
26501
|
|
|
26452
26502
|
// src/components/ui/sheet.tsx
|
|
26453
|
-
import * as
|
|
26503
|
+
import * as React36 from "react";
|
|
26454
26504
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
26455
26505
|
import { cva as cva5 } from "class-variance-authority";
|
|
26456
26506
|
import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
@@ -26458,7 +26508,7 @@ var Sheet2 = SheetPrimitive.Root;
|
|
|
26458
26508
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
26459
26509
|
var SheetClose = SheetPrimitive.Close;
|
|
26460
26510
|
var SheetPortal = SheetPrimitive.Portal;
|
|
26461
|
-
var SheetOverlay =
|
|
26511
|
+
var SheetOverlay = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
26462
26512
|
SheetPrimitive.Overlay,
|
|
26463
26513
|
{
|
|
26464
26514
|
className: cn(
|
|
@@ -26486,7 +26536,7 @@ var sheetVariants = cva5(
|
|
|
26486
26536
|
}
|
|
26487
26537
|
}
|
|
26488
26538
|
);
|
|
26489
|
-
var SheetContent =
|
|
26539
|
+
var SheetContent = React36.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs22(SheetPortal, { children: [
|
|
26490
26540
|
/* @__PURE__ */ jsx48(SheetOverlay, {}),
|
|
26491
26541
|
/* @__PURE__ */ jsxs22(
|
|
26492
26542
|
SheetPrimitive.Content,
|
|
@@ -26533,7 +26583,7 @@ var SheetFooter = ({
|
|
|
26533
26583
|
}
|
|
26534
26584
|
);
|
|
26535
26585
|
SheetFooter.displayName = "SheetFooter";
|
|
26536
|
-
var SheetTitle =
|
|
26586
|
+
var SheetTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
26537
26587
|
SheetPrimitive.Title,
|
|
26538
26588
|
{
|
|
26539
26589
|
ref,
|
|
@@ -26542,7 +26592,7 @@ var SheetTitle = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
26542
26592
|
}
|
|
26543
26593
|
));
|
|
26544
26594
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
26545
|
-
var SheetDescription =
|
|
26595
|
+
var SheetDescription = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
26546
26596
|
SheetPrimitive.Description,
|
|
26547
26597
|
{
|
|
26548
26598
|
ref,
|
|
@@ -26565,7 +26615,7 @@ var SheetAtom = ({
|
|
|
26565
26615
|
renderComponent
|
|
26566
26616
|
}) => {
|
|
26567
26617
|
return /* @__PURE__ */ jsxs23(Sheet2, { children: [
|
|
26568
|
-
/* @__PURE__ */ jsx49(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx49("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx49(
|
|
26618
|
+
/* @__PURE__ */ jsx49(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsx49("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx49(React37.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
26569
26619
|
/* @__PURE__ */ jsxs23(
|
|
26570
26620
|
SheetContent,
|
|
26571
26621
|
{
|
|
@@ -26576,8 +26626,8 @@ var SheetAtom = ({
|
|
|
26576
26626
|
/* @__PURE__ */ jsx49(SheetTitle, { className: "text-xl font-bold text-gray-900", children: title }),
|
|
26577
26627
|
description && /* @__PURE__ */ jsx49(SheetDescription, { className: "text-gray-500 font-medium", children: description })
|
|
26578
26628
|
] }),
|
|
26579
|
-
/* @__PURE__ */ jsx49("div", { className: "py-8", children: children.map((child) => /* @__PURE__ */ jsx49(
|
|
26580
|
-
footer && /* @__PURE__ */ jsx49(SheetFooter, { className: "absolute bottom-6 left-6 right-6", children: footer.map((child) => /* @__PURE__ */ jsx49(
|
|
26629
|
+
/* @__PURE__ */ jsx49("div", { className: "py-8", children: children.map((child) => /* @__PURE__ */ jsx49(React37.Fragment, { children: renderComponent(child) }, child.id)) }),
|
|
26630
|
+
footer && /* @__PURE__ */ jsx49(SheetFooter, { className: "absolute bottom-6 left-6 right-6", children: footer.map((child) => /* @__PURE__ */ jsx49(React37.Fragment, { children: renderComponent(child) }, child.id)) })
|
|
26581
26631
|
]
|
|
26582
26632
|
}
|
|
26583
26633
|
)
|
|
@@ -26585,16 +26635,16 @@ var SheetAtom = ({
|
|
|
26585
26635
|
};
|
|
26586
26636
|
|
|
26587
26637
|
// src/atoms/AlertDialogAtom.tsx
|
|
26588
|
-
import
|
|
26638
|
+
import React39 from "react";
|
|
26589
26639
|
|
|
26590
26640
|
// src/components/ui/alert-dialog.tsx
|
|
26591
|
-
import * as
|
|
26641
|
+
import * as React38 from "react";
|
|
26592
26642
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
26593
26643
|
import { jsx as jsx50, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
26594
26644
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
26595
26645
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
26596
26646
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
26597
|
-
var AlertDialogOverlay =
|
|
26647
|
+
var AlertDialogOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
26598
26648
|
AlertDialogPrimitive.Overlay,
|
|
26599
26649
|
{
|
|
26600
26650
|
className: cn(
|
|
@@ -26606,7 +26656,7 @@ var AlertDialogOverlay = React37.forwardRef(({ className, ...props }, ref) => /*
|
|
|
26606
26656
|
}
|
|
26607
26657
|
));
|
|
26608
26658
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
26609
|
-
var AlertDialogContent =
|
|
26659
|
+
var AlertDialogContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs24(AlertDialogPortal, { children: [
|
|
26610
26660
|
/* @__PURE__ */ jsx50(AlertDialogOverlay, {}),
|
|
26611
26661
|
/* @__PURE__ */ jsx50(
|
|
26612
26662
|
AlertDialogPrimitive.Content,
|
|
@@ -26649,7 +26699,7 @@ var AlertDialogFooter = ({
|
|
|
26649
26699
|
}
|
|
26650
26700
|
);
|
|
26651
26701
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
26652
|
-
var AlertDialogTitle =
|
|
26702
|
+
var AlertDialogTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
26653
26703
|
AlertDialogPrimitive.Title,
|
|
26654
26704
|
{
|
|
26655
26705
|
ref,
|
|
@@ -26658,7 +26708,7 @@ var AlertDialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
26658
26708
|
}
|
|
26659
26709
|
));
|
|
26660
26710
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
26661
|
-
var AlertDialogDescription =
|
|
26711
|
+
var AlertDialogDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
26662
26712
|
AlertDialogPrimitive.Description,
|
|
26663
26713
|
{
|
|
26664
26714
|
ref,
|
|
@@ -26667,7 +26717,7 @@ var AlertDialogDescription = React37.forwardRef(({ className, ...props }, ref) =
|
|
|
26667
26717
|
}
|
|
26668
26718
|
));
|
|
26669
26719
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
26670
|
-
var AlertDialogAction =
|
|
26720
|
+
var AlertDialogAction = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
26671
26721
|
AlertDialogPrimitive.Action,
|
|
26672
26722
|
{
|
|
26673
26723
|
ref,
|
|
@@ -26676,7 +26726,7 @@ var AlertDialogAction = React37.forwardRef(({ className, ...props }, ref) => /*
|
|
|
26676
26726
|
}
|
|
26677
26727
|
));
|
|
26678
26728
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
26679
|
-
var AlertDialogCancel =
|
|
26729
|
+
var AlertDialogCancel = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
26680
26730
|
AlertDialogPrimitive.Cancel,
|
|
26681
26731
|
{
|
|
26682
26732
|
ref,
|
|
@@ -26704,7 +26754,7 @@ var AlertDialogAtom = ({
|
|
|
26704
26754
|
renderComponent
|
|
26705
26755
|
}) => {
|
|
26706
26756
|
return /* @__PURE__ */ jsxs25(AlertDialog, { children: [
|
|
26707
|
-
/* @__PURE__ */ jsx51(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx51("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx51(
|
|
26757
|
+
/* @__PURE__ */ jsx51(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx51("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ jsx51(React39.Fragment, { children: renderComponent(child) }, child.id)) }) }),
|
|
26708
26758
|
/* @__PURE__ */ jsxs25(AlertDialogContent, { className: "rounded-3xl p-6 bg-white shadow-3xl border-gray-100", children: [
|
|
26709
26759
|
/* @__PURE__ */ jsxs25(AlertDialogHeader, { children: [
|
|
26710
26760
|
/* @__PURE__ */ jsx51(AlertDialogTitle, { className: "text-lg font-bold text-gray-900", children: title }),
|
|
@@ -26726,15 +26776,15 @@ var AlertDialogAtom = ({
|
|
|
26726
26776
|
};
|
|
26727
26777
|
|
|
26728
26778
|
// src/atoms/BreadcrumbAtom.tsx
|
|
26729
|
-
import
|
|
26779
|
+
import React41 from "react";
|
|
26730
26780
|
|
|
26731
26781
|
// src/components/ui/breadcrumb.tsx
|
|
26732
|
-
import * as
|
|
26782
|
+
import * as React40 from "react";
|
|
26733
26783
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
26734
26784
|
import { jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
26735
|
-
var Breadcrumb =
|
|
26785
|
+
var Breadcrumb = React40.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx52("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
26736
26786
|
Breadcrumb.displayName = "Breadcrumb";
|
|
26737
|
-
var BreadcrumbList =
|
|
26787
|
+
var BreadcrumbList = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
26738
26788
|
"ol",
|
|
26739
26789
|
{
|
|
26740
26790
|
ref,
|
|
@@ -26746,7 +26796,7 @@ var BreadcrumbList = React39.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
26746
26796
|
}
|
|
26747
26797
|
));
|
|
26748
26798
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
26749
|
-
var BreadcrumbItem =
|
|
26799
|
+
var BreadcrumbItem = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
26750
26800
|
"li",
|
|
26751
26801
|
{
|
|
26752
26802
|
ref,
|
|
@@ -26755,7 +26805,7 @@ var BreadcrumbItem = React39.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
26755
26805
|
}
|
|
26756
26806
|
));
|
|
26757
26807
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
26758
|
-
var BreadcrumbLink =
|
|
26808
|
+
var BreadcrumbLink = React40.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
26759
26809
|
const Comp = asChild ? Slot2 : "a";
|
|
26760
26810
|
return /* @__PURE__ */ jsx52(
|
|
26761
26811
|
Comp,
|
|
@@ -26767,7 +26817,7 @@ var BreadcrumbLink = React39.forwardRef(({ asChild, className, ...props }, ref)
|
|
|
26767
26817
|
);
|
|
26768
26818
|
});
|
|
26769
26819
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
26770
|
-
var BreadcrumbPage =
|
|
26820
|
+
var BreadcrumbPage = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
26771
26821
|
"span",
|
|
26772
26822
|
{
|
|
26773
26823
|
ref,
|
|
@@ -26818,7 +26868,7 @@ var BreadcrumbAtom = ({
|
|
|
26818
26868
|
items,
|
|
26819
26869
|
className
|
|
26820
26870
|
}) => {
|
|
26821
|
-
return /* @__PURE__ */ jsx53(Breadcrumb, { className, children: /* @__PURE__ */ jsx53(BreadcrumbList, { children: items.map((item, index) => /* @__PURE__ */ jsxs27(
|
|
26871
|
+
return /* @__PURE__ */ jsx53(Breadcrumb, { className, children: /* @__PURE__ */ jsx53(BreadcrumbList, { children: items.map((item, index) => /* @__PURE__ */ jsxs27(React41.Fragment, { children: [
|
|
26822
26872
|
/* @__PURE__ */ jsx53(BreadcrumbItem, { children: item.isCurrent ? /* @__PURE__ */ jsx53(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ jsx53(BreadcrumbLink, { href: item.href || "#", children: item.label }) }),
|
|
26823
26873
|
index < items.length - 1 && /* @__PURE__ */ jsx53(BreadcrumbSeparator, {})
|
|
26824
26874
|
] }, index)) }) });
|
|
@@ -26857,7 +26907,7 @@ var SpinnerAtom = ({
|
|
|
26857
26907
|
};
|
|
26858
26908
|
|
|
26859
26909
|
// src/components/ui/calendar.tsx
|
|
26860
|
-
import * as
|
|
26910
|
+
import * as React69 from "react";
|
|
26861
26911
|
|
|
26862
26912
|
// node_modules/@date-fns/tz/tzName/index.js
|
|
26863
26913
|
function tzName(timeZone, date, format2 = "long") {
|
|
@@ -29310,55 +29360,55 @@ __export(custom_components_exports, {
|
|
|
29310
29360
|
});
|
|
29311
29361
|
|
|
29312
29362
|
// node_modules/react-day-picker/dist/esm/components/Button.js
|
|
29313
|
-
import
|
|
29363
|
+
import React42 from "react";
|
|
29314
29364
|
function Button2(props) {
|
|
29315
|
-
return
|
|
29365
|
+
return React42.createElement("button", { ...props });
|
|
29316
29366
|
}
|
|
29317
29367
|
|
|
29318
29368
|
// node_modules/react-day-picker/dist/esm/components/CaptionLabel.js
|
|
29319
|
-
import
|
|
29369
|
+
import React43 from "react";
|
|
29320
29370
|
function CaptionLabel(props) {
|
|
29321
|
-
return
|
|
29371
|
+
return React43.createElement("span", { ...props });
|
|
29322
29372
|
}
|
|
29323
29373
|
|
|
29324
29374
|
// node_modules/react-day-picker/dist/esm/components/Chevron.js
|
|
29325
|
-
import
|
|
29375
|
+
import React44 from "react";
|
|
29326
29376
|
function Chevron(props) {
|
|
29327
29377
|
const { size = 24, orientation = "left", className } = props;
|
|
29328
29378
|
return (
|
|
29329
29379
|
// biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
|
|
29330
|
-
|
|
29380
|
+
React44.createElement(
|
|
29331
29381
|
"svg",
|
|
29332
29382
|
{ className, width: size, height: size, viewBox: "0 0 24 24" },
|
|
29333
|
-
orientation === "up" &&
|
|
29334
|
-
orientation === "down" &&
|
|
29335
|
-
orientation === "left" &&
|
|
29336
|
-
orientation === "right" &&
|
|
29383
|
+
orientation === "up" && React44.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
|
|
29384
|
+
orientation === "down" && React44.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
|
|
29385
|
+
orientation === "left" && React44.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
|
|
29386
|
+
orientation === "right" && React44.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
|
|
29337
29387
|
)
|
|
29338
29388
|
);
|
|
29339
29389
|
}
|
|
29340
29390
|
|
|
29341
29391
|
// node_modules/react-day-picker/dist/esm/components/Day.js
|
|
29342
|
-
import
|
|
29392
|
+
import React45 from "react";
|
|
29343
29393
|
function Day(props) {
|
|
29344
29394
|
const { day, modifiers, ...tdProps } = props;
|
|
29345
|
-
return
|
|
29395
|
+
return React45.createElement("td", { ...tdProps });
|
|
29346
29396
|
}
|
|
29347
29397
|
|
|
29348
29398
|
// node_modules/react-day-picker/dist/esm/components/DayButton.js
|
|
29349
|
-
import
|
|
29399
|
+
import React46 from "react";
|
|
29350
29400
|
function DayButton(props) {
|
|
29351
29401
|
const { day, modifiers, ...buttonProps } = props;
|
|
29352
|
-
const ref =
|
|
29353
|
-
|
|
29402
|
+
const ref = React46.useRef(null);
|
|
29403
|
+
React46.useEffect(() => {
|
|
29354
29404
|
if (modifiers.focused)
|
|
29355
29405
|
ref.current?.focus();
|
|
29356
29406
|
}, [modifiers.focused]);
|
|
29357
|
-
return
|
|
29407
|
+
return React46.createElement("button", { ref, ...buttonProps });
|
|
29358
29408
|
}
|
|
29359
29409
|
|
|
29360
29410
|
// node_modules/react-day-picker/dist/esm/components/Dropdown.js
|
|
29361
|
-
import
|
|
29411
|
+
import React47 from "react";
|
|
29362
29412
|
|
|
29363
29413
|
// node_modules/react-day-picker/dist/esm/UI.js
|
|
29364
29414
|
var UI;
|
|
@@ -29420,59 +29470,59 @@ function Dropdown(props) {
|
|
|
29420
29470
|
const { options, className, components, classNames, ...selectProps } = props;
|
|
29421
29471
|
const cssClassSelect = [classNames[UI.Dropdown], className].join(" ");
|
|
29422
29472
|
const selectedOption = options?.find(({ value }) => value === selectProps.value);
|
|
29423
|
-
return
|
|
29473
|
+
return React47.createElement(
|
|
29424
29474
|
"span",
|
|
29425
29475
|
{ "data-disabled": selectProps.disabled, className: classNames[UI.DropdownRoot] },
|
|
29426
|
-
|
|
29427
|
-
|
|
29476
|
+
React47.createElement(components.Select, { className: cssClassSelect, ...selectProps }, options?.map(({ value, label, disabled }) => React47.createElement(components.Option, { key: value, value, disabled }, label))),
|
|
29477
|
+
React47.createElement(
|
|
29428
29478
|
"span",
|
|
29429
29479
|
{ className: classNames[UI.CaptionLabel], "aria-hidden": true },
|
|
29430
29480
|
selectedOption?.label,
|
|
29431
|
-
|
|
29481
|
+
React47.createElement(components.Chevron, { orientation: "down", size: 18, className: classNames[UI.Chevron] })
|
|
29432
29482
|
)
|
|
29433
29483
|
);
|
|
29434
29484
|
}
|
|
29435
29485
|
|
|
29436
29486
|
// node_modules/react-day-picker/dist/esm/components/DropdownNav.js
|
|
29437
|
-
import
|
|
29487
|
+
import React48 from "react";
|
|
29438
29488
|
function DropdownNav(props) {
|
|
29439
|
-
return
|
|
29489
|
+
return React48.createElement("div", { ...props });
|
|
29440
29490
|
}
|
|
29441
29491
|
|
|
29442
29492
|
// node_modules/react-day-picker/dist/esm/components/Footer.js
|
|
29443
|
-
import
|
|
29493
|
+
import React49 from "react";
|
|
29444
29494
|
function Footer(props) {
|
|
29445
|
-
return
|
|
29495
|
+
return React49.createElement("div", { ...props });
|
|
29446
29496
|
}
|
|
29447
29497
|
|
|
29448
29498
|
// node_modules/react-day-picker/dist/esm/components/Month.js
|
|
29449
|
-
import
|
|
29499
|
+
import React50 from "react";
|
|
29450
29500
|
function Month(props) {
|
|
29451
29501
|
const { calendarMonth, displayIndex, ...divProps } = props;
|
|
29452
|
-
return
|
|
29502
|
+
return React50.createElement("div", { ...divProps }, props.children);
|
|
29453
29503
|
}
|
|
29454
29504
|
|
|
29455
29505
|
// node_modules/react-day-picker/dist/esm/components/MonthCaption.js
|
|
29456
|
-
import
|
|
29506
|
+
import React51 from "react";
|
|
29457
29507
|
function MonthCaption(props) {
|
|
29458
29508
|
const { calendarMonth, displayIndex, ...divProps } = props;
|
|
29459
|
-
return
|
|
29509
|
+
return React51.createElement("div", { ...divProps });
|
|
29460
29510
|
}
|
|
29461
29511
|
|
|
29462
29512
|
// node_modules/react-day-picker/dist/esm/components/MonthGrid.js
|
|
29463
|
-
import
|
|
29513
|
+
import React52 from "react";
|
|
29464
29514
|
function MonthGrid(props) {
|
|
29465
|
-
return
|
|
29515
|
+
return React52.createElement("table", { ...props });
|
|
29466
29516
|
}
|
|
29467
29517
|
|
|
29468
29518
|
// node_modules/react-day-picker/dist/esm/components/Months.js
|
|
29469
|
-
import
|
|
29519
|
+
import React53 from "react";
|
|
29470
29520
|
function Months(props) {
|
|
29471
|
-
return
|
|
29521
|
+
return React53.createElement("div", { ...props });
|
|
29472
29522
|
}
|
|
29473
29523
|
|
|
29474
29524
|
// node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
|
|
29475
|
-
import
|
|
29525
|
+
import React54 from "react";
|
|
29476
29526
|
|
|
29477
29527
|
// node_modules/react-day-picker/dist/esm/useDayPicker.js
|
|
29478
29528
|
import { createContext as createContext2, useContext as useContext3 } from "react";
|
|
@@ -29488,11 +29538,11 @@ function useDayPicker() {
|
|
|
29488
29538
|
// node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
|
|
29489
29539
|
function MonthsDropdown(props) {
|
|
29490
29540
|
const { components } = useDayPicker();
|
|
29491
|
-
return
|
|
29541
|
+
return React54.createElement(components.Dropdown, { ...props });
|
|
29492
29542
|
}
|
|
29493
29543
|
|
|
29494
29544
|
// node_modules/react-day-picker/dist/esm/components/Nav.js
|
|
29495
|
-
import
|
|
29545
|
+
import React55, { useCallback as useCallback2 } from "react";
|
|
29496
29546
|
function Nav(props) {
|
|
29497
29547
|
const { onPreviousClick, onNextClick, previousMonth, nextMonth, ...navProps } = props;
|
|
29498
29548
|
const { components, classNames, labels: { labelPrevious: labelPrevious2, labelNext: labelNext2 } } = useDayPicker();
|
|
@@ -29506,106 +29556,106 @@ function Nav(props) {
|
|
|
29506
29556
|
onPreviousClick?.(e);
|
|
29507
29557
|
}
|
|
29508
29558
|
}, [previousMonth, onPreviousClick]);
|
|
29509
|
-
return
|
|
29559
|
+
return React55.createElement(
|
|
29510
29560
|
"nav",
|
|
29511
29561
|
{ ...navProps },
|
|
29512
|
-
|
|
29562
|
+
React55.createElement(
|
|
29513
29563
|
components.PreviousMonthButton,
|
|
29514
29564
|
{ type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick },
|
|
29515
|
-
|
|
29565
|
+
React55.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: "left" })
|
|
29516
29566
|
),
|
|
29517
|
-
|
|
29567
|
+
React55.createElement(
|
|
29518
29568
|
components.NextMonthButton,
|
|
29519
29569
|
{ type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick },
|
|
29520
|
-
|
|
29570
|
+
React55.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, orientation: "right", className: classNames[UI.Chevron] })
|
|
29521
29571
|
)
|
|
29522
29572
|
);
|
|
29523
29573
|
}
|
|
29524
29574
|
|
|
29525
29575
|
// node_modules/react-day-picker/dist/esm/components/NextMonthButton.js
|
|
29526
|
-
import
|
|
29576
|
+
import React56 from "react";
|
|
29527
29577
|
function NextMonthButton(props) {
|
|
29528
29578
|
const { components } = useDayPicker();
|
|
29529
|
-
return
|
|
29579
|
+
return React56.createElement(components.Button, { ...props });
|
|
29530
29580
|
}
|
|
29531
29581
|
|
|
29532
29582
|
// node_modules/react-day-picker/dist/esm/components/Option.js
|
|
29533
|
-
import
|
|
29583
|
+
import React57 from "react";
|
|
29534
29584
|
function Option2(props) {
|
|
29535
|
-
return
|
|
29585
|
+
return React57.createElement("option", { ...props });
|
|
29536
29586
|
}
|
|
29537
29587
|
|
|
29538
29588
|
// node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js
|
|
29539
|
-
import
|
|
29589
|
+
import React58 from "react";
|
|
29540
29590
|
function PreviousMonthButton(props) {
|
|
29541
29591
|
const { components } = useDayPicker();
|
|
29542
|
-
return
|
|
29592
|
+
return React58.createElement(components.Button, { ...props });
|
|
29543
29593
|
}
|
|
29544
29594
|
|
|
29545
29595
|
// node_modules/react-day-picker/dist/esm/components/Root.js
|
|
29546
|
-
import
|
|
29596
|
+
import React59 from "react";
|
|
29547
29597
|
function Root20(props) {
|
|
29548
29598
|
const { rootRef, ...rest } = props;
|
|
29549
|
-
return
|
|
29599
|
+
return React59.createElement("div", { ...rest, ref: rootRef });
|
|
29550
29600
|
}
|
|
29551
29601
|
|
|
29552
29602
|
// node_modules/react-day-picker/dist/esm/components/Select.js
|
|
29553
|
-
import
|
|
29603
|
+
import React60 from "react";
|
|
29554
29604
|
function Select2(props) {
|
|
29555
|
-
return
|
|
29605
|
+
return React60.createElement("select", { ...props });
|
|
29556
29606
|
}
|
|
29557
29607
|
|
|
29558
29608
|
// node_modules/react-day-picker/dist/esm/components/Week.js
|
|
29559
|
-
import
|
|
29609
|
+
import React61 from "react";
|
|
29560
29610
|
function Week(props) {
|
|
29561
29611
|
const { week, ...trProps } = props;
|
|
29562
|
-
return
|
|
29612
|
+
return React61.createElement("tr", { ...trProps });
|
|
29563
29613
|
}
|
|
29564
29614
|
|
|
29565
29615
|
// node_modules/react-day-picker/dist/esm/components/Weekday.js
|
|
29566
|
-
import
|
|
29616
|
+
import React62 from "react";
|
|
29567
29617
|
function Weekday(props) {
|
|
29568
|
-
return
|
|
29618
|
+
return React62.createElement("th", { ...props });
|
|
29569
29619
|
}
|
|
29570
29620
|
|
|
29571
29621
|
// node_modules/react-day-picker/dist/esm/components/Weekdays.js
|
|
29572
|
-
import
|
|
29622
|
+
import React63 from "react";
|
|
29573
29623
|
function Weekdays(props) {
|
|
29574
|
-
return
|
|
29624
|
+
return React63.createElement(
|
|
29575
29625
|
"thead",
|
|
29576
29626
|
{ "aria-hidden": true },
|
|
29577
|
-
|
|
29627
|
+
React63.createElement("tr", { ...props })
|
|
29578
29628
|
);
|
|
29579
29629
|
}
|
|
29580
29630
|
|
|
29581
29631
|
// node_modules/react-day-picker/dist/esm/components/WeekNumber.js
|
|
29582
|
-
import
|
|
29632
|
+
import React64 from "react";
|
|
29583
29633
|
function WeekNumber(props) {
|
|
29584
29634
|
const { week, ...thProps } = props;
|
|
29585
|
-
return
|
|
29635
|
+
return React64.createElement("th", { ...thProps });
|
|
29586
29636
|
}
|
|
29587
29637
|
|
|
29588
29638
|
// node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js
|
|
29589
|
-
import
|
|
29639
|
+
import React65 from "react";
|
|
29590
29640
|
function WeekNumberHeader(props) {
|
|
29591
|
-
return
|
|
29641
|
+
return React65.createElement("th", { ...props });
|
|
29592
29642
|
}
|
|
29593
29643
|
|
|
29594
29644
|
// node_modules/react-day-picker/dist/esm/components/Weeks.js
|
|
29595
|
-
import
|
|
29645
|
+
import React66 from "react";
|
|
29596
29646
|
function Weeks(props) {
|
|
29597
|
-
return
|
|
29647
|
+
return React66.createElement("tbody", { ...props });
|
|
29598
29648
|
}
|
|
29599
29649
|
|
|
29600
29650
|
// node_modules/react-day-picker/dist/esm/components/YearsDropdown.js
|
|
29601
|
-
import
|
|
29651
|
+
import React67 from "react";
|
|
29602
29652
|
function YearsDropdown(props) {
|
|
29603
29653
|
const { components } = useDayPicker();
|
|
29604
|
-
return
|
|
29654
|
+
return React67.createElement(components.Dropdown, { ...props });
|
|
29605
29655
|
}
|
|
29606
29656
|
|
|
29607
29657
|
// node_modules/react-day-picker/dist/esm/DayPicker.js
|
|
29608
|
-
import
|
|
29658
|
+
import React68, { useCallback as useCallback3, useMemo as useMemo2, useRef as useRef2 } from "react";
|
|
29609
29659
|
|
|
29610
29660
|
// node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
|
|
29611
29661
|
function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {
|
|
@@ -31247,18 +31297,18 @@ function DayPicker(initialProps) {
|
|
|
31247
31297
|
labels,
|
|
31248
31298
|
formatters: formatters2
|
|
31249
31299
|
};
|
|
31250
|
-
return
|
|
31300
|
+
return React68.createElement(
|
|
31251
31301
|
dayPickerContext.Provider,
|
|
31252
31302
|
{ value: contextValue },
|
|
31253
|
-
|
|
31303
|
+
React68.createElement(
|
|
31254
31304
|
components.Root,
|
|
31255
31305
|
{ rootRef: props.animate ? rootElRef : void 0, className, style, dir: props.dir, id: props.id, lang: props.lang, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], ...dataAttributes },
|
|
31256
|
-
|
|
31306
|
+
React68.createElement(
|
|
31257
31307
|
components.Months,
|
|
31258
31308
|
{ className: classNames[UI.Months], style: styles?.[UI.Months] },
|
|
31259
|
-
!props.hideNavigation && !navLayout &&
|
|
31309
|
+
!props.hideNavigation && !navLayout && React68.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
|
|
31260
31310
|
months.map((calendarMonth, displayIndex) => {
|
|
31261
|
-
return
|
|
31311
|
+
return React68.createElement(
|
|
31262
31312
|
components.Month,
|
|
31263
31313
|
{
|
|
31264
31314
|
"data-animated-month": props.animate ? "true" : void 0,
|
|
@@ -31269,21 +31319,21 @@ function DayPicker(initialProps) {
|
|
|
31269
31319
|
displayIndex,
|
|
31270
31320
|
calendarMonth
|
|
31271
31321
|
},
|
|
31272
|
-
navLayout === "around" && !props.hideNavigation && displayIndex === 0 &&
|
|
31322
|
+
navLayout === "around" && !props.hideNavigation && displayIndex === 0 && React68.createElement(
|
|
31273
31323
|
components.PreviousMonthButton,
|
|
31274
31324
|
{ type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
31275
|
-
|
|
31325
|
+
React68.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" })
|
|
31276
31326
|
),
|
|
31277
|
-
|
|
31327
|
+
React68.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : void 0, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth, displayIndex }, captionLayout?.startsWith("dropdown") ? React68.createElement(
|
|
31278
31328
|
components.DropdownNav,
|
|
31279
31329
|
{ className: classNames[UI.Dropdowns], style: styles?.[UI.Dropdowns] },
|
|
31280
31330
|
(() => {
|
|
31281
|
-
const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ?
|
|
31282
|
-
const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ?
|
|
31331
|
+
const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ? React68.createElement(components.MonthsDropdown, { key: "month", className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters2, dateLib), style: styles?.[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) }) : React68.createElement("span", { key: "month" }, formatMonthDropdown2(calendarMonth.date, dateLib));
|
|
31332
|
+
const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React68.createElement(components.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters2, dateLib, Boolean(props.reverseYears)), style: styles?.[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : React68.createElement("span", { key: "year" }, formatYearDropdown2(calendarMonth.date, dateLib));
|
|
31283
31333
|
const controls = dateLib.getMonthYearOrder() === "year-first" ? [yearControl, monthControl] : [monthControl, yearControl];
|
|
31284
31334
|
return controls;
|
|
31285
31335
|
})(),
|
|
31286
|
-
|
|
31336
|
+
React68.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
31287
31337
|
border: 0,
|
|
31288
31338
|
clip: "rect(0 0 0 0)",
|
|
31289
31339
|
height: "1px",
|
|
@@ -31295,27 +31345,27 @@ function DayPicker(initialProps) {
|
|
|
31295
31345
|
whiteSpace: "nowrap",
|
|
31296
31346
|
wordWrap: "normal"
|
|
31297
31347
|
} }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))
|
|
31298
|
-
) :
|
|
31299
|
-
navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 &&
|
|
31348
|
+
) : React68.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))),
|
|
31349
|
+
navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 && React68.createElement(
|
|
31300
31350
|
components.NextMonthButton,
|
|
31301
31351
|
{ type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick, "data-animated-button": props.animate ? "true" : void 0 },
|
|
31302
|
-
|
|
31352
|
+
React68.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" })
|
|
31303
31353
|
),
|
|
31304
|
-
displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation &&
|
|
31305
|
-
|
|
31354
|
+
displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation && React68.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
|
|
31355
|
+
React68.createElement(
|
|
31306
31356
|
components.MonthGrid,
|
|
31307
31357
|
{ role: "grid", "aria-multiselectable": mode === "multiple" || mode === "range", "aria-label": labelGrid2(calendarMonth.date, dateLib.options, dateLib) || void 0, className: classNames[UI.MonthGrid], style: styles?.[UI.MonthGrid] },
|
|
31308
|
-
!props.hideWeekdays &&
|
|
31358
|
+
!props.hideWeekdays && React68.createElement(
|
|
31309
31359
|
components.Weekdays,
|
|
31310
31360
|
{ "data-animated-weekdays": props.animate ? "true" : void 0, className: classNames[UI.Weekdays], style: styles?.[UI.Weekdays] },
|
|
31311
|
-
showWeekNumber &&
|
|
31312
|
-
weekdays.map((weekday) =>
|
|
31361
|
+
showWeekNumber && React68.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader2(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader2()),
|
|
31362
|
+
weekdays.map((weekday) => React68.createElement(components.Weekday, { "aria-label": labelWeekday2(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: "col" }, formatWeekdayName2(weekday, dateLib.options, dateLib)))
|
|
31313
31363
|
),
|
|
31314
|
-
|
|
31315
|
-
return
|
|
31364
|
+
React68.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
|
|
31365
|
+
return React68.createElement(
|
|
31316
31366
|
components.Week,
|
|
31317
31367
|
{ className: classNames[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week },
|
|
31318
|
-
showWeekNumber &&
|
|
31368
|
+
showWeekNumber && React68.createElement(components.WeekNumber, { week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber2(week.weekNumber, {
|
|
31319
31369
|
locale
|
|
31320
31370
|
}), className: classNames[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber2(week.weekNumber, dateLib)),
|
|
31321
31371
|
week.days.map((day) => {
|
|
@@ -31332,7 +31382,7 @@ function DayPicker(initialProps) {
|
|
|
31332
31382
|
const style2 = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
|
|
31333
31383
|
const className2 = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);
|
|
31334
31384
|
const ariaLabel = !isInteractive && !modifiers.hidden ? labelGridcell2(date, modifiers, dateLib.options, dateLib) : void 0;
|
|
31335
|
-
return
|
|
31385
|
+
return React68.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day, modifiers, className: className2.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || void 0, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : void 0, "data-selected": modifiers.selected || void 0, "data-disabled": modifiers.disabled || void 0, "data-hidden": modifiers.hidden || void 0, "data-outside": day.outside || void 0, "data-focused": modifiers.focused || void 0, "data-today": modifiers.today || void 0 }, !modifiers.hidden && isInteractive ? React68.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day, modifiers, disabled: !modifiers.focused && modifiers.disabled || void 0, "aria-disabled": modifiers.focused && modifiers.disabled || void 0, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton2(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay2(date, dateLib.options, dateLib)) : !modifiers.hidden && formatDay2(day.date, dateLib.options, dateLib));
|
|
31336
31386
|
})
|
|
31337
31387
|
);
|
|
31338
31388
|
}))
|
|
@@ -31340,7 +31390,7 @@ function DayPicker(initialProps) {
|
|
|
31340
31390
|
);
|
|
31341
31391
|
})
|
|
31342
31392
|
),
|
|
31343
|
-
props.footer &&
|
|
31393
|
+
props.footer && React68.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)
|
|
31344
31394
|
)
|
|
31345
31395
|
);
|
|
31346
31396
|
}
|
|
@@ -31499,8 +31549,8 @@ function CalendarDayButton({
|
|
|
31499
31549
|
...props
|
|
31500
31550
|
}) {
|
|
31501
31551
|
const defaultClassNames = getDefaultClassNames();
|
|
31502
|
-
const ref =
|
|
31503
|
-
|
|
31552
|
+
const ref = React69.useRef(null);
|
|
31553
|
+
React69.useEffect(() => {
|
|
31504
31554
|
if (modifiers.focused) ref.current?.focus();
|
|
31505
31555
|
}, [modifiers.focused]);
|
|
31506
31556
|
return /* @__PURE__ */ jsx55(
|
|
@@ -31557,7 +31607,7 @@ var CalendarAtom = ({
|
|
|
31557
31607
|
};
|
|
31558
31608
|
|
|
31559
31609
|
// src/components/ui/pagination.tsx
|
|
31560
|
-
import * as
|
|
31610
|
+
import * as React70 from "react";
|
|
31561
31611
|
import { jsx as jsx57, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
31562
31612
|
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx57(
|
|
31563
31613
|
"nav",
|
|
@@ -31569,7 +31619,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx57(
|
|
|
31569
31619
|
}
|
|
31570
31620
|
);
|
|
31571
31621
|
Pagination.displayName = "Pagination";
|
|
31572
|
-
var PaginationContent =
|
|
31622
|
+
var PaginationContent = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx57(
|
|
31573
31623
|
"ul",
|
|
31574
31624
|
{
|
|
31575
31625
|
ref,
|
|
@@ -31578,7 +31628,7 @@ var PaginationContent = React69.forwardRef(({ className, ...props }, ref) => /*
|
|
|
31578
31628
|
}
|
|
31579
31629
|
));
|
|
31580
31630
|
PaginationContent.displayName = "PaginationContent";
|
|
31581
|
-
var PaginationItem =
|
|
31631
|
+
var PaginationItem = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx57("li", { ref, className: cn("", className), ...props }));
|
|
31582
31632
|
PaginationItem.displayName = "PaginationItem";
|
|
31583
31633
|
var PaginationLink = ({
|
|
31584
31634
|
className,
|
|
@@ -31669,13 +31719,13 @@ var PaginationAtom = ({
|
|
|
31669
31719
|
};
|
|
31670
31720
|
|
|
31671
31721
|
// src/atoms/CommandAtom.tsx
|
|
31672
|
-
import
|
|
31722
|
+
import React72 from "react";
|
|
31673
31723
|
|
|
31674
31724
|
// src/components/ui/command.tsx
|
|
31675
|
-
import * as
|
|
31725
|
+
import * as React71 from "react";
|
|
31676
31726
|
import { Command as CommandPrimitive } from "cmdk";
|
|
31677
31727
|
import { jsx as jsx59, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
31678
|
-
var Command2 =
|
|
31728
|
+
var Command2 = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx59(
|
|
31679
31729
|
CommandPrimitive,
|
|
31680
31730
|
{
|
|
31681
31731
|
ref,
|
|
@@ -31690,7 +31740,7 @@ Command2.displayName = CommandPrimitive.displayName;
|
|
|
31690
31740
|
var CommandDialog = ({ children, ...props }) => {
|
|
31691
31741
|
return /* @__PURE__ */ jsx59(Dialog, { ...props, children: /* @__PURE__ */ jsx59(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx59(Command2, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
31692
31742
|
};
|
|
31693
|
-
var CommandInput =
|
|
31743
|
+
var CommandInput = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs30("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
31694
31744
|
/* @__PURE__ */ jsx59(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
31695
31745
|
/* @__PURE__ */ jsx59(
|
|
31696
31746
|
CommandPrimitive.Input,
|
|
@@ -31705,7 +31755,7 @@ var CommandInput = React70.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
31705
31755
|
)
|
|
31706
31756
|
] }));
|
|
31707
31757
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
31708
|
-
var CommandList =
|
|
31758
|
+
var CommandList = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx59(
|
|
31709
31759
|
CommandPrimitive.List,
|
|
31710
31760
|
{
|
|
31711
31761
|
ref,
|
|
@@ -31714,7 +31764,7 @@ var CommandList = React70.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
31714
31764
|
}
|
|
31715
31765
|
));
|
|
31716
31766
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
31717
|
-
var CommandEmpty =
|
|
31767
|
+
var CommandEmpty = React71.forwardRef((props, ref) => /* @__PURE__ */ jsx59(
|
|
31718
31768
|
CommandPrimitive.Empty,
|
|
31719
31769
|
{
|
|
31720
31770
|
ref,
|
|
@@ -31723,7 +31773,7 @@ var CommandEmpty = React70.forwardRef((props, ref) => /* @__PURE__ */ jsx59(
|
|
|
31723
31773
|
}
|
|
31724
31774
|
));
|
|
31725
31775
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
31726
|
-
var CommandGroup =
|
|
31776
|
+
var CommandGroup = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx59(
|
|
31727
31777
|
CommandPrimitive.Group,
|
|
31728
31778
|
{
|
|
31729
31779
|
ref,
|
|
@@ -31735,7 +31785,7 @@ var CommandGroup = React70.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
31735
31785
|
}
|
|
31736
31786
|
));
|
|
31737
31787
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
31738
|
-
var CommandSeparator =
|
|
31788
|
+
var CommandSeparator = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx59(
|
|
31739
31789
|
CommandPrimitive.Separator,
|
|
31740
31790
|
{
|
|
31741
31791
|
ref,
|
|
@@ -31744,7 +31794,7 @@ var CommandSeparator = React70.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
31744
31794
|
}
|
|
31745
31795
|
));
|
|
31746
31796
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
31747
|
-
var CommandItem =
|
|
31797
|
+
var CommandItem = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx59(
|
|
31748
31798
|
CommandPrimitive.Item,
|
|
31749
31799
|
{
|
|
31750
31800
|
ref,
|
|
@@ -31791,7 +31841,7 @@ var CommandAtom = ({
|
|
|
31791
31841
|
/* @__PURE__ */ jsx60(CommandInput, { placeholder }),
|
|
31792
31842
|
/* @__PURE__ */ jsxs31(CommandList, { children: [
|
|
31793
31843
|
/* @__PURE__ */ jsx60(CommandEmpty, { children: "No results found." }),
|
|
31794
|
-
groups.map((group, i) => /* @__PURE__ */ jsxs31(
|
|
31844
|
+
groups.map((group, i) => /* @__PURE__ */ jsxs31(React72.Fragment, { children: [
|
|
31795
31845
|
/* @__PURE__ */ jsx60(CommandGroup, { heading: group.heading, children: group.items.map((item, j) => /* @__PURE__ */ jsx60(CommandItem, { value: item.value, children: /* @__PURE__ */ jsx60("span", { children: item.label }) }, j)) }),
|
|
31796
31846
|
i < groups.length - 1 && /* @__PURE__ */ jsx60(CommandSeparator, {})
|
|
31797
31847
|
] }, i))
|
|
@@ -31802,7 +31852,7 @@ var CommandAtom = ({
|
|
|
31802
31852
|
};
|
|
31803
31853
|
|
|
31804
31854
|
// src/components/ui/form.tsx
|
|
31805
|
-
import * as
|
|
31855
|
+
import * as React73 from "react";
|
|
31806
31856
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
31807
31857
|
import {
|
|
31808
31858
|
Controller,
|
|
@@ -31811,15 +31861,15 @@ import {
|
|
|
31811
31861
|
} from "react-hook-form";
|
|
31812
31862
|
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
31813
31863
|
var Form = FormProvider;
|
|
31814
|
-
var FormFieldContext =
|
|
31864
|
+
var FormFieldContext = React73.createContext(null);
|
|
31815
31865
|
var FormField = ({
|
|
31816
31866
|
...props
|
|
31817
31867
|
}) => {
|
|
31818
31868
|
return /* @__PURE__ */ jsx61(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx61(Controller, { ...props }) });
|
|
31819
31869
|
};
|
|
31820
31870
|
var useFormField = () => {
|
|
31821
|
-
const fieldContext =
|
|
31822
|
-
const itemContext =
|
|
31871
|
+
const fieldContext = React73.useContext(FormFieldContext);
|
|
31872
|
+
const itemContext = React73.useContext(FormItemContext);
|
|
31823
31873
|
const { getFieldState, formState } = useFormContext();
|
|
31824
31874
|
if (!fieldContext) {
|
|
31825
31875
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -31838,13 +31888,13 @@ var useFormField = () => {
|
|
|
31838
31888
|
...fieldState
|
|
31839
31889
|
};
|
|
31840
31890
|
};
|
|
31841
|
-
var FormItemContext =
|
|
31842
|
-
var FormItem =
|
|
31843
|
-
const id =
|
|
31891
|
+
var FormItemContext = React73.createContext(null);
|
|
31892
|
+
var FormItem = React73.forwardRef(({ className, ...props }, ref) => {
|
|
31893
|
+
const id = React73.useId();
|
|
31844
31894
|
return /* @__PURE__ */ jsx61(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx61("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
31845
31895
|
});
|
|
31846
31896
|
FormItem.displayName = "FormItem";
|
|
31847
|
-
var FormLabel =
|
|
31897
|
+
var FormLabel = React73.forwardRef(({ className, ...props }, ref) => {
|
|
31848
31898
|
const { error, formItemId } = useFormField();
|
|
31849
31899
|
return /* @__PURE__ */ jsx61(
|
|
31850
31900
|
Label,
|
|
@@ -31857,7 +31907,7 @@ var FormLabel = React72.forwardRef(({ className, ...props }, ref) => {
|
|
|
31857
31907
|
);
|
|
31858
31908
|
});
|
|
31859
31909
|
FormLabel.displayName = "FormLabel";
|
|
31860
|
-
var FormControl =
|
|
31910
|
+
var FormControl = React73.forwardRef(({ ...props }, ref) => {
|
|
31861
31911
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
31862
31912
|
return /* @__PURE__ */ jsx61(
|
|
31863
31913
|
Slot3,
|
|
@@ -31871,7 +31921,7 @@ var FormControl = React72.forwardRef(({ ...props }, ref) => {
|
|
|
31871
31921
|
);
|
|
31872
31922
|
});
|
|
31873
31923
|
FormControl.displayName = "FormControl";
|
|
31874
|
-
var FormDescription =
|
|
31924
|
+
var FormDescription = React73.forwardRef(({ className, ...props }, ref) => {
|
|
31875
31925
|
const { formDescriptionId } = useFormField();
|
|
31876
31926
|
return /* @__PURE__ */ jsx61(
|
|
31877
31927
|
"p",
|
|
@@ -31884,7 +31934,7 @@ var FormDescription = React72.forwardRef(({ className, ...props }, ref) => {
|
|
|
31884
31934
|
);
|
|
31885
31935
|
});
|
|
31886
31936
|
FormDescription.displayName = "FormDescription";
|
|
31887
|
-
var FormMessage =
|
|
31937
|
+
var FormMessage = React73.forwardRef(({ className, children, ...props }, ref) => {
|
|
31888
31938
|
const { error, formMessageId } = useFormField();
|
|
31889
31939
|
const body = error ? String(error?.message ?? "") : children;
|
|
31890
31940
|
if (!body) {
|
|
@@ -32161,7 +32211,7 @@ var TextareaAtom = ({
|
|
|
32161
32211
|
};
|
|
32162
32212
|
|
|
32163
32213
|
// src/components/ui/toggle.tsx
|
|
32164
|
-
import * as
|
|
32214
|
+
import * as React74 from "react";
|
|
32165
32215
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
32166
32216
|
import { cva as cva6 } from "class-variance-authority";
|
|
32167
32217
|
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
@@ -32185,7 +32235,7 @@ var toggleVariants = cva6(
|
|
|
32185
32235
|
}
|
|
32186
32236
|
}
|
|
32187
32237
|
);
|
|
32188
|
-
var Toggle =
|
|
32238
|
+
var Toggle = React74.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx69(
|
|
32189
32239
|
TogglePrimitive.Root,
|
|
32190
32240
|
{
|
|
32191
32241
|
ref,
|
|
@@ -32363,7 +32413,7 @@ var RadioAtom = ({ id, label, value, checked, disabled, className, style, onValu
|
|
|
32363
32413
|
};
|
|
32364
32414
|
|
|
32365
32415
|
// src/components/ui/dropdown-menu.tsx
|
|
32366
|
-
import * as
|
|
32416
|
+
import * as React75 from "react";
|
|
32367
32417
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
32368
32418
|
import { jsx as jsx74, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
32369
32419
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
@@ -32372,7 +32422,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
32372
32422
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
32373
32423
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
32374
32424
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
32375
|
-
var DropdownMenuSubTrigger =
|
|
32425
|
+
var DropdownMenuSubTrigger = React75.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs41(
|
|
32376
32426
|
DropdownMenuPrimitive.SubTrigger,
|
|
32377
32427
|
{
|
|
32378
32428
|
ref,
|
|
@@ -32389,7 +32439,7 @@ var DropdownMenuSubTrigger = React74.forwardRef(({ className, inset, children, .
|
|
|
32389
32439
|
}
|
|
32390
32440
|
));
|
|
32391
32441
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
32392
|
-
var DropdownMenuSubContent =
|
|
32442
|
+
var DropdownMenuSubContent = React75.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx74(
|
|
32393
32443
|
DropdownMenuPrimitive.SubContent,
|
|
32394
32444
|
{
|
|
32395
32445
|
ref,
|
|
@@ -32401,7 +32451,7 @@ var DropdownMenuSubContent = React74.forwardRef(({ className, ...props }, ref) =
|
|
|
32401
32451
|
}
|
|
32402
32452
|
));
|
|
32403
32453
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
32404
|
-
var DropdownMenuContent =
|
|
32454
|
+
var DropdownMenuContent = React75.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx74(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx74(
|
|
32405
32455
|
DropdownMenuPrimitive.Content,
|
|
32406
32456
|
{
|
|
32407
32457
|
ref,
|
|
@@ -32414,7 +32464,7 @@ var DropdownMenuContent = React74.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
32414
32464
|
}
|
|
32415
32465
|
) }));
|
|
32416
32466
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
32417
|
-
var DropdownMenuItem =
|
|
32467
|
+
var DropdownMenuItem = React75.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx74(
|
|
32418
32468
|
DropdownMenuPrimitive.Item,
|
|
32419
32469
|
{
|
|
32420
32470
|
ref,
|
|
@@ -32427,7 +32477,7 @@ var DropdownMenuItem = React74.forwardRef(({ className, inset, ...props }, ref)
|
|
|
32427
32477
|
}
|
|
32428
32478
|
));
|
|
32429
32479
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
32430
|
-
var DropdownMenuCheckboxItem =
|
|
32480
|
+
var DropdownMenuCheckboxItem = React75.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs41(
|
|
32431
32481
|
DropdownMenuPrimitive.CheckboxItem,
|
|
32432
32482
|
{
|
|
32433
32483
|
ref,
|
|
@@ -32444,7 +32494,7 @@ var DropdownMenuCheckboxItem = React74.forwardRef(({ className, children, checke
|
|
|
32444
32494
|
}
|
|
32445
32495
|
));
|
|
32446
32496
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
32447
|
-
var DropdownMenuRadioItem =
|
|
32497
|
+
var DropdownMenuRadioItem = React75.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs41(
|
|
32448
32498
|
DropdownMenuPrimitive.RadioItem,
|
|
32449
32499
|
{
|
|
32450
32500
|
ref,
|
|
@@ -32460,7 +32510,7 @@ var DropdownMenuRadioItem = React74.forwardRef(({ className, children, ...props
|
|
|
32460
32510
|
}
|
|
32461
32511
|
));
|
|
32462
32512
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
32463
|
-
var DropdownMenuLabel =
|
|
32513
|
+
var DropdownMenuLabel = React75.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx74(
|
|
32464
32514
|
DropdownMenuPrimitive.Label,
|
|
32465
32515
|
{
|
|
32466
32516
|
ref,
|
|
@@ -32473,7 +32523,7 @@ var DropdownMenuLabel = React74.forwardRef(({ className, inset, ...props }, ref)
|
|
|
32473
32523
|
}
|
|
32474
32524
|
));
|
|
32475
32525
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
32476
|
-
var DropdownMenuSeparator =
|
|
32526
|
+
var DropdownMenuSeparator = React75.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx74(
|
|
32477
32527
|
DropdownMenuPrimitive.Separator,
|
|
32478
32528
|
{
|
|
32479
32529
|
ref,
|
|
@@ -32533,7 +32583,7 @@ var DropdownMenuAtom = ({ trigger, items, className, onAction }) => {
|
|
|
32533
32583
|
};
|
|
32534
32584
|
|
|
32535
32585
|
// src/components/ui/context-menu.tsx
|
|
32536
|
-
import * as
|
|
32586
|
+
import * as React76 from "react";
|
|
32537
32587
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
32538
32588
|
import { jsx as jsx76, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
32539
32589
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
@@ -32542,7 +32592,7 @@ var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
|
32542
32592
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
32543
32593
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
32544
32594
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
32545
|
-
var ContextMenuSubTrigger =
|
|
32595
|
+
var ContextMenuSubTrigger = React76.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs43(
|
|
32546
32596
|
ContextMenuPrimitive.SubTrigger,
|
|
32547
32597
|
{
|
|
32548
32598
|
ref,
|
|
@@ -32559,7 +32609,7 @@ var ContextMenuSubTrigger = React75.forwardRef(({ className, inset, children, ..
|
|
|
32559
32609
|
}
|
|
32560
32610
|
));
|
|
32561
32611
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
32562
|
-
var ContextMenuSubContent =
|
|
32612
|
+
var ContextMenuSubContent = React76.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx76(
|
|
32563
32613
|
ContextMenuPrimitive.SubContent,
|
|
32564
32614
|
{
|
|
32565
32615
|
ref,
|
|
@@ -32571,7 +32621,7 @@ var ContextMenuSubContent = React75.forwardRef(({ className, ...props }, ref) =>
|
|
|
32571
32621
|
}
|
|
32572
32622
|
));
|
|
32573
32623
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
32574
|
-
var ContextMenuContent =
|
|
32624
|
+
var ContextMenuContent = React76.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx76(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx76(
|
|
32575
32625
|
ContextMenuPrimitive.Content,
|
|
32576
32626
|
{
|
|
32577
32627
|
ref,
|
|
@@ -32583,7 +32633,7 @@ var ContextMenuContent = React75.forwardRef(({ className, ...props }, ref) => /*
|
|
|
32583
32633
|
}
|
|
32584
32634
|
) }));
|
|
32585
32635
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
32586
|
-
var ContextMenuItem =
|
|
32636
|
+
var ContextMenuItem = React76.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx76(
|
|
32587
32637
|
ContextMenuPrimitive.Item,
|
|
32588
32638
|
{
|
|
32589
32639
|
ref,
|
|
@@ -32596,7 +32646,7 @@ var ContextMenuItem = React75.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
32596
32646
|
}
|
|
32597
32647
|
));
|
|
32598
32648
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
32599
|
-
var ContextMenuCheckboxItem =
|
|
32649
|
+
var ContextMenuCheckboxItem = React76.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs43(
|
|
32600
32650
|
ContextMenuPrimitive.CheckboxItem,
|
|
32601
32651
|
{
|
|
32602
32652
|
ref,
|
|
@@ -32613,7 +32663,7 @@ var ContextMenuCheckboxItem = React75.forwardRef(({ className, children, checked
|
|
|
32613
32663
|
}
|
|
32614
32664
|
));
|
|
32615
32665
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
32616
|
-
var ContextMenuRadioItem =
|
|
32666
|
+
var ContextMenuRadioItem = React76.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs43(
|
|
32617
32667
|
ContextMenuPrimitive.RadioItem,
|
|
32618
32668
|
{
|
|
32619
32669
|
ref,
|
|
@@ -32629,7 +32679,7 @@ var ContextMenuRadioItem = React75.forwardRef(({ className, children, ...props }
|
|
|
32629
32679
|
}
|
|
32630
32680
|
));
|
|
32631
32681
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
32632
|
-
var ContextMenuLabel =
|
|
32682
|
+
var ContextMenuLabel = React76.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx76(
|
|
32633
32683
|
ContextMenuPrimitive.Label,
|
|
32634
32684
|
{
|
|
32635
32685
|
ref,
|
|
@@ -32642,7 +32692,7 @@ var ContextMenuLabel = React75.forwardRef(({ className, inset, ...props }, ref)
|
|
|
32642
32692
|
}
|
|
32643
32693
|
));
|
|
32644
32694
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
32645
|
-
var ContextMenuSeparator =
|
|
32695
|
+
var ContextMenuSeparator = React76.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx76(
|
|
32646
32696
|
ContextMenuPrimitive.Separator,
|
|
32647
32697
|
{
|
|
32648
32698
|
ref,
|
|
@@ -32705,7 +32755,7 @@ var ContextMenuAtom = ({ trigger, items, className, onAction }) => {
|
|
|
32705
32755
|
};
|
|
32706
32756
|
|
|
32707
32757
|
// src/components/ui/drawer.tsx
|
|
32708
|
-
import * as
|
|
32758
|
+
import * as React77 from "react";
|
|
32709
32759
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
32710
32760
|
import { jsx as jsx78, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
32711
32761
|
var Drawer = ({
|
|
@@ -32722,7 +32772,7 @@ Drawer.displayName = "Drawer";
|
|
|
32722
32772
|
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
32723
32773
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
32724
32774
|
var DrawerClose = DrawerPrimitive.Close;
|
|
32725
|
-
var DrawerOverlay =
|
|
32775
|
+
var DrawerOverlay = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(
|
|
32726
32776
|
DrawerPrimitive.Overlay,
|
|
32727
32777
|
{
|
|
32728
32778
|
ref,
|
|
@@ -32731,7 +32781,7 @@ var DrawerOverlay = React76.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
32731
32781
|
}
|
|
32732
32782
|
));
|
|
32733
32783
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
32734
|
-
var DrawerContent =
|
|
32784
|
+
var DrawerContent = React77.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs45(DrawerPortal, { children: [
|
|
32735
32785
|
/* @__PURE__ */ jsx78(DrawerOverlay, {}),
|
|
32736
32786
|
/* @__PURE__ */ jsxs45(
|
|
32737
32787
|
DrawerPrimitive.Content,
|
|
@@ -32772,7 +32822,7 @@ var DrawerFooter = ({
|
|
|
32772
32822
|
}
|
|
32773
32823
|
);
|
|
32774
32824
|
DrawerFooter.displayName = "DrawerFooter";
|
|
32775
|
-
var DrawerTitle =
|
|
32825
|
+
var DrawerTitle = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(
|
|
32776
32826
|
DrawerPrimitive.Title,
|
|
32777
32827
|
{
|
|
32778
32828
|
ref,
|
|
@@ -32784,7 +32834,7 @@ var DrawerTitle = React76.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
32784
32834
|
}
|
|
32785
32835
|
));
|
|
32786
32836
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
32787
|
-
var DrawerDescription =
|
|
32837
|
+
var DrawerDescription = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx78(
|
|
32788
32838
|
DrawerPrimitive.Description,
|
|
32789
32839
|
{
|
|
32790
32840
|
ref,
|
|
@@ -32859,7 +32909,7 @@ var InputOTPAtom = ({ length, className, onChange }) => {
|
|
|
32859
32909
|
};
|
|
32860
32910
|
|
|
32861
32911
|
// src/atoms/KbdAtom.tsx
|
|
32862
|
-
import
|
|
32912
|
+
import React78 from "react";
|
|
32863
32913
|
import { jsx as jsx81, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
32864
32914
|
var KbdAtom = ({ keys, className }) => {
|
|
32865
32915
|
return /* @__PURE__ */ jsx81(
|
|
@@ -32869,7 +32919,7 @@ var KbdAtom = ({ keys, className }) => {
|
|
|
32869
32919
|
"pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100",
|
|
32870
32920
|
className
|
|
32871
32921
|
),
|
|
32872
|
-
children: keys.map((key, i) => /* @__PURE__ */ jsxs48(
|
|
32922
|
+
children: keys.map((key, i) => /* @__PURE__ */ jsxs48(React78.Fragment, { children: [
|
|
32873
32923
|
/* @__PURE__ */ jsx81("span", { className: "text-xs", children: key }),
|
|
32874
32924
|
i < keys.length - 1 && /* @__PURE__ */ jsx81("span", { children: "+" })
|
|
32875
32925
|
] }, i))
|
|
@@ -32878,7 +32928,7 @@ var KbdAtom = ({ keys, className }) => {
|
|
|
32878
32928
|
};
|
|
32879
32929
|
|
|
32880
32930
|
// src/atoms/ResizableAtom.tsx
|
|
32881
|
-
import
|
|
32931
|
+
import React79 from "react";
|
|
32882
32932
|
|
|
32883
32933
|
// src/components/ui/resizable.tsx
|
|
32884
32934
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
@@ -32927,9 +32977,9 @@ var ResizableAtom = ({
|
|
|
32927
32977
|
"min-h-[200px] w-full rounded-lg border border-purple-100",
|
|
32928
32978
|
className
|
|
32929
32979
|
),
|
|
32930
|
-
children: panels.map((panel, i) => /* @__PURE__ */ jsxs49(
|
|
32980
|
+
children: panels.map((panel, i) => /* @__PURE__ */ jsxs49(React79.Fragment, { children: [
|
|
32931
32981
|
/* @__PURE__ */ jsx83(ResizablePanel, { defaultSize: panel.defaultSize, className: "p-4", children: panel.children.map((child, childIdx) => /* @__PURE__ */ jsx83(
|
|
32932
|
-
|
|
32982
|
+
React79.Fragment,
|
|
32933
32983
|
{
|
|
32934
32984
|
children: renderComponent(child)
|
|
32935
32985
|
},
|
|
@@ -32942,20 +32992,20 @@ var ResizableAtom = ({
|
|
|
32942
32992
|
};
|
|
32943
32993
|
|
|
32944
32994
|
// src/components/ui/chart.tsx
|
|
32945
|
-
import * as
|
|
32995
|
+
import * as React80 from "react";
|
|
32946
32996
|
import * as RechartsPrimitive from "recharts";
|
|
32947
32997
|
import { Fragment as Fragment2, jsx as jsx84, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
32948
32998
|
var THEMES = { light: "", dark: ".dark" };
|
|
32949
|
-
var ChartContext =
|
|
32999
|
+
var ChartContext = React80.createContext(null);
|
|
32950
33000
|
function useChart() {
|
|
32951
|
-
const context =
|
|
33001
|
+
const context = React80.useContext(ChartContext);
|
|
32952
33002
|
if (!context) {
|
|
32953
33003
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
32954
33004
|
}
|
|
32955
33005
|
return context;
|
|
32956
33006
|
}
|
|
32957
|
-
var ChartContainer =
|
|
32958
|
-
const uniqueId =
|
|
33007
|
+
var ChartContainer = React80.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
33008
|
+
const uniqueId = React80.useId();
|
|
32959
33009
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
32960
33010
|
return /* @__PURE__ */ jsx84(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs50(
|
|
32961
33011
|
"div",
|
|
@@ -33001,7 +33051,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
33001
33051
|
);
|
|
33002
33052
|
};
|
|
33003
33053
|
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
33004
|
-
var ChartTooltipContent =
|
|
33054
|
+
var ChartTooltipContent = React80.forwardRef(
|
|
33005
33055
|
({
|
|
33006
33056
|
active,
|
|
33007
33057
|
payload,
|
|
@@ -33018,7 +33068,7 @@ var ChartTooltipContent = React79.forwardRef(
|
|
|
33018
33068
|
labelKey
|
|
33019
33069
|
}, ref) => {
|
|
33020
33070
|
const { config } = useChart();
|
|
33021
|
-
const tooltipLabel =
|
|
33071
|
+
const tooltipLabel = React80.useMemo(() => {
|
|
33022
33072
|
if (hideLabel || !payload?.length) {
|
|
33023
33073
|
return null;
|
|
33024
33074
|
}
|
|
@@ -33114,7 +33164,7 @@ var ChartTooltipContent = React79.forwardRef(
|
|
|
33114
33164
|
);
|
|
33115
33165
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
33116
33166
|
var ChartLegend = RechartsPrimitive.Legend;
|
|
33117
|
-
var ChartLegendContent =
|
|
33167
|
+
var ChartLegendContent = React80.forwardRef(
|
|
33118
33168
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
33119
33169
|
const { config } = useChart();
|
|
33120
33170
|
if (!payload?.length) {
|
|
@@ -33428,10 +33478,10 @@ var VideoAtom = ({
|
|
|
33428
33478
|
};
|
|
33429
33479
|
|
|
33430
33480
|
// src/atoms/RatingAtom.tsx
|
|
33431
|
-
import
|
|
33481
|
+
import React81 from "react";
|
|
33432
33482
|
import { jsx as jsx87, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
33433
33483
|
var RatingAtom = ({ id, label, value, max: max2 = 5, readonly = false, className, style, onChange }) => {
|
|
33434
|
-
const [hoverValue, setHoverValue] =
|
|
33484
|
+
const [hoverValue, setHoverValue] = React81.useState(null);
|
|
33435
33485
|
const hasPxVars = style && Object.keys(style).some((k) => k.startsWith("--px-"));
|
|
33436
33486
|
const stars = /* @__PURE__ */ jsx87("div", { className: cn("flex items-center gap-1", className), style, "data-px-styled": hasPxVars ? "" : void 0, children: Array.from({ length: max2 }, (_, i) => {
|
|
33437
33487
|
const starValue = i + 1;
|
|
@@ -33727,15 +33777,15 @@ function th(theme) {
|
|
|
33727
33777
|
}
|
|
33728
33778
|
|
|
33729
33779
|
// src/molecules/generic/EditableField/EditableField.tsx
|
|
33730
|
-
import
|
|
33780
|
+
import React86, { useState as useState5, useEffect as useEffect4, useRef as useRef4 } from "react";
|
|
33731
33781
|
|
|
33732
33782
|
// src/components/ui/hover-card.tsx
|
|
33733
|
-
import * as
|
|
33783
|
+
import * as React83 from "react";
|
|
33734
33784
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
33735
33785
|
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
33736
33786
|
var HoverCard = HoverCardPrimitive.Root;
|
|
33737
33787
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
33738
|
-
var HoverCardContent =
|
|
33788
|
+
var HoverCardContent = React83.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx90(
|
|
33739
33789
|
HoverCardPrimitive.Content,
|
|
33740
33790
|
{
|
|
33741
33791
|
ref,
|
|
@@ -33751,7 +33801,7 @@ var HoverCardContent = React82.forwardRef(({ className, align = "center", sideOf
|
|
|
33751
33801
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
33752
33802
|
|
|
33753
33803
|
// src/components/ui/menubar.tsx
|
|
33754
|
-
import * as
|
|
33804
|
+
import * as React84 from "react";
|
|
33755
33805
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
33756
33806
|
import { jsx as jsx91, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
33757
33807
|
function MenubarMenu({
|
|
@@ -33779,7 +33829,7 @@ function MenubarSub({
|
|
|
33779
33829
|
}) {
|
|
33780
33830
|
return /* @__PURE__ */ jsx91(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
33781
33831
|
}
|
|
33782
|
-
var Menubar =
|
|
33832
|
+
var Menubar = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx91(
|
|
33783
33833
|
MenubarPrimitive.Root,
|
|
33784
33834
|
{
|
|
33785
33835
|
ref,
|
|
@@ -33791,7 +33841,7 @@ var Menubar = React83.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
33791
33841
|
}
|
|
33792
33842
|
));
|
|
33793
33843
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
33794
|
-
var MenubarTrigger =
|
|
33844
|
+
var MenubarTrigger = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx91(
|
|
33795
33845
|
MenubarPrimitive.Trigger,
|
|
33796
33846
|
{
|
|
33797
33847
|
ref,
|
|
@@ -33803,7 +33853,7 @@ var MenubarTrigger = React83.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
33803
33853
|
}
|
|
33804
33854
|
));
|
|
33805
33855
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
33806
|
-
var MenubarSubTrigger =
|
|
33856
|
+
var MenubarSubTrigger = React84.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs54(
|
|
33807
33857
|
MenubarPrimitive.SubTrigger,
|
|
33808
33858
|
{
|
|
33809
33859
|
ref,
|
|
@@ -33820,7 +33870,7 @@ var MenubarSubTrigger = React83.forwardRef(({ className, inset, children, ...pro
|
|
|
33820
33870
|
}
|
|
33821
33871
|
));
|
|
33822
33872
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
33823
|
-
var MenubarSubContent =
|
|
33873
|
+
var MenubarSubContent = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx91(
|
|
33824
33874
|
MenubarPrimitive.SubContent,
|
|
33825
33875
|
{
|
|
33826
33876
|
ref,
|
|
@@ -33832,7 +33882,7 @@ var MenubarSubContent = React83.forwardRef(({ className, ...props }, ref) => /*
|
|
|
33832
33882
|
}
|
|
33833
33883
|
));
|
|
33834
33884
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
33835
|
-
var MenubarContent =
|
|
33885
|
+
var MenubarContent = React84.forwardRef(
|
|
33836
33886
|
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx91(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx91(
|
|
33837
33887
|
MenubarPrimitive.Content,
|
|
33838
33888
|
{
|
|
@@ -33849,7 +33899,7 @@ var MenubarContent = React83.forwardRef(
|
|
|
33849
33899
|
) })
|
|
33850
33900
|
);
|
|
33851
33901
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
33852
|
-
var MenubarItem =
|
|
33902
|
+
var MenubarItem = React84.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx91(
|
|
33853
33903
|
MenubarPrimitive.Item,
|
|
33854
33904
|
{
|
|
33855
33905
|
ref,
|
|
@@ -33862,7 +33912,7 @@ var MenubarItem = React83.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
33862
33912
|
}
|
|
33863
33913
|
));
|
|
33864
33914
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
33865
|
-
var MenubarCheckboxItem =
|
|
33915
|
+
var MenubarCheckboxItem = React84.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs54(
|
|
33866
33916
|
MenubarPrimitive.CheckboxItem,
|
|
33867
33917
|
{
|
|
33868
33918
|
ref,
|
|
@@ -33879,7 +33929,7 @@ var MenubarCheckboxItem = React83.forwardRef(({ className, children, checked, ..
|
|
|
33879
33929
|
}
|
|
33880
33930
|
));
|
|
33881
33931
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
33882
|
-
var MenubarRadioItem =
|
|
33932
|
+
var MenubarRadioItem = React84.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs54(
|
|
33883
33933
|
MenubarPrimitive.RadioItem,
|
|
33884
33934
|
{
|
|
33885
33935
|
ref,
|
|
@@ -33895,7 +33945,7 @@ var MenubarRadioItem = React83.forwardRef(({ className, children, ...props }, re
|
|
|
33895
33945
|
}
|
|
33896
33946
|
));
|
|
33897
33947
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
33898
|
-
var MenubarLabel =
|
|
33948
|
+
var MenubarLabel = React84.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx91(
|
|
33899
33949
|
MenubarPrimitive.Label,
|
|
33900
33950
|
{
|
|
33901
33951
|
ref,
|
|
@@ -33908,7 +33958,7 @@ var MenubarLabel = React83.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
33908
33958
|
}
|
|
33909
33959
|
));
|
|
33910
33960
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
33911
|
-
var MenubarSeparator =
|
|
33961
|
+
var MenubarSeparator = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx91(
|
|
33912
33962
|
MenubarPrimitive.Separator,
|
|
33913
33963
|
{
|
|
33914
33964
|
ref,
|
|
@@ -33935,11 +33985,11 @@ var MenubarShortcut = ({
|
|
|
33935
33985
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
33936
33986
|
|
|
33937
33987
|
// src/components/ui/navigation-menu.tsx
|
|
33938
|
-
import * as
|
|
33988
|
+
import * as React85 from "react";
|
|
33939
33989
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
33940
33990
|
import { cva as cva7 } from "class-variance-authority";
|
|
33941
33991
|
import { jsx as jsx92, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
33942
|
-
var NavigationMenu =
|
|
33992
|
+
var NavigationMenu = React85.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs55(
|
|
33943
33993
|
NavigationMenuPrimitive.Root,
|
|
33944
33994
|
{
|
|
33945
33995
|
ref,
|
|
@@ -33955,7 +34005,7 @@ var NavigationMenu = React84.forwardRef(({ className, children, ...props }, ref)
|
|
|
33955
34005
|
}
|
|
33956
34006
|
));
|
|
33957
34007
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
33958
|
-
var NavigationMenuList =
|
|
34008
|
+
var NavigationMenuList = React85.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx92(
|
|
33959
34009
|
NavigationMenuPrimitive.List,
|
|
33960
34010
|
{
|
|
33961
34011
|
ref,
|
|
@@ -33971,7 +34021,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
33971
34021
|
var navigationMenuTriggerStyle = cva7(
|
|
33972
34022
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
33973
34023
|
);
|
|
33974
|
-
var NavigationMenuTrigger =
|
|
34024
|
+
var NavigationMenuTrigger = React85.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs55(
|
|
33975
34025
|
NavigationMenuPrimitive.Trigger,
|
|
33976
34026
|
{
|
|
33977
34027
|
ref,
|
|
@@ -33991,7 +34041,7 @@ var NavigationMenuTrigger = React84.forwardRef(({ className, children, ...props
|
|
|
33991
34041
|
}
|
|
33992
34042
|
));
|
|
33993
34043
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
33994
|
-
var NavigationMenuContent =
|
|
34044
|
+
var NavigationMenuContent = React85.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx92(
|
|
33995
34045
|
NavigationMenuPrimitive.Content,
|
|
33996
34046
|
{
|
|
33997
34047
|
ref,
|
|
@@ -34004,7 +34054,7 @@ var NavigationMenuContent = React84.forwardRef(({ className, ...props }, ref) =>
|
|
|
34004
34054
|
));
|
|
34005
34055
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
34006
34056
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
34007
|
-
var NavigationMenuViewport =
|
|
34057
|
+
var NavigationMenuViewport = React85.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx92("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx92(
|
|
34008
34058
|
NavigationMenuPrimitive.Viewport,
|
|
34009
34059
|
{
|
|
34010
34060
|
className: cn(
|
|
@@ -34016,7 +34066,7 @@ var NavigationMenuViewport = React84.forwardRef(({ className, ...props }, ref) =
|
|
|
34016
34066
|
}
|
|
34017
34067
|
) }));
|
|
34018
34068
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
34019
|
-
var NavigationMenuIndicator =
|
|
34069
|
+
var NavigationMenuIndicator = React85.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx92(
|
|
34020
34070
|
NavigationMenuPrimitive.Indicator,
|
|
34021
34071
|
{
|
|
34022
34072
|
ref,
|
|
@@ -34046,7 +34096,7 @@ function Spinner({ className, ...props }) {
|
|
|
34046
34096
|
|
|
34047
34097
|
// src/molecules/generic/EditableField/EditableField.tsx
|
|
34048
34098
|
import { jsx as jsx94, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
34049
|
-
var EditableField =
|
|
34099
|
+
var EditableField = React86.memo(
|
|
34050
34100
|
({
|
|
34051
34101
|
label,
|
|
34052
34102
|
value,
|
|
@@ -34258,9 +34308,9 @@ var EditableField = React85.memo(
|
|
|
34258
34308
|
EditableField.displayName = "EditableField";
|
|
34259
34309
|
|
|
34260
34310
|
// src/molecules/generic/ActionButton/ActionButton.tsx
|
|
34261
|
-
import
|
|
34311
|
+
import React87, { useState as useState6, useEffect as useEffect5 } from "react";
|
|
34262
34312
|
import { Fragment as Fragment3, jsx as jsx95, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
34263
|
-
var ActionButton =
|
|
34313
|
+
var ActionButton = React87.memo(
|
|
34264
34314
|
({
|
|
34265
34315
|
label,
|
|
34266
34316
|
secondaryLabel,
|
|
@@ -34350,10 +34400,10 @@ var ActionButton = React86.memo(
|
|
|
34350
34400
|
ActionButton.displayName = "ActionButton";
|
|
34351
34401
|
|
|
34352
34402
|
// src/molecules/generic/FormCard/FormCard.tsx
|
|
34353
|
-
import
|
|
34403
|
+
import React88, { useState as useState7 } from "react";
|
|
34354
34404
|
import { jsx as jsx96, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
34355
34405
|
var humanizeKey = (key) => key.replace(/[_-]+/g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/\b\w/g, (c) => c.toUpperCase()).trim();
|
|
34356
|
-
var FormCard =
|
|
34406
|
+
var FormCard = React88.memo(
|
|
34357
34407
|
({
|
|
34358
34408
|
title,
|
|
34359
34409
|
fields = [],
|
|
@@ -34379,7 +34429,7 @@ var FormCard = React87.memo(
|
|
|
34379
34429
|
const [internalSavingFields, setInternalSavingFields] = useState7({});
|
|
34380
34430
|
const [internalData, setInternalData] = useState7(data);
|
|
34381
34431
|
const [userEditedFields, setUserEditedFields] = useState7({});
|
|
34382
|
-
|
|
34432
|
+
React88.useEffect(() => {
|
|
34383
34433
|
setInternalData((prev) => {
|
|
34384
34434
|
const newData = { ...data };
|
|
34385
34435
|
Object.keys(userEditedFields).forEach((key) => {
|
|
@@ -34541,7 +34591,7 @@ var FormCard = React87.memo(
|
|
|
34541
34591
|
FormCard.displayName = "FormCard";
|
|
34542
34592
|
|
|
34543
34593
|
// src/molecules/generic/DynamicFormCard/DynamicFormCard.tsx
|
|
34544
|
-
import
|
|
34594
|
+
import React89, { useMemo as useMemo4 } from "react";
|
|
34545
34595
|
|
|
34546
34596
|
// src/lib/field-utils.ts
|
|
34547
34597
|
function normalizeLabel(key) {
|
|
@@ -34617,7 +34667,7 @@ function generateFieldsFromPropDefinitions(propDefs, data) {
|
|
|
34617
34667
|
|
|
34618
34668
|
// src/molecules/generic/DynamicFormCard/DynamicFormCard.tsx
|
|
34619
34669
|
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
34620
|
-
var DynamicFormCard =
|
|
34670
|
+
var DynamicFormCard = React89.memo(
|
|
34621
34671
|
({
|
|
34622
34672
|
data = {},
|
|
34623
34673
|
fields: providedFields,
|
|
@@ -34893,10 +34943,10 @@ var FilterBar = ({ filters, showSearch = true, className, onFilterToggle, onSear
|
|
|
34893
34943
|
};
|
|
34894
34944
|
|
|
34895
34945
|
// src/molecules/generic/FileUpload/FileUpload.tsx
|
|
34896
|
-
import
|
|
34946
|
+
import React90 from "react";
|
|
34897
34947
|
import { jsx as jsx102, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
34898
34948
|
var FileUpload = ({ title, accept, multiple, className, style, onFilesSelected }) => {
|
|
34899
|
-
const [isDragging, setIsDragging] =
|
|
34949
|
+
const [isDragging, setIsDragging] = React90.useState(false);
|
|
34900
34950
|
const hasPxVars = style && Object.keys(style).some((k) => k.startsWith("--px-"));
|
|
34901
34951
|
const wrapperStyle = {
|
|
34902
34952
|
...hasPxVars && {
|
|
@@ -35058,7 +35108,7 @@ var DataGrid = ({
|
|
|
35058
35108
|
};
|
|
35059
35109
|
|
|
35060
35110
|
// src/molecules/generic/StepWizard/StepWizard.tsx
|
|
35061
|
-
import
|
|
35111
|
+
import React91 from "react";
|
|
35062
35112
|
import { jsx as jsx105, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
35063
35113
|
var StepWizard = ({
|
|
35064
35114
|
steps,
|
|
@@ -35069,7 +35119,7 @@ var StepWizard = ({
|
|
|
35069
35119
|
const isCompleted = i < currentStep;
|
|
35070
35120
|
const isActive = i === currentStep;
|
|
35071
35121
|
const isLast = i === steps.length - 1;
|
|
35072
|
-
return /* @__PURE__ */ jsxs66(
|
|
35122
|
+
return /* @__PURE__ */ jsxs66(React91.Fragment, { children: [
|
|
35073
35123
|
/* @__PURE__ */ jsxs66("div", { className: "flex flex-col items-center relative group", children: [
|
|
35074
35124
|
/* @__PURE__ */ jsx105(
|
|
35075
35125
|
"div",
|
|
@@ -36463,9 +36513,9 @@ var GoogleSheetsListCard = ({
|
|
|
36463
36513
|
};
|
|
36464
36514
|
|
|
36465
36515
|
// src/molecules/generic/RecommendationCard/RecommendationCard.tsx
|
|
36466
|
-
import
|
|
36516
|
+
import React94 from "react";
|
|
36467
36517
|
import { jsx as jsx121, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
36468
|
-
var RecommendationCard =
|
|
36518
|
+
var RecommendationCard = React94.memo(
|
|
36469
36519
|
({
|
|
36470
36520
|
question,
|
|
36471
36521
|
recommended,
|
|
@@ -36477,11 +36527,11 @@ var RecommendationCard = React93.memo(
|
|
|
36477
36527
|
className,
|
|
36478
36528
|
onAction
|
|
36479
36529
|
}) => {
|
|
36480
|
-
const [mode, setMode] =
|
|
36530
|
+
const [mode, setMode] = React94.useState(
|
|
36481
36531
|
"recommended"
|
|
36482
36532
|
);
|
|
36483
|
-
const [customText, setCustomText] =
|
|
36484
|
-
const [isSubmitted, setIsSubmitted] =
|
|
36533
|
+
const [customText, setCustomText] = React94.useState("");
|
|
36534
|
+
const [isSubmitted, setIsSubmitted] = React94.useState(false);
|
|
36485
36535
|
const isInteractive = isLatestMessage && !disabled && !isSubmitted;
|
|
36486
36536
|
const handleModeChange = (newMode) => {
|
|
36487
36537
|
if (isInteractive) {
|
|
@@ -36628,9 +36678,9 @@ var RecommendationCard = React93.memo(
|
|
|
36628
36678
|
RecommendationCard.displayName = "RecommendationCard";
|
|
36629
36679
|
|
|
36630
36680
|
// src/molecules/generic/ConfirmationCard/ConfirmationCard.tsx
|
|
36631
|
-
import
|
|
36681
|
+
import React95 from "react";
|
|
36632
36682
|
import { jsx as jsx122, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
36633
|
-
var ConfirmationCard =
|
|
36683
|
+
var ConfirmationCard = React95.memo(
|
|
36634
36684
|
({
|
|
36635
36685
|
title,
|
|
36636
36686
|
description,
|
|
@@ -36643,8 +36693,8 @@ var ConfirmationCard = React94.memo(
|
|
|
36643
36693
|
className,
|
|
36644
36694
|
onAction
|
|
36645
36695
|
}) => {
|
|
36646
|
-
const [isSubmitted, setIsSubmitted] =
|
|
36647
|
-
const [choice, setChoice] =
|
|
36696
|
+
const [isSubmitted, setIsSubmitted] = React95.useState(false);
|
|
36697
|
+
const [choice, setChoice] = React95.useState(null);
|
|
36648
36698
|
const isInteractive = isLatestMessage && !disabled && !isSubmitted;
|
|
36649
36699
|
const handleConfirm = (e) => {
|
|
36650
36700
|
e.preventDefault();
|
|
@@ -36713,7 +36763,7 @@ var ConfirmationCard = React94.memo(
|
|
|
36713
36763
|
ConfirmationCard.displayName = "ConfirmationCard";
|
|
36714
36764
|
|
|
36715
36765
|
// src/molecules/generic/InputWidget/InputWidget.tsx
|
|
36716
|
-
import
|
|
36766
|
+
import React96 from "react";
|
|
36717
36767
|
|
|
36718
36768
|
// src/lib/run-sse.ts
|
|
36719
36769
|
var INPUT_ATOM_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -36835,7 +36885,7 @@ var InputWidget = ({
|
|
|
36835
36885
|
onAction,
|
|
36836
36886
|
isSubmitting = false
|
|
36837
36887
|
}) => {
|
|
36838
|
-
const [values, setValues] =
|
|
36888
|
+
const [values, setValues] = React96.useState(() => {
|
|
36839
36889
|
const initial = {};
|
|
36840
36890
|
for (const f of fields) {
|
|
36841
36891
|
initial[f.key] = f.defaultValue ?? defaultForKind(f.kind);
|
|
@@ -37091,7 +37141,7 @@ function stringifyValue(value, atomName, props) {
|
|
|
37091
37141
|
}
|
|
37092
37142
|
|
|
37093
37143
|
// src/molecules/generic/KPIStatsCard/KPIStatsCard.tsx
|
|
37094
|
-
import
|
|
37144
|
+
import React97 from "react";
|
|
37095
37145
|
import { jsx as jsx124, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
37096
37146
|
var TrendBadge = ({ item }) => {
|
|
37097
37147
|
if (!item.delta && item.trend === void 0) return null;
|
|
@@ -37108,7 +37158,7 @@ var TrendBadge = ({ item }) => {
|
|
|
37108
37158
|
item.delta
|
|
37109
37159
|
] });
|
|
37110
37160
|
};
|
|
37111
|
-
var KPIStatsCard =
|
|
37161
|
+
var KPIStatsCard = React97.memo(
|
|
37112
37162
|
({ title, subtitle, stats, items, theme, className, onAction: _onAction }) => {
|
|
37113
37163
|
const s = th(theme);
|
|
37114
37164
|
const displayStats = stats || items || [];
|
|
@@ -37168,7 +37218,7 @@ var KPIStatsCard = React96.memo(
|
|
|
37168
37218
|
KPIStatsCard.displayName = "KPIStatsCard";
|
|
37169
37219
|
|
|
37170
37220
|
// src/molecules/generic/ApprovalCard/ApprovalCard.tsx
|
|
37171
|
-
import
|
|
37221
|
+
import React98 from "react";
|
|
37172
37222
|
import { jsx as jsx125, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
37173
37223
|
var STATUS_CONFIG2 = {
|
|
37174
37224
|
pending: { label: "Pending Review", icon: Clock, className: "text-yellow-400 bg-yellow-500/10 border-yellow-500/20" },
|
|
@@ -37176,7 +37226,7 @@ var STATUS_CONFIG2 = {
|
|
|
37176
37226
|
rejected: { label: "Rejected", icon: CircleX, className: "text-rose-400 bg-rose-500/10 border-rose-500/20" },
|
|
37177
37227
|
changes_requested: { label: "Changes Requested", icon: MessageSquare, className: "text-blue-400 bg-blue-500/10 border-blue-500/20" }
|
|
37178
37228
|
};
|
|
37179
|
-
var ApprovalCard =
|
|
37229
|
+
var ApprovalCard = React98.memo(
|
|
37180
37230
|
({
|
|
37181
37231
|
title,
|
|
37182
37232
|
description,
|
|
@@ -37194,9 +37244,9 @@ var ApprovalCard = React97.memo(
|
|
|
37194
37244
|
onAction
|
|
37195
37245
|
}) => {
|
|
37196
37246
|
const s = th(theme);
|
|
37197
|
-
const [status, setStatus] =
|
|
37198
|
-
const [isSubmitted, setIsSubmitted] =
|
|
37199
|
-
|
|
37247
|
+
const [status, setStatus] = React98.useState(propStatus || "pending");
|
|
37248
|
+
const [isSubmitted, setIsSubmitted] = React98.useState(!!propStatus && propStatus !== "pending");
|
|
37249
|
+
React98.useEffect(() => {
|
|
37200
37250
|
if (propStatus) {
|
|
37201
37251
|
setStatus(propStatus);
|
|
37202
37252
|
setIsSubmitted(propStatus !== "pending");
|
|
@@ -37284,7 +37334,7 @@ var ApprovalCard = React97.memo(
|
|
|
37284
37334
|
ApprovalCard.displayName = "ApprovalCard";
|
|
37285
37335
|
|
|
37286
37336
|
// src/molecules/generic/TimelineCard/TimelineCard.tsx
|
|
37287
|
-
import
|
|
37337
|
+
import React99 from "react";
|
|
37288
37338
|
import { jsx as jsx126, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
37289
37339
|
var StepDot = ({ step, accentColor }) => {
|
|
37290
37340
|
if (step.status === "completed") return /* @__PURE__ */ jsx126("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-emerald-500/20 ring-2 ring-emerald-500/40", children: /* @__PURE__ */ jsx126(Check, { className: "h-3 w-3 text-emerald-400", strokeWidth: 2.5 }) });
|
|
@@ -37302,7 +37352,7 @@ var StepDot = ({ step, accentColor }) => {
|
|
|
37302
37352
|
}
|
|
37303
37353
|
return /* @__PURE__ */ jsx126("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-gray400/20 ring-2 ring-gray400/20", children: /* @__PURE__ */ jsx126(Circle, { className: "h-2.5 w-2.5 text-cardText/20" }) });
|
|
37304
37354
|
};
|
|
37305
|
-
var TimelineCard =
|
|
37355
|
+
var TimelineCard = React99.memo(
|
|
37306
37356
|
({ title, steps, milestones, theme, className, onAction: _onAction }) => {
|
|
37307
37357
|
const s = th(theme);
|
|
37308
37358
|
const displaySteps = steps || milestones || [];
|
|
@@ -37360,9 +37410,9 @@ var TimelineCard = React98.memo(
|
|
|
37360
37410
|
TimelineCard.displayName = "TimelineCard";
|
|
37361
37411
|
|
|
37362
37412
|
// src/molecules/generic/FeedbackRatingCard/FeedbackRatingCard.tsx
|
|
37363
|
-
import
|
|
37413
|
+
import React100 from "react";
|
|
37364
37414
|
import { jsx as jsx127, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
37365
|
-
var FeedbackRatingCard =
|
|
37415
|
+
var FeedbackRatingCard = React100.memo(
|
|
37366
37416
|
({
|
|
37367
37417
|
question,
|
|
37368
37418
|
max_rating = 5,
|
|
@@ -37378,10 +37428,10 @@ var FeedbackRatingCard = React99.memo(
|
|
|
37378
37428
|
onAction
|
|
37379
37429
|
}) => {
|
|
37380
37430
|
const s = th(theme);
|
|
37381
|
-
const [rating, setRating] =
|
|
37382
|
-
const [hovered, setHovered] =
|
|
37383
|
-
const [comment, setComment] =
|
|
37384
|
-
const [isSubmitted, setIsSubmitted] =
|
|
37431
|
+
const [rating, setRating] = React100.useState(0);
|
|
37432
|
+
const [hovered, setHovered] = React100.useState(0);
|
|
37433
|
+
const [comment, setComment] = React100.useState("");
|
|
37434
|
+
const [isSubmitted, setIsSubmitted] = React100.useState(false);
|
|
37385
37435
|
const isInteractive = isLatestMessage && !disabled && !isSubmitted;
|
|
37386
37436
|
const stars = Array.from({ length: max_rating }, (_, i) => i + 1);
|
|
37387
37437
|
const handleSubmit = (e) => {
|
|
@@ -37460,9 +37510,9 @@ Feedback: ${comment}` : `Rating: ${rating}/${max_rating} ${label}`;
|
|
|
37460
37510
|
FeedbackRatingCard.displayName = "FeedbackRatingCard";
|
|
37461
37511
|
|
|
37462
37512
|
// src/molecules/generic/DataTableCard/DataTableCard.tsx
|
|
37463
|
-
import
|
|
37513
|
+
import React101 from "react";
|
|
37464
37514
|
import { jsx as jsx128, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
37465
|
-
var DataTableCard =
|
|
37515
|
+
var DataTableCard = React101.memo(
|
|
37466
37516
|
({ title, caption, columns, rows, highlight_column, theme, className, onAction: _onAction }) => {
|
|
37467
37517
|
const s = th(theme);
|
|
37468
37518
|
return /* @__PURE__ */ jsxs89("div", { className: cn("w-full rounded-[16px] border border-gray400 bg-cardSurface overflow-hidden", className), style: s.root, children: [
|
|
@@ -37512,9 +37562,9 @@ var DataTableCard = React100.memo(
|
|
|
37512
37562
|
DataTableCard.displayName = "DataTableCard";
|
|
37513
37563
|
|
|
37514
37564
|
// src/molecules/generic/ChecklistCard/ChecklistCard.tsx
|
|
37515
|
-
import
|
|
37565
|
+
import React102 from "react";
|
|
37516
37566
|
import { jsx as jsx129, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
37517
|
-
var ChecklistCard =
|
|
37567
|
+
var ChecklistCard = React102.memo(
|
|
37518
37568
|
({
|
|
37519
37569
|
title,
|
|
37520
37570
|
description,
|
|
@@ -37531,10 +37581,10 @@ var ChecklistCard = React101.memo(
|
|
|
37531
37581
|
}) => {
|
|
37532
37582
|
const s = th(theme);
|
|
37533
37583
|
const source = items || tasks || [];
|
|
37534
|
-
const [checked, setChecked] =
|
|
37584
|
+
const [checked, setChecked] = React102.useState(
|
|
37535
37585
|
() => new Set(source.filter((i) => i.checked).map((i) => i.id))
|
|
37536
37586
|
);
|
|
37537
|
-
const [isSubmitted, setIsSubmitted] =
|
|
37587
|
+
const [isSubmitted, setIsSubmitted] = React102.useState(false);
|
|
37538
37588
|
const isInteractive = isLatestMessage && !disabled && !isSubmitted;
|
|
37539
37589
|
const toggle = (id) => {
|
|
37540
37590
|
if (!isInteractive) return;
|
|
@@ -37647,9 +37697,9 @@ var ChecklistCard = React101.memo(
|
|
|
37647
37697
|
ChecklistCard.displayName = "ChecklistCard";
|
|
37648
37698
|
|
|
37649
37699
|
// src/molecules/generic/PollCard/PollCard.tsx
|
|
37650
|
-
import
|
|
37700
|
+
import React103 from "react";
|
|
37651
37701
|
import { jsx as jsx130, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
37652
|
-
var PollCard =
|
|
37702
|
+
var PollCard = React103.memo(
|
|
37653
37703
|
({
|
|
37654
37704
|
question,
|
|
37655
37705
|
options,
|
|
@@ -37666,9 +37716,9 @@ var PollCard = React102.memo(
|
|
|
37666
37716
|
}) => {
|
|
37667
37717
|
const s = th(theme);
|
|
37668
37718
|
const source = options || choices || [];
|
|
37669
|
-
const [selected, setSelected] =
|
|
37670
|
-
const [hasVoted, setHasVoted] =
|
|
37671
|
-
const [voteCounts, setVoteCounts] =
|
|
37719
|
+
const [selected, setSelected] = React103.useState(/* @__PURE__ */ new Set());
|
|
37720
|
+
const [hasVoted, setHasVoted] = React103.useState(false);
|
|
37721
|
+
const [voteCounts, setVoteCounts] = React103.useState(
|
|
37672
37722
|
() => Object.fromEntries(source.map((o) => [o.id, o.votes ?? 0]))
|
|
37673
37723
|
);
|
|
37674
37724
|
const isInteractive = isLatestMessage && !disabled && !hasVoted;
|
|
@@ -37807,7 +37857,7 @@ Selected: ${labels.join(", ")}`);
|
|
|
37807
37857
|
PollCard.displayName = "PollCard";
|
|
37808
37858
|
|
|
37809
37859
|
// src/molecules/generic/CalendarEventCard/CalendarEventCard.tsx
|
|
37810
|
-
import
|
|
37860
|
+
import React104 from "react";
|
|
37811
37861
|
import { jsx as jsx131, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
37812
37862
|
var STATUS_STYLES = {
|
|
37813
37863
|
upcoming: { label: "Upcoming", className: "text-blue-400 bg-blue-500/10 border-blue-500/20", dot: "bg-blue-400" },
|
|
@@ -37828,7 +37878,7 @@ function AvatarInitials({ name }) {
|
|
|
37828
37878
|
}
|
|
37829
37879
|
);
|
|
37830
37880
|
}
|
|
37831
|
-
var CalendarEventCard =
|
|
37881
|
+
var CalendarEventCard = React104.memo(
|
|
37832
37882
|
({
|
|
37833
37883
|
title,
|
|
37834
37884
|
date,
|
|
@@ -37845,7 +37895,7 @@ var CalendarEventCard = React103.memo(
|
|
|
37845
37895
|
}) => {
|
|
37846
37896
|
const s = th(theme);
|
|
37847
37897
|
const cfg = STATUS_STYLES[status];
|
|
37848
|
-
const parsedDate =
|
|
37898
|
+
const parsedDate = React104.useMemo(() => {
|
|
37849
37899
|
try {
|
|
37850
37900
|
const d = new Date(date);
|
|
37851
37901
|
if (isNaN(d.getTime())) {
|
|
@@ -37931,7 +37981,7 @@ var CalendarEventCard = React103.memo(
|
|
|
37931
37981
|
CalendarEventCard.displayName = "CalendarEventCard";
|
|
37932
37982
|
|
|
37933
37983
|
// src/molecules/generic/BudgetAllocCard/BudgetAllocCard.tsx
|
|
37934
|
-
import
|
|
37984
|
+
import React105 from "react";
|
|
37935
37985
|
import { jsx as jsx132, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
37936
37986
|
var PALETTE = [
|
|
37937
37987
|
"#BFAD82",
|
|
@@ -37957,7 +38007,7 @@ function formatAmount(amount, currency) {
|
|
|
37957
38007
|
if (amount >= 1e3) return `${currency}${(amount / 1e3).toFixed(0)}K`;
|
|
37958
38008
|
return `${currency}${amount.toLocaleString()}`;
|
|
37959
38009
|
}
|
|
37960
|
-
var BudgetAllocCard =
|
|
38010
|
+
var BudgetAllocCard = React105.memo(
|
|
37961
38011
|
({
|
|
37962
38012
|
title,
|
|
37963
38013
|
currency = "$",
|
|
@@ -38074,7 +38124,7 @@ var BudgetAllocCard = React104.memo(
|
|
|
38074
38124
|
BudgetAllocCard.displayName = "BudgetAllocCard";
|
|
38075
38125
|
|
|
38076
38126
|
// src/molecules/generic/ComparisonCard/ComparisonCard.tsx
|
|
38077
|
-
import
|
|
38127
|
+
import React106 from "react";
|
|
38078
38128
|
import { jsx as jsx133, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
38079
38129
|
var BADGE_COLORS = {
|
|
38080
38130
|
gold: "text-gold border-gold/30 bg-gold/10",
|
|
@@ -38082,7 +38132,7 @@ var BADGE_COLORS = {
|
|
|
38082
38132
|
emerald: "text-emerald-400 border-emerald-500/30 bg-emerald-500/10",
|
|
38083
38133
|
violet: "text-violet-400 border-violet-500/30 bg-violet-500/10"
|
|
38084
38134
|
};
|
|
38085
|
-
var ComparisonCard =
|
|
38135
|
+
var ComparisonCard = React106.memo(
|
|
38086
38136
|
({
|
|
38087
38137
|
title,
|
|
38088
38138
|
description,
|
|
@@ -38097,8 +38147,8 @@ var ComparisonCard = React105.memo(
|
|
|
38097
38147
|
onAction
|
|
38098
38148
|
}) => {
|
|
38099
38149
|
const s = th(theme);
|
|
38100
|
-
const [selected, setSelected] =
|
|
38101
|
-
const [isSubmitted, setIsSubmitted] =
|
|
38150
|
+
const [selected, setSelected] = React106.useState(null);
|
|
38151
|
+
const [isSubmitted, setIsSubmitted] = React106.useState(false);
|
|
38102
38152
|
const isInteractive = isLatestMessage && !disabled && !isSubmitted;
|
|
38103
38153
|
const handleSelect = (opt) => (e) => {
|
|
38104
38154
|
e.preventDefault();
|
|
@@ -40102,7 +40152,7 @@ var WebSearchJobCard = ({
|
|
|
40102
40152
|
};
|
|
40103
40153
|
|
|
40104
40154
|
// src/molecules/creator-discovery/CampaignSeedCard/CampaignSeedCard.tsx
|
|
40105
|
-
import
|
|
40155
|
+
import React110, { useMemo as useMemo6 } from "react";
|
|
40106
40156
|
|
|
40107
40157
|
// src/molecules/creator-discovery/SearchSpecCard/CustomFieldRenderers.tsx
|
|
40108
40158
|
import { useState as useState13, useRef as useRef8, useEffect as useEffect9, useMemo as useMemo5 } from "react";
|
|
@@ -40811,7 +40861,7 @@ function buildCampaignSeedFields(data) {
|
|
|
40811
40861
|
return generated;
|
|
40812
40862
|
});
|
|
40813
40863
|
}
|
|
40814
|
-
var CampaignSeedCard =
|
|
40864
|
+
var CampaignSeedCard = React110.memo(
|
|
40815
40865
|
({
|
|
40816
40866
|
selectionStatus,
|
|
40817
40867
|
isLatestMessage = true,
|
|
@@ -40857,7 +40907,7 @@ var CampaignSeedCard = React109.memo(
|
|
|
40857
40907
|
CampaignSeedCard.displayName = "CampaignSeedCard";
|
|
40858
40908
|
|
|
40859
40909
|
// src/molecules/creator-discovery/SearchSpecCard/SearchSpecCard.tsx
|
|
40860
|
-
import
|
|
40910
|
+
import React111, { useMemo as useMemo7 } from "react";
|
|
40861
40911
|
import { jsx as jsx152, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
40862
40912
|
var ObjectDisplay2 = ({ value }) => {
|
|
40863
40913
|
if (!value || typeof value !== "object") return null;
|
|
@@ -40973,7 +41023,7 @@ function buildSearchSpecFields(data) {
|
|
|
40973
41023
|
return generated;
|
|
40974
41024
|
});
|
|
40975
41025
|
}
|
|
40976
|
-
var SearchSpecCard =
|
|
41026
|
+
var SearchSpecCard = React111.memo(
|
|
40977
41027
|
({
|
|
40978
41028
|
selectionStatus,
|
|
40979
41029
|
isLatestMessage = true,
|
|
@@ -41023,7 +41073,7 @@ var SearchSpecCard = React110.memo(
|
|
|
41023
41073
|
SearchSpecCard.displayName = "SearchSpecCard";
|
|
41024
41074
|
|
|
41025
41075
|
// src/molecules/creator-discovery/MCQCard/MCQCard.tsx
|
|
41026
|
-
import
|
|
41076
|
+
import React112 from "react";
|
|
41027
41077
|
|
|
41028
41078
|
// src/molecules/creator-discovery/MCQCard/defaultFetchers.ts
|
|
41029
41079
|
function getBackendOrigin() {
|
|
@@ -41124,7 +41174,7 @@ async function defaultPersistSelection(sessionId, questionKey, value) {
|
|
|
41124
41174
|
|
|
41125
41175
|
// src/molecules/creator-discovery/MCQCard/MCQCard.tsx
|
|
41126
41176
|
import { jsx as jsx153, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
41127
|
-
var MCQCard =
|
|
41177
|
+
var MCQCard = React112.memo(
|
|
41128
41178
|
({
|
|
41129
41179
|
question,
|
|
41130
41180
|
options,
|
|
@@ -41149,16 +41199,16 @@ var MCQCard = React111.memo(
|
|
|
41149
41199
|
const resolvedQuestion = question || allProps.Question || allProps.q || "";
|
|
41150
41200
|
const resolvedOptions = options || allProps.Options || allProps.opts || {};
|
|
41151
41201
|
const t = th(theme);
|
|
41152
|
-
const [selectedOption, setSelectedOption] =
|
|
41153
|
-
const [isProceeded, setIsProceeded] =
|
|
41154
|
-
const fetchedSessionRef =
|
|
41155
|
-
|
|
41202
|
+
const [selectedOption, setSelectedOption] = React112.useState(propsSelectedOption);
|
|
41203
|
+
const [isProceeded, setIsProceeded] = React112.useState(false);
|
|
41204
|
+
const fetchedSessionRef = React112.useRef("");
|
|
41205
|
+
React112.useEffect(() => {
|
|
41156
41206
|
if (propsSelectedOption) {
|
|
41157
41207
|
setSelectedOption(propsSelectedOption);
|
|
41158
41208
|
setIsProceeded(true);
|
|
41159
41209
|
}
|
|
41160
41210
|
}, [propsSelectedOption]);
|
|
41161
|
-
const buildQuestionKey =
|
|
41211
|
+
const buildQuestionKey = React112.useCallback((sid, question2) => {
|
|
41162
41212
|
let hash = 2166136261;
|
|
41163
41213
|
for (let i = 0; i < question2.length; i++) {
|
|
41164
41214
|
hash ^= question2.charCodeAt(i);
|
|
@@ -41166,7 +41216,7 @@ var MCQCard = React111.memo(
|
|
|
41166
41216
|
}
|
|
41167
41217
|
return `mcq_${sid}_${hash.toString(36)}`;
|
|
41168
41218
|
}, []);
|
|
41169
|
-
|
|
41219
|
+
React112.useEffect(() => {
|
|
41170
41220
|
if (!sessionId || !resolvedQuestion) return;
|
|
41171
41221
|
const fetchKey = `${sessionId}::${resolvedQuestion}`;
|
|
41172
41222
|
if (fetchedSessionRef.current === fetchKey) return;
|
|
@@ -41227,6 +41277,7 @@ A: ${label}`);
|
|
|
41227
41277
|
return /* @__PURE__ */ jsxs114(
|
|
41228
41278
|
"div",
|
|
41229
41279
|
{
|
|
41280
|
+
"data-testid": "mcq-card",
|
|
41230
41281
|
className: cn(
|
|
41231
41282
|
"p-4 rounded-lg border border-gray400 bg-cardSurface w-full",
|
|
41232
41283
|
className
|
|
@@ -41240,6 +41291,8 @@ A: ${label}`);
|
|
|
41240
41291
|
return /* @__PURE__ */ jsx153(
|
|
41241
41292
|
"div",
|
|
41242
41293
|
{
|
|
41294
|
+
"data-testid": "mcq-option",
|
|
41295
|
+
"data-option-key": key,
|
|
41243
41296
|
onClick: (e) => handleOptionClick(key, e),
|
|
41244
41297
|
className: cn(
|
|
41245
41298
|
"cursor-pointer rounded-lg p-3 transition-colors",
|
|
@@ -41276,6 +41329,7 @@ A: ${label}`);
|
|
|
41276
41329
|
/* @__PURE__ */ jsx153("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx153(
|
|
41277
41330
|
"button",
|
|
41278
41331
|
{
|
|
41332
|
+
"data-testid": "mcq-continue",
|
|
41279
41333
|
onClick: handleProceed,
|
|
41280
41334
|
disabled: isContinueDisabled || isLoading || !selectedOption && !recommended,
|
|
41281
41335
|
className: cn(
|
|
@@ -41771,9 +41825,9 @@ var CreatorActionHeader = ({
|
|
|
41771
41825
|
};
|
|
41772
41826
|
|
|
41773
41827
|
// src/molecules/creator-discovery/CreatorSearchBox/CreatorSearch.tsx
|
|
41774
|
-
import
|
|
41828
|
+
import React113, { useMemo as useMemo8 } from "react";
|
|
41775
41829
|
import { jsx as jsx164, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
41776
|
-
var CreatorSearch =
|
|
41830
|
+
var CreatorSearch = React113.memo(
|
|
41777
41831
|
({
|
|
41778
41832
|
selectionStatus,
|
|
41779
41833
|
isLatestMessage = true,
|
|
@@ -41862,10 +41916,10 @@ var CreatorSearch = React112.memo(
|
|
|
41862
41916
|
CreatorSearch.displayName = "CreatorSearch";
|
|
41863
41917
|
|
|
41864
41918
|
// src/molecules/creator-discovery/CampaignConceptCard/CampaignConceptCard.tsx
|
|
41865
|
-
import
|
|
41919
|
+
import React114, { useMemo as useMemo9, useState as useState14 } from "react";
|
|
41866
41920
|
import { motion, AnimatePresence } from "framer-motion";
|
|
41867
41921
|
import { jsx as jsx165, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
41868
|
-
var CampaignConceptCard =
|
|
41922
|
+
var CampaignConceptCard = React114.memo(
|
|
41869
41923
|
({
|
|
41870
41924
|
index,
|
|
41871
41925
|
isRecommended,
|
|
@@ -45499,16 +45553,16 @@ function KbdGroup({ className, ...props }) {
|
|
|
45499
45553
|
}
|
|
45500
45554
|
|
|
45501
45555
|
// src/components/ui/sidebar.tsx
|
|
45502
|
-
import * as
|
|
45556
|
+
import * as React116 from "react";
|
|
45503
45557
|
import { Slot as Slot6 } from "@radix-ui/react-slot";
|
|
45504
45558
|
import { cva as cva13 } from "class-variance-authority";
|
|
45505
45559
|
|
|
45506
45560
|
// src/hooks/use-mobile.tsx
|
|
45507
|
-
import * as
|
|
45561
|
+
import * as React115 from "react";
|
|
45508
45562
|
var MOBILE_BREAKPOINT = 768;
|
|
45509
45563
|
function useIsMobile() {
|
|
45510
|
-
const [isMobile, setIsMobile] =
|
|
45511
|
-
|
|
45564
|
+
const [isMobile, setIsMobile] = React115.useState(void 0);
|
|
45565
|
+
React115.useEffect(() => {
|
|
45512
45566
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
45513
45567
|
const onChange = () => {
|
|
45514
45568
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -45528,15 +45582,15 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
45528
45582
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
45529
45583
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
45530
45584
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
45531
|
-
var SidebarContext =
|
|
45585
|
+
var SidebarContext = React116.createContext(null);
|
|
45532
45586
|
function useSidebar() {
|
|
45533
|
-
const context =
|
|
45587
|
+
const context = React116.useContext(SidebarContext);
|
|
45534
45588
|
if (!context) {
|
|
45535
45589
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
45536
45590
|
}
|
|
45537
45591
|
return context;
|
|
45538
45592
|
}
|
|
45539
|
-
var SidebarProvider =
|
|
45593
|
+
var SidebarProvider = React116.forwardRef(
|
|
45540
45594
|
({
|
|
45541
45595
|
defaultOpen = true,
|
|
45542
45596
|
open: openProp,
|
|
@@ -45547,10 +45601,10 @@ var SidebarProvider = React115.forwardRef(
|
|
|
45547
45601
|
...props
|
|
45548
45602
|
}, ref) => {
|
|
45549
45603
|
const isMobile = useIsMobile();
|
|
45550
|
-
const [openMobile, setOpenMobile] =
|
|
45551
|
-
const [_open, _setOpen] =
|
|
45604
|
+
const [openMobile, setOpenMobile] = React116.useState(false);
|
|
45605
|
+
const [_open, _setOpen] = React116.useState(defaultOpen);
|
|
45552
45606
|
const open = openProp ?? _open;
|
|
45553
|
-
const setOpen =
|
|
45607
|
+
const setOpen = React116.useCallback(
|
|
45554
45608
|
(value) => {
|
|
45555
45609
|
const openState = typeof value === "function" ? value(open) : value;
|
|
45556
45610
|
if (setOpenProp) {
|
|
@@ -45562,10 +45616,10 @@ var SidebarProvider = React115.forwardRef(
|
|
|
45562
45616
|
},
|
|
45563
45617
|
[setOpenProp, open]
|
|
45564
45618
|
);
|
|
45565
|
-
const toggleSidebar =
|
|
45619
|
+
const toggleSidebar = React116.useCallback(() => {
|
|
45566
45620
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
45567
45621
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
45568
|
-
|
|
45622
|
+
React116.useEffect(() => {
|
|
45569
45623
|
const handleKeyDown = (event) => {
|
|
45570
45624
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
45571
45625
|
event.preventDefault();
|
|
@@ -45576,7 +45630,7 @@ var SidebarProvider = React115.forwardRef(
|
|
|
45576
45630
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
45577
45631
|
}, [toggleSidebar]);
|
|
45578
45632
|
const state = open ? "expanded" : "collapsed";
|
|
45579
|
-
const contextValue =
|
|
45633
|
+
const contextValue = React116.useMemo(
|
|
45580
45634
|
() => ({
|
|
45581
45635
|
state,
|
|
45582
45636
|
open,
|
|
@@ -45608,7 +45662,7 @@ var SidebarProvider = React115.forwardRef(
|
|
|
45608
45662
|
}
|
|
45609
45663
|
);
|
|
45610
45664
|
SidebarProvider.displayName = "SidebarProvider";
|
|
45611
|
-
var Sidebar =
|
|
45665
|
+
var Sidebar = React116.forwardRef(
|
|
45612
45666
|
({
|
|
45613
45667
|
side = "left",
|
|
45614
45668
|
variant = "sidebar",
|
|
@@ -45701,7 +45755,7 @@ var Sidebar = React115.forwardRef(
|
|
|
45701
45755
|
}
|
|
45702
45756
|
);
|
|
45703
45757
|
Sidebar.displayName = "Sidebar";
|
|
45704
|
-
var SidebarTrigger =
|
|
45758
|
+
var SidebarTrigger = React116.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
45705
45759
|
const { toggleSidebar } = useSidebar();
|
|
45706
45760
|
return /* @__PURE__ */ jsxs138(
|
|
45707
45761
|
Button,
|
|
@@ -45724,7 +45778,7 @@ var SidebarTrigger = React115.forwardRef(({ className, onClick, ...props }, ref)
|
|
|
45724
45778
|
);
|
|
45725
45779
|
});
|
|
45726
45780
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
45727
|
-
var SidebarRail =
|
|
45781
|
+
var SidebarRail = React116.forwardRef(({ className, ...props }, ref) => {
|
|
45728
45782
|
const { toggleSidebar } = useSidebar();
|
|
45729
45783
|
return /* @__PURE__ */ jsx184(
|
|
45730
45784
|
"button",
|
|
@@ -45749,7 +45803,7 @@ var SidebarRail = React115.forwardRef(({ className, ...props }, ref) => {
|
|
|
45749
45803
|
);
|
|
45750
45804
|
});
|
|
45751
45805
|
SidebarRail.displayName = "SidebarRail";
|
|
45752
|
-
var SidebarInset =
|
|
45806
|
+
var SidebarInset = React116.forwardRef(({ className, ...props }, ref) => {
|
|
45753
45807
|
return /* @__PURE__ */ jsx184(
|
|
45754
45808
|
"main",
|
|
45755
45809
|
{
|
|
@@ -45764,7 +45818,7 @@ var SidebarInset = React115.forwardRef(({ className, ...props }, ref) => {
|
|
|
45764
45818
|
);
|
|
45765
45819
|
});
|
|
45766
45820
|
SidebarInset.displayName = "SidebarInset";
|
|
45767
|
-
var SidebarInput =
|
|
45821
|
+
var SidebarInput = React116.forwardRef(({ className, ...props }, ref) => {
|
|
45768
45822
|
return /* @__PURE__ */ jsx184(
|
|
45769
45823
|
Input,
|
|
45770
45824
|
{
|
|
@@ -45779,7 +45833,7 @@ var SidebarInput = React115.forwardRef(({ className, ...props }, ref) => {
|
|
|
45779
45833
|
);
|
|
45780
45834
|
});
|
|
45781
45835
|
SidebarInput.displayName = "SidebarInput";
|
|
45782
|
-
var SidebarHeader =
|
|
45836
|
+
var SidebarHeader = React116.forwardRef(({ className, ...props }, ref) => {
|
|
45783
45837
|
return /* @__PURE__ */ jsx184(
|
|
45784
45838
|
"div",
|
|
45785
45839
|
{
|
|
@@ -45791,7 +45845,7 @@ var SidebarHeader = React115.forwardRef(({ className, ...props }, ref) => {
|
|
|
45791
45845
|
);
|
|
45792
45846
|
});
|
|
45793
45847
|
SidebarHeader.displayName = "SidebarHeader";
|
|
45794
|
-
var SidebarFooter =
|
|
45848
|
+
var SidebarFooter = React116.forwardRef(({ className, ...props }, ref) => {
|
|
45795
45849
|
return /* @__PURE__ */ jsx184(
|
|
45796
45850
|
"div",
|
|
45797
45851
|
{
|
|
@@ -45803,7 +45857,7 @@ var SidebarFooter = React115.forwardRef(({ className, ...props }, ref) => {
|
|
|
45803
45857
|
);
|
|
45804
45858
|
});
|
|
45805
45859
|
SidebarFooter.displayName = "SidebarFooter";
|
|
45806
|
-
var SidebarSeparator =
|
|
45860
|
+
var SidebarSeparator = React116.forwardRef(({ className, ...props }, ref) => {
|
|
45807
45861
|
return /* @__PURE__ */ jsx184(
|
|
45808
45862
|
Separator2,
|
|
45809
45863
|
{
|
|
@@ -45815,7 +45869,7 @@ var SidebarSeparator = React115.forwardRef(({ className, ...props }, ref) => {
|
|
|
45815
45869
|
);
|
|
45816
45870
|
});
|
|
45817
45871
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
45818
|
-
var SidebarContent =
|
|
45872
|
+
var SidebarContent = React116.forwardRef(({ className, ...props }, ref) => {
|
|
45819
45873
|
return /* @__PURE__ */ jsx184(
|
|
45820
45874
|
"div",
|
|
45821
45875
|
{
|
|
@@ -45830,7 +45884,7 @@ var SidebarContent = React115.forwardRef(({ className, ...props }, ref) => {
|
|
|
45830
45884
|
);
|
|
45831
45885
|
});
|
|
45832
45886
|
SidebarContent.displayName = "SidebarContent";
|
|
45833
|
-
var SidebarGroup =
|
|
45887
|
+
var SidebarGroup = React116.forwardRef(({ className, ...props }, ref) => {
|
|
45834
45888
|
return /* @__PURE__ */ jsx184(
|
|
45835
45889
|
"div",
|
|
45836
45890
|
{
|
|
@@ -45842,7 +45896,7 @@ var SidebarGroup = React115.forwardRef(({ className, ...props }, ref) => {
|
|
|
45842
45896
|
);
|
|
45843
45897
|
});
|
|
45844
45898
|
SidebarGroup.displayName = "SidebarGroup";
|
|
45845
|
-
var SidebarGroupLabel =
|
|
45899
|
+
var SidebarGroupLabel = React116.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
45846
45900
|
const Comp = asChild ? Slot6 : "div";
|
|
45847
45901
|
return /* @__PURE__ */ jsx184(
|
|
45848
45902
|
Comp,
|
|
@@ -45859,7 +45913,7 @@ var SidebarGroupLabel = React115.forwardRef(({ className, asChild = false, ...pr
|
|
|
45859
45913
|
);
|
|
45860
45914
|
});
|
|
45861
45915
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
45862
|
-
var SidebarGroupAction =
|
|
45916
|
+
var SidebarGroupAction = React116.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
45863
45917
|
const Comp = asChild ? Slot6 : "button";
|
|
45864
45918
|
return /* @__PURE__ */ jsx184(
|
|
45865
45919
|
Comp,
|
|
@@ -45878,7 +45932,7 @@ var SidebarGroupAction = React115.forwardRef(({ className, asChild = false, ...p
|
|
|
45878
45932
|
);
|
|
45879
45933
|
});
|
|
45880
45934
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
45881
|
-
var SidebarGroupContent =
|
|
45935
|
+
var SidebarGroupContent = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx184(
|
|
45882
45936
|
"div",
|
|
45883
45937
|
{
|
|
45884
45938
|
ref,
|
|
@@ -45888,7 +45942,7 @@ var SidebarGroupContent = React115.forwardRef(({ className, ...props }, ref) =>
|
|
|
45888
45942
|
}
|
|
45889
45943
|
));
|
|
45890
45944
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
45891
|
-
var SidebarMenu =
|
|
45945
|
+
var SidebarMenu = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx184(
|
|
45892
45946
|
"ul",
|
|
45893
45947
|
{
|
|
45894
45948
|
ref,
|
|
@@ -45898,7 +45952,7 @@ var SidebarMenu = React115.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
45898
45952
|
}
|
|
45899
45953
|
));
|
|
45900
45954
|
SidebarMenu.displayName = "SidebarMenu";
|
|
45901
|
-
var SidebarMenuItem =
|
|
45955
|
+
var SidebarMenuItem = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx184(
|
|
45902
45956
|
"li",
|
|
45903
45957
|
{
|
|
45904
45958
|
ref,
|
|
@@ -45928,7 +45982,7 @@ var sidebarMenuButtonVariants = cva13(
|
|
|
45928
45982
|
}
|
|
45929
45983
|
}
|
|
45930
45984
|
);
|
|
45931
|
-
var SidebarMenuButton =
|
|
45985
|
+
var SidebarMenuButton = React116.forwardRef(
|
|
45932
45986
|
({
|
|
45933
45987
|
asChild = false,
|
|
45934
45988
|
isActive = false,
|
|
@@ -45974,7 +46028,7 @@ var SidebarMenuButton = React115.forwardRef(
|
|
|
45974
46028
|
}
|
|
45975
46029
|
);
|
|
45976
46030
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
45977
|
-
var SidebarMenuAction =
|
|
46031
|
+
var SidebarMenuAction = React116.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
45978
46032
|
const Comp = asChild ? Slot6 : "button";
|
|
45979
46033
|
return /* @__PURE__ */ jsx184(
|
|
45980
46034
|
Comp,
|
|
@@ -45997,7 +46051,7 @@ var SidebarMenuAction = React115.forwardRef(({ className, asChild = false, showO
|
|
|
45997
46051
|
);
|
|
45998
46052
|
});
|
|
45999
46053
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
46000
|
-
var SidebarMenuBadge =
|
|
46054
|
+
var SidebarMenuBadge = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx184(
|
|
46001
46055
|
"div",
|
|
46002
46056
|
{
|
|
46003
46057
|
ref,
|
|
@@ -46015,8 +46069,8 @@ var SidebarMenuBadge = React115.forwardRef(({ className, ...props }, ref) => /*
|
|
|
46015
46069
|
}
|
|
46016
46070
|
));
|
|
46017
46071
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
46018
|
-
var SidebarMenuSkeleton =
|
|
46019
|
-
const width =
|
|
46072
|
+
var SidebarMenuSkeleton = React116.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
46073
|
+
const width = React116.useMemo(() => {
|
|
46020
46074
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
46021
46075
|
}, []);
|
|
46022
46076
|
return /* @__PURE__ */ jsxs138(
|
|
@@ -46049,7 +46103,7 @@ var SidebarMenuSkeleton = React115.forwardRef(({ className, showIcon = false, ..
|
|
|
46049
46103
|
);
|
|
46050
46104
|
});
|
|
46051
46105
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
46052
|
-
var SidebarMenuSub =
|
|
46106
|
+
var SidebarMenuSub = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx184(
|
|
46053
46107
|
"ul",
|
|
46054
46108
|
{
|
|
46055
46109
|
ref,
|
|
@@ -46063,9 +46117,9 @@ var SidebarMenuSub = React115.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
46063
46117
|
}
|
|
46064
46118
|
));
|
|
46065
46119
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
46066
|
-
var SidebarMenuSubItem =
|
|
46120
|
+
var SidebarMenuSubItem = React116.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx184("li", { ref, ...props }));
|
|
46067
46121
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
46068
|
-
var SidebarMenuSubButton =
|
|
46122
|
+
var SidebarMenuSubButton = React116.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
46069
46123
|
const Comp = asChild ? Slot6 : "a";
|
|
46070
46124
|
return /* @__PURE__ */ jsx184(
|
|
46071
46125
|
Comp,
|
|
@@ -46120,14 +46174,14 @@ var Toaster = ({ ...props }) => {
|
|
|
46120
46174
|
};
|
|
46121
46175
|
|
|
46122
46176
|
// src/components/ui/toggle-group.tsx
|
|
46123
|
-
import * as
|
|
46177
|
+
import * as React117 from "react";
|
|
46124
46178
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
46125
46179
|
import { jsx as jsx186 } from "react/jsx-runtime";
|
|
46126
|
-
var ToggleGroupContext =
|
|
46180
|
+
var ToggleGroupContext = React117.createContext({
|
|
46127
46181
|
size: "default",
|
|
46128
46182
|
variant: "default"
|
|
46129
46183
|
});
|
|
46130
|
-
var ToggleGroup =
|
|
46184
|
+
var ToggleGroup = React117.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx186(
|
|
46131
46185
|
ToggleGroupPrimitive.Root,
|
|
46132
46186
|
{
|
|
46133
46187
|
ref,
|
|
@@ -46137,8 +46191,8 @@ var ToggleGroup = React116.forwardRef(({ className, variant, size, children, ...
|
|
|
46137
46191
|
}
|
|
46138
46192
|
));
|
|
46139
46193
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
46140
|
-
var ToggleGroupItem =
|
|
46141
|
-
const context =
|
|
46194
|
+
var ToggleGroupItem = React117.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
46195
|
+
const context = React117.useContext(ToggleGroupContext);
|
|
46142
46196
|
return /* @__PURE__ */ jsx186(
|
|
46143
46197
|
ToggleGroupPrimitive.Item,
|
|
46144
46198
|
{
|
|
@@ -46350,24 +46404,48 @@ var normalizeProps = (props) => {
|
|
|
46350
46404
|
});
|
|
46351
46405
|
return { normalized, dynamicStyle };
|
|
46352
46406
|
};
|
|
46407
|
+
var FORM_INPUT_ATOM_NAMES = /* @__PURE__ */ new Set([
|
|
46408
|
+
"InputAtom",
|
|
46409
|
+
"TextareaAtom",
|
|
46410
|
+
"SelectAtom",
|
|
46411
|
+
"SliderAtom",
|
|
46412
|
+
"CheckboxAtom",
|
|
46413
|
+
"SwitchAtom",
|
|
46414
|
+
"RadioAtom",
|
|
46415
|
+
"RadioGroupAtom",
|
|
46416
|
+
"FormInputAtom",
|
|
46417
|
+
"FormSelectAtom",
|
|
46418
|
+
"FormTextareaAtom",
|
|
46419
|
+
"RatingAtom",
|
|
46420
|
+
"CalendarAtom",
|
|
46421
|
+
"InputOTPAtom",
|
|
46422
|
+
"ToggleAtom"
|
|
46423
|
+
]);
|
|
46353
46424
|
var PXEngineRenderer = ({
|
|
46354
46425
|
schema,
|
|
46355
46426
|
onAction,
|
|
46356
46427
|
disabled,
|
|
46357
|
-
theme
|
|
46428
|
+
theme,
|
|
46429
|
+
onFormSubmit
|
|
46358
46430
|
}) => {
|
|
46359
|
-
const contextTheme =
|
|
46431
|
+
const contextTheme = React118.useContext(WidgetThemeContext);
|
|
46360
46432
|
const effectiveTheme = theme ?? contextTheme;
|
|
46433
|
+
const formValuesRef = React118.useRef({});
|
|
46434
|
+
const [, forceUpdate] = React118.useReducer((x) => x + 1, 0);
|
|
46435
|
+
const handleInputValueChange = React118.useCallback((key, value) => {
|
|
46436
|
+
formValuesRef.current[key] = value;
|
|
46437
|
+
forceUpdate();
|
|
46438
|
+
}, []);
|
|
46361
46439
|
if (!schema) return null;
|
|
46362
46440
|
const root = schema.root || schema;
|
|
46363
46441
|
const renderRecursive = (component, index) => {
|
|
46364
46442
|
if (Array.isArray(component)) {
|
|
46365
|
-
return /* @__PURE__ */ jsx187(
|
|
46443
|
+
return /* @__PURE__ */ jsx187(React118.Fragment, { children: component.map((child, idx) => renderRecursive(child, idx)) }, index !== void 0 ? `array-${index}` : "array-root");
|
|
46366
46444
|
}
|
|
46367
46445
|
if (typeof component === "string" || typeof component === "number") {
|
|
46368
46446
|
return component;
|
|
46369
46447
|
}
|
|
46370
|
-
if (
|
|
46448
|
+
if (React118.isValidElement(component)) {
|
|
46371
46449
|
return component;
|
|
46372
46450
|
}
|
|
46373
46451
|
if (!component || typeof component !== "object") return null;
|
|
@@ -46389,12 +46467,43 @@ var PXEngineRenderer = ({
|
|
|
46389
46467
|
if (disabled !== void 0 && rawProps.disabled === void 0) {
|
|
46390
46468
|
rawProps.disabled = disabled;
|
|
46391
46469
|
}
|
|
46470
|
+
const normalizedName = componentName.charAt(0).toUpperCase() + componentName.slice(1);
|
|
46471
|
+
const earlyAtomName = normalizedName.endsWith("Atom") ? normalizedName : `${normalizedName}Atom`;
|
|
46472
|
+
if (onFormSubmit && FORM_INPUT_ATOM_NAMES.has(earlyAtomName)) {
|
|
46473
|
+
const fieldKey = rawProps.fieldKey || rawProps.id || id || rawProps.label || componentName;
|
|
46474
|
+
const storedValue = formValuesRef.current[fieldKey];
|
|
46475
|
+
if (storedValue !== void 0) {
|
|
46476
|
+
rawProps.defaultValue = storedValue;
|
|
46477
|
+
}
|
|
46478
|
+
rawProps.onValueChange = handleInputValueChange;
|
|
46479
|
+
rawProps.fieldKey = fieldKey;
|
|
46480
|
+
if (id) rawProps.id = id;
|
|
46481
|
+
}
|
|
46482
|
+
if (onFormSubmit && earlyAtomName === "ButtonAtom") {
|
|
46483
|
+
const action = rawProps.action || rawProps.buttonAction;
|
|
46484
|
+
if (action === "submit") {
|
|
46485
|
+
const originalOnAction = rawProps.onAction;
|
|
46486
|
+
rawProps.onAction = (evt) => {
|
|
46487
|
+
const elements = Object.entries(formValuesRef.current).map(
|
|
46488
|
+
([key, value]) => ({
|
|
46489
|
+
id: key,
|
|
46490
|
+
atomName: "InputAtom",
|
|
46491
|
+
props: { fieldKey: key, label: key, question: key },
|
|
46492
|
+
value
|
|
46493
|
+
})
|
|
46494
|
+
);
|
|
46495
|
+
const qaText = formatQAMessage(elements);
|
|
46496
|
+
const values = { ...formValuesRef.current };
|
|
46497
|
+
onFormSubmit(qaText, values);
|
|
46498
|
+
if (originalOnAction) originalOnAction(evt);
|
|
46499
|
+
};
|
|
46500
|
+
}
|
|
46501
|
+
}
|
|
46392
46502
|
const { normalized: finalProps, dynamicStyle } = normalizeProps(rawProps);
|
|
46393
46503
|
if (id && !finalProps.id) {
|
|
46394
46504
|
finalProps.id = id;
|
|
46395
46505
|
}
|
|
46396
46506
|
const uniqueKey = id || (index !== void 0 ? `${componentName}-${index}` : `${componentName}-root`);
|
|
46397
|
-
const normalizedName = componentName.charAt(0).toUpperCase() + componentName.slice(1);
|
|
46398
46507
|
const resolveComponent = (identifier) => {
|
|
46399
46508
|
const normalized = identifier.split(/[-_]/).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("");
|
|
46400
46509
|
const atomName2 = normalized.endsWith("Atom") ? normalized : `${normalized}Atom`;
|
|
@@ -46451,13 +46560,15 @@ var PXEngineRenderer = ({
|
|
|
46451
46560
|
finalProps.theme = effectiveTheme;
|
|
46452
46561
|
}
|
|
46453
46562
|
const finalStyle = { ...dynamicStyle, ...finalProps.style || {} };
|
|
46563
|
+
const effectiveOnAction = finalProps.onAction ?? onAction;
|
|
46564
|
+
delete finalProps.onAction;
|
|
46454
46565
|
if (isAtomWithRenderProp) {
|
|
46455
46566
|
return /* @__PURE__ */ jsx187(
|
|
46456
46567
|
TargetComponent,
|
|
46457
46568
|
{
|
|
46458
46569
|
...finalProps,
|
|
46459
46570
|
style: finalStyle,
|
|
46460
|
-
onAction,
|
|
46571
|
+
onAction: effectiveOnAction,
|
|
46461
46572
|
renderComponent: renderRecursive,
|
|
46462
46573
|
children
|
|
46463
46574
|
},
|
|
@@ -46469,7 +46580,7 @@ var PXEngineRenderer = ({
|
|
|
46469
46580
|
{
|
|
46470
46581
|
...finalProps,
|
|
46471
46582
|
style: finalStyle,
|
|
46472
|
-
onAction,
|
|
46583
|
+
onAction: effectiveOnAction,
|
|
46473
46584
|
children: Array.isArray(children) ? children.map((child, idx) => renderRecursive(child, idx)) : children
|
|
46474
46585
|
},
|
|
46475
46586
|
uniqueKey
|