@sustaina/shared-ui 1.34.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2,9 +2,9 @@ import clsx2, { clsx } from 'clsx';
2
2
  import { twMerge } from 'tailwind-merge';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
5
- import * as React26 from 'react';
6
- import React26__default, { forwardRef, useRef, useMemo, useCallback, useState, isValidElement, useEffect, useLayoutEffect, createElement } from 'react';
7
- import { CircleX, Undo, Redo, Bold, Italic, Underline, Strikethrough, Code, Pilcrow, Heading1, Heading2, Heading3, List as List$1, ListOrdered, Quote, CodeSquare, Link, Link2Off, Image as Image$1, AlignLeft, AlignCenter, AlignRight, CircleHelp, ChevronDown, X, Check, XIcon, SearchIcon, ChevronRight, CheckIcon, Triangle, CalendarIcon, Search, ChevronUp, PanelLeftIcon, Minimize2, Maximize2, Plus, ChevronLeft, CircleUserRound, MoreVertical, Bug, GripVertical, Info, CircleMinus, Minus } from 'lucide-react';
5
+ import * as React25 from 'react';
6
+ import React25__default, { forwardRef, useRef, useMemo, useCallback, useState, isValidElement, useEffect, useLayoutEffect, createElement } from 'react';
7
+ import { CircleX, Undo, Redo, Bold, Italic, Underline, Strikethrough, Code, Pilcrow, Heading1, Heading2, Heading3, List, ListOrdered, Quote, CodeSquare, Link, Link2Off, Image as Image$1, AlignLeft, AlignCenter, AlignRight, CircleHelp, ChevronDown, X, Check, XIcon, SearchIcon, ChevronRight, CheckIcon, Triangle, CalendarIcon, Search, ChevronUp, ChevronLeft, PanelLeftIcon, Minimize2, Maximize2, Plus, MoreVertical, Bug, GripVertical, Info, CircleMinus, Minus } from 'lucide-react';
8
8
  import { createPortal } from 'react-dom';
9
9
  import * as SelectPrimitive from '@radix-ui/react-select';
10
10
  import { useForm, FormProvider, Controller, useFormContext, useFormState, useFieldArray, useWatch } from 'react-hook-form';
@@ -229,48 +229,55 @@ function cn(...args) {
229
229
  return twMerge(clsx(args));
230
230
  }
231
231
  var ArrowIcon = ({
232
- width = "1em",
233
- height = "1em",
232
+ size = "1em",
233
+ width,
234
+ height,
234
235
  fill = "none",
236
+ color = "#127035",
235
237
  ...props
236
238
  }) => /* @__PURE__ */ jsx(
237
239
  "svg",
238
240
  {
239
241
  xmlns: "http://www.w3.org/2000/svg",
240
242
  viewBox: "0 0 14 9",
241
- width,
242
- height,
243
+ width: width ?? size,
244
+ height: height ?? size,
243
245
  fill,
244
246
  ...props,
245
- children: /* @__PURE__ */ jsx("path", { d: "M0.293 0.723L6.79 8.723L13.293 0.723H0.293Z", fill: props.color || "#127035" })
247
+ children: /* @__PURE__ */ jsx("path", { d: "M0.293 0.723L6.79 8.723L13.293 0.723H0.293Z", fill: color })
246
248
  }
247
249
  );
248
250
  var arrow_default = ArrowIcon;
249
- var SuiCalendarIcon = (props) => /* @__PURE__ */ jsx(
251
+ var DecreaseIcon = ({
252
+ size = 16,
253
+ color = "currentColor",
254
+ className,
255
+ ...props
256
+ }) => /* @__PURE__ */ jsx(
250
257
  "svg",
251
258
  {
252
259
  xmlns: "http://www.w3.org/2000/svg",
253
- width: "1em",
254
- height: "1em",
255
- fill: "none",
256
- viewBox: "0 0 25 25",
260
+ viewBox: "0 0 9 4",
261
+ width: size,
262
+ height: size,
263
+ className,
264
+ fill: color,
257
265
  ...props,
258
- children: /* @__PURE__ */ jsx(
259
- "path",
260
- {
261
- fill: "currentColor",
262
- d: "M8.504 11.205H5.837v2.4h2.667zm5.333 0h-2.666v2.4h2.666zm5.334 0h-2.667v2.4h2.667zm2.666-8.4h-1.333v-2.4h-2.667v2.4H7.171v-2.4H4.504v2.4H3.17c-1.48 0-2.654 1.08-2.654 2.4l-.013 16.8c0 1.32 1.187 2.4 2.667 2.4h18.666c1.467 0 2.667-1.08 2.667-2.4v-16.8c0-1.32-1.2-2.4-2.667-2.4m0 19.2H3.171v-13.2h18.666z"
263
- }
264
- )
266
+ children: /* @__PURE__ */ jsx("rect", { x: "0.572754", y: "0.441406", width: "7.57659", height: "2.75347", fill: color })
265
267
  }
266
268
  );
267
- var calendar_default = SuiCalendarIcon;
268
- var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
269
+ var decrease_default = DecreaseIcon;
270
+ var FiltersIcon = ({
271
+ size = 24,
272
+ color = "#379A2A",
273
+ strokeWidth = 1.5,
274
+ ...props
275
+ }) => /* @__PURE__ */ jsxs(
269
276
  "svg",
270
277
  {
271
- width: "20",
272
- height: "20",
273
- viewBox: "0 0 20 20",
278
+ width: size,
279
+ height: size,
280
+ viewBox: "0 0 24 24",
274
281
  fill: "none",
275
282
  xmlns: "http://www.w3.org/2000/svg",
276
283
  ...props,
@@ -278,9 +285,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
278
285
  /* @__PURE__ */ jsx(
279
286
  "path",
280
287
  {
281
- d: "M6.66666 1.66675V5.00008",
282
- stroke: "currentColor",
283
- strokeWidth: "1.5",
288
+ d: "M10 18H14",
289
+ stroke: color,
290
+ strokeWidth,
284
291
  strokeLinecap: "round",
285
292
  strokeLinejoin: "round"
286
293
  }
@@ -288,9 +295,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
288
295
  /* @__PURE__ */ jsx(
289
296
  "path",
290
297
  {
291
- d: "M13.3333 1.66675V5.00008",
292
- stroke: "currentColor",
293
- strokeWidth: "1.5",
298
+ d: "M11 6H3",
299
+ stroke: color,
300
+ strokeWidth,
294
301
  strokeLinecap: "round",
295
302
  strokeLinejoin: "round"
296
303
  }
@@ -298,9 +305,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
298
305
  /* @__PURE__ */ jsx(
299
306
  "path",
300
307
  {
301
- d: "M15.8333 3.33325H4.16667C3.24619 3.33325 2.5 4.07944 2.5 4.99992V16.6666C2.5 17.5871 3.24619 18.3333 4.16667 18.3333H15.8333C16.7538 18.3333 17.5 17.5871 17.5 16.6666V4.99992C17.5 4.07944 16.7538 3.33325 15.8333 3.33325Z",
302
- stroke: "currentColor",
303
- strokeWidth: "1.5",
308
+ d: "M15 6H21",
309
+ stroke: color,
310
+ strokeWidth,
304
311
  strokeLinecap: "round",
305
312
  strokeLinejoin: "round"
306
313
  }
@@ -308,9 +315,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
308
315
  /* @__PURE__ */ jsx(
309
316
  "path",
310
317
  {
311
- d: "M2.5 8.33325H17.5",
312
- stroke: "currentColor",
313
- strokeWidth: "1.5",
318
+ d: "M18 9V3",
319
+ stroke: color,
320
+ strokeWidth,
314
321
  strokeLinecap: "round",
315
322
  strokeLinejoin: "round"
316
323
  }
@@ -318,111 +325,413 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
318
325
  /* @__PURE__ */ jsx(
319
326
  "path",
320
327
  {
321
- d: "M6.66666 11.6667H6.67499",
322
- stroke: "currentColor",
323
- strokeWidth: "1.5",
328
+ d: "M7 12H15",
329
+ stroke: color,
330
+ strokeWidth,
324
331
  strokeLinecap: "round",
325
332
  strokeLinejoin: "round"
326
333
  }
334
+ )
335
+ ]
336
+ }
337
+ );
338
+ var filters_default = FiltersIcon;
339
+ var InformationIcon = ({
340
+ size = 16,
341
+ color = "currentColor",
342
+ className,
343
+ ...props
344
+ }) => /* @__PURE__ */ jsxs(
345
+ "svg",
346
+ {
347
+ xmlns: "http://www.w3.org/2000/svg",
348
+ viewBox: "0 0 34 34",
349
+ width: size,
350
+ height: size,
351
+ className,
352
+ fill: color,
353
+ ...props,
354
+ children: [
355
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_789_42722)", children: [
356
+ /* @__PURE__ */ jsx(
357
+ "path",
358
+ {
359
+ d: "M16.7158 33.4883C7.61916 33.4883 0.21582 26.0849 0.21582 16.9883C0.21582 7.89162 7.61916 0.488281 16.7158 0.488281C25.8125 0.488281 33.2158 7.89162 33.2158 16.9883C33.2158 26.0849 25.8125 33.4883 16.7158 33.4883ZM16.7158 1.80093C8.34112 1.80093 1.52847 8.61358 1.52847 16.9883C1.52847 25.363 8.34112 32.1756 16.7158 32.1756C25.0905 32.1756 31.9032 25.363 31.9032 16.9883C31.9032 8.61358 25.0905 1.80093 16.7158 1.80093Z",
360
+ fill: color
361
+ }
362
+ ),
363
+ /* @__PURE__ */ jsx(
364
+ "path",
365
+ {
366
+ d: "M18.9999 21.0838H13.5393V20.5325C13.5393 19.6005 13.6443 18.8523 13.8543 18.2747C14.0643 17.6972 14.3794 17.1721 14.7994 16.6864C15.2195 16.2139 16.1514 15.3606 17.6085 14.153C18.3829 13.5229 18.7767 12.9454 18.7767 12.4203C18.7767 11.8952 18.6192 11.4883 18.3042 11.1864C17.9892 10.8845 17.5166 10.7532 16.8865 10.7532C16.204 10.7532 15.6395 10.9764 15.1932 11.4227C14.7469 11.869 14.4581 12.6566 14.34 13.7723L8.76123 13.0766C8.95813 11.0289 9.69321 9.37496 10.9927 8.12794C12.2923 6.88093 14.2744 6.25085 16.9653 6.25085C19.0524 6.25085 20.7457 6.68403 22.019 7.5635C23.7648 8.74489 24.6312 10.3069 24.6312 12.2759C24.6312 13.0898 24.408 13.8773 23.9617 14.6256C23.5154 15.3869 22.5966 16.3057 21.2051 17.3952C20.2338 18.1566 19.63 18.7735 19.3674 19.2461C19.118 19.7055 18.9868 20.3225 18.9868 21.0575L18.9999 21.0838ZM13.3555 22.5408H19.2099V27.6995H13.3555V22.5408Z",
367
+ fill: color
368
+ }
369
+ )
370
+ ] }),
371
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_789_42722", children: /* @__PURE__ */ jsx("rect", { width: "33", height: "33", fill: "white", transform: "translate(0.21582 0.488281)" }) }) })
372
+ ]
373
+ }
374
+ );
375
+ var information_default = InformationIcon;
376
+ var NotFoundIcon = ({
377
+ width = 24,
378
+ height = 24,
379
+ fill = "currentColor",
380
+ className = "",
381
+ ...props
382
+ }) => /* @__PURE__ */ jsxs(
383
+ "svg",
384
+ {
385
+ viewBox: "0 0 106 100",
386
+ xmlns: "http://www.w3.org/2000/svg",
387
+ width,
388
+ height,
389
+ fill,
390
+ className,
391
+ ...props,
392
+ children: [
393
+ /* @__PURE__ */ jsx(
394
+ "path",
395
+ {
396
+ d: "M44.7381 99.6137C69.3718 99.6137 89.3413 95.8824 89.3413 91.2795C89.3413 86.6767 69.3718 82.9453 44.7381 82.9453C20.1043 82.9453 0.134766 86.6767 0.134766 91.2795C0.134766 95.8824 20.1043 99.6137 44.7381 99.6137Z",
397
+ fill: "#B0DFAA"
398
+ }
327
399
  ),
328
400
  /* @__PURE__ */ jsx(
329
401
  "path",
330
402
  {
331
- d: "M10 11.6667H10.0083",
332
- stroke: "currentColor",
333
- strokeWidth: "1.5",
334
- strokeLinecap: "round",
335
- strokeLinejoin: "round"
403
+ fillRule: "evenodd",
404
+ clipRule: "evenodd",
405
+ d: "M80.4202 66.795L64.6801 47.4233C63.9249 46.5114 62.8209 45.9595 61.6584 45.9595H27.8163C26.6545 45.9595 25.5505 46.5114 24.7953 47.4233L9.05579 66.795V76.9154H80.4209V66.795H80.4202Z",
406
+ fill: "#CEE5D6"
336
407
  }
337
408
  ),
338
409
  /* @__PURE__ */ jsx(
339
410
  "path",
340
411
  {
341
- d: "M13.3333 11.6667H13.3417",
342
- stroke: "currentColor",
343
- strokeWidth: "1.5",
344
- strokeLinecap: "round",
345
- strokeLinejoin: "round"
412
+ fillRule: "evenodd",
413
+ clipRule: "evenodd",
414
+ d: "M22.3913 20.957H67.0841C67.782 20.957 68.4514 21.2343 68.9449 21.7278C69.4384 22.2213 69.7157 22.8907 69.7157 23.5886V84.9991C69.7157 85.6971 69.4384 86.3664 68.9449 86.8599C68.4514 87.3534 67.782 87.6307 67.0841 87.6307H22.3913C21.6934 87.6307 21.0241 87.3534 20.5305 86.8599C20.037 86.3664 19.7598 85.6971 19.7598 84.9991V23.5886C19.7598 22.8907 20.037 22.2213 20.5305 21.7278C21.0241 21.2343 21.6934 20.957 22.3913 20.957V20.957Z",
415
+ fill: "#F9F9F9"
346
416
  }
347
417
  ),
348
418
  /* @__PURE__ */ jsx(
349
419
  "path",
350
420
  {
351
- d: "M6.66666 15H6.67499",
352
- stroke: "currentColor",
353
- strokeWidth: "1.5",
354
- strokeLinecap: "round",
355
- strokeLinejoin: "round"
421
+ fillRule: "evenodd",
422
+ clipRule: "evenodd",
423
+ d: "M28.2124 27.5049H61.2631C61.612 27.5049 61.9467 27.6435 62.1935 27.8903C62.4402 28.137 62.5789 28.4717 62.5789 28.8207V45.2398C62.5789 45.5887 62.4402 45.9234 62.1935 46.1702C61.9467 46.4169 61.612 46.5555 61.2631 46.5555H28.2124C27.8634 46.5555 27.5288 46.4169 27.282 46.1702C27.0353 45.9234 26.8966 45.5887 26.8966 45.2398V28.8207C26.8966 28.4717 27.0353 28.137 27.282 27.8903C27.5288 27.6435 27.8634 27.5049 28.2124 27.5049ZM28.3848 53.6983H61.0907C61.4854 53.6983 61.8639 53.8551 62.143 54.1342C62.4221 54.4133 62.5789 54.7918 62.5789 55.1865C62.5789 55.5811 62.4221 55.9597 62.143 56.2387C61.8639 56.5178 61.4854 56.6746 61.0907 56.6746H28.3848C27.9901 56.6746 27.6116 56.5178 27.3325 56.2387C27.0534 55.9597 26.8966 55.5811 26.8966 55.1865C26.8966 54.7918 27.0534 54.4133 27.3325 54.1342C27.6116 53.8551 27.9901 53.6983 28.3848 53.6983ZM28.3848 61.4371H61.0907C61.4855 61.4371 61.8641 61.5939 62.1432 61.8731C62.4224 62.1522 62.5792 62.5308 62.5792 62.9256C62.5792 63.3204 62.4224 63.699 62.1432 63.9781C61.8641 64.2573 61.4855 64.4141 61.0907 64.4141H28.3848C27.99 64.4141 27.6114 64.2573 27.3323 63.9781C27.0531 63.699 26.8963 63.3204 26.8963 62.9256C26.8963 62.5308 27.0531 62.1522 27.3323 61.8731C27.6114 61.5939 27.99 61.4371 28.3848 61.4371ZM80.2749 90.0569C79.7651 92.0772 77.9743 93.5832 75.844 93.5832H13.6315C11.5012 93.5832 9.71044 92.0766 9.20123 90.0569C9.10411 89.6718 9.05505 89.2763 9.05518 88.8792V66.7957H26.3696C28.2822 66.7957 29.8236 68.4062 29.8236 70.3615V70.3878C29.8236 72.3424 31.3828 73.9207 33.2953 73.9207H56.1802C58.0927 73.9207 59.6519 72.3279 59.6519 70.3726V70.3647C59.6519 68.4095 61.1933 66.795 63.1058 66.795H80.4203V88.8799C80.4203 89.2858 80.3697 89.6799 80.2749 90.0569Z",
424
+ fill: "#DDEEE3"
356
425
  }
357
426
  ),
358
427
  /* @__PURE__ */ jsx(
359
428
  "path",
360
429
  {
361
- d: "M10 15H10.0083",
362
- stroke: "currentColor",
363
- strokeWidth: "1.5",
364
- strokeLinecap: "round",
365
- strokeLinejoin: "round"
430
+ fillRule: "evenodd",
431
+ clipRule: "evenodd",
432
+ d: "M82.4512 22.0242L77.9577 23.7676C77.8423 23.8125 77.7165 23.8239 77.5949 23.8005C77.4733 23.7771 77.3608 23.7198 77.2703 23.6353C77.1797 23.5507 77.1149 23.4424 77.0833 23.3226C77.0516 23.2029 77.0544 23.0767 77.0913 22.9584L78.3656 18.8749C76.6623 16.938 75.6624 14.5762 75.6624 12.0275C75.6624 5.45185 82.3189 0.121582 90.5308 0.121582C98.7406 0.121582 105.398 5.45185 105.398 12.0275C105.398 18.6032 98.7413 23.9334 90.5301 23.9334C87.5512 23.9334 84.7775 23.2321 82.4512 22.0242Z",
433
+ fill: "#DDEEE3"
366
434
  }
367
435
  ),
368
436
  /* @__PURE__ */ jsx(
369
437
  "path",
370
438
  {
371
- d: "M13.3333 15H13.3417",
372
- stroke: "currentColor",
373
- strokeWidth: "1.5",
374
- strokeLinecap: "round",
375
- strokeLinejoin: "round"
439
+ d: "M96.3874 14.1776C97.4226 14.1776 98.2617 13.3484 98.2617 12.3256C98.2617 11.3028 97.4226 10.4736 96.3874 10.4736C95.3522 10.4736 94.5131 11.3028 94.5131 12.3256C94.5131 13.3484 95.3522 14.1776 96.3874 14.1776Z",
440
+ fill: "white"
441
+ }
442
+ ),
443
+ /* @__PURE__ */ jsx(
444
+ "path",
445
+ {
446
+ fillRule: "evenodd",
447
+ clipRule: "evenodd",
448
+ d: "M86.5479 13.9459H82.7992L84.7058 10.7051L86.5479 13.9459ZM88.8906 10.7051H92.1702V13.9459H88.8906V10.7051Z",
449
+ fill: "white"
376
450
  }
377
451
  )
378
452
  ]
379
453
  }
380
454
  );
