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/cjs/index.js CHANGED
@@ -230,7 +230,7 @@ function Display(_a) {
230
230
  }
231
231
 
232
232
  function Heading(_a) {
233
- var _b = _a.variant, variant = _b === void 0 ? '1' : _b, className = _a.className, children = _a.children;
233
+ var _b = _a.variant, variant = _b === void 0 ? '1' : _b, _c = _a.className, className = _c === void 0 ? '' : _c, children = _a.children;
234
234
  switch (variant) {
235
235
  case '1':
236
236
  return (React.createElement("h1", { className: "bianic-header-".concat(variant, " flex font-humnst777 text-heading-1 font-bold ").concat(className) }, children));
@@ -248,19 +248,11 @@ function Heading(_a) {
248
248
  return (React.createElement("h1", { className: "bianic-header-".concat(variant, " flex font-humnst777 text-heading-1 font-bold ").concat(className) }, children));
249
249
  }
250
250
  }
251
- Heading.defaultProps = {
252
- variant: '1',
253
- className: '',
254
- };
255
251
 
256
252
  function P(_a) {
257
253
  var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.fontSize, fontSize = _c === void 0 ? 'size-base' : _c, children = _a.children;
258
254
  return (React.createElement("p", { className: "paragraph text-justify text-".concat(fontSize, " font-segoe ").concat(className) }, children));
259
255
  }
260
- P.defaultProps = {
261
- className: '',
262
- fontSize: 'size-base',
263
- };
264
256
 
265
257
  var textClasses = {
266
258
  caption: 'text-size-caption font-normal font-segoe uppercase',
@@ -356,10 +348,6 @@ function Text(_a) {
356
348
  var extendedClasses = "".concat(className, " ").concat(extended);
357
349
  return (React.createElement("span", { className: "bianic-text ".concat(textClasses[validatedVariant], " ").concat(defaultColor, " ").concat(extendedClasses) }, childrenElement(children)));
358
350
  }
359
- Text.defaultProps = {
360
- extended: '',
361
- className: '',
362
- };
363
351
 
364
352
  /******************************************************************************
365
353
  Copyright (c) Microsoft Corporation.
@@ -420,9 +408,6 @@ function Link(_a) {
420
408
  var _b = _a.extended, extended = _b === void 0 ? '' : _b, children = _a.children, rest = __rest(_a, ["extended", "children"]);
421
409
  return (React.createElement("a", __assign({ className: "bianic-text ".concat(textClasses.link, " ").concat(extended) }, rest), children));
422
410
  }
423
- Link.defaultProps = {
424
- extended: '',
425
- };
426
411
 
427
412
  function Alert(_a) {
428
413
  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;
@@ -580,11 +565,13 @@ var Button = React.forwardRef(function (_a, ref) {
580
565
  var isVariantLink = variant.includes('link')
581
566
  ? ''
582
567
  : "".concat(sidePaddingConfig[validatedSize]);
583
- var sizeClass = label || variant === 'form-group'
584
- ? " ".concat(minWidthRules, " ").concat(sizingRules)
585
- : hasDoubleIcon
586
- ? "".concat(doubleIconSizeConfig[validatedSize], " ").concat(isVariantLink)
587
- : "".concat(iconOnlySizeConfig$1[validatedSize], " ").concat(isVariantLink, " ").concat(isVariantLink);
568
+ var sizeClass = "".concat(iconOnlySizeConfig$1[validatedSize], " ").concat(isVariantLink, " ").concat(isVariantLink);
569
+ if (label || variant === 'form-group') {
570
+ sizeClass = " ".concat(minWidthRules, " ").concat(sizingRules);
571
+ }
572
+ else if (hasDoubleIcon) {
573
+ sizeClass = "".concat(doubleIconSizeConfig[validatedSize], " ").concat(isVariantLink);
574
+ }
588
575
  var classString = "\n ".concat(variantConfig$3[validatedVariant], "\n ").concat(sizeClass, "\n ").concat(radiusConfig$1[validatedRadius][validatedSize], "\n ").concat(className, "\n ");
589
576
  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),
590
577
  childrenElement(renderIcon(iconLeft || left)),
@@ -681,9 +668,9 @@ var typeConfig = {
681
668
  };
682
669
 
683
670
  function Badge(_a) {
684
- var _b = _a.type, type = _b === void 0 ? 'standart' : _b, children = _a.children, color = _a.color, isInverted = _a.isInverted, className = _a.className;
671
+ 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;
685
672
  var divRef = React.useRef(null);
686
- var _c = React.useState(0), fontSize = _c[0], setFontSize = _c[1];
673
+ var _e = React.useState(0), fontSize = _e[0], setFontSize = _e[1];
687
674
  var typeClasses = typeConfig[type];
688
675
  var isStandart = type === 'standart';
689
676
  var bgColor = isInverted && isStandart ? '#ffffff' : color || '';
@@ -708,11 +695,6 @@ function Badge(_a) {
708
695
  } },
709
696
  React.createElement("span", { ref: divRef, style: { marginTop: contentMarginTop } }, children)));
710
697
  }
711
- Badge.defaultProps = {
712
- type: 'standart',
713
- isInverted: false,
714
- color: undefined,
715
- };
716
698
 
717
699
  var variantConfig$2 = {
718
700
  black: {
@@ -754,7 +736,7 @@ function Banner(_a) {
754
736
  React.useLayoutEffect(function () {
755
737
  var textElement = textRef.current;
756
738
  if (!textElement)
757
- return;
739
+ return undefined;
758
740
  var observer = new ResizeObserver(function () {
759
741
  var computedStyle = window.getComputedStyle(textElement);
760
742
  var lineHeight = parseFloat(computedStyle.lineHeight);
@@ -774,10 +756,6 @@ function Banner(_a) {
774
756
  React.createElement(TbX, { className: "text-[18px] ".concat(variantConfig$2[variant].hover, " ").concat(variantConfig$2[variant].active) })))));
775
757
  }
776
758
  }
777
- Banner.defaultProps = {
778
- closeable: true,
779
- variant: 'black',
780
- };
781
759
 
782
760
  var sizeConfig$e = {
783
761
  md: 'h-[16px] text-[11px]',
@@ -1619,9 +1597,6 @@ function Breadcrumb(_a) {
1619
1597
  !selected && (React.createElement("div", { className: "flex items-center justify-center px-[5px]" },
1620
1598
  React.createElement(Chevron, null)))));
1621
1599
  }
1622
- Breadcrumb.defaultProps = {
1623
- selected: false,
1624
- };
1625
1600
 
1626
1601
  var colorConfig$2 = {
1627
1602
  green: {
@@ -1635,7 +1610,9 @@ var colorConfig$2 = {
1635
1610
  };
1636
1611
 
1637
1612
  function ButtonApp(_a) {
1638
- _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"]);
1613
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
1614
+ _a.icon;
1615
+ 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"]);
1639
1616
  var buttonState = isActive ? 'active' : 'default';
1640
1617
  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));
1641
1618
  }
@@ -1651,11 +1628,10 @@ var stateColorConfig = {
1651
1628
 
1652
1629
  function ContextualButtonInner(_a, ref) {
1653
1630
  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"]);
1654
- var textColor = isSelected
1655
- ? variant === 'dark'
1656
- ? 'text-primary-black'
1657
- : 'text-primary-white'
1658
- : textColorConfig[variant];
1631
+ var textColor = textColorConfig[variant];
1632
+ if (isSelected) {
1633
+ textColor = variant === 'dark' ? 'text-primary-black' : 'text-primary-white';
1634
+ }
1659
1635
  var stateColor = stateColorConfig[isSelected ? 'selected' : 'default'];
1660
1636
  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 }),
1661
1637
  icon,
@@ -1826,6 +1802,9 @@ var Countdown = React.forwardRef(function (_a, ref) {
1826
1802
  React.createElement(Heading, { key: secondsPlaceholder, variant: "2", className: "animate-number-drop" }, secondsPlaceholder),
1827
1803
  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" }))));
1828
1804
  });
1805
+ Countdown.defaultProps = {
1806
+ variant: 'countdown',
1807
+ };
1829
1808
  Countdown.displayName = 'Countdown';
1830
1809
 
1831
1810
  var DividerConfig = {
@@ -1834,22 +1813,18 @@ var DividerConfig = {
1834
1813
  };
1835
1814
 
1836
1815
  function Divider(_a) {
1837
- var _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, className = _a.className;
1816
+ var _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, _c = _a.className, className = _c === void 0 ? '' : _c;
1838
1817
  var config = DividerConfig[orientation];
1839
1818
  var margin = orientation === 'horizontal' ? 'my-[7px]' : 'mx-[7px]';
1840
1819
  return (React.createElement("div", { className: "bianic-divider bg-bia-grey-light-50 ".concat(margin, " ").concat(config, " ").concat(className) }));
1841
1820
  }
1842
- Divider.defaultProps = {
1843
- className: '',
1844
- orientation: 'horizontal',
1845
- };
1846
1821
 
1847
1822
  function TreeItem$1(_a) {
1848
- 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"]);
1823
+ 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"]);
1849
1824
  var treeRef = React.useRef(null);
1850
- var _b = React.useState(false), isExpand = _b[0], setIsExpand = _b[1];
1851
- var _c = React.useState(false), isFocused = _c[0], setIsFocused = _c[1];
1852
- var _d = useDetectOutsideClick(treeRef, false, 'mousedown'), isClickRight = _d[0], setIsClickRight = _d[1];
1825
+ var _g = React.useState(false), isExpand = _g[0], setIsExpand = _g[1];
1826
+ var _h = React.useState(false), isFocused = _h[0], setIsFocused = _h[1];
1827
+ var _j = useDetectOutsideClick(treeRef, false, 'mousedown'), isClickRight = _j[0], setIsClickRight = _j[1];
1853
1828
  var focusedIconColor = chevronColor || color
1854
1829
  ? "text-bia-".concat(chevronColor || color)
1855
1830
  : 'text-bia-coolgrey-light-50';
@@ -1889,10 +1864,10 @@ function TreeItem$1(_a) {
1889
1864
  })))));
1890
1865
  }
1891
1866
  function FileTree(_a) {
1892
- var data = _a.data, color = _a.color, chevronColor = _a.chevronColor, contextMenu = _a.contextMenu, onMouseDown = _a.onMouseDown;
1867
+ 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;
1893
1868
  var popupRef = React.useRef(null); // Ref untuk div utama
1894
- var _b = useDetectOutsideClick(popupRef, false), isOpenContMenu = _b[0], setIsOpenContMenu = _b[1];
1895
- var _c = React.useState({ x: 0, y: 0 }), contMenuPosition = _c[0], setContMenuPosition = _c[1];
1869
+ var _f = useDetectOutsideClick(popupRef, false), isOpenContMenu = _f[0], setIsOpenContMenu = _f[1];
1870
+ var _g = React.useState({ x: 0, y: 0 }), contMenuPosition = _g[0], setContMenuPosition = _g[1];
1896
1871
  var menuStyle = {
1897
1872
  position: 'fixed',
1898
1873
  top: "".concat(contMenuPosition.y, "px"),
@@ -1919,7 +1894,7 @@ function FileTree(_a) {
1919
1894
  }
1920
1895
 
1921
1896
  function TreeItem(_a) {
1922
- 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;
1897
+ 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;
1923
1898
  var isExpanded = !!expandedData.get(data.id);
1924
1899
  var toogleExpand = function () {
1925
1900
  var isCurrentlyExpanded = !!expandedData.get(data.id);
@@ -2317,15 +2292,9 @@ function Tooltip(props) {
2317
2292
  children,
2318
2293
  active && (React.createElement(TooltipItem, { anchorRef: anchorRef, direction: direction, content: content, tooltipContainerRef: tooltipContainerRef, bgColor: bgColor, textColor: textColor, zIndex: zIndex, className: className, style: style, maxWidth: maxWidth }))));
2319
2294
  }
2320
- Tooltip.defaultProps = {
2321
- delay: 400,
2322
- direction: 'top',
2323
- maxWidth: '300',
2324
- };
2325
- Tooltip.defaultProps = {};
2326
2295
 
2327
2296
  function FormLabel(_a) {
2328
- 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;
2297
+ 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;
2329
2298
  var labelpointer = readOnly ? 'pointer-events-none' : '';
2330
2299
  var labelSize = size === 'sm' ? 'text-size-sm' : 'text-size-md';
2331
2300
  var labelFontWeight = fontWeight === 'semibold' ? 'font-semibold' : 'font-normal';
@@ -2337,17 +2306,9 @@ function FormLabel(_a) {
2337
2306
  return (React.createElement(Tooltip, { content: "Required", delay: 2000, direction: "right" }, labelContent));
2338
2307
  return labelContent;
2339
2308
  }
2340
- FormLabel.defaultProps = {
2341
- className: '',
2342
- htmlFor: undefined,
2343
- required: false,
2344
- readOnly: false,
2345
- size: 'sm',
2346
- fontWeight: 'semibold',
2347
- };
2348
2309
 
2349
2310
  function PasswordIcon(_a) {
2350
- var isShow = _a.isShow, _b = _a.showHandler, showHandler = _b === void 0 ? function () { } : _b, iconSize = _a.iconSize, disabled = _a.disabled;
2311
+ var isShow = _a.isShow, showHandler = _a.showHandler, iconSize = _a.iconSize, disabled = _a.disabled;
2351
2312
  var iconColor = disabled ? '#8b8ba6' : '#5E5EEA';
2352
2313
  if (isShow) {
2353
2314
  return (React.createElement(TbEye, { onClick: function () { return showHandler(false); }, style: {
@@ -2523,7 +2484,7 @@ Radio.defaultProps = {
2523
2484
  Radio.displayName = 'Radio';
2524
2485
 
2525
2486
  function ResizeIcon(_a) {
2526
- var className = _a.className;
2487
+ var _b = _a.className, className = _b === void 0 ? undefined : _b;
2527
2488
  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) },
2528
2489
  React.createElement("line", { x1: "0.646447", y1: "8.64645", x2: "8.64645", y2: "0.646447", stroke: "#DADEEB" }),
2529
2490
  React.createElement("line", { x1: "0.646447", y1: "8.64645", x2: "8.64645", y2: "0.646447", stroke: "black", strokeOpacity: "0.1" }),
@@ -2630,12 +2591,12 @@ var sizeConfig$8 = {
2630
2591
 
2631
2592
  /* eslint-disable @typescript-eslint/no-explicit-any */
2632
2593
  function CustomDropdownItem(_a) {
2633
- 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;
2634
- var _e = React.useState(false), isHovered = _e[0], setisHovered = _e[1];
2635
- var _f = React.useState(false), isHoveredSubMenu = _f[0], setIsHoveredSubMenu = _f[1];
2594
+ 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;
2595
+ var _h = React.useState(false), isHovered = _h[0], setisHovered = _h[1];
2596
+ var _j = React.useState(false), isHoveredSubMenu = _j[0], setIsHoveredSubMenu = _j[1];
2636
2597
  var isOpenDropdown = isHovered || isHoveredSubMenu;
2637
2598
  var selectedClass = isSelected ? 'font-semibold' : 'font-normal';
2638
- var _g = sizeConfig$8[size], containerClass = _g.container, item = _g.item;
2599
+ var _k = sizeConfig$8[size], containerClass = _k.container, item = _k.item;
2639
2600
  var itemClass = "".concat(item, " ").concat(selectedClass, " ").concat(className);
2640
2601
  var isExistSubDropdown = options.length !== 0;
2641
2602
  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 () { } },
@@ -2646,23 +2607,15 @@ function CustomDropdownItem(_a) {
2646
2607
  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 }));
