@idds/react 1.1.91 → 1.1.93

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.es.js CHANGED
@@ -211,6 +211,7 @@ const inagovColorTokens = {
211
211
  "primary-700": "var(--ina-primary-700)",
212
212
  "primary-800": "var(--ina-primary-800)",
213
213
  "primary-900": "var(--ina-primary-900)",
214
+ "primary-primary": "var(--ina-primary-primary)",
214
215
  // Secondary/Accent colors
215
216
  "accent-100": "var(--ina-accent-100)",
216
217
  "accent-200": "var(--ina-accent-200)",
@@ -236,6 +237,7 @@ const inakuColorTokens = {
236
237
  "primary-700": "var(--ina-primary-700)",
237
238
  "primary-800": "var(--ina-primary-800)",
238
239
  "primary-900": "var(--ina-primary-900)",
240
+ "primary-primary": "var(--ina-primary-primary)",
239
241
  // Secondary/Accent colors
240
242
  "accent-100": "var(--ina-accent-100)",
241
243
  "accent-200": "var(--ina-accent-200)",
@@ -261,6 +263,7 @@ const inapasColorTokens = {
261
263
  "primary-700": "var(--ina-primary-700)",
262
264
  "primary-800": "var(--ina-primary-800)",
263
265
  "primary-900": "var(--ina-primary-900)",
266
+ "primary-primary": "var(--ina-primary-primary)",
264
267
  // Accent colors
265
268
  "accent-100": "var(--ina-accent-100)",
266
269
  "accent-200": "var(--ina-accent-200)",
@@ -284,7 +287,8 @@ const bgnColorTokens = {
284
287
  "primary-600": "var(--ina-primary-600)",
285
288
  "primary-700": "var(--ina-primary-700)",
286
289
  "primary-800": "var(--ina-primary-800)",
287
- "primary-900": "var(--ina-primary-900)"
290
+ "primary-900": "var(--ina-primary-900)",
291
+ "primary-primary": "var(--ina-primary-primary)"
288
292
  };
289
293
  const bknColorTokens = {
290
294
  // Primary shades
@@ -299,6 +303,7 @@ const bknColorTokens = {
299
303
  "primary-700": "var(--ina-primary-700)",
300
304
  "primary-800": "var(--ina-primary-800)",
301
305
  "primary-900": "var(--ina-primary-900)",
306
+ "primary-primary": "var(--ina-primary-primary)",
302
307
  // Secondary shades
303
308
  "secondary-25": "var(--ina-secondary-25)",
304
309
  "secondary-50": "var(--ina-secondary-50)",
@@ -328,6 +333,7 @@ const lanColorTokens = {
328
333
  "primary-700": "var(--ina-primary-700)",
329
334
  "primary-800": "var(--ina-primary-800)",
330
335
  "primary-900": "var(--ina-primary-900)",
336
+ "primary-primary": "var(--ina-primary-primary)",
331
337
  // Secondary shades
332
338
  "secondary-25": "var(--ina-secondary-25)",
333
339
  "secondary-50": "var(--ina-secondary-50)",
@@ -362,6 +368,7 @@ const panrbColorTokens = {
362
368
  "primary-700": "var(--ina-primary-700)",
363
369
  "primary-800": "var(--ina-primary-800)",
364
370
  "primary-900": "var(--ina-primary-900)",
371
+ "primary-primary": "var(--ina-primary-primary)",
365
372
  // Secondary shades
366
373
  "secondary-25": "var(--ina-secondary-25)",
367
374
  "secondary-50": "var(--ina-secondary-50)",
@@ -377,6 +384,33 @@ const panrbColorTokens = {
377
384
  // Accent colors
378
385
  "accent-yellow": "var(--ina-accent-yellow)"
379
386
  };
387
+ const defaultColorTokens = {
388
+ // Primary shades
389
+ "primary-25": "var(--ina-neutral-25)",
390
+ "primary-50": "var(--ina-neutral-50)",
391
+ "primary-100": "var(--ina-neutral-100)",
392
+ "primary-200": "var(--ina-neutral-200)",
393
+ "primary-300": "var(--ina-neutral-300)",
394
+ "primary-400": "var(--ina-neutral-400)",
395
+ "primary-500": "var(--ina-neutral-500)",
396
+ "primary-600": "var(--ina-neutral-600)",
397
+ "primary-700": "var(--ina-neutral-700)",
398
+ "primary-800": "var(--ina-neutral-800)",
399
+ "primary-900": "var(--ina-neutral-900)",
400
+ "primary-primary": "var(--ina-neutral-900)",
401
+ // Secondary shades
402
+ "secondary-25": "#f2f9fd",
403
+ "secondary-50": "#e3f0fb",
404
+ "secondary-100": "#c1e3f6",
405
+ "secondary-200": "#8accef",
406
+ "secondary-300": "#4cb2e4",
407
+ "secondary-400": "#269dd8",
408
+ "secondary-500": "#177ab2",
409
+ "secondary-600": "#146190",
410
+ "secondary-700": "#145378",
411
+ "secondary-800": "#164564",
412
+ "secondary-900": "#0f2d42"
413
+ };
380
414
  function List({
381
415
  children,
382
416
  disablePadding = false,
@@ -776,176 +810,200 @@ const createReactComponent = (type, iconName, iconNamePascal, iconNode) => {
776
810
  * This source code is licensed under the MIT license.
777
811
  * See the LICENSE file in the root directory of this source tree.
778
812
  */
779
- const __iconNode$s = [["path", { "d": "M20 6v12a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2z", "key": "svg-0" }], ["path", { "d": "M10 16h6", "key": "svg-1" }], ["path", { "d": "M13 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "key": "svg-2" }], ["path", { "d": "M4 8h3", "key": "svg-3" }], ["path", { "d": "M4 12h3", "key": "svg-4" }], ["path", { "d": "M4 16h3", "key": "svg-5" }]];
780
- const IconAddressBook = createReactComponent("outline", "address-book", "AddressBook", __iconNode$s);
813
+ const __iconNode$v = [["path", { "d": "M20 6v12a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2z", "key": "svg-0" }], ["path", { "d": "M10 16h6", "key": "svg-1" }], ["path", { "d": "M13 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0", "key": "svg-2" }], ["path", { "d": "M4 8h3", "key": "svg-3" }], ["path", { "d": "M4 12h3", "key": "svg-4" }], ["path", { "d": "M4 16h3", "key": "svg-5" }]];
814
+ const IconAddressBook = createReactComponent("outline", "address-book", "AddressBook", __iconNode$v);
815
+ /**
816
+ * @license @tabler/icons-react v3.35.0 - MIT
817
+ *
818
+ * This source code is licensed under the MIT license.
819
+ * See the LICENSE file in the root directory of this source tree.
820
+ */
821
+ const __iconNode$u = [["path", { "d": "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "key": "svg-0" }], ["path", { "d": "M12 8v4", "key": "svg-1" }], ["path", { "d": "M12 16h.01", "key": "svg-2" }]];
822
+ const IconAlertCircle = createReactComponent("outline", "alert-circle", "AlertCircle", __iconNode$u);
781
823
  /**
782
824
  * @license @tabler/icons-react v3.35.0 - MIT
783
825
  *
784
826
  * This source code is licensed under the MIT license.
785
827
  * See the LICENSE file in the root directory of this source tree.
786
828
  */
787
- const __iconNode$r = [["path", { "d": "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "key": "svg-0" }], ["path", { "d": "M12 8v4", "key": "svg-1" }], ["path", { "d": "M12 16h.01", "key": "svg-2" }]];
788
- const IconAlertCircle = createReactComponent("outline", "alert-circle", "AlertCircle", __iconNode$r);
829
+ const __iconNode$t = [["path", { "d": "M12 9v4", "key": "svg-0" }], ["path", { "d": "M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z", "key": "svg-1" }], ["path", { "d": "M12 16h.01", "key": "svg-2" }]];
830
+ const IconAlertTriangle = createReactComponent("outline", "alert-triangle", "AlertTriangle", __iconNode$t);
789
831
  /**
790
832
  * @license @tabler/icons-react v3.35.0 - MIT
791
833
  *
792
834
  * This source code is licensed under the MIT license.
793
835
  * See the LICENSE file in the root directory of this source tree.
794
836
  */
795
- const __iconNode$q = [["path", { "d": "M12 9v4", "key": "svg-0" }], ["path", { "d": "M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z", "key": "svg-1" }], ["path", { "d": "M12 16h.01", "key": "svg-2" }]];
796
- const IconAlertTriangle = createReactComponent("outline", "alert-triangle", "AlertTriangle", __iconNode$q);
837
+ const __iconNode$s = [["path", { "d": "M12 5l0 14", "key": "svg-0" }], ["path", { "d": "M16 15l-4 4", "key": "svg-1" }], ["path", { "d": "M8 15l4 4", "key": "svg-2" }]];
838
+ const IconArrowNarrowDown = createReactComponent("outline", "arrow-narrow-down", "ArrowNarrowDown", __iconNode$s);
797
839
  /**
798
840
  * @license @tabler/icons-react v3.35.0 - MIT
799
841
  *
800
842
  * This source code is licensed under the MIT license.
801
843
  * See the LICENSE file in the root directory of this source tree.
802
844
  */
803
- const __iconNode$p = [["path", { "d": "M12 5l0 14", "key": "svg-0" }], ["path", { "d": "M16 15l-4 4", "key": "svg-1" }], ["path", { "d": "M8 15l4 4", "key": "svg-2" }]];
804
- const IconArrowNarrowDown = createReactComponent("outline", "arrow-narrow-down", "ArrowNarrowDown", __iconNode$p);
845
+ const __iconNode$r = [["path", { "d": "M12 5l0 14", "key": "svg-0" }], ["path", { "d": "M16 9l-4 -4", "key": "svg-1" }], ["path", { "d": "M8 9l4 -4", "key": "svg-2" }]];
846
+ const IconArrowNarrowUp = createReactComponent("outline", "arrow-narrow-up", "ArrowNarrowUp", __iconNode$r);
805
847
  /**
806
848
  * @license @tabler/icons-react v3.35.0 - MIT
807
849
  *
808
850
  * This source code is licensed under the MIT license.
809
851
  * See the LICENSE file in the root directory of this source tree.
810
852
  */
811
- const __iconNode$o = [["path", { "d": "M12 5l0 14", "key": "svg-0" }], ["path", { "d": "M16 9l-4 -4", "key": "svg-1" }], ["path", { "d": "M8 9l4 -4", "key": "svg-2" }]];
812
- const IconArrowNarrowUp = createReactComponent("outline", "arrow-narrow-up", "ArrowNarrowUp", __iconNode$o);
853
+ const __iconNode$q = [["path", { "d": "M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z", "key": "svg-0" }], ["path", { "d": "M16 3v4", "key": "svg-1" }], ["path", { "d": "M8 3v4", "key": "svg-2" }], ["path", { "d": "M4 11h16", "key": "svg-3" }], ["path", { "d": "M11 15h1", "key": "svg-4" }], ["path", { "d": "M12 15v3", "key": "svg-5" }]];
854
+ const IconCalendar = createReactComponent("outline", "calendar", "Calendar", __iconNode$q);
813
855
  /**
814
856
  * @license @tabler/icons-react v3.35.0 - MIT
815
857
  *
816
858
  * This source code is licensed under the MIT license.
817
859
  * See the LICENSE file in the root directory of this source tree.
818
860
  */
819
- const __iconNode$n = [["path", { "d": "M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z", "key": "svg-0" }], ["path", { "d": "M16 3v4", "key": "svg-1" }], ["path", { "d": "M8 3v4", "key": "svg-2" }], ["path", { "d": "M4 11h16", "key": "svg-3" }], ["path", { "d": "M11 15h1", "key": "svg-4" }], ["path", { "d": "M12 15v3", "key": "svg-5" }]];
820
- const IconCalendar = createReactComponent("outline", "calendar", "Calendar", __iconNode$n);
861
+ const __iconNode$p = [["path", { "d": "M5 12l5 5l10 -10", "key": "svg-0" }]];
862
+ const IconCheck = createReactComponent("outline", "check", "Check", __iconNode$p);
821
863
  /**
822
864
  * @license @tabler/icons-react v3.35.0 - MIT
823
865
  *
824
866
  * This source code is licensed under the MIT license.
825
867
  * See the LICENSE file in the root directory of this source tree.
826
868
  */
827
- const __iconNode$m = [["path", { "d": "M5 12l5 5l10 -10", "key": "svg-0" }]];
828
- const IconCheck = createReactComponent("outline", "check", "Check", __iconNode$m);
869
+ const __iconNode$o = [["path", { "d": "M6 9l6 6l6 -6", "key": "svg-0" }]];
870
+ const IconChevronDown = createReactComponent("outline", "chevron-down", "ChevronDown", __iconNode$o);
829
871
  /**
830
872
  * @license @tabler/icons-react v3.35.0 - MIT
831
873
  *
832
874
  * This source code is licensed under the MIT license.
833
875
  * See the LICENSE file in the root directory of this source tree.
834
876
  */
835
- const __iconNode$l = [["path", { "d": "M6 9l6 6l6 -6", "key": "svg-0" }]];
836
- const IconChevronDown = createReactComponent("outline", "chevron-down", "ChevronDown", __iconNode$l);
877
+ const __iconNode$n = [["path", { "d": "M15 6l-6 6l6 6", "key": "svg-0" }]];
878
+ const IconChevronLeft = createReactComponent("outline", "chevron-left", "ChevronLeft", __iconNode$n);
837
879
  /**
838
880
  * @license @tabler/icons-react v3.35.0 - MIT
839
881
  *
840
882
  * This source code is licensed under the MIT license.
841
883
  * See the LICENSE file in the root directory of this source tree.
842
884
  */
843
- const __iconNode$k = [["path", { "d": "M15 6l-6 6l6 6", "key": "svg-0" }]];
844
- const IconChevronLeft = createReactComponent("outline", "chevron-left", "ChevronLeft", __iconNode$k);
885
+ const __iconNode$m = [["path", { "d": "M9 6l6 6l-6 6", "key": "svg-0" }]];
886
+ const IconChevronRight = createReactComponent("outline", "chevron-right", "ChevronRight", __iconNode$m);
845
887
  /**
846
888
  * @license @tabler/icons-react v3.35.0 - MIT
847
889
  *
848
890
  * This source code is licensed under the MIT license.
849
891
  * See the LICENSE file in the root directory of this source tree.
850
892
  */
851
- const __iconNode$j = [["path", { "d": "M9 6l6 6l-6 6", "key": "svg-0" }]];
852
- const IconChevronRight = createReactComponent("outline", "chevron-right", "ChevronRight", __iconNode$j);
893
+ const __iconNode$l = [["path", { "d": "M6 15l6 -6l6 6", "key": "svg-0" }]];
894
+ const IconChevronUp = createReactComponent("outline", "chevron-up", "ChevronUp", __iconNode$l);
853
895
  /**
854
896
  * @license @tabler/icons-react v3.35.0 - MIT
855
897
  *
856
898
  * This source code is licensed under the MIT license.
857
899
  * See the LICENSE file in the root directory of this source tree.
858
900
  */
859
- const __iconNode$i = [["path", { "d": "M6 15l6 -6l6 6", "key": "svg-0" }]];
860
- const IconChevronUp = createReactComponent("outline", "chevron-up", "ChevronUp", __iconNode$i);
901
+ const __iconNode$k = [["path", { "d": "M11 7l-5 5l5 5", "key": "svg-0" }], ["path", { "d": "M17 7l-5 5l5 5", "key": "svg-1" }]];
902
+ const IconChevronsLeft = createReactComponent("outline", "chevrons-left", "ChevronsLeft", __iconNode$k);
861
903
  /**
862
904
  * @license @tabler/icons-react v3.35.0 - MIT
863
905
  *
864
906
  * This source code is licensed under the MIT license.
865
907
  * See the LICENSE file in the root directory of this source tree.
866
908
  */
867
- const __iconNode$h = [["path", { "d": "M11 7l-5 5l5 5", "key": "svg-0" }], ["path", { "d": "M17 7l-5 5l5 5", "key": "svg-1" }]];
868
- const IconChevronsLeft = createReactComponent("outline", "chevrons-left", "ChevronsLeft", __iconNode$h);
909
+ const __iconNode$j = [["path", { "d": "M7 7l5 5l-5 5", "key": "svg-0" }], ["path", { "d": "M13 7l5 5l-5 5", "key": "svg-1" }]];
910
+ const IconChevronsRight = createReactComponent("outline", "chevrons-right", "ChevronsRight", __iconNode$j);
869
911
  /**
870
912
  * @license @tabler/icons-react v3.35.0 - MIT
871
913
  *
872
914
  * This source code is licensed under the MIT license.
873
915
  * See the LICENSE file in the root directory of this source tree.
874
916
  */
875
- const __iconNode$g = [["path", { "d": "M7 7l5 5l-5 5", "key": "svg-0" }], ["path", { "d": "M13 7l5 5l-5 5", "key": "svg-1" }]];
876
- const IconChevronsRight = createReactComponent("outline", "chevrons-right", "ChevronsRight", __iconNode$g);
917
+ const __iconNode$i = [["path", { "d": "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "key": "svg-0" }], ["path", { "d": "M9 12l2 2l4 -4", "key": "svg-1" }]];
918
+ const IconCircleCheck = createReactComponent("outline", "circle-check", "CircleCheck", __iconNode$i);
877
919
  /**
878
920
  * @license @tabler/icons-react v3.35.0 - MIT
879
921
  *
880
922
  * This source code is licensed under the MIT license.
881
923
  * See the LICENSE file in the root directory of this source tree.
882
924
  */
883
- const __iconNode$f = [["path", { "d": "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", "key": "svg-0" }], ["path", { "d": "M9 12l2 2l4 -4", "key": "svg-1" }]];
884
- const IconCircleCheck = createReactComponent("outline", "circle-check", "CircleCheck", __iconNode$f);
925
+ const __iconNode$h = [["path", { "d": "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "key": "svg-0" }], ["path", { "d": "M12 7v5l3 3", "key": "svg-1" }]];
926
+ const IconClock = createReactComponent("outline", "clock", "Clock", __iconNode$h);
885
927
  /**
886
928
  * @license @tabler/icons-react v3.35.0 - MIT
887
929
  *
888
930
  * This source code is licensed under the MIT license.
889
931
  * See the LICENSE file in the root directory of this source tree.
890
932
  */
891
- const __iconNode$e = [["path", { "d": "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "key": "svg-0" }], ["path", { "d": "M12 7v5l3 3", "key": "svg-1" }]];
892
- const IconClock = createReactComponent("outline", "clock", "Clock", __iconNode$e);
933
+ const __iconNode$g = [["path", { "d": "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-0" }], ["path", { "d": "M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-1" }], ["path", { "d": "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-2" }]];
934
+ const IconDotsVertical = createReactComponent("outline", "dots-vertical", "DotsVertical", __iconNode$g);
893
935
  /**
894
936
  * @license @tabler/icons-react v3.35.0 - MIT
895
937
  *
896
938
  * This source code is licensed under the MIT license.
897
939
  * See the LICENSE file in the root directory of this source tree.
898
940
  */
899
- const __iconNode$d = [["path", { "d": "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-0" }], ["path", { "d": "M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-1" }], ["path", { "d": "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", "key": "svg-2" }]];
900
- const IconDotsVertical = createReactComponent("outline", "dots-vertical", "DotsVertical", __iconNode$d);
941
+ const __iconNode$f = [["path", { "d": "M10.585 10.587a2 2 0 0 0 2.829 2.828", "key": "svg-0" }], ["path", { "d": "M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87", "key": "svg-1" }], ["path", { "d": "M3 3l18 18", "key": "svg-2" }]];
942
+ const IconEyeOff = createReactComponent("outline", "eye-off", "EyeOff", __iconNode$f);
901
943
  /**
902
944
  * @license @tabler/icons-react v3.35.0 - MIT
903
945
  *
904
946
  * This source code is licensed under the MIT license.
905
947
  * See the LICENSE file in the root directory of this source tree.
906
948
  */
907
- const __iconNode$c = [["path", { "d": "M10.585 10.587a2 2 0 0 0 2.829 2.828", "key": "svg-0" }], ["path", { "d": "M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87", "key": "svg-1" }], ["path", { "d": "M3 3l18 18", "key": "svg-2" }]];
908
- const IconEyeOff = createReactComponent("outline", "eye-off", "EyeOff", __iconNode$c);
949
+ const __iconNode$e = [["path", { "d": "M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0", "key": "svg-0" }], ["path", { "d": "M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6", "key": "svg-1" }]];
950
+ const IconEye = createReactComponent("outline", "eye", "Eye", __iconNode$e);
909
951
  /**
910
952
  * @license @tabler/icons-react v3.35.0 - MIT
911
953
  *
912
954
  * This source code is licensed under the MIT license.
913
955
  * See the LICENSE file in the root directory of this source tree.
914
956
  */
915
- const __iconNode$b = [["path", { "d": "M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0", "key": "svg-0" }], ["path", { "d": "M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6", "key": "svg-1" }]];
916
- const IconEye = createReactComponent("outline", "eye", "Eye", __iconNode$b);
957
+ const __iconNode$d = [["path", { "d": "M14 3v4a1 1 0 0 0 1 1h4", "key": "svg-0" }], ["path", { "d": "M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4", "key": "svg-1" }], ["path", { "d": "M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6", "key": "svg-2" }], ["path", { "d": "M17 18h2", "key": "svg-3" }], ["path", { "d": "M20 15h-3v6", "key": "svg-4" }], ["path", { "d": "M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z", "key": "svg-5" }]];
958
+ const IconFileTypePdf = createReactComponent("outline", "file-type-pdf", "FileTypePdf", __iconNode$d);
917
959
  /**
918
960
  * @license @tabler/icons-react v3.35.0 - MIT
919
961
  *
920
962
  * This source code is licensed under the MIT license.
921
963
  * See the LICENSE file in the root directory of this source tree.
922
964
  */
923
- const __iconNode$a = [["path", { "d": "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "key": "svg-0" }], ["path", { "d": "M12 9h.01", "key": "svg-1" }], ["path", { "d": "M11 12h1v4h1", "key": "svg-2" }]];
924
- const IconInfoCircle = createReactComponent("outline", "info-circle", "InfoCircle", __iconNode$a);
965
+ const __iconNode$c = [["path", { "d": "M14 3v4a1 1 0 0 0 1 1h4", "key": "svg-0" }], ["path", { "d": "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z", "key": "svg-1" }]];
966
+ const IconFile = createReactComponent("outline", "file", "File", __iconNode$c);
925
967
  /**
926
968
  * @license @tabler/icons-react v3.35.0 - MIT
927
969
  *
928
970
  * This source code is licensed under the MIT license.
929
971
  * See the LICENSE file in the root directory of this source tree.
930
972
  */
931
- const __iconNode$9 = [["path", { "d": "M12 3a9 9 0 1 0 9 9", "key": "svg-0" }]];
932
- const IconLoader2 = createReactComponent("outline", "loader-2", "Loader2", __iconNode$9);
973
+ const __iconNode$b = [["path", { "d": "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", "key": "svg-0" }], ["path", { "d": "M12 9h.01", "key": "svg-1" }], ["path", { "d": "M11 12h1v4h1", "key": "svg-2" }]];
974
+ const IconInfoCircle = createReactComponent("outline", "info-circle", "InfoCircle", __iconNode$b);
933
975
  /**
934
976
  * @license @tabler/icons-react v3.35.0 - MIT
935
977
  *
936
978
  * This source code is licensed under the MIT license.
937
979
  * See the LICENSE file in the root directory of this source tree.
938
980
  */
939
- const __iconNode$8 = [["path", { "d": "M5 12l14 0", "key": "svg-0" }]];
940
- const IconMinus = createReactComponent("outline", "minus", "Minus", __iconNode$8);
981
+ const __iconNode$a = [["path", { "d": "M12 3a9 9 0 1 0 9 9", "key": "svg-0" }]];
982
+ const IconLoader2 = createReactComponent("outline", "loader-2", "Loader2", __iconNode$a);
941
983
  /**
942
984
  * @license @tabler/icons-react v3.35.0 - MIT
943
985
  *
944
986
  * This source code is licensed under the MIT license.
945
987
  * See the LICENSE file in the root directory of this source tree.
946
988
  */
947
- const __iconNode$7 = [["path", { "d": "M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z", "key": "svg-0" }]];
948
- const IconMoon = createReactComponent("outline", "moon", "Moon", __iconNode$7);
989
+ const __iconNode$9 = [["path", { "d": "M5 12l14 0", "key": "svg-0" }]];
990
+ const IconMinus = createReactComponent("outline", "minus", "Minus", __iconNode$9);
991
+ /**
992
+ * @license @tabler/icons-react v3.35.0 - MIT
993
+ *
994
+ * This source code is licensed under the MIT license.
995
+ * See the LICENSE file in the root directory of this source tree.
996
+ */
997
+ const __iconNode$8 = [["path", { "d": "M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z", "key": "svg-0" }]];
998
+ const IconMoon = createReactComponent("outline", "moon", "Moon", __iconNode$8);
999
+ /**
1000
+ * @license @tabler/icons-react v3.35.0 - MIT
1001
+ *
1002
+ * This source code is licensed under the MIT license.
1003
+ * See the LICENSE file in the root directory of this source tree.
1004
+ */
1005
+ const __iconNode$7 = [["path", { "d": "M15 8h.01", "key": "svg-0" }], ["path", { "d": "M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z", "key": "svg-1" }], ["path", { "d": "M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5", "key": "svg-2" }], ["path", { "d": "M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3", "key": "svg-3" }]];
1006
+ const IconPhoto = createReactComponent("outline", "photo", "Photo", __iconNode$7);
949
1007
  /**
950
1008
  * @license @tabler/icons-react v3.35.0 - MIT
951
1009
  *
@@ -1461,7 +1519,8 @@ function Stepper({
1461
1519
  currentStep,
1462
1520
  orientation = "horizontal",
1463
1521
  className,
1464
- onStepClick
1522
+ onStepClick,
1523
+ errorSteps = []
1465
1524
  }) {
1466
1525
  const isHorizontal = orientation === "horizontal";
1467
1526
  return /* @__PURE__ */ jsx(
@@ -1479,13 +1538,15 @@ function Stepper({
1479
1538
  const isCompleted = index < currentStep;
1480
1539
  const isActive = index === currentStep;
1481
1540
  const isDisabled = step.disabled;
1541
+ const isError = errorSteps.includes(index);
1482
1542
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1483
1543
  /* @__PURE__ */ jsxs(
1484
1544
  "div",
1485
1545
  {
1486
1546
  className: clsx("ina-stepper__item", {
1487
- "ina-stepper__item--completed": isCompleted,
1488
- "ina-stepper__item--active": isActive,
1547
+ "ina-stepper__item--completed": isCompleted && !isError,
1548
+ "ina-stepper__item--active": isActive && !isError,
1549
+ "ina-stepper__item--error": isError,
1489
1550
  "ina-stepper__item--disabled": isDisabled,
1490
1551
  "ina-stepper__item--clickable": onStepClick && !isDisabled
1491
1552
  }),
@@ -1510,8 +1571,7 @@ function Stepper({
1510
1571
  ]
1511
1572
  }
1512
1573
  ) : step.icon || /* @__PURE__ */ jsx("span", { className: "ina-stepper__step-number", children: index + 1 }) }),
1513
- /* @__PURE__ */ jsx("div", { className: "ina-stepper__label", children: step.label }),
1514
- orientation === "vertical" && step.content && /* @__PURE__ */ jsx("div", { className: "ina-stepper__content", children: step.content })
1574
+ /* @__PURE__ */ jsx("div", { className: "ina-stepper__label", children: step.label })
1515
1575
  ]
1516
1576
  }
1517
1577
  ),
@@ -1519,7 +1579,7 @@ function Stepper({
1519
1579
  "div",
1520
1580
  {
1521
1581
  className: clsx("ina-stepper__separator", {
1522
- "ina-stepper__separator--completed": isCompleted
1582
+ "ina-stepper__separator--completed": isCompleted && !isError
1523
1583
  })
1524
1584
  }
1525
1585
  )
@@ -2887,6 +2947,321 @@ function FileUpload({
2887
2947
  ] }, index)) })
2888
2948
  ] });
2889
2949
  }
2950
+ function SingleFileUpload({
2951
+ title = "Unggah File",
2952
+ description = "Description",
2953
+ accept = "",
2954
+ maxSize = 0,
2955
+ allowedExtensions,
2956
+ validateMagicNumber: validateMagicNumber$1 = true,
2957
+ disabled = false,
2958
+ className = "",
2959
+ progress: externalProgress,
2960
+ status: externalStatus,
2961
+ onChange,
2962
+ onRemove
2963
+ }) {
2964
+ const fileInputRef = useRef(null);
2965
+ const [file, setFile] = useState(null);
2966
+ const [internalProgress, setInternalProgress] = useState(0);
2967
+ const [internalStatus, setInternalStatus] = useState("idle");
2968
+ const [isActive, setIsActive] = useState(false);
2969
+ const progress = externalProgress !== void 0 ? externalProgress : internalProgress;
2970
+ const status = externalStatus !== void 0 ? externalStatus : internalStatus;
2971
+ const triggerFileInput = useCallback(() => {
2972
+ var _a;
2973
+ if (disabled || file) return;
2974
+ (_a = fileInputRef.current) == null ? void 0 : _a.click();
2975
+ }, [disabled, file]);
2976
+ const handleFileChange = useCallback(
2977
+ async (event) => {
2978
+ var _a;
2979
+ const selectedFile = (_a = event.target.files) == null ? void 0 : _a[0];
2980
+ if (!selectedFile) return;
2981
+ const sanitizedFileName = sanitizeFileName(selectedFile.name);
2982
+ if (sanitizedFileName !== selectedFile.name) {
2983
+ const errorResult = {
2984
+ isValid: false,
2985
+ error: "Nama file mengandung karakter yang tidak diizinkan",
2986
+ file: selectedFile
2987
+ };
2988
+ setFile(null);
2989
+ setInternalStatus("error");
2990
+ onChange == null ? void 0 : onChange(null, errorResult);
2991
+ if (fileInputRef.current) {
2992
+ fileInputRef.current.value = "";
2993
+ }
2994
+ return;
2995
+ }
2996
+ if (allowedExtensions && allowedExtensions.length > 0) {
2997
+ const fileName = selectedFile.name.toLowerCase();
2998
+ const extension = fileName.substring(fileName.lastIndexOf(".") + 1);
2999
+ if (!allowedExtensions.includes(extension.toLowerCase())) {
3000
+ const errorResult = {
3001
+ isValid: false,
3002
+ error: `Ekstensi file harus: ${allowedExtensions.join(", ")}`,
3003
+ file: selectedFile
3004
+ };
3005
+ setFile(null);
3006
+ setInternalStatus("error");
3007
+ onChange == null ? void 0 : onChange(null, errorResult);
3008
+ if (fileInputRef.current) {
3009
+ fileInputRef.current.value = "";
3010
+ }
3011
+ return;
3012
+ }
3013
+ }
3014
+ const validation = validateFile(selectedFile, {
3015
+ allowedTypes: accept || void 0,
3016
+ maxSize: maxSize || void 0,
3017
+ validateExtension: true
3018
+ });
3019
+ if (!validation.isValid) {
3020
+ setFile(null);
3021
+ setInternalStatus("error");
3022
+ onChange == null ? void 0 : onChange(null, validation);
3023
+ if (fileInputRef.current) {
3024
+ fileInputRef.current.value = "";
3025
+ }
3026
+ return;
3027
+ }
3028
+ if (validateMagicNumber$1 && selectedFile.type) {
3029
+ const magicValidation = await validateMagicNumber(
3030
+ selectedFile,
3031
+ selectedFile.type
3032
+ );
3033
+ if (!magicValidation.isValid) {
3034
+ const errorResult = {
3035
+ isValid: false,
3036
+ error: magicValidation.error || "File signature tidak valid",
3037
+ file: selectedFile
3038
+ };
3039
+ setFile(null);
3040
+ setInternalStatus("error");
3041
+ onChange == null ? void 0 : onChange(null, errorResult);
3042
+ if (fileInputRef.current) {
3043
+ fileInputRef.current.value = "";
3044
+ }
3045
+ return;
3046
+ }
3047
+ }
3048
+ setFile(selectedFile);
3049
+ setInternalStatus("success");
3050
+ onChange == null ? void 0 : onChange(selectedFile, null);
3051
+ if (fileInputRef.current) {
3052
+ fileInputRef.current.value = "";
3053
+ }
3054
+ },
3055
+ [accept, maxSize, allowedExtensions, validateMagicNumber$1, onChange]
3056
+ );
3057
+ const handleRemove = useCallback(() => {
3058
+ setFile(null);
3059
+ setInternalProgress(0);
3060
+ setInternalStatus("idle");
3061
+ setIsActive(false);
3062
+ if (fileInputRef.current) {
3063
+ fileInputRef.current.value = "";
3064
+ }
3065
+ onRemove == null ? void 0 : onRemove();
3066
+ onChange == null ? void 0 : onChange(null, null);
3067
+ }, [onRemove, onChange]);
3068
+ const handleClick = useCallback(() => {
3069
+ if (disabled || file) return;
3070
+ triggerFileInput();
3071
+ }, [disabled, file, triggerFileInput]);
3072
+ const handleFocus = useCallback(() => {
3073
+ if (disabled || file) return;
3074
+ setIsActive(true);
3075
+ }, [disabled, file]);
3076
+ const handleBlur = useCallback(() => {
3077
+ setIsActive(false);
3078
+ }, []);
3079
+ const handleDragOver = useCallback(
3080
+ (e) => {
3081
+ if (disabled || file) return;
3082
+ e.preventDefault();
3083
+ e.stopPropagation();
3084
+ setIsActive(true);
3085
+ },
3086
+ [disabled, file]
3087
+ );
3088
+ const handleDragLeave = useCallback(
3089
+ (e) => {
3090
+ if (disabled || file) return;
3091
+ e.preventDefault();
3092
+ e.stopPropagation();
3093
+ setIsActive(false);
3094
+ },
3095
+ [disabled, file]
3096
+ );
3097
+ const handleDrop = useCallback(
3098
+ async (e) => {
3099
+ if (disabled || file) return;
3100
+ e.preventDefault();
3101
+ e.stopPropagation();
3102
+ setIsActive(false);
3103
+ const droppedFile = e.dataTransfer.files[0];
3104
+ if (!droppedFile) return;
3105
+ const sanitizedFileName = sanitizeFileName(droppedFile.name);
3106
+ if (sanitizedFileName !== droppedFile.name) {
3107
+ const errorResult = {
3108
+ isValid: false,
3109
+ error: "Nama file mengandung karakter yang tidak diizinkan",
3110
+ file: droppedFile
3111
+ };
3112
+ setFile(null);
3113
+ setInternalStatus("error");
3114
+ onChange == null ? void 0 : onChange(null, errorResult);
3115
+ return;
3116
+ }
3117
+ if (allowedExtensions && allowedExtensions.length > 0) {
3118
+ const fileName = droppedFile.name.toLowerCase();
3119
+ const extension = fileName.substring(fileName.lastIndexOf(".") + 1);
3120
+ if (!allowedExtensions.includes(extension.toLowerCase())) {
3121
+ const errorResult = {
3122
+ isValid: false,
3123
+ error: `Ekstensi file harus: ${allowedExtensions.join(", ")}`,
3124
+ file: droppedFile
3125
+ };
3126
+ setFile(null);
3127
+ setInternalStatus("error");
3128
+ onChange == null ? void 0 : onChange(null, errorResult);
3129
+ return;
3130
+ }
3131
+ }
3132
+ const validation = validateFile(droppedFile, {
3133
+ allowedTypes: accept || void 0,
3134
+ maxSize: maxSize || void 0,
3135
+ validateExtension: true
3136
+ });
3137
+ if (!validation.isValid) {
3138
+ setFile(null);
3139
+ setInternalStatus("error");
3140
+ onChange == null ? void 0 : onChange(null, validation);
3141
+ return;
3142
+ }
3143
+ if (validateMagicNumber$1 && droppedFile.type) {
3144
+ const magicValidation = await validateMagicNumber(
3145
+ droppedFile,
3146
+ droppedFile.type
3147
+ );
3148
+ if (!magicValidation.isValid) {
3149
+ const errorResult = {
3150
+ isValid: false,
3151
+ error: magicValidation.error || "File signature tidak valid",
3152
+ file: droppedFile
3153
+ };
3154
+ setFile(null);
3155
+ setInternalStatus("error");
3156
+ onChange == null ? void 0 : onChange(null, errorResult);
3157
+ return;
3158
+ }
3159
+ }
3160
+ setFile(droppedFile);
3161
+ setInternalStatus("success");
3162
+ onChange == null ? void 0 : onChange(droppedFile, null);
3163
+ },
3164
+ [
3165
+ disabled,
3166
+ file,
3167
+ accept,
3168
+ maxSize,
3169
+ allowedExtensions,
3170
+ validateMagicNumber$1,
3171
+ onChange
3172
+ ]
3173
+ );
3174
+ const getFileIcon = () => {
3175
+ if (!file) return null;
3176
+ const fileType = file.type;
3177
+ const fileName = file.name.toLowerCase();
3178
+ if (fileType === "application/pdf" || fileName.endsWith(".pdf")) {
3179
+ return /* @__PURE__ */ jsx(IconFileTypePdf, { size: 16 });
3180
+ }
3181
+ if (fileType.startsWith("image/")) {
3182
+ return /* @__PURE__ */ jsx(IconPhoto, { size: 16 });
3183
+ }
3184
+ return /* @__PURE__ */ jsx(IconFile, { size: 16 });
3185
+ };
3186
+ const containerClasses = clsx("ina-single-file-upload__container", {
3187
+ "ina-single-file-upload__container--active": isActive && !disabled && !file,
3188
+ "ina-single-file-upload__container--disabled": disabled
3189
+ });
3190
+ return /* @__PURE__ */ jsxs("div", { className: clsx("ina-single-file-upload", className), children: [
3191
+ /* @__PURE__ */ jsx(
3192
+ "input",
3193
+ {
3194
+ ref: fileInputRef,
3195
+ type: "file",
3196
+ accept,
3197
+ disabled,
3198
+ className: "ina-single-file-upload__input",
3199
+ onChange: handleFileChange
3200
+ }
3201
+ ),
3202
+ /* @__PURE__ */ jsxs(
3203
+ "div",
3204
+ {
3205
+ className: containerClasses,
3206
+ onClick: handleClick,
3207
+ onFocus: handleFocus,
3208
+ onBlur: handleBlur,
3209
+ onDragOver: handleDragOver,
3210
+ onDragLeave: handleDragLeave,
3211
+ onDrop: handleDrop,
3212
+ tabIndex: disabled || file ? -1 : 0,
3213
+ role: "button",
3214
+ "aria-label": file ? `File: ${file.name}` : "Upload file",
3215
+ children: [
3216
+ !file && status === "idle" && /* @__PURE__ */ jsxs(Fragment, { children: [
3217
+ /* @__PURE__ */ jsx("div", { className: "ina-single-file-upload__icon-wrapper ina-single-file-upload__icon-wrapper--default", children: /* @__PURE__ */ jsx(IconUpload, { size: 24 }) }),
3218
+ /* @__PURE__ */ jsxs("div", { className: "ina-single-file-upload__content", children: [
3219
+ /* @__PURE__ */ jsx("div", { className: "ina-single-file-upload__title", children: title }),
3220
+ /* @__PURE__ */ jsx("div", { className: "ina-single-file-upload__description", children: description })
3221
+ ] })
3222
+ ] }),
3223
+ !file && status === "uploading" && /* @__PURE__ */ jsxs(Fragment, { children: [
3224
+ /* @__PURE__ */ jsx("div", { className: "ina-single-file-upload__icon-wrapper ina-single-file-upload__icon-wrapper--default", children: /* @__PURE__ */ jsx(IconUpload, { size: 24 }) }),
3225
+ /* @__PURE__ */ jsxs("div", { className: "ina-single-file-upload__progress", children: [
3226
+ /* @__PURE__ */ jsx("div", { className: "ina-single-file-upload__progress-bar", children: /* @__PURE__ */ jsx(
3227
+ "div",
3228
+ {
3229
+ className: "ina-single-file-upload__progress-fill",
3230
+ style: { width: `${progress}%` }
3231
+ }
3232
+ ) }),
3233
+ /* @__PURE__ */ jsxs("div", { className: "ina-single-file-upload__progress-text", children: [
3234
+ "Uploading... ",
3235
+ progress,
3236
+ "%"
3237
+ ] })
3238
+ ] })
3239
+ ] }),
3240
+ file && status === "success" && /* @__PURE__ */ jsxs(Fragment, { children: [
3241
+ /* @__PURE__ */ jsx("div", { className: "ina-single-file-upload__icon-wrapper ina-single-file-upload__icon-wrapper--file", children: getFileIcon() }),
3242
+ /* @__PURE__ */ jsxs("div", { className: "ina-single-file-upload__content", children: [
3243
+ /* @__PURE__ */ jsx("div", { className: "ina-single-file-upload__title", children: file.name }),
3244
+ /* @__PURE__ */ jsx("div", { className: "ina-single-file-upload__description", children: description })
3245
+ ] }),
3246
+ /* @__PURE__ */ jsx(
3247
+ "button",
3248
+ {
3249
+ type: "button",
3250
+ className: "ina-single-file-upload__delete-button",
3251
+ onClick: (e) => {
3252
+ e.stopPropagation();
3253
+ handleRemove();
3254
+ },
3255
+ "aria-label": "Remove file",
3256
+ children: /* @__PURE__ */ jsx(IconTrash, { size: 20 })
3257
+ }
3258
+ )
3259
+ ] })
3260
+ ]
3261
+ }
3262
+ )
3263
+ ] });
3264
+ }
2890
3265
  function FieldInputTable({
2891
3266
  value,
2892
3267
  onChange,
@@ -3545,7 +3920,7 @@ function PasswordInput({
3545
3920
  className: clsx(
3546
3921
  "ina-password-input__wrapper",
3547
3922
  `ina-password-input__wrapper--size-${size}`,
3548
- `ina-password-input__wrapper--status-${status}`,
3923
+ status !== "neutral" && `ina-password-input__wrapper--${status}`,
3549
3924
  disabled && "ina-password-input__wrapper--disabled"
3550
3925
  ),
3551
3926
  children: [
@@ -3587,32 +3962,23 @@ function PasswordInput({
3587
3962
  ]
3588
3963
  }
3589
3964
  ),
3590
- bottomText && /* @__PURE__ */ jsxs(
3591
- "div",
3592
- {
3593
- className: clsx(
3594
- "ina-password-input__bottom-area",
3595
- "flex justify-between items-center text-xs"
3596
- ),
3597
- children: [
3598
- /* @__PURE__ */ jsx(
3599
- "div",
3600
- {
3601
- className: clsx(
3602
- "ina-password-input__helper-text",
3603
- `ina-password-input__helper-text--${status}`
3604
- ),
3605
- children: bottomText
3606
- }
3965
+ bottomText && /* @__PURE__ */ jsxs("div", { className: "ina-password-input__status-area", children: [
3966
+ /* @__PURE__ */ jsx(
3967
+ "div",
3968
+ {
3969
+ className: clsx(
3970
+ "ina-password-input__status-message",
3971
+ status !== "neutral" && `ina-password-input__status-message--${status}`
3607
3972
  ),
3608
- showCharCount && maxLength != null && /* @__PURE__ */ jsxs("div", { className: "ina-password-input__char-count", children: [
3609
- inner.length,
3610
- "/",
3611
- maxLength
3612
- ] })
3613
- ]
3614
- }
3615
- )
3973
+ children: bottomText
3974
+ }
3975
+ ),
3976
+ showCharCount && maxLength != null && /* @__PURE__ */ jsxs("div", { className: "ina-password-input__character-count", children: [
3977
+ inner.length,
3978
+ "/",
3979
+ maxLength
3980
+ ] })
3981
+ ] })
3616
3982
  ] });
3617
3983
  }
3618
3984
  function PhoneInput({
@@ -4120,7 +4486,7 @@ function Drawer({
4120
4486
  position = "right",
4121
4487
  closeOnBackdrop = true,
4122
4488
  className = "",
4123
- width = "420px",
4489
+ width = "sm",
4124
4490
  title,
4125
4491
  children
4126
4492
  }) {
@@ -5396,8 +5762,7 @@ function Tooltip({
5396
5762
  title,
5397
5763
  description,
5398
5764
  image,
5399
- pagination,
5400
- actions,
5765
+ content,
5401
5766
  children,
5402
5767
  customContent,
5403
5768
  variant = "basic",
@@ -5463,14 +5828,10 @@ function Tooltip({
5463
5828
  `ina-tooltip--variant-${variant}`,
5464
5829
  {
5465
5830
  "ina-tooltip__content--visible": visible,
5466
- "ina-tooltip__content--hidden": !visible
5831
+ "ina-tooltip__content--hidden": !visible,
5832
+ "ina-tooltip__content--show-arrow": showArrow
5467
5833
  }
5468
5834
  );
5469
- const arrowClasses = clsx(
5470
- "ina-tooltip__arrow",
5471
- `ina-tooltip__arrow--placement-${finalPlacement}`,
5472
- `ina-tooltip__arrow--variant-${variant}`
5473
- );
5474
5835
  const renderContent = () => {
5475
5836
  if (variant === "custom") {
5476
5837
  return customContent || null;
@@ -5486,8 +5847,11 @@ function Tooltip({
5486
5847
  className: "ina-tooltip__close",
5487
5848
  onClick: (e) => {
5488
5849
  e.stopPropagation();
5850
+ window.clearTimeout(leaveTimeout.current);
5851
+ window.clearTimeout(enterTimeout.current);
5852
+ setVisible(false);
5853
+ setFinalPlacement(placement);
5489
5854
  onClose();
5490
- hide();
5491
5855
  },
5492
5856
  "aria-label": "Close tooltip",
5493
5857
  children: /* @__PURE__ */ jsx(IconX, { size: 16 })
@@ -5497,16 +5861,7 @@ function Tooltip({
5497
5861
  /* @__PURE__ */ jsxs("div", { className: "ina-tooltip__content-section", children: [
5498
5862
  title && /* @__PURE__ */ jsx("div", { className: "ina-tooltip__title", children: title }),
5499
5863
  description && /* @__PURE__ */ jsx("div", { className: "ina-tooltip__description", children: description }),
5500
- pagination && /* @__PURE__ */ jsx("div", { className: "ina-tooltip__pagination", children: Array.from({ length: pagination.total }, (_, i2) => /* @__PURE__ */ jsx(
5501
- "div",
5502
- {
5503
- className: clsx("ina-tooltip__pagination-dot", {
5504
- "ina-tooltip__pagination-dot--active": i2 + 1 === pagination.current
5505
- })
5506
- },
5507
- i2
5508
- )) }),
5509
- actions && actions.length > 0 && /* @__PURE__ */ jsx("div", { className: "ina-tooltip__actions", children: actions.map((action, index) => /* @__PURE__ */ jsx("div", { className: "ina-tooltip__action", children: action }, index)) })
5864
+ content && /* @__PURE__ */ jsx("div", { className: "ina-tooltip__custom-content", children: content })
5510
5865
  ] })
5511
5866
  ] });
5512
5867
  };
@@ -5515,23 +5870,21 @@ function Tooltip({
5515
5870
  {
5516
5871
  ref: triggerRef,
5517
5872
  className: tooltipContainerClasses,
5873
+ "data-hover": visible ? "true" : void 0,
5518
5874
  onMouseEnter: show,
5519
5875
  onMouseLeave: hide,
5520
5876
  onFocus: show,
5521
5877
  onBlur: hide,
5522
5878
  children: [
5523
5879
  children,
5524
- visible && /* @__PURE__ */ jsxs(
5880
+ visible && /* @__PURE__ */ jsx(
5525
5881
  "div",
5526
5882
  {
5527
5883
  ref: tooltipRef,
5528
5884
  className: tooltipContentClasses,
5529
5885
  onMouseEnter: show,
5530
5886
  onMouseLeave: hide,
5531
- children: [
5532
- renderContent(),
5533
- showArrow && /* @__PURE__ */ jsx("div", { className: arrowClasses })
5534
- ]
5887
+ children: renderContent()
5535
5888
  }
5536
5889
  )
5537
5890
  ]
@@ -7633,18 +7986,17 @@ function YearPicker({
7633
7986
  let bottom = void 0;
7634
7987
  let maxHeight = "400px";
7635
7988
  if (spaceBelow < panelRect.height && spaceAbove > spaceBelow) {
7636
- bottom = viewportHeight - triggerRect.top + 4;
7989
+ bottom = triggerRect.height + 4;
7637
7990
  top = void 0;
7638
7991
  maxHeight = `${Math.min(spaceAbove - 10, 400)}px`;
7639
7992
  } else {
7640
- top = triggerRect.bottom + 4;
7993
+ top = triggerRect.height + 4;
7641
7994
  bottom = void 0;
7642
7995
  maxHeight = `${Math.min(spaceBelow - 10, 400)}px`;
7643
7996
  }
7644
7997
  const maxWidth = `${Math.min(panelWidthValue, viewportWidth - 16)}px`;
7645
7998
  setPanelStyle({
7646
- position: "fixed",
7647
- // Use fixed to escape DatePicker panel stacking context
7999
+ position: "absolute",
7648
8000
  top: top !== void 0 ? `${top}px` : void 0,
7649
8001
  bottom: bottom !== void 0 ? `${bottom}px` : void 0,
7650
8002
  left: left !== void 0 ? `${left}px` : void 0,
@@ -7989,18 +8341,17 @@ function MonthPicker({
7989
8341
  let bottom = void 0;
7990
8342
  let maxHeight = "300px";
7991
8343
  if (spaceBelow < panelRect.height && spaceAbove > spaceBelow) {
7992
- bottom = viewportHeight - triggerRect.top + 4;
8344
+ bottom = triggerRect.height + 4;
7993
8345
  top = void 0;
7994
8346
  maxHeight = `${Math.min(spaceAbove - 10, 300)}px`;
7995
8347
  } else {
7996
- top = triggerRect.bottom + 4;
8348
+ top = triggerRect.height + 4;
7997
8349
  bottom = void 0;
7998
8350
  maxHeight = `${Math.min(spaceBelow - 10, 300)}px`;
7999
8351
  }
8000
8352
  const maxWidth = `${Math.min(panelWidthValue, viewportWidth - 16)}px`;
8001
8353
  setPanelStyle({
8002
- position: "fixed",
8003
- // Use fixed to escape DatePicker panel stacking context
8354
+ position: "absolute",
8004
8355
  top: top !== void 0 ? `${top}px` : void 0,
8005
8356
  bottom: bottom !== void 0 ? `${bottom}px` : void 0,
8006
8357
  left: left !== void 0 ? `${left}px` : void 0,
@@ -9524,19 +9875,6 @@ const predefinedBrands = [
9524
9875
  "pan-rb",
9525
9876
  "default"
9526
9877
  ];
9527
- const defaultPrimaryColors = {
9528
- "--ina-primary-25": "#a3a3a3",
9529
- "--ina-primary-50": "#737373",
9530
- "--ina-primary-100": "#525252",
9531
- "--ina-primary-200": "#404040",
9532
- "--ina-primary-300": "#141414",
9533
- "--ina-primary-400": "#141414",
9534
- "--ina-primary-500": "#141414",
9535
- "--ina-primary-600": "#141414",
9536
- "--ina-primary-700": "#141414",
9537
- "--ina-primary-800": "#141414",
9538
- "--ina-primary-900": "#141414"
9539
- };
9540
9878
  let currentTheme = {
9541
9879
  name: "default"
9542
9880
  };
@@ -9582,12 +9920,12 @@ function applyThemeToDocument() {
9582
9920
  }
9583
9921
  }
9584
9922
  function applyDefaultPrimaryColors(root) {
9585
- Object.entries(defaultPrimaryColors).forEach(([key, value]) => {
9923
+ Object.entries(defaultColorTokens).forEach(([key, value]) => {
9586
9924
  root.style.setProperty(key, value);
9587
9925
  });
9588
9926
  }
9589
9927
  function removeDefaultPrimaryColors(root) {
9590
- Object.keys(defaultPrimaryColors).forEach((key) => {
9928
+ Object.keys(defaultColorTokens).forEach((key) => {
9591
9929
  root.style.removeProperty(key);
9592
9930
  });
9593
9931
  }
@@ -9653,6 +9991,7 @@ export {
9653
9991
  ProgressBar,
9654
9992
  RadioInput,
9655
9993
  SelectDropdown,
9994
+ SingleFileUpload,
9656
9995
  Skeleton,
9657
9996
  Spinner,
9658
9997
  Stepper,
@@ -9674,14 +10013,15 @@ export {
9674
10013
  bknColorTokens,
9675
10014
  containsDangerousPatterns,
9676
10015
  decodeHtmlEntities,
10016
+ defaultColorTokens,
9677
10017
  encodeHtmlEntities,
10018
+ formatFileSize,
9678
10019
  formattingThousand,
9679
10020
  getAvailableBrands,
9680
10021
  getCookie,
9681
10022
  getCurrentLocation,
9682
10023
  getCurrentTheme,
9683
10024
  iddsColorTokens,
9684
- iddsColorTokens as inaColorTokens,
9685
10025
  inagovColorTokens,
9686
10026
  inakuColorTokens,
9687
10027
  inapasColorTokens,
@@ -9700,5 +10040,7 @@ export {
9700
10040
  useConfirmation,
9701
10041
  useForm,
9702
10042
  useToast,
10043
+ validateFile,
10044
+ validateMagicNumber as validateFileMagicNumber,
9703
10045
  validateInput
9704
10046
  };