381
- var calendar2_default = SuiCalendarIcon2;
382
- var SuiCheckIcon = (props) => /* @__PURE__ */ jsxs(
455
+ var not_found_default = NotFoundIcon;
456
+ var PlusIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
383
457
  "svg",
384
458
  {
385
459
  xmlns: "http://www.w3.org/2000/svg",
386
- width: "1em",
387
- height: "1em",
460
+ viewBox: "0 0 9 9",
461
+ width: size,
462
+ height: size,
463
+ className,
464
+ fill: color,
465
+ ...props,
466
+ children: [
467
+ /* @__PURE__ */ jsx(
468
+ "path",
469
+ {
470
+ d: "M3.12305 8.23047L3.12305 0.653882L5.87652 0.653882L5.87652 8.23047L3.12305 8.23047Z",
471
+ fill: color
472
+ }
473
+ ),
474
+ /* @__PURE__ */ jsx(
475
+ "path",
476
+ {
477
+ d: "M3.12305 8.23047L3.12305 0.653882L5.87652 0.653882L5.87652 8.23047L3.12305 8.23047Z",
478
+ fill: color
479
+ }
480
+ ),
481
+ /* @__PURE__ */ jsx(
482
+ "path",
483
+ {
484
+ d: "M0.710938 3.06641L8.28752 3.06641V5.81988L0.710937 5.81988L0.710938 3.06641Z",
485
+ fill: color
486
+ }
487
+ ),
488
+ /* @__PURE__ */ jsx(
489
+ "path",
490
+ {
491
+ d: "M0.710938 3.06641L8.28752 3.06641V5.81988L0.710937 5.81988L0.710938 3.06641Z",
492
+ fill: color
493
+ }
494
+ )
495
+ ]
496
+ }
497
+ );
498
+ var plus_default = PlusIcon;
499
+ var CustomFieldIcon = ({
500
+ size = 16,
501
+ color = "currentColor",
502
+ className,
503
+ ...props
504
+ }) => /* @__PURE__ */ jsxs(
505
+ "svg",
506
+ {
507
+ width: size,
508
+ height: size,
509
+ viewBox: "0 0 30 30",
388
510
  fill: "none",
389
- viewBox: "0 0 24 24",
511
+ xmlns: "http://www.w3.org/2000/svg",
512
+ className,
390
513
  ...props,
391
514
  children: [
392
- /* @__PURE__ */ jsxs("g", { clipPath: "url(#check_svg__a)", children: [
515
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_14170_63977)", children: [
393
516
  /* @__PURE__ */ jsx(
394
517
  "path",
395
518
  {
396
- fill: "currentColor",
397
- d: "M10.976.043c9.629-.793 16.248 9.583 11.392 18.002-4.252 7.37-14.736 8.025-19.907 1.26C-3.276 11.799 1.616.815 10.976.044m5.59 7.791c-.284.048-.555.25-.775.428l-5.159 4.944c-.188.033-2.31-2.268-2.865-2.51-1.413-.619-2.427 1.01-1.22 2.22.73.733 2.573 2.531 3.354 3.044.407.267.853.335 1.295.104 1.429-1.295 2.87-2.6 4.249-3.948.647-.633 1.63-1.47 2.186-2.112.825-.95.12-2.369-1.065-2.169"
519
+ d: "M9.16987 12.9149C11.2388 12.9149 12.9159 11.2378 12.9159 9.1689C12.9159 7.10001 11.2388 5.42285 9.16987 5.42285C7.10099 5.42285 5.42383 7.10001 5.42383 9.1689C5.42383 11.2378 7.10099 12.9149 9.16987 12.9149Z",
520
+ fill: color
398
521
  }
399
522
  ),
400
523
  /* @__PURE__ */ jsx(
401
524
  "path",
402
525
  {
403
- fill: "#fff",
404
- d: "M16.567 7.835c1.186-.2 1.89 1.218 1.065 2.169-.557.64-1.54 1.479-2.187 2.112-1.379 1.348-2.818 2.653-4.248 3.948-.442.23-.889.162-1.295-.105-.782-.512-2.625-2.31-3.355-3.043-1.206-1.21-.192-2.84 1.221-2.221.556.243 2.677 2.544 2.865 2.51l5.16-4.943c.219-.178.489-.38.774-.429z"
526
+ d: "M16.4128 13.2318C16.8305 13.6494 17.5139 13.6494 17.9315 13.2318L19.7877 11.3757L21.6438 13.2318C22.0614 13.6494 22.7448 13.6494 23.1625 13.2318C23.5801 12.8142 23.5801 12.1308 23.1625 11.7131L21.3063 9.85699L23.1625 8.00084C23.5801 7.5832 23.5801 6.8998 23.1625 6.48217C22.7448 6.06454 22.0614 6.06454 21.6438 6.48217L19.7877 8.33832L17.9315 6.48217C17.5139 6.06454 16.8305 6.06454 16.4128 6.48217C15.9952 6.8998 15.9952 7.5832 16.4128 8.00084L18.269 9.85699L16.4128 11.7131C15.9952 12.1308 15.9952 12.8142 16.4128 13.2318Z",
527
+ fill: color
528
+ }
529
+ ),
530
+ /* @__PURE__ */ jsx(
531
+ "path",
532
+ {
533
+ d: "M12.375 17.0664H5.96284C5.49688 17.0664 5.11914 17.4441 5.11914 17.9101V24.3223C5.11914 24.7882 5.49688 25.166 5.11914 25.166H12.375C12.841 25.166 13.2187 24.7882 13.2187 24.3223V17.9101C13.2187 17.4441 12.841 17.0664 12.375 17.0664Z",
534
+ fill: color
535
+ }
536
+ ),
537
+ /* @__PURE__ */ jsx("path", { d: "M16.1816 24.6089H25.8315L21.0055 17.623L16.1816 24.6089Z", fill: color }),
538
+ /* @__PURE__ */ jsx(
539
+ "path",
540
+ {
541
+ d: "M28.1017 0H1.89833C0.852141 0 0 0.852141 0 1.89833V28.1017C0 29.1479 0.852141 30 1.89833 30H28.1017C29.1479 30 30 29.1479 30 28.1017V1.89833C30 0.852141 29.1479 0 28.1017 0ZM27.8907 27.8907H2.10926V2.10926H27.8907V27.8907Z",
542
+ fill: color
405
543
  }
406
544
  )
407
545
  ] }),
408
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "check_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
546
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_14170_63977", children: /* @__PURE__ */ jsx("rect", { width: "30", height: "30", fill: "white" }) }) })
409
547
  ]
410
548
  }
411
549
  );