2647
2608
  })))));
2648
2609
  }
2649
- CustomDropdownItem.defaultProps = {
2650
- className: '',
2651
- onClick: function () { },
2652
- size: 'md',
2653
- options: [],
2654
- isSelected: false,
2655
- caption: '',
2656
- };
2657
2610
 
2658
2611
  /* eslint-disable @typescript-eslint/no-explicit-any */
2659
2612
  function DefaultDropdownItem(_a) {
2660
- 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;
2661
- var _f = React.useState(false), isHovered = _f[0], setisHovered = _f[1];
2662
- var _g = React.useState(false), isHoveredSubMenu = _g[0], setIsHoveredSubMenu = _g[1];
2613
+ 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;
2614
+ var _h = React.useState(false), isHovered = _h[0], setisHovered = _h[1];
2615
+ var _j = React.useState(false), isHoveredSubMenu = _j[0], setIsHoveredSubMenu = _j[1];
2663
2616
  var isOpenDropdown = isHovered || isHoveredSubMenu;
2664
2617
  var selectedClass = isSelected ? 'font-semibold' : 'font-normal';
2665
- var _h = sizeConfig$8[size], containerClass = _h.container, item = _h.item;
2618
+ var _k = sizeConfig$8[size], containerClass = _k.container, item = _k.item;
2666
2619
  var itemClass = "".concat(item, " ").concat(selectedClass, " ").concat(className);
2667
2620
  var isExistSubDropdown = options.length !== 0;
2668
2621
  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 () { } },
@@ -2675,14 +2628,6 @@ function DefaultDropdownItem(_a) {
2675
2628
  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 }));
2676
2629
  })))));
2677
2630
  }
2678
- DefaultDropdownItem.defaultProps = {
2679
- className: '',
2680
- onClick: function () { },
2681
- size: 'md',
2682
- options: [],
2683
- isSelected: false,
2684
- caption: '',
2685
- };
2686
2631
 
2687
2632
  var containerSizeConfig$1 = {
2688
2633
  sm: 'min-w-[72px]',
@@ -2771,10 +2716,10 @@ var getItemLabel = function (value) {
2771
2716
  var sizeUnion$2 = ['md', 'sm'];
2772
2717
  function SelectInput(_a) {
2773
2718
  var _b;
2774
- 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"]);
2775
- var _o = React.useState(false), isOpen = _o[0], setIsOpen = _o[1];
2719
+ 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"]);
2720
+ var _u = React.useState(false), isOpen = _u[0], setIsOpen = _u[1];
2776
2721
  var validatedSize = validUnion(size, sizeUnion$2);
2777
- var _p = sizeConfig$9[validatedSize], searchSize = _p.searchSize, iconSize = _p.iconSize;
2722
+ var _v = sizeConfig$9[validatedSize], searchSize = _v.searchSize, iconSize = _v.iconSize;
2778
2723
  var inputRef = React.useRef(null);
2779
2724
  var selectedLabel = selected !== undefined && isObjectWithLabel(selected)
2780
2725
  ? ((_b = selected.label) !== null && _b !== void 0 ? _b : '')
@@ -2832,16 +2777,6 @@ function SelectInput(_a) {
2832
2777
  })))),
2833
2778
  descText && (React.createElement("span", { className: "bianic-livesearch-desc bianic-text-input-desc text-xs ".concat(descColor) }, descText))));
2834
2779
  }
2835
- SelectInput.defaultProps = {
2836
- descText: '',
2837
- disabled: false,
2838
- id: '',
2839
- size: 'md',
2840
- label: '',
2841
- required: false,
2842
- selected: {},
2843
- setSelected: function () { },
2844
- };
2845
2780
 
