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