bianic-ui 1.5.1-beta.5 → 1.5.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -1584,7 +1584,7 @@ function MenuContainer(_a) {
1584
1584
  var radiusClass = "rounded-b-radius-sm ".concat(!isTopFlat && 'rounded-t-radius-sm');
1585
1585
  return (open && (React.createElement(React.Fragment, null,
1586
1586
  React.createElement("div", { className: "fixed left-0 top-0 z-0 h-screen w-screen", onClick: function () { return onClose(); } }),
1587
- React.createElement("div", { className: "w-fit shadow-[0px_3px_20px_0px_rgba(0,0,0,0.20)] ".concat(radiusClass, " ").concat(className) }, React.Children.map(children, function (child) {
1587
+ React.createElement("div", { className: "w-fit shadow-[0px_3px_20px_0px_rgba(0,0,0,0.20)] bg-bia-white ".concat(radiusClass, " ").concat(className) }, React.Children.map(children, function (child) {
1588
1588
  return React.isValidElement(child)
1589
1589
  ? // Kirimkan handleItemClick sebagai props onClick ke setiap MenuItem
1590
1590
  React.cloneElement(child, { onClose: function () { return onClose(); } })
@@ -2857,41 +2857,6 @@ Tooltip.defaultProps = {
2857
2857
  };
2858
2858
  Tooltip.defaultProps = {};
2859
2859
 
2860
- function Window(_a) {
2861
- var _b = _a.size, size = _b === void 0 ? 'sm' : _b, title = _a.title, open = _a.open; _a.zIndex; var onClose = _a.onClose, rest = __rest(_a, ["size", "title", "open", "zIndex", "onClose"]);
2862
- var windowSize;
2863
- // sizing logic
2864
- switch (size) {
2865
- case 'sm':
2866
- windowSize = 'w-[300px]';
2867
- break;
2868
- case 'md':
2869
- windowSize = 'w-[540px]';
2870
- break;
2871
- case 'lg':
2872
- windowSize = 'w-[800px]';
2873
- break;
2874
- case 'xl':
2875
- windowSize = 'w-[1140px]';
2876
- break;
2877
- default:
2878
- windowSize = 'w-[540px]';
2879
- }
2880
- if (open) {
2881
- return (
2882
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events
2883
- // <Draggable handle=".drag-handle" enableUserSelectHack={false}>
2884
- React.createElement("div", { className: "bianic-window drag-handle flex flex-col gap-[20px] rounded-[5px] bg-white ".concat(windowSize) },
2885
- React.createElement("div", { className: "bianic-window-header flex cursor-move justify-between px-[20px] pt-[20px]" },
2886
- React.createElement("div", { className: " text-wrap text-left font-humnst777 text-[18px] font-bold leading-[21.85px] text-primary-black" }, title),
2887
- React.createElement(Button, { variant: "subtle", radius: "full-rounded", iconLeft: React.createElement(TbX, null), size: "tn", onClick: function () { return onClose(); } })),
2888
- React.createElement("div", { className: "bianic-window-content flex w-full flex-col items-start gap-[20px] px-[20px] pb-[20px] text-primary-black" }, rest.children))
2889
- // </Draggable>
2890
- );
2891
- }
2892
- return null;
2893
- }
2894
-
2895
2860
  exports.Accordions = Accordions;
2896
2861
  exports.Alert = Alert;
2897
2862
  exports.Avatar = Avatar;
@@ -2934,4 +2899,3 @@ exports.TextArea = TextArea;
2934
2899
  exports.TextInput = TextInput;
2935
2900
  exports.Toggle = Toggle;
2936
2901
  exports.Tooltip = Tooltip;
2937
- exports.Window = Window;