2846
2781
  var sizeConfig$7 = {
2847
2782
  md: {
@@ -2974,10 +2909,12 @@ var processDropdownChildren$1 = function (nodes, currentSearchTerm, includeAllIf
2974
2909
  if (!isDisabled) {
2975
2910
  if (itemValue === undefined &&
2976
2911
  typeof itemProps.content === 'string') {
2977
- return handleDropdownItemClick(divEvent, itemContent);
2912
+ handleDropdownItemClick(divEvent, itemContent);
2913
+ return;
2978
2914
  }
2979
2915
  if (typeof itemValue === 'object' || itemValue !== undefined) {
2980
- return handleDropdownItemClick(divEvent, itemValue);
2916
+ handleDropdownItemClick(divEvent, itemValue);
2917
+ return;
2981
2918
  }
2982
2919
  }
2983
2920
  if (itemProps.onClickItem) {
@@ -3039,16 +2976,16 @@ var useLiveSearch$1 = function (_a) {
3039
2976
  };
3040
2977
 
3041
2978
  function LiveSearch(_a) {
3042
- 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;
2979
+ 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;
3043
2980
  var inputRef = React.useRef(null);
3044
- var _o = useLiveSearch$1({
2981
+ var _u = useLiveSearch$1({
3045
2982
  value: value,
3046
2983
  setValue: setValue,
3047
2984
  onChangeText: onChangeText,
3048
2985
  dropContOnClickItem: dropContProps === null || dropContProps === void 0 ? void 0 : dropContProps.onClickItem,
3049
- }), isOpen = _o.isOpen, setIsOpen = _o.setIsOpen, searchTerm = _o.searchTerm, handleInputChange = _o.handleInputChange, handleDropdownItemClick = _o.handleDropdownItemClick;
3050
- var _p = sizeConfig$7[size], iconClass = _p.iconClass, iconSize = _p.iconSize, inputClass = _p.inputClass;
3051
- var _q = dropContProps || {}, dropContClassName = _q.className; _q.onClickItem; _q.anchorRef; var restDropContProps = __rest(_q, ["className", "onClickItem", "anchorRef"]);
2986
+ }), isOpen = _u.isOpen, setIsOpen = _u.setIsOpen, searchTerm = _u.searchTerm, handleInputChange = _u.handleInputChange, handleDropdownItemClick = _u.handleDropdownItemClick;
2987
+ var _v = sizeConfig$7[size], iconClass = _v.iconClass, iconSize = _v.iconSize, inputClass = _v.inputClass;
2988
+ var _w = dropContProps || {}, dropContClassName = _w.className; _w.onClickItem; _w.anchorRef; var restDropContProps = __rest(_w, ["className", "onClickItem", "anchorRef"]);
3052
2989
  var isSearchTermExist = searchTerm && searchTerm !== '';
3053
2990
  var descColor = 'text-primary-cool';
3054
2991
  var isExistValidation = isValid !== null && isValid !== undefined;
@@ -3057,7 +2994,7 @@ function LiveSearch(_a) {
3057
2994
  if (!disabled && isExistValidation && !isValid)
3058
2995
  descColor = 'text-bia-red';
3059
2996
  var filteredOptions = filterOptions(options || [], getItemLabel(value));
3060
- var _r = processRenderedChildren$1(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _r.renderedChildren, hasFilteredResults = _r.hasFilteredResults;
2997
+ var _x = processRenderedChildren$1(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _x.renderedChildren, hasFilteredResults = _x.hasFilteredResults;
3061
2998
  var disabledClass = disabled ? 'cursor-not-allowed' : '';
3062
2999
  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" },
3063
3000
  label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
@@ -3068,7 +3005,7 @@ function LiveSearch(_a) {
3068
3005
  }, type: "text", readOnly: readOnly, autoComplete: autoComplete }),
3069
3006
  React.createElement("div", { className: "absolute inset-y-0 flex items-center pl-3 ".concat(iconClass), style: {
3070
3007
  zIndex: (restDropContProps === null || restDropContProps === void 0 ? void 0 : restDropContProps.zIndex)
3071
- ? (restDropContProps === null || restDropContProps === void 0 ? void 0 : restDropContProps.zIndex) + 20
3008
+ ? restDropContProps.zIndex + 20
3072
3009
  : 20,
3073
3010
  } },
3074
3011
  !isSearchTermExist && (React.createElement(TbZoom, { className: "text-primary-black", style: { fontSize: iconSize } })),
@@ -3097,19 +3034,6 @@ function LiveSearch(_a) {
3097
3034
  searchTerm.length > 0 && (React.createElement(DropdownItem, { content: React.createElement("div", { className: "px-4 py-2 text-gray-500" }, "Tidak ada hasil ditemukan.") }))))),
3098
3035
  descText && (React.createElement("span", { className: "bianic-livesearch-desc bianic-text-input-desc text-xs ".concat(descColor) }, descText))));
3099
3036
  }
3100
- LiveSearch.defaultProps = {
3101
- descText: '',
3102
- disabled: false,
3103
- id: '',
3104
- size: 'md',
3105
- label: '',
3106
- placeholder: '',
3107
- required: false,
3108
- options: [],
3109
- setValue: function () { },
3110
- value: {},
3111
- readonly: false,
3112
- };
3113
3037
 
3114
3038
  var sizeConfig$6 = {
3115
3039
  md: {
@@ -3176,10 +3100,12 @@ var processDropdownChildren = function (nodes, currentSearchTerm, includeAllIfNo
3176
3100
  if (!isDisabled) {
3177
3101
  if (itemValue === undefined &&
3178
3102
  typeof itemProps.content === 'string') {
3179
- return handleDropdownItemClick(divEvent, itemContent);
3103
+ handleDropdownItemClick(divEvent, itemContent);
3104
+ return;
3180
3105
  }
3181
3106
  if (typeof itemValue === 'object' || itemValue !== undefined) {
3182
- return handleDropdownItemClick(divEvent, itemValue);
3107
+ handleDropdownItemClick(divEvent, itemValue);
3108
+ return;
3183
3109
  }
3184
3110
  }
3185
3111
  if (itemProps.onClickItem) {
@@ -3193,7 +3119,6 @@ var processDropdownChildren = function (nodes, currentSearchTerm, includeAllIfNo
3193
3119
  var processRenderedChildren = function (children, searchTerm, searchVariant, handleDropdownItemClick, existingValues) {
3194
3120
  var renderedChildren = null;
3195
3121
  var hasFilteredResults = false;
3196
- if ((existingValues === null || existingValues === void 0 ? void 0 : existingValues.length) > 0) ;
3197
3122
  if (searchTerm || (existingValues === null || existingValues === void 0 ? void 0 : existingValues.length) > 0) {
3198
3123
  renderedChildren = processDropdownChildren(children, searchTerm, false, handleDropdownItemClick, existingValues, searchVariant);
3199
3124
  }
@@ -3288,12 +3213,17 @@ var colorUnion = [
3288
3213
  var sizeUnion$1 = ['md', 'sm', 'tn'];
3289
3214
  var variantUnion = ['label', 'icon', 'closeable', 'monospace'];
3290
3215
  function TagLabel(_a) {
3291
- 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"]);
3216
+ 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;
3217
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
3218
+ _a.left;
3219
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
3220
+ _a.right;
3221
+ 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"]);
3292
3222
  var validatedColor = validUnion(color, colorUnion);
3293
3223
  var validatedSize = validUnion(size, sizeUnion$1);
3294
3224
  var validatedVariant = validUnion(variant, variantUnion);
3295
3225
  var containerRef = React.useRef(null);
3296
- var _e = React.useState(null), sizeCount = _e[0], setSizeCount = _e[1];
3226
+ var _r = React.useState(null), sizeCount = _r[0], setSizeCount = _r[1];
3297
3227
  React.useEffect(function () {
3298
3228
  if (variant === 'icon') {
3299
3229
  // Get the size of the icon
@@ -3326,11 +3256,12 @@ function TagLabel(_a) {
3326
3256
  var fontClass = validatedVariant === 'monospace' ? 'font-sans-code' : 'font-segoe pb-[1px]';
3327
3257
  var textClass = "".concat(alignTextClass, " ").concat(fontClass);
3328
3258
  var containerClass = "".concat(sizeClass, " ").concat(colorClass, " ").concat(roundedClass, " ").concat(isCloseableClass, " ").concat(blockclass);
3329
- var closeColor = validatedColor === 'custom'
3330
- ? isDark
3259
+ var closeColor = closeColorConfig[validatedColor];
3260
+ if (validatedColor === 'custom') {
3261
+ closeColor = isDark
3331
3262
  ? "bg-bia-white-transparent-50 text-bia-".concat(bgColor)
3332
- : "bg-bia-grey-dark-30 text-bia-".concat(bgColor)
3333
- : closeColorConfig[validatedColor];
3263
+ : "bg-bia-grey-dark-30 text-bia-".concat(bgColor);
3264
+ }
3334
3265
  var closeClass = "".concat(closeColor, " ").concat(closeSizeConfig[validatedSize]);
3335
3266
  var isOpen = isCloseable ? open : true;
3336
3267
  return (isOpen && (React.createElement("div", __assign({ className: "tag-label flex items-center gap-x-[5px] text-size-base ".concat(containerClass), style: {
@@ -3349,28 +3280,13 @@ function TagLabel(_a) {
3349
3280
  isCloseable && (React.createElement("button", { type: "button", onClick: closeHandler, className: "flex aspect-square items-center justify-center rounded-full pt-[1px] ".concat(closeClass) },
3350
3281
  React.createElement(TbX, null))))));
3351
3282
  }
3352
- TagLabel.defaultProps = {
3353
- variant: 'default',
3354
- size: 'sm',
3355
- open: true,
3356
- closeHandler: function () { },
3357
- leftIcon: null,
3358
- rightIcon: null,
3359
- left: null,
3360
- right: null,
3361
- bgColor: 'grey-light-50',
3362
- textColor: 'black',
3363
- isBlock: false,
3364
- maxWidth: 300,
3365
- isDark: false,
3366
- };
3367
3283
 
3368
3284
  function TagLabelInputInner(_a, ref) {
3369
- 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"]);
3285
+ 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"]);
3370
3286
  var generatedId = React.useId();
3371
3287
  var inputId = customId || generatedId;
3372
- var _q = React.useState(false), isFocused = _q[0], setIsFocused = _q[1];
3373
- var _r = React.useState(false), isHovered = _r[0], setIsHovered = _r[1];
3288
+ var _p = React.useState(false), isFocused = _p[0], setIsFocused = _p[1];
3289
+ var _q = React.useState(false), isHovered = _q[0], setIsHovered = _q[1];
3374
3290
  var internalInputRef = React.useRef(null);
3375
3291
  var containerRef = React.useRef(null);
3376
3292
  React.useImperativeHandle(ref, function () { return internalInputRef.current; });
@@ -3394,12 +3310,12 @@ function TagLabelInputInner(_a, ref) {
3394
3310
  var updatedValues = value.filter(function (_, idx) { return idx !== indexToRemove; });
3395
3311
  onChange(updatedValues);
3396
3312
  };
3397
- var _s = useLiveSearch({
3313
+ var _r = useLiveSearch({
3398
3314
  value: value,
3399
3315
  setValue: onChange,
3400
3316
  onChangeText: onChangeText,
3401
3317
  dropContOnClickItem: dropContProps === null || dropContProps === void 0 ? void 0 : dropContProps.onClickItem,
3402
- }), isOpen = _s.isOpen, setIsOpen = _s.setIsOpen, searchTerm = _s.searchTerm, handleInputChange = _s.handleInputChange, handleDropdownItemClick = _s.handleDropdownItemClick;
3318
+ }), isOpen = _r.isOpen, setIsOpen = _r.setIsOpen, searchTerm = _r.searchTerm, handleInputChange = _r.handleInputChange, handleDropdownItemClick = _r.handleDropdownItemClick;
3403
3319
  var handleKeyDown = function (e) {
3404
3320
  var _a;
3405
3321
  if (e.key === 'Backspace' && searchTerm === '' && value.length > 0) {
@@ -3428,14 +3344,13 @@ function TagLabelInputInner(_a, ref) {
3428
3344
  return 'border-b-bia-red';
3429
3345
  return 'border-b-bia-blue';
3430
3346
  };
3431
- var descColor = !disabled && isExistValidation
3432
- ? isValid
3433
- ? 'text-bia-green'
3434
- : 'text-bia-red'
3435
- : 'text-primary-cool';
3436
- var _t = sizeConfig$6[size], inputClass = _t.inputClass, paddingClass = _t.paddingClass, resizePosition = _t.resizePosition;
3437
- var _u = dropContProps || {}, dropContClassName = _u.className, restDropContProps = __rest(_u, ["className"]);
3438
- var _v = processRenderedChildren(children, searchTerm, 'include', handleDropdownItemClick, value), renderedChildren = _v.renderedChildren, hasFilteredResults = _v.hasFilteredResults;
3347
+ var descColor = 'text-primary-cool';
3348
+ if (!disabled && isExistValidation) {
3349
+ descColor = isValid ? 'text-bia-green' : 'text-bia-red';
3350
+ }
3351
+ var _s = sizeConfig$6[size], inputClass = _s.inputClass, paddingClass = _s.paddingClass, resizePosition = _s.resizePosition;
3352
+ var _t = dropContProps || {}, dropContClassName = _t.className, restDropContProps = __rest(_t, ["className"]);
3353
+ var _u = processRenderedChildren(children, searchTerm, 'include', handleDropdownItemClick, value), renderedChildren = _u.renderedChildren, hasFilteredResults = _u.hasFilteredResults;
3439
3354
  var showPlaceholder = !disabled && !readOnly && value.length === 0;
3440
3355
  console.log('showPlaceholder', showPlaceholder);
3441
3356
  return (React.createElement("div", { className: cn$1('relative w-full', className) },
@@ -3492,14 +3407,6 @@ function Toggle(_a) {
3492
3407
  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" })),
3493
3408
  React.createElement("label", { htmlFor: id, className: "text-grey-800 ml-2 font-normal leading-4 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
3494
3409
  }
3495
- Toggle.defaultProps = {
3496
- label: '',
3497
- size: 'md',
3498
- onClick: function () { },
3499
- checked: false,
3500
- id: '',
3501
- disabled: false,
3502
- };
3503
3410
 
3504
3411
  var isSelectedConfig = {
3505
3412
  selected: 'bg-white text-primary-black cursor-default',
@@ -3548,7 +3455,7 @@ function SegmentButtonGroup(_a) {
3548
3455
 
3549
3456
  var sizeUnion = ['md', 'sm'];
3550
3457
  function FormGroup(_a) {
3551
- var children = _a.children, size = _a.size;
3458
+ var _b = _a.children, children = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? undefined : _c;
3552
3459
  var validSize = validUnion(size, sizeUnion);
3553
3460
  return (React.createElement("div", { className: "bianic-form-group flex items-end" }, React.Children.map(children, function (child) {
3554
3461
  var _a;
@@ -3579,7 +3486,7 @@ var labelSizeConfig = {
3579
3486
  };
3580
3487
 
3581
3488
  function FormGroupLabel(_a) {
3582
- 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"]);
3489
+ 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"]);
3583
3490
  var sizeClass = labelSizeConfig[size];
3584
3491
  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),
3585
3492
  childrenElement(iconLeft),
@@ -3637,7 +3544,7 @@ var checkIsValidDate = function (dateString) {
3637
3544
  date.getUTCDate() === day);
3638
3545
  };
3639
3546
  var dateToInputString = function (dateObj) {
3640
- if (!(dateObj instanceof Date) || isNaN(dateObj.getTime()))
3547
+ if (!(dateObj instanceof Date) || Number.isNaN(dateObj.getTime()))
3641
3548
  return '';
3642
3549
  var year = dateObj.getFullYear();
3643
3550
  var month = String(dateObj.getMonth() + 1).padStart(2, '0');
@@ -3676,11 +3583,12 @@ function DateDisplay(_a) {
3676
3583
  var isOutOfMonth = date.getMonth() !== viewMonthValue;
3677
3584
  var isStartRange = isRangeMode && checkDateEquals(date, startRangeDate);
3678
3585
  var isEndRange = isRangeMode && checkDateEquals(date, endRangeDate);
3679
- var isSelected = selectedDate
3680
- ? isRangeMode
3586
+ var isSelected = false;
3587
+ if (selectedDate) {
3588
+ isSelected = isRangeMode
3681
3589
  ? isStartRange || isEndRange
3682
- : checkDateEquals(date, new Date(selectedDate))
3683
- : false;
3590
+ : checkDateEquals(date, new Date(selectedDate));
3591
+ }
3684
3592
  var isBetween = isRangeMode && startRangeDate && endRangeDate
3685
3593
  ? (function () {
3686
3594
  var start = startRangeDate;
@@ -3694,43 +3602,60 @@ function DateDisplay(_a) {
3694
3602
  })()
3695
3603
  : false;
3696
3604
  var isToday = checkDateEquals(date, new Date(TODAY_VALUE));
3697
- var customClassname = isRangeMode && (isBetween || isStartRange || isEndRange)
3698
- ? isBetween
3699
- ? 'w-full'
3700
- : isStartRange
3701
- ? 'w-full rounded-l-full'
3702
- : 'rounded-r-full'
3703
- : 'w-[31px] rounded-full';
3704
- 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
3705
- ? 'border border-bia-blue-dark-10 bg-bia-blue-dark-10'
3706
- : isBetween
3707
- ? isOutOfMonth
3708
- ? 'border border-bia-blue-light-50 bg-bia-blue-light-50'
3709
- : 'border border-bia-blue-light-10 bg-bia-blue-light-10'
3710
- : isToday && !isOutOfRange
3711
- ? 'border border-bia-blue-light-50 bg-bia-blue-pastel'
3712
- : 'hover:bg-bia-blue-pastel'), disabled: isOutOfRange, onClick: function () { return onDateSelect(date); } },
3713
- React.createElement(Text, { variant: "small-text", extended: isSelected || isBetween
3714
- ? 'text-bia-white'
3715
- : isOutOfRange
3716
- ? 'text-bia-coolgrey-light-50'
3717
- : isOutOfMonth
3718
- ? 'text-bia-coolgrey'
3719
- : 'text-bia-black' }, date.getDate())));
3605
+ var customClassname = 'w-[31px] rounded-full';
3606
+ if (isRangeMode && (isBetween || isStartRange || isEndRange)) {
3607
+ if (isBetween) {
3608
+ customClassname = 'w-full';
3609
+ }
3610
+ else if (isStartRange) {
3611
+ customClassname = 'w-full rounded-l-full';
3612
+ }
3613
+ else {
3614
+ customClassname = 'rounded-r-full';
3615
+ }
3616
+ }
3617
+ var dayStateClass = 'hover:bg-bia-blue-pastel';
3618
+ if (isSelected) {
3619
+ dayStateClass = 'border border-bia-blue-dark-10 bg-bia-blue-dark-10';
3620
+ }
3621
+ else if (isBetween) {
3622
+ dayStateClass = isOutOfMonth
3623
+ ? 'border border-bia-blue-light-50 bg-bia-blue-light-50'
3624
+ : 'border border-bia-blue-light-10 bg-bia-blue-light-10';
3625
+ }
3626
+ else if (isToday && !isOutOfRange) {
3627
+ dayStateClass = 'border border-bia-blue-light-50 bg-bia-blue-pastel';
3628
+ }
3629
+ var textStyle = 'text-bia-black';
3630
+ if (isSelected || isBetween) {
3631
+ textStyle = 'text-bia-white';
3632
+ }
3633
+ else if (isOutOfRange) {
3634
+ textStyle = 'text-bia-coolgrey-light-50';
3635
+ }
3636
+ else if (isOutOfMonth) {
3637
+ textStyle = 'text-bia-coolgrey';
3638
+ }
3639
+ 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); } },
3640
+ React.createElement(Text, { variant: "small-text", extended: textStyle }, date.getDate())));
3720
3641
  }))));
3721
3642
  }
3722
3643
 
3723
3644
  function MonthDisplay(_a) {
3724
- var viewYearValue = _a.viewYearValue, selectedDate = _a.selectedDate; _a.viewMonthValue; var minDateValue = _a.minDateValue, maxDateValue = _a.maxDateValue, onMonthSelect = _a.onMonthSelect;
3725
- var selectedDates = Array.isArray(selectedDate)
3726
- ? selectedDate
3727
- : selectedDate
3728
- ? [selectedDate]
3729
- : [];
3645
+ var viewYearValue = _a.viewYearValue, selectedDate = _a.selectedDate;
3646
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
3647
+ _a.viewMonthValue; var minDateValue = _a.minDateValue, maxDateValue = _a.maxDateValue, onMonthSelect = _a.onMonthSelect;
3648
+ var selectedDates = [];
3649
+ if (Array.isArray(selectedDate)) {
3650
+ selectedDates = selectedDate;
3651
+ }
3652
+ else if (selectedDate) {
3653
+ selectedDates = [selectedDate];
3654
+ }
3730
3655
  var isMonthAlreadySelected = function (monthIndex) {
3731
3656
  return selectedDates.some(function (date) {
3732
- var dateYear = parseInt(date.slice(0, 4));
3733
- var dateMonth = parseInt(date.slice(5, 7)) - 1;
3657
+ var dateYear = parseInt(date.slice(0, 4), 10);
3658
+ var dateMonth = parseInt(date.slice(5, 7), 10) - 1;
3734
3659
  return dateYear === viewYearValue && dateMonth === monthIndex;
3735
3660
  });
3736
3661
  };
@@ -3753,23 +3678,26 @@ function MonthDisplay(_a) {
3753
3678
  viewYearValue ===
3754
3679
  parseInt((Array.isArray(selectedDate)
3755
3680
  ? selectedDate[0]
3756
- : selectedDate).slice(0, 4)) &&
3681
+ : selectedDate).slice(0, 4), 10) &&
3757
3682
  index ===
3758
3683
  parseInt((Array.isArray(selectedDate)
3759
3684
  ? selectedDate[0]
3760
- : selectedDate).slice(5, 7)) -
3685
+ : selectedDate).slice(5, 7), 10) -
3761
3686
  1;
3687
+ var textStyle = 'text-bia-black';
3688
+ if (isSelected || isAlreadySelected) {
3689
+ textStyle = 'text-bia-white';
3690
+ }
3691
+ else if (isOutOfRange) {
3692
+ textStyle = 'text-bia-coolgrey-light-50';
3693
+ }
3762
3694
  return (React.createElement("button", { type: "button", key: month, onClick: function (e) {
3763
3695
  e.stopPropagation();
3764
3696
  onMonthSelect(index);
3765
3697
  }, disabled: isOutOfRange, className: "bianic-datepicker-calendar-month mx-[15px] flex h-[31px] items-center justify-center rounded-full ".concat(isSelected || isAlreadySelected
3766
3698
  ? 'border border-bia-blue-dark-10 bg-bia-blue-dark-10'
3767
3699
  : 'enabled:hover:bg-bia-blue-pastel') },
3768
- React.createElement(Text, { variant: "small-text", extended: isSelected || isAlreadySelected
3769
- ? 'text-bia-white'
3770
- : isOutOfRange
3771
- ? 'text-bia-coolgrey-light-50'
3772
- : 'text-bia-black' }, month.slice(0, 3))));
3700
+ React.createElement(Text, { variant: "small-text", extended: textStyle }, month.slice(0, 3))));
3773
3701
  })));
3774
3702
  }
3775
3703
 
@@ -3780,30 +3708,44 @@ function YearDisplay(_a) {
3780
3708
  (maxDateValue && year > maxDateValue.getFullYear()));
3781
3709
  var isSelected = year === viewYearValue;
3782
3710
  var isEdgeYear = index === 0 || index === 11;
3711
+ var textStyle = 'text-bia-black';
3712
+ if (isSelected) {
3713
+ textStyle = 'text-bia-white';
3714
+ }
3715
+ else if (isOutOfRange) {
3716
+ textStyle = 'text-bia-coolgrey-light-50';
3717
+ }
3718
+ else if (isEdgeYear) {
3719
+ textStyle = 'text-bia-coolgrey';
3720
+ }
3783
3721
  return (React.createElement("button", { type: "button", key: year, onClick: function (e) {
3784
3722
  e.stopPropagation();
3785
3723
  onYearSelect(year);
3786
3724
  }, disabled: isOutOfRange, className: "bianic-datepicker-calendar-month mx-[6px] flex h-[31px] items-center justify-center rounded-full ".concat(isSelected
3787
3725
  ? 'border border-bia-blue-dark-10 bg-bia-blue-dark-10'
3788
3726
  : 'enabled:hover:bg-bia-blue-pastel', " ").concat(isEdgeYear ? 'text-bia-coolgrey' : '') },
3789
- React.createElement(Text, { variant: "small-text", extended: isSelected
3790
- ? 'text-bia-white'
3791
- : isOutOfRange
3792
- ? 'text-bia-coolgrey-light-50'
3793
- : isEdgeYear
3794
- ? 'text-bia-coolgrey'
3795
- : 'text-bia-black' }, year)));
3727
+ React.createElement(Text, { variant: "small-text", extended: textStyle }, year)));
3796
3728
  })));
3797
3729
  }
3798
3730
 
3799
3731
  function PickerHeader(_a) {
3800
- 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;
3732
+ 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;
3733
+ var handlePrev = handlePrevDecade;
3734
+ if (pickerMode === 'date') {
3735
+ handlePrev = handlePrevMonth;
3736
+ }
3737
+ else if (pickerMode === 'month') {
3738
+ handlePrev = handlePrevYear;
3739
+ }
3740
+ var handleNext = handleNextDecade;
3741
+ if (pickerMode === 'date') {
3742
+ handleNext = handleNextMonth;
3743
+ }
3744
+ else if (pickerMode === 'month') {
3745
+ handleNext = handleNextYear;
3746
+ }
3801
3747
  return (React.createElement("div", { className: "bianic-datepicker-calendar-controller flex w-full items-center justify-between" },
3802
- 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'
3803
- ? handlePrevMonth
3804
- : pickerMode === 'month'
3805
- ? handlePrevYear
3806
- : handlePrevDecade },
3748
+ 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 },
3807
3749
  React.createElement(TbChevronLeft, { size: 18 })),
3808
3750
  React.createElement("div", { className: "bianic-datepicker-calendar-current-month flex items-center justify-center gap-1" },
3809
3751
  React.createElement("button", { type: "button", className: pickerMode === 'date' ? '' : 'hidden', onClick: function (e) {
@@ -3820,11 +3762,7 @@ function PickerHeader(_a) {
3820
3762
  React.createElement(Text, { variant: "normal-text" }, viewYearValue)),
3821
3763
  React.createElement("button", { type: "button", className: pickerMode === 'year' ? '' : 'hidden' },
3822
3764
  React.createElement(Text, { variant: "normal-text" }, "".concat(yearDisplayRange[1], " - ").concat(yearDisplayRange[10])))),
3823
- 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'
3824
- ? handleNextMonth
3825
- : pickerMode === 'month'
3826
- ? handleNextYear
3827
- : handleNextDecade },
3765
+ 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 },
3828
3766
  React.createElement(TbChevronRight, { size: 18 }))));
