@sustaina/shared-ui 1.35.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +118 -66
- package/dist/index.d.ts +118 -66
- package/dist/index.js +1075 -654
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +910 -495
- 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
|
+
]
|
|
983
|
+
}
|
|
984
|
+
);
|
|
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
|
+
]
|
|
746
1043
|
}
|
|
747
1044
|
);
|
|
748
|
-
var
|
|
749
|
-
var
|
|
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,23 @@ var LookupSelect = ({
|
|
|
2894
3232
|
dropdownPortalId,
|
|
2895
3233
|
multiple = false
|
|
2896
3234
|
}) => {
|
|
2897
|
-
const [inputValue, setInputValue] =
|
|
2898
|
-
const inputRef =
|
|
2899
|
-
const [suggestions, setSuggestions] =
|
|
2900
|
-
const [optionLabels, setOptionLabels] =
|
|
2901
|
-
const [loading, setLoading] =
|
|
2902
|
-
const [fetchError, setFetchError] =
|
|
2903
|
-
const [isDropdownOpen, setIsDropdownOpen] =
|
|
2904
|
-
const containerRef =
|
|
2905
|
-
const fetchDelayRef =
|
|
2906
|
-
const requestIdRef =
|
|
2907
|
-
const [dropdownStyles, setDropdownStyles] =
|
|
2908
|
-
const dropdownContentRef =
|
|
2909
|
-
const assignDropdownContentRef =
|
|
3235
|
+
const [inputValue, setInputValue] = React25.useState("");
|
|
3236
|
+
const inputRef = React25.useRef(null);
|
|
3237
|
+
const [suggestions, setSuggestions] = React25.useState([]);
|
|
3238
|
+
const [optionLabels, setOptionLabels] = React25.useState({});
|
|
3239
|
+
const [loading, setLoading] = React25.useState(false);
|
|
3240
|
+
const [fetchError, setFetchError] = React25.useState(null);
|
|
3241
|
+
const [isDropdownOpen, setIsDropdownOpen] = React25.useState(false);
|
|
3242
|
+
const containerRef = React25.useRef(null);
|
|
3243
|
+
const fetchDelayRef = React25.useRef(null);
|
|
3244
|
+
const requestIdRef = React25.useRef(0);
|
|
3245
|
+
const [dropdownStyles, setDropdownStyles] = React25.useState();
|
|
3246
|
+
const dropdownContentRef = React25.useRef(null);
|
|
3247
|
+
const assignDropdownContentRef = React25.useCallback((node) => {
|
|
2910
3248
|
dropdownContentRef.current = node;
|
|
2911
3249
|
}, []);
|
|
2912
|
-
const [activeSuggestionIndex, setActiveSuggestionIndex] =
|
|
2913
|
-
const dropdownPortalElement =
|
|
3250
|
+
const [activeSuggestionIndex, setActiveSuggestionIndex] = React25.useState(-1);
|
|
3251
|
+
const dropdownPortalElement = React25.useMemo(() => {
|
|
2914
3252
|
if (typeof document === "undefined") return null;
|
|
2915
3253
|
if (dropdownPortalId) {
|
|
2916
3254
|
const element = document.getElementById(dropdownPortalId);
|
|
@@ -2921,7 +3259,7 @@ var LookupSelect = ({
|
|
|
2921
3259
|
const limitReached = multiple && value.length >= maxTags;
|
|
2922
3260
|
const selectedValue = !multiple && value.length > 0 ? value[0] : void 0;
|
|
2923
3261
|
const selectedLabel = selectedValue ? optionLabels[selectedValue] ?? selectedValue : void 0;
|
|
2924
|
-
const upsertOptionLabels =
|
|
3262
|
+
const upsertOptionLabels = React25.useCallback((options) => {
|
|
2925
3263
|
setOptionLabels((prev) => {
|
|
2926
3264
|
let next = null;
|
|
2927
3265
|
options.forEach((opt) => {
|
|
@@ -2934,7 +3272,7 @@ var LookupSelect = ({
|
|
|
2934
3272
|
return next ?? prev;
|
|
2935
3273
|
});
|
|
2936
3274
|
}, []);
|
|
2937
|
-
const addTag =
|
|
3275
|
+
const addTag = React25.useCallback(
|
|
2938
3276
|
(val) => {
|
|
2939
3277
|
const trimmed = val.trim();
|
|
2940
3278
|
if (!trimmed) return;
|
|
@@ -2951,7 +3289,7 @@ var LookupSelect = ({
|
|
|
2951
3289
|
},
|
|
2952
3290
|
[value, onChange, maxTags, multiple]
|
|
2953
3291
|
);
|
|
2954
|
-
const removeTag =
|
|
3292
|
+
const removeTag = React25.useCallback(
|
|
2955
3293
|
(index) => {
|
|
2956
3294
|
if (index < 0) return;
|
|
2957
3295
|
const newTags = value.filter((_, i) => i !== index);
|
|
@@ -2959,14 +3297,14 @@ var LookupSelect = ({
|
|
|
2959
3297
|
},
|
|
2960
3298
|
[value, onChange]
|
|
2961
3299
|
);
|
|
2962
|
-
const handleClear =
|
|
3300
|
+
const handleClear = React25.useCallback(() => {
|
|
2963
3301
|
setInputValue("");
|
|
2964
3302
|
setSuggestions([]);
|
|
2965
3303
|
setIsDropdownOpen(false);
|
|
2966
3304
|
setFetchError(null);
|
|
2967
3305
|
if (onClear) onClear();
|
|
2968
3306
|
}, [onClear]);
|
|
2969
|
-
const handleSuggestionSelect =
|
|
3307
|
+
const handleSuggestionSelect = React25.useCallback(
|
|
2970
3308
|
(option) => {
|
|
2971
3309
|
upsertOptionLabels([option]);
|
|
2972
3310
|
addTag(option.value);
|
|
@@ -2981,7 +3319,7 @@ var LookupSelect = ({
|
|
|
2981
3319
|
},
|
|
2982
3320
|
[addTag, multiple, upsertOptionLabels]
|
|
2983
3321
|
);
|
|
2984
|
-
const handleKeyDown =
|
|
3322
|
+
const handleKeyDown = React25.useCallback(
|
|
2985
3323
|
(e) => {
|
|
2986
3324
|
if (e.key === "ArrowDown" && suggestions.length > 0) {
|
|
2987
3325
|
e.preventDefault();
|
|
@@ -3008,7 +3346,7 @@ var LookupSelect = ({
|
|
|
3008
3346
|
},
|
|
3009
3347
|
[suggestions, activeSuggestionIndex, handleSuggestionSelect, inputValue, removeTag, value.length]
|
|
3010
3348
|
);
|
|
3011
|
-
const updateDropdownPosition =
|
|
3349
|
+
const updateDropdownPosition = React25.useCallback(() => {
|
|
3012
3350
|
if (!dropdownPortalElement || !containerRef.current) return;
|
|
3013
3351
|
const rect = containerRef.current.getBoundingClientRect();
|
|
3014
3352
|
setDropdownStyles({
|
|
@@ -3019,7 +3357,7 @@ var LookupSelect = ({
|
|
|
3019
3357
|
zIndex: 50
|
|
3020
3358
|
});
|
|
3021
3359
|
}, [dropdownPortalElement]);
|
|
3022
|
-
|
|
3360
|
+
React25.useEffect(() => {
|
|
3023
3361
|
if (!fetchSuggestions) return;
|
|
3024
3362
|
if (fetchDelayRef.current) {
|
|
3025
3363
|
clearTimeout(fetchDelayRef.current);
|
|
@@ -3060,7 +3398,7 @@ var LookupSelect = ({
|
|
|
3060
3398
|
}
|
|
3061
3399
|
};
|
|
3062
3400
|
}, [inputValue, fetchSuggestions, suggestionDebounce, upsertOptionLabels]);
|
|
3063
|
-
|
|
3401
|
+
React25.useEffect(() => {
|
|
3064
3402
|
if (!fetchSuggestions) return;
|
|
3065
3403
|
if (value.length === 0) return;
|
|
3066
3404
|
const unresolvedValues = value.filter((v) => !optionLabels[v]);
|
|
@@ -3070,7 +3408,7 @@ var LookupSelect = ({
|
|
|
3070
3408
|
}).catch(() => {
|
|
3071
3409
|
});
|
|
3072
3410
|
}, [value, fetchSuggestions, optionLabels, upsertOptionLabels]);
|
|
3073
|
-
|
|
3411
|
+
React25.useEffect(() => {
|
|
3074
3412
|
const handleDocumentClick = (event) => {
|
|
3075
3413
|
const target = event.target;
|
|
3076
3414
|
if (containerRef.current?.contains(target)) return;
|
|
@@ -3082,11 +3420,11 @@ var LookupSelect = ({
|
|
|
3082
3420
|
document.removeEventListener("mousedown", handleDocumentClick);
|
|
3083
3421
|
};
|
|
3084
3422
|
}, []);
|
|
3085
|
-
|
|
3423
|
+
React25.useEffect(() => {
|
|
3086
3424
|
if (!limitReached) return;
|
|
3087
3425
|
setIsDropdownOpen(false);
|
|
3088
3426
|
}, [limitReached]);
|
|
3089
|
-
|
|
3427
|
+
React25.useEffect(() => {
|
|
3090
3428
|
if (!dropdownPortalElement) return;
|
|
3091
3429
|
if (!isDropdownOpen) return;
|
|
3092
3430
|
updateDropdownPosition();
|
|
@@ -3098,7 +3436,7 @@ var LookupSelect = ({
|
|
|
3098
3436
|
window.removeEventListener("scroll", handleReposition, true);
|
|
3099
3437
|
};
|
|
3100
3438
|
}, [dropdownPortalElement, isDropdownOpen, updateDropdownPosition]);
|
|
3101
|
-
|
|
3439
|
+
React25.useEffect(() => {
|
|
3102
3440
|
if (suggestions.length === 0) {
|
|
3103
3441
|
setActiveSuggestionIndex(-1);
|
|
3104
3442
|
return;
|
|
@@ -3933,7 +4271,7 @@ var AdvanceSearch = ({
|
|
|
3933
4271
|
shortDateFormat,
|
|
3934
4272
|
filterFieldMap = FILTER_FIELD_MAP
|
|
3935
4273
|
}) => {
|
|
3936
|
-
const fieldsData =
|
|
4274
|
+
const fieldsData = React25.useMemo(() => {
|
|
3937
4275
|
if (fields.length === 0) throw new Error("fields cannot be an empty array");
|
|
3938
4276
|
return fields || [];
|
|
3939
4277
|
}, [fields]);
|
|
@@ -3953,8 +4291,8 @@ var AdvanceSearch = ({
|
|
|
3953
4291
|
defaultValues: {}
|
|
3954
4292
|
});
|
|
3955
4293
|
const { handleSubmit, unregister, resetField, getValues, clearErrors, setError } = form;
|
|
3956
|
-
const [operatorErrors, setOperatorErrors] =
|
|
3957
|
-
const clearOperatorError =
|
|
4294
|
+
const [operatorErrors, setOperatorErrors] = React25__namespace.default.useState({});
|
|
4295
|
+
const clearOperatorError = React25.useCallback(
|
|
3958
4296
|
(rowId) => {
|
|
3959
4297
|
setOperatorErrors((prev) => {
|
|
3960
4298
|
if (!(rowId in prev)) return prev;
|
|
@@ -3964,7 +4302,7 @@ var AdvanceSearch = ({
|
|
|
3964
4302
|
},
|
|
3965
4303
|
[setOperatorErrors]
|
|
3966
4304
|
);
|
|
3967
|
-
const clearValue =
|
|
4305
|
+
const clearValue = React25.useCallback(
|
|
3968
4306
|
(rowId, which) => {
|
|
3969
4307
|
const fieldName = `${which}_${rowId}`;
|
|
3970
4308
|
resetField(fieldName, { defaultValue: void 0 });
|
|
@@ -3974,14 +4312,14 @@ var AdvanceSearch = ({
|
|
|
3974
4312
|
},
|
|
3975
4313
|
[resetField, clearErrors]
|
|
3976
4314
|
);
|
|
3977
|
-
const parseRangeValue =
|
|
4315
|
+
const parseRangeValue = React25.useCallback((raw, fieldType) => {
|
|
3978
4316
|
if (!raw) return void 0;
|
|
3979
4317
|
if (Array.isArray(raw)) return void 0;
|
|
3980
4318
|
const normalized = fieldType === "datemonth" ? `${raw}-01` : raw;
|
|
3981
4319
|
const parsed = dateFns.parseISO(normalized);
|
|
3982
4320
|
return dateFns.isValid(parsed) ? parsed : void 0;
|
|
3983
4321
|
}, []);
|
|
3984
|
-
const onSubmit =
|
|
4322
|
+
const onSubmit = React25.useCallback(() => {
|
|
3985
4323
|
const operatorValidation = {};
|
|
3986
4324
|
rows.forEach((r) => {
|
|
3987
4325
|
const ops = operatorsForField(r.fieldName);
|
|
@@ -4217,11 +4555,11 @@ function resetVisibleTableState(payload) {
|
|
|
4217
4555
|
table.setSorting(prevState.sorting.filter((s) => isVisible(s.id)));
|
|
4218
4556
|
}
|
|
4219
4557
|
var useHover = () => {
|
|
4220
|
-
const [hovering, setHovering] =
|
|
4221
|
-
const prevRef =
|
|
4222
|
-
const onMouseEnter =
|
|
4223
|
-
const onMouseLeave =
|
|
4224
|
-
const nodeRefCallback =
|
|
4558
|
+
const [hovering, setHovering] = React25.useState(false);
|
|
4559
|
+
const prevRef = React25.useRef(null);
|
|
4560
|
+
const onMouseEnter = React25.useCallback(() => setHovering(true), []);
|
|
4561
|
+
const onMouseLeave = React25.useCallback(() => setHovering(false), []);
|
|
4562
|
+
const nodeRefCallback = React25.useCallback(
|
|
4225
4563
|
(node) => {
|
|
4226
4564
|
if (prevRef.current) {
|
|
4227
4565
|
prevRef.current.removeEventListener("mouseenter", onMouseEnter);
|
|
@@ -4249,15 +4587,15 @@ var useIntersectionObserver = ({
|
|
|
4249
4587
|
initialIsIntersecting = false,
|
|
4250
4588
|
onChange
|
|
4251
4589
|
} = {}) => {
|
|
4252
|
-
const [ref, setRef] =
|
|
4253
|
-
const [state, setState] =
|
|
4590
|
+
const [ref, setRef] = React25.useState(null);
|
|
4591
|
+
const [state, setState] = React25.useState(() => ({
|
|
4254
4592
|
isIntersecting: initialIsIntersecting,
|
|
4255
4593
|
entry: void 0
|
|
4256
4594
|
}));
|
|
4257
|
-
const callbackRef =
|
|
4595
|
+
const callbackRef = React25.useRef(null);
|
|
4258
4596
|
callbackRef.current = onChange;
|
|
4259
4597
|
const frozen = state.entry?.isIntersecting && freezeOnceVisible;
|
|
4260
|
-
|
|
4598
|
+
React25.useEffect(() => {
|
|
4261
4599
|
if (!ref) return;
|
|
4262
4600
|
if (!("IntersectionObserver" in window)) return;
|
|
4263
4601
|
if (frozen) return;
|
|
@@ -4287,8 +4625,8 @@ var useIntersectionObserver = ({
|
|
|
4287
4625
|
frozen,
|
|
4288
4626
|
freezeOnceVisible
|
|
4289
4627
|
]);
|
|
4290
|
-
const prevRef =
|
|
4291
|
-
|
|
4628
|
+
const prevRef = React25.useRef(null);
|
|
4629
|
+
React25.useEffect(() => {
|
|
4292
4630
|
if (!ref && state.entry?.target && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {
|
|
4293
4631
|
prevRef.current = state.entry.target;
|
|
4294
4632
|
setState({ isIntersecting: initialIsIntersecting, entry: void 0 });
|
|
@@ -4305,8 +4643,8 @@ var isValidMediaQueryString = (query) => {
|
|
|
4305
4643
|
return query !== "not all";
|
|
4306
4644
|
};
|
|
4307
4645
|
var useMediaQuery = ({ query }) => {
|
|
4308
|
-
const [matches, setMatches] =
|
|
4309
|
-
|
|
4646
|
+
const [matches, setMatches] = React25.useState(false);
|
|
4647
|
+
React25.useEffect(() => {
|
|
4310
4648
|
if (typeof window === "undefined") {
|
|
4311
4649
|
return;
|
|
4312
4650
|
}
|
|
@@ -4342,8 +4680,8 @@ var useTruncated = ({
|
|
|
4342
4680
|
onChange,
|
|
4343
4681
|
resizeDetectDelay = 150
|
|
4344
4682
|
}) => {
|
|
4345
|
-
const [isTruncated, setIsTruncated] =
|
|
4346
|
-
|
|
4683
|
+
const [isTruncated, setIsTruncated] = React25.useState(false);
|
|
4684
|
+
React25.useEffect(() => {
|
|
4347
4685
|
const element = elementRef.current;
|
|
4348
4686
|
if (!element) return;
|
|
4349
4687
|
const checkTruncate = debounce(() => {
|
|
@@ -4372,14 +4710,14 @@ var useControllableState = ({
|
|
|
4372
4710
|
value
|
|
4373
4711
|
}) => {
|
|
4374
4712
|
const isControlled = typeof value !== "undefined";
|
|
4375
|
-
const [internalValue, setInternalValue] =
|
|
4713
|
+
const [internalValue, setInternalValue] = React25__namespace.useState(() => {
|
|
4376
4714
|
return isControlled ? value : defaultValue;
|
|
4377
4715
|
});
|
|
4378
|
-
|
|
4716
|
+
React25__namespace.useEffect(() => {
|
|
4379
4717
|
if (!isControlled) return;
|
|
4380
4718
|
setInternalValue(value);
|
|
4381
4719
|
}, [isControlled, value]);
|
|
4382
|
-
const setValue =
|
|
4720
|
+
const setValue = React25__namespace.useCallback(
|
|
4383
4721
|
(nextValue) => {
|
|
4384
4722
|
if (isControlled) return;
|
|
4385
4723
|
setInternalValue(nextValue);
|
|
@@ -4393,7 +4731,7 @@ var useControllableState = ({
|
|
|
4393
4731
|
};
|
|
4394
4732
|
};
|
|
4395
4733
|
var useControllableState_default = useControllableState;
|
|
4396
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" ?
|
|
4734
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React25.useLayoutEffect : React25.useEffect;
|
|
4397
4735
|
var HeaderCell = ({
|
|
4398
4736
|
rootClassName,
|
|
4399
4737
|
labelClassName,
|
|
@@ -4496,7 +4834,7 @@ function TableHeader({ className, ...props }) {
|
|
|
4496
4834
|
"thead",
|
|
4497
4835
|
{
|
|
4498
4836
|
"data-slot": "table-header",
|
|
4499
|
-
className: cn("[&_tr]:border-b bg-
|
|
4837
|
+
className: cn("[&_tr]:border-b bg-sus-gray-2", className),
|
|
4500
4838
|
...props
|
|
4501
4839
|
}
|
|
4502
4840
|
);
|
|
@@ -4530,7 +4868,7 @@ function TableHead({ className, ...props }) {
|
|
|
4530
4868
|
{
|
|
4531
4869
|
"data-slot": "table-head",
|
|
4532
4870
|
className: cn(
|
|
4533
|
-
"text-foreground h-9 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [
|
|
4871
|
+
"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
4872
|
className
|
|
4535
4873
|
),
|
|
4536
4874
|
...props
|
|
@@ -4543,7 +4881,7 @@ function TableCell({ className, ...props }) {
|
|
|
4543
4881
|
{
|
|
4544
4882
|
"data-slot": "table-cell",
|
|
4545
4883
|
className: cn(
|
|
4546
|
-
"p-2 h-10 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [
|
|
4884
|
+
"p-2 h-10 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5 border-b truncate",
|
|
4547
4885
|
className
|
|
4548
4886
|
),
|
|
4549
4887
|
...props
|
|
@@ -4591,7 +4929,7 @@ var ColumnSeparator = ({ show, className, ...props }) => {
|
|
|
4591
4929
|
}
|
|
4592
4930
|
);
|
|
4593
4931
|
};
|
|
4594
|
-
var ColumnSeparator_default =
|
|
4932
|
+
var ColumnSeparator_default = React25__namespace.default.memo(ColumnSeparator);
|
|
4595
4933
|
var StatusContentSlot = ({
|
|
4596
4934
|
content,
|
|
4597
4935
|
icon,
|
|
@@ -4610,7 +4948,7 @@ var StatusContentSlot = ({
|
|
|
4610
4948
|
content
|
|
4611
4949
|
] });
|
|
4612
4950
|
};
|
|
4613
|
-
var StatusContentSlot_default =
|
|
4951
|
+
var StatusContentSlot_default = React25__namespace.default.memo(StatusContentSlot);
|
|
4614
4952
|
var stateOptions = [
|
|
4615
4953
|
"columnFilters",
|
|
4616
4954
|
"globalFilter",
|
|
@@ -4663,9 +5001,9 @@ var modelOptions = [
|
|
|
4663
5001
|
"getCenterVisibleLeafColumns"
|
|
4664
5002
|
];
|
|
4665
5003
|
var DataTableDevTool = ({ table }) => {
|
|
4666
|
-
const [open, setOpen] =
|
|
4667
|
-
const [visibleStates, setVisibleStates] =
|
|
4668
|
-
const [visibleModels, setVisibleModels] =
|
|
5004
|
+
const [open, setOpen] = React25.useState(false);
|
|
5005
|
+
const [visibleStates, setVisibleStates] = React25.useState([]);
|
|
5006
|
+
const [visibleModels, setVisibleModels] = React25.useState([]);
|
|
4669
5007
|
const tableState = table.getState();
|
|
4670
5008
|
const toggleValue = (arr, value) => arr.includes(value) ? arr.filter((v) => v !== value) : [...arr, value];
|
|
4671
5009
|
const getCircularReplacer = () => {
|
|
@@ -4922,14 +5260,14 @@ var DataTable = ({
|
|
|
4922
5260
|
columnResizeMode: columnResizing?.enabled ? columnResizing?.resizeMode ?? "onChange" : "onChange"
|
|
4923
5261
|
})
|
|
4924
5262
|
});
|
|
4925
|
-
const tableContainerRef =
|
|
5263
|
+
const tableContainerRef = React25.useRef(null);
|
|
4926
5264
|
const isTableEmpty = table.getCoreRowModel().rows.length === 0;
|
|
4927
5265
|
const isTableEmptyAfterFiltering = table.getRowModel().rows.length === 0;
|
|
4928
5266
|
const isFiltering = table.getState().columnFilters.length > 0 || !!table.getState().globalFilter;
|
|
4929
5267
|
const leftVisibleLeftColumns = table.getLeftVisibleLeafColumns();
|
|
4930
5268
|
const centerVisibleLeafColumns = table.getCenterVisibleLeafColumns();
|
|
4931
5269
|
const rightVisibleLeafColumns = table.getRightVisibleLeafColumns();
|
|
4932
|
-
const { isSomeColumnsFilterable, filterableColumns } =
|
|
5270
|
+
const { isSomeColumnsFilterable, filterableColumns } = React25.useMemo(() => {
|
|
4933
5271
|
const mergedColumns = [
|
|
4934
5272
|
...leftVisibleLeftColumns,
|
|
4935
5273
|
...centerVisibleLeafColumns,
|
|
@@ -4940,7 +5278,7 @@ var DataTable = ({
|
|
|
4940
5278
|
);
|
|
4941
5279
|
return { isSomeColumnsFilterable: isSomeColumnsFilterable2, filterableColumns: mergedColumns };
|
|
4942
5280
|
}, [centerVisibleLeafColumns, leftVisibleLeftColumns, rightVisibleLeafColumns]);
|
|
4943
|
-
const autoStatusKey =
|
|
5281
|
+
const autoStatusKey = React25.useMemo(() => {
|
|
4944
5282
|
if (isInitialLoading) return "initialLoading";
|
|
4945
5283
|
if (isTableEmpty) return "emptyData";
|
|
4946
5284
|
if (isTableEmptyAfterFiltering) return "emptyFilteredData";
|
|
@@ -4958,14 +5296,14 @@ var DataTable = ({
|
|
|
4958
5296
|
scrollFetch?.hasMore,
|
|
4959
5297
|
scrollFetch?.isFetchingMore
|
|
4960
5298
|
]);
|
|
4961
|
-
const activeStatusContentComputed =
|
|
5299
|
+
const activeStatusContentComputed = React25.useMemo(() => {
|
|
4962
5300
|
if (!activeStatusContent) return autoStatusKey;
|
|
4963
5301
|
if (typeof activeStatusContent === "function") {
|
|
4964
5302
|
return activeStatusContent({ defaultComputedValue: autoStatusKey });
|
|
4965
5303
|
}
|
|
4966
5304
|
return activeStatusContent;
|
|
4967
5305
|
}, [activeStatusContent, autoStatusKey]);
|
|
4968
|
-
const fetchMoreOnScrollReached =
|
|
5306
|
+
const fetchMoreOnScrollReached = React25.useCallback(
|
|
4969
5307
|
(containerRefElement) => {
|
|
4970
5308
|
if (!scrollFetch?.enabled || !containerRefElement || scrollFetch?.isFetchingMore || !scrollFetch?.hasMore || !scrollFetch?.fetchMore) {
|
|
4971
5309
|
return;
|
|
@@ -4999,14 +5337,14 @@ var DataTable = ({
|
|
|
4999
5337
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5000
5338
|
[scrollFetch?.enabled, scrollFetch?.isFetchingMore, scrollFetch?.hasMore, scrollFetch?.fetchMore]
|
|
5001
5339
|
);
|
|
5002
|
-
|
|
5340
|
+
React25.useEffect(() => {
|
|
5003
5341
|
if (!tableRef) return;
|
|
5004
5342
|
tableRef.current = table;
|
|
5005
5343
|
return () => {
|
|
5006
5344
|
tableRef.current = null;
|
|
5007
5345
|
};
|
|
5008
5346
|
}, [tableRef, table]);
|
|
5009
|
-
|
|
5347
|
+
React25.useEffect(() => {
|
|
5010
5348
|
fetchMoreOnScrollReached(tableContainerRef.current);
|
|
5011
5349
|
}, [fetchMoreOnScrollReached]);
|
|
5012
5350
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -5136,7 +5474,7 @@ var DataTable = ({
|
|
|
5136
5474
|
),
|
|
5137
5475
|
/* @__PURE__ */ jsxRuntime.jsx(TableBody, { ...components?.tableBodyProps, children: table.getRowModel().rows.map((row) => {
|
|
5138
5476
|
const tableDataRowProps = typeof components?.tableDataRowProps === "function" ? components.tableDataRowProps({ row, table }) || {} : components?.tableDataRowProps || {};
|
|
5139
|
-
return /* @__PURE__ */
|
|
5477
|
+
return /* @__PURE__ */ React25.createElement(
|
|
5140
5478
|
TableRow,
|
|
5141
5479
|
{
|
|
5142
5480
|
"data-testid": `table-data-row-${row.id}`,
|
|
@@ -5614,11 +5952,11 @@ function DialogAlert({
|
|
|
5614
5952
|
}) {
|
|
5615
5953
|
const alignClass = align === "start" ? "justify-start" : align === "end" ? "justify-end" : "justify-center";
|
|
5616
5954
|
const { t } = reactI18next.useTranslation();
|
|
5617
|
-
const handleCancel =
|
|
5955
|
+
const handleCancel = React25.useCallback(() => {
|
|
5618
5956
|
onCancel?.();
|
|
5619
5957
|
onOpenChange(false);
|
|
5620
5958
|
}, [onCancel, onOpenChange]);
|
|
5621
|
-
const handleConfirm =
|
|
5959
|
+
const handleConfirm = React25.useCallback(() => {
|
|
5622
5960
|
let func = onConfirm;
|
|
5623
5961
|
if (variant === "success" && showCancel === false) {
|
|
5624
5962
|
func = onConfirm ?? onCancel;
|
|
@@ -5848,7 +6186,7 @@ var DialogAlertProvider = ({ children, i18nResource, i18nLang }) => {
|
|
|
5848
6186
|
const open = useDialogAlertStore((state) => state.open);
|
|
5849
6187
|
const setOpen = useDialogAlertStore((state) => state.setOpen);
|
|
5850
6188
|
const dialogProps = useDialogAlertStore((state) => state.dialogProps);
|
|
5851
|
-
|
|
6189
|
+
React25.useEffect(() => {
|
|
5852
6190
|
if (!i18nResource) {
|
|
5853
6191
|
i18n_default.changeLanguage("sharedui");
|
|
5854
6192
|
return;
|
|
@@ -5958,8 +6296,8 @@ var defaultOperatorShortcuts = {
|
|
|
5958
6296
|
};
|
|
5959
6297
|
var DEFAULT_DEBOUNCE = 200;
|
|
5960
6298
|
function useKeyboardNavigation(itemsLength, onSelect, isLocked) {
|
|
5961
|
-
const [selectedIndex, setSelectedIndex] =
|
|
5962
|
-
|
|
6299
|
+
const [selectedIndex, setSelectedIndex] = React25.useState(0);
|
|
6300
|
+
React25.useEffect(() => {
|
|
5963
6301
|
const handler = (event) => {
|
|
5964
6302
|
if (event.key === "ArrowDown") {
|
|
5965
6303
|
event.preventDefault();
|
|
@@ -5982,10 +6320,10 @@ function useKeyboardNavigation(itemsLength, onSelect, isLocked) {
|
|
|
5982
6320
|
return [selectedIndex, setSelectedIndex];
|
|
5983
6321
|
}
|
|
5984
6322
|
function useDropdownPosition(clientRect, itemsCount) {
|
|
5985
|
-
const [rect, setRect] =
|
|
5986
|
-
const [style, setStyle] =
|
|
5987
|
-
const ref =
|
|
5988
|
-
|
|
6323
|
+
const [rect, setRect] = React25.useState(null);
|
|
6324
|
+
const [style, setStyle] = React25.useState({});
|
|
6325
|
+
const ref = React25.useRef(null);
|
|
6326
|
+
React25.useEffect(() => {
|
|
5989
6327
|
if (!clientRect) return;
|
|
5990
6328
|
const update = () => {
|
|
5991
6329
|
const nextRect = clientRect();
|
|
@@ -6002,7 +6340,7 @@ function useDropdownPosition(clientRect, itemsCount) {
|
|
|
6002
6340
|
resizeObserver.disconnect();
|
|
6003
6341
|
};
|
|
6004
6342
|
}, [clientRect]);
|
|
6005
|
-
|
|
6343
|
+
React25.useLayoutEffect(() => {
|
|
6006
6344
|
if (!rect || !ref.current) return;
|
|
6007
6345
|
const dropdown = ref.current;
|
|
6008
6346
|
const dropdownRect = dropdown.getBoundingClientRect();
|
|
@@ -6029,15 +6367,15 @@ var SuggestionList = ({
|
|
|
6029
6367
|
debounceMs = DEFAULT_DEBOUNCE,
|
|
6030
6368
|
query
|
|
6031
6369
|
}) => {
|
|
6032
|
-
const [items, setItems] =
|
|
6033
|
-
const [isLoading, setIsLoading] =
|
|
6034
|
-
const fetchId =
|
|
6035
|
-
const debounceHandle =
|
|
6036
|
-
const itemRefs =
|
|
6370
|
+
const [items, setItems] = React25.useState([]);
|
|
6371
|
+
const [isLoading, setIsLoading] = React25.useState(false);
|
|
6372
|
+
const fetchId = React25.useRef(0);
|
|
6373
|
+
const debounceHandle = React25.useRef(null);
|
|
6374
|
+
const itemRefs = React25.useRef([]);
|
|
6037
6375
|
const { ref, style, rect } = useDropdownPosition(clientRect, items.length);
|
|
6038
|
-
const normalizedMap =
|
|
6039
|
-
const normalizeItem =
|
|
6040
|
-
|
|
6376
|
+
const normalizedMap = React25.useMemo(() => mapItem, [mapItem]);
|
|
6377
|
+
const normalizeItem = React25.useMemo(() => normalizeToken, [normalizeToken]);
|
|
6378
|
+
React25.useEffect(() => {
|
|
6041
6379
|
const runFetch = (input) => {
|
|
6042
6380
|
fetchId.current += 1;
|
|
6043
6381
|
const currentId = fetchId.current;
|
|
@@ -6068,7 +6406,7 @@ var SuggestionList = ({
|
|
|
6068
6406
|
fetchId.current += 1;
|
|
6069
6407
|
};
|
|
6070
6408
|
}, [query, fetchItems, normalizedMap, normalizeItem, debounceMs]);
|
|
6071
|
-
const handleSelect =
|
|
6409
|
+
const handleSelect = React25.useMemo(
|
|
6072
6410
|
() => (item) => {
|
|
6073
6411
|
if (isLoading) return;
|
|
6074
6412
|
command(item);
|
|
@@ -6083,10 +6421,10 @@ var SuggestionList = ({
|
|
|
6083
6421
|
},
|
|
6084
6422
|
isLoading
|
|
6085
6423
|
);
|
|
6086
|
-
|
|
6424
|
+
React25.useEffect(() => {
|
|
6087
6425
|
setSelectedIndex(0);
|
|
6088
6426
|
}, [items, setSelectedIndex]);
|
|
6089
|
-
|
|
6427
|
+
React25.useEffect(() => {
|
|
6090
6428
|
const element = itemRefs.current[selectedIndex];
|
|
6091
6429
|
if (element) element.scrollIntoView({ block: "nearest" });
|
|
6092
6430
|
}, [selectedIndex]);
|
|
@@ -6134,8 +6472,8 @@ var DISALLOWED_MARKS = ["bold", "italic", "link"];
|
|
|
6134
6472
|
var SUGGESTION_DEBOUNCE = 200;
|
|
6135
6473
|
var DEFAULT_CHIP_CLASS = "outline-1 outline-muted bg-muted/40 text-foreground";
|
|
6136
6474
|
var TokenView = ({ node, editor, getPos }) => {
|
|
6137
|
-
const [isFocused, setIsFocused] =
|
|
6138
|
-
|
|
6475
|
+
const [isFocused, setIsFocused] = React25__namespace.default.useState(false);
|
|
6476
|
+
React25__namespace.default.useEffect(() => {
|
|
6139
6477
|
const handler = () => {
|
|
6140
6478
|
const { from, to } = editor.state.selection;
|
|
6141
6479
|
const position = getPos();
|
|
@@ -6686,6 +7024,8 @@ __export(ui_exports, {
|
|
|
6686
7024
|
Input: () => Input,
|
|
6687
7025
|
InputPrimitive: () => InputPrimitive,
|
|
6688
7026
|
Label: () => Label2,
|
|
7027
|
+
ListContainer: () => container_default,
|
|
7028
|
+
ListHeader: () => header_default,
|
|
6689
7029
|
MonthPicker: () => MonthPicker,
|
|
6690
7030
|
Popover: () => Popover,
|
|
6691
7031
|
PopoverAnchor: () => PopoverAnchor,
|
|
@@ -6762,6 +7102,76 @@ __export(ui_exports, {
|
|
|
6762
7102
|
useFormField: () => useFormField,
|
|
6763
7103
|
useSidebar: () => useSidebar
|
|
6764
7104
|
});
|
|
7105
|
+
var ListContainer = ({ className, isLeftExpanded, children }) => {
|
|
7106
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7107
|
+
"div",
|
|
7108
|
+
{
|
|
7109
|
+
className: cn(
|
|
7110
|
+
"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",
|
|
7111
|
+
{
|
|
7112
|
+
"w-full": isLeftExpanded,
|
|
7113
|
+
"md:w-full": isLeftExpanded,
|
|
7114
|
+
"w-full lg:w-1/2": !isLeftExpanded
|
|
7115
|
+
},
|
|
7116
|
+
className
|
|
7117
|
+
),
|
|
7118
|
+
style: {
|
|
7119
|
+
position: "relative",
|
|
7120
|
+
transitionProperty: "width, transform",
|
|
7121
|
+
transitionDuration: "300ms"
|
|
7122
|
+
},
|
|
7123
|
+
children
|
|
7124
|
+
}
|
|
7125
|
+
);
|
|
7126
|
+
};
|
|
7127
|
+
var container_default = ListContainer;
|
|
7128
|
+
var ListHeader = ({
|
|
7129
|
+
title,
|
|
7130
|
+
titleIcon,
|
|
7131
|
+
isExpanded = false,
|
|
7132
|
+
bgColor = "bg-[#82B495]",
|
|
7133
|
+
textClassName = "text-white",
|
|
7134
|
+
onSettingClick,
|
|
7135
|
+
onExpandClick,
|
|
7136
|
+
rightActions,
|
|
7137
|
+
className
|
|
7138
|
+
}) => {
|
|
7139
|
+
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: [
|
|
7140
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-2 text-lg", textClassName), children: [
|
|
7141
|
+
titleIcon,
|
|
7142
|
+
title
|
|
7143
|
+
] }),
|
|
7144
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: rightActions ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7145
|
+
onSettingClick && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7146
|
+
"button",
|
|
7147
|
+
{
|
|
7148
|
+
onClick: onSettingClick,
|
|
7149
|
+
title: "Settings",
|
|
7150
|
+
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
7151
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(setting_default, { className: "text-white" })
|
|
7152
|
+
}
|
|
7153
|
+
),
|
|
7154
|
+
onSettingClick && onExpandClick && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("h-8 w-px", textClassName.replace("text-", "bg-")) }),
|
|
7155
|
+
onExpandClick && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7156
|
+
"button",
|
|
7157
|
+
{
|
|
7158
|
+
"data-testid": "list-expand-button",
|
|
7159
|
+
onClick: onExpandClick,
|
|
7160
|
+
title: isExpanded ? "Collapse" : "Expand",
|
|
7161
|
+
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
7162
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-0.5 text-white", children: isExpanded ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7163
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" }),
|
|
7164
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4 -ml-2" })
|
|
7165
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7166
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" }),
|
|
7167
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4 -ml-2" })
|
|
7168
|
+
] }) })
|
|
7169
|
+
}
|
|
7170
|
+
)
|
|
7171
|
+
] }) })
|
|
7172
|
+
] }) });
|
|
7173
|
+
};
|
|
7174
|
+
var header_default = ListHeader;
|
|
6765
7175
|
function RadioGroupRoot({
|
|
6766
7176
|
children,
|
|
6767
7177
|
...props
|
|
@@ -7050,21 +7460,21 @@ function ToolbarPlugin({
|
|
|
7050
7460
|
acceptImageMimeTypes
|
|
7051
7461
|
}) {
|
|
7052
7462
|
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] =
|
|
7463
|
+
const [state, setState] = React25.useState(initialToolbarState);
|
|
7464
|
+
const fileInputRef = React25.useRef(null);
|
|
7465
|
+
const [isLinkDialogOpen, setLinkDialogOpen] = React25.useState(false);
|
|
7466
|
+
const [editingExistingLink, setEditingExistingLink] = React25.useState(false);
|
|
7467
|
+
const [linkNodeKey, setLinkNodeKey] = React25.useState(null);
|
|
7468
|
+
const [isImageDialogOpen, setImageDialogOpen] = React25.useState(false);
|
|
7469
|
+
const [editingExistingImage, setEditingExistingImage] = React25.useState(false);
|
|
7470
|
+
const [imageNodeKey, setImageNodeKey] = React25.useState(null);
|
|
7061
7471
|
const linkForm = reactHookForm.useForm({
|
|
7062
7472
|
defaultValues: { url: "", label: "" }
|
|
7063
7473
|
});
|
|
7064
7474
|
const imageForm = reactHookForm.useForm({
|
|
7065
7475
|
defaultValues: { url: "", alt: "", width: "", height: "" }
|
|
7066
7476
|
});
|
|
7067
|
-
const openImageDialog =
|
|
7477
|
+
const openImageDialog = React25.useCallback(() => {
|
|
7068
7478
|
if (disabled || !allowImageUrlInsert) {
|
|
7069
7479
|
return;
|
|
7070
7480
|
}
|
|
@@ -7098,7 +7508,7 @@ function ToolbarPlugin({
|
|
|
7098
7508
|
setImageNodeKey(targetImage?.getKey() ?? null);
|
|
7099
7509
|
setImageDialogOpen(true);
|
|
7100
7510
|
}, [allowImageUrlInsert, disabled, editor, imageForm]);
|
|
7101
|
-
const closeImageDialog =
|
|
7511
|
+
const closeImageDialog = React25.useCallback(() => {
|
|
7102
7512
|
setImageDialogOpen(false);
|
|
7103
7513
|
setEditingExistingImage(false);
|
|
7104
7514
|
setImageNodeKey(null);
|
|
@@ -7107,7 +7517,7 @@ function ToolbarPlugin({
|
|
|
7107
7517
|
editor.focus();
|
|
7108
7518
|
}, 0);
|
|
7109
7519
|
}, [editor, imageForm]);
|
|
7110
|
-
const openLinkDialog =
|
|
7520
|
+
const openLinkDialog = React25.useCallback(() => {
|
|
7111
7521
|
if (disabled) {
|
|
7112
7522
|
return;
|
|
7113
7523
|
}
|
|
@@ -7147,7 +7557,7 @@ function ToolbarPlugin({
|
|
|
7147
7557
|
setLinkNodeKey(detectedLink?.getKey() ?? null);
|
|
7148
7558
|
setLinkDialogOpen(true);
|
|
7149
7559
|
}, [disabled, editor, linkForm]);
|
|
7150
|
-
const closeLinkDialog =
|
|
7560
|
+
const closeLinkDialog = React25.useCallback(() => {
|
|
7151
7561
|
setLinkDialogOpen(false);
|
|
7152
7562
|
setEditingExistingLink(false);
|
|
7153
7563
|
setLinkNodeKey(null);
|
|
@@ -7188,7 +7598,7 @@ function ToolbarPlugin({
|
|
|
7188
7598
|
});
|
|
7189
7599
|
closeLinkDialog();
|
|
7190
7600
|
});
|
|
7191
|
-
const handleRemoveLink =
|
|
7601
|
+
const handleRemoveLink = React25.useCallback(() => {
|
|
7192
7602
|
editor.focus();
|
|
7193
7603
|
editor.update(() => {
|
|
7194
7604
|
if (linkNodeKey) {
|
|
@@ -7205,7 +7615,7 @@ function ToolbarPlugin({
|
|
|
7205
7615
|
});
|
|
7206
7616
|
closeLinkDialog();
|
|
7207
7617
|
}, [closeLinkDialog, editor, linkNodeKey]);
|
|
7208
|
-
const handleLinkDialogOpenChange =
|
|
7618
|
+
const handleLinkDialogOpenChange = React25.useCallback(
|
|
7209
7619
|
(open) => {
|
|
7210
7620
|
if (open) {
|
|
7211
7621
|
setLinkDialogOpen(true);
|
|
@@ -7215,7 +7625,7 @@ function ToolbarPlugin({
|
|
|
7215
7625
|
},
|
|
7216
7626
|
[closeLinkDialog]
|
|
7217
7627
|
);
|
|
7218
|
-
const updateToolbar =
|
|
7628
|
+
const updateToolbar = React25.useCallback(() => {
|
|
7219
7629
|
const selection = lexical.$getSelection();
|
|
7220
7630
|
if (!lexical.$isRangeSelection(selection)) {
|
|
7221
7631
|
return;
|
|
@@ -7255,7 +7665,7 @@ function ToolbarPlugin({
|
|
|
7255
7665
|
isLink: hasLink
|
|
7256
7666
|
}));
|
|
7257
7667
|
}, []);
|
|
7258
|
-
|
|
7668
|
+
React25__namespace.useEffect(() => {
|
|
7259
7669
|
return utils.mergeRegister(
|
|
7260
7670
|
editor.registerCommand(
|
|
7261
7671
|
lexical.CAN_UNDO_COMMAND,
|
|
@@ -7286,7 +7696,7 @@ function ToolbarPlugin({
|
|
|
7286
7696
|
})
|
|
7287
7697
|
);
|
|
7288
7698
|
}, [editor, updateToolbar]);
|
|
7289
|
-
const applyBlock =
|
|
7699
|
+
const applyBlock = React25.useCallback(
|
|
7290
7700
|
(nextBlock) => {
|
|
7291
7701
|
if (disabled) {
|
|
7292
7702
|
return;
|
|
@@ -7348,7 +7758,7 @@ function ToolbarPlugin({
|
|
|
7348
7758
|
},
|
|
7349
7759
|
[disabled, editor, state.blockType]
|
|
7350
7760
|
);
|
|
7351
|
-
const toggleFormat =
|
|
7761
|
+
const toggleFormat = React25.useCallback(
|
|
7352
7762
|
(format5) => {
|
|
7353
7763
|
if (disabled) {
|
|
7354
7764
|
return;
|
|
@@ -7357,10 +7767,10 @@ function ToolbarPlugin({
|
|
|
7357
7767
|
},
|
|
7358
7768
|
[disabled, editor]
|
|
7359
7769
|
);
|
|
7360
|
-
const toggleLink =
|
|
7770
|
+
const toggleLink = React25.useCallback(() => {
|
|
7361
7771
|
openLinkDialog();
|
|
7362
7772
|
}, [openLinkDialog]);
|
|
7363
|
-
const applyElementFormat =
|
|
7773
|
+
const applyElementFormat = React25.useCallback(
|
|
7364
7774
|
(format5) => {
|
|
7365
7775
|
if (disabled) {
|
|
7366
7776
|
return;
|
|
@@ -7371,7 +7781,7 @@ function ToolbarPlugin({
|
|
|
7371
7781
|
);
|
|
7372
7782
|
const canInsertImage = allowImageUrlInsert || Boolean(onImageUpload);
|
|
7373
7783
|
const imageAccept = acceptImageMimeTypes ?? DEFAULT_IMAGE_ACCEPT;
|
|
7374
|
-
const handleInsertImage =
|
|
7784
|
+
const handleInsertImage = React25.useCallback(() => {
|
|
7375
7785
|
if (disabled || !canInsertImage) {
|
|
7376
7786
|
return;
|
|
7377
7787
|
}
|
|
@@ -7382,7 +7792,7 @@ function ToolbarPlugin({
|
|
|
7382
7792
|
}
|
|
7383
7793
|
openImageDialog();
|
|
7384
7794
|
}, [canInsertImage, disabled, editor, onImageUpload, openImageDialog]);
|
|
7385
|
-
const handleFileChange =
|
|
7795
|
+
const handleFileChange = React25.useCallback(
|
|
7386
7796
|
async (event) => {
|
|
7387
7797
|
if (!onImageUpload) {
|
|
7388
7798
|
return;
|
|
@@ -7472,7 +7882,7 @@ function ToolbarPlugin({
|
|
|
7472
7882
|
});
|
|
7473
7883
|
closeImageDialog();
|
|
7474
7884
|
});
|
|
7475
|
-
const handleImageDialogOpenChange =
|
|
7885
|
+
const handleImageDialogOpenChange = React25.useCallback(
|
|
7476
7886
|
(open) => {
|
|
7477
7887
|
if (open) {
|
|
7478
7888
|
setImageDialogOpen(true);
|
|
@@ -7482,7 +7892,7 @@ function ToolbarPlugin({
|
|
|
7482
7892
|
},
|
|
7483
7893
|
[closeImageDialog]
|
|
7484
7894
|
);
|
|
7485
|
-
const handleRemoveImage =
|
|
7895
|
+
const handleRemoveImage = React25.useCallback(() => {
|
|
7486
7896
|
if (!imageNodeKey) {
|
|
7487
7897
|
closeImageDialog();
|
|
7488
7898
|
return;
|
|
@@ -7841,7 +8251,7 @@ function ControlledValuePlugin({
|
|
|
7841
8251
|
trackAppliedValue
|
|
7842
8252
|
}) {
|
|
7843
8253
|
const [editor] = LexicalComposerContext.useLexicalComposerContext();
|
|
7844
|
-
|
|
8254
|
+
React25__namespace.useEffect(() => {
|
|
7845
8255
|
if (value == null || trackAppliedValue.current === value) {
|
|
7846
8256
|
return;
|
|
7847
8257
|
}
|
|
@@ -7865,14 +8275,14 @@ function ControlledValuePlugin({
|
|
|
7865
8275
|
}
|
|
7866
8276
|
function EditableStatePlugin({ editable }) {
|
|
7867
8277
|
const [editor] = LexicalComposerContext.useLexicalComposerContext();
|
|
7868
|
-
|
|
8278
|
+
React25__namespace.useEffect(() => {
|
|
7869
8279
|
editor.setEditable(editable);
|
|
7870
8280
|
}, [editor, editable]);
|
|
7871
8281
|
return null;
|
|
7872
8282
|
}
|
|
7873
8283
|
function ImagesPlugin() {
|
|
7874
8284
|
const [editor] = LexicalComposerContext.useLexicalComposerContext();
|
|
7875
|
-
|
|
8285
|
+
React25__namespace.useEffect(() => {
|
|
7876
8286
|
return editor.registerCommand(
|
|
7877
8287
|
INSERT_IMAGE_COMMAND,
|
|
7878
8288
|
(payload) => {
|
|
@@ -7891,7 +8301,7 @@ function ImagesPlugin() {
|
|
|
7891
8301
|
}, [editor]);
|
|
7892
8302
|
return null;
|
|
7893
8303
|
}
|
|
7894
|
-
var RichText =
|
|
8304
|
+
var RichText = React25.forwardRef(function RichText2({
|
|
7895
8305
|
value,
|
|
7896
8306
|
defaultValue,
|
|
7897
8307
|
onChange,
|
|
@@ -7910,11 +8320,11 @@ var RichText = React26.forwardRef(function RichText2({
|
|
|
7910
8320
|
id,
|
|
7911
8321
|
...rest
|
|
7912
8322
|
}, ref) {
|
|
7913
|
-
const initialSerializedStateRef =
|
|
8323
|
+
const initialSerializedStateRef = React25.useRef(void 0);
|
|
7914
8324
|
if (initialSerializedStateRef.current === void 0) {
|
|
7915
8325
|
initialSerializedStateRef.current = parseSerializedEditorState(value ?? defaultValue);
|
|
7916
8326
|
}
|
|
7917
|
-
const initialConfig =
|
|
8327
|
+
const initialConfig = React25.useMemo(
|
|
7918
8328
|
() => ({
|
|
7919
8329
|
namespace: "RichTextEditor",
|
|
7920
8330
|
editable: !(readOnly || disabled),
|
|
@@ -7927,8 +8337,8 @@ var RichText = React26.forwardRef(function RichText2({
|
|
|
7927
8337
|
}),
|
|
7928
8338
|
[disabled, readOnly]
|
|
7929
8339
|
);
|
|
7930
|
-
const appliedValueRef =
|
|
7931
|
-
const handleChange =
|
|
8340
|
+
const appliedValueRef = React25.useRef(value ?? defaultValue);
|
|
8341
|
+
const handleChange = React25.useCallback(
|
|
7932
8342
|
(editorState, editor) => {
|
|
7933
8343
|
const serialized = JSON.stringify(editorState.toJSON());
|
|
7934
8344
|
appliedValueRef.current = serialized;
|
|
@@ -8117,13 +8527,13 @@ function SheetDescription({
|
|
|
8117
8527
|
);
|
|
8118
8528
|
}
|
|
8119
8529
|
function useIsMobile(breakpoint = 768) {
|
|
8120
|
-
const [isMobile, setIsMobile] =
|
|
8530
|
+
const [isMobile, setIsMobile] = React25.useState(() => {
|
|
8121
8531
|
if (typeof window === "undefined") {
|
|
8122
8532
|
return false;
|
|
8123
8533
|
}
|
|
8124
8534
|
return window.innerWidth < breakpoint;
|
|
8125
8535
|
});
|
|
8126
|
-
|
|
8536
|
+
React25.useEffect(() => {
|
|
8127
8537
|
function onResize() {
|
|
8128
8538
|
setIsMobile(window.innerWidth < breakpoint);
|
|
8129
8539
|
}
|
|
@@ -8153,9 +8563,9 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
8153
8563
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
8154
8564
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
8155
8565
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
8156
|
-
var SidebarContext =
|
|
8566
|
+
var SidebarContext = React25__namespace.createContext(null);
|
|
8157
8567
|
function useSidebar() {
|
|
8158
|
-
const context =
|
|
8568
|
+
const context = React25__namespace.useContext(SidebarContext);
|
|
8159
8569
|
if (!context) {
|
|
8160
8570
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
8161
8571
|
}
|
|
@@ -8171,10 +8581,10 @@ function SidebarProvider({
|
|
|
8171
8581
|
...props
|
|
8172
8582
|
}) {
|
|
8173
8583
|
const isMobile = useIsMobile();
|
|
8174
|
-
const [openMobile, setOpenMobile] =
|
|
8175
|
-
const [_open, _setOpen] =
|
|
8584
|
+
const [openMobile, setOpenMobile] = React25__namespace.useState(false);
|
|
8585
|
+
const [_open, _setOpen] = React25__namespace.useState(defaultOpen);
|
|
8176
8586
|
const open = openProp ?? _open;
|
|
8177
|
-
const setOpen =
|
|
8587
|
+
const setOpen = React25__namespace.useCallback(
|
|
8178
8588
|
(value) => {
|
|
8179
8589
|
const openState = typeof value === "function" ? value(open) : value;
|
|
8180
8590
|
if (setOpenProp) {
|
|
@@ -8186,10 +8596,10 @@ function SidebarProvider({
|
|
|
8186
8596
|
},
|
|
8187
8597
|
[setOpenProp, open]
|
|
8188
8598
|
);
|
|
8189
|
-
const toggleSidebar =
|
|
8599
|
+
const toggleSidebar = React25__namespace.useCallback(() => {
|
|
8190
8600
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
8191
8601
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
8192
|
-
|
|
8602
|
+
React25__namespace.useEffect(() => {
|
|
8193
8603
|
const handleKeyDown = (event) => {
|
|
8194
8604
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
8195
8605
|
event.preventDefault();
|
|
@@ -8200,7 +8610,7 @@ function SidebarProvider({
|
|
|
8200
8610
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
8201
8611
|
}, [toggleSidebar]);
|
|
8202
8612
|
const state = open ? "expanded" : "collapsed";
|
|
8203
|
-
const contextValue =
|
|
8613
|
+
const contextValue = React25__namespace.useMemo(
|
|
8204
8614
|
() => ({
|
|
8205
8615
|
state,
|
|
8206
8616
|
open,
|
|
@@ -8642,7 +9052,7 @@ function SidebarMenuSkeleton({
|
|
|
8642
9052
|
showIcon = false,
|
|
8643
9053
|
...props
|
|
8644
9054
|
}) {
|
|
8645
|
-
const width =
|
|
9055
|
+
const width = React25__namespace.useMemo(() => {
|
|
8646
9056
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
8647
9057
|
}, []);
|
|
8648
9058
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8907,10 +9317,10 @@ var FormulaEditor = ({
|
|
|
8907
9317
|
fieldState,
|
|
8908
9318
|
mode = "edit"
|
|
8909
9319
|
}) => {
|
|
8910
|
-
const [isExpanded, setIsExpanded] =
|
|
8911
|
-
const lastEmittedValueRef =
|
|
8912
|
-
const ignorePropValueRef =
|
|
8913
|
-
const normalizedConfigs =
|
|
9320
|
+
const [isExpanded, setIsExpanded] = React25.useState(false);
|
|
9321
|
+
const lastEmittedValueRef = React25.useRef(null);
|
|
9322
|
+
const ignorePropValueRef = React25.useRef(false);
|
|
9323
|
+
const normalizedConfigs = React25.useMemo(() => {
|
|
8914
9324
|
const configsToUse = tokenConfigs?.length ? tokenConfigs : DEFAULT_TOKEN_CONFIGS;
|
|
8915
9325
|
return configsToUse.map((config) => ({
|
|
8916
9326
|
...config,
|
|
@@ -8919,18 +9329,18 @@ var FormulaEditor = ({
|
|
|
8919
9329
|
outputType: config.outputType ?? config.type
|
|
8920
9330
|
}));
|
|
8921
9331
|
}, [tokenConfigs]);
|
|
8922
|
-
const prefixMap =
|
|
8923
|
-
const configLookup =
|
|
9332
|
+
const prefixMap = React25.useMemo(() => buildPrefixMap(normalizedConfigs), [normalizedConfigs]);
|
|
9333
|
+
const configLookup = React25.useMemo(() => {
|
|
8924
9334
|
const lookup = /* @__PURE__ */ new Map();
|
|
8925
9335
|
normalizedConfigs.forEach((config) => lookup.set(config.prefix, config));
|
|
8926
9336
|
return lookup;
|
|
8927
9337
|
}, [normalizedConfigs]);
|
|
8928
|
-
const allowedOperators =
|
|
9338
|
+
const allowedOperators = React25.useMemo(() => operators.map((operator) => operator.value), [operators]);
|
|
8929
9339
|
const displayError = errorMessage ?? fieldState?.error?.message;
|
|
8930
9340
|
const hasError = Boolean(displayError);
|
|
8931
9341
|
const isEditorReadOnly = mode === "display";
|
|
8932
9342
|
const isEditorDisabled = disabled || loading || isEditorReadOnly;
|
|
8933
|
-
const convertValueToContent =
|
|
9343
|
+
const convertValueToContent = React25.useCallback(
|
|
8934
9344
|
(input) => {
|
|
8935
9345
|
if (!input) return "";
|
|
8936
9346
|
const trimmed = input.trim();
|
|
@@ -8942,8 +9352,8 @@ var FormulaEditor = ({
|
|
|
8942
9352
|
},
|
|
8943
9353
|
[configLookup, prefixMap]
|
|
8944
9354
|
);
|
|
8945
|
-
const resolvedContent =
|
|
8946
|
-
const extensions =
|
|
9355
|
+
const resolvedContent = React25.useMemo(() => convertValueToContent(value), [convertValueToContent, value]);
|
|
9356
|
+
const extensions = React25.useMemo(
|
|
8947
9357
|
() => [
|
|
8948
9358
|
StarterKit__default.default.configure({ bold: false, italic: false }),
|
|
8949
9359
|
Token.configure({ configs: normalizedConfigs, onSelect: onSelectSuggestion }),
|
|
@@ -8975,11 +9385,11 @@ var FormulaEditor = ({
|
|
|
8975
9385
|
}
|
|
8976
9386
|
}
|
|
8977
9387
|
});
|
|
8978
|
-
|
|
9388
|
+
React25.useEffect(() => {
|
|
8979
9389
|
if (!editor) return;
|
|
8980
9390
|
editor.setEditable(!isEditorDisabled);
|
|
8981
9391
|
}, [editor, isEditorDisabled]);
|
|
8982
|
-
|
|
9392
|
+
React25.useEffect(() => {
|
|
8983
9393
|
if (!editor || resolvedContent === void 0) return;
|
|
8984
9394
|
if (ignorePropValueRef.current && typeof value === "string" && value === lastEmittedValueRef.current) {
|
|
8985
9395
|
ignorePropValueRef.current = false;
|
|
@@ -9111,7 +9521,7 @@ function SortableRow({
|
|
|
9111
9521
|
id: value,
|
|
9112
9522
|
disabled: name === "columns.0.id"
|
|
9113
9523
|
});
|
|
9114
|
-
const style =
|
|
9524
|
+
const style = React25__namespace.useMemo(
|
|
9115
9525
|
() => ({
|
|
9116
9526
|
transform: utilities.CSS.Transform.toString(transform),
|
|
9117
9527
|
transition
|
|
@@ -9223,8 +9633,8 @@ var GridSettingsModal = ({
|
|
|
9223
9633
|
onClose,
|
|
9224
9634
|
onSaveColumns
|
|
9225
9635
|
}) => {
|
|
9226
|
-
const [isDragging, setIsDragging] =
|
|
9227
|
-
const scrollRef =
|
|
9636
|
+
const [isDragging, setIsDragging] = React25.useState(false);
|
|
9637
|
+
const scrollRef = React25.useRef(null);
|
|
9228
9638
|
const form = reactHookForm.useForm({
|
|
9229
9639
|
resolver: zod$1.zodResolver(GridSettingsSchema),
|
|
9230
9640
|
defaultValues: { columns: currentColumns },
|
|
@@ -9236,7 +9646,7 @@ var GridSettingsModal = ({
|
|
|
9236
9646
|
name: "columns",
|
|
9237
9647
|
keyName: "fieldId"
|
|
9238
9648
|
});
|
|
9239
|
-
|
|
9649
|
+
React25.useEffect(() => {
|
|
9240
9650
|
if (isOpen) {
|
|
9241
9651
|
form.reset({ columns: currentColumns });
|
|
9242
9652
|
}
|
|
@@ -9513,7 +9923,7 @@ function getCandidateWidths({
|
|
|
9513
9923
|
}
|
|
9514
9924
|
return DEVICE_SIZES;
|
|
9515
9925
|
}
|
|
9516
|
-
var Image2 =
|
|
9926
|
+
var Image2 = React25__namespace.forwardRef(function Image3({
|
|
9517
9927
|
src,
|
|
9518
9928
|
alt,
|
|
9519
9929
|
width,
|
|
@@ -9543,34 +9953,34 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9543
9953
|
} = imgProps;
|
|
9544
9954
|
const widthNumber = toNumber(width);
|
|
9545
9955
|
const heightNumber = toNumber(height);
|
|
9546
|
-
|
|
9956
|
+
React25__namespace.useEffect(() => {
|
|
9547
9957
|
if (!fill && (!widthNumber || !heightNumber)) {
|
|
9548
9958
|
console.warn(
|
|
9549
9959
|
"[Image] When `fill` is false you should provide both `width` and `height` to prevent layout shifts."
|
|
9550
9960
|
);
|
|
9551
9961
|
}
|
|
9552
9962
|
}, [fill, heightNumber, widthNumber]);
|
|
9553
|
-
const candidateWidths =
|
|
9963
|
+
const candidateWidths = React25__namespace.useMemo(
|
|
9554
9964
|
() => getCandidateWidths({ width: widthNumber, sizes, fill }),
|
|
9555
9965
|
[fill, sizes, widthNumber]
|
|
9556
9966
|
);
|
|
9557
9967
|
const largestWidth = candidateWidths[candidateWidths.length - 1] ?? widthNumber ?? DEVICE_SIZES[DEVICE_SIZES.length - 1];
|
|
9558
|
-
const computedSrc =
|
|
9968
|
+
const computedSrc = React25__namespace.useMemo(() => {
|
|
9559
9969
|
if (unoptimized) {
|
|
9560
9970
|
return src;
|
|
9561
9971
|
}
|
|
9562
9972
|
return loader({ src, width: largestWidth, quality });
|
|
9563
9973
|
}, [largestWidth, loader, quality, src, unoptimized]);
|
|
9564
|
-
const computedSrcSet =
|
|
9974
|
+
const computedSrcSet = React25__namespace.useMemo(() => {
|
|
9565
9975
|
if (unoptimized) {
|
|
9566
9976
|
return void 0;
|
|
9567
9977
|
}
|
|
9568
9978
|
return candidateWidths.map((currentWidth) => `${loader({ src, width: currentWidth, quality })} ${currentWidth}w`).join(", ");
|
|
9569
9979
|
}, [candidateWidths, loader, quality, src, unoptimized]);
|
|
9570
9980
|
const sizesValue = sizes ?? (fill ? "100vw" : widthNumber ? `${widthNumber}px` : void 0);
|
|
9571
|
-
const [isLoaded, setIsLoaded] =
|
|
9572
|
-
const internalRef =
|
|
9573
|
-
const setRefs =
|
|
9981
|
+
const [isLoaded, setIsLoaded] = React25__namespace.useState(false);
|
|
9982
|
+
const internalRef = React25__namespace.useRef(null);
|
|
9983
|
+
const setRefs = React25__namespace.useCallback(
|
|
9574
9984
|
(node) => {
|
|
9575
9985
|
internalRef.current = node;
|
|
9576
9986
|
if (!ref) {
|
|
@@ -9584,7 +9994,7 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9584
9994
|
},
|
|
9585
9995
|
[ref]
|
|
9586
9996
|
);
|
|
9587
|
-
|
|
9997
|
+
React25__namespace.useEffect(() => {
|
|
9588
9998
|
const image = internalRef.current;
|
|
9589
9999
|
if (!image) {
|
|
9590
10000
|
return;
|
|
@@ -9596,7 +10006,7 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9596
10006
|
setIsLoaded(false);
|
|
9597
10007
|
}
|
|
9598
10008
|
}, [onLoadingComplete, src]);
|
|
9599
|
-
const handleLoad =
|
|
10009
|
+
const handleLoad = React25__namespace.useCallback(
|
|
9600
10010
|
(event) => {
|
|
9601
10011
|
setIsLoaded(true);
|
|
9602
10012
|
onLoadProp?.(event);
|
|
@@ -9608,7 +10018,7 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9608
10018
|
const fetchPriority = priority ? "high" : fetchPriorityProp;
|
|
9609
10019
|
const decoding = decodingProp ?? "async";
|
|
9610
10020
|
const resolvedObjectFit = objectFit ?? (fill ? "cover" : void 0);
|
|
9611
|
-
const wrapperStyle =
|
|
10021
|
+
const wrapperStyle = React25__namespace.useMemo(
|
|
9612
10022
|
() => ({
|
|
9613
10023
|
position: "relative",
|
|
9614
10024
|
display: fill ? "block" : "inline-block",
|
|
@@ -9618,7 +10028,7 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9618
10028
|
}),
|
|
9619
10029
|
[fill, height, width]
|
|
9620
10030
|
);
|
|
9621
|
-
const imageStyle =
|
|
10031
|
+
const imageStyle = React25__namespace.useMemo(
|
|
9622
10032
|
() => ({
|
|
9623
10033
|
width: fill ? "100%" : formatDimension(width) ?? void 0,
|
|
9624
10034
|
height: fill ? "100%" : formatDimension(height) ?? void 0,
|
|
@@ -9679,107 +10089,47 @@ var Image2 = React26__namespace.forwardRef(function Image3({
|
|
|
9679
10089
|
);
|
|
9680
10090
|
});
|
|
9681
10091
|
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 = ({
|
|
10092
|
+
var MainListContainer = ({
|
|
9715
10093
|
title,
|
|
9716
10094
|
titleIcon,
|
|
9717
|
-
isExpanded =
|
|
9718
|
-
bgColor = "bg-[#82B495]",
|
|
9719
|
-
textClassName = "text-white",
|
|
10095
|
+
isExpanded = true,
|
|
9720
10096
|
onSettingClick,
|
|
9721
10097
|
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
|
|
10098
|
+
children,
|
|
10099
|
+
slots,
|
|
10100
|
+
classNames,
|
|
10101
|
+
renderHeader
|
|
9767
10102
|
}) => {
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
10103
|
+
const Container = slots?.Container ?? container_default;
|
|
10104
|
+
const Header2 = slots?.Header ?? header_default;
|
|
10105
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10106
|
+
Container,
|
|
10107
|
+
{
|
|
10108
|
+
isLeftExpanded: isExpanded,
|
|
10109
|
+
className: cn("flex flex-col bg-white shadow-lg", classNames?.root),
|
|
10110
|
+
children: [
|
|
10111
|
+
renderHeader ? renderHeader({
|
|
10112
|
+
title,
|
|
10113
|
+
titleIcon,
|
|
10114
|
+
isExpanded,
|
|
10115
|
+
onSettingClick,
|
|
10116
|
+
onExpandClick
|
|
10117
|
+
}) : Header2 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
10118
|
+
Header2,
|
|
10119
|
+
{
|
|
10120
|
+
title,
|
|
10121
|
+
titleIcon,
|
|
10122
|
+
isExpanded,
|
|
10123
|
+
onSettingClick,
|
|
10124
|
+
onExpandClick
|
|
10125
|
+
}
|
|
10126
|
+
) : null,
|
|
10127
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex-1 flex flex-col relative min-h-0", classNames?.content), children })
|
|
10128
|
+
]
|
|
10129
|
+
}
|
|
10130
|
+
);
|
|
9781
10131
|
};
|
|
9782
|
-
var
|
|
10132
|
+
var MainListContainer_default = MainListContainer;
|
|
9783
10133
|
var InfoIcon = (props) => {
|
|
9784
10134
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9785
10135
|
"svg",
|
|
@@ -9825,7 +10175,7 @@ var InfoIcon = (props) => {
|
|
|
9825
10175
|
}
|
|
9826
10176
|
);
|
|
9827
10177
|
};
|
|
9828
|
-
var InfoIcon_default =
|
|
10178
|
+
var InfoIcon_default = React25__namespace.default.memo(InfoIcon);
|
|
9829
10179
|
var Navbar = ({
|
|
9830
10180
|
className,
|
|
9831
10181
|
title,
|
|
@@ -9850,7 +10200,7 @@ var Navbar = ({
|
|
|
9850
10200
|
}) => {
|
|
9851
10201
|
const { isMobile, isTablet, isDesktop } = useScreenSize_default();
|
|
9852
10202
|
const Icon2 = lucideReact.CircleHelp;
|
|
9853
|
-
const shouldShowSeparator = !separatorDisable &&
|
|
10203
|
+
const shouldShowSeparator = !separatorDisable && React25.isValidElement(searchButton);
|
|
9854
10204
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9855
10205
|
"nav",
|
|
9856
10206
|
{
|
|
@@ -9861,8 +10211,8 @@ var Navbar = ({
|
|
|
9861
10211
|
children: [
|
|
9862
10212
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
9863
10213
|
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
|
-
|
|
10214
|
+
React25.isValidElement(title) ? title : /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-white text-xl font-bold", children: title }),
|
|
10215
|
+
React25.isValidElement(subTitle) ? subTitle : /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-white text-sm font-semibold", children: subTitle })
|
|
9866
10216
|
] }),
|
|
9867
10217
|
tooltipTitle && /* @__PURE__ */ jsxRuntime.jsxs(Tooltip2, { children: [
|
|
9868
10218
|
/* @__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 +10243,10 @@ var Navbar = ({
|
|
|
9893
10243
|
),
|
|
9894
10244
|
children: [
|
|
9895
10245
|
tooltipTitle && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
9896
|
-
|
|
10246
|
+
React25.isValidElement(tooltipIcon) ? tooltipIcon : /* @__PURE__ */ jsxRuntime.jsx(Icon2, { size: 32, "aria-hidden": "true" }),
|
|
9897
10247
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-xl font-bold", children: tooltipTitle })
|
|
9898
10248
|
] }),
|
|
9899
|
-
|
|
10249
|
+
React25.isValidElement(tooltipdescription) && tooltipdescription
|
|
9900
10250
|
]
|
|
9901
10251
|
}
|
|
9902
10252
|
),
|
|
@@ -9951,13 +10301,13 @@ var Navbar = ({
|
|
|
9951
10301
|
}
|
|
9952
10302
|
),
|
|
9953
10303
|
shouldShowSeparator && /* @__PURE__ */ jsxRuntime.jsx("div", { role: "separator", className: "ml-1 w-[1px] h-10 bg-white" }),
|
|
9954
|
-
|
|
10304
|
+
React25.isValidElement(searchButton) ? searchButton : ""
|
|
9955
10305
|
] })
|
|
9956
10306
|
]
|
|
9957
10307
|
}
|
|
9958
10308
|
);
|
|
9959
10309
|
};
|
|
9960
|
-
var navbar_default =
|
|
10310
|
+
var navbar_default = React25__namespace.default.memo(Navbar);
|
|
9961
10311
|
var usePreventPageLeaveStore = zustand.create((set) => ({
|
|
9962
10312
|
isPreventing: false,
|
|
9963
10313
|
setPreventing: (value) => set({ isPreventing: value })
|
|
@@ -9967,7 +10317,7 @@ var usePreventPageLeaveStore_default = usePreventPageLeaveStore;
|
|
|
9967
10317
|
// src/components/prevent-page-leave/PreventPageLeave.tsx
|
|
9968
10318
|
var PreventPageLeave = ({ children }) => {
|
|
9969
10319
|
const { isPreventing } = usePreventPageLeaveStore();
|
|
9970
|
-
|
|
10320
|
+
React25.useEffect(() => {
|
|
9971
10321
|
if (!isPreventing || typeof window === "undefined") {
|
|
9972
10322
|
return;
|
|
9973
10323
|
}
|
|
@@ -9985,11 +10335,76 @@ var PreventPageLeave = ({ children }) => {
|
|
|
9985
10335
|
var PreventPageLeave_default = PreventPageLeave;
|
|
9986
10336
|
var usePreventPageLeave = ({ isPrevening }) => {
|
|
9987
10337
|
const setPreventing = usePreventPageLeaveStore_default((state) => state.setPreventing);
|
|
9988
|
-
|
|
10338
|
+
React25.useEffect(() => {
|
|
9989
10339
|
setPreventing(isPrevening);
|
|
9990
10340
|
}, [isPrevening, setPreventing]);
|
|
9991
10341
|
};
|
|
9992
10342
|
var usePreventPageLeave_default = usePreventPageLeave;
|
|
10343
|
+
var DefaultHeader = ({
|
|
10344
|
+
title,
|
|
10345
|
+
subtitle,
|
|
10346
|
+
icon,
|
|
10347
|
+
classNames,
|
|
10348
|
+
rightActions
|
|
10349
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-start justify-between gap-3", classNames?.header), children: [
|
|
10350
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
10351
|
+
icon ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
10352
|
+
"div",
|
|
10353
|
+
{
|
|
10354
|
+
className: cn(
|
|
10355
|
+
"w-10 h-10 rounded-full bg-sus-green-50 flex items-center justify-center",
|
|
10356
|
+
classNames?.iconWrapper
|
|
10357
|
+
),
|
|
10358
|
+
children: icon
|
|
10359
|
+
}
|
|
10360
|
+
) : null,
|
|
10361
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
|
|
10362
|
+
subtitle ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-xs text-gray-500", classNames?.subtitle), children: subtitle }) : null,
|
|
10363
|
+
title ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-lg font-semibold text-sus-green-1", classNames?.title), children: title }) : null
|
|
10364
|
+
] })
|
|
10365
|
+
] }),
|
|
10366
|
+
rightActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: rightActions }) : null
|
|
10367
|
+
] });
|
|
10368
|
+
var RightPanelContainer = ({
|
|
10369
|
+
title,
|
|
10370
|
+
subtitle,
|
|
10371
|
+
icon,
|
|
10372
|
+
rightActions,
|
|
10373
|
+
children,
|
|
10374
|
+
isExpanded = false,
|
|
10375
|
+
className,
|
|
10376
|
+
classNames,
|
|
10377
|
+
slots,
|
|
10378
|
+
renderHeader
|
|
10379
|
+
}) => {
|
|
10380
|
+
const Container = slots?.Container ?? container_default;
|
|
10381
|
+
const Header2 = slots?.Header ?? DefaultHeader;
|
|
10382
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10383
|
+
Container,
|
|
10384
|
+
{
|
|
10385
|
+
isLeftExpanded: isExpanded,
|
|
10386
|
+
className: cn(
|
|
10387
|
+
"flex flex-col bg-white border border-slate-300 min-w-full",
|
|
10388
|
+
className,
|
|
10389
|
+
classNames?.root
|
|
10390
|
+
),
|
|
10391
|
+
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: [
|
|
10392
|
+
renderHeader ? renderHeader({ title, subtitle, icon, rightActions, classNames }) : Header2 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
10393
|
+
Header2,
|
|
10394
|
+
{
|
|
10395
|
+
title,
|
|
10396
|
+
subtitle,
|
|
10397
|
+
icon,
|
|
10398
|
+
rightActions,
|
|
10399
|
+
classNames
|
|
10400
|
+
}
|
|
10401
|
+
) : null,
|
|
10402
|
+
children
|
|
10403
|
+
] }) })
|
|
10404
|
+
}
|
|
10405
|
+
);
|
|
10406
|
+
};
|
|
10407
|
+
var RightPanelContainer_default = RightPanelContainer;
|
|
9993
10408
|
|
|
9994
10409
|
// src/components/cropperModal/type.ts
|
|
9995
10410
|
var CropperModalError = class extends Error {
|
|
@@ -10126,20 +10541,20 @@ var CropperModal = ({
|
|
|
10126
10541
|
title,
|
|
10127
10542
|
props
|
|
10128
10543
|
}) => {
|
|
10129
|
-
const [isLoading, setIsLoading] =
|
|
10130
|
-
const [crop, setCrop] =
|
|
10131
|
-
const [zoom, setZoom] =
|
|
10132
|
-
const [croppedAreaPixels, setCroppedAreaPixels] =
|
|
10133
|
-
const handleClose =
|
|
10544
|
+
const [isLoading, setIsLoading] = React25.useState(false);
|
|
10545
|
+
const [crop, setCrop] = React25.useState({ x: 0, y: 0 });
|
|
10546
|
+
const [zoom, setZoom] = React25.useState();
|
|
10547
|
+
const [croppedAreaPixels, setCroppedAreaPixels] = React25.useState(null);
|
|
10548
|
+
const handleClose = React25.useCallback(() => {
|
|
10134
10549
|
onOpenChange(false);
|
|
10135
10550
|
}, [onOpenChange]);
|
|
10136
|
-
const handleCancel =
|
|
10551
|
+
const handleCancel = React25.useCallback(() => {
|
|
10137
10552
|
if (onCancel) {
|
|
10138
10553
|
onCancel();
|
|
10139
10554
|
}
|
|
10140
10555
|
handleClose();
|
|
10141
10556
|
}, [handleClose, onCancel]);
|
|
10142
|
-
const handleCropComplete =
|
|
10557
|
+
const handleCropComplete = React25.useCallback((_, croppedAreaPixels2) => {
|
|
10143
10558
|
setCroppedAreaPixels(croppedAreaPixels2);
|
|
10144
10559
|
}, []);
|
|
10145
10560
|
const handleConfirm = async () => {
|
|
@@ -10247,7 +10662,7 @@ function isFragment(object) {
|
|
|
10247
10662
|
var isValidText = (val) => ["string", "number"].includes(typeof val);
|
|
10248
10663
|
function toArray(children, option = {}) {
|
|
10249
10664
|
let ret = [];
|
|
10250
|
-
|
|
10665
|
+
React25__namespace.Children.forEach(children, (child) => {
|
|
10251
10666
|
if ((child === void 0 || child === null) && !option.keepEmpty) {
|
|
10252
10667
|
return;
|
|
10253
10668
|
}
|
|
@@ -10261,9 +10676,9 @@ function toArray(children, option = {}) {
|
|
|
10261
10676
|
});
|
|
10262
10677
|
return ret;
|
|
10263
10678
|
}
|
|
10264
|
-
var MeasureText =
|
|
10265
|
-
const spanRef =
|
|
10266
|
-
|
|
10679
|
+
var MeasureText = React25__namespace.forwardRef(({ style, children }, ref) => {
|
|
10680
|
+
const spanRef = React25__namespace.useRef(null);
|
|
10681
|
+
React25__namespace.useImperativeHandle(ref, () => ({
|
|
10267
10682
|
isExceed: () => {
|
|
10268
10683
|
const span = spanRef.current;
|
|
10269
10684
|
return span.scrollHeight > span.clientHeight;
|
|
@@ -10321,19 +10736,19 @@ var lineClipStyle = {
|
|
|
10321
10736
|
};
|
|
10322
10737
|
function EllipsisMeasure(props) {
|
|
10323
10738
|
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] =
|
|
10739
|
+
const nodeList = React25__namespace.useMemo(() => toArray(text), [text]);
|
|
10740
|
+
const nodeLen = React25__namespace.useMemo(() => getNodesLen(nodeList), [text]);
|
|
10741
|
+
const fullContent = React25__namespace.useMemo(() => children(nodeList, false), [text]);
|
|
10742
|
+
const [ellipsisCutIndex, setEllipsisCutIndex] = React25__namespace.useState(null);
|
|
10743
|
+
const cutMidRef = React25__namespace.useRef(null);
|
|
10744
|
+
const measureWhiteSpaceRef = React25__namespace.useRef(null);
|
|
10745
|
+
const needEllipsisRef = React25__namespace.useRef(null);
|
|
10746
|
+
const descRowsEllipsisRef = React25__namespace.useRef(null);
|
|
10747
|
+
const symbolRowEllipsisRef = React25__namespace.useRef(null);
|
|
10748
|
+
const [canEllipsis, setCanEllipsis] = React25__namespace.useState(false);
|
|
10749
|
+
const [needEllipsis, setNeedEllipsis] = React25__namespace.useState(STATUS_MEASURE_NONE);
|
|
10750
|
+
const [ellipsisHeight, setEllipsisHeight] = React25__namespace.useState(0);
|
|
10751
|
+
const [parentWhiteSpace, setParentWhiteSpace] = React25__namespace.useState(null);
|
|
10337
10752
|
useIsomorphicLayoutEffect(() => {
|
|
10338
10753
|
if (enableMeasure && width && nodeLen) {
|
|
10339
10754
|
setNeedEllipsis(STATUS_MEASURE_PREPARE);
|
|
@@ -10376,7 +10791,7 @@ function EllipsisMeasure(props) {
|
|
|
10376
10791
|
setEllipsisCutIndex(isOverflow ? [minIndex, targetMidIndex] : [targetMidIndex, maxIndex]);
|
|
10377
10792
|
}
|
|
10378
10793
|
}, [ellipsisCutIndex, cutMidIndex]);
|
|
10379
|
-
const finalContent =
|
|
10794
|
+
const finalContent = React25__namespace.useMemo(() => {
|
|
10380
10795
|
if (!enableMeasure) {
|
|
10381
10796
|
return children(nodeList, false);
|
|
10382
10797
|
}
|
|
@@ -10467,10 +10882,10 @@ var Truncated = ({
|
|
|
10467
10882
|
tooltipProps,
|
|
10468
10883
|
tooltipContentProps
|
|
10469
10884
|
}) => {
|
|
10470
|
-
const elementRef =
|
|
10471
|
-
const [open, setOpen] =
|
|
10472
|
-
const [isTruncated, setIsTruncated] =
|
|
10473
|
-
const [measureWidth, setMeasureWidth] =
|
|
10885
|
+
const elementRef = React25__namespace.useRef(null);
|
|
10886
|
+
const [open, setOpen] = React25__namespace.useState(false);
|
|
10887
|
+
const [isTruncated, setIsTruncated] = React25__namespace.useState(false);
|
|
10888
|
+
const [measureWidth, setMeasureWidth] = React25__namespace.useState(0);
|
|
10474
10889
|
const Comp = as;
|
|
10475
10890
|
const normalizedChildren = typeof children === "string" ? children.replace(/>/g, ">\u200B") : children;
|
|
10476
10891
|
const lineClampLines = typeof ellipsis === "number" ? ellipsis : typeof ellipsis === "object" ? ellipsis?.lineClamp ?? 3 : null;
|
|
@@ -10495,13 +10910,13 @@ var Truncated = ({
|
|
|
10495
10910
|
setIsTruncated(false);
|
|
10496
10911
|
}
|
|
10497
10912
|
}, [enableMeasure]);
|
|
10498
|
-
const truncationClass =
|
|
10913
|
+
const truncationClass = React25__namespace.useMemo(() => {
|
|
10499
10914
|
if (!ellipsis) return "";
|
|
10500
10915
|
if (typeof ellipsis === "number") return `line-clamp-${ellipsis}`;
|
|
10501
10916
|
if (typeof ellipsis === "object") return `line-clamp-${lineClampLines ?? 3}`;
|
|
10502
10917
|
return "truncate";
|
|
10503
10918
|
}, [ellipsis, lineClampLines]);
|
|
10504
|
-
const clampedStyle =
|
|
10919
|
+
const clampedStyle = React25__namespace.useMemo(() => {
|
|
10505
10920
|
if (!lineClampLines) return style;
|
|
10506
10921
|
return {
|
|
10507
10922
|
...style,
|
|
@@ -10563,7 +10978,7 @@ var Truncated = ({
|
|
|
10563
10978
|
);
|
|
10564
10979
|
};
|
|
10565
10980
|
var truncated_default = Truncated;
|
|
10566
|
-
var InputPrimitive2 =
|
|
10981
|
+
var InputPrimitive2 = React25__namespace.forwardRef(
|
|
10567
10982
|
({ className, type = "text", ...props }, ref) => {
|
|
10568
10983
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10569
10984
|
"input",
|
|
@@ -10602,7 +11017,7 @@ var inputVariants2 = classVarianceAuthority.cva("", {
|
|
|
10602
11017
|
appearance: "filled"
|
|
10603
11018
|
}
|
|
10604
11019
|
});
|
|
10605
|
-
var Input2 =
|
|
11020
|
+
var Input2 = React25__namespace.forwardRef(
|
|
10606
11021
|
({
|
|
10607
11022
|
className,
|
|
10608
11023
|
wrapperClassName,
|
|
@@ -10635,8 +11050,8 @@ var Input2 = React26__namespace.forwardRef(
|
|
|
10635
11050
|
onChange: onChangeProp
|
|
10636
11051
|
} = rest;
|
|
10637
11052
|
const ariaInvalid = invalid ?? ariaInvalidProp;
|
|
10638
|
-
const messageId =
|
|
10639
|
-
const handleChange =
|
|
11053
|
+
const messageId = React25__namespace.useId();
|
|
11054
|
+
const handleChange = React25__namespace.useCallback(
|
|
10640
11055
|
(event) => {
|
|
10641
11056
|
onChangeProp?.(event);
|
|
10642
11057
|
onValueChange?.(event.target.value);
|
|
@@ -10764,8 +11179,8 @@ var ActionMenu = ({
|
|
|
10764
11179
|
actionButtonClassName,
|
|
10765
11180
|
separatorClassName
|
|
10766
11181
|
}) => {
|
|
10767
|
-
const [open, setOpen] =
|
|
10768
|
-
const isAllowed =
|
|
11182
|
+
const [open, setOpen] = React25.useState(false);
|
|
11183
|
+
const isAllowed = React25.useCallback(
|
|
10769
11184
|
(requiredPermission) => {
|
|
10770
11185
|
if (!checkPermissionFunc || requiredPermission === void 0) {
|
|
10771
11186
|
return true;
|
|
@@ -10774,7 +11189,7 @@ var ActionMenu = ({
|
|
|
10774
11189
|
},
|
|
10775
11190
|
[checkPermissionFunc]
|
|
10776
11191
|
);
|
|
10777
|
-
const filteredButtons =
|
|
11192
|
+
const filteredButtons = React25.useMemo(() => {
|
|
10778
11193
|
return buttons.filter((btn) => isAllowed(btn.requiredPermission));
|
|
10779
11194
|
}, [buttons, isAllowed]);
|
|
10780
11195
|
if (buttons.length === 0) {
|
|
@@ -11029,13 +11444,13 @@ var useFieldNames = ({
|
|
|
11029
11444
|
fieldNames
|
|
11030
11445
|
}) => {
|
|
11031
11446
|
const { label: labelFieldKey = "label", value: valueFieldKey = "value" } = fieldNames || {};
|
|
11032
|
-
const getLabelField =
|
|
11447
|
+
const getLabelField = React25__namespace.default.useCallback(
|
|
11033
11448
|
(option) => {
|
|
11034
11449
|
return option?.[labelFieldKey];
|
|
11035
11450
|
},
|
|
11036
11451
|
[labelFieldKey]
|
|
11037
11452
|
);
|
|
11038
|
-
const getValueField =
|
|
11453
|
+
const getValueField = React25__namespace.default.useCallback(
|
|
11039
11454
|
(option) => {
|
|
11040
11455
|
return option?.[valueFieldKey];
|
|
11041
11456
|
},
|
|
@@ -11067,11 +11482,11 @@ var VirtualizedCommand = ({
|
|
|
11067
11482
|
onFocus
|
|
11068
11483
|
}) => {
|
|
11069
11484
|
const { getLabelField, getValueField } = useFieldNames_default({ fieldNames });
|
|
11070
|
-
const internalOptions =
|
|
11071
|
-
const [filteredOptions, setFilteredOptions] =
|
|
11072
|
-
const [focusedIndex, setFocusedIndex] =
|
|
11073
|
-
const [isKeyboardNavActive, setIsKeyboardNavActive] =
|
|
11074
|
-
const parentRef =
|
|
11485
|
+
const internalOptions = React25__namespace.useMemo(() => options ?? [], [options]);
|
|
11486
|
+
const [filteredOptions, setFilteredOptions] = React25__namespace.useState(internalOptions);
|
|
11487
|
+
const [focusedIndex, setFocusedIndex] = React25__namespace.useState(0);
|
|
11488
|
+
const [isKeyboardNavActive, setIsKeyboardNavActive] = React25__namespace.useState(false);
|
|
11489
|
+
const parentRef = React25__namespace.useRef(null);
|
|
11075
11490
|
const virtualizer = reactVirtual.useVirtualizer({
|
|
11076
11491
|
count: filteredOptions.length,
|
|
11077
11492
|
getScrollElement: () => parentRef.current,
|
|
@@ -11079,14 +11494,14 @@ var VirtualizedCommand = ({
|
|
|
11079
11494
|
overscan: 2
|
|
11080
11495
|
});
|
|
11081
11496
|
const virtualOptions = virtualizer.getVirtualItems();
|
|
11082
|
-
const dynamicHeight =
|
|
11497
|
+
const dynamicHeight = React25__namespace.useMemo(() => {
|
|
11083
11498
|
const contentHeight = filteredOptions.length * ROW_HEIGHT;
|
|
11084
11499
|
if (contentHeight <= 0) {
|
|
11085
11500
|
return MIN_HEIGHT_EMPTY;
|
|
11086
11501
|
}
|
|
11087
11502
|
return Math.max(ROW_HEIGHT, Math.min(height, contentHeight));
|
|
11088
11503
|
}, [filteredOptions.length, height]);
|
|
11089
|
-
const scrollToIndex =
|
|
11504
|
+
const scrollToIndex = React25__namespace.useCallback(
|
|
11090
11505
|
(index) => {
|
|
11091
11506
|
virtualizer.scrollToIndex(index, {
|
|
11092
11507
|
align: "center"
|
|
@@ -11094,7 +11509,7 @@ var VirtualizedCommand = ({
|
|
|
11094
11509
|
},
|
|
11095
11510
|
[virtualizer]
|
|
11096
11511
|
);
|
|
11097
|
-
const handleSearch =
|
|
11512
|
+
const handleSearch = React25__namespace.useCallback(
|
|
11098
11513
|
(search) => {
|
|
11099
11514
|
setIsKeyboardNavActive(false);
|
|
11100
11515
|
setFilteredOptions(
|
|
@@ -11109,7 +11524,7 @@ var VirtualizedCommand = ({
|
|
|
11109
11524
|
},
|
|
11110
11525
|
[filterOption, getLabelField, internalOptions]
|
|
11111
11526
|
);
|
|
11112
|
-
const handleKeyDown =
|
|
11527
|
+
const handleKeyDown = React25__namespace.useCallback(
|
|
11113
11528
|
(event) => {
|
|
11114
11529
|
switch (event.key) {
|
|
11115
11530
|
case "ArrowDown": {
|
|
@@ -11144,7 +11559,7 @@ var VirtualizedCommand = ({
|
|
|
11144
11559
|
},
|
|
11145
11560
|
[filteredOptions, focusedIndex, getValueField, onSelect, scrollToIndex]
|
|
11146
11561
|
);
|
|
11147
|
-
|
|
11562
|
+
React25__namespace.useEffect(() => {
|
|
11148
11563
|
if (value) {
|
|
11149
11564
|
const option = filteredOptions.find((option2) => {
|
|
11150
11565
|
const optionValue = getValueField(option2);
|
|
@@ -11271,13 +11686,13 @@ var ComboboxInner = ({
|
|
|
11271
11686
|
defaultValue,
|
|
11272
11687
|
value
|
|
11273
11688
|
});
|
|
11274
|
-
const currentSelectedOption =
|
|
11689
|
+
const currentSelectedOption = React25__namespace.useMemo(() => {
|
|
11275
11690
|
return options?.find((option) => {
|
|
11276
11691
|
const optionValue = getValueField(option);
|
|
11277
11692
|
return optionValue === selectedValue;
|
|
11278
11693
|
});
|
|
11279
11694
|
}, [getValueField, options, selectedValue]);
|
|
11280
|
-
const renderValue =
|
|
11695
|
+
const renderValue = React25__namespace.useMemo(() => {
|
|
11281
11696
|
if (!selectedValue) return placeholder2;
|
|
11282
11697
|
if (currentSelectedOption) {
|
|
11283
11698
|
return getLabelField(currentSelectedOption);
|
|
@@ -11287,7 +11702,7 @@ var ComboboxInner = ({
|
|
|
11287
11702
|
}
|
|
11288
11703
|
return null;
|
|
11289
11704
|
}, [currentSelectedOption, getLabelField, placeholder2, selectedValue, showValueWhenNoMatch]);
|
|
11290
|
-
const handleSelect =
|
|
11705
|
+
const handleSelect = React25__namespace.useCallback(
|
|
11291
11706
|
(selected, option) => {
|
|
11292
11707
|
setSelectedValue(selected);
|
|
11293
11708
|
setOpenPopover(false);
|
|
@@ -11300,7 +11715,7 @@ var ComboboxInner = ({
|
|
|
11300
11715
|
},
|
|
11301
11716
|
[onOpenChange, onSelect, setOpenPopover, setSelectedValue]
|
|
11302
11717
|
);
|
|
11303
|
-
const handleOpenPopover =
|
|
11718
|
+
const handleOpenPopover = React25__namespace.useCallback(
|
|
11304
11719
|
(isOpen) => {
|
|
11305
11720
|
if (disabled) return;
|
|
11306
11721
|
setOpenPopover(isOpen);
|
|
@@ -11310,7 +11725,7 @@ var ComboboxInner = ({
|
|
|
11310
11725
|
},
|
|
11311
11726
|
[disabled, onOpenChange, setOpenPopover]
|
|
11312
11727
|
);
|
|
11313
|
-
const handleClear =
|
|
11728
|
+
const handleClear = React25__namespace.useCallback(
|
|
11314
11729
|
(event) => {
|
|
11315
11730
|
event.stopPropagation();
|
|
11316
11731
|
setSelectedValue(void 0);
|
|
@@ -11399,7 +11814,7 @@ var ComboboxInner = ({
|
|
|
11399
11814
|
)
|
|
11400
11815
|
] });
|
|
11401
11816
|
};
|
|
11402
|
-
var Combobox =
|
|
11817
|
+
var Combobox = React25__namespace.forwardRef(ComboboxInner);
|
|
11403
11818
|
var Combobox_default = Combobox;
|
|
11404
11819
|
var TruncatedMouseEnterDiv = ({
|
|
11405
11820
|
value,
|
|
@@ -11408,8 +11823,8 @@ var TruncatedMouseEnterDiv = ({
|
|
|
11408
11823
|
tooltipContentProps,
|
|
11409
11824
|
arrowClassName
|
|
11410
11825
|
}) => {
|
|
11411
|
-
const textRef =
|
|
11412
|
-
const [isTruncated, setIsTruncated] =
|
|
11826
|
+
const textRef = React25.useRef(null);
|
|
11827
|
+
const [isTruncated, setIsTruncated] = React25.useState(false);
|
|
11413
11828
|
const checkTruncation = () => {
|
|
11414
11829
|
if (textRef.current) {
|
|
11415
11830
|
const { scrollWidth, clientWidth } = textRef.current;
|
|
@@ -11486,10 +11901,12 @@ exports.CommandSeparator = CommandSeparator;
|
|
|
11486
11901
|
exports.CommandShortcut = CommandShortcut;
|
|
11487
11902
|
exports.CropperModal = CropperModal;
|
|
11488
11903
|
exports.CropperModalError = CropperModalError;
|
|
11904
|
+
exports.CustomFieldIcon = custom_field_default;
|
|
11489
11905
|
exports.DIALOG_ALERT_I18N_SUBNAMESPACE = DIALOG_ALERT_I18N_SUBNAMESPACE;
|
|
11490
11906
|
exports.DIALOG_ALERT_TEMPLATES = DIALOG_ALERT_TEMPLATES;
|
|
11491
11907
|
exports.DataTable = DataTable_default;
|
|
11492
11908
|
exports.DatePicker = DatePicker2;
|
|
11909
|
+
exports.DecreaseIcon = decrease_default;
|
|
11493
11910
|
exports.Dialog = Dialog;
|
|
11494
11911
|
exports.DialogAlert = DialogAlert;
|
|
11495
11912
|
exports.DialogAlertProvider = DialogAlertProvider;
|
|
@@ -11515,17 +11932,16 @@ exports.FormulaEditor = FormulaEditor;
|
|
|
11515
11932
|
exports.GridSettingsModal = GridSettingsModal_default;
|
|
11516
11933
|
exports.HeaderCell = HeaderCell_default;
|
|
11517
11934
|
exports.Image = Image2;
|
|
11935
|
+
exports.InformationIcon = information_default;
|
|
11518
11936
|
exports.Input = Input;
|
|
11519
11937
|
exports.InputNumber = InputNumber_default;
|
|
11520
11938
|
exports.Label = Label2;
|
|
11521
|
-
exports.List = List_default;
|
|
11522
|
-
exports.ListContainer = container_default;
|
|
11523
|
-
exports.ListHeader = header_default;
|
|
11524
|
-
exports.ListTable = table_default;
|
|
11525
11939
|
exports.LookupSelect = LookupSelect;
|
|
11940
|
+
exports.MainListContainer = MainListContainer_default;
|
|
11526
11941
|
exports.MonthPicker = MonthPicker2;
|
|
11527
11942
|
exports.Navbar = navbar_default;
|
|
11528
11943
|
exports.NotFoundIcon = not_found_default;
|
|
11944
|
+
exports.PlusIcon = plus_default;
|
|
11529
11945
|
exports.Popover = Popover;
|
|
11530
11946
|
exports.PopoverAnchor = PopoverAnchor;
|
|
11531
11947
|
exports.PopoverArrow = PopoverArrow;
|
|
@@ -11536,6 +11952,8 @@ exports.RadioGroupItem = RadioGroupItem;
|
|
|
11536
11952
|
exports.RadioGroupRoot = RadioGroupRoot;
|
|
11537
11953
|
exports.RadioLabel = RadioLabel;
|
|
11538
11954
|
exports.RichText = RichText;
|
|
11955
|
+
exports.RightPanelContainer = RightPanelContainer_default;
|
|
11956
|
+
exports.RoleIcon = role_default;
|
|
11539
11957
|
exports.Select = Select;
|
|
11540
11958
|
exports.SelectContent = SelectContent;
|
|
11541
11959
|
exports.SelectGroup = SelectGroup;
|
|
@@ -11602,6 +12020,9 @@ exports.TrashIcon = trash_default;
|
|
|
11602
12020
|
exports.Truncated = truncated_default;
|
|
11603
12021
|
exports.TruncatedMouseEnterDiv = truncatedMouseEnterDiv_default;
|
|
11604
12022
|
exports.UI = ui_exports;
|
|
12023
|
+
exports.UserAloneIcon = user_alone_default;
|
|
12024
|
+
exports.UserFriendIcon = user_friend_default;
|
|
12025
|
+
exports.UserIcon = user_default;
|
|
11605
12026
|
exports.VirtualizedCommand = VirtualizedCommand_default;
|
|
11606
12027
|
exports.booleanToSelectValue = booleanToSelectValue;
|
|
11607
12028
|
exports.buildPrefixMap = buildPrefixMap;
|