@nice2dev/ui-erp 1.1.9 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const he = require("react");
4
+ const be = require("react");
5
5
  const se = {
6
6
  radius: "md",
7
7
  shadow: "md",
@@ -19,7 +19,7 @@ const se = {
19
19
  animation: "normal",
20
20
  density: "normal"
21
21
  };
22
- he.createContext({
22
+ be.createContext({
23
23
  displayStyle: "default",
24
24
  variantConfig: se,
25
25
  setDisplayStyle: () => {
@@ -228,7 +228,7 @@ const er = {
228
228
  md: 20,
229
229
  lg: 24,
230
230
  xl: 32
231
- }, gt = he.createContext({});
231
+ }, gt = be.createContext({});
232
232
  function la({
233
233
  path: e,
234
234
  size: t,
@@ -272,7 +272,7 @@ const Ae = ({
272
272
  title: o,
273
273
  onClick: i
274
274
  }) => {
275
- const { resolver: s } = he.useContext(gt), c = typeof t == "number" ? t : ca[t];
275
+ const { resolver: s } = be.useContext(gt), c = typeof t == "number" ? t : ca[t];
276
276
  if (s) {
277
277
  const d = s(e, c);
278
278
  if (d)
@@ -292,18 +292,18 @@ const Ae = ({
292
292
  }
293
293
  ) : null;
294
294
  };
295
- he.createContext({
295
+ be.createContext({
296
296
  direction: "ltr",
297
297
  isRTL: false,
298
298
  flip: (e) => e,
299
299
  flipStyle: (e, t) => ({ [e]: t })
300
300
  });
301
- he.createContext({
301
+ be.createContext({
302
302
  permissions: {},
303
303
  getAccessMode: () => "full"
304
304
  });
305
- he.createContext(null);
306
- he.createContext(null);
305
+ be.createContext(null);
306
+ be.createContext(null);
307
307
  const Ce = {
308
308
  space1: "4px",
309
309
  space2: "8px",
@@ -342,7 +342,7 @@ const Ce = {
342
342
  lg: "0 10px 15px -3px rgba(0,0,0,0.4)",
343
343
  xl: "0 20px 25px -5px rgba(0,0,0,0.4)"
344
344
  };
345
- function F(e, t, r, a, n) {
345
+ function $(e, t, r, a, n) {
346
346
  return {
347
347
  name: e,
348
348
  darkMode: "light",
@@ -388,7 +388,7 @@ function j(e, t, r, a, n) {
388
388
  transitions: Ne
389
389
  };
390
390
  }
391
- F(
391
+ $(
392
392
  "Slate",
393
393
  {
394
394
  primary: "#64748b",
@@ -402,7 +402,7 @@ F(
402
402
  { primary: "#1e293b", secondary: "#475569", muted: "#94a3b8" },
403
403
  "#cbd5e1"
404
404
  );
405
- F(
405
+ $(
406
406
  "Zinc",
407
407
  {
408
408
  primary: "#71717a",
@@ -416,7 +416,7 @@ F(
416
416
  { primary: "#18181b", secondary: "#3f3f46", muted: "#a1a1aa" },
417
417
  "#d4d4d8"
418
418
  );
419
- F(
419
+ $(
420
420
  "Stone",
421
421
  {
422
422
  primary: "#78716c",
@@ -430,7 +430,7 @@ F(
430
430
  { primary: "#1c1917", secondary: "#44403c", muted: "#a8a29e" },
431
431
  "#d6d3d1"
432
432
  );
433
- F(
433
+ $(
434
434
  "Cool Gray",
435
435
  {
436
436
  primary: "#6b7280",
@@ -444,7 +444,7 @@ F(
444
444
  { primary: "#111827", secondary: "#374151", muted: "#9ca3af" },
445
445
  "#d1d5db"
446
446
  );
447
- F(
447
+ $(
448
448
  "Warm Gray",
449
449
  {
450
450
  primary: "#7c7568",
@@ -458,7 +458,7 @@ F(
458
458
  { primary: "#1f1d19", secondary: "#4a463d", muted: "#a09888" },
459
459
  "#d4d0c8"
460
460
  );
461
- F(
461
+ $(
462
462
  "Silver",
463
463
  {
464
464
  primary: "#94a3b8",
@@ -472,7 +472,7 @@ F(
472
472
  { primary: "#334155", secondary: "#64748b", muted: "#94a3b8" },
473
473
  "#cbd5e1"
474
474
  );
475
- F(
475
+ $(
476
476
  "Charcoal",
477
477
  {
478
478
  primary: "#374151",
@@ -486,7 +486,7 @@ F(
486
486
  { primary: "#111827", secondary: "#374151", muted: "#6b7280" },
487
487
  "#d1d5db"
488
488
  );
489
- F(
489
+ $(
490
490
  "Ivory",
491
491
  {
492
492
  primary: "#92876d",
@@ -500,7 +500,7 @@ F(
500
500
  { primary: "#2b2517", secondary: "#5c5340", muted: "#9c9280" },
501
501
  "#ddd8c4"
502
502
  );
503
- F(
503
+ $(
504
504
  "Rose",
505
505
  {
506
506
  primary: "#e11d48",
@@ -514,7 +514,7 @@ F(
514
514
  { primary: "#4c0519", secondary: "#881337", muted: "#f43f5e" },
515
515
  "#fda4af"
516
516
  );
517
- F(
517
+ $(
518
518
  "Emerald",
519
519
  {
520
520
  primary: "#059669",
@@ -528,7 +528,7 @@ F(
528
528
  { primary: "#064e3b", secondary: "#065f46", muted: "#34d399" },
529
529
  "#6ee7b7"
530
530
  );
531
- F(
531
+ $(
532
532
  "Amber",
533
533
  {
534
534
  primary: "#d97706",
@@ -542,7 +542,7 @@ F(
542
542
  { primary: "#451a03", secondary: "#78350f", muted: "#f59e0b" },
543
543
  "#fcd34d"
544
544
  );
545
- F(
545
+ $(
546
546
  "Violet",
547
547
  {
548
548
  primary: "#7c3aed",
@@ -556,7 +556,7 @@ F(
556
556
  { primary: "#2e1065", secondary: "#4c1d95", muted: "#a78bfa" },
557
557
  "#c4b5fd"
558
558
  );
559
- F(
559
+ $(
560
560
  "Teal",
561
561
  {
562
562
  primary: "#0d9488",
@@ -570,7 +570,7 @@ F(
570
570
  { primary: "#134e4a", secondary: "#115e59", muted: "#2dd4bf" },
571
571
  "#5eead4"
572
572
  );
573
- F(
573
+ $(
574
574
  "Indigo",
575
575
  {
576
576
  primary: "#4f46e5",
@@ -584,7 +584,7 @@ F(
584
584
  { primary: "#1e1b4b", secondary: "#312e81", muted: "#818cf8" },
585
585
  "#a5b4fc"
586
586
  );
587
- F(
587
+ $(
588
588
  "Cyan",
589
589
  {
590
590
  primary: "#0891b2",
@@ -598,7 +598,7 @@ F(
598
598
  { primary: "#164e63", secondary: "#155e75", muted: "#22d3ee" },
599
599
  "#67e8f9"
600
600
  );
601
- F(
601
+ $(
602
602
  "Lime",
603
603
  {
604
604
  primary: "#65a30d",
@@ -612,7 +612,7 @@ F(
612
612
  { primary: "#1a2e05", secondary: "#365314", muted: "#84cc16" },
613
613
  "#bef264"
614
614
  );
615
- F(
615
+ $(
616
616
  "Pink",
617
617
  {
618
618
  primary: "#db2777",
@@ -626,7 +626,7 @@ F(
626
626
  { primary: "#500724", secondary: "#831843", muted: "#f472b6" },
627
627
  "#f9a8d4"
628
628
  );
629
- F(
629
+ $(
630
630
  "Orange",
631
631
  {
632
632
  primary: "#ea580c",
@@ -640,7 +640,7 @@ F(
640
640
  { primary: "#431407", secondary: "#7c2d12", muted: "#fb923c" },
641
641
  "#fdba74"
642
642
  );
643
- F(
643
+ $(
644
644
  "Fuchsia",
645
645
  {
646
646
  primary: "#c026d3",
@@ -654,7 +654,7 @@ F(
654
654
  { primary: "#4a044e", secondary: "#701a75", muted: "#d946ef" },
655
655
  "#e879f9"
656
656
  );
657
- F(
657
+ $(
658
658
  "Sky",
659
659
  {
660
660
  primary: "#0284c7",
@@ -668,7 +668,7 @@ F(
668
668
  { primary: "#0c4a6e", secondary: "#075985", muted: "#38bdf8" },
669
669
  "#7dd3fc"
670
670
  );
671
- F(
671
+ $(
672
672
  "Ruby",
673
673
  {
674
674
  primary: "#be123c",
@@ -682,7 +682,7 @@ F(
682
682
  { primary: "#4c0519", secondary: "#881337", muted: "#fb7185" },
683
683
  "#fda4af"
684
684
  );
685
- F(
685
+ $(
686
686
  "Coral",
687
687
  {
688
688
  primary: "#f97316",
@@ -777,7 +777,8 @@ j(
777
777
  info: "#22d3ee"
778
778
  },
779
779
  { primary: "#030712", secondary: "#111827", tertiary: "#1f2937", hover: "#1f2937" },
780
- { primary: "#e5e7eb", secondary: "#9ca3af", muted: "#4b5563" },
780
+ // indigo-500 is a dark fill: white on it reads better than the dark default of dark themes
781
+ { primary: "#e5e7eb", secondary: "#9ca3af", muted: "#4b5563", onPrimary: "#ffffff" },
781
782
  "#374151"
782
783
  );
783
784
  j(
@@ -836,7 +837,7 @@ j(
836
837
  { primary: "#ecfdf5", secondary: "#6ee7b7", muted: "#047857" },
837
838
  "#047857"
838
839
  );
839
- F(
840
+ $(
840
841
  "Forest",
841
842
  {
842
843
  primary: "#166534",
@@ -850,7 +851,7 @@ F(
850
851
  { primary: "#052e16", secondary: "#166534", muted: "#4ade80" },
851
852
  "#86efac"
852
853
  );
853
- F(
854
+ $(
854
855
  "Ocean",
855
856
  {
856
857
  primary: "#0369a1",
@@ -864,7 +865,7 @@ F(
864
865
  { primary: "#0c4a6e", secondary: "#0369a1", muted: "#38bdf8" },
865
866
  "#7dd3fc"
866
867
  );
867
- F(
868
+ $(
868
869
  "Desert",
869
870
  {
870
871
  primary: "#b45309",
@@ -878,7 +879,7 @@ F(
878
879
  { primary: "#422006", secondary: "#713f12", muted: "#ca8a04" },
879
880
  "#fde047"
880
881
  );
881
- F(
882
+ $(
882
883
  "Sunset",
883
884
  {
884
885
  primary: "#ea580c",
@@ -892,7 +893,7 @@ F(
892
893
  { primary: "#431407", secondary: "#9a3412", muted: "#f97316" },
893
894
  "#fdba74"
894
895
  );
895
- F(
896
+ $(
896
897
  "Aurora",
897
898
  {
898
899
  primary: "#0d9488",
@@ -906,7 +907,7 @@ F(
906
907
  { primary: "#134e4a", secondary: "#115e59", muted: "#2dd4bf" },
907
908
  "#5eead4"
908
909
  );
909
- F(
910
+ $(
910
911
  "Lavender",
911
912
  {
912
913
  primary: "#7e22ce",
@@ -920,7 +921,7 @@ F(
920
921
  { primary: "#3b0764", secondary: "#581c87", muted: "#a855f7" },
921
922
  "#d8b4fe"
922
923
  );
923
- F(
924
+ $(
924
925
  "Autumn",
925
926
  {
926
927
  primary: "#c2410c",
@@ -934,7 +935,7 @@ F(
934
935
  { primary: "#450a0a", secondary: "#7f1d1d", muted: "#f87171" },
935
936
  "#fca5a5"
936
937
  );
937
- F(
938
+ $(
938
939
  "Spring",
939
940
  {
940
941
  primary: "#16a34a",
@@ -948,7 +949,7 @@ F(
948
949
  { primary: "#14532d", secondary: "#166534", muted: "#4ade80" },
949
950
  "#86efac"
950
951
  );
951
- F(
952
+ $(
952
953
  "Arctic",
953
954
  {
954
955
  primary: "#0ea5e9",
@@ -962,7 +963,7 @@ F(
962
963
  { primary: "#0c4a6e", secondary: "#0369a1", muted: "#7dd3fc" },
963
964
  "#bae6fd"
964
965
  );
965
- F(
966
+ $(
966
967
  "Tropical",
967
968
  {
968
969
  primary: "#0d9488",
@@ -976,7 +977,7 @@ F(
976
977
  { primary: "#064e3b", secondary: "#065f46", muted: "#6ee7b7" },
977
978
  "#a7f3d0"
978
979
  );
979
- F(
980
+ $(
980
981
  "Pastel Rose",
981
982
  {
982
983
  primary: "#f472b6",
@@ -990,7 +991,7 @@ F(
990
991
  { primary: "#831843", secondary: "#9d174d", muted: "#f9a8d4" },
991
992
  "#f9a8d4"
992
993
  );
993
- F(
994
+ $(
994
995
  "Pastel Sky",
995
996
  {
996
997
  primary: "#38bdf8",
@@ -1004,7 +1005,7 @@ F(
1004
1005
  { primary: "#075985", secondary: "#0369a1", muted: "#7dd3fc" },
1005
1006
  "#bae6fd"
1006
1007
  );
1007
- F(
1008
+ $(
1008
1009
  "Pastel Mint",
1009
1010
  {
1010
1011
  primary: "#34d399",
@@ -1018,7 +1019,7 @@ F(
1018
1019
  { primary: "#065f46", secondary: "#047857", muted: "#6ee7b7" },
1019
1020
  "#a7f3d0"
1020
1021
  );
1021
- F(
1022
+ $(
1022
1023
  "Pastel Peach",
1023
1024
  {
1024
1025
  primary: "#fb923c",
@@ -1032,7 +1033,7 @@ F(
1032
1033
  { primary: "#7c2d12", secondary: "#9a3412", muted: "#fdba74" },
1033
1034
  "#fed7aa"
1034
1035
  );
1035
- F(
1036
+ $(
1036
1037
  "Pastel Lavender",
1037
1038
  {
1038
1039
  primary: "#a78bfa",
@@ -1046,7 +1047,7 @@ F(
1046
1047
  { primary: "#4c1d95", secondary: "#5b21b6", muted: "#c4b5fd" },
1047
1048
  "#ddd6fe"
1048
1049
  );
1049
- F(
1050
+ $(
1050
1051
  "Pastel Lemon",
1051
1052
  {
1052
1053
  primary: "#facc15",
@@ -1060,7 +1061,7 @@ F(
1060
1061
  { primary: "#713f12", secondary: "#854d0e", muted: "#fde047" },
1061
1062
  "#fef08a"
1062
1063
  );
1063
- F(
1064
+ $(
1064
1065
  "Pastel Sage",
1065
1066
  {
1066
1067
  primary: "#86efac",
@@ -1074,7 +1075,7 @@ F(
1074
1075
  { primary: "#166534", secondary: "#15803d", muted: "#86efac" },
1075
1076
  "#bbf7d0"
1076
1077
  );
1077
- F(
1078
+ $(
1078
1079
  "Pastel Coral",
1079
1080
  {
1080
1081
  primary: "#fb7185",
@@ -1088,7 +1089,7 @@ F(
1088
1089
  { primary: "#881337", secondary: "#9f1239", muted: "#fda4af" },
1089
1090
  "#fecdd3"
1090
1091
  );
1091
- F(
1092
+ $(
1092
1093
  "Banking",
1093
1094
  {
1094
1095
  primary: "#1e3a5f",
@@ -1102,7 +1103,7 @@ F(
1102
1103
  { primary: "#0f172a", secondary: "#334155", muted: "#94a3b8" },
1103
1104
  "#cbd5e1"
1104
1105
  );
1105
- F(
1106
+ $(
1106
1107
  "Healthcare",
1107
1108
  {
1108
1109
  primary: "#0891b2",
@@ -1116,7 +1117,7 @@ F(
1116
1117
  { primary: "#134e4a", secondary: "#1a6b6a", muted: "#80cbc4" },
1117
1118
  "#b2dfdb"
1118
1119
  );
1119
- F(
1120
+ $(
1120
1121
  "Legal",
1121
1122
  {
1122
1123
  primary: "#1e293b",
@@ -1130,7 +1131,7 @@ F(
1130
1131
  { primary: "#0f172a", secondary: "#44403c", muted: "#a8a29e" },
1131
1132
  "#d6d3d1"
1132
1133
  );
1133
- F(
1134
+ $(
1134
1135
  "Tech Startup",
1135
1136
  {
1136
1137
  primary: "#7c3aed",
@@ -1144,7 +1145,7 @@ F(
1144
1145
  { primary: "#1e1b4b", secondary: "#4c1d95", muted: "#a78bfa" },
1145
1146
  "#c4b5fd"
1146
1147
  );
1147
- F(
1148
+ $(
1148
1149
  "Enterprise",
1149
1150
  {
1150
1151
  primary: "#1e40af",
@@ -1158,7 +1159,7 @@ F(
1158
1159
  { primary: "#1e3a5f", secondary: "#1e40af", muted: "#60a5fa" },
1159
1160
  "#93c5fd"
1160
1161
  );
1161
- F(
1162
+ $(
1162
1163
  "Government",
1163
1164
  {
1164
1165
  primary: "#1d4ed8",
@@ -1172,7 +1173,7 @@ F(
1172
1173
  { primary: "#0f172a", secondary: "#1e293b", muted: "#64748b" },
1173
1174
  "#cbd5e1"
1174
1175
  );
1175
- F(
1176
+ $(
1176
1177
  "Education",
1177
1178
  {
1178
1179
  primary: "#059669",
@@ -1186,7 +1187,7 @@ F(
1186
1187
  { primary: "#064e3b", secondary: "#065f46", muted: "#6ee7b7" },
1187
1188
  "#a7f3d0"
1188
1189
  );
1189
- F(
1190
+ $(
1190
1191
  "Real Estate",
1191
1192
  {
1192
1193
  primary: "#92400e",
@@ -1200,7 +1201,7 @@ F(
1200
1201
  { primary: "#422006", secondary: "#713f12", muted: "#d97706" },
1201
1202
  "#fcd34d"
1202
1203
  );
1203
- F(
1204
+ $(
1204
1205
  "Nord",
1205
1206
  {
1206
1207
  primary: "#5e81ac",
@@ -1228,7 +1229,7 @@ j(
1228
1229
  { primary: "#f8f8f2", secondary: "#c0c0c0", muted: "#6272a4" },
1229
1230
  "#44475a"
1230
1231
  );
1231
- F(
1232
+ $(
1232
1233
  "Solarized Light",
1233
1234
  {
1234
1235
  primary: "#268bd2",
@@ -1253,7 +1254,8 @@ j(
1253
1254
  info: "#2aa198"
1254
1255
  },
1255
1256
  { primary: "#002b36", secondary: "#073642", tertiary: "#0a4858", hover: "#073642" },
1256
- { primary: "#eee8d5", secondary: "#93a1a1", muted: "#586e75" },
1257
+ // Solarized red is a dark fill: white on it is 4.63 : 1, the dark default 3.86
1258
+ { primary: "#eee8d5", secondary: "#93a1a1", muted: "#586e75", onError: "#ffffff" },
1257
1259
  "#073642"
1258
1260
  );
1259
1261
  j(
@@ -1298,7 +1300,7 @@ j(
1298
1300
  { primary: "#f0e4fc", secondary: "#b4a0cc", muted: "#6c5c84" },
1299
1301
  "#4a3866"
1300
1302
  );
1301
- F(
1303
+ $(
1302
1304
  "Vaporwave",
1303
1305
  {
1304
1306
  primary: "#ff71ce",
@@ -1326,7 +1328,7 @@ j(
1326
1328
  { primary: "#00ff41", secondary: "#00cc33", muted: "#008822" },
1327
1329
  "#003300"
1328
1330
  );
1329
- F(
1331
+ $(
1330
1332
  "Sepia",
1331
1333
  {
1332
1334
  primary: "#8b6914",
@@ -1340,7 +1342,7 @@ F(
1340
1342
  { primary: "#3e2723", secondary: "#5d4037", muted: "#a1887f" },
1341
1343
  "#d7ccc8"
1342
1344
  );
1343
- F(
1345
+ $(
1344
1346
  "Vintage",
1345
1347
  {
1346
1348
  primary: "#8d6e63",
@@ -1365,7 +1367,8 @@ j(
1365
1367
  info: "#bf00ff"
1366
1368
  },
1367
1369
  { primary: "#0a0e17", secondary: "#131824", tertiary: "#1c2333", hover: "#1c2333" },
1368
- { primary: "#e0fbfc", secondary: "#80d4dd", muted: "#3a6b72" },
1370
+ // the purple info fill is dark: white on it is 4.51 : 1, the dark default 3.96
1371
+ { primary: "#e0fbfc", secondary: "#80d4dd", muted: "#3a6b72", onInfo: "#ffffff" },
1369
1372
  "#1c3a44"
1370
1373
  );
1371
1374
  j(
@@ -1396,7 +1399,7 @@ j(
1396
1399
  { primary: "#ffe6f7", secondary: "#c9a0c9", muted: "#6b4c7a" },
1397
1400
  "#4a2d66"
1398
1401
  );
1399
- F(
1402
+ $(
1400
1403
  "Christmas",
1401
1404
  {
1402
1405
  primary: "#c41e3a",
@@ -1421,10 +1424,11 @@ j(
1421
1424
  info: "#9333ea"
1422
1425
  },
1423
1426
  { primary: "#1a0a00", secondary: "#2d1500", tertiary: "#402000", hover: "#402000" },
1424
- { primary: "#ffedd5", secondary: "#fdba74", muted: "#9a5c28" },
1427
+ // purple-600 info is a dark fill: white on it is 5.38 : 1, the dark default 3.32
1428
+ { primary: "#ffedd5", secondary: "#fdba74", muted: "#9a5c28", onInfo: "#ffffff" },
1425
1429
  "#5c3400"
1426
1430
  );
1427
- F(
1431
+ $(
1428
1432
  "Valentine",
1429
1433
  {
1430
1434
  primary: "#e11d48",
@@ -1438,7 +1442,7 @@ F(
1438
1442
  { primary: "#4c0519", secondary: "#881337", muted: "#f9a8d4" },
1439
1443
  "#fda4af"
1440
1444
  );
1441
- F(
1445
+ $(
1442
1446
  "Easter",
1443
1447
  {
1444
1448
  primary: "#a78bfa",
@@ -1452,7 +1456,7 @@ F(
1452
1456
  { primary: "#581c87", secondary: "#6d28d9", muted: "#c4b5fd" },
1453
1457
  "#ddd6fe"
1454
1458
  );
1455
- F(
1459
+ $(
1456
1460
  "Summer Beach",
1457
1461
  {
1458
1462
  primary: "#0ea5e9",
@@ -1466,7 +1470,7 @@ F(
1466
1470
  { primary: "#0c4a6e", secondary: "#0369a1", muted: "#7dd3fc" },
1467
1471
  "#fcd34d"
1468
1472
  );
1469
- F(
1473
+ $(
1470
1474
  "Winter Frost",
1471
1475
  {
1472
1476
  primary: "#3b82f6",
@@ -1480,7 +1484,7 @@ F(
1480
1484
  { primary: "#1e3a5f", secondary: "#1e40af", muted: "#93c5fd" },
1481
1485
  "#bfdbfe"
1482
1486
  );
1483
- F(
1487
+ $(
1484
1488
  "Cherry Blossom",
1485
1489
  {
1486
1490
  primary: "#ec4899",
@@ -1494,7 +1498,7 @@ F(
1494
1498
  { primary: "#831843", secondary: "#9d174d", muted: "#f9a8d4" },
1495
1499
  "#fbcfe8"
1496
1500
  );
1497
- F(
1501
+ $(
1498
1502
  "Harvest",
1499
1503
  {
1500
1504
  primary: "#b45309",
@@ -1508,7 +1512,7 @@ F(
1508
1512
  { primary: "#451a03", secondary: "#78350f", muted: "#d97706" },
1509
1513
  "#fcd34d"
1510
1514
  );
1511
- F(
1515
+ $(
1512
1516
  "Japanese Zen",
1513
1517
  {
1514
1518
  primary: "#6b7280",
@@ -1522,7 +1526,7 @@ F(
1522
1526
  { primary: "#2c2c2c", secondary: "#5c5c5c", muted: "#a0998a" },
1523
1527
  "#d5cec0"
1524
1528
  );
1525
- F(
1529
+ $(
1526
1530
  "Moroccan",
1527
1531
  {
1528
1532
  primary: "#c2410c",
@@ -1536,7 +1540,7 @@ F(
1536
1540
  { primary: "#3a1a00", secondary: "#7c2d12", muted: "#d97706" },
1537
1541
  "#f5d0a0"
1538
1542
  );
1539
- F(
1543
+ $(
1540
1544
  "Scandinavian",
1541
1545
  {
1542
1546
  primary: "#4b5563",
@@ -1550,7 +1554,7 @@ F(
1550
1554
  { primary: "#111827", secondary: "#374151", muted: "#9ca3af" },
1551
1555
  "#e5e7eb"
1552
1556
  );
1553
- F(
1557
+ $(
1554
1558
  "Mediterranean",
1555
1559
  {
1556
1560
  primary: "#1e40af",
@@ -1564,7 +1568,7 @@ F(
1564
1568
  { primary: "#1e3a5f", secondary: "#2563eb", muted: "#93c5fd" },
1565
1569
  "#bfdbfe"
1566
1570
  );
1567
- F(
1571
+ $(
1568
1572
  "Chinese New Year",
1569
1573
  {
1570
1574
  primary: "#dc2626",
@@ -1578,7 +1582,7 @@ F(
1578
1582
  { primary: "#450a0a", secondary: "#991b1b", muted: "#f87171" },
1579
1583
  "#fca5a5"
1580
1584
  );
1581
- F(
1585
+ $(
1582
1586
  "Indian Festive",
1583
1587
  {
1584
1588
  primary: "#d97706",
@@ -1592,7 +1596,7 @@ F(
1592
1596
  { primary: "#451a03", secondary: "#92400e", muted: "#f59e0b" },
1593
1597
  "#fcd34d"
1594
1598
  );
1595
- F(
1599
+ $(
1596
1600
  "Brazilian Carnival",
1597
1601
  {
1598
1602
  primary: "#16a34a",
@@ -1606,7 +1610,7 @@ F(
1606
1610
  { primary: "#052e16", secondary: "#166534", muted: "#4ade80" },
1607
1611
  "#86efac"
1608
1612
  );
1609
- F(
1613
+ $(
1610
1614
  "African Earth",
1611
1615
  {
1612
1616
  primary: "#92400e",
@@ -1634,7 +1638,7 @@ j(
1634
1638
  { primary: "#ffffff", secondary: "#ffffff", muted: "#cccccc" },
1635
1639
  "#ffffff"
1636
1640
  );
1637
- F(
1641
+ $(
1638
1642
  "Monochrome",
1639
1643
  {
1640
1644
  primary: "#404040",
@@ -1648,7 +1652,7 @@ F(
1648
1652
  { primary: "#1a1a1a", secondary: "#404040", muted: "#808080" },
1649
1653
  "#c0c0c0"
1650
1654
  );
1651
- F(
1655
+ $(
1652
1656
  "Enhanced Contrast",
1653
1657
  {
1654
1658
  primary: "#0050b3",
@@ -1662,7 +1666,7 @@ F(
1662
1666
  { primary: "#000000", secondary: "#1a1a1a", muted: "#595959" },
1663
1667
  "#8c8c8c"
1664
1668
  );
1665
- F(
1669
+ $(
1666
1670
  "Minimalist",
1667
1671
  {
1668
1672
  primary: "#18181b",
@@ -1704,7 +1708,7 @@ j(
1704
1708
  { primary: "#e8e8f0", secondary: "#a0a0b8", muted: "#5c5c74" },
1705
1709
  "#3e3e58"
1706
1710
  );
1707
- F(
1711
+ $(
1708
1712
  "Coffee",
1709
1713
  {
1710
1714
  primary: "#6f4e37",
@@ -1718,7 +1722,7 @@ F(
1718
1722
  { primary: "#2c1a0e", secondary: "#5c3d28", muted: "#a08868" },
1719
1723
  "#d4c4a8"
1720
1724
  );
1721
- F(
1725
+ $(
1722
1726
  "Wine",
1723
1727
  {
1724
1728
  primary: "#7f1d1d",
@@ -1748,12 +1752,12 @@ function hr(e) {
1748
1752
  function ee(e) {
1749
1753
  return e < 1 ? `${(e * 1e3).toFixed(0)}μs` : e < 1e3 ? `${e.toFixed(2)}ms` : `${(e / 1e3).toFixed(2)}s`;
1750
1754
  }
1751
- function Zo() {
1755
+ function ei() {
1752
1756
  const e = Array.from(te.values()), t = hr(), r = e.reduce((o, i) => o + i.renderCount, 0), a = e.length > 0 ? e.reduce((o, i) => o + i.avgRenderTime, 0) / e.length : 0, n = Array.from(_e.values());
1753
1757
  return { stats: e, slowRenders: t, totalRenders: r, avgRenderTime: a, marks: n };
1754
1758
  }
1755
1759
  function br() {
1756
- const e = Zo();
1760
+ const e = ei();
1757
1761
  console.group(
1758
1762
  "%c[Nice2Dev Performance Report]",
1759
1763
  "color: var(--nice-info, #6366f1); font-weight: bold; font-size: 14px"
@@ -1780,10 +1784,10 @@ function br() {
1780
1784
  }))
1781
1785
  ), console.groupEnd()), console.groupEnd();
1782
1786
  }
1783
- const ri = he.memo(
1787
+ const ai = be.memo(
1784
1788
  ({ position: e = "bottom-right", defaultCollapsed: t = true }) => {
1785
- const [r, a] = he.useState(t), [n, o] = he.useState([]), [i, s] = he.useState({ used: 0, total: 0 });
1786
- if (he.useEffect(() => {
1789
+ const [r, a] = be.useState(t), [n, o] = be.useState([]), [i, s] = be.useState({ used: 0, total: 0 });
1790
+ if (be.useEffect(() => {
1787
1791
  const l = () => {
1788
1792
  const u = Array.from(te.values());
1789
1793
  o(u.sort((y, f) => f.totalRenderTime - y.totalRenderTime).slice(0, 10));
@@ -1810,7 +1814,7 @@ const ri = he.memo(
1810
1814
  style: {
1811
1815
  ...c,
1812
1816
  background: "var(--nice-overlay-85, rgba(0, 0, 0, 0.85))",
1813
- color: "var(--nice-text-on-primary, #fff)",
1817
+ color: "var(--nice-color-white, #fff)",
1814
1818
  borderRadius: 8,
1815
1819
  fontSize: 11,
1816
1820
  fontFamily: "Monaco, Consolas, monospace",
@@ -1935,10 +1939,10 @@ const ri = he.memo(
1935
1939
  );
1936
1940
  }
1937
1941
  );
1938
- ri.displayName = "ProfilerOverlay";
1942
+ ai.displayName = "ProfilerOverlay";
1939
1943
  process.env.NODE_ENV === "development";
1940
- he.createContext(null);
1941
- he.createContext({
1944
+ be.createContext(null);
1945
+ be.createContext({
1942
1946
  enabled: true,
1943
1947
  active: false,
1944
1948
  run: () => {
@@ -1975,10 +1979,10 @@ if (typeof document < "u" && !document.getElementById(Dt)) {
1975
1979
  .nice-tutorial-button--md { width: 20px; height: 20px; font-size: 12px; }
1976
1980
  `, document.head.appendChild(e);
1977
1981
  }
1978
- he.createContext(null);
1979
- he.createContext(null);
1980
- he.createContext(null);
1981
- he.createContext(null);
1982
+ be.createContext(null);
1983
+ be.createContext(null);
1984
+ be.createContext(null);
1985
+ be.createContext(null);
1982
1986
  const DEFAULT_VIEW_CONFIG$1 = {
1983
1987
  timeUnit: "day",
1984
1988
  showUtilization: true,
@@ -1994,7 +1998,7 @@ const TIME_INCREMENTS = {
1994
1998
  quarter: 90 * 24 * 60 * 60 * 1e3,
1995
1999
  year: 365 * 24 * 60 * 60 * 1e3
1996
2000
  };
1997
- const NiceResourceAllocation = ({
2001
+ const NiceCapacityPlanner = ({
1998
2002
  resources,
1999
2003
  allocations,
2000
2004
  dateRange,
@@ -2008,15 +2012,15 @@ const NiceResourceAllocation = ({
2008
2012
  }) => {
2009
2013
  var _a2, _b;
2010
2014
  const config = { ...DEFAULT_VIEW_CONFIG$1, ...externalConfig };
2011
- const [selectedAllocation, setSelectedAllocation] = he.useState(null);
2012
- const [hoveredCell, setHoveredCell] = he.useState(null);
2013
- const [timeUnit, setTimeUnit] = he.useState(config.timeUnit);
2014
- const [expandedResources, setExpandedResources] = he.useState(
2015
+ const [selectedAllocation, setSelectedAllocation] = be.useState(null);
2016
+ const [hoveredCell, setHoveredCell] = be.useState(null);
2017
+ const [timeUnit, setTimeUnit] = be.useState(config.timeUnit);
2018
+ const [expandedResources, setExpandedResources] = be.useState(
2015
2019
  new Set(resources.map((r) => r.id))
2016
2020
  );
2017
- const [showAllocationModal, setShowAllocationModal] = he.useState(false);
2018
- const [newAllocation, setNewAllocation] = he.useState({});
2019
- const timePeriods = he.useMemo(() => {
2021
+ const [showAllocationModal, setShowAllocationModal] = be.useState(false);
2022
+ const [newAllocation, setNewAllocation] = be.useState({});
2023
+ const timePeriods = be.useMemo(() => {
2020
2024
  const periods = [];
2021
2025
  const increment = TIME_INCREMENTS[timeUnit];
2022
2026
  let current = new Date(dateRange.start);
@@ -2026,7 +2030,7 @@ const NiceResourceAllocation = ({
2026
2030
  }
2027
2031
  return periods;
2028
2032
  }, [dateRange.start, dateRange.end, timeUnit]);
2029
- const utilizationMap = he.useMemo(() => {
2033
+ const utilizationMap = be.useMemo(() => {
2030
2034
  const map = /* @__PURE__ */ new Map();
2031
2035
  resources.forEach((resource) => {
2032
2036
  const resourceMap = /* @__PURE__ */ new Map();
@@ -2057,7 +2061,7 @@ const NiceResourceAllocation = ({
2057
2061
  });
2058
2062
  return map;
2059
2063
  }, [resources, allocations, timePeriods, timeUnit]);
2060
- const conflicts = he.useMemo(() => {
2064
+ const conflicts = be.useMemo(() => {
2061
2065
  const conflictList = [];
2062
2066
  utilizationMap.forEach((resourceMap, resourceId) => {
2063
2067
  const resource = resources.find((r) => r.id === resourceId);
@@ -2085,7 +2089,7 @@ const NiceResourceAllocation = ({
2085
2089
  });
2086
2090
  return conflictList;
2087
2091
  }, [utilizationMap, allocations, resources, timeUnit]);
2088
- const getCellAllocations = he.useCallback(
2092
+ const getCellAllocations = be.useCallback(
2089
2093
  (resourceId, date) => {
2090
2094
  const periodStart = date.getTime();
2091
2095
  const periodEnd = periodStart + TIME_INCREMENTS[timeUnit];
@@ -2483,21 +2487,21 @@ const NiceInventoryManager = ({
2483
2487
  }) => {
2484
2488
  var _a2, _b;
2485
2489
  const config = { ...DEFAULT_VIEW_CONFIG, ...externalConfig };
2486
- const [filters, setFilters] = he.useState({});
2487
- const [view, setView] = he.useState(config.view);
2488
- const [sortBy, setSortBy] = he.useState(config.sortBy);
2489
- const [sortOrder, setSortOrder] = he.useState(config.sortOrder);
2490
- const [page, setPage] = he.useState(1);
2491
- const [selectedItems, setSelectedItems] = he.useState(/* @__PURE__ */ new Set());
2492
- const [showItemModal, setShowItemModal] = he.useState(false);
2493
- const [showTransactionModal, setShowTransactionModal] = he.useState(false);
2494
- const [editingItem, setEditingItem] = he.useState(null);
2495
- const [newTransaction, setNewTransaction] = he.useState({});
2496
- const [activeTab, setActiveTab] = he.useState("inventory");
2497
- const categories = he.useMemo(() => {
2490
+ const [filters, setFilters] = be.useState({});
2491
+ const [view, setView] = be.useState(config.view);
2492
+ const [sortBy, setSortBy] = be.useState(config.sortBy);
2493
+ const [sortOrder, setSortOrder] = be.useState(config.sortOrder);
2494
+ const [page, setPage] = be.useState(1);
2495
+ const [selectedItems, setSelectedItems] = be.useState(/* @__PURE__ */ new Set());
2496
+ const [showItemModal, setShowItemModal] = be.useState(false);
2497
+ const [showTransactionModal, setShowTransactionModal] = be.useState(false);
2498
+ const [editingItem, setEditingItem] = be.useState(null);
2499
+ const [newTransaction, setNewTransaction] = be.useState({});
2500
+ const [activeTab, setActiveTab] = be.useState("inventory");
2501
+ const categories = be.useMemo(() => {
2498
2502
  return Array.from(new Set(items.map((item) => item.category))).sort();
2499
2503
  }, [items]);
2500
- const filteredItems = he.useMemo(() => {
2504
+ const filteredItems = be.useMemo(() => {
2501
2505
  var _a3, _b2;
2502
2506
  let result = [...items];
2503
2507
  if (filters.searchQuery) {
@@ -2542,18 +2546,18 @@ const NiceInventoryManager = ({
2542
2546
  });
2543
2547
  return result;
2544
2548
  }, [items, filters, sortBy, sortOrder]);
2545
- const paginatedItems = he.useMemo(() => {
2549
+ const paginatedItems = be.useMemo(() => {
2546
2550
  const start = (page - 1) * config.pageSize;
2547
2551
  return filteredItems.slice(start, start + config.pageSize);
2548
2552
  }, [filteredItems, page, config.pageSize]);
2549
2553
  const totalPages = Math.ceil(filteredItems.length / config.pageSize);
2550
- const reorderItems = he.useMemo(() => {
2554
+ const reorderItems = be.useMemo(() => {
2551
2555
  return items.filter((item) => item.quantity <= item.reorderLevel);
2552
2556
  }, [items]);
2553
- const recentTransactions = he.useMemo(() => {
2557
+ const recentTransactions = be.useMemo(() => {
2554
2558
  return [...transactions].sort((a, b) => b.date.getTime() - a.date.getTime()).slice(0, 50);
2555
2559
  }, [transactions]);
2556
- const kanbanGroups = he.useMemo(() => {
2560
+ const kanbanGroups = be.useMemo(() => {
2557
2561
  if (view !== "kanban") {
2558
2562
  return null;
2559
2563
  }
@@ -3304,7 +3308,7 @@ function fmtDate$1(d, locale) {
3304
3308
  const dt = d instanceof Date ? d : new Date(d);
3305
3309
  return new Intl.DateTimeFormat(locale, { dateStyle: "medium" }).format(dt);
3306
3310
  }
3307
- const NiceInvoiceView = he.forwardRef(
3311
+ const NiceInvoiceView = be.forwardRef(
3308
3312
  function NiceInvoiceView2({
3309
3313
  invoice,
3310
3314
  locale,
@@ -3341,7 +3345,7 @@ const NiceInvoiceView = he.forwardRef(
3341
3345
  vatId: "VAT ID",
3342
3346
  ...labels
3343
3347
  };
3344
- const totals = he.useMemo(() => {
3348
+ const totals = be.useMemo(() => {
3345
3349
  let net = 0;
3346
3350
  let vat = 0;
3347
3351
  const byRate = /* @__PURE__ */ new Map();
@@ -3555,7 +3559,7 @@ function colorFor(occ, colors) {
3555
3559
  }
3556
3560
  return colors.high;
3557
3561
  }
3558
- const NiceWarehouseView = he.forwardRef(
3562
+ const NiceWarehouseView = be.forwardRef(
3559
3563
  function NiceWarehouseView2({
3560
3564
  warehouseName,
3561
3565
  cells,
@@ -3568,8 +3572,8 @@ const NiceWarehouseView = he.forwardRef(
3568
3572
  style,
3569
3573
  id
3570
3574
  }, ref) {
3571
- const [hovered, setHovered] = he.useState(null);
3572
- const grid = he.useMemo(() => {
3575
+ const [hovered, setHovered] = be.useState(null);
3576
+ const grid = be.useMemo(() => {
3573
3577
  const rows = /* @__PURE__ */ new Map();
3574
3578
  for (const c of cells) {
3575
3579
  const rowKey = c.row !== void 0 ? `r${c.row}` : c.location.rack ?? c.location.aisle ?? "0";
@@ -3597,7 +3601,7 @@ const NiceWarehouseView = he.forwardRef(
3597
3601
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nice-warehouse-view__grid", role: "grid", "aria-label": warehouseName, children: grid.map(({ rowKey, cells: row }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nice-warehouse-view__row", role: "row", children: row.map((c, idx) => {
3598
3602
  const key = [c.location.rack, c.location.aisle, c.location.shelf, c.location.bin].filter(Boolean).join("-") || String(idx);
3599
3603
  const aisleBreak = aisleEvery > 0 && idx > 0 && idx % aisleEvery === 0;
3600
- return /* @__PURE__ */ jsxRuntime.jsxs(he.Fragment, { children: [
3604
+ return /* @__PURE__ */ jsxRuntime.jsxs(be.Fragment, { children: [
3601
3605
  aisleBreak && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nice-warehouse-view__aisle", "aria-hidden": true }),
3602
3606
  /* @__PURE__ */ jsxRuntime.jsx(
3603
3607
  "button",
@@ -3671,7 +3675,7 @@ function fmtDate(d, locale) {
3671
3675
  const dt = d instanceof Date ? d : new Date(d);
3672
3676
  return new Intl.DateTimeFormat(locale, { dateStyle: "medium" }).format(dt);
3673
3677
  }
3674
- const NicePurchaseOrder = he.forwardRef(
3678
+ const NicePurchaseOrder = be.forwardRef(
3675
3679
  function NicePurchaseOrder2({
3676
3680
  orders,
3677
3681
  selectable = true,
@@ -3687,7 +3691,7 @@ const NicePurchaseOrder = he.forwardRef(
3687
3691
  id
3688
3692
  }, ref) {
3689
3693
  var _a2;
3690
- const [selectedId, setSelectedId] = he.useState(
3694
+ const [selectedId, setSelectedId] = be.useState(
3691
3695
  initialSelectedId ?? ((_a2 = orders[0]) == null ? void 0 : _a2.id)
3692
3696
  );
3693
3697
  const L = {
@@ -3708,7 +3712,7 @@ const NicePurchaseOrder = he.forwardRef(
3708
3712
  receive: "Receive all",
3709
3713
  ...labels
3710
3714
  };
3711
- const selected = he.useMemo(
3715
+ const selected = be.useMemo(
3712
3716
  () => orders.find((o) => o.id === selectedId),
3713
3717
  [orders, selectedId]
3714
3718
  );
@@ -3830,7 +3834,7 @@ const NicePurchaseOrder = he.forwardRef(
3830
3834
  ] });
3831
3835
  }
3832
3836
  );
3833
- const NiceHRDashboard = he.forwardRef(
3837
+ const NiceHRDashboard = be.forwardRef(
3834
3838
  function NiceHRDashboard2({
3835
3839
  employees,
3836
3840
  labels,
@@ -3851,7 +3855,7 @@ const NiceHRDashboard = he.forwardRef(
3851
3855
  activeEmployees: "Active",
3852
3856
  ...labels
3853
3857
  };
3854
- const stats = he.useMemo(() => {
3858
+ const stats = be.useMemo(() => {
3855
3859
  const active = employees.filter((e) => e.active !== false);
3856
3860
  const fte = active.reduce((s, e) => s + (e.fte ?? 1), 0);
3857
3861
  const vacationAvg = active.length === 0 ? 0 : active.reduce((s, e) => s + (e.vacationBalanceDays ?? 0), 0) / active.length;
@@ -3964,11 +3968,11 @@ const DEFAULT_SEED = {
3964
3968
  };
3965
3969
  function useMockErpApi(options = {}) {
3966
3970
  const { latencyMs = 300, errorRate = 0, seed } = options;
3967
- const [loading, setLoading] = he.useState(true);
3968
- const [error, setError] = he.useState(null);
3969
- const [data, setData] = he.useState(() => ({ ...DEFAULT_SEED, ...seed }));
3970
- const settledRef = he.useRef(false);
3971
- const refresh = he.useCallback(async () => {
3971
+ const [loading, setLoading] = be.useState(true);
3972
+ const [error, setError] = be.useState(null);
3973
+ const [data, setData] = be.useState(() => ({ ...DEFAULT_SEED, ...seed }));
3974
+ const settledRef = be.useRef(false);
3975
+ const refresh = be.useCallback(async () => {
3972
3976
  setLoading(true);
3973
3977
  setError(null);
3974
3978
  await wait(latencyMs);
@@ -3979,14 +3983,14 @@ function useMockErpApi(options = {}) {
3979
3983
  }
3980
3984
  setLoading(false);
3981
3985
  }, [latencyMs, errorRate]);
3982
- he.useEffect(() => {
3986
+ be.useEffect(() => {
3983
3987
  if (settledRef.current) {
3984
3988
  return;
3985
3989
  }
3986
3990
  settledRef.current = true;
3987
3991
  void refresh();
3988
3992
  }, [refresh]);
3989
- const writeWith = he.useCallback(
3993
+ const writeWith = be.useCallback(
3990
3994
  async (key, item) => {
3991
3995
  await wait(latencyMs);
3992
3996
  if (Math.random() < errorRate) {
@@ -4005,7 +4009,7 @@ function useMockErpApi(options = {}) {
4005
4009
  },
4006
4010
  [latencyMs, errorRate]
4007
4011
  );
4008
- return he.useMemo(
4012
+ return be.useMemo(
4009
4013
  () => ({
4010
4014
  loading,
4011
4015
  error,
@@ -4024,7 +4028,7 @@ function useMockErpApi(options = {}) {
4024
4028
  [loading, error, data, refresh, writeWith]
4025
4029
  );
4026
4030
  }
4027
- const NiceVatTable = he.forwardRef(function NiceVatTable2({
4031
+ const NiceVatTable = be.forwardRef(function NiceVatTable2({
4028
4032
  country = "PL",
4029
4033
  rates,
4030
4034
  editable = false,
@@ -4037,7 +4041,7 @@ const NiceVatTable = he.forwardRef(function NiceVatTable2({
4037
4041
  style,
4038
4042
  id
4039
4043
  }, ref) {
4040
- const [internal, setInternal] = he.useState(rates ?? NICE_VAT_PRESETS[country]);
4044
+ const [internal, setInternal] = be.useState(rates ?? NICE_VAT_PRESETS[country]);
4041
4045
  const L = {
4042
4046
  code: "Code",
4043
4047
  rate: "Rate",
@@ -4047,7 +4051,7 @@ const NiceVatTable = he.forwardRef(function NiceVatTable2({
4047
4051
  remove: "Remove",
4048
4052
  ...labels
4049
4053
  };
4050
- const update = he.useCallback(
4054
+ const update = be.useCallback(
4051
4055
  (next) => {
4052
4056
  setInternal(next);
4053
4057
  onChange == null ? void 0 : onChange(next);
@@ -4181,7 +4185,7 @@ function defaultBuildXml(opts) {
4181
4185
  lines.push("</JPK>");
4182
4186
  return lines.join("\n");
4183
4187
  }
4184
- const NiceJpkExporter = he.forwardRef(
4188
+ const NiceJpkExporter = be.forwardRef(
4185
4189
  function NiceJpkExporter2({
4186
4190
  invoices,
4187
4191
  taxpayer,
@@ -4196,11 +4200,11 @@ const NiceJpkExporter = he.forwardRef(
4196
4200
  id
4197
4201
  }, ref) {
4198
4202
  const today = /* @__PURE__ */ new Date();
4199
- const [format, setFormat] = he.useState(defaultFormat);
4200
- const [from, setFrom] = he.useState(
4203
+ const [format, setFormat] = be.useState(defaultFormat);
4204
+ const [from, setFrom] = be.useState(
4201
4205
  isoDate((defaultPeriod == null ? void 0 : defaultPeriod.from) ?? new Date(today.getFullYear(), today.getMonth(), 1))
4202
4206
  );
4203
- const [to, setTo] = he.useState(
4207
+ const [to, setTo] = be.useState(
4204
4208
  isoDate((defaultPeriod == null ? void 0 : defaultPeriod.to) ?? new Date(today.getFullYear(), today.getMonth() + 1, 0))
4205
4209
  );
4206
4210
  const L = {
@@ -4210,7 +4214,7 @@ const NiceJpkExporter = he.forwardRef(
4210
4214
  export: "Export",
4211
4215
  ...labels
4212
4216
  };
4213
- const exportNow = he.useCallback(() => {
4217
+ const exportNow = be.useCallback(() => {
4214
4218
  const opts = {
4215
4219
  format,
4216
4220
  period: { from: new Date(from), to: new Date(to) },
@@ -4265,12 +4269,12 @@ const NiceJpkExporter = he.forwardRef(
4265
4269
  }
4266
4270
  );
4267
4271
  exports.NICE_VAT_PRESETS = NICE_VAT_PRESETS;
4272
+ exports.NiceCapacityPlanner = NiceCapacityPlanner;
4268
4273
  exports.NiceHRDashboard = NiceHRDashboard;
4269
4274
  exports.NiceInventoryManager = NiceInventoryManager;
4270
4275
  exports.NiceInvoiceView = NiceInvoiceView;
4271
4276
  exports.NiceJpkExporter = NiceJpkExporter;
4272
4277
  exports.NicePurchaseOrder = NicePurchaseOrder;
4273
- exports.NiceResourceAllocation = NiceResourceAllocation;
4274
4278
  exports.NiceVatTable = NiceVatTable;
4275
4279
  exports.NiceWarehouseView = NiceWarehouseView;
4276
4280
  exports.buildJpkXml = defaultBuildXml;