bianic-ui 2.14.0-beta.0 → 2.14.0-beta.2

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.
Files changed (86) hide show
  1. package/dist/cjs/index.js +289 -366
  2. package/dist/cjs/lib.css +1 -1
  3. package/dist/cjs/types/components/Badge/Badge.d.ts +2 -9
  4. package/dist/cjs/types/components/Banner/index.d.ts +0 -6
  5. package/dist/cjs/types/components/Breadcrumb/Breadcrumb.d.ts +1 -7
  6. package/dist/cjs/types/components/Button/ButtonSimulaiton.d.ts +1 -8
  7. package/dist/cjs/types/components/Button/NavButton/index.d.ts +1 -1
  8. package/dist/cjs/types/components/Button/index.d.ts +1 -1
  9. package/dist/cjs/types/components/Divider/Divider.d.ts +1 -8
  10. package/dist/cjs/types/components/Forms/Checkbox/Simulation.d.ts +0 -5
  11. package/dist/cjs/types/components/Forms/DropdownItem/Custom.d.ts +0 -10
  12. package/dist/cjs/types/components/Forms/DropdownItem/Default.d.ts +0 -10
  13. package/dist/cjs/types/components/Forms/Label/FormLabel.d.ts +0 -10
  14. package/dist/cjs/types/components/Forms/LiveSearch/index.d.ts +0 -15
  15. package/dist/cjs/types/components/Forms/SelectInput/index.d.ts +0 -12
  16. package/dist/cjs/types/components/Forms/TextArea/Simulation.d.ts +0 -5
  17. package/dist/cjs/types/components/Forms/Toggle/index.d.ts +0 -10
  18. package/dist/cjs/types/components/InfoPanel/index.d.ts +1 -9
  19. package/dist/cjs/types/components/Menu/Example/BasicExample.d.ts +1 -1
  20. package/dist/cjs/types/components/Menu/Example/NestedExample.d.ts +1 -12
  21. package/dist/cjs/types/components/Modal/ModalAction.d.ts +0 -5
  22. package/dist/cjs/types/components/Modal/ModalContent.d.ts +0 -5
  23. package/dist/cjs/types/components/Popover/index.d.ts +0 -6
  24. package/dist/cjs/types/components/ResizeableDiv/Simulation.d.ts +0 -5
  25. package/dist/cjs/types/components/ResizeableDiv/SimulationZIndex.d.ts +0 -5
  26. package/dist/cjs/types/components/ResizeableDiv/index.d.ts +0 -5
  27. package/dist/cjs/types/components/Tab/TabBody.d.ts +1 -8
  28. package/dist/cjs/types/components/Tab/TabContent.d.ts +1 -7
  29. package/dist/cjs/types/components/Tab/TabContentVertical.d.ts +1 -7
  30. package/dist/cjs/types/components/Tab/TabHead.d.ts +1 -11
  31. package/dist/cjs/types/components/Tab/TabList.d.ts +1 -7
  32. package/dist/cjs/types/components/Table/TableCell/TableTestSample.d.ts +0 -5
  33. package/dist/cjs/types/components/Table/TableCell/index.d.ts +0 -7
  34. package/dist/cjs/types/components/TagLabel/TagLabelBlockSimulation.d.ts +1 -8
  35. package/dist/cjs/types/components/TagLabel/index.d.ts +0 -17
  36. package/dist/cjs/types/components/Tooltip/Simulation.d.ts +0 -11
  37. package/dist/cjs/types/components/Tooltip/index.d.ts +0 -11
  38. package/dist/cjs/types/components/Typography/Heading.d.ts +0 -6
  39. package/dist/cjs/types/components/Typography/P.d.ts +0 -6
  40. package/dist/cjs/types/components/Typography/Text/Link.d.ts +0 -5
  41. package/dist/cjs/types/components/Typography/Text/index.d.ts +0 -6
  42. package/dist/esm/index.js +289 -366
  43. package/dist/esm/lib.css +1 -1
  44. package/dist/esm/types/components/Badge/Badge.d.ts +2 -9
  45. package/dist/esm/types/components/Banner/index.d.ts +0 -6
  46. package/dist/esm/types/components/Breadcrumb/Breadcrumb.d.ts +1 -7
  47. package/dist/esm/types/components/Button/ButtonSimulaiton.d.ts +1 -8
  48. package/dist/esm/types/components/Button/NavButton/index.d.ts +1 -1
  49. package/dist/esm/types/components/Button/index.d.ts +1 -1
  50. package/dist/esm/types/components/Divider/Divider.d.ts +1 -8
  51. package/dist/esm/types/components/Forms/Checkbox/Simulation.d.ts +0 -5
  52. package/dist/esm/types/components/Forms/DropdownItem/Custom.d.ts +0 -10
  53. package/dist/esm/types/components/Forms/DropdownItem/Default.d.ts +0 -10
  54. package/dist/esm/types/components/Forms/Label/FormLabel.d.ts +0 -10
  55. package/dist/esm/types/components/Forms/LiveSearch/index.d.ts +0 -15
  56. package/dist/esm/types/components/Forms/SelectInput/index.d.ts +0 -12
  57. package/dist/esm/types/components/Forms/TextArea/Simulation.d.ts +0 -5
  58. package/dist/esm/types/components/Forms/Toggle/index.d.ts +0 -10
  59. package/dist/esm/types/components/InfoPanel/index.d.ts +1 -9
  60. package/dist/esm/types/components/Menu/Example/BasicExample.d.ts +1 -1
  61. package/dist/esm/types/components/Menu/Example/NestedExample.d.ts +1 -12
  62. package/dist/esm/types/components/Modal/ModalAction.d.ts +0 -5
  63. package/dist/esm/types/components/Modal/ModalContent.d.ts +0 -5
  64. package/dist/esm/types/components/Popover/index.d.ts +0 -6
  65. package/dist/esm/types/components/ResizeableDiv/Simulation.d.ts +0 -5
  66. package/dist/esm/types/components/ResizeableDiv/SimulationZIndex.d.ts +0 -5
  67. package/dist/esm/types/components/ResizeableDiv/index.d.ts +0 -5
  68. package/dist/esm/types/components/Tab/TabBody.d.ts +1 -8
  69. package/dist/esm/types/components/Tab/TabContent.d.ts +1 -7
  70. package/dist/esm/types/components/Tab/TabContentVertical.d.ts +1 -7
  71. package/dist/esm/types/components/Tab/TabHead.d.ts +1 -11
  72. package/dist/esm/types/components/Tab/TabList.d.ts +1 -7
  73. package/dist/esm/types/components/Table/TableCell/TableTestSample.d.ts +0 -5
  74. package/dist/esm/types/components/Table/TableCell/index.d.ts +0 -7
  75. package/dist/esm/types/components/TagLabel/TagLabelBlockSimulation.d.ts +1 -8
  76. package/dist/esm/types/components/TagLabel/index.d.ts +0 -17
  77. package/dist/esm/types/components/Tooltip/Simulation.d.ts +0 -11
  78. package/dist/esm/types/components/Tooltip/index.d.ts +0 -11
  79. package/dist/esm/types/components/Typography/Heading.d.ts +0 -6
  80. package/dist/esm/types/components/Typography/P.d.ts +0 -6
  81. package/dist/esm/types/components/Typography/Text/Link.d.ts +0 -5
  82. package/dist/esm/types/components/Typography/Text/index.d.ts +0 -6
  83. package/dist/index.d.ts +1 -149
  84. package/package.json +9 -2
  85. package/dist/cjs/types/components/Forms/DatePicker/PickerCalendarOld.d.ts +0 -9
  86. package/dist/esm/types/components/Forms/DatePicker/PickerCalendarOld.d.ts +0 -9
package/dist/esm/index.js CHANGED
@@ -228,7 +228,7 @@ function Display(_a) {
228
228
  }
229
229
 
