@farmzone/fz-react-ui 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3488,8 +3488,8 @@ var VARIANT_CONFIG = {
3488
3488
  closeBtn: "text-gray-400 group-hover:text-gray-600"
3489
3489
  },
3490
3490
  "system-light": {
3491
- container: "bg-gray-50 border-gray-200",
3492
- iconBg: "bg-white border border-gray-200 shadow-sm rounded-lg",
3491
+ container: "bg-[#ededed] border-gray-200",
3492
+ iconBg: "bg-white border border-gray-200 shadow-xs rounded-lg",
3493
3493
  iconColor: "text-slate-600",
3494
3494
  titleColor: "text-gray-900",
3495
3495
  descColor: "text-gray-500",
@@ -7790,7 +7790,7 @@ function PageFilter(props) {
7790
7790
  value: currentValue,
7791
7791
  onChange: handleSelectChange(optionKey),
7792
7792
  options: option.options,
7793
- placeholder: "\uC120\uD0DD",
7793
+ placeholder: option.placeholder || "\uC120\uD0DD",
7794
7794
  canReset: option.canReset ?? true,
7795
7795
  containerClassName: option.containerClassName ?? "w-30"
7796
7796
  }
@@ -8011,6 +8011,7 @@ function MultiTabBar(props) {
8011
8011
  };
8012
8012
  const handleDrop = (e, targetTabId) => {
8013
8013
  e.preventDefault();
8014
+ e.stopPropagation();
8014
8015
  if (!draggingId || draggingId === targetTabId) {
8015
8016
  setDraggingId(null);
8016
8017
  setDropTargetId(null);
@@ -8032,6 +8033,23 @@ function MultiTabBar(props) {
8032
8033
  setDraggingId(null);
8033
8034
  setDropTargetId(null);
8034
8035
  };
8036
+ const handleContainerDrop = (e) => {
8037
+ e.preventDefault();
8038
+ if (!draggingId || !onTabsReorder) {
8039
+ setDraggingId(null);
8040
+ setDropTargetId(null);
8041
+ return;
8042
+ }
8043
+ const fromIdx = tabs.findIndex((t) => t.id === draggingId);
8044
+ if (fromIdx !== -1 && fromIdx < tabs.length - 1) {
8045
+ const newTabs = [...tabs];
8046
+ const moved = newTabs.splice(fromIdx, 1)[0];
8047
+ newTabs.push(moved);
8048
+ onTabsReorder(newTabs);
8049
+ }
8050
+ setDraggingId(null);
8051
+ setDropTargetId(null);
8052
+ };
8035
8053
  const handleDragEnd = () => {
8036
8054
  setDraggingId(null);
8037
8055
  setDropTargetId(null);
@@ -8063,6 +8081,10 @@ function MultiTabBar(props) {
8063
8081
  className: `flex-1 min-w-0 flex items-end gap-0.5 ${s.scrollPadding} overflow-x-auto [&::-webkit-scrollbar]:hidden`,
8064
8082
  style: { scrollbarWidth: "none" },
8065
8083
  onScroll: updateFades,
8084
+ onDragOver: (e) => {
8085
+ if (draggingId) e.preventDefault();
8086
+ },
8087
+ onDrop: handleContainerDrop,
8066
8088
  children: tabs.map((tab) => {
8067
8089
  const isActive = tab.id === activeTabId;
8068
8090
  const isDraggingThis = tab.id === draggingId;