3829
3767
  }
3830
3768
 
@@ -3907,7 +3845,7 @@ var useCalendarLogic = function (selectedDate, minDate, maxDate) {
3907
3845
  var startOfDecade = Math.floor(year / 10) * 10;
3908
3846
  var endOfDecade = startOfDecade + 9;
3909
3847
  var decadeRange = [];
3910
- for (var i = startOfDecade - 1; i < endOfDecade + 2; i++) {
3848
+ for (var i = startOfDecade - 1; i < endOfDecade + 2; i += 1) {
3911
3849
  decadeRange.push(i);
3912
3850
  }
3913
3851
  return decadeRange;
@@ -3969,12 +3907,12 @@ var useCalendarLogic = function (selectedDate, minDate, maxDate) {
3969
3907
  };
3970
3908
 
3971
3909
  function PickerContent(_a) {
3972
- 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;
3973
- var _b = useCalendarLogic(
3910
+ 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;
3911
+ var _h = useCalendarLogic(
3974
3912
  // use first selectedDate if array
3975
3913
  Array.isArray(selectedDate)
3976
3914
  ? selectedDate[0]
3977
- : 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;
3915
+ : 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;
3978
3916
  React.useEffect(function () {
3979
3917
  if (typeof initialViewMonth === 'number') {
3980
3918
  setViewMonthValue(initialViewMonth);
@@ -4024,16 +3962,12 @@ function RangePicker(_a) {
4024
3962
  var rightInitDate = selectedDate && selectedDate[1] ? new Date(selectedDate[1]) : new Date();
4025
3963
  var leftInitMonth = leftInitDate.getMonth();
4026
3964
  var leftInitYear = leftInitDate.getFullYear();
4027
- var rightInitMonth = rightInitDate
4028
- ? rightInitDate.getMonth()
4029
- : leftInitMonth === 11
4030
- ? 0
4031
- : leftInitMonth + 1;
4032
- var rightInitYear = rightInitDate
4033
- ? rightInitDate.getFullYear()
4034
- : leftInitMonth === 11
4035
- ? leftInitYear + 1
4036
- : leftInitYear;
3965
+ var rightInitMonth = leftInitMonth === 11 ? 0 : leftInitMonth + 1;
3966
+ var rightInitYear = leftInitMonth === 11 ? leftInitYear + 1 : leftInitYear;
3967
+ if (rightInitDate) {
3968
+ rightInitMonth = rightInitDate.getMonth();
3969
+ rightInitYear = rightInitDate.getFullYear();
3970
+ }
4037
3971
  // State to track left and right panel month/year
4038
3972
  var _b = React.useState(leftInitMonth), leftMonth = _b[0], setLeftMonth = _b[1];
4039
3973
  var _c = React.useState(leftInitYear), leftYear = _c[0], setLeftYear = _c[1];
@@ -4177,21 +4111,23 @@ function RangePicker(_a) {
4177
4111
  };
4178
4112
  var handleMonthSelect = function (dateIndex, initYear) {
4179
4113
  return function (val) {
4180
- var selectedDates = Array.isArray(selectedDate)
4181
- ? selectedDate
4182
- : selectedDate
4183
- ? [selectedDate]
4184
- : [];
4114
+ var selectedDates = [];
4115
+ if (Array.isArray(selectedDate)) {
4116
+ selectedDates = selectedDate;
4117
+ }
4118
+ else if (selectedDate) {
4119
+ selectedDates = [selectedDate];
4120
+ }
4185
4121
  var isMonthAlreadySelected = selectedDates.some(function (date) {
4186
- var dateYear = parseInt(date.slice(0, 4));
4187
- var dateMonth = parseInt(date.slice(5, 7)) - 1;
4122
+ var dateYear = parseInt(date.slice(0, 4), 10);
4123
+ var dateMonth = parseInt(date.slice(5, 7), 10) - 1;
4188
4124
  return dateYear === initYear && dateMonth === val;
4189
4125
  });
4190
4126
  if (isMonthAlreadySelected) {
4191
4127
  if (!selectedDates[dateIndex]) {
4192
4128
  return;
4193
4129
  }
4194
- var selectedMonth = parseInt(selectedDates[dateIndex].slice(5, 7)) - 1;
4130
+ var selectedMonth = parseInt(selectedDates[dateIndex].slice(5, 7), 10) - 1;
4195
4131
  if (val === selectedMonth) {
4196
4132
  if (dateIndex === 0) {
4197
4133
  ensureOrderedPickers(selectedMonth, initYear, rightMonth, rightYear);
@@ -4263,7 +4199,7 @@ var monthMap = [
4263
4199
  'December',
4264
4200
  ];
4265
4201
  function isDate(val) {
4266
- return val instanceof Date && !isNaN(val);
4202
+ return val instanceof Date && !Number.isNaN(val);
4267
4203
  }
4268
4204
  var displayDateFormatter = function (date) {
4269
4205
  if (!isDate(date))
@@ -4271,17 +4207,30 @@ var displayDateFormatter = function (date) {
4271
4207
  return "".concat(date.getDate(), " ").concat(monthMap[date.getMonth()].slice(0, 3), " '").concat(date.getFullYear().toString().slice(2, 4));
4272
4208
  };
4273
4209
  var DateInputDisplay = React.forwardRef(function (_a, ref) {
4274
- 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;
4275
- var inputValue = value || (value === null || value === void 0 ? void 0 : value.length) > 0
4276
- ? Array.isArray(value)
4210
+ 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;
4211
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
4212
+ _a.isActive;
4213
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
4214
+ _a.setIsActive;
4215
+ var hasValue = Boolean(value || (value && value.length > 0));
4216
+ var inputValue = '';
4217
+ if (hasValue) {
4218
+ inputValue = Array.isArray(value)
4277
4219
  ? "".concat(value[0], " ").concat(value[1] ? "- ".concat(value[1]) : '')
4278
- : value
4279
- : '';
4280
- var viewValue = value || (value === null || value === void 0 ? void 0 : value.length) > 0
4281
- ? Array.isArray(value)
4282
- ? "".concat(displayDateFormatter(new Date(value[0])), " ").concat(value[1] ? "- ".concat(displayDateFormatter(new Date(value[1]))) : '')
4283
- : displayDateFormatter(new Date(value))
4284
- : nullDisplay || placeholder;
4220
+ : value;
4221
+ }
4222
+ var viewValue = nullDisplay || placeholder;
4223
+ if (hasValue) {
4224
+ if (Array.isArray(value)) {
4225
+ var rangeEnd = value[1]
4226
+ ? "- ".concat(displayDateFormatter(new Date(value[1])))
4227
+ : '';
4228
+ viewValue = "".concat(displayDateFormatter(new Date(value[0])), " ").concat(rangeEnd);
4229
+ }
4230
+ else {
4231
+ viewValue = displayDateFormatter(new Date(value));
4232
+ }
4233
+ }
4285
4234
  var _j = React.useState(false), isEditing = _j[0], setIsEditing = _j[1];
4286
4235
  var _k = React.useState(inputValue), dateString = _k[0], setDateString = _k[1];
4287
4236
  var fieldStyle = styleConfig.text.fieldStyle;
@@ -4294,7 +4243,7 @@ var DateInputDisplay = React.forwardRef(function (_a, ref) {
4294
4243
  // --- Validation and Conversion Logic ---
4295
4244
  if (rawValue) {
4296
4245
  var newDate = new Date(rawValue);
4297
- if (!isNaN(newDate.getTime())) {
4246
+ if (!Number.isNaN(newDate.getTime())) {
4298
4247
  // If valid, update the Date object state
4299
4248
  if (setValue)
4300
4249
  setValue(rawValue);
@@ -4332,7 +4281,13 @@ var DateInputDisplay = React.forwardRef(function (_a, ref) {
4332
4281
  React.createElement("div", { className: "relative w-full", ref: ref }, input)));
4333
4282
  });
4334
4283
  DateInputDisplay.defaultProps = {
4284
+ setValue: undefined,
4285
+ placeholder: 'YYYY-MM-DD',
4286
+ label: undefined,
4335
4287
  isActive: false,
4288
+ setIsActive: undefined,
4289
+ buttonAction: undefined,
4290
+ nullDisplay: undefined,
4336
4291
  };
4337
4292
 
4338
4293
  function DatePicker(_a) {
@@ -4460,6 +4415,12 @@ var YearPickerDisplay = React.forwardRef(function (_a, ref) {
4460
4415
  React.createElement("div", { className: "relative w-full", ref: inputRef }, input),
4461
4416
  displayError && (React.createElement("span", { className: "text-xs text-bia-red" }, displayError))));
4462
4417
  });
4418
+ YearPickerDisplay.defaultProps = {
4419
+ maxYear: undefined,
4420
+ minYear: undefined,
4421
+ errorMessage: undefined,
4422
+ onErrorChange: undefined,
4423
+ };
4463
4424
  YearPickerDisplay.displayName = 'YearPickerDisplay';
4464
4425
 
4465
4426
  var useYearLogic = function (selectYear, minYear, maxYear) {
@@ -4483,7 +4444,7 @@ var useYearLogic = function (selectYear, minYear, maxYear) {
4483
4444
  var startOfDecade = Math.floor(year / 10) * 10;
4484
4445
  var endOfDecade = startOfDecade + 9;
4485
4446
  var decadeRange = [];
4486
- for (var i = startOfDecade - 1; i < endOfDecade + 2; i++) {
4447
+ for (var i = startOfDecade - 1; i < endOfDecade + 2; i += 1) {
4487
4448
  decadeRange.push(i);
4488
4449
  }
4489
4450
  return decadeRange;
@@ -4541,9 +4502,9 @@ var PickerYear = function (_a) {
4541
4502
  };
4542
4503
 
4543
4504
  function YearPicker(_a) {
4544
- 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;
4505
+ 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;
4545
4506
  var inputRef = React.useRef(null);
4546
- var _e = React.useState(false), isPickerOpen = _e[0], setIsPickerOpen = _e[1];
4507
+ var _g = React.useState(false), isPickerOpen = _g[0], setIsPickerOpen = _g[1];
4547
4508
  return (React.createElement("div", { className: "bianic-yearpicker-container relative ".concat(containerClassName) },
4548
4509
  React.createElement("div", { className: "bianic-yearpicker-field-container" },
4549
4510
  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 })),
@@ -4683,9 +4644,9 @@ function SimpleFileUploader(_a) {
4683
4644
  }
4684
4645
 
4685
4646
  function DropzoneFileUploader(_a) {
4686
- 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;
4647
+ 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;
4687
4648
  var effectiveAccept = accept || (variant === 'image' ? 'image/*' : undefined);
4688
- var _f = useFileHandler({
4649
+ var _j = useFileHandler({
4689
4650
  accept: effectiveAccept,
4690
4651
  multiple: multiple,
4691
4652
  maxSize: maxSize,
@@ -4693,7 +4654,7 @@ function DropzoneFileUploader(_a) {
4693
4654
  value: value,
4694
4655
  onChange: onChange,
4695
4656
  onError: onError,
4696
- }), inputRef = _f.inputRef, isDragging = _f.isDragging, internalError = _f.internalError, handleDragOver = _f.handleDragOver, handleDragLeave = _f.handleDragLeave, handleDrop = _f.handleDrop, handleInputChange = _f.handleInputChange, triggerClick = _f.triggerClick;
4657
+ }), inputRef = _j.inputRef, isDragging = _j.isDragging, internalError = _j.internalError, handleDragOver = _j.handleDragOver, handleDragLeave = _j.handleDragLeave, handleDrop = _j.handleDrop, handleInputChange = _j.handleInputChange, triggerClick = _j.triggerClick;
4697
4658
  var isImageVariant = variant === 'image';
4698
4659
  var defaultTitle = isImageVariant
4699
4660
  ? 'Drag & Drop your Image here'
@@ -4952,21 +4913,15 @@ var sizeConfig$2 = {
4952
4913
  };
4953
4914
 
4954
4915
  function InfoPanel(_a) {
4955
- var variant = _a.variant, color = _a.color, className = _a.className, children = _a.children;
4916
+ 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;
4956
4917
  var sizeClass = sizeConfig$2[variant || 'container'];
4957
4918
  var colorClass = colorConfig[color || 'yellow'];
4958
4919
  var allClasses = "".concat(sizeClass, " ").concat(colorClass, " ").concat(className);
4959
4920
  return (React.createElement("div", { className: "flex items-center justify-center rounded-radius-md ".concat(allClasses) }, children));
4960
4921
  }
4961
- InfoPanel.defaultProps = {
4962
- variant: 'container',
4963
- color: 'yellow',
4964
- className: '',
4965
- children: null,
4966
- };
4967
4922
 
4968
4923
  function Modal(_a) {
4969
- 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"]);
4924
+ 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"]);
4970
4925
  var modalSize;
4971
4926
  if (size === 'sm') {
4972
4927
  modalSize = 'w-[300px]';
@@ -4991,7 +4946,9 @@ function Modal(_a) {
4991
4946
  if (open) {
4992
4947
  return (
4993
4948
  // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
4994
- reactDom.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 },
4949
+ reactDom.createPortal(React.createElement("div", { className: "bianic-modal-wrapper fixed inset-0 flex items-center justify-center bg-bia-black-transparent-75", style: {
4950
+ zIndex: !zIndex && Number.isNaN(zIndex) ? 'auto' : zIndex,
4951
+ }, id: "wrapper", onPointerDown: handleClose },
4995
4952
  React.createElement("div", { className: "bianic-modal flex flex-col gap-[20px] rounded-[5px] bg-white p-[20px] ".concat(modalSize), onClick: onClick },
4996
4953
  React.createElement("div", { className: "bianic-modal-header flex justify-between" },
4997
4954
  React.createElement("div", { className: " text-wrap text-left font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
@@ -5020,7 +4977,7 @@ var positionConfig = {
5020
4977
  };
5021
4978
 
5022
4979
  function SelectedPage(_a) {
5023
- var label = _a.label, _b = _a.size, size = _b === void 0 ? 'sm' : _b;
4980
+ var _b = _a.label, label = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c;
5024
4981
  var basicButtonStyle = 'bianic-custom-button bianic-fgc-target flex items-center justify-center font-semibold cursor-default';
5025
4982
  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';
5026
4983
  var textStyleOptions = {
@@ -5209,10 +5166,6 @@ function Popover(_a) {
5209
5166
  children,
5210
5167
  isOpen && (React.createElement(PopoverItem, { title: title, content: content, anchorRef: wrapperRef, direction: direction, className: className, style: style, zIndex: zIndex, color: color }))));
5211
5168
  }
5212
- Popover.defaultProps = {
5213
- direction: 'top',
5214
- title: '',
5215
- };
5216
5169
 
5217
5170
  var config$1 = {
5218
5171
  success: {
@@ -5252,7 +5205,7 @@ function ProgressCircle(_a) {
5252
5205
  }
5253
5206
 
5254
5207
  function SpinnerIcon(_a) {
5255
- var className = _a.className, props = __rest(_a, ["className"]);
5208
+ var _b = _a.className, className = _b === void 0 ? undefined : _b, props = __rest(_a, ["className"]);
5256
5209
  return React.createElement(TbLoader2, __assign({ className: "animate-spinner ".concat(className) }, props));
5257
5210
  }
5258
5211
 
@@ -5272,13 +5225,13 @@ var config = {
5272
5225
  };
5273
5226
 
5274
5227
  function ProgressBar(_a) {
5275
- 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;
5228
+ 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;
5276
5229
  var percentageVal = percentage;
5277
5230
  if (percentageVal === 0)
5278
5231
  percentageVal = 0.5;
5279
5232
  if (percentage > 100)
5280
5233
  percentageVal = 100;
5281
- var _f = config[variant], progress = _f.progress, statusIcon = _f.statusIcon;
5234
+ var _g = config[variant], progress = _g.progress, statusIcon = _g.statusIcon;
5282
5235
  var barColorRules = barColor
5283
5236
  ? "outline-bia-".concat(barColor, " bg-bia-").concat(barColor)
5284
5237
  : progress; // Use the provided barColor or fallback to the default progress color
@@ -5312,7 +5265,7 @@ var resizerContainerClass = {
5312
5265
  };
5313
5266
 
5314
5267
  function ResizeableDiv(_a) {
5315
- 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;
5268
+ 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;
5316
5269
  var internalRef = React.useRef(null);
5317
5270
  var container = ref || internalRef;
5318
5271
  var resizer = React.useRef(null);
@@ -5353,22 +5306,22 @@ function ResizeableDiv(_a) {
5353
5306
  };
5354
5307
  var isVerticalResizer = position === 'left' || position === 'right';
5355
5308
  var thumbClass = isVerticalResizer && 'rotate-90';
5356
- var containerWidth = typeof initialWidth === 'number' && !isNaN(initialWidth)
5309
+ var containerWidth = typeof initialWidth === 'number' && !Number.isNaN(initialWidth)
5357
5310
  ? "".concat(initialWidth, "px")
5358
5311
  : initialWidth;
5359
- var minimumWidth = typeof minWidth === 'number' && !isNaN(minWidth)
5312
+ var minimumWidth = typeof minWidth === 'number' && !Number.isNaN(minWidth)
5360
5313
  ? "".concat(minWidth, "px")
5361
5314
  : minWidth;
5362
- var maximumWidth = typeof maxWidth === 'number' && !isNaN(maxWidth)
5315
+ var maximumWidth = typeof maxWidth === 'number' && !Number.isNaN(maxWidth)
5363
5316
  ? "".concat(maxWidth, "px")
5364
5317
  : maxWidth;
5365
- var containerHeight = typeof initialHeight === 'number' && !isNaN(initialHeight)
5318
+ var containerHeight = typeof initialHeight === 'number' && !Number.isNaN(initialHeight)
5366
5319
  ? "".concat(initialHeight, "px")
5367
5320
  : initialHeight;
5368
- var minimumHeight = typeof minHeight === 'number' && !isNaN(minHeight)
5321
+ var minimumHeight = typeof minHeight === 'number' && !Number.isNaN(minHeight)
5369
5322
  ? "".concat(minHeight, "px")
5370
5323
  : minHeight;
5371
- var maximumHeight = typeof maxHeight === 'number' && !isNaN(maxHeight)
5324
+ var maximumHeight = typeof maxHeight === 'number' && !Number.isNaN(maxHeight)
5372
5325
  ? "".concat(maxHeight, "px")
5373
5326
  : maxHeight;
5374
5327
  var thumbZIndex = zIndex ? Number(zIndex) + 10 : 50;
@@ -5389,9 +5342,6 @@ function ResizeableDiv(_a) {
5389
5342
  React.createElement(TbDots, { className: "text-bia-grey-light-30" }))),
5390
5343
  React.createElement("div", { className: "h-full w-full peer-active:select-none ".concat(className) }, children)));
5391
5344
  }
5392
- ResizeableDiv.defaultProps = {
5393
- position: 'left',
5394
- };
5395
5345
 
5396
5346
  var containerSizeConfig = {
5397
5347
  minimized: 'w-[60px] min-w-[60px]',
@@ -5546,10 +5496,10 @@ function SidebarItemInner(_a, ref) {
5546
5496
  };
5547
5497
  return (React.createElement("div", { className: "relative" },
5548
5498
  React.createElement("div", { className: "absolute left-[33px] top-[3px] flex h-5 w-5 items-center justify-center" },
5549
- React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized && notificationCount === undefined
5550
- ? sumNotificationCounts(children) > 0
5551
- ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5552
- : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]'
5499
+ React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized &&
5500
+ notificationCount === undefined &&
5501
+ sumNotificationCounts(children) > 0
5502
+ ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5553
5503
  : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]') })),
5554
5504
  React.createElement("div", { className: cn$1('sidebar-item relative flex h-fit items-center', itemClass) },
5555
5505
  level === 2 && (React.createElement("div", { className: "relative left-[39px] h-full w-[1px] bg-bia-white" })),
@@ -5662,15 +5612,15 @@ function SidebarProfileInner(_a, ref) {
5662
5612
  })));
5663
5613
  });
5664
5614
  };
5665
- return (React.createElement("div", { className: "relative" },
5615
+ return (React.createElement("div", { className: "relative w-full" },
5666
5616
  React.createElement("div", { className: "absolute left-[33px] top-[3px] flex h-5 w-5 items-center justify-center" },
5667
- React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized && notificationCount === undefined
5668
- ? sumNotificationCounts(children) > 0
5669
- ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5670
- : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]'
5617
+ React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized &&
5618
+ notificationCount === undefined &&
5619
+ sumNotificationCounts(children) > 0
5620
+ ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5671
5621
  : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]') })),
5672
5622
  React.createElement("div", { className: cn$1('sidebar-item group/profile relative flex h-fit items-center', profileClass) },
5673
- React.createElement("div", { className: "group relative grow" },
5623
+ React.createElement("div", { className: "group relative min-w-0 grow" },
5674
5624
  React.createElement("button", __assign({ type: "button", ref: ref }, restProps, { onClick: function () {
5675
5625
  onClick === null || onClick === void 0 ? void 0 : onClick();
5676
5626
  setActiveId(id);
@@ -5679,14 +5629,14 @@ function SidebarProfileInner(_a, ref) {
5679
5629
  }
5680
5630
  }, 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) }),
5681
5631
  avatarImage,
5682
- React.createElement("div", { className: "flex flex-col" },
5632
+ React.createElement("div", { className: "flex min-w-0 flex-col" },
5683
5633
  React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-bia-white delay-[400ms]', isMinimized
5684
5634
  ? 'opacity-0 duration-300 ease-in-out'
5685
5635
  : 'opacity-100 delay-1000 duration-700 ease-in-out') }, username),
5686
5636
  React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
5687
5637
  ? 'opacity-0 duration-300 ease-in-out'
5688
5638
  : 'opacity-50 delay-1000 duration-700 ease-in-out') }, role)),
5689
- React.createElement("div", { className: cn$1('ml-auto flex items-center gap-x-[5px]', isMinimized
5639
+ React.createElement("div", { className: cn$1('ml-auto flex shrink-0 items-center gap-x-[5px]', isMinimized
5690
5640
  ? 'opacity-0 delay-200 duration-300 ease-in-out'
5691
5641
  : 'opacity-100 delay-[550ms] duration-500 ease-in-out') },
5692
5642
  (notificationCount !== undefined ||
@@ -5696,41 +5646,7 @@ function SidebarProfileInner(_a, ref) {
5696
5646
  ? 'opacity-100'
5697
5647
  : 'opacity-75 group-hover/profile:opacity-100'), size: 18 })))),
5698
5648
  React.createElement("div", { className: cn$1('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
5699
- isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" })),
5700
- React.createElement("div", { className: cn$1('sidebar-item group/profile relative flex h-fit items-center', profileClass) },
5701
- React.createElement("div", { className: "group relative grow" },
5702
- React.createElement("button", __assign({ ref: ref }, restProps, { onClick: function () {
5703
- if (hasChildren) {
5704
- setIsChildExpanded(function (prev) { return !prev; });
5705
- }
5706
- else {
5707
- onClick === null || onClick === void 0 ? void 0 : onClick();
5708
- setActiveId(id);
5709
- }
5710
- }, 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) }),
5711
- avatarImage,
5712
- React.createElement("div", { className: "flex flex-col" },
5713
- React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
5714
- ? 'opacity-0 duration-300 ease-in-out'
5715
- : 'opacity-100 delay-1000 duration-700 ease-in-out') }, username),
5716
- React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
5717
- ? 'opacity-0 duration-300 ease-in-out'
5718
- : 'opacity-50 delay-1000 duration-700 ease-in-out') }, role)),
5719
- React.createElement("div", { className: cn$1('ml-auto flex items-center gap-x-[5px]', isMinimized
5720
- ? 'opacity-0 delay-200 duration-300 ease-in-out'
5721
- : 'opacity-100 delay-[550ms] duration-500 ease-in-out') },
5722
- (notificationCount !== undefined ||
5723
- (!isChildExpanded &&
5724
- sumNotificationCounts(children) > 0)) && (React.createElement(TagLabel, { text: notificationLabel, color: "white", size: "tn" })),
5725
- React.createElement("div", { className: cn$1(chevronClass) },
5726
- React.createElement(TbChevronRight, { className: cn$1('text-bia-white transition-transform duration-300 ease-in-out', isChildExpanded ? 'rotate-90' : '', isActive || isPathActive
5727
- ? 'opacity-100'
5728
- : 'opacity-75 group-hover/profile:opacity-100'), size: 18 })))),
5729
- React.createElement("div", { className: cn$1('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
5730
- isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" }))),
5731
- !isMinimized && hasChildren && isChildExpanded && renderChildren(),
5732
- React.createElement("div", { className: "dropdown-anchor absolute left-[60px] top-0", ref: childDropdownRef }),
5733
- isMinimized && hasChildren && (React.createElement(DropdownContainer, { open: isChildExpanded, onClose: function () { return setIsChildExpanded(false); }, anchorRef: childDropdownRef }, renderDropdownItems()))),
5649
+ isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" }))),
5734
5650
  !isMinimized && hasChildren && isChildExpanded && renderChildren(),
5735
5651
  React.createElement("div", { className: "dropdown-anchor absolute left-[60px] top-0", ref: childDropdownRef }),
5736
5652
  isMinimized && hasChildren && (React.createElement(DropdownContainer, { open: isChildExpanded, onClose: function () { return setIsChildExpanded(false); }, anchorRef: childDropdownRef }, renderDropdownItems()))));
@@ -5775,7 +5691,7 @@ var configTab = {
5775
5691
  };
5776
5692
 
5777
5693
  function Tab(_a) {
5778
- 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"]);
5694
+ 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"]);
5779
5695
  var disabledKeyTab = disabled || active ? ' pointer-events-none' : '';
5780
5696
  var cursor;
5781
5697
  if (disabled) {
@@ -5922,11 +5838,6 @@ function TableCell(_a) {
5922
5838
  }
5923
5839
  return (React.createElement("td", __assign({ className: "bianic-table-cell table-col ".concat(columnClass, " break-words") }, props), children));
5924
5840
  }
5925
- TableCell.defaultProps = {
5926
- lined: false,
5927
- size: 'md',
5928
- variant: 'body',
5929
- };
5930
5841
 
5931
5842
  function TableHead(_a) {
5932
5843
  var children = _a.children, rest = __rest(_a, ["children"]);
@@ -5947,7 +5858,7 @@ function BlockLoading(_a) {
5947
5858
  var EmptyIcon = "Empty.svg";
5948
5859
 
5949
5860
  function EmptyTable(_a) {
5950
- var content = _a.content, subContent = _a.subContent;
5861
+ var _b = _a.content, content = _b === void 0 ? undefined : _b, subContent = _a.subContent;
5951
5862
  return (React.createElement("div", { className: "h-[368px] w-full rounded-b-radius-lg bg-bia-grey-light-80 pb-[63px]" },
5952
5863
  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]" },
5953
5864
  React.createElement("div", { className: "col-span-1 h-2 rounded-radius-sm bg-bia-grey-light-50" }),
@@ -5984,7 +5895,7 @@ function TableFooterController(_a) {
5984
5895
  }
5985
5896
 
5986
5897
  function TableHeaderController(_a) {
5987
- var _b = _a.size, size = _b === void 0 ? 'sm' : _b, buttonActions = _a.buttonActions, totalData = _a.totalData, firstIndex = _a.firstIndex, lastIndex = _a.lastIndex;
5898
+ 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;
5988
5899
  var isShowHelperText = totalData || firstIndex || lastIndex;
5989
5900
  var paddingSize = size === 'md' ? 'py-[13px] pt-[14px] ' : 'py-[7px] pt-2';
5990
5901
  var textSize = size === 'md' ? 'normal-text' : 'small-text';
@@ -6017,7 +5928,9 @@ var colorConfigs = {
6017
5928
  };
6018
5929
 
6019
5930
  function Toaster(_a) {
6020
- var children = _a.children, title = _a.title, icon = _a.icon, onClose = _a.onClose, _b = _a.variant, variant = _b === void 0 ? 'default' : _b; _a.position;
5931
+ 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;
5932
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
5933
+ _a.position;
6021
5934
  // Default styles for the toaster based on variant
6022
5935
  var colorStyles = "".concat(colorConfigs[variant], " text-bia-white");
6023
5936
  // Logic for content alignment based on `isHeaderShow`
@@ -9350,12 +9263,22 @@ function HorizontalStepper(_a) {
9350
9263
  var isInteractive = Boolean(onStepClick);
9351
9264
  return (React.createElement("div", { key: (_a = step.id) !== null && _a !== void 0 ? _a : index, className: "group relative flex flex-1 flex-col items-center" },
9352
9265
  React.createElement("div", { className: "relative my-2 flex w-full items-center" },
9353
- React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isFirst ? (showLabels ? 'opacity-0' : 'hidden') : '', index <= activeStep
9266
+ React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isFirst && (showLabels ? 'opacity-0' : 'hidden'), index <= activeStep
9354
9267
  ? connectorColor
9355
9268
  : 'bg-bia-coolgrey-light-50') }),
9356
9269
  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' &&
9357
- '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))),
9358
- React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isLast ? (showLabels ? 'opacity-0' : 'hidden') : '', index < activeStep
9270
+ 'border-bia-coolgrey-light-50 bg-bia-white text-bia-black') }, (function () {
9271
+ if (step.icon)
9272
+ return step.icon;
9273
+ if (status === 'processed' && processedIcon)
9274
+ return processedIcon;
9275
+ if (status === 'current')
9276
+ return (currentIcon || (React.createElement(TbCircleFilled, { size: isSmall ? 14 : 18, className: stepTextColor })));
9277
+ return (React.createElement(Text, { variant: isSmall ? 'small-text-semibold' : 'normal-text-semibold', className: status === 'processed'
9278
+ ? stepTextColor
9279
+ : 'text-bia-black' }, index + 1));
9280
+ })()),
9281
+ React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isLast && (showLabels ? 'opacity-0' : 'hidden'), index < activeStep
9359
9282
  ? connectorColor
9360
9283
  : 'bg-bia-coolgrey-light-50') })),
9361
9284
  showLabels && (step.label || step.description) && (React.createElement("div", { className: "mt-2 flex max-w-[140px] flex-col gap-y-[3px] text-center" },
@@ -9400,7 +9323,7 @@ function StepperItem(_a) {
9400
9323
  }
9401
9324
 
9402
9325
  function Window(_a) {
9403
- var _b = _a.size, size = _b === void 0 ? 'sm' : _b, title = _a.title, onClose = _a.onClose, rest = __rest(_a, ["size", "title", "onClose"]);
9326
+ 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"]);
9404
9327
  var windowSize;
9405
9328
  // sizing logic
9406
9329
  switch (size) {