230
230
  function Heading(_a) {
231
- var _b = _a.variant, variant = _b === void 0 ? '1' : _b, className = _a.className, children = _a.children;
231
+ var _b = _a.variant, variant = _b === void 0 ? '1' : _b, _c = _a.className, className = _c === void 0 ? '' : _c, children = _a.children;
232
232
  switch (variant) {
233
233
  case '1':
234
234
  return (React.createElement("h1", { className: "bianic-header-".concat(variant, " flex font-humnst777 text-heading-1 font-bold ").concat(className) }, children));
@@ -246,19 +246,11 @@ function Heading(_a) {
246
246
  return (React.createElement("h1", { className: "bianic-header-".concat(variant, " flex font-humnst777 text-heading-1 font-bold ").concat(className) }, children));
247
247
  }
248
248
  }
249
- Heading.defaultProps = {
250
- variant: '1',
251
- className: '',
252
- };
253
249
 
254
250
  function P(_a) {
255
251
  var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.fontSize, fontSize = _c === void 0 ? 'size-base' : _c, children = _a.children;
256
252
  return (React.createElement("p", { className: "paragraph text-justify text-".concat(fontSize, " font-segoe ").concat(className) }, children));
257
253
  }
258
- P.defaultProps = {
259
- className: '',
260
- fontSize: 'size-base',
261
- };
262
254
 
263
255
  var textClasses = {
264
256
  caption: 'text-size-caption font-normal font-segoe uppercase',
@@ -354,10 +346,6 @@ function Text(_a) {
354
346
  var extendedClasses = "".concat(className, " ").concat(extended);
355
347
  return (React.createElement("span", { className: "bianic-text ".concat(textClasses[validatedVariant], " ").concat(defaultColor, " ").concat(extendedClasses) }, childrenElement(children)));
356
348
  }
357
- Text.defaultProps = {
358
- extended: '',
359
- className: '',
360
- };
361
349
 
362
350
  /******************************************************************************
363
351
  Copyright (c) Microsoft Corporation.
@@ -418,9 +406,6 @@ function Link(_a) {
418
406
  var _b = _a.extended, extended = _b === void 0 ? '' : _b, children = _a.children, rest = __rest(_a, ["extended", "children"]);
419
407
  return (React.createElement("a", __assign({ className: "bianic-text ".concat(textClasses.link, " ").concat(extended) }, rest), children));
420
408
  }
421
- Link.defaultProps = {
422
- extended: '',
423
- };
424
409
 
425
410
  function Alert(_a) {
426
411
  var _b = _a.title, title = _b === void 0 ? '' : _b, caption = _a.caption, _c = _a.variant, variant = _c === void 0 ? 'base' : _c, _d = _a.visible, visible = _d === void 0 ? true : _d, _e = _a.setVisible, setVisible = _e === void 0 ? function () { } : _e, _f = _a.visibleIcon, visibleIcon = _f === void 0 ? true : _f, _g = _a.visibleClose, visibleClose = _g === void 0 ? false : _g, _h = _a.customIcon, customIcon = _h === void 0 ? undefined : _h, _j = _a.customMiniIcon, customMiniIcon = _j === void 0 ? undefined : _j, children = _a.children;
@@ -578,11 +563,13 @@ var Button = forwardRef(function (_a, ref) {
578
563
  var isVariantLink = variant.includes('link')
579
564
  ? ''
580
565
  : "".concat(sidePaddingConfig[validatedSize]);
581
- var sizeClass = label || variant === 'form-group'
582
- ? " ".concat(minWidthRules, " ").concat(sizingRules)
583
- : hasDoubleIcon
584
- ? "".concat(doubleIconSizeConfig[validatedSize], " ").concat(isVariantLink)
585
- : "".concat(iconOnlySizeConfig$1[validatedSize], " ").concat(isVariantLink, " ").concat(isVariantLink);
566
+ var sizeClass = "".concat(iconOnlySizeConfig$1[validatedSize], " ").concat(isVariantLink, " ").concat(isVariantLink);
567
+ if (label || variant === 'form-group') {
568
+ sizeClass = " ".concat(minWidthRules, " ").concat(sizingRules);
569
+ }
570
+ else if (hasDoubleIcon) {
571
+ sizeClass = "".concat(doubleIconSizeConfig[validatedSize], " ").concat(isVariantLink);
572
+ }
586
573
  var classString = "\n ".concat(variantConfig$3[validatedVariant], "\n ").concat(sizeClass, "\n ").concat(radiusConfig$1[validatedRadius][validatedSize], "\n ").concat(className, "\n ");
587
574
  return (React.createElement("button", __assign({ ref: ref, type: "button", className: "bianic-button bianic-fgc-target flex items-center justify-center font-semibold ".concat(classString), disabled: disabled }, props),
588
575
  childrenElement(renderIcon(iconLeft || left)),
@@ -679,9 +666,9 @@ var typeConfig = {
679
666
  };
680
667
 
681
668
  function Badge(_a) {
682
- var _b = _a.type, type = _b === void 0 ? 'standart' : _b, children = _a.children, color = _a.color, isInverted = _a.isInverted, className = _a.className;
669
+ var _b = _a.type, type = _b === void 0 ? 'standart' : _b, children = _a.children, _c = _a.color, color = _c === void 0 ? undefined : _c, _d = _a.isInverted, isInverted = _d === void 0 ? false : _d, className = _a.className;
683
670
  var divRef = useRef(null);
684
- var _c = useState(0), fontSize = _c[0], setFontSize = _c[1];
671
+ var _e = useState(0), fontSize = _e[0], setFontSize = _e[1];
685
672
  var typeClasses = typeConfig[type];
686
673
  var isStandart = type === 'standart';
687
674
  var bgColor = isInverted && isStandart ? '#ffffff' : color || '';
@@ -706,11 +693,6 @@ function Badge(_a) {
706
693
  } },
707
694
  React.createElement("span", { ref: divRef, style: { marginTop: contentMarginTop } }, children)));
708
695
  }
709
- Badge.defaultProps = {
710
- type: 'standart',
711
- isInverted: false,
712
- color: undefined,
713
- };
714
696
 
715
697
  var variantConfig$2 = {
716
698
  black: {
@@ -752,7 +734,7 @@ function Banner(_a) {
752
734
  useLayoutEffect(function () {
753
735
  var textElement = textRef.current;
754
736
  if (!textElement)
755
- return;
737
+ return undefined;
756
738
  var observer = new ResizeObserver(function () {
757
739
  var computedStyle = window.getComputedStyle(textElement);
758
740
  var lineHeight = parseFloat(computedStyle.lineHeight);
@@ -772,10 +754,6 @@ function Banner(_a) {
772
754
  React.createElement(TbX, { className: "text-[18px] ".concat(variantConfig$2[variant].hover, " ").concat(variantConfig$2[variant].active) })))));
773
755
  }
774
756
  }
775
- Banner.defaultProps = {
776
- closeable: true,
777
- variant: 'black',
778
- };
779
757
 
780
758
  var sizeConfig$e = {
781
759
  md: 'h-[16px] text-[11px]',
@@ -1617,9 +1595,6 @@ function Breadcrumb(_a) {
1617
1595
  !selected && (React.createElement("div", { className: "flex items-center justify-center px-[5px]" },
1618
1596
  React.createElement(Chevron, null)))));
1619
1597
  }
1620
- Breadcrumb.defaultProps = {
1621
- selected: false,
1622
- };
1623
1598
 
1624
1599
  var colorConfig$2 = {
1625
1600
  green: {
@@ -1633,7 +1608,9 @@ var colorConfig$2 = {
1633
1608
  };
1634
1609
 
1635
1610
  function ButtonApp(_a) {
1636
- _a.icon; var _c = _a.isActive, isActive = _c === void 0 ? false : _c, disabled = _a.disabled, _d = _a.color, color = _d === void 0 ? 'green' : _d, _e = _a.label, label = _e === void 0 ? '' : _e, _f = _a.extended, extended = _f === void 0 ? '' : _f, rest = __rest(_a, ["icon", "isActive", "disabled", "color", "label", "extended"]);
1611
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
1612
+ _a.icon;
1613
+ var _c = _a.isActive, isActive = _c === void 0 ? false : _c, disabled = _a.disabled, _d = _a.color, color = _d === void 0 ? 'green' : _d, _e = _a.label, label = _e === void 0 ? '' : _e, _f = _a.extended, extended = _f === void 0 ? '' : _f, rest = __rest(_a, ["icon", "isActive", "disabled", "color", "label", "extended"]);
1637
1614
  var buttonState = isActive ? 'active' : 'default';
1638
1615
  return (React.createElement("button", __assign({ className: "button-app flex max-h-[30px] items-center justify-center px-[10px] pb-[8.3px] pt-[8.5px] font-arial text-size-tiny ".concat(colorConfig$2[color][buttonState], " ").concat(extended), type: "button", disabled: disabled }, rest), label));
1639
1616
  }
@@ -1649,11 +1626,10 @@ var stateColorConfig = {
1649
1626
 
1650
1627
  function ContextualButtonInner(_a, ref) {
1651
1628
  var _b = _a.actionElement, actionElement = _b === void 0 ? undefined : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.icon, icon = _d === void 0 ? undefined : _d, _e = _a.variant, variant = _e === void 0 ? 'dark' : _e, disabled = _a.disabled, _f = _a.isSelected, isSelected = _f === void 0 ? false : _f, props = __rest(_a, ["actionElement", "label", "icon", "variant", "disabled", "isSelected"]);
1652
- var textColor = isSelected
1653
- ? variant === 'dark'
1654
- ? 'text-primary-black'
1655
- : 'text-primary-white'
1656
- : textColorConfig[variant];
1629
+ var textColor = textColorConfig[variant];
1630
+ if (isSelected) {
1631
+ textColor = variant === 'dark' ? 'text-primary-black' : 'text-primary-white';
1632
+ }
1657
1633
  var stateColor = stateColorConfig[isSelected ? 'selected' : 'default'];
1658
1634
  return (React.createElement("button", __assign({ ref: ref, type: "button", className: "bianic-contextual-button box-border flex min-h-[23px] flex-row items-center rounded-radius-sm border border-transparent p-[1px] outline-none ".concat(stateColor, " ").concat(textColor) }, props, { disabled: disabled }),
1659
1635
  icon,
@@ -1824,6 +1800,9 @@ var Countdown = React.forwardRef(function (_a, ref) {
1824
1800
  React.createElement(Heading, { key: secondsPlaceholder, variant: "2", className: "animate-number-drop" }, secondsPlaceholder),
1825
1801
  React.createElement(Text, { variant: "small-text", className: "font-segoe text-bia-coolgrey" }, secondsPlaceholder <= 1 ? 'second' : 'seconds'))) : (React.createElement(TbCheck, { size: 46, className: "text-bia-green", "aria-label": "Countdown complete" }))));
1826
1802
  });
1803
+ Countdown.defaultProps = {
1804
+ variant: 'countdown',
1805
+ };
1827
1806
  Countdown.displayName = 'Countdown';
1828
1807
 
1829
1808
  var DividerConfig = {
@@ -1832,22 +1811,18 @@ var DividerConfig = {
1832
1811
  };
1833
1812
 
1834
1813
  function Divider(_a) {
1835
- var _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, className = _a.className;
1814
+ var _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, _c = _a.className, className = _c === void 0 ? '' : _c;
1836
1815
  var config = DividerConfig[orientation];
1837
1816
  var margin = orientation === 'horizontal' ? 'my-[7px]' : 'mx-[7px]';
1838
1817
  return (React.createElement("div", { className: "bianic-divider bg-bia-grey-light-50 ".concat(margin, " ").concat(config, " ").concat(className) }));
1839
1818
  }
1840
- Divider.defaultProps = {
1841
- className: '',
1842
- orientation: 'horizontal',
1843
- };
1844
1819
 
1845
1820
  function TreeItem$1(_a) {
1846
- var label = _a.label, nodes = _a.nodes, color = _a.color, chevronColor = _a.chevronColor, handleRightClick = _a.handleRightClick, onMouseDownTreeItem = _a.onMouseDownTreeItem, props = __rest(_a, ["label", "nodes", "color", "chevronColor", "handleRightClick", "onMouseDownTreeItem"]);
1821
+ var label = _a.label, _b = _a.nodes, nodes = _b === void 0 ? undefined : _b, _c = _a.color, color = _c === void 0 ? undefined : _c, _d = _a.chevronColor, chevronColor = _d === void 0 ? undefined : _d, _e = _a.handleRightClick, handleRightClick = _e === void 0 ? undefined : _e, _f = _a.onMouseDownTreeItem, onMouseDownTreeItem = _f === void 0 ? undefined : _f, props = __rest(_a, ["label", "nodes", "color", "chevronColor", "handleRightClick", "onMouseDownTreeItem"]);
1847
1822
  var treeRef = useRef(null);
1848
- var _b = useState(false), isExpand = _b[0], setIsExpand = _b[1];
1849
- var _c = useState(false), isFocused = _c[0], setIsFocused = _c[1];
1850
- var _d = useDetectOutsideClick(treeRef, false, 'mousedown'), isClickRight = _d[0], setIsClickRight = _d[1];
1823
+ var _g = useState(false), isExpand = _g[0], setIsExpand = _g[1];
1824
+ var _h = useState(false), isFocused = _h[0], setIsFocused = _h[1];
1825
+ var _j = useDetectOutsideClick(treeRef, false, 'mousedown'), isClickRight = _j[0], setIsClickRight = _j[1];
1851
1826
  var focusedIconColor = chevronColor || color
1852
1827
  ? "text-bia-".concat(chevronColor || color)
1853
1828
  : 'text-bia-coolgrey-light-50';
@@ -1887,10 +1862,10 @@ function TreeItem$1(_a) {
1887
1862
  })))));
1888
1863
  }
1889
1864
  function FileTree(_a) {
1890
- var data = _a.data, color = _a.color, chevronColor = _a.chevronColor, contextMenu = _a.contextMenu, onMouseDown = _a.onMouseDown;
1865
+ var data = _a.data, _b = _a.color, color = _b === void 0 ? undefined : _b, _c = _a.chevronColor, chevronColor = _c === void 0 ? undefined : _c, _d = _a.contextMenu, contextMenu = _d === void 0 ? undefined : _d, _e = _a.onMouseDown, onMouseDown = _e === void 0 ? undefined : _e;
1891
1866
  var popupRef = useRef(null); // Ref untuk div utama
1892
- var _b = useDetectOutsideClick(popupRef, false), isOpenContMenu = _b[0], setIsOpenContMenu = _b[1];
1893
- var _c = useState({ x: 0, y: 0 }), contMenuPosition = _c[0], setContMenuPosition = _c[1];
1867
+ var _f = useDetectOutsideClick(popupRef, false), isOpenContMenu = _f[0], setIsOpenContMenu = _f[1];
1868
+ var _g = useState({ x: 0, y: 0 }), contMenuPosition = _g[0], setContMenuPosition = _g[1];
1894
1869
  var menuStyle = {
1895
1870
  position: 'fixed',
1896
1871
  top: "".concat(contMenuPosition.y, "px"),
@@ -1917,7 +1892,7 @@ function FileTree(_a) {
1917
1892
  }
1918
1893
 
1919
1894
  function TreeItem(_a) {
1920
- var data = _a.data, expandedData = _a.expandedData, setExpandedData = _a.setExpandedData, dataMap = _a.dataMap, activeUnitId = _a.activeUnitId, handleChevronClick = _a.handleChevronClick, handleRightClick = _a.handleRightClick, handleCLick = _a.handleCLick;
1895
+ var data = _a.data, expandedData = _a.expandedData, setExpandedData = _a.setExpandedData, dataMap = _a.dataMap, _b = _a.activeUnitId, activeUnitId = _b === void 0 ? undefined : _b, _c = _a.handleChevronClick, handleChevronClick = _c === void 0 ? undefined : _c, _d = _a.handleRightClick, handleRightClick = _d === void 0 ? undefined : _d, _e = _a.handleCLick, handleCLick = _e === void 0 ? undefined : _e;
1921
1896
  var isExpanded = !!expandedData.get(data.id);
1922
1897
  var toogleExpand = function () {
1923
1898
  var isCurrentlyExpanded = !!expandedData.get(data.id);
@@ -2315,15 +2290,9 @@ function Tooltip(props) {
2315
2290
  children,
2316
2291
  active && (React.createElement(TooltipItem, { anchorRef: anchorRef, direction: direction, content: content, tooltipContainerRef: tooltipContainerRef, bgColor: bgColor, textColor: textColor, zIndex: zIndex, className: className, style: style, maxWidth: maxWidth }))));
2317
2292
  }
2318
- Tooltip.defaultProps = {
2319
- delay: 400,
2320
- direction: 'top',
2321
- maxWidth: '300',
2322
- };
2323
- Tooltip.defaultProps = {};
2324
2293
 
2325
2294
  function FormLabel(_a) {
2326
- var children = _a.children, className = _a.className, htmlFor = _a.htmlFor, readOnly = _a.readOnly, required = _a.required, _b = _a.size, size = _b === void 0 ? 'sm' : _b, _c = _a.fontWeight, fontWeight = _c === void 0 ? 'semibold' : _c;
2295
+ var children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.htmlFor, htmlFor = _c === void 0 ? undefined : _c, _d = _a.readOnly, readOnly = _d === void 0 ? false : _d, _e = _a.required, required = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? 'sm' : _f, _g = _a.fontWeight, fontWeight = _g === void 0 ? 'semibold' : _g;
2327
2296
  var labelpointer = readOnly ? 'pointer-events-none' : '';
2328
2297
  var labelSize = size === 'sm' ? 'text-size-sm' : 'text-size-md';
2329
2298
  var labelFontWeight = fontWeight === 'semibold' ? 'font-semibold' : 'font-normal';
@@ -2335,17 +2304,9 @@ function FormLabel(_a) {
2335
2304
  return (React.createElement(Tooltip, { content: "Required", delay: 2000, direction: "right" }, labelContent));
2336
2305
  return labelContent;
2337
2306
  }
2338
- FormLabel.defaultProps = {
2339
- className: '',
2340
- htmlFor: undefined,
2341
- required: false,
2342
- readOnly: false,
2343
- size: 'sm',
2344
- fontWeight: 'semibold',
2345
- };
2346
2307
 
2347
2308
  function PasswordIcon(_a) {
2348
- var isShow = _a.isShow, _b = _a.showHandler, showHandler = _b === void 0 ? function () { } : _b, iconSize = _a.iconSize, disabled = _a.disabled;
2309
+ var isShow = _a.isShow, showHandler = _a.showHandler, iconSize = _a.iconSize, disabled = _a.disabled;
2349
2310
  var iconColor = disabled ? '#8b8ba6' : '#5E5EEA';
2350
2311
  if (isShow) {
2351
2312
  return (React.createElement(TbEye, { onClick: function () { return showHandler(false); }, style: {
@@ -2521,7 +2482,7 @@ Radio.defaultProps = {
2521
2482
  Radio.displayName = 'Radio';
2522
2483
 
2523
2484
  function ResizeIcon(_a) {
2524
- var className = _a.className;
2485
+ var _b = _a.className, className = _b === void 0 ? undefined : _b;
2525
2486
  return (React.createElement("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: "bianic-resize-icon ".concat(className) },
2526
2487
  React.createElement("line", { x1: "0.646447", y1: "8.64645", x2: "8.64645", y2: "0.646447", stroke: "#DADEEB" }),
2527
2488
  React.createElement("line", { x1: "0.646447", y1: "8.64645", x2: "8.64645", y2: "0.646447", stroke: "black", strokeOpacity: "0.1" }),
@@ -2628,12 +2589,12 @@ var sizeConfig$8 = {
2628
2589
 
2629
2590
  /* eslint-disable @typescript-eslint/no-explicit-any */
2630
2591
  function CustomDropdownItem(_a) {
2631
- var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, isSelected = _a.isSelected, options = _a.options, children = _a.children;
2632
- var _e = useState(false), isHovered = _e[0], setisHovered = _e[1];
2633
- var _f = useState(false), isHoveredSubMenu = _f[0], setIsHoveredSubMenu = _f[1];
2592
+ var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.isSelected, isSelected = _e === void 0 ? false : _e, _f = _a.options, options = _f === void 0 ? [] : _f, _g = _a.children, children = _g === void 0 ? undefined : _g;
2593
+ var _h = useState(false), isHovered = _h[0], setisHovered = _h[1];
2594
+ var _j = useState(false), isHoveredSubMenu = _j[0], setIsHoveredSubMenu = _j[1];
2634
2595
  var isOpenDropdown = isHovered || isHoveredSubMenu;
2635
2596
  var selectedClass = isSelected ? 'font-semibold' : 'font-normal';
2636
- var _g = sizeConfig$8[size], containerClass = _g.container, item = _g.item;
2597
+ var _k = sizeConfig$8[size], containerClass = _k.container, item = _k.item;
2637
2598
  var itemClass = "".concat(item, " ").concat(selectedClass, " ").concat(className);
2638
2599
  var isExistSubDropdown = options.length !== 0;
2639
2600
  return (React.createElement("div", { className: "relative w-full focus-visible:outline-bia-blue-light-50 ".concat(containerClass), tabIndex: 0, role: "button", onClick: function (e) { return onClick(e); }, onMouseEnter: function () { return setisHovered(true); }, onMouseLeave: function () { return setisHovered(false); }, onKeyDown: function () { } },
@@ -2644,23 +2605,15 @@ function CustomDropdownItem(_a) {
2644
2605
  return option.custom || option.children ? (React.createElement(CustomDropdownItem, { size: size, options: option.options }, option.custom || option.children)) : (React.createElement(DefaultDropdownItem, { label: option.label, size: size, options: option.options }));
2645
2606
  })))));