412
- var check_default = SuiCheckIcon;
413
- var SuiDotsVerticalIcon = (props) => /* @__PURE__ */ jsxs(
550
+ var custom_field_default = CustomFieldIcon;
551
+ var SuiCalendarIcon = ({
552
+ size = "1em",
553
+ width,
554
+ height,
555
+ color = "currentColor",
556
+ fill = "none",
557
+ ...props
558
+ }) => /* @__PURE__ */ jsx(
414
559
  "svg",
415
560
  {
416
561
  xmlns: "http://www.w3.org/2000/svg",
417
- width: "1em",
418
- height: "1em",
419
- fill: "none",
420
562
  viewBox: "0 0 25 25",
563
+ width: width ?? size,
564
+ height: height ?? size,
565
+ fill,
421
566
  ...props,
422
- children: [
423
- /* @__PURE__ */ jsx("g", { clipPath: "url(#dots-vertical_svg__a)", children: /* @__PURE__ */ jsx(
424
- "path",
425
- {
567
+ children: /* @__PURE__ */ jsx(
568
+ "path",
569
+ {
570
+ fill: color,
571
+ d: "M8.504 11.205H5.837v2.4h2.667zm5.333 0h-2.666v2.4h2.666zm5.334 0h-2.667v2.4h2.667zm2.666-8.4h-1.333v-2.4h-2.667v2.4H7.171v-2.4H4.504v2.4H3.17c-1.48 0-2.654 1.08-2.654 2.4l-.013 16.8c0 1.32 1.187 2.4 2.667 2.4h18.666c1.467 0 2.667-1.08 2.667-2.4v-16.8c0-1.32-1.2-2.4-2.667-2.4m0 19.2H3.171v-13.2h18.666z"
572
+ }
573
+ )
574
+ }
575
+ );
576
+ var calendar_default = SuiCalendarIcon;
577
+ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
578
+ "svg",
579
+ {
580
+ width: "20",
581
+ height: "20",
582
+ viewBox: "0 0 20 20",
583
+ fill: "none",
584
+ xmlns: "http://www.w3.org/2000/svg",
585
+ ...props,
586
+ children: [
587
+ /* @__PURE__ */ jsx(
588
+ "path",
589
+ {
590
+ d: "M6.66666 1.66675V5.00008",
591
+ stroke: "currentColor",
592
+ strokeWidth: "1.5",
593
+ strokeLinecap: "round",
594
+ strokeLinejoin: "round"
595
+ }
596
+ ),
597
+ /* @__PURE__ */ jsx(
598
+ "path",
599
+ {
600
+ d: "M13.3333 1.66675V5.00008",
601
+ stroke: "currentColor",
602
+ strokeWidth: "1.5",
603
+ strokeLinecap: "round",
604
+ strokeLinejoin: "round"
605
+ }
606
+ ),
607
+ /* @__PURE__ */ jsx(
608
+ "path",
609
+ {
610
+ d: "M15.8333 3.33325H4.16667C3.24619 3.33325 2.5 4.07944 2.5 4.99992V16.6666C2.5 17.5871 3.24619 18.3333 4.16667 18.3333H15.8333C16.7538 18.3333 17.5 17.5871 17.5 16.6666V4.99992C17.5 4.07944 16.7538 3.33325 15.8333 3.33325Z",
611
+ stroke: "currentColor",
612
+ strokeWidth: "1.5",
613
+ strokeLinecap: "round",
614
+ strokeLinejoin: "round"
615
+ }
616
+ ),
617
+ /* @__PURE__ */ jsx(
618
+ "path",
619
+ {
620
+ d: "M2.5 8.33325H17.5",
621
+ stroke: "currentColor",
622
+ strokeWidth: "1.5",
623
+ strokeLinecap: "round",
624
+ strokeLinejoin: "round"
625
+ }
626
+ ),
627
+ /* @__PURE__ */ jsx(
628
+ "path",
629
+ {
630
+ d: "M6.66666 11.6667H6.67499",
631
+ stroke: "currentColor",
632
+ strokeWidth: "1.5",
633
+ strokeLinecap: "round",
634
+ strokeLinejoin: "round"
635
+ }
636
+ ),
637
+ /* @__PURE__ */ jsx(
638
+ "path",
639
+ {
640
+ d: "M10 11.6667H10.0083",
641
+ stroke: "currentColor",
642
+ strokeWidth: "1.5",
643
+ strokeLinecap: "round",
644
+ strokeLinejoin: "round"
645
+ }
646
+ ),
647
+ /* @__PURE__ */ jsx(
648
+ "path",
649
+ {
650
+ d: "M13.3333 11.6667H13.3417",
651
+ stroke: "currentColor",
652
+ strokeWidth: "1.5",
653
+ strokeLinecap: "round",
654
+ strokeLinejoin: "round"
655
+ }
656
+ ),
657
+ /* @__PURE__ */ jsx(
658
+ "path",
659
+ {
660
+ d: "M6.66666 15H6.67499",
661
+ stroke: "currentColor",
662
+ strokeWidth: "1.5",
663
+ strokeLinecap: "round",
664
+ strokeLinejoin: "round"
665
+ }
666
+ ),
667
+ /* @__PURE__ */ jsx(
668
+ "path",
669
+ {
670
+ d: "M10 15H10.0083",
671
+ stroke: "currentColor",
672
+ strokeWidth: "1.5",
673
+ strokeLinecap: "round",
674
+ strokeLinejoin: "round"
675
+ }
676
+ ),
677
+ /* @__PURE__ */ jsx(
678
+ "path",
679
+ {
680
+ d: "M13.3333 15H13.3417",
681
+ stroke: "currentColor",
682
+ strokeWidth: "1.5",
683
+ strokeLinecap: "round",
684
+ strokeLinejoin: "round"
685
+ }
686
+ )
687
+ ]
688
+ }
689
+ );
690
+ var calendar2_default = SuiCalendarIcon2;
691
+ var SuiCheckIcon = (props) => /* @__PURE__ */ jsxs(
692
+ "svg",
693
+ {
694
+ xmlns: "http://www.w3.org/2000/svg",
695
+ width: "1em",
696
+ height: "1em",
697
+ fill: "none",
698
+ viewBox: "0 0 24 24",
699
+ ...props,
700
+ children: [
701
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#check_svg__a)", children: [
702
+ /* @__PURE__ */ jsx(
703
+ "path",
704
+ {
705
+ fill: "currentColor",
706
+ d: "M10.976.043c9.629-.793 16.248 9.583 11.392 18.002-4.252 7.37-14.736 8.025-19.907 1.26C-3.276 11.799 1.616.815 10.976.044m5.59 7.791c-.284.048-.555.25-.775.428l-5.159 4.944c-.188.033-2.31-2.268-2.865-2.51-1.413-.619-2.427 1.01-1.22 2.22.73.733 2.573 2.531 3.354 3.044.407.267.853.335 1.295.104 1.429-1.295 2.87-2.6 4.249-3.948.647-.633 1.63-1.47 2.186-2.112.825-.95.12-2.369-1.065-2.169"
707
+ }
708
+ ),
709
+ /* @__PURE__ */ jsx(
710
+ "path",
711
+ {
712
+ fill: "#fff",
713
+ d: "M16.567 7.835c1.186-.2 1.89 1.218 1.065 2.169-.557.64-1.54 1.479-2.187 2.112-1.379 1.348-2.818 2.653-4.248 3.948-.442.23-.889.162-1.295-.105-.782-.512-2.625-2.31-3.355-3.043-1.206-1.21-.192-2.84 1.221-2.221.556.243 2.677 2.544 2.865 2.51l5.16-4.943c.219-.178.489-.38.774-.429z"
714
+ }
715
+ )
716
+ ] }),
717
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "check_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
718
+ ]
719
+ }
720
+ );
721
+ var check_default = SuiCheckIcon;
722
+ var SuiDotsVerticalIcon = (props) => /* @__PURE__ */ jsxs(
723
+ "svg",
724
+ {
725
+ xmlns: "http://www.w3.org/2000/svg",
726
+ width: "1em",
727
+ height: "1em",
728
+ fill: "none",
729
+ viewBox: "0 0 25 25",
730
+ ...props,
731
+ children: [
732
+ /* @__PURE__ */ jsx("g", { clipPath: "url(#dots-vertical_svg__a)", children: /* @__PURE__ */ jsx(
733
+ "path",
734
+ {
426
735
  fill: "currentColor",
427
736
  d: "M12.504 9.03a3.373 3.373 0 0 1 3.375 3.375 3.373 3.373 0 0 1-3.375 3.375 3.373 3.373 0 0 1-3.375-3.375 3.373 3.373 0 0 1 3.375-3.375M9.129 4.155a3.373 3.373 0 0 0 3.375 3.375 3.373 3.373 0 0 0 3.375-3.375A3.373 3.373 0 0 0 12.504.78a3.373 3.373 0 0 0-3.375 3.375m0 16.5a3.373 3.373 0 0 0 3.375 3.375 3.373 3.373 0 0 0 3.375-3.375 3.373 3.373 0 0 0-3.375-3.375 3.373 3.373 0 0 0-3.375 3.375"
428
737
  }
@@ -516,155 +825,6 @@ var SuiFilterIcon = (props) => /* @__PURE__ */ jsxs(
516
825
  }
517
826
  );
518
827
  var filter_default = SuiFilterIcon;
519
- var FiltersIcon = ({
520
- size = 24,
521
- color = "#379A2A",
522
- strokeWidth = 1.5,
523
- ...props
524
- }) => /* @__PURE__ */ jsxs(
525
- "svg",
526
- {
527
- width: size,
528
- height: size,
529
- viewBox: "0 0 24 24",
530
- fill: "none",
531
- xmlns: "http://www.w3.org/2000/svg",
532
- ...props,
533
- children: [
534
- /* @__PURE__ */ jsx(
535
- "path",
536
- {
537
- d: "M10 18H14",
538
- stroke: color,
539
- strokeWidth,
540
- strokeLinecap: "round",
541
- strokeLinejoin: "round"
542
- }
543
- ),
544
- /* @__PURE__ */ jsx(
545
- "path",
546
- {
547
- d: "M11 6H3",
548
- stroke: color,
549
- strokeWidth,
550
- strokeLinecap: "round",
551
- strokeLinejoin: "round"
552
- }
553
- ),
554
- /* @__PURE__ */ jsx(
555
- "path",
556
- {
557
- d: "M15 6H21",
558
- stroke: color,
559
- strokeWidth,
560
- strokeLinecap: "round",
561
- strokeLinejoin: "round"
562
- }
563
- ),
564
- /* @__PURE__ */ jsx(
565
- "path",
566
- {
567
- d: "M18 9V3",
568
- stroke: color,
569
- strokeWidth,
570
- strokeLinecap: "round",
571
- strokeLinejoin: "round"
572
- }
573
- ),
574
- /* @__PURE__ */ jsx(
575
- "path",
576
- {
577
- d: "M7 12H15",
578
- stroke: color,
579
- strokeWidth,
580
- strokeLinecap: "round",
581
- strokeLinejoin: "round"
582
- }
583
- )
584
- ]
585
- }
586
- );
587
- var filters_default = FiltersIcon;
588
- var NotFoundIcon = ({
589
- width = 24,
590
- height = 24,
591
- fill = "currentColor",
592
- className = "",
593
- ...props
594
- }) => /* @__PURE__ */ jsxs(
595
- "svg",
596
- {
597
- viewBox: "0 0 106 100",
598
- xmlns: "http://www.w3.org/2000/svg",
599
- width,
600
- height,
601
- fill,
602
- className,
603
- ...props,
604
- children: [
605
- /* @__PURE__ */ jsx(
606
- "path",
607
- {
608
- d: "M44.7381 99.6137C69.3718 99.6137 89.3413 95.8824 89.3413 91.2795C89.3413 86.6767 69.3718 82.9453 44.7381 82.9453C20.1043 82.9453 0.134766 86.6767 0.134766 91.2795C0.134766 95.8824 20.1043 99.6137 44.7381 99.6137Z",
609
- fill: "#B0DFAA"
610
- }
611
- ),
612
- /* @__PURE__ */ jsx(
613
- "path",
614
- {
615
- fillRule: "evenodd",
616
- clipRule: "evenodd",
617
- d: "M80.4202 66.795L64.6801 47.4233C63.9249 46.5114 62.8209 45.9595 61.6584 45.9595H27.8163C26.6545 45.9595 25.5505 46.5114 24.7953 47.4233L9.05579 66.795V76.9154H80.4209V66.795H80.4202Z",
618
- fill: "#CEE5D6"
619
- }
620
- ),
621
- /* @__PURE__ */ jsx(
622
- "path",
623
- {
624
- fillRule: "evenodd",
625
- clipRule: "evenodd",
626
- d: "M22.3913 20.957H67.0841C67.782 20.957 68.4514 21.2343 68.9449 21.7278C69.4384 22.2213 69.7157 22.8907 69.7157 23.5886V84.9991C69.7157 85.6971 69.4384 86.3664 68.9449 86.8599C68.4514 87.3534 67.782 87.6307 67.0841 87.6307H22.3913C21.6934 87.6307 21.0241 87.3534 20.5305 86.8599C20.037 86.3664 19.7598 85.6971 19.7598 84.9991V23.5886C19.7598 22.8907 20.037 22.2213 20.5305 21.7278C21.0241 21.2343 21.6934 20.957 22.3913 20.957V20.957Z",
627
- fill: "#F9F9F9"
628
- }
629
- ),
630
- /* @__PURE__ */ jsx(
631
- "path",
632
- {
633
- fillRule: "evenodd",
634
- clipRule: "evenodd",
635
- d: "M28.2124 27.5049H61.2631C61.612 27.5049 61.9467 27.6435 62.1935 27.8903C62.4402 28.137 62.5789 28.4717 62.5789 28.8207V45.2398C62.5789 45.5887 62.4402 45.9234 62.1935 46.1702C61.9467 46.4169 61.612 46.5555 61.2631 46.5555H28.2124C27.8634 46.5555 27.5288 46.4169 27.282 46.1702C27.0353 45.9234 26.8966 45.5887 26.8966 45.2398V28.8207C26.8966 28.4717 27.0353 28.137 27.282 27.8903C27.5288 27.6435 27.8634 27.5049 28.2124 27.5049ZM28.3848 53.6983H61.0907C61.4854 53.6983 61.8639 53.8551 62.143 54.1342C62.4221 54.4133 62.5789 54.7918 62.5789 55.1865C62.5789 55.5811 62.4221 55.9597 62.143 56.2387C61.8639 56.5178 61.4854 56.6746 61.0907 56.6746H28.3848C27.9901 56.6746 27.6116 56.5178 27.3325 56.2387C27.0534 55.9597 26.8966 55.5811 26.8966 55.1865C26.8966 54.7918 27.0534 54.4133 27.3325 54.1342C27.6116 53.8551 27.9901 53.6983 28.3848 53.6983ZM28.3848 61.4371H61.0907C61.4855 61.4371 61.8641 61.5939 62.1432 61.8731C62.4224 62.1522 62.5792 62.5308 62.5792 62.9256C62.5792 63.3204 62.4224 63.699 62.1432 63.9781C61.8641 64.2573 61.4855 64.4141 61.0907 64.4141H28.3848C27.99 64.4141 27.6114 64.2573 27.3323 63.9781C27.0531 63.699 26.8963 63.3204 26.8963 62.9256C26.8963 62.5308 27.0531 62.1522 27.3323 61.8731C27.6114 61.5939 27.99 61.4371 28.3848 61.4371ZM80.2749 90.0569C79.7651 92.0772 77.9743 93.5832 75.844 93.5832H13.6315C11.5012 93.5832 9.71044 92.0766 9.20123 90.0569C9.10411 89.6718 9.05505 89.2763 9.05518 88.8792V66.7957H26.3696C28.2822 66.7957 29.8236 68.4062 29.8236 70.3615V70.3878C29.8236 72.3424 31.3828 73.9207 33.2953 73.9207H56.1802C58.0927 73.9207 59.6519 72.3279 59.6519 70.3726V70.3647C59.6519 68.4095 61.1933 66.795 63.1058 66.795H80.4203V88.8799C80.4203 89.2858 80.3697 89.6799 80.2749 90.0569Z",
636
- fill: "#DDEEE3"
637
- }
638
- ),
639
- /* @__PURE__ */ jsx(
640
- "path",
641
- {
642
- fillRule: "evenodd",
643
- clipRule: "evenodd",
644
- d: "M82.4512 22.0242L77.9577 23.7676C77.8423 23.8125 77.7165 23.8239 77.5949 23.8005C77.4733 23.7771 77.3608 23.7198 77.2703 23.6353C77.1797 23.5507 77.1149 23.4424 77.0833 23.3226C77.0516 23.2029 77.0544 23.0767 77.0913 22.9584L78.3656 18.8749C76.6623 16.938 75.6624 14.5762 75.6624 12.0275C75.6624 5.45185 82.3189 0.121582 90.5308 0.121582C98.7406 0.121582 105.398 5.45185 105.398 12.0275C105.398 18.6032 98.7413 23.9334 90.5301 23.9334C87.5512 23.9334 84.7775 23.2321 82.4512 22.0242Z",
645
- fill: "#DDEEE3"
646
- }
647
- ),
648
- /* @__PURE__ */ jsx(
649
- "path",
650
- {
651
- d: "M96.3874 14.1776C97.4226 14.1776 98.2617 13.3484 98.2617 12.3256C98.2617 11.3028 97.4226 10.4736 96.3874 10.4736C95.3522 10.4736 94.5131 11.3028 94.5131 12.3256C94.5131 13.3484 95.3522 14.1776 96.3874 14.1776Z",
652
- fill: "white"
653
- }
654
- ),
655
- /* @__PURE__ */ jsx(
656
- "path",
657
- {
658
- fillRule: "evenodd",
659
- clipRule: "evenodd",
660
- d: "M86.5479 13.9459H82.7992L84.7058 10.7051L86.5479 13.9459ZM88.8906 10.7051H92.1702V13.9459H88.8906V10.7051Z",
661
- fill: "white"
662
- }
663
- )
664
- ]
665
- }
666
- );
667
- var not_found_default = NotFoundIcon;
668
828
  var SuiSettingIcon = (props) => /* @__PURE__ */ jsxs(
669
829
  "svg",
670
830
  {
@@ -736,49 +896,195 @@ var SuiWarningIcon = (props) => /* @__PURE__ */ jsxs(
736
896
  ]
737
897
  }
738
898
  );
739
- var warning_default = SuiWarningIcon;
740
- var TrashIcon = ({
741
- size = 16,
742
- color = "currentColor",
743
- className,
744
- ...props
745
- }) => /* @__PURE__ */ jsxs(
899
+ var warning_default = SuiWarningIcon;
900
+ var TrashIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
901
+ "svg",
902
+ {
903
+ viewBox: "0 0 17 15",
904
+ xmlns: "http://www.w3.org/2000/svg",
905
+ width: size,
906
+ height: size,
907
+ fill: "none",
908
+ className,
909
+ ...props,
910
+ children: [
911
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_336_302483)", children: [
912
+ /* @__PURE__ */ jsx(
913
+ "path",
914
+ {
915
+ d: "M3.49371 2.12043C3.38318 1.44249 3.66212 0.708651 4.43068 0.529533C4.94459 0.409578 7.77168 0.42749 8.38456 0.492081C9.25207 0.583811 9.64966 1.36813 9.5125 2.12097C10.3748 2.22627 11.9484 1.85067 12.6087 2.44664C13.1053 2.89498 13.1452 3.75638 12.64 4.21232C12.2707 4.54558 12.1422 4.28179 12.0664 4.92282C11.7412 7.68938 11.6509 10.4907 11.3494 13.2605C11.2452 13.9135 10.7718 14.3401 10.0646 14.3895C7.73175 14.5534 5.1836 14.2619 2.8276 14.3873C2.09203 14.2587 1.75116 13.8364 1.64178 13.1655L0.878435 4.54558C0.710025 4.38221 0.481427 4.33281 0.310702 4.15532C-0.221151 3.60006 -0.0434807 2.66593 0.639999 2.29358C0.702502 2.25938 0.998811 2.12043 1.03411 2.12043H3.49371ZM4.30394 2.12043H8.70228C8.71964 1.8333 8.70691 1.36813 8.32321 1.30951C7.19122 1.38116 5.90586 1.20367 4.79238 1.30246C4.28831 1.34696 4.29815 1.71931 4.30394 2.12043ZM12.0415 3.0589C12.0172 3.03068 11.8812 2.9574 11.8419 2.94926L1.26329 2.93243C0.749379 2.95794 0.749379 3.72598 1.26329 3.75149H11.7429C12.1029 3.75312 12.2429 3.29338 12.0415 3.0589ZM11.2487 4.56295H1.75753L2.51508 13.1612C2.5608 13.4597 2.68754 13.5498 2.9989 13.5759C5.22817 13.762 7.7468 13.4293 10.0073 13.5759L10.3823 13.4391L11.2487 4.56295Z",
916
+ fill: color
917
+ }
918
+ ),
919
+ /* @__PURE__ */ jsx(
920
+ "path",
921
+ {
922
+ d: "M4.22952 5.50209C4.41761 5.72137 4.34006 6.27067 4.36263 6.54477C4.51599 8.36961 4.73649 10.3719 4.77121 12.1892C4.78568 12.9404 3.98125 12.8953 3.90254 12.4047C3.84698 10.417 3.54836 8.42443 3.49164 6.43947C3.48586 6.23159 3.45576 5.67469 3.54894 5.52542C3.66411 5.34088 4.08426 5.33274 4.22952 5.50263V5.50209Z",
923
+ fill: color
924
+ }
925
+ ),
926
+ /* @__PURE__ */ jsx(
927
+ "path",
928
+ {
929
+ d: "M9.43711 5.50146C9.55575 5.63933 9.52045 6.22879 9.51466 6.43776C9.45852 8.42272 9.15932 10.4153 9.10376 12.4029C9.02447 12.8936 8.21946 12.9381 8.23509 12.1875C8.27213 10.3681 8.48973 8.37007 8.64367 6.54306C8.67492 6.17234 8.50941 5.28598 9.18941 5.37771C9.24497 5.38531 9.40412 5.46238 9.43711 5.50092V5.50146Z",
930
+ fill: color
931
+ }
932
+ ),
933
+ /* @__PURE__ */ jsx(
934
+ "path",
935
+ {
936
+ d: "M6.83313 5.50252C6.90547 5.58611 6.90142 5.68218 6.91068 5.78314C7.10224 7.89891 6.76253 10.266 6.90837 12.4083C6.88985 12.8822 6.11551 12.8806 6.09814 12.4083L6.15312 5.52478C6.31575 5.34783 6.6734 5.31689 6.83313 5.50252Z",
937
+ fill: color
938
+ }
939
+ )
940
+ ] }),
941
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_3678_200811", children: /* @__PURE__ */ jsx("rect", { width: "17", height: "15", fill: "white", transform: "translate(0.728516 0.726562)" }) }) })
942
+ ]
943
+ }
944
+ );
945
+ var trash_default = TrashIcon;
946
+ var RoleIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
947
+ "svg",
948
+ {
949
+ viewBox: "0 0 30 31",
950
+ xmlns: "http://www.w3.org/2000/svg",
951
+ width: size,
952
+ height: size,
953
+ className,
954
+ fill: color,
955
+ ...props,
956
+ children: [
957
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_8249_21508)", children: [
958
+ /* @__PURE__ */ jsx(
959
+ "path",
960
+ {
961
+ d: "M28.1017 30.1367H1.89833C0.852141 30.1367 0 29.2846 0 28.2384V2.03505C0 0.98886 0.852141 0.136719 1.89833 0.136719H28.1017C29.1479 0.136719 30 0.98886 30 2.03505V28.2384C30 29.2846 29.1479 30.1367 28.1017 30.1367ZM2.10926 28.0275H27.8907V2.24598H2.10926V28.0275Z",
962
+ fill: color
963
+ }
964
+ ),
965
+ /* @__PURE__ */ jsx(
966
+ "path",
967
+ {
968
+ d: "M8.63326 12.0173C8.90535 12.1649 9.20276 12.167 9.49172 12.0552L13.1471 8.87026C13.493 8.38092 13.0058 7.70595 12.3624 7.72704C12.2612 7.73126 12.1325 7.77345 12.0292 7.79454L9.1226 10.2582C8.97074 10.2814 8.11438 9.29844 7.75791 9.21618C6.88679 9.0158 6.22237 9.77303 6.78976 10.4164C6.98381 10.6357 8.416 11.9013 8.63536 12.0194L8.63326 12.0173Z",
969
+ fill: color
970
+ }
971
+ ),
972
+ /* @__PURE__ */ jsx(
973
+ "path",
974
+ {
975
+ d: "M8.63326 22.4313C8.90535 22.579 9.20276 22.5811 9.49172 22.4693L13.1471 19.2843C13.493 18.795 13.0058 18.12 12.3624 18.1411C12.2612 18.1453 12.1325 18.1875 12.0292 18.2086L9.1226 20.6722C8.97074 20.6954 8.11438 19.7125 7.75791 19.6302C6.88679 19.4299 6.22237 20.1871 6.78976 20.8304C6.98381 21.0498 8.416 22.3153 8.63536 22.4335L8.63326 22.4313Z",
976
+ fill: color
977
+ }
978
+ ),
979
+ /* @__PURE__ */ jsx(
980
+ "path",
981
+ {
982
+ d: "M22.5775 9.00586H15.3322C14.8663 9.00586 14.4885 9.3836 14.4885 9.84956V10.5688C14.4885 11.0348 14.8663 11.4125 15.3322 11.4125H22.5775C23.0435 11.4125 23.4212 11.0348 23.4212 10.5688V9.84956C23.4212 9.3836 23.0435 9.00586 22.5775 9.00586Z",
983
+ fill: color
984
+ }
985
+ ),
986
+ /* @__PURE__ */ jsx(
987
+ "path",
988
+ {
989
+ d: "M22.5775 19.2715H15.3322C14.8663 19.2715 14.4885 19.6492 14.4885 20.1152V20.8344C14.4885 21.3004 14.8663 21.6781 15.3322 21.6781H22.5775C23.0435 21.6781 23.4212 21.3004 23.4212 20.8344V20.1152C23.4212 19.6492 23.0435 19.2715 22.5775 19.2715Z",
990
+ fill: color
991
+ }
992
+ ),
993
+ /* @__PURE__ */ jsx(
994
+ "path",
995
+ {
996
+ d: "M22.5775 14.1387H15.3322C14.8663 14.1387 14.4885 14.5164 14.4885 14.9824V15.7016C14.4885 16.1676 14.8663 16.5453 15.3322 16.5453H22.5775C23.0435 16.5453 23.4212 16.1676 23.4212 15.7016V14.9824C23.4212 14.5164 23.0435 14.1387 22.5775 14.1387Z",
997
+ fill: color
998
+ }
999
+ )
1000
+ ] }),
1001
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_8249_21508", children: /* @__PURE__ */ jsx("rect", { width: "30", height: "30", fill: color, transform: "translate(0 0.136719)" }) }) })
1002
+ ]
1003
+ }
1004
+ );
1005
+ var role_default = RoleIcon;
1006
+ var UserIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
1007
+ "svg",
1008
+ {
1009
+ viewBox: "0 0 31 31",
1010
+ xmlns: "http://www.w3.org/2000/svg",
1011
+ width: size,
1012
+ height: size,
1013
+ className,
1014
+ fill: color,
1015
+ ...props,
1016
+ children: [
1017
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_6640_79285)", children: [
1018
+ /* @__PURE__ */ jsx(
1019
+ "path",
1020
+ {
1021
+ d: "M15.5 0.832031C7.22905 0.832031 0.5 7.56108 0.5 15.832C0.5 24.103 7.22905 30.832 15.5 30.832C23.7709 30.832 30.5 24.103 30.5 15.832C30.5 7.56108 23.7709 0.832031 15.5 0.832031ZM15.5 28.7053C8.40089 28.7053 2.62675 22.9311 2.62675 15.832C2.62675 8.73292 8.40089 2.95879 15.5 2.95879C22.5991 2.95879 28.3732 8.73292 28.3732 15.832C28.3732 22.9311 22.5991 28.7053 15.5 28.7053Z",
1022
+ fill: color
1023
+ }
1024
+ ),
1025
+ /* @__PURE__ */ jsx(
1026
+ "path",
1027
+ {
1028
+ d: "M19.5281 15.6953C20.483 14.7489 21.0742 13.4389 21.0742 11.9905C21.0742 9.11304 18.7327 6.77148 15.8552 6.77148C12.9777 6.77148 10.6361 9.11304 10.6361 11.9905C10.6361 13.5154 11.2933 14.8893 12.3397 15.8442C9.37922 17.2543 7.3269 20.2764 7.3269 23.7685C7.3269 24.3555 7.8033 24.8319 8.39028 24.8319C8.97727 24.8319 9.45366 24.3555 9.45366 23.7685C9.45366 20.3848 11.9973 17.586 15.2725 17.1756C15.4639 17.1968 15.6595 17.2096 15.8552 17.2096C16.1274 17.2096 16.3954 17.1883 16.657 17.1479C20.0619 17.4329 22.7459 20.2913 22.7459 23.7685C22.7459 24.3555 23.2223 24.8319 23.8093 24.8319C24.3962 24.8319 24.8726 24.3555 24.8726 23.7685C24.8726 20.1466 22.6672 17.0331 19.5302 15.6953H19.5281ZM12.7629 11.9905C12.7629 10.2849 14.1495 8.89824 15.8552 8.89824C17.5608 8.89824 18.9475 10.2849 18.9475 11.9905C18.9475 13.4644 17.9096 14.6979 16.5272 15.0063C16.3848 14.9999 16.2423 14.9956 16.0976 14.9956C15.8339 14.9956 15.5723 15.0084 15.315 15.0318C13.8667 14.7766 12.7608 13.5112 12.7608 11.9884L12.7629 11.9905Z",
1029
+ fill: color
1030
+ }
1031
+ )
1032
+ ] }),
1033
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_6640_79285", children: /* @__PURE__ */ jsx("rect", { width: "30", height: "30", fill: color, transform: "translate(0.5 0.832031)" }) }) })
1034
+ ]
1035
+ }
1036
+ );
1037
+ var user_default = UserIcon;
1038
+ var PlusIcon2 = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
746
1039
  "svg",
