@sustaina/shared-ui 1.35.0 → 1.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +118 -66
- package/dist/index.d.ts +118 -66
- package/dist/index.js +1088 -670
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +923 -511
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import clsx2, { clsx } from 'clsx';
|
|
|
2
2
|
import { twMerge } from 'tailwind-merge';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
7
|
-
import { CircleX, Undo, Redo, Bold, Italic, Underline, Strikethrough, Code, Pilcrow, Heading1, Heading2, Heading3, List
|
|
5
|
+
import * as React25 from 'react';
|
|
6
|
+
import React25__default, { forwardRef, useRef, useMemo, useCallback, useState, isValidElement, useEffect, useLayoutEffect, createElement } from 'react';
|
|
7
|
+
import { CircleX, Undo, Redo, Bold, Italic, Underline, Strikethrough, Code, Pilcrow, Heading1, Heading2, Heading3, List, ListOrdered, Quote, CodeSquare, Link, Link2Off, Image as Image$1, AlignLeft, AlignCenter, AlignRight, CircleHelp, ChevronDown, X, Check, XIcon, SearchIcon, ChevronRight, CheckIcon, Triangle, CalendarIcon, Search, ChevronUp, ChevronLeft, PanelLeftIcon, Minimize2, Maximize2, Plus, MoreVertical, Bug, GripVertical, Info, CircleMinus, Minus } from 'lucide-react';
|
|
8
8
|
import { createPortal } from 'react-dom';
|
|
9
9
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
10
10
|
import { useForm, FormProvider, Controller, useFormContext, useFormState, useFieldArray, useWatch } from 'react-hook-form';
|
|
@@ -229,48 +229,55 @@ function cn(...args) {
|
|
|
229
229
|
return twMerge(clsx(args));
|
|
230
230
|
}
|
|
231
231
|
var ArrowIcon = ({
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
size = "1em",
|
|
233
|
+
width,
|
|
234
|
+
height,
|
|
234
235
|
fill = "none",
|
|
236
|
+
color = "#127035",
|
|
235
237
|
...props
|
|
236
238
|
}) => /* @__PURE__ */ jsx(
|
|
237
239
|
"svg",
|
|
238
240
|
{
|
|
239
241
|
xmlns: "http://www.w3.org/2000/svg",
|
|
240
242
|
viewBox: "0 0 14 9",
|
|
241
|
-
width,
|
|
242
|
-
height,
|
|
243
|
+
width: width ?? size,
|
|
244
|
+
height: height ?? size,
|
|
243
245
|
fill,
|
|
244
246
|
...props,
|
|
245
|
-
children: /* @__PURE__ */ jsx("path", { d: "M0.293 0.723L6.79 8.723L13.293 0.723H0.293Z", fill:
|
|
247
|
+
children: /* @__PURE__ */ jsx("path", { d: "M0.293 0.723L6.79 8.723L13.293 0.723H0.293Z", fill: color })
|
|
246
248
|
}
|
|
247
249
|
);
|
|
248
250
|
var arrow_default = ArrowIcon;
|
|
249
|
-
var
|
|
251
|
+
var DecreaseIcon = ({
|
|
252
|
+
size = 16,
|
|
253
|
+
color = "currentColor",
|
|
254
|
+
className,
|
|
255
|
+
...props
|
|
256
|
+
}) => /* @__PURE__ */ jsx(
|
|
250
257
|
"svg",
|
|
251
258
|
{
|
|
252
259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
260
|
+
viewBox: "0 0 9 4",
|
|
261
|
+
width: size,
|
|
262
|
+
height: size,
|
|
263
|
+
className,
|
|
264
|
+
fill: color,
|
|
257
265
|
...props,
|
|
258
|
-
children: /* @__PURE__ */ jsx(
|
|
259
|
-
"path",
|
|
260
|
-
{
|
|
261
|
-
fill: "currentColor",
|
|
262
|
-
d: "M8.504 11.205H5.837v2.4h2.667zm5.333 0h-2.666v2.4h2.666zm5.334 0h-2.667v2.4h2.667zm2.666-8.4h-1.333v-2.4h-2.667v2.4H7.171v-2.4H4.504v2.4H3.17c-1.48 0-2.654 1.08-2.654 2.4l-.013 16.8c0 1.32 1.187 2.4 2.667 2.4h18.666c1.467 0 2.667-1.08 2.667-2.4v-16.8c0-1.32-1.2-2.4-2.667-2.4m0 19.2H3.171v-13.2h18.666z"
|
|
263
|
-
}
|
|
264
|
-
)
|
|
266
|
+
children: /* @__PURE__ */ jsx("rect", { x: "0.572754", y: "0.441406", width: "7.57659", height: "2.75347", fill: color })
|
|
265
267
|
}
|
|
266
268
|
);
|
|
267
|
-
var
|
|
268
|
-
var
|
|
269
|
+
var decrease_default = DecreaseIcon;
|
|
270
|
+
var FiltersIcon = ({
|
|
271
|
+
size = 24,
|
|
272
|
+
color = "#379A2A",
|
|
273
|
+
strokeWidth = 1.5,
|
|
274
|
+
...props
|
|
275
|
+
}) => /* @__PURE__ */ jsxs(
|
|
269
276
|
"svg",
|
|
270
277
|
{
|
|
271
|
-
width:
|
|
272
|
-
height:
|
|
273
|
-
viewBox: "0 0
|
|
278
|
+
width: size,
|
|
279
|
+
height: size,
|
|
280
|
+
viewBox: "0 0 24 24",
|
|
274
281
|
fill: "none",
|
|
275
282
|
xmlns: "http://www.w3.org/2000/svg",
|
|
276
283
|
...props,
|
|
@@ -278,9 +285,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
|
|
|
278
285
|
/* @__PURE__ */ jsx(
|
|
279
286
|
"path",
|
|
280
287
|
{
|
|
281
|
-
d: "
|
|
282
|
-
stroke:
|
|
283
|
-
strokeWidth
|
|
288
|
+
d: "M10 18H14",
|
|
289
|
+
stroke: color,
|
|
290
|
+
strokeWidth,
|
|
284
291
|
strokeLinecap: "round",
|
|
285
292
|
strokeLinejoin: "round"
|
|
286
293
|
}
|
|
@@ -288,9 +295,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
|
|
|
288
295
|
/* @__PURE__ */ jsx(
|
|
289
296
|
"path",
|
|
290
297
|
{
|
|
291
|
-
d: "
|
|
292
|
-
stroke:
|
|
293
|
-
strokeWidth
|
|
298
|
+
d: "M11 6H3",
|
|
299
|
+
stroke: color,
|
|
300
|
+
strokeWidth,
|
|
294
301
|
strokeLinecap: "round",
|
|
295
302
|
strokeLinejoin: "round"
|
|
296
303
|
}
|
|
@@ -298,9 +305,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
|
|
|
298
305
|
/* @__PURE__ */ jsx(
|
|
299
306
|
"path",
|
|
300
307
|
{
|
|
301
|
-
d: "M15
|
|
302
|
-
stroke:
|
|
303
|
-
strokeWidth
|
|
308
|
+
d: "M15 6H21",
|
|
309
|
+
stroke: color,
|
|
310
|
+
strokeWidth,
|
|
304
311
|
strokeLinecap: "round",
|
|
305
312
|
strokeLinejoin: "round"
|
|
306
313
|
}
|
|
@@ -308,9 +315,9 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
|
|
|
308
315
|
/* @__PURE__ */ jsx(
|
|
309
316
|
"path",
|
|
310
317
|
{
|
|
311
|
-
d: "
|
|
312
|
-
stroke:
|
|
313
|
-
strokeWidth
|
|
318
|
+
d: "M18 9V3",
|
|
319
|
+
stroke: color,
|
|
320
|
+
strokeWidth,
|
|
314
321
|
strokeLinecap: "round",
|
|
315
322
|
strokeLinejoin: "round"
|
|
316
323
|
}
|
|
@@ -318,111 +325,413 @@ var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
|
|
|
318
325
|
/* @__PURE__ */ jsx(
|
|
319
326
|
"path",
|
|
320
327
|
{
|
|
321
|
-
d: "
|
|
322
|
-
stroke:
|
|
323
|
-
strokeWidth
|
|
328
|
+
d: "M7 12H15",
|
|
329
|
+
stroke: color,
|
|
330
|
+
strokeWidth,
|
|
324
331
|
strokeLinecap: "round",
|
|
325
332
|
strokeLinejoin: "round"
|
|
326
333
|
}
|
|
334
|
+
)
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
);
|
|
338
|
+
var filters_default = FiltersIcon;
|
|
339
|
+
var InformationIcon = ({
|
|
340
|
+
size = 16,
|
|
341
|
+
color = "currentColor",
|
|
342
|
+
className,
|
|
343
|
+
...props
|
|
344
|
+
}) => /* @__PURE__ */ jsxs(
|
|
345
|
+
"svg",
|
|
346
|
+
{
|
|
347
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
348
|
+
viewBox: "0 0 34 34",
|
|
349
|
+
width: size,
|
|
350
|
+
height: size,
|
|
351
|
+
className,
|
|
352
|
+
fill: color,
|
|
353
|
+
...props,
|
|
354
|
+
children: [
|
|
355
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_789_42722)", children: [
|
|
356
|
+
/* @__PURE__ */ jsx(
|
|
357
|
+
"path",
|
|
358
|
+
{
|
|
359
|
+
d: "M16.7158 33.4883C7.61916 33.4883 0.21582 26.0849 0.21582 16.9883C0.21582 7.89162 7.61916 0.488281 16.7158 0.488281C25.8125 0.488281 33.2158 7.89162 33.2158 16.9883C33.2158 26.0849 25.8125 33.4883 16.7158 33.4883ZM16.7158 1.80093C8.34112 1.80093 1.52847 8.61358 1.52847 16.9883C1.52847 25.363 8.34112 32.1756 16.7158 32.1756C25.0905 32.1756 31.9032 25.363 31.9032 16.9883C31.9032 8.61358 25.0905 1.80093 16.7158 1.80093Z",
|
|
360
|
+
fill: color
|
|
361
|
+
}
|
|
362
|
+
),
|
|
363
|
+
/* @__PURE__ */ jsx(
|
|
364
|
+
"path",
|
|
365
|
+
{
|
|
366
|
+
d: "M18.9999 21.0838H13.5393V20.5325C13.5393 19.6005 13.6443 18.8523 13.8543 18.2747C14.0643 17.6972 14.3794 17.1721 14.7994 16.6864C15.2195 16.2139 16.1514 15.3606 17.6085 14.153C18.3829 13.5229 18.7767 12.9454 18.7767 12.4203C18.7767 11.8952 18.6192 11.4883 18.3042 11.1864C17.9892 10.8845 17.5166 10.7532 16.8865 10.7532C16.204 10.7532 15.6395 10.9764 15.1932 11.4227C14.7469 11.869 14.4581 12.6566 14.34 13.7723L8.76123 13.0766C8.95813 11.0289 9.69321 9.37496 10.9927 8.12794C12.2923 6.88093 14.2744 6.25085 16.9653 6.25085C19.0524 6.25085 20.7457 6.68403 22.019 7.5635C23.7648 8.74489 24.6312 10.3069 24.6312 12.2759C24.6312 13.0898 24.408 13.8773 23.9617 14.6256C23.5154 15.3869 22.5966 16.3057 21.2051 17.3952C20.2338 18.1566 19.63 18.7735 19.3674 19.2461C19.118 19.7055 18.9868 20.3225 18.9868 21.0575L18.9999 21.0838ZM13.3555 22.5408H19.2099V27.6995H13.3555V22.5408Z",
|
|
367
|
+
fill: color
|
|
368
|
+
}
|
|
369
|
+
)
|
|
370
|
+
] }),
|
|
371
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_789_42722", children: /* @__PURE__ */ jsx("rect", { width: "33", height: "33", fill: "white", transform: "translate(0.21582 0.488281)" }) }) })
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
);
|
|
375
|
+
var information_default = InformationIcon;
|
|
376
|
+
var NotFoundIcon = ({
|
|
377
|
+
width = 24,
|
|
378
|
+
height = 24,
|
|
379
|
+
fill = "currentColor",
|
|
380
|
+
className = "",
|
|
381
|
+
...props
|
|
382
|
+
}) => /* @__PURE__ */ jsxs(
|
|
383
|
+
"svg",
|
|
384
|
+
{
|
|
385
|
+
viewBox: "0 0 106 100",
|
|
386
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
387
|
+
width,
|
|
388
|
+
height,
|
|
389
|
+
fill,
|
|
390
|
+
className,
|
|
391
|
+
...props,
|
|
392
|
+
children: [
|
|
393
|
+
/* @__PURE__ */ jsx(
|
|
394
|
+
"path",
|
|
395
|
+
{
|
|
396
|
+
d: "M44.7381 99.6137C69.3718 99.6137 89.3413 95.8824 89.3413 91.2795C89.3413 86.6767 69.3718 82.9453 44.7381 82.9453C20.1043 82.9453 0.134766 86.6767 0.134766 91.2795C0.134766 95.8824 20.1043 99.6137 44.7381 99.6137Z",
|
|
397
|
+
fill: "#B0DFAA"
|
|
398
|
+
}
|
|
327
399
|
),
|
|
328
400
|
/* @__PURE__ */ jsx(
|
|
329
401
|
"path",
|
|
330
402
|
{
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
strokeLinejoin: "round"
|
|
403
|
+
fillRule: "evenodd",
|
|
404
|
+
clipRule: "evenodd",
|
|
405
|
+
d: "M80.4202 66.795L64.6801 47.4233C63.9249 46.5114 62.8209 45.9595 61.6584 45.9595H27.8163C26.6545 45.9595 25.5505 46.5114 24.7953 47.4233L9.05579 66.795V76.9154H80.4209V66.795H80.4202Z",
|
|
406
|
+
fill: "#CEE5D6"
|
|
336
407
|
}
|
|
337
408
|
),
|
|
338
409
|
/* @__PURE__ */ jsx(
|
|
339
410
|
"path",
|
|
340
411
|
{
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
strokeLinejoin: "round"
|
|
412
|
+
fillRule: "evenodd",
|
|
413
|
+
clipRule: "evenodd",
|
|
414
|
+
d: "M22.3913 20.957H67.0841C67.782 20.957 68.4514 21.2343 68.9449 21.7278C69.4384 22.2213 69.7157 22.8907 69.7157 23.5886V84.9991C69.7157 85.6971 69.4384 86.3664 68.9449 86.8599C68.4514 87.3534 67.782 87.6307 67.0841 87.6307H22.3913C21.6934 87.6307 21.0241 87.3534 20.5305 86.8599C20.037 86.3664 19.7598 85.6971 19.7598 84.9991V23.5886C19.7598 22.8907 20.037 22.2213 20.5305 21.7278C21.0241 21.2343 21.6934 20.957 22.3913 20.957V20.957Z",
|
|
415
|
+
fill: "#F9F9F9"
|
|
346
416
|
}
|
|
347
417
|
),
|
|
348
418
|
/* @__PURE__ */ jsx(
|
|
349
419
|
"path",
|
|
350
420
|
{
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
strokeLinejoin: "round"
|
|
421
|
+
fillRule: "evenodd",
|
|
422
|
+
clipRule: "evenodd",
|
|
423
|
+
d: "M28.2124 27.5049H61.2631C61.612 27.5049 61.9467 27.6435 62.1935 27.8903C62.4402 28.137 62.5789 28.4717 62.5789 28.8207V45.2398C62.5789 45.5887 62.4402 45.9234 62.1935 46.1702C61.9467 46.4169 61.612 46.5555 61.2631 46.5555H28.2124C27.8634 46.5555 27.5288 46.4169 27.282 46.1702C27.0353 45.9234 26.8966 45.5887 26.8966 45.2398V28.8207C26.8966 28.4717 27.0353 28.137 27.282 27.8903C27.5288 27.6435 27.8634 27.5049 28.2124 27.5049ZM28.3848 53.6983H61.0907C61.4854 53.6983 61.8639 53.8551 62.143 54.1342C62.4221 54.4133 62.5789 54.7918 62.5789 55.1865C62.5789 55.5811 62.4221 55.9597 62.143 56.2387C61.8639 56.5178 61.4854 56.6746 61.0907 56.6746H28.3848C27.9901 56.6746 27.6116 56.5178 27.3325 56.2387C27.0534 55.9597 26.8966 55.5811 26.8966 55.1865C26.8966 54.7918 27.0534 54.4133 27.3325 54.1342C27.6116 53.8551 27.9901 53.6983 28.3848 53.6983ZM28.3848 61.4371H61.0907C61.4855 61.4371 61.8641 61.5939 62.1432 61.8731C62.4224 62.1522 62.5792 62.5308 62.5792 62.9256C62.5792 63.3204 62.4224 63.699 62.1432 63.9781C61.8641 64.2573 61.4855 64.4141 61.0907 64.4141H28.3848C27.99 64.4141 27.6114 64.2573 27.3323 63.9781C27.0531 63.699 26.8963 63.3204 26.8963 62.9256C26.8963 62.5308 27.0531 62.1522 27.3323 61.8731C27.6114 61.5939 27.99 61.4371 28.3848 61.4371ZM80.2749 90.0569C79.7651 92.0772 77.9743 93.5832 75.844 93.5832H13.6315C11.5012 93.5832 9.71044 92.0766 9.20123 90.0569C9.10411 89.6718 9.05505 89.2763 9.05518 88.8792V66.7957H26.3696C28.2822 66.7957 29.8236 68.4062 29.8236 70.3615V70.3878C29.8236 72.3424 31.3828 73.9207 33.2953 73.9207H56.1802C58.0927 73.9207 59.6519 72.3279 59.6519 70.3726V70.3647C59.6519 68.4095 61.1933 66.795 63.1058 66.795H80.4203V88.8799C80.4203 89.2858 80.3697 89.6799 80.2749 90.0569Z",
|
|
424
|
+
fill: "#DDEEE3"
|
|
356
425
|
}
|
|
357
426
|
),
|
|
358
427
|
/* @__PURE__ */ jsx(
|
|
359
428
|
"path",
|
|
360
429
|
{
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
strokeLinejoin: "round"
|
|
430
|
+
fillRule: "evenodd",
|
|
431
|
+
clipRule: "evenodd",
|
|
432
|
+
d: "M82.4512 22.0242L77.9577 23.7676C77.8423 23.8125 77.7165 23.8239 77.5949 23.8005C77.4733 23.7771 77.3608 23.7198 77.2703 23.6353C77.1797 23.5507 77.1149 23.4424 77.0833 23.3226C77.0516 23.2029 77.0544 23.0767 77.0913 22.9584L78.3656 18.8749C76.6623 16.938 75.6624 14.5762 75.6624 12.0275C75.6624 5.45185 82.3189 0.121582 90.5308 0.121582C98.7406 0.121582 105.398 5.45185 105.398 12.0275C105.398 18.6032 98.7413 23.9334 90.5301 23.9334C87.5512 23.9334 84.7775 23.2321 82.4512 22.0242Z",
|
|
433
|
+
fill: "#DDEEE3"
|
|
366
434
|
}
|
|
367
435
|
),
|
|
368
436
|
/* @__PURE__ */ jsx(
|
|
369
437
|
"path",
|
|
370
438
|
{
|
|
371
|
-
d: "
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
439
|
+
d: "M96.3874 14.1776C97.4226 14.1776 98.2617 13.3484 98.2617 12.3256C98.2617 11.3028 97.4226 10.4736 96.3874 10.4736C95.3522 10.4736 94.5131 11.3028 94.5131 12.3256C94.5131 13.3484 95.3522 14.1776 96.3874 14.1776Z",
|
|
440
|
+
fill: "white"
|
|
441
|
+
}
|
|
442
|
+
),
|
|
443
|
+
/* @__PURE__ */ jsx(
|
|
444
|
+
"path",
|
|
445
|
+
{
|
|
446
|
+
fillRule: "evenodd",
|
|
447
|
+
clipRule: "evenodd",
|
|
448
|
+
d: "M86.5479 13.9459H82.7992L84.7058 10.7051L86.5479 13.9459ZM88.8906 10.7051H92.1702V13.9459H88.8906V10.7051Z",
|
|
449
|
+
fill: "white"
|
|
376
450
|
}
|
|
377
451
|
)
|
|
378
452
|
]
|
|
379
453
|
}
|
|
380
454
|
);
|
|
381
|
-
var
|
|
382
|
-
var
|
|
455
|
+
var not_found_default = NotFoundIcon;
|
|
456
|
+
var PlusIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
383
457
|
"svg",
|
|
384
458
|
{
|
|
385
459
|
xmlns: "http://www.w3.org/2000/svg",
|
|
386
|
-
|
|
387
|
-
|
|
460
|
+
viewBox: "0 0 9 9",
|
|
461
|
+
width: size,
|
|
462
|
+
height: size,
|
|
463
|
+
className,
|
|
464
|
+
fill: color,
|
|
465
|
+
...props,
|
|
466
|
+
children: [
|
|
467
|
+
/* @__PURE__ */ jsx(
|
|
468
|
+
"path",
|
|
469
|
+
{
|
|
470
|
+
d: "M3.12305 8.23047L3.12305 0.653882L5.87652 0.653882L5.87652 8.23047L3.12305 8.23047Z",
|
|
471
|
+
fill: color
|
|
472
|
+
}
|
|
473
|
+
),
|
|
474
|
+
/* @__PURE__ */ jsx(
|
|
475
|
+
"path",
|
|
476
|
+
{
|
|
477
|
+
d: "M3.12305 8.23047L3.12305 0.653882L5.87652 0.653882L5.87652 8.23047L3.12305 8.23047Z",
|
|
478
|
+
fill: color
|
|
479
|
+
}
|
|
480
|
+
),
|
|
481
|
+
/* @__PURE__ */ jsx(
|
|
482
|
+
"path",
|
|
483
|
+
{
|
|
484
|
+
d: "M0.710938 3.06641L8.28752 3.06641V5.81988L0.710937 5.81988L0.710938 3.06641Z",
|
|
485
|
+
fill: color
|
|
486
|
+
}
|
|
487
|
+
),
|
|
488
|
+
/* @__PURE__ */ jsx(
|
|
489
|
+
"path",
|
|
490
|
+
{
|
|
491
|
+
d: "M0.710938 3.06641L8.28752 3.06641V5.81988L0.710937 5.81988L0.710938 3.06641Z",
|
|
492
|
+
fill: color
|
|
493
|
+
}
|
|
494
|
+
)
|
|
495
|
+
]
|
|
496
|
+
}
|
|
497
|
+
);
|
|
498
|
+
var plus_default = PlusIcon;
|
|
499
|
+
var CustomFieldIcon = ({
|
|
500
|
+
size = 16,
|
|
501
|
+
color = "currentColor",
|
|
502
|
+
className,
|
|
503
|
+
...props
|
|
504
|
+
}) => /* @__PURE__ */ jsxs(
|
|
505
|
+
"svg",
|
|
506
|
+
{
|
|
507
|
+
width: size,
|
|
508
|
+
height: size,
|
|
509
|
+
viewBox: "0 0 30 30",
|
|
388
510
|
fill: "none",
|
|
389
|
-
|
|
511
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
512
|
+
className,
|
|
390
513
|
...props,
|
|
391
514
|
children: [
|
|
392
|
-
/* @__PURE__ */ jsxs("g", { clipPath: "url(#
|
|
515
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_14170_63977)", children: [
|
|
393
516
|
/* @__PURE__ */ jsx(
|
|
394
517
|
"path",
|
|
395
518
|
{
|
|
396
|
-
|
|
397
|
-
|
|
519
|
+
d: "M9.16987 12.9149C11.2388 12.9149 12.9159 11.2378 12.9159 9.1689C12.9159 7.10001 11.2388 5.42285 9.16987 5.42285C7.10099 5.42285 5.42383 7.10001 5.42383 9.1689C5.42383 11.2378 7.10099 12.9149 9.16987 12.9149Z",
|
|
520
|
+
fill: color
|
|
398
521
|
}
|
|
399
522
|
),
|
|
400
523
|
/* @__PURE__ */ jsx(
|
|
401
524
|
"path",
|
|
402
525
|
{
|
|
403
|
-
|
|
404
|
-
|
|
526
|
+
d: "M16.4128 13.2318C16.8305 13.6494 17.5139 13.6494 17.9315 13.2318L19.7877 11.3757L21.6438 13.2318C22.0614 13.6494 22.7448 13.6494 23.1625 13.2318C23.5801 12.8142 23.5801 12.1308 23.1625 11.7131L21.3063 9.85699L23.1625 8.00084C23.5801 7.5832 23.5801 6.8998 23.1625 6.48217C22.7448 6.06454 22.0614 6.06454 21.6438 6.48217L19.7877 8.33832L17.9315 6.48217C17.5139 6.06454 16.8305 6.06454 16.4128 6.48217C15.9952 6.8998 15.9952 7.5832 16.4128 8.00084L18.269 9.85699L16.4128 11.7131C15.9952 12.1308 15.9952 12.8142 16.4128 13.2318Z",
|
|
527
|
+
fill: color
|
|
528
|
+
}
|
|
529
|
+
),
|
|
530
|
+
/* @__PURE__ */ jsx(
|
|
531
|
+
"path",
|
|
532
|
+
{
|
|
533
|
+
d: "M12.375 17.0664H5.96284C5.49688 17.0664 5.11914 17.4441 5.11914 17.9101V24.3223C5.11914 24.7882 5.49688 25.166 5.11914 25.166H12.375C12.841 25.166 13.2187 24.7882 13.2187 24.3223V17.9101C13.2187 17.4441 12.841 17.0664 12.375 17.0664Z",
|
|
534
|
+
fill: color
|
|
535
|
+
}
|
|
536
|
+
),
|
|
537
|
+
/* @__PURE__ */ jsx("path", { d: "M16.1816 24.6089H25.8315L21.0055 17.623L16.1816 24.6089Z", fill: color }),
|
|
538
|
+
/* @__PURE__ */ jsx(
|
|
539
|
+
"path",
|
|
540
|
+
{
|
|
541
|
+
d: "M28.1017 0H1.89833C0.852141 0 0 0.852141 0 1.89833V28.1017C0 29.1479 0.852141 30 1.89833 30H28.1017C29.1479 30 30 29.1479 30 28.1017V1.89833C30 0.852141 29.1479 0 28.1017 0ZM27.8907 27.8907H2.10926V2.10926H27.8907V27.8907Z",
|
|
542
|
+
fill: color
|
|
405
543
|
}
|
|
406
544
|
)
|
|
407
545
|
] }),
|
|
408
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "
|
|
546
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_14170_63977", children: /* @__PURE__ */ jsx("rect", { width: "30", height: "30", fill: "white" }) }) })
|
|
409
547
|
]
|
|
410
548
|
}
|
|
411
549
|
);
|
|
412
|
-
var
|
|
413
|
-
var
|
|
550
|
+
var custom_field_default = CustomFieldIcon;
|
|
551
|
+
var SuiCalendarIcon = ({
|
|
552
|
+
size = "1em",
|
|
553
|
+
width,
|
|
554
|
+
height,
|
|
555
|
+
color = "currentColor",
|
|
556
|
+
fill = "none",
|
|
557
|
+
...props
|
|
558
|
+
}) => /* @__PURE__ */ jsx(
|
|
414
559
|
"svg",
|
|
415
560
|
{
|
|
416
561
|
xmlns: "http://www.w3.org/2000/svg",
|
|
417
|
-
width: "1em",
|
|
418
|
-
height: "1em",
|
|
419
|
-
fill: "none",
|
|
420
562
|
viewBox: "0 0 25 25",
|
|
563
|
+
width: width ?? size,
|
|
564
|
+
height: height ?? size,
|
|
565
|
+
fill,
|
|
421
566
|
...props,
|
|
422
|
-
children:
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
567
|
+
children: /* @__PURE__ */ jsx(
|
|
568
|
+
"path",
|
|
569
|
+
{
|
|
570
|
+
fill: color,
|
|
571
|
+
d: "M8.504 11.205H5.837v2.4h2.667zm5.333 0h-2.666v2.4h2.666zm5.334 0h-2.667v2.4h2.667zm2.666-8.4h-1.333v-2.4h-2.667v2.4H7.171v-2.4H4.504v2.4H3.17c-1.48 0-2.654 1.08-2.654 2.4l-.013 16.8c0 1.32 1.187 2.4 2.667 2.4h18.666c1.467 0 2.667-1.08 2.667-2.4v-16.8c0-1.32-1.2-2.4-2.667-2.4m0 19.2H3.171v-13.2h18.666z"
|
|
572
|
+
}
|
|
573
|
+
)
|
|
574
|
+
}
|
|
575
|
+
);
|
|
576
|
+
var calendar_default = SuiCalendarIcon;
|
|
577
|
+
var SuiCalendarIcon2 = (props) => /* @__PURE__ */ jsxs(
|
|
578
|
+
"svg",
|
|
579
|
+
{
|
|
580
|
+
width: "20",
|
|
581
|
+
height: "20",
|
|
582
|
+
viewBox: "0 0 20 20",
|
|
583
|
+
fill: "none",
|
|
584
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
585
|
+
...props,
|
|
586
|
+
children: [
|
|
587
|
+
/* @__PURE__ */ jsx(
|
|
588
|
+
"path",
|
|
589
|
+
{
|
|
590
|
+
d: "M6.66666 1.66675V5.00008",
|
|
591
|
+
stroke: "currentColor",
|
|
592
|
+
strokeWidth: "1.5",
|
|
593
|
+
strokeLinecap: "round",
|
|
594
|
+
strokeLinejoin: "round"
|
|
595
|
+
}
|
|
596
|
+
),
|
|
597
|
+
/* @__PURE__ */ jsx(
|
|
598
|
+
"path",
|
|
599
|
+
{
|
|
600
|
+
d: "M13.3333 1.66675V5.00008",
|
|
601
|
+
stroke: "currentColor",
|
|
602
|
+
strokeWidth: "1.5",
|
|
603
|
+
strokeLinecap: "round",
|
|
604
|
+
strokeLinejoin: "round"
|
|
605
|
+
}
|
|
606
|
+
),
|
|
607
|
+
/* @__PURE__ */ jsx(
|
|
608
|
+
"path",
|
|
609
|
+
{
|
|
610
|
+
d: "M15.8333 3.33325H4.16667C3.24619 3.33325 2.5 4.07944 2.5 4.99992V16.6666C2.5 17.5871 3.24619 18.3333 4.16667 18.3333H15.8333C16.7538 18.3333 17.5 17.5871 17.5 16.6666V4.99992C17.5 4.07944 16.7538 3.33325 15.8333 3.33325Z",
|
|
611
|
+
stroke: "currentColor",
|
|
612
|
+
strokeWidth: "1.5",
|
|
613
|
+
strokeLinecap: "round",
|
|
614
|
+
strokeLinejoin: "round"
|
|
615
|
+
}
|
|
616
|
+
),
|
|
617
|
+
/* @__PURE__ */ jsx(
|
|
618
|
+
"path",
|
|
619
|
+
{
|
|
620
|
+
d: "M2.5 8.33325H17.5",
|
|
621
|
+
stroke: "currentColor",
|
|
622
|
+
strokeWidth: "1.5",
|
|
623
|
+
strokeLinecap: "round",
|
|
624
|
+
strokeLinejoin: "round"
|
|
625
|
+
}
|
|
626
|
+
),
|
|
627
|
+
/* @__PURE__ */ jsx(
|
|
628
|
+
"path",
|
|
629
|
+
{
|
|
630
|
+
d: "M6.66666 11.6667H6.67499",
|
|
631
|
+
stroke: "currentColor",
|
|
632
|
+
strokeWidth: "1.5",
|
|
633
|
+
strokeLinecap: "round",
|
|
634
|
+
strokeLinejoin: "round"
|
|
635
|
+
}
|
|
636
|
+
),
|
|
637
|
+
/* @__PURE__ */ jsx(
|
|
638
|
+
"path",
|
|
639
|
+
{
|
|
640
|
+
d: "M10 11.6667H10.0083",
|
|
641
|
+
stroke: "currentColor",
|
|
642
|
+
strokeWidth: "1.5",
|
|
643
|
+
strokeLinecap: "round",
|
|
644
|
+
strokeLinejoin: "round"
|
|
645
|
+
}
|
|
646
|
+
),
|
|
647
|
+
/* @__PURE__ */ jsx(
|
|
648
|
+
"path",
|
|
649
|
+
{
|
|
650
|
+
d: "M13.3333 11.6667H13.3417",
|
|
651
|
+
stroke: "currentColor",
|
|
652
|
+
strokeWidth: "1.5",
|
|
653
|
+
strokeLinecap: "round",
|
|
654
|
+
strokeLinejoin: "round"
|
|
655
|
+
}
|
|
656
|
+
),
|
|
657
|
+
/* @__PURE__ */ jsx(
|
|
658
|
+
"path",
|
|
659
|
+
{
|
|
660
|
+
d: "M6.66666 15H6.67499",
|
|
661
|
+
stroke: "currentColor",
|
|
662
|
+
strokeWidth: "1.5",
|
|
663
|
+
strokeLinecap: "round",
|
|
664
|
+
strokeLinejoin: "round"
|
|
665
|
+
}
|
|
666
|
+
),
|
|
667
|
+
/* @__PURE__ */ jsx(
|
|
668
|
+
"path",
|
|
669
|
+
{
|
|
670
|
+
d: "M10 15H10.0083",
|
|
671
|
+
stroke: "currentColor",
|
|
672
|
+
strokeWidth: "1.5",
|
|
673
|
+
strokeLinecap: "round",
|
|
674
|
+
strokeLinejoin: "round"
|
|
675
|
+
}
|
|
676
|
+
),
|
|
677
|
+
/* @__PURE__ */ jsx(
|
|
678
|
+
"path",
|
|
679
|
+
{
|
|
680
|
+
d: "M13.3333 15H13.3417",
|
|
681
|
+
stroke: "currentColor",
|
|
682
|
+
strokeWidth: "1.5",
|
|
683
|
+
strokeLinecap: "round",
|
|
684
|
+
strokeLinejoin: "round"
|
|
685
|
+
}
|
|
686
|
+
)
|
|
687
|
+
]
|
|
688
|
+
}
|
|
689
|
+
);
|
|
690
|
+
var calendar2_default = SuiCalendarIcon2;
|
|
691
|
+
var SuiCheckIcon = (props) => /* @__PURE__ */ jsxs(
|
|
692
|
+
"svg",
|
|
693
|
+
{
|
|
694
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
695
|
+
width: "1em",
|
|
696
|
+
height: "1em",
|
|
697
|
+
fill: "none",
|
|
698
|
+
viewBox: "0 0 24 24",
|
|
699
|
+
...props,
|
|
700
|
+
children: [
|
|
701
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#check_svg__a)", children: [
|
|
702
|
+
/* @__PURE__ */ jsx(
|
|
703
|
+
"path",
|
|
704
|
+
{
|
|
705
|
+
fill: "currentColor",
|
|
706
|
+
d: "M10.976.043c9.629-.793 16.248 9.583 11.392 18.002-4.252 7.37-14.736 8.025-19.907 1.26C-3.276 11.799 1.616.815 10.976.044m5.59 7.791c-.284.048-.555.25-.775.428l-5.159 4.944c-.188.033-2.31-2.268-2.865-2.51-1.413-.619-2.427 1.01-1.22 2.22.73.733 2.573 2.531 3.354 3.044.407.267.853.335 1.295.104 1.429-1.295 2.87-2.6 4.249-3.948.647-.633 1.63-1.47 2.186-2.112.825-.95.12-2.369-1.065-2.169"
|
|
707
|
+
}
|
|
708
|
+
),
|
|
709
|
+
/* @__PURE__ */ jsx(
|
|
710
|
+
"path",
|
|
711
|
+
{
|
|
712
|
+
fill: "#fff",
|
|
713
|
+
d: "M16.567 7.835c1.186-.2 1.89 1.218 1.065 2.169-.557.64-1.54 1.479-2.187 2.112-1.379 1.348-2.818 2.653-4.248 3.948-.442.23-.889.162-1.295-.105-.782-.512-2.625-2.31-3.355-3.043-1.206-1.21-.192-2.84 1.221-2.221.556.243 2.677 2.544 2.865 2.51l5.16-4.943c.219-.178.489-.38.774-.429z"
|
|
714
|
+
}
|
|
715
|
+
)
|
|
716
|
+
] }),
|
|
717
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "check_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
718
|
+
]
|
|
719
|
+
}
|
|
720
|
+
);
|
|
721
|
+
var check_default = SuiCheckIcon;
|
|
722
|
+
var SuiDotsVerticalIcon = (props) => /* @__PURE__ */ jsxs(
|
|
723
|
+
"svg",
|
|
724
|
+
{
|
|
725
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
726
|
+
width: "1em",
|
|
727
|
+
height: "1em",
|
|
728
|
+
fill: "none",
|
|
729
|
+
viewBox: "0 0 25 25",
|
|
730
|
+
...props,
|
|
731
|
+
children: [
|
|
732
|
+
/* @__PURE__ */ jsx("g", { clipPath: "url(#dots-vertical_svg__a)", children: /* @__PURE__ */ jsx(
|
|
733
|
+
"path",
|
|
734
|
+
{
|
|
426
735
|
fill: "currentColor",
|
|
427
736
|
d: "M12.504 9.03a3.373 3.373 0 0 1 3.375 3.375 3.373 3.373 0 0 1-3.375 3.375 3.373 3.373 0 0 1-3.375-3.375 3.373 3.373 0 0 1 3.375-3.375M9.129 4.155a3.373 3.373 0 0 0 3.375 3.375 3.373 3.373 0 0 0 3.375-3.375A3.373 3.373 0 0 0 12.504.78a3.373 3.373 0 0 0-3.375 3.375m0 16.5a3.373 3.373 0 0 0 3.375 3.375 3.373 3.373 0 0 0 3.375-3.375 3.373 3.373 0 0 0-3.375-3.375 3.373 3.373 0 0 0-3.375 3.375"
|
|
428
737
|
}
|
|
@@ -516,156 +825,48 @@ var SuiFilterIcon = (props) => /* @__PURE__ */ jsxs(
|
|
|
516
825
|
}
|
|
517
826
|
);
|
|
518
827
|
var filter_default = SuiFilterIcon;
|
|
519
|
-
var
|
|
520
|
-
size = 24,
|
|
521
|
-
color = "#379A2A",
|
|
522
|
-
strokeWidth = 1.5,
|
|
523
|
-
...props
|
|
524
|
-
}) => /* @__PURE__ */ jsxs(
|
|
828
|
+
var SuiSettingIcon = (props) => /* @__PURE__ */ jsxs(
|
|
525
829
|
"svg",
|
|
526
830
|
{
|
|
527
|
-
width: size,
|
|
528
|
-
height: size,
|
|
529
|
-
viewBox: "0 0 24 24",
|
|
530
|
-
fill: "none",
|
|
531
831
|
xmlns: "http://www.w3.org/2000/svg",
|
|
832
|
+
width: "1em",
|
|
833
|
+
height: "1em",
|
|
834
|
+
fill: "none",
|
|
835
|
+
viewBox: "0 0 24 24",
|
|
532
836
|
...props,
|
|
533
837
|
children: [
|
|
534
838
|
/* @__PURE__ */ jsx(
|
|
535
839
|
"path",
|
|
536
840
|
{
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
strokeWidth,
|
|
540
|
-
strokeLinecap: "round",
|
|
541
|
-
strokeLinejoin: "round"
|
|
542
|
-
}
|
|
543
|
-
),
|
|
544
|
-
/* @__PURE__ */ jsx(
|
|
545
|
-
"path",
|
|
546
|
-
{
|
|
547
|
-
d: "M11 6H3",
|
|
548
|
-
stroke: color,
|
|
549
|
-
strokeWidth,
|
|
550
|
-
strokeLinecap: "round",
|
|
551
|
-
strokeLinejoin: "round"
|
|
552
|
-
}
|
|
553
|
-
),
|
|
554
|
-
/* @__PURE__ */ jsx(
|
|
555
|
-
"path",
|
|
556
|
-
{
|
|
557
|
-
d: "M15 6H21",
|
|
558
|
-
stroke: color,
|
|
559
|
-
strokeWidth,
|
|
560
|
-
strokeLinecap: "round",
|
|
561
|
-
strokeLinejoin: "round"
|
|
562
|
-
}
|
|
563
|
-
),
|
|
564
|
-
/* @__PURE__ */ jsx(
|
|
565
|
-
"path",
|
|
566
|
-
{
|
|
567
|
-
d: "M18 9V3",
|
|
568
|
-
stroke: color,
|
|
569
|
-
strokeWidth,
|
|
570
|
-
strokeLinecap: "round",
|
|
571
|
-
strokeLinejoin: "round"
|
|
841
|
+
fill: "currentColor",
|
|
842
|
+
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"
|
|
572
843
|
}
|
|
573
844
|
),
|
|
574
845
|
/* @__PURE__ */ jsx(
|
|
575
846
|
"path",
|
|
576
847
|
{
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
strokeWidth,
|
|
580
|
-
strokeLinecap: "round",
|
|
581
|
-
strokeLinejoin: "round"
|
|
848
|
+
fill: "currentColor",
|
|
849
|
+
d: "M11.705 8.245c5.107-.422 5.406 7.472.371 7.555-4.715.077-5.174-7.16-.371-7.555"
|
|
582
850
|
}
|
|
583
851
|
)
|
|
584
852
|
]
|
|
585
853
|
}
|
|
586
854
|
);
|
|
587
|
-
var
|
|
588
|
-
var
|
|
589
|
-
width = 24,
|
|
590
|
-
height = 24,
|
|
591
|
-
fill = "currentColor",
|
|
592
|
-
className = "",
|
|
593
|
-
...props
|
|
594
|
-
}) => /* @__PURE__ */ jsxs(
|
|
855
|
+
var setting_default = SuiSettingIcon;
|
|
856
|
+
var SuiTriangleDownIcon = (props) => /* @__PURE__ */ jsx(
|
|
595
857
|
"svg",
|
|
596
858
|
{
|
|
597
|
-
viewBox: "0 0 106 100",
|
|
598
859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
599
|
-
width,
|
|
600
|
-
height,
|
|
601
|
-
fill,
|
|
602
|
-
|
|
860
|
+
width: "1em",
|
|
861
|
+
height: "1em",
|
|
862
|
+
fill: "none",
|
|
863
|
+
viewBox: "0 0 24 15",
|
|
603
864
|
...props,
|
|
604
|
-
children:
|
|
605
|
-
/* @__PURE__ */ jsx(
|
|
606
|
-
"path",
|
|
607
|
-
{
|
|
608
|
-
d: "M44.7381 99.6137C69.3718 99.6137 89.3413 95.8824 89.3413 91.2795C89.3413 86.6767 69.3718 82.9453 44.7381 82.9453C20.1043 82.9453 0.134766 86.6767 0.134766 91.2795C0.134766 95.8824 20.1043 99.6137 44.7381 99.6137Z",
|
|
609
|
-
fill: "#B0DFAA"
|
|
610
|
-
}
|
|
611
|
-
),
|
|
612
|
-
/* @__PURE__ */ jsx(
|
|
613
|
-
"path",
|
|
614
|
-
{
|
|
615
|
-
fillRule: "evenodd",
|
|
616
|
-
clipRule: "evenodd",
|
|
617
|
-
d: "M80.4202 66.795L64.6801 47.4233C63.9249 46.5114 62.8209 45.9595 61.6584 45.9595H27.8163C26.6545 45.9595 25.5505 46.5114 24.7953 47.4233L9.05579 66.795V76.9154H80.4209V66.795H80.4202Z",
|
|
618
|
-
fill: "#CEE5D6"
|
|
619
|
-
}
|
|
620
|
-
),
|
|
621
|
-
/* @__PURE__ */ jsx(
|
|
622
|
-
"path",
|
|
623
|
-
{
|
|
624
|
-
fillRule: "evenodd",
|
|
625
|
-
clipRule: "evenodd",
|
|
626
|
-
d: "M22.3913 20.957H67.0841C67.782 20.957 68.4514 21.2343 68.9449 21.7278C69.4384 22.2213 69.7157 22.8907 69.7157 23.5886V84.9991C69.7157 85.6971 69.4384 86.3664 68.9449 86.8599C68.4514 87.3534 67.782 87.6307 67.0841 87.6307H22.3913C21.6934 87.6307 21.0241 87.3534 20.5305 86.8599C20.037 86.3664 19.7598 85.6971 19.7598 84.9991V23.5886C19.7598 22.8907 20.037 22.2213 20.5305 21.7278C21.0241 21.2343 21.6934 20.957 22.3913 20.957V20.957Z",
|
|
627
|
-
fill: "#F9F9F9"
|
|
628
|
-
}
|
|
629
|
-
),
|
|
630
|
-
/* @__PURE__ */ jsx(
|
|
631
|
-
"path",
|
|
632
|
-
{
|
|
633
|
-
fillRule: "evenodd",
|
|
634
|
-
clipRule: "evenodd",
|
|
635
|
-
d: "M28.2124 27.5049H61.2631C61.612 27.5049 61.9467 27.6435 62.1935 27.8903C62.4402 28.137 62.5789 28.4717 62.5789 28.8207V45.2398C62.5789 45.5887 62.4402 45.9234 62.1935 46.1702C61.9467 46.4169 61.612 46.5555 61.2631 46.5555H28.2124C27.8634 46.5555 27.5288 46.4169 27.282 46.1702C27.0353 45.9234 26.8966 45.5887 26.8966 45.2398V28.8207C26.8966 28.4717 27.0353 28.137 27.282 27.8903C27.5288 27.6435 27.8634 27.5049 28.2124 27.5049ZM28.3848 53.6983H61.0907C61.4854 53.6983 61.8639 53.8551 62.143 54.1342C62.4221 54.4133 62.5789 54.7918 62.5789 55.1865C62.5789 55.5811 62.4221 55.9597 62.143 56.2387C61.8639 56.5178 61.4854 56.6746 61.0907 56.6746H28.3848C27.9901 56.6746 27.6116 56.5178 27.3325 56.2387C27.0534 55.9597 26.8966 55.5811 26.8966 55.1865C26.8966 54.7918 27.0534 54.4133 27.3325 54.1342C27.6116 53.8551 27.9901 53.6983 28.3848 53.6983ZM28.3848 61.4371H61.0907C61.4855 61.4371 61.8641 61.5939 62.1432 61.8731C62.4224 62.1522 62.5792 62.5308 62.5792 62.9256C62.5792 63.3204 62.4224 63.699 62.1432 63.9781C61.8641 64.2573 61.4855 64.4141 61.0907 64.4141H28.3848C27.99 64.4141 27.6114 64.2573 27.3323 63.9781C27.0531 63.699 26.8963 63.3204 26.8963 62.9256C26.8963 62.5308 27.0531 62.1522 27.3323 61.8731C27.6114 61.5939 27.99 61.4371 28.3848 61.4371ZM80.2749 90.0569C79.7651 92.0772 77.9743 93.5832 75.844 93.5832H13.6315C11.5012 93.5832 9.71044 92.0766 9.20123 90.0569C9.10411 89.6718 9.05505 89.2763 9.05518 88.8792V66.7957H26.3696C28.2822 66.7957 29.8236 68.4062 29.8236 70.3615V70.3878C29.8236 72.3424 31.3828 73.9207 33.2953 73.9207H56.1802C58.0927 73.9207 59.6519 72.3279 59.6519 70.3726V70.3647C59.6519 68.4095 61.1933 66.795 63.1058 66.795H80.4203V88.8799C80.4203 89.2858 80.3697 89.6799 80.2749 90.0569Z",
|
|
636
|
-
fill: "#DDEEE3"
|
|
637
|
-
}
|
|
638
|
-
),
|
|
639
|
-
/* @__PURE__ */ jsx(
|
|
640
|
-
"path",
|
|
641
|
-
{
|
|
642
|
-
fillRule: "evenodd",
|
|
643
|
-
clipRule: "evenodd",
|
|
644
|
-
d: "M82.4512 22.0242L77.9577 23.7676C77.8423 23.8125 77.7165 23.8239 77.5949 23.8005C77.4733 23.7771 77.3608 23.7198 77.2703 23.6353C77.1797 23.5507 77.1149 23.4424 77.0833 23.3226C77.0516 23.2029 77.0544 23.0767 77.0913 22.9584L78.3656 18.8749C76.6623 16.938 75.6624 14.5762 75.6624 12.0275C75.6624 5.45185 82.3189 0.121582 90.5308 0.121582C98.7406 0.121582 105.398 5.45185 105.398 12.0275C105.398 18.6032 98.7413 23.9334 90.5301 23.9334C87.5512 23.9334 84.7775 23.2321 82.4512 22.0242Z",
|
|
645
|
-
fill: "#DDEEE3"
|
|
646
|
-
}
|
|
647
|
-
),
|
|
648
|
-
/* @__PURE__ */ jsx(
|
|
649
|
-
"path",
|
|
650
|
-
{
|
|
651
|
-
d: "M96.3874 14.1776C97.4226 14.1776 98.2617 13.3484 98.2617 12.3256C98.2617 11.3028 97.4226 10.4736 96.3874 10.4736C95.3522 10.4736 94.5131 11.3028 94.5131 12.3256C94.5131 13.3484 95.3522 14.1776 96.3874 14.1776Z",
|
|
652
|
-
fill: "white"
|
|
653
|
-
}
|
|
654
|
-
),
|
|
655
|
-
/* @__PURE__ */ jsx(
|
|
656
|
-
"path",
|
|
657
|
-
{
|
|
658
|
-
fillRule: "evenodd",
|
|
659
|
-
clipRule: "evenodd",
|
|
660
|
-
d: "M86.5479 13.9459H82.7992L84.7058 10.7051L86.5479 13.9459ZM88.8906 10.7051H92.1702V13.9459H88.8906V10.7051Z",
|
|
661
|
-
fill: "white"
|
|
662
|
-
}
|
|
663
|
-
)
|
|
664
|
-
]
|
|
865
|
+
children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "m0 0 11.994 15L24 0z" })
|
|
665
866
|
}
|
|
666
867
|
);
|
|
667
|
-
var
|
|
668
|
-
var
|
|
868
|
+
var triangle_down_default = SuiTriangleDownIcon;
|
|
869
|
+
var SuiWarningIcon = (props) => /* @__PURE__ */ jsxs(
|
|
669
870
|
"svg",
|
|
670
871
|
{
|
|
671
872
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -675,110 +876,215 @@ var SuiSettingIcon = (props) => /* @__PURE__ */ jsxs(
|
|
|
675
876
|
viewBox: "0 0 24 24",
|
|
676
877
|
...props,
|
|
677
878
|
children: [
|
|
678
|
-
/* @__PURE__ */
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
879
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#warning_svg__a)", children: [
|
|
880
|
+
/* @__PURE__ */ jsx(
|
|
881
|
+
"path",
|
|
882
|
+
{
|
|
883
|
+
fill: "currentColor",
|
|
884
|
+
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"
|
|
885
|
+
}
|
|
886
|
+
),
|
|
887
|
+
/* @__PURE__ */ jsx(
|
|
888
|
+
"path",
|
|
889
|
+
{
|
|
890
|
+
fill: "#fff",
|
|
891
|
+
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"
|
|
892
|
+
}
|
|
893
|
+
)
|
|
894
|
+
] }),
|
|
895
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "warning_svg__a", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
|
|
692
896
|
]
|
|
693
897
|
}
|
|
694
898
|
);
|
|
695
|
-
var
|
|
696
|
-
var
|
|
899
|
+
var warning_default = SuiWarningIcon;
|
|
900
|
+
var TrashIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
697
901
|
"svg",
|
|
698
902
|
{
|
|
903
|
+
viewBox: "0 0 17 15",
|
|
699
904
|
xmlns: "http://www.w3.org/2000/svg",
|
|
700
|
-
width:
|
|
701
|
-
height:
|
|
905
|
+
width: size,
|
|
906
|
+
height: size,
|
|
702
907
|
fill: "none",
|
|
703
|
-
|
|
908
|
+
className,
|
|
704
909
|
...props,
|
|
705
|
-
children:
|
|
910
|
+
children: [
|
|
911
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_336_302483)", children: [
|
|
912
|
+
/* @__PURE__ */ jsx(
|
|
913
|
+
"path",
|
|
914
|
+
{
|
|
915
|
+
d: "M3.49371 2.12043C3.38318 1.44249 3.66212 0.708651 4.43068 0.529533C4.94459 0.409578 7.77168 0.42749 8.38456 0.492081C9.25207 0.583811 9.64966 1.36813 9.5125 2.12097C10.3748 2.22627 11.9484 1.85067 12.6087 2.44664C13.1053 2.89498 13.1452 3.75638 12.64 4.21232C12.2707 4.54558 12.1422 4.28179 12.0664 4.92282C11.7412 7.68938 11.6509 10.4907 11.3494 13.2605C11.2452 13.9135 10.7718 14.3401 10.0646 14.3895C7.73175 14.5534 5.1836 14.2619 2.8276 14.3873C2.09203 14.2587 1.75116 13.8364 1.64178 13.1655L0.878435 4.54558C0.710025 4.38221 0.481427 4.33281 0.310702 4.15532C-0.221151 3.60006 -0.0434807 2.66593 0.639999 2.29358C0.702502 2.25938 0.998811 2.12043 1.03411 2.12043H3.49371ZM4.30394 2.12043H8.70228C8.71964 1.8333 8.70691 1.36813 8.32321 1.30951C7.19122 1.38116 5.90586 1.20367 4.79238 1.30246C4.28831 1.34696 4.29815 1.71931 4.30394 2.12043ZM12.0415 3.0589C12.0172 3.03068 11.8812 2.9574 11.8419 2.94926L1.26329 2.93243C0.749379 2.95794 0.749379 3.72598 1.26329 3.75149H11.7429C12.1029 3.75312 12.2429 3.29338 12.0415 3.0589ZM11.2487 4.56295H1.75753L2.51508 13.1612C2.5608 13.4597 2.68754 13.5498 2.9989 13.5759C5.22817 13.762 7.7468 13.4293 10.0073 13.5759L10.3823 13.4391L11.2487 4.56295Z",
|
|
916
|
+
fill: color
|
|
917
|
+
}
|
|
918
|
+
),
|
|
919
|
+
/* @__PURE__ */ jsx(
|
|
920
|
+
"path",
|
|
921
|
+
{
|
|
922
|
+
d: "M4.22952 5.50209C4.41761 5.72137 4.34006 6.27067 4.36263 6.54477C4.51599 8.36961 4.73649 10.3719 4.77121 12.1892C4.78568 12.9404 3.98125 12.8953 3.90254 12.4047C3.84698 10.417 3.54836 8.42443 3.49164 6.43947C3.48586 6.23159 3.45576 5.67469 3.54894 5.52542C3.66411 5.34088 4.08426 5.33274 4.22952 5.50263V5.50209Z",
|
|
923
|
+
fill: color
|
|
924
|
+
}
|
|
925
|
+
),
|
|
926
|
+
/* @__PURE__ */ jsx(
|
|
927
|
+
"path",
|
|
928
|
+
{
|
|
929
|
+
d: "M9.43711 5.50146C9.55575 5.63933 9.52045 6.22879 9.51466 6.43776C9.45852 8.42272 9.15932 10.4153 9.10376 12.4029C9.02447 12.8936 8.21946 12.9381 8.23509 12.1875C8.27213 10.3681 8.48973 8.37007 8.64367 6.54306C8.67492 6.17234 8.50941 5.28598 9.18941 5.37771C9.24497 5.38531 9.40412 5.46238 9.43711 5.50092V5.50146Z",
|
|
930
|
+
fill: color
|
|
931
|
+
}
|
|
932
|
+
),
|
|
933
|
+
/* @__PURE__ */ jsx(
|
|
934
|
+
"path",
|
|
935
|
+
{
|
|
936
|
+
d: "M6.83313 5.50252C6.90547 5.58611 6.90142 5.68218 6.91068 5.78314C7.10224 7.89891 6.76253 10.266 6.90837 12.4083C6.88985 12.8822 6.11551 12.8806 6.09814 12.4083L6.15312 5.52478C6.31575 5.34783 6.6734 5.31689 6.83313 5.50252Z",
|
|
937
|
+
fill: color
|
|
938
|
+
}
|
|
939
|
+
)
|
|
940
|
+
] }),
|
|
941
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_3678_200811", children: /* @__PURE__ */ jsx("rect", { width: "17", height: "15", fill: "white", transform: "translate(0.728516 0.726562)" }) }) })
|
|
942
|
+
]
|
|
706
943
|
}
|
|
707
944
|
);
|
|
708
|
-
var
|
|
709
|
-
var
|
|
945
|
+
var trash_default = TrashIcon;
|
|
946
|
+
var RoleIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
947
|
+
"svg",
|
|
948
|
+
{
|
|
949
|
+
viewBox: "0 0 30 31",
|
|
950
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
951
|
+
width: size,
|
|
952
|
+
height: size,
|
|
953
|
+
className,
|
|
954
|
+
fill: color,
|
|
955
|
+
...props,
|
|
956
|
+
children: [
|
|
957
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_8249_21508)", children: [
|
|
958
|
+
/* @__PURE__ */ jsx(
|
|
959
|
+
"path",
|
|
960
|
+
{
|
|
961
|
+
d: "M28.1017 30.1367H1.89833C0.852141 30.1367 0 29.2846 0 28.2384V2.03505C0 0.98886 0.852141 0.136719 1.89833 0.136719H28.1017C29.1479 0.136719 30 0.98886 30 2.03505V28.2384C30 29.2846 29.1479 30.1367 28.1017 30.1367ZM2.10926 28.0275H27.8907V2.24598H2.10926V28.0275Z",
|
|
962
|
+
fill: color
|
|
963
|
+
}
|
|
964
|
+
),
|
|
965
|
+
/* @__PURE__ */ jsx(
|
|
966
|
+
"path",
|
|
967
|
+
{
|
|
968
|
+
d: "M8.63326 12.0173C8.90535 12.1649 9.20276 12.167 9.49172 12.0552L13.1471 8.87026C13.493 8.38092 13.0058 7.70595 12.3624 7.72704C12.2612 7.73126 12.1325 7.77345 12.0292 7.79454L9.1226 10.2582C8.97074 10.2814 8.11438 9.29844 7.75791 9.21618C6.88679 9.0158 6.22237 9.77303 6.78976 10.4164C6.98381 10.6357 8.416 11.9013 8.63536 12.0194L8.63326 12.0173Z",
|
|
969
|
+
fill: color
|
|
970
|
+
}
|
|
971
|
+
),
|
|
972
|
+
/* @__PURE__ */ jsx(
|
|
973
|
+
"path",
|
|
974
|
+
{
|
|
975
|
+
d: "M8.63326 22.4313C8.90535 22.579 9.20276 22.5811 9.49172 22.4693L13.1471 19.2843C13.493 18.795 13.0058 18.12 12.3624 18.1411C12.2612 18.1453 12.1325 18.1875 12.0292 18.2086L9.1226 20.6722C8.97074 20.6954 8.11438 19.7125 7.75791 19.6302C6.88679 19.4299 6.22237 20.1871 6.78976 20.8304C6.98381 21.0498 8.416 22.3153 8.63536 22.4335L8.63326 22.4313Z",
|
|
976
|
+
fill: color
|
|
977
|
+
}
|
|
978
|
+
),
|
|
979
|
+
/* @__PURE__ */ jsx(
|
|
980
|
+
"path",
|
|
981
|
+
{
|
|
982
|
+
d: "M22.5775 9.00586H15.3322C14.8663 9.00586 14.4885 9.3836 14.4885 9.84956V10.5688C14.4885 11.0348 14.8663 11.4125 15.3322 11.4125H22.5775C23.0435 11.4125 23.4212 11.0348 23.4212 10.5688V9.84956C23.4212 9.3836 23.0435 9.00586 22.5775 9.00586Z",
|
|
983
|
+
fill: color
|
|
984
|
+
}
|
|
985
|
+
),
|
|
986
|
+
/* @__PURE__ */ jsx(
|
|
987
|
+
"path",
|
|
988
|
+
{
|
|
989
|
+
d: "M22.5775 19.2715H15.3322C14.8663 19.2715 14.4885 19.6492 14.4885 20.1152V20.8344C14.4885 21.3004 14.8663 21.6781 15.3322 21.6781H22.5775C23.0435 21.6781 23.4212 21.3004 23.4212 20.8344V20.1152C23.4212 19.6492 23.0435 19.2715 22.5775 19.2715Z",
|
|
990
|
+
fill: color
|
|
991
|
+
}
|
|
992
|
+
),
|
|
993
|
+
/* @__PURE__ */ jsx(
|
|
994
|
+
"path",
|
|
995
|
+
{
|
|
996
|
+
d: "M22.5775 14.1387H15.3322C14.8663 14.1387 14.4885 14.5164 14.4885 14.9824V15.7016C14.4885 16.1676 14.8663 16.5453 15.3322 16.5453H22.5775C23.0435 16.5453 23.4212 16.1676 23.4212 15.7016V14.9824C23.4212 14.5164 23.0435 14.1387 22.5775 14.1387Z",
|
|
997
|
+
fill: color
|
|
998
|
+
}
|
|
999
|
+
)
|
|
1000
|
+
] }),
|
|
1001
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_8249_21508", children: /* @__PURE__ */ jsx("rect", { width: "30", height: "30", fill: color, transform: "translate(0 0.136719)" }) }) })
|
|
1002
|
+
]
|
|
1003
|
+
}
|
|
1004
|
+
);
|
|
1005
|
+
var role_default = RoleIcon;
|
|
1006
|
+
var UserIcon = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
710
1007
|
"svg",
|
|
711
1008
|
{
|
|
1009
|
+
viewBox: "0 0 31 31",
|
|
712
1010
|
xmlns: "http://www.w3.org/2000/svg",
|
|
713
|
-
width:
|
|
714
|
-
height:
|
|
715
|
-
|
|
716
|
-
|
|
1011
|
+
width: size,
|
|
1012
|
+
height: size,
|
|
1013
|
+
className,
|
|
1014
|
+
fill: color,
|
|
717
1015
|
...props,
|
|
718
1016
|
children: [
|
|
719
|
-
/* @__PURE__ */ jsxs("g", { clipPath: "url(#
|
|
1017
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_6640_79285)", children: [
|
|
720
1018
|
/* @__PURE__ */ jsx(
|
|
721
1019
|
"path",
|
|
722
1020
|
{
|
|
723
|
-
|
|
724
|
-
|
|
1021
|
+
d: "M15.5 0.832031C7.22905 0.832031 0.5 7.56108 0.5 15.832C0.5 24.103 7.22905 30.832 15.5 30.832C23.7709 30.832 30.5 24.103 30.5 15.832C30.5 7.56108 23.7709 0.832031 15.5 0.832031ZM15.5 28.7053C8.40089 28.7053 2.62675 22.9311 2.62675 15.832C2.62675 8.73292 8.40089 2.95879 15.5 2.95879C22.5991 2.95879 28.3732 8.73292 28.3732 15.832C28.3732 22.9311 22.5991 28.7053 15.5 28.7053Z",
|
|
1022
|
+
fill: color
|
|
725
1023
|
}
|
|
726
1024
|
),
|
|
727
1025
|
/* @__PURE__ */ jsx(
|
|
728
1026
|
"path",
|
|
729
1027
|
{
|
|
730
|
-
|
|
731
|
-
|
|
1028
|
+
d: "M19.5281 15.6953C20.483 14.7489 21.0742 13.4389 21.0742 11.9905C21.0742 9.11304 18.7327 6.77148 15.8552 6.77148C12.9777 6.77148 10.6361 9.11304 10.6361 11.9905C10.6361 13.5154 11.2933 14.8893 12.3397 15.8442C9.37922 17.2543 7.3269 20.2764 7.3269 23.7685C7.3269 24.3555 7.8033 24.8319 8.39028 24.8319C8.97727 24.8319 9.45366 24.3555 9.45366 23.7685C9.45366 20.3848 11.9973 17.586 15.2725 17.1756C15.4639 17.1968 15.6595 17.2096 15.8552 17.2096C16.1274 17.2096 16.3954 17.1883 16.657 17.1479C20.0619 17.4329 22.7459 20.2913 22.7459 23.7685C22.7459 24.3555 23.2223 24.8319 23.8093 24.8319C24.3962 24.8319 24.8726 24.3555 24.8726 23.7685C24.8726 20.1466 22.6672 17.0331 19.5302 15.6953H19.5281ZM12.7629 11.9905C12.7629 10.2849 14.1495 8.89824 15.8552 8.89824C17.5608 8.89824 18.9475 10.2849 18.9475 11.9905C18.9475 13.4644 17.9096 14.6979 16.5272 15.0063C16.3848 14.9999 16.2423 14.9956 16.0976 14.9956C15.8339 14.9956 15.5723 15.0084 15.315 15.0318C13.8667 14.7766 12.7608 13.5112 12.7608 11.9884L12.7629 11.9905Z",
|
|
1029
|
+
fill: color
|
|
732
1030
|
}
|
|
733
1031
|
)
|
|
734
1032
|
] }),
|
|
735
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "
|
|
1033
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_6640_79285", children: /* @__PURE__ */ jsx("rect", { width: "30", height: "30", fill: color, transform: "translate(0.5 0.832031)" }) }) })
|
|
736
1034
|
]
|
|
737
1035
|
}
|
|
738
1036
|
);
|
|
739
|
-
var
|
|
740
|
-
var
|
|
741
|
-
size = 16,
|
|
742
|
-
color = "currentColor",
|
|
743
|
-
className,
|
|
744
|
-
...props
|
|
745
|
-
}) => /* @__PURE__ */ jsxs(
|
|
1037
|
+
var user_default = UserIcon;
|
|
1038
|
+
var PlusIcon2 = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
746
1039
|
"svg",
|
|
747
1040
|
{
|
|
748
1041
|
viewBox: "0 0 17 15",
|
|
749
1042
|
xmlns: "http://www.w3.org/2000/svg",
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
className,
|
|
1043
|
+
className: `${className} w-[${size}px] h-[${size}px]`,
|
|
1044
|
+
fill: color,
|
|
1045
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
754
1046
|
...props,
|
|
755
1047
|
children: [
|
|
756
|
-
/* @__PURE__ */ jsxs("g", { clipPath: "url(#
|
|
1048
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_3678_200811)", children: [
|
|
757
1049
|
/* @__PURE__ */ jsx(
|
|
758
1050
|
"path",
|
|
759
1051
|
{
|
|
760
|
-
d: "
|
|
1052
|
+
d: "M7.4394 7.51422C8.61928 7.38916 10.0254 7.55139 11.2183 7.54802C12.2462 7.76433 13.0834 8.73098 13.161 9.83283C13.2839 11.5938 13.064 13.5135 13.161 15.2947C13.1384 15.4874 12.9962 15.6395 12.8313 15.7105L5.74231 15.7274C5.50956 15.7172 5.30591 15.5009 5.29621 15.2609C5.39319 13.4933 5.17338 11.587 5.29621 9.83283C5.37703 8.67014 6.32417 7.63251 7.4394 7.51084V7.51422Z",
|
|
761
1053
|
fill: color
|
|
762
1054
|
}
|
|
763
1055
|
),
|
|
764
1056
|
/* @__PURE__ */ jsx(
|
|
765
1057
|
"path",
|
|
766
1058
|
{
|
|
767
|
-
d: "
|
|
1059
|
+
d: "M8.92617 0.740824C11.315 0.507611 12.9895 3.18111 11.7547 5.35777C10.6071 7.37557 7.79155 7.35867 6.67955 5.31383C5.63867 3.40081 6.83148 0.946998 8.92617 0.740824Z",
|
|
768
1060
|
fill: color
|
|
769
1061
|
}
|
|
770
1062
|
),
|
|
771
1063
|
/* @__PURE__ */ jsx(
|
|
772
1064
|
"path",
|
|
773
1065
|
{
|
|
774
|
-
d: "
|
|
1066
|
+
d: "M2.04411 15.7226C1.31355 15.6314 0.815737 14.9588 0.770481 14.2219C0.71876 13.3668 0.715527 12.0656 0.770481 11.2138C0.831899 10.2844 1.41053 9.40896 2.22513 9.04055C2.94276 8.71608 3.74443 8.83776 4.50408 8.8141C4.41357 9.20955 4.32629 9.59485 4.30366 10.0038C4.21638 11.7039 4.37155 13.4817 4.30366 15.1886L4.40387 15.7226H2.04087H2.04411Z",
|
|
775
1067
|
fill: color
|
|
776
1068
|
}
|
|
777
1069
|
),
|
|
778
1070
|
/* @__PURE__ */ jsx(
|
|
779
1071
|
"path",
|
|
780
1072
|
{
|
|
781
|
-
d: "
|
|
1073
|
+
d: "M14.0531 15.7236L14.1533 15.1895C14.0854 13.4827 14.2406 11.7049 14.1533 10.0048C14.1339 9.5958 14.0434 9.21049 13.9529 8.81504C14.7125 8.8387 15.5142 8.71365 16.2318 9.0415C17.0497 9.41329 17.6283 10.2887 17.6865 11.2148C17.7414 12.0665 17.7414 13.3678 17.6865 14.2229C17.6445 14.8887 17.1079 15.7236 16.4129 15.7236H14.0499H14.0531Z",
|
|
1074
|
+
fill: color
|
|
1075
|
+
}
|
|
1076
|
+
),
|
|
1077
|
+
/* @__PURE__ */ jsx(
|
|
1078
|
+
"path",
|
|
1079
|
+
{
|
|
1080
|
+
d: "M3.77045 3.60682C6.00737 3.34318 7.16139 6.2161 5.44491 7.67284C3.89975 8.98424 1.64019 7.61876 1.8988 5.55364C2.0184 4.58361 2.833 3.71835 3.77045 3.60682Z",
|
|
1081
|
+
fill: color
|
|
1082
|
+
}
|
|
1083
|
+
),
|
|
1084
|
+
/* @__PURE__ */ jsx(
|
|
1085
|
+
"path",
|
|
1086
|
+
{
|
|
1087
|
+
d: "M14.0789 3.60555C16.5033 3.31826 17.528 6.61366 15.5044 7.86085C13.788 8.91875 11.7321 7.22542 12.2848 5.22114C12.5111 4.39983 13.2546 3.70357 14.0789 3.60555Z",
|
|
782
1088
|
fill: color
|
|
783
1089
|
}
|
|
784
1090
|
)
|
|
@@ -787,7 +1093,39 @@ var TrashIcon = ({
|
|
|
787
1093
|
]
|
|
788
1094
|
}
|
|
789
1095
|
);
|
|
790
|
-
var
|
|
1096
|
+
var user_friend_default = PlusIcon2;
|
|
1097
|
+
var PlusIcon3 = ({ size = 16, color = "currentColor", className, ...props }) => /* @__PURE__ */ jsxs(
|
|
1098
|
+
"svg",
|
|
1099
|
+
{
|
|
1100
|
+
viewBox: "0 0 16 18",
|
|
1101
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1102
|
+
width: size,
|
|
1103
|
+
height: size,
|
|
1104
|
+
className,
|
|
1105
|
+
fill: color,
|
|
1106
|
+
...props,
|
|
1107
|
+
children: [
|
|
1108
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_2001_145027)", children: [
|
|
1109
|
+
/* @__PURE__ */ jsx(
|
|
1110
|
+
"path",
|
|
1111
|
+
{
|
|
1112
|
+
d: "M15.6777 17.4958C15.5882 17.5711 15.3981 17.6249 15.2751 17.6249H0.545811C0.310948 17.5819 0.143189 17.3128 0.109638 17.0976C0.0201661 16.3551 0.0649018 14.5473 0.255029 13.8263C0.691202 12.1368 2.31287 10.8132 4.13585 10.6948C6.66342 10.5334 9.35875 10.8239 11.8975 10.6948C15.3869 11.136 16.2145 14.063 15.8566 17.0438C15.8454 17.173 15.7671 17.4097 15.6665 17.4958H15.6777Z",
|
|
1113
|
+
fill: color
|
|
1114
|
+
}
|
|
1115
|
+
),
|
|
1116
|
+
/* @__PURE__ */ jsx(
|
|
1117
|
+
"path",
|
|
1118
|
+
{
|
|
1119
|
+
d: "M7.40161 0.396418C11.1147 0.0305414 13.6982 3.70007 11.7969 6.82078C9.89563 9.94149 5.26548 9.50029 3.87867 6.27196C2.79383 3.74311 4.52734 0.686967 7.40161 0.396418Z",
|
|
1120
|
+
fill: color
|
|
1121
|
+
}
|
|
1122
|
+
)
|
|
1123
|
+
] }),
|
|
1124
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_2001_145027", children: /* @__PURE__ */ jsx("rect", { width: "15.87", height: "17.25", fill: "white", transform: "translate(0.0649414 0.375)" }) }) })
|
|
1125
|
+
]
|
|
1126
|
+
}
|
|
1127
|
+
);
|
|
1128
|
+
var user_alone_default = PlusIcon3;
|
|
791
1129
|
var AuditFooter = ({
|
|
792
1130
|
createdAt,
|
|
793
1131
|
createdBy,
|
|
@@ -1317,7 +1655,7 @@ var OPERATOR_LABEL = {
|
|
|
1317
1655
|
containsAll: "Contains all of"
|
|
1318
1656
|
};
|
|
1319
1657
|
var OperatorSelect = ({ row, operators, onChangeOperator, error }) => {
|
|
1320
|
-
|
|
1658
|
+
React25__default.useEffect(() => {
|
|
1321
1659
|
if (!operators.length) return;
|
|
1322
1660
|
if (!operators.includes(row.operator)) {
|
|
1323
1661
|
onChangeOperator(operators[0]);
|
|
@@ -1353,15 +1691,15 @@ function Label2({ className, ...props }) {
|
|
|
1353
1691
|
);
|
|
1354
1692
|
}
|
|
1355
1693
|
var Form = FormProvider;
|
|
1356
|
-
var FormFieldContext =
|
|
1694
|
+
var FormFieldContext = React25.createContext({});
|
|
1357
1695
|
var FormField = ({
|
|
1358
1696
|
...props
|
|
1359
1697
|
}) => {
|
|
1360
1698
|
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
1361
1699
|
};
|
|
1362
1700
|
var useFormField = () => {
|
|
1363
|
-
const fieldContext =
|
|
1364
|
-
const itemContext =
|
|
1701
|
+
const fieldContext = React25.useContext(FormFieldContext);
|
|
1702
|
+
const itemContext = React25.useContext(FormItemContext);
|
|
1365
1703
|
const { getFieldState } = useFormContext();
|
|
1366
1704
|
const formState = useFormState({ name: fieldContext.name });
|
|
1367
1705
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -1378,9 +1716,9 @@ var useFormField = () => {
|
|
|
1378
1716
|
...fieldState
|
|
1379
1717
|
};
|
|
1380
1718
|
};
|
|
1381
|
-
var FormItemContext =
|
|
1719
|
+
var FormItemContext = React25.createContext({});
|
|
1382
1720
|
function FormItem({ className, ...props }) {
|
|
1383
|
-
const id =
|
|
1721
|
+
const id = React25.useId();
|
|
1384
1722
|
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx("div", { "data-slot": "form-item", className: cn("grid gap-2", className), ...props }) });
|
|
1385
1723
|
}
|
|
1386
1724
|
function FormLabel({ className, ...props }) {
|
|
@@ -1484,7 +1822,7 @@ var Spinner = ({ className, variant, size = "default", ...props }) => /* @__PURE
|
|
|
1484
1822
|
]
|
|
1485
1823
|
}
|
|
1486
1824
|
);
|
|
1487
|
-
var InputPrimitive =
|
|
1825
|
+
var InputPrimitive = React25.forwardRef(
|
|
1488
1826
|
({ className, type = "text", ...props }, ref) => {
|
|
1489
1827
|
return /* @__PURE__ */ jsx(
|
|
1490
1828
|
"input",
|
|
@@ -1523,7 +1861,7 @@ var inputVariants = cva("", {
|
|
|
1523
1861
|
appearance: "filled"
|
|
1524
1862
|
}
|
|
1525
1863
|
});
|
|
1526
|
-
var Input =
|
|
1864
|
+
var Input = React25.forwardRef(
|
|
1527
1865
|
({
|
|
1528
1866
|
className,
|
|
1529
1867
|
wrapperClassName,
|
|
@@ -1556,8 +1894,8 @@ var Input = React26.forwardRef(
|
|
|
1556
1894
|
onChange: onChangeProp
|
|
1557
1895
|
} = rest;
|
|
1558
1896
|
const ariaInvalid = invalid ?? ariaInvalidProp;
|
|
1559
|
-
const messageId =
|
|
1560
|
-
const handleChange =
|
|
1897
|
+
const messageId = React25.useId();
|
|
1898
|
+
const handleChange = React25.useCallback(
|
|
1561
1899
|
(event) => {
|
|
1562
1900
|
onChangeProp?.(event);
|
|
1563
1901
|
onValueChange?.(event.target.value);
|
|
@@ -1900,20 +2238,20 @@ function DatePicker({
|
|
|
1900
2238
|
className,
|
|
1901
2239
|
...props
|
|
1902
2240
|
}) {
|
|
1903
|
-
const today =
|
|
1904
|
-
const [displayed, setDisplayed] =
|
|
2241
|
+
const today = React25.useMemo(() => startOfDay(/* @__PURE__ */ new Date()), []);
|
|
2242
|
+
const [displayed, setDisplayed] = React25.useState(
|
|
1905
2243
|
selectedDate ? new Date(selectedDate) : /* @__PURE__ */ new Date()
|
|
1906
2244
|
);
|
|
1907
2245
|
minDate = clampToDay(minDate);
|
|
1908
2246
|
maxDate = clampToDay(maxDate);
|
|
1909
|
-
const disabledSet =
|
|
2247
|
+
const disabledSet = React25.useMemo(() => {
|
|
1910
2248
|
const s = /* @__PURE__ */ new Set();
|
|
1911
2249
|
disabledDates?.forEach((d) => s.add(startOfDay(d).toISOString()));
|
|
1912
2250
|
return s;
|
|
1913
2251
|
}, [disabledDates]);
|
|
1914
2252
|
const displayYear = displayed.getFullYear();
|
|
1915
2253
|
const displayMonth = displayed.getMonth();
|
|
1916
|
-
const weekdays =
|
|
2254
|
+
const weekdays = React25.useMemo(() => {
|
|
1917
2255
|
const labels = [];
|
|
1918
2256
|
for (let i = 0; i < 7; i++) {
|
|
1919
2257
|
const idx = i;
|
|
@@ -1922,7 +2260,7 @@ function DatePicker({
|
|
|
1922
2260
|
}
|
|
1923
2261
|
return labels;
|
|
1924
2262
|
}, [callbacks]);
|
|
1925
|
-
const grid =
|
|
2263
|
+
const grid = React25.useMemo(() => buildCalendarGrid(displayed, true), [displayed]);
|
|
1926
2264
|
const isDateDisabled = (date) => {
|
|
1927
2265
|
const d = startOfDay(date);
|
|
1928
2266
|
if (minDate && d < minDate) return true;
|
|
@@ -1932,7 +2270,7 @@ function DatePicker({
|
|
|
1932
2270
|
};
|
|
1933
2271
|
const minYear = minDate?.getFullYear();
|
|
1934
2272
|
const maxYear = maxDate?.getFullYear();
|
|
1935
|
-
const getMonthLabel =
|
|
2273
|
+
const getMonthLabel = React25.useCallback(
|
|
1936
2274
|
(year, monthIndex) => {
|
|
1937
2275
|
const label = callbacks?.monthLabel?.(year, monthIndex);
|
|
1938
2276
|
if (label === null || label === void 0) {
|
|
@@ -1942,7 +2280,7 @@ function DatePicker({
|
|
|
1942
2280
|
},
|
|
1943
2281
|
[callbacks]
|
|
1944
2282
|
);
|
|
1945
|
-
const getYearLabel =
|
|
2283
|
+
const getYearLabel = React25.useCallback(
|
|
1946
2284
|
(year) => {
|
|
1947
2285
|
const label = callbacks?.yearLabel?.(year);
|
|
1948
2286
|
if (label === null || label === void 0) return String(year);
|
|
@@ -1950,7 +2288,7 @@ function DatePicker({
|
|
|
1950
2288
|
},
|
|
1951
2289
|
[callbacks]
|
|
1952
2290
|
);
|
|
1953
|
-
const clampMonthToBounds =
|
|
2291
|
+
const clampMonthToBounds = React25.useCallback(
|
|
1954
2292
|
(year, monthIndex) => {
|
|
1955
2293
|
let output = monthIndex;
|
|
1956
2294
|
if (typeof minYear === "number" && year === minYear && minDate) {
|
|
@@ -1965,7 +2303,7 @@ function DatePicker({
|
|
|
1965
2303
|
},
|
|
1966
2304
|
[maxDate, minDate, maxYear, minYear]
|
|
1967
2305
|
);
|
|
1968
|
-
const yearOptions =
|
|
2306
|
+
const yearOptions = React25.useMemo(() => {
|
|
1969
2307
|
const fallbackWindow = 50;
|
|
1970
2308
|
const start = typeof minYear === "number" ? minYear : displayYear - fallbackWindow;
|
|
1971
2309
|
const end = typeof maxYear === "number" ? maxYear : displayYear + fallbackWindow;
|
|
@@ -1986,7 +2324,7 @@ function DatePicker({
|
|
|
1986
2324
|
}
|
|
1987
2325
|
return years;
|
|
1988
2326
|
}, [displayYear, maxYear, minYear, selectedDate]);
|
|
1989
|
-
const monthOptions =
|
|
2327
|
+
const monthOptions = React25.useMemo(() => {
|
|
1990
2328
|
const months = Array.from({ length: 12 }, (_, monthIndex) => {
|
|
1991
2329
|
const disabled = typeof minYear === "number" && displayYear === minYear && minDate && monthIndex < minDate.getMonth() || typeof maxYear === "number" && displayYear === maxYear && maxDate && monthIndex > maxDate.getMonth();
|
|
1992
2330
|
return {
|
|
@@ -2005,7 +2343,7 @@ function DatePicker({
|
|
|
2005
2343
|
}
|
|
2006
2344
|
return months.sort((a, b) => a.value - b.value).filter((option, index, arr) => index === 0 || option.value !== arr[index - 1].value);
|
|
2007
2345
|
}, [displayMonth, displayYear, getMonthLabel, maxDate, maxYear, minDate, minYear]);
|
|
2008
|
-
const handleMonthSelect =
|
|
2346
|
+
const handleMonthSelect = React25.useCallback((nextValue) => {
|
|
2009
2347
|
const nextMonth = Number.parseInt(nextValue, 10);
|
|
2010
2348
|
if (Number.isNaN(nextMonth)) return;
|
|
2011
2349
|
setDisplayed((prev) => {
|
|
@@ -2015,7 +2353,7 @@ function DatePicker({
|
|
|
2015
2353
|
return next;
|
|
2016
2354
|
});
|
|
2017
2355
|
}, []);
|
|
2018
|
-
const handleYearSelect =
|
|
2356
|
+
const handleYearSelect = React25.useCallback(
|
|
2019
2357
|
(nextValue) => {
|
|
2020
2358
|
const nextYear = Number.parseInt(nextValue, 10);
|
|
2021
2359
|
if (Number.isNaN(nextYear)) return;
|
|
@@ -2163,14 +2501,14 @@ var DatePicker2 = ({
|
|
|
2163
2501
|
ariaLabel,
|
|
2164
2502
|
...calendarProps
|
|
2165
2503
|
}) => {
|
|
2166
|
-
const [open, setOpen] =
|
|
2167
|
-
const parser =
|
|
2168
|
-
const outputFormatter =
|
|
2169
|
-
const labelFormatter =
|
|
2504
|
+
const [open, setOpen] = React25__default.useState(false);
|
|
2505
|
+
const parser = React25__default.useMemo(() => valueParser ?? defaultValueParser, [valueParser]);
|
|
2506
|
+
const outputFormatter = React25__default.useMemo(() => valueFormatter ?? defaultValueFormatter, [valueFormatter]);
|
|
2507
|
+
const labelFormatter = React25__default.useMemo(
|
|
2170
2508
|
() => displayFormatter ?? defaultDisplayFormatter,
|
|
2171
2509
|
[displayFormatter]
|
|
2172
2510
|
);
|
|
2173
|
-
const parsedValue =
|
|
2511
|
+
const parsedValue = React25__default.useMemo(() => {
|
|
2174
2512
|
if (value === null || value === void 0) return void 0;
|
|
2175
2513
|
if (value instanceof Date) return value;
|
|
2176
2514
|
const parsed = parser(value);
|
|
@@ -2179,26 +2517,26 @@ var DatePicker2 = ({
|
|
|
2179
2517
|
const buttonLabel = parsedValue ? labelFormatter(parsedValue) : placeholder2;
|
|
2180
2518
|
const buttonAriaLabel = ariaLabel ?? (parsedValue ? `Change date, current selection ${labelFormatter(parsedValue)}` : "Open date picker");
|
|
2181
2519
|
const shouldShowClear = allowClear && !disabled && !!parsedValue;
|
|
2182
|
-
const handleClose =
|
|
2183
|
-
const emitChange =
|
|
2520
|
+
const handleClose = React25__default.useCallback(() => setOpen(false), []);
|
|
2521
|
+
const emitChange = React25__default.useCallback(
|
|
2184
2522
|
(next) => {
|
|
2185
2523
|
onChange?.(next);
|
|
2186
2524
|
onValueChange?.(next ? outputFormatter(next) : void 0);
|
|
2187
2525
|
},
|
|
2188
2526
|
[onChange, onValueChange, outputFormatter]
|
|
2189
2527
|
);
|
|
2190
|
-
const handleSelect =
|
|
2528
|
+
const handleSelect = React25__default.useCallback(
|
|
2191
2529
|
(next) => {
|
|
2192
2530
|
emitChange(next);
|
|
2193
2531
|
if (closeOnSelect && next) handleClose();
|
|
2194
2532
|
},
|
|
2195
2533
|
[closeOnSelect, emitChange, handleClose]
|
|
2196
2534
|
);
|
|
2197
|
-
const handleClear =
|
|
2535
|
+
const handleClear = React25__default.useCallback(() => {
|
|
2198
2536
|
emitChange(void 0);
|
|
2199
2537
|
handleClose();
|
|
2200
2538
|
}, [emitChange, handleClose]);
|
|
2201
|
-
const handleOpenChange =
|
|
2539
|
+
const handleOpenChange = React25__default.useCallback(
|
|
2202
2540
|
(nextOpen) => {
|
|
2203
2541
|
if (disabled && nextOpen) return;
|
|
2204
2542
|
setOpen(nextOpen);
|
|
@@ -2388,15 +2726,15 @@ function MonthCal({
|
|
|
2388
2726
|
onYearBackward,
|
|
2389
2727
|
onYearForward
|
|
2390
2728
|
}) {
|
|
2391
|
-
const today =
|
|
2729
|
+
const today = React25.useMemo(() => {
|
|
2392
2730
|
const now = /* @__PURE__ */ new Date();
|
|
2393
2731
|
now.setDate(1);
|
|
2394
2732
|
now.setHours(0, 0, 0, 0);
|
|
2395
2733
|
return now;
|
|
2396
2734
|
}, []);
|
|
2397
|
-
const selectedMonthDate =
|
|
2398
|
-
const min =
|
|
2399
|
-
const max =
|
|
2735
|
+
const selectedMonthDate = React25.useMemo(() => normalizeMonth(selectedDate), [selectedDate]);
|
|
2736
|
+
const min = React25.useMemo(() => normalizeMonth(minDate), [minDate]);
|
|
2737
|
+
const max = React25.useMemo(() => normalizeMonth(maxDate), [maxDate]);
|
|
2400
2738
|
let effectiveMin = min;
|
|
2401
2739
|
if (min && max && min > max) {
|
|
2402
2740
|
effectiveMin = max;
|
|
@@ -2405,10 +2743,10 @@ function MonthCal({
|
|
|
2405
2743
|
const minMonth = effectiveMin?.getMonth();
|
|
2406
2744
|
const maxYear = max?.getFullYear();
|
|
2407
2745
|
const maxMonth = max?.getMonth();
|
|
2408
|
-
const [menuYear, setMenuYear] =
|
|
2746
|
+
const [menuYear, setMenuYear] = React25.useState(
|
|
2409
2747
|
() => selectedMonthDate?.getFullYear() ?? today.getFullYear()
|
|
2410
2748
|
);
|
|
2411
|
-
|
|
2749
|
+
React25.useEffect(() => {
|
|
2412
2750
|
if (selectedMonthDate) {
|
|
2413
2751
|
const year = selectedMonthDate.getFullYear();
|
|
2414
2752
|
if (year !== menuYear) {
|
|
@@ -2416,7 +2754,7 @@ function MonthCal({
|
|
|
2416
2754
|
}
|
|
2417
2755
|
}
|
|
2418
2756
|
}, [selectedMonthDate, menuYear]);
|
|
2419
|
-
|
|
2757
|
+
React25.useEffect(() => {
|
|
2420
2758
|
if (typeof minYear === "number" && menuYear < minYear) {
|
|
2421
2759
|
setMenuYear(minYear);
|
|
2422
2760
|
return;
|
|
@@ -2427,7 +2765,7 @@ function MonthCal({
|
|
|
2427
2765
|
}, [minYear, maxYear, menuYear]);
|
|
2428
2766
|
const disablePrevYear = typeof minYear === "number" ? menuYear <= minYear : false;
|
|
2429
2767
|
const disableNextYear = typeof maxYear === "number" ? menuYear >= maxYear : false;
|
|
2430
|
-
const yearOptions =
|
|
2768
|
+
const yearOptions = React25.useMemo(() => {
|
|
2431
2769
|
const fallbackWindow = 50;
|
|
2432
2770
|
const start = typeof minYear === "number" ? minYear : menuYear - fallbackWindow;
|
|
2433
2771
|
const end = typeof maxYear === "number" ? maxYear : menuYear + fallbackWindow;
|
|
@@ -2441,7 +2779,7 @@ function MonthCal({
|
|
|
2441
2779
|
}
|
|
2442
2780
|
return years;
|
|
2443
2781
|
}, [maxYear, menuYear, minYear]);
|
|
2444
|
-
const formatYearLabel =
|
|
2782
|
+
const formatYearLabel = React25.useCallback(
|
|
2445
2783
|
(year) => {
|
|
2446
2784
|
const raw = callbacks?.yearLabel?.(year);
|
|
2447
2785
|
if (raw === null || raw === void 0) return String(year);
|
|
@@ -2449,7 +2787,7 @@ function MonthCal({
|
|
|
2449
2787
|
},
|
|
2450
2788
|
[callbacks]
|
|
2451
2789
|
);
|
|
2452
|
-
const handleYearSelect =
|
|
2790
|
+
const handleYearSelect = React25.useCallback(
|
|
2453
2791
|
(nextValue) => {
|
|
2454
2792
|
const nextYear = Number.parseInt(nextValue, 10);
|
|
2455
2793
|
if (Number.isNaN(nextYear)) return;
|
|
@@ -2459,7 +2797,7 @@ function MonthCal({
|
|
|
2459
2797
|
},
|
|
2460
2798
|
[maxYear, minYear]
|
|
2461
2799
|
);
|
|
2462
|
-
const disabledPairs =
|
|
2800
|
+
const disabledPairs = React25.useMemo(() => {
|
|
2463
2801
|
if (!disabledDates?.length) return [];
|
|
2464
2802
|
const pairs = [];
|
|
2465
2803
|
disabledDates.forEach((date) => {
|
|
@@ -2604,14 +2942,14 @@ var MonthPicker2 = ({
|
|
|
2604
2942
|
ariaLabel,
|
|
2605
2943
|
...calendarProps
|
|
2606
2944
|
}) => {
|
|
2607
|
-
const [open, setOpen] =
|
|
2608
|
-
const parser =
|
|
2609
|
-
const outputFormatter =
|
|
2610
|
-
const labelFormatter =
|
|
2945
|
+
const [open, setOpen] = React25__default.useState(false);
|
|
2946
|
+
const parser = React25__default.useMemo(() => valueParser ?? defaultValueParser2, [valueParser]);
|
|
2947
|
+
const outputFormatter = React25__default.useMemo(() => valueFormatter ?? defaultValueFormatter2, [valueFormatter]);
|
|
2948
|
+
const labelFormatter = React25__default.useMemo(
|
|
2611
2949
|
() => displayFormatter ?? defaultDisplayFormatter2,
|
|
2612
2950
|
[displayFormatter]
|
|
2613
2951
|
);
|
|
2614
|
-
const parsedValue =
|
|
2952
|
+
const parsedValue = React25__default.useMemo(() => {
|
|
2615
2953
|
if (value === null || value === void 0) return void 0;
|
|
2616
2954
|
if (value instanceof Date) return normalizeMonth2(value);
|
|
2617
2955
|
if (typeof value === "string") {
|
|
@@ -2623,8 +2961,8 @@ var MonthPicker2 = ({
|
|
|
2623
2961
|
const buttonLabel = parsedValue ? labelFormatter(parsedValue) : placeholder2;
|
|
2624
2962
|
const buttonAriaLabel = ariaLabel ?? (parsedValue ? `Change month, current selection ${labelFormatter(parsedValue)}` : "Open month picker");
|
|
2625
2963
|
const shouldShowClear = allowClear && !disabled && !!parsedValue;
|
|
2626
|
-
const handleClose =
|
|
2627
|
-
const emitChange =
|
|
2964
|
+
const handleClose = React25__default.useCallback(() => setOpen(false), []);
|
|
2965
|
+
const emitChange = React25__default.useCallback(
|
|
2628
2966
|
(next) => {
|
|
2629
2967
|
const normalized = next ? normalizeMonth2(next) : void 0;
|
|
2630
2968
|
onChange?.(normalized);
|
|
@@ -2632,18 +2970,18 @@ var MonthPicker2 = ({
|
|
|
2632
2970
|
},
|
|
2633
2971
|
[onChange, onValueChange, outputFormatter]
|
|
2634
2972
|
);
|
|
2635
|
-
const handleSelect =
|
|
2973
|
+
const handleSelect = React25__default.useCallback(
|
|
2636
2974
|
(next) => {
|
|
2637
2975
|
emitChange(next);
|
|
2638
2976
|
if (closeOnSelect && next) handleClose();
|
|
2639
2977
|
},
|
|
2640
2978
|
[closeOnSelect, emitChange, handleClose]
|
|
2641
2979
|
);
|
|
2642
|
-
const handleClear =
|
|
2980
|
+
const handleClear = React25__default.useCallback(() => {
|
|
2643
2981
|
emitChange(void 0);
|
|
2644
2982
|
handleClose();
|
|
2645
2983
|
}, [emitChange, handleClose]);
|
|
2646
|
-
const handleOpenChange =
|
|
2984
|
+
const handleOpenChange = React25__default.useCallback(
|
|
2647
2985
|
(nextOpen) => {
|
|
2648
2986
|
if (disabled && nextOpen) return;
|
|
2649
2987
|
setOpen(nextOpen);
|
|
@@ -2856,6 +3194,7 @@ var LookupSelect = ({
|
|
|
2856
3194
|
}) => {
|
|
2857
3195
|
const [inputValue, setInputValue] = useState("");
|
|
2858
3196
|
const inputRef = useRef(null);
|
|
3197
|
+
const [inputFocused, setInputFocused] = useState(false);
|
|
2859
3198
|
const [suggestions, setSuggestions] = useState([]);
|
|
2860
3199
|
const [optionLabels, setOptionLabels] = useState({});
|
|
2861
3200
|
const [loading, setLoading] = useState(false);
|
|
@@ -2906,8 +3245,6 @@ var LookupSelect = ({
|
|
|
2906
3245
|
onChange([trimmed]);
|
|
2907
3246
|
}
|
|
2908
3247
|
setInputValue("");
|
|
2909
|
-
setSuggestions([]);
|
|
2910
|
-
setIsDropdownOpen(false);
|
|
2911
3248
|
},
|
|
2912
3249
|
[value, onChange, maxTags, multiple]
|
|
2913
3250
|
);
|
|
@@ -2916,12 +3253,15 @@ var LookupSelect = ({
|
|
|
2916
3253
|
if (index < 0) return;
|
|
2917
3254
|
const newTags = value.filter((_, i) => i !== index);
|
|
2918
3255
|
onChange(newTags);
|
|
3256
|
+
setIsDropdownOpen(false);
|
|
3257
|
+
setInputFocused(false);
|
|
2919
3258
|
},
|
|
2920
3259
|
[value, onChange]
|
|
2921
3260
|
);
|
|
2922
3261
|
const handleClear = useCallback(() => {
|
|
2923
3262
|
setInputValue("");
|
|
2924
3263
|
setSuggestions([]);
|
|
3264
|
+
setInputFocused(false);
|
|
2925
3265
|
setIsDropdownOpen(false);
|
|
2926
3266
|
setFetchError(null);
|
|
2927
3267
|
if (onClear) onClear();
|
|
@@ -2937,7 +3277,10 @@ var LookupSelect = ({
|
|
|
2937
3277
|
}, 100);
|
|
2938
3278
|
} else {
|
|
2939
3279
|
inputRef.current?.blur();
|
|
3280
|
+
setInputFocused(false);
|
|
3281
|
+
setIsDropdownOpen(false);
|
|
2940
3282
|
}
|
|
3283
|
+
inputRef.current.value = "";
|
|
2941
3284
|
},
|
|
2942
3285
|
[addTag, multiple, upsertOptionLabels]
|
|
2943
3286
|
);
|
|
@@ -2980,18 +3323,11 @@ var LookupSelect = ({
|
|
|
2980
3323
|
});
|
|
2981
3324
|
}, [dropdownPortalElement]);
|
|
2982
3325
|
useEffect(() => {
|
|
2983
|
-
if (!fetchSuggestions) return;
|
|
3326
|
+
if (!fetchSuggestions || !inputFocused) return;
|
|
2984
3327
|
if (fetchDelayRef.current) {
|
|
2985
3328
|
clearTimeout(fetchDelayRef.current);
|
|
2986
3329
|
}
|
|
2987
3330
|
const query = inputValue.trim();
|
|
2988
|
-
if (!query) {
|
|
2989
|
-
setSuggestions([]);
|
|
2990
|
-
setIsDropdownOpen(false);
|
|
2991
|
-
setLoading(false);
|
|
2992
|
-
setFetchError(null);
|
|
2993
|
-
return;
|
|
2994
|
-
}
|
|
2995
3331
|
setLoading(true);
|
|
2996
3332
|
setFetchError(null);
|
|
2997
3333
|
setIsDropdownOpen(true);
|
|
@@ -3019,7 +3355,7 @@ var LookupSelect = ({
|
|
|
3019
3355
|
clearTimeout(fetchDelayRef.current);
|
|
3020
3356
|
}
|
|
3021
3357
|
};
|
|
3022
|
-
}, [inputValue, fetchSuggestions, suggestionDebounce, upsertOptionLabels]);
|
|
3358
|
+
}, [inputValue, fetchSuggestions, suggestionDebounce, upsertOptionLabels, inputFocused]);
|
|
3023
3359
|
useEffect(() => {
|
|
3024
3360
|
if (!fetchSuggestions) return;
|
|
3025
3361
|
if (value.length === 0) return;
|
|
@@ -3036,6 +3372,7 @@ var LookupSelect = ({
|
|
|
3036
3372
|
if (containerRef.current?.contains(target)) return;
|
|
3037
3373
|
if (dropdownContentRef.current?.contains(target)) return;
|
|
3038
3374
|
setIsDropdownOpen(false);
|
|
3375
|
+
setInputFocused(false);
|
|
3039
3376
|
};
|
|
3040
3377
|
document.addEventListener("mousedown", handleDocumentClick);
|
|
3041
3378
|
return () => {
|
|
@@ -3057,7 +3394,7 @@ var LookupSelect = ({
|
|
|
3057
3394
|
window.removeEventListener("resize", handleReposition);
|
|
3058
3395
|
window.removeEventListener("scroll", handleReposition, true);
|
|
3059
3396
|
};
|
|
3060
|
-
}, [dropdownPortalElement, isDropdownOpen, updateDropdownPosition]);
|
|
3397
|
+
}, [dropdownPortalElement, isDropdownOpen, updateDropdownPosition, value]);
|
|
3061
3398
|
useEffect(() => {
|
|
3062
3399
|
if (suggestions.length === 0) {
|
|
3063
3400
|
setActiveSuggestionIndex(-1);
|
|
@@ -3112,7 +3449,7 @@ var LookupSelect = ({
|
|
|
3112
3449
|
return /* @__PURE__ */ jsxs(
|
|
3113
3450
|
"span",
|
|
3114
3451
|
{
|
|
3115
|
-
className: "flex items-center gap-1 rounded-lg border border-
|
|
3452
|
+
className: "flex items-center gap-1 rounded-lg border border-sus-secondary-gray-3 bg-sus-secondary-gray-2 px-2 py-1 my-1 text-sm text-inherit max-w-full wrap-break-word",
|
|
3116
3453
|
children: [
|
|
3117
3454
|
/* @__PURE__ */ jsx("span", { className: "whitespace-pre-wrap break-all", children: label }),
|
|
3118
3455
|
/* @__PURE__ */ jsx(
|
|
@@ -3140,9 +3477,7 @@ var LookupSelect = ({
|
|
|
3140
3477
|
onChange: (e) => setInputValue(e.target.value),
|
|
3141
3478
|
onKeyDown: handleKeyDown,
|
|
3142
3479
|
onFocus: () => {
|
|
3143
|
-
|
|
3144
|
-
setIsDropdownOpen(true);
|
|
3145
|
-
}
|
|
3480
|
+
setInputFocused(true);
|
|
3146
3481
|
},
|
|
3147
3482
|
hidden: !multiple && selectedLabel !== void 0,
|
|
3148
3483
|
placeholder: value.length === 0 && resolvedPlaceholder || "",
|
|
@@ -3913,7 +4248,7 @@ var AdvanceSearch = ({
|
|
|
3913
4248
|
defaultValues: {}
|
|
3914
4249
|
});
|
|
3915
4250
|
const { handleSubmit, unregister, resetField, getValues, clearErrors, setError } = form;
|
|
3916
|
-
const [operatorErrors, setOperatorErrors] =
|
|
4251
|
+
const [operatorErrors, setOperatorErrors] = React25__default.useState({});
|
|
3917
4252
|
const clearOperatorError = useCallback(
|
|
3918
4253
|
(rowId) => {
|
|
3919
4254
|
setOperatorErrors((prev) => {
|
|
@@ -4332,14 +4667,14 @@ var useControllableState = ({
|
|
|
4332
4667
|
value
|
|
4333
4668
|
}) => {
|
|
4334
4669
|
const isControlled = typeof value !== "undefined";
|
|
4335
|
-
const [internalValue, setInternalValue] =
|
|
4670
|
+
const [internalValue, setInternalValue] = React25.useState(() => {
|
|
4336
4671
|
return isControlled ? value : defaultValue;
|
|
4337
4672
|
});
|
|
4338
|
-
|
|
4673
|
+
React25.useEffect(() => {
|
|
4339
4674
|
if (!isControlled) return;
|
|
4340
4675
|
setInternalValue(value);
|
|
4341
4676
|
}, [isControlled, value]);
|
|
4342
|
-
const setValue =
|
|
4677
|
+
const setValue = React25.useCallback(
|
|
4343
4678
|
(nextValue) => {
|
|
4344
4679
|
if (isControlled) return;
|
|
4345
4680
|
setInternalValue(nextValue);
|
|
@@ -4456,7 +4791,7 @@ function TableHeader({ className, ...props }) {
|
|
|
4456
4791
|
"thead",
|
|
4457
4792
|
{
|
|
4458
4793
|
"data-slot": "table-header",
|
|
4459
|
-
className: cn("[&_tr]:border-b bg-
|
|
4794
|
+
className: cn("[&_tr]:border-b bg-sus-gray-2", className),
|
|
4460
4795
|
...props
|
|
4461
4796
|
}
|
|
4462
4797
|
);
|
|
@@ -4490,7 +4825,7 @@ function TableHead({ className, ...props }) {
|
|
|
4490
4825
|
{
|
|
4491
4826
|
"data-slot": "table-head",
|
|
4492
4827
|
className: cn(
|
|
4493
|
-
"text-foreground h-9 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [
|
|
4828
|
+
"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",
|
|
4494
4829
|
className
|
|
4495
4830
|
),
|
|
4496
4831
|
...props
|
|
@@ -4503,7 +4838,7 @@ function TableCell({ className, ...props }) {
|
|
|
4503
4838
|
{
|
|
4504
4839
|
"data-slot": "table-cell",
|
|
4505
4840
|
className: cn(
|
|
4506
|
-
"p-2 h-10 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [
|
|
4841
|
+
"p-2 h-10 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 *:[[role=checkbox]]:translate-y-0.5 border-b truncate",
|
|
4507
4842
|
className
|
|
4508
4843
|
),
|
|
4509
4844
|
...props
|
|
@@ -4551,7 +4886,7 @@ var ColumnSeparator = ({ show, className, ...props }) => {
|
|
|
4551
4886
|
}
|
|
4552
4887
|
);
|
|
4553
4888
|
};
|
|
4554
|
-
var ColumnSeparator_default =
|
|
4889
|
+
var ColumnSeparator_default = React25__default.memo(ColumnSeparator);
|
|
4555
4890
|
var StatusContentSlot = ({
|
|
4556
4891
|
content,
|
|
4557
4892
|
icon,
|
|
@@ -4570,7 +4905,7 @@ var StatusContentSlot = ({
|
|
|
4570
4905
|
content
|
|
4571
4906
|
] });
|
|
4572
4907
|
};
|
|
4573
|
-
var StatusContentSlot_default =
|
|
4908
|
+
var StatusContentSlot_default = React25__default.memo(StatusContentSlot);
|
|
4574
4909
|
var stateOptions = [
|
|
4575
4910
|
"columnFilters",
|
|
4576
4911
|
"globalFilter",
|
|
@@ -6094,8 +6429,8 @@ var DISALLOWED_MARKS = ["bold", "italic", "link"];
|
|
|
6094
6429
|
var SUGGESTION_DEBOUNCE = 200;
|
|
6095
6430
|
var DEFAULT_CHIP_CLASS = "outline-1 outline-muted bg-muted/40 text-foreground";
|
|
6096
6431
|
var TokenView = ({ node, editor, getPos }) => {
|
|
6097
|
-
const [isFocused, setIsFocused] =
|
|
6098
|
-
|
|
6432
|
+
const [isFocused, setIsFocused] = React25__default.useState(false);
|
|
6433
|
+
React25__default.useEffect(() => {
|
|
6099
6434
|
const handler = () => {
|
|
6100
6435
|
const { from, to } = editor.state.selection;
|
|
6101
6436
|
const position = getPos();
|
|
@@ -6646,6 +6981,8 @@ __export(ui_exports, {
|
|
|
6646
6981
|
Input: () => Input,
|
|
6647
6982
|
InputPrimitive: () => InputPrimitive,
|
|
6648
6983
|
Label: () => Label2,
|
|
6984
|
+
ListContainer: () => container_default,
|
|
6985
|
+
ListHeader: () => header_default,
|
|
6649
6986
|
MonthPicker: () => MonthPicker,
|
|
6650
6987
|
Popover: () => Popover,
|
|
6651
6988
|
PopoverAnchor: () => PopoverAnchor,
|
|
@@ -6722,6 +7059,76 @@ __export(ui_exports, {
|
|
|
6722
7059
|
useFormField: () => useFormField,
|
|
6723
7060
|
useSidebar: () => useSidebar
|
|
6724
7061
|
});
|
|
7062
|
+
var ListContainer = ({ className, isLeftExpanded, children }) => {
|
|
7063
|
+
return /* @__PURE__ */ jsx(
|
|
7064
|
+
"div",
|
|
7065
|
+
{
|
|
7066
|
+
className: cn(
|
|
7067
|
+
"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",
|
|
7068
|
+
{
|
|
7069
|
+
"w-full": isLeftExpanded,
|
|
7070
|
+
"md:w-full": isLeftExpanded,
|
|
7071
|
+
"w-full lg:w-1/2": !isLeftExpanded
|
|
7072
|
+
},
|
|
7073
|
+
className
|
|
7074
|
+
),
|
|
7075
|
+
style: {
|
|
7076
|
+
position: "relative",
|
|
7077
|
+
transitionProperty: "width, transform",
|
|
7078
|
+
transitionDuration: "300ms"
|
|
7079
|
+
},
|
|
7080
|
+
children
|
|
7081
|
+
}
|
|
7082
|
+
);
|
|
7083
|
+
};
|
|
7084
|
+
var container_default = ListContainer;
|
|
7085
|
+
var ListHeader = ({
|
|
7086
|
+
title,
|
|
7087
|
+
titleIcon,
|
|
7088
|
+
isExpanded = false,
|
|
7089
|
+
bgColor = "bg-[#82B495]",
|
|
7090
|
+
textClassName = "text-white",
|
|
7091
|
+
onSettingClick,
|
|
7092
|
+
onExpandClick,
|
|
7093
|
+
rightActions,
|
|
7094
|
+
className
|
|
7095
|
+
}) => {
|
|
7096
|
+
return /* @__PURE__ */ jsx("div", { "data-testid": "list-header", className: cn("rounded-t-lg px-4 py-2", bgColor, className), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
7097
|
+
/* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2 text-lg", textClassName), children: [
|
|
7098
|
+
titleIcon,
|
|
7099
|
+
title
|
|
7100
|
+
] }),
|
|
7101
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: rightActions ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7102
|
+
onSettingClick && /* @__PURE__ */ jsx(
|
|
7103
|
+
"button",
|
|
7104
|
+
{
|
|
7105
|
+
onClick: onSettingClick,
|
|
7106
|
+
title: "Settings",
|
|
7107
|
+
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
7108
|
+
children: /* @__PURE__ */ jsx(setting_default, { className: "text-white" })
|
|
7109
|
+
}
|
|
7110
|
+
),
|
|
7111
|
+
onSettingClick && onExpandClick && /* @__PURE__ */ jsx("div", { className: cn("h-8 w-px", textClassName.replace("text-", "bg-")) }),
|
|
7112
|
+
onExpandClick && /* @__PURE__ */ jsx(
|
|
7113
|
+
"button",
|
|
7114
|
+
{
|
|
7115
|
+
"data-testid": "list-expand-button",
|
|
7116
|
+
onClick: onExpandClick,
|
|
7117
|
+
title: isExpanded ? "Collapse" : "Expand",
|
|
7118
|
+
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
7119
|
+
children: /* @__PURE__ */ jsx("span", { className: "flex items-center gap-0.5 text-white", children: isExpanded ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7120
|
+
/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
|
|
7121
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4 -ml-2" })
|
|
7122
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7123
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" }),
|
|
7124
|
+
/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4 -ml-2" })
|
|
7125
|
+
] }) })
|
|
7126
|
+
}
|
|
7127
|
+
)
|
|
7128
|
+
] }) })
|
|
7129
|
+
] }) });
|
|
7130
|
+
};
|
|
7131
|
+
var header_default = ListHeader;
|
|
6725
7132
|
function RadioGroupRoot({
|
|
6726
7133
|
children,
|
|
6727
7134
|
...props
|
|
@@ -7215,7 +7622,7 @@ function ToolbarPlugin({
|
|
|
7215
7622
|
isLink: hasLink
|
|
7216
7623
|
}));
|
|
7217
7624
|
}, []);
|
|
7218
|
-
|
|
7625
|
+
React25.useEffect(() => {
|
|
7219
7626
|
return mergeRegister(
|
|
7220
7627
|
editor.registerCommand(
|
|
7221
7628
|
CAN_UNDO_COMMAND,
|
|
@@ -7572,7 +7979,7 @@ function ToolbarPlugin({
|
|
|
7572
7979
|
ToolbarButton,
|
|
7573
7980
|
{
|
|
7574
7981
|
label: "Bulleted list",
|
|
7575
|
-
icon: List
|
|
7982
|
+
icon: List,
|
|
7576
7983
|
onClick: () => applyBlock("bullet"),
|
|
7577
7984
|
active: state.blockType === "bullet",
|
|
7578
7985
|
disabled
|
|
@@ -7801,7 +8208,7 @@ function ControlledValuePlugin({
|
|
|
7801
8208
|
trackAppliedValue
|
|
7802
8209
|
}) {
|
|
7803
8210
|
const [editor] = useLexicalComposerContext();
|
|
7804
|
-
|
|
8211
|
+
React25.useEffect(() => {
|
|
7805
8212
|
if (value == null || trackAppliedValue.current === value) {
|
|
7806
8213
|
return;
|
|
7807
8214
|
}
|
|
@@ -7825,14 +8232,14 @@ function ControlledValuePlugin({
|
|
|
7825
8232
|
}
|
|
7826
8233
|
function EditableStatePlugin({ editable }) {
|
|
7827
8234
|
const [editor] = useLexicalComposerContext();
|
|
7828
|
-
|
|
8235
|
+
React25.useEffect(() => {
|
|
7829
8236
|
editor.setEditable(editable);
|
|
7830
8237
|
}, [editor, editable]);
|
|
7831
8238
|
return null;
|
|
7832
8239
|
}
|
|
7833
8240
|
function ImagesPlugin() {
|
|
7834
8241
|
const [editor] = useLexicalComposerContext();
|
|
7835
|
-
|
|
8242
|
+
React25.useEffect(() => {
|
|
7836
8243
|
return editor.registerCommand(
|
|
7837
8244
|
INSERT_IMAGE_COMMAND,
|
|
7838
8245
|
(payload) => {
|
|
@@ -8113,9 +8520,9 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
8113
8520
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
8114
8521
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
8115
8522
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
8116
|
-
var SidebarContext =
|
|
8523
|
+
var SidebarContext = React25.createContext(null);
|
|
8117
8524
|
function useSidebar() {
|
|
8118
|
-
const context =
|
|
8525
|
+
const context = React25.useContext(SidebarContext);
|
|
8119
8526
|
if (!context) {
|
|
8120
8527
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
8121
8528
|
}
|
|
@@ -8131,10 +8538,10 @@ function SidebarProvider({
|
|
|
8131
8538
|
...props
|
|
8132
8539
|
}) {
|
|
8133
8540
|
const isMobile = useIsMobile();
|
|
8134
|
-
const [openMobile, setOpenMobile] =
|
|
8135
|
-
const [_open, _setOpen] =
|
|
8541
|
+
const [openMobile, setOpenMobile] = React25.useState(false);
|
|
8542
|
+
const [_open, _setOpen] = React25.useState(defaultOpen);
|
|
8136
8543
|
const open = openProp ?? _open;
|
|
8137
|
-
const setOpen =
|
|
8544
|
+
const setOpen = React25.useCallback(
|
|
8138
8545
|
(value) => {
|
|
8139
8546
|
const openState = typeof value === "function" ? value(open) : value;
|
|
8140
8547
|
if (setOpenProp) {
|
|
@@ -8146,10 +8553,10 @@ function SidebarProvider({
|
|
|
8146
8553
|
},
|
|
8147
8554
|
[setOpenProp, open]
|
|
8148
8555
|
);
|
|
8149
|
-
const toggleSidebar =
|
|
8556
|
+
const toggleSidebar = React25.useCallback(() => {
|
|
8150
8557
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
8151
8558
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
8152
|
-
|
|
8559
|
+
React25.useEffect(() => {
|
|
8153
8560
|
const handleKeyDown = (event) => {
|
|
8154
8561
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
8155
8562
|
event.preventDefault();
|
|
@@ -8160,7 +8567,7 @@ function SidebarProvider({
|
|
|
8160
8567
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
8161
8568
|
}, [toggleSidebar]);
|
|
8162
8569
|
const state = open ? "expanded" : "collapsed";
|
|
8163
|
-
const contextValue =
|
|
8570
|
+
const contextValue = React25.useMemo(
|
|
8164
8571
|
() => ({
|
|
8165
8572
|
state,
|
|
8166
8573
|
open,
|
|
@@ -8602,7 +9009,7 @@ function SidebarMenuSkeleton({
|
|
|
8602
9009
|
showIcon = false,
|
|
8603
9010
|
...props
|
|
8604
9011
|
}) {
|
|
8605
|
-
const width =
|
|
9012
|
+
const width = React25.useMemo(() => {
|
|
8606
9013
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
8607
9014
|
}, []);
|
|
8608
9015
|
return /* @__PURE__ */ jsxs(
|
|
@@ -9071,7 +9478,7 @@ function SortableRow({
|
|
|
9071
9478
|
id: value,
|
|
9072
9479
|
disabled: name === "columns.0.id"
|
|
9073
9480
|
});
|
|
9074
|
-
const style =
|
|
9481
|
+
const style = React25.useMemo(
|
|
9075
9482
|
() => ({
|
|
9076
9483
|
transform: CSS.Transform.toString(transform),
|
|
9077
9484
|
transition
|
|
@@ -9473,7 +9880,7 @@ function getCandidateWidths({
|
|
|
9473
9880
|
}
|
|
9474
9881
|
return DEVICE_SIZES;
|
|
9475
9882
|
}
|
|
9476
|
-
var Image2 =
|
|
9883
|
+
var Image2 = React25.forwardRef(function Image3({
|
|
9477
9884
|
src,
|
|
9478
9885
|
alt,
|
|
9479
9886
|
width,
|
|
@@ -9503,34 +9910,34 @@ var Image2 = React26.forwardRef(function Image3({
|
|
|
9503
9910
|
} = imgProps;
|
|
9504
9911
|
const widthNumber = toNumber(width);
|
|
9505
9912
|
const heightNumber = toNumber(height);
|
|
9506
|
-
|
|
9913
|
+
React25.useEffect(() => {
|
|
9507
9914
|
if (!fill && (!widthNumber || !heightNumber)) {
|
|
9508
9915
|
console.warn(
|
|
9509
9916
|
"[Image] When `fill` is false you should provide both `width` and `height` to prevent layout shifts."
|
|
9510
9917
|
);
|
|
9511
9918
|
}
|
|
9512
9919
|
}, [fill, heightNumber, widthNumber]);
|
|
9513
|
-
const candidateWidths =
|
|
9920
|
+
const candidateWidths = React25.useMemo(
|
|
9514
9921
|
() => getCandidateWidths({ width: widthNumber, sizes, fill }),
|
|
9515
9922
|
[fill, sizes, widthNumber]
|
|
9516
9923
|
);
|
|
9517
9924
|
const largestWidth = candidateWidths[candidateWidths.length - 1] ?? widthNumber ?? DEVICE_SIZES[DEVICE_SIZES.length - 1];
|
|
9518
|
-
const computedSrc =
|
|
9925
|
+
const computedSrc = React25.useMemo(() => {
|
|
9519
9926
|
if (unoptimized) {
|
|
9520
9927
|
return src;
|
|
9521
9928
|
}
|
|
9522
9929
|
return loader({ src, width: largestWidth, quality });
|
|
9523
9930
|
}, [largestWidth, loader, quality, src, unoptimized]);
|
|
9524
|
-
const computedSrcSet =
|
|
9931
|
+
const computedSrcSet = React25.useMemo(() => {
|
|
9525
9932
|
if (unoptimized) {
|
|
9526
9933
|
return void 0;
|
|
9527
9934
|
}
|
|
9528
9935
|
return candidateWidths.map((currentWidth) => `${loader({ src, width: currentWidth, quality })} ${currentWidth}w`).join(", ");
|
|
9529
9936
|
}, [candidateWidths, loader, quality, src, unoptimized]);
|
|
9530
9937
|
const sizesValue = sizes ?? (fill ? "100vw" : widthNumber ? `${widthNumber}px` : void 0);
|
|
9531
|
-
const [isLoaded, setIsLoaded] =
|
|
9532
|
-
const internalRef =
|
|
9533
|
-
const setRefs =
|
|
9938
|
+
const [isLoaded, setIsLoaded] = React25.useState(false);
|
|
9939
|
+
const internalRef = React25.useRef(null);
|
|
9940
|
+
const setRefs = React25.useCallback(
|
|
9534
9941
|
(node) => {
|
|
9535
9942
|
internalRef.current = node;
|
|
9536
9943
|
if (!ref) {
|
|
@@ -9544,7 +9951,7 @@ var Image2 = React26.forwardRef(function Image3({
|
|
|
9544
9951
|
},
|
|
9545
9952
|
[ref]
|
|
9546
9953
|
);
|
|
9547
|
-
|
|
9954
|
+
React25.useEffect(() => {
|
|
9548
9955
|
const image = internalRef.current;
|
|
9549
9956
|
if (!image) {
|
|
9550
9957
|
return;
|
|
@@ -9556,7 +9963,7 @@ var Image2 = React26.forwardRef(function Image3({
|
|
|
9556
9963
|
setIsLoaded(false);
|
|
9557
9964
|
}
|
|
9558
9965
|
}, [onLoadingComplete, src]);
|
|
9559
|
-
const handleLoad =
|
|
9966
|
+
const handleLoad = React25.useCallback(
|
|
9560
9967
|
(event) => {
|
|
9561
9968
|
setIsLoaded(true);
|
|
9562
9969
|
onLoadProp?.(event);
|
|
@@ -9568,7 +9975,7 @@ var Image2 = React26.forwardRef(function Image3({
|
|
|
9568
9975
|
const fetchPriority = priority ? "high" : fetchPriorityProp;
|
|
9569
9976
|
const decoding = decodingProp ?? "async";
|
|
9570
9977
|
const resolvedObjectFit = objectFit ?? (fill ? "cover" : void 0);
|
|
9571
|
-
const wrapperStyle =
|
|
9978
|
+
const wrapperStyle = React25.useMemo(
|
|
9572
9979
|
() => ({
|
|
9573
9980
|
position: "relative",
|
|
9574
9981
|
display: fill ? "block" : "inline-block",
|
|
@@ -9578,7 +9985,7 @@ var Image2 = React26.forwardRef(function Image3({
|
|
|
9578
9985
|
}),
|
|
9579
9986
|
[fill, height, width]
|
|
9580
9987
|
);
|
|
9581
|
-
const imageStyle =
|
|
9988
|
+
const imageStyle = React25.useMemo(
|
|
9582
9989
|
() => ({
|
|
9583
9990
|
width: fill ? "100%" : formatDimension(width) ?? void 0,
|
|
9584
9991
|
height: fill ? "100%" : formatDimension(height) ?? void 0,
|
|
@@ -9639,107 +10046,47 @@ var Image2 = React26.forwardRef(function Image3({
|
|
|
9639
10046
|
);
|
|
9640
10047
|
});
|
|
9641
10048
|
Image2.displayName = "Image";
|
|
9642
|
-
var
|
|
9643
|
-
React26.useEffect(() => {
|
|
9644
|
-
if (onTableReady) {
|
|
9645
|
-
onTableReady({ ready: true });
|
|
9646
|
-
}
|
|
9647
|
-
}, [onTableReady]);
|
|
9648
|
-
return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center", children: children ?? "Provide your table implementation here." });
|
|
9649
|
-
};
|
|
9650
|
-
var table_default = ListTable;
|
|
9651
|
-
var ListContainer = ({ className, isLeftExpanded, children }) => {
|
|
9652
|
-
return /* @__PURE__ */ jsx(
|
|
9653
|
-
"div",
|
|
9654
|
-
{
|
|
9655
|
-
className: cn(
|
|
9656
|
-
"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",
|
|
9657
|
-
{
|
|
9658
|
-
"w-full": isLeftExpanded,
|
|
9659
|
-
"md:w-full": isLeftExpanded,
|
|
9660
|
-
"w-full lg:w-1/2": !isLeftExpanded
|
|
9661
|
-
},
|
|
9662
|
-
className
|
|
9663
|
-
),
|
|
9664
|
-
style: {
|
|
9665
|
-
position: "relative",
|
|
9666
|
-
transitionProperty: "width, transform",
|
|
9667
|
-
transitionDuration: "300ms"
|
|
9668
|
-
},
|
|
9669
|
-
children
|
|
9670
|
-
}
|
|
9671
|
-
);
|
|
9672
|
-
};
|
|
9673
|
-
var container_default = ListContainer;
|
|
9674
|
-
var ListHeader = ({
|
|
10049
|
+
var MainListContainer = ({
|
|
9675
10050
|
title,
|
|
9676
10051
|
titleIcon,
|
|
9677
|
-
isExpanded =
|
|
9678
|
-
bgColor = "bg-[#82B495]",
|
|
9679
|
-
textClassName = "text-white",
|
|
10052
|
+
isExpanded = true,
|
|
9680
10053
|
onSettingClick,
|
|
9681
10054
|
onExpandClick,
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
/* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2 text-lg", textClassName), children: [
|
|
9687
|
-
titleIcon,
|
|
9688
|
-
title
|
|
9689
|
-
] }),
|
|
9690
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: rightActions ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9691
|
-
onSettingClick && /* @__PURE__ */ jsx(
|
|
9692
|
-
"button",
|
|
9693
|
-
{
|
|
9694
|
-
onClick: onSettingClick,
|
|
9695
|
-
title: "Settings",
|
|
9696
|
-
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
9697
|
-
children: /* @__PURE__ */ jsx(setting_default, { className: "text-white" })
|
|
9698
|
-
}
|
|
9699
|
-
),
|
|
9700
|
-
onSettingClick && onExpandClick && /* @__PURE__ */ jsx("div", { className: cn("h-8 w-px", textClassName.replace("text-", "bg-")) }),
|
|
9701
|
-
onExpandClick && /* @__PURE__ */ jsx(
|
|
9702
|
-
"button",
|
|
9703
|
-
{
|
|
9704
|
-
"data-testid": "list-expand-button",
|
|
9705
|
-
onClick: onExpandClick,
|
|
9706
|
-
title: isExpanded ? "Collapse" : "Expand",
|
|
9707
|
-
className: "rounded p-1 hover:cursor-pointer hover:bg-white/20",
|
|
9708
|
-
children: /* @__PURE__ */ jsx("span", { className: "flex items-center gap-[2px] text-white", children: isExpanded ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9709
|
-
/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }),
|
|
9710
|
-
/* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4 -ml-2" })
|
|
9711
|
-
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9712
|
-
/* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" }),
|
|
9713
|
-
/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4 -ml-2" })
|
|
9714
|
-
] }) })
|
|
9715
|
-
}
|
|
9716
|
-
)
|
|
9717
|
-
] }) })
|
|
9718
|
-
] }) });
|
|
9719
|
-
};
|
|
9720
|
-
var header_default = ListHeader;
|
|
9721
|
-
var List = ({
|
|
9722
|
-
isLeftExpanded,
|
|
9723
|
-
handleSettingClick,
|
|
9724
|
-
handleExpandClick,
|
|
9725
|
-
onTableReady,
|
|
9726
|
-
children
|
|
10055
|
+
children,
|
|
10056
|
+
slots,
|
|
10057
|
+
classNames,
|
|
10058
|
+
renderHeader
|
|
9727
10059
|
}) => {
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
10060
|
+
const Container = slots?.Container ?? container_default;
|
|
10061
|
+
const Header2 = slots?.Header ?? header_default;
|
|
10062
|
+
return /* @__PURE__ */ jsxs(
|
|
10063
|
+
Container,
|
|
10064
|
+
{
|
|
10065
|
+
isLeftExpanded: isExpanded,
|
|
10066
|
+
className: cn("flex flex-col bg-white shadow-lg", classNames?.root),
|
|
10067
|
+
children: [
|
|
10068
|
+
renderHeader ? renderHeader({
|
|
10069
|
+
title,
|
|
10070
|
+
titleIcon,
|
|
10071
|
+
isExpanded,
|
|
10072
|
+
onSettingClick,
|
|
10073
|
+
onExpandClick
|
|
10074
|
+
}) : Header2 ? /* @__PURE__ */ jsx(
|
|
10075
|
+
Header2,
|
|
10076
|
+
{
|
|
10077
|
+
title,
|
|
10078
|
+
titleIcon,
|
|
10079
|
+
isExpanded,
|
|
10080
|
+
onSettingClick,
|
|
10081
|
+
onExpandClick
|
|
10082
|
+
}
|
|
10083
|
+
) : null,
|
|
10084
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex-1 flex flex-col relative min-h-0", classNames?.content), children })
|
|
10085
|
+
]
|
|
10086
|
+
}
|
|
10087
|
+
);
|
|
9741
10088
|
};
|
|
9742
|
-
var
|
|
10089
|
+
var MainListContainer_default = MainListContainer;
|
|
9743
10090
|
var InfoIcon = (props) => {
|
|
9744
10091
|
return /* @__PURE__ */ jsxs(
|
|
9745
10092
|
"svg",
|
|
@@ -9785,7 +10132,7 @@ var InfoIcon = (props) => {
|
|
|
9785
10132
|
}
|
|
9786
10133
|
);
|
|
9787
10134
|
};
|
|
9788
|
-
var InfoIcon_default =
|
|
10135
|
+
var InfoIcon_default = React25__default.memo(InfoIcon);
|
|
9789
10136
|
var Navbar = ({
|
|
9790
10137
|
className,
|
|
9791
10138
|
title,
|
|
@@ -9917,7 +10264,7 @@ var Navbar = ({
|
|
|
9917
10264
|
}
|
|
9918
10265
|
);
|
|
9919
10266
|
};
|
|
9920
|
-
var navbar_default =
|
|
10267
|
+
var navbar_default = React25__default.memo(Navbar);
|
|
9921
10268
|
var usePreventPageLeaveStore = create((set) => ({
|
|
9922
10269
|
isPreventing: false,
|
|
9923
10270
|
setPreventing: (value) => set({ isPreventing: value })
|
|
@@ -9950,6 +10297,71 @@ var usePreventPageLeave = ({ isPrevening }) => {
|
|
|
9950
10297
|
}, [isPrevening, setPreventing]);
|
|
9951
10298
|
};
|
|
9952
10299
|
var usePreventPageLeave_default = usePreventPageLeave;
|
|
10300
|
+
var DefaultHeader = ({
|
|
10301
|
+
title,
|
|
10302
|
+
subtitle,
|
|
10303
|
+
icon,
|
|
10304
|
+
classNames,
|
|
10305
|
+
rightActions
|
|
10306
|
+
}) => /* @__PURE__ */ jsxs("div", { className: cn("flex items-start justify-between gap-3", classNames?.header), children: [
|
|
10307
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
10308
|
+
icon ? /* @__PURE__ */ jsx(
|
|
10309
|
+
"div",
|
|
10310
|
+
{
|
|
10311
|
+
className: cn(
|
|
10312
|
+
"w-10 h-10 rounded-full bg-sus-green-50 flex items-center justify-center",
|
|
10313
|
+
classNames?.iconWrapper
|
|
10314
|
+
),
|
|
10315
|
+
children: icon
|
|
10316
|
+
}
|
|
10317
|
+
) : null,
|
|
10318
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
10319
|
+
subtitle ? /* @__PURE__ */ jsx("span", { className: cn("text-xs text-gray-500", classNames?.subtitle), children: subtitle }) : null,
|
|
10320
|
+
title ? /* @__PURE__ */ jsx("span", { className: cn("text-lg font-semibold text-sus-green-1", classNames?.title), children: title }) : null
|
|
10321
|
+
] })
|
|
10322
|
+
] }),
|
|
10323
|
+
rightActions ? /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: rightActions }) : null
|
|
10324
|
+
] });
|
|
10325
|
+
var RightPanelContainer = ({
|
|
10326
|
+
title,
|
|
10327
|
+
subtitle,
|
|
10328
|
+
icon,
|
|
10329
|
+
rightActions,
|
|
10330
|
+
children,
|
|
10331
|
+
isExpanded = false,
|
|
10332
|
+
className,
|
|
10333
|
+
classNames,
|
|
10334
|
+
slots,
|
|
10335
|
+
renderHeader
|
|
10336
|
+
}) => {
|
|
10337
|
+
const Container = slots?.Container ?? container_default;
|
|
10338
|
+
const Header2 = slots?.Header ?? DefaultHeader;
|
|
10339
|
+
return /* @__PURE__ */ jsx(
|
|
10340
|
+
Container,
|
|
10341
|
+
{
|
|
10342
|
+
isLeftExpanded: isExpanded,
|
|
10343
|
+
className: cn(
|
|
10344
|
+
"flex flex-col bg-white border border-slate-300 min-w-full",
|
|
10345
|
+
className,
|
|
10346
|
+
classNames?.root
|
|
10347
|
+
),
|
|
10348
|
+
children: /* @__PURE__ */ jsx("div", { className: cn("flex-1 flex min-h-0 px-4 py-6 justify-center", classNames?.body), children: /* @__PURE__ */ jsxs("div", { className: cn("w-full max-w-3xl overflow-auto", classNames?.content), children: [
|
|
10349
|
+
renderHeader ? renderHeader({ title, subtitle, icon, rightActions, classNames }) : Header2 ? /* @__PURE__ */ jsx(
|
|
10350
|
+
Header2,
|
|
10351
|
+
{
|
|
10352
|
+
title,
|
|
10353
|
+
subtitle,
|
|
10354
|
+
icon,
|
|
10355
|
+
rightActions,
|
|
10356
|
+
classNames
|
|
10357
|
+
}
|
|
10358
|
+
) : null,
|
|
10359
|
+
children
|
|
10360
|
+
] }) })
|
|
10361
|
+
}
|
|
10362
|
+
);
|
|
10363
|
+
};
|
|
10364
|
+
var RightPanelContainer_default = RightPanelContainer;
|
|
9953
10365
|
|
|
9954
10366
|
// src/components/cropperModal/type.ts
|
|
9955
10367
|
var CropperModalError = class extends Error {
|
|
@@ -10207,7 +10619,7 @@ function isFragment(object) {
|
|
|
10207
10619
|
var isValidText = (val) => ["string", "number"].includes(typeof val);
|
|
10208
10620
|
function toArray(children, option = {}) {
|
|
10209
10621
|
let ret = [];
|
|
10210
|
-
|
|
10622
|
+
React25.Children.forEach(children, (child) => {
|
|
10211
10623
|
if ((child === void 0 || child === null) && !option.keepEmpty) {
|
|
10212
10624
|
return;
|
|
10213
10625
|
}
|
|
@@ -10221,9 +10633,9 @@ function toArray(children, option = {}) {
|
|
|
10221
10633
|
});
|
|
10222
10634
|
return ret;
|
|
10223
10635
|
}
|
|
10224
|
-
var MeasureText =
|
|
10225
|
-
const spanRef =
|
|
10226
|
-
|
|
10636
|
+
var MeasureText = React25.forwardRef(({ style, children }, ref) => {
|
|
10637
|
+
const spanRef = React25.useRef(null);
|
|
10638
|
+
React25.useImperativeHandle(ref, () => ({
|
|
10227
10639
|
isExceed: () => {
|
|
10228
10640
|
const span = spanRef.current;
|
|
10229
10641
|
return span.scrollHeight > span.clientHeight;
|
|
@@ -10281,19 +10693,19 @@ var lineClipStyle = {
|
|
|
10281
10693
|
};
|
|
10282
10694
|
function EllipsisMeasure(props) {
|
|
10283
10695
|
const { enableMeasure, width, text, children, rows, expanded, miscDeps, onEllipsis } = props;
|
|
10284
|
-
const nodeList =
|
|
10285
|
-
const nodeLen =
|
|
10286
|
-
const fullContent =
|
|
10287
|
-
const [ellipsisCutIndex, setEllipsisCutIndex] =
|
|
10288
|
-
const cutMidRef =
|
|
10289
|
-
const measureWhiteSpaceRef =
|
|
10290
|
-
const needEllipsisRef =
|
|
10291
|
-
const descRowsEllipsisRef =
|
|
10292
|
-
const symbolRowEllipsisRef =
|
|
10293
|
-
const [canEllipsis, setCanEllipsis] =
|
|
10294
|
-
const [needEllipsis, setNeedEllipsis] =
|
|
10295
|
-
const [ellipsisHeight, setEllipsisHeight] =
|
|
10296
|
-
const [parentWhiteSpace, setParentWhiteSpace] =
|
|
10696
|
+
const nodeList = React25.useMemo(() => toArray(text), [text]);
|
|
10697
|
+
const nodeLen = React25.useMemo(() => getNodesLen(nodeList), [text]);
|
|
10698
|
+
const fullContent = React25.useMemo(() => children(nodeList, false), [text]);
|
|
10699
|
+
const [ellipsisCutIndex, setEllipsisCutIndex] = React25.useState(null);
|
|
10700
|
+
const cutMidRef = React25.useRef(null);
|
|
10701
|
+
const measureWhiteSpaceRef = React25.useRef(null);
|
|
10702
|
+
const needEllipsisRef = React25.useRef(null);
|
|
10703
|
+
const descRowsEllipsisRef = React25.useRef(null);
|
|
10704
|
+
const symbolRowEllipsisRef = React25.useRef(null);
|
|
10705
|
+
const [canEllipsis, setCanEllipsis] = React25.useState(false);
|
|
10706
|
+
const [needEllipsis, setNeedEllipsis] = React25.useState(STATUS_MEASURE_NONE);
|
|
10707
|
+
const [ellipsisHeight, setEllipsisHeight] = React25.useState(0);
|
|
10708
|
+
const [parentWhiteSpace, setParentWhiteSpace] = React25.useState(null);
|
|
10297
10709
|
useIsomorphicLayoutEffect(() => {
|
|
10298
10710
|
if (enableMeasure && width && nodeLen) {
|
|
10299
10711
|
setNeedEllipsis(STATUS_MEASURE_PREPARE);
|
|
@@ -10336,7 +10748,7 @@ function EllipsisMeasure(props) {
|
|
|
10336
10748
|
setEllipsisCutIndex(isOverflow ? [minIndex, targetMidIndex] : [targetMidIndex, maxIndex]);
|
|
10337
10749
|
}
|
|
10338
10750
|
}, [ellipsisCutIndex, cutMidIndex]);
|
|
10339
|
-
const finalContent =
|
|
10751
|
+
const finalContent = React25.useMemo(() => {
|
|
10340
10752
|
if (!enableMeasure) {
|
|
10341
10753
|
return children(nodeList, false);
|
|
10342
10754
|
}
|
|
@@ -10427,10 +10839,10 @@ var Truncated = ({
|
|
|
10427
10839
|
tooltipProps,
|
|
10428
10840
|
tooltipContentProps
|
|
10429
10841
|
}) => {
|
|
10430
|
-
const elementRef =
|
|
10431
|
-
const [open, setOpen] =
|
|
10432
|
-
const [isTruncated, setIsTruncated] =
|
|
10433
|
-
const [measureWidth, setMeasureWidth] =
|
|
10842
|
+
const elementRef = React25.useRef(null);
|
|
10843
|
+
const [open, setOpen] = React25.useState(false);
|
|
10844
|
+
const [isTruncated, setIsTruncated] = React25.useState(false);
|
|
10845
|
+
const [measureWidth, setMeasureWidth] = React25.useState(0);
|
|
10434
10846
|
const Comp = as;
|
|
10435
10847
|
const normalizedChildren = typeof children === "string" ? children.replace(/>/g, ">\u200B") : children;
|
|
10436
10848
|
const lineClampLines = typeof ellipsis === "number" ? ellipsis : typeof ellipsis === "object" ? ellipsis?.lineClamp ?? 3 : null;
|
|
@@ -10455,13 +10867,13 @@ var Truncated = ({
|
|
|
10455
10867
|
setIsTruncated(false);
|
|
10456
10868
|
}
|
|
10457
10869
|
}, [enableMeasure]);
|
|
10458
|
-
const truncationClass =
|
|
10870
|
+
const truncationClass = React25.useMemo(() => {
|
|
10459
10871
|
if (!ellipsis) return "";
|
|
10460
10872
|
if (typeof ellipsis === "number") return `line-clamp-${ellipsis}`;
|
|
10461
10873
|
if (typeof ellipsis === "object") return `line-clamp-${lineClampLines ?? 3}`;
|
|
10462
10874
|
return "truncate";
|
|
10463
10875
|
}, [ellipsis, lineClampLines]);
|
|
10464
|
-
const clampedStyle =
|
|
10876
|
+
const clampedStyle = React25.useMemo(() => {
|
|
10465
10877
|
if (!lineClampLines) return style;
|
|
10466
10878
|
return {
|
|
10467
10879
|
...style,
|
|
@@ -10523,7 +10935,7 @@ var Truncated = ({
|
|
|
10523
10935
|
);
|
|
10524
10936
|
};
|
|
10525
10937
|
var truncated_default = Truncated;
|
|
10526
|
-
var InputPrimitive2 =
|
|
10938
|
+
var InputPrimitive2 = React25.forwardRef(
|
|
10527
10939
|
({ className, type = "text", ...props }, ref) => {
|
|
10528
10940
|
return /* @__PURE__ */ jsx(
|
|
10529
10941
|
"input",
|
|
@@ -10562,7 +10974,7 @@ var inputVariants2 = cva("", {
|
|
|
10562
10974
|
appearance: "filled"
|
|
10563
10975
|
}
|
|
10564
10976
|
});
|
|
10565
|
-
var Input2 =
|
|
10977
|
+
var Input2 = React25.forwardRef(
|
|
10566
10978
|
({
|
|
10567
10979
|
className,
|
|
10568
10980
|
wrapperClassName,
|
|
@@ -10595,8 +11007,8 @@ var Input2 = React26.forwardRef(
|
|
|
10595
11007
|
onChange: onChangeProp
|
|
10596
11008
|
} = rest;
|
|
10597
11009
|
const ariaInvalid = invalid ?? ariaInvalidProp;
|
|
10598
|
-
const messageId =
|
|
10599
|
-
const handleChange =
|
|
11010
|
+
const messageId = React25.useId();
|
|
11011
|
+
const handleChange = React25.useCallback(
|
|
10600
11012
|
(event) => {
|
|
10601
11013
|
onChangeProp?.(event);
|
|
10602
11014
|
onValueChange?.(event.target.value);
|
|
@@ -10989,13 +11401,13 @@ var useFieldNames = ({
|
|
|
10989
11401
|
fieldNames
|
|
10990
11402
|
}) => {
|
|
10991
11403
|
const { label: labelFieldKey = "label", value: valueFieldKey = "value" } = fieldNames || {};
|
|
10992
|
-
const getLabelField =
|
|
11404
|
+
const getLabelField = React25__default.useCallback(
|
|
10993
11405
|
(option) => {
|
|
10994
11406
|
return option?.[labelFieldKey];
|
|
10995
11407
|
},
|
|
10996
11408
|
[labelFieldKey]
|
|
10997
11409
|
);
|
|
10998
|
-
const getValueField =
|
|
11410
|
+
const getValueField = React25__default.useCallback(
|
|
10999
11411
|
(option) => {
|
|
11000
11412
|
return option?.[valueFieldKey];
|
|
11001
11413
|
},
|
|
@@ -11027,11 +11439,11 @@ var VirtualizedCommand = ({
|
|
|
11027
11439
|
onFocus
|
|
11028
11440
|
}) => {
|
|
11029
11441
|
const { getLabelField, getValueField } = useFieldNames_default({ fieldNames });
|
|
11030
|
-
const internalOptions =
|
|
11031
|
-
const [filteredOptions, setFilteredOptions] =
|
|
11032
|
-
const [focusedIndex, setFocusedIndex] =
|
|
11033
|
-
const [isKeyboardNavActive, setIsKeyboardNavActive] =
|
|
11034
|
-
const parentRef =
|
|
11442
|
+
const internalOptions = React25.useMemo(() => options ?? [], [options]);
|
|
11443
|
+
const [filteredOptions, setFilteredOptions] = React25.useState(internalOptions);
|
|
11444
|
+
const [focusedIndex, setFocusedIndex] = React25.useState(0);
|
|
11445
|
+
const [isKeyboardNavActive, setIsKeyboardNavActive] = React25.useState(false);
|
|
11446
|
+
const parentRef = React25.useRef(null);
|
|
11035
11447
|
const virtualizer = useVirtualizer({
|
|
11036
11448
|
count: filteredOptions.length,
|
|
11037
11449
|
getScrollElement: () => parentRef.current,
|
|
@@ -11039,14 +11451,14 @@ var VirtualizedCommand = ({
|
|
|
11039
11451
|
overscan: 2
|
|
11040
11452
|
});
|
|
11041
11453
|
const virtualOptions = virtualizer.getVirtualItems();
|
|
11042
|
-
const dynamicHeight =
|
|
11454
|
+
const dynamicHeight = React25.useMemo(() => {
|
|
11043
11455
|
const contentHeight = filteredOptions.length * ROW_HEIGHT;
|
|
11044
11456
|
if (contentHeight <= 0) {
|
|
11045
11457
|
return MIN_HEIGHT_EMPTY;
|
|
11046
11458
|
}
|
|
11047
11459
|
return Math.max(ROW_HEIGHT, Math.min(height, contentHeight));
|
|
11048
11460
|
}, [filteredOptions.length, height]);
|
|
11049
|
-
const scrollToIndex =
|
|
11461
|
+
const scrollToIndex = React25.useCallback(
|
|
11050
11462
|
(index) => {
|
|
11051
11463
|
virtualizer.scrollToIndex(index, {
|
|
11052
11464
|
align: "center"
|
|
@@ -11054,7 +11466,7 @@ var VirtualizedCommand = ({
|
|
|
11054
11466
|
},
|
|
11055
11467
|
[virtualizer]
|
|
11056
11468
|
);
|
|
11057
|
-
const handleSearch =
|
|
11469
|
+
const handleSearch = React25.useCallback(
|
|
11058
11470
|
(search) => {
|
|
11059
11471
|
setIsKeyboardNavActive(false);
|
|
11060
11472
|
setFilteredOptions(
|
|
@@ -11069,7 +11481,7 @@ var VirtualizedCommand = ({
|
|
|
11069
11481
|
},
|
|
11070
11482
|
[filterOption, getLabelField, internalOptions]
|
|
11071
11483
|
);
|
|
11072
|
-
const handleKeyDown =
|
|
11484
|
+
const handleKeyDown = React25.useCallback(
|
|
11073
11485
|
(event) => {
|
|
11074
11486
|
switch (event.key) {
|
|
11075
11487
|
case "ArrowDown": {
|
|
@@ -11104,7 +11516,7 @@ var VirtualizedCommand = ({
|
|
|
11104
11516
|
},
|
|
11105
11517
|
[filteredOptions, focusedIndex, getValueField, onSelect, scrollToIndex]
|
|
11106
11518
|
);
|
|
11107
|
-
|
|
11519
|
+
React25.useEffect(() => {
|
|
11108
11520
|
if (value) {
|
|
11109
11521
|
const option = filteredOptions.find((option2) => {
|
|
11110
11522
|
const optionValue = getValueField(option2);
|
|
@@ -11231,13 +11643,13 @@ var ComboboxInner = ({
|
|
|
11231
11643
|
defaultValue,
|
|
11232
11644
|
value
|
|
11233
11645
|
});
|
|
11234
|
-
const currentSelectedOption =
|
|
11646
|
+
const currentSelectedOption = React25.useMemo(() => {
|
|
11235
11647
|
return options?.find((option) => {
|
|
11236
11648
|
const optionValue = getValueField(option);
|
|
11237
11649
|
return optionValue === selectedValue;
|
|
11238
11650
|
});
|
|
11239
11651
|
}, [getValueField, options, selectedValue]);
|
|
11240
|
-
const renderValue =
|
|
11652
|
+
const renderValue = React25.useMemo(() => {
|
|
11241
11653
|
if (!selectedValue) return placeholder2;
|
|
11242
11654
|
if (currentSelectedOption) {
|
|
11243
11655
|
return getLabelField(currentSelectedOption);
|
|
@@ -11247,7 +11659,7 @@ var ComboboxInner = ({
|
|
|
11247
11659
|
}
|
|
11248
11660
|
return null;
|
|
11249
11661
|
}, [currentSelectedOption, getLabelField, placeholder2, selectedValue, showValueWhenNoMatch]);
|
|
11250
|
-
const handleSelect =
|
|
11662
|
+
const handleSelect = React25.useCallback(
|
|
11251
11663
|
(selected, option) => {
|
|
11252
11664
|
setSelectedValue(selected);
|
|
11253
11665
|
setOpenPopover(false);
|
|
@@ -11260,7 +11672,7 @@ var ComboboxInner = ({
|
|
|
11260
11672
|
},
|
|
11261
11673
|
[onOpenChange, onSelect, setOpenPopover, setSelectedValue]
|
|
11262
11674
|
);
|
|
11263
|
-
const handleOpenPopover =
|
|
11675
|
+
const handleOpenPopover = React25.useCallback(
|
|
11264
11676
|
(isOpen) => {
|
|
11265
11677
|
if (disabled) return;
|
|
11266
11678
|
setOpenPopover(isOpen);
|
|
@@ -11270,7 +11682,7 @@ var ComboboxInner = ({
|
|
|
11270
11682
|
},
|
|
11271
11683
|
[disabled, onOpenChange, setOpenPopover]
|
|
11272
11684
|
);
|
|
11273
|
-
const handleClear =
|
|
11685
|
+
const handleClear = React25.useCallback(
|
|
11274
11686
|
(event) => {
|
|
11275
11687
|
event.stopPropagation();
|
|
11276
11688
|
setSelectedValue(void 0);
|
|
@@ -11359,7 +11771,7 @@ var ComboboxInner = ({
|
|
|
11359
11771
|
)
|
|
11360
11772
|
] });
|
|
11361
11773
|
};
|
|
11362
|
-
var Combobox =
|
|
11774
|
+
var Combobox = React25.forwardRef(ComboboxInner);
|
|
11363
11775
|
var Combobox_default = Combobox;
|
|
11364
11776
|
var TruncatedMouseEnterDiv = ({
|
|
11365
11777
|
value,
|
|
@@ -11421,6 +11833,6 @@ var TruncatedMouseEnterDiv = ({
|
|
|
11421
11833
|
};
|
|
11422
11834
|
var truncatedMouseEnterDiv_default = TruncatedMouseEnterDiv;
|
|
11423
11835
|
|
|
11424
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionMenu, AdvanceSearch_default as AdvanceSearch, arrow_default as ArrowIcon, AuditFooter, Button, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Combobox_default as Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CropperModal, CropperModalError, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DataTable_default as DataTable, DatePicker2 as DatePicker, Dialog, DialogAlert, DialogAlertProvider, DialogContent, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, filters_default as FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, GridSettingsModal_default as GridSettingsModal, HeaderCell_default as HeaderCell, Image2 as Image, Input, InputNumber_default as InputNumber, Label2 as Label,
|
|
11836
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionMenu, AdvanceSearch_default as AdvanceSearch, arrow_default as ArrowIcon, AuditFooter, Button, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Combobox_default as Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CropperModal, CropperModalError, custom_field_default as CustomFieldIcon, DIALOG_ALERT_I18N_SUBNAMESPACE, DIALOG_ALERT_TEMPLATES, DataTable_default as DataTable, DatePicker2 as DatePicker, decrease_default as DecreaseIcon, Dialog, DialogAlert, DialogAlertProvider, DialogContent, DialogDescription, DialogFooter, DialogTitle, DialogTrigger, ErrorCompression, ErrorCreateCanvas, ErrorGeneratingBlob, ErrorInvalidSVG, ErrorSVGExceedSize, filters_default as FiltersIcon, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormulaEditor, GridSettingsModal_default as GridSettingsModal, HeaderCell_default as HeaderCell, Image2 as Image, information_default as InformationIcon, Input, InputNumber_default as InputNumber, Label2 as Label, LookupSelect, MainListContainer_default as MainListContainer, MonthPicker2 as MonthPicker, navbar_default as Navbar, not_found_default as NotFoundIcon, plus_default as PlusIcon, Popover, PopoverAnchor, PopoverArrow, PopoverContent, PopoverTrigger, PreventPageLeave_default as PreventPageLeave, RadioGroupItem, RadioGroupRoot, RadioLabel, RichText, RightPanelContainer_default as RightPanelContainer, role_default as RoleIcon, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator2 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, calendar_default as SuiCalendarIcon, calendar2_default as SuiCalendarIcon2, check_default as SuiCheckIcon, dots_vertical_default as SuiDotsVerticalIcon, empty_data_default as SuiEmptyDataIcon, expand_default as SuiExpandIcon, filter_default as SuiFilterIcon, setting_default as SuiSettingIcon, triangle_down_default as SuiTriangleDownIcon, warning_default as SuiWarningIcon, Switch, Textarea, Tooltip2 as Tooltip, TooltipArrow, TooltipContent2 as TooltipContent, TooltipProvider2 as TooltipProvider, TooltipTrigger2 as TooltipTrigger, trash_default as TrashIcon, truncated_default as Truncated, truncatedMouseEnterDiv_default as TruncatedMouseEnterDiv, ui_exports as UI, user_alone_default as UserAloneIcon, user_friend_default as UserFriendIcon, user_default as UserIcon, VirtualizedCommand_default as VirtualizedCommand, booleanToSelectValue, buildPrefixMap, buttonVariants, cn, compareAlphanumeric, debounce, defaultOperatorShortcuts, defaultOperators, formatISODate, getDialogAlertControls, inputVariants, isDefined, isEmptyObject, isValidParentheses, mapTokensToOutput, parseFormula, parseFormulaToToken, resetVisibleTableState, selectValueToBoolean, spinnerVariants, splitOperators, stripNullishObject, throttle, tokenizeFormulaString, useControllableState_default as useControllableState, useFormField, useGridSettingsStore_default as useGridSettingsStore, useHover_default as useHover, useIntersectionObserver_default as useIntersectionObserver, useIsomorphicLayoutEffect, useMediaQuery_default as useMediaQuery, usePreventPageLeave_default as usePreventPageLeave, usePreventPageLeaveStore_default as usePreventPageLeaveStore, useScreenSize_default as useScreenSize, useSidebar, useTruncated_default as useTruncated, validateTokenPrefixes };
|
|
11425
11837
|
//# sourceMappingURL=index.mjs.map
|
|
11426
11838
|
//# sourceMappingURL=index.mjs.map
|