2646
2607
  }
2647
- CustomDropdownItem.defaultProps = {
2648
- className: '',
2649
- onClick: function () { },
2650
- size: 'md',
2651
- options: [],
2652
- isSelected: false,
2653
- caption: '',
2654
- };
2655
2608
 
2656
2609
  /* eslint-disable @typescript-eslint/no-explicit-any */
2657
2610
  function DefaultDropdownItem(_a) {
2658
- var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.label, label = _c === void 0 ? '' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, isSelected = _a.isSelected, options = _a.options, caption = _a.caption;
2659
- var _f = useState(false), isHovered = _f[0], setisHovered = _f[1];
2660
- var _g = useState(false), isHoveredSubMenu = _g[0], setIsHoveredSubMenu = _g[1];
2611
+ var _b = _a.className, className = _b === void 0 ? '' : _b, label = _a.label, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.isSelected, isSelected = _e === void 0 ? false : _e, _f = _a.options, options = _f === void 0 ? [] : _f, _g = _a.caption, caption = _g === void 0 ? '' : _g;
2612
+ var _h = useState(false), isHovered = _h[0], setisHovered = _h[1];
2613
+ var _j = useState(false), isHoveredSubMenu = _j[0], setIsHoveredSubMenu = _j[1];
2661
2614
  var isOpenDropdown = isHovered || isHoveredSubMenu;
2662
2615
  var selectedClass = isSelected ? 'font-semibold' : 'font-normal';
2663
- var _h = sizeConfig$8[size], containerClass = _h.container, item = _h.item;
2616
+ var _k = sizeConfig$8[size], containerClass = _k.container, item = _k.item;
2664
2617
  var itemClass = "".concat(item, " ").concat(selectedClass, " ").concat(className);
2665
2618
  var isExistSubDropdown = options.length !== 0;
2666
2619
  return (React.createElement("div", { className: "relative w-full focus-visible:outline-bia-blue-light-50 ".concat(containerClass), tabIndex: 0, role: "button", onClick: function (e) { return onClick(e); }, onMouseEnter: function () { return setisHovered(true); }, onMouseLeave: function () { return setisHovered(false); }, onKeyDown: function () { } },
@@ -2673,14 +2626,6 @@ function DefaultDropdownItem(_a) {
2673
2626
  return option.custom || option.children ? (React.createElement(CustomDropdownItem, { size: size, options: option.options }, option.custom || option.children)) : (React.createElement(DefaultDropdownItem, { label: option.label, size: size, options: option.options }));
2674
2627
  })))));
2675
2628
  }
2676
- DefaultDropdownItem.defaultProps = {
2677
- className: '',
2678
- onClick: function () { },
2679
- size: 'md',
2680
- options: [],
2681
- isSelected: false,
2682
- caption: '',
2683
- };
2684
2629
 
2685
2630
  var containerSizeConfig$1 = {
2686
2631
  sm: 'min-w-[72px]',
@@ -2769,10 +2714,10 @@ var getItemLabel = function (value) {
2769
2714
  var sizeUnion$2 = ['md', 'sm'];
2770
2715
  function SelectInput(_a) {
2771
2716
  var _b;
2772
- var descText = _a.descText, _c = _a.disabled, disabled = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, id = _a.id, _e = _a.isValid, isValid = _e === void 0 ? null : _e, label = _a.label, _f = _a.options, options = _f === void 0 ? [] : _f, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, selected = _a.selected, setSelected = _a.setSelected, _j = _a.onClickDropdown, onClickDropdown = _j === void 0 ? function () { } : _j, children = _a.children, _k = _a.dropContProps, _l = _k === void 0 ? {} : _k, _m = _l.className, dropContClassName = _m === void 0 ? '' : _m, restDropContProps = __rest(_l, ["className"]), props = __rest(_a, ["descText", "disabled", "size", "id", "isValid", "label", "options", "readOnly", "required", "selected", "setSelected", "onClickDropdown", "children", "dropContProps"]);
2773
- var _o = useState(false), isOpen = _o[0], setIsOpen = _o[1];
2717
+ var _c = _a.descText, descText = _c === void 0 ? undefined : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, _f = _a.id, id = _f === void 0 ? undefined : _f, _g = _a.isValid, isValid = _g === void 0 ? null : _g, _h = _a.label, label = _h === void 0 ? undefined : _h, _j = _a.options, options = _j === void 0 ? [] : _j, _k = _a.readOnly, readOnly = _k === void 0 ? false : _k, _l = _a.required, required = _l === void 0 ? false : _l, _m = _a.selected, selected = _m === void 0 ? undefined : _m, _o = _a.setSelected, setSelected = _o === void 0 ? function () { } : _o, _p = _a.onClickDropdown, onClickDropdown = _p === void 0 ? function () { } : _p, _q = _a.children, children = _q === void 0 ? undefined : _q, _r = _a.dropContProps, _s = _r === void 0 ? {} : _r, _t = _s.className, dropContClassName = _t === void 0 ? '' : _t, restDropContProps = __rest(_s, ["className"]), props = __rest(_a, ["descText", "disabled", "size", "id", "isValid", "label", "options", "readOnly", "required", "selected", "setSelected", "onClickDropdown", "children", "dropContProps"]);
2718
+ var _u = useState(false), isOpen = _u[0], setIsOpen = _u[1];
2774
2719
  var validatedSize = validUnion(size, sizeUnion$2);
2775
- var _p = sizeConfig$9[validatedSize], searchSize = _p.searchSize, iconSize = _p.iconSize;
2720
+ var _v = sizeConfig$9[validatedSize], searchSize = _v.searchSize, iconSize = _v.iconSize;
2776
2721
  var inputRef = useRef(null);
2777
2722
  var selectedLabel = selected !== undefined && isObjectWithLabel(selected)
2778
2723
  ? ((_b = selected.label) !== null && _b !== void 0 ? _b : '')
@@ -2830,16 +2775,6 @@ function SelectInput(_a) {
2830
2775
  })))),
2831
2776
  descText && (React.createElement("span", { className: "bianic-livesearch-desc bianic-text-input-desc text-xs ".concat(descColor) }, descText))));
2832
2777
  }
2833
- SelectInput.defaultProps = {
2834
- descText: '',
2835
- disabled: false,
2836
- id: '',
2837
- size: 'md',
2838
- label: '',
2839
- required: false,
2840
- selected: {},
2841
- setSelected: function () { },
2842
- };
2843
2778
 
