@designbasekorea/ui 0.1.35 → 0.1.36

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.d.ts CHANGED
@@ -3397,6 +3397,8 @@ interface SplitViewProps {
3397
3397
  splitterColor?: string;
3398
3398
  /** 분할선 호버 색상 */
3399
3399
  splitterHoverColor?: string;
3400
+ /** 패널 간 간격 (px, 기본값: 0) */
3401
+ gap?: number;
3400
3402
  /** 전체 너비 사용 */
3401
3403
  fullWidth?: boolean;
3402
3404
  /** 전체 높이 사용 */
package/dist/index.esm.js CHANGED
@@ -9696,7 +9696,7 @@ const Skeleton = forwardRef(({ variant = 'text', size = 'm', width, height, anim
9696
9696
  });
9697
9697
  Skeleton.displayName = 'Skeleton';
9698
9698
 
9699
- const SplitView = ({ direction = 'horizontal', mode = 'ratio', panels, splitterSize = 4, splitterColor, splitterHoverColor, fullWidth = false, fullHeight = false, className, }) => {
9699
+ const SplitView = ({ direction = 'horizontal', mode = 'ratio', panels, splitterSize = 4, splitterColor, splitterHoverColor, gap = 0, fullWidth = false, fullHeight = false, className, }) => {
9700
9700
  // 각 패널의 현재 크기 상태
9701
9701
  const [panelSizes, setPanelSizes] = useState(() => panels.map((panel, index) => {
9702
9702
  if (panel.size !== undefined)
@@ -9795,6 +9795,7 @@ const SplitView = ({ direction = 'horizontal', mode = 'ratio', panels, splitterS
9795
9795
  '--splitter-size': `${splitterSize}px`,
9796
9796
  '--splitter-color': splitterColor,
9797
9797
  '--splitter-hover-color': splitterHoverColor,
9798
+ gap: gap > 0 ? `${gap}px` : undefined,
9798
9799
  };
9799
9800
  return (jsx("div", { ref: containerRef, className: classes, style: style, children: panels.map((panel, index) => {
9800
9801
  const size = panelSizes[index];
@@ -9817,7 +9818,7 @@ const SplitView = ({ direction = 'horizontal', mode = 'ratio', panels, splitterS
9817
9818
  panelStyle.flexShrink = 0;
9818
9819
  }
9819
9820
  }
9820
- return (jsxs(React.Fragment, { children: [jsx("div", { className: clsx('designbase-split-view__panel', panel.className), style: panelStyle, children: panel.content }), !isLast && isResizable && (jsx("div", { className: clsx('designbase-split-view__splitter', `designbase-split-view__splitter--direction-${direction}`), onMouseDown: handleMouseDown(index), style: {
9821
+ return (jsxs(React.Fragment, { children: [jsx("div", { className: clsx('designbase-split-view__panel', panel.className), style: panelStyle, children: panel.content }), !isLast && isResizable && gap === 0 && (jsx("div", { className: clsx('designbase-split-view__splitter', `designbase-split-view__splitter--direction-${direction}`), onMouseDown: handleMouseDown(index), style: {
9821
9822
  cursor: direction === 'horizontal' ? 'col-resize' : 'row-resize',
9822
9823
  } }))] }, index));
9823
9824
  }) }));