@vadimcomanescu/nadicode-design-system 5.0.0 → 5.0.2
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/.agents/skills/seed/SKILL.md +100 -24
- package/.agents/skills/seed/references/composition.md +37 -21
- package/.agents/skills/seed/references/glass-and-effects.md +7 -5
- package/.agents/skills/seed/references/responsive.md +22 -63
- package/.agents/skills/seed/references/state-machines.md +54 -46
- package/contracts/release-governance-baseline.json +0 -1
- package/dist/{TeamPage-BX3RMSZU.js → TeamPage-UO3V2JDK.js} +33 -32
- package/dist/catalog/catalog.d.ts +66 -4
- package/dist/catalog/catalog.js +9 -9
- package/dist/catalog/components.d.ts +1 -2
- package/dist/catalog/components.js +27 -27
- package/dist/catalog/definitions/blocks-agent.d.ts +0 -1
- package/dist/catalog/definitions/blocks-agent.js +1 -1
- package/dist/catalog/definitions/blocks-auth.d.ts +16 -0
- package/dist/catalog/definitions/blocks-auth.js +1 -1
- package/dist/catalog/definitions/blocks-content.d.ts +18 -0
- package/dist/catalog/definitions/blocks-content.js +1 -1
- package/dist/catalog/definitions/blocks-crud.d.ts +22 -2
- package/dist/catalog/definitions/blocks-crud.js +1 -1
- package/dist/catalog/definitions/blocks-data.d.ts +2 -0
- package/dist/catalog/definitions/blocks-data.js +1 -1
- package/dist/catalog/definitions/blocks-marketing.d.ts +8 -0
- package/dist/catalog/definitions/blocks-marketing.js +1 -1
- package/dist/catalog/definitions/chat.d.ts +0 -1
- package/dist/catalog/definitions/chat.js +1 -1
- package/dist/catalog/definitions/index.d.ts +66 -4
- package/dist/catalog/definitions/index.js +8 -8
- package/dist/catalog/primitives/chat.js +2 -2
- package/dist/catalog/primitives/index.js +3 -3
- package/dist/{chunk-C7LO3JEF.js → chunk-33UWVOQ6.js} +44 -12
- package/dist/{chunk-IHGZJS7N.js → chunk-3FJG5MAT.js} +8 -2
- package/dist/{chunk-UOUERAB4.js → chunk-3LROWCZE.js} +26 -8
- package/dist/{chunk-UIYX2EMT.js → chunk-5RBO2IMZ.js} +7 -2
- package/dist/{chunk-7SRNVMBY.js → chunk-7LYRUSWM.js} +8 -3
- package/dist/{chunk-ZND7AAWG.js → chunk-A4QNTJUR.js} +4 -2
- package/dist/{chunk-P7CTBRHO.js → chunk-AP5SGSN7.js} +15 -5
- package/dist/{chunk-5MLOZVOQ.js → chunk-B4373MDA.js} +9 -4
- package/dist/{chunk-KV726HMK.js → chunk-BOWKE7OE.js} +4 -4
- package/dist/{chunk-NVBF4OWT.js → chunk-BY6LWOHB.js} +7 -2
- package/dist/{chunk-4TK2PXMJ.js → chunk-CTVV6JS6.js} +1 -1
- package/dist/{chunk-6KRT337C.js → chunk-E4KUPYHE.js} +1 -1
- package/dist/{chunk-3TYPQWKD.js → chunk-FSU7ZM5V.js} +7 -2
- package/dist/{chunk-QLPU2IEO.js → chunk-FX3GYS5O.js} +27 -4
- package/dist/{chunk-OMI2LLXM.js → chunk-H3KTAHJP.js} +17 -3
- package/dist/{chunk-UGXI4PES.js → chunk-IW36SVOH.js} +17 -7
- package/dist/{chunk-5L2RFJZR.js → chunk-JDHD4L6N.js} +1 -1
- package/dist/{chunk-CAET62YQ.js → chunk-NBDUZA66.js} +11 -4
- package/dist/{chunk-TNDMBLYP.js → chunk-NDQO7AO6.js} +15 -3
- package/dist/{chunk-MT76BPYV.js → chunk-PQOL3E2V.js} +1 -1
- package/dist/{chunk-ZNF6S3DQ.js → chunk-QCFDSOTV.js} +9 -5
- package/dist/{chunk-ID3N3MHQ.js → chunk-R4SBK6Y5.js} +7 -2
- package/dist/{chunk-GNKNT52O.js → chunk-TTDKPZ75.js} +1 -1
- package/dist/{chunk-BAB6AHOM.js → chunk-U43JTK45.js} +1 -1
- package/dist/{chunk-WHYKEOUV.js → chunk-U5QLJHYN.js} +0 -2
- package/dist/{chunk-4ACR6NGQ.js → chunk-UAN2YEI5.js} +3 -7
- package/dist/{chunk-NA6ZPKIK.js → chunk-UCFR7GLW.js} +11 -17
- package/dist/{chunk-R4DPHCHJ.js → chunk-UMEBNHKR.js} +9 -6
- package/dist/{chunk-A44E44UV.js → chunk-UPMSE6PQ.js} +7 -2
- package/dist/{chunk-HMN4K4L6.js → chunk-VQVWFCHF.js} +7 -7
- package/dist/{chunk-LZ66ADSL.js → chunk-WGQHM56J.js} +25 -25
- package/dist/{chunk-JPNNAU26.js → chunk-XLN4NVKU.js} +16 -28
- package/dist/{chunk-CPHVCY3M.js → chunk-XUWKGDUY.js} +1 -1
- package/dist/{chunk-FAKTXE3F.js → chunk-YEAJLVGB.js} +8 -4
- package/dist/{chunk-56TNQ2P4.js → chunk-YMAEXGD2.js} +1 -1
- package/dist/{chunk-YNBDA24W.js → chunk-ZKA5X3E4.js} +12 -3
- package/dist/{chunk-VUNXVYOH.js → chunk-ZL6BPQNN.js} +19 -10
- package/dist/{chunk-XYYZRQES.js → chunk-ZU7MDRCI.js} +1 -1
- package/dist/components/blocks/AgentConversationBlock.d.ts +2 -5
- package/dist/components/blocks/AgentConversationBlock.js +2 -2
- package/dist/components/blocks/AgentWorkbenchBlock.d.ts +2 -5
- package/dist/components/blocks/AgentWorkbenchBlock.js +2 -2
- package/dist/components/blocks/ApiKeysBlock.d.ts +1 -1
- package/dist/components/blocks/ApiKeysBlock.js +1 -1
- package/dist/components/blocks/AuthLayout.d.ts +1 -1
- package/dist/components/blocks/AuthLayout.js +2 -2
- package/dist/components/blocks/CommandPaletteBlock.d.ts +1 -1
- package/dist/components/blocks/CommandPaletteBlock.js +1 -1
- package/dist/components/blocks/ContactBlock.d.ts +1 -1
- package/dist/components/blocks/ContactBlock.js +1 -1
- package/dist/components/blocks/CreateBlock.d.ts +1 -1
- package/dist/components/blocks/CreateBlock.js +1 -1
- package/dist/components/blocks/CrudListBlock.d.ts +1 -1
- package/dist/components/blocks/CrudListBlock.js +1 -1
- package/dist/components/blocks/DashboardBlock.js +1 -1
- package/dist/components/blocks/HeroBlock.d.ts +1 -25
- package/dist/components/blocks/HeroBlock.js +1 -1
- package/dist/components/blocks/InteractiveAreaChartBlock.d.ts +1 -1
- package/dist/components/blocks/InteractiveAreaChartBlock.js +1 -1
- package/dist/components/blocks/LoginBlock.d.ts +1 -1
- package/dist/components/blocks/LoginBlock.js +1 -1
- package/dist/components/blocks/NewsletterBlock.d.ts +3 -1
- package/dist/components/blocks/NewsletterBlock.js +1 -1
- package/dist/components/blocks/OTPBlock.d.ts +1 -1
- package/dist/components/blocks/OTPBlock.js +1 -1
- package/dist/components/blocks/OnboardingBlock.d.ts +1 -1
- package/dist/components/blocks/OnboardingBlock.js +1 -1
- package/dist/components/blocks/OnboardingFlowBlock.d.ts +1 -1
- package/dist/components/blocks/OnboardingFlowBlock.js +2 -2
- package/dist/components/blocks/PasswordRecoveryBlock.d.ts +1 -1
- package/dist/components/blocks/PasswordRecoveryBlock.js +1 -1
- package/dist/components/blocks/ResetPasswordBlock.d.ts +1 -1
- package/dist/components/blocks/ResetPasswordBlock.js +1 -1
- package/dist/components/blocks/TwoFactorSetupBlock.d.ts +1 -1
- package/dist/components/blocks/TwoFactorSetupBlock.js +2 -2
- package/dist/components/blocks/WizardBlock.d.ts +1 -1
- package/dist/components/blocks/WizardBlock.js +1 -1
- package/dist/components/blocks/user/InviteUserModal.d.ts +1 -18
- package/dist/components/blocks/user/InviteUserModal.js +1 -1
- package/dist/components/ui/ChatMessage.d.ts +2 -6
- package/dist/components/ui/ChatMessage.js +1 -1
- package/dist/components/ui/FormWizard.d.ts +1 -2
- package/dist/components/ui/FormWizard.js +1 -1
- package/dist/components/ui/KanbanBoard.d.ts +3 -3
- package/dist/components/ui/KanbanBoard.js +1 -1
- package/dist/index.js +0 -137
- package/dist/lib/json-render/app.js +1 -1
- package/dist/lib/json-render/catalog.d.ts +28 -0
- package/dist/lib/json-render/catalog.js +10 -10
- package/dist/lib/json-render/registry.js +10 -10
- package/dist/lib/json-render/showcase-spec.js +1 -1
- package/dist/lib-index.d.ts +6 -24
- package/package.json +1 -5
- package/dist/catalog/types.d.ts +0 -4
- package/dist/catalog/types.js +0 -1
|
@@ -12,6 +12,7 @@ export declare const blocksCrudDefinitions: {
|
|
|
12
12
|
}, z.core.$strip>>>;
|
|
13
13
|
title: z.ZodNullable<z.ZodString>;
|
|
14
14
|
description: z.ZodNullable<z.ZodString>;
|
|
15
|
+
newKeyName: z.ZodNullable<z.ZodString>;
|
|
15
16
|
}, z.core.$strip>;
|
|
16
17
|
events: string[];
|
|
17
18
|
description: string;
|
|
@@ -33,6 +34,7 @@ export declare const blocksCrudDefinitions: {
|
|
|
33
34
|
})[];
|
|
34
35
|
title: string;
|
|
35
36
|
description: string;
|
|
37
|
+
newKeyName: null;
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
40
|
CreateBlock: {
|
|
@@ -40,6 +42,9 @@ export declare const blocksCrudDefinitions: {
|
|
|
40
42
|
title: z.ZodNullable<z.ZodString>;
|
|
41
43
|
description: z.ZodNullable<z.ZodString>;
|
|
42
44
|
submitLabel: z.ZodNullable<z.ZodString>;
|
|
45
|
+
username: z.ZodNullable<z.ZodString>;
|
|
46
|
+
email: z.ZodNullable<z.ZodString>;
|
|
47
|
+
bio: z.ZodNullable<z.ZodString>;
|
|
43
48
|
}, z.core.$strip>;
|
|
44
49
|
events: string[];
|
|
45
50
|
description: string;
|
|
@@ -47,6 +52,9 @@ export declare const blocksCrudDefinitions: {
|
|
|
47
52
|
title: string;
|
|
48
53
|
description: string;
|
|
49
54
|
submitLabel: string;
|
|
55
|
+
username: null;
|
|
56
|
+
email: null;
|
|
57
|
+
bio: null;
|
|
50
58
|
};
|
|
51
59
|
};
|
|
52
60
|
CrudListBlock: {
|
|
@@ -77,6 +85,7 @@ export declare const blocksCrudDefinitions: {
|
|
|
77
85
|
value: z.ZodString;
|
|
78
86
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
79
87
|
}, z.core.$strip>>>;
|
|
88
|
+
filterValue: z.ZodNullable<z.ZodString>;
|
|
80
89
|
pagination: z.ZodObject<{
|
|
81
90
|
page: z.ZodNumber;
|
|
82
91
|
totalPages: z.ZodNumber;
|
|
@@ -108,6 +117,7 @@ export declare const blocksCrudDefinitions: {
|
|
|
108
117
|
}[];
|
|
109
118
|
selectedRowId: null;
|
|
110
119
|
filterControls: null;
|
|
120
|
+
filterValue: null;
|
|
111
121
|
pagination: {
|
|
112
122
|
page: number;
|
|
113
123
|
totalPages: number;
|
|
@@ -280,10 +290,20 @@ export declare const blocksCrudDefinitions: {
|
|
|
280
290
|
};
|
|
281
291
|
};
|
|
282
292
|
InviteUserModal: {
|
|
283
|
-
props: z.ZodObject<{
|
|
293
|
+
props: z.ZodObject<{
|
|
294
|
+
email: z.ZodNullable<z.ZodString>;
|
|
295
|
+
role: z.ZodNullable<z.ZodEnum<{
|
|
296
|
+
admin: "admin";
|
|
297
|
+
member: "member";
|
|
298
|
+
guest: "guest";
|
|
299
|
+
}>>;
|
|
300
|
+
}, z.core.$strip>;
|
|
284
301
|
events: string[];
|
|
285
302
|
description: string;
|
|
286
|
-
example: {
|
|
303
|
+
example: {
|
|
304
|
+
email: null;
|
|
305
|
+
role: null;
|
|
306
|
+
};
|
|
287
307
|
};
|
|
288
308
|
KanbanBoard: {
|
|
289
309
|
props: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { blocksCrudDefinitions } from '../../chunk-
|
|
1
|
+
export { blocksCrudDefinitions } from '../../chunk-IW36SVOH.js';
|
|
@@ -194,6 +194,7 @@ export declare const blocksDataDefinitions: {
|
|
|
194
194
|
label: z.ZodString;
|
|
195
195
|
days: z.ZodNumber;
|
|
196
196
|
}, z.core.$strip>>>;
|
|
197
|
+
timeRange: z.ZodNullable<z.ZodString>;
|
|
197
198
|
}, z.core.$strip>;
|
|
198
199
|
events: string[];
|
|
199
200
|
description: string;
|
|
@@ -220,6 +221,7 @@ export declare const blocksDataDefinitions: {
|
|
|
220
221
|
label: string;
|
|
221
222
|
days: number;
|
|
222
223
|
}[];
|
|
224
|
+
timeRange: null;
|
|
223
225
|
};
|
|
224
226
|
};
|
|
225
227
|
ProcessFlowBlock: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { blocksDataDefinitions } from '../../chunk-
|
|
1
|
+
export { blocksDataDefinitions } from '../../chunk-A4QNTJUR.js';
|
|
2
2
|
import '../../chunk-BJVCZI2B.js';
|
|
@@ -87,6 +87,9 @@ export declare const blocksMarketingDefinitions: {
|
|
|
87
87
|
messagePlaceholder: z.ZodNullable<z.ZodString>;
|
|
88
88
|
successTitle: z.ZodNullable<z.ZodString>;
|
|
89
89
|
submitLabel: z.ZodNullable<z.ZodString>;
|
|
90
|
+
name: z.ZodNullable<z.ZodString>;
|
|
91
|
+
email: z.ZodNullable<z.ZodString>;
|
|
92
|
+
message: z.ZodNullable<z.ZodString>;
|
|
90
93
|
}, z.core.$strip>;
|
|
91
94
|
events: string[];
|
|
92
95
|
description: string;
|
|
@@ -98,6 +101,9 @@ export declare const blocksMarketingDefinitions: {
|
|
|
98
101
|
messagePlaceholder: null;
|
|
99
102
|
successTitle: null;
|
|
100
103
|
submitLabel: string;
|
|
104
|
+
name: null;
|
|
105
|
+
email: null;
|
|
106
|
+
message: null;
|
|
101
107
|
};
|
|
102
108
|
};
|
|
103
109
|
FAQBlock: {
|
|
@@ -310,12 +316,14 @@ export declare const blocksMarketingDefinitions: {
|
|
|
310
316
|
props: z.ZodObject<{
|
|
311
317
|
title: z.ZodNullable<z.ZodString>;
|
|
312
318
|
description: z.ZodNullable<z.ZodString>;
|
|
319
|
+
email: z.ZodNullable<z.ZodString>;
|
|
313
320
|
}, z.core.$strip>;
|
|
314
321
|
events: string[];
|
|
315
322
|
description: string;
|
|
316
323
|
example: {
|
|
317
324
|
title: string;
|
|
318
325
|
description: string;
|
|
326
|
+
email: null;
|
|
319
327
|
};
|
|
320
328
|
};
|
|
321
329
|
SolutionShowcaseBlock: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { blocksMarketingDefinitions } from '../../chunk-
|
|
1
|
+
export { blocksMarketingDefinitions } from '../../chunk-YEAJLVGB.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { chatDefinitions } from '../../chunk-
|
|
1
|
+
export { chatDefinitions } from '../../chunk-E4KUPYHE.js';
|
|
@@ -316,6 +316,7 @@ export declare const allDefinitions: {
|
|
|
316
316
|
group: import("zod").ZodNullable<import("zod").ZodString>;
|
|
317
317
|
}, import("zod/v4/core").$strip>>>;
|
|
318
318
|
placeholder: import("zod").ZodNullable<import("zod").ZodString>;
|
|
319
|
+
searchValue: import("zod").ZodNullable<import("zod").ZodString>;
|
|
319
320
|
}, import("zod/v4/core").$strip>;
|
|
320
321
|
events: string[];
|
|
321
322
|
description: string;
|
|
@@ -326,6 +327,7 @@ export declare const allDefinitions: {
|
|
|
326
327
|
group: string;
|
|
327
328
|
}[];
|
|
328
329
|
placeholder: string;
|
|
330
|
+
searchValue: null;
|
|
329
331
|
};
|
|
330
332
|
};
|
|
331
333
|
FormWizard: {
|
|
@@ -360,6 +362,7 @@ export declare const allDefinitions: {
|
|
|
360
362
|
description: import("zod").ZodString;
|
|
361
363
|
completed: import("zod").ZodBoolean;
|
|
362
364
|
}, import("zod/v4/core").$strip>>>;
|
|
365
|
+
toggledStepId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
363
366
|
}, import("zod/v4/core").$strip>;
|
|
364
367
|
events: string[];
|
|
365
368
|
description: string;
|
|
@@ -371,6 +374,7 @@ export declare const allDefinitions: {
|
|
|
371
374
|
description: string;
|
|
372
375
|
completed: boolean;
|
|
373
376
|
}[];
|
|
377
|
+
toggledStepId: null;
|
|
374
378
|
};
|
|
375
379
|
};
|
|
376
380
|
OnboardingFlowBlock: {
|
|
@@ -415,6 +419,12 @@ export declare const allDefinitions: {
|
|
|
415
419
|
reviewStepTitle: import("zod").ZodNullable<import("zod").ZodString>;
|
|
416
420
|
reviewHeading: import("zod").ZodNullable<import("zod").ZodString>;
|
|
417
421
|
reviewBody: import("zod").ZodNullable<import("zod").ZodString>;
|
|
422
|
+
displayName: import("zod").ZodNullable<import("zod").ZodString>;
|
|
423
|
+
organization: import("zod").ZodNullable<import("zod").ZodString>;
|
|
424
|
+
bio: import("zod").ZodNullable<import("zod").ZodString>;
|
|
425
|
+
framework: import("zod").ZodNullable<import("zod").ZodString>;
|
|
426
|
+
teamSize: import("zod").ZodNullable<import("zod").ZodString>;
|
|
427
|
+
useCase: import("zod").ZodNullable<import("zod").ZodString>;
|
|
418
428
|
}, import("zod/v4/core").$strip>;
|
|
419
429
|
events: string[];
|
|
420
430
|
description: string;
|
|
@@ -459,6 +469,12 @@ export declare const allDefinitions: {
|
|
|
459
469
|
reviewStepTitle: string;
|
|
460
470
|
reviewHeading: string;
|
|
461
471
|
reviewBody: string;
|
|
472
|
+
displayName: null;
|
|
473
|
+
organization: null;
|
|
474
|
+
bio: null;
|
|
475
|
+
framework: null;
|
|
476
|
+
teamSize: null;
|
|
477
|
+
useCase: null;
|
|
462
478
|
};
|
|
463
479
|
};
|
|
464
480
|
PricingBlock: {
|
|
@@ -550,6 +566,7 @@ export declare const allDefinitions: {
|
|
|
550
566
|
icon: import("zod").ZodNullable<import("zod").ZodString>;
|
|
551
567
|
}, import("zod/v4/core").$strip>>>;
|
|
552
568
|
className: import("zod").ZodNullable<import("zod").ZodString>;
|
|
569
|
+
activeStep: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
553
570
|
}, import("zod/v4/core").$strip>;
|
|
554
571
|
events: string[];
|
|
555
572
|
description: string;
|
|
@@ -562,6 +579,7 @@ export declare const allDefinitions: {
|
|
|
562
579
|
icon: string;
|
|
563
580
|
}[];
|
|
564
581
|
className: null;
|
|
582
|
+
activeStep: null;
|
|
565
583
|
};
|
|
566
584
|
};
|
|
567
585
|
UsageDonutBlock: {
|
|
@@ -809,7 +827,6 @@ export declare const allDefinitions: {
|
|
|
809
827
|
system: "system";
|
|
810
828
|
user: "user";
|
|
811
829
|
assistant: "assistant";
|
|
812
|
-
agent: "agent";
|
|
813
830
|
}>;
|
|
814
831
|
content: import("zod").ZodString;
|
|
815
832
|
timestamp: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -964,6 +981,7 @@ export declare const allDefinitions: {
|
|
|
964
981
|
}, import("zod/v4/core").$strip>>>;
|
|
965
982
|
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
966
983
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
984
|
+
newKeyName: import("zod").ZodNullable<import("zod").ZodString>;
|
|
967
985
|
}, import("zod/v4/core").$strip>;
|
|
968
986
|
events: string[];
|
|
969
987
|
description: string;
|
|
@@ -985,6 +1003,7 @@ export declare const allDefinitions: {
|
|
|
985
1003
|
})[];
|
|
986
1004
|
title: string;
|
|
987
1005
|
description: string;
|
|
1006
|
+
newKeyName: null;
|
|
988
1007
|
};
|
|
989
1008
|
};
|
|
990
1009
|
CreateBlock: {
|
|
@@ -992,6 +1011,9 @@ export declare const allDefinitions: {
|
|
|
992
1011
|
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
993
1012
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
994
1013
|
submitLabel: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1014
|
+
username: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1015
|
+
email: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1016
|
+
bio: import("zod").ZodNullable<import("zod").ZodString>;
|
|
995
1017
|
}, import("zod/v4/core").$strip>;
|
|
996
1018
|
events: string[];
|
|
997
1019
|
description: string;
|
|
@@ -999,6 +1021,9 @@ export declare const allDefinitions: {
|
|
|
999
1021
|
title: string;
|
|
1000
1022
|
description: string;
|
|
1001
1023
|
submitLabel: string;
|
|
1024
|
+
username: null;
|
|
1025
|
+
email: null;
|
|
1026
|
+
bio: null;
|
|
1002
1027
|
};
|
|
1003
1028
|
};
|
|
1004
1029
|
CrudListBlock: {
|
|
@@ -1029,6 +1054,7 @@ export declare const allDefinitions: {
|
|
|
1029
1054
|
value: import("zod").ZodString;
|
|
1030
1055
|
placeholder: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1031
1056
|
}, import("zod/v4/core").$strip>>>;
|
|
1057
|
+
filterValue: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1032
1058
|
pagination: import("zod").ZodObject<{
|
|
1033
1059
|
page: import("zod").ZodNumber;
|
|
1034
1060
|
totalPages: import("zod").ZodNumber;
|
|
@@ -1060,6 +1086,7 @@ export declare const allDefinitions: {
|
|
|
1060
1086
|
}[];
|
|
1061
1087
|
selectedRowId: null;
|
|
1062
1088
|
filterControls: null;
|
|
1089
|
+
filterValue: null;
|
|
1063
1090
|
pagination: {
|
|
1064
1091
|
page: number;
|
|
1065
1092
|
totalPages: number;
|
|
@@ -1232,10 +1259,20 @@ export declare const allDefinitions: {
|
|
|
1232
1259
|
};
|
|
1233
1260
|
};
|
|
1234
1261
|
InviteUserModal: {
|
|
1235
|
-
props: import("zod").ZodObject<{
|
|
1262
|
+
props: import("zod").ZodObject<{
|
|
1263
|
+
email: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1264
|
+
role: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
1265
|
+
admin: "admin";
|
|
1266
|
+
member: "member";
|
|
1267
|
+
guest: "guest";
|
|
1268
|
+
}>>;
|
|
1269
|
+
}, import("zod/v4/core").$strip>;
|
|
1236
1270
|
events: string[];
|
|
1237
1271
|
description: string;
|
|
1238
|
-
example: {
|
|
1272
|
+
example: {
|
|
1273
|
+
email: null;
|
|
1274
|
+
role: null;
|
|
1275
|
+
};
|
|
1239
1276
|
};
|
|
1240
1277
|
KanbanBoard: {
|
|
1241
1278
|
props: import("zod").ZodObject<{
|
|
@@ -1628,6 +1665,7 @@ export declare const allDefinitions: {
|
|
|
1628
1665
|
label: import("zod").ZodString;
|
|
1629
1666
|
days: import("zod").ZodNumber;
|
|
1630
1667
|
}, import("zod/v4/core").$strip>>>;
|
|
1668
|
+
timeRange: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1631
1669
|
}, import("zod/v4/core").$strip>;
|
|
1632
1670
|
events: string[];
|
|
1633
1671
|
description: string;
|
|
@@ -1654,6 +1692,7 @@ export declare const allDefinitions: {
|
|
|
1654
1692
|
label: string;
|
|
1655
1693
|
days: number;
|
|
1656
1694
|
}[];
|
|
1695
|
+
timeRange: null;
|
|
1657
1696
|
};
|
|
1658
1697
|
};
|
|
1659
1698
|
ProcessFlowBlock: {
|
|
@@ -1827,6 +1866,9 @@ export declare const allDefinitions: {
|
|
|
1827
1866
|
messagePlaceholder: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1828
1867
|
successTitle: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1829
1868
|
submitLabel: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1869
|
+
name: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1870
|
+
email: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1871
|
+
message: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1830
1872
|
}, import("zod/v4/core").$strip>;
|
|
1831
1873
|
events: string[];
|
|
1832
1874
|
description: string;
|
|
@@ -1838,6 +1880,9 @@ export declare const allDefinitions: {
|
|
|
1838
1880
|
messagePlaceholder: null;
|
|
1839
1881
|
successTitle: null;
|
|
1840
1882
|
submitLabel: string;
|
|
1883
|
+
name: null;
|
|
1884
|
+
email: null;
|
|
1885
|
+
message: null;
|
|
1841
1886
|
};
|
|
1842
1887
|
};
|
|
1843
1888
|
FAQBlock: {
|
|
@@ -2050,12 +2095,14 @@ export declare const allDefinitions: {
|
|
|
2050
2095
|
props: import("zod").ZodObject<{
|
|
2051
2096
|
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2052
2097
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2098
|
+
email: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2053
2099
|
}, import("zod/v4/core").$strip>;
|
|
2054
2100
|
events: string[];
|
|
2055
2101
|
description: string;
|
|
2056
2102
|
example: {
|
|
2057
2103
|
title: string;
|
|
2058
2104
|
description: string;
|
|
2105
|
+
email: null;
|
|
2059
2106
|
};
|
|
2060
2107
|
};
|
|
2061
2108
|
SolutionShowcaseBlock: {
|
|
@@ -2211,6 +2258,9 @@ export declare const allDefinitions: {
|
|
|
2211
2258
|
forgotPasswordHref: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2212
2259
|
signUpHref: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2213
2260
|
signInHref: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2261
|
+
email: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2262
|
+
password: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2263
|
+
fullName: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2214
2264
|
}, import("zod/v4/core").$strip>;
|
|
2215
2265
|
events: string[];
|
|
2216
2266
|
description: string;
|
|
@@ -2221,6 +2271,9 @@ export declare const allDefinitions: {
|
|
|
2221
2271
|
forgotPasswordHref: string;
|
|
2222
2272
|
signUpHref: null;
|
|
2223
2273
|
signInHref: null;
|
|
2274
|
+
email: null;
|
|
2275
|
+
password: null;
|
|
2276
|
+
fullName: null;
|
|
2224
2277
|
};
|
|
2225
2278
|
};
|
|
2226
2279
|
OTPBlock: {
|
|
@@ -2231,6 +2284,7 @@ export declare const allDefinitions: {
|
|
|
2231
2284
|
buttonText: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2232
2285
|
error: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2233
2286
|
backupCodeLink: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2287
|
+
value: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2234
2288
|
}, import("zod/v4/core").$strip>;
|
|
2235
2289
|
events: string[];
|
|
2236
2290
|
description: string;
|
|
@@ -2241,6 +2295,7 @@ export declare const allDefinitions: {
|
|
|
2241
2295
|
buttonText: string;
|
|
2242
2296
|
error: null;
|
|
2243
2297
|
backupCodeLink: string;
|
|
2298
|
+
value: null;
|
|
2244
2299
|
};
|
|
2245
2300
|
};
|
|
2246
2301
|
PasswordRecoveryBlock: {
|
|
@@ -2253,6 +2308,7 @@ export declare const allDefinitions: {
|
|
|
2253
2308
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2254
2309
|
buttonText: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2255
2310
|
successTitle: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2311
|
+
email: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2256
2312
|
}, import("zod/v4/core").$strip>;
|
|
2257
2313
|
events: string[];
|
|
2258
2314
|
description: string;
|
|
@@ -2262,18 +2318,23 @@ export declare const allDefinitions: {
|
|
|
2262
2318
|
description: string;
|
|
2263
2319
|
buttonText: string;
|
|
2264
2320
|
successTitle: string;
|
|
2321
|
+
email: null;
|
|
2265
2322
|
};
|
|
2266
2323
|
};
|
|
2267
2324
|
ResetPasswordBlock: {
|
|
2268
2325
|
props: import("zod").ZodObject<{
|
|
2269
2326
|
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2270
2327
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2328
|
+
password: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2329
|
+
confirmPassword: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2271
2330
|
}, import("zod/v4/core").$strip>;
|
|
2272
2331
|
events: string[];
|
|
2273
2332
|
description: string;
|
|
2274
2333
|
example: {
|
|
2275
2334
|
title: string;
|
|
2276
2335
|
description: string;
|
|
2336
|
+
password: null;
|
|
2337
|
+
confirmPassword: null;
|
|
2277
2338
|
};
|
|
2278
2339
|
};
|
|
2279
2340
|
TwoFactorSetupBlock: {
|
|
@@ -2283,6 +2344,7 @@ export declare const allDefinitions: {
|
|
|
2283
2344
|
backupCodes: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString>>;
|
|
2284
2345
|
title: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2285
2346
|
description: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2347
|
+
verifyCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
2286
2348
|
}, import("zod/v4/core").$strip>;
|
|
2287
2349
|
events: string[];
|
|
2288
2350
|
description: string;
|
|
@@ -2292,6 +2354,7 @@ export declare const allDefinitions: {
|
|
|
2292
2354
|
backupCodes: string[];
|
|
2293
2355
|
title: string;
|
|
2294
2356
|
description: string;
|
|
2357
|
+
verifyCode: null;
|
|
2295
2358
|
};
|
|
2296
2359
|
};
|
|
2297
2360
|
ChatGreeting: {
|
|
@@ -2313,7 +2376,6 @@ export declare const allDefinitions: {
|
|
|
2313
2376
|
system: "system";
|
|
2314
2377
|
user: "user";
|
|
2315
2378
|
assistant: "assistant";
|
|
2316
|
-
agent: "agent";
|
|
2317
2379
|
}>;
|
|
2318
2380
|
isStreaming: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
2319
2381
|
status: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { allDefinitions } from '../../chunk-
|
|
1
|
+
export { allDefinitions } from '../../chunk-VQVWFCHF.js';
|
|
2
2
|
import '../../chunk-LYI5YMC6.js';
|
|
3
3
|
import '../../chunk-UXYLA2IV.js';
|
|
4
4
|
import '../../chunk-YXRIXTXW.js';
|
|
5
5
|
import '../../chunk-UQB54LIA.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-E4KUPYHE.js';
|
|
7
7
|
import '../../chunk-W4KI424V.js';
|
|
8
8
|
import '../../chunk-7SOMHO2L.js';
|
|
9
9
|
import '../../chunk-XI775QZZ.js';
|
|
10
10
|
import '../../chunk-P7JS4B7U.js';
|
|
11
11
|
import '../../chunk-QCL76CM6.js';
|
|
12
12
|
import '../../chunk-5XDYCBR6.js';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
16
|
-
import '../../chunk-
|
|
17
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-ZU7MDRCI.js';
|
|
14
|
+
import '../../chunk-ZL6BPQNN.js';
|
|
15
|
+
import '../../chunk-3LROWCZE.js';
|
|
16
|
+
import '../../chunk-IW36SVOH.js';
|
|
17
|
+
import '../../chunk-A4QNTJUR.js';
|
|
18
18
|
import '../../chunk-BJVCZI2B.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-YEAJLVGB.js';
|
|
20
20
|
import '../../chunk-WAIZR4CR.js';
|
|
21
21
|
import '../../chunk-XLIFWBE7.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { chatComponents } from '../../chunk-
|
|
2
|
+
export { chatComponents } from '../../chunk-YMAEXGD2.js';
|
|
3
3
|
import '../../chunk-2NMP3J5R.js';
|
|
4
4
|
import '../../chunk-KXZP6XI2.js';
|
|
5
5
|
import '../../chunk-VJ5VD4UT.js';
|
|
@@ -7,7 +7,7 @@ import '../../chunk-4EOX2S37.js';
|
|
|
7
7
|
import '../../chunk-L2IRYY6K.js';
|
|
8
8
|
import '../../chunk-MDAYDDTC.js';
|
|
9
9
|
import '../../chunk-MB75U2OV.js';
|
|
10
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-UAN2YEI5.js';
|
|
11
11
|
import '../../chunk-SEJXMNMK.js';
|
|
12
12
|
import '../../chunk-VJIL7W55.js';
|
|
13
13
|
import '../../chunk-NAAU5IWU.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { primitiveComponents } from '../../chunk-
|
|
1
|
+
export { primitiveComponents } from '../../chunk-PQOL3E2V.js';
|
|
2
2
|
import '../../chunk-YGDO5KDY.js';
|
|
3
3
|
import '../../chunk-EJQ73FJ5.js';
|
|
4
4
|
import '../../chunk-4GLBFZVI.js';
|
|
@@ -10,7 +10,7 @@ import '../../chunk-5B3GLRX3.js';
|
|
|
10
10
|
import '../../chunk-GXUQFXT7.js';
|
|
11
11
|
import '../../chunk-65CUE2WL.js';
|
|
12
12
|
import '../../chunk-L55GVKLY.js';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-YMAEXGD2.js';
|
|
14
14
|
import '../../chunk-2NMP3J5R.js';
|
|
15
15
|
import '../../chunk-ANBJ2OLC.js';
|
|
16
16
|
import '../../chunk-LV4LBWCS.js';
|
|
@@ -117,7 +117,7 @@ import '../../chunk-MDAYDDTC.js';
|
|
|
117
117
|
import '../../chunk-TV6CJ5NI.js';
|
|
118
118
|
import '../../chunk-756Q7AC5.js';
|
|
119
119
|
import '../../chunk-MB75U2OV.js';
|
|
120
|
-
import '../../chunk-
|
|
120
|
+
import '../../chunk-UAN2YEI5.js';
|
|
121
121
|
import '../../chunk-SEJXMNMK.js';
|
|
122
122
|
import '../../chunk-VJIL7W55.js';
|
|
123
123
|
import '../../chunk-JDLCIPSC.js';
|
|
@@ -3,21 +3,54 @@ import { Textarea } from './chunk-4OBE2FS2.js';
|
|
|
3
3
|
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-WH62BE24.js';
|
|
4
4
|
import { Heading } from './chunk-UXX6HHPS.js';
|
|
5
5
|
import { Field, FieldLabel } from './chunk-RX5EUODB.js';
|
|
6
|
-
import { FormWizard } from './chunk-
|
|
6
|
+
import { FormWizard } from './chunk-U5QLJHYN.js';
|
|
7
7
|
import { Input } from './chunk-AP3XXYAY.js';
|
|
8
8
|
import { Button } from './chunk-7KIDDF3I.js';
|
|
9
9
|
import { useMotionConfig, m, motionSpring } from './chunk-PD2YEH3H.js';
|
|
10
10
|
import { RocketIcon } from './chunk-QPXTBZWN.js';
|
|
11
11
|
import { CheckIcon } from './chunk-CXACRCZ4.js';
|
|
12
12
|
import { useState } from 'react';
|
|
13
|
+
import { useBoundProp } from '@json-render/react';
|
|
13
14
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
15
|
|
|
15
16
|
function OnboardingFlowBlock({
|
|
16
17
|
props,
|
|
17
|
-
|
|
18
|
+
bindings,
|
|
19
|
+
emit,
|
|
20
|
+
on
|
|
18
21
|
}) {
|
|
19
22
|
const motionConfig = useMotionConfig();
|
|
20
23
|
const [completed, setCompleted] = useState(false);
|
|
24
|
+
const [boundDisplayName, setBoundDisplayName] = useBoundProp(props.displayName, bindings?.displayName);
|
|
25
|
+
const [localDisplayName, setLocalDisplayName] = useState("");
|
|
26
|
+
const isDisplayNameBound = !!bindings?.displayName;
|
|
27
|
+
const displayNameValue = isDisplayNameBound ? boundDisplayName ?? "" : localDisplayName;
|
|
28
|
+
const setDisplayNameValue = isDisplayNameBound ? setBoundDisplayName : setLocalDisplayName;
|
|
29
|
+
const [boundOrganization, setBoundOrganization] = useBoundProp(props.organization, bindings?.organization);
|
|
30
|
+
const [localOrganization, setLocalOrganization] = useState("");
|
|
31
|
+
const isOrganizationBound = !!bindings?.organization;
|
|
32
|
+
const organizationValue = isOrganizationBound ? boundOrganization ?? "" : localOrganization;
|
|
33
|
+
const setOrganizationValue = isOrganizationBound ? setBoundOrganization : setLocalOrganization;
|
|
34
|
+
const [boundBio, setBoundBio] = useBoundProp(props.bio, bindings?.bio);
|
|
35
|
+
const [localBio, setLocalBio] = useState("");
|
|
36
|
+
const isBioBound = !!bindings?.bio;
|
|
37
|
+
const bioValue = isBioBound ? boundBio ?? "" : localBio;
|
|
38
|
+
const setBioValue = isBioBound ? setBoundBio : setLocalBio;
|
|
39
|
+
const [boundFramework, setBoundFramework] = useBoundProp(props.framework, bindings?.framework);
|
|
40
|
+
const [localFramework, setLocalFramework] = useState("");
|
|
41
|
+
const isFrameworkBound = !!bindings?.framework;
|
|
42
|
+
const frameworkValue = isFrameworkBound ? boundFramework ?? "" : localFramework;
|
|
43
|
+
const setFrameworkValue = isFrameworkBound ? setBoundFramework : setLocalFramework;
|
|
44
|
+
const [boundTeamSize, setBoundTeamSize] = useBoundProp(props.teamSize, bindings?.teamSize);
|
|
45
|
+
const [localTeamSize, setLocalTeamSize] = useState("");
|
|
46
|
+
const isTeamSizeBound = !!bindings?.teamSize;
|
|
47
|
+
const teamSizeValue = isTeamSizeBound ? boundTeamSize ?? "" : localTeamSize;
|
|
48
|
+
const setTeamSizeValue = isTeamSizeBound ? setBoundTeamSize : setLocalTeamSize;
|
|
49
|
+
const [boundUseCase, setBoundUseCase] = useBoundProp(props.useCase, bindings?.useCase);
|
|
50
|
+
const [localUseCase, setLocalUseCase] = useState("");
|
|
51
|
+
const isUseCaseBound = !!bindings?.useCase;
|
|
52
|
+
const useCaseValue = isUseCaseBound ? boundUseCase ?? "" : localUseCase;
|
|
53
|
+
const setUseCaseValue = isUseCaseBound ? setBoundUseCase : setLocalUseCase;
|
|
21
54
|
const heading = props.heading ?? "Welcome to Nadicode";
|
|
22
55
|
const subheading = props.subheading ?? "Let\u2019s get your workspace set up in a few steps.";
|
|
23
56
|
const completionHeading = props.completionHeading ?? "You\u2019re all set!";
|
|
@@ -113,11 +146,10 @@ function OnboardingFlowBlock({
|
|
|
113
146
|
FormWizard,
|
|
114
147
|
{
|
|
115
148
|
props: { variant: "card", activeStep: null, nextLabel: null, backLabel: null, completeLabel: null, size: null, className: null },
|
|
116
|
-
emit: () => {
|
|
149
|
+
emit: (event) => {
|
|
150
|
+
if (event === "complete") handleComplete();
|
|
117
151
|
},
|
|
118
|
-
on
|
|
119
|
-
}, shouldPreventDefault: false, bound: false }),
|
|
120
|
-
onComplete: handleComplete,
|
|
152
|
+
on,
|
|
121
153
|
steps: [
|
|
122
154
|
{
|
|
123
155
|
id: "welcome",
|
|
@@ -136,15 +168,15 @@ function OnboardingFlowBlock({
|
|
|
136
168
|
content: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
137
169
|
/* @__PURE__ */ jsxs(Field, { children: [
|
|
138
170
|
/* @__PURE__ */ jsx(FieldLabel, { children: displayNameLabel }),
|
|
139
|
-
/* @__PURE__ */ jsx(Input, { placeholder: displayNamePlaceholder })
|
|
171
|
+
/* @__PURE__ */ jsx(Input, { placeholder: displayNamePlaceholder, value: displayNameValue, onChange: (e) => setDisplayNameValue(e.target.value) })
|
|
140
172
|
] }),
|
|
141
173
|
/* @__PURE__ */ jsxs(Field, { children: [
|
|
142
174
|
/* @__PURE__ */ jsx(FieldLabel, { children: organizationLabel }),
|
|
143
|
-
/* @__PURE__ */ jsx(Input, { placeholder: organizationPlaceholder })
|
|
175
|
+
/* @__PURE__ */ jsx(Input, { placeholder: organizationPlaceholder, value: organizationValue, onChange: (e) => setOrganizationValue(e.target.value) })
|
|
144
176
|
] }),
|
|
145
177
|
/* @__PURE__ */ jsxs(Field, { children: [
|
|
146
178
|
/* @__PURE__ */ jsx(FieldLabel, { children: bioLabel }),
|
|
147
|
-
/* @__PURE__ */ jsx(Textarea, { placeholder: bioPlaceholder, rows: 3 })
|
|
179
|
+
/* @__PURE__ */ jsx(Textarea, { placeholder: bioPlaceholder, rows: 3, value: bioValue, onChange: (e) => setBioValue(e.target.value) })
|
|
148
180
|
] })
|
|
149
181
|
] })
|
|
150
182
|
},
|
|
@@ -155,21 +187,21 @@ function OnboardingFlowBlock({
|
|
|
155
187
|
content: /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
156
188
|
/* @__PURE__ */ jsxs(Field, { children: [
|
|
157
189
|
/* @__PURE__ */ jsx(FieldLabel, { children: frameworkLabel }),
|
|
158
|
-
/* @__PURE__ */ jsxs(Select, { children: [
|
|
190
|
+
/* @__PURE__ */ jsxs(Select, { value: frameworkValue || void 0, onValueChange: setFrameworkValue, children: [
|
|
159
191
|
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, { placeholder: frameworkPlaceholder }) }),
|
|
160
192
|
/* @__PURE__ */ jsx(SelectContent, { children: frameworkOptions.map((opt) => /* @__PURE__ */ jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
161
193
|
] })
|
|
162
194
|
] }),
|
|
163
195
|
/* @__PURE__ */ jsxs(Field, { children: [
|
|
164
196
|
/* @__PURE__ */ jsx(FieldLabel, { children: teamSizeLabel }),
|
|
165
|
-
/* @__PURE__ */ jsxs(Select, { children: [
|
|
197
|
+
/* @__PURE__ */ jsxs(Select, { value: teamSizeValue || void 0, onValueChange: setTeamSizeValue, children: [
|
|
166
198
|
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, { placeholder: teamSizePlaceholder }) }),
|
|
167
199
|
/* @__PURE__ */ jsx(SelectContent, { children: teamSizeOptions.map((opt) => /* @__PURE__ */ jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
168
200
|
] })
|
|
169
201
|
] }),
|
|
170
202
|
/* @__PURE__ */ jsxs(Field, { children: [
|
|
171
203
|
/* @__PURE__ */ jsx(FieldLabel, { children: useCaseLabel }),
|
|
172
|
-
/* @__PURE__ */ jsxs(Select, { children: [
|
|
204
|
+
/* @__PURE__ */ jsxs(Select, { value: useCaseValue || void 0, onValueChange: setUseCaseValue, children: [
|
|
173
205
|
/* @__PURE__ */ jsx(SelectTrigger, { children: /* @__PURE__ */ jsx(SelectValue, { placeholder: useCasePlaceholder }) }),
|
|
174
206
|
/* @__PURE__ */ jsx(SelectContent, { children: useCaseOptions.map((opt) => /* @__PURE__ */ jsx(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
175
207
|
] })
|
|
@@ -2,6 +2,7 @@ import { AreaChart } from './chunk-ZTNHUABC.js';
|
|
|
2
2
|
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-WH62BE24.js';
|
|
3
3
|
import { Card, CardHeader, CardTitle, CardDescription, CardContent } from './chunk-7UY24UWL.js';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
+
import { useBoundProp } from '@json-render/react';
|
|
5
6
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
7
|
|
|
7
8
|
var defaultTimeRanges = [
|
|
@@ -238,13 +239,18 @@ var defaultConfig = {
|
|
|
238
239
|
color: "rgb(var(--chart-2))"
|
|
239
240
|
}
|
|
240
241
|
};
|
|
241
|
-
function InteractiveAreaChartBlock({ props, emit }) {
|
|
242
|
+
function InteractiveAreaChartBlock({ props, bindings, emit }) {
|
|
242
243
|
const data = props.data ?? defaultData;
|
|
243
244
|
const config = props.config ?? defaultConfig;
|
|
244
245
|
const title = props.title ?? "Traffic Analysis";
|
|
245
246
|
const description = props.description ?? "Showing total visitors for the last 3 months";
|
|
246
247
|
const timeRanges = props.timeRanges ?? defaultTimeRanges;
|
|
247
|
-
const
|
|
248
|
+
const defaultTimeRangeValue = timeRanges[0]?.value ?? "90d";
|
|
249
|
+
const [boundTimeRange, setBoundTimeRange] = useBoundProp(props.timeRange, bindings?.timeRange);
|
|
250
|
+
const [localTimeRange, setLocalTimeRange] = React.useState(defaultTimeRangeValue);
|
|
251
|
+
const isTimeRangeBound = !!bindings?.timeRange;
|
|
252
|
+
const timeRange = isTimeRangeBound ? boundTimeRange ?? defaultTimeRangeValue : localTimeRange;
|
|
253
|
+
const setTimeRange = isTimeRangeBound ? setBoundTimeRange : setLocalTimeRange;
|
|
248
254
|
const filteredData = React.useMemo(() => data.filter((item) => {
|
|
249
255
|
const date = new Date(item.date);
|
|
250
256
|
const now = /* @__PURE__ */ new Date();
|