2844
2779
  var sizeConfig$7 = {
2845
2780
  md: {
@@ -2972,10 +2907,12 @@ var processDropdownChildren$1 = function (nodes, currentSearchTerm, includeAllIf
2972
2907
  if (!isDisabled) {
2973
2908
  if (itemValue === undefined &&
2974
2909
  typeof itemProps.content === 'string') {
2975
- return handleDropdownItemClick(divEvent, itemContent);
2910
+ handleDropdownItemClick(divEvent, itemContent);
2911
+ return;
2976
2912
  }
2977
2913
  if (typeof itemValue === 'object' || itemValue !== undefined) {
2978
- return handleDropdownItemClick(divEvent, itemValue);
2914
+ handleDropdownItemClick(divEvent, itemValue);
2915
+ return;
2979
2916
  }
2980
2917
  }
2981
2918
  if (itemProps.onClickItem) {
@@ -3037,16 +2974,16 @@ var useLiveSearch$1 = function (_a) {
3037
2974
  };
3038
2975
 
3039
2976
  function LiveSearch(_a) {
3040
- var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, descText = _a.descText, _d = _a.disabled, disabled = _d === void 0 ? false : _d, dropContProps = _a.dropContProps, id = _a.id, label = _a.label, _e = _a.onChangeText, onChangeText = _e === void 0 ? function () { } : _e, _f = _a.onChangeButton, onChangeButton = _f === void 0 ? undefined : _f, _g = _a.onClickDropdown, onClickDropdown = _g === void 0 ? function () { } : _g, options = _a.options, placeholder = _a.placeholder, _h = _a.readOnly, readOnly = _h === void 0 ? false : _h, _j = _a.required, required = _j === void 0 ? false : _j, _k = _a.searchVariant, searchVariant = _k === void 0 ? 'include' : _k, setValue = _a.setValue, _l = _a.size, size = _l === void 0 ? 'md' : _l, _m = _a.isValid, isValid = _m === void 0 ? null : _m, value = _a.value;
2977
+ var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, _d = _a.descText, descText = _d === void 0 ? undefined : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.dropContProps, dropContProps = _f === void 0 ? undefined : _f, _g = _a.id, id = _g === void 0 ? undefined : _g, _h = _a.label, label = _h === void 0 ? undefined : _h, _j = _a.onChangeText, onChangeText = _j === void 0 ? function () { } : _j, _k = _a.onChangeButton, onChangeButton = _k === void 0 ? undefined : _k, _l = _a.onClickDropdown, onClickDropdown = _l === void 0 ? function () { } : _l, _m = _a.options, options = _m === void 0 ? undefined : _m, _o = _a.placeholder, placeholder = _o === void 0 ? undefined : _o, _p = _a.readOnly, readOnly = _p === void 0 ? false : _p, _q = _a.required, required = _q === void 0 ? false : _q, _r = _a.searchVariant, searchVariant = _r === void 0 ? 'include' : _r, setValue = _a.setValue, _s = _a.size, size = _s === void 0 ? 'md' : _s, _t = _a.isValid, isValid = _t === void 0 ? null : _t, value = _a.value;
3041
2978
  var inputRef = useRef(null);
3042
- var _o = useLiveSearch$1({
2979
+ var _u = useLiveSearch$1({
3043
2980
  value: value,
3044
2981
  setValue: setValue,
3045
2982
  onChangeText: onChangeText,
3046
2983
  dropContOnClickItem: dropContProps === null || dropContProps === void 0 ? void 0 : dropContProps.onClickItem,
3047
- }), isOpen = _o.isOpen, setIsOpen = _o.setIsOpen, searchTerm = _o.searchTerm, handleInputChange = _o.handleInputChange, handleDropdownItemClick = _o.handleDropdownItemClick;
3048
- var _p = sizeConfig$7[size], iconClass = _p.iconClass, iconSize = _p.iconSize, inputClass = _p.inputClass;
3049
- var _q = dropContProps || {}, dropContClassName = _q.className; _q.onClickItem; _q.anchorRef; var restDropContProps = __rest(_q, ["className", "onClickItem", "anchorRef"]);
2984
+ }), isOpen = _u.isOpen, setIsOpen = _u.setIsOpen, searchTerm = _u.searchTerm, handleInputChange = _u.handleInputChange, handleDropdownItemClick = _u.handleDropdownItemClick;
2985
+ var _v = sizeConfig$7[size], iconClass = _v.iconClass, iconSize = _v.iconSize, inputClass = _v.inputClass;
2986
+ var _w = dropContProps || {}, dropContClassName = _w.className; _w.onClickItem; _w.anchorRef; var restDropContProps = __rest(_w, ["className", "onClickItem", "anchorRef"]);
3050
2987
  var isSearchTermExist = searchTerm && searchTerm !== '';
3051
2988
  var descColor = 'text-primary-cool';
3052
2989
  var isExistValidation = isValid !== null && isValid !== undefined;
@@ -3055,7 +2992,7 @@ function LiveSearch(_a) {
3055
2992
  if (!disabled && isExistValidation && !isValid)
3056
2993
  descColor = 'text-bia-red';
3057
2994
  var filteredOptions = filterOptions(options || [], getItemLabel(value));
3058
- var _r = processRenderedChildren$1(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _r.renderedChildren, hasFilteredResults = _r.hasFilteredResults;
2995
+ var _x = processRenderedChildren$1(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _x.renderedChildren, hasFilteredResults = _x.hasFilteredResults;
3059
2996
  var disabledClass = disabled ? 'cursor-not-allowed' : '';
3060
2997
  return (React.createElement("div", { className: "bianic-livesearch bianic-fgc-container bianic-text-input-container field-group group/form flex w-full flex-col gap-y-2" },
3061
2998
  label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
@@ -3066,7 +3003,7 @@ function LiveSearch(_a) {
3066
3003
  }, type: "text", readOnly: readOnly, autoComplete: autoComplete }),
3067
3004
  React.createElement("div", { className: "absolute inset-y-0 flex items-center pl-3 ".concat(iconClass), style: {
3068
3005
  zIndex: (restDropContProps === null || restDropContProps === void 0 ? void 0 : restDropContProps.zIndex)
3069
- ? (restDropContProps === null || restDropContProps === void 0 ? void 0 : restDropContProps.zIndex) + 20
3006
+ ? restDropContProps.zIndex + 20
3070
3007
  : 20,
3071
3008
  } },
3072
3009
  !isSearchTermExist && (React.createElement(TbZoom, { className: "text-primary-black", style: { fontSize: iconSize } })),
@@ -3095,19 +3032,6 @@ function LiveSearch(_a) {
3095
3032
  searchTerm.length > 0 && (React.createElement(DropdownItem, { content: React.createElement("div", { className: "px-4 py-2 text-gray-500" }, "Tidak ada hasil ditemukan.") }))))),
3096
3033
  descText && (React.createElement("span", { className: "bianic-livesearch-desc bianic-text-input-desc text-xs ".concat(descColor) }, descText))));
3097
3034
  }
3098
- LiveSearch.defaultProps = {
3099
- descText: '',
3100
- disabled: false,
3101
- id: '',
3102
- size: 'md',
3103
- label: '',
3104
- placeholder: '',
3105
- required: false,
3106
- options: [],
3107
- setValue: function () { },
3108
- value: {},
3109
- readonly: false,
3110
- };
3111
3035
 
3112
3036
  var sizeConfig$6 = {
3113
3037
  md: {
@@ -3174,10 +3098,12 @@ var processDropdownChildren = function (nodes, currentSearchTerm, includeAllIfNo
3174
3098
  if (!isDisabled) {
3175
3099
  if (itemValue === undefined &&
3176
3100
  typeof itemProps.content === 'string') {
3177
- return handleDropdownItemClick(divEvent, itemContent);
3101
+ handleDropdownItemClick(divEvent, itemContent);
3102
+ return;
3178
3103
  }
3179
3104
  if (typeof itemValue === 'object' || itemValue !== undefined) {
3180
- return handleDropdownItemClick(divEvent, itemValue);
3105
+ handleDropdownItemClick(divEvent, itemValue);
3106
+ return;
3181
3107
  }
3182
3108
  }
3183
3109
  if (itemProps.onClickItem) {
@@ -3191,7 +3117,6 @@ var processDropdownChildren = function (nodes, currentSearchTerm, includeAllIfNo
3191
3117
  var processRenderedChildren = function (children, searchTerm, searchVariant, handleDropdownItemClick, existingValues) {
3192
3118
  var renderedChildren = null;
3193
3119
  var hasFilteredResults = false;
3194
- if ((existingValues === null || existingValues === void 0 ? void 0 : existingValues.length) > 0) ;
3195
3120
  if (searchTerm || (existingValues === null || existingValues === void 0 ? void 0 : existingValues.length) > 0) {
3196
3121
  renderedChildren = processDropdownChildren(children, searchTerm, false, handleDropdownItemClick, existingValues, searchVariant);
3197
3122
  }
@@ -3286,12 +3211,17 @@ var colorUnion = [
3286
3211
  var sizeUnion$1 = ['md', 'sm', 'tn'];
3287
3212
  var variantUnion = ['label', 'icon', 'closeable', 'monospace'];
3288
3213
  function TagLabel(_a) {
3289
- var color = _a.color, _b = _a.size, size = _b === void 0 ? 'md' : _b, variant = _a.variant, closeHandler = _a.closeHandler, open = _a.open, text = _a.text, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon; _a.left; _a.right; var _c = _a.bgColor, bgColor = _c === void 0 ? 'grey-light-50' : _c, _d = _a.textColor, textColor = _d === void 0 ? 'black' : _d, outlineColor = _a.outlineColor, isBlock = _a.isBlock, maxWidth = _a.maxWidth, isDark = _a.isDark; _a.style; var props = __rest(_a, ["color", "size", "variant", "closeHandler", "open", "text", "leftIcon", "rightIcon", "left", "right", "bgColor", "textColor", "outlineColor", "isBlock", "maxWidth", "isDark", "style"]);
3214
+ var color = _a.color, _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.variant, variant = _c === void 0 ? undefined : _c, _d = _a.closeHandler, closeHandler = _d === void 0 ? undefined : _d, _e = _a.open, open = _e === void 0 ? undefined : _e, text = _a.text, _f = _a.leftIcon, leftIcon = _f === void 0 ? undefined : _f, _g = _a.rightIcon, rightIcon = _g === void 0 ? undefined : _g;
3215
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
3216
+ _a.left;
3217
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
3218
+ _a.right;
3219
+ var _k = _a.bgColor, bgColor = _k === void 0 ? 'grey-light-50' : _k, _l = _a.textColor, textColor = _l === void 0 ? 'black' : _l, _m = _a.outlineColor, outlineColor = _m === void 0 ? undefined : _m, _o = _a.isBlock, isBlock = _o === void 0 ? undefined : _o, _p = _a.maxWidth, maxWidth = _p === void 0 ? undefined : _p, _q = _a.isDark, isDark = _q === void 0 ? undefined : _q; _a.style; var props = __rest(_a, ["color", "size", "variant", "closeHandler", "open", "text", "leftIcon", "rightIcon", "left", "right", "bgColor", "textColor", "outlineColor", "isBlock", "maxWidth", "isDark", "style"]);
3290
3220
  var validatedColor = validUnion(color, colorUnion);
3291
3221
  var validatedSize = validUnion(size, sizeUnion$1);
3292
3222
  var validatedVariant = validUnion(variant, variantUnion);
3293
3223
  var containerRef = useRef(null);
3294
- var _e = useState(null), sizeCount = _e[0], setSizeCount = _e[1];
3224
+ var _r = useState(null), sizeCount = _r[0], setSizeCount = _r[1];
3295
3225
  useEffect(function () {
3296
3226
  if (variant === 'icon') {
3297
3227
  // Get the size of the icon
@@ -3324,11 +3254,12 @@ function TagLabel(_a) {
3324
3254
  var fontClass = validatedVariant === 'monospace' ? 'font-sans-code' : 'font-segoe pb-[1px]';
3325
3255
  var textClass = "".concat(alignTextClass, " ").concat(fontClass);
3326
3256
  var containerClass = "".concat(sizeClass, " ").concat(colorClass, " ").concat(roundedClass, " ").concat(isCloseableClass, " ").concat(blockclass);
3327
- var closeColor = validatedColor === 'custom'
3328
- ? isDark
3257
+ var closeColor = closeColorConfig[validatedColor];
3258
+ if (validatedColor === 'custom') {
3259
+ closeColor = isDark
3329
3260
  ? "bg-bia-white-transparent-50 text-bia-".concat(bgColor)
3330
- : "bg-bia-grey-dark-30 text-bia-".concat(bgColor)
3331
- : closeColorConfig[validatedColor];
3261
+ : "bg-bia-grey-dark-30 text-bia-".concat(bgColor);
3262
+ }
3332
3263
  var closeClass = "".concat(closeColor, " ").concat(closeSizeConfig[validatedSize]);
3333
3264
  var isOpen = isCloseable ? open : true;
3334
3265
  return (isOpen && (React.createElement("div", __assign({ className: "tag-label flex items-center gap-x-[5px] text-size-base ".concat(containerClass), style: {
@@ -3347,28 +3278,13 @@ function TagLabel(_a) {
3347
3278
  isCloseable && (React.createElement("button", { type: "button", onClick: closeHandler, className: "flex aspect-square items-center justify-center rounded-full pt-[1px] ".concat(closeClass) },
3348
3279
  React.createElement(TbX, null))))));
3349
3280
  }
3350
- TagLabel.defaultProps = {
3351
- variant: 'default',
3352
- size: 'sm',
3353
- open: true,
3354
- closeHandler: function () { },
3355
- leftIcon: null,
3356
- rightIcon: null,
3357
- left: null,
3358
- right: null,
3359
- bgColor: 'grey-light-50',
3360
- textColor: 'black',
3361
- isBlock: false,
3362
- maxWidth: 300,
3363
- isDark: false,
3364
- };
3365
3281
 
3366
3282
  function TagLabelInputInner(_a, ref) {
3367
- var _b = _a.children, children = _b === void 0 ? undefined : _b, className = _a.className, _c = _a.description, description = _c === void 0 ? '' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.dropContProps, dropContProps = _e === void 0 ? {} : _e, _f = _a.id, customId = _f === void 0 ? undefined : _f, _g = _a.isValid, isValid = _g === void 0 ? null : _g, _h = _a.label, label = _h === void 0 ? '' : _h, onBlur = _a.onBlur, onChange = _a.onChange, _j = _a.onChangeText, onChangeText = _j === void 0 ? function () { } : _j, onFocus = _a.onFocus, placeholder = _a.placeholder, _k = _a.readOnly, readOnly = _k === void 0 ? false : _k, _l = _a.required, required = _l === void 0 ? false : _l, _m = _a.size, size = _m === void 0 ? 'md' : _m, _o = _a.value, value = _o === void 0 ? [] : _o, _p = _a.zIndex, zIndex = _p === void 0 ? 10 : _p, restInputProps = __rest(_a, ["children", "className", "description", "disabled", "dropContProps", "id", "isValid", "label", "onBlur", "onChange", "onChangeText", "onFocus", "placeholder", "readOnly", "required", "size", "value", "zIndex"]);
3283
+ var _b = _a.children, children = _b === void 0 ? undefined : _b, className = _a.className, _c = _a.description, description = _c === void 0 ? '' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.dropContProps, dropContProps = _e === void 0 ? {} : _e, _f = _a.id, customId = _f === void 0 ? undefined : _f, _g = _a.isValid, isValid = _g === void 0 ? null : _g, _h = _a.label, label = _h === void 0 ? '' : _h, onBlur = _a.onBlur, onChange = _a.onChange, _j = _a.onChangeText, onChangeText = _j === void 0 ? function () { } : _j, onFocus = _a.onFocus, placeholder = _a.placeholder, _k = _a.readOnly, readOnly = _k === void 0 ? false : _k, _l = _a.required, required = _l === void 0 ? false : _l, _m = _a.size, size = _m === void 0 ? 'md' : _m, value = _a.value, _o = _a.zIndex, zIndex = _o === void 0 ? 10 : _o, restInputProps = __rest(_a, ["children", "className", "description", "disabled", "dropContProps", "id", "isValid", "label", "onBlur", "onChange", "onChangeText", "onFocus", "placeholder", "readOnly", "required", "size", "value", "zIndex"]);
3368
3284
  var generatedId = useId();
3369
3285
  var inputId = customId || generatedId;
3370
- var _q = useState(false), isFocused = _q[0], setIsFocused = _q[1];
3371
- var _r = useState(false), isHovered = _r[0], setIsHovered = _r[1];
3286
+ var _p = useState(false), isFocused = _p[0], setIsFocused = _p[1];
3287
+ var _q = useState(false), isHovered = _q[0], setIsHovered = _q[1];
3372
3288
  var internalInputRef = useRef(null);
3373
3289
  var containerRef = useRef(null);
3374
3290
  useImperativeHandle(ref, function () { return internalInputRef.current; });
@@ -3392,12 +3308,12 @@ function TagLabelInputInner(_a, ref) {
3392
3308
  var updatedValues = value.filter(function (_, idx) { return idx !== indexToRemove; });
3393
3309
  onChange(updatedValues);
3394
3310
  };
3395
- var _s = useLiveSearch({
3311
+ var _r = useLiveSearch({
3396
3312
  value: value,
3397
3313
  setValue: onChange,
3398
3314
  onChangeText: onChangeText,
3399
3315
  dropContOnClickItem: dropContProps === null || dropContProps === void 0 ? void 0 : dropContProps.onClickItem,
3400
- }), isOpen = _s.isOpen, setIsOpen = _s.setIsOpen, searchTerm = _s.searchTerm, handleInputChange = _s.handleInputChange, handleDropdownItemClick = _s.handleDropdownItemClick;
3316
+ }), isOpen = _r.isOpen, setIsOpen = _r.setIsOpen, searchTerm = _r.searchTerm, handleInputChange = _r.handleInputChange, handleDropdownItemClick = _r.handleDropdownItemClick;
3401
3317
  var handleKeyDown = function (e) {
3402
3318
  var _a;
3403
3319
  if (e.key === 'Backspace' && searchTerm === '' && value.length > 0) {
@@ -3426,14 +3342,13 @@ function TagLabelInputInner(_a, ref) {
3426
3342
  return 'border-b-bia-red';
3427
3343
  return 'border-b-bia-blue';
3428
3344
  };
3429
- var descColor = !disabled && isExistValidation
3430
- ? isValid
3431
- ? 'text-bia-green'
3432
- : 'text-bia-red'
3433
- : 'text-primary-cool';
3434
- var _t = sizeConfig$6[size], inputClass = _t.inputClass, paddingClass = _t.paddingClass, resizePosition = _t.resizePosition;
3435
- var _u = dropContProps || {}, dropContClassName = _u.className, restDropContProps = __rest(_u, ["className"]);
3436
- var _v = processRenderedChildren(children, searchTerm, 'include', handleDropdownItemClick, value), renderedChildren = _v.renderedChildren, hasFilteredResults = _v.hasFilteredResults;
3345
+ var descColor = 'text-primary-cool';
3346
+ if (!disabled && isExistValidation) {
3347
+ descColor = isValid ? 'text-bia-green' : 'text-bia-red';
3348
+ }
3349
+ var _s = sizeConfig$6[size], inputClass = _s.inputClass, paddingClass = _s.paddingClass, resizePosition = _s.resizePosition;
3350
+ var _t = dropContProps || {}, dropContClassName = _t.className, restDropContProps = __rest(_t, ["className"]);
3351
+ var _u = processRenderedChildren(children, searchTerm, 'include', handleDropdownItemClick, value), renderedChildren = _u.renderedChildren, hasFilteredResults = _u.hasFilteredResults;
3437
3352
  var showPlaceholder = !disabled && !readOnly && value.length === 0;
3438
3353
  console.log('showPlaceholder', showPlaceholder);
3439
3354
  return (React.createElement("div", { className: cn$1('relative w-full', className) },
@@ -3490,14 +3405,6 @@ function Toggle(_a) {
3490
3405
  React.createElement("div", { className: "check-icon group peer z-10 m-[2px] flex h-full w-5/12 justify-center rounded-full border-2 border-primary-white bg-bia-grey text-bia-grey outline-2 peer-checked:border-bia-blue peer-checked:bg-primary-white peer-checked:hover:bg-primary-white peer-hover:bg-bia-blue-hover peer-checked:peer-hover:bg-primary-white peer-disabled:cursor-not-allowed peer-disabled:border-none peer-disabled:bg-bia-grey-dark-10 peer-disabled:outline-none peer-disabled:peer-checked:bg-bia-blue-light-90" })),
3491
3406
  React.createElement("label", { htmlFor: id, className: "text-grey-800 ml-2 font-normal leading-4 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
3492
3407
  }
3493
- Toggle.defaultProps = {
3494
- label: '',
3495
- size: 'md',
3496
- onClick: function () { },
3497
- checked: false,
3498
- id: '',
3499
- disabled: false,
3500
- };
3501
3408
 
3502
3409
  var isSelectedConfig = {
3503
3410
  selected: 'bg-white text-primary-black cursor-default',
@@ -3546,7 +3453,7 @@ function SegmentButtonGroup(_a) {
3546
3453
 
3547
3454
  var sizeUnion = ['md', 'sm'];
3548
3455
  function FormGroup(_a) {
3549
- var children = _a.children, size = _a.size;
3456
+ var _b = _a.children, children = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? undefined : _c;
3550
3457
  var validSize = validUnion(size, sizeUnion);
3551
3458
  return (React.createElement("div", { className: "bianic-form-group flex items-end" }, Children.map(children, function (child) {
3552
3459
  var _a;
@@ -3577,7 +3484,7 @@ var labelSizeConfig = {
3577
3484
  };
3578
3485
 
3579
3486
  function FormGroupLabel(_a) {
3580
- var iconLeft = _a.iconLeft, iconRight = _a.iconRight, _b = _a.size, size = _b === void 0 ? 'md' : _b, text = _a.text, htmlFor = _a.htmlFor, props = __rest(_a, ["iconLeft", "iconRight", "size", "text", "htmlFor"]);
3487
+ var _b = _a.iconLeft, iconLeft = _b === void 0 ? undefined : _b, _c = _a.iconRight, iconRight = _c === void 0 ? undefined : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, _e = _a.text, text = _e === void 0 ? undefined : _e, htmlFor = _a.htmlFor, props = __rest(_a, ["iconLeft", "iconRight", "size", "text", "htmlFor"]);
3581
3488
  var sizeClass = labelSizeConfig[size];
3582
3489
  return (React.createElement("label", __assign({ htmlFor: htmlFor, className: "bianic-fgc-label flex items-center justify-center whitespace-nowrap border border-bia-grey-dark-10 bg-bia-grey-light-80 p-[11px] font-semibold text-bia-black ".concat(sizeClass) }, props),
3583
3490
  childrenElement(iconLeft),
@@ -3635,7 +3542,7 @@ var checkIsValidDate = function (dateString) {
3635
3542
  date.getUTCDate() === day);
3636
3543
  };
3637
3544
  var dateToInputString = function (dateObj) {
3638
- if (!(dateObj instanceof Date) || isNaN(dateObj.getTime()))
3545
+ if (!(dateObj instanceof Date) || Number.isNaN(dateObj.getTime()))
3639
3546
  return '';
3640
3547
  var year = dateObj.getFullYear();
3641
3548
  var month = String(dateObj.getMonth() + 1).padStart(2, '0');
@@ -3674,11 +3581,12 @@ function DateDisplay(_a) {
3674
3581
  var isOutOfMonth = date.getMonth() !== viewMonthValue;
3675
3582
  var isStartRange = isRangeMode && checkDateEquals(date, startRangeDate);
3676
3583
  var isEndRange = isRangeMode && checkDateEquals(date, endRangeDate);
3677
- var isSelected = selectedDate
3678
- ? isRangeMode
3584
+ var isSelected = false;
3585
+ if (selectedDate) {
3586
+ isSelected = isRangeMode
3679
3587
  ? isStartRange || isEndRange
3680
- : checkDateEquals(date, new Date(selectedDate))
3681
- : false;
3588
+ : checkDateEquals(date, new Date(selectedDate));
3589
+ }
3682
3590
  var isBetween = isRangeMode && startRangeDate && endRangeDate
3683
3591
  ? (function () {
3684
3592
  var start = startRangeDate;
@@ -3692,43 +3600,60 @@ function DateDisplay(_a) {
3692
3600
  })()
3693
3601
  : false;
3694
3602
  var isToday = checkDateEquals(date, new Date(TODAY_VALUE));
3695
- var customClassname = isRangeMode && (isBetween || isStartRange || isEndRange)
3696
- ? isBetween
3697
- ? 'w-full'
3698
- : isStartRange
3699
- ? 'w-full rounded-l-full'
3700
- : 'rounded-r-full'
3701
- : 'w-[31px] rounded-full';
3702
- return (React.createElement("button", { type: "button", key: date.toString(), className: "bianic-datepicker-calendar-day flex h-[31px] items-center justify-center ".concat(customClassname, " ").concat(isSelected
3703
- ? 'border border-bia-blue-dark-10 bg-bia-blue-dark-10'
3704
- : isBetween
3705
- ? isOutOfMonth
3706
- ? 'border border-bia-blue-light-50 bg-bia-blue-light-50'
3707
- : 'border border-bia-blue-light-10 bg-bia-blue-light-10'
3708
- : isToday && !isOutOfRange
3709
- ? 'border border-bia-blue-light-50 bg-bia-blue-pastel'
3710
- : 'hover:bg-bia-blue-pastel'), disabled: isOutOfRange, onClick: function () { return onDateSelect(date); } },
3711
- React.createElement(Text, { variant: "small-text", extended: isSelected || isBetween
3712
- ? 'text-bia-white'
3713
- : isOutOfRange
3714
- ? 'text-bia-coolgrey-light-50'
3715
- : isOutOfMonth
3716
- ? 'text-bia-coolgrey'
3717
- : 'text-bia-black' }, date.getDate())));
3603
+ var customClassname = 'w-[31px] rounded-full';
3604
+ if (isRangeMode && (isBetween || isStartRange || isEndRange)) {
3605
+ if (isBetween) {
3606
+ customClassname = 'w-full';
3607
+ }
3608
+ else if (isStartRange) {
3609
+ customClassname = 'w-full rounded-l-full';
3610
+ }
3611
+ else {
3612
+ customClassname = 'rounded-r-full';
3613
+ }
3614
+ }
3615
+ var dayStateClass = 'hover:bg-bia-blue-pastel';
3616
+ if (isSelected) {
3617
+ dayStateClass = 'border border-bia-blue-dark-10 bg-bia-blue-dark-10';
3618
+ }
3619
+ else if (isBetween) {
3620
+ dayStateClass = isOutOfMonth
3621
+ ? 'border border-bia-blue-light-50 bg-bia-blue-light-50'
3622
+ : 'border border-bia-blue-light-10 bg-bia-blue-light-10';
3623
+ }
3624
+ else if (isToday && !isOutOfRange) {
3625
+ dayStateClass = 'border border-bia-blue-light-50 bg-bia-blue-pastel';
3626
+ }
3627
+ var textStyle = 'text-bia-black';
3628
+ if (isSelected || isBetween) {
3629
+ textStyle = 'text-bia-white';
3630
+ }
3631
+ else if (isOutOfRange) {
3632
+ textStyle = 'text-bia-coolgrey-light-50';
3633
+ }
3634
+ else if (isOutOfMonth) {
3635
+ textStyle = 'text-bia-coolgrey';
3636
+ }
3637
+ return (React.createElement("button", { type: "button", key: date.toString(), className: "bianic-datepicker-calendar-day flex h-[31px] items-center justify-center ".concat(customClassname, " ").concat(dayStateClass), disabled: isOutOfRange, onClick: function () { return onDateSelect(date); } },
3638
+ React.createElement(Text, { variant: "small-text", extended: textStyle }, date.getDate())));
3718
3639
  }))));
3719
3640
  }
3720
3641
 
3721
3642
  function MonthDisplay(_a) {
3722
- var viewYearValue = _a.viewYearValue, selectedDate = _a.selectedDate; _a.viewMonthValue; var minDateValue = _a.minDateValue, maxDateValue = _a.maxDateValue, onMonthSelect = _a.onMonthSelect;
3723
- var selectedDates = Array.isArray(selectedDate)
3724
- ? selectedDate
3725
- : selectedDate
3726
- ? [selectedDate]
3727
- : [];
3643
+ var viewYearValue = _a.viewYearValue, selectedDate = _a.selectedDate;
3644
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
3645
+ _a.viewMonthValue; var minDateValue = _a.minDateValue, maxDateValue = _a.maxDateValue, onMonthSelect = _a.onMonthSelect;
3646
+ var selectedDates = [];
3647
+ if (Array.isArray(selectedDate)) {
3648
+ selectedDates = selectedDate;
3649
+ }
3650
+ else if (selectedDate) {
3651
+ selectedDates = [selectedDate];
3652
+ }
3728
3653
  var isMonthAlreadySelected = function (monthIndex) {
3729
3654
  return selectedDates.some(function (date) {
3730
- var dateYear = parseInt(date.slice(0, 4));
3731
- var dateMonth = parseInt(date.slice(5, 7)) - 1;
3655
+ var dateYear = parseInt(date.slice(0, 4), 10);
3656
+ var dateMonth = parseInt(date.slice(5, 7), 10) - 1;
3732
3657
  return dateYear === viewYearValue && dateMonth === monthIndex;
3733
3658
  });
3734
3659
  };
@@ -3751,23 +3676,26 @@ function MonthDisplay(_a) {
3751
3676
  viewYearValue ===
3752
3677
  parseInt((Array.isArray(selectedDate)
3753
3678
  ? selectedDate[0]
3754
- : selectedDate).slice(0, 4)) &&
3679
+ : selectedDate).slice(0, 4), 10) &&
3755
3680
  index ===
3756
3681
  parseInt((Array.isArray(selectedDate)
3757
3682
  ? selectedDate[0]
3758
- : selectedDate).slice(5, 7)) -
3683
+ : selectedDate).slice(5, 7), 10) -
3759
3684
  1;
3685
+ var textStyle = 'text-bia-black';
3686
+ if (isSelected || isAlreadySelected) {
3687
+ textStyle = 'text-bia-white';
3688
+ }
3689
+ else if (isOutOfRange) {
3690
+ textStyle = 'text-bia-coolgrey-light-50';
3691
+ }
3760
3692
  return (React.createElement("button", { type: "button", key: month, onClick: function (e) {
3761
3693
  e.stopPropagation();
3762
3694
  onMonthSelect(index);
3763
3695
  }, disabled: isOutOfRange, className: "bianic-datepicker-calendar-month mx-[15px] flex h-[31px] items-center justify-center rounded-full ".concat(isSelected || isAlreadySelected
3764
3696
  ? 'border border-bia-blue-dark-10 bg-bia-blue-dark-10'
3765
3697
  : 'enabled:hover:bg-bia-blue-pastel') },
3766
- React.createElement(Text, { variant: "small-text", extended: isSelected || isAlreadySelected
3767
- ? 'text-bia-white'
3768
- : isOutOfRange
3769
- ? 'text-bia-coolgrey-light-50'
3770
- : 'text-bia-black' }, month.slice(0, 3))));
3698
+ React.createElement(Text, { variant: "small-text", extended: textStyle }, month.slice(0, 3))));
3771
3699
  })));
3772
3700
  }
3773
3701
 
@@ -3778,30 +3706,44 @@ function YearDisplay(_a) {
3778
3706
  (maxDateValue && year > maxDateValue.getFullYear()));
3779
3707
  var isSelected = year === viewYearValue;
3780
3708
  var isEdgeYear = index === 0 || index === 11;
3709
+ var textStyle = 'text-bia-black';
3710
+ if (isSelected) {
3711
+ textStyle = 'text-bia-white';
3712
+ }
3713
+ else if (isOutOfRange) {
3714
+ textStyle = 'text-bia-coolgrey-light-50';
3715
+ }
3716
+ else if (isEdgeYear) {
3717
+ textStyle = 'text-bia-coolgrey';
3718
+ }
3781
3719
  return (React.createElement("button", { type: "button", key: year, onClick: function (e) {
3782
3720
  e.stopPropagation();
3783
3721
  onYearSelect(year);
3784
3722
  }, disabled: isOutOfRange, className: "bianic-datepicker-calendar-month mx-[6px] flex h-[31px] items-center justify-center rounded-full ".concat(isSelected
3785
3723
  ? 'border border-bia-blue-dark-10 bg-bia-blue-dark-10'
3786
3724
  : 'enabled:hover:bg-bia-blue-pastel', " ").concat(isEdgeYear ? 'text-bia-coolgrey' : '') },
3787
- React.createElement(Text, { variant: "small-text", extended: isSelected
3788
- ? 'text-bia-white'
3789
- : isOutOfRange
3790
- ? 'text-bia-coolgrey-light-50'
3791
- : isEdgeYear
3792
- ? 'text-bia-coolgrey'
3793
- : 'text-bia-black' }, year)));
3725
+ React.createElement(Text, { variant: "small-text", extended: textStyle }, year)));
3794
3726
  })));
3795
3727
  }
3796
3728
 
3797
3729
  function PickerHeader(_a) {
3798
- var pickerMode = _a.pickerMode, viewMonthValue = _a.viewMonthValue, viewYearValue = _a.viewYearValue, yearDisplayRange = _a.yearDisplayRange, isPrevDisabled = _a.isPrevDisabled, isNextDisabled = _a.isNextDisabled, handlePrevMonth = _a.handlePrevMonth, handlePrevYear = _a.handlePrevYear, handlePrevDecade = _a.handlePrevDecade, handleNextMonth = _a.handleNextMonth, handleNextYear = _a.handleNextYear, handleNextDecade = _a.handleNextDecade, handlePickerMode = _a.handlePickerMode;
3730
+ var pickerMode = _a.pickerMode, viewMonthValue = _a.viewMonthValue, viewYearValue = _a.viewYearValue, yearDisplayRange = _a.yearDisplayRange, _b = _a.isPrevDisabled, isPrevDisabled = _b === void 0 ? undefined : _b, _c = _a.isNextDisabled, isNextDisabled = _c === void 0 ? undefined : _c, _d = _a.handlePrevMonth, handlePrevMonth = _d === void 0 ? undefined : _d, _e = _a.handlePrevYear, handlePrevYear = _e === void 0 ? undefined : _e, _f = _a.handlePrevDecade, handlePrevDecade = _f === void 0 ? undefined : _f, _g = _a.handleNextMonth, handleNextMonth = _g === void 0 ? undefined : _g, _h = _a.handleNextYear, handleNextYear = _h === void 0 ? undefined : _h, _j = _a.handleNextDecade, handleNextDecade = _j === void 0 ? undefined : _j, handlePickerMode = _a.handlePickerMode;
3731
+ var handlePrev = handlePrevDecade;
3732
+ if (pickerMode === 'date') {
3733
+ handlePrev = handlePrevMonth;
3734
+ }
3735
+ else if (pickerMode === 'month') {
3736
+ handlePrev = handlePrevYear;
3737
+ }
3738
+ var handleNext = handleNextDecade;
3739
+ if (pickerMode === 'date') {
3740
+ handleNext = handleNextMonth;
3741
+ }
3742
+ else if (pickerMode === 'month') {
3743
+ handleNext = handleNextYear;
3744
+ }
3799
3745
  return (React.createElement("div", { className: "bianic-datepicker-calendar-controller flex w-full items-center justify-between" },
3800
- React.createElement("button", { type: "button", className: "bianic-datepicker-calendar-prev-button text-bia-coolgrey disabled:text-bia-coolgrey-light-50", disabled: isPrevDisabled(), onClick: pickerMode === 'date'
3801
- ? handlePrevMonth
3802
- : pickerMode === 'month'
3803
- ? handlePrevYear
3804
- : handlePrevDecade },
3746
+ React.createElement("button", { type: "button", className: "bianic-datepicker-calendar-prev-button text-bia-coolgrey disabled:text-bia-coolgrey-light-50", disabled: isPrevDisabled ? isPrevDisabled() : false, onClick: handlePrev },
3805
3747
  React.createElement(TbChevronLeft, { size: 18 })),
3806
3748
  React.createElement("div", { className: "bianic-datepicker-calendar-current-month flex items-center justify-center gap-1" },
3807
3749
  React.createElement("button", { type: "button", className: pickerMode === 'date' ? '' : 'hidden', onClick: function (e) {
@@ -3818,11 +3760,7 @@ function PickerHeader(_a) {
3818
3760
  React.createElement(Text, { variant: "normal-text" }, viewYearValue)),
3819
3761
  React.createElement("button", { type: "button", className: pickerMode === 'year' ? '' : 'hidden' },
3820
3762
  React.createElement(Text, { variant: "normal-text" }, "".concat(yearDisplayRange[1], " - ").concat(yearDisplayRange[10])))),
3821
- React.createElement("button", { type: "button", className: "bianic-datepicker-calendar-next-button text-bia-coolgrey disabled:text-bia-coolgrey-light-50", disabled: isNextDisabled(), onClick: pickerMode === 'date'
3822
- ? handleNextMonth
3823
- : pickerMode === 'month'
3824
- ? handleNextYear
3825
- : handleNextDecade },
3763
+ React.createElement("button", { type: "button", className: "bianic-datepicker-calendar-next-button text-bia-coolgrey disabled:text-bia-coolgrey-light-50", disabled: isNextDisabled ? isNextDisabled() : false, onClick: handleNext },
3826
3764
  React.createElement(TbChevronRight, { size: 18 }))));
3827
3765
  }
3828
3766
 
@@ -3905,7 +3843,7 @@ var useCalendarLogic = function (selectedDate, minDate, maxDate) {
3905
3843
  var startOfDecade = Math.floor(year / 10) * 10;
3906
3844
  var endOfDecade = startOfDecade + 9;
3907
3845
  var decadeRange = [];
3908
- for (var i = startOfDecade - 1; i < endOfDecade + 2; i++) {
3846
+ for (var i = startOfDecade - 1; i < endOfDecade + 2; i += 1) {
3909
3847
  decadeRange.push(i);
3910
3848
  }
3911
3849
  return decadeRange;
@@ -3967,12 +3905,12 @@ var useCalendarLogic = function (selectedDate, minDate, maxDate) {
3967
3905
  };
3968
3906
 
3969
3907
  function PickerContent(_a) {
3970
- var selectedDate = _a.selectedDate, onDateSelect = _a.onDateSelect, initialViewMonth = _a.initialViewMonth, initialViewYear = _a.initialViewYear, minDate = _a.minDate, maxDate = _a.maxDate, onPrevMonth = _a.onPrevMonth, onNextMonth = _a.onNextMonth, onMonthSelect = _a.onMonthSelect, onYearSelect = _a.onYearSelect;
3971
- var _b = useCalendarLogic(
3908
+ var selectedDate = _a.selectedDate, onDateSelect = _a.onDateSelect, _b = _a.initialViewMonth, initialViewMonth = _b === void 0 ? undefined : _b, _c = _a.initialViewYear, initialViewYear = _c === void 0 ? undefined : _c, minDate = _a.minDate, maxDate = _a.maxDate, _d = _a.onPrevMonth, onPrevMonth = _d === void 0 ? undefined : _d, _e = _a.onNextMonth, onNextMonth = _e === void 0 ? undefined : _e, _f = _a.onMonthSelect, onMonthSelect = _f === void 0 ? undefined : _f, _g = _a.onYearSelect, onYearSelect = _g === void 0 ? undefined : _g;
3909
+ var _h = useCalendarLogic(
3972
3910
  // use first selectedDate if array
3973
3911
  Array.isArray(selectedDate)
3974
3912
  ? selectedDate[0]
3975
- : selectedDate, minDate, maxDate), pickerMode = _b.pickerMode, viewMonthValue = _b.viewMonthValue, viewYearValue = _b.viewYearValue, yearDisplayRange = _b.yearDisplayRange, isPrevDisabled = _b.isPrevDisabled, isNextDisabled = _b.isNextDisabled, internalHandlePrevMonth = _b.handlePrevMonth, handlePrevYear = _b.handlePrevYear, handlePrevDecade = _b.handlePrevDecade, internalHandleNextMonth = _b.handleNextMonth, handleNextYear = _b.handleNextYear, handleNextDecade = _b.handleNextDecade, handlePickerMode = _b.handlePickerMode, getDisplayDays = _b.getDisplayDays, setViewMonthValue = _b.setViewMonthValue, setViewYearValue = _b.setViewYearValue, maxDateValue = _b.maxDateValue, minDateValue = _b.minDateValue;
3913
+ : selectedDate, minDate, maxDate), pickerMode = _h.pickerMode, viewMonthValue = _h.viewMonthValue, viewYearValue = _h.viewYearValue, yearDisplayRange = _h.yearDisplayRange, isPrevDisabled = _h.isPrevDisabled, isNextDisabled = _h.isNextDisabled, internalHandlePrevMonth = _h.handlePrevMonth, handlePrevYear = _h.handlePrevYear, handlePrevDecade = _h.handlePrevDecade, internalHandleNextMonth = _h.handleNextMonth, handleNextYear = _h.handleNextYear, handleNextDecade = _h.handleNextDecade, handlePickerMode = _h.handlePickerMode, getDisplayDays = _h.getDisplayDays, setViewMonthValue = _h.setViewMonthValue, setViewYearValue = _h.setViewYearValue, maxDateValue = _h.maxDateValue, minDateValue = _h.minDateValue;
3976
3914
  useEffect(function () {
3977
3915
  if (typeof initialViewMonth === 'number') {
3978
3916
  setViewMonthValue(initialViewMonth);
@@ -4022,16 +3960,12 @@ function RangePicker(_a) {
4022
3960
  var rightInitDate = selectedDate && selectedDate[1] ? new Date(selectedDate[1]) : new Date();
4023
3961
  var leftInitMonth = leftInitDate.getMonth();
4024
3962
  var leftInitYear = leftInitDate.getFullYear();
4025
- var rightInitMonth = rightInitDate
4026
- ? rightInitDate.getMonth()
4027
- : leftInitMonth === 11
4028
- ? 0
4029
- : leftInitMonth + 1;
4030
- var rightInitYear = rightInitDate
4031
- ? rightInitDate.getFullYear()
4032
- : leftInitMonth === 11
4033
- ? leftInitYear + 1
4034
- : leftInitYear;
3963
+ var rightInitMonth = leftInitMonth === 11 ? 0 : leftInitMonth + 1;
3964
+ var rightInitYear = leftInitMonth === 11 ? leftInitYear + 1 : leftInitYear;
3965
+ if (rightInitDate) {
3966
+ rightInitMonth = rightInitDate.getMonth();
3967
+ rightInitYear = rightInitDate.getFullYear();
3968
+ }
4035
3969
  // State to track left and right panel month/year
4036
3970
  var _b = useState(leftInitMonth), leftMonth = _b[0], setLeftMonth = _b[1];
4037
3971
  var _c = useState(leftInitYear), leftYear = _c[0], setLeftYear = _c[1];
@@ -4175,21 +4109,23 @@ function RangePicker(_a) {
4175
4109
  };
4176
4110
  var handleMonthSelect = function (dateIndex, initYear) {
4177
4111
  return function (val) {
4178
- var selectedDates = Array.isArray(selectedDate)
4179
- ? selectedDate
4180
- : selectedDate
4181
- ? [selectedDate]
4182
- : [];
4112
+ var selectedDates = [];
4113
+ if (Array.isArray(selectedDate)) {
4114
+ selectedDates = selectedDate;
4115
+ }
4116
+ else if (selectedDate) {
4117
+ selectedDates = [selectedDate];
4118
+ }
4183
4119
  var isMonthAlreadySelected = selectedDates.some(function (date) {
4184
- var dateYear = parseInt(date.slice(0, 4));
4185
- var dateMonth = parseInt(date.slice(5, 7)) - 1;
4120
+ var dateYear = parseInt(date.slice(0, 4), 10);
4121
+ var dateMonth = parseInt(date.slice(5, 7), 10) - 1;
4186
4122
  return dateYear === initYear && dateMonth === val;
4187
4123
  });
4188
4124
  if (isMonthAlreadySelected) {
4189
4125
  if (!selectedDates[dateIndex]) {
4190
4126
  return;
4191
4127
  }
4192
- var selectedMonth = parseInt(selectedDates[dateIndex].slice(5, 7)) - 1;
4128
+ var selectedMonth = parseInt(selectedDates[dateIndex].slice(5, 7), 10) - 1;
4193
4129
  if (val === selectedMonth) {
4194
4130
  if (dateIndex === 0) {
4195
4131
  ensureOrderedPickers(selectedMonth, initYear, rightMonth, rightYear);
@@ -4261,7 +4197,7 @@ var monthMap = [
4261
4197
  'December',
4262
4198
  ];
4263
4199
  function isDate(val) {
4264
- return val instanceof Date && !isNaN(val);
4200
+ return val instanceof Date && !Number.isNaN(val);
4265
4201
  }
4266
4202
  var displayDateFormatter = function (date) {
4267
4203
  if (!isDate(date))
@@ -4269,17 +4205,30 @@ var displayDateFormatter = function (date) {
4269
4205
  return "".concat(date.getDate(), " ").concat(monthMap[date.getMonth()].slice(0, 3), " '").concat(date.getFullYear().toString().slice(2, 4));
4270
4206
  };
4271
4207
  var DateInputDisplay = forwardRef(function (_a, ref) {
4272
- var value = _a.value, _b = _a.setValue, setValue = _b === void 0 ? function () { } : _b, _c = _a.placeholder, placeholder = _c === void 0 ? 'YYYY-MM-DD' : _c, _d = _a.label, label = _d === void 0 ? '' : _d, required = _a.required, readOnly = _a.readOnly, id = _a.id, _e = _a.size, size = _e === void 0 ? 'sm' : _e, className = _a.className, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.buttonAction, buttonAction = _g === void 0 ? function () { } : _g, _h = _a.nullDisplay, nullDisplay = _h === void 0 ? '' : _h;
4273
- var inputValue = value || (value === null || value === void 0 ? void 0 : value.length) > 0
4274
- ? Array.isArray(value)
4208
+ var value = _a.value, _b = _a.setValue, setValue = _b === void 0 ? function () { } : _b, _c = _a.placeholder, placeholder = _c === void 0 ? 'YYYY-MM-DD' : _c, _d = _a.label, label = _d === void 0 ? '' : _d, required = _a.required, readOnly = _a.readOnly, id = _a.id, _e = _a.size, size = _e === void 0 ? 'sm' : _e, className = _a.className, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.buttonAction, buttonAction = _g === void 0 ? function () { } : _g, _h = _a.nullDisplay, nullDisplay = _h === void 0 ? '' : _h;
4209
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
4210
+ _a.isActive;
4211
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
4212
+ _a.setIsActive;
4213
+ var hasValue = Boolean(value || (value && value.length > 0));
4214
+ var inputValue = '';
4215
+ if (hasValue) {
4216
+ inputValue = Array.isArray(value)
4275
4217
  ? "".concat(value[0], " ").concat(value[1] ? "- ".concat(value[1]) : '')
4276
- : value
4277
- : '';
4278
- var viewValue = value || (value === null || value === void 0 ? void 0 : value.length) > 0
4279
- ? Array.isArray(value)
4280
- ? "".concat(displayDateFormatter(new Date(value[0])), " ").concat(value[1] ? "- ".concat(displayDateFormatter(new Date(value[1]))) : '')
4281
- : displayDateFormatter(new Date(value))
4282
- : nullDisplay || placeholder;
4218
+ : value;
4219
+ }
4220
+ var viewValue = nullDisplay || placeholder;
4221
+ if (hasValue) {
4222
+ if (Array.isArray(value)) {
4223
+ var rangeEnd = value[1]
4224
+ ? "- ".concat(displayDateFormatter(new Date(value[1])))
4225
+ : '';
4226
+ viewValue = "".concat(displayDateFormatter(new Date(value[0])), " ").concat(rangeEnd);
4227
+ }
4228
+ else {
4229
+ viewValue = displayDateFormatter(new Date(value));
4230
+ }
4231
+ }
4283
4232
  var _j = useState(false), isEditing = _j[0], setIsEditing = _j[1];
4284
4233
  var _k = useState(inputValue), dateString = _k[0], setDateString = _k[1];
4285
4234
  var fieldStyle = styleConfig.text.fieldStyle;
@@ -4292,7 +4241,7 @@ var DateInputDisplay = forwardRef(function (_a, ref) {
4292
4241
  // --- Validation and Conversion Logic ---
4293
4242
  if (rawValue) {
4294
4243
  var newDate = new Date(rawValue);
4295
- if (!isNaN(newDate.getTime())) {
4244
+ if (!Number.isNaN(newDate.getTime())) {
4296
4245
  // If valid, update the Date object state
4297
4246
  if (setValue)
4298
4247
  setValue(rawValue);
@@ -4330,7 +4279,13 @@ var DateInputDisplay = forwardRef(function (_a, ref) {
4330
4279
  React.createElement("div", { className: "relative w-full", ref: ref }, input)));
4331
4280
  });
4332
4281
  DateInputDisplay.defaultProps = {
4282
+ setValue: undefined,
4283
+ placeholder: 'YYYY-MM-DD',
4284
+ label: undefined,
4333
4285
  isActive: false,
4286
+ setIsActive: undefined,
4287
+ buttonAction: undefined,
4288
+ nullDisplay: undefined,
4334
4289
  };
4335
4290
 
4336
4291
  function DatePicker(_a) {
@@ -4458,6 +4413,12 @@ var YearPickerDisplay = forwardRef(function (_a, ref) {
4458
4413
  React.createElement("div", { className: "relative w-full", ref: inputRef }, input),
4459
4414
  displayError && (React.createElement("span", { className: "text-xs text-bia-red" }, displayError))));
4460
4415
  });
4416
+ YearPickerDisplay.defaultProps = {
4417
+ maxYear: undefined,
4418
+ minYear: undefined,
4419
+ errorMessage: undefined,
4420
+ onErrorChange: undefined,
4421
+ };
4461
4422
  YearPickerDisplay.displayName = 'YearPickerDisplay';
4462
4423
 
4463
4424
  var useYearLogic = function (selectYear, minYear, maxYear) {
@@ -4481,7 +4442,7 @@ var useYearLogic = function (selectYear, minYear, maxYear) {
4481
4442
  var startOfDecade = Math.floor(year / 10) * 10;
4482
4443
  var endOfDecade = startOfDecade + 9;
4483
4444
  var decadeRange = [];
4484
- for (var i = startOfDecade - 1; i < endOfDecade + 2; i++) {
4445
+ for (var i = startOfDecade - 1; i < endOfDecade + 2; i += 1) {
4485
4446
  decadeRange.push(i);
4486
4447
  }
4487
4448
  return decadeRange;
@@ -4539,9 +4500,9 @@ var PickerYear = function (_a) {
4539
4500
  };
4540
4501
 
4541
4502
  function YearPicker(_a) {
4542
- var value = _a.value, onChange = _a.onChange, _b = _a.zIndexCalendar, zIndexCalendar = _b === void 0 ? 100 : _b, minYear = _a.minYear, maxYear = _a.maxYear, _c = _a.size, size = _c === void 0 ? 'md' : _c, disabled = _a.disabled, _d = _a.placeholder, placeholder = _d === void 0 ? '"YYYY-MM-DD"' : _d, label = _a.label, required = _a.required, nullDisplay = _a.nullDisplay, inputClassName = _a.inputClassName, containerClassName = _a.containerClassName;
4503
+ var value = _a.value, onChange = _a.onChange, _b = _a.zIndexCalendar, zIndexCalendar = _b === void 0 ? 100 : _b, _c = _a.minYear, minYear = _c === void 0 ? undefined : _c, _d = _a.maxYear, maxYear = _d === void 0 ? undefined : _d, _e = _a.size, size = _e === void 0 ? 'md' : _e, disabled = _a.disabled, _f = _a.placeholder, placeholder = _f === void 0 ? '"YYYY-MM-DD"' : _f, label = _a.label, required = _a.required, nullDisplay = _a.nullDisplay, inputClassName = _a.inputClassName, containerClassName = _a.containerClassName;
4543
4504
  var inputRef = useRef(null);
4544
- var _e = useState(false), isPickerOpen = _e[0], setIsPickerOpen = _e[1];
4505
+ var _g = useState(false), isPickerOpen = _g[0], setIsPickerOpen = _g[1];
4545
4506
  return (React.createElement("div", { className: "bianic-yearpicker-container relative ".concat(containerClassName) },
4546
4507
  React.createElement("div", { className: "bianic-yearpicker-field-container" },
4547
4508
  React.createElement(YearPickerDisplay, { className: inputClassName || '', value: value, setValue: onChange, placeholder: placeholder, nullDisplay: nullDisplay, size: size, label: label, required: required, buttonAction: function () { return setIsPickerOpen(!isPickerOpen); }, ref: inputRef, disabled: disabled, minYear: minYear, maxYear: maxYear })),
@@ -4681,9 +4642,9 @@ function SimpleFileUploader(_a) {
4681
4642
  }
4682
4643
 
4683
4644
  function DropzoneFileUploader(_a) {
4684
- var _b = _a.variant, variant = _b === void 0 ? 'general' : _b, accept = _a.accept, _c = _a.multiple, multiple = _c === void 0 ? false : _c, maxSize = _a.maxSize, _d = _a.disabled, disabled = _d === void 0 ? false : _d, label = _a.label, helperText = _a.helperText, errorMessage = _a.errorMessage, _e = _a.value, value = _e === void 0 ? [] : _e, onChange = _a.onChange, onRemove = _a.onRemove, onError = _a.onError, onDownload = _a.onDownload, className = _a.className;
4645
+ var _b = _a.variant, variant = _b === void 0 ? 'general' : _b, accept = _a.accept, _c = _a.multiple, multiple = _c === void 0 ? false : _c, maxSize = _a.maxSize, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.label, label = _e === void 0 ? undefined : _e, _f = _a.helperText, helperText = _f === void 0 ? undefined : _f, errorMessage = _a.errorMessage, _g = _a.value, value = _g === void 0 ? [] : _g, onChange = _a.onChange, onRemove = _a.onRemove, onError = _a.onError, _h = _a.onDownload, onDownload = _h === void 0 ? undefined : _h, className = _a.className;
4685
4646
  var effectiveAccept = accept || (variant === 'image' ? 'image/*' : undefined);
4686
- var _f = useFileHandler({
4647
+ var _j = useFileHandler({
4687
4648
  accept: effectiveAccept,
4688
4649
  multiple: multiple,
4689
4650
  maxSize: maxSize,
@@ -4691,7 +4652,7 @@ function DropzoneFileUploader(_a) {
4691
4652
  value: value,
4692
4653
  onChange: onChange,
4693
4654
  onError: onError,
4694
- }), inputRef = _f.inputRef, isDragging = _f.isDragging, internalError = _f.internalError, handleDragOver = _f.handleDragOver, handleDragLeave = _f.handleDragLeave, handleDrop = _f.handleDrop, handleInputChange = _f.handleInputChange, triggerClick = _f.triggerClick;
4655
+ }), inputRef = _j.inputRef, isDragging = _j.isDragging, internalError = _j.internalError, handleDragOver = _j.handleDragOver, handleDragLeave = _j.handleDragLeave, handleDrop = _j.handleDrop, handleInputChange = _j.handleInputChange, triggerClick = _j.triggerClick;
4695
4656
  var isImageVariant = variant === 'image';
4696
4657
  var defaultTitle = isImageVariant
4697
4658
  ? 'Drag & Drop your Image here'
@@ -4950,21 +4911,15 @@ var sizeConfig$2 = {
4950
4911
  };
4951
4912
 
4952
4913
  function InfoPanel(_a) {
4953
- var variant = _a.variant, color = _a.color, className = _a.className, children = _a.children;
4914
+ var _b = _a.variant, variant = _b === void 0 ? 'container' : _b, _c = _a.color, color = _c === void 0 ? 'yellow' : _c, _d = _a.className, className = _d === void 0 ? '' : _d, _e = _a.children, children = _e === void 0 ? null : _e;
4954
4915
  var sizeClass = sizeConfig$2[variant || 'container'];
4955
4916
  var colorClass = colorConfig[color || 'yellow'];
4956
4917
  var allClasses = "".concat(sizeClass, " ").concat(colorClass, " ").concat(className);
4957
4918
  return (React.createElement("div", { className: "flex items-center justify-center rounded-radius-md ".concat(allClasses) }, children));
4958
4919
  }
4959
- InfoPanel.defaultProps = {
4960
- variant: 'container',
4961
- color: 'yellow',
4962
- className: '',
4963
- children: null,
4964
- };
4965
4920
 
4966
4921
  function Modal(_a) {
4967
- var _b = _a.size, size = _b === void 0 ? 'sm' : _b, title = _a.title, open = _a.open, _c = _a.zIndex, zIndex = _c === void 0 ? 100 : _c, onClose = _a.onClose, onClick = _a.onClick, rest = __rest(_a, ["size", "title", "open", "zIndex", "onClose", "onClick"]);
4922
+ var _b = _a.size, size = _b === void 0 ? 'sm' : _b, _c = _a.title, title = _c === void 0 ? undefined : _c, open = _a.open, _d = _a.zIndex, zIndex = _d === void 0 ? 100 : _d, onClose = _a.onClose, onClick = _a.onClick, rest = __rest(_a, ["size", "title", "open", "zIndex", "onClose", "onClick"]);
4968
4923
  var modalSize;
4969
4924
  if (size === 'sm') {
4970
4925
  modalSize = 'w-[300px]';
@@ -4989,7 +4944,9 @@ function Modal(_a) {
4989
4944
  if (open) {
4990
4945
  return (
4991
4946
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
4992
- createPortal(React.createElement("div", { className: "bianic-modal-wrapper fixed inset-0 flex items-center justify-center bg-bia-black-transparent-75", style: { zIndex: !zIndex && isNaN(zIndex) ? 'auto' : zIndex }, id: "wrapper", onPointerDown: handleClose },
4947
+ createPortal(React.createElement("div", { className: "bianic-modal-wrapper fixed inset-0 flex items-center justify-center bg-bia-black-transparent-75", style: {
4948
+ zIndex: !zIndex && Number.isNaN(zIndex) ? 'auto' : zIndex,
4949
+ }, id: "wrapper", onPointerDown: handleClose },
4993
4950
  React.createElement("div", { className: "bianic-modal flex flex-col gap-[20px] rounded-[5px] bg-white p-[20px] ".concat(modalSize), onClick: onClick },
4994
4951
  React.createElement("div", { className: "bianic-modal-header flex justify-between" },
4995
4952
  React.createElement("div", { className: " text-wrap text-left font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
@@ -5018,7 +4975,7 @@ var positionConfig = {
5018
4975
  };
5019
4976
 
5020
4977
  function SelectedPage(_a) {
5021
- var label = _a.label, _b = _a.size, size = _b === void 0 ? 'sm' : _b;
4978
+ var _b = _a.label, label = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c;
5022
4979
  var basicButtonStyle = 'bianic-custom-button bianic-fgc-target flex items-center justify-center font-semibold cursor-default';
5023
4980
  var basicColorStyle = 'text-primary-cool bg-bia-grey-dark-10 focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:outline-[3px] focus-visible:rounded-md focus-visible:outline-bia-blue-light-50';
5024
4981
  var textStyleOptions = {
@@ -5207,10 +5164,6 @@ function Popover(_a) {
5207
5164
  children,
5208
5165
  isOpen && (React.createElement(PopoverItem, { title: title, content: content, anchorRef: wrapperRef, direction: direction, className: className, style: style, zIndex: zIndex, color: color }))));
5209
5166
  }
5210
- Popover.defaultProps = {
5211
- direction: 'top',
5212
- title: '',
5213
- };
5214
5167
 
5215
5168
  var config$1 = {
5216
5169
  success: {
@@ -5250,7 +5203,7 @@ function ProgressCircle(_a) {
5250
5203
  }
5251
5204
 
5252
5205
  function SpinnerIcon(_a) {
5253
- var className = _a.className, props = __rest(_a, ["className"]);
5206
+ var _b = _a.className, className = _b === void 0 ? undefined : _b, props = __rest(_a, ["className"]);
5254
5207
  return React.createElement(TbLoader2, __assign({ className: "animate-spinner ".concat(className) }, props));
5255
5208
  }
5256
5209
 
@@ -5270,13 +5223,13 @@ var config = {
5270
5223
  };
5271
5224
 
5272
5225
  function ProgressBar(_a) {
5273
- var _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.percentage, percentage = _c === void 0 ? 0 : _c, caption = _a.caption, _d = _a.variant, variant = _d === void 0 ? 'loading' : _d, _e = _a.icon, icon = _e === void 0 ? true : _e, barColor = _a.barColor;
5226
+ var _b = _a.title, title = _b === void 0 ? '' : _b, percentage = _a.percentage, _c = _a.caption, caption = _c === void 0 ? undefined : _c, _d = _a.variant, variant = _d === void 0 ? 'loading' : _d, _e = _a.icon, icon = _e === void 0 ? true : _e, _f = _a.barColor, barColor = _f === void 0 ? undefined : _f;
5274
5227
  var percentageVal = percentage;
5275
5228
  if (percentageVal === 0)
5276
5229
  percentageVal = 0.5;
5277
5230
  if (percentage > 100)
5278
5231
  percentageVal = 100;
5279
- var _f = config[variant], progress = _f.progress, statusIcon = _f.statusIcon;
5232
+ var _g = config[variant], progress = _g.progress, statusIcon = _g.statusIcon;
5280
5233
  var barColorRules = barColor
5281
5234
  ? "outline-bia-".concat(barColor, " bg-bia-").concat(barColor)
5282
5235
  : progress; // Use the provided barColor or fallback to the default progress color
@@ -5310,7 +5263,7 @@ var resizerContainerClass = {
5310
5263
  };
5311
5264
 
5312
5265
  function ResizeableDiv(_a) {
5313
- var _b = _a.position, position = _b === void 0 ? 'bottom' : _b, children = _a.children, className = _a.className, initialWidth = _a.initialWidth, minWidth = _a.minWidth, maxWidth = _a.maxWidth, initialHeight = _a.initialHeight, minHeight = _a.minHeight, maxHeight = _a.maxHeight, ref = _a.ref, zIndex = _a.zIndex;
5266
+ var _b = _a.position, position = _b === void 0 ? 'bottom' : _b, children = _a.children, className = _a.className, _c = _a.initialWidth, initialWidth = _c === void 0 ? undefined : _c, _d = _a.minWidth, minWidth = _d === void 0 ? undefined : _d, _e = _a.maxWidth, maxWidth = _e === void 0 ? undefined : _e, _f = _a.initialHeight, initialHeight = _f === void 0 ? undefined : _f, _g = _a.minHeight, minHeight = _g === void 0 ? undefined : _g, _h = _a.maxHeight, maxHeight = _h === void 0 ? undefined : _h, ref = _a.ref, _j = _a.zIndex, zIndex = _j === void 0 ? undefined : _j;
5314
5267
  var internalRef = useRef(null);
5315
5268
  var container = ref || internalRef;
5316
5269
  var resizer = useRef(null);
@@ -5351,22 +5304,22 @@ function ResizeableDiv(_a) {
5351
5304
  };
5352
5305
  var isVerticalResizer = position === 'left' || position === 'right';
5353
5306
  var thumbClass = isVerticalResizer && 'rotate-90';
5354
- var containerWidth = typeof initialWidth === 'number' && !isNaN(initialWidth)
5307
+ var containerWidth = typeof initialWidth === 'number' && !Number.isNaN(initialWidth)
5355
5308
  ? "".concat(initialWidth, "px")
5356
5309
  : initialWidth;
5357
- var minimumWidth = typeof minWidth === 'number' && !isNaN(minWidth)
5310
+ var minimumWidth = typeof minWidth === 'number' && !Number.isNaN(minWidth)
5358
5311
  ? "".concat(minWidth, "px")
5359
5312
  : minWidth;
5360
- var maximumWidth = typeof maxWidth === 'number' && !isNaN(maxWidth)
5313
+ var maximumWidth = typeof maxWidth === 'number' && !Number.isNaN(maxWidth)
5361
5314
  ? "".concat(maxWidth, "px")
5362
5315
  : maxWidth;
5363
- var containerHeight = typeof initialHeight === 'number' && !isNaN(initialHeight)
5316
+ var containerHeight = typeof initialHeight === 'number' && !Number.isNaN(initialHeight)
5364
5317
  ? "".concat(initialHeight, "px")
5365
5318
  : initialHeight;
5366
- var minimumHeight = typeof minHeight === 'number' && !isNaN(minHeight)
5319
+ var minimumHeight = typeof minHeight === 'number' && !Number.isNaN(minHeight)
5367
5320
  ? "".concat(minHeight, "px")
5368
5321
  : minHeight;
5369
- var maximumHeight = typeof maxHeight === 'number' && !isNaN(maxHeight)
5322
+ var maximumHeight = typeof maxHeight === 'number' && !Number.isNaN(maxHeight)
5370
5323
  ? "".concat(maxHeight, "px")
5371
5324
  : maxHeight;
5372
5325
  var thumbZIndex = zIndex ? Number(zIndex) + 10 : 50;
@@ -5387,9 +5340,6 @@ function ResizeableDiv(_a) {
5387
5340
  React.createElement(TbDots, { className: "text-bia-grey-light-30" }))),
5388
5341
  React.createElement("div", { className: "h-full w-full peer-active:select-none ".concat(className) }, children)));
5389
5342
  }
5390
- ResizeableDiv.defaultProps = {
5391
- position: 'left',
5392
- };
5393
5343
 
5394
5344
  var containerSizeConfig = {
5395
5345
  minimized: 'w-[60px] min-w-[60px]',
@@ -5544,10 +5494,10 @@ function SidebarItemInner(_a, ref) {
5544
5494
  };
5545
5495
  return (React.createElement("div", { className: "relative" },
5546
5496
  React.createElement("div", { className: "absolute left-[33px] top-[3px] flex h-5 w-5 items-center justify-center" },
5547
- React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized && notificationCount === undefined
5548
- ? sumNotificationCounts(children) > 0
5549
- ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5550
- : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]'
5497
+ React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized &&
5498
+ notificationCount === undefined &&
5499
+ sumNotificationCounts(children) > 0
5500
+ ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5551
5501
  : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]') })),
5552
5502
  React.createElement("div", { className: cn$1('sidebar-item relative flex h-fit items-center', itemClass) },
5553
5503
  level === 2 && (React.createElement("div", { className: "relative left-[39px] h-full w-[1px] bg-bia-white" })),
@@ -5660,15 +5610,15 @@ function SidebarProfileInner(_a, ref) {
5660
5610
  })));
5661
5611
  });
5662
5612
  };
5663
- return (React.createElement("div", { className: "relative" },
5613
+ return (React.createElement("div", { className: "relative w-full" },
5664
5614
  React.createElement("div", { className: "absolute left-[33px] top-[3px] flex h-5 w-5 items-center justify-center" },
5665
- React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized && notificationCount === undefined
5666
- ? sumNotificationCounts(children) > 0
5667
- ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5668
- : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]'
5615
+ React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized &&
5616
+ notificationCount === undefined &&
5617
+ sumNotificationCounts(children) > 0
5618
+ ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5669
5619
  : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]') })),
5670
5620
  React.createElement("div", { className: cn$1('sidebar-item group/profile relative flex h-fit items-center', profileClass) },
5671
- React.createElement("div", { className: "group relative grow" },
5621
+ React.createElement("div", { className: "group relative min-w-0 grow" },
5672
5622
  React.createElement("button", __assign({ type: "button", ref: ref }, restProps, { onClick: function () {
5673
5623
  onClick === null || onClick === void 0 ? void 0 : onClick();
5674
5624
  setActiveId(id);
@@ -5677,14 +5627,14 @@ function SidebarProfileInner(_a, ref) {
5677
5627
  }
5678
5628
  }, className: cn$1('cubic-bezier(0.68, -0.1, 0.32, 1.2) flex w-full items-center gap-x-2.5 delay-500 duration-300', buttonClass, className) }),
5679
5629
  avatarImage,
5680
- React.createElement("div", { className: "flex flex-col" },
5630
+ React.createElement("div", { className: "flex min-w-0 flex-col" },
5681
5631
  React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-bia-white delay-[400ms]', isMinimized
5682
5632
  ? 'opacity-0 duration-300 ease-in-out'
5683
5633
  : 'opacity-100 delay-1000 duration-700 ease-in-out') }, username),
5684
5634
  React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
5685
5635
  ? 'opacity-0 duration-300 ease-in-out'
5686
5636
  : 'opacity-50 delay-1000 duration-700 ease-in-out') }, role)),
5687
- React.createElement("div", { className: cn$1('ml-auto flex items-center gap-x-[5px]', isMinimized
5637
+ React.createElement("div", { className: cn$1('ml-auto flex shrink-0 items-center gap-x-[5px]', isMinimized
5688
5638
  ? 'opacity-0 delay-200 duration-300 ease-in-out'
5689
5639
  : 'opacity-100 delay-[550ms] duration-500 ease-in-out') },
5690
5640
  (notificationCount !== undefined ||
@@ -5694,41 +5644,7 @@ function SidebarProfileInner(_a, ref) {
5694
5644
  ? 'opacity-100'
5695
5645
  : 'opacity-75 group-hover/profile:opacity-100'), size: 18 })))),
5696
5646
  React.createElement("div", { className: cn$1('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
5697
- isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" })),
5698
- React.createElement("div", { className: cn$1('sidebar-item group/profile relative flex h-fit items-center', profileClass) },
5699
- React.createElement("div", { className: "group relative grow" },
5700
- React.createElement("button", __assign({ ref: ref }, restProps, { onClick: function () {
5701
- if (hasChildren) {
5702
- setIsChildExpanded(function (prev) { return !prev; });
5703
- }
5704
- else {
5705
- onClick === null || onClick === void 0 ? void 0 : onClick();
5706
- setActiveId(id);
5707
- }
5708
- }, className: cn$1('cubic-bezier(0.68, -0.1, 0.32, 1.2) flex w-full items-center gap-x-2.5 delay-500 duration-300', buttonClass, className) }),
5709
- avatarImage,
5710
- React.createElement("div", { className: "flex flex-col" },
5711
- React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
5712
- ? 'opacity-0 duration-300 ease-in-out'
5713
- : 'opacity-100 delay-1000 duration-700 ease-in-out') }, username),
5714
- React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
5715
- ? 'opacity-0 duration-300 ease-in-out'
5716
- : 'opacity-50 delay-1000 duration-700 ease-in-out') }, role)),
5717
- React.createElement("div", { className: cn$1('ml-auto flex items-center gap-x-[5px]', isMinimized
5718
- ? 'opacity-0 delay-200 duration-300 ease-in-out'
5719
- : 'opacity-100 delay-[550ms] duration-500 ease-in-out') },
5720
- (notificationCount !== undefined ||
5721
- (!isChildExpanded &&
5722
- sumNotificationCounts(children) > 0)) && (React.createElement(TagLabel, { text: notificationLabel, color: "white", size: "tn" })),
5723
- React.createElement("div", { className: cn$1(chevronClass) },
5724
- React.createElement(TbChevronRight, { className: cn$1('text-bia-white transition-transform duration-300 ease-in-out', isChildExpanded ? 'rotate-90' : '', isActive || isPathActive
5725
- ? 'opacity-100'
5726
- : 'opacity-75 group-hover/profile:opacity-100'), size: 18 })))),
5727
- React.createElement("div", { className: cn$1('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
5728
- isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" }))),
5729
- !isMinimized && hasChildren && isChildExpanded && renderChildren(),
5730
- React.createElement("div", { className: "dropdown-anchor absolute left-[60px] top-0", ref: childDropdownRef }),
5731
- isMinimized && hasChildren && (React.createElement(DropdownContainer, { open: isChildExpanded, onClose: function () { return setIsChildExpanded(false); }, anchorRef: childDropdownRef }, renderDropdownItems()))),
5647
+ isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" }))),
5732
5648
  !isMinimized && hasChildren && isChildExpanded && renderChildren(),
5733
5649
  React.createElement("div", { className: "dropdown-anchor absolute left-[60px] top-0", ref: childDropdownRef }),
5734
5650
  isMinimized && hasChildren && (React.createElement(DropdownContainer, { open: isChildExpanded, onClose: function () { return setIsChildExpanded(false); }, anchorRef: childDropdownRef }, renderDropdownItems()))));
@@ -5773,7 +5689,7 @@ var configTab = {
5773
5689
  };
5774
5690
 
5775
5691
  function Tab(_a) {
5776
- var children = _a.children, active = _a.active, icon = _a.icon, disabled = _a.disabled, _b = _a.mode, mode = _b === void 0 ? 'horizontal' : _b, _c = _a.fit, fit = _c === void 0 ? 'fit-content' : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, className = _a.className, rest = __rest(_a, ["children", "active", "icon", "disabled", "mode", "fit", "size", "className"]);
5692
+ var _b = _a.children, children = _b === void 0 ? undefined : _b, active = _a.active, _c = _a.icon, icon = _c === void 0 ? undefined : _c, disabled = _a.disabled, _d = _a.mode, mode = _d === void 0 ? 'horizontal' : _d, _e = _a.fit, fit = _e === void 0 ? 'fit-content' : _e, _f = _a.size, size = _f === void 0 ? 'md' : _f, _g = _a.className, className = _g === void 0 ? undefined : _g, rest = __rest(_a, ["children", "active", "icon", "disabled", "mode", "fit", "size", "className"]);
5777
5693
  var disabledKeyTab = disabled || active ? ' pointer-events-none' : '';
5778
5694
  var cursor;
5779
5695
  if (disabled) {
@@ -5920,11 +5836,6 @@ function TableCell(_a) {
5920
5836
  }
5921
5837
  return (React.createElement("td", __assign({ className: "bianic-table-cell table-col ".concat(columnClass, " break-words") }, props), children));
5922
5838
  }
5923
- TableCell.defaultProps = {
5924
- lined: false,
5925
- size: 'md',
5926
- variant: 'body',
5927
- };
5928
5839
 
5929
5840
  function TableHead(_a) {
5930
5841
  var children = _a.children, rest = __rest(_a, ["children"]);
@@ -5945,7 +5856,7 @@ function BlockLoading(_a) {
5945
5856
  var EmptyIcon = "Empty.svg";
5946
5857
 
5947
5858
  function EmptyTable(_a) {
5948
- var content = _a.content, subContent = _a.subContent;
5859
+ var _b = _a.content, content = _b === void 0 ? undefined : _b, subContent = _a.subContent;
5949
5860
  return (React.createElement("div", { className: "h-[368px] w-full rounded-b-radius-lg bg-bia-grey-light-80 pb-[63px]" },
5950
5861
  React.createElement("div", { className: "mb-[63px] grid h-[30px] w-full grid-cols-7 items-center gap-20 border-b border-bia-grey px-[60px]" },
5951
5862
  React.createElement("div", { className: "col-span-1 h-2 rounded-radius-sm bg-bia-grey-light-50" }),
@@ -5982,7 +5893,7 @@ function TableFooterController(_a) {
5982
5893
  }
5983
5894
 
5984
5895
  function TableHeaderController(_a) {
5985
- var _b = _a.size, size = _b === void 0 ? 'sm' : _b, buttonActions = _a.buttonActions, totalData = _a.totalData, firstIndex = _a.firstIndex, lastIndex = _a.lastIndex;
5896
+ var _b = _a.size, size = _b === void 0 ? 'sm' : _b, _c = _a.buttonActions, buttonActions = _c === void 0 ? undefined : _c, _d = _a.totalData, totalData = _d === void 0 ? undefined : _d, _e = _a.firstIndex, firstIndex = _e === void 0 ? undefined : _e, _f = _a.lastIndex, lastIndex = _f === void 0 ? undefined : _f;
5986
5897
  var isShowHelperText = totalData || firstIndex || lastIndex;
5987
5898
  var paddingSize = size === 'md' ? 'py-[13px] pt-[14px] ' : 'py-[7px] pt-2';
5988
5899
  var textSize = size === 'md' ? 'normal-text' : 'small-text';
@@ -6015,7 +5926,9 @@ var colorConfigs = {
6015
5926
  };
6016
5927
 
6017
5928
  function Toaster(_a) {
6018
- var children = _a.children, title = _a.title, icon = _a.icon, onClose = _a.onClose, _b = _a.variant, variant = _b === void 0 ? 'default' : _b; _a.position;
5929
+ var children = _a.children, _b = _a.title, title = _b === void 0 ? undefined : _b, _c = _a.icon, icon = _c === void 0 ? undefined : _c, _d = _a.onClose, onClose = _d === void 0 ? undefined : _d, _e = _a.variant, variant = _e === void 0 ? 'default' : _e;
5930
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
5931
+ _a.position;
6019
5932
  // Default styles for the toaster based on variant
6020
5933
  var colorStyles = "".concat(colorConfigs[variant], " text-bia-white");
6021
5934
  // Logic for content alignment based on `isHeaderShow`
@@ -9348,12 +9261,22 @@ function HorizontalStepper(_a) {
9348
9261
  var isInteractive = Boolean(onStepClick);
9349
9262
  return (React.createElement("div", { key: (_a = step.id) !== null && _a !== void 0 ? _a : index, className: "group relative flex flex-1 flex-col items-center" },
9350
9263
  React.createElement("div", { className: "relative my-2 flex w-full items-center" },
9351
- React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isFirst ? (showLabels ? 'opacity-0' : 'hidden') : '', index <= activeStep
9264
+ React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isFirst && (showLabels ? 'opacity-0' : 'hidden'), index <= activeStep
9352
9265
  ? connectorColor
9353
9266
  : 'bg-bia-coolgrey-light-50') }),
9354
9267
  React.createElement("button", { type: "button", disabled: !isInteractive, onClick: function () { return onStepClick === null || onStepClick === void 0 ? void 0 : onStepClick(index); }, "aria-current": status === 'current' ? 'step' : undefined, className: cn('relative flex shrink-0 items-center justify-center rounded-full border-2 transition-all duration-200', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-bia-blue focus-visible:ring-offset-2', isSmall ? 'h-6 w-6 text-xs' : 'h-8 w-8 text-sm', isInteractive ? 'cursor-pointer' : 'cursor-default', status === 'processed' && processedStepStyle, status === 'current' && "font-semibold ".concat(currentStepStyle), status === 'upcoming' &&
9355
- 'border-bia-coolgrey-light-50 bg-bia-white text-bia-black') }, step.icon ? (step.icon) : status === 'processed' && processedIcon ? (processedIcon) : status === 'current' ? (currentIcon || (React.createElement(TbCircleFilled, { size: isSmall ? 14 : 18, className: stepTextColor }))) : (React.createElement(Text, { variant: isSmall ? 'small-text-semibold' : 'normal-text-semibold', className: status === 'processed' ? stepTextColor : 'text-bia-black' }, index + 1))),
9356
- React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isLast ? (showLabels ? 'opacity-0' : 'hidden') : '', index < activeStep
9268
+ 'border-bia-coolgrey-light-50 bg-bia-white text-bia-black') }, (function () {
9269
+ if (step.icon)
9270
+ return step.icon;
9271
+ if (status === 'processed' && processedIcon)
9272
+ return processedIcon;
9273
+ if (status === 'current')
9274
+ return (currentIcon || (React.createElement(TbCircleFilled, { size: isSmall ? 14 : 18, className: stepTextColor })));
9275
+ return (React.createElement(Text, { variant: isSmall ? 'small-text-semibold' : 'normal-text-semibold', className: status === 'processed'
9276
+ ? stepTextColor
9277
+ : 'text-bia-black' }, index + 1));
9278
+ })()),
9279
+ React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isLast && (showLabels ? 'opacity-0' : 'hidden'), index < activeStep
9357
9280
  ? connectorColor
9358
9281
  : 'bg-bia-coolgrey-light-50') })),
9359
9282
  showLabels && (step.label || step.description) && (React.createElement("div", { className: "mt-2 flex max-w-[140px] flex-col gap-y-[3px] text-center" },
@@ -9398,7 +9321,7 @@ function StepperItem(_a) {
9398
9321
  }
9399
9322
 
9400
9323
  function Window(_a) {
9401
- var _b = _a.size, size = _b === void 0 ? 'sm' : _b, title = _a.title, onClose = _a.onClose, rest = __rest(_a, ["size", "title", "onClose"]);
9324
+ var _b = _a.size, size = _b === void 0 ? 'sm' : _b, _c = _a.title, title = _c === void 0 ? undefined : _c, onClose = _a.onClose, rest = __rest(_a, ["size", "title", "onClose"]);
9402
9325
  var windowSize;
9403
9326
  // sizing logic
9404
9327
  switch (size) {