@ihabdevteam/core 0.459.0 → 0.461.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/CHANGELOG.md +16 -0
- package/dist/components.cjs.js +170 -170
- package/dist/components.esm.css +2 -2
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +17 -17
- package/dist/ihabdevteam-core.d.ts +6 -1
- package/dist/packages/core/src/components/CircleBadge.css +6 -4
- package/dist/packages/core/src/components/Popup/ConfirmPopup.d.ts +5 -0
- package/dist/packages/core/src/components/Popup/ConfirmPopup.js +40 -30
- package/dist/packages/core/src/components/Popup/Popup.css +20 -9
- package/dist/packages/core/src/components/Popup/Popup.js +18 -4
- package/dist/packages/core/src/components/Training/TrainingBlock.css +7 -0
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
|
@@ -2025,6 +2025,11 @@ export declare interface ConfirmPopupProps {
|
|
|
2025
2025
|
closeOnClick?: boolean;
|
|
2026
2026
|
/** 곁 단추만 따로 비활성 (처리 중 등). 팝업 전체의 busy 와는 별개로 얹힌다. */
|
|
2027
2027
|
disabled?: boolean;
|
|
2028
|
+
/**
|
|
2029
|
+
* 곁 단추가 설 자리 — `'start'`(기본, 맨 앞: [곁, 취소, 확인]) · `'beforeConfirm'`(확인 바로 앞: [취소, 곁, 확인]).
|
|
2030
|
+
* 말귀 청 (457), 사장님 지시 *"취소 왼쪽으로"* — 곁 단추가 확인과 같은 갈래의 일(다른 길로 보내기 등)이면 확인 곁에 둔다.
|
|
2031
|
+
*/
|
|
2032
|
+
placement?: 'start' | 'beforeConfirm';
|
|
2028
2033
|
};
|
|
2029
2034
|
/**
|
|
2030
2035
|
* 확인 클릭 시 실행. `close`로 직접 닫을 수 있음(async 지원).
|
|
@@ -2246,7 +2251,7 @@ export declare function copyText(text: string): Promise<boolean>;
|
|
|
2246
2251
|
*
|
|
2247
2252
|
* 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
|
|
2248
2253
|
*/
|
|
2249
|
-
export declare const CORE_VERSION = "0.
|
|
2254
|
+
export declare const CORE_VERSION = "0.461.0";
|
|
2250
2255
|
|
|
2251
2256
|
/** @public */
|
|
2252
2257
|
declare const coreDefault: Record<string, unknown>;
|
|
@@ -41,13 +41,15 @@
|
|
|
41
41
|
transform: scale(1.12);
|
|
42
42
|
}
|
|
43
43
|
/* ── 위치 ── */
|
|
44
|
+
/* 모서리 배지가 부모 밖으로 삐져나오는 양 — 담는 쪽(카드 줄 등)이 이 수로 자리를 쥔다(말귀 청 (455), 2026-11-17).
|
|
45
|
+
수는 한 곳: `--circle-badge-overhang`(없으면 6px). */
|
|
44
46
|
.circle-badge--top-right {
|
|
45
|
-
top: -6px;
|
|
46
|
-
right: -6px;
|
|
47
|
+
top: calc(-1 * var(--circle-badge-overhang, 6px));
|
|
48
|
+
right: calc(-1 * var(--circle-badge-overhang, 6px));
|
|
47
49
|
}
|
|
48
50
|
.circle-badge--top-left {
|
|
49
|
-
top: -6px;
|
|
50
|
-
left: -6px;
|
|
51
|
+
top: calc(-1 * var(--circle-badge-overhang, 6px));
|
|
52
|
+
left: calc(-1 * var(--circle-badge-overhang, 6px));
|
|
51
53
|
}
|
|
52
54
|
/* 인라인(불릿·단계 번호) — absolute 해제, 흐름 안에 배치. 오버레이용 흰 테두리 제거 */
|
|
53
55
|
.circle-badge--inline {
|
|
@@ -62,6 +62,11 @@ export interface ConfirmPopupProps {
|
|
|
62
62
|
closeOnClick?: boolean;
|
|
63
63
|
/** 곁 단추만 따로 비활성 (처리 중 등). 팝업 전체의 busy 와는 별개로 얹힌다. */
|
|
64
64
|
disabled?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* 곁 단추가 설 자리 — `'start'`(기본, 맨 앞: [곁, 취소, 확인]) · `'beforeConfirm'`(확인 바로 앞: [취소, 곁, 확인]).
|
|
67
|
+
* 말귀 청 (457), 사장님 지시 *"취소 왼쪽으로"* — 곁 단추가 확인과 같은 갈래의 일(다른 길로 보내기 등)이면 확인 곁에 둔다.
|
|
68
|
+
*/
|
|
69
|
+
placement?: 'start' | 'beforeConfirm';
|
|
65
70
|
};
|
|
66
71
|
/**
|
|
67
72
|
* 확인 클릭 시 실행. `close`로 직접 닫을 수 있음(async 지원).
|
|
@@ -15,15 +15,17 @@ export default function ConfirmPopup(props) {
|
|
|
15
15
|
const { title, subtitle, message, topContent, details, children, confirmLabel, cancelLabel, hideCancel = false, extraAction, confirmVariant = 'main', confirmDisabled = false, onConfirm, closeOnConfirm = true, onClose, inline, width, size, className, initialFocus = 'close', } = props;
|
|
16
16
|
const { t } = useTranslation();
|
|
17
17
|
/* 열릴 때 포커스 자리 — Popup 이 먼저 첫 포커스 자리(X)로 옮긴 뒤(자식 효과가 먼저 돈다) 여기서 고른 단추로 옮긴다.
|
|
18
|
-
단추 차례는 [곁 단추?, 취소?, 확인]
|
|
18
|
+
단추 차례는 [곁 단추?, 취소?, 확인] 이다 — 곁 단추가 `placement: 'beforeConfirm'` 이면 [취소?, 곁 단추, 확인]. */
|
|
19
19
|
const bodyRef = useRef(null);
|
|
20
20
|
useEffect(() => {
|
|
21
21
|
if (inline || initialFocus === 'close')
|
|
22
22
|
return;
|
|
23
23
|
const panel = bodyRef.current?.closest('.popup-panel');
|
|
24
24
|
const buttons = Array.from(panel?.querySelectorAll('.popup-footer--buttons button') ?? []);
|
|
25
|
+
/* 취소의 자리 — 곁 단추가 맨 앞이면 둘째, 확인 앞이면(또는 없으면) 첫째(청 (457)) */
|
|
26
|
+
const cancelIndex = extraAction && (extraAction.placement ?? 'start') === 'start' ? 1 : 0;
|
|
25
27
|
const picked = initialFocus === 'confirm' ? buttons[buttons.length - 1]
|
|
26
|
-
: hideCancel ? undefined : buttons[
|
|
28
|
+
: hideCancel ? undefined : buttons[cancelIndex];
|
|
27
29
|
if (picked && !picked.disabled)
|
|
28
30
|
picked.focus();
|
|
29
31
|
// 열릴 때 한 번만
|
|
@@ -76,32 +78,37 @@ export default function ConfirmPopup(props) {
|
|
|
76
78
|
// 사용자는 "취소했다"고 믿었는데 실제로는 실행된 것처럼 보이는 문제를 막는다.
|
|
77
79
|
closeDisabled: busy, inline: inline, width: width ?? size ?? 'small',
|
|
78
80
|
/* 위에 미리보기가 서면 더해 둔 위 여백을 되돌린다 — 까닭은 `Popup.css` 의 그 규칙에 */
|
|
79
|
-
className: cx('confirm-popup', topContent != null && 'confirm-popup--has-top', className), buttons:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
await
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
81
|
+
className: cx('confirm-popup', topContent != null && 'confirm-popup--has-top', className), buttons: (() => {
|
|
82
|
+
/* 차례: [곁, 취소, 확인] — 곁 단추가 'beforeConfirm' 이면 [취소, 곁, 확인](청 (457)) */
|
|
83
|
+
const extraButtons = [
|
|
84
|
+
...(extraAction ? [{
|
|
85
|
+
label: extraAction.label,
|
|
86
|
+
variant: extraAction.variant ?? 'default',
|
|
87
|
+
disabled: extraAction.disabled || busy,
|
|
88
|
+
// 확인 단추와 같은 재진입 방지를 받는다. 여기 오는 것은 파괴적이고 되돌릴 수
|
|
89
|
+
// 없는 일(삭제·연결 해제)이라, 두 번 눌려 두 번 나가면 첫 번째만 뜻이 있고
|
|
90
|
+
// 두 번째는 엉뚱한 실패로 돌아온다.
|
|
91
|
+
onClick: async ({ closeWithAnimation }) => {
|
|
92
|
+
await once(async () => {
|
|
93
|
+
const close = makeClose(closeWithAnimation);
|
|
94
|
+
await extraAction.onClick(close.close);
|
|
95
|
+
const closeOnClick = extraAction.closeOnClick ?? true;
|
|
96
|
+
if (closeOnClick)
|
|
97
|
+
closeWithAnimation();
|
|
98
|
+
return closeOnClick || close.didClose();
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
}] : []),
|
|
102
|
+
];
|
|
103
|
+
const cancelButtons = [
|
|
104
|
+
...(hideCancel ? [] : [{
|
|
105
|
+
label: cancelLabel ?? t('common.cancel', '취소'),
|
|
106
|
+
variant: 'default',
|
|
107
|
+
disabled: busy,
|
|
108
|
+
onClick: ({ closeWithAnimation }) => closeWithAnimation(),
|
|
109
|
+
}]),
|
|
110
|
+
];
|
|
111
|
+
const confirmButton = {
|
|
105
112
|
label: confirmLabel ?? t('common.confirm', '확인'),
|
|
106
113
|
variant: confirmVariant,
|
|
107
114
|
disabled: confirmDisabled || busy,
|
|
@@ -114,6 +121,9 @@ export default function ConfirmPopup(props) {
|
|
|
114
121
|
return closeOnConfirm || close.didClose();
|
|
115
122
|
});
|
|
116
123
|
},
|
|
117
|
-
}
|
|
118
|
-
|
|
124
|
+
};
|
|
125
|
+
return (extraAction?.placement ?? 'start') === 'beforeConfirm'
|
|
126
|
+
? [...cancelButtons, ...extraButtons, confirmButton]
|
|
127
|
+
: [...extraButtons, ...cancelButtons, confirmButton];
|
|
128
|
+
})(), children: [topContent != null && _jsx("div", { className: "confirm-popup__top", children: topContent }), details && details.length > 0 && (_jsx(Panel, { children: details.map((d, i) => (_jsx(PanelRow, { label: d.label, children: _jsx("span", { className: "panel-row__text body-2", children: d.value }) }, i))) })), _jsx("p", { ref: bodyRef, className: "body-2 confirm-popup__message", hidden: message == null, children: message }), children] }));
|
|
119
129
|
}
|
|
@@ -125,6 +125,21 @@
|
|
|
125
125
|
overscroll-behavior: contain;
|
|
126
126
|
touch-action: pan-y;
|
|
127
127
|
}
|
|
128
|
+
/* **아래가 더 남은 꼬리말 없는 창 — 본문 아래 끝을 흐린다**(말귀 청 (456), 사장님 2026-11-17 아래 흐림을 고르심).
|
|
129
|
+
`Popup` 이 본문이 더 구를 수 있는 동안만 `data-more-below` 를 단다. 흐림은 본문 끝에 붙은(sticky) 빈 줄이라 구르는 동안 창 아래에
|
|
130
|
+
머물고, 끝까지 내리면 표시가 걷혀 사라진다. 색은 창 바탕(`--color-white`) → 투명, 높이는 `--spacing-xl`(24). 누름은 지나간다. */
|
|
131
|
+
.popup-content[data-more-below]::after {
|
|
132
|
+
content: '';
|
|
133
|
+
display: block;
|
|
134
|
+
position: sticky;
|
|
135
|
+
bottom: 0;
|
|
136
|
+
height: var(--spacing-xl);
|
|
137
|
+
/* 본문은 세로 flex 라, 안 막으면 넘칠 때 이 줄이 0 으로 줄어든다(실측 — 놀이터에서 키 0) */
|
|
138
|
+
flex-shrink: 0;
|
|
139
|
+
margin-top: calc(-1 * var(--spacing-xl));
|
|
140
|
+
background: linear-gradient(to bottom, transparent, var(--color-white));
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
}
|
|
128
143
|
/* **`.popup-content__inner` — 굴러가는 칸 안의 한 겹.** 바탕에서는 여백이 없다(본문 위아래 0, 사장님 지시 2026-11-16). 하는 일은 셋:
|
|
129
144
|
· 아래 여백이 필요할 때 **굴림과 함께 움직이게** 이 겹에 준다 — 바닥이 없는 창(아래 규칙) · 확인창(맨 아래).
|
|
130
145
|
굴러가는 칸(`.popup-content`) 제 padding-bottom 은 브라우저에 따라 굴림 끝에 안 붙어, 겹에 준다.
|
|
@@ -256,13 +271,10 @@
|
|
|
256
271
|
padding: 6px 0;
|
|
257
272
|
}
|
|
258
273
|
|
|
259
|
-
/*
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
`
|
|
263
|
-
|
|
264
|
-
(처음에 "표(`panel-row`)와 선을 맞춘다" 로 읽어 20px 들여쓰기로 올렸다가 사장님께
|
|
265
|
-
바로잡혔다. 눈에 보인 어긋남과 말씀하신 것이 달랐다.) */
|
|
274
|
+
/* **본문은 가운데 맞춤**(말귀 청 (458), 사장님 지시 2026-11-17: *"텍스트가 왼쪽으로 쏠려있는 느낌… 그냥 가운데 정렬 해야 할것 같아"*).
|
|
275
|
+
전에는 왼쪽 맞춤에 첫 글자 앞 한 칸(`text-indent: 1em`, (212) 2026-10-14)이었다 — 두 줄 글이면 첫 줄만 16px 안으로 들어가
|
|
276
|
+
글 덩이가 왼쪽으로 쏠려 보였다(말귀 실측: 첫 줄 401~768 · 둘째 줄 385~770). 들여쓰기를 걷고 가운데로 맞춘다.
|
|
277
|
+
덩이는 그대로 제 폭(`fit-content`)으로 창 가운데에 선다. `topContent` · `children` 은 안 건드린다. */
|
|
266
278
|
.confirm-popup__message {
|
|
267
279
|
/* **제목보다 한 단계 옅게**(말귀 청 (446-1), 사장님 지시 2026-11-16 *"색상이 너무 진한데"*, 색은 사장님이 골랐다) — 색이 없어 제목과
|
|
268
280
|
같은 --color-black 을 물려받았다 */
|
|
@@ -271,8 +283,7 @@
|
|
|
271
283
|
margin: 0 auto;
|
|
272
284
|
width: fit-content;
|
|
273
285
|
max-width: 100%;
|
|
274
|
-
text-align:
|
|
275
|
-
text-indent: 1em;
|
|
286
|
+
text-align: center;
|
|
276
287
|
}
|
|
277
288
|
/* 확인 팝업은 본문 위/아래 숨을 20 씩 더(기본 20 → 40) — 머리 아래 20 · 바닥 위 20 에 본문이 20 씩 더한다 */
|
|
278
289
|
.confirm-popup .popup-content { padding-top: var(--spacing-l); }
|
|
@@ -67,20 +67,34 @@ export default function Popup(props) {
|
|
|
67
67
|
// tabIndex가 없으면 키보드만 쓰는 사용자가 아예 스크롤할 수 없다(WCAG 2.1.1).
|
|
68
68
|
// 넘치지 않을 때는 부여하지 않는다 — 짧은 확인 팝업에 불필요한 Tab 정지점이 생긴다.
|
|
69
69
|
const [contentScrollable, setContentScrollable] = useState(false);
|
|
70
|
+
/* **아래가 더 남았나**(말귀 청 (456), 사장님 2026-11-17 *"popup에 footer 가 없으니까 하단이 스크롤이 닿아 버리네?"* → 아래 흐림).
|
|
71
|
+
꼬리말 없는 창은 본문이 창의 마지막이라, 내리는 도중 카드가 둥근 아래 모서리에 칼로 자른 듯 걸려 더 있는지가 안 보였다.
|
|
72
|
+
더 구를 수 있는 동안만 `data-more-below` 를 달고 CSS 가 아래 끝에 흐림을 깐다 — 끝까지 내리면 걷힌다. */
|
|
73
|
+
const [moreBelow, setMoreBelow] = useState(false);
|
|
70
74
|
useEffect(() => {
|
|
71
75
|
const el = contentRef.current;
|
|
72
76
|
if (!el)
|
|
73
77
|
return;
|
|
74
|
-
const check = () =>
|
|
78
|
+
const check = () => {
|
|
79
|
+
setContentScrollable(el.scrollHeight > el.clientHeight + 1);
|
|
80
|
+
setMoreBelow(el.scrollHeight - el.scrollTop - el.clientHeight > 1);
|
|
81
|
+
};
|
|
75
82
|
check();
|
|
83
|
+
/* 구를 때마다 바로 재지 않고 **한 틀에 한 번**으로 모은다 — 스크롤은 한 틀에 여러 번 온다 */
|
|
84
|
+
let frame = 0;
|
|
85
|
+
const onScroll = () => { if (!frame)
|
|
86
|
+
frame = requestAnimationFrame(() => { frame = 0; check(); }); };
|
|
87
|
+
el.addEventListener('scroll', onScroll, { passive: true });
|
|
88
|
+
const stop = () => { el.removeEventListener('scroll', onScroll); if (frame)
|
|
89
|
+
cancelAnimationFrame(frame); };
|
|
76
90
|
if (typeof ResizeObserver === 'undefined')
|
|
77
|
-
return;
|
|
91
|
+
return stop;
|
|
78
92
|
const ro = new ResizeObserver(check);
|
|
79
93
|
ro.observe(el);
|
|
80
94
|
const inner = el.firstElementChild;
|
|
81
95
|
if (inner)
|
|
82
96
|
ro.observe(inner);
|
|
83
|
-
return () => ro.disconnect();
|
|
97
|
+
return () => { ro.disconnect(); stop(); };
|
|
84
98
|
}, [children, resetScrollKey]);
|
|
85
99
|
useEffect(() => {
|
|
86
100
|
if (inline)
|
|
@@ -248,7 +262,7 @@ export default function Popup(props) {
|
|
|
248
262
|
max-height(CSS)가 height 보다 이기므로 화면보다 크게 줘도 화면에 맞춰진다 */
|
|
249
263
|
style: hasHeight && height !== 'full' ? { '--popup-height': typeof height === 'number' ? `${height}px` : height } : undefined, tabIndex: -1, role: inline ? undefined : 'dialog', "aria-modal": inline ? undefined : true, "aria-labelledby": !inline && useTitle && title ? titleId : undefined, "aria-label": !inline && !(useTitle && title) ? (ariaLabel ?? (typeof title === 'string' ? title : undefined)) : undefined, children: [!useTitle && (headerActions || onClose) ? (_jsxs("div", { className: "popup-close-float", children: [headerActions, onClose && _jsx(Button, { htmlType: "button", size: 40, type: "dot", icon: "x", variant: "transparent-gray", useBorder: false, className: "popup-close-btn", onClick: closeWithAnimation, disabled: closeDisabled, ariaLabel: t('common.close', '닫기') })] })) : (title || headerActions || onClose) ? (_jsxs("div", { className: `popup-header${subtitle ? ' popup-header--with-subtitle' : ''}`, children: [_jsxs("div", { className: "popup-header-main", children: [title
|
|
250
264
|
? _jsx("h2", { id: titleId, className: "popup-title popup-title--left h2", children: title })
|
|
251
|
-
: _jsx("span", { id: titleId, className: "popup-title popup-title--left h2" }), subtitle && _jsx("span", { className: "popup-subtitle body-3", children: subtitle })] }), _jsxs("div", { className: "popup-header-aside", children: [headerSegment && (_jsx("div", { className: "popup-header-segment", children: _jsx(SegmentedControl, { size: 40, ariaLabel: headerSegment.ariaLabel, options: headerSegment.options.map(o => ({ key: o.key, label: o.label, disabled: o.disabled })), value: headerSegment.value, onChange: headerSegment.onChange }) })), _jsxs("div", { className: "popup-header-actions", children: [headerActions, onClose && (_jsx(Button, { htmlType: "button", size: 40, type: "dot", icon: "x", variant: "transparent-gray", useBorder: false, className: "popup-close-btn", onClick: closeWithAnimation, disabled: closeDisabled, ariaLabel: t('common.close', '닫기') }))] })] })] })) : null, _jsx("div", { className: "popup-content", ref: contentRef, tabIndex: contentScrollable ? 0 : undefined, children: _jsx("div", { className: "popup-content__inner", children: typeof children === 'function' ? children({ animateThen, closeWithAnimation }) : children }) }), (footerStart || footerEnd) ? (
|
|
265
|
+
: _jsx("span", { id: titleId, className: "popup-title popup-title--left h2" }), subtitle && _jsx("span", { className: "popup-subtitle body-3", children: subtitle })] }), _jsxs("div", { className: "popup-header-aside", children: [headerSegment && (_jsx("div", { className: "popup-header-segment", children: _jsx(SegmentedControl, { size: 40, ariaLabel: headerSegment.ariaLabel, options: headerSegment.options.map(o => ({ key: o.key, label: o.label, disabled: o.disabled })), value: headerSegment.value, onChange: headerSegment.onChange }) })), _jsxs("div", { className: "popup-header-actions", children: [headerActions, onClose && (_jsx(Button, { htmlType: "button", size: 40, type: "dot", icon: "x", variant: "transparent-gray", useBorder: false, className: "popup-close-btn", onClick: closeWithAnimation, disabled: closeDisabled, ariaLabel: t('common.close', '닫기') }))] })] })] })) : null, _jsx("div", { className: "popup-content", ref: contentRef, tabIndex: contentScrollable ? 0 : undefined, "data-more-below": moreBelow && !(footerStart || footerEnd || (buttons && buttons.length > 0) || footer) ? '' : undefined, children: _jsx("div", { className: "popup-content__inner", children: typeof children === 'function' ? children({ animateThen, closeWithAnimation }) : children }) }), (footerStart || footerEnd) ? (
|
|
252
266
|
/* 왼쪽·오른쪽 덩이 — 빈 덩이도 그린다(자리를 지켜야 오른쪽이 끝에 선다).
|
|
253
267
|
`footerLayout` 은 보지 않는다: 이 줄 자체가 배치다. */
|
|
254
268
|
_jsxs("div", { className: `popup-footer popup-footer--bar${footerClassName ? ` ${footerClassName}` : ''}`, children: [_jsx("div", { className: "popup-footer__start", children: typeof footerStart === 'function' ? footerStart({ animateThen, closeWithAnimation }) : footerStart }), _jsx("div", { className: "popup-footer__end", children: typeof footerEnd === 'function' ? footerEnd({ animateThen, closeWithAnimation }) : footerEnd })] })) : buttons?.length ? (_jsx("div", { className: `popup-footer popup-footer--buttons${footerLayout !== 'center' ? ` popup-footer--${footerLayout}` : ''}`, children: buttons.map((btn, i) => (_jsx(Button, { htmlType: "button", size: 48, variant: btn.variant ?? 'default', label: btn.label, disabled: btn.disabled, onClick: () => btn.onClick?.({ animateThen, closeWithAnimation }) }, i))) })) : footer ? (_jsx("div", { className: `popup-footer${footerLayout !== 'center' ? ` popup-footer--${footerLayout}` : ''}${footerClassName ? ` ${footerClassName}` : ''}`, children: typeof footer === 'function' ? footer({ animateThen, closeWithAnimation }) : footer })) : null] }) }));
|
|
@@ -56,6 +56,13 @@
|
|
|
56
56
|
gap: var(--block-grid-gap, 10px);
|
|
57
57
|
margin: 0 auto;
|
|
58
58
|
}
|
|
59
|
+
/* **모서리 배지가 위로 삐져나오는 만큼 윗자리를 쥔다**(말귀 청 (455), 사장님 2026-11-17 *"circlebadge 잘린다"*).
|
|
60
|
+
줄이 구르는 상자(`.popup-content`)의 맨 위에 바로 서면, 카드의 끝냄 배지(위 · 왼쪽으로 6 삐져나옴)가 상자 윗선에서 5px 깎였다.
|
|
61
|
+
쓰는 쪽이 그 수를 몰라도 되게 줄이 배지의 수(`--circle-badge-overhang`)만큼 위를 비운다 — **배지가 든 줄만**이라 배지 없는 줄의
|
|
62
|
+
키 · 자리는 그대로다. */
|
|
63
|
+
.training-block-grid:has(.circle-badge--top-left, .circle-badge--top-right) {
|
|
64
|
+
padding-top: var(--circle-badge-overhang, 6px);
|
|
65
|
+
}
|
|
59
66
|
.training-block-grid--measured {
|
|
60
67
|
max-width: calc(var(--block-grid-cols) * var(--block-grid-card) + (var(--block-grid-cols) - 1) * var(--block-grid-gap, 10px));
|
|
61
68
|
}
|