@sustaina/shared-ui 1.35.0 → 1.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +118 -66
- package/dist/index.d.ts +118 -66
- package/dist/index.js +1088 -670
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +923 -511
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var clsx2 = require('clsx');
|
|
|
4
4
|
var tailwindMerge = require('tailwind-merge');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
7
|
-
var
|
|
7
|
+
var React25 = require('react');
|
|
8
8
|
var lucideReact = require('lucide-react');
|
|
9
9
|
var reactDom = require('react-dom');
|
|
10
10
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
@@ -84,7 +84,7 @@ function _interopNamespace(e) {
|
|
|
84
84
|
|
|
85
85
|
var clsx2__default = /*#__PURE__*/_interopDefault(clsx2);
|
|
86
86
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
87
|
-
var
|
|
87
|
+
var React25__namespace = /*#__PURE__*/_interopNamespace(React25);
|
|
88
88
|
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
89
89
|
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
90
90
|
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
@@ -269,48 +269,55 @@ function cn(...args) {
|
|
|
269
269
|
return tailwindMerge.twMerge(clsx2.clsx(args));
|
|
270
270
|
}
|
|
271
271
|
var ArrowIcon = ({
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
size = "1em",
|
|
273
|
+
width,
|
|
274
|
+
height,
|
|
274
275
|
fill = "none",
|
|
276
|
+
color = "#127035",
|
|
275
277
|
...props
|
|
276
278
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
277
279
|
"svg",
|
|
278
280
|
{
|
|
279
281
|
xmlns: "http://www.w3.org/2000/svg",
|
|
280
282
|
viewBox: "0 0 14 9",
|
|
281
|
-
width,
|
|
282
|
-
height,
|
|
283
|
+
width: width ?? size,
|
|
284
|
+
height: height ?? size,
|
|
283
285
|
fill,
|
|
284
286
|
...props,
|
|
285
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M0.293 0.723L6.79 8.723L13.293 0.723H0.293Z", fill:
|
|
287
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M0.293 0.723L6.79 8.723L13.293 0.723H0.293Z", fill: color })
|
|
286
288
|
}
|
|
287
289
|
);
|
|
288
290
|
var arrow_default = ArrowIcon;
|
|
289
|
-
var
|
|
291
|
+
var DecreaseIcon = ({
|
|
292
|
+
size = 16,
|
|
293
|
+
color = "currentColor",
|
|
294
|
+
className,
|
|
295
|
+
...props
|
|
296
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
290
297
|
"svg",
|
|
291
298
|
{
|
|
292
299
|
xmlns: "http://www.w3.org/2000/svg",
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
300
|
+
viewBox: "0 0 9 4",
|
|
301
|
+
width: size,
|
|
302
|
+
height: size,
|
|
303
|
+
className,
|
|
304
|
+
fill: color,
|
|
297
305
|
...props,
|
|
298
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
299
|
-
"path",
|
|
300
|
-
{
|
|
301
|
-
fill: "currentColor",
|
|
302
|
-
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"
|
|
303
|
-
}
|
|
304
|
-
)
|
|
306
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "0.572754", y: "0.441406", width: "7.57659", height: "2.75347", fill: color })
|
|
305
307
|
}
|
|
306
308
|
);
|
|
307
|
-
var
|
|
308
|
-
var
|
|
309
|
+
var decrease_default = DecreaseIcon;
|
|
310
|
+
var FiltersIcon = ({
|
|
311
|
+
size = 24,
|
|
312
|
+
color = "#379A2A",
|
|
313
|
+
strokeWidth = 1.5,
|
|
314
|
+
...props
|
|
315
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
309
316
|
"svg",
|
|
310
317
|
{
|
|
311
|
-
width:
|
|
312
|
-
height:
|
|
313
|
-
viewBox: "0 0
|
|
318
|
+
width: size,
|
|
319
|
+
height: size,
|
|
320
|
+
viewBox: "0 0 24 24",
|
|
314
321
|
fill: "none",
|
|
315
322
|
xmlns: "http://www.w3.org/2000/svg",
|
|
316
323
|
...props,
|
|
@@ -318,9 +325,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
318
325
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
319
326
|
"path",
|
|
320
327
|
{
|
|
321
|
-
d: "
|
|
322
|
-
stroke:
|
|
323
|
-
strokeWidth
|
|
328
|
+
d: "M10 18H14",
|
|
329
|
+
stroke: color,
|
|
330
|
+
strokeWidth,
|
|
324
331
|
strokeLinecap: "round",
|
|
325
332
|
strokeLinejoin: "round"
|
|
326
333
|
}
|
|
@@ -328,9 +335,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
328
335
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
329
336
|
"path",
|
|
330
337
|
{
|
|
331
|
-
d: "
|
|
332
|
-
stroke:
|
|
333
|
-
strokeWidth
|
|
338
|
+
d: "M11 6H3",
|
|
339
|
+
stroke: color,
|
|
340
|
+
strokeWidth,
|
|
334
341
|
strokeLinecap: "round",
|
|
335
342
|
strokeLinejoin: "round"
|
|
336
343
|
}
|
|
@@ -338,9 +345,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
338
345
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
339
346
|
"path",
|
|
340
347
|
{
|
|
341
|
-
d: "M15
|
|
342
|
-
stroke:
|
|
343
|
-
strokeWidth
|
|
348
|
+
d: "M15 6H21",
|
|
349
|
+
stroke: color,
|
|
350
|
+
strokeWidth,
|
|
344
351
|
strokeLinecap: "round",
|
|
345
352
|
strokeLinejoin: "round"
|
|
346
353
|
}
|
|
@@ -348,9 +355,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
348
355
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
349
356
|
"path",
|
|
350
357
|
{
|
|
351
|
-
d: "
|
|
352
|
-
stroke:
|
|
353
|
-
strokeWidth
|
|
358
|
+
d: "M18 9V3",
|
|
359
|
+
stroke: color,
|
|
360
|
+
strokeWidth,
|
|
354
361
|
strokeLinecap: "round",
|
|
355
362
|
strokeLinejoin: "round"
|
|
356
363
|
}
|
|
@@ -358,111 +365,413 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
358
365
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
359
366
|
"path",
|
|
360
367
|
{
|
|
361
|
-
d: "
|
|
362
|
-
stroke:
|
|
363
|
-
strokeWidth
|
|
368
|
+
d: "M7 12H15",
|
|
369
|
+
stroke: color,
|
|
370
|
+
strokeWidth,
|
|
364
371
|
strokeLinecap: "round",
|
|
365
372
|
strokeLinejoin: "round"
|
|
366
373
|
}
|
|
374
|
+
)
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
);
|
|
378
|
+
var filters_default = FiltersIcon;
|
|
379
|
+
var InformationIcon = ({
|
|
380
|
+
size = 16,
|
|
381
|
+
color = "currentColor",
|
|
382
|
+
className,
|
|
383
|
+
...props
|
|
384
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
385
|
+
"svg",
|
|
386
|
+
{
|
|
387
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
388
|
+
viewBox: "0 0 34 34",
|
|
389
|
+
width: size,
|
|
390
|
+
height: size,
|
|
391
|
+
className,
|
|
392
|
+
fill: color,
|
|
393
|
+
...props,
|
|
394
|
+
children: [
|
|
395
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_789_42722)", children: [
|
|
396
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
397
|
+
"path",
|
|
398
|
+
{
|
|
399
|
+
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",
|
|
400
|
+
fill: color
|
|
401
|
+
}
|
|
402
|
+
),
|
|
403
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
404
|
+
"path",
|
|
405
|
+
{
|
|
406
|
+
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",
|
|
407
|
+
fill: color
|
|
408
|
+
}
|
|
409
|
+
)
|
|
410
|
+
] }),
|
|
411
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_789_42722", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "33", height: "33", fill: "white", transform: "translate(0.21582 0.488281)" }) }) })
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
);
|
|
415
|
+
var information_default = InformationIcon;
|
|
416
|
+
var NotFoundIcon = ({
|
|
417
|
+
width = 24,
|
|
418
|
+
height = 24,
|
|
419
|
+
fill = "currentColor",
|
|
420
|
+
className = "",
|
|
421
|
+
...props
|
|
422
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
423
|
+
"svg",
|
|
424
|
+
{
|
|
425
|
+
viewBox: "0 0 106 100",
|
|
426
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
427
|
+
width,
|
|
428
|
+
height,
|
|
429
|
+
fill,
|
|
430
|
+
className,
|
|
431
|
+
...props,
|
|
432
|
+
children: [
|
|
433
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
434
|
+
"path",
|
|
435
|
+
{
|
|
436
|
+
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",
|
|
437
|
+
fill: "#B0DFAA"
|
|
438
|
+
}
|
|
367
439
|
),
|
|
368
440
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
369
441
|
"path",
|
|
370
442
|
{
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
strokeLinejoin: "round"
|
|
443
|
+
fillRule: "evenodd",
|
|
444
|
+
clipRule: "evenodd",
|
|
445
|
+
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",
|
|
446
|
+
fill: "#CEE5D6"
|
|
376
447
|
}
|
|
377
448
|
),
|
|
378
449
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
379
450
|
"path",
|
|
380
451
|
{
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
strokeLinejoin: "round"
|
|
452
|
+
fillRule: "evenodd",
|
|
453
|
+
clipRule: "evenodd",
|
|
454
|
+
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",
|
|
455
|
+
fill: "#F9F9F9"
|
|
386
456
|
}
|
|
387
457
|
),
|
|
388
458
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
389
459
|
"path",
|
|
390
460
|
{
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
strokeLinejoin: "round"
|
|
461
|
+
fillRule: "evenodd",
|
|
462
|
+
clipRule: "evenodd",
|
|
463
|
+
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",
|
|
464
|
+
fill: "#DDEEE3"
|
|
396
465
|
}
|
|
397
466
|
),
|
|
398
467
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
399
468
|
"path",
|
|
400
469
|
{
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
strokeLinejoin: "round"
|
|
470
|
+
fillRule: "evenodd",
|
|
471
|
+
clipRule: "evenodd",
|
|
472
|
+
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",
|
|
473
|
+
fill: "#DDEEE3"
|
|
406
474
|
}
|
|
407
475
|
),
|
|
408
476
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
409
477
|
"path",
|
|
410
478
|
{
|
|
411
|
-
d: "
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
479
|
+
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",
|
|
480
|
+
fill: "white"
|
|
481
|
+
}
|
|
482
|
+
),
|
|
483
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
484
|
+
"path",
|
|
485
|
+
{
|
|
486
|
+
fillRule: "evenodd",
|
|
487
|
+
clipRule: "evenodd",
|
|
488
|
+
d: "M86.5479 13.9459H82.7992L84.7058 10.7051L86.5479 13.9459ZM88.8906 10.7051H92.1702V13.9459H88.8906V10.7051Z",
|
|
489
|
+
fill: "white"
|
|
416
490
|
}
|
|
417
491
|
)
|
|
418
492
|
]
|
|
419
493
|
}
|
|
420
494
|
);
|
|
421
|
-
var
|
|
422
|
-
var
|
|
495
|
+
var not_found_default = NotFoundIcon;
|
|
496
|
+
var PlusIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
423
497
|
"svg",
|
|
424
498
|
{
|
|
425
499
|
xmlns: "http://www.w3.org/2000/svg",
|
|
426
|
-
|
|
427
|
-
|
|
500
|
+
viewBox: "0 0 9 9",
|
|
501
|
+
width: size,
|
|
502
|
+
height: size,
|
|
503
|
+
className,
|
|
504
|
+
fill: color,
|
|
505
|
+
...props,
|
|
506
|
+
children: [
|
|
507
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
508
|
+
"path",
|
|
509
|
+
{
|
|
510
|
+
d: "M3.12305 8.23047L3.12305 0.653882L5.87652 0.653882L5.87652 8.23047L3.12305 8.23047Z",
|
|
511
|
+
fill: color
|
|
512
|
+
}
|
|
513
|
+
),
|
|
514
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
515
|
+
"path",
|
|
516
|
+
{
|
|
517
|
+
d: "M3.12305 8.23047L3.12305 0.653882L5.87652 0.653882L5.87652 8.23047L3.12305 8.23047Z",
|
|
518
|
+
fill: color
|
|
519
|
+
}
|
|
520
|
+
),
|
|
521
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
522
|
+
"path",
|
|
523
|
+
{
|
|
524
|
+
d: "M0.710938 3.06641L8.28752 3.06641V5.81988L0.710937 5.81988L0.710938 3.06641Z",
|
|
525
|
+
fill: color
|
|
526
|
+
}
|
|
527
|
+
),
|
|
528
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
529
|
+
"path",
|
|
530
|
+
{
|
|
531
|
+
d: "M0.710938 3.06641L8.28752 3.06641V5.81988L0.710937 5.81988L0.710938 3.06641Z",
|
|
532
|
+
fill: color
|
|
533
|
+
}
|
|
534
|
+
)
|
|
535
|
+
]
|
|
536
|
+
}
|
|
537
|
+
);
|
|
538
|
+
var plus_default = PlusIcon;
|
|
539
|
+
var CustomFieldIcon = ({
|
|
540
|
+
size = 16,
|
|
541
|
+
color = "currentColor",
|
|
542
|
+
className,
|
|
543
|
+
...props
|
|
544
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
545
|
+
"svg",
|
|
546
|
+
{
|
|
547
|
+
width: size,
|
|
548
|
+
height: size,
|
|
549
|
+
viewBox: "0 0 30 30",
|
|
428
550
|
fill: "none",
|
|
429
|
-
|
|
551
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
552
|
+
className,
|
|
430
553
|
...props,
|
|
431
554
|
children: [
|
|
432
|
-
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#
|
|
555
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_14170_63977)", children: [
|
|
433
556
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
434
557
|
"path",
|
|
435
558
|
{
|
|
436
|
-
|
|
437
|
-
|
|
559
|
+
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",
|
|
560
|
+
fill: color
|
|
438
561
|
}
|
|
439
562
|
),
|
|
440
563
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
441
564
|
"path",
|
|
442
565
|
{
|
|
443
|
-
|
|
444
|
-
|
|
566
|
+
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",
|
|
567
|
+
fill: color
|
|
568
|
+
}
|
|
569
|
+
),
|
|
570
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
571
|
+
"path",
|
|
572
|
+
{
|
|
573
|
+
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",
|
|
574
|
+
fill: color
|
|
575
|
+
}
|
|
576
|
+
),
|
|
577
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16.1816 24.6089H25.8315L21.0055 17.623L16.1816 24.6089Z", fill: color }),
|
|
578
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
579
|
+
"path",
|
|
580
|
+
{
|
|
581
|
+
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",
|
|
582
|
+
fill: color
|
|
445
583
|
}
|
|
446
584
|
)
|
|
447
585
|
] }),
|
|
448
|
-
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "
|
|
586
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_14170_63977", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "30", height: "30", fill: "white" }) }) })
|
|
449
587
|
]
|
|
450
588
|
}
|
|
451
589
|
);
|
|
452
|
-
var
|
|
453
|
-
var
|
|
590
|
+
var custom_field_default = CustomFieldIcon;
|
|
591
|
+
var SuiCalendarIcon = ({
|
|
592
|
+
size = "1em",
|
|
593
|
+
width,
|
|
594
|
+
height,
|
|
595
|
+
color = "currentColor",
|
|
596
|
+
fill = "none",
|
|
597
|
+
...props
|
|
598
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
454
599
|
"svg",
|
|
455
600
|
{
|
|
456
601
|
xmlns: "http://www.w3.org/2000/svg",
|
|
457
|
-
width: "1em",
|
|
458
|
-
height: "1em",
|
|
459
|
-
fill: "none",
|
|
460
602
|
viewBox: "0 0 25 25",
|
|
603
|
+
width: width ?? size,
|
|
604
|
+
height: height ?? size,
|
|
605
|
+
fill,
|
|
461
606
|
...props,
|
|
462
|
-
children:
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
607
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
608
|
+
"path",
|
|
609
|
+
{
|
|
610
|
+
fill: color,
|
|
611
|
+
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"
|
|
612
|
+
}
|
|
613
|
+
)
|
|
614
|
+
}
|
|
615
|
+
);
|
|
616
|
+
var calendar_default = SuiCalendarIcon;
|
|
617
|
+
var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
618
|
+
"svg",
|
|
619
|
+
{
|
|
620
|
+
width: "20",
|
|
621
|
+
height: "20",
|
|
622
|
+
viewBox: "0 0 20 20",
|
|
623
|
+
fill: "none",
|
|
624
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
625
|
+
...props,
|
|
626
|
+
children: [
|
|
627
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
628
|
+
"path",
|
|
629
|
+
{
|
|
630
|
+
d: "M6.66666 1.66675V5.00008",
|
|
631
|
+
stroke: "currentColor",
|
|
632
|
+
strokeWidth: "1.5",
|
|
633
|
+
strokeLinecap: "round",
|
|
634
|
+
strokeLinejoin: "round"
|
|
635
|
+
}
|
|
636
|
+
),
|
|
637
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
638
|
+
"path",
|
|
639
|
+
{
|
|
640
|
+
d: "M13.3333 1.66675V5.00008",
|
|
641
|
+
stroke: "currentColor",
|
|
642
|
+
strokeWidth: "1.5",
|
|
643
|
+
strokeLinecap: "round",
|
|
644
|
+
strokeLinejoin: "round"
|
|
645
|
+
}
|
|
646
|
+
),
|
|
647
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
648
|
+
"path",
|
|
649
|
+
{
|
|
650
|
+
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",
|
|
651
|
+
stroke: "currentColor",
|
|
652
|
+
strokeWidth: "1.5",
|
|
653
|
+
strokeLinecap: "round",
|
|
654
|
+
strokeLinejoin: "round"
|
|
655
|
+
}
|
|
656
|
+
),
|
|
657
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
658
|
+
"path",
|
|
659
|
+
{
|
|
660
|
+
d: "M2.5 8.33325H17.5",
|
|
661
|
+
stroke: "currentColor",
|
|
662
|
+
strokeWidth: "1.5",
|
|
663
|
+
strokeLinecap: "round",
|
|
664
|
+
strokeLinejoin: "round"
|
|
665
|
+
}
|
|
666
|
+
),
|
|
667
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
668
|
+
"path",
|
|
669
|
+
{
|
|
670
|
+
d: "M6.66666 11.6667H6.67499",
|
|
671
|
+
stroke: "currentColor",
|
|
672
|
+
strokeWidth: "1.5",
|
|
673
|
+
strokeLinecap: "round",
|
|
674
|
+
strokeLinejoin: "round"
|
|
675
|
+
}
|
|
676
|
+
),
|
|
677
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
678
|
+
"path",
|
|
679
|
+
{
|
|
680
|
+
d: "M10 11.6667H10.0083",
|
|
681
|
+
stroke: "currentColor",
|
|
682
|
+
strokeWidth: "1.5",
|
|
683
|
+
strokeLinecap: "round",
|
|
684
|
+
strokeLinejoin: "round"
|
|
685
|
+
}
|
|
686
|
+
),
|
|
687
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
688
|
+
"path",
|
|
689
|
+
{
|
|
690
|
+
d: "M13.3333 11.6667H13.3417",
|
|
691
|
+
stroke: "currentColor",
|
|
692
|
+
strokeWidth: "1.5",
|
|
693
|
+
strokeLinecap: "round",
|
|
694
|
+
strokeLinejoin: "round"
|
|
695
|
+
}
|
|
696
|
+
),
|
|
697
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
698
|
+
"path",
|
|
699
|
+
{
|
|
700
|
+
d: "M6.66666 15H6.67499",
|
|
701
|
+
stroke: "currentColor",
|
|
702
|
+
strokeWidth: "1.5",
|
|
703
|
+
strokeLinecap: "round",
|
|
704
|
+
strokeLinejoin: "round"
|
|
705
|
+
}
|
|
706
|
+
),
|
|
707
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
708
|
+
"path",
|
|
709
|
+
{
|
|
710
|
+
d: "M10 15H10.0083",
|
|
711
|
+
stroke: "currentColor",
|
|
712
|
+
strokeWidth: "1.5",
|
|
713
|
+
strokeLinecap: "round",
|
|
714
|
+
strokeLinejoin: "round"
|
|
715
|
+
}
|
|
716
|
+
),
|
|
717
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
718
|
+
"path",
|
|
719
|
+
{
|
|
720
|
+
d: "M13.3333 15H13.3417",
|
|
721
|
+
stroke: "currentColor",
|
|
722
|
+
strokeWidth: "1.5",
|
|
723
|
+
strokeLinecap: "round",
|
|
724
|
+
strokeLinejoin: "round"
|
|
725
|
+
}
|
|
726
|
+
)
|
|
727
|
+
]
|
|
728
|
+
}
|
|
729
|
+
);
|
|
730
|
+
var calendar2_default = SuiCalendarIcon2;
|
|
731
|
+
var SuiCheckIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
732
|
+
"svg",
|
|
733
|
+
{
|
|
734
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
735
|
+
width: "1em",
|
|
736
|
+
height: "1em",
|
|
737
|
+
fill: "none",
|
|
738
|
+
viewBox: "0 0 24 24",
|
|
739
|
+
...props,
|
|
740
|
+
children: [
|
|
741
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#check_svg__a)", children: [
|
|
742
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
743
|
+
"path",
|
|
744
|
+
{
|
|
745
|
+
fill: "currentColor",
|
|
746
|
+
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"
|
|
747
|
+
}
|
|
748
|
+
),
|
|
749
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
750
|
+
"path",
|
|
751
|
+
{
|
|
752
|
+
fill: "#fff",
|
|
753
|
+
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"
|
|
754
|
+
}
|
|
755
|
+
)
|
|
756
|
+
] }),
|
|
757
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "check_svg__a", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
758
|
+
]
|
|
759
|
+
}
|
|
760
|
+
);
|
|
761
|
+
var check_default = SuiCheckIcon;
|
|
762
|
+
var SuiDotsVerticalIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
763
|
+
"svg",
|
|
764
|
+
{
|
|
765
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
766
|
+
width: "1em",
|
|
767
|
+
height: "1em",
|
|
768
|
+
fill: "none",
|
|
769
|
+
viewBox: "0 0 25 25",
|
|
770
|
+
...props,
|
|
771
|
+
children: [
|
|
772
|
+
/* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: "url(#dots-vertical_svg__a)", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
773
|
+
"path",
|
|
774
|
+
{
|
|
466
775
|
fill: "currentColor",
|
|
467
776
|
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"
|
|
468
777
|
}
|
|
@@ -556,156 +865,48 @@ var SuiFilterIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
556
865
|
}
|
|
557
866
|
);
|
|
558
867
|
var filter_default = SuiFilterIcon;
|
|
559
|
-
var
|
|
560
|
-
size = 24,
|
|
561
|
-
color = "#379A2A",
|
|
562
|
-
strokeWidth = 1.5,
|
|
563
|
-
...props
|
|
564
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
868
|
+
var SuiSettingIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
565
869
|
"svg",
|
|
566
870
|
{
|
|
567
|
-
width: size,
|
|
568
|
-
height: size,
|
|
569
|
-
viewBox: "0 0 24 24",
|
|
570
|
-
fill: "none",
|
|
571
871
|
xmlns: "http://www.w3.org/2000/svg",
|
|
872
|
+
width: "1em",
|
|
873
|
+
height: "1em",
|
|
874
|
+
fill: "none",
|
|
875
|
+
viewBox: "0 0 24 24",
|
|
572
876
|
...props,
|
|
573
877
|
children: [
|
|
574
878
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
575
879
|
"path",
|
|
576
880
|
{
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
strokeWidth,
|
|
580
|
-
strokeLinecap: "round",
|
|
581
|
-
strokeLinejoin: "round"
|
|
582
|
-
}
|
|
583
|
-
),
|
|
584
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
585
|
-
"path",
|
|
586
|
-
{
|
|
587
|
-
d: "M11 6H3",
|
|
588
|
-
stroke: color,
|
|
589
|
-
strokeWidth,
|
|
590
|
-
strokeLinecap: "round",
|
|
591
|
-
strokeLinejoin: "round"
|
|
592
|
-
}
|
|
593
|
-
),
|
|
594
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
595
|
-
"path",
|
|
596
|
-
{
|
|
597
|
-
d: "M15 6H21",
|
|
598
|
-
stroke: color,
|
|
599
|
-
strokeWidth,
|
|
600
|
-
strokeLinecap: "round",
|
|
601
|
-
strokeLinejoin: "round"
|
|
602
|
-
}
|
|
603
|
-
),
|
|
604
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
605
|
-
"path",
|
|
606
|
-
{
|
|
607
|
-
d: "M18 9V3",
|
|
608
|
-
stroke: color,
|
|
609
|
-
strokeWidth,
|
|
610
|
-
strokeLinecap: "round",
|
|
611
|
-
strokeLinejoin: "round"
|
|
881
|
+
fill: "currentColor",
|
|
882
|
+
d: "M16.406 3.26c.052.055 1.256.701 1.331.714.42.067 1.478-.527 2.084-.543.446-.01 1.138.21 1.517.45.454.284 2.42 3.361 2.558 3.907.418 1.629-.495 2.56-1.73 3.405l-.041 1.45c.033.29 1.67 1.242 1.828 2.253.137.86-.036 1.259-.39 1.983-.396.814-1.743 3.053-2.499 3.402-1.53.709-1.898-.129-3.113-.24-.209-.018-1.517.651-1.591.77-.604.952-.065 2.5-1.857 3.028-.658.194-4.207.217-4.888.044-.408-.103-1.001-.517-1.239-.869-.397-.59-.523-2.011-.76-2.262-.044-.047-1.03-.587-1.135-.63-.594-.241-1.633.477-2.412.46-.462-.011-1.187-.283-1.553-.567S.236 16.682.12 16.227c-.384-1.5.199-2.004 1.125-2.958.157-.163.492-.297.567-.419.1-.165.129-1.378.075-1.585-.05-.188-1.661-1.127-1.821-2.146a4.4 4.4 0 0 1 0-1.106c.064-.396 1.772-3.268 2.1-3.662 1.103-1.316 2.62-.889 4.01-.364l1.375-.68C8.103 1.929 8.103.29 9.965.062c.805-.098 3.836-.093 4.535.114.4.116.908.478 1.143.827.394.59.523 2.012.76 2.263zm-3.134-.243h-2.52c-.1.567-.19 1.386-.418 1.9-.36.813-1.217.924-1.932 1.304-.4.212-1.008.788-1.387.858-.934.179-1.845-.32-2.724-.545l-1.125 1.89c0 .134 1.685 1.169 1.808 1.975.083.546-.139 1.006-.144 1.534-.008.649.289 1.264.088 1.908-.181.579-1.752 1.623-1.752 1.748l1.125 1.89c.93-.24 1.95-.812 2.933-.476.28.096.827.605 1.178.791.818.434 1.576.458 1.966 1.41.108.263.369 1.791.459 1.806l2.443-.015c.1-.566.19-1.386.417-1.9.362-.812 1.218-.923 1.932-1.303.4-.213 1.009-.79 1.388-.859.934-.178 1.844.32 2.724.546l1.124-1.89c0-.135-1.684-1.17-1.808-1.976-.082-.545.14-1.006.145-1.533.008-.65-.29-1.264-.088-1.908.18-.58 1.751-1.624 1.751-1.748l-1.124-1.89c-.931.238-1.95.812-2.933.475-.273-.093-.596-.499-.892-.654-1.816-.94-2.471-.89-2.636-3.338z"
|
|
612
883
|
}
|
|
613
884
|
),
|
|
614
885
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
615
886
|
"path",
|
|
616
887
|
{
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
strokeWidth,
|
|
620
|
-
strokeLinecap: "round",
|
|
621
|
-
strokeLinejoin: "round"
|
|
888
|
+
fill: "currentColor",
|
|
889
|
+
d: "M11.705 8.245c5.107-.422 5.406 7.472.371 7.555-4.715.077-5.174-7.16-.371-7.555"
|
|
622
890
|
}
|
|
623
891
|
)
|
|
624
892
|
]
|
|
625
893
|
}
|
|
626
894
|
);
|
|
627
|
-
var
|
|
628
|
-
var
|
|
629
|
-
width = 24,
|
|
630
|
-
height = 24,
|
|
631
|
-
fill = "currentColor",
|
|
632
|
-
className = "",
|
|
633
|
-
...props
|
|
634
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
895
|
+
var setting_default = SuiSettingIcon;
|
|
896
|
+
var SuiTriangleDownIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
635
897
|
"svg",
|
|
636
898
|
{
|
|
637
|
-
viewBox: "0 0 106 100",
|
|
638
899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
639
|
-
width,
|
|
640
|
-
height,
|
|
641
|
-
fill,
|
|
642
|
-
|
|
900
|
+
width: "1em",
|
|
901
|
+
height: "1em",
|
|
902
|
+
fill: "none",
|
|
903
|
+
viewBox: "0 0 24 15",
|
|
643
904
|
...props,
|
|
644
|
-
children:
|
|
645
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
646
|
-
"path",
|
|
647
|
-
{
|
|
648
|
-
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",
|
|
649
|
-
fill: "#B0DFAA"
|
|
650
|
-
}
|
|
651
|
-
),
|
|
652
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
653
|
-
"path",
|
|
654
|
-
{
|
|
655
|
-
fillRule: "evenodd",
|
|
656
|
-
clipRule: "evenodd",
|
|
657
|
-
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",
|
|
658
|
-
fill: "#CEE5D6"
|
|
659
|
-
}
|
|
660
|
-
),
|
|
661
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
662
|
-
"path",
|
|
663
|
-
{
|
|
664
|
-
fillRule: "evenodd",
|
|
665
|
-
clipRule: "evenodd",
|
|
666
|
-
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",
|
|
667
|
-
fill: "#F9F9F9"
|
|
668
|
-
}
|
|
669
|
-
),
|
|
670
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
671
|
-
"path",
|
|
672
|
-
{
|
|
673
|
-
fillRule: "evenodd",
|
|
674
|
-
clipRule: "evenodd",
|
|
675
|
-
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",
|
|
676
|
-
fill: "#DDEEE3"
|
|
677
|
-
}
|
|
678
|
-
),
|
|
679
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
680
|
-
"path",
|
|
681
|
-
{
|
|
682
|
-
fillRule: "evenodd",
|
|
683
|
-
clipRule: "evenodd",
|
|
684
|
-
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",
|
|
685
|
-
fill: "#DDEEE3"
|
|
686
|
-
}
|
|
687
|
-
),
|
|
688
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
689
|
-
"path",
|
|
690
|
-
{
|
|
691
|
-
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",
|
|
692
|
-
fill: "white"
|
|
693
|
-
}
|
|
694
|
-
),
|
|
695
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
696
|
-
"path",
|
|
697
|
-
{
|
|
698
|
-
fillRule: "evenodd",
|
|
699
|
-
clipRule: "evenodd",
|
|
700
|
-
d: "M86.5479 13.9459H82.7992L84.7058 10.7051L86.5479 13.9459ZM88.8906 10.7051H92.1702V13.9459H88.8906V10.7051Z",
|
|
701
|
-
fill: "white"
|
|
702
|
-
}
|
|
703
|
-
)
|
|
704
|
-
]
|
|
905
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "m0 0 11.994 15L24 0z" })
|
|
705
906
|
}
|
|
706
907
|
);
|
|
707
|
-
var
|
|
708
|
-
var
|
|
908
|
+
var triangle_down_default = SuiTriangleDownIcon;
|
|
909
|
+
var SuiWarningIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
709
910
|
"svg",
|
|
710
911
|
{
|
|
711
912
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -715,110 +916,215 @@ var SuiSettingIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
|
715
916
|
viewBox: "0 0 24 24",
|
|
716
917
|
...props,
|
|
717
918
|
children: [
|
|
718
|
-
/* @__PURE__ */ jsxRuntime.
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
919
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#warning_svg__a)", children: [
|
|
920
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
921
|
+
"path",
|
|
922
|
+
{
|
|
923
|
+
fill: "currentColor",
|
|
924
|
+
d: "M10.603.061c8.692-.837 15.37 7.07 12.864 15.498-2.772 9.323-15.222 11.462-21.079 3.694C-3.134 11.93 1.465.942 10.603.061m2.858 15.103.734-9.092c.287-3.574-4.695-3.575-4.408 0l.734 9.092h2.941m-1.92 1.916c-1.858.384-1.743 3.333.079 3.55 3.047.364 2.714-4.13-.079-3.55"
|
|
925
|
+
}
|
|
926
|
+
),
|
|
927
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
928
|
+
"path",
|
|
929
|
+
{
|
|
930
|
+
fill: "#fff",
|
|
931
|
+
d: "M13.46 15.163h-2.94l-.735-9.091c-.285-3.576 4.695-3.575 4.409 0zM11.54 17.079c2.794-.58 3.127 3.915.08 3.551-1.822-.217-1.938-3.166-.08-3.551"
|
|
932
|
+
}
|
|
933
|
+
)
|
|
934
|
+
] }),
|
|
935
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "warning_svg__a", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
732
936
|
]
|
|
733
937
|
}
|
|
734
938
|
);
|
|
735
|
-
var
|
|
736
|
-
var
|
|
939
|
+
var warning_default = SuiWarningIcon;
|
|
940
|
+
var TrashIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
737
941
|
"svg",
|
|
738
942
|
{
|
|
943
|
+
viewBox: "0 0 17 15",
|
|
739
944
|
xmlns: "http://www.w3.org/2000/svg",
|
|
740
|
-
width:
|
|
741
|
-
height:
|
|
945
|
+
width: size,
|
|
946
|
+
height: size,
|
|
742
947
|
fill: "none",
|
|
743
|
-
|
|
948
|
+
className,
|
|
744
949
|
...props,
|
|
745
|
-
children:
|
|
950
|
+
children: [
|
|
951
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_336_302483)", children: [
|
|
952
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
953
|
+
"path",
|
|
954
|
+
{
|
|
955
|
+
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",
|
|
956
|
+
fill: color
|
|
957
|
+
}
|
|
958
|
+
),
|
|
959
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
960
|
+
"path",
|
|
961
|
+
{
|
|
962
|
+
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",
|
|
963
|
+
fill: color
|
|
964
|
+
}
|
|
965
|
+
),
|
|
966
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
967
|
+
"path",
|
|
968
|
+
{
|
|
969
|
+
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",
|
|
970
|
+
fill: color
|
|
971
|
+
}
|
|
972
|
+
),
|
|
973
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
974
|
+
"path",
|
|
975
|
+
{
|
|
976
|
+
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",
|
|
977
|
+
fill: color
|
|
978
|
+
}
|
|
979
|
+
)
|
|
980
|
+
] }),
|
|
981
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_3678_200811", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "17", height: "15", fill: "white", transform: "translate(0.728516 0.726562)" }) }) })
|
|
982
|
+
]
|
|
746
983
|
}
|
|
747
984
|
);
|
|
748
|
-
var
|
|
749
|
-
var
|
|
985
|
+
var trash_default = TrashIcon;
|
|
986
|
+
var RoleIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
987
|
+
"svg",
|
|
988
|
+
{
|
|
989
|
+
viewBox: "0 0 30 31",
|
|
990
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
991
|
+
width: size,
|
|
992
|
+
height: size,
|
|
993
|
+
className,
|
|
994
|
+
fill: color,
|
|
995
|
+
...props,
|
|
996
|
+
children: [
|
|
997
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_8249_21508)", children: [
|
|
998
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
999
|
+
"path",
|
|
1000
|
+
{
|
|
1001
|
+
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",
|
|
1002
|
+
fill: color
|
|
1003
|
+
}
|
|
1004
|
+
),
|
|
1005
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1006
|
+
"path",
|
|
1007
|
+
{
|
|
1008
|
+
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",
|
|
1009
|
+
fill: color
|
|
1010
|
+
}
|
|
1011
|
+
),
|
|
1012
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1013
|
+
"path",
|
|
1014
|
+
{
|
|
1015
|
+
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",
|
|
1016
|
+
fill: color
|
|
1017
|
+
}
|
|
1018
|
+
),
|
|
1019
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1020
|
+
"path",
|
|
1021
|
+
{
|
|
1022
|
+
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",
|
|
1023
|
+
fill: color
|
|
1024
|
+
}
|
|
1025
|
+
),
|
|
1026
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1027
|
+
"path",
|
|
1028
|
+
{
|
|
1029
|
+
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",
|
|
1030
|
+
fill: color
|
|
1031
|
+
}
|
|
1032
|
+
),
|
|
1033
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1034
|
+
"path",
|
|
1035
|
+
{
|
|
1036
|
+
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",
|
|
1037
|
+
fill: color
|
|
1038
|
+
}
|
|
1039
|
+
)
|
|
1040
|
+
] }),
|
|
1041
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_8249_21508", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "30", height: "30", fill: color, transform: "translate(0 0.136719)" }) }) })
|
|
1042
|
+
]
|
|
1043
|
+
}
|
|
1044
|
+
);
|
|
1045
|
+
var role_default = RoleIcon;
|
|
1046
|
+
var UserIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
750
1047
|
"svg",
|
|
751
1048
|
{
|
|
1049
|
+
viewBox: "0 0 31 31",
|
|
752
1050
|
xmlns: "http://www.w3.org/2000/svg",
|
|
753
|
-
width:
|
|
754
|
-
height:
|
|
755
|
-
|
|
756
|
-
|
|
1051
|
+
width: size,
|
|
1052
|
+
height: size,
|
|
1053
|
+
className,
|
|
1054
|
+
fill: color,
|
|
757
1055
|
...props,
|
|
758
1056
|
children: [
|
|
759
|
-
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#
|
|
1057
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_6640_79285)", children: [
|
|
760
1058
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
761
1059
|
"path",
|
|
762
1060
|
{
|
|
763
|
-
|
|
764
|
-
|
|
1061
|
+
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",
|
|
1062
|
+
fill: color
|
|
765
1063
|
}
|
|
766
1064
|
),
|
|
767
1065
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
768
1066
|
"path",
|
|
769
1067
|
{
|
|
770
|
-
|
|
771
|
-
|
|
1068
|
+
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",
|
|
1069
|
+
fill: color
|
|
772
1070
|
}
|
|
773
1071
|
)
|
|
774
1072
|
] }),
|
|
775
|
-
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "
|
|
1073
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_6640_79285", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "30", height: "30", fill: color, transform: "translate(0.5 0.832031)" }) }) })
|
|
776
1074
|
]
|
|
777
1075
|
}
|
|
778
1076
|
);
|
|
779
|
-
var
|
|
780
|
-
var
|
|
781
|
-
size = 16,
|
|
782
|
-
color = "currentColor",
|
|
783
|
-
className,
|
|
784
|
-
...props
|
|
785
|
-
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1077
|
+
var user_default = UserIcon;
|
|
1078
|
+
var PlusIcon2 = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
786
1079
|
"svg",
|
|
787
1080
|
{
|
|
788
1081
|
viewBox: "0 0 17 15",
|
|
789
1082
|
xmlns: "http://www.w3.org/2000/svg",
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
className,
|
|
1083
|
+
className: `${className} w-[${size}px] h-[${size}px]`,
|
|
1084
|
+
fill: color,
|
|
1085
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
794
1086
|
...props,
|
|
795
1087
|
children: [
|
|
796
|
-
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#
|
|
1088
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_3678_200811)", children: [
|
|
797
1089
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
798
1090
|
"path",
|
|
799
1091
|
{
|
|
800
|
-
d: "
|
|
1092
|
+
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",
|
|
801
1093
|
fill: color
|
|
802
1094
|
}
|
|
803
1095
|
),
|
|
804
1096
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
805
1097
|
"path",
|
|
806
1098
|
{
|
|
807
|
-
d: "
|
|
1099
|
+
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",
|
|
808
1100
|
fill: color
|
|
809
1101
|
}
|
|
810
1102
|
),
|
|
811
1103
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
812
1104
|
"path",
|
|
813
1105
|
{
|
|
814
|
-
d: "
|
|
1106
|
+
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",
|
|
815
1107
|
fill: color
|
|
816
1108
|
}
|
|
817
1109
|
),
|
|
818
1110
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
819
1111
|
"path",
|
|
820
1112
|
{
|
|
821
|
-
d: "
|
|
1113
|
+
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",
|
|
1114
|
+
fill: color
|
|
1115
|
+
}
|
|
1116
|
+
),
|
|
1117
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1118
|
+
"path",
|
|
1119
|
+
{
|
|
1120
|
+
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",
|
|
1121
|
+
fill: color
|
|
1122
|
+
}
|
|
1123
|
+
),
|
|
1124
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1125
|
+
"path",
|
|
1126
|
+
{
|
|
1127
|
+
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",
|
|
822
1128
|
fill: color
|
|
823
1129
|
}
|
|
824
1130
|
)
|
|
@@ -827,7 +1133,39 @@ var TrashIcon = ({
|
|
|
827
1133
|
]
|
|
828
1134
|
}
|
|
829
1135
|
);
|
|
830
|
-
var
|
|
1136
|
+
var user_friend_default = PlusIcon2;
|
|
1137
|
+
var PlusIcon3 = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1138
|
+
"svg",
|
|
1139
|
+
{
|
|
1140
|
+
viewBox: "0 0 16 18",
|
|
1141
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1142
|
+
width: size,
|
|
1143
|
+
height: size,
|
|
1144
|
+
className,
|
|
1145
|
+
fill: color,
|
|
1146
|
+
...props,
|
|
1147
|
+
children: [
|
|
1148
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_2001_145027)", children: [
|
|
1149
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1150
|
+
"path",
|
|
1151
|
+
{
|
|
1152
|
+
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",
|
|
1153
|
+
fill: color
|
|
1154
|
+
}
|
|
1155
|
+
),
|
|
1156
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1157
|
+
"path",
|
|
1158
|
+
{
|
|
1159
|
+
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",
|
|
1160
|
+
fill: color
|
|
1161
|
+
}
|
|
1162
|
+
)
|
|
1163
|
+
] }),
|
|
1164
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_2001_145027", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "15.87", height: "17.25", fill: "white", transform: "translate(0.0649414 0.375)" }) }) })
|
|
1165
|
+
]
|
|
1166
|
+
}
|
|
1167
|
+
);
|
|
1168
|
+
var user_alone_default = PlusIcon3;
|
|
831
1169
|
var AuditFooter = ({
|
|
832
1170
|
createdAt,
|
|
833
1171
|
createdBy,
|
|
@@ -934,7 +1272,7 @@ function AccordionContent({
|
|
|
934
1272
|
);
|
|
935
1273
|
}
|
|
936
1274
|
var ExpandCollapse = ({ title, children, portalId }) => {
|
|
937
|
-
const [isOpen, setIsOpen] =
|
|
1275
|
+
const [isOpen, setIsOpen] = React25.useState(false);
|
|
938
1276
|
const Panel = /* @__PURE__ */ jsxRuntime.jsx(
|
|
939
1277
|
"div",
|
|
940
1278
|
{
|
|
@@ -1044,31 +1382,31 @@ function makeNewRow(field) {
|
|
|
1044
1382
|
};
|
|
1045
1383
|
}
|
|
1046
1384
|
function useAdvanceSearch({ fields, limitRows }) {
|
|
1047
|
-
const [rows, setRows] =
|
|
1048
|
-
const updateRows =
|
|
1385
|
+
const [rows, setRows] = React25.useState([makeNewRow(fields[0])]);
|
|
1386
|
+
const updateRows = React25.useCallback((next) => {
|
|
1049
1387
|
setRows(next);
|
|
1050
1388
|
}, []);
|
|
1051
|
-
const operatorsForField =
|
|
1389
|
+
const operatorsForField = React25.useCallback(
|
|
1052
1390
|
(fieldName) => {
|
|
1053
1391
|
const t = getFieldType(fields, fieldName);
|
|
1054
1392
|
return OPERATOR_MAP[t];
|
|
1055
1393
|
},
|
|
1056
1394
|
[fields]
|
|
1057
1395
|
);
|
|
1058
|
-
const addRow =
|
|
1396
|
+
const addRow = React25.useCallback(() => {
|
|
1059
1397
|
if (limitRows && rows.length >= limitRows) return;
|
|
1060
1398
|
const lastRow = rows[rows.length - 1];
|
|
1061
1399
|
const lastField = fields.find((f) => f.name === lastRow?.fieldName) ?? fields[0];
|
|
1062
1400
|
updateRows([...rows, makeNewRow(lastField)]);
|
|
1063
1401
|
}, [rows, fields, updateRows, limitRows]);
|
|
1064
|
-
const removeRow =
|
|
1402
|
+
const removeRow = React25.useCallback(
|
|
1065
1403
|
(id) => {
|
|
1066
1404
|
if (rows.length === 1) return;
|
|
1067
1405
|
updateRows(rows.filter((r) => r.id !== id));
|
|
1068
1406
|
},
|
|
1069
1407
|
[rows, updateRows]
|
|
1070
1408
|
);
|
|
1071
|
-
const clearRow =
|
|
1409
|
+
const clearRow = React25.useCallback(
|
|
1072
1410
|
(id) => {
|
|
1073
1411
|
updateRows(
|
|
1074
1412
|
rows.map((r) => {
|
|
@@ -1101,10 +1439,10 @@ function useAdvanceSearch({ fields, limitRows }) {
|
|
|
1101
1439
|
},
|
|
1102
1440
|
[rows, fields, updateRows]
|
|
1103
1441
|
);
|
|
1104
|
-
const clearAllRow =
|
|
1442
|
+
const clearAllRow = React25.useCallback(() => {
|
|
1105
1443
|
updateRows([makeNewRow(fields[0])]);
|
|
1106
1444
|
}, [fields, updateRows]);
|
|
1107
|
-
const changeField =
|
|
1445
|
+
const changeField = React25.useCallback(
|
|
1108
1446
|
(id, fieldName) => {
|
|
1109
1447
|
updateRows(
|
|
1110
1448
|
rows.map((r) => {
|
|
@@ -1116,7 +1454,7 @@ function useAdvanceSearch({ fields, limitRows }) {
|
|
|
1116
1454
|
},
|
|
1117
1455
|
[rows, fields, updateRows]
|
|
1118
1456
|
);
|
|
1119
|
-
const changeOperator =
|
|
1457
|
+
const changeOperator = React25.useCallback(
|
|
1120
1458
|
(id, operator) => {
|
|
1121
1459
|
updateRows(
|
|
1122
1460
|
rows.map((r) => {
|
|
@@ -1150,7 +1488,7 @@ function useAdvanceSearch({ fields, limitRows }) {
|
|
|
1150
1488
|
},
|
|
1151
1489
|
[rows, updateRows]
|
|
1152
1490
|
);
|
|
1153
|
-
const changeValue =
|
|
1491
|
+
const changeValue = React25.useCallback(
|
|
1154
1492
|
(id, which, val) => {
|
|
1155
1493
|
updateRows(
|
|
1156
1494
|
rows.map((r) => {
|
|
@@ -1162,7 +1500,7 @@ function useAdvanceSearch({ fields, limitRows }) {
|
|
|
1162
1500
|
},
|
|
1163
1501
|
[rows, updateRows]
|
|
1164
1502
|
);
|
|
1165
|
-
const fieldOptions =
|
|
1503
|
+
const fieldOptions = React25.useMemo(
|
|
1166
1504
|
() => fields.map((f) => ({
|
|
1167
1505
|
value: f.name,
|
|
1168
1506
|
label: f.label ?? f.name
|
|
@@ -1357,7 +1695,7 @@ var OPERATOR_LABEL = {
|
|
|
1357
1695
|
containsAll: "Contains all of"
|
|
1358
1696
|
};
|
|
1359
1697
|
var OperatorSelect = ({ row, operators, onChangeOperator, error }) => {
|
|
1360
|
-
|
|
1698
|
+
React25__namespace.default.useEffect(() => {
|
|
1361
1699
|
if (!operators.length) return;
|
|
1362
1700
|
if (!operators.includes(row.operator)) {
|
|
1363
1701
|
onChangeOperator(operators[0]);
|
|
@@ -1393,15 +1731,15 @@ function Label2({ className, ...props }) {
|
|
|
1393
1731
|
);
|
|
1394
1732
|
}
|
|
1395
1733
|
var Form = reactHookForm.FormProvider;
|
|
1396
|
-
var FormFieldContext =
|
|
1734
|
+
var FormFieldContext = React25__namespace.createContext({});
|
|
1397
1735
|
var FormField = ({
|
|
1398
1736
|
...props
|
|
1399
1737
|
}) => {
|
|
1400
1738
|
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
|
|
1401
1739
|
};
|
|
1402
1740
|
var useFormField = () => {
|
|
1403
|
-
const fieldContext =
|
|
1404
|
-
const itemContext =
|
|
1741
|
+
const fieldContext = React25__namespace.useContext(FormFieldContext);
|
|
1742
|
+
const itemContext = React25__namespace.useContext(FormItemContext);
|
|
1405
1743
|
const { getFieldState } = reactHookForm.useFormContext();
|
|
1406
1744
|
const formState = reactHookForm.useFormState({ name: fieldContext.name });
|
|
1407
1745
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -1418,9 +1756,9 @@ var useFormField = () => {
|
|
|
1418
1756
|
...fieldState
|
|
1419
1757
|
};
|
|
1420
1758
|
};
|
|
1421
|
-
var FormItemContext =
|
|
1759
|
+
var FormItemContext = React25__namespace.createContext({});
|
|
1422
1760
|
function FormItem({ className, ...props }) {
|
|
1423
|
-
const id =
|
|
1761
|
+
const id = React25__namespace.useId();
|
|
1424
1762
|
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "form-item", className: cn("grid gap-2", className), ...props }) });
|
|
1425
1763
|
}
|
|
1426
1764
|
function FormLabel({ className, ...props }) {
|
|
@@ -1524,7 +1862,7 @@ var Spinner = ({ className, variant, size = "default", ...props }) => /* @__PURE
|
|
|
1524
1862
|
]
|
|
1525
1863
|
}
|
|
1526
1864
|
);
|
|
1527
|
-
var InputPrimitive =
|
|
1865
|
+
var InputPrimitive = React25__namespace.forwardRef(
|
|
1528
1866
|
({ className, type = "text", ...props }, ref) => {
|
|
1529
1867
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1530
1868
|
"input",
|
|
@@ -1563,7 +1901,7 @@ var inputVariants = classVarianceAuthority.cva("", {
|
|
|
1563
1901
|
appearance: "filled"
|
|
1564
1902
|
}
|
|
1565
1903
|
});
|
|
1566
|
-
var Input =
|
|
1904
|
+
var Input = React25__namespace.forwardRef(
|
|
1567
1905
|
({
|
|
1568
1906
|
className,
|
|
1569
1907
|
wrapperClassName,
|
|
@@ -1596,8 +1934,8 @@ var Input = React26__namespace.forwardRef(
|
|
|
1596
1934
|
onChange: onChangeProp
|
|
1597
1935
|
} = rest;
|
|
1598
1936
|
const ariaInvalid = invalid ?? ariaInvalidProp;
|
|
1599
|
-
const messageId =
|
|
1600
|
-
const handleChange =
|
|
1937
|
+
const messageId = React25__namespace.useId();
|
|
1938
|
+
const handleChange = React25__namespace.useCallback(
|
|
1601
1939
|
(event) => {
|
|
1602
1940
|
onChangeProp?.(event);
|
|
1603
1941
|
onValueChange?.(event.target.value);
|
|
@@ -1940,20 +2278,20 @@ function DatePicker({
|
|
|
1940
2278
|
className,
|
|
1941
2279
|
...props
|
|
1942
2280
|
}) {
|
|
1943
|
-
const today =
|
|
1944
|
-
const [displayed, setDisplayed] =
|
|
2281
|
+
const today = React25__namespace.useMemo(() => startOfDay(/* @__PURE__ */ new Date()), []);
|
|
2282
|
+
const [displayed, setDisplayed] = React25__namespace.useState(
|
|
1945
2283
|
selectedDate ? new Date(selectedDate) : /* @__PURE__ */ new Date()
|
|
1946
2284
|
);
|
|
1947
2285
|
minDate = clampToDay(minDate);
|
|
1948
2286
|
maxDate = clampToDay(maxDate);
|
|
1949
|
-
const disabledSet =
|
|
2287
|
+
const disabledSet = React25__namespace.useMemo(() => {
|
|
1950
2288
|
const s = /* @__PURE__ */ new Set();
|
|
1951
2289
|
disabledDates?.forEach((d) => s.add(startOfDay(d).toISOString()));
|
|
1952
2290
|
return s;
|
|
1953
2291
|
}, [disabledDates]);
|
|
1954
2292
|
const displayYear = displayed.getFullYear();
|
|
1955
2293
|
const displayMonth = displayed.getMonth();
|
|
1956
|
-
const weekdays =
|
|
2294
|
+
const weekdays = React25__namespace.useMemo(() => {
|
|
1957
2295
|
const labels = [];
|
|
1958
2296
|
for (let i = 0; i < 7; i++) {
|
|
1959
2297
|
const idx = i;
|
|
@@ -1962,7 +2300,7 @@ function DatePicker({
|
|
|
1962
2300
|
}
|
|
1963
2301
|
return labels;
|
|
1964
2302
|
}, [callbacks]);
|
|
1965
|
-
const grid =
|
|
2303
|
+
const grid = React25__namespace.useMemo(() => buildCalendarGrid(displayed, true), [displayed]);
|
|
1966
2304
|
const isDateDisabled = (date) => {
|
|
1967
2305
|
const d = startOfDay(date);
|
|
1968
2306
|
if (minDate && d < minDate) return true;
|
|
@@ -1972,7 +2310,7 @@ function DatePicker({
|
|
|
1972
2310
|
};
|
|
1973
2311
|
const minYear = minDate?.getFullYear();
|
|
1974
2312
|
const maxYear = maxDate?.getFullYear();
|
|
1975
|
-
const getMonthLabel =
|
|
2313
|
+
const getMonthLabel = React25__namespace.useCallback(
|
|
1976
2314
|
(year, monthIndex) => {
|
|
1977
2315
|
const label = callbacks?.monthLabel?.(year, monthIndex);
|
|
1978
2316
|
if (label === null || label === void 0) {
|
|
@@ -1982,7 +2320,7 @@ function DatePicker({
|
|
|
1982
2320
|
},
|
|
1983
2321
|
[callbacks]
|
|
1984
2322
|
);
|
|
1985
|
-
const getYearLabel =
|
|
2323
|
+
const getYearLabel = React25__namespace.useCallback(
|
|
1986
2324
|
(year) => {
|
|
1987
2325
|
const label = callbacks?.yearLabel?.(year);
|
|
1988
2326
|
if (label === null || label === void 0) return String(year);
|
|
@@ -1990,7 +2328,7 @@ function DatePicker({
|
|
|
1990
2328
|
},
|
|
1991
2329
|
[callbacks]
|
|
1992
2330
|
);
|
|
1993
|
-
const clampMonthToBounds =
|
|
2331
|
+
const clampMonthToBounds = React25__namespace.useCallback(
|
|
1994
2332
|
(year, monthIndex) => {
|
|
1995
2333
|
let output = monthIndex;
|
|
1996
2334
|
if (typeof minYear === "number" && year === minYear && minDate) {
|
|
@@ -2005,7 +2343,7 @@ function DatePicker({
|
|
|
2005
2343
|
},
|
|
2006
2344
|
[maxDate, minDate, maxYear, minYear]
|
|
2007
2345
|
);
|
|
2008
|
-
const yearOptions =
|
|
2346
|
+
const yearOptions = React25__namespace.useMemo(() => {
|
|
2009
2347
|
const fallbackWindow = 50;
|
|
2010
2348
|
const start = typeof minYear === "number" ? minYear : displayYear - fallbackWindow;
|
|
2011
2349
|
const end = typeof maxYear === "number" ? maxYear : displayYear + fallbackWindow;
|
|
@@ -2026,7 +2364,7 @@ function DatePicker({
|
|
|
2026
2364
|
}
|
|
2027
2365
|
return years;
|
|
2028
2366
|
}, [displayYear, maxYear, minYear, selectedDate]);
|
|
2029
|
-
const monthOptions =
|
|
2367
|
+
const monthOptions = React25__namespace.useMemo(() => {
|
|
2030
2368
|
const months = Array.from({ length: 12 }, (_, monthIndex) => {
|
|
2031
2369
|
const disabled = typeof minYear === "number" && displayYear === minYear && minDate && monthIndex < minDate.getMonth() || typeof maxYear === "number" && displayYear === maxYear && maxDate && monthIndex > maxDate.getMonth();
|
|
2032
2370
|
return {
|
|
@@ -2045,7 +2383,7 @@ function DatePicker({
|
|
|
2045
2383
|
}
|
|
2046
2384
|
return months.sort((a, b) => a.value - b.value).filter((option, index, arr) => index === 0 || option.value !== arr[index - 1].value);
|
|
2047
2385
|
}, [displayMonth, displayYear, getMonthLabel, maxDate, maxYear, minDate, minYear]);
|
|
2048
|
-
const handleMonthSelect =
|
|
2386
|
+
const handleMonthSelect = React25__namespace.useCallback((nextValue) => {
|
|
2049
2387
|
const nextMonth = Number.parseInt(nextValue, 10);
|
|
2050
2388
|
if (Number.isNaN(nextMonth)) return;
|
|
2051
2389
|
setDisplayed((prev) => {
|
|
@@ -2055,7 +2393,7 @@ function DatePicker({
|
|
|
2055
2393
|
return next;
|
|
2056
2394
|
});
|
|
2057
2395
|
}, []);
|
|
2058
|
-
const handleYearSelect =
|
|
2396
|
+
const handleYearSelect = React25__namespace.useCallback(
|
|
2059
2397
|
(nextValue) => {
|
|
2060
2398
|
const nextYear = Number.parseInt(nextValue, 10);
|
|
2061
2399
|
if (Number.isNaN(nextYear)) return;
|
|
@@ -2203,14 +2541,14 @@ var DatePicker2 = ({
|
|
|
2203
2541
|
ariaLabel,
|
|
2204
2542
|
...calendarProps
|
|
2205
2543
|
}) => {
|
|
2206
|
-
const [open, setOpen] =
|
|
2207
|
-
const parser =
|
|
2208
|
-
const outputFormatter =
|
|
2209
|
-
const labelFormatter =
|
|
2544
|
+
const [open, setOpen] = React25__namespace.default.useState(false);
|
|
2545
|
+
const parser = React25__namespace.default.useMemo(() => valueParser ?? defaultValueParser, [valueParser]);
|
|
2546
|
+
const outputFormatter = React25__namespace.default.useMemo(() => valueFormatter ?? defaultValueFormatter, [valueFormatter]);
|
|
2547
|
+
const labelFormatter = React25__namespace.default.useMemo(
|
|
2210
2548
|
() => displayFormatter ?? defaultDisplayFormatter,
|
|
2211
2549
|
[displayFormatter]
|
|
2212
2550
|
);
|
|
2213
|
-
const parsedValue =
|
|
2551
|
+
const parsedValue = React25__namespace.default.useMemo(() => {
|
|
2214
2552
|
if (value === null || value === void 0) return void 0;
|
|
2215
2553
|
if (value instanceof Date) return value;
|
|
2216
2554
|
const parsed = parser(value);
|
|
@@ -2219,26 +2557,26 @@ var DatePicker2 = ({
|
|
|
2219
2557
|
const buttonLabel = parsedValue ? labelFormatter(parsedValue) : placeholder2;
|
|
2220
2558
|
const buttonAriaLabel = ariaLabel ?? (parsedValue ? `Change date, current selection ${labelFormatter(parsedValue)}` : "Open date picker");
|
|
2221
2559
|
const shouldShowClear = allowClear && !disabled && !!parsedValue;
|
|
2222
|
-
const handleClose =
|
|
2223
|
-
const emitChange =
|
|
2560
|
+
const handleClose = React25__namespace.default.useCallback(() => setOpen(false), []);
|
|
2561
|
+
const emitChange = React25__namespace.default.useCallback(
|
|
2224
2562
|
(next) => {
|
|
2225
2563
|
onChange?.(next);
|
|
2226
2564
|
onValueChange?.(next ? outputFormatter(next) : void 0);
|
|
2227
2565
|
},
|
|
2228
2566
|
[onChange, onValueChange, outputFormatter]
|
|
2229
2567
|
);
|
|
2230
|
-
const handleSelect =
|
|
2568
|
+
const handleSelect = React25__namespace.default.useCallback(
|
|
2231
2569
|
(next) => {
|
|
2232
2570
|
emitChange(next);
|
|
2233
2571
|
if (closeOnSelect && next) handleClose();
|
|
2234
2572
|
},
|
|
2235
2573
|
[closeOnSelect, emitChange, handleClose]
|
|
2236
2574
|
);
|
|
2237
|
-
const handleClear =
|
|
2575
|
+
const handleClear = React25__namespace.default.useCallback(() => {
|
|
2238
2576
|
emitChange(void 0);
|
|
2239
2577
|
handleClose();
|
|
2240
2578
|
}, [emitChange, handleClose]);
|
|
2241
|
-
const handleOpenChange =
|
|
2579
|
+
const handleOpenChange = React25__namespace.default.useCallback(
|
|
2242
2580
|
(nextOpen) => {
|
|
2243
2581
|
if (disabled && nextOpen) return;
|
|
2244
2582
|
setOpen(nextOpen);
|
|
@@ -2428,15 +2766,15 @@ function MonthCal({
|
|
|
2428
2766
|
onYearBackward,
|
|
2429
2767
|
onYearForward
|
|
2430
2768
|
}) {
|
|
2431
|
-
const today =
|
|
2769
|
+
const today = React25__namespace.useMemo(() => {
|
|
2432
2770
|
const now = /* @__PURE__ */ new Date();
|
|
2433
2771
|
now.setDate(1);
|
|
2434
2772
|
now.setHours(0, 0, 0, 0);
|
|
2435
2773
|
return now;
|
|
2436
2774
|
}, []);
|
|
2437
|
-
const selectedMonthDate =
|
|
2438
|
-
const min =
|
|
2439
|
-
const max =
|
|
2775
|
+
const selectedMonthDate = React25__namespace.useMemo(() => normalizeMonth(selectedDate), [selectedDate]);
|
|
2776
|
+
const min = React25__namespace.useMemo(() => normalizeMonth(minDate), [minDate]);
|
|
2777
|
+
const max = React25__namespace.useMemo(() => normalizeMonth(maxDate), [maxDate]);
|
|
2440
2778
|
let effectiveMin = min;
|
|
2441
2779
|
if (min && max && min > max) {
|
|
2442
2780
|
effectiveMin = max;
|
|
@@ -2445,10 +2783,10 @@ function MonthCal({
|
|
|
2445
2783
|
const minMonth = effectiveMin?.getMonth();
|
|
2446
2784
|
const maxYear = max?.getFullYear();
|
|
2447
2785
|
const maxMonth = max?.getMonth();
|
|
2448
|
-
const [menuYear, setMenuYear] =
|
|
2786
|
+
const [menuYear, setMenuYear] = React25__namespace.useState(
|
|
2449
2787
|
() => selectedMonthDate?.getFullYear() ?? today.getFullYear()
|
|
2450
2788
|
);
|
|
2451
|
-
|
|
2789
|
+
React25__namespace.useEffect(() => {
|
|
2452
2790
|
if (selectedMonthDate) {
|
|
2453
2791
|
const year = selectedMonthDate.getFullYear();
|
|
2454
2792
|
if (year !== menuYear) {
|
|
@@ -2456,7 +2794,7 @@ function MonthCal({
|
|
|
2456
2794
|
}
|
|
2457
2795
|
}
|
|
2458
2796
|
}, [selectedMonthDate, menuYear]);
|
|
2459
|
-
|
|
2797
|
+
React25__namespace.useEffect(() => {
|
|
2460
2798
|
if (typeof minYear === "number" && menuYear < minYear) {
|
|
2461
2799
|
setMenuYear(minYear);
|
|
2462
2800
|
return;
|
|
@@ -2467,7 +2805,7 @@ function MonthCal({
|
|
|
2467
2805
|
}, [minYear, maxYear, menuYear]);
|
|
2468
2806
|
const disablePrevYear = typeof minYear === "number" ? menuYear <= minYear : false;
|
|
2469
2807
|
const disableNextYear = typeof maxYear === "number" ? menuYear >= maxYear : false;
|
|
2470
|
-
const yearOptions =
|
|
2808
|
+
const yearOptions = React25__namespace.useMemo(() => {
|
|
2471
2809
|
const fallbackWindow = 50;
|
|
2472
2810
|
const start = typeof minYear === "number" ? minYear : menuYear - fallbackWindow;
|
|
2473
2811
|
const end = typeof maxYear === "number" ? maxYear : menuYear + fallbackWindow;
|
|
@@ -2481,7 +2819,7 @@ function MonthCal({
|
|
|
2481
2819
|
}
|
|
2482
2820
|
return years;
|
|
2483
2821
|
}, [maxYear, menuYear, minYear]);
|
|
2484
|
-
const formatYearLabel =
|
|
2822
|
+
const formatYearLabel = React25__namespace.useCallback(
|
|
2485
2823
|
(year) => {
|
|
2486
2824
|
const raw = callbacks?.yearLabel?.(year);
|
|
2487
2825
|
if (raw === null || raw === void 0) return String(year);
|
|
@@ -2489,7 +2827,7 @@ function MonthCal({
|
|
|
2489
2827
|
},
|
|
2490
2828
|
[callbacks]
|
|
2491
2829
|
);
|
|
2492
|
-
const handleYearSelect =
|
|
2830
|
+
const handleYearSelect = React25__namespace.useCallback(
|
|
2493
2831
|
(nextValue) => {
|
|
2494
2832
|
const nextYear = Number.parseInt(nextValue, 10);
|
|
2495
2833
|
if (Number.isNaN(nextYear)) return;
|
|
@@ -2499,7 +2837,7 @@ function MonthCal({
|
|
|
2499
2837
|
},
|
|
2500
2838
|
[maxYear, minYear]
|
|
2501
2839
|
);
|
|
2502
|
-
const disabledPairs =
|
|
2840
|
+
const disabledPairs = React25__namespace.useMemo(() => {
|
|
2503
2841
|
if (!disabledDates?.length) return [];
|
|
2504
2842
|
const pairs = [];
|
|
2505
2843
|
disabledDates.forEach((date) => {
|
|
@@ -2644,14 +2982,14 @@ var MonthPicker2 = ({
|
|
|
2644
2982
|
ariaLabel,
|
|
2645
2983
|
...calendarProps
|
|
2646
2984
|
}) => {
|
|
2647
|
-
const [open, setOpen] =
|
|
2648
|
-
const parser =
|
|
2649
|
-
const outputFormatter =
|
|
2650
|
-
const labelFormatter =
|
|
2985
|
+
const [open, setOpen] = React25__namespace.default.useState(false);
|
|
2986
|
+
const parser = React25__namespace.default.useMemo(() => valueParser ?? defaultValueParser2, [valueParser]);
|
|
2987
|
+
const outputFormatter = React25__namespace.default.useMemo(() => valueFormatter ?? defaultValueFormatter2, [valueFormatter]);
|
|
2988
|
+
const labelFormatter = React25__namespace.default.useMemo(
|
|
2651
2989
|
() => displayFormatter ?? defaultDisplayFormatter2,
|
|
2652
2990
|
[displayFormatter]
|
|
2653
2991
|
);
|
|
2654
|
-
const parsedValue =
|
|
2992
|
+
const parsedValue = React25__namespace.default.useMemo(() => {
|
|
2655
2993
|
if (value === null || value === void 0) return void 0;
|
|
2656
2994
|
if (value instanceof Date) return normalizeMonth2(value);
|
|
2657
2995
|
if (typeof value === "string") {
|
|
@@ -2663,8 +3001,8 @@ var MonthPicker2 = ({
|
|
|
2663
3001
|
const buttonLabel = parsedValue ? labelFormatter(parsedValue) : placeholder2;
|
|
2664
3002
|
const buttonAriaLabel = ariaLabel ?? (parsedValue ? `Change month, current selection ${labelFormatter(parsedValue)}` : "Open month picker");
|
|
2665
3003
|
const shouldShowClear = allowClear && !disabled && !!parsedValue;
|
|
2666
|
-
const handleClose =
|
|
2667
|
-
const emitChange =
|
|
3004
|
+
const handleClose = React25__namespace.default.useCallback(() => setOpen(false), []);
|
|
3005
|
+
const emitChange = React25__namespace.default.useCallback(
|
|
2668
3006
|
(next) => {
|
|
2669
3007
|
const normalized = next ? normalizeMonth2(next) : void 0;
|
|
2670
3008
|
onChange?.(normalized);
|
|
@@ -2672,18 +3010,18 @@ var MonthPicker2 = ({
|
|
|
2672
3010
|
},
|
|
2673
3011
|
[onChange, onValueChange, outputFormatter]
|
|
2674
3012
|
);
|
|
2675
|
-
const handleSelect =
|
|
3013
|
+
const handleSelect = React25__namespace.default.useCallback(
|
|
2676
3014
|
(next) => {
|
|
2677
3015
|
emitChange(next);
|
|
2678
3016
|
if (closeOnSelect && next) handleClose();
|
|
2679
3017
|
},
|
|
2680
3018
|
[closeOnSelect, emitChange, handleClose]
|
|
2681
3019
|
);
|
|
2682
|
-
const handleClear =
|
|
3020
|
+
const handleClear = React25__namespace.default.useCallback(() => {
|
|
2683
3021
|
emitChange(void 0);
|
|
2684
3022
|
handleClose();
|
|
2685
3023
|
}, [emitChange, handleClose]);
|
|
2686
|
-
const handleOpenChange =
|
|
3024
|
+
const handleOpenChange = React25__namespace.default.useCallback(
|
|
2687
3025
|
(nextOpen) => {
|
|
2688
3026
|
if (disabled && nextOpen) return;
|
|
2689
3027
|
setOpen(nextOpen);
|
|
@@ -2894,23 +3232,24 @@ var LookupSelect = ({
|
|
|
2894
3232
|
dropdownPortalId,
|
|
2895
3233
|
multiple = false
|
|
2896
3234
|
}) => {
|
|
2897
|
-
const [inputValue, setInputValue] =
|
|
2898
|
-
const inputRef =
|
|
2899
|
-
const [
|
|
2900
|
-
const [
|
|
2901
|
-
const [
|
|
2902
|
-
const [
|
|
2903
|
-
const [
|
|
2904
|
-
const
|
|
2905
|
-
const
|
|
2906
|
-
const
|
|
2907
|
-
const
|
|
2908
|
-
const
|
|
2909
|
-
const
|
|
3235
|
+
const [inputValue, setInputValue] = React25.useState("");
|
|
3236
|
+
const inputRef = React25.useRef(null);
|
|
3237
|
+
const [inputFocused, setInputFocused] = React25.useState(false);
|
|
3238
|
+
const [suggestions, setSuggestions] = React25.useState([]);
|
|
3239
|
+
const [optionLabels, setOptionLabels] = React25.useState({});
|
|
3240
|
+
const [loading, setLoading] = React25.useState(false);
|
|
3241
|
+
const [fetchError, setFetchError] = React25.useState(null);
|
|
3242
|
+
const [isDropdownOpen, setIsDropdownOpen] = React25.useState(false);
|
|
3243
|
+
const containerRef = React25.useRef(null);
|
|
3244
|
+
const fetchDelayRef = React25.useRef(null);
|
|
3245
|
+
const requestIdRef = React25.useRef(0);
|
|
3246
|
+
const [dropdownStyles, setDropdownStyles] = React25.useState();
|
|
3247
|
+
const dropdownContentRef = React25.useRef(null);
|
|
3248
|
+
const assignDropdownContentRef = React25.useCallback((node) => {
|
|
2910
3249
|
dropdownContentRef.current = node;
|
|
2911
3250
|
}, []);
|
|
2912
|
-
const [activeSuggestionIndex, setActiveSuggestionIndex] =
|
|
2913
|
-
const dropdownPortalElement =
|
|
3251
|
+
const [activeSuggestionIndex, setActiveSuggestionIndex] = React25.useState(-1);
|
|
3252
|
+
const dropdownPortalElement = React25.useMemo(() => {
|
|
2914
3253
|
if (typeof document === "undefined") return null;
|
|
2915
3254
|
if (dropdownPortalId) {
|
|
2916
3255
|
const element = document.getElementById(dropdownPortalId);
|
|
@@ -2921,7 +3260,7 @@ var LookupSelect = ({
|
|
|
2921
3260
|
const limitReached = multiple && value.length >= maxTags;
|
|
2922
3261
|
const selectedValue = !multiple && value.length > 0 ? value[0] : void 0;
|
|
2923
3262
|
const selectedLabel = selectedValue ? optionLabels[selectedValue] ?? selectedValue : void 0;
|
|
2924
|
-
const upsertOptionLabels =
|
|
3263
|
+
const upsertOptionLabels = React25.useCallback((options) => {
|
|
2925
3264
|
setOptionLabels((prev) => {
|
|
2926
3265
|
let next = null;
|
|
2927
3266
|
options.forEach((opt) => {
|
|
@@ -2934,7 +3273,7 @@ var LookupSelect = ({
|
|
|
2934
3273
|
return next ?? prev;
|
|
2935
3274
|
});
|
|
2936
3275
|
}, []);
|
|
2937
|
-
const addTag =
|
|
3276
|
+
const addTag = React25.useCallback(
|
|
2938
3277
|
(val) => {
|
|
2939
3278
|
const trimmed = val.trim();
|
|
2940
3279
|
if (!trimmed) return;
|
|
@@ -2946,27 +3285,28 @@ var LookupSelect = ({
|
|
|
2946
3285
|
onChange([trimmed]);
|
|
2947
3286
|
}
|
|
2948
3287
|
setInputValue("");
|
|
2949
|
-
setSuggestions([]);
|
|
2950
|
-
setIsDropdownOpen(false);
|
|
2951
3288
|
},
|
|
2952
3289
|
[value, onChange, maxTags, multiple]
|
|
2953
3290
|
);
|
|
2954
|
-
const removeTag =
|
|
3291
|
+
const removeTag = React25.useCallback(
|
|
2955
3292
|
(index) => {
|
|
2956
3293
|
if (index < 0) return;
|
|
2957
3294
|
const newTags = value.filter((_, i) => i !== index);
|
|
2958
3295
|
onChange(newTags);
|
|
3296
|
+
setIsDropdownOpen(false);
|
|
3297
|
+
setInputFocused(false);
|
|
2959
3298
|
},
|
|
2960
3299
|
[value, onChange]
|
|
2961
3300
|
);
|
|
2962
|
-
const handleClear =
|
|
3301
|
+
const handleClear = React25.useCallback(() => {
|
|
2963
3302
|
setInputValue("");
|
|
2964
3303
|
setSuggestions([]);
|
|
3304
|
+
setInputFocused(false);
|
|
2965
3305
|
setIsDropdownOpen(false);
|
|
2966
3306
|
setFetchError(null);
|
|
2967
3307
|
if (onClear) onClear();
|
|
2968
3308
|
}, [onClear]);
|
|
2969
|
-
const handleSuggestionSelect =
|
|
3309
|
+
const handleSuggestionSelect = React25.useCallback(
|
|
2970
3310
|
(option) => {
|
|
2971
3311
|
upsertOptionLabels([option]);
|
|
2972
3312
|
addTag(option.value);
|
|
@@ -2977,11 +3317,14 @@ var LookupSelect = ({
|
|
|
2977
3317
|
}, 100);
|
|
2978
3318
|
} else {
|
|
2979
3319
|
inputRef.current?.blur();
|
|
3320
|
+
setInputFocused(false);
|
|
3321
|
+
setIsDropdownOpen(false);
|
|
2980
3322
|
}
|
|
3323
|
+
inputRef.current.value = "";
|
|
2981
3324
|
},
|
|
2982
3325
|
[addTag, multiple, upsertOptionLabels]
|
|
2983
3326
|
);
|
|
2984
|
-
const handleKeyDown =
|
|
3327
|
+
const handleKeyDown = React25.useCallback(
|
|
2985
3328
|
(e) => {
|
|
2986
3329
|
if (e.key === "ArrowDown" && suggestions.length > 0) {
|
|
2987
3330
|
e.preventDefault();
|
|
@@ -3008,7 +3351,7 @@ var LookupSelect = ({
|
|
|
3008
3351
|
},
|
|
3009
3352
|
[suggestions, activeSuggestionIndex, handleSuggestionSelect, inputValue, removeTag, value.length]
|
|
3010
3353
|
);
|
|
3011
|
-
const updateDropdownPosition =
|
|
3354
|
+
const updateDropdownPosition = React25.useCallback(() => {
|
|
3012
3355
|
if (!dropdownPortalElement || !containerRef.current) return;
|
|
3013
3356
|
const rect = containerRef.current.getBoundingClientRect();
|
|
3014
3357
|
setDropdownStyles({
|
|
@@ -3019,19 +3362,12 @@ var LookupSelect = ({
|
|
|
3019
3362
|
zIndex: 50
|
|
3020
3363
|
});
|
|
3021
3364
|
}, [dropdownPortalElement]);
|
|
3022
|
-
|
|
3023
|
-
if (!fetchSuggestions) return;
|
|
3365
|
+
React25.useEffect(() => {
|
|
3366
|
+
if (!fetchSuggestions || !inputFocused) return;
|
|
3024
3367
|
if (fetchDelayRef.current) {
|
|
3025
3368
|
clearTimeout(fetchDelayRef.current);
|
|
3026
3369
|
}
|
|
3027
3370
|
const query = inputValue.trim();
|
|
3028
|
-
if (!query) {
|
|
3029
|
-
setSuggestions([]);
|
|
3030
|
-
setIsDropdownOpen(false);
|
|
3031
|
-
setLoading(false);
|
|
3032
|
-
setFetchError(null);
|
|
3033
|
-
return;
|
|
3034
|
-
}
|
|
3035
3371
|
setLoading(true);
|
|
3036
3372
|
setFetchError(null);
|
|
3037
3373
|
setIsDropdownOpen(true);
|
|
@@ -3059,8 +3395,8 @@ var LookupSelect = ({
|
|
|
3059
3395
|
clearTimeout(fetchDelayRef.current);
|
|
3060
3396
|
}
|
|
3061
3397
|
};
|
|
3062
|
-
}, [inputValue, fetchSuggestions, suggestionDebounce, upsertOptionLabels]);
|
|
3063
|
-
|
|
3398
|
+
}, [inputValue, fetchSuggestions, suggestionDebounce, upsertOptionLabels, inputFocused]);
|
|
3399
|
+
React25.useEffect(() => {
|
|
3064
3400
|
if (!fetchSuggestions) return;
|
|
3065
3401
|
if (value.length === 0) return;
|
|
3066
3402
|
const unresolvedValues = value.filter((v) => !optionLabels[v]);
|
|
@@ -3070,23 +3406,24 @@ var LookupSelect = ({
|
|
|
3070
3406
|
}).catch(() => {
|
|
3071
3407
|
});
|
|
3072
3408
|
}, [value, fetchSuggestions, optionLabels, upsertOptionLabels]);
|
|
3073
|
-
|
|
3409
|
+
React25.useEffect(() => {
|
|
3074
3410
|
const handleDocumentClick = (event) => {
|
|
3075
3411
|
const target = event.target;
|
|
3076
3412
|
if (containerRef.current?.contains(target)) return;
|
|
3077
3413
|
if (dropdownContentRef.current?.contains(target)) return;
|
|
3078
3414
|
setIsDropdownOpen(false);
|
|
3415
|
+
setInputFocused(false);
|
|
3079
3416
|
};
|
|
3080
3417
|
document.addEventListener("mousedown", handleDocumentClick);
|
|
3081
3418
|
return () => {
|
|
3082
3419
|
document.removeEventListener("mousedown", handleDocumentClick);
|
|
3083
3420
|
};
|
|
3084
3421
|
}, []);
|
|
3085
|
-
|
|
3422
|
+
React25.useEffect(() => {
|
|
3086
3423
|
if (!limitReached) return;
|
|
3087
3424
|
setIsDropdownOpen(false);
|
|
3088
3425
|
}, [limitReached]);
|
|
3089
|
-
|
|
3426
|
+
React25.useEffect(() => {
|
|
3090
3427
|
if (!dropdownPortalElement) return;
|
|
3091
3428
|
if (!isDropdownOpen) return;
|
|
3092
3429
|
updateDropdownPosition();
|
|
@@ -3097,8 +3434,8 @@ var LookupSelect = ({
|
|
|
3097
3434
|
window.removeEventListener("resize", handleReposition);
|
|
3098
3435
|
window.removeEventListener("scroll", handleReposition, true);
|
|
3099
3436
|
};
|
|
3100
|
-
}, [dropdownPortalElement, isDropdownOpen, updateDropdownPosition]);
|
|
3101
|
-
|
|
3437
|
+
}, [dropdownPortalElement, isDropdownOpen, updateDropdownPosition, value]);
|
|
3438
|
+
React25.useEffect(() => {
|
|
3102
3439
|
if (suggestions.length === 0) {
|
|
3103
3440
|
setActiveSuggestionIndex(-1);
|
|
3104
3441
|
return;
|
|
@@ -3152,7 +3489,7 @@ var LookupSelect = ({
|
|
|
3152
3489
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3153
3490
|
"span",
|
|
3154
3491
|
{
|
|
3155
|
-
className: "flex items-center gap-1 rounded-lg border border-
|
|
3492
|
+
className: "flex items-center gap-1 rounded-lg border border-sus-secondary-gray-3 bg-sus-secondary-gray-2 px-2 py-1 my-1 text-sm text-inherit max-w-full wrap-break-word",
|
|
3156
3493
|
children: [
|
|
3157
3494
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "whitespace-pre-wrap break-all", children: label }),
|
|
3158
3495
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3180,9 +3517,7 @@ var LookupSelect = ({
|
|
|
3180
3517
|
onChange: (e) => setInputValue(e.target.value),
|
|
3181
3518
|
onKeyDown: handleKeyDown,
|
|
3182
3519
|
onFocus: () => {
|
|
3183
|
-
|
|
3184
|
-
setIsDropdownOpen(true);
|
|
3185
|
-
}
|
|
3520
|
+
setInputFocused(true);
|
|
3186
3521
|
},
|
|
3187
3522
|
hidden: !multiple && selectedLabel !== void 0,
|
|
3188
3523
|
placeholder: value.length === 0 && resolvedPlaceholder || "",
|
|
@@ -3933,7 +4268,7 @@ var AdvanceSearch = ({
|
|
|
3933
4268
|
shortDateFormat,
|
|
3934
4269
|
filterFieldMap = FILTER_FIELD_MAP
|
|
3935
4270
|
}) => {
|
|
3936
|
-
const fieldsData =
|
|
4271
|
+
const fieldsData = React25.useMemo(() => {
|
|
3937
4272
|
if (fields.length === 0) throw new Error("fields cannot be an empty array");
|
|
3938
4273
|
return fields || [];
|
|
3939
4274
|
}, [fields]);
|
|
@@ -3953,8 +4288,8 @@ var AdvanceSearch = ({
|
|
|
3953
4288
|
defaultValues: {}
|
|
3954
4289
|
});
|
|
3955
4290
|
const { handleSubmit, unregister, resetField, getValues, clearErrors, setError } = form;
|
|
3956
|
-
const [operatorErrors, setOperatorErrors] =
|
|
3957
|
-
const clearOperatorError =
|
|
4291
|
+
const [operatorErrors, setOperatorErrors] = React25__namespace.default.useState({});
|
|
4292
|
+
const clearOperatorError = React25.useCallback(
|
|
3958
4293
|
(rowId) => {
|
|
3959
4294
|
setOperatorErrors((prev) => {
|
|
3960
4295
|
if (!(rowId in prev)) return prev;
|
|
@@ -3964,7 +4299,7 @@ var AdvanceSearch = ({
|
|
|
3964
4299
|
},
|
|
3965
4300
|
[setOperatorErrors]
|
|
3966
4301
|
);
|
|
3967
|
-
const clearValue =
|
|
4302
|
+
const clearValue = React25.useCallback(
|
|
3968
4303
|
(rowId, which) => {
|
|
3969
4304
|
const fieldName = `${which}_${rowId}`;
|
|
3970
4305
|
resetField(fieldName, { defaultValue: void 0 });
|
|
@@ -3974,14 +4309,14 @@ var AdvanceSearch = ({
|
|
|
3974
4309
|
},
|
|
3975
4310
|
[resetField, clearErrors]
|
|
3976
4311
|
);
|
|
3977
|
-
const parseRangeValue =
|
|
4312
|
+
const parseRangeValue = React25.useCallback((raw, fieldType) => {
|
|
3978
4313
|
if (!raw) return void 0;
|
|
3979
4314
|
if (Array.isArray(raw)) return void 0;
|
|
3980
4315
|
const normalized = fieldType === "datemonth" ? `${raw}-01` : raw;
|
|
3981
4316
|
const parsed = dateFns.parseISO(normalized);
|
|
3982
4317
|
return dateFns.isValid(parsed) ? parsed : void 0;
|
|
3983
4318
|
}, []);
|
|
3984
|
-
const onSubmit =
|
|
4319
|
+
const onSubmit = React25.useCallback(() => {
|
|
3985
4320
|
const operatorValidation = {};
|
|
3986
4321
|
rows.forEach((r) => {
|
|
3987
4322
|
const ops = operatorsForField(r.fieldName);
|
|
@@ -4217,11 +4552,11 @@ function resetVisibleTableState(payload) {
|
|
|
4217
4552
|
table.setSorting(prevState.sorting.filter((s) => isVisible(s.id)));
|
|
4218
4553
|
}
|
|
4219
4554
|
var useHover = () => {
|
|
4220
|
-
const [hovering, setHovering] =
|
|
4221
|
-
const prevRef =
|
|
4222
|
-
const onMouseEnter =
|
|
4223
|
-
const onMouseLeave =
|
|
4224
|
-
const nodeRefCallback =
|
|
4555
|
+
const [hovering, setHovering] = React25.useState(false);
|
|
4556
|
+
const prevRef = React25.useRef(null);
|
|
4557
|
+
const onMouseEnter = React25.useCallback(() => setHovering(true), []);
|
|
4558
|
+
const onMouseLeave = React25.useCallback(() => setHovering(false), []);
|
|
4559
|
+
const nodeRefCallback = React25.useCallback(
|
|
4225
4560
|
(node) => {
|
|
4226
4561
|
if (prevRef.current) {
|
|
4227
4562
|
prevRef.current.removeEventListener("mouseenter", onMouseEnter);
|
|
@@ -4249,15 +4584,15 @@ var useIntersectionObserver = ({
|
|
|
4249
4584
|
initialIsIntersecting = false,
|
|
4250
4585
|
onChange
|
|
4251
4586
|
} = {}) => {
|
|
4252
|
-
const [ref, setRef] =
|
|
4253
|
-
const [state, setState] =
|
|
4587
|
+
const [ref, setRef] = React25.useState(null);
|
|
4588
|
+
const [state, setState] = React25.useState(() => ({
|
|
4254
4589
|
isIntersecting: initialIsIntersecting,
|
|
4255
4590
|
entry: void 0
|
|
4256
4591
|
}));
|
|
4257
|
-
const callbackRef =
|
|
4592
|
+
const callbackRef = React25.useRef(null);
|
|
4258
4593
|
callbackRef.current = onChange;
|
|
4259
4594
|
const frozen = state.entry?.isIntersecting && freezeOnceVisible;
|
|
4260
|
-
|
|
4595
|
+
React25.useEffect(() => {
|
|
4261
4596
|
if (!ref) return;
|
|
4262
4597
|
if (!("IntersectionObserver" in window)) return;
|
|
4263
4598
|
if (frozen) return;
|
|
@@ -4287,8 +4622,8 @@ var useIntersectionObserver = ({
|
|
|
4287
4622
|
frozen,
|
|
4288
4623
|
freezeOnceVisible
|
|
4289
4624
|
]);
|
|
4290
|
-
const prevRef =
|
|
4291
|
-
|
|
4625
|
+
const prevRef = React25.useRef(null);
|
|
4626
|
+
React25.useEffect(() => {
|
|
4292
4627
|
if (!ref && state.entry?.target && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {
|
|
4293
4628
|
prevRef.current = state.entry.target;
|
|
4294
4629
|
setState({ isIntersecting: initialIsIntersecting, entry: void 0 });
|
|
@@ -4305,8 +4640,8 @@ var isValidMediaQueryString = (query) => {
|
|
|
4305
4640
|
return query !== "not all";
|
|
4306
4641
|
};
|
|
4307
4642
|
var useMediaQuery = ({ query }) => {
|
|
4308
|
-
const [matches, setMatches] =
|
|
4309
|
-
|
|
4643
|
+
const [matches, setMatches] = React25.useState(false);
|
|
4644
|
+
React25.useEffect(() => {
|
|
4310
4645
|
if (typeof window === "undefined") {
|
|
4311
4646
|
return;
|
|
4312
4647
|
}
|
|
@@ -4342,8 +4677,8 @@ var useTruncated = ({
|
|
|
4342
4677
|
onChange,
|
|
4343
4678
|
resizeDetectDelay = 150
|
|
4344
4679
|
}) => {
|
|
4345
|
-
const [isTruncated, setIsTruncated] =
|
|
4346
|
-
|
|
4680
|
+
const [isTruncated, setIsTruncated] = React25.useState(false);
|
|
4681
|
+
React25.useEffect(() => {
|
|
4347
4682
|
const element = elementRef.current;
|
|
4348
4683
|
if (!element) return;
|
|
4349
4684
|
const checkTruncate = debounce(() => {
|
|
@@ -4372,14 +4707,14 @@ var useControllableState = ({
|
|
|
4372
4707
|
value
|
|
4373
4708
|
}) => {
|
|
4374
4709
|
const isControlled = typeof value !== "undefined";
|
|
4375
|
-
const [internalValue, setInternalValue] =
|
|
4710
|
+
const [internalValue, setInternalValue] = React25__namespace.useState(() => {
|
|
4376
4711
|
return isControlled ? value : defaultValue;
|
|
4377
4712
|
});
|
|
4378
|
-
|
|
4713
|
+
React25__namespace.useEffect(() => {
|
|
4379
4714
|
if (!isControlled) return;
|
|
4380
4715
|
setInternalValue(value);
|
|
4381
4716
|
}, [isControlled, value]);
|
|
4382
|
-
const setValue =
|
|
4717
|
+
const setValue = React25__namespace.useCallback(
|
|
4383
4718
|
(nextValue) => {
|
|
4384
4719
|
if (isControlled) return;
|
|
4385
4720
|
setInternalValue(nextValue);
|
|
@@ -4393,7 +4728,7 @@ var useControllableState = ({
|
|
|
4393
4728
|
};
|
|
4394
4729
|
};
|
|
4395
4730
|
var useControllableState_default = useControllableState;
|
|
4396
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" ?
|
|
4731
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React25.useLayoutEffect : React25.useEffect;
|
|
4397
4732
|
var HeaderCell = ({
|
|
4398
4733
|
rootClassName,
|
|
4399
4734
|
labelClassName,
|
|
@@ -4496,7 +4831,7 @@ function TableHeader({ className, ...props }) {
|
|
|
4496
4831
|
"thead",
|
|
4497
4832
|
{
|
|
4498
4833
|
"data-slot": "table-header",
|
|
4499
|
-
className: cn("[&_tr]:border-b bg-
|
|
4834
|
+
className: cn("[&_tr]:border-b bg-sus-gray-2", className),
|
|
4500
4835
|
...props
|
|
4501
4836
|
}
|
|
4502
4837
|
);
|
|
@@ -4530,7 +4865,7 @@ function TableHead({ className, ...props }) {
|
|
|
4530
4865
|
{
|
|
4531
4866
|
"data-slot": "table-head",
|
|
4532
4867
|
className: cn(
|
|
4533
|
-
"text-foreground h-9 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [
|
|
4868
|
+
"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",
|
|
4534
4869
|
className
|
|
4535
4870
|
),
|
|
4536
4871
|
...props
|
|
@@ -4543,7 +4878,7 @@ function TableCell({ className, ...props }) {
|
|
|
4543
4878
|
{
|
|
4544
4879
|
"data-slot": "table-cell",
|
|
4545
4880
|
className: cn(
|
|
4546
|
-
"p-2 h-10 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [
|
|
4881
|
+
"p-2 h-10 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5 border-b truncate",
|
|
4547
4882
|
className
|
|
4548
4883
|
),
|
|
4549
4884
|
...props
|
|
@@ -4591,7 +4926,7 @@ var ColumnSeparator = ({ show, className, ...props }) => {
|
|
|
4591
4926
|
}
|
|
4592
4927
|
);
|
|
4593
4928
|
};
|
|
4594
|
-
var ColumnSeparator_default =
|
|
4929
|
+
var ColumnSeparator_default = React25__namespace.default.memo(ColumnSeparator);
|
|
4595
4930
|
var StatusContentSlot = ({
|
|
4596
4931
|
content,
|
|
4597
4932
|
icon,
|
|
@@ -4610,7 +4945,7 @@ var StatusContentSlot = ({
|
|
|
4610
4945
|
content
|
|
4611
4946
|
] });
|
|
4612
4947
|
};
|
|
4613
|
-
var StatusContentSlot_default =
|
|
4948
|
+
var StatusContentSlot_default = React25__namespace.default.memo(StatusContentSlot);
|
|
4614
4949
|
var stateOptions = [
|
|
4615
4950
|
"columnFilters",
|
|
4616
4951
|
"globalFilter",
|
|
@@ -4663,9 +4998,9 @@ var modelOptions = [
|
|
|
4663
4998
|
"getCenterVisibleLeafColumns"
|
|
4664
4999
|
];
|
|
4665
5000
|
var DataTableDevTool = ({ table }) => {
|
|
4666
|
-
const [open, setOpen] =
|
|
4667
|
-
const [visibleStates, setVisibleStates] =
|
|
4668
|
-
const [visibleModels, setVisibleModels] =
|
|
5001
|
+
const [open, setOpen] = React25.useState(false);
|
|
5002
|
+
const [visibleStates, setVisibleStates] = React25.useState([]);
|
|
5003
|
+
const [visibleModels, setVisibleModels] = React25.useState([]);
|
|
4669
5004
|
const tableState = table.getState();
|
|
4670
5005
|
const toggleValue = (arr, value) => arr.includes(value) ? arr.filter((v) => v !== value) : [...arr, value];
|
|
4671
5006
|
const getCircularReplacer = () => {
|
|
@@ -4922,14 +5257,14 @@ var DataTable = ({
|
|
|
4922
5257
|
columnResizeMode: columnResizing?.enabled ? columnResizing?.resizeMode ?? "onChange" : "onChange"
|
|
4923
5258
|
})
|
|
4924
5259
|
});
|
|
4925
|
-
const tableContainerRef =
|
|
5260
|
+
const tableContainerRef = React25.useRef(null);
|
|
4926
5261
|
const isTableEmpty = table.getCoreRowModel().rows.length === 0;
|
|
4927
5262
|
const isTableEmptyAfterFiltering = table.getRowModel().rows.length === 0;
|
|
4928
5263
|
const isFiltering = table.getState().columnFilters.length > 0 || !!table.getState().globalFilter;
|
|
4929
5264
|
const leftVisibleLeftColumns = table.getLeftVisibleLeafColumns();
|
|
4930
5265
|
const centerVisibleLeafColumns = table.getCenterVisibleLeafColumns();
|
|
4931
5266
|
const rightVisibleLeafColumns = table.getRightVisibleLeafColumns();
|
|
4932
|
-
const { isSomeColumnsFilterable, filterableColumns } =
|
|
5267
|
+
const { isSomeColumnsFilterable, filterableColumns } = React25.useMemo(() => {
|
|
4933
5268
|
const mergedColumns = [
|
|
4934
5269
|
...leftVisibleLeftColumns,
|
|
4935
5270
|
...centerVisibleLeafColumns,
|
|
@@ -4940,7 +5275,7 @@ var DataTable = ({
|
|
|
4940
5275
|
);
|
|
4941
5276
|
return { isSomeColumnsFilterable: isSomeColumnsFilterable2, filterableColumns: mergedColumns };
|
|
4942
5277
|
}, [centerVisibleLeafColumns, leftVisibleLeftColumns, rightVisibleLeafColumns]);
|
|
4943
|
-
const autoStatusKey =
|
|
5278
|
+
const autoStatusKey = React25.useMemo(() => {
|
|
4944
5279
|
if (isInitialLoading) return "initialLoading";
|
|
4945
5280
|
if (isTableEmpty) return "emptyData";
|
|
4946
5281
|
if (isTableEmptyAfterFiltering) return "emptyFilteredData";
|
|
@@ -4958,14 +5293,14 @@ var DataTable = ({
|
|
|
4958
5293
|
scrollFetch?.hasMore,
|
|
4959
5294
|
scrollFetch?.isFetchingMore
|
|
4960
5295
|
]);
|
|
4961
|
-
const activeStatusContentComputed =
|
|
5296
|
+
const activeStatusContentComputed = React25.useMemo(() => {
|
|
4962
5297
|
if (!activeStatusContent) return autoStatusKey;
|
|
4963
5298
|
if (typeof activeStatusContent === "function") {
|
|
4964
5299
|
return activeStatusContent({ defaultComputedValue: autoStatusKey });
|
|
4965
5300
|
}
|
|
4966
5301
|
return activeStatusContent;
|
|
4967
5302
|
}, [activeStatusContent, autoStatusKey]);
|
|
4968
|
-
const fetchMoreOnScrollReached =
|
|
5303
|
+
const fetchMoreOnScrollReached = React25.useCallback(
|
|
4969
5304
|
(containerRefElement) => {
|
|
4970
5305
|
if (!scrollFetch?.enabled || !containerRefElement || scrollFetch?.isFetchingMore || !scrollFetch?.hasMore || !scrollFetch?.fetchMore) {
|
|
4971
5306
|
return;
|
|
@@ -4999,14 +5334,14 @@ var DataTable = ({
|
|
|
4999
5334
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5000
5335
|
[scrollFetch?.enabled, scrollFetch?.isFetchingMore, scrollFetch?.hasMore, scrollFetch?.fetchMore]
|
|
5001
5336
|
);
|
|
5002
|
-
|
|
5337
|
+
React25.useEffect(() => {
|
|
5003
5338
|
if (!tableRef) return;
|
|
5004
5339
|
tableRef.current = table;
|
|
5005
5340
|
return () => {
|
|
5006
5341
|
tableRef.current = null;
|
|
5007
5342
|
};
|
|
5008
5343
|
}, [tableRef, table]);
|
|
5009
|
-
|
|
5344
|
+
React25.useEffect(() => {
|
|
5010
5345
|
fetchMoreOnScrollReached(tableContainerRef.current);
|
|
5011
5346
|
}, [fetchMoreOnScrollReached]);
|
|
5012
5347
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -5136,7 +5471,7 @@ var DataTable = ({
|
|
|
5136
5471
|
),
|
|
5137
5472
|
/* @__PURE__ */ jsxRuntime.jsx(TableBody, { ...components?.tableBodyProps, children: table.getRowModel().rows.map((row) => {
|
|
5138
5473
|
const tableDataRowProps = typeof components?.tableDataRowProps === "function" ? components.tableDataRowProps({ row, table }) || {} : components?.tableDataRowProps || {};
|
|
5139
|
-
return /* @__PURE__ */
|
|
5474
|
+
return /* @__PURE__ */ React25.createElement(
|
|
5140
5475
|
TableRow,
|
|
5141
5476
|
{
|
|
5142
5477
|
"data-testid": `table-data-row-${row.id}`,
|
|
@@ -5614,11 +5949,11 @@ function DialogAlert({
|
|
|
5614
5949
|
}) {
|
|
5615
5950
|
const alignClass = align === "start" ? "justify-start" : align === "end" ? "justify-end" : "justify-center";
|
|
5616
5951
|
const { t } = reactI18next.useTranslation();
|
|
5617
|
-
const handleCancel =
|
|
5952
|
+
const handleCancel = React25.useCallback(() => {
|
|
5618
5953
|
onCancel?.();
|
|
5619
5954
|
onOpenChange(false);
|
|
5620
5955
|
}, [onCancel, onOpenChange]);
|
|
5621
|
-
const handleConfirm =
|
|
5956
|
+
const handleConfirm = React25.useCallback(() => {
|
|
5622
5957
|
let func = onConfirm;
|
|
5623
5958
|
if (variant === "success" && showCancel === false) {
|
|
5624
5959
|
func = onConfirm ?? onCancel;
|
|
@@ -5848,7 +6183,7 @@ var DialogAlertProvider = ({ children, i18nResource, i18nLang }) => {
|
|
|
5848
6183
|
const open = useDialogAlertStore((state) => state.open);
|
|
5849
6184
|
const setOpen = useDialogAlertStore((state) => state.setOpen);
|
|
5850
6185
|
const dialogProps = useDialogAlertStore((state) => state.dialogProps);
|
|
5851
|
-
|
|
6186
|
+
React25.useEffect(() => {
|
|
5852
6187
|
if (!i18nResource) {
|
|
5853
6188
|
i18n_default.changeLanguage("sharedui");
|
|
5854
6189
|
return;
|
|
@@ -5958,8 +6293,8 @@ var defaultOperatorShortcuts = {
|
|
|
5958
6293
|
};
|
|
5959
6294
|
var DEFAULT_DEBOUNCE = 200;
|
|
5960
6295
|
function useKeyboardNavigation(itemsLength, onSelect, isLocked) {
|
|
5961
|
-
const [selectedIndex, setSelectedIndex] =
|
|
5962
|
-
|
|
6296
|
+
const [selectedIndex, setSelectedIndex] = React25.useState(0);
|
|
6297
|
+
React25.useEffect(() => {
|
|
5963
6298
|
const handler = (event) => {
|
|
5964
6299
|
if (event.key === "ArrowDown") {
|
|
5965
6300
|
event.preventDefault();
|
|
@@ -5982,10 +6317,10 @@ function useKeyboardNavigation(itemsLength, onSelect, isLocked) {
|
|
|
5982
6317
|
return [selectedIndex, setSelectedIndex];
|
|
5983
6318
|
}
|
|
5984
6319
|
function useDropdownPosition(clientRect, itemsCount) {
|
|
5985
|
-
const [rect, setRect] =
|
|
5986
|
-
const [style, setStyle] =
|
|
5987
|
-
const ref =
|
|
5988
|
-
|
|
6320
|
+
const [rect, setRect] = React25.useState(null);
|
|
6321
|
+
const [style, setStyle] = React25.useState({});
|
|
6322
|
+
const ref = React25.useRef(null);
|
|
6323
|
+
React25.useEffect(() => {
|
|
5989
6324
|
if (!clientRect) return;
|
|
5990
6325
|
const update = () => {
|
|
5991
6326
|
const nextRect = clientRect();
|
|
@@ -6002,7 +6337,7 @@ function useDropdownPosition(clientRect, itemsCount) {
|
|
|
6002
6337
|
resizeObserver.disconnect();
|
|
6003
6338
|
};
|
|
6004
6339
|
}, [clientRect]);
|
|
6005
|
-
|
|
6340
|
+
React25.useLayoutEffect(() => {
|
|
6006
6341
|
if (!rect || !ref.current) return;
|
|
6007
6342
|
const dropdown = ref.current;
|
|
6008
6343
|
const dropdownRect = dropdown.getBoundingClientRect();
|
|
@@ -6029,15 +6364,15 @@ var SuggestionList = ({
|
|
|
6029
6364
|
debounceMs = DEFAULT_DEBOUNCE,
|
|
6030
6365
|
query
|
|
6031
6366
|
}) => {
|
|
6032
|
-
const [items, setItems] =
|
|
6033
|
-
const [isLoading, setIsLoading] =
|
|
6034
|
-
const fetchId =
|
|
6035
|
-
const debounceHandle =
|
|
6036
|
-
const itemRefs =
|
|
6367
|
+
const [items, setItems] = React25.useState([]);
|
|
6368
|
+
const [isLoading, setIsLoading] = React25.useState(false);
|
|
6369
|
+
const fetchId = React25.useRef(0);
|
|
6370
|
+
const debounceHandle = React25.useRef(null);
|
|
6371
|
+
const itemRefs = React25.useRef([]);
|
|
6037
6372
|
const { ref, style, rect } = useDropdownPosition(clientRect, items.length);
|
|
6038
|
-
const normalizedMap =
|
|
6039
|
-
const normalizeItem =
|
|
6040
|
-
|
|
6373
|
+
const normalizedMap = React25.useMemo(() => mapItem, [mapItem]);
|
|
6374
|
+
const normalizeItem = React25.useMemo(() => normalizeToken, [normalizeToken]);
|
|
6375
|
+
React25.useEffect(() => {
|
|
6041
6376
|
const runFetch = (input) => {
|
|
6042
6377
|
fetchId.current += 1;
|
|
6043
6378
|
const currentId = fetchId.current;
|
|
@@ -6068,7 +6403,7 @@ var SuggestionList = ({
|
|
|
6068
6403
|
fetchId.current += 1;
|
|
6069
6404
|
};
|
|
6070
6405
|
}, [query, fetchItems, normalizedMap, normalizeItem, debounceMs]);
|
|
6071
|
-
const handleSelect =
|
|
6406
|
+
const handleSelect = React25.useMemo(
|
|
6072
6407
|
() => (item) => {
|
|
6073
6408
|
if (isLoading) return;
|
|
6074
6409
|
command(item);
|
|
@@ -6083,10 +6418,10 @@ var SuggestionList = ({
|
|
|
6083
6418
|
},
|
|
6084
6419
|
isLoading
|
|
6085
6420
|
);
|
|
6086
|
-
|
|
6421
|
+
React25.useEffect(() => {
|
|
6087
6422
|
setSelectedIndex(0);
|
|
6088
6423
|
}, [items, setSelectedIndex]);
|
|
6089
|
-
|
|
6424
|
+
React25.useEffect(() => {
|
|
6090
6425
|
const element = itemRefs.current[selectedIndex];
|
|
6091
6426
|
if (element) element.scrollIntoView({ block: "nearest" });
|
|
6092
6427
|
}, [selectedIndex]);
|
|
@@ -6134,8 +6469,8 @@ var DISALLOWED_MARKS = ["bold", "italic", "link"];
|
|
|
6134
6469
|
var SUGGESTION_DEBOUNCE = 200;
|
|
6135
6470
|
var DEFAULT_CHIP_CLASS = "outline-1 outline-muted bg-muted/40 text-foreground";
|
|
6136
6471
|
var TokenView = ({ node, editor, getPos }) => {
|
|
6137
|
-
const [isFocused, setIsFocused] =
|
|
6138
|
-
|
|
6472
|
+
const [isFocused, setIsFocused] = React25__namespace.default.useState(false);
|
|
6473
|
+
React25__namespace.default.useEffect(() => {
|
|
6139
6474
|
const handler = () => {
|
|
6140
6475
|
const { from, to } = editor.state.selection;
|
|
6141
6476
|
const position = getPos();
|
|
@@ -6686,6 +7021,8 @@ __export(ui_exports, {
|
|
|
6686
7021
|
Input: () => Input,
|
|
6687
7022
|
InputPrimitive: () => InputPrimitive,
|
|
6688
7023
|
Label: () => Label2,
|
|
7024
|
+
ListContainer: () => container_default,
|
|
7025
|
+
ListHeader: () => header_default,
|
|
6689
7026
|
MonthPicker: () => MonthPicker,
|
|
6690
7027
|
Popover: () => Popover,
|
|
6691
7028
|
PopoverAnchor: () => PopoverAnchor,
|
|
@@ -6762,6 +7099,76 @@ __export(ui_exports, {
|
|
|
6762
7099
|
useFormField: () => useFormField,
|
|
6763
7100
|
useSidebar: () => useSidebar
|
|
6764
7101
|
});
|
|
7102
|
+
var ListContainer = ({ className, isLeftExpanded, children }) => {
|
|
7103
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7104
|
+
"div",
|
|
7105
|
+
{
|
|
7106
|
+
className: cn(
|
|
7107
|
+
"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",
|
|
7108
|
+
{
|
|
7109
|
+
"w-full": isLeftExpanded,
|
|
7110
|
+
"md:w-full": isLeftExpanded,
|
|
7111
|
+
"w-full lg:w-1/2": !isLeftExpanded
|
|
7112
|
+
},
|
|
7113
|
+
className
|
|
7114
|
+
),
|
|
7115
|
+
style: {
|
|
7116
|
+
position: "relative",
|
|
7117
|
+
transitionProperty: "width, transform",
|
|
7118
|
+
transitionDuration: "300ms"
|
|
7119
|
+
},
|
|
7120
|
+
children
|
|
7121
|
+
}
|
|
7122
|
+
);
|
|
7123
|
+
};
|
|
7124
|
+
var container_default = ListContainer;
|
|
7125
|
+
var ListHeader = ({
|
|
7126
|
+
title,
|
|
7127
|
+
titleIcon,
|
|
7128
|
+
isExpanded = false,
|
|
7129
|
+
bgColor = "bg-[#82B495]",
|
|
7130
|
+
textClassName = "text-white",
|
|
7131
|
+
onSettingClick,
|
|
7132
|
+
onExpandClick,
|
|
7133
|
+
rightActions,
|
|
7134
|
+
className
|
|
7135
|
+
}) => {
|
|
7136
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": "list-header", className: cn("rounded-t-lg px-4 py-2", bgColor, className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
7137
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-2 text-lg", textClassName), children: [
|
|
7138
|
+
titleIcon,
|
|
7139
|
+
title
|
|
7140
|
+
] }),
|
|
7141
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: rightActions ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7142
|
+
onSettingClick && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7143
|
+
"button",
|
|
7144
|
+
{
|
|
7145
|
+
onClick: onSettingClick,
|
|
7146
|
+
title: "Settings",
|
|
7147
|
+
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
7148
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(setting_default, { className: "text-white" })
|
|
7149
|
+
}
|
|
7150
|
+
),
|
|
7151
|
+
onSettingClick && onExpandClick && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("h-8 w-px", textClassName.replace("text-", "bg-")) }),
|
|
7152
|
+
onExpandClick && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7153
|
+
"button",
|
|
7154
|
+
{
|
|
7155
|
+
"data-testid": "list-expand-button",
|
|
7156
|
+
onClick: onExpandClick,
|
|
7157
|
+
title: isExpanded ? "Collapse" : "Expand",
|
|
7158
|
+
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
7159
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-0.5 text-white", children: isExpanded ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7160
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" }),
|
|
7161
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4 -ml-2" })
|
|
7162
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7163
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" }),
|
|
7164
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4 -ml-2" })
|
|
7165
|
+
] }) })
|
|
7166
|
+
}
|
|
7167
|
+
)
|
|
7168
|
+
] }) })
|
|
7169
|
+
] }) });
|
|
7170
|
+
};
|
|
7171
|
+
var header_default = ListHeader;
|
|
6765
7172
|
function RadioGroupRoot({
|
|
6766
7173
|
children,
|
|
6767
7174
|
...props
|
|
@@ -7050,21 +7457,21 @@ function ToolbarPlugin({
|
|
|
7050
7457
|
acceptImageMimeTypes
|
|
7051
7458
|
}) {
|
|
7052
7459
|
const [editor] = LexicalComposerContext.useLexicalComposerContext();
|
|
7053
|
-
const [state, setState] =
|
|
7054
|
-
const fileInputRef =
|
|
7055
|
-
const [isLinkDialogOpen, setLinkDialogOpen] =
|
|
7056
|
-
const [editingExistingLink, setEditingExistingLink] =
|
|
7057
|
-
const [linkNodeKey, setLinkNodeKey] =
|
|
7058
|
-
const [isImageDialogOpen, setImageDialogOpen] =
|
|
7059
|
-
const [editingExistingImage, setEditingExistingImage] =
|
|
7060
|
-
const [imageNodeKey, setImageNodeKey] =
|
|
7460
|
+
const [state, setState] = React25.useState(initialToolbarState);
|
|
7461
|
+
const fileInputRef = React25.useRef(null);
|
|
7462
|
+
const [isLinkDialogOpen, setLinkDialogOpen] = React25.useState(false);
|
|
7463
|
+
const [editingExistingLink, setEditingExistingLink] = React25.useState(false);
|
|
7464
|
+
const [linkNodeKey, setLinkNodeKey] = React25.useState(null);
|
|
7465
|
+
const [isImageDialogOpen, setImageDialogOpen] = React25.useState(false);
|
|
7466
|
+
const [editingExistingImage, setEditingExistingImage] = React25.useState(false);
|
|
7467
|
+
const [imageNodeKey, setImageNodeKey] = React25.useState(null);
|
|
7061
7468
|
const linkForm = reactHookForm.useForm({
|
|
7062
7469
|
defaultValues: { url: "", label: "" }
|
|
7063
7470
|
});
|
|
7064
7471
|
const imageForm = reactHookForm.useForm({
|
|
7065
7472
|
defaultValues: { url: "", alt: "", width: "", height: "" }
|
|
7066
7473
|
});
|
|
7067
|
-
const openImageDialog =
|
|
7474
|
+
const openImageDialog = React25.useCallback(() => {
|
|
7068
7475
|
if (disabled || !allowImageUrlInsert) {
|
|
7069
7476
|
return;
|
|
7070
7477
|
}
|
|
@@ -7098,7 +7505,7 @@ function ToolbarPlugin({
|
|
|
7098
7505
|
setImageNodeKey(targetImage?.getKey() ?? null);
|
|
7099
7506
|
setImageDialogOpen(true);
|
|
7100
7507
|
}, [allowImageUrlInsert, disabled, editor, imageForm]);
|
|
7101
|
-
const closeImageDialog =
|
|
7508
|
+
const closeImageDialog = React25.useCallback(() => {
|
|
7102
7509
|
setImageDialogOpen(false);
|
|
7103
7510
|
setEditingExistingImage(false);
|
|
7104
7511
|
setImageNodeKey(null);
|
|
@@ -7107,7 +7514,7 @@ function ToolbarPlugin({
|
|
|
7107
7514
|
editor.focus();
|
|
7108
7515
|
}, 0);
|
|
7109
7516
|
}, [editor, imageForm]);
|
|
7110
|
-
const openLinkDialog =
|
|
7517
|
+
const openLinkDialog = React25.useCallback(() => {
|
|
7111
7518
|
if (disabled) {
|
|
7112
7519
|
return;
|
|
7113
7520
|
}
|
|
@@ -7147,7 +7554,7 @@ function ToolbarPlugin({
|
|
|
7147
7554
|
setLinkNodeKey(detectedLink?.getKey() ?? null);
|
|
7148
7555
|
setLinkDialogOpen(true);
|
|
7149
7556
|
}, [disabled, editor, linkForm]);
|
|
7150
|
-
const closeLinkDialog =
|
|
7557
|
+
const closeLinkDialog = React25.useCallback(() => {
|
|
7151
7558
|
setLinkDialogOpen(false);
|
|
7152
7559
|
setEditingExistingLink(false);
|
|
7153
7560
|
setLinkNodeKey(null);
|
|
@@ -7188,7 +7595,7 @@ function ToolbarPlugin({
|
|
|
7188
7595
|
});
|
|
7189
7596
|
closeLinkDialog();
|
|
7190
7597
|
});
|
|
7191
|
-
const handleRemoveLink =
|
|
7598
|
+
const handleRemoveLink = React25.useCallback(() => {
|
|
7192
7599
|
editor.focus();
|
|
7193
7600
|
editor.update(() => {
|
|
7194
7601
|
if (linkNodeKey) {
|
|
@@ -7205,7 +7612,7 @@ function ToolbarPlugin({
|
|
|
7205
7612
|
});
|
|
7206
7613
|
closeLinkDialog();
|
|
7207
7614
|
}, [closeLinkDialog, editor, linkNodeKey]);
|
|
7208
|
-
const handleLinkDialogOpenChange =
|
|
7615
|
+
const handleLinkDialogOpenChange = React25.useCallback(
|
|
7209
7616
|
(open) => {
|
|
7210
7617
|
if (open) {
|
|
7211
7618
|
setLinkDialogOpen(true);
|
|
@@ -7215,7 +7622,7 @@ function ToolbarPlugin({
|
|
|
7215
7622
|
},
|
|
7216
7623
|
[closeLinkDialog]
|
|
7217
7624
|
);
|
|
7218
|
-
const updateToolbar =
|
|
7625
|
+
const updateToolbar = React25.useCallback(() => {
|
|
7219
7626
|
const selection = lexical.$getSelection();
|
|
7220
7627
|
if (!lexical.$isRangeSelection(selection)) {
|
|
7221
7628
|
return;
|
|
@@ -7255,7 +7662,7 @@ function ToolbarPlugin({
|
|
|
7255
7662
|
isLink: hasLink
|
|
7256
7663
|
}));
|
|
7257
7664
|
}, []);
|
|
7258
|
-
|
|
7665
|
+
React25__namespace.useEffect(() => {
|
|
7259
7666
|
return utils.mergeRegister(
|
|
7260
7667
|
editor.registerCommand(
|
|
7261
7668
|
lexical.CAN_UNDO_COMMAND,
|
|
@@ -7286,7 +7693,7 @@ function ToolbarPlugin({
|
|
|
7286
7693
|
})
|
|
7287
7694
|
);
|
|
7288
7695
|
}, [editor, updateToolbar]);
|
|
7289
|
-
const applyBlock =
|
|
7696
|
+
const applyBlock = React25.useCallback(
|
|
7290
7697
|
(nextBlock) => {
|
|
7291
7698
|
if (disabled) {
|
|
7292
7699
|
return;
|
|
@@ -7348,7 +7755,7 @@ function ToolbarPlugin({
|
|
|
7348
7755
|
},
|
|
7349
7756
|
[disabled, editor, state.blockType]
|
|
7350
7757
|
);
|
|
7351
|
-
const toggleFormat =
|
|
7758
|
+
const toggleFormat = React25.useCallback(
|
|
7352
7759
|
(format5) => {
|
|
7353
7760
|
if (disabled) {
|
|
7354
7761
|
return;
|
|
@@ -7357,10 +7764,10 @@ function ToolbarPlugin({
|
|
|
7357
7764
|
},
|
|
7358
7765
|
[disabled, editor]
|
|
7359
7766
|
);
|
|
7360
|
-
const toggleLink =
|
|
7767
|
+
const toggleLink = React25.useCallback(() => {
|
|
7361
7768
|
openLinkDialog();
|
|
7362
7769
|
}, [openLinkDialog]);
|
|
7363
|
-
const applyElementFormat =
|
|
7770
|
+
const applyElementFormat = React25.useCallback(
|
|
7364
7771
|
(format5) => {
|
|
7365
7772
|
if (disabled) {
|
|
7366
7773
|
return;
|
|
@@ -7371,7 +7778,7 @@ function ToolbarPlugin({
|
|
|
7371
7778
|
);
|
|
7372
7779
|
const canInsertImage = allowImageUrlInsert || Boolean(onImageUpload);
|
|
7373
7780
|
const imageAccept = acceptImageMimeTypes ?? DEFAULT_IMAGE_ACCEPT;
|
|
7374
|
-
const handleInsertImage =
|
|
7781
|
+
const handleInsertImage = React25.useCallback(() => {
|
|
7375
7782
|
if (disabled || !canInsertImage) {
|
|
7376
7783
|
return;
|
|
7377
7784
|
}
|
|
@@ -7382,7 +7789,7 @@ function ToolbarPlugin({
|
|
|
7382
7789
|
}
|
|
7383
7790
|
openImageDialog();
|
|
7384
7791
|
}, [canInsertImage, disabled, editor, onImageUpload, openImageDialog]);
|
|
7385
|
-
const handleFileChange =
|
|
7792
|
+
const handleFileChange = React25.useCallback(
|
|
7386
7793
|
async (event) => {
|
|
7387
7794
|
if (!onImageUpload) {
|
|
7388
7795
|
return;
|
|
@@ -7472,7 +7879,7 @@ function ToolbarPlugin({
|
|
|
7472
7879
|
});
|
|
7473
7880
|
closeImageDialog();
|
|
7474
7881
|
});
|
|
7475
|
-
const handleImageDialogOpenChange =
|
|
7882
|
+
const handleImageDialogOpenChange = React25.useCallback(
|
|
7476
7883
|
(open) => {
|
|
7477
7884
|
if (open) {
|
|
7478
7885
|
setImageDialogOpen(true);
|
|
@@ -7482,7 +7889,7 @@ function ToolbarPlugin({
|
|
|
7482
7889
|
},
|
|
7483
7890
|
[closeImageDialog]
|
|
7484
7891
|
);
|
|
7485
|
-
const handleRemoveImage =
|
|
7892
|
+
const handleRemoveImage = React25.useCallback(() => {
|
|
7486
7893
|
if (!imageNodeKey) {
|
|
7487
7894
|
closeImageDialog();
|
|
7488
7895
|
return;
|
|
@@ -7841,7 +8248,7 @@ function ControlledValuePlugin({
|
|
|
7841
8248
|
trackAppliedValue
|
|
7842
8249
|
}) {
|
|
7843
8250
|
const [editor] = LexicalComposerContext.useLexicalComposerContext();
|
|
7844
|
-
|
|
8251
|
+
React25__namespace.useEffect(() => {
|
|
7845
8252
|
if (value == null || trackAppliedValue.current === value) {
|
|
7846
8253
|
return;
|
|
7847
8254
|
}
|
|
@@ -7865,14 +8272,14 @@ function ControlledValuePlugin({
|
|
|
7865
8272
|
}
|
|
7866
8273
|
function EditableStatePlugin({ editable }) {
|
|
7867
8274
|
const [editor] = LexicalComposerContext.useLexicalComposerContext();
|
|
7868
|
-
|
|
8275
|
+
React25__namespace.useEffect(() => {
|
|
7869
8276
|
editor.setEditable(editable);
|
|
7870
8277
|
}, [editor, editable]);
|
|
7871
8278
|
return null;
|
|
7872
8279
|
}
|
|
7873
8280
|
function ImagesPlugin() {
|
|
7874
8281
|
const [editor] = LexicalComposerContext.useLexicalComposerContext();
|
|
7875
|
-
|
|
8282
|
+
React25__namespace.useEffect(() => {
|
|
7876
8283
|
return editor.registerCommand(
|
|
7877
8284
|
INSERT_IMAGE_COMMAND,
|
|
7878
8285
|
(payload) => {
|
|
@@ -7891,7 +8298,7 @@ function ImagesPlugin() {
|
|
|
7891
8298
|
}, [editor]);
|
|
7892
8299
|
return null;
|
|
7893
8300
|
}
|
|
7894
|
-
var RichText =
|
|
8301
|
+
var RichText = React25.forwardRef(function RichText2({
|
|
7895
8302
|
value,
|
|
7896
8303
|
defaultValue,
|
|
7897
8304
|
onChange,
|
|
@@ -7910,11 +8317,11 @@ var RichText = React26.forwardRef(function RichText2({
|
|
|
7910
8317
|
id,
|
|
7911
8318
|
...rest
|
|
7912
8319
|
}, ref) {
|
|
7913
|
-
const initialSerializedStateRef =
|
|
8320
|
+
const initialSerializedStateRef = React25.useRef(void 0);
|
|
7914
8321
|
if (initialSerializedStateRef.current === void 0) {
|
|
7915
8322
|
initialSerializedStateRef.current = parseSerializedEditorState(value ?? defaultValue);
|
|
7916
8323
|
}
|
|
7917
|
-
const initialConfig =
|
|
8324
|
+
const initialConfig = React25.useMemo(
|
|
7918
8325
|
() => ({
|
|
7919
8326
|
namespace: "RichTextEditor",
|
|
7920
8327
|
editable: !(readOnly || disabled),
|
|
@@ -7927,8 +8334,8 @@ var RichText = React26.forwardRef(function RichText2({
|
|
|
7927
8334
|
}),
|
|
7928
8335
|
[disabled, readOnly]
|
|
7929
8336
|
);
|
|
7930
|
-
const appliedValueRef =
|
|
7931
|
-
const handleChange =
|
|
8337
|
+
const appliedValueRef = React25.useRef(value ?? defaultValue);
|
|
8338
|
+
const handleChange = React25.useCallback(
|
|
7932
8339
|
(editorState, editor) => {
|
|
7933
8340
|
const serialized = JSON.stringify(editorState.toJSON());
|
|
7934
8341
|
appliedValueRef.current = serialized;
|
|
@@ -8117,13 +8524,13 @@ function SheetDescription({
|
|
|
8117
8524
|
);
|
|
8118
8525
|
}
|
|
8119
8526
|
function useIsMobile(breakpoint = 768) {
|
|
8120
|
-
const [isMobile, setIsMobile] =
|
|
8527
|
+
const [isMobile, setIsMobile] = React25.useState(() => {
|
|
8121
8528
|
if (typeof window === "undefined") {
|
|
8122
8529
|
return false;
|
|
8123
8530
|
}
|
|
8124
8531
|
return window.innerWidth < breakpoint;
|
|
8125
8532
|
});
|
|
8126
|
-
|
|
8533
|
+
React25.useEffect(() => {
|
|
8127
8534
|
function onResize() {
|
|
8128
8535
|
setIsMobile(window.innerWidth < breakpoint);
|
|
8129
8536
|
}
|
|
@@ -8153,9 +8560,9 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
8153
8560
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
8154
8561
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
8155
8562
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
8156
|
-
var SidebarContext =
|
|
8563
|
+
var SidebarContext = React25__namespace.createContext(null);
|
|
8157
8564
|
function useSidebar() {
|
|
8158
|
-
const context =
|
|
8565
|
+
const context = React25__namespace.useContext(SidebarContext);
|
|
8159
8566
|
if (!context) {
|
|
8160
8567
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
8161
8568
|
}
|
|
@@ -8171,10 +8578,10 @@ function SidebarProvider({
|
|
|
8171
8578
|
...props
|
|
8172
8579
|
}) {
|
|
8173
8580
|
const isMobile = useIsMobile();
|
|
8174
|
-
const [openMobile, setOpenMobile] =
|
|
8175
|
-
const [_open, _setOpen] =
|
|
8581
|
+
const [openMobile, setOpenMobile] = React25__namespace.useState(false);
|
|
8582
|
+
const [_open, _setOpen] = React25__namespace.useState(defaultOpen);
|
|
8176
8583
|
const open = openProp ?? _open;
|
|
8177
|
-
const setOpen =
|
|
8584
|
+
const setOpen = React25__namespace.useCallback(
|
|
8178
8585
|
(value) => {
|
|
8179
8586
|
const openState = typeof value === "function" ? value(open) : value;
|
|
8180
8587
|
if (setOpenProp) {
|
|
@@ -8186,10 +8593,10 @@ function SidebarProvider({
|
|
|
8186
8593
|
},
|
|
8187
8594
|
[setOpenProp, open]
|
|
8188
8595
|
);
|
|
8189
|
-
const toggleSidebar =
|
|
8596
|
+
const toggleSidebar = React25__namespace.useCallback(() => {
|
|
8190
8597
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
8191
8598
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
8192
|
-
|
|
8599
|
+
React25__namespace.useEffect(() => {
|
|
8193
8600
|
const handleKeyDown = (event) => {
|
|
8194
8601
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
8195
8602
|
event.preventDefault();
|
|
@@ -8200,7 +8607,7 @@ function SidebarProvider({
|
|
|
8200
8607
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
8201
8608
|
}, [toggleSidebar]);
|
|
8202
8609
|
const state = open ? "expanded" : "collapsed";
|
|
8203
|
-
const contextValue =
|
|
8610
|
+
const contextValue = React25__namespace.useMemo(
|
|
8204
8611
|
() => ({
|
|
8205
8612
|
state,
|
|
8206
8613
|
open,
|
|
@@ -8642,7 +9049,7 @@ function SidebarMenuSkeleton({
|
|
|
8642
9049
|
showIcon = false,
|
|
8643
9050
|
...props
|
|
8644
9051
|
}) {
|
|
8645
|
-
const width =
|
|
9052
|
+
const width = React25__namespace.useMemo(() => {
|
|
8646
9053
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
8647
9054
|
}, []);
|
|
8648
9055
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8907,10 +9314,10 @@ var FormulaEditor = ({
|
|
|
8907
9314
|
fieldState,
|
|
8908
9315
|
mode = "edit"
|
|
8909
9316
|
}) => {
|
|
8910
|
-
const [isExpanded, setIsExpanded] =
|
|
8911
|
-
const lastEmittedValueRef =
|
|
8912
|
-
const ignorePropValueRef =
|
|
8913
|
-
const normalizedConfigs =
|
|
9317
|
+
const [isExpanded, setIsExpanded] = React25.useState(false);
|
|
9318
|
+
const lastEmittedValueRef = React25.useRef(null);
|
|
9319
|
+
const ignorePropValueRef = React25.useRef(false);
|
|
9320
|
+
const normalizedConfigs = React25.useMemo(() => {
|
|
8914
9321
|
const configsToUse = tokenConfigs?.length ? tokenConfigs : DEFAULT_TOKEN_CONFIGS;
|
|
8915
9322
|
return configsToUse.map((config) => ({
|
|
8916
9323
|
...config,
|
|
@@ -8919,18 +9326,18 @@ var FormulaEditor = ({
|
|
|
8919
9326
|
outputType: config.outputType ?? config.type
|
|
8920
9327
|
}));
|
|
8921
9328
|
}, [tokenConfigs]);
|
|
8922
|
-
const prefixMap =
|
|
8923
|
-
const configLookup =
|
|
9329
|
+
const prefixMap = React25.useMemo(() => buildPrefixMap(normalizedConfigs), [normalizedConfigs]);
|
|
9330
|
+
const configLookup = React25.useMemo(() => {
|
|
8924
9331
|
const lookup = /* @__PURE__ */ new Map();
|
|
8925
9332
|
normalizedConfigs.forEach((config) => lookup.set(config.prefix, config));
|
|
8926
9333
|
return lookup;
|
|
8927
9334
|
}, [normalizedConfigs]);
|
|
8928
|
-
const allowedOperators =
|
|
9335
|
+
const allowedOperators = React25.useMemo(() => operators.map((operator) => operator.value), [operators]);
|
|
8929
9336
|
const displayError = errorMessage ?? fieldState?.error?.message;
|
|
8930
9337
|
const hasError = Boolean(displayError);
|
|
8931
9338
|
const isEditorReadOnly = mode === "display";
|
|
8932
9339
|
const isEditorDisabled = disabled || loading || isEditorReadOnly;
|
|
8933
|
-
const convertValueToContent =
|
|
9340
|
+
const convertValueToContent = React25.useCallback(
|
|
8934
9341
|
(input) => {
|
|
8935
9342
|
if (!input) return "";
|
|
8936
9343
|
const trimmed = input.trim();
|
|
@@ -8942,8 +9349,8 @@ var FormulaEditor = ({
|
|
|
8942
9349
|
},
|
|
8943
9350
|
[configLookup, prefixMap]
|
|
8944
9351
|
);
|
|
8945
|
-
const resolvedContent =
|
|
8946
|
-
const extensions =
|
|
9352
|
+
const resolvedContent = React25.useMemo(() => convertValueToContent(value), [convertValueToContent, value]);
|
|
9353
|
+
const extensions = React25.useMemo(
|
|
8947
9354
|
() => [
|
|
8948
9355
|
StarterKit__default.default.configure({ bold: false, italic: false }),
|
|
8949
9356
|
Token.configure({ configs: normalizedConfigs, onSelect: onSelectSuggestion }),
|
|
@@ -8975,11 +9382,11 @@ var FormulaEditor = ({
|
|
|
8975
9382
|
}
|
|
8976
9383
|
}
|
|
8977
9384
|
});
|
|
8978
|
-
|
|
9385
|
+
React25.useEffect(() => {
|
|
8979
9386
|
if (!editor) return;
|
|
8980
9387
|
editor.setEditable(!isEditorDisabled);
|
|
8981
9388
|
}, [editor, isEditorDisabled]);
|
|
8982
|
-
|
|
9389
|
+
React25.useEffect(() => {
|
|
8983
9390
|
if (!editor || resolvedContent === void 0) return;
|
|
8984
9391
|
if (ignorePropValueRef.current && typeof value === "string" && value === lastEmittedValueRef.current) {
|
|
8985
9392
|
ignorePropValueRef.current = false;
|
|
@@ -9111,7 +9518,7 @@ function SortableRow({
|
|
|
9111
9518
|
id: value,
|
|
9112
9519
|
disabled: name === "columns.0.id"
|
|
9113
9520
|
});
|
|
9114
|
-
const style =
|
|
9521
|
+
const style = React25__namespace.useMemo(
|
|
9115
9522
|
() => ({
|
|
9116
9523
|
transform: utilities.CSS.Transform.toString(transform),
|
|
9117
9524
|
transition
|
|
@@ -9223,8 +9630,8 @@ var GridSettingsModal = ({
|
|
|
9223
9630
|
onClose,
|
|
9224
9631
|
onSaveColumns
|
|
9225
9632
|
}) => {
|
|
9226
|
-
const [isDragging, setIsDragging] =
|
|
9227
|
-
const scrollRef =
|
|
9633
|
+
const [isDragging, setIsDragging] = React25.useState(false);
|
|
9634
|
+
const scrollRef = React25.useRef(null);
|
|
9228
9635
|
const form = reactHookForm.useForm({
|
|
9229
9636
|
resolver: zod$1.zodResolver(GridSettingsSchema),
|
|
9230
9637
|
defaultValues: { columns: currentColumns },
|
|
@@ -9236,7 +9643,7 @@ var GridSettingsModal = ({
|
|
|
9236
9643
|
name: "columns",
|
|
9237
9644
|
keyName: "fieldId"
|
|
9238
9645
|
});
|
|
9239
|
-
|
|
9646
|
+
React25.useEffect(() => {
|
|
9240
9647
|
if (isOpen) {
|
|
9241
9648
|
form.reset({ columns: currentColumns });
|
|
9242
9649
|
}
|
|
@@ -9513,7 +9920,7 @@ function getCandidateWidths({
|
|
|
9513
9920
|
}
|
|
9514
9921
|
return DEVICE_SIZES;
|
|
9515
9922
|
}
|
|
9516
|
-
var Image2 =
|
|
9923
|
+
var Image2 = React25__namespace.forwardRef(function Image3({
|
|
9517
9924
|
src,
|
|
9518
9925
|
alt,
|
|
9519
9926
|
width,
|
|
@@ -9543,34 +9950,34 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9543
9950
|
} = imgProps;
|
|
9544
9951
|
const widthNumber = toNumber(width);
|
|
9545
9952
|
const heightNumber = toNumber(height);
|
|
9546
|
-
|
|
9953
|
+
React25__namespace.useEffect(() => {
|
|
9547
9954
|
if (!fill && (!widthNumber || !heightNumber)) {
|
|
9548
9955
|
console.warn(
|
|
9549
9956
|
"[Image] When `fill` is false you should provide both `width` and `height` to prevent layout shifts."
|
|
9550
9957
|
);
|
|
9551
9958
|
}
|
|
9552
9959
|
}, [fill, heightNumber, widthNumber]);
|
|
9553
|
-
const candidateWidths =
|
|
9960
|
+
const candidateWidths = React25__namespace.useMemo(
|
|
9554
9961
|
() => getCandidateWidths({ width: widthNumber, sizes, fill }),
|
|
9555
9962
|
[fill, sizes, widthNumber]
|
|
9556
9963
|
);
|
|
9557
9964
|
const largestWidth = candidateWidths[candidateWidths.length - 1] ?? widthNumber ?? DEVICE_SIZES[DEVICE_SIZES.length - 1];
|
|
9558
|
-
const computedSrc =
|
|
9965
|
+
const computedSrc = React25__namespace.useMemo(() => {
|
|
9559
9966
|
if (unoptimized) {
|
|
9560
9967
|
return src;
|
|
9561
9968
|
}
|
|
9562
9969
|
return loader({ src, width: largestWidth, quality });
|
|
9563
9970
|
}, [largestWidth, loader, quality, src, unoptimized]);
|
|
9564
|
-
const computedSrcSet =
|
|
9971
|
+
const computedSrcSet = React25__namespace.useMemo(() => {
|
|
9565
9972
|
if (unoptimized) {
|
|
9566
9973
|
return void 0;
|
|
9567
9974
|
}
|
|
9568
9975
|
return candidateWidths.map((currentWidth) => `${loader({ src, width: currentWidth, quality })} ${currentWidth}w`).join(", ");
|
|
9569
9976
|
}, [candidateWidths, loader, quality, src, unoptimized]);
|
|
9570
9977
|
const sizesValue = sizes ?? (fill ? "100vw" : widthNumber ? `${widthNumber}px` : void 0);
|
|
9571
|
-
const [isLoaded, setIsLoaded] =
|
|
9572
|
-
const internalRef =
|
|
9573
|
-
const setRefs =
|
|
9978
|
+
const [isLoaded, setIsLoaded] = React25__namespace.useState(false);
|
|
9979
|
+
const internalRef = React25__namespace.useRef(null);
|
|
9980
|
+
const setRefs = React25__namespace.useCallback(
|
|
9574
9981
|
(node) => {
|
|
9575
9982
|
internalRef.current = node;
|
|
9576
9983
|
if (!ref) {
|
|
@@ -9584,7 +9991,7 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9584
9991
|
},
|
|
9585
9992
|
[ref]
|
|
9586
9993
|
);
|
|
9587
|
-
|
|
9994
|
+
React25__namespace.useEffect(() => {
|
|
9588
9995
|
const image = internalRef.current;
|
|
9589
9996
|
if (!image) {
|
|
9590
9997
|
return;
|
|
@@ -9596,7 +10003,7 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9596
10003
|
setIsLoaded(false);
|
|
9597
10004
|
}
|
|
9598
10005
|
}, [onLoadingComplete, src]);
|
|
9599
|
-
const handleLoad =
|
|
10006
|
+
const handleLoad = React25__namespace.useCallback(
|
|
9600
10007
|
(event) => {
|
|
9601
10008
|
setIsLoaded(true);
|
|
9602
10009
|
onLoadProp?.(event);
|
|
@@ -9608,7 +10015,7 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9608
10015
|
const fetchPriority = priority ? "high" : fetchPriorityProp;
|
|
9609
10016
|
const decoding = decodingProp ?? "async";
|
|
9610
10017
|
const resolvedObjectFit = objectFit ?? (fill ? "cover" : void 0);
|
|
9611
|
-
const wrapperStyle =
|
|
10018
|
+
const wrapperStyle = React25__namespace.useMemo(
|
|
9612
10019
|
() => ({
|
|
9613
10020
|
position: "relative",
|
|
9614
10021
|
display: fill ? "block" : "inline-block",
|
|
@@ -9618,7 +10025,7 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9618
10025
|
}),
|
|
9619
10026
|
[fill, height, width]
|
|
9620
10027
|
);
|
|
9621
|
-
const imageStyle =
|
|
10028
|
+
const imageStyle = React25__namespace.useMemo(
|
|
9622
10029
|
() => ({
|
|
9623
10030
|
width: fill ? "100%" : formatDimension(width) ?? void 0,
|
|
9624
10031
|
height: fill ? "100%" : formatDimension(height) ?? void 0,
|
|
@@ -9679,107 +10086,47 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9679
10086
|
);
|
|
9680
10087
|
});
|
|
9681
10088
|
Image2.displayName = "Image";
|
|
9682
|
-
var
|
|
9683
|
-
React26__namespace.useEffect(() => {
|
|
9684
|
-
if (onTableReady) {
|
|
9685
|
-
onTableReady({ ready: true });
|
|
9686
|
-
}
|
|
9687
|
-
}, [onTableReady]);
|
|
9688
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full w-full items-center justify-center", children: children ?? "Provide your table implementation here." });
|
|
9689
|
-
};
|
|
9690
|
-
var table_default = ListTable;
|
|
9691
|
-
var ListContainer = ({ className, isLeftExpanded, children }) => {
|
|
9692
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9693
|
-
"div",
|
|
9694
|
-
{
|
|
9695
|
-
className: cn(
|
|
9696
|
-
"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",
|
|
9697
|
-
{
|
|
9698
|
-
"w-full": isLeftExpanded,
|
|
9699
|
-
"md:w-full": isLeftExpanded,
|
|
9700
|
-
"w-full lg:w-1/2": !isLeftExpanded
|
|
9701
|
-
},
|
|
9702
|
-
className
|
|
9703
|
-
),
|
|
9704
|
-
style: {
|
|
9705
|
-
position: "relative",
|
|
9706
|
-
transitionProperty: "width, transform",
|
|
9707
|
-
transitionDuration: "300ms"
|
|
9708
|
-
},
|
|
9709
|
-
children
|
|
9710
|
-
}
|
|
9711
|
-
);
|
|
9712
|
-
};
|
|
9713
|
-
var container_default = ListContainer;
|
|
9714
|
-
var ListHeader = ({
|
|
10089
|
+
var MainListContainer = ({
|
|
9715
10090
|
title,
|
|
9716
10091
|
titleIcon,
|
|
9717
|
-
isExpanded =
|
|
9718
|
-
bgColor = "bg-[#82B495]",
|
|
9719
|
-
textClassName = "text-white",
|
|
10092
|
+
isExpanded = true,
|
|
9720
10093
|
onSettingClick,
|
|
9721
10094
|
onExpandClick,
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-2 text-lg", textClassName), children: [
|
|
9727
|
-
titleIcon,
|
|
9728
|
-
title
|
|
9729
|
-
] }),
|
|
9730
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: rightActions ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
9731
|
-
onSettingClick && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9732
|
-
"button",
|
|
9733
|
-
{
|
|
9734
|
-
onClick: onSettingClick,
|
|
9735
|
-
title: "Settings",
|
|
9736
|
-
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
9737
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(setting_default, { className: "text-white" })
|
|
9738
|
-
}
|
|
9739
|
-
),
|
|
9740
|
-
onSettingClick && onExpandClick && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("h-8 w-px", textClassName.replace("text-", "bg-")) }),
|
|
9741
|
-
onExpandClick && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9742
|
-
"button",
|
|
9743
|
-
{
|
|
9744
|
-
"data-testid": "list-expand-button",
|
|
9745
|
-
onClick: onExpandClick,
|
|
9746
|
-
title: isExpanded ? "Collapse" : "Expand",
|
|
9747
|
-
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
9748
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-[2px] text-white", children: isExpanded ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
9749
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" }),
|
|
9750
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4 -ml-2" })
|
|
9751
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
9752
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" }),
|
|
9753
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4 -ml-2" })
|
|
9754
|
-
] }) })
|
|
9755
|
-
}
|
|
9756
|
-
)
|
|
9757
|
-
] }) })
|
|
9758
|
-
] }) });
|
|
9759
|
-
};
|
|
9760
|
-
var header_default = ListHeader;
|
|
9761
|
-
var List = ({
|
|
9762
|
-
isLeftExpanded,
|
|
9763
|
-
handleSettingClick,
|
|
9764
|
-
handleExpandClick,
|
|
9765
|
-
onTableReady,
|
|
9766
|
-
children
|
|
10095
|
+
children,
|
|
10096
|
+
slots,
|
|
10097
|
+
classNames,
|
|
10098
|
+
renderHeader
|
|
9767
10099
|
}) => {
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
10100
|
+
const Container = slots?.Container ?? container_default;
|
|
10101
|
+
const Header2 = slots?.Header ?? header_default;
|
|
10102
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10103
|
+
Container,
|
|
10104
|
+
{
|
|
10105
|
+
isLeftExpanded: isExpanded,
|
|
10106
|
+
className: cn("flex flex-col bg-white shadow-lg", classNames?.root),
|
|
10107
|
+
children: [
|
|
10108
|
+
renderHeader ? renderHeader({
|
|
10109
|
+
title,
|
|
10110
|
+
titleIcon,
|
|
10111
|
+
isExpanded,
|
|
10112
|
+
onSettingClick,
|
|
10113
|
+
onExpandClick
|
|
10114
|
+
}) : Header2 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
10115
|
+
Header2,
|
|
10116
|
+
{
|
|
10117
|
+
title,
|
|
10118
|
+
titleIcon,
|
|
10119
|
+
isExpanded,
|
|
10120
|
+
onSettingClick,
|
|
10121
|
+
onExpandClick
|
|
10122
|
+
}
|
|
10123
|
+
) : null,
|
|
10124
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex-1 flex flex-col relative min-h-0", classNames?.content), children })
|
|
10125
|
+
]
|
|
10126
|
+
}
|
|
10127
|
+
);
|
|
9781
10128
|
};
|
|
9782
|
-
var
|
|
10129
|
+
var MainListContainer_default = MainListContainer;
|
|
9783
10130
|
var InfoIcon = (props) => {
|
|
9784
10131
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9785
10132
|
"svg",
|
|
@@ -9825,7 +10172,7 @@ var InfoIcon = (props) => {
|
|
|
9825
10172
|
}
|
|
9826
10173
|
);
|
|
9827
10174
|
};
|
|
9828
|
-
var InfoIcon_default =
|
|
10175
|
+
var InfoIcon_default = React25__namespace.default.memo(InfoIcon);
|
|
9829
10176
|
var Navbar = ({
|
|
9830
10177
|
className,
|
|
9831
10178
|
title,
|
|
@@ -9850,7 +10197,7 @@ var Navbar = ({
|
|
|
9850
10197
|
}) => {
|
|
9851
10198
|
const { isMobile, isTablet, isDesktop } = useScreenSize_default();
|
|
9852
10199
|
const Icon2 = lucideReact.CircleHelp;
|
|
9853
|
-
const shouldShowSeparator = !separatorDisable &&
|
|
10200
|
+
const shouldShowSeparator = !separatorDisable && React25.isValidElement(searchButton);
|
|
9854
10201
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9855
10202
|
"nav",
|
|
9856
10203
|
{
|
|
@@ -9861,8 +10208,8 @@ var Navbar = ({
|
|
|
9861
10208
|
children: [
|
|
9862
10209
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
9863
10210
|
headImageURL !== "" ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: headImageURL, alt: "", className: cn("w-full h-full", headImageURLClassName) }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
|
|
9864
|
-
|
|
9865
|
-
|
|
10211
|
+
React25.isValidElement(title) ? title : /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-white text-xl font-bold", children: title }),
|
|
10212
|
+
React25.isValidElement(subTitle) ? subTitle : /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-white text-sm font-semibold", children: subTitle })
|
|
9866
10213
|
] }),
|
|
9867
10214
|
tooltipTitle && /* @__PURE__ */ jsxRuntime.jsxs(Tooltip2, { children: [
|
|
9868
10215
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("button", { className: "text-white hover:opacity-80 ", children: /* @__PURE__ */ jsxRuntime.jsx(InfoIcon_default, { className: "w-4" }) }) }),
|
|
@@ -9893,10 +10240,10 @@ var Navbar = ({
|
|
|
9893
10240
|
),
|
|
9894
10241
|
children: [
|
|
9895
10242
|
tooltipTitle && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
9896
|
-
|
|
10243
|
+
React25.isValidElement(tooltipIcon) ? tooltipIcon : /* @__PURE__ */ jsxRuntime.jsx(Icon2, { size: 32, "aria-hidden": "true" }),
|
|
9897
10244
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-bold", children: tooltipTitle })
|
|
9898
10245
|
] }),
|
|
9899
|
-
|
|
10246
|
+
React25.isValidElement(tooltipdescription) && tooltipdescription
|
|
9900
10247
|
]
|
|
9901
10248
|
}
|
|
9902
10249
|
),
|
|
@@ -9951,13 +10298,13 @@ var Navbar = ({
|
|
|
9951
10298
|
}
|
|
9952
10299
|
),
|
|
9953
10300
|
shouldShowSeparator && /* @__PURE__ */ jsxRuntime.jsx("div", { role: "separator", className: "ml-1 w-[1px] h-10 bg-white" }),
|
|
9954
|
-
|
|
10301
|
+
React25.isValidElement(searchButton) ? searchButton : ""
|
|
9955
10302
|
] })
|
|
9956
10303
|
]
|
|
9957
10304
|
}
|
|
9958
10305
|
);
|
|
9959
10306
|
};
|
|
9960
|
-
var navbar_default =
|
|
10307
|
+
var navbar_default = React25__namespace.default.memo(Navbar);
|
|
9961
10308
|
var usePreventPageLeaveStore = zustand.create((set) => ({
|
|
9962
10309
|
isPreventing: false,
|
|
9963
10310
|
setPreventing: (value) => set({ isPreventing: value })
|
|
@@ -9967,7 +10314,7 @@ var usePreventPageLeaveStore_default = usePreventPageLeaveStore;
|
|
|
9967
10314
|
// src/components/prevent-page-leave/PreventPageLeave.tsx
|
|
9968
10315
|
var PreventPageLeave = ({ children }) => {
|
|
9969
10316
|
const { isPreventing } = usePreventPageLeaveStore();
|
|
9970
|
-
|
|
10317
|
+
React25.useEffect(() => {
|
|
9971
10318
|
if (!isPreventing || typeof window === "undefined") {
|
|
9972
10319
|
return;
|
|
9973
10320
|
}
|
|
@@ -9985,11 +10332,76 @@ var PreventPageLeave = ({ children }) => {
|
|
|
9985
10332
|
var PreventPageLeave_default = PreventPageLeave;
|
|
9986
10333
|
var usePreventPageLeave = ({ isPrevening }) => {
|
|
9987
10334
|
const setPreventing = usePreventPageLeaveStore_default((state) => state.setPreventing);
|
|
9988
|
-
|
|
10335
|
+
React25.useEffect(() => {
|
|
9989
10336
|
setPreventing(isPrevening);
|
|
9990
10337
|
}, [isPrevening, setPreventing]);
|
|
9991
10338
|
};
|
|
9992
10339
|
var usePreventPageLeave_default = usePreventPageLeave;
|
|
10340
|
+
var DefaultHeader = ({
|
|
10341
|
+
title,
|
|
10342
|
+
subtitle,
|
|
10343
|
+
icon,
|
|
10344
|
+
classNames,
|
|
10345
|
+
rightActions
|
|
10346
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-start justify-between gap-3", classNames?.header), children: [
|
|
10347
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
10348
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
10349
|
+
"div",
|
|
10350
|
+
{
|
|
10351
|
+
className: cn(
|
|
10352
|
+
"w-10 h-10 rounded-full bg-sus-green-50 flex items-center justify-center",
|
|
10353
|
+
classNames?.iconWrapper
|
|
10354
|
+
),
|
|
10355
|
+
children: icon
|
|
10356
|
+
}
|
|
10357
|
+
) : null,
|
|
10358
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
|
|
10359
|
+
subtitle ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-xs text-gray-500", classNames?.subtitle), children: subtitle }) : null,
|
|
10360
|
+
title ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-lg font-semibold text-sus-green-1", classNames?.title), children: title }) : null
|
|
10361
|
+
] })
|
|
10362
|
+
] }),
|
|
10363
|
+
rightActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: rightActions }) : null
|
|
10364
|
+
] });
|
|
10365
|
+
var RightPanelContainer = ({
|
|
10366
|
+
title,
|
|
10367
|
+
subtitle,
|
|
10368
|
+
icon,
|
|
10369
|
+
rightActions,
|
|
10370
|
+
children,
|
|
10371
|
+
isExpanded = false,
|
|
10372
|
+
className,
|
|
10373
|
+
classNames,
|
|
10374
|
+
slots,
|
|
10375
|
+
renderHeader
|
|
10376
|
+
}) => {
|
|
10377
|
+
const Container = slots?.Container ?? container_default;
|
|
10378
|
+
const Header2 = slots?.Header ?? DefaultHeader;
|
|
10379
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10380
|
+
Container,
|
|
10381
|
+
{
|
|
10382
|
+
isLeftExpanded: isExpanded,
|
|
10383
|
+
className: cn(
|
|
10384
|
+
"flex flex-col bg-white border border-slate-300 min-w-full",
|
|
10385
|
+
className,
|
|
10386
|
+
classNames?.root
|
|
10387
|
+
),
|
|
10388
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex-1 flex min-h-0 px-4 py-6 justify-center", classNames?.body), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("w-full max-w-3xl overflow-auto", classNames?.content), children: [
|
|
10389
|
+
renderHeader ? renderHeader({ title, subtitle, icon, rightActions, classNames }) : Header2 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
10390
|
+
Header2,
|
|
10391
|
+
{
|
|
10392
|
+
title,
|
|
10393
|
+
subtitle,
|
|
10394
|
+
icon,
|
|
10395
|
+
rightActions,
|
|
10396
|
+
classNames
|
|
10397
|
+
}
|
|
10398
|
+
) : null,
|
|
10399
|
+
children
|
|
10400
|
+
] }) })
|
|
10401
|
+
}
|
|
10402
|
+
);
|
|
10403
|
+
};
|
|
10404
|
+
var RightPanelContainer_default = RightPanelContainer;
|
|
9993
10405
|
|
|
9994
10406
|
// src/components/cropperModal/type.ts
|
|
9995
10407
|
var CropperModalError = class extends Error {
|
|
@@ -10126,20 +10538,20 @@ var CropperModal = ({
|
|
|
10126
10538
|
title,
|
|
10127
10539
|
props
|
|
10128
10540
|
}) => {
|
|
10129
|
-
const [isLoading, setIsLoading] =
|
|
10130
|
-
const [crop, setCrop] =
|
|
10131
|
-
const [zoom, setZoom] =
|
|
10132
|
-
const [croppedAreaPixels, setCroppedAreaPixels] =
|
|
10133
|
-
const handleClose =
|
|
10541
|
+
const [isLoading, setIsLoading] = React25.useState(false);
|
|
10542
|
+
const [crop, setCrop] = React25.useState({ x: 0, y: 0 });
|
|
10543
|
+
const [zoom, setZoom] = React25.useState();
|
|
10544
|
+
const [croppedAreaPixels, setCroppedAreaPixels] = React25.useState(null);
|
|
10545
|
+
const handleClose = React25.useCallback(() => {
|
|
10134
10546
|
onOpenChange(false);
|
|
10135
10547
|
}, [onOpenChange]);
|
|
10136
|
-
const handleCancel =
|
|
10548
|
+
const handleCancel = React25.useCallback(() => {
|
|
10137
10549
|
if (onCancel) {
|
|
10138
10550
|
onCancel();
|
|
10139
10551
|
}
|
|
10140
10552
|
handleClose();
|
|
10141
10553
|
}, [handleClose, onCancel]);
|
|
10142
|
-
const handleCropComplete =
|
|
10554
|
+
const handleCropComplete = React25.useCallback((_, croppedAreaPixels2) => {
|
|
10143
10555
|
setCroppedAreaPixels(croppedAreaPixels2);
|
|
10144
10556
|
}, []);
|
|
10145
10557
|
const handleConfirm = async () => {
|
|
@@ -10247,7 +10659,7 @@ function isFragment(object) {
|
|
|
10247
10659
|
var isValidText = (val) => ["string", "number"].includes(typeof val);
|
|
10248
10660
|
function toArray(children, option = {}) {
|
|
10249
10661
|
let ret = [];
|
|
10250
|
-
|
|
10662
|
+
React25__namespace.Children.forEach(children, (child) => {
|
|
10251
10663
|
if ((child === void 0 || child === null) && !option.keepEmpty) {
|
|
10252
10664
|
return;
|
|
10253
10665
|
}
|
|
@@ -10261,9 +10673,9 @@ function toArray(children, option = {}) {
|
|
|
10261
10673
|
});
|
|
10262
10674
|
return ret;
|
|
10263
10675
|
}
|
|
10264
|
-
var MeasureText =
|
|
10265
|
-
const spanRef =
|
|
10266
|
-
|
|
10676
|
+
var MeasureText = React25__namespace.forwardRef(({ style, children }, ref) => {
|
|
10677
|
+
const spanRef = React25__namespace.useRef(null);
|
|
10678
|
+
React25__namespace.useImperativeHandle(ref, () => ({
|
|
10267
10679
|
isExceed: () => {
|
|
10268
10680
|
const span = spanRef.current;
|
|
10269
10681
|
return span.scrollHeight > span.clientHeight;
|
|
@@ -10321,19 +10733,19 @@ var lineClipStyle = {
|
|
|
10321
10733
|
};
|
|
10322
10734
|
function EllipsisMeasure(props) {
|
|
10323
10735
|
const { enableMeasure, width, text, children, rows, expanded, miscDeps, onEllipsis } = props;
|
|
10324
|
-
const nodeList =
|
|
10325
|
-
const nodeLen =
|
|
10326
|
-
const fullContent =
|
|
10327
|
-
const [ellipsisCutIndex, setEllipsisCutIndex] =
|
|
10328
|
-
const cutMidRef =
|
|
10329
|
-
const measureWhiteSpaceRef =
|
|
10330
|
-
const needEllipsisRef =
|
|
10331
|
-
const descRowsEllipsisRef =
|
|
10332
|
-
const symbolRowEllipsisRef =
|
|
10333
|
-
const [canEllipsis, setCanEllipsis] =
|
|
10334
|
-
const [needEllipsis, setNeedEllipsis] =
|
|
10335
|
-
const [ellipsisHeight, setEllipsisHeight] =
|
|
10336
|
-
const [parentWhiteSpace, setParentWhiteSpace] =
|
|
10736
|
+
const nodeList = React25__namespace.useMemo(() => toArray(text), [text]);
|
|
10737
|
+
const nodeLen = React25__namespace.useMemo(() => getNodesLen(nodeList), [text]);
|
|
10738
|
+
const fullContent = React25__namespace.useMemo(() => children(nodeList, false), [text]);
|
|
10739
|
+
const [ellipsisCutIndex, setEllipsisCutIndex] = React25__namespace.useState(null);
|
|
10740
|
+
const cutMidRef = React25__namespace.useRef(null);
|
|
10741
|
+
const measureWhiteSpaceRef = React25__namespace.useRef(null);
|
|
10742
|
+
const needEllipsisRef = React25__namespace.useRef(null);
|
|
10743
|
+
const descRowsEllipsisRef = React25__namespace.useRef(null);
|
|
10744
|
+
const symbolRowEllipsisRef = React25__namespace.useRef(null);
|
|
10745
|
+
const [canEllipsis, setCanEllipsis] = React25__namespace.useState(false);
|
|
10746
|
+
const [needEllipsis, setNeedEllipsis] = React25__namespace.useState(STATUS_MEASURE_NONE);
|
|
10747
|
+
const [ellipsisHeight, setEllipsisHeight] = React25__namespace.useState(0);
|
|
10748
|
+
const [parentWhiteSpace, setParentWhiteSpace] = React25__namespace.useState(null);
|
|
10337
10749
|
useIsomorphicLayoutEffect(() => {
|
|
10338
10750
|
if (enableMeasure && width && nodeLen) {
|
|
10339
10751
|
setNeedEllipsis(STATUS_MEASURE_PREPARE);
|
|
@@ -10376,7 +10788,7 @@ function EllipsisMeasure(props) {
|
|
|
10376
10788
|
setEllipsisCutIndex(isOverflow ? [minIndex, targetMidIndex] : [targetMidIndex, maxIndex]);
|
|
10377
10789
|
}
|
|
10378
10790
|
}, [ellipsisCutIndex, cutMidIndex]);
|
|
10379
|
-
const finalContent =
|
|
10791
|
+
const finalContent = React25__namespace.useMemo(() => {
|
|
10380
10792
|
if (!enableMeasure) {
|
|
10381
10793
|
return children(nodeList, false);
|
|
10382
10794
|
}
|
|
@@ -10467,10 +10879,10 @@ var Truncated = ({
|
|
|
10467
10879
|
tooltipProps,
|
|
10468
10880
|
tooltipContentProps
|
|
10469
10881
|
}) => {
|
|
10470
|
-
const elementRef =
|
|
10471
|
-
const [open, setOpen] =
|
|
10472
|
-
const [isTruncated, setIsTruncated] =
|
|
10473
|
-
const [measureWidth, setMeasureWidth] =
|
|
10882
|
+
const elementRef = React25__namespace.useRef(null);
|
|
10883
|
+
const [open, setOpen] = React25__namespace.useState(false);
|
|
10884
|
+
const [isTruncated, setIsTruncated] = React25__namespace.useState(false);
|
|
10885
|
+
const [measureWidth, setMeasureWidth] = React25__namespace.useState(0);
|
|
10474
10886
|
const Comp = as;
|
|
10475
10887
|
const normalizedChildren = typeof children === "string" ? children.replace(/>/g, ">\u200B") : children;
|
|
10476
10888
|
const lineClampLines = typeof ellipsis === "number" ? ellipsis : typeof ellipsis === "object" ? ellipsis?.lineClamp ?? 3 : null;
|
|
@@ -10495,13 +10907,13 @@ var Truncated = ({
|
|
|
10495
10907
|
setIsTruncated(false);
|
|
10496
10908
|
}
|
|
10497
10909
|
}, [enableMeasure]);
|
|
10498
|
-
const truncationClass =
|
|
10910
|
+
const truncationClass = React25__namespace.useMemo(() => {
|
|
10499
10911
|
if (!ellipsis) return "";
|
|
10500
10912
|
if (typeof ellipsis === "number") return `line-clamp-${ellipsis}`;
|
|
10501
10913
|
if (typeof ellipsis === "object") return `line-clamp-${lineClampLines ?? 3}`;
|
|
10502
10914
|
return "truncate";
|
|
10503
10915
|
}, [ellipsis, lineClampLines]);
|
|
10504
|
-
const clampedStyle =
|
|
10916
|
+
const clampedStyle = React25__namespace.useMemo(() => {
|
|
10505
10917
|
if (!lineClampLines) return style;
|
|
10506
10918
|
return {
|
|
10507
10919
|
...style,
|
|
@@ -10563,7 +10975,7 @@ var Truncated = ({
|
|
|
10563
10975
|
);
|
|
10564
10976
|
};
|
|
10565
10977
|
var truncated_default = Truncated;
|
|
10566
|
-
var InputPrimitive2 =
|
|
10978
|
+
var InputPrimitive2 = React25__namespace.forwardRef(
|
|
10567
10979
|
({ className, type = "text", ...props }, ref) => {
|
|
10568
10980
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10569
10981
|
"input",
|
|
@@ -10602,7 +11014,7 @@ var inputVariants2 = classVarianceAuthority.cva("", {
|
|
|
10602
11014
|
appearance: "filled"
|
|
10603
11015
|
}
|
|
10604
11016
|
});
|
|
10605
|
-
var Input2 =
|
|
11017
|
+
var Input2 = React25__namespace.forwardRef(
|
|
10606
11018
|
({
|
|
10607
11019
|
className,
|
|
10608
11020
|
wrapperClassName,
|
|
@@ -10635,8 +11047,8 @@ var Input2 = React26__namespace.forwardRef(
|
|
|
10635
11047
|
onChange: onChangeProp
|
|
10636
11048
|
} = rest;
|
|
10637
11049
|
const ariaInvalid = invalid ?? ariaInvalidProp;
|
|
10638
|
-
const messageId =
|
|
10639
|
-
const handleChange =
|
|
11050
|
+
const messageId = React25__namespace.useId();
|
|
11051
|
+
const handleChange = React25__namespace.useCallback(
|
|
10640
11052
|
(event) => {
|
|
10641
11053
|
onChangeProp?.(event);
|
|
10642
11054
|
onValueChange?.(event.target.value);
|
|
@@ -10764,8 +11176,8 @@ var ActionMenu = ({
|
|
|
10764
11176
|
actionButtonClassName,
|
|
10765
11177
|
separatorClassName
|
|
10766
11178
|
}) => {
|
|
10767
|
-
const [open, setOpen] =
|
|
10768
|
-
const isAllowed =
|
|
11179
|
+
const [open, setOpen] = React25.useState(false);
|
|
11180
|
+
const isAllowed = React25.useCallback(
|
|
10769
11181
|
(requiredPermission) => {
|
|
10770
11182
|
if (!checkPermissionFunc || requiredPermission === void 0) {
|
|
10771
11183
|
return true;
|
|
@@ -10774,7 +11186,7 @@ var ActionMenu = ({
|
|
|
10774
11186
|
},
|
|
10775
11187
|
[checkPermissionFunc]
|
|
10776
11188
|
);
|
|
10777
|
-
const filteredButtons =
|
|
11189
|
+
const filteredButtons = React25.useMemo(() => {
|
|
10778
11190
|
return buttons.filter((btn) => isAllowed(btn.requiredPermission));
|
|
10779
11191
|
}, [buttons, isAllowed]);
|
|
10780
11192
|
if (buttons.length === 0) {
|
|
@@ -11029,13 +11441,13 @@ var useFieldNames = ({
|
|
|
11029
11441
|
fieldNames
|
|
11030
11442
|
}) => {
|
|
11031
11443
|
const { label: labelFieldKey = "label", value: valueFieldKey = "value" } = fieldNames || {};
|
|
11032
|
-
const getLabelField =
|
|
11444
|
+
const getLabelField = React25__namespace.default.useCallback(
|
|
11033
11445
|
(option) => {
|
|
11034
11446
|
return option?.[labelFieldKey];
|
|
11035
11447
|
},
|
|
11036
11448
|
[labelFieldKey]
|
|
11037
11449
|
);
|
|
11038
|
-
const getValueField =
|
|
11450
|
+
const getValueField = React25__namespace.default.useCallback(
|
|
11039
11451
|
(option) => {
|
|
11040
11452
|
return option?.[valueFieldKey];
|
|
11041
11453
|
},
|
|
@@ -11067,11 +11479,11 @@ var VirtualizedCommand = ({
|
|
|
11067
11479
|
onFocus
|
|
11068
11480
|
}) => {
|
|
11069
11481
|
const { getLabelField, getValueField } = useFieldNames_default({ fieldNames });
|
|
11070
|
-
const internalOptions =
|
|
11071
|
-
const [filteredOptions, setFilteredOptions] =
|
|
11072
|
-
const [focusedIndex, setFocusedIndex] =
|
|
11073
|
-
const [isKeyboardNavActive, setIsKeyboardNavActive] =
|
|
11074
|
-
const parentRef =
|
|
11482
|
+
const internalOptions = React25__namespace.useMemo(() => options ?? [], [options]);
|
|
11483
|
+
const [filteredOptions, setFilteredOptions] = React25__namespace.useState(internalOptions);
|
|
11484
|
+
const [focusedIndex, setFocusedIndex] = React25__namespace.useState(0);
|
|
11485
|
+
const [isKeyboardNavActive, setIsKeyboardNavActive] = React25__namespace.useState(false);
|
|
11486
|
+
const parentRef = React25__namespace.useRef(null);
|
|
11075
11487
|
const virtualizer = reactVirtual.useVirtualizer({
|
|
11076
11488
|
count: filteredOptions.length,
|
|
11077
11489
|
getScrollElement: () => parentRef.current,
|
|
@@ -11079,14 +11491,14 @@ var VirtualizedCommand = ({
|
|
|
11079
11491
|
overscan: 2
|
|
11080
11492
|
});
|
|
11081
11493
|
const virtualOptions = virtualizer.getVirtualItems();
|
|
11082
|
-
const dynamicHeight =
|
|
11494
|
+
const dynamicHeight = React25__namespace.useMemo(() => {
|
|
11083
11495
|
const contentHeight = filteredOptions.length * ROW_HEIGHT;
|
|
11084
11496
|
if (contentHeight <= 0) {
|
|
11085
11497
|
return MIN_HEIGHT_EMPTY;
|
|
11086
11498
|
}
|
|
11087
11499
|
return Math.max(ROW_HEIGHT, Math.min(height, contentHeight));
|
|
11088
11500
|
}, [filteredOptions.length, height]);
|
|
11089
|
-
const scrollToIndex =
|
|
11501
|
+
const scrollToIndex = React25__namespace.useCallback(
|
|
11090
11502
|
(index) => {
|
|
11091
11503
|
virtualizer.scrollToIndex(index, {
|
|
11092
11504
|
align: "center"
|
|
@@ -11094,7 +11506,7 @@ var VirtualizedCommand = ({
|
|
|
11094
11506
|
},
|
|
11095
11507
|
[virtualizer]
|
|
11096
11508
|
);
|
|
11097
|
-
const handleSearch =
|
|
11509
|
+
const handleSearch = React25__namespace.useCallback(
|
|
11098
11510
|
(search) => {
|
|
11099
11511
|
setIsKeyboardNavActive(false);
|
|
11100
11512
|
setFilteredOptions(
|
|
@@ -11109,7 +11521,7 @@ var VirtualizedCommand = ({
|
|
|
11109
11521
|
},
|
|
11110
11522
|
[filterOption, getLabelField, internalOptions]
|
|
11111
11523
|
);
|
|
11112
|
-
const handleKeyDown =
|
|
11524
|
+
const handleKeyDown = React25__namespace.useCallback(
|
|
11113
11525
|
(event) => {
|
|
11114
11526
|
switch (event.key) {
|
|
11115
11527
|
case "ArrowDown": {
|
|
@@ -11144,7 +11556,7 @@ var VirtualizedCommand = ({
|
|
|
11144
11556
|
},
|
|
11145
11557
|
[filteredOptions, focusedIndex, getValueField, onSelect, scrollToIndex]
|
|
11146
11558
|
);
|
|
11147
|
-
|
|
11559
|
+
React25__namespace.useEffect(() => {
|
|
11148
11560
|
if (value) {
|
|
11149
11561
|
const option = filteredOptions.find((option2) => {
|
|
11150
11562
|
const optionValue = getValueField(option2);
|
|
@@ -11271,13 +11683,13 @@ var ComboboxInner = ({
|
|
|
11271
11683
|
defaultValue,
|
|
11272
11684
|
value
|
|
11273
11685
|
});
|
|
11274
|
-
const currentSelectedOption =
|
|
11686
|
+
const currentSelectedOption = React25__namespace.useMemo(() => {
|
|
11275
11687
|
return options?.find((option) => {
|
|
11276
11688
|
const optionValue = getValueField(option);
|
|
11277
11689
|
return optionValue === selectedValue;
|
|
11278
11690
|
});
|
|
11279
11691
|
}, [getValueField, options, selectedValue]);
|
|
11280
|
-
const renderValue =
|
|
11692
|
+
const renderValue = React25__namespace.useMemo(() => {
|
|
11281
11693
|
if (!selectedValue) return placeholder2;
|
|
11282
11694
|
if (currentSelectedOption) {
|
|
11283
11695
|
return getLabelField(currentSelectedOption);
|
|
@@ -11287,7 +11699,7 @@ var ComboboxInner = ({
|
|
|
11287
11699
|
}
|
|
11288
11700
|
return null;
|
|
11289
11701
|
}, [currentSelectedOption, getLabelField, placeholder2, selectedValue, showValueWhenNoMatch]);
|
|
11290
|
-
const handleSelect =
|
|
11702
|
+
const handleSelect = React25__namespace.useCallback(
|
|
11291
11703
|
(selected, option) => {
|
|
11292
11704
|
setSelectedValue(selected);
|
|
11293
11705
|
setOpenPopover(false);
|
|
@@ -11300,7 +11712,7 @@ var ComboboxInner = ({
|
|
|
11300
11712
|
},
|
|
11301
11713
|
[onOpenChange, onSelect, setOpenPopover, setSelectedValue]
|
|
11302
11714
|
);
|
|
11303
|
-
const handleOpenPopover =
|
|
11715
|
+
const handleOpenPopover = React25__namespace.useCallback(
|
|
11304
11716
|
(isOpen) => {
|
|
11305
11717
|
if (disabled) return;
|
|
11306
11718
|
setOpenPopover(isOpen);
|
|
@@ -11310,7 +11722,7 @@ var ComboboxInner = ({
|
|
|
11310
11722
|
},
|
|
11311
11723
|
[disabled, onOpenChange, setOpenPopover]
|
|
11312
11724
|
);
|
|
11313
|
-
const handleClear =
|
|
11725
|
+
const handleClear = React25__namespace.useCallback(
|
|
11314
11726
|
(event) => {
|
|
11315
11727
|
event.stopPropagation();
|
|
11316
11728
|
setSelectedValue(void 0);
|
|
@@ -11399,7 +11811,7 @@ var ComboboxInner = ({
|
|
|
11399
11811
|
)
|
|
11400
11812
|
] });
|
|
11401
11813
|
};
|
|
11402
|
-
var Combobox =
|
|
11814
|
+
var Combobox = React25__namespace.forwardRef(ComboboxInner);
|
|
11403
11815
|
var Combobox_default = Combobox;
|
|
11404
11816
|
var TruncatedMouseEnterDiv = ({
|
|
11405
11817
|
value,
|
|
@@ -11408,8 +11820,8 @@ var TruncatedMouseEnterDiv = ({
|
|
|
11408
11820
|
tooltipContentProps,
|
|
11409
11821
|
arrowClassName
|
|
11410
11822
|
}) => {
|
|
11411
|
-
const textRef =
|
|
11412
|
-
const [isTruncated, setIsTruncated] =
|
|
11823
|
+
const textRef = React25.useRef(null);
|
|
11824
|
+
const [isTruncated, setIsTruncated] = React25.useState(false);
|
|
11413
11825
|
const checkTruncation = () => {
|
|
11414
11826
|
if (textRef.current) {
|
|
11415
11827
|
const { scrollWidth, clientWidth } = textRef.current;
|
|
@@ -11486,10 +11898,12 @@ exports.CommandSeparator = CommandSeparator;
|
|
|
11486
11898
|
exports.CommandShortcut = CommandShortcut;
|
|
11487
11899
|
exports.CropperModal = CropperModal;
|
|
11488
11900
|
exports.CropperModalError = CropperModalError;
|
|
11901
|
+
exports.CustomFieldIcon = custom_field_default;
|
|
11489
11902
|
exports.DIALOG_ALERT_I18N_SUBNAMESPACE = DIALOG_ALERT_I18N_SUBNAMESPACE;
|
|
11490
11903
|
exports.DIALOG_ALERT_TEMPLATES = DIALOG_ALERT_TEMPLATES;
|
|
11491
11904
|
exports.DataTable = DataTable_default;
|
|
11492
11905
|
exports.DatePicker = DatePicker2;
|
|
11906
|
+
exports.DecreaseIcon = decrease_default;
|
|
11493
11907
|
exports.Dialog = Dialog;
|
|
11494
11908
|
exports.DialogAlert = DialogAlert;
|
|
11495
11909
|
exports.DialogAlertProvider = DialogAlertProvider;
|
|
@@ -11515,17 +11929,16 @@ exports.FormulaEditor = FormulaEditor;
|
|
|
11515
11929
|
exports.GridSettingsModal = GridSettingsModal_default;
|
|
11516
11930
|
exports.HeaderCell = HeaderCell_default;
|
|
11517
11931
|
exports.Image = Image2;
|
|
11932
|
+
exports.InformationIcon = information_default;
|
|
11518
11933
|
exports.Input = Input;
|
|
11519
11934
|
exports.InputNumber = InputNumber_default;
|
|
11520
11935
|
exports.Label = Label2;
|
|
11521
|
-
exports.List = List_default;
|
|
11522
|
-
exports.ListContainer = container_default;
|
|
11523
|
-
exports.ListHeader = header_default;
|
|
11524
|
-
exports.ListTable = table_default;
|
|
11525
11936
|
exports.LookupSelect = LookupSelect;
|
|
11937
|
+
exports.MainListContainer = MainListContainer_default;
|
|
11526
11938
|
exports.MonthPicker = MonthPicker2;
|
|
11527
11939
|
exports.Navbar = navbar_default;
|
|
11528
11940
|
exports.NotFoundIcon = not_found_default;
|
|
11941
|
+
exports.PlusIcon = plus_default;
|
|
11529
11942
|
exports.Popover = Popover;
|
|
11530
11943
|
exports.PopoverAnchor = PopoverAnchor;
|
|
11531
11944
|
exports.PopoverArrow = PopoverArrow;
|
|
@@ -11536,6 +11949,8 @@ exports.RadioGroupItem = RadioGroupItem;
|
|
|
11536
11949
|
exports.RadioGroupRoot = RadioGroupRoot;
|
|
11537
11950
|
exports.RadioLabel = RadioLabel;
|
|
11538
11951
|
exports.RichText = RichText;
|
|
11952
|
+
exports.RightPanelContainer = RightPanelContainer_default;
|
|
11953
|
+
exports.RoleIcon = role_default;
|
|
11539
11954
|
exports.Select = Select;
|
|
11540
11955
|
exports.SelectContent = SelectContent;
|
|
11541
11956
|
exports.SelectGroup = SelectGroup;
|
|
@@ -11602,6 +12017,9 @@ exports.TrashIcon = trash_default;
|
|
|
11602
12017
|
exports.Truncated = truncated_default;
|
|
11603
12018
|
exports.TruncatedMouseEnterDiv = truncatedMouseEnterDiv_default;
|
|
11604
12019
|
exports.UI = ui_exports;
|
|
12020
|
+
exports.UserAloneIcon = user_alone_default;
|
|
12021
|
+
exports.UserFriendIcon = user_friend_default;
|
|
12022
|
+
exports.UserIcon = user_default;
|
|
11605
12023
|
exports.VirtualizedCommand = VirtualizedCommand_default;
|
|
11606
12024
|
exports.booleanToSelectValue = booleanToSelectValue;
|
|
11607
12025
|
exports.buildPrefixMap = buildPrefixMap;
|