@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 +2 -0
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9698,7 +9698,7 @@ const Skeleton = React.forwardRef(({ variant = 'text', size = 'm', width, height
|
|
|
9698
9698
|
});
|
|
9699
9699
|
Skeleton.displayName = 'Skeleton';
|
|
9700
9700
|
|
|
9701
|
-
const SplitView = ({ direction = 'horizontal', mode = 'ratio', panels, splitterSize = 4, splitterColor, splitterHoverColor, fullWidth = false, fullHeight = false, className, }) => {
|
|
9701
|
+
const SplitView = ({ direction = 'horizontal', mode = 'ratio', panels, splitterSize = 4, splitterColor, splitterHoverColor, gap = 0, fullWidth = false, fullHeight = false, className, }) => {
|
|
9702
9702
|
// 각 패널의 현재 크기 상태
|
|
9703
9703
|
const [panelSizes, setPanelSizes] = React.useState(() => panels.map((panel, index) => {
|
|
9704
9704
|
if (panel.size !== undefined)
|
|
@@ -9797,6 +9797,7 @@ const SplitView = ({ direction = 'horizontal', mode = 'ratio', panels, splitterS
|
|
|
9797
9797
|
'--splitter-size': `${splitterSize}px`,
|
|
9798
9798
|
'--splitter-color': splitterColor,
|
|
9799
9799
|
'--splitter-hover-color': splitterHoverColor,
|
|
9800
|
+
gap: gap > 0 ? `${gap}px` : undefined,
|
|
9800
9801
|
};
|
|
9801
9802
|
return (jsxRuntime.jsx("div", { ref: containerRef, className: classes, style: style, children: panels.map((panel, index) => {
|
|
9802
9803
|
const size = panelSizes[index];
|
|
@@ -9819,7 +9820,7 @@ const SplitView = ({ direction = 'horizontal', mode = 'ratio', panels, splitterS
|
|
|
9819
9820
|
panelStyle.flexShrink = 0;
|
|
9820
9821
|
}
|
|
9821
9822
|
}
|
|
9822
|
-
return (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx("div", { className: clsx('designbase-split-view__panel', panel.className), style: panelStyle, children: panel.content }), !isLast && isResizable && (jsxRuntime.jsx("div", { className: clsx('designbase-split-view__splitter', `designbase-split-view__splitter--direction-${direction}`), onMouseDown: handleMouseDown(index), style: {
|
|
9823
|
+
return (jsxRuntime.jsxs(React.Fragment, { children: [jsxRuntime.jsx("div", { className: clsx('designbase-split-view__panel', panel.className), style: panelStyle, children: panel.content }), !isLast && isResizable && gap === 0 && (jsxRuntime.jsx("div", { className: clsx('designbase-split-view__splitter', `designbase-split-view__splitter--direction-${direction}`), onMouseDown: handleMouseDown(index), style: {
|
|
9823
9824
|
cursor: direction === 'horizontal' ? 'col-resize' : 'row-resize',
|
|
9824
9825
|
} }))] }, index));
|
|
9825
9826
|
}) }));
|