@bigtablet/design-system 3.25.1 → 3.26.0
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.css +4 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +28 -8
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -554,6 +554,7 @@ select:-webkit-autofill:disabled {
|
|
|
554
554
|
letter-spacing: 0px;
|
|
555
555
|
font-variant-numeric: tabular-nums;
|
|
556
556
|
overflow-wrap: anywhere;
|
|
557
|
+
word-break: keep-all;
|
|
557
558
|
}
|
|
558
559
|
.description_list_layout_row .description_list_item {
|
|
559
560
|
grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr);
|
|
@@ -726,6 +727,7 @@ select:-webkit-autofill:disabled {
|
|
|
726
727
|
line-height: 20px;
|
|
727
728
|
letter-spacing: 0px;
|
|
728
729
|
overflow-wrap: anywhere;
|
|
730
|
+
word-break: keep-all;
|
|
729
731
|
}
|
|
730
732
|
.timeline_item_done .timeline_indicator {
|
|
731
733
|
background: var(--bt-color-status-success-container);
|
|
@@ -1814,6 +1816,7 @@ body:has(.bottom_nav) {
|
|
|
1814
1816
|
line-height: 22.5px;
|
|
1815
1817
|
letter-spacing: 0px;
|
|
1816
1818
|
overflow-wrap: anywhere;
|
|
1819
|
+
word-break: keep-all;
|
|
1817
1820
|
}
|
|
1818
1821
|
.stepper_description {
|
|
1819
1822
|
color: var(--bt-color-text-caption);
|
|
@@ -1822,6 +1825,7 @@ body:has(.bottom_nav) {
|
|
|
1822
1825
|
line-height: 20px;
|
|
1823
1826
|
letter-spacing: 0px;
|
|
1824
1827
|
overflow-wrap: anywhere;
|
|
1828
|
+
word-break: keep-all;
|
|
1825
1829
|
}
|
|
1826
1830
|
.stepper_sr_only {
|
|
1827
1831
|
position: absolute;
|
package/dist/index.d.ts
CHANGED
|
@@ -3245,6 +3245,12 @@ interface DrawerProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLDivE
|
|
|
3245
3245
|
* `open` 을 끈 직후가 아니라 이 시점에 상세 데이터를 비워야 본문만 먼저 사라지지 않는다.
|
|
3246
3246
|
*/
|
|
3247
3247
|
onExited?: () => void;
|
|
3248
|
+
/**
|
|
3249
|
+
* 슬라이드·페이드 모션을 끄고 즉시 열고 닫는다. 기본값 `false`.
|
|
3250
|
+
* 화면 전체를 덮는 메뉴처럼 슬라이드가 디자인에 맞지 않는 곳에서 쓴다.
|
|
3251
|
+
* OS 의 reduced-motion 설정은 이 값과 상관없이 항상 모션을 끈다.
|
|
3252
|
+
*/
|
|
3253
|
+
disableAnimation?: boolean;
|
|
3248
3254
|
}
|
|
3249
3255
|
/**
|
|
3250
3256
|
* 화면 가장자리에서 미끄러져 들어오는 패널(Drawer)을 렌더링한다.
|
|
@@ -3254,7 +3260,7 @@ interface DrawerProps extends Omit<SafeHTMLProps<React$1.HTMLAttributes<HTMLDivE
|
|
|
3254
3260
|
* @returns 열림 상태일 때 렌더링된 드로어, 닫힘 상태면 null
|
|
3255
3261
|
*/
|
|
3256
3262
|
declare const Drawer: {
|
|
3257
|
-
({ open, onClose, placement, size, title, footer, closeOnOverlay, dismissible, showCloseIcon, closeLabel: closeLabelProp, ariaLabel, initialFocusRef, onExited, children, className, ...props }: DrawerProps): React$1.ReactPortal | null;
|
|
3263
|
+
({ open, onClose, placement, size, title, footer, closeOnOverlay, dismissible, showCloseIcon, closeLabel: closeLabelProp, ariaLabel, initialFocusRef, onExited, disableAnimation, children, className, ...props }: DrawerProps): React$1.ReactPortal | null;
|
|
3258
3264
|
displayName: string;
|
|
3259
3265
|
};
|
|
3260
3266
|
|
package/dist/index.js
CHANGED
|
@@ -6482,6 +6482,7 @@ var Drawer = ({
|
|
|
6482
6482
|
ariaLabel,
|
|
6483
6483
|
initialFocusRef,
|
|
6484
6484
|
onExited,
|
|
6485
|
+
disableAnimation = false,
|
|
6485
6486
|
children,
|
|
6486
6487
|
className,
|
|
6487
6488
|
...props
|
|
@@ -6498,7 +6499,7 @@ var Drawer = ({
|
|
|
6498
6499
|
const pressedOverlayRef = React20.useRef(false);
|
|
6499
6500
|
const titleId = React20.useId();
|
|
6500
6501
|
const [shouldRender, setShouldRender] = React20.useState(open);
|
|
6501
|
-
const
|
|
6502
|
+
const instant = useReducedMotion() || disableAnimation;
|
|
6502
6503
|
const isMounted = useIsMounted();
|
|
6503
6504
|
useFocusTrap(panelRef, open && isMounted, {
|
|
6504
6505
|
preferWithin: bodyRef,
|
|
@@ -6508,24 +6509,43 @@ var Drawer = ({
|
|
|
6508
6509
|
if (escapeDismissible) onClose?.();
|
|
6509
6510
|
});
|
|
6510
6511
|
if (open && !shouldRender) setShouldRender(true);
|
|
6512
|
+
const renderingRef = React20.useRef(shouldRender);
|
|
6513
|
+
const onExitedRef = React20.useRef(onExited);
|
|
6514
|
+
useSafeLayoutEffect(() => {
|
|
6515
|
+
renderingRef.current = shouldRender;
|
|
6516
|
+
onExitedRef.current = onExited;
|
|
6517
|
+
});
|
|
6518
|
+
const finishExit = React20.useCallback(() => {
|
|
6519
|
+
if (!renderingRef.current) return;
|
|
6520
|
+
renderingRef.current = false;
|
|
6521
|
+
setShouldRender(false);
|
|
6522
|
+
onExitedRef.current?.();
|
|
6523
|
+
}, []);
|
|
6511
6524
|
const overlayStyle = useSpring({
|
|
6512
|
-
...springEnterFrom(
|
|
6525
|
+
...springEnterFrom(instant),
|
|
6513
6526
|
to: { opacity: open ? 1 : 0 },
|
|
6514
|
-
immediate:
|
|
6527
|
+
immediate: instant,
|
|
6515
6528
|
config: OVERLAY_SPRING_CONFIG,
|
|
6516
6529
|
onRest: (result) => {
|
|
6517
6530
|
if (open || !result.finished) return;
|
|
6518
|
-
|
|
6519
|
-
onExited?.();
|
|
6531
|
+
finishExit();
|
|
6520
6532
|
}
|
|
6521
6533
|
});
|
|
6534
|
+
const overlayOpacity = overlayStyle.opacity;
|
|
6535
|
+
React20.useEffect(() => {
|
|
6536
|
+
if (open || !shouldRender) return;
|
|
6537
|
+
const frame = requestAnimationFrame(() => {
|
|
6538
|
+
if (!overlayOpacity.isAnimating && overlayOpacity.get() === 0) finishExit();
|
|
6539
|
+
});
|
|
6540
|
+
return () => cancelAnimationFrame(frame);
|
|
6541
|
+
}, [open, shouldRender, overlayOpacity, finishExit]);
|
|
6522
6542
|
const slideFrom = SLIDE_FROM[placement];
|
|
6523
6543
|
const slideRest = placement === "bottom" ? "translateY(0%)" : "translateX(0%)";
|
|
6524
6544
|
const panelStyle = useSpring({
|
|
6525
|
-
from: { transform: slideFrom },
|
|
6545
|
+
...instant ? {} : { from: { transform: slideFrom } },
|
|
6526
6546
|
to: { transform: open ? slideRest : slideFrom },
|
|
6527
|
-
immediate:
|
|
6528
|
-
config:
|
|
6547
|
+
immediate: instant,
|
|
6548
|
+
config: OVERLAY_SPRING_CONFIG
|
|
6529
6549
|
});
|
|
6530
6550
|
React20.useEffect(() => {
|
|
6531
6551
|
if (!shouldRender) return;
|