747
1040
  {
748
1041
  viewBox: "0 0 17 15",
749
1042
  xmlns: "http://www.w3.org/2000/svg",
750
- width: size,
751
- height: size,
752
- fill: "none",
753
- className,
1043
+ className: `${className} w-[${size}px] h-[${size}px]`,
1044
+ fill: color,
1045
+ preserveAspectRatio: "xMidYMid meet",
754
1046
  ...props,
755
1047
  children: [
756
- /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_336_302483)", children: [
1048
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_3678_200811)", children: [
757
1049
  /* @__PURE__ */ jsx(
758
1050
  "path",
759
1051
  {
760
- d: "M3.49371 2.12043C3.38318 1.44249 3.66212 0.708651 4.43068 0.529533C4.94459 0.409578 7.77168 0.42749 8.38456 0.492081C9.25207 0.583811 9.64966 1.36813 9.5125 2.12097C10.3748 2.22627 11.9484 1.85067 12.6087 2.44664C13.1053 2.89498 13.1452 3.75638 12.64 4.21232C12.2707 4.54558 12.1422 4.28179 12.0664 4.92282C11.7412 7.68938 11.6509 10.4907 11.3494 13.2605C11.2452 13.9135 10.7718 14.3401 10.0646 14.3895C7.73175 14.5534 5.1836 14.2619 2.8276 14.3873C2.09203 14.2587 1.75116 13.8364 1.64178 13.1655L0.878435 4.54558C0.710025 4.38221 0.481427 4.33281 0.310702 4.15532C-0.221151 3.60006 -0.0434807 2.66593 0.639999 2.29358C0.702502 2.25938 0.998811 2.12043 1.03411 2.12043H3.49371ZM4.30394 2.12043H8.70228C8.71964 1.8333 8.70691 1.36813 8.32321 1.30951C7.19122 1.38116 5.90586 1.20367 4.79238 1.30246C4.28831 1.34696 4.29815 1.71931 4.30394 2.12043ZM12.0415 3.0589C12.0172 3.03068 11.8812 2.9574 11.8419 2.94926L1.26329 2.93243C0.749379 2.95794 0.749379 3.72598 1.26329 3.75149H11.7429C12.1029 3.75312 12.2429 3.29338 12.0415 3.0589ZM11.2487 4.56295H1.75753L2.51508 13.1612C2.5608 13.4597 2.68754 13.5498 2.9989 13.5759C5.22817 13.762 7.7468 13.4293 10.0073 13.5759L10.3823 13.4391L11.2487 4.56295Z",
1052
+ d: "M7.4394 7.51422C8.61928 7.38916 10.0254 7.55139 11.2183 7.54802C12.2462 7.76433 13.0834 8.73098 13.161 9.83283C13.2839 11.5938 13.064 13.5135 13.161 15.2947C13.1384 15.4874 12.9962 15.6395 12.8313 15.7105L5.74231 15.7274C5.50956 15.7172 5.30591 15.5009 5.29621 15.2609C5.39319 13.4933 5.17338 11.587 5.29621 9.83283C5.37703 8.67014 6.32417 7.63251 7.4394 7.51084V7.51422Z",
761
1053
  fill: color
762
1054
  }
763
1055
  ),
764
1056
  /* @__PURE__ */ jsx(
765
1057
  "path",
766
1058
  {
767
- d: "M4.22952 5.50209C4.41761 5.72137 4.34006 6.27067 4.36263 6.54477C4.51599 8.36961 4.73649 10.3719 4.77121 12.1892C4.78568 12.9404 3.98125 12.8953 3.90254 12.4047C3.84698 10.417 3.54836 8.42443 3.49164 6.43947C3.48586 6.23159 3.45576 5.67469 3.54894 5.52542C3.66411 5.34088 4.08426 5.33274 4.22952 5.50263V5.50209Z",
1059
+ d: "M8.92617 0.740824C11.315 0.507611 12.9895 3.18111 11.7547 5.35777C10.6071 7.37557 7.79155 7.35867 6.67955 5.31383C5.63867 3.40081 6.83148 0.946998 8.92617 0.740824Z",
768
1060
  fill: color
769
1061
  }
770
1062
  ),
771
1063
  /* @__PURE__ */ jsx(
772
1064
  "path",
773
1065
  {
774
- d: "M9.43711 5.50146C9.55575 5.63933 9.52045 6.22879 9.51466 6.43776C9.45852 8.42272 9.15932 10.4153 9.10376 12.4029C9.02447 12.8936 8.21946 12.9381 8.23509 12.1875C8.27213 10.3681 8.48973 8.37007 8.64367 6.54306C8.67492 6.17234 8.50941 5.28598 9.18941 5.37771C9.24497 5.38531 9.40412 5.46238 9.43711 5.50092V5.50146Z",
1066
+ d: "M2.04411 15.7226C1.31355 15.6314 0.815737 14.9588 0.770481 14.2219C0.71876 13.3668 0.715527 12.0656 0.770481 11.2138C0.831899 10.2844 1.41053 9.40896 2.22513 9.04055C2.94276 8.71608 3.74443 8.83776 4.50408 8.8141C4.41357 9.20955 4.32629 9.59485 4.30366 10.0038C4.21638 11.7039 4.37155 13.4817 4.30366 15.1886L4.40387 15.7226H2.04087H2.04411Z",
775
1067
  fill: color
776
1068
  }
777
1069
  ),
778
1070
  /* @__PURE__ */ jsx(
779
1071
  "path",
780
1072
  {
781
- d: "M6.83313 5.50252C6.90547 5.58611 6.90142 5.68218 6.91068 5.78314C7.10224 7.89891 6.76253 10.266 6.90837 12.4083C6.88985 12.8822 6.11551 12.8806 6.09814 12.4083L6.15312 5.52478C6.31575 5.34783 6.6734 5.31689 6.83313 5.50252Z",
1073
+ d: "M14.0531 15.7236L14.1533 15.1895C14.0854 13.4827 14.2406 11.7049 14.1533 10.0048C14.1339 9.5958 14.0434 9.21049 13.9529 8.81504C14.7125 8.8387 15.5142 8.71365 16.2318 9.0415C17.0497 9.41329 17.6283 10.2887 17.6865 11.2148C17.7414 12.0665 17.7414 13.3678 17.6865 14.2229C17.6445 14.8887 17.1079 15.7236 16.4129 15.7236H14.0499H14.0531Z",
1074
+ fill: color
1075
+ }
1076
+ ),
1077
+ /* @__PURE__ */ jsx(
1078
+ "path",
1079
+ {
1080
+ d: "M3.77045 3.60682C6.00737 3.34318 7.16139 6.2161 5.44491 7.67284C3.89975 8.98424 1.64019 7.61876 1.8988 5.55364C2.0184 4.58361 2.833 3.71835 3.77045 3.60682Z",
1081
+ fill: color
1082
+ }
1083
+ ),
1084
+ /* @__PURE__ */ jsx(
1085
+ "path",
1086
+ {
1087
+ d: "M14.0789 3.60555C16.5033 3.31826 17.528 6.61366 15.5044 7.86085C13.788 8.91875 11.7321 7.22542 12.2848 5.22114C12.5111 4.39983 13.2546 3.70357 14.0789 3.60555Z",
782
1088
  fill: color
783
1089
  }
784
1090
  )
@@ -787,7 +1093,39 @@ var TrashIcon = ({
787
1093
  ]
788
1094
  }
789
1095
  );
790
- var trash_default = TrashIcon;
1096
+ var user_friend_default = PlusIcon2;
1097
+ var PlusIcon3 = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
1098
+ "svg",
1099
+ {
1100
+ viewBox: "0 0 16 18",
1101
+ xmlns: "http://www.w3.org/2000/svg",
1102
+ width: size,
1103
+ height: size,
1104
+ className,
1105
+ fill: color,
1106
+ ...props,
1107
+ children: [
1108
+ /* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_2001_145027)", children: [
1109
+ /* @__PURE__ */ jsx(
1110
+ "path",
1111
+ {
1112
+ d: "M15.6777 17.4958C15.5882 17.5711 15.3981 17.6249 15.2751 17.6249H0.545811C0.310948 17.5819 0.143189 17.3128 0.109638 17.0976C0.0201661 16.3551 0.0649018 14.5473 0.255029 13.8263C0.691202 12.1368 2.31287 10.8132 4.13585 10.6948C6.66342 10.5334 9.35875 10.8239 11.8975 10.6948C15.3869 11.136 16.2145 14.063 15.8566 17.0438C15.8454 17.173 15.7671 17.4097 15.6665 17.4958H15.6777Z",
1113
+ fill: color
1114
+ }
1115
+ ),
1116
+ /* @__PURE__ */ jsx(
1117
+ "path",
1118
+ {
1119
+ d: "M7.40161 0.396418C11.1147 0.0305414 13.6982 3.70007 11.7969 6.82078C9.89563 9.94149 5.26548 9.50029 3.87867 6.27196C2.79383 3.74311 4.52734 0.686967 7.40161 0.396418Z",
1120
+ fill: color
1121
+ }
1122
+ )
1123
+ ] }),
1124
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_2001_145027", children: /* @__PURE__ */ jsx("rect", { width: "15.87", height: "17.25", fill: "white", transform: "translate(0.0649414 0.375)" }) }) })
1125
+ ]
1126
+ }
1127
+ );
1128
+ var user_alone_default = PlusIcon3;
791
1129
  var AuditFooter = ({
792
1130
  createdAt,
793
1131
  createdBy,
@@ -1317,7 +1655,7 @@ var OPERATOR_LABEL = {
1317
1655
  containsAll: "Contains all of"
1318
1656
  };
1319
1657
  var OperatorSelect = ({ row, operators, onChangeOperator, error }) => {
1320
- React26__default.useEffect(() => {
1658
+ React25__default.useEffect(() => {
1321
1659
  if (!operators.length) return;
1322
1660
  if (!operators.includes(row.operator)) {
1323
1661
  onChangeOperator(operators[0]);
@@ -1353,15 +1691,15 @@ function Label2({ className, ...props }) {
1353
1691
  );
1354
1692
  }
1355
1693
  var Form = FormProvider;
1356
- var FormFieldContext = React26.createContext({});
1694
+ var FormFieldContext = React25.createContext({});
1357
1695
  var FormField = ({
1358
1696
  ...props
1359
1697
  }) => {
1360
1698
  return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
1361
1699
  };
1362
1700
  var useFormField = () => {
1363
- const fieldContext = React26.useContext(FormFieldContext);
1364
- const itemContext = React26.useContext(FormItemContext);
1701
+ const fieldContext = React25.useContext(FormFieldContext);
1702
+ const itemContext = React25.useContext(FormItemContext);
1365
1703
  const { getFieldState } = useFormContext();
1366
1704
  const formState = useFormState({ name: fieldContext.name });
1367
1705
  const fieldState = getFieldState(fieldContext.name, formState);
@@ -1378,9 +1716,9 @@ var useFormField = () => {
1378
1716
  ...fieldState
1379
1717
  };
1380
1718
  };
1381
- var FormItemContext = React26.createContext({});
1719
+ var FormItemContext = React25.createContext({});
1382
1720
  function FormItem({ className, ...props }) {
1383
- const id = React26.useId();
1721
+ const id = React25.useId();
1384
1722
  return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { "data-slot": "form-item", className: cn("grid gap-2", className), ...props }) });
1385
1723
  }
1386
1724
  function FormLabel({ className, ...props }) {
@@ -1484,7 +1822,7 @@ var Spinner = ({ className, variant, size = "default", ...props }) => /* @__PURE
1484
1822
  ]
1485
1823
  }
1486
1824
  );
1487
- var InputPrimitive = React26.forwardRef(
1825
+ var InputPrimitive = React25.forwardRef(
1488
1826
  ({ className, type = "text", ...props }, ref) => {
1489
1827
  return /* @__PURE__ */ jsx(
1490
1828
  "input",
@@ -1523,7 +1861,7 @@ var inputVariants = cva("", {
1523
1861
  appearance: "filled"
1524
1862
  }
1525
1863
  });
1526
- var Input = React26.forwardRef(
1864
+ var Input = React25.forwardRef(
1527
1865
  ({
1528
1866
  className,
1529
1867
  wrapperClassName,
@@ -1556,8 +1894,8 @@ var Input = React26.forwardRef(
1556
1894
  onChange: onChangeProp
1557
1895
  } = rest;
1558
1896
  const ariaInvalid = invalid ?? ariaInvalidProp;
1559
- const messageId = React26.useId();
1560
- const handleChange = React26.useCallback(
1897
+ const messageId = React25.useId();
1898
+ const handleChange = React25.useCallback(
1561
1899
  (event) => {
1562
1900
  onChangeProp?.(event);
1563
1901
  onValueChange?.(event.target.value);
@@ -1900,20 +2238,20 @@ function DatePicker({
1900
2238
  className,
1901
2239
  ...props
1902
2240
  }) {
1903
- const today = React26.useMemo(() => startOfDay(/* @__PURE__ */ new Date()), []);
1904
- const [displayed, setDisplayed] = React26.useState(
2241
+ const today = React25.useMemo(() => startOfDay(/* @__PURE__ */ new Date()), []);
2242
+ const [displayed, setDisplayed] = React25.useState(
1905
2243
  selectedDate ? new Date(selectedDate) : /* @__PURE__ */ new Date()
1906
2244
  );
1907
2245
  minDate = clampToDay(minDate);
1908
2246
  maxDate = clampToDay(maxDate);
1909
- const disabledSet = React26.useMemo(() => {
2247
+ const disabledSet = React25.useMemo(() => {
1910
2248
  const s = /* @__PURE__ */ new Set();
1911
2249
  disabledDates?.forEach((d) => s.add(startOfDay(d).toISOString()));
1912
2250
  return s;
1913
2251
  }, [disabledDates]);
1914
2252
  const displayYear = displayed.getFullYear();
1915
2253
  const displayMonth = displayed.getMonth();
1916
- const weekdays = React26.useMemo(() => {
2254
+ const weekdays = React25.useMemo(() => {
1917
2255
  const labels = [];
1918
2256
  for (let i = 0; i < 7; i++) {
1919
2257
  const idx = i;
@@ -1922,7 +2260,7 @@ function DatePicker({
1922
2260
  }
1923
2261
  return labels;
1924
2262
  }, [callbacks]);
1925
- const grid = React26.useMemo(() => buildCalendarGrid(displayed, true), [displayed]);
2263
+ const grid = React25.useMemo(() => buildCalendarGrid(displayed, true), [displayed]);
1926
2264
  const isDateDisabled = (date) => {
1927
2265
  const d = startOfDay(date);
1928
2266
  if (minDate && d < minDate) return true;
@@ -1932,7 +2270,7 @@ function DatePicker({
1932
2270
  };
1933
2271
  const minYear = minDate?.getFullYear();
1934
2272
  const maxYear = maxDate?.getFullYear();
1935
- const getMonthLabel = React26.useCallback(
2273
+ const getMonthLabel = React25.useCallback(
1936
2274
  (year, monthIndex) => {
1937
2275
  const label = callbacks?.monthLabel?.(year, monthIndex);
1938
2276
  if (label === null || label === void 0) {
@@ -1942,7 +2280,7 @@ function DatePicker({
1942
2280
  },
1943
2281
  [callbacks]
1944
2282
  );
1945
- const getYearLabel = React26.useCallback(
2283
+ const getYearLabel = React25.useCallback(
1946
2284
  (year) => {
1947
2285
  const label = callbacks?.yearLabel?.(year);
1948
2286
  if (label === null || label === void 0) return String(year);
@@ -1950,7 +2288,7 @@ function DatePicker({
1950
2288
  },
1951
2289
  [callbacks]
1952
2290
  );
1953
- const clampMonthToBounds = React26.useCallback(
2291
+ const clampMonthToBounds = React25.useCallback(
1954
2292
  (year, monthIndex) => {
1955
2293
  let output = monthIndex;
1956
2294
  if (typeof minYear === "number" && year === minYear && minDate) {
@@ -1965,7 +2303,7 @@ function DatePicker({
1965
2303
  },
1966
2304
  [maxDate, minDate, maxYear, minYear]
1967
2305
  );
1968
- const yearOptions = React26.useMemo(() => {
2306
+ const yearOptions = React25.useMemo(() => {
1969
2307
  const fallbackWindow = 50;
1970
2308
  const start = typeof minYear === "number" ? minYear : displayYear - fallbackWindow;
1971
2309
  const end = typeof maxYear === "number" ? maxYear : displayYear + fallbackWindow;
@@ -1986,7 +2324,7 @@ function DatePicker({
1986
2324
  }
1987
2325
  return years;
1988
2326
  }, [displayYear, maxYear, minYear, selectedDate]);
1989
- const monthOptions = React26.useMemo(() => {
2327
+ const monthOptions = React25.useMemo(() => {
1990
2328
  const months = Array.from({ length: 12 }, (_, monthIndex) => {
1991
2329
  const disabled = typeof minYear === "number" && displayYear === minYear && minDate && monthIndex < minDate.getMonth() || typeof maxYear === "number" && displayYear === maxYear && maxDate && monthIndex > maxDate.getMonth();
1992
2330
  return {
@@ -2005,7 +2343,7 @@ function DatePicker({
2005
2343
  }
2006
2344
  return months.sort((a, b) => a.value - b.value).filter((option, index, arr) => index === 0 || option.value !== arr[index - 1].value);
2007
2345
  }, [displayMonth, displayYear, getMonthLabel, maxDate, maxYear, minDate, minYear]);
2008
- const handleMonthSelect = React26.useCallback((nextValue) => {
2346
+ const handleMonthSelect = React25.useCallback((nextValue) => {
2009
2347
  const nextMonth = Number.parseInt(nextValue, 10);
2010
2348
  if (Number.isNaN(nextMonth)) return;
2011
2349
  setDisplayed((prev) => {
@@ -2015,7 +2353,7 @@ function DatePicker({
2015
2353
  return next;
2016
2354
  });
2017
2355
  }, []);
2018
- const handleYearSelect = React26.useCallback(
2356
+ const handleYearSelect = React25.useCallback(
2019
2357
  (nextValue) => {
2020
2358
  const nextYear = Number.parseInt(nextValue, 10);
2021
2359
  if (Number.isNaN(nextYear)) return;
@@ -2163,14 +2501,14 @@ var DatePicker2 = ({
2163
2501
  ariaLabel,
2164
2502
  ...calendarProps
2165
2503
  }) => {
2166
- const [open, setOpen] = React26__default.useState(false);
2167
- const parser = React26__default.useMemo(() => valueParser ?? defaultValueParser, [valueParser]);
2168
- const outputFormatter = React26__default.useMemo(() => valueFormatter ?? defaultValueFormatter, [valueFormatter]);
2169
- const labelFormatter = React26__default.useMemo(
2504
+ const [open, setOpen] = React25__default.useState(false);
2505
+ const parser = React25__default.useMemo(() => valueParser ?? defaultValueParser, [valueParser]);
2506
+ const outputFormatter = React25__default.useMemo(() => valueFormatter ?? defaultValueFormatter, [valueFormatter]);
2507
+ const labelFormatter = React25__default.useMemo(
2170
2508
  () => displayFormatter ?? defaultDisplayFormatter,
2171
2509
  [displayFormatter]
2172
2510
  );
2173
- const parsedValue = React26__default.useMemo(() => {
2511
+ const parsedValue = React25__default.useMemo(() => {
2174
2512
  if (value === null || value === void 0) return void 0;
2175
2513
  if (value instanceof Date) return value;
2176
2514
  const parsed = parser(value);
@@ -2179,26 +2517,26 @@ var DatePicker2 = ({
2179
2517
  const buttonLabel = parsedValue ? labelFormatter(parsedValue) : placeholder2;
2180
2518
  const buttonAriaLabel = ariaLabel ?? (parsedValue ? `Change date, current selection ${labelFormatter(parsedValue)}` : "Open date picker");
2181
2519
  const shouldShowClear = allowClear && !disabled && !!parsedValue;
2182
- const handleClose = React26__default.useCallback(() => setOpen(false), []);
2183
- const emitChange = React26__default.useCallback(
2520
+ const handleClose = React25__default.useCallback(() => setOpen(false), []);
2521
+ const emitChange = React25__default.useCallback(
2184
2522
  (next) => {
2185
2523
  onChange?.(next);
2186
2524
  onValueChange?.(next ? outputFormatter(next) : void 0);
2187
2525
  },
2188
2526
  [onChange, onValueChange, outputFormatter]
2189
2527
  );
2190
- const handleSelect = React26__default.useCallback(
2528
+ const handleSelect = React25__default.useCallback(
2191
2529
  (next) => {
2192
2530
  emitChange(next);
2193
2531
  if (closeOnSelect && next) handleClose();
2194
2532
  },
2195
2533
  [closeOnSelect, emitChange, handleClose]
2196
2534
  );
2197
- const handleClear = React26__default.useCallback(() => {
2535
+ const handleClear = React25__default.useCallback(() => {
2198
2536
  emitChange(void 0);
2199
2537
  handleClose();
2200
2538
  }, [emitChange, handleClose]);
2201
- const handleOpenChange = React26__default.useCallback(
2539
+ const handleOpenChange = React25__default.useCallback(
2202
2540
  (nextOpen) => {
2203
2541
  if (disabled && nextOpen) return;
2204
2542
  setOpen(nextOpen);
@@ -2388,15 +2726,15 @@ function MonthCal({
2388
2726
  onYearBackward,
2389
2727
  onYearForward
2390
2728
  }) {
2391
- const today = React26.useMemo(() => {
2729
+ const today = React25.useMemo(() => {
2392
2730
  const now = /* @__PURE__ */ new Date();
2393
2731
  now.setDate(1);
2394
2732
  now.setHours(0, 0, 0, 0);
2395
2733
  return now;
2396
2734
  }, []);
2397
- const selectedMonthDate = React26.useMemo(() => normalizeMonth(selectedDate), [selectedDate]);
2398
- const min = React26.useMemo(() => normalizeMonth(minDate), [minDate]);
2399
- const max = React26.useMemo(() => normalizeMonth(maxDate), [maxDate]);
2735
+ const selectedMonthDate = React25.useMemo(() => normalizeMonth(selectedDate), [selectedDate]);
2736
+ const min = React25.useMemo(() => normalizeMonth(minDate), [minDate]);
2737
+ const max = React25.useMemo(() => normalizeMonth(maxDate), [maxDate]);
2400
2738
  let effectiveMin = min;
2401
2739
  if (min && max && min > max) {
2402
2740
  effectiveMin = max;
@@ -2405,10 +2743,10 @@ function MonthCal({
2405
2743
  const minMonth = effectiveMin?.getMonth();
2406
2744
  const maxYear = max?.getFullYear();
2407
2745
  const maxMonth = max?.getMonth();
2408
- const [menuYear, setMenuYear] = React26.useState(
2746
+ const [menuYear, setMenuYear] = React25.useState(
2409
2747
  () => selectedMonthDate?.getFullYear() ?? today.getFullYear()
2410
2748
  );
2411
- React26.useEffect(() => {
2749
+ React25.useEffect(() => {
2412
2750
  if (selectedMonthDate) {
2413
2751
  const year = selectedMonthDate.getFullYear();
2414
2752
  if (year !== menuYear) {
@@ -2416,7 +2754,7 @@ function MonthCal({
2416
2754
  }
2417
2755
  }
2418
2756
  }, [selectedMonthDate, menuYear]);
2419
- React26.useEffect(() => {
2757
+ React25.useEffect(() => {
2420
2758
  if (typeof minYear === "number" && menuYear < minYear) {
2421
2759
  setMenuYear(minYear);
2422
2760
  return;
@@ -2427,7 +2765,7 @@ function MonthCal({
2427
2765
  }, [minYear, maxYear, menuYear]);
2428
2766
  const disablePrevYear = typeof minYear === "number" ? menuYear <= minYear : false;
2429
2767
  const disableNextYear = typeof maxYear === "number" ? menuYear >= maxYear : false;
2430
- const yearOptions = React26.useMemo(() => {
2768
+ const yearOptions = React25.useMemo(() => {
2431
2769
  const fallbackWindow = 50;
2432
2770
  const start = typeof minYear === "number" ? minYear : menuYear - fallbackWindow;
2433
2771
  const end = typeof maxYear === "number" ? maxYear : menuYear + fallbackWindow;
@@ -2441,7 +2779,7 @@ function MonthCal({
2441
2779
  }
2442
2780
  return years;
2443
2781
  }, [maxYear, menuYear, minYear]);
2444
- const formatYearLabel = React26.useCallback(
2782
+ const formatYearLabel = React25.useCallback(
2445
2783
  (year) => {
2446
2784
  const raw = callbacks?.yearLabel?.(year);
2447
2785
  if (raw === null || raw === void 0) return String(year);
@@ -2449,7 +2787,7 @@ function MonthCal({
2449
2787
  },
2450
2788
  [callbacks]
2451
2789
  );
2452
- const handleYearSelect = React26.useCallback(
2790
+ const handleYearSelect = React25.useCallback(
2453
2791
  (nextValue) => {
2454
2792
  const nextYear = Number.parseInt(nextValue, 10);
2455
2793
  if (Number.isNaN(nextYear)) return;
@@ -2459,7 +2797,7 @@ function MonthCal({
2459
2797
  },
2460
2798
  [maxYear, minYear]
2461
2799
  );
2462
- const disabledPairs = React26.useMemo(() => {
2800
+ const disabledPairs = React25.useMemo(() => {
2463
2801
  if (!disabledDates?.length) return [];
2464
2802
  const pairs = [];
2465
2803
  disabledDates.forEach((date) => {
@@ -2604,14 +2942,14 @@ var MonthPicker2 = ({
2604
2942
  ariaLabel,
2605
2943
  ...calendarProps
2606
2944
  }) => {
2607
- const [open, setOpen] = React26__default.useState(false);
2608
- const parser = React26__default.useMemo(() => valueParser ?? defaultValueParser2, [valueParser]);
2609
- const outputFormatter = React26__default.useMemo(() => valueFormatter ?? defaultValueFormatter2, [valueFormatter]);
2610
- const labelFormatter = React26__default.useMemo(
2945
+ const [open, setOpen] = React25__default.useState(false);
2946
+ const parser = React25__default.useMemo(() => valueParser ?? defaultValueParser2, [valueParser]);
2947
+ const outputFormatter = React25__default.useMemo(() => valueFormatter ?? defaultValueFormatter2, [valueFormatter]);
2948
+ const labelFormatter = React25__default.useMemo(
2611
2949
  () => displayFormatter ?? defaultDisplayFormatter2,
2612
2950
  [displayFormatter]
2613
2951
  );
2614
- const parsedValue = React26__default.useMemo(() => {
2952
+ const parsedValue = React25__default.useMemo(() => {
2615
2953
  if (value === null || value === void 0) return void 0;
2616
2954
  if (value instanceof Date) return normalizeMonth2(value);
2617
2955
  if (typeof value === "string") {
@@ -2623,8 +2961,8 @@ var MonthPicker2 = ({
2623
2961
  const buttonLabel = parsedValue ? labelFormatter(parsedValue) : placeholder2;
2624
2962
  const buttonAriaLabel = ariaLabel ?? (parsedValue ? `Change month, current selection ${labelFormatter(parsedValue)}` : "Open month picker");
2625
2963
  const shouldShowClear = allowClear && !disabled && !!parsedValue;
2626
- const handleClose = React26__default.useCallback(() => setOpen(false), []);
2627
- const emitChange = React26__default.useCallback(
2964
+ const handleClose = React25__default.useCallback(() => setOpen(false), []);
2965
+ const emitChange = React25__default.useCallback(
2628
2966
  (next) => {
2629
2967
  const normalized = next ? normalizeMonth2(next) : void 0;
2630
2968
  onChange?.(normalized);
@@ -2632,18 +2970,18 @@ var MonthPicker2 = ({
2632
2970
  },
2633
2971
  [onChange, onValueChange, outputFormatter]
2634
2972
  );
2635
- const handleSelect = React26__default.useCallback(
2973
+ const handleSelect = React25__default.useCallback(
2636
2974
  (next) => {
2637
2975
  emitChange(next);
2638
2976
  if (closeOnSelect && next) handleClose();
2639
2977
  },
2640
2978
  [closeOnSelect, emitChange, handleClose]
2641
2979
  );
2642
- const handleClear = React26__default.useCallback(() => {
2980
+ const handleClear = React25__default.useCallback(() => {
2643
2981
  emitChange(void 0);
2644
2982
  handleClose();
2645
2983
  }, [emitChange, handleClose]);
2646
- const handleOpenChange = React26__default.useCallback(
2984
+ const handleOpenChange = React25__default.useCallback(
2647
2985
  (nextOpen) => {
2648
2986
  if (disabled && nextOpen) return;
2649
2987
  setOpen(nextOpen);
@@ -3913,7 +4251,7 @@ var AdvanceSearch = ({
3913
4251
  defaultValues: {}
3914
4252
  });
3915
4253
  const { handleSubmit, unregister, resetField, getValues, clearErrors, setError } = form;
3916
- const [operatorErrors, setOperatorErrors] = React26__default.useState({});
4254
+ const [operatorErrors, setOperatorErrors] = React25__default.useState({});
3917
4255
  const clearOperatorError = useCallback(
3918
4256
  (rowId) => {
3919
4257
  setOperatorErrors((prev) => {
@@ -4331,18 +4669,25 @@ var useControllableState = ({
4331
4669
  defaultValue,
4332
4670
  value
4333
4671
  }) => {
4334
- const [internalValue, setInternalValue] = React26.useState(value ?? defaultValue);
4335
- React26.useEffect(() => {
4336
- if (value !== internalValue) {
4337
- setInternalValue(value);
4338
- }
4339
- }, [value]);
4340
- const updateState = React26.useCallback((nextValue) => {
4341
- setInternalValue(nextValue);
4342
- }, []);
4672
+ const isControlled = typeof value !== "undefined";
4673
+ const [internalValue, setInternalValue] = React25.useState(() => {
4674
+ return isControlled ? value : defaultValue;
4675
+ });
4676
+ React25.useEffect(() => {
4677
+ if (!isControlled) return;
4678
+ setInternalValue(value);
4679
+ }, [isControlled, value]);
4680
+ const setValue = React25.useCallback(
4681
+ (nextValue) => {
4682
+ if (isControlled) return;
4683
+ setInternalValue(nextValue);
4684
+ },
4685
+ [isControlled]
4686
+ );
4343
4687
  return {
4344
- value: internalValue,
4345
- updateState
4688
+ value: isControlled ? value : internalValue,
4689
+ setValue,
4690
+ isControlled
4346
4691
  };
4347
4692
  };
4348
4693
  var useControllableState_default = useControllableState;
@@ -4449,7 +4794,7 @@ function TableHeader({ className, ...props }) {
4449
4794
  "thead",
4450
4795
  {
4451
4796
  "data-slot": "table-header",
4452
- className: cn("[&_tr]:border-b bg-[#f7f4f4]", className),
4797
+ className: cn("[&_tr]:border-b bg-sus-gray-2", className),
4453
4798
  ...props
4454
4799
  }
4455
4800
  );
@@ -4483,7 +4828,7 @@ function TableHead({ className, ...props }) {
4483
4828
  {
4484
4829
  "data-slot": "table-head",
4485
4830
  className: cn(
4486
- "text-foreground h-9 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] hover:bg-gray-200 bg-[#F0F0F0] truncate",
4831
+ "text-foreground h-9 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5 hover:bg-gray-200 bg-[#F0F0F0] truncate",
4487
4832
  className
4488
4833
  ),
4489
4834
  ...props
@@ -4496,7 +4841,7 @@ function TableCell({ className, ...props }) {
4496
4841
  {
4497
4842
  "data-slot": "table-cell",
4498
4843
  className: cn(
4499
- "p-2 h-10 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] border-b truncate",
4844
+ "p-2 h-10 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5 border-b truncate",
4500
4845
  className
4501
4846
  ),
4502
4847
  ...props
@@ -4544,7 +4889,7 @@ var ColumnSeparator = ({ show, className, ...props }) => {
4544
4889
  }
4545
4890
  );
4546
4891
  };
4547
- var ColumnSeparator_default = React26__default.memo(ColumnSeparator);
4892
+ var ColumnSeparator_default = React25__default.memo(ColumnSeparator);
4548
4893
  var StatusContentSlot = ({
4549
4894
  content,
4550
4895
  icon,
@@ -4563,7 +4908,7 @@ var StatusContentSlot = ({
4563
4908
  content
4564
4909
  ] });
4565
4910
  };
4566
- var StatusContentSlot_default = React26__default.memo(StatusContentSlot);
4911
+ var StatusContentSlot_default = React25__default.memo(StatusContentSlot);
4567
4912
  var stateOptions = [
4568
4913
  "columnFilters",
4569
4914
  "globalFilter",
@@ -5502,6 +5847,11 @@ var defaultResource = {
5502
5847
  description: "Unsaved changes. Do you want to leave this page?",
5503
5848
  confirm_text: "Leave"
5504
5849
  },
5850
+ "confirm.reset_form": {
5851
+ title: "Confirmation",
5852
+ description: "Unsaved changes. If you continue, all changes will be lost.",
5853
+ confirm_text: "Reset"
5854
+ },
5505
5855
  "confirm.remove": {
5506
5856
  title: "Confirmation",
5507
5857
  description: "Are you sure you want to remove this item?",
@@ -5741,6 +6091,12 @@ var DIALOG_ALERT_TEMPLATES = {
5741
6091
  description: "confirm.leave_page.description",
5742
6092
  confirmText: "confirm.leave_page.confirm_text"
5743
6093
  },
6094
+ "confirm.reset_form": {
6095
+ variant: "confirm",
6096
+ title: "confirm.reset_form.title",
6097
+ description: "confirm.reset_form.description",
6098
+ confirmText: "confirm.reset_form.confirm_text"
6099
+ },
5744
6100
  "confirm.remove": {
5745
6101
  variant: "confirm",
5746
6102
  title: "confirm.remove.title",
@@ -6076,8 +6432,8 @@ var DISALLOWED_MARKS = ["bold", "italic", "link"];
6076
6432
  var SUGGESTION_DEBOUNCE = 200;
6077
6433
  var DEFAULT_CHIP_CLASS = "outline-1 outline-muted bg-muted/40 text-foreground";
6078
6434
  var TokenView = ({ node, editor, getPos }) => {
6079
- const [isFocused, setIsFocused] = React26__default.useState(false);
6080
- React26__default.useEffect(() => {
6435
+ const [isFocused, setIsFocused] = React25__default.useState(false);
6436
+ React25__default.useEffect(() => {
6081
6437
  const handler = () => {
6082
6438
  const { from, to } = editor.state.selection;
6083
6439
  const position = getPos();
@@ -6628,6 +6984,8 @@ __export(ui_exports, {
6628
6984
  Input: () => Input,
6629
6985
  InputPrimitive: () => InputPrimitive,
6630
6986
  Label: () => Label2,
6987
+ ListContainer: () => container_default,
6988
+ ListHeader: () => header_default,
6631
6989
  MonthPicker: () => MonthPicker,
6632
6990
  Popover: () => Popover,
6633
6991
  PopoverAnchor: () => PopoverAnchor,
@@ -6704,6 +7062,76 @@ __export(ui_exports, {
6704
7062
  useFormField: () => useFormField,
6705
7063
  useSidebar: () => useSidebar
6706
7064
  });
7065
+ var ListContainer = ({ className, isLeftExpanded, children }) => {
7066
+ return /* @__PURE__ */ jsx(
7067
+ "div",
7068
+ {
7069
+ className: cn(
7070
+ "h-[calc(100vh-140px)] min-w-full overflow-hidden rounded-2xl border border-slate-300 bg-white shadow-lg transition-all duration-300 ease-in-out",
7071
+ {
7072
+ "w-full": isLeftExpanded,
7073
+ "md:w-full": isLeftExpanded,
7074
+ "w-full lg:w-1/2": !isLeftExpanded
7075
+ },
7076
+ className
7077
+ ),
7078
+ style: {
7079
+ position: "relative",
7080
+ transitionProperty: "width, transform",
7081
+ transitionDuration: "300ms"
7082
+ },
7083
+ children
7084
+ }
7085
+ );
7086
+ };
7087
+ var container_default = ListContainer;
7088
+ var ListHeader = ({
7089
+ title,
7090
+ titleIcon,
7091
+ isExpanded = false,
7092
+ bgColor = "bg-[#82B495]",
7093
+ textClassName = "text-white",
7094
+ onSettingClick,
7095
+ onExpandClick,
7096
+ rightActions,
7097
+ className
7098
+ }) => {
7099
+ return /* @__PURE__ */ jsx("div", { "data-testid": "list-header", className: cn("rounded-t-lg px-4 py-2", bgColor, className), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
7100
+ /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2 text-lg", textClassName), children: [
7101
+ titleIcon,
7102
+ title
7103
+ ] }),
7104
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: rightActions ?? /* @__PURE__ */ jsxs(Fragment, { children: [
7105
+ onSettingClick && /* @__PURE__ */ jsx(
7106
+ "button",
7107
+ {
7108
+ onClick: onSettingClick,
7109
+ title: "Settings",
7110
+ className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
7111
+ children: /* @__PURE__ */ jsx(setting_default, { className: "text-white" })
7112
+ }
7113
+ ),
7114
+ onSettingClick && onExpandClick && /* @__PURE__ */ jsx("div", { className: cn("h-8 w-px", textClassName.replace("text-", "bg-")) }),
7115
+ onExpandClick && /* @__PURE__ */ jsx(
7116
+ "button",
7117
+ {
7118
+ "data-testid": "list-expand-button",
7119
+ onClick: onExpandClick,
7120
+ title: isExpanded ? "Collapse" : "Expand",
7121
+ className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
7122
+ children: /* @__PURE__ */ jsx("span", { className: "flex items-center gap-0.5 text-white", children: isExpanded ? /* @__PURE__ */ jsxs(Fragment, { children: [
7123
+ /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
7124
+ /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4 -ml-2" })
7125
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
7126
+ /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" }),
7127
+ /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4 -ml-2" })
7128
+ ] }) })
7129
+ }
7130
+ )
7131
+ ] }) })
7132
+ ] }) });
7133
+ };
7134
+ var header_default = ListHeader;
6707
7135
  function RadioGroupRoot({
6708
7136
  children,
6709
7137
  ...props
@@ -7197,7 +7625,7 @@ function ToolbarPlugin({
7197
7625
  isLink: hasLink
7198
7626
  }));
7199
7627
  }, []);
7200
- React26.useEffect(() => {
7628
+ React25.useEffect(() => {
7201
7629
  return mergeRegister(
7202
7630
  editor.registerCommand(
7203
7631
  CAN_UNDO_COMMAND,
@@ -7554,7 +7982,7 @@ function ToolbarPlugin({
7554
7982
  ToolbarButton,
7555
7983
  {
7556
7984
  label: "Bulleted list",
7557
- icon: List$1,
7985
+ icon: List,
7558
7986
  onClick: () => applyBlock("bullet"),
7559
7987
  active: state.blockType === "bullet",
7560
7988
  disabled
@@ -7783,7 +8211,7 @@ function ControlledValuePlugin({
7783
8211
  trackAppliedValue
7784
8212
  }) {
7785
8213
  const [editor] = useLexicalComposerContext();
7786
- React26.useEffect(() => {
8214
+ React25.useEffect(() => {
7787
8215
  if (value == null || trackAppliedValue.current === value) {
7788
8216
  return;
7789
8217
  }
@@ -7807,14 +8235,14 @@ function ControlledValuePlugin({
7807
8235
  }
7808
8236
  function EditableStatePlugin({ editable }) {
7809
8237
  const [editor] = useLexicalComposerContext();
7810
- React26.useEffect(() => {
8238
+ React25.useEffect(() => {
7811
8239
  editor.setEditable(editable);
7812
8240
  }, [editor, editable]);
7813
8241
  return null;
7814
8242
  }
7815
8243
  function ImagesPlugin() {
7816
8244
  const [editor] = useLexicalComposerContext();
7817
- React26.useEffect(() => {
8245
+ React25.useEffect(() => {
7818
8246
  return editor.registerCommand(
7819
8247
  INSERT_IMAGE_COMMAND,
7820
8248
  (payload) => {
@@ -8095,9 +8523,9 @@ var SIDEBAR_WIDTH = "16rem";
8095
8523
  var SIDEBAR_WIDTH_MOBILE = "18rem";
8096
8524
  var SIDEBAR_WIDTH_ICON = "3rem";
8097
8525
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
8098
- var SidebarContext = React26.createContext(null);
8526
+ var SidebarContext = React25.createContext(null);
8099
8527
  function useSidebar() {
8100
- const context = React26.useContext(SidebarContext);
8528
+ const context = React25.useContext(SidebarContext);
8101
8529
  if (!context) {
8102
8530
  throw new Error("useSidebar must be used within a SidebarProvider.");
8103
8531
  }
@@ -8113,10 +8541,10 @@ function SidebarProvider({
8113
8541
  ...props
8114
8542
  }) {
8115
8543
  const isMobile = useIsMobile();
8116
- const [openMobile, setOpenMobile] = React26.useState(false);
8117
- const [_open, _setOpen] = React26.useState(defaultOpen);
8544
+ const [openMobile, setOpenMobile] = React25.useState(false);
8545
+ const [_open, _setOpen] = React25.useState(defaultOpen);
8118
8546
  const open = openProp ?? _open;
8119
- const setOpen = React26.useCallback(
8547
+ const setOpen = React25.useCallback(
8120
8548
  (value) => {
8121
8549
  const openState = typeof value === "function" ? value(open) : value;
8122
8550
  if (setOpenProp) {
@@ -8128,10 +8556,10 @@ function SidebarProvider({
8128
8556
  },
8129
8557
  [setOpenProp, open]
8130
8558
  );
8131
- const toggleSidebar = React26.useCallback(() => {
8559
+ const toggleSidebar = React25.useCallback(() => {
8132
8560
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
8133
8561
  }, [isMobile, setOpen, setOpenMobile]);
8134
- React26.useEffect(() => {
8562
+ React25.useEffect(() => {
8135
8563
  const handleKeyDown = (event) => {
8136
8564
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
8137
8565
  event.preventDefault();
@@ -8142,7 +8570,7 @@ function SidebarProvider({
8142
8570
  return () => window.removeEventListener("keydown", handleKeyDown);
8143
8571
  }, [toggleSidebar]);
8144
8572
  const state = open ? "expanded" : "collapsed";
8145
- const contextValue = React26.useMemo(
8573
+ const contextValue = React25.useMemo(
8146
8574
  () => ({
8147
8575
  state,
8148
8576
  open,
@@ -8584,7 +9012,7 @@ function SidebarMenuSkeleton({
8584
9012
  showIcon = false,
8585
9013
  ...props
8586
9014
  }) {
8587
- const width = React26.useMemo(() => {
9015
+ const width = React25.useMemo(() => {
8588
9016
  return `${Math.floor(Math.random() * 40) + 50}%`;
8589
9017
  }, []);
8590
9018
  return /* @__PURE__ */ jsxs(
@@ -9053,7 +9481,7 @@ function SortableRow({
9053
9481
  id: value,
9054
9482
  disabled: name === "columns.0.id"
9055
9483
  });
9056
- const style = React26.useMemo(
9484
+ const style = React25.useMemo(
9057
9485
  () => ({
9058
9486
  transform: CSS.Transform.toString(transform),
9059
9487
  transition
@@ -9455,7 +9883,7 @@ function getCandidateWidths({
9455
9883
  }
9456
9884
  return DEVICE_SIZES;
9457
9885
  }
9458
- var Image2 = React26.forwardRef(function Image3({
9886
+ var Image2 = React25.forwardRef(function Image3({
9459
9887
  src,
9460
9888
  alt,
9461
9889
  width,
@@ -9485,34 +9913,34 @@ var Image2 = React26.forwardRef(function Image3({
9485
9913
  } = imgProps;
9486
9914
  const widthNumber = toNumber(width);
9487
9915
  const heightNumber = toNumber(height);
9488
- React26.useEffect(() => {
9916
+ React25.useEffect(() => {
9489
9917
  if (!fill && (!widthNumber || !heightNumber)) {
9490
9918
  console.warn(
9491
9919
  "[Image] When `fill` is false you should provide both `width` and `height` to prevent layout shifts."
9492
9920
  );
9493
9921
  }
9494
9922
  }, [fill, heightNumber, widthNumber]);
9495
- const candidateWidths = React26.useMemo(
9923
+ const candidateWidths = React25.useMemo(
9496
9924
  () => getCandidateWidths({ width: widthNumber, sizes, fill }),
9497
9925
  [fill, sizes, widthNumber]
9498
9926
  );
9499
9927
  const largestWidth = candidateWidths[candidateWidths.length - 1] ?? widthNumber ?? DEVICE_SIZES[DEVICE_SIZES.length - 1];
9500
- const computedSrc = React26.useMemo(() => {
9928
+ const computedSrc = React25.useMemo(() => {
9501
9929
  if (unoptimized) {
9502
9930
  return src;
9503
9931
  }
9504
9932
  return loader({ src, width: largestWidth, quality });
9505
9933
  }, [largestWidth, loader, quality, src, unoptimized]);
9506
- const computedSrcSet = React26.useMemo(() => {
9934
+ const computedSrcSet = React25.useMemo(() => {
9507
9935
  if (unoptimized) {
9508
9936
  return void 0;
9509
9937
  }
9510
9938
  return candidateWidths.map((currentWidth) => `${loader({ src, width: currentWidth, quality })} ${currentWidth}w`).join(", ");
9511
9939
  }, [candidateWidths, loader, quality, src, unoptimized]);
9512
9940
  const sizesValue = sizes ?? (fill ? "100vw" : widthNumber ? `${widthNumber}px` : void 0);
9513
- const [isLoaded, setIsLoaded] = React26.useState(false);
9514
- const internalRef = React26.useRef(null);
9515
- const setRefs = React26.useCallback(
9941
+ const [isLoaded, setIsLoaded] = React25.useState(false);
9942
+ const internalRef = React25.useRef(null);
9943
+ const setRefs = React25.useCallback(
9516
9944
  (node) => {
9517
9945
  internalRef.current = node;
9518
9946
  if (!ref) {
@@ -9526,7 +9954,7 @@ var Image2 = React26.forwardRef(function Image3({
9526
9954
  },
9527
9955
  [ref]
9528
9956
  );
9529
- React26.useEffect(() => {
9957
+ React25.useEffect(() => {
9530
9958
  const image = internalRef.current;
9531
9959
  if (!image) {
9532
9960
  return;
@@ -9538,7 +9966,7 @@ var Image2 = React26.forwardRef(function Image3({
9538
9966
  setIsLoaded(false);
9539
9967
  }
9540
9968
  }, [onLoadingComplete, src]);
9541
- const handleLoad = React26.useCallback(
9969
+ const handleLoad = React25.useCallback(
9542
9970
  (event) => {
9543
9971
  setIsLoaded(true);
9544
9972
  onLoadProp?.(event);
@@ -9550,7 +9978,7 @@ var Image2 = React26.forwardRef(function Image3({
9550
9978
  const fetchPriority = priority ? "high" : fetchPriorityProp;
9551
9979
  const decoding = decodingProp ?? "async";
9552
9980
  const resolvedObjectFit = objectFit ?? (fill ? "cover" : void 0);
9553
- const wrapperStyle = React26.useMemo(
9981
+ const wrapperStyle = React25.useMemo(
9554
9982
  () => ({
9555
9983
  position: "relative",
9556
9984
  display: fill ? "block" : "inline-block",
@@ -9560,7 +9988,7 @@ var Image2 = React26.forwardRef(function Image3({
9560
9988
  }),
9561
9989
  [fill, height, width]
9562
9990
  );
9563
- const imageStyle = React26.useMemo(
9991
+ const imageStyle = React25.useMemo(
9564
9992
  () => ({
9565
9993
  width: fill ? "100%" : formatDimension(width) ?? void 0,
9566
9994
  height: fill ? "100%" : formatDimension(height) ?? void 0,
@@ -9621,107 +10049,47 @@ var Image2 = React26.forwardRef(function Image3({
9621
10049
  );
9622
10050
  });
9623
10051
  Image2.displayName = "Image";
9624
- var ListTable = ({ onTableReady, children }) => {
9625
- React26.useEffect(() => {
9626
- if (onTableReady) {
9627
- onTableReady({ ready: true });
9628
- }
9629
- }, [onTableReady]);
9630
- return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center", children: children ?? "Provide your table implementation here." });
9631
- };
9632
- var table_default = ListTable;
9633
- var ListContainer = ({ className, isLeftExpanded, children }) => {
9634
- return /* @__PURE__ */ jsx(
9635
- "div",
9636
- {
9637
- className: cn(
9638
- "h-[calc(100vh-140px)] min-w-full overflow-hidden rounded-2xl border border-slate-300 bg-white shadow-lg transition-all duration-300 ease-in-out",
9639
- {
9640
- "w-full": isLeftExpanded,
9641
- "md:w-full": isLeftExpanded,
9642
- "w-full lg:w-1/2": !isLeftExpanded
9643
- },
9644
- className
9645
- ),
9646
- style: {
9647
- position: "relative",
9648
- transitionProperty: "width, transform",
9649
- transitionDuration: "300ms"
9650
- },
9651
- children
9652
- }
9653
- );
9654
- };
9655
- var container_default = ListContainer;
9656
- var ListHeader = ({
10052
+ var MainListContainer = ({
9657
10053
  title,
9658
10054
  titleIcon,
9659
- isExpanded = false,
9660
- bgColor = "bg-[#82B495]",
9661
- textClassName = "text-white",
10055
+ isExpanded = true,
9662
10056
  onSettingClick,
9663
10057
  onExpandClick,
9664
- rightActions,
9665
- className
9666
- }) => {
9667
- return /* @__PURE__ */ jsx("div", { "data-testid": "list-header", className: cn("rounded-t-lg px-4 py-2", bgColor, className), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
9668
- /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2 text-lg", textClassName), children: [
9669
- titleIcon,
9670
- title
9671
- ] }),
9672
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: rightActions ?? /* @__PURE__ */ jsxs(Fragment, { children: [
9673
- onSettingClick && /* @__PURE__ */ jsx(
9674
- "button",
9675
- {
9676
- onClick: onSettingClick,
9677
- title: "Settings",
9678
- className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
9679
- children: /* @__PURE__ */ jsx(setting_default, { className: "text-white" })
9680
- }
9681
- ),
9682
- onSettingClick && onExpandClick && /* @__PURE__ */ jsx("div", { className: cn("h-8 w-px", textClassName.replace("text-", "bg-")) }),
9683
- onExpandClick && /* @__PURE__ */ jsx(
9684
- "button",
9685
- {
9686
- "data-testid": "list-expand-button",
9687
- onClick: onExpandClick,
9688
- title: isExpanded ? "Collapse" : "Expand",
9689
- className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
9690
- children: /* @__PURE__ */ jsx("span", { className: "flex items-center gap-[2px] text-white", children: isExpanded ? /* @__PURE__ */ jsxs(Fragment, { children: [
9691
- /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
9692
- /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4 -ml-2" })
9693
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
9694
- /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" }),
9695
- /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4 -ml-2" })
9696
- ] }) })
9697
- }
9698
- )
9699
- ] }) })
9700
- ] }) });
9701
- };
9702
- var header_default = ListHeader;
9703
- var List = ({
9704
- isLeftExpanded,
9705
- handleSettingClick,
9706
- handleExpandClick,
9707
- onTableReady,
9708
- children
10058
+ children,
10059
+ slots,
10060
+ classNames,
10061
+ renderHeader
9709
10062
  }) => {
9710
- return /* @__PURE__ */ jsxs(container_default, { className: "flex flex-col bg-white shadow-lg", isLeftExpanded, children: [
9711
- /* @__PURE__ */ jsx(
9712
- header_default,
9713
- {
9714
- title: "Previous Example",
9715
- isExpanded: isLeftExpanded,
9716
- onSettingClick: handleSettingClick,
9717
- onExpandClick: handleExpandClick,
9718
- titleIcon: /* @__PURE__ */ jsx(CircleUserRound, { className: "h-6 w-6 text-white" })
9719
- }
9720
- ),
9721
- /* @__PURE__ */ jsx("div", { className: "flex h-full", children: /* @__PURE__ */ jsx(table_default, { onTableReady, children }) })
9722
- ] });
10063
+ const Container = slots?.Container ?? container_default;
10064
+ const Header2 = slots?.Header ?? header_default;
10065
+ return /* @__PURE__ */ jsxs(
10066
+ Container,
10067
+ {
10068
+ isLeftExpanded: isExpanded,
10069
+ className: cn("flex flex-col bg-white shadow-lg", classNames?.root),
10070
+ children: [
10071
+ renderHeader ? renderHeader({
10072
+ title,
10073
+ titleIcon,
10074
+ isExpanded,
10075
+ onSettingClick,
10076
+ onExpandClick
10077
+ }) : Header2 ? /* @__PURE__ */ jsx(
10078
+ Header2,
10079
+ {
10080
+ title,
10081
+ titleIcon,
10082
+ isExpanded,
10083
+ onSettingClick,
10084
+ onExpandClick
10085
+ }
10086
+ ) : null,
10087
+ /* @__PURE__ */ jsx("div", { className: cn("flex-1 flex flex-col relative min-h-0", classNames?.content), children })
10088
+ ]
10089
+ }
10090
+ );
9723
10091
  };
9724
- var List_default = List;
10092
+ var MainListContainer_default = MainListContainer;
9725
10093
  var InfoIcon = (props) => {
9726
10094
  return /* @__PURE__ */ jsxs(
9727
10095
  "svg",
@@ -9767,7 +10135,7 @@ var InfoIcon = (props) => {
9767
10135
  }
9768
10136
  );
9769
10137
  };
9770
- var InfoIcon_default = React26__default.memo(InfoIcon);
10138
+ var InfoIcon_default = React25__default.memo(InfoIcon);
9771
10139
  var Navbar = ({
9772
10140
  className,
9773
10141
  title,
@@ -9899,7 +10267,7 @@ var Navbar = ({
9899
10267
  }
9900
10268
  );
9901
10269
  };
9902
- var navbar_default = React26__default.memo(Navbar);
10270
+ var navbar_default = React25__default.memo(Navbar);
9903
10271
  var usePreventPageLeaveStore = create((set) => ({
9904
10272
  isPreventing: false,
9905
10273
  setPreventing: (value) => set({ isPreventing: value })
@@ -9932,6 +10300,71 @@ var usePreventPageLeave = ({ isPrevening }) => {
9932
10300
  }, [isPrevening, setPreventing]);
9933
10301
  };
9934
10302
  var usePreventPageLeave_default = usePreventPageLeave;
10303
+ var DefaultHeader = ({
10304
+ title,
10305
+ subtitle,
10306
+ icon,
10307
+ classNames,
10308
+ rightActions
10309
+ }) => /* @__PURE__ */ jsxs("div", { className: cn("flex items-start justify-between gap-3", classNames?.header), children: [
10310
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
10311
+ icon ? /* @__PURE__ */ jsx(
10312
+ "div",
10313
+ {
10314
+ className: cn(
10315
+ "w-10 h-10 rounded-full bg-sus-green-50 flex items-center justify-center",
10316
+ classNames?.iconWrapper
10317
+ ),
10318
+ children: icon
10319
+ }
10320
+ ) : null,
10321
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
10322
+ subtitle ? /* @__PURE__ */ jsx("span", { className: cn("text-xs text-gray-500", classNames?.subtitle), children: subtitle }) : null,
10323
+ title ? /* @__PURE__ */ jsx("span", { className: cn("text-lg font-semibold text-sus-green-1", classNames?.title), children: title }) : null
10324
+ ] })
10325
+ ] }),
10326
+ rightActions ? /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: rightActions }) : null
10327
+ ] });
10328
+ var RightPanelContainer = ({
10329
+ title,
10330
+ subtitle,
10331
+ icon,
10332
+ rightActions,
10333
+ children,
10334
+ isExpanded = false,
10335
+ className,
10336
+ classNames,
10337
+ slots,
10338
+ renderHeader
10339
+ }) => {
10340
+ const Container = slots?.Container ?? container_default;
10341
+ const Header2 = slots?.Header ?? DefaultHeader;
10342
+ return /* @__PURE__ */ jsx(
10343
+ Container,
10344
+ {
10345
+ isLeftExpanded: isExpanded,
10346
+ className: cn(
10347
+ "flex flex-col bg-white border border-slate-300 min-w-full",
10348
+ className,
10349
+ classNames?.root
10350
+ ),
10351
+ children: /* @__PURE__ */ jsx("div", { className: cn("flex-1 flex min-h-0 px-4 py-6 justify-center", classNames?.body), children: /* @__PURE__ */ jsxs("div", { className: cn("w-full max-w-3xl overflow-auto", classNames?.content), children: [
10352
+ renderHeader ? renderHeader({ title, subtitle, icon, rightActions, classNames }) : Header2 ? /* @__PURE__ */ jsx(
10353
+ Header2,
10354
+ {
10355
+ title,
10356
+ subtitle,
10357
+ icon,
10358
+ rightActions,
10359
+ classNames
10360
+ }
10361
+ ) : null,
10362
+ children
10363
+ ] }) })
10364
+ }
10365
+ );
10366
+ };
10367
+ var RightPanelContainer_default = RightPanelContainer;
9935
10368
 
9936
10369
  // src/components/cropperModal/type.ts
9937
10370
  var CropperModalError = class extends Error {
@@ -10189,7 +10622,7 @@ function isFragment(object) {
10189
10622
  var isValidText = (val) => ["string", "number"].includes(typeof val);
10190
10623
  function toArray(children, option = {}) {
10191
10624
  let ret = [];
10192
- React26.Children.forEach(children, (child) => {
10625
+ React25.Children.forEach(children, (child) => {
10193
10626
  if ((child === void 0 || child === null) && !option.keepEmpty) {
10194
10627
  return;
10195
10628
  }
@@ -10203,9 +10636,9 @@ function toArray(children, option = {}) {
10203
10636
  });
10204
10637
  return ret;
10205
10638
  }
10206
- var MeasureText = React26.forwardRef(({ style, children }, ref) => {
10207
- const spanRef = React26.useRef(null);
10208
- React26.useImperativeHandle(ref, () => ({
10639
+ var MeasureText = React25.forwardRef(({ style, children }, ref) => {
10640
+ const spanRef = React25.useRef(null);
10641
+ React25.useImperativeHandle(ref, () => ({
10209
10642
  isExceed: () => {
10210
10643
  const span = spanRef.current;
10211
10644
  return span.scrollHeight > span.clientHeight;
@@ -10263,19 +10696,19 @@ var lineClipStyle = {
10263
10696
  };
10264
10697
  function EllipsisMeasure(props) {
10265
10698
  const { enableMeasure, width, text, children, rows, expanded, miscDeps, onEllipsis } = props;
10266
- const nodeList = React26.useMemo(() => toArray(text), [text]);
10267
- const nodeLen = React26.useMemo(() => getNodesLen(nodeList), [text]);
10268
- const fullContent = React26.useMemo(() => children(nodeList, false), [text]);
10269
- const [ellipsisCutIndex, setEllipsisCutIndex] = React26.useState(null);
10270
- const cutMidRef = React26.useRef(null);
10271
- const measureWhiteSpaceRef = React26.useRef(null);
10272
- const needEllipsisRef = React26.useRef(null);
10273
- const descRowsEllipsisRef = React26.useRef(null);
10274
- const symbolRowEllipsisRef = React26.useRef(null);
10275
- const [canEllipsis, setCanEllipsis] = React26.useState(false);
10276
- const [needEllipsis, setNeedEllipsis] = React26.useState(STATUS_MEASURE_NONE);
10277
- const [ellipsisHeight, setEllipsisHeight] = React26.useState(0);
10278
- const [parentWhiteSpace, setParentWhiteSpace] = React26.useState(null);
10699
+ const nodeList = React25.useMemo(() => toArray(text), [text]);
10700
+ const nodeLen = React25.useMemo(() => getNodesLen(nodeList), [text]);
10701
+ const fullContent = React25.useMemo(() => children(nodeList, false), [text]);
10702
+ const [ellipsisCutIndex, setEllipsisCutIndex] = React25.useState(null);
10703
+ const cutMidRef = React25.useRef(null);
10704
+ const measureWhiteSpaceRef = React25.useRef(null);
10705
+ const needEllipsisRef = React25.useRef(null);
10706
+ const descRowsEllipsisRef = React25.useRef(null);
10707
+ const symbolRowEllipsisRef = React25.useRef(null);
10708
+ const [canEllipsis, setCanEllipsis] = React25.useState(false);
10709
+ const [needEllipsis, setNeedEllipsis] = React25.useState(STATUS_MEASURE_NONE);
10710
+ const [ellipsisHeight, setEllipsisHeight] = React25.useState(0);
10711
+ const [parentWhiteSpace, setParentWhiteSpace] = React25.useState(null);
10279
10712
  useIsomorphicLayoutEffect(() => {
10280
10713
  if (enableMeasure && width && nodeLen) {
10281
10714
  setNeedEllipsis(STATUS_MEASURE_PREPARE);
@@ -10318,7 +10751,7 @@ function EllipsisMeasure(props) {
10318
10751
  setEllipsisCutIndex(isOverflow ? [minIndex, targetMidIndex] : [targetMidIndex, maxIndex]);
10319
10752
  }
10320
10753
  }, [ellipsisCutIndex, cutMidIndex]);
10321
- const finalContent = React26.useMemo(() => {
10754
+ const finalContent = React25.useMemo(() => {
10322
10755
  if (!enableMeasure) {
10323
10756
  return children(nodeList, false);
10324
10757
  }
@@ -10409,10 +10842,10 @@ var Truncated = ({
10409
10842
  tooltipProps,
10410
10843
  tooltipContentProps
10411
10844
  }) => {
10412
- const elementRef = React26.useRef(null);
10413
- const [open, setOpen] = React26.useState(false);
10414
- const [isTruncated, setIsTruncated] = React26.useState(false);
10415
- const [measureWidth, setMeasureWidth] = React26.useState(0);
10845
+ const elementRef = React25.useRef(null);
10846
+ const [open, setOpen] = React25.useState(false);
10847
+ const [isTruncated, setIsTruncated] = React25.useState(false);
10848
+ const [measureWidth, setMeasureWidth] = React25.useState(0);
10416
10849
  const Comp = as;
10417
10850
  const normalizedChildren = typeof children === "string" ? children.replace(/>/g, ">\u200B") : children;
10418
10851
  const lineClampLines = typeof ellipsis === "number" ? ellipsis : typeof ellipsis === "object" ? ellipsis?.lineClamp ?? 3 : null;
@@ -10437,13 +10870,13 @@ var Truncated = ({
10437
10870
  setIsTruncated(false);
10438
10871
  }
10439
10872
  }, [enableMeasure]);
10440
- const truncationClass = React26.useMemo(() => {
10873
+ const truncationClass = React25.useMemo(() => {
10441
10874
  if (!ellipsis) return "";
10442
10875
  if (typeof ellipsis === "number") return `line-clamp-${ellipsis}`;
10443
10876
  if (typeof ellipsis === "object") return `line-clamp-${lineClampLines ?? 3}`;
10444
10877
  return "truncate";
10445
10878
  }, [ellipsis, lineClampLines]);
10446
- const clampedStyle = React26.useMemo(() => {
10879
+ const clampedStyle = React25.useMemo(() => {
10447
10880
  if (!lineClampLines) return style;
10448
10881
  return {
10449
10882
  ...style,
@@ -10505,7 +10938,7 @@ var Truncated = ({
10505
10938
  );
10506
10939
  };
10507
10940
  var truncated_default = Truncated;
10508
- var InputPrimitive2 = React26.forwardRef(
10941
+ var InputPrimitive2 = React25.forwardRef(
10509
10942
  ({ className, type = "text", ...props }, ref) => {
10510
10943
  return /* @__PURE__ */ jsx(
10511
10944
  "input",
@@ -10544,7 +10977,7 @@ var inputVariants2 = cva("", {
10544
10977
  appearance: "filled"
10545
10978
  }
10546
10979
  });
10547
- var Input2 = React26.forwardRef(
10980
+ var Input2 = React25.forwardRef(
10548
10981
  ({
10549
10982
  className,
10550
10983
  wrapperClassName,
@@ -10577,8 +11010,8 @@ var Input2 = React26.forwardRef(
10577
11010
  onChange: onChangeProp
10578
11011
  } = rest;
10579
11012
  const ariaInvalid = invalid ?? ariaInvalidProp;
10580
- const messageId = React26.useId();
10581
- const handleChange = React26.useCallback(
11013
+ const messageId = React25.useId();
11014
+ const handleChange = React25.useCallback(
10582
11015
  (event) => {
10583
11016
  onChangeProp?.(event);
10584
11017
  onValueChange?.(event.target.value);
@@ -10971,13 +11404,13 @@ var useFieldNames = ({
10971
11404
  fieldNames
10972
11405
  }) => {
10973
11406
  const { label: labelFieldKey = "label", value: valueFieldKey = "value" } = fieldNames || {};
10974
- const getLabelField = React26__default.useCallback(
11407
+ const getLabelField = React25__default.useCallback(
10975
11408
  (option) => {
10976
11409
  return option?.[labelFieldKey];
10977
11410
  },
10978
11411
  [labelFieldKey]
10979
11412
  );
10980
- const getValueField = React26__default.useCallback(
11413
+ const getValueField = React25__default.useCallback(
10981
11414
  (option) => {
10982
11415
  return option?.[valueFieldKey];
10983
11416
  },
@@ -11009,11 +11442,11 @@ var VirtualizedCommand = ({
11009
11442
  onFocus
11010
11443
  }) => {
11011
11444
  const { getLabelField, getValueField } = useFieldNames_default({ fieldNames });
11012
- const internalOptions = React26.useMemo(() => options ?? [], [options]);
11013
- const [filteredOptions, setFilteredOptions] = React26.useState(internalOptions);
11014
- const [focusedIndex, setFocusedIndex] = React26.useState(0);
11015
- const [isKeyboardNavActive, setIsKeyboardNavActive] = React26.useState(false);
11016
- const parentRef = React26.useRef(null);
11445
+ const internalOptions = React25.useMemo(() => options ?? [], [options]);
11446
+ const [filteredOptions, setFilteredOptions] = React25.useState(internalOptions);
11447
+ const [focusedIndex, setFocusedIndex] = React25.useState(0);
11448
+ const [isKeyboardNavActive, setIsKeyboardNavActive] = React25.useState(false);
11449
+ const parentRef = React25.useRef(null);
11017
11450
  const virtualizer = useVirtualizer({
11018
11451
  count: filteredOptions.length,
11019
11452
  getScrollElement: () => parentRef.current,
@@ -11021,14 +11454,14 @@ var VirtualizedCommand = ({
11021
11454
  overscan: 2
11022
11455
  });
11023
11456
  const virtualOptions = virtualizer.getVirtualItems();
11024
- const dynamicHeight = React26.useMemo(() => {
11457
+ const dynamicHeight = React25.useMemo(() => {
11025
11458
  const contentHeight = filteredOptions.length * ROW_HEIGHT;
11026
11459
  if (contentHeight <= 0) {
11027
11460
  return MIN_HEIGHT_EMPTY;
11028
11461
  }
11029
11462
  return Math.max(ROW_HEIGHT, Math.min(height, contentHeight));
11030
11463
  }, [filteredOptions.length, height]);
11031
- const scrollToIndex = React26.useCallback(
11464
+ const scrollToIndex = React25.useCallback(
11032
11465
  (index) => {
11033
11466
  virtualizer.scrollToIndex(index, {
11034
11467
  align: "center"
@@ -11036,7 +11469,7 @@ var VirtualizedCommand = ({
11036
11469
  },
11037
11470
  [virtualizer]
11038
11471
  );
11039
- const handleSearch = React26.useCallback(
11472
+ const handleSearch = React25.useCallback(
11040
11473
  (search) => {
11041
11474
  setIsKeyboardNavActive(false);
11042
11475
  setFilteredOptions(
@@ -11051,7 +11484,7 @@ var VirtualizedCommand = ({
11051
11484
  },
11052
11485
  [filterOption, getLabelField, internalOptions]
11053
11486
  );
11054
- const handleKeyDown = React26.useCallback(
11487
+ const handleKeyDown = React25.useCallback(
11055
11488
  (event) => {
11056
11489
  switch (event.key) {
11057
11490
  case "ArrowDown": {
@@ -11086,7 +11519,7 @@ var VirtualizedCommand = ({
11086
11519
  },
11087
11520
  [filteredOptions, focusedIndex, getValueField, onSelect, scrollToIndex]
11088
11521
  );
11089
- React26.useEffect(() => {
11522
+ React25.useEffect(() => {
11090
11523
  if (value) {
11091
11524
  const option = filteredOptions.find((option2) => {
11092
11525
  const optionValue = getValueField(option2);
@@ -11198,40 +11631,71 @@ var ComboboxInner = ({
11198
11631
  notFoundContent,
11199
11632
  searchPlaceholder,
11200
11633
  showSearch,
11634
+ open,
11635
+ showValueWhenNoMatch,
11636
+ onOpenChange,
11637
+ onClear,
11201
11638
  ...props
11202
11639
  }, ref) => {
11203
11640
  const { getLabelField, getValueField } = useFieldNames_default({ fieldNames });
11204
- const [open, setOpen] = React26.useState(false);
11205
- const { value: selectedValue, updateState: setSelectedValue } = useControllableState_default({
11641
+ const { value: openPopover, setValue: setOpenPopover } = useControllableState_default({
11642
+ defaultValue: false,
11643
+ value: open
11644
+ });
11645
+ const { value: selectedValue, setValue: setSelectedValue } = useControllableState_default({
11206
11646
  defaultValue,
11207
11647
  value
11208
11648
  });
11209
- const renderValue = React26.useMemo(() => {
11210
- if (!selectedValue) return placeholder2;
11211
- const selectedOptionFound = options?.find((option) => {
11649
+ const currentSelectedOption = React25.useMemo(() => {
11650
+ return options?.find((option) => {
11212
11651
  const optionValue = getValueField(option);
11213
11652
  return optionValue === selectedValue;
11214
11653
  });
11215
- return selectedOptionFound ? getLabelField(selectedOptionFound) : null;
11216
- }, [getLabelField, getValueField, options, placeholder2, selectedValue]);
11217
- const handleSelect = React26.useCallback(
11654
+ }, [getValueField, options, selectedValue]);
11655
+ const renderValue = React25.useMemo(() => {
11656
+ if (!selectedValue) return placeholder2;
11657
+ if (currentSelectedOption) {
11658
+ return getLabelField(currentSelectedOption);
11659
+ }
11660
+ if (showValueWhenNoMatch) {
11661
+ return selectedValue;
11662
+ }
11663
+ return null;
11664
+ }, [currentSelectedOption, getLabelField, placeholder2, selectedValue, showValueWhenNoMatch]);
11665
+ const handleSelect = React25.useCallback(
11218
11666
  (selected, option) => {
11219
11667
  setSelectedValue(selected);
11220
- setOpen(false);
11668
+ setOpenPopover(false);
11221
11669
  if (typeof onSelect === "function") {
11222
11670
  onSelect(selected, option);
11223
11671
  }
11672
+ if (typeof onOpenChange === "function") {
11673
+ onOpenChange(false);
11674
+ }
11224
11675
  },
11225
- [onSelect, setSelectedValue]
11676
+ [onOpenChange, onSelect, setOpenPopover, setSelectedValue]
11226
11677
  );
11227
- const handleClear = React26.useCallback(
11678
+ const handleOpenPopover = React25.useCallback(
11679
+ (isOpen) => {
11680
+ if (disabled) return;
11681
+ setOpenPopover(isOpen);
11682
+ if (typeof onOpenChange === "function") {
11683
+ onOpenChange(isOpen);
11684
+ }
11685
+ },
11686
+ [disabled, onOpenChange, setOpenPopover]
11687
+ );
11688
+ const handleClear = React25.useCallback(
11228
11689
  (event) => {
11229
11690
  event.stopPropagation();
11230
11691
  setSelectedValue(void 0);
11692
+ if (typeof onClear === "function") {
11693
+ onClear(selectedValue, currentSelectedOption);
11694
+ }
11231
11695
  },
11232
- [setSelectedValue]
11696
+ [currentSelectedOption, onClear, selectedValue, setSelectedValue]
11233
11697
  );
11234
- return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: (next) => !disabled && setOpen(next), children: [
11698
+ return /* @__PURE__ */ jsxs(Popover, { open: openPopover, onOpenChange: handleOpenPopover, children: [
11235
11699
  /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
11236
11700
  "button",
11237
11701
  {
@@ -11239,7 +11703,7 @@ var ComboboxInner = ({
11239
11703
  name,
11240
11704
  type: "button",
11241
11705
  role: "combobox",
11242
- "aria-expanded": open,
11706
+ "aria-expanded": openPopover,
11243
11707
  className: cn(
11244
11708
  "flex items-center justify-between gap-2 rounded-md border bg-white px-3 h-9 text-sm whitespace-nowrap shadow-xs outline-none border-input",
11245
11709
  "disabled:cursor-not-allowed disabled:opacity-50",
@@ -11249,7 +11713,7 @@ var ComboboxInner = ({
11249
11713
  "transition-all",
11250
11714
  className
11251
11715
  ),
11252
- "data-state": open ? "open" : "closed",
11716
+ "data-state": openPopover ? "open" : "closed",
11253
11717
  disabled,
11254
11718
  onFocus,
11255
11719
  onBlur,
@@ -11310,7 +11774,7 @@ var ComboboxInner = ({
11310
11774
  )
11311
11775
  ] });
11312
11776
  };
11313
- var Combobox = React26.forwardRef(ComboboxInner);
11777
+ var Combobox = React25.forwardRef(ComboboxInner);
11314
11778
  var Combobox_default = Combobox;
11315
11779
  var TruncatedMouseEnterDiv = ({
11316
11780
  value,
@@ -11372,6 +11836,6 @@ var TruncatedMouseEnterDiv = ({
11372
11836
  };
11373
11837
  var truncatedMouseEnterDiv_default = TruncatedMouseEnterDiv;
11374
11838
 
11375
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionMenu, AdvanceSearch_default as AdvanceSearch, arrow_default as ArrowIcon, AuditFooter, Button, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Combobox_default as Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CropperModal, CropperModalError, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DataTable_default as DataTable, DatePicker2 as DatePicker, Dialog, DialogAlert, DialogAlertProvider, DialogContent, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, filters_default as FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, GridSettingsModal_default as GridSettingsModal, HeaderCell_default as HeaderCell, Image2 as Image, Input, InputNumber_default as InputNumber, Label2 as Label, List_default as List, container_default as ListContainer, header_default as ListHeader, table_default as ListTable, LookupSelect, MonthPicker2 as MonthPicker, navbar_default as Navbar, not_found_default as NotFoundIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PreventPageLeave_default as PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, RichText, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, calendar_default as SuiCalendarIcon, calendar2_default as SuiCalendarIcon2, check_default as SuiCheckIcon, dots_vertical_default as SuiDotsVerticalIcon, empty_data_default as SuiEmptyDataIcon, expand_default as SuiExpandIcon, filter_default as SuiFilterIcon, setting_default as SuiSettingIcon, triangle_down_default as SuiTriangleDownIcon, warning_default as SuiWarningIcon, Switch, Textarea, Tooltip2 as Tooltip, TooltipArrow, TooltipContent2 as TooltipContent, TooltipProvider2 as TooltipProvider, TooltipTrigger2 as TooltipTrigger, trash_default as TrashIcon, truncated_default as Truncated, truncatedMouseEnterDiv_default as TruncatedMouseEnterDiv, ui_exports as UI, VirtualizedCommand_default as VirtualizedCommand, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useControllableState_default as useControllableState, useFormField, useGridSettingsStore_default as useGridSettingsStore, useHover_default as useHover, useIntersectionObserver_default as useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery_default as useMediaQuery, usePreventPageLeave_default as usePreventPageLeave, usePreventPageLeaveStore_default as usePreventPageLeaveStore, useScreenSize_default as useScreenSize, useSidebar, useTruncated_default as useTruncated, validateTokenPrefixes };
11839
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionMenu, AdvanceSearch_default as AdvanceSearch, arrow_default as ArrowIcon, AuditFooter, Button, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Combobox_default as Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CropperModal, CropperModalError, custom_field_default as CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DataTable_default as DataTable, DatePicker2 as DatePicker, decrease_default as DecreaseIcon, Dialog, DialogAlert, DialogAlertProvider, DialogContent, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, filters_default as FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, GridSettingsModal_default as GridSettingsModal, HeaderCell_default as HeaderCell, Image2 as Image, information_default as InformationIcon, Input, InputNumber_default as InputNumber, Label2 as Label, LookupSelect, MainListContainer_default as MainListContainer, MonthPicker2 as MonthPicker, navbar_default as Navbar, not_found_default as NotFoundIcon, plus_default as PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PreventPageLeave_default as PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, RichText, RightPanelContainer_default as RightPanelContainer, role_default as RoleIcon, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, calendar_default as SuiCalendarIcon, calendar2_default as SuiCalendarIcon2, check_default as SuiCheckIcon, dots_vertical_default as SuiDotsVerticalIcon, empty_data_default as SuiEmptyDataIcon, expand_default as SuiExpandIcon, filter_default as SuiFilterIcon, setting_default as SuiSettingIcon, triangle_down_default as SuiTriangleDownIcon, warning_default as SuiWarningIcon, Switch, Textarea, Tooltip2 as Tooltip, TooltipArrow, TooltipContent2 as TooltipContent, TooltipProvider2 as TooltipProvider, TooltipTrigger2 as TooltipTrigger, trash_default as TrashIcon, truncated_default as Truncated, truncatedMouseEnterDiv_default as TruncatedMouseEnterDiv, ui_exports as UI, user_alone_default as UserAloneIcon, user_friend_default as UserFriendIcon, user_default as UserIcon, VirtualizedCommand_default as VirtualizedCommand, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useControllableState_default as useControllableState, useFormField, useGridSettingsStore_default as useGridSettingsStore, useHover_default as useHover, useIntersectionObserver_default as useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery_default as useMediaQuery, usePreventPageLeave_default as usePreventPageLeave, usePreventPageLeaveStore_default as usePreventPageLeaveStore, useScreenSize_default as useScreenSize, useSidebar, useTruncated_default as useTruncated, validateTokenPrefixes };
11376
11840
  //# sourceMappingURL=index.mjs.map
11377
11841
  //# sourceMappingURL=index.mjs.map